@remnic/core 10.0.155 → 10.0.157
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/abstraction-nodes.js +4 -4
- package/dist/access-admin-ops-surface.js +108 -107
- package/dist/access-cli.js +108 -107
- package/dist/access-cli.js.map +1 -1
- package/dist/access-extraction-force-flush-preempt.js +108 -107
- package/dist/access-extraction-force-flush.js +108 -107
- package/dist/access-http-briefing.js +108 -107
- package/dist/access-http-query.js +108 -107
- package/dist/access-http.js +108 -107
- package/dist/access-identity-continuity-surface.js +108 -107
- package/dist/access-lcm-surface.js +108 -107
- package/dist/access-mcp.js +108 -107
- package/dist/access-observe-write-category.js +7 -7
- package/dist/access-observe-write-surface.js +108 -107
- package/dist/access-offline-manifest.js +3 -3
- package/dist/access-operations-batch.js +108 -107
- package/dist/access-operations.js +108 -107
- package/dist/access-recall-concurrency.js +108 -107
- package/dist/access-recall-response.js +108 -107
- package/dist/access-recall-surface.js +108 -107
- package/dist/access-schema.js +4 -4
- package/dist/access-service.js +108 -107
- package/dist/active-recall.js +17 -17
- package/dist/{auto-sync-PSZJHHXB.js → auto-sync-L3M4RKJD.js} +4 -4
- package/dist/briefing.js +17 -17
- package/dist/buffer.js +7 -7
- package/dist/calibration.js +3 -3
- package/dist/{capsule-crypto-7FJQINUR.js → capsule-crypto-YO5QJ6L3.js} +2 -2
- package/dist/{capsule-merge-PCSDJOAO.js → capsule-merge-VHBRF65A.js} +5 -5
- package/dist/causal-consolidation.js +18 -18
- package/dist/{chunk-BTNNL7ZW.js → chunk-2GJCSYSF.js} +3 -3
- package/dist/chunk-2GJCSYSF.js.map +1 -0
- package/dist/{chunk-ZZYJNT2J.js → chunk-2MWKUVHT.js} +2 -2
- package/dist/{chunk-E2CJNFAZ.js → chunk-2TUWMP7B.js} +15 -15
- package/dist/{chunk-WHCD4Z3D.js → chunk-2X4WP4GD.js} +2 -2
- package/dist/{chunk-KNOWIDYI.js → chunk-2YJYBAR3.js} +3 -3
- package/dist/{chunk-FYJYQ65N.js → chunk-3DADRUGW.js} +3 -3
- package/dist/{chunk-MX5VGD6C.js → chunk-3DJ6R4CC.js} +4 -4
- package/dist/{chunk-5ZZZDDSF.js → chunk-3UKPFFMS.js} +2 -2
- package/dist/{chunk-X4EF7IG3.js → chunk-4AKPTHOO.js} +2 -2
- package/dist/{chunk-TZ7KXZ47.js → chunk-5UE45DLK.js} +2 -2
- package/dist/{chunk-4LF5E2LM.js → chunk-66DUCUOC.js} +4 -4
- package/dist/{chunk-EDR6CVWZ.js → chunk-6PEEZSGL.js} +2 -2
- package/dist/{chunk-W7KDTZWR.js → chunk-6PVS6JET.js} +2 -2
- package/dist/{chunk-ZCJP4UA6.js → chunk-773QSFFN.js} +2 -2
- package/dist/{chunk-4KHGOVRI.js → chunk-7IJ2H43M.js} +3 -3
- package/dist/{chunk-CYPS6NPQ.js → chunk-7PCWJZXG.js} +4 -4
- package/dist/chunk-AMW3IDCO.js +45 -0
- package/dist/chunk-AMW3IDCO.js.map +1 -0
- package/dist/{chunk-SDDHY437.js → chunk-AQ6GV5MU.js} +18 -26
- package/dist/chunk-AQ6GV5MU.js.map +1 -0
- package/dist/{chunk-DUAGLBFC.js → chunk-B7F2G57I.js} +2 -2
- package/dist/{chunk-ZRTFGKPG.js → chunk-BDFOBNLX.js} +2 -2
- package/dist/{chunk-AW56K4SI.js → chunk-BL7WULM5.js} +2 -2
- package/dist/{chunk-PBE7NFB5.js → chunk-BNQJKWWZ.js} +4 -4
- package/dist/{chunk-VHSCKVWB.js → chunk-BTCZVBV3.js} +3 -3
- package/dist/{chunk-2NLLXCJG.js → chunk-BXLOS5AJ.js} +2 -2
- package/dist/{chunk-VPTPLNTS.js → chunk-CA7XVRHZ.js} +2 -2
- package/dist/{chunk-4IVRQMZW.js → chunk-DF4BC5MK.js} +2 -2
- package/dist/{chunk-MKJBZR7J.js → chunk-DFK6AQWM.js} +2 -2
- package/dist/{chunk-RJ5L6LRD.js → chunk-DLR3SBOM.js} +4 -4
- package/dist/{chunk-X7Y7WX73.js → chunk-DQEMWVMT.js} +1 -1
- package/dist/{chunk-NNZR5JZJ.js → chunk-DS24H6M4.js} +2 -2
- package/dist/{chunk-4QEDFEBY.js → chunk-E5QI6C6C.js} +3 -3
- package/dist/{chunk-FPII4O7C.js → chunk-EJYUAN5F.js} +2 -2
- package/dist/{chunk-X7J56GPG.js → chunk-FEYPXEKE.js} +2 -2
- package/dist/{chunk-FJEYZSJD.js → chunk-H7USCTPQ.js} +3 -3
- package/dist/{chunk-VT75USBD.js → chunk-HDU3MIK3.js} +2 -2
- package/dist/{chunk-HIUIJ4AB.js → chunk-HIPHLFIQ.js} +2 -2
- package/dist/{chunk-GCQIXPWZ.js → chunk-HKOGDSNS.js} +5 -5
- package/dist/{chunk-TNACU47L.js → chunk-I6IKSDUO.js} +2 -2
- package/dist/{chunk-OOLREGPZ.js → chunk-IEB6XYW6.js} +2 -2
- package/dist/{chunk-C6Z3H23R.js → chunk-JUYTXFDV.js} +2 -2
- package/dist/{chunk-P7TJUCNC.js → chunk-K3KSTSGM.js} +4 -4
- package/dist/{chunk-RAGRW65B.js → chunk-K4TMUEYI.js} +4 -4
- package/dist/{chunk-UUSL22HE.js → chunk-KM4QO4LN.js} +2 -2
- package/dist/{chunk-2EFXVRYX.js → chunk-KTZNXQWL.js} +2 -2
- package/dist/{chunk-W5T7QBYZ.js → chunk-MUMQWCE2.js} +2 -2
- package/dist/{chunk-XUYUYYK2.js → chunk-MWEJL436.js} +3 -3
- package/dist/{chunk-73MEZ6LB.js → chunk-MZETCZJF.js} +5 -5
- package/dist/{chunk-MV3D5IDW.js → chunk-NBHMEYM4.js} +5 -5
- package/dist/{chunk-SFRAXHQO.js → chunk-NFTFMMKT.js} +2 -2
- package/dist/{chunk-TVWLYSX4.js → chunk-NTS2RCQK.js} +2 -2
- package/dist/{chunk-5WZT6WQW.js → chunk-NZHZQGLB.js} +2 -2
- package/dist/{chunk-AO5LKFGO.js → chunk-OFSAKEZB.js} +2 -2
- package/dist/{chunk-ZH36OFFA.js → chunk-PCCNK3RX.js} +3 -3
- package/dist/{chunk-GYJI34G6.js → chunk-PJFSSXXY.js} +2 -2
- package/dist/{chunk-B57CAZPI.js → chunk-QAQL2OQH.js} +2 -2
- package/dist/{chunk-ONMYWZLY.js → chunk-QASTQVGK.js} +2 -2
- package/dist/{chunk-YQJCWR4R.js → chunk-QO5WYRK2.js} +2 -2
- package/dist/{chunk-AXR472RS.js → chunk-R3YMWUF3.js} +2 -2
- package/dist/{chunk-KQAFEZQX.js → chunk-R45L4TV6.js} +6 -6
- package/dist/{chunk-4U5VHHVF.js → chunk-R5S57GRK.js} +10 -42
- package/dist/chunk-R5S57GRK.js.map +1 -0
- package/dist/{chunk-X6VXQALC.js → chunk-RGXNPAMA.js} +140 -140
- package/dist/{chunk-3OUGSOJP.js → chunk-RKJYVJZJ.js} +2 -2
- package/dist/{chunk-R4O4JDTS.js → chunk-RXG3WF7C.js} +2 -2
- package/dist/{chunk-7IGMKQWK.js → chunk-SBQOBY3S.js} +2 -2
- package/dist/{chunk-PXCQKVIF.js → chunk-SKCMEZBU.js} +9 -9
- package/dist/{chunk-I7TR2OCU.js → chunk-SQXCUH4L.js} +2 -2
- package/dist/{chunk-JE2ZI4SS.js → chunk-TBOCVPXL.js} +4 -4
- package/dist/{chunk-SPQXVDUP.js → chunk-TGH7AU5U.js} +9 -9
- package/dist/{chunk-G2NTB4TM.js → chunk-TLJV42SZ.js} +2 -2
- package/dist/{chunk-IACG6B5R.js → chunk-UR6COSJN.js} +4 -4
- package/dist/{chunk-G4SAFDNR.js → chunk-VE23DIBH.js} +2 -2
- package/dist/{chunk-FXZEKC32.js → chunk-VGCK2RV3.js} +2 -2
- package/dist/{chunk-ZIXP27JK.js → chunk-VVVFT435.js} +2 -2
- package/dist/{chunk-3LO6OFRM.js → chunk-VXKPZ6BO.js} +2 -2
- package/dist/{chunk-DDUWI2XM.js → chunk-XEBNSY7N.js} +2 -2
- package/dist/{chunk-H36HLLSU.js → chunk-XTAGZXOM.js} +3 -3
- package/dist/{chunk-5JZ5CYTR.js → chunk-XWRSQWQO.js} +4 -4
- package/dist/{chunk-447ERYQ5.js → chunk-YAFMWQRL.js} +11 -11
- package/dist/{chunk-QMDYZIXK.js → chunk-YKAQKIPR.js} +2 -2
- package/dist/{chunk-ZFJOPBQD.js → chunk-YZYAYUJQ.js} +2 -2
- package/dist/{chunk-IQBBNFSP.js → chunk-Z6AP6O32.js} +5 -5
- package/dist/{chunk-56BVK6DU.js → chunk-ZWSSUWKO.js} +2 -2
- package/dist/cli.js +108 -107
- package/dist/coding/export-okf-codegraph.js +17 -17
- package/dist/compounding/engine.js +18 -18
- package/dist/config.js +17 -17
- package/dist/connectors/codex-materialize-runner.js +17 -17
- package/dist/connectors/index.js +17 -17
- package/dist/consolidation-provenance-check.js +5 -5
- package/dist/consolidation-undo.js +4 -4
- package/dist/contradiction/index.js +3 -3
- package/dist/convergence-refresh.js +19 -19
- package/dist/corpus-watermark.js +19 -19
- package/dist/cue-anchors.js +5 -5
- package/dist/deep-recall-http-glue.js +5 -5
- package/dist/directory-sidecars.js +2 -2
- package/dist/{entity-canonical-id-migration-ZOWR44RK.js → entity-canonical-id-migration-74IDJFPB.js} +4 -4
- package/dist/entity-recall-reads.d.ts +5 -0
- package/dist/entity-recall-reads.d.ts.map +1 -0
- package/dist/entity-recall-reads.js +16 -0
- package/dist/entity-retrieval.d.ts.map +1 -1
- package/dist/entity-retrieval.js +18 -17
- package/dist/explicit-capture.js +108 -107
- package/dist/extraction.js +26 -26
- package/dist/harmonic-construction.js +6 -6
- package/dist/harmonic-graph-version.js +3 -3
- package/dist/harmonic-retrieval.js +20 -20
- package/dist/index.js +144 -143
- package/dist/lcm/engine.js +2 -2
- package/dist/lcm/index.js +5 -5
- package/dist/local-llm.js +2 -2
- package/dist/location/index.js +19 -19
- package/dist/maintenance/archive-observations.js +2 -2
- package/dist/maintenance/atomic-file.d.ts +1 -1
- package/dist/maintenance/atomic-file.d.ts.map +1 -1
- package/dist/maintenance/atomic-file.js +1 -1
- package/dist/maintenance/memory-governance.js +17 -17
- package/dist/maintenance/migrate-observations.js +3 -3
- package/dist/maintenance/observation-ledger-utils.js +2 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +17 -17
- package/dist/maintenance/rebuild-memory-projection-runner.js +19 -19
- package/dist/maintenance/rebuild-memory-projection.js +18 -18
- package/dist/maintenance/rebuild-observations.js +3 -3
- package/dist/memory-browse.js +7 -7
- package/dist/memory-cache.d.ts +0 -4
- package/dist/memory-cache.d.ts.map +1 -1
- package/dist/memory-cache.js +1 -7
- package/dist/memory-corpus-version.js +2 -2
- package/dist/namespaces/migrate.js +18 -18
- package/dist/namespaces/search.js +8 -8
- package/dist/namespaces/storage.js +17 -17
- package/dist/offline-sync-impression-drain.js +2 -2
- package/dist/operator-doctor-corpus.js +20 -20
- package/dist/operator-toolkit.js +25 -25
- package/dist/orchestration/backlog-scheduler.js +109 -108
- package/dist/orchestration/backlog-scheduler.js.map +1 -1
- package/dist/orchestration/buffer-drain-runner.js +109 -108
- package/dist/orchestration/maintenance.js +28 -28
- package/dist/orchestrator.js +108 -107
- package/dist/page-versioning.js +4 -4
- package/dist/qmd.js +2 -2
- package/dist/recall-navigation.js +108 -107
- package/dist/recall-state-view-admission.js +7 -7
- package/dist/recall-state.js +2 -2
- package/dist/recall-why-service.js +7 -7
- package/dist/relevance.js +2 -2
- package/dist/{resolution-TCO63RRC.js → resolution-CV6QEYEZ.js} +4 -4
- package/dist/resolution-CV6QEYEZ.js.map +1 -0
- package/dist/resume-bundles.js +18 -18
- package/dist/search/factory.js +7 -7
- package/dist/search/index.js +7 -7
- package/dist/search/lancedb-backend.js +2 -2
- package/dist/search/meilisearch-backend.js +2 -2
- package/dist/search/orama-backend.js +2 -2
- package/dist/semantic-consolidation.js +18 -18
- package/dist/semantic-rule-promotion.js +17 -17
- package/dist/semantic-rule-verifier.js +17 -17
- package/dist/source-agent-qualifier.js +21 -21
- package/dist/standup/build.js +17 -17
- package/dist/storage.js +16 -16
- package/dist/summarizer.js +3 -3
- package/dist/support-passport/index.js +3 -3
- package/dist/transfer/autodetect.js +1 -1
- package/dist/transfer/backup.js +2 -2
- package/dist/transfer/capsule-export.js +3 -3
- package/dist/transfer/capsule-import.js +6 -6
- package/dist/transfer/export-okf.js +18 -18
- package/dist/verified-recall.js +17 -17
- package/dist/who-knows-cli.js +18 -18
- package/dist/who-knows.js +17 -17
- package/package.json +2 -2
- package/src/entity-recall-reads.ts +40 -0
- package/src/entity-retrieval.ts +16 -22
- package/src/maintenance/atomic-file.ts +2 -1
- package/src/memory-cache.test.ts +46 -19
- package/src/memory-cache.ts +12 -45
- package/dist/chunk-4U5VHHVF.js.map +0 -1
- package/dist/chunk-BTNNL7ZW.js.map +0 -1
- package/dist/chunk-SDDHY437.js.map +0 -1
- /package/dist/{auto-sync-PSZJHHXB.js.map → auto-sync-L3M4RKJD.js.map} +0 -0
- /package/dist/{capsule-crypto-7FJQINUR.js.map → capsule-crypto-YO5QJ6L3.js.map} +0 -0
- /package/dist/{capsule-merge-PCSDJOAO.js.map → capsule-merge-VHBRF65A.js.map} +0 -0
- /package/dist/{chunk-ZZYJNT2J.js.map → chunk-2MWKUVHT.js.map} +0 -0
- /package/dist/{chunk-E2CJNFAZ.js.map → chunk-2TUWMP7B.js.map} +0 -0
- /package/dist/{chunk-WHCD4Z3D.js.map → chunk-2X4WP4GD.js.map} +0 -0
- /package/dist/{chunk-KNOWIDYI.js.map → chunk-2YJYBAR3.js.map} +0 -0
- /package/dist/{chunk-FYJYQ65N.js.map → chunk-3DADRUGW.js.map} +0 -0
- /package/dist/{chunk-MX5VGD6C.js.map → chunk-3DJ6R4CC.js.map} +0 -0
- /package/dist/{chunk-5ZZZDDSF.js.map → chunk-3UKPFFMS.js.map} +0 -0
- /package/dist/{chunk-X4EF7IG3.js.map → chunk-4AKPTHOO.js.map} +0 -0
- /package/dist/{chunk-TZ7KXZ47.js.map → chunk-5UE45DLK.js.map} +0 -0
- /package/dist/{chunk-4LF5E2LM.js.map → chunk-66DUCUOC.js.map} +0 -0
- /package/dist/{chunk-EDR6CVWZ.js.map → chunk-6PEEZSGL.js.map} +0 -0
- /package/dist/{chunk-W7KDTZWR.js.map → chunk-6PVS6JET.js.map} +0 -0
- /package/dist/{chunk-ZCJP4UA6.js.map → chunk-773QSFFN.js.map} +0 -0
- /package/dist/{chunk-4KHGOVRI.js.map → chunk-7IJ2H43M.js.map} +0 -0
- /package/dist/{chunk-CYPS6NPQ.js.map → chunk-7PCWJZXG.js.map} +0 -0
- /package/dist/{chunk-DUAGLBFC.js.map → chunk-B7F2G57I.js.map} +0 -0
- /package/dist/{chunk-ZRTFGKPG.js.map → chunk-BDFOBNLX.js.map} +0 -0
- /package/dist/{chunk-AW56K4SI.js.map → chunk-BL7WULM5.js.map} +0 -0
- /package/dist/{chunk-PBE7NFB5.js.map → chunk-BNQJKWWZ.js.map} +0 -0
- /package/dist/{chunk-VHSCKVWB.js.map → chunk-BTCZVBV3.js.map} +0 -0
- /package/dist/{chunk-2NLLXCJG.js.map → chunk-BXLOS5AJ.js.map} +0 -0
- /package/dist/{chunk-VPTPLNTS.js.map → chunk-CA7XVRHZ.js.map} +0 -0
- /package/dist/{chunk-4IVRQMZW.js.map → chunk-DF4BC5MK.js.map} +0 -0
- /package/dist/{chunk-MKJBZR7J.js.map → chunk-DFK6AQWM.js.map} +0 -0
- /package/dist/{chunk-RJ5L6LRD.js.map → chunk-DLR3SBOM.js.map} +0 -0
- /package/dist/{chunk-X7Y7WX73.js.map → chunk-DQEMWVMT.js.map} +0 -0
- /package/dist/{chunk-NNZR5JZJ.js.map → chunk-DS24H6M4.js.map} +0 -0
- /package/dist/{chunk-4QEDFEBY.js.map → chunk-E5QI6C6C.js.map} +0 -0
- /package/dist/{chunk-FPII4O7C.js.map → chunk-EJYUAN5F.js.map} +0 -0
- /package/dist/{chunk-X7J56GPG.js.map → chunk-FEYPXEKE.js.map} +0 -0
- /package/dist/{chunk-FJEYZSJD.js.map → chunk-H7USCTPQ.js.map} +0 -0
- /package/dist/{chunk-VT75USBD.js.map → chunk-HDU3MIK3.js.map} +0 -0
- /package/dist/{chunk-HIUIJ4AB.js.map → chunk-HIPHLFIQ.js.map} +0 -0
- /package/dist/{chunk-GCQIXPWZ.js.map → chunk-HKOGDSNS.js.map} +0 -0
- /package/dist/{chunk-TNACU47L.js.map → chunk-I6IKSDUO.js.map} +0 -0
- /package/dist/{chunk-OOLREGPZ.js.map → chunk-IEB6XYW6.js.map} +0 -0
- /package/dist/{chunk-C6Z3H23R.js.map → chunk-JUYTXFDV.js.map} +0 -0
- /package/dist/{chunk-P7TJUCNC.js.map → chunk-K3KSTSGM.js.map} +0 -0
- /package/dist/{chunk-RAGRW65B.js.map → chunk-K4TMUEYI.js.map} +0 -0
- /package/dist/{chunk-UUSL22HE.js.map → chunk-KM4QO4LN.js.map} +0 -0
- /package/dist/{chunk-2EFXVRYX.js.map → chunk-KTZNXQWL.js.map} +0 -0
- /package/dist/{chunk-W5T7QBYZ.js.map → chunk-MUMQWCE2.js.map} +0 -0
- /package/dist/{chunk-XUYUYYK2.js.map → chunk-MWEJL436.js.map} +0 -0
- /package/dist/{chunk-73MEZ6LB.js.map → chunk-MZETCZJF.js.map} +0 -0
- /package/dist/{chunk-MV3D5IDW.js.map → chunk-NBHMEYM4.js.map} +0 -0
- /package/dist/{chunk-SFRAXHQO.js.map → chunk-NFTFMMKT.js.map} +0 -0
- /package/dist/{chunk-TVWLYSX4.js.map → chunk-NTS2RCQK.js.map} +0 -0
- /package/dist/{chunk-5WZT6WQW.js.map → chunk-NZHZQGLB.js.map} +0 -0
- /package/dist/{chunk-AO5LKFGO.js.map → chunk-OFSAKEZB.js.map} +0 -0
- /package/dist/{chunk-ZH36OFFA.js.map → chunk-PCCNK3RX.js.map} +0 -0
- /package/dist/{chunk-GYJI34G6.js.map → chunk-PJFSSXXY.js.map} +0 -0
- /package/dist/{chunk-B57CAZPI.js.map → chunk-QAQL2OQH.js.map} +0 -0
- /package/dist/{chunk-ONMYWZLY.js.map → chunk-QASTQVGK.js.map} +0 -0
- /package/dist/{chunk-YQJCWR4R.js.map → chunk-QO5WYRK2.js.map} +0 -0
- /package/dist/{chunk-AXR472RS.js.map → chunk-R3YMWUF3.js.map} +0 -0
- /package/dist/{chunk-KQAFEZQX.js.map → chunk-R45L4TV6.js.map} +0 -0
- /package/dist/{chunk-X6VXQALC.js.map → chunk-RGXNPAMA.js.map} +0 -0
- /package/dist/{chunk-3OUGSOJP.js.map → chunk-RKJYVJZJ.js.map} +0 -0
- /package/dist/{chunk-R4O4JDTS.js.map → chunk-RXG3WF7C.js.map} +0 -0
- /package/dist/{chunk-7IGMKQWK.js.map → chunk-SBQOBY3S.js.map} +0 -0
- /package/dist/{chunk-PXCQKVIF.js.map → chunk-SKCMEZBU.js.map} +0 -0
- /package/dist/{chunk-I7TR2OCU.js.map → chunk-SQXCUH4L.js.map} +0 -0
- /package/dist/{chunk-JE2ZI4SS.js.map → chunk-TBOCVPXL.js.map} +0 -0
- /package/dist/{chunk-SPQXVDUP.js.map → chunk-TGH7AU5U.js.map} +0 -0
- /package/dist/{chunk-G2NTB4TM.js.map → chunk-TLJV42SZ.js.map} +0 -0
- /package/dist/{chunk-IACG6B5R.js.map → chunk-UR6COSJN.js.map} +0 -0
- /package/dist/{chunk-G4SAFDNR.js.map → chunk-VE23DIBH.js.map} +0 -0
- /package/dist/{chunk-FXZEKC32.js.map → chunk-VGCK2RV3.js.map} +0 -0
- /package/dist/{chunk-ZIXP27JK.js.map → chunk-VVVFT435.js.map} +0 -0
- /package/dist/{chunk-3LO6OFRM.js.map → chunk-VXKPZ6BO.js.map} +0 -0
- /package/dist/{chunk-DDUWI2XM.js.map → chunk-XEBNSY7N.js.map} +0 -0
- /package/dist/{chunk-H36HLLSU.js.map → chunk-XTAGZXOM.js.map} +0 -0
- /package/dist/{chunk-5JZ5CYTR.js.map → chunk-XWRSQWQO.js.map} +0 -0
- /package/dist/{chunk-447ERYQ5.js.map → chunk-YAFMWQRL.js.map} +0 -0
- /package/dist/{chunk-QMDYZIXK.js.map → chunk-YKAQKIPR.js.map} +0 -0
- /package/dist/{chunk-ZFJOPBQD.js.map → chunk-YZYAYUJQ.js.map} +0 -0
- /package/dist/{chunk-IQBBNFSP.js.map → chunk-Z6AP6O32.js.map} +0 -0
- /package/dist/{chunk-56BVK6DU.js.map → chunk-ZWSSUWKO.js.map} +0 -0
- /package/dist/{entity-canonical-id-migration-ZOWR44RK.js.map → entity-canonical-id-migration-74IDJFPB.js.map} +0 -0
- /package/dist/{resolution-TCO63RRC.js.map → entity-recall-reads.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-QV2VZKD5.js";
|
|
4
4
|
import {
|
|
5
5
|
createVersion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E5QI6C6C.js";
|
|
7
7
|
import {
|
|
8
8
|
HistoricalEntityCanonicalIdCache,
|
|
9
9
|
canonicalizeEntityRefFrontmatter,
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
repairContentAfterJournalMove,
|
|
13
13
|
requestEntityCanonicalIdReconcile,
|
|
14
14
|
withRawEntityPageMutation
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KM4QO4LN.js";
|
|
16
16
|
import {
|
|
17
17
|
parseExportBundle
|
|
18
18
|
} from "./chunk-WEHSQBFR.js";
|
|
19
19
|
import {
|
|
20
20
|
decryptCapsuleFileInMemory,
|
|
21
21
|
isEncryptedCapsuleFile
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DQEMWVMT.js";
|
|
23
23
|
import {
|
|
24
24
|
assertIsDirectoryNotSymlink,
|
|
25
25
|
assertRealpathInsideRoot,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-GCGJW34D.js";
|
|
30
30
|
import {
|
|
31
31
|
bumpMemoryCorpusVersionForDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NTS2RCQK.js";
|
|
33
33
|
|
|
34
34
|
// src/transfer/capsule-import.ts
|
|
35
35
|
import { lstat, mkdir, readFile, realpath, stat, unlink, writeFile } from "fs/promises";
|
|
@@ -296,4 +296,4 @@ function mintForkId(capsuleId, originalId, now) {
|
|
|
296
296
|
export {
|
|
297
297
|
importCapsule
|
|
298
298
|
};
|
|
299
|
-
//# sourceMappingURL=chunk-
|
|
299
|
+
//# sourceMappingURL=chunk-HKOGDSNS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isValidCapsuleSince
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R45L4TV6.js";
|
|
4
4
|
import {
|
|
5
5
|
CAPSULE_ID_PATTERN
|
|
6
6
|
} from "./chunk-WEHSQBFR.js";
|
|
@@ -595,4 +595,4 @@ export {
|
|
|
595
595
|
actionConfidenceRequestSchema,
|
|
596
596
|
validateRequest
|
|
597
597
|
};
|
|
598
|
-
//# sourceMappingURL=chunk-
|
|
598
|
+
//# sourceMappingURL=chunk-I6IKSDUO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isGenericRecallExcludedPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7IJ2H43M.js";
|
|
4
4
|
import {
|
|
5
5
|
normalizeProjectionPreview
|
|
6
6
|
} from "./chunk-SCU65EZI.js";
|
|
@@ -209,4 +209,4 @@ export {
|
|
|
209
209
|
browsePatternMatches,
|
|
210
210
|
runMemoryBrowse
|
|
211
211
|
};
|
|
212
|
-
//# sourceMappingURL=chunk-
|
|
212
|
+
//# sourceMappingURL=chunk-IEB6XYW6.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
canonicalCategoryForAlias,
|
|
3
3
|
categoryAliasCoercion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I6IKSDUO.js";
|
|
5
5
|
|
|
6
6
|
// src/access-observe-write-category.ts
|
|
7
7
|
function splitCanonicalWriteRequest(request) {
|
|
@@ -22,4 +22,4 @@ function splitCanonicalWriteRequest(request) {
|
|
|
22
22
|
export {
|
|
23
23
|
splitCanonicalWriteRequest
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-JUYTXFDV.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
rejectSymlinkPath,
|
|
6
6
|
renderFrontmatter,
|
|
7
7
|
writeBundleFile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SQXCUH4L.js";
|
|
9
9
|
import {
|
|
10
10
|
parseOaiMemCitation
|
|
11
11
|
} from "./chunk-D24OXEPB.js";
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
} from "./chunk-3UXOZBHV.js";
|
|
15
15
|
import {
|
|
16
16
|
StorageManager
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YAFMWQRL.js";
|
|
18
18
|
import {
|
|
19
19
|
OKF_PROFILE_TYPE,
|
|
20
20
|
okfTypeForMemory
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RKJYVJZJ.js";
|
|
22
22
|
import {
|
|
23
23
|
normalizeProjectionPreview
|
|
24
24
|
} from "./chunk-SCU65EZI.js";
|
|
@@ -272,4 +272,4 @@ export {
|
|
|
272
272
|
exportOkfBundle,
|
|
273
273
|
firstHeading
|
|
274
274
|
};
|
|
275
|
-
//# sourceMappingURL=chunk-
|
|
275
|
+
//# sourceMappingURL=chunk-K3KSTSGM.js.map
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
} from "./chunk-5CO5G4MN.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveDefaultNamespaceRoot
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NFTFMMKT.js";
|
|
12
12
|
import {
|
|
13
13
|
StorageManager,
|
|
14
14
|
readRawMemoryDocument
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YAFMWQRL.js";
|
|
16
16
|
import {
|
|
17
17
|
parseContinuityImprovementLoops
|
|
18
18
|
} from "./chunk-LDXUBPMO.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-BNZAR6PO.js";
|
|
26
26
|
import {
|
|
27
27
|
writeFileAtomically
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2GJCSYSF.js";
|
|
29
29
|
import {
|
|
30
30
|
sanitizeMemoryContent
|
|
31
31
|
} from "./chunk-5GKPFL3S.js";
|
|
@@ -1869,4 +1869,4 @@ export {
|
|
|
1869
1869
|
defaultTierMigrationCycleBudget,
|
|
1870
1870
|
CompoundingEngine
|
|
1871
1871
|
};
|
|
1872
|
-
//# sourceMappingURL=chunk-
|
|
1872
|
+
//# sourceMappingURL=chunk-K4TMUEYI.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-EBV6VXKF.js";
|
|
8
8
|
import {
|
|
9
9
|
invalidateForScope
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R5S57GRK.js";
|
|
11
11
|
import {
|
|
12
12
|
RECALL_FALLBACK_DIRS
|
|
13
13
|
} from "./chunk-VS2IYZRU.js";
|
|
@@ -434,4 +434,4 @@ export {
|
|
|
434
434
|
repairContentAfterJournalMove,
|
|
435
435
|
repairContentAfterJournalMoveSync
|
|
436
436
|
};
|
|
437
|
-
//# sourceMappingURL=chunk-
|
|
437
|
+
//# sourceMappingURL=chunk-KM4QO4LN.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-EKUI7I2X.js";
|
|
11
11
|
import {
|
|
12
12
|
StorageManager
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YAFMWQRL.js";
|
|
14
14
|
import {
|
|
15
15
|
normalizeEntityName
|
|
16
16
|
} from "./chunk-YXZG5TVN.js";
|
|
@@ -974,4 +974,4 @@ export {
|
|
|
974
974
|
resolveBriefingSaveDir,
|
|
975
975
|
briefingFilename
|
|
976
976
|
};
|
|
977
|
-
//# sourceMappingURL=chunk-
|
|
977
|
+
//# sourceMappingURL=chunk-KTZNXQWL.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-DBB5JPSL.js";
|
|
4
4
|
import {
|
|
5
5
|
isGenericRecallExcludedPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7IJ2H43M.js";
|
|
7
7
|
import {
|
|
8
8
|
isChangeOrientedQuery
|
|
9
9
|
} from "./chunk-EH3HNCAM.js";
|
|
@@ -69,4 +69,4 @@ export {
|
|
|
69
69
|
filterRecentScanMemoriesForStateView,
|
|
70
70
|
indexStateViewAnnotatedResults
|
|
71
71
|
};
|
|
72
|
-
//# sourceMappingURL=chunk-
|
|
72
|
+
//# sourceMappingURL=chunk-MUMQWCE2.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorageManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YAFMWQRL.js";
|
|
4
4
|
import {
|
|
5
5
|
countRecallTokenOverlap,
|
|
6
6
|
normalizeRecallTokens
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
getCachedRuleMemories,
|
|
10
10
|
setCachedRuleMemories
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-R5S57GRK.js";
|
|
12
12
|
|
|
13
13
|
// src/semantic-rule-verifier.ts
|
|
14
14
|
var DEFAULT_MIN_EFFECTIVE_CONFIDENCE = 0.45;
|
|
@@ -119,4 +119,4 @@ export {
|
|
|
119
119
|
compareVerifiedSemanticRuleResults,
|
|
120
120
|
searchVerifiedSemanticRules
|
|
121
121
|
};
|
|
122
|
-
//# sourceMappingURL=chunk-
|
|
122
|
+
//# sourceMappingURL=chunk-MWEJL436.js.map
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
} from "./chunk-EXYT52NR.js";
|
|
7
7
|
import {
|
|
8
8
|
LanceDbBackend
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3DJ6R4CC.js";
|
|
10
10
|
import {
|
|
11
11
|
MeilisearchBackend
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-66DUCUOC.js";
|
|
13
13
|
import {
|
|
14
14
|
NoopSearchBackend
|
|
15
15
|
} from "./chunk-CYEPCZN5.js";
|
|
16
16
|
import {
|
|
17
17
|
OramaBackend
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DLR3SBOM.js";
|
|
19
19
|
import {
|
|
20
20
|
createConversationIndexBackend
|
|
21
21
|
} from "./chunk-TFA6HPOA.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-F4TWWUMP.js";
|
|
25
25
|
import {
|
|
26
26
|
QmdClient
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XEBNSY7N.js";
|
|
28
28
|
import {
|
|
29
29
|
resolveIndexingCapabilities,
|
|
30
30
|
resolvePipelineProcessingCapabilities,
|
|
@@ -179,4 +179,4 @@ export {
|
|
|
179
179
|
createConversationSearchBackend,
|
|
180
180
|
createConversationIndexRuntime
|
|
181
181
|
};
|
|
182
|
-
//# sourceMappingURL=chunk-
|
|
182
|
+
//# sourceMappingURL=chunk-MZETCZJF.js.map
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
resolveCueAnchorStoreDir,
|
|
13
13
|
validateCueAnchor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3DADRUGW.js";
|
|
15
15
|
import {
|
|
16
16
|
StorageManager
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YAFMWQRL.js";
|
|
18
18
|
import {
|
|
19
19
|
isValidityExpiredNow
|
|
20
20
|
} from "./chunk-6CIAGZ6X.js";
|
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
HARMONIC_SOURCE_MEMORY_INSERTED_AT_KEY,
|
|
41
41
|
resolveAbstractionNodeStoreDir,
|
|
42
42
|
validateAbstractionNode
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-R3YMWUF3.js";
|
|
44
44
|
import {
|
|
45
45
|
readHarmonicGraphStamp
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-EJYUAN5F.js";
|
|
47
47
|
import {
|
|
48
48
|
compareDeterministicStrings
|
|
49
49
|
} from "./chunk-G73MCJKL.js";
|
|
@@ -626,4 +626,4 @@ export {
|
|
|
626
626
|
readProjectedHarmonicGraph,
|
|
627
627
|
searchHarmonicRetrieval
|
|
628
628
|
};
|
|
629
|
-
//# sourceMappingURL=chunk-
|
|
629
|
+
//# sourceMappingURL=chunk-NBHMEYM4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorageManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YAFMWQRL.js";
|
|
4
4
|
import {
|
|
5
5
|
keyring_exports,
|
|
6
6
|
secureStoreDir
|
|
@@ -416,4 +416,4 @@ export {
|
|
|
416
416
|
resolveNamespaceStorageRoot,
|
|
417
417
|
NamespaceStorageRouter
|
|
418
418
|
};
|
|
419
|
-
//# sourceMappingURL=chunk-
|
|
419
|
+
//# sourceMappingURL=chunk-NFTFMMKT.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-7CT3AI52.js";
|
|
7
7
|
import {
|
|
8
8
|
invalidateDerivedAndGlobalForDir
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-R5S57GRK.js";
|
|
10
10
|
|
|
11
11
|
// src/memory-corpus-version.ts
|
|
12
12
|
import { appendFileSync, mkdirSync } from "fs";
|
|
@@ -30,4 +30,4 @@ export {
|
|
|
30
30
|
MEMORY_CORPUS_VERSION_SENTINEL,
|
|
31
31
|
bumpMemoryCorpusVersionForDir
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
33
|
+
//# sourceMappingURL=chunk-NTS2RCQK.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-RL6NEVXT.js";
|
|
11
11
|
import {
|
|
12
12
|
writeFileAtomically
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2GJCSYSF.js";
|
|
14
14
|
import {
|
|
15
15
|
isSafeRouteNamespace
|
|
16
16
|
} from "./chunk-PCXDUHQH.js";
|
|
@@ -181,4 +181,4 @@ export {
|
|
|
181
181
|
offlineSyncStorageForSnapshot,
|
|
182
182
|
drainPendingLifecycleForOfflineSync
|
|
183
183
|
};
|
|
184
|
-
//# sourceMappingURL=chunk-
|
|
184
|
+
//# sourceMappingURL=chunk-NZHZQGLB.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-FEUWI5QH.js";
|
|
9
9
|
import {
|
|
10
10
|
offlineSyncStorageForSnapshot
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NZHZQGLB.js";
|
|
12
12
|
import {
|
|
13
13
|
createPersistedSupportPassportPrivateFileExclusion
|
|
14
14
|
} from "./chunk-TSUSHXBW.js";
|
|
@@ -250,4 +250,4 @@ export {
|
|
|
250
250
|
retainExcludedClassifications,
|
|
251
251
|
createOfflineSyncManifestStream
|
|
252
252
|
};
|
|
253
|
-
//# sourceMappingURL=chunk-
|
|
253
|
+
//# sourceMappingURL=chunk-OFSAKEZB.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
raceRecallAbort,
|
|
3
3
|
throwIfRecallAborted
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QASTQVGK.js";
|
|
5
5
|
import {
|
|
6
6
|
emitExtractionLlmFailureError,
|
|
7
7
|
recordExtractionLlmFailure,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-23G5P7TA.js";
|
|
13
13
|
import {
|
|
14
14
|
tagPersistedMemories
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DF4BC5MK.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveScopeProfilePlan
|
|
18
18
|
} from "./chunk-JCAMHTS2.js";
|
|
@@ -1185,4 +1185,4 @@ export {
|
|
|
1185
1185
|
ExtractionDeadlineError,
|
|
1186
1186
|
ExtractionRunCoordinator
|
|
1187
1187
|
};
|
|
1188
|
-
//# sourceMappingURL=chunk-
|
|
1188
|
+
//# sourceMappingURL=chunk-PCCNK3RX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPostConsolidationMaterialize
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YKAQKIPR.js";
|
|
4
4
|
import {
|
|
5
5
|
discoverMemoryExtensions,
|
|
6
6
|
renderExtensionsBlock,
|
|
@@ -220,4 +220,4 @@ export {
|
|
|
220
220
|
buildExtensionsBlockForConsolidation,
|
|
221
221
|
materializeAfterSemanticConsolidation
|
|
222
222
|
};
|
|
223
|
-
//# sourceMappingURL=chunk-
|
|
223
|
+
//# sourceMappingURL=chunk-PJFSSXXY.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocalLlmClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XWRSQWQO.js";
|
|
4
4
|
import {
|
|
5
5
|
FallbackLlmClient
|
|
6
6
|
} from "./chunk-MMRTPH3J.js";
|
|
@@ -4497,4 +4497,4 @@ export {
|
|
|
4497
4497
|
parseSupportPassportModelJob,
|
|
4498
4498
|
SupportPassportModelBridge
|
|
4499
4499
|
};
|
|
4500
|
-
//# sourceMappingURL=chunk-
|
|
4500
|
+
//# sourceMappingURL=chunk-QAQL2OQH.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-TBBDFYXW.js";
|
|
11
11
|
import {
|
|
12
12
|
parseQmdExplain
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XEBNSY7N.js";
|
|
14
14
|
import {
|
|
15
15
|
parseFlexibleIsoTimestamp
|
|
16
16
|
} from "./chunk-P7FMDTKL.js";
|
|
@@ -645,4 +645,4 @@ export {
|
|
|
645
645
|
appendMemoryToGraphContext,
|
|
646
646
|
resolvePersistedMemoryRelativePath
|
|
647
647
|
};
|
|
648
|
-
//# sourceMappingURL=chunk-
|
|
648
|
+
//# sourceMappingURL=chunk-QASTQVGK.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeFileAtomically
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2GJCSYSF.js";
|
|
4
4
|
|
|
5
5
|
// src/maintenance/observation-ledger-utils.ts
|
|
6
6
|
import path from "path";
|
|
@@ -50,4 +50,4 @@ export {
|
|
|
50
50
|
toHourBucketIso,
|
|
51
51
|
backupAndWriteRebuiltObservations
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=chunk-
|
|
53
|
+
//# sourceMappingURL=chunk-QO5WYRK2.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bumpHarmonicGraphVersion
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EJYUAN5F.js";
|
|
4
4
|
import {
|
|
5
5
|
compareDeterministicStrings,
|
|
6
6
|
mergeSortedUniqueStrings
|
|
@@ -264,4 +264,4 @@ export {
|
|
|
264
264
|
upsertAbstractionNode,
|
|
265
265
|
getAbstractionNodeStoreStatus
|
|
266
266
|
};
|
|
267
|
-
//# sourceMappingURL=chunk-
|
|
267
|
+
//# sourceMappingURL=chunk-R3YMWUF3.js.map
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CAPSULE_SCHEMA_VERSION,
|
|
3
|
+
EXPORT_FORMAT
|
|
4
|
+
} from "./chunk-J4EB7DNW.js";
|
|
1
5
|
import {
|
|
2
6
|
CAPSULE_ID_PATTERN,
|
|
3
7
|
CapsuleBlockSchema,
|
|
@@ -6,11 +10,7 @@ import {
|
|
|
6
10
|
} from "./chunk-WEHSQBFR.js";
|
|
7
11
|
import {
|
|
8
12
|
encryptCapsuleFile
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
CAPSULE_SCHEMA_VERSION,
|
|
12
|
-
EXPORT_FORMAT
|
|
13
|
-
} from "./chunk-J4EB7DNW.js";
|
|
13
|
+
} from "./chunk-DQEMWVMT.js";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_TRANSFER_EXCLUDE_DIRS,
|
|
16
16
|
computeTransferOutputRel
|
|
@@ -261,4 +261,4 @@ export {
|
|
|
261
261
|
exportCapsule,
|
|
262
262
|
isValidCapsuleSince
|
|
263
263
|
};
|
|
264
|
-
//# sourceMappingURL=chunk-
|
|
264
|
+
//# sourceMappingURL=chunk-R45L4TV6.js.map
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-42JKGUFJ.js";
|
|
5
5
|
|
|
6
6
|
// src/memory-cache.ts
|
|
7
|
+
import { AsyncLocalStorage } from "async_hooks";
|
|
7
8
|
var hotCacheByDir = /* @__PURE__ */ new Map();
|
|
8
9
|
var archiveCacheByDir = /* @__PURE__ */ new Map();
|
|
9
10
|
function sweepExpiredHotEntries(now) {
|
|
@@ -113,54 +114,24 @@ function setCachedRuleMemories(baseDir, memories, version, cache = true, keyId =
|
|
|
113
114
|
}
|
|
114
115
|
var QMD_CACHE_TTL_MS = 6e4;
|
|
115
116
|
var qmdSearchCache = /* @__PURE__ */ new Map();
|
|
116
|
-
var
|
|
117
|
-
var qmdSearchCacheRecallTtlMs;
|
|
118
|
-
function beginQmdSearchCacheRecallScope(ttlMs) {
|
|
119
|
-
if (!Number.isFinite(ttlMs) || ttlMs <= 0) return;
|
|
120
|
-
const next = Math.floor(ttlMs);
|
|
121
|
-
qmdSearchCacheRecallScopeDepth += 1;
|
|
122
|
-
qmdSearchCacheRecallTtlMs = Math.max(qmdSearchCacheRecallTtlMs ?? 0, next);
|
|
123
|
-
}
|
|
124
|
-
function endQmdSearchCacheRecallScope() {
|
|
125
|
-
if (qmdSearchCacheRecallScopeDepth <= 0) return;
|
|
126
|
-
qmdSearchCacheRecallScopeDepth -= 1;
|
|
127
|
-
if (qmdSearchCacheRecallScopeDepth === 0) {
|
|
128
|
-
qmdSearchCacheRecallTtlMs = void 0;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
117
|
+
var qmdSearchCacheRecallTtl = new AsyncLocalStorage();
|
|
131
118
|
async function runInQmdSearchCacheRecallScope(ttlMs, run) {
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
try {
|
|
135
|
-
return await run();
|
|
136
|
-
} finally {
|
|
137
|
-
if (acquired) endQmdSearchCacheRecallScope();
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
function peekQmdSearchCacheRecallScopeDepth() {
|
|
141
|
-
return qmdSearchCacheRecallScopeDepth;
|
|
142
|
-
}
|
|
143
|
-
function effectiveQmdSearchCacheTtlMs() {
|
|
144
|
-
return Math.max(QMD_CACHE_TTL_MS, qmdSearchCacheRecallTtlMs ?? 0);
|
|
119
|
+
const ttl = Number.isFinite(ttlMs) ? Math.max(QMD_CACHE_TTL_MS, Math.floor(ttlMs)) : QMD_CACHE_TTL_MS;
|
|
120
|
+
return qmdSearchCacheRecallTtl.run(ttl, run);
|
|
145
121
|
}
|
|
146
122
|
function getCachedQmdSearch(cacheKey) {
|
|
147
123
|
const entry = qmdSearchCache.get(cacheKey);
|
|
148
124
|
if (!entry) return null;
|
|
149
|
-
const ttl =
|
|
150
|
-
if (Date.now() - entry.cachedAt > ttl)
|
|
151
|
-
qmdSearchCache.delete(cacheKey);
|
|
152
|
-
return null;
|
|
153
|
-
}
|
|
125
|
+
const ttl = qmdSearchCacheRecallTtl.getStore() ?? QMD_CACHE_TTL_MS;
|
|
126
|
+
if (Date.now() - entry.cachedAt > ttl) return null;
|
|
154
127
|
return entry.results;
|
|
155
128
|
}
|
|
156
129
|
function setCachedQmdSearch(cacheKey, results) {
|
|
130
|
+
qmdSearchCache.delete(cacheKey);
|
|
157
131
|
qmdSearchCache.set(cacheKey, { results, cachedAt: Date.now() });
|
|
158
132
|
if (qmdSearchCache.size > 200) {
|
|
159
|
-
const
|
|
160
|
-
|
|
161
|
-
for (const [key, entry] of qmdSearchCache) {
|
|
162
|
-
if (now - entry.cachedAt > ttl) qmdSearchCache.delete(key);
|
|
163
|
-
}
|
|
133
|
+
const oldest = qmdSearchCache.keys().next();
|
|
134
|
+
if (!oldest.done) qmdSearchCache.delete(oldest.value);
|
|
164
135
|
}
|
|
165
136
|
}
|
|
166
137
|
var ALL_CACHE_LAYERS = [
|
|
@@ -289,10 +260,7 @@ export {
|
|
|
289
260
|
setCachedEpisodeMap,
|
|
290
261
|
getCachedRuleMemories,
|
|
291
262
|
setCachedRuleMemories,
|
|
292
|
-
beginQmdSearchCacheRecallScope,
|
|
293
|
-
endQmdSearchCacheRecallScope,
|
|
294
263
|
runInQmdSearchCacheRecallScope,
|
|
295
|
-
peekQmdSearchCacheRecallScopeDepth,
|
|
296
264
|
getCachedQmdSearch,
|
|
297
265
|
setCachedQmdSearch,
|
|
298
266
|
ALL_CACHE_LAYERS,
|
|
@@ -304,4 +272,4 @@ export {
|
|
|
304
272
|
clearQmdResultCaches,
|
|
305
273
|
getMemoryCacheStats
|
|
306
274
|
};
|
|
307
|
-
//# sourceMappingURL=chunk-
|
|
275
|
+
//# sourceMappingURL=chunk-R5S57GRK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/memory-cache.ts"],"sourcesContent":["import { AsyncLocalStorage } from \"node:async_hooks\";\nimport type { EntityFile, MemoryFile } from \"./types.js\";\nimport { clearQmdRecallCache, qmdRecallCacheSize } from \"./qmd-recall-cache.js\";\n\ninterface CacheEntry {\n memories: Map<string, MemoryFile>; // keyed by file path\n version: number;\n loadedAt: number;\n // Secure-store key identity that decrypted these memories (issue #1902, Codex\n // P1). \"\" for plaintext/locked stores. A manager only reads an entry whose\n // keyId matches its own, so a locked/unkeyed instance never sees content\n // another instance decrypted under a key for the same baseDir.\n keyId: string;\n // Effective TTL (ms) this entry was stored under (issue #1902, Codex Medium),\n // so the opportunistic sweep can evict abandoned corpora that are never\n // revisited. 0 = no TTL (never swept by age).\n ttlMs: number;\n}\n\n// Module-level singleton — shared across all StorageManager instances and sessions\nconst hotCacheByDir = new Map<string, CacheEntry>();\nconst archiveCacheByDir = new Map<string, CacheEntry>();\n\n/**\n * Evict every hot entry whose own TTL has elapsed (issue #1902, Codex Medium).\n * Called opportunistically on each set so a long-running process that reads many\n * namespace/temporary roots and never revisits some of them still releases their\n * (potentially hundreds-of-MB) corpora within the TTL, instead of holding them\n * resident until an explicit global clear. O(entries) over a small map.\n */\nfunction sweepExpiredHotEntries(now: number): void {\n for (const [dir, entry] of hotCacheByDir) {\n if (entry.ttlMs > 0 && now - entry.loadedAt > entry.ttlMs) hotCacheByDir.delete(dir);\n }\n}\n\n/**\n * Shared read gate for every versioned cache layer (issue #2481): serve an\n * entry only when its version and secure-store keyId match the caller.\n * `currentVersion === 0` means version tracking is unavailable (tests, fresh\n * installs) and always misses so disk is read. The TTL is a safety net for\n * external filesystem edits that bypass the version sentinel (issue #1902):\n * ttlMs <= 0 disables it, and on expiry the entry is evicted — not just\n * skipped — so a stale dir releases its resident corpus instead of lingering\n * until an explicit clear.\n */\nfunction getVersionedCacheEntry<K, E extends { version: number; keyId: string; loadedAt: number }>(\n cache: Map<K, E>,\n key: K,\n currentVersion: number,\n keyId: string,\n ttlMs: number,\n): E | null {\n if (currentVersion === 0) return null;\n const entry = cache.get(key);\n if (!entry || entry.version !== currentVersion || entry.keyId !== keyId) return null;\n if (ttlMs > 0 && Date.now() - entry.loadedAt > ttlMs) {\n cache.delete(key);\n return null;\n }\n return entry;\n}\n\nexport function getCachedMemories(\n baseDir: string,\n currentVersion: number,\n keyId = \"\",\n ttlMs = 0,\n): MemoryFile[] | null {\n const entry = getVersionedCacheEntry(hotCacheByDir, baseDir, currentVersion, keyId, ttlMs);\n return entry ? [...entry.memories.values()] : null;\n}\n\nexport function setCachedMemories(\n baseDir: string,\n memories: MemoryFile[],\n version: number,\n keyId = \"\",\n ttlMs = 0,\n): void {\n const map = new Map<string, MemoryFile>();\n for (const m of memories) map.set(m.path, m);\n const now = Date.now();\n hotCacheByDir.set(baseDir, { memories: map, version, loadedAt: now, keyId, ttlMs });\n // Release abandoned corpora that expired but were never revisited (Codex Medium).\n sweepExpiredHotEntries(now);\n}\n\nexport function updateCacheOnWrite(baseDir: string, memory: MemoryFile, keyId = \"\"): void {\n const entry = hotCacheByDir.get(baseDir);\n // Only mutate an entry that belongs to THIS key identity (issue #1902, Codex\n // Medium). A concurrent differently-keyed manager may have replaced the\n // single hotCacheByDir slot during an awaited parse; inserting our decrypted\n // MemoryFile into its entry would leak plaintext across the key boundary.\n if (entry && entry.keyId === keyId) entry.memories.set(memory.path, memory);\n}\n\nexport function updateCacheOnDelete(baseDir: string, filePath: string, keyId = \"\"): void {\n const entry = hotCacheByDir.get(baseDir);\n if (entry && entry.keyId === keyId) entry.memories.delete(filePath);\n}\n// Archive cache — same pattern, separate store\nexport function getCachedArchivedMemories(\n baseDir: string,\n currentVersion: number,\n keyId = \"\",\n): MemoryFile[] | null {\n // ttlMs 0: the archive cache has no age TTL; it is version-keyed and cleared\n // via invalidation.\n const entry = getVersionedCacheEntry(archiveCacheByDir, baseDir, currentVersion, keyId, 0);\n return entry ? [...entry.memories.values()] : null;\n}\n\nexport function setCachedArchivedMemories(\n baseDir: string,\n memories: MemoryFile[],\n version: number,\n keyId = \"\",\n): void {\n const map = new Map<string, MemoryFile>();\n for (const m of memories) map.set(m.path, m);\n // ttlMs: 0 — the archive cache has no age TTL; it is version-keyed and cleared\n // via invalidation. The field satisfies the shared CacheEntry shape (#1902).\n archiveCacheByDir.set(baseDir, { memories: map, version, loadedAt: Date.now(), keyId, ttlMs: 0 });\n}\n\n// Entity cache — same pattern as memory cache, but keyed by schema-aware parse inputs.\nconst entityCacheByDir = new Map<string, { entities: EntityFile[]; version: number; loadedAt: number }>();\n\n/**\n * Single normalization point for the entity-cache schema key (issue #1535).\n * BOTH the set/get key builder and the prefix invalidation derive from here so\n * `undefined` vs `\"\"` (or any future normalization rule) can never diverge\n * between the write path and the invalidate path (rule 38 cousin).\n */\nfunction normalizeEntitySchemaKey(schemaKey: string | undefined): string {\n return schemaKey ?? \"\";\n}\n\n/** Prefix shared by every entity-cache key for a dir, regardless of schemaKey. */\nfunction entityCacheKeyPrefix(baseDir: string): string {\n return `${baseDir}\\u0000`;\n}\n\nfunction buildEntityCacheKey(baseDir: string, schemaKey?: string): string {\n return `${entityCacheKeyPrefix(baseDir)}${normalizeEntitySchemaKey(schemaKey)}`;\n}\n\nexport function getCachedEntities(\n baseDir: string,\n currentVersion: number,\n schemaKey: string = \"\",\n): EntityFile[] | null {\n if (currentVersion === 0) return null;\n const entry = entityCacheByDir.get(buildEntityCacheKey(baseDir, schemaKey));\n if (!entry || entry.version !== currentVersion) return null;\n return entry.entities;\n}\n\nexport function setCachedEntities(\n baseDir: string,\n entities: EntityFile[],\n version: number,\n schemaKey: string = \"\",\n): void {\n entityCacheByDir.set(buildEntityCacheKey(baseDir, schemaKey), {\n entities,\n version,\n loadedAt: Date.now(),\n });\n}\n\nexport function invalidateCachedEntities(baseDir: string): void {\n const prefix = entityCacheKeyPrefix(baseDir);\n for (const key of entityCacheByDir.keys()) {\n if (key.startsWith(prefix)) entityCacheByDir.delete(key);\n }\n}\n\n// Derived caches — pre-filtered views invalidated alongside the main cache.\n// These avoid O(146K) filter+map on every verified recall/rules call.\ninterface DerivedCacheEntry<T> {\n data: T;\n version: number; // matches the hot cache version it was derived from\n keyId: string; // secure-store key identity of the corpus it was derived from (#1902)\n loadedAt: number; // build time — bounds staleness from external edits via ttlMs (#1902)\n}\n\nconst episodeMapByDir = new Map<string, DerivedCacheEntry<Map<string, MemoryFile>>>();\nconst ruleMemoriesByDir = new Map<string, DerivedCacheEntry<{ all: MemoryFile[]; byId: Map<string, MemoryFile> }>>();\n\nexport function getCachedEpisodeMap(\n baseDir: string,\n currentVersion: number,\n keyId = \"\",\n ttlMs = 0,\n): Map<string, MemoryFile> | null {\n const entry = getVersionedCacheEntry(episodeMapByDir, baseDir, currentVersion, keyId, ttlMs);\n return entry ? entry.data : null;\n}\n\n/** Build and cache the episode memory map from the full memory list. */\nexport function setCachedEpisodeMap(\n baseDir: string,\n memories: MemoryFile[],\n version: number,\n cache = true,\n keyId = \"\",\n): Map<string, MemoryFile> {\n const map = new Map<string, MemoryFile>();\n for (const m of memories) {\n if (m.frontmatter.status === \"archived\" || m.frontmatter.status === \"forgotten\") continue;\n if (m.frontmatter.memoryKind !== \"episode\") continue;\n map.set(m.frontmatter.id, m);\n }\n if (cache) episodeMapByDir.set(baseDir, { data: map, version, keyId, loadedAt: Date.now() });\n return map;\n}\n\n/** Get pre-filtered rule memories. Derived from hot cache. */\nexport function getCachedRuleMemories(\n baseDir: string,\n currentVersion: number,\n keyId = \"\",\n ttlMs = 0,\n): { all: MemoryFile[]; byId: Map<string, MemoryFile> } | null {\n const entry = getVersionedCacheEntry(ruleMemoriesByDir, baseDir, currentVersion, keyId, ttlMs);\n return entry ? entry.data : null;\n}\n\n/** Build and cache the rule memories from the full memory list. */\nexport function setCachedRuleMemories(\n baseDir: string,\n memories: MemoryFile[],\n version: number,\n cache = true,\n keyId = \"\",\n): { all: MemoryFile[]; byId: Map<string, MemoryFile> } {\n const byId = new Map<string, MemoryFile>();\n const all: MemoryFile[] = [];\n for (const m of memories) {\n byId.set(m.frontmatter.id, m);\n if (\n m.frontmatter.category === \"rule\" &&\n m.frontmatter.status !== \"archived\" &&\n m.frontmatter.status !== \"forgotten\"\n ) {\n all.push(m);\n }\n }\n const result = { all, byId };\n if (cache) ruleMemoriesByDir.set(baseDir, { data: result, version, keyId, loadedAt: Date.now() });\n return result;\n}\n\n// QMD search result cache — short-lived (60s TTL) to avoid stale results\n// while reducing redundant daemon calls for repeated/similar queries.\ninterface QmdCacheEntry {\n results: unknown[];\n cachedAt: number;\n}\nconst QMD_CACHE_TTL_MS = 60_000;\nconst qmdSearchCache = new Map<string, QmdCacheEntry>();\n\nconst qmdSearchCacheRecallTtl = new AsyncLocalStorage<number>();\n\nexport async function runInQmdSearchCacheRecallScope<T>(\n ttlMs: number,\n run: () => Promise<T>,\n): Promise<T> {\n const ttl = Number.isFinite(ttlMs)\n ? Math.max(QMD_CACHE_TTL_MS, Math.floor(ttlMs))\n : QMD_CACHE_TTL_MS;\n return qmdSearchCacheRecallTtl.run(ttl, run);\n}\n\nexport function getCachedQmdSearch(cacheKey: string): unknown[] | null {\n const entry = qmdSearchCache.get(cacheKey);\n if (!entry) return null;\n const ttl = qmdSearchCacheRecallTtl.getStore() ?? QMD_CACHE_TTL_MS;\n // A concurrent recall can still use an entry that is too old for this recall.\n if (Date.now() - entry.cachedAt > ttl) return null;\n return entry.results;\n}\n\nexport function setCachedQmdSearch(cacheKey: string, results: unknown[]): void {\n qmdSearchCache.delete(cacheKey);\n qmdSearchCache.set(cacheKey, { results, cachedAt: Date.now() });\n if (qmdSearchCache.size > 200) {\n const oldest = qmdSearchCache.keys().next();\n if (!oldest.done) qmdSearchCache.delete(oldest.value);\n }\n}\n\n/**\n * Mutation scopes (issue #1904). A cache layer declares (via `evictOn`) which\n * of these mutation kinds evict it, so the invalidation chokepoint can clear\n * only the layers a given write actually affects instead of nuking every\n * layer on every write (the permanently-cold-cache regression #1904 fixes).\n */\nexport type MemoryMutationScope =\n | \"memory-create\" // a new memory doc added; no existing doc's recall-visibility changes\n | \"memory-mutate\" // existing doc changed/moved/removed/status-changed (update, supersede,\n // archive, invalidate, frontmatter, cold-tier change, bulk delete)\n | \"entity-write\" // an entity file changed\n | \"secure-key-change\"; // encryption key rotated; everything is now unreadable → evict all\n\n/**\n * Cache-layer registry (issue #1535).\n *\n * EVERY process-level cache that can serve memory-derived content is\n * enumerated here, and the single invalidation chokepoint\n * (`invalidateAllForDir`) iterates this list. Adding a new cache layer to\n * this module (or qmd-recall-cache.ts) REQUIRES registering it here —\n * otherwise mutations will never invalidate it (the exact bug this registry\n * exists to prevent) and the enumerate-all-layers fitness test in\n * tests/cache-invalidation-coherence.test.ts fails.\n */\nexport interface MemoryCacheLayer {\n /** Stable identifier used by tests and diagnostics. */\n readonly name: string;\n /** \"dir\" layers evict only entries for the given baseDir. \"global\" layers\n * are fully cleared on any mutation: their keys embed queries, namespaces,\n * and strategies rather than a storage dir, so a per-dir selective clear\n * is not possible without recording the dir in each entry. Full clear is\n * the simple-and-correct choice — these caches are re-warmable\n * (issue #1535, implementation guide option (b)). */\n readonly scope: \"dir\" | \"global\";\n /** Which mutation scopes evict this layer (issue #1904). A `memory-create`\n * only refreshes the full-memory-list views (hot + derived episode/rule); a\n * `memory-mutate`/`entity-write`/`secure-key-change` evicts every layer whose\n * content it can affect. Adding a layer REQUIRES declaring this. */\n readonly evictOn: Partial<Record<MemoryMutationScope, true>>;\n /** Evict entries for baseDir (\"dir\" scope) or everything (\"global\" scope). */\n readonly invalidateForDir: (baseDir: string) => void;\n /** Evict every entry across all dirs. */\n readonly clearAll: () => void;\n /** True when the layer still holds entries for baseDir (\"dir\" scope) or\n * any entries at all (\"global\" scope). */\n readonly hasEntriesFor: (baseDir: string) => boolean;\n}\n\nexport const ALL_CACHE_LAYERS: readonly MemoryCacheLayer[] = [\n {\n name: \"hot-memories\",\n scope: \"dir\",\n evictOn: { \"memory-create\": true, \"memory-mutate\": true, \"secure-key-change\": true },\n invalidateForDir: (baseDir) => void hotCacheByDir.delete(baseDir),\n clearAll: () => hotCacheByDir.clear(),\n hasEntriesFor: (baseDir) => hotCacheByDir.has(baseDir),\n },\n {\n name: \"archive-memories\",\n scope: \"dir\",\n evictOn: { \"memory-mutate\": true, \"secure-key-change\": true },\n invalidateForDir: (baseDir) => void archiveCacheByDir.delete(baseDir),\n clearAll: () => archiveCacheByDir.clear(),\n hasEntriesFor: (baseDir) => archiveCacheByDir.has(baseDir),\n },\n {\n name: \"entities\",\n scope: \"dir\",\n evictOn: { \"entity-write\": true, \"secure-key-change\": true },\n invalidateForDir: (baseDir) => invalidateCachedEntities(baseDir),\n clearAll: () => entityCacheByDir.clear(),\n hasEntriesFor: (baseDir) => {\n const prefix = entityCacheKeyPrefix(baseDir);\n for (const key of entityCacheByDir.keys()) {\n if (key.startsWith(prefix)) return true;\n }\n return false;\n },\n },\n {\n name: \"derived-episode-map\",\n scope: \"dir\",\n evictOn: { \"memory-create\": true, \"memory-mutate\": true, \"secure-key-change\": true },\n invalidateForDir: (baseDir) => void episodeMapByDir.delete(baseDir),\n clearAll: () => episodeMapByDir.clear(),\n hasEntriesFor: (baseDir) => episodeMapByDir.has(baseDir),\n },\n {\n name: \"derived-rule-memories\",\n scope: \"dir\",\n evictOn: { \"memory-create\": true, \"memory-mutate\": true, \"secure-key-change\": true },\n invalidateForDir: (baseDir) => void ruleMemoriesByDir.delete(baseDir),\n clearAll: () => ruleMemoriesByDir.clear(),\n hasEntriesFor: (baseDir) => ruleMemoriesByDir.has(baseDir),\n },\n {\n name: \"qmd-search\",\n scope: \"global\",\n evictOn: { \"memory-mutate\": true, \"entity-write\": true, \"secure-key-change\": true },\n invalidateForDir: () => qmdSearchCache.clear(),\n clearAll: () => qmdSearchCache.clear(),\n hasEntriesFor: () => qmdSearchCache.size > 0,\n },\n {\n name: \"qmd-recall\",\n scope: \"global\",\n evictOn: { \"memory-mutate\": true, \"entity-write\": true, \"secure-key-change\": true },\n invalidateForDir: () => clearQmdRecallCache(),\n clearAll: () => clearQmdRecallCache(),\n hasEntriesFor: () => qmdRecallCacheSize() > 0,\n },\n];\n\n/**\n * The single invalidation chokepoint (issue #1535, rule 37).\n *\n * Every memory/entity mutation path must route through this function —\n * storage.ts calls it from its internal invalidation funnels\n * (invalidateAllMemoriesCache / invalidateColdMemoriesCache /\n * bumpMemoryStatusVersion / setSecureStoreKey). Nothing may clear an\n * individual layer ad hoc: partial clears are how the stale-recall bug\n * happened (qmdRecallCache was never invalidated on mutations, so recall\n * served pre-edit bundles for the remainder of its fresh/stale TTL window).\n */\nexport function invalidateAllForDir(baseDir: string): void {\n for (const layer of ALL_CACHE_LAYERS) {\n layer.invalidateForDir(baseDir);\n }\n}\n\n/**\n * Scope-aware invalidation chokepoint (issue #1904). Evicts only the layers\n * whose `evictOn` includes `scope`, so the highest-frequency write\n * (`memory-create`, fired continuously by extraction) stops nuking the QMD\n * result caches and the version-keyed entity cache it cannot affect. This is\n * the single scoped entry point — like `invalidateAllForDir`, it iterates the\n * `ALL_CACHE_LAYERS` registry rather than clearing any layer ad hoc, so the\n * single-chokepoint invariant (#1535) holds: a new layer only participates by\n * declaring `evictOn`.\n */\nexport function invalidateForScope(baseDir: string, scope: MemoryMutationScope): void {\n for (const layer of ALL_CACHE_LAYERS) {\n if (layer.evictOn[scope]) layer.invalidateForDir(baseDir);\n }\n}\n\n/**\n * Companion to {@link invalidateForScope} for the single-file write fast path\n * (issue #1902 + #1904): it patches the hot-memories entry in place and\n * re-keys it, so this evicts every OTHER layer the scope would clear but leaves\n * hot-memories alone. A `memory-create` thus evicts only the derived\n * episode/rule views (hot patched, QMD/entities/archive kept warm), which is\n * the whole point of #1904 — a create must not evict the QMD result caches.\n */\nexport function invalidateForScopeExceptHot(baseDir: string, scope: MemoryMutationScope): void {\n for (const layer of ALL_CACHE_LAYERS) {\n if (layer.name === \"hot-memories\") continue;\n if (layer.evictOn[scope]) layer.invalidateForDir(baseDir);\n }\n}\n\n/**\n * Invalidate every cache layer for `baseDir` EXCEPT the hot-memories layer\n * (issue #1902). Single-file write paths use this instead of\n * `invalidateAllForDir` because they patch the hot-memories entry in place\n * (via `updateCacheOnWrite`/`updateCacheOnDelete`) and re-key it to the bumped\n * version — so dropping it here would defeat the whole warm-cache fast path.\n * The derived episode/rule views and the global QMD caches are cheap to\n * rebuild and are not patched, so they are still evicted here. Every other\n * layer remains reachable for the wholesale `invalidateAllForDir` /\n * `clearMemoryCache` chokepoint used by bulk/ambiguous mutations.\n */\nexport function invalidateDerivedAndGlobalForDir(baseDir: string): void {\n // Preserve the layers a single-file write intentionally keeps warm (issue\n // #1902, Codex Medium): hot-memories is patched + re-keyed in place; the\n // entities layer is keyed on memory-status, which plain create/content writes\n // deliberately do NOT bump (so entity retrieval stays warm); and the\n // archive-memories layer is version-keyed on the archive tier, untouched by a\n // hot-tier write. Evict ONLY the derived (episode/rule) and global (QMD) views.\n for (const layer of ALL_CACHE_LAYERS) {\n if (\n layer.name === \"hot-memories\" ||\n layer.name === \"entities\" ||\n layer.name === \"archive-memories\"\n ) {\n continue;\n }\n layer.invalidateForDir(baseDir);\n }\n}\n\nexport function clearMemoryCache(baseDir?: string): void {\n if (baseDir) {\n invalidateAllForDir(baseDir);\n return;\n }\n for (const layer of ALL_CACHE_LAYERS) {\n layer.clearAll();\n }\n}\n\n/**\n * Clear ONLY the two global QMD result caches (qmd-search + qmd-recall), leaving\n * every dir-scoped layer (hot/archive/entities/derived) untouched. Called after\n * a successful QMD maintenance update+embed (#1904, Codex): a newly-persisted\n * fact becomes searchable at that moment, so any cached pre-index recall/search\n * bundle is now stale and must not be served. This lets the create path keep the\n * QMD caches warm during index lag (perf win) while guaranteeing invalidation\n * the moment the fact is actually indexed — no extended stale window.\n */\nexport function clearQmdResultCaches(): void {\n qmdSearchCache.clear();\n clearQmdRecallCache();\n}\n\nexport function getMemoryCacheStats(baseDir: string): {\n hotSize: number;\n archiveSize: number;\n hotVersion: number | null;\n archiveVersion: number | null;\n} {\n const hot = hotCacheByDir.get(baseDir);\n const archive = archiveCacheByDir.get(baseDir);\n return {\n hotSize: hot?.memories.size ?? 0,\n archiveSize: archive?.memories.size ?? 0,\n hotVersion: hot?.version ?? null,\n archiveVersion: archive?.version ?? null,\n };\n}\n"],"mappings":";;;;;;AAAA,SAAS,yBAAyB;AAoBlC,IAAM,gBAAgB,oBAAI,IAAwB;AAClD,IAAM,oBAAoB,oBAAI,IAAwB;AAStD,SAAS,uBAAuB,KAAmB;AACjD,aAAW,CAAC,KAAK,KAAK,KAAK,eAAe;AACxC,QAAI,MAAM,QAAQ,KAAK,MAAM,MAAM,WAAW,MAAM,MAAO,eAAc,OAAO,GAAG;AAAA,EACrF;AACF;AAYA,SAAS,uBACP,OACA,KACA,gBACA,OACA,OACU;AACV,MAAI,mBAAmB,EAAG,QAAO;AACjC,QAAM,QAAQ,MAAM,IAAI,GAAG;AAC3B,MAAI,CAAC,SAAS,MAAM,YAAY,kBAAkB,MAAM,UAAU,MAAO,QAAO;AAChF,MAAI,QAAQ,KAAK,KAAK,IAAI,IAAI,MAAM,WAAW,OAAO;AACpD,UAAM,OAAO,GAAG;AAChB,WAAO;AAAA,EACT;AACA,SAAO;AACT;AAEO,SAAS,kBACd,SACA,gBACA,QAAQ,IACR,QAAQ,GACa;AACrB,QAAM,QAAQ,uBAAuB,eAAe,SAAS,gBAAgB,OAAO,KAAK;AACzF,SAAO,QAAQ,CAAC,GAAG,MAAM,SAAS,OAAO,CAAC,IAAI;AAChD;AAEO,SAAS,kBACd,SACA,UACA,SACA,QAAQ,IACR,QAAQ,GACF;AACN,QAAM,MAAM,oBAAI,IAAwB;AACxC,aAAW,KAAK,SAAU,KAAI,IAAI,EAAE,MAAM,CAAC;AAC3C,QAAM,MAAM,KAAK,IAAI;AACrB,gBAAc,IAAI,SAAS,EAAE,UAAU,KAAK,SAAS,UAAU,KAAK,OAAO,MAAM,CAAC;AAElF,yBAAuB,GAAG;AAC5B;AAEO,SAAS,mBAAmB,SAAiB,QAAoB,QAAQ,IAAU;AACxF,QAAM,QAAQ,cAAc,IAAI,OAAO;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