nexus-agents 8.63.0 → 8.63.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.
- package/dist/{ast-rule-runner-BJYXY6R7.js → ast-rule-runner-OVEWJ4VI.js} +5 -5
- package/dist/{child-mcp-config-SPLQ6PUA.js → child-mcp-config-PCZKX4SI.js} +5 -5
- package/dist/{chunk-NFM6UHLJ.js → chunk-3X7U2LTF.js} +7 -7
- package/dist/{chunk-2U4GUQZQ.js → chunk-4MYYKOYW.js} +4 -4
- package/dist/{chunk-MTYJPPIG.js → chunk-4UHDDCRB.js} +2 -2
- package/dist/{chunk-YA7LV26Z.js → chunk-53HQP5UY.js} +2 -2
- package/dist/{chunk-IT7QW2UK.js → chunk-666BO45M.js} +10 -10
- package/dist/{chunk-4ZXXHD34.js → chunk-6ZTPCRTD.js} +6 -6
- package/dist/{chunk-IGERXSCP.js → chunk-ACYV6HIF.js} +2 -2
- package/dist/{chunk-HVX5KC47.js → chunk-AD6FWKAO.js} +2 -2
- package/dist/{chunk-T6AREZER.js → chunk-AFBIOXNN.js} +5 -5
- package/dist/{chunk-QH53RCQ6.js → chunk-AFJXMJCJ.js} +3 -3
- package/dist/{chunk-PNNJT6HR.js → chunk-G3WPIB2G.js} +2 -2
- package/dist/{chunk-T46RV7Y7.js → chunk-HERI7LXN.js} +2 -2
- package/dist/{chunk-Y367HRJV.js → chunk-HILODAJL.js} +3 -7
- package/dist/chunk-HILODAJL.js.map +1 -0
- package/dist/{chunk-6A6XOOYD.js → chunk-IKCULJYU.js} +3 -3
- package/dist/{chunk-ED3NOBP4.js → chunk-J3WA3SHX.js} +4 -4
- package/dist/{chunk-AW6RARII.js → chunk-JRRAM2VZ.js} +2 -2
- package/dist/{chunk-Q2ZBQQGY.js → chunk-KM2Q6MWR.js} +12 -12
- package/dist/{chunk-JLIACIKN.js → chunk-L6F6N72F.js} +3 -3
- package/dist/{chunk-QPNOKY7U.js → chunk-OF4P5LQP.js} +2 -2
- package/dist/{chunk-DFEWV5HW.js → chunk-OFE2AQ4I.js} +5 -5
- package/dist/{chunk-PFSMPJKU.js → chunk-PEZRHADK.js} +2 -2
- package/dist/{chunk-F4OGKWX2.js → chunk-PQW42FX7.js} +2 -2
- package/dist/{chunk-2TJUC7OA.js → chunk-QLQUJLG3.js} +2 -2
- package/dist/{chunk-L5F67JWD.js → chunk-QTQKNZEP.js} +4 -4
- package/dist/{chunk-YKRMWZCX.js → chunk-QUWE3DRV.js} +2 -2
- package/dist/{chunk-HBG5RYZ6.js → chunk-RK4YSKMS.js} +2 -2
- package/dist/{chunk-M26JTGBL.js → chunk-RKLT2TOT.js} +2 -2
- package/dist/{chunk-BTYRPZON.js → chunk-RNDHNRSX.js} +1 -33
- package/dist/chunk-RNDHNRSX.js.map +1 -0
- package/dist/{chunk-GGJRBO2C.js → chunk-SIAO7EFE.js} +6 -6
- package/dist/{chunk-A4JMZPCE.js → chunk-SYBTBLHP.js} +3 -3
- package/dist/{chunk-VSVEWA7S.js → chunk-SYMY2WZI.js} +45 -50
- package/dist/chunk-SYMY2WZI.js.map +1 -0
- package/dist/{chunk-AJ7P4SID.js → chunk-TGYLZFU5.js} +4 -4
- package/dist/{chunk-ZOOM6I4A.js → chunk-TLYEHGIR.js} +7 -7
- package/dist/{chunk-XC3ZVY6S.js → chunk-U5KCGQ2Q.js} +2 -2
- package/dist/{chunk-E7JSXW5T.js → chunk-UJ5GVU2H.js} +2 -2
- package/dist/{chunk-VXZ4GHO6.js → chunk-VAMOJV55.js} +2 -2
- package/dist/{chunk-4D5WBVZF.js → chunk-YHJO37S5.js} +11 -11
- package/dist/{chunk-D6ZN3IUC.js → chunk-ZJHPBJLQ.js} +2 -2
- package/dist/{cli-circuit-breaker-DFRIRUQR.js → cli-circuit-breaker-T45NKZ35.js} +5 -5
- package/dist/cli.js +47 -47
- package/dist/{composite-router-66ZX2IG2.js → composite-router-7ARVOZRF.js} +4 -4
- package/dist/{consensus-vote-MYFV4X75.js → consensus-vote-YWUJNA4A.js} +20 -20
- package/dist/{context-retriever-WT67DEQE.js → context-retriever-BITYWLA2.js} +11 -11
- package/dist/doctor-deep-YNKNSQDO.js +13 -0
- package/dist/{doctor-live-HP2F44US.js → doctor-live-O5HUL4CE.js} +13 -13
- package/dist/{expert-bridge-WS4DCMUU.js → expert-bridge-25V5Z5NH.js} +6 -6
- package/dist/factory-AKKNZQRC.js +15 -0
- package/dist/factory-KKA2PEK4.js +25 -0
- package/dist/{improvement-review-2M2PL57A.js → improvement-review-ZYEEHVZ7.js} +7 -7
- package/dist/index.js +35 -35
- package/dist/{init-opencode-E3235NXT.js → init-opencode-RLWDLWUC.js} +8 -8
- package/dist/issue-triage-LOTZZAOQ.js +16 -0
- package/dist/{learning-persistence-TQJVPLDN.js → learning-persistence-DDCQTBPS.js} +3 -3
- package/dist/{pr-reviewer-helpers-WXTZ5KRF.js → pr-reviewer-helpers-MDMJY3AJ.js} +6 -6
- package/dist/{registry-command-ODE62JQ6.js → registry-command-BDXLCM4D.js} +4 -4
- package/dist/{repo-security-plan-DF5MQUT7.js → repo-security-plan-55ZTF2TY.js} +5 -5
- package/dist/research-helpers-synthesize-L2HNQK7U.js +14 -0
- package/dist/{routing-memory-S4VNNGX2.js → routing-memory-LDELNOBJ.js} +4 -4
- package/dist/{session-memory-NZEGTYE7.js → session-memory-FW3BL34A.js} +5 -5
- package/dist/setup-config-ZTACUOJK.js +11 -0
- package/dist/{setup-custom-api-VW3ARY6H.js → setup-custom-api-E3IK7DZH.js} +6 -6
- package/dist/setup-data-dir-GOITZLZI.js +31 -0
- package/dist/{tool-memory-HXLN4JH4.js → tool-memory-SOAZGLTG.js} +8 -8
- package/dist/{tool-memory-registry-adapters-ATMDGO4D.js → tool-memory-registry-adapters-IAYV4SBV.js} +3 -3
- package/dist/unified-registry-GPWSJDGN.js +28 -0
- package/dist/{weather-report-ZDHE4KN5.js → weather-report-BIJSJ5WH.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-BTYRPZON.js.map +0 -1
- package/dist/chunk-VSVEWA7S.js.map +0 -1
- package/dist/chunk-Y367HRJV.js.map +0 -1
- package/dist/doctor-deep-GMEIKBEF.js +0 -13
- package/dist/factory-LCNX522I.js +0 -25
- package/dist/factory-NMBGSHSQ.js +0 -15
- package/dist/issue-triage-M26H4XSG.js +0 -16
- package/dist/research-helpers-synthesize-DNEQZ56K.js +0 -14
- package/dist/setup-config-OOS7USYV.js +0 -11
- package/dist/setup-data-dir-TODDUZIO.js +0 -31
- package/dist/unified-registry-UYD65GIO.js +0 -28
- /package/dist/{ast-rule-runner-BJYXY6R7.js.map → ast-rule-runner-OVEWJ4VI.js.map} +0 -0
- /package/dist/{child-mcp-config-SPLQ6PUA.js.map → child-mcp-config-PCZKX4SI.js.map} +0 -0
- /package/dist/{chunk-NFM6UHLJ.js.map → chunk-3X7U2LTF.js.map} +0 -0
- /package/dist/{chunk-2U4GUQZQ.js.map → chunk-4MYYKOYW.js.map} +0 -0
- /package/dist/{chunk-MTYJPPIG.js.map → chunk-4UHDDCRB.js.map} +0 -0
- /package/dist/{chunk-YA7LV26Z.js.map → chunk-53HQP5UY.js.map} +0 -0
- /package/dist/{chunk-IT7QW2UK.js.map → chunk-666BO45M.js.map} +0 -0
- /package/dist/{chunk-4ZXXHD34.js.map → chunk-6ZTPCRTD.js.map} +0 -0
- /package/dist/{chunk-IGERXSCP.js.map → chunk-ACYV6HIF.js.map} +0 -0
- /package/dist/{chunk-HVX5KC47.js.map → chunk-AD6FWKAO.js.map} +0 -0
- /package/dist/{chunk-T6AREZER.js.map → chunk-AFBIOXNN.js.map} +0 -0
- /package/dist/{chunk-QH53RCQ6.js.map → chunk-AFJXMJCJ.js.map} +0 -0
- /package/dist/{chunk-PNNJT6HR.js.map → chunk-G3WPIB2G.js.map} +0 -0
- /package/dist/{chunk-T46RV7Y7.js.map → chunk-HERI7LXN.js.map} +0 -0
- /package/dist/{chunk-6A6XOOYD.js.map → chunk-IKCULJYU.js.map} +0 -0
- /package/dist/{chunk-ED3NOBP4.js.map → chunk-J3WA3SHX.js.map} +0 -0
- /package/dist/{chunk-AW6RARII.js.map → chunk-JRRAM2VZ.js.map} +0 -0
- /package/dist/{chunk-Q2ZBQQGY.js.map → chunk-KM2Q6MWR.js.map} +0 -0
- /package/dist/{chunk-JLIACIKN.js.map → chunk-L6F6N72F.js.map} +0 -0
- /package/dist/{chunk-QPNOKY7U.js.map → chunk-OF4P5LQP.js.map} +0 -0
- /package/dist/{chunk-DFEWV5HW.js.map → chunk-OFE2AQ4I.js.map} +0 -0
- /package/dist/{chunk-PFSMPJKU.js.map → chunk-PEZRHADK.js.map} +0 -0
- /package/dist/{chunk-F4OGKWX2.js.map → chunk-PQW42FX7.js.map} +0 -0
- /package/dist/{chunk-2TJUC7OA.js.map → chunk-QLQUJLG3.js.map} +0 -0
- /package/dist/{chunk-L5F67JWD.js.map → chunk-QTQKNZEP.js.map} +0 -0
- /package/dist/{chunk-YKRMWZCX.js.map → chunk-QUWE3DRV.js.map} +0 -0
- /package/dist/{chunk-HBG5RYZ6.js.map → chunk-RK4YSKMS.js.map} +0 -0
- /package/dist/{chunk-M26JTGBL.js.map → chunk-RKLT2TOT.js.map} +0 -0
- /package/dist/{chunk-GGJRBO2C.js.map → chunk-SIAO7EFE.js.map} +0 -0
- /package/dist/{chunk-A4JMZPCE.js.map → chunk-SYBTBLHP.js.map} +0 -0
- /package/dist/{chunk-AJ7P4SID.js.map → chunk-TGYLZFU5.js.map} +0 -0
- /package/dist/{chunk-ZOOM6I4A.js.map → chunk-TLYEHGIR.js.map} +0 -0
- /package/dist/{chunk-XC3ZVY6S.js.map → chunk-U5KCGQ2Q.js.map} +0 -0
- /package/dist/{chunk-E7JSXW5T.js.map → chunk-UJ5GVU2H.js.map} +0 -0
- /package/dist/{chunk-VXZ4GHO6.js.map → chunk-VAMOJV55.js.map} +0 -0
- /package/dist/{chunk-4D5WBVZF.js.map → chunk-YHJO37S5.js.map} +0 -0
- /package/dist/{chunk-D6ZN3IUC.js.map → chunk-ZJHPBJLQ.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-DFRIRUQR.js.map → cli-circuit-breaker-T45NKZ35.js.map} +0 -0
- /package/dist/{composite-router-66ZX2IG2.js.map → composite-router-7ARVOZRF.js.map} +0 -0
- /package/dist/{consensus-vote-MYFV4X75.js.map → consensus-vote-YWUJNA4A.js.map} +0 -0
- /package/dist/{context-retriever-WT67DEQE.js.map → context-retriever-BITYWLA2.js.map} +0 -0
- /package/dist/{doctor-deep-GMEIKBEF.js.map → doctor-deep-YNKNSQDO.js.map} +0 -0
- /package/dist/{doctor-live-HP2F44US.js.map → doctor-live-O5HUL4CE.js.map} +0 -0
- /package/dist/{expert-bridge-WS4DCMUU.js.map → expert-bridge-25V5Z5NH.js.map} +0 -0
- /package/dist/{factory-LCNX522I.js.map → factory-AKKNZQRC.js.map} +0 -0
- /package/dist/{factory-NMBGSHSQ.js.map → factory-KKA2PEK4.js.map} +0 -0
- /package/dist/{improvement-review-2M2PL57A.js.map → improvement-review-ZYEEHVZ7.js.map} +0 -0
- /package/dist/{init-opencode-E3235NXT.js.map → init-opencode-RLWDLWUC.js.map} +0 -0
- /package/dist/{issue-triage-M26H4XSG.js.map → issue-triage-LOTZZAOQ.js.map} +0 -0
- /package/dist/{learning-persistence-TQJVPLDN.js.map → learning-persistence-DDCQTBPS.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-WXTZ5KRF.js.map → pr-reviewer-helpers-MDMJY3AJ.js.map} +0 -0
- /package/dist/{registry-command-ODE62JQ6.js.map → registry-command-BDXLCM4D.js.map} +0 -0
- /package/dist/{repo-security-plan-DF5MQUT7.js.map → repo-security-plan-55ZTF2TY.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-DNEQZ56K.js.map → research-helpers-synthesize-L2HNQK7U.js.map} +0 -0
- /package/dist/{routing-memory-S4VNNGX2.js.map → routing-memory-LDELNOBJ.js.map} +0 -0
- /package/dist/{session-memory-NZEGTYE7.js.map → session-memory-FW3BL34A.js.map} +0 -0
- /package/dist/{setup-config-OOS7USYV.js.map → setup-config-ZTACUOJK.js.map} +0 -0
- /package/dist/{setup-custom-api-VW3ARY6H.js.map → setup-custom-api-E3IK7DZH.js.map} +0 -0
- /package/dist/{setup-data-dir-TODDUZIO.js.map → setup-data-dir-GOITZLZI.js.map} +0 -0
- /package/dist/{tool-memory-HXLN4JH4.js.map → tool-memory-SOAZGLTG.js.map} +0 -0
- /package/dist/{tool-memory-registry-adapters-ATMDGO4D.js.map → tool-memory-registry-adapters-IAYV4SBV.js.map} +0 -0
- /package/dist/{unified-registry-UYD65GIO.js.map → unified-registry-GPWSJDGN.js.map} +0 -0
- /package/dist/{weather-report-ZDHE4KN5.js.map → weather-report-BIJSJ5WH.js.map} +0 -0
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
getBuiltInAstRulesPath,
|
|
10
10
|
loadRules,
|
|
11
11
|
runAstQaRules
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-RK4YSKMS.js";
|
|
13
|
+
import "./chunk-6ZTPCRTD.js";
|
|
14
|
+
import "./chunk-4UHDDCRB.js";
|
|
15
|
+
import "./chunk-RNDHNRSX.js";
|
|
16
16
|
import "./chunk-ZPWHCABL.js";
|
|
17
17
|
export {
|
|
18
18
|
AST_RULE_LANGUAGES,
|
|
@@ -26,4 +26,4 @@ export {
|
|
|
26
26
|
loadRules,
|
|
27
27
|
runAstQaRules
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=ast-rule-runner-
|
|
29
|
+
//# sourceMappingURL=ast-rule-runner-OVEWJ4VI.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nexusMkdtemp
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HERI7LXN.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogger
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
7
|
+
import "./chunk-4UHDDCRB.js";
|
|
8
|
+
import "./chunk-RNDHNRSX.js";
|
|
9
9
|
import "./chunk-ZPWHCABL.js";
|
|
10
10
|
|
|
11
11
|
// src/cli-adapters/child-mcp-config.ts
|
|
@@ -60,4 +60,4 @@ export {
|
|
|
60
60
|
generateMcpConfig,
|
|
61
61
|
getDefaultAllowedTools
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=child-mcp-config-
|
|
63
|
+
//# sourceMappingURL=child-mcp-config-PCZKX4SI.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveCliSlot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JRRAM2VZ.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogger,
|
|
6
6
|
getTimeProvider,
|
|
7
7
|
isRateLimitText
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
9
9
|
|
|
10
10
|
// src/pipeline/expert-bridge.ts
|
|
11
11
|
function resolveCliFromModelString(model) {
|
|
@@ -21,7 +21,7 @@ async function getMcpConfigPath() {
|
|
|
21
21
|
if (cachedMcpConfigPath !== null) return cachedMcpConfigPath;
|
|
22
22
|
mcpConfigInitPromise ??= (async () => {
|
|
23
23
|
try {
|
|
24
|
-
const { generateMcpConfig } = await import("./child-mcp-config-
|
|
24
|
+
const { generateMcpConfig } = await import("./child-mcp-config-PCZKX4SI.js");
|
|
25
25
|
const config = await generateMcpConfig();
|
|
26
26
|
cachedMcpConfigPath = config.configPath;
|
|
27
27
|
cachedMcpConfigCleanup = config.cleanup;
|
|
@@ -93,8 +93,8 @@ var routerInitPromise = null;
|
|
|
93
93
|
async function getRouter() {
|
|
94
94
|
if (cachedRouter !== null) return cachedRouter;
|
|
95
95
|
routerInitPromise ??= (async () => {
|
|
96
|
-
const { createAllAdapters } = await import("./factory-
|
|
97
|
-
const { createCompositeRouter } = await import("./composite-router-
|
|
96
|
+
const { createAllAdapters } = await import("./factory-KKA2PEK4.js");
|
|
97
|
+
const { createCompositeRouter } = await import("./composite-router-7ARVOZRF.js");
|
|
98
98
|
const adapters = createAllAdapters();
|
|
99
99
|
if (adapters.size === 0) {
|
|
100
100
|
routerInitPromise = null;
|
|
@@ -102,7 +102,7 @@ async function getRouter() {
|
|
|
102
102
|
}
|
|
103
103
|
cachedRouter = adaptCompositeRouter(createCompositeRouter(adapters));
|
|
104
104
|
try {
|
|
105
|
-
const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-
|
|
105
|
+
const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-T45NKZ35.js");
|
|
106
106
|
cachedCircuitBreaker = createCliCircuitBreakerIntegration([...adapters.values()]);
|
|
107
107
|
} catch (error) {
|
|
108
108
|
const msg = error instanceof Error ? error.message : String(error);
|
|
@@ -213,4 +213,4 @@ export {
|
|
|
213
213
|
tokenSplitFromUsage,
|
|
214
214
|
executeExpert
|
|
215
215
|
};
|
|
216
|
-
//# sourceMappingURL=chunk-
|
|
216
|
+
//# sourceMappingURL=chunk-3X7U2LTF.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toolStructuredError,
|
|
8
8
|
toolSuccessStructured,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-J3WA3SHX.js";
|
|
11
11
|
import {
|
|
12
12
|
JsonlStore,
|
|
13
13
|
SECURITY_KEYWORDS,
|
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
getTimeProvider,
|
|
21
21
|
isDeclaredNeverDeprecate,
|
|
22
22
|
isRegisteredToolName
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
24
24
|
import {
|
|
25
25
|
getNexusDataDir,
|
|
26
26
|
nexusDataPath
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-RNDHNRSX.js";
|
|
28
28
|
|
|
29
29
|
// src/mcp/tools/improvement-review.ts
|
|
30
30
|
import { readFile } from "node:fs/promises";
|
|
@@ -2282,4 +2282,4 @@ export {
|
|
|
2282
2282
|
runImprovementReview,
|
|
2283
2283
|
registerImprovementReviewTool
|
|
2284
2284
|
};
|
|
2285
|
-
//# sourceMappingURL=chunk-
|
|
2285
|
+
//# sourceMappingURL=chunk-4MYYKOYW.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getNexusDataDir,
|
|
3
3
|
parseBoolEnv
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RNDHNRSX.js";
|
|
5
5
|
|
|
6
6
|
// src/config/learning-persistence.ts
|
|
7
7
|
import { mkdirSync } from "node:fs";
|
|
@@ -46,4 +46,4 @@ export {
|
|
|
46
46
|
isPersistenceEnabled,
|
|
47
47
|
ensureLearningDir
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-4UHDDCRB.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRandomProvider,
|
|
3
3
|
getTimeProvider
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
5
5
|
|
|
6
6
|
// src/utils/id-utils.ts
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
@@ -24,4 +24,4 @@ export {
|
|
|
24
24
|
generateHyphenId,
|
|
25
25
|
generateUUID
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=chunk-
|
|
27
|
+
//# sourceMappingURL=chunk-53HQP5UY.js.map
|
|
@@ -5,34 +5,34 @@ import {
|
|
|
5
5
|
planOptionalParams,
|
|
6
6
|
requireApiKey,
|
|
7
7
|
validateApiKeyPresence
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QLQUJLG3.js";
|
|
9
9
|
import {
|
|
10
10
|
CUSTOM_API_DEFAULT_MODEL
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HILODAJL.js";
|
|
12
12
|
import {
|
|
13
13
|
CUSTOM_API_BASE_URL_ENV,
|
|
14
14
|
PROVIDER_ENV_KEYS,
|
|
15
15
|
assertCustomApiHostResolvesPublic,
|
|
16
16
|
validateCustomApiBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ACYV6HIF.js";
|
|
18
18
|
import {
|
|
19
19
|
nexusMkdtempSync
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HERI7LXN.js";
|
|
21
21
|
import {
|
|
22
22
|
getAvailabilityCache
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-JRRAM2VZ.js";
|
|
24
24
|
import {
|
|
25
25
|
extractSystemPrompt
|
|
26
26
|
} from "./chunk-QZUG667L.js";
|
|
27
27
|
import {
|
|
28
28
|
generateHyphenId
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-53HQP5UY.js";
|
|
30
30
|
import {
|
|
31
31
|
CliCircuitBreaker,
|
|
32
32
|
DEFAULT_CIRCUIT_BREAKER_CONFIG,
|
|
33
33
|
getCliCircuitBreakerSnapshot,
|
|
34
34
|
getDefaultCliCircuitBreakerRegistry
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-QUWE3DRV.js";
|
|
36
36
|
import {
|
|
37
37
|
CLI_SUBPROCESS_TIMEOUTS,
|
|
38
38
|
CLI_TIMEOUTS,
|
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
resolveCliModelName,
|
|
76
76
|
resolveRetryAfterMs,
|
|
77
77
|
retryAfterMsFromContext
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
79
79
|
import {
|
|
80
80
|
parseBoolValue
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-RNDHNRSX.js";
|
|
82
82
|
|
|
83
83
|
// src/cli-adapters/cli-to-model-adapter.ts
|
|
84
84
|
var CliToModelAdapter = class {
|
|
@@ -5258,4 +5258,4 @@ export {
|
|
|
5258
5258
|
SdkAdapter,
|
|
5259
5259
|
createAutoAdapter
|
|
5260
5260
|
};
|
|
5261
|
-
//# sourceMappingURL=chunk-
|
|
5261
|
+
//# sourceMappingURL=chunk-666BO45M.js.map
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
getDecisionCostFile,
|
|
4
4
|
getModelSelectionShadowFile,
|
|
5
5
|
isPersistenceEnabled
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4UHDDCRB.js";
|
|
7
7
|
import {
|
|
8
8
|
nexusDataPath,
|
|
9
9
|
parseBoolEnv
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RNDHNRSX.js";
|
|
11
11
|
import {
|
|
12
12
|
__require
|
|
13
13
|
} from "./chunk-ZPWHCABL.js";
|
|
@@ -2622,7 +2622,7 @@ function setDefaultRegistry(registry) {
|
|
|
2622
2622
|
}
|
|
2623
2623
|
async function reloadDefaultRegistry() {
|
|
2624
2624
|
globalRegistry = buildDefaultRegistry();
|
|
2625
|
-
const { resetGlobalRegistry } = await import("./unified-registry-
|
|
2625
|
+
const { resetGlobalRegistry } = await import("./unified-registry-GPWSJDGN.js");
|
|
2626
2626
|
resetGlobalRegistry();
|
|
2627
2627
|
return globalRegistry;
|
|
2628
2628
|
}
|
|
@@ -10490,7 +10490,7 @@ async function attachOutcomeStoreToRegistry(store) {
|
|
|
10490
10490
|
try {
|
|
10491
10491
|
const { getMemoryRegistry } = await import("./dist-U4WS2A7E.js");
|
|
10492
10492
|
const { OutcomeStoreAdapter } = await import("./outcome-store-adapter-K4L3RUJE.js");
|
|
10493
|
-
const { ensureSharedMemoryRegistry } = await import("./tool-memory-registry-adapters-
|
|
10493
|
+
const { ensureSharedMemoryRegistry } = await import("./tool-memory-registry-adapters-IAYV4SBV.js");
|
|
10494
10494
|
ensureSharedMemoryRegistry();
|
|
10495
10495
|
getMemoryRegistry().attach("outcomes", new OutcomeStoreAdapter(store));
|
|
10496
10496
|
} catch {
|
|
@@ -15459,7 +15459,7 @@ var CompositeRouter = class _CompositeRouter {
|
|
|
15459
15459
|
*/
|
|
15460
15460
|
async consultUnifiedContext(task) {
|
|
15461
15461
|
try {
|
|
15462
|
-
const { getContextForTask, inferTaskCategory } = await import("./context-retriever-
|
|
15462
|
+
const { getContextForTask, inferTaskCategory } = await import("./context-retriever-BITYWLA2.js");
|
|
15463
15463
|
const ctx = await getContextForTask({
|
|
15464
15464
|
task: task.content,
|
|
15465
15465
|
category: inferTaskCategory(task.content),
|
|
@@ -17066,4 +17066,4 @@ export {
|
|
|
17066
17066
|
AgentCapability,
|
|
17067
17067
|
OrchestratorError
|
|
17068
17068
|
};
|
|
17069
|
-
//# sourceMappingURL=chunk-
|
|
17069
|
+
//# sourceMappingURL=chunk-6ZTPCRTD.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
createLogger,
|
|
4
4
|
err,
|
|
5
5
|
ok
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
7
7
|
|
|
8
8
|
// src/adapters/sdk/types.ts
|
|
9
9
|
var PROVIDER_ENV_KEYS = {
|
|
@@ -260,4 +260,4 @@ export {
|
|
|
260
260
|
validateCustomApiBaseUrl,
|
|
261
261
|
assertCustomApiHostResolvesPublic
|
|
262
262
|
};
|
|
263
|
-
//# sourceMappingURL=chunk-
|
|
263
|
+
//# sourceMappingURL=chunk-ACYV6HIF.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getErrorMessage,
|
|
5
5
|
getTimeProvider,
|
|
6
6
|
ok
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
8
8
|
|
|
9
9
|
// src/context/session-memory.ts
|
|
10
10
|
import * as fs from "node:fs";
|
|
@@ -370,4 +370,4 @@ export {
|
|
|
370
370
|
SessionMemory,
|
|
371
371
|
createSessionMemory
|
|
372
372
|
};
|
|
373
|
-
//# sourceMappingURL=chunk-
|
|
373
|
+
//# sourceMappingURL=chunk-AD6FWKAO.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeCostDetail,
|
|
3
3
|
recordUsageEvent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AFJXMJCJ.js";
|
|
5
5
|
import {
|
|
6
6
|
BaseAdapter,
|
|
7
7
|
createStream,
|
|
8
8
|
planOptionalParams,
|
|
9
9
|
requireApiKey,
|
|
10
10
|
validateApiKeyPresence
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QLQUJLG3.js";
|
|
12
12
|
import {
|
|
13
13
|
assertCustomApiHostResolvesPublic
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ACYV6HIF.js";
|
|
15
15
|
import {
|
|
16
16
|
ConfigError,
|
|
17
17
|
ModelCapability,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
getTimeProvider,
|
|
23
23
|
getTokenEstimator,
|
|
24
24
|
ok
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
26
26
|
|
|
27
27
|
// src/adapters/openai-types.ts
|
|
28
28
|
var OPENAI_MODELS = {
|
|
@@ -842,4 +842,4 @@ export {
|
|
|
842
842
|
discoverModels,
|
|
843
843
|
buildOpenAICompatAdapters
|
|
844
844
|
};
|
|
845
|
-
//# sourceMappingURL=chunk-
|
|
845
|
+
//# sourceMappingURL=chunk-AFBIOXNN.js.map
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
createLogger,
|
|
4
4
|
getDefaultRegistry,
|
|
5
5
|
roundToMicroUsd
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
7
7
|
import {
|
|
8
8
|
getNexusDataDir
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RNDHNRSX.js";
|
|
10
10
|
|
|
11
11
|
// src/learning/usage-log.ts
|
|
12
12
|
import { z } from "zod";
|
|
@@ -196,4 +196,4 @@ export {
|
|
|
196
196
|
loadUsageEvents,
|
|
197
197
|
rollupByModel
|
|
198
198
|
};
|
|
199
|
-
//# sourceMappingURL=chunk-
|
|
199
|
+
//# sourceMappingURL=chunk-AFJXMJCJ.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
TASK_CATEGORIES,
|
|
3
3
|
getAdaptiveBonus,
|
|
4
4
|
getOutcomeStore
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
6
6
|
|
|
7
7
|
// src/cli/doctor-deep.ts
|
|
8
8
|
var CLI_NAMES = ["claude", "gemini", "codex", "opencode"];
|
|
@@ -106,4 +106,4 @@ export {
|
|
|
106
106
|
runDeepDiagnostics,
|
|
107
107
|
formatDeepDiagnostics
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=chunk-
|
|
109
|
+
//# sourceMappingURL=chunk-G3WPIB2G.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nexusDataPathEnsure
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RNDHNRSX.js";
|
|
4
4
|
|
|
5
5
|
// src/config/nexus-tmp-dir.ts
|
|
6
6
|
import { mkdirSync, mkdtempSync } from "node:fs";
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
nexusMkdtempSync,
|
|
37
37
|
nexusMkdtemp
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
//# sourceMappingURL=chunk-HERI7LXN.js.map
|
|
@@ -5,12 +5,10 @@ import {
|
|
|
5
5
|
MCP_TIMEOUTS,
|
|
6
6
|
TEST_TIMEOUTS,
|
|
7
7
|
WORKFLOW_TIMEOUTS
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
9
9
|
import {
|
|
10
|
-
createGetEnvVarDocumentation,
|
|
11
|
-
createGetTimeout,
|
|
12
10
|
createGetToolRateLimit
|
|
13
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RNDHNRSX.js";
|
|
14
12
|
|
|
15
13
|
// src/config/defaults.ts
|
|
16
14
|
var CUSTOM_API_DEFAULT_MODEL = "gpt-5.5";
|
|
@@ -216,12 +214,10 @@ var DEFAULTS = {
|
|
|
216
214
|
sandboxNetworkEnabled: false
|
|
217
215
|
}
|
|
218
216
|
};
|
|
219
|
-
var getTimeout = createGetTimeout(DEFAULTS.TIMEOUT_DEFAULTS);
|
|
220
217
|
var getToolRateLimit = createGetToolRateLimit(DEFAULTS.TOOL_RATE_LIMITS);
|
|
221
|
-
var getEnvVarDocumentation = createGetEnvVarDocumentation(DEFAULTS);
|
|
222
218
|
|
|
223
219
|
export {
|
|
224
220
|
CUSTOM_API_DEFAULT_MODEL,
|
|
225
221
|
DEFAULTS
|
|
226
222
|
};
|
|
227
|
-
//# sourceMappingURL=chunk-
|
|
223
|
+
//# sourceMappingURL=chunk-HILODAJL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config/defaults.ts"],"sourcesContent":["/**\n * Central Configuration Defaults\n *\n * Consolidates common default values used across the codebase.\n * This prevents scattered magic numbers and ensures consistency.\n *\n * Usage:\n * import { DEFAULTS, TIMEOUT_PROFILES, getTimeoutForCli } from '../config/defaults.js';\n * const timeout = options.timeout ?? DEFAULTS.TIMEOUT_DEFAULTS.cliMs;\n * const cliTimeout = getTimeoutForCli('claude', 'complex');\n *\n * Nothing here reads a NEXUS_* variable. The env-driven knobs live in the\n * canonical timeout modules (config/timeouts/*) and in config/env-schema.ts.\n *\n * @module config/defaults\n * (Source: Central config consolidation initiative)\n */\n\n// Re-export types from defaults-types\nexport type {\n TaskComplexity,\n TimeoutProfile,\n KnownCliName,\n TimeoutDefaults,\n RateLimitDefaults,\n ToolRateLimitConfig,\n RetryDefaults,\n CircuitBreakerDefaults,\n} from './defaults-types.js';\n\nexport { isTaskComplexity, isKnownCliName } from './defaults-types.js';\n\n// Re-export timeout profiles (delegates to config/timeouts.ts)\nexport {\n TIMEOUT_PROFILES,\n getTimeoutProfile,\n getTimeoutForCli,\n} from './defaults-timeout-profiles.js';\n\n// Re-export canonical timeout modules (Issue #984)\nexport {\n CLI_TIMEOUTS,\n VOTE_TIMEOUTS,\n MCP_TIMEOUTS,\n WORKFLOW_TIMEOUTS,\n GRAPH_TIMEOUTS,\n PER_CLI_TASK_TIMEOUTS,\n API_TIMEOUTS,\n INTERNAL_TIMEOUTS,\n TEST_TIMEOUTS,\n TIMEOUT_ENV_VARS,\n getCliTimeoutProfile,\n getCliTimeout,\n resolveVoteTimeout,\n resolveEnvTimeout,\n validateTimeout,\n BACKOFF_CONFIG,\n AGENT_ROUTER_TIMEOUTS,\n CODEX_MCP_TIMEOUTS,\n} from './timeouts.js';\n\n// Re-export env helpers (internal use)\nexport { parseIntEnv, parseFloatEnv, parseBoolEnv } from './defaults-env.js';\n\nimport { createGetToolRateLimit } from './defaults-env.js';\nimport {\n API_TIMEOUTS as _API,\n WORKFLOW_TIMEOUTS as _WF,\n MCP_TIMEOUTS as _MCP,\n INTERNAL_TIMEOUTS as _INT,\n TEST_TIMEOUTS as _TEST,\n CLI_TIMEOUTS as _CLI,\n} from './timeouts.js';\n\n// ============================================================================\n// Default Model IDs (#2200 Child 4)\n// ============================================================================\n\n/**\n * Default model identifier for the custom OpenAI-compatible API gateway.\n *\n * Used by both `cli/setup-custom-api.ts` (write to nexus-agents.yaml) and\n * `adapters/auto-adapter.ts` (NEXUS_CUSTOM_MODEL env-var fallback). Single\n * source of truth so changes flow through all consumers.\n *\n * `gpt-4o` was the previous value, chosen because it was widely supported across\n * OpenAI-compatible gateways. It is now END-OF-LIFE at OpenAI, so defaulting to\n * it points new operators at a model their gateway may well refuse (#4408).\n *\n * A custom gateway can serve anything, so ANY default here is a guess — the\n * right long-term answer is to discover the model list from the endpoint\n * (`GET /v1/models`, which this repo already implements) rather than assume one.\n * Until that is wired, guess a current model instead of a retired one.\n *\n * Operators are expected to override via `NEXUS_CUSTOM_MODEL`.\n */\nexport const CUSTOM_API_DEFAULT_MODEL = 'gpt-5.5';\n\n// ============================================================================\n// Central Defaults Object\n// ============================================================================\n\n/**\n * Central defaults object containing all configuration categories.\n */\nexport const DEFAULTS = {\n /**\n * Default timeout settings in milliseconds.\n * Values sourced from config/timeouts.ts (Issue #984).\n */\n TIMEOUT_DEFAULTS: {\n /** CLI tool execution timeout in milliseconds. */\n cliMs: _CLI.default.standard,\n // cliSimpleMs / cliComplexMs removed in #4180 — never read by any production\n // code (the matching NEXUS_TIMEOUT_CLISIMPLE/CLICOMPLEX env vars were silent\n // no-ops, #2977 class). Per-complexity CLI timeouts come from\n // getTimeoutForCli/TIMEOUT_PROFILES (CLI_TIMEOUTS in config/timeouts.ts).\n /** API request timeout in milliseconds. */\n apiMs: _API.defaultMs,\n /** Maximum API timeout in milliseconds. */\n apiMaxMs: _API.maxMs,\n /** Workflow-level timeout in milliseconds (5 minutes). */\n workflowMs: _WF.workflowMs,\n /** Maximum workflow timeout in milliseconds (30 minutes). */\n workflowMaxMs: _WF.workflowMaxMs,\n /** Step-level timeout in milliseconds. */\n stepMs: _INT.selfEvalMs,\n /** MCP operation default timeout in milliseconds (generic, not per-tool). */\n mcpMs: _API.defaultMs,\n /** MCP operation maximum timeout in milliseconds. */\n mcpMaxMs: _MCP.maxMs,\n /** Health check timeout in milliseconds. */\n healthCheckMs: _INT.healthCheckMs,\n /** Global test run timeout in milliseconds (10 minutes). */\n testGlobalMs: _TEST.globalMs,\n /** Per-task test timeout in milliseconds. */\n testTaskMs: _TEST.taskMs,\n /** Circuit breaker reset timeout in milliseconds. */\n circuitBreakerResetMs: _INT.circuitBreakerResetMs,\n },\n\n /**\n * Default rate limit settings for outbound operations.\n */\n RATE_LIMIT_DEFAULTS: {\n /** Global requests per minute. */\n requestsPerMinute: 60,\n /** Whether rate limiting is enabled by default. */\n enabled: true,\n /** Maximum number of concurrent requests. */\n maxConcurrent: 4,\n /** Token bucket capacity. */\n capacity: 100,\n /** Token bucket refill rate per second. */\n refillRate: 10,\n /** Refill interval in milliseconds. */\n refillIntervalMs: 100,\n },\n\n /**\n * Per-tool rate limit defaults for MCP tools.\n * (Source: Issue #274 Phase 2 - per-tool rate limits)\n */\n TOOL_RATE_LIMITS: {\n orchestrate: { capacity: 10, refillRate: 10, refillIntervalMs: 60_000 },\n delegate: { capacity: 20, refillRate: 20, refillIntervalMs: 60_000 },\n workflow: { capacity: 5, refillRate: 5, refillIntervalMs: 60_000 },\n expert: { capacity: 30, refillRate: 30, refillIntervalMs: 60_000 },\n },\n\n /**\n * Default retry strategy settings for transient failures.\n */\n RETRY_DEFAULTS: {\n /** Maximum retry attempts before failing. */\n maxRetries: 3,\n /** Base delay between retries in milliseconds. */\n baseDelayMs: 1_000,\n /** Maximum delay between retries in milliseconds. */\n maxDelayMs: 30_000,\n /** Jitter factor (0-1) to randomize retry delays. */\n jitterFactor: 0.1,\n },\n\n /**\n * Workflow-specific retry defaults.\n */\n WORKFLOW_RETRY_DEFAULTS: {\n /** Maximum retry attempts for workflow steps. */\n maxRetries: 2,\n /** Base delay for workflow retries in milliseconds. */\n baseDelayMs: 2_000,\n /** Maximum delay for workflow retries in milliseconds. */\n maxDelayMs: 60_000,\n /** Jitter factor for workflow retries. */\n jitterFactor: 0.15,\n },\n\n /**\n * CLI-specific retry defaults.\n */\n CLI_RETRY_DEFAULTS: {\n /** Maximum retry attempts for CLI operations. */\n maxRetries: 2,\n /** Base delay for CLI retries in milliseconds. */\n baseDelayMs: 5_000,\n /** Maximum delay for CLI retries in milliseconds. */\n maxDelayMs: 60_000,\n /** Jitter factor for CLI retries. */\n jitterFactor: 0.2,\n },\n\n /**\n * Test framework retry defaults.\n */\n TEST_RETRY_DEFAULTS: {\n /** Maximum retries per test task. */\n maxRetries: 2,\n /** Whether to retry failed tasks by default. */\n retryFailedTasks: true,\n },\n\n /**\n * Default buffer sizing for batching and chunked processing.\n */\n BUFFER_DEFAULTS: {\n /** Preferred batch size for bulk operations. */\n batchSize: 100,\n /** Chunk size for streaming or segmented processing. */\n chunkSize: 256,\n /** Maximum items allowed in a buffer. */\n maxItems: 1_000,\n /** Maximum memory size in bytes (10 MB). */\n maxMemoryBytes: 10 * 1024 * 1024,\n /** Log buffer flush interval in milliseconds. */\n logFlushIntervalMs: 5_000,\n },\n\n // WORKER_DEFAULTS removed in #2977 — the eight settings under this category\n // (maxWorkers, poolSize, idleTimeoutMs, workflowMaxParallel, testParallelism,\n // evaluationMaxWorkers, eventBusMaxHistory, swarmObserverMaxEvents) had zero\n // production consumers. `getWorkerConfig()` was never called from anywhere\n // in src/, and the matching NEXUS_WORKERS_* env vars were silent no-ops.\n // Silent config rot is worse than missing knobs; re-add when a concrete\n // consumer exists.\n\n /**\n * Default circuit breaker settings.\n * (Source: Issue #81 - Circuit breaker for CLI failures)\n */\n CIRCUIT_BREAKER_DEFAULTS: {\n /** Failure threshold to open circuit. */\n failureThreshold: 5,\n /** Reset timeout in milliseconds. */\n resetTimeoutMs: 30_000,\n /** Success threshold to close circuit in half-open state. */\n halfOpenSuccessThreshold: 2,\n /** Whether to count timeouts as failures. */\n countTimeoutsAsFailures: true,\n /** Whether to count auth failures as failures. */\n countAuthFailuresAsFailures: false,\n /** Whether to count rate limit errors as failures (#1529). */\n countRateLimitsAsFailures: true,\n /** Maximum requests allowed in half-open state. */\n halfOpenMaxRequests: 3,\n },\n\n /**\n * Default context/memory settings.\n */\n CONTEXT_DEFAULTS: {\n /** Maximum context tokens. */\n maxTokens: 100_000,\n /** Token budget warning threshold (80%). */\n warningThreshold: 0.8,\n /** Token budget critical threshold (95%). */\n criticalThreshold: 0.95,\n /** Maximum history entries to retain. */\n maxHistoryEntries: 1_000,\n },\n\n /**\n * Default provider/model settings.\n */\n PROVIDER_DEFAULTS: {\n /** Default timeout for provider API calls in ms. */\n timeout: 30_000,\n /** Maximum retries for provider requests. */\n maxRetries: 3,\n /** Default model tier. */\n defaultTier: 'balanced' as const,\n /** Default temperature. */\n temperatureDefault: 0.3,\n /** Minimum temperature. */\n temperatureMin: 0,\n /** Maximum temperature. */\n temperatureMax: 1,\n /** Billing mode: 'plan' (monthly subscription) or 'api' (pay-per-token). Env: NEXUS_BILLING_MODE */\n billingMode: 'plan' as const,\n },\n\n /**\n * Security-related defaults.\n */\n SECURITY_DEFAULTS: {\n /** Maximum system prompt length in characters. */\n maxSystemPromptLength: 4_000,\n /** Default policy execution mode. */\n policyDefaultMode: 'read-only' as const,\n /** Default policy mode. */\n policyMode: 'enforce' as const,\n /** Default sandbox mode. */\n sandboxMode: 'policy' as const,\n /** Whether to fall back to policy mode if container unavailable. */\n sandboxFallbackToPolicy: true,\n /** Whether network is enabled in container mode. */\n sandboxNetworkEnabled: false,\n },\n} as const;\n\n// ============================================================================\n// Type Exports for DEFAULTS\n// ============================================================================\n\n/** Type for the DEFAULTS object (readonly/const). */\nexport type DefaultsConfig = typeof DEFAULTS;\n\n/** Type for timeout defaults (readonly/const). */\nexport type TimeoutDefaultsConst = typeof DEFAULTS.TIMEOUT_DEFAULTS;\n\n/** Type for rate limit defaults (readonly/const). */\nexport type RateLimitDefaultsConst = typeof DEFAULTS.RATE_LIMIT_DEFAULTS;\n\n/** Type for retry defaults (readonly/const). */\nexport type RetryDefaultsConst = typeof DEFAULTS.RETRY_DEFAULTS;\n\n/** Type for buffer defaults (readonly/const). */\nexport type BufferDefaults = typeof DEFAULTS.BUFFER_DEFAULTS;\n\n/** Type for circuit breaker defaults (readonly/const). */\nexport type CircuitBreakerDefaultsConst = typeof DEFAULTS.CIRCUIT_BREAKER_DEFAULTS;\n\n/** Type for context defaults (readonly/const). */\nexport type ContextDefaults = typeof DEFAULTS.CONTEXT_DEFAULTS;\n\n/** Type for provider defaults (readonly/const). */\nexport type ProviderDefaults = typeof DEFAULTS.PROVIDER_DEFAULTS;\n\n/** Type for security defaults (readonly/const). */\nexport type SecurityDefaults = typeof DEFAULTS.SECURITY_DEFAULTS;\n\n// ============================================================================\n// Environment Override Functions (bound to DEFAULTS)\n// ============================================================================\n\n// getTimeout removed in #4939. It promised \"environment override support\" for\n// NEXUS_TIMEOUT_{CLI,API,WORKFLOW,MCP} and had zero production callers — the\n// only reachable effect of setting one was `config get` answering\n// `Source: (env)`. Read DEFAULTS.TIMEOUT_DEFAULTS.* directly; env-driven\n// timeouts are the *_TIMEOUT_MS and NEXUS_TIMEOUT_CLASS_*_MS families.\n//\n// getRetryConfig, getRateLimitConfig and getCircuitBreakerConfig removed in\n// #5903. They promised \"environment override support\" for twelve NEXUS_*\n// variables that no running code read: `config get` reported them as\n// `Source: (env)` while the rate limiter took `enabled` from the config file,\n// retry used the static DEFAULT_RETRY_CONFIG, and the circuit breakers carried\n// their own config. Same treatment as the worker knobs in #2977 and the\n// per-complexity CLI timeouts in #4180. Read DEFAULTS.* directly.\n\n/**\n * Gets the tool rate limit configuration for a specific tool category.\n *\n * @param tool - Tool category (orchestrate, delegate, workflow, expert)\n * @returns Rate limit configuration\n */\nexport const getToolRateLimit = createGetToolRateLimit(DEFAULTS.TOOL_RATE_LIMITS);\n\n// getEnvVarDocumentation removed in #4939. After #2977 and #5903 its only\n// remaining table was the four NEXUS_TIMEOUT_* rows, and those named variables\n// nothing read; a generator advertising zero real overrides is not documentation.\n"],"mappings":"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","names":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadPapersRegistry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L6F6N72F.js";
|
|
4
4
|
import {
|
|
5
5
|
getErrorMessage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/research-helpers-synthesize.ts
|
|
9
9
|
import { z } from "zod";
|
|
@@ -876,4 +876,4 @@ export {
|
|
|
876
876
|
AttributedInsightSchema,
|
|
877
877
|
synthesizeResearch
|
|
878
878
|
};
|
|
879
|
-
//# sourceMappingURL=chunk-
|
|
879
|
+
//# sourceMappingURL=chunk-IKCULJYU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZJHPBJLQ.js";
|
|
4
4
|
import {
|
|
5
5
|
CACHE_TIMEOUTS,
|
|
6
6
|
MCP_TIMEOUTS,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
getTimeProvider,
|
|
18
18
|
ok,
|
|
19
19
|
resolveToolClassGuardMs
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
21
21
|
import {
|
|
22
22
|
getNexusDataDir
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RNDHNRSX.js";
|
|
24
24
|
|
|
25
25
|
// src/mcp/middleware/validation.ts
|
|
26
26
|
function validateToolInput(schema, args) {
|
|
@@ -2186,4 +2186,4 @@ export {
|
|
|
2186
2186
|
DEFAULT_CONSENSUS_CONFIG,
|
|
2187
2187
|
ConsensusMetricsSchema
|
|
2188
2188
|
};
|
|
2189
|
-
//# sourceMappingURL=chunk-
|
|
2189
|
+
//# sourceMappingURL=chunk-J3WA3SHX.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
MODEL_IDS,
|
|
4
4
|
getTimeProvider,
|
|
5
5
|
resolveModelIdentitySync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
7
7
|
|
|
8
8
|
// src/config/model-availability.ts
|
|
9
9
|
var DEFAULT_TTL_MS = 6e4;
|
|
@@ -150,4 +150,4 @@ export {
|
|
|
150
150
|
resetAvailabilityCache,
|
|
151
151
|
filterAvailableModels
|
|
152
152
|
};
|
|
153
|
-
//# sourceMappingURL=chunk-
|
|
153
|
+
//# sourceMappingURL=chunk-JRRAM2VZ.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SERVES_PROBE_PROMPT
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PQW42FX7.js";
|
|
4
4
|
import {
|
|
5
5
|
readOpenAICompatEnv
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AFBIOXNN.js";
|
|
7
7
|
import {
|
|
8
8
|
allOf
|
|
9
9
|
} from "./chunk-OQB3XC5O.js";
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
NODE_ENGINE_RANGE,
|
|
12
12
|
VERSION,
|
|
13
13
|
isNodeVersionSupported
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZJHPBJLQ.js";
|
|
15
15
|
import {
|
|
16
16
|
claimGlobalRegistry
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TGYLZFU5.js";
|
|
18
18
|
import {
|
|
19
19
|
capitalize
|
|
20
20
|
} from "./chunk-7LP6VJRP.js";
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
codexMcpServerAvailable,
|
|
26
26
|
createAllAdapters,
|
|
27
27
|
probeCli
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-666BO45M.js";
|
|
29
29
|
import {
|
|
30
30
|
getNexusTmpDir
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-HERI7LXN.js";
|
|
32
32
|
import {
|
|
33
33
|
DEFAULT_CAPABILITIES,
|
|
34
34
|
colors,
|
|
@@ -45,13 +45,13 @@ import {
|
|
|
45
45
|
resolveClassGuardMs,
|
|
46
46
|
symbols,
|
|
47
47
|
writeLine
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
49
49
|
import {
|
|
50
50
|
getLearningDir,
|
|
51
51
|
getOutcomesFile,
|
|
52
52
|
getRulesFile,
|
|
53
53
|
isPersistenceEnabled
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-4UHDDCRB.js";
|
|
55
55
|
import {
|
|
56
56
|
detectSandbox,
|
|
57
57
|
findRepoRoot,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
getNexusRepoDir,
|
|
60
60
|
getPerRepoSubdirs,
|
|
61
61
|
nexusDataPath
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-RNDHNRSX.js";
|
|
63
63
|
|
|
64
64
|
// src/cli/setup-data-dir.ts
|
|
65
65
|
import { mkdirSync, existsSync as existsSync3 } from "node:fs";
|
|
@@ -1314,13 +1314,13 @@ async function runDoctorFix(result) {
|
|
|
1314
1314
|
writeLine2("\u2500".repeat(40));
|
|
1315
1315
|
let fixCount = 0;
|
|
1316
1316
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
1317
|
-
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-
|
|
1317
|
+
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-GOITZLZI.js");
|
|
1318
1318
|
const outcome = describeDataDirFix2(initDataDirectories2());
|
|
1319
1319
|
writeLine2(outcome.line);
|
|
1320
1320
|
if (outcome.counted) fixCount++;
|
|
1321
1321
|
}
|
|
1322
1322
|
if (!result.configFile.found) {
|
|
1323
|
-
const { runConfigInitSync } = await import("./setup-config-
|
|
1323
|
+
const { runConfigInitSync } = await import("./setup-config-ZTACUOJK.js");
|
|
1324
1324
|
const configResult = runConfigInitSync(process.cwd(), false, false);
|
|
1325
1325
|
if (configResult.success && configResult.created) {
|
|
1326
1326
|
writeLine2(`\u2713 Generated config: ${configResult.path}`);
|
|
@@ -1416,4 +1416,4 @@ export {
|
|
|
1416
1416
|
startStdioServer,
|
|
1417
1417
|
closeServer
|
|
1418
1418
|
};
|
|
1419
|
-
//# sourceMappingURL=chunk-
|
|
1419
|
+
//# sourceMappingURL=chunk-KM2Q6MWR.js.map
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
err,
|
|
6
6
|
getErrorMessage,
|
|
7
7
|
ok
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
9
9
|
import {
|
|
10
10
|
findRepoRoot,
|
|
11
11
|
getActiveWorkspaceRoot,
|
|
12
12
|
isRepoRoot,
|
|
13
13
|
parseBoolEnv
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RNDHNRSX.js";
|
|
15
15
|
|
|
16
16
|
// src/cli/research-helpers-io.ts
|
|
17
17
|
import * as fs2 from "node:fs/promises";
|
|
@@ -223,4 +223,4 @@ export {
|
|
|
223
223
|
loadPapersRegistry,
|
|
224
224
|
savePapersRegistry
|
|
225
225
|
};
|
|
226
|
-
//# sourceMappingURL=chunk-
|
|
226
|
+
//# sourceMappingURL=chunk-L6F6N72F.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
err,
|
|
5
5
|
getErrorMessage,
|
|
6
6
|
ok
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6ZTPCRTD.js";
|
|
8
8
|
|
|
9
9
|
// src/scm/types.ts
|
|
10
10
|
var ScmError = class extends Error {
|
|
@@ -281,4 +281,4 @@ export {
|
|
|
281
281
|
ScmError,
|
|
282
282
|
GitHubProvider
|
|
283
283
|
};
|
|
284
|
-
//# sourceMappingURL=chunk-
|
|
284
|
+
//# sourceMappingURL=chunk-OF4P5LQP.js.map
|