@theokit/sdk 4.37.2 → 4.38.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 (364) hide show
  1. package/CHANGELOG.md +72 -72
  2. package/dist/agent-2GZC4W2A.cjs +51 -0
  3. package/dist/{agent-IE6IE4NW.cjs.map → agent-2GZC4W2A.cjs.map} +1 -1
  4. package/dist/agent-3H3UKD6U.js +42 -0
  5. package/dist/{agent-DW2J37IH.js.map → agent-3H3UKD6U.js.map} +1 -1
  6. package/dist/{agent-SmxntivO.d.ts → agent-C3AEtM-W.d.ts} +39 -37
  7. package/dist/{agent-DGv1-d81.d.cts → agent-U3lBX-5t.d.cts} +39 -37
  8. package/dist/agent.d.ts +1 -1
  9. package/dist/auth/index.cjs +15 -15
  10. package/dist/auth/index.js +4 -4
  11. package/dist/{batch-SY5GZLFD.js → batch-LXSALQC3.js} +9 -9
  12. package/dist/{batch-SY5GZLFD.js.map → batch-LXSALQC3.js.map} +1 -1
  13. package/dist/{batch-3SEPDXCU.cjs → batch-NZGN6SFV.cjs} +23 -23
  14. package/dist/{batch-3SEPDXCU.cjs.map → batch-NZGN6SFV.cjs.map} +1 -1
  15. package/dist/{chunk-D4ZUJTFB.cjs → chunk-2K7PRHDB.cjs} +8 -8
  16. package/dist/{chunk-D4ZUJTFB.cjs.map → chunk-2K7PRHDB.cjs.map} +1 -1
  17. package/dist/chunk-2R6NBT5F.cjs +112 -0
  18. package/dist/chunk-2R6NBT5F.cjs.map +1 -0
  19. package/dist/{chunk-2423XDPT.cjs → chunk-3BSP7LSG.cjs} +26 -26
  20. package/dist/{chunk-2423XDPT.cjs.map → chunk-3BSP7LSG.cjs.map} +1 -1
  21. package/dist/{chunk-6EDQBX7U.cjs → chunk-3MUIYMUG.cjs} +17 -17
  22. package/dist/{chunk-6EDQBX7U.cjs.map → chunk-3MUIYMUG.cjs.map} +1 -1
  23. package/dist/{chunk-P34DHHYQ.cjs → chunk-3VKTDQMX.cjs} +34 -27
  24. package/dist/chunk-3VKTDQMX.cjs.map +1 -0
  25. package/dist/{chunk-77WHPVXE.js → chunk-3XKVRLR2.js} +4 -4
  26. package/dist/chunk-3XKVRLR2.js.map +1 -0
  27. package/dist/{chunk-SWIBQFPH.cjs → chunk-3XRXORBS.cjs} +4 -4
  28. package/dist/{chunk-SWIBQFPH.cjs.map → chunk-3XRXORBS.cjs.map} +1 -1
  29. package/dist/{chunk-DCJ5MCJ3.js → chunk-4APWS2YF.js} +7 -7
  30. package/dist/{chunk-DCJ5MCJ3.js.map → chunk-4APWS2YF.js.map} +1 -1
  31. package/dist/{chunk-56ZM6P7Z.cjs → chunk-4MWBKBS4.cjs} +12 -12
  32. package/dist/chunk-4MWBKBS4.cjs.map +1 -0
  33. package/dist/chunk-4NVV3GRU.js +110 -0
  34. package/dist/chunk-4NVV3GRU.js.map +1 -0
  35. package/dist/{chunk-QGDKZDPN.js → chunk-4WIJSKFA.js} +3 -3
  36. package/dist/{chunk-QGDKZDPN.js.map → chunk-4WIJSKFA.js.map} +1 -1
  37. package/dist/{chunk-VNNK6AKU.js → chunk-5BVBNE2F.js} +3 -3
  38. package/dist/chunk-5BVBNE2F.js.map +1 -0
  39. package/dist/{chunk-EEZ7CFMM.js → chunk-5KOW3GLE.js} +2 -2
  40. package/dist/chunk-5KOW3GLE.js.map +1 -0
  41. package/dist/{chunk-FK4EJD2I.cjs → chunk-6OIO4FYX.cjs} +7 -7
  42. package/dist/{chunk-FK4EJD2I.cjs.map → chunk-6OIO4FYX.cjs.map} +1 -1
  43. package/dist/{chunk-IEUDKUPM.cjs → chunk-6OKPJZMX.cjs} +8 -8
  44. package/dist/{chunk-IEUDKUPM.cjs.map → chunk-6OKPJZMX.cjs.map} +1 -1
  45. package/dist/{chunk-QFMXXUUT.js → chunk-6XZBKFQ7.js} +3 -3
  46. package/dist/{chunk-QFMXXUUT.js.map → chunk-6XZBKFQ7.js.map} +1 -1
  47. package/dist/{chunk-H5YVJB4K.cjs → chunk-6ZGD7R27.cjs} +37 -37
  48. package/dist/chunk-6ZGD7R27.cjs.map +1 -0
  49. package/dist/{chunk-HEN5WXXI.js → chunk-7QDTZJRV.js} +6 -6
  50. package/dist/{chunk-HEN5WXXI.js.map → chunk-7QDTZJRV.js.map} +1 -1
  51. package/dist/{chunk-MHCKWQR3.cjs → chunk-A3MHE2MQ.cjs} +8 -8
  52. package/dist/{chunk-MHCKWQR3.cjs.map → chunk-A3MHE2MQ.cjs.map} +1 -1
  53. package/dist/{chunk-5SB4V74H.js → chunk-A4XXV2C6.js} +18 -18
  54. package/dist/chunk-A4XXV2C6.js.map +1 -0
  55. package/dist/{chunk-6VP3XGEK.js → chunk-A6GXYF2Q.js} +9 -9
  56. package/dist/{chunk-6VP3XGEK.js.map → chunk-A6GXYF2Q.js.map} +1 -1
  57. package/dist/{chunk-SDIBMLL5.js → chunk-ACHGT3D2.js} +8 -8
  58. package/dist/{chunk-SDIBMLL5.js.map → chunk-ACHGT3D2.js.map} +1 -1
  59. package/dist/{chunk-XAEAMI5H.js → chunk-AOZYORH7.js} +4 -4
  60. package/dist/chunk-AOZYORH7.js.map +1 -0
  61. package/dist/{chunk-LTCOPATU.cjs → chunk-BE3W4HYV.cjs} +2 -2
  62. package/dist/chunk-BE3W4HYV.cjs.map +1 -0
  63. package/dist/{chunk-NQ4AC2U4.cjs → chunk-BT6DFWZB.cjs} +9 -9
  64. package/dist/{chunk-NQ4AC2U4.cjs.map → chunk-BT6DFWZB.cjs.map} +1 -1
  65. package/dist/{chunk-XAYVHS2B.cjs → chunk-BUGVDCI5.cjs} +4 -4
  66. package/dist/{chunk-XAYVHS2B.cjs.map → chunk-BUGVDCI5.cjs.map} +1 -1
  67. package/dist/{chunk-IT3PWBW4.cjs → chunk-BURYFNOM.cjs} +2 -2
  68. package/dist/chunk-BURYFNOM.cjs.map +1 -0
  69. package/dist/{chunk-NNSKJCBM.cjs → chunk-D3SJLXYZ.cjs} +10 -10
  70. package/dist/{chunk-NNSKJCBM.cjs.map → chunk-D3SJLXYZ.cjs.map} +1 -1
  71. package/dist/{chunk-MRODLUGY.cjs → chunk-ED7ANP6W.cjs} +4 -4
  72. package/dist/{chunk-MRODLUGY.cjs.map → chunk-ED7ANP6W.cjs.map} +1 -1
  73. package/dist/{chunk-MXSMAGDU.js → chunk-EDI7DBWO.js} +33 -26
  74. package/dist/chunk-EDI7DBWO.js.map +1 -0
  75. package/dist/{chunk-T4QWDOG6.js → chunk-EE24WJJR.js} +5 -5
  76. package/dist/{chunk-T4QWDOG6.js.map → chunk-EE24WJJR.js.map} +1 -1
  77. package/dist/{chunk-ZJN6NTHE.js → chunk-EUB7YLU2.js} +3 -3
  78. package/dist/{chunk-ZJN6NTHE.js.map → chunk-EUB7YLU2.js.map} +1 -1
  79. package/dist/{chunk-ALU3KC4G.cjs → chunk-G7X2Y7Y2.cjs} +156 -156
  80. package/dist/chunk-G7X2Y7Y2.cjs.map +1 -0
  81. package/dist/{chunk-YCXMSDSP.js → chunk-HHUDNTZC.js} +4 -4
  82. package/dist/{chunk-YCXMSDSP.js.map → chunk-HHUDNTZC.js.map} +1 -1
  83. package/dist/{chunk-GL7CFBVC.js → chunk-HI6G3SNY.js} +48 -48
  84. package/dist/chunk-HI6G3SNY.js.map +1 -0
  85. package/dist/{chunk-G6AASL5T.cjs → chunk-HLK35TD7.cjs} +24 -24
  86. package/dist/{chunk-G6AASL5T.cjs.map → chunk-HLK35TD7.cjs.map} +1 -1
  87. package/dist/{chunk-4YB7B3RP.cjs → chunk-IBDE4R5L.cjs} +13 -13
  88. package/dist/{chunk-4YB7B3RP.cjs.map → chunk-IBDE4R5L.cjs.map} +1 -1
  89. package/dist/{chunk-WDGCZDRG.js → chunk-JCXIDFRI.js} +3 -3
  90. package/dist/{chunk-WDGCZDRG.js.map → chunk-JCXIDFRI.js.map} +1 -1
  91. package/dist/{chunk-I35DI7ES.js → chunk-JI34KBNC.js} +3 -3
  92. package/dist/{chunk-I35DI7ES.js.map → chunk-JI34KBNC.js.map} +1 -1
  93. package/dist/{chunk-TAPQWDW2.js → chunk-KCZW75PI.js} +2 -2
  94. package/dist/chunk-KCZW75PI.js.map +1 -0
  95. package/dist/{chunk-U2WLFOA3.cjs → chunk-KL7E244K.cjs} +4 -4
  96. package/dist/{chunk-U2WLFOA3.cjs.map → chunk-KL7E244K.cjs.map} +1 -1
  97. package/dist/{chunk-PAEJPLVN.cjs → chunk-KTXOHCAE.cjs} +4 -4
  98. package/dist/{chunk-PAEJPLVN.cjs.map → chunk-KTXOHCAE.cjs.map} +1 -1
  99. package/dist/{chunk-2WFB5ZOX.js → chunk-KWXC6ERT.js} +5 -5
  100. package/dist/{chunk-2WFB5ZOX.js.map → chunk-KWXC6ERT.js.map} +1 -1
  101. package/dist/{chunk-56OXYUZE.js → chunk-LGCEYEU2.js} +3 -3
  102. package/dist/chunk-LGCEYEU2.js.map +1 -0
  103. package/dist/{chunk-FAY3QDGC.cjs → chunk-M4OGSS66.cjs} +11 -11
  104. package/dist/{chunk-FAY3QDGC.cjs.map → chunk-M4OGSS66.cjs.map} +1 -1
  105. package/dist/{chunk-F6Y4IEQM.js → chunk-M6UUTNDT.js} +4 -4
  106. package/dist/{chunk-F6Y4IEQM.js.map → chunk-M6UUTNDT.js.map} +1 -1
  107. package/dist/{chunk-GM7QDQ24.cjs → chunk-MXRBNJ6D.cjs} +11 -11
  108. package/dist/{chunk-GM7QDQ24.cjs.map → chunk-MXRBNJ6D.cjs.map} +1 -1
  109. package/dist/{chunk-YPQF26X7.cjs → chunk-OBA6YK2R.cjs} +2 -2
  110. package/dist/chunk-OBA6YK2R.cjs.map +1 -0
  111. package/dist/{chunk-BJMKQOY2.cjs → chunk-OFWU6UKF.cjs} +11 -11
  112. package/dist/{chunk-BJMKQOY2.cjs.map → chunk-OFWU6UKF.cjs.map} +1 -1
  113. package/dist/{chunk-3O2ELBST.cjs → chunk-PG3QQLWS.cjs} +5 -5
  114. package/dist/{chunk-3O2ELBST.cjs.map → chunk-PG3QQLWS.cjs.map} +1 -1
  115. package/dist/{chunk-2ONFGMBV.js → chunk-PY2RQOA7.js} +2 -2
  116. package/dist/chunk-PY2RQOA7.js.map +1 -0
  117. package/dist/{chunk-UQPDFW4E.js → chunk-QFWQLXCL.js} +3 -3
  118. package/dist/{chunk-UQPDFW4E.js.map → chunk-QFWQLXCL.js.map} +1 -1
  119. package/dist/{chunk-YBFDBOUN.cjs → chunk-QJQ2MAZF.cjs} +8 -8
  120. package/dist/{chunk-YBFDBOUN.cjs.map → chunk-QJQ2MAZF.cjs.map} +1 -1
  121. package/dist/{chunk-QUFSDDNU.cjs → chunk-R4AMI7KD.cjs} +15 -15
  122. package/dist/{chunk-QUFSDDNU.cjs.map → chunk-R4AMI7KD.cjs.map} +1 -1
  123. package/dist/{chunk-CSZRJ4RE.js → chunk-SGTMDQ4O.js} +5 -5
  124. package/dist/{chunk-CSZRJ4RE.js.map → chunk-SGTMDQ4O.js.map} +1 -1
  125. package/dist/{chunk-3ILFUXNE.cjs → chunk-SRIF7HMN.cjs} +5 -5
  126. package/dist/{chunk-3ILFUXNE.cjs.map → chunk-SRIF7HMN.cjs.map} +1 -1
  127. package/dist/{chunk-THEYGCYS.cjs → chunk-TKDWD3MU.cjs} +4 -4
  128. package/dist/chunk-TKDWD3MU.cjs.map +1 -0
  129. package/dist/{chunk-ZW345YOI.js → chunk-UD2T7ISG.js} +4 -4
  130. package/dist/{chunk-ZW345YOI.js.map → chunk-UD2T7ISG.js.map} +1 -1
  131. package/dist/{chunk-EXQV452X.js → chunk-UWEALKAN.js} +3 -3
  132. package/dist/{chunk-EXQV452X.js.map → chunk-UWEALKAN.js.map} +1 -1
  133. package/dist/{chunk-W52DKZBR.cjs → chunk-UZBA6YYP.cjs} +454 -333
  134. package/dist/chunk-UZBA6YYP.cjs.map +1 -0
  135. package/dist/{chunk-VYJSHGAY.js → chunk-VUDH4D2M.js} +201 -80
  136. package/dist/chunk-VUDH4D2M.js.map +1 -0
  137. package/dist/{chunk-W4QN5CMG.cjs → chunk-VVMLMKYZ.cjs} +9 -9
  138. package/dist/{chunk-W4QN5CMG.cjs.map → chunk-VVMLMKYZ.cjs.map} +1 -1
  139. package/dist/{chunk-JNIWFCKI.js → chunk-VYD6BGKK.js} +3 -3
  140. package/dist/{chunk-JNIWFCKI.js.map → chunk-VYD6BGKK.js.map} +1 -1
  141. package/dist/{chunk-YHZXBDAW.js → chunk-XJ5TMOGA.js} +16 -16
  142. package/dist/{chunk-YHZXBDAW.js.map → chunk-XJ5TMOGA.js.map} +1 -1
  143. package/dist/{chunk-7DXLNNKH.cjs → chunk-XKBJT7WI.cjs} +4 -4
  144. package/dist/{chunk-7DXLNNKH.cjs.map → chunk-XKBJT7WI.cjs.map} +1 -1
  145. package/dist/{chunk-YDLNI7J6.js → chunk-XS7SKY2F.js} +3 -3
  146. package/dist/{chunk-YDLNI7J6.js.map → chunk-XS7SKY2F.js.map} +1 -1
  147. package/dist/{chunk-NFCKEBHI.js → chunk-YCHC45BY.js} +3 -3
  148. package/dist/{chunk-NFCKEBHI.js.map → chunk-YCHC45BY.js.map} +1 -1
  149. package/dist/{chunk-ICYBIC6N.cjs → chunk-YVI4YPUP.cjs} +4 -4
  150. package/dist/chunk-YVI4YPUP.cjs.map +1 -0
  151. package/dist/{chunk-TQI3KRXZ.cjs → chunk-ZET34IZE.cjs} +18 -18
  152. package/dist/{chunk-TQI3KRXZ.cjs.map → chunk-ZET34IZE.cjs.map} +1 -1
  153. package/dist/{chunk-GLUWH6JO.js → chunk-ZFZYPLQI.js} +4 -4
  154. package/dist/{chunk-GLUWH6JO.js.map → chunk-ZFZYPLQI.js.map} +1 -1
  155. package/dist/{chunk-M5ZQBOIZ.js → chunk-ZK3BJ4XQ.js} +3 -3
  156. package/dist/{chunk-M5ZQBOIZ.js.map → chunk-ZK3BJ4XQ.js.map} +1 -1
  157. package/dist/{chunk-CD73YHEH.js → chunk-ZYOHF37V.js} +3 -3
  158. package/dist/{chunk-CD73YHEH.js.map → chunk-ZYOHF37V.js.map} +1 -1
  159. package/dist/compact-session-RR3ILTES.js +17 -0
  160. package/dist/{compact-session-WNKKIIDW.js.map → compact-session-RR3ILTES.js.map} +1 -1
  161. package/dist/compact-session-YOWJJPPB.cjs +54 -0
  162. package/dist/{compact-session-H5TKLD55.cjs.map → compact-session-YOWJJPPB.cjs.map} +1 -1
  163. package/dist/compaction.cjs +19 -19
  164. package/dist/compaction.d.cts +9 -9
  165. package/dist/compaction.d.ts +9 -9
  166. package/dist/compaction.js +3 -3
  167. package/dist/concurrency.cjs +6 -6
  168. package/dist/concurrency.js +4 -4
  169. package/dist/context-Q6ISOCN2.cjs +22 -0
  170. package/dist/{context-ZV33V4DC.cjs.map → context-Q6ISOCN2.cjs.map} +1 -1
  171. package/dist/context-ZDBBPIHY.js +5 -0
  172. package/dist/{context-VAYLPT4O.js.map → context-ZDBBPIHY.js.map} +1 -1
  173. package/dist/{cron-BiK_aNJI.d.cts → cron-BdXOZco9.d.cts} +2 -2
  174. package/dist/{cron-Dx7B-3WB.d.ts → cron-ChQ6zcW2.d.ts} +2 -2
  175. package/dist/cron.cjs +29 -29
  176. package/dist/cron.d.cts +3 -3
  177. package/dist/cron.d.ts +3 -3
  178. package/dist/cron.js +28 -28
  179. package/dist/{errors-DyVbXdR4.d.cts → errors-BUVjJGJA.d.cts} +1 -1
  180. package/dist/{errors-Cua4WC9H.d.ts → errors-CZIUKLHt.d.ts} +1 -1
  181. package/dist/errors.cjs +21 -21
  182. package/dist/errors.d.cts +2 -2
  183. package/dist/errors.d.ts +2 -2
  184. package/dist/errors.js +2 -2
  185. package/dist/eval.cjs +32 -32
  186. package/dist/eval.js +28 -28
  187. package/dist/{executor-PAH72CB5.js → executor-ASDDIM2X.js} +7 -7
  188. package/dist/{executor-PAH72CB5.js.map → executor-ASDDIM2X.js.map} +1 -1
  189. package/dist/{executor-OZSYXDKF.cjs → executor-DPCBSI35.cjs} +23 -23
  190. package/dist/{executor-OZSYXDKF.cjs.map → executor-DPCBSI35.cjs.map} +1 -1
  191. package/dist/filesystem/index.cjs +7 -7
  192. package/dist/filesystem/index.js +3 -3
  193. package/dist/fs-session-store-K5QUPNJZ.js +10 -0
  194. package/dist/{fs-session-store-6MY7PNI2.js.map → fs-session-store-K5QUPNJZ.js.map} +1 -1
  195. package/dist/fs-session-store-T5ZLQX42.cjs +19 -0
  196. package/dist/{fs-session-store-7E7UPLF2.cjs.map → fs-session-store-T5ZLQX42.cjs.map} +1 -1
  197. package/dist/generate-object-F56VIZ6U.cjs +20 -0
  198. package/dist/{generate-object-5SCEH2EE.cjs.map → generate-object-F56VIZ6U.cjs.map} +1 -1
  199. package/dist/generate-object-LPSO6GVW.js +7 -0
  200. package/dist/{generate-object-I7UD4NWN.js.map → generate-object-LPSO6GVW.js.map} +1 -1
  201. package/dist/index-manager-DBJ55ZSO.cjs +19 -0
  202. package/dist/{index-manager-R6ZJFEZF.cjs.map → index-manager-DBJ55ZSO.cjs.map} +1 -1
  203. package/dist/index-manager-F2H2RCZU.js +10 -0
  204. package/dist/{index-manager-KKAK7NT3.js.map → index-manager-F2H2RCZU.js.map} +1 -1
  205. package/dist/index.cjs +140 -140
  206. package/dist/index.cjs.map +1 -1
  207. package/dist/index.d.cts +42 -42
  208. package/dist/index.d.ts +42 -42
  209. package/dist/index.js +54 -54
  210. package/dist/index.js.map +1 -1
  211. package/dist/{inject-session-DM4SKTZO.cjs → inject-session-25EC74WV.cjs} +10 -10
  212. package/dist/{inject-session-DM4SKTZO.cjs.map → inject-session-25EC74WV.cjs.map} +1 -1
  213. package/dist/{inject-session-UXNJQTZ6.js → inject-session-RKNLUE72.js} +7 -7
  214. package/dist/{inject-session-UXNJQTZ6.js.map → inject-session-RKNLUE72.js.map} +1 -1
  215. package/dist/internal/agent-loop/live-events.d.ts +46 -0
  216. package/dist/internal/budget/compute-cost.d.ts +1 -1
  217. package/dist/internal/diagnostics.d.ts +31 -29
  218. package/dist/internal/error-mappers/anthropic.d.ts +1 -1
  219. package/dist/internal/global-singleton.d.ts +7 -7
  220. package/dist/internal/judge/judge-call.d.ts +14 -14
  221. package/dist/internal/llm/retrying-client.d.ts +29 -29
  222. package/dist/internal/llm/transport-error.d.ts +2 -2
  223. package/dist/internal/persistence/exclusive-create.d.cts +2 -2
  224. package/dist/internal/persistence/exclusive-create.d.ts +2 -2
  225. package/dist/internal/persistence/fs-session-store.d.cts +18 -18
  226. package/dist/internal/persistence/fs-session-store.d.ts +18 -18
  227. package/dist/internal/persistence/index.cjs +25 -25
  228. package/dist/internal/persistence/index.cjs.map +1 -1
  229. package/dist/internal/persistence/index.js +6 -6
  230. package/dist/internal/persistence/index.js.map +1 -1
  231. package/dist/internal/persistence/paths.d.cts +7 -7
  232. package/dist/internal/persistence/paths.d.ts +7 -7
  233. package/dist/internal/persistence/session-transcript.d.cts +7 -7
  234. package/dist/internal/persistence/session-transcript.d.ts +7 -7
  235. package/dist/internal/persistence/session-writer.d.cts +30 -13
  236. package/dist/internal/persistence/session-writer.d.ts +30 -13
  237. package/dist/internal/runtime/fixtures/fixture-run-base.d.ts +45 -13
  238. package/dist/internal/runtime/lifecycle/goal-marker.d.ts +8 -8
  239. package/dist/internal/security/index.cjs +13 -13
  240. package/dist/internal/security/index.js +3 -3
  241. package/dist/internal/session/agent-session.d.ts +14 -14
  242. package/dist/internal/session/session-cache.d.ts +9 -9
  243. package/dist/judge-call-3S3T6O2Z.js +5 -0
  244. package/dist/{judge-call-TAEIXMYG.js.map → judge-call-3S3T6O2Z.js.map} +1 -1
  245. package/dist/judge-call-XIQJ5GIE.cjs +22 -0
  246. package/dist/{judge-call-SP3G3X2Y.cjs.map → judge-call-XIQJ5GIE.cjs.map} +1 -1
  247. package/dist/models.cjs +20 -20
  248. package/dist/models.cjs.map +1 -1
  249. package/dist/models.js +5 -5
  250. package/dist/models.js.map +1 -1
  251. package/dist/path-safety.cjs +10 -10
  252. package/dist/path-safety.js +3 -3
  253. package/dist/persistence.cjs +34 -34
  254. package/dist/persistence.cjs.map +1 -1
  255. package/dist/persistence.d.cts +1 -1
  256. package/dist/persistence.d.ts +1 -1
  257. package/dist/persistence.js +14 -14
  258. package/dist/persistence.js.map +1 -1
  259. package/dist/project.cjs +5 -5
  260. package/dist/project.js +3 -3
  261. package/dist/registry-BA3SLAN7.cjs +46 -0
  262. package/dist/{registry-N3GTKYCI.cjs.map → registry-BA3SLAN7.cjs.map} +1 -1
  263. package/dist/registry-KMI5RA22.js +9 -0
  264. package/dist/{registry-SOXE4RY6.js.map → registry-KMI5RA22.js.map} +1 -1
  265. package/dist/retry.cjs +4 -4
  266. package/dist/retry.js +3 -3
  267. package/dist/{run-until-YZ2ODWOF.js → run-until-BK56WG4P.js} +3 -3
  268. package/dist/{run-until-YZ2ODWOF.js.map → run-until-BK56WG4P.js.map} +1 -1
  269. package/dist/{run-until-ZZ2JLPJM.cjs → run-until-L5KQD3PV.cjs} +4 -4
  270. package/dist/{run-until-ZZ2JLPJM.cjs.map → run-until-L5KQD3PV.cjs.map} +1 -1
  271. package/dist/{run-CwEJtLPE.d.ts → run-vJHg2eGw.d.cts} +201 -174
  272. package/dist/{run-CwEJtLPE.d.cts → run-vJHg2eGw.d.ts} +201 -174
  273. package/dist/sandbox/bwrap.d.cts +20 -20
  274. package/dist/sandbox/bwrap.d.ts +20 -20
  275. package/dist/sandbox/index.cjs +39 -39
  276. package/dist/sandbox/index.cjs.map +1 -1
  277. package/dist/sandbox/index.d.cts +1 -1
  278. package/dist/sandbox/index.d.ts +1 -1
  279. package/dist/sandbox/index.js +35 -35
  280. package/dist/sandbox/index.js.map +1 -1
  281. package/dist/sandbox/linux-sandbox.d.cts +26 -21
  282. package/dist/sandbox/linux-sandbox.d.ts +26 -21
  283. package/dist/server/auth/index.cjs.map +1 -1
  284. package/dist/server/auth/index.d.cts +6 -6
  285. package/dist/server/auth/index.d.ts +6 -6
  286. package/dist/server/auth/index.js.map +1 -1
  287. package/dist/server/auth/orchestrator.d.cts +2 -2
  288. package/dist/server/auth/orchestrator.d.ts +2 -2
  289. package/dist/server/auth/types.d.cts +4 -4
  290. package/dist/server/auth/types.d.ts +4 -4
  291. package/dist/server/errors-envelope.cjs +14 -14
  292. package/dist/server/errors-envelope.d.cts +3 -3
  293. package/dist/server/errors-envelope.d.ts +3 -3
  294. package/dist/server/errors-envelope.js +3 -3
  295. package/dist/session-transcript-DFGX6WNL.cjs +50 -0
  296. package/dist/{session-transcript-EAKR4D2W.cjs.map → session-transcript-DFGX6WNL.cjs.map} +1 -1
  297. package/dist/session-transcript-MMPWCESR.js +5 -0
  298. package/dist/{session-transcript-6WKLYIN4.js.map → session-transcript-MMPWCESR.js.map} +1 -1
  299. package/dist/skills.cjs +7 -7
  300. package/dist/skills.js +5 -5
  301. package/dist/stream-object-AFERZU63.js +7 -0
  302. package/dist/{stream-object-OFM66VUT.js.map → stream-object-AFERZU63.js.map} +1 -1
  303. package/dist/stream-object-YPXZ4F5P.cjs +20 -0
  304. package/dist/{stream-object-Y7YCX3BI.cjs.map → stream-object-YPXZ4F5P.cjs.map} +1 -1
  305. package/dist/subagents-loader.cjs +6 -6
  306. package/dist/subagents-loader.d.cts +2 -2
  307. package/dist/subagents-loader.d.ts +2 -2
  308. package/dist/subagents-loader.js +4 -4
  309. package/dist/subscription/index.cjs +3 -3
  310. package/dist/subscription/index.js +2 -2
  311. package/dist/task-store.cjs +7 -7
  312. package/dist/task-store.js +4 -4
  313. package/dist/types/agent-prims.d.ts +4 -4
  314. package/dist/types/goal-events.d.ts +24 -23
  315. package/dist/types/run.d.ts +27 -0
  316. package/dist/types/session-record.d.ts +14 -13
  317. package/dist/workflow.cjs +27 -27
  318. package/dist/workflow.js +6 -6
  319. package/package.json +12 -13
  320. package/dist/agent-DW2J37IH.js +0 -42
  321. package/dist/agent-IE6IE4NW.cjs +0 -51
  322. package/dist/chunk-2ONFGMBV.js.map +0 -1
  323. package/dist/chunk-56OXYUZE.js.map +0 -1
  324. package/dist/chunk-56ZM6P7Z.cjs.map +0 -1
  325. package/dist/chunk-5SB4V74H.js.map +0 -1
  326. package/dist/chunk-77WHPVXE.js.map +0 -1
  327. package/dist/chunk-ALU3KC4G.cjs.map +0 -1
  328. package/dist/chunk-EEZ7CFMM.js.map +0 -1
  329. package/dist/chunk-GL7CFBVC.js.map +0 -1
  330. package/dist/chunk-H5YVJB4K.cjs.map +0 -1
  331. package/dist/chunk-ICYBIC6N.cjs.map +0 -1
  332. package/dist/chunk-IT3PWBW4.cjs.map +0 -1
  333. package/dist/chunk-ITLS5LRF.cjs +0 -105
  334. package/dist/chunk-ITLS5LRF.cjs.map +0 -1
  335. package/dist/chunk-LTCOPATU.cjs.map +0 -1
  336. package/dist/chunk-MXSMAGDU.js.map +0 -1
  337. package/dist/chunk-P34DHHYQ.cjs.map +0 -1
  338. package/dist/chunk-TAPQWDW2.js.map +0 -1
  339. package/dist/chunk-THEYGCYS.cjs.map +0 -1
  340. package/dist/chunk-VNNK6AKU.js.map +0 -1
  341. package/dist/chunk-VYJSHGAY.js.map +0 -1
  342. package/dist/chunk-W52DKZBR.cjs.map +0 -1
  343. package/dist/chunk-XAEAMI5H.js.map +0 -1
  344. package/dist/chunk-YPQF26X7.cjs.map +0 -1
  345. package/dist/chunk-YVTNFKZO.js +0 -103
  346. package/dist/chunk-YVTNFKZO.js.map +0 -1
  347. package/dist/compact-session-H5TKLD55.cjs +0 -54
  348. package/dist/compact-session-WNKKIIDW.js +0 -17
  349. package/dist/context-VAYLPT4O.js +0 -5
  350. package/dist/context-ZV33V4DC.cjs +0 -22
  351. package/dist/fs-session-store-6MY7PNI2.js +0 -10
  352. package/dist/fs-session-store-7E7UPLF2.cjs +0 -19
  353. package/dist/generate-object-5SCEH2EE.cjs +0 -20
  354. package/dist/generate-object-I7UD4NWN.js +0 -7
  355. package/dist/index-manager-KKAK7NT3.js +0 -10
  356. package/dist/index-manager-R6ZJFEZF.cjs +0 -19
  357. package/dist/judge-call-SP3G3X2Y.cjs +0 -22
  358. package/dist/judge-call-TAEIXMYG.js +0 -5
  359. package/dist/registry-N3GTKYCI.cjs +0 -46
  360. package/dist/registry-SOXE4RY6.js +0 -9
  361. package/dist/session-transcript-6WKLYIN4.js +0 -5
  362. package/dist/session-transcript-EAKR4D2W.cjs +0 -50
  363. package/dist/stream-object-OFM66VUT.js +0 -7
  364. package/dist/stream-object-Y7YCX3BI.cjs +0 -20
