@remnic/core 9.45.3 → 9.45.5
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/abort-error.d.ts +2 -1
- package/dist/abort-error.js +3 -1
- package/dist/access-admin-ops-surface.d.ts +14 -10
- package/dist/access-admin-ops-surface.js +84 -75
- package/dist/access-audit.js +2 -2
- package/dist/access-authorization-probe.d.ts +14 -10
- package/dist/access-authorization-probe.js +85 -76
- package/dist/access-boundary.d.ts +15 -11
- package/dist/access-boundary.js +84 -75
- package/dist/access-citation-namespace.js +2 -2
- package/dist/access-cli.js +191 -177
- package/dist/access-cli.js.map +1 -1
- package/dist/access-coding-context-resolution.d.ts +16 -0
- package/dist/access-coding-context-resolution.js +13 -0
- package/dist/access-coding-context-resolution.js.map +1 -0
- package/dist/access-extraction-force-flush.d.ts +14 -10
- package/dist/access-extraction-force-flush.js +84 -75
- package/dist/access-health-types.d.ts +2 -1
- package/dist/access-http-lcm-compaction.d.ts +16 -12
- package/dist/access-http-lcm-compaction.js +3 -3
- package/dist/access-http-lifecycle-flush.d.ts +14 -10
- package/dist/access-http-lifecycle-flush.js +2 -2
- package/dist/access-http-offline-stream.d.ts +123 -0
- package/dist/access-http-offline-stream.js +10 -0
- package/dist/access-http-offline-stream.js.map +1 -0
- package/dist/access-http-query.js +84 -75
- package/dist/access-http.d.ts +15 -11
- package/dist/access-http.js +104 -90
- package/dist/access-identity-continuity-surface.d.ts +9 -8
- package/dist/access-identity-continuity-surface.js +84 -75
- package/dist/access-lcm-surface.d.ts +14 -10
- package/dist/access-lcm-surface.js +84 -75
- package/dist/access-mcp-output-schemas.js +1 -1
- package/dist/access-mcp.d.ts +14 -10
- package/dist/access-mcp.js +95 -82
- package/dist/access-memory-search-fanout.d.ts +3 -2
- package/dist/{access-namespace-preflight-5yZ4g6F8.d.ts → access-namespace-preflight-CWUDwB4M.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +4 -3
- package/dist/access-namespace-preflight.js +84 -75
- package/dist/access-observe-helpers.d.ts +1 -0
- package/dist/access-observe-helpers.js +1 -1
- package/dist/access-observe-write-surface.d.ts +16 -10
- package/dist/access-observe-write-surface.js +84 -75
- package/dist/access-offline-manifest.d.ts +104 -0
- package/dist/access-offline-manifest.js +45 -0
- package/dist/access-offline-manifest.js.map +1 -0
- package/dist/access-operations-batch.js +86 -77
- package/dist/access-operations.d.ts +18 -14
- package/dist/access-operations.js +91 -79
- package/dist/access-recall-concurrency.d.ts +16 -26
- package/dist/access-recall-concurrency.js +86 -76
- package/dist/access-recall-response.d.ts +18 -14
- package/dist/access-recall-response.js +84 -75
- package/dist/access-recall-surface.d.ts +29 -24
- package/dist/access-recall-surface.js +84 -75
- package/dist/access-schema.d.ts +84 -84
- package/dist/access-schema.js +3 -3
- package/dist/{access-service-CiJRsgAB.d.ts → access-service-CNN89xyn.d.ts} +25 -16
- package/dist/access-service-helpers.d.ts +14 -10
- package/dist/access-service.d.ts +14 -10
- package/dist/access-service.js +84 -75
- package/dist/access-surface-catalog.d.ts +14 -10
- package/dist/access-surface-catalog.js +4 -0
- 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-recall.d.ts +2 -1
- package/dist/active-recall.js +10 -8
- package/dist/active-recall.js.map +1 -1
- package/dist/adapters/index.js +4 -4
- package/dist/adapters/registry.js +2 -2
- package/dist/{auto-sync-5OE5QOZB.js → auto-sync-UPTUVE4X.js} +6 -6
- package/dist/behavior-learner.d.ts +2 -1
- package/dist/behavior-learner.js +1 -1
- package/dist/behavior-signals.d.ts +2 -1
- package/dist/bootstrap.d.ts +9 -8
- package/dist/briefing.d.ts +3 -2
- package/dist/briefing.js +24 -22
- 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/capabilities.d.ts +2 -1
- package/dist/{capsule-merge-IDWJPCWK.js → capsule-merge-Q6AR3XL7.js} +67 -54
- package/dist/capsule-merge-Q6AR3XL7.js.map +1 -0
- package/dist/{catalog-scBmy0sO.d.ts → catalog-bctMURhN.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +2 -1
- package/dist/causal-behavior.js +2 -2
- package/dist/causal-chain.js +2 -2
- package/dist/causal-consolidation.d.ts +2 -1
- package/dist/causal-consolidation.js +28 -26
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-retrieval.js +2 -2
- package/dist/causal-trajectory-graph.d.ts +2 -1
- package/dist/causal-trajectory.js +1 -1
- package/dist/{chunk-E5UK4VPE.js → chunk-2FSTB6BJ.js} +5 -5
- package/dist/{chunk-5ZE7QHTK.js → chunk-2X2T2UVE.js} +5 -5
- package/dist/{chunk-P4DRWEYC.js → chunk-3COYXTGM.js} +2 -2
- package/dist/{chunk-5IVLTFOV.js → chunk-44N6ESJ4.js} +2 -2
- package/dist/{chunk-DL7ZD3JH.js → chunk-4FBVAGV3.js} +14 -9
- package/dist/chunk-4FBVAGV3.js.map +1 -0
- package/dist/{chunk-WOCNN776.js → chunk-4POAMKV6.js} +100 -41
- package/dist/chunk-4POAMKV6.js.map +1 -0
- package/dist/{chunk-HO3QBJEY.js → chunk-5546W5SI.js} +2 -2
- package/dist/{chunk-AAIUERNB.js → chunk-5QJQHBLE.js} +6 -6
- package/dist/{chunk-6CZPDBJS.js → chunk-5U7ID3EZ.js} +3 -3
- package/dist/{chunk-RN7DY3FC.js → chunk-6ISC4AVB.js} +31 -12
- package/dist/chunk-6ISC4AVB.js.map +1 -0
- package/dist/chunk-773TRRGT.js +36 -0
- package/dist/chunk-773TRRGT.js.map +1 -0
- package/dist/chunk-7T4TOGMS.js +242 -0
- package/dist/chunk-7T4TOGMS.js.map +1 -0
- package/dist/{chunk-DLVPUX7U.js → chunk-7YKVM5H3.js} +8 -6
- package/dist/chunk-7YKVM5H3.js.map +1 -0
- package/dist/chunk-7YQ6ESEA.js +322 -0
- package/dist/chunk-7YQ6ESEA.js.map +1 -0
- package/dist/{chunk-DNWXFTLD.js → chunk-A4IJCD2Z.js} +2 -2
- package/dist/{chunk-3CE77VAP.js → chunk-A4JMGKCD.js} +87 -74
- package/dist/chunk-A4JMGKCD.js.map +1 -0
- package/dist/chunk-A5KNZSNA.js +26 -0
- package/dist/chunk-A5KNZSNA.js.map +1 -0
- package/dist/{chunk-PKNLM44P.js → chunk-AC5OWJLV.js} +9 -9
- package/dist/{chunk-LZ4LDKHZ.js → chunk-AMAUBUKY.js} +6 -6
- package/dist/{chunk-CUM2BBPN.js → chunk-AUMWZSE7.js} +19 -10
- package/dist/chunk-AUMWZSE7.js.map +1 -0
- package/dist/{chunk-BUE5E2HL.js → chunk-BGLY7EEM.js} +5 -314
- package/dist/chunk-BGLY7EEM.js.map +1 -0
- package/dist/chunk-BIPBQQFI.js +44 -0
- package/dist/chunk-BIPBQQFI.js.map +1 -0
- package/dist/{chunk-S5SLVSVY.js → chunk-BQIFZ2MP.js} +5 -5
- package/dist/chunk-BTTPKDIL.js +34 -0
- package/dist/{chunk-PVGDJXVK.js.map → chunk-BTTPKDIL.js.map} +1 -1
- package/dist/chunk-CK5KOVHW.js +69 -0
- package/dist/chunk-CK5KOVHW.js.map +1 -0
- package/dist/{chunk-Q6IP2ARR.js → chunk-CSOYVTRX.js} +2 -2
- package/dist/{chunk-XOQSEF7X.js → chunk-CVILPI77.js} +6 -6
- package/dist/{chunk-VWAXN2BN.js → chunk-CX4ZUMC6.js} +91 -83
- package/dist/chunk-CX4ZUMC6.js.map +1 -0
- package/dist/{chunk-NVRYW264.js → chunk-DAJPRXBR.js} +16 -13
- package/dist/chunk-DAJPRXBR.js.map +1 -0
- package/dist/{chunk-J7VGGECD.js → chunk-DZPFMQZ7.js} +1 -1
- package/dist/chunk-DZPFMQZ7.js.map +1 -0
- package/dist/{chunk-4LMA77JH.js → chunk-E5XQIWAL.js} +3 -3
- package/dist/{chunk-WUNIWKY4.js → chunk-ELIL2A37.js} +6 -6
- package/dist/{chunk-OQ5PRDDS.js → chunk-ERZ2R42X.js} +6 -6
- package/dist/{chunk-U7GW7NE7.js → chunk-FIK3CQNA.js} +10 -10
- package/dist/{chunk-D3J5SLQK.js → chunk-FR27HBBA.js} +81 -20
- package/dist/chunk-FR27HBBA.js.map +1 -0
- package/dist/{chunk-E6PNLPGJ.js → chunk-FUCYDRE5.js} +838 -480
- package/dist/chunk-FUCYDRE5.js.map +1 -0
- package/dist/{chunk-HZFHQ4AQ.js → chunk-G7A5HLUS.js} +23 -17
- package/dist/chunk-G7A5HLUS.js.map +1 -0
- package/dist/{chunk-33PLLLL7.js → chunk-GFCVUY6G.js} +6 -6
- package/dist/{chunk-HREE4JHI.js → chunk-GODSPTOT.js} +477 -278
- package/dist/chunk-GODSPTOT.js.map +1 -0
- package/dist/{chunk-S2NCTZGJ.js → chunk-GRUYA45P.js} +15 -15
- package/dist/chunk-GRUYA45P.js.map +1 -0
- package/dist/{chunk-VUPTKTDV.js → chunk-GUAL4PQH.js} +3 -3
- package/dist/{chunk-CINZGPSJ.js → chunk-GUMZC2BO.js} +2 -2
- package/dist/{chunk-H24WNPA2.js → chunk-GWFSVJ4P.js} +3 -3
- package/dist/{chunk-7XC2HX75.js → chunk-GYPQL6XN.js} +157 -16
- package/dist/chunk-GYPQL6XN.js.map +1 -0
- package/dist/{chunk-TSH56VPU.js → chunk-HAYSYUAB.js} +2 -2
- package/dist/{chunk-PDLBLTOK.js → chunk-HC3PBX23.js} +9 -9
- package/dist/{chunk-TDHTVMPG.js → chunk-HFPASSFV.js} +7 -2
- package/dist/chunk-HFPASSFV.js.map +1 -0
- package/dist/chunk-J2WC5LF4.js +395 -0
- package/dist/chunk-J2WC5LF4.js.map +1 -0
- package/dist/{chunk-KXB4VXHY.js → chunk-JIYDRBVZ.js} +2 -2
- package/dist/chunk-JV3C2MNQ.js +74 -0
- package/dist/chunk-JV3C2MNQ.js.map +1 -0
- package/dist/{chunk-HLPD7B7P.js → chunk-JZH4LWHB.js} +2 -2
- package/dist/{chunk-AV5ZEH4M.js → chunk-KVJRXN2E.js} +2 -2
- package/dist/{chunk-WFTIGIIS.js → chunk-L6CQ7WIW.js} +5 -5
- package/dist/{chunk-227UFSEQ.js → chunk-LEPOP46W.js} +4 -4
- package/dist/{chunk-EJUEXZHX.js → chunk-LLJMAULE.js} +2 -2
- package/dist/{chunk-N5Z4EVOR.js → chunk-LNEWDF2A.js} +36 -11
- package/dist/chunk-LNEWDF2A.js.map +1 -0
- package/dist/{chunk-QN25OCUF.js → chunk-LPYDOLSM.js} +5 -5
- package/dist/{chunk-AS7YMSL6.js → chunk-M23RF3LJ.js} +4 -4
- package/dist/{chunk-OAEQLRCY.js → chunk-MO4HSXHZ.js} +5 -5
- package/dist/{chunk-ECK75GDJ.js → chunk-N3LL5NEU.js} +43 -24
- package/dist/chunk-N3LL5NEU.js.map +1 -0
- package/dist/chunk-NEF7LR5J.js +29 -0
- package/dist/chunk-NEF7LR5J.js.map +1 -0
- package/dist/{chunk-3F2LKUMU.js → chunk-NIS256NW.js} +2 -2
- package/dist/{chunk-YIAA2X3D.js → chunk-NK5RGJ65.js} +3 -3
- package/dist/chunk-NLDVVWCL.js +84 -0
- package/dist/chunk-NLDVVWCL.js.map +1 -0
- package/dist/{chunk-4J7G5SY4.js → chunk-NZBZ7IS2.js} +72 -24
- package/dist/chunk-NZBZ7IS2.js.map +1 -0
- package/dist/{chunk-3TBLDMJA.js → chunk-O4KMGRXE.js} +5 -2
- package/dist/chunk-O4KMGRXE.js.map +1 -0
- package/dist/{chunk-7TWUCYER.js → chunk-PNRA7FAD.js} +7 -7
- package/dist/{chunk-5I4M26Q7.js → chunk-QBSFOKY6.js} +4 -4
- package/dist/{chunk-E53DSZEN.js → chunk-QR6G5KF4.js} +3 -3
- package/dist/{chunk-CJ2ZR7UA.js → chunk-QUENPGWZ.js} +261 -211
- package/dist/chunk-QUENPGWZ.js.map +1 -0
- package/dist/{chunk-4UH4BTGK.js → chunk-QVJPH7SH.js} +84 -84
- package/dist/{chunk-UYLMNVY6.js → chunk-R3KHKU7M.js} +16 -9
- package/dist/chunk-R3KHKU7M.js.map +1 -0
- package/dist/{chunk-JBPKEARU.js → chunk-RKNJBZ55.js} +4 -4
- package/dist/{chunk-WDISJRMG.js → chunk-RMMVQQA6.js} +2 -2
- package/dist/{chunk-JVLCVFQ4.js → chunk-RNHVVMFN.js} +3 -3
- package/dist/{chunk-QJAQNXWI.js → chunk-RVO6TCTU.js} +81 -84
- package/dist/chunk-RVO6TCTU.js.map +1 -0
- package/dist/chunk-S2HLHAZ4.js +16 -0
- package/dist/chunk-S2HLHAZ4.js.map +1 -0
- package/dist/{chunk-KWMXR7XS.js → chunk-S2V7RUCL.js} +8 -1
- package/dist/{chunk-KWMXR7XS.js.map → chunk-S2V7RUCL.js.map} +1 -1
- package/dist/{chunk-5SM35XZR.js → chunk-S5NZBKKQ.js} +2 -2
- package/dist/{chunk-VNA7W7QF.js → chunk-SVH57F5Z.js} +12 -4
- package/dist/chunk-SVH57F5Z.js.map +1 -0
- package/dist/{chunk-WIPEXG6R.js → chunk-SXIMQLGV.js} +2 -2
- package/dist/{chunk-RVLJEII5.js → chunk-SYUBB3WM.js} +256 -187
- package/dist/chunk-SYUBB3WM.js.map +1 -0
- package/dist/{chunk-VCD4PSK2.js → chunk-TQZ4DVBC.js} +7 -4
- package/dist/chunk-TQZ4DVBC.js.map +1 -0
- package/dist/{chunk-7K5Q6COX.js → chunk-TVVEYCNW.js} +4 -4
- package/dist/{chunk-YV32N67O.js → chunk-URS5GSM7.js} +1 -1
- package/dist/chunk-URS5GSM7.js.map +1 -0
- package/dist/{chunk-4B77XSG5.js → chunk-UV72DEZD.js} +5 -5
- package/dist/{chunk-BJKPPZ6Z.js → chunk-UW66OZTD.js} +2 -2
- package/dist/{chunk-XYTOI63Z.js → chunk-V2TNYF6Q.js} +19 -11
- package/dist/chunk-V2TNYF6Q.js.map +1 -0
- package/dist/{chunk-S2BBISHU.js → chunk-VANZKHTN.js} +3 -3
- package/dist/chunk-VHFXP27N.js +250 -0
- package/dist/chunk-VHFXP27N.js.map +1 -0
- package/dist/chunk-VL35ZFSZ.js +102 -0
- package/dist/chunk-VL35ZFSZ.js.map +1 -0
- package/dist/{chunk-3Y224NYC.js → chunk-VYISFWVX.js} +2 -2
- package/dist/{chunk-JE7EK33X.js → chunk-W2V7UESE.js} +2 -2
- package/dist/{chunk-TIHMZFIV.js → chunk-W3IC7QOY.js} +3 -3
- package/dist/{chunk-NRV4Y3PM.js → chunk-W4FBGYGK.js} +1 -1
- package/dist/{chunk-P2BM76KT.js → chunk-WAS4HV46.js} +174 -43
- package/dist/chunk-WAS4HV46.js.map +1 -0
- package/dist/{chunk-57QKLRBV.js → chunk-WB7JSQCP.js} +2 -1
- package/dist/chunk-WB7JSQCP.js.map +1 -0
- package/dist/{chunk-A5OJCXZL.js → chunk-WZ3TOIDW.js} +15 -4
- package/dist/chunk-WZ3TOIDW.js.map +1 -0
- package/dist/{chunk-MU7ZHSZE.js → chunk-WZFAPHIK.js} +2 -2
- package/dist/{chunk-T2TTP3KU.js → chunk-X4IDNPOS.js} +2 -2
- package/dist/{chunk-UVIKWC7M.js → chunk-XAGYS7X6.js} +17 -17
- package/dist/{chunk-BLAKS3CP.js → chunk-XL3TATMJ.js} +3 -3
- package/dist/{chunk-W4XJFLAL.js → chunk-XPRJSHNI.js} +2 -2
- package/dist/{chunk-5TFP4CUL.js → chunk-XQ3HXAQH.js} +14 -11
- package/dist/chunk-XQ3HXAQH.js.map +1 -0
- package/dist/{chunk-E6EE5B67.js → chunk-YK6BDDHP.js} +4 -4
- package/dist/{chunk-ES36HTSC.js → chunk-YLHM5BQQ.js} +3 -3
- package/dist/{chunk-ULARSG5Z.js → chunk-YN6ASZUG.js} +10 -8
- package/dist/{chunk-ULARSG5Z.js.map → chunk-YN6ASZUG.js.map} +1 -1
- package/dist/{chunk-VOUOLGIP.js → chunk-YRFAYOFQ.js} +11 -13
- package/dist/chunk-YRFAYOFQ.js.map +1 -0
- package/dist/{chunk-IKKWIPYN.js → chunk-YYQAKIDJ.js} +37 -1
- package/dist/chunk-YYQAKIDJ.js.map +1 -0
- package/dist/{chunk-GF22HWS2.js → chunk-Z54EM5YZ.js} +4 -4
- package/dist/{chunk-64UDOIMI.js → chunk-ZLQ37WJX.js} +2 -2
- package/dist/{cli-BUGN3d6_.d.ts → cli-BHBswmUa.d.ts} +5 -5
- package/dist/cli.d.ts +16 -12
- package/dist/cli.js +138 -123
- package/dist/compounding/engine.d.ts +3 -2
- package/dist/compounding/engine.js +25 -23
- 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 +10 -8
- package/dist/connectors/codex-materialize-runner.d.ts +2 -1
- package/dist/connectors/codex-materialize-runner.js +24 -22
- package/dist/connectors/codex-materialize.d.ts +2 -1
- package/dist/connectors/index.d.ts +2 -1
- package/dist/connectors/index.js +27 -25
- package/dist/consolidation-provenance-check.d.ts +3 -2
- package/dist/consolidation-provenance-check.js +4 -4
- package/dist/consolidation-undo.d.ts +3 -2
- package/dist/consolidation-undo.js +10 -7
- package/dist/consolidation-undo.js.map +1 -1
- package/dist/contradiction/index.d.ts +3 -2
- package/dist/converge-config.d.ts +2 -1
- package/dist/convergence-refresh.d.ts +4 -3
- package/dist/convergence-refresh.js +28 -26
- package/dist/conversation-index/backend.d.ts +2 -1
- package/dist/conversation-index/backend.js +2 -2
- package/dist/conversation-index/chunker.d.ts +2 -1
- package/dist/conversation-index/faiss-adapter.d.ts +2 -1
- 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 +43 -41
- package/dist/day-summary.d.ts +2 -1
- package/dist/delinearize.d.ts +2 -1
- package/dist/direct-answer-wiring.d.ts +2 -1
- package/dist/direct-answer-wiring.js +2 -2
- package/dist/direct-answer.d.ts +2 -1
- package/dist/embedding-fallback.d.ts +2 -1
- package/dist/embedding-fallback.js +2 -2
- package/dist/enrichment/index.d.ts +2 -1
- package/dist/entity-retrieval-boundaries.js +1 -1
- package/dist/entity-retrieval.d.ts +3 -2
- package/dist/entity-retrieval.js +25 -23
- package/dist/entity-schema.d.ts +2 -1
- package/dist/explicit-capture.d.ts +9 -8
- package/dist/explicit-capture.js +11 -9
- package/dist/external-wiki-access.d.ts +127 -0
- package/dist/external-wiki-access.js +187 -0
- package/dist/external-wiki-access.js.map +1 -0
- package/dist/external-wiki-cli.d.ts +13 -0
- package/dist/external-wiki-cli.js +10 -0
- package/dist/external-wiki-cli.js.map +1 -0
- package/dist/external-wiki-collection-registration.d.ts +39 -0
- package/dist/external-wiki-collection-registration.js +79 -0
- package/dist/external-wiki-collection-registration.js.map +1 -0
- package/dist/external-wiki-collection.d.ts +50 -0
- package/dist/external-wiki-collection.js +387 -0
- package/dist/external-wiki-collection.js.map +1 -0
- package/dist/external-wiki-config.d.ts +13 -0
- package/dist/external-wiki-config.js +13 -0
- package/dist/external-wiki-config.js.map +1 -0
- package/dist/external-wiki-guard.d.ts +11 -0
- package/dist/external-wiki-guard.js +18 -0
- package/dist/external-wiki-guard.js.map +1 -0
- package/dist/external-wiki-mcp-tools.d.ts +123 -0
- package/dist/external-wiki-mcp-tools.js +8 -0
- package/dist/external-wiki-mcp-tools.js.map +1 -0
- package/dist/external-wiki-search.d.ts +42 -0
- package/dist/external-wiki-search.js +11 -0
- package/dist/external-wiki-search.js.map +1 -0
- package/dist/external-wiki.d.ts +39 -0
- package/dist/external-wiki.js +14 -0
- package/dist/external-wiki.js.map +1 -0
- package/dist/extraction-error-classification.d.ts +2 -1
- package/dist/extraction-faithfulness.d.ts +2 -1
- 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-liveness.d.ts +2 -1
- package/dist/extraction-source-grounding-helpers.d.ts +5 -3
- package/dist/extraction-source-grounding-helpers.js +1 -1
- package/dist/extraction-source-grounding-rules.d.ts +2 -1
- package/dist/extraction-source-grounding-rules.js +2 -2
- package/dist/extraction-source-grounding.d.ts +2 -1
- package/dist/extraction-source-grounding.js +5 -5
- package/dist/extraction.d.ts +2 -1
- package/dist/extraction.js +46 -43
- package/dist/fallback-llm.d.ts +2 -1
- package/dist/{first-start-migration-F2QJD66E.js → first-start-migration-ZSHEFEI3.js} +10 -12
- package/dist/{first-start-migration-F2QJD66E.js.map → first-start-migration-ZSHEFEI3.js.map} +1 -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-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/in-flight-reads.d.ts +2 -1
- package/dist/index.d.ts +443 -430
- package/dist/index.js +304 -269
- 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 +2 -1
- package/dist/local-llm.js +2 -2
- package/dist/local-model-endpoint.d.ts +2 -1
- package/dist/maintenance/memory-governance.d.ts +2 -1
- package/dist/maintenance/memory-governance.js +25 -23
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +3 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +25 -23
- package/dist/maintenance/rebuild-memory-projection.d.ts +3 -2
- package/dist/maintenance/rebuild-memory-projection.js +27 -25
- package/dist/{maintenance-LbuS2rUA.d.ts → maintenance-CoRikzIt.d.ts} +3 -3
- package/dist/mcp-memory-inspector-app.d.ts +14 -10
- package/dist/mcp-read-only-tools.js +1 -1
- package/dist/memory-action-policy.d.ts +2 -1
- package/dist/memory-cache.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 +10 -0
- package/dist/memory-snapshot.js +8 -0
- package/dist/memory-snapshot.js.map +1 -0
- package/dist/memory-worth-outcomes.d.ts +3 -2
- package/dist/models-json.d.ts +2 -1
- package/dist/namespaces/migrate.d.ts +4 -3
- package/dist/namespaces/migrate.js +41 -39
- package/dist/namespaces/principal.d.ts +2 -1
- package/dist/namespaces/search.d.ts +2 -1
- package/dist/namespaces/search.js +18 -18
- package/dist/namespaces/storage.d.ts +4 -3
- package/dist/namespaces/storage.js +24 -22
- package/dist/native-knowledge.d.ts +2 -1
- package/dist/offline-sync-impression-drain.d.ts +2 -1
- package/dist/offline-sync-impression-drain.js +11 -9
- package/dist/offline-sync.d.ts +29 -3
- package/dist/offline-sync.js +6 -2
- package/dist/operator-doctor-corpus.d.ts +2 -1
- package/dist/operator-doctor-corpus.js +46 -44
- package/dist/operator-doctor-replica.d.ts +2 -1
- package/dist/operator-doctor-replica.js +3 -3
- package/dist/operator-toolkit.d.ts +4 -3
- package/dist/operator-toolkit.js +60 -55
- package/dist/orchestration/compression-guideline-coordinator.d.ts +3 -2
- package/dist/orchestration/maintenance.d.ts +5 -4
- package/dist/orchestration/maintenance.js +37 -33
- package/dist/{orchestrator-rHiWt32X.d.ts → orchestrator-BJeq7Pw1.d.ts} +14 -7
- package/dist/orchestrator.d.ts +9 -8
- package/dist/orchestrator.js +200 -186
- package/dist/page-versioning.js +3 -3
- package/dist/patterns-cli.d.ts +2 -1
- package/dist/{pipeline-W_97O8BV.d.ts → pipeline-CNjY4wk3.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +2 -1
- package/dist/policy-runtime.js +1 -1
- package/dist/proactive-contention.d.ts +2 -1
- package/dist/provenance.d.ts +2 -1
- package/dist/provenance.js +2 -2
- package/dist/{qmd-LWtMofAf.d.ts → qmd-C0UDZidt.d.ts} +9 -7
- package/dist/qmd-preflight.d.ts +5 -4
- package/dist/qmd-preflight.js +2 -2
- package/dist/qmd-recall-cache.d.ts +2 -1
- package/dist/qmd.d.ts +4 -3
- package/dist/qmd.js +8 -8
- 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-planner-llm.d.ts +2 -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 +8 -1
- package/dist/recall-xray.js +2 -2
- package/dist/reconcile/cursor.d.ts +12 -2
- package/dist/reconcile/cursor.js +46 -7
- package/dist/reconcile/cursor.js.map +1 -1
- package/dist/reconcile/manifest.d.ts +9 -2
- package/dist/reconcile/manifest.js +15 -268
- package/dist/reconcile/manifest.js.map +1 -1
- package/dist/reconcile/plan.d.ts +4 -1
- package/dist/reconcile/plan.js +4 -4
- 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-divergence.js +2 -2
- package/dist/replica-peers-config.d.ts +2 -1
- package/dist/resolve-auth-token.d.ts +2 -1
- package/dist/resume-bundles.js +12 -10
- package/dist/retrieval-agents.d.ts +4 -3
- package/dist/retrieval-agents.js +2 -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/salvage-envelope.d.ts +2 -1
- package/dist/schemas.d.ts +54 -54
- package/dist/{scope-profiles-BiQKOE-p.d.ts → scope-profiles-BJzp2F5A.d.ts} +1 -1
- package/dist/search/embed-helper.d.ts +2 -1
- package/dist/search/embed-helper.js +3 -3
- package/dist/search/factory.d.ts +4 -2
- package/dist/search/factory.js +20 -18
- package/dist/search/index.d.ts +2 -1
- package/dist/search/index.js +20 -20
- package/dist/search/lancedb-backend.d.ts +2 -1
- package/dist/search/lancedb-backend.js +4 -4
- package/dist/search/meilisearch-backend.d.ts +2 -1
- package/dist/search/meilisearch-backend.js +4 -4
- package/dist/search/noop-backend.d.ts +2 -1
- package/dist/search/orama-backend.d.ts +2 -1
- package/dist/search/orama-backend.js +4 -4
- package/dist/search/port.d.ts +18 -1
- package/dist/search/port.js +1 -1
- package/dist/search/remote-backend.d.ts +2 -1
- package/dist/search/remote-backend.js +2 -2
- package/dist/secure-store/index.js +2 -2
- package/dist/{semantic-consolidation-dHYCyqgh.d.ts → semantic-consolidation-D4KAZO2G.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +3 -2
- package/dist/semantic-consolidation.js +26 -24
- package/dist/semantic-rule-promotion.js +24 -22
- package/dist/semantic-rule-verifier.d.ts +2 -1
- package/dist/semantic-rule-verifier.js +25 -23
- package/dist/{service-DJG3KCQ4.d.ts → service-DWC4tq7p.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 +10 -9
- package/dist/shared-context/manager.js +2 -2
- package/dist/signal.d.ts +2 -1
- package/dist/source-agent-qualifier.d.ts +2 -1
- package/dist/source-agent-qualifier.js +43 -40
- package/dist/{storage-F9FVh-w9.d.ts → storage-DPGjB-8e.d.ts} +28 -13
- package/dist/storage.d.ts +3 -2
- package/dist/storage.js +26 -24
- package/dist/summarizer.d.ts +2 -1
- package/dist/summarizer.js +5 -5
- package/dist/summary-snapshot.d.ts +2 -1
- 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-migration.js +1 -1
- package/dist/tier-routing.d.ts +2 -1
- package/dist/tool-scoped-memory.d.ts +5 -1
- package/dist/tool-scoped-memory.js +3 -1
- package/dist/topics.d.ts +2 -1
- package/dist/transcript.d.ts +2 -1
- package/dist/transfer/capsule-import.js +4 -4
- package/dist/transfer/types.d.ts +66 -66
- package/dist/trust-score-stage.d.ts +2 -1
- package/dist/trust-score.d.ts +2 -1
- package/dist/{types-rEwubvim.d.ts → types-yX_FwERf.d.ts} +8 -1
- 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 +25 -23
- package/dist/write-envelope.d.ts +2 -1
- package/package.json +2 -2
- package/src/abort-error.ts +17 -0
- package/src/access-admin-ops-surface.ts +1 -0
- package/src/access-boundary.ts +1 -0
- package/src/access-coding-context-resolution.ts +42 -0
- package/src/access-extraction-force-flush.ts +38 -2
- package/src/access-http-lcm-compaction.ts +5 -2
- package/src/access-http-offline-stream.ts +80 -0
- package/src/access-http.test.ts +310 -3
- package/src/access-http.ts +84 -77
- package/src/access-mcp-output-schemas.ts +36 -0
- package/src/access-mcp.test.ts +95 -1
- package/src/access-mcp.ts +7 -9
- package/src/access-observe-helpers.ts +64 -22
- package/src/access-observe-write-surface.ts +8 -0
- package/src/access-offline-manifest.ts +54 -0
- package/src/access-operations-batch.ts +3 -3
- package/src/access-operations.ts +13 -7
- package/src/access-recall-concurrency.ts +3 -27
- package/src/access-recall-surface.ts +3 -0
- package/src/access-service-health.test.ts +32 -7
- package/src/access-service-namespace.test.ts +55 -0
- package/src/access-service-observe-idempotency.test.ts +34 -2
- package/src/access-service-observe-lcm-parity.test.ts +183 -23
- package/src/access-service-observe-scope.test.ts +160 -1
- package/src/access-service-offline-file-content.test.ts +345 -1
- package/src/access-service.ts +88 -62
- package/src/access-surface-catalog.ts +4 -0
- package/src/admin/admin-surfaces.ts +2 -0
- package/src/binary-lifecycle/pipeline.test.ts +106 -1
- package/src/binary-lifecycle/pipeline.ts +3 -0
- package/src/coding/git-context.test.ts +47 -0
- package/src/coding/git-context.ts +129 -27
- package/src/config.test.ts +24 -0
- package/src/config.ts +9 -12
- package/src/connector-provenance.test.ts +101 -0
- package/src/consolidation-undo.ts +3 -0
- package/src/convergence-refresh.ts +14 -2
- package/src/correction/correction-access-wiring.ts +9 -7
- package/src/correction/correction-executor.test.ts +206 -2
- package/src/correction/correction-executor.ts +29 -20
- package/src/correction/correction-planner.test.ts +36 -0
- package/src/correction/correction-planner.ts +9 -15
- package/src/correction/correction-service.ts +3 -1
- package/src/correction/correction-storage-integration.test.ts +77 -0
- package/src/correction/correction-surfaces.test.ts +41 -28
- package/src/correction/passive-capture.test.ts +59 -0
- package/src/correction/passive-capture.ts +4 -1
- package/src/entity-retrieval-boundaries.ts +17 -4
- package/src/entity-retrieval.ts +27 -6
- package/src/external-wiki-access.test.ts +65 -0
- package/src/external-wiki-access.ts +31 -0
- package/src/external-wiki-cli.ts +100 -0
- package/src/external-wiki-collection-registration.test.ts +163 -0
- package/src/external-wiki-collection-registration.ts +101 -0
- package/src/external-wiki-collection.test.ts +502 -0
- package/src/external-wiki-collection.ts +503 -0
- package/src/external-wiki-config.test.ts +135 -0
- package/src/external-wiki-config.ts +100 -0
- package/src/external-wiki-guard.ts +83 -0
- package/src/external-wiki-mcp-tools.ts +23 -0
- package/src/external-wiki-search.test.ts +367 -0
- package/src/external-wiki-search.ts +362 -0
- package/src/external-wiki.test.ts +240 -0
- package/src/external-wiki.ts +427 -0
- package/src/extraction-scope-source-agent.test.ts +21 -0
- package/src/extraction-source-grounding-helpers.ts +243 -53
- package/src/extraction-source-grounding-rules.ts +133 -39
- package/src/extraction-source-grounding.test.ts +363 -33
- package/src/extraction-timeout.test.ts +1 -0
- package/src/extraction-watermark.test.ts +150 -7
- package/src/extraction.ts +8 -1
- package/src/index.ts +9 -5
- package/src/maintenance/first-start-migration.ts +11 -11
- package/src/mcp-read-only-tools.ts +1 -0
- package/src/memory-snapshot.ts +15 -0
- package/src/offline-sync.test.ts +194 -0
- package/src/offline-sync.ts +217 -13
- package/src/orchestration/external-wiki-recall-guard.test.ts +94 -0
- package/src/orchestration/extraction-persist.ts +19 -2
- package/src/orchestration/extraction-run-helpers.ts +37 -19
- package/src/orchestration/extraction-run.test.ts +171 -2
- package/src/orchestration/extraction-run.ts +11 -13
- package/src/orchestration/extraction-watermark.ts +106 -17
- package/src/orchestration/generic-recall-paths.ts +14 -0
- package/src/orchestration/orchestrator-helpers.ts +2 -0
- package/src/orchestration/orchestrator-init.ts +9 -0
- package/src/orchestration/recall-internal-deps.ts +6 -0
- package/src/orchestration/recall-internal.ts +154 -33
- package/src/orchestration/recall-rerank-coordinator.ts +60 -25
- package/src/orchestration/recall-search-pipeline.test.ts +75 -1
- package/src/orchestration/recall-search-pipeline.ts +50 -10
- package/src/orchestrator-convergence-refresh.test.ts +36 -2
- package/src/orchestrator.ts +13 -3
- package/src/page-versioning.ts +5 -19
- package/src/procedural/procedure-recall.ts +5 -1
- package/src/provenance-surfaces.test.ts +3 -0
- package/src/qmd-client.test.ts +78 -17
- package/src/qmd.test.ts +24 -0
- package/src/qmd.ts +224 -315
- package/src/recall-explain-renderer.ts +3 -0
- package/src/recall-rerank-coordinator.test.ts +61 -0
- package/src/recall-xray-renderer.test.ts +6 -0
- package/src/recall-xray.test.ts +88 -1
- package/src/recall-xray.ts +15 -0
- package/src/reconcile/cursor.test.ts +48 -0
- package/src/reconcile/cursor.ts +58 -11
- package/src/reconcile/manifest.test.ts +4 -0
- package/src/reconcile/manifest.ts +41 -51
- package/src/reconcile/plan.test.ts +4 -0
- package/src/reconcile/plan.ts +28 -16
- package/src/search/factory.ts +6 -6
- package/src/search/port.ts +25 -9
- package/src/secure-store/secure-fs.ts +20 -12
- package/src/secure-store/secure-store.test.ts +41 -2
- package/src/spaces/index.test.ts +61 -2
- package/src/spaces/index.ts +44 -18
- package/src/storage/entity-alias-config.ts +97 -0
- package/src/storage/entity-canonical-id-lock.ts +53 -23
- package/src/storage/entity-canonical-id-migration.ts +53 -22
- package/src/storage/entity-canonical-id-references.ts +3 -0
- package/src/storage/entity-id-safety.ts +7 -0
- package/src/storage/entity-store.ts +6 -2
- package/src/storage/memory-frontmatter-metadata.ts +4 -9
- package/src/storage/memory-migration-serialization.ts +10 -15
- package/src/storage/tombstone-blocked-capture-mutation.ts +52 -64
- package/src/storage/tombstone-blocked-capture-sync.ts +244 -199
- package/src/storage-contract/cache-coherence.test.ts +99 -0
- package/src/storage-deletion-revisions.test.ts +91 -0
- package/src/storage-fact-hash-index-defer.test.ts +460 -170
- package/src/storage.ts +572 -284
- package/src/testing/subjects/first-start-tier-migration.test.ts +75 -0
- package/src/tier-migration.ts +10 -12
- package/src/tool-scoped-memory.ts +10 -0
- package/src/transfer/capsule-import.ts +13 -0
- package/src/transfer/capsule-merge.ts +13 -0
- package/src/trust-score-recall-paths.test.ts +75 -1
- package/src/types.ts +7 -3
- package/dist/capsule-merge-IDWJPCWK.js.map +0 -1
- package/dist/chunk-3CE77VAP.js.map +0 -1
- package/dist/chunk-3TBLDMJA.js.map +0 -1
- package/dist/chunk-4J7G5SY4.js.map +0 -1
- package/dist/chunk-57QKLRBV.js.map +0 -1
- package/dist/chunk-5TFP4CUL.js.map +0 -1
- package/dist/chunk-7XC2HX75.js.map +0 -1
- package/dist/chunk-A5OJCXZL.js.map +0 -1
- package/dist/chunk-BUE5E2HL.js.map +0 -1
- package/dist/chunk-CJ2ZR7UA.js.map +0 -1
- package/dist/chunk-CUM2BBPN.js.map +0 -1
- package/dist/chunk-D3J5SLQK.js.map +0 -1
- package/dist/chunk-DL7ZD3JH.js.map +0 -1
- package/dist/chunk-DLVPUX7U.js.map +0 -1
- package/dist/chunk-E6PNLPGJ.js.map +0 -1
- package/dist/chunk-ECK75GDJ.js.map +0 -1
- package/dist/chunk-HREE4JHI.js.map +0 -1
- package/dist/chunk-HZFHQ4AQ.js.map +0 -1
- package/dist/chunk-IKKWIPYN.js.map +0 -1
- package/dist/chunk-J7VGGECD.js.map +0 -1
- package/dist/chunk-N5Z4EVOR.js.map +0 -1
- package/dist/chunk-NVRYW264.js.map +0 -1
- package/dist/chunk-P2BM76KT.js.map +0 -1
- package/dist/chunk-PVGDJXVK.js +0 -21
- package/dist/chunk-QJAQNXWI.js.map +0 -1
- package/dist/chunk-RN7DY3FC.js.map +0 -1
- package/dist/chunk-RVLJEII5.js.map +0 -1
- package/dist/chunk-S2NCTZGJ.js.map +0 -1
- package/dist/chunk-TDHTVMPG.js.map +0 -1
- package/dist/chunk-UYLMNVY6.js.map +0 -1
- package/dist/chunk-VCD4PSK2.js.map +0 -1
- package/dist/chunk-VNA7W7QF.js.map +0 -1
- package/dist/chunk-VOUOLGIP.js.map +0 -1
- package/dist/chunk-VWAXN2BN.js.map +0 -1
- package/dist/chunk-WOCNN776.js.map +0 -1
- package/dist/chunk-XYTOI63Z.js.map +0 -1
- package/dist/chunk-YV32N67O.js.map +0 -1
- /package/dist/{auto-sync-5OE5QOZB.js.map → auto-sync-UPTUVE4X.js.map} +0 -0
- /package/dist/{chunk-E5UK4VPE.js.map → chunk-2FSTB6BJ.js.map} +0 -0
- /package/dist/{chunk-5ZE7QHTK.js.map → chunk-2X2T2UVE.js.map} +0 -0
- /package/dist/{chunk-P4DRWEYC.js.map → chunk-3COYXTGM.js.map} +0 -0
- /package/dist/{chunk-5IVLTFOV.js.map → chunk-44N6ESJ4.js.map} +0 -0
- /package/dist/{chunk-HO3QBJEY.js.map → chunk-5546W5SI.js.map} +0 -0
- /package/dist/{chunk-AAIUERNB.js.map → chunk-5QJQHBLE.js.map} +0 -0
- /package/dist/{chunk-6CZPDBJS.js.map → chunk-5U7ID3EZ.js.map} +0 -0
- /package/dist/{chunk-DNWXFTLD.js.map → chunk-A4IJCD2Z.js.map} +0 -0
- /package/dist/{chunk-PKNLM44P.js.map → chunk-AC5OWJLV.js.map} +0 -0
- /package/dist/{chunk-LZ4LDKHZ.js.map → chunk-AMAUBUKY.js.map} +0 -0
- /package/dist/{chunk-S5SLVSVY.js.map → chunk-BQIFZ2MP.js.map} +0 -0
- /package/dist/{chunk-Q6IP2ARR.js.map → chunk-CSOYVTRX.js.map} +0 -0
- /package/dist/{chunk-XOQSEF7X.js.map → chunk-CVILPI77.js.map} +0 -0
- /package/dist/{chunk-4LMA77JH.js.map → chunk-E5XQIWAL.js.map} +0 -0
- /package/dist/{chunk-WUNIWKY4.js.map → chunk-ELIL2A37.js.map} +0 -0
- /package/dist/{chunk-OQ5PRDDS.js.map → chunk-ERZ2R42X.js.map} +0 -0
- /package/dist/{chunk-U7GW7NE7.js.map → chunk-FIK3CQNA.js.map} +0 -0
- /package/dist/{chunk-33PLLLL7.js.map → chunk-GFCVUY6G.js.map} +0 -0
- /package/dist/{chunk-VUPTKTDV.js.map → chunk-GUAL4PQH.js.map} +0 -0
- /package/dist/{chunk-CINZGPSJ.js.map → chunk-GUMZC2BO.js.map} +0 -0
- /package/dist/{chunk-H24WNPA2.js.map → chunk-GWFSVJ4P.js.map} +0 -0
- /package/dist/{chunk-TSH56VPU.js.map → chunk-HAYSYUAB.js.map} +0 -0
- /package/dist/{chunk-PDLBLTOK.js.map → chunk-HC3PBX23.js.map} +0 -0
- /package/dist/{chunk-KXB4VXHY.js.map → chunk-JIYDRBVZ.js.map} +0 -0
- /package/dist/{chunk-HLPD7B7P.js.map → chunk-JZH4LWHB.js.map} +0 -0
- /package/dist/{chunk-AV5ZEH4M.js.map → chunk-KVJRXN2E.js.map} +0 -0
- /package/dist/{chunk-WFTIGIIS.js.map → chunk-L6CQ7WIW.js.map} +0 -0
- /package/dist/{chunk-227UFSEQ.js.map → chunk-LEPOP46W.js.map} +0 -0
- /package/dist/{chunk-EJUEXZHX.js.map → chunk-LLJMAULE.js.map} +0 -0
- /package/dist/{chunk-QN25OCUF.js.map → chunk-LPYDOLSM.js.map} +0 -0
- /package/dist/{chunk-AS7YMSL6.js.map → chunk-M23RF3LJ.js.map} +0 -0
- /package/dist/{chunk-OAEQLRCY.js.map → chunk-MO4HSXHZ.js.map} +0 -0
- /package/dist/{chunk-3F2LKUMU.js.map → chunk-NIS256NW.js.map} +0 -0
- /package/dist/{chunk-YIAA2X3D.js.map → chunk-NK5RGJ65.js.map} +0 -0
- /package/dist/{chunk-7TWUCYER.js.map → chunk-PNRA7FAD.js.map} +0 -0
- /package/dist/{chunk-5I4M26Q7.js.map → chunk-QBSFOKY6.js.map} +0 -0
- /package/dist/{chunk-E53DSZEN.js.map → chunk-QR6G5KF4.js.map} +0 -0
- /package/dist/{chunk-4UH4BTGK.js.map → chunk-QVJPH7SH.js.map} +0 -0
- /package/dist/{chunk-JBPKEARU.js.map → chunk-RKNJBZ55.js.map} +0 -0
- /package/dist/{chunk-WDISJRMG.js.map → chunk-RMMVQQA6.js.map} +0 -0
- /package/dist/{chunk-JVLCVFQ4.js.map → chunk-RNHVVMFN.js.map} +0 -0
- /package/dist/{chunk-5SM35XZR.js.map → chunk-S5NZBKKQ.js.map} +0 -0
- /package/dist/{chunk-WIPEXG6R.js.map → chunk-SXIMQLGV.js.map} +0 -0
- /package/dist/{chunk-7K5Q6COX.js.map → chunk-TVVEYCNW.js.map} +0 -0
- /package/dist/{chunk-4B77XSG5.js.map → chunk-UV72DEZD.js.map} +0 -0
- /package/dist/{chunk-BJKPPZ6Z.js.map → chunk-UW66OZTD.js.map} +0 -0
- /package/dist/{chunk-S2BBISHU.js.map → chunk-VANZKHTN.js.map} +0 -0
- /package/dist/{chunk-3Y224NYC.js.map → chunk-VYISFWVX.js.map} +0 -0
- /package/dist/{chunk-JE7EK33X.js.map → chunk-W2V7UESE.js.map} +0 -0
- /package/dist/{chunk-TIHMZFIV.js.map → chunk-W3IC7QOY.js.map} +0 -0
- /package/dist/{chunk-NRV4Y3PM.js.map → chunk-W4FBGYGK.js.map} +0 -0
- /package/dist/{chunk-MU7ZHSZE.js.map → chunk-WZFAPHIK.js.map} +0 -0
- /package/dist/{chunk-T2TTP3KU.js.map → chunk-X4IDNPOS.js.map} +0 -0
- /package/dist/{chunk-UVIKWC7M.js.map → chunk-XAGYS7X6.js.map} +0 -0
- /package/dist/{chunk-BLAKS3CP.js.map → chunk-XL3TATMJ.js.map} +0 -0
- /package/dist/{chunk-W4XJFLAL.js.map → chunk-XPRJSHNI.js.map} +0 -0
- /package/dist/{chunk-E6EE5B67.js.map → chunk-YK6BDDHP.js.map} +0 -0
- /package/dist/{chunk-ES36HTSC.js.map → chunk-YLHM5BQQ.js.map} +0 -0
- /package/dist/{chunk-GF22HWS2.js.map → chunk-Z54EM5YZ.js.map} +0 -0
- /package/dist/{chunk-64UDOIMI.js.map → chunk-ZLQ37WJX.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-GDB4J2H3.js";
|
|
9
9
|
import {
|
|
10
10
|
importCapsule
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-A4JMGKCD.js";
|
|
12
12
|
import {
|
|
13
13
|
WriteQuarantineStore
|
|
14
14
|
} from "./chunk-PJSK6OJM.js";
|
|
@@ -30,25 +30,22 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
planSessionTranscriptMigration
|
|
32
32
|
} from "./chunk-P5FPO2BR.js";
|
|
33
|
-
import {
|
|
34
|
-
boundRecallContextComposition,
|
|
35
|
-
composeRecallContext
|
|
36
|
-
} from "./chunk-AHVEHR6K.js";
|
|
37
33
|
import {
|
|
38
34
|
decideDisclosureEscalation
|
|
39
35
|
} from "./chunk-H7XKCNR6.js";
|
|
40
36
|
import {
|
|
41
37
|
toRecallExplainJson
|
|
42
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-O4KMGRXE.js";
|
|
43
39
|
import {
|
|
44
40
|
estimateRecallTokens
|
|
45
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-HFPASSFV.js";
|
|
46
42
|
import {
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
boundRecallContextComposition,
|
|
44
|
+
composeRecallContext
|
|
45
|
+
} from "./chunk-AHVEHR6K.js";
|
|
49
46
|
import {
|
|
50
|
-
|
|
51
|
-
} from "./chunk-
|
|
47
|
+
readAggregateExtractionWatermark
|
|
48
|
+
} from "./chunk-FR27HBBA.js";
|
|
52
49
|
import {
|
|
53
50
|
recordObjectiveStateSnapshotsFromObservedMessages
|
|
54
51
|
} from "./chunk-ICP53SKG.js";
|
|
@@ -56,28 +53,26 @@ import {
|
|
|
56
53
|
objectiveStateStoreOverrideForNamespace
|
|
57
54
|
} from "./chunk-6HMYUWXR.js";
|
|
58
55
|
import {
|
|
59
|
-
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import {
|
|
62
|
-
resolveScopePlan,
|
|
63
|
-
resolveScopedWritableNamespaceValue,
|
|
64
|
-
resolveWritableNamespaceValue
|
|
65
|
-
} from "./chunk-ULARSG5Z.js";
|
|
56
|
+
ReplicaDivergenceMonitor
|
|
57
|
+
} from "./chunk-CVILPI77.js";
|
|
66
58
|
import {
|
|
67
59
|
recordMemoryOutcome
|
|
68
60
|
} from "./chunk-EIR5VLIH.js";
|
|
69
61
|
import {
|
|
70
62
|
buildGraphSnapshot
|
|
71
63
|
} from "./chunk-JYIFGGEM.js";
|
|
64
|
+
import {
|
|
65
|
+
REDACTION_RULES_SUBDIR
|
|
66
|
+
} from "./chunk-LTHVM4XN.js";
|
|
72
67
|
import {
|
|
73
68
|
wrapWorkLayerContext
|
|
74
69
|
} from "./chunk-EI6V5UXY.js";
|
|
75
70
|
import {
|
|
76
71
|
CONNECTOR_LABEL_MAX_LENGTH
|
|
77
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-X4IDNPOS.js";
|
|
78
73
|
import {
|
|
79
74
|
isValidConnectorId
|
|
80
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-PNRA7FAD.js";
|
|
81
76
|
import {
|
|
82
77
|
formatProfileTraceAscii
|
|
83
78
|
} from "./chunk-NLE6TSLG.js";
|
|
@@ -89,7 +84,7 @@ import {
|
|
|
89
84
|
persistExplicitCapture,
|
|
90
85
|
queueExplicitCaptureForReview,
|
|
91
86
|
validateExplicitCaptureInput
|
|
92
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-S5NZBKKQ.js";
|
|
93
88
|
import {
|
|
94
89
|
lcmEvidenceIdentity
|
|
95
90
|
} from "./chunk-C37ZRXX7.js";
|
|
@@ -100,67 +95,44 @@ import {
|
|
|
100
95
|
listMemoryGovernanceRuns,
|
|
101
96
|
readMemoryGovernanceRunArtifact,
|
|
102
97
|
runMemoryGovernance
|
|
103
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-HC3PBX23.js";
|
|
104
99
|
import {
|
|
105
100
|
CorpusWatermarkCache,
|
|
106
101
|
computeServiceCorpusCensus
|
|
107
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-W2V7UESE.js";
|
|
108
103
|
import {
|
|
109
104
|
namespaceCollectionName
|
|
110
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-JZH4LWHB.js";
|
|
111
106
|
import {
|
|
112
107
|
CrossNamespaceBudget,
|
|
113
108
|
toBudgetWarning
|
|
114
109
|
} from "./chunk-UFGFMWAD.js";
|
|
115
|
-
import {
|
|
116
|
-
ExtractionDeadlineError
|
|
117
|
-
} from "./chunk-ECK75GDJ.js";
|
|
118
|
-
import {
|
|
119
|
-
combineNamespaces,
|
|
120
|
-
defaultGitInvoker,
|
|
121
|
-
expandScopeProfileReadNamespaces,
|
|
122
|
-
lcmSessionKeyForNamespace,
|
|
123
|
-
projectTagProjectId,
|
|
124
|
-
resolveCodingNamespaceOverlay,
|
|
125
|
-
resolveGitContext,
|
|
126
|
-
resolveScopeProfilePlan,
|
|
127
|
-
sanitizeFragment
|
|
128
|
-
} from "./chunk-BUE5E2HL.js";
|
|
129
|
-
import {
|
|
130
|
-
defaultCapsulesDir
|
|
131
|
-
} from "./chunk-ZY2MNJR6.js";
|
|
132
110
|
import {
|
|
133
111
|
filterTrajectoriesByLookbackDays,
|
|
134
112
|
readCausalTrajectoryRecords
|
|
135
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-W4FBGYGK.js";
|
|
136
114
|
import {
|
|
137
115
|
FileCalendarSource,
|
|
138
116
|
buildBriefing,
|
|
139
117
|
enqueuePassiveCorrectionNotification,
|
|
140
118
|
parseBriefingFocus,
|
|
141
119
|
parseBriefingWindow
|
|
142
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-LPYDOLSM.js";
|
|
143
121
|
import {
|
|
144
122
|
parseEntityFile,
|
|
123
|
+
parseFrontmatter,
|
|
145
124
|
qmdCollectionPathParts,
|
|
146
125
|
qmdResultPathCandidates,
|
|
147
126
|
selfDeps
|
|
148
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-FUCYDRE5.js";
|
|
149
128
|
import {
|
|
150
129
|
DEFAULT_RECALL_DISCLOSURE,
|
|
151
130
|
isRecallDisclosure
|
|
152
|
-
} from "./chunk-
|
|
153
|
-
import {
|
|
154
|
-
namespaceIdentityFromToken
|
|
155
|
-
} from "./chunk-EGGE52UU.js";
|
|
131
|
+
} from "./chunk-DZPFMQZ7.js";
|
|
156
132
|
import {
|
|
157
133
|
normalizeProjectionPreview,
|
|
158
134
|
normalizeProjectionTags
|
|
159
135
|
} from "./chunk-SCU65EZI.js";
|
|
160
|
-
import {
|
|
161
|
-
inferMemoryStatus,
|
|
162
|
-
toMemoryPathRel
|
|
163
|
-
} from "./chunk-7RJUVTVF.js";
|
|
164
136
|
import {
|
|
165
137
|
STRUCTURED_ATTRIBUTE_LIMITS,
|
|
166
138
|
buildAccessWriteRequestFingerprint,
|
|
@@ -176,34 +148,38 @@ import {
|
|
|
176
148
|
normalizeTags,
|
|
177
149
|
parseTagMatch
|
|
178
150
|
} from "./chunk-BT7NVCML.js";
|
|
179
|
-
import {
|
|
180
|
-
getMemoryProjectionPath
|
|
181
|
-
} from "./chunk-3CSX3ETE.js";
|
|
182
|
-
import {
|
|
183
|
-
displayErrorDetail
|
|
184
|
-
} from "./chunk-RL6NEVXT.js";
|
|
185
|
-
import {
|
|
186
|
-
computeContentHash
|
|
187
|
-
} from "./chunk-W5H6ZRPT.js";
|
|
188
151
|
import {
|
|
189
152
|
createVersion
|
|
190
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-7YKVM5H3.js";
|
|
191
154
|
import {
|
|
192
155
|
supersessionKeysForFact
|
|
193
156
|
} from "./chunk-DNHVPZOD.js";
|
|
194
157
|
import {
|
|
195
|
-
|
|
196
|
-
} from "./chunk-
|
|
158
|
+
ExtractionDeadlineError
|
|
159
|
+
} from "./chunk-N3LL5NEU.js";
|
|
160
|
+
import {
|
|
161
|
+
defaultCapsulesDir
|
|
162
|
+
} from "./chunk-ZY2MNJR6.js";
|
|
163
|
+
import {
|
|
164
|
+
ExtractionLivenessWarnThrottle,
|
|
165
|
+
computeExtractionLivenessStatus
|
|
166
|
+
} from "./chunk-3SG4FGDV.js";
|
|
167
|
+
import {
|
|
168
|
+
sanitizeMemoryContent
|
|
169
|
+
} from "./chunk-5GKPFL3S.js";
|
|
170
|
+
import {
|
|
171
|
+
buildHandleIndexForResults,
|
|
172
|
+
isHandleToken
|
|
173
|
+
} from "./chunk-JAKIDQB2.js";
|
|
174
|
+
import {
|
|
175
|
+
exportCapsule
|
|
176
|
+
} from "./chunk-KQAFEZQX.js";
|
|
177
|
+
import {
|
|
178
|
+
evaluateActionConfidence
|
|
179
|
+
} from "./chunk-Z2YFLXHU.js";
|
|
197
180
|
import {
|
|
198
181
|
delegateExtractionForceFlush
|
|
199
182
|
} from "./chunk-3QL24R5Y.js";
|
|
200
|
-
import {
|
|
201
|
-
assertOperationAuthorizationAllowed,
|
|
202
|
-
capabilityAllowsOp,
|
|
203
|
-
enforceNamespaceAllowList,
|
|
204
|
-
isNamespaceAllowed,
|
|
205
|
-
tokenCapabilityStore
|
|
206
|
-
} from "./chunk-MZWSOLMT.js";
|
|
207
183
|
import {
|
|
208
184
|
meetingsBuild,
|
|
209
185
|
meetingsGet,
|
|
@@ -215,29 +191,52 @@ import {
|
|
|
215
191
|
wearablesTranscriptSearch
|
|
216
192
|
} from "./chunk-SYOIVK7K.js";
|
|
217
193
|
import {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
194
|
+
defaultNamespaceAtFlatRoot,
|
|
195
|
+
mergeMemorySearchDefaultFallback,
|
|
196
|
+
resolveMemorySearchDefaultFallback,
|
|
197
|
+
runMemorySearchFanout
|
|
198
|
+
} from "./chunk-7HXCF4RE.js";
|
|
221
199
|
import {
|
|
222
|
-
|
|
223
|
-
|
|
200
|
+
PendingObserveExtractionTracker,
|
|
201
|
+
pendingObserveScopeHint
|
|
202
|
+
} from "./chunk-LNEWDF2A.js";
|
|
224
203
|
import {
|
|
225
|
-
|
|
226
|
-
} from "./chunk-
|
|
204
|
+
createOfflineSyncManifestStream
|
|
205
|
+
} from "./chunk-BIPBQQFI.js";
|
|
227
206
|
import {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
} from "./chunk-JAKIDQB2.js";
|
|
207
|
+
offlineSyncStorageForSnapshot
|
|
208
|
+
} from "./chunk-5U7ID3EZ.js";
|
|
231
209
|
import {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
210
|
+
resolveScopePlan,
|
|
211
|
+
resolveScopedWritableNamespaceValue,
|
|
212
|
+
resolveWritableNamespaceValue
|
|
213
|
+
} from "./chunk-YN6ASZUG.js";
|
|
235
214
|
import {
|
|
236
|
-
|
|
237
|
-
} from "./chunk-
|
|
215
|
+
writeFileAtomically
|
|
216
|
+
} from "./chunk-R6YJI3HE.js";
|
|
238
217
|
import {
|
|
239
|
-
|
|
240
|
-
} from "./chunk-
|
|
218
|
+
namespaceIdentityFromToken
|
|
219
|
+
} from "./chunk-EGGE52UU.js";
|
|
220
|
+
import {
|
|
221
|
+
inferMemoryStatus,
|
|
222
|
+
toMemoryPathRel
|
|
223
|
+
} from "./chunk-7RJUVTVF.js";
|
|
224
|
+
import {
|
|
225
|
+
getMemoryProjectionPath
|
|
226
|
+
} from "./chunk-3CSX3ETE.js";
|
|
227
|
+
import {
|
|
228
|
+
displayErrorDetail
|
|
229
|
+
} from "./chunk-RL6NEVXT.js";
|
|
230
|
+
import {
|
|
231
|
+
serializeMutations
|
|
232
|
+
} from "./chunk-FFAZ2XFU.js";
|
|
233
|
+
import {
|
|
234
|
+
computeContentHash
|
|
235
|
+
} from "./chunk-W5H6ZRPT.js";
|
|
236
|
+
import {
|
|
237
|
+
expandScopeProfileReadNamespaces,
|
|
238
|
+
resolveScopeProfilePlan
|
|
239
|
+
} from "./chunk-BGLY7EEM.js";
|
|
241
240
|
import {
|
|
242
241
|
OFFLINE_SYNC_SNAPSHOT_FORMAT,
|
|
243
242
|
applyOfflineSyncChangeset,
|
|
@@ -246,19 +245,17 @@ import {
|
|
|
246
245
|
buildOfflineSyncSnapshotForPaths,
|
|
247
246
|
buildOfflineSyncSnapshotFromBase,
|
|
248
247
|
compileOfflineSyncExcludeGlobs,
|
|
248
|
+
filterOfflineSyncDeletionRevisions,
|
|
249
249
|
iterateOfflineSyncSnapshotFileRecords,
|
|
250
250
|
readOfflineSyncFileContentChunk
|
|
251
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-GYPQL6XN.js";
|
|
252
252
|
import {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
resolveMemorySearchDefaultFallback,
|
|
260
|
-
runMemorySearchFanout
|
|
261
|
-
} from "./chunk-7HXCF4RE.js";
|
|
253
|
+
assertOperationAuthorizationAllowed,
|
|
254
|
+
capabilityAllowsOp,
|
|
255
|
+
enforceNamespaceAllowList,
|
|
256
|
+
isNamespaceAllowed,
|
|
257
|
+
tokenCapabilityStore
|
|
258
|
+
} from "./chunk-MZWSOLMT.js";
|
|
262
259
|
import {
|
|
263
260
|
canReadNamespace,
|
|
264
261
|
canWriteNamespace,
|
|
@@ -282,6 +279,25 @@ import {
|
|
|
282
279
|
resolveRecallEnhancementCapabilities,
|
|
283
280
|
resolveSecurityCapabilities
|
|
284
281
|
} from "./chunk-2XRE6FLM.js";
|
|
282
|
+
import {
|
|
283
|
+
AccessIdempotencyStore,
|
|
284
|
+
hashAccessIdempotencyPayload
|
|
285
|
+
} from "./chunk-VFUEZZBS.js";
|
|
286
|
+
import {
|
|
287
|
+
resolveCodingContextFromOptions
|
|
288
|
+
} from "./chunk-773TRRGT.js";
|
|
289
|
+
import {
|
|
290
|
+
combineNamespaces,
|
|
291
|
+
defaultGitInvokerSync,
|
|
292
|
+
lcmSessionKeyForNamespace,
|
|
293
|
+
projectTagProjectId,
|
|
294
|
+
resolveCodingNamespaceOverlay,
|
|
295
|
+
resolveGitContext,
|
|
296
|
+
sanitizeFragment
|
|
297
|
+
} from "./chunk-J2WC5LF4.js";
|
|
298
|
+
import {
|
|
299
|
+
expandTildePath
|
|
300
|
+
} from "./chunk-EYIEWJNI.js";
|
|
285
301
|
import {
|
|
286
302
|
EngramAccessForbiddenError,
|
|
287
303
|
EngramAccessInputError,
|
|
@@ -290,20 +306,21 @@ import {
|
|
|
290
306
|
import {
|
|
291
307
|
abortError,
|
|
292
308
|
isAbortError,
|
|
309
|
+
raceAbort,
|
|
293
310
|
throwIfAborted
|
|
294
|
-
} from "./chunk-
|
|
311
|
+
} from "./chunk-BTTPKDIL.js";
|
|
295
312
|
import {
|
|
296
313
|
AccessAuditAdapter
|
|
297
|
-
} from "./chunk-
|
|
314
|
+
} from "./chunk-TVVEYCNW.js";
|
|
298
315
|
import {
|
|
299
316
|
decodeCitationNamespace
|
|
300
|
-
} from "./chunk-
|
|
317
|
+
} from "./chunk-JIYDRBVZ.js";
|
|
301
318
|
import {
|
|
302
319
|
isPathInsideStorageRoot
|
|
303
320
|
} from "./chunk-FF4KLI5W.js";
|
|
304
321
|
import {
|
|
305
322
|
SecureStoreLockedError
|
|
306
|
-
} from "./chunk-
|
|
323
|
+
} from "./chunk-XQ3HXAQH.js";
|
|
307
324
|
import {
|
|
308
325
|
recordCitationUsage
|
|
309
326
|
} from "./chunk-NINSR6LX.js";
|
|
@@ -2863,7 +2880,7 @@ var CorrectionContractError = class extends Error {
|
|
|
2863
2880
|
};
|
|
2864
2881
|
|
|
2865
2882
|
// src/correction/correction-planner.ts
|
|
2866
|
-
import {
|
|
2883
|
+
import { readFile as readFile4, readdir as readdir2, unlink } from "fs/promises";
|
|
2867
2884
|
import path4 from "path";
|
|
2868
2885
|
var REDACTED_REQUEST_TEXT = "[redacted \u2014 never-store/redaction correction text withheld from the pending-plan file]";
|
|
2869
2886
|
var CorrectionPlanner = class _CorrectionPlanner {
|
|
@@ -3066,13 +3083,9 @@ var CorrectionPlanner = class _CorrectionPlanner {
|
|
|
3066
3083
|
const persistedPlan = sensitive ? { ...plan, request: { ...plan.request, text: REDACTED_REQUEST_TEXT } } : plan;
|
|
3067
3084
|
await serializeMutations(`correction-plan:${target}`, async () => {
|
|
3068
3085
|
throwIfAborted(abortSignal, "correction planning aborted");
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
await writeFile2(tmp, `${JSON.stringify(persistedPlan)}
|
|
3073
|
-
`, "utf-8");
|
|
3074
|
-
throwIfAborted(abortSignal, "correction planning aborted");
|
|
3075
|
-
await rename2(tmp, target);
|
|
3086
|
+
const writePlanFile = this.deps.writePlanFile ?? writeFileAtomically;
|
|
3087
|
+
await writePlanFile(target, `${JSON.stringify(persistedPlan)}
|
|
3088
|
+
`);
|
|
3076
3089
|
});
|
|
3077
3090
|
return plan;
|
|
3078
3091
|
}
|
|
@@ -3142,10 +3155,8 @@ var CorrectionPlanner = class _CorrectionPlanner {
|
|
|
3142
3155
|
(a) => a.kind === "redaction_rule" ? { ...a, pattern: "[redacted \u2014 pattern applied]" } : a
|
|
3143
3156
|
);
|
|
3144
3157
|
}
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
`, "utf-8");
|
|
3148
|
-
await rename2(tmp, file);
|
|
3158
|
+
await writeFileAtomically(file, `${JSON.stringify(plan)}
|
|
3159
|
+
`);
|
|
3149
3160
|
});
|
|
3150
3161
|
}
|
|
3151
3162
|
/**
|
|
@@ -3168,10 +3179,8 @@ var CorrectionPlanner = class _CorrectionPlanner {
|
|
|
3168
3179
|
if (!plan || plan.status !== "applying") return;
|
|
3169
3180
|
plan.status = "pending";
|
|
3170
3181
|
delete plan.applyingAt;
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
`, "utf-8");
|
|
3174
|
-
await rename2(tmp, file);
|
|
3182
|
+
await writeFileAtomically(file, `${JSON.stringify(plan)}
|
|
3183
|
+
`);
|
|
3175
3184
|
});
|
|
3176
3185
|
}
|
|
3177
3186
|
async deletePlan(namespace, planId) {
|
|
@@ -3375,10 +3384,9 @@ var CorrectionExecutor = class {
|
|
|
3375
3384
|
}
|
|
3376
3385
|
};
|
|
3377
3386
|
let mutationCommitted = false;
|
|
3378
|
-
let cancellationSafeAfterCommit = false;
|
|
3379
3387
|
let cancellationRequestedAfterCommit = false;
|
|
3380
3388
|
const throwIfAbortedBeforeCommit = () => {
|
|
3381
|
-
if (!mutationCommitted
|
|
3389
|
+
if (!mutationCommitted) {
|
|
3382
3390
|
throwIfAborted(abortSignal, "correction apply aborted");
|
|
3383
3391
|
}
|
|
3384
3392
|
};
|
|
@@ -3456,7 +3464,6 @@ var CorrectionExecutor = class {
|
|
|
3456
3464
|
const retirementResult = results.at(-1);
|
|
3457
3465
|
if (retirementResult !== retirementResultBeforePhase2 && retirementResult?.action === action && retirementResult.status === "applied") {
|
|
3458
3466
|
retiredReplacementActions.add(action);
|
|
3459
|
-
cancellationSafeAfterCommit = true;
|
|
3460
3467
|
}
|
|
3461
3468
|
} catch (err) {
|
|
3462
3469
|
if (abortSignal?.aborted) {
|
|
@@ -3482,7 +3489,6 @@ var CorrectionExecutor = class {
|
|
|
3482
3489
|
abortSignal
|
|
3483
3490
|
);
|
|
3484
3491
|
mutationCommitted = true;
|
|
3485
|
-
cancellationSafeAfterCommit = true;
|
|
3486
3492
|
results.push({ action, status: "applied", memoryId: editedId });
|
|
3487
3493
|
appliedTouched.push(editedId);
|
|
3488
3494
|
} catch (err) {
|
|
@@ -3504,7 +3510,6 @@ var CorrectionExecutor = class {
|
|
|
3504
3510
|
abortSignal
|
|
3505
3511
|
);
|
|
3506
3512
|
mutationCommitted = true;
|
|
3507
|
-
cancellationSafeAfterCommit = true;
|
|
3508
3513
|
results.push({ action, status: "applied" });
|
|
3509
3514
|
} catch (err) {
|
|
3510
3515
|
if (abortSignal?.aborted) {
|
|
@@ -3540,7 +3545,6 @@ var CorrectionExecutor = class {
|
|
|
3540
3545
|
);
|
|
3541
3546
|
if (results.at(-1)?.status === "applied") {
|
|
3542
3547
|
mutationCommitted = true;
|
|
3543
|
-
cancellationSafeAfterCommit = true;
|
|
3544
3548
|
}
|
|
3545
3549
|
if (results.at(-1)?.action === action && results.at(-1)?.status === "applied") {
|
|
3546
3550
|
removeFailedResultsFor(action);
|
|
@@ -3557,14 +3561,17 @@ var CorrectionExecutor = class {
|
|
|
3557
3561
|
);
|
|
3558
3562
|
if (results.at(-1)?.status === "applied") {
|
|
3559
3563
|
mutationCommitted = true;
|
|
3560
|
-
cancellationSafeAfterCommit = true;
|
|
3561
3564
|
}
|
|
3562
3565
|
if (results.at(-1)?.action === action && results.at(-1)?.status === "applied") {
|
|
3563
3566
|
removeFailedResultsFor(action);
|
|
3564
3567
|
}
|
|
3565
3568
|
} else if (action.kind === "rescope") {
|
|
3566
3569
|
try {
|
|
3567
|
-
const allowed = canWriteDestination ? await
|
|
3570
|
+
const allowed = canWriteDestination ? await raceAbort(
|
|
3571
|
+
canWriteDestination(action.toNamespace, abortSignal),
|
|
3572
|
+
abortSignal,
|
|
3573
|
+
"correction apply aborted"
|
|
3574
|
+
) : true;
|
|
3568
3575
|
if (!allowed) {
|
|
3569
3576
|
results.push({
|
|
3570
3577
|
action,
|
|
@@ -3580,7 +3587,6 @@ var CorrectionExecutor = class {
|
|
|
3580
3587
|
abortSignal
|
|
3581
3588
|
);
|
|
3582
3589
|
mutationCommitted = true;
|
|
3583
|
-
cancellationSafeAfterCommit = true;
|
|
3584
3590
|
results.push({ action, status: "applied", memoryId: destId });
|
|
3585
3591
|
appliedTouched.push(action.memoryId);
|
|
3586
3592
|
try {
|
|
@@ -3612,13 +3618,24 @@ var CorrectionExecutor = class {
|
|
|
3612
3618
|
const propagationWarnings = [];
|
|
3613
3619
|
if (appliedTouched.length > 0) {
|
|
3614
3620
|
try {
|
|
3615
|
-
await this.deps.propagate(namespace, appliedTouched,
|
|
3621
|
+
await this.deps.propagate(namespace, appliedTouched, mutationCommitted ? void 0 : abortSignal);
|
|
3616
3622
|
} catch (err) {
|
|
3617
|
-
if (
|
|
3623
|
+
if (!mutationCommitted && abortSignal?.aborted) throw err;
|
|
3618
3624
|
propagationWarnings.push(`propagation failed (non-fatal): ${errMsg(err)}`);
|
|
3619
3625
|
}
|
|
3620
3626
|
}
|
|
3621
3627
|
await throwIfAbortedBeforeCommitAndReset();
|
|
3628
|
+
if (cancellationRequestedAfterCommit) {
|
|
3629
|
+
const recordedActions = new Set(results.map((result) => result.action));
|
|
3630
|
+
for (const action of plan.actions) {
|
|
3631
|
+
if (recordedActions.has(action)) continue;
|
|
3632
|
+
results.push({
|
|
3633
|
+
action,
|
|
3634
|
+
status: "skipped",
|
|
3635
|
+
error: "correction apply cancelled before action started"
|
|
3636
|
+
});
|
|
3637
|
+
}
|
|
3638
|
+
}
|
|
3622
3639
|
const anyFailed = results.some((r) => r.status === "failed");
|
|
3623
3640
|
const status = anyFailed || cancellationRequestedAfterCommit ? "partial" : "applied";
|
|
3624
3641
|
const appliedAt = this.deps.now().toISOString();
|
|
@@ -3642,17 +3659,19 @@ var CorrectionExecutor = class {
|
|
|
3642
3659
|
outcome,
|
|
3643
3660
|
requestText: plan.request.text
|
|
3644
3661
|
},
|
|
3645
|
-
|
|
3662
|
+
mutationCommitted ? void 0 : abortSignal
|
|
3646
3663
|
);
|
|
3647
3664
|
outcome.auditMemoryId = auditId;
|
|
3648
3665
|
} catch (err) {
|
|
3649
|
-
if (
|
|
3666
|
+
if (!mutationCommitted && abortSignal?.aborted) {
|
|
3667
|
+
await resetApplying();
|
|
3668
|
+
throw err;
|
|
3669
|
+
}
|
|
3650
3670
|
outcome.warnings = [
|
|
3651
3671
|
...propagationWarnings,
|
|
3652
3672
|
`audit record write failed (non-fatal): ${errMsg(err)}`
|
|
3653
3673
|
];
|
|
3654
3674
|
}
|
|
3655
|
-
await throwIfAbortedBeforeCommitAndReset();
|
|
3656
3675
|
try {
|
|
3657
3676
|
await this.planner.markConsumed(namespace, planId, status);
|
|
3658
3677
|
} catch (err) {
|
|
@@ -3775,10 +3794,11 @@ var CorrectionService = class {
|
|
|
3775
3794
|
abortSignal: opts.abortSignal,
|
|
3776
3795
|
// Authorize rescope destinations through the namespace policy bound to
|
|
3777
3796
|
// THIS caller's principal (review thread: authorize-rescope-destination).
|
|
3778
|
-
canWriteDestination: (dest) => this.deps.policy.canWriteNamespace({
|
|
3797
|
+
canWriteDestination: (dest, abortSignal) => this.deps.policy.canWriteNamespace({
|
|
3779
3798
|
namespace: dest,
|
|
3780
3799
|
...opts.sessionKey ? { sessionKey: opts.sessionKey } : {},
|
|
3781
|
-
...opts.principal ? { principal: opts.principal } : {}
|
|
3800
|
+
...opts.principal ? { principal: opts.principal } : {},
|
|
3801
|
+
...abortSignal ? { abortSignal } : {}
|
|
3782
3802
|
})
|
|
3783
3803
|
});
|
|
3784
3804
|
}
|
|
@@ -3829,7 +3849,6 @@ var CorrectionService = class {
|
|
|
3829
3849
|
// src/correction/correction-access-wiring.ts
|
|
3830
3850
|
import path5 from "path";
|
|
3831
3851
|
import { createHash as createHash2 } from "crypto";
|
|
3832
|
-
import { mkdir as mkdir3, writeFile as writeFile3 } from "fs/promises";
|
|
3833
3852
|
function createCorrectionService(wiring) {
|
|
3834
3853
|
const cfg = wiring.orchestrator.config;
|
|
3835
3854
|
const correctionEnabled = isCorrectionFeatureEnabled(cfg);
|
|
@@ -4188,7 +4207,8 @@ async function rescopeMemoryFn(wiring, namespace, memoryId, toNamespace, abortSi
|
|
|
4188
4207
|
...Array.isArray(fm.tags) ? { tags: fm.tags } : {},
|
|
4189
4208
|
...fm.entityRef ? { entityRef: fm.entityRef } : {},
|
|
4190
4209
|
...fm.structuredAttributes ? { structuredAttributes: fm.structuredAttributes } : {},
|
|
4191
|
-
...fm.valid_at ? { validAt: fm.valid_at } : {}
|
|
4210
|
+
...fm.valid_at ? { validAt: fm.valid_at } : {},
|
|
4211
|
+
...fm.sourceConnector ? { sourceConnector: fm.sourceConnector } : {}
|
|
4192
4212
|
},
|
|
4193
4213
|
{ source: `correction:rescope:${namespace}` },
|
|
4194
4214
|
{ salvage: true }
|
|
@@ -4201,7 +4221,8 @@ async function rescopeMemoryFn(wiring, namespace, memoryId, toNamespace, abortSi
|
|
|
4201
4221
|
...fm.observedAt ? { observedAt: fm.observedAt } : {},
|
|
4202
4222
|
...fm.memoryKind ? { memoryKind: fm.memoryKind } : {},
|
|
4203
4223
|
...Array.isArray(fm.links) ? { links: fm.links } : {},
|
|
4204
|
-
...fm.intentGoal ? { intentGoal: fm.intentGoal } : {}
|
|
4224
|
+
...fm.intentGoal ? { intentGoal: fm.intentGoal } : {},
|
|
4225
|
+
...fm.toolScoped ? { toolScoped: true } : {}
|
|
4205
4226
|
});
|
|
4206
4227
|
if (destBlocked) {
|
|
4207
4228
|
throw new CorrectionContractError(
|
|
@@ -4267,24 +4288,21 @@ async function appendTombstoneFn(wiring, namespace, input, abortSignal) {
|
|
|
4267
4288
|
}
|
|
4268
4289
|
return firstId;
|
|
4269
4290
|
}
|
|
4270
|
-
async function registerRedactionRuleFn(wiring, namespace, pattern, abortSignal) {
|
|
4291
|
+
async function registerRedactionRuleFn(wiring, namespace, pattern, abortSignal, writeRule = writeFileAtomically) {
|
|
4271
4292
|
throwIfAborted(abortSignal, "correction apply aborted");
|
|
4272
4293
|
const storage = await wiring.orchestrator.getStorage(namespace);
|
|
4273
4294
|
throwIfAborted(abortSignal, "correction apply aborted");
|
|
4274
|
-
const dir = path5.join(storage.dir,
|
|
4275
|
-
await mkdir3(dir, { recursive: true });
|
|
4295
|
+
const dir = path5.join(storage.dir, REDACTION_RULES_SUBDIR);
|
|
4276
4296
|
throwIfAborted(abortSignal, "correction apply aborted");
|
|
4277
4297
|
const slugBase = pattern.replace(/[^a-zA-Z0-9]+/g, "-").slice(0, 48) || "rule";
|
|
4278
4298
|
const patternHash = createHash2("sha256").update(pattern).digest("hex").slice(0, 16);
|
|
4279
4299
|
const slug = `${slugBase}-${patternHash}`;
|
|
4280
4300
|
throwIfAborted(abortSignal, "correction apply aborted");
|
|
4281
|
-
await
|
|
4301
|
+
await writeRule(
|
|
4282
4302
|
path5.join(dir, `${slug}.json`),
|
|
4283
4303
|
`${JSON.stringify({ pattern, namespace, createdAt: (/* @__PURE__ */ new Date()).toISOString() })}
|
|
4284
|
-
|
|
4285
|
-
"utf-8"
|
|
4304
|
+
`
|
|
4286
4305
|
);
|
|
4287
|
-
throwIfAborted(abortSignal, "correction apply aborted");
|
|
4288
4306
|
}
|
|
4289
4307
|
async function appendAuditRecordFn(wiring, namespace, record, abortSignal) {
|
|
4290
4308
|
throwIfAborted(abortSignal, "correction apply aborted");
|
|
@@ -4303,7 +4321,6 @@ async function appendAuditRecordFn(wiring, namespace, record, abortSignal) {
|
|
|
4303
4321
|
),
|
|
4304
4322
|
{}
|
|
4305
4323
|
);
|
|
4306
|
-
throwIfAborted(abortSignal, "correction apply aborted");
|
|
4307
4324
|
return id;
|
|
4308
4325
|
}
|
|
4309
4326
|
function buildAuditBody(record) {
|
|
@@ -4716,9 +4733,12 @@ async function capturePassiveCorrections(corrections, ctx, config, deps, dedupSt
|
|
|
4716
4733
|
);
|
|
4717
4734
|
continue;
|
|
4718
4735
|
}
|
|
4719
|
-
if (ctx.abortSignal?.aborted) return { telemetry, plans };
|
|
4720
4736
|
plans.push(plan);
|
|
4721
4737
|
dedupState.add(fp);
|
|
4738
|
+
if (ctx.abortSignal?.aborted) {
|
|
4739
|
+
telemetry.queued += 1;
|
|
4740
|
+
return { telemetry, plans };
|
|
4741
|
+
}
|
|
4722
4742
|
if (config.mode === "queue") {
|
|
4723
4743
|
telemetry.queued += 1;
|
|
4724
4744
|
continue;
|
|
@@ -4775,7 +4795,7 @@ function buildNotificationSummary(plan) {
|
|
|
4775
4795
|
|
|
4776
4796
|
// src/procedural/procedure-miner.ts
|
|
4777
4797
|
import { createHash as createHash3 } from "crypto";
|
|
4778
|
-
import { mkdir as
|
|
4798
|
+
import { mkdir as mkdir2, rm, stat } from "fs/promises";
|
|
4779
4799
|
import path6 from "path";
|
|
4780
4800
|
|
|
4781
4801
|
// src/procedural/reinforcement-core.ts
|
|
@@ -4831,12 +4851,12 @@ function sleep(ms) {
|
|
|
4831
4851
|
async function acquireClusterWriteLock(memoryDir, clusterHash) {
|
|
4832
4852
|
const lockRoot = path6.join(path6.resolve(memoryDir), "state", "procedure-miner-locks");
|
|
4833
4853
|
const lockDir = path6.join(lockRoot, `${clusterHash}.lock`);
|
|
4834
|
-
await
|
|
4854
|
+
await mkdir2(lockRoot, { recursive: true });
|
|
4835
4855
|
const startedAt = Date.now();
|
|
4836
4856
|
let attempts = 0;
|
|
4837
4857
|
while (true) {
|
|
4838
4858
|
try {
|
|
4839
|
-
await
|
|
4859
|
+
await mkdir2(lockDir);
|
|
4840
4860
|
return async () => {
|
|
4841
4861
|
await rm(lockDir, { recursive: true, force: true });
|
|
4842
4862
|
};
|
|
@@ -5123,6 +5143,7 @@ import { z } from "zod";
|
|
|
5123
5143
|
var OPERATION_NAMES = [
|
|
5124
5144
|
"memory_get",
|
|
5125
5145
|
"memory_search",
|
|
5146
|
+
"external_wiki_search",
|
|
5126
5147
|
"memory_store",
|
|
5127
5148
|
"coding_decision",
|
|
5128
5149
|
"coding_architecture",
|
|
@@ -5851,7 +5872,8 @@ async function promoteMemory(options) {
|
|
|
5851
5872
|
actor: options.actor,
|
|
5852
5873
|
validAt: sourceMemory.frontmatter.valid_at,
|
|
5853
5874
|
lineage: [options.sourceMemoryId],
|
|
5854
|
-
...sourceMemory.frontmatter.sourceConnector ? { sourceConnector: sourceMemory.frontmatter.sourceConnector } : {}
|
|
5875
|
+
...sourceMemory.frontmatter.sourceConnector ? { sourceConnector: sourceMemory.frontmatter.sourceConnector } : {},
|
|
5876
|
+
...sourceMemory.frontmatter.toolScoped ? { toolScoped: true } : {}
|
|
5855
5877
|
});
|
|
5856
5878
|
target.promoted = true;
|
|
5857
5879
|
target.promotedMemoryId = promotedId;
|
|
@@ -6284,9 +6306,43 @@ async function extractionForceFlush(deps, request, waitForPendingObserveExtracti
|
|
|
6284
6306
|
request.onCommitted?.();
|
|
6285
6307
|
};
|
|
6286
6308
|
let abortHandler;
|
|
6309
|
+
const reservationScopeHint = pendingObserveScopeHint(request);
|
|
6310
|
+
const cancelBeforeScopeResolution = () => {
|
|
6311
|
+
const explicitNamespace = request.namespace?.trim();
|
|
6312
|
+
if (explicitNamespace) {
|
|
6313
|
+
deps.cancelPendingObserveExtractions?.(
|
|
6314
|
+
request.sessionKey,
|
|
6315
|
+
authenticatedPrincipal ?? sessionPrincipal,
|
|
6316
|
+
explicitNamespace,
|
|
6317
|
+
reservationScopeHint
|
|
6318
|
+
);
|
|
6319
|
+
return;
|
|
6320
|
+
}
|
|
6321
|
+
if (reservationScopeHint !== void 0) {
|
|
6322
|
+
deps.cancelPendingObservePreparations?.(request.sessionKey, reservationScopeHint);
|
|
6323
|
+
return;
|
|
6324
|
+
}
|
|
6325
|
+
if (!namespacesEnabled) {
|
|
6326
|
+
deps.cancelPendingObserveExtractions?.(request.sessionKey);
|
|
6327
|
+
}
|
|
6328
|
+
};
|
|
6287
6329
|
try {
|
|
6288
|
-
|
|
6289
|
-
|
|
6330
|
+
let scope;
|
|
6331
|
+
try {
|
|
6332
|
+
scope = await awaitSessionFlushPhase(
|
|
6333
|
+
() => deps.resolveMemoryScopePlan(request),
|
|
6334
|
+
{
|
|
6335
|
+
abortSignal: request.abortSignal,
|
|
6336
|
+
extractionDeadlineMs: request.deadlineMs,
|
|
6337
|
+
reason: "access_force_flush",
|
|
6338
|
+
deadlineStage: "scope_resolution",
|
|
6339
|
+
onDeadline: cancelBeforeScopeResolution
|
|
6340
|
+
}
|
|
6341
|
+
);
|
|
6342
|
+
} catch (error) {
|
|
6343
|
+
if (request.abortSignal?.aborted) cancelBeforeScopeResolution();
|
|
6344
|
+
throw error;
|
|
6345
|
+
}
|
|
6290
6346
|
const cancelScopedPendingObserveExtractions = () => {
|
|
6291
6347
|
deps.cancelPendingObserveExtractions?.(
|
|
6292
6348
|
request.sessionKey,
|
|
@@ -6399,6 +6455,9 @@ var AccessObserveWriteSurface = class {
|
|
|
6399
6455
|
deps;
|
|
6400
6456
|
quarantineStoreInstance;
|
|
6401
6457
|
pendingObserveExtractions = new PendingObserveExtractionTracker();
|
|
6458
|
+
cancelPendingObservePreparations(sessionKey, scopeHint) {
|
|
6459
|
+
this.pendingObserveExtractions.cancelPreparations(sessionKey, scopeHint);
|
|
6460
|
+
}
|
|
6402
6461
|
cancelPendingObserveExtractions(sessionKey, principal, namespace, scopeHint) {
|
|
6403
6462
|
this.pendingObserveExtractions.cancel(sessionKey, principal, namespace, scopeHint);
|
|
6404
6463
|
}
|
|
@@ -8033,7 +8092,8 @@ var AccessAdminOpsSurface = class {
|
|
|
8033
8092
|
const { id, tombstoneBlocked } = await resolved.writeSealedMemory(promotionEnvelope, {
|
|
8034
8093
|
lineage: memory.lineage,
|
|
8035
8094
|
sourceMemoryId: memory.sourceMemoryId,
|
|
8036
|
-
actor: memory.actor
|
|
8095
|
+
actor: memory.actor,
|
|
8096
|
+
...memory.toolScoped ? { toolScoped: true } : {}
|
|
8037
8097
|
});
|
|
8038
8098
|
if (tombstoneBlocked) {
|
|
8039
8099
|
throw new Error(
|
|
@@ -9049,6 +9109,7 @@ var AccessRecallSurface = class {
|
|
|
9049
9109
|
contextComposition = composition;
|
|
9050
9110
|
},
|
|
9051
9111
|
...authenticatedPrincipal ? { principalOverride: authenticatedPrincipal } : {},
|
|
9112
|
+
...request.sourceConnector ? { sourceConnector: request.sourceConnector } : {},
|
|
9052
9113
|
...asOf !== void 0 ? { asOf } : {},
|
|
9053
9114
|
...request.includeLowConfidence === true ? { includeLowConfidence: true } : {},
|
|
9054
9115
|
...request.abortSignal ? { abortSignal: request.abortSignal } : {},
|
|
@@ -9170,6 +9231,7 @@ var AccessRecallSurface = class {
|
|
|
9170
9231
|
// wrong-scope serving despite the pre-check passing
|
|
9171
9232
|
// (CLAUDE.md rule 42).
|
|
9172
9233
|
...authenticatedPrincipal ? { principalOverride: authenticatedPrincipal } : {},
|
|
9234
|
+
...request.sourceConnector ? { sourceConnector: request.sourceConnector } : {},
|
|
9173
9235
|
...request.currentContextScopes !== void 0 ? { currentContextScopes: request.currentContextScopes } : {},
|
|
9174
9236
|
...request.abortSignal ? { abortSignal: request.abortSignal } : {}
|
|
9175
9237
|
}
|
|
@@ -9844,34 +9906,6 @@ var EngramAccessService = class {
|
|
|
9844
9906
|
}
|
|
9845
9907
|
return result.namespace;
|
|
9846
9908
|
}
|
|
9847
|
-
/**
|
|
9848
|
-
* Resolve a coding context from `cwd`/`projectTag` WITHOUT persisting it to
|
|
9849
|
-
* any session — the read-only half of `maybeAttachCodingContext`. Returns
|
|
9850
|
-
* null when project scoping is off or nothing resolves. `projectTag` takes
|
|
9851
|
-
* priority over `cwd` (matching `maybeAttachCodingContext`).
|
|
9852
|
-
*/
|
|
9853
|
-
async resolveCodingContextFromOptions(options) {
|
|
9854
|
-
if (!this.orchestrator.config.codingMode?.projectScope) return null;
|
|
9855
|
-
if (typeof options.projectTag === "string" && options.projectTag.trim().length > 0) {
|
|
9856
|
-
const projectId = projectTagProjectId(options.projectTag);
|
|
9857
|
-
return { projectId, branch: null, rootPath: projectId, defaultBranch: null };
|
|
9858
|
-
}
|
|
9859
|
-
if (typeof options.cwd === "string" && options.cwd.trim().length > 0) {
|
|
9860
|
-
try {
|
|
9861
|
-
const gitCtx = await resolveGitContext(options.cwd);
|
|
9862
|
-
if (gitCtx) {
|
|
9863
|
-
return {
|
|
9864
|
-
projectId: gitCtx.projectId,
|
|
9865
|
-
branch: gitCtx.branch,
|
|
9866
|
-
rootPath: gitCtx.rootPath,
|
|
9867
|
-
defaultBranch: gitCtx.defaultBranch
|
|
9868
|
-
};
|
|
9869
|
-
}
|
|
9870
|
-
} catch {
|
|
9871
|
-
}
|
|
9872
|
-
}
|
|
9873
|
-
return null;
|
|
9874
|
-
}
|
|
9875
9909
|
/** Shared coding-scope derivation for the read/write resolvers below —
|
|
9876
9910
|
* coding context, overlay, principal, scope-profile plan for an IMPLICIT
|
|
9877
9911
|
* request, IDENTICAL to recall precedence (session-first, per-call fallback)
|
|
@@ -9880,7 +9914,7 @@ var EngramAccessService = class {
|
|
|
9880
9914
|
* scattered-config-read ratchet flat). READ-ONLY: never mutates session. */
|
|
9881
9915
|
async resolveCodingScopeInputs(request) {
|
|
9882
9916
|
const hasSession = typeof request.sessionKey === "string" && request.sessionKey.length > 0;
|
|
9883
|
-
const codingContext = hasSession && resolveNamespaceCapabilities(this.orchestrator.config).namespaces && this.orchestrator.config.codingMode?.projectScope ? this.orchestrator.getCodingContextForSession(request.sessionKey) ?? await
|
|
9917
|
+
const codingContext = hasSession && resolveNamespaceCapabilities(this.orchestrator.config).namespaces && this.orchestrator.config.codingMode?.projectScope ? this.orchestrator.getCodingContextForSession(request.sessionKey) ?? await resolveCodingContextFromOptions(request) : null;
|
|
9884
9918
|
const overlay = hasSession && resolveNamespaceCapabilities(this.orchestrator.config).namespaces && this.orchestrator.config.codingMode?.projectScope ? resolveCodingNamespaceOverlay(
|
|
9885
9919
|
codingContext,
|
|
9886
9920
|
this.orchestrator.config.codingMode,
|
|
@@ -10452,13 +10486,20 @@ var EngramAccessService = class {
|
|
|
10452
10486
|
extractionWatermark,
|
|
10453
10487
|
caps?.namespaces !== void 0 ? void 0 : this.extractionLivenessWarn
|
|
10454
10488
|
);
|
|
10489
|
+
let scopedDegradedReason = null;
|
|
10490
|
+
if (extraction.degraded) {
|
|
10491
|
+
if (extraction.degradedReason?.includes("watermark unreadable")) {
|
|
10492
|
+
scopedDegradedReason = "daemon extraction pipeline degraded; extraction watermark unreadable";
|
|
10493
|
+
} else if (extraction.degradedReason?.includes("buffer unreadable")) {
|
|
10494
|
+
scopedDegradedReason = "daemon extraction pipeline degraded; extraction buffer unreadable";
|
|
10495
|
+
} else {
|
|
10496
|
+
scopedDegradedReason = `${extraction.bufferedSessionCount} buffered session(s), ${extraction.pendingTurnCount} turn(s) pending extraction`;
|
|
10497
|
+
}
|
|
10498
|
+
}
|
|
10455
10499
|
const visibleExtraction = caps?.namespaces !== void 0 ? {
|
|
10456
10500
|
...extraction,
|
|
10457
10501
|
lastExtractionAt: null,
|
|
10458
|
-
|
|
10459
|
-
pendingTurnCount: 0,
|
|
10460
|
-
oldestBufferedTurnAgeMs: null,
|
|
10461
|
-
degradedReason: extraction.degraded ? "daemon extraction pipeline degraded" : null
|
|
10502
|
+
degradedReason: scopedDegradedReason
|
|
10462
10503
|
} : extraction;
|
|
10463
10504
|
const corpusCensus = await computeServiceCorpusCensus(this.orchestrator, {
|
|
10464
10505
|
cache: this.corpusWatermarkCache,
|
|
@@ -11079,8 +11120,7 @@ var EngramAccessService = class {
|
|
|
11079
11120
|
};
|
|
11080
11121
|
},
|
|
11081
11122
|
gitInvoker: (cwd, args) => {
|
|
11082
|
-
|
|
11083
|
-
return invoker(cwd, args);
|
|
11123
|
+
return defaultGitInvokerSync()(cwd, args);
|
|
11084
11124
|
},
|
|
11085
11125
|
throwInputError: (msg) => {
|
|
11086
11126
|
throw new EngramAccessInputError(msg);
|
|
@@ -11155,14 +11195,14 @@ var EngramAccessService = class {
|
|
|
11155
11195
|
);
|
|
11156
11196
|
}
|
|
11157
11197
|
}
|
|
11158
|
-
async correctionPlan(request) {
|
|
11198
|
+
async correctionPlan(request, opts) {
|
|
11159
11199
|
if (request.targetIds?.some((id) => isHandleToken(id))) {
|
|
11160
11200
|
const targetIds = request.targetIds.map(
|
|
11161
11201
|
(id) => this.resolveMemoryIdOrHandleInput(id, request.sessionKey)
|
|
11162
11202
|
);
|
|
11163
|
-
return this.correctionService().plan({ ...request, targetIds });
|
|
11203
|
+
return this.correctionService().plan({ ...request, targetIds }, opts);
|
|
11164
11204
|
}
|
|
11165
|
-
return this.correctionService().plan(request);
|
|
11205
|
+
return this.correctionService().plan(request, opts);
|
|
11166
11206
|
}
|
|
11167
11207
|
async correctionApply(planId, opts) {
|
|
11168
11208
|
return this.correctionService().apply(planId, opts);
|
|
@@ -11657,7 +11697,7 @@ var EngramAccessService = class {
|
|
|
11657
11697
|
const idempotencyKey = request.idempotencyKey?.trim();
|
|
11658
11698
|
let effectiveCodingContext;
|
|
11659
11699
|
if (idempotencyKey && !(typeof request.namespace === "string" && request.namespace.trim().length > 0)) {
|
|
11660
|
-
effectiveCodingContext = (
|
|
11700
|
+
effectiveCodingContext = (await this.resolveCodingScopeInputs(request)).codingContext;
|
|
11661
11701
|
}
|
|
11662
11702
|
return this.handleIdempotentWrite({
|
|
11663
11703
|
operation: "observe",
|
|
@@ -11894,6 +11934,9 @@ var EngramAccessService = class {
|
|
|
11894
11934
|
async extractionForceFlush(request) {
|
|
11895
11935
|
return delegateExtractionForceFlush(this.accessObserveWriteSurface, request);
|
|
11896
11936
|
}
|
|
11937
|
+
cancelPendingObservePreparations(sessionKey, scopeHint) {
|
|
11938
|
+
this.accessObserveWriteSurface.cancelPendingObservePreparations(sessionKey, scopeHint);
|
|
11939
|
+
}
|
|
11897
11940
|
cancelPendingObserveExtractions(sessionKey, principal, namespace, scopeHint) {
|
|
11898
11941
|
this.accessObserveWriteSurface.cancelPendingObserveExtractions(sessionKey, principal, namespace, scopeHint);
|
|
11899
11942
|
}
|
|
@@ -12249,7 +12292,7 @@ var EngramAccessService = class {
|
|
|
12249
12292
|
const resolvedNs = this.writableNamespaceFor(request.namespace, request.sessionKey, request.principal);
|
|
12250
12293
|
const storage = await this.orchestrator.getStorage(resolvedNs);
|
|
12251
12294
|
const storageDir = storage.dir;
|
|
12252
|
-
const { writeFile:
|
|
12295
|
+
const { writeFile: writeFile2, mkdir: mkdir3 } = await import("fs/promises");
|
|
12253
12296
|
const { join: join4, resolve: resolve4 } = await import("path");
|
|
12254
12297
|
const safeKey = request.sessionKey.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
12255
12298
|
if (!safeKey) throw new EngramAccessInputError("sessionKey is required");
|
|
@@ -12258,10 +12301,10 @@ var EngramAccessService = class {
|
|
|
12258
12301
|
if (!resolved.startsWith(resolve4(storageDir))) {
|
|
12259
12302
|
throw new EngramAccessInputError("Invalid sessionKey");
|
|
12260
12303
|
}
|
|
12261
|
-
await
|
|
12304
|
+
await mkdir3(checkpointDir, { recursive: true });
|
|
12262
12305
|
const ts = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-");
|
|
12263
12306
|
const filePath = join4(checkpointDir, `checkpoint-${ts}.md`);
|
|
12264
|
-
await
|
|
12307
|
+
await writeFile2(filePath, request.context, "utf-8");
|
|
12265
12308
|
return { saved: true };
|
|
12266
12309
|
}
|
|
12267
12310
|
async lcmStatus() {
|
|
@@ -12659,6 +12702,7 @@ var EngramAccessService = class {
|
|
|
12659
12702
|
const resolvedNamespace = this.resolveReadableNamespace(options.namespace, options.principal);
|
|
12660
12703
|
const storage = await offlineSyncStorageForSnapshot(this.orchestrator, resolvedNamespace);
|
|
12661
12704
|
const storageHash = createHash6("sha256").update(storage.dir).digest("hex").slice(0, 16);
|
|
12705
|
+
const deletions = [...await storage.readDeletionRevisions()].map(([path9, mtimeMs]) => ({ path: path9, mtimeMs }));
|
|
12662
12706
|
const snapshotBuilder = options.includeContent === false && options.baseFiles && options.baseFiles.length > 0 ? buildOfflineSyncSnapshotFromBase : buildOfflineSyncSnapshot;
|
|
12663
12707
|
const snapshot = await snapshotBuilder({
|
|
12664
12708
|
root: storage.dir,
|
|
@@ -12669,7 +12713,8 @@ var EngramAccessService = class {
|
|
|
12669
12713
|
readFile: async ({ filePath }) => storage.readOfflineSyncFile(filePath),
|
|
12670
12714
|
readFileDigest: async ({ filePath }) => storage.digestOfflineSyncFile(filePath),
|
|
12671
12715
|
signal: options.signal,
|
|
12672
|
-
userExcludeRegexps: this.offlineSyncUserExcludes
|
|
12716
|
+
userExcludeRegexps: this.offlineSyncUserExcludes,
|
|
12717
|
+
deletions
|
|
12673
12718
|
});
|
|
12674
12719
|
return {
|
|
12675
12720
|
namespace: resolvedNamespace,
|
|
@@ -12680,6 +12725,12 @@ var EngramAccessService = class {
|
|
|
12680
12725
|
const resolvedNamespace = this.resolveReadableNamespace(options.namespace, options.principal);
|
|
12681
12726
|
const storage = await offlineSyncStorageForSnapshot(this.orchestrator, resolvedNamespace);
|
|
12682
12727
|
const storageHash = createHash6("sha256").update(storage.dir).digest("hex").slice(0, 16);
|
|
12728
|
+
const deletions = await filterOfflineSyncDeletionRevisions({
|
|
12729
|
+
root: storage.dir,
|
|
12730
|
+
deletions: [...await storage.readDeletionRevisions()].map(([path9, mtimeMs]) => ({ path: path9, mtimeMs })),
|
|
12731
|
+
includeTranscripts: options.includeTranscripts !== false,
|
|
12732
|
+
userExcludeRegexps: this.offlineSyncUserExcludes
|
|
12733
|
+
});
|
|
12683
12734
|
return {
|
|
12684
12735
|
namespace: resolvedNamespace,
|
|
12685
12736
|
format: OFFLINE_SYNC_SNAPSHOT_FORMAT,
|
|
@@ -12687,6 +12738,7 @@ var EngramAccessService = class {
|
|
|
12687
12738
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
12688
12739
|
sourceId: `remnic:${resolvedNamespace}:${storageHash}`,
|
|
12689
12740
|
includeTranscripts: options.includeTranscripts !== false,
|
|
12741
|
+
deletions,
|
|
12690
12742
|
files: iterateOfflineSyncSnapshotFileRecords({
|
|
12691
12743
|
root: storage.dir,
|
|
12692
12744
|
includeContent: options.includeContent === true,
|
|
@@ -12698,6 +12750,16 @@ var EngramAccessService = class {
|
|
|
12698
12750
|
})
|
|
12699
12751
|
};
|
|
12700
12752
|
}
|
|
12753
|
+
async offlineSyncManifestStream(options = {}) {
|
|
12754
|
+
const namespace = this.resolveReadableNamespace(options.namespace, options.principal);
|
|
12755
|
+
return createOfflineSyncManifestStream(
|
|
12756
|
+
this.orchestrator,
|
|
12757
|
+
namespace,
|
|
12758
|
+
this.offlineSyncUserExcludes,
|
|
12759
|
+
options,
|
|
12760
|
+
parseFrontmatter
|
|
12761
|
+
);
|
|
12762
|
+
}
|
|
12701
12763
|
async offlineSyncFiles(options) {
|
|
12702
12764
|
const resolvedNamespace = this.resolveReadableNamespace(options.namespace, options.principal);
|
|
12703
12765
|
const storage = await offlineSyncStorageForSnapshot(this.orchestrator, resolvedNamespace);
|
|
@@ -12819,7 +12881,8 @@ var EngramAccessService = class {
|
|
|
12819
12881
|
readFile: async ({ filePath }) => storage.readOfflineSyncFile(filePath),
|
|
12820
12882
|
readFileDigest: async ({ filePath }) => storage.digestOfflineSyncFile(filePath),
|
|
12821
12883
|
writeFile: async ({ filePath, content }) => storage.writeOfflineSyncFile(filePath, content),
|
|
12822
|
-
deleteFile: async ({ filePath }) => storage.deleteOfflineSyncFile(filePath)
|
|
12884
|
+
deleteFile: async ({ filePath, mtimeMs }) => storage.deleteOfflineSyncFile(filePath, mtimeMs ?? null),
|
|
12885
|
+
recordDeletionRevision: async ({ filePath, mtimeMs }) => storage.recordReplicatedDeletionRevision(filePath, mtimeMs)
|
|
12823
12886
|
});
|
|
12824
12887
|
return {
|
|
12825
12888
|
namespace: resolvedNamespace,
|
|
@@ -13034,18 +13097,6 @@ async function withRecallConcurrency(host, principal, signal, fn) {
|
|
|
13034
13097
|
release();
|
|
13035
13098
|
}
|
|
13036
13099
|
}
|
|
13037
|
-
function raceAbort(p, signal) {
|
|
13038
|
-
if (!signal) return p;
|
|
13039
|
-
if (signal.aborted) return Promise.reject(abortError("operation aborted"));
|
|
13040
|
-
let onAbort;
|
|
13041
|
-
const racer = new Promise((_resolve, reject) => {
|
|
13042
|
-
onAbort = () => reject(abortError("operation aborted"));
|
|
13043
|
-
signal.addEventListener("abort", onAbort, { once: true });
|
|
13044
|
-
});
|
|
13045
|
-
return Promise.race([p, racer]).finally(() => {
|
|
13046
|
-
if (onAbort) signal.removeEventListener("abort", onAbort);
|
|
13047
|
-
});
|
|
13048
|
-
}
|
|
13049
13100
|
function attachFlightAbort(flight, signal, cancelOnAbort) {
|
|
13050
13101
|
flight.live += 1;
|
|
13051
13102
|
let settled = false;
|
|
@@ -13315,7 +13366,6 @@ function coordinateRecall(host, request, normalizedRequest, requestFingerprint,
|
|
|
13315
13366
|
|
|
13316
13367
|
export {
|
|
13317
13368
|
withRecallConcurrency,
|
|
13318
|
-
raceAbort,
|
|
13319
13369
|
consumeFlight,
|
|
13320
13370
|
createAndStartFlight,
|
|
13321
13371
|
leadRecallFlight,
|
|
@@ -13362,4 +13412,4 @@ export {
|
|
|
13362
13412
|
EngramAccessService,
|
|
13363
13413
|
AccessAdminOpsSurface
|
|
13364
13414
|
};
|
|
13365
|
-
//# sourceMappingURL=chunk-
|
|
13415
|
+
//# sourceMappingURL=chunk-QUENPGWZ.js.map
|