@remnic/core 9.69.22 → 9.69.24
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.d.ts +14 -12
- package/dist/access-admin-ops-surface.js +94 -91
- package/dist/access-authorization-probe.d.ts +14 -12
- package/dist/access-authorization-probe.js +95 -92
- package/dist/access-boundary.d.ts +14 -12
- package/dist/access-boundary.js +94 -91
- package/dist/access-citation-namespace.js +3 -3
- package/dist/access-cli.js +200 -195
- package/dist/access-cli.js.map +1 -1
- package/dist/access-coding-context-resolution.d.ts +2 -1
- package/dist/access-extraction-force-flush.d.ts +14 -12
- package/dist/access-extraction-force-flush.js +94 -91
- package/dist/access-health-types.d.ts +2 -1
- package/dist/access-http-briefing.d.ts +156 -0
- package/dist/access-http-briefing.js +233 -0
- package/dist/access-http-lcm-compaction.d.ts +14 -12
- package/dist/access-http-lifecycle-flush.d.ts +14 -12
- package/dist/access-http-offline-stream.d.ts +14 -12
- package/dist/access-http-query.d.ts +3 -2
- package/dist/access-http-query.js +96 -93
- package/dist/access-http.d.ts +15 -13
- package/dist/access-http.js +119 -114
- package/dist/access-identity-continuity-surface.d.ts +12 -10
- package/dist/access-identity-continuity-surface.js +94 -91
- package/dist/access-lcm-surface.d.ts +14 -12
- package/dist/access-lcm-surface.js +94 -91
- package/dist/access-mcp.d.ts +14 -12
- package/dist/access-mcp.js +105 -101
- package/dist/access-memory-search-fanout.d.ts +3 -2
- package/dist/{access-namespace-preflight-BMHhxoL9.d.ts → access-namespace-preflight-BsvmyENS.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +4 -3
- package/dist/access-namespace-preflight.js +94 -91
- package/dist/access-observe-transcript.d.ts +12 -10
- package/dist/access-observe-write-surface.d.ts +14 -12
- package/dist/access-observe-write-surface.js +94 -91
- package/dist/access-offline-manifest.d.ts +12 -10
- package/dist/access-offline-manifest.js +15 -15
- package/dist/access-operations-batch.js +99 -95
- package/dist/access-operations.d.ts +14 -12
- package/dist/access-operations.js +104 -100
- package/dist/access-recall-concurrency.d.ts +14 -12
- package/dist/access-recall-concurrency.js +94 -91
- package/dist/access-recall-response.d.ts +14 -12
- package/dist/access-recall-response.js +94 -91
- package/dist/access-recall-surface.d.ts +14 -12
- package/dist/access-recall-surface.js +94 -91
- package/dist/access-schema.js +8 -7
- package/dist/{access-service-BlsNXFwx.d.ts → access-service-DWdY9Mlk.d.ts} +7 -7
- package/dist/access-service-helpers.d.ts +14 -12
- package/dist/access-service.d.ts +14 -12
- package/dist/access-service.js +94 -91
- package/dist/access-surface-catalog.d.ts +14 -12
- package/dist/access-surface-catalog.js +97 -93
- package/dist/access-surface-catalog.js.map +1 -1
- package/dist/access-wearables-meetings-surface.d.ts +4 -3
- package/dist/action-confidence.d.ts +2 -1
- package/dist/active-memory-bridge.d.ts +2 -1
- package/dist/active-recall.d.ts +2 -1
- package/dist/active-recall.js +16 -13
- package/dist/active-recall.js.map +1 -1
- package/dist/adapters/index.js +7 -7
- package/dist/adapters/registry.js +3 -3
- package/dist/ambient-provenance.d.ts +2 -1
- package/dist/artifact-search.d.ts +2 -1
- package/dist/{auto-sync-GRUJFD2F.js → auto-sync-WNGG2GC2.js} +9 -9
- package/dist/behavior-learner.d.ts +2 -1
- package/dist/behavior-signals.d.ts +2 -1
- package/dist/bootstrap.d.ts +12 -10
- package/dist/briefing-window.d.ts +3 -2
- package/dist/briefing.d.ts +3 -2
- package/dist/briefing.js +36 -36
- package/dist/buffer-surprise-report.d.ts +2 -1
- package/dist/buffer-turn-helpers.d.ts +2 -1
- package/dist/buffer.d.ts +3 -2
- package/dist/buffer.js +13 -13
- package/dist/bulk-import/index.d.ts +4 -3
- package/dist/calibration.d.ts +2 -1
- package/dist/calibration.js +2 -1
- package/dist/calibration.js.map +1 -1
- package/dist/capabilities.d.ts +2 -1
- package/dist/{capsule-crypto-7FJQINUR.js → capsule-crypto-YO5QJ6L3.js} +2 -2
- package/dist/{capsule-merge-SEHERWWP.js → capsule-merge-IPG4IOFP.js} +5 -5
- package/dist/{catalog-C1qHsGew.d.ts → catalog-CDZLyiXL.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +2 -1
- 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.d.ts +2 -1
- package/dist/causal-consolidation.js +42 -42
- package/dist/causal-retrieval.js +4 -3
- package/dist/causal-retrieval.js.map +1 -1
- package/dist/causal-trajectory-graph.d.ts +5 -2
- package/dist/causal-trajectory-graph.js +6 -2
- package/dist/causal-trajectory-graph.js.map +1 -1
- package/dist/causal-trajectory.js +3 -2
- package/dist/{chunk-KTVSPFCQ.js → chunk-22FVR2KE.js} +2 -2
- package/dist/{chunk-7Y5V3LAP.js → chunk-27QVNSQ3.js} +2 -2
- package/dist/{chunk-R7LY4YKF.js → chunk-2EKJDQZB.js} +2 -2
- package/dist/{chunk-FCATYKQA.js → chunk-2IOHTUP3.js} +263 -13
- package/dist/chunk-2IOHTUP3.js.map +1 -0
- package/dist/{chunk-HOUST5UX.js → chunk-2ITE4C2Z.js} +2 -2
- package/dist/{chunk-JOYC4RYC.js → chunk-2JVJ7UHC.js} +2 -2
- package/dist/{chunk-X2NFFBTO.js → chunk-2L5FSNPC.js} +7 -7
- package/dist/{chunk-DUAJKRR2.js → chunk-2SGLMP2E.js} +2 -2
- package/dist/{chunk-6FUMA6AA.js → chunk-2Z4GS5E6.js} +2 -2
- package/dist/{chunk-G6MXN2G5.js → chunk-37KUQPX4.js} +6 -6
- package/dist/{chunk-DDQQY2E3.js → chunk-3BTFBQLO.js} +7 -7
- package/dist/chunk-3BTFBQLO.js.map +1 -0
- package/dist/{chunk-UR6PBX2J.js → chunk-3K7V3HE6.js} +35 -60
- package/dist/chunk-3K7V3HE6.js.map +1 -0
- package/dist/{chunk-WKAXBXVA.js → chunk-3QQTXYZ6.js} +2 -2
- package/dist/{chunk-DJUKBGAD.js → chunk-46EST7JO.js} +5 -5
- package/dist/chunk-46EST7JO.js.map +1 -0
- package/dist/{chunk-4ZWCQJNM.js → chunk-46WM6JX2.js} +5 -5
- package/dist/{chunk-CASWJ2HM.js → chunk-46ZPIGWI.js} +3 -3
- package/dist/{chunk-HTIIXNJQ.js → chunk-4FIH6MPS.js} +6 -3
- package/dist/chunk-4FIH6MPS.js.map +1 -0
- package/dist/{chunk-MCA2X4WH.js → chunk-4IHBN6WU.js} +2 -2
- package/dist/{chunk-W7IGLX4G.js → chunk-4O6WRBGE.js} +7 -7
- package/dist/chunk-4O6WRBGE.js.map +1 -0
- package/dist/{chunk-FB7LAJQM.js → chunk-4TKJGOCJ.js} +2 -2
- package/dist/{chunk-H7BZBSP6.js → chunk-52II7PB6.js} +4 -4
- package/dist/{chunk-N4Y5T6VD.js → chunk-54WHLA65.js} +4 -4
- package/dist/chunk-56Y6EKZN.js +24 -0
- package/dist/chunk-56Y6EKZN.js.map +1 -0
- package/dist/{chunk-YVLENSNS.js → chunk-5ATKSPEQ.js} +2 -2
- package/dist/{chunk-OLT3YTDH.js → chunk-5FAGCOZD.js} +37 -24
- package/dist/chunk-5FAGCOZD.js.map +1 -0
- package/dist/{chunk-ZVZHG7AI.js → chunk-5UBH37SL.js} +3 -3
- package/dist/{chunk-N3WZU76A.js → chunk-66OJSCI6.js} +2 -2
- package/dist/{chunk-D35XLYQ7.js → chunk-6CVNSDCZ.js} +11 -11
- package/dist/{chunk-KA2HZCMG.js → chunk-6NXSYYGP.js} +2 -2
- package/dist/{chunk-2HIJHXB3.js → chunk-6WHJ2EAB.js} +2 -2
- package/dist/{chunk-ZZM476NV.js → chunk-6XL73HQ4.js} +4 -4
- package/dist/{chunk-EJ5RKUXW.js → chunk-AQ7SYDVO.js} +2 -2
- package/dist/{chunk-2Z3DG5CQ.js → chunk-B3O3IRZN.js} +2 -2
- package/dist/{chunk-P77QX3ID.js → chunk-B6O2YLUR.js} +21 -20
- package/dist/chunk-B6O2YLUR.js.map +1 -0
- package/dist/{chunk-RACZB5HT.js → chunk-BD7JTBYP.js} +4 -4
- package/dist/{chunk-I762GW7V.js → chunk-BLJWYCNO.js} +5 -5
- package/dist/{chunk-ACPCA4NO.js → chunk-BMWN7B3Y.js} +6 -6
- package/dist/chunk-BMWN7B3Y.js.map +1 -0
- package/dist/{chunk-2NLLXCJG.js → chunk-BXLOS5AJ.js} +2 -2
- package/dist/{chunk-KK66P5GQ.js → chunk-C553ZTLF.js} +46 -48
- package/dist/chunk-C553ZTLF.js.map +1 -0
- package/dist/{chunk-GCASGYIO.js → chunk-C7HJ3NEI.js} +2 -2
- package/dist/{chunk-C24UZSFW.js → chunk-CEH2AFXG.js} +6 -6
- package/dist/{chunk-WVGXCBOC.js → chunk-D5F7TKMH.js} +2 -2
- package/dist/chunk-DGS34QSY.js +141 -0
- package/dist/chunk-DGS34QSY.js.map +1 -0
- package/dist/{chunk-X7Y7WX73.js → chunk-DQEMWVMT.js} +1 -1
- package/dist/{chunk-2OXIPF3A.js → chunk-DZD3WGCD.js} +4 -4
- package/dist/{chunk-UMEOXLIZ.js → chunk-E2P7TZTF.js} +5 -5
- package/dist/{chunk-6FC3IZ26.js → chunk-EBA5DA77.js} +2 -2
- package/dist/{chunk-N7JK2RKG.js → chunk-EOQ6FSQP.js} +2 -2
- package/dist/chunk-EUT2WCWS.js +54 -0
- package/dist/chunk-EUT2WCWS.js.map +1 -0
- package/dist/{chunk-YNDLCWXS.js → chunk-EZ25VE3G.js} +4 -4
- package/dist/{chunk-XDMI5VKE.js → chunk-FVOP3NT7.js} +2 -2
- package/dist/{chunk-NRLELHAY.js → chunk-G7NYVKD6.js} +2 -2
- package/dist/{chunk-B3W7GWQB.js → chunk-GHTSNGBZ.js} +2 -2
- package/dist/chunk-GKCXTSFF.js +17 -0
- package/dist/chunk-GKCXTSFF.js.map +1 -0
- package/dist/{chunk-LUDBXTBJ.js → chunk-H272ZPQ3.js} +5 -5
- package/dist/{chunk-SN4JXNLL.js → chunk-H3TKENU4.js} +2 -2
- package/dist/{chunk-4HYNMLT6.js → chunk-H4SEGIZY.js} +2 -2
- package/dist/{chunk-ACZN5ZXD.js → chunk-H54VWRPS.js} +13 -13
- package/dist/{chunk-HTP6XRUI.js → chunk-HM7RHKS4.js} +2 -2
- package/dist/{chunk-Z3SQEEB6.js → chunk-HWLIMQE2.js} +2 -2
- package/dist/{chunk-NQFCLAYT.js → chunk-ICKJ52PE.js} +99 -322
- package/dist/chunk-ICKJ52PE.js.map +1 -0
- package/dist/{chunk-2QSZNTDO.js → chunk-JBPKEARU.js} +7 -7
- package/dist/{chunk-DK6GMO6D.js → chunk-JEC4DVM3.js} +16 -16
- package/dist/chunk-JEC4DVM3.js.map +1 -0
- package/dist/{chunk-ET2CNMLD.js → chunk-JN72EPOE.js} +2 -2
- package/dist/{chunk-U62OK7BB.js → chunk-JPKK466T.js} +188 -21
- package/dist/chunk-JPKK466T.js.map +1 -0
- package/dist/{chunk-JCCWJHOP.js → chunk-JYZSRNR7.js} +2 -2
- package/dist/{chunk-7D6HXODY.js → chunk-K7724CH2.js} +2 -2
- package/dist/{chunk-X33MJFD2.js → chunk-KAXCYM66.js} +3 -3
- package/dist/{chunk-7RRUHJPG.js → chunk-KB2G2I6Q.js} +3 -3
- package/dist/{chunk-ZXBTTMGZ.js → chunk-KEF46KL2.js} +5 -5
- package/dist/{chunk-5UZXUTVO.js → chunk-KNA3BXXL.js} +6 -2
- package/dist/chunk-KNA3BXXL.js.map +1 -0
- package/dist/{chunk-UWTDARPF.js → chunk-KTWG7CNY.js} +6 -6
- package/dist/{chunk-XQYTSZW3.js → chunk-L7Z57SID.js} +6 -6
- package/dist/{chunk-JMAG7WZ7.js → chunk-LO4UKPKX.js} +3 -3
- package/dist/{chunk-LDWIPYJ6.js → chunk-LS2FHUML.js} +3 -3
- package/dist/{chunk-GDB4J2H3.js → chunk-MPC7TYTZ.js} +2 -2
- package/dist/{chunk-2GF27PGH.js → chunk-MRPOZBJC.js} +3 -3
- package/dist/{chunk-BR3OOQZQ.js → chunk-MWN6QEI2.js} +2 -2
- package/dist/{chunk-NZGO2GKL.js → chunk-MY5EDR46.js} +4 -4
- package/dist/{chunk-LCMUZDBZ.js → chunk-N3ZOP7KC.js} +3 -3
- package/dist/{chunk-TVW4C7PV.js → chunk-NB3LRY4T.js} +6 -6
- package/dist/{chunk-QJCWK2A7.js → chunk-ND6IQGSZ.js} +2 -2
- package/dist/{chunk-NOB2T2FC.js → chunk-NHLLKEKK.js} +2 -2
- package/dist/{chunk-7GSSHAXC.js → chunk-NLYVH66G.js} +6 -6
- package/dist/chunk-NLYVH66G.js.map +1 -0
- package/dist/{chunk-EJIWBTVM.js → chunk-O6ZNNVSP.js} +2 -2
- package/dist/{chunk-AG46P24C.js → chunk-OB3XMWX5.js} +4 -4
- package/dist/{chunk-NYRB7BKY.js → chunk-OEYZXDQI.js} +6 -6
- package/dist/chunk-OEYZXDQI.js.map +1 -0
- package/dist/{chunk-46QMN7I7.js → chunk-PAZY2ZKP.js} +6 -6
- package/dist/{chunk-EF4JUM55.js → chunk-PX4UMA5Z.js} +2 -2
- package/dist/chunk-QLK3SL7Q.js +242 -0
- package/dist/chunk-QLK3SL7Q.js.map +1 -0
- package/dist/{chunk-GGYDJJBO.js → chunk-QOOBICJF.js} +5 -5
- package/dist/chunk-QOOBICJF.js.map +1 -0
- package/dist/{chunk-NNZFPYYX.js → chunk-R7QY5ZVB.js} +2 -2
- package/dist/{chunk-RO2X2EYM.js → chunk-R7RTXEYG.js} +2 -2
- package/dist/{chunk-3LJPSRAN.js → chunk-RBCQVOVJ.js} +3 -3
- package/dist/{chunk-N4F7ZSSG.js → chunk-RC5DXXWC.js} +2 -2
- package/dist/{chunk-VLAQV4HT.js → chunk-RJYJ7KR7.js} +1636 -611
- package/dist/chunk-RJYJ7KR7.js.map +1 -0
- package/dist/{chunk-5CF2R4NS.js → chunk-RKBLRTNT.js} +2 -2
- package/dist/{chunk-5QZR2RA3.js → chunk-ROBHL3GL.js} +2 -2
- package/dist/{chunk-D5ZNOKR7.js → chunk-S7T2TY65.js} +3 -3
- package/dist/{chunk-C2JCVZWX.js → chunk-SCXURCVT.js} +25 -13
- package/dist/chunk-SCXURCVT.js.map +1 -0
- package/dist/{chunk-3LADWWMA.js → chunk-SJDQ5RSN.js} +3 -3
- package/dist/{chunk-45XVII3J.js → chunk-SMWTZLHE.js} +99 -89
- package/dist/{chunk-45XVII3J.js.map → chunk-SMWTZLHE.js.map} +1 -1
- package/dist/{chunk-XOQGUGJL.js → chunk-SO7SV523.js} +1 -1
- package/dist/{chunk-XOQGUGJL.js.map → chunk-SO7SV523.js.map} +1 -1
- package/dist/{chunk-CHWUICVY.js → chunk-SV4Z2S67.js} +4 -4
- package/dist/{chunk-JHP45LO5.js → chunk-SVXJLDDC.js} +9 -7
- package/dist/{chunk-JHP45LO5.js.map → chunk-SVXJLDDC.js.map} +1 -1
- package/dist/{chunk-SEF4IOFE.js → chunk-SWIKABKI.js} +2 -2
- package/dist/{chunk-JRRQ747T.js → chunk-TBXAY2SS.js} +13 -13
- package/dist/{chunk-J6A3CX5N.js → chunk-TG3FAM2S.js} +33 -8
- package/dist/{chunk-J6A3CX5N.js.map → chunk-TG3FAM2S.js.map} +1 -1
- package/dist/{chunk-XZBXINXZ.js → chunk-TNSCIPBQ.js} +4 -4
- package/dist/{chunk-S37NN23M.js → chunk-TVEONGBU.js} +2 -2
- package/dist/{chunk-5RPMTFB6.js → chunk-TWF35IC6.js} +3 -3
- package/dist/{chunk-BZTJEILZ.js → chunk-U6N5IBVY.js} +2 -2
- package/dist/{chunk-7TUB6JWA.js → chunk-UCKYTA2T.js} +3 -3
- package/dist/{chunk-PPOT6SPR.js → chunk-UNNPNBR2.js} +11 -11
- package/dist/{chunk-KQAFEZQX.js → chunk-VDX2J7OX.js} +2 -2
- package/dist/{chunk-J2R275FN.js → chunk-VVX5PZFS.js} +4 -4
- package/dist/{chunk-ME35HVDJ.js → chunk-VYCOJKSX.js} +2 -2
- package/dist/{chunk-F5UWQ4LX.js → chunk-W24T5YMW.js} +2 -2
- package/dist/{chunk-HDQUQBPW.js → chunk-W3K3HITK.js} +2 -2
- package/dist/{chunk-GDASG7NC.js → chunk-W4F3C7N7.js} +2 -2
- package/dist/{chunk-LFK623SF.js → chunk-WJHGDE7X.js} +5 -5
- package/dist/{chunk-DP4EBV7C.js → chunk-WMLEPWMO.js} +16 -16
- package/dist/chunk-WMLEPWMO.js.map +1 -0
- package/dist/{chunk-3Q6RD76J.js → chunk-WQZZDN5M.js} +5 -5
- package/dist/{chunk-ZJWDWPX6.js → chunk-X5K5TAQZ.js} +4 -4
- package/dist/{chunk-ZL3XX5LW.js → chunk-XM24CDZX.js} +3 -3
- package/dist/{chunk-JTWZKNUH.js → chunk-XOVKXJEP.js} +3 -3
- package/dist/{chunk-OGTKQ5MJ.js → chunk-XSGUMQQQ.js} +62 -50
- package/dist/chunk-XSGUMQQQ.js.map +1 -0
- package/dist/{chunk-X5YYSAZX.js → chunk-XUE46UYW.js} +3 -3
- package/dist/{chunk-DJORULH3.js → chunk-YRLHEEQT.js} +2 -2
- package/dist/{chunk-TA7UZZMW.js → chunk-Z3O53WZR.js} +2 -2
- package/dist/{chunk-4LG4CPOC.js → chunk-Z6COGHHN.js} +2 -2
- package/dist/{chunk-RE3H6Y2X.js → chunk-ZIW5JVRM.js} +2 -2
- package/dist/{cli-BNtvR-nU.d.ts → cli-DD0P-lu8.d.ts} +6 -6
- package/dist/cli.d.ts +16 -14
- package/dist/cli.js +154 -149
- package/dist/coding/export-okf-codegraph.d.ts +2 -1
- package/dist/coding/export-okf-codegraph.js +37 -37
- package/dist/coding/pre-action-gate.d.ts +2 -1
- package/dist/coding/pre-action-gate.js +4 -3
- package/dist/commitment-ledger.js +3 -2
- package/dist/compounding/engine.d.ts +3 -2
- package/dist/compounding/engine.js +37 -37
- package/dist/compounding/preference-consolidator.d.ts +2 -1
- package/dist/compression-optimizer.d.ts +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/config.js +16 -13
- package/dist/connectors/codex-materialize-runner.d.ts +2 -1
- package/dist/connectors/codex-materialize-runner.js +38 -38
- package/dist/connectors/codex-materialize.d.ts +2 -1
- package/dist/connectors/codex-materialize.js +4 -4
- package/dist/connectors/index.d.ts +2 -1
- package/dist/connectors/index.js +38 -38
- package/dist/consolidation-provenance-check.d.ts +3 -2
- package/dist/consolidation-provenance-check.js +4 -4
- package/dist/consolidation-undo.d.ts +3 -2
- package/dist/consolidation-undo.js +3 -3
- package/dist/contradiction/index.d.ts +4 -3
- package/dist/contradiction/index.js +9 -9
- package/dist/converge-config.d.ts +2 -1
- package/dist/convergence-refresh.d.ts +3 -2
- package/dist/convergence-refresh.js +38 -38
- package/dist/conversation-index/backend.d.ts +2 -1
- package/dist/conversation-index/chunker.d.ts +2 -1
- package/dist/conversation-index/faiss-adapter.d.ts +2 -1
- package/dist/conversation-index/indexer.d.ts +2 -1
- package/dist/conversation-index/search.d.ts +2 -1
- package/dist/corpus-watermark.d.ts +2 -1
- package/dist/corpus-watermark.js +38 -38
- package/dist/cross-lingual-recall.d.ts +2 -1
- package/dist/cue-anchors.js +4 -3
- package/dist/dashboard-runtime.js +2 -2
- package/dist/day-summary.d.ts +2 -1
- package/dist/deep-recall-http-glue.d.ts +14 -12
- package/dist/deep-recall-http-glue.js +9 -8
- package/dist/deep-recall-mcp-tools.d.ts +14 -12
- package/dist/deep-recall-policy-llm.d.ts +2 -1
- package/dist/deep-recall-seeds.d.ts +2 -1
- package/dist/deep-recall.js +2 -2
- package/dist/delinearize.d.ts +2 -1
- package/dist/dependency-propagation-config.d.ts +2 -1
- package/dist/{dependency-propagation-delivery-DjpUlhLi.d.ts → dependency-propagation-delivery-CQPCu0o5.d.ts} +1 -1
- package/dist/direct-answer-wiring.d.ts +2 -1
- package/dist/direct-answer.d.ts +2 -1
- package/dist/embedding-fallback.d.ts +2 -1
- package/dist/enrichment/index.d.ts +2 -1
- package/dist/entity-origin-fields.d.ts +2 -1
- package/dist/entity-retrieval.d.ts +3 -2
- package/dist/entity-retrieval.js +36 -36
- package/dist/entity-schema.d.ts +2 -1
- package/dist/episodic-context.d.ts +2 -1
- package/dist/eval-trajectory-contracts.d.ts +2 -1
- package/dist/eval-trajectory-store.d.ts +2 -1
- package/dist/eval-trajectory-store.js +4 -3
- package/dist/eval-trajectory.d.ts +2 -1
- package/dist/eval-trajectory.js +4 -3
- package/dist/evals.js +3 -2
- package/dist/event-order-recall.js +2 -2
- package/dist/explicit-capture.d.ts +12 -10
- package/dist/explicit-capture.js +10 -10
- package/dist/external-wiki-access.d.ts +14 -12
- package/dist/external-wiki-access.js +95 -92
- package/dist/external-wiki-collection-registration.d.ts +2 -1
- package/dist/external-wiki-collection.d.ts +2 -1
- package/dist/external-wiki-mcp-tools.d.ts +14 -12
- package/dist/extraction-error-classification.d.ts +2 -1
- package/dist/extraction-faithfulness.d.ts +2 -1
- package/dist/extraction-judge-telemetry.d.ts +2 -1
- package/dist/extraction-judge-training.d.ts +2 -1
- package/dist/extraction-judge.d.ts +2 -1
- package/dist/extraction-liveness.d.ts +2 -1
- package/dist/extraction-normalization.d.ts +2 -1
- package/dist/extraction-prompt.d.ts +2 -1
- package/dist/extraction-source-grounding-rules.d.ts +2 -1
- package/dist/extraction-source-grounding.d.ts +2 -1
- package/dist/extraction.d.ts +2 -1
- package/dist/extraction.js +43 -43
- package/dist/fallback-llm.d.ts +2 -1
- package/dist/{first-start-migration-KHIMCBIC.js → first-start-migration-RC345GPL.js} +6 -5
- package/dist/{first-start-migration-KHIMCBIC.js.map → first-start-migration-RC345GPL.js.map} +1 -1
- package/dist/{forget-2AE4MDK3.js → forget-SZ2BXDGF.js} +3 -3
- package/dist/{graph-444E-DrF.d.ts → graph-DRkl22KE.d.ts} +10 -12
- package/dist/graph-append-error.d.ts +40 -0
- package/dist/graph-append-error.js +8 -0
- package/dist/graph-dashboard-diff.d.ts +5 -2
- package/dist/graph-dashboard-key.d.ts +5 -2
- package/dist/graph-dashboard-parser.d.ts +5 -2
- package/dist/{graph-edge-decay-DGTBFALQ.js → graph-edge-decay-MKIRZ762.js} +10 -4
- package/dist/graph-edge-decay-MKIRZ762.js.map +1 -0
- package/dist/graph-edge-reinforcement.d.ts +5 -2
- package/dist/graph-jsonl.d.ts +82 -0
- package/dist/graph-jsonl.js +23 -0
- package/dist/graph-jsonl.js.map +1 -0
- package/dist/graph-path-reconstruction.d.ts +5 -2
- package/dist/graph-path-scoring.d.ts +5 -2
- package/dist/graph-snapshot.d.ts +5 -2
- package/dist/graph-snapshot.js +7 -3
- package/dist/graph-write-lock.d.ts +84 -0
- package/dist/graph-write-lock.js +15 -0
- package/dist/graph-write-lock.js.map +1 -0
- package/dist/graph.d.ts +5 -2
- package/dist/graph.js +10 -3
- package/dist/harmonic-construction.js +5 -4
- package/dist/harmonic-retrieval.js +5 -4
- package/dist/importance.d.ts +2 -1
- package/dist/importers/index.d.ts +2 -1
- package/dist/in-flight-reads.d.ts +2 -1
- package/dist/{index-CsUrdMyL.d.ts → index-C9VXenR8.d.ts} +2 -2
- package/dist/index.d.ts +39 -25
- package/dist/index.js +291 -284
- package/dist/intent.d.ts +2 -1
- package/dist/json-store.js +2 -1
- package/dist/lcm/engine.d.ts +2 -1
- package/dist/lcm/engine.js +3 -3
- package/dist/lcm/index.d.ts +2 -1
- package/dist/lcm/index.js +6 -6
- package/dist/lcm/tools.d.ts +2 -1
- package/dist/lifecycle.d.ts +2 -1
- package/dist/live-connectors-runner.d.ts +2 -1
- package/dist/live-connectors-runner.js +3 -2
- package/dist/local-llm.d.ts +2 -1
- package/dist/local-model-endpoint.d.ts +2 -1
- package/dist/location/index.d.ts +4 -3
- package/dist/location/index.js +39 -39
- package/dist/maintenance/memory-governance.d.ts +2 -1
- package/dist/maintenance/memory-governance.js +36 -36
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +3 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +36 -36
- package/dist/maintenance/rebuild-memory-projection.d.ts +3 -2
- package/dist/maintenance/rebuild-memory-projection.js +37 -37
- package/dist/{maintenance-D1GRGLTE.d.ts → maintenance-C14sorKa.d.ts} +3 -3
- package/dist/mcp-memory-inspector-app.d.ts +14 -12
- package/dist/memory-action-policy.d.ts +2 -1
- package/dist/memory-cache.d.ts +2 -1
- package/dist/memory-controller.d.ts +2 -1
- package/dist/memory-lifecycle-ledger-utils.d.ts +2 -1
- package/dist/memory-projection-mutations.js +3 -3
- package/dist/memory-projection-store.d.ts +2 -1
- package/dist/memory-provenance.d.ts +2 -1
- package/dist/memory-snapshot.d.ts +2 -1
- package/dist/memory-subject-cli.d.ts +14 -12
- package/dist/memory-subject.d.ts +14 -12
- package/dist/memory-subject.js +5 -5
- package/dist/memory-worth-outcomes.d.ts +3 -2
- package/dist/models-json.d.ts +2 -1
- package/dist/namespaces/migrate.d.ts +4 -3
- package/dist/namespaces/migrate.js +37 -37
- package/dist/namespaces/principal.d.ts +2 -1
- package/dist/namespaces/search.d.ts +2 -1
- package/dist/namespaces/search.js +11 -11
- package/dist/namespaces/storage.d.ts +4 -3
- package/dist/namespaces/storage.js +36 -36
- package/dist/native-knowledge.d.ts +2 -1
- package/dist/objective-state-writers.js +4 -3
- package/dist/objective-state.js +3 -2
- package/dist/offline-sync-file-io.js +4 -3
- package/dist/offline-sync-impression-drain.d.ts +2 -1
- package/dist/offline-sync-impression-drain.js +7 -7
- package/dist/offline-sync.js +5 -4
- package/dist/operator-doctor-corpus.d.ts +2 -1
- package/dist/operator-doctor-corpus.js +39 -39
- package/dist/operator-doctor-replica.d.ts +2 -1
- package/dist/operator-toolkit.d.ts +6 -4
- package/dist/operator-toolkit.js +61 -58
- package/dist/orchestration/compression-guideline-coordinator.d.ts +3 -2
- package/dist/orchestration/maintenance.d.ts +5 -4
- package/dist/orchestration/maintenance.js +46 -46
- package/dist/{orchestrator-DeqaPGT5.d.ts → orchestrator-DgyvFfPR.d.ts} +9 -9
- package/dist/orchestrator.d.ts +12 -10
- package/dist/orchestrator.js +201 -196
- package/dist/page-versioning.d.ts +73 -4
- package/dist/page-versioning.js +11 -3
- package/dist/patterns-cli.d.ts +2 -1
- package/dist/{pipeline-umUzU0D1.d.ts → pipeline-DRUwHb1X.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +2 -1
- package/dist/proactive-contention.d.ts +2 -1
- package/dist/provenance.d.ts +2 -1
- package/dist/{public-http-Bevrjll9.d.ts → public-http-C4i8Opxc.d.ts} +1 -1
- package/dist/{purge-OP6BEDFY.js → purge-TZKRE6ZQ.js} +5 -5
- package/dist/purge-TZKRE6ZQ.js.map +1 -0
- package/dist/{qmd-BasT78PP.d.ts → qmd-BVWlg1YS.d.ts} +1 -1
- package/dist/qmd-preflight.d.ts +3 -2
- package/dist/qmd-recall-cache.d.ts +2 -1
- package/dist/qmd.d.ts +3 -2
- package/dist/qmd.js +4 -4
- package/dist/recall-concurrency-config.d.ts +2 -1
- package/dist/recall-disclosure-escalation.d.ts +2 -1
- package/dist/recall-explain-renderer.d.ts +2 -1
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-memory-map.d.ts +2 -1
- package/dist/recall-navigate-access.d.ts +2 -1
- package/dist/recall-navigate-access.js +2 -2
- package/dist/recall-navigate-disclosure.d.ts +2 -1
- package/dist/recall-navigate-disclosure.js +1 -1
- package/dist/recall-navigate.d.ts +2 -1
- package/dist/recall-navigate.js +2 -2
- package/dist/recall-planner-llm.d.ts +2 -1
- package/dist/recall-state.d.ts +2 -1
- package/dist/recall-state.js +3 -3
- package/dist/recall-tag-filter.d.ts +2 -1
- package/dist/recall-timings.d.ts +2 -1
- package/dist/recall-xray-cli.d.ts +2 -1
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +2 -1
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +2 -1
- package/dist/recall-xray.js +2 -2
- package/dist/reconcile/cursor.d.ts +2 -1
- package/dist/reconcile/manifest.d.ts +2 -1
- package/dist/reconcile/manifest.js +7 -7
- package/dist/reconcile/plan.d.ts +2 -1
- package/dist/replay/normalizers/chatgpt.d.ts +2 -1
- package/dist/replay/normalizers/claude.d.ts +2 -1
- package/dist/replay/normalizers/openclaw.d.ts +2 -1
- package/dist/replay/normalizers/shared.d.ts +2 -1
- package/dist/replay/runner.d.ts +2 -1
- package/dist/replay/types.d.ts +2 -1
- package/dist/replica-divergence.d.ts +2 -1
- package/dist/replica-peers-config.d.ts +2 -1
- package/dist/{resolution-4DLI3IOR.js → resolution-VKATP2HT.js} +10 -10
- package/dist/resolution-VKATP2HT.js.map +1 -0
- package/dist/resolve-auth-token.d.ts +2 -1
- package/dist/resume-bundles.js +21 -18
- package/dist/retrieval-agents.d.ts +3 -2
- package/dist/retrieval-tiers.d.ts +2 -1
- package/dist/routing/engine.d.ts +2 -1
- package/dist/routing/store.d.ts +2 -1
- package/dist/salvage-envelope.d.ts +2 -1
- package/dist/salvage-envelope.js +7 -7
- package/dist/{scope-profiles-DXYzyOXW.d.ts → scope-profiles-Vl00B1KU.d.ts} +1 -1
- package/dist/search/document-scanner.js +3 -3
- package/dist/search/embed-helper.d.ts +2 -1
- package/dist/search/factory.d.ts +2 -1
- package/dist/search/factory.js +10 -10
- package/dist/search/index.d.ts +2 -1
- package/dist/search/index.js +16 -16
- package/dist/search/lancedb-backend.d.ts +2 -1
- package/dist/search/lancedb-backend.js +4 -4
- package/dist/search/meilisearch-backend.d.ts +2 -1
- package/dist/search/meilisearch-backend.js +4 -4
- package/dist/search/noop-backend.d.ts +2 -1
- package/dist/search/orama-backend.d.ts +2 -1
- package/dist/search/orama-backend.js +4 -4
- package/dist/search/port.d.ts +2 -1
- package/dist/search/remote-backend.d.ts +2 -1
- package/dist/secure-store/index.js +3 -3
- package/dist/{semantic-consolidation-CqDeaY0U.d.ts → semantic-consolidation-BC9-GFuT.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +3 -2
- package/dist/semantic-consolidation.js +39 -39
- package/dist/semantic-merge-config.d.ts +17 -0
- package/dist/semantic-merge-config.js +1 -0
- package/dist/semantic-merge-config.js.map +1 -0
- package/dist/semantic-rule-promotion.js +36 -36
- package/dist/semantic-rule-verifier.d.ts +2 -1
- package/dist/semantic-rule-verifier.js +36 -36
- package/dist/{service-BKD-DVYZ.d.ts → service-BOy6dHfc.d.ts} +2 -2
- package/dist/session-observer-bands.d.ts +2 -1
- package/dist/session-observer-state.d.ts +2 -1
- package/dist/shared-context/manager.d.ts +2 -1
- package/dist/signal.d.ts +2 -1
- package/dist/source-agent-qualifier.d.ts +2 -1
- package/dist/source-agent-qualifier.js +42 -42
- package/dist/source-attribution.d.ts +18 -6
- package/dist/source-attribution.js +3 -1
- package/dist/standup/build.js +36 -36
- package/dist/{storage-BcFd1lN_.d.ts → storage-BLJRnFi6.d.ts} +15 -8
- package/dist/storage.d.ts +3 -2
- package/dist/storage.js +35 -35
- package/dist/subject-config.d.ts +2 -1
- package/dist/subject-config.js +6 -6
- package/dist/summarizer.d.ts +2 -1
- package/dist/summary-snapshot.d.ts +2 -1
- package/dist/support-passport/index.d.ts +17 -15
- package/dist/support-passport/index.js +97 -94
- package/dist/temporal-supersession.d.ts +3 -2
- package/dist/temporal-timeline-recall.d.ts +2 -1
- package/dist/temporal-validity.d.ts +2 -1
- package/dist/threading.d.ts +2 -1
- package/dist/tier-migration.d.ts +3 -2
- package/dist/tier-routing.d.ts +2 -1
- package/dist/{tier-stats-2TOW3QNL.js → tier-stats-KA6OZX2C.js} +6 -5
- package/dist/{tier-stats-2TOW3QNL.js.map → tier-stats-KA6OZX2C.js.map} +1 -1
- package/dist/topics.d.ts +2 -1
- package/dist/transcript.d.ts +2 -1
- package/dist/transfer/backup.js +2 -2
- package/dist/transfer/capsule-export.js +2 -2
- package/dist/transfer/capsule-import.js +6 -6
- package/dist/transfer/export-okf.d.ts +2 -1
- package/dist/transfer/export-okf.js +37 -37
- package/dist/trust-score-stage.d.ts +2 -1
- package/dist/trust-score.d.ts +2 -1
- package/dist/trust-zones.js +3 -2
- package/dist/{types-BRg3tMyp.d.ts → types-YY-eKKU7.d.ts} +3 -0
- package/dist/types.d.ts +2 -1
- package/dist/types.js +1 -1
- package/dist/utility-learner.js +4 -3
- package/dist/utility-runtime.d.ts +2 -1
- package/dist/utility-runtime.js +5 -4
- package/dist/utility-telemetry.js +3 -2
- package/dist/verified-recall.js +36 -36
- package/dist/who-knows-cli.d.ts +14 -12
- package/dist/who-knows-cli.js +37 -37
- package/dist/who-knows.d.ts +14 -12
- package/dist/who-knows.js +36 -36
- package/dist/work/board.js +3 -3
- package/dist/work/storage.js +2 -2
- package/dist/work-product-ledger.js +3 -2
- package/dist/write-envelope.d.ts +2 -1
- package/dist/write-envelope.js +6 -6
- package/package.json +2 -2
- package/src/abstraction-nodes.ts +1 -4
- package/src/access-http-briefing.ts +35 -0
- package/src/access-http.test.ts +76 -0
- package/src/access-http.ts +20 -23
- package/src/access-surface-catalog.test.ts +9 -0
- package/src/access-surface-catalog.ts +1 -0
- package/src/binary-lifecycle/backend.ts +2 -1
- package/src/config.ts +2 -0
- package/src/connectors/live/github.ts +10 -17
- package/src/connectors/live/gmail.ts +8 -19
- package/src/connectors/live/google-drive.ts +6 -13
- package/src/connectors/live/notion.ts +11 -21
- package/src/cue-anchors.ts +1 -6
- package/src/dedup/connector-scope.ts +39 -0
- package/src/dedup/merge-content.test.ts +21 -0
- package/src/dedup/merge-content.ts +21 -7
- package/src/dedup/merge-judge.ts +146 -0
- package/src/dedup/merge.test.ts +3542 -0
- package/src/dedup/merge.ts +384 -0
- package/src/dedup/novelty-gate.ts +12 -10
- package/src/dedup/semantic.ts +7 -9
- package/src/graph-append-error.ts +28 -0
- package/src/graph-jsonl.ts +267 -0
- package/src/graph-write-lock.test.ts +228 -0
- package/src/graph-write-lock.ts +132 -0
- package/src/graph.ts +49 -45
- package/src/harmonic-construction.test.ts +329 -0
- package/src/json-store.ts +17 -20
- package/src/live-connectors-runner.ts +2 -1
- package/src/location/store.ts +1 -4
- package/src/maintenance/graph-edge-decay.ts +24 -13
- package/src/maintenance/purge.ts +2 -5
- package/src/maintenance/rebuild-memory-lifecycle-ledger.ts +3 -6
- package/src/maintenance/rebuild-memory-projection.ts +2 -5
- package/src/namespaces/catalog.ts +1 -9
- package/src/offline-sync-file-io.test.ts +39 -0
- package/src/offline-sync-file-io.ts +3 -7
- package/src/orchestration/contradiction-localization.integration.test.ts +35 -0
- package/src/orchestration/extraction-anchor-snapshot.ts +6 -1
- package/src/orchestration/extraction-persist-deps.ts +2 -1
- package/src/orchestration/extraction-persist-profile-promotion.test.ts +456 -0
- package/src/orchestration/extraction-persist-promotion.test.ts +534 -0
- package/src/orchestration/extraction-persist-promotion.ts +387 -1
- package/src/orchestration/extraction-persist.ts +95 -94
- package/src/orchestration/harmonic-construction-persist.test.ts +69 -0
- package/src/orchestration/harmonic-construction-persist.ts +55 -0
- package/src/orchestration/persistence-index.ts +35 -7
- package/src/orchestration/semantic-merge-commit-effects.ts +354 -0
- package/src/orchestration/semantic-merge-persist.ts +1095 -0
- package/src/orchestration/semantic-merge-promotion-payload.ts +161 -0
- package/src/orchestrator.ts +2 -2
- package/src/page-versioning.ts +396 -22
- package/src/procedural/procedure-miner.ts +1 -9
- package/src/search/document-scanner.ts +3 -6
- package/src/semantic-merge-config.ts +16 -0
- package/src/semantic-rule-promotion.ts +1 -4
- package/src/source-attribution-roundtrip.test.ts +21 -0
- package/src/source-attribution.ts +57 -17
- package/src/storage-contract/versioning.test.ts +500 -1
- package/src/storage.ts +30 -30
- package/src/testing/subjects/graph-edge-decay.test.ts +163 -0
- package/src/testing/subjects/semantic-merge-lifecycle.test.ts +1175 -0
- package/src/types.ts +2 -0
- package/src/utils/errno.test.ts +31 -0
- package/src/utils/errno.ts +5 -0
- package/src/wearables/index.ts +1 -0
- package/src/wearables/registry.ts +23 -0
- package/dist/chunk-5UZXUTVO.js.map +0 -1
- package/dist/chunk-7GSSHAXC.js.map +0 -1
- package/dist/chunk-ACPCA4NO.js.map +0 -1
- package/dist/chunk-C2JCVZWX.js.map +0 -1
- package/dist/chunk-DDQQY2E3.js.map +0 -1
- package/dist/chunk-DJUKBGAD.js.map +0 -1
- package/dist/chunk-DK6GMO6D.js.map +0 -1
- package/dist/chunk-DP4EBV7C.js.map +0 -1
- package/dist/chunk-FCATYKQA.js.map +0 -1
- package/dist/chunk-GGYDJJBO.js.map +0 -1
- package/dist/chunk-HTIIXNJQ.js.map +0 -1
- package/dist/chunk-KK66P5GQ.js.map +0 -1
- package/dist/chunk-NQFCLAYT.js.map +0 -1
- package/dist/chunk-NYRB7BKY.js.map +0 -1
- package/dist/chunk-OGTKQ5MJ.js.map +0 -1
- package/dist/chunk-OLT3YTDH.js.map +0 -1
- package/dist/chunk-P77QX3ID.js.map +0 -1
- package/dist/chunk-U62OK7BB.js.map +0 -1
- package/dist/chunk-UR6PBX2J.js.map +0 -1
- package/dist/chunk-VLAQV4HT.js.map +0 -1
- package/dist/chunk-W7IGLX4G.js.map +0 -1
- package/dist/purge-OP6BEDFY.js.map +0 -1
- /package/dist/{capsule-crypto-7FJQINUR.js.map → access-http-briefing.js.map} +0 -0
- /package/dist/{auto-sync-GRUJFD2F.js.map → auto-sync-WNGG2GC2.js.map} +0 -0
- /package/dist/{graph-edge-decay-DGTBFALQ.js.map → capsule-crypto-YO5QJ6L3.js.map} +0 -0
- /package/dist/{capsule-merge-SEHERWWP.js.map → capsule-merge-IPG4IOFP.js.map} +0 -0
- /package/dist/{chunk-KTVSPFCQ.js.map → chunk-22FVR2KE.js.map} +0 -0
- /package/dist/{chunk-7Y5V3LAP.js.map → chunk-27QVNSQ3.js.map} +0 -0
- /package/dist/{chunk-R7LY4YKF.js.map → chunk-2EKJDQZB.js.map} +0 -0
- /package/dist/{chunk-HOUST5UX.js.map → chunk-2ITE4C2Z.js.map} +0 -0
- /package/dist/{chunk-JOYC4RYC.js.map → chunk-2JVJ7UHC.js.map} +0 -0
- /package/dist/{chunk-X2NFFBTO.js.map → chunk-2L5FSNPC.js.map} +0 -0
- /package/dist/{chunk-DUAJKRR2.js.map → chunk-2SGLMP2E.js.map} +0 -0
- /package/dist/{chunk-6FUMA6AA.js.map → chunk-2Z4GS5E6.js.map} +0 -0
- /package/dist/{chunk-G6MXN2G5.js.map → chunk-37KUQPX4.js.map} +0 -0
- /package/dist/{chunk-WKAXBXVA.js.map → chunk-3QQTXYZ6.js.map} +0 -0
- /package/dist/{chunk-4ZWCQJNM.js.map → chunk-46WM6JX2.js.map} +0 -0
- /package/dist/{chunk-CASWJ2HM.js.map → chunk-46ZPIGWI.js.map} +0 -0
- /package/dist/{chunk-MCA2X4WH.js.map → chunk-4IHBN6WU.js.map} +0 -0
- /package/dist/{chunk-FB7LAJQM.js.map → chunk-4TKJGOCJ.js.map} +0 -0
- /package/dist/{chunk-H7BZBSP6.js.map → chunk-52II7PB6.js.map} +0 -0
- /package/dist/{chunk-N4Y5T6VD.js.map → chunk-54WHLA65.js.map} +0 -0
- /package/dist/{chunk-YVLENSNS.js.map → chunk-5ATKSPEQ.js.map} +0 -0
- /package/dist/{chunk-ZVZHG7AI.js.map → chunk-5UBH37SL.js.map} +0 -0
- /package/dist/{chunk-N3WZU76A.js.map → chunk-66OJSCI6.js.map} +0 -0
- /package/dist/{chunk-D35XLYQ7.js.map → chunk-6CVNSDCZ.js.map} +0 -0
- /package/dist/{chunk-KA2HZCMG.js.map → chunk-6NXSYYGP.js.map} +0 -0
- /package/dist/{chunk-2HIJHXB3.js.map → chunk-6WHJ2EAB.js.map} +0 -0
- /package/dist/{chunk-ZZM476NV.js.map → chunk-6XL73HQ4.js.map} +0 -0
- /package/dist/{chunk-EJ5RKUXW.js.map → chunk-AQ7SYDVO.js.map} +0 -0
- /package/dist/{chunk-2Z3DG5CQ.js.map → chunk-B3O3IRZN.js.map} +0 -0
- /package/dist/{chunk-RACZB5HT.js.map → chunk-BD7JTBYP.js.map} +0 -0
- /package/dist/{chunk-I762GW7V.js.map → chunk-BLJWYCNO.js.map} +0 -0
- /package/dist/{chunk-2NLLXCJG.js.map → chunk-BXLOS5AJ.js.map} +0 -0
- /package/dist/{chunk-GCASGYIO.js.map → chunk-C7HJ3NEI.js.map} +0 -0
- /package/dist/{chunk-C24UZSFW.js.map → chunk-CEH2AFXG.js.map} +0 -0
- /package/dist/{chunk-WVGXCBOC.js.map → chunk-D5F7TKMH.js.map} +0 -0
- /package/dist/{chunk-X7Y7WX73.js.map → chunk-DQEMWVMT.js.map} +0 -0
- /package/dist/{chunk-2OXIPF3A.js.map → chunk-DZD3WGCD.js.map} +0 -0
- /package/dist/{chunk-UMEOXLIZ.js.map → chunk-E2P7TZTF.js.map} +0 -0
- /package/dist/{chunk-6FC3IZ26.js.map → chunk-EBA5DA77.js.map} +0 -0
- /package/dist/{chunk-N7JK2RKG.js.map → chunk-EOQ6FSQP.js.map} +0 -0
- /package/dist/{chunk-YNDLCWXS.js.map → chunk-EZ25VE3G.js.map} +0 -0
- /package/dist/{chunk-XDMI5VKE.js.map → chunk-FVOP3NT7.js.map} +0 -0
- /package/dist/{chunk-NRLELHAY.js.map → chunk-G7NYVKD6.js.map} +0 -0
- /package/dist/{chunk-B3W7GWQB.js.map → chunk-GHTSNGBZ.js.map} +0 -0
- /package/dist/{chunk-LUDBXTBJ.js.map → chunk-H272ZPQ3.js.map} +0 -0
- /package/dist/{chunk-SN4JXNLL.js.map → chunk-H3TKENU4.js.map} +0 -0
- /package/dist/{chunk-4HYNMLT6.js.map → chunk-H4SEGIZY.js.map} +0 -0
- /package/dist/{chunk-ACZN5ZXD.js.map → chunk-H54VWRPS.js.map} +0 -0
- /package/dist/{chunk-HTP6XRUI.js.map → chunk-HM7RHKS4.js.map} +0 -0
- /package/dist/{chunk-Z3SQEEB6.js.map → chunk-HWLIMQE2.js.map} +0 -0
- /package/dist/{chunk-2QSZNTDO.js.map → chunk-JBPKEARU.js.map} +0 -0
- /package/dist/{chunk-ET2CNMLD.js.map → chunk-JN72EPOE.js.map} +0 -0
- /package/dist/{chunk-JCCWJHOP.js.map → chunk-JYZSRNR7.js.map} +0 -0
- /package/dist/{chunk-7D6HXODY.js.map → chunk-K7724CH2.js.map} +0 -0
- /package/dist/{chunk-X33MJFD2.js.map → chunk-KAXCYM66.js.map} +0 -0
- /package/dist/{chunk-7RRUHJPG.js.map → chunk-KB2G2I6Q.js.map} +0 -0
- /package/dist/{chunk-ZXBTTMGZ.js.map → chunk-KEF46KL2.js.map} +0 -0
- /package/dist/{chunk-UWTDARPF.js.map → chunk-KTWG7CNY.js.map} +0 -0
- /package/dist/{chunk-XQYTSZW3.js.map → chunk-L7Z57SID.js.map} +0 -0
- /package/dist/{chunk-JMAG7WZ7.js.map → chunk-LO4UKPKX.js.map} +0 -0
- /package/dist/{chunk-LDWIPYJ6.js.map → chunk-LS2FHUML.js.map} +0 -0
- /package/dist/{chunk-GDB4J2H3.js.map → chunk-MPC7TYTZ.js.map} +0 -0
- /package/dist/{chunk-2GF27PGH.js.map → chunk-MRPOZBJC.js.map} +0 -0
- /package/dist/{chunk-BR3OOQZQ.js.map → chunk-MWN6QEI2.js.map} +0 -0
- /package/dist/{chunk-NZGO2GKL.js.map → chunk-MY5EDR46.js.map} +0 -0
- /package/dist/{chunk-LCMUZDBZ.js.map → chunk-N3ZOP7KC.js.map} +0 -0
- /package/dist/{chunk-TVW4C7PV.js.map → chunk-NB3LRY4T.js.map} +0 -0
- /package/dist/{chunk-QJCWK2A7.js.map → chunk-ND6IQGSZ.js.map} +0 -0
- /package/dist/{chunk-NOB2T2FC.js.map → chunk-NHLLKEKK.js.map} +0 -0
- /package/dist/{chunk-EJIWBTVM.js.map → chunk-O6ZNNVSP.js.map} +0 -0
- /package/dist/{chunk-AG46P24C.js.map → chunk-OB3XMWX5.js.map} +0 -0
- /package/dist/{chunk-46QMN7I7.js.map → chunk-PAZY2ZKP.js.map} +0 -0
- /package/dist/{chunk-EF4JUM55.js.map → chunk-PX4UMA5Z.js.map} +0 -0
- /package/dist/{chunk-NNZFPYYX.js.map → chunk-R7QY5ZVB.js.map} +0 -0
- /package/dist/{chunk-RO2X2EYM.js.map → chunk-R7RTXEYG.js.map} +0 -0
- /package/dist/{chunk-3LJPSRAN.js.map → chunk-RBCQVOVJ.js.map} +0 -0
- /package/dist/{chunk-N4F7ZSSG.js.map → chunk-RC5DXXWC.js.map} +0 -0
- /package/dist/{chunk-5CF2R4NS.js.map → chunk-RKBLRTNT.js.map} +0 -0
- /package/dist/{chunk-5QZR2RA3.js.map → chunk-ROBHL3GL.js.map} +0 -0
- /package/dist/{chunk-D5ZNOKR7.js.map → chunk-S7T2TY65.js.map} +0 -0
- /package/dist/{chunk-3LADWWMA.js.map → chunk-SJDQ5RSN.js.map} +0 -0
- /package/dist/{chunk-CHWUICVY.js.map → chunk-SV4Z2S67.js.map} +0 -0
- /package/dist/{chunk-SEF4IOFE.js.map → chunk-SWIKABKI.js.map} +0 -0
- /package/dist/{chunk-JRRQ747T.js.map → chunk-TBXAY2SS.js.map} +0 -0
- /package/dist/{chunk-XZBXINXZ.js.map → chunk-TNSCIPBQ.js.map} +0 -0
- /package/dist/{chunk-S37NN23M.js.map → chunk-TVEONGBU.js.map} +0 -0
- /package/dist/{chunk-5RPMTFB6.js.map → chunk-TWF35IC6.js.map} +0 -0
- /package/dist/{chunk-BZTJEILZ.js.map → chunk-U6N5IBVY.js.map} +0 -0
- /package/dist/{chunk-7TUB6JWA.js.map → chunk-UCKYTA2T.js.map} +0 -0
- /package/dist/{chunk-PPOT6SPR.js.map → chunk-UNNPNBR2.js.map} +0 -0
- /package/dist/{chunk-KQAFEZQX.js.map → chunk-VDX2J7OX.js.map} +0 -0
- /package/dist/{chunk-J2R275FN.js.map → chunk-VVX5PZFS.js.map} +0 -0
- /package/dist/{chunk-ME35HVDJ.js.map → chunk-VYCOJKSX.js.map} +0 -0
- /package/dist/{chunk-F5UWQ4LX.js.map → chunk-W24T5YMW.js.map} +0 -0
- /package/dist/{chunk-HDQUQBPW.js.map → chunk-W3K3HITK.js.map} +0 -0
- /package/dist/{chunk-GDASG7NC.js.map → chunk-W4F3C7N7.js.map} +0 -0
- /package/dist/{chunk-LFK623SF.js.map → chunk-WJHGDE7X.js.map} +0 -0
- /package/dist/{chunk-3Q6RD76J.js.map → chunk-WQZZDN5M.js.map} +0 -0
- /package/dist/{chunk-ZJWDWPX6.js.map → chunk-X5K5TAQZ.js.map} +0 -0
- /package/dist/{chunk-ZL3XX5LW.js.map → chunk-XM24CDZX.js.map} +0 -0
- /package/dist/{chunk-JTWZKNUH.js.map → chunk-XOVKXJEP.js.map} +0 -0
- /package/dist/{chunk-X5YYSAZX.js.map → chunk-XUE46UYW.js.map} +0 -0
- /package/dist/{chunk-DJORULH3.js.map → chunk-YRLHEEQT.js.map} +0 -0
- /package/dist/{chunk-TA7UZZMW.js.map → chunk-Z3O53WZR.js.map} +0 -0
- /package/dist/{chunk-4LG4CPOC.js.map → chunk-Z6COGHHN.js.map} +0 -0
- /package/dist/{chunk-RE3H6Y2X.js.map → chunk-ZIW5JVRM.js.map} +0 -0
- /package/dist/{forget-2AE4MDK3.js.map → forget-SZ2BXDGF.js.map} +0 -0
- /package/dist/{resolution-4DLI3IOR.js.map → graph-append-error.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RECALL_DISCLOSURE_LEVELS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SO7SV523.js";
|
|
4
4
|
|
|
5
5
|
// src/recall-navigate.ts
|
|
6
6
|
var RECALL_NAV_LINK_TYPES = [
|
|
@@ -48,4 +48,4 @@ export {
|
|
|
48
48
|
expandRecallNode,
|
|
49
49
|
traverseRecallLink
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-RKBLRTNT.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
listJsonFiles,
|
|
17
17
|
readJsonFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-B6O2YLUR.js";
|
|
19
19
|
|
|
20
20
|
// src/trust-zones.ts
|
|
21
21
|
import path from "path";
|
|
@@ -905,4 +905,4 @@ export {
|
|
|
905
905
|
seedTrustZoneDemoDataset,
|
|
906
906
|
getTrustZoneStoreStatus
|
|
907
907
|
};
|
|
908
|
-
//# sourceMappingURL=chunk-
|
|
908
|
+
//# sourceMappingURL=chunk-ROBHL3GL.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseXrayFormat
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-22FVR2KE.js";
|
|
4
4
|
import {
|
|
5
5
|
RECALL_DISCLOSURE_LEVELS,
|
|
6
6
|
isRecallDisclosure
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SO7SV523.js";
|
|
8
8
|
|
|
9
9
|
// src/recall-xray-cli.ts
|
|
10
10
|
function parseXrayDisclosureFlag(value) {
|
|
@@ -50,4 +50,4 @@ export {
|
|
|
50
50
|
parseXrayBudgetFlag,
|
|
51
51
|
parseXrayCliOptions
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=chunk-
|
|
53
|
+
//# sourceMappingURL=chunk-S7T2TY65.js.map
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
writeGraphJsonlAtomic
|
|
3
|
+
} from "./chunk-DGS34QSY.js";
|
|
1
4
|
import {
|
|
2
5
|
graphFilePath,
|
|
3
6
|
graphsDir,
|
|
4
|
-
readEdgesStrict
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
readEdgesStrict
|
|
8
|
+
} from "./chunk-5FAGCOZD.js";
|
|
9
|
+
import {
|
|
10
|
+
assertGraphLockHeld,
|
|
11
|
+
withGraphWriteLock,
|
|
12
|
+
yieldForLockHeartbeat
|
|
13
|
+
} from "./chunk-EUT2WCWS.js";
|
|
7
14
|
import {
|
|
8
15
|
DEFAULT_DECAY_FLOOR,
|
|
9
16
|
DEFAULT_DECAY_PER_WINDOW,
|
|
@@ -14,6 +21,9 @@ import {
|
|
|
14
21
|
import {
|
|
15
22
|
isSafeRouteNamespace
|
|
16
23
|
} from "./chunk-PCXDUHQH.js";
|
|
24
|
+
import {
|
|
25
|
+
log
|
|
26
|
+
} from "./chunk-3WCASNQZ.js";
|
|
17
27
|
|
|
18
28
|
// src/maintenance/graph-edge-decay.ts
|
|
19
29
|
import {
|
|
@@ -29,13 +39,6 @@ var GRAPH_TYPES = ["entity", "time", "causal"];
|
|
|
29
39
|
function graphEdgeDecayStatusPath(memoryDir) {
|
|
30
40
|
return path.join(memoryDir, "state", "graph-edge-decay-status.json");
|
|
31
41
|
}
|
|
32
|
-
async function writeJsonlAtomic(filePath, edges) {
|
|
33
|
-
await mkdir(path.dirname(filePath), { recursive: true });
|
|
34
|
-
const body = edges.length === 0 ? "" : edges.map((e) => JSON.stringify(e)).join("\n") + "\n";
|
|
35
|
-
const tempPath = `${filePath}.${process.pid}.${Date.now()}.${Math.random().toString(36).slice(2)}.tmp`;
|
|
36
|
-
await writeFile(tempPath, body, "utf-8");
|
|
37
|
-
await rename(tempPath, filePath);
|
|
38
|
-
}
|
|
39
42
|
async function runGraphEdgeDecayMaintenance(memoryDir, options = {}) {
|
|
40
43
|
const startedAt = Date.now();
|
|
41
44
|
const ranAt = options.now ?? (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -56,13 +59,14 @@ async function runGraphEdgeDecayMaintenance(memoryDir, options = {}) {
|
|
|
56
59
|
typeDecayed,
|
|
57
60
|
typeBelow,
|
|
58
61
|
typeTotal
|
|
59
|
-
} = await withGraphWriteLock(filePath, async () => {
|
|
62
|
+
} = await withGraphWriteLock(filePath, async (lock) => {
|
|
60
63
|
const edges = await readEdgesStrict(memoryDir, type);
|
|
61
64
|
const updated = new Array(edges.length);
|
|
62
65
|
let localDecayed = 0;
|
|
63
66
|
let localBelow = 0;
|
|
64
67
|
let localChangedAny = false;
|
|
65
68
|
for (let i = 0; i < edges.length; i += 1) {
|
|
69
|
+
if (i > 0 && i % 5e3 === 0) await yieldForLockHeartbeat();
|
|
66
70
|
const edge = edges[i];
|
|
67
71
|
const before = readEdgeConfidence(edge);
|
|
68
72
|
const decayed = decayEdgeConfidence(edge, ranAt, { windowMs, perWindow, floor });
|
|
@@ -90,7 +94,15 @@ async function runGraphEdgeDecayMaintenance(memoryDir, options = {}) {
|
|
|
90
94
|
}
|
|
91
95
|
}
|
|
92
96
|
if (!dryRun && localChangedAny && edges.length > 0) {
|
|
93
|
-
|
|
97
|
+
try {
|
|
98
|
+
await assertGraphLockHeld(filePath, lock);
|
|
99
|
+
} catch (err) {
|
|
100
|
+
log.warn(
|
|
101
|
+
`graph decay: skipped the ${type} rewrite \u2014 ${err instanceof Error ? err.message : String(err)}; per-label drop totals may include this skipped pass`
|
|
102
|
+
);
|
|
103
|
+
return { typeDecayed: 0, typeBelow: localBelow, typeTotal: edges.length };
|
|
104
|
+
}
|
|
105
|
+
await writeGraphJsonlAtomic(filePath, updated, lock);
|
|
94
106
|
}
|
|
95
107
|
return {
|
|
96
108
|
typeDecayed: localDecayed,
|
|
@@ -203,4 +215,4 @@ export {
|
|
|
203
215
|
discoverGraphNamespaceRoots,
|
|
204
216
|
runGraphEdgeDecayMaintenanceAcrossNamespaces
|
|
205
217
|
};
|
|
206
|
-
//# sourceMappingURL=chunk-
|
|
218
|
+
//# sourceMappingURL=chunk-SCXURCVT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/maintenance/graph-edge-decay.ts"],"sourcesContent":["/**\n * Graph-edge decay maintenance job (issue #681 PR 2/3).\n *\n * For each edge in the on-disk JSONL graph stores\n * (`<memoryDir>/state/graphs/{entity,time,causal}.jsonl`) call\n * {@link decayEdgeConfidence} from PR 1/3 and write the decayed edge\n * back to disk via the temp+rename atomic-replace pattern (CLAUDE.md\n * gotcha #54: never delete-before-write).\n *\n * Emits a structured telemetry record per run that the doctor surface\n * (`remnic doctor`) and a tail of the maintenance ledger can consume.\n *\n * Pure-helper-style API (the function takes a `memoryDir` + opts and\n * returns a record); callers wire the cron / MCP tool / CLI surfaces.\n */\n\nimport {\n mkdir,\n readdir,\n readFile,\n rename,\n writeFile,\n} from \"node:fs/promises\";\nimport path from \"node:path\";\n\nimport {\n decayEdgeConfidence,\n DEFAULT_DECAY_FLOOR,\n DEFAULT_DECAY_PER_WINDOW,\n DEFAULT_DECAY_WINDOW_MS,\n readEdgeConfidence,\n type DecayOptions,\n} from \"../graph-edge-reinforcement.js\";\nimport { writeGraphJsonlAtomic } from \"../graph-jsonl.js\";\nimport { log } from \"../logger.js\";\nimport { assertGraphLockHeld, yieldForLockHeartbeat } from \"../graph-write-lock.js\";\nimport {\n graphFilePath,\n graphsDir,\n readEdgesStrict,\n withGraphWriteLock,\n type GraphEdge,\n type GraphType,\n} from \"../graph.js\";\nimport { isSafeRouteNamespace } from \"../routing/engine.js\";\n\n/** Default visibility threshold for the \"below visibility\" telemetry counter. */\nexport const DEFAULT_VISIBILITY_THRESHOLD = 0.2;\n\nconst GRAPH_TYPES: readonly GraphType[] = [\"entity\", \"time\", \"causal\"] as const;\n\n/** Per-edge-type breakdown emitted by {@link runGraphEdgeDecayMaintenance}. */\nexport interface GraphEdgeDecayPerTypeStats {\n type: GraphType;\n edgesTotal: number;\n edgesDecayed: number;\n edgesBelowVisibilityThreshold: number;\n}\n\n/** Top-decayed-entity entry (label + total confidence drop summed across edges). */\nexport interface GraphEdgeDecayTopEntity {\n label: string;\n totalDrop: number;\n edgeCount: number;\n}\n\n/**\n * Telemetry record emitted by every run of the decay job. Persisted to\n * `<memoryDir>/state/graph-edge-decay-status.json` for doctor consumption\n * and (optionally) appended to the maintenance ledger by callers.\n */\nexport interface GraphEdgeDecayTelemetry {\n ranAt: string;\n durationMs: number;\n edgesTotal: number;\n edgesDecayed: number;\n edgesBelowVisibilityThreshold: number;\n topDecayedEntities: GraphEdgeDecayTopEntity[];\n perType: GraphEdgeDecayPerTypeStats[];\n windowMs: number;\n perWindow: number;\n floor: number;\n visibilityThreshold: number;\n}\n\nexport interface GraphEdgeDecayOptions extends DecayOptions {\n /** Confidence threshold below which an edge counts as \"low visibility\". */\n visibilityThreshold?: number;\n /** Override \"now\" for deterministic testing. Defaults to `new Date().toISOString()`. */\n now?: string;\n /** When `true`, do not write decayed edges back — just compute telemetry. */\n dryRun?: boolean;\n}\n\n/** Path of the latest-run status file. */\nexport function graphEdgeDecayStatusPath(memoryDir: string): string {\n return path.join(memoryDir, \"state\", \"graph-edge-decay-status.json\");\n}\n\n\n/**\n * Run a single decay pass over every edge type.\n *\n * Idempotency: PR 1/3's `decayEdgeConfidence` advances `lastReinforcedAt`\n * by exactly the windows it just charged for, so a second run with the\n * same `now` (or any `now` inside the new grace window) is a no-op.\n *\n * Returns the telemetry record. The record is also persisted to\n * {@link graphEdgeDecayStatusPath} so doctor / CLI can read the last run\n * without re-scanning the graphs.\n */\nexport async function runGraphEdgeDecayMaintenance(\n memoryDir: string,\n options: GraphEdgeDecayOptions = {},\n): Promise<GraphEdgeDecayTelemetry> {\n const startedAt = Date.now();\n const ranAt = options.now ?? new Date().toISOString();\n const windowMs = options.windowMs ?? DEFAULT_DECAY_WINDOW_MS;\n const perWindow = options.perWindow ?? DEFAULT_DECAY_PER_WINDOW;\n const floor = options.floor ?? DEFAULT_DECAY_FLOOR;\n const visibilityThreshold =\n typeof options.visibilityThreshold === \"number\" && Number.isFinite(options.visibilityThreshold)\n ? Math.max(0, Math.min(1, options.visibilityThreshold))\n : DEFAULT_VISIBILITY_THRESHOLD;\n const dryRun = options.dryRun === true;\n\n await mkdir(graphsDir(memoryDir), { recursive: true });\n\n const perType: GraphEdgeDecayPerTypeStats[] = [];\n // Aggregate per-label decay drops across ALL graph types so the\n // \"top decayed entities\" list reflects whichever label dominated\n // each edge (entity name, threadId, or causal phrase). Sorting by\n // total confidence drop highlights the edges decay actually moved\n // most in this pass.\n const dropByLabel = new Map<string, { totalDrop: number; edgeCount: number }>();\n\n let edgesTotal = 0;\n let edgesDecayed = 0;\n let edgesBelowVisibilityThreshold = 0;\n\n for (const type of GRAPH_TYPES) {\n const filePath = graphFilePath(memoryDir, type);\n\n // Hold the per-graph-file write lock across BOTH the read-snapshot\n // and the atomic rewrite so concurrent `appendEdge()` calls cannot\n // sneak in between (issue #729 / Codex P1, line 224). Without this\n // lock the snapshot rewrite would silently drop any edge appended\n // by extraction during the same window. Read failures other than\n // ENOENT are surfaced via `readEdgesStrict` so I/O outages cannot\n // be reported as \"no edges to decay\" (Codex P1, line 120).\n const {\n typeDecayed,\n typeBelow,\n typeTotal,\n } = await withGraphWriteLock(filePath, async (lock) => {\n const edges = await readEdgesStrict(memoryDir, type);\n const updated: GraphEdge[] = new Array(edges.length);\n\n let localDecayed = 0;\n let localBelow = 0;\n let localChangedAny = false;\n\n for (let i = 0; i < edges.length; i += 1) {\n // Round N+19 A: the per-edge decay pass is CPU-bound; yield\n // periodically so the lock's mtime heartbeat timer can fire and a\n // peer does not judge the lock stale mid-run.\n if (i > 0 && i % 5_000 === 0) await yieldForLockHeartbeat();\n const edge = edges[i];\n const before = readEdgeConfidence(edge);\n const decayed = decayEdgeConfidence(edge, ranAt, { windowMs, perWindow, floor });\n const after = readEdgeConfidence(decayed);\n\n // Only count as \"decayed\" when the confidence actually dropped.\n // `decayEdgeConfidence` may return an unchanged copy (still inside\n // the grace window, or already at/below the floor) — those are\n // visited but not decayed.\n if (after < before) {\n localDecayed += 1;\n const drop = before - after;\n const label = typeof edge.label === \"string\" ? edge.label : \"\";\n // Skip empty labels in the top list — surfacing them produces\n // a meaningless \"\" entry that crowds the report.\n if (label.length > 0) {\n const prev = dropByLabel.get(label);\n if (prev) {\n prev.totalDrop += drop;\n prev.edgeCount += 1;\n } else {\n dropByLabel.set(label, { totalDrop: drop, edgeCount: 1 });\n }\n }\n }\n if (after < visibilityThreshold) {\n localBelow += 1;\n }\n updated[i] = decayed;\n // Detect any structural change (confidence OR lastReinforcedAt anchor advance)\n // so we only rewrite the JSONL when there's something to persist.\n if (\n decayed.confidence !== edge.confidence ||\n decayed.lastReinforcedAt !== edge.lastReinforcedAt\n ) {\n localChangedAny = true;\n }\n }\n\n if (!dryRun && localChangedAny && edges.length > 0) {\n // Round N+19 A: revalidate ownership before the rename-backed\n // replace — a peer that stale-broke this lock during the (yielding)\n // decay pass owns the file now. Leave it untouched; the next run\n // re-decays from whatever the peer published. The pass reports zero\n // decayed edges for this type so the telemetry never claims a\n // rewrite that did not land (per-label drop totals may still include\n // the skipped pass — the warning names it).\n try {\n await assertGraphLockHeld(filePath, lock);\n } catch (err) {\n log.warn(\n `graph decay: skipped the ${type} rewrite — ${err instanceof Error ? err.message : String(err)}; per-label drop totals may include this skipped pass`,\n );\n return { typeDecayed: 0, typeBelow: localBelow, typeTotal: edges.length };\n }\n await writeGraphJsonlAtomic(filePath, updated, lock);\n }\n\n return {\n typeDecayed: localDecayed,\n typeBelow: localBelow,\n typeTotal: edges.length,\n };\n });\n\n edgesDecayed += typeDecayed;\n edgesBelowVisibilityThreshold += typeBelow;\n edgesTotal += typeTotal;\n perType.push({\n type,\n edgesTotal: typeTotal,\n edgesDecayed: typeDecayed,\n edgesBelowVisibilityThreshold: typeBelow,\n });\n }\n\n // Stable secondary key on label keeps ordering deterministic when two\n // labels happen to have exactly the same totalDrop (gotcha #19).\n const topDecayedEntities: GraphEdgeDecayTopEntity[] = [...dropByLabel.entries()]\n .map(([label, agg]) => ({ label, totalDrop: agg.totalDrop, edgeCount: agg.edgeCount }))\n .sort((a, b) => {\n if (b.totalDrop !== a.totalDrop) return b.totalDrop - a.totalDrop;\n return a.label.localeCompare(b.label);\n })\n .slice(0, 5);\n\n const telemetry: GraphEdgeDecayTelemetry = {\n ranAt,\n durationMs: Date.now() - startedAt,\n edgesTotal,\n edgesDecayed,\n edgesBelowVisibilityThreshold,\n topDecayedEntities,\n perType,\n windowMs,\n perWindow,\n floor,\n visibilityThreshold,\n };\n\n if (!dryRun) {\n await persistTelemetry(memoryDir, telemetry);\n }\n\n return telemetry;\n}\n\nasync function persistTelemetry(\n memoryDir: string,\n telemetry: GraphEdgeDecayTelemetry,\n): Promise<void> {\n const statusPath = graphEdgeDecayStatusPath(memoryDir);\n await mkdir(path.dirname(statusPath), { recursive: true });\n const tempPath = `${statusPath}.${process.pid}.${Date.now()}.${Math.random().toString(36).slice(2)}.tmp`;\n // Wrap I/O in try/catch (gotcha #13) — failing to persist telemetry must\n // not blow up the maintenance run; the in-memory record is still returned.\n try {\n await writeFile(tempPath, JSON.stringify(telemetry, null, 2) + \"\\n\", \"utf-8\");\n await rename(tempPath, statusPath);\n } catch {\n // Best-effort: callers still receive the in-memory telemetry record.\n }\n}\n\n/** Read the last persisted decay-run telemetry, if any. */\nexport async function readGraphEdgeDecayStatus(\n memoryDir: string,\n): Promise<GraphEdgeDecayTelemetry | null> {\n try {\n const raw = await readFile(graphEdgeDecayStatusPath(memoryDir), \"utf-8\");\n const parsed = JSON.parse(raw);\n // Validate the parsed payload is a plain object (gotcha #18: JSON.parse('null') is valid).\n if (typeof parsed !== \"object\" || parsed === null || Array.isArray(parsed)) {\n return null;\n }\n return parsed as GraphEdgeDecayTelemetry;\n } catch {\n return null;\n }\n}\n\n/**\n * Per-namespace telemetry record returned by\n * {@link runGraphEdgeDecayMaintenanceAcrossNamespaces}. Each entry\n * pairs the namespace name with its decay telemetry (or an error\n * string if that namespace's run failed). Allows operators to spot\n * I/O outages on a single namespace without masking the rest.\n */\nexport interface GraphEdgeDecayNamespaceResult {\n namespace: string;\n storageRoot: string;\n telemetry?: GraphEdgeDecayTelemetry;\n error?: string;\n}\n\n/**\n * Discover every namespace storage root that may contain graph files.\n *\n * Returns a list of `{ namespace, storageRoot }` entries:\n * - The default namespace at `memoryDir` (always present).\n * - Each subdirectory under `memoryDir/namespaces/` that passes\n * `isSafeRouteNamespace`.\n *\n * Per gotcha #42: read paths must enumerate the same namespace layer\n * as write paths so non-default namespaces don't get skipped during\n * maintenance. Issue #729 / Codex P2.\n */\nexport async function discoverGraphNamespaceRoots(\n memoryDir: string,\n options: { namespacesEnabled: boolean; defaultNamespace: string },\n): Promise<{ namespace: string; storageRoot: string }[]> {\n const seen = new Map<string, string>();\n // Default namespace always lives at memoryDir (NamespaceStorageRouter\n // falls back to memoryDir when memoryDir/namespaces/<default> does\n // not exist).\n seen.set(options.defaultNamespace, memoryDir);\n\n if (!options.namespacesEnabled) {\n return [...seen.entries()].map(([namespace, storageRoot]) => ({ namespace, storageRoot }));\n }\n\n const namespacesDir = path.join(memoryDir, \"namespaces\");\n let entries: import(\"node:fs\").Dirent[];\n try {\n entries = await readdir(namespacesDir, { withFileTypes: true });\n } catch {\n // No namespaces dir yet — only the default namespace exists.\n return [...seen.entries()].map(([namespace, storageRoot]) => ({ namespace, storageRoot }));\n }\n for (const entry of entries) {\n if (!entry.isDirectory()) continue;\n if (!isSafeRouteNamespace(entry.name)) continue;\n const root = path.join(namespacesDir, entry.name);\n seen.set(entry.name, root);\n }\n\n return [...seen.entries()].map(([namespace, storageRoot]) => ({ namespace, storageRoot }));\n}\n\n/**\n * Run the decay maintenance pass against every namespace storage root.\n *\n * In namespaces-enabled deployments, non-default namespaces store\n * their graph JSONLs under `memoryDir/namespaces/<ns>/state/graphs/`,\n * so a single-root run only updates the default namespace and silently\n * skips the rest (issue #729 / Codex P2).\n *\n * Failures in one namespace do not block other namespaces; per-root\n * errors are surfaced in the `error` field of each result.\n */\nexport async function runGraphEdgeDecayMaintenanceAcrossNamespaces(\n memoryDir: string,\n options: GraphEdgeDecayOptions & {\n namespacesEnabled: boolean;\n defaultNamespace: string;\n },\n): Promise<GraphEdgeDecayNamespaceResult[]> {\n const { namespacesEnabled, defaultNamespace, ...decayOptions } = options;\n const roots = await discoverGraphNamespaceRoots(memoryDir, {\n namespacesEnabled,\n defaultNamespace,\n });\n\n const results: GraphEdgeDecayNamespaceResult[] = [];\n for (const { namespace, storageRoot } of roots) {\n try {\n const telemetry = await runGraphEdgeDecayMaintenance(storageRoot, decayOptions);\n results.push({ namespace, storageRoot, telemetry });\n } catch (err) {\n results.push({\n namespace,\n storageRoot,\n error: err instanceof Error ? err.message : String(err),\n });\n }\n }\n return results;\n}\n"],"mappings":"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","names":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hasMemoryData
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QOOBICJF.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveNamespaceStorageRoot
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E2P7TZTF.js";
|
|
7
7
|
import {
|
|
8
8
|
getConfiguredNamespaces
|
|
9
9
|
} from "./chunk-EGALNSZ4.js";
|
|
@@ -724,4 +724,4 @@ export {
|
|
|
724
724
|
runNamespaceMaintenancePlan,
|
|
725
725
|
runNamespaceMaintenanceBatchPlan
|
|
726
726
|
};
|
|
727
|
-
//# sourceMappingURL=chunk-
|
|
727
|
+
//# sourceMappingURL=chunk-SJDQ5RSN.js.map
|
|
@@ -7,15 +7,22 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
openclawReplayNormalizer
|
|
9
9
|
} from "./chunk-H4CKS5B2.js";
|
|
10
|
-
import {
|
|
11
|
-
exportSqlite
|
|
12
|
-
} from "./chunk-BV2TIZ4F.js";
|
|
13
10
|
import {
|
|
14
11
|
importMarkdownBundle
|
|
15
12
|
} from "./chunk-HDDRVXX4.js";
|
|
16
13
|
import {
|
|
17
14
|
importSqlite
|
|
18
15
|
} from "./chunk-PYHOAXTI.js";
|
|
16
|
+
import {
|
|
17
|
+
exportJsonBundle
|
|
18
|
+
} from "./chunk-UP6MOYCB.js";
|
|
19
|
+
import {
|
|
20
|
+
exportOkfBundle,
|
|
21
|
+
parseIncludeStatus
|
|
22
|
+
} from "./chunk-UCKYTA2T.js";
|
|
23
|
+
import {
|
|
24
|
+
exportSqlite
|
|
25
|
+
} from "./chunk-BV2TIZ4F.js";
|
|
19
26
|
import {
|
|
20
27
|
detectImportFormat
|
|
21
28
|
} from "./chunk-OZKVVUJB.js";
|
|
@@ -24,23 +31,10 @@ import {
|
|
|
24
31
|
} from "./chunk-2DL3OFLD.js";
|
|
25
32
|
import {
|
|
26
33
|
backupMemoryDir
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import {
|
|
29
|
-
exportJsonBundle
|
|
30
|
-
} from "./chunk-UP6MOYCB.js";
|
|
34
|
+
} from "./chunk-BXLOS5AJ.js";
|
|
31
35
|
import {
|
|
32
36
|
exportMarkdownBundle
|
|
33
37
|
} from "./chunk-765K3SAT.js";
|
|
34
|
-
import {
|
|
35
|
-
exportOkfBundle,
|
|
36
|
-
parseIncludeStatus
|
|
37
|
-
} from "./chunk-7TUB6JWA.js";
|
|
38
|
-
import {
|
|
39
|
-
RoutingRulesStore
|
|
40
|
-
} from "./chunk-TBUEE7XF.js";
|
|
41
|
-
import {
|
|
42
|
-
WebDavServer
|
|
43
|
-
} from "./chunk-PYIFUBRK.js";
|
|
44
38
|
import {
|
|
45
39
|
buildReplayNormalizerRegistry,
|
|
46
40
|
clampBatchSize,
|
|
@@ -51,23 +45,26 @@ import {
|
|
|
51
45
|
normalizeReplaySessionKey
|
|
52
46
|
} from "./chunk-AJVLDJU6.js";
|
|
53
47
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
48
|
+
RoutingRulesStore
|
|
49
|
+
} from "./chunk-TBUEE7XF.js";
|
|
56
50
|
import {
|
|
57
51
|
TailscaleHelper
|
|
58
52
|
} from "./chunk-EEC4PCG5.js";
|
|
53
|
+
import {
|
|
54
|
+
WebDavServer
|
|
55
|
+
} from "./chunk-PYIFUBRK.js";
|
|
59
56
|
import {
|
|
60
57
|
migrateObservations
|
|
61
58
|
} from "./chunk-IIFFC3RL.js";
|
|
62
59
|
import {
|
|
63
60
|
rebuildMemoryLifecycleLedger
|
|
64
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-WMLEPWMO.js";
|
|
62
|
+
import {
|
|
63
|
+
rebuildObservations
|
|
64
|
+
} from "./chunk-DQTCGVFK.js";
|
|
65
65
|
import {
|
|
66
66
|
archiveObservations
|
|
67
67
|
} from "./chunk-YLBE6PLR.js";
|
|
68
|
-
import {
|
|
69
|
-
lintOkfDir
|
|
70
|
-
} from "./chunk-CASWJ2HM.js";
|
|
71
68
|
import {
|
|
72
69
|
runCompatChecks
|
|
73
70
|
} from "./chunk-CDKHKZL5.js";
|
|
@@ -77,51 +74,45 @@ import {
|
|
|
77
74
|
registerBulkImportSource,
|
|
78
75
|
runBulkImportPipeline
|
|
79
76
|
} from "./chunk-HSSERO3E.js";
|
|
77
|
+
import {
|
|
78
|
+
lintOkfDir
|
|
79
|
+
} from "./chunk-46ZPIGWI.js";
|
|
80
80
|
import {
|
|
81
81
|
getUtilityLearningStatus,
|
|
82
82
|
learnUtilityPromotionWeights
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-W3K3HITK.js";
|
|
84
84
|
import {
|
|
85
85
|
getUtilityTelemetryStatus,
|
|
86
86
|
recordUtilityTelemetryEvent
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-EBA5DA77.js";
|
|
88
88
|
import {
|
|
89
89
|
searchVerifiedEpisodes
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-R7RTXEYG.js";
|
|
91
91
|
import {
|
|
92
92
|
ThreadingManager
|
|
93
93
|
} from "./chunk-OJP3N7UK.js";
|
|
94
94
|
import {
|
|
95
95
|
promoteSemanticRuleFromMemory
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-OEYZXDQI.js";
|
|
97
97
|
import {
|
|
98
98
|
searchVerifiedSemanticRules
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-5ATKSPEQ.js";
|
|
100
100
|
import {
|
|
101
101
|
buildResumeBundleFromState,
|
|
102
102
|
getResumeBundleStatus,
|
|
103
103
|
recordResumeBundle
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-KTWG7CNY.js";
|
|
105
105
|
import {
|
|
106
106
|
getWorkProductLedgerStatus,
|
|
107
107
|
recordWorkProductLedgerEntry,
|
|
108
108
|
searchWorkProductLedgerEntries
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-G7NYVKD6.js";
|
|
110
110
|
import {
|
|
111
111
|
utcDayRange
|
|
112
112
|
} from "./chunk-AM4T6CHX.js";
|
|
113
113
|
import {
|
|
114
114
|
parseXrayCliOptions
|
|
115
|
-
} from "./chunk-
|
|
116
|
-
import {
|
|
117
|
-
collectPatternMemories,
|
|
118
|
-
explainPatternMemory,
|
|
119
|
-
parsePatternsExplainOptions,
|
|
120
|
-
parsePatternsListOptions,
|
|
121
|
-
parseStrictCliDate,
|
|
122
|
-
renderPatternExplain,
|
|
123
|
-
renderPatternsList
|
|
124
|
-
} from "./chunk-3T74IZB3.js";
|
|
115
|
+
} from "./chunk-S7T2TY65.js";
|
|
125
116
|
import {
|
|
126
117
|
readRuntimePolicySnapshot,
|
|
127
118
|
sanitizeRuntimePolicyValues
|
|
@@ -134,12 +125,21 @@ import {
|
|
|
134
125
|
runOperatorInventory,
|
|
135
126
|
runOperatorRepair,
|
|
136
127
|
runOperatorSetup
|
|
137
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-H54VWRPS.js";
|
|
138
129
|
import {
|
|
139
130
|
analyzeSessionIntegrity,
|
|
140
131
|
applySessionRepair,
|
|
141
132
|
planSessionRepair
|
|
142
133
|
} from "./chunk-KFY3SGN7.js";
|
|
134
|
+
import {
|
|
135
|
+
collectPatternMemories,
|
|
136
|
+
explainPatternMemory,
|
|
137
|
+
parsePatternsExplainOptions,
|
|
138
|
+
parsePatternsListOptions,
|
|
139
|
+
parseStrictCliDate,
|
|
140
|
+
renderPatternExplain,
|
|
141
|
+
renderPatternsList
|
|
142
|
+
} from "./chunk-3T74IZB3.js";
|
|
143
143
|
import {
|
|
144
144
|
GITHUB_CONNECTOR_ID,
|
|
145
145
|
GMAIL_CONNECTOR_ID,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
validateGmailConfig,
|
|
154
154
|
validateGoogleDriveConfig,
|
|
155
155
|
validateNotionConfig
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-3K7V3HE6.js";
|
|
157
157
|
import {
|
|
158
158
|
listConnectorStates
|
|
159
159
|
} from "./chunk-6GUG4YNM.js";
|
|
@@ -168,15 +168,15 @@ import {
|
|
|
168
168
|
runEvalBenchmarkCiGate,
|
|
169
169
|
runEvalStoredBaselineCiGate,
|
|
170
170
|
validateEvalBenchmarkPack
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-4IHBN6WU.js";
|
|
172
172
|
import {
|
|
173
173
|
GraphDashboardServer
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-EZ25VE3G.js";
|
|
175
175
|
import {
|
|
176
176
|
rebuildMemoryProjection,
|
|
177
177
|
repairMemoryProjection,
|
|
178
178
|
verifyMemoryProjection
|
|
179
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-JEC4DVM3.js";
|
|
180
180
|
import {
|
|
181
181
|
buildConnectorRowsFromDefinitions,
|
|
182
182
|
parseConnectorsListOptions,
|
|
@@ -191,13 +191,13 @@ import {
|
|
|
191
191
|
getCommitmentLedgerStatus,
|
|
192
192
|
recordCommitmentLedgerEntry,
|
|
193
193
|
transitionCommitmentLedgerEntryState
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-NHLLKEKK.js";
|
|
195
195
|
import {
|
|
196
196
|
chunkContent
|
|
197
197
|
} from "./chunk-6TBIWIAG.js";
|
|
198
198
|
import {
|
|
199
199
|
parseConfig
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-2IOHTUP3.js";
|
|
201
201
|
import {
|
|
202
202
|
expandVaultTemplateTokens,
|
|
203
203
|
resolveVaultNotePath,
|
|
@@ -206,7 +206,7 @@ import {
|
|
|
206
206
|
import {
|
|
207
207
|
EngramAccessHttpServer,
|
|
208
208
|
MeetingsInputError
|
|
209
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-C553ZTLF.js";
|
|
210
210
|
import {
|
|
211
211
|
WearablesInputError
|
|
212
212
|
} from "./chunk-V7IZKJI3.js";
|
|
@@ -216,19 +216,19 @@ import {
|
|
|
216
216
|
loadChatSession,
|
|
217
217
|
processChatMessage,
|
|
218
218
|
sessionBelongsToPrincipal
|
|
219
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-BLJWYCNO.js";
|
|
220
220
|
import {
|
|
221
221
|
EngramAccessService,
|
|
222
222
|
journalPath
|
|
223
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-ICKJ52PE.js";
|
|
224
224
|
import {
|
|
225
225
|
WorkStorage
|
|
226
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-MPC7TYTZ.js";
|
|
227
227
|
import {
|
|
228
228
|
getTrustZoneStoreStatus,
|
|
229
229
|
promoteTrustZoneRecord,
|
|
230
230
|
seedTrustZoneDemoDataset
|
|
231
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-ROBHL3GL.js";
|
|
232
232
|
import {
|
|
233
233
|
migrateSessionTranscripts,
|
|
234
234
|
planSessionTranscriptMigration
|
|
@@ -237,48 +237,48 @@ import {
|
|
|
237
237
|
parseRecallExplainFormat,
|
|
238
238
|
renderRecallExplain,
|
|
239
239
|
renderXray
|
|
240
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-22FVR2KE.js";
|
|
241
241
|
import {
|
|
242
242
|
readAggregateExtractionWatermark
|
|
243
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-EOQ6FSQP.js";
|
|
244
244
|
import {
|
|
245
245
|
getObjectiveStateStoreStatus
|
|
246
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-HM7RHKS4.js";
|
|
247
247
|
import {
|
|
248
248
|
searchHarmonicRetrieval
|
|
249
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-6XL73HQ4.js";
|
|
250
|
+
import {
|
|
251
|
+
getCueAnchorStoreStatus
|
|
252
|
+
} from "./chunk-BMWN7B3Y.js";
|
|
250
253
|
import {
|
|
251
254
|
listMemoryGovernanceRuns,
|
|
252
255
|
readMemoryGovernanceRunArtifact,
|
|
253
256
|
restoreMemoryGovernanceRun,
|
|
254
257
|
runMemoryGovernance
|
|
255
|
-
} from "./chunk-
|
|
258
|
+
} from "./chunk-MY5EDR46.js";
|
|
256
259
|
import {
|
|
257
260
|
listNamespaces,
|
|
258
261
|
runNamespaceMigration,
|
|
259
262
|
verifyNamespaces
|
|
260
|
-
} from "./chunk-
|
|
261
|
-
import {
|
|
262
|
-
getCueAnchorStoreStatus
|
|
263
|
-
} from "./chunk-ACPCA4NO.js";
|
|
263
|
+
} from "./chunk-RBCQVOVJ.js";
|
|
264
264
|
import {
|
|
265
265
|
resolveNamespaceChildRoot
|
|
266
266
|
} from "./chunk-3UXOZBHV.js";
|
|
267
267
|
import {
|
|
268
268
|
analyzeGraphHealth
|
|
269
|
-
} from "./chunk-
|
|
269
|
+
} from "./chunk-5FAGCOZD.js";
|
|
270
270
|
import {
|
|
271
271
|
OKF_RESERVED_BASENAMES,
|
|
272
272
|
meetingIdDate,
|
|
273
273
|
okfTypeForCategory
|
|
274
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-XSGUMQQQ.js";
|
|
275
275
|
import {
|
|
276
276
|
isValidTranscriptDate
|
|
277
277
|
} from "./chunk-UHVXE24Y.js";
|
|
278
278
|
import {
|
|
279
279
|
RECALL_DISCLOSURE_LEVELS,
|
|
280
280
|
isRecallDisclosure
|
|
281
|
-
} from "./chunk-
|
|
281
|
+
} from "./chunk-SO7SV523.js";
|
|
282
282
|
import {
|
|
283
283
|
normalizeProjectionPreview
|
|
284
284
|
} from "./chunk-SCU65EZI.js";
|
|
@@ -290,7 +290,7 @@ import {
|
|
|
290
290
|
} from "./chunk-IUM3VSHI.js";
|
|
291
291
|
import {
|
|
292
292
|
composeMemoryEnvelope
|
|
293
|
-
} from "./chunk-
|
|
293
|
+
} from "./chunk-3QQTXYZ6.js";
|
|
294
294
|
import {
|
|
295
295
|
hostSecretRefResolver,
|
|
296
296
|
loadHostSecretRefResolver,
|
|
@@ -315,7 +315,7 @@ import {
|
|
|
315
315
|
} from "./chunk-QDW3E4RD.js";
|
|
316
316
|
import {
|
|
317
317
|
getCausalTrajectoryStoreStatus
|
|
318
|
-
} from "./chunk-
|
|
318
|
+
} from "./chunk-B3O3IRZN.js";
|
|
319
319
|
import {
|
|
320
320
|
activityDateInTimezone,
|
|
321
321
|
isValidActivityDate
|
|
@@ -324,29 +324,29 @@ import {
|
|
|
324
324
|
padEndDisplay,
|
|
325
325
|
truncateGraphemeSafe
|
|
326
326
|
} from "./chunk-PJKTFXE2.js";
|
|
327
|
-
import {
|
|
328
|
-
buildActionConfidenceInputFromOptions,
|
|
329
|
-
evaluateActionConfidence,
|
|
330
|
-
renderActionConfidenceText
|
|
331
|
-
} from "./chunk-Z2YFLXHU.js";
|
|
332
327
|
import {
|
|
333
328
|
STATE_FILE_MAX_DECRYPT_BYTES
|
|
334
|
-
} from "./chunk-
|
|
335
|
-
import {
|
|
336
|
-
inferMemoryStatus,
|
|
337
|
-
isArchivedMemoryPath,
|
|
338
|
-
toMemoryPathRel
|
|
339
|
-
} from "./chunk-7RJUVTVF.js";
|
|
329
|
+
} from "./chunk-TBXAY2SS.js";
|
|
340
330
|
import {
|
|
341
331
|
writeFileAtomically
|
|
342
332
|
} from "./chunk-AW4QUFQF.js";
|
|
343
333
|
import {
|
|
344
334
|
assertPathInsideRoot,
|
|
345
335
|
pathIsInside
|
|
346
|
-
} from "./chunk-
|
|
336
|
+
} from "./chunk-C7HJ3NEI.js";
|
|
337
|
+
import {
|
|
338
|
+
inferMemoryStatus,
|
|
339
|
+
isArchivedMemoryPath,
|
|
340
|
+
toMemoryPathRel
|
|
341
|
+
} from "./chunk-7RJUVTVF.js";
|
|
347
342
|
import {
|
|
348
343
|
isSupportPassportPrivateMemory
|
|
349
344
|
} from "./chunk-EEOUMG3J.js";
|
|
345
|
+
import {
|
|
346
|
+
buildActionConfidenceInputFromOptions,
|
|
347
|
+
evaluateActionConfidence,
|
|
348
|
+
renderActionConfidenceText
|
|
349
|
+
} from "./chunk-Z2YFLXHU.js";
|
|
350
350
|
import {
|
|
351
351
|
selectRouteRule,
|
|
352
352
|
validateRouteTarget
|
|
@@ -376,11 +376,11 @@ import {
|
|
|
376
376
|
} from "./chunk-JUC24CTX.js";
|
|
377
377
|
import {
|
|
378
378
|
getAbstractionNodeStoreStatus
|
|
379
|
-
} from "./chunk-
|
|
379
|
+
} from "./chunk-46EST7JO.js";
|
|
380
380
|
import {
|
|
381
381
|
SECURE_STORE_ENVELOPE_OVERHEAD_BYTES,
|
|
382
382
|
probeEncryptedRegularFileHeader
|
|
383
|
-
} from "./chunk-
|
|
383
|
+
} from "./chunk-JN72EPOE.js";
|
|
384
384
|
import {
|
|
385
385
|
RECALL_FALLBACK_DIRS
|
|
386
386
|
} from "./chunk-VS2IYZRU.js";
|
|
@@ -419,6 +419,15 @@ function getWearableConnector(id) {
|
|
|
419
419
|
if (key.length === 0) return void 0;
|
|
420
420
|
return registrations.get(key);
|
|
421
421
|
}
|
|
422
|
+
function selfRegisterWearableConnector(registration) {
|
|
423
|
+
const ensureRegistered = () => {
|
|
424
|
+
if (getWearableConnector(registration.id) !== void 0) return false;
|
|
425
|
+
registerWearableConnector(registration);
|
|
426
|
+
return true;
|
|
427
|
+
};
|
|
428
|
+
ensureRegistered();
|
|
429
|
+
return ensureRegistered;
|
|
430
|
+
}
|
|
422
431
|
function listWearableConnectors() {
|
|
423
432
|
return [...registrations.keys()];
|
|
424
433
|
}
|
|
@@ -5681,7 +5690,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
5681
5690
|
);
|
|
5682
5691
|
tierCmd.command("list").description("Summarize tier distribution across all memories").option("--json", "Emit machine-readable JSON only").action(async (...args) => {
|
|
5683
5692
|
const options = args[0] ?? {};
|
|
5684
|
-
const { summarizeTiers, formatTierSummaryText } = await import("./tier-stats-
|
|
5693
|
+
const { summarizeTiers, formatTierSummaryText } = await import("./tier-stats-KA6OZX2C.js");
|
|
5685
5694
|
const summary = await summarizeTiers(orchestrator.storage);
|
|
5686
5695
|
if (reportHasMachineReadableOutput(options)) {
|
|
5687
5696
|
console.log(JSON.stringify(summary, null, 2));
|
|
@@ -5692,7 +5701,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
5692
5701
|
tierCmd.command("explain").description("Explain the tier-transition decision for a single memory").argument("<id>", "Memory id to explain").option("--json", "Emit machine-readable JSON only").action(async (...args) => {
|
|
5693
5702
|
const idArg = typeof args[0] === "string" ? args[0] : "";
|
|
5694
5703
|
const options = args[1] ?? {};
|
|
5695
|
-
const { explainTierForMemory, formatTierExplainText } = await import("./tier-stats-
|
|
5704
|
+
const { explainTierForMemory, formatTierExplainText } = await import("./tier-stats-KA6OZX2C.js");
|
|
5696
5705
|
try {
|
|
5697
5706
|
const explain = await explainTierForMemory(
|
|
5698
5707
|
orchestrator.storage,
|
|
@@ -5725,7 +5734,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
5725
5734
|
const idArg = typeof args[0] === "string" ? args[0] : "";
|
|
5726
5735
|
const options = args[1] ?? {};
|
|
5727
5736
|
const reason = typeof options.reason === "string" && options.reason.trim().length > 0 ? options.reason.trim() : void 0;
|
|
5728
|
-
const { forgetMemory } = await import("./forget-
|
|
5737
|
+
const { forgetMemory } = await import("./forget-SZ2BXDGF.js");
|
|
5729
5738
|
try {
|
|
5730
5739
|
const result = await forgetMemory(orchestrator.storage, {
|
|
5731
5740
|
id: idArg,
|
|
@@ -5818,7 +5827,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
5818
5827
|
}
|
|
5819
5828
|
const confirmed = confirmValue === "yes";
|
|
5820
5829
|
const dryRun = hasDryRunFlag || !confirmed;
|
|
5821
|
-
const { purgeMemories } = await import("./purge-
|
|
5830
|
+
const { purgeMemories } = await import("./purge-TZKRE6ZQ.js");
|
|
5822
5831
|
try {
|
|
5823
5832
|
const result = await purgeMemories({
|
|
5824
5833
|
storage: orchestrator.storage,
|
|
@@ -6285,7 +6294,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
6285
6294
|
}
|
|
6286
6295
|
}
|
|
6287
6296
|
if (sourceArchive.endsWith(".enc")) {
|
|
6288
|
-
const { isEncryptedCapsuleFile } = await import("./capsule-crypto-
|
|
6297
|
+
const { isEncryptedCapsuleFile } = await import("./capsule-crypto-YO5QJ6L3.js");
|
|
6289
6298
|
const encDetected = await isEncryptedCapsuleFile(sourceArchive).catch(() => true);
|
|
6290
6299
|
if (encDetected) {
|
|
6291
6300
|
throw new Error(
|
|
@@ -6293,7 +6302,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
6293
6302
|
);
|
|
6294
6303
|
}
|
|
6295
6304
|
}
|
|
6296
|
-
const { mergeCapsule } = await import("./capsule-merge-
|
|
6305
|
+
const { mergeCapsule } = await import("./capsule-merge-IPG4IOFP.js");
|
|
6297
6306
|
const result = await mergeCapsule({
|
|
6298
6307
|
sourceArchive,
|
|
6299
6308
|
targetRoot: memoryDir,
|
|
@@ -6448,7 +6457,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
6448
6457
|
const { parseExportBundle } = await import("./transfer/types.js");
|
|
6449
6458
|
let decryptedBuf;
|
|
6450
6459
|
try {
|
|
6451
|
-
const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-
|
|
6460
|
+
const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-YO5QJ6L3.js");
|
|
6452
6461
|
decryptedBuf = await decryptCapsuleFileInMemory(archivePath, memoryDir);
|
|
6453
6462
|
} catch (decErr) {
|
|
6454
6463
|
const msg = decErr instanceof Error ? decErr.message : String(decErr);
|
|
@@ -8936,7 +8945,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
8936
8945
|
console.error("--verb is required. Must be one of: keep-a, keep-b, merge, both-valid, needs-more-context");
|
|
8937
8946
|
process.exit(1);
|
|
8938
8947
|
}
|
|
8939
|
-
const { isValidResolutionVerb, executeResolution } = await import("./resolution-
|
|
8948
|
+
const { isValidResolutionVerb, executeResolution } = await import("./resolution-VKATP2HT.js");
|
|
8940
8949
|
if (!isValidResolutionVerb(verb)) {
|
|
8941
8950
|
console.error(`Invalid verb: ${verb}. Must be one of: keep-a, keep-b, merge, both-valid, needs-more-context`);
|
|
8942
8951
|
process.exit(1);
|
|
@@ -9599,6 +9608,7 @@ export {
|
|
|
9599
9608
|
formatAuditMemoryReport,
|
|
9600
9609
|
registerWearableConnector,
|
|
9601
9610
|
getWearableConnector,
|
|
9611
|
+
selfRegisterWearableConnector,
|
|
9602
9612
|
listWearableConnectors,
|
|
9603
9613
|
clearWearableConnectors,
|
|
9604
9614
|
builtInConnectorPackageSpecifier,
|
|
@@ -9716,4 +9726,4 @@ export {
|
|
|
9716
9726
|
listMemoryMarkdownFilePaths,
|
|
9717
9727
|
registerCli
|
|
9718
9728
|
};
|
|
9719
|
-
//# sourceMappingURL=chunk-
|
|
9729
|
+
//# sourceMappingURL=chunk-SMWTZLHE.js.map
|