@remnic/core 1.1.31 → 9.3.516
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 +2 -2
- package/dist/access-cli.d.ts +1 -1
- package/dist/access-cli.js +158 -121
- package/dist/access-cli.js.map +1 -1
- package/dist/access-http.d.ts +9 -5
- package/dist/access-http.js +51 -51
- package/dist/access-idempotency.d.ts +2 -0
- package/dist/access-idempotency.js +1 -1
- package/dist/access-mcp.d.ts +16 -9
- package/dist/access-mcp.js +44 -44
- package/dist/access-schema.d.ts +45 -13
- package/dist/access-schema.js +8 -8
- package/dist/{access-service-CkZyb35d.d.ts → access-service-CZfksQuS.d.ts} +11 -130
- package/dist/access-service.d.ts +7 -4
- package/dist/access-service.js +40 -40
- package/dist/action-confidence.d.ts +1 -0
- package/dist/active-memory-bridge.d.ts +1 -0
- package/dist/active-memory-bridge.js +3 -2
- package/dist/active-recall.d.ts +1 -0
- package/dist/active-recall.js +14 -9
- package/dist/active-recall.js.map +1 -1
- package/dist/adapters/claude-code.d.ts +6 -2
- package/dist/adapters/claude-code.js +2 -2
- package/dist/adapters/codex.d.ts +5 -1
- package/dist/adapters/codex.js +2 -2
- package/dist/adapters/hermes.js +2 -2
- package/dist/adapters/index.js +6 -6
- package/dist/adapters/registry.js +6 -6
- package/dist/adapters/replit.d.ts +4 -2
- package/dist/adapters/replit.js +2 -2
- package/dist/adapters/types.d.ts +4 -0
- package/dist/adapters/types.js +1 -1
- package/dist/behavior-learner.d.ts +1 -0
- package/dist/behavior-signals.d.ts +1 -0
- package/dist/behavior-signals.js +1 -1
- package/dist/bootstrap.d.ts +5 -3
- package/dist/bootstrap.js +2 -2
- package/dist/boxes.d.ts +1 -0
- package/dist/boxes.js +1 -1
- package/dist/briefing.d.ts +1 -0
- package/dist/briefing.js +9 -9
- package/dist/buffer-surprise-report.d.ts +1 -0
- package/dist/buffer.d.ts +1 -0
- package/dist/buffer.js +2 -2
- package/dist/bulk-import/index.d.ts +28 -0
- package/dist/bulk-import/index.js +31 -0
- package/dist/calibration.d.ts +2 -0
- package/dist/calibration.js +50 -17
- package/dist/calibration.js.map +1 -1
- package/dist/{capsule-crypto-5CYAGVC5.js → capsule-crypto-7FJQINUR.js} +2 -2
- package/dist/{capsule-merge-4MGKE7C5.js → capsule-merge-T2JRE46P.js} +3 -3
- package/dist/causal-behavior.d.ts +1 -0
- package/dist/causal-behavior.js +4 -4
- package/dist/causal-chain.js +4 -4
- package/dist/causal-consolidation.d.ts +16 -1
- package/dist/causal-consolidation.js +115 -32
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-retrieval.js +14 -6
- package/dist/causal-retrieval.js.map +1 -1
- package/dist/causal-trajectory-graph.js +2 -2
- package/dist/causal-trajectory.js +2 -2
- package/dist/{chunk-SAZS2QZB.js → chunk-23UORJ4S.js} +3 -3
- package/dist/{chunk-76FLAAUC.js → chunk-2AN2L4NL.js} +17 -6
- package/dist/chunk-2AN2L4NL.js.map +1 -0
- package/dist/{chunk-W4L6CZKA.js → chunk-2DL3OFLD.js} +15 -10
- package/dist/chunk-2DL3OFLD.js.map +1 -0
- package/dist/{chunk-NJ3MJQZX.js → chunk-2I5JGH3M.js} +2 -2
- package/dist/{chunk-NJ3MJQZX.js.map → chunk-2I5JGH3M.js.map} +1 -1
- package/dist/{chunk-7OZ53EXP.js → chunk-2NLLXCJG.js} +21 -10
- package/dist/chunk-2NLLXCJG.js.map +1 -0
- package/dist/{chunk-PK7H5L6Y.js → chunk-2NM43EWN.js} +2 -2
- package/dist/{chunk-PYXS46O7.js → chunk-3BP57I6J.js} +2 -2
- package/dist/{chunk-FBYESMQ2.js → chunk-3C5RPJAX.js} +2 -2
- package/dist/{chunk-FKFMOY3N.js → chunk-42NQ7AVG.js} +3 -4
- package/dist/{chunk-FKFMOY3N.js.map → chunk-42NQ7AVG.js.map} +1 -1
- package/dist/chunk-4426WSWL.js +73 -0
- package/dist/chunk-4426WSWL.js.map +1 -0
- package/dist/{chunk-LIRZNNUP.js → chunk-44442YCH.js} +5 -2
- package/dist/chunk-44442YCH.js.map +1 -0
- package/dist/{chunk-H3ME6L6D.js → chunk-46GJIW5M.js} +23 -20
- package/dist/chunk-46GJIW5M.js.map +1 -0
- package/dist/{chunk-QDZ2RLEC.js → chunk-472U7RDF.js} +3 -3
- package/dist/chunk-472U7RDF.js.map +1 -0
- package/dist/{chunk-NN2DKE4T.js → chunk-4H5ZJHEN.js} +16 -3
- package/dist/{chunk-NN2DKE4T.js.map → chunk-4H5ZJHEN.js.map} +1 -1
- package/dist/{chunk-56K5QLHX.js → chunk-4HP7HIE3.js} +56 -13
- package/dist/chunk-4HP7HIE3.js.map +1 -0
- package/dist/{chunk-RK2Y4XOM.js → chunk-4JRRISLU.js} +9 -6
- package/dist/chunk-4JRRISLU.js.map +1 -0
- package/dist/{chunk-XKLD5OK4.js → chunk-4RR6ROTB.js} +10 -11
- package/dist/chunk-4RR6ROTB.js.map +1 -0
- package/dist/{chunk-YROHKYBY.js → chunk-5UHVGNZD.js} +22 -6
- package/dist/chunk-5UHVGNZD.js.map +1 -0
- package/dist/{chunk-ZAVUCJ4H.js → chunk-5V456VRV.js} +154 -69
- package/dist/chunk-5V456VRV.js.map +1 -0
- package/dist/{chunk-77H5NU3M.js → chunk-6BR7L222.js} +82 -18
- package/dist/chunk-6BR7L222.js.map +1 -0
- package/dist/{chunk-4KGVTPGD.js → chunk-6F6BXB7A.js} +9 -8
- package/dist/chunk-6F6BXB7A.js.map +1 -0
- package/dist/{chunk-NMZY542O.js → chunk-6URPAY2D.js} +41 -17
- package/dist/chunk-6URPAY2D.js.map +1 -0
- package/dist/{chunk-N53K2EXC.js → chunk-6VF75M3X.js} +2 -2
- package/dist/{chunk-XSZEP4SF.js → chunk-6XSPNR6L.js} +6 -5
- package/dist/chunk-6XSPNR6L.js.map +1 -0
- package/dist/{chunk-6H2TESSP.js → chunk-765K3SAT.js} +3 -3
- package/dist/{chunk-EDTHC6UD.js → chunk-77NAFXUD.js} +2 -2
- package/dist/{chunk-S7KDBTWT.js → chunk-7F7Z6MOS.js} +29 -14
- package/dist/chunk-7F7Z6MOS.js.map +1 -0
- package/dist/{chunk-MZH6EHNR.js → chunk-7H6CFEBJ.js} +41 -14
- package/dist/chunk-7H6CFEBJ.js.map +1 -0
- package/dist/{chunk-MGKYQQYF.js → chunk-7Q3RCKAQ.js} +2 -2
- package/dist/chunk-7RXCMVFQ.js +27 -0
- package/dist/chunk-7RXCMVFQ.js.map +1 -0
- package/dist/{chunk-DGXUHMOV.js → chunk-A2IYSXDQ.js} +25 -6
- package/dist/chunk-A2IYSXDQ.js.map +1 -0
- package/dist/{chunk-EABGC2TL.js → chunk-A2Z6UCWT.js} +26 -4
- package/dist/chunk-A2Z6UCWT.js.map +1 -0
- package/dist/{chunk-5375UYTQ.js → chunk-A6D7A2FW.js} +4 -4
- package/dist/chunk-A6D7A2FW.js.map +1 -0
- package/dist/{chunk-FAAFWE4G.js → chunk-ALEPI75L.js} +24 -6
- package/dist/chunk-ALEPI75L.js.map +1 -0
- package/dist/{chunk-3SLRNYNG.js → chunk-AUDJPF4N.js} +15 -4
- package/dist/chunk-AUDJPF4N.js.map +1 -0
- package/dist/chunk-B5XMS73R.js +145 -0
- package/dist/chunk-B5XMS73R.js.map +1 -0
- package/dist/{chunk-HXXBL2KD.js → chunk-BECQDWBA.js} +44 -4
- package/dist/chunk-BECQDWBA.js.map +1 -0
- package/dist/{chunk-7SEAZFFB.js → chunk-BEUDU7Y4.js} +24 -4
- package/dist/chunk-BEUDU7Y4.js.map +1 -0
- package/dist/chunk-CHBI22MI.js +159 -0
- package/dist/chunk-CHBI22MI.js.map +1 -0
- package/dist/{chunk-GDFS42HT.js → chunk-CHCA44C3.js} +15 -8
- package/dist/chunk-CHCA44C3.js.map +1 -0
- package/dist/chunk-CINZGPSJ.js +22 -0
- package/dist/chunk-CINZGPSJ.js.map +1 -0
- package/dist/chunk-CMTINOFS.js +36 -0
- package/dist/chunk-CMTINOFS.js.map +1 -0
- package/dist/{chunk-34DQE4KF.js → chunk-CO7ZO4TU.js} +2 -2
- package/dist/{chunk-PFV5C235.js → chunk-CPPS65WS.js} +2 -1
- package/dist/{chunk-PFV5C235.js.map → chunk-CPPS65WS.js.map} +1 -1
- package/dist/{chunk-DINWEURR.js → chunk-CSKLPDN6.js} +20 -6
- package/dist/chunk-CSKLPDN6.js.map +1 -0
- package/dist/chunk-CWWMTTQE.js +566 -0
- package/dist/chunk-CWWMTTQE.js.map +1 -0
- package/dist/{chunk-IQT3XTKW.js → chunk-D24OXEPB.js} +13 -7
- package/dist/chunk-D24OXEPB.js.map +1 -0
- package/dist/{chunk-WIICJPET.js → chunk-DEUNUKTD.js} +6 -4
- package/dist/{chunk-WIICJPET.js.map → chunk-DEUNUKTD.js.map} +1 -1
- package/dist/{chunk-ZYVPLJ4T.js → chunk-DHGSZ3UD.js} +9 -7
- package/dist/chunk-DHGSZ3UD.js.map +1 -0
- package/dist/{chunk-JR4ZC3G4.js → chunk-DLJ4IR6M.js} +91 -41
- package/dist/chunk-DLJ4IR6M.js.map +1 -0
- package/dist/{chunk-U4SCL7B7.js → chunk-DRD2Q7HQ.js} +82 -18
- package/dist/chunk-DRD2Q7HQ.js.map +1 -0
- package/dist/{chunk-2IWUMAES.js → chunk-E62SBGQ3.js} +28 -13
- package/dist/chunk-E62SBGQ3.js.map +1 -0
- package/dist/{chunk-C5BCH4ZS.js → chunk-EAZGEEG2.js} +21 -3
- package/dist/chunk-EAZGEEG2.js.map +1 -0
- package/dist/{chunk-TPB3I2AC.js → chunk-ECZU5BJH.js} +31 -10
- package/dist/chunk-ECZU5BJH.js.map +1 -0
- package/dist/chunk-EDQVAMQI.js +308 -0
- package/dist/chunk-EDQVAMQI.js.map +1 -0
- package/dist/{chunk-RRF5UOBJ.js → chunk-EI6V5UXY.js} +22 -15
- package/dist/chunk-EI6V5UXY.js.map +1 -0
- package/dist/{chunk-ZKSK55RC.js → chunk-ETUPBUHB.js} +2 -2
- package/dist/{chunk-25MQ7IHJ.js → chunk-EUML3N6B.js} +17 -6
- package/dist/chunk-EUML3N6B.js.map +1 -0
- package/dist/{chunk-5RGLBDQF.js → chunk-EVZFIAPG.js} +12 -12
- package/dist/chunk-EVZFIAPG.js.map +1 -0
- package/dist/{chunk-QRNI5JBH.js → chunk-EYIEWJNI.js} +2 -2
- package/dist/{chunk-TPU5L5EY.js → chunk-FCOQXV3T.js} +272 -411
- package/dist/chunk-FCOQXV3T.js.map +1 -0
- package/dist/{chunk-TMQLARTH.js → chunk-FK556DDH.js} +34 -15
- package/dist/chunk-FK556DDH.js.map +1 -0
- package/dist/{chunk-43PJZYGL.js → chunk-FPGE5NVO.js} +45 -10
- package/dist/chunk-FPGE5NVO.js.map +1 -0
- package/dist/{chunk-3VAL7ZL2.js → chunk-FUC4LZMD.js} +60 -25
- package/dist/chunk-FUC4LZMD.js.map +1 -0
- package/dist/{chunk-C6QPK5GG.js → chunk-FZZ2QTJI.js} +2 -2
- package/dist/{chunk-D46YSIYX.js → chunk-G3Z3QEF5.js} +19 -11
- package/dist/{chunk-D46YSIYX.js.map → chunk-G3Z3QEF5.js.map} +1 -1
- package/dist/{chunk-3JXBXXM2.js → chunk-G4IAEX6D.js} +2 -2
- package/dist/{chunk-MSWG7JI6.js → chunk-G56P5RLD.js} +8 -2
- package/dist/chunk-G56P5RLD.js.map +1 -0
- package/dist/{chunk-AGZQD76C.js → chunk-GCGJW34D.js} +48 -2
- package/dist/chunk-GCGJW34D.js.map +1 -0
- package/dist/chunk-H2NCNXMS.js +159 -0
- package/dist/chunk-H2NCNXMS.js.map +1 -0
- package/dist/{chunk-XYIK4LF6.js → chunk-H3FZVNRN.js} +8 -2
- package/dist/chunk-H3FZVNRN.js.map +1 -0
- package/dist/{chunk-YU5KIWYQ.js → chunk-HC6EKOID.js} +94 -43
- package/dist/chunk-HC6EKOID.js.map +1 -0
- package/dist/{chunk-TK4UEOSK.js → chunk-HDDRVXX4.js} +8 -8
- package/dist/chunk-HDDRVXX4.js.map +1 -0
- package/dist/{chunk-LLQ2LLWF.js → chunk-HENLZHIT.js} +15 -5
- package/dist/chunk-HENLZHIT.js.map +1 -0
- package/dist/{chunk-N2D6GXBM.js → chunk-HINSGUA7.js} +28 -20
- package/dist/chunk-HINSGUA7.js.map +1 -0
- package/dist/{chunk-APO3DCMU.js → chunk-HLAVGJ62.js} +30 -8
- package/dist/chunk-HLAVGJ62.js.map +1 -0
- package/dist/{chunk-TPMQ3G6Z.js → chunk-HOJZMQ4J.js} +2 -2
- package/dist/chunk-HOJZMQ4J.js.map +1 -0
- package/dist/{chunk-LUDTDZLK.js → chunk-HPWVAEET.js} +33 -7
- package/dist/chunk-HPWVAEET.js.map +1 -0
- package/dist/{chunk-NZL6GGQE.js → chunk-HQ6NIBL6.js} +92 -30
- package/dist/chunk-HQ6NIBL6.js.map +1 -0
- package/dist/{chunk-UWVJF25J.js → chunk-HWVTS5NO.js} +20 -6
- package/dist/chunk-HWVTS5NO.js.map +1 -0
- package/dist/{chunk-2WWLHTZY.js → chunk-IC4GELZE.js} +2 -2
- package/dist/{chunk-QA2ZAPBU.js → chunk-IPLYGWQF.js} +28 -20
- package/dist/chunk-IPLYGWQF.js.map +1 -0
- package/dist/{chunk-A6KTB5R6.js → chunk-IQ3OI2RR.js} +3 -3
- package/dist/chunk-IQ3OI2RR.js.map +1 -0
- package/dist/{chunk-6LVVDPJ4.js → chunk-J64TK33U.js} +3 -4
- package/dist/chunk-J64TK33U.js.map +1 -0
- package/dist/{chunk-6FC5EGNV.js → chunk-JBPKEARU.js} +15 -5
- package/dist/{chunk-6FC5EGNV.js.map → chunk-JBPKEARU.js.map} +1 -1
- package/dist/{chunk-RHY3HH7P.js → chunk-JFEKNTX7.js} +125 -33
- package/dist/chunk-JFEKNTX7.js.map +1 -0
- package/dist/{chunk-TZOLIGIG.js → chunk-JJEJJ7RK.js} +4 -2
- package/dist/chunk-JJEJJ7RK.js.map +1 -0
- package/dist/{chunk-PCUKNJAZ.js → chunk-JKV57BTN.js} +2 -2
- package/dist/{chunk-EJI5XIBB.js → chunk-JLNBQWZ2.js} +55 -7
- package/dist/chunk-JLNBQWZ2.js.map +1 -0
- package/dist/{chunk-PIRJPV5T.js → chunk-JNANKJLN.js} +2 -2
- package/dist/chunk-JNANKJLN.js.map +1 -0
- package/dist/{chunk-XIG5PDM7.js → chunk-JUC24CTX.js} +8 -12
- package/dist/chunk-JUC24CTX.js.map +1 -0
- package/dist/{chunk-OIGNEXKZ.js → chunk-K5O2QY6T.js} +5 -1
- package/dist/{chunk-OIGNEXKZ.js.map → chunk-K5O2QY6T.js.map} +1 -1
- package/dist/{chunk-ZTFCYYEZ.js → chunk-KCYE2MZM.js} +3 -3
- package/dist/chunk-KCYE2MZM.js.map +1 -0
- package/dist/{chunk-JWPLJLDU.js → chunk-KD3QD3A5.js} +2 -2
- package/dist/{chunk-JWPLJLDU.js.map → chunk-KD3QD3A5.js.map} +1 -1
- package/dist/{chunk-YRMVARQP.js → chunk-KFY3SGN7.js} +49 -2
- package/dist/chunk-KFY3SGN7.js.map +1 -0
- package/dist/{chunk-CYFQJMUV.js → chunk-KIB7SDIJ.js} +15 -10
- package/dist/chunk-KIB7SDIJ.js.map +1 -0
- package/dist/{chunk-3KW65B36.js → chunk-KILOTVIF.js} +95 -48
- package/dist/chunk-KILOTVIF.js.map +1 -0
- package/dist/{chunk-MXFBBHJU.js → chunk-KJMYHC7K.js} +10 -5
- package/dist/chunk-KJMYHC7K.js.map +1 -0
- package/dist/{chunk-W3LR522O.js → chunk-KM2A35EO.js} +36 -34
- package/dist/chunk-KM2A35EO.js.map +1 -0
- package/dist/{chunk-575RMLWN.js → chunk-KXULCVOC.js} +30 -24
- package/dist/chunk-KXULCVOC.js.map +1 -0
- package/dist/{chunk-WELDCG6C.js → chunk-L227SKTB.js} +109 -36
- package/dist/chunk-L227SKTB.js.map +1 -0
- package/dist/{chunk-BVF3AGJP.js → chunk-LJBOVCQG.js} +26 -11
- package/dist/chunk-LJBOVCQG.js.map +1 -0
- package/dist/{chunk-2KI4QFHU.js → chunk-LMDRGRJ2.js} +2 -2
- package/dist/{chunk-MY6TPVXW.js → chunk-LMPHTYJC.js} +2 -2
- package/dist/{chunk-EHRTFRWW.js → chunk-LQHDIS7L.js} +10 -5
- package/dist/chunk-LQHDIS7L.js.map +1 -0
- package/dist/chunk-LUDUFZTV.js +170 -0
- package/dist/chunk-LUDUFZTV.js.map +1 -0
- package/dist/{chunk-5HRY2WRF.js → chunk-LZ3VEOU5.js} +2 -2
- package/dist/{chunk-Q7P4WJDP.js → chunk-M5T4Q2ZU.js} +1 -1
- package/dist/chunk-M5T4Q2ZU.js.map +1 -0
- package/dist/{chunk-ICRIXAP2.js → chunk-MC4FJXPA.js} +16 -6
- package/dist/chunk-MC4FJXPA.js.map +1 -0
- package/dist/{chunk-WPGJYVUH.js → chunk-MGVIEM2O.js} +23 -6
- package/dist/chunk-MGVIEM2O.js.map +1 -0
- package/dist/{chunk-NGAVDO7E.js → chunk-OADWQ5CR.js} +2 -2
- package/dist/{chunk-2NMMFZ5T.js → chunk-OD4FM2U7.js} +6 -3
- package/dist/chunk-OD4FM2U7.js.map +1 -0
- package/dist/{chunk-OZHRDTDX.js → chunk-OKTXM5H4.js} +11 -1
- package/dist/chunk-OKTXM5H4.js.map +1 -0
- package/dist/{chunk-RXDLTSWT.js → chunk-ONPLNAPX.js} +16 -7
- package/dist/chunk-ONPLNAPX.js.map +1 -0
- package/dist/{chunk-FJ43PRLT.js → chunk-ORFGK3XI.js} +20 -14
- package/dist/chunk-ORFGK3XI.js.map +1 -0
- package/dist/{chunk-DOM4GKSW.js → chunk-OZKVVUJB.js} +3 -3
- package/dist/{chunk-3TNBOMQT.js → chunk-PCI747N2.js} +13 -13
- package/dist/{chunk-3TNBOMQT.js.map → chunk-PCI747N2.js.map} +1 -1
- package/dist/{chunk-MT4HVDUZ.js → chunk-PM3QHTFT.js} +3 -3
- package/dist/{chunk-4DWOBS2A.js → chunk-PRQJ5ESM.js} +27 -2
- package/dist/{chunk-4DWOBS2A.js.map → chunk-PRQJ5ESM.js.map} +1 -1
- package/dist/chunk-PU44GBL4.js +52 -0
- package/dist/chunk-PU44GBL4.js.map +1 -0
- package/dist/{chunk-MJFNCJXV.js → chunk-Q4CAQGKQ.js} +47 -9
- package/dist/chunk-Q4CAQGKQ.js.map +1 -0
- package/dist/{chunk-U3WSW6PZ.js → chunk-QMYXNM4P.js} +90 -35
- package/dist/chunk-QMYXNM4P.js.map +1 -0
- package/dist/{chunk-XVVIG67A.js → chunk-QVJ4NWL2.js} +62 -18
- package/dist/chunk-QVJ4NWL2.js.map +1 -0
- package/dist/{chunk-NBNN5GOB.js → chunk-QY7YA7OL.js} +11 -2
- package/dist/chunk-QY7YA7OL.js.map +1 -0
- package/dist/{chunk-ZK7I7JYV.js → chunk-R3PS27B4.js} +7 -7
- package/dist/{chunk-2PRLKQAH.js → chunk-RLV3PQGH.js} +35 -19
- package/dist/chunk-RLV3PQGH.js.map +1 -0
- package/dist/{chunk-WW3QQF4H.js → chunk-ROZJACKP.js} +16 -1
- package/dist/chunk-ROZJACKP.js.map +1 -0
- package/dist/{chunk-7MNMYOFP.js → chunk-RSUYKGGZ.js} +3 -4
- package/dist/chunk-RSUYKGGZ.js.map +1 -0
- package/dist/{chunk-LT3NLYSI.js → chunk-RUZOJKNF.js} +10 -7
- package/dist/chunk-RUZOJKNF.js.map +1 -0
- package/dist/{chunk-326G7DJK.js → chunk-RW5DGAGO.js} +67 -13
- package/dist/chunk-RW5DGAGO.js.map +1 -0
- package/dist/{chunk-KOSORCJG.js → chunk-S53PKKWK.js} +63 -24
- package/dist/chunk-S53PKKWK.js.map +1 -0
- package/dist/{chunk-65PG43EQ.js → chunk-S7WU3Y3D.js} +21 -4
- package/dist/chunk-S7WU3Y3D.js.map +1 -0
- package/dist/{chunk-SKE7JYKA.js → chunk-SFXKHM7P.js} +2 -2
- package/dist/{chunk-HMDCOMYU.js → chunk-SKGV326D.js} +3 -3
- package/dist/{chunk-I5GLV3VE.js → chunk-SML26KED.js} +33 -26
- package/dist/{chunk-I5GLV3VE.js.map → chunk-SML26KED.js.map} +1 -1
- package/dist/chunk-T2PO5MUF.js +62 -0
- package/dist/chunk-T2PO5MUF.js.map +1 -0
- package/dist/{chunk-C7VW7C3F.js → chunk-TDKQGLJW.js} +3 -3
- package/dist/chunk-TDKQGLJW.js.map +1 -0
- package/dist/{chunk-3QKK7QOS.js → chunk-TERNBNJB.js} +3 -3
- package/dist/chunk-TERNBNJB.js.map +1 -0
- package/dist/{chunk-MXC3AP5I.js → chunk-TGQ2NTWH.js} +12 -7
- package/dist/chunk-TGQ2NTWH.js.map +1 -0
- package/dist/{chunk-3Y4P7RXM.js → chunk-TMSXWOBZ.js} +3 -4
- package/dist/chunk-TMSXWOBZ.js.map +1 -0
- package/dist/{chunk-3ZLVGM76.js → chunk-TTGZV5R3.js} +106 -44
- package/dist/chunk-TTGZV5R3.js.map +1 -0
- package/dist/{chunk-5UM2VJ6D.js → chunk-UEY3VB6W.js} +2 -2
- package/dist/{chunk-I6K5FBRQ.js → chunk-UI3NYK34.js} +4 -1
- package/dist/{chunk-I6K5FBRQ.js.map → chunk-UI3NYK34.js.map} +1 -1
- package/dist/{chunk-VBJ7V5SK.js → chunk-UIPDNLXA.js} +21 -8
- package/dist/chunk-UIPDNLXA.js.map +1 -0
- package/dist/{chunk-GIF42EW3.js → chunk-UP6MOYCB.js} +3 -3
- package/dist/{chunk-K4FLSOR5.js → chunk-USYGGIJZ.js} +44 -15
- package/dist/chunk-USYGGIJZ.js.map +1 -0
- package/dist/{chunk-FIT6DMX6.js → chunk-UWY7GIVS.js} +152 -54
- package/dist/chunk-UWY7GIVS.js.map +1 -0
- package/dist/{chunk-MRILGULB.js → chunk-V2RCP53Q.js} +2 -2
- package/dist/{chunk-XKECPATV.js → chunk-VFUEZZBS.js} +113 -4
- package/dist/chunk-VFUEZZBS.js.map +1 -0
- package/dist/{chunk-FSFEQI74.js → chunk-W7L6HXUC.js} +2 -2
- package/dist/{chunk-3IQ2TR4N.js → chunk-WLEB7WCG.js} +2 -2
- package/dist/{chunk-GL6I6MEQ.js → chunk-WSGF57U2.js} +3 -3
- package/dist/{chunk-KNKUID7G.js → chunk-X7Y7WX73.js} +72 -6
- package/dist/chunk-X7Y7WX73.js.map +1 -0
- package/dist/{chunk-5NPGSAVB.js → chunk-XEKAG3FM.js} +23 -5
- package/dist/chunk-XEKAG3FM.js.map +1 -0
- package/dist/{chunk-3APJ5EVB.js → chunk-XKIQZXUB.js} +41 -26
- package/dist/chunk-XKIQZXUB.js.map +1 -0
- package/dist/chunk-XKXKSQU7.js +92 -0
- package/dist/chunk-XKXKSQU7.js.map +1 -0
- package/dist/{chunk-JA3AK3PT.js → chunk-XNLXAWHX.js} +4 -4
- package/dist/{chunk-CULXMQJH.js → chunk-XPXEJRUB.js} +3 -3
- package/dist/chunk-XPXEJRUB.js.map +1 -0
- package/dist/{chunk-PZIAX57I.js → chunk-XR6DNK4U.js} +7 -4
- package/dist/chunk-XR6DNK4U.js.map +1 -0
- package/dist/{chunk-47VWKCAF.js → chunk-XSQ4SGM5.js} +33 -4
- package/dist/chunk-XSQ4SGM5.js.map +1 -0
- package/dist/{chunk-66DHUKLO.js → chunk-XSWKORGM.js} +16 -14
- package/dist/chunk-XSWKORGM.js.map +1 -0
- package/dist/{chunk-QR3C7BKQ.js → chunk-XZ4WBBB5.js} +7 -8
- package/dist/chunk-XZ4WBBB5.js.map +1 -0
- package/dist/{chunk-WNARATI3.js → chunk-Y2SXZ5KZ.js} +59 -11
- package/dist/chunk-Y2SXZ5KZ.js.map +1 -0
- package/dist/{chunk-QLLBRHAT.js → chunk-YDMVYYD2.js} +229 -264
- package/dist/chunk-YDMVYYD2.js.map +1 -0
- package/dist/{chunk-SIC6U3GZ.js → chunk-YHV3KRKS.js} +3 -3
- package/dist/{chunk-ZPKBYX2F.js → chunk-YNDLCWXS.js} +85 -9
- package/dist/chunk-YNDLCWXS.js.map +1 -0
- package/dist/{chunk-W6AQJ2PY.js → chunk-YNXOKMJP.js} +35 -16
- package/dist/chunk-YNXOKMJP.js.map +1 -0
- package/dist/{chunk-VLXA6PI2.js → chunk-YQMZ7IH2.js} +4 -4
- package/dist/{chunk-TMM4S4IJ.js → chunk-YR6GIWWY.js} +58 -8
- package/dist/chunk-YR6GIWWY.js.map +1 -0
- package/dist/{chunk-DK5LDEQM.js → chunk-YR7XMOWK.js} +39 -23
- package/dist/chunk-YR7XMOWK.js.map +1 -0
- package/dist/{chunk-U7EJOMFC.js → chunk-ZEY4KYRQ.js} +41 -14
- package/dist/chunk-ZEY4KYRQ.js.map +1 -0
- package/dist/chunk-ZFXCQPNO.js +27 -0
- package/dist/chunk-ZFXCQPNO.js.map +1 -0
- package/dist/citations.js +1 -1
- package/dist/{cli-kuh9PwZ5.d.ts → cli-CPe_2KB1.d.ts} +8 -31
- package/dist/cli.d.ts +10 -6
- package/dist/cli.js +124 -119
- package/dist/commitment-ledger.js +2 -2
- package/dist/compat/checks.js +1 -2
- package/dist/compounding/engine.d.ts +3 -2
- package/dist/compounding/engine.js +11 -11
- package/dist/compounding/preference-consolidator.d.ts +1 -0
- package/dist/compounding/preference-consolidator.js +8 -8
- package/dist/compounding/preference-consolidator.js.map +1 -1
- package/dist/compression-optimizer.d.ts +1 -0
- package/dist/compression-optimizer.js +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.js +3 -2
- package/dist/connectors/codex-materialize-runner.d.ts +1 -0
- package/dist/connectors/codex-materialize-runner.js +12 -11
- package/dist/connectors/codex-materialize.d.ts +1 -0
- package/dist/connectors/codex-materialize.js +3 -2
- package/dist/connectors/index.d.ts +1 -0
- package/dist/connectors/index.js +14 -14
- package/dist/{connectors-cli-CwbyjGR7.d.ts → connectors-cli-DbTPNj2H.d.ts} +7 -1
- package/dist/connectors-cli.d.ts +1 -1
- package/dist/connectors-cli.js +3 -1
- package/dist/consolidation-provenance-check.d.ts +1 -0
- package/dist/consolidation-provenance-check.js +2 -2
- package/dist/consolidation-undo.d.ts +1 -0
- package/dist/consolidation-undo.js +1 -1
- package/dist/contradiction/index.d.ts +3 -1
- package/dist/contradiction/index.js +3 -3
- package/dist/{contradiction-review-ATP4S6IC.js → contradiction-review-6V2LXXK6.js} +2 -2
- package/dist/{contradiction-scan-5A4IDZV5.js → contradiction-scan-GIRVC4C7.js} +3 -3
- package/dist/conversation-index/backend.d.ts +3 -1
- package/dist/conversation-index/backend.js +3 -3
- package/dist/conversation-index/chunker.d.ts +1 -0
- package/dist/conversation-index/cleanup.js +1 -1
- package/dist/conversation-index/faiss-adapter.d.ts +2 -1
- package/dist/conversation-index/faiss-adapter.js +1 -1
- package/dist/conversation-index/indexer.d.ts +5 -2
- package/dist/conversation-index/indexer.js +1 -1
- package/dist/conversation-index/search.d.ts +2 -1
- package/dist/cross-namespace-budget.js +1 -1
- package/dist/cue-anchors.js +2 -2
- package/dist/dashboard-runtime.d.ts +6 -0
- package/dist/dashboard-runtime.js +3 -3
- package/dist/day-summary.d.ts +1 -0
- package/dist/day-summary.js +2 -2
- package/dist/delinearize.d.ts +1 -0
- package/dist/direct-answer-wiring.d.ts +1 -0
- package/dist/direct-answer.d.ts +1 -0
- package/dist/{dreams-ledger-LR2NBAZE.js → dreams-ledger-3WSCI5V4.js} +5 -4
- package/dist/{dreams-ledger-LR2NBAZE.js.map → dreams-ledger-3WSCI5V4.js.map} +1 -1
- package/dist/embedding-fallback.d.ts +3 -0
- package/dist/embedding-fallback.js +2 -2
- package/dist/enrichment/index.d.ts +1 -0
- package/dist/enrichment/index.js +1 -1
- package/dist/entity-retrieval.d.ts +2 -0
- package/dist/entity-retrieval.js +9 -9
- package/dist/entity-schema.d.ts +1 -0
- package/dist/evals.js +1 -1
- package/dist/explicit-capture.d.ts +5 -3
- package/dist/explicit-capture.js +2 -2
- package/dist/extraction-judge-telemetry.d.ts +2 -0
- package/dist/extraction-judge-training.d.ts +2 -0
- package/dist/extraction-judge.d.ts +2 -0
- package/dist/extraction.d.ts +2 -0
- package/dist/extraction.js +12 -12
- package/dist/{faiss-adapter-CzPghc4C.d.ts → faiss-adapter-BHecI1fF.d.ts} +4 -1
- package/dist/fallback-llm.d.ts +11 -1
- package/dist/fallback-llm.js +8 -6
- package/dist/{first-start-migration-4MHQEOSD.js → first-start-migration-CKTCTCQI.js} +5 -5
- package/dist/graph-dashboard-diff.d.ts +4 -0
- package/dist/graph-dashboard-diff.js +1 -1
- package/dist/graph-dashboard-parser.js +1 -1
- package/dist/{graph-edge-decay-5DI5GUNL.js → graph-edge-decay-MUP5J7CC.js} +6 -6
- package/dist/graph-events.js +1 -1
- package/dist/graph-snapshot.js +3 -3
- package/dist/graph.js +2 -2
- package/dist/harmonic-retrieval.js +4 -4
- package/dist/identity-continuity.d.ts +1 -0
- package/dist/importance.d.ts +1 -0
- package/dist/importers/index.d.ts +244 -0
- package/dist/importers/index.js +20 -0
- package/dist/index.d.ts +20 -350
- package/dist/index.js +885 -562
- package/dist/index.js.map +1 -1
- package/dist/intent.d.ts +1 -0
- package/dist/lcm/archive.d.ts +2 -2
- package/dist/lcm/archive.js +2 -2
- package/dist/lcm/engine.d.ts +3 -2
- package/dist/lcm/engine.js +6 -6
- package/dist/lcm/index.d.ts +1 -0
- package/dist/lcm/index.js +8 -8
- package/dist/lcm/recall.js +1 -1
- package/dist/lcm/summarizer.js +3 -3
- package/dist/lcm/tools.d.ts +1 -0
- package/dist/lifecycle.d.ts +1 -0
- package/dist/live-connectors-runner.d.ts +1 -0
- package/dist/live-connectors-runner.js +6 -6
- package/dist/local-llm.d.ts +1 -0
- package/dist/local-llm.js +2 -2
- package/dist/maintenance/archive-observations.js +1 -1
- package/dist/maintenance/memory-governance.d.ts +3 -1
- package/dist/maintenance/memory-governance.js +10 -8
- package/dist/maintenance/migrate-observations.js +3 -2
- package/dist/maintenance/observation-ledger-utils.d.ts +3 -0
- package/dist/maintenance/observation-ledger-utils.js +2 -1
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -1
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +11 -8
- package/dist/maintenance/rebuild-memory-projection.d.ts +2 -1
- package/dist/maintenance/rebuild-memory-projection.js +13 -10
- package/dist/maintenance/rebuild-observations.d.ts +1 -0
- package/dist/maintenance/rebuild-observations.js +3 -2
- package/dist/mcp-memory-inspector-app.d.ts +7 -4
- package/dist/mcp-memory-inspector-app.js +1 -1
- package/dist/memory-action-policy.d.ts +1 -0
- package/dist/memory-cache.d.ts +1 -0
- package/dist/memory-cache.js +1 -1
- package/dist/memory-lifecycle-ledger-utils.d.ts +1 -0
- package/dist/memory-projection-store.d.ts +1 -0
- package/dist/memory-projection-store.js +1 -1
- package/dist/memory-provenance.d.ts +1 -0
- package/dist/memory-worth-outcomes.d.ts +1 -0
- package/dist/migrate/from-engram.js +2 -2
- package/dist/{migrate-from-identity-anchor-G27MCD6A.js → migrate-from-identity-anchor-EB4XI4Q2.js} +2 -2
- package/dist/model-registry.js +1 -1
- package/dist/models-json.d.ts +1 -0
- package/dist/namespaces/migrate.d.ts +3 -0
- package/dist/namespaces/migrate.js +26 -24
- package/dist/namespaces/principal.d.ts +1 -0
- package/dist/namespaces/principal.js +2 -1
- package/dist/namespaces/search.d.ts +2 -1
- package/dist/namespaces/search.js +17 -15
- package/dist/namespaces/storage.d.ts +4 -2
- package/dist/namespaces/storage.js +10 -9
- package/dist/native-knowledge.d.ts +1 -0
- package/dist/native-knowledge.js +1 -1
- package/dist/negative.js +1 -1
- package/dist/network/webdav.d.ts +16 -1
- package/dist/network/webdav.js +5 -3
- package/dist/objective-state-writers.js +4 -4
- package/dist/objective-state.js +2 -2
- package/dist/offline-sync.d.ts +4 -0
- package/dist/offline-sync.js +4 -4
- package/dist/operator-toolkit.d.ts +4 -1
- package/dist/operator-toolkit.js +37 -34
- package/dist/opik-exporter.js +1 -1
- package/dist/{orchestrator-DuWl9Hwx.d.ts → orchestrator-Co9nxRLF.d.ts} +4 -74
- package/dist/orchestrator.d.ts +5 -3
- package/dist/orchestrator.js +101 -98
- package/dist/page-versioning.js +1 -1
- package/dist/path-X2K5XCHL.js +9 -0
- package/dist/patterns-cli.d.ts +1 -0
- package/dist/peers/index.d.ts +328 -0
- package/dist/{peers-HCVGHMAE.js → peers/index.js} +4 -4
- package/dist/pipeline-D18UAKlN.d.ts +32 -0
- package/dist/plugin-entry-resolver.d.ts +9 -0
- package/dist/plugin-entry-resolver.js +8 -0
- package/dist/plugin-entry-resolver.js.map +1 -0
- package/dist/plugin-id.d.ts +2 -21
- package/dist/plugin-id.js +33 -4
- package/dist/plugin-id.js.map +1 -1
- package/dist/policy-runtime.d.ts +4 -0
- package/dist/policy-runtime.js +1 -1
- package/dist/profiling.js +1 -1
- package/dist/qmd-recall-cache.d.ts +1 -0
- package/dist/qmd.d.ts +2 -1
- package/dist/qmd.js +3 -3
- package/dist/recall-disclosure-escalation.d.ts +1 -0
- package/dist/recall-explain-renderer.d.ts +1 -0
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-state.d.ts +8 -1
- package/dist/recall-state.js +2 -1
- package/dist/recall-tag-filter.d.ts +1 -0
- package/dist/recall-xray-cli.d.ts +1 -0
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +1 -0
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +1 -0
- package/dist/recall-xray.js +2 -2
- package/dist/relevance.d.ts +7 -1
- package/dist/relevance.js +2 -1
- package/dist/replay/normalizers/chatgpt.js +2 -2
- package/dist/replay/normalizers/claude.js +2 -2
- package/dist/replay/normalizers/openclaw.js +2 -2
- package/dist/replay/normalizers/shared.js +1 -1
- package/dist/replay/runner.js +1 -1
- package/dist/rerank.js +1 -1
- package/dist/{resolution-B7FNQSSP.js → resolution-ZY7VM6WS.js} +3 -3
- package/dist/resolution-ZY7VM6WS.js.map +1 -0
- package/dist/resolve-auth-token.d.ts +1 -0
- package/dist/resolve-auth-token.js +1 -1
- package/dist/resolve-provider-secret.d.ts +19 -29
- package/dist/resolve-provider-secret.js +2 -6
- package/dist/resume-bundles.js +10 -9
- package/dist/retrieval-agents.d.ts +2 -1
- package/dist/retrieval-agents.js +2 -1
- package/dist/retrieval-tiers.d.ts +1 -0
- package/dist/routing/engine.d.ts +1 -0
- package/dist/routing/store.d.ts +3 -0
- package/dist/routing/store.js +1 -1
- package/dist/runtime/env.js +1 -1
- package/dist/schemas.d.ts +191 -17
- package/dist/schemas.js +1 -1
- package/dist/sdk-compat.js +1 -1
- package/dist/search/document-scanner.js +1 -1
- package/dist/search/embed-helper.d.ts +7 -2
- package/dist/search/embed-helper.js +3 -1
- package/dist/search/factory.d.ts +2 -1
- package/dist/search/factory.js +15 -14
- package/dist/search/index.d.ts +2 -1
- package/dist/search/index.js +21 -20
- package/dist/search/lancedb-backend.d.ts +8 -7
- package/dist/search/lancedb-backend.js +4 -2
- package/dist/search/meilisearch-backend.d.ts +8 -7
- package/dist/search/meilisearch-backend.js +4 -2
- package/dist/search/noop-backend.d.ts +2 -1
- package/dist/search/noop-backend.js +1 -1
- package/dist/search/orama-backend.d.ts +10 -8
- package/dist/search/orama-backend.js +8 -4
- package/dist/search/port.d.ts +2 -1
- package/dist/search/remote-backend.d.ts +2 -1
- package/dist/search/remote-backend.js +1 -1
- package/dist/secure-store/index.d.ts +16 -3
- package/dist/secure-store/index.js +2 -2
- package/dist/{semantic-VwGI14Ok.d.ts → semantic-SLAa_prH.d.ts} +5 -3
- package/dist/semantic-consolidation.d.ts +1 -0
- package/dist/semantic-consolidation.js +14 -13
- package/dist/semantic-rule-promotion.js +8 -8
- package/dist/semantic-rule-verifier.d.ts +1 -0
- package/dist/semantic-rule-verifier.js +8 -8
- package/dist/session-integrity.d.ts +1 -0
- package/dist/session-integrity.js +1 -1
- package/dist/session-observer-bands.d.ts +1 -0
- package/dist/session-observer-state.d.ts +6 -1
- package/dist/session-observer-state.js +1 -1
- package/dist/shared-context/manager.d.ts +5 -0
- package/dist/shared-context/manager.js +3 -3
- package/dist/signal.d.ts +1 -0
- package/dist/signal.js +1 -1
- package/dist/source-attribution.js +1 -1
- package/dist/state-store-4QZISH3J.js +30 -0
- package/dist/state-store-4QZISH3J.js.map +1 -0
- package/dist/storage-C4DX8CuG.d.ts +157 -0
- package/dist/storage.d.ts +2 -0
- package/dist/storage.js +7 -7
- package/dist/store-contract.js +1 -1
- package/dist/summarizer.d.ts +1 -0
- package/dist/summarizer.js +7 -7
- package/dist/summary-snapshot.d.ts +1 -0
- package/dist/surfaces/dreams.js +48 -17
- package/dist/surfaces/dreams.js.map +1 -1
- package/dist/temporal-supersession.d.ts +1 -0
- package/dist/temporal-supersession.js +1 -1
- package/dist/temporal-validity.d.ts +1 -0
- package/dist/threading.d.ts +1 -0
- package/dist/tier-migration.d.ts +1 -0
- package/dist/tier-routing.d.ts +1 -0
- package/dist/{tier-stats-62ZVDFKS.js → tier-stats-SKML2OSF.js} +5 -5
- package/dist/tmt.js +1 -1
- package/dist/tokens.js +2 -2
- package/dist/topics.d.ts +1 -0
- package/dist/{trace-C5ETWBEF.js → trace-WM7V4CKI.js} +31 -1
- package/dist/trace-WM7V4CKI.js.map +1 -0
- package/dist/transcript.d.ts +1 -0
- package/dist/transcript.js +2 -2
- package/dist/transfer/autodetect.js +7 -7
- package/dist/transfer/backup.js +5 -5
- package/dist/transfer/capsule-export.js +5 -5
- package/dist/transfer/capsule-import.d.ts +6 -0
- package/dist/transfer/capsule-import.js +4 -4
- package/dist/transfer/export-json.js +3 -3
- package/dist/transfer/export-md.js +3 -3
- package/dist/transfer/export-sqlite.js +3 -3
- package/dist/transfer/fs-utils.d.ts +2 -1
- package/dist/transfer/fs-utils.js +5 -3
- package/dist/transfer/import-json.js +3 -3
- package/dist/transfer/import-md.js +3 -3
- package/dist/transfer/import-sqlite.js +3 -3
- package/dist/trust-zones.js +2 -2
- package/dist/types-B1VHaf2w.d.ts +126 -0
- package/dist/types-BliCnURB.d.ts +83 -0
- package/dist/types.d.ts +35 -0
- package/dist/types.js +1 -1
- package/dist/utility-learner.js +3 -3
- package/dist/utility-runtime.d.ts +1 -0
- package/dist/utility-runtime.js +4 -4
- package/dist/utility-telemetry.js +2 -2
- package/dist/verified-recall.js +9 -9
- package/dist/work/board.js +2 -2
- package/dist/work/boundary.js +1 -1
- package/dist/work/storage.d.ts +5 -0
- package/dist/work/storage.js +1 -1
- package/dist/work-product-ledger.js +2 -2
- package/package.json +74 -3
- package/scripts/ensure-better-sqlite3.mjs +8 -7
- package/scripts/faiss_index.py +141 -29
- package/src/access-cli.test.ts +87 -2
- package/src/access-cli.ts +59 -5
- package/src/access-http.test.ts +150 -0
- package/src/access-http.ts +103 -34
- package/src/access-idempotency.ts +136 -3
- package/src/access-mcp.test.ts +155 -0
- package/src/access-mcp.ts +116 -30
- package/src/access-schema.ts +22 -4
- package/src/access-service-namespace.test.ts +9 -9
- package/src/access-service-project-tag.test.ts +37 -0
- package/src/access-service.ts +15 -14
- package/src/active-recall.test.ts +29 -1
- package/src/active-recall.ts +11 -7
- package/src/adapters/claude-code.ts +7 -8
- package/src/adapters/codex.ts +6 -7
- package/src/adapters/hermes.ts +1 -5
- package/src/adapters/registry.test.ts +63 -0
- package/src/adapters/registry.ts +10 -0
- package/src/adapters/replit.ts +5 -7
- package/src/adapters/types.ts +24 -1
- package/src/behavior-signals.ts +1 -1
- package/src/binary-lifecycle/backend.ts +16 -4
- package/src/binary-lifecycle/pipeline.test.ts +149 -0
- package/src/binary-lifecycle/pipeline.ts +49 -7
- package/src/binary-lifecycle/scanner.ts +19 -4
- package/src/boxes.ts +119 -32
- package/src/buffer-session.test.ts +28 -0
- package/src/buffer.ts +10 -14
- package/src/bulk-import/types.ts +10 -0
- package/src/calibration.test.ts +99 -0
- package/src/calibration.ts +57 -13
- package/src/causal-consolidation.test.ts +214 -0
- package/src/causal-consolidation.ts +131 -14
- package/src/causal-retrieval.ts +16 -3
- package/src/citations.test.ts +75 -0
- package/src/citations.ts +19 -6
- package/src/cli.ts +134 -109
- package/src/coding/coding-namespace.test.ts +7 -0
- package/src/coding/coding-namespace.ts +8 -0
- package/src/coding/review-context.test.ts +30 -0
- package/src/coding/review-context.ts +79 -9
- package/src/coding/wire-coding-context.test.ts +16 -0
- package/src/compat/checks.test.ts +33 -0
- package/src/compat/checks.ts +64 -4
- package/src/compounding/engine.ts +2 -2
- package/src/compounding/preference-consolidator.test.ts +47 -0
- package/src/compounding/preference-consolidator.ts +8 -8
- package/src/compression-optimizer.ts +5 -2
- package/src/config.test.ts +34 -2
- package/src/config.ts +62 -18
- package/src/connectors/codex-materialize-runner.ts +4 -3
- package/src/connectors/codex-materialize.ts +149 -34
- package/src/connectors/index.test.ts +144 -7
- package/src/connectors/index.ts +86 -15
- package/src/connectors/live/github.test.ts +47 -0
- package/src/connectors/live/github.ts +29 -1
- package/src/connectors/live/index.ts +2 -0
- package/src/connectors/live/live-connectors.test.ts +359 -73
- package/src/connectors/live/notion.test.ts +84 -0
- package/src/connectors/live/notion.ts +18 -1
- package/src/connectors/live/state-store.ts +419 -38
- package/src/connectors/weclone-installer.test.ts +16 -18
- package/src/connectors-cli.ts +19 -0
- package/src/console/trace.test.ts +28 -0
- package/src/console/trace.ts +42 -5
- package/src/contradiction/contradiction-judge.test.ts +49 -0
- package/src/contradiction/contradiction-judge.ts +15 -5
- package/src/contradiction/contradiction-review.ts +31 -7
- package/src/contradiction/contradiction-scan.ts +28 -18
- package/src/contradiction/contradiction.test.ts +237 -1
- package/src/contradiction/resolution.ts +43 -4
- package/src/conversation-index/backend.ts +13 -5
- package/src/conversation-index/cleanup.ts +25 -4
- package/src/conversation-index/faiss-adapter.ts +24 -15
- package/src/conversation-index/indexer.test.ts +71 -10
- package/src/conversation-index/indexer.ts +22 -3
- package/src/cross-namespace-budget.test.ts +59 -0
- package/src/cross-namespace-budget.ts +15 -7
- package/src/curation/index.ts +18 -17
- package/src/dashboard-runtime.test.ts +98 -0
- package/src/dashboard-runtime.ts +96 -6
- package/src/dedup/index.test.ts +133 -0
- package/src/dedup/index.ts +73 -10
- package/src/dedup/semantic.test.ts +77 -2
- package/src/dedup/semantic.ts +26 -6
- package/src/embedding-fallback.ts +47 -15
- package/src/enrichment/audit.ts +8 -1
- package/src/enrichment/pipeline.ts +21 -13
- package/src/enrichment/web-search-provider.ts +1 -6
- package/src/entity-retrieval.ts +57 -6
- package/src/evals.ts +22 -13
- package/src/explicit-capture.test.ts +40 -0
- package/src/explicit-capture.ts +14 -2
- package/src/extraction.ts +42 -30
- package/src/fallback-llm.ts +35 -2
- package/src/graph-dashboard-diff.test.ts +57 -0
- package/src/graph-dashboard-diff.ts +24 -2
- package/src/graph-dashboard-parser.test.ts +31 -0
- package/src/graph-dashboard-parser.ts +4 -1
- package/src/graph-events.ts +6 -4
- package/src/graph.test.ts +69 -0
- package/src/graph.ts +7 -4
- package/src/importers/base.test.ts +70 -0
- package/src/importers/base.ts +56 -7
- package/src/index.ts +5 -2
- package/src/lcm/archive.ts +65 -16
- package/src/lcm/engine.ts +27 -8
- package/src/lcm/recall.ts +5 -5
- package/src/lcm-engine.test.ts +87 -1
- package/src/lcm-recall.test.ts +71 -0
- package/src/live-connectors-runner.ts +100 -36
- package/src/maintenance/archive-observations.ts +24 -3
- package/src/maintenance/atomic-file.ts +85 -0
- package/src/maintenance/dreams-ledger.ts +15 -8
- package/src/maintenance/memory-governance.test.ts +53 -0
- package/src/maintenance/memory-governance.ts +15 -5
- package/src/maintenance/observation-ledger-utils.ts +6 -5
- package/src/maintenance/purge.test.ts +64 -0
- package/src/maintenance/rebuild-memory-lifecycle-ledger.ts +22 -9
- package/src/maintenance/rebuild-memory-projection.ts +22 -9
- package/src/maintenance/rebuild-observations.ts +7 -3
- package/src/mcp-memory-inspector-app.ts +26 -3
- package/src/memory-cache.test.ts +19 -0
- package/src/memory-cache.ts +1 -0
- package/src/memory-extension/codex-publisher.ts +25 -4
- package/src/memory-extension-host/host-discovery.test.ts +69 -0
- package/src/memory-extension-host/host-discovery.ts +63 -6
- package/src/memory-projection-store.ts +114 -62
- package/src/message-parts/index.ts +46 -31
- package/src/message-parts/message-parts.test.ts +77 -0
- package/src/migrate/from-engram.ts +68 -14
- package/src/model-registry.test.ts +38 -0
- package/src/model-registry.ts +12 -7
- package/src/namespaces/identity.test.ts +66 -0
- package/src/namespaces/identity.ts +23 -0
- package/src/namespaces/migrate.test.ts +62 -0
- package/src/namespaces/migrate.ts +82 -14
- package/src/namespaces/principal.test.ts +37 -1
- package/src/namespaces/principal.ts +18 -7
- package/src/namespaces/search.test.ts +96 -7
- package/src/namespaces/search.ts +32 -25
- package/src/namespaces/storage.ts +93 -11
- package/src/native-knowledge.ts +23 -3
- package/src/negative.ts +50 -5
- package/src/network/webdav.ts +177 -58
- package/src/offline-sync.test.ts +128 -18
- package/src/offline-sync.ts +41 -7
- package/src/onboarding/index.test.ts +105 -0
- package/src/onboarding/index.ts +17 -5
- package/src/operator-toolkit.ts +43 -5
- package/src/orchestrator.ts +120 -27
- package/src/page-versioning.ts +31 -5
- package/src/peers/peers.test.ts +70 -0
- package/src/peers/storage.ts +32 -3
- package/src/plugin-entry-resolver.test.ts +60 -0
- package/src/plugin-entry-resolver.ts +48 -0
- package/src/plugin-id.test.ts +38 -0
- package/src/plugin-id.ts +31 -64
- package/src/policy-runtime.test.ts +75 -0
- package/src/policy-runtime.ts +32 -3
- package/src/procedural/procedure-miner.test.ts +152 -0
- package/src/procedural/procedure-miner.ts +124 -19
- package/src/profiling.test.ts +23 -0
- package/src/profiling.ts +10 -1
- package/src/projection/index.test.ts +253 -0
- package/src/projection/index.ts +159 -18
- package/src/qmd-client.test.ts +45 -0
- package/src/qmd.ts +13 -10
- package/src/recall-disclosure.test.ts +15 -1
- package/src/recall-state.ts +24 -5
- package/src/relevance.ts +24 -5
- package/src/replay/normalizers/chatgpt.ts +14 -4
- package/src/replay/normalizers/claude.ts +8 -3
- package/src/replay/normalizers/openclaw.ts +35 -12
- package/src/replay/normalizers/replay-normalizers.test.ts +65 -0
- package/src/replay/normalizers/shared.ts +4 -1
- package/src/replay/runner.ts +1 -1
- package/src/rerank.test.ts +41 -1
- package/src/rerank.ts +2 -2
- package/src/resolve-auth-token.test.ts +29 -0
- package/src/resolve-auth-token.ts +12 -7
- package/src/resolve-provider-secret.test.ts +78 -22
- package/src/resolve-provider-secret.ts +55 -223
- package/src/retrieval-agents.ts +51 -14
- package/src/review/index.test.ts +75 -1
- package/src/review/index.ts +88 -30
- package/src/routing/store.ts +36 -6
- package/src/runtime/env.test.ts +73 -0
- package/src/runtime/env.ts +7 -11
- package/src/schemas.ts +16 -1
- package/src/search/abort.ts +18 -0
- package/src/search/document-scanner.test.ts +80 -0
- package/src/search/document-scanner.ts +51 -9
- package/src/search/embed-helper.ts +19 -6
- package/src/search/factory.ts +9 -5
- package/src/search/lancedb-backend.ts +66 -23
- package/src/search/meilisearch-backend.ts +39 -13
- package/src/search/noop-backend.ts +1 -1
- package/src/search/orama-backend.test.ts +27 -0
- package/src/search/orama-backend.ts +69 -16
- package/src/search/port.ts +4 -1
- package/src/search/remote-backend.ts +1 -1
- package/src/secure-store/cli-handlers.ts +70 -6
- package/src/secure-store/cli-renderer.ts +13 -7
- package/src/secure-store/secure-fs.ts +11 -5
- package/src/secure-store/secure-store.test.ts +70 -0
- package/src/semantic-consolidation.test.ts +45 -0
- package/src/semantic-consolidation.ts +3 -3
- package/src/session-integrity.test.ts +98 -0
- package/src/session-integrity.ts +51 -1
- package/src/session-observer-state.ts +108 -41
- package/src/shared-context/manager.ts +93 -15
- package/src/signal.test.ts +14 -0
- package/src/signal.ts +8 -1
- package/src/source-attribution.test.ts +8 -0
- package/src/source-attribution.ts +24 -2
- package/src/spaces/index.test.ts +93 -0
- package/src/spaces/index.ts +75 -9
- package/src/storage.ts +14 -1
- package/src/store-contract.test.ts +35 -0
- package/src/store-contract.ts +39 -5
- package/src/summarizer.ts +24 -18
- package/src/summary-snapshot.test.ts +77 -0
- package/src/surfaces/dreams.test.ts +73 -0
- package/src/surfaces/dreams.ts +53 -19
- package/src/sync/index.ts +42 -17
- package/src/taxonomy/taxonomy-loader.ts +43 -4
- package/src/temporal-supersession.test.ts +67 -0
- package/src/temporal-supersession.ts +8 -0
- package/src/tmt.test.ts +50 -0
- package/src/tmt.ts +35 -11
- package/src/tokens.test.ts +18 -0
- package/src/tokens.ts +7 -0
- package/src/training-export/converter.test.ts +55 -2
- package/src/training-export/converter.ts +36 -10
- package/src/training-export/registry.test.ts +17 -0
- package/src/training-export/registry.ts +19 -1
- package/src/transcript.ts +2 -2
- package/src/transfer/backup.ts +18 -7
- package/src/transfer/capsule-crypto.ts +105 -21
- package/src/transfer/capsule-encrypt.test.ts +106 -7
- package/src/transfer/capsule-export.ts +23 -14
- package/src/transfer/capsule-import.ts +11 -2
- package/src/transfer/exclusions.ts +7 -0
- package/src/transfer/export-sqlite.ts +14 -13
- package/src/transfer/fs-utils.ts +52 -1
- package/src/transfer/import-json.ts +12 -7
- package/src/transfer/import-md.ts +5 -5
- package/src/transfer/import-sqlite.ts +4 -5
- package/src/trust-zones.ts +1 -1
- package/src/types.ts +25 -0
- package/src/utility-telemetry.ts +1 -1
- package/src/utils/category-dir.test.ts +15 -0
- package/src/utils/category-dir.ts +3 -1
- package/src/work/boundary.ts +30 -18
- package/src/work/storage.ts +116 -38
- package/src/work-product-ledger.ts +1 -1
- package/dist/chunk-25MQ7IHJ.js.map +0 -1
- package/dist/chunk-2IWUMAES.js.map +0 -1
- package/dist/chunk-2NMMFZ5T.js.map +0 -1
- package/dist/chunk-2PRLKQAH.js.map +0 -1
- package/dist/chunk-326G7DJK.js.map +0 -1
- package/dist/chunk-3APJ5EVB.js.map +0 -1
- package/dist/chunk-3KW65B36.js.map +0 -1
- package/dist/chunk-3QKK7QOS.js.map +0 -1
- package/dist/chunk-3SLRNYNG.js.map +0 -1
- package/dist/chunk-3VAL7ZL2.js.map +0 -1
- package/dist/chunk-3Y4P7RXM.js.map +0 -1
- package/dist/chunk-3ZLVGM76.js.map +0 -1
- package/dist/chunk-43PJZYGL.js.map +0 -1
- package/dist/chunk-47VWKCAF.js.map +0 -1
- package/dist/chunk-4KGVTPGD.js.map +0 -1
- package/dist/chunk-5375UYTQ.js.map +0 -1
- package/dist/chunk-56K5QLHX.js.map +0 -1
- package/dist/chunk-575RMLWN.js.map +0 -1
- package/dist/chunk-5NPGSAVB.js.map +0 -1
- package/dist/chunk-5RGLBDQF.js.map +0 -1
- package/dist/chunk-65PG43EQ.js.map +0 -1
- package/dist/chunk-66DHUKLO.js.map +0 -1
- package/dist/chunk-6LVVDPJ4.js.map +0 -1
- package/dist/chunk-76FLAAUC.js.map +0 -1
- package/dist/chunk-77H5NU3M.js.map +0 -1
- package/dist/chunk-7MNMYOFP.js.map +0 -1
- package/dist/chunk-7OZ53EXP.js.map +0 -1
- package/dist/chunk-7SEAZFFB.js.map +0 -1
- package/dist/chunk-A6KTB5R6.js.map +0 -1
- package/dist/chunk-AGZQD76C.js.map +0 -1
- package/dist/chunk-APO3DCMU.js.map +0 -1
- package/dist/chunk-BVF3AGJP.js.map +0 -1
- package/dist/chunk-C5BCH4ZS.js.map +0 -1
- package/dist/chunk-C7VW7C3F.js.map +0 -1
- package/dist/chunk-CULXMQJH.js.map +0 -1
- package/dist/chunk-CYFQJMUV.js.map +0 -1
- package/dist/chunk-D654IBA6.js +0 -61
- package/dist/chunk-D654IBA6.js.map +0 -1
- package/dist/chunk-DGXUHMOV.js.map +0 -1
- package/dist/chunk-DINWEURR.js.map +0 -1
- package/dist/chunk-DK5LDEQM.js.map +0 -1
- package/dist/chunk-EABGC2TL.js.map +0 -1
- package/dist/chunk-EHRTFRWW.js.map +0 -1
- package/dist/chunk-EJI5XIBB.js.map +0 -1
- package/dist/chunk-FAAFWE4G.js.map +0 -1
- package/dist/chunk-FAJ7FZYM.js +0 -11
- package/dist/chunk-FAJ7FZYM.js.map +0 -1
- package/dist/chunk-FDU6HUUL.js +0 -147
- package/dist/chunk-FDU6HUUL.js.map +0 -1
- package/dist/chunk-FIT6DMX6.js.map +0 -1
- package/dist/chunk-FJ43PRLT.js.map +0 -1
- package/dist/chunk-FLTNHQK6.js +0 -262
- package/dist/chunk-FLTNHQK6.js.map +0 -1
- package/dist/chunk-GDFS42HT.js.map +0 -1
- package/dist/chunk-H3ME6L6D.js.map +0 -1
- package/dist/chunk-HXXBL2KD.js.map +0 -1
- package/dist/chunk-ICRIXAP2.js.map +0 -1
- package/dist/chunk-IQT3XTKW.js.map +0 -1
- package/dist/chunk-JR4ZC3G4.js.map +0 -1
- package/dist/chunk-K4FLSOR5.js.map +0 -1
- package/dist/chunk-KNKUID7G.js.map +0 -1
- package/dist/chunk-KOSORCJG.js.map +0 -1
- package/dist/chunk-LIRZNNUP.js.map +0 -1
- package/dist/chunk-LLQ2LLWF.js.map +0 -1
- package/dist/chunk-LPMVBPA3.js +0 -236
- package/dist/chunk-LPMVBPA3.js.map +0 -1
- package/dist/chunk-LT3NLYSI.js.map +0 -1
- package/dist/chunk-LUDTDZLK.js.map +0 -1
- package/dist/chunk-MJFNCJXV.js.map +0 -1
- package/dist/chunk-MSWG7JI6.js.map +0 -1
- package/dist/chunk-MXC3AP5I.js.map +0 -1
- package/dist/chunk-MXFBBHJU.js.map +0 -1
- package/dist/chunk-MZH6EHNR.js.map +0 -1
- package/dist/chunk-N2D6GXBM.js.map +0 -1
- package/dist/chunk-NBNN5GOB.js.map +0 -1
- package/dist/chunk-NMZY542O.js.map +0 -1
- package/dist/chunk-NZL6GGQE.js.map +0 -1
- package/dist/chunk-OZHRDTDX.js.map +0 -1
- package/dist/chunk-PIRJPV5T.js.map +0 -1
- package/dist/chunk-PZIAX57I.js.map +0 -1
- package/dist/chunk-Q7P4WJDP.js.map +0 -1
- package/dist/chunk-QA2ZAPBU.js.map +0 -1
- package/dist/chunk-QDZ2RLEC.js.map +0 -1
- package/dist/chunk-QLLBRHAT.js.map +0 -1
- package/dist/chunk-QR3C7BKQ.js.map +0 -1
- package/dist/chunk-RHY3HH7P.js.map +0 -1
- package/dist/chunk-RK2Y4XOM.js.map +0 -1
- package/dist/chunk-RR2PKP3I.js +0 -63
- package/dist/chunk-RR2PKP3I.js.map +0 -1
- package/dist/chunk-RRF5UOBJ.js.map +0 -1
- package/dist/chunk-RXDLTSWT.js.map +0 -1
- package/dist/chunk-RYED3SPJ.js +0 -42
- package/dist/chunk-RYED3SPJ.js.map +0 -1
- package/dist/chunk-S7KDBTWT.js.map +0 -1
- package/dist/chunk-TK4UEOSK.js.map +0 -1
- package/dist/chunk-TMM4S4IJ.js.map +0 -1
- package/dist/chunk-TMQLARTH.js.map +0 -1
- package/dist/chunk-TPB3I2AC.js.map +0 -1
- package/dist/chunk-TPMQ3G6Z.js.map +0 -1
- package/dist/chunk-TPU5L5EY.js.map +0 -1
- package/dist/chunk-TZOLIGIG.js.map +0 -1
- package/dist/chunk-U3WSW6PZ.js.map +0 -1
- package/dist/chunk-U4SCL7B7.js.map +0 -1
- package/dist/chunk-U66YHYC7.js +0 -31
- package/dist/chunk-U66YHYC7.js.map +0 -1
- package/dist/chunk-U7EJOMFC.js.map +0 -1
- package/dist/chunk-UWVJF25J.js.map +0 -1
- package/dist/chunk-VBJ7V5SK.js.map +0 -1
- package/dist/chunk-W3LR522O.js.map +0 -1
- package/dist/chunk-W4L6CZKA.js.map +0 -1
- package/dist/chunk-W6AQJ2PY.js.map +0 -1
- package/dist/chunk-WELDCG6C.js.map +0 -1
- package/dist/chunk-WNARATI3.js.map +0 -1
- package/dist/chunk-WPGJYVUH.js.map +0 -1
- package/dist/chunk-WW3QQF4H.js.map +0 -1
- package/dist/chunk-XIG5PDM7.js.map +0 -1
- package/dist/chunk-XKECPATV.js.map +0 -1
- package/dist/chunk-XKLD5OK4.js.map +0 -1
- package/dist/chunk-XSZEP4SF.js.map +0 -1
- package/dist/chunk-XVVIG67A.js.map +0 -1
- package/dist/chunk-XYIK4LF6.js.map +0 -1
- package/dist/chunk-YRMVARQP.js.map +0 -1
- package/dist/chunk-YROHKYBY.js.map +0 -1
- package/dist/chunk-YU5KIWYQ.js.map +0 -1
- package/dist/chunk-ZAVUCJ4H.js.map +0 -1
- package/dist/chunk-ZPKBYX2F.js.map +0 -1
- package/dist/chunk-ZTFCYYEZ.js.map +0 -1
- package/dist/chunk-ZYVPLJ4T.js.map +0 -1
- package/dist/path-MR5JPYOP.js +0 -9
- package/dist/state-store-VZU2IA53.js +0 -16
- package/dist/trace-C5ETWBEF.js.map +0 -1
- /package/dist/{capsule-crypto-5CYAGVC5.js.map → bulk-import/index.js.map} +0 -0
- /package/dist/{contradiction-review-ATP4S6IC.js.map → capsule-crypto-7FJQINUR.js.map} +0 -0
- /package/dist/{capsule-merge-4MGKE7C5.js.map → capsule-merge-T2JRE46P.js.map} +0 -0
- /package/dist/{chunk-SAZS2QZB.js.map → chunk-23UORJ4S.js.map} +0 -0
- /package/dist/{chunk-PK7H5L6Y.js.map → chunk-2NM43EWN.js.map} +0 -0
- /package/dist/{chunk-PYXS46O7.js.map → chunk-3BP57I6J.js.map} +0 -0
- /package/dist/{chunk-FBYESMQ2.js.map → chunk-3C5RPJAX.js.map} +0 -0
- /package/dist/{chunk-N53K2EXC.js.map → chunk-6VF75M3X.js.map} +0 -0
- /package/dist/{chunk-6H2TESSP.js.map → chunk-765K3SAT.js.map} +0 -0
- /package/dist/{chunk-EDTHC6UD.js.map → chunk-77NAFXUD.js.map} +0 -0
- /package/dist/{chunk-MGKYQQYF.js.map → chunk-7Q3RCKAQ.js.map} +0 -0
- /package/dist/{chunk-34DQE4KF.js.map → chunk-CO7ZO4TU.js.map} +0 -0
- /package/dist/{chunk-ZKSK55RC.js.map → chunk-ETUPBUHB.js.map} +0 -0
- /package/dist/{chunk-QRNI5JBH.js.map → chunk-EYIEWJNI.js.map} +0 -0
- /package/dist/{chunk-C6QPK5GG.js.map → chunk-FZZ2QTJI.js.map} +0 -0
- /package/dist/{chunk-3JXBXXM2.js.map → chunk-G4IAEX6D.js.map} +0 -0
- /package/dist/{chunk-2WWLHTZY.js.map → chunk-IC4GELZE.js.map} +0 -0
- /package/dist/{chunk-PCUKNJAZ.js.map → chunk-JKV57BTN.js.map} +0 -0
- /package/dist/{chunk-2KI4QFHU.js.map → chunk-LMDRGRJ2.js.map} +0 -0
- /package/dist/{chunk-MY6TPVXW.js.map → chunk-LMPHTYJC.js.map} +0 -0
- /package/dist/{chunk-5HRY2WRF.js.map → chunk-LZ3VEOU5.js.map} +0 -0
- /package/dist/{chunk-NGAVDO7E.js.map → chunk-OADWQ5CR.js.map} +0 -0
- /package/dist/{chunk-DOM4GKSW.js.map → chunk-OZKVVUJB.js.map} +0 -0
- /package/dist/{chunk-MT4HVDUZ.js.map → chunk-PM3QHTFT.js.map} +0 -0
- /package/dist/{chunk-ZK7I7JYV.js.map → chunk-R3PS27B4.js.map} +0 -0
- /package/dist/{chunk-SKE7JYKA.js.map → chunk-SFXKHM7P.js.map} +0 -0
- /package/dist/{chunk-HMDCOMYU.js.map → chunk-SKGV326D.js.map} +0 -0
- /package/dist/{chunk-5UM2VJ6D.js.map → chunk-UEY3VB6W.js.map} +0 -0
- /package/dist/{chunk-GIF42EW3.js.map → chunk-UP6MOYCB.js.map} +0 -0
- /package/dist/{chunk-MRILGULB.js.map → chunk-V2RCP53Q.js.map} +0 -0
- /package/dist/{chunk-FSFEQI74.js.map → chunk-W7L6HXUC.js.map} +0 -0
- /package/dist/{chunk-3IQ2TR4N.js.map → chunk-WLEB7WCG.js.map} +0 -0
- /package/dist/{chunk-GL6I6MEQ.js.map → chunk-WSGF57U2.js.map} +0 -0
- /package/dist/{chunk-JA3AK3PT.js.map → chunk-XNLXAWHX.js.map} +0 -0
- /package/dist/{chunk-SIC6U3GZ.js.map → chunk-YHV3KRKS.js.map} +0 -0
- /package/dist/{chunk-VLXA6PI2.js.map → chunk-YQMZ7IH2.js.map} +0 -0
- /package/dist/{contradiction-scan-5A4IDZV5.js.map → contradiction-review-6V2LXXK6.js.map} +0 -0
- /package/dist/{migrate-from-identity-anchor-G27MCD6A.js.map → contradiction-scan-GIRVC4C7.js.map} +0 -0
- /package/dist/{first-start-migration-4MHQEOSD.js.map → first-start-migration-CKTCTCQI.js.map} +0 -0
- /package/dist/{graph-edge-decay-5DI5GUNL.js.map → graph-edge-decay-MUP5J7CC.js.map} +0 -0
- /package/dist/{path-MR5JPYOP.js.map → importers/index.js.map} +0 -0
- /package/dist/{peers-HCVGHMAE.js.map → migrate-from-identity-anchor-EB4XI4Q2.js.map} +0 -0
- /package/dist/{resolution-B7FNQSSP.js.map → path-X2K5XCHL.js.map} +0 -0
- /package/dist/{state-store-VZU2IA53.js.map → peers/index.js.map} +0 -0
- /package/dist/{tier-stats-62ZVDFKS.js.map → tier-stats-SKML2OSF.js.map} +0 -0
|
@@ -1,81 +1,87 @@
|
|
|
1
|
+
import {
|
|
2
|
+
openclawReplayNormalizer
|
|
3
|
+
} from "./chunk-7F7Z6MOS.js";
|
|
1
4
|
import {
|
|
2
5
|
chatgptReplayNormalizer
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MC4FJXPA.js";
|
|
4
7
|
import {
|
|
5
8
|
claudeReplayNormalizer
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LQHDIS7L.js";
|
|
7
10
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
11
|
+
exportJsonBundle
|
|
12
|
+
} from "./chunk-UP6MOYCB.js";
|
|
13
|
+
import {
|
|
14
|
+
exportSqlite
|
|
15
|
+
} from "./chunk-XSWKORGM.js";
|
|
10
16
|
import {
|
|
11
17
|
importMarkdownBundle
|
|
12
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HDDRVXX4.js";
|
|
13
19
|
import {
|
|
14
20
|
importSqlite
|
|
15
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4RR6ROTB.js";
|
|
16
22
|
import {
|
|
17
23
|
detectImportFormat
|
|
18
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OZKVVUJB.js";
|
|
19
25
|
import {
|
|
20
26
|
importJsonBundle
|
|
21
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-2DL3OFLD.js";
|
|
22
28
|
import {
|
|
23
29
|
backupMemoryDir
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import {
|
|
26
|
-
exportJsonBundle
|
|
27
|
-
} from "./chunk-GIF42EW3.js";
|
|
30
|
+
} from "./chunk-2NLLXCJG.js";
|
|
28
31
|
import {
|
|
29
32
|
exportMarkdownBundle
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import {
|
|
32
|
-
exportSqlite
|
|
33
|
-
} from "./chunk-66DHUKLO.js";
|
|
33
|
+
} from "./chunk-765K3SAT.js";
|
|
34
34
|
import {
|
|
35
35
|
TailscaleHelper
|
|
36
36
|
} from "./chunk-TKWGAOLV.js";
|
|
37
37
|
import {
|
|
38
38
|
WebDavServer
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-UWY7GIVS.js";
|
|
40
40
|
import {
|
|
41
41
|
buildReplayNormalizerRegistry,
|
|
42
42
|
clampBatchSize,
|
|
43
43
|
runReplay
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-HOJZMQ4J.js";
|
|
45
|
+
import {
|
|
46
|
+
migrateObservations
|
|
47
|
+
} from "./chunk-2NM43EWN.js";
|
|
45
48
|
import {
|
|
46
49
|
rebuildMemoryLifecycleLedger
|
|
47
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-LJBOVCQG.js";
|
|
48
51
|
import {
|
|
49
52
|
rebuildMemoryProjection,
|
|
50
53
|
repairMemoryProjection,
|
|
51
54
|
verifyMemoryProjection
|
|
52
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-E62SBGQ3.js";
|
|
53
56
|
import {
|
|
54
57
|
rebuildObservations
|
|
55
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-XR6DNK4U.js";
|
|
56
59
|
import {
|
|
57
60
|
archiveObservations
|
|
58
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-S7WU3Y3D.js";
|
|
59
62
|
import {
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
getBulkImportSource,
|
|
64
|
+
listBulkImportSources,
|
|
65
|
+
registerBulkImportSource,
|
|
66
|
+
runBulkImportPipeline
|
|
67
|
+
} from "./chunk-H2NCNXMS.js";
|
|
62
68
|
import {
|
|
63
69
|
runCompatChecks
|
|
64
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-YR6GIWWY.js";
|
|
65
71
|
import {
|
|
66
72
|
promoteSemanticRuleFromMemory
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import {
|
|
69
|
-
resolveAgentAccessAuthToken
|
|
70
|
-
} from "./chunk-MXC3AP5I.js";
|
|
73
|
+
} from "./chunk-V2RCP53Q.js";
|
|
71
74
|
import {
|
|
72
75
|
buildResumeBundleFromState,
|
|
73
76
|
getResumeBundleStatus,
|
|
74
77
|
recordResumeBundle
|
|
75
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-R3PS27B4.js";
|
|
79
|
+
import {
|
|
80
|
+
resolveAgentAccessAuthToken
|
|
81
|
+
} from "./chunk-TGQ2NTWH.js";
|
|
76
82
|
import {
|
|
77
83
|
parseXrayCliOptions
|
|
78
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-PM3QHTFT.js";
|
|
79
85
|
import {
|
|
80
86
|
collectPatternMemories,
|
|
81
87
|
explainPatternMemory,
|
|
@@ -92,70 +98,76 @@ import {
|
|
|
92
98
|
runOperatorInventory,
|
|
93
99
|
runOperatorRepair,
|
|
94
100
|
runOperatorSetup
|
|
95
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-YNXOKMJP.js";
|
|
96
102
|
import {
|
|
97
103
|
listNamespaces,
|
|
98
104
|
runNamespaceMigration,
|
|
99
105
|
verifyNamespaces
|
|
100
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-6BR7L222.js";
|
|
101
107
|
import {
|
|
102
108
|
GraphDashboardServer
|
|
103
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-YNDLCWXS.js";
|
|
110
|
+
import {
|
|
111
|
+
RoutingRulesStore
|
|
112
|
+
} from "./chunk-HPWVAEET.js";
|
|
104
113
|
import {
|
|
105
114
|
isReplaySource,
|
|
106
115
|
normalizeReplaySessionKey
|
|
107
116
|
} from "./chunk-2PRQG7PV.js";
|
|
108
|
-
import {
|
|
109
|
-
RoutingRulesStore
|
|
110
|
-
} from "./chunk-LUDTDZLK.js";
|
|
111
117
|
import {
|
|
112
118
|
searchVerifiedEpisodes
|
|
113
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-XNLXAWHX.js";
|
|
114
120
|
import {
|
|
115
121
|
getUtilityLearningStatus,
|
|
116
122
|
learnUtilityPromotionWeights
|
|
117
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-3BP57I6J.js";
|
|
118
124
|
import {
|
|
119
125
|
getUtilityTelemetryStatus,
|
|
120
126
|
recordUtilityTelemetryEvent
|
|
121
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-TERNBNJB.js";
|
|
122
128
|
import {
|
|
123
129
|
ThreadingManager
|
|
124
130
|
} from "./chunk-W4RVMTHR.js";
|
|
125
131
|
import {
|
|
126
132
|
searchVerifiedSemanticRules
|
|
127
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-23UORJ4S.js";
|
|
128
134
|
import {
|
|
129
135
|
getWorkProductLedgerStatus,
|
|
130
136
|
recordWorkProductLedgerEntry,
|
|
131
137
|
searchWorkProductLedgerEntries
|
|
132
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-XPXEJRUB.js";
|
|
133
139
|
import {
|
|
134
140
|
readRuntimePolicySnapshot,
|
|
135
141
|
sanitizeRuntimePolicyValues
|
|
136
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-A2Z6UCWT.js";
|
|
137
143
|
import {
|
|
138
144
|
analyzeSessionIntegrity,
|
|
139
145
|
applySessionRepair,
|
|
140
146
|
planSessionRepair
|
|
141
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-KFY3SGN7.js";
|
|
142
148
|
import {
|
|
149
|
+
GITHUB_CONNECTOR_ID,
|
|
150
|
+
GMAIL_CONNECTOR_ID,
|
|
143
151
|
GOOGLE_DRIVE_CONNECTOR_ID,
|
|
144
152
|
NOTION_CONNECTOR_ID,
|
|
153
|
+
createGitHubConnector,
|
|
154
|
+
createGmailConnector,
|
|
145
155
|
createGoogleDriveConnector,
|
|
146
156
|
createNotionConnector,
|
|
157
|
+
validateGitHubConfig,
|
|
158
|
+
validateGmailConfig,
|
|
147
159
|
validateGoogleDriveConfig,
|
|
148
160
|
validateNotionConfig
|
|
149
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-BECQDWBA.js";
|
|
150
162
|
import {
|
|
151
163
|
listConnectorStates
|
|
152
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-CWWMTTQE.js";
|
|
153
165
|
import {
|
|
154
166
|
rescoreMemoryImportance
|
|
155
167
|
} from "./chunk-JXS5PDQ7.js";
|
|
156
168
|
import {
|
|
157
169
|
searchHarmonicRetrieval
|
|
158
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-SKGV326D.js";
|
|
159
171
|
import {
|
|
160
172
|
createEvalBaselineSnapshot,
|
|
161
173
|
getEvalHarnessStatus,
|
|
@@ -164,24 +176,25 @@ import {
|
|
|
164
176
|
runEvalBenchmarkCiGate,
|
|
165
177
|
runEvalStoredBaselineCiGate,
|
|
166
178
|
validateEvalBenchmarkPack
|
|
167
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-G3Z3QEF5.js";
|
|
168
180
|
import {
|
|
169
181
|
getCueAnchorStoreStatus
|
|
170
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-FZZ2QTJI.js";
|
|
171
183
|
import {
|
|
172
184
|
applyCommitmentLedgerLifecycle,
|
|
173
185
|
getCommitmentLedgerStatus,
|
|
174
186
|
recordCommitmentLedgerEntry,
|
|
175
187
|
transitionCommitmentLedgerEntryState
|
|
176
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-LMDRGRJ2.js";
|
|
177
189
|
import {
|
|
190
|
+
buildConnectorRowsFromDefinitions,
|
|
178
191
|
parseConnectorsListOptions,
|
|
179
192
|
parseConnectorsRunName,
|
|
180
193
|
parseConnectorsStatusOptions,
|
|
181
194
|
renderConnectorsList,
|
|
182
195
|
renderConnectorsRunResult,
|
|
183
196
|
runConnectorPollOnce
|
|
184
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-OKTXM5H4.js";
|
|
185
198
|
import {
|
|
186
199
|
resolveNamespaceChildRoot
|
|
187
200
|
} from "./chunk-3UXOZBHV.js";
|
|
@@ -190,64 +203,61 @@ import {
|
|
|
190
203
|
} from "./chunk-4WMCPJWX.js";
|
|
191
204
|
import {
|
|
192
205
|
parseConfig
|
|
193
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-7H6CFEBJ.js";
|
|
194
207
|
import {
|
|
195
208
|
getAbstractionNodeStoreStatus
|
|
196
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-OADWQ5CR.js";
|
|
197
210
|
import {
|
|
198
211
|
EngramAccessHttpServer
|
|
199
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-HC6EKOID.js";
|
|
200
213
|
import {
|
|
201
214
|
EngramMcpServer
|
|
202
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-TTGZV5R3.js";
|
|
203
216
|
import {
|
|
204
217
|
EngramAccessService
|
|
205
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-5V456VRV.js";
|
|
206
219
|
import {
|
|
207
220
|
WorkStorage
|
|
208
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-L227SKTB.js";
|
|
209
222
|
import {
|
|
210
223
|
parseRecallExplainFormat,
|
|
211
224
|
renderRecallExplain,
|
|
212
225
|
renderXray
|
|
213
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-3C5RPJAX.js";
|
|
214
227
|
import {
|
|
215
228
|
getTrustZoneStoreStatus,
|
|
216
229
|
promoteTrustZoneRecord,
|
|
217
230
|
seedTrustZoneDemoDataset
|
|
218
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-472U7RDF.js";
|
|
219
232
|
import {
|
|
220
233
|
getObjectiveStateStoreStatus
|
|
221
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-UEY3VB6W.js";
|
|
222
235
|
import {
|
|
223
236
|
listMemoryGovernanceRuns,
|
|
224
237
|
readMemoryGovernanceRunArtifact,
|
|
225
238
|
restoreMemoryGovernanceRun,
|
|
226
239
|
runMemoryGovernance
|
|
227
|
-
} from "./chunk-
|
|
228
|
-
import {
|
|
229
|
-
selectRouteRule,
|
|
230
|
-
validateRouteTarget
|
|
231
|
-
} from "./chunk-U3PN77QT.js";
|
|
240
|
+
} from "./chunk-2AN2L4NL.js";
|
|
232
241
|
import {
|
|
233
242
|
analyzeGraphHealth
|
|
234
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-4JRRISLU.js";
|
|
235
244
|
import {
|
|
236
245
|
RECALL_DISCLOSURE_LEVELS,
|
|
237
246
|
isRecallDisclosure
|
|
238
|
-
} from "./chunk-
|
|
239
|
-
import {
|
|
240
|
-
expandTildePath
|
|
241
|
-
} from "./chunk-QRNI5JBH.js";
|
|
247
|
+
} from "./chunk-M5T4Q2ZU.js";
|
|
242
248
|
import {
|
|
243
249
|
getCausalTrajectoryStoreStatus
|
|
244
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-LMPHTYJC.js";
|
|
245
251
|
import {
|
|
246
|
-
|
|
247
|
-
|
|
252
|
+
selectRouteRule,
|
|
253
|
+
validateRouteTarget
|
|
254
|
+
} from "./chunk-U3PN77QT.js";
|
|
248
255
|
import {
|
|
249
|
-
|
|
250
|
-
} from "./chunk-
|
|
256
|
+
expandTildePath
|
|
257
|
+
} from "./chunk-EYIEWJNI.js";
|
|
258
|
+
import {
|
|
259
|
+
resolveHomeDir
|
|
260
|
+
} from "./chunk-JUC24CTX.js";
|
|
251
261
|
import {
|
|
252
262
|
buildActionConfidenceInputFromOptions,
|
|
253
263
|
evaluateActionConfidence,
|
|
@@ -256,197 +266,12 @@ import {
|
|
|
256
266
|
|
|
257
267
|
// src/cli.ts
|
|
258
268
|
import path2 from "path";
|
|
259
|
-
import { access, readFile
|
|
269
|
+
import { access, readFile, readdir as readdir2, unlink } from "fs/promises";
|
|
260
270
|
import { createHash } from "crypto";
|
|
261
271
|
|
|
262
|
-
// src/bulk-import/types.ts
|
|
263
|
-
var VALID_ROLES = /* @__PURE__ */ new Set(["user", "assistant", "other"]);
|
|
264
|
-
function isImportRole(value) {
|
|
265
|
-
return typeof value === "string" && VALID_ROLES.has(value);
|
|
266
|
-
}
|
|
267
|
-
function parseIsoTimestamp(value) {
|
|
268
|
-
return parseIsoOffsetTimestamp(value);
|
|
269
|
-
}
|
|
270
|
-
function validateImportTurn(turn, index) {
|
|
271
|
-
const issues = [];
|
|
272
|
-
if (!turn || typeof turn !== "object") {
|
|
273
|
-
issues.push({
|
|
274
|
-
code: "turn.invalid",
|
|
275
|
-
message: "Import turn must be an object.",
|
|
276
|
-
index
|
|
277
|
-
});
|
|
278
|
-
return issues;
|
|
279
|
-
}
|
|
280
|
-
if (!isImportRole(turn.role)) {
|
|
281
|
-
issues.push({
|
|
282
|
-
code: "turn.role.invalid",
|
|
283
|
-
message: `Import turn role must be 'user', 'assistant', or 'other', received '${String(turn.role)}'.`,
|
|
284
|
-
index
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
if (!turn.content || typeof turn.content !== "string" || turn.content.trim().length === 0) {
|
|
288
|
-
issues.push({
|
|
289
|
-
code: "turn.content.invalid",
|
|
290
|
-
message: "Import turn content must be a non-empty string.",
|
|
291
|
-
index
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
if (!turn.timestamp || typeof turn.timestamp !== "string" || parseIsoTimestamp(turn.timestamp) === null) {
|
|
295
|
-
issues.push({
|
|
296
|
-
code: "turn.timestamp.invalid",
|
|
297
|
-
message: `Import turn timestamp must be a valid ISO timestamp, received '${String(turn.timestamp)}'.`,
|
|
298
|
-
index
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
return issues;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
// src/bulk-import/registry.ts
|
|
305
|
-
var adapters = /* @__PURE__ */ new Map();
|
|
306
|
-
function registerBulkImportSource(adapter) {
|
|
307
|
-
if (!adapter || typeof adapter !== "object") {
|
|
308
|
-
throw new Error("bulk-import adapter must be an object");
|
|
309
|
-
}
|
|
310
|
-
if (!adapter.name || typeof adapter.name !== "string" || adapter.name.trim().length === 0) {
|
|
311
|
-
throw new Error("bulk-import adapter name must be a non-empty string");
|
|
312
|
-
}
|
|
313
|
-
if (typeof adapter.parse !== "function") {
|
|
314
|
-
throw new Error(
|
|
315
|
-
`bulk-import adapter '${adapter.name}' must have a parse function`
|
|
316
|
-
);
|
|
317
|
-
}
|
|
318
|
-
const key = adapter.name.trim();
|
|
319
|
-
if (adapters.has(key)) {
|
|
320
|
-
throw new Error(
|
|
321
|
-
`bulk-import source adapter '${key}' is already registered`
|
|
322
|
-
);
|
|
323
|
-
}
|
|
324
|
-
const normalized = adapter.name === key ? adapter : { ...adapter, name: key };
|
|
325
|
-
adapters.set(key, normalized);
|
|
326
|
-
}
|
|
327
|
-
function getBulkImportSource(name) {
|
|
328
|
-
if (typeof name !== "string") return void 0;
|
|
329
|
-
const key = name.trim();
|
|
330
|
-
if (key.length === 0) return void 0;
|
|
331
|
-
return adapters.get(key);
|
|
332
|
-
}
|
|
333
|
-
function listBulkImportSources() {
|
|
334
|
-
return [...adapters.keys()];
|
|
335
|
-
}
|
|
336
|
-
function clearBulkImportSources() {
|
|
337
|
-
adapters.clear();
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
// src/bulk-import/pipeline.ts
|
|
341
|
-
var DEFAULT_BATCH_SIZE = 20;
|
|
342
|
-
var MIN_BATCH_SIZE = 1;
|
|
343
|
-
var MAX_BATCH_SIZE = 1e3;
|
|
344
|
-
function validateBatchSize(value) {
|
|
345
|
-
if (value === void 0) return DEFAULT_BATCH_SIZE;
|
|
346
|
-
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
347
|
-
throw new Error(
|
|
348
|
-
`batchSize must be a finite number, received ${String(value)}`
|
|
349
|
-
);
|
|
350
|
-
}
|
|
351
|
-
if (!Number.isInteger(value)) {
|
|
352
|
-
throw new Error(
|
|
353
|
-
`batchSize must be an integer, received ${value}`
|
|
354
|
-
);
|
|
355
|
-
}
|
|
356
|
-
if (value < MIN_BATCH_SIZE || value > MAX_BATCH_SIZE) {
|
|
357
|
-
throw new Error(
|
|
358
|
-
`batchSize must be between ${MIN_BATCH_SIZE} and ${MAX_BATCH_SIZE}, received ${value}`
|
|
359
|
-
);
|
|
360
|
-
}
|
|
361
|
-
return value;
|
|
362
|
-
}
|
|
363
|
-
function resolveBulkImportContext(options) {
|
|
364
|
-
if (options.dedup !== void 0 && typeof options.dedup !== "boolean") {
|
|
365
|
-
throw new Error(
|
|
366
|
-
`dedup must be a boolean when provided, received ${String(options.dedup)}`
|
|
367
|
-
);
|
|
368
|
-
}
|
|
369
|
-
if (options.trustLevel !== void 0 && options.trustLevel !== "import") {
|
|
370
|
-
throw new Error(
|
|
371
|
-
`trustLevel must be 'import' when provided, received ${String(options.trustLevel)}`
|
|
372
|
-
);
|
|
373
|
-
}
|
|
374
|
-
if (options.namespace !== void 0) {
|
|
375
|
-
if (typeof options.namespace !== "string" || options.namespace.trim().length === 0) {
|
|
376
|
-
throw new Error(
|
|
377
|
-
`namespace must be a non-empty string when provided, received ${String(options.namespace)}`
|
|
378
|
-
);
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
return {
|
|
382
|
-
dedup: options.dedup !== false,
|
|
383
|
-
trustLevel: options.trustLevel ?? "import",
|
|
384
|
-
...options.namespace !== void 0 ? { namespace: options.namespace } : {}
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
function formatBatchTranscript(turns) {
|
|
388
|
-
return turns.map((t) => {
|
|
389
|
-
const prefix = t.participantName ?? t.participantId ?? t.role;
|
|
390
|
-
return `[${t.timestamp}] ${prefix}: ${t.content}`;
|
|
391
|
-
}).join("\n");
|
|
392
|
-
}
|
|
393
|
-
async function runBulkImportPipeline(source, options = {}, processBatch) {
|
|
394
|
-
const batchSize = validateBatchSize(options.batchSize);
|
|
395
|
-
const dryRun = options.dryRun === true;
|
|
396
|
-
const batchContext = resolveBulkImportContext(options);
|
|
397
|
-
const result = {
|
|
398
|
-
memoriesCreated: 0,
|
|
399
|
-
duplicatesSkipped: 0,
|
|
400
|
-
entitiesCreated: 0,
|
|
401
|
-
turnsProcessed: 0,
|
|
402
|
-
batchesProcessed: 0,
|
|
403
|
-
errors: []
|
|
404
|
-
};
|
|
405
|
-
const turns = source.turns;
|
|
406
|
-
if (!turns || turns.length === 0) {
|
|
407
|
-
return result;
|
|
408
|
-
}
|
|
409
|
-
const validTurns = [];
|
|
410
|
-
for (let i = 0; i < turns.length; i += 1) {
|
|
411
|
-
const issues = validateImportTurn(turns[i], i);
|
|
412
|
-
if (issues.length > 0) {
|
|
413
|
-
const error = {
|
|
414
|
-
batchIndex: -1,
|
|
415
|
-
message: issues.map((iss) => iss.message).join("; ")
|
|
416
|
-
};
|
|
417
|
-
result.errors.push(error);
|
|
418
|
-
} else {
|
|
419
|
-
validTurns.push(turns[i]);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
if (dryRun) {
|
|
423
|
-
result.turnsProcessed = validTurns.length;
|
|
424
|
-
result.batchesProcessed = validTurns.length > 0 ? Math.ceil(validTurns.length / batchSize) : 0;
|
|
425
|
-
return result;
|
|
426
|
-
}
|
|
427
|
-
let batchIndex = 0;
|
|
428
|
-
for (let i = 0; i < validTurns.length; i += batchSize) {
|
|
429
|
-
const batch = validTurns.slice(i, i + batchSize);
|
|
430
|
-
try {
|
|
431
|
-
const batchResult = await processBatch(batch, batchContext);
|
|
432
|
-
result.memoriesCreated += batchResult.memoriesCreated;
|
|
433
|
-
result.duplicatesSkipped += batchResult.duplicatesSkipped;
|
|
434
|
-
if (typeof batchResult.entitiesCreated === "number") {
|
|
435
|
-
result.entitiesCreated += batchResult.entitiesCreated;
|
|
436
|
-
}
|
|
437
|
-
} catch (err) {
|
|
438
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
439
|
-
result.errors.push({ batchIndex, message });
|
|
440
|
-
}
|
|
441
|
-
result.turnsProcessed += batch.length;
|
|
442
|
-
result.batchesProcessed += 1;
|
|
443
|
-
batchIndex += 1;
|
|
444
|
-
}
|
|
445
|
-
return result;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
272
|
// src/training-export/converter.ts
|
|
449
|
-
import {
|
|
273
|
+
import { constants } from "fs";
|
|
274
|
+
import { lstat, open, readdir, realpath } from "fs/promises";
|
|
450
275
|
import path from "path";
|
|
451
276
|
function parseFrontmatter(raw) {
|
|
452
277
|
const match = raw.match(/^---\n([\s\S]*?)\n---\n?([\s\S]*)$/);
|
|
@@ -486,6 +311,9 @@ async function safeRealpath(p) {
|
|
|
486
311
|
return null;
|
|
487
312
|
}
|
|
488
313
|
}
|
|
314
|
+
function isContainedPath(real, containmentRoot) {
|
|
315
|
+
return real === containmentRoot || real.startsWith(containmentRoot + path.sep);
|
|
316
|
+
}
|
|
489
317
|
async function collectMarkdownFiles(dir, containmentRoot) {
|
|
490
318
|
const files = [];
|
|
491
319
|
const walk = async (d) => {
|
|
@@ -518,7 +346,7 @@ async function collectMarkdownFiles(dir, containmentRoot) {
|
|
|
518
346
|
if (st.nlink > 1) continue;
|
|
519
347
|
const real = await safeRealpath(full);
|
|
520
348
|
if (!real) continue;
|
|
521
|
-
if (real
|
|
349
|
+
if (!isContainedPath(real, containmentRoot)) {
|
|
522
350
|
continue;
|
|
523
351
|
}
|
|
524
352
|
files.push(full);
|
|
@@ -528,6 +356,21 @@ async function collectMarkdownFiles(dir, containmentRoot) {
|
|
|
528
356
|
await walk(dir);
|
|
529
357
|
return files.sort((a, b) => a.localeCompare(b));
|
|
530
358
|
}
|
|
359
|
+
async function readContainedMarkdownFile(filePath, containmentRoot) {
|
|
360
|
+
let handle = null;
|
|
361
|
+
try {
|
|
362
|
+
handle = await open(filePath, constants.O_RDONLY | constants.O_NOFOLLOW);
|
|
363
|
+
const st = await handle.stat();
|
|
364
|
+
if (!st.isFile() || st.nlink > 1) return null;
|
|
365
|
+
const real = await safeRealpath(filePath);
|
|
366
|
+
if (!real || !isContainedPath(real, containmentRoot)) return null;
|
|
367
|
+
return await handle.readFile("utf-8");
|
|
368
|
+
} catch {
|
|
369
|
+
return null;
|
|
370
|
+
} finally {
|
|
371
|
+
await handle?.close().catch(() => void 0);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
531
374
|
function buildInstruction(category, tags) {
|
|
532
375
|
const tagSuffix = tags.length > 0 ? ` (${tags.join(", ")})` : "";
|
|
533
376
|
switch (category) {
|
|
@@ -561,8 +404,11 @@ function buildInstruction(category, tags) {
|
|
|
561
404
|
}
|
|
562
405
|
function parseIsoDate(isoStr) {
|
|
563
406
|
if (!isoStr) return null;
|
|
564
|
-
|
|
565
|
-
|
|
407
|
+
try {
|
|
408
|
+
return parseStrictCliDate(isoStr, "memory created timestamp");
|
|
409
|
+
} catch {
|
|
410
|
+
return null;
|
|
411
|
+
}
|
|
566
412
|
}
|
|
567
413
|
async function convertMemoriesToRecords(options) {
|
|
568
414
|
const { memoryDir } = options;
|
|
@@ -581,12 +427,8 @@ async function convertMemoriesToRecords(options) {
|
|
|
581
427
|
}
|
|
582
428
|
const records = [];
|
|
583
429
|
for (const filePath of allFiles) {
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
raw = await readFile(filePath, "utf-8");
|
|
587
|
-
} catch {
|
|
588
|
-
continue;
|
|
589
|
-
}
|
|
430
|
+
const raw = await readContainedMarkdownFile(filePath, containmentRoot);
|
|
431
|
+
if (raw === null) continue;
|
|
590
432
|
const parsed = parseFrontmatter(raw);
|
|
591
433
|
if (!parsed) continue;
|
|
592
434
|
if (!parsed.content) continue;
|
|
@@ -622,29 +464,44 @@ async function convertMemoriesToRecords(options) {
|
|
|
622
464
|
}
|
|
623
465
|
|
|
624
466
|
// src/training-export/registry.ts
|
|
625
|
-
var
|
|
467
|
+
var adapters = /* @__PURE__ */ new Map();
|
|
626
468
|
function registerTrainingExportAdapter(adapter) {
|
|
627
|
-
if (!adapter || typeof adapter
|
|
469
|
+
if (!adapter || typeof adapter !== "object" || Array.isArray(adapter)) {
|
|
470
|
+
throw new Error(
|
|
471
|
+
"registerTrainingExportAdapter: adapter must be an object with name, fileExtension, and formatRecords."
|
|
472
|
+
);
|
|
473
|
+
}
|
|
474
|
+
if (typeof adapter.name !== "string" || adapter.name.trim().length === 0) {
|
|
628
475
|
throw new Error(
|
|
629
476
|
"registerTrainingExportAdapter: adapter.name must be a non-empty string. Provide a unique adapter name (e.g. 'weclone', 'axolotl', 'mlx')."
|
|
630
477
|
);
|
|
631
478
|
}
|
|
479
|
+
if (typeof adapter.formatRecords !== "function") {
|
|
480
|
+
throw new Error(
|
|
481
|
+
"registerTrainingExportAdapter: adapter.formatRecords must be a function."
|
|
482
|
+
);
|
|
483
|
+
}
|
|
484
|
+
if (typeof adapter.fileExtension !== "string" || !/^\.[A-Za-z0-9][A-Za-z0-9._-]*$/.test(adapter.fileExtension.trim())) {
|
|
485
|
+
throw new Error(
|
|
486
|
+
"registerTrainingExportAdapter: adapter.fileExtension must be a non-empty extension like '.jsonl'."
|
|
487
|
+
);
|
|
488
|
+
}
|
|
632
489
|
const key = adapter.name.trim();
|
|
633
|
-
if (
|
|
490
|
+
if (adapters.has(key)) {
|
|
634
491
|
throw new Error(
|
|
635
492
|
`registerTrainingExportAdapter: adapter "${key}" is already registered. Currently registered adapters: [${listTrainingExportAdapters().join(", ")}].`
|
|
636
493
|
);
|
|
637
494
|
}
|
|
638
|
-
|
|
495
|
+
adapters.set(key, adapter);
|
|
639
496
|
}
|
|
640
497
|
function getTrainingExportAdapter(name) {
|
|
641
|
-
return
|
|
498
|
+
return adapters.get(name.trim());
|
|
642
499
|
}
|
|
643
500
|
function listTrainingExportAdapters() {
|
|
644
|
-
return [...
|
|
501
|
+
return [...adapters.keys()];
|
|
645
502
|
}
|
|
646
503
|
function clearTrainingExportAdapters() {
|
|
647
|
-
|
|
504
|
+
adapters.clear();
|
|
648
505
|
}
|
|
649
506
|
|
|
650
507
|
// src/cli.ts
|
|
@@ -724,6 +581,16 @@ var activeDashboardServer = null;
|
|
|
724
581
|
var dashboardOperationChain = Promise.resolve();
|
|
725
582
|
var activeAccessHttpServer = null;
|
|
726
583
|
var accessHttpOperationChain = Promise.resolve();
|
|
584
|
+
function parseDashboardPort(value, fallback = 4319) {
|
|
585
|
+
if (value === void 0 || value === null || String(value).trim().length === 0) {
|
|
586
|
+
return fallback;
|
|
587
|
+
}
|
|
588
|
+
const port = Number(String(value).trim());
|
|
589
|
+
if (!Number.isInteger(port) || port < 0 || port > 65535) {
|
|
590
|
+
throw new Error("dashboard port must be an integer from 0 to 65535");
|
|
591
|
+
}
|
|
592
|
+
return port;
|
|
593
|
+
}
|
|
727
594
|
async function withWebDavLock(operation) {
|
|
728
595
|
const run = webDavOperationChain.then(operation, operation);
|
|
729
596
|
webDavOperationChain = run.then(
|
|
@@ -1865,6 +1732,7 @@ async function runWebDavStopCliCommand() {
|
|
|
1865
1732
|
}
|
|
1866
1733
|
async function runDashboardStartCliCommand(options) {
|
|
1867
1734
|
return withDashboardLock(async () => {
|
|
1735
|
+
const port = parseDashboardPort(options.port, 4319);
|
|
1868
1736
|
if (activeDashboardServer) {
|
|
1869
1737
|
const status = activeDashboardServer.status();
|
|
1870
1738
|
if (status.running) return status;
|
|
@@ -1872,10 +1740,11 @@ async function runDashboardStartCliCommand(options) {
|
|
|
1872
1740
|
const createServer = options.createServer ?? ((opts) => new GraphDashboardServer({
|
|
1873
1741
|
memoryDir: opts.memoryDir,
|
|
1874
1742
|
host: opts.host,
|
|
1875
|
-
port
|
|
1876
|
-
publicDir: opts.publicDir
|
|
1743
|
+
port,
|
|
1744
|
+
publicDir: opts.publicDir,
|
|
1745
|
+
authToken: opts.authToken
|
|
1877
1746
|
}));
|
|
1878
|
-
const server = createServer(options);
|
|
1747
|
+
const server = createServer({ ...options, port });
|
|
1879
1748
|
activeDashboardServer = server;
|
|
1880
1749
|
try {
|
|
1881
1750
|
return await server.start();
|
|
@@ -2150,7 +2019,7 @@ async function withTimeout(promise, timeoutMs, timeoutMessage) {
|
|
|
2150
2019
|
}
|
|
2151
2020
|
async function runReplayCliCommand(orchestrator, options) {
|
|
2152
2021
|
const extractionIdleTimeoutMs = Number.isFinite(options.extractionIdleTimeoutMs) ? Math.max(1e3, Math.floor(options.extractionIdleTimeoutMs)) : 15 * 6e4;
|
|
2153
|
-
const inputRaw = await
|
|
2022
|
+
const inputRaw = await readFile(options.inputPath, "utf-8");
|
|
2154
2023
|
const registry = buildReplayNormalizerRegistry([
|
|
2155
2024
|
openclawReplayNormalizer,
|
|
2156
2025
|
claudeReplayNormalizer,
|
|
@@ -2242,7 +2111,7 @@ async function runBulkImportCliCommand(opts) {
|
|
|
2242
2111
|
"Bulk import persistence is not wired: no ingestBatch callback was provided by the host CLI. Use --dry-run to validate without persisting, or invoke via `openclaw engram bulk-import` which supplies the orchestrator-backed ingestion path."
|
|
2243
2112
|
);
|
|
2244
2113
|
}
|
|
2245
|
-
const inputRaw = await
|
|
2114
|
+
const inputRaw = await readFile(opts.file, "utf-8");
|
|
2246
2115
|
let inputParsed;
|
|
2247
2116
|
try {
|
|
2248
2117
|
inputParsed = JSON.parse(inputRaw);
|
|
@@ -2306,7 +2175,7 @@ async function runBulkImportCliCommand(opts) {
|
|
|
2306
2175
|
async function getPluginVersion() {
|
|
2307
2176
|
try {
|
|
2308
2177
|
const pkgPath = new URL("../package.json", import.meta.url);
|
|
2309
|
-
const raw = await
|
|
2178
|
+
const raw = await readFile(pkgPath, "utf-8");
|
|
2310
2179
|
const parsed = JSON.parse(raw);
|
|
2311
2180
|
return parsed.version ?? "unknown";
|
|
2312
2181
|
} catch {
|
|
@@ -2377,7 +2246,7 @@ async function readAllMemoryFiles(memoryDir) {
|
|
|
2377
2246
|
const out = [];
|
|
2378
2247
|
await walkMemoryMarkdownFiles(memoryDir, async (fullPath) => {
|
|
2379
2248
|
try {
|
|
2380
|
-
const raw = await
|
|
2249
|
+
const raw = await readFile(fullPath, "utf-8");
|
|
2381
2250
|
const parsed = raw.match(/^---\n([\s\S]*?)\n---\n([\s\S]*)$/);
|
|
2382
2251
|
if (!parsed) return;
|
|
2383
2252
|
const fmRaw = parsed[1];
|
|
@@ -2692,7 +2561,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
2692
2561
|
);
|
|
2693
2562
|
tierCmd.command("list").description("Summarize tier distribution across all memories").option("--json", "Emit machine-readable JSON only").action(async (...args) => {
|
|
2694
2563
|
const options = args[0] ?? {};
|
|
2695
|
-
const { summarizeTiers, formatTierSummaryText } = await import("./tier-stats-
|
|
2564
|
+
const { summarizeTiers, formatTierSummaryText } = await import("./tier-stats-SKML2OSF.js");
|
|
2696
2565
|
const summary = await summarizeTiers(orchestrator.storage);
|
|
2697
2566
|
if (reportHasMachineReadableOutput(options)) {
|
|
2698
2567
|
console.log(JSON.stringify(summary, null, 2));
|
|
@@ -2703,7 +2572,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
2703
2572
|
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) => {
|
|
2704
2573
|
const idArg = typeof args[0] === "string" ? args[0] : "";
|
|
2705
2574
|
const options = args[1] ?? {};
|
|
2706
|
-
const { explainTierForMemory, formatTierExplainText } = await import("./tier-stats-
|
|
2575
|
+
const { explainTierForMemory, formatTierExplainText } = await import("./tier-stats-SKML2OSF.js");
|
|
2707
2576
|
try {
|
|
2708
2577
|
const explain = await explainTierForMemory(
|
|
2709
2578
|
orchestrator.storage,
|
|
@@ -3149,8 +3018,8 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
3149
3018
|
console.log("OK");
|
|
3150
3019
|
});
|
|
3151
3020
|
capsuleCmd.command("import").description(
|
|
3152
|
-
"Import a capsule archive into the memory directory. Auto-detects encrypted archives (REMNIC-ENC header); requires
|
|
3153
|
-
).argument("<archive>", "Path to the .capsule.json.gz (or .enc) archive").option("--mode <mode>", "Conflict mode: skip (default), overwrite, fork", "skip").option("--namespace <ns>", "Target namespace (v3.0+, default: config defaultNamespace)", "").action(async (...args) => {
|
|
3021
|
+
"Import a capsule archive into the memory directory. Auto-detects encrypted archives (REMNIC-ENC header); requires the original passphrase or an unlocked secure-store."
|
|
3022
|
+
).argument("<archive>", "Path to the .capsule.json.gz (or .enc) archive").option("--mode <mode>", "Conflict mode: skip (default), overwrite, fork", "skip").option("--namespace <ns>", "Target namespace (v3.0+, default: config defaultNamespace)", "").option("--passphrase <passphrase>", "Original secure-store passphrase for encrypted format-v2 archive restore").action(async (...args) => {
|
|
3154
3023
|
const archivePath = args[0] ? String(args[0]) : "";
|
|
3155
3024
|
const options = args[1] ?? {};
|
|
3156
3025
|
if (!archivePath) {
|
|
@@ -3165,6 +3034,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
3165
3034
|
return;
|
|
3166
3035
|
}
|
|
3167
3036
|
const namespace = options.namespace ? String(options.namespace) : "";
|
|
3037
|
+
const passphrase = typeof options.passphrase === "string" ? options.passphrase : void 0;
|
|
3168
3038
|
const memoryDir = await resolveMemoryDirForNamespace(orchestrator, namespace, {
|
|
3169
3039
|
rejectUnsupportedOverride: true
|
|
3170
3040
|
});
|
|
@@ -3173,7 +3043,8 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
3173
3043
|
archivePath: expandTildePath(archivePath),
|
|
3174
3044
|
root: memoryDir,
|
|
3175
3045
|
mode,
|
|
3176
|
-
memoryDir
|
|
3046
|
+
memoryDir,
|
|
3047
|
+
passphrase
|
|
3177
3048
|
});
|
|
3178
3049
|
console.log(`Imported: ${result.imported.length} record(s)`);
|
|
3179
3050
|
if (result.skipped.length > 0) {
|
|
@@ -3219,7 +3090,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
3219
3090
|
}
|
|
3220
3091
|
}
|
|
3221
3092
|
if (sourceArchive.endsWith(".enc")) {
|
|
3222
|
-
const { isEncryptedCapsuleFile } = await import("./capsule-crypto-
|
|
3093
|
+
const { isEncryptedCapsuleFile } = await import("./capsule-crypto-7FJQINUR.js");
|
|
3223
3094
|
const encDetected = await isEncryptedCapsuleFile(sourceArchive).catch(() => true);
|
|
3224
3095
|
if (encDetected) {
|
|
3225
3096
|
throw new Error(
|
|
@@ -3227,7 +3098,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
3227
3098
|
);
|
|
3228
3099
|
}
|
|
3229
3100
|
}
|
|
3230
|
-
const { mergeCapsule } = await import("./capsule-merge-
|
|
3101
|
+
const { mergeCapsule } = await import("./capsule-merge-T2JRE46P.js");
|
|
3231
3102
|
const result = await mergeCapsule({
|
|
3232
3103
|
sourceArchive,
|
|
3233
3104
|
targetRoot: memoryDir,
|
|
@@ -3264,7 +3135,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
3264
3135
|
const dirWasExplicit = typeof opts.dir === "string" && opts.dir.trim() !== "";
|
|
3265
3136
|
const parsed = parseCapsuleListOptions(opts, defaultDir);
|
|
3266
3137
|
const capsulesDir = expandTildePath(parsed.capsulesDir);
|
|
3267
|
-
const { readdir: readdir3, readFile:
|
|
3138
|
+
const { readdir: readdir3, readFile: readFile2, stat } = await import("fs/promises");
|
|
3268
3139
|
let dirEntries;
|
|
3269
3140
|
try {
|
|
3270
3141
|
dirEntries = await readdir3(capsulesDir);
|
|
@@ -3303,7 +3174,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
3303
3174
|
}
|
|
3304
3175
|
if (hasManifest) {
|
|
3305
3176
|
try {
|
|
3306
|
-
const raw = await
|
|
3177
|
+
const raw = await readFile2(manifestPath, "utf-8");
|
|
3307
3178
|
const sidecar = JSON.parse(raw);
|
|
3308
3179
|
createdAt = typeof sidecar.createdAt === "string" ? sidecar.createdAt : null;
|
|
3309
3180
|
pluginVersion = typeof sidecar.pluginVersion === "string" ? sidecar.pluginVersion : null;
|
|
@@ -3369,8 +3240,8 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
3369
3240
|
const sidecarPath = archivePath.replace(/\.enc$/, "").replace(/\.capsule\.json\.gz$/, ".manifest.json");
|
|
3370
3241
|
let sidecar = null;
|
|
3371
3242
|
try {
|
|
3372
|
-
const { readFile:
|
|
3373
|
-
const raw = await
|
|
3243
|
+
const { readFile: readFile2 } = await import("fs/promises");
|
|
3244
|
+
const raw = await readFile2(sidecarPath, "utf-8");
|
|
3374
3245
|
sidecar = JSON.parse(raw);
|
|
3375
3246
|
} catch {
|
|
3376
3247
|
}
|
|
@@ -3382,7 +3253,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
3382
3253
|
const { parseExportBundle } = await import("./transfer/types.js");
|
|
3383
3254
|
let decryptedBuf;
|
|
3384
3255
|
try {
|
|
3385
|
-
const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-
|
|
3256
|
+
const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-7FJQINUR.js");
|
|
3386
3257
|
decryptedBuf = await decryptCapsuleFileInMemory(archivePath, memoryDir);
|
|
3387
3258
|
} catch (decErr) {
|
|
3388
3259
|
const msg = decErr instanceof Error ? decErr.message : String(decErr);
|
|
@@ -3407,10 +3278,10 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
3407
3278
|
}
|
|
3408
3279
|
manifest = parsed2.bundle.manifest;
|
|
3409
3280
|
} else {
|
|
3410
|
-
const { readFile:
|
|
3281
|
+
const { readFile: readFile2 } = await import("fs/promises");
|
|
3411
3282
|
const { gunzipSync } = await import("zlib");
|
|
3412
3283
|
const { parseExportBundle } = await import("./transfer/types.js");
|
|
3413
|
-
const buf = await
|
|
3284
|
+
const buf = await readFile2(archivePath);
|
|
3414
3285
|
const json = gunzipSync(buf).toString("utf-8");
|
|
3415
3286
|
const parsed2 = parseExportBundle(JSON.parse(json));
|
|
3416
3287
|
if (parsed2.capsuleVersion !== 2) {
|
|
@@ -3898,29 +3769,56 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
3898
3769
|
console.log(renderPatternExplain(detail, parsed.format));
|
|
3899
3770
|
});
|
|
3900
3771
|
{
|
|
3901
|
-
|
|
3902
|
-
const
|
|
3903
|
-
|
|
3904
|
-
);
|
|
3905
|
-
const stateMap = new Map(states.map((s) => [s.id, s]));
|
|
3906
|
-
const builtIn = [
|
|
3772
|
+
let builtInConnectorDefinitions2 = function() {
|
|
3773
|
+
const cfg = orchestrator.config.connectors;
|
|
3774
|
+
return [
|
|
3907
3775
|
{
|
|
3908
3776
|
id: GOOGLE_DRIVE_CONNECTOR_ID,
|
|
3909
3777
|
displayName: "Google Drive",
|
|
3910
|
-
enabled:
|
|
3778
|
+
enabled: cfg.googleDrive.enabled,
|
|
3779
|
+
rawConfig: cfg.googleDrive,
|
|
3780
|
+
enabledConfigPath: "connectors.googleDrive.enabled",
|
|
3781
|
+
createConnector: () => createGoogleDriveConnector(),
|
|
3782
|
+
validateConfig: (raw) => validateGoogleDriveConfig(raw)
|
|
3911
3783
|
},
|
|
3912
3784
|
{
|
|
3913
3785
|
id: NOTION_CONNECTOR_ID,
|
|
3914
3786
|
displayName: "Notion",
|
|
3915
|
-
enabled:
|
|
3787
|
+
enabled: cfg.notion.enabled,
|
|
3788
|
+
rawConfig: cfg.notion,
|
|
3789
|
+
enabledConfigPath: "connectors.notion.enabled",
|
|
3790
|
+
createConnector: () => createNotionConnector(),
|
|
3791
|
+
validateConfig: (raw) => validateNotionConfig(raw)
|
|
3792
|
+
},
|
|
3793
|
+
{
|
|
3794
|
+
id: GMAIL_CONNECTOR_ID,
|
|
3795
|
+
displayName: "Gmail",
|
|
3796
|
+
enabled: cfg.gmail.enabled,
|
|
3797
|
+
rawConfig: cfg.gmail,
|
|
3798
|
+
enabledConfigPath: "connectors.gmail.enabled",
|
|
3799
|
+
createConnector: () => createGmailConnector(),
|
|
3800
|
+
validateConfig: (raw) => validateGmailConfig(raw)
|
|
3801
|
+
},
|
|
3802
|
+
{
|
|
3803
|
+
id: GITHUB_CONNECTOR_ID,
|
|
3804
|
+
displayName: "GitHub",
|
|
3805
|
+
enabled: cfg.github.enabled,
|
|
3806
|
+
rawConfig: cfg.github,
|
|
3807
|
+
enabledConfigPath: "connectors.github.enabled",
|
|
3808
|
+
createConnector: () => createGitHubConnector(),
|
|
3809
|
+
validateConfig: (raw) => validateGitHubConfig(raw)
|
|
3916
3810
|
}
|
|
3917
3811
|
];
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3812
|
+
};
|
|
3813
|
+
var builtInConnectorDefinitions = builtInConnectorDefinitions2;
|
|
3814
|
+
async function buildConnectorRows() {
|
|
3815
|
+
const states = await listConnectorStates(
|
|
3816
|
+
orchestrator.config.memoryDir
|
|
3817
|
+
);
|
|
3818
|
+
return buildConnectorRowsFromDefinitions(
|
|
3819
|
+
builtInConnectorDefinitions2(),
|
|
3820
|
+
states
|
|
3821
|
+
);
|
|
3924
3822
|
}
|
|
3925
3823
|
const connectorsCmd = cmd.command("connectors").description(
|
|
3926
3824
|
"Manage live connectors (Google Drive, Notion, \u2026). Subcommands: list, status, run. See docs/live-connectors.md."
|
|
@@ -3997,8 +3895,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
3997
3895
|
process.exitCode = 2;
|
|
3998
3896
|
return;
|
|
3999
3897
|
}
|
|
4000
|
-
const
|
|
4001
|
-
const { readConnectorState, writeConnectorState } = await import("./state-store-VZU2IA53.js");
|
|
3898
|
+
const { readConnectorState, withConnectorStateLock, writeConnectorState } = await import("./state-store-4QZISH3J.js");
|
|
4002
3899
|
const sharedIngestFn = async (docs) => {
|
|
4003
3900
|
const fetchedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
4004
3901
|
const turns = docs.map((doc) => ({
|
|
@@ -4030,10 +3927,13 @@ ${doc.content}` : doc.content,
|
|
|
4030
3927
|
);
|
|
4031
3928
|
};
|
|
4032
3929
|
let runResult;
|
|
4033
|
-
|
|
4034
|
-
|
|
3930
|
+
const connectorDefinition = builtInConnectorDefinitions2().find(
|
|
3931
|
+
(definition) => definition.id === name
|
|
3932
|
+
);
|
|
3933
|
+
if (connectorDefinition) {
|
|
3934
|
+
if (!connectorDefinition.enabled) {
|
|
4035
3935
|
process.stderr.write(
|
|
4036
|
-
`connectors run: connector "${name}" is disabled. Set
|
|
3936
|
+
`connectors run: connector "${name}" is disabled. Set ${connectorDefinition.enabledConfigPath}=true in config.
|
|
4037
3937
|
`
|
|
4038
3938
|
);
|
|
4039
3939
|
process.exitCode = 1;
|
|
@@ -4041,45 +3941,9 @@ ${doc.content}` : doc.content,
|
|
|
4041
3941
|
}
|
|
4042
3942
|
let validatedCfg;
|
|
4043
3943
|
try {
|
|
4044
|
-
validatedCfg =
|
|
4045
|
-
|
|
4046
|
-
process.stderr.write(
|
|
4047
|
-
`connectors run: invalid config for "${name}": ${err instanceof Error ? err.message : String(err)}
|
|
4048
|
-
`
|
|
4049
|
-
);
|
|
4050
|
-
process.exitCode = 1;
|
|
4051
|
-
return;
|
|
4052
|
-
}
|
|
4053
|
-
const connector = createGoogleDriveConnector();
|
|
4054
|
-
const state = await readConnectorState(
|
|
4055
|
-
orchestrator.config.memoryDir,
|
|
4056
|
-
name
|
|
4057
|
-
);
|
|
4058
|
-
runResult = await runConnectorPollOnce({
|
|
4059
|
-
connectorId: name,
|
|
4060
|
-
priorState: state,
|
|
4061
|
-
syncFn: (cursor) => connector.syncIncremental({
|
|
4062
|
-
cursor,
|
|
4063
|
-
// GoogleDriveConnectorConfig is narrower than ConnectorConfig
|
|
4064
|
-
// (no index signature) but is structurally compatible at
|
|
4065
|
-
// runtime. Double-cast via unknown to satisfy the interface.
|
|
4066
|
-
config: validatedCfg
|
|
4067
|
-
}),
|
|
4068
|
-
ingestFn: sharedIngestFn,
|
|
4069
|
-
writeCursorFn: makeWriteCursorFn(name)
|
|
4070
|
-
});
|
|
4071
|
-
} else if (name === NOTION_CONNECTOR_ID) {
|
|
4072
|
-
if (!cfg.notion.enabled) {
|
|
4073
|
-
process.stderr.write(
|
|
4074
|
-
`connectors run: connector "${name}" is disabled. Set connectors.notion.enabled=true in config.
|
|
4075
|
-
`
|
|
3944
|
+
validatedCfg = connectorDefinition.validateConfig(
|
|
3945
|
+
connectorDefinition.rawConfig
|
|
4076
3946
|
);
|
|
4077
|
-
process.exitCode = 1;
|
|
4078
|
-
return;
|
|
4079
|
-
}
|
|
4080
|
-
let validatedCfg;
|
|
4081
|
-
try {
|
|
4082
|
-
validatedCfg = validateNotionConfig(cfg.notion);
|
|
4083
3947
|
} catch (err) {
|
|
4084
3948
|
process.stderr.write(
|
|
4085
3949
|
`connectors run: invalid config for "${name}": ${err instanceof Error ? err.message : String(err)}
|
|
@@ -4088,27 +3952,27 @@ ${doc.content}` : doc.content,
|
|
|
4088
3952
|
process.exitCode = 1;
|
|
4089
3953
|
return;
|
|
4090
3954
|
}
|
|
4091
|
-
const connector =
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
cursor
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
writeCursorFn: makeWriteCursorFn(name)
|
|
3955
|
+
const connector = connectorDefinition.createConnector();
|
|
3956
|
+
runResult = await withConnectorStateLock(orchestrator.config.memoryDir, name, async () => {
|
|
3957
|
+
const state = await readConnectorState(
|
|
3958
|
+
orchestrator.config.memoryDir,
|
|
3959
|
+
name
|
|
3960
|
+
);
|
|
3961
|
+
return runConnectorPollOnce({
|
|
3962
|
+
connectorId: name,
|
|
3963
|
+
priorState: state,
|
|
3964
|
+
syncFn: (cursor) => connector.syncIncremental({
|
|
3965
|
+
cursor,
|
|
3966
|
+
config: validatedCfg
|
|
3967
|
+
}),
|
|
3968
|
+
ingestFn: sharedIngestFn,
|
|
3969
|
+
writeCursorFn: makeWriteCursorFn(name)
|
|
3970
|
+
});
|
|
4108
3971
|
});
|
|
4109
3972
|
} else {
|
|
3973
|
+
const known = builtInConnectorDefinitions2().map((definition) => definition.id).join(", ");
|
|
4110
3974
|
process.stderr.write(
|
|
4111
|
-
`connectors run: unknown connector "${name}". Known connectors: ${
|
|
3975
|
+
`connectors run: unknown connector "${name}". Known connectors: ${known}.
|
|
4112
3976
|
`
|
|
4113
3977
|
);
|
|
4114
3978
|
process.exitCode = 1;
|
|
@@ -4810,14 +4674,14 @@ ${doc.content}` : doc.content,
|
|
|
4810
4674
|
console.log("OK");
|
|
4811
4675
|
});
|
|
4812
4676
|
const dashboardCmd = cmd.command("dashboard").description("Manage live graph dashboard service");
|
|
4813
|
-
dashboardCmd.command("start").description("Start dashboard server (localhost by default)").option("--host <host>", "Bind host", "127.0.0.1").option("--port <n>", "Bind port", "4319").option("--public-dir <path>", "Override static dashboard assets path").action(async (...args) => {
|
|
4677
|
+
dashboardCmd.command("start").description("Start dashboard server (localhost by default)").option("--host <host>", "Bind host", "127.0.0.1").option("--port <n>", "Bind port", "4319").option("--public-dir <path>", "Override static dashboard assets path").option("--token <token>", "Bearer token required for non-loopback dashboard API access").action(async (...args) => {
|
|
4814
4678
|
const options = args[0] ?? {};
|
|
4815
|
-
const portRaw = parseInt(String(options.port ?? "4319"), 10);
|
|
4816
4679
|
const status = await runDashboardStartCliCommand({
|
|
4817
4680
|
memoryDir: orchestrator.config.memoryDir,
|
|
4818
4681
|
host: typeof options.host === "string" ? options.host : "127.0.0.1",
|
|
4819
|
-
port:
|
|
4820
|
-
publicDir: typeof options.publicDir === "string" ? options.publicDir : void 0
|
|
4682
|
+
port: parseDashboardPort(options.port, 4319),
|
|
4683
|
+
publicDir: typeof options.publicDir === "string" ? options.publicDir : void 0,
|
|
4684
|
+
authToken: typeof options.token === "string" ? options.token : void 0
|
|
4821
4685
|
});
|
|
4822
4686
|
console.log(JSON.stringify(status, null, 2));
|
|
4823
4687
|
console.log("OK");
|
|
@@ -5972,7 +5836,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
5972
5836
|
process.exit(1);
|
|
5973
5837
|
}
|
|
5974
5838
|
const limit = parseInt(options.limit ?? "50", 10);
|
|
5975
|
-
const { listPairs } = await import("./contradiction-review-
|
|
5839
|
+
const { listPairs } = await import("./contradiction-review-6V2LXXK6.js");
|
|
5976
5840
|
const result = listPairs(orchestrator.config.memoryDir, {
|
|
5977
5841
|
filter,
|
|
5978
5842
|
namespace: options.namespace,
|
|
@@ -5999,7 +5863,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
5999
5863
|
console.error("pairId is required");
|
|
6000
5864
|
process.exit(1);
|
|
6001
5865
|
}
|
|
6002
|
-
const { readPair } = await import("./contradiction-review-
|
|
5866
|
+
const { readPair } = await import("./contradiction-review-6V2LXXK6.js");
|
|
6003
5867
|
const pair = readPair(orchestrator.config.memoryDir, pairId);
|
|
6004
5868
|
if (!pair) {
|
|
6005
5869
|
console.error(`Pair ${pairId} not found.`);
|
|
@@ -6019,7 +5883,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
6019
5883
|
console.error("--verb is required. Must be one of: keep-a, keep-b, merge, both-valid, needs-more-context");
|
|
6020
5884
|
process.exit(1);
|
|
6021
5885
|
}
|
|
6022
|
-
const { isValidResolutionVerb, executeResolution } = await import("./resolution-
|
|
5886
|
+
const { isValidResolutionVerb, executeResolution } = await import("./resolution-ZY7VM6WS.js");
|
|
6023
5887
|
if (!isValidResolutionVerb(verb)) {
|
|
6024
5888
|
console.error(`Invalid verb: ${verb}. Must be one of: keep-a, keep-b, merge, both-valid, needs-more-context`);
|
|
6025
5889
|
process.exit(1);
|
|
@@ -6045,7 +5909,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
6045
5909
|
});
|
|
6046
5910
|
reviewCmd.command("scan").description("Run an on-demand contradiction scan").option("--namespace <ns>", "Namespace to scan").action(async (...args) => {
|
|
6047
5911
|
const options = args[0] ?? {};
|
|
6048
|
-
const { runContradictionScan } = await import("./contradiction-scan-
|
|
5912
|
+
const { runContradictionScan } = await import("./contradiction-scan-GIRVC4C7.js");
|
|
6049
5913
|
console.log("Running contradiction scan...");
|
|
6050
5914
|
const result = await runContradictionScan({
|
|
6051
5915
|
storage: orchestrator.storage,
|
|
@@ -6085,7 +5949,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
6085
5949
|
console.error(`Invalid --format '${fmt}'. Must be one of: text, json, markdown`);
|
|
6086
5950
|
process.exit(1);
|
|
6087
5951
|
}
|
|
6088
|
-
const { normalizeDreamsStatusWindowHours } = await import("./dreams-ledger-
|
|
5952
|
+
const { normalizeDreamsStatusWindowHours } = await import("./dreams-ledger-3WSCI5V4.js");
|
|
6089
5953
|
let windowHours;
|
|
6090
5954
|
const rawWindowHours = options.windowHours;
|
|
6091
5955
|
try {
|
|
@@ -6198,7 +6062,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
6198
6062
|
}
|
|
6199
6063
|
});
|
|
6200
6064
|
const secureStoreCmd = cmd.command("secure-store").description(
|
|
6201
|
-
"At-rest encryption keyring (issue #690). Manage the secure-store header and the in-memory master key
|
|
6065
|
+
"At-rest encryption keyring (issue #690). Manage the secure-store header and the process-local in-memory master key."
|
|
6202
6066
|
);
|
|
6203
6067
|
secureStoreCmd.command("init").description(
|
|
6204
6068
|
"Initialize a new secure-store header. Prompts for a passphrase, derives a master key via Argon2id by default, and writes the verifier to <memoryDir>/.secure-store/header.json. Refuses to overwrite an existing header."
|
|
@@ -6229,7 +6093,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
6229
6093
|
console.log(renderInitReport(report));
|
|
6230
6094
|
});
|
|
6231
6095
|
secureStoreCmd.command("unlock").description(
|
|
6232
|
-
"Unlock the secure-store. Prompts for the passphrase, validates it against the header verifier, and registers the master key in
|
|
6096
|
+
"Unlock the secure-store for this Remnic process. Prompts for the passphrase, validates it against the header verifier, and registers the master key in this process-local keyring. The key is cleared on `lock`, process restart, or process exit."
|
|
6233
6097
|
).option("--json", "Emit machine-readable JSON only").action(async (...args) => {
|
|
6234
6098
|
const options = args[0] ?? {};
|
|
6235
6099
|
const {
|
|
@@ -6252,7 +6116,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
6252
6116
|
}
|
|
6253
6117
|
});
|
|
6254
6118
|
secureStoreCmd.command("lock").description(
|
|
6255
|
-
"Lock the secure-store. Clears the master key from the
|
|
6119
|
+
"Lock the secure-store in this Remnic process. Clears the master key from the process-local in-memory keyring. Idempotent \u2014 succeeds even if this process is already locked."
|
|
6256
6120
|
).option("--json", "Emit machine-readable JSON only").action(async (...args) => {
|
|
6257
6121
|
const options = args[0] ?? {};
|
|
6258
6122
|
const { runSecureStoreLock, renderLockReport } = await import("./secure-store/index.js");
|
|
@@ -6268,9 +6132,12 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
6268
6132
|
"Encrypt existing plaintext storage-managed memory files in an initialized, unlocked secure-store. Idempotent; already-encrypted files are skipped."
|
|
6269
6133
|
).option("--json", "Emit machine-readable JSON only").action(async (...args) => {
|
|
6270
6134
|
const options = args[0] ?? {};
|
|
6271
|
-
const { runSecureStoreMigrate, renderMigrateReport } = await import("./secure-store/index.js");
|
|
6135
|
+
const { runSecureStoreMigrate, renderMigrateReport, createPassphraseReader } = await import("./secure-store/index.js");
|
|
6272
6136
|
const memoryDir = expandTildePath(orchestrator.config.memoryDir);
|
|
6273
|
-
const report = await runSecureStoreMigrate({
|
|
6137
|
+
const report = await runSecureStoreMigrate({
|
|
6138
|
+
memoryDir,
|
|
6139
|
+
readPassphrase: createPassphraseReader()
|
|
6140
|
+
});
|
|
6274
6141
|
if (options.json === true) {
|
|
6275
6142
|
console.log(JSON.stringify(report, null, 2));
|
|
6276
6143
|
} else {
|
|
@@ -6281,9 +6148,12 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
6281
6148
|
}
|
|
6282
6149
|
});
|
|
6283
6150
|
async function runSecureStoreDisableCommand(options) {
|
|
6284
|
-
const { runSecureStoreDisable, renderDisableReport } = await import("./secure-store/index.js");
|
|
6151
|
+
const { runSecureStoreDisable, renderDisableReport, createPassphraseReader } = await import("./secure-store/index.js");
|
|
6285
6152
|
const memoryDir = expandTildePath(orchestrator.config.memoryDir);
|
|
6286
|
-
const report = await runSecureStoreDisable({
|
|
6153
|
+
const report = await runSecureStoreDisable({
|
|
6154
|
+
memoryDir,
|
|
6155
|
+
readPassphrase: createPassphraseReader()
|
|
6156
|
+
});
|
|
6287
6157
|
if (options.json === true) {
|
|
6288
6158
|
console.log(JSON.stringify(report, null, 2));
|
|
6289
6159
|
} else {
|
|
@@ -6304,7 +6174,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
6304
6174
|
await runSecureStoreDisableCommand(options);
|
|
6305
6175
|
});
|
|
6306
6176
|
secureStoreCmd.command("status").description(
|
|
6307
|
-
"Report secure-store status: whether a header exists, whether
|
|
6177
|
+
"Report secure-store status: whether a header exists, whether this Remnic process currently holds the key, KDF parameters, and last-unlock timestamp."
|
|
6308
6178
|
).option("--json", "Emit machine-readable JSON only").action(async (...args) => {
|
|
6309
6179
|
const options = args[0] ?? {};
|
|
6310
6180
|
const { runSecureStoreStatus, renderStatusReport } = await import("./secure-store/index.js");
|
|
@@ -6319,7 +6189,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
6319
6189
|
const peerCmd = cmd.command("peer").description("Manage the peer registry (issue #679).");
|
|
6320
6190
|
peerCmd.command("list").description("List all registered peers").option("--json", "Emit machine-readable JSON only").action(async (...args) => {
|
|
6321
6191
|
const options = args[0] ?? {};
|
|
6322
|
-
const { listPeers } = await import("./peers
|
|
6192
|
+
const { listPeers } = await import("./peers/index.js");
|
|
6323
6193
|
const peers = await listPeers(orchestrator.config.memoryDir);
|
|
6324
6194
|
if (options.json === true) {
|
|
6325
6195
|
console.log(JSON.stringify({ peers }, null, 2));
|
|
@@ -6343,7 +6213,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
6343
6213
|
console.error("peer id is required");
|
|
6344
6214
|
process.exit(1);
|
|
6345
6215
|
}
|
|
6346
|
-
const peersShow = await import("./peers
|
|
6216
|
+
const peersShow = await import("./peers/index.js");
|
|
6347
6217
|
const validateIdShow = peersShow.assertValidPeerId;
|
|
6348
6218
|
try {
|
|
6349
6219
|
validateIdShow(id);
|
|
@@ -6456,7 +6326,7 @@ ${peer.notes.split("\n").map((l) => ` ${l}`).join("\n")}`);
|
|
|
6456
6326
|
console.error("peer id is required");
|
|
6457
6327
|
process.exit(1);
|
|
6458
6328
|
}
|
|
6459
|
-
const peersProfile = await import("./peers
|
|
6329
|
+
const peersProfile = await import("./peers/index.js");
|
|
6460
6330
|
const validateIdProfile = peersProfile.assertValidPeerId;
|
|
6461
6331
|
try {
|
|
6462
6332
|
validateIdProfile(id);
|
|
@@ -6491,7 +6361,7 @@ ${peer.notes.split("\n").map((l) => ` ${l}`).join("\n")}`);
|
|
|
6491
6361
|
const options = args[0] ?? {};
|
|
6492
6362
|
const isDryRun = options.dryRun === true;
|
|
6493
6363
|
const displayName = typeof options.displayName === "string" && options.displayName.length > 0 ? options.displayName : void 0;
|
|
6494
|
-
const { migrateFromIdentityAnchor } = await import("./migrate-from-identity-anchor-
|
|
6364
|
+
const { migrateFromIdentityAnchor } = await import("./migrate-from-identity-anchor-EB4XI4Q2.js");
|
|
6495
6365
|
let result;
|
|
6496
6366
|
try {
|
|
6497
6367
|
result = await migrateFromIdentityAnchor({
|
|
@@ -6565,8 +6435,8 @@ Legacy identity-anchor files are untouched. Verify the migration result`);
|
|
|
6565
6435
|
return;
|
|
6566
6436
|
}
|
|
6567
6437
|
if (typeof options.trace === "string" && options.trace.length > 0) {
|
|
6568
|
-
const { replayTrace, parseSpeedFlag } = await import("./trace-
|
|
6569
|
-
const { expandTildePath: expandTildePath2 } = await import("./path-
|
|
6438
|
+
const { replayTrace, parseSpeedFlag } = await import("./trace-WM7V4CKI.js");
|
|
6439
|
+
const { expandTildePath: expandTildePath2 } = await import("./path-X2K5XCHL.js");
|
|
6570
6440
|
const tracePath = expandTildePath2(options.trace);
|
|
6571
6441
|
let speed;
|
|
6572
6442
|
try {
|
|
@@ -6596,8 +6466,8 @@ Legacy identity-anchor files are untouched. Verify the migration result`);
|
|
|
6596
6466
|
const { runConsoleTui } = await import("./tui-RI7P6PBS.js");
|
|
6597
6467
|
let recorder = null;
|
|
6598
6468
|
if (typeof options.recordTrace === "string" && options.recordTrace.length > 0) {
|
|
6599
|
-
const { openTraceRecorder } = await import("./trace-
|
|
6600
|
-
const { expandTildePath: expandTildePath2 } = await import("./path-
|
|
6469
|
+
const { openTraceRecorder } = await import("./trace-WM7V4CKI.js");
|
|
6470
|
+
const { expandTildePath: expandTildePath2 } = await import("./path-X2K5XCHL.js");
|
|
6601
6471
|
recorder = await openTraceRecorder(
|
|
6602
6472
|
expandTildePath2(options.recordTrace)
|
|
6603
6473
|
);
|
|
@@ -6610,7 +6480,7 @@ Legacy identity-anchor files are untouched. Verify the migration result`);
|
|
|
6610
6480
|
} finally {
|
|
6611
6481
|
if (recorder) {
|
|
6612
6482
|
const CLOSE_TIMEOUT_MS = 2e3;
|
|
6613
|
-
const { flushWithTimeout } = await import("./trace-
|
|
6483
|
+
const { flushWithTimeout } = await import("./trace-WM7V4CKI.js");
|
|
6614
6484
|
const flushResult = await flushWithTimeout(
|
|
6615
6485
|
(signal) => recorder.close(signal),
|
|
6616
6486
|
CLOSE_TIMEOUT_MS
|
|
@@ -6650,15 +6520,6 @@ function parseDuration(duration) {
|
|
|
6650
6520
|
}
|
|
6651
6521
|
|
|
6652
6522
|
export {
|
|
6653
|
-
isImportRole,
|
|
6654
|
-
parseIsoTimestamp,
|
|
6655
|
-
validateImportTurn,
|
|
6656
|
-
registerBulkImportSource,
|
|
6657
|
-
getBulkImportSource,
|
|
6658
|
-
listBulkImportSources,
|
|
6659
|
-
clearBulkImportSources,
|
|
6660
|
-
formatBatchTranscript,
|
|
6661
|
-
runBulkImportPipeline,
|
|
6662
6523
|
convertMemoriesToRecords,
|
|
6663
6524
|
registerTrainingExportAdapter,
|
|
6664
6525
|
getTrainingExportAdapter,
|
|
@@ -6755,4 +6616,4 @@ export {
|
|
|
6755
6616
|
resolveMemoryDirForNamespace,
|
|
6756
6617
|
registerCli
|
|
6757
6618
|
};
|
|
6758
|
-
//# sourceMappingURL=chunk-
|
|
6619
|
+
//# sourceMappingURL=chunk-FCOQXV3T.js.map
|