fix(cli): 不再在帮助与文档中暴露已退役的 --flow 拼写
`approval-runs get --flow` 至今仍是 `approval-runs hose-flow` 的静默遗留 别名:解析器的布尔标志白名单里还留着它,命令实现里也仍在转发。但 CLI 协议第 6 节要求兼容拼写只能停留在实现层,不得出现在 help、Skill、 references、README 或正常运行时提示中。 问题在于这条规矩被自己的文档破了:`get --help` 中 `--raw-json` 的描述写着 "incompatible with --summary, --fields and --flow",references 里同一句话也 照抄了一遍。用户只要撞上一次参数冲突,就会被 CLI 主动教一遍退役拼写。 - help:`--raw-json` 描述去掉 `--flow`,改为指向规范命令 `approval-runs hose-flow <recordId|SN>`。 - approval-run-lightweight.md:同步修正,并补上原生合思流程时间线的入口。 - 运行时:冲突报错改为只列调用方实际传入的标志,不再主动广播退役拼写。 - naming-charter:新增裸 `--flow` 的边界守卫。原有 LEGACY_SURFACE_TOKENS 是子串匹配,无法表达这个概念(`--flow-id`、 `--flow-ids`、`--flow-concurrency` 都是规范参数),这正是该泄漏存活 八个版本的根因。
This commit is contained in:
1 parent
8ecadbb124
commit
71845c35e7
5 files changed
+24
-4
No files matched your search
+1
-1
@@ -578,7 +578,7 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
summary: "Get detailed approval record payload",
|
||||
usage: ["seal-use approval-runs get <recordId> [--summary] [--fields metadata|document.fields,result.summary] [--raw-json] [--full] [--output-file file.json] [--corp <corpId>]"],
|
||||
options: [
|
||||
{ flag: "--raw-json", description: "Compatibility fallback: return the upstream JSON response including its envelope and unknown fields, without business-schema validation or derived fields; incompatible with --summary, --fields and --flow" },
|
||||
{ flag: "--raw-json", description: "Compatibility fallback: return the upstream JSON response including its envelope and unknown fields, without business-schema validation or derived fields; incompatible with --summary and --fields. Native Hose flow timeline lives in `seal-use approval-runs hose-flow <recordId|SN>`" },
|
||||
{ flag: "--full", description: "Bypass the shared 200,000-byte stdout size guard; this does not change payload structure" },
|
||||
{ flag: "--output-file <path>", description: "Write the complete JSON payload to a file, bypassing the stdout size guard" }
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user