@remnic/core 9.69.32 → 9.69.34
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 +13 -11
- package/dist/access-admin-ops-surface.js +64 -59
- package/dist/access-authorization-probe.d.ts +13 -11
- package/dist/access-authorization-probe.js +65 -60
- package/dist/access-boundary.d.ts +13 -11
- package/dist/access-boundary.js +64 -59
- package/dist/access-cli.js +140 -136
- package/dist/access-cli.js.map +1 -1
- package/dist/access-coding-context-resolution.d.ts +2 -1
- package/dist/access-coding-context-resolution.js +3 -3
- package/dist/access-extraction-force-flush.d.ts +13 -11
- package/dist/access-extraction-force-flush.js +64 -59
- package/dist/access-health-types.d.ts +2 -1
- package/dist/access-http-briefing.d.ts +13 -11
- package/dist/access-http-briefing.js +65 -60
- package/dist/access-http-lcm-compaction.d.ts +13 -11
- package/dist/access-http-lifecycle-flush.d.ts +13 -11
- package/dist/access-http-offline-stream.d.ts +13 -11
- package/dist/access-http-query.d.ts +3 -2
- package/dist/access-http-query.js +66 -61
- package/dist/access-http.d.ts +14 -12
- package/dist/access-http.js +86 -82
- package/dist/access-identity-continuity-surface.d.ts +11 -9
- package/dist/access-identity-continuity-surface.js +64 -59
- package/dist/access-lcm-surface.d.ts +13 -11
- package/dist/access-lcm-surface.js +64 -59
- package/dist/access-mcp.d.ts +13 -11
- package/dist/access-mcp.js +73 -69
- package/dist/access-memory-search-fanout.d.ts +3 -2
- package/dist/{access-namespace-preflight-BsvmyENS.d.ts → access-namespace-preflight-kXG8MvYx.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +4 -3
- package/dist/access-namespace-preflight.js +64 -59
- package/dist/access-observe-transcript.d.ts +11 -9
- package/dist/access-observe-transcript.js +3 -3
- package/dist/access-observe-write-surface.d.ts +15 -13
- package/dist/access-observe-write-surface.js +64 -59
- package/dist/access-offline-manifest.d.ts +47 -11
- package/dist/access-offline-manifest.js +18 -16
- package/dist/access-operations-batch.js +67 -63
- package/dist/access-operations.d.ts +18 -16
- package/dist/access-operations.js +72 -68
- package/dist/access-recall-concurrency.d.ts +13 -11
- package/dist/access-recall-concurrency.js +64 -59
- package/dist/access-recall-response.d.ts +13 -11
- package/dist/access-recall-response.js +64 -59
- package/dist/access-recall-surface.d.ts +13 -11
- package/dist/access-recall-surface.js +64 -59
- package/dist/access-schema.d.ts +138 -96
- package/dist/access-schema.js +15 -1
- package/dist/{access-service-CCpOuS46.d.ts → access-service-WUm2LnXZ.d.ts} +110 -108
- package/dist/access-service-helpers.d.ts +13 -11
- package/dist/access-service.d.ts +13 -11
- package/dist/access-service.js +64 -59
- package/dist/access-surface-catalog.d.ts +13 -11
- package/dist/access-surface-catalog.js +66 -61
- package/dist/access-surface-catalog.js.map +1 -1
- package/dist/access-wearables-meetings-surface.d.ts +4 -3
- package/dist/action-confidence.d.ts +2 -1
- package/dist/active-memory-bridge.d.ts +2 -1
- package/dist/active-memory-bridge.js +2 -2
- package/dist/active-recall.d.ts +2 -1
- package/dist/active-recall.js +14 -12
- package/dist/active-recall.js.map +1 -1
- package/dist/activity/digest.d.ts +56 -0
- package/dist/activity/digest.js +32 -0
- package/dist/adapters/index.d.ts +46 -1
- package/dist/adapters/index.js +13 -9
- package/dist/adapters/registry.js +3 -3
- package/dist/ambient-provenance.d.ts +2 -1
- package/dist/artifact-search.d.ts +2 -1
- package/dist/{auto-sync-NSHLUAQI.js → auto-sync-4YFATLFQ.js} +10 -9
- package/dist/{auto-sync-NSHLUAQI.js.map → auto-sync-4YFATLFQ.js.map} +1 -1
- package/dist/behavior-learner.d.ts +2 -1
- package/dist/behavior-signals.d.ts +2 -1
- package/dist/bootstrap.d.ts +11 -9
- package/dist/briefing-window.d.ts +3 -2
- package/dist/briefing.d.ts +3 -2
- package/dist/briefing.js +28 -27
- package/dist/buffer-surprise-report.d.ts +2 -1
- package/dist/buffer-turn-helpers.d.ts +2 -1
- package/dist/buffer.d.ts +3 -2
- package/dist/buffer.js +12 -11
- package/dist/bulk-import/index.d.ts +4 -3
- package/dist/calibration.d.ts +2 -1
- package/dist/calibration.js +3 -2
- package/dist/calibration.js.map +1 -1
- package/dist/capabilities.d.ts +2 -1
- package/dist/{capsule-merge-IPG4IOFP.js → capsule-merge-ZCXUPLNJ.js} +2 -2
- package/dist/{catalog-CDZLyiXL.d.ts → catalog-BaCx29iv.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +2 -1
- package/dist/causal-consolidation.d.ts +2 -1
- package/dist/causal-consolidation.js +29 -28
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-trajectory-graph.d.ts +2 -1
- package/dist/{chunk-CDKHKZL5.js → chunk-2524MOWK.js} +2 -2
- package/dist/{chunk-HVAEXYPL.js → chunk-255PC37A.js} +47 -25
- package/dist/chunk-255PC37A.js.map +1 -0
- package/dist/{chunk-IY2FVXM6.js → chunk-2AU4D4HQ.js} +3 -3
- package/dist/{chunk-QDY6KYTN.js → chunk-2JCA2PQT.js} +3 -3
- package/dist/{chunk-RSVEP77Y.js → chunk-2UZ5ZH6W.js} +3 -3
- package/dist/{chunk-XQ2Q43XD.js → chunk-326KUXIR.js} +15 -648
- package/dist/chunk-326KUXIR.js.map +1 -0
- package/dist/{chunk-NWWXSJX5.js → chunk-34QW2LK2.js} +2 -2
- package/dist/{chunk-S7DPKM5W.js → chunk-353C5UNV.js} +1 -1
- package/dist/{chunk-GQOMZ3MK.js → chunk-36UBSLFN.js} +2 -2
- package/dist/{chunk-DBQWVT2H.js → chunk-3CBI2ZSA.js} +2 -2
- package/dist/{chunk-NZXEK3UF.js → chunk-3Q3N35W7.js} +2 -2
- package/dist/{chunk-YYGZJPOK.js → chunk-42DJ235G.js} +2 -2
- package/dist/{chunk-7VJXIDOC.js → chunk-4JVQRFZD.js} +9 -9
- package/dist/{chunk-22FVR2KE.js → chunk-4MIS4CQW.js} +6 -2
- package/dist/chunk-4MIS4CQW.js.map +1 -0
- package/dist/{chunk-WHBVXTUI.js → chunk-4PB2MBY6.js} +9 -9
- package/dist/{chunk-TEYN7ZYF.js → chunk-4WCNPQQ5.js} +4 -4
- package/dist/{chunk-Z4PCVRTN.js → chunk-5A7ZUOBA.js} +217 -396
- package/dist/chunk-5A7ZUOBA.js.map +1 -0
- package/dist/chunk-5HYUUFMQ.js +1280 -0
- package/dist/chunk-5HYUUFMQ.js.map +1 -0
- package/dist/{chunk-RBGREYVJ.js → chunk-5QBDLMGG.js} +2 -2
- package/dist/{chunk-RKBLRTNT.js → chunk-5SDSVX7N.js} +2 -2
- package/dist/{chunk-LPECRQO4.js → chunk-5THU7NFP.js} +3 -3
- package/dist/{chunk-N7RWREIQ.js → chunk-65RENJGB.js} +6 -1
- package/dist/chunk-65RENJGB.js.map +1 -0
- package/dist/{chunk-LWA7MDVO.js → chunk-6CCRSQWT.js} +2 -2
- package/dist/{chunk-TIT2C6WX.js → chunk-6XYC7NM4.js} +2 -2
- package/dist/{chunk-FHQSPTPZ.js → chunk-6YAIN5XJ.js} +2 -2
- package/dist/{chunk-PV36INNL.js → chunk-757NP436.js} +3 -3
- package/dist/{chunk-WJBZMNNS.js → chunk-7CAY3YKP.js} +742 -29
- package/dist/chunk-7CAY3YKP.js.map +1 -0
- package/dist/{chunk-6H5JYDOM.js → chunk-7J2CGXG3.js} +2 -2
- package/dist/{chunk-FBMYGNOC.js → chunk-A2YQL2FF.js} +6 -6
- package/dist/chunk-A5UQ52YQ.js +211 -0
- package/dist/chunk-A5UQ52YQ.js.map +1 -0
- package/dist/{chunk-X2NFFBTO.js → chunk-A7GQBJP5.js} +4 -4
- package/dist/{chunk-MPYD657E.js → chunk-A7WOWDZK.js} +2 -2
- package/dist/{chunk-C4OTC6WY.js → chunk-AIKTQVV3.js} +3 -3
- package/dist/{chunk-CGC5UQCF.js → chunk-AKE4GGQ3.js} +2 -2
- package/dist/{chunk-VP67GZ7T.js → chunk-APFKZVJS.js} +2 -2
- package/dist/{chunk-M75RYSHS.js → chunk-AQIRQUCP.js} +2 -2
- package/dist/{chunk-S7T2TY65.js → chunk-AXFR2NQ5.js} +3 -3
- package/dist/{chunk-PSPABFN2.js → chunk-BD7JTBYP.js} +4 -4
- package/dist/{chunk-FCSZ4K2X.js → chunk-BJJWRWER.js} +3 -3
- package/dist/{chunk-JT3EB7ZL.js → chunk-BNGHPYZU.js} +5 -5
- package/dist/chunk-BRZWWUCJ.js +13 -0
- package/dist/{chunk-FYDW33ZB.js.map → chunk-BRZWWUCJ.js.map} +1 -1
- package/dist/{chunk-MFJBANPX.js → chunk-C2BFTYD7.js} +2 -2
- package/dist/{chunk-3JVLGJCY.js → chunk-C6KRO3SU.js} +2 -2
- package/dist/{chunk-Q3O3VKRB.js → chunk-CRUFVJOX.js} +16 -15
- package/dist/chunk-CRUFVJOX.js.map +1 -0
- package/dist/{chunk-AOCP6JA7.js → chunk-D3IZCN5P.js} +4 -4
- package/dist/{chunk-ROKKIMON.js → chunk-EJIEQOPB.js} +5 -5
- package/dist/{chunk-ET356KSB.js → chunk-F4TWWUMP.js} +2 -2
- package/dist/{chunk-CLLPJ6QT.js → chunk-FQXJAC3T.js} +2 -2
- package/dist/{chunk-DD5JFCWM.js → chunk-GCBIXUPT.js} +2 -2
- package/dist/{chunk-ROGRI25A.js → chunk-I3H5LFOI.js} +2 -2
- package/dist/{chunk-S65WXHNK.js → chunk-IFFLUCCU.js} +2 -2
- package/dist/{chunk-MYMNC6O5.js → chunk-ISYZ5DUI.js} +64 -60
- package/dist/{chunk-MYMNC6O5.js.map → chunk-ISYZ5DUI.js.map} +1 -1
- package/dist/{chunk-D5LORF7A.js → chunk-JZDH2ZZK.js} +3 -3
- package/dist/{chunk-2GPE5UCR.js → chunk-K6IPSW5B.js} +2 -2
- package/dist/{chunk-HG6HXVHQ.js → chunk-KDJHLOZP.js} +10 -10
- package/dist/{chunk-I27RSQRR.js → chunk-KYGOQV37.js} +2 -2
- package/dist/{chunk-JEIXTYVG.js → chunk-L2QLDZJC.js} +46 -17
- package/dist/chunk-L2QLDZJC.js.map +1 -0
- package/dist/{chunk-A7XEPMQ6.js → chunk-LAVJC57X.js} +3 -3
- package/dist/chunk-LAVJC57X.js.map +1 -0
- package/dist/{chunk-VZWXFXLX.js → chunk-LMCD5W5B.js} +2 -2
- package/dist/{chunk-3QQTXYZ6.js → chunk-LSLCFCCQ.js} +2 -1
- package/dist/chunk-LSLCFCCQ.js.map +1 -0
- package/dist/{chunk-MKD3OMPS.js → chunk-M3MYMWXG.js} +2 -2
- package/dist/{chunk-DITMGZOL.js → chunk-MMG5K6XJ.js} +2 -2
- package/dist/{chunk-VGXM5B4H.js → chunk-MNIPH6LD.js} +2 -2
- package/dist/{chunk-CZYYJZB6.js → chunk-ND2O2PVN.js} +1014 -1318
- package/dist/chunk-ND2O2PVN.js.map +1 -0
- package/dist/chunk-NPNSKE76.js +220 -0
- package/dist/chunk-NPNSKE76.js.map +1 -0
- package/dist/{chunk-MKWKYHXJ.js → chunk-OB3XMWX5.js} +4 -4
- package/dist/{chunk-XU6OEECT.js → chunk-OQQXGYMX.js} +3 -3
- package/dist/{chunk-GTWHVXPA.js → chunk-OZUXKUPD.js} +6 -4
- package/dist/{chunk-GTWHVXPA.js.map → chunk-OZUXKUPD.js.map} +1 -1
- package/dist/chunk-PCEYGOSL.js +66 -0
- package/dist/chunk-PCEYGOSL.js.map +1 -0
- package/dist/{chunk-47DEYNMR.js → chunk-PEXW2JCK.js} +2 -2
- package/dist/{chunk-EEOUMG3J.js → chunk-PWPIERBM.js} +38 -6
- package/dist/chunk-PWPIERBM.js.map +1 -0
- package/dist/chunk-Q4AUIFUA.js +111 -0
- package/dist/chunk-Q4AUIFUA.js.map +1 -0
- package/dist/{chunk-SO7SV523.js → chunk-Q6LCCIZN.js} +1 -1
- package/dist/chunk-Q6LCCIZN.js.map +1 -0
- package/dist/{chunk-42SDNZCU.js → chunk-QF4J3KMV.js} +19 -19
- package/dist/{chunk-SB6PSOP7.js → chunk-QLJ6762U.js} +2 -2
- package/dist/{chunk-XOVKXJEP.js → chunk-R3TLVTWW.js} +3 -3
- package/dist/{chunk-PHNAB54Q.js → chunk-RQO3J4MR.js} +2 -2
- package/dist/{chunk-5N53UBH2.js → chunk-RR7G2X7C.js} +5 -5
- package/dist/{chunk-DCJ3YFIC.js → chunk-S2ULTQZR.js} +2 -2
- package/dist/{chunk-GY5WZBA6.js → chunk-S76KRJDG.js} +3 -3
- package/dist/{chunk-H272ZPQ3.js → chunk-SHEHQBCG.js} +124 -23
- package/dist/chunk-SHEHQBCG.js.map +1 -0
- package/dist/{chunk-EEC4PCG5.js → chunk-SZDLX763.js} +2 -2
- package/dist/{chunk-SQJ3SDIW.js → chunk-SZWEDG3H.js} +13 -7
- package/dist/chunk-SZWEDG3H.js.map +1 -0
- package/dist/{chunk-E2ZHGBAK.js → chunk-T2JSUEH6.js} +2 -2
- package/dist/{chunk-QMGXMJ2O.js → chunk-T2YFZ27G.js} +9 -9
- package/dist/{chunk-LEPOP46W.js → chunk-TFA6HPOA.js} +4 -4
- package/dist/{chunk-BA6WOZOT.js → chunk-TK4FHQRN.js} +4 -4
- package/dist/chunk-TLHNF6GA.js +647 -0
- package/dist/chunk-TLHNF6GA.js.map +1 -0
- package/dist/{chunk-ZNJSBIP4.js → chunk-TNSCIPBQ.js} +4 -4
- package/dist/{chunk-YUMDFDUA.js → chunk-TWYTGIBR.js} +4 -4
- package/dist/{chunk-FDLDOEO6.js → chunk-UBG4GAEP.js} +51 -6
- package/dist/chunk-UBG4GAEP.js.map +1 -0
- package/dist/{chunk-EZZV7OQL.js → chunk-UEZKN6VR.js} +2 -2
- package/dist/{chunk-HY55QQD7.js → chunk-UJX4I26O.js} +2 -2
- package/dist/{chunk-BLUYQFRH.js → chunk-VELCIWJZ.js} +15 -11
- package/dist/chunk-VELCIWJZ.js.map +1 -0
- package/dist/{chunk-CBCNKKZD.js → chunk-VIZR45AN.js} +2 -2
- package/dist/{chunk-ZG74PWRW.js → chunk-VZAKYDMJ.js} +2 -2
- package/dist/{chunk-ITPS5DDH.js → chunk-W5BLTZZJ.js} +8 -8
- package/dist/chunk-W6IJMWTZ.js +72 -0
- package/dist/chunk-W6IJMWTZ.js.map +1 -0
- package/dist/{chunk-H3TKENU4.js → chunk-WIKO4SCR.js} +5 -5
- package/dist/{chunk-YFLLGRXO.js → chunk-X2QPKLPL.js} +2 -2
- package/dist/{chunk-FGGYSN4P.js → chunk-X424T5JQ.js} +2 -2
- package/dist/{chunk-NAXDPKVM.js → chunk-XPJNT6PI.js} +4 -4
- package/dist/{chunk-2JVJ7UHC.js → chunk-XQU3CPF2.js} +4 -2
- package/dist/chunk-XQU3CPF2.js.map +1 -0
- package/dist/chunk-XW2T4QAW.js +1 -0
- package/dist/{chunk-VED2YHUD.js → chunk-YEDVOYL2.js} +2 -2
- package/dist/{chunk-TLPZ6MKZ.js → chunk-YEN4TREG.js} +541 -5
- package/dist/chunk-YEN4TREG.js.map +1 -0
- package/dist/{chunk-RC5DXXWC.js → chunk-YM7YN37H.js} +2 -2
- package/dist/{chunk-VLXBE57O.js → chunk-YVGXH72Y.js} +2 -2
- package/dist/{chunk-YQAXP5AC.js → chunk-YXLUTALO.js} +5 -5
- package/dist/{chunk-565C6ZFO.js → chunk-Z7YDVHDI.js} +2 -2
- package/dist/{chunk-O75CRYGF.js → chunk-ZEFVK7XC.js} +1 -1
- package/dist/chunk-ZEFVK7XC.js.map +1 -0
- package/dist/{chunk-XUE46UYW.js → chunk-ZLN7AROH.js} +6 -6
- package/dist/{chunk-GVG3JYBI.js → chunk-ZMKYCFJ7.js} +640 -199
- package/dist/chunk-ZMKYCFJ7.js.map +1 -0
- package/dist/{chunk-HK32G473.js → chunk-ZWEZXVYH.js} +2 -2
- package/dist/{cli-NEEdq5Rt.d.ts → cli-5mTYh1Tn.d.ts} +5 -5
- package/dist/cli-fallback.d.ts +11 -4
- package/dist/cli-fallback.js +5 -1
- package/dist/cli.d.ts +15 -13
- package/dist/cli.js +110 -106
- package/dist/coding/export-okf-codegraph.d.ts +2 -1
- package/dist/coding/export-okf-codegraph.js +34 -32
- package/dist/coding/export-okf-codegraph.js.map +1 -1
- package/dist/coding/pre-action-gate.d.ts +2 -1
- package/dist/compat/checks.js +2 -2
- package/dist/compat/codex-cli-fallback.d.ts +1 -1
- package/dist/compat/codex-cli-fallback.js +5 -1
- package/dist/compat/codex-cli-fallback.js.map +1 -1
- package/dist/compounding/engine.d.ts +3 -2
- package/dist/compounding/engine.js +29 -28
- package/dist/compounding/preference-consolidator.d.ts +2 -1
- package/dist/compression-optimizer.d.ts +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/config.js +14 -12
- package/dist/connectors/codex-materialize-runner.d.ts +2 -1
- package/dist/connectors/codex-materialize-runner.js +28 -27
- package/dist/connectors/codex-materialize.d.ts +2 -1
- package/dist/connectors/index.d.ts +2 -1
- package/dist/connectors/index.js +30 -29
- package/dist/consolidation-provenance-check.d.ts +3 -2
- package/dist/consolidation-undo.d.ts +3 -2
- package/dist/contradiction/index.d.ts +4 -3
- package/dist/contradiction/index.js +5 -5
- package/dist/{contradiction-scan-NOYMFG66.js → contradiction-scan-GVD4JJ7B.js} +3 -3
- package/dist/converge-config.d.ts +2 -1
- package/dist/convergence-refresh.d.ts +3 -2
- package/dist/convergence-refresh.js +30 -29
- package/dist/conversation-index/backend.d.ts +2 -1
- package/dist/conversation-index/backend.js +3 -3
- package/dist/conversation-index/chunker.d.ts +2 -1
- package/dist/conversation-index/faiss-adapter.d.ts +2 -1
- package/dist/conversation-index/faiss-adapter.js +2 -2
- package/dist/conversation-index/indexer.d.ts +2 -1
- package/dist/conversation-index/search.d.ts +2 -1
- package/dist/corpus-watermark.d.ts +2 -1
- package/dist/corpus-watermark.js +31 -30
- package/dist/cross-lingual-recall.d.ts +2 -1
- package/dist/day-summary.d.ts +2 -1
- package/dist/deep-recall-http-glue.d.ts +13 -11
- package/dist/deep-recall-http-glue.js +12 -2
- package/dist/deep-recall-mcp-tools.d.ts +13 -11
- package/dist/deep-recall-policy-llm.d.ts +2 -1
- package/dist/deep-recall-policy-llm.js +4 -3
- package/dist/deep-recall-seeds.d.ts +2 -1
- package/dist/delinearize.d.ts +2 -1
- package/dist/dependency-propagation-config.d.ts +2 -1
- package/dist/{dependency-propagation-delivery-CQPCu0o5.d.ts → dependency-propagation-delivery-CDQCxNll.d.ts} +1 -1
- package/dist/direct-answer-wiring.d.ts +2 -1
- package/dist/direct-answer.d.ts +2 -1
- package/dist/embedding-fallback.d.ts +2 -1
- package/dist/enrichment/index.d.ts +2 -1
- package/dist/entity-origin-fields.d.ts +2 -1
- package/dist/entity-retrieval.d.ts +3 -2
- package/dist/entity-retrieval.js +28 -27
- package/dist/entity-schema.d.ts +2 -1
- package/dist/episodic-context.d.ts +2 -1
- package/dist/eval-trajectory-contracts.d.ts +2 -1
- package/dist/eval-trajectory-store.d.ts +2 -1
- package/dist/eval-trajectory.d.ts +2 -1
- package/dist/explicit-capture.d.ts +11 -9
- package/dist/explicit-capture.js +6 -6
- package/dist/external-wiki-access.d.ts +13 -11
- package/dist/external-wiki-access.js +65 -60
- package/dist/external-wiki-collection-registration.d.ts +2 -1
- package/dist/external-wiki-collection.d.ts +2 -1
- package/dist/external-wiki-mcp-tools.d.ts +13 -11
- package/dist/extraction-error-classification.d.ts +2 -1
- package/dist/extraction-faithfulness.d.ts +2 -1
- package/dist/extraction-faithfulness.js +4 -3
- package/dist/extraction-judge-telemetry.d.ts +2 -1
- package/dist/extraction-judge-training.d.ts +2 -1
- package/dist/extraction-judge.d.ts +2 -1
- package/dist/extraction-judge.js +5 -4
- package/dist/extraction-liveness.d.ts +2 -1
- package/dist/extraction-normalization.d.ts +2 -1
- package/dist/extraction-prompt.d.ts +2 -1
- package/dist/extraction-source-grounding-rules.d.ts +2 -1
- package/dist/extraction-source-grounding.d.ts +2 -1
- package/dist/extraction.d.ts +2 -1
- package/dist/extraction.js +40 -38
- package/dist/fallback-llm.d.ts +2 -1
- package/dist/fallback-llm.js +3 -2
- package/dist/{first-start-migration-RC345GPL.js → first-start-migration-L3UFX5CU.js} +3 -3
- package/dist/generic-recall-paths-CqAZyXKX.d.ts +23 -0
- package/dist/graph-append-error.d.ts +2 -1
- package/dist/graph-dashboard-diff.d.ts +2 -1
- package/dist/graph-dashboard-key.d.ts +2 -1
- package/dist/graph-dashboard-parser.d.ts +2 -1
- package/dist/graph-edge-reinforcement.d.ts +2 -1
- package/dist/graph-jsonl.d.ts +2 -1
- package/dist/graph-path-reconstruction.d.ts +2 -1
- package/dist/graph-path-scoring.d.ts +2 -1
- package/dist/graph-snapshot.d.ts +2 -1
- package/dist/graph.d.ts +2 -1
- package/dist/harmonic-retrieval.js +2 -2
- package/dist/importance.d.ts +2 -1
- package/dist/importers/index.d.ts +2 -1
- package/dist/importers/test-utils.d.ts +2 -1
- package/dist/in-flight-reads.d.ts +2 -1
- package/dist/{index-C9VXenR8.d.ts → index-BNluTxBp.d.ts} +2 -2
- package/dist/index.d.ts +963 -945
- package/dist/index.js +323 -221
- package/dist/intent.d.ts +2 -1
- package/dist/lcm/engine.d.ts +2 -1
- package/dist/lcm/engine.js +2 -2
- package/dist/lcm/index.d.ts +2 -1
- package/dist/lcm/index.js +7 -7
- package/dist/lcm/tools.d.ts +2 -1
- package/dist/lifecycle.d.ts +2 -1
- package/dist/live-connectors-runner.d.ts +2 -1
- package/dist/local-llm.d.ts +4 -1
- package/dist/local-llm.js +2 -2
- package/dist/local-model-endpoint.d.ts +2 -1
- package/dist/location/index.d.ts +4 -3
- package/dist/location/index.js +33 -32
- package/dist/maintenance/memory-governance.d.ts +2 -1
- package/dist/maintenance/memory-governance.js +28 -27
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +3 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +28 -27
- package/dist/maintenance/rebuild-memory-projection.d.ts +3 -2
- package/dist/maintenance/rebuild-memory-projection.js +29 -28
- package/dist/{maintenance-C14sorKa.d.ts → maintenance-8hmWOMY_.d.ts} +378 -4
- package/dist/mcp-memory-inspector-app.d.ts +13 -11
- package/dist/memory-action-policy.d.ts +2 -1
- package/dist/memory-cache.d.ts +2 -1
- package/dist/memory-controller.d.ts +2 -1
- package/dist/memory-lifecycle-ledger-utils.d.ts +2 -1
- package/dist/memory-projection-store.d.ts +2 -1
- package/dist/memory-provenance.d.ts +2 -1
- package/dist/memory-snapshot.d.ts +2 -1
- package/dist/memory-subject-cli.d.ts +13 -11
- package/dist/memory-subject.d.ts +13 -11
- package/dist/memory-worth-outcomes.d.ts +3 -2
- package/dist/migrate/from-engram.js +2 -2
- package/dist/models-json.d.ts +2 -1
- package/dist/namespaces/migrate.d.ts +4 -3
- package/dist/namespaces/migrate.js +29 -28
- package/dist/namespaces/principal.d.ts +2 -1
- package/dist/namespaces/search.d.ts +2 -1
- package/dist/namespaces/search.js +11 -11
- package/dist/namespaces/storage.d.ts +4 -3
- package/dist/namespaces/storage.js +28 -27
- package/dist/native-knowledge.d.ts +2 -1
- package/dist/network/tailscale.js +2 -2
- package/dist/offline-sync-impression-drain.d.ts +2 -1
- package/dist/offline-sync-impression-drain.js +6 -6
- package/dist/operator-doctor-corpus.d.ts +2 -1
- package/dist/operator-doctor-corpus.js +32 -31
- package/dist/operator-doctor-replica.d.ts +2 -1
- package/dist/operator-toolkit.d.ts +4 -3
- package/dist/operator-toolkit.js +48 -46
- package/dist/orchestration/compression-guideline-coordinator.d.ts +3 -2
- package/dist/orchestration/maintenance.d.ts +5 -4
- package/dist/orchestration/maintenance.js +47 -42
- package/dist/{orchestrator-kqSzGv7e.d.ts → orchestrator-BUd_3Q86.d.ts} +17 -29
- package/dist/orchestrator.d.ts +11 -9
- package/dist/orchestrator.js +144 -138
- package/dist/patterns-cli.d.ts +2 -1
- package/dist/{pipeline-DRUwHb1X.d.ts → pipeline-Dv1Bv0ma.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +2 -1
- package/dist/proactive-contention.d.ts +2 -1
- package/dist/provenance.d.ts +2 -1
- package/dist/{public-http-CW3l0g3P.d.ts → public-http-L-IymRBN.d.ts} +1 -1
- package/dist/{qmd-BVWlg1YS.d.ts → qmd-Mj508lHA.d.ts} +1 -1
- package/dist/qmd-preflight.d.ts +3 -2
- package/dist/qmd-recall-cache.d.ts +2 -1
- package/dist/qmd.d.ts +3 -2
- package/dist/qmd.js +2 -2
- package/dist/recall-concurrency-config.d.ts +2 -1
- package/dist/recall-disclosure-escalation.d.ts +2 -1
- package/dist/recall-explain-renderer.d.ts +2 -1
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-memory-map.d.ts +2 -1
- package/dist/recall-navigate-access.d.ts +2 -1
- package/dist/recall-navigate-access.js +2 -2
- package/dist/recall-navigate-disclosure.d.ts +2 -1
- package/dist/recall-navigate-disclosure.js +1 -1
- package/dist/recall-navigate.d.ts +2 -1
- package/dist/recall-navigate.js +2 -2
- package/dist/recall-planner-llm.d.ts +2 -1
- package/dist/recall-planner-llm.js +3 -2
- package/dist/recall-planner-llm.js.map +1 -1
- package/dist/recall-state-view-admission.d.ts +56 -0
- package/dist/recall-state-view-admission.js +39 -0
- package/dist/recall-state-view-admission.js.map +1 -0
- package/dist/recall-state-view-inject.js +2 -2
- package/dist/recall-state-view-render.js +2 -2
- package/dist/recall-state-view-widen.d.ts +18 -1
- package/dist/recall-state-view-widen.js +2 -2
- package/dist/recall-state-view-wire.d.ts +1 -1
- package/dist/recall-state-view-wire.js +3 -3
- package/dist/recall-state-view.d.ts +1 -0
- package/dist/recall-state-view.js +1 -1
- package/dist/recall-state.d.ts +2 -1
- package/dist/recall-tag-filter.d.ts +2 -1
- package/dist/recall-timings.d.ts +2 -1
- package/dist/recall-xray-cli.d.ts +2 -1
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +2 -1
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +9 -1
- package/dist/recall-xray.js +2 -2
- package/dist/reconcile/cursor.d.ts +11 -2
- package/dist/reconcile/cursor.js +6 -4
- package/dist/reconcile/cursor.js.map +1 -1
- package/dist/reconcile/manifest.d.ts +37 -2
- package/dist/reconcile/manifest.js +15 -5
- package/dist/reconcile/plan.d.ts +2 -1
- package/dist/replay/normalizers/chatgpt.d.ts +2 -1
- package/dist/replay/normalizers/claude.d.ts +2 -1
- package/dist/replay/normalizers/openclaw.d.ts +2 -1
- package/dist/replay/normalizers/shared.d.ts +2 -1
- package/dist/replay/runner.d.ts +2 -1
- package/dist/replay/types.d.ts +2 -1
- package/dist/replica-divergence.d.ts +2 -1
- package/dist/replica-peers-config.d.ts +2 -1
- package/dist/{resolution-VKATP2HT.js → resolution-OHJZG45O.js} +6 -6
- package/dist/resolution-OHJZG45O.js.map +1 -0
- package/dist/resolve-auth-token.d.ts +2 -1
- package/dist/resume-bundles.js +15 -13
- package/dist/retrieval-agents.d.ts +3 -2
- package/dist/retrieval-tiers.d.ts +2 -1
- package/dist/routing/engine.d.ts +2 -1
- package/dist/routing/store.d.ts +2 -1
- package/dist/runtime/child-process.d.ts +1 -1
- package/dist/runtime/child-process.js +1 -1
- package/dist/salvage-envelope.d.ts +2 -1
- package/dist/salvage-envelope.js +2 -2
- package/dist/schemas.d.ts +176 -176
- package/dist/{scope-profiles-Vl00B1KU.d.ts → scope-profiles-B6BGVbxm.d.ts} +1 -1
- package/dist/search/embed-helper.d.ts +2 -1
- package/dist/search/factory.d.ts +2 -1
- package/dist/search/factory.js +10 -10
- package/dist/search/index.d.ts +2 -1
- package/dist/search/index.js +14 -14
- package/dist/search/lancedb-backend.d.ts +2 -1
- package/dist/search/lancedb-backend.js +2 -2
- package/dist/search/meilisearch-backend.d.ts +2 -1
- package/dist/search/meilisearch-backend.js +2 -2
- package/dist/search/noop-backend.d.ts +2 -1
- package/dist/search/orama-backend.d.ts +2 -1
- package/dist/search/orama-backend.js +2 -2
- package/dist/search/port.d.ts +2 -1
- package/dist/search/remote-backend.d.ts +2 -1
- package/dist/{semantic-consolidation-BC9-GFuT.d.ts → semantic-consolidation-J-598F5M.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +3 -2
- package/dist/semantic-consolidation.js +29 -28
- package/dist/semantic-rule-promotion.js +28 -27
- package/dist/semantic-rule-verifier.d.ts +2 -1
- package/dist/semantic-rule-verifier.js +28 -27
- package/dist/{service-BOy6dHfc.d.ts → service-ZQkJ52cz.d.ts} +2 -2
- package/dist/session-observer-bands.d.ts +2 -1
- package/dist/session-observer-state.d.ts +2 -1
- package/dist/shared-context/manager.d.ts +8 -7
- package/dist/signal.d.ts +2 -1
- package/dist/source-agent-qualifier.d.ts +2 -1
- package/dist/source-agent-qualifier.js +38 -36
- package/dist/standup/build.js +29 -28
- package/dist/{storage-BLJRnFi6.d.ts → storage-CU_hZUgP.d.ts} +67 -6
- package/dist/storage.d.ts +4 -3
- package/dist/storage.js +27 -26
- package/dist/subject-config.d.ts +2 -1
- package/dist/subject-config.js +2 -2
- package/dist/summarizer.d.ts +2 -1
- package/dist/summarizer.js +5 -5
- package/dist/summary-snapshot.d.ts +2 -1
- package/dist/support-passport/index.d.ts +49 -15
- package/dist/support-passport/index.js +72 -63
- package/dist/temporal-supersession.d.ts +3 -2
- package/dist/temporal-timeline-recall.d.ts +2 -1
- package/dist/temporal-validity.d.ts +2 -1
- package/dist/threading.d.ts +2 -1
- package/dist/tier-migration.d.ts +3 -2
- package/dist/tier-routing.d.ts +2 -1
- package/dist/tier-routing.js +2 -2
- package/dist/{tier-stats-KA6OZX2C.js → tier-stats-VK5PCO2L.js} +3 -3
- package/dist/topics.d.ts +2 -1
- package/dist/transcript.d.ts +2 -1
- package/dist/transfer/capsule-import.js +1 -1
- package/dist/transfer/export-okf.d.ts +2 -1
- package/dist/transfer/export-okf.js +29 -28
- package/dist/transfer/types.d.ts +102 -102
- package/dist/trust-score-stage.d.ts +2 -1
- package/dist/trust-score.d.ts +2 -1
- package/dist/{types-YY-eKKU7.d.ts → types-BGxTvLBO.d.ts} +58 -13
- package/dist/types.d.ts +2 -1
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +2 -1
- package/dist/verified-recall.js +28 -27
- package/dist/who-knows-cli.d.ts +13 -11
- package/dist/who-knows-cli.js +29 -28
- package/dist/who-knows.d.ts +13 -11
- package/dist/who-knows.js +28 -27
- package/dist/write-envelope.d.ts +4 -2
- package/dist/write-envelope.js +3 -1
- package/package.json +12 -2
- package/src/access-category-alias.test.ts +216 -0
- package/src/access-mcp.test.ts +73 -0
- package/src/access-mcp.ts +6 -6
- package/src/access-observe-write-surface.ts +19 -4
- package/src/access-offline-manifest.ts +297 -16
- package/src/access-recall-surface.ts +5 -5
- package/src/access-schema.ts +76 -7
- package/src/access-service.ts +11 -2
- package/src/activity/config.test.ts +124 -1
- package/src/activity/config.ts +150 -18
- package/src/activity/index.ts +3 -0
- package/src/activity/journal-extract-storage.test.ts +129 -0
- package/src/activity/journal-extract.test.ts +314 -0
- package/src/activity/journal-extract.ts +247 -0
- package/src/activity/journal-heading.test.ts +24 -1
- package/src/activity/journal-heading.ts +36 -0
- package/src/activity/journal-read.test.ts +242 -0
- package/src/activity/journal-read.ts +183 -0
- package/src/activity/journal-source.test.ts +15 -15
- package/src/activity/journal-source.ts +21 -14
- package/src/activity/journal-state.lock-worker.ts +30 -0
- package/src/activity/journal-state.test.ts +144 -0
- package/src/activity/journal-state.ts +107 -0
- package/src/activity/journal-strip.test.ts +106 -52
- package/src/activity/journal-strip.ts +35 -10
- package/src/activity/journal-vault-integration.test.ts +230 -0
- package/src/activity/journal-vault-provenance.test.ts +9 -7
- package/src/activity/journal-vault-provenance.ts +4 -10
- package/src/activity/journal-vault-read.test.ts +3 -2
- package/src/activity/journal-vault-read.ts +9 -139
- package/src/activity/journal.test.ts +74 -23
- package/src/activity/runner.test.ts +116 -1
- package/src/activity/runner.ts +25 -0
- package/src/activity/scheduler.ts +4 -0
- package/src/activity/store.test.ts +18 -0
- package/src/activity/store.ts +14 -0
- package/src/activity/sync-registration.ts +4 -0
- package/src/activity/timeline/analysis-metadata.ts +2 -0
- package/src/activity/timeline/analysis-provider.ts +140 -0
- package/src/activity/timeline/analysis-run.test.ts +419 -0
- package/src/activity/timeline/analysis-run.ts +106 -0
- package/src/activity/timeline/analysis.ts +66 -37
- package/src/activity/timeline/corrections.ts +9 -0
- package/src/activity/timeline/index.ts +3 -0
- package/src/activity/timeline/query.test.ts +71 -0
- package/src/activity/timeline/query.ts +57 -8
- package/src/activity/timeline/regenerate.test.ts +505 -0
- package/src/activity/timeline/regenerate.ts +373 -0
- package/src/activity/types.ts +40 -5
- package/src/adapters/grok-opencode.test.ts +146 -0
- package/src/adapters/grok.ts +53 -0
- package/src/adapters/index.ts +2 -0
- package/src/adapters/opencode.ts +52 -0
- package/src/adapters/registry.ts +4 -0
- package/src/cli-fallback.ts +13 -4
- package/src/config.test.ts +3 -1
- package/src/config.ts +4 -0
- package/src/dedup/merge.test.ts +732 -25
- package/src/fallback-llm.test.ts +53 -0
- package/src/fallback-llm.ts +12 -0
- package/src/index.ts +2 -0
- package/src/local-llm.ts +3 -1
- package/src/orchestration/dependency-propagation-recovery-replay.ts +1 -1
- package/src/orchestration/extraction-persist-deps.ts +9 -0
- package/src/orchestration/extraction-persist-promotion.test.ts +265 -6
- package/src/orchestration/extraction-persist-promotion.ts +42 -3
- package/src/orchestration/extraction-persist.ts +3 -3
- package/src/orchestration/harmonic-construction-persist.test.ts +115 -4
- package/src/orchestration/harmonic-construction-persist.ts +34 -6
- package/src/orchestration/maintenance.ts +1 -0
- package/src/orchestration/orchestrator-helpers.ts +6 -0
- package/src/orchestration/recall-entry.ts +16 -0
- package/src/orchestration/recall-internal-deps.ts +14 -0
- package/src/orchestration/recall-internal.ts +41 -58
- package/src/orchestration/recall-result-formatter.ts +11 -1
- package/src/orchestration/recall-search-pipeline.ts +121 -11
- package/src/orchestration/recall-state-view-pipeline.test.ts +211 -0
- package/src/orchestration/semantic-merge-commit-effects.ts +76 -17
- package/src/orchestration/semantic-merge-persist.ts +121 -16
- package/src/orchestration/semantic-merge-promotion-payload.ts +133 -54
- package/src/orchestrator.ts +7 -35
- package/src/providers/codex-subscription.test.ts +666 -0
- package/src/providers/codex-subscription.ts +743 -0
- package/src/recall-disclosure.test.ts +20 -0
- package/src/recall-state-view-admission.ts +114 -0
- package/src/recall-state-view-asof.test.ts +176 -0
- package/src/recall-state-view-call.test.ts +175 -0
- package/src/recall-state-view-config.test.ts +16 -0
- package/src/recall-state-view-widen.test.ts +70 -0
- package/src/recall-state-view-widen.ts +28 -7
- package/src/recall-state-view-wire.ts +3 -1
- package/src/recall-state-view-zero-diff.test.ts +20 -11
- package/src/recall-state-view.test.ts +142 -0
- package/src/recall-state-view.ts +72 -24
- package/src/recall-xray-renderer.test.ts +27 -0
- package/src/recall-xray-renderer.ts +4 -0
- package/src/recall-xray.ts +13 -0
- package/src/reconcile/cursor.ts +23 -33
- package/src/reconcile/manifest.ts +96 -11
- package/src/reconcile-identity-cache.test.ts +378 -0
- package/src/runtime/child-process.ts +1 -1
- package/src/storage/cas-revision-host.ts +75 -0
- package/src/storage/cas-revision-store.test.ts +459 -0
- package/src/storage/cas-revision-store.ts +661 -0
- package/src/storage/deletion-revision-store.ts +80 -6
- package/src/storage/tombstone-blocked-capture-index.ts +15 -0
- package/src/storage/tombstone-blocked-capture-mutation.ts +67 -7
- package/src/storage/tombstone-blocked-capture-sync.ts +55 -20
- package/src/storage-contract/failure-semantics.test.ts +1 -1
- package/src/storage-frontmatter-cas.test.ts +698 -1
- package/src/storage-replay.test.ts +166 -3
- package/src/storage.ts +41 -41
- package/src/support-passport/card-projection.ts +82 -33
- package/src/temporal-supersession.test.ts +10 -10
- package/src/types.ts +7 -7
- package/src/write-envelope.ts +1 -1
- package/dist/chunk-22FVR2KE.js.map +0 -1
- package/dist/chunk-2JVJ7UHC.js.map +0 -1
- package/dist/chunk-3QQTXYZ6.js.map +0 -1
- package/dist/chunk-4UDQUPT5.js +0 -560
- package/dist/chunk-4UDQUPT5.js.map +0 -1
- package/dist/chunk-A7XEPMQ6.js.map +0 -1
- package/dist/chunk-AU7Q3LSC.js +0 -56
- package/dist/chunk-AU7Q3LSC.js.map +0 -1
- package/dist/chunk-BLUYQFRH.js.map +0 -1
- package/dist/chunk-CZYYJZB6.js.map +0 -1
- package/dist/chunk-EEOUMG3J.js.map +0 -1
- package/dist/chunk-FDLDOEO6.js.map +0 -1
- package/dist/chunk-FYDW33ZB.js +0 -13
- package/dist/chunk-GVG3JYBI.js.map +0 -1
- package/dist/chunk-H272ZPQ3.js.map +0 -1
- package/dist/chunk-HVAEXYPL.js.map +0 -1
- package/dist/chunk-JEIXTYVG.js.map +0 -1
- package/dist/chunk-LRICZIGN.js +0 -52
- package/dist/chunk-LRICZIGN.js.map +0 -1
- package/dist/chunk-N7RWREIQ.js.map +0 -1
- package/dist/chunk-O75CRYGF.js.map +0 -1
- package/dist/chunk-Q3O3VKRB.js.map +0 -1
- package/dist/chunk-SEDEKFYQ.js +0 -1
- package/dist/chunk-SO7SV523.js.map +0 -1
- package/dist/chunk-SQJ3SDIW.js.map +0 -1
- package/dist/chunk-TLPZ6MKZ.js.map +0 -1
- package/dist/chunk-WJBZMNNS.js.map +0 -1
- package/dist/chunk-XQ2Q43XD.js.map +0 -1
- package/dist/chunk-Z4PCVRTN.js.map +0 -1
- package/src/activity/journal-mode.test.ts +0 -32
- package/src/activity/journal-mode.ts +0 -20
- /package/dist/{chunk-SEDEKFYQ.js.map → activity/digest.js.map} +0 -0
- /package/dist/{capsule-merge-IPG4IOFP.js.map → capsule-merge-ZCXUPLNJ.js.map} +0 -0
- /package/dist/{chunk-CDKHKZL5.js.map → chunk-2524MOWK.js.map} +0 -0
- /package/dist/{chunk-IY2FVXM6.js.map → chunk-2AU4D4HQ.js.map} +0 -0
- /package/dist/{chunk-QDY6KYTN.js.map → chunk-2JCA2PQT.js.map} +0 -0
- /package/dist/{chunk-RSVEP77Y.js.map → chunk-2UZ5ZH6W.js.map} +0 -0
- /package/dist/{chunk-NWWXSJX5.js.map → chunk-34QW2LK2.js.map} +0 -0
- /package/dist/{chunk-S7DPKM5W.js.map → chunk-353C5UNV.js.map} +0 -0
- /package/dist/{chunk-GQOMZ3MK.js.map → chunk-36UBSLFN.js.map} +0 -0
- /package/dist/{chunk-DBQWVT2H.js.map → chunk-3CBI2ZSA.js.map} +0 -0
- /package/dist/{chunk-NZXEK3UF.js.map → chunk-3Q3N35W7.js.map} +0 -0
- /package/dist/{chunk-YYGZJPOK.js.map → chunk-42DJ235G.js.map} +0 -0
- /package/dist/{chunk-7VJXIDOC.js.map → chunk-4JVQRFZD.js.map} +0 -0
- /package/dist/{chunk-WHBVXTUI.js.map → chunk-4PB2MBY6.js.map} +0 -0
- /package/dist/{chunk-TEYN7ZYF.js.map → chunk-4WCNPQQ5.js.map} +0 -0
- /package/dist/{chunk-RBGREYVJ.js.map → chunk-5QBDLMGG.js.map} +0 -0
- /package/dist/{chunk-RKBLRTNT.js.map → chunk-5SDSVX7N.js.map} +0 -0
- /package/dist/{chunk-LPECRQO4.js.map → chunk-5THU7NFP.js.map} +0 -0
- /package/dist/{chunk-LWA7MDVO.js.map → chunk-6CCRSQWT.js.map} +0 -0
- /package/dist/{chunk-TIT2C6WX.js.map → chunk-6XYC7NM4.js.map} +0 -0
- /package/dist/{chunk-FHQSPTPZ.js.map → chunk-6YAIN5XJ.js.map} +0 -0
- /package/dist/{chunk-PV36INNL.js.map → chunk-757NP436.js.map} +0 -0
- /package/dist/{chunk-6H5JYDOM.js.map → chunk-7J2CGXG3.js.map} +0 -0
- /package/dist/{chunk-FBMYGNOC.js.map → chunk-A2YQL2FF.js.map} +0 -0
- /package/dist/{chunk-X2NFFBTO.js.map → chunk-A7GQBJP5.js.map} +0 -0
- /package/dist/{chunk-MPYD657E.js.map → chunk-A7WOWDZK.js.map} +0 -0
- /package/dist/{chunk-C4OTC6WY.js.map → chunk-AIKTQVV3.js.map} +0 -0
- /package/dist/{chunk-CGC5UQCF.js.map → chunk-AKE4GGQ3.js.map} +0 -0
- /package/dist/{chunk-VP67GZ7T.js.map → chunk-APFKZVJS.js.map} +0 -0
- /package/dist/{chunk-M75RYSHS.js.map → chunk-AQIRQUCP.js.map} +0 -0
- /package/dist/{chunk-S7T2TY65.js.map → chunk-AXFR2NQ5.js.map} +0 -0
- /package/dist/{chunk-PSPABFN2.js.map → chunk-BD7JTBYP.js.map} +0 -0
- /package/dist/{chunk-FCSZ4K2X.js.map → chunk-BJJWRWER.js.map} +0 -0
- /package/dist/{chunk-JT3EB7ZL.js.map → chunk-BNGHPYZU.js.map} +0 -0
- /package/dist/{chunk-MFJBANPX.js.map → chunk-C2BFTYD7.js.map} +0 -0
- /package/dist/{chunk-3JVLGJCY.js.map → chunk-C6KRO3SU.js.map} +0 -0
- /package/dist/{chunk-AOCP6JA7.js.map → chunk-D3IZCN5P.js.map} +0 -0
- /package/dist/{chunk-ROKKIMON.js.map → chunk-EJIEQOPB.js.map} +0 -0
- /package/dist/{chunk-ET356KSB.js.map → chunk-F4TWWUMP.js.map} +0 -0
- /package/dist/{chunk-CLLPJ6QT.js.map → chunk-FQXJAC3T.js.map} +0 -0
- /package/dist/{chunk-DD5JFCWM.js.map → chunk-GCBIXUPT.js.map} +0 -0
- /package/dist/{chunk-ROGRI25A.js.map → chunk-I3H5LFOI.js.map} +0 -0
- /package/dist/{chunk-S65WXHNK.js.map → chunk-IFFLUCCU.js.map} +0 -0
- /package/dist/{chunk-D5LORF7A.js.map → chunk-JZDH2ZZK.js.map} +0 -0
- /package/dist/{chunk-2GPE5UCR.js.map → chunk-K6IPSW5B.js.map} +0 -0
- /package/dist/{chunk-HG6HXVHQ.js.map → chunk-KDJHLOZP.js.map} +0 -0
- /package/dist/{chunk-I27RSQRR.js.map → chunk-KYGOQV37.js.map} +0 -0
- /package/dist/{chunk-VZWXFXLX.js.map → chunk-LMCD5W5B.js.map} +0 -0
- /package/dist/{chunk-MKD3OMPS.js.map → chunk-M3MYMWXG.js.map} +0 -0
- /package/dist/{chunk-DITMGZOL.js.map → chunk-MMG5K6XJ.js.map} +0 -0
- /package/dist/{chunk-VGXM5B4H.js.map → chunk-MNIPH6LD.js.map} +0 -0
- /package/dist/{chunk-MKWKYHXJ.js.map → chunk-OB3XMWX5.js.map} +0 -0
- /package/dist/{chunk-XU6OEECT.js.map → chunk-OQQXGYMX.js.map} +0 -0
- /package/dist/{chunk-47DEYNMR.js.map → chunk-PEXW2JCK.js.map} +0 -0
- /package/dist/{chunk-42SDNZCU.js.map → chunk-QF4J3KMV.js.map} +0 -0
- /package/dist/{chunk-SB6PSOP7.js.map → chunk-QLJ6762U.js.map} +0 -0
- /package/dist/{chunk-XOVKXJEP.js.map → chunk-R3TLVTWW.js.map} +0 -0
- /package/dist/{chunk-PHNAB54Q.js.map → chunk-RQO3J4MR.js.map} +0 -0
- /package/dist/{chunk-5N53UBH2.js.map → chunk-RR7G2X7C.js.map} +0 -0
- /package/dist/{chunk-DCJ3YFIC.js.map → chunk-S2ULTQZR.js.map} +0 -0
- /package/dist/{chunk-GY5WZBA6.js.map → chunk-S76KRJDG.js.map} +0 -0
- /package/dist/{chunk-EEC4PCG5.js.map → chunk-SZDLX763.js.map} +0 -0
- /package/dist/{chunk-E2ZHGBAK.js.map → chunk-T2JSUEH6.js.map} +0 -0
- /package/dist/{chunk-QMGXMJ2O.js.map → chunk-T2YFZ27G.js.map} +0 -0
- /package/dist/{chunk-LEPOP46W.js.map → chunk-TFA6HPOA.js.map} +0 -0
- /package/dist/{chunk-BA6WOZOT.js.map → chunk-TK4FHQRN.js.map} +0 -0
- /package/dist/{chunk-ZNJSBIP4.js.map → chunk-TNSCIPBQ.js.map} +0 -0
- /package/dist/{chunk-YUMDFDUA.js.map → chunk-TWYTGIBR.js.map} +0 -0
- /package/dist/{chunk-EZZV7OQL.js.map → chunk-UEZKN6VR.js.map} +0 -0
- /package/dist/{chunk-HY55QQD7.js.map → chunk-UJX4I26O.js.map} +0 -0
- /package/dist/{chunk-CBCNKKZD.js.map → chunk-VIZR45AN.js.map} +0 -0
- /package/dist/{chunk-ZG74PWRW.js.map → chunk-VZAKYDMJ.js.map} +0 -0
- /package/dist/{chunk-ITPS5DDH.js.map → chunk-W5BLTZZJ.js.map} +0 -0
- /package/dist/{chunk-H3TKENU4.js.map → chunk-WIKO4SCR.js.map} +0 -0
- /package/dist/{chunk-YFLLGRXO.js.map → chunk-X2QPKLPL.js.map} +0 -0
- /package/dist/{chunk-FGGYSN4P.js.map → chunk-X424T5JQ.js.map} +0 -0
- /package/dist/{chunk-NAXDPKVM.js.map → chunk-XPJNT6PI.js.map} +0 -0
- /package/dist/{contradiction-scan-NOYMFG66.js.map → chunk-XW2T4QAW.js.map} +0 -0
- /package/dist/{chunk-VED2YHUD.js.map → chunk-YEDVOYL2.js.map} +0 -0
- /package/dist/{chunk-RC5DXXWC.js.map → chunk-YM7YN37H.js.map} +0 -0
- /package/dist/{chunk-VLXBE57O.js.map → chunk-YVGXH72Y.js.map} +0 -0
- /package/dist/{chunk-YQAXP5AC.js.map → chunk-YXLUTALO.js.map} +0 -0
- /package/dist/{chunk-565C6ZFO.js.map → chunk-Z7YDVHDI.js.map} +0 -0
- /package/dist/{chunk-XUE46UYW.js.map → chunk-ZLN7AROH.js.map} +0 -0
- /package/dist/{chunk-HK32G473.js.map → chunk-ZWEZXVYH.js.map} +0 -0
- /package/dist/{resolution-VKATP2HT.js.map → contradiction-scan-GVD4JJ7B.js.map} +0 -0
- /package/dist/{first-start-migration-RC345GPL.js.map → first-start-migration-L3UFX5CU.js.map} +0 -0
- /package/dist/{tier-stats-KA6OZX2C.js.map → tier-stats-VK5PCO2L.js.map} +0 -0
|
@@ -1,25 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tagPersistedMemories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A2YQL2FF.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
buildCompressionGuidelinesMarkdown
|
|
10
|
-
} from "./chunk-OD4FM2U7.js";
|
|
11
|
-
import {
|
|
12
|
-
parseQmdExplain
|
|
13
|
-
} from "./chunk-DBQWVT2H.js";
|
|
5
|
+
raceRecallAbort,
|
|
6
|
+
throwIfRecallAborted
|
|
7
|
+
} from "./chunk-TLHNF6GA.js";
|
|
14
8
|
import {
|
|
15
9
|
classifyOrigin
|
|
16
10
|
} from "./chunk-6Q3ZTEF6.js";
|
|
17
|
-
import {
|
|
18
|
-
resolveLifecycleState
|
|
19
|
-
} from "./chunk-TBBDFYXW.js";
|
|
20
11
|
import {
|
|
21
12
|
resolveScopeProfilePlan
|
|
22
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MNIPH6LD.js";
|
|
23
14
|
import {
|
|
24
15
|
parseFlexibleIsoTimestamp
|
|
25
16
|
} from "./chunk-P7FMDTKL.js";
|
|
@@ -33,593 +24,11 @@ import {
|
|
|
33
24
|
} from "./chunk-JUOZ62Y7.js";
|
|
34
25
|
import {
|
|
35
26
|
resolveCodingNamespaceOverlay
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import {
|
|
38
|
-
abortError,
|
|
39
|
-
throwIfAborted
|
|
40
|
-
} from "./chunk-BTTPKDIL.js";
|
|
41
|
-
import {
|
|
42
|
-
categoryDirName
|
|
43
|
-
} from "./chunk-VS2IYZRU.js";
|
|
27
|
+
} from "./chunk-3Q3N35W7.js";
|
|
44
28
|
import {
|
|
45
29
|
log
|
|
46
30
|
} from "./chunk-3WCASNQZ.js";
|
|
47
31
|
|
|
48
|
-
// src/orchestration/orchestrator-helpers.ts
|
|
49
|
-
import { createHash } from "crypto";
|
|
50
|
-
import os from "os";
|
|
51
|
-
import path from "path";
|
|
52
|
-
var ARTIFACT_STATUS_CACHE_TTL_MS = 6e4;
|
|
53
|
-
var BulkImportBatchPartialFailureError = class extends Error {
|
|
54
|
-
partialResult;
|
|
55
|
-
originalError;
|
|
56
|
-
constructor(message, partialResult, originalError) {
|
|
57
|
-
super(message);
|
|
58
|
-
this.name = "BulkImportBatchPartialFailureError";
|
|
59
|
-
this.partialResult = partialResult;
|
|
60
|
-
this.originalError = originalError;
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
function mapRecallSourceToXrayServedBy(source) {
|
|
64
|
-
switch (source) {
|
|
65
|
-
case "recent_scan":
|
|
66
|
-
return "recent-scan";
|
|
67
|
-
case "hot_qmd":
|
|
68
|
-
case "hot_embedding":
|
|
69
|
-
case "cold_fallback":
|
|
70
|
-
case "none":
|
|
71
|
-
return "hybrid";
|
|
72
|
-
}
|
|
73
|
-
const _exhaustive = source;
|
|
74
|
-
void _exhaustive;
|
|
75
|
-
return "hybrid";
|
|
76
|
-
}
|
|
77
|
-
var abortRecallError = abortError;
|
|
78
|
-
function throwIfRecallAborted(signal, message = "recall aborted") {
|
|
79
|
-
throwIfAborted(signal, message);
|
|
80
|
-
}
|
|
81
|
-
async function raceRecallAbort(promise, signal, message = "recall aborted") {
|
|
82
|
-
throwIfRecallAborted(signal, message);
|
|
83
|
-
if (!signal) return promise;
|
|
84
|
-
let onAbort = null;
|
|
85
|
-
const abortPromise = new Promise((_resolve, reject) => {
|
|
86
|
-
onAbort = () => reject(abortRecallError(message));
|
|
87
|
-
signal.addEventListener("abort", onAbort, { once: true });
|
|
88
|
-
});
|
|
89
|
-
try {
|
|
90
|
-
return await Promise.race([promise, abortPromise]);
|
|
91
|
-
} finally {
|
|
92
|
-
if (onAbort) {
|
|
93
|
-
signal.removeEventListener("abort", onAbort);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
var COMPACTION_SIGNAL_MAX_AGE_MS = 60 * 60 * 1e3;
|
|
98
|
-
var DEFAULT_QMD_STARTUP_COLLECTION_CHECK_TIMEOUT_MS = 1e4;
|
|
99
|
-
function normalizeIanaTimeZone(value) {
|
|
100
|
-
if (typeof value !== "string") return void 0;
|
|
101
|
-
const trimmed = value.trim();
|
|
102
|
-
if (!trimmed) return void 0;
|
|
103
|
-
try {
|
|
104
|
-
Intl.DateTimeFormat(void 0, { timeZone: trimmed });
|
|
105
|
-
return trimmed;
|
|
106
|
-
} catch {
|
|
107
|
-
return void 0;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
function formatDateInTimeZone(date, timeZone) {
|
|
111
|
-
const parts = new Intl.DateTimeFormat("en-US", {
|
|
112
|
-
timeZone,
|
|
113
|
-
year: "numeric",
|
|
114
|
-
month: "2-digit",
|
|
115
|
-
day: "2-digit"
|
|
116
|
-
}).formatToParts(date);
|
|
117
|
-
const get = (type) => parts.find((part) => part.type === type)?.value ?? "";
|
|
118
|
-
return `${get("year")}-${get("month")}-${get("day")}`;
|
|
119
|
-
}
|
|
120
|
-
function utcDateKey(date) {
|
|
121
|
-
return date.toISOString().slice(0, 10);
|
|
122
|
-
}
|
|
123
|
-
function utcDateKeysAround(date) {
|
|
124
|
-
const dayMs = 864e5;
|
|
125
|
-
const keys = [
|
|
126
|
-
utcDateKey(new Date(date.getTime() - dayMs)),
|
|
127
|
-
utcDateKey(date),
|
|
128
|
-
utcDateKey(new Date(date.getTime() + dayMs))
|
|
129
|
-
];
|
|
130
|
-
return keys.filter((value, index, array) => array.indexOf(value) === index);
|
|
131
|
-
}
|
|
132
|
-
function utcDateKeysForLocalDay(date, timeZone) {
|
|
133
|
-
const targetLocalDate = formatDateInTimeZone(date, timeZone);
|
|
134
|
-
const keys = /* @__PURE__ */ new Set();
|
|
135
|
-
const hourMs = 36e5;
|
|
136
|
-
const scanStart = date.getTime() - 48 * hourMs;
|
|
137
|
-
const scanEnd = date.getTime() + 48 * hourMs;
|
|
138
|
-
for (let ms = scanStart; ms <= scanEnd; ms += hourMs) {
|
|
139
|
-
const candidate = new Date(ms);
|
|
140
|
-
if (formatDateInTimeZone(candidate, timeZone) === targetLocalDate) {
|
|
141
|
-
keys.add(utcDateKey(candidate));
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return keys.size > 0 ? [...keys].sort() : utcDateKeysAround(date);
|
|
145
|
-
}
|
|
146
|
-
function parseFiniteDate(value) {
|
|
147
|
-
if (typeof value !== "string" || value.trim().length === 0) return null;
|
|
148
|
-
const parsed = new Date(value);
|
|
149
|
-
return Number.isFinite(parsed.getTime()) ? parsed : null;
|
|
150
|
-
}
|
|
151
|
-
function filterHourlySummaryMarkdownForLocalDay(raw, utcDate, timeZone, targetLocalDate) {
|
|
152
|
-
const hourHeaderPattern = /^## ([01]\d|2[0-3]):00[ \t]*$/gm;
|
|
153
|
-
const matches = Array.from(raw.matchAll(hourHeaderPattern));
|
|
154
|
-
if (matches.length === 0) return null;
|
|
155
|
-
const firstSectionStart = matches[0]?.index ?? 0;
|
|
156
|
-
const preamble = raw.slice(0, firstSectionStart).trim();
|
|
157
|
-
const sections = [];
|
|
158
|
-
for (let index = 0; index < matches.length; index += 1) {
|
|
159
|
-
const match = matches[index];
|
|
160
|
-
const hour = match[1];
|
|
161
|
-
if (!hour) continue;
|
|
162
|
-
const sectionTimestamp = parseFiniteDate(`${utcDate}T${hour}:00:00.000Z`);
|
|
163
|
-
if (!sectionTimestamp || formatDateInTimeZone(sectionTimestamp, timeZone) !== targetLocalDate) {
|
|
164
|
-
continue;
|
|
165
|
-
}
|
|
166
|
-
const sectionStart = match.index ?? 0;
|
|
167
|
-
const sectionEnd = matches[index + 1]?.index ?? raw.length;
|
|
168
|
-
const section = raw.slice(sectionStart, sectionEnd).trim();
|
|
169
|
-
if (section.length > 0) sections.push(section);
|
|
170
|
-
}
|
|
171
|
-
if (sections.length === 0) return null;
|
|
172
|
-
return [preamble, ...sections].filter((section) => section.length > 0).join("\n\n");
|
|
173
|
-
}
|
|
174
|
-
function qmdStartupCollectionCheckTimeoutMs() {
|
|
175
|
-
const raw = process.env.REMNIC_QMD_STARTUP_COLLECTION_CHECK_TIMEOUT_MS ?? process.env.ENGRAM_QMD_STARTUP_COLLECTION_CHECK_TIMEOUT_MS;
|
|
176
|
-
if (raw === void 0) return DEFAULT_QMD_STARTUP_COLLECTION_CHECK_TIMEOUT_MS;
|
|
177
|
-
const parsed = Number(raw);
|
|
178
|
-
return Number.isFinite(parsed) && parsed >= 1e3 ? Math.floor(parsed) : DEFAULT_QMD_STARTUP_COLLECTION_CHECK_TIMEOUT_MS;
|
|
179
|
-
}
|
|
180
|
-
async function qmdStartupCollectionCheckWithTimeout(promise, controller, label) {
|
|
181
|
-
const timeoutMs = qmdStartupCollectionCheckTimeoutMs();
|
|
182
|
-
let timer;
|
|
183
|
-
let settled = false;
|
|
184
|
-
const timeoutPromise = new Promise((resolve) => {
|
|
185
|
-
timer = setTimeout(() => {
|
|
186
|
-
if (settled) return;
|
|
187
|
-
controller.abort();
|
|
188
|
-
log.warn(
|
|
189
|
-
`QMD startup collection check for ${label} timed out after ${timeoutMs}ms; keeping search enabled fail-open`
|
|
190
|
-
);
|
|
191
|
-
resolve("unknown");
|
|
192
|
-
}, timeoutMs);
|
|
193
|
-
timer.unref?.();
|
|
194
|
-
});
|
|
195
|
-
const checkedPromise = promise.catch((err) => {
|
|
196
|
-
log.warn(
|
|
197
|
-
`QMD startup collection check for ${label} failed; keeping search enabled fail-open: ${err}`
|
|
198
|
-
);
|
|
199
|
-
return "unknown";
|
|
200
|
-
}).finally(() => {
|
|
201
|
-
settled = true;
|
|
202
|
-
if (timer) clearTimeout(timer);
|
|
203
|
-
});
|
|
204
|
-
return await Promise.race([checkedPromise, timeoutPromise]);
|
|
205
|
-
}
|
|
206
|
-
function defaultWorkspaceDir() {
|
|
207
|
-
return path.join(os.homedir(), ".openclaw", "workspace");
|
|
208
|
-
}
|
|
209
|
-
function sanitizeSessionKeyForFilename(sessionKey) {
|
|
210
|
-
const readable = sessionKey.replace(/[^a-zA-Z0-9._-]/g, "_");
|
|
211
|
-
const hash = createHash("sha256").update(sessionKey).digest("hex").slice(0, 12);
|
|
212
|
-
return `${readable}-${hash}`;
|
|
213
|
-
}
|
|
214
|
-
function sourceValidAtMs(turn) {
|
|
215
|
-
if (typeof turn.sourceValidAt !== "string") return null;
|
|
216
|
-
return parseFlexibleIsoTimestamp(turn.sourceValidAt.trim());
|
|
217
|
-
}
|
|
218
|
-
var SOURCE_VALID_AT_CONTEXT_TURNS = 2;
|
|
219
|
-
function sourceValidAtSliceKey(turn, index) {
|
|
220
|
-
const validAtMs = sourceValidAtMs(turn);
|
|
221
|
-
return validAtMs === null ? `unknown:${index}` : String(validAtMs);
|
|
222
|
-
}
|
|
223
|
-
function asExtractionContextTurn(turn) {
|
|
224
|
-
return { ...turn, extractionContextOnly: true };
|
|
225
|
-
}
|
|
226
|
-
function asExtractionTargetTurn(turn) {
|
|
227
|
-
const { extractionContextOnly: _contextOnly, ...targetTurn } = turn;
|
|
228
|
-
return targetTurn;
|
|
229
|
-
}
|
|
230
|
-
function sourceValidAtContextTurns(turns, targetStart, targetEnd, targetValidAtMs) {
|
|
231
|
-
if (targetValidAtMs === null) return [];
|
|
232
|
-
return turns.flatMap((turn, index) => {
|
|
233
|
-
if (index >= targetStart && index < targetEnd) return [];
|
|
234
|
-
const contextValidAtMs = sourceValidAtMs(turn);
|
|
235
|
-
if (contextValidAtMs === null || contextValidAtMs > targetValidAtMs) {
|
|
236
|
-
return [];
|
|
237
|
-
}
|
|
238
|
-
return [{ turn, index, validAtMs: contextValidAtMs }];
|
|
239
|
-
}).sort((a, b) => {
|
|
240
|
-
if (a.validAtMs < b.validAtMs) return -1;
|
|
241
|
-
if (a.validAtMs > b.validAtMs) return 1;
|
|
242
|
-
if (a.index === b.index) return 0;
|
|
243
|
-
return a.index < b.index ? -1 : 1;
|
|
244
|
-
}).slice(-SOURCE_VALID_AT_CONTEXT_TURNS).map(({ turn }) => asExtractionContextTurn(turn));
|
|
245
|
-
}
|
|
246
|
-
function targetSourceValidAtSortMs(turns) {
|
|
247
|
-
let latestMs = null;
|
|
248
|
-
for (const turn of turns) {
|
|
249
|
-
if (turn.extractionContextOnly === true) continue;
|
|
250
|
-
const validAtMs = sourceValidAtMs(turn);
|
|
251
|
-
if (validAtMs === null) continue;
|
|
252
|
-
if (latestMs === null || validAtMs > latestMs) {
|
|
253
|
-
latestMs = validAtMs;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
return latestMs ?? Number.POSITIVE_INFINITY;
|
|
257
|
-
}
|
|
258
|
-
function sortSourceValidAtSlicesChronologically(slices) {
|
|
259
|
-
return slices.map((turns, order) => ({
|
|
260
|
-
turns,
|
|
261
|
-
order,
|
|
262
|
-
targetValidAtMs: targetSourceValidAtSortMs(turns)
|
|
263
|
-
})).sort((a, b) => {
|
|
264
|
-
if (a.targetValidAtMs < b.targetValidAtMs) return -1;
|
|
265
|
-
if (a.targetValidAtMs > b.targetValidAtMs) return 1;
|
|
266
|
-
if (a.order === b.order) return 0;
|
|
267
|
-
return a.order < b.order ? -1 : 1;
|
|
268
|
-
}).map((slice) => slice.turns);
|
|
269
|
-
}
|
|
270
|
-
function splitTurnsBySourceValidAt(turns, options = {}) {
|
|
271
|
-
if (turns.length === 0) return [];
|
|
272
|
-
if (!turns.some((turn) => sourceValidAtMs(turn) !== null)) {
|
|
273
|
-
return [[...turns]];
|
|
274
|
-
}
|
|
275
|
-
const slices = [];
|
|
276
|
-
let start = 0;
|
|
277
|
-
while (start < turns.length) {
|
|
278
|
-
const targetValidAtMs = sourceValidAtMs(turns[start]);
|
|
279
|
-
const activeKey = sourceValidAtSliceKey(turns[start], start);
|
|
280
|
-
let end = start + 1;
|
|
281
|
-
while (end < turns.length && sourceValidAtSliceKey(turns[end], end) === activeKey) {
|
|
282
|
-
end += 1;
|
|
283
|
-
}
|
|
284
|
-
const contextTurns = options.includeContext === false ? [] : sourceValidAtContextTurns(turns, start, end, targetValidAtMs);
|
|
285
|
-
slices.push([
|
|
286
|
-
...contextTurns,
|
|
287
|
-
...turns.slice(start, end).map(asExtractionTargetTurn)
|
|
288
|
-
]);
|
|
289
|
-
start = end;
|
|
290
|
-
}
|
|
291
|
-
return sortSourceValidAtSlicesChronologically(slices);
|
|
292
|
-
}
|
|
293
|
-
function isArtifactMemoryPath(filePath) {
|
|
294
|
-
return /(?:^|[\\/])artifacts(?:[\\/]|$)/i.test(filePath);
|
|
295
|
-
}
|
|
296
|
-
function isMeetingRecordPath(filePath) {
|
|
297
|
-
return /(?:^|[\\/])meetings[\\/]\d{4}-\d{2}-\d{2}[\\/]mtg-\d{4}-\d{2}-\d{2}-[0-9a-f]{8}\.md$/i.test(filePath);
|
|
298
|
-
}
|
|
299
|
-
var ACTIVITY_DIGEST_TOPLEVEL = /^activity[\\/]\d{4}-\d{2}-\d{2}\.md$/i;
|
|
300
|
-
var ACTIVITY_DIGEST_ANYWHERE = /(?:^|[\\/])activity[\\/]\d{4}-\d{2}-\d{2}\.md$/i;
|
|
301
|
-
function isActivityDigestPath(filePath, memoryRoot) {
|
|
302
|
-
if (memoryRoot !== void 0 && memoryRoot.length > 0) {
|
|
303
|
-
const relative = path.relative(memoryRoot, path.resolve(memoryRoot, filePath));
|
|
304
|
-
return ACTIVITY_DIGEST_TOPLEVEL.test(relative);
|
|
305
|
-
}
|
|
306
|
-
return ACTIVITY_DIGEST_ANYWHERE.test(filePath);
|
|
307
|
-
}
|
|
308
|
-
var LOCATION_DAY_TOPLEVEL = /^locations[\\/]\d{4}-\d{2}-\d{2}\.md$/i;
|
|
309
|
-
var LOCATION_DAY_ANYWHERE = /(?:^|[\\/])locations[\\/]\d{4}-\d{2}-\d{2}\.md$/i;
|
|
310
|
-
function isLocationDayPath(filePath, memoryRoot) {
|
|
311
|
-
if (memoryRoot !== void 0 && memoryRoot.length > 0) {
|
|
312
|
-
const relative = path.relative(memoryRoot, path.resolve(memoryRoot, filePath));
|
|
313
|
-
return LOCATION_DAY_TOPLEVEL.test(relative);
|
|
314
|
-
}
|
|
315
|
-
return LOCATION_DAY_ANYWHERE.test(filePath);
|
|
316
|
-
}
|
|
317
|
-
function buildCompressionGuidelinesMarkdown2(events, generatedAtIso = (/* @__PURE__ */ new Date()).toISOString()) {
|
|
318
|
-
return buildCompressionGuidelinesMarkdown(events, generatedAtIso);
|
|
319
|
-
}
|
|
320
|
-
function applyQueryAwareCandidateFilter(candidates, candidatePaths) {
|
|
321
|
-
if (!candidatePaths) return candidates;
|
|
322
|
-
if (candidatePaths.size === 0) return [];
|
|
323
|
-
const filtered = candidates.filter(
|
|
324
|
-
(candidate) => candidatePaths.has(candidate.path)
|
|
325
|
-
);
|
|
326
|
-
return filtered.length > 0 ? filtered : candidates;
|
|
327
|
-
}
|
|
328
|
-
function tokenizeRecallQuery(prompt) {
|
|
329
|
-
return prompt.toLowerCase().split(/[^a-z0-9]+/i).map((t) => t.trim()).filter((t) => t.length >= 3);
|
|
330
|
-
}
|
|
331
|
-
function hasLifecycleMetadata(frontmatter) {
|
|
332
|
-
return frontmatter.lifecycleState !== void 0 || frontmatter.verificationState !== void 0 || frontmatter.policyClass !== void 0 || frontmatter.lastValidatedAt !== void 0 || frontmatter.decayScore !== void 0 || frontmatter.heatScore !== void 0;
|
|
333
|
-
}
|
|
334
|
-
function shouldFilterLifecycleRecallCandidate(frontmatter, options) {
|
|
335
|
-
if (!options.lifecyclePolicyEnabled || !options.lifecycleFilterStaleEnabled)
|
|
336
|
-
return false;
|
|
337
|
-
if (!hasLifecycleMetadata(frontmatter)) return false;
|
|
338
|
-
const lifecycleState = resolveLifecycleState(frontmatter);
|
|
339
|
-
return lifecycleState === "stale" || lifecycleState === "archived";
|
|
340
|
-
}
|
|
341
|
-
function lifecycleRecallScoreAdjustment(frontmatter, options) {
|
|
342
|
-
if (!options.lifecyclePolicyEnabled) return 0;
|
|
343
|
-
if (!hasLifecycleMetadata(frontmatter)) return 0;
|
|
344
|
-
let delta = 0;
|
|
345
|
-
const lifecycleState = resolveLifecycleState(frontmatter);
|
|
346
|
-
switch (lifecycleState) {
|
|
347
|
-
case "active":
|
|
348
|
-
delta += 0.05;
|
|
349
|
-
break;
|
|
350
|
-
case "validated":
|
|
351
|
-
delta += 0.03;
|
|
352
|
-
break;
|
|
353
|
-
case "candidate":
|
|
354
|
-
delta -= 0.01;
|
|
355
|
-
break;
|
|
356
|
-
case "stale":
|
|
357
|
-
delta -= 0.06;
|
|
358
|
-
break;
|
|
359
|
-
case "archived":
|
|
360
|
-
delta -= 0.08;
|
|
361
|
-
break;
|
|
362
|
-
}
|
|
363
|
-
if (frontmatter.verificationState === "disputed") {
|
|
364
|
-
delta -= 0.12;
|
|
365
|
-
}
|
|
366
|
-
return delta;
|
|
367
|
-
}
|
|
368
|
-
function computeArtifactRecallLimit(recallMode, recallResultLimit, verbatimArtifactsMaxRecall) {
|
|
369
|
-
if (recallMode === "no_recall") return 0;
|
|
370
|
-
if (Math.max(0, recallResultLimit) === 0) return 0;
|
|
371
|
-
const base = Math.max(0, verbatimArtifactsMaxRecall);
|
|
372
|
-
if (recallMode === "minimal") {
|
|
373
|
-
return Math.min(base, Math.max(0, recallResultLimit));
|
|
374
|
-
}
|
|
375
|
-
return base;
|
|
376
|
-
}
|
|
377
|
-
function resolveEffectiveRecallMode(options) {
|
|
378
|
-
return resolveRecallModeDecision(options).effectiveMode;
|
|
379
|
-
}
|
|
380
|
-
function finalizeRecallModeDecision(plannedModeRaw, options) {
|
|
381
|
-
let plannedMode = plannedModeRaw;
|
|
382
|
-
const graphExpandedIntentDetected = options.plannerEnabled && options.graphExpandedIntentEnabled === true && hasBroadGraphIntent(options.prompt);
|
|
383
|
-
if (plannedMode !== "graph_mode" && graphExpandedIntentDetected) {
|
|
384
|
-
plannedMode = "graph_mode";
|
|
385
|
-
}
|
|
386
|
-
if (plannedMode === "graph_mode" && (!options.graphRecallEnabled || !options.multiGraphMemoryEnabled)) {
|
|
387
|
-
return {
|
|
388
|
-
plannedMode,
|
|
389
|
-
effectiveMode: "full",
|
|
390
|
-
graphExpandedIntentDetected,
|
|
391
|
-
graphReason: !options.graphRecallEnabled ? "graph recall disabled by config" : "multi-graph memory disabled by config"
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
return {
|
|
395
|
-
plannedMode,
|
|
396
|
-
effectiveMode: plannedMode,
|
|
397
|
-
graphExpandedIntentDetected
|
|
398
|
-
};
|
|
399
|
-
}
|
|
400
|
-
function resolveRecallModeDecision(options) {
|
|
401
|
-
const plannedMode = options.plannerEnabled ? planRecallMode(options.prompt) : "full";
|
|
402
|
-
return finalizeRecallModeDecision(plannedMode, options);
|
|
403
|
-
}
|
|
404
|
-
async function resolveRecallModeDecisionAsync(options) {
|
|
405
|
-
const heuristicDecision = resolveRecallModeDecision(options);
|
|
406
|
-
const plannerLlmEnabled = options.caps.recallPlannerLlm;
|
|
407
|
-
if (!options.plannerEnabled || !plannerLlmEnabled) {
|
|
408
|
-
return heuristicDecision;
|
|
409
|
-
}
|
|
410
|
-
const { planRecallModeLLM } = await import("./recall-planner-llm.js");
|
|
411
|
-
const planned = await planRecallModeLLM(
|
|
412
|
-
options.prompt,
|
|
413
|
-
options.hints,
|
|
414
|
-
options.config,
|
|
415
|
-
options.caps,
|
|
416
|
-
options.llm,
|
|
417
|
-
options.signal
|
|
418
|
-
);
|
|
419
|
-
if (options.config.recallPlannerShadowMode) {
|
|
420
|
-
return {
|
|
421
|
-
...heuristicDecision,
|
|
422
|
-
plannerSource: planned.source,
|
|
423
|
-
plannerReason: `shadow:${planned.reason}`,
|
|
424
|
-
plannerLatencyMs: planned.latencyMs,
|
|
425
|
-
plannerFallbackUsed: planned.fallbackUsed,
|
|
426
|
-
plannerModelUsed: planned.modelUsed,
|
|
427
|
-
plannerHeuristicMode: planned.heuristicMode,
|
|
428
|
-
shadowLlmMode: planned.mode
|
|
429
|
-
};
|
|
430
|
-
}
|
|
431
|
-
const llmDecision = finalizeRecallModeDecision(planned.mode, options);
|
|
432
|
-
return {
|
|
433
|
-
...llmDecision,
|
|
434
|
-
plannerSource: planned.source,
|
|
435
|
-
plannerReason: planned.reason,
|
|
436
|
-
plannerLatencyMs: planned.latencyMs,
|
|
437
|
-
plannerFallbackUsed: planned.fallbackUsed,
|
|
438
|
-
plannerModelUsed: planned.modelUsed,
|
|
439
|
-
plannerHeuristicMode: planned.heuristicMode
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
function computeArtifactCandidateFetchLimit(targetCount) {
|
|
443
|
-
const cappedTarget = Math.max(0, targetCount);
|
|
444
|
-
if (cappedTarget === 0) return 0;
|
|
445
|
-
const headroom = Math.max(8, cappedTarget * 4);
|
|
446
|
-
return Math.min(200, cappedTarget + headroom);
|
|
447
|
-
}
|
|
448
|
-
function computeQmdHybridFetchLimit(recallFetchLimit, artifactsEnabled, maxArtifactRecall) {
|
|
449
|
-
const cappedRecallLimit = Math.max(0, recallFetchLimit);
|
|
450
|
-
if (cappedRecallLimit === 0) return 0;
|
|
451
|
-
if (!artifactsEnabled) return cappedRecallLimit;
|
|
452
|
-
const artifactHeadroom = Math.max(20, Math.max(0, maxArtifactRecall) * 8);
|
|
453
|
-
return Math.min(400, cappedRecallLimit + artifactHeadroom);
|
|
454
|
-
}
|
|
455
|
-
function summarizeGraphShadowComparison(baseline, merged, topN) {
|
|
456
|
-
const limit = Math.max(0, Math.floor(topN));
|
|
457
|
-
const baselineTop = limit > 0 ? baseline.slice(0, limit) : [];
|
|
458
|
-
const graphTop = limit > 0 ? merged.slice(0, limit) : [];
|
|
459
|
-
const baselineByPath = new Map(
|
|
460
|
-
baselineTop.map((item) => [item.path, item.score])
|
|
461
|
-
);
|
|
462
|
-
const graphByPath = new Map(graphTop.map((item) => [item.path, item.score]));
|
|
463
|
-
let overlapCount = 0;
|
|
464
|
-
let overlapDeltaSum = 0;
|
|
465
|
-
for (const [p, baselineScore] of baselineByPath.entries()) {
|
|
466
|
-
const graphScore = graphByPath.get(p);
|
|
467
|
-
if (typeof graphScore !== "number") continue;
|
|
468
|
-
overlapCount += 1;
|
|
469
|
-
overlapDeltaSum += graphScore - baselineScore;
|
|
470
|
-
}
|
|
471
|
-
const baselineCount = baselineTop.length;
|
|
472
|
-
return {
|
|
473
|
-
baselineCount,
|
|
474
|
-
graphCount: graphTop.length,
|
|
475
|
-
overlapCount,
|
|
476
|
-
overlapRatio: baselineCount > 0 ? overlapCount / baselineCount : 0,
|
|
477
|
-
averageOverlapDelta: overlapCount > 0 ? overlapDeltaSum / overlapCount : 0
|
|
478
|
-
};
|
|
479
|
-
}
|
|
480
|
-
function parseGraphRecallRankedResults(value) {
|
|
481
|
-
if (!Array.isArray(value)) return [];
|
|
482
|
-
const parsed = [];
|
|
483
|
-
for (const entry of value) {
|
|
484
|
-
if (!entry || typeof entry !== "object") continue;
|
|
485
|
-
const candidate = entry;
|
|
486
|
-
if (typeof candidate.path !== "string" || typeof candidate.score !== "number")
|
|
487
|
-
continue;
|
|
488
|
-
parsed.push({
|
|
489
|
-
path: candidate.path,
|
|
490
|
-
score: candidate.score,
|
|
491
|
-
docid: typeof candidate.docid === "string" ? candidate.docid : void 0,
|
|
492
|
-
sourceLabels: Array.isArray(candidate.sourceLabels) ? candidate.sourceLabels.filter(
|
|
493
|
-
(item) => typeof item === "string"
|
|
494
|
-
) : []
|
|
495
|
-
});
|
|
496
|
-
}
|
|
497
|
-
return parsed.slice(0, 64);
|
|
498
|
-
}
|
|
499
|
-
function parseMemoryIntentSnapshot(value) {
|
|
500
|
-
const candidate = value && typeof value === "object" ? value : {};
|
|
501
|
-
return {
|
|
502
|
-
goal: typeof candidate.goal === "string" ? candidate.goal : "unknown",
|
|
503
|
-
actionType: typeof candidate.actionType === "string" ? candidate.actionType : "unknown",
|
|
504
|
-
entityTypes: Array.isArray(candidate.entityTypes) ? candidate.entityTypes.filter(
|
|
505
|
-
(item) => typeof item === "string"
|
|
506
|
-
) : [],
|
|
507
|
-
taskInitiation: candidate.taskInitiation === true
|
|
508
|
-
};
|
|
509
|
-
}
|
|
510
|
-
function buildQmdIntentHint(intent) {
|
|
511
|
-
const parts = [];
|
|
512
|
-
if (intent.goal !== "unknown") {
|
|
513
|
-
parts.push(`goal:${intent.goal.replace(/_/g, " ")}`);
|
|
514
|
-
}
|
|
515
|
-
if (intent.actionType !== "unknown") {
|
|
516
|
-
parts.push(`action:${intent.actionType.replace(/_/g, " ")}`);
|
|
517
|
-
}
|
|
518
|
-
if (intent.entityTypes.length > 0) {
|
|
519
|
-
parts.push(`entities:${intent.entityTypes.join(",")}`);
|
|
520
|
-
}
|
|
521
|
-
if (intent.taskInitiation === true) {
|
|
522
|
-
parts.push("task_initiation");
|
|
523
|
-
}
|
|
524
|
-
return parts.length > 0 ? parts.join(" ") : void 0;
|
|
525
|
-
}
|
|
526
|
-
function parseQmdRecallResults(value) {
|
|
527
|
-
if (!Array.isArray(value)) return [];
|
|
528
|
-
const parsed = [];
|
|
529
|
-
for (const entry of value) {
|
|
530
|
-
if (!entry || typeof entry !== "object") continue;
|
|
531
|
-
const candidate = entry;
|
|
532
|
-
if (typeof candidate.path !== "string" || typeof candidate.score !== "number")
|
|
533
|
-
continue;
|
|
534
|
-
parsed.push({
|
|
535
|
-
docid: typeof candidate.docid === "string" ? candidate.docid : "",
|
|
536
|
-
path: candidate.path,
|
|
537
|
-
snippet: typeof candidate.snippet === "string" ? candidate.snippet : "",
|
|
538
|
-
score: candidate.score,
|
|
539
|
-
explain: parseQmdExplain(candidate.explain),
|
|
540
|
-
transport: candidate.transport === "daemon" || candidate.transport === "subprocess" || candidate.transport === "hybrid" || candidate.transport === "scoped_prefilter" ? candidate.transport : void 0
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
return parsed.slice(0, 32);
|
|
544
|
-
}
|
|
545
|
-
function mergeArtifactRecallCandidates(candidatesByNamespace, limit) {
|
|
546
|
-
const cappedLimit = Math.max(0, limit);
|
|
547
|
-
if (cappedLimit === 0) return [];
|
|
548
|
-
const out = [];
|
|
549
|
-
const seen = /* @__PURE__ */ new Set();
|
|
550
|
-
let offset = 0;
|
|
551
|
-
while (out.length < cappedLimit) {
|
|
552
|
-
let hasAnyCandidateAtOffset = false;
|
|
553
|
-
for (const list of candidatesByNamespace) {
|
|
554
|
-
if (offset >= list.length) continue;
|
|
555
|
-
hasAnyCandidateAtOffset = true;
|
|
556
|
-
const item = list[offset];
|
|
557
|
-
const dedupeKey = `${item.frontmatter.id}:${item.frontmatter.sourceMemoryId ?? ""}:${item.content}`;
|
|
558
|
-
if (seen.has(dedupeKey)) continue;
|
|
559
|
-
seen.add(dedupeKey);
|
|
560
|
-
out.push(item);
|
|
561
|
-
if (out.length >= cappedLimit) break;
|
|
562
|
-
}
|
|
563
|
-
if (!hasAnyCandidateAtOffset) break;
|
|
564
|
-
offset += 1;
|
|
565
|
-
}
|
|
566
|
-
return out;
|
|
567
|
-
}
|
|
568
|
-
function resolveRecentThreadMemoryPaths(options) {
|
|
569
|
-
const maxRecent = Math.max(0, options.maxRecent);
|
|
570
|
-
if (options.threadEpisodeIds.length === 0 || maxRecent === 0) return [];
|
|
571
|
-
const pathById = options.pathById ?? buildMemoryPathById(options.allMemsForGraph, options.storageDir);
|
|
572
|
-
if (pathById.size === 0) return [];
|
|
573
|
-
const pendingReviewIds = new Set(
|
|
574
|
-
(options.allMemsForGraph ?? []).filter((m) => m.frontmatter.status === "pending_review" && m.frontmatter.id).map((m) => m.frontmatter.id)
|
|
575
|
-
);
|
|
576
|
-
return options.threadEpisodeIds.filter((id) => id !== options.currentMemoryId).filter((id) => !pendingReviewIds.has(id)).slice(-maxRecent).map((id) => pathById.get(id)).filter((p) => typeof p === "string" && p.length > 0);
|
|
577
|
-
}
|
|
578
|
-
function buildMemoryPathById(allMemsForGraph, storageDir) {
|
|
579
|
-
const pathById = /* @__PURE__ */ new Map();
|
|
580
|
-
for (const mem of allMemsForGraph ?? []) {
|
|
581
|
-
const id = mem.frontmatter.id;
|
|
582
|
-
if (!id) continue;
|
|
583
|
-
pathById.set(id, path.relative(storageDir, mem.path));
|
|
584
|
-
}
|
|
585
|
-
return pathById;
|
|
586
|
-
}
|
|
587
|
-
function appendMemoryToGraphContext(options) {
|
|
588
|
-
if (!Array.isArray(options.allMemsForGraph)) return;
|
|
589
|
-
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
590
|
-
options.allMemsForGraph.push({
|
|
591
|
-
path: path.join(options.storageDir, options.memoryRelPath),
|
|
592
|
-
content: options.content,
|
|
593
|
-
frontmatter: {
|
|
594
|
-
id: options.memoryId,
|
|
595
|
-
category: options.category,
|
|
596
|
-
created: nowIso,
|
|
597
|
-
updated: nowIso,
|
|
598
|
-
source: "extraction",
|
|
599
|
-
confidence: 0.8,
|
|
600
|
-
confidenceTier: "implied",
|
|
601
|
-
tags: [],
|
|
602
|
-
entityRef: options.entityRef,
|
|
603
|
-
status: "active"
|
|
604
|
-
}
|
|
605
|
-
});
|
|
606
|
-
}
|
|
607
|
-
function resolvePersistedMemoryRelativePath(options) {
|
|
608
|
-
const persisted = options.pathById.get(options.memoryId);
|
|
609
|
-
if (persisted) return persisted;
|
|
610
|
-
if (options.category === "correction") {
|
|
611
|
-
return path.join("corrections", `${options.memoryId}.md`);
|
|
612
|
-
}
|
|
613
|
-
const subtree = categoryDirName(options.category);
|
|
614
|
-
const idParts = options.memoryId.split("-");
|
|
615
|
-
const maybeTimestamp = Number(idParts[1]);
|
|
616
|
-
if (Number.isFinite(maybeTimestamp) && maybeTimestamp > 0) {
|
|
617
|
-
const day = new Date(maybeTimestamp).toISOString().slice(0, 10);
|
|
618
|
-
return path.join(subtree, day, `${options.memoryId}.md`);
|
|
619
|
-
}
|
|
620
|
-
return path.join(subtree, `${options.memoryId}.md`);
|
|
621
|
-
}
|
|
622
|
-
|
|
623
32
|
// src/orchestration/extraction-run-helpers.ts
|
|
624
33
|
function combineExtractionAbortSignals(primary, deadlineController) {
|
|
625
34
|
if (!deadlineController) return primary;
|
|
@@ -834,7 +243,7 @@ async function commitEmptySuccessExtraction(args) {
|
|
|
834
243
|
}
|
|
835
244
|
|
|
836
245
|
// src/orchestration/extraction-run.ts
|
|
837
|
-
import { createHash
|
|
246
|
+
import { createHash } from "crypto";
|
|
838
247
|
|
|
839
248
|
// src/orchestration/extraction-origin-context.ts
|
|
840
249
|
function deriveExtractionOriginContext(targetTurns, fallbackConnector) {
|
|
@@ -932,7 +341,7 @@ var ExtractionRunCoordinator = class {
|
|
|
932
341
|
buildExtractionFingerprint(turns, bufferKey) {
|
|
933
342
|
const normalized = this.normalizeExtractionFingerprintTurns(turns).join("\n");
|
|
934
343
|
if (!normalized) return null;
|
|
935
|
-
return
|
|
344
|
+
return createHash("sha256").update(`${bufferKey}
|
|
936
345
|
${normalized}`).digest("hex");
|
|
937
346
|
}
|
|
938
347
|
shouldQueueExtraction(turns, options = {}) {
|
|
@@ -1134,7 +543,7 @@ ${normalized}`).digest("hex");
|
|
|
1134
543
|
throw new ExtractionDeadlineError(stage);
|
|
1135
544
|
}
|
|
1136
545
|
};
|
|
1137
|
-
const
|
|
546
|
+
const throwIfAborted = (stage) => {
|
|
1138
547
|
throwIfRecallAborted(options.abortSignal, `extraction aborted (${stage})`);
|
|
1139
548
|
};
|
|
1140
549
|
const runPassiveCapture = async (captureTurns, captureOptions) => {
|
|
@@ -1185,7 +594,7 @@ ${normalized}`).digest("hex");
|
|
|
1185
594
|
const clearBuffer = async (options2) => {
|
|
1186
595
|
if (options2?.ignoreAbort !== true) {
|
|
1187
596
|
throwIfDeadlineExceeded("before_clear_buffer");
|
|
1188
|
-
|
|
597
|
+
throwIfAborted("before_clear_buffer");
|
|
1189
598
|
}
|
|
1190
599
|
if (clearBufferAfterExtraction) {
|
|
1191
600
|
await this.deps.getBuffer().clearAfterExtraction(bufferKey, turns, clearMatchingTurns ? { allowNonPrefix: true } : void 0);
|
|
@@ -1227,7 +636,7 @@ ${normalized}`).digest("hex");
|
|
|
1227
636
|
}
|
|
1228
637
|
const sourceValidAt = this.latestSourceValidAtFromTurns(targetTurns);
|
|
1229
638
|
throwIfDeadlineExceeded("before_extract");
|
|
1230
|
-
|
|
639
|
+
throwIfAborted("before_extract");
|
|
1231
640
|
const userTurns = targetTurns.filter((t) => t.role === "user");
|
|
1232
641
|
const totalChars = targetTurns.reduce((sum, t) => sum + t.content.length, 0);
|
|
1233
642
|
const belowCharThreshold = totalChars < this.config.extractionMinChars;
|
|
@@ -1316,7 +725,7 @@ ${normalized}`).digest("hex");
|
|
|
1316
725
|
throwIfDeadlineExceeded(phase);
|
|
1317
726
|
}
|
|
1318
727
|
if (operationSignal?.aborted) {
|
|
1319
|
-
|
|
728
|
+
throwIfAborted(phase);
|
|
1320
729
|
}
|
|
1321
730
|
return await raceRecallAbort(
|
|
1322
731
|
operation(),
|
|
@@ -1425,7 +834,7 @@ ${normalized}`).digest("hex");
|
|
|
1425
834
|
}
|
|
1426
835
|
try {
|
|
1427
836
|
throwIfDeadlineExceeded("before_persist");
|
|
1428
|
-
|
|
837
|
+
throwIfAborted("before_persist");
|
|
1429
838
|
if (!result) {
|
|
1430
839
|
log.warn("runExtraction: extraction returned null/undefined");
|
|
1431
840
|
if (options.failOnExtractionFailure) {
|
|
@@ -1555,7 +964,7 @@ ${normalized}`).digest("hex");
|
|
|
1555
964
|
}
|
|
1556
965
|
const originContext = deriveExtractionOriginContext(targetTurns, result.sourceConnector);
|
|
1557
966
|
throwIfDeadlineExceeded("before_persist");
|
|
1558
|
-
|
|
967
|
+
throwIfAborted("before_persist");
|
|
1559
968
|
const { persistedIds } = await this.deps.persistExtraction(
|
|
1560
969
|
result,
|
|
1561
970
|
storage,
|
|
@@ -1666,52 +1075,10 @@ ${normalized}`).digest("hex");
|
|
|
1666
1075
|
};
|
|
1667
1076
|
|
|
1668
1077
|
export {
|
|
1669
|
-
ARTIFACT_STATUS_CACHE_TTL_MS,
|
|
1670
|
-
BulkImportBatchPartialFailureError,
|
|
1671
|
-
mapRecallSourceToXrayServedBy,
|
|
1672
|
-
abortRecallError,
|
|
1673
|
-
throwIfRecallAborted,
|
|
1674
|
-
raceRecallAbort,
|
|
1675
|
-
COMPACTION_SIGNAL_MAX_AGE_MS,
|
|
1676
|
-
normalizeIanaTimeZone,
|
|
1677
|
-
formatDateInTimeZone,
|
|
1678
|
-
utcDateKeysForLocalDay,
|
|
1679
|
-
parseFiniteDate,
|
|
1680
|
-
filterHourlySummaryMarkdownForLocalDay,
|
|
1681
|
-
qmdStartupCollectionCheckWithTimeout,
|
|
1682
|
-
defaultWorkspaceDir,
|
|
1683
|
-
sanitizeSessionKeyForFilename,
|
|
1684
|
-
targetSourceValidAtSortMs,
|
|
1685
|
-
splitTurnsBySourceValidAt,
|
|
1686
|
-
isArtifactMemoryPath,
|
|
1687
|
-
isMeetingRecordPath,
|
|
1688
|
-
isActivityDigestPath,
|
|
1689
|
-
isLocationDayPath,
|
|
1690
|
-
buildCompressionGuidelinesMarkdown2 as buildCompressionGuidelinesMarkdown,
|
|
1691
|
-
applyQueryAwareCandidateFilter,
|
|
1692
|
-
tokenizeRecallQuery,
|
|
1693
|
-
shouldFilterLifecycleRecallCandidate,
|
|
1694
|
-
lifecycleRecallScoreAdjustment,
|
|
1695
|
-
computeArtifactRecallLimit,
|
|
1696
|
-
resolveEffectiveRecallMode,
|
|
1697
|
-
resolveRecallModeDecision,
|
|
1698
|
-
resolveRecallModeDecisionAsync,
|
|
1699
|
-
computeArtifactCandidateFetchLimit,
|
|
1700
|
-
computeQmdHybridFetchLimit,
|
|
1701
|
-
summarizeGraphShadowComparison,
|
|
1702
|
-
parseGraphRecallRankedResults,
|
|
1703
|
-
parseMemoryIntentSnapshot,
|
|
1704
|
-
buildQmdIntentHint,
|
|
1705
|
-
parseQmdRecallResults,
|
|
1706
|
-
mergeArtifactRecallCandidates,
|
|
1707
|
-
resolveRecentThreadMemoryPaths,
|
|
1708
|
-
buildMemoryPathById,
|
|
1709
|
-
appendMemoryToGraphContext,
|
|
1710
|
-
resolvePersistedMemoryRelativePath,
|
|
1711
1078
|
classifyExtractionOrigin,
|
|
1712
1079
|
deriveTopicsFromExtraction,
|
|
1713
1080
|
deriveSourceConnector,
|
|
1714
1081
|
ExtractionDeadlineError,
|
|
1715
1082
|
ExtractionRunCoordinator
|
|
1716
1083
|
};
|
|
1717
|
-
//# sourceMappingURL=chunk-
|
|
1084
|
+
//# sourceMappingURL=chunk-326KUXIR.js.map
|