feat: add cicd branch follower

This commit is contained in:
Codex
2026-07-03 03:36:58 +00:00
parent 9265d6a38b
commit f934d0b3cd
7 changed files with 1966 additions and 1 deletions
+15
View File
@@ -1,4 +1,5 @@
// SPEC: PJ2026-01060509 出站诊断 draft-2026-06-26-p8-egress-job-friction.
// SPEC: PJ2026-01060703 CI/CD branch follower draft-2026-07-03-p0-branch-follower.
// UniDesk CLI dispatcher with bounded server lifecycle and job drill-down output.
import { readConfig } from "./src/config";
import { debugDispatch, debugEgressProxy, debugHealth, debugSshPool, debugTask, isDebugDispatchCommand, type DebugDispatchCommand } from "./src/debug";
@@ -267,6 +268,20 @@ async function main(): Promise<void> {
return;
}
if (top === "cicd") {
const { runCicdCommand } = await import("./src/cicd");
const result = await runCicdCommand(null, args.slice(1));
const ok = (result as { ok?: unknown }).ok !== false;
if (isRenderedCliResult(result)) {
emitText(result.renderedText, result.command || commandName);
if (!ok) process.exitCode = 1;
return;
}
emitJson(commandName, result, ok);
if (!ok) process.exitCode = 1;
return;
}
if (top === "agentrun") {
const { runAgentRunCommand } = await import("./src/agentrun");
const agentRunArgs = args.slice(1);