@theokit/sdk 4.63.4 → 5.0.0-next.2

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 (786) hide show
  1. package/CHANGELOG.md +847 -23
  2. package/dist/a2a/index.cjs +29 -13
  3. package/dist/a2a/index.cjs.map +1 -1
  4. package/dist/a2a/index.d.cts +1 -1
  5. package/dist/a2a/index.d.ts +1 -1
  6. package/dist/a2a/index.js +26 -11
  7. package/dist/a2a/index.js.map +1 -1
  8. package/dist/a2a/message-bus.d.cts +26 -3
  9. package/dist/a2a/message-bus.d.ts +26 -3
  10. package/dist/a2a/subagent.d.cts +8 -3
  11. package/dist/a2a/subagent.d.ts +8 -3
  12. package/dist/{agent-X0DKA943.d.cts → agent-C3KO5LKm.d.cts} +251 -36
  13. package/dist/{agent-BFno7Sfn.d.ts → agent-CvmTR9uf.d.ts} +251 -36
  14. package/dist/agent-GPV2JWZG.cjs +67 -0
  15. package/dist/{agent-UX7WFI6B.cjs.map → agent-GPV2JWZG.cjs.map} +1 -1
  16. package/dist/agent-Y24I5JBM.js +58 -0
  17. package/dist/{agent-A5XMIVNP.js.map → agent-Y24I5JBM.js.map} +1 -1
  18. package/dist/agent-session-store-AFML3AXC.js +6 -0
  19. package/dist/{agent-session-store-OPGRB4XM.js.map → agent-session-store-AFML3AXC.js.map} +1 -1
  20. package/dist/agent-session-store-MTSIY3MH.cjs +23 -0
  21. package/dist/{agent-session-store-6EL5NPA4.cjs.map → agent-session-store-MTSIY3MH.cjs.map} +1 -1
  22. package/dist/agent.d.ts +1 -1
  23. package/dist/auth/index.cjs +33 -34
  24. package/dist/auth/index.cjs.map +1 -1
  25. package/dist/auth/index.d.cts +1 -1
  26. package/dist/auth/index.d.ts +1 -1
  27. package/dist/auth/index.js +6 -7
  28. package/dist/auth/index.js.map +1 -1
  29. package/dist/{batch-BXYTW2DP.cjs → batch-I6T6MXZO.cjs} +58 -40
  30. package/dist/batch-I6T6MXZO.cjs.map +1 -0
  31. package/dist/{batch-L4ZXS46M.js → batch-US4F6WPK.js} +42 -24
  32. package/dist/batch-US4F6WPK.js.map +1 -0
  33. package/dist/chunk-24MGQDK3.js +31 -0
  34. package/dist/chunk-24MGQDK3.js.map +1 -0
  35. package/dist/{chunk-UGT7GK7I.cjs → chunk-24SYBZPL.cjs} +36 -18
  36. package/dist/chunk-24SYBZPL.cjs.map +1 -0
  37. package/dist/{chunk-KYAJINUI.cjs → chunk-2HPNT6HH.cjs} +581 -401
  38. package/dist/chunk-2HPNT6HH.cjs.map +1 -0
  39. package/dist/{chunk-VLVVJLDH.cjs → chunk-2NE7DTOK.cjs} +234 -193
  40. package/dist/chunk-2NE7DTOK.cjs.map +1 -0
  41. package/dist/{chunk-N2U4AZGB.js → chunk-2WXHA33T.js} +3 -3
  42. package/dist/chunk-2WXHA33T.js.map +1 -0
  43. package/dist/chunk-2XC6KDJM.js +22 -0
  44. package/dist/chunk-2XC6KDJM.js.map +1 -0
  45. package/dist/{chunk-L3MTL4NA.js → chunk-2ZLVT7H3.js} +223 -182
  46. package/dist/chunk-2ZLVT7H3.js.map +1 -0
  47. package/dist/{chunk-2GUYQR5P.js → chunk-3JHIFQ4I.js} +39 -13
  48. package/dist/chunk-3JHIFQ4I.js.map +1 -0
  49. package/dist/{chunk-BU4KFWXF.js → chunk-44I6UYVH.js} +8 -17
  50. package/dist/chunk-44I6UYVH.js.map +1 -0
  51. package/dist/{chunk-UNYXQ4M5.js → chunk-47TF32NQ.js} +10 -5
  52. package/dist/chunk-47TF32NQ.js.map +1 -0
  53. package/dist/{chunk-WNO3C3N2.cjs → chunk-4A3SKJ53.cjs} +56 -27
  54. package/dist/chunk-4A3SKJ53.cjs.map +1 -0
  55. package/dist/{chunk-YML4ME27.cjs → chunk-4HS6FFGL.cjs} +55 -46
  56. package/dist/chunk-4HS6FFGL.cjs.map +1 -0
  57. package/dist/{chunk-C72AZW7J.js → chunk-4MMWFSCD.js} +4 -4
  58. package/dist/chunk-4MMWFSCD.js.map +1 -0
  59. package/dist/{chunk-6HKGLTJI.cjs → chunk-4NLCWGH7.cjs} +15 -15
  60. package/dist/chunk-4NLCWGH7.cjs.map +1 -0
  61. package/dist/{chunk-LKBEROHN.js → chunk-4S5TWFIZ.js} +14 -14
  62. package/dist/chunk-4S5TWFIZ.js.map +1 -0
  63. package/dist/{chunk-UBDMVMBZ.js → chunk-55GB6JYQ.js} +33 -22
  64. package/dist/chunk-55GB6JYQ.js.map +1 -0
  65. package/dist/{chunk-U6IFHFWK.js → chunk-5WKQDIGO.js} +8 -17
  66. package/dist/chunk-5WKQDIGO.js.map +1 -0
  67. package/dist/chunk-67ADYSTW.js +120 -0
  68. package/dist/chunk-67ADYSTW.js.map +1 -0
  69. package/dist/{chunk-XL7Q7HB2.cjs → chunk-6LHQPOMI.cjs} +39 -6
  70. package/dist/chunk-6LHQPOMI.cjs.map +1 -0
  71. package/dist/{chunk-A4JVILQU.js → chunk-6M2OIS4Y.js} +7 -7
  72. package/dist/chunk-6M2OIS4Y.js.map +1 -0
  73. package/dist/{chunk-LWGSI6M3.js → chunk-6PWOWXMC.js} +4 -4
  74. package/dist/{chunk-LWGSI6M3.js.map → chunk-6PWOWXMC.js.map} +1 -1
  75. package/dist/{chunk-RNB4APBZ.js → chunk-6WAKKTBO.js} +9 -5
  76. package/dist/chunk-6WAKKTBO.js.map +1 -0
  77. package/dist/{chunk-V2BOS4WF.cjs → chunk-7A6535RA.cjs} +11 -11
  78. package/dist/chunk-7A6535RA.cjs.map +1 -0
  79. package/dist/{chunk-ZLQSWSJ2.cjs → chunk-7FDKWDA2.cjs} +11 -11
  80. package/dist/{chunk-ZLQSWSJ2.cjs.map → chunk-7FDKWDA2.cjs.map} +1 -1
  81. package/dist/{chunk-4VPXM6UU.js → chunk-7I5Z3UBJ.js} +3 -3
  82. package/dist/{chunk-4VPXM6UU.js.map → chunk-7I5Z3UBJ.js.map} +1 -1
  83. package/dist/{chunk-B4EOJWOY.cjs → chunk-7JJ3A6AT.cjs} +13 -7
  84. package/dist/chunk-7JJ3A6AT.cjs.map +1 -0
  85. package/dist/{chunk-WJVHMTKB.cjs → chunk-AA27GEYS.cjs} +3 -3
  86. package/dist/{chunk-WJVHMTKB.cjs.map → chunk-AA27GEYS.cjs.map} +1 -1
  87. package/dist/{chunk-BP46RJ5X.js → chunk-AAEZSPTC.js} +5 -5
  88. package/dist/{chunk-BP46RJ5X.js.map → chunk-AAEZSPTC.js.map} +1 -1
  89. package/dist/chunk-AGACYRJ2.js +11 -0
  90. package/dist/chunk-AGACYRJ2.js.map +1 -0
  91. package/dist/{chunk-ZZMZWBR6.js → chunk-ALUN2B4W.js} +81 -58
  92. package/dist/chunk-ALUN2B4W.js.map +1 -0
  93. package/dist/chunk-ANMJJD6D.cjs +18 -0
  94. package/dist/chunk-ANMJJD6D.cjs.map +1 -0
  95. package/dist/{chunk-DXGZ2NUG.cjs → chunk-ATT276RD.cjs} +12 -11
  96. package/dist/chunk-ATT276RD.cjs.map +1 -0
  97. package/dist/{chunk-4FFBAUFS.js → chunk-AWINL3ZC.js} +6 -6
  98. package/dist/chunk-AWINL3ZC.js.map +1 -0
  99. package/dist/{chunk-UU36SHFY.cjs → chunk-BJUJT5ED.cjs} +9 -8
  100. package/dist/chunk-BJUJT5ED.cjs.map +1 -0
  101. package/dist/{chunk-D4CUGAKZ.js → chunk-CZJ6Q7CW.js} +36 -6
  102. package/dist/chunk-CZJ6Q7CW.js.map +1 -0
  103. package/dist/{chunk-KQ7TS7WW.cjs → chunk-D6POWE7E.cjs} +37 -26
  104. package/dist/chunk-D6POWE7E.cjs.map +1 -0
  105. package/dist/{chunk-AWO27VRZ.js → chunk-DMRT67Y6.js} +6 -5
  106. package/dist/chunk-DMRT67Y6.js.map +1 -0
  107. package/dist/{chunk-5VB22SYX.cjs → chunk-DQZU7JK6.cjs} +7 -7
  108. package/dist/{chunk-5VB22SYX.cjs.map → chunk-DQZU7JK6.cjs.map} +1 -1
  109. package/dist/{chunk-3NSS2OIZ.cjs → chunk-DRL7URI4.cjs} +6 -6
  110. package/dist/{chunk-3NSS2OIZ.cjs.map → chunk-DRL7URI4.cjs.map} +1 -1
  111. package/dist/{chunk-RFXWMRFC.js → chunk-EFMFILPG.js} +14 -6
  112. package/dist/chunk-EFMFILPG.js.map +1 -0
  113. package/dist/{chunk-HS7AVXTF.js → chunk-EH6XD3FY.js} +4 -4
  114. package/dist/chunk-EH6XD3FY.js.map +1 -0
  115. package/dist/{chunk-KQRW2GPZ.js → chunk-EIQFAOFD.js} +6 -6
  116. package/dist/chunk-EIQFAOFD.js.map +1 -0
  117. package/dist/{chunk-XJCXEKMD.cjs → chunk-EXTRW7GW.cjs} +4 -4
  118. package/dist/chunk-EXTRW7GW.cjs.map +1 -0
  119. package/dist/{chunk-U54XCYG3.js → chunk-FJWQP6EE.js} +12 -6
  120. package/dist/chunk-FJWQP6EE.js.map +1 -0
  121. package/dist/{chunk-O7DK5PBJ.cjs → chunk-FUSDYC2B.cjs} +26 -42
  122. package/dist/chunk-FUSDYC2B.cjs.map +1 -0
  123. package/dist/{chunk-4QZSA2HJ.js → chunk-G7BLGBRN.js} +4 -4
  124. package/dist/chunk-G7BLGBRN.js.map +1 -0
  125. package/dist/{chunk-BZRFXJHA.js → chunk-GBCVPKHE.js} +55 -26
  126. package/dist/chunk-GBCVPKHE.js.map +1 -0
  127. package/dist/chunk-GGZ5GPE3.cjs +130 -0
  128. package/dist/chunk-GGZ5GPE3.cjs.map +1 -0
  129. package/dist/{chunk-5HEG4CQH.cjs → chunk-GZV6AVRL.cjs} +8 -8
  130. package/dist/{chunk-5HEG4CQH.cjs.map → chunk-GZV6AVRL.cjs.map} +1 -1
  131. package/dist/{chunk-VCLBZAZU.cjs → chunk-H6YM3PV6.cjs} +17 -17
  132. package/dist/chunk-H6YM3PV6.cjs.map +1 -0
  133. package/dist/{chunk-RFMBZPOW.cjs → chunk-HCT4HPCL.cjs} +10 -10
  134. package/dist/chunk-HCT4HPCL.cjs.map +1 -0
  135. package/dist/{chunk-OSEG74VJ.js → chunk-HFEJE7AC.js} +52 -43
  136. package/dist/chunk-HFEJE7AC.js.map +1 -0
  137. package/dist/{chunk-52NKC5HT.cjs → chunk-HUFSABUZ.cjs} +12 -8
  138. package/dist/chunk-HUFSABUZ.cjs.map +1 -0
  139. package/dist/{chunk-4CLOXP6H.cjs → chunk-HW7SEELD.cjs} +4 -4
  140. package/dist/{chunk-4CLOXP6H.cjs.map → chunk-HW7SEELD.cjs.map} +1 -1
  141. package/dist/{chunk-ZSWPZ23K.cjs → chunk-I2PWY7VM.cjs} +5 -5
  142. package/dist/chunk-I2PWY7VM.cjs.map +1 -0
  143. package/dist/{chunk-VJ26EKGJ.cjs → chunk-IJ7M6GOG.cjs} +3 -3
  144. package/dist/chunk-IJ7M6GOG.cjs.map +1 -0
  145. package/dist/{chunk-SAVIWMZB.js → chunk-ILGZ2ZZV.js} +3 -3
  146. package/dist/chunk-ILGZ2ZZV.js.map +1 -0
  147. package/dist/{chunk-4ZHTIJNE.cjs → chunk-J7J7J2GN.cjs} +87 -63
  148. package/dist/chunk-J7J7J2GN.cjs.map +1 -0
  149. package/dist/{chunk-UALX2J2Q.cjs → chunk-JLRLCBJ4.cjs} +38 -11
  150. package/dist/chunk-JLRLCBJ4.cjs.map +1 -0
  151. package/dist/{chunk-2QDYBS2A.js → chunk-JMDDYA22.js} +4 -4
  152. package/dist/chunk-JMDDYA22.js.map +1 -0
  153. package/dist/{chunk-LXQ6HKPS.js → chunk-JNAA4G4H.js} +3 -3
  154. package/dist/{chunk-LXQ6HKPS.js.map → chunk-JNAA4G4H.js.map} +1 -1
  155. package/dist/{chunk-UMP6OJIM.js → chunk-JOFVLOFY.js} +4 -4
  156. package/dist/{chunk-UMP6OJIM.js.map → chunk-JOFVLOFY.js.map} +1 -1
  157. package/dist/{chunk-A46SWMIF.js → chunk-K2VMFZQ5.js} +7 -7
  158. package/dist/chunk-K2VMFZQ5.js.map +1 -0
  159. package/dist/{chunk-DN2PACRI.js → chunk-K3NH62DG.js} +461 -282
  160. package/dist/chunk-K3NH62DG.js.map +1 -0
  161. package/dist/{chunk-LYTOXSRH.js → chunk-KDR53EO7.js} +1939 -1864
  162. package/dist/chunk-KDR53EO7.js.map +1 -0
  163. package/dist/{chunk-XWTLIGO3.cjs → chunk-KTTHHYEW.cjs} +5 -5
  164. package/dist/chunk-KTTHHYEW.cjs.map +1 -0
  165. package/dist/{chunk-3FFAEAUJ.cjs → chunk-KVSAY6NZ.cjs} +18 -18
  166. package/dist/chunk-KVSAY6NZ.cjs.map +1 -0
  167. package/dist/{chunk-IAHZCGBE.cjs → chunk-LHSWHYF3.cjs} +120 -146
  168. package/dist/chunk-LHSWHYF3.cjs.map +1 -0
  169. package/dist/{chunk-3OR54XG4.js → chunk-NJWYQWDL.js} +12 -8
  170. package/dist/chunk-NJWYQWDL.js.map +1 -0
  171. package/dist/chunk-NVXXWAU7.cjs +13 -0
  172. package/dist/chunk-NVXXWAU7.cjs.map +1 -0
  173. package/dist/{chunk-2D34UTDC.js → chunk-O6USDERH.js} +31 -11
  174. package/dist/chunk-O6USDERH.js.map +1 -0
  175. package/dist/{chunk-XO4SOZN6.js → chunk-OR6XIWLB.js} +4 -4
  176. package/dist/{chunk-XO4SOZN6.js.map → chunk-OR6XIWLB.js.map} +1 -1
  177. package/dist/{chunk-4PYZ5AX3.cjs → chunk-PRZ3BES7.cjs} +16 -8
  178. package/dist/chunk-PRZ3BES7.cjs.map +1 -0
  179. package/dist/{chunk-HCZD23VS.cjs → chunk-QC55H6RJ.cjs} +65 -39
  180. package/dist/chunk-QC55H6RJ.cjs.map +1 -0
  181. package/dist/{chunk-4O5TGQBW.cjs → chunk-QME6FDFG.cjs} +9 -5
  182. package/dist/chunk-QME6FDFG.cjs.map +1 -0
  183. package/dist/chunk-QOGNZMHD.cjs +34 -0
  184. package/dist/chunk-QOGNZMHD.cjs.map +1 -0
  185. package/dist/{chunk-7VT4P3Z4.cjs → chunk-QUAEOKDW.cjs} +1642 -1567
  186. package/dist/chunk-QUAEOKDW.cjs.map +1 -0
  187. package/dist/{chunk-B2J4ZMZL.cjs → chunk-QWD3CZWE.cjs} +6 -5
  188. package/dist/chunk-QWD3CZWE.cjs.map +1 -0
  189. package/dist/{chunk-SZVR77EJ.cjs → chunk-QWD4RDZ3.cjs} +15 -24
  190. package/dist/chunk-QWD4RDZ3.cjs.map +1 -0
  191. package/dist/{chunk-7BG5UH3T.cjs → chunk-RHZ6HP23.cjs} +4 -4
  192. package/dist/chunk-RHZ6HP23.cjs.map +1 -0
  193. package/dist/{chunk-2HVF2WJY.cjs → chunk-RQMCOFAI.cjs} +8 -8
  194. package/dist/{chunk-2HVF2WJY.cjs.map → chunk-RQMCOFAI.cjs.map} +1 -1
  195. package/dist/{chunk-VKJ7V7EB.cjs → chunk-SA6K24NB.cjs} +3 -3
  196. package/dist/chunk-SA6K24NB.cjs.map +1 -0
  197. package/dist/{chunk-7AD3ZTZL.js → chunk-SAGRF4IB.js} +3 -3
  198. package/dist/chunk-SAGRF4IB.js.map +1 -0
  199. package/dist/{chunk-PUAEFLYK.js → chunk-SVQIW5RJ.js} +4 -4
  200. package/dist/{chunk-PUAEFLYK.js.map → chunk-SVQIW5RJ.js.map} +1 -1
  201. package/dist/{chunk-43ZQRWAP.cjs → chunk-SYVWE64W.cjs} +22 -22
  202. package/dist/chunk-SYVWE64W.cjs.map +1 -0
  203. package/dist/{chunk-3O42QOMJ.js → chunk-TA3K7SBK.js} +7 -6
  204. package/dist/chunk-TA3K7SBK.js.map +1 -0
  205. package/dist/{chunk-LYRDF5TQ.cjs → chunk-TFG5IBZS.cjs} +14 -23
  206. package/dist/chunk-TFG5IBZS.cjs.map +1 -0
  207. package/dist/{chunk-GKEFRLU7.cjs → chunk-TMKTSYDS.cjs} +6 -6
  208. package/dist/{chunk-GKEFRLU7.cjs.map → chunk-TMKTSYDS.cjs.map} +1 -1
  209. package/dist/{chunk-J24VJOH3.cjs → chunk-UADQJBHR.cjs} +31 -11
  210. package/dist/chunk-UADQJBHR.cjs.map +1 -0
  211. package/dist/{chunk-TAZVKYWJ.js → chunk-UBR5PWD7.js} +26 -40
  212. package/dist/chunk-UBR5PWD7.js.map +1 -0
  213. package/dist/{chunk-IPYYKCRC.js → chunk-UFPUHJWS.js} +5 -5
  214. package/dist/{chunk-IPYYKCRC.js.map → chunk-UFPUHJWS.js.map} +1 -1
  215. package/dist/{chunk-OHLDPWTA.cjs → chunk-UGRS7ZA7.cjs} +15 -15
  216. package/dist/{chunk-OHLDPWTA.cjs.map → chunk-UGRS7ZA7.cjs.map} +1 -1
  217. package/dist/{chunk-RIAM53CP.js → chunk-UKMBRMGT.js} +3 -3
  218. package/dist/chunk-UKMBRMGT.js.map +1 -0
  219. package/dist/{chunk-L4BDVXIM.js → chunk-UNK4HNJH.js} +97 -123
  220. package/dist/chunk-UNK4HNJH.js.map +1 -0
  221. package/dist/{chunk-C3NT3PVE.js → chunk-V22DZIXO.js} +3 -3
  222. package/dist/chunk-V22DZIXO.js.map +1 -0
  223. package/dist/{chunk-OFRFZRQ4.cjs → chunk-V6ZY4AX6.cjs} +24 -14
  224. package/dist/chunk-V6ZY4AX6.cjs.map +1 -0
  225. package/dist/{chunk-B3IMEBOA.js → chunk-VE6DFSKU.js} +3 -3
  226. package/dist/{chunk-B3IMEBOA.js.map → chunk-VE6DFSKU.js.map} +1 -1
  227. package/dist/{chunk-WLQNMXQE.js → chunk-VWUXIVEI.js} +53 -26
  228. package/dist/chunk-VWUXIVEI.js.map +1 -0
  229. package/dist/{chunk-GMLBYDW4.cjs → chunk-VXDEKILY.cjs} +108 -109
  230. package/dist/chunk-VXDEKILY.cjs.map +1 -0
  231. package/dist/{chunk-ACDLHN3W.js → chunk-WJXOICRC.js} +16 -6
  232. package/dist/chunk-WJXOICRC.js.map +1 -0
  233. package/dist/{chunk-7YGCPMGB.js → chunk-XB4GI5RZ.js} +27 -12
  234. package/dist/chunk-XB4GI5RZ.js.map +1 -0
  235. package/dist/{chunk-O73J46PV.js → chunk-XDANGA2C.js} +5 -5
  236. package/dist/{chunk-O73J46PV.js.map → chunk-XDANGA2C.js.map} +1 -1
  237. package/dist/{chunk-NDGGJQTZ.js → chunk-XJZEBGXD.js} +10 -10
  238. package/dist/chunk-XJZEBGXD.js.map +1 -0
  239. package/dist/{chunk-UTSRIDKZ.js → chunk-XYFGKVZ7.js} +3 -3
  240. package/dist/chunk-XYFGKVZ7.js.map +1 -0
  241. package/dist/{chunk-RMWTPV3M.cjs → chunk-Y2KYR2ED.cjs} +27 -27
  242. package/dist/chunk-Y2KYR2ED.cjs.map +1 -0
  243. package/dist/{chunk-O7LZFG6O.cjs → chunk-YIFFF23U.cjs} +5 -5
  244. package/dist/chunk-YIFFF23U.cjs.map +1 -0
  245. package/dist/{chunk-4OTIXDMU.cjs → chunk-YJNYDJ2T.cjs} +12 -4
  246. package/dist/chunk-YJNYDJ2T.cjs.map +1 -0
  247. package/dist/{chunk-6JSIEDKL.cjs → chunk-YSTXFWQE.cjs} +13 -7
  248. package/dist/chunk-YSTXFWQE.cjs.map +1 -0
  249. package/dist/{chunk-I6HGWHPU.cjs → chunk-Z3NTRKIC.cjs} +4 -4
  250. package/dist/{chunk-I6HGWHPU.cjs.map → chunk-Z3NTRKIC.cjs.map} +1 -1
  251. package/dist/{chunk-32WTYBUH.js → chunk-ZH26RNQA.js} +91 -92
  252. package/dist/chunk-ZH26RNQA.js.map +1 -0
  253. package/dist/compact-session-BHTPCIHA.cjs +61 -0
  254. package/dist/{compact-session-QV57KR66.cjs.map → compact-session-BHTPCIHA.cjs.map} +1 -1
  255. package/dist/compact-session-W4WLJTHA.js +24 -0
  256. package/dist/{compact-session-RIGOWC4Y.js.map → compact-session-W4WLJTHA.js.map} +1 -1
  257. package/dist/compaction.cjs +20 -17
  258. package/dist/compaction.d.cts +15 -1
  259. package/dist/compaction.d.ts +15 -1
  260. package/dist/compaction.js +3 -4
  261. package/dist/concurrency.cjs +6 -7
  262. package/dist/concurrency.cjs.map +1 -1
  263. package/dist/concurrency.d.cts +6 -3
  264. package/dist/concurrency.d.ts +6 -3
  265. package/dist/concurrency.js +4 -5
  266. package/dist/concurrency.js.map +1 -1
  267. package/dist/context/index.cjs +6 -6
  268. package/dist/context/index.js +3 -3
  269. package/dist/context-NI33FS2R.cjs +23 -0
  270. package/dist/{context-WFLTTMK3.cjs.map → context-NI33FS2R.cjs.map} +1 -1
  271. package/dist/context-Y7B7SI5X.js +6 -0
  272. package/dist/{context-WI2DFG7V.js.map → context-Y7B7SI5X.js.map} +1 -1
  273. package/dist/create-skill.d.ts +4 -1
  274. package/dist/{cron-BuiRPrvt.d.cts → cron-C3PhZED0.d.cts} +8 -2
  275. package/dist/{cron-C2SIi31n.d.ts → cron-crfMMdAw.d.ts} +8 -2
  276. package/dist/cron.cjs +46 -45
  277. package/dist/cron.d.cts +5 -4
  278. package/dist/cron.d.ts +5 -4
  279. package/dist/cron.js +45 -44
  280. package/dist/{errors-BgJH9PHi.d.cts → errors-CLOAyuiv.d.ts} +133 -95
  281. package/dist/{errors-C5fJUqLk.d.ts → errors-DrDEgyz1.d.cts} +133 -95
  282. package/dist/errors-base-B5g01neU.d.cts +75 -0
  283. package/dist/errors-base-B5g01neU.d.ts +75 -0
  284. package/dist/errors-base.d.ts +73 -0
  285. package/dist/errors.cjs +25 -22
  286. package/dist/errors.d.cts +3 -2
  287. package/dist/errors.d.ts +3 -2
  288. package/dist/errors.js +2 -3
  289. package/dist/eval.cjs +74 -78
  290. package/dist/eval.cjs.map +1 -1
  291. package/dist/eval.js +64 -68
  292. package/dist/eval.js.map +1 -1
  293. package/dist/{executor-6CYCA7MI.cjs → executor-XQAOQOHD.cjs} +60 -54
  294. package/dist/executor-XQAOQOHD.cjs.map +1 -0
  295. package/dist/{executor-QSEC3MRH.js → executor-ZNDQDX6Q.js} +43 -37
  296. package/dist/executor-ZNDQDX6Q.js.map +1 -0
  297. package/dist/filesystem/index.cjs +24 -26
  298. package/dist/filesystem/index.cjs.map +1 -1
  299. package/dist/filesystem/index.js +20 -22
  300. package/dist/filesystem/index.js.map +1 -1
  301. package/dist/filesystem/types.d.cts +11 -5
  302. package/dist/filesystem/types.d.ts +11 -5
  303. package/dist/{fork-agent-RSV4E3EA.js → fork-agent-S2EPIML7.js} +3 -3
  304. package/dist/fork-agent-S2EPIML7.js.map +1 -0
  305. package/dist/{fork-agent-Y2IK2RYU.cjs → fork-agent-WAEQI2DL.cjs} +4 -4
  306. package/dist/fork-agent-WAEQI2DL.cjs.map +1 -0
  307. package/dist/fs-session-store-77JU46UZ.js +10 -0
  308. package/dist/{fs-session-store-NM6YSTE2.js.map → fs-session-store-77JU46UZ.js.map} +1 -1
  309. package/dist/fs-session-store-E4U3P56L.cjs +19 -0
  310. package/dist/{fs-session-store-4PIHT5UX.cjs.map → fs-session-store-E4U3P56L.cjs.map} +1 -1
  311. package/dist/generate-object-BXV7BZRP.js +7 -0
  312. package/dist/{generate-object-GUNAUVBX.js.map → generate-object-BXV7BZRP.js.map} +1 -1
  313. package/dist/generate-object-YBI2TDJ3.cjs +20 -0
  314. package/dist/{generate-object-R7HTMW7F.cjs.map → generate-object-YBI2TDJ3.cjs.map} +1 -1
  315. package/dist/generate-object.d.ts +2 -4
  316. package/dist/index-manager-DXR2RSFI.cjs +26 -0
  317. package/dist/{index-manager-2SRX45WJ.cjs.map → index-manager-DXR2RSFI.cjs.map} +1 -1
  318. package/dist/index-manager-QH6OXEV5.js +17 -0
  319. package/dist/{index-manager-SP4ISSDX.js.map → index-manager-QH6OXEV5.js.map} +1 -1
  320. package/dist/index.cjs +234 -194
  321. package/dist/index.cjs.map +1 -1
  322. package/dist/index.d.cts +243 -41
  323. package/dist/index.d.ts +243 -41
  324. package/dist/index.js +140 -102
  325. package/dist/index.js.map +1 -1
  326. package/dist/{inject-session-DAR7OUCW.js → inject-session-SUM6TDJF.js} +9 -9
  327. package/dist/{inject-session-DAR7OUCW.js.map → inject-session-SUM6TDJF.js.map} +1 -1
  328. package/dist/inject-session-W6A46J3E.cjs +29 -0
  329. package/dist/{inject-session-WQKMC3GR.cjs.map → inject-session-W6A46J3E.cjs.map} +1 -1
  330. package/dist/interactive/index.cjs +12 -6
  331. package/dist/interactive/index.cjs.map +1 -1
  332. package/dist/interactive/index.js +12 -6
  333. package/dist/interactive/index.js.map +1 -1
  334. package/dist/interactive/types.d.cts +14 -4
  335. package/dist/interactive/types.d.ts +14 -4
  336. package/dist/internal/agent-loop/loop-context-init.d.ts +1 -1
  337. package/dist/internal/agent-loop/loop-finalize.d.ts +25 -0
  338. package/dist/internal/agent-loop/loop.d.ts +1 -1
  339. package/dist/internal/agent-loop/message-builders.d.ts +1 -1
  340. package/dist/internal/agent-loop/tool-dispatch.d.ts +2 -2
  341. package/dist/internal/agent-loop/usage-and-cost.d.ts +1 -1
  342. package/dist/internal/auth/credential-availability.d.ts +61 -0
  343. package/dist/internal/auth/credential-store.d.ts +1 -1
  344. package/dist/internal/auth/oauth-device.d.ts +1 -1
  345. package/dist/internal/auth/oauth-engine.d.ts +1 -1
  346. package/dist/internal/auth/resolve-credential.d.ts +1 -1
  347. package/dist/internal/base-url.d.ts +14 -0
  348. package/dist/internal/cloud-agent/cloud-config-serializer.d.ts +1 -1
  349. package/dist/internal/{runtime/concurrency → concurrency}/subagent-credentials.d.ts +2 -2
  350. package/dist/internal/emit-run-event.d.ts +16 -0
  351. package/dist/internal/error-mappers/shared.d.ts +14 -1
  352. package/dist/internal/eval/assert.d.ts +2 -1
  353. package/dist/internal/eval/single-flight.d.ts +2 -1
  354. package/dist/internal/global-singleton.d.ts +6 -3
  355. package/dist/internal/llm/responses.d.ts +10 -0
  356. package/dist/internal/local-agent/local-agent-bootstrap.d.ts +5 -3
  357. package/dist/internal/local-agent/local-agent-capabilities.d.ts +38 -0
  358. package/dist/internal/local-agent/local-agent-dispatch.d.ts +2 -2
  359. package/dist/internal/local-agent/local-agent-memory-provider.d.ts +1 -1
  360. package/dist/internal/local-agent/local-agent-personality-extensions.d.ts +25 -1
  361. package/dist/internal/local-agent/local-agent-send.d.ts +42 -1
  362. package/dist/internal/local-agent/real-local-run-mcp.d.ts +26 -0
  363. package/dist/internal/local-agent/real-local-run-options.d.ts +26 -0
  364. package/dist/internal/local-agent/real-local-run-tools.d.ts +21 -4
  365. package/dist/internal/local-agent/real-local-run.d.ts +2 -2
  366. package/dist/internal/mcp/handshake-timeout.d.ts +53 -0
  367. package/dist/internal/memory/active-memory.d.ts +1 -1
  368. package/dist/internal/memory/adapters/index.cjs +10 -10
  369. package/dist/internal/memory/adapters/index.js +9 -9
  370. package/dist/internal/memory/adapters/openai-embedding.d.cts +10 -0
  371. package/dist/internal/memory/adapters/openai-embedding.d.ts +10 -0
  372. package/dist/internal/memory/corpus-sync.d.ts +23 -0
  373. package/dist/internal/memory/index-db.d.ts +15 -1
  374. package/dist/internal/memory/index-manager-contract.d.ts +12 -0
  375. package/dist/internal/memory/index-manager.d.ts +4 -10
  376. package/dist/internal/memory/index-repository.d.ts +58 -0
  377. package/dist/internal/memory/lance-memory-adapter.d.ts +16 -14
  378. package/dist/internal/memory/memory-index.d.ts +15 -0
  379. package/dist/internal/memory/sdk-memory-peer-loader.d.ts +54 -1
  380. package/dist/internal/memory/storage/index.cjs +39 -40
  381. package/dist/internal/memory/storage/index.js +10 -11
  382. package/dist/internal/memory/storage/memory-root.d.cts +2 -3
  383. package/dist/internal/memory/storage/memory-root.d.ts +2 -3
  384. package/dist/internal/persistence/atomic-write.d.cts +4 -4
  385. package/dist/internal/persistence/atomic-write.d.ts +4 -4
  386. package/dist/internal/persistence/index.cjs +24 -25
  387. package/dist/internal/persistence/index.cjs.map +1 -1
  388. package/dist/internal/persistence/index.js +7 -8
  389. package/dist/internal/persistence/index.js.map +1 -1
  390. package/dist/internal/persistence/jsonl.d.cts +3 -1
  391. package/dist/internal/persistence/jsonl.d.ts +3 -1
  392. package/dist/internal/persistence/paths.d.cts +25 -12
  393. package/dist/internal/persistence/paths.d.ts +25 -12
  394. package/dist/internal/persistence/transcript-ops.d.cts +11 -2
  395. package/dist/internal/persistence/transcript-ops.d.ts +11 -2
  396. package/dist/internal/plugins/context.d.cts +0 -10
  397. package/dist/internal/plugins/context.d.ts +0 -10
  398. package/dist/internal/plugins/types.d.cts +1 -1
  399. package/dist/internal/plugins/types.d.ts +1 -1
  400. package/dist/internal/providers/catalog-schema.d.ts +94 -0
  401. package/dist/internal/providers/catalog-source-models-dev.d.ts +11 -0
  402. package/dist/internal/runtime/compat/compat-config-file.d.ts +31 -0
  403. package/dist/internal/runtime/compat/foreign-config-sources.d.ts +58 -34
  404. package/dist/internal/runtime/compression/compression-model-registry.d.ts +1 -1
  405. package/dist/internal/runtime/compression/compression-summarizer.d.ts +5 -1
  406. package/dist/internal/runtime/fixtures/fixture-events.d.ts +1 -1
  407. package/dist/internal/runtime/fixtures/fixture-mode.d.ts +8 -14
  408. package/dist/internal/runtime/fixtures/fixture-run-base.d.ts +1 -1
  409. package/dist/internal/runtime/fixtures/fixture-scripts.d.ts +2 -2
  410. package/dist/internal/runtime/hooks/hooks-executor.d.ts +6 -1
  411. package/dist/internal/runtime/lifecycle/wrap-completion-check-run.d.ts +1 -1
  412. package/dist/internal/runtime/{memory → memory-glue}/memory-provider.d.ts +1 -1
  413. package/dist/internal/runtime/{plugins → plugin-loader}/plugin-bundles.d.ts +4 -1
  414. package/dist/internal/runtime/processors/wrap-output-run.d.ts +1 -1
  415. package/dist/internal/runtime/registry/live-agent-registry.d.ts +9 -1
  416. package/dist/internal/runtime/system-prompt/local-assembly.d.ts +2 -1
  417. package/dist/internal/scorers/llm-judge.d.ts +12 -0
  418. package/dist/internal/security/index.cjs +14 -15
  419. package/dist/internal/security/index.d.cts +6 -1
  420. package/dist/internal/security/index.d.ts +6 -1
  421. package/dist/internal/security/index.js +4 -5
  422. package/dist/internal/security/path-containment.d.ts +24 -0
  423. package/dist/internal/session/agent-session-store.d.ts +1 -1
  424. package/dist/internal/session/agent-session.d.ts +1 -1
  425. package/dist/internal/session/index.d.ts +1 -1
  426. package/dist/internal/session/session-cache.d.ts +9 -3
  427. package/dist/internal/task/registry.d.ts +1 -1
  428. package/dist/internal/task/store.d.ts +1 -1
  429. package/dist/internal/task/subscribe.d.ts +1 -1
  430. package/dist/internal/task/task-id.d.ts +22 -0
  431. package/dist/internal/telemetry/adapter-registry.d.ts +12 -2
  432. package/dist/internal/telemetry/adapters/braintrust.d.ts +6 -1
  433. package/dist/internal/telemetry/adapters/langsmith.d.ts +6 -1
  434. package/dist/internal/workflow/executor.d.ts +2 -1
  435. package/dist/internal/workflow/snapshot-store.d.ts +1 -1
  436. package/dist/internal/workflow/step-branch.d.ts +2 -2
  437. package/dist/internal/workflow/step-dowhile.d.ts +2 -2
  438. package/dist/internal/workflow/step-execution.d.ts +25 -0
  439. package/dist/internal/workflow/step-foreach.d.ts +2 -2
  440. package/dist/internal/workflow/step-parallel.d.ts +2 -2
  441. package/dist/judge-call-6MVARKU2.js +5 -0
  442. package/dist/{judge-call-LVXABPS3.js.map → judge-call-6MVARKU2.js.map} +1 -1
  443. package/dist/judge-call-I3P4D5QR.cjs +22 -0
  444. package/dist/{judge-call-LAHMBJ57.cjs.map → judge-call-I3P4D5QR.cjs.map} +1 -1
  445. package/dist/mcp-auth.cjs +14 -15
  446. package/dist/mcp-auth.cjs.map +1 -1
  447. package/dist/mcp-auth.d.cts +2 -0
  448. package/dist/mcp-auth.d.ts +2 -0
  449. package/dist/mcp-auth.js +4 -5
  450. package/dist/mcp-auth.js.map +1 -1
  451. package/dist/models.cjs +52 -42
  452. package/dist/models.cjs.map +1 -1
  453. package/dist/models.js +39 -29
  454. package/dist/models.js.map +1 -1
  455. package/dist/oauth-transaction-store-5RIR6D5C.js +5 -0
  456. package/dist/{oauth-transaction-store-W52KVHQ4.js.map → oauth-transaction-store-5RIR6D5C.js.map} +1 -1
  457. package/dist/oauth-transaction-store-SXIE57OD.cjs +38 -0
  458. package/dist/{oauth-transaction-store-BT4GLTLK.cjs.map → oauth-transaction-store-SXIE57OD.cjs.map} +1 -1
  459. package/dist/path-safety.cjs +11 -12
  460. package/dist/path-safety.d.cts +2 -0
  461. package/dist/path-safety.d.ts +2 -0
  462. package/dist/path-safety.js +4 -5
  463. package/dist/permission-engine.d.ts +10 -17
  464. package/dist/persistence.cjs +31 -31
  465. package/dist/persistence.cjs.map +1 -1
  466. package/dist/persistence.d.cts +9 -1
  467. package/dist/persistence.d.ts +9 -1
  468. package/dist/persistence.js +12 -13
  469. package/dist/persistence.js.map +1 -1
  470. package/dist/project.cjs +5 -6
  471. package/dist/project.cjs.map +1 -1
  472. package/dist/project.js +3 -4
  473. package/dist/project.js.map +1 -1
  474. package/dist/providers.cjs +10 -10
  475. package/dist/providers.d.cts +2 -0
  476. package/dist/providers.d.ts +2 -0
  477. package/dist/providers.js +8 -8
  478. package/dist/registry-BZQFYRTL.cjs +46 -0
  479. package/dist/{registry-V7BDQ6QB.cjs.map → registry-BZQFYRTL.cjs.map} +1 -1
  480. package/dist/registry-DMWCJKRF.js +9 -0
  481. package/dist/{registry-75W33OGL.js.map → registry-DMWCJKRF.js.map} +1 -1
  482. package/dist/retry.cjs +4 -5
  483. package/dist/retry.d.cts +20 -5
  484. package/dist/retry.d.ts +20 -5
  485. package/dist/retry.js +3 -4
  486. package/dist/{run-BYSHf58D.d.ts → run-CTAdRU3U.d.cts} +120 -152
  487. package/dist/{run-BYSHf58D.d.cts → run-CTAdRU3U.d.ts} +120 -152
  488. package/dist/{run-until-HEQOUVU6.js → run-until-6D6TQ4JN.js} +27 -59
  489. package/dist/run-until-6D6TQ4JN.js.map +1 -0
  490. package/dist/{run-until-U2B5FJJI.cjs → run-until-DG2KXWB2.cjs} +27 -59
  491. package/dist/run-until-DG2KXWB2.cjs.map +1 -0
  492. package/dist/sandbox/bwrap.d.cts +11 -1
  493. package/dist/sandbox/bwrap.d.ts +11 -1
  494. package/dist/sandbox/index.cjs +26 -30
  495. package/dist/sandbox/index.cjs.map +1 -1
  496. package/dist/sandbox/index.d.cts +8 -1
  497. package/dist/sandbox/index.d.ts +8 -1
  498. package/dist/sandbox/index.js +10 -14
  499. package/dist/sandbox/index.js.map +1 -1
  500. package/dist/sandbox/linux-sandbox.d.cts +20 -4
  501. package/dist/sandbox/linux-sandbox.d.ts +20 -4
  502. package/dist/sandbox/types.d.cts +18 -2
  503. package/dist/sandbox/types.d.ts +18 -2
  504. package/dist/sanitize/index.cjs +2 -2
  505. package/dist/sanitize/index.js +1 -1
  506. package/dist/sanitize/types.d.cts +15 -2
  507. package/dist/sanitize/types.d.ts +15 -2
  508. package/dist/{sdk-agent-D8qJVkuV.d.ts → sdk-agent-BOiKqOgL.d.cts} +197 -117
  509. package/dist/{sdk-agent-DEoKhA8a.d.cts → sdk-agent-D4a_BR_6.d.ts} +197 -117
  510. package/dist/server/auth/errors.d.cts +4 -3
  511. package/dist/server/auth/errors.d.ts +4 -3
  512. package/dist/server/auth/index.cjs +28 -28
  513. package/dist/server/auth/index.cjs.map +1 -1
  514. package/dist/server/auth/index.d.cts +28 -5
  515. package/dist/server/auth/index.d.ts +28 -5
  516. package/dist/server/auth/index.js +13 -13
  517. package/dist/server/auth/index.js.map +1 -1
  518. package/dist/server/auth/oauth-transaction-store.d.cts +2 -1
  519. package/dist/server/auth/oauth-transaction-store.d.ts +2 -1
  520. package/dist/server/auth/orchestrator.d.cts +4 -1
  521. package/dist/server/auth/orchestrator.d.ts +4 -1
  522. package/dist/server/auth/types.d.cts +18 -0
  523. package/dist/server/auth/types.d.ts +18 -0
  524. package/dist/server/errors-envelope.cjs +14 -15
  525. package/dist/server/errors-envelope.cjs.map +1 -1
  526. package/dist/server/errors-envelope.d.cts +3 -3
  527. package/dist/server/errors-envelope.d.ts +3 -3
  528. package/dist/server/errors-envelope.js +3 -4
  529. package/dist/server/errors-envelope.js.map +1 -1
  530. package/dist/session-transcript-LGHSNVY5.cjs +62 -0
  531. package/dist/{session-transcript-6WNITKRE.cjs.map → session-transcript-LGHSNVY5.cjs.map} +1 -1
  532. package/dist/session-transcript-VTBTCGQX.js +5 -0
  533. package/dist/{session-transcript-XAEKW6P7.js.map → session-transcript-VTBTCGQX.js.map} +1 -1
  534. package/dist/skills.cjs +8 -9
  535. package/dist/skills.js +6 -7
  536. package/dist/stream-object-HBFMIZLD.js +7 -0
  537. package/dist/{stream-object-UF4QRQRU.js.map → stream-object-HBFMIZLD.js.map} +1 -1
  538. package/dist/stream-object-QSKHISDJ.cjs +20 -0
  539. package/dist/{stream-object-ZJTQNKY3.cjs.map → stream-object-QSKHISDJ.cjs.map} +1 -1
  540. package/dist/stream-object.d.ts +2 -4
  541. package/dist/subagents-loader-TPZLTXYZ.cjs +16 -0
  542. package/dist/{subagents-loader-UCNO7FUH.cjs.map → subagents-loader-TPZLTXYZ.cjs.map} +1 -1
  543. package/dist/subagents-loader-Y6JFYXAY.js +7 -0
  544. package/dist/{subagents-loader-XP5ERVDZ.js.map → subagents-loader-Y6JFYXAY.js.map} +1 -1
  545. package/dist/subagents-loader.cjs +7 -8
  546. package/dist/subagents-loader.cjs.map +1 -1
  547. package/dist/subagents-loader.d.cts +5 -3
  548. package/dist/subagents-loader.d.ts +5 -3
  549. package/dist/subagents-loader.js +5 -6
  550. package/dist/subagents-loader.js.map +1 -1
  551. package/dist/subagents.cjs +2 -2
  552. package/dist/subagents.cjs.map +1 -1
  553. package/dist/subagents.js +1 -1
  554. package/dist/subagents.js.map +1 -1
  555. package/dist/subscription/define-subscription.d.cts +4 -1
  556. package/dist/subscription/define-subscription.d.ts +4 -1
  557. package/dist/subscription/index.cjs +4 -5
  558. package/dist/subscription/index.cjs.map +1 -1
  559. package/dist/subscription/index.d.cts +2 -0
  560. package/dist/subscription/index.d.ts +2 -0
  561. package/dist/subscription/index.js +3 -4
  562. package/dist/subscription/index.js.map +1 -1
  563. package/dist/subscription/internal/server-integration.d.cts +5 -0
  564. package/dist/subscription/internal/server-integration.d.ts +5 -0
  565. package/dist/subscription/internal/subscription-runtime.d.cts +13 -1
  566. package/dist/subscription/internal/subscription-runtime.d.ts +13 -1
  567. package/dist/task-errors.d.ts +58 -0
  568. package/dist/task-store.cjs +7 -8
  569. package/dist/task-store.d.cts +2 -0
  570. package/dist/task-store.d.ts +2 -0
  571. package/dist/task-store.js +4 -5
  572. package/dist/types/agent-prims.d.ts +21 -0
  573. package/dist/types/agent.d.ts +109 -15
  574. package/dist/types/batch.d.ts +3 -0
  575. package/dist/types/budget-tracker.d.ts +3 -0
  576. package/dist/types/budget.d.ts +12 -3
  577. package/dist/types/content-blocks.d.ts +3 -0
  578. package/dist/types/context.d.ts +3 -0
  579. package/dist/types/conversation.d.ts +5 -0
  580. package/dist/types/cron.d.ts +5 -0
  581. package/dist/types/env-policy.d.ts +3 -0
  582. package/dist/types/eval.d.ts +3 -0
  583. package/dist/types/fork.d.ts +3 -0
  584. package/dist/types/goal-events.d.ts +3 -0
  585. package/dist/types/mcp.d.ts +5 -0
  586. package/dist/types/memory-adapter.d.ts +3 -0
  587. package/dist/types/memory-provider.d.ts +44 -5
  588. package/dist/types/messages-base.d.ts +4 -0
  589. package/dist/types/messages.d.ts +5 -0
  590. package/dist/types/plugin.d.ts +32 -4
  591. package/dist/types/processors.d.ts +3 -0
  592. package/dist/types/provider-profile.d.ts +3 -0
  593. package/dist/types/providers.d.ts +3 -0
  594. package/dist/types/run-events.d.ts +36 -9
  595. package/dist/types/run.d.ts +29 -2
  596. package/dist/types/sdk-agent.d.ts +71 -1
  597. package/dist/types/session-message.d.ts +3 -0
  598. package/dist/types/session-record.d.ts +3 -0
  599. package/dist/types/session-store.d.ts +45 -0
  600. package/dist/types/task.d.ts +3 -11
  601. package/dist/types/theokit.d.ts +3 -0
  602. package/dist/types/trajectory.d.ts +3 -0
  603. package/dist/types/updates.d.ts +5 -0
  604. package/dist/types/usage.d.ts +4 -1
  605. package/dist/types/workflow.d.ts +13 -135
  606. package/dist/workflow-as-tool.d.ts +66 -0
  607. package/dist/workflow-errors.d.ts +164 -0
  608. package/dist/workflow.cjs +29 -30
  609. package/dist/workflow.d.cts +135 -74
  610. package/dist/workflow.d.ts +135 -74
  611. package/dist/workflow.js +8 -9
  612. package/docs/adr/README.md +2604 -0
  613. package/docs/error-codes.md +139 -105
  614. package/docs/harness-capability-map.md +32 -20
  615. package/docs/memory-decisions.md +1 -1
  616. package/package.json +3 -7
  617. package/bin/theokit-migrate-config.mjs +0 -278
  618. package/bin/theokit-migrate-memory.mjs +0 -116
  619. package/dist/agent-A5XMIVNP.js +0 -57
  620. package/dist/agent-UX7WFI6B.cjs +0 -66
  621. package/dist/agent-session-store-6EL5NPA4.cjs +0 -24
  622. package/dist/agent-session-store-OPGRB4XM.js +0 -7
  623. package/dist/batch-BXYTW2DP.cjs.map +0 -1
  624. package/dist/batch-L4ZXS46M.js.map +0 -1
  625. package/dist/chunk-247ZTLNU.js +0 -73
  626. package/dist/chunk-247ZTLNU.js.map +0 -1
  627. package/dist/chunk-2D34UTDC.js.map +0 -1
  628. package/dist/chunk-2GUYQR5P.js.map +0 -1
  629. package/dist/chunk-2QDYBS2A.js.map +0 -1
  630. package/dist/chunk-32WTYBUH.js.map +0 -1
  631. package/dist/chunk-3FFAEAUJ.cjs.map +0 -1
  632. package/dist/chunk-3O42QOMJ.js.map +0 -1
  633. package/dist/chunk-3OR54XG4.js.map +0 -1
  634. package/dist/chunk-43ZQRWAP.cjs.map +0 -1
  635. package/dist/chunk-4FFBAUFS.js.map +0 -1
  636. package/dist/chunk-4O5TGQBW.cjs.map +0 -1
  637. package/dist/chunk-4OTIXDMU.cjs.map +0 -1
  638. package/dist/chunk-4PYZ5AX3.cjs.map +0 -1
  639. package/dist/chunk-4QZSA2HJ.js.map +0 -1
  640. package/dist/chunk-4ZHTIJNE.cjs.map +0 -1
  641. package/dist/chunk-52NKC5HT.cjs.map +0 -1
  642. package/dist/chunk-6HKGLTJI.cjs.map +0 -1
  643. package/dist/chunk-6JSIEDKL.cjs.map +0 -1
  644. package/dist/chunk-7AD3ZTZL.js.map +0 -1
  645. package/dist/chunk-7BG5UH3T.cjs.map +0 -1
  646. package/dist/chunk-7VT4P3Z4.cjs.map +0 -1
  647. package/dist/chunk-7YGCPMGB.js.map +0 -1
  648. package/dist/chunk-A46SWMIF.js.map +0 -1
  649. package/dist/chunk-A4JVILQU.js.map +0 -1
  650. package/dist/chunk-ACDLHN3W.js.map +0 -1
  651. package/dist/chunk-AKJP2STZ.cjs +0 -81
  652. package/dist/chunk-AKJP2STZ.cjs.map +0 -1
  653. package/dist/chunk-AWO27VRZ.js.map +0 -1
  654. package/dist/chunk-B2J4ZMZL.cjs.map +0 -1
  655. package/dist/chunk-B4EOJWOY.cjs.map +0 -1
  656. package/dist/chunk-BU4KFWXF.js.map +0 -1
  657. package/dist/chunk-BZRFXJHA.js.map +0 -1
  658. package/dist/chunk-C3NT3PVE.js.map +0 -1
  659. package/dist/chunk-C72AZW7J.js.map +0 -1
  660. package/dist/chunk-D4CUGAKZ.js.map +0 -1
  661. package/dist/chunk-DN2PACRI.js.map +0 -1
  662. package/dist/chunk-DXGZ2NUG.cjs.map +0 -1
  663. package/dist/chunk-EG4QM7ZJ.cjs +0 -39
  664. package/dist/chunk-EG4QM7ZJ.cjs.map +0 -1
  665. package/dist/chunk-GMLBYDW4.cjs.map +0 -1
  666. package/dist/chunk-HCZD23VS.cjs.map +0 -1
  667. package/dist/chunk-HS7AVXTF.js.map +0 -1
  668. package/dist/chunk-IAHZCGBE.cjs.map +0 -1
  669. package/dist/chunk-J24VJOH3.cjs.map +0 -1
  670. package/dist/chunk-JPBKYL3B.cjs +0 -18
  671. package/dist/chunk-JPBKYL3B.cjs.map +0 -1
  672. package/dist/chunk-KQ7TS7WW.cjs.map +0 -1
  673. package/dist/chunk-KQRW2GPZ.js.map +0 -1
  674. package/dist/chunk-KYAJINUI.cjs.map +0 -1
  675. package/dist/chunk-L3MTL4NA.js.map +0 -1
  676. package/dist/chunk-L4BDVXIM.js.map +0 -1
  677. package/dist/chunk-LKBEROHN.js.map +0 -1
  678. package/dist/chunk-LYRDF5TQ.cjs.map +0 -1
  679. package/dist/chunk-LYTOXSRH.js.map +0 -1
  680. package/dist/chunk-N2U4AZGB.js.map +0 -1
  681. package/dist/chunk-NDGGJQTZ.js.map +0 -1
  682. package/dist/chunk-O7DK5PBJ.cjs.map +0 -1
  683. package/dist/chunk-O7LZFG6O.cjs.map +0 -1
  684. package/dist/chunk-OFRFZRQ4.cjs.map +0 -1
  685. package/dist/chunk-OSEG74VJ.js.map +0 -1
  686. package/dist/chunk-RFMBZPOW.cjs.map +0 -1
  687. package/dist/chunk-RFXWMRFC.js.map +0 -1
  688. package/dist/chunk-RIAM53CP.js.map +0 -1
  689. package/dist/chunk-RMWTPV3M.cjs.map +0 -1
  690. package/dist/chunk-RNB4APBZ.js.map +0 -1
  691. package/dist/chunk-SAVIWMZB.js.map +0 -1
  692. package/dist/chunk-SZVR77EJ.cjs.map +0 -1
  693. package/dist/chunk-TAZVKYWJ.js.map +0 -1
  694. package/dist/chunk-U54XCYG3.js.map +0 -1
  695. package/dist/chunk-U6IFHFWK.js.map +0 -1
  696. package/dist/chunk-UALX2J2Q.cjs.map +0 -1
  697. package/dist/chunk-UBDMVMBZ.js.map +0 -1
  698. package/dist/chunk-UGT7GK7I.cjs.map +0 -1
  699. package/dist/chunk-UNYXQ4M5.js.map +0 -1
  700. package/dist/chunk-UTSRIDKZ.js.map +0 -1
  701. package/dist/chunk-UU36SHFY.cjs.map +0 -1
  702. package/dist/chunk-V2BOS4WF.cjs.map +0 -1
  703. package/dist/chunk-VCLBZAZU.cjs.map +0 -1
  704. package/dist/chunk-VJ26EKGJ.cjs.map +0 -1
  705. package/dist/chunk-VKJ7V7EB.cjs.map +0 -1
  706. package/dist/chunk-VLVVJLDH.cjs.map +0 -1
  707. package/dist/chunk-WLQNMXQE.js.map +0 -1
  708. package/dist/chunk-WNO3C3N2.cjs.map +0 -1
  709. package/dist/chunk-WTMU7J4U.js +0 -14
  710. package/dist/chunk-WTMU7J4U.js.map +0 -1
  711. package/dist/chunk-XEQ3TM66.js +0 -35
  712. package/dist/chunk-XEQ3TM66.js.map +0 -1
  713. package/dist/chunk-XJCXEKMD.cjs.map +0 -1
  714. package/dist/chunk-XL7Q7HB2.cjs.map +0 -1
  715. package/dist/chunk-XWTLIGO3.cjs.map +0 -1
  716. package/dist/chunk-YML4ME27.cjs.map +0 -1
  717. package/dist/chunk-ZSWPZ23K.cjs.map +0 -1
  718. package/dist/chunk-ZZMZWBR6.js.map +0 -1
  719. package/dist/compact-session-QV57KR66.cjs +0 -59
  720. package/dist/compact-session-RIGOWC4Y.js +0 -22
  721. package/dist/context-WFLTTMK3.cjs +0 -24
  722. package/dist/context-WI2DFG7V.js +0 -7
  723. package/dist/executor-6CYCA7MI.cjs.map +0 -1
  724. package/dist/executor-QSEC3MRH.js.map +0 -1
  725. package/dist/fork-agent-RSV4E3EA.js.map +0 -1
  726. package/dist/fork-agent-Y2IK2RYU.cjs.map +0 -1
  727. package/dist/fs-session-store-4PIHT5UX.cjs +0 -20
  728. package/dist/fs-session-store-NM6YSTE2.js +0 -11
  729. package/dist/generate-object-GUNAUVBX.js +0 -8
  730. package/dist/generate-object-R7HTMW7F.cjs +0 -21
  731. package/dist/index-manager-2SRX45WJ.cjs +0 -27
  732. package/dist/index-manager-SP4ISSDX.js +0 -18
  733. package/dist/inject-session-WQKMC3GR.cjs +0 -29
  734. package/dist/internal/persistence/credential-pool-store.d.cts +0 -32
  735. package/dist/internal/persistence/credential-pool-store.d.ts +0 -32
  736. package/dist/internal/runtime/memory/memory-path-selector.d.ts +0 -73
  737. package/dist/judge-call-LAHMBJ57.cjs +0 -23
  738. package/dist/judge-call-LVXABPS3.js +0 -6
  739. package/dist/oauth-transaction-store-BT4GLTLK.cjs +0 -36
  740. package/dist/oauth-transaction-store-W52KVHQ4.js +0 -3
  741. package/dist/registry-75W33OGL.js +0 -10
  742. package/dist/registry-V7BDQ6QB.cjs +0 -47
  743. package/dist/run-until-HEQOUVU6.js.map +0 -1
  744. package/dist/run-until-U2B5FJJI.cjs.map +0 -1
  745. package/dist/server/adapter/express.d.cts +0 -9
  746. package/dist/server/adapter/express.d.ts +0 -9
  747. package/dist/server/adapter/fastify.d.cts +0 -9
  748. package/dist/server/adapter/fastify.d.ts +0 -9
  749. package/dist/server/adapter/hono.d.cts +0 -9
  750. package/dist/server/adapter/hono.d.ts +0 -9
  751. package/dist/server/adapter/shared-handler.d.cts +0 -9
  752. package/dist/server/adapter/shared-handler.d.ts +0 -9
  753. package/dist/server/adapter/types.d.cts +0 -33
  754. package/dist/server/adapter/types.d.ts +0 -33
  755. package/dist/session-transcript-6WNITKRE.cjs +0 -63
  756. package/dist/session-transcript-XAEKW6P7.js +0 -6
  757. package/dist/stream-object-UF4QRQRU.js +0 -8
  758. package/dist/stream-object-ZJTQNKY3.cjs +0 -21
  759. package/dist/subagents-loader-UCNO7FUH.cjs +0 -17
  760. package/dist/subagents-loader-XP5ERVDZ.js +0 -8
  761. /package/dist/{batch.d.ts → internal/agent/batch.d.ts} +0 -0
  762. /package/dist/{agent-helpers.d.ts → internal/agent/helpers.d.ts} +0 -0
  763. /package/dist/internal/agent-loop/{loop-types.d.ts → types.d.ts} +0 -0
  764. /package/dist/internal/auth/{auth-types.d.ts → types.d.ts} +0 -0
  765. /package/dist/internal/cloud-agent/{cloud-payload-types.d.ts → types.d.ts} +0 -0
  766. /package/dist/internal/{runtime/concurrency → concurrency}/abort-utils.d.ts +0 -0
  767. /package/dist/internal/{runtime/concurrency → concurrency}/async-local-storage.d.ts +0 -0
  768. /package/dist/internal/{runtime/concurrency → concurrency}/async-semaphore.d.ts +0 -0
  769. /package/dist/internal/{runtime/concurrency → concurrency}/delegation-depth.d.ts +0 -0
  770. /package/dist/internal/{runtime/concurrency → concurrency}/map-with-concurrency.d.ts +0 -0
  771. /package/dist/internal/{runtime/retry → error-mappers}/default-retriable.d.ts +0 -0
  772. /package/dist/internal/{runtime/fixtures/fixture-types.d.ts → memory/storage/list-markdown.d.cts} +0 -0
  773. /package/dist/internal/{runtime/plugins/plugins-manager.d.ts → memory/storage/list-markdown.d.ts} +0 -0
  774. /package/dist/internal/{resilience → retry}/circuit-breaker.d.ts +0 -0
  775. /package/dist/internal/{runtime/retry → retry}/with-retry.d.ts +0 -0
  776. /package/dist/internal/{security/secret-redactor.d.cts → runtime/fixtures/types.d.ts} +0 -0
  777. /package/dist/internal/runtime/{memory → memory-glue}/memory-store.d.ts +0 -0
  778. /package/dist/internal/runtime/{memory → memory-glue}/select-facts.d.ts +0 -0
  779. /package/dist/internal/runtime/{plugins → plugin-loader}/plugin-frontmatter.d.ts +0 -0
  780. /package/dist/internal/{security/secret-redactor.d.ts → runtime/plugin-loader/plugins-manager.d.ts} +0 -0
  781. /package/dist/internal/runtime/{reasoning → system-prompt}/native-reasoning.d.ts +0 -0
  782. /package/dist/internal/{runtime/context/path-containment.d.ts → security/path-containment.d.cts} +0 -0
  783. /package/dist/internal/session/{session-types.d.ts → types.d.ts} +0 -0
  784. /package/dist/internal/{zod/to-json-schema.d.ts → zod-to-json-schema.d.ts} +0 -0
  785. /package/dist/subscription/internal/{adapter-types.d.cts → types.d.cts} +0 -0
  786. /package/dist/subscription/internal/{adapter-types.d.ts → types.d.ts} +0 -0
