@theokit/sdk 5.7.0 → 5.9.0
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 +77 -0
- package/dist/a2a/index.cjs +6 -6
- package/dist/a2a/index.js +2 -2
- package/dist/agent-6STOEBGQ.js +59 -0
- package/dist/{agent-EQ5HKTWV.js.map → agent-6STOEBGQ.js.map} +1 -1
- package/dist/{agent-Dya5SmhY.d.cts → agent-Dh2YHSLj.d.cts} +33 -3
- package/dist/agent-ZM4FDDL7.cjs +68 -0
- package/dist/{agent-KA63WDQH.cjs.map → agent-ZM4FDDL7.cjs.map} +1 -1
- package/dist/{agent-Bqzdhkqr.d.ts → agent-enXXu447.d.ts} +33 -3
- package/dist/auth/index.cjs +32 -32
- package/dist/auth/index.js +5 -5
- package/dist/{batch-US4F6WPK.js → batch-427O54FQ.js} +7 -7
- package/dist/{batch-US4F6WPK.js.map → batch-427O54FQ.js.map} +1 -1
- package/dist/{batch-I6T6MXZO.cjs → batch-U4SO4RLX.cjs} +24 -24
- package/dist/{batch-I6T6MXZO.cjs.map → batch-U4SO4RLX.cjs.map} +1 -1
- package/dist/{chunk-44I6UYVH.js → chunk-26NEAJ6T.js} +4 -4
- package/dist/{chunk-44I6UYVH.js.map → chunk-26NEAJ6T.js.map} +1 -1
- package/dist/{chunk-A6PDYH55.js → chunk-4QCJAJAG.js} +2 -2
- package/dist/chunk-4QCJAJAG.js.map +1 -0
- package/dist/{chunk-XYFGKVZ7.js → chunk-53RDNK3H.js} +3 -3
- package/dist/{chunk-XYFGKVZ7.js.map → chunk-53RDNK3H.js.map} +1 -1
- package/dist/{chunk-CZWN4C6A.js → chunk-5522X223.js} +3 -3
- package/dist/{chunk-CZWN4C6A.js.map → chunk-5522X223.js.map} +1 -1
- package/dist/{chunk-EH6XD3FY.js → chunk-5DD4NJN3.js} +3 -3
- package/dist/{chunk-EH6XD3FY.js.map → chunk-5DD4NJN3.js.map} +1 -1
- package/dist/{chunk-V22DZIXO.js → chunk-5Q4RTLMP.js} +3 -3
- package/dist/{chunk-V22DZIXO.js.map → chunk-5Q4RTLMP.js.map} +1 -1
- package/dist/{chunk-ER5BOIYD.cjs → chunk-5WR33BHA.cjs} +22 -22
- package/dist/{chunk-ER5BOIYD.cjs.map → chunk-5WR33BHA.cjs.map} +1 -1
- package/dist/{chunk-4A3SKJ53.cjs → chunk-6PB5AQCY.cjs} +14 -14
- package/dist/{chunk-4A3SKJ53.cjs.map → chunk-6PB5AQCY.cjs.map} +1 -1
- package/dist/{chunk-PRZ3BES7.cjs → chunk-72CPLZPC.cjs} +5 -5
- package/dist/{chunk-PRZ3BES7.cjs.map → chunk-72CPLZPC.cjs.map} +1 -1
- package/dist/{chunk-HNAYCTX4.cjs → chunk-76PIKR4P.cjs} +22 -22
- package/dist/{chunk-HNAYCTX4.cjs.map → chunk-76PIKR4P.cjs.map} +1 -1
- package/dist/{chunk-EFMFILPG.js → chunk-7F7XE6CM.js} +3 -3
- package/dist/{chunk-EFMFILPG.js.map → chunk-7F7XE6CM.js.map} +1 -1
- package/dist/{chunk-7C3HWGCW.js → chunk-7GDHFV2M.js} +3 -3
- package/dist/{chunk-7C3HWGCW.js.map → chunk-7GDHFV2M.js.map} +1 -1
- package/dist/{chunk-CA5VUAP3.js → chunk-7HUCU3KK.js} +5 -5
- package/dist/{chunk-CA5VUAP3.js.map → chunk-7HUCU3KK.js.map} +1 -1
- package/dist/{chunk-4MMWFSCD.js → chunk-7JAKO3NM.js} +3 -3
- package/dist/{chunk-4MMWFSCD.js.map → chunk-7JAKO3NM.js.map} +1 -1
- package/dist/{chunk-UADQJBHR.cjs → chunk-7NQ7HJ3E.cjs} +6 -6
- package/dist/{chunk-UADQJBHR.cjs.map → chunk-7NQ7HJ3E.cjs.map} +1 -1
- package/dist/{chunk-ZLMU5EU3.cjs → chunk-ARMFXTY6.cjs} +114 -190
- package/dist/chunk-ARMFXTY6.cjs.map +1 -0
- package/dist/{chunk-5WKQDIGO.js → chunk-AY43232P.js} +4 -4
- package/dist/{chunk-5WKQDIGO.js.map → chunk-AY43232P.js.map} +1 -1
- package/dist/{chunk-7FDKWDA2.cjs → chunk-B3XXQX6L.cjs} +7 -7
- package/dist/{chunk-7FDKWDA2.cjs.map → chunk-B3XXQX6L.cjs.map} +1 -1
- package/dist/{chunk-ALUN2B4W.js → chunk-B5MHRQJZ.js} +9 -3
- package/dist/chunk-B5MHRQJZ.js.map +1 -0
- package/dist/{chunk-TA3K7SBK.js → chunk-BKMDRBJ7.js} +3 -3
- package/dist/{chunk-TA3K7SBK.js.map → chunk-BKMDRBJ7.js.map} +1 -1
- package/dist/{chunk-A575WPBL.cjs → chunk-BM6PDJW3.cjs} +260 -260
- package/dist/{chunk-A575WPBL.cjs.map → chunk-BM6PDJW3.cjs.map} +1 -1
- package/dist/{chunk-RWPLWMCZ.cjs → chunk-C7GKRGKN.cjs} +42 -21
- package/dist/chunk-C7GKRGKN.cjs.map +1 -0
- package/dist/{chunk-FUSDYC2B.cjs → chunk-CQYBJOB2.cjs} +4 -4
- package/dist/{chunk-FUSDYC2B.cjs.map → chunk-CQYBJOB2.cjs.map} +1 -1
- package/dist/{chunk-7JJ3A6AT.cjs → chunk-D5KXKBEN.cjs} +5 -5
- package/dist/{chunk-7JJ3A6AT.cjs.map → chunk-D5KXKBEN.cjs.map} +1 -1
- package/dist/{chunk-3VXQEQE4.js → chunk-DDRX4LYS.js} +4 -4
- package/dist/{chunk-3VXQEQE4.js.map → chunk-DDRX4LYS.js.map} +1 -1
- package/dist/{chunk-QDM3OHUT.cjs → chunk-ECD6ER3E.cjs} +4 -4
- package/dist/{chunk-QDM3OHUT.cjs.map → chunk-ECD6ER3E.cjs.map} +1 -1
- package/dist/{chunk-JMDDYA22.js → chunk-EJROML3Q.js} +4 -4
- package/dist/{chunk-JMDDYA22.js.map → chunk-EJROML3Q.js.map} +1 -1
- package/dist/{chunk-EIQFAOFD.js → chunk-GGRPAQ3B.js} +3 -3
- package/dist/{chunk-EIQFAOFD.js.map → chunk-GGRPAQ3B.js.map} +1 -1
- package/dist/{chunk-HCT4HPCL.cjs → chunk-GHHIJEFX.cjs} +4 -4
- package/dist/{chunk-HCT4HPCL.cjs.map → chunk-GHHIJEFX.cjs.map} +1 -1
- package/dist/{chunk-7A6535RA.cjs → chunk-GM54F4FE.cjs} +9 -9
- package/dist/{chunk-7A6535RA.cjs.map → chunk-GM54F4FE.cjs.map} +1 -1
- package/dist/{chunk-6M2OIS4Y.js → chunk-GMRFAX4I.js} +74 -4
- package/dist/chunk-GMRFAX4I.js.map +1 -0
- package/dist/{chunk-O6USDERH.js → chunk-GMSRRJ53.js} +3 -3
- package/dist/{chunk-O6USDERH.js.map → chunk-GMSRRJ53.js.map} +1 -1
- package/dist/{chunk-VE6DFSKU.js → chunk-GTX6FEDP.js} +3 -3
- package/dist/{chunk-VE6DFSKU.js.map → chunk-GTX6FEDP.js.map} +1 -1
- package/dist/{chunk-NJWYQWDL.js → chunk-H3CVJSFC.js} +3 -3
- package/dist/{chunk-NJWYQWDL.js.map → chunk-H3CVJSFC.js.map} +1 -1
- package/dist/{chunk-MYJGWS2J.cjs → chunk-HG5LKFG7.cjs} +16 -16
- package/dist/{chunk-MYJGWS2J.cjs.map → chunk-HG5LKFG7.cjs.map} +1 -1
- package/dist/{chunk-55GB6JYQ.js → chunk-HOHR75KF.js} +5 -5
- package/dist/{chunk-55GB6JYQ.js.map → chunk-HOHR75KF.js.map} +1 -1
- package/dist/{chunk-GBCVPKHE.js → chunk-HV4V63CO.js} +3 -3
- package/dist/{chunk-GBCVPKHE.js.map → chunk-HV4V63CO.js.map} +1 -1
- package/dist/{chunk-I2PWY7VM.cjs → chunk-IIYJMXYW.cjs} +4 -4
- package/dist/{chunk-I2PWY7VM.cjs.map → chunk-IIYJMXYW.cjs.map} +1 -1
- package/dist/{chunk-YYN6BB7R.cjs → chunk-J4SA2ZEJ.cjs} +4 -4
- package/dist/{chunk-YYN6BB7R.cjs.map → chunk-J4SA2ZEJ.cjs.map} +1 -1
- package/dist/{chunk-ATT276RD.cjs → chunk-J5623RIV.cjs} +78 -6
- package/dist/chunk-J5623RIV.cjs.map +1 -0
- package/dist/{chunk-KVSAY6NZ.cjs → chunk-J6GXS5A2.cjs} +13 -13
- package/dist/{chunk-KVSAY6NZ.cjs.map → chunk-J6GXS5A2.cjs.map} +1 -1
- package/dist/{chunk-NQTD6QOW.cjs → chunk-JW3GVLM6.cjs} +4 -4
- package/dist/{chunk-NQTD6QOW.cjs.map → chunk-JW3GVLM6.cjs.map} +1 -1
- package/dist/{chunk-TFG5IBZS.cjs → chunk-KGZ66JVZ.cjs} +14 -14
- package/dist/{chunk-TFG5IBZS.cjs.map → chunk-KGZ66JVZ.cjs.map} +1 -1
- package/dist/{chunk-47TF32NQ.js → chunk-KO6SHCEH.js} +3 -3
- package/dist/{chunk-47TF32NQ.js.map → chunk-KO6SHCEH.js.map} +1 -1
- package/dist/{chunk-EFETPSJZ.cjs → chunk-KTA7YTZQ.cjs} +12 -12
- package/dist/{chunk-EFETPSJZ.cjs.map → chunk-KTA7YTZQ.cjs.map} +1 -1
- package/dist/{chunk-D6POWE7E.cjs → chunk-MEUBLCM4.cjs} +11 -11
- package/dist/{chunk-D6POWE7E.cjs.map → chunk-MEUBLCM4.cjs.map} +1 -1
- package/dist/{chunk-VWUXIVEI.js → chunk-MFZODA5Y.js} +5 -5
- package/dist/{chunk-VWUXIVEI.js.map → chunk-MFZODA5Y.js.map} +1 -1
- package/dist/{chunk-4HS6FFGL.cjs → chunk-MPQJE3G4.cjs} +15 -15
- package/dist/{chunk-4HS6FFGL.cjs.map → chunk-MPQJE3G4.cjs.map} +1 -1
- package/dist/{chunk-QRVS2PRE.cjs → chunk-MPR2ISL2.cjs} +4 -4
- package/dist/{chunk-QRVS2PRE.cjs.map → chunk-MPR2ISL2.cjs.map} +1 -1
- package/dist/{chunk-UOLBAPDM.js → chunk-MQGSOKR3.js} +3 -3
- package/dist/{chunk-UOLBAPDM.js.map → chunk-MQGSOKR3.js.map} +1 -1
- package/dist/{chunk-HFEJE7AC.js → chunk-MU7IAA7G.js} +9 -9
- package/dist/{chunk-HFEJE7AC.js.map → chunk-MU7IAA7G.js.map} +1 -1
- package/dist/{chunk-EXTRW7GW.cjs → chunk-NAGPKWOD.cjs} +4 -4
- package/dist/{chunk-EXTRW7GW.cjs.map → chunk-NAGPKWOD.cjs.map} +1 -1
- package/dist/{chunk-KTTHHYEW.cjs → chunk-NJSIAJEK.cjs} +4 -4
- package/dist/{chunk-KTTHHYEW.cjs.map → chunk-NJSIAJEK.cjs.map} +1 -1
- package/dist/{chunk-Z3NTRKIC.cjs → chunk-NKIQTLFA.cjs} +4 -4
- package/dist/{chunk-Z3NTRKIC.cjs.map → chunk-NKIQTLFA.cjs.map} +1 -1
- package/dist/{chunk-N7VAE6DZ.js → chunk-NOO6GZTZ.js} +8 -84
- package/dist/chunk-NOO6GZTZ.js.map +1 -0
- package/dist/{chunk-GK3UG7YQ.cjs → chunk-OCEQ6DW2.cjs} +10 -10
- package/dist/{chunk-GK3UG7YQ.cjs.map → chunk-OCEQ6DW2.cjs.map} +1 -1
- package/dist/{chunk-BJUJT5ED.cjs → chunk-OF2CLCTH.cjs} +4 -4
- package/dist/{chunk-BJUJT5ED.cjs.map → chunk-OF2CLCTH.cjs.map} +1 -1
- package/dist/{chunk-HUFSABUZ.cjs → chunk-OLSEWLK5.cjs} +6 -6
- package/dist/{chunk-HUFSABUZ.cjs.map → chunk-OLSEWLK5.cjs.map} +1 -1
- package/dist/{chunk-DQZU7JK6.cjs → chunk-P22BZE7G.cjs} +4 -4
- package/dist/{chunk-DQZU7JK6.cjs.map → chunk-P22BZE7G.cjs.map} +1 -1
- package/dist/{chunk-QWD3CZWE.cjs → chunk-P7NNKEWO.cjs} +4 -4
- package/dist/{chunk-QWD3CZWE.cjs.map → chunk-P7NNKEWO.cjs.map} +1 -1
- package/dist/{chunk-DQNI52VV.js → chunk-PQCTDMUI.js} +3 -3
- package/dist/{chunk-DQNI52VV.js.map → chunk-PQCTDMUI.js.map} +1 -1
- package/dist/{chunk-3XSWF5AP.cjs → chunk-PSLCVSCS.cjs} +3 -3
- package/dist/{chunk-3XSWF5AP.cjs.map → chunk-PSLCVSCS.cjs.map} +1 -1
- package/dist/{chunk-FUUSIT2T.js → chunk-PYFBS6OQ.js} +34 -34
- package/dist/{chunk-FUUSIT2T.js.map → chunk-PYFBS6OQ.js.map} +1 -1
- package/dist/{chunk-YRLI5DVC.js → chunk-QDQQYRJI.js} +4 -4
- package/dist/{chunk-YRLI5DVC.js.map → chunk-QDQQYRJI.js.map} +1 -1
- package/dist/{chunk-P5S3WCSZ.js → chunk-R2C3HXR3.js} +4 -4
- package/dist/{chunk-P5S3WCSZ.js.map → chunk-R2C3HXR3.js.map} +1 -1
- package/dist/chunk-R3ZQBPA5.cjs +18 -0
- package/dist/{chunk-ANMJJD6D.cjs.map → chunk-R3ZQBPA5.cjs.map} +1 -1
- package/dist/{chunk-4NLCWGH7.cjs → chunk-RA7IE4NK.cjs} +15 -15
- package/dist/{chunk-4NLCWGH7.cjs.map → chunk-RA7IE4NK.cjs.map} +1 -1
- package/dist/{chunk-UBR5PWD7.js → chunk-SUVCHX4L.js} +3 -3
- package/dist/{chunk-UBR5PWD7.js.map → chunk-SUVCHX4L.js.map} +1 -1
- package/dist/{chunk-7KBNBPFK.cjs → chunk-SWALPLFQ.cjs} +2 -2
- package/dist/chunk-SWALPLFQ.cjs.map +1 -0
- package/dist/{chunk-E6QXZZKE.cjs → chunk-T5KOSR5Y.cjs} +11 -11
- package/dist/{chunk-E6QXZZKE.cjs.map → chunk-T5KOSR5Y.cjs.map} +1 -1
- package/dist/{chunk-R3LBRQAN.js → chunk-TC4RWP3Y.js} +6 -6
- package/dist/{chunk-R3LBRQAN.js.map → chunk-TC4RWP3Y.js.map} +1 -1
- package/dist/{chunk-XB4GI5RZ.js → chunk-TE6XVTOA.js} +3 -3
- package/dist/{chunk-XB4GI5RZ.js.map → chunk-TE6XVTOA.js.map} +1 -1
- package/dist/{chunk-33A27NFX.cjs → chunk-TTBIQTO5.cjs} +19 -19
- package/dist/{chunk-33A27NFX.cjs.map → chunk-TTBIQTO5.cjs.map} +1 -1
- package/dist/{chunk-6JG2RFGK.js → chunk-UKBBYVNS.js} +5 -5
- package/dist/{chunk-6JG2RFGK.js.map → chunk-UKBBYVNS.js.map} +1 -1
- package/dist/{chunk-J7J7J2GN.cjs → chunk-UNFBHV46.cjs} +9 -2
- package/dist/chunk-UNFBHV46.cjs.map +1 -0
- package/dist/{chunk-AAEZSPTC.js → chunk-UNZOJVVC.js} +4 -4
- package/dist/{chunk-AAEZSPTC.js.map → chunk-UNZOJVVC.js.map} +1 -1
- package/dist/{chunk-24SYBZPL.cjs → chunk-WPO3VCY4.cjs} +9 -9
- package/dist/{chunk-24SYBZPL.cjs.map → chunk-WPO3VCY4.cjs.map} +1 -1
- package/dist/{chunk-IUMAQURF.js → chunk-X6DUEDAF.js} +3 -3
- package/dist/{chunk-IUMAQURF.js.map → chunk-X6DUEDAF.js.map} +1 -1
- package/dist/{chunk-CFE6QF2Q.js → chunk-XCQ432OX.js} +3 -3
- package/dist/{chunk-CFE6QF2Q.js.map → chunk-XCQ432OX.js.map} +1 -1
- package/dist/{chunk-QWD4RDZ3.cjs → chunk-XDUGSTYJ.cjs} +15 -15
- package/dist/{chunk-QWD4RDZ3.cjs.map → chunk-XDUGSTYJ.cjs.map} +1 -1
- package/dist/{chunk-K2VMFZQ5.js → chunk-XKMVJ443.js} +5 -5
- package/dist/{chunk-K2VMFZQ5.js.map → chunk-XKMVJ443.js.map} +1 -1
- package/dist/{chunk-6PWOWXMC.js → chunk-XZHJYSPB.js} +3 -3
- package/dist/{chunk-6PWOWXMC.js.map → chunk-XZHJYSPB.js.map} +1 -1
- package/dist/{chunk-QC55H6RJ.cjs → chunk-YRJA2POB.cjs} +9 -9
- package/dist/{chunk-QC55H6RJ.cjs.map → chunk-YRJA2POB.cjs.map} +1 -1
- package/dist/{chunk-T3ZDEYTJ.js → chunk-ZDYDBXSD.js} +36 -15
- package/dist/chunk-ZDYDBXSD.js.map +1 -0
- package/dist/{chunk-DMRT67Y6.js → chunk-ZJZ7LV3A.js} +3 -3
- package/dist/{chunk-DMRT67Y6.js.map → chunk-ZJZ7LV3A.js.map} +1 -1
- package/dist/{chunk-G7BLGBRN.js → chunk-ZWFTECOE.js} +3 -3
- package/dist/{chunk-G7BLGBRN.js.map → chunk-ZWFTECOE.js.map} +1 -1
- package/dist/{compact-session-QT6RJOKO.js → compact-session-2N3ZYJTW.js} +12 -12
- package/dist/{compact-session-QT6RJOKO.js.map → compact-session-2N3ZYJTW.js.map} +1 -1
- package/dist/{compact-session-75KD2FCM.cjs → compact-session-RBPLUPCK.cjs} +21 -21
- package/dist/{compact-session-75KD2FCM.cjs.map → compact-session-RBPLUPCK.cjs.map} +1 -1
- package/dist/compaction.cjs +20 -16
- package/dist/compaction.d.cts +2 -0
- package/dist/compaction.d.ts +2 -0
- package/dist/compaction.js +2 -2
- package/dist/concurrency.cjs +5 -5
- package/dist/concurrency.js +3 -3
- package/dist/context/index.cjs +13 -9
- package/dist/context/index.cjs.map +1 -1
- package/dist/context/index.d.cts +2 -0
- package/dist/context/index.d.ts +2 -0
- package/dist/context/index.js +5 -5
- package/dist/context/index.js.map +1 -1
- package/dist/context-SXR2HLHT.js +7 -0
- package/dist/{context-OJIIXJCV.js.map → context-SXR2HLHT.js.map} +1 -1
- package/dist/context-ZOULM2RB.cjs +24 -0
- package/dist/{context-7RP5JXGM.cjs.map → context-ZOULM2RB.cjs.map} +1 -1
- package/dist/{cron-D8uB1Xh5.d.ts → cron-DTuaPMVI.d.ts} +2 -2
- package/dist/{cron-BwxDUscv.d.cts → cron-QTgcwcZt.d.cts} +2 -2
- package/dist/cron.cjs +34 -34
- package/dist/cron.d.cts +4 -4
- package/dist/cron.d.ts +4 -4
- package/dist/cron.js +33 -33
- package/dist/{errors-DrDEgyz1.d.cts → errors-BWOJeWTZ.d.cts} +25 -2
- package/dist/{errors-CLOAyuiv.d.ts → errors-DDvG18IB.d.ts} +25 -2
- package/dist/errors.cjs +25 -21
- package/dist/errors.d.cts +2 -2
- package/dist/errors.d.ts +2 -2
- package/dist/errors.js +1 -1
- package/dist/eval.cjs +44 -44
- package/dist/eval.js +34 -34
- package/dist/{executor-XQAOQOHD.cjs → executor-2SUGI3ZT.cjs} +21 -21
- package/dist/{executor-XQAOQOHD.cjs.map → executor-2SUGI3ZT.cjs.map} +1 -1
- package/dist/{executor-ZNDQDX6Q.js → executor-3NI7KNL4.js} +6 -6
- package/dist/{executor-ZNDQDX6Q.js.map → executor-3NI7KNL4.js.map} +1 -1
- package/dist/filesystem/index.cjs +11 -11
- package/dist/filesystem/index.js +2 -2
- package/dist/fs-session-store-JHBJFKVV.cjs +19 -0
- package/dist/{fs-session-store-E4U3P56L.cjs.map → fs-session-store-JHBJFKVV.cjs.map} +1 -1
- package/dist/fs-session-store-STZZFXH2.js +10 -0
- package/dist/{fs-session-store-77JU46UZ.js.map → fs-session-store-STZZFXH2.js.map} +1 -1
- package/dist/generate-object-NTKAWE7D.js +7 -0
- package/dist/{generate-object-BXV7BZRP.js.map → generate-object-NTKAWE7D.js.map} +1 -1
- package/dist/generate-object-YHTWG5DB.cjs +20 -0
- package/dist/{generate-object-YBI2TDJ3.cjs.map → generate-object-YHTWG5DB.cjs.map} +1 -1
- package/dist/index-manager-ONQJSWX5.js +17 -0
- package/dist/{index-manager-Z4XMRVWQ.js.map → index-manager-ONQJSWX5.js.map} +1 -1
- package/dist/{index-manager-W7RHSL6G.cjs → index-manager-ZGJN25FD.cjs} +9 -9
- package/dist/{index-manager-W7RHSL6G.cjs.map → index-manager-ZGJN25FD.cjs.map} +1 -1
- package/dist/index.cjs +148 -146
- package/dist/index.d.cts +28 -10
- package/dist/index.d.ts +28 -10
- package/dist/index.js +49 -49
- package/dist/{inject-session-L6MIIELT.cjs → inject-session-3FPXJDJP.cjs} +4 -4
- package/dist/{inject-session-L6MIIELT.cjs.map → inject-session-3FPXJDJP.cjs.map} +1 -1
- package/dist/{inject-session-XWWN4DAA.js → inject-session-YNNOE3O6.js} +3 -3
- package/dist/{inject-session-XWWN4DAA.js.map → inject-session-YNNOE3O6.js.map} +1 -1
- package/dist/interactive/index.cjs +3 -3
- package/dist/interactive/index.js +1 -1
- package/dist/internal/memory/adapters/index.cjs +7 -7
- package/dist/internal/memory/adapters/index.js +6 -6
- package/dist/internal/memory/storage/index.cjs +35 -35
- package/dist/internal/memory/storage/index.js +6 -6
- package/dist/internal/persistence/index.cjs +11 -11
- package/dist/internal/persistence/index.js +3 -3
- package/dist/internal/runtime/compression/compression-model-registry.d.ts +1 -0
- package/dist/internal/runtime/compression/compression-summarizer.d.ts +0 -14
- package/dist/internal/runtime/context/context-discovery.d.ts +20 -5
- package/dist/internal/runtime/context/context-loaders.d.ts +5 -1
- package/dist/internal/security/index.cjs +9 -9
- package/dist/internal/security/index.js +2 -2
- package/dist/judge-call-AQQYK6VT.cjs +22 -0
- package/dist/{judge-call-46M2E5FA.cjs.map → judge-call-AQQYK6VT.cjs.map} +1 -1
- package/dist/judge-call-LOL5FQEX.js +5 -0
- package/dist/{judge-call-FGUNNWEI.js.map → judge-call-LOL5FQEX.js.map} +1 -1
- package/dist/mcp-auth.cjs +9 -9
- package/dist/mcp-auth.js +2 -2
- package/dist/models.cjs +15 -15
- package/dist/models.js +6 -6
- package/dist/oauth-transaction-store-NP2YHZ6D.js +5 -0
- package/dist/{oauth-transaction-store-5RIR6D5C.js.map → oauth-transaction-store-NP2YHZ6D.js.map} +1 -1
- package/dist/oauth-transaction-store-ZINDV7AF.cjs +38 -0
- package/dist/{oauth-transaction-store-SXIE57OD.cjs.map → oauth-transaction-store-ZINDV7AF.cjs.map} +1 -1
- package/dist/path-safety.cjs +9 -9
- package/dist/path-safety.js +2 -2
- package/dist/persistence.cjs +16 -16
- package/dist/persistence.js +4 -4
- package/dist/project.cjs +5 -5
- package/dist/project.js +2 -2
- package/dist/providers.cjs +8 -8
- package/dist/providers.js +6 -6
- package/dist/{registry-DMWCJKRF.js → registry-5FK42CRV.js} +6 -6
- package/dist/{registry-DMWCJKRF.js.map → registry-5FK42CRV.js.map} +1 -1
- package/dist/{registry-BZQFYRTL.cjs → registry-BVTNO73E.cjs} +14 -14
- package/dist/{registry-BZQFYRTL.cjs.map → registry-BVTNO73E.cjs.map} +1 -1
- package/dist/retry.cjs +3 -3
- package/dist/retry.js +2 -2
- package/dist/{run-CTAdRU3U.d.ts → run-DsA5Ip2i.d.cts} +1 -1
- package/dist/{run-CTAdRU3U.d.cts → run-DsA5Ip2i.d.ts} +1 -1
- package/dist/sandbox/index.cjs +18 -18
- package/dist/sandbox/index.js +3 -3
- package/dist/{sdk-agent-BOiKqOgL.d.cts → sdk-agent-dNwjwCt5.d.cts} +2 -2
- package/dist/{sdk-agent-D4a_BR_6.d.ts → sdk-agent-wEOLXD3F.d.ts} +2 -2
- package/dist/server/auth/index.cjs +21 -21
- package/dist/server/auth/index.js +6 -6
- package/dist/server/errors-envelope.cjs +13 -13
- package/dist/server/errors-envelope.d.cts +2 -2
- package/dist/server/errors-envelope.d.ts +2 -2
- package/dist/server/errors-envelope.js +2 -2
- package/dist/skills.cjs +7 -7
- package/dist/skills.js +4 -4
- package/dist/stream-object-QAEHG4YO.js +7 -0
- package/dist/{stream-object-HBFMIZLD.js.map → stream-object-QAEHG4YO.js.map} +1 -1
- package/dist/stream-object-TKVGGA54.cjs +20 -0
- package/dist/{stream-object-QSKHISDJ.cjs.map → stream-object-TKVGGA54.cjs.map} +1 -1
- package/dist/subagents-loader-5TZCAIYQ.cjs +16 -0
- package/dist/{subagents-loader-MOO7DC4E.cjs.map → subagents-loader-5TZCAIYQ.cjs.map} +1 -1
- package/dist/subagents-loader-PEV3PD4Q.js +7 -0
- package/dist/{subagents-loader-CJFYQQU2.js.map → subagents-loader-PEV3PD4Q.js.map} +1 -1
- package/dist/subagents-loader.cjs +5 -5
- package/dist/subagents-loader.d.cts +3 -3
- package/dist/subagents-loader.d.ts +3 -3
- package/dist/subagents-loader.js +3 -3
- package/dist/subscription/index.cjs +3 -2
- package/dist/subscription/index.d.cts +1 -1
- package/dist/subscription/index.d.ts +1 -1
- package/dist/subscription/index.js +2 -2
- package/dist/task-store.cjs +5 -5
- package/dist/task-store.js +2 -2
- package/dist/types/agent.d.ts +12 -0
- package/dist/workflow.cjs +25 -25
- package/dist/workflow.d.cts +2 -2
- package/dist/workflow.d.ts +2 -2
- package/dist/workflow.js +4 -4
- package/docs/error-codes.md +8 -7
- package/docs/harness-capability-map.md +17 -1
- package/package.json +1 -1
- package/dist/agent-EQ5HKTWV.js +0 -59
- package/dist/agent-KA63WDQH.cjs +0 -68
- package/dist/chunk-6M2OIS4Y.js.map +0 -1
- package/dist/chunk-7KBNBPFK.cjs.map +0 -1
- package/dist/chunk-A6PDYH55.js.map +0 -1
- package/dist/chunk-ALUN2B4W.js.map +0 -1
- package/dist/chunk-ANMJJD6D.cjs +0 -18
- package/dist/chunk-ATT276RD.cjs.map +0 -1
- package/dist/chunk-J7J7J2GN.cjs.map +0 -1
- package/dist/chunk-N7VAE6DZ.js.map +0 -1
- package/dist/chunk-RWPLWMCZ.cjs.map +0 -1
- package/dist/chunk-T3ZDEYTJ.js.map +0 -1
- package/dist/chunk-ZLMU5EU3.cjs.map +0 -1
- package/dist/context-7RP5JXGM.cjs +0 -24
- package/dist/context-OJIIXJCV.js +0 -7
- package/dist/fs-session-store-77JU46UZ.js +0 -10
- package/dist/fs-session-store-E4U3P56L.cjs +0 -19
- package/dist/generate-object-BXV7BZRP.js +0 -7
- package/dist/generate-object-YBI2TDJ3.cjs +0 -20
- package/dist/index-manager-Z4XMRVWQ.js +0 -17
- package/dist/judge-call-46M2E5FA.cjs +0 -22
- package/dist/judge-call-FGUNNWEI.js +0 -5
- package/dist/oauth-transaction-store-5RIR6D5C.js +0 -5
- package/dist/oauth-transaction-store-SXIE57OD.cjs +0 -38
- package/dist/stream-object-HBFMIZLD.js +0 -7
- package/dist/stream-object-QSKHISDJ.cjs +0 -20
- package/dist/subagents-loader-CJFYQQU2.js +0 -7
- package/dist/subagents-loader-MOO7DC4E.cjs +0 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as ModelSelection,
|
|
1
|
+
import { M as ModelSelection, ab as SDKUserMessage, ad as SendOptions, b as Run, G as GenerateOptions, m as GenerateRunResult, Z as RunToCompletionOptions, _ as RunToCompletionResult, S as SDKMessage, ak as StreamToCompletionResult } from './run-DsA5Ip2i.cjs';
|
|
2
2
|
import * as zod from 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -937,4 +937,4 @@ interface InvalidateCacheOptions {
|
|
|
937
937
|
applyNow?: boolean;
|
|
938
938
|
}
|
|
939
939
|
|
|
940
|
-
export type { AgentMemory as A,
|
|
940
|
+
export type { AgentMemory as A, SDKContextManager as B, ContextSettings as C, SDKPluginMetadata as D, SDKProvidersManager as E, ForkOptions as F, GoalOptions as G, SystemPromptSkillRef as H, InvalidateCacheOptions as I, JudgeResult as J, MemoryId as M, ProviderRoutingSettings as P, ResolvedProviderRoute as R, SDKAgent as S, Verdict as V, PluginsSettings as a, GoalEvent as b, GoalResult as c, SDKProvider as d, AgentOperation as e, ContextBudget as f, ContextManagerKind as g, ContextSnapshot as h, ContextSource as i, ContextSourceStatus as j, ForkResult as k, MemoryAdapter as l, MemoryAdapterCapabilities as m, MemoryContext as n, MemoryFact as o, MemoryRevision as p, MemoryToolSchema as q, MemoryTurnMessage as r, PersonalityPreset as s, ProviderCapability as t, ProviderRoute as u, RunUntilIterator as v, SDKAgentPlugins as w, SDKAgentSkillDetail as x, SDKAgentSkills as y, SDKArtifact as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as ModelSelection,
|
|
1
|
+
import { M as ModelSelection, ab as SDKUserMessage, ad as SendOptions, b as Run, G as GenerateOptions, m as GenerateRunResult, Z as RunToCompletionOptions, _ as RunToCompletionResult, S as SDKMessage, ak as StreamToCompletionResult } from './run-DsA5Ip2i.js';
|
|
2
2
|
import * as zod from 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -937,4 +937,4 @@ interface InvalidateCacheOptions {
|
|
|
937
937
|
applyNow?: boolean;
|
|
938
938
|
}
|
|
939
939
|
|
|
940
|
-
export type { AgentMemory as A,
|
|
940
|
+
export type { AgentMemory as A, SDKContextManager as B, ContextSettings as C, SDKPluginMetadata as D, SDKProvidersManager as E, ForkOptions as F, GoalOptions as G, SystemPromptSkillRef as H, InvalidateCacheOptions as I, JudgeResult as J, MemoryId as M, ProviderRoutingSettings as P, ResolvedProviderRoute as R, SDKAgent as S, Verdict as V, PluginsSettings as a, GoalEvent as b, GoalResult as c, SDKProvider as d, AgentOperation as e, ContextBudget as f, ContextManagerKind as g, ContextSnapshot as h, ContextSource as i, ContextSourceStatus as j, ForkResult as k, MemoryAdapter as l, MemoryAdapterCapabilities as m, MemoryContext as n, MemoryFact as o, MemoryRevision as p, MemoryToolSchema as q, MemoryTurnMessage as r, PersonalityPreset as s, ProviderCapability as t, ProviderRoute as u, RunUntilIterator as v, SDKAgentPlugins as w, SDKAgentSkillDetail as x, SDKAgentSkills as y, SDKArtifact as z };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('../../chunk-
|
|
3
|
+
var chunkP7NNKEWO_cjs = require('../../chunk-P7NNKEWO.cjs');
|
|
4
|
+
var chunkOLSEWLK5_cjs = require('../../chunk-OLSEWLK5.cjs');
|
|
5
|
+
require('../../chunk-UNFBHV46.cjs');
|
|
6
6
|
require('../../chunk-6LHQPOMI.cjs');
|
|
7
7
|
var crypto = require('crypto');
|
|
8
8
|
|
|
@@ -49,7 +49,7 @@ function txCookieSecret(opts) {
|
|
|
49
49
|
const fromEnv = process.env.THEOKIT_OAUTH_TX_SECRET;
|
|
50
50
|
if (fromEnv) return fromEnv;
|
|
51
51
|
if (process.env.NODE_ENV === "production") {
|
|
52
|
-
throw new
|
|
52
|
+
throw new chunkOLSEWLK5_cjs.AuthConfigError(
|
|
53
53
|
"missing_tx_secret",
|
|
54
54
|
"No OAuth transaction secret is configured. Set THEOKIT_OAUTH_TX_SECRET to a 32+ character random value \u2014 e.g. `openssl rand -hex 32`. Refusing to encrypt the transaction cookie with the development fallback, which ships inside this package and protects nothing."
|
|
55
55
|
);
|
|
@@ -58,18 +58,18 @@ function txCookieSecret(opts) {
|
|
|
58
58
|
}
|
|
59
59
|
function defineAuth(opts) {
|
|
60
60
|
if (!opts.session) {
|
|
61
|
-
throw new
|
|
61
|
+
throw new chunkOLSEWLK5_cjs.AuthConfigError("missing_session", "defineAuth({ session }) is required");
|
|
62
62
|
}
|
|
63
63
|
const providersMap = /* @__PURE__ */ new Map();
|
|
64
64
|
for (const provider of opts.providers ?? []) {
|
|
65
65
|
if (!provider.name || !PROVIDER_NAME_RE.test(provider.name)) {
|
|
66
|
-
throw new
|
|
66
|
+
throw new chunkOLSEWLK5_cjs.AuthConfigError(
|
|
67
67
|
"invalid_provider_name",
|
|
68
68
|
`Provider name must match ${PROVIDER_NAME_RE} (got: '${provider.name}')`
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
71
|
if (providersMap.has(provider.name)) {
|
|
72
|
-
throw new
|
|
72
|
+
throw new chunkOLSEWLK5_cjs.AuthConfigError(
|
|
73
73
|
"duplicate_provider_name",
|
|
74
74
|
`Duplicate provider name: '${provider.name}'`
|
|
75
75
|
);
|
|
@@ -79,7 +79,7 @@ function defineAuth(opts) {
|
|
|
79
79
|
const txSecret = txCookieSecret(opts);
|
|
80
80
|
function requireProvider(name) {
|
|
81
81
|
const p = providersMap.get(name);
|
|
82
|
-
if (!p) throw new
|
|
82
|
+
if (!p) throw new chunkOLSEWLK5_cjs.AuthProviderNotFoundError(name);
|
|
83
83
|
return p;
|
|
84
84
|
}
|
|
85
85
|
async function startSignIn(providerName, req, startOpts) {
|
|
@@ -88,7 +88,7 @@ function defineAuth(opts) {
|
|
|
88
88
|
const safeReturnTo = validateReturnTo(startOpts?.returnTo, baseUrl);
|
|
89
89
|
const state = randomState();
|
|
90
90
|
const pkceVerifier = generatePkceVerifier();
|
|
91
|
-
const tx =
|
|
91
|
+
const tx = chunkP7NNKEWO_cjs.newTransaction({
|
|
92
92
|
state,
|
|
93
93
|
pkceVerifier,
|
|
94
94
|
returnTo: safeReturnTo === "/" ? void 0 : safeReturnTo
|
|
@@ -96,7 +96,7 @@ function defineAuth(opts) {
|
|
|
96
96
|
const authUrl = await provider.createAuthorizationURL(tx);
|
|
97
97
|
const headers = new Headers();
|
|
98
98
|
headers.set("Location", authUrl.toString());
|
|
99
|
-
const { encodeTransaction, COOKIE_NAME } = await import('../../oauth-transaction-store-
|
|
99
|
+
const { encodeTransaction, COOKIE_NAME } = await import('../../oauth-transaction-store-ZINDV7AF.cjs');
|
|
100
100
|
const encodedTx = await encodeTransaction(tx, txSecret);
|
|
101
101
|
headers.set(
|
|
102
102
|
"Set-Cookie",
|
|
@@ -111,23 +111,23 @@ function defineAuth(opts) {
|
|
|
111
111
|
if (errorParam) {
|
|
112
112
|
const errorDescription = url.searchParams.get("error_description") ?? void 0;
|
|
113
113
|
if (errorParam === "access_denied") {
|
|
114
|
-
throw new
|
|
114
|
+
throw new chunkOLSEWLK5_cjs.AuthCancelledError(errorDescription);
|
|
115
115
|
}
|
|
116
|
-
throw new
|
|
116
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
117
117
|
"oauth_provider_error",
|
|
118
118
|
`Provider returned error: ${errorParam}${errorDescription ? ` (${errorDescription})` : ""}`
|
|
119
119
|
);
|
|
120
120
|
}
|
|
121
|
-
const tx = await
|
|
121
|
+
const tx = await chunkP7NNKEWO_cjs.getTransaction(req, txSecret);
|
|
122
122
|
if (!tx) {
|
|
123
|
-
throw new
|
|
123
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
124
124
|
"oauth_transaction_expired",
|
|
125
125
|
"OAuth transaction cookie missing or expired (>10min). Please retry sign-in."
|
|
126
126
|
);
|
|
127
127
|
}
|
|
128
128
|
const queryState = url.searchParams.get("state");
|
|
129
129
|
if (!queryState || queryState !== tx.state) {
|
|
130
|
-
throw new
|
|
130
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
131
131
|
"oauth_state_mismatch",
|
|
132
132
|
"OAuth state mismatch. Possible CSRF attempt or stale callback."
|
|
133
133
|
);
|
|
@@ -144,7 +144,7 @@ function defineAuth(opts) {
|
|
|
144
144
|
} catch {
|
|
145
145
|
}
|
|
146
146
|
await opts.session.createSession(res, sessionData);
|
|
147
|
-
|
|
147
|
+
chunkP7NNKEWO_cjs.clearTransaction(res);
|
|
148
148
|
return { session: sessionData, returnTo: tx.returnTo };
|
|
149
149
|
}
|
|
150
150
|
async function signIn(profile, providerName, req, res) {
|
|
@@ -186,23 +186,23 @@ var Auth = class {
|
|
|
186
186
|
|
|
187
187
|
Object.defineProperty(exports, "AuthSecretTooShortError", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkP7NNKEWO_cjs.AuthSecretTooShortError; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "AuthCallbackError", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkOLSEWLK5_cjs.AuthCallbackError; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "AuthCancelledError", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkOLSEWLK5_cjs.AuthCancelledError; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "AuthConfigError", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkOLSEWLK5_cjs.AuthConfigError; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "AuthProviderNotFoundError", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkOLSEWLK5_cjs.AuthProviderNotFoundError; }
|
|
206
206
|
});
|
|
207
207
|
exports.Auth = Auth;
|
|
208
208
|
exports.validateReturnTo = validateReturnTo;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getTransaction, clearTransaction, newTransaction } from '../../chunk-
|
|
2
|
-
export { AuthSecretTooShortError } from '../../chunk-
|
|
3
|
-
import { AuthConfigError, AuthCancelledError, AuthCallbackError, AuthProviderNotFoundError } from '../../chunk-
|
|
4
|
-
export { AuthCallbackError, AuthCancelledError, AuthConfigError, AuthProviderNotFoundError } from '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
1
|
+
import { getTransaction, clearTransaction, newTransaction } from '../../chunk-ZJZ7LV3A.js';
|
|
2
|
+
export { AuthSecretTooShortError } from '../../chunk-ZJZ7LV3A.js';
|
|
3
|
+
import { AuthConfigError, AuthCancelledError, AuthCallbackError, AuthProviderNotFoundError } from '../../chunk-H3CVJSFC.js';
|
|
4
|
+
export { AuthCallbackError, AuthCancelledError, AuthConfigError, AuthProviderNotFoundError } from '../../chunk-H3CVJSFC.js';
|
|
5
|
+
import '../../chunk-B5MHRQJZ.js';
|
|
6
6
|
import '../../chunk-CZJ6Q7CW.js';
|
|
7
7
|
import { webcrypto } from 'crypto';
|
|
8
8
|
|
|
@@ -96,7 +96,7 @@ function defineAuth(opts) {
|
|
|
96
96
|
const authUrl = await provider.createAuthorizationURL(tx);
|
|
97
97
|
const headers = new Headers();
|
|
98
98
|
headers.set("Location", authUrl.toString());
|
|
99
|
-
const { encodeTransaction, COOKIE_NAME } = await import('../../oauth-transaction-store-
|
|
99
|
+
const { encodeTransaction, COOKIE_NAME } = await import('../../oauth-transaction-store-NP2YHZ6D.js');
|
|
100
100
|
const encodedTx = await encodeTransaction(tx, txSecret);
|
|
101
101
|
headers.set(
|
|
102
102
|
"Set-Cookie",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUNFBHV46_cjs = require('../chunk-UNFBHV46.cjs');
|
|
4
4
|
require('../chunk-6LHQPOMI.cjs');
|
|
5
5
|
|
|
6
6
|
// src/server/errors-envelope.ts
|
|
@@ -37,7 +37,7 @@ function toEnvelope(value) {
|
|
|
37
37
|
}
|
|
38
38
|
function buildMeta(name, err) {
|
|
39
39
|
const meta = { sdkErrorName: name };
|
|
40
|
-
if (err instanceof
|
|
40
|
+
if (err instanceof chunkUNFBHV46_cjs.TheokitAgentError && err.metadata !== void 0) {
|
|
41
41
|
meta.provider = err.metadata.provider;
|
|
42
42
|
meta.endpoint = err.metadata.endpoint;
|
|
43
43
|
if (err.metadata.statusCode !== void 0) {
|
|
@@ -47,13 +47,13 @@ function buildMeta(name, err) {
|
|
|
47
47
|
return meta;
|
|
48
48
|
}
|
|
49
49
|
function buildExt(err) {
|
|
50
|
-
if (err instanceof
|
|
50
|
+
if (err instanceof chunkUNFBHV46_cjs.RateLimitError && err.metadata?.retryAfter !== void 0) {
|
|
51
51
|
return {
|
|
52
52
|
retryable: true,
|
|
53
53
|
retryAfterMs: err.metadata.retryAfter * 1e3
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
if (err instanceof
|
|
56
|
+
if (err instanceof chunkUNFBHV46_cjs.CredentialPoolExhaustedError && err.nextRetryAt !== void 0) {
|
|
57
57
|
const delayMs = Math.max(0, err.nextRetryAt - Date.now());
|
|
58
58
|
return {
|
|
59
59
|
retryable: true,
|
|
@@ -63,22 +63,22 @@ function buildExt(err) {
|
|
|
63
63
|
return void 0;
|
|
64
64
|
}
|
|
65
65
|
var CODE_TO_RECONSTRUCTOR = /* @__PURE__ */ new Map([
|
|
66
|
-
["UNAUTHORIZED", (env) => new
|
|
66
|
+
["UNAUTHORIZED", (env) => new chunkUNFBHV46_cjs.AuthenticationError(env.message)],
|
|
67
67
|
[
|
|
68
68
|
"RATE_LIMITED",
|
|
69
|
-
(env) => new
|
|
69
|
+
(env) => new chunkUNFBHV46_cjs.RateLimitError(env.message, env.cause !== void 0 ? { cause: env.cause } : {})
|
|
70
70
|
],
|
|
71
|
-
["PROVIDER_KEY_MISSING", (env) => new
|
|
72
|
-
["SERVICE_UNAVAILABLE", (env) => new
|
|
73
|
-
["GATEWAY_TIMEOUT", (env) => new
|
|
71
|
+
["PROVIDER_KEY_MISSING", (env) => new chunkUNFBHV46_cjs.ConfigurationError(env.message)],
|
|
72
|
+
["SERVICE_UNAVAILABLE", (env) => new chunkUNFBHV46_cjs.NetworkError(env.message)],
|
|
73
|
+
["GATEWAY_TIMEOUT", (env) => new chunkUNFBHV46_cjs.NetworkError(env.message)],
|
|
74
74
|
[
|
|
75
75
|
"AGENT_RUN_ERROR",
|
|
76
|
-
(env) => new
|
|
76
|
+
(env) => new chunkUNFBHV46_cjs.AgentRunError(env.message, {
|
|
77
77
|
code: "unknown",
|
|
78
78
|
...env.cause !== void 0 ? { cause: env.cause } : {}
|
|
79
79
|
})
|
|
80
80
|
],
|
|
81
|
-
["INTERNAL_SERVER_ERROR", (env) => new
|
|
81
|
+
["INTERNAL_SERVER_ERROR", (env) => new chunkUNFBHV46_cjs.UnknownAgentError(env.message)]
|
|
82
82
|
// BUDGET_EXCEEDED + CREDENTIAL_POOL_EXHAUSTED reconstructors require
|
|
83
83
|
// domain-specific args (budgetName, provider) that the envelope doesn't
|
|
84
84
|
// always carry. Fall back to UnknownAgentError when those fields are
|
|
@@ -88,12 +88,12 @@ var CODE_TO_RECONSTRUCTOR = /* @__PURE__ */ new Map([
|
|
|
88
88
|
function fromEnvelope(env) {
|
|
89
89
|
const reconstructor = CODE_TO_RECONSTRUCTOR.get(env.code);
|
|
90
90
|
if (reconstructor) return reconstructor(env);
|
|
91
|
-
return new
|
|
91
|
+
return new chunkUNFBHV46_cjs.UnknownAgentError(env.message);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
Object.defineProperty(exports, "MemoryAdapterError", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkUNFBHV46_cjs.MemoryAdapterError; }
|
|
97
97
|
});
|
|
98
98
|
exports.fromEnvelope = fromEnvelope;
|
|
99
99
|
exports.toEnvelope = toEnvelope;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { M as MemoryAdapterError } from '../errors-
|
|
1
|
+
export { M as MemoryAdapterError } from '../errors-BWOJeWTZ.cjs';
|
|
2
2
|
import { T as TheokitAgentError } from '../errors-base-B5g01neU.cjs';
|
|
3
|
-
import '../run-
|
|
3
|
+
import '../run-DsA5Ip2i.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { M as MemoryAdapterError } from '../errors-
|
|
1
|
+
export { M as MemoryAdapterError } from '../errors-DDvG18IB.js';
|
|
2
2
|
import { T as TheokitAgentError } from '../errors-base-B5g01neU.js';
|
|
3
|
-
import '../run-
|
|
3
|
+
import '../run-DsA5Ip2i.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TheokitAgentError, RateLimitError, CredentialPoolExhaustedError, UnknownAgentError, AuthenticationError, ConfigurationError, NetworkError, AgentRunError } from '../chunk-
|
|
2
|
-
export { MemoryAdapterError } from '../chunk-
|
|
1
|
+
import { TheokitAgentError, RateLimitError, CredentialPoolExhaustedError, UnknownAgentError, AuthenticationError, ConfigurationError, NetworkError, AgentRunError } from '../chunk-B5MHRQJZ.js';
|
|
2
|
+
export { MemoryAdapterError } from '../chunk-B5MHRQJZ.js';
|
|
3
3
|
import '../chunk-CZJ6Q7CW.js';
|
|
4
4
|
|
|
5
5
|
// src/server/errors-envelope.ts
|
package/dist/skills.cjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkHG5LKFG7_cjs = require('./chunk-HG5LKFG7.cjs');
|
|
4
|
+
require('./chunk-GM54F4FE.cjs');
|
|
5
5
|
require('./chunk-SA6K24NB.cjs');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-MPR2ISL2.cjs');
|
|
7
|
+
require('./chunk-UNFBHV46.cjs');
|
|
8
8
|
require('./chunk-6LHQPOMI.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "buildSkillsBlock", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkHG5LKFG7_cjs.buildSkillsBlock; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "discoverSkills", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkHG5LKFG7_cjs.discoverSkills; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "loadSkillInstructions", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkHG5LKFG7_cjs.loadSkillInstructions; }
|
|
23
23
|
});
|
|
24
24
|
//# sourceMappingURL=skills.cjs.map
|
|
25
25
|
//# sourceMappingURL=skills.cjs.map
|
package/dist/skills.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { buildSkillsBlock, discoverSkills, loadSkillInstructions } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { buildSkillsBlock, discoverSkills, loadSkillInstructions } from './chunk-7HUCU3KK.js';
|
|
2
|
+
import './chunk-5DD4NJN3.js';
|
|
3
3
|
import './chunk-UKMBRMGT.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-MQGSOKR3.js';
|
|
5
|
+
import './chunk-B5MHRQJZ.js';
|
|
6
6
|
import './chunk-CZJ6Q7CW.js';
|
|
7
7
|
//# sourceMappingURL=skills.js.map
|
|
8
8
|
//# sourceMappingURL=skills.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { StreamObjectError, streamObjectImpl } from './chunk-AY43232P.js';
|
|
2
|
+
import './chunk-KO6SHCEH.js';
|
|
3
|
+
import './chunk-7I5Z3UBJ.js';
|
|
4
|
+
import './chunk-B5MHRQJZ.js';
|
|
5
|
+
import './chunk-CZJ6Q7CW.js';
|
|
6
|
+
//# sourceMappingURL=stream-object-QAEHG4YO.js.map
|
|
7
|
+
//# sourceMappingURL=stream-object-QAEHG4YO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"stream-object-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"stream-object-QAEHG4YO.js"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkKGZ66JVZ_cjs = require('./chunk-KGZ66JVZ.cjs');
|
|
4
|
+
require('./chunk-D5KXKBEN.cjs');
|
|
5
|
+
require('./chunk-AA27GEYS.cjs');
|
|
6
|
+
require('./chunk-UNFBHV46.cjs');
|
|
7
|
+
require('./chunk-6LHQPOMI.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "StreamObjectError", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkKGZ66JVZ_cjs.StreamObjectError; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "streamObjectImpl", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkKGZ66JVZ_cjs.streamObjectImpl; }
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=stream-object-TKVGGA54.cjs.map
|
|
20
|
+
//# sourceMappingURL=stream-object-TKVGGA54.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"stream-object-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"stream-object-TKVGGA54.cjs"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkC7GKRGKN_cjs = require('./chunk-C7GKRGKN.cjs');
|
|
4
|
+
require('./chunk-TY56BKSK.cjs');
|
|
5
|
+
require('./chunk-MPR2ISL2.cjs');
|
|
6
|
+
require('./chunk-UNFBHV46.cjs');
|
|
7
|
+
require('./chunk-6LHQPOMI.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "loadSubagents", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkC7GKRGKN_cjs.loadSubagents; }
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=subagents-loader-5TZCAIYQ.cjs.map
|
|
16
|
+
//# sourceMappingURL=subagents-loader-5TZCAIYQ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"subagents-loader-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"subagents-loader-5TZCAIYQ.cjs"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { loadSubagents } from './chunk-ZDYDBXSD.js';
|
|
2
|
+
import './chunk-X7EUUHXU.js';
|
|
3
|
+
import './chunk-MQGSOKR3.js';
|
|
4
|
+
import './chunk-B5MHRQJZ.js';
|
|
5
|
+
import './chunk-CZJ6Q7CW.js';
|
|
6
|
+
//# sourceMappingURL=subagents-loader-PEV3PD4Q.js.map
|
|
7
|
+
//# sourceMappingURL=subagents-loader-PEV3PD4Q.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"subagents-loader-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"subagents-loader-PEV3PD4Q.js"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkC7GKRGKN_cjs = require('./chunk-C7GKRGKN.cjs');
|
|
4
4
|
require('./chunk-TY56BKSK.cjs');
|
|
5
|
-
require('./chunk-
|
|
6
|
-
var
|
|
5
|
+
require('./chunk-MPR2ISL2.cjs');
|
|
6
|
+
var chunkUNFBHV46_cjs = require('./chunk-UNFBHV46.cjs');
|
|
7
7
|
require('./chunk-6LHQPOMI.cjs');
|
|
8
8
|
|
|
9
9
|
// src/subagents-loader.ts
|
|
@@ -13,7 +13,7 @@ function resolveSources(options) {
|
|
|
13
13
|
if (declared === void 0) return ACCEPTED_SOURCES;
|
|
14
14
|
for (const source of declared) {
|
|
15
15
|
if (!ACCEPTED_SOURCES.includes(source)) {
|
|
16
|
-
throw new
|
|
16
|
+
throw new chunkUNFBHV46_cjs.ConfigurationError(
|
|
17
17
|
`Unknown subagent setting source "${String(source)}" (accepted: ${ACCEPTED_SOURCES.join(", ")})`,
|
|
18
18
|
{ code: "subagent_unknown_setting_source" }
|
|
19
19
|
);
|
|
@@ -23,7 +23,7 @@ function resolveSources(options) {
|
|
|
23
23
|
}
|
|
24
24
|
async function discoverSubagents(cwd, options) {
|
|
25
25
|
const sources = resolveSources(options);
|
|
26
|
-
return
|
|
26
|
+
return chunkC7GKRGKN_cjs.loadSubagents(cwd, sources.includes("project"), void 0, options?.compatSources ?? []);
|
|
27
27
|
}
|
|
28
28
|
async function loadSubagentDefinition(name, cwd, options) {
|
|
29
29
|
return (await discoverSubagents(cwd, options))[name];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as AgentDefinition } from './agent-
|
|
2
|
-
import './sdk-agent-
|
|
3
|
-
import './run-
|
|
1
|
+
import { a as AgentDefinition } from './agent-Dh2YHSLj.cjs';
|
|
2
|
+
import './sdk-agent-dNwjwCt5.cjs';
|
|
3
|
+
import './run-DsA5Ip2i.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as AgentDefinition } from './agent-
|
|
2
|
-
import './sdk-agent-
|
|
3
|
-
import './run-
|
|
1
|
+
import { a as AgentDefinition } from './agent-enXXu447.js';
|
|
2
|
+
import './sdk-agent-wEOLXD3F.js';
|
|
3
|
+
import './run-DsA5Ip2i.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/subagents-loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { loadSubagents } from './chunk-
|
|
1
|
+
import { loadSubagents } from './chunk-ZDYDBXSD.js';
|
|
2
2
|
import './chunk-X7EUUHXU.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import { ConfigurationError } from './chunk-
|
|
3
|
+
import './chunk-MQGSOKR3.js';
|
|
4
|
+
import { ConfigurationError } from './chunk-B5MHRQJZ.js';
|
|
5
5
|
import './chunk-CZJ6Q7CW.js';
|
|
6
6
|
|
|
7
7
|
// src/subagents-loader.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUNFBHV46_cjs = require('../chunk-UNFBHV46.cjs');
|
|
4
4
|
require('../chunk-6LHQPOMI.cjs');
|
|
5
5
|
|
|
6
6
|
// src/subscription/define-subscription.ts
|
|
@@ -138,7 +138,7 @@ function tracked(id, payload) {
|
|
|
138
138
|
}
|
|
139
139
|
return [id, payload];
|
|
140
140
|
}
|
|
141
|
-
var SubscriptionError = class extends
|
|
141
|
+
var SubscriptionError = class extends chunkUNFBHV46_cjs.TheokitAgentError {
|
|
142
142
|
name = "SubscriptionError";
|
|
143
143
|
constructor(message, options = {}) {
|
|
144
144
|
super(message, { ...options, isRetryable: false });
|
|
@@ -401,6 +401,7 @@ exports.Subscription = Subscription;
|
|
|
401
401
|
exports.SubscriptionDisconnectError = SubscriptionDisconnectError;
|
|
402
402
|
exports.SubscriptionError = SubscriptionError;
|
|
403
403
|
exports.SubscriptionInputError = SubscriptionInputError;
|
|
404
|
+
exports.defineSubscription = defineSubscription;
|
|
404
405
|
exports.isTrackedEnvelope = isTrackedEnvelope;
|
|
405
406
|
exports.subscribe = subscribe;
|
|
406
407
|
exports.tracked = tracked;
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
*
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
|
-
export { type DefineSubscriptionOptions, Subscription, } from "./define-subscription.js";
|
|
18
|
+
export { type DefineSubscriptionOptions, defineSubscription, Subscription, } from "./define-subscription.js";
|
|
19
19
|
export { type SubscribeOptions, subscribe } from "./theokit-subscribe.js";
|
|
20
20
|
export { isTrackedEnvelope, type SubscriptionCtx, type SubscriptionDescriptor, SubscriptionDisconnectError, SubscriptionError, SubscriptionInputError, type SubscriptionTransport, type TrackedEnvelope, tracked, } from "./types.js";
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
*
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
|
-
export { type DefineSubscriptionOptions, Subscription, } from "./define-subscription.js";
|
|
18
|
+
export { type DefineSubscriptionOptions, defineSubscription, Subscription, } from "./define-subscription.js";
|
|
19
19
|
export { type SubscribeOptions, subscribe } from "./theokit-subscribe.js";
|
|
20
20
|
export { isTrackedEnvelope, type SubscriptionCtx, type SubscriptionDescriptor, SubscriptionDisconnectError, SubscriptionError, SubscriptionInputError, type SubscriptionTransport, type TrackedEnvelope, tracked, } from "./types.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TheokitAgentError } from '../chunk-
|
|
1
|
+
import { TheokitAgentError } from '../chunk-B5MHRQJZ.js';
|
|
2
2
|
import '../chunk-CZJ6Q7CW.js';
|
|
3
3
|
|
|
4
4
|
// src/subscription/define-subscription.ts
|
|
@@ -395,6 +395,6 @@ function sleep(ms, signal) {
|
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
-
export { Subscription, SubscriptionDisconnectError, SubscriptionError, SubscriptionInputError, isTrackedEnvelope, subscribe, tracked };
|
|
398
|
+
export { Subscription, SubscriptionDisconnectError, SubscriptionError, SubscriptionInputError, defineSubscription, isTrackedEnvelope, subscribe, tracked };
|
|
399
399
|
//# sourceMappingURL=index.js.map
|
|
400
400
|
//# sourceMappingURL=index.js.map
|
package/dist/task-store.cjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGHHIJEFX_cjs = require('./chunk-GHHIJEFX.cjs');
|
|
4
4
|
require('./chunk-JLRLCBJ4.cjs');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-UNFBHV46.cjs');
|
|
6
6
|
require('./chunk-6LHQPOMI.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "InMemoryTaskStore", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkGHHIJEFX_cjs.InMemoryTaskStore; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "JsonFileTaskStore", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkGHHIJEFX_cjs.JsonFileTaskStore; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "getTaskStoreFor", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkGHHIJEFX_cjs.getTaskStoreFor; }
|
|
21
21
|
});
|
|
22
22
|
//# sourceMappingURL=task-store.cjs.map
|
|
23
23
|
//# sourceMappingURL=task-store.cjs.map
|
package/dist/task-store.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { InMemoryTaskStore, JsonFileTaskStore, getTaskStoreFor } from './chunk-
|
|
1
|
+
export { InMemoryTaskStore, JsonFileTaskStore, getTaskStoreFor } from './chunk-GGRPAQ3B.js';
|
|
2
2
|
import './chunk-3JHIFQ4I.js';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-B5MHRQJZ.js';
|
|
4
4
|
import './chunk-CZJ6Q7CW.js';
|
|
5
5
|
//# sourceMappingURL=task-store.js.map
|
|
6
6
|
//# sourceMappingURL=task-store.js.map
|
package/dist/types/agent.d.ts
CHANGED
|
@@ -250,6 +250,18 @@ export interface AgentDefinition {
|
|
|
250
250
|
* answered it for the other two surfaces.
|
|
251
251
|
*/
|
|
252
252
|
source?: string;
|
|
253
|
+
/**
|
|
254
|
+
* The memory root this subagent declared, from `memory:` in its frontmatter.
|
|
255
|
+
*
|
|
256
|
+
* CARRIED, never acted on here. Resolving it means deciding which of three roots a note lives
|
|
257
|
+
* under, and those roots differ in who can see it — `@theokit/agents` owns that decision, with
|
|
258
|
+
* `resolveAgentMemory` and a refusal for any scope it does not recognise. A second copy of that
|
|
259
|
+
* rule in this package is how the two drift into disagreeing about privacy.
|
|
260
|
+
*
|
|
261
|
+
* The value is passed through unjudged for the same reason: a scope a newer `@theokit/agents`
|
|
262
|
+
* has learned would otherwise be rejected here, by a list nobody remembered to update.
|
|
263
|
+
*/
|
|
264
|
+
memory?: string;
|
|
253
265
|
model?: ModelSelection | "inherit";
|
|
254
266
|
mcpServers?: Array<string | Record<string, McpServerConfig>>;
|
|
255
267
|
/**
|