theokit 0.43.12 → 0.44.3

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 (302) hide show
  1. package/dist/{actions-virtual-module-RSFRPJQZ.js → actions-virtual-module-67K4POQ2.js} +20 -20
  2. package/dist/actions-virtual-module-67K4POQ2.js.map +1 -0
  3. package/dist/{actions-virtual-module-HG66SZ7T.js → actions-virtual-module-IK2SDIZ3.js} +4 -3
  4. package/dist/{actions-virtual-module-HG66SZ7T.js.map → actions-virtual-module-IK2SDIZ3.js.map} +1 -1
  5. package/dist/adapters/web-shim.js +1 -1
  6. package/dist/adapters/web-shim.js.map +1 -1
  7. package/dist/adapters/ws-shim.js +1 -1
  8. package/dist/adapters/ws-shim.js.map +1 -1
  9. package/dist/{agent-OXRRKB55.js → agent-OCCL5RUY.js} +2 -2
  10. package/dist/{agents-typed-client-ZP7BKJB3.js → agents-typed-client-TNHCUU7Q.js} +2 -2
  11. package/dist/agents-typed-client-TNHCUU7Q.js.map +1 -0
  12. package/dist/{app-typed-client-GDF2OMJ2.js → app-typed-client-4OH3JREB.js} +47 -8
  13. package/dist/app-typed-client-4OH3JREB.js.map +1 -0
  14. package/dist/{app-typed-client-USLAMN7X.js → app-typed-client-N5WUE2CP.js} +62 -24
  15. package/dist/app-typed-client-N5WUE2CP.js.map +1 -0
  16. package/dist/{body-parser-web-NNEJGX6Y.js → body-parser-web-4Z2QTPDU.js} +2 -2
  17. package/dist/body-parser-web-4Z2QTPDU.js.map +1 -0
  18. package/dist/boot/index.js +4 -4
  19. package/dist/boot/index.js.map +1 -1
  20. package/dist/{broadcast-4SX7R5XE.js → broadcast-H64DJRBE.js} +3 -3
  21. package/dist/broadcast-H64DJRBE.js.map +1 -0
  22. package/dist/{build-MQHIJROR.js → build-25RSFP22.js} +13 -4
  23. package/dist/build-25RSFP22.js.map +1 -0
  24. package/dist/{build-request-body-preview-FVBQ7LCE.js → build-request-body-preview-CKWWBF2M.js} +2 -2
  25. package/dist/build-request-body-preview-CKWWBF2M.js.map +1 -0
  26. package/dist/{chunk-26ECIX74.js → chunk-2ADKT37V.js} +5 -5
  27. package/dist/chunk-2ADKT37V.js.map +1 -0
  28. package/dist/{chunk-JIL74SFK.js → chunk-37ZO643S.js} +9 -9
  29. package/dist/chunk-37ZO643S.js.map +1 -0
  30. package/dist/{chunk-ESC54TAK.js → chunk-3DGIANAN.js} +1 -1
  31. package/dist/chunk-3DGIANAN.js.map +1 -0
  32. package/dist/{chunk-6FK7FKY6.js → chunk-47FFT43U.js} +1 -1
  33. package/dist/chunk-47FFT43U.js.map +1 -0
  34. package/dist/{chunk-ZJQ4O76G.js → chunk-4FWBKX6G.js} +1 -1
  35. package/dist/chunk-4FWBKX6G.js.map +1 -0
  36. package/dist/{chunk-NM4WF3XD.js → chunk-4PBJ266F.js} +1 -1
  37. package/dist/chunk-4PBJ266F.js.map +1 -0
  38. package/dist/{chunk-7MQOHNHE.js → chunk-52PDWL5S.js} +1 -1
  39. package/dist/chunk-52PDWL5S.js.map +1 -0
  40. package/dist/{chunk-JQJN6LFK.js → chunk-62EU2BVZ.js} +2 -2
  41. package/dist/chunk-62EU2BVZ.js.map +1 -0
  42. package/dist/{chunk-SJIRP73B.js → chunk-646CA6RV.js} +2 -2
  43. package/dist/chunk-646CA6RV.js.map +1 -0
  44. package/dist/{chunk-ASDXVRJD.js → chunk-6KDXP472.js} +4 -4
  45. package/dist/chunk-6KDXP472.js.map +1 -0
  46. package/dist/chunk-6LNIGF5P.js +46 -0
  47. package/dist/chunk-6LNIGF5P.js.map +1 -0
  48. package/dist/chunk-7IHWXDJJ.js +1 -0
  49. package/dist/chunk-7IHWXDJJ.js.map +1 -0
  50. package/dist/{chunk-JQSKBMXP.js → chunk-7LVM22VG.js} +1 -1
  51. package/dist/chunk-7LVM22VG.js.map +1 -0
  52. package/dist/{chunk-UVXB2ER7.js → chunk-7SABX4DJ.js} +1 -1
  53. package/dist/chunk-7SABX4DJ.js.map +1 -0
  54. package/dist/{chunk-X32XEJXR.js → chunk-ACKBVBUI.js} +1 -1
  55. package/dist/chunk-ACKBVBUI.js.map +1 -0
  56. package/dist/{chunk-UUFYP2UM.js → chunk-AM3QABW5.js} +3 -3
  57. package/dist/chunk-AM3QABW5.js.map +1 -0
  58. package/dist/{chunk-FH3DYBAN.js → chunk-ANS4ELRH.js} +1 -1
  59. package/dist/chunk-ANS4ELRH.js.map +1 -0
  60. package/dist/{chunk-UD3LFGDL.js → chunk-AVQU5CQF.js} +1 -1
  61. package/dist/chunk-AVQU5CQF.js.map +1 -0
  62. package/dist/{chunk-CJNMJUHE.js → chunk-B7ONQ4QJ.js} +2 -2
  63. package/dist/{chunk-WSJKACWB.js → chunk-C34PMLSN.js} +1 -1
  64. package/dist/chunk-C34PMLSN.js.map +1 -0
  65. package/dist/{chunk-2WH6SD3C.js → chunk-DSOBIXXR.js} +4 -4
  66. package/dist/{chunk-DJFMAWH5.js → chunk-EIRQM55C.js} +6 -5
  67. package/dist/chunk-EIRQM55C.js.map +1 -0
  68. package/dist/{chunk-ZEGYW52B.js → chunk-FB2HBNIC.js} +1 -1
  69. package/dist/chunk-FB2HBNIC.js.map +1 -0
  70. package/dist/chunk-FXZZS7YW.js +605 -0
  71. package/dist/chunk-FXZZS7YW.js.map +1 -0
  72. package/dist/{chunk-HGUZWG2C.js → chunk-FZG3JYB3.js} +8 -47
  73. package/dist/chunk-FZG3JYB3.js.map +1 -0
  74. package/dist/{chunk-V3LJN2GS.js → chunk-GAPBPRPP.js} +1 -1
  75. package/dist/chunk-GAPBPRPP.js.map +1 -0
  76. package/dist/chunk-GUBN5UTT.js +1 -0
  77. package/dist/chunk-GUBN5UTT.js.map +1 -0
  78. package/dist/{chunk-6OXCZMW3.js → chunk-HEK4SET7.js} +5 -5
  79. package/dist/chunk-HEK4SET7.js.map +1 -0
  80. package/dist/{chunk-N2D5AVRR.js → chunk-HRCNHWLP.js} +7 -109
  81. package/dist/chunk-HRCNHWLP.js.map +1 -0
  82. package/dist/{chunk-C3ZZ56YZ.js → chunk-JA2ZAT5Q.js} +1 -1
  83. package/dist/chunk-JA2ZAT5Q.js.map +1 -0
  84. package/dist/{chunk-L2S2R3TI.js → chunk-KBGGQK4I.js} +25 -8
  85. package/dist/chunk-KBGGQK4I.js.map +1 -0
  86. package/dist/{chunk-VPISAMXU.js → chunk-KD5G3YXI.js} +4 -4
  87. package/dist/chunk-KD5G3YXI.js.map +1 -0
  88. package/dist/{chunk-VMEWD57H.js → chunk-KPKLIUUL.js} +1 -1
  89. package/dist/chunk-KPKLIUUL.js.map +1 -0
  90. package/dist/{chunk-4HAU7AJM.js → chunk-L4Y6RJ4E.js} +3 -3
  91. package/dist/chunk-L4Y6RJ4E.js.map +1 -0
  92. package/dist/{chunk-OVHW23YC.js → chunk-L5Z6IY5U.js} +5 -5
  93. package/dist/chunk-L5Z6IY5U.js.map +1 -0
  94. package/dist/{chunk-JBCHWRKF.js → chunk-MTEWLGVY.js} +2 -2
  95. package/dist/chunk-MTEWLGVY.js.map +1 -0
  96. package/dist/{chunk-XZ6B2Y2R.js → chunk-MWP4YXWJ.js} +1 -1
  97. package/dist/chunk-MWP4YXWJ.js.map +1 -0
  98. package/dist/{chunk-575PAX5L.js → chunk-NGEBYCOZ.js} +62 -38
  99. package/dist/chunk-NGEBYCOZ.js.map +1 -0
  100. package/dist/{chunk-5QW7IQQU.js → chunk-NTDN54XO.js} +1 -1
  101. package/dist/chunk-NTDN54XO.js.map +1 -0
  102. package/dist/{chunk-7BIM27LV.js → chunk-OIGJOYX6.js} +1 -1
  103. package/dist/chunk-OIGJOYX6.js.map +1 -0
  104. package/dist/{chunk-TSLSIRBR.js → chunk-OLGPYOLO.js} +2 -2
  105. package/dist/chunk-OLGPYOLO.js.map +1 -0
  106. package/dist/{chunk-IE6C4KZX.js → chunk-Q5OT7LZG.js} +11 -496
  107. package/dist/chunk-Q5OT7LZG.js.map +1 -0
  108. package/dist/{chunk-6NEXVBPY.js → chunk-RWNSW4FM.js} +1 -1
  109. package/dist/chunk-RWNSW4FM.js.map +1 -0
  110. package/dist/{chunk-E25FBYJP.js → chunk-SAFGDIPQ.js} +1 -1
  111. package/dist/chunk-SAFGDIPQ.js.map +1 -0
  112. package/dist/{chunk-OP7QCTR5.js → chunk-SEELKQUM.js} +2 -2
  113. package/dist/chunk-SEELKQUM.js.map +1 -0
  114. package/dist/{chunk-4B2ZMX45.js → chunk-SSYDEKWF.js} +1 -1
  115. package/dist/chunk-SSYDEKWF.js.map +1 -0
  116. package/dist/{chunk-DQVBL2G4.js → chunk-SZU6BOMV.js} +75 -53
  117. package/dist/chunk-SZU6BOMV.js.map +1 -0
  118. package/dist/{chunk-65EFIUDD.js → chunk-U267AOWS.js} +1 -1
  119. package/dist/chunk-U267AOWS.js.map +1 -0
  120. package/dist/{chunk-FX72VHAE.js → chunk-U3H53IIN.js} +6 -6
  121. package/dist/chunk-U3H53IIN.js.map +1 -0
  122. package/dist/{chunk-OPLICDUB.js → chunk-UW2TEAGR.js} +1 -1
  123. package/dist/chunk-UW2TEAGR.js.map +1 -0
  124. package/dist/{chunk-IAJ2JVEH.js → chunk-VSLTKX5L.js} +1 -1
  125. package/dist/chunk-VSLTKX5L.js.map +1 -0
  126. package/dist/{chunk-YB5DJJ4U.js → chunk-VZTYCAO6.js} +1 -1
  127. package/dist/chunk-VZTYCAO6.js.map +1 -0
  128. package/dist/chunk-WDGYCBNI.js +65 -0
  129. package/dist/chunk-WDGYCBNI.js.map +1 -0
  130. package/dist/chunk-WPJOTQA5.js +1 -0
  131. package/dist/chunk-WPJOTQA5.js.map +1 -0
  132. package/dist/{chunk-DGUM43GV.js → chunk-XTHN6JBX.js} +1 -1
  133. package/dist/chunk-XTHN6JBX.js.map +1 -0
  134. package/dist/{chunk-HZ6USUHC.js → chunk-YOIVCCZT.js} +1 -1
  135. package/dist/chunk-YOIVCCZT.js.map +1 -0
  136. package/dist/{chunk-OI6DK6ZJ.js → chunk-ZC2UESE4.js} +6 -4
  137. package/dist/{chunk-OI6DK6ZJ.js.map → chunk-ZC2UESE4.js.map} +1 -1
  138. package/dist/cli/index.js +8 -8
  139. package/dist/client/core.d.ts +4 -258
  140. package/dist/client/core.js +13 -9
  141. package/dist/client/core.js.map +1 -1
  142. package/dist/client/index.d.ts +7 -96
  143. package/dist/client/index.js +19 -67
  144. package/dist/client/index.js.map +1 -1
  145. package/dist/{controller-swc-transform-JJRMTSDY.js → controller-swc-transform-T7ZTD55V.js} +2 -2
  146. package/dist/controller-swc-transform-T7ZTD55V.js.map +1 -0
  147. package/dist/{cookies-MJKMGJ7N.js → cookies-SOXUQJXG.js} +3 -3
  148. package/dist/cookies-SOXUQJXG.js.map +1 -0
  149. package/dist/{dev-WQ4LWCAW.js → dev-V6UBM2OL.js} +8 -7
  150. package/dist/{dev-WQ4LWCAW.js.map → dev-V6UBM2OL.js.map} +1 -1
  151. package/dist/{dev-emit-HLGJK3PP.js → dev-emit-F54Y5TIU.js} +5 -5
  152. package/dist/dev-emit-F54Y5TIU.js.map +1 -0
  153. package/dist/devtools/entry.js +61 -53
  154. package/dist/devtools/entry.js.map +1 -1
  155. package/dist/dispatcher-MXKF3CRH.js +8 -0
  156. package/dist/dispatcher-MXKF3CRH.js.map +1 -0
  157. package/dist/index.js +25 -25
  158. package/dist/index.js.map +1 -1
  159. package/dist/{info-75U6GCMD.js → info-ICDTPJDC.js} +3 -3
  160. package/dist/{internal-api-JFORKYLR.js → internal-api-ALXVBL56.js} +10 -8
  161. package/dist/{internal-api-DV3H5NNV.js → internal-api-S7WK2WCY.js} +20 -20
  162. package/dist/internal-api-S7WK2WCY.js.map +1 -0
  163. package/dist/{load-config-XP7NSSA7.js → load-config-ICCNMO74.js} +3 -3
  164. package/dist/{mcp-FF3NTCHB.js → mcp-4JFODA5U.js} +3 -3
  165. package/dist/{openapi-ZPXYRAM2.js → openapi-NIYA2VBG.js} +3 -3
  166. package/dist/react-query/index.js +2 -2
  167. package/dist/react-query/index.js.map +1 -1
  168. package/dist/{routes-ZVDKABXZ.js → routes-2RD4S5PZ.js} +3 -3
  169. package/dist/{schema-FBOTN46F.js → schema-S553QCAU.js} +2 -2
  170. package/dist/server/agent/index.d.ts +3 -72
  171. package/dist/server/agent/index.js +4 -4
  172. package/dist/server/agent/index.js.map +1 -1
  173. package/dist/server/auth/index.js +4 -4
  174. package/dist/server/auth/index.js.map +1 -1
  175. package/dist/server/cost/index.js +2 -2
  176. package/dist/server/cost/index.js.map +1 -1
  177. package/dist/server/cron/index.js +6 -6
  178. package/dist/server/cron/index.js.map +1 -1
  179. package/dist/server/define/index.js +4 -4
  180. package/dist/server/define/index.js.map +1 -1
  181. package/dist/server/http/index.js +11 -11
  182. package/dist/server/http/index.js.map +1 -1
  183. package/dist/server/index.d.ts +2 -2
  184. package/dist/server/index.js +41 -41
  185. package/dist/server/index.js.map +1 -1
  186. package/dist/server/jobs/index.js +7 -7
  187. package/dist/server/jobs/index.js.map +1 -1
  188. package/dist/server/observability/index.d.ts +8 -1
  189. package/dist/server/observability/index.js +5 -5
  190. package/dist/server/observability/index.js.map +1 -1
  191. package/dist/server/plugins/index.js +3 -3
  192. package/dist/server/plugins/index.js.map +1 -1
  193. package/dist/server/rate-limit/index.js +4 -4
  194. package/dist/server/rate-limit/index.js.map +1 -1
  195. package/dist/server/realtime/index.js +2 -2
  196. package/dist/server/realtime/index.js.map +1 -1
  197. package/dist/server/scan/index.js +7 -7
  198. package/dist/server/scan/index.js.map +1 -1
  199. package/dist/server/security/index.js +5 -5
  200. package/dist/server/security/index.js.map +1 -1
  201. package/dist/server/storage/index.js +2 -2
  202. package/dist/server/storage/index.js.map +1 -1
  203. package/dist/server/webhook/index.js +3 -3
  204. package/dist/server/webhook/index.js.map +1 -1
  205. package/dist/server-error-to-envelope-UM7DEVM4.js +8 -0
  206. package/dist/server-error-to-envelope-UM7DEVM4.js.map +1 -0
  207. package/dist/{server-routes-hmr-RI7SYNT2.js → server-routes-hmr-6CRNSEWF.js} +2 -2
  208. package/dist/server-routes-hmr-6CRNSEWF.js.map +1 -0
  209. package/dist/{services-typed-client-AU6DKXAO.js → services-typed-client-IXNOPVZA.js} +3 -3
  210. package/dist/services-typed-client-IXNOPVZA.js.map +1 -0
  211. package/dist/{start-2U3FUCJX.js → start-2LNPPG74.js} +35 -11
  212. package/dist/start-2LNPPG74.js.map +1 -0
  213. package/dist/vite-plugin/index.js +25 -25
  214. package/dist/vite-plugin/index.js.map +1 -1
  215. package/dist/{vite-plugin-D2NTPZNC.js → vite-plugin-X6YO3OUH.js} +8 -7
  216. package/package.json +9 -5
  217. package/dist/actions-virtual-module-RSFRPJQZ.js.map +0 -1
  218. package/dist/agents-typed-client-ZP7BKJB3.js.map +0 -1
  219. package/dist/app-typed-client-GDF2OMJ2.js.map +0 -1
  220. package/dist/app-typed-client-USLAMN7X.js.map +0 -1
  221. package/dist/body-parser-web-NNEJGX6Y.js.map +0 -1
  222. package/dist/build-MQHIJROR.js.map +0 -1
  223. package/dist/build-request-body-preview-FVBQ7LCE.js.map +0 -1
  224. package/dist/chunk-26ECIX74.js.map +0 -1
  225. package/dist/chunk-4B2ZMX45.js.map +0 -1
  226. package/dist/chunk-4HAU7AJM.js.map +0 -1
  227. package/dist/chunk-575PAX5L.js.map +0 -1
  228. package/dist/chunk-5QW7IQQU.js.map +0 -1
  229. package/dist/chunk-65EFIUDD.js.map +0 -1
  230. package/dist/chunk-6FK7FKY6.js.map +0 -1
  231. package/dist/chunk-6NEXVBPY.js.map +0 -1
  232. package/dist/chunk-6OXCZMW3.js.map +0 -1
  233. package/dist/chunk-7BIM27LV.js.map +0 -1
  234. package/dist/chunk-7MQOHNHE.js.map +0 -1
  235. package/dist/chunk-ASDXVRJD.js.map +0 -1
  236. package/dist/chunk-C3ZZ56YZ.js.map +0 -1
  237. package/dist/chunk-DJFMAWH5.js.map +0 -1
  238. package/dist/chunk-DQVBL2G4.js.map +0 -1
  239. package/dist/chunk-E25FBYJP.js.map +0 -1
  240. package/dist/chunk-E3JH6YUM.js +0 -1
  241. package/dist/chunk-ESC54TAK.js.map +0 -1
  242. package/dist/chunk-FH3DYBAN.js.map +0 -1
  243. package/dist/chunk-FX72VHAE.js.map +0 -1
  244. package/dist/chunk-HGUZWG2C.js.map +0 -1
  245. package/dist/chunk-HZ6USUHC.js.map +0 -1
  246. package/dist/chunk-IAJ2JVEH.js.map +0 -1
  247. package/dist/chunk-IE6C4KZX.js.map +0 -1
  248. package/dist/chunk-JBCHWRKF.js.map +0 -1
  249. package/dist/chunk-JHEAWR3L.js +0 -1
  250. package/dist/chunk-JIL74SFK.js.map +0 -1
  251. package/dist/chunk-JQJN6LFK.js.map +0 -1
  252. package/dist/chunk-JQSKBMXP.js.map +0 -1
  253. package/dist/chunk-KPRJS3II.js +0 -505
  254. package/dist/chunk-KPRJS3II.js.map +0 -1
  255. package/dist/chunk-L2S2R3TI.js.map +0 -1
  256. package/dist/chunk-N2D5AVRR.js.map +0 -1
  257. package/dist/chunk-NM4WF3XD.js.map +0 -1
  258. package/dist/chunk-NPMCKOX4.js +0 -1
  259. package/dist/chunk-NPMCKOX4.js.map +0 -1
  260. package/dist/chunk-OP7QCTR5.js.map +0 -1
  261. package/dist/chunk-OPLICDUB.js.map +0 -1
  262. package/dist/chunk-OVHW23YC.js.map +0 -1
  263. package/dist/chunk-SJIRP73B.js.map +0 -1
  264. package/dist/chunk-TSLSIRBR.js.map +0 -1
  265. package/dist/chunk-UD3LFGDL.js.map +0 -1
  266. package/dist/chunk-UUFYP2UM.js.map +0 -1
  267. package/dist/chunk-UVXB2ER7.js.map +0 -1
  268. package/dist/chunk-V3LJN2GS.js.map +0 -1
  269. package/dist/chunk-VMEWD57H.js.map +0 -1
  270. package/dist/chunk-VPISAMXU.js.map +0 -1
  271. package/dist/chunk-WSJKACWB.js.map +0 -1
  272. package/dist/chunk-X32XEJXR.js.map +0 -1
  273. package/dist/chunk-XZ6B2Y2R.js.map +0 -1
  274. package/dist/chunk-YB5DJJ4U.js.map +0 -1
  275. package/dist/chunk-ZEGYW52B.js.map +0 -1
  276. package/dist/chunk-ZJQ4O76G.js.map +0 -1
  277. package/dist/controller-swc-transform-JJRMTSDY.js.map +0 -1
  278. package/dist/cookies-MJKMGJ7N.js.map +0 -1
  279. package/dist/dev-emit-HLGJK3PP.js.map +0 -1
  280. package/dist/dispatcher-DLKIXYNO.js +0 -8
  281. package/dist/dispatcher-DLKIXYNO.js.map +0 -1
  282. package/dist/internal-api-DV3H5NNV.js.map +0 -1
  283. package/dist/internal-api-JFORKYLR.js.map +0 -1
  284. package/dist/load-config-XP7NSSA7.js.map +0 -1
  285. package/dist/schema-FBOTN46F.js.map +0 -1
  286. package/dist/server-error-to-envelope-EOFUIUNB.js +0 -8
  287. package/dist/server-error-to-envelope-EOFUIUNB.js.map +0 -1
  288. package/dist/server-routes-hmr-RI7SYNT2.js.map +0 -1
  289. package/dist/services-typed-client-AU6DKXAO.js.map +0 -1
  290. package/dist/start-2U3FUCJX.js.map +0 -1
  291. package/dist/vite-plugin-D2NTPZNC.js.map +0 -1
  292. /package/dist/{agent-OXRRKB55.js.map → agent-OCCL5RUY.js.map} +0 -0
  293. /package/dist/{chunk-CJNMJUHE.js.map → chunk-B7ONQ4QJ.js.map} +0 -0
  294. /package/dist/{chunk-2WH6SD3C.js.map → chunk-DSOBIXXR.js.map} +0 -0
  295. /package/dist/{info-75U6GCMD.js.map → info-ICDTPJDC.js.map} +0 -0
  296. /package/dist/{broadcast-4SX7R5XE.js.map → internal-api-ALXVBL56.js.map} +0 -0
  297. /package/dist/{chunk-DGUM43GV.js.map → load-config-ICCNMO74.js.map} +0 -0
  298. /package/dist/{mcp-FF3NTCHB.js.map → mcp-4JFODA5U.js.map} +0 -0
  299. /package/dist/{openapi-ZPXYRAM2.js.map → openapi-NIYA2VBG.js.map} +0 -0
  300. /package/dist/{routes-ZVDKABXZ.js.map → routes-2RD4S5PZ.js.map} +0 -0
  301. /package/dist/{chunk-E3JH6YUM.js.map → schema-S553QCAU.js.map} +0 -0
  302. /package/dist/{chunk-JHEAWR3L.js.map → vite-plugin-X6YO3OUH.js.map} +0 -0
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/config/define-config.ts","../src/config/config-builder.ts","../src/config/validate-structure.ts","../src/core/errors.ts"],"sourcesContent":["import type { TheoConfig } from './schema.js'\n\n/**\n * Define Theo framework configuration.\n * Identity function — provides type inference for theo.config.ts.\n * Runtime validation happens in loadConfig(), not here.\n */\nexport function defineConfig(config: Partial<TheoConfig>): Partial<TheoConfig> {\n return config\n}\n","/**\n * M31 Phase 3 — `config()`, the fluent builder that replaces `defineConfig({...})`.\n *\n * Config is a ~30-field flat bag — a pure setter chain would be worse DX than an object literal\n * (Vite/Nuxt/Astro keep config as identity for this reason). So `config()` is HYBRID (ADR-M31-3):\n * chainable setters for the common fields PLUS a `.set(partial)` escape hatch for the long tail.\n * `.build()` delegates to the internal {@link defineConfig} (identity) — `loadConfig` is UNCHANGED.\n *\n * export default config()\n * .serverDir('core')\n * .agentsDir('core/agents')\n * .appDir('apps/web')\n * .set({ security: { csrf: 'strict' } })\n * .build()\n */\nimport { defineConfig } from './define-config.js'\nimport type { TheoConfig } from './schema.js'\n\n/** The fluent config builder. No field is required; `.set()` merges arbitrary config fields. */\nexport interface ConfigBuilder {\n /** Project identifier (DNS-1123) — used by `.theokit/services.json`. */\n name(value: TheoConfig['name']): ConfigBuilder\n /** Backend root dir (route/action/agent discovery). Default `'server'`. */\n serverDir(value: TheoConfig['serverDir']): ConfigBuilder\n /** Frontend root dir (file-based router). Default `'app'`. */\n appDir(value: TheoConfig['appDir']): ConfigBuilder\n /** Agents root dir. Default `'agents'`. */\n agentsDir(value: TheoConfig['agentsDir']): ConfigBuilder\n /** Build output dir. Default `'.theokit'`. */\n distDir(value: TheoConfig['distDir']): ConfigBuilder\n /** Dev/prod port. Default `3000`. */\n port(value: TheoConfig['port']): ConfigBuilder\n /** Bind host. Default `'localhost'`. */\n host(value: TheoConfig['host']): ConfigBuilder\n /** Enable server-side rendering. Default `false`. */\n ssr(value: TheoConfig['ssr']): ConfigBuilder\n /** Escape hatch — merge any config fields not covered by a dedicated setter (rate-limit, security…). */\n set(partial: Partial<TheoConfig>): ConfigBuilder\n /** Resolve to the `Partial<TheoConfig>` — the SAME value `defineConfig({...})` returns. */\n build(): Partial<TheoConfig>\n}\n\nfunction makeConfigBuilder(spec: Partial<TheoConfig>): ConfigBuilder {\n const merge = (patch: Partial<TheoConfig>): ConfigBuilder =>\n makeConfigBuilder({ ...spec, ...patch })\n return {\n name: (value) => merge({ name: value }),\n serverDir: (value) => merge({ serverDir: value }),\n appDir: (value) => merge({ appDir: value }),\n agentsDir: (value) => merge({ agentsDir: value }),\n distDir: (value) => merge({ distDir: value }),\n port: (value) => merge({ port: value }),\n host: (value) => merge({ host: value }),\n ssr: (value) => merge({ ssr: value }),\n set: (partial) => merge(partial),\n build: () => defineConfig(spec),\n }\n}\n\n/**\n * Start a fluent config definition. Chain the common setters and/or `.set(partial)`, then `.build()`.\n */\nexport function config(): ConfigBuilder {\n return makeConfigBuilder({})\n}\n","/* eslint-disable security/detect-non-literal-fs-filename --\n * Project-structure validator. Reads paths joined onto `projectRoot`,\n * with names from a fixed `ValidationRule[]` table. No HTTP input.\n */\nimport { existsSync } from 'node:fs'\nimport { join } from 'node:path'\n\nimport { TheoProjectError } from '../core/errors.js'\n\ninterface ValidationRule {\n path: string\n errorMessage: string\n}\n\nconst REQUIRED_FILES: ValidationRule[] = [\n {\n path: 'theo.config.ts',\n errorMessage: 'Missing required file: theo.config.ts',\n },\n {\n path: 'package.json',\n errorMessage: 'Missing required file: package.json',\n },\n]\n\n// #95 — honor config `appDir` (default \"app\") so a project that groups its frontend under a custom\n// directory (e.g. `apps/web`) is not rejected by a hardcoded `app/` requirement.\nexport function validateProjectStructure(rootDir: string, appDir = 'app'): void {\n if (!existsSync(rootDir)) {\n throw new TheoProjectError([`Project directory does not exist: ${rootDir}`], rootDir)\n }\n\n const errors: string[] = []\n\n const requiredDirs: ValidationRule[] = [\n { path: appDir, errorMessage: `Missing required directory: ${appDir}/` },\n ]\n\n for (const rule of requiredDirs) {\n if (!existsSync(join(rootDir, rule.path))) {\n errors.push(rule.errorMessage)\n }\n }\n\n for (const rule of REQUIRED_FILES) {\n if (!existsSync(join(rootDir, rule.path))) {\n errors.push(rule.errorMessage)\n }\n }\n\n if (errors.length > 0) {\n throw new TheoProjectError(errors, rootDir)\n }\n}\n","export class TheoProjectError extends Error {\n public readonly errors: string[]\n public readonly rootDir: string\n\n constructor(errors: string[], rootDir: string) {\n const errorLines = errors.map((e) => ` - ${e}`).join('\\n')\n\n super(\n `Invalid Theo project structure\\n\\n` +\n ` Root: ${rootDir}\\n\\n` +\n (errorLines ? ` Errors:\\n${errorLines}\\n` : ''),\n )\n\n this.name = 'TheoProjectError'\n this.errors = errors\n this.rootDir = rootDir\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOO,SAAS,aAAaA,SAAkD;AAC7E,SAAOA;AACT;;;ACiCA,SAAS,kBAAkB,MAA0C;AACnE,QAAM,QAAQ,CAAC,UACb,kBAAkB,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC;AACzC,SAAO;AAAA,IACL,MAAM,CAAC,UAAU,MAAM,EAAE,MAAM,MAAM,CAAC;AAAA,IACtC,WAAW,CAAC,UAAU,MAAM,EAAE,WAAW,MAAM,CAAC;AAAA,IAChD,QAAQ,CAAC,UAAU,MAAM,EAAE,QAAQ,MAAM,CAAC;AAAA,IAC1C,WAAW,CAAC,UAAU,MAAM,EAAE,WAAW,MAAM,CAAC;AAAA,IAChD,SAAS,CAAC,UAAU,MAAM,EAAE,SAAS,MAAM,CAAC;AAAA,IAC5C,MAAM,CAAC,UAAU,MAAM,EAAE,MAAM,MAAM,CAAC;AAAA,IACtC,MAAM,CAAC,UAAU,MAAM,EAAE,MAAM,MAAM,CAAC;AAAA,IACtC,KAAK,CAAC,UAAU,MAAM,EAAE,KAAK,MAAM,CAAC;AAAA,IACpC,KAAK,CAAC,YAAY,MAAM,OAAO;AAAA,IAC/B,OAAO,MAAM,aAAa,IAAI;AAAA,EAChC;AACF;AAKO,SAAS,SAAwB;AACtC,SAAO,kBAAkB,CAAC,CAAC;AAC7B;;;AC5DA,SAAS,kBAAkB;AAC3B,SAAS,YAAY;;;ACLd,IAAM,mBAAN,cAA+B,MAAM;AAAA,EAC1B;AAAA,EACA;AAAA,EAEhB,YAAY,QAAkB,SAAiB;AAC7C,UAAM,aAAa,OAAO,IAAI,CAAC,MAAM,OAAO,CAAC,EAAE,EAAE,KAAK,IAAI;AAE1D;AAAA,MACE;AAAA;AAAA,UACa,OAAO;AAAA;AAAA,KACjB,aAAa;AAAA,EAAc,UAAU;AAAA,IAAO;AAAA,IACjD;AAEA,SAAK,OAAO;AACZ,SAAK,SAAS;AACd,SAAK,UAAU;AAAA,EACjB;AACF;;;ADHA,IAAM,iBAAmC;AAAA,EACvC;AAAA,IACE,MAAM;AAAA,IACN,cAAc;AAAA,EAChB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,cAAc;AAAA,EAChB;AACF;AAIO,SAAS,yBAAyB,SAAiB,SAAS,OAAa;AAC9E,MAAI,CAAC,WAAW,OAAO,GAAG;AACxB,UAAM,IAAI,iBAAiB,CAAC,qCAAqC,OAAO,EAAE,GAAG,OAAO;AAAA,EACtF;AAEA,QAAM,SAAmB,CAAC;AAE1B,QAAM,eAAiC;AAAA,IACrC,EAAE,MAAM,QAAQ,cAAc,+BAA+B,MAAM,IAAI;AAAA,EACzE;AAEA,aAAW,QAAQ,cAAc;AAC/B,QAAI,CAAC,WAAW,KAAK,SAAS,KAAK,IAAI,CAAC,GAAG;AACzC,aAAO,KAAK,KAAK,YAAY;AAAA,IAC/B;AAAA,EACF;AAEA,aAAW,QAAQ,gBAAgB;AACjC,QAAI,CAAC,WAAW,KAAK,SAAS,KAAK,IAAI,CAAC,GAAG;AACzC,aAAO,KAAK,KAAK,YAAY;AAAA,IAC/B;AAAA,EACF;AAEA,MAAI,OAAO,SAAS,GAAG;AACrB,UAAM,IAAI,iBAAiB,QAAQ,OAAO;AAAA,EAC5C;AACF;","names":["config"]}
1
+ {"version":3,"sources":["../src/config/define-config.ts","../src/config/config-builder.ts","../src/config/validate-structure.ts","../src/core/errors.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOO,SAAS,aAAaA,SAAkD;AAC7E,SAAOA;AACT;;;ACiCA,SAAS,kBAAkB,MAA0C;AACnE,QAAM,QAAQ,CAAC,UACb,kBAAkB,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC;AACzC,SAAO;AAAA,IACL,MAAM,CAAC,UAAU,MAAM,EAAE,MAAM,MAAM,CAAC;AAAA,IACtC,WAAW,CAAC,UAAU,MAAM,EAAE,WAAW,MAAM,CAAC;AAAA,IAChD,QAAQ,CAAC,UAAU,MAAM,EAAE,QAAQ,MAAM,CAAC;AAAA,IAC1C,WAAW,CAAC,UAAU,MAAM,EAAE,WAAW,MAAM,CAAC;AAAA,IAChD,SAAS,CAAC,UAAU,MAAM,EAAE,SAAS,MAAM,CAAC;AAAA,IAC5C,MAAM,CAAC,UAAU,MAAM,EAAE,MAAM,MAAM,CAAC;AAAA,IACtC,MAAM,CAAC,UAAU,MAAM,EAAE,MAAM,MAAM,CAAC;AAAA,IACtC,KAAK,CAAC,UAAU,MAAM,EAAE,KAAK,MAAM,CAAC;AAAA,IACpC,KAAK,CAAC,YAAY,MAAM,OAAO;AAAA,IAC/B,OAAO,MAAM,aAAa,IAAI;AAAA,EAChC;AACF;AAKO,SAAS,SAAwB;AACtC,SAAO,kBAAkB,CAAC,CAAC;AAC7B;;;AC5DA,SAAS,kBAAkB;AAC3B,SAAS,YAAY;;;ACLd,IAAM,mBAAN,cAA+B,MAAM;AAAA,EAC1B;AAAA,EACA;AAAA,EAEhB,YAAY,QAAkB,SAAiB;AAC7C,UAAM,aAAa,OAAO,IAAI,CAAC,MAAM,OAAO,CAAC,EAAE,EAAE,KAAK,IAAI;AAE1D;AAAA,MACE;AAAA;AAAA,UACa,OAAO;AAAA;AAAA,KACjB,aAAa;AAAA,EAAc,UAAU;AAAA,IAAO;AAAA,IACjD;AAEA,SAAK,OAAO;AACZ,SAAK,SAAS;AACd,SAAK,UAAU;AAAA,EACjB;AACF;;;ADHA,IAAM,iBAAmC;AAAA,EACvC;AAAA,IACE,MAAM;AAAA,IACN,cAAc;AAAA,EAChB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,cAAc;AAAA,EAChB;AACF;AAIO,SAAS,yBAAyB,SAAiB,SAAS,OAAa;AAC9E,MAAI,CAAC,WAAW,OAAO,GAAG;AACxB,UAAM,IAAI,iBAAiB,CAAC,qCAAqC,OAAO,EAAE,GAAG,OAAO;AAAA,EACtF;AAEA,QAAM,SAAmB,CAAC;AAE1B,QAAM,eAAiC;AAAA,IACrC,EAAE,MAAM,QAAQ,cAAc,+BAA+B,MAAM,IAAI;AAAA,EACzE;AAEA,aAAW,QAAQ,cAAc;AAC/B,QAAI,CAAC,WAAW,KAAK,SAAS,KAAK,IAAI,CAAC,GAAG;AACzC,aAAO,KAAK,KAAK,YAAY;AAAA,IAC/B;AAAA,EACF;AAEA,aAAW,QAAQ,gBAAgB;AACjC,QAAI,CAAC,WAAW,KAAK,SAAS,KAAK,IAAI,CAAC,GAAG;AACzC,aAAO,KAAK,KAAK,YAAY;AAAA,IAC/B;AAAA,EACF;AAEA,MAAI,OAAO,SAAS,GAAG;AACrB,UAAM,IAAI,iBAAiB,QAAQ,OAAO;AAAA,EAC5C;AACF;","names":["config"]}
@@ -5,9 +5,9 @@ import {
5
5
  } from "./chunk-IEES3CHD.js";
6
6
  import {
7
7
  loadConfig
8
- } from "./chunk-CJNMJUHE.js";
8
+ } from "./chunk-B7ONQ4QJ.js";
9
9
  import "./chunk-GDN3PXFH.js";
