fix: 修复 /agents/commands 接口 duplicate command name 和返回多余 TUI 命令
1. cost/index.ts 重导出 usage/index.ts,COMMANDS() 中移除 cost 避免 BuildManifest 重复校验 2. /command 端点只返回 prompt 类型的 skills 命令,排除 TUI 命令 Co-Authored-By: DeepSeek-V4-Pro-VIP <deepseek-ai@claude-code-best.win>
This commit is contained in:
parent
c2eb6bff90
commit
750400470e
|
|
@ -314,7 +314,7 @@ const COMMANDS = memoize((): Command[] => [
|
|||
// desktop,
|
||||
context,
|
||||
contextNonInteractive,
|
||||
cost,
|
||||
// cost 已重导出 usage/index.ts(name='usage', aliases=['cost','stats']),
|
||||
diff,
|
||||
doctor,
|
||||
effort,
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ export function createInfoRoutes(sessionManager: SessionManager): Hono {
|
|||
const commands = await getCommands(process.cwd())
|
||||
return c.json(
|
||||
commands
|
||||
.filter(cmd => !cmd.isHidden)
|
||||
.filter(cmd => !cmd.isHidden && cmd.type === 'prompt')
|
||||
.map(cmd => ({
|
||||
name: getCommandName(cmd),
|
||||
description: cmd.description,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user