@theokit/sdk 4.39.0 → 4.39.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 (284) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/agent-KGKKAGXY.js +46 -0
  3. package/dist/{agent-KKZYLY5D.js.map → agent-KGKKAGXY.js.map} +1 -1
  4. package/dist/agent-TOWHPM7B.cjs +55 -0
  5. package/dist/{agent-I3EZZR6S.cjs.map → agent-TOWHPM7B.cjs.map} +1 -1
  6. package/dist/agent-session-store-EGTTYSKS.js +6 -0
  7. package/dist/{agent-session-store-RHMHP5DG.js.map → agent-session-store-EGTTYSKS.js.map} +1 -1
  8. package/dist/agent-session-store-RHTLZ5OX.cjs +23 -0
  9. package/dist/{agent-session-store-N4TVKHBU.cjs.map → agent-session-store-RHTLZ5OX.cjs.map} +1 -1
  10. package/dist/auth/index.cjs +15 -15
  11. package/dist/auth/index.js +4 -4
  12. package/dist/{batch-X6JKGDPK.cjs → batch-FO2KZN7W.cjs} +26 -26
  13. package/dist/{batch-X6JKGDPK.cjs.map → batch-FO2KZN7W.cjs.map} +1 -1
  14. package/dist/{batch-6KQM3EBA.js → batch-WX2HLXX2.js} +9 -9
  15. package/dist/{batch-6KQM3EBA.js.map → batch-WX2HLXX2.js.map} +1 -1
  16. package/dist/{chunk-ECHGWE47.cjs → chunk-27E4EMR6.cjs} +4 -4
  17. package/dist/{chunk-ECHGWE47.cjs.map → chunk-27E4EMR6.cjs.map} +1 -1
  18. package/dist/{chunk-DGLLVCNB.cjs → chunk-33B2BSME.cjs} +4 -4
  19. package/dist/{chunk-DGLLVCNB.cjs.map → chunk-33B2BSME.cjs.map} +1 -1
  20. package/dist/{chunk-KE6XKRLQ.js → chunk-3CAQCFVZ.js} +3 -3
  21. package/dist/{chunk-KE6XKRLQ.js.map → chunk-3CAQCFVZ.js.map} +1 -1
  22. package/dist/{chunk-XYOHKCYG.cjs → chunk-3LK3ZDL5.cjs} +5 -5
  23. package/dist/{chunk-XYOHKCYG.cjs.map → chunk-3LK3ZDL5.cjs.map} +1 -1
  24. package/dist/{chunk-I53ZQHU6.cjs → chunk-4E3HLSYE.cjs} +4 -4
  25. package/dist/{chunk-I53ZQHU6.cjs.map → chunk-4E3HLSYE.cjs.map} +1 -1
  26. package/dist/{chunk-AR5MQZ3J.js → chunk-4GGXF7YM.js} +3 -3
  27. package/dist/{chunk-AR5MQZ3J.js.map → chunk-4GGXF7YM.js.map} +1 -1
  28. package/dist/{chunk-4JSZYSGW.js → chunk-4H2DCO6P.js} +3 -3
  29. package/dist/{chunk-4JSZYSGW.js.map → chunk-4H2DCO6P.js.map} +1 -1
  30. package/dist/{chunk-75DSEWTJ.cjs → chunk-4H2QARXM.cjs} +7 -7
  31. package/dist/{chunk-75DSEWTJ.cjs.map → chunk-4H2QARXM.cjs.map} +1 -1
  32. package/dist/{chunk-JZUPMTJY.js → chunk-4HKAZRTC.js} +3 -3
  33. package/dist/{chunk-JZUPMTJY.js.map → chunk-4HKAZRTC.js.map} +1 -1
  34. package/dist/{chunk-CEIHCKTO.cjs → chunk-5COPO3H4.cjs} +4 -4
  35. package/dist/{chunk-CEIHCKTO.cjs.map → chunk-5COPO3H4.cjs.map} +1 -1
  36. package/dist/{chunk-KX7JV5KM.js → chunk-5XPKYDK7.js} +3 -3
  37. package/dist/{chunk-KX7JV5KM.js.map → chunk-5XPKYDK7.js.map} +1 -1
  38. package/dist/{chunk-E2FFG33C.js → chunk-7HP6N5X3.js} +5 -5
  39. package/dist/{chunk-E2FFG33C.js.map → chunk-7HP6N5X3.js.map} +1 -1
  40. package/dist/{chunk-3I4B3OIX.js → chunk-7PBAJ2WA.js} +3 -3
  41. package/dist/{chunk-3I4B3OIX.js.map → chunk-7PBAJ2WA.js.map} +1 -1
  42. package/dist/{chunk-KGRIHEDT.js → chunk-7WXT5M6P.js} +5 -5
  43. package/dist/{chunk-KGRIHEDT.js.map → chunk-7WXT5M6P.js.map} +1 -1
  44. package/dist/{chunk-BCQ3E2ZG.cjs → chunk-A76OFN2B.cjs} +8 -4
  45. package/dist/chunk-A76OFN2B.cjs.map +1 -0
  46. package/dist/{chunk-TOTP24P6.js → chunk-AFJAQ5JV.js} +4 -4
  47. package/dist/{chunk-TOTP24P6.js.map → chunk-AFJAQ5JV.js.map} +1 -1
  48. package/dist/{chunk-DKFGUOWL.js → chunk-AKMPQJPX.js} +3 -3
  49. package/dist/{chunk-DKFGUOWL.js.map → chunk-AKMPQJPX.js.map} +1 -1
  50. package/dist/{chunk-HIQFVHC6.cjs → chunk-ALDFVGQQ.cjs} +9 -9
  51. package/dist/{chunk-HIQFVHC6.cjs.map → chunk-ALDFVGQQ.cjs.map} +1 -1
  52. package/dist/{chunk-INSFS5GT.cjs → chunk-AYDSWY35.cjs} +293 -293
  53. package/dist/{chunk-INSFS5GT.cjs.map → chunk-AYDSWY35.cjs.map} +1 -1
  54. package/dist/{chunk-YRXY2A5L.js → chunk-BBMN4O6E.js} +4 -4
  55. package/dist/{chunk-YRXY2A5L.js.map → chunk-BBMN4O6E.js.map} +1 -1
  56. package/dist/{chunk-6EEYRFJC.js → chunk-BM7VYZED.js} +5 -5
  57. package/dist/{chunk-6EEYRFJC.js.map → chunk-BM7VYZED.js.map} +1 -1
  58. package/dist/{chunk-ML5A5DOJ.js → chunk-C64E2EJS.js} +4 -4
  59. package/dist/{chunk-ML5A5DOJ.js.map → chunk-C64E2EJS.js.map} +1 -1
  60. package/dist/{chunk-E4IUN3JB.cjs → chunk-CJHBSSAF.cjs} +15 -15
  61. package/dist/{chunk-E4IUN3JB.cjs.map → chunk-CJHBSSAF.cjs.map} +1 -1
  62. package/dist/{chunk-IHFNRNTJ.cjs → chunk-E7WWIX34.cjs} +8 -8
  63. package/dist/{chunk-IHFNRNTJ.cjs.map → chunk-E7WWIX34.cjs.map} +1 -1
  64. package/dist/{chunk-C7OP3FAK.cjs → chunk-EJNFZET4.cjs} +11 -11
  65. package/dist/{chunk-C7OP3FAK.cjs.map → chunk-EJNFZET4.cjs.map} +1 -1
  66. package/dist/{chunk-ECW2MLEW.cjs → chunk-ELYGL52R.cjs} +4 -4
  67. package/dist/{chunk-ECW2MLEW.cjs.map → chunk-ELYGL52R.cjs.map} +1 -1
  68. package/dist/{chunk-GIRD3RWH.js → chunk-ERBH54V3.js} +35 -35
  69. package/dist/{chunk-GIRD3RWH.js.map → chunk-ERBH54V3.js.map} +1 -1
  70. package/dist/{chunk-JRLXEYR4.js → chunk-EYUZZXHZ.js} +4 -4
  71. package/dist/{chunk-JRLXEYR4.js.map → chunk-EYUZZXHZ.js.map} +1 -1
  72. package/dist/{chunk-PI4RO4GR.js → chunk-F4SQTWVR.js} +3 -3
  73. package/dist/{chunk-PI4RO4GR.js.map → chunk-F4SQTWVR.js.map} +1 -1
  74. package/dist/{chunk-LALG2K33.cjs → chunk-FMDZZRYE.cjs} +8 -8
  75. package/dist/{chunk-LALG2K33.cjs.map → chunk-FMDZZRYE.cjs.map} +1 -1
  76. package/dist/{chunk-SCFW5MJZ.js → chunk-FUP3ZA5T.js} +4 -4
  77. package/dist/{chunk-SCFW5MJZ.js.map → chunk-FUP3ZA5T.js.map} +1 -1
  78. package/dist/{chunk-DWY25VLP.cjs → chunk-H2V6CXM7.cjs} +9 -9
  79. package/dist/{chunk-DWY25VLP.cjs.map → chunk-H2V6CXM7.cjs.map} +1 -1
  80. package/dist/{chunk-DU7DE543.js → chunk-HCRCNI7A.js} +3 -3
  81. package/dist/{chunk-DU7DE543.js.map → chunk-HCRCNI7A.js.map} +1 -1
  82. package/dist/{chunk-QKE556YD.js → chunk-HJMFPIRM.js} +5 -5
  83. package/dist/{chunk-QKE556YD.js.map → chunk-HJMFPIRM.js.map} +1 -1
  84. package/dist/{chunk-J3UK2GMN.js → chunk-IEKSEAIV.js} +3 -3
  85. package/dist/{chunk-J3UK2GMN.js.map → chunk-IEKSEAIV.js.map} +1 -1
  86. package/dist/{chunk-DMTZ3FII.cjs → chunk-JERO4TP6.cjs} +5 -5
  87. package/dist/{chunk-DMTZ3FII.cjs.map → chunk-JERO4TP6.cjs.map} +1 -1
  88. package/dist/{chunk-6LGQECT7.cjs → chunk-K6TWHNT4.cjs} +11 -11
  89. package/dist/{chunk-6LGQECT7.cjs.map → chunk-K6TWHNT4.cjs.map} +1 -1
  90. package/dist/{chunk-4F7JQZOX.js → chunk-KRPEPZQY.js} +7 -7
  91. package/dist/{chunk-4F7JQZOX.js.map → chunk-KRPEPZQY.js.map} +1 -1
  92. package/dist/{chunk-CN6UX5EV.cjs → chunk-LNTQRD23.cjs} +26 -26
  93. package/dist/{chunk-CN6UX5EV.cjs.map → chunk-LNTQRD23.cjs.map} +1 -1
  94. package/dist/{chunk-W4WKVOOQ.cjs → chunk-LOTWA65Z.cjs} +11 -11
  95. package/dist/{chunk-W4WKVOOQ.cjs.map → chunk-LOTWA65Z.cjs.map} +1 -1
  96. package/dist/{chunk-BPN5ONSW.cjs → chunk-LR3VKB7A.cjs} +124 -120
  97. package/dist/chunk-LR3VKB7A.cjs.map +1 -0
  98. package/dist/{chunk-ET6PHZRX.js → chunk-LWVKI75U.js} +3 -3
  99. package/dist/{chunk-ET6PHZRX.js.map → chunk-LWVKI75U.js.map} +1 -1
  100. package/dist/{chunk-G2Q3ZC6C.cjs → chunk-LY4KEOOY.cjs} +4 -4
  101. package/dist/{chunk-G2Q3ZC6C.cjs.map → chunk-LY4KEOOY.cjs.map} +1 -1
  102. package/dist/{chunk-42IFCKQZ.js → chunk-LYD3ALDT.js} +5 -5
  103. package/dist/{chunk-42IFCKQZ.js.map → chunk-LYD3ALDT.js.map} +1 -1
  104. package/dist/{chunk-KWUNN5J2.js → chunk-MDN44YMZ.js} +5 -5
  105. package/dist/{chunk-KWUNN5J2.js.map → chunk-MDN44YMZ.js.map} +1 -1
  106. package/dist/{chunk-HWNVAUK4.js → chunk-MI3OKONE.js} +3 -3
  107. package/dist/{chunk-HWNVAUK4.js.map → chunk-MI3OKONE.js.map} +1 -1
  108. package/dist/{chunk-VJYSQXN6.cjs → chunk-MM2JKFQV.cjs} +10 -10
  109. package/dist/{chunk-VJYSQXN6.cjs.map → chunk-MM2JKFQV.cjs.map} +1 -1
  110. package/dist/{chunk-74D7KSBP.cjs → chunk-MWVLE5RY.cjs} +11 -11
  111. package/dist/{chunk-74D7KSBP.cjs.map → chunk-MWVLE5RY.cjs.map} +1 -1
  112. package/dist/{chunk-V2RBCCN5.js → chunk-NHXPQN44.js} +3 -3
  113. package/dist/{chunk-V2RBCCN5.js.map → chunk-NHXPQN44.js.map} +1 -1
  114. package/dist/{chunk-Z2CUEBXV.cjs → chunk-NJVV5OAV.cjs} +8 -8
  115. package/dist/{chunk-Z2CUEBXV.cjs.map → chunk-NJVV5OAV.cjs.map} +1 -1
  116. package/dist/{chunk-J6T5LWJ4.cjs → chunk-OVGNXGCK.cjs} +9 -9
  117. package/dist/{chunk-J6T5LWJ4.cjs.map → chunk-OVGNXGCK.cjs.map} +1 -1
  118. package/dist/{chunk-TIMPJL5V.cjs → chunk-PDOLUFGY.cjs} +4 -4
  119. package/dist/{chunk-TIMPJL5V.cjs.map → chunk-PDOLUFGY.cjs.map} +1 -1
  120. package/dist/{chunk-FWBSDQZ7.cjs → chunk-PIBXDEZM.cjs} +5 -5
  121. package/dist/{chunk-FWBSDQZ7.cjs.map → chunk-PIBXDEZM.cjs.map} +1 -1
  122. package/dist/{chunk-USZTVNUQ.cjs → chunk-PY7G7YWK.cjs} +5 -5
  123. package/dist/{chunk-USZTVNUQ.cjs.map → chunk-PY7G7YWK.cjs.map} +1 -1
  124. package/dist/{chunk-N475ETD6.cjs → chunk-QMIG7TKG.cjs} +17 -17
  125. package/dist/{chunk-N475ETD6.cjs.map → chunk-QMIG7TKG.cjs.map} +1 -1
  126. package/dist/{chunk-D7IULBF2.js → chunk-RA2UZBYP.js} +3 -3
  127. package/dist/{chunk-D7IULBF2.js.map → chunk-RA2UZBYP.js.map} +1 -1
  128. package/dist/{chunk-7OLG7VI4.cjs → chunk-RHQJX3EI.cjs} +4 -4
  129. package/dist/{chunk-7OLG7VI4.cjs.map → chunk-RHQJX3EI.cjs.map} +1 -1
  130. package/dist/{chunk-YP67XZES.js → chunk-RMCHJZNZ.js} +4 -4
  131. package/dist/{chunk-YP67XZES.js.map → chunk-RMCHJZNZ.js.map} +1 -1
  132. package/dist/{chunk-ZYB6B7QJ.js → chunk-RMO7HAIF.js} +13 -9
  133. package/dist/chunk-RMO7HAIF.js.map +1 -0
  134. package/dist/{chunk-IVSD7L22.js → chunk-RNCN2TTP.js} +8 -4
  135. package/dist/chunk-RNCN2TTP.js.map +1 -0
  136. package/dist/{chunk-BQDUEG4C.js → chunk-RTDT2UMT.js} +3 -3
  137. package/dist/{chunk-BQDUEG4C.js.map → chunk-RTDT2UMT.js.map} +1 -1
  138. package/dist/{chunk-FRUBE44B.cjs → chunk-TZ47DTM2.cjs} +24 -24
  139. package/dist/{chunk-FRUBE44B.cjs.map → chunk-TZ47DTM2.cjs.map} +1 -1
  140. package/dist/{chunk-6YNYA7GD.cjs → chunk-U53AYSHS.cjs} +11 -11
  141. package/dist/{chunk-6YNYA7GD.cjs.map → chunk-U53AYSHS.cjs.map} +1 -1
  142. package/dist/{chunk-G4XUXSRN.cjs → chunk-UDSGSPUY.cjs} +12 -12
  143. package/dist/{chunk-G4XUXSRN.cjs.map → chunk-UDSGSPUY.cjs.map} +1 -1
  144. package/dist/{chunk-LJX2SQV2.js → chunk-UIPTINIF.js} +6 -6
  145. package/dist/{chunk-LJX2SQV2.js.map → chunk-UIPTINIF.js.map} +1 -1
  146. package/dist/{chunk-6NEHIHFU.cjs → chunk-V7CA3CX5.cjs} +4 -4
  147. package/dist/{chunk-6NEHIHFU.cjs.map → chunk-V7CA3CX5.cjs.map} +1 -1
  148. package/dist/{chunk-SG5ZWT6C.js → chunk-VQ33XLC6.js} +3 -3
  149. package/dist/{chunk-SG5ZWT6C.js.map → chunk-VQ33XLC6.js.map} +1 -1
  150. package/dist/{chunk-AECV3G5Z.js → chunk-VTDQRUAJ.js} +4 -4
  151. package/dist/{chunk-AECV3G5Z.js.map → chunk-VTDQRUAJ.js.map} +1 -1
  152. package/dist/{chunk-MC5EINBV.js → chunk-WJOLIPEM.js} +8 -8
  153. package/dist/{chunk-MC5EINBV.js.map → chunk-WJOLIPEM.js.map} +1 -1
  154. package/dist/{chunk-7U2HAAWB.cjs → chunk-X2LDDKFM.cjs} +10 -10
  155. package/dist/{chunk-7U2HAAWB.cjs.map → chunk-X2LDDKFM.cjs.map} +1 -1
  156. package/dist/{chunk-LGILIGV3.js → chunk-XKGOIGTJ.js} +3 -3
  157. package/dist/{chunk-LGILIGV3.js.map → chunk-XKGOIGTJ.js.map} +1 -1
  158. package/dist/{chunk-65ONFZWM.js → chunk-XZ7PO2FM.js} +4 -4
  159. package/dist/{chunk-65ONFZWM.js.map → chunk-XZ7PO2FM.js.map} +1 -1
  160. package/dist/{chunk-DCXRHCZJ.cjs → chunk-Z5DYGBPV.cjs} +8 -8
  161. package/dist/{chunk-DCXRHCZJ.cjs.map → chunk-Z5DYGBPV.cjs.map} +1 -1
  162. package/dist/{chunk-7YBJZS5P.cjs → chunk-ZAKTZ5B4.cjs} +8 -8
  163. package/dist/{chunk-7YBJZS5P.cjs.map → chunk-ZAKTZ5B4.cjs.map} +1 -1
  164. package/dist/compact-session-FCEFK2CG.cjs +55 -0
  165. package/dist/{compact-session-VVT6IBJG.cjs.map → compact-session-FCEFK2CG.cjs.map} +1 -1
  166. package/dist/compact-session-KPYRNTQN.js +18 -0
  167. package/dist/{compact-session-PYEC3NZV.js.map → compact-session-KPYRNTQN.js.map} +1 -1
  168. package/dist/compaction.cjs +16 -16
  169. package/dist/compaction.js +3 -3
  170. package/dist/concurrency.cjs +6 -6
  171. package/dist/concurrency.js +4 -4
  172. package/dist/context-DNFT4B5D.cjs +22 -0
  173. package/dist/{context-2FZSC6VQ.cjs.map → context-DNFT4B5D.cjs.map} +1 -1
  174. package/dist/context-LYE6TJL5.js +5 -0
  175. package/dist/{context-ATJJAFOS.js.map → context-LYE6TJL5.js.map} +1 -1
  176. package/dist/cron.cjs +31 -31
  177. package/dist/cron.js +30 -30
  178. package/dist/errors.cjs +21 -21
  179. package/dist/errors.js +2 -2
  180. package/dist/eval.cjs +36 -36
  181. package/dist/eval.js +30 -30
  182. package/dist/{executor-T65PPOPT.js → executor-PCRX3533.js} +7 -7
  183. package/dist/{executor-T65PPOPT.js.map → executor-PCRX3533.js.map} +1 -1
  184. package/dist/{executor-BMRICN46.cjs → executor-TQ3FSZ7F.cjs} +24 -24
  185. package/dist/{executor-BMRICN46.cjs.map → executor-TQ3FSZ7F.cjs.map} +1 -1
  186. package/dist/filesystem/index.cjs +7 -7
  187. package/dist/filesystem/index.js +3 -3
  188. package/dist/fs-session-store-V32XJ63Z.cjs +19 -0
  189. package/dist/{fs-session-store-J5MCFFUM.cjs.map → fs-session-store-V32XJ63Z.cjs.map} +1 -1
  190. package/dist/fs-session-store-YPZIOLJM.js +10 -0
  191. package/dist/{fs-session-store-O6FNHECD.js.map → fs-session-store-YPZIOLJM.js.map} +1 -1
  192. package/dist/generate-object-DLHT5RXH.js +7 -0
  193. package/dist/{generate-object-XDCBYVK3.js.map → generate-object-DLHT5RXH.js.map} +1 -1
  194. package/dist/generate-object-QILSGTEJ.cjs +20 -0
  195. package/dist/{generate-object-UF6WIZLF.cjs.map → generate-object-QILSGTEJ.cjs.map} +1 -1
  196. package/dist/index-manager-LEMQ73A7.cjs +20 -0
  197. package/dist/{index-manager-N7RQYUKT.cjs.map → index-manager-LEMQ73A7.cjs.map} +1 -1
  198. package/dist/index-manager-SXF3FAQV.js +11 -0
  199. package/dist/{index-manager-ZVZUHPP7.js.map → index-manager-SXF3FAQV.js.map} +1 -1
  200. package/dist/index.cjs +129 -129
  201. package/dist/index.js +43 -43
  202. package/dist/{inject-session-LFCYVSLJ.cjs → inject-session-BIVVFWGL.cjs} +9 -9
  203. package/dist/{inject-session-LFCYVSLJ.cjs.map → inject-session-BIVVFWGL.cjs.map} +1 -1
  204. package/dist/{inject-session-GQMTDZUN.js → inject-session-OLWZ2NJN.js} +7 -7
  205. package/dist/{inject-session-GQMTDZUN.js.map → inject-session-OLWZ2NJN.js.map} +1 -1
  206. package/dist/internal/memory/adapters/index.cjs +8 -8
  207. package/dist/internal/memory/adapters/index.js +7 -7
  208. package/dist/internal/persistence/index.cjs +25 -25
  209. package/dist/internal/persistence/index.js +6 -6
  210. package/dist/internal/security/index.cjs +13 -13
  211. package/dist/internal/security/index.js +3 -3
  212. package/dist/judge-call-AIT3EULV.cjs +22 -0
  213. package/dist/{judge-call-U2D33JOW.cjs.map → judge-call-AIT3EULV.cjs.map} +1 -1
  214. package/dist/judge-call-NPRU7JIQ.js +5 -0
  215. package/dist/{judge-call-NA2G6ZMJ.js.map → judge-call-NPRU7JIQ.js.map} +1 -1
  216. package/dist/models.cjs +20 -20
  217. package/dist/models.js +5 -5
  218. package/dist/path-safety.cjs +10 -10
  219. package/dist/path-safety.js +3 -3
  220. package/dist/persistence.cjs +26 -26
  221. package/dist/persistence.js +7 -7
  222. package/dist/project.cjs +5 -5
  223. package/dist/project.js +3 -3
  224. package/dist/registry-AXQXPLFH.js +9 -0
  225. package/dist/{registry-CAS6Y5ZY.js.map → registry-AXQXPLFH.js.map} +1 -1
  226. package/dist/registry-VKDFTK6L.cjs +46 -0
  227. package/dist/{registry-JSDI4WKA.cjs.map → registry-VKDFTK6L.cjs.map} +1 -1
  228. package/dist/retry.cjs +4 -4
  229. package/dist/retry.js +3 -3
  230. package/dist/sandbox/index.cjs +6 -6
  231. package/dist/sandbox/index.js +2 -2
  232. package/dist/server/errors-envelope.cjs +14 -14
  233. package/dist/server/errors-envelope.js +3 -3
  234. package/dist/session-transcript-SLQRKQ72.cjs +50 -0
  235. package/dist/{session-transcript-H7NUFXXM.cjs.map → session-transcript-SLQRKQ72.cjs.map} +1 -1
  236. package/dist/session-transcript-X3UMSVL2.js +5 -0
  237. package/dist/{session-transcript-3B52DKTG.js.map → session-transcript-X3UMSVL2.js.map} +1 -1
  238. package/dist/skills.cjs +7 -7
  239. package/dist/skills.js +5 -5
  240. package/dist/stream-object-3HEUGMQY.cjs +20 -0
  241. package/dist/{stream-object-4FDU76YW.cjs.map → stream-object-3HEUGMQY.cjs.map} +1 -1
  242. package/dist/stream-object-VWYW7FJ2.js +7 -0
  243. package/dist/{stream-object-HWDEEQN4.js.map → stream-object-VWYW7FJ2.js.map} +1 -1
  244. package/dist/subagents-loader-F52ARQ62.cjs +15 -0
  245. package/dist/{subagents-loader-A4W6C3QP.cjs.map → subagents-loader-F52ARQ62.cjs.map} +1 -1
  246. package/dist/subagents-loader-QUIK6GMV.js +6 -0
  247. package/dist/{subagents-loader-X33KH2SZ.js.map → subagents-loader-QUIK6GMV.js.map} +1 -1
  248. package/dist/subagents-loader.cjs +6 -6
  249. package/dist/subagents-loader.js +4 -4
  250. package/dist/subscription/index.cjs +3 -3
  251. package/dist/subscription/index.js +2 -2
  252. package/dist/task-store.cjs +7 -7
  253. package/dist/task-store.js +4 -4
  254. package/dist/workflow.cjs +27 -27
  255. package/dist/workflow.js +6 -6
  256. package/package.json +1 -1
  257. package/dist/agent-I3EZZR6S.cjs +0 -55
  258. package/dist/agent-KKZYLY5D.js +0 -46
  259. package/dist/agent-session-store-N4TVKHBU.cjs +0 -23
  260. package/dist/agent-session-store-RHMHP5DG.js +0 -6
  261. package/dist/chunk-BCQ3E2ZG.cjs.map +0 -1
  262. package/dist/chunk-BPN5ONSW.cjs.map +0 -1
  263. package/dist/chunk-IVSD7L22.js.map +0 -1
  264. package/dist/chunk-ZYB6B7QJ.js.map +0 -1
  265. package/dist/compact-session-PYEC3NZV.js +0 -18
  266. package/dist/compact-session-VVT6IBJG.cjs +0 -55
  267. package/dist/context-2FZSC6VQ.cjs +0 -22
  268. package/dist/context-ATJJAFOS.js +0 -5
  269. package/dist/fs-session-store-J5MCFFUM.cjs +0 -19
  270. package/dist/fs-session-store-O6FNHECD.js +0 -10
  271. package/dist/generate-object-UF6WIZLF.cjs +0 -20
  272. package/dist/generate-object-XDCBYVK3.js +0 -7
  273. package/dist/index-manager-N7RQYUKT.cjs +0 -20
  274. package/dist/index-manager-ZVZUHPP7.js +0 -11
  275. package/dist/judge-call-NA2G6ZMJ.js +0 -5
  276. package/dist/judge-call-U2D33JOW.cjs +0 -22
  277. package/dist/registry-CAS6Y5ZY.js +0 -9
  278. package/dist/registry-JSDI4WKA.cjs +0 -46
  279. package/dist/session-transcript-3B52DKTG.js +0 -5
  280. package/dist/session-transcript-H7NUFXXM.cjs +0 -50
  281. package/dist/stream-object-4FDU76YW.cjs +0 -20
  282. package/dist/stream-object-HWDEEQN4.js +0 -7
  283. package/dist/subagents-loader-A4W6C3QP.cjs +0 -15
  284. package/dist/subagents-loader-X33KH2SZ.js +0 -6
