docs: freeze cicd special-case boundaries

This commit is contained in:
Codex
2026-05-20 03:39:52 +00:00
parent 595de3d320
commit e28cc6ba2d
7 changed files with 93 additions and 6 deletions
+5 -2
View File
@@ -1,6 +1,6 @@
import { readConfig } from "./src/config";
import { debugDispatch, debugHealth, debugTask, isDebugDispatchCommand, type DebugDispatchCommand } from "./src/debug";
import { isRebuildableService, rebuildService, stackLogs, stackStatus, startStack, stopStack } from "./src/docker";
import { isRebuildableService, rebuildService, stackLogs, stackStatus, startStack, stopStack, unsupportedRebuildService } from "./src/docker";
import { parseE2ERunOptions, runE2E } from "./src/e2e";
import { emitError, emitJson } from "./src/output";
import { jobWithTail, listJobs, listJobsSummary, readJob, runJob } from "./src/jobs";
@@ -197,7 +197,10 @@ async function main(): Promise<void> {
}
if (sub === "rebuild") {
if (!isRebuildableService(third)) {
throw new Error("server rebuild requires one of: backend-core, frontend, dev-frontend-proxy, provider-gateway, todo-note, code-queue-mgr, project-manager, baidu-netdisk, oa-event-flow");
const result = unsupportedRebuildService(third);
emitJson(commandName, result, false);
process.exitCode = 1;
return;
}
emitJson(commandName, rebuildService(config, third));
return;