@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/index.cjs CHANGED
@@ -1,70 +1,71 @@
1
1
  'use strict';
2
2
 
3
- var chunkTFG5IBZS_cjs = require('./chunk-TFG5IBZS.cjs');
3
+ var chunkKGZ66JVZ_cjs = require('./chunk-KGZ66JVZ.cjs');
4
4
  var chunkOBA6YK2R_cjs = require('./chunk-OBA6YK2R.cjs');
5
- var chunkQDM3OHUT_cjs = require('./chunk-QDM3OHUT.cjs');
6
- var chunk52FDUJSV_cjs = require('./chunk-52FDUJSV.cjs');
7
- var chunkQWD4RDZ3_cjs = require('./chunk-QWD4RDZ3.cjs');
8
- require('./chunk-7JJ3A6AT.cjs');
9
- var chunk4HS6FFGL_cjs = require('./chunk-4HS6FFGL.cjs');
10
- require('./chunk-4A3SKJ53.cjs');
5
+ var chunkECD6ER3E_cjs = require('./chunk-ECD6ER3E.cjs');
6
+ var chunkT5KOSR5Y_cjs = require('./chunk-T5KOSR5Y.cjs');
7
+ var chunkXDUGSTYJ_cjs = require('./chunk-XDUGSTYJ.cjs');
8
+ require('./chunk-D5KXKBEN.cjs');
9
+ var chunkMPQJE3G4_cjs = require('./chunk-MPQJE3G4.cjs');
10
+ require('./chunk-6PB5AQCY.cjs');
11
11
  require('./chunk-VTYY7XL5.cjs');
12
- var chunkHG4UN4MN_cjs = require('./chunk-HG4UN4MN.cjs');
13
- var chunkGCHZMH42_cjs = require('./chunk-GCHZMH42.cjs');
14
- var chunkKVSAY6NZ_cjs = require('./chunk-KVSAY6NZ.cjs');
15
- require('./chunk-DZG77WU7.cjs');
12
+ var chunkAOHRKGAA_cjs = require('./chunk-AOHRKGAA.cjs');
13
+ var chunk2STSX2SY_cjs = require('./chunk-2STSX2SY.cjs');
14
+ var chunkJ6GXS5A2_cjs = require('./chunk-J6GXS5A2.cjs');
15
+ require('./chunk-PSLCVSCS.cjs');
16
16
  require('./chunk-BUUUWQMB.cjs');
17
- require('./chunk-VUHXC74Q.cjs');
18
- require('./chunk-7IZKTQ5G.cjs');
17
+ require('./chunk-TTBIQTO5.cjs');
18
+ require('./chunk-J4SA2ZEJ.cjs');
19
19
  require('./chunk-BV2MWEMV.cjs');
20
- require('./chunk-D6POWE7E.cjs');
20
+ require('./chunk-MEUBLCM4.cjs');
21
21
  require('./chunk-GHX4P3V2.cjs');
22
22
  require('./chunk-TMKTSYDS.cjs');
23
- var chunkGFFBXSQT_cjs = require('./chunk-GFFBXSQT.cjs');
24
- var chunk7FDKWDA2_cjs = require('./chunk-7FDKWDA2.cjs');
25
- var chunkC4ZQPWXJ_cjs = require('./chunk-C4ZQPWXJ.cjs');
26
- require('./chunk-FUSDYC2B.cjs');
23
+ var chunk76PIKR4P_cjs = require('./chunk-76PIKR4P.cjs');
24
+ var chunkB3XXQX6L_cjs = require('./chunk-B3XXQX6L.cjs');
25
+ var chunkARMFXTY6_cjs = require('./chunk-ARMFXTY6.cjs');
26
+ require('./chunk-CQYBJOB2.cjs');
27
27
  require('./chunk-YJNYDJ2T.cjs');
28
- require('./chunk-24SYBZPL.cjs');
28
+ require('./chunk-WPO3VCY4.cjs');
29
29
  require('./chunk-QOGNZMHD.cjs');
30
30
  var chunkYIFFF23U_cjs = require('./chunk-YIFFF23U.cjs');
31
31
  require('./chunk-2ZPEDVLM.cjs');
32
- require('./chunk-EIOMN5VA.cjs');
32
+ require('./chunk-KTA7YTZQ.cjs');
33
+ require('./chunk-OCEQ6DW2.cjs');
33
34
  require('./chunk-KRD3GQAA.cjs');
34
35
  require('./chunk-RQMCOFAI.cjs');
35
36
  require('./chunk-MUUQ2WFJ.cjs');
36
37
  var chunkAA27GEYS_cjs = require('./chunk-AA27GEYS.cjs');
37
38
  require('./chunk-YSTXFWQE.cjs');
38
39
  require('./chunk-FRITRLZQ.cjs');
39
- require('./chunk-NQTD6QOW.cjs');
40
+ require('./chunk-JW3GVLM6.cjs');
40
41
  require('./chunk-NINIJCHU.cjs');
41
- var chunkMYJGWS2J_cjs = require('./chunk-MYJGWS2J.cjs');
42
- require('./chunk-LD6HASA5.cjs');
42
+ var chunkHG5LKFG7_cjs = require('./chunk-HG5LKFG7.cjs');
43
+ require('./chunk-SWALPLFQ.cjs');
43
44
  require('./chunk-IJ7M6GOG.cjs');
44
- require('./chunk-7A6535RA.cjs');
45
+ require('./chunk-GM54F4FE.cjs');
45
46
  require('./chunk-SA6K24NB.cjs');
46
- require('./chunk-I2PWY7VM.cjs');
47
- require('./chunk-KTTHHYEW.cjs');
48
- require('./chunk-Z3NTRKIC.cjs');
47
+ require('./chunk-IIYJMXYW.cjs');
48
+ require('./chunk-NJSIAJEK.cjs');
49
+ require('./chunk-NKIQTLFA.cjs');
49
50
  require('./chunk-GZV6AVRL.cjs');
50
51
  require('./chunk-A4RAL2ER.cjs');
51
- require('./chunk-DQZU7JK6.cjs');
52
- require('./chunk-BJUJT5ED.cjs');
52
+ require('./chunk-P22BZE7G.cjs');
53
+ require('./chunk-OF2CLCTH.cjs');
53
54
  var chunkZF2LDKQQ_cjs = require('./chunk-ZF2LDKQQ.cjs');
54
- var chunkHCT4HPCL_cjs = require('./chunk-HCT4HPCL.cjs');
55
+ var chunkGHHIJEFX_cjs = require('./chunk-GHHIJEFX.cjs');
55
56
  var chunkJLRLCBJ4_cjs = require('./chunk-JLRLCBJ4.cjs');
56
- require('./chunk-RWPLWMCZ.cjs');
57
+ require('./chunk-XW4POZ6V.cjs');
57
58
  var chunkTY56BKSK_cjs = require('./chunk-TY56BKSK.cjs');