10
- import "./chunk-6OXCZMW3.js";
10
+ import "./chunk-HEK4SET7.js";
11
11
  import "./chunk-QPVXGC7O.js";
12
12
 
13
13
  // src/cli/commands/info.ts
@@ -101,4 +101,4 @@ export {
101
101
  buildInfo,
102
102
  infoCommand
103
103
  };
104
- //# sourceMappingURL=info-75U6GCMD.js.map
104
+ //# sourceMappingURL=info-ICDTPJDC.js.map
@@ -6,12 +6,11 @@ import {
6
6
  CsrfReadinessStore,
7
7
  TRACE_HEADER,
8
8
  createCorsHandler,
9
- dispatchControllerRequest,
10
9
  extractTraceId,
11
10
  handleBatchRequest,
12
11
  handleCspReport,
13
12
  handleCsrfReadiness
14
- } from "./chunk-N2D5AVRR.js";
13
+ } from "./chunk-HRCNHWLP.js";
15
14
  import {
16
15
  applySecurityHeaders,
17
16
  createPluginRunnerFromConfig,
@@ -21,14 +20,17 @@ import {
21
20
  executeRoute,
22
21
  findSuggestion,
23
22
  generateNonce,
24
- incomingMessageToHandlerRequest,
25
- logRequest,
26
- mountAgent,
27
- sendError
28
- } from "./chunk-IE6C4KZX.js";
23
+ mountAgent
24
+ } from "./chunk-Q5OT7LZG.js";
29
25
  import {
30
26
  resolveProvider
31
27
  } from "./chunk-TDNNBLGW.js";