package/dist/index.cjs CHANGED
@@ -1,70 +1,71 @@
1
1
  'use strict';
2
2
 
3
- var chunkLYRDF5TQ_cjs = require('./chunk-LYRDF5TQ.cjs');
3
+ var chunkTFG5IBZS_cjs = require('./chunk-TFG5IBZS.cjs');
4
4
  var chunkOBA6YK2R_cjs = require('./chunk-OBA6YK2R.cjs');
5
- var chunk3NSS2OIZ_cjs = require('./chunk-3NSS2OIZ.cjs');
6
- var chunkOFRFZRQ4_cjs = require('./chunk-OFRFZRQ4.cjs');
7
- var chunkSZVR77EJ_cjs = require('./chunk-SZVR77EJ.cjs');
8
- require('./chunk-B4EOJWOY.cjs');
9
- var chunkYML4ME27_cjs = require('./chunk-YML4ME27.cjs');
10
- require('./chunk-WNO3C3N2.cjs');
5
+ var chunkDRL7URI4_cjs = require('./chunk-DRL7URI4.cjs');
6
+ var chunkV6ZY4AX6_cjs = require('./chunk-V6ZY4AX6.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');
11
11
  require('./chunk-VTYY7XL5.cjs');
12
- var chunkGMLBYDW4_cjs = require('./chunk-GMLBYDW4.cjs');
13
- var chunk7VT4P3Z4_cjs = require('./chunk-7VT4P3Z4.cjs');
14
- var chunk3FFAEAUJ_cjs = require('./chunk-3FFAEAUJ.cjs');
15
- require('./chunk-RMWTPV3M.cjs');
12
+ var chunkVXDEKILY_cjs = require('./chunk-VXDEKILY.cjs');
13
+ var chunkQUAEOKDW_cjs = require('./chunk-QUAEOKDW.cjs');
14
+ var chunkKVSAY6NZ_cjs = require('./chunk-KVSAY6NZ.cjs');
15
+ require('./chunk-Y2KYR2ED.cjs');
16
16
  require('./chunk-BUUUWQMB.cjs');
