@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.
Files changed (367) hide show
  1. package/CHANGELOG.md +105 -0
  2. package/dist/a2a/index.cjs +6 -6
  3. package/dist/a2a/index.js +2 -2
  4. package/dist/{agent-82d_DrCL.d.cts → agent-3RcPVGMo.d.cts} +22 -4
  5. package/dist/agent-7ERQNV66.js +59 -0
  6. package/dist/{agent-JJZM2VIK.js.map → agent-7ERQNV66.js.map} +1 -1
  7. package/dist/agent-LNTR4QH5.cjs +68 -0
  8. package/dist/{agent-47NS6ZVL.cjs.map → agent-LNTR4QH5.cjs.map} +1 -1
  9. package/dist/{agent-G6g-uwcB.d.ts → agent-lS68mYIL.d.ts} +22 -4
  10. package/dist/agent.d.ts +11 -0
  11. package/dist/auth/index.cjs +32 -32
  12. package/dist/auth/index.js +5 -5
  13. package/dist/{batch-US4F6WPK.js → batch-427O54FQ.js} +7 -7
  14. package/dist/{batch-US4F6WPK.js.map → batch-427O54FQ.js.map} +1 -1
  15. package/dist/{batch-I6T6MXZO.cjs → batch-U4SO4RLX.cjs} +24 -24
  16. package/dist/{batch-I6T6MXZO.cjs.map → batch-U4SO4RLX.cjs.map} +1 -1
  17. package/dist/{chunk-44I6UYVH.js → chunk-26NEAJ6T.js} +4 -4
  18. package/dist/{chunk-44I6UYVH.js.map → chunk-26NEAJ6T.js.map} +1 -1
  19. package/dist/{chunk-GCHZMH42.cjs → chunk-2STSX2SY.cjs} +264 -260
  20. package/dist/chunk-2STSX2SY.cjs.map +1 -0
  21. package/dist/{chunk-2UXQASTX.js → chunk-3CU5J7V3.js} +38 -34
  22. package/dist/chunk-3CU5J7V3.js.map +1 -0
  23. package/dist/{chunk-5NELQ6LB.js → chunk-4QCJAJAG.js} +12 -3
  24. package/dist/chunk-4QCJAJAG.js.map +1 -0
  25. package/dist/{chunk-XYFGKVZ7.js → chunk-53RDNK3H.js} +3 -3
  26. package/dist/{chunk-XYFGKVZ7.js.map → chunk-53RDNK3H.js.map} +1 -1
  27. package/dist/{chunk-2QKV4CGK.js → chunk-5522X223.js} +3 -3
  28. package/dist/{chunk-2QKV4CGK.js.map → chunk-5522X223.js.map} +1 -1
  29. package/dist/{chunk-EH6XD3FY.js → chunk-5DD4NJN3.js} +3 -3
  30. package/dist/{chunk-EH6XD3FY.js.map → chunk-5DD4NJN3.js.map} +1 -1
  31. package/dist/{chunk-V22DZIXO.js → chunk-5Q4RTLMP.js} +3 -3
  32. package/dist/{chunk-V22DZIXO.js.map → chunk-5Q4RTLMP.js.map} +1 -1
  33. package/dist/{chunk-4A3SKJ53.cjs → chunk-6PB5AQCY.cjs} +14 -14
  34. package/dist/{chunk-4A3SKJ53.cjs.map → chunk-6PB5AQCY.cjs.map} +1 -1
  35. package/dist/{chunk-PRZ3BES7.cjs → chunk-72CPLZPC.cjs} +5 -5
  36. package/dist/{chunk-PRZ3BES7.cjs.map → chunk-72CPLZPC.cjs.map} +1 -1
  37. package/dist/{chunk-GFFBXSQT.cjs → chunk-76PIKR4P.cjs} +22 -22
  38. package/dist/{chunk-GFFBXSQT.cjs.map → chunk-76PIKR4P.cjs.map} +1 -1
  39. package/dist/{chunk-EFMFILPG.js → chunk-7F7XE6CM.js} +3 -3
  40. package/dist/{chunk-EFMFILPG.js.map → chunk-7F7XE6CM.js.map} +1 -1
  41. package/dist/{chunk-N2KAIZ5D.js → chunk-7GDHFV2M.js} +4 -20
  42. package/dist/chunk-7GDHFV2M.js.map +1 -0
  43. package/dist/{chunk-CA5VUAP3.js → chunk-7HUCU3KK.js} +5 -5
  44. package/dist/{chunk-CA5VUAP3.js.map → chunk-7HUCU3KK.js.map} +1 -1
  45. package/dist/{chunk-4MMWFSCD.js → chunk-7JAKO3NM.js} +3 -3
  46. package/dist/{chunk-4MMWFSCD.js.map → chunk-7JAKO3NM.js.map} +1 -1
  47. package/dist/{chunk-UADQJBHR.cjs → chunk-7NQ7HJ3E.cjs} +6 -6
  48. package/dist/{chunk-UADQJBHR.cjs.map → chunk-7NQ7HJ3E.cjs.map} +1 -1
  49. package/dist/{chunk-HG4UN4MN.cjs → chunk-AOHRKGAA.cjs} +22 -22
  50. package/dist/{chunk-HG4UN4MN.cjs.map → chunk-AOHRKGAA.cjs.map} +1 -1
  51. package/dist/{chunk-C4ZQPWXJ.cjs → chunk-ARMFXTY6.cjs} +143 -190
  52. package/dist/chunk-ARMFXTY6.cjs.map +1 -0
  53. package/dist/{chunk-5WKQDIGO.js → chunk-AY43232P.js} +4 -4
  54. package/dist/{chunk-5WKQDIGO.js.map → chunk-AY43232P.js.map} +1 -1
  55. package/dist/{chunk-7FDKWDA2.cjs → chunk-B3XXQX6L.cjs} +7 -7
  56. package/dist/{chunk-7FDKWDA2.cjs.map → chunk-B3XXQX6L.cjs.map} +1 -1
  57. package/dist/{chunk-ALUN2B4W.js → chunk-B5MHRQJZ.js} +9 -3
  58. package/dist/chunk-B5MHRQJZ.js.map +1 -0
  59. package/dist/{chunk-TA3K7SBK.js → chunk-BKMDRBJ7.js} +3 -3
  60. package/dist/{chunk-TA3K7SBK.js.map → chunk-BKMDRBJ7.js.map} +1 -1
  61. package/dist/{chunk-FUSDYC2B.cjs → chunk-CQYBJOB2.cjs} +4 -4
  62. package/dist/{chunk-FUSDYC2B.cjs.map → chunk-CQYBJOB2.cjs.map} +1 -1
  63. package/dist/{chunk-7JJ3A6AT.cjs → chunk-D5KXKBEN.cjs} +5 -5
  64. package/dist/{chunk-7JJ3A6AT.cjs.map → chunk-D5KXKBEN.cjs.map} +1 -1
  65. package/dist/{chunk-HUDNLFY4.js → chunk-DDRX4LYS.js} +13 -4
  66. package/dist/chunk-DDRX4LYS.js.map +1 -0
  67. package/dist/{chunk-QDM3OHUT.cjs → chunk-ECD6ER3E.cjs} +4 -4
  68. package/dist/{chunk-QDM3OHUT.cjs.map → chunk-ECD6ER3E.cjs.map} +1 -1
  69. package/dist/{chunk-JMDDYA22.js → chunk-EJROML3Q.js} +4 -4
  70. package/dist/{chunk-JMDDYA22.js.map → chunk-EJROML3Q.js.map} +1 -1
  71. package/dist/{chunk-FPIY5CLV.js → chunk-FRL35MFN.js} +5 -5
  72. package/dist/{chunk-FPIY5CLV.js.map → chunk-FRL35MFN.js.map} +1 -1
  73. package/dist/{chunk-EIQFAOFD.js → chunk-GGRPAQ3B.js} +3 -3
  74. package/dist/{chunk-EIQFAOFD.js.map → chunk-GGRPAQ3B.js.map} +1 -1
  75. package/dist/{chunk-HCT4HPCL.cjs → chunk-GHHIJEFX.cjs} +4 -4
  76. package/dist/{chunk-HCT4HPCL.cjs.map → chunk-GHHIJEFX.cjs.map} +1 -1
  77. package/dist/{chunk-7A6535RA.cjs → chunk-GM54F4FE.cjs} +9 -9
  78. package/dist/{chunk-7A6535RA.cjs.map → chunk-GM54F4FE.cjs.map} +1 -1
  79. package/dist/{chunk-6M2OIS4Y.js → chunk-GMRFAX4I.js} +74 -4
  80. package/dist/chunk-GMRFAX4I.js.map +1 -0
  81. package/dist/{chunk-O6USDERH.js → chunk-GMSRRJ53.js} +3 -3
  82. package/dist/{chunk-O6USDERH.js.map → chunk-GMSRRJ53.js.map} +1 -1
  83. package/dist/{chunk-VE6DFSKU.js → chunk-GTX6FEDP.js} +3 -3
  84. package/dist/{chunk-VE6DFSKU.js.map → chunk-GTX6FEDP.js.map} +1 -1
  85. package/dist/{chunk-NJWYQWDL.js → chunk-H3CVJSFC.js} +3 -3
  86. package/dist/{chunk-NJWYQWDL.js.map → chunk-H3CVJSFC.js.map} +1 -1
  87. package/dist/{chunk-MYJGWS2J.cjs → chunk-HG5LKFG7.cjs} +16 -16
  88. package/dist/{chunk-MYJGWS2J.cjs.map → chunk-HG5LKFG7.cjs.map} +1 -1
  89. package/dist/{chunk-55GB6JYQ.js → chunk-HOHR75KF.js} +5 -5
  90. package/dist/{chunk-55GB6JYQ.js.map → chunk-HOHR75KF.js.map} +1 -1
  91. package/dist/{chunk-GBCVPKHE.js → chunk-HV4V63CO.js} +3 -3
  92. package/dist/{chunk-GBCVPKHE.js.map → chunk-HV4V63CO.js.map} +1 -1
  93. package/dist/{chunk-I2PWY7VM.cjs → chunk-IIYJMXYW.cjs} +4 -4
  94. package/dist/{chunk-I2PWY7VM.cjs.map → chunk-IIYJMXYW.cjs.map} +1 -1
  95. package/dist/chunk-J4SA2ZEJ.cjs +24 -0
  96. package/dist/chunk-J4SA2ZEJ.cjs.map +1 -0
  97. package/dist/{chunk-ATT276RD.cjs → chunk-J5623RIV.cjs} +78 -6
  98. package/dist/chunk-J5623RIV.cjs.map +1 -0
  99. package/dist/{chunk-KVSAY6NZ.cjs → chunk-J6GXS5A2.cjs} +13 -13
  100. package/dist/{chunk-KVSAY6NZ.cjs.map → chunk-J6GXS5A2.cjs.map} +1 -1
  101. package/dist/{chunk-NQTD6QOW.cjs → chunk-JW3GVLM6.cjs} +4 -4
  102. package/dist/{chunk-NQTD6QOW.cjs.map → chunk-JW3GVLM6.cjs.map} +1 -1
  103. package/dist/{chunk-TFG5IBZS.cjs → chunk-KGZ66JVZ.cjs} +14 -14
  104. package/dist/{chunk-TFG5IBZS.cjs.map → chunk-KGZ66JVZ.cjs.map} +1 -1
  105. package/dist/{chunk-47TF32NQ.js → chunk-KO6SHCEH.js} +3 -3
  106. package/dist/{chunk-47TF32NQ.js.map → chunk-KO6SHCEH.js.map} +1 -1
  107. package/dist/{chunk-EIOMN5VA.cjs → chunk-KTA7YTZQ.cjs} +17 -8
  108. package/dist/chunk-KTA7YTZQ.cjs.map +1 -0
  109. package/dist/{chunk-D6POWE7E.cjs → chunk-MEUBLCM4.cjs} +11 -11
  110. package/dist/{chunk-D6POWE7E.cjs.map → chunk-MEUBLCM4.cjs.map} +1 -1
  111. package/dist/{chunk-VWUXIVEI.js → chunk-MFZODA5Y.js} +5 -5
  112. package/dist/{chunk-VWUXIVEI.js.map → chunk-MFZODA5Y.js.map} +1 -1
  113. package/dist/{chunk-4HS6FFGL.cjs → chunk-MPQJE3G4.cjs} +15 -15
  114. package/dist/{chunk-4HS6FFGL.cjs.map → chunk-MPQJE3G4.cjs.map} +1 -1
  115. package/dist/{chunk-QRVS2PRE.cjs → chunk-MPR2ISL2.cjs} +4 -4
  116. package/dist/{chunk-QRVS2PRE.cjs.map → chunk-MPR2ISL2.cjs.map} +1 -1
  117. package/dist/{chunk-UOLBAPDM.js → chunk-MQGSOKR3.js} +3 -3
  118. package/dist/{chunk-UOLBAPDM.js.map → chunk-MQGSOKR3.js.map} +1 -1
  119. package/dist/{chunk-HFEJE7AC.js → chunk-MU7IAA7G.js} +9 -9
  120. package/dist/{chunk-HFEJE7AC.js.map → chunk-MU7IAA7G.js.map} +1 -1
  121. package/dist/{chunk-EXTRW7GW.cjs → chunk-NAGPKWOD.cjs} +4 -4
  122. package/dist/{chunk-EXTRW7GW.cjs.map → chunk-NAGPKWOD.cjs.map} +1 -1
  123. package/dist/{chunk-KTTHHYEW.cjs → chunk-NJSIAJEK.cjs} +4 -4
  124. package/dist/{chunk-KTTHHYEW.cjs.map → chunk-NJSIAJEK.cjs.map} +1 -1
  125. package/dist/{chunk-Z3NTRKIC.cjs → chunk-NKIQTLFA.cjs} +4 -4
  126. package/dist/{chunk-Z3NTRKIC.cjs.map → chunk-NKIQTLFA.cjs.map} +1 -1
  127. package/dist/{chunk-KZSKIUXZ.js → chunk-NOO6GZTZ.js} +37 -85
  128. package/dist/chunk-NOO6GZTZ.js.map +1 -0
  129. package/dist/{chunk-7IZKTQ5G.cjs → chunk-OCEQ6DW2.cjs} +10 -29
  130. package/dist/chunk-OCEQ6DW2.cjs.map +1 -0
  131. package/dist/{chunk-BJUJT5ED.cjs → chunk-OF2CLCTH.cjs} +4 -4
  132. package/dist/{chunk-BJUJT5ED.cjs.map → chunk-OF2CLCTH.cjs.map} +1 -1
  133. package/dist/{chunk-HUFSABUZ.cjs → chunk-OLSEWLK5.cjs} +6 -6
  134. package/dist/{chunk-HUFSABUZ.cjs.map → chunk-OLSEWLK5.cjs.map} +1 -1
  135. package/dist/{chunk-DQZU7JK6.cjs → chunk-P22BZE7G.cjs} +4 -4
  136. package/dist/{chunk-DQZU7JK6.cjs.map → chunk-P22BZE7G.cjs.map} +1 -1
  137. package/dist/{chunk-QWD3CZWE.cjs → chunk-P7NNKEWO.cjs} +4 -4
  138. package/dist/{chunk-QWD3CZWE.cjs.map → chunk-P7NNKEWO.cjs.map} +1 -1
  139. package/dist/chunk-PQCTDMUI.js +20 -0
  140. package/dist/chunk-PQCTDMUI.js.map +1 -0
  141. package/dist/{chunk-DZG77WU7.cjs → chunk-PSLCVSCS.cjs} +3 -3
  142. package/dist/{chunk-DZG77WU7.cjs.map → chunk-PSLCVSCS.cjs.map} +1 -1
  143. package/dist/{chunk-STGSMJMJ.js → chunk-QDQQYRJI.js} +4 -4
  144. package/dist/{chunk-STGSMJMJ.js.map → chunk-QDQQYRJI.js.map} +1 -1
  145. package/dist/{chunk-7MMTZBTT.js → chunk-R2C3HXR3.js} +4 -4
  146. package/dist/{chunk-7MMTZBTT.js.map → chunk-R2C3HXR3.js.map} +1 -1
  147. package/dist/chunk-R3ZQBPA5.cjs +18 -0
  148. package/dist/{chunk-ANMJJD6D.cjs.map → chunk-R3ZQBPA5.cjs.map} +1 -1
  149. package/dist/{chunk-4NLCWGH7.cjs → chunk-RA7IE4NK.cjs} +15 -15
  150. package/dist/{chunk-4NLCWGH7.cjs.map → chunk-RA7IE4NK.cjs.map} +1 -1
  151. package/dist/{chunk-UBR5PWD7.js → chunk-SUVCHX4L.js} +3 -3
  152. package/dist/{chunk-UBR5PWD7.js.map → chunk-SUVCHX4L.js.map} +1 -1
  153. package/dist/{chunk-LD6HASA5.cjs → chunk-SWALPLFQ.cjs} +12 -2
  154. package/dist/chunk-SWALPLFQ.cjs.map +1 -0
  155. package/dist/{chunk-52FDUJSV.cjs → chunk-T5KOSR5Y.cjs} +11 -11
  156. package/dist/{chunk-52FDUJSV.cjs.map → chunk-T5KOSR5Y.cjs.map} +1 -1
  157. package/dist/{chunk-BZ3YMAMP.js → chunk-TC4RWP3Y.js} +6 -6
  158. package/dist/{chunk-BZ3YMAMP.js.map → chunk-TC4RWP3Y.js.map} +1 -1
  159. package/dist/{chunk-XB4GI5RZ.js → chunk-TE6XVTOA.js} +3 -3
  160. package/dist/{chunk-XB4GI5RZ.js.map → chunk-TE6XVTOA.js.map} +1 -1
  161. package/dist/{chunk-VUHXC74Q.cjs → chunk-TTBIQTO5.cjs} +19 -19
  162. package/dist/{chunk-VUHXC74Q.cjs.map → chunk-TTBIQTO5.cjs.map} +1 -1
  163. package/dist/{chunk-J7J7J2GN.cjs → chunk-UNFBHV46.cjs} +9 -2
  164. package/dist/chunk-UNFBHV46.cjs.map +1 -0
  165. package/dist/{chunk-AAEZSPTC.js → chunk-UNZOJVVC.js} +4 -4
  166. package/dist/{chunk-AAEZSPTC.js.map → chunk-UNZOJVVC.js.map} +1 -1
  167. package/dist/{chunk-T3ZDEYTJ.js → chunk-W4VQMXBZ.js} +4 -4
  168. package/dist/{chunk-T3ZDEYTJ.js.map → chunk-W4VQMXBZ.js.map} +1 -1
  169. package/dist/{chunk-24SYBZPL.cjs → chunk-WPO3VCY4.cjs} +9 -9
  170. package/dist/{chunk-24SYBZPL.cjs.map → chunk-WPO3VCY4.cjs.map} +1 -1
  171. package/dist/{chunk-IUMAQURF.js → chunk-X6DUEDAF.js} +3 -3
  172. package/dist/{chunk-IUMAQURF.js.map → chunk-X6DUEDAF.js.map} +1 -1
  173. package/dist/{chunk-CFE6QF2Q.js → chunk-XCQ432OX.js} +3 -3
  174. package/dist/{chunk-CFE6QF2Q.js.map → chunk-XCQ432OX.js.map} +1 -1
  175. package/dist/{chunk-QWD4RDZ3.cjs → chunk-XDUGSTYJ.cjs} +15 -15
  176. package/dist/{chunk-QWD4RDZ3.cjs.map → chunk-XDUGSTYJ.cjs.map} +1 -1
  177. package/dist/{chunk-K2VMFZQ5.js → chunk-XKMVJ443.js} +5 -5
  178. package/dist/{chunk-K2VMFZQ5.js.map → chunk-XKMVJ443.js.map} +1 -1
  179. package/dist/{chunk-RWPLWMCZ.cjs → chunk-XW4POZ6V.cjs} +11 -11
  180. package/dist/{chunk-RWPLWMCZ.cjs.map → chunk-XW4POZ6V.cjs.map} +1 -1
  181. package/dist/{chunk-6PWOWXMC.js → chunk-XZHJYSPB.js} +3 -3
  182. package/dist/{chunk-6PWOWXMC.js.map → chunk-XZHJYSPB.js.map} +1 -1
  183. package/dist/{chunk-QC55H6RJ.cjs → chunk-YRJA2POB.cjs} +9 -9
  184. package/dist/{chunk-QC55H6RJ.cjs.map → chunk-YRJA2POB.cjs.map} +1 -1
  185. package/dist/{chunk-DMRT67Y6.js → chunk-ZJZ7LV3A.js} +3 -3
  186. package/dist/{chunk-DMRT67Y6.js.map → chunk-ZJZ7LV3A.js.map} +1 -1
  187. package/dist/{chunk-G7BLGBRN.js → chunk-ZWFTECOE.js} +3 -3
  188. package/dist/{chunk-G7BLGBRN.js.map → chunk-ZWFTECOE.js.map} +1 -1
  189. package/dist/compact-session-2N3ZYJTW.js +24 -0
  190. package/dist/{compact-session-YSEK7NQF.js.map → compact-session-2N3ZYJTW.js.map} +1 -1
  191. package/dist/compact-session-RBPLUPCK.cjs +65 -0
  192. package/dist/{compact-session-7FMYJXQ7.cjs.map → compact-session-RBPLUPCK.cjs.map} +1 -1
  193. package/dist/compaction.cjs +20 -16
  194. package/dist/compaction.d.cts +2 -0
  195. package/dist/compaction.d.ts +2 -0
  196. package/dist/compaction.js +2 -2
  197. package/dist/concurrency.cjs +5 -5
  198. package/dist/concurrency.js +3 -3
  199. package/dist/context/index.cjs +15 -7
  200. package/dist/context/index.cjs.map +1 -1
  201. package/dist/context/index.d.cts +2 -0
  202. package/dist/context/index.d.ts +2 -0
  203. package/dist/context/index.js +7 -3
  204. package/dist/context/index.js.map +1 -1
  205. package/dist/context-SXR2HLHT.js +7 -0
  206. package/dist/{context-J5BJ3LBS.js.map → context-SXR2HLHT.js.map} +1 -1
  207. package/dist/context-ZOULM2RB.cjs +24 -0
  208. package/dist/{context-HR4KMXMA.cjs.map → context-ZOULM2RB.cjs.map} +1 -1
  209. package/dist/{cron-DWv69ZSD.d.cts → cron-CGxoEKlx.d.cts} +2 -2
  210. package/dist/{cron-GynWtAax.d.ts → cron-DJv8zMa3.d.ts} +2 -2
  211. package/dist/cron.cjs +34 -33
  212. package/dist/cron.d.cts +4 -4
  213. package/dist/cron.d.ts +4 -4
  214. package/dist/cron.js +33 -32
  215. package/dist/{errors-DrDEgyz1.d.cts → errors-BWOJeWTZ.d.cts} +25 -2
  216. package/dist/{errors-CLOAyuiv.d.ts → errors-DDvG18IB.d.ts} +25 -2
  217. package/dist/errors.cjs +25 -21
  218. package/dist/errors.d.cts +2 -2
  219. package/dist/errors.d.ts +2 -2
  220. package/dist/errors.js +1 -1
  221. package/dist/eval.cjs +44 -43
  222. package/dist/eval.cjs.map +1 -1
  223. package/dist/eval.js +34 -33
  224. package/dist/eval.js.map +1 -1
  225. package/dist/{executor-XQAOQOHD.cjs → executor-2SUGI3ZT.cjs} +21 -21
  226. package/dist/{executor-XQAOQOHD.cjs.map → executor-2SUGI3ZT.cjs.map} +1 -1
  227. package/dist/{executor-ZNDQDX6Q.js → executor-3NI7KNL4.js} +6 -6
  228. package/dist/{executor-ZNDQDX6Q.js.map → executor-3NI7KNL4.js.map} +1 -1
  229. package/dist/filesystem/index.cjs +11 -11
  230. package/dist/filesystem/index.js +2 -2
  231. package/dist/fs-session-store-JHBJFKVV.cjs +19 -0
  232. package/dist/{fs-session-store-E4U3P56L.cjs.map → fs-session-store-JHBJFKVV.cjs.map} +1 -1
  233. package/dist/fs-session-store-STZZFXH2.js +10 -0
  234. package/dist/{fs-session-store-77JU46UZ.js.map → fs-session-store-STZZFXH2.js.map} +1 -1
  235. package/dist/generate-object-NTKAWE7D.js +7 -0
  236. package/dist/{generate-object-BXV7BZRP.js.map → generate-object-NTKAWE7D.js.map} +1 -1
  237. package/dist/generate-object-YHTWG5DB.cjs +20 -0
  238. package/dist/{generate-object-YBI2TDJ3.cjs.map → generate-object-YHTWG5DB.cjs.map} +1 -1
  239. package/dist/index-manager-ONQJSWX5.js +17 -0
  240. package/dist/{index-manager-27WLNQEE.js.map → index-manager-ONQJSWX5.js.map} +1 -1
  241. package/dist/{index-manager-BBHDKMQS.cjs → index-manager-ZGJN25FD.cjs} +9 -9
  242. package/dist/{index-manager-BBHDKMQS.cjs.map → index-manager-ZGJN25FD.cjs.map} +1 -1
  243. package/dist/index.cjs +148 -145
  244. package/dist/index.cjs.map +1 -1
  245. package/dist/index.d.cts +57 -10
  246. package/dist/index.d.ts +57 -10
  247. package/dist/index.js +49 -48
  248. package/dist/index.js.map +1 -1
  249. package/dist/{inject-session-PC73TMP2.cjs → inject-session-3FPXJDJP.cjs} +4 -4
  250. package/dist/{inject-session-PC73TMP2.cjs.map → inject-session-3FPXJDJP.cjs.map} +1 -1
  251. package/dist/{inject-session-J4LBWAPH.js → inject-session-YNNOE3O6.js} +3 -3
  252. package/dist/{inject-session-J4LBWAPH.js.map → inject-session-YNNOE3O6.js.map} +1 -1
  253. package/dist/interactive/index.cjs +3 -3
  254. package/dist/interactive/index.js +1 -1
  255. package/dist/internal/memory/adapters/index.cjs +7 -7
  256. package/dist/internal/memory/adapters/index.js +6 -6
  257. package/dist/internal/memory/storage/index.cjs +35 -35
  258. package/dist/internal/memory/storage/index.js +6 -6
  259. package/dist/internal/persistence/index.cjs +11 -11
  260. package/dist/internal/persistence/index.js +3 -3
  261. package/dist/internal/runtime/compression/compression-model-registry.d.ts +1 -0
  262. package/dist/internal/runtime/compression/compression-summarizer.d.ts +0 -14
  263. package/dist/internal/runtime/context/context-discovery.d.ts +42 -0
  264. package/dist/internal/runtime/context/context-loaders.d.ts +5 -1
  265. package/dist/internal/security/index.cjs +9 -9
  266. package/dist/internal/security/index.js +2 -2
  267. package/dist/internal/session/compact-session.d.ts +36 -0
  268. package/dist/judge-call-AQQYK6VT.cjs +22 -0
  269. package/dist/{judge-call-46M2E5FA.cjs.map → judge-call-AQQYK6VT.cjs.map} +1 -1
  270. package/dist/judge-call-LOL5FQEX.js +5 -0
  271. package/dist/{judge-call-FGUNNWEI.js.map → judge-call-LOL5FQEX.js.map} +1 -1
  272. package/dist/mcp-auth.cjs +9 -9
  273. package/dist/mcp-auth.js +2 -2
  274. package/dist/models.cjs +15 -15
  275. package/dist/models.js +6 -6
  276. package/dist/oauth-transaction-store-NP2YHZ6D.js +5 -0
  277. package/dist/{oauth-transaction-store-5RIR6D5C.js.map → oauth-transaction-store-NP2YHZ6D.js.map} +1 -1
  278. package/dist/oauth-transaction-store-ZINDV7AF.cjs +38 -0
  279. package/dist/{oauth-transaction-store-SXIE57OD.cjs.map → oauth-transaction-store-ZINDV7AF.cjs.map} +1 -1
  280. package/dist/path-safety.cjs +9 -9
  281. package/dist/path-safety.js +2 -2
  282. package/dist/persistence.cjs +16 -16
  283. package/dist/persistence.js +4 -4
  284. package/dist/project.cjs +5 -5
  285. package/dist/project.js +2 -2
  286. package/dist/providers.cjs +8 -8
  287. package/dist/providers.js +6 -6
  288. package/dist/{registry-DMWCJKRF.js → registry-5FK42CRV.js} +6 -6
  289. package/dist/{registry-DMWCJKRF.js.map → registry-5FK42CRV.js.map} +1 -1
  290. package/dist/{registry-BZQFYRTL.cjs → registry-BVTNO73E.cjs} +14 -14
  291. package/dist/{registry-BZQFYRTL.cjs.map → registry-BVTNO73E.cjs.map} +1 -1
  292. package/dist/retry.cjs +3 -3
  293. package/dist/retry.js +2 -2
  294. package/dist/{run-CTAdRU3U.d.cts → run-DsA5Ip2i.d.cts} +1 -1
  295. package/dist/{run-CTAdRU3U.d.ts → run-DsA5Ip2i.d.ts} +1 -1
  296. package/dist/sandbox/index.cjs +18 -18
  297. package/dist/sandbox/index.js +3 -3
  298. package/dist/{sdk-agent-BOiKqOgL.d.cts → sdk-agent-dNwjwCt5.d.cts} +2 -2
  299. package/dist/{sdk-agent-D4a_BR_6.d.ts → sdk-agent-wEOLXD3F.d.ts} +2 -2
  300. package/dist/server/auth/index.cjs +21 -21
  301. package/dist/server/auth/index.js +6 -6
  302. package/dist/server/errors-envelope.cjs +13 -13
  303. package/dist/server/errors-envelope.d.cts +2 -2
  304. package/dist/server/errors-envelope.d.ts +2 -2
  305. package/dist/server/errors-envelope.js +2 -2
  306. package/dist/skills.cjs +7 -7
  307. package/dist/skills.js +4 -4
  308. package/dist/stream-object-QAEHG4YO.js +7 -0
  309. package/dist/{stream-object-HBFMIZLD.js.map → stream-object-QAEHG4YO.js.map} +1 -1
  310. package/dist/stream-object-TKVGGA54.cjs +20 -0
  311. package/dist/{stream-object-QSKHISDJ.cjs.map → stream-object-TKVGGA54.cjs.map} +1 -1
  312. package/dist/subagents-loader-7GE7YUDI.cjs +16 -0
  313. package/dist/{subagents-loader-MOO7DC4E.cjs.map → subagents-loader-7GE7YUDI.cjs.map} +1 -1
  314. package/dist/subagents-loader-S2PMZY7J.js +7 -0
  315. package/dist/{subagents-loader-CJFYQQU2.js.map → subagents-loader-S2PMZY7J.js.map} +1 -1
  316. package/dist/subagents-loader.cjs +5 -5
  317. package/dist/subagents-loader.d.cts +3 -3
  318. package/dist/subagents-loader.d.ts +3 -3
  319. package/dist/subagents-loader.js +3 -3
  320. package/dist/subscription/index.cjs +3 -2
  321. package/dist/subscription/index.d.cts +1 -1
  322. package/dist/subscription/index.d.ts +1 -1
  323. package/dist/subscription/index.js +2 -2
  324. package/dist/task-store.cjs +5 -5
  325. package/dist/task-store.js +2 -2
  326. package/dist/types/agent.d.ts +1 -1
  327. package/dist/workflow.cjs +25 -25
  328. package/dist/workflow.d.cts +2 -2
  329. package/dist/workflow.d.ts +2 -2
  330. package/dist/workflow.js +4 -4
  331. package/docs/error-codes.md +1 -1
  332. package/docs/harness-capability-map.md +17 -1
  333. package/package.json +1 -1
  334. package/dist/agent-47NS6ZVL.cjs +0 -67
  335. package/dist/agent-JJZM2VIK.js +0 -58
  336. package/dist/chunk-2UXQASTX.js.map +0 -1
  337. package/dist/chunk-5NELQ6LB.js.map +0 -1
  338. package/dist/chunk-6M2OIS4Y.js.map +0 -1
  339. package/dist/chunk-7IZKTQ5G.cjs.map +0 -1
  340. package/dist/chunk-ALUN2B4W.js.map +0 -1
  341. package/dist/chunk-ANMJJD6D.cjs +0 -18
  342. package/dist/chunk-ATT276RD.cjs.map +0 -1
  343. package/dist/chunk-C4ZQPWXJ.cjs.map +0 -1
  344. package/dist/chunk-EIOMN5VA.cjs.map +0 -1
  345. package/dist/chunk-GCHZMH42.cjs.map +0 -1
  346. package/dist/chunk-HUDNLFY4.js.map +0 -1
  347. package/dist/chunk-J7J7J2GN.cjs.map +0 -1
  348. package/dist/chunk-KZSKIUXZ.js.map +0 -1
  349. package/dist/chunk-LD6HASA5.cjs.map +0 -1
  350. package/dist/chunk-N2KAIZ5D.js.map +0 -1
  351. package/dist/compact-session-7FMYJXQ7.cjs +0 -61
  352. package/dist/compact-session-YSEK7NQF.js +0 -24
  353. package/dist/context-HR4KMXMA.cjs +0 -23
  354. package/dist/context-J5BJ3LBS.js +0 -6
  355. package/dist/fs-session-store-77JU46UZ.js +0 -10
  356. package/dist/fs-session-store-E4U3P56L.cjs +0 -19
  357. package/dist/generate-object-BXV7BZRP.js +0 -7
  358. package/dist/generate-object-YBI2TDJ3.cjs +0 -20
  359. package/dist/index-manager-27WLNQEE.js +0 -17
  360. package/dist/judge-call-46M2E5FA.cjs +0 -22
  361. package/dist/judge-call-FGUNNWEI.js +0 -5
  362. package/dist/oauth-transaction-store-5RIR6D5C.js +0 -5
  363. package/dist/oauth-transaction-store-SXIE57OD.cjs +0 -38
  364. package/dist/stream-object-HBFMIZLD.js +0 -7
  365. package/dist/stream-object-QSKHISDJ.cjs +0 -20
  366. package/dist/subagents-loader-CJFYQQU2.js +0 -7
  367. package/dist/subagents-loader-MOO7DC4E.cjs +0 -16
