@mrrlin-dev/mcp 0.4.110 → 0.4.111
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/dist/bin.cjs +17 -2
- package/package.json +1 -1
package/dist/bin.cjs
CHANGED
|
@@ -61234,6 +61234,9 @@ function errorStatus(err) {
|
|
|
61234
61234
|
if (typeof signal === "string") return `signal ${signal}`;
|
|
61235
61235
|
return null;
|
|
61236
61236
|
}
|
|
61237
|
+
function isModelRejectionSmokeFailure(raw) {
|
|
61238
|
+
return /\bmodel_not_found\b|\bmodel is not supported\b/i.test(raw);
|
|
61239
|
+
}
|
|
61237
61240
|
function isAuthLikeSmokeFailure(raw) {
|
|
61238
61241
|
return /\baccess token\b|\bauth(?:entication)?\b|\binvalid[_ -]refresh[_ -]token\b|\brefresh token\b|\bsign in again\b|\blog out and sign in\b|\bnot logged in\b|\bunauthori[sz]ed\b/i.test(raw);
|
|
61239
61242
|
}
|
|
@@ -61279,6 +61282,16 @@ ${errorField(err, "stderr")}`;
|
|
|
61279
61282
|
const timedOut = /timed out|ETIMEDOUT/i.test(raw) || errorStatus(err) === "signal SIGTERM";
|
|
61280
61283
|
const authLikely = isAuthLikeSmokeFailure(raw);
|
|
61281
61284
|
const statusText = errorStatus(err);
|
|
61285
|
+
if (!authLikely && !timedOut && isModelRejectionSmokeFailure(raw)) {
|
|
61286
|
+
return {
|
|
61287
|
+
ok: true,
|
|
61288
|
+
status: "ok",
|
|
61289
|
+
command,
|
|
61290
|
+
timeoutMs,
|
|
61291
|
+
authLikely: false,
|
|
61292
|
+
detail: "Codex CLI authenticated; the backend only rejected the smoke model, which does not affect the bridge update."
|
|
61293
|
+
};
|
|
61294
|
+
}
|
|
61282
61295
|
return {
|
|
61283
61296
|
ok: false,
|
|
61284
61297
|
status: timedOut ? "timed_out" : "failed",
|
|
@@ -61335,11 +61348,13 @@ function inspectCodexAuthForBridgeUpdate(opts = {}) {
|
|
|
61335
61348
|
["access_token", parsed.tokens?.access_token],
|
|
61336
61349
|
["id_token", parsed.tokens?.id_token]
|
|
61337
61350
|
];
|
|
61338
|
-
const
|
|
61351
|
+
const allExpiries = tokenEntries.flatMap(([kind, token]) => {
|
|
61339
61352
|
if (typeof token !== "string" || token.trim() === "") return [];
|
|
61340
61353
|
const expMs = decodeJwtExpMs(token);
|
|
61341
61354
|
return expMs === null ? [] : [{ kind, expMs }];
|
|
61342
61355
|
});
|
|
61356
|
+
const accessExpiries = allExpiries.filter((entry) => entry.kind === "access_token");
|
|
61357
|
+
const expiries = accessExpiries.length > 0 ? accessExpiries : allExpiries;
|
|
61343
61358
|
const earliest = expiries.reduce(
|
|
61344
61359
|
(current2, entry) => current2 === null || entry.expMs < current2.expMs ? entry : current2,
|
|
61345
61360
|
null
|
|
@@ -61742,7 +61757,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
|
|
|
61742
61757
|
}
|
|
61743
61758
|
|
|
61744
61759
|
// src/_generated/version.ts
|
|
61745
|
-
var PKG_VERSION = "0.4.
|
|
61760
|
+
var PKG_VERSION = "0.4.111";
|
|
61746
61761
|
|
|
61747
61762
|
// src/receipt-signing.ts
|
|
61748
61763
|
var import_node_crypto13 = __toESM(require("node:crypto"), 1);
|