@@ -1,5 +1,174 @@
1
1
  import * as zod from 'zod';
2
2
 
3
+ /**
4
+ * Type-leaf — base message types shared between `conversation.ts` and
5
+ * `updates.ts`. Extracted to break LOW type-only cycle #6 (audit
6
+ * `architecture-output/final_report.md`) per plan arch-review-fixes-2026-06-06
7
+ * § Phase 4 / T4.1 (D438).
8
+ *
9
+ * Public surface unchanged — `types/conversation.ts` re-exports `UserMessage`
10
+ * from this leaf so `import type { UserMessage } from "@theokit/sdk"` keeps
11
+ * resolving.
12
+ *
13
+ * @public
14
+ */
15
+ /**
16
+ * User-authored message in a conversation history.
17
+ *
18
+ * @public
19
+ */
20
+ interface UserMessage {
21
+ text: string;
22
+ }
23
+
24
+ /**
25
+ * Single tool call event. The internal `args` and `result` shapes are NOT stable.
26
+ *
27
+ * @public
28
+ */
29
+ interface ToolCall {
30
+ callId: string;
31
+ name: string;
32
+ args?: unknown;
33
+ result?: unknown;
34
+ }
35
+ /**
36
+ * Incremental text token from the assistant.
37
+ *
38
+ * @public
39
+ */
40
+ interface TextDeltaUpdate {
41
+ type: "text-delta";
42
+ text: string;
43
+ }
44
+ /**
45
+ * Incremental reasoning token.
46
+ *
47
+ * @public
48
+ */
49
+ interface ThinkingDeltaUpdate {
50
+ type: "thinking-delta";
51
+ text: string;
52
+ }
53
+ /**
54
+ * Emitted when a reasoning block completes.
55
+ *
56
+ * @public
57
+ */
58
+ interface ThinkingCompletedUpdate {
59
+ type: "thinking-completed";
60
+ thinkingDurationMs: number;
61
+ }
62
+ /**
63
+ * Tool call started — args committed.
64
+ *
65
+ * @public
66
+ */
67
+ interface ToolCallStartedUpdate {
68
+ type: "tool-call-started";
69
+ callId: string;
70
+ toolCall: ToolCall;
71
+ modelCallId: string;
72
+ }
73
+ /**
74
+ * Tool call arguments streaming in incrementally.
75
+ *
76
+ * @public
77
+ */
78
+ interface PartialToolCallUpdate {
79
+ type: "partial-tool-call";
80
+ callId: string;
81
+ toolCall: ToolCall;
82
+ modelCallId: string;
83
+ }
84
+ /**
85
+ * Tool call completed.
86
+ *
87
+ * @public
88
+ */
89
+ interface ToolCallCompletedUpdate {
90
+ type: "tool-call-completed";
91
+ callId: string;
92
+ toolCall: ToolCall;
93
+ modelCallId: string;
94
+ }
95
+ /**
96
+ * Token count delta for usage tracking.
97
+ *
98
+ * @public
99
+ */
100
+ interface TokenDeltaUpdate {
101
+ type: "token-delta";
102
+ tokens: number;
103
+ }
104
+ /**
105
+ * Conversation step started.
106
+ *
107
+ * @public
108
+ */
109
+ interface StepStartedUpdate {
110
+ type: "step-started";
111
+ stepId: number;
112
+ }
113
+ /**
114
+ * Conversation step completed.
115
+ *
116
+ * @public
117
+ */
118
+ interface StepCompletedUpdate {
119
+ type: "step-completed";
120
+ stepId: number;
121
+ stepDurationMs: number;
122
+ }
123
+ /**
124
+ * Turn ended with usage summary.
125
+ *
126
+ * @public
127
+ */
128
+ interface TurnEndedUpdate {
129
+ type: "turn-ended";
130
+ usage?: {
131
+ inputTokens: number;
132
+ outputTokens: number;
133
+ cacheReadTokens: number;
134
+ cacheWriteTokens: number;
135
+ };
136
+ }
137
+ /**
138
+ * User message appended to the conversation.
139
+ *
140
+ * @public
141
+ */
142
+ interface UserMessageAppendedUpdate {
143
+ type: "user-message-appended";
144
+ userMessage: UserMessage;
145
+ }
146
+ /** @public */
147
+ interface SummaryUpdate {
148
+ type: "summary";
149
+ summary: string;
150
+ }
151
+ /** @public */
152
+ interface SummaryStartedUpdate {
153
+ type: "summary-started";
154
+ }
155
+ /** @public */
156
+ interface SummaryCompletedUpdate {
157
+ type: "summary-completed";
158
+ }
159
+ /** @public */
160
+ interface ShellOutputDeltaUpdate {
161
+ type: "shell-output-delta";
162
+ event: Record<string, unknown>;
163
+ }
164
+ /**
165
+ * Lowest-level raw update from a run. Pass `onDelta` to `agent.send()` to
166
+ * consume these. Finer-grained than `SDKMessage` events.
167
+ *
168
+ * @public
169
+ */
170
+ type InteractionUpdate = TextDeltaUpdate | ThinkingDeltaUpdate | ThinkingCompletedUpdate | ToolCallStartedUpdate | ToolCallCompletedUpdate | PartialToolCallUpdate | TokenDeltaUpdate | StepStartedUpdate | StepCompletedUpdate | TurnEndedUpdate | UserMessageAppendedUpdate | SummaryUpdate | SummaryStartedUpdate | SummaryCompletedUpdate | ShellOutputDeltaUpdate;
171
+
3
172
  /**
4
173
  * `PermissionEngine` — first-match permission rules for tool invocations.
5
174
  *
@@ -377,11 +546,11 @@ interface ModelSelection {
377
546
  id: string;
378
547
  params?: ModelParameterValue[];
379
548
  /**
380
- * M94 — janela de contexto do modelo, em tokens. Vira o `override` do resolvedor de janela.
549
+ * M94 — the model's context window, in tokens. Becomes the window resolver's `override`.
381
550
  *
382
- * Existe para modelos SEM entrada de catálogo: sem ela, um modelo de 400k era orçado contra o
383
- * piso de 128k e compactava ~ mais do que precisava. Um valor acima do que o catálogo conhece
384
- * é clampeado declarar 10M não estoura o provider.
551
+ * It exists for models with NO catalog entry: without it, a 400k model was budgeted against the
552
+ * 128k floor and compacted ~3x more than it needed to. A value above what the catalog knows is
553
+ * clampeddeclaring 10M does not blow past the provider.
385
554
  */
