@theokit/sdk 4.62.0 → 4.63.1
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/CHANGELOG.md +97 -0
- package/dist/a2a/index.cjs +2 -2
- package/dist/a2a/index.js +1 -1
- package/dist/{agent-DIu6FooJ.d.ts → agent-BFno7Sfn.d.ts} +36 -21
- package/dist/agent-WK7MKIMH.cjs +66 -0
- package/dist/{agent-VYPUO4UB.cjs.map → agent-WK7MKIMH.cjs.map} +1 -1
- package/dist/{agent-D3Xr_-6Z.d.cts → agent-X0DKA943.d.cts} +36 -21
- package/dist/agent-YWMBM7LX.js +57 -0
- package/dist/{agent-NVBFTY5H.js.map → agent-YWMBM7LX.js.map} +1 -1
- package/dist/agent-session-store-6EL5NPA4.cjs +24 -0
- package/dist/{agent-session-store-WAKLOKWK.cjs.map → agent-session-store-6EL5NPA4.cjs.map} +1 -1
- package/dist/agent-session-store-OPGRB4XM.js +7 -0
- package/dist/{agent-session-store-G2BMUZQV.js.map → agent-session-store-OPGRB4XM.js.map} +1 -1
- package/dist/auth/index.cjs +18 -18
- package/dist/auth/index.js +6 -6
- package/dist/{batch-ND32UKZS.cjs → batch-BXYTW2DP.cjs} +27 -27
- package/dist/{batch-ND32UKZS.cjs.map → batch-BXYTW2DP.cjs.map} +1 -1
- package/dist/{batch-2TGJMNCJ.js → batch-L4ZXS46M.js} +10 -10
- package/dist/{batch-2TGJMNCJ.js.map → batch-L4ZXS46M.js.map} +1 -1
- package/dist/{chunk-VF7EWVDG.js → chunk-2GUYQR5P.js} +3 -3
- package/dist/{chunk-VF7EWVDG.js.map → chunk-2GUYQR5P.js.map} +1 -1
- package/dist/{chunk-J2UROOIG.cjs → chunk-2HVF2WJY.cjs} +8 -8
- package/dist/{chunk-J2UROOIG.cjs.map → chunk-2HVF2WJY.cjs.map} +1 -1
- package/dist/{chunk-44MBDIHG.js → chunk-2QDYBS2A.js} +3 -3
- package/dist/{chunk-44MBDIHG.js.map → chunk-2QDYBS2A.js.map} +1 -1
- package/dist/{chunk-NGESVVJN.cjs → chunk-3FFAEAUJ.cjs} +17 -17
- package/dist/{chunk-NGESVVJN.cjs.map → chunk-3FFAEAUJ.cjs.map} +1 -1
- package/dist/{chunk-GWC3HADL.cjs → chunk-3NSS2OIZ.cjs} +4 -4
- package/dist/{chunk-GWC3HADL.cjs.map → chunk-3NSS2OIZ.cjs.map} +1 -1
- package/dist/{chunk-CV7XMBHP.js → chunk-3O42QOMJ.js} +3 -3
- package/dist/{chunk-CV7XMBHP.js.map → chunk-3O42QOMJ.js.map} +1 -1
- package/dist/{chunk-IWBGCBR6.cjs → chunk-4CLOXP6H.cjs} +4 -4
- package/dist/{chunk-IWBGCBR6.cjs.map → chunk-4CLOXP6H.cjs.map} +1 -1
- package/dist/{chunk-YEXA3PGR.js → chunk-4FFBAUFS.js} +5 -5
- package/dist/{chunk-YEXA3PGR.js.map → chunk-4FFBAUFS.js.map} +1 -1
- package/dist/{chunk-HY57ULY2.cjs → chunk-4PYZ5AX3.cjs} +5 -5
- package/dist/{chunk-HY57ULY2.cjs.map → chunk-4PYZ5AX3.cjs.map} +1 -1
- package/dist/{chunk-OC4NTGMN.js → chunk-4QZSA2HJ.js} +3 -3
- package/dist/{chunk-OC4NTGMN.js.map → chunk-4QZSA2HJ.js.map} +1 -1
- package/dist/{chunk-K3FW2XZD.cjs → chunk-4ZHTIJNE.cjs} +9 -9
- package/dist/{chunk-K3FW2XZD.cjs.map → chunk-4ZHTIJNE.cjs.map} +1 -1
- package/dist/{chunk-BUIK7GUA.cjs → chunk-5HEG4CQH.cjs} +8 -8
- package/dist/{chunk-BUIK7GUA.cjs.map → chunk-5HEG4CQH.cjs.map} +1 -1
- package/dist/{chunk-SKXBJ2NU.cjs → chunk-5VB22SYX.cjs} +7 -54
- package/dist/chunk-5VB22SYX.cjs.map +1 -0
- package/dist/{chunk-5USCYPPI.cjs → chunk-6HKGLTJI.cjs} +8 -8
- package/dist/{chunk-5USCYPPI.cjs.map → chunk-6HKGLTJI.cjs.map} +1 -1
- package/dist/chunk-6RKUO7AW.cjs +864 -0
- package/dist/chunk-6RKUO7AW.cjs.map +1 -0
- package/dist/{chunk-5JLFFPCH.js → chunk-7YGCPMGB.js} +4 -4
- package/dist/{chunk-5JLFFPCH.js.map → chunk-7YGCPMGB.js.map} +1 -1
- package/dist/{chunk-SUKXXLWD.js → chunk-A46SWMIF.js} +6 -6
- package/dist/{chunk-SUKXXLWD.js.map → chunk-A46SWMIF.js.map} +1 -1
- package/dist/{chunk-F7AQV62G.js → chunk-A4JVILQU.js} +5 -5
- package/dist/{chunk-F7AQV62G.js.map → chunk-A4JVILQU.js.map} +1 -1
- package/dist/chunk-A4RAL2ER.cjs +51 -0
- package/dist/chunk-A4RAL2ER.cjs.map +1 -0
- package/dist/{chunk-44JAAH4X.js → chunk-B3IMEBOA.js} +3 -3
- package/dist/{chunk-44JAAH4X.js.map → chunk-B3IMEBOA.js.map} +1 -1
- package/dist/{chunk-QDED6YO6.cjs → chunk-B4EOJWOY.cjs} +5 -5
- package/dist/{chunk-QDED6YO6.cjs.map → chunk-B4EOJWOY.cjs.map} +1 -1
- package/dist/{chunk-YJDH3CKG.js → chunk-BP46RJ5X.js} +5 -5
- package/dist/{chunk-YJDH3CKG.js.map → chunk-BP46RJ5X.js.map} +1 -1
- package/dist/{chunk-QRSUA2CV.js → chunk-BU4KFWXF.js} +3 -3
- package/dist/{chunk-QRSUA2CV.js.map → chunk-BU4KFWXF.js.map} +1 -1
- package/dist/{chunk-IBYRA5PM.js → chunk-BVJJ3DRV.js} +6 -6
- package/dist/{chunk-IBYRA5PM.js.map → chunk-BVJJ3DRV.js.map} +1 -1
- package/dist/{chunk-AQLGBKNT.js → chunk-BZRFXJHA.js} +3 -3
- package/dist/{chunk-AQLGBKNT.js.map → chunk-BZRFXJHA.js.map} +1 -1
- package/dist/{chunk-UQGQFBRL.js → chunk-C3NT3PVE.js} +3 -3
- package/dist/{chunk-UQGQFBRL.js.map → chunk-C3NT3PVE.js.map} +1 -1
- package/dist/{chunk-UC3HT2S4.js → chunk-C72AZW7J.js} +3 -3
- package/dist/{chunk-UC3HT2S4.js.map → chunk-C72AZW7J.js.map} +1 -1
- package/dist/{chunk-WNTAPVU5.cjs → chunk-CQBXOJ6U.cjs} +13 -13
- package/dist/{chunk-WNTAPVU5.cjs.map → chunk-CQBXOJ6U.cjs.map} +1 -1
- package/dist/{chunk-T7XEKOVW.js → chunk-D4CUGAKZ.js} +3 -3
- package/dist/{chunk-T7XEKOVW.js.map → chunk-D4CUGAKZ.js.map} +1 -1
- package/dist/chunk-DKD3MH6A.js +194 -0
- package/dist/chunk-DKD3MH6A.js.map +1 -0
- package/dist/{chunk-YXGAW7BB.js → chunk-DN2PACRI.js} +10 -10
- package/dist/{chunk-YXGAW7BB.js.map → chunk-DN2PACRI.js.map} +1 -1
- package/dist/{chunk-XSX2UU6Y.cjs → chunk-DXGZ2NUG.cjs} +10 -10
- package/dist/{chunk-XSX2UU6Y.cjs.map → chunk-DXGZ2NUG.cjs.map} +1 -1
- package/dist/{chunk-NUKRL3I6.cjs → chunk-EG4QM7ZJ.cjs} +18 -2
- package/dist/chunk-EG4QM7ZJ.cjs.map +1 -0
- package/dist/chunk-GEEXBYFL.js +831 -0
- package/dist/chunk-GEEXBYFL.js.map +1 -0
- package/dist/chunk-GKEFRLU7.cjs +21 -0
- package/dist/chunk-GKEFRLU7.cjs.map +1 -0
- package/dist/{chunk-NIRE5CNO.cjs → chunk-HCZD23VS.cjs} +13 -13
- package/dist/{chunk-NIRE5CNO.cjs.map → chunk-HCZD23VS.cjs.map} +1 -1
- package/dist/chunk-HOXVQ5FR.cjs +201 -0
- package/dist/chunk-HOXVQ5FR.cjs.map +1 -0
- package/dist/{chunk-QARJGQSA.js → chunk-HS7AVXTF.js} +3 -3
- package/dist/{chunk-QARJGQSA.js.map → chunk-HS7AVXTF.js.map} +1 -1
- package/dist/{chunk-4I55V454.cjs → chunk-I6HGWHPU.cjs} +4 -4
- package/dist/{chunk-4I55V454.cjs.map → chunk-I6HGWHPU.cjs.map} +1 -1
- package/dist/{chunk-T73NA43R.js → chunk-IPYYKCRC.js} +3 -3
- package/dist/{chunk-T73NA43R.js.map → chunk-IPYYKCRC.js.map} +1 -1
- package/dist/{chunk-6OBIWHDR.cjs → chunk-ITYQ6VBP.cjs} +24 -365
- package/dist/chunk-ITYQ6VBP.cjs.map +1 -0
- package/dist/chunk-JPBKYL3B.cjs +18 -0
- package/dist/{chunk-6HTXPPHK.cjs.map → chunk-JPBKYL3B.cjs.map} +1 -1
- package/dist/{chunk-MZ2FGBLZ.js → chunk-K5OJUYSZ.js} +4 -4
- package/dist/{chunk-MZ2FGBLZ.js.map → chunk-K5OJUYSZ.js.map} +1 -1
- package/dist/{chunk-SKOCYA55.js → chunk-KIH6IZ43.js} +90 -88
- package/dist/chunk-KIH6IZ43.js.map +1 -0
- package/dist/{chunk-EI2Q7SJ5.cjs → chunk-KQ7TS7WW.cjs} +10 -10
- package/dist/{chunk-EI2Q7SJ5.cjs.map → chunk-KQ7TS7WW.cjs.map} +1 -1
- package/dist/{chunk-RUDY2GTT.js → chunk-KQRW2GPZ.js} +5 -5
- package/dist/{chunk-RUDY2GTT.js.map → chunk-KQRW2GPZ.js.map} +1 -1
- package/dist/{chunk-P5LCASTC.cjs → chunk-KYAJINUI.cjs} +125 -125
- package/dist/{chunk-P5LCASTC.cjs.map → chunk-KYAJINUI.cjs.map} +1 -1
- package/dist/{chunk-CQ2TQ32Y.js → chunk-LWGSI6M3.js} +5 -50
- package/dist/chunk-LWGSI6M3.js.map +1 -0
- package/dist/{chunk-ZHPWGIUX.js → chunk-LXI4XZEC.js} +5 -5
- package/dist/{chunk-ZHPWGIUX.js.map → chunk-LXI4XZEC.js.map} +1 -1
- package/dist/{chunk-AG5JPQIY.js → chunk-LXQ6HKPS.js} +3 -3
- package/dist/{chunk-AG5JPQIY.js.map → chunk-LXQ6HKPS.js.map} +1 -1
- package/dist/{chunk-ROYPRJH4.cjs → chunk-LYRDF5TQ.cjs} +9 -9
- package/dist/{chunk-ROYPRJH4.cjs.map → chunk-LYRDF5TQ.cjs.map} +1 -1
- package/dist/{chunk-G24KZRSA.js → chunk-N2U4AZGB.js} +3 -3
- package/dist/{chunk-G24KZRSA.js.map → chunk-N2U4AZGB.js.map} +1 -1
- package/dist/{chunk-4ERPXIVB.js → chunk-O73J46PV.js} +5 -5
- package/dist/{chunk-4ERPXIVB.js.map → chunk-O73J46PV.js.map} +1 -1
- package/dist/{chunk-F3YZMOAU.cjs → chunk-O7DK5PBJ.cjs} +4 -4
- package/dist/{chunk-F3YZMOAU.cjs.map → chunk-O7DK5PBJ.cjs.map} +1 -1
- package/dist/{chunk-Z4BCLVTI.cjs → chunk-O7LZFG6O.cjs} +5 -5
- package/dist/{chunk-Z4BCLVTI.cjs.map → chunk-O7LZFG6O.cjs.map} +1 -1
- package/dist/{chunk-3YJNUKYN.cjs → chunk-OHLDPWTA.cjs} +15 -15
- package/dist/{chunk-3YJNUKYN.cjs.map → chunk-OHLDPWTA.cjs.map} +1 -1
- package/dist/{chunk-FUL2I7G5.js → chunk-OSEG74VJ.js} +8 -8
- package/dist/{chunk-FUL2I7G5.js.map → chunk-OSEG74VJ.js.map} +1 -1
- package/dist/{chunk-UCBJBJ27.js → chunk-PUAEFLYK.js} +4 -4
- package/dist/{chunk-UCBJBJ27.js.map → chunk-PUAEFLYK.js.map} +1 -1
- package/dist/{chunk-CWHTMNNK.cjs → chunk-Q7LPTOD6.cjs} +24 -24
- package/dist/{chunk-CWHTMNNK.cjs.map → chunk-Q7LPTOD6.cjs.map} +1 -1
- package/dist/{chunk-2C72DXQF.cjs → chunk-RFMBZPOW.cjs} +9 -9
- package/dist/{chunk-2C72DXQF.cjs.map → chunk-RFMBZPOW.cjs.map} +1 -1
- package/dist/{chunk-NLTVXLGT.js → chunk-RFXWMRFC.js} +3 -3
- package/dist/{chunk-NLTVXLGT.js.map → chunk-RFXWMRFC.js.map} +1 -1
- package/dist/{chunk-2DG7KW4L.cjs → chunk-RMWTPV3M.cjs} +8 -8
- package/dist/{chunk-2DG7KW4L.cjs.map → chunk-RMWTPV3M.cjs.map} +1 -1
- package/dist/{chunk-P6A3M6VD.cjs → chunk-SZVR77EJ.cjs} +10 -10
- package/dist/{chunk-P6A3M6VD.cjs.map → chunk-SZVR77EJ.cjs.map} +1 -1
- package/dist/{chunk-3E77SX4H.js → chunk-TAZVKYWJ.js} +3 -3
- package/dist/{chunk-3E77SX4H.js.map → chunk-TAZVKYWJ.js.map} +1 -1
- package/dist/{chunk-WKRSH2VR.js → chunk-U6IFHFWK.js} +3 -3
- package/dist/{chunk-WKRSH2VR.js.map → chunk-U6IFHFWK.js.map} +1 -1
- package/dist/{chunk-I6TGFUCO.cjs → chunk-UALX2J2Q.cjs} +4 -4
- package/dist/{chunk-I6TGFUCO.cjs.map → chunk-UALX2J2Q.cjs.map} +1 -1
- package/dist/{chunk-XN7NOENA.js → chunk-UBDMVMBZ.js} +5 -5
- package/dist/{chunk-XN7NOENA.js.map → chunk-UBDMVMBZ.js.map} +1 -1
- package/dist/{chunk-QEKI3YKI.js → chunk-UEXIJTLC.js} +14 -349
- package/dist/chunk-UEXIJTLC.js.map +1 -0
- package/dist/{chunk-DQKERTND.cjs → chunk-UGT7GK7I.cjs} +11 -11
- package/dist/{chunk-DQKERTND.cjs.map → chunk-UGT7GK7I.cjs.map} +1 -1
- package/dist/{chunk-FKMUFNQE.js → chunk-UMP6OJIM.js} +4 -4
- package/dist/{chunk-FKMUFNQE.js.map → chunk-UMP6OJIM.js.map} +1 -1
- package/dist/{chunk-AEOZTXVW.js → chunk-UNYXQ4M5.js} +3 -3
- package/dist/{chunk-AEOZTXVW.js.map → chunk-UNYXQ4M5.js.map} +1 -1
- package/dist/{chunk-2BDH744Z.js → chunk-UTSRIDKZ.js} +3 -3
- package/dist/{chunk-2BDH744Z.js.map → chunk-UTSRIDKZ.js.map} +1 -1
- package/dist/{chunk-2ADR2GSO.cjs → chunk-UU36SHFY.cjs} +5 -5
- package/dist/{chunk-2ADR2GSO.cjs.map → chunk-UU36SHFY.cjs.map} +1 -1
- package/dist/{chunk-R3UPQFKK.cjs → chunk-V2BOS4WF.cjs} +9 -9
- package/dist/{chunk-R3UPQFKK.cjs.map → chunk-V2BOS4WF.cjs.map} +1 -1
- package/dist/chunk-WE22OXQA.js +48 -0
- package/dist/chunk-WE22OXQA.js.map +1 -0
- package/dist/{chunk-Q4CMI2LP.js → chunk-WLQNMXQE.js} +5 -5
- package/dist/{chunk-Q4CMI2LP.js.map → chunk-WLQNMXQE.js.map} +1 -1
- package/dist/{chunk-XWL6O3SW.cjs → chunk-WNO3C3N2.cjs} +4 -4
- package/dist/{chunk-XWL6O3SW.cjs.map → chunk-WNO3C3N2.cjs.map} +1 -1
- package/dist/{chunk-T7O6K6PX.js → chunk-XEQ3TM66.js} +18 -3
- package/dist/chunk-XEQ3TM66.js.map +1 -0
- package/dist/{chunk-BVZW2B5V.cjs → chunk-XJCXEKMD.cjs} +4 -4
- package/dist/{chunk-BVZW2B5V.cjs.map → chunk-XJCXEKMD.cjs.map} +1 -1
- package/dist/{chunk-JTB5Q42C.cjs → chunk-XL7Q7HB2.cjs} +4 -4
- package/dist/{chunk-JTB5Q42C.cjs.map → chunk-XL7Q7HB2.cjs.map} +1 -1
- package/dist/chunk-XO4SOZN6.js +19 -0
- package/dist/chunk-XO4SOZN6.js.map +1 -0
- package/dist/{chunk-CQGYNZ3K.cjs → chunk-XWTLIGO3.cjs} +4 -4
- package/dist/{chunk-CQGYNZ3K.cjs.map → chunk-XWTLIGO3.cjs.map} +1 -1
- package/dist/{chunk-6SBW4QR2.cjs → chunk-YML4ME27.cjs} +11 -11
- package/dist/{chunk-6SBW4QR2.cjs.map → chunk-YML4ME27.cjs.map} +1 -1
- package/dist/{chunk-P6H23T43.cjs → chunk-ZCIRZE37.cjs} +11 -11
- package/dist/{chunk-P6H23T43.cjs.map → chunk-ZCIRZE37.cjs.map} +1 -1
- package/dist/{chunk-QI7WE46I.cjs → chunk-ZLQSWSJ2.cjs} +11 -11
- package/dist/{chunk-QI7WE46I.cjs.map → chunk-ZLQSWSJ2.cjs.map} +1 -1
- package/dist/{chunk-AH6WD7JR.cjs → chunk-ZMRD5DZQ.cjs} +362 -360
- package/dist/chunk-ZMRD5DZQ.cjs.map +1 -0
- package/dist/{chunk-ILCGLTSA.cjs → chunk-ZSWPZ23K.cjs} +4 -4
- package/dist/{chunk-ILCGLTSA.cjs.map → chunk-ZSWPZ23K.cjs.map} +1 -1
- package/dist/{chunk-IDCKSLYH.js → chunk-ZZMZWBR6.js} +3 -3
- package/dist/{chunk-IDCKSLYH.js.map → chunk-ZZMZWBR6.js.map} +1 -1
- package/dist/compact-session-QV57KR66.cjs +59 -0
- package/dist/{compact-session-GJXJD73F.cjs.map → compact-session-QV57KR66.cjs.map} +1 -1
- package/dist/compact-session-RIGOWC4Y.js +22 -0
- package/dist/{compact-session-TSMQOIHO.js.map → compact-session-RIGOWC4Y.js.map} +1 -1
- package/dist/compaction.cjs +17 -17
- package/dist/compaction.js +4 -4
- package/dist/concurrency.cjs +7 -7
- package/dist/concurrency.js +5 -5
- package/dist/context-AGQ3DIZU.cjs +24 -0
- package/dist/{context-LCKNH2XI.cjs.map → context-AGQ3DIZU.cjs.map} +1 -1
- package/dist/context-GQRFBCLP.js +7 -0
- package/dist/{context-MZSKGKYR.js.map → context-GQRFBCLP.js.map} +1 -1
- package/dist/{cron-BcWmzWzT.d.cts → cron-BuiRPrvt.d.cts} +1 -1
- package/dist/{cron-De6hzWCF.d.ts → cron-C2SIi31n.d.ts} +1 -1
- package/dist/cron.cjs +37 -35
- package/dist/cron.d.cts +2 -2
- package/dist/cron.d.ts +2 -2
- package/dist/cron.js +36 -34
- package/dist/errors.cjs +22 -22
- package/dist/errors.js +3 -3
- package/dist/eval.cjs +42 -40
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +36 -34
- package/dist/eval.js.map +1 -1
- package/dist/{executor-ZERJ3DGN.cjs → executor-6CYCA7MI.cjs} +25 -25
- package/dist/{executor-ZERJ3DGN.cjs.map → executor-6CYCA7MI.cjs.map} +1 -1
- package/dist/{executor-BMEHFOXZ.js → executor-QSEC3MRH.js} +8 -8
- package/dist/{executor-BMEHFOXZ.js.map → executor-QSEC3MRH.js.map} +1 -1
- package/dist/filesystem/index.cjs +8 -8
- package/dist/filesystem/index.js +4 -4
- package/dist/fs-session-store-4PIHT5UX.cjs +20 -0
- package/dist/{fs-session-store-XZ7ZTB3A.cjs.map → fs-session-store-4PIHT5UX.cjs.map} +1 -1
- package/dist/fs-session-store-NM6YSTE2.js +11 -0
- package/dist/{fs-session-store-4BHGIWRE.js.map → fs-session-store-NM6YSTE2.js.map} +1 -1
- package/dist/generate-object-GUNAUVBX.js +8 -0
- package/dist/{generate-object-N5MDZUJI.js.map → generate-object-GUNAUVBX.js.map} +1 -1
- package/dist/generate-object-R7HTMW7F.cjs +21 -0
- package/dist/{generate-object-PGSP5U7N.cjs.map → generate-object-R7HTMW7F.cjs.map} +1 -1
- package/dist/index-manager-RBDHP3PM.js +17 -0
- package/dist/{index-manager-AHAYJ33H.js.map → index-manager-RBDHP3PM.js.map} +1 -1
- package/dist/index-manager-UZBF22BJ.cjs +26 -0
- package/dist/{index-manager-RHPFVFSC.cjs.map → index-manager-UZBF22BJ.cjs.map} +1 -1
- package/dist/index.cjs +146 -319
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +62 -235
- package/dist/index.js.map +1 -1
- package/dist/{inject-session-ZCQUB3IT.js → inject-session-DAR7OUCW.js} +8 -8
- package/dist/{inject-session-ZCQUB3IT.js.map → inject-session-DAR7OUCW.js.map} +1 -1
- package/dist/{inject-session-PPSO2IDD.cjs → inject-session-WQKMC3GR.cjs} +10 -10
- package/dist/{inject-session-PPSO2IDD.cjs.map → inject-session-WQKMC3GR.cjs.map} +1 -1
- package/dist/internal/memory/active-memory.d.ts +8 -1
- package/dist/internal/memory/adapters/index.cjs +9 -9
- package/dist/internal/memory/adapters/index.js +8 -8
- package/dist/internal/memory/dreaming/diary.d.ts +39 -2
- package/dist/internal/memory/index-db.d.ts +44 -1
- package/dist/internal/memory/index-manager-contract.d.ts +10 -0
- package/dist/internal/memory/index-manager-helpers.d.ts +20 -1
- package/dist/internal/memory/index-manager.d.ts +1 -1
- package/dist/internal/memory/lance-index.d.ts +15 -1
- package/dist/internal/memory/migrate-sqlite-to-lance.d.ts +43 -0
- package/dist/internal/memory/storage/index.cjs +101 -18
- package/dist/internal/memory/storage/index.d.cts +11 -1
- package/dist/internal/memory/storage/index.d.ts +11 -1
- package/dist/internal/memory/storage/index.js +10 -7
- package/dist/internal/memory/storage/markdown-store.d.cts +13 -42
- package/dist/internal/memory/storage/markdown-store.d.ts +13 -42
- package/dist/internal/memory/storage/memory-root.d.cts +93 -0
- package/dist/internal/memory/storage/memory-root.d.ts +93 -0
- package/dist/internal/memory/storage/session-loader.d.cts +35 -1
- package/dist/internal/memory/storage/session-loader.d.ts +35 -1
- package/dist/internal/memory/storage/session-summary-writer.d.cts +50 -2
- package/dist/internal/memory/storage/session-summary-writer.d.ts +50 -2
- package/dist/internal/memory/storage/transcript-store.d.cts +38 -1
- package/dist/internal/memory/storage/transcript-store.d.ts +38 -1
- package/dist/internal/memory/storage/wiki-loader.d.cts +27 -2
- package/dist/internal/memory/storage/wiki-loader.d.ts +27 -2
- package/dist/internal/memory/tools.d.ts +8 -1
- package/dist/internal/memory/types.d.ts +5 -0
- package/dist/internal/persistence/index.cjs +29 -28
- package/dist/internal/persistence/index.cjs.map +1 -1
- package/dist/internal/persistence/index.js +8 -7
- package/dist/internal/persistence/index.js.map +1 -1
- package/dist/internal/persistence/session-dir.d.cts +0 -15
- package/dist/internal/persistence/session-dir.d.ts +0 -15
- package/dist/internal/runtime/memory/memory-store.d.ts +2 -2
- package/dist/internal/security/index.cjs +14 -14
- package/dist/internal/security/index.js +4 -4
- package/dist/judge-call-LAHMBJ57.cjs +23 -0
- package/dist/{judge-call-EGYRC2RE.cjs.map → judge-call-LAHMBJ57.cjs.map} +1 -1
- package/dist/judge-call-LVXABPS3.js +6 -0
- package/dist/{judge-call-DWHAJATE.js.map → judge-call-LVXABPS3.js.map} +1 -1
- package/dist/mcp-auth.cjs +15 -15
- package/dist/mcp-auth.js +5 -5
- package/dist/models.cjs +22 -22
- package/dist/models.js +7 -7
- package/dist/path-safety.cjs +11 -11
- package/dist/path-safety.js +4 -4
- package/dist/persistence.cjs +33 -32
- package/dist/persistence.cjs.map +1 -1
- package/dist/persistence.js +10 -9
- package/dist/persistence.js.map +1 -1
- package/dist/project.cjs +6 -6
- package/dist/project.js +4 -4
- package/dist/providers.cjs +9 -9
- package/dist/providers.js +7 -7
- package/dist/registry-75W33OGL.js +10 -0
- package/dist/{registry-VFP3WWQP.js.map → registry-75W33OGL.js.map} +1 -1
- package/dist/registry-V7BDQ6QB.cjs +47 -0
- package/dist/{registry-VFKX7WOP.cjs.map → registry-V7BDQ6QB.cjs.map} +1 -1
- package/dist/retry.cjs +5 -5
- package/dist/retry.js +4 -4
- package/dist/sandbox/index.cjs +7 -7
- package/dist/sandbox/index.js +3 -3
- package/dist/server/errors-envelope.cjs +15 -15
- package/dist/server/errors-envelope.js +4 -4
- package/dist/session-transcript-6WNITKRE.cjs +63 -0
- package/dist/{session-transcript-HF5GEU5M.cjs.map → session-transcript-6WNITKRE.cjs.map} +1 -1
- package/dist/session-transcript-XAEKW6P7.js +6 -0
- package/dist/{session-transcript-P462ZRHX.js.map → session-transcript-XAEKW6P7.js.map} +1 -1
- package/dist/skills.cjs +8 -8
- package/dist/skills.js +6 -6
- package/dist/stream-object-UF4QRQRU.js +8 -0
- package/dist/{stream-object-L57K4OFS.js.map → stream-object-UF4QRQRU.js.map} +1 -1
- package/dist/stream-object-ZJTQNKY3.cjs +21 -0
- package/dist/{stream-object-BUCF5PHO.cjs.map → stream-object-ZJTQNKY3.cjs.map} +1 -1
- package/dist/subagents-loader-CRT5LLL3.js +8 -0
- package/dist/{subagents-loader-6ATCDEKN.js.map → subagents-loader-CRT5LLL3.js.map} +1 -1
- package/dist/subagents-loader-YEUFFPAL.cjs +17 -0
- package/dist/{subagents-loader-X5QKODCL.cjs.map → subagents-loader-YEUFFPAL.cjs.map} +1 -1
- package/dist/subagents-loader.cjs +7 -7
- package/dist/subagents-loader.d.cts +1 -1
- package/dist/subagents-loader.d.ts +1 -1
- package/dist/subagents-loader.js +5 -5
- package/dist/subscription/index.cjs +4 -4
- package/dist/subscription/index.js +3 -3
- package/dist/task-store.cjs +8 -8
- package/dist/task-store.js +5 -5
- package/dist/types/agent.d.ts +11 -0
- package/dist/types/memory-provider.d.ts +8 -0
- package/dist/workflow.cjs +28 -28
- package/dist/workflow.js +7 -7
- package/docs/error-codes.md +10 -9
- package/docs/harness-capability-map.md +57 -17
- package/docs/memory-decisions.md +44 -7
- package/package.json +1 -1
- package/dist/agent-NVBFTY5H.js +0 -55
- package/dist/agent-VYPUO4UB.cjs +0 -64
- package/dist/agent-session-store-G2BMUZQV.js +0 -7
- package/dist/agent-session-store-WAKLOKWK.cjs +0 -24
- package/dist/chunk-2UCFUSPW.cjs +0 -468
- package/dist/chunk-2UCFUSPW.cjs.map +0 -1
- package/dist/chunk-6HTXPPHK.cjs +0 -18
- package/dist/chunk-6OBIWHDR.cjs.map +0 -1
- package/dist/chunk-AH6WD7JR.cjs.map +0 -1
- package/dist/chunk-CQ2TQ32Y.js.map +0 -1
- package/dist/chunk-NUKRL3I6.cjs.map +0 -1
- package/dist/chunk-QEKI3YKI.js.map +0 -1
- package/dist/chunk-SKOCYA55.js.map +0 -1
- package/dist/chunk-SKXBJ2NU.cjs.map +0 -1
- package/dist/chunk-T7O6K6PX.js.map +0 -1
- package/dist/chunk-WCLDJSMY.js +0 -456
- package/dist/chunk-WCLDJSMY.js.map +0 -1
- package/dist/compact-session-GJXJD73F.cjs +0 -59
- package/dist/compact-session-TSMQOIHO.js +0 -22
- package/dist/context-LCKNH2XI.cjs +0 -24
- package/dist/context-MZSKGKYR.js +0 -7
- package/dist/fs-session-store-4BHGIWRE.js +0 -11
- package/dist/fs-session-store-XZ7ZTB3A.cjs +0 -20
- package/dist/generate-object-N5MDZUJI.js +0 -8
- package/dist/generate-object-PGSP5U7N.cjs +0 -21
- package/dist/index-manager-AHAYJ33H.js +0 -16
- package/dist/index-manager-RHPFVFSC.cjs +0 -25
- package/dist/judge-call-DWHAJATE.js +0 -6
- package/dist/judge-call-EGYRC2RE.cjs +0 -23
- package/dist/registry-VFKX7WOP.cjs +0 -47
- package/dist/registry-VFP3WWQP.js +0 -10
- package/dist/session-transcript-HF5GEU5M.cjs +0 -63
- package/dist/session-transcript-P462ZRHX.js +0 -6
- package/dist/stream-object-BUCF5PHO.cjs +0 -21
- package/dist/stream-object-L57K4OFS.js +0 -8
- package/dist/subagents-loader-6ATCDEKN.js +0 -8
- package/dist/subagents-loader-X5QKODCL.cjs +0 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,102 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.63.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7e651d1: A `Remember` phrase that stores nothing now says so, instead of looking exactly like success.
|
|
8
|
+
|
|
9
|
+
`persistMemoryFactIfWritePrompt` had three early returns and a diagnostic on none of them. A phrase
|
|
10
|
+
one token from the supported one — `Remember, please:`, `Remember that:`, `Please remember:` — was
|
|
11
|
+
answered normally and stored nothing, and the caller could only find out by listing the store
|
|
12
|
+
afterwards. The transcript indexer made it worse: the sentence still lands in `sessions/run-*.md` and
|
|
13
|
+
is indexed, so a follow-up question comes back with the right answer and the developer concludes
|
|
14
|
+
memory is on. What they have is full-text search over transcripts — no `MEMORY.md`, nothing to
|
|
15
|
+
commit, nothing a human can edit, nothing that survives transcript pruning.
|
|
16
|
+
|
|
17
|
+
The gate is unchanged and deliberately so: a heuristic over user text must not capture aggressively,
|
|
18
|
+
or an ordinary sentence about remembering becomes a durable fact. What was missing was the signal.
|
|
19
|
+
|
|
20
|
+
Three paths now report, all through `diagFailure` rather than `diag`, because the user asked for
|
|
21
|
+
something durable and did not get it — and `diag` is dropped entirely when the host installed no
|
|
22
|
+
sink (`#189`):
|
|
23
|
+
|
|
24
|
+
- a message that opens with the capture verb and does not match the pattern;
|
|
25
|
+
- a match with nothing after the colon;
|
|
26
|
+
- the write itself failing, which went through `safeCall` and disappeared with it. The swallow
|
|
27
|
+
stays — one unwritable memory must not abort the turn — but it no longer happens in silence.
|
|
28
|
+
|
|
29
|
+
The supported forms in the message are interpolated from `MEMORY_KINDS`, never spelled out. The
|
|
30
|
+
reported defect is the accepted vocabulary widening between 4.56.0 and 4.57.0 with nothing announcing
|
|
31
|
+
it; a hand-written list in the warning could go stale exactly the same way, one layer up from the bug
|
|
32
|
+
it explains.
|
|
33
|
+
|
|
34
|
+
## 4.63.0
|
|
35
|
+
|
|
36
|
+
### Minor Changes
|
|
37
|
+
|
|
38
|
+
- 6410e27: **BREAKING (narrow):** `local.sessionDir` no longer decides where memory is written. Use the new
|
|
39
|
+
`memory.directory` option. Facts already recorded are not moved and stay readable — the Claude Code
|
|
40
|
+
store is a read root unconditionally — so a consumer who relied on the old coupling gets their new
|
|
41
|
+
facts in the project store until they set `memory.directory`.
|
|
42
|
+
|
|
43
|
+
Memory now has ONE answer to "where does this agent's memory live?", and every path derives from it.
|
|
44
|
+
|
|
45
|
+
Fourteen places computed a memory path from `cwd`, and one of them computed a different one.
|
|
46
|
+
`appendFact` relocated when `local.sessionDir` was set; the indexer, the `memory_get` path guard,
|
|
47
|
+
`MEMORY.md`, `sessions/`, `notes/`, `wiki/`, the dream diary and the index database did not — the
|
|
48
|
+
last of those spelled the default layout out again as a string literal, so no search for the shared
|
|
49
|
+
helper would have found it. A relocated fact was therefore written, never indexed, unreadable by the
|
|
50
|
+
tool whose job is reading memory, and shadowed by a second `MEMORY.md` in the store it had left.
|
|
51
|
+
|
|
52
|
+
- **New `memory.directory`.** Absolute or `~/`-prefixed. Point it at
|
|
53
|
+
`~/.claude/projects/<encoded-cwd>/memory` to write where the Claude Code CLI reads. A relative
|
|
54
|
+
value is refused with `invalid_memory_directory` rather than resolved: the workspace and the
|
|
55
|
+
process cwd are both plausible bases, and picking one silently is how a store ends up split
|
|
56
|
+
across both.
|
|
57
|
+
- **One resolver.** `resolveMemoryRoot` is the only producer of a root, and it returns a branded
|
|
58
|
+
`MemoryRoot` that every path helper now requires. The brand is STRUCTURAL rather than a
|
|
59
|
+
`unique symbol`: the d.ts bundler inlines a `unique symbol` declaration into every package that
|
|
60
|
+
re-exports it, so `@theokit/sdk-memory` ended up with a `MemoryRoot` its own compiler rejected
|
|
61
|
+
against the SDK's, on values that were the same string. A structural tag refuses a bare `string`
|
|
62
|
+
exactly as well and survives the package boundary. A cwd and a root are both strings, so the brand
|
|
63
|
+
is what makes "every path derives from one resolution" a compiler rule instead of a convention —
|
|
64
|
+
and it is what surfaced the three call sites that were silently reading the wrong directory.
|
|
65
|
+
- **`local.sessionDir` means one thing again:** where session transcripts go.
|
|
66
|
+
- **Unchanged:** WRITE ONE, READ ALL. Recall still covers the configured root, the project store and
|
|
67
|
+
the CLI's store, so relocating the write orphans nothing.
|
|
68
|
+
|
|
69
|
+
Everything under the root follows it: `MEMORY.md`, the per-memory files, `notes/`, `sessions/`,
|
|
70
|
+
`wiki/`, `transcripts/`, `dream-diary.md`, `.index/memory.sqlite` and the Lance store. Two of those
|
|
71
|
+
were found by the brand rather than by reading — `index-db.ts` and `lance-index.ts` each spelled
|
|
72
|
+
`.theokit/memory` out again as a string literal, so no search for the shared helper would have
|
|
73
|
+
reached them.
|
|
74
|
+
|
|
75
|
+
`Memory.runDreamingSweep` and the SQLite→Lance migration take a `directory` for the same reason: a
|
|
76
|
+
sweep that consolidated notes into the default store while the facts lived elsewhere would be the
|
|
77
|
+
same defect one function over.
|
|
78
|
+
|
|
79
|
+
`internal/memory/storage` (semver-exempt sub-path) drops `memoryDir` and `memoryWriteDir` and gains
|
|
80
|
+
`resolveMemoryRoot`, `projectMemoryDir`, `memoryReadRoots`, `asMemoryRoot` and `MemoryRoot`.
|
|
81
|
+
`RecordSessionSummaryArgs` gains a required `memoryRoot`, supplied by the kernel — an implementor
|
|
82
|
+
consumes those args and never constructs them.
|
|
83
|
+
|
|
84
|
+
**The `MEMORY.md` budget is a statement about the interop partner, and only that.** The Claude Code
|
|
85
|
+
CLI loads the first 200 lines / 25 KB of an index into every session and drops the rest in silence.
|
|
86
|
+
This SDK never loads the index at all — the `<memory>` block is built from the per-memory FILES,
|
|
87
|
+
ranked and capped — so our recall does not degrade as the index grows. `indexBudgetWarning` therefore
|
|
88
|
+
speaks ONLY when `memory.directory` points at the store the CLI reads, says what is true (the CLI
|
|
89
|
+
drops entries) rather than what is not (memory stops working), and never throws: the fact file and
|
|
90
|
+
the index rewrite are one atomic operation, so refusing the second would lose the first.
|
|
91
|
+
|
|
92
|
+
**Two things deliberately do NOT follow the option.** The index DATABASE stays in the project store
|
|
93
|
+
even when the facts move: `memory.directory` may name the directory the Claude Code CLI manages, and
|
|
94
|
+
that CLI has no index format — a binary artefact it does not understand does not belong in a
|
|
95
|
+
directory it owns. What gets INDEXED is still the configured root; only the file's location is held
|
|
96
|
+
back (`docs/memory-decisions.md` § 1). And one path: `legacyMemoryJsonPath`, which locates the
|
|
97
|
+
pre-#389 JSON store. That store was written before the option existed, so pointing it at a
|
|
98
|
+
configured root would look for a legacy file where a legacy file cannot be.
|
|
99
|
+
|
|
3
100
|
## 4.62.0
|
|
4
101
|
|
|
5
102
|
### Minor Changes
|
package/dist/a2a/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunk4O5TGQBW_cjs = require('../chunk-4O5TGQBW.cjs');
|
|
4
4
|
require('../chunk-NINIJCHU.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkEG4QM7ZJ_cjs = require('../chunk-EG4QM7ZJ.cjs');
|
|
6
6
|
|
|
7
7
|
// src/a2a/agent-mailbox.ts
|
|
8
8
|
var AgentMailbox = class {
|
|
@@ -69,7 +69,7 @@ var MessageBus = class {
|
|
|
69
69
|
};
|
|
70
70
|
void Promise.resolve(handler(message)).catch((cause) => {
|
|
71
71
|
const reason = cause instanceof Error ? cause.message : String(cause);
|
|
72
|
-
|
|
72
|
+
chunkEG4QM7ZJ_cjs.diag(`[theokit-sdk] a2a: handler for "${to}" failed on a fire-and-forget send: ${reason}
|
|
73
73
|
`);
|
|
74
74
|
});
|
|
75
75
|
}
|
package/dist/a2a/index.js
CHANGED
|
@@ -295,28 +295,24 @@ interface BudgetTracker {
|
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
/**
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
* Layered model (mirrors Budget):
|
|
313
|
-
* - `MemoryAdapter` (in `types/memory-adapter.ts`) — LOW-LEVEL data port:
|
|
314
|
-
* write / recall / delete primitives.
|
|
315
|
-
* - `MemoryProvider` (THIS FILE) — HIGH-LEVEL lifecycle port: init,
|
|
316
|
-
* tool factories, active memory pass, embedding runtime selection.
|
|
317
|
-
*
|
|
318
|
-
* @public — surface-level interface; impls are internal-but-replaceable.
|
|
298
|
+
* A path that {@link resolveMemoryRoot} produced — the only thing the subsystem's path helpers
|
|
299
|
+
* accept.
|
|
300
|
+
*
|
|
301
|
+
* The brand is what makes "every path derives from one resolution" a compiler rule rather than a
|
|
302
|
+
* convention. Both a `cwd` and a root are strings, so without it the helpers would go on accepting
|
|
303
|
+
* either, and the next one added would have the same even chance of taking the wrong one that
|
|
304
|
+
* produced #463 in the first place. It costs one cast, at the one place a caller legitimately has a
|
|
305
|
+
* directory that did not come from here.
|
|
306
|
+
*
|
|
307
|
+
* STRUCTURAL, not a `unique symbol`. A `unique symbol` brand is identity-based, and the d.ts
|
|
308
|
+
* bundler inlines the declaration into each package that re-exports it — so `@theokit/sdk-memory`
|
|
309
|
+
* ended up with a `MemoryRoot` its own compiler considered incompatible with the SDK's, on values
|
|
310
|
+
* that were the same string. A structural tag refuses a bare `string` exactly as well and survives
|
|
311
|
+
* the package boundary, which is where this type has to work.
|
|
319
312
|
*/
|
|
313
|
+
type MemoryRoot = string & {
|
|
314
|
+
readonly __memoryRoot: "resolved";
|
|
315
|
+
};
|
|
320
316
|
|
|
321
317
|
/** Result of `MemoryProvider.runActivePass(...)` — what the kernel injects into the LLM call. */
|
|
322
318
|
interface ActiveMemoryPassResult {
|
|
@@ -360,6 +356,14 @@ interface RecordSessionSummaryArgs {
|
|
|
360
356
|
* compute the markdown file path.
|
|
361
357
|
*/
|
|
362
358
|
readonly cwd: string;
|
|
359
|
+
/**
|
|
360
|
+
* The memory root the kernel resolved for this agent, from `memory.directory` or the default.
|
|
361
|
+
*
|
|
362
|
+
* Supplied by the kernel, never constructed by an implementor — which is why it is required
|
|
363
|
+
* rather than optional. An implementation that recomputed it from `cwd` would write the summary
|
|
364
|
+
* into a different directory than the one the rest of the subsystem uses (#463).
|
|
365
|
+
*/
|
|
366
|
+
readonly memoryRoot: MemoryRoot;
|
|
363
367
|
/** Run id used as the filename key. */
|
|
364
368
|
readonly runId: string;
|
|
365
369
|
/** Agent identity for scope (foldering). */
|
|
@@ -1067,6 +1071,17 @@ interface MemorySettings {
|
|
|
1067
1071
|
userId?: string;
|
|
1068
1072
|
scope?: "agent" | "user" | "team";
|
|
1069
1073
|
storePath?: string;
|
|
1074
|
+
/**
|
|
1075
|
+
* Where this agent's memory lives. Default `<cwd>/.theokit/memory`.
|
|
1076
|
+
*
|
|
1077
|
+
* Must be an absolute path or start with `~/` — a relative value is refused rather than
|
|
1078
|
+
* resolved, because the two plausible bases put the store in two different places.
|
|
1079
|
+
*
|
|
1080
|
+
* Point it at `~/.claude/projects/<encoded-cwd>/memory` to WRITE where the Claude Code CLI
|
|
1081
|
+
* reads. That store is READ unconditionally either way, so setting this is only needed to
|
|
1082
|
+
* share the writes.
|
|
1083
|
+
*/
|
|
1084
|
+
directory?: string;
|
|
1070
1085
|
/**
|
|
1071
1086
|
* Whether the SDK auto-injects recalled facts as a `<memory>` block in the
|
|
1072
1087
|
* LLM system prompt. Default `true`.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkZMRD5DZQ_cjs = require('./chunk-ZMRD5DZQ.cjs');
|
|
4
|
+
require('./chunk-3FFAEAUJ.cjs');
|
|
5
|
+
require('./chunk-RMWTPV3M.cjs');
|
|
6
|
+
require('./chunk-BUUUWQMB.cjs');
|
|
7
|
+
require('./chunk-ITYQ6VBP.cjs');
|
|
8
|
+
require('./chunk-ZCIRZE37.cjs');
|
|
9
|
+
require('./chunk-BV2MWEMV.cjs');
|
|
10
|
+
require('./chunk-KQ7TS7WW.cjs');
|
|
11
|
+
require('./chunk-GHX4P3V2.cjs');
|
|
12
|
+
require('./chunk-GKEFRLU7.cjs');
|
|
13
|
+
require('./chunk-6RKUO7AW.cjs');
|
|
14
|
+
require('./chunk-ZLQSWSJ2.cjs');
|
|
15
|
+
require('./chunk-KYAJINUI.cjs');
|
|
16
|
+
require('./chunk-O7DK5PBJ.cjs');
|
|
17
|
+
require('./chunk-4OTIXDMU.cjs');
|
|
18
|
+
require('./chunk-UGT7GK7I.cjs');
|
|
19
|
+
require('./chunk-O7LZFG6O.cjs');
|
|
20
|
+
require('./chunk-2ZPEDVLM.cjs');
|
|
21
|
+
require('./chunk-7BG5UH3T.cjs');
|
|
22
|
+
require('./chunk-KRD3GQAA.cjs');
|
|
23
|
+
require('./chunk-2HVF2WJY.cjs');
|
|
24
|
+
require('./chunk-MUUQ2WFJ.cjs');
|
|
25
|
+
require('./chunk-WJVHMTKB.cjs');
|
|
26
|
+
require('./chunk-6JSIEDKL.cjs');
|
|
27
|
+
require('./chunk-FRITRLZQ.cjs');
|
|
28
|
+
require('./chunk-4O5TGQBW.cjs');
|
|
29
|
+
require('./chunk-NINIJCHU.cjs');
|
|
30
|
+
require('./chunk-OHLDPWTA.cjs');
|
|
31
|
+
require('./chunk-LKFET5A3.cjs');
|
|
32
|
+
require('./chunk-VJ26EKGJ.cjs');
|
|
33
|
+
require('./chunk-V2BOS4WF.cjs');
|
|
34
|
+
require('./chunk-VKJ7V7EB.cjs');
|
|
35
|
+
require('./chunk-ZSWPZ23K.cjs');
|
|
36
|
+
require('./chunk-XWTLIGO3.cjs');
|
|
37
|
+
require('./chunk-I6HGWHPU.cjs');
|
|
38
|
+
require('./chunk-5HEG4CQH.cjs');
|
|
39
|
+
require('./chunk-A4RAL2ER.cjs');
|
|
40
|
+
require('./chunk-5VB22SYX.cjs');
|
|
41
|
+
require('./chunk-UU36SHFY.cjs');
|
|
42
|
+
require('./chunk-ZF2LDKQQ.cjs');
|
|
43
|
+
require('./chunk-RFMBZPOW.cjs');
|
|
44
|
+
require('./chunk-UALX2J2Q.cjs');
|
|
45
|
+
require('./chunk-CQBXOJ6U.cjs');
|
|
46
|
+
require('./chunk-AQO3NSRG.cjs');
|
|
47
|
+
require('./chunk-4CLOXP6H.cjs');
|
|
48
|
+
require('./chunk-DXGZ2NUG.cjs');
|
|
49
|
+
require('./chunk-3EE6LVWT.cjs');
|
|
50
|
+
require('./chunk-JPBKYL3B.cjs');
|
|
51
|
+
require('./chunk-HCZD23VS.cjs');
|
|
52
|
+
require('./chunk-6HKGLTJI.cjs');
|
|
53
|
+
require('./chunk-XJCXEKMD.cjs');
|
|
54
|
+
require('./chunk-52NKC5HT.cjs');
|
|
55
|
+
require('./chunk-4ZHTIJNE.cjs');
|
|
56
|
+
require('./chunk-XL7Q7HB2.cjs');
|
|
57
|
+
require('./chunk-EG4QM7ZJ.cjs');
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
Object.defineProperty(exports, "Agent", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () { return chunkZMRD5DZQ_cjs.Agent; }
|
|
64
|
+
});
|
|
65
|
+
//# sourceMappingURL=agent-WK7MKIMH.cjs.map
|
|
66
|
+
//# sourceMappingURL=agent-WK7MKIMH.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-WK7MKIMH.cjs"}
|
|
@@ -295,28 +295,24 @@ interface BudgetTracker {
|
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
/**
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
* Layered model (mirrors Budget):
|
|
313
|
-
* - `MemoryAdapter` (in `types/memory-adapter.ts`) — LOW-LEVEL data port:
|
|
314
|
-
* write / recall / delete primitives.
|
|
315
|
-
* - `MemoryProvider` (THIS FILE) — HIGH-LEVEL lifecycle port: init,
|
|
316
|
-
* tool factories, active memory pass, embedding runtime selection.
|
|
317
|
-
*
|
|
318
|
-
* @public — surface-level interface; impls are internal-but-replaceable.
|
|
298
|
+
* A path that {@link resolveMemoryRoot} produced — the only thing the subsystem's path helpers
|
|
299
|
+
* accept.
|
|
300
|
+
*
|
|
301
|
+
* The brand is what makes "every path derives from one resolution" a compiler rule rather than a
|
|
302
|
+
* convention. Both a `cwd` and a root are strings, so without it the helpers would go on accepting
|
|
303
|
+
* either, and the next one added would have the same even chance of taking the wrong one that
|
|
304
|
+
* produced #463 in the first place. It costs one cast, at the one place a caller legitimately has a
|
|
305
|
+
* directory that did not come from here.
|
|
306
|
+
*
|
|
307
|
+
* STRUCTURAL, not a `unique symbol`. A `unique symbol` brand is identity-based, and the d.ts
|
|
308
|
+
* bundler inlines the declaration into each package that re-exports it — so `@theokit/sdk-memory`
|
|
309
|
+
* ended up with a `MemoryRoot` its own compiler considered incompatible with the SDK's, on values
|
|
310
|
+
* that were the same string. A structural tag refuses a bare `string` exactly as well and survives
|
|
311
|
+
* the package boundary, which is where this type has to work.
|
|
319
312
|
*/
|
|
313
|
+
type MemoryRoot = string & {
|
|
314
|
+
readonly __memoryRoot: "resolved";
|
|
315
|
+
};
|
|
320
316
|
|
|
321
317
|
/** Result of `MemoryProvider.runActivePass(...)` — what the kernel injects into the LLM call. */
|
|
322
318
|
interface ActiveMemoryPassResult {
|
|
@@ -360,6 +356,14 @@ interface RecordSessionSummaryArgs {
|
|
|
360
356
|
* compute the markdown file path.
|
|
361
357
|
*/
|
|
362
358
|
readonly cwd: string;
|
|
359
|
+
/**
|
|
360
|
+
* The memory root the kernel resolved for this agent, from `memory.directory` or the default.
|
|
361
|
+
*
|
|
362
|
+
* Supplied by the kernel, never constructed by an implementor — which is why it is required
|
|
363
|
+
* rather than optional. An implementation that recomputed it from `cwd` would write the summary
|
|
364
|
+
* into a different directory than the one the rest of the subsystem uses (#463).
|
|
365
|
+
*/
|
|
366
|
+
readonly memoryRoot: MemoryRoot;
|
|
363
367
|
/** Run id used as the filename key. */
|
|
364
368
|
readonly runId: string;
|
|
365
369
|
/** Agent identity for scope (foldering). */
|
|
@@ -1067,6 +1071,17 @@ interface MemorySettings {
|
|
|
1067
1071
|
userId?: string;
|
|
1068
1072
|
scope?: "agent" | "user" | "team";
|
|
1069
1073
|
storePath?: string;
|
|
1074
|
+
/**
|
|
1075
|
+
* Where this agent's memory lives. Default `<cwd>/.theokit/memory`.
|
|
1076
|
+
*
|
|
1077
|
+
* Must be an absolute path or start with `~/` — a relative value is refused rather than
|
|
1078
|
+
* resolved, because the two plausible bases put the store in two different places.
|
|
1079
|
+
*
|
|
1080
|
+
* Point it at `~/.claude/projects/<encoded-cwd>/memory` to WRITE where the Claude Code CLI
|
|
1081
|
+
* reads. That store is READ unconditionally either way, so setting this is only needed to
|
|
1082
|
+
* share the writes.
|
|
1083
|
+
*/
|
|
1084
|
+
directory?: string;
|
|
1070
1085
|
/**
|
|
1071
1086
|
* Whether the SDK auto-injects recalled facts as a `<memory>` block in the
|
|
1072
1087
|
* LLM system prompt. Default `true`.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export { Agent } from './chunk-KIH6IZ43.js';
|
|
2
|
+
import './chunk-A46SWMIF.js';
|
|
3
|
+
import './chunk-4FFBAUFS.js';
|
|
4
|
+
import './chunk-K2BQQ445.js';
|
|
5
|
+
import './chunk-UEXIJTLC.js';
|
|
6
|
+
import './chunk-K5OJUYSZ.js';
|
|
7
|
+
import './chunk-2SFBB54R.js';
|
|
8
|
+
import './chunk-UBDMVMBZ.js';
|
|
9
|
+
import './chunk-H73MEMQB.js';
|
|
10
|
+
import './chunk-XO4SOZN6.js';
|
|
11
|
+
import './chunk-GEEXBYFL.js';
|
|
12
|
+
import './chunk-BP46RJ5X.js';
|
|
13
|
+
import './chunk-DN2PACRI.js';
|
|
14
|
+
import './chunk-TAZVKYWJ.js';
|
|
15
|
+
import './chunk-WTMU7J4U.js';
|
|
16
|
+
import './chunk-7YGCPMGB.js';
|
|
17
|
+
import './chunk-N2U4AZGB.js';
|
|
18
|
+
import './chunk-HKCKOAIO.js';
|
|
19
|
+
import './chunk-SAVIWMZB.js';
|
|
20
|
+
import './chunk-KVNWIAO4.js';
|
|
21
|
+
import './chunk-PUAEFLYK.js';
|
|
22
|
+
import './chunk-FD2UT76F.js';
|
|
23
|
+
import './chunk-4VPXM6UU.js';
|
|
24
|
+
import './chunk-U54XCYG3.js';
|
|
25
|
+
import './chunk-NAF4L3T6.js';
|
|
26
|
+
import './chunk-RNB4APBZ.js';
|
|
27
|
+
import './chunk-6X6ID4MO.js';
|
|
28
|
+
import './chunk-O73J46PV.js';
|
|
29
|
+
import './chunk-WFC26L6Y.js';
|
|
30
|
+
import './chunk-7AD3ZTZL.js';
|
|
31
|
+
import './chunk-HS7AVXTF.js';
|
|
32
|
+
import './chunk-RIAM53CP.js';
|
|
33
|
+
import './chunk-C72AZW7J.js';
|
|
34
|
+
import './chunk-4QZSA2HJ.js';
|
|
35
|
+
import './chunk-B3IMEBOA.js';
|
|
36
|
+
import './chunk-UMP6OJIM.js';
|
|
37
|
+
import './chunk-WE22OXQA.js';
|
|
38
|
+
import './chunk-LWGSI6M3.js';
|
|
39
|
+
import './chunk-3O42QOMJ.js';
|
|
40
|
+
import './chunk-Q5EWJPRY.js';
|
|
41
|
+
import './chunk-KQRW2GPZ.js';
|
|
42
|
+
import './chunk-2GUYQR5P.js';
|
|
43
|
+
import './chunk-LXI4XZEC.js';
|
|
44
|
+
import './chunk-UFLD2HEV.js';
|
|
45
|
+
import './chunk-LXQ6HKPS.js';
|
|
46
|
+
import './chunk-A4JVILQU.js';
|
|
47
|
+
import './chunk-R7WIIPUR.js';
|
|
48
|
+
import './chunk-UTSRIDKZ.js';
|
|
49
|
+
import './chunk-WLQNMXQE.js';
|
|
50
|
+
import './chunk-2QDYBS2A.js';
|
|
51
|
+
import './chunk-C3NT3PVE.js';
|
|
52
|
+
import './chunk-3OR54XG4.js';
|
|
53
|
+
import './chunk-ZZMZWBR6.js';
|
|
54
|
+
import './chunk-D4CUGAKZ.js';
|
|
55
|
+
import './chunk-XEQ3TM66.js';
|
|
56
|
+
//# sourceMappingURL=agent-YWMBM7LX.js.map
|
|
57
|
+
//# sourceMappingURL=agent-YWMBM7LX.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-YWMBM7LX.js"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkO7LZFG6O_cjs = require('./chunk-O7LZFG6O.cjs');
|
|
4
|
+
require('./chunk-5HEG4CQH.cjs');
|
|
5
|
+
require('./chunk-UALX2J2Q.cjs');
|
|
6
|
+
require('./chunk-XL7Q7HB2.cjs');
|
|
7
|
+
require('./chunk-EG4QM7ZJ.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "appendCompactBoundaryRecord", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkO7LZFG6O_cjs.appendCompactBoundaryRecord; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "persistTurn", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkO7LZFG6O_cjs.persistTurn; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "readSessionMessages", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkO7LZFG6O_cjs.readSessionMessages; }
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=agent-session-store-6EL5NPA4.cjs.map
|
|
24
|
+
//# sourceMappingURL=agent-session-store-6EL5NPA4.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-session-store-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-session-store-6EL5NPA4.cjs"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { appendCompactBoundaryRecord, persistTurn, readSessionMessages } from './chunk-N2U4AZGB.js';
|
|
2
|
+
import './chunk-UMP6OJIM.js';
|
|
3
|
+
import './chunk-2GUYQR5P.js';
|
|
4
|
+
import './chunk-D4CUGAKZ.js';
|
|
5
|
+
import './chunk-XEQ3TM66.js';
|
|
6
|
+
//# sourceMappingURL=agent-session-store-OPGRB4XM.js.map
|
|
7
|
+
//# sourceMappingURL=agent-session-store-OPGRB4XM.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-session-store-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-session-store-OPGRB4XM.js"}
|
package/dist/auth/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkFRITRLZQ_cjs = require('../chunk-FRITRLZQ.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunk6HKGLTJI_cjs = require('../chunk-6HKGLTJI.cjs');
|
|
5
|
+
var chunkXJCXEKMD_cjs = require('../chunk-XJCXEKMD.cjs');
|
|
6
6
|
var chunk52NKC5HT_cjs = require('../chunk-52NKC5HT.cjs');
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-4ZHTIJNE.cjs');
|
|
8
|
+
require('../chunk-XL7Q7HB2.cjs');
|
|
9
|
+
require('../chunk-EG4QM7ZJ.cjs');
|
|
10
10
|
|
|
11
11
|
// src/internal/auth/oauth-device.ts
|
|
12
12
|
var POLLING_SAFETY_MARGIN_MS = 3e3;
|
|
@@ -202,7 +202,7 @@ async function openaiDeviceLogin(config, deps, hooks) {
|
|
|
202
202
|
"device poll returned no authorization_code"
|
|
203
203
|
);
|
|
204
204
|
}
|
|
205
|
-
const tokens = await
|
|
205
|
+
const tokens = await chunk6HKGLTJI_cjs.exchangeCode(
|
|
206
206
|
config,
|
|
207
207
|
{ code: data.authorization_code, verifier: data.code_verifier },
|
|
208
208
|
deps
|
|
@@ -250,51 +250,51 @@ Object.defineProperty(exports, "providerFromApiKeyPrefix", {
|
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "ensureFreshCredential", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunk6HKGLTJI_cjs.ensureFreshCredential; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "exchangeCode", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunk6HKGLTJI_cjs.exchangeCode; }
|
|
258
258
|
});
|
|
259
259
|
Object.defineProperty(exports, "persistOAuthTokens", {
|
|
260
260
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunk6HKGLTJI_cjs.persistOAuthTokens; }
|
|
262
262
|
});
|
|
263
263
|
Object.defineProperty(exports, "refreshOAuthTokens", {
|
|
264
264
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunk6HKGLTJI_cjs.refreshOAuthTokens; }
|
|
266
266
|
});
|
|
267
267
|
Object.defineProperty(exports, "resolveCredential", {
|
|
268
268
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunk6HKGLTJI_cjs.resolveCredential; }
|
|
270
270
|
});
|
|
271
271
|
Object.defineProperty(exports, "CredentialError", {
|
|
272
272
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunkXJCXEKMD_cjs.CredentialError; }
|
|
274
274
|
});
|
|
275
275
|
Object.defineProperty(exports, "assertSecureModes", {
|
|
276
276
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunkXJCXEKMD_cjs.assertSecureModes; }
|
|
278
278
|
});
|
|
279
279
|
Object.defineProperty(exports, "authFilePath", {
|
|
280
280
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunkXJCXEKMD_cjs.authFilePath; }
|
|
282
282
|
});
|
|
283
283
|
Object.defineProperty(exports, "credentialHome", {
|
|
284
284
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunkXJCXEKMD_cjs.credentialHome; }
|
|
286
286
|
});
|
|
287
287
|
Object.defineProperty(exports, "readAuthFile", {
|
|
288
288
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunkXJCXEKMD_cjs.readAuthFile; }
|
|
290
290
|
});
|
|
291
291
|
Object.defineProperty(exports, "readStoredOAuth", {
|
|
292
292
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunkXJCXEKMD_cjs.readStoredOAuth; }
|
|
294
294
|
});
|
|
295
295
|
Object.defineProperty(exports, "writeCredential", {
|
|
296
296
|
enumerable: true,
|
|
297
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunkXJCXEKMD_cjs.writeCredential; }
|
|
298
298
|
});
|
|
299
299
|
exports.deviceLogin = deviceLogin;
|
|
300
300
|
exports.extractAccountId = extractAccountId;
|
package/dist/auth/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { providerFromApiKeyPrefix } from '../chunk-NAF4L3T6.js';
|
|
2
|
-
import { exchangeCode } from '../chunk-
|
|
3
|
-
export { ensureFreshCredential, exchangeCode, persistOAuthTokens, refreshOAuthTokens, resolveCredential } from '../chunk-
|
|
4
|
-
export { CredentialError, assertSecureModes, authFilePath, credentialHome, readAuthFile, readStoredOAuth, writeCredential } from '../chunk-
|
|
2
|
+
import { exchangeCode } from '../chunk-2QDYBS2A.js';
|
|
3
|
+
export { ensureFreshCredential, exchangeCode, persistOAuthTokens, refreshOAuthTokens, resolveCredential } from '../chunk-2QDYBS2A.js';
|
|
4
|
+
export { CredentialError, assertSecureModes, authFilePath, credentialHome, readAuthFile, readStoredOAuth, writeCredential } from '../chunk-C3NT3PVE.js';
|
|
5
5
|
import { AuthCallbackError } from '../chunk-3OR54XG4.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-ZZMZWBR6.js';
|
|
7
|
+
import '../chunk-D4CUGAKZ.js';
|
|
8
|
+
import '../chunk-XEQ3TM66.js';
|
|
9
9
|
|
|
10
10
|
// src/internal/auth/oauth-device.ts
|
|
11
11
|
var POLLING_SAFETY_MARGIN_MS = 3e3;
|