@theokit/sdk 4.63.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 +31 -0
- package/dist/a2a/index.cjs +2 -2
- package/dist/a2a/index.js +1 -1
- package/dist/agent-WK7MKIMH.cjs +66 -0
- package/dist/{agent-5KYMG63I.cjs.map → agent-WK7MKIMH.cjs.map} +1 -1
- package/dist/agent-YWMBM7LX.js +57 -0
- package/dist/{agent-536OOESZ.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-NXH4GPAQ.cjs → chunk-5VB22SYX.cjs} +7 -7
- package/dist/{chunk-NXH4GPAQ.cjs.map → chunk-5VB22SYX.cjs.map} +1 -1
- 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-EHJEZAOO.cjs → chunk-6RKUO7AW.cjs} +32 -32
- package/dist/{chunk-EHJEZAOO.cjs.map → chunk-6RKUO7AW.cjs.map} +1 -1
- 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-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-MG3SOM3M.js → chunk-BVJJ3DRV.js} +6 -6
- package/dist/{chunk-MG3SOM3M.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-R6TA2DRJ.js → chunk-DKD3MH6A.js} +6 -6
- package/dist/{chunk-R6TA2DRJ.js.map → chunk-DKD3MH6A.js.map} +1 -1
- 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-C7QPML3L.js → chunk-GEEXBYFL.js} +9 -9
- package/dist/{chunk-C7QPML3L.js.map → chunk-GEEXBYFL.js.map} +1 -1
- package/dist/{chunk-A4VHSE56.cjs → chunk-GKEFRLU7.cjs} +6 -6
- package/dist/{chunk-A4VHSE56.cjs.map → chunk-GKEFRLU7.cjs.map} +1 -1
- 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-IRCJ7EHV.cjs → chunk-HOXVQ5FR.cjs} +14 -14
- package/dist/{chunk-IRCJ7EHV.cjs.map → chunk-HOXVQ5FR.cjs.map} +1 -1
- 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-UUP3MUZ6.cjs → chunk-ITYQ6VBP.cjs} +18 -18
- package/dist/{chunk-UUP3MUZ6.cjs.map → chunk-ITYQ6VBP.cjs.map} +1 -1
- 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-CHKH5452.js → chunk-KIH6IZ43.js} +60 -45
- 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-AMFXSENK.js → chunk-LWGSI6M3.js} +4 -4
- package/dist/{chunk-AMFXSENK.js.map → chunk-LWGSI6M3.js.map} +1 -1
- 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-CASUEY42.cjs → chunk-Q7LPTOD6.cjs} +24 -24
- package/dist/{chunk-CASUEY42.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-YTR3RBUZ.js → chunk-UEXIJTLC.js} +4 -4
- package/dist/{chunk-YTR3RBUZ.js.map → chunk-UEXIJTLC.js.map} +1 -1
- 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-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-LW7G5DYW.js → chunk-XO4SOZN6.js} +4 -4
- package/dist/{chunk-LW7G5DYW.js.map → chunk-XO4SOZN6.js.map} +1 -1
- 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-NLXOGBRJ.cjs → chunk-ZMRD5DZQ.cjs} +338 -323
- 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.cjs +36 -36
- package/dist/cron.js +35 -35
- package/dist/errors.cjs +22 -22
- package/dist/errors.js +3 -3
- package/dist/eval.cjs +41 -41
- package/dist/eval.js +35 -35
- 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-ACEQG3IJ.js.map → index-manager-RBDHP3PM.js.map} +1 -1
- package/dist/index-manager-UZBF22BJ.cjs +26 -0
- package/dist/{index-manager-6TEEIWM7.cjs.map → index-manager-UZBF22BJ.cjs.map} +1 -1
- package/dist/index.cjs +139 -139
- package/dist/index.js +50 -50
- 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/adapters/index.cjs +9 -9
- package/dist/internal/memory/adapters/index.js +8 -8
- package/dist/internal/memory/storage/index.cjs +39 -39
- package/dist/internal/memory/storage/index.js +10 -10
- package/dist/internal/persistence/index.cjs +21 -21
- package/dist/internal/persistence/index.js +7 -7
- 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 +28 -28
- package/dist/persistence.js +9 -9
- 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.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/workflow.cjs +28 -28
- package/dist/workflow.js +7 -7
- package/package.json +1 -1
- package/dist/agent-536OOESZ.js +0 -57
- package/dist/agent-5KYMG63I.cjs +0 -66
- package/dist/agent-session-store-G2BMUZQV.js +0 -7
- package/dist/agent-session-store-WAKLOKWK.cjs +0 -24
- package/dist/chunk-6HTXPPHK.cjs +0 -18
- package/dist/chunk-CHKH5452.js.map +0 -1
- package/dist/chunk-NLXOGBRJ.cjs.map +0 -1
- package/dist/chunk-NUKRL3I6.cjs.map +0 -1
- package/dist/chunk-T7O6K6PX.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-6TEEIWM7.cjs +0 -26
- package/dist/index-manager-ACEQG3IJ.js +0 -17
- 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
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../../chunk-MUUQ2WFJ.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkV2BOS4WF_cjs = require('../../chunk-V2BOS4WF.cjs');
|
|
5
5
|
require('../../chunk-VKJ7V7EB.cjs');
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
var
|
|
8
|
-
require('../../chunk-
|
|
6
|
+
require('../../chunk-4ZHTIJNE.cjs');
|
|
7
|
+
var chunkXL7Q7HB2_cjs = require('../../chunk-XL7Q7HB2.cjs');
|
|
8
|
+
require('../../chunk-EG4QM7ZJ.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "ForbiddenPathError", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkV2BOS4WF_cjs.ForbiddenPathError; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "PathTraversalError", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkV2BOS4WF_cjs.PathTraversalError; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "assertNoSymlinkEscape", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkV2BOS4WF_cjs.assertNoSymlinkEscape; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "isForbiddenPath", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkV2BOS4WF_cjs.isForbiddenPath; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "safePathJoin", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkV2BOS4WF_cjs.safePathJoin; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "sanitizeIdentifier", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkV2BOS4WF_cjs.sanitizeIdentifier; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "validateArtifactPath", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkV2BOS4WF_cjs.validateArtifactPath; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "addPattern", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkXL7Q7HB2_cjs.addPattern; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "maskToken", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkXL7Q7HB2_cjs.maskToken; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "redactSecrets", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkXL7Q7HB2_cjs.redactSecrets; }
|
|
51
51
|
});
|
|
52
52
|
//# sourceMappingURL=index.cjs.map
|
|
53
53
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../chunk-FD2UT76F.js';
|
|
2
|
-
export { ForbiddenPathError, PathTraversalError, assertNoSymlinkEscape, isForbiddenPath, safePathJoin, sanitizeIdentifier, validateArtifactPath } from '../../chunk-
|
|
2
|
+
export { ForbiddenPathError, PathTraversalError, assertNoSymlinkEscape, isForbiddenPath, safePathJoin, sanitizeIdentifier, validateArtifactPath } from '../../chunk-HS7AVXTF.js';
|
|
3
3
|
import '../../chunk-RIAM53CP.js';
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
export { addPattern, maskToken, redactSecrets } from '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-ZZMZWBR6.js';
|
|
5
|
+
export { addPattern, maskToken, redactSecrets } from '../../chunk-D4CUGAKZ.js';
|
|
6
|
+
import '../../chunk-XEQ3TM66.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk3NSS2OIZ_cjs = require('./chunk-3NSS2OIZ.cjs');
|
|
4
|
+
require('./chunk-4ZHTIJNE.cjs');
|
|
5
|
+
require('./chunk-XL7Q7HB2.cjs');
|
|
6
|
+
require('./chunk-EG4QM7ZJ.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "JudgeCredentialError", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunk3NSS2OIZ_cjs.JudgeCredentialError; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "composeJudgePrompt", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunk3NSS2OIZ_cjs.composeJudgePrompt; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "judgeCallImpl", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunk3NSS2OIZ_cjs.judgeCallImpl; }
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=judge-call-LAHMBJ57.cjs.map
|
|
23
|
+
//# sourceMappingURL=judge-call-LAHMBJ57.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"judge-call-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"judge-call-LAHMBJ57.cjs"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { JudgeCredentialError, composeJudgePrompt, judgeCallImpl } from './chunk-IPYYKCRC.js';
|
|
2
|
+
import './chunk-ZZMZWBR6.js';
|
|
3
|
+
import './chunk-D4CUGAKZ.js';
|
|
4
|
+
import './chunk-XEQ3TM66.js';
|
|
5
|
+
//# sourceMappingURL=judge-call-LVXABPS3.js.map
|
|
6
|
+
//# sourceMappingURL=judge-call-LVXABPS3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"judge-call-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"judge-call-LVXABPS3.js"}
|
package/dist/mcp-auth.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
var
|
|
3
|
+
var chunkUALX2J2Q_cjs = require('./chunk-UALX2J2Q.cjs');
|
|
4
|
+
var chunkXJCXEKMD_cjs = require('./chunk-XJCXEKMD.cjs');
|
|
5
|
+
var chunk4ZHTIJNE_cjs = require('./chunk-4ZHTIJNE.cjs');
|
|
6
|
+
require('./chunk-XL7Q7HB2.cjs');
|
|
7
|
+
var chunkEG4QM7ZJ_cjs = require('./chunk-EG4QM7ZJ.cjs');
|
|
8
8
|
var crypto = require('crypto');
|
|
9
9
|
var http = require('http');
|
|
10
10
|
var promises = require('readline/promises');
|
|
@@ -44,7 +44,7 @@ function tryRequireKeytar() {
|
|
|
44
44
|
cachedKeytar = r("keytar");
|
|
45
45
|
} catch {
|
|
46
46
|
if (!keytarWarned) {
|
|
47
|
-
|
|
47
|
+
chunkEG4QM7ZJ_cjs.diag(
|
|
48
48
|
`[theokit-sdk] keytar not installed; MCP OAuth tokens will be stored in ${storeFilePath()} (chmod 600 where POSIX). Install \`keytar\` for OS keychain storage.
|
|
49
49
|
`
|
|
50
50
|
);
|
|
@@ -74,7 +74,7 @@ async function setTokens(serverName, tokens) {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
allTokens[serverName] = tokens;
|
|
77
|
-
await
|
|
77
|
+
await chunkUALX2J2Q_cjs.atomicWriteJson(filePath, allTokens);
|
|
78
78
|
try {
|
|
79
79
|
fs.chmodSync(filePath, 384);
|
|
80
80
|
} catch {
|
|
@@ -93,7 +93,7 @@ async function getTokens(serverName) {
|
|
|
93
93
|
}
|
|
94
94
|
const filePath = storeFilePath();
|
|
95
95
|
if (!fs.existsSync(filePath)) return void 0;
|
|
96
|
-
|
|
96
|
+
chunkXJCXEKMD_cjs.assertSecureModes(path.dirname(filePath), filePath);
|
|
97
97
|
try {
|
|
98
98
|
const all = JSON.parse(fs.readFileSync(filePath, "utf8"));
|
|
99
99
|
return all[serverName];
|
|
@@ -134,7 +134,7 @@ async function refreshAccessToken(serverName, clientId, refreshToken, oauth) {
|
|
|
134
134
|
body: body.toString()
|
|
135
135
|
});
|
|
136
136
|
if (!response.ok) {
|
|
137
|
-
throw new
|
|
137
|
+
throw new chunk4ZHTIJNE_cjs.ConfigurationError(`OAuth refresh failed: HTTP ${response.status}`, {
|
|
138
138
|
code: "oauth_refresh_failed"
|
|
139
139
|
});
|
|
140
140
|
}
|
|
@@ -180,7 +180,7 @@ async function runPkceFlow(serverName, clientId, scopes, oauth) {
|
|
|
180
180
|
authUrl.searchParams.set("code_challenge", challenge);
|
|
181
181
|
authUrl.searchParams.set("code_challenge_method", "S256");
|
|
182
182
|
authUrl.searchParams.set("state", state);
|
|
183
|
-
|
|
183
|
+
chunkEG4QM7ZJ_cjs.diag(
|
|
184
184
|
`
|
|
185
185
|
[theokit-sdk] OAuth required for MCP server "${serverName}".
|
|
186
186
|
Open this URL to authenticate:
|
|
@@ -190,7 +190,7 @@ Open this URL to authenticate:
|
|
|
190
190
|
);
|
|
191
191
|
const { code, state: returnedState } = await codeWaiter;
|
|
192
192
|
if (returnedState !== state) {
|
|
193
|
-
throw new
|
|
193
|
+
throw new chunk4ZHTIJNE_cjs.ConfigurationError(
|
|
194
194
|
"OAuth state mismatch \u2014 possible CSRF attempt; aborting token exchange.",
|
|
195
195
|
{ code: "oauth_state_mismatch" }
|
|
196
196
|
);
|
|
@@ -209,7 +209,7 @@ Open this URL to authenticate:
|
|
|
209
209
|
});
|
|
210
210
|
if (!response.ok) {
|
|
211
211
|
const errText = await response.text();
|
|
212
|
-
throw new
|
|
212
|
+
throw new chunk4ZHTIJNE_cjs.ConfigurationError(
|
|
213
213
|
`OAuth token exchange failed: HTTP ${response.status}: ${errText.slice(0, 200)}`,
|
|
214
214
|
{ code: "oauth_token_exchange_failed" }
|
|
215
215
|
);
|
|
@@ -255,7 +255,7 @@ async function openLocalhostCallback(expectedState, timeoutMs) {
|
|
|
255
255
|
});
|
|
256
256
|
server.listen(0, "127.0.0.1");
|
|
257
257
|
const timeoutHandle = setTimeout(() => {
|
|
258
|
-
rejectCode?.(new
|
|
258
|
+
rejectCode?.(new chunk4ZHTIJNE_cjs.ConfigurationError("OAuth flow timed out", { code: "oauth_timeout" }));
|
|
259
259
|
}, timeoutMs);
|
|
260
260
|
await new Promise((r) => {
|
|
261
261
|
if (server.listening) r();
|
|
@@ -264,7 +264,7 @@ async function openLocalhostCallback(expectedState, timeoutMs) {
|
|
|
264
264
|
const address = server.address();
|
|
265
265
|
if (typeof address !== "object" || address === null) {
|
|
266
266
|
server.close();
|
|
267
|
-
throw new
|
|
267
|
+
throw new chunk4ZHTIJNE_cjs.ConfigurationError("OAuth localhost callback failed to bind", {
|
|
268
268
|
code: "oauth_bind_failed"
|
|
269
269
|
});
|
|
270
270
|
}
|
|
@@ -300,7 +300,7 @@ async function readCodeFromStdin(expectedState, timeoutMs) {
|
|
|
300
300
|
}).catch(reject);
|
|
301
301
|
setTimeout(() => {
|
|
302
302
|
rl.close();
|
|
303
|
-
reject(new
|
|
303
|
+
reject(new chunk4ZHTIJNE_cjs.ConfigurationError("OAuth manual input timed out", { code: "oauth_timeout" }));
|
|
304
304
|
}, timeoutMs);
|
|
305
305
|
});
|
|
306
306
|
return promise;
|
package/dist/mcp-auth.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { atomicWriteJson } from './chunk-
|
|
2
|
-
import { assertSecureModes } from './chunk-
|
|
3
|
-
import { ConfigurationError } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import { diag } from './chunk-
|
|
1
|
+
import { atomicWriteJson } from './chunk-2GUYQR5P.js';
|
|
2
|
+
import { assertSecureModes } from './chunk-C3NT3PVE.js';
|
|
3
|
+
import { ConfigurationError } from './chunk-ZZMZWBR6.js';
|
|
4
|
+
import './chunk-D4CUGAKZ.js';
|
|
5
|
+
import { diag } from './chunk-XEQ3TM66.js';
|
|
6
6
|
import { randomBytes, createHash } from 'crypto';
|
|
7
7
|
import { createServer } from 'http';
|
|
8
8
|
import { createInterface } from 'readline/promises';
|
package/dist/models.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4PYZ5AX3_cjs = require('./chunk-4PYZ5AX3.cjs');
|
|
4
4
|
var chunk3EE6LVWT_cjs = require('./chunk-3EE6LVWT.cjs');
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var chunkHCZD23VS_cjs = require('./chunk-HCZD23VS.cjs');
|
|
6
|
+
require('./chunk-6HKGLTJI.cjs');
|
|
7
|
+
require('./chunk-XJCXEKMD.cjs');
|
|
8
8
|
require('./chunk-52NKC5HT.cjs');
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
var
|
|
9
|
+
require('./chunk-4ZHTIJNE.cjs');
|
|
10
|
+
require('./chunk-XL7Q7HB2.cjs');
|
|
11
|
+
var chunkEG4QM7ZJ_cjs = require('./chunk-EG4QM7ZJ.cjs');
|
|
12
12
|
var crypto = require('crypto');
|
|
13
13
|
var fs = require('fs');
|
|
14
14
|
var os = require('os');
|
|
@@ -36,11 +36,11 @@ function capsFromCatalog(m) {
|
|
|
36
36
|
}
|
|
37
37
|
function resolveModelCapabilities(modelId) {
|
|
38
38
|
const bare = stripVariantSuffix(stripRoutingPrefix(modelId));
|
|
39
|
-
const fromIndex =
|
|
39
|
+
const fromIndex = chunkHCZD23VS_cjs.getCatalogModelInfo(bare);
|
|
40
40
|
if (fromIndex !== void 0) return capsFromCatalog(fromIndex);
|
|
41
41
|
const withVendor = inferVendorPrefix(bare);
|
|
42
42
|
if (withVendor !== bare) {
|
|
43
|
-
const vendored =
|
|
43
|
+
const vendored = chunkHCZD23VS_cjs.getCatalogModelInfo(withVendor);
|
|
44
44
|
if (vendored !== void 0) return capsFromCatalog(vendored);
|
|
45
45
|
}
|
|
46
46
|
return CONSERVATIVE_DEFAULTS;
|
|
@@ -132,7 +132,7 @@ function catalogTargets() {
|
|
|
132
132
|
if (_catalogTargets !== void 0) return _catalogTargets;
|
|
133
133
|
_catalogTargets = /* @__PURE__ */ new Map();
|
|
134
134
|
try {
|
|
135
|
-
for (const entry of Object.values(
|
|
135
|
+
for (const entry of Object.values(chunkHCZD23VS_cjs.loadProviderCatalog())) {
|
|
136
136
|
const keys = [entry.id, ...entry.aliases ?? []];
|
|
137
137
|
for (const k of keys) {
|
|
138
138
|
if (!_catalogTargets.has(k)) _catalogTargets.set(k, { keys });
|
|
@@ -146,7 +146,7 @@ function resolvePatchKeys(externalId) {
|
|
|
146
146
|
const mapped = MODELS_DEV_ID_MAP[externalId] ?? externalId;
|
|
147
147
|
const fromCatalog = catalogTargets().get(mapped);
|
|
148
148
|
if (fromCatalog !== void 0) return fromCatalog.keys;
|
|
149
|
-
const profile =
|
|
149
|
+
const profile = chunkHCZD23VS_cjs.getProviderProfile(mapped);
|
|
150
150
|
if (profile !== void 0) return [profile.name, ...profile.aliases ?? []];
|
|
151
151
|
return void 0;
|
|
152
152
|
}
|
|
@@ -163,14 +163,14 @@ function patchIndexFromApiJson(raw) {
|
|
|
163
163
|
continue;
|
|
164
164
|
}
|
|
165
165
|
for (const [modelId, rawModel] of Object.entries(models)) {
|
|
166
|
-
const parsed =
|
|
166
|
+
const parsed = chunkHCZD23VS_cjs.catalogModelSchema.safeParse(rawModel);
|
|
167
167
|
if (!parsed.success) continue;
|
|
168
|
-
for (const key of keys)
|
|
168
|
+
for (const key of keys) chunkHCZD23VS_cjs.patchModelInfo(`${key}/${modelId}`, parsed.data);
|
|
169
169
|
patched++;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
if (skipped.length > 0) {
|
|
173
|
-
|
|
173
|
+
chunkEG4QM7ZJ_cjs.diag(
|
|
174
174
|
`[theokit-sdk] WARN: models-dev refresh skipped ${skipped.length} unknown provider(s) (e.g. ${skipped.slice(0, 3).join(", ")})
|
|
175
175
|
`
|
|
176
176
|
);
|
|
@@ -193,20 +193,20 @@ function loadCacheIntoIndex(url = DEFAULT_URL) {
|
|
|
193
193
|
fs.unlinkSync(path);
|
|
194
194
|
} catch {
|
|
195
195
|
}
|
|
196
|
-
|
|
196
|
+
chunkEG4QM7ZJ_cjs.diag(`[theokit-sdk] WARN: corrupt models-dev cache deleted (${path})
|
|
197
197
|
`);
|
|
198
198
|
return 0;
|
|
199
199
|
}
|
|
200
200
|
try {
|
|
201
201
|
return patchIndexFromApiJson(parsed);
|
|
202
202
|
} catch (err) {
|
|
203
|
-
|
|
203
|
+
chunkEG4QM7ZJ_cjs.diag(`[theokit-sdk] WARN: models-dev cache patch failed (${err.message})
|
|
204
204
|
`);
|
|
205
205
|
return 0;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
async function refreshModelCatalog(opts = {}) {
|
|
209
|
-
|
|
209
|
+
chunkHCZD23VS_cjs.registerBuiltins();
|
|
210
210
|
const kill = process.env.THEOKIT_DISABLE_MODELS_FETCH;
|
|
211
211
|
if (kill !== void 0 && kill !== "" && kill !== "0" && kill.toLowerCase() !== "false") {
|
|
212
212
|
return { source: "skipped", models: 0 };
|
|
@@ -226,7 +226,7 @@ async function refreshModelCatalog(opts = {}) {
|
|
|
226
226
|
const fetchImpl = opts.deps?.fetch ?? fetch;
|
|
227
227
|
let body;
|
|
228
228
|
try {
|
|
229
|
-
const res = await
|
|
229
|
+
const res = await chunk4PYZ5AX3_cjs.Retry.create(
|
|
230
230
|
async () => {
|
|
231
231
|
const r = await fetchImpl(url, { signal: AbortSignal.timeout(FETCH_TIMEOUT_MS) });
|
|
232
232
|
if (!r.ok) throw new Error(`HTTP ${r.status}`);
|
|
@@ -246,7 +246,7 @@ async function refreshModelCatalog(opts = {}) {
|
|
|
246
246
|
}
|
|
247
247
|
JSON.parse(body);
|
|
248
248
|
} catch (err) {
|
|
249
|
-
|
|
249
|
+
chunkEG4QM7ZJ_cjs.diag(
|
|
250
250
|
`[theokit-sdk] WARN: models-dev refresh failed (${err.message}) \u2014 serving existing data
|
|
251
251
|
`
|
|
252
252
|
);
|
|
@@ -255,13 +255,13 @@ async function refreshModelCatalog(opts = {}) {
|
|
|
255
255
|
try {
|
|
256
256
|
writeCacheAtomic(path, body);
|
|
257
257
|
} catch (err) {
|
|
258
|
-
|
|
258
|
+
chunkEG4QM7ZJ_cjs.diag(`[theokit-sdk] WARN: models-dev cache write failed (${err.message})
|
|
259
259
|
`);
|
|
260
260
|
}
|
|
261
261
|
try {
|
|
262
262
|
return { source: "network", models: patchIndexFromApiJson(JSON.parse(body)) };
|
|
263
263
|
} catch (err) {
|
|
264
|
-
|
|
264
|
+
chunkEG4QM7ZJ_cjs.diag(
|
|
265
265
|
`[theokit-sdk] WARN: models-dev patch failed (${err.message}) \u2014 serving existing data
|
|
266
266
|
`
|
|
267
267
|
);
|
|
@@ -269,7 +269,7 @@ async function refreshModelCatalog(opts = {}) {
|
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
function getModelInfo(modelId) {
|
|
272
|
-
return
|
|
272
|
+
return chunkHCZD23VS_cjs.getCatalogModelInfo(modelId);
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
Object.defineProperty(exports, "parseModelId", {
|
package/dist/models.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Retry } from './chunk-
|
|
1
|
+
import { Retry } from './chunk-RFXWMRFC.js';
|
|
2
2
|
import { parseModelId } from './chunk-R7WIIPUR.js';
|
|
3
3
|
export { parseModelId } from './chunk-R7WIIPUR.js';
|
|
4
|
-
import { getCatalogModelInfo, registerBuiltins, catalogModelSchema, patchModelInfo, getProviderProfile, loadProviderCatalog } from './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
4
|
+
import { getCatalogModelInfo, registerBuiltins, catalogModelSchema, patchModelInfo, getProviderProfile, loadProviderCatalog } from './chunk-WLQNMXQE.js';
|
|
5
|
+
import './chunk-2QDYBS2A.js';
|
|
6
|
+
import './chunk-C3NT3PVE.js';
|
|
7
7
|
import './chunk-3OR54XG4.js';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import { diag } from './chunk-
|
|
8
|
+
import './chunk-ZZMZWBR6.js';
|
|
9
|
+
import './chunk-D4CUGAKZ.js';
|
|
10
|
+
import { diag } from './chunk-XEQ3TM66.js';
|
|
11
11
|
import { createHash, randomBytes } from 'crypto';
|
|
12
12
|
import { statSync, readFileSync, unlinkSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
13
13
|
import { homedir } from 'os';
|
package/dist/path-safety.cjs
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkV2BOS4WF_cjs = require('./chunk-V2BOS4WF.cjs');
|
|
4
4
|
require('./chunk-VKJ7V7EB.cjs');
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-4ZHTIJNE.cjs');
|
|
6
|
+
require('./chunk-XL7Q7HB2.cjs');
|
|
7
|
+
require('./chunk-EG4QM7ZJ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "ForbiddenPathError", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkV2BOS4WF_cjs.ForbiddenPathError; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "PathTraversalError", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkV2BOS4WF_cjs.PathTraversalError; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "assertNoSymlinkEscape", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkV2BOS4WF_cjs.assertNoSymlinkEscape; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "isForbiddenPath", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkV2BOS4WF_cjs.isForbiddenPath; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "safeFilenameForId", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkV2BOS4WF_cjs.safeFilenameForId; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "safePathJoin", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkV2BOS4WF_cjs.safePathJoin; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "sanitizeIdentifier", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkV2BOS4WF_cjs.sanitizeIdentifier; }
|
|
38
38
|
});
|
|
39
39
|
//# sourceMappingURL=path-safety.cjs.map
|
|
40
40
|
//# sourceMappingURL=path-safety.cjs.map
|
package/dist/path-safety.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ForbiddenPathError, PathTraversalError, assertNoSymlinkEscape, isForbiddenPath, safeFilenameForId, safePathJoin, sanitizeIdentifier } from './chunk-
|
|
1
|
+
export { ForbiddenPathError, PathTraversalError, assertNoSymlinkEscape, isForbiddenPath, safeFilenameForId, safePathJoin, sanitizeIdentifier } from './chunk-HS7AVXTF.js';
|
|
2
2
|
import './chunk-RIAM53CP.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
3
|
+
import './chunk-ZZMZWBR6.js';
|
|
4
|
+
import './chunk-D4CUGAKZ.js';
|
|
5
|
+
import './chunk-XEQ3TM66.js';
|
|
6
6
|
//# sourceMappingURL=path-safety.js.map
|
|
7
7
|
//# sourceMappingURL=path-safety.js.map
|
package/dist/persistence.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkVTYY7XL5_cjs = require('./chunk-VTYY7XL5.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkI6HGWHPU_cjs = require('./chunk-I6HGWHPU.cjs');
|
|
5
|
+
var chunk5HEG4CQH_cjs = require('./chunk-5HEG4CQH.cjs');
|
|
6
6
|
var chunkA4RAL2ER_cjs = require('./chunk-A4RAL2ER.cjs');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var chunk5VB22SYX_cjs = require('./chunk-5VB22SYX.cjs');
|
|
8
|
+
var chunkUU36SHFY_cjs = require('./chunk-UU36SHFY.cjs');
|
|
9
9
|
var chunkZF2LDKQQ_cjs = require('./chunk-ZF2LDKQQ.cjs');
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
10
|
+
var chunkUALX2J2Q_cjs = require('./chunk-UALX2J2Q.cjs');
|
|
11
|
+
var chunk4ZHTIJNE_cjs = require('./chunk-4ZHTIJNE.cjs');
|
|
12
|
+
require('./chunk-XL7Q7HB2.cjs');
|
|
13
|
+
require('./chunk-EG4QM7ZJ.cjs');
|
|
14
14
|
var fs = require('fs');
|
|
15
15
|
|
|
16
16
|
// src/internal/persistence/session-artifacts.ts
|
|
@@ -19,10 +19,10 @@ function classifySessionArtifact(name, isDirectory) {
|
|
|
19
19
|
if (isDirectory) return void 0;
|
|
20
20
|
if (name.endsWith(".jsonl")) return "transcript";
|
|
21
21
|
if (name.endsWith(".writer.lock")) return "writer-lock";
|
|
22
|
-
if (
|
|
22
|
+
if (chunkUALX2J2Q_cjs.atomicWriteTempTarget(name) !== void 0) return "temp";
|
|
23
23
|
return void 0;
|
|
24
24
|
}
|
|
25
|
-
var LiveSessionError = class extends
|
|
25
|
+
var LiveSessionError = class extends chunk4ZHTIJNE_cjs.TheokitAgentError {
|
|
26
26
|
constructor(path) {
|
|
27
27
|
super(
|
|
28
28
|
`refusing to write over a live session transcript: ${path}. Fork to a new id instead \u2014 the live pointer, the most recent transcript and any active registry entry are never overwritten (audit-trail rotation, M60).`,
|
|
@@ -103,27 +103,27 @@ Object.defineProperty(exports, "PersistenceSchema", {
|
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "SessionBusyError", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkI6HGWHPU_cjs.SessionBusyError; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "acquireSessionWriter", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkI6HGWHPU_cjs.acquireSessionWriter; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "sessionHasWriter", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkI6HGWHPU_cjs.sessionHasWriter; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "encodeProjectDir", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunk5HEG4CQH_cjs.encodeProjectDir; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "transcriptPath", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunk5HEG4CQH_cjs.transcriptPath; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "transcriptRoot", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunk5HEG4CQH_cjs.transcriptRoot; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "sanitizeFts5Query", {
|
|
129
129
|
enumerable: true,
|
|
@@ -131,35 +131,35 @@ Object.defineProperty(exports, "sanitizeFts5Query", {
|
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "applyWalWithFallback", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunk5VB22SYX_cjs.applyWalWithFallback; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "isCorruptionError", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunk5VB22SYX_cjs.isCorruptionError; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "openSqliteResilient", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunk5VB22SYX_cjs.openSqliteResilient; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "JsonlParseError", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkUU36SHFY_cjs.JsonlParseError; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "appendJsonl", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkUU36SHFY_cjs.appendJsonl; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "loadJsonl", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkUU36SHFY_cjs.loadJsonl; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "readJsonlIds", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkUU36SHFY_cjs.readJsonlIds; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "withFileLock", {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkUU36SHFY_cjs.withFileLock; }
|
|
163
163
|
});
|
|
164
164
|
Object.defineProperty(exports, "withCwdMutex", {
|
|
165
165
|
enumerable: true,
|
|
@@ -167,19 +167,19 @@ Object.defineProperty(exports, "withCwdMutex", {
|
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "atomicWriteJson", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkUALX2J2Q_cjs.atomicWriteJson; }
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "atomicWriteTempTarget", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkUALX2J2Q_cjs.atomicWriteTempTarget; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "atomicWriteText", {
|
|
177
177
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkUALX2J2Q_cjs.atomicWriteText; }
|
|
179
179
|
});
|
|
180
180
|
Object.defineProperty(exports, "replaceFileAtomic", {
|
|
181
181
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkUALX2J2Q_cjs.replaceFileAtomic; }
|
|
183
183
|
});
|
|
184
184
|
exports.LiveSessionError = LiveSessionError;
|
|
185
185
|
exports.classifySessionArtifact = classifySessionArtifact;
|
package/dist/persistence.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export { PersistenceSchema } from './chunk-HY66GLM6.js';
|
|
2
|
-
export { SessionBusyError, acquireSessionWriter, sessionHasWriter } from './chunk-
|
|
3
|
-
export { encodeProjectDir, transcriptPath, transcriptRoot } from './chunk-
|
|
2
|
+
export { SessionBusyError, acquireSessionWriter, sessionHasWriter } from './chunk-B3IMEBOA.js';
|
|
3
|
+
export { encodeProjectDir, transcriptPath, transcriptRoot } from './chunk-UMP6OJIM.js';
|
|
4
4
|
export { sanitizeFts5Query } from './chunk-WE22OXQA.js';
|
|
5
|
-
export { applyWalWithFallback, isCorruptionError, openSqliteResilient } from './chunk-
|
|
6
|
-
export { JsonlParseError, appendJsonl, loadJsonl, readJsonlIds, withFileLock } from './chunk-
|
|
5
|
+
export { applyWalWithFallback, isCorruptionError, openSqliteResilient } from './chunk-LWGSI6M3.js';
|
|
6
|
+
export { JsonlParseError, appendJsonl, loadJsonl, readJsonlIds, withFileLock } from './chunk-3O42QOMJ.js';
|
|
7
7
|
export { withCwdMutex } from './chunk-Q5EWJPRY.js';
|
|
8
|
-
import { atomicWriteTempTarget } from './chunk-
|
|
9
|
-
export { atomicWriteJson, atomicWriteTempTarget, atomicWriteText, replaceFileAtomic } from './chunk-
|
|
10
|
-
import { TheokitAgentError } from './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
8
|
+
import { atomicWriteTempTarget } from './chunk-2GUYQR5P.js';
|
|
9
|
+
export { atomicWriteJson, atomicWriteTempTarget, atomicWriteText, replaceFileAtomic } from './chunk-2GUYQR5P.js';
|
|
10
|
+
import { TheokitAgentError } from './chunk-ZZMZWBR6.js';
|
|
11
|
+
import './chunk-D4CUGAKZ.js';
|
|
12
|
+
import './chunk-XEQ3TM66.js';
|
|
13
13
|
import { readFileSync, openSync, writeSync, closeSync, fstatSync, readSync } from 'fs';
|
|
14
14
|
|
|
15
15
|
// src/internal/persistence/session-artifacts.ts
|