fix: support AgentRun bridge stdin inputs
This commit is contained in:
+11
-1
@@ -29,13 +29,15 @@ export function agentRunHelp(): unknown {
|
||||
"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>",
|
||||
"cat task.json | bun scripts/cli.ts agentrun v01 queue submit --json-stdin",
|
||||
"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>",
|
||||
"cat dispatch.json | bun scripts/cli.ts agentrun v01 queue dispatch <taskId> --json-stdin",
|
||||
"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>",
|
||||
"bun scripts/cli.ts agentrun v01 sessions steer <sessionId> --prompt-stdin",
|
||||
"bun scripts/cli.ts agentrun v01 sessions read <sessionId> --reader-id cli",
|
||||
"bun scripts/cli.ts agentrun v01 control-plane status",
|
||||
"bun scripts/cli.ts agentrun v01 control-plane status --full",
|
||||
@@ -1527,6 +1529,14 @@ function prepareOfficialAgentRunCliArgs(args: string[]): PreparedAgentRunCliArgs
|
||||
prepared.push("--prompt-file", materialize("--prompt-stdin", "stdin", stdin()));
|
||||
continue;
|
||||
}
|
||||
if (arg === "--json-stdin") {
|
||||
prepared.push("--json-file", materialize("--json-stdin", "stdin", stdin()));
|
||||
continue;
|
||||
}
|
||||
if (arg === "--runner-json-stdin") {
|
||||
prepared.push("--runner-json-file", materialize("--runner-json-stdin", "stdin", stdin()));
|
||||
continue;
|
||||
}
|
||||
prepared.push(arg);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user