nexus-agents 8.6.0 → 8.7.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/{ast-rule-runner-3N7DX6XO.js → ast-rule-runner-M4CLGNNW.js} +3 -3
- package/dist/{child-mcp-config-RNWGSHLP.js → child-mcp-config-VH6TABE5.js} +2 -2
- package/dist/{chunk-LWLQZEG7.js → chunk-34ANG6LA.js} +2 -2
- package/dist/{chunk-QETXUEHY.js → chunk-3JWQHPGZ.js} +2 -2
- package/dist/{chunk-SNWGBSQ7.js → chunk-5Z47V7HE.js} +8 -8
- package/dist/{chunk-6RGAAA4U.js → chunk-77UZFA6D.js} +4 -4
- package/dist/{chunk-QMUXBHKO.js → chunk-7G2HFETT.js} +7 -7
- package/dist/chunk-7G4BNM7E.js +7 -0
- package/dist/{chunk-F4WIX5UH.js → chunk-BHG6YOBE.js} +3 -3
- package/dist/{chunk-RLP56UYX.js → chunk-C3Y274GP.js} +2 -2
- package/dist/{chunk-JB3BG47N.js → chunk-C64WPHLB.js} +2 -2
- package/dist/{chunk-4EKFQECD.js → chunk-C6FKNMUA.js} +5 -5
- package/dist/{chunk-4EKFQECD.js.map → chunk-C6FKNMUA.js.map} +1 -1
- package/dist/{chunk-OAP5CFEN.js → chunk-DWN7RUDI.js} +2 -2
- package/dist/{chunk-UFF3NTS3.js → chunk-EFKGUOJP.js} +2 -2
- package/dist/{chunk-PJAMCYKJ.js → chunk-FR7JE23L.js} +2 -2
- package/dist/{chunk-I33FKHUF.js → chunk-GB5DYFCU.js} +4 -4
- package/dist/{chunk-YMBWWR5K.js → chunk-GUNDWP6A.js} +2 -2
- package/dist/{chunk-RO6W6DUN.js → chunk-I4PHLZQC.js} +4 -4
- package/dist/{chunk-6UWWVTQH.js → chunk-IDIMGCEX.js} +53 -35
- package/dist/chunk-IDIMGCEX.js.map +1 -0
- package/dist/{chunk-RHZ7OTUR.js → chunk-IFF4SSOE.js} +3 -3
- package/dist/{chunk-ZR2AT5Y4.js → chunk-IOPJR7R6.js} +5 -5
- package/dist/{chunk-B6HNAXBM.js → chunk-IXY6ISXK.js} +2 -2
- package/dist/{chunk-D2WWKJMI.js → chunk-LQOLKNYU.js} +2 -2
- package/dist/{chunk-L2WZSYQ4.js → chunk-MDVKS5FU.js} +2 -2
- package/dist/{chunk-RQFYOMCK.js → chunk-MG4LAYXC.js} +2 -2
- package/dist/{chunk-KHARSVPD.js → chunk-N4VHPPWC.js} +2 -2
- package/dist/{chunk-WZZQI774.js → chunk-NFCIUQE5.js} +2 -2
- package/dist/{chunk-OI7VYOYS.js → chunk-OGSSJAVW.js} +29 -11
- package/dist/chunk-OGSSJAVW.js.map +1 -0
- package/dist/{chunk-UDZBQWWH.js → chunk-ORO7GDOD.js} +7 -7
- package/dist/{chunk-DC2OJAIB.js → chunk-PSCRZOGQ.js} +3 -3
- package/dist/{chunk-DC2OJAIB.js.map → chunk-PSCRZOGQ.js.map} +1 -1
- package/dist/{chunk-K7WPK63Q.js → chunk-RM6WWFAV.js} +8 -8
- package/dist/{chunk-I2FSX2XS.js → chunk-RSMO6HZS.js} +6 -6
- package/dist/{chunk-ZIZVA5OL.js → chunk-SM7A3QRA.js} +3 -3
- package/dist/{chunk-FECYCZZR.js → chunk-URKAE64B.js} +2 -2
- package/dist/{chunk-44TOYOLL.js → chunk-VS2AWCQY.js} +2 -2
- package/dist/{chunk-U4QKZICX.js → chunk-XIC7XHIV.js} +2 -2
- package/dist/{cli-circuit-breaker-BAV6CS55.js → cli-circuit-breaker-6IKFVHKP.js} +3 -3
- package/dist/cli.js +43 -43
- package/dist/cli.js.map +1 -1
- package/dist/{composite-router-ZBUAKNWH.js → composite-router-EYZQABJD.js} +2 -2
- package/dist/{consensus-vote-222ZEN5J.js → consensus-vote-E5RA4DWL.js} +17 -17
- package/dist/{context-retriever-EUAU2AMR.js → context-retriever-VKTD245W.js} +8 -8
- package/dist/{doctor-deep-ZHCMOZFP.js → doctor-deep-LZVCM73P.js} +3 -3
- package/dist/{doctor-live-BUHVK3DK.js → doctor-live-X2T7CKBI.js} +9 -9
- package/dist/{expert-bridge-UPCLL7ND.js → expert-bridge-EQVYE6WD.js} +4 -4
- package/dist/{factory-3OOZ2ZQP.js → factory-K2LHSYKK.js} +9 -9
- package/dist/{factory-6HNECKBF.js → factory-TOA2DAKX.js} +5 -5
- package/dist/{improvement-review-GGYLCRGQ.js → improvement-review-LE6COYNO.js} +6 -6
- package/dist/index.d.ts +25 -5
- package/dist/index.js +32 -32
- package/dist/index.js.map +1 -1
- package/dist/{init-opencode-CKCCZOT3.js → init-opencode-I3DNRHYN.js} +6 -6
- package/dist/issue-triage-N6EMSPMR.js +17 -0
- package/dist/{pr-reviewer-helpers-RKAK33X2.js → pr-reviewer-helpers-MT3N536G.js} +4 -4
- package/dist/{registry-command-3J5SNWG2.js → registry-command-A2R7GMD4.js} +2 -2
- package/dist/{repo-security-plan-VUA76IN3.js → repo-security-plan-NW46RZXZ.js} +3 -3
- package/dist/{research-helpers-synthesize-6EEGTTZY.js → research-helpers-synthesize-GK6JLPAY.js} +4 -4
- package/dist/{routing-memory-LLGBBX7P.js → routing-memory-CGOORLEE.js} +2 -2
- package/dist/{session-memory-FJOIX7BQ.js → session-memory-EVTFDL4P.js} +3 -3
- package/dist/{setup-config-R26W2YIS.js → setup-config-KLHUBAZC.js} +3 -3
- package/dist/{setup-custom-api-MN6BPPK5.js → setup-custom-api-XAJSDQHR.js} +4 -4
- package/dist/setup-data-dir-KY2YWWF4.js +29 -0
- package/dist/{tool-memory-B6OUGSGS.js → tool-memory-X5XDTZX6.js} +5 -5
- package/dist/{unified-registry-4CXEC2UP.js → unified-registry-XICJQUNW.js} +10 -10
- package/dist/{weather-report-2MF7IEQ4.js → weather-report-UJTYF5EI.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-4OILK4VD.js +0 -7
- package/dist/chunk-6UWWVTQH.js.map +0 -1
- package/dist/chunk-OI7VYOYS.js.map +0 -1
- package/dist/issue-triage-4S5K7TSE.js +0 -17
- package/dist/setup-data-dir-T4S46VSI.js +0 -29
- /package/dist/{ast-rule-runner-3N7DX6XO.js.map → ast-rule-runner-M4CLGNNW.js.map} +0 -0
- /package/dist/{child-mcp-config-RNWGSHLP.js.map → child-mcp-config-VH6TABE5.js.map} +0 -0
- /package/dist/{chunk-LWLQZEG7.js.map → chunk-34ANG6LA.js.map} +0 -0
- /package/dist/{chunk-QETXUEHY.js.map → chunk-3JWQHPGZ.js.map} +0 -0
- /package/dist/{chunk-SNWGBSQ7.js.map → chunk-5Z47V7HE.js.map} +0 -0
- /package/dist/{chunk-6RGAAA4U.js.map → chunk-77UZFA6D.js.map} +0 -0
- /package/dist/{chunk-QMUXBHKO.js.map → chunk-7G2HFETT.js.map} +0 -0
- /package/dist/{chunk-4OILK4VD.js.map → chunk-7G4BNM7E.js.map} +0 -0
- /package/dist/{chunk-F4WIX5UH.js.map → chunk-BHG6YOBE.js.map} +0 -0
- /package/dist/{chunk-RLP56UYX.js.map → chunk-C3Y274GP.js.map} +0 -0
- /package/dist/{chunk-JB3BG47N.js.map → chunk-C64WPHLB.js.map} +0 -0
- /package/dist/{chunk-OAP5CFEN.js.map → chunk-DWN7RUDI.js.map} +0 -0
- /package/dist/{chunk-UFF3NTS3.js.map → chunk-EFKGUOJP.js.map} +0 -0
- /package/dist/{chunk-PJAMCYKJ.js.map → chunk-FR7JE23L.js.map} +0 -0
- /package/dist/{chunk-I33FKHUF.js.map → chunk-GB5DYFCU.js.map} +0 -0
- /package/dist/{chunk-YMBWWR5K.js.map → chunk-GUNDWP6A.js.map} +0 -0
- /package/dist/{chunk-RO6W6DUN.js.map → chunk-I4PHLZQC.js.map} +0 -0
- /package/dist/{chunk-RHZ7OTUR.js.map → chunk-IFF4SSOE.js.map} +0 -0
- /package/dist/{chunk-ZR2AT5Y4.js.map → chunk-IOPJR7R6.js.map} +0 -0
- /package/dist/{chunk-B6HNAXBM.js.map → chunk-IXY6ISXK.js.map} +0 -0
- /package/dist/{chunk-D2WWKJMI.js.map → chunk-LQOLKNYU.js.map} +0 -0
- /package/dist/{chunk-L2WZSYQ4.js.map → chunk-MDVKS5FU.js.map} +0 -0
- /package/dist/{chunk-RQFYOMCK.js.map → chunk-MG4LAYXC.js.map} +0 -0
- /package/dist/{chunk-KHARSVPD.js.map → chunk-N4VHPPWC.js.map} +0 -0
- /package/dist/{chunk-WZZQI774.js.map → chunk-NFCIUQE5.js.map} +0 -0
- /package/dist/{chunk-UDZBQWWH.js.map → chunk-ORO7GDOD.js.map} +0 -0
- /package/dist/{chunk-K7WPK63Q.js.map → chunk-RM6WWFAV.js.map} +0 -0
- /package/dist/{chunk-I2FSX2XS.js.map → chunk-RSMO6HZS.js.map} +0 -0
- /package/dist/{chunk-ZIZVA5OL.js.map → chunk-SM7A3QRA.js.map} +0 -0
- /package/dist/{chunk-FECYCZZR.js.map → chunk-URKAE64B.js.map} +0 -0
- /package/dist/{chunk-44TOYOLL.js.map → chunk-VS2AWCQY.js.map} +0 -0
- /package/dist/{chunk-U4QKZICX.js.map → chunk-XIC7XHIV.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-BAV6CS55.js.map → cli-circuit-breaker-6IKFVHKP.js.map} +0 -0
- /package/dist/{composite-router-ZBUAKNWH.js.map → composite-router-EYZQABJD.js.map} +0 -0
- /package/dist/{consensus-vote-222ZEN5J.js.map → consensus-vote-E5RA4DWL.js.map} +0 -0
- /package/dist/{context-retriever-EUAU2AMR.js.map → context-retriever-VKTD245W.js.map} +0 -0
- /package/dist/{doctor-deep-ZHCMOZFP.js.map → doctor-deep-LZVCM73P.js.map} +0 -0
- /package/dist/{doctor-live-BUHVK3DK.js.map → doctor-live-X2T7CKBI.js.map} +0 -0
- /package/dist/{expert-bridge-UPCLL7ND.js.map → expert-bridge-EQVYE6WD.js.map} +0 -0
- /package/dist/{factory-3OOZ2ZQP.js.map → factory-K2LHSYKK.js.map} +0 -0
- /package/dist/{factory-6HNECKBF.js.map → factory-TOA2DAKX.js.map} +0 -0
- /package/dist/{improvement-review-GGYLCRGQ.js.map → improvement-review-LE6COYNO.js.map} +0 -0
- /package/dist/{init-opencode-CKCCZOT3.js.map → init-opencode-I3DNRHYN.js.map} +0 -0
- /package/dist/{issue-triage-4S5K7TSE.js.map → issue-triage-N6EMSPMR.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-RKAK33X2.js.map → pr-reviewer-helpers-MT3N536G.js.map} +0 -0
- /package/dist/{registry-command-3J5SNWG2.js.map → registry-command-A2R7GMD4.js.map} +0 -0
- /package/dist/{repo-security-plan-VUA76IN3.js.map → repo-security-plan-NW46RZXZ.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-6EEGTTZY.js.map → research-helpers-synthesize-GK6JLPAY.js.map} +0 -0
- /package/dist/{routing-memory-LLGBBX7P.js.map → routing-memory-CGOORLEE.js.map} +0 -0
- /package/dist/{session-memory-FJOIX7BQ.js.map → session-memory-EVTFDL4P.js.map} +0 -0
- /package/dist/{setup-config-R26W2YIS.js.map → setup-config-KLHUBAZC.js.map} +0 -0
- /package/dist/{setup-custom-api-MN6BPPK5.js.map → setup-custom-api-XAJSDQHR.js.map} +0 -0
- /package/dist/{setup-data-dir-T4S46VSI.js.map → setup-data-dir-KY2YWWF4.js.map} +0 -0
- /package/dist/{tool-memory-B6OUGSGS.js.map → tool-memory-X5XDTZX6.js.map} +0 -0
- /package/dist/{unified-registry-4CXEC2UP.js.map → unified-registry-XICJQUNW.js.map} +0 -0
- /package/dist/{weather-report-2MF7IEQ4.js.map → weather-report-UJTYF5EI.js.map} +0 -0
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
gateWithReputation,
|
|
13
13
|
resolveReputationGatingMode,
|
|
14
14
|
sanitizeInput
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VS2AWCQY.js";
|
|
16
16
|
import {
|
|
17
17
|
createLogger,
|
|
18
18
|
getTimeProvider
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PSCRZOGQ.js";
|
|
20
20
|
|
|
21
21
|
// src/dogfooding/pr-reviewer-helpers.ts
|
|
22
22
|
import { randomUUID } from "node:crypto";
|
|
@@ -303,4 +303,4 @@ export {
|
|
|
303
303
|
createFailedReview,
|
|
304
304
|
reviewPostingBlock
|
|
305
305
|
};
|
|
306
|
-
//# sourceMappingURL=chunk-
|
|
306
|
+
//# sourceMappingURL=chunk-IFF4SSOE.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeCostDetail,
|
|
3
3
|
recordUsageEvent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-URKAE64B.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-MG4LAYXC.js";
|
|
12
12
|
import {
|
|
13
13
|
assertCustomApiHostResolvesPublic
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MDVKS5FU.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-PSCRZOGQ.js";
|
|
26
26
|
|
|
27
27
|
// src/adapters/openai-types.ts
|
|
28
28
|
var OPENAI_MODELS = {
|
|
@@ -833,4 +833,4 @@ export {
|
|
|
833
833
|
discoverModels,
|
|
834
834
|
buildOpenAICompatAdapters
|
|
835
835
|
};
|
|
836
|
-
//# sourceMappingURL=chunk-
|
|
836
|
+
//# sourceMappingURL=chunk-IOPJR7R6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTimeProvider
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PSCRZOGQ.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-IXY6ISXK.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
TASK_CATEGORIES,
|
|
3
3
|
getAdaptiveBonus,
|
|
4
4
|
getOutcomeStore
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PSCRZOGQ.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-LQOLKNYU.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
createLogger,
|
|
4
4
|
err,
|
|
5
5
|
ok
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PSCRZOGQ.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-MDVKS5FU.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
lookupInTreeCapability,
|
|
14
14
|
ok,
|
|
15
15
|
resolveRetryAfterMs
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PSCRZOGQ.js";
|
|
17
17
|
|
|
18
18
|
// src/config/model-parameter-support.ts
|
|
19
19
|
function parseClaudeMajorMinor(bareId) {
|
|
@@ -834,4 +834,4 @@ export {
|
|
|
834
834
|
DEFAULT_COLLECT_STREAM_MAX_CHUNKS,
|
|
835
835
|
collectStream
|
|
836
836
|
};
|
|
837
|
-
//# sourceMappingURL=chunk-
|
|
837
|
+
//# sourceMappingURL=chunk-MG4LAYXC.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
MODEL_IDS,
|
|
4
4
|
getTimeProvider,
|
|
5
5
|
resolveModelIdentitySync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PSCRZOGQ.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-N4VHPPWC.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ValidationError,
|
|
4
4
|
createLogger,
|
|
5
5
|
formatZodError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PSCRZOGQ.js";
|
|
7
7
|
|
|
8
8
|
// src/security/ast-rule-runner.ts
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
@@ -241,4 +241,4 @@ export {
|
|
|
241
241
|
collectAstQaFindings,
|
|
242
242
|
runAstQaRules
|
|
243
243
|
};
|
|
244
|
-
//# sourceMappingURL=chunk-
|
|
244
|
+
//# sourceMappingURL=chunk-NFCIUQE5.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-6T3EPABN.js";
|
|
6
6
|
import {
|
|
7
7
|
SessionMemory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EFKGUOJP.js";
|
|
9
9
|
import {
|
|
10
10
|
StatsOnlyAdapter,
|
|
11
11
|
ensureSharedMemoryRegistry
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-YYJFZ7TO.js";
|
|
16
16
|
import {
|
|
17
17
|
generateId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XIC7XHIV.js";
|
|
19
19
|
import {
|
|
20
20
|
ErrorCode,
|
|
21
21
|
NexusError,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
ok,
|
|
30
30
|
openSqliteDatabase,
|
|
31
31
|
setSharedMobiMemDbPathResolver
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-PSCRZOGQ.js";
|
|
33
33
|
import {
|
|
34
34
|
nexusDataPath
|
|
35
35
|
} from "./chunk-MM223CVS.js";
|
|
@@ -1981,7 +1981,7 @@ var GraphMemoryBackend = class {
|
|
|
1981
1981
|
if (!this.initialized) throw new MemoryError("GraphMemoryBackend not initialized");
|
|
1982
1982
|
}
|
|
1983
1983
|
// =========================================================================
|
|
1984
|
-
//
|
|
1984
|
+
// IContextMemoryBackend Methods (delegated to base)
|
|
1985
1985
|
// =========================================================================
|
|
1986
1986
|
store(key, value, metadata) {
|
|
1987
1987
|
return this.base.store(key, value, metadata);
|
|
@@ -2659,7 +2659,7 @@ var AgenticMemoryBackend = class {
|
|
|
2659
2659
|
ensureInit() {
|
|
2660
2660
|
if (!this.initialized) throw new MemoryError("AgenticMemoryBackend not initialized");
|
|
2661
2661
|
}
|
|
2662
|
-
//
|
|
2662
|
+
// IContextMemoryBackend Methods (delegated to base)
|
|
2663
2663
|
store(key, value, metadata) {
|
|
2664
2664
|
return this.base.store(key, value, metadata);
|
|
2665
2665
|
}
|
|
@@ -3144,7 +3144,7 @@ var AdaptiveMemoryBackend = class {
|
|
|
3144
3144
|
if (!this.initialized) throw new MemoryError("AdaptiveMemoryBackend not initialized");
|
|
3145
3145
|
}
|
|
3146
3146
|
// =========================================================================
|
|
3147
|
-
//
|
|
3147
|
+
// IContextMemoryBackend Methods (delegated to base)
|
|
3148
3148
|
// =========================================================================
|
|
3149
3149
|
store(key, value, metadata) {
|
|
3150
3150
|
return this.base.store(key, value, metadata);
|
|
@@ -4957,10 +4957,7 @@ var ToolMemoryManager = class {
|
|
|
4957
4957
|
*/
|
|
4958
4958
|
async reinitializeSqliteBackends() {
|
|
4959
4959
|
this.log.info("Reinitializing SQLite backends");
|
|
4960
|
-
|
|
4961
|
-
await this.initPromise;
|
|
4962
|
-
this.initPromise = null;
|
|
4963
|
-
}
|
|
4960
|
+
await this.awaitBackendInitialization();
|
|
4964
4961
|
if (this.agentic === null) await this.initAgenticMemory();
|
|
4965
4962
|
if (this.adaptive === null) await this.initAdaptiveMemory();
|
|
4966
4963
|
if (this.typed === null) await this.initTypedMemory();
|
|
@@ -4968,6 +4965,27 @@ var ToolMemoryManager = class {
|
|
|
4968
4965
|
if (this.decayManager === null) this.initDecayManager();
|
|
4969
4966
|
return this.getBackendStatus();
|
|
4970
4967
|
}
|
|
4968
|
+
/**
|
|
4969
|
+
* Wait for the non-blocking startup initialization to finish (#794, #5438).
|
|
4970
|
+
*
|
|
4971
|
+
* `initSqliteBackends()` is fired and not awaited at session start, so for a
|
|
4972
|
+
* short window after startup every `is*Available()` returns `false` for a
|
|
4973
|
+
* backend that is merely still opening. A reader cannot tell that apart from
|
|
4974
|
+
* a backend that failed or one that is genuinely absent — reproduced live as
|
|
4975
|
+
* two identical `memory_stats` calls 55 seconds apart returning five `false`
|
|
4976
|
+
* and then five `true`, with the agentic backend holding 519 entries all
|
|
4977
|
+
* along.
|
|
4978
|
+
*
|
|
4979
|
+
* `reinitializeSqliteBackends` has awaited this since #794. Any path that
|
|
4980
|
+
* READS backend availability has to as well, or the boolean reports a state
|
|
4981
|
+
* it has not yet measured.
|
|
4982
|
+
*/
|
|
4983
|
+
async awaitBackendInitialization() {
|
|
4984
|
+
if (this.initPromise !== null) {
|
|
4985
|
+
await this.initPromise;
|
|
4986
|
+
this.initPromise = null;
|
|
4987
|
+
}
|
|
4988
|
+
}
|
|
4971
4989
|
/** Get current backend availability status. */
|
|
4972
4990
|
getBackendStatus() {
|
|
4973
4991
|
return {
|
|
@@ -5599,4 +5617,4 @@ export {
|
|
|
5599
5617
|
reinitializeMemoryBackends,
|
|
5600
5618
|
ToolMemoryManager
|
|
5601
5619
|
};
|
|
5602
|
-
//# sourceMappingURL=chunk-
|
|
5620
|
+
//# sourceMappingURL=chunk-OGSSJAVW.js.map
|