Enforce cross-domain naming charter with silent legacy aliases
Unify the visible command surface on one canonical spelling per semantic concept while keeping every legacy spelling working as a silent parser/dispatcher alias (per .agents/rules/cli-protocol.md §6): - Fix silent-ignore accept-set gaps: webhook resource-pack export now reads --out/--output-file and --downloads/--download; approval-runs and webhook read canonical --start-date/--end-date; webhook secret reveal accepts --reveal/-r alongside legacy --show-secret. - Add kebab-case parser registrations for camel-only flags (human-result, manual-approval-status, include-bridge, rule-version, document-limit, context-lines, source-document-sn/-id, simulation-batch-id) and read them in rules/documents search, context, approval-runs list/summary/ bridge/export. - Retire verbs on the visible surface only: webhook create (add), simulation delete (clean), preference thinking-depth policies delete (remove); dispatch keeps both. Runtime nextAction suggestions and doctor knowledge switch to canonical spellings. - Add src/cli/naming-charter.test.ts: help surface must be lowercase kebab-case and free of retired tokens; canonical/legacy spellings must both parse; P0 accept-sets pinned. - Document the charter in .agents/rules/cli-protocol.md §7; sync AGENTS.md, README, and skills/references docs; regenerate cli.md and embedded skill artifacts.
This commit is contained in:
1 parent
5d703cec38
commit
245ec33d1a
21 files changed
+298
-110
No files matched your search
+28
-25
@@ -284,7 +284,7 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
{
|
||||
name: "search",
|
||||
summary: "Search rules by keyword (defaults to current draft; pass --version latest for latest published version)",
|
||||
usage: ["seal-use rules search <keyword> [--version <number|latest>] [--maxResults 20] [--corp <corpId>]"]
|
||||
usage: ["seal-use rules search <keyword> [--version <number|latest>] [--max-results 20] [--corp <corpId>]"]
|
||||
},
|
||||
{
|
||||
name: "create",
|
||||
@@ -386,18 +386,19 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
{
|
||||
name: "list",
|
||||
summary: "List registered webhook endpoints",
|
||||
usage: ["seal-use webhook list [--query <text>] [--show-secret] [--corp <corpId>]"]
|
||||
usage: ["seal-use webhook list [--query <text>] [--reveal] [--corp <corpId>]"]
|
||||
},
|
||||
{
|
||||
name: "get",
|
||||
aliases: ["find"],
|
||||
summary: "Get webhook endpoint details",
|
||||
usage: ["seal-use webhook get|find <idOrName> [--show-secret] [--corp <corpId>]"]
|
||||
usage: ["seal-use webhook get|find <idOrName> [--reveal] [--corp <corpId>]"]
|
||||
},
|
||||
{
|
||||
name: "add",
|
||||
name: "create",
|
||||
aliases: ["add"],
|
||||
summary: "Register a new webhook endpoint",
|
||||
usage: ["seal-use webhook add --name <name> --result-url <url> [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret <secret>] [--min-file-size 500] [--max-file-size <bytes>] [--allowed-extensions <.pdf,.xlsx,...>] [--dry-run] [--corp <corpId>]"]
|
||||
usage: ["seal-use webhook create --name <name> --result-url <url> [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret <secret>] [--min-file-size 500] [--max-file-size <bytes>] [--allowed-extensions <.pdf,.xlsx,...>] [--dry-run] [--corp <corpId>]"]
|
||||
},
|
||||
{
|
||||
name: "update",
|
||||
@@ -413,8 +414,8 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
name: "resource-pack export",
|
||||
summary: "Export online approval records to a local Webhook resource pack ZIP (alias: pack export)",
|
||||
usage: [
|
||||
"seal-use webhook resource-pack export [--limit <n>] [--status <status>] [--output <file.zip>] [--to-downloads] [--corp <corpId>]",
|
||||
"seal-use webhook resource-pack export <recordId> [--output <file.zip>] [--corp <corpId>]",
|
||||
"seal-use webhook resource-pack export [--limit <n>] [--status <status>] [--out <file.zip>] [--downloads] [--corp <corpId>]",
|
||||
"seal-use webhook resource-pack export <recordId> [--out <file.zip>] [--corp <corpId>]",
|
||||
"seal-use webhook resource-pack export --record-ids <id1,id2> [--corp <corpId>]"
|
||||
],
|
||||
options: [
|
||||
@@ -427,8 +428,8 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
{ flag: "--doc-id-prefix <str>", description: "Optional prefix prepended to exported documentId/meetingId" },
|
||||
{ flag: "--doc-id-suffix <str>", description: "Optional suffix appended to exported documentId/meetingId" },
|
||||
{ flag: "--no-attachments", description: "Skip downloading and packaging attachments" },
|
||||
{ flag: "-o, --output <file.zip>", description: "Target ZIP file path" },
|
||||
{ flag: "--to-downloads", description: "Save directly to ~/Downloads" },
|
||||
{ flag: "-o, --out <file.zip>", description: "Target ZIP file path" },
|
||||
{ flag: "--downloads", description: "Save directly to ~/Downloads" },
|
||||
{ flag: "--corp <corpId>", description: "Source enterprise configuration ID" }
|
||||
]
|
||||
},
|
||||
@@ -475,7 +476,7 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
{
|
||||
name: "summary",
|
||||
summary: "Daily summary of approval runs",
|
||||
usage: ["seal-use approval-runs summary [--date YYYY-MM-DD] [--timezone Asia/Shanghai] [--corp <corpId>]"]
|
||||
usage: ["seal-use approval-runs summary [--date <YYYY-MM-DD>] [--timezone Asia/Shanghai] [--corp <corpId>]"]
|
||||
},
|
||||
{
|
||||
name: "stats",
|
||||
@@ -485,23 +486,23 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
{
|
||||
name: "count",
|
||||
summary: "Count approval runs filtered by status or time range",
|
||||
usage: ["seal-use approval-runs count [--status APPROVED] [--start <YYYY-MM-DD|ms>] [--end <YYYY-MM-DD|ms>] [--corp <corpId>]"]
|
||||
usage: ["seal-use approval-runs count [--status APPROVED] [--start-date <YYYY-MM-DD|ms>] [--end-date <YYYY-MM-DD|ms>] [--corp <corpId>]"]
|
||||
},
|
||||
{
|
||||
name: "export",
|
||||
summary: "Export approval run audit records to Excel workbook. Add --with-flow to include E人工行为 / E人工意见 columns (requires Hose Open API; adds ~30s for large batches).",
|
||||
usage: ["seal-use approval-runs export [--sn <SN1,SN2>] [--start <YYYY-MM-DD|ms>] [--end <YYYY-MM-DD|ms>] [--force] [--status <status>] [--manual-status <status>] [--completed-only] [--limit <n>] [--downloads|--to-downloads] [--with-flow] [--out <file>] [--corp <corpId>]"],
|
||||
usage: ["seal-use approval-runs export [--sn <SN1,SN2>] [--start-date <YYYY-MM-DD|ms>] [--end-date <YYYY-MM-DD|ms>] [--force] [--status <status>] [--manual-status <status>] [--completed-only] [--limit <n>] [--downloads] [--with-flow] [--out <file>] [--corp <corpId>]"],
|
||||
options: [
|
||||
{ flag: "--sn, --sns <SNs>", description: "Target specific document SNs (comma-separated, e.g. B26002307,B26002144); fast indexed search bypassing full pagination" },
|
||||
{ flag: "--with-flow", description: "Enrich export with Hose human actions and opinions in E人工行为 / E人工意见 columns (rejection 2-B, mid-flow modifications, action emojis)" },
|
||||
{ flag: "--start <date>", description: "Filter records by start date (YYYY-MM-DD or ms timestamp)" },
|
||||
{ flag: "--end <date>", description: "Filter records by end date (YYYY-MM-DD or ms timestamp)" },
|
||||
{ flag: "--start-date <date>", description: "Filter records by start date (YYYY-MM-DD or ms timestamp)" },
|
||||
{ flag: "--end-date <date>", description: "Filter records by end date (YYYY-MM-DD or ms timestamp)" },
|
||||
{ flag: "--force", description: "Force export when time range exceeds 180 days" },
|
||||
{ flag: "--status <status>", description: "Filter by system status (e.g. completed, processing)" },
|
||||
{ flag: "--manual-status <status>", description: "Filter by manual approval status (e.g. APPROVED, TERMINATED)" },
|
||||
{ flag: "--completed-only", description: "Only export completed approval runs" },
|
||||
{ flag: "--limit <n>", description: "Maximum number of records to export" },
|
||||
{ flag: "--downloads, --to-downloads", description: "Save exported workbook directly to user's ~/Downloads directory" },
|
||||
{ flag: "--downloads", description: "Save exported workbook directly to user's ~/Downloads directory" },
|
||||
{ flag: "--out <file>", description: "Custom output file path" }
|
||||
]
|
||||
},
|
||||
@@ -515,7 +516,7 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
name: "list",
|
||||
aliases: ["search"],
|
||||
summary: "Search approval records by keyword, dates, or decision status",
|
||||
usage: ["seal-use approval-runs list|search [--query text] [--humanResult 驳回] [--manualApprovalStatus TERMINATED] [--startDate ms] [--endDate ms] [--has-extra-risk] [--limit 20] [--includeBridge true] [--corp <corpId>]"],
|
||||
usage: ["seal-use approval-runs list|search [--query text] [--human-result 驳回] [--manual-approval-status TERMINATED] [--start-date <ms>] [--end-date <ms>] [--has-extra-risk] [--limit 20] [--include-bridge] [--corp <corpId>]"],
|
||||
options: [
|
||||
{ flag: "--has-extra-risk", description: "Filter the fetched page to records with warning/error in result.otherFindings; info is excluded. Includes extraRisks with titles, levels and descriptions." },
|
||||
{ flag: "--limit <n>", description: "Records to scan before local filtering (default 50, maximum 100); no automatic pagination to fill matches" },
|
||||
@@ -597,7 +598,7 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
{
|
||||
name: "bridge",
|
||||
summary: "Inspect browser bridge integration payload",
|
||||
usage: ["seal-use approval-runs bridge [--sourceDocumentSN B26001887] [--corp <corpId>]"]
|
||||
usage: ["seal-use approval-runs bridge [--source-document-sn B26001887] [--corp <corpId>]"]
|
||||
},
|
||||
{
|
||||
name: "replay",
|
||||
@@ -799,9 +800,10 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
usage: ["seal-use simulation wait <batchId> [--timeout 10m] [--poll-interval 2s] [--corp <corpId>]"]
|
||||
},
|
||||
{
|
||||
name: "clean",
|
||||
summary: "Clean simulation batch records",
|
||||
usage: ["seal-use simulation clean <batchId> --yes [--corp <corpId>]"]
|
||||
name: "delete",
|
||||
aliases: ["clean"],
|
||||
summary: "Delete simulation batch records",
|
||||
usage: ["seal-use simulation delete <batchId> --yes [--corp <corpId>]"]
|
||||
},
|
||||
{
|
||||
name: "specifications",
|
||||
@@ -987,9 +989,10 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
usage: ["seal-use preference thinking-depth policies upsert --json '{...}' [--dry-run] [--corp <corpId>]"]
|
||||
},
|
||||
{
|
||||
name: "thinking-depth policies remove",
|
||||
summary: "Remove a thinking depth policy",
|
||||
usage: ["seal-use preference thinking-depth policies remove <policyId> [--dry-run] [--corp <corpId>]"]
|
||||
name: "thinking-depth policies delete",
|
||||
aliases: ["thinking-depth policies remove"],
|
||||
summary: "Delete a thinking depth policy",
|
||||
usage: ["seal-use preference thinking-depth policies delete <policyId> [--dry-run] [--corp <corpId>]"]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -1342,7 +1345,7 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
{
|
||||
name: "",
|
||||
summary: "Inspect knowledge context documents",
|
||||
usage: ["seal-use context [--ruleVersion <versionId|versionNumber|latest>] [--documentLimit 50] [--corp <corpId>]"]
|
||||
usage: ["seal-use context [--rule-version <versionId|versionNumber|latest>] [--document-limit 50] [--corp <corpId>]"]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -1376,7 +1379,7 @@ export const HELP_REGISTRY: AreaHelp[] = [
|
||||
{
|
||||
name: "search",
|
||||
summary: "Search approval knowledge documents by keyword",
|
||||
usage: ["seal-use documents search <keyword> [--maxResults 20] [--corp <corpId>]"]
|
||||
usage: ["seal-use documents search <keyword> [--max-results 20] [--corp <corpId>]"]
|
||||
},
|
||||
{
|
||||
name: "create",
|
||||
|
||||
Reference in new issue
Block a user