feat: add AgentRun v0.1 control CLI

This commit is contained in:
Codex
2026-06-01 06:11:47 +00:00
parent 12d79a80bf
commit aa39b7582e
6 changed files with 256 additions and 1 deletions
+9
View File
@@ -27,6 +27,7 @@ import { runServerCleanupCommand } from "./src/server-cleanup";
import { runHwlabCdCommand } from "./src/hwlab-cd";
import { runHwlabG14Command } from "./src/hwlab-g14";
import { runGcCommand } from "./src/gc";
import { runAgentRunCommand } from "./src/agentrun";
const remoteOptions = extractRemoteCliOptions(process.argv.slice(2));
const args = remoteOptions.args;
@@ -303,6 +304,14 @@ async function main(): Promise<void> {
return;
}
if (top === "agentrun") {
const result = await runAgentRunCommand(readConfig(), args.slice(1));
const ok = (result as { ok?: unknown }).ok !== false;
emitJson(commandName, result, ok);
if (!ok) process.exitCode = 1;
return;
}
const config = readConfig();
const autoRemoteCiPublishPlan = autoRemoteCiPublishUserServiceDryRunPlan(config, args);
if (autoRemoteCiPublishPlan.enabled && autoRemoteCiPublishPlan.host !== null) {