17
- require('./chunk-VLVVJLDH.cjs');
18
- require('./chunk-VCLBZAZU.cjs');
17
+ require('./chunk-2NE7DTOK.cjs');
18
+ require('./chunk-H6YM3PV6.cjs');
19
19
  require('./chunk-BV2MWEMV.cjs');
20
- require('./chunk-KQ7TS7WW.cjs');
20
+ require('./chunk-D6POWE7E.cjs');
21
21
  require('./chunk-GHX4P3V2.cjs');
22
- require('./chunk-GKEFRLU7.cjs');
23
- var chunkIAHZCGBE_cjs = require('./chunk-IAHZCGBE.cjs');
24
- require('./chunk-ZLQSWSJ2.cjs');
25
- var chunkKYAJINUI_cjs = require('./chunk-KYAJINUI.cjs');
26
- require('./chunk-O7DK5PBJ.cjs');
27
- require('./chunk-4OTIXDMU.cjs');
28
- require('./chunk-UGT7GK7I.cjs');
29
- require('./chunk-O7LZFG6O.cjs');
22
+ require('./chunk-TMKTSYDS.cjs');
23
+ var chunkLHSWHYF3_cjs = require('./chunk-LHSWHYF3.cjs');
24
+ require('./chunk-7FDKWDA2.cjs');
25
+ var chunk2HPNT6HH_cjs = require('./chunk-2HPNT6HH.cjs');
26
+ require('./chunk-FUSDYC2B.cjs');
27
+ require('./chunk-YJNYDJ2T.cjs');
28
+ require('./chunk-24SYBZPL.cjs');
29
+ require('./chunk-QOGNZMHD.cjs');
30
+ require('./chunk-YIFFF23U.cjs');
30
31
  require('./chunk-2ZPEDVLM.cjs');
