@mutmutco/cli 4.5.172 → 4.5.173

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 +20 -9
  2. package/package.json +1 -1
package/dist/main.cjs CHANGED
@@ -14725,12 +14725,23 @@ async function markStaleClaimStamps(scope, readComments, options = {}) {
14725
14725
  const actor = options.actor ?? describeSessionIdentity();
14726
14726
  const now = options.now ?? Date.now();
14727
14727
  const promoted = [];
14728
- for (const bucket of ["userOwned", "claimable", "unownedInFlight", "taken"]) {
14728
+ const buckets = ["userOwned", "claimable", "unownedInFlight", "taken"];
14729
+ const issues = buckets.flatMap((bucket) => scope[bucket]).filter((item) => item.contentType === "Issue");
14730
+ const read = /* @__PURE__ */ new Map();
14731
+ let next = 0;
14732
+ const worker = async () => {
14733
+ while (next < issues.length) {
14734
+ const item = issues[next++];
14735
+ read.set(item, await readComments(item).catch(() => void 0));
14736
+ }
14737
+ };
14738
+ await Promise.all(Array.from({ length: Math.min(WRITE_PROBE_CONCURRENCY, issues.length) }, () => worker()));
14739
+ for (const bucket of buckets) {
14729
14740
  const kept = [];
14730
14741
  for (const item of scope[bucket]) {
14731
14742
  kept.push(item);
14732
14743
  if (item.contentType !== "Issue") continue;
14733
- const comments = await readComments(item).catch(() => void 0);
14744
+ const comments = read.get(item);
14734
14745
  const marker = comments ? latestClaimMarker(comments) : void 0;
14735
14746
  if (!marker) continue;
14736
14747
  const prs = (options.pullRequests ?? []).filter((pr) => pr.closesIssues.some((ref) => ref.toLowerCase() === item.ref.toLowerCase()));
@@ -19093,10 +19104,10 @@ var rollout_plan_default = {
19093
19104
  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)."
19094
19105
  },
19095
19106
  baseline: {
19096
- version: "4.5.172",
19097
- tag: "v4.5.172",
19098
- commit: "d776fa5eb182",
19099
- npm: "@mutmutco/cli@4.5.172"
19107
+ version: "4.5.173",
19108
+ tag: "v4.5.173",
19109
+ commit: "065efddb8d28",
19110
+ npm: "@mutmutco/cli@4.5.173"
19100
19111
  },
19101
19112
  exitCriterion: "fleet-n-of-n",
19102
19113
  hubOnlyShortcut: "forbidden",
@@ -19113,14 +19124,14 @@ var rollout_plan_default = {
19113
19124
  repo: "mutmutco/mmi-hub",
19114
19125
  role: "canary",
19115
19126
  schedule: "train",
19116
- v3Target: "v4.5.172"
19127
+ v3Target: "v4.5.173"
19117
19128
  }
19118
19129
  ],
19119
19130
  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.",
19120
19131
  rollback: {
19121
19132
  independent: true,
19122
- mechanism: "npm dist-tag latest -> 4.5.172 and redeploy the Hub Lambda from tag v4.5.172 (d776fa5eb182); installed clients repair via `mmi-cli doctor`. No other cohort is touched.",
19123
- v3Target: "v4.5.172 (@mutmutco/cli@4.5.172, tag commit d776fa5eb182 \u2014 last known-good release carrying the repo-index v4-only contract)"
19133
+ mechanism: "npm dist-tag latest -> 4.5.173 and redeploy the Hub Lambda from tag v4.5.173 (065efddb8d28); installed clients repair via `mmi-cli doctor`. No other cohort is touched.",
19134
+ v3Target: "v4.5.173 (@mutmutco/cli@4.5.173, tag commit 065efddb8d28 \u2014 last known-good release carrying the repo-index v4-only contract)"
19124
19135
  }
19125
19136
  },
19126
19137
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutmutco/cli",
3
- "version": "4.5.172",
3
+ "version": "4.5.173",
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",