diff --git a/src/fable5/factory-status.test.ts b/src/fable5/factory-status.test.ts index 34032f9..da3dcf5 100644 --- a/src/fable5/factory-status.test.ts +++ b/src/fable5/factory-status.test.ts @@ -8,11 +8,11 @@ describe("factory check", () => { it("prints live counts from response data", () => { const out = formatFactoryCheck( { status: "ok", phase: 4, containers: 24, agents: 6, infra: 14, monitoring: 5, skills: 63 }, - { status: "ok", service: "deploy-webhook", phase: 4 }, + { status: "ok", service: "git-proxy-deploy", phase: 4 }, ); expect(out).toContain("Containers: 24"); - expect(out).toContain("Deploy webhook: ok (deploy-webhook)"); + expect(out).toContain("Deploy route: ok (git-proxy-deploy)"); }); it("accepts factory-status 200", async () => { diff --git a/src/fable5/factory-status.ts b/src/fable5/factory-status.ts index 301f336..d6481f6 100644 --- a/src/fable5/factory-status.ts +++ b/src/fable5/factory-status.ts @@ -75,7 +75,7 @@ async function checkDeployRoute(fetcher: FetchLike, timeoutMs: number): Promise< try { const res = await fetcher(DEPLOY_HEALTH_URL, { method: "POST", signal: controller.signal }); if (res.status !== 401 && !res.ok) throw new Error(`${DEPLOY_HEALTH_URL} returned ${res.status}`); - return { status: "ok", service: "deploy-webhook" }; + return { status: "ok", service: "git-proxy-deploy" }; } catch (error) { if (error instanceof Error && error.name === "AbortError") throw new Error(`${DEPLOY_HEALTH_URL} timed out`); throw error; @@ -108,7 +108,7 @@ export function formatFactoryCheck(factory: FactoryStatus, deploy: DeployHealth, ` Infra: ${factory.infra ?? "unknown"}`, ` Monitoring: ${factory.monitoring ?? "unknown"}`, ` Skills: ${factory.skills ?? "unknown"}`, - ` Deploy webhook: ${deploy.status ?? "unknown"}${deploy.service ? ` (${deploy.service})` : ""}`, + ` Deploy route: ${deploy.status ?? "unknown"}${deploy.service ? ` (${deploy.service})` : ""}`, ...errors.map((e) => ` Warning: ${e}`), "", ].join("\n"); diff --git a/src/index.ts b/src/index.ts index 1b30a4b..71f1465 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1524,7 +1524,7 @@ async function printFactoryCheck(runId?: string): Promise<{ ready: boolean }> { factory .command("check") - .description("Check factory status and deploy-webhook health") + .description("Check factory status and 8099 deploy route health") .option("--run ", "Emit factory check event to .runs//channel.jsonl") .action(async (opts: { run?: string }) => { await printFactoryCheck(opts.run); @@ -1620,7 +1620,7 @@ factory .description("Post an approved command to the factory deploy webhook") .option("--token ", "Deploy token; defaults to FACTORY_DEPLOY_TOKEN or DEPLOY_TOKEN") .requiredOption("--gate-receipt ", "ZTE/factory gate receipt JSONL containing a passed status") - .option("--url ", "Deploy webhook URL", "http://77.42.112.29:8099/deploy") + .option("--url ", "Deploy route URL", "http://77.42.112.29:8099/deploy") .option("--out ", "Deploy receipt path") .option("--yes", "Confirm this is an approved deploy command") .option("--run ", "Emit deploy receipt event to .runs//channel.jsonl")