@remnic/core 9.45.4 → 9.45.5
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.d.ts +5 -5
- package/dist/access-admin-ops-surface.js +20 -19
- package/dist/access-authorization-probe.d.ts +5 -5
- package/dist/access-authorization-probe.js +21 -20
- package/dist/access-boundary.d.ts +5 -5
- package/dist/access-boundary.js +20 -19
- package/dist/access-cli.js +60 -58
- package/dist/access-cli.js.map +1 -1
- package/dist/access-extraction-force-flush.d.ts +5 -5
- package/dist/access-extraction-force-flush.js +20 -19
- package/dist/access-http-lcm-compaction.d.ts +5 -5
- package/dist/access-http-lifecycle-flush.d.ts +5 -5
- package/dist/access-http-offline-stream.d.ts +5 -5
- package/dist/access-http-offline-stream.js +1 -1
- package/dist/access-http-query.js +20 -19
- package/dist/access-http.d.ts +5 -6
- package/dist/access-http.js +32 -31
- package/dist/access-identity-continuity-surface.d.ts +4 -4
- package/dist/access-identity-continuity-surface.js +20 -19
- package/dist/access-lcm-surface.d.ts +5 -5
- package/dist/access-lcm-surface.js +20 -19
- package/dist/access-mcp.d.ts +5 -5
- package/dist/access-mcp.js +26 -25
- package/dist/access-namespace-preflight.js +20 -19
- package/dist/access-observe-write-surface.d.ts +5 -5
- package/dist/access-observe-write-surface.js +20 -19
- package/dist/access-offline-manifest.d.ts +4 -4
- package/dist/access-operations-batch.js +21 -20
- package/dist/access-operations.d.ts +8 -8
- package/dist/access-operations.js +25 -24
- package/dist/access-recall-concurrency.d.ts +5 -5
- package/dist/access-recall-concurrency.js +20 -19
- package/dist/access-recall-response.d.ts +5 -5
- package/dist/access-recall-response.js +20 -19
- package/dist/access-recall-surface.d.ts +5 -5
- package/dist/access-recall-surface.js +20 -19
- package/dist/access-schema.d.ts +84 -84
- package/dist/{access-service-CsU-ljFD.d.ts → access-service-CNN89xyn.d.ts} +3 -3
- package/dist/access-service-helpers.d.ts +5 -5
- package/dist/access-service.d.ts +5 -5
- package/dist/access-service.js +20 -19
- package/dist/access-surface-catalog.d.ts +5 -5
- package/dist/access-wearables-meetings-surface.d.ts +2 -2
- package/dist/adapters/index.js +4 -4
- package/dist/adapters/registry.js +2 -2
- package/dist/bootstrap.d.ts +4 -4
- package/dist/briefing.d.ts +1 -1
- package/dist/briefing.js +3 -2
- package/dist/buffer.d.ts +1 -1
- package/dist/buffer.js +4 -4
- package/dist/causal-consolidation.js +4 -3
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/{chunk-7SHJHPTY.js → chunk-2FSTB6BJ.js} +2 -2
- package/dist/{chunk-ULVR5KG7.js → chunk-2X2T2UVE.js} +2 -2
- package/dist/{chunk-QVSBTCVP.js → chunk-3COYXTGM.js} +2 -2
- package/dist/{chunk-XTAUXTDO.js → chunk-4FBVAGV3.js} +2 -2
- package/dist/{chunk-R5RFK3CB.js → chunk-5QJQHBLE.js} +2 -2
- package/dist/{chunk-YMAQDHQM.js → chunk-6ISC4AVB.js} +2 -2
- package/dist/{chunk-7CITSYSH.js → chunk-7T4TOGMS.js} +2 -2
- package/dist/{chunk-ZMAYKGPN.js → chunk-7YQ6ESEA.js} +12 -41
- package/dist/chunk-7YQ6ESEA.js.map +1 -0
- package/dist/{chunk-TYISDI6B.js → chunk-A4IJCD2Z.js} +2 -2
- package/dist/{chunk-JH6BPLOP.js → chunk-AC5OWJLV.js} +4 -4
- package/dist/{chunk-CLB32OHM.js → chunk-AMAUBUKY.js} +2 -2
- package/dist/{chunk-WGP57SR3.js → chunk-CK5KOVHW.js} +3 -2
- package/dist/{chunk-WGP57SR3.js.map → chunk-CK5KOVHW.js.map} +1 -1
- package/dist/{chunk-XSFHWBQO.js → chunk-CX4ZUMC6.js} +7 -61
- package/dist/{chunk-XSFHWBQO.js.map → chunk-CX4ZUMC6.js.map} +1 -1
- package/dist/{chunk-UQWIKLQK.js → chunk-DAJPRXBR.js} +6 -6
- package/dist/{chunk-U2VLVBBH.js → chunk-E5XQIWAL.js} +2 -2
- package/dist/{chunk-NTOIP2E6.js → chunk-ERZ2R42X.js} +2 -2
- package/dist/{chunk-5CEECY6P.js → chunk-FIK3CQNA.js} +3 -3
- package/dist/{chunk-EJHEWCGQ.js → chunk-FR27HBBA.js} +2 -2
- package/dist/{chunk-FZP32336.js → chunk-FUCYDRE5.js} +43 -21
- package/dist/chunk-FUCYDRE5.js.map +1 -0
- package/dist/{chunk-P7NGM24P.js → chunk-GFCVUY6G.js} +2 -2
- package/dist/{chunk-DYVMXPCF.js → chunk-GODSPTOT.js} +41 -41
- package/dist/{chunk-AJQ57VV3.js → chunk-GRUYA45P.js} +4 -4
- package/dist/chunk-GRUYA45P.js.map +1 -0
- package/dist/{chunk-2MRHJNWL.js → chunk-GUAL4PQH.js} +2 -2
- package/dist/{chunk-EITZHSX6.js → chunk-HC3PBX23.js} +2 -2
- package/dist/{chunk-NUEQKLNB.js → chunk-JZH4LWHB.js} +2 -2
- package/dist/{chunk-7RZJWZ46.js → chunk-LEPOP46W.js} +5 -5
- package/dist/{chunk-TQ4GD737.js → chunk-LPYDOLSM.js} +2 -2
- package/dist/{chunk-TN76AKO3.js → chunk-MO4HSXHZ.js} +2 -2
- package/dist/{chunk-WQIHRA5F.js → chunk-N3LL5NEU.js} +2 -2
- package/dist/{chunk-D3I2MCN7.js → chunk-NEF7LR5J.js} +3 -3
- package/dist/{chunk-C26TE27X.js → chunk-QR6G5KF4.js} +3 -3
- package/dist/{chunk-ZI32MKDW.js → chunk-QUENPGWZ.js} +18 -21
- package/dist/chunk-QUENPGWZ.js.map +1 -0
- package/dist/{chunk-5SNZSWWR.js → chunk-QVJPH7SH.js} +21 -21
- package/dist/{chunk-MDISBSYA.js → chunk-R3KHKU7M.js} +2 -2
- package/dist/{chunk-2QSZNTDO.js → chunk-RKNJBZ55.js} +4 -4
- package/dist/{chunk-KXEFRMCF.js → chunk-RNHVVMFN.js} +2 -2
- package/dist/{chunk-QCECHYZL.js → chunk-RVO6TCTU.js} +6 -6
- package/dist/chunk-S2HLHAZ4.js +16 -0
- package/dist/chunk-S2HLHAZ4.js.map +1 -0
- package/dist/{chunk-ZFGZ6PZ2.js → chunk-UW66OZTD.js} +2 -2
- package/dist/{chunk-BGHFOD5A.js → chunk-V2TNYF6Q.js} +3 -3
- package/dist/chunk-VL35ZFSZ.js +102 -0
- package/dist/chunk-VL35ZFSZ.js.map +1 -0
- package/dist/{chunk-Y7HRYCNW.js → chunk-W2V7UESE.js} +2 -2
- package/dist/{chunk-DSUAAZZX.js → chunk-WZ3TOIDW.js} +2 -2
- package/dist/{chunk-7YERSTN7.js → chunk-XAGYS7X6.js} +7 -7
- package/dist/{chunk-VOUOLGIP.js → chunk-YRFAYOFQ.js} +11 -13
- package/dist/chunk-YRFAYOFQ.js.map +1 -0
- package/dist/{chunk-6NNNURLK.js → chunk-Z54EM5YZ.js} +4 -4
- package/dist/{cli-BBHDtG36.d.ts → cli-BHBswmUa.d.ts} +3 -3
- package/dist/cli.d.ts +6 -6
- package/dist/cli.js +43 -42
- package/dist/compounding/engine.d.ts +1 -1
- package/dist/compounding/engine.js +3 -2
- package/dist/connectors/codex-materialize-runner.js +3 -2
- package/dist/connectors/index.js +3 -2
- package/dist/consolidation-provenance-check.d.ts +1 -1
- package/dist/consolidation-undo.d.ts +1 -1
- package/dist/contradiction/index.d.ts +1 -1
- package/dist/convergence-refresh.d.ts +1 -1
- package/dist/convergence-refresh.js +5 -4
- package/dist/conversation-index/backend.js +2 -2
- package/dist/corpus-watermark.js +12 -11
- package/dist/entity-retrieval.d.ts +1 -1
- package/dist/entity-retrieval.js +3 -2
- package/dist/explicit-capture.d.ts +4 -4
- package/dist/external-wiki-access.d.ts +5 -5
- package/dist/external-wiki-access.js +23 -22
- package/dist/external-wiki-cli.js +4 -90
- package/dist/external-wiki-cli.js.map +1 -1
- package/dist/external-wiki-mcp-tools.d.ts +5 -5
- package/dist/external-wiki-search.js +2 -2
- package/dist/external-wiki.d.ts +1 -5
- package/dist/external-wiki.js +1 -3
- package/dist/extraction.js +8 -7
- package/dist/{first-start-migration-F2QJD66E.js → first-start-migration-ZSHEFEI3.js} +10 -12
- package/dist/{first-start-migration-F2QJD66E.js.map → first-start-migration-ZSHEFEI3.js.map} +1 -1
- package/dist/index.d.ts +688 -687
- package/dist/index.js +81 -78
- package/dist/lcm/engine.js +2 -2
- package/dist/lcm/index.js +2 -2
- package/dist/maintenance/memory-governance.js +3 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +1 -1
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +3 -2
- package/dist/maintenance/rebuild-memory-projection.d.ts +1 -1
- package/dist/maintenance/rebuild-memory-projection.js +4 -3
- package/dist/{maintenance-D2mveyCd.d.ts → maintenance-CoRikzIt.d.ts} +1 -1
- package/dist/mcp-memory-inspector-app.d.ts +5 -5
- package/dist/memory-snapshot.d.ts +10 -0
- package/dist/memory-snapshot.js +8 -0
- package/dist/memory-snapshot.js.map +1 -0
- package/dist/memory-worth-outcomes.d.ts +1 -1
- package/dist/namespaces/migrate.d.ts +1 -1
- package/dist/namespaces/migrate.js +11 -10
- package/dist/namespaces/search.js +7 -7
- package/dist/namespaces/storage.d.ts +1 -1
- package/dist/namespaces/storage.js +3 -2
- package/dist/operator-doctor-corpus.js +13 -12
- package/dist/operator-toolkit.d.ts +1 -1
- package/dist/operator-toolkit.js +17 -16
- package/dist/orchestration/compression-guideline-coordinator.d.ts +1 -1
- package/dist/orchestration/maintenance.d.ts +2 -2
- package/dist/orchestration/maintenance.js +8 -7
- package/dist/{orchestrator-DJYlwiUv.d.ts → orchestrator-BJeq7Pw1.d.ts} +3 -3
- package/dist/orchestrator.d.ts +4 -4
- package/dist/orchestrator.js +61 -59
- package/dist/qmd.js +4 -4
- package/dist/schemas.d.ts +76 -76
- package/dist/search/factory.js +6 -6
- package/dist/search/index.js +8 -8
- package/dist/semantic-consolidation.js +4 -3
- package/dist/semantic-rule-promotion.js +3 -2
- package/dist/semantic-rule-verifier.js +3 -2
- package/dist/{service-BeDxSqE-.d.ts → service-DWC4tq7p.d.ts} +1 -1
- package/dist/shared-context/manager.d.ts +8 -8
- package/dist/source-agent-qualifier.js +7 -6
- package/dist/{storage-DfjxusTE.d.ts → storage-DPGjB-8e.d.ts} +4 -1
- package/dist/storage.d.ts +1 -1
- package/dist/storage.js +2 -1
- package/dist/temporal-supersession.d.ts +1 -1
- package/dist/tier-migration.d.ts +1 -1
- package/dist/tier-migration.js +1 -1
- package/dist/transfer/types.d.ts +66 -66
- package/dist/verified-recall.js +3 -2
- package/package.json +2 -2
- package/src/access-http-offline-stream.ts +1 -0
- package/src/access-http.ts +0 -57
- package/src/access-operations-batch.ts +1 -1
- package/src/access-service-observe-lcm-parity.test.ts +45 -20
- package/src/access-service.ts +3 -4
- package/src/external-wiki-cli.ts +28 -20
- package/src/external-wiki-search.test.ts +68 -2
- package/src/external-wiki.ts +12 -38
- package/src/index.ts +1 -5
- package/src/maintenance/first-start-migration.ts +11 -11
- package/src/memory-snapshot.ts +15 -0
- package/src/storage-contract/cache-coherence.test.ts +99 -0
- package/src/storage-fact-hash-index-defer.test.ts +14 -7
- package/src/storage.ts +47 -48
- package/src/testing/subjects/first-start-tier-migration.test.ts +75 -0
- package/src/tier-migration.ts +10 -12
- package/dist/chunk-AJQ57VV3.js.map +0 -1
- package/dist/chunk-FZP32336.js.map +0 -1
- package/dist/chunk-VOUOLGIP.js.map +0 -1
- package/dist/chunk-ZI32MKDW.js.map +0 -1
- package/dist/chunk-ZMAYKGPN.js.map +0 -1
- /package/dist/{chunk-7SHJHPTY.js.map → chunk-2FSTB6BJ.js.map} +0 -0
- /package/dist/{chunk-ULVR5KG7.js.map → chunk-2X2T2UVE.js.map} +0 -0
- /package/dist/{chunk-QVSBTCVP.js.map → chunk-3COYXTGM.js.map} +0 -0
- /package/dist/{chunk-XTAUXTDO.js.map → chunk-4FBVAGV3.js.map} +0 -0
- /package/dist/{chunk-R5RFK3CB.js.map → chunk-5QJQHBLE.js.map} +0 -0
- /package/dist/{chunk-YMAQDHQM.js.map → chunk-6ISC4AVB.js.map} +0 -0
- /package/dist/{chunk-7CITSYSH.js.map → chunk-7T4TOGMS.js.map} +0 -0
- /package/dist/{chunk-TYISDI6B.js.map → chunk-A4IJCD2Z.js.map} +0 -0
- /package/dist/{chunk-JH6BPLOP.js.map → chunk-AC5OWJLV.js.map} +0 -0
- /package/dist/{chunk-CLB32OHM.js.map → chunk-AMAUBUKY.js.map} +0 -0
- /package/dist/{chunk-UQWIKLQK.js.map → chunk-DAJPRXBR.js.map} +0 -0
- /package/dist/{chunk-U2VLVBBH.js.map → chunk-E5XQIWAL.js.map} +0 -0
- /package/dist/{chunk-NTOIP2E6.js.map → chunk-ERZ2R42X.js.map} +0 -0
- /package/dist/{chunk-5CEECY6P.js.map → chunk-FIK3CQNA.js.map} +0 -0
- /package/dist/{chunk-EJHEWCGQ.js.map → chunk-FR27HBBA.js.map} +0 -0
- /package/dist/{chunk-P7NGM24P.js.map → chunk-GFCVUY6G.js.map} +0 -0
- /package/dist/{chunk-DYVMXPCF.js.map → chunk-GODSPTOT.js.map} +0 -0
- /package/dist/{chunk-2MRHJNWL.js.map → chunk-GUAL4PQH.js.map} +0 -0
- /package/dist/{chunk-EITZHSX6.js.map → chunk-HC3PBX23.js.map} +0 -0
- /package/dist/{chunk-NUEQKLNB.js.map → chunk-JZH4LWHB.js.map} +0 -0
- /package/dist/{chunk-7RZJWZ46.js.map → chunk-LEPOP46W.js.map} +0 -0
- /package/dist/{chunk-TQ4GD737.js.map → chunk-LPYDOLSM.js.map} +0 -0
- /package/dist/{chunk-TN76AKO3.js.map → chunk-MO4HSXHZ.js.map} +0 -0
- /package/dist/{chunk-WQIHRA5F.js.map → chunk-N3LL5NEU.js.map} +0 -0
- /package/dist/{chunk-D3I2MCN7.js.map → chunk-NEF7LR5J.js.map} +0 -0
- /package/dist/{chunk-C26TE27X.js.map → chunk-QR6G5KF4.js.map} +0 -0
- /package/dist/{chunk-5SNZSWWR.js.map → chunk-QVJPH7SH.js.map} +0 -0
- /package/dist/{chunk-MDISBSYA.js.map → chunk-R3KHKU7M.js.map} +0 -0
- /package/dist/{chunk-2QSZNTDO.js.map → chunk-RKNJBZ55.js.map} +0 -0
- /package/dist/{chunk-KXEFRMCF.js.map → chunk-RNHVVMFN.js.map} +0 -0
- /package/dist/{chunk-QCECHYZL.js.map → chunk-RVO6TCTU.js.map} +0 -0
- /package/dist/{chunk-ZFGZ6PZ2.js.map → chunk-UW66OZTD.js.map} +0 -0
- /package/dist/{chunk-BGHFOD5A.js.map → chunk-V2TNYF6Q.js.map} +0 -0
- /package/dist/{chunk-Y7HRYCNW.js.map → chunk-W2V7UESE.js.map} +0 -0
- /package/dist/{chunk-DSUAAZZX.js.map → chunk-WZ3TOIDW.js.map} +0 -0
- /package/dist/{chunk-7YERSTN7.js.map → chunk-XAGYS7X6.js.map} +0 -0
- /package/dist/{chunk-6NNNURLK.js.map → chunk-Z54EM5YZ.js.map} +0 -0
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MeilisearchBackend
|
|
3
|
+
} from "./chunk-VANZKHTN.js";
|
|
1
4
|
import {
|
|
2
5
|
NoopSearchBackend
|
|
3
6
|
} from "./chunk-CYEPCZN5.js";
|
|
@@ -13,18 +16,15 @@ import {
|
|
|
13
16
|
import {
|
|
14
17
|
LanceDbBackend
|
|
15
18
|
} from "./chunk-XL3TATMJ.js";
|
|
16
|
-
import {
|
|
17
|
-
MeilisearchBackend
|
|
18
|
-
} from "./chunk-VANZKHTN.js";
|
|
19
19
|
import {
|
|
20
20
|
createConversationIndexBackend
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LEPOP46W.js";
|
|
22
22
|
import {
|
|
23
23
|
FaissConversationIndexAdapter
|
|
24
24
|
} from "./chunk-ET356KSB.js";
|
|
25
25
|
import {
|
|
26
26
|
QmdClient
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-RVO6TCTU.js";
|
|
28
28
|
import {
|
|
29
29
|
resolveIndexingCapabilities,
|
|
30
30
|
resolvePipelineProcessingCapabilities,
|
|
@@ -178,4 +178,4 @@ export {
|
|
|
178
178
|
createConversationSearchBackend,
|
|
179
179
|
createConversationIndexRuntime
|
|
180
180
|
};
|
|
181
|
-
//# sourceMappingURL=chunk-
|
|
181
|
+
//# sourceMappingURL=chunk-DAJPRXBR.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-H3FZVNRN.js";
|
|
14
14
|
import {
|
|
15
15
|
ExtractionDeadlineError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-N3LL5NEU.js";
|
|
17
17
|
import {
|
|
18
18
|
resolvePrincipal
|
|
19
19
|
} from "./chunk-3GD2HFR6.js";
|
|
@@ -792,4 +792,4 @@ var SmartBuffer = class {
|
|
|
792
792
|
export {
|
|
793
793
|
SmartBuffer
|
|
794
794
|
};
|
|
795
|
-
//# sourceMappingURL=chunk-
|
|
795
|
+
//# sourceMappingURL=chunk-E5XQIWAL.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-B7RWBZXW.js";
|
|
4
4
|
import {
|
|
5
5
|
StorageManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FUCYDRE5.js";
|
|
7
7
|
import {
|
|
8
8
|
getCachedEpisodeMap,
|
|
9
9
|
setCachedEpisodeMap
|
|
@@ -109,4 +109,4 @@ export {
|
|
|
109
109
|
compareVerifiedEpisodeResults,
|
|
110
110
|
searchVerifiedEpisodes
|
|
111
111
|
};
|
|
112
|
-
//# sourceMappingURL=chunk-
|
|
112
|
+
//# sourceMappingURL=chunk-ERZ2R42X.js.map
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
listMemoryGovernanceRuns,
|
|
9
9
|
readMemoryGovernanceRunArtifact
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HC3PBX23.js";
|
|
11
11
|
import {
|
|
12
12
|
StorageManager
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FUCYDRE5.js";
|
|
14
14
|
import {
|
|
15
15
|
normalizeProjectionPreview,
|
|
16
16
|
normalizeProjectionTags
|
|
@@ -1001,4 +1001,4 @@ export {
|
|
|
1001
1001
|
verifyMemoryProjection,
|
|
1002
1002
|
repairMemoryProjection
|
|
1003
1003
|
};
|
|
1004
|
-
//# sourceMappingURL=chunk-
|
|
1004
|
+
//# sourceMappingURL=chunk-FIK3CQNA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveCorpusNamespaceRoots
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W2V7UESE.js";
|
|
4
4
|
import {
|
|
5
5
|
normalizeNamespaceIdentity
|
|
6
6
|
} from "./chunk-EGGE52UU.js";
|
|
@@ -200,4 +200,4 @@ async function readAggregateExtractionWatermark(options) {
|
|
|
200
200
|
export {
|
|
201
201
|
readAggregateExtractionWatermark
|
|
202
202
|
};
|
|
203
|
-
//# sourceMappingURL=chunk-
|
|
203
|
+
//# sourceMappingURL=chunk-FR27HBBA.js.map
|
|
@@ -27,6 +27,9 @@ import {
|
|
|
27
27
|
SPECULATIVE_TTL_DAYS,
|
|
28
28
|
confidenceTier
|
|
29
29
|
} from "./chunk-DZPFMQZ7.js";
|
|
30
|
+
import {
|
|
31
|
+
createMemorySnapshot
|
|
32
|
+
} from "./chunk-S2HLHAZ4.js";
|
|
30
33
|
import {
|
|
31
34
|
normalizeProjectionPreview,
|
|
32
35
|
normalizeProjectionTags
|
|
@@ -6471,6 +6474,7 @@ var StorageManager3 = class _StorageManager extends TombstoneBlockedCaptureIndex
|
|
|
6471
6474
|
knowledgeIndexCache = null;
|
|
6472
6475
|
artifactIndexCache = null;
|
|
6473
6476
|
projectionLedgerLagManager = new ProjectionLedgerLagManager();
|
|
6477
|
+
static loadedMemorySnapshots = /* @__PURE__ */ new WeakMap();
|
|
6474
6478
|
static KNOWLEDGE_INDEX_CACHE_TTL_MS = 6e5;
|
|
6475
6479
|
// 10 minutes (entity mutations invalidate)
|
|
6476
6480
|
/** Read by storage/memory-read-store.ts (decomposition). */
|
|
@@ -8637,6 +8641,16 @@ ${sanitized.text}
|
|
|
8637
8641
|
const threshold = typeof triggerLines === "number" ? Math.max(0, Math.floor(triggerLines)) : _StorageManager.PROFILE_MAX_LINES;
|
|
8638
8642
|
return lineCount > threshold;
|
|
8639
8643
|
}
|
|
8644
|
+
rememberMemorySnapshot(memory) {
|
|
8645
|
+
if (memory !== null && !_StorageManager.loadedMemorySnapshots.has(memory)) {
|
|
8646
|
+
_StorageManager.loadedMemorySnapshots.set(memory, createMemorySnapshot(memory));
|
|
8647
|
+
}
|
|
8648
|
+
return memory;
|
|
8649
|
+
}
|
|
8650
|
+
rememberMemorySnapshots(memories) {
|
|
8651
|
+
for (const memory of memories) this.rememberMemorySnapshot(memory);
|
|
8652
|
+
return memories;
|
|
8653
|
+
}
|
|
8640
8654
|
async readAllMemories() {
|
|
8641
8655
|
if (this.hotMemoriesCacheEnabled) {
|
|
8642
8656
|
const cached = getCachedMemories(
|
|
@@ -8645,11 +8659,11 @@ ${sanitized.text}
|
|
|
8645
8659
|
this.hotCacheKeyId(),
|
|
8646
8660
|
this.hotCacheTtlMs()
|
|
8647
8661
|
);
|
|
8648
|
-
if (cached !== null) return cached;
|
|
8662
|
+
if (cached !== null) return this.rememberMemorySnapshots(cached);
|
|
8649
8663
|
}
|
|
8650
8664
|
const keyId = this.hotCacheKeyId();
|
|
8651
8665
|
const inFlight = getInFlightRead(this.baseDir, keyId);
|
|
8652
|
-
if (inFlight) return inFlight;
|
|
8666
|
+
if (inFlight) return this.rememberMemorySnapshots(await inFlight);
|
|
8653
8667
|
const readPromise = (async () => {
|
|
8654
8668
|
const version = this.getMemoryCorpusVersion();
|
|
8655
8669
|
const memories = await this._readAllMemoriesFromDisk();
|
|
@@ -8660,7 +8674,7 @@ ${sanitized.text}
|
|
|
8660
8674
|
})();
|
|
8661
8675
|
setInFlightRead(this.baseDir, keyId, readPromise);
|
|
8662
8676
|
try {
|
|
8663
|
-
return await readPromise;
|
|
8677
|
+
return this.rememberMemorySnapshots(await readPromise);
|
|
8664
8678
|
} finally {
|
|
8665
8679
|
deleteInFlightRead(this.baseDir, keyId, readPromise);
|
|
8666
8680
|
}
|
|
@@ -8965,7 +8979,7 @@ ${sanitized.text}
|
|
|
8965
8979
|
return this.readParsedMemoriesFromPaths(filePaths, 50);
|
|
8966
8980
|
}
|
|
8967
8981
|
async readAllColdMemories() {
|
|
8968
|
-
return this.memoryReadStore.readAllColdMemories();
|
|
8982
|
+
return this.rememberMemorySnapshots(await this.memoryReadStore.readAllColdMemories());
|
|
8969
8983
|
}
|
|
8970
8984
|
/**
|
|
8971
8985
|
* Read archived memory markdown files under archive/.
|
|
@@ -9010,10 +9024,10 @@ ${sanitized.text}
|
|
|
9010
9024
|
}
|
|
9011
9025
|
};
|
|
9012
9026
|
await readDir(root);
|
|
9013
|
-
return memories;
|
|
9027
|
+
return this.rememberMemorySnapshots(memories);
|
|
9014
9028
|
}
|
|
9015
9029
|
async readMemoryByPath(filePath) {
|
|
9016
|
-
return this.memoryReadStore.readMemoryByPath(filePath);
|
|
9030
|
+
return this.rememberMemorySnapshot(await this.memoryReadStore.readMemoryByPath(filePath));
|
|
9017
9031
|
}
|
|
9018
9032
|
resolveTierRootDir(tier) {
|
|
9019
9033
|
return tier === "cold" ? path9.join(this.baseDir, "cold") : this.baseDir;
|
|
@@ -9084,36 +9098,42 @@ ${memory.content}
|
|
|
9084
9098
|
this.notifyCatalogWrite();
|
|
9085
9099
|
}
|
|
9086
9100
|
async moveMemoryToPath(memory, targetPath) {
|
|
9087
|
-
await this.withTombstoneBlockedMemoryPathLock(
|
|
9101
|
+
const changed = await this.withTombstoneBlockedMemoryPathLock(
|
|
9088
9102
|
memory.path,
|
|
9089
9103
|
async (current) => {
|
|
9104
|
+
const destination = await this.readMemoryByPath(targetPath);
|
|
9090
9105
|
if (current?.frontmatter.id !== memory.frontmatter.id) {
|
|
9106
|
+
if (current === null && destination?.frontmatter.id === memory.frontmatter.id) return false;
|
|
9107
|
+
throw new Error(`memory ${memory.frontmatter.id} changed before its tier move`);
|
|
9108
|
+
}
|
|
9109
|
+
const callerSnapshot = _StorageManager.loadedMemorySnapshots.get(memory);
|
|
9110
|
+
const currentSnapshot = createMemorySnapshot(current);
|
|
9111
|
+
if (callerSnapshot === void 0 ? current.frontmatter.updated !== memory.frontmatter.updated : currentSnapshot !== callerSnapshot) {
|
|
9091
9112
|
throw new Error(`memory ${memory.frontmatter.id} changed before its tier move`);
|
|
9092
9113
|
}
|
|
9093
|
-
const destination = await this.readMemoryByPath(targetPath);
|
|
9094
9114
|
const coordinate = tombstoneBlocked(current.frontmatter) || isQueuedReviewMemory(current) || destination !== null && tombstoneBlocked(destination.frontmatter) || isQueuedReviewMemory(destination);
|
|
9095
9115
|
const index = this.getTombstoneBlockedCaptureIndex();
|
|
9096
9116
|
const marker = coordinate ? await index.prepareWrite() : void 0;
|
|
9117
|
+
const projectedPath = toMemoryPathRel(this.baseDir, targetPath);
|
|
9097
9118
|
let durable = false;
|
|
9098
9119
|
try {
|
|
9099
9120
|
if (destination?.frontmatter.id === current.frontmatter.id) {
|
|
9100
9121
|
await this.deleteManagedStorageFile(current.path);
|
|
9101
9122
|
durable = true;
|
|
9102
9123
|
this.invalidateAllMemoriesCache();
|
|
9103
|
-
updateProjectedMemoryPath(this.baseDir, current.frontmatter.id,
|
|
9124
|
+
updateProjectedMemoryPath(this.baseDir, current.frontmatter.id, projectedPath);
|
|
9104
9125
|
} else {
|
|
9105
9126
|
await this.writeMemoryFileAtomic(targetPath, current);
|
|
9127
|
+
if (memory.frontmatter.entityRef !== current.frontmatter.entityRef) {
|
|
9128
|
+
memory.frontmatter.entityRef = current.frontmatter.entityRef;
|
|
9129
|
+
}
|
|
9106
9130
|
durable = true;
|
|
9107
9131
|
const sourcePath = path9.resolve(current.path);
|
|
9108
9132
|
const destPath = path9.resolve(targetPath);
|
|
9109
9133
|
if (sourcePath !== destPath) {
|
|
9110
9134
|
await this.deleteManagedStorageFile(current.path);
|
|
9111
9135
|
this.invalidateAllMemoriesCache();
|
|
9112
|
-
updateProjectedMemoryPath(
|
|
9113
|
-
this.baseDir,
|
|
9114
|
-
current.frontmatter.id,
|
|
9115
|
-
toMemoryPathRel(this.baseDir, targetPath)
|
|
9116
|
-
);
|
|
9136
|
+
updateProjectedMemoryPath(this.baseDir, current.frontmatter.id, projectedPath);
|
|
9117
9137
|
}
|
|
9118
9138
|
}
|
|
9119
9139
|
if (marker !== void 0) await this.rebuildTombstoneBlockedCaptureAfterInvalidation(marker);
|
|
@@ -9122,9 +9142,14 @@ ${memory.content}
|
|
|
9122
9142
|
if (marker !== void 0 && durable) index.markUntrusted();
|
|
9123
9143
|
throw error;
|
|
9124
9144
|
}
|
|
9145
|
+
return true;
|
|
9125
9146
|
},
|
|
9126
9147
|
[targetPath]
|
|
9127
9148
|
);
|
|
9149
|
+
if (this.isColdOrArchiveTierPath(memory.path) || this.isColdOrArchiveTierPath(targetPath)) {
|
|
9150
|
+
this.invalidateColdMemoriesCache();
|
|
9151
|
+
}
|
|
9152
|
+
return changed;
|
|
9128
9153
|
}
|
|
9129
9154
|
async migrateMemoryToTier(memory, targetTier) {
|
|
9130
9155
|
const targetPath = this.buildTierMemoryPath(memory, targetTier);
|
|
@@ -9133,13 +9158,10 @@ ${memory.content}
|
|
|
9133
9158
|
if (sourcePath === destPath) {
|
|
9134
9159
|
return { changed: false, targetPath };
|
|
9135
9160
|
}
|
|
9136
|
-
await this.moveMemoryToPath(memory, targetPath);
|
|
9137
|
-
|
|
9138
|
-
if (targetTier === "cold") {
|
|
9139
|
-
this.invalidateColdMemoriesCache();
|
|
9140
|
-
}
|
|
9161
|
+
const changed = await this.moveMemoryToPath(memory, targetPath);
|
|
9162
|
+
if (!changed) return { changed: false, targetPath };
|
|
9141
9163
|
this.bumpMemoryStatusVersion();
|
|
9142
|
-
return { changed
|
|
9164
|
+
return { changed, targetPath };
|
|
9143
9165
|
}
|
|
9144
9166
|
get archiveDir() {
|
|
9145
9167
|
return path9.join(this.baseDir, "archive");
|
|
@@ -10820,4 +10842,4 @@ export {
|
|
|
10820
10842
|
isValidBufferSurpriseEvent,
|
|
10821
10843
|
StorageManager3 as StorageManager
|
|
10822
10844
|
};
|
|
10823
|
-
//# sourceMappingURL=chunk-
|
|
10845
|
+
//# sourceMappingURL=chunk-FUCYDRE5.js.map
|