feat(lanes): add --qc boot flag + QC_BOOT_ENV for deterministic QC stacks (E1)

This commit is contained in:
2026-08-04 17:51:03 +07:00
parent c37933adfe
commit 31f984c750
6 changed files with 195 additions and 8 deletions
+5 -3
View File
@@ -1813,7 +1813,9 @@ async function cmdLanesRuntime(sub, args) {
}
if (sub === "up") {
const body = laneArgs.includes("--no-build") ? { build: false } : {};
const body = {};
if (laneArgs.includes("--no-build")) body.build = false;
if (laneArgs.includes("--qc")) body.qc = true;
const result = await post(`/api/lanes/${laneId}/up`, body, { allowError: true });
if (result.status) {
console.error(`✖ up lane #${laneId}${result.data?.error?.message || result.status}`);
@@ -2258,8 +2260,8 @@ const COMMAND_GROUPS = [
],
[
"lanes up|down",
"[<id>] [--no-build]",
"Boot or stop the lane's own app stack (--no-build: up only; id defaults to the lane owning this directory)",
"[<id>] [--no-build] [--qc]",
"Boot or stop the lane's own app stack (--no-build: up only, skip the build step; --qc: up only, inject QC_BOOT_ENV for a deterministic stack; id defaults to the lane owning this directory)",
],
["lanes runtime", "[<id>]", "Slot, ports, service health and the last boot error"],
["lanes logs", "[<id>] <svc> [--tail N]", "Tail one of the lane's hook or service logs"],