mirror of
https://github.com/sanbuphy/claude-code-source-code.git
synced 2026-04-05 12:34:55 +08:00
v2.1.88 反编译源码
从 npm 包 @anthropic-ai/claude-code 2.1.88 版本提取的反编译源码 包含 src/ 目录下的 TypeScript 源文件及 vendor/ 原生模块源码 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
14
src/commands/branch/index.ts
Normal file
14
src/commands/branch/index.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { feature } from 'bun:bundle'
|
||||
import type { Command } from '../../commands.js'
|
||||
|
||||
const branch = {
|
||||
type: 'local-jsx',
|
||||
name: 'branch',
|
||||
// 'fork' alias only when /fork doesn't exist as its own command
|
||||
aliases: feature('FORK_SUBAGENT') ? [] : ['fork'],
|
||||
description: 'Create a branch of the current conversation at this point',
|
||||
argumentHint: '[name]',
|
||||
load: () => import('./branch.js'),
|
||||
} satisfies Command
|
||||
|
||||
export default branch
|
||||
Reference in New Issue
Block a user