386
555
  contextWindow?: number;
387
556
  }
@@ -448,175 +617,6 @@ interface CustomTool {
448
617
  }) => string | ToolResultContentBlock[] | Promise<string | ToolResultContentBlock[]>;
449
618
  }
450
619
 
451
- /**
452
- * Type-leaf — base message types shared between `conversation.ts` and
453
- * `updates.ts`. Extracted to break LOW type-only cycle #6 (audit
454
- * `architecture-output/final_report.md`) per plan arch-review-fixes-2026-06-06
455
- * § Phase 4 / T4.1 (D438).
456
- *
457
- * Public surface unchanged — `types/conversation.ts` re-exports `UserMessage`
458
- * from this leaf so `import type { UserMessage } from "@theokit/sdk"` keeps
459
- * resolving.
460
- *
461
- * @public
462
- */
463
- /**
464
- * User-authored message in a conversation history.
465
- *
466
- * @public
467
- */
468
- interface UserMessage {
469
- text: string;
470
- }
471
-
472
- /**
473
- * Single tool call event. The internal `args` and `result` shapes are NOT stable.
474
- *
475
- * @public
476
- */
477
- interface ToolCall {
478
- callId: string;
479
- name: string;
480
- args?: unknown;
481
- result?: unknown;
482
- }
483
- /**
484
- * Incremental text token from the assistant.
485
- *
486
- * @public
487
- */
488
- interface TextDeltaUpdate {
489
- type: "text-delta";
490
- text: string;
491
- }
492
- /**
493
- * Incremental reasoning token.
494
- *
495
- * @public
496
- */
497
- interface ThinkingDeltaUpdate {
498
- type: "thinking-delta";
499
- text: string;
500
- }
501
- /**
502
- * Emitted when a reasoning block completes.
503
- *
504
- * @public
505
- */
506
- interface ThinkingCompletedUpdate {
507
- type: "thinking-completed";
508
- thinkingDurationMs: number;
509
- }
510
- /**
511
- * Tool call started — args committed.
512
- *
513
- * @public
514
- */
515
- interface ToolCallStartedUpdate {
516
- type: "tool-call-started";
517
- callId: string;
518
- toolCall: ToolCall;
519
- modelCallId: string;
520
- }
521
- /**
522
- * Tool call arguments streaming in incrementally.
523
- *
524
- * @public
525
- */
526
- interface PartialToolCallUpdate {
527
- type: "partial-tool-call";
528
- callId: string;
529
- toolCall: ToolCall;
530
- modelCallId: string;
531
- }
532
- /**
533
- * Tool call completed.
534
- *
535
- * @public
536
- */
537
- interface ToolCallCompletedUpdate {
538
- type: "tool-call-completed";
539
- callId: string;
540
- toolCall: ToolCall;
541
- modelCallId: string;
542
- }
543
- /**
544
- * Token count delta for usage tracking.
545
- *
546
- * @public
547
- */
548
- interface TokenDeltaUpdate {
549
- type: "token-delta";
550
- tokens: number;
551
- }
552
- /**
553
- * Conversation step started.
554
- *
555
- * @public
556
- */
557
- interface StepStartedUpdate {
558
- type: "step-started";
559
- stepId: number;
560
- }
561
- /**
562
- * Conversation step completed.
563
- *
564
- * @public
565
- */
566
- interface StepCompletedUpdate {
567
- type: "step-completed";
568
- stepId: number;
569
- stepDurationMs: number;
570
- }
571
- /**
572
- * Turn ended with usage summary.
573
- *
574
- * @public
575
- */
576
- interface TurnEndedUpdate {
577
- type: "turn-ended";
578
- usage?: {
579
- inputTokens: number;
580
- outputTokens: number;
581
- cacheReadTokens: number;
582
- cacheWriteTokens: number;
583
- };
584
- }
585
- /**
586
- * User message appended to the conversation.
587
- *
588
- * @public
589
- */
590
- interface UserMessageAppendedUpdate {
591
- type: "user-message-appended";
592
- userMessage: UserMessage;
593
- }
594
- /** @public */
595
- interface SummaryUpdate {
596
- type: "summary";
597
- summary: string;
598
- }
599
- /** @public */
600
- interface SummaryStartedUpdate {
601
- type: "summary-started";
602
- }
603
- /** @public */
604
- interface SummaryCompletedUpdate {
605
- type: "summary-completed";
606
- }
607
- /** @public */
608
- interface ShellOutputDeltaUpdate {
609
- type: "shell-output-delta";
610
- event: Record<string, unknown>;
611
- }
612
- /**
613
- * Lowest-level raw update from a run. Pass `onDelta` to `agent.send()` to
614
- * consume these. Finer-grained than `SDKMessage` events.
615
- *
616
- * @public
617
- */
618
- type InteractionUpdate = TextDeltaUpdate | ThinkingDeltaUpdate | ThinkingCompletedUpdate | ToolCallStartedUpdate | ToolCallCompletedUpdate | PartialToolCallUpdate | TokenDeltaUpdate | StepStartedUpdate | StepCompletedUpdate | TurnEndedUpdate | UserMessageAppendedUpdate | SummaryUpdate | SummaryStartedUpdate | SummaryCompletedUpdate | ShellOutputDeltaUpdate;
619
-
620
620
  /**
621
621
  * Plain assistant message in a conversation history.
622
622
  *
@@ -1546,6 +1546,21 @@ interface CompletionCheckResult {
1546
1546
  *
1547
1547
  * @public
1548
1548
  */
