nexus-agents 7.0.2 → 8.0.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/{child-mcp-config-ORXLS5HP.js → child-mcp-config-IPF4QIVB.js} +7 -7
- package/dist/chunk-227USJYZ.js +7 -0
- package/dist/{chunk-UVO673OY.js → chunk-2XXKUAQS.js} +3 -3
- package/dist/{chunk-Y742U2YM.js → chunk-3MBGQAO2.js} +124 -104
- package/dist/chunk-3MBGQAO2.js.map +1 -0
- package/dist/{chunk-4OW67KT2.js → chunk-4HXPNLZS.js} +6 -6
- package/dist/{chunk-W4Q5NZYZ.js → chunk-4QHAMZLU.js} +3 -3
- package/dist/{chunk-7U7HAYPB.js → chunk-4U62WRPL.js} +25 -59
- package/dist/chunk-4U62WRPL.js.map +1 -0
- package/dist/{chunk-AGFXJUTS.js → chunk-4VZ5GK5B.js} +14 -14
- package/dist/{chunk-XZEYSIGG.js → chunk-5YC3SC34.js} +4 -4
- package/dist/{chunk-RSMG2DPB.js → chunk-64GMIUM5.js} +5 -5
- package/dist/{chunk-RBF64DXJ.js → chunk-6LDUEA4I.js} +5 -5
- package/dist/{chunk-3CGUPSBW.js → chunk-6MPT2NRF.js} +2 -2
- package/dist/{chunk-33FI7W3G.js → chunk-7RLFZ6OB.js} +3 -3
- package/dist/{chunk-KJWD2V4K.js → chunk-CCRTVIXF.js} +7 -7
- package/dist/{chunk-HFOQKCD2.js → chunk-DGWT7DXX.js} +3 -3
- package/dist/{chunk-HFOQKCD2.js.map → chunk-DGWT7DXX.js.map} +1 -1
- package/dist/{chunk-XREG2HTQ.js → chunk-EWKBHDAU.js} +4 -4
- package/dist/{chunk-QAHGHWC7.js → chunk-F33RCSOC.js} +23 -23
- package/dist/{chunk-D6TL5GZV.js → chunk-F4AT3BCP.js} +5 -5
- package/dist/{chunk-Q6IODDEA.js → chunk-FBVOBOHS.js} +12 -12
- package/dist/{chunk-Q6IODDEA.js.map → chunk-FBVOBOHS.js.map} +1 -1
- package/dist/{chunk-LVYRGNOC.js → chunk-FFZNRJ5Q.js} +2 -2
- package/dist/{chunk-Y5GYBP52.js → chunk-FKWMYLSZ.js} +4 -4
- package/dist/{chunk-KUYKSKPV.js → chunk-GHIHBN4J.js} +214 -219
- package/dist/chunk-GHIHBN4J.js.map +1 -0
- package/dist/{chunk-JNZ3D5B5.js → chunk-HBHTXBA4.js} +4 -4
- package/dist/{chunk-RLBJTZHA.js → chunk-HS43MFL4.js} +2 -2
- package/dist/{chunk-GAYSJGKD.js → chunk-INNWBLE4.js} +13 -13
- package/dist/{chunk-GBHJ37V3.js → chunk-ITCKXMOH.js} +4 -4
- package/dist/{chunk-K2AWJGQO.js → chunk-K6EHC227.js} +8 -8
- package/dist/{chunk-JJT7NVNY.js → chunk-LTTUQNP2.js} +4 -4
- package/dist/{chunk-OGHEKPLD.js → chunk-MM223CVS.js} +10 -10
- package/dist/{chunk-JEAKVUWM.js → chunk-ODBLHHTP.js} +3 -3
- package/dist/{chunk-6GYTTWNM.js → chunk-OM5BVTVF.js} +2 -2
- package/dist/{chunk-IWTK6FDT.js → chunk-QP423I4T.js} +4 -4
- package/dist/{chunk-WLIXCNZ6.js → chunk-RB3X45G5.js} +24 -24
- package/dist/chunk-RB3X45G5.js.map +1 -0
- package/dist/{chunk-VVXHIUFQ.js → chunk-T7XKLZPC.js} +6 -6
- package/dist/{chunk-ZGEDIKAM.js → chunk-TO5LX5VU.js} +4 -4
- package/dist/{chunk-6Q3KSZVI.js → chunk-U5YJKJK2.js} +2 -2
- package/dist/{chunk-BTWKDT4F.js → chunk-UZULX2DZ.js} +20 -20
- package/dist/{chunk-OHULIRP6.js → chunk-VMMMRHCW.js} +19 -19
- package/dist/{chunk-S2Z7CME3.js → chunk-W2R6UVZJ.js} +2 -2
- package/dist/{chunk-ZD4VEHEG.js → chunk-Y5I3F3YC.js} +2 -2
- package/dist/{chunk-KSQSWEFH.js → chunk-YYJFZ7TO.js} +26 -11
- package/dist/chunk-YYJFZ7TO.js.map +1 -0
- package/dist/{chunk-VYAXMVI5.js → chunk-ZYPEHPRM.js} +5 -5
- package/dist/{chunk-VYAXMVI5.js.map → chunk-ZYPEHPRM.js.map} +1 -1
- package/dist/{cli-circuit-breaker-5FYJDS5O.js → cli-circuit-breaker-KRIR74SW.js} +5 -5
- package/dist/cli.js +378 -379
- package/dist/cli.js.map +1 -1
- package/dist/{codebase-search-RHBGEWXK.js → codebase-search-3D4TW3KR.js} +2 -2
- package/dist/{composite-router-GE24MYPP.js → composite-router-VTPCCQQU.js} +4 -4
- package/dist/{consensus-vote-62FAN4ZN.js → consensus-vote-6MHOJFIA.js} +22 -22
- package/dist/{context-retriever-3OO6N4V6.js → context-retriever-ASWO5E6N.js} +12 -12
- package/dist/{dist-IKZ53APZ.js → dist-TJCQ3JLP.js} +2 -2
- package/dist/doctor-deep-WLVSUPFA.js +13 -0
- package/dist/{doctor-live-J7JIZH3T.js → doctor-live-5L4RI4GW.js} +13 -13
- package/dist/{expert-bridge-PWRVRFDG.js → expert-bridge-K4FSDGPL.js} +6 -6
- package/dist/factory-DQWPXJHP.js +15 -0
- package/dist/factory-X4PUAG26.js +25 -0
- package/dist/{improvement-review-QUU5HR7Z.js → improvement-review-UV42QAVL.js} +8 -8
- package/dist/index.d.ts +58 -56
- package/dist/index.js +65 -76
- package/dist/index.js.map +1 -1
- package/dist/{init-opencode-GDPE4U65.js → init-opencode-73YZUQQX.js} +10 -10
- package/dist/issue-triage-ATDH5B5W.js +17 -0
- package/dist/{learning-persistence-7O5QYDM7.js → learning-persistence-7N5SZHNX.js} +3 -3
- package/dist/{pr-reviewer-helpers-KBOP72XG.js → pr-reviewer-helpers-XRAYFBTQ.js} +6 -6
- package/dist/{registry-command-ZK4NQ2MX.js → registry-command-O7TLGMNL.js} +7 -7
- package/dist/{repo-analyze-UJOWFGNM.js → repo-analyze-DI65XOTQ.js} +2 -2
- package/dist/{repo-security-plan-SZU4O2TN.js → repo-security-plan-OAOLRK5Z.js} +6 -6
- package/dist/research-helpers-synthesize-J66KQW2N.js +14 -0
- package/dist/{routing-memory-2SMMUPTB.js → routing-memory-TLALXQEY.js} +4 -4
- package/dist/{session-memory-YQQVPLKM.js → session-memory-DMXEXMOD.js} +5 -5
- package/dist/setup-config-THXHCRSH.js +11 -0
- package/dist/{setup-custom-api-ZSBUIJID.js → setup-custom-api-EETAAEAD.js} +7 -7
- package/dist/setup-data-dir-SBZB5KMI.js +29 -0
- package/dist/tool-memory-RSRUWJFE.js +22 -0
- package/dist/tool-memory-registry-adapters-PCOYMYRF.js +12 -0
- package/dist/unified-registry-OHYTMXKA.js +26 -0
- package/dist/{weather-report-6AVPMHHM.js → weather-report-R5NAYRQK.js} +4 -4
- package/package.json +4 -8
- package/dist/chunk-37JIYDVH.js +0 -7
- package/dist/chunk-7U7HAYPB.js.map +0 -1
- package/dist/chunk-KSQSWEFH.js.map +0 -1
- package/dist/chunk-KUYKSKPV.js.map +0 -1
- package/dist/chunk-WLIXCNZ6.js.map +0 -1
- package/dist/chunk-Y742U2YM.js.map +0 -1
- package/dist/doctor-deep-6WHVRRVQ.js +0 -13
- package/dist/factory-3BZDQQYM.js +0 -25
- package/dist/factory-UFKRSADE.js +0 -15
- package/dist/issue-triage-2LNYGQRJ.js +0 -17
- package/dist/research-helpers-synthesize-QY3DDHTD.js +0 -14
- package/dist/setup-config-LMZE4IRV.js +0 -11
- package/dist/setup-data-dir-ZEH7TFA6.js +0 -29
- package/dist/tool-memory-GUPG2M25.js +0 -22
- package/dist/tool-memory-registry-adapters-IMRSOAAV.js +0 -12
- package/dist/unified-registry-RPT4O3XB.js +0 -26
- package/scripts/postinstall.js +0 -12
- /package/dist/{child-mcp-config-ORXLS5HP.js.map → child-mcp-config-IPF4QIVB.js.map} +0 -0
- /package/dist/{chunk-37JIYDVH.js.map → chunk-227USJYZ.js.map} +0 -0
- /package/dist/{chunk-UVO673OY.js.map → chunk-2XXKUAQS.js.map} +0 -0
- /package/dist/{chunk-4OW67KT2.js.map → chunk-4HXPNLZS.js.map} +0 -0
- /package/dist/{chunk-W4Q5NZYZ.js.map → chunk-4QHAMZLU.js.map} +0 -0
- /package/dist/{chunk-AGFXJUTS.js.map → chunk-4VZ5GK5B.js.map} +0 -0
- /package/dist/{chunk-XZEYSIGG.js.map → chunk-5YC3SC34.js.map} +0 -0
- /package/dist/{chunk-RSMG2DPB.js.map → chunk-64GMIUM5.js.map} +0 -0
- /package/dist/{chunk-RBF64DXJ.js.map → chunk-6LDUEA4I.js.map} +0 -0
- /package/dist/{chunk-3CGUPSBW.js.map → chunk-6MPT2NRF.js.map} +0 -0
- /package/dist/{chunk-33FI7W3G.js.map → chunk-7RLFZ6OB.js.map} +0 -0
- /package/dist/{chunk-KJWD2V4K.js.map → chunk-CCRTVIXF.js.map} +0 -0
- /package/dist/{chunk-XREG2HTQ.js.map → chunk-EWKBHDAU.js.map} +0 -0
- /package/dist/{chunk-QAHGHWC7.js.map → chunk-F33RCSOC.js.map} +0 -0
- /package/dist/{chunk-D6TL5GZV.js.map → chunk-F4AT3BCP.js.map} +0 -0
- /package/dist/{chunk-LVYRGNOC.js.map → chunk-FFZNRJ5Q.js.map} +0 -0
- /package/dist/{chunk-Y5GYBP52.js.map → chunk-FKWMYLSZ.js.map} +0 -0
- /package/dist/{chunk-JNZ3D5B5.js.map → chunk-HBHTXBA4.js.map} +0 -0
- /package/dist/{chunk-RLBJTZHA.js.map → chunk-HS43MFL4.js.map} +0 -0
- /package/dist/{chunk-GAYSJGKD.js.map → chunk-INNWBLE4.js.map} +0 -0
- /package/dist/{chunk-GBHJ37V3.js.map → chunk-ITCKXMOH.js.map} +0 -0
- /package/dist/{chunk-K2AWJGQO.js.map → chunk-K6EHC227.js.map} +0 -0
- /package/dist/{chunk-JJT7NVNY.js.map → chunk-LTTUQNP2.js.map} +0 -0
- /package/dist/{chunk-OGHEKPLD.js.map → chunk-MM223CVS.js.map} +0 -0
- /package/dist/{chunk-JEAKVUWM.js.map → chunk-ODBLHHTP.js.map} +0 -0
- /package/dist/{chunk-6GYTTWNM.js.map → chunk-OM5BVTVF.js.map} +0 -0
- /package/dist/{chunk-IWTK6FDT.js.map → chunk-QP423I4T.js.map} +0 -0
- /package/dist/{chunk-VVXHIUFQ.js.map → chunk-T7XKLZPC.js.map} +0 -0
- /package/dist/{chunk-ZGEDIKAM.js.map → chunk-TO5LX5VU.js.map} +0 -0
- /package/dist/{chunk-6Q3KSZVI.js.map → chunk-U5YJKJK2.js.map} +0 -0
- /package/dist/{chunk-BTWKDT4F.js.map → chunk-UZULX2DZ.js.map} +0 -0
- /package/dist/{chunk-OHULIRP6.js.map → chunk-VMMMRHCW.js.map} +0 -0
- /package/dist/{chunk-S2Z7CME3.js.map → chunk-W2R6UVZJ.js.map} +0 -0
- /package/dist/{chunk-ZD4VEHEG.js.map → chunk-Y5I3F3YC.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-5FYJDS5O.js.map → cli-circuit-breaker-KRIR74SW.js.map} +0 -0
- /package/dist/{codebase-search-RHBGEWXK.js.map → codebase-search-3D4TW3KR.js.map} +0 -0
- /package/dist/{composite-router-GE24MYPP.js.map → composite-router-VTPCCQQU.js.map} +0 -0
- /package/dist/{consensus-vote-62FAN4ZN.js.map → consensus-vote-6MHOJFIA.js.map} +0 -0
- /package/dist/{context-retriever-3OO6N4V6.js.map → context-retriever-ASWO5E6N.js.map} +0 -0
- /package/dist/{dist-IKZ53APZ.js.map → dist-TJCQ3JLP.js.map} +0 -0
- /package/dist/{doctor-deep-6WHVRRVQ.js.map → doctor-deep-WLVSUPFA.js.map} +0 -0
- /package/dist/{doctor-live-J7JIZH3T.js.map → doctor-live-5L4RI4GW.js.map} +0 -0
- /package/dist/{expert-bridge-PWRVRFDG.js.map → expert-bridge-K4FSDGPL.js.map} +0 -0
- /package/dist/{factory-3BZDQQYM.js.map → factory-DQWPXJHP.js.map} +0 -0
- /package/dist/{factory-UFKRSADE.js.map → factory-X4PUAG26.js.map} +0 -0
- /package/dist/{improvement-review-QUU5HR7Z.js.map → improvement-review-UV42QAVL.js.map} +0 -0
- /package/dist/{init-opencode-GDPE4U65.js.map → init-opencode-73YZUQQX.js.map} +0 -0
- /package/dist/{issue-triage-2LNYGQRJ.js.map → issue-triage-ATDH5B5W.js.map} +0 -0
- /package/dist/{learning-persistence-7O5QYDM7.js.map → learning-persistence-7N5SZHNX.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-KBOP72XG.js.map → pr-reviewer-helpers-XRAYFBTQ.js.map} +0 -0
- /package/dist/{registry-command-ZK4NQ2MX.js.map → registry-command-O7TLGMNL.js.map} +0 -0
- /package/dist/{repo-analyze-UJOWFGNM.js.map → repo-analyze-DI65XOTQ.js.map} +0 -0
- /package/dist/{repo-security-plan-SZU4O2TN.js.map → repo-security-plan-OAOLRK5Z.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-QY3DDHTD.js.map → research-helpers-synthesize-J66KQW2N.js.map} +0 -0
- /package/dist/{routing-memory-2SMMUPTB.js.map → routing-memory-TLALXQEY.js.map} +0 -0
- /package/dist/{session-memory-YQQVPLKM.js.map → session-memory-DMXEXMOD.js.map} +0 -0
- /package/dist/{setup-config-LMZE4IRV.js.map → setup-config-THXHCRSH.js.map} +0 -0
- /package/dist/{setup-custom-api-ZSBUIJID.js.map → setup-custom-api-EETAAEAD.js.map} +0 -0
- /package/dist/{setup-data-dir-ZEH7TFA6.js.map → setup-data-dir-SBZB5KMI.js.map} +0 -0
- /package/dist/{tool-memory-GUPG2M25.js.map → tool-memory-RSRUWJFE.js.map} +0 -0
- /package/dist/{tool-memory-registry-adapters-IMRSOAAV.js.map → tool-memory-registry-adapters-PCOYMYRF.js.map} +0 -0
- /package/dist/{unified-registry-RPT4O3XB.js.map → unified-registry-OHYTMXKA.js.map} +0 -0
- /package/dist/{weather-report-6AVPMHHM.js.map → weather-report-R5NAYRQK.js.map} +0 -0
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
getErrorMessage,
|
|
5
5
|
getTimeProvider,
|
|
6
6
|
ok
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3MBGQAO2.js";
|
|
8
8
|
|
|
9
9
|
// src/context/session-memory.ts
|
|
10
|
-
import * as fs from "fs";
|
|
11
|
-
import * as path from "path";
|
|
10
|
+
import * as fs from "node:fs";
|
|
11
|
+
import * as path from "node:path";
|
|
12
12
|
|
|
13
13
|
// src/context/session-memory-types.ts
|
|
14
14
|
import { z } from "zod";
|
|
@@ -366,4 +366,4 @@ export {
|
|
|
366
366
|
SessionMemory,
|
|
367
367
|
createSessionMemory
|
|
368
368
|
};
|
|
369
|
-
//# sourceMappingURL=chunk-
|
|
369
|
+
//# sourceMappingURL=chunk-HBHTXBA4.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
CACHE_TIMEOUTS,
|
|
3
3
|
createLogger,
|
|
4
4
|
getTimeProvider
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3MBGQAO2.js";
|
|
6
6
|
|
|
7
7
|
// src/security/trust-types.ts
|
|
8
8
|
import { z } from "zod";
|
|
@@ -560,4 +560,4 @@ export {
|
|
|
560
560
|
resolveReputationGatingMode,
|
|
561
561
|
gateWithReputation
|
|
562
562
|
};
|
|
563
|
-
//# sourceMappingURL=chunk-
|
|
563
|
+
//# sourceMappingURL=chunk-HS43MFL4.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-227USJYZ.js";
|
|
4
4
|
import {
|
|
5
5
|
emitClawGuardViolation
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U5YJKJK2.js";
|
|
7
7
|
import {
|
|
8
8
|
CACHE_TIMEOUTS,
|
|
9
9
|
MCP_TIMEOUTS,
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
getTimeProvider,
|
|
20
20
|
ok,
|
|
21
21
|
resolveToolClassGuardMs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3MBGQAO2.js";
|
|
23
23
|
import {
|
|
24
24
|
getNexusDataDir
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MM223CVS.js";
|
|
26
26
|
|
|
27
27
|
// src/mcp/middleware/validation.ts
|
|
28
28
|
function validateToolInput(schema, args) {
|
|
@@ -172,7 +172,7 @@ var PolicyConfigSchema = z.object({
|
|
|
172
172
|
});
|
|
173
173
|
|
|
174
174
|
// src/mcp/middleware/policy-helpers.ts
|
|
175
|
-
import { resolve, sep } from "path";
|
|
175
|
+
import { resolve, sep } from "node:path";
|
|
176
176
|
function isPathSafe(targetPath, allowedPaths) {
|
|
177
177
|
const resolvedTarget = resolve(targetPath);
|
|
178
178
|
for (const allowed of allowedPaths) {
|
|
@@ -575,8 +575,8 @@ function toolError(message) {
|
|
|
575
575
|
}
|
|
576
576
|
|
|
577
577
|
// src/mcp/middleware/request-context.ts
|
|
578
|
-
import { AsyncLocalStorage } from "async_hooks";
|
|
579
|
-
import { randomBytes } from "crypto";
|
|
578
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
579
|
+
import { randomBytes } from "node:crypto";
|
|
580
580
|
function generateRequestId() {
|
|
581
581
|
const bytes = randomBytes(8);
|
|
582
582
|
return `req_${bytes.toString("hex")}`;
|
|
@@ -1119,7 +1119,7 @@ async function executeAndAudit(handler, sanitizedArgs, config, invocation) {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
|
|
1121
1121
|
// src/mcp/mcp-notifier.ts
|
|
1122
|
-
import { AsyncLocalStorage as AsyncLocalStorage2 } from "async_hooks";
|
|
1122
|
+
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
1123
1123
|
var internalLogger = createLogger({ component: "mcp-notifier" });
|
|
1124
1124
|
function createMcpNotifier(server) {
|
|
1125
1125
|
function send(level, logger, data) {
|
|
@@ -1183,9 +1183,9 @@ async function withProgressHeartbeat(toolName, notifier, operation, intervalMs =
|
|
|
1183
1183
|
}
|
|
1184
1184
|
|
|
1185
1185
|
// src/mcp/middleware/tool-wrapper.ts
|
|
1186
|
-
import { randomUUID } from "crypto";
|
|
1187
|
-
import { appendFileSync, existsSync, mkdirSync } from "fs";
|
|
1188
|
-
import { dirname, join } from "path";
|
|
1186
|
+
import { randomUUID } from "node:crypto";
|
|
1187
|
+
import { appendFileSync, existsSync, mkdirSync } from "node:fs";
|
|
1188
|
+
import { dirname, join } from "node:path";
|
|
1189
1189
|
|
|
1190
1190
|
// src/mcp/middleware/timeout-guard.ts
|
|
1191
1191
|
var DEFAULT_TIMEOUT_MS = TIMEOUT_GUARD.defaultMs;
|
|
@@ -1506,7 +1506,7 @@ function decideOnViolation(toolName, mode) {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
|
|
1508
1508
|
// src/security/access-constraint-deriver/mcp-guard.ts
|
|
1509
|
-
import { AsyncLocalStorage as AsyncLocalStorage3 } from "async_hooks";
|
|
1509
|
+
import { AsyncLocalStorage as AsyncLocalStorage3 } from "node:async_hooks";
|
|
1510
1510
|
var accessPolicyStorage = new AsyncLocalStorage3();
|
|
1511
1511
|
var auditTrailStorage = new AsyncLocalStorage3();
|
|
1512
1512
|
var MAX_WARNING_LEN = 500;
|
|
@@ -2231,4 +2231,4 @@ export {
|
|
|
2231
2231
|
VOTING_THRESHOLDS,
|
|
2232
2232
|
ConsensusMetricsSchema
|
|
2233
2233
|
};
|
|
2234
|
-
//# sourceMappingURL=chunk-
|
|
2234
|
+
//# sourceMappingURL=chunk-INNWBLE4.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getNexusDataDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MM223CVS.js";
|
|
4
4
|
|
|
5
5
|
// src/config/learning-persistence.ts
|
|
6
|
-
import { mkdirSync } from "fs";
|
|
7
|
-
import { join } from "path";
|
|
6
|
+
import { mkdirSync } from "node:fs";
|
|
7
|
+
import { join } from "node:path";
|
|
8
8
|
function getLearningDir() {
|
|
9
9
|
return join(getNexusDataDir(), "learning");
|
|
10
10
|
}
|
|
@@ -45,4 +45,4 @@ export {
|
|
|
45
45
|
isPersistenceEnabled,
|
|
46
46
|
ensureLearningDir
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-ITCKXMOH.js.map
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
getErrorMessage,
|
|
6
6
|
ok,
|
|
7
7
|
parseBoolEnv
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3MBGQAO2.js";
|
|
9
9
|
|
|
10
10
|
// src/cli/research-helpers-io.ts
|
|
11
|
-
import * as fs2 from "fs/promises";
|
|
12
|
-
import { join, resolve as resolve3 } from "path";
|
|
11
|
+
import * as fs2 from "node:fs/promises";
|
|
12
|
+
import { join, resolve as resolve3 } from "node:path";
|
|
13
13
|
|
|
14
14
|
// src/security/safe-path.ts
|
|
15
|
-
import { resolve, sep } from "path";
|
|
15
|
+
import { resolve, sep } from "node:path";
|
|
16
16
|
function resolveInsideRoot(filePath, root = process.cwd()) {
|
|
17
17
|
const resolvedRoot = resolve(root);
|
|
18
18
|
const resolved = resolve(resolvedRoot, filePath);
|
|
@@ -25,9 +25,9 @@ function resolveInsideRoot(filePath, root = process.cwd()) {
|
|
|
25
25
|
import { parse as parseYaml, stringify as stringifyYaml2 } from "yaml";
|
|
26
26
|
|
|
27
27
|
// src/cli/research-scaffold.ts
|
|
28
|
-
import * as fs from "fs/promises";
|
|
29
|
-
import { existsSync } from "fs";
|
|
30
|
-
import { dirname, resolve as resolve2 } from "path";
|
|
28
|
+
import * as fs from "node:fs/promises";
|
|
29
|
+
import { existsSync } from "node:fs";
|
|
30
|
+
import { dirname, resolve as resolve2 } from "node:path";
|
|
31
31
|
import { stringify as stringifyYaml } from "yaml";
|
|
32
32
|
var SCHEMA_VERSION = "1.0";
|
|
33
33
|
var ANNOUNCED = /* @__PURE__ */ new Set();
|
|
@@ -156,4 +156,4 @@ export {
|
|
|
156
156
|
loadPapersRegistry,
|
|
157
157
|
savePapersRegistry
|
|
158
158
|
};
|
|
159
|
-
//# sourceMappingURL=chunk-
|
|
159
|
+
//# sourceMappingURL=chunk-K6EHC227.js.map
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
gateWithReputation,
|
|
13
13
|
resolveReputationGatingMode,
|
|
14
14
|
sanitizeInput
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HS43MFL4.js";
|
|
16
16
|
import {
|
|
17
17
|
createLogger,
|
|
18
18
|
getTimeProvider
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3MBGQAO2.js";
|
|
20
20
|
|
|
21
21
|
// src/dogfooding/pr-reviewer-helpers.ts
|
|
22
|
-
import { randomUUID } from "crypto";
|
|
22
|
+
import { randomUUID } from "node:crypto";
|
|
23
23
|
var repLogger = createLogger({ component: "PRReviewer.reputation" });
|
|
24
24
|
async function fetchAccountAgeDays(provider, username) {
|
|
25
25
|
try {
|
|
@@ -303,4 +303,4 @@ export {
|
|
|
303
303
|
createFailedReview,
|
|
304
304
|
reviewPostingBlock
|
|
305
305
|
};
|
|
306
|
-
//# sourceMappingURL=chunk-
|
|
306
|
+
//# sourceMappingURL=chunk-LTTUQNP2.js.map
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
renameSync,
|
|
10
10
|
statSync as statSync3,
|
|
11
11
|
unlinkSync
|
|
12
|
-
} from "fs";
|
|
13
|
-
import { homedir as homedir2 } from "os";
|
|
14
|
-
import { dirname as dirname2, isAbsolute as isAbsolute2, join as join2, resolve as resolve3 } from "path";
|
|
12
|
+
} from "node:fs";
|
|
13
|
+
import { homedir as homedir2 } from "node:os";
|
|
14
|
+
import { dirname as dirname2, isAbsolute as isAbsolute2, join as join2, resolve as resolve3 } from "node:path";
|
|
15
15
|
|
|
16
16
|
// src/config/sandbox-detection.ts
|
|
17
|
-
import { existsSync, readFileSync } from "fs";
|
|
17
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
18
18
|
function detectSandbox() {
|
|
19
19
|
const flavorRaw = process.env["NEXUS_SANDBOX"]?.trim();
|
|
20
20
|
const flavor = flavorRaw !== void 0 && flavorRaw !== "" ? flavorRaw : void 0;
|
|
@@ -44,8 +44,8 @@ function detectContainerHeuristic() {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
// src/config/repo-root-detection.ts
|
|
47
|
-
import { existsSync as existsSync2, readFileSync as readFileSync2, realpathSync, statSync } from "fs";
|
|
48
|
-
import { dirname, isAbsolute, resolve } from "path";
|
|
47
|
+
import { existsSync as existsSync2, readFileSync as readFileSync2, realpathSync, statSync } from "node:fs";
|
|
48
|
+
import { dirname, isAbsolute, resolve } from "node:path";
|
|
49
49
|
function findRepoRoot(start) {
|
|
50
50
|
if (!isAbsolute(start)) {
|
|
51
51
|
start = resolve(start);
|
|
@@ -98,9 +98,9 @@ function isRepoRoot(dir) {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
// src/config/portable-mode.ts
|
|
101
|
-
import { accessSync, constants, existsSync as existsSync3, readFileSync as readFileSync3, appendFileSync, statSync as statSync2 } from "fs";
|
|
102
|
-
import { homedir } from "os";
|
|
103
|
-
import { join, resolve as resolve2 } from "path";
|
|
101
|
+
import { accessSync, constants, existsSync as existsSync3, readFileSync as readFileSync3, appendFileSync, statSync as statSync2 } from "node:fs";
|
|
102
|
+
import { homedir } from "node:os";
|
|
103
|
+
import { join, resolve as resolve2 } from "node:path";
|
|
104
104
|
var SANDBOX_ENV_VARS = [
|
|
105
105
|
"KUBERNETES_SERVICE_HOST",
|
|
106
106
|
"DOCKER_CONTAINER",
|
|
@@ -392,4 +392,4 @@ export {
|
|
|
392
392
|
getPerRepoSubdirs,
|
|
393
393
|
sessionsDbPath
|
|
394
394
|
};
|
|
395
|
-
//# sourceMappingURL=chunk-
|
|
395
|
+
//# sourceMappingURL=chunk-MM223CVS.js.map
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
MemoryRegistry,
|
|
3
3
|
hasMemoryRegistry,
|
|
4
4
|
setMemoryRegistry
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YYJFZ7TO.js";
|
|
6
6
|
import {
|
|
7
7
|
nexusDataPath
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MM223CVS.js";
|
|
9
9
|
|
|
10
10
|
// src/mcp/tools/tool-memory-registry-adapters.ts
|
|
11
11
|
var DEFAULT_SEARCH_LIMIT = 10;
|
|
@@ -93,4 +93,4 @@ export {
|
|
|
93
93
|
StatsOnlyAdapter,
|
|
94
94
|
ensureSharedMemoryRegistry
|
|
95
95
|
};
|
|
96
|
-
//# sourceMappingURL=chunk-
|
|
96
|
+
//# sourceMappingURL=chunk-ODBLHHTP.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
MODEL_IDS,
|
|
4
4
|
getTimeProvider,
|
|
5
5
|
resolveModelIdentitySync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3MBGQAO2.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-OM5BVTVF.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
err,
|
|
5
5
|
getErrorMessage,
|
|
6
6
|
ok
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3MBGQAO2.js";
|
|
8
8
|
|
|
9
9
|
// src/scm/types.ts
|
|
10
10
|
var ScmError = class extends Error {
|
|
@@ -21,8 +21,8 @@ var ScmError = class extends Error {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
// src/scm/github-provider.ts
|
|
24
|
-
import { execFile } from "child_process";
|
|
25
|
-
import { promisify } from "util";
|
|
24
|
+
import { execFile } from "node:child_process";
|
|
25
|
+
import { promisify } from "node:util";
|
|
26
26
|
import { z } from "zod";
|
|
27
27
|
var execFileAsync = promisify(execFile);
|
|
28
28
|
var logger = createLogger({ component: "GitHubProvider" });
|
|
@@ -263,4 +263,4 @@ export {
|
|
|
263
263
|
ScmError,
|
|
264
264
|
GitHubProvider
|
|
265
265
|
};
|
|
266
|
-
//# sourceMappingURL=chunk-
|
|
266
|
+
//# sourceMappingURL=chunk-QP423I4T.js.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readOpenAICompatEnv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T7XKLZPC.js";
|
|
4
4
|
import {
|
|
5
5
|
allOf
|
|
6
6
|
} from "./chunk-OQB3XC5O.js";
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-227USJYZ.js";
|
|
10
10
|
import {
|
|
11
11
|
capitalize
|
|
12
12
|
} from "./chunk-6T3EPABN.js";
|
|
13
13
|
import {
|
|
14
14
|
createAllAdapters,
|
|
15
15
|
probeCli
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UZULX2DZ.js";
|
|
17
17
|
import {
|
|
18
18
|
getNexusTmpDir
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4HXPNLZS.js";
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_CAPABILITIES,
|
|
22
22
|
colors,
|
|
@@ -28,23 +28,23 @@ import {
|
|
|
28
28
|
ok,
|
|
29
29
|
symbols,
|
|
30
30
|
writeLine
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-3MBGQAO2.js";
|
|
32
32
|
import {
|
|
33
33
|
getLearningDir,
|
|
34
34
|
getOutcomesFile,
|
|
35
35
|
getRulesFile,
|
|
36
36
|
isPersistenceEnabled
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ITCKXMOH.js";
|
|
38
38
|
import {
|
|
39
39
|
detectSandbox,
|
|
40
40
|
getNexusDataDir,
|
|
41
41
|
getNexusRepoDir,
|
|
42
42
|
getPerRepoSubdirs,
|
|
43
43
|
nexusDataPath
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-MM223CVS.js";
|
|
45
45
|
|
|
46
46
|
// src/cli/setup-data-dir.ts
|
|
47
|
-
import { mkdirSync, existsSync as existsSync3 } from "fs";
|
|
47
|
+
import { mkdirSync, existsSync as existsSync3 } from "node:fs";
|
|
48
48
|
|
|
49
49
|
// src/cli/doctor.ts
|
|
50
50
|
import {
|
|
@@ -53,11 +53,11 @@ import {
|
|
|
53
53
|
readdirSync,
|
|
54
54
|
accessSync,
|
|
55
55
|
constants as fsConstants
|
|
56
|
-
} from "fs";
|
|
56
|
+
} from "node:fs";
|
|
57
57
|
|
|
58
58
|
// src/cli/doctor-scratch-space.ts
|
|
59
|
-
import { statSync, statfsSync } from "fs";
|
|
60
|
-
import { tmpdir } from "os";
|
|
59
|
+
import { statSync, statfsSync } from "node:fs";
|
|
60
|
+
import { tmpdir } from "node:os";
|
|
61
61
|
var MIB = 1024 * 1024;
|
|
62
62
|
var GIB = 1024 * 1024 * 1024;
|
|
63
63
|
var CRITICAL_FREE_BYTES = 512 * MIB;
|
|
@@ -544,16 +544,16 @@ function printLearningPersistence(check) {
|
|
|
544
544
|
function printSqliteCheck(check) {
|
|
545
545
|
if (check.available) {
|
|
546
546
|
writeLine(
|
|
547
|
-
`${formatStatus(true)} SQLite (
|
|
547
|
+
`${formatStatus(true)} SQLite (node:sqlite): ${colors.green}Available${colors.reset}`
|
|
548
548
|
);
|
|
549
549
|
} else {
|
|
550
550
|
writeLine(
|
|
551
|
-
`${formatStatus(false, true)} SQLite (
|
|
551
|
+
`${formatStatus(false, true)} SQLite (node:sqlite): ${colors.yellow}Not available${colors.reset}`
|
|
552
552
|
);
|
|
553
553
|
writeLine(
|
|
554
554
|
` ${colors.dim}Memory backends (agentic, adaptive, typed) require it${colors.reset}`
|
|
555
555
|
);
|
|
556
|
-
writeLine(` ${colors.dim}Fix:
|
|
556
|
+
writeLine(` ${colors.dim}Fix: upgrade to Node >= 22.5.0${colors.reset}`);
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
function printDataDirGroup(label, rootHint, subdirs) {
|
|
@@ -734,8 +734,8 @@ function printHarnessAlignment(check) {
|
|
|
734
734
|
}
|
|
735
735
|
|
|
736
736
|
// src/cli/doctor-harness-alignment.ts
|
|
737
|
-
import { existsSync, readFileSync } from "fs";
|
|
738
|
-
import { join } from "path";
|
|
737
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
738
|
+
import { join } from "node:path";
|
|
739
739
|
var HARNESS_FILES = [
|
|
740
740
|
{ harness: "Cursor", path: ".cursor/rules/agents.mdc" },
|
|
741
741
|
{ harness: "Windsurf", path: ".windsurf/rules/agents.md" },
|
|
@@ -794,7 +794,7 @@ function inspectFile(harness, relativePath, absolutePath) {
|
|
|
794
794
|
}
|
|
795
795
|
|
|
796
796
|
// src/cli/doctor.ts
|
|
797
|
-
import { execFileSync } from "child_process";
|
|
797
|
+
import { execFileSync } from "node:child_process";
|
|
798
798
|
var REQUIRED_NODE_MAJOR2 = 22;
|
|
799
799
|
var API_KEY_VARS = ["ANTHROPIC_API_KEY", "OPENAI_API_KEY", "GOOGLE_AI_API_KEY"];
|
|
800
800
|
var CONFIG_FILE_PATHS = [
|
|
@@ -1057,14 +1057,14 @@ function checkLearningPersistence() {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
async function checkSqlite() {
|
|
1059
1059
|
try {
|
|
1060
|
-
await import("
|
|
1060
|
+
await import("node:sqlite");
|
|
1061
1061
|
return { available: true, error: null };
|
|
1062
1062
|
} catch (error) {
|
|
1063
1063
|
const msg = getErrorMessage(error);
|
|
1064
1064
|
const isNotFound = msg.includes("Cannot find") || msg.includes("MODULE_NOT_FOUND");
|
|
1065
1065
|
return {
|
|
1066
1066
|
available: false,
|
|
1067
|
-
error: isNotFound ?
|
|
1067
|
+
error: isNotFound ? `node:sqlite unavailable on ${process.version} \u2014 requires Node >= 22.5.0; 5 memory backends unavailable` : `node:sqlite load error: ${msg}`
|
|
1068
1068
|
};
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
@@ -1201,13 +1201,13 @@ async function runDoctorFix(result) {
|
|
|
1201
1201
|
writeLine2("\u2500".repeat(40));
|
|
1202
1202
|
let fixCount = 0;
|
|
1203
1203
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
1204
|
-
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-
|
|
1204
|
+
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-SBZB5KMI.js");
|
|
1205
1205
|
const outcome = describeDataDirFix2(initDataDirectories2());
|
|
1206
1206
|
writeLine2(outcome.line);
|
|
1207
1207
|
if (outcome.counted) fixCount++;
|
|
1208
1208
|
}
|
|
1209
1209
|
if (!result.configFile.found) {
|
|
1210
|
-
const { runConfigInitSync } = await import("./setup-config-
|
|
1210
|
+
const { runConfigInitSync } = await import("./setup-config-THXHCRSH.js");
|
|
1211
1211
|
const configResult = runConfigInitSync(process.cwd(), false, false);
|
|
1212
1212
|
if (configResult.success && configResult.created) {
|
|
1213
1213
|
writeLine2(`\u2713 Generated config: ${configResult.path}`);
|
|
@@ -1216,8 +1216,8 @@ async function runDoctorFix(result) {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
if (!result.sqliteCheck.available) {
|
|
1218
1218
|
writeLine2("");
|
|
1219
|
-
writeLine2("\u26A0
|
|
1220
|
-
writeLine2(
|
|
1219
|
+
writeLine2("\u26A0 SQLite unavailable (node:sqlite needs Node >= 22.5.0):");
|
|
1220
|
+
writeLine2(` Upgrade Node (currently ${process.version})`);
|
|
1221
1221
|
}
|
|
1222
1222
|
if (fixCount > 0) {
|
|
1223
1223
|
writeLine2("");
|
|
@@ -1303,4 +1303,4 @@ export {
|
|
|
1303
1303
|
startStdioServer,
|
|
1304
1304
|
closeServer
|
|
1305
1305
|
};
|
|
1306
|
-
//# sourceMappingURL=chunk-
|
|
1306
|
+
//# sourceMappingURL=chunk-RB3X45G5.js.map
|