@mrrlin-dev/mcp 0.4.109 → 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.
Files changed (2) hide show
  1. package/dist/bin.cjs +21 -5
  2. package/package.json +1 -1
package/dist/bin.cjs CHANGED
@@ -44187,10 +44187,11 @@ function threadProcessEnv(childEnv, additions) {
44187
44187
  return childEnv;
44188
44188
  const env = { ...childEnv ?? process.env };
44189
44189
  for (const [key, value] of Object.entries(additions)) {
44190
- if (value === null)
44191
- delete env[key];
44192
- else
44190
+ if (value === null) {
44191
+ Reflect.deleteProperty(env, key);
44192
+ } else {
44193
44193
  env[key] = value;
44194
+ }
44194
44195
  }
44195
44196
  return env;
44196
44197
  }
@@ -61233,6 +61234,9 @@ function errorStatus(err) {
61233
61234
  if (typeof signal === "string") return `signal ${signal}`;
61234
61235
  return null;
61235
61236
  }
61237
+ function isModelRejectionSmokeFailure(raw) {
61238
+ return /\bmodel_not_found\b|\bmodel is not supported\b/i.test(raw);
61239
+ }
61236
61240
  function isAuthLikeSmokeFailure(raw) {
61237
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);
61238
61242
  }
@@ -61278,6 +61282,16 @@ ${errorField(err, "stderr")}`;
61278
61282
  const timedOut = /timed out|ETIMEDOUT/i.test(raw) || errorStatus(err) === "signal SIGTERM";
61279
61283
  const authLikely = isAuthLikeSmokeFailure(raw);
61280
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
+ }
61281
61295
  return {
61282
61296
  ok: false,
61283
61297
  status: timedOut ? "timed_out" : "failed",
@@ -61334,11 +61348,13 @@ function inspectCodexAuthForBridgeUpdate(opts = {}) {
61334
61348
  ["access_token", parsed.tokens?.access_token],
61335
61349
  ["id_token", parsed.tokens?.id_token]
61336
61350
  ];
61337
- const expiries = tokenEntries.flatMap(([kind, token]) => {
61351
+ const allExpiries = tokenEntries.flatMap(([kind, token]) => {
61338
61352
  if (typeof token !== "string" || token.trim() === "") return [];
61339
61353
  const expMs = decodeJwtExpMs(token);
61340
61354
  return expMs === null ? [] : [{ kind, expMs }];
61341
61355
  });
61356
+ const accessExpiries = allExpiries.filter((entry) => entry.kind === "access_token");
61357
+ const expiries = accessExpiries.length > 0 ? accessExpiries : allExpiries;
61342
61358
  const earliest = expiries.reduce(
61343
61359
  (current2, entry) => current2 === null || entry.expMs < current2.expMs ? entry : current2,
61344
61360
  null
@@ -61741,7 +61757,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
61741
61757
  }
61742
61758
 
61743
61759
  // src/_generated/version.ts
61744
- var PKG_VERSION = "0.4.109";
61760
+ var PKG_VERSION = "0.4.111";
61745
61761
 
61746
61762
  // src/receipt-signing.ts
61747
61763
  var import_node_crypto13 = __toESM(require("node:crypto"), 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrrlin-dev/mcp",
3
- "version": "0.4.109",
3
+ "version": "0.4.111",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mrrlin-mcp": "dist/bin.cjs"