@theokit/sdk 5.6.0 → 5.8.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 +105 -0
- package/dist/a2a/index.cjs +6 -6
- package/dist/a2a/index.js +2 -2
- package/dist/{agent-82d_DrCL.d.cts → agent-3RcPVGMo.d.cts} +22 -4
- package/dist/agent-7ERQNV66.js +59 -0
- package/dist/{agent-JJZM2VIK.js.map → agent-7ERQNV66.js.map} +1 -1
- package/dist/agent-LNTR4QH5.cjs +68 -0
- package/dist/{agent-47NS6ZVL.cjs.map → agent-LNTR4QH5.cjs.map} +1 -1
- package/dist/{agent-G6g-uwcB.d.ts → agent-lS68mYIL.d.ts} +22 -4
- package/dist/agent.d.ts +11 -0
- 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-GCHZMH42.cjs → chunk-2STSX2SY.cjs} +264 -260
- package/dist/chunk-2STSX2SY.cjs.map +1 -0
- package/dist/{chunk-2UXQASTX.js → chunk-3CU5J7V3.js} +38 -34
- package/dist/chunk-3CU5J7V3.js.map +1 -0
- package/dist/{chunk-5NELQ6LB.js → chunk-4QCJAJAG.js} +12 -3
- 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-2QKV4CGK.js → chunk-5522X223.js} +3 -3
- package/dist/{chunk-2QKV4CGK.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-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-GFFBXSQT.cjs → chunk-76PIKR4P.cjs} +22 -22
- package/dist/{chunk-GFFBXSQT.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-N2KAIZ5D.js → chunk-7GDHFV2M.js} +4 -20
- package/dist/chunk-7GDHFV2M.js.map +1 -0
- 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-HG4UN4MN.cjs → chunk-AOHRKGAA.cjs} +22 -22
- package/dist/{chunk-HG4UN4MN.cjs.map → chunk-AOHRKGAA.cjs.map} +1 -1
- package/dist/{chunk-C4ZQPWXJ.cjs → chunk-ARMFXTY6.cjs} +143 -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-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-HUDNLFY4.js → chunk-DDRX4LYS.js} +13 -4
- package/dist/chunk-DDRX4LYS.js.map +1 -0
- 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-FPIY5CLV.js → chunk-FRL35MFN.js} +5 -5
- package/dist/{chunk-FPIY5CLV.js.map → chunk-FRL35MFN.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-J4SA2ZEJ.cjs +24 -0
- package/dist/chunk-J4SA2ZEJ.cjs.map +1 -0
- 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-EIOMN5VA.cjs → chunk-KTA7YTZQ.cjs} +17 -8
- package/dist/chunk-KTA7YTZQ.cjs.map +1 -0
- 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-KZSKIUXZ.js → chunk-NOO6GZTZ.js} +37 -85
- package/dist/chunk-NOO6GZTZ.js.map +1 -0
- package/dist/{chunk-7IZKTQ5G.cjs → chunk-OCEQ6DW2.cjs} +10 -29
- package/dist/chunk-OCEQ6DW2.cjs.map +1 -0
- 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-PQCTDMUI.js +20 -0
- package/dist/chunk-PQCTDMUI.js.map +1 -0
- package/dist/{chunk-DZG77WU7.cjs → chunk-PSLCVSCS.cjs} +3 -3
- package/dist/{chunk-DZG77WU7.cjs.map → chunk-PSLCVSCS.cjs.map} +1 -1
- package/dist/{chunk-STGSMJMJ.js → chunk-QDQQYRJI.js} +4 -4
- package/dist/{chunk-STGSMJMJ.js.map → chunk-QDQQYRJI.js.map} +1 -1
- package/dist/{chunk-7MMTZBTT.js → chunk-R2C3HXR3.js} +4 -4
- package/dist/{chunk-7MMTZBTT.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-LD6HASA5.cjs → chunk-SWALPLFQ.cjs} +12 -2
- package/dist/chunk-SWALPLFQ.cjs.map +1 -0
- package/dist/{chunk-52FDUJSV.cjs → chunk-T5KOSR5Y.cjs} +11 -11
- package/dist/{chunk-52FDUJSV.cjs.map → chunk-T5KOSR5Y.cjs.map} +1 -1
- package/dist/{chunk-BZ3YMAMP.js → chunk-TC4RWP3Y.js} +6 -6
- package/dist/{chunk-BZ3YMAMP.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-VUHXC74Q.cjs → chunk-TTBIQTO5.cjs} +19 -19
- package/dist/{chunk-VUHXC74Q.cjs.map → chunk-TTBIQTO5.cjs.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-T3ZDEYTJ.js → chunk-W4VQMXBZ.js} +4 -4
- package/dist/{chunk-T3ZDEYTJ.js.map → chunk-W4VQMXBZ.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-RWPLWMCZ.cjs → chunk-XW4POZ6V.cjs} +11 -11
- package/dist/{chunk-RWPLWMCZ.cjs.map → chunk-XW4POZ6V.cjs.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-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-2N3ZYJTW.js +24 -0
- package/dist/{compact-session-YSEK7NQF.js.map → compact-session-2N3ZYJTW.js.map} +1 -1
- package/dist/compact-session-RBPLUPCK.cjs +65 -0
- package/dist/{compact-session-7FMYJXQ7.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 +15 -7
- 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 +7 -3
- package/dist/context/index.js.map +1 -1
- package/dist/context-SXR2HLHT.js +7 -0
- package/dist/{context-J5BJ3LBS.js.map → context-SXR2HLHT.js.map} +1 -1
- package/dist/context-ZOULM2RB.cjs +24 -0
- package/dist/{context-HR4KMXMA.cjs.map → context-ZOULM2RB.cjs.map} +1 -1
- package/dist/{cron-DWv69ZSD.d.cts → cron-CGxoEKlx.d.cts} +2 -2
- package/dist/{cron-GynWtAax.d.ts → cron-DJv8zMa3.d.ts} +2 -2
- package/dist/cron.cjs +34 -33
- package/dist/cron.d.cts +4 -4
- package/dist/cron.d.ts +4 -4
- package/dist/cron.js +33 -32
- 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 -43
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +34 -33
- package/dist/eval.js.map +1 -1
- 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-27WLNQEE.js.map → index-manager-ONQJSWX5.js.map} +1 -1
- package/dist/{index-manager-BBHDKMQS.cjs → index-manager-ZGJN25FD.cjs} +9 -9
- package/dist/{index-manager-BBHDKMQS.cjs.map → index-manager-ZGJN25FD.cjs.map} +1 -1
- package/dist/index.cjs +148 -145
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +57 -10
- package/dist/index.d.ts +57 -10
- package/dist/index.js +49 -48
- package/dist/index.js.map +1 -1
- package/dist/{inject-session-PC73TMP2.cjs → inject-session-3FPXJDJP.cjs} +4 -4
- package/dist/{inject-session-PC73TMP2.cjs.map → inject-session-3FPXJDJP.cjs.map} +1 -1
- package/dist/{inject-session-J4LBWAPH.js → inject-session-YNNOE3O6.js} +3 -3
- package/dist/{inject-session-J4LBWAPH.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 +42 -0
- 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/internal/session/compact-session.d.ts +36 -0
- 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.cts → run-DsA5Ip2i.d.cts} +1 -1
- package/dist/{run-CTAdRU3U.d.ts → 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-7GE7YUDI.cjs +16 -0
- package/dist/{subagents-loader-MOO7DC4E.cjs.map → subagents-loader-7GE7YUDI.cjs.map} +1 -1
- package/dist/subagents-loader-S2PMZY7J.js +7 -0
- package/dist/{subagents-loader-CJFYQQU2.js.map → subagents-loader-S2PMZY7J.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 +1 -1
- 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 +1 -1
- package/docs/harness-capability-map.md +17 -1
- package/package.json +1 -1
- package/dist/agent-47NS6ZVL.cjs +0 -67
- package/dist/agent-JJZM2VIK.js +0 -58
- package/dist/chunk-2UXQASTX.js.map +0 -1
- package/dist/chunk-5NELQ6LB.js.map +0 -1
- package/dist/chunk-6M2OIS4Y.js.map +0 -1
- package/dist/chunk-7IZKTQ5G.cjs.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-C4ZQPWXJ.cjs.map +0 -1
- package/dist/chunk-EIOMN5VA.cjs.map +0 -1
- package/dist/chunk-GCHZMH42.cjs.map +0 -1
- package/dist/chunk-HUDNLFY4.js.map +0 -1
- package/dist/chunk-J7J7J2GN.cjs.map +0 -1
- package/dist/chunk-KZSKIUXZ.js.map +0 -1
- package/dist/chunk-LD6HASA5.cjs.map +0 -1
- package/dist/chunk-N2KAIZ5D.js.map +0 -1
- package/dist/compact-session-7FMYJXQ7.cjs +0 -61
- package/dist/compact-session-YSEK7NQF.js +0 -24
- package/dist/context-HR4KMXMA.cjs +0 -23
- package/dist/context-J5BJ3LBS.js +0 -6
- 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-27WLNQEE.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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,110 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#683](https://github.com/usetheokit/theokit-sdk/pull/683) [`ccb7ede`](https://github.com/usetheokit/theokit-sdk/commit/ccb7edea41b63da1519971af95256bc828c88e10) Thanks [@usetheodev](https://github.com/usetheodev)! - Seventeen symbols marked `@public` were reachable from no entry in the export map. They are now.
|
|
8
|
+
|
|
9
|
+
`@public` in a docblock is a promise that somebody outside the package is meant to name the symbol.
|
|
10
|
+
Nothing verified the promise, and the export map is exactly where it breaks quietly: a symbol can be
|
|
11
|
+
declared, documented, and compiled into a chunk while being importable from nowhere. A consumer
|
|
12
|
+
following the documentation got `has no exported member`.
|
|
13
|
+
|
|
14
|
+
Three of the seventeen are worth naming, because their kind made the gap expensive:
|
|
15
|
+
|
|
16
|
+
- **`CompressionFailedError`, `CompressionModelUnresolvedError`** — typed errors. `catch (e) { if (e
|
|
17
|
+
instanceof CompressionFailedError) }` did not compile for any consumer, which is the entire reason
|
|
18
|
+
a typed error exists rather than a message string.
|
|
19
|
+
- **`defineSubscription`** — a `define*` extension point, so the extension could not be written.
|
|
20
|
+
- **`withheldSpecs`** — names which instruction files a repository lost and which grant restores each
|
|
21
|
+
one. It shipped unreachable in 5.7.0: the capability worked and the accessor did not.
|
|
22
|
+
|
|
23
|
+
Now importable: `AgentBuilderDeps`, `EnvPolicy`, `ForkOptions`, `ForkResult`, `HookApprovalGate`,
|
|
24
|
+
`HookApprovalRequest`, `LlmCallContext`, `ToolContext`, `createTokenLimiter`,
|
|
25
|
+
`createUnicodeNormalizer` (root); `admittedSpecs`, `withheldSpecs` (`/context`);
|
|
26
|
+
`CompressionFailedError`, `CompressionModelUnresolvedError`, `CompressionConfig` (`/compaction`);
|
|
27
|
+
`defineSubscription` (`/subscription`).
|
|
28
|
+
|
|
29
|
+
**One went the other way.** `truncateWithMarker` lost its marker rather than gaining an export: it is
|
|
30
|
+
a pure truncation helper whose docblock describes implementation edge cases, not a contract, and an
|
|
31
|
+
export is a semver commitment somebody then has to keep.
|
|
32
|
+
|
|
33
|
+
`withheldSpecs` also gained a named return type, `WithheldSpec`, and that is not style. The DTS
|
|
34
|
+
rollup only pulls a symbol into a chunk when a public type references it — with an anonymous return
|
|
35
|
+
type nothing referenced the function, the re-export dangled, and the build failed with TS2305 in
|
|
36
|
+
whichever file carried it. Naming the return value is what makes the function packable, and it gives
|
|
37
|
+
a consumer something to write in their own signature.
|
|
38
|
+
|
|
39
|
+
**A gate now holds the promise.** `quality:public-surface` generates one probe per export-map entry
|
|
40
|
+
and lets `tsc` answer which names it cannot resolve.
|
|
41
|
+
|
|
42
|
+
## 5.7.0
|
|
43
|
+
|
|
44
|
+
### Minor Changes
|
|
45
|
+
|
|
46
|
+
- [#675](https://github.com/usetheokit/theokit-sdk/pull/675) [`cbbed19`](https://github.com/usetheokit/theokit-sdk/commit/cbbed19abff45b58c10de1bf694524fbd246d6c2) Thanks [@usetheodev](https://github.com/usetheodev)! - A repo-root instruction file now requires a grant a consumer can write.
|
|
47
|
+
|
|
48
|
+
`DEFAULT_DISCOVERY_SPECS` carries four repo-root instruction files whose bodies enter the system
|
|
49
|
+
prompt as if we had written them — `AGENTS.md`, `GEMINI.md`, `CLAUDE.md` and `.cursor/rules/*.mdc`.
|
|
50
|
+
Until now exactly ONE spec in that file carried a gate, and it was `.claude/rules/*.md`. A cloned
|
|
51
|
+
repository's `.claude/rules/*.md` needed a declaration; the `CLAUDE.md` one directory up did not,
|
|
52
|
+
while both carried the same risk.
|
|
53
|
+
|
|
54
|
+
**The vocabulary landed before the gate, and the order is the whole point.** `CompatSource` went
|
|
55
|
+
from two literals to five:
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
compatSources: ["agents"] // AGENTS.md is admitted; GEMINI.md is not
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Gating the four against the OLD union would have gated three formats on a grant nobody could write
|
|
62
|
+
and made them permanently unreachable — worse than the gap. A test asserts the invariant in both
|
|
63
|
+
directions and fails the moment a spec is gated on a token the union does not carry.
|
|
64
|
+
|
|
65
|
+
**Separate literals, not one `foreign` token**, so a consumer who wants `AGENTS.md` is not forced to
|
|
66
|
+
also admit `.cursor/rules/*.mdc`.
|
|
67
|
+
|
|
68
|
+
**BREAKING for a consumer who declares nothing**: they went from four repo-root files in the prompt
|
|
69
|
+
to none. That is the intended behaviour and it is LOUD — `withheldSpecs` reports every withheld file
|
|
70
|
+
by path with the grant that restores it, and the runner warns once naming each one. A count would be
|
|
71
|
+
a diagnosis with no remedy: you cannot decide whether to grant a dialect without knowing which file
|
|
72
|
+
it brings.
|
|
73
|
+
|
|
74
|
+
`undefined` and `[]` stay distinct: no gate configured admits everything, an empty declaration
|
|
75
|
+
withholds every gated spec. Collapsing them would restore the defect the first gate closed.
|
|
76
|
+
|
|
77
|
+
- [#675](https://github.com/usetheokit/theokit-sdk/pull/675) [`de40d9f`](https://github.com/usetheokit/theokit-sdk/commit/de40d9f3d398f84d5b145cec8bc56a4c6ec85a25) Thanks [@usetheodev](https://github.com/usetheodev)! - The pre-compaction seam now reaches the compaction path a consumer actually calls.
|
|
78
|
+
|
|
79
|
+
There are three compaction paths in this ecosystem. `withPreCompaction`, shipped in
|
|
80
|
+
`@theokit/agents@14.1.0`, covers one of them — the agents-layer strategy. The other two are
|
|
81
|
+
`autoCompactIfNeeded` and `Agent.compact(sessionId, { trigger })`, and **the second is the one a
|
|
82
|
+
person reaches**: `/compact` → `handleCompact` → `compactSession` → `Agent.compact`.
|
|
83
|
+
|
|
84
|
+
```ts
|
|
85
|
+
await Agent.compact(agentId, {
|
|
86
|
+
trigger: "manual",
|
|
87
|
+
onPreCompact: async ({ messages, trigger, signal }) => {
|
|
88
|
+
await archive(messages, { because: trigger }) // runs BEFORE the transcript is rewritten
|
|
89
|
+
},
|
|
90
|
+
onPreCompactError: (e) => report(e), // compaction proceeds either way
|
|
91
|
+
})
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**One seam covers both SDK paths** because they converge on `compactSessionTranscript`. A seam per
|
|
95
|
+
caller would need each one to choose, and a caller that chooses wrong reintroduces the gap.
|
|
96
|
+
|
|
97
|
+
**`trigger` is received, not inferred.** It already existed in the options and already reached the
|
|
98
|
+
compaction boundary; the handler is simply told. Inferring it from the call site would be right today
|
|
99
|
+
and silently wrong the first time a third caller appears.
|
|
100
|
+
|
|
101
|
+
**Failure never blocks compaction.** A handler that throws is reported; one that exceeds its bound is
|
|
102
|
+
abandoned with its `AbortSignal` aborted first, so it can stop rather than be left running. A hook
|
|
103
|
+
that could block would turn a consumer's bug into a runtime that cannot reclaim its context.
|
|
104
|
+
|
|
105
|
+
**Nothing changes for a consumer who registers nothing** — the seam is not entered, asserted by a
|
|
106
|
+
test rather than left as an inference.
|
|
107
|
+
|
|
3
108
|
## 5.6.0
|
|
4
109
|
|
|
5
110
|
### Minor Changes
|
package/dist/a2a/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJW3GVLM6_cjs = require('../chunk-JW3GVLM6.cjs');
|
|
4
4
|
require('../chunk-NINIJCHU.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkUNFBHV46_cjs = require('../chunk-UNFBHV46.cjs');
|
|
6
6
|
var chunk6LHQPOMI_cjs = require('../chunk-6LHQPOMI.cjs');
|
|
7
7
|
|
|
8
8
|
// src/a2a/agent-mailbox.ts
|
|
@@ -35,7 +35,7 @@ var AgentMailbox = class {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
// src/a2a/message-bus.ts
|
|
38
|
-
var A2APeerNotRegisteredError = class extends
|
|
38
|
+
var A2APeerNotRegisteredError = class extends chunkUNFBHV46_cjs.TheokitAgentError {
|
|
39
39
|
constructor(to) {
|
|
40
40
|
super(`Agent "${to}" not registered on MessageBus`, {
|
|
41
41
|
code: "a2a_peer_not_registered",
|
|
@@ -47,7 +47,7 @@ var A2APeerNotRegisteredError = class extends chunkJ7J7J2GN_cjs.TheokitAgentErro
|
|
|
47
47
|
name = "A2APeerNotRegisteredError";
|
|
48
48
|
code = "a2a_peer_not_registered";
|
|
49
49
|
};
|
|
50
|
-
var A2ARequestTimeoutError = class extends
|
|
50
|
+
var A2ARequestTimeoutError = class extends chunkUNFBHV46_cjs.TheokitAgentError {
|
|
51
51
|
constructor(to, timeoutMs) {
|
|
52
52
|
super(`A2A request timeout: ${to} did not respond within ${timeoutMs}ms`, {
|
|
53
53
|
code: "a2a_request_timeout",
|
|
@@ -124,11 +124,11 @@ var MessageBus = class {
|
|
|
124
124
|
|
|
125
125
|
Object.defineProperty(exports, "MaxDelegationDepthError", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkJW3GVLM6_cjs.MaxDelegationDepthError; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "SubAgent", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkJW3GVLM6_cjs.SubAgent; }
|
|
132
132
|
});
|
|
133
133
|
exports.A2APeerNotRegisteredError = A2APeerNotRegisteredError;
|
|
134
134
|
exports.A2ARequestTimeoutError = A2ARequestTimeoutError;
|
package/dist/a2a/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { MaxDelegationDepthError, SubAgent } from '../chunk-
|
|
1
|
+
export { MaxDelegationDepthError, SubAgent } from '../chunk-XCQ432OX.js';
|
|
2
2
|
import '../chunk-6X6ID4MO.js';
|
|
3
|
-
import { TheokitAgentError } from '../chunk-
|
|
3
|
+
import { TheokitAgentError } from '../chunk-B5MHRQJZ.js';
|
|
4
4
|
import { diag } from '../chunk-CZJ6Q7CW.js';
|
|
5
5
|
|
|
6
6
|
// src/a2a/agent-mailbox.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { M as ModelSelection, C as CustomTool, c as PermissionMode, a as McpServerConfig, P as Processor } from './run-
|
|
1
|
+
import { o as MemoryFact, l as MemoryAdapter, n as MemoryContext, H as SystemPromptSkillRef, C as ContextSettings, P as ProviderRoutingSettings, a as PluginsSettings, S as SDKAgent } from './sdk-agent-dNwjwCt5.cjs';
|
|
2
|
+
import { M as ModelSelection, C as CustomTool, c as PermissionMode, a as McpServerConfig, P as Processor } from './run-DsA5Ip2i.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Owner: `src/` (1 of 2 importers). Derived from the import graph, not
|
|
@@ -815,6 +815,17 @@ interface PreToolCallDecision {
|
|
|
815
815
|
block: true;
|
|
816
816
|
message: string;
|
|
817
817
|
}
|
|
818
|
+
/**
|
|
819
|
+
* #65 — a 2nd argument passed to a tool handler, carrying the run's cancellation
|
|
820
|
+
* signal (ties into #58) so a cooperative tool can stop when the run is
|
|
821
|
+
* cancelled. Optional and additive — existing single-arg handlers are unaffected.
|
|
822
|
+
* (requestConfirmation/requestCredential are a documented follow-up.)
|
|
823
|
+
*
|
|
824
|
+
* @public
|
|
825
|
+
*/
|
|
826
|
+
interface ToolContext {
|
|
827
|
+
signal?: AbortSignal;
|
|
828
|
+
}
|
|
818
829
|
/** #65 — context for the `post_tool_call` hook (fired after a tool runs). @public */
|
|
819
830
|
interface PostToolCallContext {
|
|
820
831
|
name: string;
|
|
@@ -827,6 +838,13 @@ interface PostToolCallContext {
|
|
|
827
838
|
agentId: string;
|
|
828
839
|
runId: string;
|
|
829
840
|
}
|
|
841
|
+
/** #65 — context for the `pre_llm_call` / `post_llm_call` hooks. @public */
|
|
842
|
+
interface LlmCallContext {
|
|
843
|
+
agentId: string;
|
|
844
|
+
runId: string;
|
|
845
|
+
/** Iteration index (0-based) of the current turn, when available. */
|
|
846
|
+
iteration?: number;
|
|
847
|
+
}
|
|
830
848
|
/**
|
|
831
849
|
* #65 — context for the `on_session_start` / `on_session_end` hooks.
|
|
832
850
|
*
|
|
@@ -1046,7 +1064,7 @@ type SettingSource = "project" | "user" | "team" | "mdm" | "plugins" | "all";
|
|
|
1046
1064
|
*
|
|
1047
1065
|
* @public
|
|
1048
1066
|
*/
|
|
1049
|
-
type CompatSource = "claude-code" | "theokit" | CompatSourceAdapter;
|
|
1067
|
+
type CompatSource = "claude-code" | "theokit" | "agents" | "gemini" | "cursor" | CompatSourceAdapter;
|
|
1050
1068
|
/**
|
|
1051
1069
|
* A surface a foreign configuration source may be admitted to.
|
|
1052
1070
|
*
|
|
@@ -1989,4 +2007,4 @@ interface ListResult<T> {
|
|
|
1989
2007
|
nextCursor?: string;
|
|
1990
2008
|
}
|
|
1991
2009
|
|
|
1992
|
-
export { type
|
|
2010
|
+
export { type RecordSessionSummaryArgs as $, type AgentOptions as A, type BudgetTracker as B, type CloudOptions as C, type CreateSkillSpec as D, type HookApprovalRequest as E, type HookName as F, type GetAgentOptions as G, type HookApprovalGate as H, type InlineSkill as I, type LlmCallContext as J, type MemoryProviderAgentRef as K, type LocalOptions as L, type MemorySettings as M, type MemoryProviderFactory as N, type MemoryProviderHandle as O, type Plugin as P, type MemoryProviderInitOptions as Q, type PluginContext as R, type SystemPromptResolver as S, type PluginHookDisposer as T, type PostAssistantReplyContext as U, type PostToolCallContext as V, type PreToolCallContext as W, type PreUserSendContext as X, type PreUserSendResult as Y, type ProviderTransform as Z, type ProviderTransformContext as _, type AgentDefinition as a, type SessionLifecycleContext as a0, type SessionRecord as a1, type SessionStore as a2, type SettingSource as a3, Skill as a4, type SkillsResolver as a5, type SkillsResolverContext as a6, type SystemPromptContext as a7, type SystemPromptMemoryFact as a8, type TelemetrySettings as a9, type ToolCallSummary as aa, type ToolContext as ab, type ToolResultTransformContext as ac, type TransformContext as ad, type SkillsSettings as b, type ListAgentsOptions as c, type ListResult as d, type SDKAgentInfo as e, type ListRunsOptions as f, type GetRunOptions as g, type AgentOperationOptions as h, type AgentDescription as i, type ProviderProfile as j, type Skill$1 as k, type MemoryProvider as l, type PreToolCallDecision as m, type ActiveMemoryPassArgs as n, type ActiveMemoryPassResult as o, type AgentSubagentDescription as p, type AgentToolDescription as q, type BudgetCheck as r, type BudgetTotal as s, type BudgetUsageEvent as t, type BuiltinToolName as u, type CloudEnv as v, type CloudRepo as w, type CompatSource as x, type CompatSourceAdapter as y, type CompatSurface as z };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export { Agent } from './chunk-3CU5J7V3.js';
|
|
2
|
+
import './chunk-XKMVJ443.js';
|
|
3
|
+
import './chunk-5522X223.js';
|
|
4
|
+
import './chunk-K2BQQ445.js';
|
|
5
|
+
import './chunk-R2C3HXR3.js';
|
|
6
|
+
import './chunk-PQCTDMUI.js';
|
|
7
|
+
import './chunk-2SFBB54R.js';
|
|
8
|
+
import './chunk-HOHR75KF.js';
|
|
9
|
+
import './chunk-H73MEMQB.js';
|
|
10
|
+
import './chunk-OR6XIWLB.js';
|
|
11
|
+
import './chunk-TC4RWP3Y.js';
|
|
12
|
+
import './chunk-UNZOJVVC.js';
|
|
13
|
+
import './chunk-NOO6GZTZ.js';
|
|
14
|
+
import './chunk-SUVCHX4L.js';
|
|
15
|
+
import './chunk-2XC6KDJM.js';
|
|
16
|
+
import './chunk-TE6XVTOA.js';
|
|
17
|
+
import './chunk-24MGQDK3.js';
|
|
18
|
+
import './chunk-2WXHA33T.js';
|
|
19
|
+
import './chunk-HKCKOAIO.js';
|
|
20
|
+
import './chunk-DDRX4LYS.js';
|
|
21
|
+
import './chunk-7GDHFV2M.js';
|
|
22
|
+
import './chunk-KVNWIAO4.js';
|
|
23
|
+
import './chunk-SVQIW5RJ.js';
|
|
24
|
+
import './chunk-FD2UT76F.js';
|
|
25
|
+
import './chunk-7I5Z3UBJ.js';
|
|
26
|
+
import './chunk-FJWQP6EE.js';
|
|
27
|
+
import './chunk-NAF4L3T6.js';
|
|
28
|
+
import './chunk-XCQ432OX.js';
|
|
29
|
+
import './chunk-6X6ID4MO.js';
|
|
30
|
+
import './chunk-7HUCU3KK.js';
|
|
31
|
+
import './chunk-4QCJAJAG.js';
|
|
32
|
+
import './chunk-SAGRF4IB.js';
|
|
33
|
+
import './chunk-5DD4NJN3.js';
|
|
34
|
+
import './chunk-UKMBRMGT.js';
|
|
35
|
+
import './chunk-7JAKO3NM.js';
|
|
36
|
+
import './chunk-ZWFTECOE.js';
|
|
37
|
+
import './chunk-GTX6FEDP.js';
|
|
38
|
+
import './chunk-JOFVLOFY.js';
|
|
39
|
+
import './chunk-WE22OXQA.js';
|
|
40
|
+
import './chunk-XZHJYSPB.js';
|
|
41
|
+
import './chunk-BKMDRBJ7.js';
|
|
42
|
+
import './chunk-Q5EWJPRY.js';
|
|
43
|
+
import './chunk-GGRPAQ3B.js';
|
|
44
|
+
import './chunk-3JHIFQ4I.js';
|
|
45
|
+
import './chunk-W4VQMXBZ.js';
|
|
46
|
+
import './chunk-X7EUUHXU.js';
|
|
47
|
+
import './chunk-MQGSOKR3.js';
|
|
48
|
+
import './chunk-GMRFAX4I.js';
|
|
49
|
+
import './chunk-R7WIIPUR.js';
|
|
50
|
+
import './chunk-53RDNK3H.js';
|
|
51
|
+
import './chunk-MFZODA5Y.js';
|
|
52
|
+
import './chunk-AGACYRJ2.js';
|
|
53
|
+
import './chunk-EJROML3Q.js';
|
|
54
|
+
import './chunk-5Q4RTLMP.js';
|
|
55
|
+
import './chunk-H3CVJSFC.js';
|
|
56
|
+
import './chunk-B5MHRQJZ.js';
|
|
57
|
+
import './chunk-CZJ6Q7CW.js';
|
|
58
|
+
//# sourceMappingURL=agent-7ERQNV66.js.map
|
|
59
|
+
//# sourceMappingURL=agent-7ERQNV66.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-7ERQNV66.js"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk2STSX2SY_cjs = require('./chunk-2STSX2SY.cjs');
|
|
4
|
+
require('./chunk-J6GXS5A2.cjs');
|
|
5
|
+
require('./chunk-PSLCVSCS.cjs');
|
|
6
|
+
require('./chunk-BUUUWQMB.cjs');
|
|
7
|
+
require('./chunk-TTBIQTO5.cjs');
|
|
8
|
+
require('./chunk-J4SA2ZEJ.cjs');
|
|
9
|
+
require('./chunk-BV2MWEMV.cjs');
|
|
10
|
+
require('./chunk-MEUBLCM4.cjs');
|
|
11
|
+
require('./chunk-GHX4P3V2.cjs');
|
|
12
|
+
require('./chunk-TMKTSYDS.cjs');
|
|
13
|
+
require('./chunk-76PIKR4P.cjs');
|
|
14
|
+
require('./chunk-B3XXQX6L.cjs');
|
|
15
|
+
require('./chunk-ARMFXTY6.cjs');
|
|
16
|
+
require('./chunk-CQYBJOB2.cjs');
|
|
17
|
+
require('./chunk-YJNYDJ2T.cjs');
|
|
18
|
+
require('./chunk-WPO3VCY4.cjs');
|
|
19
|
+
require('./chunk-QOGNZMHD.cjs');
|
|
20
|
+
require('./chunk-YIFFF23U.cjs');
|
|
21
|
+
require('./chunk-2ZPEDVLM.cjs');
|
|
22
|
+
require('./chunk-KTA7YTZQ.cjs');
|
|
23
|
+
require('./chunk-OCEQ6DW2.cjs');
|
|
24
|
+
require('./chunk-KRD3GQAA.cjs');
|
|
25
|
+
require('./chunk-RQMCOFAI.cjs');
|
|
26
|
+
require('./chunk-MUUQ2WFJ.cjs');
|
|
27
|
+
require('./chunk-AA27GEYS.cjs');
|
|
28
|
+
require('./chunk-YSTXFWQE.cjs');
|
|
29
|
+
require('./chunk-FRITRLZQ.cjs');
|
|
30
|
+
require('./chunk-JW3GVLM6.cjs');
|
|
31
|
+
require('./chunk-NINIJCHU.cjs');
|
|
32
|
+
require('./chunk-HG5LKFG7.cjs');
|
|
33
|
+
require('./chunk-SWALPLFQ.cjs');
|
|
34
|
+
require('./chunk-IJ7M6GOG.cjs');
|
|
35
|
+
require('./chunk-GM54F4FE.cjs');
|
|
36
|
+
require('./chunk-SA6K24NB.cjs');
|
|
37
|
+
require('./chunk-IIYJMXYW.cjs');
|
|
38
|
+
require('./chunk-NJSIAJEK.cjs');
|
|
39
|
+
require('./chunk-NKIQTLFA.cjs');
|
|
40
|
+
require('./chunk-GZV6AVRL.cjs');
|
|
41
|
+
require('./chunk-A4RAL2ER.cjs');
|
|
42
|
+
require('./chunk-P22BZE7G.cjs');
|
|
43
|
+
require('./chunk-OF2CLCTH.cjs');
|
|
44
|
+
require('./chunk-ZF2LDKQQ.cjs');
|
|
45
|
+
require('./chunk-GHHIJEFX.cjs');
|
|
46
|
+
require('./chunk-JLRLCBJ4.cjs');
|
|
47
|
+
require('./chunk-XW4POZ6V.cjs');
|
|
48
|
+
require('./chunk-TY56BKSK.cjs');
|
|
49
|
+
require('./chunk-MPR2ISL2.cjs');
|
|
50
|
+
require('./chunk-J5623RIV.cjs');
|
|
51
|
+
require('./chunk-3EE6LVWT.cjs');
|
|
52
|
+
require('./chunk-R3ZQBPA5.cjs');
|
|
53
|
+
require('./chunk-YRJA2POB.cjs');
|
|
54
|
+
require('./chunk-NVXXWAU7.cjs');
|
|
55
|
+
require('./chunk-RA7IE4NK.cjs');
|
|
56
|
+
require('./chunk-NAGPKWOD.cjs');
|
|
57
|
+
require('./chunk-OLSEWLK5.cjs');
|
|
58
|
+
require('./chunk-UNFBHV46.cjs');
|
|
59
|
+
require('./chunk-6LHQPOMI.cjs');
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
Object.defineProperty(exports, "Agent", {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function () { return chunk2STSX2SY_cjs.Agent; }
|
|
66
|
+
});
|
|
67
|
+
//# sourceMappingURL=agent-LNTR4QH5.cjs.map
|
|
68
|
+
//# sourceMappingURL=agent-LNTR4QH5.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-LNTR4QH5.cjs"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { M as ModelSelection, C as CustomTool, c as PermissionMode, a as McpServerConfig, P as Processor } from './run-
|
|
1
|
+
import { o as MemoryFact, l as MemoryAdapter, n as MemoryContext, H as SystemPromptSkillRef, C as ContextSettings, P as ProviderRoutingSettings, a as PluginsSettings, S as SDKAgent } from './sdk-agent-wEOLXD3F.js';
|
|
2
|
+
import { M as ModelSelection, C as CustomTool, c as PermissionMode, a as McpServerConfig, P as Processor } from './run-DsA5Ip2i.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Owner: `src/` (1 of 2 importers). Derived from the import graph, not
|
|
@@ -815,6 +815,17 @@ interface PreToolCallDecision {
|
|
|
815
815
|
block: true;
|
|
816
816
|
message: string;
|
|
817
817
|
}
|
|
818
|
+
/**
|
|
819
|
+
* #65 — a 2nd argument passed to a tool handler, carrying the run's cancellation
|
|
820
|
+
* signal (ties into #58) so a cooperative tool can stop when the run is
|
|
821
|
+
* cancelled. Optional and additive — existing single-arg handlers are unaffected.
|
|
822
|
+
* (requestConfirmation/requestCredential are a documented follow-up.)
|
|
823
|
+
*
|
|
824
|
+
* @public
|
|
825
|
+
*/
|
|
826
|
+
interface ToolContext {
|
|
827
|
+
signal?: AbortSignal;
|
|
828
|
+
}
|
|
818
829
|
/** #65 — context for the `post_tool_call` hook (fired after a tool runs). @public */
|
|
819
830
|
interface PostToolCallContext {
|
|
820
831
|
name: string;
|
|
@@ -827,6 +838,13 @@ interface PostToolCallContext {
|
|
|
827
838
|
agentId: string;
|
|
828
839
|
runId: string;
|
|
829
840
|
}
|
|
841
|
+
/** #65 — context for the `pre_llm_call` / `post_llm_call` hooks. @public */
|
|
842
|
+
interface LlmCallContext {
|
|
843
|
+
agentId: string;
|
|
844
|
+
runId: string;
|
|
845
|
+
/** Iteration index (0-based) of the current turn, when available. */
|
|
846
|
+
iteration?: number;
|
|
847
|
+
}
|
|
830
848
|
/**
|
|
831
849
|
* #65 — context for the `on_session_start` / `on_session_end` hooks.
|
|
832
850
|
*
|
|
@@ -1046,7 +1064,7 @@ type SettingSource = "project" | "user" | "team" | "mdm" | "plugins" | "all";
|
|
|
1046
1064
|
*
|
|
1047
1065
|
* @public
|
|
1048
1066
|
*/
|
|
1049
|
-
type CompatSource = "claude-code" | "theokit" | CompatSourceAdapter;
|
|
1067
|
+
type CompatSource = "claude-code" | "theokit" | "agents" | "gemini" | "cursor" | CompatSourceAdapter;
|
|
1050
1068
|
/**
|
|
1051
1069
|
* A surface a foreign configuration source may be admitted to.
|
|
1052
1070
|
*
|
|
@@ -1989,4 +2007,4 @@ interface ListResult<T> {
|
|
|
1989
2007
|
nextCursor?: string;
|
|
1990
2008
|
}
|
|
1991
2009
|
|
|
1992
|
-
export { type
|
|
2010
|
+
export { type RecordSessionSummaryArgs as $, type AgentOptions as A, type BudgetTracker as B, type CloudOptions as C, type CreateSkillSpec as D, type HookApprovalRequest as E, type HookName as F, type GetAgentOptions as G, type HookApprovalGate as H, type InlineSkill as I, type LlmCallContext as J, type MemoryProviderAgentRef as K, type LocalOptions as L, type MemorySettings as M, type MemoryProviderFactory as N, type MemoryProviderHandle as O, type Plugin as P, type MemoryProviderInitOptions as Q, type PluginContext as R, type SystemPromptResolver as S, type PluginHookDisposer as T, type PostAssistantReplyContext as U, type PostToolCallContext as V, type PreToolCallContext as W, type PreUserSendContext as X, type PreUserSendResult as Y, type ProviderTransform as Z, type ProviderTransformContext as _, type AgentDefinition as a, type SessionLifecycleContext as a0, type SessionRecord as a1, type SessionStore as a2, type SettingSource as a3, Skill as a4, type SkillsResolver as a5, type SkillsResolverContext as a6, type SystemPromptContext as a7, type SystemPromptMemoryFact as a8, type TelemetrySettings as a9, type ToolCallSummary as aa, type ToolContext as ab, type ToolResultTransformContext as ac, type TransformContext as ad, type SkillsSettings as b, type ListAgentsOptions as c, type ListResult as d, type SDKAgentInfo as e, type ListRunsOptions as f, type GetRunOptions as g, type AgentOperationOptions as h, type AgentDescription as i, type ProviderProfile as j, type Skill$1 as k, type MemoryProvider as l, type PreToolCallDecision as m, type ActiveMemoryPassArgs as n, type ActiveMemoryPassResult as o, type AgentSubagentDescription as p, type AgentToolDescription as q, type BudgetCheck as r, type BudgetTotal as s, type BudgetUsageEvent as t, type BuiltinToolName as u, type CloudEnv as v, type CloudRepo as w, type CompatSource as x, type CompatSourceAdapter as y, type CompatSurface as z };
|
package/dist/agent.d.ts
CHANGED
|
@@ -219,6 +219,17 @@ export declare class Agent {
|
|
|
219
219
|
static compact(agentId: string, options?: {
|
|
220
220
|
trigger?: "manual" | "auto";
|
|
221
221
|
summarize?: (messages: readonly import("./compaction.js").CompressibleMessage[]) => Promise<string>;
|
|
222
|
+
/**
|
|
223
|
+
* B-082 — work to run before the transcript is rewritten, on THIS path.
|
|
224
|
+
*
|
|
225
|
+
* `/compact` reaches here, and before this option the seam existed only on the agents-layer
|
|
226
|
+
* strategy, which this path never touches. The handler is awaited, bounded, and its failure is
|
|
227
|
+
* reported without stopping compaction — the same contract `withPreCompaction` carries, not a
|
|
228
|
+
* second one.
|
|
229
|
+
*/
|
|
230
|
+
onPreCompact?: import("./internal/session/compact-session.js").PreCompactHandler;
|
|
231
|
+
onPreCompactError?: (error: unknown) => void;
|
|
232
|
+
preCompactTimeoutMs?: number;
|
|
222
233
|
}): Promise<import("./internal/session/compact-session.js").CompactResult>;
|
|
223
234
|
/**
|
|
224
235
|
* M51 — inject a SYNTHETIC user+assistant pair into a LOCAL session's persisted transcript WITHOUT
|
package/dist/auth/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkFRITRLZQ_cjs = require('../chunk-FRITRLZQ.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
require('../chunk-
|
|
4
|
+
var chunkRA7IE4NK_cjs = require('../chunk-RA7IE4NK.cjs');
|
|
5
|
+
var chunkNAGPKWOD_cjs = require('../chunk-NAGPKWOD.cjs');
|
|
6
|
+
var chunkOLSEWLK5_cjs = require('../chunk-OLSEWLK5.cjs');
|
|
7
|
+
require('../chunk-UNFBHV46.cjs');
|
|
8
8
|
require('../chunk-6LHQPOMI.cjs');
|
|
9
9
|
|
|
10
10
|
// src/internal/auth/oauth-device.ts
|
|
@@ -14,7 +14,7 @@ async function parseJsonOrFail(res, code, what) {
|
|
|
14
14
|
try {
|
|
15
15
|
return JSON.parse(text);
|
|
16
16
|
} catch {
|
|
17
|
-
throw new
|
|
17
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(code, `${what} returned a non-JSON body: ${text.slice(0, 120)}`);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
async function requestDeviceCode(config, deps) {
|
|
@@ -29,13 +29,13 @@ async function requestDeviceCode(config, deps) {
|
|
|
29
29
|
}).toString()
|
|
30
30
|
});
|
|
31
31
|
} catch (err) {
|
|
32
|
-
throw new
|
|
32
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
33
33
|
"oauth_device_authorization_failed",
|
|
34
34
|
`device request failed: ${err.message}`
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
37
|
if (!res.ok) {
|
|
38
|
-
throw new
|
|
38
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
39
39
|
"oauth_device_authorization_failed",
|
|
40
40
|
`device endpoint returned HTTP ${res.status}`
|
|
41
41
|
);
|
|
@@ -46,7 +46,7 @@ async function requestDeviceCode(config, deps) {
|
|
|
46
46
|
"device endpoint"
|
|
47
47
|
);
|
|
48
48
|
if (typeof data.device_code !== "string" || typeof data.user_code !== "string") {
|
|
49
|
-
throw new
|
|
49
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
50
50
|
"oauth_device_authorization_failed",
|
|
51
51
|
"device response missing device_code/user_code"
|
|
52
52
|
);
|
|
@@ -79,14 +79,14 @@ async function pollDeviceToken(config, grant, deps) {
|
|
|
79
79
|
}).toString()
|
|
80
80
|
});
|
|
81
81
|
} catch (err) {
|
|
82
|
-
throw new
|
|
82
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
83
83
|
"oauth_token_exchange_failed",
|
|
84
84
|
`device token poll failed: ${err.message}`
|
|
85
85
|
);
|
|
86
86
|
}
|
|
87
87
|
const data = await res.json().catch(() => ({}));
|
|
88
88
|
if (!res.ok && typeof data.error !== "string") {
|
|
89
|
-
throw new
|
|
89
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
90
90
|
"oauth_token_exchange_failed",
|
|
91
91
|
`device token endpoint returned HTTP ${res.status}`
|
|
92
92
|
);
|
|
@@ -116,14 +116,14 @@ async function pollDeviceToken(config, grant, deps) {
|
|
|
116
116
|
continue;
|
|
117
117
|
}
|
|
118
118
|
if (typeof data.error === "string") {
|
|
119
|
-
throw new
|
|
119
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
120
120
|
"oauth_token_exchange_failed",
|
|
121
121
|
`device authorization rejected: ${data.error}`
|
|
122
122
|
);
|
|
123
123
|
}
|
|
124
124
|
await deps.sleep(intervalMs + POLLING_SAFETY_MARGIN_MS);
|
|
125
125
|
}
|
|
126
|
-
throw new
|
|
126
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
127
127
|
"oauth_device_code_expired",
|
|
128
128
|
"the device code expired before it was approved"
|
|
129
129
|
);
|
|
@@ -146,13 +146,13 @@ async function requestOpenAIUsercode(config, deps) {
|
|
|
146
146
|
body: JSON.stringify({ client_id: config.clientId })
|
|
147
147
|
});
|
|
148
148
|
} catch (err) {
|
|
149
|
-
throw new
|
|
149
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
150
150
|
"oauth_device_authorization_failed",
|
|
151
151
|
`usercode request failed: ${err.message}`
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
if (!res.ok) {
|
|
155
|
-
throw new
|
|
155
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
156
156
|
"oauth_device_authorization_failed",
|
|
157
157
|
`usercode endpoint returned HTTP ${res.status}`
|
|
158
158
|
);
|
|
@@ -163,7 +163,7 @@ async function requestOpenAIUsercode(config, deps) {
|
|
|
163
163
|
"usercode endpoint"
|
|
164
164
|
);
|
|
165
165
|
if (typeof data.device_auth_id !== "string" || typeof data.user_code !== "string") {
|
|
166
|
-
throw new
|
|
166
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
167
167
|
"oauth_device_authorization_failed",
|
|
168
168
|
"usercode response missing device_auth_id/user_code"
|
|
169
169
|
);
|
|
@@ -188,7 +188,7 @@ async function openaiDeviceLogin(config, deps, hooks) {
|
|
|
188
188
|
body: JSON.stringify({ device_auth_id: deviceAuthId, user_code: userCode })
|
|
189
189
|
});
|
|
190
190
|
} catch (err) {
|
|
191
|
-
throw new
|
|
191
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
192
192
|
"oauth_token_exchange_failed",
|
|
193
193
|
`device poll failed: ${err.message}`
|
|
194
194
|
);
|
|
@@ -196,12 +196,12 @@ async function openaiDeviceLogin(config, deps, hooks) {
|
|
|
196
196
|
if (res.ok) {
|
|
197
197
|
const data = await parseJsonOrFail(res, "oauth_token_exchange_failed", "device poll");
|
|
198
198
|
if (typeof data.authorization_code !== "string" || typeof data.code_verifier !== "string") {
|
|
199
|
-
throw new
|
|
199
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
200
200
|
"oauth_token_exchange_failed",
|
|
201
201
|
"device poll returned no authorization_code"
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
|
-
const tokens = await
|
|
204
|
+
const tokens = await chunkRA7IE4NK_cjs.exchangeCode(
|
|
205
205
|
config,
|
|
206
206
|
{ code: data.authorization_code, verifier: data.code_verifier },
|
|
207
207
|
deps
|
|
@@ -212,14 +212,14 @@ async function openaiDeviceLogin(config, deps, hooks) {
|
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
if (res.status !== 403 && res.status !== 404) {
|
|
215
|
-
throw new
|
|
215
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
216
216
|
"oauth_token_exchange_failed",
|
|
217
217
|
`device poll returned HTTP ${res.status}`
|
|
218
218
|
);
|
|
219
219
|
}
|
|
220
220
|
await deps.sleep(intervalMs + POLLING_SAFETY_MARGIN_MS);
|
|
221
221
|
}
|
|
222
|
-
throw new
|
|
222
|
+
throw new chunkOLSEWLK5_cjs.AuthCallbackError(
|
|
223
223
|
"oauth_device_code_expired",
|
|
224
224
|
"the device authorization expired before approval"
|
|
225
225
|
);
|
|
@@ -249,51 +249,51 @@ Object.defineProperty(exports, "providerFromApiKeyPrefix", {
|
|
|
249
249
|
});
|
|
250
250
|
Object.defineProperty(exports, "ensureFreshCredential", {
|
|
251
251
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunkRA7IE4NK_cjs.ensureFreshCredential; }
|
|
253
253
|
});
|
|
254
254
|
Object.defineProperty(exports, "exchangeCode", {
|
|
255
255
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunkRA7IE4NK_cjs.exchangeCode; }
|
|
257
257
|
});
|
|
258
258
|
Object.defineProperty(exports, "persistOAuthTokens", {
|
|
259
259
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunkRA7IE4NK_cjs.persistOAuthTokens; }
|
|
261
261
|
});
|
|
262
262
|
Object.defineProperty(exports, "refreshOAuthTokens", {
|
|
263
263
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunkRA7IE4NK_cjs.refreshOAuthTokens; }
|
|
265
265
|
});
|
|
266
266
|
Object.defineProperty(exports, "resolveCredential", {
|
|
267
267
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunkRA7IE4NK_cjs.resolveCredential; }
|
|
269
269
|
});
|
|
270
270
|
Object.defineProperty(exports, "CredentialError", {
|
|
271
271
|
enumerable: true,
|
|
272
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunkNAGPKWOD_cjs.CredentialError; }
|
|
273
273
|
});
|
|
274
274
|
Object.defineProperty(exports, "assertSecureModes", {
|
|
275
275
|
enumerable: true,
|
|
276
|
-
get: function () { return
|
|
276
|
+
get: function () { return chunkNAGPKWOD_cjs.assertSecureModes; }
|
|
277
277
|
});
|
|
278
278
|
Object.defineProperty(exports, "authFilePath", {
|
|
279
279
|
enumerable: true,
|
|
280
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunkNAGPKWOD_cjs.authFilePath; }
|
|
281
281
|
});
|
|
282
282
|
Object.defineProperty(exports, "credentialHome", {
|
|
283
283
|
enumerable: true,
|
|
284
|
-
get: function () { return
|
|
284
|
+
get: function () { return chunkNAGPKWOD_cjs.credentialHome; }
|
|
285
285
|
});
|
|
286
286
|
Object.defineProperty(exports, "readAuthFile", {
|
|
287
287
|
enumerable: true,
|
|
288
|
-
get: function () { return
|
|
288
|
+
get: function () { return chunkNAGPKWOD_cjs.readAuthFile; }
|
|
289
289
|
});
|
|
290
290
|
Object.defineProperty(exports, "readStoredOAuth", {
|
|
291
291
|
enumerable: true,
|
|
292
|
-
get: function () { return
|
|
292
|
+
get: function () { return chunkNAGPKWOD_cjs.readStoredOAuth; }
|
|
293
293
|
});
|
|
294
294
|
Object.defineProperty(exports, "writeCredential", {
|
|
295
295
|
enumerable: true,
|
|
296
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunkNAGPKWOD_cjs.writeCredential; }
|
|
297
297
|
});
|
|
298
298
|
exports.deviceLogin = deviceLogin;
|
|
299
299
|
exports.extractAccountId = extractAccountId;
|