@remnic/core 10.0.12 → 10.0.14
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 +97 -95
- package/dist/access-authorization-probe.js +98 -96
- package/dist/access-boundary.js +97 -95
- package/dist/access-cli.js +201 -198
- package/dist/access-cli.js.map +1 -1
- package/dist/access-extraction-force-flush.js +97 -95
- package/dist/access-http-briefing.js +98 -96
- package/dist/access-http-query.js +99 -97
- package/dist/access-http.js +121 -119
- package/dist/access-idempotency.js +3 -2
- package/dist/access-identity-continuity-surface.js +97 -95
- package/dist/access-lcm-surface.js +97 -95
- package/dist/access-mcp.js +110 -108
- package/dist/access-memory-search-fanout.js +3 -3
- package/dist/access-namespace-preflight.js +97 -95
- package/dist/access-observe-write-category.js +18 -18
- package/dist/access-observe-write-surface.js +97 -95
- package/dist/access-offline-manifest.js +21 -20
- package/dist/access-operations-batch.js +101 -99
- package/dist/access-operations.js +108 -106
- package/dist/access-recall-concurrency.js +97 -95
- package/dist/access-recall-diagnostics.js +5 -5
- package/dist/access-recall-response.js +97 -95
- package/dist/access-recall-surface.js +97 -95
- package/dist/access-schema.d.ts +2 -2
- package/dist/access-schema.js +12 -12
- package/dist/access-service.js +97 -95
- package/dist/access-surface-catalog.js +99 -97
- package/dist/access-surface-catalog.js.map +1 -1
- package/dist/active-memory-bridge.js +3 -3
- package/dist/active-recall.js +42 -40
- 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-WSJAOLOP.js → auto-sync-7WWAKW6F.js} +12 -12
- package/dist/briefing.js +31 -29
- package/dist/buffer.js +17 -17
- package/dist/calibration.d.ts +20 -0
- package/dist/calibration.d.ts.map +1 -1
- package/dist/calibration.js +60 -13
- package/dist/calibration.js.map +1 -1
- package/dist/capabilities.d.ts +3 -2
- package/dist/capabilities.d.ts.map +1 -1
- package/dist/capabilities.js +1 -1
- package/dist/{capsule-merge-M4HETD27.js → capsule-merge-LGYURS3C.js} +6 -5
- package/dist/{capsule-merge-M4HETD27.js.map → capsule-merge-LGYURS3C.js.map} +1 -1
- package/dist/capture-write-lock-backoff.d.ts +50 -0
- package/dist/capture-write-lock-backoff.d.ts.map +1 -0
- package/dist/capture-write-lock-backoff.js +30 -0
- package/dist/capture-write-lock.d.ts +6 -0
- package/dist/capture-write-lock.d.ts.map +1 -0
- package/dist/capture-write-lock.js +15 -0
- package/dist/causal-behavior.js +2 -2
- package/dist/causal-chain.js +2 -2
- package/dist/causal-consolidation.js +34 -32
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-retrieval.js +2 -2
- package/dist/causal-trajectory-graph.js +7 -6
- package/dist/causal-trajectory-graph.js.map +1 -1
- package/dist/causal-trajectory.js +1 -1
- package/dist/{chunk-RNPJ4GQA.js → chunk-22W2XWGH.js} +6 -6
- package/dist/{chunk-AV2OQF2O.js → chunk-3F3HA3R2.js} +2 -2
- package/dist/{chunk-QZZPUREO.js → chunk-3GYSZHMT.js} +3 -3
- package/dist/{chunk-QWWMS4AE.js → chunk-3MO4LWYU.js} +1 -1
- package/dist/chunk-3MO4LWYU.js.map +1 -0
- package/dist/{chunk-XYOT5GQU.js → chunk-3NF4QUNZ.js} +3 -3
- package/dist/{chunk-AL6EHLB5.js → chunk-3X3PNU3T.js} +2 -2
- package/dist/{chunk-BTJ6CAIA.js → chunk-4IYIGN53.js} +10 -10
- package/dist/{chunk-OM3RWZQK.js → chunk-4KY5GSMB.js} +2 -2
- package/dist/{chunk-4N2MFNTG.js → chunk-4OSG5Y6M.js} +2 -2
- package/dist/{chunk-EEDI3OXB.js → chunk-4Q26RNSR.js} +2 -2
- package/dist/{chunk-EHRE7ZG3.js → chunk-5B5WYAHQ.js} +2 -2
- package/dist/{chunk-WCGJK4NQ.js → chunk-5FNZ3G6X.js} +10 -10
- package/dist/{chunk-Y6DZ33PA.js → chunk-5GX5457J.js} +4 -4
- package/dist/{chunk-OFCHT2TN.js → chunk-5LRV557D.js} +2 -2
- package/dist/{chunk-VAOC6GHN.js → chunk-5PHOU5QI.js} +2 -2
- package/dist/{chunk-WL7N5VGG.js → chunk-5TJEOU6Y.js} +2 -2
- package/dist/{chunk-A2L3P2IY.js → chunk-5WCJLQTM.js} +2 -2
- package/dist/{chunk-MZBWIJJN.js → chunk-63B2IZYE.js} +19 -19
- package/dist/{chunk-DGRMWDQY.js → chunk-66BCOVW2.js} +7 -7
- package/dist/chunk-6EDW54SQ.js +298 -0
- package/dist/chunk-6EDW54SQ.js.map +1 -0
- package/dist/{chunk-P2S6P7X6.js → chunk-6LG7BWKW.js} +2 -2
- package/dist/chunk-77R7BQZ2.js +152 -0
- package/dist/chunk-77R7BQZ2.js.map +1 -0
- package/dist/{chunk-4G2YCKLT.js → chunk-7G5NTS7F.js} +2 -2
- package/dist/{chunk-IPLYGWQF.js → chunk-7LCGFUMB.js} +6 -6
- package/dist/{chunk-KYY4EACB.js → chunk-7Z3DLNSD.js} +2 -2
- package/dist/{chunk-LNH76ZJX.js → chunk-AIYXVWUH.js} +27 -2
- package/dist/{chunk-LNH76ZJX.js.map → chunk-AIYXVWUH.js.map} +1 -1
- package/dist/{chunk-7SUWY37K.js → chunk-B665A6BO.js} +2 -2
- package/dist/{chunk-AEGNDL24.js → chunk-BVRZSI7Q.js} +2 -2
- package/dist/{chunk-2EMROIXS.js → chunk-C5LWPYS3.js} +2 -1
- package/dist/{chunk-2EMROIXS.js.map → chunk-C5LWPYS3.js.map} +1 -1
- package/dist/{chunk-KJOGIRMF.js → chunk-CB6ANA2I.js} +2 -2
- package/dist/{chunk-5JMI26Q7.js → chunk-CBH2Z4UA.js} +2 -2
- package/dist/{chunk-YRH3C2OJ.js → chunk-CIIHIAJ2.js} +13 -5
- package/dist/chunk-CIIHIAJ2.js.map +1 -0
- package/dist/{chunk-W4RLOZOG.js → chunk-CJRENHVZ.js} +4 -4
- package/dist/{chunk-LOFVW6JA.js → chunk-CLWBFR7Q.js} +6 -6
- package/dist/{chunk-375ARKRS.js → chunk-D5SSBCYY.js} +70 -59
- package/dist/chunk-D5SSBCYY.js.map +1 -0
- package/dist/{chunk-KI6UOSNR.js → chunk-DEY7B77Y.js} +2 -2
- package/dist/chunk-DEY7B77Y.js.map +1 -0
- package/dist/{chunk-6VAHJ2F6.js → chunk-DMDWFQMR.js} +2 -2
- package/dist/{chunk-MO25AN7J.js → chunk-DPR2WTN3.js} +22 -22
- package/dist/{chunk-JXSYWTFK.js → chunk-DYJHGJZ4.js} +2 -2
- package/dist/{chunk-5X4ZJESN.js → chunk-EH4BQ7LT.js} +3 -3
- package/dist/chunk-EHHQJTAU.js +131 -0
- package/dist/chunk-EHHQJTAU.js.map +1 -0
- package/dist/{chunk-JXWTPOMJ.js → chunk-EPJDSQHF.js} +2 -2
- package/dist/{chunk-OEIA4IHU.js → chunk-ESG6ITGP.js} +2 -2
- package/dist/{chunk-7XI2UJHL.js → chunk-ETZUIRCI.js} +4 -4
- package/dist/{chunk-PPIASWWR.js → chunk-EU534WGS.js} +2 -2
- package/dist/{chunk-XLIK2VDE.js → chunk-EU6IRUCY.js} +7 -5
- package/dist/{chunk-XLIK2VDE.js.map → chunk-EU6IRUCY.js.map} +1 -1
- package/dist/{chunk-J7MDPTX7.js → chunk-EUAIYYYR.js} +190 -44
- package/dist/chunk-EUAIYYYR.js.map +1 -0
- package/dist/{chunk-E6KXJSMA.js → chunk-EUCYTCFP.js} +3 -3
- package/dist/{chunk-YNDLCWXS.js → chunk-EZ25VE3G.js} +4 -4
- package/dist/{chunk-6OAXWYE3.js → chunk-FFOVKNQV.js} +2 -2
- package/dist/{chunk-2KRNPFPK.js → chunk-FLI6DEIU.js} +2 -2
- package/dist/{chunk-4G4B3Z2B.js → chunk-FP4JYE66.js} +2 -2
- package/dist/{chunk-PDVWGGX4.js → chunk-FSIMZNBC.js} +2 -2
- package/dist/{chunk-OAIWPB2I.js → chunk-FT4UQYOV.js} +2 -2
- package/dist/{chunk-D5UPBXZM.js → chunk-FUFAXVBA.js} +4 -4
- package/dist/{chunk-GKOML66M.js → chunk-G2OYFTUD.js} +5 -5
- package/dist/{chunk-XTN54NML.js → chunk-G3T6YMBO.js} +4 -4
- package/dist/{chunk-KWVI52ER.js → chunk-GELS5Z5Z.js} +4 -4
- package/dist/{chunk-J6FFBORM.js → chunk-GH7AOMJD.js} +2 -2
- package/dist/{chunk-TCYLCPC6.js → chunk-GKJJNO7C.js} +3 -3
- package/dist/{chunk-N75Q5ZSP.js → chunk-GMXWTJNU.js} +2 -2
- package/dist/{chunk-B657ZGDH.js → chunk-HQSK2INQ.js} +2 -2
- package/dist/{chunk-SQA2MM2F.js → chunk-I7S55EOB.js} +2 -2
- package/dist/{chunk-CAUNCRLQ.js → chunk-J7JWFZHI.js} +108 -108
- package/dist/{chunk-NQMG2W5L.js → chunk-JDZFIR2S.js} +2 -2
- package/dist/{chunk-O52WWLKU.js → chunk-JIHMUOOS.js} +5 -5
- package/dist/{chunk-YYO447A7.js → chunk-JNIVZNIB.js} +41 -253
- package/dist/chunk-JNIVZNIB.js.map +1 -0
- package/dist/{chunk-VUQDJ3JB.js → chunk-JPTPS4OB.js} +6 -6
- package/dist/{chunk-WXFKXCOQ.js → chunk-JQ7XU625.js} +10 -10
- package/dist/{chunk-3I3U6FFT.js → chunk-K7BN34IA.js} +2 -2
- package/dist/{chunk-7OAIOE5P.js → chunk-KH2LKDX7.js} +2 -2
- package/dist/{chunk-VDXTXVFZ.js → chunk-KR6ZKECI.js} +5 -5
- package/dist/{chunk-MK552I5J.js → chunk-L5DAHSEZ.js} +4 -4
- package/dist/{chunk-XQIHFXYP.js → chunk-LCKVXX5F.js} +2 -2
- package/dist/{chunk-ZI7LMSNI.js → chunk-LLHZZOIB.js} +2 -2
- package/dist/{chunk-E57LYSHI.js → chunk-LZACDIM2.js} +2 -2
- package/dist/{chunk-QAIKLICT.js → chunk-M7KGIW5F.js} +2 -2
- package/dist/{chunk-55ZVZBX4.js → chunk-MATDGSJ7.js} +4 -4
- package/dist/{chunk-3NFN4Y4P.js → chunk-MGCKZWAE.js} +5 -5
- package/dist/{chunk-YS7SA4HD.js → chunk-ML7ZJAKJ.js} +4 -4
- package/dist/{chunk-YDH2FSDI.js → chunk-N45NEBOD.js} +2 -2
- package/dist/{chunk-7UX44C4N.js → chunk-N4C7QKOG.js} +3 -3
- package/dist/{chunk-YYNHJF3N.js → chunk-N7KYEVLK.js} +2 -2
- package/dist/{chunk-HT2C4EXO.js → chunk-NIRQGDYC.js} +4 -4
- package/dist/{chunk-DXHVD4DS.js → chunk-NW2E4CI2.js} +3 -3
- package/dist/{chunk-BFIZXFUG.js → chunk-NWIT3U2N.js} +2 -2
- package/dist/{chunk-4NDWE44P.js → chunk-NZFFGO5O.js} +2 -2
- package/dist/{chunk-MB5EJ2CT.js → chunk-O2IPAX26.js} +10 -10
- package/dist/{chunk-UOA2VQ7C.js → chunk-O4SGYW7H.js} +2 -2
- package/dist/{chunk-SSAXGPXY.js → chunk-OP6N4H6A.js} +2 -2
- package/dist/{chunk-ZSJGYC3C.js → chunk-OQJKY3Z5.js} +2 -2
- package/dist/{chunk-OFEHITAZ.js → chunk-OXNTOHL6.js} +2 -2
- package/dist/{chunk-CDWFWOSZ.js → chunk-P4JED3ZL.js} +2 -2
- package/dist/{chunk-FQD2KPQH.js → chunk-P55FACBG.js} +2 -2
- package/dist/{chunk-KX36OCGK.js → chunk-P5NQN4JE.js} +3 -3
- package/dist/{chunk-3ZCRHW7U.js → chunk-P7TOIOT7.js} +2 -2
- package/dist/{chunk-BD5QEP3T.js → chunk-PAZ35RJ4.js} +45 -32
- package/dist/chunk-PAZ35RJ4.js.map +1 -0
- package/dist/chunk-PGRZ3FYC.js +34 -0
- package/dist/chunk-PGRZ3FYC.js.map +1 -0
- package/dist/{chunk-PBVNVKYN.js → chunk-PIN5OPBA.js} +2 -2
- package/dist/{chunk-O6YDGTH4.js → chunk-PZHQWFR3.js} +3 -3
- package/dist/{chunk-SVDU4OHO.js → chunk-Q35L7TYB.js} +2 -2
- package/dist/{chunk-SOJ3IQD3.js → chunk-QODKDRSP.js} +6 -6
- package/dist/{chunk-VJGDQA3D.js → chunk-QOZJCSFO.js} +3 -3
- package/dist/{chunk-6T42L5FI.js → chunk-QS3OLP5I.js} +2 -2
- package/dist/{chunk-PAAJWQH5.js → chunk-QUMKDRCF.js} +2 -2
- package/dist/{chunk-4TP3MJ3D.js → chunk-QX6JN3O4.js} +7 -7
- package/dist/{chunk-KZEMFD6E.js → chunk-R2H4ZFBJ.js} +3 -3
- package/dist/{chunk-N6UMXWBA.js → chunk-RTKV5XHL.js} +4 -4
- package/dist/{chunk-ZQ3WU6JO.js → chunk-RXFCU3CY.js} +2 -2
- package/dist/{chunk-BOOFTFFE.js → chunk-S2I7DL5Q.js} +1 -1
- package/dist/{chunk-2NCBDGND.js → chunk-SA6GMZJY.js} +3 -3
- package/dist/{chunk-2AFHZTPI.js → chunk-SIIRTDJ4.js} +3 -3
- package/dist/{chunk-WH4QXVKU.js → chunk-SS3IS2JR.js} +3 -3
- package/dist/{chunk-VFTK5WKI.js → chunk-STBX5X6B.js} +2 -2
- package/dist/{chunk-WVHRNAXL.js → chunk-SWWHIJUJ.js} +2 -2
- package/dist/{chunk-WADSXS4K.js → chunk-SX4QDWXK.js} +2 -2
- package/dist/{chunk-2U4BM3TW.js → chunk-TITG2NBS.js} +2 -2
- package/dist/{chunk-A5ZYP4K5.js → chunk-TNRCDMQT.js} +2 -2
- package/dist/{chunk-LZKOVXMX.js → chunk-TRMJ6BYC.js} +2 -2
- package/dist/{chunk-VA2HNBGQ.js → chunk-TZNDKTX5.js} +69 -69
- package/dist/{chunk-OFDIGTC2.js → chunk-UMTCNEVQ.js} +17 -17
- package/dist/{chunk-L3G5CGL5.js → chunk-UQDG3YLN.js} +68 -24
- package/dist/chunk-UQDG3YLN.js.map +1 -0
- package/dist/{chunk-AAM66QCP.js → chunk-UZRSI6NX.js} +2 -2
- package/dist/{chunk-2CXQZXWM.js → chunk-V4MB5ONM.js} +6 -6
- package/dist/{chunk-5BUCKFRE.js → chunk-VOKHZRHW.js} +2 -2
- package/dist/{chunk-CYEK6Z3P.js → chunk-VW6VIJOS.js} +2 -2
- package/dist/{chunk-I2M4ZVDD.js → chunk-W47S5TIH.js} +9 -9
- package/dist/{chunk-CBP4HWCL.js → chunk-W5MCEVUS.js} +3 -3
- package/dist/{chunk-E5H4TM4Y.js → chunk-WC3V7HHP.js} +3 -3
- package/dist/{chunk-WCTL3PVM.js → chunk-WLMZ2L5P.js} +2 -2
- package/dist/{chunk-SQ2O52SU.js → chunk-WSGPFRBH.js} +10 -10
- package/dist/{chunk-BH44JOLA.js → chunk-WVADKFWV.js} +3 -3
- package/dist/{chunk-JVNEXW6X.js → chunk-XISROV24.js} +2 -2
- package/dist/{chunk-FZVROZKC.js → chunk-XVZA6VXC.js} +4 -4
- package/dist/{chunk-56GJLXBA.js → chunk-Y4NKEXQT.js} +4 -4
- package/dist/{chunk-EKKAHJ4B.js → chunk-YE36AJL7.js} +4 -4
- package/dist/chunk-YET735EZ.js +99 -0
- package/dist/chunk-YET735EZ.js.map +1 -0
- package/dist/{chunk-OGWEWJRH.js → chunk-YFMBHQRG.js} +2 -2
- package/dist/{chunk-JLIGUFPF.js → chunk-YN2DQ2D6.js} +2 -2
- package/dist/{chunk-RBJQYMMT.js → chunk-YRULQW5J.js} +4 -4
- package/dist/{chunk-UCJINCZT.js → chunk-YUZRI3QU.js} +2 -2
- package/dist/{chunk-QUNDYIYZ.js → chunk-YYEOR4XN.js} +3 -3
- package/dist/{chunk-O5MW6CQL.js → chunk-ZJVMUBYF.js} +2 -2
- package/dist/{chunk-VBJD4RSJ.js → chunk-ZSH2NRDV.js} +2 -2
- package/dist/{chunk-BX4WDBTE.js → chunk-ZV65I6ME.js} +78 -78
- package/dist/cli.js +150 -148
- package/dist/coding/export-okf-codegraph.js +31 -29
- package/dist/coding/export-okf-codegraph.js.map +1 -1
- package/dist/coding/pre-action-gate.js +2 -2
- package/dist/compounding/engine.d.ts +15 -11
- package/dist/compounding/engine.d.ts.map +1 -1
- package/dist/compounding/engine.js +34 -32
- package/dist/compounding/iso-week.d.ts +2 -0
- package/dist/compounding/iso-week.d.ts.map +1 -1
- package/dist/compounding/weekly-scheduler.d.ts +81 -0
- package/dist/compounding/weekly-scheduler.d.ts.map +1 -0
- package/dist/compounding/weekly-synthesis-queue.d.ts +9 -0
- package/dist/compounding/weekly-synthesis-queue.d.ts.map +1 -0
- package/dist/config.js +42 -40
- package/dist/connectors/codex-materialize-runner.js +31 -29
- package/dist/connectors/index.js +32 -30
- package/dist/console/trace.d.ts +5 -14
- package/dist/console/trace.d.ts.map +1 -1
- package/dist/consolidation-provenance-check.js +7 -6
- package/dist/consolidation-undo.js +5 -4
- package/dist/consolidation-undo.js.map +1 -1
- package/dist/contradiction/index.js +9 -8
- package/dist/{contradiction-scan-GGRTVB7C.js → contradiction-scan-P7KXB5R4.js} +3 -3
- package/dist/converge-config.d.ts +2 -0
- package/dist/converge-config.d.ts.map +1 -1
- package/dist/converge-config.js +7 -3
- package/dist/convergence-refresh.js +33 -31
- package/dist/corpus-watermark.js +33 -31
- package/dist/dashboard-runtime.js +2 -2
- package/dist/day-summary.js +2 -2
- package/dist/deep-recall-http-glue.js +13 -13
- package/dist/deep-recall.js +2 -2
- package/dist/embedding-fallback.js +6 -5
- package/dist/embedding-generation-lock.js +4 -3
- package/dist/entity-retrieval.js +32 -30
- package/dist/explicit-capture.js +12 -9
- package/dist/external-wiki-access.js +98 -96
- package/dist/extraction-judge.js +3 -3
- package/dist/extraction-normalization.js +3 -3
- package/dist/extraction-prompt.js +2 -2
- package/dist/extraction-quote-grounding.d.ts +67 -0
- package/dist/extraction-quote-grounding.d.ts.map +1 -0
- package/dist/extraction-quote-grounding.js +27 -0
- package/dist/extraction-quote-grounding.js.map +1 -0
- package/dist/extraction-source-grounding-helpers.d.ts +8 -0
- package/dist/extraction-source-grounding-helpers.d.ts.map +1 -1
- package/dist/extraction-source-grounding-helpers.js +11 -1
- package/dist/extraction-source-grounding-rules.d.ts +3 -1
- package/dist/extraction-source-grounding-rules.d.ts.map +1 -1
- package/dist/extraction-source-grounding-rules.js +3 -2
- package/dist/extraction-source-grounding.d.ts +1 -1
- package/dist/extraction-source-grounding.d.ts.map +1 -1
- package/dist/extraction-source-grounding.js +4 -3
- package/dist/extraction-span-materialize.js +2 -2
- package/dist/extraction.js +50 -47
- package/dist/{first-start-migration-OM3PHMZO.js → first-start-migration-6A5BJPDW.js} +5 -5
- package/dist/{forget-OHAJ6PSU.js → forget-GXBWFKRC.js} +5 -4
- package/dist/{forget-OHAJ6PSU.js.map → forget-GXBWFKRC.js.map} +1 -1
- package/dist/{graph-edge-decay-CZ3SYLM4.js → graph-edge-decay-BYPZVJT4.js} +10 -9
- package/dist/graph-edge-decay-BYPZVJT4.js.map +1 -0
- package/dist/graph-jsonl.js +8 -7
- package/dist/graph-snapshot.js +8 -7
- package/dist/graph-write-lock.js +4 -3
- package/dist/graph.js +9 -8
- package/dist/harmonic-retrieval.js +31 -29
- package/dist/http-retry.js +2 -1
- package/dist/http-retry.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +241 -236
- package/dist/lcm/engine.js +4 -4
- package/dist/lcm/index.js +12 -12
- package/dist/local-llm.js +2 -2
- package/dist/location/index.js +34 -32
- package/dist/maintenance/memory-governance.js +31 -29
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +31 -29
- package/dist/maintenance/rebuild-memory-projection-runner.js +33 -31
- package/dist/maintenance/rebuild-memory-projection.js +32 -30
- package/dist/memory-browse-operations.js +98 -96
- package/dist/memory-browse.js +7 -7
- package/dist/memory-subject.js +5 -4
- package/dist/namespaces/migrate.js +32 -30
- package/dist/namespaces/principal.js +2 -2
- package/dist/namespaces/search.js +10 -10
- package/dist/namespaces/storage.js +31 -29
- package/dist/offline-sync-changeset-generations.js +7 -6
- package/dist/offline-sync-embedding-generation.js +6 -5
- package/dist/offline-sync-impression-drain.js +8 -8
- package/dist/offline-sync-snapshot-stream.js +9 -9
- package/dist/offline-sync.js +10 -10
- package/dist/operator-doctor-corpus.js +34 -32
- package/dist/operator-toolkit.js +59 -57
- package/dist/orchestration/compression-guideline-coordinator.js +2 -2
- package/dist/orchestration/maintenance.d.ts +2 -0
- package/dist/orchestration/maintenance.d.ts.map +1 -1
- package/dist/orchestration/maintenance.js +49 -43
- package/dist/orchestrator.js +203 -200
- package/dist/page-versioning.js +5 -4
- package/dist/qmd-daemon-session.js +2 -2
- 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 +98 -96
- package/dist/recall-navigation.js +97 -95
- package/dist/recall-state-view-admission.js +7 -7
- package/dist/recall-state.js +4 -3
- package/dist/recall-why-service.js +11 -11
- package/dist/recall-why.js +3 -3
- 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/cursor.js +4 -2
- package/dist/reconcile/cursor.js.map +1 -1
- package/dist/reconcile/manifest.js +9 -6
- package/dist/reconcile/plan.js +4 -2
- package/dist/rerank-outcome.js +2 -2
- package/dist/{resolution-E4GLHLY6.js → resolution-7AY36LGJ.js} +10 -9
- package/dist/resolution-7AY36LGJ.js.map +1 -0
- package/dist/resume-bundles.js +43 -41
- package/dist/salvage-envelope.js +7 -6
- package/dist/search/embed-helper.js +2 -2
- package/dist/search/factory.js +9 -9
- package/dist/search/index.js +15 -15
- package/dist/semantic-consolidation.js +36 -34
- package/dist/semantic-rule-promotion.js +31 -29
- package/dist/semantic-rule-verifier.js +31 -29
- package/dist/shared-context/manager.js +2 -2
- package/dist/source-agent-qualifier.js +43 -40
- package/dist/standup/build.js +31 -29
- package/dist/storage/content-hash-index.d.ts +10 -0
- package/dist/storage/content-hash-index.d.ts.map +1 -1
- package/dist/storage/tombstone-blocked-capture-index.d.ts +3 -0
- package/dist/storage/tombstone-blocked-capture-index.d.ts.map +1 -1
- package/dist/storage/tombstone-blocked-capture-mutation.d.ts +23 -3
- package/dist/storage/tombstone-blocked-capture-mutation.d.ts.map +1 -1
- package/dist/storage.d.ts +6 -0
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +32 -30
- package/dist/subject-config.js +6 -5
- package/dist/summarizer.js +6 -6
- package/dist/summary-snapshot.js +4 -3
- package/dist/support-passport/index.js +100 -98
- package/dist/{tier-stats-M2FMMD2N.js → tier-stats-RQM76XYY.js} +2 -2
- package/dist/{trace-LXXCMZJA.js → trace-QBQVS5BC.js} +5 -21
- package/dist/trace-QBQVS5BC.js.map +1 -0
- package/dist/transfer/autodetect.js +1 -1
- package/dist/transfer/backup.js +1 -1
- package/dist/transfer/capsule-export.js +3 -3
- package/dist/transfer/capsule-import.js +7 -6
- package/dist/transfer/export-okf.js +31 -29
- package/dist/types.d.ts +9 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/utils/serialize-mutations.js +3 -2
- package/dist/utils/sleep.d.ts +6 -0
- package/dist/utils/sleep.d.ts.map +1 -1
- package/dist/verified-recall.js +31 -29
- package/dist/who-knows-cli.js +32 -30
- package/dist/who-knows.js +31 -29
- package/dist/write-envelope.js +6 -5
- package/package.json +22 -2
- package/src/calibration.test.ts +80 -1
- package/src/calibration.ts +77 -8
- package/src/capabilities.test.ts +1 -0
- package/src/capabilities.ts +4 -4
- package/src/capture-write-lock-backoff.test.ts +534 -0
- package/src/capture-write-lock-backoff.ts +140 -0
- package/src/capture-write-lock.ts +8 -0
- package/src/compounding/engine.ts +32 -31
- package/src/compounding/iso-week.ts +16 -0
- package/src/compounding/weekly-scheduler.test.ts +426 -0
- package/src/compounding/weekly-scheduler.ts +231 -0
- package/src/compounding/weekly-synthesis-queue.ts +23 -0
- package/src/console/trace.ts +5 -36
- package/src/converge-config.ts +80 -1
- package/src/extraction-quote-grounding.test.ts +546 -0
- package/src/extraction-quote-grounding.ts +232 -0
- package/src/extraction-source-grounding-helpers.ts +35 -0
- package/src/extraction-source-grounding-rules.ts +90 -65
- package/src/extraction-source-grounding.ts +11 -2
- package/src/index.ts +1 -1
- package/src/orchestration/maintenance.ts +6 -2
- package/src/providers/codex-subscription.test.ts +15 -3
- package/src/storage/content-hash-index.ts +10 -0
- package/src/storage/tombstone-blocked-capture-index.ts +8 -1
- package/src/storage/tombstone-blocked-capture-mutation.ts +133 -43
- package/src/storage.ts +13 -0
- package/src/types.ts +9 -0
- package/src/utils/sleep.ts +28 -0
- package/dist/chunk-375ARKRS.js.map +0 -1
- package/dist/chunk-6MINUTGJ.js +0 -64
- package/dist/chunk-6MINUTGJ.js.map +0 -1
- package/dist/chunk-7LEQREP2.js +0 -9
- package/dist/chunk-7LEQREP2.js.map +0 -1
- package/dist/chunk-BD5QEP3T.js.map +0 -1
- package/dist/chunk-J7MDPTX7.js.map +0 -1
- package/dist/chunk-KI6UOSNR.js.map +0 -1
- package/dist/chunk-L3G5CGL5.js.map +0 -1
- package/dist/chunk-QWWMS4AE.js.map +0 -1
- package/dist/chunk-YRH3C2OJ.js.map +0 -1
- package/dist/chunk-YYO447A7.js.map +0 -1
- package/dist/trace-LXXCMZJA.js.map +0 -1
- /package/dist/{auto-sync-WSJAOLOP.js.map → auto-sync-7WWAKW6F.js.map} +0 -0
- /package/dist/{contradiction-scan-GGRTVB7C.js.map → capture-write-lock-backoff.js.map} +0 -0
- /package/dist/{graph-edge-decay-CZ3SYLM4.js.map → capture-write-lock.js.map} +0 -0
- /package/dist/{chunk-RNPJ4GQA.js.map → chunk-22W2XWGH.js.map} +0 -0
- /package/dist/{chunk-AV2OQF2O.js.map → chunk-3F3HA3R2.js.map} +0 -0
- /package/dist/{chunk-QZZPUREO.js.map → chunk-3GYSZHMT.js.map} +0 -0
- /package/dist/{chunk-XYOT5GQU.js.map → chunk-3NF4QUNZ.js.map} +0 -0
- /package/dist/{chunk-AL6EHLB5.js.map → chunk-3X3PNU3T.js.map} +0 -0
- /package/dist/{chunk-BTJ6CAIA.js.map → chunk-4IYIGN53.js.map} +0 -0
- /package/dist/{chunk-OM3RWZQK.js.map → chunk-4KY5GSMB.js.map} +0 -0
- /package/dist/{chunk-4N2MFNTG.js.map → chunk-4OSG5Y6M.js.map} +0 -0
- /package/dist/{chunk-EEDI3OXB.js.map → chunk-4Q26RNSR.js.map} +0 -0
- /package/dist/{chunk-EHRE7ZG3.js.map → chunk-5B5WYAHQ.js.map} +0 -0
- /package/dist/{chunk-WCGJK4NQ.js.map → chunk-5FNZ3G6X.js.map} +0 -0
- /package/dist/{chunk-Y6DZ33PA.js.map → chunk-5GX5457J.js.map} +0 -0
- /package/dist/{chunk-OFCHT2TN.js.map → chunk-5LRV557D.js.map} +0 -0
- /package/dist/{chunk-VAOC6GHN.js.map → chunk-5PHOU5QI.js.map} +0 -0
- /package/dist/{chunk-WL7N5VGG.js.map → chunk-5TJEOU6Y.js.map} +0 -0
- /package/dist/{chunk-A2L3P2IY.js.map → chunk-5WCJLQTM.js.map} +0 -0
- /package/dist/{chunk-MZBWIJJN.js.map → chunk-63B2IZYE.js.map} +0 -0
- /package/dist/{chunk-DGRMWDQY.js.map → chunk-66BCOVW2.js.map} +0 -0
- /package/dist/{chunk-P2S6P7X6.js.map → chunk-6LG7BWKW.js.map} +0 -0
- /package/dist/{chunk-4G2YCKLT.js.map → chunk-7G5NTS7F.js.map} +0 -0
- /package/dist/{chunk-IPLYGWQF.js.map → chunk-7LCGFUMB.js.map} +0 -0
- /package/dist/{chunk-KYY4EACB.js.map → chunk-7Z3DLNSD.js.map} +0 -0
- /package/dist/{chunk-7SUWY37K.js.map → chunk-B665A6BO.js.map} +0 -0
- /package/dist/{chunk-AEGNDL24.js.map → chunk-BVRZSI7Q.js.map} +0 -0
- /package/dist/{chunk-KJOGIRMF.js.map → chunk-CB6ANA2I.js.map} +0 -0
- /package/dist/{chunk-5JMI26Q7.js.map → chunk-CBH2Z4UA.js.map} +0 -0
- /package/dist/{chunk-W4RLOZOG.js.map → chunk-CJRENHVZ.js.map} +0 -0
- /package/dist/{chunk-LOFVW6JA.js.map → chunk-CLWBFR7Q.js.map} +0 -0
- /package/dist/{chunk-6VAHJ2F6.js.map → chunk-DMDWFQMR.js.map} +0 -0
- /package/dist/{chunk-MO25AN7J.js.map → chunk-DPR2WTN3.js.map} +0 -0
- /package/dist/{chunk-JXSYWTFK.js.map → chunk-DYJHGJZ4.js.map} +0 -0
- /package/dist/{chunk-5X4ZJESN.js.map → chunk-EH4BQ7LT.js.map} +0 -0
- /package/dist/{chunk-JXWTPOMJ.js.map → chunk-EPJDSQHF.js.map} +0 -0
- /package/dist/{chunk-OEIA4IHU.js.map → chunk-ESG6ITGP.js.map} +0 -0
- /package/dist/{chunk-7XI2UJHL.js.map → chunk-ETZUIRCI.js.map} +0 -0
- /package/dist/{chunk-PPIASWWR.js.map → chunk-EU534WGS.js.map} +0 -0
- /package/dist/{chunk-E6KXJSMA.js.map → chunk-EUCYTCFP.js.map} +0 -0
- /package/dist/{chunk-YNDLCWXS.js.map → chunk-EZ25VE3G.js.map} +0 -0
- /package/dist/{chunk-6OAXWYE3.js.map → chunk-FFOVKNQV.js.map} +0 -0
- /package/dist/{chunk-2KRNPFPK.js.map → chunk-FLI6DEIU.js.map} +0 -0
- /package/dist/{chunk-4G4B3Z2B.js.map → chunk-FP4JYE66.js.map} +0 -0
- /package/dist/{chunk-PDVWGGX4.js.map → chunk-FSIMZNBC.js.map} +0 -0
- /package/dist/{chunk-OAIWPB2I.js.map → chunk-FT4UQYOV.js.map} +0 -0
- /package/dist/{chunk-D5UPBXZM.js.map → chunk-FUFAXVBA.js.map} +0 -0
- /package/dist/{chunk-GKOML66M.js.map → chunk-G2OYFTUD.js.map} +0 -0
- /package/dist/{chunk-XTN54NML.js.map → chunk-G3T6YMBO.js.map} +0 -0
- /package/dist/{chunk-KWVI52ER.js.map → chunk-GELS5Z5Z.js.map} +0 -0
- /package/dist/{chunk-J6FFBORM.js.map → chunk-GH7AOMJD.js.map} +0 -0
- /package/dist/{chunk-TCYLCPC6.js.map → chunk-GKJJNO7C.js.map} +0 -0
- /package/dist/{chunk-N75Q5ZSP.js.map → chunk-GMXWTJNU.js.map} +0 -0
- /package/dist/{chunk-B657ZGDH.js.map → chunk-HQSK2INQ.js.map} +0 -0
- /package/dist/{chunk-SQA2MM2F.js.map → chunk-I7S55EOB.js.map} +0 -0
- /package/dist/{chunk-CAUNCRLQ.js.map → chunk-J7JWFZHI.js.map} +0 -0
- /package/dist/{chunk-NQMG2W5L.js.map → chunk-JDZFIR2S.js.map} +0 -0
- /package/dist/{chunk-O52WWLKU.js.map → chunk-JIHMUOOS.js.map} +0 -0
- /package/dist/{chunk-VUQDJ3JB.js.map → chunk-JPTPS4OB.js.map} +0 -0
- /package/dist/{chunk-WXFKXCOQ.js.map → chunk-JQ7XU625.js.map} +0 -0
- /package/dist/{chunk-3I3U6FFT.js.map → chunk-K7BN34IA.js.map} +0 -0
- /package/dist/{chunk-7OAIOE5P.js.map → chunk-KH2LKDX7.js.map} +0 -0
- /package/dist/{chunk-VDXTXVFZ.js.map → chunk-KR6ZKECI.js.map} +0 -0
- /package/dist/{chunk-MK552I5J.js.map → chunk-L5DAHSEZ.js.map} +0 -0
- /package/dist/{chunk-XQIHFXYP.js.map → chunk-LCKVXX5F.js.map} +0 -0
- /package/dist/{chunk-ZI7LMSNI.js.map → chunk-LLHZZOIB.js.map} +0 -0
- /package/dist/{chunk-E57LYSHI.js.map → chunk-LZACDIM2.js.map} +0 -0
- /package/dist/{chunk-QAIKLICT.js.map → chunk-M7KGIW5F.js.map} +0 -0
- /package/dist/{chunk-55ZVZBX4.js.map → chunk-MATDGSJ7.js.map} +0 -0
- /package/dist/{chunk-3NFN4Y4P.js.map → chunk-MGCKZWAE.js.map} +0 -0
- /package/dist/{chunk-YS7SA4HD.js.map → chunk-ML7ZJAKJ.js.map} +0 -0
- /package/dist/{chunk-YDH2FSDI.js.map → chunk-N45NEBOD.js.map} +0 -0
- /package/dist/{chunk-7UX44C4N.js.map → chunk-N4C7QKOG.js.map} +0 -0
- /package/dist/{chunk-YYNHJF3N.js.map → chunk-N7KYEVLK.js.map} +0 -0
- /package/dist/{chunk-HT2C4EXO.js.map → chunk-NIRQGDYC.js.map} +0 -0
- /package/dist/{chunk-DXHVD4DS.js.map → chunk-NW2E4CI2.js.map} +0 -0
- /package/dist/{chunk-BFIZXFUG.js.map → chunk-NWIT3U2N.js.map} +0 -0
- /package/dist/{chunk-4NDWE44P.js.map → chunk-NZFFGO5O.js.map} +0 -0
- /package/dist/{chunk-MB5EJ2CT.js.map → chunk-O2IPAX26.js.map} +0 -0
- /package/dist/{chunk-UOA2VQ7C.js.map → chunk-O4SGYW7H.js.map} +0 -0
- /package/dist/{chunk-SSAXGPXY.js.map → chunk-OP6N4H6A.js.map} +0 -0
- /package/dist/{chunk-ZSJGYC3C.js.map → chunk-OQJKY3Z5.js.map} +0 -0
- /package/dist/{chunk-OFEHITAZ.js.map → chunk-OXNTOHL6.js.map} +0 -0
- /package/dist/{chunk-CDWFWOSZ.js.map → chunk-P4JED3ZL.js.map} +0 -0
- /package/dist/{chunk-FQD2KPQH.js.map → chunk-P55FACBG.js.map} +0 -0
- /package/dist/{chunk-KX36OCGK.js.map → chunk-P5NQN4JE.js.map} +0 -0
- /package/dist/{chunk-3ZCRHW7U.js.map → chunk-P7TOIOT7.js.map} +0 -0
- /package/dist/{chunk-PBVNVKYN.js.map → chunk-PIN5OPBA.js.map} +0 -0
- /package/dist/{chunk-O6YDGTH4.js.map → chunk-PZHQWFR3.js.map} +0 -0
- /package/dist/{chunk-SVDU4OHO.js.map → chunk-Q35L7TYB.js.map} +0 -0
- /package/dist/{chunk-SOJ3IQD3.js.map → chunk-QODKDRSP.js.map} +0 -0
- /package/dist/{chunk-VJGDQA3D.js.map → chunk-QOZJCSFO.js.map} +0 -0
- /package/dist/{chunk-6T42L5FI.js.map → chunk-QS3OLP5I.js.map} +0 -0
- /package/dist/{chunk-PAAJWQH5.js.map → chunk-QUMKDRCF.js.map} +0 -0
- /package/dist/{chunk-4TP3MJ3D.js.map → chunk-QX6JN3O4.js.map} +0 -0
- /package/dist/{chunk-KZEMFD6E.js.map → chunk-R2H4ZFBJ.js.map} +0 -0
- /package/dist/{chunk-N6UMXWBA.js.map → chunk-RTKV5XHL.js.map} +0 -0
- /package/dist/{chunk-ZQ3WU6JO.js.map → chunk-RXFCU3CY.js.map} +0 -0
- /package/dist/{chunk-BOOFTFFE.js.map → chunk-S2I7DL5Q.js.map} +0 -0
- /package/dist/{chunk-2NCBDGND.js.map → chunk-SA6GMZJY.js.map} +0 -0
- /package/dist/{chunk-2AFHZTPI.js.map → chunk-SIIRTDJ4.js.map} +0 -0
- /package/dist/{chunk-WH4QXVKU.js.map → chunk-SS3IS2JR.js.map} +0 -0
- /package/dist/{chunk-VFTK5WKI.js.map → chunk-STBX5X6B.js.map} +0 -0
- /package/dist/{chunk-WVHRNAXL.js.map → chunk-SWWHIJUJ.js.map} +0 -0
- /package/dist/{chunk-WADSXS4K.js.map → chunk-SX4QDWXK.js.map} +0 -0
- /package/dist/{chunk-2U4BM3TW.js.map → chunk-TITG2NBS.js.map} +0 -0
- /package/dist/{chunk-A5ZYP4K5.js.map → chunk-TNRCDMQT.js.map} +0 -0
- /package/dist/{chunk-LZKOVXMX.js.map → chunk-TRMJ6BYC.js.map} +0 -0
- /package/dist/{chunk-VA2HNBGQ.js.map → chunk-TZNDKTX5.js.map} +0 -0
- /package/dist/{chunk-OFDIGTC2.js.map → chunk-UMTCNEVQ.js.map} +0 -0
- /package/dist/{chunk-AAM66QCP.js.map → chunk-UZRSI6NX.js.map} +0 -0
- /package/dist/{chunk-2CXQZXWM.js.map → chunk-V4MB5ONM.js.map} +0 -0
- /package/dist/{chunk-5BUCKFRE.js.map → chunk-VOKHZRHW.js.map} +0 -0
- /package/dist/{chunk-CYEK6Z3P.js.map → chunk-VW6VIJOS.js.map} +0 -0
- /package/dist/{chunk-I2M4ZVDD.js.map → chunk-W47S5TIH.js.map} +0 -0
- /package/dist/{chunk-CBP4HWCL.js.map → chunk-W5MCEVUS.js.map} +0 -0
- /package/dist/{chunk-E5H4TM4Y.js.map → chunk-WC3V7HHP.js.map} +0 -0
- /package/dist/{chunk-WCTL3PVM.js.map → chunk-WLMZ2L5P.js.map} +0 -0
- /package/dist/{chunk-SQ2O52SU.js.map → chunk-WSGPFRBH.js.map} +0 -0
- /package/dist/{chunk-BH44JOLA.js.map → chunk-WVADKFWV.js.map} +0 -0
- /package/dist/{chunk-JVNEXW6X.js.map → chunk-XISROV24.js.map} +0 -0
- /package/dist/{chunk-FZVROZKC.js.map → chunk-XVZA6VXC.js.map} +0 -0
- /package/dist/{chunk-56GJLXBA.js.map → chunk-Y4NKEXQT.js.map} +0 -0
- /package/dist/{chunk-EKKAHJ4B.js.map → chunk-YE36AJL7.js.map} +0 -0
- /package/dist/{chunk-OGWEWJRH.js.map → chunk-YFMBHQRG.js.map} +0 -0
- /package/dist/{chunk-JLIGUFPF.js.map → chunk-YN2DQ2D6.js.map} +0 -0
- /package/dist/{chunk-RBJQYMMT.js.map → chunk-YRULQW5J.js.map} +0 -0
- /package/dist/{chunk-UCJINCZT.js.map → chunk-YUZRI3QU.js.map} +0 -0
- /package/dist/{chunk-QUNDYIYZ.js.map → chunk-YYEOR4XN.js.map} +0 -0
- /package/dist/{chunk-O5MW6CQL.js.map → chunk-ZJVMUBYF.js.map} +0 -0
- /package/dist/{chunk-VBJD4RSJ.js.map → chunk-ZSH2NRDV.js.map} +0 -0
- /package/dist/{chunk-BX4WDBTE.js.map → chunk-ZV65I6ME.js.map} +0 -0
- /package/dist/{resolution-E4GLHLY6.js.map → contradiction-scan-P7KXB5R4.js.map} +0 -0
- /package/dist/{first-start-migration-OM3PHMZO.js.map → first-start-migration-6A5BJPDW.js.map} +0 -0
- /package/dist/{tier-stats-M2FMMD2N.js.map → tier-stats-RQM76XYY.js.map} +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Quote-anchored source grounding.
|
|
3
|
+
*
|
|
4
|
+
* An extracted fact carries the exact words that support it in `quote`. A quote
|
|
5
|
+
* that is a verbatim substring of the source (whitespace-normalized) is real
|
|
6
|
+
* evidence: the claim only has to be supported by the text around that span,
|
|
7
|
+
* not by word overlap against the whole conversation. Items without such a
|
|
8
|
+
* quote never get an anchor here and stay on the whole-source rules.
|
|
9
|
+
*/
|
|
10
|
+
import type { ExtractionResult } from "./types.js";
|
|
11
|
+
/** Shortest normalized quote that counts as evidence; "the" or "I" prove nothing. */
|
|
12
|
+
export declare const QUOTE_ANCHOR_MIN_CHARS = 12;
|
|
13
|
+
/** Characters of context kept on each side of the quote inside its turn. */
|
|
14
|
+
export declare const QUOTE_ANCHOR_CONTEXT_CHARS = 400;
|
|
15
|
+
/** Share of a claim's content words that must occur in the quote's window. */
|
|
16
|
+
export declare const QUOTE_ANCHOR_MIN_WINDOW_COVERAGE = 0.35;
|
|
17
|
+
/** Share of a claim's content words that must occur anywhere in the source; the rest is invented. */
|
|
18
|
+
export declare const QUOTE_ANCHOR_MIN_SOURCE_COVERAGE = 0.75;
|
|
19
|
+
/** A verbatim quote and the text around it inside its turn. */
|
|
20
|
+
export interface QuoteAnchor {
|
|
21
|
+
/** Whitespace-normalized quote, exactly as it appears in the source. */
|
|
22
|
+
quote: string;
|
|
23
|
+
/** `quote` with its turn-local context; `;` inside the quote is rewritten to `,`. */
|
|
24
|
+
window: string;
|
|
25
|
+
}
|
|
26
|
+
export type TokenPool = (token: string) => boolean;
|
|
27
|
+
type Entity = ExtractionResult["entities"][number];
|
|
28
|
+
type Relationship = NonNullable<ExtractionResult["relationships"]>[number];
|
|
29
|
+
/**
|
|
30
|
+
* Returns one anchor per place `quote` occurs verbatim in `source`, or [] when
|
|
31
|
+
* the quote is absent, too short, or not an exact substring. A quote that
|
|
32
|
+
* spans a turn separator is not one turn's words and yields no anchor; windows
|
|
33
|
+
* never extend past their turn.
|
|
34
|
+
*
|
|
35
|
+
* The quote is one evidence unit: a `;` inside it is rewritten to `,` in the
|
|
36
|
+
* window so sentence splitting cannot cut it, or a claim that merges two of
|
|
37
|
+
* its clauses could never be grounded in a single sentence.
|
|
38
|
+
*
|
|
39
|
+
* `source` may have been rewritten before grounding (temporal anchoring,
|
|
40
|
+
* pronoun resolution) while the model quoted the original words. When the raw
|
|
41
|
+
* quote is not found, `transformQuote` applies the same rewrite to the quote.
|
|
42
|
+
*/
|
|
43
|
+
export declare function quoteAnchors(quote: string | undefined, source: string, transformQuote?: (quote: string) => string): QuoteAnchor[];
|
|
44
|
+
export declare function tokenPool(tokens: ReadonlySet<string>): TokenPool;
|
|
45
|
+
/**
|
|
46
|
+
* A claim is supported by a verbatim quote when it shares at least
|
|
47
|
+
* GROUNDING_MIN_SHARED_TOKENS content words with the quote, a good part of its
|
|
48
|
+
* words sit in the text around the quote, nearly all of them occur in the
|
|
49
|
+
* source at all, and it does not invert a negated clause of the quote. Reworded
|
|
50
|
+
* and lightly elaborated claims pass; claims that bring words the conversation
|
|
51
|
+
* never used, or that have nothing to do with the quote, do not.
|
|
52
|
+
*/
|
|
53
|
+
export declare function isQuoteAnchoredClaim(content: string, anchor: QuoteAnchor, sourceHas: TokenPool): boolean;
|
|
54
|
+
/** Keeps the entity facts (flat and sectioned) `isSupported` accepts; undefined when none remain. */
|
|
55
|
+
export declare function filterEntityFacts(entity: Entity, isSupported: (fact: string) => boolean): Entity | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Entities carry no quote of their own; the anchors of facts that kept support
|
|
58
|
+
* them. Returns a fact predicate, or undefined when no anchor window names the entity.
|
|
59
|
+
*/
|
|
60
|
+
export declare function quoteAnchoredEntitySupport(entity: Entity, anchors: readonly QuoteAnchor[], sourceHas: TokenPool): ((fact: string) => boolean) | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* The label words and both names must sit in one anchor-window sentence, source
|
|
63
|
+
* before target, so an invented label or a reversed edge never passes.
|
|
64
|
+
*/
|
|
65
|
+
export declare function isQuoteAnchoredRelationship(relationship: Relationship, anchors: readonly QuoteAnchor[], sourceHas: TokenPool): boolean;
|
|
66
|
+
export {};
|
|
67
|
+
//# sourceMappingURL=extraction-quote-grounding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extraction-quote-grounding.d.ts","sourceRoot":"","sources":["../src/extraction-quote-grounding.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAanD,qFAAqF;AACrF,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,4EAA4E;AAC5E,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,8EAA8E;AAC9E,eAAO,MAAM,gCAAgC,OAAO,CAAC;AACrD,qGAAqG;AACrG,eAAO,MAAM,gCAAgC,OAAO,CAAC;AAOrD,+DAA+D;AAC/D,MAAM,WAAW,WAAW;IAC1B,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,qFAAqF;IACrF,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;AAEnD,KAAK,MAAM,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AACnD,KAAK,YAAY,GAAG,WAAW,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAkD3E;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,MAAM,EAAE,MAAM,EACd,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACzC,WAAW,EAAE,CAKf;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAGhE;AA2BD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAWxG;AAED,qGAAqG;AACrG,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GAAG,MAAM,GAAG,SAAS,CAe5G;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,SAAS,WAAW,EAAE,EAC/B,SAAS,EAAE,SAAS,GACnB,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,SAAS,CAIzC;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,SAAS,WAAW,EAAE,EAC/B,SAAS,EAAE,SAAS,GACnB,OAAO,CAiBT"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
QUOTE_ANCHOR_CONTEXT_CHARS,
|
|
3
|
+
QUOTE_ANCHOR_MIN_CHARS,
|
|
4
|
+
QUOTE_ANCHOR_MIN_SOURCE_COVERAGE,
|
|
5
|
+
QUOTE_ANCHOR_MIN_WINDOW_COVERAGE,
|
|
6
|
+
filterEntityFacts,
|
|
7
|
+
isQuoteAnchoredClaim,
|
|
8
|
+
isQuoteAnchoredRelationship,
|
|
9
|
+
quoteAnchoredEntitySupport,
|
|
10
|
+
quoteAnchors,
|
|
11
|
+
tokenPool
|
|
12
|
+
} from "./chunk-77R7BQZ2.js";
|
|
13
|
+
import "./chunk-AIYXVWUH.js";
|
|
14
|
+
import "./chunk-PZ5AY32C.js";
|
|
15
|
+
export {
|
|
16
|
+
QUOTE_ANCHOR_CONTEXT_CHARS,
|
|
17
|
+
QUOTE_ANCHOR_MIN_CHARS,
|
|
18
|
+
QUOTE_ANCHOR_MIN_SOURCE_COVERAGE,
|
|
19
|
+
QUOTE_ANCHOR_MIN_WINDOW_COVERAGE,
|
|
20
|
+
filterEntityFacts,
|
|
21
|
+
isQuoteAnchoredClaim,
|
|
22
|
+
isQuoteAnchoredRelationship,
|
|
23
|
+
quoteAnchoredEntitySupport,
|
|
24
|
+
quoteAnchors,
|
|
25
|
+
tokenPool
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=extraction-quote-grounding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -41,4 +41,12 @@ export declare function normalizedGroundingAlignmentTokenSequence(text: string):
|
|
|
41
41
|
export declare function normalizedGroundingTokenSequence(text: string): string[];
|
|
42
42
|
export declare function areGroundingTokensCompatible(left: string, right: string): boolean;
|
|
43
43
|
export declare function hasContradictoryPolarity(candidate: string, source: string): boolean;
|
|
44
|
+
export declare function normalizedEntityIdentifierTokens(name: string): string[];
|
|
45
|
+
/** Index of the entity name's tokens inside the sentence's token sequence, or -1. */
|
|
46
|
+
export declare function entityNameStart(name: string, sentence: string): number;
|
|
47
|
+
export declare function isGroundedEntityName(name: string, source: string): boolean;
|
|
48
|
+
/** True when the text reports a claim without asserting it ("suspects", "alleged", "said"). */
|
|
49
|
+
export declare function hasNonAssertiveReporting(text: string): boolean;
|
|
50
|
+
/** True when the text reports a denial ("denied", "refuses"). */
|
|
51
|
+
export declare function hasDenialReporting(text: string): boolean;
|
|
44
52
|
//# sourceMappingURL=extraction-source-grounding-helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraction-source-grounding-helpers.d.ts","sourceRoot":"","sources":["../src/extraction-source-grounding-helpers.ts"],"names":[],"mappings":"AAAA,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAgBvE;AAED,wBAAgB,iCAAiC,CAC/C,e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E1E;AAED,+FAA+F;AAC/F,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED,iEAAiE;AACjE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD"}
|
|
@@ -11,15 +11,20 @@ import {
|
|
|
11
11
|
areGroundingTokensCompatible,
|
|
12
12
|
containsContiguousGroundingTokens,
|
|
13
13
|
containsExactTokenSequence,
|
|
14
|
+
entityNameStart,
|
|
14
15
|
groundingLexemes,
|
|
15
16
|
groundingTokenSequence,
|
|
16
17
|
hasContradictoryPolarity,
|
|
18
|
+
hasDenialReporting,
|
|
17
19
|
hasExplicitRoleSubjectToken,
|
|
20
|
+
hasNonAssertiveReporting,
|
|
18
21
|
isAttachedNegatedAuxiliary,
|
|
22
|
+
isGroundedEntityName,
|
|
19
23
|
isInterrogativeSourceSentence,
|
|
20
24
|
isNegatedAt,
|
|
21
25
|
isNegationCue,
|
|
22
26
|
normalizeForExactMatch,
|
|
27
|
+
normalizedEntityIdentifierTokens,
|
|
23
28
|
normalizedGroundingAlignmentTokenSequence,
|
|
24
29
|
normalizedGroundingTokenSequence,
|
|
25
30
|
sourceSentences,
|
|
@@ -28,7 +33,7 @@ import {
|
|
|
28
33
|
stemToken,
|
|
29
34
|
tokenSequence,
|
|
30
35
|
tokenize
|
|
31
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-AIYXVWUH.js";
|
|
32
37
|
import "./chunk-PZ5AY32C.js";
|
|
33
38
|
export {
|
|
34
39
|
GROUNDING_AUXILIARY_TOKENS,
|
|
@@ -43,15 +48,20 @@ export {
|
|
|
43
48
|
areGroundingTokensCompatible,
|
|
44
49
|
containsContiguousGroundingTokens,
|
|
45
50
|
containsExactTokenSequence,
|
|
51
|
+
entityNameStart,
|
|
46
52
|
groundingLexemes,
|
|
47
53
|
groundingTokenSequence,
|
|
48
54
|
hasContradictoryPolarity,
|
|
55
|
+
hasDenialReporting,
|
|
49
56
|
hasExplicitRoleSubjectToken,
|
|
57
|
+
hasNonAssertiveReporting,
|
|
50
58
|
isAttachedNegatedAuxiliary,
|
|
59
|
+
isGroundedEntityName,
|
|
51
60
|
isInterrogativeSourceSentence,
|
|
52
61
|
isNegatedAt,
|
|
53
62
|
isNegationCue,
|
|
54
63
|
normalizeForExactMatch,
|
|
64
|
+
normalizedEntityIdentifierTokens,
|
|
55
65
|
normalizedGroundingAlignmentTokenSequence,
|
|
56
66
|
normalizedGroundingTokenSequence,
|
|
57
67
|
sourceSentences,
|
|
@@ -3,11 +3,13 @@ export interface ExtractionSourceGroundingOptions {
|
|
|
3
3
|
sourceGrounding: boolean;
|
|
4
4
|
anchorTemporalExpressions: boolean;
|
|
5
5
|
spanMode?: "off" | "shadow" | "on";
|
|
6
|
+
/** Rewrite applied to the source before this stage, so a verbatim quote can still be located in it. */
|
|
7
|
+
quoteTransform?: (quote: string) => string;
|
|
6
8
|
}
|
|
7
9
|
export declare function applyExtractionSourceGrounding(result: ExtractionResult, sourceText: string, assertionSourceText: string | undefined, roleAssertionSources: ExtractionGroundingRoleSources | undefined, messageTimestamp: Date | undefined, options: ExtractionSourceGroundingOptions): ExtractionResult;
|
|
8
10
|
export interface ExtractionGroundingRoleSources {
|
|
9
11
|
profile?: string;
|
|
10
12
|
identity?: string;
|
|
11
13
|
}
|
|
12
|
-
export declare function filterExtractionResultBySource(result: ExtractionResult, source: string, assertionSource?: string, roleAssertionSources?: ExtractionGroundingRoleSources, eventTimeNormalizer?: (eventTime: string) => string, spanMode?: "off" | "shadow" | "on"): ExtractionResult;
|
|
14
|
+
export declare function filterExtractionResultBySource(result: ExtractionResult, source: string, assertionSource?: string, roleAssertionSources?: ExtractionGroundingRoleSources, eventTimeNormalizer?: (eventTime: string) => string, spanMode?: "off" | "shadow" | "on", quoteTransform?: (quote: string) => string): ExtractionResult;
|
|
13
15
|
//# sourceMappingURL=extraction-source-grounding-rules.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraction-source-grounding-rules.d.ts","sourceRoot":"","sources":["../src/extraction-source-grounding-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"extraction-source-grounding-rules.d.ts","sourceRoot":"","sources":["../src/extraction-source-grounding-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAuCnD,MAAM,WAAW,gCAAgC;IAC/C,eAAe,EAAE,OAAO,CAAC;IACzB,yBAAyB,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,IAAI,CAAC;IACnC,uGAAuG;IACvG,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5C;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,gBAAgB,EACxB,UAAU,EAAE,MAAM,EAClB,mBAAmB,EAAE,MAAM,YAAa,EACxC,oBAAoB,EAAE,8BAA8B,GAAG,SAAS,EAChE,gBAAgB,EAAE,IAAI,GAAG,SAAS,EAClC,OAAO,EAAE,gCAAgC,GACxC,gBAAgB,CA2BlB;AAED,MAAM,WAAW,8BAA8B;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAigCD,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,gBAAgB,EACxB,MAAM,EAAE,MAAM,EACd,eAAe,CAAC,EAAE,MAAM,EACxB,oBAAoB,CAAC,EAAE,8BAA8B,EACrD,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,EACnD,QAAQ,GAAE,KAAK,GAAG,QAAQ,GAAG,IAAY,EACzC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACzC,gBAAgB,CAqElB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyExtractionSourceGrounding,
|
|
3
3
|
filterExtractionResultBySource
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-D5SSBCYY.js";
|
|
5
|
+
import "./chunk-77R7BQZ2.js";
|
|
6
|
+
import "./chunk-AIYXVWUH.js";
|
|
6
7
|
import "./chunk-VEWZZM3H.js";
|
|
7
8
|
import "./chunk-PZ5AY32C.js";
|
|
8
9
|
export {
|
|
@@ -15,5 +15,5 @@ export declare function attachExtractionProvenance(result: ExtractionResult, tur
|
|
|
15
15
|
timestamp: string;
|
|
16
16
|
turnFingerprint?: string;
|
|
17
17
|
}>, provenanceConfig: ProvenanceConfig): ExtractionResult;
|
|
18
|
-
export declare function filterExtractionResultBySource(result: ExtractionResult, source: string, assertionSource?: string, roleAssertionSources?: ExtractionGroundingRoleSources, eventTimeNormalizer?: (eventTime: string) => string, spanMode?: "off" | "shadow" | "on"): ExtractionResult;
|
|
18
|
+
export declare function filterExtractionResultBySource(result: ExtractionResult, source: string, assertionSource?: string, roleAssertionSources?: ExtractionGroundingRoleSources, eventTimeNormalizer?: (eventTime: string) => string, spanMode?: "off" | "shadow" | "on", quoteTransform?: (quote: string) => string): ExtractionResult;
|
|
19
19
|
//# sourceMappingURL=extraction-source-grounding.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraction-source-grounding.d.ts","sourceRoot":"","sources":["../src/extraction-source-grounding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAOrE,OAAO,KAAK,EACV,8BAA8B,EAC9B,gCAAgC,EACjC,MAAM,wCAAwC,CAAC;AAEhD,YAAY,EAAE,8BAA8B,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAE/H,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,gBAAgB,EACxB,UAAU,EAAE,MAAM,EAClB,mBAAmB,EAAE,MAAM,YAAa,EACxC,oBAAoB,EAAE,8BAA8B,GAAG,SAAS,EAChE,gBAAgB,EAAE,IAAI,GAAG,SAAS,EAClC,OAAO,EAAE,gCAAgC,GACxC,gBAAgB,CAmBlB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,gBAAgB,EACxB,KAAK,EAAE,aAAa,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC,EACF,gBAAgB,EAAE,gBAAgB,GACjC,gBAAgB,CAmClB;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,gBAAgB,EACxB,MAAM,EAAE,MAAM,EACd,eAAe,CAAC,EAAE,MAAM,EACxB,oBAAoB,CAAC,EAAE,8BAA8B,EACrD,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,EACnD,QAAQ,GAAE,KAAK,GAAG,QAAQ,GAAG,IAAY,
|
|
1
|
+
{"version":3,"file":"extraction-source-grounding.d.ts","sourceRoot":"","sources":["../src/extraction-source-grounding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAOrE,OAAO,KAAK,EACV,8BAA8B,EAC9B,gCAAgC,EACjC,MAAM,wCAAwC,CAAC;AAEhD,YAAY,EAAE,8BAA8B,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAE/H,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,gBAAgB,EACxB,UAAU,EAAE,MAAM,EAClB,mBAAmB,EAAE,MAAM,YAAa,EACxC,oBAAoB,EAAE,8BAA8B,GAAG,SAAS,EAChE,gBAAgB,EAAE,IAAI,GAAG,SAAS,EAClC,OAAO,EAAE,gCAAgC,GACxC,gBAAgB,CAmBlB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,gBAAgB,EACxB,KAAK,EAAE,aAAa,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC,EACF,gBAAgB,EAAE,gBAAgB,GACjC,gBAAgB,CAmClB;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,gBAAgB,EACxB,MAAM,EAAE,MAAM,EACd,eAAe,CAAC,EAAE,MAAM,EACxB,oBAAoB,CAAC,EAAE,8BAA8B,EACrD,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,EACnD,QAAQ,GAAE,KAAK,GAAG,QAAQ,GAAG,IAAY,EACzC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACzC,gBAAgB,CAUlB"}
|
|
@@ -2,9 +2,10 @@ import {
|
|
|
2
2
|
applyExtractionSourceGrounding,
|
|
3
3
|
attachExtractionProvenance,
|
|
4
4
|
filterExtractionResultBySource
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-CIIHIAJ2.js";
|
|
6
|
+
import "./chunk-D5SSBCYY.js";
|
|
7
|
+
import "./chunk-77R7BQZ2.js";
|
|
8
|
+
import "./chunk-AIYXVWUH.js";
|
|
8
9
|
import "./chunk-VEWZZM3H.js";
|
|
9
10
|
import "./chunk-FF6N7BXC.js";
|
|
10
11
|
import "./chunk-PQVCH2AE.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
spanAgreesWithContent,
|
|
10
10
|
stripUntrustedFactSpans,
|
|
11
11
|
truncateLocalExtractionConversation
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XVZA6VXC.js";
|
|
13
|
+
import "./chunk-JE26AUX6.js";
|
|
13
14
|
import "./chunk-A6CXG5WI.js";
|
|
14
15
|
import "./chunk-QJ2AX6DU.js";
|
|
15
|
-
import "./chunk-JE26AUX6.js";
|
|
16
16
|
import "./chunk-3WCASNQZ.js";
|
|
17
17
|
import "./chunk-PZ5AY32C.js";
|
|
18
18
|
export {
|
package/dist/extraction.js
CHANGED
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ExtractionEngine,
|
|
3
3
|
shouldEnableLocalExtractionThinking
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-WSGPFRBH.js";
|
|
5
|
+
import "./chunk-22W2XWGH.js";
|
|
6
6
|
import "./chunk-54V4BZWP.js";
|
|
7
7
|
import "./chunk-2CGLBUW3.js";
|
|
8
8
|
import "./chunk-AAQA6ZUP.js";
|
|
9
9
|
import "./chunk-JHU4EYDV.js";
|
|
10
10
|
import "./chunk-E4X2YX2F.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-XVZA6VXC.js";
|
|
12
|
+
import "./chunk-JE26AUX6.js";
|
|
12
13
|
import "./chunk-A6CXG5WI.js";
|
|
13
14
|
import "./chunk-QJ2AX6DU.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-CIIHIAJ2.js";
|
|
16
|
+
import "./chunk-D5SSBCYY.js";
|
|
17
|
+
import "./chunk-77R7BQZ2.js";
|
|
18
|
+
import "./chunk-AIYXVWUH.js";
|
|
19
|
+
import "./chunk-BVRZSI7Q.js";
|
|
19
20
|
import {
|
|
20
21
|
classifyExtractionThrownError,
|
|
21
22
|
classifyFallbackParseFailure,
|
|
22
23
|
formatExtractionParseFailureLog
|
|
23
24
|
} from "./chunk-PJRKLB4Z.js";
|
|
24
25
|
import "./chunk-VEWZZM3H.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-7G5NTS7F.js";
|
|
26
27
|
import "./chunk-C7SRUWBW.js";
|
|
27
28
|
import "./chunk-5JMAGU26.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-YN2DQ2D6.js";
|
|
29
30
|
import "./chunk-4RA3C3EV.js";
|
|
30
31
|
import "./chunk-QW27DOHG.js";
|
|
31
32
|
import "./chunk-EI6V5UXY.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-M7KGIW5F.js";
|
|
34
|
+
import "./chunk-5TJEOU6Y.js";
|
|
34
35
|
import "./chunk-754XN6LX.js";
|
|
35
36
|
import "./chunk-BLVHDY2U.js";
|
|
36
37
|
import "./chunk-5MA7ZLPD.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-TITG2NBS.js";
|
|
38
39
|
import "./chunk-3UXOZBHV.js";
|
|
39
40
|
import "./chunk-PIWFNPQT.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-CLWBFR7Q.js";
|
|
42
|
+
import "./chunk-PIN5OPBA.js";
|
|
42
43
|
import "./chunk-CSAKJVXW.js";
|
|
43
44
|
import "./chunk-K2XUWZBM.js";
|
|
44
45
|
import "./chunk-OD4FM2U7.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-DYJHGJZ4.js";
|
|
46
47
|
import "./chunk-QM2SPLKQ.js";
|
|
47
48
|
import "./chunk-U4LUIE6Y.js";
|
|
48
49
|
import "./chunk-JUXOTY6J.js";
|
|
@@ -52,19 +53,19 @@ import "./chunk-ADXCCZL2.js";
|
|
|
52
53
|
import "./chunk-236PXYG7.js";
|
|
53
54
|
import "./chunk-ZCUTSMR2.js";
|
|
54
55
|
import "./chunk-QDW3E4RD.js";
|
|
55
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-PAZ35RJ4.js";
|
|
56
57
|
import "./chunk-UHVXE24Y.js";
|
|
57
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-TRMJ6BYC.js";
|
|
58
59
|
import "./chunk-V4JZCTMK.js";
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-N4C7QKOG.js";
|
|
61
|
+
import "./chunk-O2IPAX26.js";
|
|
62
|
+
import "./chunk-S7LWX2PQ.js";
|
|
63
|
+
import "./chunk-T2YX56QI.js";
|
|
61
64
|
import "./chunk-CYEPCZN5.js";
|
|
62
65
|
import "./chunk-T3FMRLWQ.js";
|
|
63
66
|
import "./chunk-7VO6E5UD.js";
|
|
64
|
-
import "./chunk-5BUCKFRE.js";
|
|
65
|
-
import "./chunk-S7LWX2PQ.js";
|
|
66
|
-
import "./chunk-T2YX56QI.js";
|
|
67
67
|
import "./chunk-4O6WRBGE.js";
|
|
68
|
+
import "./chunk-VOKHZRHW.js";
|
|
68
69
|
import "./chunk-GUMZC2BO.js";
|
|
69
70
|
import "./chunk-TFA6HPOA.js";
|
|
70
71
|
import "./chunk-F4TWWUMP.js";
|
|
@@ -74,37 +75,38 @@ import "./chunk-S2V7RUCL.js";
|
|
|
74
75
|
import "./chunk-X3724WL4.js";
|
|
75
76
|
import "./chunk-MRPOZBJC.js";
|
|
76
77
|
import "./chunk-S2HLHAZ4.js";
|
|
77
|
-
import "./chunk-LDXUBPMO.js";
|
|
78
78
|
import "./chunk-DM2T26WE.js";
|
|
79
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-LDXUBPMO.js";
|
|
80
80
|
import "./chunk-2DT7PIDZ.js";
|
|
81
81
|
import "./chunk-AAD2ZS6P.js";
|
|
82
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-FF6N7BXC.js";
|
|
83
|
+
import "./chunk-JNIVZNIB.js";
|
|
84
|
+
import "./chunk-YXZG5TVN.js";
|
|
83
85
|
import "./chunk-ZIKENA2C.js";
|
|
84
86
|
import "./chunk-3OUGSOJP.js";
|
|
85
87
|
import "./chunk-SCU65EZI.js";
|
|
86
88
|
import "./chunk-3ONXXHQO.js";
|
|
87
|
-
import "./chunk-YXZG5TVN.js";
|
|
88
|
-
import "./chunk-3WU7XOFN.js";
|
|
89
89
|
import "./chunk-6MKLMEBE.js";
|
|
90
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-3WU7XOFN.js";
|
|
91
|
+
import "./chunk-G7D6GZ5J.js";
|
|
92
|
+
import "./chunk-3GYSZHMT.js";
|
|
91
93
|
import "./chunk-M5GVCJSJ.js";
|
|
92
94
|
import "./chunk-RBOJCG4T.js";
|
|
93
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-NZFFGO5O.js";
|
|
94
96
|
import "./chunk-5WITETWU.js";
|
|
95
97
|
import "./chunk-6CIAGZ6X.js";
|
|
96
98
|
import "./chunk-7CT3AI52.js";
|
|
97
|
-
import "./chunk-
|
|
99
|
+
import "./chunk-6EDW54SQ.js";
|
|
98
100
|
import "./chunk-ZJP66Q4I.js";
|
|
99
|
-
import "./chunk-
|
|
101
|
+
import "./chunk-66BCOVW2.js";
|
|
100
102
|
import "./chunk-G26YNEOC.js";
|
|
103
|
+
import "./chunk-SWWHIJUJ.js";
|
|
104
|
+
import "./chunk-TPSLVZHS.js";
|
|
101
105
|
import "./chunk-SIGAGKNE.js";
|
|
102
106
|
import "./chunk-IUM3VSHI.js";
|
|
103
|
-
import "./chunk-WVHRNAXL.js";
|
|
104
|
-
import "./chunk-TPSLVZHS.js";
|
|
105
|
-
import "./chunk-23G5P7TA.js";
|
|
106
107
|
import "./chunk-C64XATK7.js";
|
|
107
108
|
import "./chunk-42JKGUFJ.js";
|
|
109
|
+
import "./chunk-23G5P7TA.js";
|
|
108
110
|
import "./chunk-TKC5LZ43.js";
|
|
109
111
|
import "./chunk-I55KAVET.js";
|
|
110
112
|
import "./chunk-L2EXJQJP.js";
|
|
@@ -118,39 +120,40 @@ import "./chunk-YCVB7X56.js";
|
|
|
118
120
|
import "./chunk-PQVCH2AE.js";
|
|
119
121
|
import "./chunk-PJKTFXE2.js";
|
|
120
122
|
import "./chunk-W5BIQOAJ.js";
|
|
121
|
-
import "./chunk-
|
|
123
|
+
import "./chunk-3MO4LWYU.js";
|
|
122
124
|
import "./chunk-YBA52OKG.js";
|
|
123
|
-
import "./chunk-
|
|
125
|
+
import "./chunk-K7BN34IA.js";
|
|
124
126
|
import "./chunk-353C5UNV.js";
|
|
125
|
-
import "./chunk-
|
|
127
|
+
import "./chunk-5LRV557D.js";
|
|
126
128
|
import "./chunk-BT7NVCML.js";
|
|
127
|
-
import "./chunk-
|
|
129
|
+
import "./chunk-STBX5X6B.js";
|
|
128
130
|
import "./chunk-BJMBJZ2Y.js";
|
|
129
131
|
import "./chunk-UKJAGEXH.js";
|
|
130
132
|
import "./chunk-FP2373TW.js";
|
|
131
|
-
import "./chunk-
|
|
133
|
+
import "./chunk-WC3V7HHP.js";
|
|
132
134
|
import "./chunk-L272A5QW.js";
|
|
133
|
-
import "./chunk-
|
|
135
|
+
import "./chunk-P55FACBG.js";
|
|
134
136
|
import "./chunk-ZA53AZND.js";
|
|
135
137
|
import "./chunk-7RJUVTVF.js";
|
|
136
138
|
import "./chunk-AL3UYZ5N.js";
|
|
137
139
|
import "./chunk-RL6NEVXT.js";
|
|
140
|
+
import "./chunk-YET735EZ.js";
|
|
138
141
|
import "./chunk-PWPIERBM.js";
|
|
139
142
|
import "./chunk-IG747LRN.js";
|
|
140
143
|
import "./chunk-C7HJ3NEI.js";
|
|
141
|
-
import "./chunk-
|
|
142
|
-
import "./chunk-BTNNL7ZW.js";
|
|
144
|
+
import "./chunk-DEY7B77Y.js";
|
|
143
145
|
import "./chunk-5FVVY2EB.js";
|
|
146
|
+
import "./chunk-BTNNL7ZW.js";
|
|
144
147
|
import "./chunk-JDSVLVCG.js";
|
|
145
148
|
import "./chunk-5GKPFL3S.js";
|
|
146
149
|
import "./chunk-JAKIDQB2.js";
|
|
147
|
-
import "./chunk-
|
|
150
|
+
import "./chunk-5B5WYAHQ.js";
|
|
148
151
|
import "./chunk-P7FMDTKL.js";
|
|
149
|
-
import "./chunk-
|
|
152
|
+
import "./chunk-ESG6ITGP.js";
|
|
150
153
|
import "./chunk-PCXDUHQH.js";
|
|
151
154
|
import "./chunk-VUFL7X3H.js";
|
|
152
|
-
import "./chunk-
|
|
153
|
-
import "./chunk-
|
|
155
|
+
import "./chunk-C5LWPYS3.js";
|
|
156
|
+
import "./chunk-PGRZ3FYC.js";
|
|
154
157
|
import "./chunk-3Q3N35W7.js";
|
|
155
158
|
import "./chunk-ZEFVK7XC.js";
|
|
156
159
|
import "./chunk-6KH5NLQS.js";
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
applyUtilityPromotionRuntimePolicy,
|
|
3
3
|
loadUtilityRuntimeValues
|
|
4
4
|
} from "./chunk-SWIKABKI.js";
|
|
5
|
-
import {
|
|
6
|
-
TierMigrationExecutor
|
|
7
|
-
} from "./chunk-YRFAYOFQ.js";
|
|
8
5
|
import {
|
|
9
6
|
decideTierTransition
|
|
10
7
|
} from "./chunk-GCBIXUPT.js";
|
|
8
|
+
import {
|
|
9
|
+
TierMigrationExecutor
|
|
10
|
+
} from "./chunk-YRFAYOFQ.js";
|
|
11
11
|
import "./chunk-W3K3HITK.js";
|
|
12
12
|
import "./chunk-EBA5DA77.js";
|
|
13
13
|
import "./chunk-TBBDFYXW.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
resolveMemoryLifecycleCapabilities,
|
|
24
24
|
resolveQmdCapabilities,
|
|
25
25
|
resolveUtilityLearningCapabilities
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-C5LWPYS3.js";
|
|
27
27
|
import "./chunk-A2IYSXDQ.js";
|
|
28
28
|
import "./chunk-B6O2YLUR.js";
|
|
29
29
|
import "./chunk-KNA3BXXL.js";
|
|
@@ -273,4 +273,4 @@ export {
|
|
|
273
273
|
LIFECYCLE_INIT_DONE_MARKER,
|
|
274
274
|
runFirstStartMigration
|
|
275
275
|
};
|
|
276
|
-
//# sourceMappingURL=first-start-migration-
|
|
276
|
+
//# sourceMappingURL=first-start-migration-6A5BJPDW.js.map
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildRetiredFactTombstoneInputs
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TRMJ6BYC.js";
|
|
4
4
|
import {
|
|
5
5
|
supersessionKeysForFact
|
|
6
6
|
} from "./chunk-5WITETWU.js";
|
|
7
7
|
import "./chunk-6CIAGZ6X.js";
|
|
8
8
|
import "./chunk-5FVVY2EB.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-5B5WYAHQ.js";
|
|
10
|
+
import "./chunk-PGRZ3FYC.js";
|
|
11
|
+
import "./chunk-BTTPKDIL.js";
|
|
11
12
|
import "./chunk-3WCASNQZ.js";
|
|
12
13
|
import "./chunk-PZ5AY32C.js";
|
|
13
14
|
|
|
@@ -99,4 +100,4 @@ export {
|
|
|
99
100
|
ForgetMemoryNotFoundError,
|
|
100
101
|
forgetMemory
|
|
101
102
|
};
|
|
102
|
-
//# sourceMappingURL=forget-
|
|
103
|
+
//# sourceMappingURL=forget-GXBWFKRC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/maintenance/forget.ts"],"sourcesContent":["/**\n * Operator-facing memory forgetting (issue #686 PR 4/6).\n *\n * `remnic forget <id>` marks a memory as forgotten — a soft-delete that:\n *\n * 1. Sets `status: \"forgotten\"`, `forgottenAt`, optional\n * `forgottenReason` in YAML frontmatter via the existing\n * `storage.writeMemoryFrontmatter` path (which logs the change\n * to the lifecycle ledger and invalidates caches).\n * 2. Returns a structured result describing what changed so the\n * CLI and downstream telemetry can render it.\n *\n * Memories with `status === \"forgotten\"` are excluded from recall,\n * browse, and entity attribution by the status filters that serve\n * active user context. A future maintenance cron will hard-delete\n * forgotten memories after a configurable retention window (default\n * 90 days) — for this PR the file stays on disk and the act is\n * reversible by editing the YAML directly.\n *\n * This module ships the pure helper; the CLI wires it in `cli.ts` as\n * a new `remnic forget` subcommand.\n */\n\nimport type { StorageManager } from \"../storage.js\";\nimport { buildRetiredFactTombstoneInputs } from \"../lifecycle/tombstones.js\";\nimport { supersessionKeysForFact } from \"../temporal-supersession.js\";\nimport type { MemoryFile } from \"../types.js\";\n\nexport interface ForgetMemoryRequest {\n /** Memory id (frontmatter `id`) to forget. */\n id: string;\n /** Optional human-readable reason. */\n reason?: string;\n /** Override the timestamp written to `forgottenAt`. Defaults to `new Date().toISOString()`. */\n now?: () => Date;\n}\n\nexport interface ForgetMemoryResult {\n /** Memory id that was forgotten. */\n id: string;\n /** Filesystem path of the forgotten memory. */\n path: string;\n /** Prior status before the forget call, for audit. */\n priorStatus: string;\n /** Timestamp written to `forgottenAt`. */\n forgottenAt: string;\n /** Reason captured (or empty string if none). */\n reason: string;\n}\n\nexport class ForgetMemoryNotFoundError extends Error {\n readonly code = \"memory_not_found\" as const;\n constructor(id: string) {\n super(`memory not found: ${id}`);\n this.name = \"ForgetMemoryNotFoundError\";\n }\n}\n\nexport class ForgetMemoryAlreadyForgottenError extends Error {\n readonly code = \"already_forgotten\" as const;\n constructor(id: string, forgottenAt: string) {\n super(`memory ${id} was already forgotten at ${forgottenAt}`);\n this.name = \"ForgetMemoryAlreadyForgottenError\";\n }\n}\n\n/**\n * Mark a memory as forgotten. Pure orchestration over storage —\n * caller supplies the storage instance and the request. Status\n * filters elsewhere in the codebase exclude `status: \"forgotten\"`\n * from recall/browse surfaces before they serve active user context.\n */\nexport async function forgetMemory(\n storage: StorageManager,\n request: ForgetMemoryRequest,\n): Promise<ForgetMemoryResult> {\n const id = typeof request.id === \"string\" ? request.id.trim() : \"\";\n if (id.length === 0) {\n throw new Error(\"forget: memory id is required and must be non-empty\");\n }\n const memory = await findMemoryById(storage, id);\n if (!memory) {\n throw new ForgetMemoryNotFoundError(id);\n }\n if (memory.frontmatter.status === \"forgotten\") {\n throw new ForgetMemoryAlreadyForgottenError(\n id,\n memory.frontmatter.forgottenAt ?? \"(unknown)\",\n );\n }\n const priorStatus =\n typeof memory.frontmatter.status === \"string\" ? memory.frontmatter.status : \"active\";\n const now = (request.now ?? (() => new Date()))();\n const forgottenAt = now.toISOString();\n const reason = typeof request.reason === \"string\" ? request.reason.trim() : \"\";\n await storage.writeMemoryFrontmatter(memory, {\n status: \"forgotten\",\n forgottenAt,\n forgottenReason: reason.length > 0 ? reason : undefined,\n updated: forgottenAt,\n }, {\n actor: \"remnic-forget\",\n reasonCode: \"operator_forget\",\n });\n // Issue #1579 thread OchiF: emit a LIVE tombstone at forget time so a\n // forgotten FACT cannot resurrect via re-extraction/import before an\n // operator runs `remnic doctor --rebuild-tombstones`. Without this, the\n // non-resurrection chokepoint in writeMemory has nothing to match — the\n // forgotten fact's content hash is gone from the active index but no\n // tombstone exists until a manual rebuild derives one — so the same fact\n // written again through writeMemory becomes active. Mirrors supersedeMemory\n // (contradiction) and applyTemporalSupersession via the shared\n // buildRetiredFactTombstoneInputs helper. Best-effort (rule 34): a tombstone\n // append failure must not fail the forget, which already succeeded on disk.\n if (memory.frontmatter.category === \"fact\") {\n for (const input of buildRetiredFactTombstoneInputs(\n {\n id,\n content: memory.content,\n ...(memory.frontmatter.contentHash\n ? { contentHash: memory.frontmatter.contentHash }\n : {}),\n ...(memory.frontmatter.entityRef\n ? { entityRef: memory.frontmatter.entityRef }\n : {}),\n ...(memory.frontmatter.structuredAttributes\n ? { structuredAttributes: memory.frontmatter.structuredAttributes }\n : {}),\n },\n {\n reason: \"retraction\",\n createdBy: \"user_correction\",\n createdAt: forgottenAt,\n supersessionKeysForFact,\n },\n )) {\n try {\n await storage.appendTombstone(input);\n } catch {\n // Best-effort — the forget already succeeded on disk.\n }\n }\n }\n return {\n id,\n path: memory.path,\n priorStatus,\n forgottenAt,\n reason,\n };\n}\n\nasync function findMemoryById(\n storage: StorageManager,\n id: string,\n): Promise<MemoryFile | null> {\n const hot = await storage.readAllMemories();\n const hotMatch = hot.find((m) => m.frontmatter.id === id);\n if (hotMatch) return hotMatch;\n\n const archived = await storage.readArchivedMemories();\n const archivedMatch = archived.find((m) => m.frontmatter.id === id);\n if (archivedMatch) return archivedMatch;\n\n const cold = await storage.readAllColdMemories();\n return cold.find((m) => m.frontmatter.id === id) ?? null;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/maintenance/forget.ts"],"sourcesContent":["/**\n * Operator-facing memory forgetting (issue #686 PR 4/6).\n *\n * `remnic forget <id>` marks a memory as forgotten — a soft-delete that:\n *\n * 1. Sets `status: \"forgotten\"`, `forgottenAt`, optional\n * `forgottenReason` in YAML frontmatter via the existing\n * `storage.writeMemoryFrontmatter` path (which logs the change\n * to the lifecycle ledger and invalidates caches).\n * 2. Returns a structured result describing what changed so the\n * CLI and downstream telemetry can render it.\n *\n * Memories with `status === \"forgotten\"` are excluded from recall,\n * browse, and entity attribution by the status filters that serve\n * active user context. A future maintenance cron will hard-delete\n * forgotten memories after a configurable retention window (default\n * 90 days) — for this PR the file stays on disk and the act is\n * reversible by editing the YAML directly.\n *\n * This module ships the pure helper; the CLI wires it in `cli.ts` as\n * a new `remnic forget` subcommand.\n */\n\nimport type { StorageManager } from \"../storage.js\";\nimport { buildRetiredFactTombstoneInputs } from \"../lifecycle/tombstones.js\";\nimport { supersessionKeysForFact } from \"../temporal-supersession.js\";\nimport type { MemoryFile } from \"../types.js\";\n\nexport interface ForgetMemoryRequest {\n /** Memory id (frontmatter `id`) to forget. */\n id: string;\n /** Optional human-readable reason. */\n reason?: string;\n /** Override the timestamp written to `forgottenAt`. Defaults to `new Date().toISOString()`. */\n now?: () => Date;\n}\n\nexport interface ForgetMemoryResult {\n /** Memory id that was forgotten. */\n id: string;\n /** Filesystem path of the forgotten memory. */\n path: string;\n /** Prior status before the forget call, for audit. */\n priorStatus: string;\n /** Timestamp written to `forgottenAt`. */\n forgottenAt: string;\n /** Reason captured (or empty string if none). */\n reason: string;\n}\n\nexport class ForgetMemoryNotFoundError extends Error {\n readonly code = \"memory_not_found\" as const;\n constructor(id: string) {\n super(`memory not found: ${id}`);\n this.name = \"ForgetMemoryNotFoundError\";\n }\n}\n\nexport class ForgetMemoryAlreadyForgottenError extends Error {\n readonly code = \"already_forgotten\" as const;\n constructor(id: string, forgottenAt: string) {\n super(`memory ${id} was already forgotten at ${forgottenAt}`);\n this.name = \"ForgetMemoryAlreadyForgottenError\";\n }\n}\n\n/**\n * Mark a memory as forgotten. Pure orchestration over storage —\n * caller supplies the storage instance and the request. Status\n * filters elsewhere in the codebase exclude `status: \"forgotten\"`\n * from recall/browse surfaces before they serve active user context.\n */\nexport async function forgetMemory(\n storage: StorageManager,\n request: ForgetMemoryRequest,\n): Promise<ForgetMemoryResult> {\n const id = typeof request.id === \"string\" ? request.id.trim() : \"\";\n if (id.length === 0) {\n throw new Error(\"forget: memory id is required and must be non-empty\");\n }\n const memory = await findMemoryById(storage, id);\n if (!memory) {\n throw new ForgetMemoryNotFoundError(id);\n }\n if (memory.frontmatter.status === \"forgotten\") {\n throw new ForgetMemoryAlreadyForgottenError(\n id,\n memory.frontmatter.forgottenAt ?? \"(unknown)\",\n );\n }\n const priorStatus =\n typeof memory.frontmatter.status === \"string\" ? memory.frontmatter.status : \"active\";\n const now = (request.now ?? (() => new Date()))();\n const forgottenAt = now.toISOString();\n const reason = typeof request.reason === \"string\" ? request.reason.trim() : \"\";\n await storage.writeMemoryFrontmatter(memory, {\n status: \"forgotten\",\n forgottenAt,\n forgottenReason: reason.length > 0 ? reason : undefined,\n updated: forgottenAt,\n }, {\n actor: \"remnic-forget\",\n reasonCode: \"operator_forget\",\n });\n // Issue #1579 thread OchiF: emit a LIVE tombstone at forget time so a\n // forgotten FACT cannot resurrect via re-extraction/import before an\n // operator runs `remnic doctor --rebuild-tombstones`. Without this, the\n // non-resurrection chokepoint in writeMemory has nothing to match — the\n // forgotten fact's content hash is gone from the active index but no\n // tombstone exists until a manual rebuild derives one — so the same fact\n // written again through writeMemory becomes active. Mirrors supersedeMemory\n // (contradiction) and applyTemporalSupersession via the shared\n // buildRetiredFactTombstoneInputs helper. Best-effort (rule 34): a tombstone\n // append failure must not fail the forget, which already succeeded on disk.\n if (memory.frontmatter.category === \"fact\") {\n for (const input of buildRetiredFactTombstoneInputs(\n {\n id,\n content: memory.content,\n ...(memory.frontmatter.contentHash\n ? { contentHash: memory.frontmatter.contentHash }\n : {}),\n ...(memory.frontmatter.entityRef\n ? { entityRef: memory.frontmatter.entityRef }\n : {}),\n ...(memory.frontmatter.structuredAttributes\n ? { structuredAttributes: memory.frontmatter.structuredAttributes }\n : {}),\n },\n {\n reason: \"retraction\",\n createdBy: \"user_correction\",\n createdAt: forgottenAt,\n supersessionKeysForFact,\n },\n )) {\n try {\n await storage.appendTombstone(input);\n } catch {\n // Best-effort — the forget already succeeded on disk.\n }\n }\n }\n return {\n id,\n path: memory.path,\n priorStatus,\n forgottenAt,\n reason,\n };\n}\n\nasync function findMemoryById(\n storage: StorageManager,\n id: string,\n): Promise<MemoryFile | null> {\n const hot = await storage.readAllMemories();\n const hotMatch = hot.find((m) => m.frontmatter.id === id);\n if (hotMatch) return hotMatch;\n\n const archived = await storage.readArchivedMemories();\n const archivedMatch = archived.find((m) => m.frontmatter.id === id);\n if (archivedMatch) return archivedMatch;\n\n const cold = await storage.readAllColdMemories();\n return cold.find((m) => m.frontmatter.id === id) ?? null;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAkDO,IAAM,4BAAN,cAAwC,MAAM;AAAA,EAC1C,OAAO;AAAA,EAChB,YAAY,IAAY;AACtB,UAAM,qBAAqB,EAAE,EAAE;AAC/B,SAAK,OAAO;AAAA,EACd;AACF;AAEO,IAAM,oCAAN,cAAgD,MAAM;AAAA,EACl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uBACnB,EAAE,sBAAsB,OAAO,YAAY,qBAAqB,IAChE,CAAC;AAAA,MACP;AAAA,MACA;AAAA,QACE,QAAQ;AAAA,QACR,WAAW;AAAA,QACX,WAAW;AAAA,QACX;AAAA,MACF;AAAA,IACF,GAAG;AACD,UAAI;AACF,cAAM,QAAQ,gBAAgB,KAAK;AAAA,MACrC,QAAQ;AAAA,MAER;AAAA,IACF;AAAA,EACF;AACA,SAAO;AAAA,IACL;AAAA,IACA,MAAM,OAAO;AAAA,IACb;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,eAAe,eACb,SACA,IAC4B;AAC5B,QAAM,MAAM,MAAM,QAAQ,gBAAgB;AAC1C,QAAM,WAAW,IAAI,KAAK,CAAC,MAAM,EAAE,YAAY,OAAO,EAAE;AACxD,MAAI,SAAU,QAAO;AAErB,QAAM,WAAW,MAAM,QAAQ,qBAAqB;AACpD,QAAM,gBAAgB,SAAS,KAAK,CAAC,MAAM,EAAE,YAAY,OAAO,EAAE;AAClE,MAAI,cAAe,QAAO;AAE1B,QAAM,OAAO,MAAM,QAAQ,oBAAoB;AAC/C,SAAO,KAAK,KAAK,CAAC,MAAM,EAAE,YAAY,OAAO,EAAE,KAAK;AACtD;","names":[]}
|
|
@@ -5,18 +5,19 @@ import {
|
|
|
5
5
|
readGraphEdgeDecayStatus,
|
|
6
6
|
runGraphEdgeDecayMaintenance,
|
|
7
7
|
runGraphEdgeDecayMaintenanceAcrossNamespaces
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-ZQ3WU6JO.js";
|
|
13
|
-
import "./chunk-GKCXTSFF.js";
|
|
8
|
+
} from "./chunk-5GX5457J.js";
|
|
9
|
+
import "./chunk-YYEOR4XN.js";
|
|
10
|
+
import "./chunk-4IYIGN53.js";
|
|
11
|
+
import "./chunk-RXFCU3CY.js";
|
|
14
12
|
import "./chunk-2LSZVONP.js";
|
|
15
13
|
import "./chunk-DEUNUKTD.js";
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-LXY5VVGM.js";
|
|
15
|
+
import "./chunk-GKCXTSFF.js";
|
|
16
|
+
import "./chunk-5B5WYAHQ.js";
|
|
17
17
|
import "./chunk-PCXDUHQH.js";
|
|
18
18
|
import "./chunk-VUFL7X3H.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-PGRZ3FYC.js";
|
|
20
|
+
import "./chunk-BTTPKDIL.js";
|
|
20
21
|
import "./chunk-KNA3BXXL.js";
|
|
21
22
|
import "./chunk-3WCASNQZ.js";
|
|
22
23
|
import "./chunk-PZ5AY32C.js";
|
|
@@ -28,4 +29,4 @@ export {
|
|
|
28
29
|
runGraphEdgeDecayMaintenance,
|
|
29
30
|
runGraphEdgeDecayMaintenanceAcrossNamespaces
|
|
30
31
|
};
|
|
31
|
-
//# sourceMappingURL=graph-edge-decay-
|
|
32
|
+
//# sourceMappingURL=graph-edge-decay-BYPZVJT4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/graph-jsonl.js
CHANGED
|
@@ -3,15 +3,16 @@ import {
|
|
|
3
3
|
restoreRemovedNodeEdges,
|
|
4
4
|
rollbackNodeEdgeRewrite,
|
|
5
5
|
writeGraphJsonlAtomic
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-ZQ3WU6JO.js";
|
|
10
|
-
import "./chunk-GKCXTSFF.js";
|
|
6
|
+
} from "./chunk-YYEOR4XN.js";
|
|
7
|
+
import "./chunk-4IYIGN53.js";
|
|
8
|
+
import "./chunk-RXFCU3CY.js";
|
|
11
9
|
import "./chunk-2LSZVONP.js";
|
|
12
10
|
import "./chunk-DEUNUKTD.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-LXY5VVGM.js";
|
|
12
|
+
import "./chunk-GKCXTSFF.js";
|
|
13
|
+
import "./chunk-5B5WYAHQ.js";
|
|
14
|
+
import "./chunk-PGRZ3FYC.js";
|
|
15
|
+
import "./chunk-BTTPKDIL.js";
|
|
15
16
|
import "./chunk-KNA3BXXL.js";
|
|
16
17
|
import "./chunk-3WCASNQZ.js";
|
|
17
18
|
import "./chunk-PZ5AY32C.js";
|