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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nexusDataPathEnsure
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MM223CVS.js";
|
|
4
4
|
|
|
5
5
|
// src/config/nexus-tmp-dir.ts
|
|
6
|
-
import { mkdirSync, mkdtempSync } from "fs";
|
|
7
|
-
import { mkdtemp } from "fs/promises";
|
|
8
|
-
import { tmpdir } from "os";
|
|
9
|
-
import { join, resolve } from "path";
|
|
6
|
+
import { mkdirSync, mkdtempSync } from "node:fs";
|
|
7
|
+
import { mkdtemp } from "node:fs/promises";
|
|
8
|
+
import { tmpdir } from "node:os";
|
|
9
|
+
import { join, resolve } from "node:path";
|
|
10
10
|
function getNexusTmpDir() {
|
|
11
11
|
const fromEnv = process.env["NEXUS_TMPDIR"]?.trim();
|
|
12
12
|
if (fromEnv !== void 0 && fromEnv !== "") {
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
nexusMkdtempSync,
|
|
37
37
|
nexusMkdtemp
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
//# sourceMappingURL=chunk-4HXPNLZS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/cli/setup-cli-detection.ts
|
|
2
|
-
import { execFileSync } from "child_process";
|
|
3
|
-
import { platform } from "os";
|
|
2
|
+
import { execFileSync } from "node:child_process";
|
|
3
|
+
import { platform } from "node:os";
|
|
4
4
|
|
|
5
5
|
// src/cli/cli-detection-error.ts
|
|
6
6
|
var DETECTION_ERROR_MESSAGES = {
|
|
@@ -68,4 +68,4 @@ export {
|
|
|
68
68
|
detectionRecoveryHint,
|
|
69
69
|
detectCliBinary
|
|
70
70
|
};
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
71
|
+
//# sourceMappingURL=chunk-4QHAMZLU.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-HBHTXBA4.js";
|
|
9
9
|
import {
|
|
10
10
|
StatsOnlyAdapter,
|
|
11
11
|
ensureSharedMemoryRegistry
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ODBLHHTP.js";
|
|
13
13
|
import {
|
|
14
14
|
getMemoryRegistry
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YYJFZ7TO.js";
|
|
16
16
|
import {
|
|
17
17
|
generateId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7RLFZ6OB.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-3MBGQAO2.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-4U62WRPL.js.map
|