28
+ import {
29
+ dispatchControllerRequest,
30
+ incomingMessageToHandlerRequest,
31
+ logRequest,
32
+ sendError
33
+ } from "./chunk-FXZZS7YW.js";
32
34
  import {
33
35
  generateManifest
34
36
  } from "./chunk-OXCALO3W.js";
@@ -76,4 +78,4 @@ export {
76
78
  scanWebSocketRoutes,
77
79
  sendError
78
80
  };
79
- //# sourceMappingURL=internal-api-JFORKYLR.js.map
81
+ //# sourceMappingURL=internal-api-ALXVBL56.js.map
@@ -2,7 +2,7 @@ import {
2
2
  dispatchControllerRequest,
3
3
  mountAgent,
4
4
  resolveProvider
5
- } from "./chunk-DJFMAWH5.js";
5
+ } from "./chunk-EIRQM55C.js";
6
6
  import {
7
7
  BATCH_PATH,
8
8
  TRACE_HEADER,
@@ -13,23 +13,23 @@ import {
13
13
  handleBatchRequest,
14
14
  incomingMessageToHandlerRequest,
15
15
  sendError
16
- } from "./chunk-JIL74SFK.js";
17
- import "./chunk-6FK7FKY6.js";
16
+ } from "./chunk-37ZO643S.js";
17
+ import "./chunk-47FFT43U.js";
18
18
  import {
19
19
  findSuggestion
20
- } from "./chunk-5QW7IQQU.js";
20
+ } from "./chunk-NTDN54XO.js";
21
21
  import {
22
22
  logRequest
23
- } from "./chunk-VPISAMXU.js";
23
+ } from "./chunk-KD5G3YXI.js";
24
24
  import {
25
25
  createPluginRunnerFromConfig
26
- } from "./chunk-IAJ2JVEH.js";
26
+ } from "./chunk-VSLTKX5L.js";
27
27
  import {
28
28
  createRateLimiter
29
- } from "./chunk-VMEWD57H.js";
29
+ } from "./chunk-KPKLIUUL.js";
30
30
  import {
31
31
  createViteLoader
32
- } from "./chunk-JQSKBMXP.js";
32
+ } from "./chunk-7LVM22VG.js";
33
33
  import {
34
34
  generateManifest,
35
35
  matchRoute,
@@ -38,25 +38,25 @@ import {
38
38
  scanServerActionsEnriched,
39
39
  scanServerRoutes,
40
40
  scanWebSocketRoutes
41
- } from "./chunk-4HAU7AJM.js";
42
- import "./chunk-WSJKACWB.js";
43
- import "./chunk-ZEGYW52B.js";
41
+ } from "./chunk-L4Y6RJ4E.js";
42
+ import "./chunk-C34PMLSN.js";
43
+ import "./chunk-FB2HBNIC.js";
44
44
  import {
45
45
  CSP_REPORT_PATH,
46
46
  CsrfReadinessStore,
47
47
  applySecurityHeaders,
48
48
  handleCspReport,
49
49
  handleCsrfReadiness
50
- } from "./chunk-JBCHWRKF.js";
51
- import "./chunk-TSLSIRBR.js";
52
- import "./chunk-UD3LFGDL.js";
53
- import "./chunk-X32XEJXR.js";
54
- import "./chunk-UVXB2ER7.js";
50
+ } from "./chunk-MTEWLGVY.js";
51
+ import "./chunk-OLGPYOLO.js";
52
+ import "./chunk-AVQU5CQF.js";
53
+ import "./chunk-ACKBVBUI.js";
54
+ import "./chunk-7SABX4DJ.js";
55
55
  import {
56
56
  generateNonce
57
- } from "./chunk-C3ZZ56YZ.js";
58
- import "./chunk-65EFIUDD.js";
59
- import "./chunk-DGUM43GV.js";
57
+ } from "./chunk-JA2ZAT5Q.js";
58
+ import "./chunk-U267AOWS.js";
59
+ import "./chunk-XTHN6JBX.js";
60
60
  export {
61
61
  BATCH_PATH,
62
62
  CSP_REPORT_PATH,
@@ -89,4 +89,4 @@ export {
89
89
  scanWebSocketRoutes,
90
90
  sendError
91
91
  };
92
- //# sourceMappingURL=internal-api-DV3H5NNV.js.map
92
+ //# sourceMappingURL=internal-api-S7WK2WCY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"mappings":"","names":[]}
@@ -3,12 +3,12 @@ import "tsx/esm";
3
3
  import {
4
4
  deepMerge,
5
5
  loadConfig
6
- } from "./chunk-CJNMJUHE.js";
6
+ } from "./chunk-B7ONQ4QJ.js";
7
7
  import "./chunk-GDN3PXFH.js";
