@remnic/core 9.49.0 → 9.49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abstraction-nodes.d.ts +12 -1
- package/dist/abstraction-nodes.js +9 -2
- package/dist/access-admin-ops-surface.d.ts +10 -10
- package/dist/access-admin-ops-surface.js +48 -48
- package/dist/access-authorization-probe.d.ts +10 -10
- package/dist/access-authorization-probe.js +49 -49
- package/dist/access-boundary.d.ts +10 -10
- package/dist/access-boundary.js +48 -48
- package/dist/access-cli.js +132 -127
- package/dist/access-cli.js.map +1 -1
- package/dist/access-coding-context-resolution.d.ts +1 -1
- package/dist/access-extraction-force-flush.d.ts +10 -10
- package/dist/access-extraction-force-flush.js +48 -48
- package/dist/access-health-types.d.ts +1 -1
- package/dist/access-http-lcm-compaction.d.ts +10 -10
- package/dist/access-http-lifecycle-flush.d.ts +10 -10
- package/dist/access-http-offline-stream.d.ts +10 -10
- package/dist/access-http-query.js +48 -48
- package/dist/access-http.d.ts +10 -10
- package/dist/access-http.js +60 -60
- package/dist/access-identity-continuity-surface.d.ts +8 -8
- package/dist/access-identity-continuity-surface.js +48 -48
- package/dist/access-lcm-surface.d.ts +10 -10
- package/dist/access-lcm-surface.js +48 -48
- package/dist/access-mcp.d.ts +10 -10
- package/dist/access-mcp.js +55 -55
- package/dist/access-memory-search-fanout.d.ts +2 -2
- package/dist/{access-namespace-preflight--H6HwN85.d.ts → access-namespace-preflight-DuDU301-.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +3 -3
- package/dist/access-namespace-preflight.js +48 -48
- package/dist/access-observe-write-surface.d.ts +10 -10
- package/dist/access-observe-write-surface.js +48 -48
- package/dist/access-offline-manifest.d.ts +8 -8
- package/dist/access-offline-manifest.js +3 -3
- package/dist/access-operations-batch.js +51 -51
- package/dist/access-operations.d.ts +13 -13
- package/dist/access-operations.js +54 -54
- package/dist/access-recall-concurrency.d.ts +10 -10
- package/dist/access-recall-concurrency.js +48 -48
- package/dist/access-recall-response.d.ts +10 -10
- package/dist/access-recall-response.js +48 -48
- package/dist/access-recall-surface.d.ts +10 -10
- package/dist/access-recall-surface.js +48 -48
- package/dist/access-schema.d.ts +105 -105
- package/dist/access-schema.js +4 -4
- package/dist/{access-service-DvXOzCrM.d.ts → access-service--_3T_v23.d.ts} +7 -7
- package/dist/access-service-helpers.d.ts +10 -10
- package/dist/access-service.d.ts +10 -10
- package/dist/access-service.js +48 -48
- package/dist/access-surface-catalog.d.ts +10 -10
- package/dist/access-wearables-meetings-surface.d.ts +3 -3
- package/dist/action-confidence.d.ts +1 -1
- package/dist/active-memory-bridge.d.ts +1 -1
- package/dist/active-recall.d.ts +1 -1
- package/dist/active-recall.js +3 -2
- package/dist/active-recall.js.map +1 -1
- package/dist/adapters/index.js +4 -4
- package/dist/adapters/registry.js +2 -2
- package/dist/ambient-provenance.d.ts +1 -1
- package/dist/artifact-search.d.ts +1 -1
- package/dist/{auto-sync-7O6RP2RT.js → auto-sync-QFQGOEO2.js} +4 -4
- package/dist/behavior-learner.d.ts +1 -1
- package/dist/behavior-signals.d.ts +1 -1
- package/dist/bootstrap.d.ts +8 -8
- package/dist/briefing.d.ts +2 -2
- package/dist/briefing.js +12 -12
- package/dist/buffer-surprise-report.d.ts +1 -1
- package/dist/buffer-turn-helpers.d.ts +1 -1
- package/dist/buffer.d.ts +2 -2
- package/dist/buffer.js +4 -4
- package/dist/bulk-import/index.d.ts +3 -3
- package/dist/calibration.d.ts +1 -1
- package/dist/calibration.js +1 -1
- package/dist/capabilities.d.ts +1 -1
- package/dist/{capsule-crypto-YO5QJ6L3.js → capsule-crypto-7FJQINUR.js} +2 -2
- package/dist/{capsule-merge-6GFHWECG.js → capsule-merge-KXTRZ23Z.js} +4 -4
- package/dist/{catalog-Iwbk9h5E.d.ts → catalog-DjUmUIal.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +1 -1
- package/dist/causal-behavior.js +3 -3
- package/dist/causal-chain.js +3 -3
- package/dist/causal-consolidation.d.ts +1 -1
- package/dist/causal-consolidation.js +16 -16
- package/dist/causal-retrieval.js +3 -3
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/causal-trajectory.d.ts +51 -2
- package/dist/causal-trajectory.js +8 -2
- package/dist/{chunk-EY64JLOM.js → chunk-24BKGKGO.js} +30 -19
- package/dist/chunk-24BKGKGO.js.map +1 -0
- package/dist/{chunk-ICP53SKG.js → chunk-2HIJHXB3.js} +2 -2
- package/dist/{chunk-BXLOS5AJ.js → chunk-2NLLXCJG.js} +2 -2
- package/dist/{chunk-LZGCJSQR.js → chunk-3LD4N2TF.js} +151 -37
- package/dist/chunk-3LD4N2TF.js.map +1 -0
- package/dist/{chunk-5JRC6BYS.js → chunk-47J4EDGR.js} +11 -11
- package/dist/{chunk-2VHLLPTX.js → chunk-4EABKPZS.js} +4 -4
- package/dist/{chunk-RJV6Q2FT.js → chunk-4JWJMRPJ.js} +2 -2
- package/dist/{chunk-MXPB6PJQ.js → chunk-4S3ECH3U.js} +2 -2
- package/dist/{chunk-CGASUJVP.js → chunk-5V6IXHPI.js} +4 -4
- package/dist/{chunk-R5IGA2NH.js → chunk-5XCN4XBU.js} +4 -4
- package/dist/{chunk-2RPJ4NEE.js → chunk-64BHFFKZ.js} +2 -2
- package/dist/{chunk-FQC3DHH2.js → chunk-66SE3BNH.js} +2 -2
- package/dist/{chunk-TERNBNJB.js → chunk-6FC3IZ26.js} +2 -2
- package/dist/{chunk-K7VKAHFE.js → chunk-6XGEBQ3R.js} +4 -4
- package/dist/{chunk-JFLOOTXU.js → chunk-7BLWBSRL.js} +3 -3
- package/dist/{chunk-ABR2HEJO.js → chunk-7NDM2PNK.js} +3 -3
- package/dist/{chunk-JXZ7NLYH.js → chunk-7VWZ4LRW.js} +2 -2
- package/dist/{chunk-RN53QBM4.js → chunk-A4QMKFFO.js} +5 -1
- package/dist/chunk-A4QMKFFO.js.map +1 -0
- package/dist/chunk-ACPCA4NO.js +321 -0
- package/dist/chunk-ACPCA4NO.js.map +1 -0
- package/dist/chunk-AMTEYNYK.js +72 -0
- package/dist/chunk-AMTEYNYK.js.map +1 -0
- package/dist/{chunk-R6YJI3HE.js → chunk-AW4QUFQF.js} +1 -1
- package/dist/{chunk-P65YJEEL.js → chunk-AXFWMRKI.js} +2 -2
- package/dist/{chunk-WG5HSQ4P.js → chunk-BAKXNQ3C.js} +2 -2
- package/dist/{chunk-NM2WP3B7.js → chunk-BJYET5TX.js} +2 -2
- package/dist/{chunk-HLKPRWF4.js → chunk-DATDLJAO.js} +6 -6
- package/dist/chunk-DJUKBGAD.js +260 -0
- package/dist/chunk-DJUKBGAD.js.map +1 -0
- package/dist/{chunk-DX3XRGLH.js → chunk-DQTCGVFK.js} +2 -2
- package/dist/{chunk-IPBNC77A.js → chunk-E633OXMH.js} +11 -11
- package/dist/{chunk-J7T4MX7P.js → chunk-EEAMSNSG.js} +12 -1
- package/dist/chunk-EEAMSNSG.js.map +1 -0
- package/dist/{chunk-Z5UC3OKB.js → chunk-ELQCS47S.js} +7 -7
- package/dist/{chunk-FMXJ555A.js → chunk-EURCX6PS.js} +2 -2
- package/dist/{chunk-MZZR3J6M.js → chunk-FV7YQTN3.js} +2 -2
- package/dist/chunk-G73MCJKL.js +20 -0
- package/dist/chunk-G73MCJKL.js.map +1 -0
- package/dist/{chunk-3R6D33UF.js → chunk-GGBSF2X7.js} +2 -2
- package/dist/{chunk-SYUBB3WM.js → chunk-GKEYXXKX.js} +2 -2
- package/dist/{chunk-5AGR7SAI.js → chunk-GSEPRIZC.js} +3 -3
- package/dist/{chunk-UTVZKHJK.js → chunk-GUKBW4HL.js} +2 -2
- package/dist/chunk-GXSOUIA4.js +293 -0
- package/dist/chunk-GXSOUIA4.js.map +1 -0
- package/dist/{chunk-2F6NP3NT.js → chunk-HDQUQBPW.js} +2 -2
- package/dist/{chunk-6HMYUWXR.js → chunk-HTP6XRUI.js} +2 -2
- package/dist/{chunk-UYUYZ4WY.js → chunk-IARXXZU4.js} +2 -2
- package/dist/{chunk-MNB5RMAY.js → chunk-IIFFC3RL.js} +2 -2
- package/dist/{chunk-VDX2J7OX.js → chunk-IPLYGWQF.js} +6 -6
- package/dist/{chunk-NZBZ7IS2.js → chunk-JDCQK3C5.js} +2 -2
- package/dist/{chunk-C3KVFJH5.js → chunk-JI62YGPI.js} +2 -2
- package/dist/{chunk-LULR4IUW.js → chunk-KATEWTQJ.js} +2 -2
- package/dist/{chunk-BMCHFWGX.js → chunk-KMWYZTIE.js} +2 -2
- package/dist/{chunk-JGSKJHF7.js → chunk-KQS72GCR.js} +2 -2
- package/dist/{chunk-3S63QIFQ.js → chunk-LAQ33B5D.js} +1 -1
- package/dist/chunk-LAQ33B5D.js.map +1 -0
- package/dist/chunk-LNTUXKBT.js +224 -0
- package/dist/chunk-LNTUXKBT.js.map +1 -0
- package/dist/{chunk-2RIWJUSQ.js → chunk-LQKXVQZR.js} +12 -12
- package/dist/{chunk-LQL7ARIC.js → chunk-LTOAJXZB.js} +4 -4
- package/dist/{chunk-QKD65RGL.js → chunk-LYMNZZIM.js} +2 -2
- package/dist/{chunk-W4FBGYGK.js → chunk-M4MP34AQ.js} +189 -5
- package/dist/chunk-M4MP34AQ.js.map +1 -0
- package/dist/{chunk-3PY7VHV7.js → chunk-MCA2X4WH.js} +2 -2
- package/dist/{chunk-S5NZBKKQ.js → chunk-N3CXAYPJ.js} +3 -3
- package/dist/{chunk-WQIHRA5F.js → chunk-N3LL5NEU.js} +2 -2
- package/dist/{chunk-Z4U6U3M3.js → chunk-NKL25FCF.js} +2 -2
- package/dist/{chunk-LMDRGRJ2.js → chunk-NOB2T2FC.js} +2 -2
- package/dist/{chunk-P2OTGMTR.js → chunk-NSGU76YO.js} +2 -2
- package/dist/{chunk-L6DCVUCA.js → chunk-O76MWTVS.js} +2 -2
- package/dist/{chunk-WZFAPHIK.js → chunk-OIOZ6MOP.js} +3 -3
- package/dist/{chunk-DNHVPZOD.js → chunk-P26YHAQH.js} +201 -1
- package/dist/chunk-P26YHAQH.js.map +1 -0
- package/dist/{chunk-UMOO7IY7.js → chunk-P2KBDJJ6.js} +2 -2
- package/dist/{chunk-KVJRXN2E.js → chunk-P4QOYG52.js} +125 -13
- package/dist/chunk-P4QOYG52.js.map +1 -0
- package/dist/chunk-P77QX3ID.js +332 -0
- package/dist/chunk-P77QX3ID.js.map +1 -0
- package/dist/{chunk-SXWHN7GC.js → chunk-PDEKQWDV.js} +2 -2
- package/dist/{chunk-ENEA47UC.js → chunk-PLCHU56K.js} +3 -3
- package/dist/{chunk-IXPKESVP.js → chunk-PWIMF7LP.js} +37 -37
- package/dist/{chunk-RHTO4HTL.js → chunk-PWLB4TRK.js} +2 -2
- package/dist/{chunk-RVYVMQK4.js → chunk-QSYL5CXK.js} +3 -3
- package/dist/{chunk-B6KGGRUL.js → chunk-QWLW3VQH.js} +2 -2
- package/dist/{chunk-YQIVWS7Y.js → chunk-RBPH3GZV.js} +405 -101
- package/dist/chunk-RBPH3GZV.js.map +1 -0
- package/dist/{chunk-JBPKEARU.js → chunk-RKNJBZ55.js} +4 -4
- package/dist/{chunk-QCECHYZL.js → chunk-RVO6TCTU.js} +6 -6
- package/dist/{chunk-SHDZNSK4.js → chunk-S2SJEOTM.js} +2 -2
- package/dist/{chunk-ULWHRQEQ.js → chunk-S75UQ3T3.js} +3 -3
- package/dist/{chunk-LXOM6IQU.js → chunk-SEF4IOFE.js} +2 -2
- package/dist/{chunk-I3YHVVT4.js → chunk-SHYIMIX5.js} +2 -2
- package/dist/{chunk-IZANPXMV.js → chunk-T35UJI5R.js} +86 -82
- package/dist/chunk-T35UJI5R.js.map +1 -0
- package/dist/{chunk-G5OB4XZX.js → chunk-VANZKHTN.js} +4 -4
- package/dist/{chunk-I4TQST3L.js → chunk-VFS3MK5F.js} +2 -2
- package/dist/chunk-VUDMT5CP.js +86 -0
- package/dist/chunk-VUDMT5CP.js.map +1 -0
- package/dist/{chunk-CMQZNEIF.js → chunk-WFLBP5GC.js} +8 -1
- package/dist/chunk-WFLBP5GC.js.map +1 -0
- package/dist/{chunk-SMPVHGHG.js → chunk-WPZX7MEA.js} +3 -3
- package/dist/{chunk-ZRWB5D4H.js → chunk-WT6UL3UA.js} +2 -2
- package/dist/{chunk-DQEMWVMT.js → chunk-X7Y7WX73.js} +1 -1
- package/dist/{chunk-JHMAYABJ.js → chunk-XL3TATMJ.js} +4 -4
- package/dist/{chunk-MC6XO7T4.js → chunk-YLBE6PLR.js} +2 -2
- package/dist/{chunk-OLX2HJFW.js → chunk-YLHM5BQQ.js} +4 -4
- package/dist/{chunk-EZ25VE3G.js → chunk-YNDLCWXS.js} +4 -4
- package/dist/{chunk-GF22HWS2.js → chunk-Z54EM5YZ.js} +4 -4
- package/dist/{chunk-GVX3NAUU.js → chunk-ZDAYWJV6.js} +2 -2
- package/dist/{chunk-EYAIZBLM.js → chunk-ZJIFYUJI.js} +5 -5
- package/dist/{chunk-CNQQMB67.js → chunk-ZN4EYMKJ.js} +2 -2
- package/dist/{cli-PyAUaozE.d.ts → cli-BLNmNEMT.d.ts} +16 -14
- package/dist/cli.d.ts +13 -13
- package/dist/cli.js +96 -94
- package/dist/coding/pre-action-gate.d.ts +66 -0
- package/dist/coding/pre-action-gate.js +22 -0
- package/dist/commitment-ledger.js +2 -2
- package/dist/compounding/engine.d.ts +2 -2
- package/dist/compounding/engine.js +13 -13
- package/dist/compounding/preference-consolidator.d.ts +1 -1
- package/dist/compression-optimizer.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +3 -2
- package/dist/connectors/codex-materialize-runner.d.ts +1 -1
- package/dist/connectors/codex-materialize-runner.js +12 -12
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.js +12 -12
- package/dist/consolidation-provenance-check.d.ts +2 -2
- package/dist/consolidation-provenance-check.js +4 -4
- package/dist/consolidation-undo.d.ts +2 -2
- package/dist/consolidation-undo.js +3 -3
- package/dist/contradiction/index.d.ts +2 -2
- package/dist/contradiction/index.js +3 -3
- package/dist/converge-config.d.ts +1 -1
- package/dist/convergence-refresh.d.ts +2 -2
- package/dist/convergence-refresh.js +15 -15
- package/dist/conversation-index/backend.d.ts +1 -1
- package/dist/conversation-index/chunker.d.ts +1 -1
- package/dist/conversation-index/faiss-adapter.d.ts +1 -1
- package/dist/conversation-index/indexer.d.ts +1 -1
- package/dist/conversation-index/search.d.ts +1 -1
- package/dist/corpus-watermark.d.ts +1 -1
- package/dist/corpus-watermark.js +23 -23
- package/dist/cue-anchors.d.ts +19 -1
- package/dist/cue-anchors.js +10 -2
- package/dist/dashboard-runtime.js +2 -2
- package/dist/day-summary.d.ts +1 -1
- package/dist/delinearize.d.ts +1 -1
- package/dist/dependency-propagation-config.d.ts +10 -0
- package/dist/dependency-propagation-config.js +10 -0
- package/dist/dependency-propagation-config.js.map +1 -0
- package/dist/deterministic-order.d.ts +4 -0
- package/dist/deterministic-order.js +10 -0
- package/dist/deterministic-order.js.map +1 -0
- package/dist/direct-answer-wiring.d.ts +1 -1
- package/dist/direct-answer.d.ts +1 -1
- package/dist/embedding-fallback.d.ts +1 -1
- package/dist/enrichment/index.d.ts +1 -1
- package/dist/entity-retrieval.d.ts +2 -2
- package/dist/entity-retrieval.js +12 -12
- package/dist/entity-schema.d.ts +1 -1
- package/dist/evals.js +2 -2
- package/dist/explicit-capture.d.ts +8 -8
- package/dist/explicit-capture.js +6 -6
- package/dist/external-wiki-access.d.ts +10 -10
- package/dist/external-wiki-access.js +49 -49
- package/dist/external-wiki-collection-registration.d.ts +1 -1
- package/dist/external-wiki-collection.d.ts +1 -1
- package/dist/external-wiki-mcp-tools.d.ts +10 -10
- package/dist/extraction-error-classification.d.ts +1 -1
- package/dist/extraction-faithfulness.d.ts +1 -1
- package/dist/extraction-judge-telemetry.d.ts +1 -1
- package/dist/extraction-judge-training.d.ts +1 -1
- package/dist/extraction-judge.d.ts +1 -1
- package/dist/extraction-liveness.d.ts +1 -1
- package/dist/extraction-normalization.d.ts +14 -0
- package/dist/extraction-normalization.js +22 -0
- package/dist/extraction-normalization.js.map +1 -0
- package/dist/extraction-prompt.d.ts +4 -3
- package/dist/extraction-prompt.js +3 -1
- package/dist/extraction-source-grounding-rules.d.ts +1 -1
- package/dist/extraction-source-grounding.d.ts +1 -1
- package/dist/extraction.d.ts +18 -1
- package/dist/extraction.js +21 -19
- package/dist/fallback-llm.d.ts +1 -1
- package/dist/{first-start-migration-ZSHEFEI3.js → first-start-migration-626C5554.js} +5 -5
- package/dist/{forget-DNAJ66ZD.js → forget-GJ42LCBW.js} +2 -2
- package/dist/graph-dashboard-diff.d.ts +1 -1
- package/dist/graph-dashboard-key.d.ts +1 -1
- package/dist/graph-dashboard-parser.d.ts +1 -1
- package/dist/graph-edge-reinforcement.d.ts +1 -1
- package/dist/graph-snapshot.d.ts +1 -1
- package/dist/graph.d.ts +1 -1
- package/dist/harmonic-construction.d.ts +43 -0
- package/dist/harmonic-construction.js +26 -0
- package/dist/harmonic-construction.js.map +1 -0
- package/dist/harmonic-retrieval.d.ts +1 -0
- package/dist/harmonic-retrieval.js +10 -4
- package/dist/importance.d.ts +1 -1
- package/dist/importers/index.d.ts +1 -1
- package/dist/in-flight-reads.d.ts +1 -1
- package/dist/index.d.ts +698 -696
- package/dist/index.js +207 -161
- package/dist/intent.d.ts +1 -1
- package/dist/json-store.d.ts +15 -1
- package/dist/json-store.js +11 -3
- package/dist/lcm/engine.d.ts +1 -1
- package/dist/lcm/engine.js +2 -2
- package/dist/lcm/index.d.ts +1 -1
- package/dist/lcm/index.js +4 -4
- package/dist/lcm/tools.d.ts +1 -1
- package/dist/lifecycle.d.ts +1 -1
- package/dist/live-connectors-runner.d.ts +1 -1
- package/dist/local-llm.d.ts +1 -1
- package/dist/local-model-endpoint.d.ts +1 -1
- package/dist/maintenance/archive-observations.js +2 -2
- package/dist/maintenance/atomic-file.d.ts +5 -0
- package/dist/maintenance/atomic-file.js +12 -0
- package/dist/maintenance/atomic-file.js.map +1 -0
- package/dist/maintenance/memory-governance.d.ts +1 -1
- package/dist/maintenance/memory-governance.js +12 -12
- package/dist/maintenance/migrate-observations.js +3 -3
- package/dist/maintenance/observation-ledger-utils.d.ts +1 -1
- package/dist/maintenance/observation-ledger-utils.js +2 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +13 -13
- package/dist/maintenance/rebuild-memory-projection.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-projection.js +14 -14
- package/dist/maintenance/rebuild-observations.js +3 -3
- package/dist/{maintenance-j7sfNQdK.d.ts → maintenance-DKbKZi3u.d.ts} +3 -3
- package/dist/mcp-memory-inspector-app.d.ts +10 -10
- package/dist/memory-action-policy.d.ts +1 -1
- package/dist/memory-cache.d.ts +1 -1
- package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
- package/dist/memory-projection-store.d.ts +1 -1
- package/dist/memory-provenance.d.ts +1 -1
- package/dist/memory-snapshot.d.ts +1 -1
- package/dist/memory-worth-outcomes.d.ts +2 -2
- package/dist/models-json.d.ts +1 -1
- package/dist/namespaces/migrate.d.ts +3 -3
- package/dist/namespaces/migrate.js +22 -22
- package/dist/namespaces/principal.d.ts +1 -1
- package/dist/namespaces/search.d.ts +1 -1
- package/dist/namespaces/search.js +9 -9
- package/dist/namespaces/storage.d.ts +3 -3
- package/dist/namespaces/storage.js +12 -12
- package/dist/native-knowledge.d.ts +1 -1
- package/dist/objective-state-writers.js +3 -3
- package/dist/objective-state.js +2 -2
- package/dist/offline-sync-impression-drain.d.ts +1 -1
- package/dist/offline-sync-impression-drain.js +2 -2
- package/dist/operator-doctor-corpus.d.ts +1 -1
- package/dist/operator-doctor-corpus.js +24 -24
- package/dist/operator-doctor-replica.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +3 -3
- package/dist/operator-toolkit.js +33 -32
- package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
- package/dist/orchestration/maintenance.d.ts +4 -4
- package/dist/orchestration/maintenance.js +18 -18
- package/dist/{orchestrator-Haa9xVPV.d.ts → orchestrator-BRwD7ceU.d.ts} +7 -7
- package/dist/orchestrator.d.ts +8 -8
- package/dist/orchestrator.js +132 -127
- package/dist/page-versioning.js +3 -3
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/{pipeline-1h2GpiHP.d.ts → pipeline-DC-1C9T8.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +1 -1
- package/dist/proactive-contention.d.ts +1 -1
- package/dist/provenance.d.ts +1 -1
- package/dist/{qmd-UdwoF71D.d.ts → qmd-DdeCEZdb.d.ts} +1 -1
- package/dist/qmd-preflight.d.ts +2 -2
- package/dist/qmd-recall-cache.d.ts +1 -1
- package/dist/qmd.d.ts +2 -2
- package/dist/qmd.js +4 -4
- package/dist/recall-concurrency-config.d.ts +1 -1
- package/dist/recall-disclosure-escalation.d.ts +1 -1
- package/dist/recall-explain-renderer.d.ts +1 -1
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-memory-map.d.ts +1 -1
- package/dist/recall-planner-llm.d.ts +1 -1
- package/dist/recall-state.d.ts +1 -1
- package/dist/recall-state.js +2 -2
- package/dist/recall-tag-filter.d.ts +1 -1
- package/dist/recall-timings.d.ts +1 -1
- package/dist/recall-xray-cli.d.ts +1 -1
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +1 -1
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +1 -1
- package/dist/recall-xray.js +2 -2
- package/dist/reconcile/cursor.d.ts +1 -1
- package/dist/reconcile/manifest.d.ts +1 -1
- package/dist/reconcile/plan.d.ts +1 -1
- package/dist/relevance.js +2 -2
- package/dist/replay/normalizers/chatgpt.d.ts +1 -1
- package/dist/replay/normalizers/claude.d.ts +1 -1
- package/dist/replay/normalizers/openclaw.d.ts +1 -1
- package/dist/replay/normalizers/shared.d.ts +1 -1
- package/dist/replay/runner.d.ts +1 -1
- package/dist/replay/types.d.ts +1 -1
- package/dist/replica-divergence.d.ts +1 -1
- package/dist/replica-peers-config.d.ts +1 -1
- package/dist/{resolution-3K27T4VO.js → resolution-MDPNOEG6.js} +4 -4
- package/dist/resolution-MDPNOEG6.js.map +1 -0
- package/dist/resolve-auth-token.d.ts +1 -1
- package/dist/resume-bundles.js +8 -7
- package/dist/retrieval-agents.d.ts +2 -2
- package/dist/retrieval-tiers.d.ts +1 -1
- package/dist/routing/engine.d.ts +1 -1
- package/dist/routing/store.d.ts +1 -1
- package/dist/salvage-envelope.d.ts +1 -1
- package/dist/salvage-envelope.js +3 -3
- package/dist/schemas.d.ts +213 -116
- package/dist/schemas.js +1 -1
- package/dist/{scope-profiles-APjhSe-w.d.ts → scope-profiles-BXVq4Jv0.d.ts} +1 -1
- package/dist/search/embed-helper.d.ts +1 -1
- package/dist/search/factory.d.ts +1 -1
- package/dist/search/factory.js +8 -8
- package/dist/search/index.d.ts +1 -1
- package/dist/search/index.js +13 -13
- package/dist/search/lancedb-backend.d.ts +1 -1
- package/dist/search/lancedb-backend.js +2 -2
- package/dist/search/meilisearch-backend.d.ts +1 -1
- package/dist/search/meilisearch-backend.js +2 -2
- package/dist/search/noop-backend.d.ts +1 -1
- package/dist/search/orama-backend.d.ts +1 -1
- package/dist/search/orama-backend.js +2 -2
- package/dist/search/port.d.ts +1 -1
- package/dist/search/remote-backend.d.ts +1 -1
- package/dist/{semantic-consolidation-CrySDbk3.d.ts → semantic-consolidation-CGYxfa8F.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +13 -13
- package/dist/semantic-rule-promotion.js +12 -12
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +12 -12
- package/dist/{service-Da_BI4S8.d.ts → service-CBDBQFCN.d.ts} +2 -2
- package/dist/session-observer-bands.d.ts +1 -1
- package/dist/session-observer-state.d.ts +1 -1
- package/dist/shared-context/manager.d.ts +11 -11
- package/dist/signal.d.ts +1 -1
- package/dist/source-agent-qualifier.d.ts +1 -1
- package/dist/source-agent-qualifier.js +16 -16
- package/dist/{storage-D1apCiCS.d.ts → storage-V--MQi7w.d.ts} +1 -1
- package/dist/storage.d.ts +2 -2
- package/dist/storage.js +11 -11
- package/dist/summarizer.d.ts +1 -1
- package/dist/summary-snapshot.d.ts +1 -1
- package/dist/temporal-supersession.d.ts +13 -2
- package/dist/temporal-supersession.js +1 -1
- package/dist/temporal-timeline-recall.d.ts +1 -1
- package/dist/temporal-validity.d.ts +1 -1
- package/dist/threading.d.ts +1 -1
- package/dist/tier-migration.d.ts +2 -2
- package/dist/tier-routing.d.ts +1 -1
- package/dist/{tier-stats-OPTSBNRH.js → tier-stats-2JCZYEF7.js} +5 -5
- package/dist/topics.d.ts +1 -1
- package/dist/transcript.d.ts +1 -1
- 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 +5 -5
- package/dist/transfer/types.d.ts +66 -66
- package/dist/trust-score-stage.d.ts +1 -1
- package/dist/trust-score.d.ts +1 -1
- package/dist/trust-zones.js +2 -2
- package/dist/{types-D_Au9qJO.d.ts → types-D_a6Sqjz.d.ts} +25 -8
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utility-learner.js +3 -3
- package/dist/utility-runtime.d.ts +1 -1
- package/dist/utility-runtime.js +4 -4
- package/dist/utility-telemetry.js +2 -2
- package/dist/verified-recall.js +12 -12
- package/dist/work-product-ledger.js +2 -2
- package/dist/write-envelope.d.ts +1 -1
- package/dist/write-envelope.js +2 -2
- package/package.json +32 -2
- package/src/abstraction-nodes.ts +182 -4
- package/src/causal-trajectory.ts +258 -3
- package/src/cli/harmonic-search.ts +23 -0
- package/src/cli/research-status-commands.ts +2 -1
- package/src/cli.ts +1 -24
- package/src/coding/pre-action-gate.test.ts +516 -0
- package/src/coding/pre-action-gate.ts +320 -0
- package/src/config.test.ts +85 -0
- package/src/config.ts +2 -0
- package/src/cue-anchors.test.ts +90 -0
- package/src/cue-anchors.ts +264 -11
- package/src/dependency-frontmatter.test.ts +83 -0
- package/src/dependency-propagation-config.ts +94 -0
- package/src/deterministic-order.ts +14 -0
- package/src/extraction-normalization.ts +71 -0
- package/src/extraction-prompt.ts +45 -11
- package/src/extraction.ts +48 -32
- package/src/faithfulness-graph-guard.test.ts +27 -0
- package/src/harmonic-construction.test.ts +1799 -0
- package/src/harmonic-construction.ts +367 -0
- package/src/harmonic-retrieval.ts +166 -25
- package/src/index.ts +4 -5
- package/src/json-store.ts +354 -12
- package/src/orchestration/consolidation-run.ts +192 -0
- package/src/orchestration/contradiction-linking-coordinator.ts +35 -1
- package/src/orchestration/dependency-propagation-triggers.test.ts +286 -0
- package/src/orchestration/dependency-propagation.test.ts +487 -0
- package/src/orchestration/dependency-propagation.ts +263 -0
- package/src/orchestration/dependency-revalidation.ts +173 -0
- package/src/orchestration/extraction-persist-deps.ts +93 -0
- package/src/orchestration/extraction-persist.ts +101 -94
- package/src/orchestration/harmonic-construction-persist.ts +86 -0
- package/src/orchestration/recall-internal.ts +1 -0
- package/src/orchestrator.ts +2 -1
- package/src/schemas.ts +15 -0
- package/src/storage.ts +14 -0
- package/src/temporal-supersession.ts +29 -1
- package/src/testing/orchestrator-lite.ts +27 -8
- package/src/testing/subjects/extraction-lifecycle.test.ts +91 -50
- package/src/types.ts +22 -7
- package/dist/chunk-3S63QIFQ.js.map +0 -1
- package/dist/chunk-CMQZNEIF.js.map +0 -1
- package/dist/chunk-DNHVPZOD.js.map +0 -1
- package/dist/chunk-EY64JLOM.js.map +0 -1
- package/dist/chunk-FZZ2QTJI.js +0 -111
- package/dist/chunk-FZZ2QTJI.js.map +0 -1
- package/dist/chunk-IZANPXMV.js.map +0 -1
- package/dist/chunk-J7T4MX7P.js.map +0 -1
- package/dist/chunk-KVJRXN2E.js.map +0 -1
- package/dist/chunk-LPSF4OQH.js +0 -47
- package/dist/chunk-LPSF4OQH.js.map +0 -1
- package/dist/chunk-LZGCJSQR.js.map +0 -1
- package/dist/chunk-OADWQ5CR.js +0 -115
- package/dist/chunk-OADWQ5CR.js.map +0 -1
- package/dist/chunk-RN53QBM4.js.map +0 -1
- package/dist/chunk-W4FBGYGK.js.map +0 -1
- package/dist/chunk-YQIVWS7Y.js.map +0 -1
- /package/dist/{auto-sync-7O6RP2RT.js.map → auto-sync-QFQGOEO2.js.map} +0 -0
- /package/dist/{capsule-crypto-YO5QJ6L3.js.map → capsule-crypto-7FJQINUR.js.map} +0 -0
- /package/dist/{capsule-merge-6GFHWECG.js.map → capsule-merge-KXTRZ23Z.js.map} +0 -0
- /package/dist/{chunk-ICP53SKG.js.map → chunk-2HIJHXB3.js.map} +0 -0
- /package/dist/{chunk-BXLOS5AJ.js.map → chunk-2NLLXCJG.js.map} +0 -0
- /package/dist/{chunk-5JRC6BYS.js.map → chunk-47J4EDGR.js.map} +0 -0
- /package/dist/{chunk-2VHLLPTX.js.map → chunk-4EABKPZS.js.map} +0 -0
- /package/dist/{chunk-RJV6Q2FT.js.map → chunk-4JWJMRPJ.js.map} +0 -0
- /package/dist/{chunk-MXPB6PJQ.js.map → chunk-4S3ECH3U.js.map} +0 -0
- /package/dist/{chunk-CGASUJVP.js.map → chunk-5V6IXHPI.js.map} +0 -0
- /package/dist/{chunk-R5IGA2NH.js.map → chunk-5XCN4XBU.js.map} +0 -0
- /package/dist/{chunk-2RPJ4NEE.js.map → chunk-64BHFFKZ.js.map} +0 -0
- /package/dist/{chunk-FQC3DHH2.js.map → chunk-66SE3BNH.js.map} +0 -0
- /package/dist/{chunk-TERNBNJB.js.map → chunk-6FC3IZ26.js.map} +0 -0
- /package/dist/{chunk-K7VKAHFE.js.map → chunk-6XGEBQ3R.js.map} +0 -0
- /package/dist/{chunk-JFLOOTXU.js.map → chunk-7BLWBSRL.js.map} +0 -0
- /package/dist/{chunk-ABR2HEJO.js.map → chunk-7NDM2PNK.js.map} +0 -0
- /package/dist/{chunk-JXZ7NLYH.js.map → chunk-7VWZ4LRW.js.map} +0 -0
- /package/dist/{chunk-R6YJI3HE.js.map → chunk-AW4QUFQF.js.map} +0 -0
- /package/dist/{chunk-P65YJEEL.js.map → chunk-AXFWMRKI.js.map} +0 -0
- /package/dist/{chunk-WG5HSQ4P.js.map → chunk-BAKXNQ3C.js.map} +0 -0
- /package/dist/{chunk-NM2WP3B7.js.map → chunk-BJYET5TX.js.map} +0 -0
- /package/dist/{chunk-HLKPRWF4.js.map → chunk-DATDLJAO.js.map} +0 -0
- /package/dist/{chunk-DX3XRGLH.js.map → chunk-DQTCGVFK.js.map} +0 -0
- /package/dist/{chunk-IPBNC77A.js.map → chunk-E633OXMH.js.map} +0 -0
- /package/dist/{chunk-Z5UC3OKB.js.map → chunk-ELQCS47S.js.map} +0 -0
- /package/dist/{chunk-FMXJ555A.js.map → chunk-EURCX6PS.js.map} +0 -0
- /package/dist/{chunk-MZZR3J6M.js.map → chunk-FV7YQTN3.js.map} +0 -0
- /package/dist/{chunk-3R6D33UF.js.map → chunk-GGBSF2X7.js.map} +0 -0
- /package/dist/{chunk-SYUBB3WM.js.map → chunk-GKEYXXKX.js.map} +0 -0
- /package/dist/{chunk-5AGR7SAI.js.map → chunk-GSEPRIZC.js.map} +0 -0
- /package/dist/{chunk-UTVZKHJK.js.map → chunk-GUKBW4HL.js.map} +0 -0
- /package/dist/{chunk-2F6NP3NT.js.map → chunk-HDQUQBPW.js.map} +0 -0
- /package/dist/{chunk-6HMYUWXR.js.map → chunk-HTP6XRUI.js.map} +0 -0
- /package/dist/{chunk-UYUYZ4WY.js.map → chunk-IARXXZU4.js.map} +0 -0
- /package/dist/{chunk-MNB5RMAY.js.map → chunk-IIFFC3RL.js.map} +0 -0
- /package/dist/{chunk-VDX2J7OX.js.map → chunk-IPLYGWQF.js.map} +0 -0
- /package/dist/{chunk-NZBZ7IS2.js.map → chunk-JDCQK3C5.js.map} +0 -0
- /package/dist/{chunk-C3KVFJH5.js.map → chunk-JI62YGPI.js.map} +0 -0
- /package/dist/{chunk-LULR4IUW.js.map → chunk-KATEWTQJ.js.map} +0 -0
- /package/dist/{chunk-BMCHFWGX.js.map → chunk-KMWYZTIE.js.map} +0 -0
- /package/dist/{chunk-JGSKJHF7.js.map → chunk-KQS72GCR.js.map} +0 -0
- /package/dist/{chunk-2RIWJUSQ.js.map → chunk-LQKXVQZR.js.map} +0 -0
- /package/dist/{chunk-LQL7ARIC.js.map → chunk-LTOAJXZB.js.map} +0 -0
- /package/dist/{chunk-QKD65RGL.js.map → chunk-LYMNZZIM.js.map} +0 -0
- /package/dist/{chunk-3PY7VHV7.js.map → chunk-MCA2X4WH.js.map} +0 -0
- /package/dist/{chunk-S5NZBKKQ.js.map → chunk-N3CXAYPJ.js.map} +0 -0
- /package/dist/{chunk-WQIHRA5F.js.map → chunk-N3LL5NEU.js.map} +0 -0
- /package/dist/{chunk-Z4U6U3M3.js.map → chunk-NKL25FCF.js.map} +0 -0
- /package/dist/{chunk-LMDRGRJ2.js.map → chunk-NOB2T2FC.js.map} +0 -0
- /package/dist/{chunk-P2OTGMTR.js.map → chunk-NSGU76YO.js.map} +0 -0
- /package/dist/{chunk-L6DCVUCA.js.map → chunk-O76MWTVS.js.map} +0 -0
- /package/dist/{chunk-WZFAPHIK.js.map → chunk-OIOZ6MOP.js.map} +0 -0
- /package/dist/{chunk-UMOO7IY7.js.map → chunk-P2KBDJJ6.js.map} +0 -0
- /package/dist/{chunk-SXWHN7GC.js.map → chunk-PDEKQWDV.js.map} +0 -0
- /package/dist/{chunk-ENEA47UC.js.map → chunk-PLCHU56K.js.map} +0 -0
- /package/dist/{chunk-IXPKESVP.js.map → chunk-PWIMF7LP.js.map} +0 -0
- /package/dist/{chunk-RHTO4HTL.js.map → chunk-PWLB4TRK.js.map} +0 -0
- /package/dist/{chunk-RVYVMQK4.js.map → chunk-QSYL5CXK.js.map} +0 -0
- /package/dist/{chunk-B6KGGRUL.js.map → chunk-QWLW3VQH.js.map} +0 -0
- /package/dist/{chunk-JBPKEARU.js.map → chunk-RKNJBZ55.js.map} +0 -0
- /package/dist/{chunk-QCECHYZL.js.map → chunk-RVO6TCTU.js.map} +0 -0
- /package/dist/{chunk-SHDZNSK4.js.map → chunk-S2SJEOTM.js.map} +0 -0
- /package/dist/{chunk-ULWHRQEQ.js.map → chunk-S75UQ3T3.js.map} +0 -0
- /package/dist/{chunk-LXOM6IQU.js.map → chunk-SEF4IOFE.js.map} +0 -0
- /package/dist/{chunk-I3YHVVT4.js.map → chunk-SHYIMIX5.js.map} +0 -0
- /package/dist/{chunk-G5OB4XZX.js.map → chunk-VANZKHTN.js.map} +0 -0
- /package/dist/{chunk-I4TQST3L.js.map → chunk-VFS3MK5F.js.map} +0 -0
- /package/dist/{chunk-SMPVHGHG.js.map → chunk-WPZX7MEA.js.map} +0 -0
- /package/dist/{chunk-ZRWB5D4H.js.map → chunk-WT6UL3UA.js.map} +0 -0
- /package/dist/{chunk-DQEMWVMT.js.map → chunk-X7Y7WX73.js.map} +0 -0
- /package/dist/{chunk-JHMAYABJ.js.map → chunk-XL3TATMJ.js.map} +0 -0
- /package/dist/{chunk-MC6XO7T4.js.map → chunk-YLBE6PLR.js.map} +0 -0
- /package/dist/{chunk-OLX2HJFW.js.map → chunk-YLHM5BQQ.js.map} +0 -0
- /package/dist/{chunk-EZ25VE3G.js.map → chunk-YNDLCWXS.js.map} +0 -0
- /package/dist/{chunk-GF22HWS2.js.map → chunk-Z54EM5YZ.js.map} +0 -0
- /package/dist/{chunk-GVX3NAUU.js.map → chunk-ZDAYWJV6.js.map} +0 -0
- /package/dist/{chunk-EYAIZBLM.js.map → chunk-ZJIFYUJI.js.map} +0 -0
- /package/dist/{chunk-CNQQMB67.js.map → chunk-ZN4EYMKJ.js.map} +0 -0
- /package/dist/{resolution-3K27T4VO.js.map → coding/pre-action-gate.js.map} +0 -0
- /package/dist/{first-start-migration-ZSHEFEI3.js.map → first-start-migration-626C5554.js.map} +0 -0
- /package/dist/{forget-DNAJ66ZD.js.map → forget-GJ42LCBW.js.map} +0 -0
- /package/dist/{tier-stats-OPTSBNRH.js.map → tier-stats-2JCZYEF7.js.map} +0 -0
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
loadSyncState,
|
|
7
7
|
syncWearableSource,
|
|
8
8
|
wearableSourceLabel
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IARXXZU4.js";
|
|
10
10
|
import {
|
|
11
11
|
CompressionGuidelineCoordinator
|
|
12
12
|
} from "./chunk-6LKEUCEM.js";
|
|
13
13
|
import {
|
|
14
14
|
ActivityStore,
|
|
15
15
|
MaintenanceScheduler
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4EABKPZS.js";
|
|
17
17
|
import {
|
|
18
18
|
runPeerProfileReasoner
|
|
19
19
|
} from "./chunk-I74SUMNI.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-7HYPN2GC.js";
|
|
23
23
|
import {
|
|
24
24
|
LcmEngine
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-Z54EM5YZ.js";
|
|
26
26
|
import {
|
|
27
27
|
chunkTranscriptEntries
|
|
28
28
|
} from "./chunk-TECVW3JP.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
CompoundingEngine,
|
|
34
34
|
defaultTierMigrationCycleBudget
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-PLCHU56K.js";
|
|
36
36
|
import {
|
|
37
37
|
SharedContextManager
|
|
38
38
|
} from "./chunk-M23RF3LJ.js";
|
|
@@ -40,16 +40,7 @@ import {
|
|
|
40
40
|
applyUtilityPromotionRuntimePolicy,
|
|
41
41
|
applyUtilityRankingRuntimeDelta,
|
|
42
42
|
loadUtilityRuntimeValues
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import {
|
|
45
|
-
extractTopics
|
|
46
|
-
} from "./chunk-UHGBNIOS.js";
|
|
47
|
-
import {
|
|
48
|
-
buildTemporalTimelineRecallSection
|
|
49
|
-
} from "./chunk-I6WYQSX4.js";
|
|
50
|
-
import {
|
|
51
|
-
CODEX_THREAD_KEY_PREFIX
|
|
52
|
-
} from "./chunk-4EX5WZ4M.js";
|
|
43
|
+
} from "./chunk-SEF4IOFE.js";
|
|
53
44
|
import {
|
|
54
45
|
TierMigrationExecutor
|
|
55
46
|
} from "./chunk-YRFAYOFQ.js";
|
|
@@ -59,6 +50,15 @@ import {
|
|
|
59
50
|
import {
|
|
60
51
|
TmtBuilder
|
|
61
52
|
} from "./chunk-ECZU5BJH.js";
|
|
53
|
+
import {
|
|
54
|
+
extractTopics
|
|
55
|
+
} from "./chunk-UHGBNIOS.js";
|
|
56
|
+
import {
|
|
57
|
+
buildTemporalTimelineRecallSection
|
|
58
|
+
} from "./chunk-I6WYQSX4.js";
|
|
59
|
+
import {
|
|
60
|
+
CODEX_THREAD_KEY_PREFIX
|
|
61
|
+
} from "./chunk-4EX5WZ4M.js";
|
|
62
62
|
import {
|
|
63
63
|
HourlySummarizer
|
|
64
64
|
} from "./chunk-LLJMAULE.js";
|
|
@@ -69,14 +69,6 @@ import {
|
|
|
69
69
|
import {
|
|
70
70
|
SessionObserverState
|
|
71
71
|
} from "./chunk-QFN4U7AG.js";
|
|
72
|
-
import {
|
|
73
|
-
applyRuntimeRetrievalPolicy
|
|
74
|
-
} from "./chunk-5IZL4DCV.js";
|
|
75
|
-
import {
|
|
76
|
-
RerankCache,
|
|
77
|
-
reorderByRankedKeys,
|
|
78
|
-
rerankLocalOrNoop
|
|
79
|
-
} from "./chunk-LUDXM7MD.js";
|
|
80
72
|
import {
|
|
81
73
|
buildResponseGuidanceRecallSection,
|
|
82
74
|
shouldRecallResponseGuidance
|
|
@@ -102,21 +94,26 @@ import {
|
|
|
102
94
|
recencyWindowFromPrompt,
|
|
103
95
|
resolvePromptTagPrefilterAsync
|
|
104
96
|
} from "./chunk-ZOKZIR5K.js";
|
|
97
|
+
import {
|
|
98
|
+
applyRuntimeRetrievalPolicy
|
|
99
|
+
} from "./chunk-5IZL4DCV.js";
|
|
105
100
|
import {
|
|
106
101
|
findUnresolvedEntityRefs
|
|
107
102
|
} from "./chunk-X7XN6YU4.js";
|
|
108
103
|
import {
|
|
109
104
|
RelevanceStore
|
|
110
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-KATEWTQJ.js";
|
|
111
106
|
import {
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
RerankCache,
|
|
108
|
+
reorderByRankedKeys,
|
|
109
|
+
rerankLocalOrNoop
|
|
110
|
+
} from "./chunk-LUDXM7MD.js";
|
|
114
111
|
import {
|
|
115
112
|
LastRecallStore,
|
|
116
113
|
RecallHandleHistoryStore,
|
|
117
114
|
TierMigrationStatusStore,
|
|
118
115
|
clampGraphRecallExpandedEntries
|
|
119
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-BJYET5TX.js";
|
|
120
117
|
import {
|
|
121
118
|
dedupeResultsByNamespace,
|
|
122
119
|
hasMemoryForResult,
|
|
@@ -125,6 +122,9 @@ import {
|
|
|
125
122
|
memoryMapKey,
|
|
126
123
|
resultHasKey
|
|
127
124
|
} from "./chunk-D3V3UMET.js";
|
|
125
|
+
import {
|
|
126
|
+
reorderRecallResultsWithMmr
|
|
127
|
+
} from "./chunk-YDBIWGNI.js";
|
|
128
128
|
import {
|
|
129
129
|
applyReasoningTraceBoost
|
|
130
130
|
} from "./chunk-ZZTOURJI.js";
|
|
@@ -144,25 +144,32 @@ import {
|
|
|
144
144
|
import {
|
|
145
145
|
runLiveConnectorsOnce
|
|
146
146
|
} from "./chunk-HTIIXNJQ.js";
|
|
147
|
+
import {
|
|
148
|
+
deriveHarmonicRecords,
|
|
149
|
+
harmonicEntityReferenceMatches,
|
|
150
|
+
harmonicEntitySegment,
|
|
151
|
+
normalizedHarmonicEntityIdentity,
|
|
152
|
+
persistHarmonicRecords
|
|
153
|
+
} from "./chunk-GXSOUIA4.js";
|
|
147
154
|
import {
|
|
148
155
|
classifyMemoryKind
|
|
149
156
|
} from "./chunk-YAZNBMNF.js";
|
|
157
|
+
import {
|
|
158
|
+
buildFocusedListRecallSection,
|
|
159
|
+
shouldRecallFocusedListEvidence
|
|
160
|
+
} from "./chunk-OH7QLI6W.js";
|
|
150
161
|
import {
|
|
151
162
|
ExtractionEngine
|
|
152
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-3LD4N2TF.js";
|
|
153
164
|
import {
|
|
154
165
|
parseMemoryActionEligibilityContext
|
|
155
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-WFLBP5GC.js";
|
|
156
167
|
import {
|
|
157
168
|
ModelRegistry
|
|
158
169
|
} from "./chunk-WLZYGLJ4.js";
|
|
159
170
|
import {
|
|
160
171
|
LocalLlmClient
|
|
161
172
|
} from "./chunk-L6CQ7WIW.js";
|
|
162
|
-
import {
|
|
163
|
-
buildFocusedListRecallSection,
|
|
164
|
-
shouldRecallFocusedListEvidence
|
|
165
|
-
} from "./chunk-OH7QLI6W.js";
|
|
166
173
|
import {
|
|
167
174
|
recordJudgeTrainingPair
|
|
168
175
|
} from "./chunk-PWFCHOB3.js";
|
|
@@ -173,6 +180,11 @@ import {
|
|
|
173
180
|
judgeFactDurability,
|
|
174
181
|
validateProcedureExtraction
|
|
175
182
|
} from "./chunk-K2TDK7GG.js";
|
|
183
|
+
import {
|
|
184
|
+
buildEntityRecallSection,
|
|
185
|
+
entityRecentTranscriptLookbackHours,
|
|
186
|
+
readRecentEntityTranscriptEntries
|
|
187
|
+
} from "./chunk-ZJIFYUJI.js";
|
|
176
188
|
import {
|
|
177
189
|
buildEventOrderRecallSection,
|
|
178
190
|
shouldRecallEventOrderEvidence
|
|
@@ -184,49 +196,44 @@ import {
|
|
|
184
196
|
import {
|
|
185
197
|
buildExplicitCueRecallSection
|
|
186
198
|
} from "./chunk-TVIVY7KU.js";
|
|
199
|
+
import {
|
|
200
|
+
tryDirectAnswer
|
|
201
|
+
} from "./chunk-CSOYVTRX.js";
|
|
187
202
|
import {
|
|
188
203
|
EmbeddingFallback
|
|
189
204
|
} from "./chunk-YK6BDDHP.js";
|
|
190
|
-
import {
|
|
191
|
-
buildEntityRecallSection,
|
|
192
|
-
entityRecentTranscriptLookbackHours,
|
|
193
|
-
readRecentEntityTranscriptEntries
|
|
194
|
-
} from "./chunk-EYAIZBLM.js";
|
|
195
205
|
import {
|
|
196
206
|
formatDaySummaryMemories
|
|
197
207
|
} from "./chunk-RPSYDM6C.js";
|
|
198
|
-
import {
|
|
199
|
-
tryDirectAnswer
|
|
200
|
-
} from "./chunk-CSOYVTRX.js";
|
|
201
208
|
import {
|
|
202
209
|
refreshConvergedNamespaces
|
|
203
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-VFS3MK5F.js";
|
|
204
211
|
import {
|
|
205
212
|
builtInConnectorPackageSpecifier,
|
|
206
213
|
ensureBuiltInWearableConnectors,
|
|
207
214
|
getWearableConnector,
|
|
208
215
|
listWearableConnectors
|
|
209
|
-
} from "./chunk-
|
|
210
|
-
import {
|
|
211
|
-
normalizeReplaySessionKey
|
|
212
|
-
} from "./chunk-AJVLDJU6.js";
|
|
216
|
+
} from "./chunk-T35UJI5R.js";
|
|
213
217
|
import {
|
|
214
218
|
RoutingRulesStore
|
|
215
219
|
} from "./chunk-XL24QQ63.js";
|
|
220
|
+
import {
|
|
221
|
+
normalizeReplaySessionKey
|
|
222
|
+
} from "./chunk-AJVLDJU6.js";
|
|
216
223
|
import {
|
|
217
224
|
compareVerifiedEpisodeResults,
|
|
218
225
|
searchVerifiedEpisodes
|
|
219
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-4JWJMRPJ.js";
|
|
220
227
|
import {
|
|
221
228
|
ThreadingManager
|
|
222
229
|
} from "./chunk-OJP3N7UK.js";
|
|
223
230
|
import {
|
|
224
231
|
compareVerifiedSemanticRuleResults,
|
|
225
232
|
searchVerifiedSemanticRules
|
|
226
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-S2SJEOTM.js";
|
|
227
234
|
import {
|
|
228
235
|
searchWorkProductLedgerEntries
|
|
229
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-WT6UL3UA.js";
|
|
230
237
|
import {
|
|
231
238
|
TranscriptManager
|
|
232
239
|
} from "./chunk-HYQJQGD3.js";
|
|
@@ -236,25 +243,28 @@ import {
|
|
|
236
243
|
import {
|
|
237
244
|
runNamespaceMaintenanceFanout,
|
|
238
245
|
summarizeNamespaceMaintenanceHealth
|
|
239
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-E633OXMH.js";
|
|
240
247
|
import {
|
|
241
248
|
NamespaceCatalog,
|
|
242
249
|
planNamespaceMaintenance
|
|
243
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-O76MWTVS.js";
|
|
244
251
|
import {
|
|
245
252
|
isAboveImportanceThreshold,
|
|
246
253
|
scoreImportance
|
|
247
254
|
} from "./chunk-JXS5PDQ7.js";
|
|
248
255
|
import {
|
|
249
256
|
searchHarmonicRetrieval
|
|
250
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-P4QOYG52.js";
|
|
251
258
|
import {
|
|
252
259
|
EXTRACTION_JUDGE_VERDICT_CATEGORY,
|
|
253
260
|
recordJudgeVerdict
|
|
254
261
|
} from "./chunk-OZKOPQCM.js";
|
|
255
262
|
import {
|
|
256
263
|
recordEvalShadowRecall
|
|
257
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-MCA2X4WH.js";
|
|
265
|
+
import {
|
|
266
|
+
pruneOrphanCueAnchors
|
|
267
|
+
} from "./chunk-ACPCA4NO.js";
|
|
258
268
|
import {
|
|
259
269
|
collectNativeKnowledgeChunks,
|
|
260
270
|
formatNativeKnowledgeSection,
|
|
@@ -262,7 +272,7 @@ import {
|
|
|
262
272
|
} from "./chunk-2DQ2XREU.js";
|
|
263
273
|
import {
|
|
264
274
|
applyCommitmentLedgerLifecycle
|
|
265
|
-
} from "./chunk-
|
|
275
|
+
} from "./chunk-NOB2T2FC.js";
|
|
266
276
|
import {
|
|
267
277
|
buildConsolidationPrompt,
|
|
268
278
|
buildExtensionsBlockForConsolidation,
|
|
@@ -272,7 +282,7 @@ import {
|
|
|
272
282
|
materializeAfterSemanticConsolidation,
|
|
273
283
|
parseConsolidationResponse,
|
|
274
284
|
parseOperatorAwareConsolidationResponse
|
|
275
|
-
} from "./chunk-
|
|
285
|
+
} from "./chunk-GGBSF2X7.js";
|
|
276
286
|
import {
|
|
277
287
|
BoxBuilder
|
|
278
288
|
} from "./chunk-B7RWBZXW.js";
|
|
@@ -284,10 +294,10 @@ import {
|
|
|
284
294
|
} from "./chunk-UQ7RN5HK.js";
|
|
285
295
|
import {
|
|
286
296
|
SmartBuffer
|
|
287
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-64BHFFKZ.js";
|
|
288
298
|
import {
|
|
289
299
|
detectMeetings
|
|
290
|
-
} from "./chunk-
|
|
300
|
+
} from "./chunk-A4QMKFFO.js";
|
|
291
301
|
import {
|
|
292
302
|
compileCorrectionRule,
|
|
293
303
|
correctionsFilePath,
|
|
@@ -318,7 +328,7 @@ import {
|
|
|
318
328
|
} from "./chunk-H3FZVNRN.js";
|
|
319
329
|
import {
|
|
320
330
|
MeetingsInputError
|
|
321
|
-
} from "./chunk-
|
|
331
|
+
} from "./chunk-LQKXVQZR.js";
|
|
322
332
|
import {
|
|
323
333
|
WearablesInputError,
|
|
324
334
|
describeErrorForOperator
|
|
@@ -339,10 +349,10 @@ import {
|
|
|
339
349
|
filterRecallCandidates,
|
|
340
350
|
isGenericRecallExcludedPath,
|
|
341
351
|
isTopLevelArchivePath
|
|
342
|
-
} from "./chunk-
|
|
352
|
+
} from "./chunk-PWIMF7LP.js";
|
|
343
353
|
import {
|
|
344
354
|
importCapsule
|
|
345
|
-
} from "./chunk-
|
|
355
|
+
} from "./chunk-5XCN4XBU.js";
|
|
346
356
|
import {
|
|
347
357
|
isCodingGraphInstalled
|
|
348
358
|
} from "./chunk-VQ7B2Q6M.js";
|
|
@@ -356,7 +366,10 @@ import {
|
|
|
356
366
|
import {
|
|
357
367
|
listTrustZoneRecords,
|
|
358
368
|
searchTrustZoneRecords
|
|
359
|
-
} from "./chunk-
|
|
369
|
+
} from "./chunk-KQS72GCR.js";
|
|
370
|
+
import {
|
|
371
|
+
buildXraySnapshot
|
|
372
|
+
} from "./chunk-NSGU76YO.js";
|
|
360
373
|
import {
|
|
361
374
|
boundRecallContextComposition,
|
|
362
375
|
composeRecallContext,
|
|
@@ -364,41 +377,38 @@ import {
|
|
|
364
377
|
formatCuriosityFooter,
|
|
365
378
|
selectCuriosityQuestion
|
|
366
379
|
} from "./chunk-AHVEHR6K.js";
|
|
367
|
-
import {
|
|
368
|
-
buildXraySnapshot
|
|
369
|
-
} from "./chunk-P2OTGMTR.js";
|
|
370
380
|
import {
|
|
371
381
|
objectiveStateStoreOverrideForNamespace,
|
|
372
382
|
searchObjectiveStateSnapshots
|
|
373
|
-
} from "./chunk-
|
|
383
|
+
} from "./chunk-HTP6XRUI.js";
|
|
384
|
+
import {
|
|
385
|
+
contentMatchesRedactionRules,
|
|
386
|
+
loadRedactionRules
|
|
387
|
+
} from "./chunk-LTHVM4XN.js";
|
|
374
388
|
import {
|
|
375
389
|
ProfilingCollector
|
|
376
390
|
} from "./chunk-NLE6TSLG.js";
|
|
377
391
|
import {
|
|
378
392
|
buildProcedurePersistBody
|
|
379
393
|
} from "./chunk-QDW3E4RD.js";
|
|
380
|
-
import {
|
|
381
|
-
contentMatchesRedactionRules,
|
|
382
|
-
loadRedactionRules
|
|
383
|
-
} from "./chunk-LTHVM4XN.js";
|
|
384
394
|
import {
|
|
385
395
|
shouldSkipImplicitExtraction
|
|
386
|
-
} from "./chunk-
|
|
396
|
+
} from "./chunk-N3CXAYPJ.js";
|
|
387
397
|
import {
|
|
388
398
|
NamespaceSearchRouter,
|
|
389
399
|
namespaceCollectionName
|
|
390
|
-
} from "./chunk-
|
|
400
|
+
} from "./chunk-KMWYZTIE.js";
|
|
391
401
|
import {
|
|
392
402
|
createConversationIndexRuntime,
|
|
393
403
|
createSearchBackend,
|
|
394
404
|
isSearchBackendEnabled
|
|
395
|
-
} from "./chunk-
|
|
405
|
+
} from "./chunk-47J4EDGR.js";
|
|
396
406
|
import {
|
|
397
407
|
NoopSearchBackend
|
|
398
408
|
} from "./chunk-CYEPCZN5.js";
|
|
399
409
|
import {
|
|
400
410
|
NamespaceStorageRouter
|
|
401
|
-
} from "./chunk-
|
|
411
|
+
} from "./chunk-JI62YGPI.js";
|
|
402
412
|
import {
|
|
403
413
|
writeConversationChunks
|
|
404
414
|
} from "./chunk-72A4L5JJ.js";
|
|
@@ -407,10 +417,10 @@ import {
|
|
|
407
417
|
} from "./chunk-L2DPF4DF.js";
|
|
408
418
|
import {
|
|
409
419
|
searchCausalTrajectories
|
|
410
|
-
} from "./chunk-
|
|
420
|
+
} from "./chunk-M4MP34AQ.js";
|
|
411
421
|
import {
|
|
412
422
|
buildChainFollowupGenerator
|
|
413
|
-
} from "./chunk-
|
|
423
|
+
} from "./chunk-4S3ECH3U.js";
|
|
414
424
|
import {
|
|
415
425
|
QmdResultResolver,
|
|
416
426
|
StorageManager,
|
|
@@ -429,7 +439,10 @@ import {
|
|
|
429
439
|
reconstructFusionInputs,
|
|
430
440
|
selfDeps,
|
|
431
441
|
serializeFusionDay
|
|
432
|
-
} from "./chunk-
|
|
442
|
+
} from "./chunk-24BKGKGO.js";
|
|
443
|
+
import {
|
|
444
|
+
buildRetiredFactTombstoneInputs
|
|
445
|
+
} from "./chunk-ENTCVTQR.js";
|
|
433
446
|
import {
|
|
434
447
|
bodyIsEscaped,
|
|
435
448
|
decodeTranscriptBody,
|
|
@@ -440,9 +453,6 @@ import {
|
|
|
440
453
|
saveSpeakerRegistry,
|
|
441
454
|
speakerRegistryKey
|
|
442
455
|
} from "./chunk-UHVXE24Y.js";
|
|
443
|
-
import {
|
|
444
|
-
buildRetiredFactTombstoneInputs
|
|
445
|
-
} from "./chunk-ENTCVTQR.js";
|
|
446
456
|
import {
|
|
447
457
|
canRecallToolScopedMemory,
|
|
448
458
|
shouldPromoteGlobalFactToShared,
|
|
@@ -455,7 +465,7 @@ import {
|
|
|
455
465
|
} from "./chunk-J6A3CX5N.js";
|
|
456
466
|
import {
|
|
457
467
|
confidenceTier
|
|
458
|
-
} from "./chunk-
|
|
468
|
+
} from "./chunk-LAQ33B5D.js";
|
|
459
469
|
import {
|
|
460
470
|
lintWorkspaceFiles,
|
|
461
471
|
rotateMarkdownFileToArchive
|
|
@@ -469,14 +479,14 @@ import {
|
|
|
469
479
|
TAG_LIMITS,
|
|
470
480
|
composeMemoryEnvelope,
|
|
471
481
|
isMemoryCategory
|
|
472
|
-
} from "./chunk-
|
|
482
|
+
} from "./chunk-5V6IXHPI.js";
|
|
483
|
+
import {
|
|
484
|
+
normalizeTags
|
|
485
|
+
} from "./chunk-BT7NVCML.js";
|
|
473
486
|
import {
|
|
474
487
|
normalizeAttributePairs,
|
|
475
488
|
stripAttributesSuffix
|
|
476
489
|
} from "./chunk-R3DJVOSM.js";
|
|
477
|
-
import {
|
|
478
|
-
normalizeTags
|
|
479
|
-
} from "./chunk-BT7NVCML.js";
|
|
480
490
|
import {
|
|
481
491
|
checkCorpusReadAbort
|
|
482
492
|
} from "./chunk-5GINB5LC.js";
|
|
@@ -493,13 +503,14 @@ import {
|
|
|
493
503
|
requestEntityCanonicalIdReconcile,
|
|
494
504
|
requestEntityCanonicalIdReconcileSync,
|
|
495
505
|
withRawEntityPageMutation
|
|
496
|
-
} from "./chunk-
|
|
506
|
+
} from "./chunk-JDCQK3C5.js";
|
|
497
507
|
import {
|
|
498
508
|
applyTemporalSupersession,
|
|
499
509
|
normalizeSupersessionKey,
|
|
510
|
+
propagateInvalidation,
|
|
500
511
|
shouldFilterSupersededFromRecall,
|
|
501
512
|
supersessionKeysForFact
|
|
502
|
-
} from "./chunk-
|
|
513
|
+
} from "./chunk-P26YHAQH.js";
|
|
503
514
|
import {
|
|
504
515
|
isValidAsOf,
|
|
505
516
|
isValidityExpiredNow
|
|
@@ -543,7 +554,7 @@ import {
|
|
|
543
554
|
throwIfRecallAborted,
|
|
544
555
|
tokenizeRecallQuery,
|
|
545
556
|
utcDateKeysForLocalDay
|
|
546
|
-
} from "./chunk-
|
|
557
|
+
} from "./chunk-N3LL5NEU.js";
|
|
547
558
|
import {
|
|
548
559
|
inferIntentFromText,
|
|
549
560
|
intentCompatibilityScore,
|
|
@@ -2793,12 +2804,39 @@ var ContradictionLinkingCoordinator = class {
|
|
|
2793
2804
|
if (!contradiction || !config.contradictionAutoResolve || postWriteGuard) {
|
|
2794
2805
|
return;
|
|
2795
2806
|
}
|
|
2807
|
+
let oldMemory = null;
|
|
2808
|
+
try {
|
|
2809
|
+
oldMemory = await storage.getMemoryById(contradiction.supersededId);
|
|
2810
|
+
} catch (err) {
|
|
2811
|
+
log.warn(`contradiction propagation snapshot failed for ${contradiction.supersededId}: ${err}`);
|
|
2812
|
+
}
|
|
2796
2813
|
try {
|
|
2797
|
-
await storage.supersedeMemory(
|
|
2814
|
+
const superseded = await storage.supersedeMemory(
|
|
2798
2815
|
contradiction.supersededId,
|
|
2799
2816
|
newMemoryId,
|
|
2800
2817
|
contradiction.reason
|
|
2801
2818
|
);
|
|
2819
|
+
if (!superseded) return;
|
|
2820
|
+
if (oldMemory) {
|
|
2821
|
+
try {
|
|
2822
|
+
await propagateInvalidation(
|
|
2823
|
+
{
|
|
2824
|
+
storage,
|
|
2825
|
+
extraction: this.getExtraction(),
|
|
2826
|
+
config
|
|
2827
|
+
},
|
|
2828
|
+
{
|
|
2829
|
+
oldMemory,
|
|
2830
|
+
replacementId: newMemoryId,
|
|
2831
|
+
replacementContent: (await storage.getMemoryById(newMemoryId))?.content ?? null,
|
|
2832
|
+
cause: "contradiction",
|
|
2833
|
+
namespaceScope: this.namespaceFromPath(storage.dir)
|
|
2834
|
+
}
|
|
2835
|
+
);
|
|
2836
|
+
} catch (err) {
|
|
2837
|
+
log.warn(`contradiction dependency propagation failed for ${contradiction.supersededId}: ${err}`);
|
|
2838
|
+
}
|
|
2839
|
+
}
|
|
2802
2840
|
if (resolveIndexingCapabilities(config).queryAwareIndexing && contradiction.supersededPath) {
|
|
2803
2841
|
await deindexMemoryAsync(
|
|
2804
2842
|
config.memoryDir,
|
|
@@ -2863,11 +2901,107 @@ var ContradictionLinkingCoordinator = class {
|
|
|
2863
2901
|
// src/orchestration/consolidation-run.ts
|
|
2864
2902
|
import path4 from "path";
|
|
2865
2903
|
import { mkdir as mkdir2, readFile, writeFile as writeFile2 } from "fs/promises";
|
|
2904
|
+
var MAX_HARMONIC_NAMESPACE_STORES = 50;
|
|
2905
|
+
var HARMONIC_CATALOG_CURSOR_FILE = "harmonic-catalog-cursor.json";
|
|
2866
2906
|
var ConsolidationRunCoordinator = class {
|
|
2867
2907
|
constructor(deps) {
|
|
2868
2908
|
this.deps = deps;
|
|
2869
2909
|
}
|
|
2870
2910
|
deps;
|
|
2911
|
+
async readHarmonicCatalogCursor(defaultDir) {
|
|
2912
|
+
const cursorPath = path4.join(defaultDir, "state", HARMONIC_CATALOG_CURSOR_FILE);
|
|
2913
|
+
try {
|
|
2914
|
+
const raw = await readFile(cursorPath, "utf-8");
|
|
2915
|
+
const parsed = JSON.parse(raw);
|
|
2916
|
+
return typeof parsed.nextStorageDir === "string" && parsed.nextStorageDir.length > 0 ? path4.resolve(parsed.nextStorageDir) : void 0;
|
|
2917
|
+
} catch (error) {
|
|
2918
|
+
if (error.code !== "ENOENT") {
|
|
2919
|
+
log.warn(
|
|
2920
|
+
`harmonic namespace catalog cursor read failed open: ${error instanceof Error ? error.message : String(error)}`
|
|
2921
|
+
);
|
|
2922
|
+
}
|
|
2923
|
+
return void 0;
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
async writeHarmonicCatalogCursor(defaultDir, nextStorageDir) {
|
|
2927
|
+
const stateDir = path4.join(defaultDir, "state");
|
|
2928
|
+
await mkdir2(stateDir, { recursive: true });
|
|
2929
|
+
await writeFile2(
|
|
2930
|
+
path4.join(stateDir, HARMONIC_CATALOG_CURSOR_FILE),
|
|
2931
|
+
JSON.stringify({ nextStorageDir }, null, 2),
|
|
2932
|
+
"utf-8"
|
|
2933
|
+
);
|
|
2934
|
+
}
|
|
2935
|
+
async pruneHarmonicStores(storage) {
|
|
2936
|
+
const config = this.deps.config;
|
|
2937
|
+
if (!resolveCapabilities(config).harmonicRetrieval || !resolveConsolidationCapabilities(config).abstractionAnchors) {
|
|
2938
|
+
return;
|
|
2939
|
+
}
|
|
2940
|
+
const stores = /* @__PURE__ */ new Map();
|
|
2941
|
+
const defaultDir = path4.resolve(storage.dir);
|
|
2942
|
+
stores.set(defaultDir, {
|
|
2943
|
+
memoryDir: storage.dir,
|
|
2944
|
+
abstractionNodeStoreDir: config.abstractionNodeStoreDir
|
|
2945
|
+
});
|
|
2946
|
+
try {
|
|
2947
|
+
const catalog = this.deps.getNamespaceCatalog?.();
|
|
2948
|
+
if (catalog?.enabled) {
|
|
2949
|
+
const records = await catalog.listNamespaces({ discoveredBy: "write" });
|
|
2950
|
+
const catalogStores = /* @__PURE__ */ new Map();
|
|
2951
|
+
for (const record of records) {
|
|
2952
|
+
const storageDir = path4.resolve(record.storageDir);
|
|
2953
|
+
if (!stores.has(storageDir) && !catalogStores.has(storageDir)) {
|
|
2954
|
+
catalogStores.set(storageDir, { memoryDir: record.storageDir });
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
const candidates = [...catalogStores.entries()];
|
|
2958
|
+
if (candidates.length > 0) {
|
|
2959
|
+
const cursor = await this.readHarmonicCatalogCursor(defaultDir);
|
|
2960
|
+
const cursorIndex = cursor ? candidates.findIndex(([storageDir]) => storageDir === cursor) : -1;
|
|
2961
|
+
const startIndex = cursorIndex >= 0 ? cursorIndex : 0;
|
|
2962
|
+
const selectedCount = Math.min(
|
|
2963
|
+
candidates.length,
|
|
2964
|
+
MAX_HARMONIC_NAMESPACE_STORES - 1
|
|
2965
|
+
);
|
|
2966
|
+
for (let offset = 0; offset < selectedCount; offset += 1) {
|
|
2967
|
+
const index = (startIndex + offset) % candidates.length;
|
|
2968
|
+
const [storageDir, store] = candidates[index];
|
|
2969
|
+
stores.set(storageDir, store);
|
|
2970
|
+
}
|
|
2971
|
+
const nextIndex = (startIndex + selectedCount) % candidates.length;
|
|
2972
|
+
const nextStorageDir = candidates[nextIndex][0];
|
|
2973
|
+
try {
|
|
2974
|
+
await this.writeHarmonicCatalogCursor(defaultDir, nextStorageDir);
|
|
2975
|
+
} catch (error) {
|
|
2976
|
+
log.warn(
|
|
2977
|
+
`harmonic namespace catalog cursor write failed open: ${error instanceof Error ? error.message : String(error)}`
|
|
2978
|
+
);
|
|
2979
|
+
}
|
|
2980
|
+
if (selectedCount < candidates.length) {
|
|
2981
|
+
log.warn(
|
|
2982
|
+
`harmonic namespace catalog truncated at ${MAX_HARMONIC_NAMESPACE_STORES} stores; skipped ${candidates.length - selectedCount} store(s)`
|
|
2983
|
+
);
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
}
|
|
2987
|
+
} catch (error) {
|
|
2988
|
+
log.warn(
|
|
2989
|
+
`harmonic namespace catalog read failed open: ${error instanceof Error ? error.message : String(error)}`
|
|
2990
|
+
);
|
|
2991
|
+
}
|
|
2992
|
+
for (const store of stores.values()) {
|
|
2993
|
+
try {
|
|
2994
|
+
const removed = await pruneOrphanCueAnchors(store);
|
|
2995
|
+
if (removed > 0) {
|
|
2996
|
+
log.info(`harmonic anchor prune removed ${removed} orphan(s) from ${store.memoryDir}`);
|
|
2997
|
+
}
|
|
2998
|
+
} catch (error) {
|
|
2999
|
+
log.warn(
|
|
3000
|
+
`harmonic anchor prune failed open for ${store.memoryDir}: ${error instanceof Error ? error.message : String(error)}`
|
|
3001
|
+
);
|
|
3002
|
+
}
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
2871
3005
|
async run() {
|
|
2872
3006
|
const config = this.deps.config;
|
|
2873
3007
|
const storage = this.deps.getStorage();
|
|
@@ -2879,6 +3013,7 @@ var ConsolidationRunCoordinator = class {
|
|
|
2879
3013
|
if (this.deps.getAccessTrackingBuffer().size > 0) {
|
|
2880
3014
|
await this.deps.flushAccessTracking();
|
|
2881
3015
|
}
|
|
3016
|
+
await this.pruneHarmonicStores(storage);
|
|
2882
3017
|
let allMemories = await storage.readAllMemories();
|
|
2883
3018
|
if (allMemories.length < 5) {
|
|
2884
3019
|
return { memoriesProcessed: allMemories.length, merged, invalidated };
|
|
@@ -2898,10 +3033,35 @@ var ConsolidationRunCoordinator = class {
|
|
|
2898
3033
|
switch (item.action) {
|
|
2899
3034
|
case "INVALIDATE": {
|
|
2900
3035
|
const toInvalidate = resolveIndexingCapabilities(config).queryAwareIndexing ? memoryLookup?.get(item.existingId) ?? null : null;
|
|
3036
|
+
const propagationOld = allMemories.find(
|
|
3037
|
+
(memory) => memory.frontmatter.id === item.existingId
|
|
3038
|
+
);
|
|
2901
3039
|
if (await storage.invalidateMemory(item.existingId)) {
|
|
2902
3040
|
invalidated += 1;
|
|
2903
3041
|
memoryItemMutated = true;
|
|
2904
3042
|
await this.deps.embeddingFallback.removeFromIndex(item.existingId);
|
|
3043
|
+
if (propagationOld) {
|
|
3044
|
+
try {
|
|
3045
|
+
await propagateInvalidation(
|
|
3046
|
+
{
|
|
3047
|
+
storage,
|
|
3048
|
+
extraction: this.deps.getExtraction(),
|
|
3049
|
+
config
|
|
3050
|
+
},
|
|
3051
|
+
{
|
|
3052
|
+
oldMemory: propagationOld,
|
|
3053
|
+
replacementId: null,
|
|
3054
|
+
replacementContent: null,
|
|
3055
|
+
cause: "consolidation_invalidate",
|
|
3056
|
+
namespaceScope: config.defaultNamespace
|
|
3057
|
+
}
|
|
3058
|
+
);
|
|
3059
|
+
} catch (propagationErr) {
|
|
3060
|
+
log.warn(
|
|
3061
|
+
`consolidation dependency propagation failed for ${item.existingId}: ${propagationErr}`
|
|
3062
|
+
);
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
2905
3065
|
if (toInvalidate?.path && toInvalidate.frontmatter?.created) {
|
|
2906
3066
|
itemsDeindexBatch.push({
|
|
2907
3067
|
path: toInvalidate.path,
|
|
@@ -2938,10 +3098,35 @@ var ConsolidationRunCoordinator = class {
|
|
|
2938
3098
|
memoryItemMutated = true;
|
|
2939
3099
|
await this.deps.indexPersistedMemory(storage, item.existingId);
|
|
2940
3100
|
const toMergeInvalidate = resolveIndexingCapabilities(config).queryAwareIndexing ? memoryLookup?.get(item.mergeWith) ?? null : null;
|
|
3101
|
+
const propagationOld = allMemories.find(
|
|
3102
|
+
(memory) => memory.frontmatter.id === item.mergeWith
|
|
3103
|
+
);
|
|
2941
3104
|
if (await storage.invalidateMemory(item.mergeWith)) {
|
|
2942
3105
|
invalidated += 1;
|
|
2943
3106
|
merged += 1;
|
|
2944
3107
|
await this.deps.embeddingFallback.removeFromIndex(item.mergeWith);
|
|
3108
|
+
if (propagationOld) {
|
|
3109
|
+
try {
|
|
3110
|
+
await propagateInvalidation(
|
|
3111
|
+
{
|
|
3112
|
+
storage,
|
|
3113
|
+
extraction: this.deps.getExtraction(),
|
|
3114
|
+
config
|
|
3115
|
+
},
|
|
3116
|
+
{
|
|
3117
|
+
oldMemory: propagationOld,
|
|
3118
|
+
replacementId: item.existingId,
|
|
3119
|
+
replacementContent: item.updatedContent,
|
|
3120
|
+
cause: "consolidation_merge",
|
|
3121
|
+
namespaceScope: config.defaultNamespace
|
|
3122
|
+
}
|
|
3123
|
+
);
|
|
3124
|
+
} catch (propagationErr) {
|
|
3125
|
+
log.warn(
|
|
3126
|
+
`consolidation dependency propagation failed for ${item.mergeWith}: ${propagationErr}`
|
|
3127
|
+
);
|
|
3128
|
+
}
|
|
3129
|
+
}
|
|
2945
3130
|
if (toMergeInvalidate?.path && toMergeInvalidate.frontmatter?.created) {
|
|
2946
3131
|
itemsDeindexBatch.push({
|
|
2947
3132
|
path: toMergeInvalidate.path,
|
|
@@ -3452,6 +3637,59 @@ async function flushDeferredFactHashOnFailure(saveContentHashIndexes, deferred)
|
|
|
3452
3637
|
);
|
|
3453
3638
|
}
|
|
3454
3639
|
|
|
3640
|
+
// src/orchestration/harmonic-construction-persist.ts
|
|
3641
|
+
function filterHarmonicEntityMentions(facts, entityMentions) {
|
|
3642
|
+
const identitiesBySegment = /* @__PURE__ */ new Map();
|
|
3643
|
+
for (const entity of entityMentions) {
|
|
3644
|
+
const segment = harmonicEntitySegment(entity.name);
|
|
3645
|
+
const identities = identitiesBySegment.get(segment) ?? /* @__PURE__ */ new Set();
|
|
3646
|
+
identities.add(normalizedHarmonicEntityIdentity(entity.name));
|
|
3647
|
+
identitiesBySegment.set(segment, identities);
|
|
3648
|
+
}
|
|
3649
|
+
return entityMentions.flatMap((entity) => {
|
|
3650
|
+
const allowSegmentFallback = identitiesBySegment.get(harmonicEntitySegment(entity.name))?.size === 1;
|
|
3651
|
+
const activeFacts = facts.filter(
|
|
3652
|
+
(fact) => typeof fact.entityRef === "string" && harmonicEntityReferenceMatches(fact.entityRef, entity.name, allowSegmentFallback)
|
|
3653
|
+
);
|
|
3654
|
+
return activeFacts.length > 0 ? [{ ...entity, facts: activeFacts.map((fact) => fact.content) }] : [];
|
|
3655
|
+
});
|
|
3656
|
+
}
|
|
3657
|
+
async function persistConstructedHarmonicRecords(options) {
|
|
3658
|
+
const sessionKey = options.sessionKey?.trim();
|
|
3659
|
+
if (!sessionKey) {
|
|
3660
|
+
log.warn("harmonic construction skipped: extraction session key is missing");
|
|
3661
|
+
return;
|
|
3662
|
+
}
|
|
3663
|
+
const recordedAt = options.validAt && Number.isFinite(Date.parse(options.validAt)) ? new Date(options.validAt).toISOString() : (/* @__PURE__ */ new Date()).toISOString();
|
|
3664
|
+
const entries = [...options.entries];
|
|
3665
|
+
const sharedEpisodeTitle = entries.length === 1 ? options.episodeTitle : void 0;
|
|
3666
|
+
for (const entry of entries) {
|
|
3667
|
+
try {
|
|
3668
|
+
const records = deriveHarmonicRecords({
|
|
3669
|
+
sessionKey,
|
|
3670
|
+
recordedAt,
|
|
3671
|
+
episodeTitle: sharedEpisodeTitle,
|
|
3672
|
+
persistedFacts: entry.facts,
|
|
3673
|
+
entityMentions: filterHarmonicEntityMentions(entry.facts, options.entityMentions).map((entity) => ({
|
|
3674
|
+
name: entity.name,
|
|
3675
|
+
type: entity.type,
|
|
3676
|
+
facts: entity.facts
|
|
3677
|
+
}))
|
|
3678
|
+
});
|
|
3679
|
+
await persistHarmonicRecords({
|
|
3680
|
+
memoryDir: entry.storage.dir,
|
|
3681
|
+
abstractionNodeStoreDir: entry.storage.dir === options.baseStorageDir ? options.abstractionNodeStoreDir : void 0,
|
|
3682
|
+
nodes: records.nodes,
|
|
3683
|
+
anchors: options.anchorsEnabled ? records.anchors : []
|
|
3684
|
+
});
|
|
3685
|
+
} catch (error) {
|
|
3686
|
+
log.warn(
|
|
3687
|
+
`harmonic construction failed open for namespace ${entry.storage.dir}: ${error instanceof Error ? error.message : String(error)}`
|
|
3688
|
+
);
|
|
3689
|
+
}
|
|
3690
|
+
}
|
|
3691
|
+
}
|
|
3692
|
+
|
|
3455
3693
|
// src/orchestration/extraction-persist.ts
|
|
3456
3694
|
var ExtractionPersistCoordinator = class {
|
|
3457
3695
|
constructor(deps) {
|
|
@@ -3465,6 +3703,12 @@ var ExtractionPersistCoordinator = class {
|
|
|
3465
3703
|
const citationEnabled = resolvePipelineProcessingCapabilities(this.deps.config).inlineSourceAttribution === true;
|
|
3466
3704
|
const citationTemplate = this.deps.config.inlineSourceAttributionFormat;
|
|
3467
3705
|
const factDedupEnabled = resolveRecallAuxiliaryCapabilities(this.deps.config).factDeduplication;
|
|
3706
|
+
const harmonicConstructionEnabled = resolveCapabilities(this.deps.config).harmonicRetrieval;
|
|
3707
|
+
const harmonicAnchorsEnabled = resolveConsolidationCapabilities(this.deps.config).abstractionAnchors;
|
|
3708
|
+
const harmonicBaseNamespace = baseNamespace ?? this.deps.storageDirNamespace(storage.dir);
|
|
3709
|
+
const harmonicFactsByStorage = /* @__PURE__ */ new Map();
|
|
3710
|
+
const harmonicSourceInsertedAtBase = Date.now();
|
|
3711
|
+
let harmonicSourceOrder = 0;
|
|
3468
3712
|
const normalizeStoredHashSource = (raw) => ContentHashIndex.normalizeContent(
|
|
3469
3713
|
sanitizeMemoryContent(
|
|
3470
3714
|
citationEnabled && hasCitationForTemplate(raw, citationTemplate) ? stripCitationForTemplate(raw, citationTemplate) : raw
|
|
@@ -3502,6 +3746,19 @@ var ExtractionPersistCoordinator = class {
|
|
|
3502
3746
|
} else {
|
|
3503
3747
|
persistedIdsByStorage.set(key, { storage: targetStorage, ids: [id] });
|
|
3504
3748
|
}
|
|
3749
|
+
if (harmonicConstructionEnabled && options.harmonicFact && !options.pendingReview) {
|
|
3750
|
+
const harmonicEntry = harmonicFactsByStorage.get(key) ?? {
|
|
3751
|
+
storage: targetStorage,
|
|
3752
|
+
facts: []
|
|
3753
|
+
};
|
|
3754
|
+
harmonicEntry.facts.push({
|
|
3755
|
+
...options.harmonicFact,
|
|
3756
|
+
memoryId: id,
|
|
3757
|
+
insertedAt: new Date(harmonicSourceInsertedAtBase + harmonicSourceOrder).toISOString()
|
|
3758
|
+
});
|
|
3759
|
+
harmonicSourceOrder++;
|
|
3760
|
+
harmonicFactsByStorage.set(key, harmonicEntry);
|
|
3761
|
+
}
|
|
3505
3762
|
if (options.category && !memoryPathById.has(id)) {
|
|
3506
3763
|
const relPath = resolvePersistedMemoryRelativePath({ memoryId: id, pathById: memoryPathById, category: options.category });
|
|
3507
3764
|
memoryPathById.set(id, relPath);
|
|
@@ -3646,7 +3903,10 @@ var ExtractionPersistCoordinator = class {
|
|
|
3646
3903
|
entityRef: targetPromotionEnvelope.entityRef,
|
|
3647
3904
|
structuredAttributes: { ...targetSurvivingAttrs },
|
|
3648
3905
|
createdAt: supersessionOrderingAt(options.validAt),
|
|
3649
|
-
enabled: !(options.eventTimeSource === "extracted" && !options.validAt)
|
|
3906
|
+
enabled: !(options.eventTimeSource === "extracted" && !options.validAt),
|
|
3907
|
+
extraction: this.deps.getExtraction(),
|
|
3908
|
+
config: this.config,
|
|
3909
|
+
namespaceScope: this.deps.storageDirNamespace(targetStorage.dir)
|
|
3650
3910
|
});
|
|
3651
3911
|
} catch (profileSupersessionErr) {
|
|
3652
3912
|
log.warn(
|
|
@@ -3655,7 +3915,11 @@ var ExtractionPersistCoordinator = class {
|
|
|
3655
3915
|
}
|
|
3656
3916
|
}
|
|
3657
3917
|
if (!targetPromotion.tombstoneBlocked) {
|
|
3658
|
-
trackPersistedId(targetStorage, promotedId, {
|
|
3918
|
+
trackPersistedId(targetStorage, promotedId, {
|
|
3919
|
+
includeReturnedIds: false,
|
|
3920
|
+
category: options.category,
|
|
3921
|
+
harmonicFact: options.harmonicFact
|
|
3922
|
+
});
|
|
3659
3923
|
await this.deps.indexPersistedMemory(targetStorage, promotedId);
|
|
3660
3924
|
trackBehaviorSignals(
|
|
3661
3925
|
targetStorage,
|
|
@@ -3783,7 +4047,10 @@ var ExtractionPersistCoordinator = class {
|
|
|
3783
4047
|
structuredAttributes: { ...sharedSurvivingAttrs },
|
|
3784
4048
|
createdAt: supersessionOrderingAt(options.validAt),
|
|
3785
4049
|
enabled: !(options.eventTimeSource === "extracted" && !options.validAt),
|
|
3786
|
-
useCallerTimestamp: true
|
|
4050
|
+
useCallerTimestamp: true,
|
|
4051
|
+
extraction: this.deps.getExtraction(),
|
|
4052
|
+
config: this.config,
|
|
4053
|
+
namespaceScope: this.deps.storageDirNamespace(sharedStorage.dir)
|
|
3787
4054
|
});
|
|
3788
4055
|
if (hashDedupSupersession.supersededIds.length > 0) {
|
|
3789
4056
|
}
|
|
@@ -3853,7 +4120,10 @@ var ExtractionPersistCoordinator = class {
|
|
|
3853
4120
|
entityRef: sharedPromotionEnvelope.entityRef,
|
|
3854
4121
|
structuredAttributes: { ...sharedSurvivingAttrs },
|
|
3855
4122
|
createdAt: supersessionOrderingAt(options.validAt),
|
|
3856
|
-
enabled: !(options.eventTimeSource === "extracted" && !options.validAt)
|
|
4123
|
+
enabled: !(options.eventTimeSource === "extracted" && !options.validAt),
|
|
4124
|
+
extraction: this.deps.getExtraction(),
|
|
4125
|
+
config: this.config,
|
|
4126
|
+
namespaceScope: this.deps.storageDirNamespace(sharedStorage.dir)
|
|
3857
4127
|
});
|
|
3858
4128
|
} catch (sharedSupersessionErr) {
|
|
3859
4129
|
log.warn(
|
|
@@ -3864,7 +4134,8 @@ var ExtractionPersistCoordinator = class {
|
|
|
3864
4134
|
if (!sharedPromotion.tombstoneBlocked) {
|
|
3865
4135
|
trackPersistedId(sharedStorage, promotedId, {
|
|
3866
4136
|
includeReturnedIds: false,
|
|
3867
|
-
category: options.category
|
|
4137
|
+
category: options.category,
|
|
4138
|
+
harmonicFact: options.harmonicFact
|
|
3868
4139
|
});
|
|
3869
4140
|
await this.deps.indexPersistedMemory(sharedStorage, promotedId);
|
|
3870
4141
|
trackBehaviorSignals(
|
|
@@ -4265,6 +4536,14 @@ var ExtractionPersistCoordinator = class {
|
|
|
4265
4536
|
);
|
|
4266
4537
|
}
|
|
4267
4538
|
}
|
|
4539
|
+
const harmonicFact = {
|
|
4540
|
+
category: writeCategory,
|
|
4541
|
+
content: fact.content,
|
|
4542
|
+
tags: fact.tags,
|
|
4543
|
+
cueAnchors: fact.cueAnchors,
|
|
4544
|
+
entityRef: fact.entityRef,
|
|
4545
|
+
validAt: biTemporal?.validFrom ?? sourceContext?.validAt
|
|
4546
|
+
};
|
|
4268
4547
|
try {
|
|
4269
4548
|
const redactionRules = await redactionRulesFor(sourceStorageDir, targetStorage.dir);
|
|
4270
4549
|
const redactionCandidate = fact.content + (fact.structuredAttributes ? " " + JSON.stringify(fact.structuredAttributes) : "") + (fact.procedureSteps ? " " + fact.procedureSteps.map((s) => `${s.intent} ${s.expectedOutcome ?? ""} ${s.toolCall ? `${s.toolCall.kind} ${s.toolCall.signature}` : ""}`.trim()).join(" ") : "");
|
|
@@ -4640,7 +4919,8 @@ var ExtractionPersistCoordinator = class {
|
|
|
4640
4919
|
);
|
|
4641
4920
|
trackPersistedId(targetStorage, parentId, {
|
|
4642
4921
|
pendingReview: postWriteGuard2,
|
|
4643
|
-
category: writeCategory
|
|
4922
|
+
category: writeCategory,
|
|
4923
|
+
harmonicFact
|
|
4644
4924
|
});
|
|
4645
4925
|
if (!postWriteGuard2 && threadEpisodeIdsForGraph && !threadEpisodeIdsForGraph.includes(parentId)) {
|
|
4646
4926
|
threadEpisodeIdsForGraph.push(parentId);
|
|
@@ -4659,7 +4939,10 @@ var ExtractionPersistCoordinator = class {
|
|
|
4659
4939
|
// #1578 r3: an extracted end-only bound (validFrom absent) is
|
|
4660
4940
|
// historical, not a new authoritative state — never let it
|
|
4661
4941
|
// supersede a later active fact (codex P1 on :15534).
|
|
4662
|
-
enabled: lifecycleCaps.temporalSupersession && !(biTemporal && !biTemporal.validFrom)
|
|
4942
|
+
enabled: lifecycleCaps.temporalSupersession && !(biTemporal && !biTemporal.validFrom),
|
|
4943
|
+
extraction: this.deps.getExtraction(),
|
|
4944
|
+
config: this.config,
|
|
4945
|
+
namespaceScope: this.deps.storageDirNamespace(targetStorage.dir)
|
|
4663
4946
|
});
|
|
4664
4947
|
} catch (err) {
|
|
4665
4948
|
log.warn(`temporal-supersession (chunked): unexpected error: ${err}`);
|
|
@@ -4689,7 +4972,8 @@ var ExtractionPersistCoordinator = class {
|
|
|
4689
4972
|
...extractionSourceConnector ? { sourceConnector: extractionSourceConnector } : {},
|
|
4690
4973
|
...fact.procedureSteps && fact.procedureSteps.length ? { procedureSteps: fact.procedureSteps } : {},
|
|
4691
4974
|
...fact.sources && fact.sources.length > 0 ? { sources: fact.sources } : {},
|
|
4692
|
-
...fact.provenance ? { provenance: fact.provenance } : {}
|
|
4975
|
+
...fact.provenance ? { provenance: fact.provenance } : {},
|
|
4976
|
+
harmonicFact
|
|
4693
4977
|
});
|
|
4694
4978
|
try {
|
|
4695
4979
|
const canonicalChunkedContent = citationEnabled && hasCitationForTemplate(fact.content, citationTemplate) ? stripCitationForTemplate(fact.content, citationTemplate) : fact.content;
|
|
@@ -4845,7 +5129,10 @@ var ExtractionPersistCoordinator = class {
|
|
|
4845
5129
|
entityRef: factWriteEnvelope.entityRef,
|
|
4846
5130
|
structuredAttributes: factWriteEnvelope.rawStructuredAttributes ? { ...factWriteEnvelope.rawStructuredAttributes } : void 0,
|
|
4847
5131
|
createdAt: supersessionOrderingAt(biTemporal?.validFrom ?? sourceContext?.validAt),
|
|
4848
|
-
enabled: lifecycleCaps.temporalSupersession && !(biTemporal && !biTemporal.validFrom)
|
|
5132
|
+
enabled: lifecycleCaps.temporalSupersession && !(biTemporal && !biTemporal.validFrom),
|
|
5133
|
+
extraction: this.deps.getExtraction(),
|
|
5134
|
+
config: this.config,
|
|
5135
|
+
namespaceScope: this.deps.storageDirNamespace(targetStorage.dir)
|
|
4849
5136
|
});
|
|
4850
5137
|
} catch (err) {
|
|
4851
5138
|
log.warn(`temporal-supersession: unexpected error: ${err}`);
|
|
@@ -4865,7 +5152,8 @@ var ExtractionPersistCoordinator = class {
|
|
|
4865
5152
|
);
|
|
4866
5153
|
trackPersistedId(targetStorage, memoryId, {
|
|
4867
5154
|
pendingReview: postWriteGuard,
|
|
4868
|
-
category: writeCategory
|
|
5155
|
+
category: writeCategory,
|
|
5156
|
+
harmonicFact
|
|
4869
5157
|
});
|
|
4870
5158
|
if (!postWriteGuard && threadEpisodeIdsForGraph && !threadEpisodeIdsForGraph.includes(memoryId)) {
|
|
4871
5159
|
threadEpisodeIdsForGraph.push(memoryId);
|
|
@@ -4897,7 +5185,8 @@ var ExtractionPersistCoordinator = class {
|
|
|
4897
5185
|
...extractionSourceConnector ? { sourceConnector: extractionSourceConnector } : {},
|
|
4898
5186
|
...fact.procedureSteps && fact.procedureSteps.length ? { procedureSteps: fact.procedureSteps } : {},
|
|
4899
5187
|
...fact.sources && fact.sources.length > 0 ? { sources: fact.sources } : {},
|
|
4900
|
-
...fact.provenance ? { provenance: fact.provenance } : {}
|
|
5188
|
+
...fact.provenance ? { provenance: fact.provenance } : {},
|
|
5189
|
+
harmonicFact
|
|
4901
5190
|
});
|
|
4902
5191
|
if (graphCaps.multiGraphMemory && !postWriteGuard) {
|
|
4903
5192
|
try {
|
|
@@ -5078,6 +5367,18 @@ var ExtractionPersistCoordinator = class {
|
|
|
5078
5367
|
log.info(
|
|
5079
5368
|
`persisted: ${facts.length - dedupedCount - importanceGatedCount - judgeGatedCount - redactionGatedCount} facts${dedupSuffix}${gatedSuffix}${judgeSuffix}${redactionSuffix}, ${entities.length} entities, ${questions.length} questions, ${profileUpdates.length} profile updates`
|
|
5080
5369
|
);
|
|
5370
|
+
if (harmonicConstructionEnabled && harmonicFactsByStorage.size > 0) {
|
|
5371
|
+
await persistConstructedHarmonicRecords({
|
|
5372
|
+
entries: harmonicFactsByStorage.values(),
|
|
5373
|
+
baseStorageDir: storage.dir,
|
|
5374
|
+
abstractionNodeStoreDir: !scopeProfileWritePlan && harmonicBaseNamespace === this.deps.config.defaultNamespace ? this.deps.config.abstractionNodeStoreDir : void 0,
|
|
5375
|
+
sessionKey: sourceContext?.sessionKey,
|
|
5376
|
+
validAt: sourceContext?.validAt,
|
|
5377
|
+
episodeTitle: result.episodeTitle,
|
|
5378
|
+
anchorsEnabled: harmonicAnchorsEnabled,
|
|
5379
|
+
entityMentions: entities
|
|
5380
|
+
});
|
|
5381
|
+
}
|
|
5081
5382
|
void (async () => {
|
|
5082
5383
|
if (persistedIdsByStorage.size === 0) {
|
|
5083
5384
|
await this.deps.updateTemporalTagIndexes(storage, []);
|
|
@@ -6657,6 +6958,7 @@ ${rows.join("\n")}
|
|
|
6657
6958
|
maxResults,
|
|
6658
6959
|
sessionKey,
|
|
6659
6960
|
anchorsEnabled: resolveConsolidationCapabilities(this.deps.config).abstractionAnchors,
|
|
6961
|
+
temporalExpiredInInjection: this.deps.config.temporalExpiredInInjection,
|
|
6660
6962
|
abortSignal: harmonicRetrievalAbort.signal
|
|
6661
6963
|
})
|
|
6662
6964
|
)
|
|
@@ -12214,7 +12516,7 @@ var OrchestratorInitCoordinator = class {
|
|
|
12214
12516
|
if (signal.aborted) return;
|
|
12215
12517
|
if (lifecycleCaps.lifecyclePolicy && resolveQmdCapabilities(this.deps.config).qmdTierMigration) {
|
|
12216
12518
|
try {
|
|
12217
|
-
const { runFirstStartMigration } = await import("./first-start-migration-
|
|
12519
|
+
const { runFirstStartMigration } = await import("./first-start-migration-626C5554.js");
|
|
12218
12520
|
const result = await runFirstStartMigration({
|
|
12219
12521
|
storage: this.deps.storage,
|
|
12220
12522
|
config: this.deps.config,
|
|
@@ -12237,7 +12539,7 @@ var OrchestratorInitCoordinator = class {
|
|
|
12237
12539
|
if (signal.aborted) return;
|
|
12238
12540
|
if (!this.deps.wearablesAutoSyncHandle && this.deps.config.wearables.enabled && this.deps.config.wearables.autoSyncEnabled && Object.values(this.deps.config.wearables.sources).some((source) => source.enabled)) {
|
|
12239
12541
|
try {
|
|
12240
|
-
const { startWearablesAutoSync } = await import("./auto-sync-
|
|
12542
|
+
const { startWearablesAutoSync } = await import("./auto-sync-QFQGOEO2.js");
|
|
12241
12543
|
if (signal.aborted) return;
|
|
12242
12544
|
this.deps.wearablesAutoSyncHandle = startWearablesAutoSync(
|
|
12243
12545
|
{
|
|
@@ -16105,6 +16407,7 @@ var Orchestrator = class {
|
|
|
16105
16407
|
config: this.config,
|
|
16106
16408
|
getStorage: () => this.storage,
|
|
16107
16409
|
getStorageRouter: () => this.storageRouter,
|
|
16410
|
+
getNamespaceCatalog: () => this.namespaceCatalog,
|
|
16108
16411
|
getExtraction: () => this.extraction,
|
|
16109
16412
|
embeddingFallback: this.embeddingFallback,
|
|
16110
16413
|
tmtBuilder: this.tmtBuilder,
|
|
@@ -16137,6 +16440,7 @@ var Orchestrator = class {
|
|
|
16137
16440
|
getStorageRouter: () => this.storageRouter,
|
|
16138
16441
|
getThreading: () => this.threading,
|
|
16139
16442
|
getLocalLlm: () => this.localLlm,
|
|
16443
|
+
getExtraction: () => this.extraction,
|
|
16140
16444
|
getQmd: () => this.qmd,
|
|
16141
16445
|
getJudgeVerdictCache: () => this.judgeVerdictCache,
|
|
16142
16446
|
getJudgeDeferCounts: () => this.judgeDeferCounts,
|
|
@@ -24147,4 +24451,4 @@ export {
|
|
|
24147
24451
|
blendGraphExpandedRecallScore,
|
|
24148
24452
|
Orchestrator
|
|
24149
24453
|
};
|
|
24150
|
-
//# sourceMappingURL=chunk-
|
|
24454
|
+
//# sourceMappingURL=chunk-RBPH3GZV.js.map
|