package/dist/models.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkUSZTVNUQ_cjs = require('./chunk-USZTVNUQ.cjs');
3
+ var chunkPY7G7YWK_cjs = require('./chunk-PY7G7YWK.cjs');
4
4
  var chunkVYHJZVL5_cjs = require('./chunk-VYHJZVL5.cjs');
5
- var chunkG4XUXSRN_cjs = require('./chunk-G4XUXSRN.cjs');
6
- require('./chunk-6NEHIHFU.cjs');
5
+ var chunkUDSGSPUY_cjs = require('./chunk-UDSGSPUY.cjs');
6
+ require('./chunk-V7CA3CX5.cjs');
7
7
  require('./chunk-C6Y6CWYD.cjs');
8
- require('./chunk-IHFNRNTJ.cjs');
9
- var chunkBCQ3E2ZG_cjs = require('./chunk-BCQ3E2ZG.cjs');
8
+ require('./chunk-E7WWIX34.cjs');
9
+ var chunkA76OFN2B_cjs = require('./chunk-A76OFN2B.cjs');
10
10
  var crypto = require('crypto');
11
11
  var fs = require('fs');
12
12
  var os = require('os');
@@ -34,11 +34,11 @@ function capsFromCatalog(m) {
34
34
  }
35
35
  function resolveModelCapabilities(modelId) {
36
36
  const bare = stripVariantSuffix(stripRoutingPrefix(modelId));
37
- const fromIndex = chunkG4XUXSRN_cjs.getCatalogModelInfo(bare);
37
+ const fromIndex = chunkUDSGSPUY_cjs.getCatalogModelInfo(bare);
38
38
  if (fromIndex !== void 0) return capsFromCatalog(fromIndex);
39
39
  const withVendor = inferVendorPrefix(bare);
40
40
  if (withVendor !== bare) {
41
- const vendored = chunkG4XUXSRN_cjs.getCatalogModelInfo(withVendor);
41
+ const vendored = chunkUDSGSPUY_cjs.getCatalogModelInfo(withVendor);
42
42
  if (vendored !== void 0) return capsFromCatalog(vendored);
43
43
  }
44
44
  return CONSERVATIVE_DEFAULTS;
@@ -123,7 +123,7 @@ function catalogTargets() {
123
123
  if (_catalogTargets !== void 0) return _catalogTargets;
124
124
  _catalogTargets = /* @__PURE__ */ new Map();
125
125
  try {
126
- for (const entry of Object.values(chunkG4XUXSRN_cjs.loadProviderCatalog())) {
126
+ for (const entry of Object.values(chunkUDSGSPUY_cjs.loadProviderCatalog())) {
127
127
  const keys = [entry.id, ...entry.aliases ?? []];
128
128
  for (const k of keys) {
129
129
  if (!_catalogTargets.has(k)) _catalogTargets.set(k, { keys });
@@ -137,7 +137,7 @@ function resolvePatchKeys(externalId) {
137
137
  const mapped = MODELS_DEV_ID_MAP[externalId] ?? externalId;
138
138
  const fromCatalog = catalogTargets().get(mapped);
139
139
  if (fromCatalog !== void 0) return fromCatalog.keys;
140
- const profile = chunkG4XUXSRN_cjs.getProviderProfile(mapped);
140
+ const profile = chunkUDSGSPUY_cjs.getProviderProfile(mapped);
141
141
  if (profile !== void 0) return [profile.name, ...profile.aliases ?? []];
142
142
  return void 0;
143
143
  }
@@ -154,14 +154,14 @@ function patchIndexFromApiJson(raw) {
154
154
  continue;
155
155
  }
156
156
  for (const [modelId, rawModel] of Object.entries(models)) {
157
- const parsed = chunkG4XUXSRN_cjs.catalogModelSchema.safeParse(rawModel);
157
+ const parsed = chunkUDSGSPUY_cjs.catalogModelSchema.safeParse(rawModel);
158
158
  if (!parsed.success) continue;
159
- for (const key of keys) chunkG4XUXSRN_cjs.patchModelInfo(`${key}/${modelId}`, parsed.data);
159
+ for (const key of keys) chunkUDSGSPUY_cjs.patchModelInfo(`${key}/${modelId}`, parsed.data);
160
160
  patched++;
161
161
  }
162
162
  }
163
163
  if (skipped.length > 0) {
164
- chunkBCQ3E2ZG_cjs.diag(
164
+ chunkA76OFN2B_cjs.diag(
165
165
  `[theokit-sdk] WARN: models-dev refresh skipped ${skipped.length} unknown provider(s) (e.g. ${skipped.slice(0, 3).join(", ")})
166
166
  `
167
167
  );
@@ -184,20 +184,20 @@ function loadCacheIntoIndex(url = DEFAULT_URL) {
184
184
  fs.unlinkSync(path);
185
185
  } catch {
186
186
  }
187
- chunkBCQ3E2ZG_cjs.diag(`[theokit-sdk] WARN: corrupt models-dev cache deleted (${path})
187
+ chunkA76OFN2B_cjs.diag(`[theokit-sdk] WARN: corrupt models-dev cache deleted (${path})
188
188
  `);
189
189
  return 0;
190
190
  }
191
191
  try {
192
192
  return patchIndexFromApiJson(parsed);
193
193
  } catch (err) {
194
- chunkBCQ3E2ZG_cjs.diag(`[theokit-sdk] WARN: models-dev cache patch failed (${err.message})
194
+ chunkA76OFN2B_cjs.diag(`[theokit-sdk] WARN: models-dev cache patch failed (${err.message})
195
195
  `);
196
196
  return 0;
197
197
  }
198
198
  }
199
199
  async function refreshModelCatalog(opts = {}) {
200
- chunkG4XUXSRN_cjs.registerBuiltins();
200
+ chunkUDSGSPUY_cjs.registerBuiltins();
201
201
  const kill = process.env.THEOKIT_DISABLE_MODELS_FETCH;
202
202
  if (kill !== void 0 && kill !== "" && kill !== "0" && kill.toLowerCase() !== "false") {
203
203
  return { source: "skipped", models: 0 };
@@ -217,7 +217,7 @@ async function refreshModelCatalog(opts = {}) {
217
217
  const fetchImpl = opts.deps?.fetch ?? fetch;
218
218
  let body;
219
219
  try {
220
- const res = await chunkUSZTVNUQ_cjs.Retry.create(
220
+ const res = await chunkPY7G7YWK_cjs.Retry.create(
221
221
  async () => {
222
222
  const r = await fetchImpl(url, { signal: AbortSignal.timeout(FETCH_TIMEOUT_MS) });
223
223
  if (!r.ok) throw new Error(`HTTP ${r.status}`);
@@ -230,7 +230,7 @@ async function refreshModelCatalog(opts = {}) {
230
230
  body = await res.text();
231
231
  JSON.parse(body);
232
232
  } catch (err) {
233
- chunkBCQ3E2ZG_cjs.diag(
233
+ chunkA76OFN2B_cjs.diag(
234
234
  `[theokit-sdk] WARN: models-dev refresh failed (${err.message}) \u2014 serving existing data
235
235
  `
236
236
  );
@@ -239,13 +239,13 @@ async function refreshModelCatalog(opts = {}) {
239
239
  try {
240
240
  writeCacheAtomic(path, body);
241
241
  } catch (err) {
242
- chunkBCQ3E2ZG_cjs.diag(`[theokit-sdk] WARN: models-dev cache write failed (${err.message})
242
+ chunkA76OFN2B_cjs.diag(`[theokit-sdk] WARN: models-dev cache write failed (${err.message})
243
243
  `);
244
244
  }
245
245
  try {
246
246
  return { source: "network", models: patchIndexFromApiJson(JSON.parse(body)) };
247
247
  } catch (err) {
248
- chunkBCQ3E2ZG_cjs.diag(
248
+ chunkA76OFN2B_cjs.diag(
249
249
  `[theokit-sdk] WARN: models-dev patch failed (${err.message}) \u2014 serving existing data
250
250
  `
251
251
  );
@@ -253,7 +253,7 @@ async function refreshModelCatalog(opts = {}) {
253
253
  }
254
254
  }
255
255
  function getModelInfo(modelId) {
256
- return chunkG4XUXSRN_cjs.getCatalogModelInfo(modelId);
256
+ return chunkUDSGSPUY_cjs.getCatalogModelInfo(modelId);
257
257
  }
258
258
 
259
259
  Object.defineProperty(exports, "parseModelId", {
package/dist/models.js CHANGED
@@ -1,11 +1,11 @@
1
- import { Retry } from './chunk-4JSZYSGW.js';
1
+ import { Retry } from './chunk-4H2DCO6P.js';
2
2
  import { parseModelId } from './chunk-X2FR4OIT.js';
3
3
  export { parseModelId } from './chunk-X2FR4OIT.js';
4
- import { getCatalogModelInfo, registerBuiltins, catalogModelSchema, patchModelInfo, getProviderProfile, loadProviderCatalog } from './chunk-TOTP24P6.js';
5
- import './chunk-DKFGUOWL.js';
4
+ import { getCatalogModelInfo, registerBuiltins, catalogModelSchema, patchModelInfo, getProviderProfile, loadProviderCatalog } from './chunk-AFJAQ5JV.js';
5
+ import './chunk-AKMPQJPX.js';
6
6
  import './chunk-5NBUH3NO.js';
7
- import './chunk-SG5ZWT6C.js';
8
- import { diag } from './chunk-IVSD7L22.js';
7
+ import './chunk-VQ33XLC6.js';
8
+ import { diag } from './chunk-RNCN2TTP.js';
9
9
  import { createHash, randomBytes } from 'crypto';
10
10
  import { statSync, readFileSync, unlinkSync, mkdirSync, writeFileSync, renameSync } from 'fs';
11
11
  import { homedir } from 'os';
@@ -1,38 +1,38 @@
1
1
  'use strict';
2
2
 
3
- var chunk7YBJZS5P_cjs = require('./chunk-7YBJZS5P.cjs');
4
- require('./chunk-IHFNRNTJ.cjs');
5
- require('./chunk-BCQ3E2ZG.cjs');
3
+ var chunkZAKTZ5B4_cjs = require('./chunk-ZAKTZ5B4.cjs');
4
+ require('./chunk-E7WWIX34.cjs');
5
+ require('./chunk-A76OFN2B.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "ForbiddenPathError", {
10
10
  enumerable: true,
11
- get: function () { return chunk7YBJZS5P_cjs.ForbiddenPathError; }
11
+ get: function () { return chunkZAKTZ5B4_cjs.ForbiddenPathError; }
12
12
  });
13
13
  Object.defineProperty(exports, "PathTraversalError", {
14
14
  enumerable: true,
15
- get: function () { return chunk7YBJZS5P_cjs.PathTraversalError; }
15
+ get: function () { return chunkZAKTZ5B4_cjs.PathTraversalError; }
16
16
  });
17
17
  Object.defineProperty(exports, "assertNoSymlinkEscape", {
18
18
  enumerable: true,
19
- get: function () { return chunk7YBJZS5P_cjs.assertNoSymlinkEscape; }
19
+ get: function () { return chunkZAKTZ5B4_cjs.assertNoSymlinkEscape; }
20
20
  });
21
21
  Object.defineProperty(exports, "isForbiddenPath", {
22
22
  enumerable: true,
23
- get: function () { return chunk7YBJZS5P_cjs.isForbiddenPath; }
23
+ get: function () { return chunkZAKTZ5B4_cjs.isForbiddenPath; }
24
24
  });
25
25
  Object.defineProperty(exports, "safeFilenameForId", {
26
26
  enumerable: true,
27
- get: function () { return chunk7YBJZS5P_cjs.safeFilenameForId; }
27
+ get: function () { return chunkZAKTZ5B4_cjs.safeFilenameForId; }
28
28
  });
29
29
  Object.defineProperty(exports, "safePathJoin", {
30
30
  enumerable: true,
31
- get: function () { return chunk7YBJZS5P_cjs.safePathJoin; }
31
+ get: function () { return chunkZAKTZ5B4_cjs.safePathJoin; }
32
32
  });
33
33
  Object.defineProperty(exports, "sanitizeIdentifier", {
34
34
  enumerable: true,
35
- get: function () { return chunk7YBJZS5P_cjs.sanitizeIdentifier; }
35
+ get: function () { return chunkZAKTZ5B4_cjs.sanitizeIdentifier; }
36
36
  });
37
37
  //# sourceMappingURL=path-safety.cjs.map
38
38
  //# sourceMappingURL=path-safety.cjs.map
@@ -1,5 +1,5 @@
1
- export { ForbiddenPathError, PathTraversalError, assertNoSymlinkEscape, isForbiddenPath, safeFilenameForId, safePathJoin, sanitizeIdentifier } from './chunk-J3UK2GMN.js';
2
- import './chunk-SG5ZWT6C.js';
3
- import './chunk-IVSD7L22.js';
1
+ export { ForbiddenPathError, PathTraversalError, assertNoSymlinkEscape, isForbiddenPath, safeFilenameForId, safePathJoin, sanitizeIdentifier } from './chunk-IEKSEAIV.js';
2
+ import './chunk-VQ33XLC6.js';
3
+ import './chunk-RNCN2TTP.js';
4
4
  //# sourceMappingURL=path-safety.js.map
5
5
  //# sourceMappingURL=path-safety.js.map
@@ -1,17 +1,17 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkPNVDQL5Y_cjs = require('./chunk-PNVDQL5Y.cjs');
4
- var chunkI53ZQHU6_cjs = require('./chunk-I53ZQHU6.cjs');
5
- var chunkZ2CUEBXV_cjs = require('./chunk-Z2CUEBXV.cjs');
6
- var chunkDMTZ3FII_cjs = require('./chunk-DMTZ3FII.cjs');
7
- var chunk75DSEWTJ_cjs = require('./chunk-75DSEWTJ.cjs');
4
+ var chunk4E3HLSYE_cjs = require('./chunk-4E3HLSYE.cjs');
5
+ var chunkNJVV5OAV_cjs = require('./chunk-NJVV5OAV.cjs');
6
+ var chunkJERO4TP6_cjs = require('./chunk-JERO4TP6.cjs');
7
+ var chunk4H2QARXM_cjs = require('./chunk-4H2QARXM.cjs');
8
8
  var chunkYLQQX5W2_cjs = require('./chunk-YLQQX5W2.cjs');
9
- var chunkDGLLVCNB_cjs = require('./chunk-DGLLVCNB.cjs');
10
- var chunkIHFNRNTJ_cjs = require('./chunk-IHFNRNTJ.cjs');
11
- require('./chunk-BCQ3E2ZG.cjs');
9
+ var chunk33B2BSME_cjs = require('./chunk-33B2BSME.cjs');
10
+ var chunkE7WWIX34_cjs = require('./chunk-E7WWIX34.cjs');
11
+ require('./chunk-A76OFN2B.cjs');
12
12
  var fs = require('fs');
13
13
 
14
- var LiveSessionError = class extends chunkIHFNRNTJ_cjs.TheokitAgentError {
14
+ var LiveSessionError = class extends chunkE7WWIX34_cjs.TheokitAgentError {
15
15
  constructor(path) {
16
16
  super(
17
17
  `refusing to write over a live session transcript: ${path}. Fork to a new id instead \u2014 the live pointer, the most recent transcript and any active registry entry are never overwritten (audit-trail rotation, M60).`,
@@ -83,63 +83,63 @@ Object.defineProperty(exports, "PersistenceSchema", {
83
83
  });
84
84
  Object.defineProperty(exports, "SessionBusyError", {
85
85
  enumerable: true,
86
- get: function () { return chunkI53ZQHU6_cjs.SessionBusyError; }
86
+ get: function () { return chunk4E3HLSYE_cjs.SessionBusyError; }
87
87
  });
88
88
  Object.defineProperty(exports, "acquireSessionWriter", {
89
89
  enumerable: true,
90
- get: function () { return chunkI53ZQHU6_cjs.acquireSessionWriter; }
90
+ get: function () { return chunk4E3HLSYE_cjs.acquireSessionWriter; }
91
91
  });
92
92
  Object.defineProperty(exports, "sessionHasWriter", {
93
93
  enumerable: true,
94
- get: function () { return chunkI53ZQHU6_cjs.sessionHasWriter; }
94
+ get: function () { return chunk4E3HLSYE_cjs.sessionHasWriter; }
95
95
  });
96
96
  Object.defineProperty(exports, "encodeProjectDir", {
97
97
  enumerable: true,
98
- get: function () { return chunkZ2CUEBXV_cjs.encodeProjectDir; }
98
+ get: function () { return chunkNJVV5OAV_cjs.encodeProjectDir; }
99
99
  });
100
100
  Object.defineProperty(exports, "transcriptPath", {
101
101
  enumerable: true,
102
- get: function () { return chunkZ2CUEBXV_cjs.transcriptPath; }
102
+ get: function () { return chunkNJVV5OAV_cjs.transcriptPath; }
103
103
  });
104
104
  Object.defineProperty(exports, "transcriptRoot", {
105
105
  enumerable: true,
106
- get: function () { return chunkZ2CUEBXV_cjs.transcriptRoot; }
106
+ get: function () { return chunkNJVV5OAV_cjs.transcriptRoot; }
107
107
  });
108
108
  Object.defineProperty(exports, "JsonlParseError", {
109
109
  enumerable: true,
110
- get: function () { return chunkDMTZ3FII_cjs.JsonlParseError; }
110
+ get: function () { return chunkJERO4TP6_cjs.JsonlParseError; }
111
111
  });
112
112
  Object.defineProperty(exports, "appendJsonl", {
113
113
  enumerable: true,
114
- get: function () { return chunkDMTZ3FII_cjs.appendJsonl; }
114
+ get: function () { return chunkJERO4TP6_cjs.appendJsonl; }
115
115
  });
116
116
  Object.defineProperty(exports, "loadJsonl", {
117
117
  enumerable: true,
118
- get: function () { return chunkDMTZ3FII_cjs.loadJsonl; }
118
+ get: function () { return chunkJERO4TP6_cjs.loadJsonl; }
119
119
  });
120
120
  Object.defineProperty(exports, "readJsonlIds", {
121
121
  enumerable: true,
122
- get: function () { return chunkDMTZ3FII_cjs.readJsonlIds; }
122
+ get: function () { return chunkJERO4TP6_cjs.readJsonlIds; }
123
123
  });
124
124
  Object.defineProperty(exports, "withFileLock", {
125
125
  enumerable: true,
126
- get: function () { return chunkDMTZ3FII_cjs.withFileLock; }
126
+ get: function () { return chunkJERO4TP6_cjs.withFileLock; }
127
127
  });
128
128
  Object.defineProperty(exports, "applyWalWithFallback", {
129
129
  enumerable: true,
130
- get: function () { return chunk75DSEWTJ_cjs.applyWalWithFallback; }
130
+ get: function () { return chunk4H2QARXM_cjs.applyWalWithFallback; }
131
131
  });
132
132
  Object.defineProperty(exports, "isCorruptionError", {
133
133
  enumerable: true,
134
- get: function () { return chunk75DSEWTJ_cjs.isCorruptionError; }
134
+ get: function () { return chunk4H2QARXM_cjs.isCorruptionError; }
135
135
  });
136
136
  Object.defineProperty(exports, "openSqliteResilient", {
137
137
  enumerable: true,
138
- get: function () { return chunk75DSEWTJ_cjs.openSqliteResilient; }
138
+ get: function () { return chunk4H2QARXM_cjs.openSqliteResilient; }
139
139
  });
140
140
  Object.defineProperty(exports, "sanitizeFts5Query", {
141
141
  enumerable: true,
142
- get: function () { return chunk75DSEWTJ_cjs.sanitizeFts5Query; }
142
+ get: function () { return chunk4H2QARXM_cjs.sanitizeFts5Query; }
143
143
  });
144
144
  Object.defineProperty(exports, "withCwdMutex", {
145
145
  enumerable: true,
@@ -147,15 +147,15 @@ Object.defineProperty(exports, "withCwdMutex", {
147
147
  });
148
148
  Object.defineProperty(exports, "atomicWriteJson", {
149
149
  enumerable: true,
150
- get: function () { return chunkDGLLVCNB_cjs.atomicWriteJson; }
150
+ get: function () { return chunk33B2BSME_cjs.atomicWriteJson; }
151
151
  });
152
152
  Object.defineProperty(exports, "atomicWriteText", {
153
153
  enumerable: true,
154
- get: function () { return chunkDGLLVCNB_cjs.atomicWriteText; }
154
+ get: function () { return chunk33B2BSME_cjs.atomicWriteText; }
155
155
  });
156
156
  Object.defineProperty(exports, "replaceFileAtomic", {
157
157
  enumerable: true,
158
- get: function () { return chunkDGLLVCNB_cjs.replaceFileAtomic; }
158
+ get: function () { return chunk33B2BSME_cjs.replaceFileAtomic; }
159
159
  });
160
160
  exports.LiveSessionError = LiveSessionError;
161
161
  exports.forkTranscript = forkTranscript;
@@ -1,12 +1,12 @@
1
1
  export { PersistenceSchema } from './chunk-CAH3G4IS.js';
2
- export { SessionBusyError, acquireSessionWriter, sessionHasWriter } from './chunk-ET6PHZRX.js';
3
- export { encodeProjectDir, transcriptPath, transcriptRoot } from './chunk-JRLXEYR4.js';
4
- export { JsonlParseError, appendJsonl, loadJsonl, readJsonlIds, withFileLock } from './chunk-BQDUEG4C.js';
5
- export { applyWalWithFallback, isCorruptionError, openSqliteResilient, sanitizeFts5Query } from './chunk-AECV3G5Z.js';
2
+ export { SessionBusyError, acquireSessionWriter, sessionHasWriter } from './chunk-LWVKI75U.js';
3
+ export { encodeProjectDir, transcriptPath, transcriptRoot } from './chunk-EYUZZXHZ.js';
4
+ export { JsonlParseError, appendJsonl, loadJsonl, readJsonlIds, withFileLock } from './chunk-RTDT2UMT.js';
5
+ export { applyWalWithFallback, isCorruptionError, openSqliteResilient, sanitizeFts5Query } from './chunk-VTDQRUAJ.js';
6
6
  export { withCwdMutex } from './chunk-2XLKLVVR.js';
7
- export { atomicWriteJson, atomicWriteText, replaceFileAtomic } from './chunk-KX7JV5KM.js';
8
- import { TheokitAgentError } from './chunk-SG5ZWT6C.js';
9
- import './chunk-IVSD7L22.js';
7
+ export { atomicWriteJson, atomicWriteText, replaceFileAtomic } from './chunk-5XPKYDK7.js';
8
+ import { TheokitAgentError } from './chunk-VQ33XLC6.js';
9
+ import './chunk-RNCN2TTP.js';
10
10
  import { readFileSync, openSync, writeSync, closeSync, statSync, readSync } from 'fs';
11
11
 
12
12
  var LiveSessionError = class extends TheokitAgentError {
package/dist/project.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkYPEPCZHF_cjs = require('./chunk-YPEPCZHF.cjs');
4
- var chunkDGLLVCNB_cjs = require('./chunk-DGLLVCNB.cjs');
5
- var chunkIHFNRNTJ_cjs = require('./chunk-IHFNRNTJ.cjs');
6
- require('./chunk-BCQ3E2ZG.cjs');
4
+ var chunk33B2BSME_cjs = require('./chunk-33B2BSME.cjs');
5
+ var chunkE7WWIX34_cjs = require('./chunk-E7WWIX34.cjs');
6
+ require('./chunk-A76OFN2B.cjs');
7
7
  var promises = require('fs/promises');
8
8
  var path = require('path');
9
9
 
@@ -31,12 +31,12 @@ function reduceContent(files, scope) {
31
31
  async function writeProjectInstructions(cwd, content, options) {
32
32
  const filename = options?.filename ?? DEFAULT_FILENAME;
33
33
  if (!chunkYPEPCZHF_cjs.isSafePattern(filename)) {
34
- throw new chunkIHFNRNTJ_cjs.ConfigurationError(
34
+ throw new chunkE7WWIX34_cjs.ConfigurationError(
35
35
  `writeProjectInstructions: unsafe filename ${JSON.stringify(filename)} (no path traversal, separators, or absolute paths)`,
36
36
  { code: "unsafe_filename" }
37
37
  );
38
38
  }
39
- await chunkDGLLVCNB_cjs.replaceFileAtomic(path.join(cwd, filename), content);
39
+ await chunk33B2BSME_cjs.replaceFileAtomic(path.join(cwd, filename), content);
40
40
  }
41
41
 
42
42
  exports.readProjectInstructions = readProjectInstructions;
package/dist/project.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { walkUpForFile, isSafePattern } from './chunk-UJ7IQJAG.js';
2
- import { replaceFileAtomic } from './chunk-KX7JV5KM.js';
3
- import { ConfigurationError } from './chunk-SG5ZWT6C.js';
4
- import './chunk-IVSD7L22.js';
2
+ import { replaceFileAtomic } from './chunk-5XPKYDK7.js';
3
+ import { ConfigurationError } from './chunk-VQ33XLC6.js';
4
+ import './chunk-RNCN2TTP.js';
5
5
  import { readFile } from 'fs/promises';
6
6
  import { join } from 'path';
7
7
 
@@ -0,0 +1,9 @@
1
+ export { __getSubscribersCountForTests, __resetTaskRegistryForTests, cancel, configure, get, list, submit, subscribe } from './chunk-UIPTINIF.js';
2
+ import './chunk-K2BQQ445.js';
3
+ import './chunk-F4SQTWVR.js';
4
+ import './chunk-BM7VYZED.js';
5
+ import './chunk-5XPKYDK7.js';
6
+ import './chunk-VQ33XLC6.js';
7
+ import './chunk-RNCN2TTP.js';
8
+ //# sourceMappingURL=registry-AXQXPLFH.js.map
9
+ //# sourceMappingURL=registry-AXQXPLFH.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"registry-CAS6Y5ZY.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"registry-AXQXPLFH.js"}
@@ -0,0 +1,46 @@
1
+ 'use strict';
2
+
3
+ var chunkQMIG7TKG_cjs = require('./chunk-QMIG7TKG.cjs');
4
+ require('./chunk-BUUUWQMB.cjs');
5
+ require('./chunk-PDOLUFGY.cjs');
6
+ require('./chunk-H2V6CXM7.cjs');
7
+ require('./chunk-33B2BSME.cjs');
8
+ require('./chunk-E7WWIX34.cjs');
9
+ require('./chunk-A76OFN2B.cjs');
10
+
11
+
12
+
13
+ Object.defineProperty(exports, "__getSubscribersCountForTests", {
14
+ enumerable: true,
15
+ get: function () { return chunkQMIG7TKG_cjs.__getSubscribersCountForTests; }
16
+ });
17
+ Object.defineProperty(exports, "__resetTaskRegistryForTests", {
18
+ enumerable: true,
19
+ get: function () { return chunkQMIG7TKG_cjs.__resetTaskRegistryForTests; }
20
+ });
21
+ Object.defineProperty(exports, "cancel", {
22
+ enumerable: true,
23
+ get: function () { return chunkQMIG7TKG_cjs.cancel; }
24
+ });
25
+ Object.defineProperty(exports, "configure", {
26
+ enumerable: true,
27
+ get: function () { return chunkQMIG7TKG_cjs.configure; }
28
+ });
29
+ Object.defineProperty(exports, "get", {
30
+ enumerable: true,
31
+ get: function () { return chunkQMIG7TKG_cjs.get; }
32
+ });
33
+ Object.defineProperty(exports, "list", {
34
+ enumerable: true,
35
+ get: function () { return chunkQMIG7TKG_cjs.list; }
36
+ });
37
+ Object.defineProperty(exports, "submit", {
38
+ enumerable: true,
39
+ get: function () { return chunkQMIG7TKG_cjs.submit; }
40
+ });
41
+ Object.defineProperty(exports, "subscribe", {
42
+ enumerable: true,
43
+ get: function () { return chunkQMIG7TKG_cjs.subscribe; }
44
+ });
45
+ //# sourceMappingURL=registry-VKDFTK6L.cjs.map
46
+ //# sourceMappingURL=registry-VKDFTK6L.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"registry-JSDI4WKA.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"registry-VKDFTK6L.cjs"}
package/dist/retry.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkUSZTVNUQ_cjs = require('./chunk-USZTVNUQ.cjs');
4
- require('./chunk-IHFNRNTJ.cjs');
5
- require('./chunk-BCQ3E2ZG.cjs');
3
+ var chunkPY7G7YWK_cjs = require('./chunk-PY7G7YWK.cjs');
4
+ require('./chunk-E7WWIX34.cjs');
5
+ require('./chunk-A76OFN2B.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "Retry", {
10
10
  enumerable: true,
11
- get: function () { return chunkUSZTVNUQ_cjs.Retry; }
11
+ get: function () { return chunkPY7G7YWK_cjs.Retry; }
12
12
  });
13
13
  //# sourceMappingURL=retry.cjs.map
14
14
  //# sourceMappingURL=retry.cjs.map
package/dist/retry.js CHANGED
@@ -1,5 +1,5 @@
1
- export { Retry } from './chunk-4JSZYSGW.js';
2
- import './chunk-SG5ZWT6C.js';
3
- import './chunk-IVSD7L22.js';
1
+ export { Retry } from './chunk-4H2DCO6P.js';
2
+ import './chunk-VQ33XLC6.js';
3
+ import './chunk-RNCN2TTP.js';
4
4
  //# sourceMappingURL=retry.js.map
5
5
  //# sourceMappingURL=retry.js.map
@@ -2,8 +2,8 @@
2
2
 
3
3
  var chunkS7OEXQMI_cjs = require('../chunk-S7OEXQMI.cjs');
4
4
  require('../chunk-WPZTYOUX.cjs');
5
- var chunkIHFNRNTJ_cjs = require('../chunk-IHFNRNTJ.cjs');
6
- var chunkBCQ3E2ZG_cjs = require('../chunk-BCQ3E2ZG.cjs');
5
+ var chunkE7WWIX34_cjs = require('../chunk-E7WWIX34.cjs');
6
+ var chunkA76OFN2B_cjs = require('../chunk-A76OFN2B.cjs');
7
7
  var child_process = require('child_process');
8
8
  var fs = require('fs');
9
9
  var path = require('path');
@@ -319,7 +319,7 @@ function seccompPathForArch(arch, warn) {
319
319
  var seccompFilterPath;
320
320
  function restrictedSeccompPath() {
321
321
  if (seccompFilterPath !== void 0) return seccompFilterPath ?? void 0;
322
- const path2 = seccompPathForArch(process.arch, (m) => console.warn(chunkBCQ3E2ZG_cjs.redactSecrets(m)));
322
+ const path2 = seccompPathForArch(process.arch, (m) => console.warn(chunkA76OFN2B_cjs.redactSecrets(m)));
323
323
  seccompFilterPath = path2 ?? null;
324
324
  return path2;
325
325
  }
@@ -344,7 +344,7 @@ function createSandboxBackend(opts) {
344
344
  if (!detection.ok) {
345
345
  if (!warnedUnavailable) {
346
346
  warnedUnavailable = true;
347
- const warn = opts.warn ?? ((m) => console.warn(chunkBCQ3E2ZG_cjs.redactSecrets(m)));
347
+ const warn = opts.warn ?? ((m) => console.warn(chunkA76OFN2B_cjs.redactSecrets(m)));
348
348
  warn(
349
349
  `[sandbox] OS-level enforcement unavailable (${detection.reason}) \u2014 falling back to tool-level gating only (sandbox_mode=${opts.mode}).`
350
350
  );
@@ -366,7 +366,7 @@ function decideConfinement(opts) {
366
366
  if (detection.ok) return detection.bin;
367
367
  if (!interactiveWarned) {
368
368
  interactiveWarned = true;
369
- const warn = opts.warn ?? ((m) => console.warn(chunkBCQ3E2ZG_cjs.redactSecrets(m)));
369
+ const warn = opts.warn ?? ((m) => console.warn(chunkA76OFN2B_cjs.redactSecrets(m)));
370
370
  warn(
371
371
  `[sandbox] OS-level enforcement unavailable (${detection.reason}) \u2014 interactive session runs WITHOUT kernel confinement (sandbox_mode=${opts.mode}).`
372
372
  );
@@ -392,7 +392,7 @@ function interactiveWrapCommand(opts) {
392
392
  }
393
393
 
394
394
  // src/sandbox/provision.ts
395
- var RepoProvisionError = class extends chunkIHFNRNTJ_cjs.TheokitAgentError {
395
+ var RepoProvisionError = class extends chunkE7WWIX34_cjs.TheokitAgentError {
396
396
  constructor(instanceId, message, options = {}) {
397
397
  super(`[${instanceId}] ${message}`, {
398
398
  code: "repo_provision_failed",
@@ -1,8 +1,8 @@
1
1
  import { LocalSandbox, shellEscapePosix } from '../chunk-SKWVAQAY.js';
2
2
  export { LocalSandbox, SandboxBackend, SandboxNotAvailableError, SandboxSecurityError, resolveSandbox } from '../chunk-SKWVAQAY.js';
3
3
  import '../chunk-7GFX45DD.js';
4
- import { TheokitAgentError } from '../chunk-SG5ZWT6C.js';
5
- import { redactSecrets } from '../chunk-IVSD7L22.js';
4
+ import { TheokitAgentError } from '../chunk-VQ33XLC6.js';
5
+ import { redactSecrets } from '../chunk-RNCN2TTP.js';
6
6
  import { execFileSync } from 'child_process';
7
7
  import { existsSync, mkdtempSync, writeFileSync, rmSync } from 'fs';
8
8
  import path, { dirname, join } from 'path';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkIHFNRNTJ_cjs = require('../chunk-IHFNRNTJ.cjs');
4
- require('../chunk-BCQ3E2ZG.cjs');
3
+ var chunkE7WWIX34_cjs = require('../chunk-E7WWIX34.cjs');
4
+ require('../chunk-A76OFN2B.cjs');
5
5
 
6
6
  // src/server/errors-envelope.ts
7
7
  var NAME_TO_CODE = /* @__PURE__ */ new Map([
@@ -37,7 +37,7 @@ function toEnvelope(value) {
37
37
  }
38
38
  function buildMeta(name, err) {
39
39
  const meta = { sdkErrorName: name };
40
- if (err instanceof chunkIHFNRNTJ_cjs.TheokitAgentError && err.metadata !== void 0) {
40
+ if (err instanceof chunkE7WWIX34_cjs.TheokitAgentError && err.metadata !== void 0) {
41
41
  meta.provider = err.metadata.provider;
42
42
  meta.endpoint = err.metadata.endpoint;
43
43
  if (err.metadata.statusCode !== void 0) {
@@ -47,13 +47,13 @@ function buildMeta(name, err) {
47
47
  return meta;
48
48
  }
49
49
  function buildExt(err) {
50
- if (err instanceof chunkIHFNRNTJ_cjs.RateLimitError && err.metadata?.retryAfter !== void 0) {
50
+ if (err instanceof chunkE7WWIX34_cjs.RateLimitError && err.metadata?.retryAfter !== void 0) {
51
51
  return {
52
52
  retryable: true,
53
53
  retryAfterMs: err.metadata.retryAfter * 1e3
54
54
  };
55
55
  }
56
- if (err instanceof chunkIHFNRNTJ_cjs.CredentialPoolExhaustedError && err.nextRetryAt !== void 0) {
56
+ if (err instanceof chunkE7WWIX34_cjs.CredentialPoolExhaustedError && err.nextRetryAt !== void 0) {
57
57
  const delayMs = Math.max(0, err.nextRetryAt - Date.now());
58
58
  return {
59
59
  retryable: true,
@@ -63,22 +63,22 @@ function buildExt(err) {
63
63
  return void 0;
64
64
  }
65
65
  var CODE_TO_RECONSTRUCTOR = /* @__PURE__ */ new Map([
66
- ["UNAUTHORIZED", (env) => new chunkIHFNRNTJ_cjs.AuthenticationError(env.message)],
66
+ ["UNAUTHORIZED", (env) => new chunkE7WWIX34_cjs.AuthenticationError(env.message)],
67
67
  [
68
68
  "RATE_LIMITED",
69
- (env) => new chunkIHFNRNTJ_cjs.RateLimitError(env.message, env.cause !== void 0 ? { cause: env.cause } : {})
69
+ (env) => new chunkE7WWIX34_cjs.RateLimitError(env.message, env.cause !== void 0 ? { cause: env.cause } : {})
70
70
  ],
71
- ["PROVIDER_KEY_MISSING", (env) => new chunkIHFNRNTJ_cjs.ConfigurationError(env.message)],
72
- ["SERVICE_UNAVAILABLE", (env) => new chunkIHFNRNTJ_cjs.NetworkError(env.message)],
73
- ["GATEWAY_TIMEOUT", (env) => new chunkIHFNRNTJ_cjs.NetworkError(env.message)],
71
+ ["PROVIDER_KEY_MISSING", (env) => new chunkE7WWIX34_cjs.ConfigurationError(env.message)],
72
+ ["SERVICE_UNAVAILABLE", (env) => new chunkE7WWIX34_cjs.NetworkError(env.message)],
73
+ ["GATEWAY_TIMEOUT", (env) => new chunkE7WWIX34_cjs.NetworkError(env.message)],
74
74
  [
75
75
  "AGENT_RUN_ERROR",
76
- (env) => new chunkIHFNRNTJ_cjs.AgentRunError(env.message, {
76
+ (env) => new chunkE7WWIX34_cjs.AgentRunError(env.message, {
77
77
  code: "unknown",
78
78
  ...env.cause !== void 0 ? { cause: env.cause } : {}
79
79
  })
80
80
  ],
81
- ["INTERNAL_SERVER_ERROR", (env) => new chunkIHFNRNTJ_cjs.UnknownAgentError(env.message)]
81
+ ["INTERNAL_SERVER_ERROR", (env) => new chunkE7WWIX34_cjs.UnknownAgentError(env.message)]
82
82
  // BUDGET_EXCEEDED + CREDENTIAL_POOL_EXHAUSTED reconstructors require
83
83
  // domain-specific args (budgetName, provider) that the envelope doesn't
84
84
  // always carry. Fall back to UnknownAgentError when those fields are
@@ -88,12 +88,12 @@ var CODE_TO_RECONSTRUCTOR = /* @__PURE__ */ new Map([
88
88
  function fromEnvelope(env) {
89
89
  const reconstructor = CODE_TO_RECONSTRUCTOR.get(env.code);
90
90
  if (reconstructor) return reconstructor(env);
91
- return new chunkIHFNRNTJ_cjs.UnknownAgentError(env.message);
91
+ return new chunkE7WWIX34_cjs.UnknownAgentError(env.message);
92
92
  }
93
93
 
94
94
  Object.defineProperty(exports, "MemoryAdapterError", {
95
95
  enumerable: true,
96
- get: function () { return chunkIHFNRNTJ_cjs.MemoryAdapterError; }
96
+ get: function () { return chunkE7WWIX34_cjs.MemoryAdapterError; }
97
97
  });
98
98
  exports.fromEnvelope = fromEnvelope;
99
99
  exports.toEnvelope = toEnvelope;
@@ -1,6 +1,6 @@
1
- import { TheokitAgentError, RateLimitError, CredentialPoolExhaustedError, UnknownAgentError, AuthenticationError, ConfigurationError, NetworkError, AgentRunError } from '../chunk-SG5ZWT6C.js';
2
- export { MemoryAdapterError } from '../chunk-SG5ZWT6C.js';
3
- import '../chunk-IVSD7L22.js';
1
+ import { TheokitAgentError, RateLimitError, CredentialPoolExhaustedError, UnknownAgentError, AuthenticationError, ConfigurationError, NetworkError, AgentRunError } from '../chunk-VQ33XLC6.js';
2
+ export { MemoryAdapterError } from '../chunk-VQ33XLC6.js';
3
+ import '../chunk-RNCN2TTP.js';
4
4
 
5
5
  // src/server/errors-envelope.ts
6
6
  var NAME_TO_CODE = /* @__PURE__ */ new Map([