@remnic/core 10.0.3 → 10.0.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/access-admin-ops-surface.js +62 -62
- package/dist/access-authorization-probe.js +63 -63
- package/dist/access-boundary.js +62 -62
- package/dist/access-cli.d.ts.map +1 -1
- package/dist/access-cli.js +146 -139
- package/dist/access-cli.js.map +1 -1
- package/dist/access-extraction-force-flush.js +62 -62
- package/dist/access-http-briefing.js +63 -63
- package/dist/access-http-query.js +64 -64
- package/dist/access-http.d.ts.map +1 -1
- package/dist/access-http.js +86 -85
- package/dist/access-identity-continuity-surface.js +62 -62
- package/dist/access-lcm-surface.js +62 -62
- package/dist/access-mcp-correction-tools.d.ts +10 -0
- package/dist/access-mcp-correction-tools.d.ts.map +1 -0
- package/dist/access-mcp-correction-tools.js +8 -0
- package/dist/access-mcp.d.ts.map +1 -1
- package/dist/access-mcp.js +76 -75
- package/dist/access-namespace-preflight.js +62 -62
- package/dist/access-observe-write-category.js +5 -5
- package/dist/access-observe-write-surface.js +62 -62
- package/dist/access-offline-manifest.js +8 -8
- package/dist/access-operations-batch.js +65 -65
- package/dist/access-operations.d.ts +1 -0
- package/dist/access-operations.d.ts.map +1 -1
- package/dist/access-operations.js +72 -72
- package/dist/access-recall-concurrency.js +62 -62
- package/dist/access-recall-diagnostics.js +2 -2
- package/dist/access-recall-response.js +62 -62
- package/dist/access-recall-surface.js +62 -62
- package/dist/access-service.d.ts.map +1 -1
- package/dist/access-service.js +62 -62
- package/dist/access-surface-catalog.js +64 -64
- package/dist/active-recall.js +31 -30
- package/dist/active-recall.js.map +1 -1
- package/dist/adapters/index.js +7 -7
- package/dist/adapters/registry.js +3 -3
- package/dist/{auto-sync-PAWBFQWL.js → auto-sync-FN7E3OTO.js} +6 -6
- package/dist/briefing.js +26 -26
- package/dist/buffer.js +8 -8
- package/dist/causal-consolidation.js +26 -26
- package/dist/{chunk-YQSWNFZE.js → chunk-2CP577K6.js} +2 -2
- package/dist/{chunk-6JIHC5AS.js → chunk-37HCPM56.js} +78 -67
- package/dist/chunk-37HCPM56.js.map +1 -0
- package/dist/{chunk-345MEMRU.js → chunk-3OUGSOJP.js} +2 -2
- package/dist/{chunk-CHI37EHP.js → chunk-4CWUZBPF.js} +8 -6
- package/dist/chunk-4CWUZBPF.js.map +1 -0
- package/dist/{chunk-G2STTRYB.js → chunk-4D2YH47Z.js} +2 -2
- package/dist/{chunk-IXYIW3MZ.js → chunk-4K2H4KTR.js} +5 -5
- package/dist/{chunk-UVVSOSHL.js → chunk-52CQKST6.js} +53 -53
- package/dist/{chunk-H7BZBSP6.js → chunk-52II7PB6.js} +4 -4
- package/dist/{chunk-BLHPADUX.js → chunk-5BPXMAUP.js} +22 -78
- package/dist/chunk-5BPXMAUP.js.map +1 -0
- package/dist/{chunk-ZS7RK6H6.js → chunk-5BY3IA2U.js} +16 -53
- package/dist/chunk-5BY3IA2U.js.map +1 -0
- package/dist/{chunk-2QZFZNXO.js → chunk-5CQO6LVM.js} +2 -2
- package/dist/{chunk-NLDMTXWV.js → chunk-5LNPW7NE.js} +2 -2
- package/dist/{chunk-WHTMVTU4.js → chunk-5X4ZJESN.js} +2 -2
- package/dist/{chunk-WI37MWRZ.js → chunk-63UNVGZW.js} +5 -5
- package/dist/{chunk-G3T6YMBO.js → chunk-64S6X4IU.js} +7 -7
- package/dist/{chunk-CFCEJNOE.js → chunk-6KHF6PAB.js} +2 -2
- package/dist/{chunk-5GINB5LC.js → chunk-6MKLMEBE.js} +1 -1
- package/dist/{chunk-5GINB5LC.js.map → chunk-6MKLMEBE.js.map} +1 -1
- package/dist/{chunk-35A7GCHG.js → chunk-6T42L5FI.js} +2 -2
- package/dist/{chunk-JDOBIFBK.js → chunk-7CXL25AA.js} +2 -2
- package/dist/{chunk-YLBE6PLR.js → chunk-7IGMKQWK.js} +2 -2
- package/dist/{chunk-CSLK7BN6.js → chunk-7LYRFI5A.js} +2 -2
- package/dist/{chunk-IB63OVUB.js → chunk-AJ6ORARY.js} +6 -6
- package/dist/{chunk-CGOKNQDK.js → chunk-ANZXWOYD.js} +2 -2
- package/dist/{chunk-5QXMESS7.js → chunk-AXC7UTLM.js} +2 -2
- package/dist/{chunk-RFIJRZ4K.js → chunk-B657ZGDH.js} +2 -2
- package/dist/{chunk-AW4QUFQF.js → chunk-BTNNL7ZW.js} +3 -2
- package/dist/{chunk-AW4QUFQF.js.map → chunk-BTNNL7ZW.js.map} +1 -1
- package/dist/{chunk-MY7B3HYC.js → chunk-CLCMDKTB.js} +2 -2
- package/dist/{chunk-QPWUG2S3.js → chunk-CYEK6Z3P.js} +4 -4
- package/dist/{chunk-IHCYCE6D.js → chunk-DJMVSUPK.js} +4 -4
- package/dist/{chunk-HP4CU2ZA.js → chunk-DST7HRSG.js} +2 -2
- package/dist/{chunk-IIFFC3RL.js → chunk-EDR6CVWZ.js} +2 -2
- package/dist/{chunk-AUWMKDKL.js → chunk-EMVJU7WC.js} +2 -2
- package/dist/{chunk-O6AYMAPJ.js → chunk-ENNC3RZ6.js} +2 -2
- package/dist/{chunk-2JRB3Z5N.js → chunk-EP5WXE2G.js} +3 -3
- package/dist/{chunk-QLK3SL7Q.js → chunk-ETSJD5IV.js} +131 -12
- package/dist/chunk-ETSJD5IV.js.map +1 -0
- package/dist/chunk-EWMRFW3F.js +38 -0
- package/dist/chunk-EWMRFW3F.js.map +1 -0
- package/dist/{chunk-I2KEH2LS.js → chunk-FC6RCOIU.js} +2 -2
- package/dist/{chunk-OZVHLBH6.js → chunk-FLV7M7CT.js} +2 -2
- package/dist/{chunk-Q6GI7HEC.js → chunk-FRH2UC7Q.js} +2 -2
- package/dist/{chunk-3SL52JKD.js → chunk-FZVROZKC.js} +5 -5
- package/dist/{chunk-2EZB2DL5.js → chunk-GE6HETIF.js} +3 -3
- package/dist/{chunk-2DHJTJIY.js → chunk-GEGUBU3D.js} +2 -2
- package/dist/{chunk-6AA7XFMO.js → chunk-GF4H3B3R.js} +8 -8
- package/dist/{chunk-NGOZH7R5.js → chunk-GVUW5XK5.js} +311 -142
- package/dist/chunk-GVUW5XK5.js.map +1 -0
- package/dist/{chunk-ME2LMFHF.js → chunk-HPAOMYKM.js} +92 -92
- package/dist/{chunk-4NRZ7BRS.js → chunk-I25RINZK.js} +2 -2
- package/dist/{chunk-XG4XXI66.js → chunk-I25RQA65.js} +2 -2
- package/dist/chunk-I56MTWE7.js +80 -0
- package/dist/chunk-I56MTWE7.js.map +1 -0
- package/dist/{chunk-EJJMDLVB.js → chunk-IJ4FEGZR.js} +2 -2
- package/dist/{chunk-EUL3S3LE.js → chunk-J5WI4QRP.js} +4 -4
- package/dist/{chunk-LMMC55WM.js → chunk-JA54KIYD.js} +4 -4
- package/dist/{chunk-5FLFPTDK.js → chunk-JA72X46J.js} +2 -2
- package/dist/{chunk-6GU3TNJJ.js → chunk-JMF5Q4JY.js} +246 -49
- package/dist/chunk-JMF5Q4JY.js.map +1 -0
- package/dist/{chunk-IDSSDL4W.js → chunk-JXSYWTFK.js} +21 -4
- package/dist/{chunk-IDSSDL4W.js.map → chunk-JXSYWTFK.js.map} +1 -1
- package/dist/{chunk-NLYOOGZ7.js → chunk-KE5PWLI6.js} +3 -3
- package/dist/chunk-KIUVEMBI.js +49 -0
- package/dist/chunk-KIUVEMBI.js.map +1 -0
- package/dist/{chunk-4DDIWRT7.js → chunk-KQI2PKYP.js} +2 -2
- package/dist/{chunk-Y2ADLCB3.js → chunk-KSUOM3YU.js} +9 -9
- package/dist/{chunk-BTOHGPHC.js → chunk-KZEMFD6E.js} +3 -3
- package/dist/{chunk-NXVD46HT.js → chunk-L2VS27PZ.js} +4 -4
- package/dist/{chunk-MYYHACOW.js → chunk-L34W4W4I.js} +2 -2
- package/dist/{chunk-KRTIHXWC.js → chunk-L3PWXD73.js} +2 -2
- package/dist/{chunk-NQHSXHJP.js → chunk-L6GNS5GB.js} +2 -2
- package/dist/{chunk-44PBRUXB.js → chunk-M47Q6566.js} +2 -2
- package/dist/{chunk-E7FN5N5E.js → chunk-MQNOIH2C.js} +7 -7
- package/dist/{chunk-IDSZNHIP.js → chunk-MULNBSPP.js} +4 -4
- package/dist/{chunk-RKSGUMVL.js → chunk-NBQIFCJE.js} +2 -2
- package/dist/{chunk-I6WFBNA4.js → chunk-NHSVW7UT.js} +15 -15
- package/dist/{chunk-32HO62I4.js → chunk-OFEHITAZ.js} +2 -2
- package/dist/{chunk-PCO3P7WJ.js → chunk-OGVJXIHX.js} +2 -2
- package/dist/{chunk-RYN4AIRM.js → chunk-OZABSIOV.js} +4 -4
- package/dist/{chunk-HO7IQP7G.js → chunk-QMFKW4OU.js} +3 -3
- package/dist/{chunk-34G4U6HS.js → chunk-QRZMJ2WN.js} +2 -2
- package/dist/{chunk-RKDSELA3.js → chunk-QWWMS4AE.js} +1 -1
- package/dist/chunk-QWWMS4AE.js.map +1 -0
- package/dist/{chunk-GUD6FYQG.js → chunk-RSMIRLKM.js} +2 -2
- package/dist/{chunk-TNVZCLJU.js → chunk-S5TGRZWY.js} +2 -2
- package/dist/{chunk-O24EWFPQ.js → chunk-SNXBXYUE.js} +3 -3
- package/dist/{chunk-KW77LGDX.js → chunk-SUAX5JWY.js} +2 -2
- package/dist/{chunk-PNFWIB4X.js → chunk-SWRN6U7Q.js} +2 -2
- package/dist/{chunk-X6X4UASX.js → chunk-SZXPKUMN.js} +232 -83
- package/dist/chunk-SZXPKUMN.js.map +1 -0
- package/dist/{chunk-R4NGLTUS.js → chunk-TDMNADPI.js} +2 -2
- package/dist/{chunk-QCP75JGO.js → chunk-TFA6HPOA.js} +5 -5
- package/dist/{chunk-LI76ESJL.js → chunk-TZQOCQXB.js} +2 -2
- package/dist/{chunk-OV7EYM6M.js → chunk-U6OXJQEH.js} +12 -12
- package/dist/{chunk-OWHPA4JS.js → chunk-V32NHP2R.js} +2 -2
- package/dist/{chunk-JSUA4YFE.js → chunk-WG4TMZJ2.js} +2 -2
- package/dist/{chunk-DQTCGVFK.js → chunk-WHCD4Z3D.js} +2 -2
- package/dist/{chunk-GBA4N2SG.js → chunk-WRICYGYG.js} +27 -26
- package/dist/chunk-WRICYGYG.js.map +1 -0
- package/dist/{chunk-KATEWTQJ.js → chunk-X7J56GPG.js} +2 -2
- package/dist/{chunk-7KICGR5W.js → chunk-XPRAOTJY.js} +2 -2
- package/dist/{chunk-2NV7MMMM.js → chunk-XQSJXNWC.js} +2 -2
- package/dist/{chunk-22DYJLFN.js → chunk-XVC7JU2N.js} +39 -18
- package/dist/chunk-XVC7JU2N.js.map +1 -0
- package/dist/{chunk-RXT6UB25.js → chunk-YJAOYEWI.js} +2 -2
- package/dist/{chunk-L6DJJEFW.js → chunk-YJEUHGZZ.js} +2 -2
- package/dist/{chunk-AXFWMRKI.js → chunk-YQJCWR4R.js} +2 -2
- package/dist/cli.js +110 -108
- package/dist/coding/export-okf-codegraph.js +25 -25
- package/dist/compounding/engine.js +25 -25
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +31 -30
- package/dist/connectors/codex-materialize-runner.js +25 -25
- package/dist/connectors/index.js +25 -25
- package/dist/consolidation-provenance-check.js +2 -2
- package/dist/contradiction/index.js +7 -7
- package/dist/convergence-refresh.js +27 -27
- package/dist/conversation-index/backend.js +2 -2
- package/dist/corpus-read-cancellation.d.ts +7 -0
- package/dist/corpus-read-cancellation.d.ts.map +1 -1
- package/dist/corpus-read-cancellation.js +1 -1
- package/dist/corpus-watermark.js +27 -27
- package/dist/correction/correction-access-wiring.d.ts +6 -6
- package/dist/correction/correction-access-wiring.d.ts.map +1 -1
- package/dist/correction/correction-classify.d.ts +25 -0
- package/dist/correction/correction-classify.d.ts.map +1 -0
- package/dist/correction/correction-config.d.ts +11 -0
- package/dist/correction/correction-config.d.ts.map +1 -0
- package/dist/correction/correction-contract.d.ts +13 -1
- package/dist/correction/correction-contract.d.ts.map +1 -1
- package/dist/correction/correction-executor.d.ts +2 -0
- package/dist/correction/correction-executor.d.ts.map +1 -1
- package/dist/correction/correction-planner.d.ts +24 -3
- package/dist/correction/correction-planner.d.ts.map +1 -1
- package/dist/directory-sidecars.js +2 -2
- package/dist/entity-retrieval.js +25 -25
- package/dist/event-order-recall.js +2 -2
- package/dist/explicit-capture.js +2 -2
- package/dist/external-wiki-access.js +63 -63
- package/dist/extraction-span-materialize.js +2 -2
- package/dist/extraction.js +34 -34
- package/dist/harmonic-retrieval.js +25 -25
- package/dist/index.js +221 -218
- package/dist/lcm/index.js +3 -3
- package/dist/local-llm.d.ts.map +1 -1
- package/dist/local-llm.js +1 -1
- package/dist/location/index.js +28 -28
- package/dist/maintenance/archive-observations.js +2 -2
- package/dist/maintenance/atomic-file.d.ts +1 -1
- package/dist/maintenance/atomic-file.d.ts.map +1 -1
- package/dist/maintenance/atomic-file.js +1 -1
- package/dist/maintenance/memory-governance.js +25 -25
- package/dist/maintenance/migrate-observations.js +3 -3
- package/dist/maintenance/observation-ledger-utils.js +2 -2
- package/dist/maintenance/projection-rebuild-abort.d.ts +17 -0
- package/dist/maintenance/projection-rebuild-abort.d.ts.map +1 -0
- package/dist/maintenance/projection-timeline.d.ts +19 -0
- package/dist/maintenance/projection-timeline.d.ts.map +1 -0
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +25 -25
- package/dist/maintenance/rebuild-memory-projection-runner.d.ts +8 -0
- package/dist/maintenance/rebuild-memory-projection-runner.d.ts.map +1 -0
- package/dist/maintenance/rebuild-memory-projection-runner.js +113 -0
- package/dist/maintenance/rebuild-memory-projection-runner.js.map +1 -0
- package/dist/maintenance/rebuild-memory-projection.d.ts +8 -0
- package/dist/maintenance/rebuild-memory-projection.d.ts.map +1 -1
- package/dist/maintenance/rebuild-memory-projection.js +26 -26
- package/dist/maintenance/rebuild-observations.js +3 -3
- package/dist/memory-browse-operations.js +63 -63
- package/dist/memory-browse.js +7 -7
- package/dist/memory-subject.js +1 -1
- package/dist/namespaces/migrate.js +26 -26
- package/dist/namespaces/search.js +10 -10
- package/dist/namespaces/storage.js +25 -25
- package/dist/offline-sync-impression-drain.js +3 -3
- package/dist/operator-doctor-corpus.js +28 -28
- package/dist/operator-toolkit.js +41 -40
- package/dist/orchestration/full-corpus-heap-guard.d.ts +25 -0
- package/dist/orchestration/full-corpus-heap-guard.d.ts.map +1 -0
- package/dist/orchestration/maintenance.d.ts.map +1 -1
- package/dist/orchestration/maintenance.js +38 -36
- package/dist/orchestration/projection-rebuild-schedule.d.ts +40 -0
- package/dist/orchestration/projection-rebuild-schedule.d.ts.map +1 -1
- package/dist/orchestration/session-context.d.ts.map +1 -1
- package/dist/orchestrator.js +142 -139
- package/dist/projection-rebuild-config.d.ts +52 -0
- package/dist/projection-rebuild-config.d.ts.map +1 -0
- package/dist/projection-rebuild-config.js +14 -0
- package/dist/projection-rebuild-config.js.map +1 -0
- package/dist/qmd.js +4 -4
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-navigate-access.js +2 -2
- package/dist/recall-navigate-disclosure.js +2 -2
- package/dist/recall-navigate.js +2 -2
- package/dist/recall-navigation-operations.js +63 -63
- package/dist/recall-navigation.js +62 -62
- package/dist/recall-state-view-admission.js +7 -7
- package/dist/recall-state.js +2 -2
- package/dist/recall-why-service.js +8 -8
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.js +2 -2
- package/dist/reconcile/manifest.js +3 -3
- package/dist/relevance.js +2 -2
- package/dist/{resolution-RSG4HZTL.js → resolution-TV3F7ZTH.js} +7 -7
- package/dist/resolution-TV3F7ZTH.js.map +1 -0
- package/dist/resume-bundles.js +32 -31
- package/dist/salvage-envelope.js +1 -1
- package/dist/search/factory.js +9 -9
- package/dist/search/index.js +17 -17
- package/dist/semantic-consolidation.js +31 -31
- package/dist/semantic-rule-promotion.js +25 -25
- package/dist/semantic-rule-verifier.js +25 -25
- package/dist/source-agent-qualifier.js +29 -29
- package/dist/standup/build.js +25 -25
- package/dist/storage/memory-lifecycle-ledger-access.d.ts +5 -3
- package/dist/storage/memory-lifecycle-ledger-access.d.ts.map +1 -1
- package/dist/storage/memory-read-store.d.ts +2 -2
- package/dist/storage/memory-read-store.d.ts.map +1 -1
- package/dist/storage.d.ts +4 -2
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +24 -24
- package/dist/subject-config.js +1 -1
- package/dist/summarizer.js +3 -3
- package/dist/support-passport/index.js +78 -78
- package/dist/transfer/export-okf.js +26 -26
- package/dist/types.d.ts +8 -40
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/verified-recall.js +25 -25
- package/dist/who-knows-cli.js +26 -26
- package/dist/who-knows.js +25 -25
- package/dist/write-envelope.js +1 -1
- package/package.json +2 -2
- package/src/access-cli.ts +4 -0
- package/src/access-http.ts +1 -0
- package/src/access-mcp-correction-tools.ts +56 -0
- package/src/access-mcp.ts +4 -49
- package/src/access-operations.ts +3 -0
- package/src/access-service.ts +12 -21
- package/src/config.test.ts +35 -0
- package/src/config.ts +6 -65
- package/src/corpus-read-cancellation.ts +7 -0
- package/src/correction/correction-access-wiring.ts +56 -16
- package/src/correction/correction-classify.test.ts +185 -0
- package/src/correction/correction-classify.ts +157 -0
- package/src/correction/correction-config.ts +93 -0
- package/src/correction/correction-contract.ts +61 -14
- package/src/correction/correction-executor.test.ts +102 -2
- package/src/correction/correction-executor.ts +19 -1
- package/src/correction/correction-planner.test.ts +141 -0
- package/src/correction/correction-planner.ts +117 -11
- package/src/correction/correction-surfaces.test.ts +22 -1
- package/src/local-llm-qos.test.ts +36 -0
- package/src/local-llm.ts +20 -3
- package/src/maintenance/atomic-file.ts +2 -0
- package/src/maintenance/projection-rebuild-abort.ts +40 -0
- package/src/maintenance/projection-timeline.ts +209 -0
- package/src/maintenance/rebuild-memory-projection-runner.ts +94 -0
- package/src/maintenance/rebuild-memory-projection.memory.test.ts +159 -0
- package/src/maintenance/rebuild-memory-projection.retain-raw.test.ts +202 -0
- package/src/maintenance/rebuild-memory-projection.ts +63 -91
- package/src/orchestration/full-corpus-heap-guard.ts +38 -0
- package/src/orchestration/maintenance.test.ts +2 -2
- package/src/orchestration/maintenance.ts +2 -0
- package/src/orchestration/projection-rebuild-schedule.test.ts +498 -0
- package/src/orchestration/projection-rebuild-schedule.ts +280 -9
- package/src/orchestration/session-context.ts +0 -15
- package/src/projection-rebuild-config.ts +82 -0
- package/src/recall-handles-wiring.test.ts +24 -0
- package/src/storage/memory-lifecycle-ledger-access.ts +61 -33
- package/src/storage/memory-read-store.ts +10 -4
- package/src/storage.ts +45 -33
- package/src/types.ts +8 -41
- package/dist/chunk-22DYJLFN.js.map +0 -1
- package/dist/chunk-6GU3TNJJ.js.map +0 -1
- package/dist/chunk-6JIHC5AS.js.map +0 -1
- package/dist/chunk-BLHPADUX.js.map +0 -1
- package/dist/chunk-CHI37EHP.js.map +0 -1
- package/dist/chunk-GBA4N2SG.js.map +0 -1
- package/dist/chunk-NGOZH7R5.js.map +0 -1
- package/dist/chunk-QLK3SL7Q.js.map +0 -1
- package/dist/chunk-RKDSELA3.js.map +0 -1
- package/dist/chunk-X6X4UASX.js.map +0 -1
- package/dist/chunk-ZS7RK6H6.js.map +0 -1
- /package/dist/{resolution-RSG4HZTL.js.map → access-mcp-correction-tools.js.map} +0 -0
- /package/dist/{auto-sync-PAWBFQWL.js.map → auto-sync-FN7E3OTO.js.map} +0 -0
- /package/dist/{chunk-YQSWNFZE.js.map → chunk-2CP577K6.js.map} +0 -0
- /package/dist/{chunk-345MEMRU.js.map → chunk-3OUGSOJP.js.map} +0 -0
- /package/dist/{chunk-G2STTRYB.js.map → chunk-4D2YH47Z.js.map} +0 -0
- /package/dist/{chunk-IXYIW3MZ.js.map → chunk-4K2H4KTR.js.map} +0 -0
- /package/dist/{chunk-UVVSOSHL.js.map → chunk-52CQKST6.js.map} +0 -0
- /package/dist/{chunk-H7BZBSP6.js.map → chunk-52II7PB6.js.map} +0 -0
- /package/dist/{chunk-2QZFZNXO.js.map → chunk-5CQO6LVM.js.map} +0 -0
- /package/dist/{chunk-NLDMTXWV.js.map → chunk-5LNPW7NE.js.map} +0 -0
- /package/dist/{chunk-WHTMVTU4.js.map → chunk-5X4ZJESN.js.map} +0 -0
- /package/dist/{chunk-WI37MWRZ.js.map → chunk-63UNVGZW.js.map} +0 -0
- /package/dist/{chunk-G3T6YMBO.js.map → chunk-64S6X4IU.js.map} +0 -0
- /package/dist/{chunk-CFCEJNOE.js.map → chunk-6KHF6PAB.js.map} +0 -0
- /package/dist/{chunk-35A7GCHG.js.map → chunk-6T42L5FI.js.map} +0 -0
- /package/dist/{chunk-JDOBIFBK.js.map → chunk-7CXL25AA.js.map} +0 -0
- /package/dist/{chunk-YLBE6PLR.js.map → chunk-7IGMKQWK.js.map} +0 -0
- /package/dist/{chunk-CSLK7BN6.js.map → chunk-7LYRFI5A.js.map} +0 -0
- /package/dist/{chunk-IB63OVUB.js.map → chunk-AJ6ORARY.js.map} +0 -0
- /package/dist/{chunk-CGOKNQDK.js.map → chunk-ANZXWOYD.js.map} +0 -0
- /package/dist/{chunk-5QXMESS7.js.map → chunk-AXC7UTLM.js.map} +0 -0
- /package/dist/{chunk-RFIJRZ4K.js.map → chunk-B657ZGDH.js.map} +0 -0
- /package/dist/{chunk-MY7B3HYC.js.map → chunk-CLCMDKTB.js.map} +0 -0
- /package/dist/{chunk-QPWUG2S3.js.map → chunk-CYEK6Z3P.js.map} +0 -0
- /package/dist/{chunk-IHCYCE6D.js.map → chunk-DJMVSUPK.js.map} +0 -0
- /package/dist/{chunk-HP4CU2ZA.js.map → chunk-DST7HRSG.js.map} +0 -0
- /package/dist/{chunk-IIFFC3RL.js.map → chunk-EDR6CVWZ.js.map} +0 -0
- /package/dist/{chunk-AUWMKDKL.js.map → chunk-EMVJU7WC.js.map} +0 -0
- /package/dist/{chunk-O6AYMAPJ.js.map → chunk-ENNC3RZ6.js.map} +0 -0
- /package/dist/{chunk-2JRB3Z5N.js.map → chunk-EP5WXE2G.js.map} +0 -0
- /package/dist/{chunk-I2KEH2LS.js.map → chunk-FC6RCOIU.js.map} +0 -0
- /package/dist/{chunk-OZVHLBH6.js.map → chunk-FLV7M7CT.js.map} +0 -0
- /package/dist/{chunk-Q6GI7HEC.js.map → chunk-FRH2UC7Q.js.map} +0 -0
- /package/dist/{chunk-3SL52JKD.js.map → chunk-FZVROZKC.js.map} +0 -0
- /package/dist/{chunk-2EZB2DL5.js.map → chunk-GE6HETIF.js.map} +0 -0
- /package/dist/{chunk-2DHJTJIY.js.map → chunk-GEGUBU3D.js.map} +0 -0
- /package/dist/{chunk-6AA7XFMO.js.map → chunk-GF4H3B3R.js.map} +0 -0
- /package/dist/{chunk-ME2LMFHF.js.map → chunk-HPAOMYKM.js.map} +0 -0
- /package/dist/{chunk-4NRZ7BRS.js.map → chunk-I25RINZK.js.map} +0 -0
- /package/dist/{chunk-XG4XXI66.js.map → chunk-I25RQA65.js.map} +0 -0
- /package/dist/{chunk-EJJMDLVB.js.map → chunk-IJ4FEGZR.js.map} +0 -0
- /package/dist/{chunk-EUL3S3LE.js.map → chunk-J5WI4QRP.js.map} +0 -0
- /package/dist/{chunk-LMMC55WM.js.map → chunk-JA54KIYD.js.map} +0 -0
- /package/dist/{chunk-5FLFPTDK.js.map → chunk-JA72X46J.js.map} +0 -0
- /package/dist/{chunk-NLYOOGZ7.js.map → chunk-KE5PWLI6.js.map} +0 -0
- /package/dist/{chunk-4DDIWRT7.js.map → chunk-KQI2PKYP.js.map} +0 -0
- /package/dist/{chunk-Y2ADLCB3.js.map → chunk-KSUOM3YU.js.map} +0 -0
- /package/dist/{chunk-BTOHGPHC.js.map → chunk-KZEMFD6E.js.map} +0 -0
- /package/dist/{chunk-NXVD46HT.js.map → chunk-L2VS27PZ.js.map} +0 -0
- /package/dist/{chunk-MYYHACOW.js.map → chunk-L34W4W4I.js.map} +0 -0
- /package/dist/{chunk-KRTIHXWC.js.map → chunk-L3PWXD73.js.map} +0 -0
- /package/dist/{chunk-NQHSXHJP.js.map → chunk-L6GNS5GB.js.map} +0 -0
- /package/dist/{chunk-44PBRUXB.js.map → chunk-M47Q6566.js.map} +0 -0
- /package/dist/{chunk-E7FN5N5E.js.map → chunk-MQNOIH2C.js.map} +0 -0
- /package/dist/{chunk-IDSZNHIP.js.map → chunk-MULNBSPP.js.map} +0 -0
- /package/dist/{chunk-RKSGUMVL.js.map → chunk-NBQIFCJE.js.map} +0 -0
- /package/dist/{chunk-I6WFBNA4.js.map → chunk-NHSVW7UT.js.map} +0 -0
- /package/dist/{chunk-32HO62I4.js.map → chunk-OFEHITAZ.js.map} +0 -0
- /package/dist/{chunk-PCO3P7WJ.js.map → chunk-OGVJXIHX.js.map} +0 -0
- /package/dist/{chunk-RYN4AIRM.js.map → chunk-OZABSIOV.js.map} +0 -0
- /package/dist/{chunk-HO7IQP7G.js.map → chunk-QMFKW4OU.js.map} +0 -0
- /package/dist/{chunk-34G4U6HS.js.map → chunk-QRZMJ2WN.js.map} +0 -0
- /package/dist/{chunk-GUD6FYQG.js.map → chunk-RSMIRLKM.js.map} +0 -0
- /package/dist/{chunk-TNVZCLJU.js.map → chunk-S5TGRZWY.js.map} +0 -0
- /package/dist/{chunk-O24EWFPQ.js.map → chunk-SNXBXYUE.js.map} +0 -0
- /package/dist/{chunk-KW77LGDX.js.map → chunk-SUAX5JWY.js.map} +0 -0
- /package/dist/{chunk-PNFWIB4X.js.map → chunk-SWRN6U7Q.js.map} +0 -0
- /package/dist/{chunk-R4NGLTUS.js.map → chunk-TDMNADPI.js.map} +0 -0
- /package/dist/{chunk-QCP75JGO.js.map → chunk-TFA6HPOA.js.map} +0 -0
- /package/dist/{chunk-LI76ESJL.js.map → chunk-TZQOCQXB.js.map} +0 -0
- /package/dist/{chunk-OV7EYM6M.js.map → chunk-U6OXJQEH.js.map} +0 -0
- /package/dist/{chunk-OWHPA4JS.js.map → chunk-V32NHP2R.js.map} +0 -0
- /package/dist/{chunk-JSUA4YFE.js.map → chunk-WG4TMZJ2.js.map} +0 -0
- /package/dist/{chunk-DQTCGVFK.js.map → chunk-WHCD4Z3D.js.map} +0 -0
- /package/dist/{chunk-KATEWTQJ.js.map → chunk-X7J56GPG.js.map} +0 -0
- /package/dist/{chunk-7KICGR5W.js.map → chunk-XPRAOTJY.js.map} +0 -0
- /package/dist/{chunk-2NV7MMMM.js.map → chunk-XQSJXNWC.js.map} +0 -0
- /package/dist/{chunk-RXT6UB25.js.map → chunk-YJAOYEWI.js.map} +0 -0
- /package/dist/{chunk-L6DJJEFW.js.map → chunk-YJEUHGZZ.js.map} +0 -0
- /package/dist/{chunk-AXFWMRKI.js.map → chunk-YQJCWR4R.js.map} +0 -0
|
@@ -12,9 +12,6 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
isSharedContextWriteInputError
|
|
14
14
|
} from "./chunk-IFBSZGW3.js";
|
|
15
|
-
import {
|
|
16
|
-
UNATTRIBUTED_ACCESS_WRITE_ORIGIN
|
|
17
|
-
} from "./chunk-OGXXGHW6.js";
|
|
18
15
|
import {
|
|
19
16
|
ACTIVE_DECISION_STATUSES,
|
|
20
17
|
CodegraphRuntimeError,
|
|
@@ -34,14 +31,17 @@ import {
|
|
|
34
31
|
serializeDecisionRecord
|
|
35
32
|
} from "./chunk-EQUD7FP4.js";
|
|
36
33
|
import {
|
|
37
|
-
|
|
38
|
-
} from "./chunk-
|
|
34
|
+
UNATTRIBUTED_ACCESS_WRITE_ORIGIN
|
|
35
|
+
} from "./chunk-OGXXGHW6.js";
|
|
39
36
|
import {
|
|
40
37
|
WHO_KNOWS_DEFAULT_LIMIT,
|
|
41
38
|
computeWhoKnows,
|
|
42
39
|
loadWhoKnowsEntities,
|
|
43
40
|
validateWhoKnowsInput
|
|
44
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-XQSJXNWC.js";
|
|
42
|
+
import {
|
|
43
|
+
WriteQuarantineStore
|
|
44
|
+
} from "./chunk-BANSBRNX.js";
|
|
45
45
|
import {
|
|
46
46
|
trustResultFor
|
|
47
47
|
} from "./chunk-GNVZQ5JN.js";
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
} from "./chunk-ROBHL3GL.js";
|
|
60
60
|
import {
|
|
61
61
|
summarizeHourlyStatus
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-L6GNS5GB.js";
|
|
63
63
|
import {
|
|
64
64
|
planSessionTranscriptMigration
|
|
65
65
|
} from "./chunk-WWDO7ZWM.js";
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
} from "./chunk-JYG2334B.js";
|
|
69
69
|
import {
|
|
70
70
|
runRecallWhy
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-TDMNADPI.js";
|
|
72
72
|
import {
|
|
73
73
|
renderNavigationResult
|
|
74
74
|
} from "./chunk-KIW3OOZE.js";
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
} from "./chunk-VYDGHJIN.js";
|
|
85
85
|
import {
|
|
86
86
|
planDisclosureStep
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-6T42L5FI.js";
|
|
88
88
|
import {
|
|
89
89
|
parseNavigateLinkType
|
|
90
90
|
} from "./chunk-7O5EW7KX.js";
|
|
@@ -93,41 +93,41 @@ import {
|
|
|
93
93
|
} from "./chunk-H7XKCNR6.js";
|
|
94
94
|
import {
|
|
95
95
|
toRecallExplainJson
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-OFEHITAZ.js";
|
|
97
97
|
import {
|
|
98
98
|
estimateRecallTokens,
|
|
99
99
|
summarizeDisclosureTokens
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-CYEK6Z3P.js";
|
|
101
|
+
import {
|
|
102
|
+
buildEmbeddingAwareSnapshotStream
|
|
103
|
+
} from "./chunk-BNMI3JBV.js";
|
|
101
104
|
import {
|
|
102
105
|
readAggregateExtractionWatermark
|
|
103
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-7LYRFI5A.js";
|
|
104
107
|
import {
|
|
105
108
|
ReplicaDivergenceMonitor
|
|
106
109
|
} from "./chunk-E6UNM67F.js";
|
|
107
110
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
111
|
+
recordMemoryOutcome
|
|
112
|
+
} from "./chunk-UD7UNYRD.js";
|
|
110
113
|
import {
|
|
111
114
|
recordObjectiveStateSnapshotsFromObservedMessages
|
|
112
115
|
} from "./chunk-6WHJ2EAB.js";
|
|
113
116
|
import {
|
|
114
117
|
objectiveStateStoreOverrideForNamespace
|
|
115
118
|
} from "./chunk-HM7RHKS4.js";
|
|
116
|
-
import {
|
|
117
|
-
recordMemoryOutcome
|
|
118
|
-
} from "./chunk-UD7UNYRD.js";
|
|
119
119
|
import {
|
|
120
120
|
runMemoryBrowse
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-IJ4FEGZR.js";
|
|
122
122
|
import {
|
|
123
123
|
isSearchExcludedPath
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-GE6HETIF.js";
|
|
125
125
|
import {
|
|
126
126
|
coerceIncludedMemories
|
|
127
127
|
} from "./chunk-2YA5N2BY.js";
|
|
128
128
|
import {
|
|
129
129
|
readProjectedHarmonicGraph
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-YJAOYEWI.js";
|
|
131
131
|
import {
|
|
132
132
|
buildGraphSnapshot
|
|
133
133
|
} from "./chunk-CHDGJJV6.js";
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
} from "./chunk-BLVHDY2U.js";
|
|
146
146
|
import {
|
|
147
147
|
LocalLlmClient
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-JXSYWTFK.js";
|
|
149
149
|
import {
|
|
150
150
|
REDACTION_RULES_SUBDIR
|
|
151
151
|
} from "./chunk-LTHVM4XN.js";
|
|
@@ -163,6 +163,9 @@ import {
|
|
|
163
163
|
composeRecallContext,
|
|
164
164
|
renderAuthorityBoundContent
|
|
165
165
|
} from "./chunk-NVKO5YKP.js";
|
|
166
|
+
import {
|
|
167
|
+
callDeepRecallPolicyLlm
|
|
168
|
+
} from "./chunk-JNLEJE4A.js";
|
|
166
169
|
import {
|
|
167
170
|
renderDeepRecallResult
|
|
168
171
|
} from "./chunk-RF2SMMPP.js";
|
|
@@ -176,9 +179,6 @@ import {
|
|
|
176
179
|
CrossNamespaceBudget,
|
|
177
180
|
toBudgetWarning
|
|
178
181
|
} from "./chunk-UFGFMWAD.js";
|
|
179
|
-
import {
|
|
180
|
-
callDeepRecallPolicyLlm
|
|
181
|
-
} from "./chunk-JNLEJE4A.js";
|
|
182
182
|
import {
|
|
183
183
|
buildProposedActions,
|
|
184
184
|
buildQualityScore,
|
|
@@ -186,11 +186,11 @@ import {
|
|
|
186
186
|
listMemoryGovernanceRuns,
|
|
187
187
|
readMemoryGovernanceRunArtifact,
|
|
188
188
|
runMemoryGovernance
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-4K2H4KTR.js";
|
|
190
190
|
import {
|
|
191
191
|
CorpusWatermarkCache,
|
|
192
192
|
computeServiceCorpusCensus
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-ANZXWOYD.js";
|
|
194
194
|
import {
|
|
195
195
|
defaultCapsulesDir
|
|
196
196
|
} from "./chunk-ZY2MNJR6.js";
|
|
@@ -200,19 +200,31 @@ import {
|
|
|
200
200
|
enqueuePassiveCorrectionNotification,
|
|
201
201
|
parseBriefingFocus,
|
|
202
202
|
parseBriefingWindow
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-GF4H3B3R.js";
|
|
204
204
|
import {
|
|
205
205
|
ExtractionDeadlineError
|
|
206
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-KE5PWLI6.js";
|
|
207
|
+
import {
|
|
208
|
+
meetingsBuild,
|
|
209
|
+
meetingsGet,
|
|
210
|
+
meetingsList,
|
|
211
|
+
wearablesStatus,
|
|
212
|
+
wearablesSync,
|
|
213
|
+
wearablesTranscriptDay,
|
|
214
|
+
wearablesTranscriptMemories,
|
|
215
|
+
wearablesTranscriptSearch
|
|
216
|
+
} from "./chunk-SYOIVK7K.js";
|
|
207
217
|
import {
|
|
208
218
|
CORRECTION_TEXT_MAX,
|
|
209
219
|
CorrectionContractError,
|
|
220
|
+
DEFAULT_CORRECTION_CLASSIFY_TIMEOUT_MS,
|
|
221
|
+
MAX_CORRECTION_CLASSIFY_TIMEOUT_MS,
|
|
210
222
|
deterministicFallbackPlan,
|
|
211
223
|
newPlanId,
|
|
212
224
|
validateCorrectionAction,
|
|
213
225
|
validateCorrectionRequest,
|
|
214
226
|
validateRedactionPattern
|
|
215
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-ETSJD5IV.js";
|
|
216
228
|
import {
|
|
217
229
|
isCodingKnowledgeFeatureEnabled
|
|
218
230
|
} from "./chunk-FEHIOYML.js";
|
|
@@ -244,10 +256,10 @@ import {
|
|
|
244
256
|
qmdCollectionPathParts,
|
|
245
257
|
qmdResultPathCandidates,
|
|
246
258
|
selfDeps
|
|
247
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-37HCPM56.js";
|
|
248
260
|
import {
|
|
249
261
|
namespaceCollectionName
|
|
250
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-RSMIRLKM.js";
|
|
251
263
|
import {
|
|
252
264
|
normalizeProjectionPreview,
|
|
253
265
|
normalizeProjectionTags
|
|
@@ -270,28 +282,33 @@ import {
|
|
|
270
282
|
supersessionKeysForFact
|
|
271
283
|
} from "./chunk-5WITETWU.js";
|
|
272
284
|
import {
|
|
273
|
-
FallbackLlmClient
|
|
285
|
+
FallbackLlmClient,
|
|
286
|
+
gatewayTaskChainOptions
|
|
274
287
|
} from "./chunk-TKC5LZ43.js";
|
|
288
|
+
import {
|
|
289
|
+
fallbackLlmRuntimeContextFromConfig
|
|
290
|
+
} from "./chunk-EP6BA7VV.js";
|
|
291
|
+
import {
|
|
292
|
+
DEFAULT_RECALL_DISCLOSURE,
|
|
293
|
+
isRecallDisclosure
|
|
294
|
+
} from "./chunk-QWWMS4AE.js";
|
|
295
|
+
import {
|
|
296
|
+
extractJsonCandidates
|
|
297
|
+
} from "./chunk-YBA52OKG.js";
|
|
275
298
|
import {
|
|
276
299
|
delegateExtractionForceFlush
|
|
277
300
|
} from "./chunk-RMMA44HE.js";
|
|
278
301
|
import {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
wearablesStatus,
|
|
283
|
-
wearablesSync,
|
|
284
|
-
wearablesTranscriptDay,
|
|
285
|
-
wearablesTranscriptMemories,
|
|
286
|
-
wearablesTranscriptSearch
|
|
287
|
-
} from "./chunk-SYOIVK7K.js";
|
|
302
|
+
ObserveTranscriptPersister,
|
|
303
|
+
observeTranscriptSessionKey
|
|
304
|
+
} from "./chunk-T2JSUEH6.js";
|
|
288
305
|
import {
|
|
289
306
|
splitCanonicalWriteRequest
|
|
290
307
|
} from "./chunk-HRZZJ4XB.js";
|
|
291
308
|
import {
|
|
292
309
|
applyBriefingLocationContext,
|
|
293
310
|
daySummaryAutoOptions
|
|
294
|
-
} from "./chunk-
|
|
311
|
+
} from "./chunk-CLCMDKTB.js";
|
|
295
312
|
import {
|
|
296
313
|
STRUCTURED_ATTRIBUTE_LIMITS,
|
|
297
314
|
buildAccessWriteRequestFingerprint,
|
|
@@ -318,10 +335,10 @@ import {
|
|
|
318
335
|
} from "./chunk-Z2YFLXHU.js";
|
|
319
336
|
import {
|
|
320
337
|
createOfflineSyncManifestStream
|
|
321
|
-
} from "./chunk-
|
|
338
|
+
} from "./chunk-63UNVGZW.js";
|
|
322
339
|
import {
|
|
323
340
|
offlineSyncStorageForSnapshot
|
|
324
|
-
} from "./chunk-
|
|
341
|
+
} from "./chunk-EP5WXE2G.js";
|
|
325
342
|
import {
|
|
326
343
|
resolveScopePlan,
|
|
327
344
|
resolveScopedWritableNamespaceValue,
|
|
@@ -342,49 +359,6 @@ import {
|
|
|
342
359
|
import {
|
|
343
360
|
displayErrorDetail
|
|
344
361
|
} from "./chunk-RL6NEVXT.js";
|
|
345
|
-
import {
|
|
346
|
-
assertOperationAuthorizationAllowed,
|
|
347
|
-
capabilityAllowsOp,
|
|
348
|
-
enforceNamespaceAllowList,
|
|
349
|
-
isNamespaceAllowed,
|
|
350
|
-
tokenCapabilityStore
|
|
351
|
-
} from "./chunk-IG747LRN.js";
|
|
352
|
-
import {
|
|
353
|
-
writeFileAtomically
|
|
354
|
-
} from "./chunk-AW4QUFQF.js";
|
|
355
|
-
import {
|
|
356
|
-
computeContentHash
|
|
357
|
-
} from "./chunk-5FVVY2EB.js";
|
|
358
|
-
import {
|
|
359
|
-
applyOfflineSyncChangeset,
|
|
360
|
-
applyOfflineSyncFileContentChunk,
|
|
361
|
-
buildOfflineSyncSnapshot,
|
|
362
|
-
buildOfflineSyncSnapshotForPaths,
|
|
363
|
-
buildOfflineSyncSnapshotFromBase,
|
|
364
|
-
normalizeOfflineSyncChangeset,
|
|
365
|
-
readOfflineSyncFileContentChunk
|
|
366
|
-
} from "./chunk-TGF43K66.js";
|
|
367
|
-
import {
|
|
368
|
-
compileOfflineSyncExcludeGlobs
|
|
369
|
-
} from "./chunk-63LFM77Z.js";
|
|
370
|
-
import {
|
|
371
|
-
validateArchiveRelativePath
|
|
372
|
-
} from "./chunk-GCGJW34D.js";
|
|
373
|
-
import {
|
|
374
|
-
serializeMutations,
|
|
375
|
-
withHeldFileLock
|
|
376
|
-
} from "./chunk-FFAZ2XFU.js";
|
|
377
|
-
import {
|
|
378
|
-
createRecallCorpusVersionCapture,
|
|
379
|
-
mergeRecallCorpusVersions
|
|
380
|
-
} from "./chunk-YVRQ5JRA.js";
|
|
381
|
-
import {
|
|
382
|
-
DEFAULT_RECALL_DISCLOSURE,
|
|
383
|
-
isRecallDisclosure
|
|
384
|
-
} from "./chunk-RKDSELA3.js";
|
|
385
|
-
import {
|
|
386
|
-
extractJsonCandidates
|
|
387
|
-
} from "./chunk-YBA52OKG.js";
|
|
388
362
|
import {
|
|
389
363
|
SUPPORT_PASSPORT_ATTRIBUTE_KEYS,
|
|
390
364
|
SUPPORT_PASSPORT_CARD_TAG,
|
|
@@ -408,6 +382,19 @@ import {
|
|
|
408
382
|
isSupportPassportPrivateMemory,
|
|
409
383
|
projectSupportPassportCard
|
|
410
384
|
} from "./chunk-PWPIERBM.js";
|
|
385
|
+
import {
|
|
386
|
+
assertOperationAuthorizationAllowed,
|
|
387
|
+
capabilityAllowsOp,
|
|
388
|
+
enforceNamespaceAllowList,
|
|
389
|
+
isNamespaceAllowed,
|
|
390
|
+
tokenCapabilityStore
|
|
391
|
+
} from "./chunk-IG747LRN.js";
|
|
392
|
+
import {
|
|
393
|
+
writeFileAtomically
|
|
394
|
+
} from "./chunk-BTNNL7ZW.js";
|
|
395
|
+
import {
|
|
396
|
+
computeContentHash
|
|
397
|
+
} from "./chunk-5FVVY2EB.js";
|
|
411
398
|
import {
|
|
412
399
|
stripAttributesSuffix
|
|
413
400
|
} from "./chunk-JDSVLVCG.js";
|
|
@@ -420,9 +407,32 @@ import {
|
|
|
420
407
|
parseIdOrHandle,
|
|
421
408
|
resolveHandle
|
|
422
409
|
} from "./chunk-JAKIDQB2.js";
|
|
410
|
+
import {
|
|
411
|
+
applyOfflineSyncChangeset,
|
|
412
|
+
applyOfflineSyncFileContentChunk,
|
|
413
|
+
buildOfflineSyncSnapshot,
|
|
414
|
+
buildOfflineSyncSnapshotForPaths,
|
|
415
|
+
buildOfflineSyncSnapshotFromBase,
|
|
416
|
+
normalizeOfflineSyncChangeset,
|
|
417
|
+
readOfflineSyncFileContentChunk
|
|
418
|
+
} from "./chunk-TGF43K66.js";
|
|
419
|
+
import {
|
|
420
|
+
compileOfflineSyncExcludeGlobs
|
|
421
|
+
} from "./chunk-63LFM77Z.js";
|
|
422
|
+
import {
|
|
423
|
+
validateArchiveRelativePath
|
|
424
|
+
} from "./chunk-GCGJW34D.js";
|
|
425
|
+
import {
|
|
426
|
+
serializeMutations,
|
|
427
|
+
withHeldFileLock
|
|
428
|
+
} from "./chunk-FFAZ2XFU.js";
|
|
423
429
|
import {
|
|
424
430
|
parseIsoOffsetTimestamp
|
|
425
431
|
} from "./chunk-P7FMDTKL.js";
|
|
432
|
+
import {
|
|
433
|
+
createRecallCorpusVersionCapture,
|
|
434
|
+
mergeRecallCorpusVersions
|
|
435
|
+
} from "./chunk-YVRQ5JRA.js";
|
|
426
436
|
import {
|
|
427
437
|
defaultNamespaceAtFlatRoot,
|
|
428
438
|
memorySearchThroughScope,
|
|
@@ -461,10 +471,6 @@ import {
|
|
|
461
471
|
PendingObserveExtractionTracker,
|
|
462
472
|
pendingObserveScopeHint
|
|
463
473
|
} from "./chunk-LNEWDF2A.js";
|
|
464
|
-
import {
|
|
465
|
-
ObserveTranscriptPersister,
|
|
466
|
-
observeTranscriptSessionKey
|
|
467
|
-
} from "./chunk-T2JSUEH6.js";
|
|
468
474
|
import {
|
|
469
475
|
AccessIdempotencyStore,
|
|
470
476
|
hashAccessIdempotencyPayload
|
|
@@ -1431,17 +1437,19 @@ var CorrectionPlanner = class _CorrectionPlanner {
|
|
|
1431
1437
|
"Correction requires at least one readable namespace \u2014 principal has no read scope."
|
|
1432
1438
|
);
|
|
1433
1439
|
}
|
|
1434
|
-
const
|
|
1440
|
+
const explicitDuplicate = cleaned.duplicateOf ? await this.planExplicitDuplicate(cleaned, namespaces, abortSignal) : null;
|
|
1441
|
+
const located = explicitDuplicate ? { candidates: [explicitDuplicate.loser] } : await this.locateCandidates(cleaned, namespaces, abortSignal);
|
|
1435
1442
|
throwIfAborted(abortSignal, "correction planning aborted");
|
|
1436
|
-
if (located.candidates.length === 0) {
|
|
1443
|
+
if (!explicitDuplicate && located.candidates.length === 0) {
|
|
1437
1444
|
return this.persist(
|
|
1438
1445
|
this.emptyPlan(cleaned, namespaces[0], "no matching memories found for the correction text"),
|
|
1439
1446
|
abortSignal
|
|
1440
1447
|
);
|
|
1441
1448
|
}
|
|
1442
|
-
const llm = await this.deps.classifyAndDraft({
|
|
1449
|
+
const llm = explicitDuplicate ? explicitDuplicate.llm : await this.deps.classifyAndDraft({
|
|
1443
1450
|
text: cleaned.text,
|
|
1444
|
-
candidates: located.candidates
|
|
1451
|
+
candidates: located.candidates,
|
|
1452
|
+
abortSignal
|
|
1445
1453
|
});
|
|
1446
1454
|
throwIfAborted(abortSignal, "correction planning aborted");
|
|
1447
1455
|
for (const action of llm.actions) {
|
|
@@ -1463,9 +1471,14 @@ var CorrectionPlanner = class _CorrectionPlanner {
|
|
|
1463
1471
|
}
|
|
1464
1472
|
const candidateIds = new Set(located.candidates.map((c) => c.memoryId));
|
|
1465
1473
|
if (llm.actions.length > 0 && candidateIds.size > 0) {
|
|
1474
|
+
const explicitWinner = cleaned.duplicateOf;
|
|
1466
1475
|
const filtered = llm.actions.filter((action) => {
|
|
1467
1476
|
const id = action.kind === "supersede" ? action.loserId : action.kind === "edit" || action.kind === "retract" || action.kind === "rescope" ? action.memoryId : null;
|
|
1468
|
-
|
|
1477
|
+
if (id !== null && !candidateIds.has(id)) return false;
|
|
1478
|
+
if (action.kind === "supersede" && action.winnerId && action.winnerId !== explicitWinner && !candidateIds.has(action.winnerId)) {
|
|
1479
|
+
return false;
|
|
1480
|
+
}
|
|
1481
|
+
return true;
|
|
1469
1482
|
});
|
|
1470
1483
|
if (filtered.length < llm.actions.length) {
|
|
1471
1484
|
const dropped = llm.actions.length - filtered.length;
|
|
@@ -1503,6 +1516,57 @@ var CorrectionPlanner = class _CorrectionPlanner {
|
|
|
1503
1516
|
throwIfAborted(abortSignal, "correction planning aborted");
|
|
1504
1517
|
return this.persist(plan, abortSignal);
|
|
1505
1518
|
}
|
|
1519
|
+
async planExplicitDuplicate(request, namespaces, abortSignal) {
|
|
1520
|
+
const winnerId = request.duplicateOf;
|
|
1521
|
+
if (!winnerId || !request.targetIds || request.targetIds.length !== 1) {
|
|
1522
|
+
throw new CorrectionContractError(
|
|
1523
|
+
"CorrectionRequest.duplicateOf requires exactly one targetIds entry (the duplicate memory)."
|
|
1524
|
+
);
|
|
1525
|
+
}
|
|
1526
|
+
if (request.targetIds[0] === winnerId) {
|
|
1527
|
+
throw new CorrectionContractError(
|
|
1528
|
+
"CorrectionRequest.duplicateOf must be a different memory from targetIds."
|
|
1529
|
+
);
|
|
1530
|
+
}
|
|
1531
|
+
const loserId = request.targetIds[0];
|
|
1532
|
+
const loser = await this.inspectDuplicateParty(loserId, namespaces, "target");
|
|
1533
|
+
throwIfAborted(abortSignal, "correction planning aborted");
|
|
1534
|
+
await this.inspectDuplicateParty(winnerId, namespaces, "duplicateOf");
|
|
1535
|
+
throwIfAborted(abortSignal, "correction planning aborted");
|
|
1536
|
+
return {
|
|
1537
|
+
loser,
|
|
1538
|
+
llm: {
|
|
1539
|
+
classification: "outdated",
|
|
1540
|
+
confidence: 1,
|
|
1541
|
+
actions: [{ kind: "supersede", loserId, winnerId }],
|
|
1542
|
+
relevance: [{
|
|
1543
|
+
memoryId: loserId,
|
|
1544
|
+
why: `duplicate of ${winnerId}; recoverable supersede`
|
|
1545
|
+
}],
|
|
1546
|
+
warnings: []
|
|
1547
|
+
}
|
|
1548
|
+
};
|
|
1549
|
+
}
|
|
1550
|
+
async inspectDuplicateParty(memoryId, namespaces, role) {
|
|
1551
|
+
const notFound = role === "target" ? `target memory not found: ${memoryId}` : `duplicateOf memory not found: ${memoryId}`;
|
|
1552
|
+
const inactive = (status) => role === "target" ? `target memory is not active: ${memoryId} (${status})` : `duplicateOf memory is not active: ${memoryId} (${status})`;
|
|
1553
|
+
if (this.deps.inspectMemory) {
|
|
1554
|
+
const found = await this.deps.inspectMemory({ memoryId, namespaces });
|
|
1555
|
+
if (!found) throw new CorrectionContractError(notFound);
|
|
1556
|
+
const status = found.status && found.status.length > 0 ? found.status : "active";
|
|
1557
|
+
if (status !== "active") throw new CorrectionContractError(inactive(status));
|
|
1558
|
+
return found.candidate;
|
|
1559
|
+
}
|
|
1560
|
+
try {
|
|
1561
|
+
const resolved = await this.deps.resolveTargets({ targetIds: [memoryId], namespaces });
|
|
1562
|
+
const candidate = resolved.find((item) => item.memoryId === memoryId) ?? resolved[0];
|
|
1563
|
+
if (!candidate) throw new CorrectionContractError(notFound);
|
|
1564
|
+
return candidate;
|
|
1565
|
+
} catch (err) {
|
|
1566
|
+
if (err instanceof CorrectionContractError) throw new CorrectionContractError(notFound);
|
|
1567
|
+
throw err;
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1506
1570
|
async locateCandidates(request, namespaces, abortSignal) {
|
|
1507
1571
|
if (request.targetIds && request.targetIds.length > 0) {
|
|
1508
1572
|
const targets = await this.deps.resolveTargets({
|
|
@@ -2055,13 +2119,27 @@ var CorrectionExecutor = class {
|
|
|
2055
2119
|
if (action.replacement && !replacementResult) {
|
|
2056
2120
|
continue;
|
|
2057
2121
|
}
|
|
2122
|
+
if (action.winnerId && !action.replacement) {
|
|
2123
|
+
const winner = await this.deps.getMemory(namespace, action.winnerId, abortSignal);
|
|
2124
|
+
const winnerStatus = winner ? winner.status ?? "active" : void 0;
|
|
2125
|
+
if (!winner || winnerStatus !== "active") {
|
|
2126
|
+
results.push({
|
|
2127
|
+
action,
|
|
2128
|
+
status: "failed",
|
|
2129
|
+
error: winner ? `supersede winner is not active: ${action.winnerId} (${winnerStatus})` : `supersede winner not found: ${action.winnerId}`
|
|
2130
|
+
});
|
|
2131
|
+
continue;
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2058
2134
|
await this.retireAndTombstone(
|
|
2059
2135
|
namespace,
|
|
2060
2136
|
action,
|
|
2061
2137
|
"supersession",
|
|
2062
2138
|
results,
|
|
2063
2139
|
appliedTouched,
|
|
2064
|
-
{
|
|
2140
|
+
{
|
|
2141
|
+
supersededBy: replacementResult?.memoryId ?? action.winnerId
|
|
2142
|
+
},
|
|
2065
2143
|
abortSignal
|
|
2066
2144
|
);
|
|
2067
2145
|
if (results.at(-1)?.status === "applied") {
|
|
@@ -2370,6 +2448,94 @@ var CorrectionService = class {
|
|
|
2370
2448
|
// src/correction/correction-access-wiring.ts
|
|
2371
2449
|
import path3 from "path";
|
|
2372
2450
|
import { createHash } from "crypto";
|
|
2451
|
+
|
|
2452
|
+
// src/correction/correction-classify.ts
|
|
2453
|
+
async function completeCorrectionClassify(messages, deps, abortSignal) {
|
|
2454
|
+
throwIfAborted(abortSignal, "correction classify aborted");
|
|
2455
|
+
const timeoutMs = classifyTimeoutMs(deps.config);
|
|
2456
|
+
const gatewayPrimary = deps.config.modelSource === "gateway";
|
|
2457
|
+
const localEnabled = resolveLocalLlmCapabilities(deps.config).localLlm === true && !gatewayPrimary;
|
|
2458
|
+
if (localEnabled) {
|
|
2459
|
+
const localAttempt = startAttempt(abortSignal, timeoutMs);
|
|
2460
|
+
try {
|
|
2461
|
+
const local = await deps.localLlm.chatCompletion(messages, {
|
|
2462
|
+
operation: "correction-classify",
|
|
2463
|
+
priority: "background",
|
|
2464
|
+
timeoutMs,
|
|
2465
|
+
temperature: 0.2,
|
|
2466
|
+
signal: localAttempt.signal
|
|
2467
|
+
});
|
|
2468
|
+
if (abortSignal?.aborted) throw abortError("correction classify aborted");
|
|
2469
|
+
if (local?.content) return local.content;
|
|
2470
|
+
if (deps.config.localLlmFallback === false) {
|
|
2471
|
+
throw new Error("correction classify: local LLM unavailable and fallback disabled");
|
|
2472
|
+
}
|
|
2473
|
+
} catch (err) {
|
|
2474
|
+
if (abortSignal?.aborted) {
|
|
2475
|
+
throw isAbortError(err) ? err : abortError("correction classify aborted");
|
|
2476
|
+
}
|
|
2477
|
+
if (deps.config.localLlmFallback === false) {
|
|
2478
|
+
if (isAbortError(err)) {
|
|
2479
|
+
throw new Error("correction classify: local LLM timed out and fallback disabled");
|
|
2480
|
+
}
|
|
2481
|
+
throw err;
|
|
2482
|
+
}
|
|
2483
|
+
} finally {
|
|
2484
|
+
localAttempt.dispose();
|
|
2485
|
+
}
|
|
2486
|
+
} else if (!gatewayPrimary && deps.config.localLlmFallback === false) {
|
|
2487
|
+
throw new Error("correction classify: local LLM disabled and fallback disabled");
|
|
2488
|
+
}
|
|
2489
|
+
throwIfAborted(abortSignal, "correction classify aborted");
|
|
2490
|
+
const fallbackAttempt = startAttempt(abortSignal, timeoutMs);
|
|
2491
|
+
try {
|
|
2492
|
+
const fallbackOptions = {
|
|
2493
|
+
temperature: 0.2,
|
|
2494
|
+
timeoutMs,
|
|
2495
|
+
signal: fallbackAttempt.signal,
|
|
2496
|
+
...gatewayTaskChainOptions(deps.config)
|
|
2497
|
+
};
|
|
2498
|
+
const fallback = deps.fallbackChat ? await deps.fallbackChat(messages, fallbackOptions) : await new FallbackLlmClient(
|
|
2499
|
+
deps.config.gatewayConfig,
|
|
2500
|
+
fallbackLlmRuntimeContextFromConfig(deps.config)
|
|
2501
|
+
).chatCompletion(messages, fallbackOptions);
|
|
2502
|
+
if (abortSignal?.aborted) throw abortError("correction classify aborted");
|
|
2503
|
+
return fallback?.content ?? null;
|
|
2504
|
+
} catch (err) {
|
|
2505
|
+
if (abortSignal?.aborted) {
|
|
2506
|
+
throw isAbortError(err) ? err : abortError("correction classify aborted");
|
|
2507
|
+
}
|
|
2508
|
+
if (isAbortError(err)) return null;
|
|
2509
|
+
throw err;
|
|
2510
|
+
} finally {
|
|
2511
|
+
fallbackAttempt.dispose();
|
|
2512
|
+
}
|
|
2513
|
+
}
|
|
2514
|
+
function classifyTimeoutMs(config) {
|
|
2515
|
+
const configured = config.correctionClassifyTimeoutMs;
|
|
2516
|
+
if (typeof configured === "number" && Number.isInteger(configured) && configured >= 1 && configured <= MAX_CORRECTION_CLASSIFY_TIMEOUT_MS) {
|
|
2517
|
+
return configured;
|
|
2518
|
+
}
|
|
2519
|
+
return DEFAULT_CORRECTION_CLASSIFY_TIMEOUT_MS;
|
|
2520
|
+
}
|
|
2521
|
+
function startAttempt(caller, timeoutMs) {
|
|
2522
|
+
const controller = new AbortController();
|
|
2523
|
+
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
2524
|
+
const onCaller = () => controller.abort();
|
|
2525
|
+
if (caller?.aborted) controller.abort();
|
|
2526
|
+
else caller?.addEventListener("abort", onCaller, { once: true });
|
|
2527
|
+
let disposed = false;
|
|
2528
|
+
const dispose = () => {
|
|
2529
|
+
if (disposed) return;
|
|
2530
|
+
disposed = true;
|
|
2531
|
+
clearTimeout(timer);
|
|
2532
|
+
caller?.removeEventListener("abort", onCaller);
|
|
2533
|
+
};
|
|
2534
|
+
controller.signal.addEventListener("abort", dispose, { once: true });
|
|
2535
|
+
return { signal: controller.signal, dispose };
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
// src/correction/correction-access-wiring.ts
|
|
2373
2539
|
function createCorrectionService(wiring) {
|
|
2374
2540
|
const cfg = wiring.orchestrator.config;
|
|
2375
2541
|
const correctionEnabled = isCorrectionFeatureEnabled(cfg);
|
|
@@ -2394,8 +2560,9 @@ function makePlannerDeps(wiring, opts) {
|
|
|
2394
2560
|
return {
|
|
2395
2561
|
searchCorpus: async ({ text, namespaces, limit }) => searchMemories(wiring, text, namespaces, limit),
|
|
2396
2562
|
resolveTargets: async ({ targetIds, namespaces }) => resolveTargetMemories(wiring, targetIds, namespaces),
|
|
2563
|
+
inspectMemory: async ({ memoryId, namespaces }) => inspectCorrectionMemory(wiring, memoryId, namespaces),
|
|
2397
2564
|
expandNeighbors: async ({ seedIds, namespaces, limit }) => expandEntityNeighbors(wiring, seedIds, namespaces, limit),
|
|
2398
|
-
classifyAndDraft: async ({ text, candidates }) => classifyAndDraft(wiring, text, candidates),
|
|
2565
|
+
classifyAndDraft: async ({ text, candidates, abortSignal }) => classifyAndDraft(wiring, text, candidates, abortSignal),
|
|
2399
2566
|
renderDiff: async ({ candidates, actions }) => renderCorrectionDiff(wiring, candidates, actions),
|
|
2400
2567
|
storageDir: async (namespace) => (await wiring.orchestrator.getStorage(namespace)).dir,
|
|
2401
2568
|
maxAffected: opts.maxAffected,
|
|
@@ -2568,18 +2735,42 @@ async function expandEntityNeighbors(wiring, seedIds, namespaces, limit) {
|
|
|
2568
2735
|
}
|
|
2569
2736
|
return out;
|
|
2570
2737
|
}
|
|
2571
|
-
async function classifyAndDraft(wiring, text, candidates) {
|
|
2738
|
+
async function classifyAndDraft(wiring, text, candidates, abortSignal) {
|
|
2572
2739
|
try {
|
|
2573
|
-
|
|
2574
|
-
return fallbackClassification(candidates, "no LLM client available");
|
|
2575
|
-
}
|
|
2740
|
+
throwIfAborted(abortSignal, "correction classify aborted");
|
|
2576
2741
|
const user = buildClassifyPrompt(text, candidates);
|
|
2577
|
-
const raw = await wiring.llmComplete({ system: CLASSIFY_SYSTEM_PROMPT, user })
|
|
2742
|
+
const raw = wiring.llmComplete ? await wiring.llmComplete({ system: CLASSIFY_SYSTEM_PROMPT, user, abortSignal }) : await completeCorrectionClassify(
|
|
2743
|
+
[
|
|
2744
|
+
{ role: "system", content: CLASSIFY_SYSTEM_PROMPT },
|
|
2745
|
+
{ role: "user", content: user }
|
|
2746
|
+
],
|
|
2747
|
+
{ config: wiring.orchestrator.config, localLlm: wiring.orchestrator.localLlm },
|
|
2748
|
+
abortSignal
|
|
2749
|
+
);
|
|
2750
|
+
if (raw == null) return fallbackClassification(candidates, "correction classify unavailable");
|
|
2751
|
+
throwIfAborted(abortSignal, "correction classify aborted");
|
|
2578
2752
|
return parseClassifyResponse(raw, candidates);
|
|
2579
2753
|
} catch (err) {
|
|
2754
|
+
if (isAbortError(err) || abortSignal?.aborted) {
|
|
2755
|
+
throw isAbortError(err) ? err : abortError("correction classify aborted");
|
|
2756
|
+
}
|
|
2580
2757
|
return fallbackClassification(candidates, `LLM unavailable: ${errMsg2(err)}`);
|
|
2581
2758
|
}
|
|
2582
2759
|
}
|
|
2760
|
+
async function inspectCorrectionMemory(wiring, memoryId, namespaces) {
|
|
2761
|
+
for (const ns of namespaces) {
|
|
2762
|
+
const storage = await wiring.orchestrator.getStorage(ns);
|
|
2763
|
+
const memory = await storage.getMemoryByIdIncludingArchived(memoryId);
|
|
2764
|
+
if (!memory || memory.frontmatter.id !== memoryId) continue;
|
|
2765
|
+
const candidate = toCandidate(memory, ns, 1);
|
|
2766
|
+
if (isSupportPassportPrivateMemory(memory)) return { candidate, status: "ineligible" };
|
|
2767
|
+
if (typeof memory.frontmatter.archivedAt === "string" && memory.frontmatter.archivedAt.length > 0) {
|
|
2768
|
+
return { candidate, status: "archived" };
|
|
2769
|
+
}
|
|
2770
|
+
return { candidate, status: memory.frontmatter.status ?? "active" };
|
|
2771
|
+
}
|
|
2772
|
+
return null;
|
|
2773
|
+
}
|
|
2583
2774
|
async function renderCorrectionDiff(_wiring, candidates, actions) {
|
|
2584
2775
|
const lines = [];
|
|
2585
2776
|
for (const action of actions) {
|
|
@@ -2596,7 +2787,7 @@ async function renderCorrectionDiff(_wiring, candidates, actions) {
|
|
|
2596
2787
|
function describeAfterState(action) {
|
|
2597
2788
|
switch (action.kind) {
|
|
2598
2789
|
case "supersede":
|
|
2599
|
-
return action.replacement?.content ?? "(superseded without replacement)";
|
|
2790
|
+
return action.replacement?.content ?? (action.winnerId ? `(superseded by ${action.winnerId}; recoverable)` : "(superseded without replacement)");
|
|
2600
2791
|
case "edit":
|
|
2601
2792
|
return action.patch;
|
|
2602
2793
|
case "retract":
|
|
@@ -2912,7 +3103,8 @@ function toExecutorMemory(m) {
|
|
|
2912
3103
|
...fm.entityRef ? { entityRef: fm.entityRef } : {},
|
|
2913
3104
|
...supersessionKeys.length > 0 ? { supersessionKeys } : {},
|
|
2914
3105
|
...supersessionKeys.length > 0 ? { supersessionKey: supersessionKeys[0] } : {},
|
|
2915
|
-
...typeof fm.contentHash === "string" && fm.contentHash.length > 0 ? { contentHash: fm.contentHash } : {}
|
|
3106
|
+
...typeof fm.contentHash === "string" && fm.contentHash.length > 0 ? { contentHash: fm.contentHash } : {},
|
|
3107
|
+
status: fm.status ?? "active"
|
|
2916
3108
|
};
|
|
2917
3109
|
}
|
|
2918
3110
|
function isCorrectionFeatureEnabled(config) {
|
|
@@ -2968,6 +3160,7 @@ Given a correction statement and candidate memories, respond with a JSON object:
|
|
|
2968
3160
|
|
|
2969
3161
|
Action shapes:
|
|
2970
3162
|
- {"kind":"supersede","loserId":"<id>","replacement":{"content":"<new fact>"}}
|
|
3163
|
+
- {"kind":"supersede","loserId":"<id>","winnerId":"<existing id>"}
|
|
2971
3164
|
- {"kind":"edit","memoryId":"<id>","patch":"<new full content>"}
|
|
2972
3165
|
- {"kind":"retract","memoryId":"<id>"}
|
|
2973
3166
|
- {"kind":"rescope","memoryId":"<id>","toNamespace":"<ns>"}
|
|
@@ -6992,21 +7185,6 @@ var SessionContextCoordinator = class {
|
|
|
6992
7185
|
canWriteNamespace: async (req) => {
|
|
6993
7186
|
const principal = req.principal || resolvePrincipal(req.sessionKey, this.deps.config);
|
|
6994
7187
|
return canWriteNamespace(principal, req.namespace, this.deps.config);
|
|
6995
|
-
},
|
|
6996
|
-
llmComplete: async ({ system, user }) => {
|
|
6997
|
-
const llmResult = await this.deps.localLlm.chatCompletion(
|
|
6998
|
-
[
|
|
6999
|
-
{ role: "system", content: system },
|
|
7000
|
-
{ role: "user", content: user }
|
|
7001
|
-
],
|
|
7002
|
-
{ operation: "correction-classify", priority: "background" }
|
|
7003
|
-
);
|
|
7004
|
-
if (!llmResult) {
|
|
7005
|
-
throw new Error(
|
|
7006
|
-
"passive correction classify+draft: local LLM unavailable (disabled or in cooldown)"
|
|
7007
|
-
);
|
|
7008
|
-
}
|
|
7009
|
-
return llmResult.content;
|
|
7010
7188
|
}
|
|
7011
7189
|
});
|
|
7012
7190
|
return this.deps._passiveCorrectionService;
|
|
@@ -16346,24 +16524,6 @@ var EngramAccessService = class extends SupportPassportAccessServiceBase {
|
|
|
16346
16524
|
} catch {
|
|
16347
16525
|
return Promise.resolve(false);
|
|
16348
16526
|
}
|
|
16349
|
-
},
|
|
16350
|
-
// Wire the orchestrator's extraction LLM so classify+draft actually
|
|
16351
|
-
// drafts actions instead of always hitting the deterministic fallback
|
|
16352
|
-
// (review thread PG5). The planner's classifyAndDraft already falls back
|
|
16353
|
-
// on any LLM outage, so returning null (LLM disabled/cooldown) or a
|
|
16354
|
-
// thrown error both degrade safely to the deterministic path (rule 13).
|
|
16355
|
-
llmComplete: async ({ system, user }) => {
|
|
16356
|
-
const result = await this.orchestrator.localLlm.chatCompletion(
|
|
16357
|
-
[
|
|
16358
|
-
{ role: "system", content: system },
|
|
16359
|
-
{ role: "user", content: user }
|
|
16360
|
-
],
|
|
16361
|
-
{ operation: "correction-classify", priority: "background" }
|
|
16362
|
-
);
|
|
16363
|
-
if (!result) {
|
|
16364
|
-
throw new Error("correction classify+draft: local LLM unavailable (disabled or in cooldown)");
|
|
16365
|
-
}
|
|
16366
|
-
return result.content;
|
|
16367
16527
|
}
|
|
16368
16528
|
});
|
|
16369
16529
|
this._correctionService = service;
|
|
@@ -16385,11 +16545,20 @@ var EngramAccessService = class extends SupportPassportAccessServiceBase {
|
|
|
16385
16545
|
}
|
|
16386
16546
|
}
|
|
16387
16547
|
async correctionPlan(request, opts) {
|
|
16548
|
+
let next = request;
|
|
16388
16549
|
if (request.targetIds?.some((id) => isHandleToken(id))) {
|
|
16389
|
-
|
|
16390
|
-
|
|
16550
|
+
next = {
|
|
16551
|
+
...next,
|
|
16552
|
+
targetIds: request.targetIds.map((id) => this.resolveMemoryIdOrHandleInput(id, request.sessionKey))
|
|
16553
|
+
};
|
|
16554
|
+
}
|
|
16555
|
+
if (request.duplicateOf && isHandleToken(request.duplicateOf)) {
|
|
16556
|
+
next = {
|
|
16557
|
+
...next,
|
|
16558
|
+
duplicateOf: this.resolveMemoryIdOrHandleInput(request.duplicateOf, request.sessionKey)
|
|
16559
|
+
};
|
|
16391
16560
|
}
|
|
16392
|
-
return this.correctionService().plan(
|
|
16561
|
+
return this.correctionService().plan(next, opts);
|
|
16393
16562
|
}
|
|
16394
16563
|
async correctionApply(planId, opts) {
|
|
16395
16564
|
return this.correctionService().apply(planId, opts);
|
|
@@ -18565,4 +18734,4 @@ export {
|
|
|
18565
18734
|
EngramAccessService,
|
|
18566
18735
|
AccessAdminOpsSurface
|
|
18567
18736
|
};
|
|
18568
|
-
//# sourceMappingURL=chunk-
|
|
18737
|
+
//# sourceMappingURL=chunk-GVUW5XK5.js.map
|