diff --git a/scripts/agentrun-cli-contract-test.ts b/scripts/agentrun-cli-contract-test.ts index 602fccca..82d49e84 100644 --- a/scripts/agentrun-cli-contract-test.ts +++ b/scripts/agentrun-cli-contract-test.ts @@ -19,6 +19,14 @@ assertCondition( agentRunUsage, ); +assertCondition( + agentRunUsage.some((line) => line.includes("queue submit --json-file --dry-run")) + && agentRunUsage.some((line) => line.includes("queue dispatch --json-file --dry-run")) + && agentRunUsage.some((line) => line.includes("queue commander --reader-id cli --limit 20")), + "AgentRun help must expose queue dry-run and compact commander usage", + agentRunUsage, +); + const globalHelp = JSON.stringify(rootHelp()); assertCondition( @@ -45,6 +53,7 @@ console.log(JSON.stringify({ ok: true, checks: [ "AgentRun command help exposes cleanup-runs and cleanup-released-pvs", + "AgentRun command help exposes queue dry-run and compact commander usage", "global help indexes AgentRun v0.1 entrypoints", "AgentRun control-plane status degrades empty runtime JSON snippets", ], diff --git a/scripts/src/agentrun.ts b/scripts/src/agentrun.ts index 924ee7ca..6d19c74e 100644 --- a/scripts/src/agentrun.ts +++ b/scripts/src/agentrun.ts @@ -27,9 +27,12 @@ export function agentRunHelp(): unknown { output: "json", usage: [ "bun scripts/cli.ts agentrun v01 queue commander --reader-id cli", + "bun scripts/cli.ts agentrun v01 queue commander --reader-id cli --limit 20", "bun scripts/cli.ts agentrun v01 queue submit --json-file ", + "bun scripts/cli.ts agentrun v01 queue submit --json-file --dry-run", "bun scripts/cli.ts agentrun v01 queue dispatch --json-file ", - "bun scripts/cli.ts agentrun v01 queue cancel --reason ", + "bun scripts/cli.ts agentrun v01 queue dispatch --json-file --dry-run", + "bun scripts/cli.ts agentrun v01 queue cancel --reason --dry-run", "bun scripts/cli.ts agentrun v01 sessions trace --after-seq 0 --limit 100", "bun scripts/cli.ts agentrun v01 sessions output --after-seq 0 --limit 100", "bun scripts/cli.ts agentrun v01 sessions steer --prompt-file ",