package/dist/retry.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkPRZ3BES7_cjs = require('./chunk-PRZ3BES7.cjs');
4
- require('./chunk-J7J7J2GN.cjs');
3
+ var chunk72CPLZPC_cjs = require('./chunk-72CPLZPC.cjs');
4
+ require('./chunk-UNFBHV46.cjs');
5
5
  require('./chunk-6LHQPOMI.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "Retry", {
10
10
  enumerable: true,
11
- get: function () { return chunkPRZ3BES7_cjs.Retry; }
11
+ get: function () { return chunk72CPLZPC_cjs.Retry; }
12
12
  });
13
13
  //# sourceMappingURL=retry.cjs.map
14
14
  //# sourceMappingURL=retry.cjs.map
package/dist/retry.js CHANGED
@@ -1,5 +1,5 @@
1
- export { Retry } from './chunk-EFMFILPG.js';
2
- import './chunk-ALUN2B4W.js';
1
+ export { Retry } from './chunk-7F7XE6CM.js';
2
+ import './chunk-B5MHRQJZ.js';
3
3
  import './chunk-CZJ6Q7CW.js';
4
4
  //# sourceMappingURL=retry.js.map
5
5
  //# sourceMappingURL=retry.js.map
@@ -1810,4 +1810,4 @@ interface GenerateRunResult<O> {
1810
1810
  };
