@theokit/sdk 4.24.0 → 4.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (382) hide show
  1. package/dist/a2a/index.cjs +10 -171
  2. package/dist/a2a/index.cjs.map +1 -1
  3. package/dist/a2a/index.js +3 -170
  4. package/dist/a2a/index.js.map +1 -1
  5. package/dist/agent-factory-registry-UU46BUMU.cjs +16 -0
  6. package/dist/agent-factory-registry-UU46BUMU.cjs.map +1 -0
  7. package/dist/agent-factory-registry-ZVTABLEY.js +3 -0
  8. package/dist/agent-factory-registry-ZVTABLEY.js.map +1 -0
  9. package/dist/auth/index.cjs +63 -367
  10. package/dist/auth/index.cjs.map +1 -1
  11. package/dist/auth/index.js +6 -342
  12. package/dist/auth/index.js.map +1 -1
  13. package/dist/batch-2FSD2UNL.cjs +244 -0
  14. package/dist/batch-2FSD2UNL.cjs.map +1 -0
  15. package/dist/batch-MR2HKYMS.js +241 -0
  16. package/dist/batch-MR2HKYMS.js.map +1 -0
  17. package/dist/chunk-2HRYBRD7.cjs +31 -0
  18. package/dist/chunk-2HRYBRD7.cjs.map +1 -0
  19. package/dist/chunk-2MF3IE2D.cjs +2863 -0
  20. package/dist/chunk-2MF3IE2D.cjs.map +1 -0
  21. package/dist/chunk-2ONFGMBV.js +6 -0
  22. package/dist/chunk-2ONFGMBV.js.map +1 -0
  23. package/dist/chunk-2SFBB54R.js +23 -0
  24. package/dist/chunk-2SFBB54R.js.map +1 -0
  25. package/dist/chunk-2XLKLVVR.js +18 -0
  26. package/dist/chunk-2XLKLVVR.js.map +1 -0
  27. package/dist/chunk-4SXHEZIV.cjs +240 -0
  28. package/dist/chunk-4SXHEZIV.cjs.map +1 -0
  29. package/dist/chunk-4VPXM6UU.js +10 -0
  30. package/dist/chunk-4VPXM6UU.js.map +1 -0
  31. package/dist/chunk-4WL52CXU.cjs +148 -0
  32. package/dist/chunk-4WL52CXU.cjs.map +1 -0
  33. package/dist/chunk-5NBUH3NO.js +39 -0
  34. package/dist/chunk-5NBUH3NO.js.map +1 -0
  35. package/dist/chunk-5PZMMF4H.js +43 -0
  36. package/dist/chunk-5PZMMF4H.js.map +1 -0
  37. package/dist/chunk-6CLRANZA.js +289 -0
  38. package/dist/chunk-6CLRANZA.js.map +1 -0
  39. package/dist/chunk-6JSIEDKL.cjs +121 -0
  40. package/dist/chunk-6JSIEDKL.cjs.map +1 -0
  41. package/dist/chunk-6M4ODB2V.cjs +145 -0
  42. package/dist/chunk-6M4ODB2V.cjs.map +1 -0
  43. package/dist/chunk-6X6ID4MO.js +20 -0
  44. package/dist/chunk-6X6ID4MO.js.map +1 -0
  45. package/dist/chunk-77FOZCOT.js +165 -0
  46. package/dist/chunk-77FOZCOT.js.map +1 -0
  47. package/dist/chunk-7AD3ZTZL.js +25 -0
  48. package/dist/chunk-7AD3ZTZL.js.map +1 -0
  49. package/dist/chunk-7GFX45DD.js +57 -0
  50. package/dist/chunk-7GFX45DD.js.map +1 -0
  51. package/dist/chunk-7S7KKUO6.cjs +45 -0
  52. package/dist/chunk-7S7KKUO6.cjs.map +1 -0
  53. package/dist/chunk-7W7ZWMLQ.js +99 -0
  54. package/dist/chunk-7W7ZWMLQ.js.map +1 -0
  55. package/dist/chunk-A44COQJJ.cjs +353 -0
  56. package/dist/chunk-A44COQJJ.cjs.map +1 -0
  57. package/dist/chunk-AKSBP7OO.js +185 -0
  58. package/dist/chunk-AKSBP7OO.js.map +1 -0
  59. package/dist/chunk-ANIZEWTU.cjs +196 -0
  60. package/dist/chunk-ANIZEWTU.cjs.map +1 -0
  61. package/dist/chunk-BEURCLDV.cjs +139 -0
  62. package/dist/chunk-BEURCLDV.cjs.map +1 -0
  63. package/dist/chunk-BFWPZMG7.js +379 -0
  64. package/dist/chunk-BFWPZMG7.js.map +1 -0
  65. package/dist/chunk-BUUUWQMB.cjs +34 -0
  66. package/dist/chunk-BUUUWQMB.cjs.map +1 -0
  67. package/dist/chunk-BV2MWEMV.cjs +26 -0
  68. package/dist/chunk-BV2MWEMV.cjs.map +1 -0
  69. package/dist/chunk-BWT67BI4.cjs +268 -0
  70. package/dist/chunk-BWT67BI4.cjs.map +1 -0
  71. package/dist/chunk-BXV2QUIC.js +191 -0
  72. package/dist/chunk-BXV2QUIC.js.map +1 -0
  73. package/dist/chunk-C6Y6CWYD.cjs +44 -0
  74. package/dist/chunk-C6Y6CWYD.cjs.map +1 -0
  75. package/dist/chunk-C7PICHRF.cjs +68 -0
  76. package/dist/chunk-C7PICHRF.cjs.map +1 -0
  77. package/dist/chunk-CAH3G4IS.js +13 -0
  78. package/dist/chunk-CAH3G4IS.js.map +1 -0
  79. package/dist/chunk-D42XHI4O.cjs +565 -0
  80. package/dist/chunk-D42XHI4O.cjs.map +1 -0
  81. package/dist/chunk-DGRZNMTU.js +104 -0
  82. package/dist/chunk-DGRZNMTU.js.map +1 -0
  83. package/dist/chunk-DUK5WMKJ.js +71 -0
  84. package/dist/chunk-DUK5WMKJ.js.map +1 -0
  85. package/dist/chunk-EEZ7CFMM.js +14 -0
  86. package/dist/chunk-EEZ7CFMM.js.map +1 -0
  87. package/dist/chunk-EPYZOCOL.cjs +82 -0
  88. package/dist/chunk-EPYZOCOL.cjs.map +1 -0
  89. package/dist/chunk-EVADEGM7.cjs +168 -0
  90. package/dist/chunk-EVADEGM7.cjs.map +1 -0
  91. package/dist/chunk-FD2UT76F.js +3 -0
  92. package/dist/chunk-FD2UT76F.js.map +1 -0
  93. package/dist/chunk-FV3YEMQ7.js +179 -0
  94. package/dist/chunk-FV3YEMQ7.js.map +1 -0
  95. package/dist/chunk-G2F67XUR.cjs +184 -0
  96. package/dist/chunk-G2F67XUR.cjs.map +1 -0
  97. package/dist/chunk-G6GO6BXD.js +994 -0
  98. package/dist/chunk-G6GO6BXD.js.map +1 -0
  99. package/dist/chunk-GIW4L6HY.cjs +27 -0
  100. package/dist/chunk-GIW4L6HY.cjs.map +1 -0
  101. package/dist/chunk-GJAGKFTR.js +74 -0
  102. package/dist/chunk-GJAGKFTR.js.map +1 -0
  103. package/dist/chunk-HFPGOTVF.cjs +324 -0
  104. package/dist/chunk-HFPGOTVF.cjs.map +1 -0
  105. package/dist/chunk-HRA3CPGG.js +486 -0
  106. package/dist/chunk-HRA3CPGG.js.map +1 -0
  107. package/dist/chunk-HZQEDNF6.js +66 -0
  108. package/dist/chunk-HZQEDNF6.js.map +1 -0
  109. package/dist/chunk-IT3PWBW4.cjs +19 -0
  110. package/dist/chunk-IT3PWBW4.cjs.map +1 -0
  111. package/dist/chunk-JD74LN7R.cjs +171 -0
  112. package/dist/chunk-JD74LN7R.cjs.map +1 -0
  113. package/dist/chunk-JTFYYKDT.js +135 -0
  114. package/dist/chunk-JTFYYKDT.js.map +1 -0
  115. package/dist/chunk-K2BQQ445.js +30 -0
  116. package/dist/chunk-K2BQQ445.js.map +1 -0
  117. package/dist/chunk-KAP4GJHO.js +546 -0
  118. package/dist/chunk-KAP4GJHO.js.map +1 -0
  119. package/dist/chunk-KDNBTPY2.js +458 -0
  120. package/dist/chunk-KDNBTPY2.js.map +1 -0
  121. package/dist/chunk-KIO7QFIV.cjs +223 -0
  122. package/dist/chunk-KIO7QFIV.cjs.map +1 -0
  123. package/dist/chunk-KSKU6JY6.cjs +71 -0
  124. package/dist/chunk-KSKU6JY6.cjs.map +1 -0
  125. package/dist/chunk-LSLPF6OI.cjs +192 -0
  126. package/dist/chunk-LSLPF6OI.cjs.map +1 -0
  127. package/dist/chunk-LU7VALW5.js +312 -0
  128. package/dist/chunk-LU7VALW5.js.map +1 -0
  129. package/dist/chunk-LUSXDZPV.cjs +296 -0
  130. package/dist/chunk-LUSXDZPV.cjs.map +1 -0
  131. package/dist/chunk-M72RJVPC.js +69 -0
  132. package/dist/chunk-M72RJVPC.js.map +1 -0
  133. package/dist/chunk-MQLCZ4HJ.cjs +1010 -0
  134. package/dist/chunk-MQLCZ4HJ.cjs.map +1 -0
  135. package/dist/chunk-MUUQ2WFJ.cjs +4 -0
  136. package/dist/chunk-MUUQ2WFJ.cjs.map +1 -0
  137. package/dist/chunk-MZ5ZRORA.cjs +496 -0
  138. package/dist/chunk-MZ5ZRORA.cjs.map +1 -0
  139. package/dist/chunk-N24XBYNX.cjs +140 -0
  140. package/dist/chunk-N24XBYNX.cjs.map +1 -0
  141. package/dist/chunk-NINIJCHU.cjs +23 -0
  142. package/dist/chunk-NINIJCHU.cjs.map +1 -0
  143. package/dist/chunk-NRSH7RJY.js +2841 -0
  144. package/dist/chunk-NRSH7RJY.js.map +1 -0
  145. package/dist/chunk-OIYQBUW4.cjs +111 -0
  146. package/dist/chunk-OIYQBUW4.cjs.map +1 -0
  147. package/dist/chunk-PNVDQL5Y.cjs +15 -0
  148. package/dist/chunk-PNVDQL5Y.cjs.map +1 -0
  149. package/dist/chunk-POQT2OIF.js +214 -0
  150. package/dist/chunk-POQT2OIF.js.map +1 -0
  151. package/dist/chunk-PSJN532Q.js +10573 -0
  152. package/dist/chunk-PSJN532Q.js.map +1 -0
  153. package/dist/chunk-QUTUJ6P6.cjs +76 -0
  154. package/dist/chunk-QUTUJ6P6.cjs.map +1 -0
  155. package/dist/chunk-R43CNCES.cjs +460 -0
  156. package/dist/chunk-R43CNCES.cjs.map +1 -0
  157. package/dist/chunk-S2BBRVQX.js +68 -0
  158. package/dist/chunk-S2BBRVQX.js.map +1 -0
  159. package/dist/chunk-S5RCBTSF.js +145 -0
  160. package/dist/chunk-S5RCBTSF.js.map +1 -0
  161. package/dist/chunk-S7OEXQMI.cjs +136 -0
  162. package/dist/chunk-S7OEXQMI.cjs.map +1 -0
  163. package/dist/chunk-SKWVAQAY.js +129 -0
  164. package/dist/chunk-SKWVAQAY.js.map +1 -0
  165. package/dist/chunk-SQLZ7ONU.js +152 -0
  166. package/dist/chunk-SQLZ7ONU.js.map +1 -0
  167. package/dist/chunk-TIZ4TS5V.cjs +72 -0
  168. package/dist/chunk-TIZ4TS5V.cjs.map +1 -0
  169. package/dist/chunk-TQKCU7CL.js +142 -0
  170. package/dist/chunk-TQKCU7CL.js.map +1 -0
  171. package/dist/chunk-U54XCYG3.js +116 -0
  172. package/dist/chunk-U54XCYG3.js.map +1 -0
  173. package/dist/chunk-U6QGZHPN.js +29 -0
  174. package/dist/chunk-U6QGZHPN.js.map +1 -0
  175. package/dist/chunk-UCFONJBG.js +79 -0
  176. package/dist/chunk-UCFONJBG.js.map +1 -0
  177. package/dist/chunk-UJ7IQJAG.js +141 -0
  178. package/dist/chunk-UJ7IQJAG.js.map +1 -0
  179. package/dist/chunk-UVNG67DG.js +253 -0
  180. package/dist/chunk-UVNG67DG.js.map +1 -0
  181. package/dist/chunk-V4XRLPEF.js +25 -0
  182. package/dist/chunk-V4XRLPEF.js.map +1 -0
  183. package/dist/chunk-VJ26EKGJ.cjs +28 -0
  184. package/dist/chunk-VJ26EKGJ.cjs.map +1 -0
  185. package/dist/chunk-VK7MAV65.cjs +90 -0
  186. package/dist/chunk-VK7MAV65.cjs.map +1 -0
  187. package/dist/chunk-VYCKUKPA.cjs +106 -0
  188. package/dist/chunk-VYCKUKPA.cjs.map +1 -0
  189. package/dist/chunk-VYHJZVL5.cjs +29 -0
  190. package/dist/chunk-VYHJZVL5.cjs.map +1 -0
  191. package/dist/chunk-WA3FO4R7.js +155 -0
  192. package/dist/chunk-WA3FO4R7.js.map +1 -0
  193. package/dist/chunk-WJVHMTKB.cjs +12 -0
  194. package/dist/chunk-WJVHMTKB.cjs.map +1 -0
  195. package/dist/chunk-WLKFWQSJ.js +333 -0
  196. package/dist/chunk-WLKFWQSJ.js.map +1 -0
  197. package/dist/chunk-WPZTYOUX.cjs +59 -0
  198. package/dist/chunk-WPZTYOUX.cjs.map +1 -0
  199. package/dist/chunk-X2FR4OIT.js +27 -0
  200. package/dist/chunk-X2FR4OIT.js.map +1 -0
  201. package/dist/chunk-XIG2IE3L.js +134 -0
  202. package/dist/chunk-XIG2IE3L.js.map +1 -0
  203. package/dist/chunk-YLQQX5W2.cjs +20 -0
  204. package/dist/chunk-YLQQX5W2.cjs.map +1 -0
  205. package/dist/chunk-YPEPCZHF.cjs +147 -0
  206. package/dist/chunk-YPEPCZHF.cjs.map +1 -0
  207. package/dist/chunk-YPQF26X7.cjs +8 -0
  208. package/dist/chunk-YPQF26X7.cjs.map +1 -0
  209. package/dist/chunk-YU6KON2I.cjs +160 -0
  210. package/dist/chunk-YU6KON2I.cjs.map +1 -0
  211. package/dist/chunk-Z2OC3UIW.cjs +388 -0
  212. package/dist/chunk-Z2OC3UIW.cjs.map +1 -0
  213. package/dist/chunk-ZUBIEQJF.cjs +10590 -0
  214. package/dist/chunk-ZUBIEQJF.cjs.map +1 -0
  215. package/dist/chunk-ZZWTY3RX.js +230 -0
  216. package/dist/chunk-ZZWTY3RX.js.map +1 -0
  217. package/dist/compact-session-OO2GD76G.js +17 -0
  218. package/dist/compact-session-OO2GD76G.js.map +1 -0
  219. package/dist/compact-session-OO7NVWPB.cjs +54 -0
  220. package/dist/compact-session-OO7NVWPB.cjs.map +1 -0
  221. package/dist/compaction.cjs +54 -303
  222. package/dist/compaction.cjs.map +1 -1
  223. package/dist/compaction.js +3 -292
  224. package/dist/compaction.js.map +1 -1
  225. package/dist/concurrency.cjs +9 -81
  226. package/dist/concurrency.cjs.map +1 -1
  227. package/dist/concurrency.js +5 -80
  228. package/dist/concurrency.js.map +1 -1
  229. package/dist/context-GWANQLX4.js +5 -0
  230. package/dist/context-GWANQLX4.js.map +1 -0
  231. package/dist/context-KNWVTZSY.cjs +22 -0
  232. package/dist/context-KNWVTZSY.cjs.map +1 -0
  233. package/dist/{cron-x3muPNgg.d.cts → cron-D0JKR-yX.d.cts} +2 -1
  234. package/dist/{cron-B_NkE_VM.d.ts → cron-DivRaEmN.d.ts} +2 -1
  235. package/dist/cron.cjs +44 -20676
  236. package/dist/cron.cjs.map +1 -1
  237. package/dist/cron.d.cts +1 -1
  238. package/dist/cron.d.ts +1 -1
  239. package/dist/cron.js +38 -20676
  240. package/dist/cron.js.map +1 -1
  241. package/dist/errors.cjs +78 -470
  242. package/dist/errors.cjs.map +1 -1
  243. package/dist/errors.d.ts +3 -424
  244. package/dist/errors.js +2 -455
  245. package/dist/errors.js.map +1 -1
  246. package/dist/eval.cjs +72 -20411
  247. package/dist/eval.cjs.map +1 -1
  248. package/dist/eval.js +59 -20402
  249. package/dist/eval.js.map +1 -1
  250. package/dist/executor-ORJS5GV2.js +981 -0
  251. package/dist/executor-ORJS5GV2.js.map +1 -0
  252. package/dist/executor-Y4MKPIUD.cjs +985 -0
  253. package/dist/executor-Y4MKPIUD.cjs.map +1 -0
  254. package/dist/filesystem/index.cjs +7 -112
  255. package/dist/filesystem/index.cjs.map +1 -1
  256. package/dist/filesystem/index.js +4 -109
  257. package/dist/filesystem/index.js.map +1 -1
  258. package/dist/fork-agent-RSV4E3EA.js +61 -0
  259. package/dist/fork-agent-RSV4E3EA.js.map +1 -0
  260. package/dist/fork-agent-Y2IK2RYU.cjs +64 -0
  261. package/dist/fork-agent-Y2IK2RYU.cjs.map +1 -0
  262. package/dist/fs-session-store-KAUQYSGI.cjs +17 -0
  263. package/dist/fs-session-store-KAUQYSGI.cjs.map +1 -0
  264. package/dist/fs-session-store-ZKB5NN37.js +8 -0
  265. package/dist/fs-session-store-ZKB5NN37.js.map +1 -0
  266. package/dist/generate-object-H3RNAM6S.cjs +20 -0
  267. package/dist/generate-object-H3RNAM6S.cjs.map +1 -0
  268. package/dist/generate-object-YJPDV5BS.js +7 -0
  269. package/dist/generate-object-YJPDV5BS.js.map +1 -0
  270. package/dist/index-manager-CB6I7XFQ.cjs +19 -0
  271. package/dist/index-manager-CB6I7XFQ.cjs.map +1 -0
  272. package/dist/index-manager-L27Q3QAC.js +10 -0
  273. package/dist/index-manager-L27Q3QAC.js.map +1 -0
  274. package/dist/index.cjs +371 -22888
  275. package/dist/index.cjs.map +1 -1
  276. package/dist/index.d.cts +16 -21
  277. package/dist/index.d.ts +16 -21
  278. package/dist/index.js +92 -22713
  279. package/dist/index.js.map +1 -1
  280. package/dist/inject-session-6MJUSGZP.cjs +27 -0
  281. package/dist/inject-session-6MJUSGZP.cjs.map +1 -0
  282. package/dist/inject-session-KOFHS5K3.js +25 -0
  283. package/dist/inject-session-KOFHS5K3.js.map +1 -0
  284. package/dist/internal/judge/judge-call.d.ts +32 -19
  285. package/dist/internal/persistence/index.cjs +93 -508
  286. package/dist/internal/persistence/index.cjs.map +1 -1
  287. package/dist/internal/persistence/index.js +11 -489
  288. package/dist/internal/persistence/index.js.map +1 -1
  289. package/dist/internal/security/index.cjs +44 -361
  290. package/dist/internal/security/index.cjs.map +1 -1
  291. package/dist/internal/security/index.js +4 -355
  292. package/dist/internal/security/index.js.map +1 -1
  293. package/dist/judge-call-CEQ3FYYD.js +126 -0
  294. package/dist/judge-call-CEQ3FYYD.js.map +1 -0
  295. package/dist/judge-call-QG4WZ7F3.cjs +130 -0
  296. package/dist/judge-call-QG4WZ7F3.cjs.map +1 -0
  297. package/dist/models.cjs +24 -919
  298. package/dist/models.cjs.map +1 -1
  299. package/dist/models.js +11 -907
  300. package/dist/models.js.map +1 -1
  301. package/dist/oauth-transaction-store-7CKHPQRN.cjs +32 -0
  302. package/dist/oauth-transaction-store-7CKHPQRN.cjs.map +1 -0
  303. package/dist/oauth-transaction-store-W74I6EFD.js +3 -0
  304. package/dist/oauth-transaction-store-W74I6EFD.js.map +1 -0
  305. package/dist/path-safety.cjs +31 -200
  306. package/dist/path-safety.cjs.map +1 -1
  307. package/dist/path-safety.js +3 -197
  308. package/dist/path-safety.js.map +1 -1
  309. package/dist/persistence.cjs +73 -393
  310. package/dist/persistence.cjs.map +1 -1
  311. package/dist/persistence.js +9 -381
  312. package/dist/persistence.js.map +1 -1
  313. package/dist/project.cjs +8 -112
  314. package/dist/project.cjs.map +1 -1
  315. package/dist/project.js +6 -110
  316. package/dist/project.js.map +1 -1
  317. package/dist/registry-34IWWDQQ.js +9 -0
  318. package/dist/registry-34IWWDQQ.js.map +1 -0
  319. package/dist/registry-APYDISL6.cjs +46 -0
  320. package/dist/registry-APYDISL6.cjs.map +1 -0
  321. package/dist/retry.cjs +7 -87
  322. package/dist/retry.cjs.map +1 -1
  323. package/dist/retry.js +3 -90
  324. package/dist/retry.js.map +1 -1
  325. package/dist/run-to-completion-J73I6IY4.cjs +48 -0
  326. package/dist/run-to-completion-J73I6IY4.cjs.map +1 -0
  327. package/dist/run-to-completion-JDPIUKSH.js +3 -0
  328. package/dist/run-to-completion-JDPIUKSH.js.map +1 -0
  329. package/dist/run-until-PNO3QQLI.cjs +180 -0
  330. package/dist/run-until-PNO3QQLI.cjs.map +1 -0
  331. package/dist/run-until-XLHEHRQM.js +177 -0
  332. package/dist/run-until-XLHEHRQM.js.map +1 -0
  333. package/dist/sandbox/index.cjs +35 -337
  334. package/dist/sandbox/index.cjs.map +1 -1
  335. package/dist/sandbox/index.js +7 -323
  336. package/dist/sandbox/index.js.map +1 -1
  337. package/dist/sanitize/index.cjs +5 -112
  338. package/dist/sanitize/index.cjs.map +1 -1
  339. package/dist/sanitize/index.js +1 -114
  340. package/dist/sanitize/index.js.map +1 -1
  341. package/dist/server/auth/index.cjs +35 -175
  342. package/dist/server/auth/index.cjs.map +1 -1
  343. package/dist/server/auth/index.js +7 -161
  344. package/dist/server/auth/index.js.map +1 -1
  345. package/dist/server/errors-envelope.cjs +17 -328
  346. package/dist/server/errors-envelope.cjs.map +1 -1
  347. package/dist/server/errors-envelope.js +4 -317
  348. package/dist/server/errors-envelope.js.map +1 -1
  349. package/dist/session-transcript-LPNZR3YS.cjs +46 -0
  350. package/dist/session-transcript-LPNZR3YS.cjs.map +1 -0
  351. package/dist/session-transcript-T7LGJUGW.js +5 -0
  352. package/dist/session-transcript-T7LGJUGW.js.map +1 -0
  353. package/dist/skills.cjs +12 -280
  354. package/dist/skills.cjs.map +1 -1
  355. package/dist/skills.js +4 -282
  356. package/dist/skills.js.map +1 -1
  357. package/dist/stream-object-QEQJJDTI.cjs +20 -0
  358. package/dist/stream-object-QEQJJDTI.cjs.map +1 -0
  359. package/dist/stream-object-WUQSSRY2.js +7 -0
  360. package/dist/stream-object-WUQSSRY2.js.map +1 -0
  361. package/dist/stream-to-completion-DFJ5T3BK.js +30 -0
  362. package/dist/stream-to-completion-DFJ5T3BK.js.map +1 -0
  363. package/dist/stream-to-completion-H2MHISSK.cjs +32 -0
  364. package/dist/stream-to-completion-H2MHISSK.cjs.map +1 -0
  365. package/dist/subagents.cjs +2 -8
  366. package/dist/subagents.cjs.map +1 -1
  367. package/dist/subagents.js +1 -7
  368. package/dist/subagents.js.map +1 -1
  369. package/dist/subscription/index.cjs +4 -17
  370. package/dist/subscription/index.cjs.map +1 -1
  371. package/dist/subscription/index.js +3 -16
  372. package/dist/subscription/index.js.map +1 -1
  373. package/dist/task-store.cjs +16 -258
  374. package/dist/task-store.cjs.map +1 -1
  375. package/dist/task-store.js +4 -259
  376. package/dist/task-store.js.map +1 -1
  377. package/dist/types/goal-events.d.ts +2 -1
  378. package/dist/workflow.cjs +71 -2797
  379. package/dist/workflow.cjs.map +1 -1
  380. package/dist/workflow.js +8 -2812
  381. package/dist/workflow.js.map +1 -1
  382. package/package.json +1 -1