31
- require('./chunk-7BG5UH3T.cjs');
32
+ require('./chunk-RHZ6HP23.cjs');
32
33
  require('./chunk-KRD3GQAA.cjs');
33
- require('./chunk-2HVF2WJY.cjs');
34
+ require('./chunk-RQMCOFAI.cjs');
34
35
  require('./chunk-MUUQ2WFJ.cjs');
35
- var chunkWJVHMTKB_cjs = require('./chunk-WJVHMTKB.cjs');
36
- require('./chunk-6JSIEDKL.cjs');
36
+ var chunkAA27GEYS_cjs = require('./chunk-AA27GEYS.cjs');
37
+ require('./chunk-YSTXFWQE.cjs');
37
38
  require('./chunk-FRITRLZQ.cjs');
38
- require('./chunk-4O5TGQBW.cjs');
39
+ require('./chunk-QME6FDFG.cjs');
39
40
  require('./chunk-NINIJCHU.cjs');
40
- require('./chunk-OHLDPWTA.cjs');
41
+ require('./chunk-UGRS7ZA7.cjs');
41
42
  require('./chunk-LKFET5A3.cjs');
42
- require('./chunk-VJ26EKGJ.cjs');
43
- require('./chunk-V2BOS4WF.cjs');
44
- require('./chunk-VKJ7V7EB.cjs');
45
- require('./chunk-ZSWPZ23K.cjs');
46
- require('./chunk-XWTLIGO3.cjs');
47
- require('./chunk-I6HGWHPU.cjs');
48
- require('./chunk-5HEG4CQH.cjs');
43
+ require('./chunk-IJ7M6GOG.cjs');
44
+ require('./chunk-7A6535RA.cjs');
45
+ require('./chunk-SA6K24NB.cjs');
46
+ require('./chunk-I2PWY7VM.cjs');
47
+ require('./chunk-KTTHHYEW.cjs');
48
+ require('./chunk-Z3NTRKIC.cjs');
49
+ require('./chunk-GZV6AVRL.cjs');
49
50
  require('./chunk-A4RAL2ER.cjs');