1811
1811
  }
1812
1812
 
1813
- export type { RunTripwireEvent as $, AgentConversationTurn as A, RunCompletionCheckEvent as B, CustomTool as C, DoomLoopThresholds as D, RunErrorDetail as E, RunEvent as F, GenerateOptions as G, RunGitInfo as H, ImageBlock as I, RunMemoryDegradedEvent as J, RunOperation as K, RunPermissionDeniedEvent as L, ModelSelection as M, RunRateLimitEvent as N, OutputProcessorContext as O, Processor as P, RunStatus as Q, RunResult as R, SDKMessage as S, ToolResultContentBlock as T, RunTaskCompletedEvent as U, RunTaskStartedEvent as V, RunTaskUpdatedEvent as W, RunTimelineEvent as X, RunToCompletionOptions as Y, RunToCompletionResult as Z, RunToolProgressEvent as _, McpServerConfig as a, SDKAssistantMessage as a0, SDKImage as a1, SDKImageDimension as a2, SDKObjectDelta as a3, SDKRequestMessage as a4, SDKStatusMessage as a5, SDKSystemMessage as a6, SDKTaskMessage as a7, SDKThinkingMessage as a8, SDKToolUseMessage as a9, ToolUseBlock as aA, TurnEndedUpdate as aB, UserMessage as aC, UserMessageAppendedUpdate as aD, SDKUserMessage as aa, SDKUserMessageEvent as ab, SendOptions as ac, ShellCommand as ad, ShellConversationTurn as ae, ShellOutput as af, ShellOutputDeltaUpdate as ag, StepCompletedUpdate as ah, StepStartedUpdate as ai, StreamToCompletionResult as aj, SummaryCompletedUpdate as ak, SummaryStartedUpdate as al, SummaryUpdate as am, TextBlock as an, TextDeltaUpdate as ao, ThinkingCompletedUpdate as ap, ThinkingDeltaUpdate as aq, ThinkingMessage as ar, TokenDeltaUpdate as as, TokenUsage as at, ToolCall as au, ToolCallCompletedUpdate as av, ToolCallStartedUpdate as aw, ToolContextMessage as ax, ToolResult as ay, ToolResultGuardOptions as az, Run as b, PermissionMode as c, RunEventSink as d, AssistantMessage as e, CompletionCheck as f, CompletionCheckResult as g, ConversationStep as h, ConversationTurn as i, CostBreakdown as j, CostSource as k, CostStatus as l, GenerateRunResult as m, InputProcessorContext as n, InteractionUpdate as o, McpAuthConfig as p, McpHttpServerConfig as q, McpOAuthConfig as r, McpStdioServerConfig as s, MessageOrigin as t, ModelParameterValue as u, PartialToolCallUpdate as v, ProcessorControls as w, ProcessorTripwire as x, ProcessorViolation as y, RunCompactBoundaryEvent as z };
1813
+ export type { RunToolProgressEvent as $, AgentConversationTurn as A, RunCompletionCheckEvent as B, CustomTool as C, DoomLoopThresholds as D, EnvPolicy as E, RunErrorDetail as F, GenerateOptions as G, RunEvent as H, ImageBlock as I, RunGitInfo as J, RunMemoryDegradedEvent as K, RunOperation as L, ModelSelection as M, RunPermissionDeniedEvent as N, OutputProcessorContext as O, Processor as P, RunRateLimitEvent as Q, RunResult as R, SDKMessage as S, ToolResultContentBlock as T, RunStatus as U, RunTaskCompletedEvent as V, RunTaskStartedEvent as W, RunTaskUpdatedEvent as X, RunTimelineEvent as Y, RunToCompletionOptions as Z, RunToCompletionResult as _, McpServerConfig as a, RunTripwireEvent as a0, SDKAssistantMessage as a1, SDKImage as a2, SDKImageDimension as a3, SDKObjectDelta as a4, SDKRequestMessage as a5, SDKStatusMessage as a6, SDKSystemMessage as a7, SDKTaskMessage as a8, SDKThinkingMessage as a9, ToolResultGuardOptions as aA, ToolUseBlock as aB, TurnEndedUpdate as aC, UserMessage as aD, UserMessageAppendedUpdate as aE, SDKToolUseMessage as aa, SDKUserMessage as ab, SDKUserMessageEvent as ac, SendOptions as ad, ShellCommand as ae, ShellConversationTurn as af, ShellOutput as ag, ShellOutputDeltaUpdate as ah, StepCompletedUpdate as ai, StepStartedUpdate as aj, StreamToCompletionResult as ak, SummaryCompletedUpdate as al, SummaryStartedUpdate as am, SummaryUpdate as an, TextBlock as ao, TextDeltaUpdate as ap, ThinkingCompletedUpdate as aq, ThinkingDeltaUpdate as ar, ThinkingMessage as as, TokenDeltaUpdate as at, TokenUsage as au, ToolCall as av, ToolCallCompletedUpdate as aw, ToolCallStartedUpdate as ax, ToolContextMessage as ay, ToolResult as az, Run as b, PermissionMode as c, RunEventSink as d, AssistantMessage as e, CompletionCheck as f, CompletionCheckResult as g, ConversationStep as h, ConversationTurn as i, CostBreakdown as j, CostSource as k, CostStatus as l, GenerateRunResult as m, InputProcessorContext as n, InteractionUpdate as o, McpAuthConfig as p, McpHttpServerConfig as q, McpOAuthConfig as r, McpStdioServerConfig as s, MessageOrigin as t, ModelParameterValue as u, PartialToolCallUpdate as v, ProcessorControls as w, ProcessorTripwire as x, ProcessorViolation as y, RunCompactBoundaryEvent as z };
@@ -1810,4 +1810,4 @@ interface GenerateRunResult<O> {
1810
1810
  };
