From 655636525841954bfbec1831b48faa8ae549c3e7 Mon Sep 17 00:00:00 2001 From: claude-code-best Date: Sat, 20 Jun 2026 10:21:56 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=20autonomyCommandSp?= =?UTF-8?q?ec.ts=20=E4=B8=AD=E6=9C=AA=E5=BC=95=E7=94=A8=E7=9A=84=E5=AF=BC?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除 AUTONOMY_CLI(CLI 子命令描述对象,零引用;handler 仅用 AUTONOMY_USAGE) - 删除 AUTONOMY_COMMAND_DESCRIPTION(值已在 main.tsx:5181 内联) - ParsedAutonomyCommand 仅移除 export 关键字(保留类型作为 parseAutonomyArgs 返回类型) Co-Authored-By: glm-5.2 --- src/utils/autonomyCommandSpec.ts | 37 +------------------------------- 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/src/utils/autonomyCommandSpec.ts b/src/utils/autonomyCommandSpec.ts index dd8a9e209..7edc893b3 100644 --- a/src/utils/autonomyCommandSpec.ts +++ b/src/utils/autonomyCommandSpec.ts @@ -1,47 +1,12 @@ export const AUTONOMY_COMMAND_NAME = 'autonomy' -export const AUTONOMY_COMMAND_DESCRIPTION = - 'Inspect and manage automatic autonomy runs and flows' - export const AUTONOMY_ARGUMENT_HINT = '[status [--deep]|runs [limit]|flows [limit]|flow |flow cancel |flow resume ]' export const AUTONOMY_USAGE = 'Usage: /autonomy [status [--deep]|runs [limit]|flows [limit]|flow |flow cancel |flow resume ]' -export const AUTONOMY_CLI = { - 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 ', - cancel: { - command: 'cancel ', - description: 'Cancel a queued, waiting, or running autonomy flow', - }, - resume: { - command: 'resume ', - description: - 'Resume a waiting autonomy flow and print the prepared prompt', - }, - }, -} as const - -export type ParsedAutonomyCommand = +type ParsedAutonomyCommand = | { type: 'status'; deep: boolean } | { type: 'runs'; limit?: string } | { type: 'flows'; limit?: string }