@remnic/core 9.48.1 → 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 +11 -10
- package/dist/access-admin-ops-surface.js +46 -45
- package/dist/access-audit.js +2 -2
- package/dist/access-authorization-probe.d.ts +11 -10
- package/dist/access-authorization-probe.js +47 -46
- package/dist/access-boundary.d.ts +11 -10
- package/dist/access-boundary.js +46 -45
- package/dist/access-cli.js +127 -121
- 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 +11 -10
- package/dist/access-extraction-force-flush.js +46 -45
- package/dist/access-health-types.d.ts +1 -1
- package/dist/access-http-lcm-compaction.d.ts +11 -10
- package/dist/access-http-lifecycle-flush.d.ts +11 -10
- package/dist/access-http-offline-stream.d.ts +11 -10
- package/dist/access-http-query.js +46 -45
- package/dist/access-http.d.ts +11 -10
- package/dist/access-http.js +57 -56
- package/dist/access-identity-continuity-surface.d.ts +9 -8
- package/dist/access-identity-continuity-surface.js +46 -45
- package/dist/access-lcm-surface.d.ts +11 -10
- package/dist/access-lcm-surface.js +46 -45
- package/dist/access-mcp.d.ts +11 -10
- package/dist/access-mcp.js +52 -51
- 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 +46 -45
- package/dist/access-observe-write-surface.d.ts +11 -10
- package/dist/access-observe-write-surface.js +46 -45
- package/dist/access-offline-manifest.d.ts +9 -8
- package/dist/access-offline-manifest.js +3 -3
- package/dist/access-operations-batch.js +48 -47
- package/dist/access-operations.d.ts +14 -13
- package/dist/access-operations.js +51 -50
- package/dist/access-recall-concurrency.d.ts +11 -10
- package/dist/access-recall-concurrency.js +46 -45
- package/dist/access-recall-response.d.ts +11 -10
- package/dist/access-recall-response.js +46 -45
- package/dist/access-recall-surface.d.ts +11 -10
- package/dist/access-recall-surface.js +46 -45
- package/dist/access-schema.d.ts +105 -105
- package/dist/access-schema.js +3 -3
- package/dist/{access-service-andNjwfD.d.ts → access-service--_3T_v23.d.ts} +7 -7
- package/dist/access-service-helpers.d.ts +11 -10
- package/dist/access-service.d.ts +11 -10
- package/dist/access-service.js +46 -45
- package/dist/access-surface-catalog.d.ts +11 -10
- package/dist/access-wearables-meetings-surface.d.ts +4 -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 +9 -8
- package/dist/briefing.d.ts +3 -2
- package/dist/briefing.js +15 -14
- package/dist/buffer-surprise-report.d.ts +1 -1
- package/dist/buffer-turn-helpers.d.ts +1 -1
- package/dist/buffer.d.ts +3 -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-merge-Q6AR3XL7.js → capsule-merge-KXTRZ23Z.js} +6 -6
- 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 +19 -18
- package/dist/causal-consolidation.js.map +1 -1
- 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-PLCZD3LG.js → chunk-24BKGKGO.js} +91 -45
- package/dist/chunk-24BKGKGO.js.map +1 -0
- package/dist/{chunk-ICP53SKG.js → chunk-2HIJHXB3.js} +2 -2
- package/dist/{chunk-LZGCJSQR.js → chunk-3LD4N2TF.js} +151 -37
- package/dist/chunk-3LD4N2TF.js.map +1 -0
- package/dist/{chunk-FJ2ND6CZ.js → chunk-47J4EDGR.js} +2 -2
- package/dist/{chunk-S55OAS5P.js → chunk-4EABKPZS.js} +4 -4
- package/dist/{chunk-GD7UPIBG.js → chunk-4JWJMRPJ.js} +2 -2
- package/dist/{chunk-3NDN5P55.js → chunk-4S3ECH3U.js} +2 -2
- package/dist/chunk-5GINB5LC.js +13 -0
- package/dist/chunk-5GINB5LC.js.map +1 -0
- package/dist/{chunk-CGASUJVP.js → chunk-5V6IXHPI.js} +4 -4
- package/dist/{chunk-A4JMGKCD.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-53AJILXF.js → chunk-6XGEBQ3R.js} +4 -4
- package/dist/{chunk-IP3DHDU2.js → chunk-7BLWBSRL.js} +3 -3
- package/dist/{chunk-A2TFK5PG.js → chunk-7NDM2PNK.js} +3 -3
- package/dist/{chunk-HRMEYQRO.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-HIDEBEAN.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-EZNXW27Q.js → chunk-ELQCS47S.js} +4 -4
- package/dist/{chunk-HAYSYUAB.js → chunk-EURCX6PS.js} +2 -2
- package/dist/{chunk-RSPSHRZA.js → chunk-FV7YQTN3.js} +2 -2
- package/dist/chunk-G73MCJKL.js +20 -0
- package/dist/chunk-G73MCJKL.js.map +1 -0
- package/dist/{chunk-GWHPQOUC.js → chunk-GGBSF2X7.js} +2 -2
- package/dist/{chunk-SYUBB3WM.js → chunk-GKEYXXKX.js} +2 -2
- package/dist/{chunk-PELT6ADC.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-KQAFEZQX.js → chunk-IPLYGWQF.js} +5 -5
- package/dist/{chunk-NZBZ7IS2.js → chunk-JDCQK3C5.js} +2 -2
- package/dist/{chunk-ANCC3JJH.js → chunk-JI62YGPI.js} +2 -2
- package/dist/{chunk-LULR4IUW.js → chunk-KATEWTQJ.js} +2 -2
- package/dist/{chunk-IJ7HK452.js → chunk-KMAP7SNQ.js} +2 -2
- package/dist/{chunk-PRVJH7CY.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-FMCHFSZF.js → chunk-LQKXVQZR.js} +12 -12
- package/dist/{chunk-M4DMO67I.js → chunk-LTOAJXZB.js} +4 -4
- package/dist/{chunk-NIS256NW.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-G2RBWVFQ.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-D5NGH2EW.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-2EJNXE53.js → chunk-PLCHU56K.js} +3 -3
- package/dist/{chunk-45OTV7FZ.js → chunk-PWIMF7LP.js} +38 -38
- package/dist/{chunk-7YKVM5H3.js → chunk-PWLB4TRK.js} +3 -3
- package/dist/{chunk-RVYVMQK4.js → chunk-QSYL5CXK.js} +3 -3
- package/dist/{chunk-NXUJRXSF.js → chunk-QWLW3VQH.js} +2 -2
- package/dist/chunk-RBOJCG4T.js +77 -0
- package/dist/chunk-RBOJCG4T.js.map +1 -0
- package/dist/{chunk-2P3GQVM2.js → chunk-RBPH3GZV.js} +418 -105
- 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-5L7PTX2Q.js → chunk-S2SJEOTM.js} +2 -2
- package/dist/{chunk-52I3YZZ6.js → chunk-S75UQ3T3.js} +3 -3
- package/dist/{chunk-LXOM6IQU.js → chunk-SEF4IOFE.js} +2 -2
- package/dist/{chunk-DUEEQCTT.js → chunk-SHYIMIX5.js} +2 -2
- package/dist/{chunk-KSGEGHYA.js → chunk-T35UJI5R.js} +78 -74
- package/dist/chunk-T35UJI5R.js.map +1 -0
- package/dist/{chunk-7K5Q6COX.js → chunk-TVVEYCNW.js} +4 -4
- package/dist/{chunk-3JUYWPFJ.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-WOEVJKKQ.js → chunk-WPZX7MEA.js} +4 -4
- package/dist/{chunk-ZRWB5D4H.js → chunk-WT6UL3UA.js} +2 -2
- package/dist/{chunk-MC6XO7T4.js → chunk-YLBE6PLR.js} +2 -2
- package/dist/{chunk-GF22HWS2.js → chunk-Z54EM5YZ.js} +4 -4
- package/dist/{chunk-GVX3NAUU.js → chunk-ZDAYWJV6.js} +2 -2
- package/dist/{chunk-4WBGZYZZ.js → chunk-ZJIFYUJI.js} +7 -7
- package/dist/chunk-ZJIFYUJI.js.map +1 -0
- package/dist/{chunk-JYPO7L3G.js → chunk-ZN4EYMKJ.js} +2 -2
- package/dist/{cli-p_WmVo2h.d.ts → cli-BLNmNEMT.d.ts} +16 -14
- package/dist/cli.d.ts +14 -13
- package/dist/cli.js +90 -87
- 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 +3 -2
- package/dist/compounding/engine.js +16 -15
- 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 +15 -14
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.js +15 -14
- package/dist/consolidation-provenance-check.d.ts +3 -2
- package/dist/consolidation-provenance-check.js +6 -6
- package/dist/consolidation-undo.d.ts +3 -2
- package/dist/consolidation-undo.js +5 -5
- package/dist/contradiction/index.d.ts +3 -2
- package/dist/contradiction/index.js +3 -3
- package/dist/converge-config.d.ts +1 -1
- package/dist/convergence-refresh.d.ts +3 -2
- package/dist/convergence-refresh.js +18 -17
- 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-read-cancellation.d.ts +38 -0
- package/dist/corpus-read-cancellation.js +9 -0
- package/dist/corpus-read-cancellation.js.map +1 -0
- package/dist/corpus-watermark.d.ts +1 -1
- package/dist/corpus-watermark.js +21 -20
- package/dist/cue-anchors.d.ts +19 -1
- package/dist/cue-anchors.js +10 -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 +3 -2
- package/dist/entity-retrieval.js +15 -14
- package/dist/entity-schema.d.ts +1 -1
- package/dist/evals.js +2 -2
- package/dist/explicit-capture.d.ts +9 -8
- package/dist/explicit-capture.js +6 -6
- package/dist/external-wiki-access.d.ts +11 -10
- package/dist/external-wiki-access.js +47 -46
- 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 +11 -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 +24 -21
- 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 +47 -3
- package/dist/in-flight-reads.js +5 -3
- package/dist/index.d.ts +699 -696
- package/dist/index.js +197 -150
- 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 +7 -7
- 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 +15 -14
- 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 +3 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +16 -15
- package/dist/maintenance/rebuild-memory-projection.d.ts +3 -2
- package/dist/maintenance/rebuild-memory-projection.js +17 -16
- package/dist/maintenance/rebuild-observations.js +3 -3
- package/dist/{maintenance-BfcuwfJS.d.ts → maintenance-DKbKZi3u.d.ts} +3 -3
- package/dist/mcp-memory-inspector-app.d.ts +11 -10
- package/dist/memory-action-policy.d.ts +1 -1
- package/dist/memory-cache.d.ts +1 -1
- package/dist/memory-corpus-version.js +2 -2
- 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 +3 -2
- package/dist/models-json.d.ts +1 -1
- package/dist/namespaces/migrate.d.ts +4 -3
- package/dist/namespaces/migrate.js +20 -19
- package/dist/namespaces/principal.d.ts +1 -1
- package/dist/namespaces/search.d.ts +1 -1
- package/dist/namespaces/search.js +4 -4
- package/dist/namespaces/storage.d.ts +4 -3
- package/dist/namespaces/storage.js +15 -14
- 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 +22 -21
- package/dist/operator-doctor-replica.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +4 -3
- package/dist/operator-toolkit.js +31 -29
- package/dist/orchestration/compression-guideline-coordinator.d.ts +3 -2
- package/dist/orchestration/maintenance.d.ts +5 -4
- package/dist/orchestration/maintenance.js +21 -20
- package/dist/{orchestrator-B7nLo4z1.d.ts → orchestrator-BRwD7ceU.d.ts} +7 -7
- package/dist/orchestrator.d.ts +9 -8
- package/dist/orchestrator.js +127 -121
- package/dist/page-versioning.js +5 -5
- 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 +3 -3
- package/dist/search/index.d.ts +1 -1
- package/dist/search/index.js +3 -3
- package/dist/search/lancedb-backend.d.ts +1 -1
- package/dist/search/meilisearch-backend.d.ts +1 -1
- package/dist/search/noop-backend.d.ts +1 -1
- package/dist/search/orama-backend.d.ts +1 -1
- 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 +16 -15
- package/dist/semantic-rule-promotion.js +15 -14
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +15 -14
- package/dist/{service-B5W5IYCx.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 +19 -18
- package/dist/{storage-COL907QF.d.ts → storage-V--MQi7w.d.ts} +5 -4
- package/dist/storage.d.ts +3 -2
- package/dist/storage.js +14 -13
- package/dist/summarizer.d.ts +1 -1
- package/dist/summary-snapshot.d.ts +1 -1
- package/dist/temporal-supersession.d.ts +14 -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 +3 -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 +1 -1
- package/dist/transfer/capsule-export.js +2 -2
- package/dist/transfer/capsule-import.js +6 -6
- 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 +15 -14
- 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/corpus-read-cancellation.ts +42 -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/entity-retrieval.ts +4 -4
- 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/in-flight-reads.ts +119 -6
- 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/namespace-read-fanout.ts +13 -2
- package/src/orchestration/recall-internal-deps.ts +2 -0
- package/src/orchestration/recall-internal.ts +5 -1
- package/src/orchestration/recall-search-pipeline.ts +2 -0
- package/src/orchestration/recall-search-prefilter.ts +5 -1
- package/src/orchestrator.ts +7 -6
- package/src/schemas.ts +15 -0
- package/src/storage/entity-store.ts +9 -2
- package/src/storage/memory-read-store.ts +33 -4
- package/src/storage-contract/corpus-read-cancellation.test.ts +408 -0
- package/src/storage.ts +75 -19
- 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-2P3GQVM2.js.map +0 -1
- package/dist/chunk-3S63QIFQ.js.map +0 -1
- package/dist/chunk-4WBGZYZZ.js.map +0 -1
- package/dist/chunk-CMQZNEIF.js.map +0 -1
- package/dist/chunk-DNHVPZOD.js.map +0 -1
- package/dist/chunk-FZZ2QTJI.js +0 -111
- package/dist/chunk-FZZ2QTJI.js.map +0 -1
- package/dist/chunk-J7T4MX7P.js.map +0 -1
- package/dist/chunk-KSGEGHYA.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-PDJTHRAW.js +0 -36
- package/dist/chunk-PDJTHRAW.js.map +0 -1
- package/dist/chunk-PLCZD3LG.js.map +0 -1
- package/dist/chunk-RN53QBM4.js.map +0 -1
- package/dist/chunk-W4FBGYGK.js.map +0 -1
- /package/dist/{auto-sync-7O6RP2RT.js.map → auto-sync-QFQGOEO2.js.map} +0 -0
- /package/dist/{capsule-merge-Q6AR3XL7.js.map → capsule-merge-KXTRZ23Z.js.map} +0 -0
- /package/dist/{chunk-ICP53SKG.js.map → chunk-2HIJHXB3.js.map} +0 -0
- /package/dist/{chunk-FJ2ND6CZ.js.map → chunk-47J4EDGR.js.map} +0 -0
- /package/dist/{chunk-S55OAS5P.js.map → chunk-4EABKPZS.js.map} +0 -0
- /package/dist/{chunk-GD7UPIBG.js.map → chunk-4JWJMRPJ.js.map} +0 -0
- /package/dist/{chunk-3NDN5P55.js.map → chunk-4S3ECH3U.js.map} +0 -0
- /package/dist/{chunk-CGASUJVP.js.map → chunk-5V6IXHPI.js.map} +0 -0
- /package/dist/{chunk-A4JMGKCD.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-53AJILXF.js.map → chunk-6XGEBQ3R.js.map} +0 -0
- /package/dist/{chunk-IP3DHDU2.js.map → chunk-7BLWBSRL.js.map} +0 -0
- /package/dist/{chunk-A2TFK5PG.js.map → chunk-7NDM2PNK.js.map} +0 -0
- /package/dist/{chunk-HRMEYQRO.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-HIDEBEAN.js.map → chunk-E633OXMH.js.map} +0 -0
- /package/dist/{chunk-EZNXW27Q.js.map → chunk-ELQCS47S.js.map} +0 -0
- /package/dist/{chunk-HAYSYUAB.js.map → chunk-EURCX6PS.js.map} +0 -0
- /package/dist/{chunk-RSPSHRZA.js.map → chunk-FV7YQTN3.js.map} +0 -0
- /package/dist/{chunk-GWHPQOUC.js.map → chunk-GGBSF2X7.js.map} +0 -0
- /package/dist/{chunk-SYUBB3WM.js.map → chunk-GKEYXXKX.js.map} +0 -0
- /package/dist/{chunk-PELT6ADC.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-KQAFEZQX.js.map → chunk-IPLYGWQF.js.map} +0 -0
- /package/dist/{chunk-NZBZ7IS2.js.map → chunk-JDCQK3C5.js.map} +0 -0
- /package/dist/{chunk-ANCC3JJH.js.map → chunk-JI62YGPI.js.map} +0 -0
- /package/dist/{chunk-LULR4IUW.js.map → chunk-KATEWTQJ.js.map} +0 -0
- /package/dist/{chunk-IJ7HK452.js.map → chunk-KMAP7SNQ.js.map} +0 -0
- /package/dist/{chunk-PRVJH7CY.js.map → chunk-KMWYZTIE.js.map} +0 -0
- /package/dist/{chunk-JGSKJHF7.js.map → chunk-KQS72GCR.js.map} +0 -0
- /package/dist/{chunk-FMCHFSZF.js.map → chunk-LQKXVQZR.js.map} +0 -0
- /package/dist/{chunk-M4DMO67I.js.map → chunk-LTOAJXZB.js.map} +0 -0
- /package/dist/{chunk-NIS256NW.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-G2RBWVFQ.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-D5NGH2EW.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-2EJNXE53.js.map → chunk-PLCHU56K.js.map} +0 -0
- /package/dist/{chunk-45OTV7FZ.js.map → chunk-PWIMF7LP.js.map} +0 -0
- /package/dist/{chunk-7YKVM5H3.js.map → chunk-PWLB4TRK.js.map} +0 -0
- /package/dist/{chunk-RVYVMQK4.js.map → chunk-QSYL5CXK.js.map} +0 -0
- /package/dist/{chunk-NXUJRXSF.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-5L7PTX2Q.js.map → chunk-S2SJEOTM.js.map} +0 -0
- /package/dist/{chunk-52I3YZZ6.js.map → chunk-S75UQ3T3.js.map} +0 -0
- /package/dist/{chunk-LXOM6IQU.js.map → chunk-SEF4IOFE.js.map} +0 -0
- /package/dist/{chunk-DUEEQCTT.js.map → chunk-SHYIMIX5.js.map} +0 -0
- /package/dist/{chunk-7K5Q6COX.js.map → chunk-TVVEYCNW.js.map} +0 -0
- /package/dist/{chunk-3JUYWPFJ.js.map → chunk-VFS3MK5F.js.map} +0 -0
- /package/dist/{chunk-WOEVJKKQ.js.map → chunk-WPZX7MEA.js.map} +0 -0
- /package/dist/{chunk-ZRWB5D4H.js.map → chunk-WT6UL3UA.js.map} +0 -0
- /package/dist/{chunk-MC6XO7T4.js.map → chunk-YLBE6PLR.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-JYPO7L3G.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
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
import { ObjectiveStateOutcome } from './objective-state.js';
|
|
2
2
|
|
|
3
|
+
type ActionStrategyId = "RUN_CHECK" | "CHANGE_IMPLEMENTATION" | "CHANGE_TEST" | "CHANGE_CONFIGURATION" | "CHANGE_DEPENDENCY" | "INVALIDATE_CACHE" | "RETRY_ACTION" | "INSPECT_STATE";
|
|
4
|
+
type CommandIntent = {
|
|
5
|
+
kind: "command";
|
|
6
|
+
command: string;
|
|
7
|
+
args?: string[];
|
|
8
|
+
};
|
|
9
|
+
type EditKind = "create" | "update" | "delete" | "rename";
|
|
10
|
+
type EditIntent = {
|
|
11
|
+
kind: "edit";
|
|
12
|
+
filePath: string;
|
|
13
|
+
editKind: EditKind;
|
|
14
|
+
symbol?: string;
|
|
15
|
+
range?: string;
|
|
16
|
+
diffShape?: string;
|
|
17
|
+
};
|
|
18
|
+
type ActionIntent = CommandIntent | EditIntent;
|
|
19
|
+
interface ActionIdentity {
|
|
20
|
+
fingerprintVersion: 1;
|
|
21
|
+
fingerprint: string;
|
|
22
|
+
strategyId: ActionStrategyId;
|
|
23
|
+
}
|
|
24
|
+
interface CausalTrajectoryCodingContext {
|
|
25
|
+
projectId: string;
|
|
26
|
+
branch?: string | null;
|
|
27
|
+
defaultBranch?: string | null;
|
|
28
|
+
}
|
|
3
29
|
interface CausalTrajectoryRecord {
|
|
4
30
|
schemaVersion: 1;
|
|
5
31
|
trajectoryId: string;
|
|
@@ -15,6 +41,8 @@ interface CausalTrajectoryRecord {
|
|
|
15
41
|
entityRefs?: string[];
|
|
16
42
|
tags?: string[];
|
|
17
43
|
metadata?: Record<string, string>;
|
|
44
|
+
codingContext?: CausalTrajectoryCodingContext;
|
|
45
|
+
actionIdentity?: ActionIdentity;
|
|
18
46
|
}
|
|
19
47
|
interface CausalTrajectoryStoreStatus {
|
|
20
48
|
enabled: boolean;
|
|
@@ -41,6 +69,14 @@ interface CausalTrajectorySearchResult {
|
|
|
41
69
|
matchedFields: string[];
|
|
42
70
|
}
|
|
43
71
|
declare function resolveCausalTrajectoryStoreDir(memoryDir: string, overrideDir?: string): string;
|
|
72
|
+
declare function readCausalTrajectoryRevisionToken(options: {
|
|
73
|
+
memoryDir: string;
|
|
74
|
+
causalTrajectoryStoreDir?: string;
|
|
75
|
+
}): Promise<string>;
|
|
76
|
+
declare function advanceCausalTrajectoryRevisionToken(options: {
|
|
77
|
+
memoryDir: string;
|
|
78
|
+
causalTrajectoryStoreDir?: string;
|
|
79
|
+
}): Promise<string>;
|
|
44
80
|
declare function validateCausalTrajectoryRecord(raw: unknown): CausalTrajectoryRecord;
|
|
45
81
|
declare function recordCausalTrajectory(options: {
|
|
46
82
|
memoryDir: string;
|
|
@@ -63,7 +99,20 @@ declare function readCausalTrajectoryRecords(options: {
|
|
|
63
99
|
error: string;
|
|
64
100
|
}>;
|
|
65
101
|
}>;
|
|
66
|
-
|
|
102
|
+
interface CausalTrajectoryStrictReadResult {
|
|
103
|
+
status: "absent" | "empty" | "ok";
|
|
104
|
+
files: string[];
|
|
105
|
+
trajectories: CausalTrajectoryRecord[];
|
|
106
|
+
invalidTrajectories: Array<{
|
|
107
|
+
path: string;
|
|
108
|
+
error: string;
|
|
109
|
+
}>;
|
|
110
|
+
}
|
|
111
|
+
declare function readCausalTrajectoryRecordsStrict(options: {
|
|
112
|
+
memoryDir: string;
|
|
113
|
+
causalTrajectoryStoreDir?: string;
|
|
114
|
+
signal?: AbortSignal;
|
|
115
|
+
}): Promise<CausalTrajectoryStrictReadResult>;
|
|
67
116
|
declare function filterTrajectoriesByLookbackDays(trajectories: CausalTrajectoryRecord[], lookbackDays: number, nowMs?: number): CausalTrajectoryRecord[];
|
|
68
117
|
declare function getCausalTrajectoryStoreStatus(options: {
|
|
69
118
|
memoryDir: string;
|
|
@@ -78,4 +127,4 @@ declare function searchCausalTrajectories(options: {
|
|
|
78
127
|
sessionKey?: string;
|
|
79
128
|
}): Promise<CausalTrajectorySearchResult[]>;
|
|
80
129
|
|
|
81
|
-
export { type CausalTrajectoryRecord, type CausalTrajectorySearchResult, type CausalTrajectoryStoreStatus, filterTrajectoriesByLookbackDays, getCausalTrajectoryStoreStatus, readCausalTrajectoryRecords, recordCausalTrajectory, resolveCausalTrajectoryStoreDir, searchCausalTrajectories, validateCausalTrajectoryRecord };
|
|
130
|
+
export { type ActionIdentity, type ActionIntent, type ActionStrategyId, type CausalTrajectoryCodingContext, type CausalTrajectoryRecord, type CausalTrajectorySearchResult, type CausalTrajectoryStoreStatus, type CausalTrajectoryStrictReadResult, type CommandIntent, type EditIntent, type EditKind, advanceCausalTrajectoryRevisionToken, filterTrajectoriesByLookbackDays, getCausalTrajectoryStoreStatus, readCausalTrajectoryRecords, readCausalTrajectoryRecordsStrict, readCausalTrajectoryRevisionToken, recordCausalTrajectory, resolveCausalTrajectoryStoreDir, searchCausalTrajectories, validateCausalTrajectoryRecord };
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
+
advanceCausalTrajectoryRevisionToken,
|
|
2
3
|
filterTrajectoriesByLookbackDays,
|
|
3
4
|
getCausalTrajectoryStoreStatus,
|
|
4
5
|
readCausalTrajectoryRecords,
|
|
6
|
+
readCausalTrajectoryRecordsStrict,
|
|
7
|
+
readCausalTrajectoryRevisionToken,
|
|
5
8
|
recordCausalTrajectory,
|
|
6
9
|
resolveCausalTrajectoryStoreDir,
|
|
7
10
|
searchCausalTrajectories,
|
|
8
11
|
validateCausalTrajectoryRecord
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-M4MP34AQ.js";
|
|
10
13
|
import "./chunk-ZBJMUXZH.js";
|
|
11
14
|
import "./chunk-A2IYSXDQ.js";
|
|
12
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-P77QX3ID.js";
|
|
13
16
|
import "./chunk-PZ5AY32C.js";
|
|
14
17
|
export {
|
|
18
|
+
advanceCausalTrajectoryRevisionToken,
|
|
15
19
|
filterTrajectoriesByLookbackDays,
|
|
16
20
|
getCausalTrajectoryStoreStatus,
|
|
17
21
|
readCausalTrajectoryRecords,
|
|
22
|
+
readCausalTrajectoryRecordsStrict,
|
|
23
|
+
readCausalTrajectoryRevisionToken,
|
|
18
24
|
recordCausalTrajectory,
|
|
19
25
|
resolveCausalTrajectoryStoreDir,
|
|
20
26
|
searchCausalTrajectories,
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TombstoneStore,
|
|
3
|
+
applyTombstoneResurrectionGate,
|
|
4
|
+
buildRetiredFactTombstoneInputs,
|
|
5
|
+
collectRetiredMemoriesForRebuild
|
|
6
|
+
} from "./chunk-ENTCVTQR.js";
|
|
1
7
|
import {
|
|
2
8
|
WEARABLES_DIR_NAME,
|
|
3
9
|
escapeSegmentText,
|
|
@@ -9,12 +15,6 @@ import {
|
|
|
9
15
|
unescapeSegmentText,
|
|
10
16
|
unescapeSpeakerLabel
|
|
11
17
|
} from "./chunk-UHVXE24Y.js";
|
|
12
|
-
import {
|
|
13
|
-
TombstoneStore,
|
|
14
|
-
applyTombstoneResurrectionGate,
|
|
15
|
-
buildRetiredFactTombstoneInputs,
|
|
16
|
-
collectRetiredMemoriesForRebuild
|
|
17
|
-
} from "./chunk-ENTCVTQR.js";
|
|
18
18
|
import {
|
|
19
19
|
withholdToolScopedFromSharedNamespace
|
|
20
20
|
} from "./chunk-S2V7RUCL.js";
|
|
@@ -26,11 +26,7 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
SPECULATIVE_TTL_DAYS,
|
|
28
28
|
confidenceTier
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import {
|
|
31
|
-
rewriteProjectedEntityReferences,
|
|
32
|
-
rewriteProjectedMemoryEntityReference
|
|
33
|
-
} from "./chunk-WRJVB3C2.js";
|
|
29
|
+
} from "./chunk-LAQ33B5D.js";
|
|
34
30
|
import {
|
|
35
31
|
createMemorySnapshot
|
|
36
32
|
} from "./chunk-S2HLHAZ4.js";
|
|
@@ -38,6 +34,10 @@ import {
|
|
|
38
34
|
normalizeProjectionPreview,
|
|
39
35
|
normalizeProjectionTags
|
|
40
36
|
} from "./chunk-SCU65EZI.js";
|
|
37
|
+
import {
|
|
38
|
+
rewriteProjectedEntityReferences,
|
|
39
|
+
rewriteProjectedMemoryEntityReference
|
|
40
|
+
} from "./chunk-WRJVB3C2.js";
|
|
41
41
|
import {
|
|
42
42
|
rotateMarkdownFileToArchive
|
|
43
43
|
} from "./chunk-DM2T26WE.js";
|
|
@@ -61,12 +61,12 @@ import {
|
|
|
61
61
|
isQueuedReviewMemory,
|
|
62
62
|
parseTombstoneBlockedOfflineSyncMemory,
|
|
63
63
|
tombstoneBlocked
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-GKEYXXKX.js";
|
|
65
65
|
import {
|
|
66
66
|
composeMemoryEnvelope,
|
|
67
67
|
isSealedMemoryEnvelope,
|
|
68
68
|
sealedWriteToLegacyArgs
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-5V6IXHPI.js";
|
|
70
70
|
import {
|
|
71
71
|
assemblePersistedBody,
|
|
72
72
|
stripAttributesSuffix
|
|
@@ -74,20 +74,23 @@ import {
|
|
|
74
74
|
import {
|
|
75
75
|
normalizeEntityName
|
|
76
76
|
} from "./chunk-YXZG5TVN.js";
|
|
77
|
+
import {
|
|
78
|
+
checkCorpusReadAbort
|
|
79
|
+
} from "./chunk-5GINB5LC.js";
|
|
77
80
|
import {
|
|
78
81
|
isConsolidationOperator,
|
|
79
82
|
isValidDerivedFromEntry
|
|
80
83
|
} from "./chunk-G7D6GZ5J.js";
|
|
81
84
|
import {
|
|
82
85
|
createVersion
|
|
83
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-PWLB4TRK.js";
|
|
84
87
|
import {
|
|
88
|
+
attachInFlightReader,
|
|
89
|
+
beginCoalescedScan,
|
|
85
90
|
clearInFlightReads,
|
|
86
91
|
deleteInFlightRead,
|
|
87
|
-
deleteInFlightReadsForDir
|
|
88
|
-
|
|
89
|
-
setInFlightRead
|
|
90
|
-
} from "./chunk-PDJTHRAW.js";
|
|
92
|
+
deleteInFlightReadsForDir
|
|
93
|
+
} from "./chunk-RBOJCG4T.js";
|
|
91
94
|
import {
|
|
92
95
|
ENTITY_CANONICAL_ID_MIGRATION_FILE,
|
|
93
96
|
ENTITY_CANONICAL_ID_RECONCILE_CONSUMING_MARKER,
|
|
@@ -102,12 +105,12 @@ import {
|
|
|
102
105
|
requestEntityCanonicalIdReconcileSync,
|
|
103
106
|
resolveHistoricalEntityCanonicalId,
|
|
104
107
|
withEntityCanonicalMutationLock
|
|
105
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-JDCQK3C5.js";
|
|
106
109
|
import {
|
|
107
110
|
computeSupersessionKey,
|
|
108
111
|
normalizeSupersessionKey,
|
|
109
112
|
supersessionKeysForFact
|
|
110
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-P26YHAQH.js";
|
|
111
114
|
import {
|
|
112
115
|
clearMemoryCache,
|
|
113
116
|
getCachedEntities,
|
|
@@ -127,14 +130,14 @@ import {
|
|
|
127
130
|
reconcileProvenanceRead,
|
|
128
131
|
serializeProvenanceFields
|
|
129
132
|
} from "./chunk-QBSFOKY6.js";
|
|
130
|
-
import {
|
|
131
|
-
sanitizeMemoryContent
|
|
132
|
-
} from "./chunk-5GKPFL3S.js";
|
|
133
133
|
import {
|
|
134
134
|
matchEntitySchemaSection,
|
|
135
135
|
normalizeEntityStructuredSection,
|
|
136
136
|
sortStructuredSectionsBySchema
|
|
137
137
|
} from "./chunk-ZIKENA2C.js";
|
|
138
|
+
import {
|
|
139
|
+
sanitizeMemoryContent
|
|
140
|
+
} from "./chunk-5GKPFL3S.js";
|
|
138
141
|
import {
|
|
139
142
|
selectArtifactMatches
|
|
140
143
|
} from "./chunk-Z7L72ZHL.js";
|
|
@@ -190,6 +193,10 @@ import {
|
|
|
190
193
|
import {
|
|
191
194
|
resolveNamespaceCapabilities
|
|
192
195
|
} from "./chunk-2XRE6FLM.js";
|
|
196
|
+
import {
|
|
197
|
+
isAbortError,
|
|
198
|
+
raceAbort
|
|
199
|
+
} from "./chunk-BTTPKDIL.js";
|
|
193
200
|
import {
|
|
194
201
|
isPathInsideStorageRoot
|
|
195
202
|
} from "./chunk-FF4KLI5W.js";
|
|
@@ -299,7 +306,8 @@ var MemoryReadStore = class {
|
|
|
299
306
|
});
|
|
300
307
|
return days;
|
|
301
308
|
}
|
|
302
|
-
async readAllArtifactsCached() {
|
|
309
|
+
async readAllArtifactsCached(options) {
|
|
310
|
+
checkCorpusReadAbort(options);
|
|
303
311
|
if (this.deps.artifactIndexCache && Date.now() - this.deps.artifactIndexCache.loadedAtMs <= this.deps.storageManagerClass.ARTIFACT_INDEX_CACHE_TTL_MS && this.deps.artifactIndexCache.writeVersion === this.deps.getArtifactWriteVersion()) {
|
|
304
312
|
return this.deps.artifactIndexCache.memories;
|
|
305
313
|
}
|
|
@@ -309,6 +317,7 @@ var MemoryReadStore = class {
|
|
|
309
317
|
try {
|
|
310
318
|
const entries = await readdir(dir, { withFileTypes: true });
|
|
311
319
|
for (const entry of entries) {
|
|
320
|
+
checkCorpusReadAbort(options);
|
|
312
321
|
const fullPath = path.join(dir, entry.name);
|
|
313
322
|
if (entry.isDirectory()) {
|
|
314
323
|
await readDir(fullPath);
|
|
@@ -319,7 +328,8 @@ var MemoryReadStore = class {
|
|
|
319
328
|
if (!memory) continue;
|
|
320
329
|
artifacts.push(memory);
|
|
321
330
|
}
|
|
322
|
-
} catch {
|
|
331
|
+
} catch (err) {
|
|
332
|
+
if (isAbortError(err)) throw err;
|
|
323
333
|
}
|
|
324
334
|
};
|
|
325
335
|
await readDir(this.deps.artifactsDir);
|
|
@@ -328,10 +338,12 @@ var MemoryReadStore = class {
|
|
|
328
338
|
const MAX_REBUILD_RETRIES = 2;
|
|
329
339
|
let latestArtifacts = [];
|
|
330
340
|
for (let attempt = 0; attempt <= MAX_REBUILD_RETRIES; attempt += 1) {
|
|
341
|
+
checkCorpusReadAbort(options);
|
|
331
342
|
const versionBefore = this.deps.getArtifactWriteVersion();
|
|
332
343
|
const artifacts = await scanArtifacts();
|
|
333
344
|
const versionAfter = this.deps.getArtifactWriteVersion();
|
|
334
345
|
latestArtifacts = artifacts;
|
|
346
|
+
checkCorpusReadAbort(options);
|
|
335
347
|
if (versionAfter === versionBefore) {
|
|
336
348
|
this.deps.artifactIndexCache = { memories: artifacts, loadedAtMs: Date.now(), writeVersion: versionAfter };
|
|
337
349
|
return artifacts;
|
|
@@ -348,7 +360,7 @@ var MemoryReadStore = class {
|
|
|
348
360
|
* consolidation-provenance-check.ts; reuses the shared containment helper.
|
|
349
361
|
* Paths only — no frontmatter parse.
|
|
350
362
|
*/
|
|
351
|
-
async collectContainedMarkdownPaths(startDirs, propagateReadErrors = false) {
|
|
363
|
+
async collectContainedMarkdownPaths(startDirs, propagateReadErrors = false, options) {
|
|
352
364
|
const filePaths = [];
|
|
353
365
|
let memoryRootReal;
|
|
354
366
|
try {
|
|
@@ -358,6 +370,7 @@ var MemoryReadStore = class {
|
|
|
358
370
|
return filePaths;
|
|
359
371
|
}
|
|
360
372
|
const collectPaths = async (dir) => {
|
|
373
|
+
checkCorpusReadAbort(options);
|
|
361
374
|
let dirStat;
|
|
362
375
|
try {
|
|
363
376
|
dirStat = await lstat(dir);
|
|
@@ -382,6 +395,7 @@ var MemoryReadStore = class {
|
|
|
382
395
|
}
|
|
383
396
|
const subdirs = [];
|
|
384
397
|
for (const entry of entries) {
|
|
398
|
+
checkCorpusReadAbort(options);
|
|
385
399
|
if (entry.isSymbolicLink()) continue;
|
|
386
400
|
const fullPath = path.join(dir, entry.name);
|
|
387
401
|
if (entry.isDirectory()) {
|
|
@@ -402,12 +416,14 @@ var MemoryReadStore = class {
|
|
|
402
416
|
for (const dir of startDirs) {
|
|
403
417
|
await collectPaths(dir);
|
|
404
418
|
}
|
|
419
|
+
checkCorpusReadAbort(options);
|
|
405
420
|
return filePaths;
|
|
406
421
|
}
|
|
407
422
|
async collectActiveMemoryPaths(options) {
|
|
408
423
|
return this.collectContainedMarkdownPaths(
|
|
409
424
|
RECALL_FALLBACK_DIRS.map((dir) => path.join(this.deps.baseDir, dir)),
|
|
410
|
-
options?.propagateReadErrors ?? false
|
|
425
|
+
options?.propagateReadErrors ?? false,
|
|
426
|
+
options
|
|
411
427
|
);
|
|
412
428
|
}
|
|
413
429
|
/**
|
|
@@ -422,7 +438,8 @@ var MemoryReadStore = class {
|
|
|
422
438
|
async collectColdMemoryPaths(options) {
|
|
423
439
|
return this.collectContainedMarkdownPaths(
|
|
424
440
|
[this.deps.resolveTierRootDir("cold")],
|
|
425
|
-
options?.propagateReadErrors ?? false
|
|
441
|
+
options?.propagateReadErrors ?? false,
|
|
442
|
+
options
|
|
426
443
|
);
|
|
427
444
|
}
|
|
428
445
|
async readMemoriesWindow(options = {}) {
|
|
@@ -1727,7 +1744,8 @@ var EntityStore = class {
|
|
|
1727
1744
|
* Read all entity files and return lightweight EntityFile objects.
|
|
1728
1745
|
* Parsing is fast (~50-100ms for ~1,800 files) since entity files are small.
|
|
1729
1746
|
*/
|
|
1730
|
-
async readAllEntityFiles() {
|
|
1747
|
+
async readAllEntityFiles(options) {
|
|
1748
|
+
checkCorpusReadAbort(options);
|
|
1731
1749
|
const currentVersion = this.deps.getMemoryStatusVersion();
|
|
1732
1750
|
const cacheKey = [
|
|
1733
1751
|
this.deps.getEntityCacheSecureStoreKey(),
|
|
@@ -1743,6 +1761,7 @@ var EntityStore = class {
|
|
|
1743
1761
|
const BATCH_SIZE = 100;
|
|
1744
1762
|
const entities = [];
|
|
1745
1763
|
for (let i = 0; i < mdFiles.length; i += BATCH_SIZE) {
|
|
1764
|
+
checkCorpusReadAbort(options);
|
|
1746
1765
|
const batch = mdFiles.slice(i, i + BATCH_SIZE);
|
|
1747
1766
|
const results = await Promise.all(
|
|
1748
1767
|
batch.map(async (entry) => {
|
|
@@ -1759,6 +1778,7 @@ var EntityStore = class {
|
|
|
1759
1778
|
if (content !== null) entities.push(parseEntityFile(content, this.deps.entitySchemas));
|
|
1760
1779
|
}
|
|
1761
1780
|
}
|
|
1781
|
+
checkCorpusReadAbort(options);
|
|
1762
1782
|
setCachedEntities(this.deps.baseDir, entities, currentVersion, cacheKey);
|
|
1763
1783
|
return entities;
|
|
1764
1784
|
} catch (err) {
|
|
@@ -5500,6 +5520,15 @@ function serializeFrontmatter(fm) {
|
|
|
5500
5520
|
if (fm.tombstoneBlockTier) lines.push(`tombstoneBlockTier: ${fm.tombstoneBlockTier}`);
|
|
5501
5521
|
if (fm.supersededBy) lines.push(`supersededBy: ${fm.supersededBy}`);
|
|
5502
5522
|
if (fm.supersededAt) lines.push(`supersededAt: ${fm.supersededAt}`);
|
|
5523
|
+
if (fm.supersessionCause) {
|
|
5524
|
+
if (fm.supersessionCause !== "direct" && fm.supersessionCause !== "dependency") {
|
|
5525
|
+
throw new Error(
|
|
5526
|
+
`serializeFrontmatter: invalid supersessionCause ${JSON.stringify(fm.supersessionCause)} \u2014 expected "direct" | "dependency"`
|
|
5527
|
+
);
|
|
5528
|
+
}
|
|
5529
|
+
lines.push(`supersessionCause: ${fm.supersessionCause}`);
|
|
5530
|
+
}
|
|
5531
|
+
if (fm.invalidatedBy) lines.push(`invalidatedBy: ${fm.invalidatedBy}`);
|
|
5503
5532
|
if (fm.archivedAt) lines.push(`archivedAt: ${fm.archivedAt}`);
|
|
5504
5533
|
if (fm.valid_at) lines.push(`validAt: ${fm.valid_at}`);
|
|
5505
5534
|
if (fm.invalid_at) lines.push(`invalidAt: ${fm.invalid_at}`);
|
|
@@ -5885,6 +5914,8 @@ function parseFrontmatter(raw) {
|
|
|
5885
5914
|
supersededBy: fm.supersededBy || void 0,
|
|
5886
5915
|
supersededAt: fm.supersededAt || void 0,
|
|
5887
5916
|
archivedAt: fm.archivedAt || void 0,
|
|
5917
|
+
supersessionCause: fm.supersessionCause === "direct" || fm.supersessionCause === "dependency" ? fm.supersessionCause : void 0,
|
|
5918
|
+
invalidatedBy: fm.invalidatedBy || void 0,
|
|
5888
5919
|
// Issue #680 — explicit fact lifecycle round-trip.
|
|
5889
5920
|
valid_at: fm.validAt || void 0,
|
|
5890
5921
|
invalid_at: fm.invalidAt || void 0,
|
|
@@ -8524,12 +8555,12 @@ ${sanitized.text}
|
|
|
8524
8555
|
this.artifactIndexCache = null;
|
|
8525
8556
|
return id;
|
|
8526
8557
|
}
|
|
8527
|
-
async readAllArtifactsCached() {
|
|
8528
|
-
return this.memoryReadStore.readAllArtifactsCached();
|
|
8558
|
+
async readAllArtifactsCached(options) {
|
|
8559
|
+
return this.memoryReadStore.readAllArtifactsCached(options);
|
|
8529
8560
|
}
|
|
8530
8561
|
async searchArtifacts(query, maxResults, options = {}) {
|
|
8531
8562
|
return selectArtifactMatches(
|
|
8532
|
-
() => this.readAllArtifactsCached(),
|
|
8563
|
+
() => this.readAllArtifactsCached({ abortSignal: options.abortSignal }),
|
|
8533
8564
|
query,
|
|
8534
8565
|
maxResults,
|
|
8535
8566
|
options
|
|
@@ -8613,7 +8644,8 @@ ${sanitized.text}
|
|
|
8613
8644
|
for (const memory of memories) this.rememberMemorySnapshot(memory);
|
|
8614
8645
|
return memories;
|
|
8615
8646
|
}
|
|
8616
|
-
async readAllMemories() {
|
|
8647
|
+
async readAllMemories(options) {
|
|
8648
|
+
checkCorpusReadAbort(options);
|
|
8617
8649
|
if (this.hotMemoriesCacheEnabled) {
|
|
8618
8650
|
const cached = getCachedMemories(
|
|
8619
8651
|
this.baseDir,
|
|
@@ -8624,20 +8656,32 @@ ${sanitized.text}
|
|
|
8624
8656
|
if (cached !== null) return this.rememberMemorySnapshots(cached);
|
|
8625
8657
|
}
|
|
8626
8658
|
const keyId = this.hotCacheKeyId();
|
|
8627
|
-
const inFlight =
|
|
8628
|
-
if (inFlight)
|
|
8659
|
+
const inFlight = attachInFlightReader(this.baseDir, keyId, options?.abortSignal);
|
|
8660
|
+
if (inFlight) {
|
|
8661
|
+
try {
|
|
8662
|
+
return this.rememberMemorySnapshots(
|
|
8663
|
+
await raceAbort(inFlight.read, options?.abortSignal, "corpus read aborted")
|
|
8664
|
+
);
|
|
8665
|
+
} finally {
|
|
8666
|
+
inFlight.waiter.leave();
|
|
8667
|
+
}
|
|
8668
|
+
}
|
|
8669
|
+
const scan = beginCoalescedScan(this.baseDir, keyId, options?.abortSignal);
|
|
8629
8670
|
const readPromise = (async () => {
|
|
8630
8671
|
const version = this.getMemoryCorpusVersion();
|
|
8631
|
-
const memories = await this._readAllMemoriesFromDisk();
|
|
8672
|
+
const memories = await this._readAllMemoriesFromDisk({ abortSignal: scan.scanSignal });
|
|
8632
8673
|
if (this.hotMemoriesCacheEnabled && this.getMemoryCorpusVersion() === version && this.hotCacheKeyId() === keyId) {
|
|
8633
8674
|
setCachedMemories(this.baseDir, memories, version, keyId, this.hotCacheTtlMs());
|
|
8634
8675
|
}
|
|
8635
8676
|
return memories;
|
|
8636
8677
|
})();
|
|
8637
|
-
|
|
8678
|
+
scan.arm(readPromise);
|
|
8638
8679
|
try {
|
|
8639
|
-
return this.rememberMemorySnapshots(
|
|
8680
|
+
return this.rememberMemorySnapshots(
|
|
8681
|
+
await raceAbort(readPromise, options?.abortSignal, "corpus read aborted")
|
|
8682
|
+
);
|
|
8640
8683
|
} finally {
|
|
8684
|
+
scan.leave();
|
|
8641
8685
|
deleteInFlightRead(this.baseDir, keyId, readPromise);
|
|
8642
8686
|
}
|
|
8643
8687
|
}
|
|
@@ -8821,11 +8865,12 @@ ${sanitized.text}
|
|
|
8821
8865
|
getCorpusScanVersion() {
|
|
8822
8866
|
return `${this.getMemoryCorpusVersion()}:${this.readColdWriteVersion()}`;
|
|
8823
8867
|
}
|
|
8824
|
-
async readParsedMemoriesFromPaths(filePaths, batchSize) {
|
|
8868
|
+
async readParsedMemoriesFromPaths(filePaths, batchSize, options) {
|
|
8825
8869
|
if (filePaths.length === 0) return [];
|
|
8826
8870
|
const normalizedBatchSize = this.normalizeMemoryReadBatchSize(batchSize);
|
|
8827
8871
|
const memories = [];
|
|
8828
8872
|
for (let i = 0; i < filePaths.length; i += normalizedBatchSize) {
|
|
8873
|
+
checkCorpusReadAbort(options);
|
|
8829
8874
|
const batch = filePaths.slice(i, i + normalizedBatchSize);
|
|
8830
8875
|
const results = await Promise.all(
|
|
8831
8876
|
batch.map(async (fullPath) => {
|
|
@@ -8855,6 +8900,7 @@ ${sanitized.text}
|
|
|
8855
8900
|
if (memory !== null) memories.push(memory);
|
|
8856
8901
|
}
|
|
8857
8902
|
}
|
|
8903
|
+
checkCorpusReadAbort(options);
|
|
8858
8904
|
return memories;
|
|
8859
8905
|
}
|
|
8860
8906
|
async readWindowUpdatedMs(filePath) {
|
|
@@ -8936,9 +8982,9 @@ ${sanitized.text}
|
|
|
8936
8982
|
async readMemoriesWindow(options = {}) {
|
|
8937
8983
|
return this.memoryReadStore.readMemoriesWindow(options);
|
|
8938
8984
|
}
|
|
8939
|
-
async _readAllMemoriesFromDisk() {
|
|
8940
|
-
const filePaths = await this.collectActiveMemoryPaths();
|
|
8941
|
-
return this.readParsedMemoriesFromPaths(filePaths, 50);
|
|
8985
|
+
async _readAllMemoriesFromDisk(options) {
|
|
8986
|
+
const filePaths = await this.collectActiveMemoryPaths(options);
|
|
8987
|
+
return this.readParsedMemoriesFromPaths(filePaths, 50, options);
|
|
8942
8988
|
}
|
|
8943
8989
|
async readAllColdMemories() {
|
|
8944
8990
|
return this.rememberMemorySnapshots(await this.memoryReadStore.readAllColdMemories());
|
|
@@ -10127,8 +10173,8 @@ ${reflection}
|
|
|
10127
10173
|
// ---------------------------------------------------------------------------
|
|
10128
10174
|
// Scoring + Knowledge Index (Knowledge Graph v7.0)
|
|
10129
10175
|
// ---------------------------------------------------------------------------
|
|
10130
|
-
async readAllEntityFiles() {
|
|
10131
|
-
return this.entityStore.readAllEntityFiles();
|
|
10176
|
+
async readAllEntityFiles(options) {
|
|
10177
|
+
return this.entityStore.readAllEntityFiles(options);
|
|
10132
10178
|
}
|
|
10133
10179
|
/**
|
|
10134
10180
|
* Score an entity based on recency, frequency, activity, type priority,
|
|
@@ -10804,4 +10850,4 @@ export {
|
|
|
10804
10850
|
isValidBufferSurpriseEvent,
|
|
10805
10851
|
StorageManager3 as StorageManager
|
|
10806
10852
|
};
|
|
10807
|
-
//# sourceMappingURL=chunk-
|
|
10853
|
+
//# sourceMappingURL=chunk-24BKGKGO.js.map
|