50
- require('./chunk-5VB22SYX.cjs');
51
- require('./chunk-UU36SHFY.cjs');
51
+ require('./chunk-DQZU7JK6.cjs');
52
+ require('./chunk-BJUJT5ED.cjs');
52
53
  var chunkZF2LDKQQ_cjs = require('./chunk-ZF2LDKQQ.cjs');
53
- var chunkRFMBZPOW_cjs = require('./chunk-RFMBZPOW.cjs');
54
- var chunkUALX2J2Q_cjs = require('./chunk-UALX2J2Q.cjs');
55
- require('./chunk-43ZQRWAP.cjs');
56
- require('./chunk-AKJP2STZ.cjs');
57
- require('./chunk-4CLOXP6H.cjs');
58
- require('./chunk-DXGZ2NUG.cjs');
54
+ var chunkHCT4HPCL_cjs = require('./chunk-HCT4HPCL.cjs');
55
+ var chunkJLRLCBJ4_cjs = require('./chunk-JLRLCBJ4.cjs');
56
+ require('./chunk-SYVWE64W.cjs');
57
+ require('./chunk-GGZ5GPE3.cjs');
58
+ require('./chunk-HW7SEELD.cjs');
59
+ var chunkATT276RD_cjs = require('./chunk-ATT276RD.cjs');
59
60
  var chunk3EE6LVWT_cjs = require('./chunk-3EE6LVWT.cjs');
60
- require('./chunk-JPBKYL3B.cjs');
61
- var chunkHCZD23VS_cjs = require('./chunk-HCZD23VS.cjs');
62
- require('./chunk-6HKGLTJI.cjs');
63
- require('./chunk-XJCXEKMD.cjs');
64
- require('./chunk-52NKC5HT.cjs');
65
- var chunk4ZHTIJNE_cjs = require('./chunk-4ZHTIJNE.cjs');
66
- var chunkXL7Q7HB2_cjs = require('./chunk-XL7Q7HB2.cjs');
67
- var chunkEG4QM7ZJ_cjs = require('./chunk-EG4QM7ZJ.cjs');
61
+ require('./chunk-ANMJJD6D.cjs');
62
+ var chunkQC55H6RJ_cjs = require('./chunk-QC55H6RJ.cjs');
63
+ 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');
68
+ var chunk6LHQPOMI_cjs = require('./chunk-6LHQPOMI.cjs');
68
69
  var crypto = require('crypto');
69
70
  var zod = require('zod');
70
71
  var promises = require('fs/promises');
@@ -73,8 +74,8 @@ var path = require('path');
73
74
  // src/agent-factory.ts
74
75
  function createAgentFactory(common) {
75
76
  return {
76
- forSession: (agentId, overrides) => chunk7VT4P3Z4_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
77
- getOrCreate: (agentId, overrides) => chunk7VT4P3Z4_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
77
+ forSession: (agentId, overrides) => chunkQUAEOKDW_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
78
+ getOrCreate: (agentId, overrides) => chunkQUAEOKDW_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
78
79
  };
79
80
  }
