@mutmutco/codex-plugin 4.5.107 → 4.5.108

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mmi",
3
- "version": "4.5.107",
3
+ "version": "4.5.108",
4
4
  "mmiCompat": "4.x",
5
5
  "description": "MMI workflow skills and org gates delivery.",
6
6
  "author": {
package/cli/dist/main.cjs CHANGED
@@ -5759,7 +5759,9 @@ var APP_POLL_PERMISSIONS = {
5759
5759
  issues: "read",
5760
5760
  checks: "read",
5761
5761
  statuses: "read",
5762
- actions: "read"
5762
+ actions: "read",
5763
+ // #7978: GET branches/{b}/protection/required_status_checks needs Administration: read; read-only.
5764
+ administration: "read"
5763
5765
  };
5764
5766
  var APP_JWT_BACKDATE_S = 60;
5765
5767
  var APP_JWT_TTL_S = 9 * 60;
@@ -6415,6 +6417,18 @@ async function defaultGhApi(args) {
6415
6417
  lastPollSource = source;
6416
6418
  return cached.body;
6417
6419
  }
6420
+ if (source === "app" && appToken && status === 403 && /Resource not accessible by integration/i.test(describeRefusal(errOut))) {
6421
+ console.warn(`poll credential: App token lacks permission for this read (HTTP 403, response: ${describeRefusal(errOut)}) \u2014 this read uses the ambient user token; the App pool stays in use (#7978)`);
6422
+ try {
6423
+ const { stdout: userOut } = await execFileP("gh", ["api", "--include", ...args], { timeout: REST_GH_TIMEOUT_MS });
6424
+ notePoolHeaders("user", userOut, Date.now());
6425
+ return parseIncludedOutput(userOut).body;
6426
+ } catch (userErr) {
6427
+ const uo = userErr.stdout;
6428
+ if (typeof uo === "string") notePoolHeaders("user", uo, Date.now());
6429
+ throw userErr;
6430
+ }
6431
+ }
6418
6432
  if (source === "app" && appToken && (status === 403 || status === 429)) {
6419
6433
  noteAppPollResponse(parseRateLimitHeaders(errOut), true, Date.now());
6420
6434
  console.warn(`poll credential: App pool refused the read (HTTP ${status}, ${appPoolDetail()}; response: ${describeRefusal(errOut)}) \u2014 REST poll reads switch to the ambient user token until the App pool resets (#7843)`);
@@ -17702,10 +17716,10 @@ var rollout_plan_default = {
17702
17716
  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)."
17703
17717
  },
17704
17718
  baseline: {
17705
- version: "4.5.107",
17706
- tag: "v4.5.107",
17707
- commit: "a14b5368bc55",
17708
- npm: "@mutmutco/cli@4.5.107"
17719
+ version: "4.5.108",
17720
+ tag: "v4.5.108",
17721
+ commit: "35c9217e8f1c",
17722
+ npm: "@mutmutco/cli@4.5.108"
17709
17723
  },
17710
17724
  exitCriterion: "fleet-n-of-n",
17711
17725
  hubOnlyShortcut: "forbidden",
@@ -17722,14 +17736,14 @@ var rollout_plan_default = {
17722
17736
  repo: "mutmutco/mmi-hub",
17723
17737
  role: "canary",
17724
17738
  schedule: "train",
17725
- v3Target: "v4.5.107"
17739
+ v3Target: "v4.5.108"
17726
17740
  }
17727
17741
  ],
17728
17742
  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.",
17729
17743
  rollback: {
17730
17744
  independent: true,
17731
- mechanism: "npm dist-tag latest -> 4.5.107 and redeploy the Hub Lambda from tag v4.5.107 (a14b5368bc55); installed clients repair via `mmi-cli doctor`. No other cohort is touched.",
17732
- v3Target: "v4.5.107 (@mutmutco/cli@4.5.107, tag commit a14b5368bc55 \u2014 last known-good release carrying the repo-index v4-only contract)"
17745
+ mechanism: "npm dist-tag latest -> 4.5.108 and redeploy the Hub Lambda from tag v4.5.108 (35c9217e8f1c); installed clients repair via `mmi-cli doctor`. No other cohort is touched.",
17746
+ v3Target: "v4.5.108 (@mutmutco/cli@4.5.108, tag commit 35c9217e8f1c \u2014 last known-good release carrying the repo-index v4-only contract)"
17733
17747
  }
17734
17748
  },
17735
17749
  {
package/cli/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutmutco/cli",
3
- "version": "4.5.107",
3
+ "version": "4.5.108",
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutmutco/codex-plugin",
3
- "version": "4.5.107",
3
+ "version": "4.5.108",
4
4
  "description": "MMI workflow skills and org gates delivery.",
5
5
  "author": {
6
6
  "name": "MMI Future",