@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.
- package/.codex-plugin/plugin.json +1 -1
- package/cli/dist/main.cjs +22 -8
- package/cli/package.json +1 -1
- package/package.json +1 -1
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.
|
|
17706
|
-
tag: "v4.5.
|
|
17707
|
-
commit: "
|
|
17708
|
-
npm: "@mutmutco/cli@4.5.
|
|
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.
|
|
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.
|
|
17732
|
-
v3Target: "v4.5.
|
|
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