fix: AgentRun bridge help prefer stdin input
This commit is contained in:
@@ -20,10 +20,26 @@ assertCondition(
|
||||
);
|
||||
|
||||
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 submit --json-stdin --dry-run"))
|
||||
&& agentRunUsage.some((line) => line.includes("queue dispatch <taskId> --json-stdin --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",
|
||||
"AgentRun help must expose stdin-first queue dry-run and compact commander usage",
|
||||
agentRunUsage,
|
||||
);
|
||||
|
||||
const submitStdinIndex = agentRunUsage.findIndex((line) => line.includes("queue submit --json-stdin"));
|
||||
const submitFileIndex = agentRunUsage.findIndex((line) => line.includes("queue submit --json-file"));
|
||||
const dispatchStdinIndex = agentRunUsage.findIndex((line) => line.includes("queue dispatch <taskId> --json-stdin"));
|
||||
const dispatchFileIndex = agentRunUsage.findIndex((line) => line.includes("queue dispatch <taskId> --json-file"));
|
||||
|
||||
assertCondition(
|
||||
submitStdinIndex >= 0
|
||||
&& dispatchStdinIndex >= 0
|
||||
&& submitFileIndex > submitStdinIndex
|
||||
&& dispatchFileIndex > dispatchStdinIndex
|
||||
&& !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")),
|
||||
"AgentRun help must present heredoc/stdin before reusable file fallbacks",
|
||||
agentRunUsage,
|
||||
);
|
||||
|
||||
@@ -54,6 +70,7 @@ console.log(JSON.stringify({
|
||||
checks: [
|
||||
"AgentRun command help exposes cleanup-runs and cleanup-released-pvs",
|
||||
"AgentRun command help exposes queue dry-run and compact commander usage",
|
||||
"AgentRun command help presents heredoc/stdin before reusable file fallbacks",
|
||||
"global help indexes AgentRun v0.1 entrypoints",
|
||||
"AgentRun control-plane status degrades empty runtime JSON snippets",
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user