1811
1811
  }
1812
1812
 
1813
- export type { RunTripwireEvent as $, AgentConversationTurn as A, RunCompletionCheckEvent as B, CustomTool as C, DoomLoopThresholds as D, RunErrorDetail as E, RunEvent as F, GenerateOptions as G, RunGitInfo as H, ImageBlock as I, RunMemoryDegradedEvent as J, RunOperation as K, RunPermissionDeniedEvent as L, ModelSelection as M, RunRateLimitEvent as N, OutputProcessorContext as O, Processor as P, RunStatus as Q, RunResult as R, SDKMessage as S, ToolResultContentBlock as T, RunTaskCompletedEvent as U, RunTaskStartedEvent as V, RunTaskUpdatedEvent as W, RunTimelineEvent as X, RunToCompletionOptions as Y, RunToCompletionResult as Z, RunToolProgressEvent as _, McpServerConfig as a, SDKAssistantMessage as a0, SDKImage as a1, SDKImageDimension as a2, SDKObjectDelta as a3, SDKRequestMessage as a4, SDKStatusMessage as a5, SDKSystemMessage as a6, SDKTaskMessage as a7, SDKThinkingMessage as a8, SDKToolUseMessage as a9, ToolUseBlock as aA, TurnEndedUpdate as aB, UserMessage as aC, UserMessageAppendedUpdate as aD, SDKUserMessage as aa, SDKUserMessageEvent as ab, SendOptions as ac, ShellCommand as ad, ShellConversationTurn as ae, ShellOutput as af, ShellOutputDeltaUpdate as ag, StepCompletedUpdate as ah, StepStartedUpdate as ai, StreamToCompletionResult as aj, SummaryCompletedUpdate as ak, SummaryStartedUpdate as al, SummaryUpdate as am, TextBlock as an, TextDeltaUpdate as ao, ThinkingCompletedUpdate as ap, ThinkingDeltaUpdate as aq, ThinkingMessage as ar, TokenDeltaUpdate as as, TokenUsage as at, ToolCall as au, ToolCallCompletedUpdate as av, ToolCallStartedUpdate as aw, ToolContextMessage as ax, ToolResult as ay, ToolResultGuardOptions as az, Run as b, PermissionMode as c, RunEventSink as d, AssistantMessage as e, CompletionCheck as f, CompletionCheckResult as g, ConversationStep as h, ConversationTurn as i, CostBreakdown as j, CostSource as k, CostStatus as l, GenerateRunResult as m, InputProcessorContext as n, InteractionUpdate as o, McpAuthConfig as p, McpHttpServerConfig as q, McpOAuthConfig as r, McpStdioServerConfig as s, MessageOrigin as t, ModelParameterValue as u, PartialToolCallUpdate as v, ProcessorControls as w, ProcessorTripwire as x, ProcessorViolation as y, RunCompactBoundaryEvent as z };
1813
+ export type { RunToolProgressEvent as $, AgentConversationTurn as A, RunCompletionCheckEvent as B, CustomTool as C, DoomLoopThresholds as D, EnvPolicy as E, RunErrorDetail as F, GenerateOptions as G, RunEvent as H, ImageBlock as I, RunGitInfo as J, RunMemoryDegradedEvent as K, RunOperation as L, ModelSelection as M, RunPermissionDeniedEvent as N, OutputProcessorContext as O, Processor as P, RunRateLimitEvent as Q, RunResult as R, SDKMessage as S, ToolResultContentBlock as T, RunStatus as U, RunTaskCompletedEvent as V, RunTaskStartedEvent as W, RunTaskUpdatedEvent as X, RunTimelineEvent as Y, RunToCompletionOptions as Z, RunToCompletionResult as _, McpServerConfig as a, RunTripwireEvent as a0, SDKAssistantMessage as a1, SDKImage as a2, SDKImageDimension as a3, SDKObjectDelta as a4, SDKRequestMessage as a5, SDKStatusMessage as a6, SDKSystemMessage as a7, SDKTaskMessage as a8, SDKThinkingMessage as a9, ToolResultGuardOptions as aA, ToolUseBlock as aB, TurnEndedUpdate as aC, UserMessage as aD, UserMessageAppendedUpdate as aE, SDKToolUseMessage as aa, SDKUserMessage as ab, SDKUserMessageEvent as ac, SendOptions as ad, ShellCommand as ae, ShellConversationTurn as af, ShellOutput as ag, ShellOutputDeltaUpdate as ah, StepCompletedUpdate as ai, StepStartedUpdate as aj, StreamToCompletionResult as ak, SummaryCompletedUpdate as al, SummaryStartedUpdate as am, SummaryUpdate as an, TextBlock as ao, TextDeltaUpdate as ap, ThinkingCompletedUpdate as aq, ThinkingDeltaUpdate as ar, ThinkingMessage as as, TokenDeltaUpdate as at, TokenUsage as au, ToolCall as av, ToolCallCompletedUpdate as aw, ToolCallStartedUpdate as ax, ToolContextMessage as ay, ToolResult as az, Run as b, PermissionMode as c, RunEventSink as d, AssistantMessage as e, CompletionCheck as f, CompletionCheckResult as g, ConversationStep as h, ConversationTurn as i, CostBreakdown as j, CostSource as k, CostStatus as l, GenerateRunResult as m, InputProcessorContext as n, InteractionUpdate as o, McpAuthConfig as p, McpHttpServerConfig as q, McpOAuthConfig as r, McpStdioServerConfig as s, MessageOrigin as t, ModelParameterValue as u, PartialToolCallUpdate as v, ProcessorControls as w, ProcessorTripwire as x, ProcessorViolation as y, RunCompactBoundaryEvent as z };
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkUADQJBHR_cjs = require('../chunk-UADQJBHR.cjs');
3
+ var chunk7NQ7HJ3E_cjs = require('../chunk-7NQ7HJ3E.cjs');
4
4
  require('../chunk-2ZPEDVLM.cjs');