58
- require('./chunk-QRVS2PRE.cjs');
59
- var chunkATT276RD_cjs = require('./chunk-ATT276RD.cjs');
59
+ require('./chunk-MPR2ISL2.cjs');
60
+ var chunkJ5623RIV_cjs = require('./chunk-J5623RIV.cjs');
60
61
  var chunk3EE6LVWT_cjs = require('./chunk-3EE6LVWT.cjs');
61
- require('./chunk-ANMJJD6D.cjs');
62
- var chunkQC55H6RJ_cjs = require('./chunk-QC55H6RJ.cjs');
62
+ require('./chunk-R3ZQBPA5.cjs');
63
+ var chunkYRJA2POB_cjs = require('./chunk-YRJA2POB.cjs');
63
64
  require('./chunk-NVXXWAU7.cjs');
64
- require('./chunk-4NLCWGH7.cjs');
65
- require('./chunk-EXTRW7GW.cjs');
66
- require('./chunk-HUFSABUZ.cjs');
67
- var chunkJ7J7J2GN_cjs = require('./chunk-J7J7J2GN.cjs');
65
+ require('./chunk-RA7IE4NK.cjs');
66
+ require('./chunk-NAGPKWOD.cjs');
67
+ require('./chunk-OLSEWLK5.cjs');
68
+ var chunkUNFBHV46_cjs = require('./chunk-UNFBHV46.cjs');
68
69
  var chunk6LHQPOMI_cjs = require('./chunk-6LHQPOMI.cjs');
69
70
  var crypto = require('crypto');
70
71
  var promises = require('fs/promises');
@@ -75,8 +76,8 @@ var os = require('os');
75
76
  // src/agent-factory.ts
76
77
  function createAgentFactory(common) {
77
78
  return {
78
- forSession: (agentId, overrides) => chunkGCHZMH42_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
79
- getOrCreate: (agentId, overrides) => chunkGCHZMH42_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
79
+ forSession: (agentId, overrides) => chunk2STSX2SY_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
80
+ getOrCreate: (agentId, overrides) => chunk2STSX2SY_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
80
81
  };
81
82
  }
