@mutmutco/cli 4.5.236 → 4.6.0

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 +16 -8
  2. package/package.json +1 -1
package/dist/main.cjs CHANGED
@@ -27280,10 +27280,10 @@ var rollout_plan_default = {
27280
27280
  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)."
27281
27281
  },
27282
27282
  baseline: {
27283
- version: "4.5.236",
27284
- tag: "v4.5.236",
27285
- commit: "b28d6f0940ce",
27286
- npm: "@mutmutco/cli@4.5.236"
27283
+ version: "4.6.0",
27284
+ tag: "v4.6.0",
27285
+ commit: "72a2b5df3188",
27286
+ npm: "@mutmutco/cli@4.6.0"
27287
27287
  },
27288
27288
  exitCriterion: "fleet-n-of-n",
27289
27289
  hubOnlyShortcut: "forbidden",
@@ -27300,14 +27300,14 @@ var rollout_plan_default = {
27300
27300
  repo: "mutmutco/mmi-hub",
27301
27301
  role: "canary",
27302
27302
  schedule: "train",
27303
- v3Target: "v4.5.236"
27303
+ v3Target: "v4.6.0"
27304
27304
  }
27305
27305
  ],
27306
27306
  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.",
27307
27307
  rollback: {
27308
27308
  independent: true,
27309
- mechanism: "npm dist-tag latest -> 4.5.236 and redeploy the Hub Lambda from tag v4.5.236 (b28d6f0940ce); installed clients repair via `mmi-cli doctor`. No other cohort is touched.",
27310
- v3Target: "v4.5.236 (@mutmutco/cli@4.5.236, tag commit b28d6f0940ce \u2014 last known-good release carrying the repo-index v4-only contract)"
27309
+ mechanism: "npm dist-tag latest -> 4.6.0 and redeploy the Hub Lambda from tag v4.6.0 (72a2b5df3188); installed clients repair via `mmi-cli doctor`. No other cohort is touched.",
27310
+ v3Target: "v4.6.0 (@mutmutco/cli@4.6.0, tag commit 72a2b5df3188 \u2014 last known-good release carrying the repo-index v4-only contract)"
27311
27311
  }
27312
27312
  },
27313
27313
  {
@@ -52092,7 +52092,15 @@ async function submitQueueAdmission(pr, repo, head, read, write, options, resume
52092
52092
  }
52093
52093
  let receipt = journal.receipt;
52094
52094
  let response;
52095
- if (receipt && receipt.state !== "failed") {
52095
+ let superseded = false;
52096
+ if (receipt && (receipt.state === "enqueued" || receipt.state === "merged") && receipt.head.toLowerCase() !== head.toLowerCase()) {
52097
+ try {
52098
+ const observed = await readPrMergeQueue(pr, repo, read);
52099
+ superseded = observed.state === "OPEN" && !observed.isInMergeQueue;
52100
+ } catch {
52101
+ }
52102
+ }
52103
+ if (receipt && receipt.state !== "failed" && !superseded) {
52096
52104
  if (receipt.state === "enqueued" || receipt.state === "merged") return reconcile(`reconcile-needed for ${repo}#${pr}, submitted head ${receipt.head}, operation ${receipt.uuid ?? "completed immediately"}: admission completed but current membership is absent; inspect the exact queue candidate/ejection before a new intent`, receipt.state === "enqueued");
52097
52105
  if (!receipt.uuid) return reconcile(`the previous send for ${repo}#${pr}, submitted head ${receipt.head}, has no saved operation UUID`);
52098
52106
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutmutco/cli",
3
- "version": "4.5.236",
3
+ "version": "4.6.0",
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",