@remnic/core 9.6.18 → 9.6.20
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/access-admin-ops-surface.js +9 -9
- package/dist/access-boundary.js +10 -10
- package/dist/access-cli.js +37 -36
- package/dist/access-cli.js.map +1 -1
- package/dist/access-http.js +16 -16
- package/dist/access-identity-continuity-surface.js +9 -9
- package/dist/access-lcm-surface.js +9 -9
- package/dist/access-mcp.js +15 -15
- package/dist/access-observe-write-surface.js +9 -9
- package/dist/access-operations-batch.js +12 -12
- package/dist/access-operations.js +14 -14
- package/dist/access-recall-surface.js +9 -9
- package/dist/access-schema.js +5 -5
- package/dist/access-service.js +9 -9
- package/dist/{capsule-crypto-RAARDY3M.js → capsule-crypto-CZJSLEFG.js} +2 -2
- package/dist/{chunk-EEIROWEG.js → chunk-2BFLDH5F.js} +2 -2
- package/dist/{chunk-UPSAT4PY.js → chunk-2MR3MFQB.js} +2 -2
- package/dist/{chunk-LNQUAJNC.js → chunk-437S3G37.js} +1 -1
- package/dist/{chunk-JZKR6ZAV.js → chunk-4Q2XWAHZ.js} +2 -2
- package/dist/{chunk-HR4NACR7.js → chunk-A2OFRQ5B.js} +5 -5
- package/dist/{chunk-D3YEDDCC.js → chunk-ARDRBJHD.js} +4 -4
- package/dist/{chunk-U4CWMKN6.js → chunk-B4LPRAWL.js} +2 -2
- package/dist/{chunk-L6NW2XSU.js → chunk-D3D677BV.js} +4 -4
- package/dist/{chunk-7WSLR2CU.js → chunk-DE6ENYLG.js} +2 -2
- package/dist/{chunk-DEG5ULFJ.js → chunk-DQ2CJYUM.js} +2 -2
- package/dist/{chunk-KTULX4YO.js → chunk-FLVL4L3L.js} +4 -4
- package/dist/{chunk-KJ3QGI63.js → chunk-GXLFDLX2.js} +6 -6
- package/dist/{chunk-MGN7VHWQ.js → chunk-HHAA35A3.js} +120 -7
- package/dist/chunk-HHAA35A3.js.map +1 -0
- package/dist/chunk-I6WYQSX4.js +99 -0
- package/dist/chunk-I6WYQSX4.js.map +1 -0
- package/dist/{chunk-JCEFF346.js → chunk-KEY3FEMP.js} +18 -18
- package/dist/{chunk-PYHOAXTI.js → chunk-LRGSLV7M.js} +4 -4
- package/dist/{chunk-CYWCKFCL.js → chunk-M5QKGHCR.js} +5 -5
- package/dist/{chunk-RSS3CZV7.js → chunk-MRQN5Q3I.js} +2 -2
- package/dist/{chunk-HLN7RROI.js → chunk-SFHI7JBE.js} +4 -4
- package/dist/{chunk-5TYS6NTK.js → chunk-XMNVHYI6.js} +84 -35
- package/dist/chunk-XMNVHYI6.js.map +1 -0
- package/dist/{chunk-ZZYLM6KQ.js → chunk-YDF4HL3W.js} +4 -4
- package/dist/cli.js +25 -25
- package/dist/contradiction/index.js +4 -4
- package/dist/{first-start-migration-VBJQL6OI.js → first-start-migration-4I3VDSYS.js} +4 -4
- package/dist/index.js +46 -45
- package/dist/lcm/index.js +3 -3
- package/dist/namespaces/migrate.js +4 -4
- package/dist/namespaces/search.js +3 -3
- package/dist/operator-toolkit.js +5 -5
- package/dist/orchestrator.js +39 -38
- package/dist/retrieval-agents.js +2 -2
- package/dist/search/factory.js +2 -2
- package/dist/search/index.js +4 -4
- package/dist/temporal-index.d.ts +42 -7
- package/dist/temporal-index.js +3 -1
- package/dist/temporal-timeline-recall.d.ts +24 -0
- package/dist/temporal-timeline-recall.js +8 -0
- package/dist/temporal-timeline-recall.js.map +1 -0
- package/dist/transfer/backup.js +3 -3
- package/dist/transfer/capsule-export.js +4 -4
- package/dist/transfer/capsule-import.js +3 -3
- package/dist/transfer/import-sqlite.js +2 -2
- package/package.json +2 -2
- package/src/lifecycle/tombstones.test.ts +78 -5
- package/src/orchestration/persistence-index.ts +15 -2
- package/src/orchestration/recall-internal.ts +77 -35
- package/src/temporal-index.test.ts +157 -0
- package/src/temporal-index.ts +211 -7
- package/src/temporal-timeline-recall.test.ts +70 -0
- package/src/temporal-timeline-recall.ts +111 -0
- package/dist/chunk-5TYS6NTK.js.map +0 -1
- package/dist/chunk-MGN7VHWQ.js.map +0 -1
- /package/dist/{capsule-crypto-RAARDY3M.js.map → capsule-crypto-CZJSLEFG.js.map} +0 -0
- /package/dist/{chunk-EEIROWEG.js.map → chunk-2BFLDH5F.js.map} +0 -0
- /package/dist/{chunk-UPSAT4PY.js.map → chunk-2MR3MFQB.js.map} +0 -0
- /package/dist/{chunk-LNQUAJNC.js.map → chunk-437S3G37.js.map} +0 -0
- /package/dist/{chunk-JZKR6ZAV.js.map → chunk-4Q2XWAHZ.js.map} +0 -0
- /package/dist/{chunk-HR4NACR7.js.map → chunk-A2OFRQ5B.js.map} +0 -0
- /package/dist/{chunk-D3YEDDCC.js.map → chunk-ARDRBJHD.js.map} +0 -0
- /package/dist/{chunk-U4CWMKN6.js.map → chunk-B4LPRAWL.js.map} +0 -0
- /package/dist/{chunk-L6NW2XSU.js.map → chunk-D3D677BV.js.map} +0 -0
- /package/dist/{chunk-7WSLR2CU.js.map → chunk-DE6ENYLG.js.map} +0 -0
- /package/dist/{chunk-DEG5ULFJ.js.map → chunk-DQ2CJYUM.js.map} +0 -0
- /package/dist/{chunk-KTULX4YO.js.map → chunk-FLVL4L3L.js.map} +0 -0
- /package/dist/{chunk-KJ3QGI63.js.map → chunk-GXLFDLX2.js.map} +0 -0
- /package/dist/{chunk-JCEFF346.js.map → chunk-KEY3FEMP.js.map} +0 -0
- /package/dist/{chunk-PYHOAXTI.js.map → chunk-LRGSLV7M.js.map} +0 -0
- /package/dist/{chunk-CYWCKFCL.js.map → chunk-M5QKGHCR.js.map} +0 -0
- /package/dist/{chunk-RSS3CZV7.js.map → chunk-MRQN5Q3I.js.map} +0 -0
- /package/dist/{chunk-HLN7RROI.js.map → chunk-SFHI7JBE.js.map} +0 -0
- /package/dist/{chunk-ZZYLM6KQ.js.map → chunk-YDF4HL3W.js.map} +0 -0
- /package/dist/{first-start-migration-VBJQL6OI.js.map → first-start-migration-4I3VDSYS.js.map} +0 -0
|
@@ -12,25 +12,25 @@ import {
|
|
|
12
12
|
} from "./chunk-HDDRVXX4.js";
|
|
13
13
|
import {
|
|
14
14
|
importSqlite
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
backupMemoryDir
|
|
18
|
-
} from "./chunk-EEIROWEG.js";
|
|
19
|
-
import {
|
|
20
|
-
exportJsonBundle
|
|
21
|
-
} from "./chunk-UP6MOYCB.js";
|
|
22
|
-
import {
|
|
23
|
-
exportSqlite
|
|
24
|
-
} from "./chunk-BV2TIZ4F.js";
|
|
15
|
+
} from "./chunk-LRGSLV7M.js";
|
|
25
16
|
import {
|
|
26
17
|
detectImportFormat
|
|
27
18
|
} from "./chunk-OZKVVUJB.js";
|
|
28
19
|
import {
|
|
29
20
|
importJsonBundle
|
|
30
21
|
} from "./chunk-2DL3OFLD.js";
|
|
22
|
+
import {
|
|
23
|
+
backupMemoryDir
|
|
24
|
+
} from "./chunk-2BFLDH5F.js";
|
|
25
|
+
import {
|
|
26
|
+
exportJsonBundle
|
|
27
|
+
} from "./chunk-UP6MOYCB.js";
|
|
31
28
|
import {
|
|
32
29
|
exportMarkdownBundle
|
|
33
30
|
} from "./chunk-765K3SAT.js";
|
|
31
|
+
import {
|
|
32
|
+
exportSqlite
|
|
33
|
+
} from "./chunk-BV2TIZ4F.js";
|
|
34
34
|
import {
|
|
35
35
|
buildReplayNormalizerRegistry,
|
|
36
36
|
clampBatchSize,
|
|
@@ -135,12 +135,12 @@ import {
|
|
|
135
135
|
runOperatorInventory,
|
|
136
136
|
runOperatorRepair,
|
|
137
137
|
runOperatorSetup
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-B4LPRAWL.js";
|
|
139
139
|
import {
|
|
140
140
|
listNamespaces,
|
|
141
141
|
runNamespaceMigration,
|
|
142
142
|
verifyNamespaces
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-4Q2XWAHZ.js";
|
|
144
144
|
import {
|
|
145
145
|
analyzeSessionIntegrity,
|
|
146
146
|
applySessionRepair,
|
|
@@ -213,7 +213,7 @@ import {
|
|
|
213
213
|
} from "./chunk-OADWQ5CR.js";
|
|
214
214
|
import {
|
|
215
215
|
EngramAccessHttpServer
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-A2OFRQ5B.js";
|
|
217
217
|
import {
|
|
218
218
|
WearablesInputError
|
|
219
219
|
} from "./chunk-V7IZKJI3.js";
|
|
@@ -226,10 +226,10 @@ import {
|
|
|
226
226
|
createProductionChatLlmAdapter,
|
|
227
227
|
loadChatSession,
|
|
228
228
|
sessionBelongsToPrincipal
|
|
229
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-D3D677BV.js";
|
|
230
230
|
import {
|
|
231
231
|
EngramAccessService
|
|
232
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-YDF4HL3W.js";
|
|
233
233
|
import {
|
|
234
234
|
WorkStorage
|
|
235
235
|
} from "./chunk-GDB4J2H3.js";
|
|
@@ -4220,7 +4220,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
4220
4220
|
}
|
|
4221
4221
|
}
|
|
4222
4222
|
if (sourceArchive.endsWith(".enc")) {
|
|
4223
|
-
const { isEncryptedCapsuleFile } = await import("./capsule-crypto-
|
|
4223
|
+
const { isEncryptedCapsuleFile } = await import("./capsule-crypto-CZJSLEFG.js");
|
|
4224
4224
|
const encDetected = await isEncryptedCapsuleFile(sourceArchive).catch(() => true);
|
|
4225
4225
|
if (encDetected) {
|
|
4226
4226
|
throw new Error(
|
|
@@ -4383,7 +4383,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
4383
4383
|
const { parseExportBundle } = await import("./transfer/types.js");
|
|
4384
4384
|
let decryptedBuf;
|
|
4385
4385
|
try {
|
|
4386
|
-
const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-
|
|
4386
|
+
const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-CZJSLEFG.js");
|
|
4387
4387
|
decryptedBuf = await decryptCapsuleFileInMemory(archivePath, memoryDir);
|
|
4388
4388
|
} catch (decErr) {
|
|
4389
4389
|
const msg = decErr instanceof Error ? decErr.message : String(decErr);
|
|
@@ -7608,4 +7608,4 @@ export {
|
|
|
7608
7608
|
listMemoryMarkdownFilePaths,
|
|
7609
7609
|
registerCli
|
|
7610
7610
|
};
|
|
7611
|
-
//# sourceMappingURL=chunk-
|
|
7611
|
+
//# sourceMappingURL=chunk-KEY3FEMP.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SQLITE_SCHEMA_VERSION
|
|
3
|
-
} from "./chunk-Z734BLO3.js";
|
|
4
1
|
import {
|
|
5
2
|
parseConflictPolicy,
|
|
6
3
|
validateManifestRecords
|
|
7
4
|
} from "./chunk-G4IAEX6D.js";
|
|
5
|
+
import {
|
|
6
|
+
SQLITE_SCHEMA_VERSION
|
|
7
|
+
} from "./chunk-Z734BLO3.js";
|
|
8
8
|
import {
|
|
9
9
|
openBetterSqlite3
|
|
10
10
|
} from "./chunk-RL6NEVXT.js";
|
|
@@ -84,4 +84,4 @@ async function importSqlite(opts) {
|
|
|
84
84
|
export {
|
|
85
85
|
importSqlite
|
|
86
86
|
};
|
|
87
|
-
//# sourceMappingURL=chunk-
|
|
87
|
+
//# sourceMappingURL=chunk-LRGSLV7M.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createVersion
|
|
3
3
|
} from "./chunk-VF4XKTX3.js";
|
|
4
|
-
import {
|
|
5
|
-
decryptCapsuleFileInMemory,
|
|
6
|
-
isEncryptedCapsuleFile
|
|
7
|
-
} from "./chunk-LNQUAJNC.js";
|
|
8
4
|
import {
|
|
9
5
|
parseExportBundle
|
|
10
6
|
} from "./chunk-WEHSQBFR.js";
|
|
7
|
+
import {
|
|
8
|
+
decryptCapsuleFileInMemory,
|
|
9
|
+
isEncryptedCapsuleFile
|
|
10
|
+
} from "./chunk-437S3G37.js";
|
|
11
11
|
import {
|
|
12
12
|
assertIsDirectoryNotSymlink,
|
|
13
13
|
assertRealpathInsideRoot,
|
|
@@ -227,4 +227,4 @@ function mintForkId(capsuleId, originalId, now) {
|
|
|
227
227
|
export {
|
|
228
228
|
importCapsule
|
|
229
229
|
};
|
|
230
|
-
//# sourceMappingURL=chunk-
|
|
230
|
+
//# sourceMappingURL=chunk-M5QKGHCR.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-D7FOKIY5.js";
|
|
6
6
|
import {
|
|
7
7
|
EngramAccessInputError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YDF4HL3W.js";
|
|
9
9
|
import {
|
|
10
10
|
expandTildePath
|
|
11
11
|
} from "./chunk-EYIEWJNI.js";
|
|
@@ -274,4 +274,4 @@ export {
|
|
|
274
274
|
listRegisteredOperations,
|
|
275
275
|
__resetRegistryForTest
|
|
276
276
|
};
|
|
277
|
-
//# sourceMappingURL=chunk-
|
|
277
|
+
//# sourceMappingURL=chunk-MRQN5Q3I.js.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NoopSearchBackend
|
|
3
|
+
} from "./chunk-CYEPCZN5.js";
|
|
1
4
|
import {
|
|
2
5
|
OramaBackend
|
|
3
6
|
} from "./chunk-7MW3CVLD.js";
|
|
@@ -13,9 +16,6 @@ import {
|
|
|
13
16
|
import {
|
|
14
17
|
MeilisearchBackend
|
|
15
18
|
} from "./chunk-UTRJFDP2.js";
|
|
16
|
-
import {
|
|
17
|
-
NoopSearchBackend
|
|
18
|
-
} from "./chunk-CYEPCZN5.js";
|
|
19
19
|
import {
|
|
20
20
|
createConversationIndexBackend
|
|
21
21
|
} from "./chunk-JI5AVXYO.js";
|
|
@@ -175,4 +175,4 @@ export {
|
|
|
175
175
|
createConversationSearchBackend,
|
|
176
176
|
createConversationIndexRuntime
|
|
177
177
|
};
|
|
178
|
-
//# sourceMappingURL=chunk-
|
|
178
|
+
//# sourceMappingURL=chunk-SFHI7JBE.js.map
|
|
@@ -5,6 +5,9 @@ import {
|
|
|
5
5
|
syncWearableSource,
|
|
6
6
|
wearableSourceLabel
|
|
7
7
|
} from "./chunk-J3XHPFEU.js";
|
|
8
|
+
import {
|
|
9
|
+
CompressionGuidelineCoordinator
|
|
10
|
+
} from "./chunk-BRDJ2HFP.js";
|
|
8
11
|
import {
|
|
9
12
|
MaintenanceScheduler
|
|
10
13
|
} from "./chunk-JODHPNLN.js";
|
|
@@ -14,15 +17,9 @@ import {
|
|
|
14
17
|
import {
|
|
15
18
|
migrateFromEngram
|
|
16
19
|
} from "./chunk-7HYPN2GC.js";
|
|
17
|
-
import {
|
|
18
|
-
CompressionGuidelineCoordinator
|
|
19
|
-
} from "./chunk-BRDJ2HFP.js";
|
|
20
20
|
import {
|
|
21
21
|
LcmEngine
|
|
22
22
|
} from "./chunk-Y4RKAQZ7.js";
|
|
23
|
-
import {
|
|
24
|
-
chunkTranscriptEntries
|
|
25
|
-
} from "./chunk-TECVW3JP.js";
|
|
26
23
|
import {
|
|
27
24
|
cleanupConversationChunks
|
|
28
25
|
} from "./chunk-RP7YXA67.js";
|
|
@@ -33,11 +30,17 @@ import {
|
|
|
33
30
|
import {
|
|
34
31
|
SharedContextManager
|
|
35
32
|
} from "./chunk-UI4FVU6T.js";
|
|
33
|
+
import {
|
|
34
|
+
chunkTranscriptEntries
|
|
35
|
+
} from "./chunk-TECVW3JP.js";
|
|
36
36
|
import {
|
|
37
37
|
applyUtilityPromotionRuntimePolicy,
|
|
38
38
|
applyUtilityRankingRuntimeDelta,
|
|
39
39
|
loadUtilityRuntimeValues
|
|
40
40
|
} from "./chunk-LXOM6IQU.js";
|
|
41
|
+
import {
|
|
42
|
+
TierMigrationExecutor
|
|
43
|
+
} from "./chunk-VOUOLGIP.js";
|
|
41
44
|
import {
|
|
42
45
|
decideTierTransition
|
|
43
46
|
} from "./chunk-S75M5ZRK.js";
|
|
@@ -59,12 +62,12 @@ import {
|
|
|
59
62
|
buildTargetedFactRecallSection,
|
|
60
63
|
shouldRecallTargetedFactEvidence
|
|
61
64
|
} from "./chunk-4SBW47WK.js";
|
|
65
|
+
import {
|
|
66
|
+
buildTemporalTimelineRecallSection
|
|
67
|
+
} from "./chunk-I6WYQSX4.js";
|
|
62
68
|
import {
|
|
63
69
|
CODEX_THREAD_KEY_PREFIX
|
|
64
70
|
} from "./chunk-4EX5WZ4M.js";
|
|
65
|
-
import {
|
|
66
|
-
TierMigrationExecutor
|
|
67
|
-
} from "./chunk-VOUOLGIP.js";
|
|
68
71
|
import {
|
|
69
72
|
HourlySummarizer
|
|
70
73
|
} from "./chunk-XZ5I7OZR.js";
|
|
@@ -90,7 +93,7 @@ import {
|
|
|
90
93
|
runDirectAgent,
|
|
91
94
|
runTemporalAgent,
|
|
92
95
|
shouldRunAgent
|
|
93
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-DE6ENYLG.js";
|
|
94
97
|
import {
|
|
95
98
|
clearIndexes,
|
|
96
99
|
deindexMemory,
|
|
@@ -100,9 +103,10 @@ import {
|
|
|
100
103
|
isTemporalQuery,
|
|
101
104
|
queryByDateRangeAsync,
|
|
102
105
|
queryByTagsAsync,
|
|
106
|
+
queryTemporalTimelineAsync,
|
|
103
107
|
recencyWindowFromPrompt,
|
|
104
108
|
resolvePromptTagPrefilterAsync
|
|
105
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-HHAA35A3.js";
|
|
106
110
|
import {
|
|
107
111
|
findUnresolvedEntityRefs
|
|
108
112
|
} from "./chunk-X7XN6YU4.js";
|
|
@@ -228,7 +232,7 @@ import {
|
|
|
228
232
|
import {
|
|
229
233
|
runNamespaceMaintenanceFanout,
|
|
230
234
|
summarizeNamespaceMaintenanceHealth
|
|
231
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-B4LPRAWL.js";
|
|
232
236
|
import {
|
|
233
237
|
NamespaceCatalog,
|
|
234
238
|
planNamespaceMaintenance
|
|
@@ -319,10 +323,10 @@ import {
|
|
|
319
323
|
createCorrectionService,
|
|
320
324
|
detectPassiveCorrections,
|
|
321
325
|
qmdCollectionPathParts
|
|
322
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-YDF4HL3W.js";
|
|
323
327
|
import {
|
|
324
328
|
importCapsule
|
|
325
|
-
} from "./chunk-
|
|
329
|
+
} from "./chunk-M5QKGHCR.js";
|
|
326
330
|
import {
|
|
327
331
|
isCodingGraphInstalled
|
|
328
332
|
} from "./chunk-VQ7B2Q6M.js";
|
|
@@ -350,11 +354,11 @@ import {
|
|
|
350
354
|
} from "./chunk-BAVVI5GP.js";
|
|
351
355
|
import {
|
|
352
356
|
NamespaceSearchRouter
|
|
353
|
-
} from "./chunk-
|
|
357
|
+
} from "./chunk-DQ2CJYUM.js";
|
|
354
358
|
import {
|
|
355
359
|
createConversationIndexRuntime,
|
|
356
360
|
createSearchBackend
|
|
357
|
-
} from "./chunk-
|
|
361
|
+
} from "./chunk-SFHI7JBE.js";
|
|
358
362
|
import {
|
|
359
363
|
NoopSearchBackend
|
|
360
364
|
} from "./chunk-CYEPCZN5.js";
|
|
@@ -466,13 +470,13 @@ import {
|
|
|
466
470
|
fallbackLlmRuntimeContextFromConfig,
|
|
467
471
|
gatewayTaskChainOptions
|
|
468
472
|
} from "./chunk-JIKJPDQJ.js";
|
|
473
|
+
import {
|
|
474
|
+
CAPSULE_ID_PATTERN
|
|
475
|
+
} from "./chunk-WEHSQBFR.js";
|
|
469
476
|
import {
|
|
470
477
|
keyring_exports,
|
|
471
478
|
secureStoreDir
|
|
472
479
|
} from "./chunk-GWTFLF2P.js";
|
|
473
|
-
import {
|
|
474
|
-
CAPSULE_ID_PATTERN
|
|
475
|
-
} from "./chunk-WEHSQBFR.js";
|
|
476
480
|
import {
|
|
477
481
|
buildRetrievedMemoryProvenance
|
|
478
482
|
} from "./chunk-I4WBNM3M.js";
|
|
@@ -8637,24 +8641,64 @@ ${formatted}`;
|
|
|
8637
8641
|
}
|
|
8638
8642
|
}
|
|
8639
8643
|
const eventOrderMaxChars = this.deps.getRecallSectionMaxChars("event-order") ?? this.deps.config.eventOrderRecallMaxChars;
|
|
8644
|
+
const eventOrderMaxItems = this.deps.getRecallSectionNumber("event-order", "maxResults") ?? this.deps.config.eventOrderRecallMaxResults;
|
|
8640
8645
|
if (this.deps.isSpecializedRecallSectionEnabled(
|
|
8641
8646
|
"event-order",
|
|
8642
8647
|
resolveRecallEnhancementCapabilities(this.deps.config).eventOrderRecall
|
|
8643
|
-
) && eventOrderMaxChars !== 0 &&
|
|
8648
|
+
) && eventOrderMaxChars !== 0 && eventOrderMaxItems > 0 && recallMode !== "no_recall" && shouldRecallEventOrderEvidence(retrievalQuery)) {
|
|
8644
8649
|
try {
|
|
8645
|
-
const
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8650
|
+
const maxItems = eventOrderMaxItems;
|
|
8651
|
+
let eventOrderSection = "";
|
|
8652
|
+
const timelineCandidateLimit = Math.min(256, Math.max(48, maxItems * 12));
|
|
8653
|
+
const timeline = await queryTemporalTimelineAsync(this.deps.config.memoryDir, {
|
|
8654
|
+
query: retrievalQuery,
|
|
8655
|
+
limit: timelineCandidateLimit
|
|
8656
|
+
});
|
|
8657
|
+
if (timeline) {
|
|
8658
|
+
const timelineItems = [];
|
|
8659
|
+
for (const event of timeline) {
|
|
8660
|
+
const namespace = this.deps.namespaceFromPath(event.path);
|
|
8661
|
+
if (resolveNamespaceCapabilities(this.deps.config).namespaces && !recallNamespaces.includes(namespace)) {
|
|
8662
|
+
continue;
|
|
8663
|
+
}
|
|
8664
|
+
try {
|
|
8665
|
+
const storage = resolveNamespaceCapabilities(this.deps.config).namespaces ? await this.deps.storageRouter.storageFor(namespace) : this.deps.storage;
|
|
8666
|
+
const memory = await storage.readMemoryByPath(event.path);
|
|
8667
|
+
if (!memory || !isActiveMemoryStatus(memory.frontmatter.status)) continue;
|
|
8668
|
+
if (!isValidAsOf(memory.frontmatter, asOfMs ?? Date.now())) continue;
|
|
8669
|
+
timelineItems.push({
|
|
8670
|
+
memory,
|
|
8671
|
+
eventAt: event.eventAt,
|
|
8672
|
+
...event.observedAt ? { observedAt: event.observedAt } : {},
|
|
8673
|
+
...event.sessionKey ? { sessionKey: event.sessionKey } : {},
|
|
8674
|
+
...event.validUntil ? { validUntil: event.validUntil } : {}
|
|
8675
|
+
});
|
|
8676
|
+
} catch {
|
|
8677
|
+
continue;
|
|
8678
|
+
}
|
|
8679
|
+
}
|
|
8680
|
+
eventOrderSection = buildTemporalTimelineRecallSection({
|
|
8681
|
+
items: timelineItems,
|
|
8649
8682
|
query: retrievalQuery,
|
|
8650
8683
|
maxChars: eventOrderMaxChars,
|
|
8651
|
-
maxItems
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8684
|
+
maxItems
|
|
8685
|
+
});
|
|
8686
|
+
}
|
|
8687
|
+
if (!eventOrderSection && this.deps.lcmEngine?.enabled) {
|
|
8688
|
+
eventOrderSection = await firstNonEmptyLcmRead(
|
|
8689
|
+
(lcmSessionId) => buildEventOrderRecallSection({
|
|
8690
|
+
engine: this.deps.lcmEngine,
|
|
8691
|
+
sessionId: lcmSessionId,
|
|
8692
|
+
query: retrievalQuery,
|
|
8693
|
+
maxChars: eventOrderMaxChars,
|
|
8694
|
+
maxItems,
|
|
8695
|
+
maxScanWindowTurns: this.deps.getRecallSectionNumber("event-order", "maxTurns") ?? this.deps.config.eventOrderRecallScanWindowTurns,
|
|
8696
|
+
maxScanWindowTokens: this.deps.getRecallSectionNumber("event-order", "maxTokens") ?? this.deps.config.eventOrderRecallScanWindowTokens
|
|
8697
|
+
}),
|
|
8698
|
+
(s) => !s,
|
|
8699
|
+
""
|
|
8700
|
+
);
|
|
8701
|
+
}
|
|
8658
8702
|
if (eventOrderSection) {
|
|
8659
8703
|
this.deps.appendRecallSection(
|
|
8660
8704
|
sectionBuckets,
|
|
@@ -12921,7 +12965,7 @@ var OrchestratorInitCoordinator = class {
|
|
|
12921
12965
|
if (signal.aborted) return;
|
|
12922
12966
|
if (lifecycleCaps.lifecyclePolicy && resolveQmdCapabilities(this.deps.config).qmdTierMigration) {
|
|
12923
12967
|
try {
|
|
12924
|
-
const { runFirstStartMigration } = await import("./first-start-migration-
|
|
12968
|
+
const { runFirstStartMigration } = await import("./first-start-migration-4I3VDSYS.js");
|
|
12925
12969
|
const result = await runFirstStartMigration({
|
|
12926
12970
|
storage: this.deps.storage,
|
|
12927
12971
|
config: this.deps.config,
|
|
@@ -13274,7 +13318,7 @@ var PersistenceIndexCoordinator = class {
|
|
|
13274
13318
|
*/
|
|
13275
13319
|
async updateTemporalTagIndexes(storage, persistedIds) {
|
|
13276
13320
|
const caps = resolveCapabilities(this.deps.config);
|
|
13277
|
-
if (!resolveIndexingCapabilities(this.deps.config).queryAwareIndexing && !caps.parallelRetrieval)
|
|
13321
|
+
if (!resolveIndexingCapabilities(this.deps.config).queryAwareIndexing && !caps.parallelRetrieval && !resolveRecallEnhancementCapabilities(this.deps.config).eventOrderRecall)
|
|
13278
13322
|
return;
|
|
13279
13323
|
const needsFullRebuild = !indexesExist(this.deps.config.memoryDir);
|
|
13280
13324
|
if (!needsFullRebuild && persistedIds.length === 0) return;
|
|
@@ -13298,7 +13342,12 @@ var PersistenceIndexCoordinator = class {
|
|
|
13298
13342
|
entries.push({
|
|
13299
13343
|
path: mem.path,
|
|
13300
13344
|
createdAt: mem.frontmatter.created,
|
|
13301
|
-
tags: mem.frontmatter.tags ?? []
|
|
13345
|
+
tags: mem.frontmatter.tags ?? [],
|
|
13346
|
+
...mem.frontmatter.valid_at ? { validAt: mem.frontmatter.valid_at } : {},
|
|
13347
|
+
...mem.frontmatter.observedAt ? { observedAt: mem.frontmatter.observedAt } : {},
|
|
13348
|
+
...mem.frontmatter.sources?.[0]?.sessionKey ? { sessionKey: mem.frontmatter.sources[0].sessionKey } : {},
|
|
13349
|
+
...mem.frontmatter.invalid_at ? { validUntil: mem.frontmatter.invalid_at } : {},
|
|
13350
|
+
searchText: `${mem.content} ${(mem.frontmatter.tags ?? []).join(" ")} ${mem.frontmatter.entityRef ?? ""}`
|
|
13302
13351
|
});
|
|
13303
13352
|
}
|
|
13304
13353
|
}
|
|
@@ -22943,4 +22992,4 @@ export {
|
|
|
22943
22992
|
blendGraphExpandedRecallScore,
|
|
22944
22993
|
Orchestrator
|
|
22945
22994
|
};
|
|
22946
|
-
//# sourceMappingURL=chunk-
|
|
22995
|
+
//# sourceMappingURL=chunk-XMNVHYI6.js.map
|