fix: expose agentrun dispatch resource
This commit is contained in:
@@ -45,6 +45,7 @@ assertCondition(
|
||||
agentRunUsage.some((line) => line.includes("agentrun result run/<runId> --command <commandId>"))
|
||||
&& agentRunUsage.some((line) => line.includes("agentrun ack task/<taskId> --reader-id cli"))
|
||||
&& agentRunUsage.some((line) => line.includes("agentrun cancel task/<taskId> --reason <text> --dry-run"))
|
||||
&& agentRunUsage.some((line) => line.includes("agentrun dispatch task/<taskId>"))
|
||||
&& agentRunUsage.some((line) => line.includes("agentrun create task --aipod Artificer --prompt-stdin"))
|
||||
&& agentRunUsage.some((line) => line.includes("agentrun apply -f - --dry-run"))
|
||||
&& agentRunUsage.some((line) => line.includes("agentrun steer session/<sessionId> --prompt-stdin"))
|
||||
@@ -62,7 +63,7 @@ assertCondition(
|
||||
const globalHelp = JSON.stringify(rootHelp());
|
||||
|
||||
assertCondition(
|
||||
globalHelp.includes("agentrun get|describe|events|logs|result|ack|cancel|create|apply|steer|send"),
|
||||
globalHelp.includes("agentrun get|describe|events|logs|result|ack|cancel|dispatch|create|apply|steer|send"),
|
||||
"global help must index AgentRun v0.1 entrypoints",
|
||||
rootHelp(),
|
||||
);
|
||||
@@ -98,6 +99,14 @@ assertCondition(
|
||||
"AgentRun resource parser must parse verb-level flags such as apply -f - before requiring runtime config",
|
||||
);
|
||||
|
||||
assertCondition(
|
||||
agentRunSource.includes('if (verb === "dispatch") return await resourceDispatch(config, command, action, actionArgs, options);')
|
||||
&& agentRunSource.includes('runOfficialAgentRunCli(config, "queue", ["dispatch", ref.name')
|
||||
&& agentRunSource.includes('"list", "--state", taskListState(options)')
|
||||
&& agentRunSource.includes('["commander", "--reader-id", options.readerId'),
|
||||
"AgentRun resources must wrap task dispatch and keep default get tasks on active list visibility",
|
||||
);
|
||||
|
||||
assertCondition(
|
||||
agentRunSource.includes("const effectiveLimit = options.tail ?? options.limit;")
|
||||
&& agentRunSource.includes("return renderEventLike(command, result, { ...options, limit: effectiveLimit }, \"Log\""),
|
||||
@@ -124,6 +133,7 @@ console.log(JSON.stringify({
|
||||
"AgentRun CLI bridge selects remote frontend backend in runner/no-Docker environments",
|
||||
"AgentRun CLI bridge keeps AgentRun failures distinct from bridge failures",
|
||||
"AgentRun resource parser supports apply -f -",
|
||||
"AgentRun resource task dispatch and active task list visibility",
|
||||
"AgentRun logs tail controls page limit",
|
||||
"AgentRun dry-run mutations keep resource-command follow-up",
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user