nexus-agents 7.0.2 → 8.0.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/{child-mcp-config-ORXLS5HP.js → child-mcp-config-V2ESGPZ4.js} +7 -7
- package/dist/{chunk-RBF64DXJ.js → chunk-2S7Q7GHX.js} +5 -5
- package/dist/{chunk-AGFXJUTS.js → chunk-3GMYW66U.js} +14 -14
- package/dist/{chunk-4OW67KT2.js → chunk-4HXPNLZS.js} +6 -6
- package/dist/{chunk-W4Q5NZYZ.js → chunk-4QHAMZLU.js} +3 -3
- package/dist/{chunk-KSQSWEFH.js → chunk-54Z2II7G.js} +21 -11
- package/dist/chunk-54Z2II7G.js.map +1 -0
- package/dist/{chunk-WLIXCNZ6.js → chunk-5FBPGOKA.js} +24 -24
- package/dist/chunk-5FBPGOKA.js.map +1 -0
- package/dist/{chunk-RSMG2DPB.js → chunk-64GMIUM5.js} +5 -5
- package/dist/{chunk-RLBJTZHA.js → chunk-AHTOZ2UR.js} +2 -2
- package/dist/{chunk-JNZ3D5B5.js → chunk-AL5E5T3O.js} +4 -4
- package/dist/{chunk-3CGUPSBW.js → chunk-BKAUGBSF.js} +2 -2
- package/dist/{chunk-XREG2HTQ.js → chunk-BSWLRSOG.js} +4 -4
- package/dist/{chunk-JJT7NVNY.js → chunk-CHU7NTUR.js} +4 -4
- package/dist/{chunk-UVO673OY.js → chunk-DBDXS7PE.js} +3 -3
- package/dist/{chunk-VYAXMVI5.js → chunk-DEYXS6IZ.js} +5 -5
- package/dist/{chunk-VYAXMVI5.js.map → chunk-DEYXS6IZ.js.map} +1 -1
- 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-LVYRGNOC.js → chunk-DWUF5YWG.js} +2 -2
- package/dist/{chunk-VVXHIUFQ.js → chunk-EGWPONTU.js} +6 -6
- package/dist/{chunk-OHULIRP6.js → chunk-EXAULYXZ.js} +19 -19
- package/dist/{chunk-K2AWJGQO.js → chunk-FSY2TYFX.js} +8 -8
- package/dist/{chunk-6GYTTWNM.js → chunk-FVHUWXM2.js} +2 -2
- package/dist/{chunk-ZGEDIKAM.js → chunk-FW2FBZBD.js} +4 -4
- package/dist/{chunk-ZD4VEHEG.js → chunk-H6BUSSTF.js} +2 -2
- package/dist/{chunk-D6TL5GZV.js → chunk-HKKLVWRO.js} +5 -5
- package/dist/{chunk-GBHJ37V3.js → chunk-ITCKXMOH.js} +4 -4
- package/dist/{chunk-Y742U2YM.js → chunk-J7SPTP2E.js} +119 -104
- package/dist/chunk-J7SPTP2E.js.map +1 -0
- package/dist/{chunk-KJWD2V4K.js → chunk-JFE3JT5Q.js} +7 -7
- package/dist/chunk-KRG23W3T.js +7 -0
- package/dist/{chunk-33FI7W3G.js → chunk-L2PDPA23.js} +3 -3
- package/dist/{chunk-XZEYSIGG.js → chunk-LOKTE5WE.js} +4 -4
- package/dist/{chunk-KUYKSKPV.js → chunk-LOYIV3HG.js} +214 -219
- package/dist/chunk-LOYIV3HG.js.map +1 -0
- package/dist/{chunk-Q6IODDEA.js → chunk-LVSKLVYC.js} +12 -12
- package/dist/{chunk-Q6IODDEA.js.map → chunk-LVSKLVYC.js.map} +1 -1
- package/dist/{chunk-JEAKVUWM.js → chunk-M6E5E7QV.js} +3 -3
- package/dist/{chunk-OGHEKPLD.js → chunk-MM223CVS.js} +10 -10
- package/dist/{chunk-6Q3KSZVI.js → chunk-MWS56UFF.js} +2 -2
- package/dist/{chunk-GAYSJGKD.js → chunk-OYWFWMLH.js} +13 -13
- package/dist/{chunk-S2Z7CME3.js → chunk-PXJ6CB5V.js} +2 -2
- package/dist/{chunk-Y5GYBP52.js → chunk-QTDUIXOJ.js} +4 -4
- package/dist/{chunk-7U7HAYPB.js → chunk-R4B4UJ6F.js} +25 -59
- package/dist/chunk-R4B4UJ6F.js.map +1 -0
- package/dist/{chunk-QAHGHWC7.js → chunk-WIJ5J7AH.js} +23 -23
- package/dist/{chunk-BTWKDT4F.js → chunk-YJ7Q2NHE.js} +20 -20
- package/dist/{chunk-IWTK6FDT.js → chunk-ZTPBXWA7.js} +4 -4
- package/dist/{cli-circuit-breaker-5FYJDS5O.js → cli-circuit-breaker-YFHX4FN2.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-224FZMI2.js} +4 -4
- package/dist/{consensus-vote-62FAN4ZN.js → consensus-vote-57SKG3EN.js} +22 -22
- package/dist/{context-retriever-3OO6N4V6.js → context-retriever-CCVDD7TO.js} +12 -12
- package/dist/{dist-IKZ53APZ.js → dist-JK32DFHT.js} +2 -2
- package/dist/doctor-deep-37II5V7H.js +13 -0
- package/dist/{doctor-live-J7JIZH3T.js → doctor-live-VXQOZW37.js} +13 -13
- package/dist/{expert-bridge-PWRVRFDG.js → expert-bridge-7LGHU7IL.js} +6 -6
- package/dist/factory-5URERSHK.js +25 -0
- package/dist/factory-SF6ZPN6D.js +15 -0
- package/dist/{improvement-review-QUU5HR7Z.js → improvement-review-2AFBFUQX.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-ZFCKUI2N.js} +10 -10
- package/dist/issue-triage-IVYGGNB4.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-TS2HJMZR.js} +6 -6
- package/dist/{registry-command-ZK4NQ2MX.js → registry-command-M6LXKNEY.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-LS5GCASE.js} +6 -6
- package/dist/research-helpers-synthesize-NQMSFDMD.js +14 -0
- package/dist/{routing-memory-2SMMUPTB.js → routing-memory-BBHAEJUL.js} +4 -4
- package/dist/{session-memory-YQQVPLKM.js → session-memory-GYIEP7MM.js} +5 -5
- package/dist/setup-config-YIQ7ZZT3.js +11 -0
- package/dist/{setup-custom-api-ZSBUIJID.js → setup-custom-api-CHISHJZV.js} +7 -7
- package/dist/setup-data-dir-KQKFLBKQ.js +29 -0
- package/dist/tool-memory-TGNVGKUT.js +22 -0
- package/dist/tool-memory-registry-adapters-35IPCJLV.js +12 -0
- package/dist/unified-registry-D4QCQ36Z.js +26 -0
- package/dist/{weather-report-6AVPMHHM.js → weather-report-ZLQGZUDL.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-V2ESGPZ4.js.map} +0 -0
- /package/dist/{chunk-RBF64DXJ.js.map → chunk-2S7Q7GHX.js.map} +0 -0
- /package/dist/{chunk-AGFXJUTS.js.map → chunk-3GMYW66U.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-RSMG2DPB.js.map → chunk-64GMIUM5.js.map} +0 -0
- /package/dist/{chunk-RLBJTZHA.js.map → chunk-AHTOZ2UR.js.map} +0 -0
- /package/dist/{chunk-JNZ3D5B5.js.map → chunk-AL5E5T3O.js.map} +0 -0
- /package/dist/{chunk-3CGUPSBW.js.map → chunk-BKAUGBSF.js.map} +0 -0
- /package/dist/{chunk-XREG2HTQ.js.map → chunk-BSWLRSOG.js.map} +0 -0
- /package/dist/{chunk-JJT7NVNY.js.map → chunk-CHU7NTUR.js.map} +0 -0
- /package/dist/{chunk-UVO673OY.js.map → chunk-DBDXS7PE.js.map} +0 -0
- /package/dist/{chunk-LVYRGNOC.js.map → chunk-DWUF5YWG.js.map} +0 -0
- /package/dist/{chunk-VVXHIUFQ.js.map → chunk-EGWPONTU.js.map} +0 -0
- /package/dist/{chunk-OHULIRP6.js.map → chunk-EXAULYXZ.js.map} +0 -0
- /package/dist/{chunk-K2AWJGQO.js.map → chunk-FSY2TYFX.js.map} +0 -0
- /package/dist/{chunk-6GYTTWNM.js.map → chunk-FVHUWXM2.js.map} +0 -0
- /package/dist/{chunk-ZGEDIKAM.js.map → chunk-FW2FBZBD.js.map} +0 -0
- /package/dist/{chunk-ZD4VEHEG.js.map → chunk-H6BUSSTF.js.map} +0 -0
- /package/dist/{chunk-D6TL5GZV.js.map → chunk-HKKLVWRO.js.map} +0 -0
- /package/dist/{chunk-GBHJ37V3.js.map → chunk-ITCKXMOH.js.map} +0 -0
- /package/dist/{chunk-KJWD2V4K.js.map → chunk-JFE3JT5Q.js.map} +0 -0
- /package/dist/{chunk-37JIYDVH.js.map → chunk-KRG23W3T.js.map} +0 -0
- /package/dist/{chunk-33FI7W3G.js.map → chunk-L2PDPA23.js.map} +0 -0
- /package/dist/{chunk-XZEYSIGG.js.map → chunk-LOKTE5WE.js.map} +0 -0
- /package/dist/{chunk-JEAKVUWM.js.map → chunk-M6E5E7QV.js.map} +0 -0
- /package/dist/{chunk-OGHEKPLD.js.map → chunk-MM223CVS.js.map} +0 -0
- /package/dist/{chunk-6Q3KSZVI.js.map → chunk-MWS56UFF.js.map} +0 -0
- /package/dist/{chunk-GAYSJGKD.js.map → chunk-OYWFWMLH.js.map} +0 -0
- /package/dist/{chunk-S2Z7CME3.js.map → chunk-PXJ6CB5V.js.map} +0 -0
- /package/dist/{chunk-Y5GYBP52.js.map → chunk-QTDUIXOJ.js.map} +0 -0
- /package/dist/{chunk-QAHGHWC7.js.map → chunk-WIJ5J7AH.js.map} +0 -0
- /package/dist/{chunk-BTWKDT4F.js.map → chunk-YJ7Q2NHE.js.map} +0 -0
- /package/dist/{chunk-IWTK6FDT.js.map → chunk-ZTPBXWA7.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-5FYJDS5O.js.map → cli-circuit-breaker-YFHX4FN2.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-224FZMI2.js.map} +0 -0
- /package/dist/{consensus-vote-62FAN4ZN.js.map → consensus-vote-57SKG3EN.js.map} +0 -0
- /package/dist/{context-retriever-3OO6N4V6.js.map → context-retriever-CCVDD7TO.js.map} +0 -0
- /package/dist/{dist-IKZ53APZ.js.map → dist-JK32DFHT.js.map} +0 -0
- /package/dist/{doctor-deep-6WHVRRVQ.js.map → doctor-deep-37II5V7H.js.map} +0 -0
- /package/dist/{doctor-live-J7JIZH3T.js.map → doctor-live-VXQOZW37.js.map} +0 -0
- /package/dist/{expert-bridge-PWRVRFDG.js.map → expert-bridge-7LGHU7IL.js.map} +0 -0
- /package/dist/{factory-3BZDQQYM.js.map → factory-5URERSHK.js.map} +0 -0
- /package/dist/{factory-UFKRSADE.js.map → factory-SF6ZPN6D.js.map} +0 -0
- /package/dist/{improvement-review-QUU5HR7Z.js.map → improvement-review-2AFBFUQX.js.map} +0 -0
- /package/dist/{init-opencode-GDPE4U65.js.map → init-opencode-ZFCKUI2N.js.map} +0 -0
- /package/dist/{issue-triage-2LNYGQRJ.js.map → issue-triage-IVYGGNB4.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-TS2HJMZR.js.map} +0 -0
- /package/dist/{registry-command-ZK4NQ2MX.js.map → registry-command-M6LXKNEY.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-LS5GCASE.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-QY3DDHTD.js.map → research-helpers-synthesize-NQMSFDMD.js.map} +0 -0
- /package/dist/{routing-memory-2SMMUPTB.js.map → routing-memory-BBHAEJUL.js.map} +0 -0
- /package/dist/{session-memory-YQQVPLKM.js.map → session-memory-GYIEP7MM.js.map} +0 -0
- /package/dist/{setup-config-LMZE4IRV.js.map → setup-config-YIQ7ZZT3.js.map} +0 -0
- /package/dist/{setup-custom-api-ZSBUIJID.js.map → setup-custom-api-CHISHJZV.js.map} +0 -0
- /package/dist/{setup-data-dir-ZEH7TFA6.js.map → setup-data-dir-KQKFLBKQ.js.map} +0 -0
- /package/dist/{tool-memory-GUPG2M25.js.map → tool-memory-TGNVGKUT.js.map} +0 -0
- /package/dist/{tool-memory-registry-adapters-IMRSOAAV.js.map → tool-memory-registry-adapters-35IPCJLV.js.map} +0 -0
- /package/dist/{unified-registry-RPT4O3XB.js.map → unified-registry-D4QCQ36Z.js.map} +0 -0
- /package/dist/{weather-report-6AVPMHHM.js.map → weather-report-ZLQGZUDL.js.map} +0 -0
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
MemoryRegistry,
|
|
3
3
|
hasMemoryRegistry,
|
|
4
4
|
setMemoryRegistry
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-54Z2II7G.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-M6E5E7QV.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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTimeProvider
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J7SPTP2E.js";
|
|
4
4
|
|
|
5
5
|
// src/security/audit-trail.ts
|
|
6
6
|
var MAX_EVENTS = 1e4;
|
|
@@ -205,4 +205,4 @@ export {
|
|
|
205
205
|
createGraphAuditBridge,
|
|
206
206
|
createAuditTrail
|
|
207
207
|
};
|
|
208
|
-
//# sourceMappingURL=chunk-
|
|
208
|
+
//# sourceMappingURL=chunk-MWS56UFF.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KRG23W3T.js";
|
|
4
4
|
import {
|
|
5
5
|
emitClawGuardViolation
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MWS56UFF.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-J7SPTP2E.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-OYWFWMLH.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getTimeProvider,
|
|
9
9
|
isRateLimitText,
|
|
10
10
|
ok
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-J7SPTP2E.js";
|
|
12
12
|
|
|
13
13
|
// src/cli-adapters/circuit-breaker-types.ts
|
|
14
14
|
var CircuitErrorCode = {
|
|
@@ -541,4 +541,4 @@ export {
|
|
|
541
541
|
CliCircuitBreakerIntegration,
|
|
542
542
|
createCliCircuitBreakerIntegration
|
|
543
543
|
};
|
|
544
|
-
//# sourceMappingURL=chunk-
|
|
544
|
+
//# sourceMappingURL=chunk-PXJ6CB5V.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getErrorMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J7SPTP2E.js";
|
|
4
4
|
|
|
5
5
|
// src/cli/setup-config.ts
|
|
6
|
-
import { copyFileSync, existsSync, mkdirSync, writeFileSync } from "fs";
|
|
7
|
-
import { dirname, resolve } from "path";
|
|
6
|
+
import { copyFileSync, existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
7
|
+
import { dirname, resolve } from "node:path";
|
|
8
8
|
var DEFAULT_CONFIG_FILE = "nexus-agents.yaml";
|
|
9
9
|
var DEFAULT_CONFIG_REL_PATH = `.nexus-agents/${DEFAULT_CONFIG_FILE}`;
|
|
10
10
|
var SETUP_CONFIG_TEMPLATE = `# Nexus Agents Configuration
|
|
@@ -77,4 +77,4 @@ function ensureBackup(outputPath) {
|
|
|
77
77
|
export {
|
|
78
78
|
runConfigInitSync
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-QTDUIXOJ.js.map
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
} from "./chunk-6T3EPABN.js";
|
|
6
6
|
import {
|
|
7
7
|
SessionMemory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AL5E5T3O.js";
|
|
9
9
|
import {
|
|
10
10
|
StatsOnlyAdapter,
|
|
11
11
|
ensureSharedMemoryRegistry
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-M6E5E7QV.js";
|
|
13
13
|
import {
|
|
14
14
|
getMemoryRegistry
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-54Z2II7G.js";
|
|
16
16
|
import {
|
|
17
17
|
generateId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-L2PDPA23.js";
|
|
19
19
|
import {
|
|
20
20
|
ErrorCode,
|
|
21
21
|
NexusError,
|
|
@@ -27,15 +27,16 @@ import {
|
|
|
27
27
|
getSharedMobiMem,
|
|
28
28
|
getTimeProvider,
|
|
29
29
|
ok,
|
|
30
|
+
openSqliteDatabase,
|
|
30
31
|
setSharedMobiMemDbPathResolver
|
|
31
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-J7SPTP2E.js";
|
|
32
33
|
import {
|
|
33
34
|
nexusDataPath
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-MM223CVS.js";
|
|
35
36
|
|
|
36
37
|
// src/mcp/tools/tool-memory.ts
|
|
37
|
-
import * as fs3 from "fs";
|
|
38
|
-
import * as path3 from "path";
|
|
38
|
+
import * as fs3 from "node:fs";
|
|
39
|
+
import * as path3 from "node:path";
|
|
39
40
|
|
|
40
41
|
// src/context/memory-backend-types.ts
|
|
41
42
|
import { z } from "zod";
|
|
@@ -1113,8 +1114,8 @@ var HindsightBeliefMemory = class {
|
|
|
1113
1114
|
};
|
|
1114
1115
|
|
|
1115
1116
|
// src/context/belief-cleanup.ts
|
|
1116
|
-
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
1117
|
-
import { dirname, join } from "path";
|
|
1117
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
1118
|
+
import { dirname, join } from "node:path";
|
|
1118
1119
|
var POLLUTED_PATTERNS = [
|
|
1119
1120
|
/arXiv Query:\s*search_query=/i,
|
|
1120
1121
|
// `id_list=...max_results=` — the no-results feed-fallback URL format.
|
|
@@ -1188,8 +1189,8 @@ async function runBeliefCleanup(options) {
|
|
|
1188
1189
|
import { z as z6 } from "zod";
|
|
1189
1190
|
|
|
1190
1191
|
// src/context/memory-markdown.ts
|
|
1191
|
-
import * as fs from "fs";
|
|
1192
|
-
import * as path from "path";
|
|
1192
|
+
import * as fs from "node:fs";
|
|
1193
|
+
import * as path from "node:path";
|
|
1193
1194
|
var MemoryMarkdownHelper = class {
|
|
1194
1195
|
constructor(markdownDir, logger7) {
|
|
1195
1196
|
this.markdownDir = markdownDir;
|
|
@@ -1434,21 +1435,13 @@ var HybridMemoryBackend = class {
|
|
|
1434
1435
|
});
|
|
1435
1436
|
return this.initPromise;
|
|
1436
1437
|
}
|
|
1438
|
+
// Stays async: this is a published Promise-returning API and its callers
|
|
1439
|
+
// await it. The only await was the dynamic `better-sqlite3` import, which
|
|
1440
|
+
// #5388 removed because `node:sqlite` is a synchronous builtin.
|
|
1441
|
+
// eslint-disable-next-line @typescript-eslint/require-await
|
|
1437
1442
|
async doInitialize() {
|
|
1438
1443
|
try {
|
|
1439
|
-
|
|
1440
|
-
this.logger.debug("better-sqlite3 import failed", { error: String(cause) });
|
|
1441
|
-
return null;
|
|
1442
|
-
});
|
|
1443
|
-
if (betterSqlite3Module === null) {
|
|
1444
|
-
return err(
|
|
1445
|
-
new MemoryError("better-sqlite3 not installed. Install: npm install better-sqlite3", {
|
|
1446
|
-
context: { dbPath: this.dbPath }
|
|
1447
|
-
})
|
|
1448
|
-
);
|
|
1449
|
-
}
|
|
1450
|
-
const Database = betterSqlite3Module.default;
|
|
1451
|
-
this.db = new Database(this.dbPath);
|
|
1444
|
+
this.db = openSqliteDatabase(this.dbPath);
|
|
1452
1445
|
this.createTables();
|
|
1453
1446
|
this.markdown.ensureDir();
|
|
1454
1447
|
this.initialized = true;
|
|
@@ -1956,16 +1949,7 @@ var GraphMemoryBackend = class {
|
|
|
1956
1949
|
const baseInit = await this.base.initialize();
|
|
1957
1950
|
if (!baseInit.ok) return baseInit;
|
|
1958
1951
|
try {
|
|
1959
|
-
|
|
1960
|
-
logger2.debug("better-sqlite3 import failed", { error: String(cause) });
|
|
1961
|
-
return null;
|
|
1962
|
-
});
|
|
1963
|
-
if (mod === null)
|
|
1964
|
-
return err(
|
|
1965
|
-
new MemoryError("better-sqlite3 not installed. Install: npm install better-sqlite3")
|
|
1966
|
-
);
|
|
1967
|
-
const Database = mod.default;
|
|
1968
|
-
this.db = new Database(this.config.dbPath);
|
|
1952
|
+
this.db = openSqliteDatabase(this.config.dbPath);
|
|
1969
1953
|
this.createGraphTables();
|
|
1970
1954
|
this.initialized = true;
|
|
1971
1955
|
this.log.info("GraphMemoryBackend initialized");
|
|
@@ -2652,16 +2636,7 @@ var AgenticMemoryBackend = class {
|
|
|
2652
2636
|
const graphInit = await this.graph.initialize();
|
|
2653
2637
|
if (!graphInit.ok) return graphInit;
|
|
2654
2638
|
try {
|
|
2655
|
-
|
|
2656
|
-
this.log.debug("better-sqlite3 import failed", { error: String(cause) });
|
|
2657
|
-
return null;
|
|
2658
|
-
});
|
|
2659
|
-
if (mod === null)
|
|
2660
|
-
return err(
|
|
2661
|
-
new MemoryError("better-sqlite3 not installed. Install: npm install better-sqlite3")
|
|
2662
|
-
);
|
|
2663
|
-
const Database = mod.default;
|
|
2664
|
-
this.db = new Database(this.config.dbPath);
|
|
2639
|
+
this.db = openSqliteDatabase(this.config.dbPath);
|
|
2665
2640
|
this.initialized = true;
|
|
2666
2641
|
this.log.info("AgenticMemoryBackend initialized");
|
|
2667
2642
|
return ok(void 0);
|
|
@@ -3146,16 +3121,7 @@ var AdaptiveMemoryBackend = class {
|
|
|
3146
3121
|
const baseInit = await this.base.initialize();
|
|
3147
3122
|
if (!baseInit.ok) return baseInit;
|
|
3148
3123
|
try {
|
|
3149
|
-
|
|
3150
|
-
this.log.debug("better-sqlite3 import failed", { error: String(cause) });
|
|
3151
|
-
return null;
|
|
3152
|
-
});
|
|
3153
|
-
if (mod === null)
|
|
3154
|
-
return err(
|
|
3155
|
-
new MemoryError("better-sqlite3 not installed. Install: npm install better-sqlite3")
|
|
3156
|
-
);
|
|
3157
|
-
const Database = mod.default;
|
|
3158
|
-
this.db = new Database(this.config.dbPath);
|
|
3124
|
+
this.db = openSqliteDatabase(this.config.dbPath);
|
|
3159
3125
|
this.initialized = true;
|
|
3160
3126
|
this.log.info("AdaptiveMemoryBackend initialized");
|
|
3161
3127
|
return ok(void 0);
|
|
@@ -3276,8 +3242,8 @@ var AdaptiveMemoryBackend = class {
|
|
|
3276
3242
|
};
|
|
3277
3243
|
|
|
3278
3244
|
// src/context/belief-memory-persistence.ts
|
|
3279
|
-
import * as fs2 from "fs";
|
|
3280
|
-
import * as path2 from "path";
|
|
3245
|
+
import * as fs2 from "node:fs";
|
|
3246
|
+
import * as path2 from "node:path";
|
|
3281
3247
|
|
|
3282
3248
|
// src/context/belief-persistence-types.ts
|
|
3283
3249
|
import { z as z11 } from "zod";
|
|
@@ -4975,7 +4941,7 @@ var ToolMemoryManager = class {
|
|
|
4975
4941
|
}
|
|
4976
4942
|
/**
|
|
4977
4943
|
* Re-initialize SQLite backends that failed during startup.
|
|
4978
|
-
* Skips already-initialized backends. Useful after
|
|
4944
|
+
* Skips already-initialized backends. Useful after upgrading Node.
|
|
4979
4945
|
* @returns Status of each backend after reinitialization attempt
|
|
4980
4946
|
*/
|
|
4981
4947
|
async reinitializeSqliteBackends() {
|
|
@@ -5622,4 +5588,4 @@ export {
|
|
|
5622
5588
|
reinitializeMemoryBackends,
|
|
5623
5589
|
ToolMemoryManager
|
|
5624
5590
|
};
|
|
5625
|
-
//# sourceMappingURL=chunk-
|
|
5591
|
+
//# sourceMappingURL=chunk-R4B4UJ6F.js.map
|