8
- import "./chunk-6OXCZMW3.js";
8
+ import "./chunk-HEK4SET7.js";
9
9
  import "./chunk-QPVXGC7O.js";
10
10
  export {
11
11
  deepMerge,
12
12
  loadConfig
13
13
  };
14
- //# sourceMappingURL=load-config-XP7NSSA7.js.map
14
+ //# sourceMappingURL=load-config-ICCNMO74.js.map
@@ -2,7 +2,7 @@
2
2
  import "tsx/esm";
3
3
  import {
4
4
  createAgentSsrLoader
5
- } from "./chunk-2WH6SD3C.js";
5
+ } from "./chunk-DSOBIXXR.js";
6
6
  import {
7
7
  extractAppResources,
8
8
  handleMcpJsonRpc
@@ -46,7 +46,7 @@ async function serveMcpStdio(mod, name, appResources, streams) {
46
46
  // src/cli/commands/mcp.ts
47
47
  async function mcpCommand(name, deps = {}) {
48
48
  const projectRoot = deps.projectRoot ?? process.cwd();
49
- const agentsDir = deps.agentsDir ?? (await (await import("./load-config-XP7NSSA7.js")).loadConfig(projectRoot)).agentsDir;
49
+ const agentsDir = deps.agentsDir ?? (await (await import("./load-config-ICCNMO74.js")).loadConfig(projectRoot)).agentsDir;
50
50
  const agent = scanAgents(projectRoot, agentsDir).find((a) => a.name === name);
51
51
  if (!agent) {
52
52
  const names = scanAgents(projectRoot, agentsDir).map((a) => a.name).join(", ");
@@ -75,4 +75,4 @@ async function mcpCommand(name, deps = {}) {
75
75
  export {
76
76
  mcpCommand
77
77
  };
78
- //# sourceMappingURL=mcp-FF3NTCHB.js.map
78
+ //# sourceMappingURL=mcp-4JFODA5U.js.map
@@ -6,9 +6,9 @@ import {
6
6
  } from "./chunk-47VNWTL4.js";
7
7
  import {
8
8
  loadConfig
9
- } from "./chunk-CJNMJUHE.js";
9
+ } from "./chunk-B7ONQ4QJ.js";
10
10
  import "./chunk-GDN3PXFH.js";
11
- import "./chunk-6OXCZMW3.js";
11
+ import "./chunk-HEK4SET7.js";
12
12
  import "./chunk-QPVXGC7O.js";
13
13
  import {
14
14
  generateManifest
@@ -82,4 +82,4 @@ function emitOpenApiInMemory(manifest, config) {
82
82
  export {
83
83
  openapiCommand
84
84
  };
85
- //# sourceMappingURL=openapi-ZPXYRAM2.js.map
85
+ //# sourceMappingURL=openapi-NIYA2VBG.js.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  buildUseTheoQueryConfig,
3
3
  stableQueryKey
4
- } from "../chunk-FH3DYBAN.js";
5
- import "../chunk-DGUM43GV.js";
4
+ } from "../chunk-ANS4ELRH.js";
5
+ import "../chunk-XTHN6JBX.js";
6
6
  export {
7
7
  buildUseTheoQueryConfig,
8
8
  buildUseTheoQueryConfig as buildUseTheoQueryInternals,
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":[],"mappings":"","names":[]}
@@ -5,9 +5,9 @@ import {
5
5
  } from "./chunk-GEQJAFSV.js";
6
6
  import {
7
7
  loadConfig
8
- } from "./chunk-CJNMJUHE.js";
8
+ } from "./chunk-B7ONQ4QJ.js";
9
9
  import "./chunk-GDN3PXFH.js";
10
- import "./chunk-6OXCZMW3.js";
10
+ import "./chunk-HEK4SET7.js";
11
11
  import "./chunk-QPVXGC7O.js";
12
12
  import {
13
13
  scanServerActions,
@@ -62,4 +62,4 @@ async function routesCommand() {
62
62
  export {
63
63
  routesCommand
64
64
  };
65
- //# sourceMappingURL=routes-ZVDKABXZ.js.map
65
+ //# sourceMappingURL=routes-2RD4S5PZ.js.map
@@ -8,7 +8,7 @@ import {
8
8
  securitySchema,
9
9
  storageSchema,
10
10
  theoConfigSchema
11
- } from "./chunk-6OXCZMW3.js";
11
+ } from "./chunk-HEK4SET7.js";
12
12
  import "./chunk-QPVXGC7O.js";
13
13
  export {
14
14
  cacheSchema,
@@ -19,4 +19,4 @@ export {
19
19
  storageSchema,
20
20
  theoConfigSchema
21
21
  };
22
- //# sourceMappingURL=schema-FBOTN46F.js.map
22
+ //# sourceMappingURL=schema-S553QCAU.js.map
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
2
  import { C as CustomTool } from '../../define-agent-tool-cRuSpidb.js';
3
- import { AcpTransport, HumanInTheLoopOptions, HitlDecision, streamAgentUIMessages } from '@theokit/agents';
3
+ import { AcpTransport } from '@theokit/agents';
4
+ export { InProcessApprovalRequest, InProcessApprovalRequiredError, InProcessAwaitApproval, StreamAgentTurnDeps, StreamAgentTurnInProcessInput, streamAgentTurnInProcess } from '@theokit/agents';
4
5
  import { CustomTool as CustomTool$1 } from '@theokit/sdk';
5
6
  import { V as VerifyFn } from '../../webhook-types-CNUZY7o1.js';
6
- import { UIMessageChunk } from 'ai';
7
7
 
8
8
  /**
9
9
  * M26 (ADR-0041) — `createWorkflowTool`: wrap an SDK `Workflow` as a `CustomTool`.
@@ -229,75 +229,6 @@ interface ChannelWebhookConfig {
229
229
  */
230
230
  declare function handleChannelWebhook(request: Request, urlPath: string, config: ChannelWebhookConfig): Promise<Response>;
231
231
 
232
- /**
233
- * M35 (multi-surface) — the in-process agent-turn seam (Model A).
234
- *
235
- * The FRAMEWORK-owned sibling of the HTTP `mountAgent` and the stdout `runAgentInTerminal`: it runs a
236
- * compiled agent with the SAME `compileAgentModule` + SAME `streamAgentUIMessages` (G2 — reuses the
237
- * SDK runtime, reimplements nothing), but returns the raw `UIMessageChunk` generator so ANY consumer
238
- * drives it directly — the Ink TUI (M35), a Tauri window (M36), or a test — in a SINGLE process with
239
- * NO HTTP loopback, NO port, and NO CSRF (there is no network boundary to defend).
240
- *
241
- * The ONLY difference from the HTTP mount is HITL resolution: the mount pauses the run and resolves
242
- * the approval via a SECOND HTTP request to `/approve/:id` (the approval registry). In-process there
243
- * is no second request — the caller resolves the approval INLINE via `awaitApproval` (e.g. the Ink
244
- * TUI's y/n prompt). The gated-tool map is `compiled.hitl` verbatim, so the pause semantics are
245
- * byte-identical to the HTTP path; only the resolver differs. Parity with the mount is by
246
- * construction: both compile the module, resolve function-form skills, and call `streamAgentUIMessages`
247
- * with the same `{ message, sessionId, hitl }`.
248
- *
249
- * Consumers WILL still receive `tool-approval-request` chunks from the returned generator — they are
250
- * INFORMATIONAL (render them or ignore them). The authoritative human gate is `awaitApproval`, which
251
- * the SDK awaits BEFORE the gated tool runs; the chunk is not the gate.
252
- */
253
-
254
- /** An inline approval request handed to the caller's `awaitApproval` (the Ink/Tauri prompt). */
255
- interface InProcessApprovalRequest {
256
- approvalId: string;
257
- toolName: string;
258
- opts: HumanInTheLoopOptions;
259
- }
260
- /** Resolve one gated-tool approval inline (approve/deny, or a structured {@link HitlDecision}). */
261
- type InProcessAwaitApproval = (req: InProcessApprovalRequest) => Promise<boolean | HitlDecision>;
262
- interface StreamAgentTurnInProcessInput {
263
- message: string;
264
- /**
265
- * M35 (multimodal) — images to send alongside the text. Threaded to the SDK's structured
266
- * `SDKUserMessage { text, images }` send form. Absent ⇒ the string send path is byte-unchanged.
267
- */
268
- images?: Parameters<typeof streamAgentUIMessages>[2]['images'];
269
- /** Resume key; a fresh id per run when omitted. */
270
- sessionId?: string;
271
- /**
272
- * Inline HITL resolver — required IFF the agent has `@HumanInTheLoop`-gated tools. Omitting it for a
273
- * gated agent is a fail-fast error, never a silent bypass (Rule 8, the #99 lesson).
274
- */
275
- awaitApproval?: InProcessAwaitApproval;
276
- /** Labels a fail-fast `AgentDefinitionError` (the file path). */
277
- source?: string;
278
- /** Abort signal forwarded to the SDK stream (client disconnect / window close). */
279
- signal?: AbortSignal;
280
- }
281
- /** Injectable stream fn (defaults to the real SDK bridge) — lets tests drive a deterministic stream. */
282
- interface StreamAgentTurnDeps {
283
- stream: typeof streamAgentUIMessages;
284
- }
285
- /**
286
- * Thrown when a gated agent is run in-process without an `awaitApproval` resolver. Refusing loudly is
287
- * the correct posture: silently running a `@HumanInTheLoop`-gated tool with no human gate is exactly
288
- * the #99 class of bug. Typed so callers can catch it distinctly.
289
- */
290
- declare class InProcessApprovalRequiredError extends Error {
291
- constructor(toolNames: readonly string[]);
292
- }
293
- /**
294
- * Run a compiled agent in-process and return its `UIMessageChunk` stream. `apiKey` is resolved by the
295
- * caller (same contract as the HTTP mount). Validation + compile happen SYNCHRONOUSLY (so a gated
296
- * agent without a resolver throws at call time, not lazily on first iteration); the returned value is
297
- * the SDK's `streamAgentUIMessages` generator.
298
- */
299
- declare function streamAgentTurnInProcess(mod: unknown, apiKey: string, input: StreamAgentTurnInProcessInput, deps?: StreamAgentTurnDeps): AsyncGenerator<UIMessageChunk>;
300
-
301
232
  /**
302
233
  * M30 (ADR-0041) — MCP Apps: `ui://` HTML resources for the MCP server (M16).
303
234
  *
@@ -389,4 +320,4 @@ interface StdioStreams {
389
320
  */
390
321
  declare function serveMcpStdio(mod: unknown, name: string, appResources: readonly AppResource[], streams: StdioStreams): Promise<void>;
391
322
 
392
- export { type AcpToolConfig, type AppResource, type AppResourceInput, type ChannelMessage, type ChannelWebhookConfig, type CodeModeApi, type CodeModeConfig, type CodeModePermission, CodeModePermissionDeniedError, type InProcessApprovalRequest, InProcessApprovalRequiredError, type InProcessAwaitApproval, type McpResourceContents, type McpResourceDescriptor, NodeAcpTransport, type Sandbox, type StdioStreams, type StreamAgentTurnDeps, type StreamAgentTurnInProcessInput, type VendorAgentClient, type VendorAgentToolConfig, type WorkflowLike, type WorkflowToolConfig, buildResourceDescriptors, createACPTool, createCodeMode, createVendorAgentTool, createWorkflowTool, defineAppResource, extractAppResources, handleChannelWebhook, handleMcpStdioLine, isChannelPath, parseChannelPath, readAppResource, serveMcpStdio, streamAgentTurnInProcess };
323
+ export { type AcpToolConfig, type AppResource, type AppResourceInput, type ChannelMessage, type ChannelWebhookConfig, type CodeModeApi, type CodeModeConfig, type CodeModePermission, CodeModePermissionDeniedError, type McpResourceContents, type McpResourceDescriptor, NodeAcpTransport, type Sandbox, type StdioStreams, type VendorAgentClient, type VendorAgentToolConfig, type WorkflowLike, type WorkflowToolConfig, buildResourceDescriptors, createACPTool, createCodeMode, createVendorAgentTool, createWorkflowTool, defineAppResource, extractAppResources, handleChannelWebhook, handleMcpStdioLine, isChannelPath, parseChannelPath, readAppResource, serveMcpStdio };
@@ -12,15 +12,15 @@ import {
12
12
  parseChannelPath,
13
13
  serveMcpStdio,
14
14
  streamAgentTurnInProcess
15
- } from "../../chunk-HGUZWG2C.js";
15
+ } from "../../chunk-FZG3JYB3.js";
16
16
  import {
17
17
  buildResourceDescriptors,
18
18
  defineAppResource,
19
19
  extractAppResources,
20
20
  readAppResource
21
- } from "../../chunk-HZ6USUHC.js";
22
- import "../../chunk-E25FBYJP.js";
23
- import "../../chunk-DGUM43GV.js";
21
+ } from "../../chunk-YOIVCCZT.js";
22
+ import "../../chunk-SAFGDIPQ.js";
23
+ import "../../chunk-XTHN6JBX.js";
24
24
  export {
25
25
  CodeModePermissionDeniedError,
26
26
  InProcessApprovalRequiredError,
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":[],"mappings":"","names":[]}
@@ -23,12 +23,12 @@ import {
23
23
  verifyBackupCode,
24
24
  verifyOAuthState,
25
25
  verifyTotp
26
- } from "../../chunk-SJIRP73B.js";
27
- import "../../chunk-ZJQ4O76G.js";
26
+ } from "../../chunk-646CA6RV.js";
27
+ import "../../chunk-4FWBKX6G.js";
28
28
  import {
29
29
  generateNonce
30
- } from "../../chunk-C3ZZ56YZ.js";
31
- import "../../chunk-DGUM43GV.js";
30
+ } from "../../chunk-JA2ZAT5Q.js";
31
+ import "../../chunk-XTHN6JBX.js";
32
32
  export {
33
33
  AuthRequiredError,
34
34
  _resetKeyCacheForTests,
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":[],"mappings":"","names":[]}
@@ -2,8 +2,8 @@ import {
2
2
  InMemoryUsageStorage,
3
3
  trackAgentRun,
4
4
  trackAgentTools
5
- } from "../../chunk-OP7QCTR5.js";
6
- import "../../chunk-DGUM43GV.js";
5
+ } from "../../chunk-SEELKQUM.js";
6
+ import "../../chunk-XTHN6JBX.js";
7
7
  export {
8
8
  InMemoryUsageStorage,
9
9
  trackAgentRun,
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":[],"mappings":"","names":[]}
@@ -14,12 +14,12 @@ import {
14
14
  translateCronToVercel,
15
15
  validateCronSchedule,
16
16
  writeCronManifest
17
- } from "../../chunk-26ECIX74.js";
18
- import "../../chunk-YB5DJJ4U.js";
19
- import "../../chunk-6NEXVBPY.js";
20
- import "../../chunk-7MQOHNHE.js";
21
- import "../../chunk-65EFIUDD.js";
22
- import "../../chunk-DGUM43GV.js";
17
+ } from "../../chunk-2ADKT37V.js";
18
+ import "../../chunk-VZTYCAO6.js";
19
+ import "../../chunk-RWNSW4FM.js";
20
+ import "../../chunk-52PDWL5S.js";
21
+ import "../../chunk-U267AOWS.js";
22
+ import "../../chunk-XTHN6JBX.js";
23
23
  export {
24
24
  CRON_MANIFEST_SCHEMA_VERSION,
25
25
  DuplicateCronNameError,
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":[],"mappings":"","names":[]}
@@ -8,18 +8,18 @@ import {
8
8
  tool,
9
9
  uiMessageStreamResponse,
10
10
  websocket
11
- } from "../../chunk-JQJN6LFK.js";
11
+ } from "../../chunk-62EU2BVZ.js";
12
12
  import {
13
13
  HEALTH_PATH,
14
14
  READY_PATH,
15
15
  defineHealthRoute,
16
16
  defineReadyRoute,
17
17
  serveReservedRoute
18
- } from "../../chunk-V3LJN2GS.js";
18
+ } from "../../chunk-GAPBPRPP.js";
19
19
  import {
20
20
  applyTransform
21
- } from "../../chunk-E25FBYJP.js";
22
- import "../../chunk-DGUM43GV.js";
21
+ } from "../../chunk-SAFGDIPQ.js";
22
+ import "../../chunk-XTHN6JBX.js";
23
23
  export {
24
24
  HEALTH_PATH,
25
25
  READY_PATH,
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":[],"mappings":"","names":[]}
@@ -2,7 +2,7 @@ import {
2
2
  MAX_ERROR_HTML_BYTES,
3
3
  loadCustomErrorPages,
4
4
  serveStaticFile
5
- } from "../../chunk-OPLICDUB.js";
5
+ } from "../../chunk-UW2TEAGR.js";
6
6
  import {
7
7
  BATCH_PATH,
8
8
  BatchPathConflictError,
@@ -24,21 +24,21 @@ import {
24
24
  runMiddlewareAndContext,
25
25
  sendError,
26
26
  sendJson
27
- } from "../../chunk-JIL74SFK.js";
28
- import "../../chunk-6FK7FKY6.js";
29
- import "../../chunk-VPISAMXU.js";
30
- import "../../chunk-ZEGYW52B.js";
31
- import "../../chunk-TSLSIRBR.js";
32
- import "../../chunk-UD3LFGDL.js";
27
+ } from "../../chunk-37ZO643S.js";
28
+ import "../../chunk-47FFT43U.js";
29
+ import "../../chunk-KD5G3YXI.js";
30
+ import "../../chunk-FB2HBNIC.js";
31
+ import "../../chunk-OLGPYOLO.js";
32
+ import "../../chunk-AVQU5CQF.js";
33
33
  import {
34
34
  envelopeCodeToStatus
35
- } from "../../chunk-X32XEJXR.js";
35
+ } from "../../chunk-ACKBVBUI.js";
36
36
  import {
37
37
  NotFoundError,
38
38
  TheoError,
39
39
  fromUnknown,
40
40
  serverErrorToEnvelope
41
- } from "../../chunk-UVXB2ER7.js";
41
+ } from "../../chunk-7SABX4DJ.js";
42
42
  import {
43
43
  appendCookieToHeaders,
44
44
  appendDeleteCookieToHeaders,
@@ -48,8 +48,8 @@ import {
48
48
  parseCookieHeader,
49
49
  serializeCookie,
50
50
  setCookie
51
- } from "../../chunk-ZJQ4O76G.js";
52
- import "../../chunk-DGUM43GV.js";
51
+ } from "../../chunk-4FWBKX6G.js";
52
+ import "../../chunk-XTHN6JBX.js";
53
53
  export {
54
54
  BATCH_PATH,
55
55
  BatchPathConflictError,
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":[],"mappings":"","names":[]}
@@ -29,14 +29,14 @@ export { G as GenericFactory, a as PoolLike, P as PostgresDatabaseConfig, c as R
29
29
  export { BodyTooLargeError, DEFAULT_MAX_BODY_BYTES, RawBodyResult, ReadRawBodyOptions, defineWebhook, dispatchWebhook, readRawBody, timingSafeEqual } from './webhook/index.js';
30
30
  export { D as DefineWebhookOptions, V as VerifyFn, a as VerifyResult, W as WebhookContext, b as WebhookDefinition } from '../webhook-types-CNUZY7o1.js';
31
31
  import { z } from 'zod';
32
- export { AcpToolConfig, AppResource, AppResourceInput, ChannelMessage, ChannelWebhookConfig, CodeModeApi, CodeModeConfig, CodeModePermission, CodeModePermissionDeniedError, InProcessApprovalRequest, InProcessApprovalRequiredError, InProcessAwaitApproval, McpResourceContents, McpResourceDescriptor, NodeAcpTransport, Sandbox, StdioStreams, StreamAgentTurnDeps, StreamAgentTurnInProcessInput, VendorAgentClient, VendorAgentToolConfig, WorkflowLike, WorkflowToolConfig, buildResourceDescriptors, createACPTool, createCodeMode, createVendorAgentTool, createWorkflowTool, defineAppResource, extractAppResources, handleChannelWebhook, handleMcpStdioLine, isChannelPath, parseChannelPath, readAppResource, serveMcpStdio, streamAgentTurnInProcess } from './agent/index.js';
32
+ export { AcpToolConfig, AppResource, AppResourceInput, ChannelMessage, ChannelWebhookConfig, CodeModeApi, CodeModeConfig, CodeModePermission, CodeModePermissionDeniedError, McpResourceContents, McpResourceDescriptor, NodeAcpTransport, Sandbox, StdioStreams, VendorAgentClient, VendorAgentToolConfig, WorkflowLike, WorkflowToolConfig, buildResourceDescriptors, createACPTool, createCodeMode, createVendorAgentTool, createWorkflowTool, defineAppResource, extractAppResources, handleChannelWebhook, handleMcpStdioLine, isChannelPath, parseChannelPath, readAppResource, serveMcpStdio } from './agent/index.js';
33
+ export { InProcessApprovalRequest, InProcessApprovalRequiredError, InProcessAwaitApproval, StreamAgentTurnDeps, StreamAgentTurnInProcessInput, streamAgentTurnInProcess } from '@theokit/agents';
33
34
  import { IncomingMessage } from 'node:http';
34
35
  import { W as WebOnRequestHook, b as WebPreHandlerHook, c as WebOnResponseHook, d as WebOnErrorHook } from '../plugin-types-D69-lJZ9.js';
35
36
  export { e as HookName, H as HookResult, O as OnErrorHook, f as OnRequestHook, g as OnResponseHook, P as PluginContext, h as PluginErrorContext, i as PreHandlerHook, R as RunHookOptions, a as TheoApp, T as TheoPlugin } from '../plugin-types-D69-lJZ9.js';
36
37
  export { a as ServiceDefinition, S as ServicesConfig, b as ServicesConfigInput, c as ServicesConfigOutput } from '../schema-BpH6ivDY.js';
37
38
  import 'ai';
38
39
  import 'vite';
39
- import '@theokit/agents';
40
40
  import '@theokit/sdk';
41
41
 
42
42
  /**