80
81
  function mergeAgentOptions(common, overrides, agentId) {
@@ -228,21 +229,29 @@ var NAME_GRAMMAR = /^[a-z0-9][a-z0-9_-]*$/;
228
229
  var registry = /* @__PURE__ */ new Map();
229
230
  function validateBudgetName(name) {
230
231
  if (typeof name !== "string" || name.length === 0) {
231
- throw new chunk4ZHTIJNE_cjs.ConfigurationError("Budget name must be a non-empty string", {
232
+ throw new chunkJ7J7J2GN_cjs.ConfigurationError("Budget name must be a non-empty string", {
232
233
  code: "invalid_budget_name"
233
234
  });
234
235
  }
235
236
  if (!NAME_GRAMMAR.test(name)) {
236
- throw new chunk4ZHTIJNE_cjs.ConfigurationError(
237
+ throw new chunkJ7J7J2GN_cjs.ConfigurationError(
237
238
  `Budget name "${name}" must match ^[a-z0-9][a-z0-9_-]*$ (lowercase + dash/underscore, start alphanumeric)`,
238
239
  { code: "invalid_budget_name" }
239
240
  );
240
241
  }
241
242
  }
243
+ function assertImplementedScope(scope) {
244
+ if (scope === "process") return;
245
+ throw new chunkJ7J7J2GN_cjs.ConfigurationError(
246
+ `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.`,
247
+ { code: "unimplemented_budget_scope" }
248
+ );
249
+ }
242
250
  function createBudget(opts) {
243
251
  validateBudgetName(opts.name);
252
+ assertImplementedScope(opts.scope);
244
253
  if (registry.has(opts.name)) {
245
- throw new chunk4ZHTIJNE_cjs.ConfigurationError(`Budget "${opts.name}" already exists`, {
254
+ throw new chunkJ7J7J2GN_cjs.ConfigurationError(`Budget "${opts.name}" already exists`, {
246
255
  code: "invalid_budget_name"
247
256
  });
248
257
  }
@@ -306,7 +315,7 @@ function preflightCheck(name, estimatedUsd) {
306
315
  for (const lim of opts.limits) {
307
316
  const currentSpent = spentIn(opts.name, lim.window);
308
317
  if (currentSpent + estimatedUsd > lim.limitUsd) {
309
- throw new chunk4ZHTIJNE_cjs.BudgetExceededError({
318
+ throw new chunkJ7J7J2GN_cjs.BudgetExceededError({
310
319
  budgetName: opts.name,
311
320
  window: lim.window,
312
321
  spentUsd: currentSpent + estimatedUsd,
@@ -319,7 +328,7 @@ function preflightCheck(name, estimatedUsd) {
319
328
  async function chargeAndCheckThresholds(name, actualUsd) {
320
329
  const opts = getBudgetOptionsRaw(name);
321
330
  if (opts === void 0) {
322
- chunkEG4QM7ZJ_cjs.diag(
331
+ chunk6LHQPOMI_cjs.diag(
323
332
  `[budget] charge for deleted budget "${name}" is a no-op (was the budget removed during in-flight send?)
324
333
  `
325
334
  );
@@ -362,14 +371,14 @@ async function dispatchThreshold(opts, window, spentUsd, limitUsd, threshold) {
362
371
  });
363
372
  } catch (err) {
364
373
  const msg = err instanceof Error ? err.message : String(err);
365
- chunkEG4QM7ZJ_cjs.diag(`[budget] onThreshold callback threw: ${msg}
374
+ chunk6LHQPOMI_cjs.diag(`[budget] onThreshold callback threw: ${msg}
366
375
  `);
367
376
  }
368
377
  }
369
378
  async function dispatchExceed(opts, window, spentUsd, limitUsd, mode) {
370
379
  if (opts.onExceed === void 0) {
371
380
  if (mode === "warn") {
372
- chunkEG4QM7ZJ_cjs.diag(
381
+ chunk6LHQPOMI_cjs.diag(
373
382
  `[budget] "${opts.name}" exceeded ${window} limit: $${spentUsd.toFixed(4)} > $${limitUsd.toFixed(4)}
374
383
  `
375
384
  );
@@ -386,7 +395,7 @@ async function dispatchExceed(opts, window, spentUsd, limitUsd, mode) {
386
395
  });
387
396
  } catch (err) {
388
397
  const msg = err instanceof Error ? err.message : String(err);
389
- chunkEG4QM7ZJ_cjs.diag(`[budget] onExceed callback threw: ${msg}
398
+ chunk6LHQPOMI_cjs.diag(`[budget] onExceed callback threw: ${msg}
390
399
  `);
391
400
  }
392
401
  }
@@ -535,10 +544,6 @@ var Budget = class {
535
544
  };
536
545
 
537
546
  // src/built-in-processors.ts
538
- var CHARS_PER_TOKEN = 4;
539
- function estimateTokens(text) {
540
- return Math.ceil(text.length / CHARS_PER_TOKEN);
541
- }
542
547
  var CONTROL_CHARS = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F]/g;
543
548
  function createUnicodeNormalizer(opts = {}) {
544
549
  const stripControlChars = opts.stripControlChars ?? false;
@@ -557,17 +562,19 @@ function createUnicodeNormalizer(opts = {}) {
557
562
  }
558
563
  function createTokenLimiter(opts) {
559
564
  if (!Number.isInteger(opts.limit) || opts.limit <= 0) {
560
- throw new Error("createTokenLimiter: `limit` must be a positive integer.");
565
+ throw new chunkJ7J7J2GN_cjs.ConfigurationError("createTokenLimiter: `limit` must be a positive integer.", {
566
+ code: "invalid_processor_options"
567
+ });
561
568
  }
562
569
  const limit = opts.limit;
563
570
  const strategy = opts.strategy ?? "truncate";
564
571
  const cap = (text, controls) => {
565
- const estimated = estimateTokens(text);
572
+ const estimated = chunkATT276RD_cjs.estimateTokens(text);
566
573
  if (estimated <= limit) return text;
567
574
  if (strategy === "block") {
568
575
  controls.abort(`exceeds token limit ${limit} (~${estimated} estimated)`);
569
576
  }
570
- return [...text].slice(0, limit * CHARS_PER_TOKEN).join("");
577
+ return [...text].slice(0, limit * chunkATT276RD_cjs.CHARS_PER_TOKEN).join("");
571
578
  };
572
579
  return {
573
580
  id: "token-limiter",
@@ -592,8 +599,16 @@ var UnicodeNormalizer = class {
592
599
 
593
600
  // src/create-skill.ts
594
601
  function createSkill(spec) {
595
- if (!spec.name) throw new Error("createSkill: `name` is required.");
596
- if (!spec.description) throw new Error("createSkill: `description` is required.");
602
+ if (!spec.name) {
603
+ throw new chunkJ7J7J2GN_cjs.ConfigurationError("createSkill: `name` is required.", {
604
+ code: "invalid_skill_spec"
605
+ });
606
+ }
607
+ if (!spec.description) {
608
+ throw new chunkJ7J7J2GN_cjs.ConfigurationError("createSkill: `description` is required.", {
609
+ code: "invalid_skill_spec"
610
+ });
611
+ }
597
612
  return {
598
613
  name: spec.name,
599
614
  description: spec.description,
@@ -648,8 +663,8 @@ var Provider = class _Provider {
648
663
  * `.plugins(Provider.builtins())` once, then pick a `provider/model` id. @public
649
664
  */
650
665
  static builtins() {
651
- chunkHCZD23VS_cjs.registerBuiltins();
652
- return chunkHCZD23VS_cjs.listProviders().map((profile) => defineProvider(profile));
666
+ chunkQC55H6RJ_cjs.registerBuiltins();
667
+ return chunkQC55H6RJ_cjs.listProviders().map((profile) => defineProvider(profile));
653
668
  }
654
669
  /**
655
670
  * The builtin serving `modelId`, or `undefined` when none does.
@@ -689,14 +704,16 @@ function defineSkillReadTool(skills) {
689
704
  const seen = /* @__PURE__ */ new Set();
690
705
  for (const skill of skills) {
691
706
  if (seen.has(skill.name)) {
692
- throw new Error(`defineSkillReadTool: duplicate skill name "${skill.name}".`);
707
+ throw new chunkJ7J7J2GN_cjs.ConfigurationError(`defineSkillReadTool: duplicate skill name "${skill.name}".`, {
708
+ code: "duplicate_skill_name"
709
+ });
693
710
  }
694
711
  seen.add(skill.name);
695
712
  }
696
713
  return {
697
714
  name: "skill_read",
698
715
  description: "Read a skill's full instructions (and any bundled reference documents) by its name. Use this to load the body of a skill listed in the <skills> block before acting on it.",
699
- inputSchema: chunkWJVHMTKB_cjs.toJsonSchema(SkillReadInputSchema),
716
+ inputSchema: chunkAA27GEYS_cjs.toJsonSchema(SkillReadInputSchema),
700
717
  handler: (input) => {
701
718
  const { name } = SkillReadInputSchema.parse(input);
702
719
  const skill = skills.find((s) => s.name === name);
@@ -763,7 +780,7 @@ var EventBus = class {
763
780
  } catch (cause) {
764
781
  this.#handlerErrorCount += 1;
765
782
  const message = cause instanceof Error ? cause.message : String(cause);
766
- chunkEG4QM7ZJ_cjs.diag(`[theokit-sdk] event-bus: handler for "${String(event)}" threw: ${message}
783
+ chunk6LHQPOMI_cjs.diag(`[theokit-sdk] event-bus: handler for "${String(event)}" threw: ${message}
767
784
  `);
768
785
  }
769
786
  }
@@ -784,9 +801,9 @@ var EventBus = class {
784
801
  // src/goal-loop.ts
785
802
  function runGoalLoop(agent, goal, options, depsOverride) {
786
803
  async function* wrap() {
787
- const { runUntilImpl } = await import('./run-until-U2B5FJJI.cjs');
804
+ const { runUntilImpl } = await import('./run-until-DG2KXWB2.cjs');
788
805
  const deps = depsOverride ?? await (async () => {
789
- const { judgeCallImpl } = await import('./judge-call-LAHMBJ57.cjs');
806
+ const { judgeCallImpl } = await import('./judge-call-I3P4D5QR.cjs');
790
807
  const { getAgentFacade } = await import('./agent-factory-registry-UU46BUMU.cjs');
791
808
  const create = getAgentFacade().create;
792
809
  return {
@@ -841,7 +858,7 @@ function definePlugin(p) {
841
858
  }
842
859
  var Plugin = { create: definePlugin };
843
860
 
844
- // src/internal/runtime/memory/memory-provider-noop.ts
861
+ // src/internal/runtime/memory-glue/memory-provider-noop.ts
845
862
  var NOOP_ADAPTER_ID = "noop";
846
863
  var NOOP_CAPABILITIES = {
847
864
  history: false,
@@ -987,7 +1004,7 @@ var JobQueue = class {
987
1004
  };
988
1005
 
989
1006
  // src/layer-fold.ts
990
- var LayerOrderError = class extends chunk4ZHTIJNE_cjs.TheokitAgentError {
1007
+ var LayerOrderError = class extends chunkJ7J7J2GN_cjs.TheokitAgentError {
991
1008
  name = "LayerOrderError";
992
1009
  };
993
1010
  function verifyLayerOrdering(layers) {
@@ -1025,7 +1042,7 @@ function foldLayers(entries, accumulatingKeys = []) {
1025
1042
  // src/internal/memory/dreaming/phases.ts
1026
1043
  var DEFAULT_DEDUP_THRESHOLD = 0.95;
1027
1044
  var DEFAULT_CLUSTER_THRESHOLD = 0.75;
1028
- var CONSOLIDATABLE_KINDS = /* @__PURE__ */ new Set(["project", "session"]);
1045
+ var CONSOLIDATABLE_KINDS = /* @__PURE__ */ new Set(["project"]);
1029
1046
  var ATOMIC_KINDS = /* @__PURE__ */ new Set(["user", "feedback", "reference"]);
1030
1047
  function dedupPolicy(fact) {
1031
1048
  if (fact.kind === void 0) return "exact";
@@ -1161,8 +1178,8 @@ async function runInner(options) {
1161
1178
  const now = options.now ?? Date.now;
1162
1179
  const timestampMs = now();
1163
1180
  try {
1164
- const root = options.memoryRoot ?? chunkIAHZCGBE_cjs.resolveMemoryRoot(options.cwd);
1165
- const facts = await chunkIAHZCGBE_cjs.readFactsFromMarkdown(
1181
+ const root = options.memoryRoot ?? chunkLHSWHYF3_cjs.resolveMemoryRoot(options.cwd);
1182
+ const facts = await chunkLHSWHYF3_cjs.readFactsFromMarkdown(
1166
1183
  options.cwd,
1167
1184
  options.memoryRoot ? { directory: options.memoryRoot } : void 0
1168
1185
  );
@@ -1181,7 +1198,7 @@ async function runInner(options) {
1181
1198
  notesWritten,
1182
1199
  diaryEntryHash: void 0
1183
1200
  };
1184
- await chunkOFRFZRQ4_cjs.appendDiaryEntry(root, {
1201
+ await chunkV6ZY4AX6_cjs.appendDiaryEntry(root, {
1185
1202
  timestampMs,
1186
1203
  factsBefore: result.factsBefore,
1187
1204
  factsAfter: result.factsAfter,
@@ -1192,7 +1209,7 @@ async function runInner(options) {
1192
1209
  return result;
1193
1210
  } catch (cause) {
1194
1211
  const message = cause instanceof Error ? cause.message : String(cause);
1195
- chunkEG4QM7ZJ_cjs.diag(`[theokit-sdk] dreaming sweep failed: ${message}
1212
+ chunk6LHQPOMI_cjs.diag(`[theokit-sdk] dreaming sweep failed: ${message}
1196
1213
  `);
1197
1214
  return emptyResult("error");
1198
1215
  }
@@ -1204,7 +1221,7 @@ async function writeConsolidatedNotes(root, clusters, timestampMs) {
1204
1221
  const isoSlug = new Date(timestampMs).toISOString().replace(/[^\dT]/g, "-");
1205
1222
  const file = path.join(notesDir, `dreamed-${isoSlug}.md`);
1206
1223
  const body = deepPhase(clusters, timestampMs);
1207
- await chunkUALX2J2Q_cjs.replaceFileAtomic(file, body);
1224
+ await chunkJLRLCBJ4_cjs.replaceFileAtomic(file, body);
1208
1225
  return 1;
1209
1226
  }
1210
1227
  function emptyResult(status) {
@@ -1221,20 +1238,30 @@ function emptyResult(status) {
1221
1238
 
1222
1239
  // src/internal/memory/sdk-memory-peer-loader.ts
1223
1240
  var cachedAttempt;
1241
+ async function loadPeer() {
1242
+ try {
1243
+ const spec = "@theokit/sdk-memory";
1244
+ const mod = await import(spec);
1245
+ if (hasExpectedSurface(mod)) return mod;
1246
+ chunk6LHQPOMI_cjs.diag(
1247
+ "sdk-memory peer loaded but does not expose the expected surface (runDreamingSweep / MEMORY_EMBEDDING_ADAPTERS / IndexManager / migrateSqliteToLance) \u2014 falling back to the legacy memory path"
1248
+ );
1249
+ return null;
1250
+ } catch (err) {
1251
+ if (err?.code !== "ERR_MODULE_NOT_FOUND") {
1252
+ chunk6LHQPOMI_cjs.diag(
1253
+ `sdk-memory peer is installed but failed to load \u2014 falling back to the legacy memory path: ${err instanceof Error ? err.message : String(err)}`
1254
+ );
1255
+ }
1256
+ return null;
1257
+ }
1258
+ }
1259
+ function hasExpectedSurface(mod) {
1260
+ return typeof mod.runDreamingSweep === "function" && mod.MEMORY_EMBEDDING_ADAPTERS !== void 0 && mod.IndexManager !== void 0 && typeof mod.migrateSqliteToLance === "function";
1261
+ }
1224
1262
  function tryLoadSdkMemoryPeer() {
1225
1263
  if (cachedAttempt !== void 0) return cachedAttempt;
1226
- cachedAttempt = (async () => {
1227
- try {
1228
- const spec = "@theokit/sdk-memory";
1229
- const mod = await import(spec);
1230
- if (typeof mod.runDreamingSweep === "function" && mod.MEMORY_EMBEDDING_ADAPTERS !== void 0 && mod.IndexManager !== void 0 && typeof mod.migrateSqliteToLance === "function") {
1231
- return mod;
1232
- }
1233
- return null;
1234
- } catch {
1235
- return null;
1236
- }
1237
- })();
1264
+ cachedAttempt = loadPeer();
1238
1265
  return cachedAttempt;
1239
1266
  }
1240
1267
 
@@ -1265,8 +1292,8 @@ var Memory = {
1265
1292
  openArgs.embedding = await resolveEmbedding(opts.embedding, peer.MEMORY_EMBEDDING_ADAPTERS);
1266
1293
  return await peer.IndexManager.open(openArgs);
1267
1294
  }
1268
- const { IndexManager } = await import('./index-manager-2SRX45WJ.cjs');
1269
- openArgs.embedding = await resolveEmbedding(opts.embedding, chunk7VT4P3Z4_cjs.MEMORY_EMBEDDING_ADAPTERS);
1295
+ const { IndexManager } = await import('./index-manager-DXR2RSFI.cjs');
1296
+ openArgs.embedding = await resolveEmbedding(opts.embedding, chunkQUAEOKDW_cjs.MEMORY_EMBEDDING_ADAPTERS);
1270
1297
  return await IndexManager.open(openArgs);
1271
1298
  },
1272
1299
  /**
@@ -1277,7 +1304,7 @@ var Memory = {
1277
1304
  */
1278
1305
  async runDreamingSweep(opts) {
1279
1306
  const peer = await tryLoadSdkMemoryPeer();
1280
- const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunk7VT4P3Z4_cjs.MEMORY_EMBEDDING_ADAPTERS;
1307
+ const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkQUAEOKDW_cjs.MEMORY_EMBEDDING_ADAPTERS;
1281
1308
  const sweepArgs = await buildDreamingSweepArgs(opts, catalog);
1282
1309
  const result = peer !== null ? (
1283
1310
  // biome-ignore lint/suspicious/noExplicitAny: peer is dynamically loaded — structural compat ensured by sdk-memory
@@ -1311,7 +1338,7 @@ async function buildDreamingSweepArgs(opts, catalog) {
1311
1338
  const runtime = await resolveEmbedding(opts.embedding, catalog);
1312
1339
  return {
1313
1340
  cwd: opts.cwd,
1314
- memoryRoot: chunkIAHZCGBE_cjs.resolveMemoryRoot(opts.cwd, { directory: opts.directory }),
1341
+ memoryRoot: chunkLHSWHYF3_cjs.resolveMemoryRoot(opts.cwd, { directory: opts.directory }),
1315
1342
  embedding: runtime,
1316
1343
  ...opts.dedupThreshold !== void 0 ? { dedupThreshold: opts.dedupThreshold } : {},
1317
1344
  ...opts.clusterThreshold !== void 0 ? { clusterThreshold: opts.clusterThreshold } : {}
@@ -1336,7 +1363,7 @@ function extractRawId(id, expectedAdapterId) {
1336
1363
  const prefix = `${expectedAdapterId}:`;
1337
1364
  if (!id.startsWith(prefix)) {
1338
1365
  const sourcePrefix = id.split(":", 1)[0] ?? "<malformed>";
1339
- throw new chunk4ZHTIJNE_cjs.MemoryAdapterError(
1366
+ throw new chunkJ7J7J2GN_cjs.MemoryAdapterError(
1340
1367
  `MemoryId belongs to a different adapter (expected "${expectedAdapterId}", got "${sourcePrefix}")`,
1341
1368
  { adapterId: expectedAdapterId, code: "invalid_input" }
1342
1369
  );
@@ -1350,7 +1377,7 @@ async function migrateSqliteToLance2(options) {
1350
1377
  if (peer !== null) {
1351
1378
  return peer.migrateSqliteToLance(options);
1352
1379
  }
1353
- return chunkOFRFZRQ4_cjs.migrateSqliteToLance(options);
1380
+ return chunkV6ZY4AX6_cjs.migrateSqliteToLance(options);
1354
1381
  }
1355
1382
 
1356
1383
  // src/permission-engine.ts
@@ -1483,7 +1510,7 @@ function loadProjectEnv(env = process.env, load = typeof process.loadEnvFile ===
1483
1510
  }
1484
1511
 
1485
1512
  // src/reap-plan.ts
1486
- var RetentionPolicyError = class extends chunk4ZHTIJNE_cjs.TheokitAgentError {
1513
+ var RetentionPolicyError = class extends chunkJ7J7J2GN_cjs.TheokitAgentError {
1487
1514
  name = "RetentionPolicyError";
1488
1515
  };
1489
1516
  function assertPolicy(retention) {
@@ -1556,29 +1583,33 @@ function isValibotSchema(s) {
1556
1583
  const o = s;
1557
1584
  return o.kind === "schema" && "type" in o && typeof o.toJsonSchema !== "function";
1558
1585
  }
1586
+ function isMissingModuleError(err) {
1587
+ if (err?.code === "ERR_MODULE_NOT_FOUND") return true;
1588
+ return err instanceof Error && /Cannot find|Cannot resolve|ERR_MODULE_NOT_FOUND/.test(err.message);
1589
+ }
1590
+ async function normalizeValibotSchema(schema) {
1591
+ const specifier = "@valibot/to-json-schema";
1592
+ try {
1593
+ const mod = await import(specifier);
1594
+ return mod.toJsonSchema(schema);
1595
+ } catch (err) {
1596
+ if (!isMissingModuleError(err)) throw err;
1597
+ throw new chunkJ7J7J2GN_cjs.ConfigurationError(
1598
+ "normalizeSchema: a Valibot schema requires the optional '@valibot/to-json-schema' package. Install it, or use a Zod schema (the default recommendation).",
1599
+ { code: "valibot_converter_missing" }
1600
+ );
1601
+ }
1602
+ }
1559
1603
  async function normalizeSchema(schema) {
1560
1604
  if (isJsonSchemaObject(schema)) return schema;
1561
- if (isValibotSchema(schema)) {
1562
- const specifier = "@valibot/to-json-schema";
1563
- try {
1564
- const mod = await import(specifier);
1565
- return mod.toJsonSchema(schema);
1566
- } catch (err) {
1567
- const missing = err instanceof Error && /Cannot find|Cannot resolve|ERR_MODULE_NOT_FOUND/.test(err.message);
1568
- if (missing) {
1569
- throw new Error(
1570
- "normalizeSchema: a Valibot schema requires the optional '@valibot/to-json-schema' package. Install it, or use a Zod schema (the default recommendation)."
1571
- );
1572
- }
1573
- throw err;
1574
- }
1575
- }
1605
+ if (isValibotSchema(schema)) return await normalizeValibotSchema(schema);
1576
1606
  if (isZodSchema(schema)) {
1577
- return chunkWJVHMTKB_cjs.toJsonSchema(schema, { unrepresentable: "any" });
1607
+ return chunkAA27GEYS_cjs.toJsonSchema(schema, { unrepresentable: "any" });
1578
1608
  }
1579
1609
  if (hasToJsonSchemaMethod(schema)) return schema.toJsonSchema();
1580
- throw new Error(
1581
- "normalizeSchema: unsupported schema. Supported: Zod (default), JSON Schema, ArkType (.toJsonSchema()), Valibot (with @valibot/to-json-schema)."
1610
+ throw new chunkJ7J7J2GN_cjs.ConfigurationError(
1611
+ "normalizeSchema: unsupported schema. Supported: Zod (default), JSON Schema, ArkType (.toJsonSchema()), Valibot (with @valibot/to-json-schema).",
1612
+ { code: "unsupported_schema" }
1582
1613
  );
1583
1614
  }
1584
1615
 
@@ -1607,7 +1638,7 @@ var Security = class {
1607
1638
  * // → "[bot] received: please remember sk-abc...xyz1"
1608
1639
  */
1609
1640
  static redact(text, opts) {
1610
- return chunkXL7Q7HB2_cjs.redactSecrets(text, opts);
1641
+ return chunk6LHQPOMI_cjs.redactSecrets(text, opts);
1611
1642
  }
1612
1643
  /**
1613
1644
  * Register a custom redaction pattern. Additive — built-in patterns
@@ -1629,7 +1660,13 @@ var Security = class {
1629
1660
  * // → text containing "MYORG-AAAA...AAAA" now masks like a builtin.
1630
1661
  */
1631
1662
  static addPattern(re) {
1632
- chunkXL7Q7HB2_cjs.addPattern(re);
1663
+ if (!re.global) {
1664
+ throw new chunkJ7J7J2GN_cjs.ConfigurationError(
1665
+ "Security.addPattern: regex must have /g flag for replace-all semantics",
1666
+ { code: "invalid_redaction_pattern" }
1667
+ );
1668
+ }
1669
+ chunk6LHQPOMI_cjs.addPattern(re);
1633
1670
  }
1634
1671
  };
1635
1672
 
@@ -1667,7 +1704,7 @@ function applySecurityFloor(input) {
1667
1704
  }
1668
1705
 
1669
1706
  // src/session-guard.ts
1670
- var LiveSessionError = class extends chunk4ZHTIJNE_cjs.TheokitAgentError {
1707
+ var LiveSessionError = class extends chunkJ7J7J2GN_cjs.TheokitAgentError {
1671
1708
  name = "LiveSessionError";
1672
1709
  sessionId;
1673
1710
  reason;
@@ -1701,7 +1738,7 @@ function isBuiltAgent(m) {
1701
1738
  return typeof m.send === "function";
1702
1739
  }
1703
1740
  async function materialize(def, index) {
1704
- const { Agent: Agent2 } = await import('./agent-UX7WFI6B.cjs');
1741
+ const { Agent: Agent2 } = await import('./agent-GPV2JWZG.cjs');
1705
1742
  return Agent2.create({
1706
1743
  // `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
1707
1744
  // here means "declare nothing and let the default apply" — forwarding the literal would create
@@ -1715,12 +1752,12 @@ async function materialize(def, index) {
1715
1752
  function createSquad(options) {
1716
1753
  const { agents } = options;
1717
1754
  if (!Array.isArray(agents) || agents.length === 0) {
1718
- throw new chunk4ZHTIJNE_cjs.ConfigurationError("createSquad requires a non-empty `agents` array", {
1755
+ throw new chunkJ7J7J2GN_cjs.ConfigurationError("createSquad requires a non-empty `agents` array", {
1719
1756
  code: "invalid_squad"
1720
1757
  });
1721
1758
  }
1722
1759
  if (options.process !== void 0 && options.process !== "sequential") {
1723
- throw new chunk4ZHTIJNE_cjs.ConfigurationError(
1760
+ throw new chunkJ7J7J2GN_cjs.ConfigurationError(
1724
1761
  `createSquad only supports process "sequential"; for manager\u2192worker delegation use subagents or @theokit/sdk-handoff`,
1725
1762
  { code: "squad_process_unsupported" }
1726
1763
  );
@@ -1732,14 +1769,14 @@ function createSquad(options) {
1732
1769
  }
1733
1770
  };
1734
1771
  }
1735
- async function buildPipeline(agents, nome) {
1736
- let builder = chunkYML4ME27_cjs.Workflow.create({ name: nome ?? "squad" });
1772
+ async function buildPipeline(agents, name) {
1773
+ let builder = chunk4HS6FFGL_cjs.Workflow.create({ name: name ?? "squad" });
1737
1774
  for (let i = 0; i < agents.length; i++) {
1738
1775
  const member = agents[i];
1739
1776
  if (member === void 0) continue;
1740
1777
  const agent = isBuiltAgent(member) ? member : await materialize(member, i);
1741
1778
  const opts = i > 0 ? { origin: { kind: "peer", from: `agent-${i - 1}` } } : void 0;
1742
- builder = builder.then(chunkYML4ME27_cjs.agentStep(`agent-${i}`, agent, (prev) => String(prev), opts));
1779
+ builder = builder.then(chunk4HS6FFGL_cjs.agentStep(`agent-${i}`, agent, (prev) => String(prev), opts));
1743
1780
  }
1744
1781
  return builder.commit();
1745
1782
  }
@@ -1763,7 +1800,7 @@ var Task = class {
1763
1800
  * (D369), and retention (D373).
1764
1801
  */
1765
1802
  static configure(opts) {
1766
- chunk3FFAEAUJ_cjs.configure(opts);
1803
+ chunkKVSAY6NZ_cjs.configure(opts);
1767
1804
  }
1768
1805
  /**
1769
1806
  * Submit a unit of asynchronous work to the registry.
@@ -1788,7 +1825,7 @@ var Task = class {
1788
1825
  * a semaphore slot and without invoking `work`.
1789
1826
  */
1790
1827
  static async submit(kind, work, options = {}) {
1791
- return chunk3FFAEAUJ_cjs.submit({
1828
+ return chunkKVSAY6NZ_cjs.submit({
1792
1829
  kind,
1793
1830
  work,
1794
1831
  ...options.id !== void 0 ? { id: options.id } : {},
@@ -1799,11 +1836,11 @@ var Task = class {
1799
1836
  }
1800
1837
  /** Returns matching handles, capped at `filter.limit ?? 100`. */
1801
1838
  static list(filter = {}) {
1802
- return chunk3FFAEAUJ_cjs.list(filter);
1839
+ return chunkKVSAY6NZ_cjs.list(filter);
1803
1840
  }
1804
1841
  /** Returns a single handle by id, or `undefined` if unknown / evicted. */
1805
1842
  static get(id) {
1806
- return chunk3FFAEAUJ_cjs.get(id);
1843
+ return chunkKVSAY6NZ_cjs.get(id);
1807
1844
  }
1808
1845
  /**
1809
1846
  * Idempotent cancel (D365). Returns:
@@ -1816,7 +1853,7 @@ var Task = class {
1816
1853
  * Never throws.
1817
1854
  */
1818
1855
  static cancel(id, reason) {
1819
- return chunk3FFAEAUJ_cjs.cancel(id, reason);
1856
+ return chunkKVSAY6NZ_cjs.cancel(id, reason);
1820
1857
  }
1821
1858
  /**
1822
1859
  * Subscribe to a task's event stream. The returned `AsyncIterable<TaskEvent>`
@@ -1830,7 +1867,7 @@ var Task = class {
1830
1867
  * Throws `TaskNotFoundError` if the id is unknown or has been evicted.
1831
1868
  */
1832
1869
  static subscribe(id) {
1833
- return chunk3FFAEAUJ_cjs.subscribe(id);
1870
+ return chunkKVSAY6NZ_cjs.subscribe(id);
1834
1871
  }
1835
1872
  };
1836
1873
 
@@ -1843,7 +1880,7 @@ var FIXTURE_USER = {
1843
1880
  };
1844
1881
  var FIXTURE_MODELS = [
1845
1882
  {
1846
- id: chunk7VT4P3Z4_cjs.DEFAULT_AGENTIC_MODEL_ID,
1883
+ id: chunkQUAEOKDW_cjs.DEFAULT_AGENTIC_MODEL_ID,
1847
1884
  name: "Gemini 2.0 Flash",
1848
1885
  displayName: "Gemini 2.0 Flash",
1849
1886
  parameters: [
@@ -1919,20 +1956,20 @@ async function listLocalModelsViaOpenAiCompat(baseUrl) {
1919
1956
  try {
1920
1957
  response = await fetch(url, { method: "GET" });
1921
1958
  } catch (fetchErr) {
1922
- const mapped = chunkKYAJINUI_cjs.mapOllamaTransportError({
1959
+ const mapped = chunk2HPNT6HH_cjs.mapOllamaTransportError({
1923
1960
  providerId: "ollama",
1924
1961
  cause: fetchErr,
1925
1962
  endpoint: "/v1/models"
1926
1963
  });
1927
1964
  if (mapped !== void 0) throw mapped;
1928
- throw new chunk4ZHTIJNE_cjs.ConfigurationError(
1965
+ throw new chunkJ7J7J2GN_cjs.ConfigurationError(
1929
1966
  `Failed to reach local provider at ${baseUrl}: ${fetchErr.message}`,
1930
1967
  { code: "local_provider_unreachable" }
1931
1968
  );
1932
1969
  }
1933
1970
  if (!response.ok) {
1934
- const body = await chunkKYAJINUI_cjs.readErrorResponseBody(response);
1935
- const mapped = chunkKYAJINUI_cjs.mapOllamaHttpError({
1971
+ const body = await chunk2HPNT6HH_cjs.readErrorResponseBody(response);
1972
+ const mapped = chunk2HPNT6HH_cjs.mapOllamaHttpError({
1936
1973
  providerId: "ollama",
1937
1974
  status: response.status,
1938
1975
  body,
@@ -1940,7 +1977,7 @@ async function listLocalModelsViaOpenAiCompat(baseUrl) {
1940
1977
  endpoint: "/v1/models"
1941
1978
  });
1942
1979
  if (mapped !== void 0) throw mapped;
1943
- throw new chunk4ZHTIJNE_cjs.ConfigurationError(
1980
+ throw new chunkJ7J7J2GN_cjs.ConfigurationError(
1944
1981
  `Local provider at ${baseUrl} returned HTTP ${response.status} on /v1/models`,
1945
1982
  { code: "local_provider_http_error" }
1946
1983
  );
@@ -1995,9 +2032,9 @@ var Theokit = class {
1995
2032
  });
1996
2033
  },
1997
2034
  capabilities: (providerOrModelId) => {
1998
- chunkHCZD23VS_cjs.registerBuiltins();
2035
+ chunkQC55H6RJ_cjs.registerBuiltins();
1999
2036
  const providerId = providerOrModelId.includes("/") ? providerOrModelId.split("/")[0] ?? providerOrModelId : providerOrModelId;
2000
- return chunkHCZD23VS_cjs.getCatalogCapabilities(providerId);
2037
+ return chunkQC55H6RJ_cjs.getCatalogCapabilities(providerId);
2001
2038
  }
2002
2039
  };
2003
2040
  /**
@@ -2036,8 +2073,8 @@ var Theokit = class {
2036
2073
  */
2037
2074
  static inspect = {
2038
2075
  builtinProviders: () => {
2039
- chunkHCZD23VS_cjs.registerBuiltins();
2040
- return chunkHCZD23VS_cjs.listProviders().map((p) => ({
2076
+ chunkQC55H6RJ_cjs.registerBuiltins();
2077
+ return chunkQC55H6RJ_cjs.listProviders().map((p) => ({
2041
2078
  name: p.name,
2042
2079
  apiMode: p.apiMode,
2043
2080
  authType: p.authType,
@@ -2046,7 +2083,7 @@ var Theokit = class {
2046
2083
  envVars: p.envVars
2047
2084
  }));
2048
2085
  },
2049
- embeddingAdapters: () => Object.entries(chunk7VT4P3Z4_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
2086
+ embeddingAdapters: () => Object.entries(chunkQUAEOKDW_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
2050
2087
  id,
2051
2088
  transport: adapter.transport,
2052
2089
  defaultModel: adapter.defaultModel
@@ -2063,9 +2100,9 @@ var Theokit = class {
2063
2100
  // and may be promoted onto Theokit once the agent.ts cycle is broken.
2064
2101
  };
2065
2102
  async function maybeListLocalModels(providerName) {
2066
- chunkHCZD23VS_cjs.registerBuiltins();
2067
- await chunkKYAJINUI_cjs.discoverProviderPlugins();
2068
- const profile = chunkHCZD23VS_cjs.getProviderProfile(providerName);
2103
+ chunkQC55H6RJ_cjs.registerBuiltins();
2104
+ await chunk2HPNT6HH_cjs.discoverProviderPlugins();
2105
+ const profile = chunkQC55H6RJ_cjs.getProviderProfile(providerName);
2069
2106
  if (profile === void 0) return void 0;
2070
2107
  if (profile.authType !== "none") return void 0;
2071
2108
  const baseUrl = resolveLocalProviderBaseUrl(profile.name, profile.baseUrl);
@@ -2078,17 +2115,17 @@ function resolveLocalProviderBaseUrl(providerName, fallback) {
2078
2115
  return fallback;
2079
2116
  }
2080
2117
  async function executeCatalogRequest(request) {
2081
- const apiKey = chunkXL7Q7HB2_cjs.resolveApiKey(request.apiKey);
2118
+ const apiKey = chunk6LHQPOMI_cjs.resolveApiKey(request.apiKey);
2082
2119
  if (apiKey === void 0) {
2083
- throw new chunk4ZHTIJNE_cjs.AuthenticationError("Missing API key", { code: "missing_api_key" });
2120
+ throw new chunkJ7J7J2GN_cjs.AuthenticationError("Missing API key", { code: "missing_api_key" });
2084
2121
  }
2085
- if (chunkKYAJINUI_cjs.shouldUseFixtureMode(apiKey)) {
2122
+ if (chunk2HPNT6HH_cjs.shouldUseFixtureMode(apiKey)) {
2086
2123
  return request.fixture;
2087
2124
  }
2088
- if (!chunkKYAJINUI_cjs.isFixtureApiKey(apiKey) && process.env.THEOKIT_API_BASE_URL === void 0) {
2089
- throw new chunk4ZHTIJNE_cjs.AuthenticationError("Invalid API key", { code: "authentication_error" });
2125
+ if (!chunk2HPNT6HH_cjs.isFixtureApiKey(apiKey) && process.env.THEOKIT_API_BASE_URL === void 0) {
2126
+ throw new chunkJ7J7J2GN_cjs.AuthenticationError("Invalid API key", { code: "authentication_error" });
2090
2127
  }
2091
- return chunkKYAJINUI_cjs.httpRequest(request.path, { apiKey });
2128
+ return chunk2HPNT6HH_cjs.httpRequest(request.path, { apiKey });
2092
2129
  }
2093
2130
 
2094
2131
  // src/tool-blast-radius.ts
@@ -2213,7 +2250,7 @@ function resolveTrustPosture(input) {
2213
2250
  }
2214
2251
 
2215
2252
  // src/wiring-record.ts
2216
- var UngatedCapabilityError = class extends chunk4ZHTIJNE_cjs.TheokitAgentError {
2253
+ var UngatedCapabilityError = class extends chunkJ7J7J2GN_cjs.TheokitAgentError {
2217
2254
  name = "UngatedCapabilityError";
2218
2255
  };
2219
2256
  function recordWiring(input) {
@@ -2237,7 +2274,7 @@ function recordWiring(input) {
2237
2274
 
2238
2275
  Object.defineProperty(exports, "StreamObjectError", {
2239
2276
  enumerable: true,
2240
- get: function () { return chunkLYRDF5TQ_cjs.StreamObjectError; }
2277
+ get: function () { return chunkTFG5IBZS_cjs.StreamObjectError; }
2241
2278
  });
2242
2279
  Object.defineProperty(exports, "GOAL_CONTINUATION_MARKER", {
2243
2280
  enumerable: true,
@@ -2245,59 +2282,59 @@ Object.defineProperty(exports, "GOAL_CONTINUATION_MARKER", {
2245
2282
  });
2246
2283
  Object.defineProperty(exports, "JudgeCredentialError", {
2247
2284
  enumerable: true,
2248
- get: function () { return chunk3NSS2OIZ_cjs.JudgeCredentialError; }
2285
+ get: function () { return chunkDRL7URI4_cjs.JudgeCredentialError; }
2249
2286
  });
2250
2287
  Object.defineProperty(exports, "GenerateObjectError", {
2251
2288
  enumerable: true,
2252
- get: function () { return chunkSZVR77EJ_cjs.GenerateObjectError; }
2289
+ get: function () { return chunkQWD4RDZ3_cjs.GenerateObjectError; }
2253
2290
  });
2254
2291
  Object.defineProperty(exports, "Workflow", {
2255
2292
  enumerable: true,
2256
- get: function () { return chunkYML4ME27_cjs.Workflow; }
2293
+ get: function () { return chunk4HS6FFGL_cjs.Workflow; }
2257
2294
  });
2258
2295
  Object.defineProperty(exports, "agentStep", {
2259
2296
  enumerable: true,
2260
- get: function () { return chunkYML4ME27_cjs.agentStep; }
2297
+ get: function () { return chunk4HS6FFGL_cjs.agentStep; }
2261
2298
  });
2262
2299
  Object.defineProperty(exports, "fn", {
2263
2300
  enumerable: true,
2264
- get: function () { return chunkYML4ME27_cjs.fn; }
2301
+ get: function () { return chunk4HS6FFGL_cjs.fn; }
2265
2302
  });
2266
2303
  Object.defineProperty(exports, "Cron", {
2267
2304
  enumerable: true,
2268
- get: function () { return chunkGMLBYDW4_cjs.Cron; }
2305
+ get: function () { return chunkVXDEKILY_cjs.Cron; }
2269
2306
  });
2270
2307
  Object.defineProperty(exports, "Agent", {
2271
2308
  enumerable: true,
2272
- get: function () { return chunk7VT4P3Z4_cjs.Agent; }
2309
+ get: function () { return chunkQUAEOKDW_cjs.Agent; }
2273
2310
  });
2274
2311
  Object.defineProperty(exports, "AgentBuilder", {
2275
2312
  enumerable: true,
2276
- get: function () { return chunk7VT4P3Z4_cjs.AgentBuilder; }
2313
+ get: function () { return chunkQUAEOKDW_cjs.AgentBuilder; }
2277
2314
  });
2278
2315
  Object.defineProperty(exports, "Tool", {
2279
2316
  enumerable: true,
2280
- get: function () { return chunk7VT4P3Z4_cjs.Tool; }
2317
+ get: function () { return chunkQUAEOKDW_cjs.Tool; }
2281
2318
  });
2282
2319
  Object.defineProperty(exports, "ToolError", {
2283
2320
  enumerable: true,
2284
- get: function () { return chunk7VT4P3Z4_cjs.ToolError; }
2321
+ get: function () { return chunkQUAEOKDW_cjs.ToolError; }
2285
2322
  });
2286
2323
  Object.defineProperty(exports, "UsageAccumulator", {
2287
2324
  enumerable: true,
2288
- get: function () { return chunk7VT4P3Z4_cjs.UsageAccumulator; }
2325
+ get: function () { return chunkQUAEOKDW_cjs.UsageAccumulator; }
2289
2326
  });
2290
2327
  Object.defineProperty(exports, "computeCost", {
2291
2328
  enumerable: true,
2292
- get: function () { return chunk7VT4P3Z4_cjs.computeCost; }
2329
+ get: function () { return chunkQUAEOKDW_cjs.computeCost; }
2293
2330
  });
2294
2331
  Object.defineProperty(exports, "getPricingEntry", {
2295
2332
  enumerable: true,
2296
- get: function () { return chunk7VT4P3Z4_cjs.getPricingEntry; }
2333
+ get: function () { return chunkQUAEOKDW_cjs.getPricingEntry; }
2297
2334
  });
2298
2335
  Object.defineProperty(exports, "emitRunEvent", {
2299
2336
  enumerable: true,
2300
- get: function () { return chunk3FFAEAUJ_cjs.emitRunEvent; }
2337
+ get: function () { return chunkKVSAY6NZ_cjs.emitRunEvent; }
2301
2338
  });
2302
2339
  Object.defineProperty(exports, "withCwdMutex", {
2303
2340
  enumerable: true,
@@ -2305,83 +2342,87 @@ Object.defineProperty(exports, "withCwdMutex", {
2305
2342
  });
2306
2343
  Object.defineProperty(exports, "TASK_RESERVED_PREFIXES", {
2307
2344
  enumerable: true,
2308
- get: function () { return chunkRFMBZPOW_cjs.TASK_RESERVED_PREFIXES; }
2345
+ get: function () { return chunkHCT4HPCL_cjs.TASK_RESERVED_PREFIXES; }
2309
2346
  });
2310
2347
  Object.defineProperty(exports, "isValidTaskId", {
2311
2348
  enumerable: true,
2312
- get: function () { return chunkRFMBZPOW_cjs.isValidTaskId; }
2349
+ get: function () { return chunkHCT4HPCL_cjs.isValidTaskId; }
2350
+ });
2351
+ Object.defineProperty(exports, "estimateTokens", {
2352
+ enumerable: true,
2353
+ get: function () { return chunkATT276RD_cjs.estimateTokens; }
2313
2354
  });
2314
2355
  Object.defineProperty(exports, "AgentDisposedError", {
2315
2356
  enumerable: true,
2316
- get: function () { return chunk4ZHTIJNE_cjs.AgentDisposedError; }
2357
+ get: function () { return chunkJ7J7J2GN_cjs.AgentDisposedError; }
2317
2358
  });
2318
2359
  Object.defineProperty(exports, "AgentRunError", {
2319
2360
  enumerable: true,
2320
- get: function () { return chunk4ZHTIJNE_cjs.AgentRunError; }
2361
+ get: function () { return chunkJ7J7J2GN_cjs.AgentRunError; }
2321
2362
  });
2322
2363
  Object.defineProperty(exports, "AuthenticationError", {
2323
2364
  enumerable: true,
2324
- get: function () { return chunk4ZHTIJNE_cjs.AuthenticationError; }
2365
+ get: function () { return chunkJ7J7J2GN_cjs.AuthenticationError; }
2325
2366
  });
2326
2367
  Object.defineProperty(exports, "BudgetExceededError", {
2327
2368
  enumerable: true,
2328
- get: function () { return chunk4ZHTIJNE_cjs.BudgetExceededError; }
2369
+ get: function () { return chunkJ7J7J2GN_cjs.BudgetExceededError; }
2329
2370
  });
2330
2371
  Object.defineProperty(exports, "ConfigurationError", {
2331
2372
  enumerable: true,
2332
- get: function () { return chunk4ZHTIJNE_cjs.ConfigurationError; }
2373
+ get: function () { return chunkJ7J7J2GN_cjs.ConfigurationError; }
2333
2374
  });
2334
2375
  Object.defineProperty(exports, "IntegrationNotConnectedError", {
2335
2376
  enumerable: true,
2336
- get: function () { return chunk4ZHTIJNE_cjs.IntegrationNotConnectedError; }
2377
+ get: function () { return chunkJ7J7J2GN_cjs.IntegrationNotConnectedError; }
2337
2378
  });
2338
2379
  Object.defineProperty(exports, "InvalidTaskIdError", {
2339
2380
  enumerable: true,
2340
- get: function () { return chunk4ZHTIJNE_cjs.InvalidTaskIdError; }
2381
+ get: function () { return chunkJ7J7J2GN_cjs.InvalidTaskIdError; }
2341
2382
  });
2342
2383
  Object.defineProperty(exports, "MemoryAdapterError", {
2343
2384
  enumerable: true,
2344
- get: function () { return chunk4ZHTIJNE_cjs.MemoryAdapterError; }
2385
+ get: function () { return chunkJ7J7J2GN_cjs.MemoryAdapterError; }
2345
2386
  });
2346
2387
  Object.defineProperty(exports, "NetworkError", {
2347
2388
  enumerable: true,
2348
- get: function () { return chunk4ZHTIJNE_cjs.NetworkError; }
2389
+ get: function () { return chunkJ7J7J2GN_cjs.NetworkError; }
2349
2390
  });
2350
2391
  Object.defineProperty(exports, "RateLimitError", {
2351
2392
  enumerable: true,
2352
- get: function () { return chunk4ZHTIJNE_cjs.RateLimitError; }
2393
+ get: function () { return chunkJ7J7J2GN_cjs.RateLimitError; }
2353
2394
  });
2354
2395
  Object.defineProperty(exports, "TaskNotFoundError", {
2355
2396
  enumerable: true,
2356
- get: function () { return chunk4ZHTIJNE_cjs.TaskNotFoundError; }
2397
+ get: function () { return chunkJ7J7J2GN_cjs.TaskNotFoundError; }
2357
2398
  });
2358
2399
  Object.defineProperty(exports, "TheokitAgentError", {
2359
2400
  enumerable: true,
2360
- get: function () { return chunk4ZHTIJNE_cjs.TheokitAgentError; }
2401
+ get: function () { return chunkJ7J7J2GN_cjs.TheokitAgentError; }
2361
2402
  });
2362
2403
  Object.defineProperty(exports, "UnknownAgentError", {
2363
2404
  enumerable: true,
2364
- get: function () { return chunk4ZHTIJNE_cjs.UnknownAgentError; }
2405
+ get: function () { return chunkJ7J7J2GN_cjs.UnknownAgentError; }
2365
2406
  });
2366
2407
  Object.defineProperty(exports, "UnsupportedBudgetOperationError", {
2367
2408
  enumerable: true,
2368
- get: function () { return chunk4ZHTIJNE_cjs.UnsupportedBudgetOperationError; }
2409
+ get: function () { return chunkJ7J7J2GN_cjs.UnsupportedBudgetOperationError; }
2369
2410
  });
2370
2411
  Object.defineProperty(exports, "UnsupportedRunOperationError", {
2371
2412
  enumerable: true,
2372
- get: function () { return chunk4ZHTIJNE_cjs.UnsupportedRunOperationError; }
2413
+ get: function () { return chunkJ7J7J2GN_cjs.UnsupportedRunOperationError; }
2373
2414
  });
2374
2415
  Object.defineProperty(exports, "UnsupportedTaskOperationError", {
2375
2416
  enumerable: true,
2376
- get: function () { return chunk4ZHTIJNE_cjs.UnsupportedTaskOperationError; }
2417
+ get: function () { return chunkJ7J7J2GN_cjs.UnsupportedTaskOperationError; }
2377
2418
  });
2378
2419
  Object.defineProperty(exports, "isTransientError", {
2379
2420
  enumerable: true,
2380
- get: function () { return chunk4ZHTIJNE_cjs.isTransientError; }
2421
+ get: function () { return chunkJ7J7J2GN_cjs.isTransientError; }
2381
2422
  });
2382
2423
  Object.defineProperty(exports, "setDiagnosticsSink", {
2383
2424
  enumerable: true,
2384
- get: function () { return chunkEG4QM7ZJ_cjs.setDiagnosticsSink; }
2425
+ get: function () { return chunk6LHQPOMI_cjs.setDiagnosticsSink; }
2385
2426
  });
2386
2427
  exports.AgentFactory = AgentFactory;
2387
2428
  exports.Budget = Budget;
@@ -2414,7 +2455,6 @@ exports.createCounterBudgetTracker = createCounterBudgetTracker;
2414
2455
  exports.decideApproval = decideApproval;
2415
2456
  exports.describeAction = describeAction;
2416
2457
  exports.describeCredential = describeCredential;
2417
- exports.estimateTokens = estimateTokens;
2418
2458
  exports.evaluateBlastRadius = evaluateBlastRadius;
2419
2459
  exports.extractRawId = extractRawId;
2420
2460
  exports.foldLayers = foldLayers;