nexus-agents 2.99.0 → 2.100.0
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/{chunk-O6EXYWHP.js → chunk-B364VMMP.js} +144 -82
- package/dist/{chunk-O6EXYWHP.js.map → chunk-B364VMMP.js.map} +1 -1
- package/dist/{chunk-VPH2M5H7.js → chunk-BFN7RO3R.js} +4 -4
- package/dist/{chunk-VPH2M5H7.js.map → chunk-BFN7RO3R.js.map} +1 -1
- package/dist/{chunk-WHFCVKAV.js → chunk-FU2AMASK.js} +3 -3
- package/dist/{chunk-6IHEDRKI.js → chunk-H4LBBFCO.js} +2 -2
- package/dist/{chunk-EM7NUGMG.js → chunk-P453545L.js} +21 -2
- package/dist/chunk-P453545L.js.map +1 -0
- package/dist/{chunk-AN3IGMJT.js → chunk-TYELRYRO.js} +9 -4
- package/dist/chunk-TYELRYRO.js.map +1 -0
- package/dist/cli.js +12 -7
- package/dist/cli.js.map +1 -1
- package/dist/{consensus-vote-5D7FNWYM.js → consensus-vote-PGOS5AA6.js} +3 -3
- package/dist/{expert-bridge-EOVHUCJ4.js → expert-bridge-L25WFHQF.js} +2 -2
- package/dist/{factory-NJRJAZKK.js → factory-PVN7DDNZ.js} +2 -2
- package/dist/index.d.ts +27 -0
- package/dist/index.js +6 -6
- package/dist/{setup-command-PHTP43V7.js → setup-command-RRBGCIBW.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-AN3IGMJT.js.map +0 -1
- package/dist/chunk-EM7NUGMG.js.map +0 -1
- /package/dist/{chunk-WHFCVKAV.js.map → chunk-FU2AMASK.js.map} +0 -0
- /package/dist/{chunk-6IHEDRKI.js.map → chunk-H4LBBFCO.js.map} +0 -0
- /package/dist/{consensus-vote-5D7FNWYM.js.map → consensus-vote-PGOS5AA6.js.map} +0 -0
- /package/dist/{expert-bridge-EOVHUCJ4.js.map → expert-bridge-L25WFHQF.js.map} +0 -0
- /package/dist/{factory-NJRJAZKK.js.map → factory-PVN7DDNZ.js.map} +0 -0
- /package/dist/{setup-command-PHTP43V7.js.map → setup-command-RRBGCIBW.js.map} +0 -0
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
checkSqlite,
|
|
9
9
|
defaultConfig,
|
|
10
10
|
initDataDirectories
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BFN7RO3R.js";
|
|
12
12
|
import {
|
|
13
13
|
probeAllClis
|
|
14
|
-
} from "./chunk-
|
|
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-
|
|
1990
|
+
//# sourceMappingURL=chunk-FU2AMASK.js.map
|
|
@@ -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-
|
|
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-
|
|
188
|
+
//# sourceMappingURL=chunk-H4LBBFCO.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-
|
|
3330
|
+
//# sourceMappingURL=chunk-P453545L.js.map
|