feat: 更新 buddy 的一些功能

This commit is contained in:
claude-code-best
2026-04-02 21:41:19 +08:00
parent 0d0304d6a5
commit 7dfbcd0e79
4 changed files with 28 additions and 44 deletions

View File

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