1549
+ /**
1550
+ * theokit#140 - one element of {@link Run.events}: either a structural SDK message or a live delta.
1551
+ *
1552
+ * A discriminated union rather than a widened `SDKMessage`, because a token delta is not a message
1553
+ * and pretending otherwise would force every consumer to guess which of the two it is holding.
1554
+ *
1555
+ * @public
1556
+ */
1557
+ type RunTimelineEvent = {
1558
+ kind: "message";
1559
+ message: SDKMessage;
1560
+ } | {
1561
+ kind: "delta";
1562
+ update: InteractionUpdate;
1563
+ };
1549
1564
  interface Run {
1550
1565
  readonly id: string;
1551
1566
  readonly agentId: string;
@@ -1557,6 +1572,18 @@ interface Run {
1557
1572
  readonly createdAt?: number;
1558
1573
  /** AsyncGenerator of normalized stream events. Discriminate on `event.type`. */
1559
1574
  stream(): AsyncGenerator<SDKMessage, void>;
1575
+ /**
1576
+ * theokit#140 - every event of this run in TRUE order, from one source: structural messages and
1577
+ * live token/tool deltas interleaved as they occurred.
1578
+ *
1579
+ * Use this instead of fusing `stream()` with `SendOptions.onDelta` by hand. Neither of those is
1580
+ * complete alone - `onDelta` carries no `run_started`/`system`, `stream()` carries no token
1581
+ * granularity - and reconciling them in the consumer is what produced the ordering and dedup
1582
+ * bugs this replaces.
1583
+ *
1584
+ * `stream()` is unchanged and remains the SDKMessage-only view.
1585
+ */
1586
+ events(): AsyncGenerator<RunTimelineEvent, void>;
1560
1587
  /** Resolves to the terminal {@link RunResult}. */
1561
1588
  wait(): Promise<RunResult>;
1562
1589
  /** Move status to `"cancelled"`, abort the stream, stop in-flight tool calls. */
@@ -1613,4 +1640,4 @@ interface GenerateRunResult<O> {
1613
1640
  };
1614
1641
  }
1615
1642
 
1616
- export { type RunToCompletionResult as $, type AgentConversationTurn as A, type ProcessorControls as B, type CustomTool as C, type DoomLoopThresholds as D, type ProcessorTripwire as E, type ProcessorViolation as F, type GenerateOptions as G, type RunCompactBoundaryEvent as H, type ImageBlock as I, type RunCompletionCheckEvent as J, type RunErrorDetail as K, type RunEvent as L, type ModelSelection as M, type RunGitInfo as N, type OutputProcessorContext as O, type Processor as P, type RunOperation as Q, type RunResult as R, type SDKMessage as S, type ToolResultContentBlock as T, type RunPermissionDeniedEvent as U, type RunRateLimitEvent as V, type RunStatus as W, type RunTaskCompletedEvent as X, type RunTaskStartedEvent as Y, type RunTaskUpdatedEvent as Z, type RunToCompletionOptions as _, type McpServerConfig as a, type RunToolProgressEvent as a0, type RunTripwireEvent as a1, type SDKAssistantMessage as a2, type SDKImage as a3, type SDKImageDimension as a4, type SDKObjectDelta as a5, type SDKRequestMessage as a6, type SDKStatusMessage as a7, type SDKSystemMessage as a8, type SDKTaskMessage as a9, type ToolResult as aA, type ToolResultGuardOptions as aB, type ToolUseBlock as aC, type TurnEndedUpdate as aD, type UserMessage as aE, type UserMessageAppendedUpdate as aF, applyMode as aG, emitRunEvent as aH, type SDKThinkingMessage as aa, type SDKToolUseMessage as ab, type SDKUserMessage as ac, type SDKUserMessageEvent as ad, type SendOptions as ae, type ShellCommand as af, type ShellConversationTurn as ag, type ShellOutput as ah, type ShellOutputDeltaUpdate as ai, type StepCompletedUpdate as aj, type StepStartedUpdate as ak, type StreamToCompletionResult as al, type SummaryCompletedUpdate as am, type SummaryStartedUpdate as an, type SummaryUpdate as ao, type TextBlock as ap, type TextDeltaUpdate as aq, type ThinkingCompletedUpdate as ar, type ThinkingDeltaUpdate as as, type ThinkingMessage as at, type TokenDeltaUpdate as au, type TokenUsage as av, type ToolCall as aw, type ToolCallCompletedUpdate as ax, type ToolCallStartedUpdate as ay, type ToolContextMessage as az, type Run as b, type PermissionMode as c, PermissionEngine as d, type RunEventSink as e, type AssistantMessage as f, type CompletionCheck as g, type CompletionCheckResult as h, type ConversationStep as i, type ConversationTurn as j, type CostBreakdown as k, type CostSource as l, type CostStatus as m, type GenerateRunResult as n, type InputProcessorContext as o, type InteractionUpdate as p, type McpAuthConfig as q, type McpHttpServerConfig as r, type McpOAuthConfig as s, type McpStdioServerConfig as t, type MessageOrigin as u, type ModelParameterValue as v, type PartialToolCallUpdate as w, type PermissionAction as x, type PermissionEngineOptions as y, type PermissionRule as z };
1643
+ export { type RunToCompletionOptions as $, type AgentConversationTurn as A, type ProcessorControls as B, type CustomTool as C, type DoomLoopThresholds as D, type ProcessorTripwire as E, type ProcessorViolation as F, type GenerateOptions as G, type RunCompactBoundaryEvent as H, type ImageBlock as I, type RunCompletionCheckEvent as J, type RunErrorDetail as K, type RunEvent as L, type ModelSelection as M, type RunGitInfo as N, type OutputProcessorContext as O, type Processor as P, type RunOperation as Q, type RunResult as R, type SDKMessage as S, type ToolResultContentBlock as T, type RunPermissionDeniedEvent as U, type RunRateLimitEvent as V, type RunStatus as W, type RunTaskCompletedEvent as X, type RunTaskStartedEvent as Y, type RunTaskUpdatedEvent as Z, type RunTimelineEvent as _, type McpServerConfig as a, type RunToCompletionResult as a0, type RunToolProgressEvent as a1, type RunTripwireEvent as a2, type SDKAssistantMessage as a3, type SDKImage as a4, type SDKImageDimension as a5, type SDKObjectDelta as a6, type SDKRequestMessage as a7, type SDKStatusMessage as a8, type SDKSystemMessage as a9, type ToolContextMessage as aA, type ToolResult as aB, type ToolResultGuardOptions as aC, type ToolUseBlock as aD, type TurnEndedUpdate as aE, type UserMessage as aF, type UserMessageAppendedUpdate as aG, applyMode as aH, emitRunEvent as aI, type SDKTaskMessage as aa, type SDKThinkingMessage as ab, type SDKToolUseMessage as ac, type SDKUserMessage as ad, type SDKUserMessageEvent as ae, type SendOptions as af, type ShellCommand as ag, type ShellConversationTurn as ah, type ShellOutput as ai, type ShellOutputDeltaUpdate as aj, type StepCompletedUpdate as ak, type StepStartedUpdate as al, type StreamToCompletionResult as am, type SummaryCompletedUpdate as an, type SummaryStartedUpdate as ao, type SummaryUpdate as ap, type TextBlock as aq, type TextDeltaUpdate as ar, type ThinkingCompletedUpdate as as, type ThinkingDeltaUpdate as at, type ThinkingMessage as au, type TokenDeltaUpdate as av, type TokenUsage as aw, type ToolCall as ax, type ToolCallCompletedUpdate as ay, type ToolCallStartedUpdate as az, type Run as b, type PermissionMode as c, PermissionEngine as d, type RunEventSink as e, type AssistantMessage as f, type CompletionCheck as g, type CompletionCheckResult as h, type ConversationStep as i, type ConversationTurn as j, type CostBreakdown as k, type CostSource as l, type CostStatus as m, type GenerateRunResult as n, type InputProcessorContext as o, type InteractionUpdate as p, type McpAuthConfig as q, type McpHttpServerConfig as r, type McpOAuthConfig as s, type McpStdioServerConfig as t, type MessageOrigin as u, type ModelParameterValue as v, type PartialToolCallUpdate as w, type PermissionAction as x, type PermissionEngineOptions as y, type PermissionRule as z };
@@ -4,18 +4,18 @@
4
4
  *
5
5
  * HONEST SCOPE: filesystem confinement + network isolation via bwrap, PLUS the second stage —
6
6
  * a cBPF seccomp syscall filter (`agents/sandbox/seccomp.ts`), wired in `agents/sandbox/backend.ts`
7
- * via `restrictedSeccompPath()`. Portado no M63; este bloco afirmava o contrário até o M67 e
8
- * SUBDECLARAVA a postura de segurança real. Limite honesto que permanece: o filtro é **x86_64**
9
- * (guarda de arquitetura recusa instalar em outra arch, com WARN, e o confinamento de FS/rede do
10
- * bwrap segue valendo) **e** é instalado quando a rede está restrita (`backend.ts:87`, fiel a
11
- * `landlock.rs:96-117`): com rede ligada não filtro de syscall, apenas o confinamento de FS do
12
- * bwrap. `danger-full-access` pula o bwrap por completo, espelhando `bwrap.rs:245-252`.
13
- * Deltas versus o Codex seguem documentados em docs/CODEX-PARITY.md.
7
+ * via `restrictedSeccompPath()`. Ported in M63; this block claimed the opposite until M67 and
8
+ * UNDER-DECLARED the real security posture. The honest limit that remains: the filter is **x86_64**
9
+ * (an architecture guard refuses to install it on any other arch, with a WARN, and bwrap's FS/network
10
+ * confinement still applies) **and** it is only installed when the network is restricted
11
+ * (`backend.ts:87`, faithful to `landlock.rs:96-117`): with the network on there is no syscall
12
+ * filter, only bwrap's FS confinement. `danger-full-access` skips bwrap entirely, mirroring
13
+ * `bwrap.rs:245-252`. Deltas versus Codex remain documented in docs/CODEX-PARITY.md.
14
14
  */
15
15
  /**
16
- * Os tres modos canonicos do Codex. Definidos AQUI porque sao vocabulario do sandbox, nao da
17
- * configuracao do consumidor: `danger-full-access` significa "nao embrulhe", e essa e uma decisao do
18
- * subsistema de confinamento.
16
+ * Codex's three canonical modes. Defined HERE because they are sandbox vocabulary, not consumer
17
+ * configuration: `danger-full-access` means "do not wrap", and that is a decision belonging to the
18
+ * confinement subsystem.
19
19
  */
20
20
  export type SandboxMode = "read-only" | "workspace-write" | "danger-full-access";
21
21
  export interface BwrapArgvOptions {
@@ -55,21 +55,21 @@ export type BwrapDetection = {
55
55
  };
56
56
  /** Honest detection — fail-closed on every probe; NEVER throws (callers WARN + fall back). */
57
57
  export declare function detectBwrap(probes?: BwrapProbes): BwrapDetection;
58
- /** Quantas sondagens reais rodaram. Seam de TESTE o gate de performance conta isto. */
58
+ /** How many real probes ran. TEST seamthe performance gate counts this. */
59
59
  export declare function realProbeCount(): number;
60
60
  /** Real probes used in production. */
61
61
  export declare const realProbes: BwrapProbes;
62
62
  /**
63
- * `detectBwrap` com memoizaçãoo que a produção deve chamar.
63
+ * `detectBwrap` with memoizationwhat production should call.
64
64
  *
65
- * Note que `detectBwrap` em si **não** memoiza, de propósito: ele aceita probes injetados, e memoizar
66
- * ali faria um teste com probes falsos envenenar o cache do processo para todos os outros.
65
+ * Note that `detectBwrap` itself does **not** memoize, on purpose: it accepts injected probes, and
66
+ * memoizing there would let a test with fake probes poison the process cache for everyone else.
67
67
  *
68
- * A revalidação do positivo NÃO é uma re-sondagem: `detectBwrap` gasta três probes (subprocesso
69
- * `which` + `--help` + namespace de usuário). Aqui se confirma que o binário validado continua no
70
- * lugar. Se sumiu, o memo é rebaixado a negativo com o motivo ditonunca promovido a positivo, que
71
- * exigiria a sondagem cara de volta.
68
+ * Revalidating the positive is NOT a re-probe: `detectBwrap` spends three probes (a `which`
69
+ * subprocess + `--help` + a user namespace). Here we only confirm the validated binary is still in
70
+ * place. If it vanished, the memo is downgraded to a negative with the reason statednever
71
+ * promoted to a positive, which would require the expensive probe back.
72
72
  */
73
- export declare function detectBwrapMemoizado(probes?: BwrapProbes): BwrapDetection;
74
- /** Seam de TESTE limpa o memo. Produção nunca chama (ver m71-custo-por-turn#ADR-1). */
73
+ export declare function detectBwrapMemoized(probes?: BwrapProbes): BwrapDetection;
74
+ /** TEST seamclears the memo. Production never calls it (see m71-custo-por-turn#ADR-1). */
75
75
  export declare function resetBwrapMemo(): void;
@@ -4,18 +4,18 @@
4
4
  *
5
5
  * HONEST SCOPE: filesystem confinement + network isolation via bwrap, PLUS the second stage —
6
6
  * a cBPF seccomp syscall filter (`agents/sandbox/seccomp.ts`), wired in `agents/sandbox/backend.ts`
7
- * via `restrictedSeccompPath()`. Portado no M63; este bloco afirmava o contrário até o M67 e
8
- * SUBDECLARAVA a postura de segurança real. Limite honesto que permanece: o filtro é **x86_64**
9
- * (guarda de arquitetura recusa instalar em outra arch, com WARN, e o confinamento de FS/rede do
10
- * bwrap segue valendo) **e** é instalado quando a rede está restrita (`backend.ts:87`, fiel a
11
- * `landlock.rs:96-117`): com rede ligada não filtro de syscall, apenas o confinamento de FS do
12
- * bwrap. `danger-full-access` pula o bwrap por completo, espelhando `bwrap.rs:245-252`.
13
- * Deltas versus o Codex seguem documentados em docs/CODEX-PARITY.md.
7
+ * via `restrictedSeccompPath()`. Ported in M63; this block claimed the opposite until M67 and
8
+ * UNDER-DECLARED the real security posture. The honest limit that remains: the filter is **x86_64**
9
+ * (an architecture guard refuses to install it on any other arch, with a WARN, and bwrap's FS/network
10
+ * confinement still applies) **and** it is only installed when the network is restricted
11
+ * (`backend.ts:87`, faithful to `landlock.rs:96-117`): with the network on there is no syscall
12
+ * filter, only bwrap's FS confinement. `danger-full-access` skips bwrap entirely, mirroring
13
+ * `bwrap.rs:245-252`. Deltas versus Codex remain documented in docs/CODEX-PARITY.md.
14
14
  */
15
15
  /**
16
- * Os tres modos canonicos do Codex. Definidos AQUI porque sao vocabulario do sandbox, nao da
17
- * configuracao do consumidor: `danger-full-access` significa "nao embrulhe", e essa e uma decisao do
18
- * subsistema de confinamento.
16
+ * Codex's three canonical modes. Defined HERE because they are sandbox vocabulary, not consumer
17
+ * configuration: `danger-full-access` means "do not wrap", and that is a decision belonging to the
18
+ * confinement subsystem.
19
19
  */
20
20
  export type SandboxMode = "read-only" | "workspace-write" | "danger-full-access";
21
21
  export interface BwrapArgvOptions {
@@ -55,21 +55,21 @@ export type BwrapDetection = {
55
55
  };
56
56
  /** Honest detection — fail-closed on every probe; NEVER throws (callers WARN + fall back). */
57
57
  export declare function detectBwrap(probes?: BwrapProbes): BwrapDetection;
58
- /** Quantas sondagens reais rodaram. Seam de TESTE o gate de performance conta isto. */
58
+ /** How many real probes ran. TEST seamthe performance gate counts this. */
59
59
  export declare function realProbeCount(): number;
60
60
  /** Real probes used in production. */
61
61
  export declare const realProbes: BwrapProbes;
62
62
  /**
63
- * `detectBwrap` com memoizaçãoo que a produção deve chamar.
63
+ * `detectBwrap` with memoizationwhat production should call.
64
64
  *
65
- * Note que `detectBwrap` em si **não** memoiza, de propósito: ele aceita probes injetados, e memoizar
66
- * ali faria um teste com probes falsos envenenar o cache do processo para todos os outros.
65
+ * Note that `detectBwrap` itself does **not** memoize, on purpose: it accepts injected probes, and
66
+ * memoizing there would let a test with fake probes poison the process cache for everyone else.
67
67
  *
68
- * A revalidação do positivo NÃO é uma re-sondagem: `detectBwrap` gasta três probes (subprocesso
69
- * `which` + `--help` + namespace de usuário). Aqui se confirma que o binário validado continua no
70
- * lugar. Se sumiu, o memo é rebaixado a negativo com o motivo ditonunca promovido a positivo, que
71
- * exigiria a sondagem cara de volta.
68
+ * Revalidating the positive is NOT a re-probe: `detectBwrap` spends three probes (a `which`
69
+ * subprocess + `--help` + a user namespace). Here we only confirm the validated binary is still in
70
+ * place. If it vanished, the memo is downgraded to a negative with the reason statednever
71
+ * promoted to a positive, which would require the expensive probe back.
72
72
  */
73
- export declare function detectBwrapMemoizado(probes?: BwrapProbes): BwrapDetection;
74
- /** Seam de TESTE limpa o memo. Produção nunca chama (ver m71-custo-por-turn#ADR-1). */
73
+ export declare function detectBwrapMemoized(probes?: BwrapProbes): BwrapDetection;
74
+ /** TEST seamclears the memo. Production never calls it (see m71-custo-por-turn#ADR-1). */
75
75
  export declare function resetBwrapMemo(): void;