package/dist/errors.d.ts CHANGED
@@ -1,424 +1,3 @@
1
- import type { RunOperation } from "./types/run.js";
2
- /**
3
- * Finite, machine-readable error codes for provider-originated errors
4
- * (ADR D66). Consumers can `switch (err.metadata?.code)` exhaustively
5
- * — adding a new variant is an explicit decision + test coverage.
6
- *
7
- * @public
8
- */
9
- export type ErrorCode = "rate_limit" | "auth_failed" | "invalid_request" | "timeout" | "server_error" | "context_too_long" | "content_filtered" | "model_unavailable" | "network" | "quota_exceeded" | "unknown";
10
- /**
11
- * Codes used by {@link AgentRunError} (Production-Readiness #3, ADR D311).
12
- *
13
- * Superset of {@link ErrorCode} extended with codes that do NOT originate
14
- * from a provider HTTP response:
15
- *
16
- * - `quota_exceeded` — billing limit hit (provider 402 or signalled error)
17
- * - `tool_runtime_error` — custom tool handler threw inside dispatch
18
- * - `aborted` — caller's `AbortSignal` fired (Phase 4)
19
- * - `invalid_model` — model id rejected by provider (400 "model not found")
20
- * - `safety_blocked` — provider safety filter blocked req or resp
21
- * - `provider_unreachable` — DNS/TCP/timeout/5xx at transport boundary
22
- *
23
- * The `& {}` tail keeps the literal-union ergonomics (autocomplete) while
24
- * accepting any string for forward compatibility with constructor calls
25
- * that pass arbitrary code values (legacy callers).
26
- *
27
- * @public
28
- */
29
- /**
30
- * T1.1 — closed literal union for `AgentRunError.code`. The previous
31
- * `(string & {})` escape hatch let arbitrary strings slip into the type
32
- * surface and defeated exhaustive `switch (code)` discrimination. This is
33
- * the canonical closed form. `AgentRunErrorCode` is re-aliased below for
34
- * source-level back-compat.
35
- *
36
- * Adding a new code: append the literal here AND audit every `switch (err.code)`
37
- * in callers. Type-checker enforces the audit via the `default: assertNever(code)`
38
- * convention.
39
- *
40
- * @public
41
- */
42
- export type KnownAgentRunErrorCode = ErrorCode | "quota_exceeded" | "tool_runtime_error" | "aborted" | "invalid_model" | "safety_blocked" | "provider_unreachable";
43
- /**
44
- * Back-compat alias of {@link KnownAgentRunErrorCode}. Pre-T1.1 callers that
45
- * imported `AgentRunErrorCode` keep working; new code SHOULD prefer
46
- * `KnownAgentRunErrorCode` to make the closed-union intent explicit.
47
- *
48
- * @public
49
- */
50
- export type AgentRunErrorCode = KnownAgentRunErrorCode;
51
- /**
52
- * Structured context for errors that originated from a provider HTTP
53
- * call (ADR D65). Lets callers retry with the right backoff (`retryAfter`),
54
- * surface actionable diagnostics (`provider`, `endpoint`), and inspect the
55
- * raw response body when needed (`raw`, capped at ~2KB by the mapper).
56
- *
57
- * @public
58
- */
59
- export interface ErrorMetadata {
60
- /** Provider canonical name (e.g., `"anthropic"`, `"openai"`, `"openrouter"`, `"gemini"`). */
61
- provider: string;
62
- /** HTTP endpoint that failed (e.g., `"/v1/messages"`, `"/v1/chat/completions"`). */
63
- endpoint: string;
64
- /** Machine-readable error code (finite enum). */
65
- code: ErrorCode;
66
- /** HTTP status code if applicable. */
67
- statusCode?: number;
68
- /** Seconds to wait before retry, per provider's `retry-after` header (numeric form only). */
69
- retryAfter?: number;
70
- /** Raw response body for debugging (truncated to ~2KB by the mapper). */
71
- raw?: unknown;
72
- }
73
- /**
74
- * Base class for all errors thrown by `@theokit/sdk`.
75
- *
76
- * Use `isRetryable` to drive retry/backoff logic. `code` and `protoErrorCode`
77
- * are populated for server-originated errors when available. `metadata`
78
- * (ADR D65) carries structured `{ provider, endpoint, code, ... }` when
79
- * the error originated from a provider HTTP call.
80
- *
81
- * @public
82
- */
83
- export declare class TheokitAgentError extends Error {
84
- readonly name: string;
85
- readonly isRetryable: boolean;
86
- readonly code?: string;
87
- readonly protoErrorCode?: string;
88
- readonly metadata?: ErrorMetadata;
89
- constructor(message: string, options?: {
90
- isRetryable?: boolean;
91
- code?: string;
92
- protoErrorCode?: string;
93
- cause?: unknown;
94
- metadata?: ErrorMetadata;
95
- });
96
- }
97
- /**
98
- * Invalid API key, not logged in, insufficient permissions.
99
- *
100
- * @public
101
- */
102
- export declare class AuthenticationError extends TheokitAgentError {
103
- readonly name: string;
104
- constructor(message: string, options?: {
105
- code?: string;
106
- cause?: unknown;
107
- metadata?: ErrorMetadata;
108
- });
109
- }
110
- /**
111
- * Too many requests or usage limits exceeded.
112
- *
113
- * @public
114
- */
115
- export declare class RateLimitError extends TheokitAgentError {
116
- readonly name: string;
117
- constructor(message: string, options?: {
118
- code?: string;
119
- cause?: unknown;
120
- metadata?: ErrorMetadata;
121
- });
122
- }
123
- /**
124
- * Invalid model, bad request parameters, malformed options.
125
- *
126
- * @public
127
- */
128
- export declare class ConfigurationError extends TheokitAgentError {
129
- readonly name: string;
130
- constructor(message: string, options?: {
131
- code?: string;
132
- cause?: unknown;
133
- metadata?: ErrorMetadata;
134
- });
135
- }
136
- /**
137
- * Thrown when creating a cloud agent for a repo whose SCM provider is not
138
- * connected. Use `helpUrl` to point the user at the right reconnect flow.
139
- *
140
- * @public
141
- */
142
- export declare class IntegrationNotConnectedError extends ConfigurationError {
143
- readonly name: string;
144
- readonly provider: string;
145
- readonly helpUrl: string;
146
- constructor(message: string, options: {
147
- provider: string;
148
- helpUrl: string;
149
- code?: string;
150
- cause?: unknown;
151
- metadata?: ErrorMetadata;
152
- });
153
- }
154
- /**
155
- * Service unavailable, timeout, transport-level failure.
156
- *
157
- * @public
158
- */
159
- export declare class NetworkError extends TheokitAgentError {
160
- readonly name: string;
161
- constructor(message: string, options?: {
162
- code?: string;
163
- cause?: unknown;
164
- metadata?: ErrorMetadata;
165
- });
166
- }
167
- /**
168
- * Catch-all for unclassified server or runtime errors.
169
- *
170
- * @public
171
- */
172
- export declare class UnknownAgentError extends TheokitAgentError {
173
- readonly name: string;
174
- constructor(message: string, options?: {
175
- code?: string;
176
- cause?: unknown;
177
- metadata?: ErrorMetadata;
178
- });
179
- }
180
- /**
181
- * Thrown by `Agent.prompt` (and helpers that go through `run.wait()`) when
182
- * the option `{ throwOnError: true }` is set and the run terminates with
183
- * `status: 'error'`. Carries the structured `RunResult.error` fields so
184
- * callers can `catch` once and branch on `code` / `provider` instead of
185
- * unwrapping the run.
186
- *
187
- * Extends {@link TheokitAgentError} per ADR D65 — no new hierarchy.
188
- *
189
- * @example
190
- * try {
191
- * await Agent.prompt(msg, { apiKey, model, throwOnError: true });
192
- * } catch (err) {
193
- * if (err instanceof AgentRunError && err.code === 'auth_failed') {
194
- * // bad key
195
- * }
196
- * }
197
- *
198
- * @public
199
- */
200
- export declare class AgentRunError extends TheokitAgentError {
201
- readonly name: string;
202
- readonly provider?: string;
203
- readonly raw?: string;
204
- /** Provider's request id (`x-request-id` / `request-id` header). Useful for support tickets. */
205
- readonly requestId?: string;
206
- /** SDK conversation id this error was raised inside. */
207
- readonly conversationId?: string;
208
- constructor(message: string, options: {
209
- code: AgentRunErrorCode;
210
- provider?: string;
211
- raw?: string;
212
- requestId?: string;
213
- conversationId?: string;
214
- retriable?: boolean;
215
- cause?: unknown;
216
- metadata?: ErrorMetadata;
217
- });
218
- /**
219
- * Production-Readiness #3 (ADR D311): alias for `isRetryable` exposed as
220
- * `retriable` to match the handoff contract. Future v2 will deprecate
221
- * `isRetryable` in favor of this.
222
- */
223
- get retriable(): boolean;
224
- /**
225
- * D312: provider's `Retry-After` header in **milliseconds**. Mappers store
226
- * the header value (seconds) in `metadata.retryAfter`; this getter
227
- * multiplies by 1000 so the result composes with `Date.now()`/`setTimeout`.
228
- *
229
- * Returns `undefined` when no hint was provided. `0` is a legitimate value
230
- * — use `=== undefined` check rather than truthy check.
231
- */
232
- get retryAfterMs(): number | undefined;
233
- /**
234
- * D313 + T1.5: alias for `metadata.raw`. Provider response body for
235
- * debugging. T1.5 wraps the value in `redactSecrets` at the getter
236
- * boundary so secret-shaped substrings (`sk-...`, Bearer JWTs, etc.) are
237
- * stripped before reaching the caller. Available but NEVER serialized
238
- * into `.message` (anti-leak invariant).
239
- */
240
- get providerError(): unknown;
241
- /**
242
- * T1.5 — sanitized JSON form. `metadata.raw` is OMITTED by default; opt
243
- * in via `THEOKIT_DEBUG_RAW_ERRORS=1` to surface the (redacted) raw
244
- * payload for diagnostics. Every other field stays accessible.
245
- *
246
- * The single env-var gate is read each call so operators can toggle at
247
- * runtime without restarting the process.
248
- */
249
- toJSON(): Record<string, unknown>;
250
- }
251
- /**
252
- * Is this error transient (worth retrying)?
253
- *
254
- * Returns the SDK's own retryability verdict: every {@link TheokitAgentError}
255
- * subclass computes `isRetryable` at construction (rate-limit / network /
256
- * credential-pool-exhausted are retryable; auth / configuration / unsupported
257
- * are not), so this predicate is a single source of truth rather than a
258
- * re-derivation. Non-SDK errors return `false` conservatively — wrap a foreign
259
- * error in the appropriate SDK error first if you want it considered transient.
260
- * It never inspects `err.message`.
261
- *
262
- * @example
263
- * try {
264
- * await agent.send(message, { throwOnError: true });
265
- * } catch (err) {
266
- * if (isTransientError(err)) return retryWithBackoff();
267
- * throw err;
268
- * }
269
- *
270
- * @public
271
- */
272
- export declare function isTransientError(err: unknown): boolean;
273
- /**
274
- * Thrown when a {@link Run} or agent operation is not available on the current
275
- * runtime. Check first with `run.supports(operation)`.
276
- *
277
- * Extends {@link TheokitAgentError} (so error-catching code that branches on
278
- * `instanceof TheokitAgentError` continues to work) but is never retryable —
279
- * an unsupported operation will not become supported on retry.
280
- *
281
- * @public
282
- */
283
- export declare class UnsupportedRunOperationError extends TheokitAgentError {
284
- readonly name: string;
285
- readonly operation: RunOperation;
286
- constructor(message: string, operation: RunOperation, options?: {
287
- code?: string;
288
- cause?: unknown;
289
- });
290
- }
291
- /**
292
- * Thrown when every credential in a per-provider pool is in cooldown
293
- * and no healthy key is available (ADR D133). The caller's
294
- * {@link import("./internal/llm/fallback-client.js").FallbackLlmClient}
295
- * catches this and tries the next provider in the fallback chain.
296
- *
297
- * `metadata.nextRetryAt` (epoch ms) tells callers when the soonest
298
- * pool entry resumes — useful for manual retry scheduling.
299
- *
300
- * @public
301
- */
302
- export declare class CredentialPoolExhaustedError extends TheokitAgentError {
303
- readonly name: string;
304
- readonly provider: string;
305
- readonly nextRetryAt: number | undefined;
306
- constructor(message: string, options: {
307
- provider: string;
308
- nextRetryAt?: number;
309
- code?: string;
310
- cause?: unknown;
311
- metadata?: ErrorMetadata;
312
- });
313
- }
314
- /**
315
- * Finite error codes specific to memory adapter operations (ADR D141).
316
- *
317
- * @public
318
- */
319
- export type MemoryAdapterErrorCode = "auth_failed" | "rate_limited" | "not_found" | "network" | "invalid_input" | "unknown";
320
- /**
321
- * Error raised by `@theokit-memory-*` adapters. Carries `adapterId`
322
- * so callers can branch on which provider failed (ADR D141).
323
- *
324
- * @public
325
- */
326
- export declare class MemoryAdapterError extends TheokitAgentError {
327
- readonly name: string;
328
- readonly adapterId: string;
329
- constructor(message: string, options: {
330
- adapterId: string;
331
- code: MemoryAdapterErrorCode;
332
- cause?: unknown;
333
- metadata?: ErrorMetadata;
334
- });
335
- }
336
- /**
337
- * Thrown when a user-supplied task ID violates the grammar
338
- * `^[a-z0-9][a-z0-9_-]*$` (D368) OR starts with a reserved adapter
339
- * prefix (`wf-` / `b-` / `cron-`, EC-5).
340
- *
341
- * @public
342
- */
343
- export declare class InvalidTaskIdError extends TheokitAgentError {
344
- readonly name: string;
345
- readonly taskId: string;
346
- constructor(message: string, taskId: string, options?: {
347
- cause?: unknown;
348
- });
349
- }
350
- /**
351
- * Thrown when `Task.subscribe(id)` is called for a task that has been
352
- * evicted, never submitted, or evicted after retention (D373).
353
- *
354
- * @public
355
- */
356
- export declare class TaskNotFoundError extends TheokitAgentError {
357
- readonly name: string;
358
- readonly taskId: string;
359
- constructor(taskId: string, options?: {
360
- cause?: unknown;
361
- });
362
- }
363
- /**
364
- * Thrown when `CloudAgent` is asked to wrap a task (D370). Cloud
365
- * task observability is deferred until Theo PaaS GA.
366
- *
367
- * @public
368
- */
369
- export declare class UnsupportedTaskOperationError extends TheokitAgentError {
370
- readonly name: string;
371
- readonly operation: string;
372
- constructor(operation: string, options?: {
373
- cause?: unknown;
374
- });
375
- }
376
- /**
377
- * Thrown by `Budget` enforcement (ADR D386) when a `mode: "block"`
378
- * budget would be exceeded by the upcoming LLM call. Caller pega
379
- * tipado para retry-after-window-reset or surface to the user.
380
- *
381
- * @public
382
- */
383
- export declare class BudgetExceededError extends TheokitAgentError {
384
- readonly name: string;
385
- readonly budgetName: string;
386
- readonly window: import("./types/budget.js").BudgetWindow;
387
- readonly spentUsd: number;
388
- readonly limitUsd: number;
389
- readonly mode: import("./types/budget.js").BudgetMode;
390
- constructor(args: {
391
- budgetName: string;
392
- window: import("./types/budget.js").BudgetWindow;
393
- spentUsd: number;
394
- limitUsd: number;
395
- mode: import("./types/budget.js").BudgetMode;
396
- cause?: unknown;
397
- });
398
- }
399
- /**
400
- * Thrown when `CloudAgent.send({ budget })` is invoked (D388). Cloud
401
- * budget surface waits for Theo PaaS GA.
402
- *
403
- * @public
404
- */
405
- /**
406
- * T1.6 — Thrown when a consumer calls `agent.send()` or any method
407
- * on an agent that has already been `dispose()`d. Pre-T1.6 this was
408
- * a generic `new Error("Agent has been disposed")` — consumers
409
- * couldn't catch it without string-matching the message.
410
- *
411
- * @public
412
- */
413
- export declare class AgentDisposedError extends TheokitAgentError {
414
- readonly name: string;
415
- readonly agentId: string;
416
- constructor(agentId: string);
417
- }
418
- export declare class UnsupportedBudgetOperationError extends TheokitAgentError {
419
- readonly name: string;
420
- readonly operation: string;
421
- constructor(operation: string, options?: {
422
- cause?: unknown;
423
- });
424
- }
1
+ export { A as AgentDisposedError, c as AgentRunError, d as AgentRunErrorCode, e as AuthenticationError, g as BudgetExceededError, C as ConfigurationError, u as CredentialPoolExhaustedError, m as ErrorCode, E as ErrorMetadata, I as IntegrationNotConnectedError, n as InvalidTaskIdError, K as KnownAgentRunErrorCode, M as MemoryAdapterError, o as MemoryAdapterErrorCode, N as NetworkError, R as RateLimitError, p as TaskNotFoundError, T as TheokitAgentError, U as UnknownAgentError, q as UnsupportedBudgetOperationError, r as UnsupportedRunOperationError, s as UnsupportedTaskOperationError, t as isTransientError } from './errors-DHZtSNnj.js';
2
+ import './run-OJbGyweZ.js';
3
+ import 'zod';