@remnic/core 9.65.0 → 9.65.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access-admin-ops-surface.d.ts +11 -11
- package/dist/access-admin-ops-surface.js +45 -43
- package/dist/access-authorization-probe.d.ts +12 -13
- package/dist/access-authorization-probe.js +46 -44
- package/dist/access-boundary.d.ts +12 -156
- package/dist/access-boundary.js +45 -43
- package/dist/access-cli.js +120 -116
- 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 -11
- package/dist/access-extraction-force-flush.js +45 -43
- package/dist/access-health-types.d.ts +1 -1
- package/dist/access-http-lcm-compaction.d.ts +11 -11
- package/dist/access-http-lifecycle-flush.d.ts +12 -13
- package/dist/access-http-offline-stream.d.ts +11 -11
- package/dist/access-http-query.d.ts +2 -2
- package/dist/access-http-query.js +47 -45
- package/dist/access-http.d.ts +12 -12
- package/dist/access-http.js +65 -63
- package/dist/access-identity-continuity-surface.d.ts +9 -9
- package/dist/access-identity-continuity-surface.js +45 -43
- package/dist/access-lcm-surface.d.ts +11 -11
- package/dist/access-lcm-surface.js +45 -43
- package/dist/access-mcp-admin-tools.js +1 -1
- package/dist/access-mcp-output-schemas.js +1 -1
- package/dist/access-mcp.d.ts +11 -11
- package/dist/access-mcp.js +58 -54
- package/dist/access-memory-search-fanout.d.ts +2 -2
- package/dist/{access-namespace-preflight-AqlR0w02.d.ts → access-namespace-preflight-Dhvcl-T0.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +3 -3
- package/dist/access-namespace-preflight.js +45 -43
- package/dist/access-observe-write-surface.d.ts +11 -11
- package/dist/access-observe-write-surface.js +45 -43
- package/dist/access-offline-manifest.d.ts +9 -9
- package/dist/access-offline-manifest.js +5 -5
- package/dist/access-operations-batch.js +49 -47
- package/dist/access-operations.d.ts +18 -19
- package/dist/access-operations.js +52 -50
- package/dist/access-recall-concurrency.d.ts +11 -11
- package/dist/access-recall-concurrency.js +45 -43
- package/dist/access-recall-response.d.ts +11 -11
- package/dist/access-recall-response.js +45 -43
- package/dist/access-recall-surface.d.ts +11 -11
- package/dist/access-recall-surface.js +45 -43
- package/dist/access-schema.d.ts +118 -118
- package/dist/access-schema.js +3 -3
- package/dist/{access-service-BHmtl9BA.d.ts → access-service-Bke1alZO.d.ts} +484 -80
- package/dist/access-service-helpers.d.ts +11 -11
- package/dist/access-service.d.ts +11 -11
- package/dist/access-service.js +45 -43
- package/dist/access-surface-catalog.d.ts +12 -13
- package/dist/access-surface-catalog.js +49 -45
- package/dist/access-surface-catalog.js.map +1 -1
- 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 +6 -1
- 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-5L7EUZ27.js → auto-sync-H64ZCNIR.js} +13 -5
- package/dist/{auto-sync-5L7EUZ27.js.map → auto-sync-H64ZCNIR.js.map} +1 -1
- package/dist/behavior-learner.d.ts +1 -1
- package/dist/behavior-signals.d.ts +1 -1
- package/dist/bootstrap.d.ts +9 -9
- package/dist/briefing-window.d.ts +2 -2
- package/dist/briefing.d.ts +2 -2
- package/dist/briefing.js +19 -17
- 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-7FJQINUR.js → capsule-crypto-YO5QJ6L3.js} +2 -2
- package/dist/{catalog-gBoyN-IW.d.ts → catalog-DV6qnbr7.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +1 -1
- package/dist/causal-behavior.js +2 -2
- package/dist/causal-chain.js +2 -2
- package/dist/causal-consolidation.d.ts +1 -1
- package/dist/causal-consolidation.js +22 -20
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-retrieval.js +2 -2
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/causal-trajectory-graph.js +2 -2
- package/dist/causal-trajectory.js +1 -1
- package/dist/{chunk-A6LBDIFS.js → chunk-2E36UXVW.js} +2 -2
- package/dist/{chunk-RRJUMSFX.js → chunk-2XDWWPTN.js} +3 -3
- package/dist/{chunk-QCNB4BRE.js → chunk-2YI72KM3.js} +3 -3
- package/dist/{chunk-3YTTAGPB.js → chunk-3DVBKTSO.js} +2 -2
- package/dist/{chunk-IFK3PVM7.js → chunk-3I7ASZN3.js} +2 -2
- package/dist/chunk-3WU7XOFN.js +102 -0
- package/dist/chunk-3WU7XOFN.js.map +1 -0
- package/dist/{chunk-EIR5VLIH.js → chunk-4K7IW3F7.js} +2 -2
- package/dist/chunk-4K7IW3F7.js.map +1 -0
- package/dist/{chunk-HBKFYXBA.js → chunk-4KYOLI6M.js} +15 -15
- package/dist/chunk-573TEZCD.js +88 -0
- package/dist/chunk-573TEZCD.js.map +1 -0
- package/dist/{chunk-RNKNL5GQ.js → chunk-5NM4OH4P.js} +3 -3
- package/dist/{chunk-CESQ4CMC.js → chunk-5YQ63T4B.js} +2 -2
- package/dist/{chunk-PMVPCZJZ.js → chunk-6433HV72.js} +2 -2
- package/dist/{chunk-4NZHHGVL.js → chunk-7BDZTALN.js} +4 -1
- package/dist/chunk-7BDZTALN.js.map +1 -0
- package/dist/{chunk-NS5ETDYD.js → chunk-7BEPVIH3.js} +3 -3
- package/dist/{chunk-JG22O53B.js → chunk-7CBKAQIG.js} +2 -1
- package/dist/chunk-7CBKAQIG.js.map +1 -0
- package/dist/{chunk-SHQFYZTD.js → chunk-7YQ4IYS2.js} +2 -2
- package/dist/chunk-AAXJNINV.js +55 -0
- package/dist/chunk-AAXJNINV.js.map +1 -0
- package/dist/{chunk-YMOPYG3K.js → chunk-BIJAWZYW.js} +6 -6
- package/dist/{chunk-YQ3CBLL4.js → chunk-BWLRUMOG.js} +78 -8
- package/dist/chunk-BWLRUMOG.js.map +1 -0
- package/dist/{chunk-2NLLXCJG.js → chunk-BXLOS5AJ.js} +2 -2
- package/dist/{chunk-VYEPACWY.js → chunk-C24UZSFW.js} +2 -2
- package/dist/{chunk-ZPN7W3OP.js → chunk-CDUUDBWJ.js} +3 -3
- package/dist/{chunk-K7JMKLKV.js → chunk-CT56C22C.js} +4 -4
- package/dist/{chunk-KWIGDKM2.js → chunk-D2YNNDML.js} +2 -2
- package/dist/{chunk-ZFBZ4QTS.js → chunk-DJZWNKFO.js} +10 -10
- package/dist/{chunk-X7Y7WX73.js → chunk-DQEMWVMT.js} +1 -1
- package/dist/{chunk-VNIETTMR.js → chunk-DZUJ46DO.js} +2 -2
- package/dist/{chunk-T6QMNVMO.js → chunk-EILZG5VC.js} +2 -2
- package/dist/{chunk-652S5A5D.js → chunk-EUYWQ7TS.js} +2 -2
- package/dist/{chunk-YIZRTHHF.js → chunk-GDFVPUJ5.js} +2 -2
- package/dist/{chunk-ML3U4KPR.js → chunk-GIC6BASP.js} +2 -2
- package/dist/{chunk-7PWWGYGO.js → chunk-GNCCUR6K.js} +2 -2
- package/dist/{chunk-Y5UT73VZ.js → chunk-IID2CMUU.js} +2 -2
- package/dist/{chunk-MB6GLPRY.js → chunk-IVKIODHO.js} +4 -4
- package/dist/{chunk-ZAI5R6DW.js → chunk-J275IYMG.js} +26 -17
- package/dist/chunk-J275IYMG.js.map +1 -0
- package/dist/{chunk-UYCIS6V5.js → chunk-JCWY73FK.js} +2 -2
- package/dist/{chunk-URS5GSM7.js → chunk-JXN77SGO.js} +1 -1
- package/dist/chunk-JXN77SGO.js.map +1 -0
- package/dist/{chunk-WHA6ISFX.js → chunk-JYYBA7TF.js} +2 -2
- package/dist/{chunk-T42L3S6A.js → chunk-LBWQ65SX.js} +4 -4
- package/dist/{chunk-MSTNSVXI.js → chunk-LDBFXD4F.js} +2 -1
- package/dist/chunk-LDBFXD4F.js.map +1 -0
- package/dist/{chunk-JXMXTV6C.js → chunk-LGO6A7GJ.js} +56 -56
- package/dist/{chunk-XBRGJJK7.js → chunk-LUNJ3WFO.js} +10 -8
- package/dist/chunk-LUNJ3WFO.js.map +1 -0
- package/dist/{chunk-H6B6GPVH.js → chunk-LZH5FR2W.js} +2 -2
- package/dist/{chunk-5HERQ5FX.js → chunk-M4AHBM72.js} +10 -10
- package/dist/{chunk-GOGHZVY3.js → chunk-MN4KB2A4.js} +3 -3
- package/dist/{chunk-OQIRBGUU.js → chunk-N37X5RU7.js} +2 -2
- package/dist/{chunk-E6EQTCOQ.js → chunk-NKKD4ZAU.js} +2 -2
- package/dist/{chunk-VANZKHTN.js → chunk-NNBZS3DY.js} +2 -2
- package/dist/{chunk-IWUN4RZL.js → chunk-NTWN6HB2.js} +5 -5
- package/dist/{chunk-2PSX5BJU.js → chunk-NZPFCP5A.js} +2 -2
- package/dist/{chunk-U56TGYVS.js → chunk-OCZIYAE5.js} +4 -4
- package/dist/{chunk-I2HTKOOP.js → chunk-ODZG724P.js} +2 -2
- package/dist/{chunk-LTBKKSCX.js → chunk-OLBZ2WGG.js} +2 -2
- package/dist/{chunk-GQ5OJVTM.js → chunk-OTHZWLUD.js} +2 -2
- package/dist/{chunk-PD66CVSD.js → chunk-OUKBMQ2O.js} +2 -2
- package/dist/{chunk-4E6IJCLC.js → chunk-PE255F4T.js} +2 -2
- package/dist/{chunk-GPFZFCRN.js → chunk-PP7R754B.js} +1 -1
- package/dist/{chunk-PHX3ET3C.js → chunk-QOS5LBZN.js} +2 -2
- package/dist/{chunk-G72IPMR7.js → chunk-R4OCGPSH.js} +2 -2
- package/dist/{chunk-VUP47UJI.js → chunk-R7JAM2XF.js} +3 -3
- package/dist/{chunk-LCU5R6TQ.js → chunk-RAIUTAZZ.js} +22 -3
- package/dist/chunk-RAIUTAZZ.js.map +1 -0
- package/dist/chunk-RIAM7DND.js +167 -0
- package/dist/chunk-RIAM7DND.js.map +1 -0
- package/dist/{chunk-JBPKEARU.js → chunk-RKNJBZ55.js} +4 -4
- package/dist/{chunk-P4CQCL27.js → chunk-S2DPMJXH.js} +2 -2
- package/dist/{chunk-YHSNAGN3.js → chunk-SB7D4BT7.js} +548 -126
- package/dist/chunk-SB7D4BT7.js.map +1 -0
- package/dist/{chunk-VRYEXPRX.js → chunk-SBDCZ2AX.js} +1 -1
- package/dist/chunk-SBDCZ2AX.js.map +1 -0
- package/dist/{chunk-OXL5QKTV.js → chunk-SIHSCCUQ.js} +1 -1
- package/dist/{chunk-KLPVXLQJ.js → chunk-SPUJNJJC.js} +2 -2
- package/dist/{chunk-CCP6LXQJ.js → chunk-SQI57UCJ.js} +2 -2
- package/dist/{chunk-UIYYS2YI.js → chunk-SVSRPG6M.js} +2 -2
- package/dist/{chunk-56BSXSHC.js → chunk-TBOJ76ER.js} +14 -1
- package/dist/{chunk-56BSXSHC.js.map → chunk-TBOJ76ER.js.map} +1 -1
- package/dist/{chunk-RQYV6M2T.js → chunk-TF77C7SV.js} +14 -7
- package/dist/chunk-TF77C7SV.js.map +1 -0
- package/dist/{chunk-RNORDDD6.js → chunk-THG4GYIE.js} +2 -2
- package/dist/{chunk-CUIAHZPZ.js → chunk-TR7DGXGI.js} +2 -2
- package/dist/{chunk-GEULB2VI.js → chunk-TZNQUNKL.js} +7 -1
- package/dist/chunk-TZNQUNKL.js.map +1 -0
- package/dist/{chunk-PDKBKBC2.js → chunk-UIN2BWDD.js} +2 -2
- package/dist/{chunk-4GD7YV4Y.js → chunk-UXO5IMBK.js} +3 -3
- package/dist/{chunk-UPIKAT5A.js → chunk-V3MXUL3D.js} +173 -77
- package/dist/chunk-V3MXUL3D.js.map +1 -0
- package/dist/{chunk-KQAFEZQX.js → chunk-VDX2J7OX.js} +2 -2
- package/dist/{chunk-MUJ4QFUQ.js → chunk-W4BMEGQA.js} +4 -4
- package/dist/{chunk-5HK3CJAR.js → chunk-W675UJCZ.js} +2 -2
- package/dist/{chunk-MDVBCPOS.js → chunk-XCTXS7VY.js} +2 -2
- package/dist/{chunk-NTERJOFA.js → chunk-XRYZRW54.js} +2 -2
- package/dist/{chunk-LA2MSK23.js → chunk-Y7DK7HHJ.js} +2 -2
- package/dist/{chunk-34BMUGRA.js → chunk-YB42WZCY.js} +2 -2
- package/dist/{chunk-LWVG6U7L.js → chunk-YHCBJULX.js} +2 -2
- package/dist/{chunk-HDD4RRIX.js → chunk-YLDXWCZP.js} +21 -6
- package/dist/chunk-YLDXWCZP.js.map +1 -0
- package/dist/{chunk-VYISFWVX.js → chunk-YQNNHLCG.js} +2 -2
- package/dist/{chunk-FFPBTNLC.js → chunk-Z7PBQPJ4.js} +2 -2
- package/dist/{chunk-MXJU4GCA.js → chunk-ZO6AXLEH.js} +2 -2
- package/dist/{chunk-JNSLW2O4.js → chunk-ZQHI2BZB.js} +2 -2
- package/dist/{chunk-A4VJKT2H.js → chunk-ZWXJBFZU.js} +11 -11
- package/dist/chunk-ZWXJBFZU.js.map +1 -0
- package/dist/{cli-BpwTNHTm.d.ts → cli-cShQ13XG.d.ts} +5 -5
- package/dist/cli.d.ts +13 -13
- package/dist/cli.js +89 -86
- package/dist/coding/pre-action-gate.d.ts +1 -1
- package/dist/coding/pre-action-gate.js +2 -2
- package/dist/compounding/engine.d.ts +2 -2
- package/dist/compounding/engine.js +20 -18
- 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 +6 -1
- package/dist/connectors/codex-materialize-runner.d.ts +1 -1
- package/dist/connectors/codex-materialize-runner.js +19 -17
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.js +19 -17
- package/dist/consolidation-provenance-check.d.ts +2 -2
- package/dist/consolidation-undo.d.ts +2 -2
- package/dist/contradiction/index.d.ts +2 -2
- package/dist/contradiction/index.js +10 -2
- package/dist/converge-config.d.ts +1 -1
- package/dist/convergence-refresh.d.ts +2 -2
- package/dist/convergence-refresh.js +21 -19
- 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 +21 -19
- package/dist/cross-lingual-recall.d.ts +70 -0
- package/dist/cross-lingual-recall.js +14 -0
- package/dist/day-summary.d.ts +1 -1
- package/dist/delinearize.d.ts +1 -1
- package/dist/dependency-propagation-config.d.ts +1 -1
- package/dist/{dependency-propagation-delivery-QYJ1-c2M.d.ts → dependency-propagation-delivery-CsGg-VwS.d.ts} +1 -1
- 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-origin-fields.d.ts +1 -1
- package/dist/entity-retrieval.d.ts +2 -2
- package/dist/entity-retrieval.js +19 -17
- package/dist/entity-schema.d.ts +1 -1
- package/dist/episodic-context.d.ts +1 -1
- package/dist/explicit-capture.d.ts +9 -9
- package/dist/explicit-capture.js +7 -6
- package/dist/external-wiki-access.d.ts +12 -13
- package/dist/external-wiki-access.js +46 -44
- 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 -11
- 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-judge.js +2 -2
- package/dist/extraction-liveness.d.ts +1 -1
- package/dist/extraction-normalization.d.ts +1 -1
- package/dist/extraction-normalization.js +2 -2
- package/dist/extraction-prompt.d.ts +2 -2
- package/dist/extraction-prompt.js +1 -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 +1 -1
- package/dist/extraction.js +27 -25
- package/dist/fallback-llm.d.ts +1 -1
- 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-decay-A4SDFMMS.js → graph-edge-decay-FXGELBFA.js} +4 -4
- package/dist/graph-edge-reinforcement.d.ts +1 -1
- package/dist/graph-path-reconstruction.d.ts +1 -1
- package/dist/graph-path-scoring.d.ts +1 -1
- package/dist/graph-snapshot.d.ts +1 -1
- package/dist/graph-snapshot.js +3 -3
- package/dist/graph.d.ts +1 -1
- package/dist/graph.js +3 -3
- package/dist/harmonic-retrieval.js +1 -1
- 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 +718 -701
- package/dist/index.js +188 -139
- package/dist/intent.d.ts +1 -1
- package/dist/lcm/engine.d.ts +1 -1
- package/dist/lcm/engine.js +4 -4
- package/dist/lcm/index.d.ts +1 -1
- package/dist/lcm/index.js +10 -10
- 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-llm.js +2 -2
- package/dist/local-model-endpoint.d.ts +1 -1
- package/dist/maintenance/memory-governance.d.ts +1 -1
- package/dist/maintenance/memory-governance.js +19 -17
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +19 -17
- package/dist/maintenance/rebuild-memory-projection.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-projection.js +20 -18
- package/dist/{maintenance-BjEr3WKG.d.ts → maintenance-jhMpeGne.d.ts} +3 -3
- package/dist/mcp-memory-inspector-app.d.ts +11 -11
- package/dist/mcp-read-only-tools.js +1 -1
- 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-subject-cli.d.ts +177 -0
- package/dist/memory-subject-cli.js +16 -0
- package/dist/memory-subject-cli.js.map +1 -0
- package/dist/memory-subject.d.ts +128 -0
- package/dist/memory-subject.js +44 -0
- package/dist/memory-subject.js.map +1 -0
- package/dist/memory-worth-outcomes.d.ts +5 -4
- package/dist/memory-worth-outcomes.js +1 -1
- package/dist/models-json.d.ts +1 -1
- package/dist/namespaces/migrate.d.ts +3 -3
- package/dist/namespaces/migrate.js +20 -18
- 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 +19 -17
- package/dist/native-knowledge.d.ts +1 -1
- package/dist/offline-sync-impression-drain.d.ts +1 -1
- package/dist/operator-doctor-corpus.d.ts +1 -1
- package/dist/operator-doctor-corpus.js +22 -20
- package/dist/operator-doctor-replica.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +3 -3
- package/dist/operator-toolkit.js +31 -28
- package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
- package/dist/orchestration/maintenance.d.ts +4 -4
- package/dist/orchestration/maintenance.js +25 -23
- package/dist/{orchestrator-CC4USYcD.d.ts → orchestrator-DyGUC7re.d.ts} +8 -8
- package/dist/orchestrator.d.ts +9 -9
- package/dist/orchestrator.js +120 -116
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/{pipeline-DWgAgvJN.d.ts → pipeline-C25Oxtp1.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/{public-http-CkQC8VpD.d.ts → public-http-CMe7NQzj.d.ts} +1 -1
- package/dist/{qmd-BJGhj4ta.d.ts → qmd-DkDVCbgF.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 +2 -2
- 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-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/manifest.js +3 -3
- package/dist/reconcile/plan.d.ts +1 -1
- 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-DKMBPXHI.js → resolution-MFY72STR.js} +11 -3
- package/dist/resolution-MFY72STR.js.map +1 -0
- package/dist/resolve-auth-token.d.ts +1 -1
- package/dist/resume-bundles.js +7 -2
- 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 +10 -2
- package/dist/schemas.d.ts +122 -108
- package/dist/schemas.js +1 -1
- package/dist/{scope-profiles-C4PdBYKc.d.ts → scope-profiles-B9xMoFO-.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 +14 -14
- 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 +2 -2
- package/dist/search/port.js +1 -1
- package/dist/search/remote-backend.d.ts +1 -1
- package/dist/search/remote-backend.js +2 -2
- package/dist/{semantic-consolidation-5-HOmIhL.d.ts → semantic-consolidation-C4uykW84.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +20 -18
- package/dist/semantic-rule-promotion.js +19 -17
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +19 -17
- package/dist/{service-8pDy6w8u.d.ts → service-DCZDZNcV.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 +21 -19
- package/dist/{storage-VpDzURiA.d.ts → storage-CcKmEjL8.d.ts} +3 -2
- package/dist/storage.d.ts +2 -2
- package/dist/storage.js +21 -19
- package/dist/subject-config.d.ts +38 -0
- package/dist/subject-config.js +20 -0
- package/dist/subject-config.js.map +1 -0
- package/dist/summarizer.d.ts +1 -1
- package/dist/summarizer.js +3 -3
- package/dist/summary-snapshot.d.ts +1 -1
- package/dist/support-passport/index.d.ts +14 -14
- package/dist/support-passport/index.js +48 -46
- package/dist/temporal-supersession.d.ts +2 -2
- 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/topics.d.ts +1 -1
- package/dist/transcript.d.ts +1 -1
- package/dist/transfer/backup.js +2 -2
- package/dist/transfer/capsule-export.js +2 -2
- package/dist/transfer/capsule-import.js +2 -2
- 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/{types-D9gKdB79.d.ts → types-Pi0lfaEt.d.ts} +40 -29
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +1 -1
- package/dist/verified-recall.js +19 -17
- package/dist/who-knows-cli.d.ts +11 -11
- package/dist/who-knows-cli.js +20 -18
- package/dist/who-knows.d.ts +11 -11
- package/dist/who-knows.js +19 -17
- package/dist/write-envelope.d.ts +5 -2
- package/dist/write-envelope.js +10 -1
- package/package.json +2 -2
- package/scripts/build-with-heap.mjs +1 -1
- package/src/access-boundary.ts +2 -0
- package/src/access-mcp-admin-tools.ts +14 -0
- package/src/access-mcp-output-schemas.ts +6 -0
- package/src/access-mcp.ts +6 -6
- package/src/access-operations-batch.ts +8 -0
- package/src/access-service.ts +85 -0
- package/src/access-surface-catalog.ts +2 -0
- package/src/config.ts +10 -17
- package/src/cross-lingual-recall.test.ts +47 -0
- package/src/cross-lingual-recall.ts +186 -0
- package/src/extraction-prompt.ts +1 -0
- package/src/extraction.ts +4 -1
- package/src/index.ts +5 -6
- package/src/mcp-read-only-tools.ts +1 -0
- package/src/memory-subject-cli.ts +135 -0
- package/src/memory-subject.test.ts +48 -0
- package/src/memory-subject.ts +314 -0
- package/src/memory-worth-outcomes.test.ts +6 -2
- package/src/memory-worth-outcomes.ts +11 -7
- package/src/operator-toolkit.ts +1 -1
- package/src/orchestration/extraction-persist.ts +48 -48
- package/src/orchestration/recall-internal-deps.ts +2 -0
- package/src/orchestration/recall-internal.ts +41 -38
- package/src/orchestration/recall-search-pipeline.ts +16 -0
- package/src/procedural/library-maintenance.test.ts +582 -0
- package/src/procedural/library-maintenance.ts +546 -0
- package/src/procedural/maintenance-config.ts +78 -0
- package/src/procedural/procedure-recall.ts +29 -1
- package/src/procedural/procedure-stats.ts +20 -0
- package/src/schemas.ts +7 -0
- package/src/search/port.ts +2 -1
- package/src/spaces/index.ts +38 -2
- package/src/storage.ts +11 -3
- package/src/subject-config.ts +80 -0
- package/src/types.ts +28 -29
- package/src/write-envelope.test.ts +14 -0
- package/src/write-envelope.ts +24 -3
- package/dist/chunk-4NZHHGVL.js.map +0 -1
- package/dist/chunk-A4VJKT2H.js.map +0 -1
- package/dist/chunk-EIR5VLIH.js.map +0 -1
- package/dist/chunk-GEULB2VI.js.map +0 -1
- package/dist/chunk-HDD4RRIX.js.map +0 -1
- package/dist/chunk-JG22O53B.js.map +0 -1
- package/dist/chunk-LCU5R6TQ.js.map +0 -1
- package/dist/chunk-MSTNSVXI.js.map +0 -1
- package/dist/chunk-RQYV6M2T.js.map +0 -1
- package/dist/chunk-UPIKAT5A.js.map +0 -1
- package/dist/chunk-URS5GSM7.js.map +0 -1
- package/dist/chunk-VRYEXPRX.js.map +0 -1
- package/dist/chunk-XBRGJJK7.js.map +0 -1
- package/dist/chunk-YHSNAGN3.js.map +0 -1
- package/dist/chunk-YQ3CBLL4.js.map +0 -1
- package/dist/chunk-ZAI5R6DW.js.map +0 -1
- /package/dist/{capsule-crypto-7FJQINUR.js.map → capsule-crypto-YO5QJ6L3.js.map} +0 -0
- /package/dist/{chunk-A6LBDIFS.js.map → chunk-2E36UXVW.js.map} +0 -0
- /package/dist/{chunk-RRJUMSFX.js.map → chunk-2XDWWPTN.js.map} +0 -0
- /package/dist/{chunk-QCNB4BRE.js.map → chunk-2YI72KM3.js.map} +0 -0
- /package/dist/{chunk-3YTTAGPB.js.map → chunk-3DVBKTSO.js.map} +0 -0
- /package/dist/{chunk-IFK3PVM7.js.map → chunk-3I7ASZN3.js.map} +0 -0
- /package/dist/{chunk-HBKFYXBA.js.map → chunk-4KYOLI6M.js.map} +0 -0
- /package/dist/{chunk-RNKNL5GQ.js.map → chunk-5NM4OH4P.js.map} +0 -0
- /package/dist/{chunk-CESQ4CMC.js.map → chunk-5YQ63T4B.js.map} +0 -0
- /package/dist/{chunk-PMVPCZJZ.js.map → chunk-6433HV72.js.map} +0 -0
- /package/dist/{chunk-NS5ETDYD.js.map → chunk-7BEPVIH3.js.map} +0 -0
- /package/dist/{chunk-SHQFYZTD.js.map → chunk-7YQ4IYS2.js.map} +0 -0
- /package/dist/{chunk-YMOPYG3K.js.map → chunk-BIJAWZYW.js.map} +0 -0
- /package/dist/{chunk-2NLLXCJG.js.map → chunk-BXLOS5AJ.js.map} +0 -0
- /package/dist/{chunk-VYEPACWY.js.map → chunk-C24UZSFW.js.map} +0 -0
- /package/dist/{chunk-ZPN7W3OP.js.map → chunk-CDUUDBWJ.js.map} +0 -0
- /package/dist/{chunk-K7JMKLKV.js.map → chunk-CT56C22C.js.map} +0 -0
- /package/dist/{chunk-KWIGDKM2.js.map → chunk-D2YNNDML.js.map} +0 -0
- /package/dist/{chunk-ZFBZ4QTS.js.map → chunk-DJZWNKFO.js.map} +0 -0
- /package/dist/{chunk-X7Y7WX73.js.map → chunk-DQEMWVMT.js.map} +0 -0
- /package/dist/{chunk-VNIETTMR.js.map → chunk-DZUJ46DO.js.map} +0 -0
- /package/dist/{chunk-T6QMNVMO.js.map → chunk-EILZG5VC.js.map} +0 -0
- /package/dist/{chunk-652S5A5D.js.map → chunk-EUYWQ7TS.js.map} +0 -0
- /package/dist/{chunk-YIZRTHHF.js.map → chunk-GDFVPUJ5.js.map} +0 -0
- /package/dist/{chunk-ML3U4KPR.js.map → chunk-GIC6BASP.js.map} +0 -0
- /package/dist/{chunk-7PWWGYGO.js.map → chunk-GNCCUR6K.js.map} +0 -0
- /package/dist/{chunk-Y5UT73VZ.js.map → chunk-IID2CMUU.js.map} +0 -0
- /package/dist/{chunk-MB6GLPRY.js.map → chunk-IVKIODHO.js.map} +0 -0
- /package/dist/{chunk-UYCIS6V5.js.map → chunk-JCWY73FK.js.map} +0 -0
- /package/dist/{chunk-WHA6ISFX.js.map → chunk-JYYBA7TF.js.map} +0 -0
- /package/dist/{chunk-T42L3S6A.js.map → chunk-LBWQ65SX.js.map} +0 -0
- /package/dist/{chunk-JXMXTV6C.js.map → chunk-LGO6A7GJ.js.map} +0 -0
- /package/dist/{chunk-H6B6GPVH.js.map → chunk-LZH5FR2W.js.map} +0 -0
- /package/dist/{chunk-5HERQ5FX.js.map → chunk-M4AHBM72.js.map} +0 -0
- /package/dist/{chunk-GOGHZVY3.js.map → chunk-MN4KB2A4.js.map} +0 -0
- /package/dist/{chunk-OQIRBGUU.js.map → chunk-N37X5RU7.js.map} +0 -0
- /package/dist/{chunk-E6EQTCOQ.js.map → chunk-NKKD4ZAU.js.map} +0 -0
- /package/dist/{chunk-VANZKHTN.js.map → chunk-NNBZS3DY.js.map} +0 -0
- /package/dist/{chunk-IWUN4RZL.js.map → chunk-NTWN6HB2.js.map} +0 -0
- /package/dist/{chunk-2PSX5BJU.js.map → chunk-NZPFCP5A.js.map} +0 -0
- /package/dist/{chunk-U56TGYVS.js.map → chunk-OCZIYAE5.js.map} +0 -0
- /package/dist/{chunk-I2HTKOOP.js.map → chunk-ODZG724P.js.map} +0 -0
- /package/dist/{chunk-LTBKKSCX.js.map → chunk-OLBZ2WGG.js.map} +0 -0
- /package/dist/{chunk-GQ5OJVTM.js.map → chunk-OTHZWLUD.js.map} +0 -0
- /package/dist/{chunk-PD66CVSD.js.map → chunk-OUKBMQ2O.js.map} +0 -0
- /package/dist/{chunk-4E6IJCLC.js.map → chunk-PE255F4T.js.map} +0 -0
- /package/dist/{chunk-GPFZFCRN.js.map → chunk-PP7R754B.js.map} +0 -0
- /package/dist/{chunk-PHX3ET3C.js.map → chunk-QOS5LBZN.js.map} +0 -0
- /package/dist/{chunk-G72IPMR7.js.map → chunk-R4OCGPSH.js.map} +0 -0
- /package/dist/{chunk-VUP47UJI.js.map → chunk-R7JAM2XF.js.map} +0 -0
- /package/dist/{chunk-JBPKEARU.js.map → chunk-RKNJBZ55.js.map} +0 -0
- /package/dist/{chunk-P4CQCL27.js.map → chunk-S2DPMJXH.js.map} +0 -0
- /package/dist/{chunk-OXL5QKTV.js.map → chunk-SIHSCCUQ.js.map} +0 -0
- /package/dist/{chunk-KLPVXLQJ.js.map → chunk-SPUJNJJC.js.map} +0 -0
- /package/dist/{chunk-CCP6LXQJ.js.map → chunk-SQI57UCJ.js.map} +0 -0
- /package/dist/{chunk-UIYYS2YI.js.map → chunk-SVSRPG6M.js.map} +0 -0
- /package/dist/{chunk-RNORDDD6.js.map → chunk-THG4GYIE.js.map} +0 -0
- /package/dist/{chunk-CUIAHZPZ.js.map → chunk-TR7DGXGI.js.map} +0 -0
- /package/dist/{chunk-PDKBKBC2.js.map → chunk-UIN2BWDD.js.map} +0 -0
- /package/dist/{chunk-4GD7YV4Y.js.map → chunk-UXO5IMBK.js.map} +0 -0
- /package/dist/{chunk-KQAFEZQX.js.map → chunk-VDX2J7OX.js.map} +0 -0
- /package/dist/{chunk-MUJ4QFUQ.js.map → chunk-W4BMEGQA.js.map} +0 -0
- /package/dist/{chunk-5HK3CJAR.js.map → chunk-W675UJCZ.js.map} +0 -0
- /package/dist/{chunk-MDVBCPOS.js.map → chunk-XCTXS7VY.js.map} +0 -0
- /package/dist/{chunk-NTERJOFA.js.map → chunk-XRYZRW54.js.map} +0 -0
- /package/dist/{chunk-LA2MSK23.js.map → chunk-Y7DK7HHJ.js.map} +0 -0
- /package/dist/{chunk-34BMUGRA.js.map → chunk-YB42WZCY.js.map} +0 -0
- /package/dist/{chunk-LWVG6U7L.js.map → chunk-YHCBJULX.js.map} +0 -0
- /package/dist/{chunk-VYISFWVX.js.map → chunk-YQNNHLCG.js.map} +0 -0
- /package/dist/{chunk-FFPBTNLC.js.map → chunk-Z7PBQPJ4.js.map} +0 -0
- /package/dist/{chunk-MXJU4GCA.js.map → chunk-ZO6AXLEH.js.map} +0 -0
- /package/dist/{chunk-JNSLW2O4.js.map → chunk-ZQHI2BZB.js.map} +0 -0
- /package/dist/{graph-edge-decay-A4SDFMMS.js.map → cross-lingual-recall.js.map} +0 -0
- /package/dist/{resolution-DKMBPXHI.js.map → graph-edge-decay-FXGELBFA.js.map} +0 -0
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
loadSyncState,
|
|
7
7
|
syncWearableSource,
|
|
8
8
|
wearableSourceLabel
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CDUUDBWJ.js";
|
|
10
10
|
import {
|
|
11
11
|
CompressionGuidelineCoordinator
|
|
12
12
|
} from "./chunk-UXREWVW4.js";
|
|
13
13
|
import {
|
|
14
14
|
ActivityStore,
|
|
15
15
|
MaintenanceScheduler
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CT56C22C.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-M4AHBM72.js";
|
|
26
26
|
import {
|
|
27
27
|
chunkTranscriptEntries
|
|
28
28
|
} from "./chunk-TECVW3JP.js";
|
|
@@ -32,18 +32,27 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
CompoundingEngine,
|
|
34
34
|
defaultTierMigrationCycleBudget
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2YI72KM3.js";
|
|
36
36
|
import {
|
|
37
37
|
SharedContextManager
|
|
38
38
|
} from "./chunk-VI637ILW.js";
|
|
39
|
+
import {
|
|
40
|
+
cleanArchivedUserMessage
|
|
41
|
+
} from "./chunk-47DU4SGJ.js";
|
|
39
42
|
import {
|
|
40
43
|
applyUtilityPromotionRuntimePolicy,
|
|
41
44
|
applyUtilityRankingRuntimeDelta,
|
|
42
45
|
loadUtilityRuntimeValues
|
|
43
46
|
} from "./chunk-SEF4IOFE.js";
|
|
44
47
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./chunk-
|
|
48
|
+
extractTopics
|
|
49
|
+
} from "./chunk-KVDUKH5E.js";
|
|
50
|
+
import {
|
|
51
|
+
buildTemporalTimelineRecallSection
|
|
52
|
+
} from "./chunk-2NKY7OC6.js";
|
|
53
|
+
import {
|
|
54
|
+
CODEX_THREAD_KEY_PREFIX
|
|
55
|
+
} from "./chunk-4EX5WZ4M.js";
|
|
47
56
|
import {
|
|
48
57
|
TierMigrationExecutor
|
|
49
58
|
} from "./chunk-YRFAYOFQ.js";
|
|
@@ -53,18 +62,9 @@ import {
|
|
|
53
62
|
import {
|
|
54
63
|
TmtBuilder
|
|
55
64
|
} from "./chunk-ECZU5BJH.js";
|
|
56
|
-
import {
|
|
57
|
-
extractTopics
|
|
58
|
-
} from "./chunk-KVDUKH5E.js";
|
|
59
|
-
import {
|
|
60
|
-
buildTemporalTimelineRecallSection
|
|
61
|
-
} from "./chunk-2NKY7OC6.js";
|
|
62
|
-
import {
|
|
63
|
-
CODEX_THREAD_KEY_PREFIX
|
|
64
|
-
} from "./chunk-4EX5WZ4M.js";
|
|
65
65
|
import {
|
|
66
66
|
HourlySummarizer
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-EUYWQ7TS.js";
|
|
68
68
|
import {
|
|
69
69
|
buildTargetedFactRecallSection,
|
|
70
70
|
shouldRecallTargetedFactEvidence
|
|
@@ -72,6 +72,11 @@ import {
|
|
|
72
72
|
import {
|
|
73
73
|
SessionObserverState
|
|
74
74
|
} from "./chunk-ODZKV2F7.js";
|
|
75
|
+
import {
|
|
76
|
+
RerankCache,
|
|
77
|
+
reorderByRankedKeys,
|
|
78
|
+
rerankLocalOrNoop
|
|
79
|
+
} from "./chunk-LUDXM7MD.js";
|
|
75
80
|
import {
|
|
76
81
|
buildResponseGuidanceRecallSection,
|
|
77
82
|
shouldRecallResponseGuidance
|
|
@@ -106,11 +111,6 @@ import {
|
|
|
106
111
|
import {
|
|
107
112
|
RelevanceStore
|
|
108
113
|
} from "./chunk-KATEWTQJ.js";
|
|
109
|
-
import {
|
|
110
|
-
RerankCache,
|
|
111
|
-
reorderByRankedKeys,
|
|
112
|
-
rerankLocalOrNoop
|
|
113
|
-
} from "./chunk-LUDXM7MD.js";
|
|
114
114
|
import {
|
|
115
115
|
dedupeResultsByNamespace,
|
|
116
116
|
hasMemoryForResult,
|
|
@@ -160,10 +160,10 @@ import {
|
|
|
160
160
|
} from "./chunk-OH7QLI6W.js";
|
|
161
161
|
import {
|
|
162
162
|
ExtractionEngine
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-LUNJ3WFO.js";
|
|
164
164
|
import {
|
|
165
165
|
parseMemoryActionEligibilityContext
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-7BDZTALN.js";
|
|
167
167
|
import {
|
|
168
168
|
ModelRegistry
|
|
169
169
|
} from "./chunk-WLZYGLJ4.js";
|
|
@@ -176,10 +176,15 @@ import {
|
|
|
176
176
|
getVerdictKind,
|
|
177
177
|
judgeFactDurability,
|
|
178
178
|
validateProcedureExtraction
|
|
179
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-3DVBKTSO.js";
|
|
180
180
|
import {
|
|
181
181
|
buildExplicitCueRecallSection
|
|
182
182
|
} from "./chunk-TVIVY7KU.js";
|
|
183
|
+
import {
|
|
184
|
+
buildEntityRecallSection,
|
|
185
|
+
entityRecentTranscriptLookbackHours,
|
|
186
|
+
readRecentEntityTranscriptEntries
|
|
187
|
+
} from "./chunk-DZUJ46DO.js";
|
|
183
188
|
import {
|
|
184
189
|
planEpisodeWindowsWithFallback
|
|
185
190
|
} from "./chunk-T3GIETKV.js";
|
|
@@ -196,11 +201,6 @@ import {
|
|
|
196
201
|
import {
|
|
197
202
|
EmbeddingFallback
|
|
198
203
|
} from "./chunk-DFEODULB.js";
|
|
199
|
-
import {
|
|
200
|
-
buildEntityRecallSection,
|
|
201
|
-
entityRecentTranscriptLookbackHours,
|
|
202
|
-
readRecentEntityTranscriptEntries
|
|
203
|
-
} from "./chunk-VNIETTMR.js";
|
|
204
204
|
import {
|
|
205
205
|
formatDaySummaryMemories
|
|
206
206
|
} from "./chunk-LVXBC6YB.js";
|
|
@@ -209,31 +209,31 @@ import {
|
|
|
209
209
|
} from "./chunk-VY47VI2T.js";
|
|
210
210
|
import {
|
|
211
211
|
refreshConvergedNamespaces
|
|
212
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-Y7DK7HHJ.js";
|
|
213
213
|
import {
|
|
214
214
|
builtInConnectorPackageSpecifier,
|
|
215
215
|
ensureBuiltInWearableConnectors,
|
|
216
216
|
getWearableConnector,
|
|
217
217
|
listWearableConnectors,
|
|
218
218
|
screenCandidateFact
|
|
219
|
-
} from "./chunk-
|
|
220
|
-
import {
|
|
221
|
-
normalizeReplaySessionKey
|
|
222
|
-
} from "./chunk-AJVLDJU6.js";
|
|
219
|
+
} from "./chunk-LGO6A7GJ.js";
|
|
223
220
|
import {
|
|
224
221
|
RoutingRulesStore
|
|
225
222
|
} from "./chunk-TBUEE7XF.js";
|
|
223
|
+
import {
|
|
224
|
+
normalizeReplaySessionKey
|
|
225
|
+
} from "./chunk-AJVLDJU6.js";
|
|
226
226
|
import {
|
|
227
227
|
compareVerifiedEpisodeResults,
|
|
228
228
|
searchVerifiedEpisodes
|
|
229
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-2E36UXVW.js";
|
|
230
230
|
import {
|
|
231
231
|
ThreadingManager
|
|
232
232
|
} from "./chunk-OJP3N7UK.js";
|
|
233
233
|
import {
|
|
234
234
|
compareVerifiedSemanticRuleResults,
|
|
235
235
|
searchVerifiedSemanticRules
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-ZO6AXLEH.js";
|
|
237
237
|
import {
|
|
238
238
|
searchWorkProductLedgerEntries
|
|
239
239
|
} from "./chunk-NRLELHAY.js";
|
|
@@ -246,17 +246,17 @@ import {
|
|
|
246
246
|
import {
|
|
247
247
|
runNamespaceMaintenanceFanout,
|
|
248
248
|
summarizeNamespaceMaintenanceHealth
|
|
249
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-ZWXJBFZU.js";
|
|
250
250
|
import {
|
|
251
251
|
planNamespaceMaintenance
|
|
252
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-MN4KB2A4.js";
|
|
253
|
+
import {
|
|
254
|
+
searchHarmonicRetrieval
|
|
255
|
+
} from "./chunk-SIHSCCUQ.js";
|
|
253
256
|
import {
|
|
254
257
|
isAboveImportanceThreshold,
|
|
255
258
|
scoreImportance
|
|
256
259
|
} from "./chunk-UOBPK2OS.js";
|
|
257
|
-
import {
|
|
258
|
-
searchHarmonicRetrieval
|
|
259
|
-
} from "./chunk-OXL5QKTV.js";
|
|
260
260
|
import {
|
|
261
261
|
EXTRACTION_JUDGE_VERDICT_CATEGORY,
|
|
262
262
|
recordJudgeVerdict
|
|
@@ -277,7 +277,7 @@ import {
|
|
|
277
277
|
} from "./chunk-NOB2T2FC.js";
|
|
278
278
|
import {
|
|
279
279
|
SmartBuffer
|
|
280
|
-
} from "./chunk-
|
|
280
|
+
} from "./chunk-TR7DGXGI.js";
|
|
281
281
|
import {
|
|
282
282
|
buildConsolidationPrompt,
|
|
283
283
|
buildExtensionsBlockForConsolidation,
|
|
@@ -287,7 +287,7 @@ import {
|
|
|
287
287
|
materializeAfterSemanticConsolidation,
|
|
288
288
|
parseConsolidationResponse,
|
|
289
289
|
parseOperatorAwareConsolidationResponse
|
|
290
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-ZQHI2BZB.js";
|
|
291
291
|
import {
|
|
292
292
|
BootstrapEngine
|
|
293
293
|
} from "./chunk-MYVPLJOO.js";
|
|
@@ -305,7 +305,7 @@ import {
|
|
|
305
305
|
} from "./chunk-6TBIWIAG.js";
|
|
306
306
|
import {
|
|
307
307
|
detectMeetings
|
|
308
|
-
} from "./chunk-
|
|
308
|
+
} from "./chunk-BWLRUMOG.js";
|
|
309
309
|
import {
|
|
310
310
|
compileCorrectionRule,
|
|
311
311
|
correctionsFilePath,
|
|
@@ -330,14 +330,14 @@ import {
|
|
|
330
330
|
} from "./chunk-KD3QD3A5.js";
|
|
331
331
|
import {
|
|
332
332
|
MeetingsInputError
|
|
333
|
-
} from "./chunk-
|
|
333
|
+
} from "./chunk-4KYOLI6M.js";
|
|
334
334
|
import {
|
|
335
335
|
WearablesInputError,
|
|
336
336
|
describeErrorForOperator
|
|
337
337
|
} from "./chunk-V7IZKJI3.js";
|
|
338
338
|
import {
|
|
339
339
|
NamespaceCatalog
|
|
340
|
-
} from "./chunk-
|
|
340
|
+
} from "./chunk-SQI57UCJ.js";
|
|
341
341
|
import {
|
|
342
342
|
recordDreamsPhaseRun
|
|
343
343
|
} from "./chunk-EQWEIIKQ.js";
|
|
@@ -354,10 +354,10 @@ import {
|
|
|
354
354
|
filterRecallCandidates,
|
|
355
355
|
isGenericRecallExcludedPath,
|
|
356
356
|
isTopLevelArchivePath
|
|
357
|
-
} from "./chunk-
|
|
357
|
+
} from "./chunk-SB7D4BT7.js";
|
|
358
358
|
import {
|
|
359
359
|
importCapsule
|
|
360
|
-
} from "./chunk-
|
|
360
|
+
} from "./chunk-6433HV72.js";
|
|
361
361
|
import {
|
|
362
362
|
isCodingGraphInstalled
|
|
363
363
|
} from "./chunk-VQ7B2Q6M.js";
|
|
@@ -380,7 +380,7 @@ import {
|
|
|
380
380
|
} from "./chunk-ZVZHG7AI.js";
|
|
381
381
|
import {
|
|
382
382
|
buildXraySnapshot
|
|
383
|
-
} from "./chunk-
|
|
383
|
+
} from "./chunk-3I7ASZN3.js";
|
|
384
384
|
import {
|
|
385
385
|
objectiveStateStoreOverrideForNamespace,
|
|
386
386
|
searchObjectiveStateSnapshots
|
|
@@ -394,13 +394,13 @@ import {
|
|
|
394
394
|
} from "./chunk-NLE6TSLG.js";
|
|
395
395
|
import {
|
|
396
396
|
LocalLlmClient
|
|
397
|
-
} from "./chunk-
|
|
397
|
+
} from "./chunk-IVKIODHO.js";
|
|
398
398
|
import {
|
|
399
399
|
buildProcedurePersistBody
|
|
400
400
|
} from "./chunk-QDW3E4RD.js";
|
|
401
401
|
import {
|
|
402
402
|
shouldSkipImplicitExtraction
|
|
403
|
-
} from "./chunk-
|
|
403
|
+
} from "./chunk-7BEPVIH3.js";
|
|
404
404
|
import {
|
|
405
405
|
boundRecallContextComposition,
|
|
406
406
|
composeRecallContext,
|
|
@@ -411,10 +411,10 @@ import {
|
|
|
411
411
|
} from "./chunk-7ZNJN5WZ.js";
|
|
412
412
|
import {
|
|
413
413
|
NamespaceStorageRouter
|
|
414
|
-
} from "./chunk-
|
|
414
|
+
} from "./chunk-LZH5FR2W.js";
|
|
415
415
|
import {
|
|
416
416
|
GraphIndex
|
|
417
|
-
} from "./chunk-
|
|
417
|
+
} from "./chunk-BIJAWZYW.js";
|
|
418
418
|
import {
|
|
419
419
|
BulkImportBatchPartialFailureError,
|
|
420
420
|
COMPACTION_SIGNAL_MAX_AGE_MS,
|
|
@@ -455,7 +455,7 @@ import {
|
|
|
455
455
|
throwIfRecallAborted,
|
|
456
456
|
tokenizeRecallQuery,
|
|
457
457
|
utcDateKeysForLocalDay
|
|
458
|
-
} from "./chunk-
|
|
458
|
+
} from "./chunk-THG4GYIE.js";
|
|
459
459
|
import {
|
|
460
460
|
inferIntentFromText,
|
|
461
461
|
intentCompatibilityScore,
|
|
@@ -464,10 +464,10 @@ import {
|
|
|
464
464
|
} from "./chunk-CSAKJVXW.js";
|
|
465
465
|
import {
|
|
466
466
|
searchCausalTrajectories
|
|
467
|
-
} from "./chunk-
|
|
467
|
+
} from "./chunk-PP7R754B.js";
|
|
468
468
|
import {
|
|
469
469
|
buildChainFollowupGenerator
|
|
470
|
-
} from "./chunk-
|
|
470
|
+
} from "./chunk-NTWN6HB2.js";
|
|
471
471
|
import {
|
|
472
472
|
QmdResultResolver,
|
|
473
473
|
StorageManager,
|
|
@@ -486,7 +486,7 @@ import {
|
|
|
486
486
|
reconstructFusionInputs,
|
|
487
487
|
selfDeps,
|
|
488
488
|
serializeFusionDay
|
|
489
|
-
} from "./chunk-
|
|
489
|
+
} from "./chunk-J275IYMG.js";
|
|
490
490
|
import {
|
|
491
491
|
bodyIsEscaped,
|
|
492
492
|
decodeTranscriptBody,
|
|
@@ -503,12 +503,12 @@ import {
|
|
|
503
503
|
import {
|
|
504
504
|
NamespaceSearchRouter,
|
|
505
505
|
namespaceCollectionName
|
|
506
|
-
} from "./chunk-
|
|
506
|
+
} from "./chunk-YHCBJULX.js";
|
|
507
507
|
import {
|
|
508
508
|
createConversationIndexRuntime,
|
|
509
509
|
createSearchBackend,
|
|
510
510
|
isSearchBackendEnabled
|
|
511
|
-
} from "./chunk-
|
|
511
|
+
} from "./chunk-DJZWNKFO.js";
|
|
512
512
|
import {
|
|
513
513
|
NoopSearchBackend
|
|
514
514
|
} from "./chunk-CYEPCZN5.js";
|
|
@@ -522,7 +522,7 @@ import {
|
|
|
522
522
|
} from "./chunk-S2V7RUCL.js";
|
|
523
523
|
import {
|
|
524
524
|
confidenceTier
|
|
525
|
-
} from "./chunk-
|
|
525
|
+
} from "./chunk-SBDCZ2AX.js";
|
|
526
526
|
import {
|
|
527
527
|
lintWorkspaceFiles,
|
|
528
528
|
rotateMarkdownFileToArchive
|
|
@@ -536,13 +536,18 @@ import {
|
|
|
536
536
|
TAG_LIMITS,
|
|
537
537
|
composeMemoryEnvelope,
|
|
538
538
|
isMemoryCategory
|
|
539
|
-
} from "./chunk-
|
|
539
|
+
} from "./chunk-RAIUTAZZ.js";
|
|
540
540
|
import {
|
|
541
541
|
normalizeTags
|
|
542
542
|
} from "./chunk-BT7NVCML.js";
|
|
543
543
|
import {
|
|
544
544
|
checkCorpusReadAbort
|
|
545
545
|
} from "./chunk-5GINB5LC.js";
|
|
546
|
+
import {
|
|
547
|
+
detectLanguageHint,
|
|
548
|
+
dominantCorpusLanguage,
|
|
549
|
+
planCrossScript
|
|
550
|
+
} from "./chunk-3WU7XOFN.js";
|
|
546
551
|
import {
|
|
547
552
|
bumpMemoryCorpusVersionForDir
|
|
548
553
|
} from "./chunk-XCB6QDL6.js";
|
|
@@ -585,6 +590,11 @@ import {
|
|
|
585
590
|
import {
|
|
586
591
|
assertExternalWikiRootOutsideMemoryDirCanonical
|
|
587
592
|
} from "./chunk-JV3C2MNQ.js";
|
|
593
|
+
import {
|
|
594
|
+
evaluateSubjectGuard,
|
|
595
|
+
isSharedPromotionTarget,
|
|
596
|
+
resolveWriteSubject
|
|
597
|
+
} from "./chunk-RIAM7DND.js";
|
|
588
598
|
import {
|
|
589
599
|
coerceBool
|
|
590
600
|
} from "./chunk-PQVCH2AE.js";
|
|
@@ -636,9 +646,6 @@ import {
|
|
|
636
646
|
isActiveMemoryStatus,
|
|
637
647
|
toMemoryPathRel
|
|
638
648
|
} from "./chunk-7RJUVTVF.js";
|
|
639
|
-
import {
|
|
640
|
-
ContentHashIndex
|
|
641
|
-
} from "./chunk-JOEJG4SD.js";
|
|
642
649
|
import {
|
|
643
650
|
excludeSupportPassportPrivateMemories,
|
|
644
651
|
isSupportPassportPrivateMemory
|
|
@@ -647,6 +654,9 @@ import {
|
|
|
647
654
|
normalizeAttributePairs,
|
|
648
655
|
stripAttributesSuffix
|
|
649
656
|
} from "./chunk-JDSVLVCG.js";
|
|
657
|
+
import {
|
|
658
|
+
ContentHashIndex
|
|
659
|
+
} from "./chunk-JOEJG4SD.js";
|
|
650
660
|
import {
|
|
651
661
|
sanitizeMemoryContent
|
|
652
662
|
} from "./chunk-5GKPFL3S.js";
|
|
@@ -5012,6 +5022,17 @@ var ExtractionPersistCoordinator = class {
|
|
|
5012
5022
|
const namespacesEnabled = resolveNamespaceCapabilities(this.deps.config).namespaces;
|
|
5013
5023
|
const sourceConnector = sourceContext?.sourceConnector;
|
|
5014
5024
|
const origin = classifyExtractionOrigin(sourceContext);
|
|
5025
|
+
const subjectGuardAllows = (subject, target, label) => {
|
|
5026
|
+
const decision = evaluateSubjectGuard({
|
|
5027
|
+
subject,
|
|
5028
|
+
sharedTarget: isSharedPromotionTarget(target),
|
|
5029
|
+
mode: this.deps.config.subjectGuard
|
|
5030
|
+
});
|
|
5031
|
+
if (decision.action !== "allow") {
|
|
5032
|
+
log.warn(`subject-guard(${decision.action}) ${label}: ${decision.reason}`);
|
|
5033
|
+
}
|
|
5034
|
+
return decision.action !== "reject";
|
|
5035
|
+
};
|
|
5015
5036
|
const promoteMemoryToProfileTargets = async (options) => {
|
|
5016
5037
|
if (!scopeProfileWritePlan || !profileAutoPromotionAllows(scopeProfileWritePlan, options.category, options.confidence))
|
|
5017
5038
|
return;
|
|
@@ -5028,6 +5049,7 @@ var ExtractionPersistCoordinator = class {
|
|
|
5028
5049
|
try {
|
|
5029
5050
|
const targetStorage = await this.deps.getStorageRouter().storageFor(target.namespace);
|
|
5030
5051
|
if (targetStorage.dir === options.sourceStorage.dir) continue;
|
|
5052
|
+
if (!subjectGuardAllows(options.subject, target.target, `profile promotion to ${target.target}`)) continue;
|
|
5031
5053
|
const targetPromotionEnvelope = composeSalvagedExtractionEnvelope(
|
|
5032
5054
|
{
|
|
5033
5055
|
content: citedContent,
|
|
@@ -5038,7 +5060,8 @@ var ExtractionPersistCoordinator = class {
|
|
|
5038
5060
|
entityRef: options.entityRef,
|
|
5039
5061
|
structuredAttributes: options.structuredAttributes,
|
|
5040
5062
|
validAt: options.validAt,
|
|
5041
|
-
...sourceContext?.sourceConnector ? { sourceConnector: sourceContext.sourceConnector } : {}
|
|
5063
|
+
...sourceContext?.sourceConnector ? { sourceConnector: sourceContext.sourceConnector } : {},
|
|
5064
|
+
...options.subject !== void 0 ? { subject: options.subject } : {}
|
|
5042
5065
|
},
|
|
5043
5066
|
{ source: `${options.source}-${target.target}-promotion` }
|
|
5044
5067
|
);
|
|
@@ -5163,6 +5186,7 @@ var ExtractionPersistCoordinator = class {
|
|
|
5163
5186
|
options.confidence
|
|
5164
5187
|
))
|
|
5165
5188
|
return;
|
|
5189
|
+
if (!subjectGuardAllows(options.subject, "serverShared", "shared promotion")) return;
|
|
5166
5190
|
try {
|
|
5167
5191
|
const sharedStorage = await this.deps.getStorageRouter().storageFor(
|
|
5168
5192
|
this.deps.config.sharedNamespace
|
|
@@ -5180,7 +5204,8 @@ var ExtractionPersistCoordinator = class {
|
|
|
5180
5204
|
entityRef: options.entityRef,
|
|
5181
5205
|
structuredAttributes: options.structuredAttributes,
|
|
5182
5206
|
validAt: options.validAt,
|
|
5183
|
-
...sourceContext?.sourceConnector ? { sourceConnector: sourceContext.sourceConnector } : {}
|
|
5207
|
+
...sourceContext?.sourceConnector ? { sourceConnector: sourceContext.sourceConnector } : {},
|
|
5208
|
+
...options.subject !== void 0 ? { subject: options.subject } : {}
|
|
5184
5209
|
},
|
|
5185
5210
|
{ source: `${options.source}-shared-promotion` }
|
|
5186
5211
|
);
|
|
@@ -5553,7 +5578,7 @@ var ExtractionPersistCoordinator = class {
|
|
|
5553
5578
|
content: f.content,
|
|
5554
5579
|
sourceConnector,
|
|
5555
5580
|
procedureSteps: f.procedureSteps
|
|
5556
|
-
})) {
|
|
5581
|
+
}) && subjectGuardAllows(f.subject, "serverShared", "pre-judge shared routing")) {
|
|
5557
5582
|
factNs = this.deps.config.sharedNamespace;
|
|
5558
5583
|
}
|
|
5559
5584
|
if (factNs) {
|
|
@@ -5712,6 +5737,7 @@ var ExtractionPersistCoordinator = class {
|
|
|
5712
5737
|
);
|
|
5713
5738
|
}
|
|
5714
5739
|
}
|
|
5740
|
+
const factSubject = this.deps.config.subjectClassification?.enabled === true ? resolveWriteSubject(writeCategory, fact.subject) : void 0;
|
|
5715
5741
|
if (lifecycleCaps.extractionScopeClassification && namespacesEnabled && fact.scope === "global" && !routedNamespaceExplicit) {
|
|
5716
5742
|
const currentNs = this.deps.storageDirNamespace(targetStorage.dir);
|
|
5717
5743
|
if (currentNs !== this.deps.config.sharedNamespace && profileAllowsSharedWrites) {
|
|
@@ -5720,7 +5746,7 @@ var ExtractionPersistCoordinator = class {
|
|
|
5720
5746
|
content: fact.content,
|
|
5721
5747
|
sourceConnector,
|
|
5722
5748
|
procedureSteps: fact.procedureSteps
|
|
5723
|
-
})) {
|
|
5749
|
+
}) && subjectGuardAllows(fact.subject, "serverShared", "scope-routing")) {
|
|
5724
5750
|
try {
|
|
5725
5751
|
targetStorage = await this.deps.getStorageRouter().storageFor(
|
|
5726
5752
|
this.deps.config.sharedNamespace
|
|
@@ -6173,6 +6199,7 @@ var ExtractionPersistCoordinator = class {
|
|
|
6173
6199
|
sourceStorage: targetStorage,
|
|
6174
6200
|
category: writeCategory,
|
|
6175
6201
|
content: fact.content,
|
|
6202
|
+
subject: factSubject,
|
|
6176
6203
|
confidence: fact.confidence,
|
|
6177
6204
|
tags: fact.tags,
|
|
6178
6205
|
entityRef: fact.entityRef,
|
|
@@ -6303,7 +6330,8 @@ var ExtractionPersistCoordinator = class {
|
|
|
6303
6330
|
entityRef: typeof fact.entityRef === "string" ? fact.entityRef : void 0,
|
|
6304
6331
|
structuredAttributes: fact.structuredAttributes,
|
|
6305
6332
|
validAt: biTemporal ? biTemporal.validFrom : sourceContext?.validAt,
|
|
6306
|
-
...extractionSourceConnector ? { sourceConnector: extractionSourceConnector } : {}
|
|
6333
|
+
...extractionSourceConnector ? { sourceConnector: extractionSourceConnector } : {},
|
|
6334
|
+
...factSubject !== void 0 ? { subject: factSubject } : {}
|
|
6307
6335
|
},
|
|
6308
6336
|
{ source: extractionWriteSource }
|
|
6309
6337
|
);
|
|
@@ -6400,6 +6428,7 @@ var ExtractionPersistCoordinator = class {
|
|
|
6400
6428
|
category: writeCategory,
|
|
6401
6429
|
content: fact.content,
|
|
6402
6430
|
confidence: fact.confidence,
|
|
6431
|
+
subject: factSubject,
|
|
6403
6432
|
tags: fact.tags,
|
|
6404
6433
|
entityRef: typeof fact.entityRef === "string" ? fact.entityRef : void 0,
|
|
6405
6434
|
structuredAttributes: fact.structuredAttributes,
|
|
@@ -8417,6 +8446,11 @@ async function buildProcedureRecallSection(storage, prompt, config, options) {
|
|
|
8417
8446
|
(m) => m.frontmatter.category === "procedure" && isActiveMemoryStatus(m.frontmatter.status) && (options?.partitionToolScoped !== true || canRecallToolScopedMemory(m.frontmatter, options.requestingConnector))
|
|
8418
8447
|
).map((m) => ({ m, score: scoreProcedureForPrompt(m, trimmed, queryIntent) })).filter((x) => x.score > 0.04).sort((a, b) => b.score - a.score).slice(0, maxN);
|
|
8419
8448
|
if (scored.length === 0) return null;
|
|
8449
|
+
if (options?.injectedMemories) {
|
|
8450
|
+
for (const { m } of scored) {
|
|
8451
|
+
options.injectedMemories.push({ id: m.frontmatter.id, path: m.path });
|
|
8452
|
+
}
|
|
8453
|
+
}
|
|
8420
8454
|
const security = resolveSecurityCapabilities(config);
|
|
8421
8455
|
const blocks = scored.map(({ m, score }) => {
|
|
8422
8456
|
const id = m.frontmatter.id;
|
|
@@ -8435,6 +8469,16 @@ ${body}`;
|
|
|
8435
8469
|
|
|
8436
8470
|
${blocks.join("\n\n")}`;
|
|
8437
8471
|
}
|
|
8472
|
+
function mergeProcedureInjections(existing, injected) {
|
|
8473
|
+
if (injected.length === 0) return existing;
|
|
8474
|
+
const seen = new Set(existing.map((memory) => memory.id));
|
|
8475
|
+
const extra = injected.filter((memory) => {
|
|
8476
|
+
if (seen.has(memory.id)) return false;
|
|
8477
|
+
seen.add(memory.id);
|
|
8478
|
+
return true;
|
|
8479
|
+
});
|
|
8480
|
+
return extra.length === 0 ? existing : [...existing, ...extra];
|
|
8481
|
+
}
|
|
8438
8482
|
|
|
8439
8483
|
// src/orchestration/episodic-context-section.ts
|
|
8440
8484
|
var EPISODIC_FACT_SCAN_LIMIT = 8;
|
|
@@ -10098,6 +10142,17 @@ ${rows.join("\n")}
|
|
|
10098
10142
|
});
|
|
10099
10143
|
return prefilter;
|
|
10100
10144
|
})();
|
|
10145
|
+
const crossScriptPlanPromise = (async () => {
|
|
10146
|
+
const queryLanguage = detectLanguageHint(retrievalQuery);
|
|
10147
|
+
if (queryLanguage === void 0) return null;
|
|
10148
|
+
const corpusLanguage = await dominantCorpusLanguage(this.deps.storage);
|
|
10149
|
+
if (corpusLanguage === void 0) return null;
|
|
10150
|
+
return planCrossScript({
|
|
10151
|
+
queryLanguage,
|
|
10152
|
+
corpusLanguage,
|
|
10153
|
+
vectorTierAvailable: resolveMemoryLifecycleCapabilities(this.deps.config).embeddingFallback
|
|
10154
|
+
});
|
|
10155
|
+
})().catch(() => null);
|
|
10101
10156
|
const qmdEnrichmentAbort = createEnrichmentAbortHandle(options.abortSignal);
|
|
10102
10157
|
const qmdPromise = observeEnrichmentPromise(
|
|
10103
10158
|
(async () => {
|
|
@@ -10169,6 +10224,11 @@ ${rows.join("\n")}
|
|
|
10169
10224
|
}
|
|
10170
10225
|
return cachedQmd.value;
|
|
10171
10226
|
}
|
|
10227
|
+
const crossScriptPlan = await crossScriptPlanPromise;
|
|
10228
|
+
if (crossScriptPlan?.degradation) {
|
|
10229
|
+
backendDegradations.push(crossScriptPlan.degradation);
|
|
10230
|
+
}
|
|
10231
|
+
const crossScript = crossScriptPlan?.crossScript === true;
|
|
10172
10232
|
if (!this.deps.qmd.isAvailable()) {
|
|
10173
10233
|
const now = Date.now();
|
|
10174
10234
|
const QMD_REPROBE_COOLDOWN_MS = 6e4;
|
|
@@ -10300,6 +10360,7 @@ ${rows.join("\n")}
|
|
|
10300
10360
|
resolveNamespace: (p) => this.deps.namespaceFromPath(p),
|
|
10301
10361
|
queryAwarePrefilter,
|
|
10302
10362
|
searchOptions: qmdSearchOptions,
|
|
10363
|
+
crossScript,
|
|
10303
10364
|
abortSignal: qmdEnrichmentAbort.signal,
|
|
10304
10365
|
onDegradation: (degradation) => {
|
|
10305
10366
|
backendDegradations.push(degradation);
|
|
@@ -10717,6 +10778,7 @@ ${formatted}`;
|
|
|
10717
10778
|
});
|
|
10718
10779
|
return section;
|
|
10719
10780
|
})();
|
|
10781
|
+
const procedureInjectedMemories = [];
|
|
10720
10782
|
const procedureRecallPromise = (async () => {
|
|
10721
10783
|
if (this.deps.config.procedural?.enabled !== true) return null;
|
|
10722
10784
|
if (!this.deps.isRecallSectionEnabled("procedure-recall", true)) return null;
|
|
@@ -10725,10 +10787,7 @@ ${formatted}`;
|
|
|
10725
10787
|
profileStorage,
|
|
10726
10788
|
retrievalQuery,
|
|
10727
10789
|
this.deps.config,
|
|
10728
|
-
{
|
|
10729
|
-
partitionToolScoped: lifecycleCaps.extractionScopeClassification,
|
|
10730
|
-
requestingConnector: options.sourceConnector
|
|
10731
|
-
}
|
|
10790
|
+
{ partitionToolScoped: lifecycleCaps.extractionScopeClassification, requestingConnector: options.sourceConnector, injectedMemories: procedureInjectedMemories }
|
|
10732
10791
|
);
|
|
10733
10792
|
} catch (err) {
|
|
10734
10793
|
log.debug(
|
|
@@ -12447,6 +12506,9 @@ ${tmtNode.summary}`
|
|
|
12447
12506
|
sectionBuckets,
|
|
12448
12507
|
contextBudgetForFooter(recallBudgetChars, curiosityFooter)
|
|
12449
12508
|
);
|
|
12509
|
+
if (procedureRecallSection !== null && assembledRecall.includedIds.includes("procedure-recall")) {
|
|
12510
|
+
assembledRecall.includedMemories = mergeProcedureInjections(assembledRecall.includedMemories, procedureInjectedMemories);
|
|
12511
|
+
}
|
|
12450
12512
|
recalledMemoryIds = assembledRecall.includedMemories.map((memory) => memory.id);
|
|
12451
12513
|
recalledMemoryPaths = assembledRecall.includedMemories.map((memory) => memory.path);
|
|
12452
12514
|
recalledMemoryNamespaces = assembledRecall.includedMemories.map((memory) => memory.namespace);
|
|
@@ -12971,6 +13033,7 @@ var RecallSearchPipelineCoordinator = class {
|
|
|
12971
13033
|
})();
|
|
12972
13034
|
const primarySearchOptions = backendHonorsQmdSearchSignals ? resolvedSearchOptions : options.searchOptions;
|
|
12973
13035
|
const debugSearchOptions = backendHonorsQmdSearchSignals ? resolvedSearchOptions : void 0;
|
|
13036
|
+
const crossScriptVectorHits = options.crossScript ? await this.searchEmbeddingFallback(prompt, fetchLimit) : [];
|
|
12974
13037
|
let bestFiltered = filterRecallCandidates(scopedSeedResults, {
|
|
12975
13038
|
namespacesEnabled: options.namespacesEnabled,
|
|
12976
13039
|
recallNamespaces: options.recallNamespaces,
|
|
@@ -13081,6 +13144,14 @@ var RecallSearchPipelineCoordinator = class {
|
|
|
13081
13144
|
}
|
|
13082
13145
|
}
|
|
13083
13146
|
}
|
|
13147
|
+
if (crossScriptVectorHits.length > 0) {
|
|
13148
|
+
mergedResults = dedupeResultsByNamespace(
|
|
13149
|
+
[...mergedResults, ...crossScriptVectorHits],
|
|
13150
|
+
this.deps.namespaceFromPath,
|
|
13151
|
+
fetchLimit,
|
|
13152
|
+
{ filter: recallable }
|
|
13153
|
+
);
|
|
13154
|
+
}
|
|
13084
13155
|
if (scopedSeedResults.length > 0) {
|
|
13085
13156
|
mergedResults = dedupeResultsByNamespace(
|
|
13086
13157
|
[...scopedSeedResults, ...mergedResults],
|
|
@@ -15441,7 +15512,7 @@ var OrchestratorInitCoordinator = class {
|
|
|
15441
15512
|
if (signal.aborted) return;
|
|
15442
15513
|
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)) {
|
|
15443
15514
|
try {
|
|
15444
|
-
const { startWearablesAutoSync } = await import("./auto-sync-
|
|
15515
|
+
const { startWearablesAutoSync } = await import("./auto-sync-H64ZCNIR.js");
|
|
15445
15516
|
if (signal.aborted) return;
|
|
15446
15517
|
this.deps.wearablesAutoSyncHandle = startWearablesAutoSync(
|
|
15447
15518
|
{
|
|
@@ -25517,6 +25588,29 @@ async function promoteSpace(sourceSpaceId, targetSpaceId, options) {
|
|
|
25517
25588
|
throw new Error("Spaces must have a parent-child relationship for promotion. Use --force to override.");
|
|
25518
25589
|
}
|
|
25519
25590
|
}
|
|
25591
|
+
const subjectWarnings = [];
|
|
25592
|
+
const warnedMemoryIds = [];
|
|
25593
|
+
if (target.kind === "team") {
|
|
25594
|
+
const sourceFiles = fs7.existsSync(source.memoryDir) ? walkMd2(fs7.realpathSync(source.memoryDir)) : [];
|
|
25595
|
+
for (const file of sourceFiles) {
|
|
25596
|
+
const fm = parseSimpleFrontmatter(fs7.readFileSync(file, "utf8"));
|
|
25597
|
+
if (!fm?.id) continue;
|
|
25598
|
+
if (options?.memoryIds?.length && !options.memoryIds.includes(fm.id)) continue;
|
|
25599
|
+
const decision = evaluateSubjectGuard({
|
|
25600
|
+
subject: fm.subject === "user" || fm.subject === "agent" ? fm.subject : void 0,
|
|
25601
|
+
sharedTarget: true,
|
|
25602
|
+
mode: options?.subjectGuard ?? "warn",
|
|
25603
|
+
allowUserSubject: options?.allowUserSubject
|
|
25604
|
+
});
|
|
25605
|
+
if (decision.action === "reject") {
|
|
25606
|
+
throw new Error(`space promote blocked by subject guard: memory ${fm.id} \u2014 ${decision.reason}`);
|
|
25607
|
+
}
|
|
25608
|
+
if (decision.action === "warn") {
|
|
25609
|
+
subjectWarnings.push(`memory ${fm.id}: ${decision.reason}`);
|
|
25610
|
+
warnedMemoryIds.push(fm.id);
|
|
25611
|
+
}
|
|
25612
|
+
}
|
|
25613
|
+
}
|
|
25520
25614
|
const result = await copyMemories(source.memoryDir, target.memoryDir, {
|
|
25521
25615
|
filterIds: options?.memoryIds,
|
|
25522
25616
|
force: options?.forceOverwrite !== void 0 ? options.forceOverwrite : options?.force ?? false
|
|
@@ -25526,7 +25620,8 @@ async function promoteSpace(sourceSpaceId, targetSpaceId, options) {
|
|
|
25526
25620
|
action: "space.promote",
|
|
25527
25621
|
sourceSpaceId,
|
|
25528
25622
|
targetSpaceId,
|
|
25529
|
-
details: `Promoted ${result.merged} memories from "${source.name}" to "${target.name}"`
|
|
25623
|
+
details: `Promoted ${result.merged} memories from "${source.name}" to "${target.name}"${subjectWarnings.length > 0 ? `; subject-guard warned ${subjectWarnings.length} user-subject memories (${warnedMemoryIds.join(", ")})` : ""}${options?.allowUserSubject === true ? "; user-subject override: --allow-user-subject" : ""}`,
|
|
25624
|
+
...warnedMemoryIds.length > 0 ? { memoryIds: warnedMemoryIds } : {}
|
|
25530
25625
|
},
|
|
25531
25626
|
options?.baseDir
|
|
25532
25627
|
);
|
|
@@ -25535,7 +25630,8 @@ async function promoteSpace(sourceSpaceId, targetSpaceId, options) {
|
|
|
25535
25630
|
targetSpaceId,
|
|
25536
25631
|
memoriesPromoted: result.merged,
|
|
25537
25632
|
conflicts: result.conflicts,
|
|
25538
|
-
durationMs: Date.now() - startTime
|
|
25633
|
+
durationMs: Date.now() - startTime,
|
|
25634
|
+
...subjectWarnings.length > 0 ? { subjectWarnings } : {}
|
|
25539
25635
|
};
|
|
25540
25636
|
}
|
|
25541
25637
|
async function mergeSpaces(sourceSpaceId, targetSpaceId, options) {
|
|
@@ -27418,4 +27514,4 @@ export {
|
|
|
27418
27514
|
blendGraphExpandedRecallScore,
|
|
27419
27515
|
Orchestrator
|
|
27420
27516
|
};
|
|
27421
|
-
//# sourceMappingURL=chunk-
|
|
27517
|
+
//# sourceMappingURL=chunk-V3MXUL3D.js.map
|