@theokit/sdk 4.50.0 → 4.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/agent-2KSLHB6B.cjs +57 -0
- package/dist/{agent-JA4ILE5O.cjs.map → agent-2KSLHB6B.cjs.map} +1 -1
- package/dist/agent-QWNWBCQZ.js +48 -0
- package/dist/{agent-GKX5FE5K.js.map → agent-QWNWBCQZ.js.map} +1 -1
- package/dist/agent-session-store-EPX2WQI4.cjs +23 -0
- package/dist/{agent-session-store-EPUERCUU.cjs.map → agent-session-store-EPX2WQI4.cjs.map} +1 -1
- package/dist/agent-session-store-JMU7ASDB.js +6 -0
- package/dist/{agent-session-store-TXP5ZVOD.js.map → agent-session-store-JMU7ASDB.js.map} +1 -1
- package/dist/auth/index.cjs +16 -16
- package/dist/auth/index.js +4 -4
- package/dist/{batch-OUF4N2TM.js → batch-NLIS4QTW.js} +9 -9
- package/dist/{batch-OUF4N2TM.js.map → batch-NLIS4QTW.js.map} +1 -1
- package/dist/{batch-URTEXK77.cjs → batch-WQ3AJCDV.cjs} +26 -26
- package/dist/{batch-URTEXK77.cjs.map → batch-WQ3AJCDV.cjs.map} +1 -1
- package/dist/{chunk-NETYW4V3.cjs → chunk-2CFEET3Y.cjs} +4 -4
- package/dist/{chunk-NETYW4V3.cjs.map → chunk-2CFEET3Y.cjs.map} +1 -1
- package/dist/{chunk-74VVGK7P.cjs → chunk-2S7IB4O3.cjs} +24 -24
- package/dist/{chunk-74VVGK7P.cjs.map → chunk-2S7IB4O3.cjs.map} +1 -1
- package/dist/{chunk-YULF6FPB.cjs → chunk-2YGIBOUH.cjs} +8 -8
- package/dist/{chunk-YULF6FPB.cjs.map → chunk-2YGIBOUH.cjs.map} +1 -1
- package/dist/{chunk-3NLOQEJR.js → chunk-34XOCZJO.js} +5 -16
- package/dist/chunk-34XOCZJO.js.map +1 -0
- package/dist/{chunk-FAUKVJCC.cjs → chunk-3BKWFISQ.cjs} +8 -8
- package/dist/{chunk-FAUKVJCC.cjs.map → chunk-3BKWFISQ.cjs.map} +1 -1
- package/dist/{chunk-FZ4YMZA3.cjs → chunk-3R4ZCQAZ.cjs} +5 -5
- package/dist/{chunk-FZ4YMZA3.cjs.map → chunk-3R4ZCQAZ.cjs.map} +1 -1
- package/dist/{chunk-HECR7KF5.cjs → chunk-3YYDHUNH.cjs} +11 -11
- package/dist/{chunk-HECR7KF5.cjs.map → chunk-3YYDHUNH.cjs.map} +1 -1
- package/dist/{chunk-BRHRQOJA.cjs → chunk-44IISBRZ.cjs} +4 -4
- package/dist/{chunk-BRHRQOJA.cjs.map → chunk-44IISBRZ.cjs.map} +1 -1
- package/dist/{chunk-PBML2FHN.js → chunk-4X3SBHPK.js} +2 -2
- package/dist/chunk-4X3SBHPK.js.map +1 -0
- package/dist/{chunk-OLLOUAUJ.js → chunk-5XXUYU3M.js} +3 -3
- package/dist/{chunk-OLLOUAUJ.js.map → chunk-5XXUYU3M.js.map} +1 -1
- package/dist/{chunk-XARLSCKA.js → chunk-6CSIUJ5W.js} +38 -38
- package/dist/chunk-6CSIUJ5W.js.map +1 -0
- package/dist/{chunk-KCQUYQ3V.cjs → chunk-6DCTL32L.cjs} +17 -17
- package/dist/{chunk-KCQUYQ3V.cjs.map → chunk-6DCTL32L.cjs.map} +1 -1
- package/dist/{chunk-EON4YTR6.js → chunk-6PTCKXD3.js} +8 -8
- package/dist/{chunk-EON4YTR6.js.map → chunk-6PTCKXD3.js.map} +1 -1
- package/dist/{chunk-XR4LPBXH.cjs → chunk-7HQVDLFI.cjs} +9 -9
- package/dist/{chunk-XR4LPBXH.cjs.map → chunk-7HQVDLFI.cjs.map} +1 -1
- package/dist/{chunk-GNMPCZNN.js → chunk-7TB5U7RK.js} +6 -6
- package/dist/{chunk-GNMPCZNN.js.map → chunk-7TB5U7RK.js.map} +1 -1
- package/dist/{chunk-7PESI6YD.cjs → chunk-ADVZIC43.cjs} +10 -10
- package/dist/{chunk-7PESI6YD.cjs.map → chunk-ADVZIC43.cjs.map} +1 -1
- package/dist/{chunk-NNNUQELM.cjs → chunk-AMYY3JHQ.cjs} +9 -9
- package/dist/{chunk-NNNUQELM.cjs.map → chunk-AMYY3JHQ.cjs.map} +1 -1
- package/dist/{chunk-L4JFQCG4.js → chunk-BKRTYDVN.js} +3 -3
- package/dist/{chunk-L4JFQCG4.js.map → chunk-BKRTYDVN.js.map} +1 -1
- package/dist/{chunk-MZQHVN7C.js → chunk-BVT6LFQ3.js} +5 -5
- package/dist/{chunk-MZQHVN7C.js.map → chunk-BVT6LFQ3.js.map} +1 -1
- package/dist/{chunk-UJMEWGO6.cjs → chunk-BWGXYOBZ.cjs} +4 -4
- package/dist/{chunk-UJMEWGO6.cjs.map → chunk-BWGXYOBZ.cjs.map} +1 -1
- package/dist/{chunk-2S6B5B2A.js → chunk-BXVSBYGW.js} +5 -5
- package/dist/{chunk-2S6B5B2A.js.map → chunk-BXVSBYGW.js.map} +1 -1
- package/dist/{chunk-AF4BBKIF.js → chunk-C4EU627W.js} +4 -4
- package/dist/{chunk-AF4BBKIF.js.map → chunk-C4EU627W.js.map} +1 -1
- package/dist/{chunk-VQFSEKU5.js → chunk-CHVSMEKM.js} +3 -3
- package/dist/{chunk-VQFSEKU5.js.map → chunk-CHVSMEKM.js.map} +1 -1
- package/dist/{chunk-6X2HUT4A.cjs → chunk-CZHPR2G7.cjs} +8 -8
- package/dist/{chunk-6X2HUT4A.cjs.map → chunk-CZHPR2G7.cjs.map} +1 -1
- package/dist/{chunk-F4RUADRC.js → chunk-DHVNJYTO.js} +3 -3
- package/dist/{chunk-F4RUADRC.js.map → chunk-DHVNJYTO.js.map} +1 -1
- package/dist/{chunk-UJ7HK7BX.js → chunk-DRRSUUI5.js} +5 -5
- package/dist/{chunk-UJ7HK7BX.js.map → chunk-DRRSUUI5.js.map} +1 -1
- package/dist/{chunk-S4Q5OMIK.cjs → chunk-E3OCRJU6.cjs} +11 -11
- package/dist/{chunk-S4Q5OMIK.cjs.map → chunk-E3OCRJU6.cjs.map} +1 -1
- package/dist/{chunk-3KY7MHR4.js → chunk-E6T264NS.js} +3 -3
- package/dist/{chunk-3KY7MHR4.js.map → chunk-E6T264NS.js.map} +1 -1
- package/dist/{chunk-WCXOKGOQ.cjs → chunk-ECPL5RV6.cjs} +8 -8
- package/dist/{chunk-WCXOKGOQ.cjs.map → chunk-ECPL5RV6.cjs.map} +1 -1
- package/dist/{chunk-LLE7HPRI.js → chunk-EFXJ5C7X.js} +5 -5
- package/dist/{chunk-LLE7HPRI.js.map → chunk-EFXJ5C7X.js.map} +1 -1
- package/dist/{chunk-GH52NOCL.cjs → chunk-EQMLJ52C.cjs} +26 -26
- package/dist/{chunk-GH52NOCL.cjs.map → chunk-EQMLJ52C.cjs.map} +1 -1
- package/dist/{chunk-WIGJGFH4.cjs → chunk-EUBGGYPH.cjs} +5 -5
- package/dist/{chunk-WIGJGFH4.cjs.map → chunk-EUBGGYPH.cjs.map} +1 -1
- package/dist/{chunk-RBQYHEZD.cjs → chunk-FBZMSLDC.cjs} +4 -4
- package/dist/{chunk-RBQYHEZD.cjs.map → chunk-FBZMSLDC.cjs.map} +1 -1
- package/dist/{chunk-64TJCXY5.cjs → chunk-FUASIT3E.cjs} +15 -15
- package/dist/{chunk-64TJCXY5.cjs.map → chunk-FUASIT3E.cjs.map} +1 -1
- package/dist/{chunk-MRKSSN36.js → chunk-HI4ZW62S.js} +3 -3
- package/dist/{chunk-MRKSSN36.js.map → chunk-HI4ZW62S.js.map} +1 -1
- package/dist/{chunk-O3IZ7JEL.js → chunk-I732VEDW.js} +3 -3
- package/dist/{chunk-O3IZ7JEL.js.map → chunk-I732VEDW.js.map} +1 -1
- package/dist/{chunk-AZ6FKDQR.js → chunk-ITQ4NO4P.js} +3 -3
- package/dist/{chunk-AZ6FKDQR.js.map → chunk-ITQ4NO4P.js.map} +1 -1
- package/dist/{chunk-PYM5OUL4.js → chunk-J4RY5DTI.js} +5 -5
- package/dist/{chunk-PYM5OUL4.js.map → chunk-J4RY5DTI.js.map} +1 -1
- package/dist/{chunk-NOM2YWFP.js → chunk-JJZ4NIAG.js} +5 -5
- package/dist/{chunk-NOM2YWFP.js.map → chunk-JJZ4NIAG.js.map} +1 -1
- package/dist/{chunk-GC44RATP.cjs → chunk-K42QGAKM.cjs} +10 -10
- package/dist/{chunk-GC44RATP.cjs.map → chunk-K42QGAKM.cjs.map} +1 -1
- package/dist/{chunk-FRQ6F44U.js → chunk-KIX45IKP.js} +4 -4
- package/dist/{chunk-FRQ6F44U.js.map → chunk-KIX45IKP.js.map} +1 -1
- package/dist/{chunk-OEFFPR2S.cjs → chunk-KNZU4YO5.cjs} +4 -4
- package/dist/{chunk-OEFFPR2S.cjs.map → chunk-KNZU4YO5.cjs.map} +1 -1
- package/dist/{chunk-HK4HRLWE.js → chunk-KZBB4YKU.js} +3 -3
- package/dist/{chunk-HK4HRLWE.js.map → chunk-KZBB4YKU.js.map} +1 -1
- package/dist/{chunk-ZS6SLELQ.js → chunk-L7EGRCKJ.js} +4 -4
- package/dist/{chunk-ZS6SLELQ.js.map → chunk-L7EGRCKJ.js.map} +1 -1
- package/dist/{chunk-LXKNENHK.js → chunk-MV4TOCUK.js} +3 -3
- package/dist/{chunk-LXKNENHK.js.map → chunk-MV4TOCUK.js.map} +1 -1
- package/dist/{chunk-PAV4ZPSW.js → chunk-N43XLTHZ.js} +3 -3
- package/dist/{chunk-PAV4ZPSW.js.map → chunk-N43XLTHZ.js.map} +1 -1
- package/dist/{chunk-QFFNMJAS.cjs → chunk-N6NUMXAJ.cjs} +121 -121
- package/dist/{chunk-QFFNMJAS.cjs.map → chunk-N6NUMXAJ.cjs.map} +1 -1
- package/dist/{chunk-ZNW2TXLO.js → chunk-NACDF3PK.js} +3 -3
- package/dist/{chunk-ZNW2TXLO.js.map → chunk-NACDF3PK.js.map} +1 -1
- package/dist/{chunk-27DYRARU.cjs → chunk-NFATC6ZF.cjs} +4 -4
- package/dist/{chunk-27DYRARU.cjs.map → chunk-NFATC6ZF.cjs.map} +1 -1
- package/dist/{chunk-RJBHWM6D.js → chunk-NOS7PTKP.js} +7 -7
- package/dist/{chunk-RJBHWM6D.js.map → chunk-NOS7PTKP.js.map} +1 -1
- package/dist/{chunk-NRA36JKG.cjs → chunk-OI6RHLGC.cjs} +11 -11
- package/dist/{chunk-NRA36JKG.cjs.map → chunk-OI6RHLGC.cjs.map} +1 -1
- package/dist/{chunk-J5RW43IR.js → chunk-OIBHY6JQ.js} +4 -4
- package/dist/{chunk-J5RW43IR.js.map → chunk-OIBHY6JQ.js.map} +1 -1
- package/dist/{chunk-UU7MAO2D.cjs → chunk-OKLYRPKL.cjs} +4 -16
- package/dist/chunk-OKLYRPKL.cjs.map +1 -0
- package/dist/{chunk-SNKY3C2L.js → chunk-OZXPA3ME.js} +4 -4
- package/dist/{chunk-SNKY3C2L.js.map → chunk-OZXPA3ME.js.map} +1 -1
- package/dist/{chunk-35NFZ7QB.js → chunk-PLUCC4N5.js} +3 -3
- package/dist/{chunk-35NFZ7QB.js.map → chunk-PLUCC4N5.js.map} +1 -1
- package/dist/{chunk-MMZX557L.cjs → chunk-PVBANCWU.cjs} +5 -5
- package/dist/{chunk-MMZX557L.cjs.map → chunk-PVBANCWU.cjs.map} +1 -1
- package/dist/{chunk-BV42CCRP.cjs → chunk-QLAWEGTZ.cjs} +7 -7
- package/dist/{chunk-BV42CCRP.cjs.map → chunk-QLAWEGTZ.cjs.map} +1 -1
- package/dist/{chunk-TDDRPFO3.js → chunk-QVIUICFM.js} +9 -9
- package/dist/{chunk-TDDRPFO3.js.map → chunk-QVIUICFM.js.map} +1 -1
- package/dist/{chunk-HKSSM5RK.js → chunk-R7TKOQMJ.js} +3 -3
- package/dist/{chunk-HKSSM5RK.js.map → chunk-R7TKOQMJ.js.map} +1 -1
- package/dist/{chunk-HLNLYLNN.cjs → chunk-RAACTJ7C.cjs} +4 -4
- package/dist/{chunk-HLNLYLNN.cjs.map → chunk-RAACTJ7C.cjs.map} +1 -1
- package/dist/chunk-RIAM53CP.js +22 -0
- package/dist/chunk-RIAM53CP.js.map +1 -0
- package/dist/{chunk-X2YQP452.cjs → chunk-RTLUZKDL.cjs} +11 -11
- package/dist/{chunk-X2YQP452.cjs.map → chunk-RTLUZKDL.cjs.map} +1 -1
- package/dist/{chunk-6W4U2G3J.cjs → chunk-SDJYLCJK.cjs} +5 -5
- package/dist/{chunk-6W4U2G3J.cjs.map → chunk-SDJYLCJK.cjs.map} +1 -1
- package/dist/{chunk-ZHPET3LZ.cjs → chunk-SXSPMRSV.cjs} +2 -2
- package/dist/chunk-SXSPMRSV.cjs.map +1 -0
- package/dist/{chunk-JA4FEA5Z.cjs → chunk-T6QUCG7L.cjs} +4 -4
- package/dist/{chunk-JA4FEA5Z.cjs.map → chunk-T6QUCG7L.cjs.map} +1 -1
- package/dist/{chunk-GLEKLAUW.cjs → chunk-T6ZCG5AP.cjs} +12 -12
- package/dist/{chunk-GLEKLAUW.cjs.map → chunk-T6ZCG5AP.cjs.map} +1 -1
- package/dist/{chunk-ZTEAJAE6.js → chunk-UJ3SXRZZ.js} +3 -3
- package/dist/{chunk-ZTEAJAE6.js.map → chunk-UJ3SXRZZ.js.map} +1 -1
- package/dist/{chunk-Z6N6SDNR.js → chunk-V2EJLKGA.js} +4 -4
- package/dist/{chunk-Z6N6SDNR.js.map → chunk-V2EJLKGA.js.map} +1 -1
- package/dist/{chunk-57KX5WTP.cjs → chunk-V45L2OYP.cjs} +9 -9
- package/dist/{chunk-57KX5WTP.cjs.map → chunk-V45L2OYP.cjs.map} +1 -1
- package/dist/chunk-VKJ7V7EB.cjs +25 -0
- package/dist/chunk-VKJ7V7EB.cjs.map +1 -0
- package/dist/{chunk-2WB6EIYW.js → chunk-W4FV7JBH.js} +4 -4
- package/dist/{chunk-2WB6EIYW.js.map → chunk-W4FV7JBH.js.map} +1 -1
- package/dist/{chunk-TJRPNBY5.js → chunk-XGYI2KQH.js} +4 -4
- package/dist/{chunk-TJRPNBY5.js.map → chunk-XGYI2KQH.js.map} +1 -1
- package/dist/{chunk-TSK4VVBW.cjs → chunk-XI4L45SS.cjs} +301 -301
- package/dist/chunk-XI4L45SS.cjs.map +1 -0
- package/dist/{chunk-4JRRFRV4.cjs → chunk-XK54DTRF.cjs} +4 -4
- package/dist/{chunk-4JRRFRV4.cjs.map → chunk-XK54DTRF.cjs.map} +1 -1
- package/dist/{chunk-6FSQ3CHQ.js → chunk-XWCTBGYK.js} +6 -7
- package/dist/chunk-XWCTBGYK.js.map +1 -0
- package/dist/{chunk-XA3TSBAH.cjs → chunk-YTO5BRBD.cjs} +10 -11
- package/dist/chunk-YTO5BRBD.cjs.map +1 -0
- package/dist/{chunk-JO76RWCA.cjs → chunk-Z5U2JGEK.cjs} +11 -11
- package/dist/{chunk-JO76RWCA.cjs.map → chunk-Z5U2JGEK.cjs.map} +1 -1
- package/dist/{chunk-Q4DTGCSD.js → chunk-ZSJPRPN7.js} +3 -3
- package/dist/{chunk-Q4DTGCSD.js.map → chunk-ZSJPRPN7.js.map} +1 -1
- package/dist/compact-session-AAFICMPQ.cjs +56 -0
- package/dist/{compact-session-UUCBTBCZ.cjs.map → compact-session-AAFICMPQ.cjs.map} +1 -1
- package/dist/compact-session-LR73ESZX.js +19 -0
- package/dist/{compact-session-GF2CBKXB.js.map → compact-session-LR73ESZX.js.map} +1 -1
- package/dist/compaction.cjs +16 -16
- package/dist/compaction.js +3 -3
- package/dist/concurrency.cjs +6 -6
- package/dist/concurrency.js +4 -4
- package/dist/context/index.cjs +6 -5
- package/dist/context/index.cjs.map +1 -1
- package/dist/context/index.js +3 -2
- package/dist/context/index.js.map +1 -1
- package/dist/context-4HGPCOH6.cjs +22 -0
- package/dist/{context-2G4375BZ.cjs.map → context-4HGPCOH6.cjs.map} +1 -1
- package/dist/context-DCECDKWN.js +5 -0
- package/dist/{context-GSQYVVMJ.js.map → context-DCECDKWN.js.map} +1 -1
- package/dist/cron.cjs +33 -32
- package/dist/cron.js +32 -31
- package/dist/errors.cjs +21 -21
- package/dist/errors.js +2 -2
- package/dist/eval.cjs +38 -37
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +32 -31
- package/dist/eval.js.map +1 -1
- package/dist/{executor-VQLTQY53.js → executor-3CGPLVJL.js} +7 -7
- package/dist/{executor-VQLTQY53.js.map → executor-3CGPLVJL.js.map} +1 -1
- package/dist/{executor-CB75B5BH.cjs → executor-4SW7QGZ4.cjs} +24 -24
- package/dist/{executor-CB75B5BH.cjs.map → executor-4SW7QGZ4.cjs.map} +1 -1
- package/dist/filesystem/index.cjs +8 -7
- package/dist/filesystem/index.cjs.map +1 -1
- package/dist/filesystem/index.js +4 -3
- package/dist/filesystem/index.js.map +1 -1
- package/dist/fs-session-store-2TF3ZWMT.js +10 -0
- package/dist/{fs-session-store-ZNUYZHYI.js.map → fs-session-store-2TF3ZWMT.js.map} +1 -1
- package/dist/fs-session-store-TL4RJTXZ.cjs +19 -0
- package/dist/{fs-session-store-MAZV5FXJ.cjs.map → fs-session-store-TL4RJTXZ.cjs.map} +1 -1
- package/dist/generate-object-E465DX5I.cjs +20 -0
- package/dist/{generate-object-6PWGH5DZ.cjs.map → generate-object-E465DX5I.cjs.map} +1 -1
- package/dist/generate-object-TVQCW2IZ.js +7 -0
- package/dist/{generate-object-IXMJ7FUX.js.map → generate-object-TVQCW2IZ.js.map} +1 -1
- package/dist/index-manager-EA6FGIQG.js +12 -0
- package/dist/{index-manager-X5IPG2JL.js.map → index-manager-EA6FGIQG.js.map} +1 -1
- package/dist/index-manager-HGGL4DD5.cjs +21 -0
- package/dist/{index-manager-YFFEPISE.cjs.map → index-manager-HGGL4DD5.cjs.map} +1 -1
- package/dist/index.cjs +226 -134
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +239 -1
- package/dist/index.d.ts +239 -1
- package/dist/index.js +131 -46
- package/dist/index.js.map +1 -1
- package/dist/{inject-session-NR64GB3T.js → inject-session-6ZAFN7F7.js} +7 -7
- package/dist/{inject-session-NR64GB3T.js.map → inject-session-6ZAFN7F7.js.map} +1 -1
- package/dist/{inject-session-I3HK3AHB.cjs → inject-session-KOGUD6KM.cjs} +9 -9
- package/dist/{inject-session-I3HK3AHB.cjs.map → inject-session-KOGUD6KM.cjs.map} +1 -1
- package/dist/internal/memory/adapters/index.cjs +9 -8
- package/dist/internal/memory/adapters/index.js +8 -7
- package/dist/internal/persistence/index.cjs +25 -25
- package/dist/internal/persistence/index.js +6 -6
- package/dist/internal/security/index.cjs +14 -13
- package/dist/internal/security/index.js +4 -3
- package/dist/judge-call-GVIJWQVE.cjs +22 -0
- package/dist/{judge-call-J5EETJL3.cjs.map → judge-call-GVIJWQVE.cjs.map} +1 -1
- package/dist/judge-call-QMKGC2ZK.js +5 -0
- package/dist/{judge-call-3QZO5H5N.js.map → judge-call-QMKGC2ZK.js.map} +1 -1
- package/dist/models.cjs +20 -20
- package/dist/models.js +5 -5
- package/dist/path-safety.cjs +11 -10
- package/dist/path-safety.js +4 -3
- package/dist/persistence.cjs +28 -28
- package/dist/persistence.js +8 -8
- package/dist/project.cjs +5 -5
- package/dist/project.js +3 -3
- package/dist/registry-GC7BQMSV.js +9 -0
- package/dist/{registry-PPFMCM4A.js.map → registry-GC7BQMSV.js.map} +1 -1
- package/dist/registry-UBY26R4I.cjs +46 -0
- package/dist/{registry-KB3TS6BM.cjs.map → registry-UBY26R4I.cjs.map} +1 -1
- package/dist/retry.cjs +4 -4
- package/dist/retry.js +3 -3
- package/dist/sandbox/index.cjs +6 -6
- package/dist/sandbox/index.js +2 -2
- package/dist/server/errors-envelope.cjs +14 -14
- package/dist/server/errors-envelope.js +3 -3
- package/dist/session-transcript-SKIRBEJE.js +5 -0
- package/dist/{session-transcript-7FWTO4BK.js.map → session-transcript-SKIRBEJE.js.map} +1 -1
- package/dist/session-transcript-TNAJ4O3M.cjs +50 -0
- package/dist/{session-transcript-FYRKWRWV.cjs.map → session-transcript-TNAJ4O3M.cjs.map} +1 -1
- package/dist/skills.cjs +8 -7
- package/dist/skills.js +6 -5
- package/dist/stream-object-QMNR3YFF.js +7 -0
- package/dist/{stream-object-NPJXDZXO.js.map → stream-object-QMNR3YFF.js.map} +1 -1
- package/dist/stream-object-T4DAMNVB.cjs +20 -0
- package/dist/{stream-object-3R3HZPQN.cjs.map → stream-object-T4DAMNVB.cjs.map} +1 -1
- package/dist/subagents-loader-3CXBQWWY.cjs +15 -0
- package/dist/{subagents-loader-FDXPBBRA.cjs.map → subagents-loader-3CXBQWWY.cjs.map} +1 -1
- package/dist/subagents-loader-WN2SB6PV.js +6 -0
- package/dist/{subagents-loader-5KQVYUNS.js.map → subagents-loader-WN2SB6PV.js.map} +1 -1
- package/dist/subagents-loader.cjs +6 -6
- package/dist/subagents-loader.js +4 -4
- package/dist/subscription/index.cjs +3 -3
- package/dist/subscription/index.js +2 -2
- package/dist/task-store.cjs +7 -7
- package/dist/task-store.js +4 -4
- package/dist/workflow.cjs +28 -27
- package/dist/workflow.js +7 -6
- package/package.json +1 -1
- package/dist/agent-GKX5FE5K.js +0 -47
- package/dist/agent-JA4ILE5O.cjs +0 -56
- package/dist/agent-session-store-EPUERCUU.cjs +0 -23
- package/dist/agent-session-store-TXP5ZVOD.js +0 -6
- package/dist/chunk-3NLOQEJR.js.map +0 -1
- package/dist/chunk-6FSQ3CHQ.js.map +0 -1
- package/dist/chunk-PBML2FHN.js.map +0 -1
- package/dist/chunk-TSK4VVBW.cjs.map +0 -1
- package/dist/chunk-UU7MAO2D.cjs.map +0 -1
- package/dist/chunk-XA3TSBAH.cjs.map +0 -1
- package/dist/chunk-XARLSCKA.js.map +0 -1
- package/dist/chunk-ZHPET3LZ.cjs.map +0 -1
- package/dist/compact-session-GF2CBKXB.js +0 -18
- package/dist/compact-session-UUCBTBCZ.cjs +0 -55
- package/dist/context-2G4375BZ.cjs +0 -22
- package/dist/context-GSQYVVMJ.js +0 -5
- package/dist/fs-session-store-MAZV5FXJ.cjs +0 -19
- package/dist/fs-session-store-ZNUYZHYI.js +0 -10
- package/dist/generate-object-6PWGH5DZ.cjs +0 -20
- package/dist/generate-object-IXMJ7FUX.js +0 -7
- package/dist/index-manager-X5IPG2JL.js +0 -11
- package/dist/index-manager-YFFEPISE.cjs +0 -20
- package/dist/judge-call-3QZO5H5N.js +0 -5
- package/dist/judge-call-J5EETJL3.cjs +0 -22
- package/dist/registry-KB3TS6BM.cjs +0 -46
- package/dist/registry-PPFMCM4A.js +0 -9
- package/dist/session-transcript-7FWTO4BK.js +0 -5
- package/dist/session-transcript-FYRKWRWV.cjs +0 -50
- package/dist/stream-object-3R3HZPQN.cjs +0 -20
- package/dist/stream-object-NPJXDZXO.js +0 -7
- package/dist/subagents-loader-5KQVYUNS.js +0 -6
- package/dist/subagents-loader-FDXPBBRA.cjs +0 -15
package/dist/index.cjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkOBA6YK2R_cjs = require('./chunk-OBA6YK2R.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
4
|
+
var chunkBWGXYOBZ_cjs = require('./chunk-BWGXYOBZ.cjs');
|
|
5
|
+
var chunkV45L2OYP_cjs = require('./chunk-V45L2OYP.cjs');
|
|
6
|
+
var chunkK42QGAKM_cjs = require('./chunk-K42QGAKM.cjs');
|
|
7
|
+
require('./chunk-EUBGGYPH.cjs');
|
|
8
|
+
var chunkZ5U2JGEK_cjs = require('./chunk-Z5U2JGEK.cjs');
|
|
9
|
+
require('./chunk-FBZMSLDC.cjs');
|
|
10
10
|
require('./chunk-PNVDQL5Y.cjs');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
11
|
+
var chunk2S7IB4O3_cjs = require('./chunk-2S7IB4O3.cjs');
|
|
12
|
+
var chunkXI4L45SS_cjs = require('./chunk-XI4L45SS.cjs');
|
|
13
|
+
require('./chunk-3BKWFISQ.cjs');
|
|
14
14
|
require('./chunk-BV2MWEMV.cjs');
|
|
15
|
-
var
|
|
15
|
+
var chunk6DCTL32L_cjs = require('./chunk-6DCTL32L.cjs');
|
|
16
16
|
require('./chunk-BUUUWQMB.cjs');
|
|
17
|
-
require('./chunk-
|
|
18
|
-
var
|
|
17
|
+
require('./chunk-OI6RHLGC.cjs');
|
|
18
|
+
var chunkN6NUMXAJ_cjs = require('./chunk-N6NUMXAJ.cjs');
|
|
19
19
|
require('./chunk-4JBHSLQO.cjs');
|
|
20
|
-
require('./chunk-
|
|
21
|
-
require('./chunk-
|
|
22
|
-
var
|
|
23
|
-
require('./chunk-
|
|
20
|
+
require('./chunk-RAACTJ7C.cjs');
|
|
21
|
+
require('./chunk-3R4ZCQAZ.cjs');
|
|
22
|
+
var chunkEQMLJ52C_cjs = require('./chunk-EQMLJ52C.cjs');
|
|
23
|
+
require('./chunk-3YYDHUNH.cjs');
|
|
24
24
|
require('./chunk-BBZYXVLZ.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
27
|
-
require('./chunk-
|
|
28
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-OKLYRPKL.cjs');
|
|
26
|
+
require('./chunk-CZHPR2G7.cjs');
|
|
27
|
+
require('./chunk-ADVZIC43.cjs');
|
|
28
|
+
require('./chunk-E3OCRJU6.cjs');
|
|
29
29
|
require('./chunk-2RW7K6FN.cjs');
|
|
30
30
|
require('./chunk-MUUQ2WFJ.cjs');
|
|
31
31
|
require('./chunk-6JSIEDKL.cjs');
|
|
@@ -33,29 +33,30 @@ require('./chunk-B4YA6BRS.cjs');
|
|
|
33
33
|
require('./chunk-NINIJCHU.cjs');
|
|
34
34
|
require('./chunk-L5YO6PWL.cjs');
|
|
35
35
|
require('./chunk-VJ26EKGJ.cjs');
|
|
36
|
-
require('./chunk-
|
|
37
|
-
require('./chunk-
|
|
38
|
-
require('./chunk-
|
|
39
|
-
require('./chunk-
|
|
40
|
-
require('./chunk-
|
|
41
|
-
require('./chunk-
|
|
36
|
+
require('./chunk-KNZU4YO5.cjs');
|
|
37
|
+
require('./chunk-NFATC6ZF.cjs');
|
|
38
|
+
require('./chunk-T6QUCG7L.cjs');
|
|
39
|
+
require('./chunk-ECPL5RV6.cjs');
|
|
40
|
+
require('./chunk-SDJYLCJK.cjs');
|
|
41
|
+
require('./chunk-QLAWEGTZ.cjs');
|
|
42
42
|
var chunkYLQQX5W2_cjs = require('./chunk-YLQQX5W2.cjs');
|
|
43
|
-
require('./chunk-
|
|
43
|
+
require('./chunk-7HQVDLFI.cjs');
|
|
44
44
|
var chunkWJVHMTKB_cjs = require('./chunk-WJVHMTKB.cjs');
|
|
45
|
-
var
|
|
46
|
-
require('./chunk-
|
|
47
|
-
require('./chunk-
|
|
45
|
+
var chunk2CFEET3Y_cjs = require('./chunk-2CFEET3Y.cjs');
|
|
46
|
+
require('./chunk-RTLUZKDL.cjs');
|
|
47
|
+
require('./chunk-AMYY3JHQ.cjs');
|
|
48
48
|
var chunkVYHJZVL5_cjs = require('./chunk-VYHJZVL5.cjs');
|
|
49
|
-
var
|
|
50
|
-
require('./chunk-
|
|
49
|
+
var chunkT6ZCG5AP_cjs = require('./chunk-T6ZCG5AP.cjs');
|
|
50
|
+
require('./chunk-XK54DTRF.cjs');
|
|
51
51
|
require('./chunk-C6Y6CWYD.cjs');
|
|
52
|
-
require('./chunk-
|
|
53
|
-
require('./chunk-
|
|
54
|
-
require('./chunk-
|
|
55
|
-
|
|
56
|
-
var
|
|
57
|
-
var
|
|
52
|
+
require('./chunk-FUASIT3E.cjs');
|
|
53
|
+
require('./chunk-YTO5BRBD.cjs');
|
|
54
|
+
require('./chunk-VKJ7V7EB.cjs');
|
|
55
|
+
require('./chunk-44IISBRZ.cjs');
|
|
56
|
+
var chunk2YGIBOUH_cjs = require('./chunk-2YGIBOUH.cjs');
|
|
57
|
+
var chunkSXSPMRSV_cjs = require('./chunk-SXSPMRSV.cjs');
|
|
58
58
|
var crypto = require('crypto');
|
|
59
|
+
var zod = require('zod');
|
|
59
60
|
var promises = require('fs/promises');
|
|
60
61
|
var path = require('path');
|
|
61
62
|
var fs = require('fs');
|
|
@@ -63,8 +64,8 @@ var fs = require('fs');
|
|
|
63
64
|
// src/agent-factory.ts
|
|
64
65
|
function createAgentFactory(common) {
|
|
65
66
|
return {
|
|
66
|
-
forSession: (agentId, overrides) =>
|
|
67
|
-
getOrCreate: (agentId, overrides) =>
|
|
67
|
+
forSession: (agentId, overrides) => chunkXI4L45SS_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
|
|
68
|
+
getOrCreate: (agentId, overrides) => chunkXI4L45SS_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
|
|
68
69
|
};
|
|
69
70
|
}
|
|
70
71
|
function mergeAgentOptions(common, overrides, agentId) {
|
|
@@ -103,6 +104,39 @@ var AgentFactory = class {
|
|
|
103
104
|
}
|
|
104
105
|
};
|
|
105
106
|
|
|
107
|
+
// src/approval-policy.ts
|
|
108
|
+
var BY_MODE = {
|
|
109
|
+
ask: { outcome: "ask", reason: "mode-ask" },
|
|
110
|
+
"never-ask": { outcome: "allow", reason: "mode-never-ask" },
|
|
111
|
+
"refuse-all": { outcome: "deny", reason: "mode-refuse-all" }
|
|
112
|
+
};
|
|
113
|
+
function decideApproval(input) {
|
|
114
|
+
const { tool } = input;
|
|
115
|
+
if ((input.denied ?? []).includes(tool)) {
|
|
116
|
+
return { outcome: "deny", reason: "explicitly-denied", tool };
|
|
117
|
+
}
|
|
118
|
+
if ((input.allowed ?? []).includes(tool)) {
|
|
119
|
+
return { outcome: "allow", reason: "explicitly-allowed", tool };
|
|
120
|
+
}
|
|
121
|
+
const fromMode = BY_MODE[input.mode];
|
|
122
|
+
return { outcome: fromMode.outcome, reason: fromMode.reason, tool };
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// src/blast-radius.ts
|
|
126
|
+
function evaluateBlastRadius(input) {
|
|
127
|
+
const { scope, reversible } = input.action;
|
|
128
|
+
if (scope.length === 0) {
|
|
129
|
+
return { outcome: "refuse", reason: "scope-undeclared", scope };
|
|
130
|
+
}
|
|
131
|
+
if (!input.granted.includes(scope)) {
|
|
132
|
+
return { outcome: "refuse", reason: "scope-not-granted", scope };
|
|
133
|
+
}
|
|
134
|
+
if (!reversible && !(input.irreversibleAllowed ?? []).includes(scope)) {
|
|
135
|
+
return { outcome: "require-approval", reason: "irreversible", scope };
|
|
136
|
+
}
|
|
137
|
+
return { outcome: "allow", reason: "within-granted-scope", scope };
|
|
138
|
+
}
|
|
139
|
+
|
|
106
140
|
// src/internal/budget/calendar-window.ts
|
|
107
141
|
function startOfDayUtc(now = /* @__PURE__ */ new Date()) {
|
|
108
142
|
return new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate()));
|
|
@@ -185,12 +219,12 @@ var NAME_GRAMMAR = /^[a-z0-9][a-z0-9_-]*$/;
|
|
|
185
219
|
var registry = /* @__PURE__ */ new Map();
|
|
186
220
|
function validateBudgetName(name) {
|
|
187
221
|
if (typeof name !== "string" || name.length === 0) {
|
|
188
|
-
throw new
|
|
222
|
+
throw new chunk2YGIBOUH_cjs.ConfigurationError("Budget name must be a non-empty string", {
|
|
189
223
|
code: "invalid_budget_name"
|
|
190
224
|
});
|
|
191
225
|
}
|
|
192
226
|
if (!NAME_GRAMMAR.test(name)) {
|
|
193
|
-
throw new
|
|
227
|
+
throw new chunk2YGIBOUH_cjs.ConfigurationError(
|
|
194
228
|
`Budget name "${name}" must match ^[a-z0-9][a-z0-9_-]*$ (lowercase + dash/underscore, start alphanumeric)`,
|
|
195
229
|
{ code: "invalid_budget_name" }
|
|
196
230
|
);
|
|
@@ -199,7 +233,7 @@ function validateBudgetName(name) {
|
|
|
199
233
|
function createBudget(opts) {
|
|
200
234
|
validateBudgetName(opts.name);
|
|
201
235
|
if (registry.has(opts.name)) {
|
|
202
|
-
throw new
|
|
236
|
+
throw new chunk2YGIBOUH_cjs.ConfigurationError(`Budget "${opts.name}" already exists`, {
|
|
203
237
|
code: "invalid_budget_name"
|
|
204
238
|
});
|
|
205
239
|
}
|
|
@@ -263,7 +297,7 @@ function preflightCheck(name, estimatedUsd) {
|
|
|
263
297
|
for (const lim of opts.limits) {
|
|
264
298
|
const currentSpent = spentIn(opts.name, lim.window);
|
|
265
299
|
if (currentSpent + estimatedUsd > lim.limitUsd) {
|
|
266
|
-
throw new
|
|
300
|
+
throw new chunk2YGIBOUH_cjs.BudgetExceededError({
|
|
267
301
|
budgetName: opts.name,
|
|
268
302
|
window: lim.window,
|
|
269
303
|
spentUsd: currentSpent + estimatedUsd,
|
|
@@ -276,7 +310,7 @@ function preflightCheck(name, estimatedUsd) {
|
|
|
276
310
|
async function chargeAndCheckThresholds(name, actualUsd) {
|
|
277
311
|
const opts = getBudgetOptionsRaw(name);
|
|
278
312
|
if (opts === void 0) {
|
|
279
|
-
|
|
313
|
+
chunkSXSPMRSV_cjs.diag(
|
|
280
314
|
`[budget] charge for deleted budget "${name}" is a no-op (was the budget removed during in-flight send?)
|
|
281
315
|
`
|
|
282
316
|
);
|
|
@@ -319,14 +353,14 @@ async function dispatchThreshold(opts, window, spentUsd, limitUsd, threshold) {
|
|
|
319
353
|
});
|
|
320
354
|
} catch (err) {
|
|
321
355
|
const msg = err instanceof Error ? err.message : String(err);
|
|
322
|
-
|
|
356
|
+
chunkSXSPMRSV_cjs.diag(`[budget] onThreshold callback threw: ${msg}
|
|
323
357
|
`);
|
|
324
358
|
}
|
|
325
359
|
}
|
|
326
360
|
async function dispatchExceed(opts, window, spentUsd, limitUsd, mode) {
|
|
327
361
|
if (opts.onExceed === void 0) {
|
|
328
362
|
if (mode === "warn") {
|
|
329
|
-
|
|
363
|
+
chunkSXSPMRSV_cjs.diag(
|
|
330
364
|
`[budget] "${opts.name}" exceeded ${window} limit: $${spentUsd.toFixed(4)} > $${limitUsd.toFixed(4)}
|
|
331
365
|
`
|
|
332
366
|
);
|
|
@@ -343,7 +377,7 @@ async function dispatchExceed(opts, window, spentUsd, limitUsd, mode) {
|
|
|
343
377
|
});
|
|
344
378
|
} catch (err) {
|
|
345
379
|
const msg = err instanceof Error ? err.message : String(err);
|
|
346
|
-
|
|
380
|
+
chunkSXSPMRSV_cjs.diag(`[budget] onExceed callback threw: ${msg}
|
|
347
381
|
`);
|
|
348
382
|
}
|
|
349
383
|
}
|
|
@@ -568,6 +602,18 @@ var Skill = class {
|
|
|
568
602
|
return createSkill(spec);
|
|
569
603
|
}
|
|
570
604
|
};
|
|
605
|
+
function describeCredential(input) {
|
|
606
|
+
const secret = (input.value ?? "").trim();
|
|
607
|
+
if (secret.length === 0) {
|
|
608
|
+
return { provider: input.provider, present: false, source: input.source };
|
|
609
|
+
}
|
|
610
|
+
return {
|
|
611
|
+
provider: input.provider,
|
|
612
|
+
present: true,
|
|
613
|
+
source: input.source,
|
|
614
|
+
fingerprint: crypto.createHash("sha256").update(secret).digest("hex").slice(0, 8)
|
|
615
|
+
};
|
|
616
|
+
}
|
|
571
617
|
|
|
572
618
|
// src/define-provider.ts
|
|
573
619
|
function defineProvider(profile, opts) {
|
|
@@ -593,8 +639,8 @@ var Provider = class _Provider {
|
|
|
593
639
|
* `.plugins(Provider.builtins())` once, then pick a `provider/model` id. @public
|
|
594
640
|
*/
|
|
595
641
|
static builtins() {
|
|
596
|
-
|
|
597
|
-
return
|
|
642
|
+
chunkT6ZCG5AP_cjs.registerBuiltins();
|
|
643
|
+
return chunkT6ZCG5AP_cjs.listProviders().map((profile) => defineProvider(profile));
|
|
598
644
|
}
|
|
599
645
|
/**
|
|
600
646
|
* The builtin serving `modelId`, or `undefined` when none does.
|
|
@@ -708,7 +754,7 @@ var EventBus = class {
|
|
|
708
754
|
} catch (cause) {
|
|
709
755
|
this.#handlerErrorCount += 1;
|
|
710
756
|
const message = cause instanceof Error ? cause.message : String(cause);
|
|
711
|
-
|
|
757
|
+
chunkSXSPMRSV_cjs.diag(`[theokit-sdk] event-bus: handler for "${String(event)}" threw: ${message}
|
|
712
758
|
`);
|
|
713
759
|
}
|
|
714
760
|
}
|
|
@@ -731,7 +777,7 @@ function runGoalLoop(agent, goal, options, depsOverride) {
|
|
|
731
777
|
async function* wrap() {
|
|
732
778
|
const { runUntilImpl } = await import('./run-until-U2B5FJJI.cjs');
|
|
733
779
|
const deps = depsOverride ?? await (async () => {
|
|
734
|
-
const { judgeCallImpl } = await import('./judge-call-
|
|
780
|
+
const { judgeCallImpl } = await import('./judge-call-GVIJWQVE.cjs');
|
|
735
781
|
const { getAgentFacade } = await import('./agent-factory-registry-UU46BUMU.cjs');
|
|
736
782
|
const create = getAgentFacade().create;
|
|
737
783
|
return {
|
|
@@ -932,7 +978,7 @@ var JobQueue = class {
|
|
|
932
978
|
};
|
|
933
979
|
|
|
934
980
|
// src/layer-fold.ts
|
|
935
|
-
var LayerOrderError = class extends
|
|
981
|
+
var LayerOrderError = class extends chunk2YGIBOUH_cjs.TheokitAgentError {
|
|
936
982
|
name = "LayerOrderError";
|
|
937
983
|
};
|
|
938
984
|
function verifyLayerOrdering(layers) {
|
|
@@ -967,7 +1013,7 @@ function foldLayers(entries, accumulatingKeys = []) {
|
|
|
967
1013
|
return combined;
|
|
968
1014
|
}
|
|
969
1015
|
function diaryPath(cwd) {
|
|
970
|
-
return path.join(
|
|
1016
|
+
return path.join(chunkEQMLJ52C_cjs.memoryDir(cwd), "dream-diary.md");
|
|
971
1017
|
}
|
|
972
1018
|
function renderDiaryEntry(entry) {
|
|
973
1019
|
const stamp = new Date(entry.timestampMs).toISOString();
|
|
@@ -994,7 +1040,7 @@ async function appendDiaryEntry(cwd, entry) {
|
|
|
994
1040
|
}
|
|
995
1041
|
const next = `${raw.endsWith("\n") ? raw : `${raw}
|
|
996
1042
|
`}${renderDiaryEntry(entry)}`;
|
|
997
|
-
await
|
|
1043
|
+
await chunk2CFEET3Y_cjs.replaceFileAtomic(path, next);
|
|
998
1044
|
}
|
|
999
1045
|
function entryHash(entry) {
|
|
1000
1046
|
return crypto.createHash("sha256").update(
|
|
@@ -1114,7 +1160,7 @@ async function runInner(options) {
|
|
|
1114
1160
|
const now = options.now ?? Date.now;
|
|
1115
1161
|
const timestampMs = now();
|
|
1116
1162
|
try {
|
|
1117
|
-
const facts = await
|
|
1163
|
+
const facts = await chunkEQMLJ52C_cjs.readFactsFromMarkdown(options.cwd);
|
|
1118
1164
|
if (facts.length === 0) {
|
|
1119
1165
|
return emptyResult("skipped");
|
|
1120
1166
|
}
|
|
@@ -1141,19 +1187,19 @@ async function runInner(options) {
|
|
|
1141
1187
|
return result;
|
|
1142
1188
|
} catch (cause) {
|
|
1143
1189
|
const message = cause instanceof Error ? cause.message : String(cause);
|
|
1144
|
-
|
|
1190
|
+
chunkSXSPMRSV_cjs.diag(`[theokit-sdk] dreaming sweep failed: ${message}
|
|
1145
1191
|
`);
|
|
1146
1192
|
return emptyResult("error");
|
|
1147
1193
|
}
|
|
1148
1194
|
}
|
|
1149
1195
|
async function writeConsolidatedNotes(cwd, clusters, timestampMs) {
|
|
1150
1196
|
if (clusters.length === 0) return 0;
|
|
1151
|
-
const notesDir = path.join(
|
|
1197
|
+
const notesDir = path.join(chunkEQMLJ52C_cjs.memoryDir(cwd), "notes");
|
|
1152
1198
|
await promises.mkdir(notesDir, { recursive: true });
|
|
1153
1199
|
const isoSlug = new Date(timestampMs).toISOString().replace(/[^\dT]/g, "-");
|
|
1154
1200
|
const file = path.join(notesDir, `dreamed-${isoSlug}.md`);
|
|
1155
1201
|
const body = deepPhase(clusters, timestampMs);
|
|
1156
|
-
await
|
|
1202
|
+
await chunk2CFEET3Y_cjs.replaceFileAtomic(file, body);
|
|
1157
1203
|
return 1;
|
|
1158
1204
|
}
|
|
1159
1205
|
function emptyResult(status) {
|
|
@@ -1214,8 +1260,8 @@ var Memory = {
|
|
|
1214
1260
|
openArgs.embedding = await resolveEmbedding(opts.embedding, peer.MEMORY_EMBEDDING_ADAPTERS);
|
|
1215
1261
|
return await peer.IndexManager.open(openArgs);
|
|
1216
1262
|
}
|
|
1217
|
-
const { IndexManager } = await import('./index-manager-
|
|
1218
|
-
openArgs.embedding = await resolveEmbedding(opts.embedding,
|
|
1263
|
+
const { IndexManager } = await import('./index-manager-HGGL4DD5.cjs');
|
|
1264
|
+
openArgs.embedding = await resolveEmbedding(opts.embedding, chunkXI4L45SS_cjs.MEMORY_EMBEDDING_ADAPTERS);
|
|
1219
1265
|
return await IndexManager.open(openArgs);
|
|
1220
1266
|
},
|
|
1221
1267
|
/**
|
|
@@ -1226,7 +1272,7 @@ var Memory = {
|
|
|
1226
1272
|
*/
|
|
1227
1273
|
async runDreamingSweep(opts) {
|
|
1228
1274
|
const peer = await tryLoadSdkMemoryPeer();
|
|
1229
|
-
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS :
|
|
1275
|
+
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkXI4L45SS_cjs.MEMORY_EMBEDDING_ADAPTERS;
|
|
1230
1276
|
const sweepArgs = await buildDreamingSweepArgs(opts, catalog);
|
|
1231
1277
|
const result = peer !== null ? (
|
|
1232
1278
|
// biome-ignore lint/suspicious/noExplicitAny: peer is dynamically loaded — structural compat ensured by sdk-memory
|
|
@@ -1284,7 +1330,7 @@ function extractRawId(id, expectedAdapterId) {
|
|
|
1284
1330
|
const prefix = `${expectedAdapterId}:`;
|
|
1285
1331
|
if (!id.startsWith(prefix)) {
|
|
1286
1332
|
const sourcePrefix = id.split(":", 1)[0] ?? "<malformed>";
|
|
1287
|
-
throw new
|
|
1333
|
+
throw new chunk2YGIBOUH_cjs.MemoryAdapterError(
|
|
1288
1334
|
`MemoryId belongs to a different adapter (expected "${expectedAdapterId}", got "${sourcePrefix}")`,
|
|
1289
1335
|
{ adapterId: expectedAdapterId, code: "invalid_input" }
|
|
1290
1336
|
);
|
|
@@ -1292,9 +1338,9 @@ function extractRawId(id, expectedAdapterId) {
|
|
|
1292
1338
|
return id.slice(prefix.length);
|
|
1293
1339
|
}
|
|
1294
1340
|
async function readAllSqliteFacts(cwd) {
|
|
1295
|
-
const dbPath =
|
|
1341
|
+
const dbPath = chunkEQMLJ52C_cjs.defaultIndexPath(cwd);
|
|
1296
1342
|
if (!fs.existsSync(dbPath)) return [];
|
|
1297
|
-
const db = await
|
|
1343
|
+
const db = await chunkEQMLJ52C_cjs.openMemoryDb({ filePath: dbPath });
|
|
1298
1344
|
try {
|
|
1299
1345
|
const stmt = db.prepare("SELECT id, path, source, start_line, end_line, text FROM chunks");
|
|
1300
1346
|
const rows = stmt.all();
|
|
@@ -1313,12 +1359,12 @@ function nfcEqual(a, b) {
|
|
|
1313
1359
|
}
|
|
1314
1360
|
async function migrateSqliteToLance(opts) {
|
|
1315
1361
|
const cwd = opts.cwd;
|
|
1316
|
-
const finalPath =
|
|
1362
|
+
const finalPath = chunkEQMLJ52C_cjs.lanceStoragePath(cwd);
|
|
1317
1363
|
const newPath = path.join(cwd, ".theokit", "memory", "lance-new");
|
|
1318
1364
|
const rawLog = opts.logger ?? ((m) => console.log(m));
|
|
1319
|
-
const log = (m) => rawLog(
|
|
1365
|
+
const log = (m) => rawLog(chunkSXSPMRSV_cjs.redactSecrets(m));
|
|
1320
1366
|
if (fs.existsSync(finalPath)) {
|
|
1321
|
-
throw new
|
|
1367
|
+
throw new chunk2YGIBOUH_cjs.ConfigurationError(
|
|
1322
1368
|
`Destination already exists: ${finalPath}. Remove it manually (\`rm -rf ${finalPath}\`) and re-run.`,
|
|
1323
1369
|
{ code: "migration_destination_exists" }
|
|
1324
1370
|
);
|
|
@@ -1357,7 +1403,7 @@ async function migrateSqliteToLance(opts) {
|
|
|
1357
1403
|
};
|
|
1358
1404
|
fs.mkdirSync(newPath, { recursive: true });
|
|
1359
1405
|
log(`Writing Lance index to ${newPath} ...`);
|
|
1360
|
-
const lance = await
|
|
1406
|
+
const lance = await chunkEQMLJ52C_cjs.LanceIndex.open({
|
|
1361
1407
|
cwd,
|
|
1362
1408
|
embedding: placeholderEmbedding,
|
|
1363
1409
|
storagePath: newPath
|
|
@@ -1572,7 +1618,7 @@ function loadProjectEnv(env = process.env, load = typeof process.loadEnvFile ===
|
|
|
1572
1618
|
}
|
|
1573
1619
|
|
|
1574
1620
|
// src/reap-plan.ts
|
|
1575
|
-
var RetentionPolicyError = class extends
|
|
1621
|
+
var RetentionPolicyError = class extends chunk2YGIBOUH_cjs.TheokitAgentError {
|
|
1576
1622
|
name = "RetentionPolicyError";
|
|
1577
1623
|
};
|
|
1578
1624
|
function assertPolicy(retention) {
|
|
@@ -1696,7 +1742,7 @@ var Security = class {
|
|
|
1696
1742
|
* // → "[bot] received: please remember sk-abc...xyz1"
|
|
1697
1743
|
*/
|
|
1698
1744
|
static redact(text, opts) {
|
|
1699
|
-
return
|
|
1745
|
+
return chunkSXSPMRSV_cjs.redactSecrets(text, opts);
|
|
1700
1746
|
}
|
|
1701
1747
|
/**
|
|
1702
1748
|
* Register a custom redaction pattern. Additive — built-in patterns
|
|
@@ -1718,7 +1764,7 @@ var Security = class {
|
|
|
1718
1764
|
* // → text containing "MYORG-AAAA...AAAA" now masks like a builtin.
|
|
1719
1765
|
*/
|
|
1720
1766
|
static addPattern(re) {
|
|
1721
|
-
|
|
1767
|
+
chunkSXSPMRSV_cjs.addPattern(re);
|
|
1722
1768
|
}
|
|
1723
1769
|
};
|
|
1724
1770
|
|
|
@@ -1755,6 +1801,28 @@ function applySecurityFloor(input) {
|
|
|
1755
1801
|
return input.layers[input.override] ?? tightenOnly(input, baseline(input));
|
|
1756
1802
|
}
|
|
1757
1803
|
|
|
1804
|
+
// src/session-guard.ts
|
|
1805
|
+
var LiveSessionError = class extends chunk2YGIBOUH_cjs.TheokitAgentError {
|
|
1806
|
+
name = "LiveSessionError";
|
|
1807
|
+
sessionId;
|
|
1808
|
+
reason;
|
|
1809
|
+
constructor(sessionId, reason) {
|
|
1810
|
+
super(
|
|
1811
|
+
reason === "session-is-live" ? `refusing to destroy session ${sessionId}: it is live \u2014 another process is probably still appending to it. Switch to another session first.` : `refusing to destroy session ${sessionId}: the set of live sessions could not be determined, so this cannot be shown to be safe. Resolve that before deleting.`
|
|
1812
|
+
);
|
|
1813
|
+
this.sessionId = sessionId;
|
|
1814
|
+
this.reason = reason;
|
|
1815
|
+
}
|
|
1816
|
+
};
|
|
1817
|
+
function guardSessionDestruction(sessionId, live) {
|
|
1818
|
+
if (live === void 0) {
|
|
1819
|
+
throw new LiveSessionError(sessionId, "liveness-undetermined");
|
|
1820
|
+
}
|
|
1821
|
+
if (live.includes(sessionId)) {
|
|
1822
|
+
throw new LiveSessionError(sessionId, "session-is-live");
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1758
1826
|
// src/session-scope.ts
|
|
1759
1827
|
function scopedConversationId(scope, id) {
|
|
1760
1828
|
return `${scope}__${id}`;
|
|
@@ -1768,7 +1836,7 @@ function isBuiltAgent(m) {
|
|
|
1768
1836
|
return typeof m.send === "function";
|
|
1769
1837
|
}
|
|
1770
1838
|
async function materialize(def, index) {
|
|
1771
|
-
const { Agent: Agent2 } = await import('./agent-
|
|
1839
|
+
const { Agent: Agent2 } = await import('./agent-2KSLHB6B.cjs');
|
|
1772
1840
|
return Agent2.create({
|
|
1773
1841
|
// `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
|
|
1774
1842
|
// here means "declare nothing and let the default apply" — forwarding the literal would create
|
|
@@ -1782,12 +1850,12 @@ async function materialize(def, index) {
|
|
|
1782
1850
|
function createSquad(options) {
|
|
1783
1851
|
const { agents } = options;
|
|
1784
1852
|
if (!Array.isArray(agents) || agents.length === 0) {
|
|
1785
|
-
throw new
|
|
1853
|
+
throw new chunk2YGIBOUH_cjs.ConfigurationError("createSquad requires a non-empty `agents` array", {
|
|
1786
1854
|
code: "invalid_squad"
|
|
1787
1855
|
});
|
|
1788
1856
|
}
|
|
1789
1857
|
if (options.process !== void 0 && options.process !== "sequential") {
|
|
1790
|
-
throw new
|
|
1858
|
+
throw new chunk2YGIBOUH_cjs.ConfigurationError(
|
|
1791
1859
|
`createSquad only supports process "sequential"; for manager\u2192worker delegation use subagents or @theokit/sdk-handoff`,
|
|
1792
1860
|
{ code: "squad_process_unsupported" }
|
|
1793
1861
|
);
|
|
@@ -1800,13 +1868,13 @@ function createSquad(options) {
|
|
|
1800
1868
|
};
|
|
1801
1869
|
}
|
|
1802
1870
|
async function buildPipeline(agents, nome) {
|
|
1803
|
-
let builder =
|
|
1871
|
+
let builder = chunkZ5U2JGEK_cjs.Workflow.create({ name: nome ?? "squad" });
|
|
1804
1872
|
for (let i = 0; i < agents.length; i++) {
|
|
1805
1873
|
const member = agents[i];
|
|
1806
1874
|
if (member === void 0) continue;
|
|
1807
1875
|
const agent = isBuiltAgent(member) ? member : await materialize(member, i);
|
|
1808
1876
|
const opts = i > 0 ? { origin: { kind: "peer", from: `agent-${i - 1}` } } : void 0;
|
|
1809
|
-
builder = builder.then(
|
|
1877
|
+
builder = builder.then(chunkZ5U2JGEK_cjs.agentStep(`agent-${i}`, agent, (prev) => String(prev), opts));
|
|
1810
1878
|
}
|
|
1811
1879
|
return builder.commit();
|
|
1812
1880
|
}
|
|
@@ -1830,7 +1898,7 @@ var Task = class {
|
|
|
1830
1898
|
* (D369), and retention (D373).
|
|
1831
1899
|
*/
|
|
1832
1900
|
static configure(opts) {
|
|
1833
|
-
|
|
1901
|
+
chunk6DCTL32L_cjs.configure(opts);
|
|
1834
1902
|
}
|
|
1835
1903
|
/**
|
|
1836
1904
|
* Submit a unit of asynchronous work to the registry.
|
|
@@ -1855,7 +1923,7 @@ var Task = class {
|
|
|
1855
1923
|
* a semaphore slot and without invoking `work`.
|
|
1856
1924
|
*/
|
|
1857
1925
|
static async submit(kind, work, options = {}) {
|
|
1858
|
-
return
|
|
1926
|
+
return chunk6DCTL32L_cjs.submit({
|
|
1859
1927
|
kind,
|
|
1860
1928
|
work,
|
|
1861
1929
|
...options.id !== void 0 ? { id: options.id } : {},
|
|
@@ -1866,11 +1934,11 @@ var Task = class {
|
|
|
1866
1934
|
}
|
|
1867
1935
|
/** Returns matching handles, capped at `filter.limit ?? 100`. */
|
|
1868
1936
|
static list(filter = {}) {
|
|
1869
|
-
return
|
|
1937
|
+
return chunk6DCTL32L_cjs.list(filter);
|
|
1870
1938
|
}
|
|
1871
1939
|
/** Returns a single handle by id, or `undefined` if unknown / evicted. */
|
|
1872
1940
|
static get(id) {
|
|
1873
|
-
return
|
|
1941
|
+
return chunk6DCTL32L_cjs.get(id);
|
|
1874
1942
|
}
|
|
1875
1943
|
/**
|
|
1876
1944
|
* Idempotent cancel (D365). Returns:
|
|
@@ -1883,7 +1951,7 @@ var Task = class {
|
|
|
1883
1951
|
* Never throws.
|
|
1884
1952
|
*/
|
|
1885
1953
|
static cancel(id, reason) {
|
|
1886
|
-
return
|
|
1954
|
+
return chunk6DCTL32L_cjs.cancel(id, reason);
|
|
1887
1955
|
}
|
|
1888
1956
|
/**
|
|
1889
1957
|
* Subscribe to a task's event stream. The returned `AsyncIterable<TaskEvent>`
|
|
@@ -1897,7 +1965,7 @@ var Task = class {
|
|
|
1897
1965
|
* Throws `TaskNotFoundError` if the id is unknown or has been evicted.
|
|
1898
1966
|
*/
|
|
1899
1967
|
static subscribe(id) {
|
|
1900
|
-
return
|
|
1968
|
+
return chunk6DCTL32L_cjs.subscribe(id);
|
|
1901
1969
|
}
|
|
1902
1970
|
};
|
|
1903
1971
|
|
|
@@ -1910,7 +1978,7 @@ var FIXTURE_USER = {
|
|
|
1910
1978
|
};
|
|
1911
1979
|
var FIXTURE_MODELS = [
|
|
1912
1980
|
{
|
|
1913
|
-
id:
|
|
1981
|
+
id: chunkXI4L45SS_cjs.DEFAULT_AGENTIC_MODEL_ID,
|
|
1914
1982
|
name: "Gemini 2.0 Flash",
|
|
1915
1983
|
displayName: "Gemini 2.0 Flash",
|
|
1916
1984
|
parameters: [
|
|
@@ -1986,20 +2054,20 @@ async function listLocalModelsViaOpenAiCompat(baseUrl) {
|
|
|
1986
2054
|
try {
|
|
1987
2055
|
response = await fetch(url, { method: "GET" });
|
|
1988
2056
|
} catch (fetchErr) {
|
|
1989
|
-
const mapped =
|
|
2057
|
+
const mapped = chunkN6NUMXAJ_cjs.mapOllamaTransportError({
|
|
1990
2058
|
providerId: "ollama",
|
|
1991
2059
|
cause: fetchErr,
|
|
1992
2060
|
endpoint: "/v1/models"
|
|
1993
2061
|
});
|
|
1994
2062
|
if (mapped !== void 0) throw mapped;
|
|
1995
|
-
throw new
|
|
2063
|
+
throw new chunk2YGIBOUH_cjs.ConfigurationError(
|
|
1996
2064
|
`Failed to reach local provider at ${baseUrl}: ${fetchErr.message}`,
|
|
1997
2065
|
{ code: "local_provider_unreachable" }
|
|
1998
2066
|
);
|
|
1999
2067
|
}
|
|
2000
2068
|
if (!response.ok) {
|
|
2001
|
-
const body = await
|
|
2002
|
-
const mapped =
|
|
2069
|
+
const body = await chunkN6NUMXAJ_cjs.readErrorResponseBody(response);
|
|
2070
|
+
const mapped = chunkN6NUMXAJ_cjs.mapOllamaHttpError({
|
|
2003
2071
|
providerId: "ollama",
|
|
2004
2072
|
status: response.status,
|
|
2005
2073
|
body,
|
|
@@ -2007,7 +2075,7 @@ async function listLocalModelsViaOpenAiCompat(baseUrl) {
|
|
|
2007
2075
|
endpoint: "/v1/models"
|
|
2008
2076
|
});
|
|
2009
2077
|
if (mapped !== void 0) throw mapped;
|
|
2010
|
-
throw new
|
|
2078
|
+
throw new chunk2YGIBOUH_cjs.ConfigurationError(
|
|
2011
2079
|
`Local provider at ${baseUrl} returned HTTP ${response.status} on /v1/models`,
|
|
2012
2080
|
{ code: "local_provider_http_error" }
|
|
2013
2081
|
);
|
|
@@ -2062,9 +2130,9 @@ var Theokit = class {
|
|
|
2062
2130
|
});
|
|
2063
2131
|
},
|
|
2064
2132
|
capabilities: (providerOrModelId) => {
|
|
2065
|
-
|
|
2133
|
+
chunkT6ZCG5AP_cjs.registerBuiltins();
|
|
2066
2134
|
const providerId = providerOrModelId.includes("/") ? providerOrModelId.split("/")[0] ?? providerOrModelId : providerOrModelId;
|
|
2067
|
-
return
|
|
2135
|
+
return chunkT6ZCG5AP_cjs.getCatalogCapabilities(providerId);
|
|
2068
2136
|
}
|
|
2069
2137
|
};
|
|
2070
2138
|
/**
|
|
@@ -2103,8 +2171,8 @@ var Theokit = class {
|
|
|
2103
2171
|
*/
|
|
2104
2172
|
static inspect = {
|
|
2105
2173
|
builtinProviders: () => {
|
|
2106
|
-
|
|
2107
|
-
return
|
|
2174
|
+
chunkT6ZCG5AP_cjs.registerBuiltins();
|
|
2175
|
+
return chunkT6ZCG5AP_cjs.listProviders().map((p) => ({
|
|
2108
2176
|
name: p.name,
|
|
2109
2177
|
apiMode: p.apiMode,
|
|
2110
2178
|
authType: p.authType,
|
|
@@ -2113,7 +2181,7 @@ var Theokit = class {
|
|
|
2113
2181
|
envVars: p.envVars
|
|
2114
2182
|
}));
|
|
2115
2183
|
},
|
|
2116
|
-
embeddingAdapters: () => Object.entries(
|
|
2184
|
+
embeddingAdapters: () => Object.entries(chunkXI4L45SS_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
|
|
2117
2185
|
id,
|
|
2118
2186
|
transport: adapter.transport,
|
|
2119
2187
|
defaultModel: adapter.defaultModel
|
|
@@ -2130,9 +2198,9 @@ var Theokit = class {
|
|
|
2130
2198
|
// and may be promoted onto Theokit once the agent.ts cycle is broken.
|
|
2131
2199
|
};
|
|
2132
2200
|
async function maybeListLocalModels(providerName) {
|
|
2133
|
-
|
|
2134
|
-
await
|
|
2135
|
-
const profile =
|
|
2201
|
+
chunkT6ZCG5AP_cjs.registerBuiltins();
|
|
2202
|
+
await chunkN6NUMXAJ_cjs.discoverProviderPlugins();
|
|
2203
|
+
const profile = chunkT6ZCG5AP_cjs.getProviderProfile(providerName);
|
|
2136
2204
|
if (profile === void 0) return void 0;
|
|
2137
2205
|
if (profile.authType !== "none") return void 0;
|
|
2138
2206
|
const baseUrl = resolveLocalProviderBaseUrl(profile.name, profile.baseUrl);
|
|
@@ -2145,17 +2213,34 @@ function resolveLocalProviderBaseUrl(providerName, fallback) {
|
|
|
2145
2213
|
return fallback;
|
|
2146
2214
|
}
|
|
2147
2215
|
async function executeCatalogRequest(request) {
|
|
2148
|
-
const apiKey =
|
|
2216
|
+
const apiKey = chunkXI4L45SS_cjs.resolveApiKey(request.apiKey);
|
|
2149
2217
|
if (apiKey === void 0) {
|
|
2150
|
-
throw new
|
|
2218
|
+
throw new chunk2YGIBOUH_cjs.AuthenticationError("Missing API key", { code: "missing_api_key" });
|
|
2151
2219
|
}
|
|
2152
|
-
if (
|
|
2220
|
+
if (chunkN6NUMXAJ_cjs.shouldUseFixtureMode(apiKey)) {
|
|
2153
2221
|
return request.fixture;
|
|
2154
2222
|
}
|
|
2155
|
-
if (!
|
|
2156
|
-
throw new
|
|
2223
|
+
if (!chunkN6NUMXAJ_cjs.isFixtureApiKey(apiKey) && process.env.THEOKIT_API_BASE_URL === void 0) {
|
|
2224
|
+
throw new chunk2YGIBOUH_cjs.AuthenticationError("Invalid API key", { code: "authentication_error" });
|
|
2157
2225
|
}
|
|
2158
|
-
return
|
|
2226
|
+
return chunkN6NUMXAJ_cjs.httpRequest(request.path, { apiKey });
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
// src/tool-blast-radius.ts
|
|
2230
|
+
var DECLARED = /* @__PURE__ */ Symbol.for("@theokit/sdk.blastRadius");
|
|
2231
|
+
function withBlastRadius(tool, action) {
|
|
2232
|
+
return Object.defineProperty(tool, DECLARED, {
|
|
2233
|
+
value: action,
|
|
2234
|
+
// `enumerable: false` is defensive and NOT load-bearing — checked, not assumed. Flipping it to
|
|
2235
|
+
// true leaves every case green, because the symbol key already excludes this from `Object.keys`
|
|
2236
|
+
// and `JSON.stringify`. It stays because a future string-keyed variant would need it, and the
|
|
2237
|
+
// next reader should not have to discover that the flag has no test behind it.
|
|
2238
|
+
enumerable: false,
|
|
2239
|
+
configurable: true
|
|
2240
|
+
});
|
|
2241
|
+
}
|
|
2242
|
+
function describeAction(tool) {
|
|
2243
|
+
return tool[DECLARED];
|
|
2159
2244
|
}
|
|
2160
2245
|
|
|
2161
2246
|
// src/trajectory-helpers.ts
|
|
@@ -2263,7 +2348,7 @@ function resolveTrustPosture(input) {
|
|
|
2263
2348
|
}
|
|
2264
2349
|
|
|
2265
2350
|
// src/wiring-record.ts
|
|
2266
|
-
var UngatedCapabilityError = class extends
|
|
2351
|
+
var UngatedCapabilityError = class extends chunk2YGIBOUH_cjs.TheokitAgentError {
|
|
2267
2352
|
name = "UngatedCapabilityError";
|
|
2268
2353
|
};
|
|
2269
2354
|
function recordWiring(input) {
|
|
@@ -2291,51 +2376,51 @@ Object.defineProperty(exports, "GOAL_CONTINUATION_MARKER", {
|
|
|
2291
2376
|
});
|
|
2292
2377
|
Object.defineProperty(exports, "JudgeCredentialError", {
|
|
2293
2378
|
enumerable: true,
|
|
2294
|
-
get: function () { return
|
|
2379
|
+
get: function () { return chunkBWGXYOBZ_cjs.JudgeCredentialError; }
|
|
2295
2380
|
});
|
|
2296
2381
|
Object.defineProperty(exports, "StreamObjectError", {
|
|
2297
2382
|
enumerable: true,
|
|
2298
|
-
get: function () { return
|
|
2383
|
+
get: function () { return chunkV45L2OYP_cjs.StreamObjectError; }
|
|
2299
2384
|
});
|
|
2300
2385
|
Object.defineProperty(exports, "GenerateObjectError", {
|
|
2301
2386
|
enumerable: true,
|
|
2302
|
-
get: function () { return
|
|
2387
|
+
get: function () { return chunkK42QGAKM_cjs.GenerateObjectError; }
|
|
2303
2388
|
});
|
|
2304
2389
|
Object.defineProperty(exports, "Cron", {
|
|
2305
2390
|
enumerable: true,
|
|
2306
|
-
get: function () { return
|
|
2391
|
+
get: function () { return chunk2S7IB4O3_cjs.Cron; }
|
|
2307
2392
|
});
|
|
2308
2393
|
Object.defineProperty(exports, "Agent", {
|
|
2309
2394
|
enumerable: true,
|
|
2310
|
-
get: function () { return
|
|
2395
|
+
get: function () { return chunkXI4L45SS_cjs.Agent; }
|
|
2311
2396
|
});
|
|
2312
2397
|
Object.defineProperty(exports, "AgentBuilder", {
|
|
2313
2398
|
enumerable: true,
|
|
2314
|
-
get: function () { return
|
|
2399
|
+
get: function () { return chunkXI4L45SS_cjs.AgentBuilder; }
|
|
2315
2400
|
});
|
|
2316
2401
|
Object.defineProperty(exports, "Tool", {
|
|
2317
2402
|
enumerable: true,
|
|
2318
|
-
get: function () { return
|
|
2403
|
+
get: function () { return chunkXI4L45SS_cjs.Tool; }
|
|
2319
2404
|
});
|
|
2320
2405
|
Object.defineProperty(exports, "ToolError", {
|
|
2321
2406
|
enumerable: true,
|
|
2322
|
-
get: function () { return
|
|
2407
|
+
get: function () { return chunkXI4L45SS_cjs.ToolError; }
|
|
2323
2408
|
});
|
|
2324
2409
|
Object.defineProperty(exports, "UsageAccumulator", {
|
|
2325
2410
|
enumerable: true,
|
|
2326
|
-
get: function () { return
|
|
2411
|
+
get: function () { return chunkXI4L45SS_cjs.UsageAccumulator; }
|
|
2327
2412
|
});
|
|
2328
2413
|
Object.defineProperty(exports, "computeCost", {
|
|
2329
2414
|
enumerable: true,
|
|
2330
|
-
get: function () { return
|
|
2415
|
+
get: function () { return chunkXI4L45SS_cjs.computeCost; }
|
|
2331
2416
|
});
|
|
2332
2417
|
Object.defineProperty(exports, "getPricingEntry", {
|
|
2333
2418
|
enumerable: true,
|
|
2334
|
-
get: function () { return
|
|
2419
|
+
get: function () { return chunkXI4L45SS_cjs.getPricingEntry; }
|
|
2335
2420
|
});
|
|
2336
2421
|
Object.defineProperty(exports, "emitRunEvent", {
|
|
2337
2422
|
enumerable: true,
|
|
2338
|
-
get: function () { return
|
|
2423
|
+
get: function () { return chunk6DCTL32L_cjs.emitRunEvent; }
|
|
2339
2424
|
});
|
|
2340
2425
|
Object.defineProperty(exports, "withCwdMutex", {
|
|
2341
2426
|
enumerable: true,
|
|
@@ -2343,81 +2428,82 @@ Object.defineProperty(exports, "withCwdMutex", {
|
|
|
2343
2428
|
});
|
|
2344
2429
|
Object.defineProperty(exports, "AgentDisposedError", {
|
|
2345
2430
|
enumerable: true,
|
|
2346
|
-
get: function () { return
|
|
2431
|
+
get: function () { return chunk2YGIBOUH_cjs.AgentDisposedError; }
|
|
2347
2432
|
});
|
|
2348
2433
|
Object.defineProperty(exports, "AgentRunError", {
|
|
2349
2434
|
enumerable: true,
|
|
2350
|
-
get: function () { return
|
|
2435
|
+
get: function () { return chunk2YGIBOUH_cjs.AgentRunError; }
|
|
2351
2436
|
});
|
|
2352
2437
|
Object.defineProperty(exports, "AuthenticationError", {
|
|
2353
2438
|
enumerable: true,
|
|
2354
|
-
get: function () { return
|
|
2439
|
+
get: function () { return chunk2YGIBOUH_cjs.AuthenticationError; }
|
|
2355
2440
|
});
|
|
2356
2441
|
Object.defineProperty(exports, "BudgetExceededError", {
|
|
2357
2442
|
enumerable: true,
|
|
2358
|
-
get: function () { return
|
|
2443
|
+
get: function () { return chunk2YGIBOUH_cjs.BudgetExceededError; }
|
|
2359
2444
|
});
|
|
2360
2445
|
Object.defineProperty(exports, "ConfigurationError", {
|
|
2361
2446
|
enumerable: true,
|
|
2362
|
-
get: function () { return
|
|
2447
|
+
get: function () { return chunk2YGIBOUH_cjs.ConfigurationError; }
|
|
2363
2448
|
});
|
|
2364
2449
|
Object.defineProperty(exports, "IntegrationNotConnectedError", {
|
|
2365
2450
|
enumerable: true,
|
|
2366
|
-
get: function () { return
|
|
2451
|
+
get: function () { return chunk2YGIBOUH_cjs.IntegrationNotConnectedError; }
|
|
2367
2452
|
});
|
|
2368
2453
|
Object.defineProperty(exports, "InvalidTaskIdError", {
|
|
2369
2454
|
enumerable: true,
|
|
2370
|
-
get: function () { return
|
|
2455
|
+
get: function () { return chunk2YGIBOUH_cjs.InvalidTaskIdError; }
|
|
2371
2456
|
});
|
|
2372
2457
|
Object.defineProperty(exports, "MemoryAdapterError", {
|
|
2373
2458
|
enumerable: true,
|
|
2374
|
-
get: function () { return
|
|
2459
|
+
get: function () { return chunk2YGIBOUH_cjs.MemoryAdapterError; }
|
|
2375
2460
|
});
|
|
2376
2461
|
Object.defineProperty(exports, "NetworkError", {
|
|
2377
2462
|
enumerable: true,
|
|
2378
|
-
get: function () { return
|
|
2463
|
+
get: function () { return chunk2YGIBOUH_cjs.NetworkError; }
|
|
2379
2464
|
});
|
|
2380
2465
|
Object.defineProperty(exports, "RateLimitError", {
|
|
2381
2466
|
enumerable: true,
|
|
2382
|
-
get: function () { return
|
|
2467
|
+
get: function () { return chunk2YGIBOUH_cjs.RateLimitError; }
|
|
2383
2468
|
});
|
|
2384
2469
|
Object.defineProperty(exports, "TaskNotFoundError", {
|
|
2385
2470
|
enumerable: true,
|
|
2386
|
-
get: function () { return
|
|
2471
|
+
get: function () { return chunk2YGIBOUH_cjs.TaskNotFoundError; }
|
|
2387
2472
|
});
|
|
2388
2473
|
Object.defineProperty(exports, "TheokitAgentError", {
|
|
2389
2474
|
enumerable: true,
|
|
2390
|
-
get: function () { return
|
|
2475
|
+
get: function () { return chunk2YGIBOUH_cjs.TheokitAgentError; }
|
|
2391
2476
|
});
|
|
2392
2477
|
Object.defineProperty(exports, "UnknownAgentError", {
|
|
2393
2478
|
enumerable: true,
|
|
2394
|
-
get: function () { return
|
|
2479
|
+
get: function () { return chunk2YGIBOUH_cjs.UnknownAgentError; }
|
|
2395
2480
|
});
|
|
2396
2481
|
Object.defineProperty(exports, "UnsupportedBudgetOperationError", {
|
|
2397
2482
|
enumerable: true,
|
|
2398
|
-
get: function () { return
|
|
2483
|
+
get: function () { return chunk2YGIBOUH_cjs.UnsupportedBudgetOperationError; }
|
|
2399
2484
|
});
|
|
2400
2485
|
Object.defineProperty(exports, "UnsupportedRunOperationError", {
|
|
2401
2486
|
enumerable: true,
|
|
2402
|
-
get: function () { return
|
|
2487
|
+
get: function () { return chunk2YGIBOUH_cjs.UnsupportedRunOperationError; }
|
|
2403
2488
|
});
|
|
2404
2489
|
Object.defineProperty(exports, "UnsupportedTaskOperationError", {
|
|
2405
2490
|
enumerable: true,
|
|
2406
|
-
get: function () { return
|
|
2491
|
+
get: function () { return chunk2YGIBOUH_cjs.UnsupportedTaskOperationError; }
|
|
2407
2492
|
});
|
|
2408
2493
|
Object.defineProperty(exports, "isTransientError", {
|
|
2409
2494
|
enumerable: true,
|
|
2410
|
-
get: function () { return
|
|
2495
|
+
get: function () { return chunk2YGIBOUH_cjs.isTransientError; }
|
|
2411
2496
|
});
|
|
2412
2497
|
Object.defineProperty(exports, "setDiagnosticsSink", {
|
|
2413
2498
|
enumerable: true,
|
|
2414
|
-
get: function () { return
|
|
2499
|
+
get: function () { return chunkSXSPMRSV_cjs.setDiagnosticsSink; }
|
|
2415
2500
|
});
|
|
2416
2501
|
exports.AgentFactory = AgentFactory;
|
|
2417
2502
|
exports.Budget = Budget;
|
|
2418
2503
|
exports.EventBus = EventBus;
|
|
2419
2504
|
exports.JobQueue = JobQueue;
|
|
2420
2505
|
exports.LayerOrderError = LayerOrderError;
|
|
2506
|
+
exports.LiveSessionError = LiveSessionError;
|
|
2421
2507
|
exports.Memory = Memory;
|
|
2422
2508
|
exports.NoopMemoryProvider = NoopMemoryProvider;
|
|
2423
2509
|
exports.PermissionEngine = PermissionEngine;
|
|
@@ -2440,9 +2526,14 @@ exports.applySecurityFloor = applySecurityFloor;
|
|
|
2440
2526
|
exports.auditEnvReachability = auditEnvReachability;
|
|
2441
2527
|
exports.chargeAndCheckThresholds = chargeAndCheckThresholds;
|
|
2442
2528
|
exports.createCounterBudgetTracker = createCounterBudgetTracker;
|
|
2529
|
+
exports.decideApproval = decideApproval;
|
|
2530
|
+
exports.describeAction = describeAction;
|
|
2531
|
+
exports.describeCredential = describeCredential;
|
|
2443
2532
|
exports.estimateTokens = estimateTokens;
|
|
2533
|
+
exports.evaluateBlastRadius = evaluateBlastRadius;
|
|
2444
2534
|
exports.extractRawId = extractRawId;
|
|
2445
2535
|
exports.foldLayers = foldLayers;
|
|
2536
|
+
exports.guardSessionDestruction = guardSessionDestruction;
|
|
2446
2537
|
exports.inferApiMode = inferApiMode;
|
|
2447
2538
|
exports.loadProjectEnv = loadProjectEnv;
|
|
2448
2539
|
exports.migrateSqliteToLance = migrateSqliteToLance2;
|
|
@@ -2458,5 +2549,6 @@ exports.scopedConversationId = scopedConversationId;
|
|
|
2458
2549
|
exports.sessionScopePrefix = sessionScopePrefix;
|
|
2459
2550
|
exports.toShareGptTrajectory = toShareGptTrajectory;
|
|
2460
2551
|
exports.verifyLayerOrdering = verifyLayerOrdering;
|
|
2552
|
+
exports.withBlastRadius = withBlastRadius;
|
|
2461
2553
|
//# sourceMappingURL=index.cjs.map
|
|
2462
2554
|
//# sourceMappingURL=index.cjs.map
|