@remnic/core 10.0.13 → 10.0.15
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/abstraction-nodes.js +3 -2
- package/dist/access-admin-ops-surface.js +96 -92
- package/dist/access-authorization-probe.js +97 -93
- package/dist/access-boundary.js +96 -92
- package/dist/access-cli.js +203 -198
- package/dist/access-cli.js.map +1 -1
- package/dist/access-extraction-force-flush.js +96 -92
- package/dist/access-http-briefing.js +97 -93
- package/dist/access-http-query.js +98 -94
- package/dist/access-http.js +121 -117
- package/dist/access-idempotency.js +3 -2
- package/dist/access-identity-continuity-surface.js +96 -92
- package/dist/access-lcm-surface.js +96 -92
- package/dist/access-mcp.js +110 -106
- package/dist/access-namespace-preflight.js +96 -92
- package/dist/access-observe-write-category.js +18 -17
- package/dist/access-observe-write-surface.js +96 -92
- package/dist/access-offline-manifest.js +17 -15
- package/dist/access-operations-batch.js +101 -97
- package/dist/access-operations.js +108 -104
- package/dist/access-recall-concurrency.js +96 -92
- package/dist/access-recall-diagnostics.js +2 -2
- package/dist/access-recall-response.js +96 -92
- package/dist/access-recall-surface.js +96 -92
- package/dist/access-schema.d.ts +2 -2
- package/dist/access-schema.js +13 -12
- package/dist/access-service.js +96 -92
- package/dist/access-surface-catalog.js +98 -94
- package/dist/access-surface-catalog.js.map +1 -1
- package/dist/active-recall.js +43 -39
- 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-DGJOZYGT.js → auto-sync-7WWAKW6F.js} +8 -8
- package/dist/briefing.js +32 -28
- package/dist/buffer.js +13 -13
- package/dist/calibration.d.ts.map +1 -1
- package/dist/calibration.js +6 -3
- package/dist/calibration.js.map +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 +4 -3
- package/dist/causal-behavior.js.map +1 -1
- package/dist/causal-chain.js +4 -3
- package/dist/causal-consolidation.js +36 -32
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-retrieval.js +4 -3
- package/dist/causal-retrieval.js.map +1 -1
- package/dist/causal-trajectory-graph.js +7 -6
- package/dist/causal-trajectory-graph.js.map +1 -1
- package/dist/causal-trajectory.js +3 -2
- package/dist/{chunk-KZO43HPY.js → chunk-22RM2ZUJ.js} +112 -112
- package/dist/{chunk-ZUMXY4KA.js → chunk-22W2XWGH.js} +3 -3
- package/dist/{chunk-MZBWIJJN.js → chunk-23ZQPP2G.js} +24 -19
- package/dist/chunk-23ZQPP2G.js.map +1 -0
- package/dist/{chunk-PCWXLAJY.js → chunk-2PTH4PRL.js} +2 -2
- package/dist/{chunk-ZIZ2G47N.js → chunk-2PYHLSXK.js} +2 -2
- package/dist/{chunk-B6O2YLUR.js → chunk-2Z5DIDQD.js} +6 -1
- package/dist/chunk-2Z5DIDQD.js.map +1 -0
- package/dist/{chunk-7OAIOE5P.js → chunk-33G67YZF.js} +2 -2
- package/dist/{chunk-AV2OQF2O.js → chunk-3F3HA3R2.js} +2 -2
- package/dist/{chunk-RP5SJ3XR.js → chunk-3GNIJUUE.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-SWIKABKI.js → chunk-3Q3XD3NO.js} +2 -2
- package/dist/{chunk-AL6EHLB5.js → chunk-3X3PNU3T.js} +2 -2
- package/dist/{chunk-BTJ6CAIA.js → chunk-4IYIGN53.js} +10 -10
- package/dist/{chunk-BZTRPCCH.js → chunk-4PDTVVSW.js} +2 -2
- package/dist/{chunk-HM7RHKS4.js → chunk-4RNBLLZR.js} +2 -2
- package/dist/{chunk-Y3VDGK2O.js → chunk-4SCZZ3U7.js} +282 -84
- package/dist/chunk-4SCZZ3U7.js.map +1 -0
- package/dist/{chunk-JUWJYXI4.js → chunk-5ATSXCAG.js} +4 -4
- 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-EMFBC7L3.js → chunk-5KGYTX5O.js} +2 -2
- package/dist/{chunk-OFCHT2TN.js → chunk-5LRV557D.js} +2 -2
- package/dist/{chunk-DXHVD4DS.js → chunk-5SMR542T.js} +3 -3
- package/dist/{chunk-S7LWX2PQ.js → chunk-655FVTCD.js} +2 -2
- 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-5MDM7UE4.js → chunk-6WGMZQGG.js} +2 -2
- package/dist/chunk-77R7BQZ2.js +152 -0
- package/dist/chunk-77R7BQZ2.js.map +1 -0
- package/dist/{chunk-IPLYGWQF.js → chunk-7LCGFUMB.js} +6 -6
- package/dist/{chunk-5ZJYHOJT.js → chunk-7VQ6AI7H.js} +8 -8
- 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-G7NYVKD6.js → chunk-B2NXOVZN.js} +2 -2
- package/dist/{chunk-B43NMCGQ.js → chunk-BK2BVLZW.js} +2 -2
- package/dist/{chunk-QJ622LTI.js → chunk-BQOGQULP.js} +30 -8
- package/dist/chunk-BQOGQULP.js.map +1 -0
- package/dist/{chunk-BOOFTFFE.js → chunk-C2RW36YR.js} +2 -2
- package/dist/{chunk-XERVJYH2.js → chunk-C6JMGAMO.js} +7 -3
- package/dist/chunk-C6JMGAMO.js.map +1 -0
- package/dist/{chunk-5JMI26Q7.js → chunk-CBH2Z4UA.js} +2 -2
- package/dist/{chunk-P2S6P7X6.js → chunk-CFZ4SXXH.js} +2 -2
- package/dist/{chunk-YRH3C2OJ.js → chunk-CIIHIAJ2.js} +13 -5
- package/dist/chunk-CIIHIAJ2.js.map +1 -0
- package/dist/{chunk-6M56RFFJ.js → chunk-CJRENHVZ.js} +3 -3
- package/dist/{chunk-EGDYVYU7.js → chunk-CLWBFR7Q.js} +3 -3
- 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-BLVHDY2U.js → chunk-DOWACHYO.js} +5 -2
- package/dist/chunk-DOWACHYO.js.map +1 -0
- package/dist/{chunk-UZSBCQEC.js → chunk-DPSOFK4D.js} +2 -2
- package/dist/{chunk-IZT3BVDW.js → chunk-DQR2LD3V.js} +2 -2
- package/dist/{chunk-K4QY55XV.js → chunk-EH4BQ7LT.js} +2 -2
- package/dist/chunk-EHHQJTAU.js +131 -0
- package/dist/chunk-EHHQJTAU.js.map +1 -0
- package/dist/{chunk-EBA5DA77.js → chunk-EOU6V4IN.js} +2 -2
- package/dist/{chunk-GD7BWGIB.js → chunk-EU6IRUCY.js} +6 -4
- package/dist/{chunk-GD7BWGIB.js.map → chunk-EU6IRUCY.js.map} +1 -1
- package/dist/{chunk-7KYJNHGM.js → chunk-EUCYTCFP.js} +2 -2
- package/dist/{chunk-YNDLCWXS.js → chunk-EZ25VE3G.js} +4 -4
- package/dist/{chunk-CKUUP64O.js → chunk-F2772ATT.js} +2 -2
- package/dist/{chunk-46EST7JO.js → chunk-F2XNSIPP.js} +2 -2
- package/dist/{chunk-2KRNPFPK.js → chunk-FLI6DEIU.js} +2 -2
- package/dist/{chunk-OAIWPB2I.js → chunk-FT4UQYOV.js} +2 -2
- package/dist/{chunk-HYNEDMYJ.js → chunk-G2OYFTUD.js} +2 -2
- package/dist/{chunk-XTN54NML.js → chunk-G3T6YMBO.js} +4 -4
- package/dist/{chunk-CNG2XVZG.js → chunk-G3UUAQOD.js} +2 -2
- package/dist/{chunk-2ZQJLBV6.js → chunk-GCVDFX66.js} +4 -4
- package/dist/{chunk-ON4ILX3G.js → chunk-GFAM2LTC.js} +2 -2
- package/dist/{chunk-2LUSQV4U.js → chunk-GKJJNO7C.js} +2 -2
- package/dist/{chunk-T2YX56QI.js → chunk-GQJKVQJR.js} +2 -2
- package/dist/{chunk-5AOAQR37.js → chunk-GWVNGDJW.js} +3 -3
- package/dist/{chunk-YDH2FSDI.js → chunk-GZXXPCWJ.js} +3 -3
- package/dist/{chunk-5JCLELOP.js → chunk-H5IUN433.js} +2 -2
- package/dist/{chunk-IWHEJXR2.js → chunk-H6FREOYX.js} +8 -8
- package/dist/{chunk-B7CANWCA.js → chunk-HBAOOSHU.js} +2 -2
- package/dist/{chunk-Q4E24IRR.js → chunk-HDN7IVIO.js} +14 -11
- package/dist/chunk-HDN7IVIO.js.map +1 -0
- package/dist/{chunk-T3FMRLWQ.js → chunk-HFSPY26A.js} +2 -2
- package/dist/{chunk-B657ZGDH.js → chunk-HQSK2INQ.js} +2 -2
- package/dist/{chunk-RT6D3WN7.js → chunk-IJMDBYCO.js} +2 -2
- package/dist/{chunk-CS2JEHTB.js → chunk-IUCPLBDS.js} +9 -9
- package/dist/{chunk-XRBHXUTQ.js → chunk-IWD33CF4.js} +6 -6
- package/dist/{chunk-4IHBN6WU.js → chunk-JKMIGCK6.js} +2 -2
- package/dist/{chunk-YYO447A7.js → chunk-JNIVZNIB.js} +41 -253
- package/dist/chunk-JNIVZNIB.js.map +1 -0
- package/dist/{chunk-ROBHL3GL.js → chunk-JWX2Q6HS.js} +2 -2
- package/dist/{chunk-3I3U6FFT.js → chunk-K7BN34IA.js} +2 -2
- package/dist/{chunk-4O6WRBGE.js → chunk-KJXP6RUG.js} +5 -1
- package/dist/chunk-KJXP6RUG.js.map +1 -0
- package/dist/{chunk-4THZGKQ2.js → chunk-KLJVTZ3R.js} +3 -3
- package/dist/{chunk-4G4B3Z2B.js → chunk-KW4AJ7T3.js} +2 -2
- package/dist/{chunk-HT2C4EXO.js → chunk-L5VCT7LU.js} +8 -4
- package/dist/chunk-L5VCT7LU.js.map +1 -0
- package/dist/{chunk-ZI7LMSNI.js → chunk-LLHZZOIB.js} +2 -2
- package/dist/{chunk-LS2FHUML.js → chunk-LQ5SS4OP.js} +3 -3
- package/dist/{chunk-NSFOERZQ.js → chunk-LWFWZTWX.js} +3 -3
- package/dist/{chunk-BMWN7B3Y.js → chunk-LXATZLSC.js} +3 -3
- package/dist/{chunk-OYKQ6T4V.js → chunk-MATDGSJ7.js} +2 -2
- package/dist/{chunk-3NFN4Y4P.js → chunk-MGCKZWAE.js} +5 -5
- package/dist/{chunk-O4KYRDRT.js → chunk-MJIOGYKX.js} +2 -2
- package/dist/{chunk-6OMUHXHP.js → chunk-ML7ZJAKJ.js} +2 -2
- package/dist/{chunk-GKIXBH7Y.js → chunk-MO6N4QYY.js} +4 -4
- package/dist/{chunk-A2E4WNW4.js → chunk-MWWAQXZ6.js} +2 -2
- package/dist/{chunk-VYPFEVOM.js → chunk-NHUX6GXA.js} +6 -6
- package/dist/{chunk-AKREOU5F.js → chunk-NZCKG25S.js} +2 -2
- package/dist/{chunk-4NDWE44P.js → chunk-NZFFGO5O.js} +2 -2
- package/dist/{chunk-WWSRLS4M.js → chunk-O2YPCFJT.js} +17 -17
- package/dist/{chunk-ZSJGYC3C.js → chunk-OQJKY3Z5.js} +2 -2
- package/dist/{chunk-U7VPOXVM.js → chunk-OQR42XCN.js} +82 -78
- package/dist/chunk-OQR42XCN.js.map +1 -0
- package/dist/{chunk-OFEHITAZ.js → chunk-OXNTOHL6.js} +2 -2
- package/dist/{chunk-FQD2KPQH.js → chunk-P55FACBG.js} +2 -2
- package/dist/chunk-PGRZ3FYC.js +34 -0
- package/dist/chunk-PGRZ3FYC.js.map +1 -0
- package/dist/{chunk-JYZSRNR7.js → chunk-PIITB2YZ.js} +2 -2
- package/dist/{chunk-PBVNVKYN.js → chunk-PIN5OPBA.js} +2 -2
- package/dist/chunk-PPUNC7UX.js +73 -0
- package/dist/chunk-PPUNC7UX.js.map +1 -0
- package/dist/{chunk-EQWEIIKQ.js → chunk-PQM3B54K.js} +6 -1
- package/dist/chunk-PQM3B54K.js.map +1 -0
- package/dist/{chunk-4TTGRETU.js → chunk-PRU7OF3Y.js} +5 -5
- package/dist/{chunk-K2FSASGZ.js → chunk-PVHQSLNN.js} +7 -7
- package/dist/{chunk-SVDU4OHO.js → chunk-Q35L7TYB.js} +2 -2
- package/dist/{chunk-5VC7J76U.js → chunk-QPH52AZB.js} +2 -2
- package/dist/{chunk-6T42L5FI.js → chunk-QS3OLP5I.js} +2 -2
- package/dist/{chunk-P34FDDB5.js → chunk-QSEUUQUF.js} +2 -2
- package/dist/chunk-QUIRIG2P.js +31 -0
- package/dist/chunk-QUIRIG2P.js.map +1 -0
- package/dist/{chunk-PAAJWQH5.js → chunk-QUMKDRCF.js} +2 -2
- package/dist/{chunk-KZEMFD6E.js → chunk-R2H4ZFBJ.js} +3 -3
- package/dist/{chunk-X3VID2TT.js → chunk-RI2KCQHP.js} +7 -3
- package/dist/chunk-RI2KCQHP.js.map +1 -0
- package/dist/{chunk-JFVCDEIC.js → chunk-RP7PQWZM.js} +7 -7
- package/dist/{chunk-KC46VZR5.js → chunk-RTTPBBAN.js} +9 -9
- package/dist/{chunk-ZQ3WU6JO.js → chunk-RXFCU3CY.js} +2 -2
- package/dist/{chunk-CBP4HWCL.js → chunk-RYYVMZBR.js} +3 -3
- package/dist/{chunk-2NCBDGND.js → chunk-SA6GMZJY.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-WETFW255.js → chunk-T7ASDYNK.js} +2 -2
- package/dist/{chunk-XZLWYZ7C.js → chunk-THEPGZBM.js} +2 -2
- package/dist/{chunk-YEM7K3KD.js → chunk-TMC7HBED.js} +6 -6
- package/dist/{chunk-RWRQ67OR.js → chunk-TPNCXSXP.js} +2 -2
- package/dist/{chunk-LZKOVXMX.js → chunk-TRMJ6BYC.js} +2 -2
- package/dist/{chunk-A6TVQ3QP.js → chunk-UGYUBENJ.js} +3 -3
- package/dist/{chunk-AAM66QCP.js → chunk-UZRSI6NX.js} +2 -2
- package/dist/{chunk-XHWJRUVP.js → chunk-V3TXIXXY.js} +3 -3
- package/dist/{chunk-2CXQZXWM.js → chunk-V4MB5ONM.js} +6 -6
- package/dist/{chunk-UOKPJFO3.js → chunk-VNZMZPAC.js} +3 -3
- package/dist/{chunk-FZB4TS2W.js → chunk-VPXIKBPX.js} +5 -5
- package/dist/{chunk-CYEK6Z3P.js → chunk-VW6VIJOS.js} +2 -2
- package/dist/{chunk-QUA7RLK6.js → chunk-W3FVQBGF.js} +2 -2
- package/dist/{chunk-6OQ6N5RP.js → chunk-WGTR573G.js} +22 -22
- package/dist/{chunk-W3K3HITK.js → chunk-WLT6LTQP.js} +2 -2
- package/dist/{chunk-6Z2AZ4AJ.js → chunk-XKRXN63M.js} +2 -2
- package/dist/{chunk-3J5JKBYD.js → chunk-XLBFX63V.js} +80 -77
- package/dist/chunk-XLBFX63V.js.map +1 -0
- package/dist/{chunk-FZVROZKC.js → chunk-XVZA6VXC.js} +4 -4
- package/dist/{chunk-DA2INEB5.js → chunk-XYGQSDTH.js} +4 -4
- package/dist/chunk-YET735EZ.js +99 -0
- package/dist/chunk-YET735EZ.js.map +1 -0
- package/dist/{chunk-RBJQYMMT.js → chunk-YRULQW5J.js} +4 -4
- package/dist/{chunk-QUNDYIYZ.js → chunk-YYEOR4XN.js} +3 -3
- package/dist/{chunk-6WHJ2EAB.js → chunk-Z64TS5V4.js} +2 -2
- package/dist/{chunk-NHLLKEKK.js → chunk-ZAJLJ35W.js} +2 -2
- package/dist/{chunk-M7V65M6H.js → chunk-ZKHSAMTE.js} +2 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +154 -150
- package/dist/coding/export-okf-codegraph.js +32 -28
- package/dist/coding/export-okf-codegraph.js.map +1 -1
- package/dist/coding/pre-action-gate.js +4 -3
- package/dist/commitment-ledger.js +3 -2
- package/dist/compounding/engine.js +34 -30
- package/dist/config.js +43 -39
- package/dist/connectors/codex-materialize-runner.js +32 -28
- package/dist/connectors/index.js +32 -28
- package/dist/console/trace.d.ts +5 -14
- package/dist/console/trace.d.ts.map +1 -1
- package/dist/consolidation-provenance-check.d.ts.map +1 -1
- package/dist/consolidation-provenance-check.js +8 -6
- package/dist/consolidation-undo.js +5 -4
- package/dist/consolidation-undo.js.map +1 -1
- package/dist/contradiction/index.js +9 -7
- 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 +34 -30
- package/dist/corpus-watermark.js +34 -30
- package/dist/correction/correction-planner.d.ts.map +1 -1
- package/dist/cue-anchors.js +4 -3
- package/dist/dashboard-runtime.js +2 -2
- package/dist/deep-recall-http-glue.js +14 -13
- package/dist/deep-recall.js +2 -2
- package/dist/{dreams-ledger-567VKVOU.js → dreams-ledger-UCHHRQ4R.js} +3 -2
- package/dist/embedding-fallback.js +5 -4
- package/dist/embedding-generation-lock.js +4 -3
- package/dist/entity-retrieval.js +33 -29
- package/dist/eval-trajectory-store.js +4 -3
- package/dist/eval-trajectory.js +4 -3
- package/dist/evals.js +3 -2
- package/dist/explicit-capture.js +11 -8
- package/dist/external-wiki-access.js +97 -93
- 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 +44 -39
- package/dist/{first-start-migration-HYAMKJ6V.js → first-start-migration-QVD22WWS.js} +9 -8
- package/dist/{first-start-migration-HYAMKJ6V.js.map → first-start-migration-QVD22WWS.js.map} +1 -1
- 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-construction.js +5 -4
- package/dist/harmonic-retrieval.js +36 -32
- package/dist/harmonic-source-lookup.js +3 -2
- 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 +244 -237
- package/dist/json-store.d.ts.map +1 -1
- package/dist/json-store.js +2 -1
- package/dist/lcm/engine.js +4 -4
- package/dist/lcm/index.js +12 -12
- package/dist/location/index.js +35 -31
- package/dist/maintenance/dreams-ledger.d.ts.map +1 -1
- package/dist/maintenance/memory-governance.d.ts.map +1 -1
- package/dist/maintenance/memory-governance.js +32 -28
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +32 -28
- package/dist/maintenance/rebuild-memory-projection-runner.js +34 -30
- package/dist/maintenance/rebuild-memory-projection.js +33 -29
- package/dist/memory-browse-operations.js +97 -93
- package/dist/memory-browse.js +7 -7
- package/dist/memory-subject.js +5 -4
- package/dist/namespaces/migrate.js +33 -29
- package/dist/namespaces/search.js +11 -10
- package/dist/namespaces/storage.d.ts.map +1 -1
- package/dist/namespaces/storage.js +32 -28
- package/dist/objective-state-writers.js +4 -3
- package/dist/objective-state.js +3 -2
- 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 +4 -4
- package/dist/offline-sync-snapshot-stream.js +10 -9
- package/dist/offline-sync.d.ts.map +1 -1
- package/dist/offline-sync.js +11 -10
- package/dist/operator-doctor-corpus.js +35 -31
- package/dist/operator-toolkit.js +58 -54
- package/dist/orchestration/maintenance.js +44 -40
- package/dist/orchestrator.js +205 -200
- package/dist/page-versioning.js +5 -4
- package/dist/profiling.d.ts.map +1 -1
- package/dist/profiling.js +2 -1
- 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 +97 -93
- package/dist/recall-navigation.js +96 -92
- package/dist/recall-state-view-admission.js +7 -7
- package/dist/recall-state.js +4 -3
- package/dist/recall-why-service.js +7 -7
- 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/{resolution-EKJHREVJ.js → resolution-ZU5BIAJA.js} +10 -8
- package/dist/resolution-ZU5BIAJA.js.map +1 -0
- package/dist/resume-bundles.js +48 -44
- package/dist/retrieval-agents.d.ts +1 -1
- package/dist/retrieval-agents.d.ts.map +1 -1
- package/dist/retrieval-agents.js +7 -1
- package/dist/salvage-envelope.js +7 -6
- package/dist/search/document-scanner.d.ts.map +1 -1
- package/dist/search/document-scanner.js +2 -1
- package/dist/search/factory.js +10 -9
- package/dist/search/index.js +16 -15
- package/dist/search/lancedb-backend.js +3 -2
- package/dist/search/meilisearch-backend.js +3 -2
- package/dist/search/orama-backend.js +3 -2
- package/dist/semantic-consolidation.js +37 -33
- package/dist/semantic-rule-promotion.js +32 -28
- package/dist/semantic-rule-verifier.js +32 -28
- package/dist/source-agent-qualifier.js +40 -35
- package/dist/standup/build.js +32 -28
- package/dist/storage/content-hash-index.d.ts +10 -0
- package/dist/storage/content-hash-index.d.ts.map +1 -1
- package/dist/storage/entity-canonical-id-migration.d.ts.map +1 -1
- package/dist/storage/entity-store.d.ts +32 -1
- package/dist/storage/entity-store.d.ts.map +1 -1
- package/dist/storage/memory-read-store.d.ts.map +1 -1
- package/dist/storage/supersession-audit.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 +33 -29
- package/dist/subject-config.js +6 -5
- package/dist/summarizer.js +4 -4
- package/dist/summary-snapshot.js +4 -3
- package/dist/support-passport/index.js +99 -95
- package/dist/{tier-stats-RQM76XYY.js → tier-stats-C3IAMS4X.js} +6 -5
- package/dist/{tier-stats-RQM76XYY.js.map → tier-stats-C3IAMS4X.js.map} +1 -1
- package/dist/{trace-LXXCMZJA.js → trace-QBQVS5BC.js} +5 -21
- package/dist/trace-QBQVS5BC.js.map +1 -0
- package/dist/transcript.d.ts.map +1 -1
- package/dist/transcript.js +2 -1
- 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 +32 -28
- package/dist/trust-zones.js +3 -2
- package/dist/types.d.ts +9 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/utility-learner.js +4 -3
- package/dist/utility-runtime.js +5 -4
- package/dist/utility-telemetry.js +3 -2
- package/dist/utils/macos-replication-junk.d.ts +32 -0
- package/dist/utils/macos-replication-junk.d.ts.map +1 -0
- package/dist/utils/malformed-entity-record.d.ts +24 -0
- package/dist/utils/malformed-entity-record.d.ts.map +1 -0
- 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 +32 -28
- package/dist/who-knows-cli.js +33 -29
- package/dist/who-knows.js +32 -28
- package/dist/work-product-ledger.js +3 -2
- package/dist/write-envelope.js +6 -5
- package/package.json +22 -2
- package/src/calibration.ts +3 -2
- 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/cli.ts +2 -2
- package/src/console/trace.ts +5 -36
- package/src/consolidation-provenance-check.ts +2 -0
- package/src/converge-config.ts +80 -1
- package/src/correction/correction-planner.ts +3 -2
- 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/json-store.ts +3 -0
- package/src/macos-replication-junk-scanners.test.ts +275 -0
- package/src/maintenance/dreams-ledger.ts +2 -0
- package/src/maintenance/memory-governance.ts +2 -0
- package/src/namespaces/storage.ts +2 -0
- package/src/offline-sync-macos-junk.test.ts +169 -0
- package/src/offline-sync.ts +7 -0
- package/src/profiling.ts +2 -1
- package/src/providers/codex-subscription.test.ts +15 -3
- package/src/retrieval-agents.ts +29 -12
- package/src/search/document-scanner.ts +4 -0
- package/src/storage/content-hash-index.ts +10 -0
- package/src/storage/entity-canonical-id-migration.ts +56 -13
- package/src/storage/entity-store.ts +173 -15
- package/src/storage/memory-read-store.ts +30 -5
- package/src/storage/supersession-audit.ts +2 -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 +16 -2
- package/src/transcript.ts +11 -10
- package/src/types.ts +9 -0
- package/src/utils/macos-replication-junk.test.ts +46 -0
- package/src/utils/macos-replication-junk.ts +65 -0
- package/src/utils/malformed-entity-record.ts +101 -0
- package/src/utils/sleep.ts +28 -0
- package/dist/chunk-375ARKRS.js.map +0 -1
- package/dist/chunk-3J5JKBYD.js.map +0 -1
- package/dist/chunk-4O6WRBGE.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-B6O2YLUR.js.map +0 -1
- package/dist/chunk-BLVHDY2U.js.map +0 -1
- package/dist/chunk-EQWEIIKQ.js.map +0 -1
- package/dist/chunk-HT2C4EXO.js.map +0 -1
- package/dist/chunk-KI6UOSNR.js.map +0 -1
- package/dist/chunk-MZBWIJJN.js.map +0 -1
- package/dist/chunk-Q4E24IRR.js.map +0 -1
- package/dist/chunk-QJ622LTI.js.map +0 -1
- package/dist/chunk-QWWMS4AE.js.map +0 -1
- package/dist/chunk-U7VPOXVM.js.map +0 -1
- package/dist/chunk-X3VID2TT.js.map +0 -1
- package/dist/chunk-XERVJYH2.js.map +0 -1
- package/dist/chunk-Y3VDGK2O.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-DGJOZYGT.js.map → auto-sync-7WWAKW6F.js.map} +0 -0
- /package/dist/{dreams-ledger-567VKVOU.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-KZO43HPY.js.map → chunk-22RM2ZUJ.js.map} +0 -0
- /package/dist/{chunk-ZUMXY4KA.js.map → chunk-22W2XWGH.js.map} +0 -0
- /package/dist/{chunk-PCWXLAJY.js.map → chunk-2PTH4PRL.js.map} +0 -0
- /package/dist/{chunk-ZIZ2G47N.js.map → chunk-2PYHLSXK.js.map} +0 -0
- /package/dist/{chunk-7OAIOE5P.js.map → chunk-33G67YZF.js.map} +0 -0
- /package/dist/{chunk-AV2OQF2O.js.map → chunk-3F3HA3R2.js.map} +0 -0
- /package/dist/{chunk-RP5SJ3XR.js.map → chunk-3GNIJUUE.js.map} +0 -0
- /package/dist/{chunk-QZZPUREO.js.map → chunk-3GYSZHMT.js.map} +0 -0
- /package/dist/{chunk-SWIKABKI.js.map → chunk-3Q3XD3NO.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-BZTRPCCH.js.map → chunk-4PDTVVSW.js.map} +0 -0
- /package/dist/{chunk-HM7RHKS4.js.map → chunk-4RNBLLZR.js.map} +0 -0
- /package/dist/{chunk-JUWJYXI4.js.map → chunk-5ATSXCAG.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-EMFBC7L3.js.map → chunk-5KGYTX5O.js.map} +0 -0
- /package/dist/{chunk-OFCHT2TN.js.map → chunk-5LRV557D.js.map} +0 -0
- /package/dist/{chunk-DXHVD4DS.js.map → chunk-5SMR542T.js.map} +0 -0
- /package/dist/{chunk-S7LWX2PQ.js.map → chunk-655FVTCD.js.map} +0 -0
- /package/dist/{chunk-DGRMWDQY.js.map → chunk-66BCOVW2.js.map} +0 -0
- /package/dist/{chunk-5MDM7UE4.js.map → chunk-6WGMZQGG.js.map} +0 -0
- /package/dist/{chunk-IPLYGWQF.js.map → chunk-7LCGFUMB.js.map} +0 -0
- /package/dist/{chunk-5ZJYHOJT.js.map → chunk-7VQ6AI7H.js.map} +0 -0
- /package/dist/{chunk-KYY4EACB.js.map → chunk-7Z3DLNSD.js.map} +0 -0
- /package/dist/{chunk-G7NYVKD6.js.map → chunk-B2NXOVZN.js.map} +0 -0
- /package/dist/{chunk-B43NMCGQ.js.map → chunk-BK2BVLZW.js.map} +0 -0
- /package/dist/{chunk-BOOFTFFE.js.map → chunk-C2RW36YR.js.map} +0 -0
- /package/dist/{chunk-5JMI26Q7.js.map → chunk-CBH2Z4UA.js.map} +0 -0
- /package/dist/{chunk-P2S6P7X6.js.map → chunk-CFZ4SXXH.js.map} +0 -0
- /package/dist/{chunk-6M56RFFJ.js.map → chunk-CJRENHVZ.js.map} +0 -0
- /package/dist/{chunk-EGDYVYU7.js.map → chunk-CLWBFR7Q.js.map} +0 -0
- /package/dist/{chunk-6VAHJ2F6.js.map → chunk-DMDWFQMR.js.map} +0 -0
- /package/dist/{chunk-UZSBCQEC.js.map → chunk-DPSOFK4D.js.map} +0 -0
- /package/dist/{chunk-IZT3BVDW.js.map → chunk-DQR2LD3V.js.map} +0 -0
- /package/dist/{chunk-K4QY55XV.js.map → chunk-EH4BQ7LT.js.map} +0 -0
- /package/dist/{chunk-EBA5DA77.js.map → chunk-EOU6V4IN.js.map} +0 -0
- /package/dist/{chunk-7KYJNHGM.js.map → chunk-EUCYTCFP.js.map} +0 -0
- /package/dist/{chunk-YNDLCWXS.js.map → chunk-EZ25VE3G.js.map} +0 -0
- /package/dist/{chunk-CKUUP64O.js.map → chunk-F2772ATT.js.map} +0 -0
- /package/dist/{chunk-46EST7JO.js.map → chunk-F2XNSIPP.js.map} +0 -0
- /package/dist/{chunk-2KRNPFPK.js.map → chunk-FLI6DEIU.js.map} +0 -0
- /package/dist/{chunk-OAIWPB2I.js.map → chunk-FT4UQYOV.js.map} +0 -0
- /package/dist/{chunk-HYNEDMYJ.js.map → chunk-G2OYFTUD.js.map} +0 -0
- /package/dist/{chunk-XTN54NML.js.map → chunk-G3T6YMBO.js.map} +0 -0
- /package/dist/{chunk-CNG2XVZG.js.map → chunk-G3UUAQOD.js.map} +0 -0
- /package/dist/{chunk-2ZQJLBV6.js.map → chunk-GCVDFX66.js.map} +0 -0
- /package/dist/{chunk-ON4ILX3G.js.map → chunk-GFAM2LTC.js.map} +0 -0
- /package/dist/{chunk-2LUSQV4U.js.map → chunk-GKJJNO7C.js.map} +0 -0
- /package/dist/{chunk-T2YX56QI.js.map → chunk-GQJKVQJR.js.map} +0 -0
- /package/dist/{chunk-5AOAQR37.js.map → chunk-GWVNGDJW.js.map} +0 -0
- /package/dist/{chunk-YDH2FSDI.js.map → chunk-GZXXPCWJ.js.map} +0 -0
- /package/dist/{chunk-5JCLELOP.js.map → chunk-H5IUN433.js.map} +0 -0
- /package/dist/{chunk-IWHEJXR2.js.map → chunk-H6FREOYX.js.map} +0 -0
- /package/dist/{chunk-B7CANWCA.js.map → chunk-HBAOOSHU.js.map} +0 -0
- /package/dist/{chunk-T3FMRLWQ.js.map → chunk-HFSPY26A.js.map} +0 -0
- /package/dist/{chunk-B657ZGDH.js.map → chunk-HQSK2INQ.js.map} +0 -0
- /package/dist/{chunk-RT6D3WN7.js.map → chunk-IJMDBYCO.js.map} +0 -0
- /package/dist/{chunk-CS2JEHTB.js.map → chunk-IUCPLBDS.js.map} +0 -0
- /package/dist/{chunk-XRBHXUTQ.js.map → chunk-IWD33CF4.js.map} +0 -0
- /package/dist/{chunk-4IHBN6WU.js.map → chunk-JKMIGCK6.js.map} +0 -0
- /package/dist/{chunk-ROBHL3GL.js.map → chunk-JWX2Q6HS.js.map} +0 -0
- /package/dist/{chunk-3I3U6FFT.js.map → chunk-K7BN34IA.js.map} +0 -0
- /package/dist/{chunk-4THZGKQ2.js.map → chunk-KLJVTZ3R.js.map} +0 -0
- /package/dist/{chunk-4G4B3Z2B.js.map → chunk-KW4AJ7T3.js.map} +0 -0
- /package/dist/{chunk-ZI7LMSNI.js.map → chunk-LLHZZOIB.js.map} +0 -0
- /package/dist/{chunk-LS2FHUML.js.map → chunk-LQ5SS4OP.js.map} +0 -0
- /package/dist/{chunk-NSFOERZQ.js.map → chunk-LWFWZTWX.js.map} +0 -0
- /package/dist/{chunk-BMWN7B3Y.js.map → chunk-LXATZLSC.js.map} +0 -0
- /package/dist/{chunk-OYKQ6T4V.js.map → chunk-MATDGSJ7.js.map} +0 -0
- /package/dist/{chunk-3NFN4Y4P.js.map → chunk-MGCKZWAE.js.map} +0 -0
- /package/dist/{chunk-O4KYRDRT.js.map → chunk-MJIOGYKX.js.map} +0 -0
- /package/dist/{chunk-6OMUHXHP.js.map → chunk-ML7ZJAKJ.js.map} +0 -0
- /package/dist/{chunk-GKIXBH7Y.js.map → chunk-MO6N4QYY.js.map} +0 -0
- /package/dist/{chunk-A2E4WNW4.js.map → chunk-MWWAQXZ6.js.map} +0 -0
- /package/dist/{chunk-VYPFEVOM.js.map → chunk-NHUX6GXA.js.map} +0 -0
- /package/dist/{chunk-AKREOU5F.js.map → chunk-NZCKG25S.js.map} +0 -0
- /package/dist/{chunk-4NDWE44P.js.map → chunk-NZFFGO5O.js.map} +0 -0
- /package/dist/{chunk-WWSRLS4M.js.map → chunk-O2YPCFJT.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-FQD2KPQH.js.map → chunk-P55FACBG.js.map} +0 -0
- /package/dist/{chunk-JYZSRNR7.js.map → chunk-PIITB2YZ.js.map} +0 -0
- /package/dist/{chunk-PBVNVKYN.js.map → chunk-PIN5OPBA.js.map} +0 -0
- /package/dist/{chunk-4TTGRETU.js.map → chunk-PRU7OF3Y.js.map} +0 -0
- /package/dist/{chunk-K2FSASGZ.js.map → chunk-PVHQSLNN.js.map} +0 -0
- /package/dist/{chunk-SVDU4OHO.js.map → chunk-Q35L7TYB.js.map} +0 -0
- /package/dist/{chunk-5VC7J76U.js.map → chunk-QPH52AZB.js.map} +0 -0
- /package/dist/{chunk-6T42L5FI.js.map → chunk-QS3OLP5I.js.map} +0 -0
- /package/dist/{chunk-P34FDDB5.js.map → chunk-QSEUUQUF.js.map} +0 -0
- /package/dist/{chunk-PAAJWQH5.js.map → chunk-QUMKDRCF.js.map} +0 -0
- /package/dist/{chunk-KZEMFD6E.js.map → chunk-R2H4ZFBJ.js.map} +0 -0
- /package/dist/{chunk-JFVCDEIC.js.map → chunk-RP7PQWZM.js.map} +0 -0
- /package/dist/{chunk-KC46VZR5.js.map → chunk-RTTPBBAN.js.map} +0 -0
- /package/dist/{chunk-ZQ3WU6JO.js.map → chunk-RXFCU3CY.js.map} +0 -0
- /package/dist/{chunk-CBP4HWCL.js.map → chunk-RYYVMZBR.js.map} +0 -0
- /package/dist/{chunk-2NCBDGND.js.map → chunk-SA6GMZJY.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-WETFW255.js.map → chunk-T7ASDYNK.js.map} +0 -0
- /package/dist/{chunk-XZLWYZ7C.js.map → chunk-THEPGZBM.js.map} +0 -0
- /package/dist/{chunk-YEM7K3KD.js.map → chunk-TMC7HBED.js.map} +0 -0
- /package/dist/{chunk-RWRQ67OR.js.map → chunk-TPNCXSXP.js.map} +0 -0
- /package/dist/{chunk-LZKOVXMX.js.map → chunk-TRMJ6BYC.js.map} +0 -0
- /package/dist/{chunk-A6TVQ3QP.js.map → chunk-UGYUBENJ.js.map} +0 -0
- /package/dist/{chunk-AAM66QCP.js.map → chunk-UZRSI6NX.js.map} +0 -0
- /package/dist/{chunk-XHWJRUVP.js.map → chunk-V3TXIXXY.js.map} +0 -0
- /package/dist/{chunk-2CXQZXWM.js.map → chunk-V4MB5ONM.js.map} +0 -0
- /package/dist/{chunk-UOKPJFO3.js.map → chunk-VNZMZPAC.js.map} +0 -0
- /package/dist/{chunk-FZB4TS2W.js.map → chunk-VPXIKBPX.js.map} +0 -0
- /package/dist/{chunk-CYEK6Z3P.js.map → chunk-VW6VIJOS.js.map} +0 -0
- /package/dist/{chunk-QUA7RLK6.js.map → chunk-W3FVQBGF.js.map} +0 -0
- /package/dist/{chunk-6OQ6N5RP.js.map → chunk-WGTR573G.js.map} +0 -0
- /package/dist/{chunk-W3K3HITK.js.map → chunk-WLT6LTQP.js.map} +0 -0
- /package/dist/{chunk-6Z2AZ4AJ.js.map → chunk-XKRXN63M.js.map} +0 -0
- /package/dist/{chunk-FZVROZKC.js.map → chunk-XVZA6VXC.js.map} +0 -0
- /package/dist/{chunk-DA2INEB5.js.map → chunk-XYGQSDTH.js.map} +0 -0
- /package/dist/{chunk-RBJQYMMT.js.map → chunk-YRULQW5J.js.map} +0 -0
- /package/dist/{chunk-QUNDYIYZ.js.map → chunk-YYEOR4XN.js.map} +0 -0
- /package/dist/{chunk-6WHJ2EAB.js.map → chunk-Z64TS5V4.js.map} +0 -0
- /package/dist/{chunk-NHLLKEKK.js.map → chunk-ZAJLJ35W.js.map} +0 -0
- /package/dist/{chunk-M7V65M6H.js.map → chunk-ZKHSAMTE.js.map} +0 -0
- /package/dist/{resolution-EKJHREVJ.js.map → dreams-ledger-UCHHRQ4R.js.map} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
computeCorpusWatermarks,
|
|
6
6
|
resolveCorpusNamespaceRoots
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QSEUUQUF.js";
|
|
8
8
|
|
|
9
9
|
// src/operator-doctor-corpus.ts
|
|
10
10
|
var DIGEST_PREFIX_LENGTH = 12;
|
|
@@ -78,4 +78,4 @@ export {
|
|
|
78
78
|
corpusWatermarksFromCheck,
|
|
79
79
|
summarizeCorpusAndReplica
|
|
80
80
|
};
|
|
81
|
-
//# sourceMappingURL=chunk-
|
|
81
|
+
//# sourceMappingURL=chunk-IJMDBYCO.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
normalizeDreamsStatusWindowHours
|
|
3
|
-
} from "./chunk-EQWEIIKQ.js";
|
|
4
1
|
import {
|
|
5
2
|
runGraphEdgeDecayMaintenanceAcrossNamespaces
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5GX5457J.js";
|
|
4
|
+
import {
|
|
5
|
+
normalizeDreamsStatusWindowHours
|
|
6
|
+
} from "./chunk-PQM3B54K.js";
|
|
7
7
|
import {
|
|
8
8
|
executeResolution,
|
|
9
9
|
isValidResolutionVerb,
|
|
10
10
|
runPreferenceDriftScan
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LWFWZTWX.js";
|
|
12
12
|
import {
|
|
13
13
|
getRecallTimingStatus,
|
|
14
14
|
isRecallTimingsOperator
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
defineOperation,
|
|
22
22
|
parseNamespacePreflightWriteOp,
|
|
23
23
|
resolveAuthorizedNamespaceWritablePreflight
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XLBFX63V.js";
|
|
25
25
|
import {
|
|
26
26
|
parseSharedWriteOutputControls
|
|
27
27
|
} from "./chunk-IFBSZGW3.js";
|
|
28
28
|
import {
|
|
29
29
|
validateBriefingFormat
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VNZMZPAC.js";
|
|
31
31
|
import {
|
|
32
32
|
parseDeepRecallMaxSteps
|
|
33
33
|
} from "./chunk-A7AISUJI.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
recallRequestSchema,
|
|
45
45
|
retainedCategoryAlias,
|
|
46
46
|
suggestionSubmitRequestSchema
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-RYYVMZBR.js";
|
|
48
48
|
import {
|
|
49
49
|
enforceNamespaceAllowList,
|
|
50
50
|
tokenCapabilityStore
|
|
@@ -603,4 +603,4 @@ defineOperation({ name: "graph_events", description: "SSE graph events.", schema
|
|
|
603
603
|
defineOperation({ name: "chat_message", description: "Chat message.", schema: strictSchema({ message: S.str, chatSessionId: S.str }), handler: async (_i, _ctx) => ({ result: { ok: true } }) });
|
|
604
604
|
defineOperation({ name: "chat_events", description: "SSE chat events.", schema: strictSchema({}), handler: async (_i, _ctx) => ({ result: { stream: "sse" } }) });
|
|
605
605
|
defineOperation({ name: "adapters_status", description: "Adapter registry metadata (issue #1850 round 5). Marker op: the HTTP transport builds the response from its own adapterRegistry, but the op still must be registered so it appears in listRegisteredOperations and enforceTokenOp can gate it for scoped tokens.", schema: strictSchema({}), handler: async (_i, _ctx) => ({ result: { ok: true } }) });
|
|
606
|
-
//# sourceMappingURL=chunk-
|
|
606
|
+
//# sourceMappingURL=chunk-IUCPLBDS.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
headerConnector,
|
|
4
4
|
renderExtractionConversation,
|
|
5
5
|
resolveSourceConnector
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-22W2XWGH.js";
|
|
7
7
|
import {
|
|
8
8
|
normalizeReasoningTrace
|
|
9
9
|
} from "./chunk-54V4BZWP.js";
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
buildSpanMaterializeTurns,
|
|
29
29
|
stripUntrustedFactSpans,
|
|
30
30
|
truncateLocalExtractionConversation
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XVZA6VXC.js";
|
|
32
32
|
import {
|
|
33
33
|
attachExtractionProvenance
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-CIIHIAJ2.js";
|
|
35
35
|
import {
|
|
36
36
|
containsExtractionPlaceholder,
|
|
37
37
|
extractionAttributes,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
} from "./chunk-EI6V5UXY.js";
|
|
77
77
|
import {
|
|
78
78
|
ProfilingCollector
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-DOWACHYO.js";
|
|
80
80
|
import {
|
|
81
81
|
ModelRegistry
|
|
82
82
|
} from "./chunk-5MA7ZLPD.js";
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
} from "./chunk-YBA52OKG.js";
|
|
103
103
|
import {
|
|
104
104
|
isMemoryCategory
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-5LRV557D.js";
|
|
106
106
|
import {
|
|
107
107
|
sanitizeMemoryContent
|
|
108
108
|
} from "./chunk-5GKPFL3S.js";
|
|
@@ -2437,4 +2437,4 @@ export {
|
|
|
2437
2437
|
shouldEnableLocalExtractionThinking,
|
|
2438
2438
|
ExtractionEngine
|
|
2439
2439
|
};
|
|
2440
|
-
//# sourceMappingURL=chunk-
|
|
2440
|
+
//# sourceMappingURL=chunk-IWD33CF4.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
listJsonFiles,
|
|
3
3
|
listNamedFiles,
|
|
4
4
|
readJsonFile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2Z5DIDQD.js";
|
|
6
6
|
|
|
7
7
|
// src/evals.ts
|
|
8
8
|
import path from "path";
|
|
@@ -897,4 +897,4 @@ export {
|
|
|
897
897
|
runEvalStoredBaselineCiGate,
|
|
898
898
|
runEvalBenchmarkCiGate
|
|
899
899
|
};
|
|
900
|
-
//# sourceMappingURL=chunk-
|
|
900
|
+
//# sourceMappingURL=chunk-JKMIGCK6.js.map
|
|
@@ -2,7 +2,16 @@ import {
|
|
|
2
2
|
pathMayCarryEntityRefs,
|
|
3
3
|
requestEntityCanonicalIdReconcile,
|
|
4
4
|
withRawEntityPageMutation
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NZFFGO5O.js";
|
|
6
|
+
import {
|
|
7
|
+
TombstoneBlockedCaptureWriteLock,
|
|
8
|
+
buildCapturePathLockIdentity,
|
|
9
|
+
buildExplicitCaptureDedupKey,
|
|
10
|
+
captureIdentityHash,
|
|
11
|
+
isQueuedReviewMemory,
|
|
12
|
+
runTombstoneBlockedMutation,
|
|
13
|
+
tombstoneBlocked
|
|
14
|
+
} from "./chunk-6EDW54SQ.js";
|
|
6
15
|
import {
|
|
7
16
|
bumpArchiveMutationForPath
|
|
8
17
|
} from "./chunk-W5BIQOAJ.js";
|
|
@@ -12,10 +21,10 @@ import {
|
|
|
12
21
|
import {
|
|
13
22
|
CONTENT_HASH_INDEX_RETRY_MAX_DELAY_MS,
|
|
14
23
|
ContentHashIndex
|
|
15
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-DEY7B77Y.js";
|
|
16
25
|
import {
|
|
17
26
|
withHeldFileLock
|
|
18
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5B5WYAHQ.js";
|
|
19
28
|
import {
|
|
20
29
|
resolveSafeStoragePath
|
|
21
30
|
} from "./chunk-LDPPTPO5.js";
|
|
@@ -1050,236 +1059,17 @@ var CasRevisionHost = class extends CasRevisionStore {
|
|
|
1050
1059
|
}
|
|
1051
1060
|
};
|
|
1052
1061
|
|
|
1053
|
-
// src/storage/tombstone-blocked-capture-mutation.ts
|
|
1054
|
-
import { AsyncLocalStorage } from "async_hooks";
|
|
1055
|
-
import { createHash as createHash3 } from "crypto";
|
|
1056
|
-
import { mkdir as mkdir3 } from "fs/promises";
|
|
1057
|
-
import path3 from "path";
|
|
1058
|
-
var TOMBSTONE_CAPTURE_WRITE_LOCK_STALE_MS = 6e4;
|
|
1059
|
-
var CAPTURE_WRITE_LOCK_MAX_ATTEMPTS = 3;
|
|
1060
|
-
var CAPTURE_WRITE_LOCK_RETRY_BASE_MS = 25;
|
|
1061
|
-
var CAPTURE_WRITE_LOCK_BUSY_MESSAGE = "tombstone-blocked capture write lock remained busy";
|
|
1062
|
-
function isTombstoneBlockedCaptureWriteLockBusy(error) {
|
|
1063
|
-
return error instanceof Error && error.message === CAPTURE_WRITE_LOCK_BUSY_MESSAGE;
|
|
1064
|
-
}
|
|
1065
|
-
function normalizeExplicitCaptureContent(value) {
|
|
1066
|
-
return value.toLowerCase().replace(/\s+/g, " ").trim();
|
|
1067
|
-
}
|
|
1068
|
-
function buildExplicitCaptureDedupKey(content, category, sourceConnector) {
|
|
1069
|
-
const encode = (label, value) => `${label} ${value.length} ${value}`;
|
|
1070
|
-
return [
|
|
1071
|
-
encode("category", category),
|
|
1072
|
-
encode("connector", sourceConnector?.trim() ?? ""),
|
|
1073
|
-
encode("content", normalizeExplicitCaptureContent(content))
|
|
1074
|
-
].join(" ");
|
|
1075
|
-
}
|
|
1076
|
-
function buildCapturePathLockIdentity(pathname) {
|
|
1077
|
-
return `path ${pathname.length} ${pathname}`;
|
|
1078
|
-
}
|
|
1079
|
-
function captureIdentityHash(memory) {
|
|
1080
|
-
return createHash3("sha256").update(
|
|
1081
|
-
buildExplicitCaptureDedupKey(memory.content, memory.frontmatter.category, memory.frontmatter.sourceConnector)
|
|
1082
|
-
).digest("hex");
|
|
1083
|
-
}
|
|
1084
|
-
var TombstoneBlockedCaptureWriteLock = class {
|
|
1085
|
-
constructor(options) {
|
|
1086
|
-
this.options = options;
|
|
1087
|
-
}
|
|
1088
|
-
options;
|
|
1089
|
-
context = new AsyncLocalStorage();
|
|
1090
|
-
captureWriteLockPathForHash(identityHash) {
|
|
1091
|
-
const filename = identityHash.length === 0 ? "explicit-capture-write.lock" : `explicit-capture-write-${identityHash}.lock`;
|
|
1092
|
-
return path3.join(this.options.stateDir, "tombstone-blocked-capture", filename);
|
|
1093
|
-
}
|
|
1094
|
-
async withSingleCaptureWriteLock(lockPath, task) {
|
|
1095
|
-
await mkdir3(path3.dirname(lockPath), { recursive: true });
|
|
1096
|
-
const retry = /* @__PURE__ */ Symbol("retry");
|
|
1097
|
-
const permanentFailure = /* @__PURE__ */ Symbol("permanent-failure");
|
|
1098
|
-
const runWithHeldFileLock = this.options.withHeldFileLock ?? withHeldFileLock;
|
|
1099
|
-
for (let attempt = 0; attempt < CAPTURE_WRITE_LOCK_MAX_ATTEMPTS; attempt += 1) {
|
|
1100
|
-
const result = await runWithHeldFileLock(
|
|
1101
|
-
lockPath,
|
|
1102
|
-
{
|
|
1103
|
-
staleMs: TOMBSTONE_CAPTURE_WRITE_LOCK_STALE_MS,
|
|
1104
|
-
maxWaitMs: 1e3,
|
|
1105
|
-
pollMs: 25
|
|
1106
|
-
},
|
|
1107
|
-
async (acquired, controller) => {
|
|
1108
|
-
if (acquired) return await task();
|
|
1109
|
-
return controller.failure === "error" ? permanentFailure : retry;
|
|
1110
|
-
}
|
|
1111
|
-
);
|
|
1112
|
-
if (result === permanentFailure) {
|
|
1113
|
-
throw new Error("tombstone-blocked capture write lock acquisition failed");
|
|
1114
|
-
}
|
|
1115
|
-
if (result !== retry) return result;
|
|
1116
|
-
if (attempt === CAPTURE_WRITE_LOCK_MAX_ATTEMPTS - 1) break;
|
|
1117
|
-
const delayState = Promise.withResolvers();
|
|
1118
|
-
setTimeout(delayState.resolve, CAPTURE_WRITE_LOCK_RETRY_BASE_MS * 2 ** attempt);
|
|
1119
|
-
await delayState.promise;
|
|
1120
|
-
}
|
|
1121
|
-
throw new Error(CAPTURE_WRITE_LOCK_BUSY_MESSAGE);
|
|
1122
|
-
}
|
|
1123
|
-
async withPhysicalCaptureWriteLocks(task, identityHashes) {
|
|
1124
|
-
const lockPaths = [...new Set(identityHashes.map((hash) => this.captureWriteLockPathForHash(hash)))];
|
|
1125
|
-
const acquire = async (index) => {
|
|
1126
|
-
if (index === lockPaths.length) return await task();
|
|
1127
|
-
return await this.withSingleCaptureWriteLock(lockPaths[index], () => acquire(index + 1));
|
|
1128
|
-
};
|
|
1129
|
-
return await acquire(0);
|
|
1130
|
-
}
|
|
1131
|
-
async withCaptureWriteLock(task, identity) {
|
|
1132
|
-
const identities = Array.isArray(identity) && identity.length > 0 ? identity : [typeof identity === "string" ? identity : ""];
|
|
1133
|
-
return await this.withCaptureWriteLocks(task, identities, []);
|
|
1134
|
-
}
|
|
1135
|
-
async withCaptureWriteLockHashes(task, identityHashes) {
|
|
1136
|
-
return await this.withCaptureWriteLocks(task, [], identityHashes);
|
|
1137
|
-
}
|
|
1138
|
-
async withCaptureWriteLockAndHashes(task, identity, identityHashes) {
|
|
1139
|
-
const identities = Array.isArray(identity) && identity.length > 0 ? identity : [typeof identity === "string" ? identity : ""];
|
|
1140
|
-
return await this.withCaptureWriteLocks(task, identities, identityHashes);
|
|
1141
|
-
}
|
|
1142
|
-
async withCaptureWriteLocks(task, identities, identityHashes) {
|
|
1143
|
-
const current = this.context.getStore();
|
|
1144
|
-
const hashToken = (key) => `\0${key.length === 0 ? "" : createHash3("sha256").update(key).digest("hex")}`;
|
|
1145
|
-
const identityHash = (key) => key.length === 0 ? "" : createHash3("sha256").update(key).digest("hex");
|
|
1146
|
-
const identityKeys = [...new Set(identities)];
|
|
1147
|
-
const hashes = [...new Set(identityHashes)];
|
|
1148
|
-
const requested = [
|
|
1149
|
-
...identityKeys.filter((key) => !current || !current.has(key) && !current.has(hashToken(key))).map((key) => ({ hash: identityHash(key), pathLock: key.startsWith("path ") })),
|
|
1150
|
-
...hashes.filter((hash) => !current || !current.has(`\0${hash}`)).map((hash) => ({ hash, pathLock: false }))
|
|
1151
|
-
].filter((entry, index, entries) => entries.findIndex((candidate) => candidate.hash === entry.hash) === index).sort(
|
|
1152
|
-
(left, right) => Number(left.pathLock) - Number(right.pathLock) || this.captureWriteLockPathForHash(left.hash).localeCompare(this.captureWriteLockPathForHash(right.hash))
|
|
1153
|
-
);
|
|
1154
|
-
const physicalMissing = requested.map((entry) => entry.hash);
|
|
1155
|
-
if (current && requested.length > 0) {
|
|
1156
|
-
const held = [...current].filter((token) => token.startsWith("\0")).map((token) => {
|
|
1157
|
-
const hash = token.slice(1);
|
|
1158
|
-
const pathLock = [...current].some(
|
|
1159
|
-
(key) => !key.startsWith("\0") && key.startsWith("path ") && hashToken(key) === token
|
|
1160
|
-
);
|
|
1161
|
-
return { hash, pathLock };
|
|
1162
|
-
});
|
|
1163
|
-
const requestedFirst = requested[0];
|
|
1164
|
-
const heldLast = held.sort(
|
|
1165
|
-
(left, right) => Number(left.pathLock) - Number(right.pathLock) || this.captureWriteLockPathForHash(left.hash).localeCompare(this.captureWriteLockPathForHash(right.hash))
|
|
1166
|
-
).at(-1);
|
|
1167
|
-
if (heldLast && requestedFirst && (Number(requestedFirst.pathLock) < Number(heldLast.pathLock) || requestedFirst.pathLock === heldLast.pathLock && this.captureWriteLockPathForHash(requestedFirst.hash) < this.captureWriteLockPathForHash(heldLast.hash))) {
|
|
1168
|
-
throw new Error(CAPTURE_WRITE_LOCK_BUSY_MESSAGE);
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
const next = new Set(current);
|
|
1172
|
-
for (const key of identityKeys) {
|
|
1173
|
-
next.add(key);
|
|
1174
|
-
next.add(hashToken(key));
|
|
1175
|
-
}
|
|
1176
|
-
for (const hash of hashes) next.add(`\0${hash}`);
|
|
1177
|
-
const run = () => this.context.run(next, task);
|
|
1178
|
-
if (physicalMissing.length === 0) return await run();
|
|
1179
|
-
return await this.withPhysicalCaptureWriteLocks(run, physicalMissing);
|
|
1180
|
-
}
|
|
1181
|
-
};
|
|
1182
|
-
async function runTombstoneBlockedMutation(host, mutation) {
|
|
1183
|
-
let lockIdentity = mutation.identity;
|
|
1184
|
-
for (; ; ) {
|
|
1185
|
-
let retryIdentity;
|
|
1186
|
-
let mintedRevision;
|
|
1187
|
-
const mutate = async () => {
|
|
1188
|
-
const current = await host.readCurrent();
|
|
1189
|
-
const currentBlocked = host.isBlocked(current);
|
|
1190
|
-
const currentQueuedReview = host.isQueuedReview(current);
|
|
1191
|
-
if (current !== null && (mutation.coordinate === true || currentBlocked || currentQueuedReview)) {
|
|
1192
|
-
const currentIdentity = host.memoryIdentity(current);
|
|
1193
|
-
const heldIdentities = Array.isArray(lockIdentity) ? lockIdentity : [lockIdentity];
|
|
1194
|
-
if (!heldIdentities.includes(currentIdentity)) {
|
|
1195
|
-
retryIdentity = currentIdentity;
|
|
1196
|
-
return;
|
|
1197
|
-
}
|
|
1198
|
-
}
|
|
1199
|
-
const rebuildMarker = mutation.blocked || currentBlocked ? await host.prepareWrite() : void 0;
|
|
1200
|
-
const discardRebuildMarker = async () => {
|
|
1201
|
-
if (!rebuildMarker) return;
|
|
1202
|
-
try {
|
|
1203
|
-
await host.discardWrite(rebuildMarker);
|
|
1204
|
-
} catch (cleanupError) {
|
|
1205
|
-
host.markUntrusted();
|
|
1206
|
-
host.logWarning(`storage.tombstoneBlocked failed to clear write marker: ${cleanupError}`);
|
|
1207
|
-
}
|
|
1208
|
-
};
|
|
1209
|
-
let transaction;
|
|
1210
|
-
try {
|
|
1211
|
-
transaction = mutation.shouldMintRevision?.(current) ? await host.beginDurableMemoryRevision?.(mutation.pathname, mutation.fileContent) : void 0;
|
|
1212
|
-
await host.writeStorageSecureFile(mutation.pathname, mutation.fileContent);
|
|
1213
|
-
} catch (err) {
|
|
1214
|
-
if (transaction) {
|
|
1215
|
-
try {
|
|
1216
|
-
await transaction.abort();
|
|
1217
|
-
} catch (abortError) {
|
|
1218
|
-
host.logWarning(
|
|
1219
|
-
`storage.tombstoneBlocked failed to abort the reserved receipt (pending marker preserved): ${abortError}`
|
|
1220
|
-
);
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
await discardRebuildMarker();
|
|
1224
|
-
throw err;
|
|
1225
|
-
}
|
|
1226
|
-
if (transaction) {
|
|
1227
|
-
try {
|
|
1228
|
-
await transaction.writeLanded();
|
|
1229
|
-
} catch (evidenceError) {
|
|
1230
|
-
host.logWarning(
|
|
1231
|
-
`storage.tombstoneBlocked failed to record receipt crash evidence (pending marker preserved): ${evidenceError}`
|
|
1232
|
-
);
|
|
1233
|
-
}
|
|
1234
|
-
try {
|
|
1235
|
-
await transaction.commit();
|
|
1236
|
-
} catch (err) {
|
|
1237
|
-
host.logWarning(
|
|
1238
|
-
`storage.tombstoneBlocked receipt publication failed after the memory write (pending marker preserved for recovery): ${err}`
|
|
1239
|
-
);
|
|
1240
|
-
await discardRebuildMarker();
|
|
1241
|
-
throw err;
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
mintedRevision = transaction?.pendingRevision;
|
|
1245
|
-
if (rebuildMarker) {
|
|
1246
|
-
try {
|
|
1247
|
-
await host.commitWrite(rebuildMarker);
|
|
1248
|
-
} catch (err) {
|
|
1249
|
-
host.markUntrusted();
|
|
1250
|
-
host.logWarning(`storage.tombstoneBlocked committed write marker failed: ${err}`);
|
|
1251
|
-
}
|
|
1252
|
-
}
|
|
1253
|
-
if (rebuildMarker) await mutation.beforeIndexUpdate?.();
|
|
1254
|
-
await mutation.updateIndex(rebuildMarker, currentBlocked && current !== null ? current : void 0);
|
|
1255
|
-
};
|
|
1256
|
-
await host.withCaptureWriteLock(mutate, lockIdentity);
|
|
1257
|
-
if (retryIdentity === void 0) return mintedRevision;
|
|
1258
|
-
const identities = Array.isArray(lockIdentity) ? [...lockIdentity, retryIdentity] : [lockIdentity, retryIdentity];
|
|
1259
|
-
lockIdentity = [...new Set(identities)];
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
function tombstoneBlocked(frontmatter) {
|
|
1263
|
-
return frontmatter.status === "pending_review" && Boolean(frontmatter.blockedBy);
|
|
1264
|
-
}
|
|
1265
|
-
function isQueuedReviewFrontmatter(frontmatter) {
|
|
1266
|
-
return frontmatter.status === "pending_review" && (frontmatter.tags ?? []).includes("queued-review");
|
|
1267
|
-
}
|
|
1268
|
-
function isQueuedReviewMemory(memory) {
|
|
1269
|
-
return memory !== null && isQueuedReviewFrontmatter(memory.frontmatter);
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
1062
|
// src/storage/tombstone-blocked-capture-sync.ts
|
|
1273
|
-
import { createHash as
|
|
1063
|
+
import { createHash as createHash3, randomUUID as randomUUID4 } from "crypto";
|
|
1274
1064
|
import { unlink as unlink4 } from "fs/promises";
|
|
1275
|
-
import
|
|
1065
|
+
import path4 from "path";
|
|
1276
1066
|
import { isDeepStrictEqual } from "util";
|
|
1277
1067
|
|
|
1278
1068
|
// src/storage/tombstone-blocked-capture-index.ts
|
|
1279
1069
|
import { execFile } from "child_process";
|
|
1280
1070
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
1281
|
-
import { mkdir as
|
|
1282
|
-
import
|
|
1071
|
+
import { mkdir as mkdir3, readFile as readFile3, readdir, rename as rename3, stat, unlink as unlink3, writeFile } from "fs/promises";
|
|
1072
|
+
import path3 from "path";
|
|
1283
1073
|
import { promisify } from "util";
|
|
1284
1074
|
var REBUILD_MAX_ATTEMPTS = 3;
|
|
1285
1075
|
var execFileAsync = promisify(execFile);
|
|
@@ -1297,11 +1087,15 @@ var TombstoneBlockedCaptureIndex = class {
|
|
|
1297
1087
|
captureWriteLock;
|
|
1298
1088
|
constructor(options) {
|
|
1299
1089
|
this.options = options;
|
|
1300
|
-
this.captureWriteLock = new TombstoneBlockedCaptureWriteLock(
|
|
1090
|
+
this.captureWriteLock = new TombstoneBlockedCaptureWriteLock({
|
|
1091
|
+
stateDir: options.stateDir,
|
|
1092
|
+
withHeldFileLock: options.withHeldFileLock,
|
|
1093
|
+
lockOptions: options.captureLockLimitSource
|
|
1094
|
+
});
|
|
1301
1095
|
}
|
|
1302
1096
|
createIndex() {
|
|
1303
1097
|
return new ContentHashIndex(
|
|
1304
|
-
|
|
1098
|
+
path3.join(this.options.stateDir, "tombstone-blocked-capture"),
|
|
1305
1099
|
this.options.secureStoreKeyProvider,
|
|
1306
1100
|
this.options.secureStoreWriteKeyProvider,
|
|
1307
1101
|
this.options.memoryDir,
|
|
@@ -1309,17 +1103,17 @@ var TombstoneBlockedCaptureIndex = class {
|
|
|
1309
1103
|
);
|
|
1310
1104
|
}
|
|
1311
1105
|
indexPath() {
|
|
1312
|
-
return
|
|
1106
|
+
return path3.join(this.options.stateDir, "tombstone-blocked-capture", "fact-hashes.txt");
|
|
1313
1107
|
}
|
|
1314
1108
|
rebuildMarkerPath() {
|
|
1315
|
-
return
|
|
1109
|
+
return path3.join(this.options.stateDir, "tombstone-blocked-capture", "rebuild-required");
|
|
1316
1110
|
}
|
|
1317
1111
|
async readRebuildMarkers() {
|
|
1318
1112
|
try {
|
|
1319
1113
|
const entries = (await readdir(this.rebuildMarkerPath())).filter((entry) => !entry.startsWith("."));
|
|
1320
1114
|
return (await Promise.all(
|
|
1321
1115
|
entries.map(async (entry) => {
|
|
1322
|
-
const markerPath =
|
|
1116
|
+
const markerPath = path3.join(this.rebuildMarkerPath(), entry);
|
|
1323
1117
|
try {
|
|
1324
1118
|
const raw = (await readFile3(markerPath, "utf8")).trim();
|
|
1325
1119
|
if (raw === "committed") return { path: markerPath, committed: true };
|
|
@@ -1342,7 +1136,7 @@ var TombstoneBlockedCaptureIndex = class {
|
|
|
1342
1136
|
const markerStat = await stat(markerPath).catch(() => null);
|
|
1343
1137
|
const createdAt = typeof value.createdAt === "number" && Number.isFinite(value.createdAt) ? value.createdAt : markerStat?.mtimeMs;
|
|
1344
1138
|
if (typeof value.pid !== "number" || !Number.isInteger(value.pid)) malformed = true;
|
|
1345
|
-
const ownerId = typeof value.ownerId === "string" && value.ownerId.length > 0 ? value.ownerId :
|
|
1139
|
+
const ownerId = typeof value.ownerId === "string" && value.ownerId.length > 0 ? value.ownerId : path3.basename(markerPath);
|
|
1346
1140
|
if (typeof value.ownerId !== "string" || value.ownerId.length === 0) malformed = true;
|
|
1347
1141
|
const processStartedAtMs = typeof value.processStartedAtMs === "number" && Number.isFinite(value.processStartedAtMs) && value.processStartedAtMs > 0 ? value.processStartedAtMs : void 0;
|
|
1348
1142
|
return {
|
|
@@ -1434,9 +1228,9 @@ var TombstoneBlockedCaptureIndex = class {
|
|
|
1434
1228
|
}
|
|
1435
1229
|
async markRebuildRequired(committed = false) {
|
|
1436
1230
|
const markerDir = this.rebuildMarkerPath();
|
|
1437
|
-
await
|
|
1231
|
+
await mkdir3(markerDir, { recursive: true });
|
|
1438
1232
|
const ownerId = randomUUID3();
|
|
1439
|
-
const markerPath =
|
|
1233
|
+
const markerPath = path3.join(markerDir, ownerId);
|
|
1440
1234
|
await this.writeMarkerAtomically(
|
|
1441
1235
|
markerPath,
|
|
1442
1236
|
`${JSON.stringify({
|
|
@@ -1456,7 +1250,7 @@ var TombstoneBlockedCaptureIndex = class {
|
|
|
1456
1250
|
`${JSON.stringify({
|
|
1457
1251
|
state: "committed",
|
|
1458
1252
|
pid: process.pid,
|
|
1459
|
-
ownerId:
|
|
1253
|
+
ownerId: path3.basename(markerPath),
|
|
1460
1254
|
createdAt: Date.now(),
|
|
1461
1255
|
processStartedAtMs: MARKER_PROCESS_STARTED_AT_MS
|
|
1462
1256
|
})}
|
|
@@ -1708,8 +1502,8 @@ var TombstoneBlockedCaptureIndex = class {
|
|
|
1708
1502
|
await this.failOpen("writeMemoryFrontmatter", () => this.sync(before, { ...before, frontmatter }, rebuildMarker));
|
|
1709
1503
|
}
|
|
1710
1504
|
shouldRebuildAfterInvalidationForPath(filePath) {
|
|
1711
|
-
const relative =
|
|
1712
|
-
const category = relative.split(
|
|
1505
|
+
const relative = path3.relative(path3.resolve(this.options.memoryDir), path3.resolve(filePath));
|
|
1506
|
+
const category = relative.split(path3.sep)[0];
|
|
1713
1507
|
return category === "cold" || RECALL_FALLBACK_DIRS.includes(category);
|
|
1714
1508
|
}
|
|
1715
1509
|
};
|
|
@@ -2070,7 +1864,7 @@ var TombstoneBlockedCaptureIndexHost = class {
|
|
|
2070
1864
|
this.invalidateAllMemoriesCache();
|
|
2071
1865
|
this.invalidateKnowledgeIndexCache();
|
|
2072
1866
|
this.markFactHashIndexNotAuthoritative();
|
|
2073
|
-
if (filePath.includes(`${
|
|
1867
|
+
if (filePath.includes(`${path4.sep}cold${path4.sep}`)) {
|
|
2074
1868
|
this.invalidateColdMemoriesCache();
|
|
2075
1869
|
}
|
|
2076
1870
|
if (blockedKeySetMayHaveChanged) {
|
|
@@ -2083,7 +1877,7 @@ var TombstoneBlockedCaptureIndexHost = class {
|
|
|
2083
1877
|
log.warn(`storage.offlineSyncFile committed write succeeded; marker cleanup failed: ${err}`);
|
|
2084
1878
|
}
|
|
2085
1879
|
}
|
|
2086
|
-
if (filePath.includes(`${
|
|
1880
|
+
if (filePath.includes(`${path4.sep}artifacts${path4.sep}`)) {
|
|
2087
1881
|
this.bumpArtifactWriteVersion();
|
|
2088
1882
|
}
|
|
2089
1883
|
const memoryDir = this.tombstoneBlockedCaptureIndexOptions().memoryDir;
|
|
@@ -2178,7 +1972,7 @@ var TombstoneBlockedCaptureIndexHost = class {
|
|
|
2178
1972
|
bumpArchiveMutationForPath(memoryDir, true, current.path);
|
|
2179
1973
|
markProjectedMemoryPathInvalid(memoryDir, current.frontmatter.id);
|
|
2180
1974
|
this.invalidateAllMemoriesCache();
|
|
2181
|
-
if (current.path.includes(`${
|
|
1975
|
+
if (current.path.includes(`${path4.sep}cold${path4.sep}`)) {
|
|
2182
1976
|
this.invalidateColdMemoriesCache();
|
|
2183
1977
|
}
|
|
2184
1978
|
await this.rebuildTombstoneBlockedCaptureAfterInvalidation(rebuildMarker);
|
|
@@ -2261,7 +2055,7 @@ var TombstoneBlockedCaptureIndexHost = class {
|
|
|
2261
2055
|
async writeTombstoneBlockedOfflineSyncFile(target, content) {
|
|
2262
2056
|
const options = this.tombstoneBlockedCaptureIndexOptions();
|
|
2263
2057
|
const after = options.parseMemory?.(target, content) ?? null;
|
|
2264
|
-
await withRawEntityPageMutation(
|
|
2058
|
+
await withRawEntityPageMutation(path4.dirname(options.stateDir), target, async () => {
|
|
2265
2059
|
await this.runTombstoneBlockedOfflineSyncMutation(
|
|
2266
2060
|
target,
|
|
2267
2061
|
after,
|
|
@@ -2300,7 +2094,7 @@ var TombstoneBlockedCaptureIndexHost = class {
|
|
|
2300
2094
|
return { after, chunks: replay };
|
|
2301
2095
|
}
|
|
2302
2096
|
const options = this.tombstoneBlockedCaptureIndexOptions();
|
|
2303
|
-
const stagePath =
|
|
2097
|
+
const stagePath = path4.join(
|
|
2304
2098
|
options.stateDir,
|
|
2305
2099
|
"tombstone-blocked-capture",
|
|
2306
2100
|
"offline-sync-staging",
|
|
@@ -2379,7 +2173,7 @@ var TombstoneBlockedCaptureIndexHost = class {
|
|
|
2379
2173
|
encode("connector", connector),
|
|
2380
2174
|
`content ${normalizedLength} `
|
|
2381
2175
|
].join(" ");
|
|
2382
|
-
let identityHash =
|
|
2176
|
+
let identityHash = createHash3("sha256");
|
|
2383
2177
|
let normalSigmaIdentityHash;
|
|
2384
2178
|
identityHash.update(identityPrefix);
|
|
2385
2179
|
const identityNormalizer = createExplicitContentNormalizer({
|
|
@@ -2425,7 +2219,7 @@ var TombstoneBlockedCaptureIndexHost = class {
|
|
|
2425
2219
|
const coordinate = this.getTombstoneBlockedCaptureIndex().shouldRebuildAfterInvalidationForPath(target);
|
|
2426
2220
|
const prepared = coordinate ? await this.prepareTombstoneBlockedOfflineSyncChunks(target, chunks) : { after: null, chunks };
|
|
2427
2221
|
const streamedIdentity = prepared.streamedIdentity;
|
|
2428
|
-
const baseDir =
|
|
2222
|
+
const baseDir = path4.dirname(this.tombstoneBlockedCaptureIndexOptions().stateDir);
|
|
2429
2223
|
try {
|
|
2430
2224
|
await withRawEntityPageMutation(baseDir, target, async () => {
|
|
2431
2225
|
await this.runTombstoneBlockedOfflineSyncMutation(
|
|
@@ -2457,7 +2251,7 @@ var TombstoneBlockedCaptureIndexHost = class {
|
|
|
2457
2251
|
*/
|
|
2458
2252
|
async requestSyncReconcileIfMigrationPath(target) {
|
|
2459
2253
|
const stateDir = this.tombstoneBlockedCaptureIndexOptions().stateDir;
|
|
2460
|
-
if (!pathMayCarryEntityRefs(
|
|
2254
|
+
if (!pathMayCarryEntityRefs(path4.dirname(stateDir), target)) return;
|
|
2461
2255
|
await requestEntityCanonicalIdReconcile(stateDir);
|
|
2462
2256
|
}
|
|
2463
2257
|
async deleteOfflineSyncFile(filePath, deletionMtimeMs) {
|
|
@@ -2467,7 +2261,7 @@ var TombstoneBlockedCaptureIndexHost = class {
|
|
|
2467
2261
|
}
|
|
2468
2262
|
async deleteTombstoneBlockedOfflineSyncFile(target, deletionMtimeMs) {
|
|
2469
2263
|
const stateDir = this.tombstoneBlockedCaptureIndexOptions().stateDir;
|
|
2470
|
-
await withRawEntityPageMutation(
|
|
2264
|
+
await withRawEntityPageMutation(path4.dirname(stateDir), target, async () => {
|
|
2471
2265
|
await this.runTombstoneBlockedOfflineSyncMutation(target, null, async () => {
|
|
2472
2266
|
return await this.deleteManagedStorageFile(target, deletionMtimeMs);
|
|
2473
2267
|
});
|
|
@@ -2500,13 +2294,7 @@ export {
|
|
|
2500
2294
|
DeletionRevisionStore,
|
|
2501
2295
|
canonicalSemanticFileText,
|
|
2502
2296
|
CasRevisionHost,
|
|
2503
|
-
isTombstoneBlockedCaptureWriteLockBusy,
|
|
2504
|
-
normalizeExplicitCaptureContent,
|
|
2505
|
-
buildExplicitCaptureDedupKey,
|
|
2506
|
-
buildCapturePathLockIdentity,
|
|
2507
|
-
tombstoneBlocked,
|
|
2508
|
-
isQueuedReviewMemory,
|
|
2509
2297
|
parseTombstoneBlockedOfflineSyncMemory,
|
|
2510
2298
|
TombstoneBlockedCaptureIndexHost
|
|
2511
2299
|
};
|
|
2512
|
-
//# sourceMappingURL=chunk-
|
|
2300
|
+
//# sourceMappingURL=chunk-JNIVZNIB.js.map
|