5
- var chunkJ7J7J2GN_cjs = require('../chunk-J7J7J2GN.cjs');
5
+ var chunkUNFBHV46_cjs = require('../chunk-UNFBHV46.cjs');
6
6
  var chunk6LHQPOMI_cjs = require('../chunk-6LHQPOMI.cjs');
7
7
  var child_process = require('child_process');
8
8
  var fs = require('fs');
@@ -214,8 +214,8 @@ function wrapCommandForSandbox(mode, opts, command) {
214
214
  if (argv === null) return null;
215
215
  const bin = opts.bin ?? "bwrap";
216
216
  const seccompArgv = opts.seccompPath !== void 0 ? ["--seccomp", "3"] : [];
217
- const base = `${chunkUADQJBHR_cjs.shellEscapePosix(bin)} ${[...argv.slice(0, -1), ...seccompArgv, "--"].map(chunkUADQJBHR_cjs.shellEscapePosix).join(" ")} /bin/sh -c ${chunkUADQJBHR_cjs.shellEscapePosix(command)}`;
218
- return opts.seccompPath !== void 0 ? `${base} 3< ${chunkUADQJBHR_cjs.shellEscapePosix(opts.seccompPath)}` : base;
217
+ const base = `${chunk7NQ7HJ3E_cjs.shellEscapePosix(bin)} ${[...argv.slice(0, -1), ...seccompArgv, "--"].map(chunk7NQ7HJ3E_cjs.shellEscapePosix).join(" ")} /bin/sh -c ${chunk7NQ7HJ3E_cjs.shellEscapePosix(command)}`;
218
+ return opts.seccompPath !== void 0 ? `${base} 3< ${chunk7NQ7HJ3E_cjs.shellEscapePosix(opts.seccompPath)}` : base;
219
219
  }
220
220
  var ENV_ALLOWLIST = [
221
221
  "PATH",
@@ -236,7 +236,7 @@ function allowlistedEnv(source = process.env) {
236
236
  }
237
237
  return out;
238
238
  }