82
83
  function mergeAgentOptions(common, overrides, agentId) {
@@ -230,12 +231,12 @@ var NAME_GRAMMAR = /^[a-z0-9][a-z0-9_-]*$/;
230
231
  var registry = /* @__PURE__ */ new Map();
231
232
  function validateBudgetName(name) {
232
233
  if (typeof name !== "string" || name.length === 0) {
233
- throw new chunkJ7J7J2GN_cjs.ConfigurationError("Budget name must be a non-empty string", {
234
+ throw new chunkUNFBHV46_cjs.ConfigurationError("Budget name must be a non-empty string", {
234
235
  code: "invalid_budget_name"
235
236
  });
236
237
  }
237
238
  if (!NAME_GRAMMAR.test(name)) {
238
- throw new chunkJ7J7J2GN_cjs.ConfigurationError(
239
+ throw new chunkUNFBHV46_cjs.ConfigurationError(
239
240
  `Budget name "${name}" must match ^[a-z0-9][a-z0-9_-]*$ (lowercase + dash/underscore, start alphanumeric)`,
240
241
  { code: "invalid_budget_name" }
241
242
  );
@@ -243,7 +244,7 @@ function validateBudgetName(name) {
243
244
  }
244
245
  function assertImplementedScope(scope) {
245
246
  if (scope === "process") return;
246
- throw new chunkJ7J7J2GN_cjs.ConfigurationError(
247
+ throw new chunkUNFBHV46_cjs.ConfigurationError(
247
248
  `Budget scope "${scope}" is declared but not implemented \u2014 only "process" is honoured. A budget created with it would have been accounted process-wide with no warning.`,
248
249
  { code: "unimplemented_budget_scope" }
249
250
  );
@@ -252,7 +253,7 @@ function createBudget(opts) {
252
253
  validateBudgetName(opts.name);
253
254
  assertImplementedScope(opts.scope);
254
255
  if (registry.has(opts.name)) {
255
- throw new chunkJ7J7J2GN_cjs.ConfigurationError(`Budget "${opts.name}" already exists`, {
256
+ throw new chunkUNFBHV46_cjs.ConfigurationError(`Budget "${opts.name}" already exists`, {
256
257
  code: "invalid_budget_name"
257
258
  });
258
259
  }
@@ -316,7 +317,7 @@ function preflightCheck(name, estimatedUsd) {
316
317
  for (const lim of opts.limits) {
317
318
  const currentSpent = spentIn(opts.name, lim.window);
318
319
  if (currentSpent + estimatedUsd > lim.limitUsd) {
319
- throw new chunkJ7J7J2GN_cjs.BudgetExceededError({
320
+ throw new chunkUNFBHV46_cjs.BudgetExceededError({
320
321
  budgetName: opts.name,
321
322
  window: lim.window,
322
323
  spentUsd: currentSpent + estimatedUsd,
@@ -563,19 +564,19 @@ function createUnicodeNormalizer(opts = {}) {
563
564
  }
564
565
  function createTokenLimiter(opts) {
565
566
  if (!Number.isInteger(opts.limit) || opts.limit <= 0) {
566
- throw new chunkJ7J7J2GN_cjs.ConfigurationError("createTokenLimiter: `limit` must be a positive integer.", {
567
+ throw new chunkUNFBHV46_cjs.ConfigurationError("createTokenLimiter: `limit` must be a positive integer.", {
567
568
  code: "invalid_processor_options"
568
569
  });
569
570
  }
570
571
  const limit = opts.limit;
571
572
  const strategy = opts.strategy ?? "truncate";
572
573
  const cap = (text, controls) => {
573
- const estimated = chunkATT276RD_cjs.estimateTokens(text);
574
+ const estimated = chunkJ5623RIV_cjs.estimateTokens(text);
574
575
  if (estimated <= limit) return text;
575
576
  if (strategy === "block") {
576
577
  controls.abort(`exceeds token limit ${limit} (~${estimated} estimated)`);
577
578
  }
578
- return [...text].slice(0, limit * chunkATT276RD_cjs.CHARS_PER_TOKEN).join("");
579
+ return [...text].slice(0, limit * chunkJ5623RIV_cjs.CHARS_PER_TOKEN).join("");
579
580
  };
580
581
  return {
581
582
  id: "token-limiter",
@@ -601,12 +602,12 @@ var UnicodeNormalizer = class {
601
602
  // src/create-skill.ts
602
603
  function createSkill(spec) {
603
604
  if (!spec.name) {
604
- throw new chunkJ7J7J2GN_cjs.ConfigurationError("createSkill: `name` is required.", {
605
+ throw new chunkUNFBHV46_cjs.ConfigurationError("createSkill: `name` is required.", {
605
606
  code: "invalid_skill_spec"
606
607
  });
607
608
  }
608
609
  if (!spec.description) {
609
- throw new chunkJ7J7J2GN_cjs.ConfigurationError("createSkill: `description` is required.", {
610
+ throw new chunkUNFBHV46_cjs.ConfigurationError("createSkill: `description` is required.", {
610
611
  code: "invalid_skill_spec"
611
612
  });
612
613
  }
@@ -664,8 +665,8 @@ var Provider = class _Provider {
664
665
  * `.plugins(Provider.builtins())` once, then pick a `provider/model` id. @public
665
666
  */
666
667
  static builtins() {
667
- chunkQC55H6RJ_cjs.registerBuiltins();
668
- return chunkQC55H6RJ_cjs.listProviders().map((profile) => defineProvider(profile));
668
+ chunkYRJA2POB_cjs.registerBuiltins();
669
+ return chunkYRJA2POB_cjs.listProviders().map((profile) => defineProvider(profile));
669
670
  }
670
671
  /**
671
672
  * The builtin serving `modelId`, or `undefined` when none does.
@@ -694,7 +695,7 @@ async function resolveBody(skill) {
694
695
  }
695
696
  const source = skill.source;
696
697
  const skillDir = path.dirname(source);
697
- const body = chunkMYJGWS2J_cjs.stripSkillFrontmatter(await promises.readFile(source, "utf8"));
698
+ const body = chunkHG5LKFG7_cjs.stripSkillFrontmatter(await promises.readFile(source, "utf8"));
698
699
  const instructions = body.replaceAll(SKILL_DIR_PLACEHOLDER, skillDir);
699
700
  const references = await readReferences(skillDir);
700
701
  return references === void 0 ? { instructions } : { instructions, references };
@@ -736,7 +737,7 @@ function defineSkillReadTool(skills) {
736
737
  const seen = /* @__PURE__ */ new Set();
737
738
  for (const skill of skills) {
738
739
  if (seen.has(skill.name)) {
739
- throw new chunkJ7J7J2GN_cjs.ConfigurationError(`defineSkillReadTool: duplicate skill name "${skill.name}".`, {
740
+ throw new chunkUNFBHV46_cjs.ConfigurationError(`defineSkillReadTool: duplicate skill name "${skill.name}".`, {
740
741
  code: "duplicate_skill_name"
741
742
  });
742
743
  }
@@ -840,7 +841,7 @@ function runGoalLoop(agent, goal, options, depsOverride) {
840
841
  async function* wrap() {
841
842
  const { runUntilImpl } = await import('./run-until-DG2KXWB2.cjs');
842
843
  const deps = depsOverride ?? await (async () => {
843
- const { judgeCallImpl } = await import('./judge-call-46M2E5FA.cjs');
844
+ const { judgeCallImpl } = await import('./judge-call-AQQYK6VT.cjs');
844
845
  const { getAgentFacade } = await import('./agent-factory-registry-UU46BUMU.cjs');
845
846
  const create = getAgentFacade().create;
846
847
  return {
@@ -962,7 +963,7 @@ function effectiveToolNames(options) {
962
963
  function refuseCreatedTool(options) {
963
964
  const candidate = options;
964
965
  if (candidate.handler === void 0 || candidate.inputSchema === void 0) return;
965
- throw new chunkJ7J7J2GN_cjs.ConfigurationError(
966
+ throw new chunkUNFBHV46_cjs.ConfigurationError(
966
967
  `effectiveToolNames received a created tool${typeof candidate.name === "string" ? ` ("${candidate.name}")` : ""}, not AgentOptions. \`SubAgent.create()\` returns a CustomTool and closes its spec inside the handler, so the spec cannot be recovered from it. Pass the spec you built it from \u2014 keep it in a variable, or extract it into a function the test can call.`,
967
968
  { code: "effective_tools_expected_options" }
968
969
  );
@@ -1083,7 +1084,7 @@ var JobQueue = class {
1083
1084
  };
1084
1085
 
1085
1086
  // src/layer-fold.ts
1086
- var LayerOrderError = class extends chunkJ7J7J2GN_cjs.TheokitAgentError {
1087
+ var LayerOrderError = class extends chunkUNFBHV46_cjs.TheokitAgentError {
1087
1088
  name = "LayerOrderError";
1088
1089
  };
1089
1090
  function verifyLayerOrdering(layers) {
@@ -1257,8 +1258,8 @@ async function runInner(options) {
1257
1258
  const now = options.now ?? Date.now;
1258
1259
  const timestampMs = now();
1259
1260
  try {
1260
- const root = options.memoryRoot ?? chunkGFFBXSQT_cjs.resolveMemoryRoot(options.cwd);
1261
- const facts = await chunkGFFBXSQT_cjs.readFactsFromMarkdown(
1261
+ const root = options.memoryRoot ?? chunk76PIKR4P_cjs.resolveMemoryRoot(options.cwd);
1262
+ const facts = await chunk76PIKR4P_cjs.readFactsFromMarkdown(
1262
1263
  options.cwd,
1263
1264
  options.memoryRoot ? { directory: options.memoryRoot } : void 0
1264
1265
  );
@@ -1277,7 +1278,7 @@ async function runInner(options) {
1277
1278
  notesWritten,
1278
1279
  diaryEntryHash: void 0
1279
1280
  };
1280
- await chunk52FDUJSV_cjs.appendDiaryEntry(root, {
1281
+ await chunkT5KOSR5Y_cjs.appendDiaryEntry(root, {
1281
1282
  timestampMs,
1282
1283
  factsBefore: result.factsBefore,
1283
1284
  factsAfter: result.factsAfter,
@@ -1371,8 +1372,8 @@ var Memory = {
1371
1372
  openArgs.embedding = await resolveEmbedding(opts.embedding, peer.MEMORY_EMBEDDING_ADAPTERS);
1372
1373
  return await peer.IndexManager.open(openArgs);
1373
1374
  }
1374
- const { IndexManager } = await import('./index-manager-BBHDKMQS.cjs');
1375
- openArgs.embedding = await resolveEmbedding(opts.embedding, chunkGCHZMH42_cjs.MEMORY_EMBEDDING_ADAPTERS);
1375
+ const { IndexManager } = await import('./index-manager-ZGJN25FD.cjs');
1376
+ openArgs.embedding = await resolveEmbedding(opts.embedding, chunk2STSX2SY_cjs.MEMORY_EMBEDDING_ADAPTERS);
1376
1377
  return await IndexManager.open(openArgs);
1377
1378
  },
1378
1379
  /**
@@ -1383,7 +1384,7 @@ var Memory = {
1383
1384
  */
1384
1385
  async runDreamingSweep(opts) {
1385
1386
  const peer = await tryLoadSdkMemoryPeer();
1386
- const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkGCHZMH42_cjs.MEMORY_EMBEDDING_ADAPTERS;
1387
+ const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunk2STSX2SY_cjs.MEMORY_EMBEDDING_ADAPTERS;
1387
1388
  const sweepArgs = await buildDreamingSweepArgs(opts, catalog);
1388
1389
  const result = peer !== null ? (
1389
1390
  // biome-ignore lint/suspicious/noExplicitAny: peer is dynamically loaded — structural compat ensured by sdk-memory
@@ -1417,7 +1418,7 @@ async function buildDreamingSweepArgs(opts, catalog) {
1417
1418
  const runtime = await resolveEmbedding(opts.embedding, catalog);
1418
1419
  return {
1419
1420
  cwd: opts.cwd,
1420
- memoryRoot: chunkGFFBXSQT_cjs.resolveMemoryRoot(opts.cwd, { directory: opts.directory }),
1421
+ memoryRoot: chunk76PIKR4P_cjs.resolveMemoryRoot(opts.cwd, { directory: opts.directory }),
1421
1422
  embedding: runtime,
1422
1423
  ...opts.dedupThreshold !== void 0 ? { dedupThreshold: opts.dedupThreshold } : {},
1423
1424
  ...opts.clusterThreshold !== void 0 ? { clusterThreshold: opts.clusterThreshold } : {}
@@ -1442,7 +1443,7 @@ function extractRawId(id, expectedAdapterId) {
1442
1443
  const prefix = `${expectedAdapterId}:`;
1443
1444
  if (!id.startsWith(prefix)) {
1444
1445
  const sourcePrefix = id.split(":", 1)[0] ?? "<malformed>";
1445
- throw new chunkJ7J7J2GN_cjs.MemoryAdapterError(
1446
+ throw new chunkUNFBHV46_cjs.MemoryAdapterError(
1446
1447
  `MemoryId belongs to a different adapter (expected "${expectedAdapterId}", got "${sourcePrefix}")`,
1447
1448
  { adapterId: expectedAdapterId, code: "invalid_input" }
1448
1449
  );
@@ -1456,7 +1457,7 @@ async function migrateSqliteToLance2(options) {
1456
1457
  if (peer !== null) {
1457
1458
  return peer.migrateSqliteToLance(options);
1458
1459
  }
1459
- return chunk52FDUJSV_cjs.migrateSqliteToLance(options);
1460
+ return chunkT5KOSR5Y_cjs.migrateSqliteToLance(options);
1460
1461
  }
1461
1462
 
1462
1463
  // src/permission-engine.ts
@@ -1678,12 +1679,12 @@ function parseOne(rule, action) {
1678
1679
  const open = trimmed.indexOf("(");
1679
1680
  if (open === -1) {
1680
1681
  if (trimmed.length === 0) {
1681
- throw new chunkJ7J7J2GN_cjs.ConfigurationError("permission rule is empty", { code: "permission_rule_invalid" });
1682
+ throw new chunkUNFBHV46_cjs.ConfigurationError("permission rule is empty", { code: "permission_rule_invalid" });
1682
1683
  }
1683
1684
  return [{ tool: normaliseToolName(trimmed), action }];
1684
1685
  }
1685
1686
  if (!trimmed.endsWith(")")) {
1686
- throw new chunkJ7J7J2GN_cjs.ConfigurationError(
1687
+ throw new chunkUNFBHV46_cjs.ConfigurationError(
1687
1688
  `permission rule "${rule}" opens a specifier and never closes it \u2014 expected Tool(specifier)`,
1688
1689
  { code: "permission_rule_invalid" }
1689
1690
  );
@@ -1691,7 +1692,7 @@ function parseOne(rule, action) {
1691
1692
  const tool = trimmed.slice(0, open).trim();
1692
1693
  const specifier = trimmed.slice(open + 1, -1);
1693
1694
  if (tool.length === 0) {
1694
- throw new chunkJ7J7J2GN_cjs.ConfigurationError(`permission rule "${rule}" names no tool`, {
1695
+ throw new chunkUNFBHV46_cjs.ConfigurationError(`permission rule "${rule}" names no tool`, {
1695
1696
  code: "permission_rule_invalid"
1696
1697
  });
1697
1698
  }
@@ -1775,7 +1776,7 @@ function loadProjectEnv(env = process.env, load = typeof process.loadEnvFile ===
1775
1776
  }
1776
1777
 
1777
1778
  // src/reap-plan.ts
1778
- var RetentionPolicyError = class extends chunkJ7J7J2GN_cjs.TheokitAgentError {
1779
+ var RetentionPolicyError = class extends chunkUNFBHV46_cjs.TheokitAgentError {
1779
1780
  name = "RetentionPolicyError";
1780
1781
  };
1781
1782
  function assertPolicy(retention) {
@@ -1859,7 +1860,7 @@ async function normalizeValibotSchema(schema) {
1859
1860
  return mod.toJsonSchema(schema);
1860
1861
  } catch (err) {
1861
1862
  if (!isMissingModuleError(err)) throw err;
1862
- throw new chunkJ7J7J2GN_cjs.ConfigurationError(
1863
+ throw new chunkUNFBHV46_cjs.ConfigurationError(
1863
1864
  "normalizeSchema: a Valibot schema requires the optional '@valibot/to-json-schema' package. Install it, or use a Zod schema (the default recommendation).",
1864
1865
  { code: "valibot_converter_missing" }
1865
1866
  );
@@ -1872,7 +1873,7 @@ async function normalizeSchema(schema) {
1872
1873
  return chunkAA27GEYS_cjs.toJsonSchema(schema, { unrepresentable: "any" });
1873
1874
  }
1874
1875
  if (hasToJsonSchemaMethod(schema)) return schema.toJsonSchema();
1875
- throw new chunkJ7J7J2GN_cjs.ConfigurationError(
1876
+ throw new chunkUNFBHV46_cjs.ConfigurationError(
1876
1877
  "normalizeSchema: unsupported schema. Supported: Zod (default), JSON Schema, ArkType (.toJsonSchema()), Valibot (with @valibot/to-json-schema).",
1877
1878
  { code: "unsupported_schema" }
1878
1879
  );
@@ -1926,7 +1927,7 @@ var Security = class {
1926
1927
  */
1927
1928
  static addPattern(re) {
1928
1929
  if (!re.global) {
1929
- throw new chunkJ7J7J2GN_cjs.ConfigurationError(
1930
+ throw new chunkUNFBHV46_cjs.ConfigurationError(
1930
1931
  "Security.addPattern: regex must have /g flag for replace-all semantics",
1931
1932
  { code: "invalid_redaction_pattern" }
1932
1933
  );
@@ -1969,7 +1970,7 @@ function applySecurityFloor(input) {
1969
1970
  }
1970
1971
 
1971
1972
  // src/session-guard.ts
1972
- var LiveSessionError = class extends chunkJ7J7J2GN_cjs.TheokitAgentError {
1973
+ var LiveSessionError = class extends chunkUNFBHV46_cjs.TheokitAgentError {
1973
1974
  name = "LiveSessionError";
1974
1975
  sessionId;
1975
1976
  reason;
@@ -1993,8 +1994,8 @@ function guardSessionDestruction(sessionId, live) {
1993
1994
  // src/session-messages.ts
1994
1995
  async function readSessionMessages2(options) {
1995
1996
  const cwd = options.cwd ?? process.cwd();
1996
- const baseDir = chunkGCHZMH42_cjs.resolveSessionDir({ sessionDir: options.sessionDir });
1997
- return chunkYIFFF23U_cjs.readSessionMessages(new chunk7FDKWDA2_cjs.FsSessionStore({ baseDir, cwd }), options.sessionId);
1997
+ const baseDir = chunk2STSX2SY_cjs.resolveSessionDir({ sessionDir: options.sessionDir });
1998
+ return chunkYIFFF23U_cjs.readSessionMessages(new chunkB3XXQX6L_cjs.FsSessionStore({ baseDir, cwd }), options.sessionId);
1998
1999
  }
1999
2000
 
2000
2001
  // src/session-scope.ts
@@ -2010,7 +2011,7 @@ function isBuiltAgent(m) {
2010
2011
  return typeof m.send === "function";
2011
2012
  }
2012
2013
  async function materialize(def, index) {
2013
- const { Agent: Agent2 } = await import('./agent-47NS6ZVL.cjs');
2014
+ const { Agent: Agent2 } = await import('./agent-LNTR4QH5.cjs');
2014
2015
  return Agent2.create({
2015
2016
  // `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
2016
2017
  // here means "declare nothing and let the default apply" — forwarding the literal would create
@@ -2024,12 +2025,12 @@ async function materialize(def, index) {
2024
2025
  function createSquad(options) {
2025
2026
  const { agents } = options;
2026
2027
  if (!Array.isArray(agents) || agents.length === 0) {
2027
- throw new chunkJ7J7J2GN_cjs.ConfigurationError("createSquad requires a non-empty `agents` array", {
2028
+ throw new chunkUNFBHV46_cjs.ConfigurationError("createSquad requires a non-empty `agents` array", {
2028
2029
  code: "invalid_squad"
2029
2030
  });
2030
2031
  }
2031
2032
  if (options.process !== void 0 && options.process !== "sequential") {
2032
- throw new chunkJ7J7J2GN_cjs.ConfigurationError(
2033
+ throw new chunkUNFBHV46_cjs.ConfigurationError(
2033
2034
  `createSquad only supports process "sequential"; for manager\u2192worker delegation use subagents or @theokit/sdk-handoff`,
2034
2035
  { code: "squad_process_unsupported" }
2035
2036
  );
@@ -2042,13 +2043,13 @@ function createSquad(options) {
2042
2043
  };
2043
2044
  }
2044
2045
  async function buildPipeline(agents, name) {
2045
- let builder = chunk4HS6FFGL_cjs.Workflow.create({ name: name ?? "squad" });
2046
+ let builder = chunkMPQJE3G4_cjs.Workflow.create({ name: name ?? "squad" });
2046
2047
  for (let i = 0; i < agents.length; i++) {
2047
2048
  const member = agents[i];
2048
2049
  if (member === void 0) continue;
2049
2050
  const agent = isBuiltAgent(member) ? member : await materialize(member, i);
2050
2051
  const opts = i > 0 ? { origin: { kind: "peer", from: `agent-${i - 1}` } } : void 0;
2051
- builder = builder.then(chunk4HS6FFGL_cjs.agentStep(`agent-${i}`, agent, (prev) => String(prev), opts));
2052
+ builder = builder.then(chunkMPQJE3G4_cjs.agentStep(`agent-${i}`, agent, (prev) => String(prev), opts));
2052
2053
  }
2053
2054
  return builder.commit();
2054
2055
  }
@@ -2072,7 +2073,7 @@ var Task = class {
2072
2073
  * (D369), and retention (D373).
2073
2074
  */
2074
2075
  static configure(opts) {
2075
- chunkKVSAY6NZ_cjs.configure(opts);
2076
+ chunkJ6GXS5A2_cjs.configure(opts);
2076
2077
  }
2077
2078
  /**
2078
2079
  * Submit a unit of asynchronous work to the registry.
@@ -2097,7 +2098,7 @@ var Task = class {
2097
2098
  * a semaphore slot and without invoking `work`.
2098
2099
  */
2099
2100
  static async submit(kind, work, options = {}) {
2100
- return chunkKVSAY6NZ_cjs.submit({
2101
+ return chunkJ6GXS5A2_cjs.submit({
2101
2102
  kind,
2102
2103
  work,
2103
2104
  ...options.id !== void 0 ? { id: options.id } : {},
@@ -2108,11 +2109,11 @@ var Task = class {
2108
2109
  }
2109
2110
  /** Returns matching handles, capped at `filter.limit ?? 100`. */
2110
2111
  static list(filter = {}) {
2111
- return chunkKVSAY6NZ_cjs.list(filter);
2112
+ return chunkJ6GXS5A2_cjs.list(filter);
2112
2113
  }
2113
2114
  /** Returns a single handle by id, or `undefined` if unknown / evicted. */
2114
2115
  static get(id) {
2115
- return chunkKVSAY6NZ_cjs.get(id);
2116
+ return chunkJ6GXS5A2_cjs.get(id);
2116
2117
  }
2117
2118
  /**
2118
2119
  * Idempotent cancel (D365). Returns:
@@ -2125,7 +2126,7 @@ var Task = class {
2125
2126
  * Never throws.
2126
2127
  */
2127
2128
  static cancel(id, reason) {
2128
- return chunkKVSAY6NZ_cjs.cancel(id, reason);
2129
+ return chunkJ6GXS5A2_cjs.cancel(id, reason);
2129
2130
  }
2130
2131
  /**
2131
2132
  * Subscribe to a task's event stream. The returned `AsyncIterable<TaskEvent>`
@@ -2139,7 +2140,7 @@ var Task = class {
2139
2140
  * Throws `TaskNotFoundError` if the id is unknown or has been evicted.
2140
2141
  */
2141
2142
  static subscribe(id) {
2142
- return chunkKVSAY6NZ_cjs.subscribe(id);
2143
+ return chunkJ6GXS5A2_cjs.subscribe(id);
2143
2144
  }
2144
2145
  };
2145
2146
 
@@ -2152,7 +2153,7 @@ var FIXTURE_USER = {
2152
2153
  };
2153
2154
  var FIXTURE_MODELS = [
2154
2155
  {
2155
- id: chunkGCHZMH42_cjs.DEFAULT_AGENTIC_MODEL_ID,
2156
+ id: chunk2STSX2SY_cjs.DEFAULT_AGENTIC_MODEL_ID,
2156
2157
  name: "Gemini 2.0 Flash",
2157
2158
  displayName: "Gemini 2.0 Flash",
2158
2159
  parameters: [
@@ -2228,20 +2229,20 @@ async function listLocalModelsViaOpenAiCompat(baseUrl) {
2228
2229
  try {
2229
2230
  response = await fetch(url, { method: "GET" });
2230
2231
  } catch (fetchErr) {
2231
- const mapped = chunkC4ZQPWXJ_cjs.mapOllamaTransportError({
2232
+ const mapped = chunkARMFXTY6_cjs.mapOllamaTransportError({
2232
2233
  providerId: "ollama",
2233
2234
  cause: fetchErr,
2234
2235
  endpoint: "/v1/models"
2235
2236
  });
2236
2237
  if (mapped !== void 0) throw mapped;
2237
- throw new chunkJ7J7J2GN_cjs.ConfigurationError(
2238
+ throw new chunkUNFBHV46_cjs.ConfigurationError(
2238
2239
  `Failed to reach local provider at ${baseUrl}: ${fetchErr.message}`,
2239
2240
  { code: "local_provider_unreachable" }
2240
2241
  );
2241
2242
  }
2242
2243
  if (!response.ok) {
2243
- const body = await chunkC4ZQPWXJ_cjs.readErrorResponseBody(response);
2244
- const mapped = chunkC4ZQPWXJ_cjs.mapOllamaHttpError({
2244
+ const body = await chunkARMFXTY6_cjs.readErrorResponseBody(response);
2245
+ const mapped = chunkARMFXTY6_cjs.mapOllamaHttpError({
2245
2246
  providerId: "ollama",
2246
2247
  status: response.status,
2247
2248
  body,
@@ -2249,7 +2250,7 @@ async function listLocalModelsViaOpenAiCompat(baseUrl) {
2249
2250
  endpoint: "/v1/models"
2250
2251
  });
2251
2252
  if (mapped !== void 0) throw mapped;
2252
- throw new chunkJ7J7J2GN_cjs.ConfigurationError(
2253
+ throw new chunkUNFBHV46_cjs.ConfigurationError(
2253
2254
  `Local provider at ${baseUrl} returned HTTP ${response.status} on /v1/models`,
2254
2255
  { code: "local_provider_http_error" }
2255
2256
  );
@@ -2304,9 +2305,9 @@ var Theokit = class {
2304
2305
  });
2305
2306
  },
2306
2307
  capabilities: (providerOrModelId) => {
2307
- chunkQC55H6RJ_cjs.registerBuiltins();
2308
+ chunkYRJA2POB_cjs.registerBuiltins();
2308
2309
  const providerId = providerOrModelId.includes("/") ? providerOrModelId.split("/")[0] ?? providerOrModelId : providerOrModelId;
2309
- return chunkQC55H6RJ_cjs.getCatalogCapabilities(providerId);
2310
+ return chunkYRJA2POB_cjs.getCatalogCapabilities(providerId);
2310
2311
  }
2311
2312
  };
2312
2313
  /**
@@ -2345,8 +2346,8 @@ var Theokit = class {
2345
2346
  */
2346
2347
  static inspect = {
2347
2348
  builtinProviders: () => {
2348
- chunkQC55H6RJ_cjs.registerBuiltins();
2349
- return chunkQC55H6RJ_cjs.listProviders().map((p) => ({
2349
+ chunkYRJA2POB_cjs.registerBuiltins();
2350
+ return chunkYRJA2POB_cjs.listProviders().map((p) => ({
2350
2351
  name: p.name,
2351
2352
  apiMode: p.apiMode,
2352
2353
  authType: p.authType,
@@ -2355,7 +2356,7 @@ var Theokit = class {
2355
2356
  envVars: p.envVars
2356
2357
  }));
2357
2358
  },
2358
- embeddingAdapters: () => Object.entries(chunkGCHZMH42_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
2359
+ embeddingAdapters: () => Object.entries(chunk2STSX2SY_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
2359
2360
  id,
2360
2361
  transport: adapter.transport,
2361
2362
  defaultModel: adapter.defaultModel
@@ -2372,9 +2373,9 @@ var Theokit = class {
2372
2373
  // and may be promoted onto Theokit once the agent.ts cycle is broken.
2373
2374
  };
2374
2375
  async function maybeListLocalModels(providerName) {
2375
- chunkQC55H6RJ_cjs.registerBuiltins();
2376
- await chunkC4ZQPWXJ_cjs.discoverProviderPlugins();
2377
- const profile = chunkQC55H6RJ_cjs.getProviderProfile(providerName);
2376
+ chunkYRJA2POB_cjs.registerBuiltins();
2377
+ await chunkARMFXTY6_cjs.discoverProviderPlugins();
2378
+ const profile = chunkYRJA2POB_cjs.getProviderProfile(providerName);
2378
2379
  if (profile === void 0) return void 0;
2379
2380
  if (profile.authType !== "none") return void 0;
2380
2381
  const baseUrl = resolveLocalProviderBaseUrl(profile.name, profile.baseUrl);
@@ -2389,15 +2390,15 @@ function resolveLocalProviderBaseUrl(providerName, fallback) {
2389
2390
  async function executeCatalogRequest(request) {
2390
2391
  const apiKey = chunk6LHQPOMI_cjs.resolveApiKey(request.apiKey);
2391
2392
  if (apiKey === void 0) {
2392
- throw new chunkJ7J7J2GN_cjs.AuthenticationError("Missing API key", { code: "missing_api_key" });
2393
+ throw new chunkUNFBHV46_cjs.AuthenticationError("Missing API key", { code: "missing_api_key" });
2393
2394
  }
2394
- if (chunkC4ZQPWXJ_cjs.shouldUseFixtureMode(apiKey)) {
2395
+ if (chunkARMFXTY6_cjs.shouldUseFixtureMode(apiKey)) {
2395
2396
  return request.fixture;
2396
2397
  }
2397
- if (!chunkC4ZQPWXJ_cjs.isFixtureApiKey(apiKey) && process.env.THEOKIT_API_BASE_URL === void 0) {
2398
- throw new chunkJ7J7J2GN_cjs.AuthenticationError("Invalid API key", { code: "authentication_error" });
2398
+ if (!chunkARMFXTY6_cjs.isFixtureApiKey(apiKey) && process.env.THEOKIT_API_BASE_URL === void 0) {
2399
+ throw new chunkUNFBHV46_cjs.AuthenticationError("Invalid API key", { code: "authentication_error" });
2399
2400
  }
2400
- return chunkC4ZQPWXJ_cjs.httpRequest(request.path, { apiKey });
2401
+ return chunkARMFXTY6_cjs.httpRequest(request.path, { apiKey });
2401
2402
  }
2402
2403
 
2403
2404
  // src/tool-blast-radius.ts
@@ -2522,7 +2523,7 @@ function resolveTrustPosture(input) {
2522
2523
  }
2523
2524
 
2524
2525
  // src/wiring-record.ts
2525
- var UngatedCapabilityError = class extends chunkJ7J7J2GN_cjs.TheokitAgentError {
2526
+ var UngatedCapabilityError = class extends chunkUNFBHV46_cjs.TheokitAgentError {
2526
2527
  name = "UngatedCapabilityError";
2527
2528
  };
2528
2529
  function recordWiring(input) {
@@ -2546,7 +2547,7 @@ function recordWiring(input) {
2546
2547
 
2547
2548
  Object.defineProperty(exports, "StreamObjectError", {
2548
2549
  enumerable: true,
2549
- get: function () { return chunkTFG5IBZS_cjs.StreamObjectError; }
2550
+ get: function () { return chunkKGZ66JVZ_cjs.StreamObjectError; }
2550
2551
  });
2551
2552
  Object.defineProperty(exports, "GOAL_CONTINUATION_MARKER", {
2552
2553
  enumerable: true,
@@ -2554,67 +2555,67 @@ Object.defineProperty(exports, "GOAL_CONTINUATION_MARKER", {
2554
2555
  });
2555
2556
  Object.defineProperty(exports, "JudgeCredentialError", {
2556
2557
  enumerable: true,
2557
- get: function () { return chunkQDM3OHUT_cjs.JudgeCredentialError; }
2558
+ get: function () { return chunkECD6ER3E_cjs.JudgeCredentialError; }
2558
2559
  });
2559
2560
  Object.defineProperty(exports, "GenerateObjectError", {
2560
2561
  enumerable: true,
2561
- get: function () { return chunkQWD4RDZ3_cjs.GenerateObjectError; }
2562
+ get: function () { return chunkXDUGSTYJ_cjs.GenerateObjectError; }
2562
2563
  });
2563
2564
  Object.defineProperty(exports, "Workflow", {
2564
2565
  enumerable: true,
2565
- get: function () { return chunk4HS6FFGL_cjs.Workflow; }
2566
+ get: function () { return chunkMPQJE3G4_cjs.Workflow; }
2566
2567
  });
2567
2568
  Object.defineProperty(exports, "agentStep", {
2568
2569
  enumerable: true,
2569
- get: function () { return chunk4HS6FFGL_cjs.agentStep; }
2570
+ get: function () { return chunkMPQJE3G4_cjs.agentStep; }
2570
2571
  });
2571
2572
  Object.defineProperty(exports, "fn", {
2572
2573
  enumerable: true,
2573
- get: function () { return chunk4HS6FFGL_cjs.fn; }
2574
+ get: function () { return chunkMPQJE3G4_cjs.fn; }
2574
2575
  });
2575
2576
  Object.defineProperty(exports, "Cron", {
2576
2577
  enumerable: true,
2577
- get: function () { return chunkHG4UN4MN_cjs.Cron; }
2578
+ get: function () { return chunkAOHRKGAA_cjs.Cron; }
2578
2579
  });
2579
2580
  Object.defineProperty(exports, "Agent", {
2580
2581
  enumerable: true,
2581
- get: function () { return chunkGCHZMH42_cjs.Agent; }
2582
+ get: function () { return chunk2STSX2SY_cjs.Agent; }
2582
2583
  });
2583
2584
  Object.defineProperty(exports, "AgentBuilder", {
2584
2585
  enumerable: true,
2585
- get: function () { return chunkGCHZMH42_cjs.AgentBuilder; }
2586
+ get: function () { return chunk2STSX2SY_cjs.AgentBuilder; }
2586
2587
  });
2587
2588
  Object.defineProperty(exports, "Tool", {
2588
2589
  enumerable: true,
2589
- get: function () { return chunkGCHZMH42_cjs.Tool; }
2590
+ get: function () { return chunk2STSX2SY_cjs.Tool; }
2590
2591
  });
2591
2592
  Object.defineProperty(exports, "ToolError", {
2592
2593
  enumerable: true,
2593
- get: function () { return chunkGCHZMH42_cjs.ToolError; }
2594
+ get: function () { return chunk2STSX2SY_cjs.ToolError; }
2594
2595
  });
2595
2596
  Object.defineProperty(exports, "UsageAccumulator", {
2596
2597
  enumerable: true,
2597
- get: function () { return chunkGCHZMH42_cjs.UsageAccumulator; }
2598
+ get: function () { return chunk2STSX2SY_cjs.UsageAccumulator; }
2598
2599
  });
2599
2600
  Object.defineProperty(exports, "computeCost", {
2600
2601
  enumerable: true,
2601
- get: function () { return chunkGCHZMH42_cjs.computeCost; }
2602
+ get: function () { return chunk2STSX2SY_cjs.computeCost; }
2602
2603
  });
2603
2604
  Object.defineProperty(exports, "getPricingEntry", {
2604
2605
  enumerable: true,
2605
- get: function () { return chunkGCHZMH42_cjs.getPricingEntry; }
2606
+ get: function () { return chunk2STSX2SY_cjs.getPricingEntry; }
2606
2607
  });
2607
2608
  Object.defineProperty(exports, "managedSettingsPathFor", {
2608
2609
  enumerable: true,
2609
- get: function () { return chunkGCHZMH42_cjs.managedSettingsPathFor; }
2610
+ get: function () { return chunk2STSX2SY_cjs.managedSettingsPathFor; }
2610
2611
  });
2611
2612
  Object.defineProperty(exports, "readManagedSettings", {
2612
2613
  enumerable: true,
2613
- get: function () { return chunkGCHZMH42_cjs.readManagedSettings; }
2614
+ get: function () { return chunk2STSX2SY_cjs.readManagedSettings; }
2614
2615
  });
2615
2616
  Object.defineProperty(exports, "emitRunEvent", {
2616
2617
  enumerable: true,
2617
- get: function () { return chunkKVSAY6NZ_cjs.emitRunEvent; }
2618
+ get: function () { return chunkJ6GXS5A2_cjs.emitRunEvent; }
2618
2619
  });
2619
2620
  Object.defineProperty(exports, "withCwdMutex", {
2620
2621
  enumerable: true,
@@ -2622,83 +2623,83 @@ Object.defineProperty(exports, "withCwdMutex", {
2622
2623
  });
2623
2624
  Object.defineProperty(exports, "TASK_RESERVED_PREFIXES", {
2624
2625
  enumerable: true,
2625
- get: function () { return chunkHCT4HPCL_cjs.TASK_RESERVED_PREFIXES; }
2626
+ get: function () { return chunkGHHIJEFX_cjs.TASK_RESERVED_PREFIXES; }
2626
2627
  });
2627
2628
  Object.defineProperty(exports, "isValidTaskId", {
2628
2629
  enumerable: true,
2629
- get: function () { return chunkHCT4HPCL_cjs.isValidTaskId; }
2630
+ get: function () { return chunkGHHIJEFX_cjs.isValidTaskId; }
2630
2631
  });
2631
2632
  Object.defineProperty(exports, "estimateTokens", {
2632
2633
  enumerable: true,
2633
- get: function () { return chunkATT276RD_cjs.estimateTokens; }
2634
+ get: function () { return chunkJ5623RIV_cjs.estimateTokens; }
2634
2635
  });
2635
2636
  Object.defineProperty(exports, "AgentDisposedError", {
2636
2637
  enumerable: true,
2637
- get: function () { return chunkJ7J7J2GN_cjs.AgentDisposedError; }
2638
+ get: function () { return chunkUNFBHV46_cjs.AgentDisposedError; }
2638
2639
  });
2639
2640
  Object.defineProperty(exports, "AgentRunError", {
2640
2641
  enumerable: true,
2641
- get: function () { return chunkJ7J7J2GN_cjs.AgentRunError; }
2642
+ get: function () { return chunkUNFBHV46_cjs.AgentRunError; }
2642
2643
  });
2643
2644
  Object.defineProperty(exports, "AuthenticationError", {
2644
2645
  enumerable: true,
2645
- get: function () { return chunkJ7J7J2GN_cjs.AuthenticationError; }
2646
+ get: function () { return chunkUNFBHV46_cjs.AuthenticationError; }
2646
2647
  });
2647
2648
  Object.defineProperty(exports, "BudgetExceededError", {
2648
2649
  enumerable: true,
2649
- get: function () { return chunkJ7J7J2GN_cjs.BudgetExceededError; }
2650
+ get: function () { return chunkUNFBHV46_cjs.BudgetExceededError; }
2650
2651
  });
2651
2652
  Object.defineProperty(exports, "ConfigurationError", {
2652
2653
  enumerable: true,
2653
- get: function () { return chunkJ7J7J2GN_cjs.ConfigurationError; }
2654
+ get: function () { return chunkUNFBHV46_cjs.ConfigurationError; }
2654
2655
  });
2655
2656
  Object.defineProperty(exports, "IntegrationNotConnectedError", {
2656
2657
  enumerable: true,
2657
- get: function () { return chunkJ7J7J2GN_cjs.IntegrationNotConnectedError; }
2658
+ get: function () { return chunkUNFBHV46_cjs.IntegrationNotConnectedError; }
2658
2659
  });
2659
2660
  Object.defineProperty(exports, "InvalidTaskIdError", {
2660
2661
  enumerable: true,
2661
- get: function () { return chunkJ7J7J2GN_cjs.InvalidTaskIdError; }
2662
+ get: function () { return chunkUNFBHV46_cjs.InvalidTaskIdError; }
2662
2663
  });
2663
2664
  Object.defineProperty(exports, "MemoryAdapterError", {
2664
2665
  enumerable: true,
2665
- get: function () { return chunkJ7J7J2GN_cjs.MemoryAdapterError; }
2666
+ get: function () { return chunkUNFBHV46_cjs.MemoryAdapterError; }
2666
2667
  });
2667
2668
  Object.defineProperty(exports, "NetworkError", {
2668
2669
  enumerable: true,
2669
- get: function () { return chunkJ7J7J2GN_cjs.NetworkError; }
2670
+ get: function () { return chunkUNFBHV46_cjs.NetworkError; }
2670
2671
  });
2671
2672
  Object.defineProperty(exports, "RateLimitError", {
2672
2673
  enumerable: true,
2673
- get: function () { return chunkJ7J7J2GN_cjs.RateLimitError; }
2674
+ get: function () { return chunkUNFBHV46_cjs.RateLimitError; }
2674
2675
  });
2675
2676
  Object.defineProperty(exports, "TaskNotFoundError", {
2676
2677
  enumerable: true,
2677
- get: function () { return chunkJ7J7J2GN_cjs.TaskNotFoundError; }
2678
+ get: function () { return chunkUNFBHV46_cjs.TaskNotFoundError; }
2678
2679
  });
2679
2680
  Object.defineProperty(exports, "TheokitAgentError", {
2680
2681
  enumerable: true,
2681
- get: function () { return chunkJ7J7J2GN_cjs.TheokitAgentError; }
2682
+ get: function () { return chunkUNFBHV46_cjs.TheokitAgentError; }
2682
2683
  });
2683
2684
  Object.defineProperty(exports, "UnknownAgentError", {
2684
2685
  enumerable: true,
2685
- get: function () { return chunkJ7J7J2GN_cjs.UnknownAgentError; }
2686
+ get: function () { return chunkUNFBHV46_cjs.UnknownAgentError; }
2686
2687
  });
2687
2688
  Object.defineProperty(exports, "UnsupportedBudgetOperationError", {
2688
2689
  enumerable: true,
2689
- get: function () { return chunkJ7J7J2GN_cjs.UnsupportedBudgetOperationError; }
2690
+ get: function () { return chunkUNFBHV46_cjs.UnsupportedBudgetOperationError; }
2690
2691
  });
2691
2692
  Object.defineProperty(exports, "UnsupportedRunOperationError", {
2692
2693
  enumerable: true,
2693
- get: function () { return chunkJ7J7J2GN_cjs.UnsupportedRunOperationError; }
2694
+ get: function () { return chunkUNFBHV46_cjs.UnsupportedRunOperationError; }
2694
2695
  });
2695
2696
  Object.defineProperty(exports, "UnsupportedTaskOperationError", {
2696
2697
  enumerable: true,
2697
- get: function () { return chunkJ7J7J2GN_cjs.UnsupportedTaskOperationError; }
2698
+ get: function () { return chunkUNFBHV46_cjs.UnsupportedTaskOperationError; }
2698
2699
  });
2699
2700
  Object.defineProperty(exports, "isTransientError", {
2700
2701
  enumerable: true,
2701
- get: function () { return chunkJ7J7J2GN_cjs.isTransientError; }
2702
+ get: function () { return chunkUNFBHV46_cjs.isTransientError; }
2702
2703
  });
2703
2704
  Object.defineProperty(exports, "setDiagnosticsSink", {
2704
2705
  enumerable: true,
@@ -2732,6 +2733,8 @@ exports.applySecurityFloor = applySecurityFloor;
2732
2733
  exports.auditEnvReachability = auditEnvReachability;
2733
2734
  exports.chargeAndCheckThresholds = chargeAndCheckThresholds;
2734
2735
  exports.createCounterBudgetTracker = createCounterBudgetTracker;
2736
+ exports.createTokenLimiter = createTokenLimiter;
2737
+ exports.createUnicodeNormalizer = createUnicodeNormalizer;
2735
2738
  exports.decideApproval = decideApproval;
2736
2739
  exports.describeAction = describeAction;
2737
2740
  exports.describeCredential = describeCredential;