fix: expose AgentRun queue dry-run help

This commit is contained in:
Codex
2026-06-10 00:34:30 +00:00
parent 07a716f1ec
commit 8131ca146b
2 changed files with 13 additions and 1 deletions
+9
View File
@@ -19,6 +19,14 @@ assertCondition(
agentRunUsage,
);
assertCondition(
agentRunUsage.some((line) => line.includes("queue submit --json-file <task.json> --dry-run"))
&& agentRunUsage.some((line) => line.includes("queue dispatch <taskId> --json-file <dispatch.json> --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",
],
+4 -1
View File
@@ -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 <task.json>",
"bun scripts/cli.ts agentrun v01 queue submit --json-file <task.json> --dry-run",
"bun scripts/cli.ts agentrun v01 queue dispatch <taskId> --json-file <dispatch.json>",
"bun scripts/cli.ts agentrun v01 queue cancel <taskId> --reason <text>",
"bun scripts/cli.ts agentrun v01 queue dispatch <taskId> --json-file <dispatch.json> --dry-run",
"bun scripts/cli.ts agentrun v01 queue cancel <taskId> --reason <text> --dry-run",
"bun scripts/cli.ts agentrun v01 sessions trace <sessionId> --after-seq 0 --limit 100",
"bun scripts/cli.ts agentrun v01 sessions output <sessionId> --after-seq 0 --limit 100",
"bun scripts/cli.ts agentrun v01 sessions steer <sessionId> --prompt-file <path>",