chore: 移除 autonomyCommandSpec.ts 中未引用的导出

- 删除 AUTONOMY_CLI(CLI 子命令描述对象,零引用;handler 仅用 AUTONOMY_USAGE)
- 删除 AUTONOMY_COMMAND_DESCRIPTION(值已在 main.tsx:5181 内联)
- ParsedAutonomyCommand 仅移除 export 关键字(保留类型作为 parseAutonomyArgs 返回类型)

Co-Authored-By: glm-5.2 <zai-org@claude-code-best.win>
This commit is contained in:
claude-code-best
2026-06-20 10:21:56 +08:00
parent 55a1711e86
commit 6194017e9e

View File

@@ -1,47 +1,12 @@
export const AUTONOMY_COMMAND_NAME = 'autonomy' export const AUTONOMY_COMMAND_NAME = 'autonomy'
export const AUTONOMY_COMMAND_DESCRIPTION =
'Inspect and manage automatic autonomy runs and flows'
export const AUTONOMY_ARGUMENT_HINT = export const AUTONOMY_ARGUMENT_HINT =
'[status [--deep]|runs [limit]|flows [limit]|flow <id>|flow cancel <id>|flow resume <id>]' '[status [--deep]|runs [limit]|flows [limit]|flow <id>|flow cancel <id>|flow resume <id>]'
export const AUTONOMY_USAGE = export const AUTONOMY_USAGE =
'Usage: /autonomy [status [--deep]|runs [limit]|flows [limit]|flow <id>|flow cancel <id>|flow resume <id>]' 'Usage: /autonomy [status [--deep]|runs [limit]|flows [limit]|flow <id>|flow cancel <id>|flow resume <id>]'
export const AUTONOMY_CLI = { type ParsedAutonomyCommand =
status: {
command: 'status',
description:
'Print autonomy run, flow, team, pipe, and remote-control status',
},
runs: {
command: 'runs [limit]',
description: 'List recent autonomy runs',
},
flows: {
command: 'flows [limit]',
description: 'List recent autonomy flows',
},
flow: {
command: 'flow',
description: 'Inspect or manage a single autonomy flow',
argument: '[flowId]',
argumentDescription: 'Flow ID to inspect',
usage: 'Usage: claude autonomy flow <flow-id>',
cancel: {
command: 'cancel <flowId>',
description: 'Cancel a queued, waiting, or running autonomy flow',
},
resume: {
command: 'resume <flowId>',
description:
'Resume a waiting autonomy flow and print the prepared prompt',
},
},
} as const
export type ParsedAutonomyCommand =
| { type: 'status'; deep: boolean } | { type: 'status'; deep: boolean }
| { type: 'runs'; limit?: string } | { type: 'runs'; limit?: string }
| { type: 'flows'; limit?: string } | { type: 'flows'; limit?: string }