@m8t-stack/cli 0.2.142 → 0.2.144

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1464,7 +1464,7 @@ function installFoundryDnsShim() {
1464
1464
  }
1465
1465
 
1466
1466
  // src/lib/package-version.ts
1467
- var CLI_VERSION = "0.2.142";
1467
+ var CLI_VERSION = "0.2.144";
1468
1468
 
1469
1469
  // src/lib/render-error.ts
1470
1470
  init_errors();
@@ -32991,7 +32991,8 @@ var STATUS_DOC_SPEC = obj({
32991
32991
  platformVersion: opt(str4(), "The release the engine stamped, e.g. `platform-v0.7.8`. Absent when the engine could not resolve one."),
32992
32992
  telemetryIdentity: opt(str4()),
32993
32993
  unreleasedDebugGateway: opt(str4(), "Unreleased-debug installs only: the gateway image actually deployed \u2014 by tag on the no-manifest path, which is the only one the CLI can produce. Such an install writes no platform stamp on purpose, so this is the only record of what it ran."),
32994
- unreleasedDebugExecutor: opt(str4(), "Unreleased-debug installs only: the executor image actually deployed, as passed to the executor deploy. Absent when no executor was deployed.")
32994
+ unreleasedDebugExecutor: opt(str4(), "Unreleased-debug installs only: the executor image actually deployed, as passed to the executor deploy. Absent when no executor was deployed."),
32995
+ githubDeclined: opt(bool(), "True when the founder explicitly declined the GitHub step, so the platform installed with no brain repo and the finish surface should offer connect-later. ABSENT rather than false otherwise \u2014 including on a brain-less rig run, which reaches the same shape with no founder behind it. Read this rather than inferring the same fact from an empty `brains`.")
32995
32996
  }),
32996
32997
  "Present only on a `done` document."
32997
32998
  ),
@@ -33058,6 +33059,33 @@ function explainRejection(r) {
33058
33059
  }
33059
33060
  }
33060
33061
 
33062
+ // ../../packages/install-contract/src/phases.ts
33063
+ var INSTALL_PHASES = [
33064
+ { name: "preflight", index: 1, always: true },
33065
+ { name: "foundry-create", index: 2, always: true },
33066
+ { name: "deploy", index: 3, always: true },
33067
+ { name: "verify-health", index: 4, always: true },
33068
+ { name: "deploy-model", index: 5, always: true },
33069
+ { name: "deploy-advisors", index: 6, always: true },
33070
+ {
33071
+ name: "create-brains",
33072
+ index: 7,
33073
+ always: false,
33074
+ skippedWhen: "skips_github \u2014 either SKIP_BRAINS=true (test and CI rigs) or GITHUB_DECLINED=true (a founder declined the GitHub step on the install page, which is a SUPPORTED paved-path install that completes platform-only)"
33075
+ },
33076
+ { name: "a2a-wire", index: 8, always: true }
33077
+ ];
33078
+ var TERMINAL_PHASE = "done";
33079
+ var CONVERGE_PHASE = "converge";
33080
+ var UNKNOWN_PHASE = "unknown";
33081
+ var ALL_PHASE_NAMES = [
33082
+ ...INSTALL_PHASES.map((p) => p.name),
33083
+ TERMINAL_PHASE,
33084
+ CONVERGE_PHASE,
33085
+ UNKNOWN_PHASE
33086
+ ];
33087
+ var INSTALL_PHASE_NAMES = INSTALL_PHASES.map((p) => p.name);
33088
+
33061
33089
  // ../../packages/install-contract/src/events.ts
33062
33090
  var EVENT_SCHEMA_VERSION = 1;
33063
33091
  var EVENT_COMMANDS = [
@@ -36893,6 +36921,22 @@ function relay(events, doc, seenPhases, seenWarnings) {
36893
36921
  seenWarnings.add(key3);
36894
36922
  events.warn(w.phase, w.text, { at: w.at });
36895
36923
  }
36924
+ if (doc.status === "done" && doc.history !== void 0) {
36925
+ const ran = new Set(doc.history.map((h) => h.phase));
36926
+ for (const p of INSTALL_PHASES) {
36927
+ if (p.always || ran.has(p.name)) continue;
36928
+ if (skipNotCorroboratedByResult(p.name, doc)) continue;
36929
+ const skipKey = `skipped|${p.name}`;
36930
+ if (seenPhases.has(skipKey)) continue;
36931
+ seenPhases.add(skipKey);
36932
+ events.skipped(p.name, void 0, {
36933
+ phaseIndex: p.index,
36934
+ phaseIndexSource: "registry",
36935
+ phaseTotal: doc.phaseTotal,
36936
+ ...doc.result?.githubDeclined === true ? { githubDeclined: true } : {}
36937
+ });
36938
+ }
36939
+ }
36896
36940
  const key2 = `${doc.phase}|${String(doc.phaseIndex)}`;
36897
36941
  if (!seenPhases.has(key2)) {
36898
36942
  seenPhases.add(key2);
@@ -36902,6 +36946,14 @@ function relay(events, doc, seenPhases, seenWarnings) {
36902
36946
  });
36903
36947
  }
36904
36948
  }
36949
+ function skipNotCorroboratedByResult(phase, doc) {
36950
+ if (phase === "create-brains") {
36951
+ const brains = doc.result?.brains;
36952
+ if (brains === void 0) return true;
36953
+ return brains.length > 0;
36954
+ }
36955
+ return true;
36956
+ }
36905
36957
  function formatStatus(d) {
36906
36958
  const head = `${d.status.toUpperCase()} \u2014 ${d.phase} (${String(d.phaseIndex)}/${String(d.phaseTotal)})${d.detail ? ` \u2014 ${d.detail}` : ""}
36907
36959
  `;