@mutmutco/cli 4.3.30 → 4.3.31

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.
Files changed (2) hide show
  1. package/dist/main.cjs +31 -8
  2. package/package.json +1 -1
package/dist/main.cjs CHANGED
@@ -15584,10 +15584,10 @@ var rollout_plan_default = {
15584
15584
  note: "The v4.0.0 stamp happens at cut time (D6e #4463); until then the candidate is the origin/development head artifacts (built cli/dist + npm pack), identity proven by dist content hash (D6a)."
15585
15585
  },
15586
15586
  baseline: {
15587
- version: "4.3.30",
15588
- tag: "v4.3.30",
15589
- commit: "a8f898264f6e",
15590
- npm: "@mutmutco/cli@4.3.30"
15587
+ version: "4.3.31",
15588
+ tag: "v4.3.31",
15589
+ commit: "d171389927fd",
15590
+ npm: "@mutmutco/cli@4.3.31"
15591
15591
  },
15592
15592
  exitCriterion: "fleet-n-of-n",
15593
15593
  hubOnlyShortcut: "forbidden",
@@ -15604,14 +15604,14 @@ var rollout_plan_default = {
15604
15604
  repo: "mutmutco/mmi-hub",
15605
15605
  role: "canary",
15606
15606
  schedule: "train",
15607
- v3Target: "v4.3.30"
15607
+ v3Target: "v4.3.31"
15608
15608
  }
15609
15609
  ],
15610
15610
  rollbackTrigger: "Any red inside the post-contract soak window: `devops train gate` FAIL attributable to the v4 doors, Hub endpoint health probe failure, a pre-v4 client admitted instead of receiving actionable HTTP 426, or npm consumer install/doctor failure on the v4-only dist.",
15611
15611
  rollback: {
15612
15612
  independent: true,
15613
- mechanism: "npm dist-tag latest -> 4.3.30 and redeploy the Hub Lambda from tag v4.3.30 (a8f898264f6e); installed clients repair via `mmi-cli doctor`. No other cohort is touched.",
15614
- v3Target: "v4.3.30 (@mutmutco/cli@4.3.30, tag commit a8f898264f6e \u2014 last known-good release carrying the repo-index v4-only contract)"
15613
+ mechanism: "npm dist-tag latest -> 4.3.31 and redeploy the Hub Lambda from tag v4.3.31 (d171389927fd); installed clients repair via `mmi-cli doctor`. No other cohort is touched.",
15614
+ v3Target: "v4.3.31 (@mutmutco/cli@4.3.31, tag commit d171389927fd \u2014 last known-good release carrying the repo-index v4-only contract)"
15615
15615
  }
15616
15616
  },
15617
15617
  {
@@ -22605,6 +22605,29 @@ async function latestRemoteRcTag(deps) {
22605
22605
  const tag = [...tags.keys()].sort(compareRcTagsNewestFirst)[0];
22606
22606
  return tag ? { tag, sha: tags.get(tag) } : void 0;
22607
22607
  }
22608
+ async function activeRcandLedgerCandidate(deps, cwd) {
22609
+ let path2;
22610
+ try {
22611
+ path2 = releaseLedgerPath(cwd);
22612
+ } catch {
22613
+ return void 0;
22614
+ }
22615
+ let prior;
22616
+ try {
22617
+ prior = parseReleaseLedger((0, import_node_fs24.readFileSync)(path2, "utf8"));
22618
+ } catch {
22619
+ return void 0;
22620
+ }
22621
+ if (prior.lane !== "rcand") return void 0;
22622
+ let liveSha = "";
22623
+ try {
22624
+ liveSha = clean2(await runGitRemoteRead(deps, ["ls-remote", "origin", `refs/tags/${prior.tag}`])).split(/\s+/)[0] ?? "";
22625
+ } catch {
22626
+ return void 0;
22627
+ }
22628
+ if (liveSha.toLowerCase() !== prior.tagSha.toLowerCase()) return void 0;
22629
+ return { tag: prior.tag, sha: prior.tagSha };
22630
+ }
22608
22631
  async function probeAncestor(deps, ancestor, descendant, label) {
22609
22632
  try {
22610
22633
  await deps.run("git", ["merge-base", "--is-ancestor", ancestor, descendant]);
@@ -22628,7 +22651,7 @@ async function runRcandResume(deps, options = {}) {
22628
22651
  throw new Error("rcand --resume: origin/rc does not exist \u2014 there is no candidate branch to resume");
22629
22652
  }
22630
22653
  const deployModel = await preflight(deps, ctx, "rc", meta);
22631
- const candidate = await latestRemoteRcTag(deps);
22654
+ const candidate = await activeRcandLedgerCandidate(deps, process.cwd()) ?? await latestRemoteRcTag(deps);
22632
22655
  if (!candidate) {
22633
22656
  throw new Error("rcand --resume: no public v*-rc.* tag found on origin \u2014 there is no tagged candidate to resume");
22634
22657
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutmutco/cli",
3
- "version": "4.3.30",
3
+ "version": "4.3.31",
4
4
  "description": "MMI Future CLI — the org dev toolbox and shared cross-IDE engine for every registry-declared MMI coding surface.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",