支持buddy命令

This commit is contained in:
lijiguo
2026-04-01 17:55:35 +08:00
parent 03cff1b749
commit c57ad656ad
4 changed files with 269 additions and 10 deletions

View File

@@ -115,11 +115,8 @@ const forkCmd = feature('FORK_SUBAGENT')
require('./commands/fork/index.js') as typeof import('./commands/fork/index.js')
).default
: null
const buddy = feature('BUDDY')
? (
require('./commands/buddy/index.js') as typeof import('./commands/buddy/index.js')
).default
: null
// buddy loaded directly (not feature-gated) for this build
import buddy from './commands/buddy/index.js'
/* eslint-enable @typescript-eslint/no-require-imports */
import thinkback from './commands/thinkback/index.js'
import thinkbackPlay from './commands/thinkback-play/index.js'
@@ -319,7 +316,7 @@ const COMMANDS = memoize((): Command[] => [
vim,
...(webCmd ? [webCmd] : []),
...(forkCmd ? [forkCmd] : []),
...(buddy ? [buddy] : []),
buddy,
...(proactive ? [proactive] : []),
...(briefCommand ? [briefCommand] : []),
...(assistantCommand ? [assistantCommand] : []),