239
- var LinuxSandbox = class extends chunkUADQJBHR_cjs.LocalSandbox {
239
+ var LinuxSandbox = class extends chunk7NQ7HJ3E_cjs.LocalSandbox {
240
240
  mode;
241
241
  network;
242
242
  cwd;
@@ -286,7 +286,7 @@ var LinuxSandbox = class extends chunkUADQJBHR_cjs.LocalSandbox {
286
286
  const target = path2.startsWith("/") ? path2 : `${this.cwd}/${path2}`;
287
287
  const b64 = Buffer.from(content).toString("base64");
288
288
  const r = await this.execute(
289
- `mkdir -p ${chunkUADQJBHR_cjs.shellEscapePosix(path.dirname(target))} && printf %s ${chunkUADQJBHR_cjs.shellEscapePosix(b64)} | base64 -d > ${chunkUADQJBHR_cjs.shellEscapePosix(target)}`
289
+ `mkdir -p ${chunk7NQ7HJ3E_cjs.shellEscapePosix(path.dirname(target))} && printf %s ${chunk7NQ7HJ3E_cjs.shellEscapePosix(b64)} | base64 -d > ${chunk7NQ7HJ3E_cjs.shellEscapePosix(target)}`
290
290
  );
291
291
  if (r.exitCode !== 0) {
292
292
  throw new Error(
@@ -350,7 +350,7 @@ function resolveSandboxPosture(opts) {
350
350
  }
351
351
  function createSandboxBackend(opts) {
352
352
  const config = { workDir: opts.workDir, timeoutMs: opts.timeoutMs };
353
- if (opts.mode === "danger-full-access") return new chunkUADQJBHR_cjs.LocalSandbox(config);
353
+ if (opts.mode === "danger-full-access") return new chunk7NQ7HJ3E_cjs.LocalSandbox(config);
354
354
  const detection = (opts.detect ?? detectBwrapMemoized)();
355
355
  if (!detection.ok) {
356
356
  if (!warnedUnavailable) {
@@ -360,7 +360,7 @@ function createSandboxBackend(opts) {
360
360
  `[sandbox] OS-level enforcement unavailable (${detection.reason}) \u2014 falling back to tool-level gating only (sandbox_mode=${opts.mode}).`
361
361
  );
362
362
  }
363
- return new chunkUADQJBHR_cjs.LocalSandbox(config);
363
+ return new chunk7NQ7HJ3E_cjs.LocalSandbox(config);
364
364
  }
365
365
  return new LinuxSandbox(config, { mode: opts.mode, network: opts.network, bin: detection.bin });
366
366
  }
@@ -403,7 +403,7 @@ function interactiveWrapCommand(opts) {
403
403
  }
404
404
 
405
405
  // src/sandbox/provision.ts
406
- var RepoProvisionError = class extends chunkJ7J7J2GN_cjs.TheokitAgentError {
406
+ var RepoProvisionError = class extends chunkUNFBHV46_cjs.TheokitAgentError {
407
407
  constructor(instanceId, message, options = {}) {
408
408
  super(`[${instanceId}] ${message}`, {
409
409
  code: "repo_provision_failed",
@@ -417,7 +417,7 @@ var RepoProvisionError = class extends chunkJ7J7J2GN_cjs.TheokitAgentError {
417
417
  };
418
418
  var SAFE_INSTANCE_ID = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
419
419
  async function provisionRepo(sandboxOrOpts, maybeOpts) {
420
- const sandbox = maybeOpts !== void 0 ? sandboxOrOpts : new chunkUADQJBHR_cjs.LocalSandbox();
420
+ const sandbox = maybeOpts !== void 0 ? sandboxOrOpts : new chunk7NQ7HJ3E_cjs.LocalSandbox();
421
421
  const opts = maybeOpts ?? sandboxOrOpts;
422
422
  const { repoUrl, ref, instanceId } = opts;
423
423
  if (!SAFE_INSTANCE_ID.test(instanceId)) {
@@ -430,20 +430,20 @@ async function provisionRepo(sandboxOrOpts, maybeOpts) {
430
430
  throw new RepoProvisionError(instanceId, `invalid ref: must not begin with '-' (got ${ref})`);
431
431
  }
432
432
  const clone = await sandbox.execute(
433
- `git -c protocol.ext.allow=never clone --quiet -- ${chunkUADQJBHR_cjs.shellEscapePosix(repoUrl)} ${chunkUADQJBHR_cjs.shellEscapePosix(instanceId)}`
433
+ `git -c protocol.ext.allow=never clone --quiet -- ${chunk7NQ7HJ3E_cjs.shellEscapePosix(repoUrl)} ${chunk7NQ7HJ3E_cjs.shellEscapePosix(instanceId)}`
434
434
  );
435
435
  if (clone.exitCode !== 0) {
436
436
  throw new RepoProvisionError(instanceId, `clone failed: ${clone.stderr.trim()}`);
437
437
  }
438
438
  const top = await sandbox.execute(
439
- `git -C ${chunkUADQJBHR_cjs.shellEscapePosix(instanceId)} rev-parse --show-toplevel`
439
+ `git -C ${chunk7NQ7HJ3E_cjs.shellEscapePosix(instanceId)} rev-parse --show-toplevel`
440
440
  );
441
441
  if (top.exitCode !== 0) {
442
442
  throw new RepoProvisionError(instanceId, `resolve repoDir failed: ${top.stderr.trim()}`);
443
443
  }
444
444
  const repoDir = top.stdout.trim();
445
445
  const checkout = await sandbox.execute(
446
- `git -C ${chunkUADQJBHR_cjs.shellEscapePosix(repoDir)} checkout --quiet ${chunkUADQJBHR_cjs.shellEscapePosix(ref)}`
446
+ `git -C ${chunk7NQ7HJ3E_cjs.shellEscapePosix(repoDir)} checkout --quiet ${chunk7NQ7HJ3E_cjs.shellEscapePosix(ref)}`
447
447
  );
448
448
  if (checkout.exitCode !== 0) {
449
449
  throw new RepoProvisionError(instanceId, `checkout ${ref} failed: ${checkout.stderr.trim()}`);
@@ -453,23 +453,23 @@ async function provisionRepo(sandboxOrOpts, maybeOpts) {
453
453
 
454
454
  Object.defineProperty(exports, "LocalSandbox", {
455
455
  enumerable: true,
456
- get: function () { return chunkUADQJBHR_cjs.LocalSandbox; }
456
+ get: function () { return chunk7NQ7HJ3E_cjs.LocalSandbox; }
457
457
  });
458
458
  Object.defineProperty(exports, "SandboxBackend", {
459
459
  enumerable: true,
460
- get: function () { return chunkUADQJBHR_cjs.SandboxBackend; }
460
+ get: function () { return chunk7NQ7HJ3E_cjs.SandboxBackend; }
461
461
  });
462
462
  Object.defineProperty(exports, "SandboxNotAvailableError", {
463
463
  enumerable: true,
464
- get: function () { return chunkUADQJBHR_cjs.SandboxNotAvailableError; }
464
+ get: function () { return chunk7NQ7HJ3E_cjs.SandboxNotAvailableError; }
465
465
  });
466
466
  Object.defineProperty(exports, "SandboxSecurityError", {
467
467
  enumerable: true,
468
- get: function () { return chunkUADQJBHR_cjs.SandboxSecurityError; }
468
+ get: function () { return chunk7NQ7HJ3E_cjs.SandboxSecurityError; }
469
469
  });
470
470
  Object.defineProperty(exports, "resolveSandbox", {
471
471
  enumerable: true,
472
- get: function () { return chunkUADQJBHR_cjs.resolveSandbox; }
472
+ get: function () { return chunk7NQ7HJ3E_cjs.resolveSandbox; }
473
473
  });
474
474
  exports.LinuxSandbox = LinuxSandbox;
475
475
  exports.RepoProvisionError = RepoProvisionError;
@@ -1,7 +1,7 @@
1
- import { shellEscapePosix, LocalSandbox } from '../chunk-O6USDERH.js';
2
- export { LocalSandbox, SandboxBackend, SandboxNotAvailableError, SandboxSecurityError, resolveSandbox } from '../chunk-O6USDERH.js';
1
+ import { shellEscapePosix, LocalSandbox } from '../chunk-GMSRRJ53.js';
2
+ export { LocalSandbox, SandboxBackend, SandboxNotAvailableError, SandboxSecurityError, resolveSandbox } from '../chunk-GMSRRJ53.js';
3
3
  import '../chunk-HKCKOAIO.js';
4
- import { TheokitAgentError } from '../chunk-ALUN2B4W.js';
4
+ import { TheokitAgentError } from '../chunk-B5MHRQJZ.js';
5
5
  import { redactSecrets } from '../chunk-CZJ6Q7CW.js';
6
6
  import { execFileSync } from 'child_process';
7
7
  import { existsSync, mkdtempSync, writeFileSync, rmSync } from 'fs';
@@ -1,4 +1,4 @@
1
- import { M as ModelSelection, aa as SDKUserMessage, ac as SendOptions, b as Run, G as GenerateOptions, m as GenerateRunResult, Y as RunToCompletionOptions, Z as RunToCompletionResult, S as SDKMessage, aj as StreamToCompletionResult } from './run-CTAdRU3U.cjs';
1
+ import { M as ModelSelection, ab as SDKUserMessage, ad as SendOptions, b as Run, G as GenerateOptions, m as GenerateRunResult, Z as RunToCompletionOptions, _ as RunToCompletionResult, S as SDKMessage, ak as StreamToCompletionResult } from './run-DsA5Ip2i.cjs';
2
2
  import * as zod from 'zod';
3
3
 
4
4
  /**
@@ -937,4 +937,4 @@ interface InvalidateCacheOptions {
937
937
  applyNow?: boolean;
938
938
  }
939
939
 
940
- export type { AgentMemory as A, SDKPluginMetadata as B, ContextSettings as C, SDKProvidersManager as D, SystemPromptSkillRef as E, GoalOptions as G, InvalidateCacheOptions as I, JudgeResult as J, MemoryId as M, ProviderRoutingSettings as P, ResolvedProviderRoute as R, SDKAgent as S, Verdict as V, PluginsSettings as a, GoalEvent as b, GoalResult as c, SDKProvider as d, AgentOperation as e, ContextBudget as f, ContextManagerKind as g, ContextSnapshot as h, ContextSource as i, ContextSourceStatus as j, MemoryAdapter as k, MemoryAdapterCapabilities as l, MemoryContext as m, MemoryFact as n, MemoryRevision as o, MemoryToolSchema as p, MemoryTurnMessage as q, PersonalityPreset as r, ProviderCapability as s, ProviderRoute as t, RunUntilIterator as u, SDKAgentPlugins as v, SDKAgentSkillDetail as w, SDKAgentSkills as x, SDKArtifact as y, SDKContextManager as z };
940
+ export type { AgentMemory as A, SDKContextManager as B, ContextSettings as C, SDKPluginMetadata as D, SDKProvidersManager as E, ForkOptions as F, GoalOptions as G, SystemPromptSkillRef as H, InvalidateCacheOptions as I, JudgeResult as J, MemoryId as M, ProviderRoutingSettings as P, ResolvedProviderRoute as R, SDKAgent as S, Verdict as V, PluginsSettings as a, GoalEvent as b, GoalResult as c, SDKProvider as d, AgentOperation as e, ContextBudget as f, ContextManagerKind as g, ContextSnapshot as h, ContextSource as i, ContextSourceStatus as j, ForkResult as k, MemoryAdapter as l, MemoryAdapterCapabilities as m, MemoryContext as n, MemoryFact as o, MemoryRevision as p, MemoryToolSchema as q, MemoryTurnMessage as r, PersonalityPreset as s, ProviderCapability as t, ProviderRoute as u, RunUntilIterator as v, SDKAgentPlugins as w, SDKAgentSkillDetail as x, SDKAgentSkills as y, SDKArtifact as z };
@@ -1,4 +1,4 @@
1
- import { M as ModelSelection, aa as SDKUserMessage, ac as SendOptions, b as Run, G as GenerateOptions, m as GenerateRunResult, Y as RunToCompletionOptions, Z as RunToCompletionResult, S as SDKMessage, aj as StreamToCompletionResult } from './run-CTAdRU3U.js';
1
+ import { M as ModelSelection, ab as SDKUserMessage, ad as SendOptions, b as Run, G as GenerateOptions, m as GenerateRunResult, Z as RunToCompletionOptions, _ as RunToCompletionResult, S as SDKMessage, ak as StreamToCompletionResult } from './run-DsA5Ip2i.js';
2
2
  import * as zod from 'zod';
3
3
 
4
4
  /**
@@ -937,4 +937,4 @@ interface InvalidateCacheOptions {
937
937
  applyNow?: boolean;
938
938
  }
939
939
 
940
- export type { AgentMemory as A, SDKPluginMetadata as B, ContextSettings as C, SDKProvidersManager as D, SystemPromptSkillRef as E, GoalOptions as G, InvalidateCacheOptions as I, JudgeResult as J, MemoryId as M, ProviderRoutingSettings as P, ResolvedProviderRoute as R, SDKAgent as S, Verdict as V, PluginsSettings as a, GoalEvent as b, GoalResult as c, SDKProvider as d, AgentOperation as e, ContextBudget as f, ContextManagerKind as g, ContextSnapshot as h, ContextSource as i, ContextSourceStatus as j, MemoryAdapter as k, MemoryAdapterCapabilities as l, MemoryContext as m, MemoryFact as n, MemoryRevision as o, MemoryToolSchema as p, MemoryTurnMessage as q, PersonalityPreset as r, ProviderCapability as s, ProviderRoute as t, RunUntilIterator as u, SDKAgentPlugins as v, SDKAgentSkillDetail as w, SDKAgentSkills as x, SDKArtifact as y, SDKContextManager as z };
940
+ export type { AgentMemory as A, SDKContextManager as B, ContextSettings as C, SDKPluginMetadata as D, SDKProvidersManager as E, ForkOptions as F, GoalOptions as G, SystemPromptSkillRef as H, InvalidateCacheOptions as I, JudgeResult as J, MemoryId as M, ProviderRoutingSettings as P, ResolvedProviderRoute as R, SDKAgent as S, Verdict as V, PluginsSettings as a, GoalEvent as b, GoalResult as c, SDKProvider as d, AgentOperation as e, ContextBudget as f, ContextManagerKind as g, ContextSnapshot as h, ContextSource as i, ContextSourceStatus as j, ForkResult as k, MemoryAdapter as l, MemoryAdapterCapabilities as m, MemoryContext as n, MemoryFact as o, MemoryRevision as p, MemoryToolSchema as q, MemoryTurnMessage as r, PersonalityPreset as s, ProviderCapability as t, ProviderRoute as u, RunUntilIterator as v, SDKAgentPlugins as w, SDKAgentSkillDetail as x, SDKAgentSkills as y, SDKArtifact as z };
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkQWD3CZWE_cjs = require('../../chunk-QWD3CZWE.cjs');
4
- var chunkHUFSABUZ_cjs = require('../../chunk-HUFSABUZ.cjs');
5
- require('../../chunk-J7J7J2GN.cjs');
3
+ var chunkP7NNKEWO_cjs = require('../../chunk-P7NNKEWO.cjs');
4
+ var chunkOLSEWLK5_cjs = require('../../chunk-OLSEWLK5.cjs');
5
+ require('../../chunk-UNFBHV46.cjs');
6
6
  require('../../chunk-6LHQPOMI.cjs');
7
7
  var crypto = require('crypto');
8
8
 
@@ -49,7 +49,7 @@ function txCookieSecret(opts) {
49
49
  const fromEnv = process.env.THEOKIT_OAUTH_TX_SECRET;
50
50
  if (fromEnv) return fromEnv;
51
51
  if (process.env.NODE_ENV === "production") {
52
- throw new chunkHUFSABUZ_cjs.AuthConfigError(
52
+ throw new chunkOLSEWLK5_cjs.AuthConfigError(
53
53
  "missing_tx_secret",
54
54
  "No OAuth transaction secret is configured. Set THEOKIT_OAUTH_TX_SECRET to a 32+ character random value \u2014 e.g. `openssl rand -hex 32`. Refusing to encrypt the transaction cookie with the development fallback, which ships inside this package and protects nothing."
55
55
  );
@@ -58,18 +58,18 @@ function txCookieSecret(opts) {
58
58
  }
59
59
  function defineAuth(opts) {
60
60
  if (!opts.session) {
61
- throw new chunkHUFSABUZ_cjs.AuthConfigError("missing_session", "defineAuth({ session }) is required");
61
+ throw new chunkOLSEWLK5_cjs.AuthConfigError("missing_session", "defineAuth({ session }) is required");
62
62
  }
63
63
  const providersMap = /* @__PURE__ */ new Map();
64
64
  for (const provider of opts.providers ?? []) {
65
65
  if (!provider.name || !PROVIDER_NAME_RE.test(provider.name)) {
66
- throw new chunkHUFSABUZ_cjs.AuthConfigError(
66
+ throw new chunkOLSEWLK5_cjs.AuthConfigError(
67
67
  "invalid_provider_name",
68
68
  `Provider name must match ${PROVIDER_NAME_RE} (got: '${provider.name}')`
69
69
  );
70
70
  }
71
71
  if (providersMap.has(provider.name)) {
72
- throw new chunkHUFSABUZ_cjs.AuthConfigError(
72
+ throw new chunkOLSEWLK5_cjs.AuthConfigError(
73
73
  "duplicate_provider_name",
74
74
  `Duplicate provider name: '${provider.name}'`
75
75
  );
@@ -79,7 +79,7 @@ function defineAuth(opts) {
79
79
  const txSecret = txCookieSecret(opts);
80
80
  function requireProvider(name) {
81
81
  const p = providersMap.get(name);
82
- if (!p) throw new chunkHUFSABUZ_cjs.AuthProviderNotFoundError(name);
82
+ if (!p) throw new chunkOLSEWLK5_cjs.AuthProviderNotFoundError(name);
83
83
  return p;
84
84
  }
85
85
  async function startSignIn(providerName, req, startOpts) {
@@ -88,7 +88,7 @@ function defineAuth(opts) {
88
88
  const safeReturnTo = validateReturnTo(startOpts?.returnTo, baseUrl);
89
89
  const state = randomState();
90
90
  const pkceVerifier = generatePkceVerifier();
91
- const tx = chunkQWD3CZWE_cjs.newTransaction({
91
+ const tx = chunkP7NNKEWO_cjs.newTransaction({
92
92
  state,
93
93
  pkceVerifier,
94
94
  returnTo: safeReturnTo === "/" ? void 0 : safeReturnTo
@@ -96,7 +96,7 @@ function defineAuth(opts) {
96
96
  const authUrl = await provider.createAuthorizationURL(tx);
97
97
  const headers = new Headers();
98
98
  headers.set("Location", authUrl.toString());
99
- const { encodeTransaction, COOKIE_NAME } = await import('../../oauth-transaction-store-SXIE57OD.cjs');
99
+ const { encodeTransaction, COOKIE_NAME } = await import('../../oauth-transaction-store-ZINDV7AF.cjs');
100
100
  const encodedTx = await encodeTransaction(tx, txSecret);
101
101
  headers.set(
102
102
  "Set-Cookie",
@@ -111,23 +111,23 @@ function defineAuth(opts) {
111
111
  if (errorParam) {
112
112
  const errorDescription = url.searchParams.get("error_description") ?? void 0;
113
113
  if (errorParam === "access_denied") {
114
- throw new chunkHUFSABUZ_cjs.AuthCancelledError(errorDescription);
114
+ throw new chunkOLSEWLK5_cjs.AuthCancelledError(errorDescription);
115
115
  }
116
- throw new chunkHUFSABUZ_cjs.AuthCallbackError(
116
+ throw new chunkOLSEWLK5_cjs.AuthCallbackError(
117
117
  "oauth_provider_error",
118
118
  `Provider returned error: ${errorParam}${errorDescription ? ` (${errorDescription})` : ""}`
119
119
  );
120
120
  }
121
- const tx = await chunkQWD3CZWE_cjs.getTransaction(req, txSecret);
121
+ const tx = await chunkP7NNKEWO_cjs.getTransaction(req, txSecret);
122
122
  if (!tx) {
123
- throw new chunkHUFSABUZ_cjs.AuthCallbackError(
123
+ throw new chunkOLSEWLK5_cjs.AuthCallbackError(
124
124
  "oauth_transaction_expired",
125
125
  "OAuth transaction cookie missing or expired (>10min). Please retry sign-in."
126
126
  );
127
127
  }
128
128
  const queryState = url.searchParams.get("state");
129
129
  if (!queryState || queryState !== tx.state) {
130
- throw new chunkHUFSABUZ_cjs.AuthCallbackError(
130
+ throw new chunkOLSEWLK5_cjs.AuthCallbackError(
131
131
  "oauth_state_mismatch",
132
132
  "OAuth state mismatch. Possible CSRF attempt or stale callback."
133
133
  );
@@ -144,7 +144,7 @@ function defineAuth(opts) {
144
144
  } catch {
145
145
  }
146
146
  await opts.session.createSession(res, sessionData);
147
- chunkQWD3CZWE_cjs.clearTransaction(res);
147
+ chunkP7NNKEWO_cjs.clearTransaction(res);
148
148
  return { session: sessionData, returnTo: tx.returnTo };
149
149
  }
150
150
  async function signIn(profile, providerName, req, res) {
@@ -186,23 +186,23 @@ var Auth = class {
186
186
 
187
187
  Object.defineProperty(exports, "AuthSecretTooShortError", {
188
188
  enumerable: true,
189
- get: function () { return chunkQWD3CZWE_cjs.AuthSecretTooShortError; }
189
+ get: function () { return chunkP7NNKEWO_cjs.AuthSecretTooShortError; }
190
190
  });
191
191
  Object.defineProperty(exports, "AuthCallbackError", {
192
192
  enumerable: true,
193
- get: function () { return chunkHUFSABUZ_cjs.AuthCallbackError; }
193
+ get: function () { return chunkOLSEWLK5_cjs.AuthCallbackError; }
194
194
  });
195
195
  Object.defineProperty(exports, "AuthCancelledError", {
196
196
  enumerable: true,
197
- get: function () { return chunkHUFSABUZ_cjs.AuthCancelledError; }
197
+ get: function () { return chunkOLSEWLK5_cjs.AuthCancelledError; }
198
198
  });
199
199
  Object.defineProperty(exports, "AuthConfigError", {
200
200
  enumerable: true,
201
- get: function () { return chunkHUFSABUZ_cjs.AuthConfigError; }
201
+ get: function () { return chunkOLSEWLK5_cjs.AuthConfigError; }
202
202
  });
203
203
  Object.defineProperty(exports, "AuthProviderNotFoundError", {
204
204
  enumerable: true,
205
- get: function () { return chunkHUFSABUZ_cjs.AuthProviderNotFoundError; }
205
+ get: function () { return chunkOLSEWLK5_cjs.AuthProviderNotFoundError; }
206
206
  });
207
207
  exports.Auth = Auth;
208
208
  exports.validateReturnTo = validateReturnTo;
@@ -1,8 +1,8 @@
1
- import { getTransaction, clearTransaction, newTransaction } from '../../chunk-DMRT67Y6.js';
2
- export { AuthSecretTooShortError } from '../../chunk-DMRT67Y6.js';
3
- import { AuthConfigError, AuthCancelledError, AuthCallbackError, AuthProviderNotFoundError } from '../../chunk-NJWYQWDL.js';
4
- export { AuthCallbackError, AuthCancelledError, AuthConfigError, AuthProviderNotFoundError } from '../../chunk-NJWYQWDL.js';
5
- import '../../chunk-ALUN2B4W.js';
1
+ import { getTransaction, clearTransaction, newTransaction } from '../../chunk-ZJZ7LV3A.js';
2
+ export { AuthSecretTooShortError } from '../../chunk-ZJZ7LV3A.js';
3
+ import { AuthConfigError, AuthCancelledError, AuthCallbackError, AuthProviderNotFoundError } from '../../chunk-H3CVJSFC.js';
4
+ export { AuthCallbackError, AuthCancelledError, AuthConfigError, AuthProviderNotFoundError } from '../../chunk-H3CVJSFC.js';
5
+ import '../../chunk-B5MHRQJZ.js';
6
6
  import '../../chunk-CZJ6Q7CW.js';
7
7
  import { webcrypto } from 'crypto';
8
8
 
@@ -96,7 +96,7 @@ function defineAuth(opts) {
96
96
  const authUrl = await provider.createAuthorizationURL(tx);
97
97
  const headers = new Headers();
98
98
  headers.set("Location", authUrl.toString());
99
- const { encodeTransaction, COOKIE_NAME } = await import('../../oauth-transaction-store-5RIR6D5C.js');
99
+ const { encodeTransaction, COOKIE_NAME } = await import('../../oauth-transaction-store-NP2YHZ6D.js');
100
100
  const encodedTx = await encodeTransaction(tx, txSecret);
101
101
  headers.set(
102
102
  "Set-Cookie",
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkJ7J7J2GN_cjs = require('../chunk-J7J7J2GN.cjs');
3
+ var chunkUNFBHV46_cjs = require('../chunk-UNFBHV46.cjs');
4
4
  require('../chunk-6LHQPOMI.cjs');
5
5
 
6
6
  // src/server/errors-envelope.ts
@@ -37,7 +37,7 @@ function toEnvelope(value) {
37
37
  }
38
38
  function buildMeta(name, err) {
39
39
  const meta = { sdkErrorName: name };
40
- if (err instanceof chunkJ7J7J2GN_cjs.TheokitAgentError && err.metadata !== void 0) {
40
+ if (err instanceof chunkUNFBHV46_cjs.TheokitAgentError && err.metadata !== void 0) {
41
41
  meta.provider = err.metadata.provider;
42
42
  meta.endpoint = err.metadata.endpoint;
43
43
  if (err.metadata.statusCode !== void 0) {
@@ -47,13 +47,13 @@ function buildMeta(name, err) {
47
47
  return meta;
48
48
  }
49
49
  function buildExt(err) {
50
- if (err instanceof chunkJ7J7J2GN_cjs.RateLimitError && err.metadata?.retryAfter !== void 0) {
50
+ if (err instanceof chunkUNFBHV46_cjs.RateLimitError && err.metadata?.retryAfter !== void 0) {
51
51
  return {
52
52
  retryable: true,
53
53
  retryAfterMs: err.metadata.retryAfter * 1e3
54
54
  };
55
55
  }
56
- if (err instanceof chunkJ7J7J2GN_cjs.CredentialPoolExhaustedError && err.nextRetryAt !== void 0) {
56
+ if (err instanceof chunkUNFBHV46_cjs.CredentialPoolExhaustedError && err.nextRetryAt !== void 0) {
57
57
  const delayMs = Math.max(0, err.nextRetryAt - Date.now());
58
58
  return {
59
59
  retryable: true,
@@ -63,22 +63,22 @@ function buildExt(err) {
63
63
  return void 0;
64
64
  }
65
65
  var CODE_TO_RECONSTRUCTOR = /* @__PURE__ */ new Map([
66
- ["UNAUTHORIZED", (env) => new chunkJ7J7J2GN_cjs.AuthenticationError(env.message)],
66
+ ["UNAUTHORIZED", (env) => new chunkUNFBHV46_cjs.AuthenticationError(env.message)],
67
67
  [
68
68
  "RATE_LIMITED",
69
- (env) => new chunkJ7J7J2GN_cjs.RateLimitError(env.message, env.cause !== void 0 ? { cause: env.cause } : {})
69
+ (env) => new chunkUNFBHV46_cjs.RateLimitError(env.message, env.cause !== void 0 ? { cause: env.cause } : {})
70
70
  ],
71
- ["PROVIDER_KEY_MISSING", (env) => new chunkJ7J7J2GN_cjs.ConfigurationError(env.message)],
72
- ["SERVICE_UNAVAILABLE", (env) => new chunkJ7J7J2GN_cjs.NetworkError(env.message)],
73
- ["GATEWAY_TIMEOUT", (env) => new chunkJ7J7J2GN_cjs.NetworkError(env.message)],
71
+ ["PROVIDER_KEY_MISSING", (env) => new chunkUNFBHV46_cjs.ConfigurationError(env.message)],
72
+ ["SERVICE_UNAVAILABLE", (env) => new chunkUNFBHV46_cjs.NetworkError(env.message)],
73
+ ["GATEWAY_TIMEOUT", (env) => new chunkUNFBHV46_cjs.NetworkError(env.message)],
74
74
  [
75
75
  "AGENT_RUN_ERROR",
76
- (env) => new chunkJ7J7J2GN_cjs.AgentRunError(env.message, {
76
+ (env) => new chunkUNFBHV46_cjs.AgentRunError(env.message, {
77
77
  code: "unknown",
78
78
  ...env.cause !== void 0 ? { cause: env.cause } : {}
79
79
  })
80
80
  ],
81
- ["INTERNAL_SERVER_ERROR", (env) => new chunkJ7J7J2GN_cjs.UnknownAgentError(env.message)]
81
+ ["INTERNAL_SERVER_ERROR", (env) => new chunkUNFBHV46_cjs.UnknownAgentError(env.message)]
82
82
  // BUDGET_EXCEEDED + CREDENTIAL_POOL_EXHAUSTED reconstructors require
83
83
  // domain-specific args (budgetName, provider) that the envelope doesn't
84
84
  // always carry. Fall back to UnknownAgentError when those fields are
@@ -88,12 +88,12 @@ var CODE_TO_RECONSTRUCTOR = /* @__PURE__ */ new Map([
88
88
  function fromEnvelope(env) {
89
89
  const reconstructor = CODE_TO_RECONSTRUCTOR.get(env.code);
90
90
  if (reconstructor) return reconstructor(env);
91
- return new chunkJ7J7J2GN_cjs.UnknownAgentError(env.message);
91
+ return new chunkUNFBHV46_cjs.UnknownAgentError(env.message);
92
92
  }
93
93
 
94
94
  Object.defineProperty(exports, "MemoryAdapterError", {
95
95
  enumerable: true,
96
- get: function () { return chunkJ7J7J2GN_cjs.MemoryAdapterError; }
96
+ get: function () { return chunkUNFBHV46_cjs.MemoryAdapterError; }
97
97
  });
98
98
  exports.fromEnvelope = fromEnvelope;
99
99
  exports.toEnvelope = toEnvelope;
@@ -1,6 +1,6 @@
1
- export { M as MemoryAdapterError } from '../errors-DrDEgyz1.cjs';
1
+ export { M as MemoryAdapterError } from '../errors-BWOJeWTZ.cjs';
2
2
  import { T as TheokitAgentError } from '../errors-base-B5g01neU.cjs';
3
- import '../run-CTAdRU3U.cjs';
3
+ import '../run-DsA5Ip2i.cjs';
4
4
  import 'zod';
5
5
 
6
6
  /**
@@ -1,6 +1,6 @@
1
- export { M as MemoryAdapterError } from '../errors-CLOAyuiv.js';
1
+ export { M as MemoryAdapterError } from '../errors-DDvG18IB.js';
2
2
  import { T as TheokitAgentError } from '../errors-base-B5g01neU.js';
3
- import '../run-CTAdRU3U.js';
3
+ import '../run-DsA5Ip2i.js';
4
4
  import 'zod';
5
5
 
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { TheokitAgentError, RateLimitError, CredentialPoolExhaustedError, UnknownAgentError, AuthenticationError, ConfigurationError, NetworkError, AgentRunError } from '../chunk-ALUN2B4W.js';
2
- export { MemoryAdapterError } from '../chunk-ALUN2B4W.js';
1
+ import { TheokitAgentError, RateLimitError, CredentialPoolExhaustedError, UnknownAgentError, AuthenticationError, ConfigurationError, NetworkError, AgentRunError } from '../chunk-B5MHRQJZ.js';
2
+ export { MemoryAdapterError } from '../chunk-B5MHRQJZ.js';
3
3
  import '../chunk-CZJ6Q7CW.js';
4
4
 
5
5
  // src/server/errors-envelope.ts
package/dist/skills.cjs CHANGED
@@ -1,25 +1,25 @@
1
1
  'use strict';
2
2
 
3
- var chunkMYJGWS2J_cjs = require('./chunk-MYJGWS2J.cjs');
4
- require('./chunk-7A6535RA.cjs');
3
+ var chunkHG5LKFG7_cjs = require('./chunk-HG5LKFG7.cjs');
4
+ require('./chunk-GM54F4FE.cjs');
5
5
  require('./chunk-SA6K24NB.cjs');
6
- require('./chunk-QRVS2PRE.cjs');
7
- require('./chunk-J7J7J2GN.cjs');
6
+ require('./chunk-MPR2ISL2.cjs');
7
+ require('./chunk-UNFBHV46.cjs');
8
8
  require('./chunk-6LHQPOMI.cjs');
9
9
 
10
10
 
11
11
 
12
12
  Object.defineProperty(exports, "buildSkillsBlock", {
13
13
  enumerable: true,
14
- get: function () { return chunkMYJGWS2J_cjs.buildSkillsBlock; }
14
+ get: function () { return chunkHG5LKFG7_cjs.buildSkillsBlock; }
15
15
  });
16
16
  Object.defineProperty(exports, "discoverSkills", {
17
17
  enumerable: true,
18
- get: function () { return chunkMYJGWS2J_cjs.discoverSkills; }
18
+ get: function () { return chunkHG5LKFG7_cjs.discoverSkills; }
19
19
  });
20
20
  Object.defineProperty(exports, "loadSkillInstructions", {
21
21
  enumerable: true,
22
- get: function () { return chunkMYJGWS2J_cjs.loadSkillInstructions; }
22
+ get: function () { return chunkHG5LKFG7_cjs.loadSkillInstructions; }
23
23
  });
24
24
  //# sourceMappingURL=skills.cjs.map
25
25
  //# sourceMappingURL=skills.cjs.map
package/dist/skills.js CHANGED
@@ -1,8 +1,8 @@
1
- export { buildSkillsBlock, discoverSkills, loadSkillInstructions } from './chunk-CA5VUAP3.js';
2
- import './chunk-EH6XD3FY.js';
1
+ export { buildSkillsBlock, discoverSkills, loadSkillInstructions } from './chunk-7HUCU3KK.js';
2
+ import './chunk-5DD4NJN3.js';
3
3
  import './chunk-UKMBRMGT.js';
4
- import './chunk-UOLBAPDM.js';
5
- import './chunk-ALUN2B4W.js';
4
+ import './chunk-MQGSOKR3.js';
5
+ import './chunk-B5MHRQJZ.js';
6
6
  import './chunk-CZJ6Q7CW.js';
7
7
  //# sourceMappingURL=skills.js.map
8
8
  //# sourceMappingURL=skills.js.map
@@ -0,0 +1,7 @@
1
+ export { StreamObjectError, streamObjectImpl } from './chunk-AY43232P.js';
2
+ import './chunk-KO6SHCEH.js';
3
+ import './chunk-7I5Z3UBJ.js';
4
+ import './chunk-B5MHRQJZ.js';
5
+ import './chunk-CZJ6Q7CW.js';
6
+ //# sourceMappingURL=stream-object-QAEHG4YO.js.map
7
+ //# sourceMappingURL=stream-object-QAEHG4YO.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"stream-object-HBFMIZLD.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"stream-object-QAEHG4YO.js"}
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var chunkKGZ66JVZ_cjs = require('./chunk-KGZ66JVZ.cjs');
4
+ require('./chunk-D5KXKBEN.cjs');
5
+ require('./chunk-AA27GEYS.cjs');
6
+ require('./chunk-UNFBHV46.cjs');
7
+ require('./chunk-6LHQPOMI.cjs');
8
+
9
+
10
+
11
+ Object.defineProperty(exports, "StreamObjectError", {
12
+ enumerable: true,
13
+ get: function () { return chunkKGZ66JVZ_cjs.StreamObjectError; }
14
+ });
15
+ Object.defineProperty(exports, "streamObjectImpl", {
16
+ enumerable: true,
17
+ get: function () { return chunkKGZ66JVZ_cjs.streamObjectImpl; }
18
+ });
19
+ //# sourceMappingURL=stream-object-TKVGGA54.cjs.map
20
+ //# sourceMappingURL=stream-object-TKVGGA54.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"stream-object-QSKHISDJ.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"stream-object-TKVGGA54.cjs"}
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var chunkXW4POZ6V_cjs = require('./chunk-XW4POZ6V.cjs');
4
+ require('./chunk-TY56BKSK.cjs');
5
+ require('./chunk-MPR2ISL2.cjs');
6
+ require('./chunk-UNFBHV46.cjs');
7
+ require('./chunk-6LHQPOMI.cjs');
8
+
9
+
10
+
11
+ Object.defineProperty(exports, "loadSubagents", {
12
+ enumerable: true,
13
+ get: function () { return chunkXW4POZ6V_cjs.loadSubagents; }
14
+ });
15
+ //# sourceMappingURL=subagents-loader-7GE7YUDI.cjs.map
16
+ //# sourceMappingURL=subagents-loader-7GE7YUDI.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"subagents-loader-MOO7DC4E.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"subagents-loader-7GE7YUDI.cjs"}
@@ -0,0 +1,7 @@
1
+ export { loadSubagents } from './chunk-W4VQMXBZ.js';
2
+ import './chunk-X7EUUHXU.js';
3
+ import './chunk-MQGSOKR3.js';
4
+ import './chunk-B5MHRQJZ.js';
5
+ import './chunk-CZJ6Q7CW.js';
6
+ //# sourceMappingURL=subagents-loader-S2PMZY7J.js.map
7
+ //# sourceMappingURL=subagents-loader-S2PMZY7J.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"subagents-loader-CJFYQQU2.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"subagents-loader-S2PMZY7J.js"}