nexus-agents 2.99.0 → 2.100.1

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 (33) hide show
  1. package/dist/{chunk-VPH2M5H7.js → chunk-GEXFJOLK.js} +4 -4
  2. package/dist/{chunk-VPH2M5H7.js.map → chunk-GEXFJOLK.js.map} +1 -1
  3. package/dist/{chunk-6IHEDRKI.js → chunk-H4LBBFCO.js} +2 -2
  4. package/dist/{chunk-WHFCVKAV.js → chunk-NZC5NLUD.js} +3 -3
  5. package/dist/{chunk-EM7NUGMG.js → chunk-P453545L.js} +21 -2
  6. package/dist/chunk-P453545L.js.map +1 -0
  7. package/dist/{chunk-AN3IGMJT.js → chunk-TYELRYRO.js} +9 -4
  8. package/dist/chunk-TYELRYRO.js.map +1 -0
  9. package/dist/{chunk-O6EXYWHP.js → chunk-VXNN3JKU.js} +144 -82
  10. package/dist/{chunk-O6EXYWHP.js.map → chunk-VXNN3JKU.js.map} +1 -1
  11. package/dist/cli.js +14 -9
  12. package/dist/cli.js.map +1 -1
  13. package/dist/{consensus-vote-5D7FNWYM.js → consensus-vote-PGOS5AA6.js} +3 -3
  14. package/dist/{dist-75MXB4R3.js → dist-NGFMLKZR.js} +2232 -1558
  15. package/dist/dist-NGFMLKZR.js.map +1 -0
  16. package/dist/{expert-bridge-EOVHUCJ4.js → expert-bridge-L25WFHQF.js} +2 -2
  17. package/dist/{factory-NJRJAZKK.js → factory-PVN7DDNZ.js} +2 -2
  18. package/dist/index.d.ts +27 -0
  19. package/dist/index.js +6 -6
  20. package/dist/{registry-command-AX7Z4K4W.js → registry-command-5L7I44JA.js} +31 -8
  21. package/dist/registry-command-5L7I44JA.js.map +1 -0
  22. package/dist/{setup-command-PHTP43V7.js → setup-command-COISAIOH.js} +4 -4
  23. package/package.json +10 -10
  24. package/dist/chunk-AN3IGMJT.js.map +0 -1
  25. package/dist/chunk-EM7NUGMG.js.map +0 -1
  26. package/dist/dist-75MXB4R3.js.map +0 -1
  27. package/dist/registry-command-AX7Z4K4W.js.map +0 -1
  28. /package/dist/{chunk-6IHEDRKI.js.map → chunk-H4LBBFCO.js.map} +0 -0
  29. /package/dist/{chunk-WHFCVKAV.js.map → chunk-NZC5NLUD.js.map} +0 -0
  30. /package/dist/{consensus-vote-5D7FNWYM.js.map → consensus-vote-PGOS5AA6.js.map} +0 -0
  31. /package/dist/{expert-bridge-EOVHUCJ4.js.map → expert-bridge-L25WFHQF.js.map} +0 -0
  32. /package/dist/{factory-NJRJAZKK.js.map → factory-PVN7DDNZ.js.map} +0 -0
  33. /package/dist/{setup-command-PHTP43V7.js.map → setup-command-COISAIOH.js.map} +0 -0
@@ -71,7 +71,7 @@ var routerInitPromise = null;
71
71
  async function getRouter() {
72
72
  if (cachedRouter !== null) return cachedRouter;
73
73
  routerInitPromise ??= (async () => {
74
- const { createAllAdapters } = await import("./factory-NJRJAZKK.js");
74
+ const { createAllAdapters } = await import("./factory-PVN7DDNZ.js");
75
75
  const { createCompositeRouter } = await import("./composite-router-JJNQIHX6.js");
76
76
  const adapters = createAllAdapters();
77
77
  if (adapters.size === 0) {
@@ -185,4 +185,4 @@ export {
185
185
  shutdownExpertBridge,
186
186
  executeExpert
187
187
  };
188
- //# sourceMappingURL=chunk-6IHEDRKI.js.map
188
+ //# sourceMappingURL=chunk-H4LBBFCO.js.map
@@ -8,10 +8,10 @@ import {
8
8
  checkSqlite,
9
9
  defaultConfig,
10
10
  initDataDirectories
11
- } from "./chunk-VPH2M5H7.js";
11
+ } from "./chunk-GEXFJOLK.js";
12
12
  import {
13
13
  probeAllClis
14
- } from "./chunk-EM7NUGMG.js";
14
+ } from "./chunk-P453545L.js";
15
15
  import {
16
16
  BUILT_IN_EXPERTS
17
17
  } from "./chunk-ZM4O442V.js";
@@ -1987,4 +1987,4 @@ export {
1987
1987
  setupCommand,
1988
1988
  setupCommandAsync
1989
1989
  };
1990
- //# sourceMappingURL=chunk-WHFCVKAV.js.map
1990
+ //# sourceMappingURL=chunk-NZC5NLUD.js.map
@@ -753,7 +753,15 @@ var NOT_AUTH_PATTERNS = [
753
753
  // Token expiry/revocation as a standalone signal, not co-occurring with
754
754
  // "unauthorized" — some upstreams emit "Token expired. Please re-auth."
755
755
  // without the unauthorized keyword.
756
- /token (?:expired|revoked)/i
756
+ /token (?:expired|revoked)/i,
757
+ // #3350: OAuth refresh-token rotation. The codex CLI emits "Your access
758
+ // token could not be refreshed because your refresh token was already used.
759
+ // Please log out and sign in again." This previously fell through to a raw
760
+ // fail-closed voter error with no `<cli> login` signal for the operator.
761
+ /refresh token .*already used/i,
762
+ /could not be refreshed/i,
763
+ /log ?out and sign in/i,
764
+ /sign in again/i
757
765
  ];
758
766
  function classifyMessage(message) {
759
767
  for (const re of NOT_AUTH_PATTERNS) {
@@ -761,6 +769,16 @@ function classifyMessage(message) {
761
769
  }
762
770
  return { code: "EXECUTION_ERROR", auth: false };
763
771
  }
772
+ function resolveCliName(cliName) {
773
+ const bare = cliName.startsWith("cli-") ? cliName.slice("cli-".length) : cliName;
774
+ return bare in LOGIN_HINTS ? bare : null;
775
+ }
776
+ function authRemediation(message, cliName) {
777
+ if (!classifyMessage(message).auth) return null;
778
+ const cli = resolveCliName(cliName);
779
+ if (cli === null) return null;
780
+ return `Re-authenticate: run \`${LOGIN_HINTS[cli]}\` (the ${cli} CLI's stored OAuth token is stale).`;
781
+ }
764
782
  function parseCliErrorEnvelope(stdout, cliName) {
765
783
  const trimmed = stdout.trim();
766
784
  if (trimmed === "" || !trimmed.startsWith("{") && !trimmed.startsWith("[")) return null;
@@ -3286,6 +3304,7 @@ export {
3286
3304
  executeCliRetryLoop,
3287
3305
  BaseCliAdapter,
3288
3306
  sanitizeOutput,
3307
+ authRemediation,
3289
3308
  SubprocessCliAdapter,
3290
3309
  asRecord,
3291
3310
  isRecord,
@@ -3308,4 +3327,4 @@ export {
3308
3327
  isCliAvailable,
3309
3328
  getAvailableClis
3310
3329
  };
3311
- //# sourceMappingURL=chunk-EM7NUGMG.js.map
3330
+ //# sourceMappingURL=chunk-P453545L.js.map