void 1.12.2 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/README.md +1 -0
  2. package/dist/{account-cmd-CdJQba_Q.mjs → account-cmd-4fQiXYX7.mjs} +6 -6
  3. package/dist/{application-analysis-DVeN8yoi.mjs → application-analysis-BjEwHTV2.mjs} +19 -13
  4. package/dist/{application-routing-KKw4Y84h.mjs → application-routing-COCfD2yc.mjs} +1 -1
  5. package/dist/args-DrnTI35r.mjs +88 -0
  6. package/dist/args-MnQnqypt.mjs +1 -0
  7. package/dist/{auth-CqwJwItO.mjs → auth-CeBmolb-.mjs} +3 -3
  8. package/dist/{auth-A7cZ8aXA.mjs → auth-CvaDxOMi.mjs} +1 -1
  9. package/dist/{auth-link-D9MWA_dj.mjs → auth-link-I4omV0pL.mjs} +6 -6
  10. package/dist/{auth-router-FskgTU3B.mjs → auth-router-CXq4q7bb.mjs} +6 -5
  11. package/dist/{better-auth-shared-BS3pDQbT.d.mts → better-auth-shared-CrIkcN8I.d.mts} +2 -1
  12. package/dist/bindings-C7zOgxT3.d.mts +28 -0
  13. package/dist/browser-run-BKgZVwLk.mjs +124 -0
  14. package/dist/{build-cmd-B7OJ0U5R.mjs → build-cmd-Biz6u4rn.mjs} +6 -6
  15. package/dist/{cache-wSpi3aeM.mjs → cache-WkLMUrjQ.mjs} +6 -6
  16. package/dist/{cancel-deploy-DMWzkAlb.mjs → cancel-deploy-BRsrmyTk.mjs} +6 -5
  17. package/dist/{cf-access-DHklo7Rg.mjs → cf-access-B21j-nd6.mjs} +1 -1
  18. package/dist/{cf-build-output-Cso7Vh-t.mjs → cf-build-output-G-7Tdd8b.mjs} +6 -5
  19. package/dist/cf-build-output-Qc43LWzE.mjs +1 -0
  20. package/dist/{cf-command-values-5BPBRc9Z.mjs → cf-command-values-cUnJwCyG.mjs} +24 -1
  21. package/dist/{cf-config-migrate-D271BTiw.mjs → cf-config-migrate-CsbQGzMf.mjs} +200 -94
  22. package/dist/cf-user-agent-HHTRzfud.mjs +15 -0
  23. package/dist/cf-version-api-BWHMVtzw.mjs +1 -0
  24. package/dist/cf-version-api-XEEK2B9A.mjs +856 -0
  25. package/dist/cf-worker-settings-DJKdy97k.mjs +127 -0
  26. package/dist/cli/cli.mjs +1 -1
  27. package/dist/cli/cloudflare-operation-process.mjs +111 -47
  28. package/dist/cli/env-schema-probe.mjs +3 -3
  29. package/dist/cli/json-command-process.d.mts +6 -0
  30. package/dist/cli/json-command-process.mjs +91 -0
  31. package/dist/{cli-main-DaLrQfPS.mjs → cli-main-CJTGhcYN.mjs} +84 -113
  32. package/dist/{client-eLZwqkPH.mjs → client-0um7Lzze.mjs} +1 -1
  33. package/dist/{client-DE2m2ldh.mjs → client-BEHI4UWn.mjs} +14 -8
  34. package/dist/{cloudflare-auth-eWfhdZCk.mjs → cloudflare-auth-iOgRurWm.mjs} +1 -1
  35. package/dist/{cloudflare-cmd-SsFlJe2B.mjs → cloudflare-cmd-DsSlXbNy.mjs} +5 -5
  36. package/dist/{cloudflare-config-D9UFH_A5.mjs → cloudflare-config-KPHKf57C.mjs} +2 -2
  37. package/dist/{cloudflare-connect-BgpHcSg3.mjs → cloudflare-connect-bEtneBjT.mjs} +5 -4
  38. package/dist/{cloudflare-operations-ByjFGats.mjs → cloudflare-operations-BmICrRnm.mjs} +1 -1
  39. package/dist/{cloudflare-operations-BIRQkYwL.mjs → cloudflare-operations-D-9psgPQ.mjs} +19 -11
  40. package/dist/cloudflare-preview-8eLSQPdO.mjs +1 -0
  41. package/dist/cloudflare-preview-BaeU-m74.mjs +112 -0
  42. package/dist/{cloudflare-process-60r4Z2Zf.mjs → cloudflare-process-DFNpqV_m.mjs} +57 -29
  43. package/dist/cloudflare-user-output-DFbD0l4l.mjs +36 -0
  44. package/dist/collect-Aam0GwAU.mjs +1 -0
  45. package/dist/{collect-rNLybAnF.mjs → collect-KC4cizWM.mjs} +6 -1
  46. package/dist/{config-DA6ZbLXO.d.mts → config-BdmM5ZzP.d.mts} +12 -2
  47. package/dist/{config-BFX5ZB1J.mjs → config-CUYGZqdN.mjs} +2 -2
  48. package/dist/{config-BSoW3QCB.mjs → config-C_UjzkVS.mjs} +3 -3
  49. package/dist/{config-DtjrUtPo.mjs → config-Ge-MytMU.mjs} +1 -1
  50. package/dist/{config-Dv5jri1-.mjs → config-KZAiI3gG.mjs} +32 -6
  51. package/dist/config-entry.d.mts +1 -1
  52. package/dist/config-write-dKLINlm2.mjs +80 -0
  53. package/dist/{connect-WG4TcR_d.mjs → connect-Bqq3b9sX.mjs} +10 -9
  54. package/dist/{create-project-CbuDH5Hv.mjs → create-project-MXoP_rte.mjs} +1 -1
  55. package/dist/{create-project-8FdN6D2i.mjs → create-project-T-9AIQDe.mjs} +7 -6
  56. package/dist/{db-BSuWV1PI.mjs → db-B3eoVDNA.mjs} +50 -47
  57. package/dist/{db-args-CiQVg8SJ.mjs → db-args-BcvTZ8KE.mjs} +1 -1
  58. package/dist/db-args-Cx1y4vZn.mjs +1 -0
  59. package/dist/{db-types-B4Cf9dzR.mjs → db-types-BpgXVtQZ.mjs} +1 -1
  60. package/dist/{delete-WtLEfap2.mjs → delete-Cf6SroAw.mjs} +7 -6
  61. package/dist/deploy-DZ9j7MC4.mjs +2 -0
  62. package/dist/{deploy-DtJeunLF.mjs → deploy-UojYUEWr.mjs} +803 -1415
  63. package/dist/{deploy-managed-static-BWBsxOww.mjs → deploy-managed-static-DV_OmTWf.mjs} +54 -393
  64. package/dist/{deploy-security-notice-IRGy6Edf.mjs → deploy-security-notice-3jX71IeP.mjs} +6 -4
  65. package/dist/deploy-summary-Dkl0zvQy.mjs +377 -0
  66. package/dist/{deploy-transport-BKP_oV9q.mjs → deploy-transport-4ISWxx8n.mjs} +4 -3
  67. package/dist/deploy.mjs +14 -10
  68. package/dist/discover-BZWVWeQs.mjs +1 -0
  69. package/dist/{discover-IcspacCg.mjs → discover-BeFs7OPS.mjs} +1 -1
  70. package/dist/{dispatch-DIhDA3NI.mjs → dispatch-BUKbPdqb.mjs} +7 -7
  71. package/dist/{dist-Cr_xGE_K.mjs → dist-BngS28id.mjs} +6 -6
  72. package/dist/{dist-C47zy_kJ.mjs → dist-x99fIj4n.mjs} +1 -1
  73. package/dist/{domain-mweyYXSw.mjs → domain-BK6NWkWK.mjs} +7 -7
  74. package/dist/{drizzle-BJDMPrj7.mjs → drizzle-CnSbVeiZ.mjs} +12 -13
  75. package/dist/{drizzle-CQ5jWuDL.mjs → drizzle-CrkwVwK8.mjs} +1 -1
  76. package/dist/{email-DoDqRH6i.mjs → email-BBSDV0J5.mjs} +13 -12
  77. package/dist/{email-cloudflare-DeYH3Ke7.mjs → email-cloudflare-C-guKEbz.mjs} +10 -8
  78. package/dist/{env-DaAoYR2-.mjs → env-BVnKiGYJ.mjs} +8 -8
  79. package/dist/{env-EjHqc7m9.mjs → env-CU2tMDdO.mjs} +6 -1
  80. package/dist/{env-types-D2hBodXP.mjs → env-types-B33fEHRH.mjs} +1 -1
  81. package/dist/{env-validation-j9pjCDfA.mjs → env-validation-BnAsx6gz.mjs} +1 -1
  82. package/dist/{env-validation-D-v5_CWL.mjs → env-validation-SXsjd6-Z.mjs} +4 -4
  83. package/dist/{fetch-CiEsvjpP.mjs → fetch-DL7OCgwB.mjs} +1 -1
  84. package/dist/{fetch-stream-BIG5lHW6.mjs → fetch-stream-DEilLTCc.mjs} +2 -2
  85. package/dist/{gen-aOtHhZLD.mjs → gen-BxuIN1bz.mjs} +10 -9
  86. package/dist/gen-DaayFP9v.mjs +1 -0
  87. package/dist/{generate-Dq2Bgw75.mjs → generate-Ck-L3e0e.mjs} +1 -1
  88. package/dist/{generate-C3ZAqCy-.mjs → generate-t1dDUYZZ.mjs} +1 -1
  89. package/dist/{github-cmd-BR19Ffdz.mjs → github-cmd-B7U9Hjmi.mjs} +7 -6
  90. package/dist/{handler-DCrDLzw2.mjs → handler-2wAywJgj.mjs} +11 -9
  91. package/dist/{headers-DqBsjDxg.mjs → headers-DPI4MDGC.mjs} +1 -1
  92. package/dist/{help-DvClCzqL.mjs → help-Bgiu5PMX.mjs} +36 -4
  93. package/dist/help-DWGHmt_n.mjs +1 -0
  94. package/dist/html-5sfGLjiI.d.mts +3 -0
  95. package/dist/html-DPSOBDCh.mjs +1 -0
  96. package/dist/{index-Dn2mkPr2.d.mts → index-CqF8_p9C.d.mts} +5 -105
  97. package/dist/index-Cvqotnhc.d.mts +91 -0
  98. package/dist/{index-BQ5qYiAw.d.mts → index-DAinHkj8.d.mts} +1 -1
  99. package/dist/{index-8cAgNdb6.d.mts → index-lnEWwVAS.d.mts} +1 -1
  100. package/dist/index.d.mts +3 -2
  101. package/dist/index.mjs +536 -170
  102. package/dist/{info-P6MBiVJi.mjs → info-7COlpAfY.mjs} +32 -20
  103. package/dist/{init-B2VZ2Hut.mjs → init-DftAx3L4.mjs} +237 -88
  104. package/dist/input-jcps6lAn.mjs +64 -0
  105. package/dist/interactive-prompts-EK0dilFu.mjs +43 -0
  106. package/dist/{limits-BCoQLpn3.mjs → limits-3I3VdX2E.mjs} +4 -1
  107. package/dist/{link-Dyz9IGcM.mjs → link-C3WMNFTG.mjs} +7 -7
  108. package/dist/{list-VGYBMjmx.mjs → list-K4EGVUZN.mjs} +9 -9
  109. package/dist/{load-user-env-B8qC0Q2Y.mjs → load-user-env-uMmQJ-Th.mjs} +1 -1
  110. package/dist/{local-d1-CYOYkVwO.mjs → local-d1-BtLCVC1p.mjs} +2 -2
  111. package/dist/login-BJwPhV_S.mjs +1 -0
  112. package/dist/{login-jUBgfvzk.mjs → login-DaugBfBG.mjs} +6 -5
  113. package/dist/{logs-kS1wuR4b.mjs → logs-BR2szdN5.mjs} +6 -6
  114. package/dist/migrate-BHD46A31.mjs +1 -0
  115. package/dist/{migrate-BNZL1hee.mjs → migrate-Dtlg8fC6.mjs} +7 -7
  116. package/dist/nitro.mjs +3 -3
  117. package/dist/{node-DVJWfV6s.mjs → node-BbKlLpHa.mjs} +5 -5
  118. package/dist/{operator-ai-logging-DD0n6zc2.mjs → operator-ai-logging-4Nvs6Ut3.mjs} +5 -5
  119. package/dist/{operator-args-nvetCWuz.mjs → operator-args-DWvqq3Ws.mjs} +31 -15
  120. package/dist/{operator-auth-DMvn-y9X.mjs → operator-auth-DtRMGXYY.mjs} +2 -2
  121. package/dist/{operator-client-dFNnXfyB.mjs → operator-client-BG0VIMMM.mjs} +2 -2
  122. package/dist/operator-cmd-CR3Q9k4c.mjs +1 -0
  123. package/dist/{operator-cmd-wML5HNfS.mjs → operator-cmd-D4YcMKO-.mjs} +9 -9
  124. package/dist/{operator-security-D5MToU0p.mjs → operator-security-nVLo8vDt.mjs} +11 -5
  125. package/dist/{output-BZLnu0z8.mjs → output-DhJgS6Ve.mjs} +1 -1
  126. package/dist/output-OYwcEwok.mjs +1 -0
  127. package/dist/pages/client.d.mts +34 -20
  128. package/dist/pages/client.mjs +172 -74
  129. package/dist/pages/index.d.mts +11 -4
  130. package/dist/pages/index.mjs +5 -5
  131. package/dist/pages/islands-plugin.d.mts +2 -2
  132. package/dist/pages/islands-plugin.mjs +5 -3
  133. package/dist/pages/protocol.d.mts +3 -3
  134. package/dist/pages/protocol.mjs +3 -3
  135. package/dist/pages/serialize.d.mts +2 -2
  136. package/dist/pages/serialize.mjs +1 -1
  137. package/dist/parse-filename-DIPUjoCh.d.mts +2 -0
  138. package/dist/platform-C3Q44RJ8.mjs +250 -0
  139. package/dist/platform-args-BSyVZESg.mjs +1 -0
  140. package/dist/{platform-args-CvZSuhYS.mjs → platform-args-BnocJDC_.mjs} +1 -1
  141. package/dist/{platform-auth-config-Bv3oQ2gE.mjs → platform-auth-config-BbfNhjBc.mjs} +9 -9
  142. package/dist/{platform-auth-protection-OqzfhXwx.mjs → platform-auth-protection-BHPV4MUf.mjs} +9 -8
  143. package/dist/{platform-auth-recovery-rmIYjXST.mjs → platform-auth-recovery-DE0nArYy.mjs} +8 -7
  144. package/dist/{platform-cmd-D_4z2Ijv.mjs → platform-cmd-CLRU3BRb.mjs} +11 -10
  145. package/dist/{platform-cmd-B3rO4RhU.mjs → platform-cmd-Cs2LkT5L.mjs} +1 -1
  146. package/dist/{platform-discovery-CLxtixHJ.mjs → platform-discovery-CKeeeD82.mjs} +1 -1
  147. package/dist/{platform-domain-CUq9odbd.mjs → platform-domain-kn3WuKPG.mjs} +6 -5
  148. package/dist/{platform-lifecycle-DOSYo0UI.mjs → platform-lifecycle-BoCEYy2w.mjs} +1 -1
  149. package/dist/{platform-lifecycle-DuoVruij.mjs → platform-lifecycle-CKwOg8wz.mjs} +164 -72
  150. package/dist/{platform-management-D_gt3qLb.mjs → platform-management-CaSdFthX.mjs} +1 -1
  151. package/dist/{platform-management-MmO9IubR.mjs → platform-management-fyrsq2Ra.mjs} +27 -14
  152. package/dist/{platform-plans-config-DiydtNKY.mjs → platform-plans-config-BSI-6Inu.mjs} +11 -5
  153. package/dist/{platform-recovery-P_FVslfd.mjs → platform-recovery-PwJ54AIZ.mjs} +3 -3
  154. package/dist/{platform-registry-DHH6fivm.mjs → platform-registry-zHH3RiIm.mjs} +2 -1
  155. package/dist/{platform-setup-Lph9i-rh.mjs → platform-setup-DwYITHfY.mjs} +3 -3
  156. package/dist/{plugin-inference-COlq96WJ.mjs → plugin-inference-D5MjBVMB.mjs} +60 -142
  157. package/dist/prepare-CLl_TA_r.mjs +1 -0
  158. package/dist/{prepare-WvijE289.mjs → prepare-DZEs5AGr.mjs} +3 -3
  159. package/dist/{prepare-co1o1FFd.mjs → prepare-DhVzN7CB.mjs} +14 -12
  160. package/dist/{project-uXKua1it.mjs → project-BXpm-vgG.mjs} +1 -1
  161. package/dist/{project-dh9431bN.mjs → project-DC-BqHef.mjs} +1 -1
  162. package/dist/{project-cmd-BWJTplpc.mjs → project-cmd-BKN3qT4R.mjs} +31 -21
  163. package/dist/{project-paths-2ENfCCih.mjs → project-paths-BeAxxqGh.mjs} +1 -1
  164. package/dist/{project-security-BV1xfj1K.mjs → project-security-B-SHxprt.mjs} +1 -1
  165. package/dist/{project-security-CY_aahvW.mjs → project-security-BWTd6cTU.mjs} +87 -46
  166. package/dist/{project-team-BlIFXlmT.mjs → project-team-jcn9reIB.mjs} +6 -6
  167. package/dist/{project-token-CMsB7I1-.mjs → project-token-BHkBKtzt.mjs} +6 -6
  168. package/dist/{project-tsconfig-BOA4ym99.mjs → project-tsconfig-LjgxDdj_.mjs} +1 -1
  169. package/dist/{project-zero-trust-BI6pdpx4.mjs → project-zero-trust-2t_qI6xa.mjs} +4 -4
  170. package/dist/{protocol-4rEnumif.mjs → protocol-DhMbnxzy.mjs} +120 -35
  171. package/dist/{protocol-ERy-n3jf.d.mts → protocol-wG7JP5Mm.d.mts} +27 -4
  172. package/dist/{provision-DFv7SJDn.mjs → provision-C04aXE3a.mjs} +1 -1
  173. package/dist/{provision-Bh44omGA.mjs → provision-CQykn8gu.mjs} +8 -4
  174. package/dist/{redirect-Dyvuil0Q.mjs → redirect-DjyA_hx_.mjs} +1 -1
  175. package/dist/{requests-CfmJxNYg.mjs → requests-BznxnxTT.mjs} +5 -5
  176. package/dist/resolve-project-Bob_rEi2.mjs +1 -0
  177. package/dist/{resolve-project-8WZ3iVmr.mjs → resolve-project-s_FGWyr-.mjs} +2 -2
  178. package/dist/resource-binding-5nI30acw.mjs +20 -0
  179. package/dist/{resource-name-DlJ9QXzg.mjs → resource-name-D_gw36kh.mjs} +5 -1
  180. package/dist/{rollback-DL5HuAsM.mjs → rollback-CLiINtpt.mjs} +25 -14
  181. package/dist/{route-types-CSed9-Dp.mjs → route-types-DxvqN5bL.mjs} +59 -9
  182. package/dist/{route-url-B41eQ8QI.mjs → route-url-CRC8yR_2.mjs} +2 -3
  183. package/dist/{route-url-Bd6IX-JZ.d.mts → route-url-zDfC-7DD.d.mts} +33 -5
  184. package/dist/routes-stub.d.mts +18 -2
  185. package/dist/routes-stub.mjs +1 -1
  186. package/dist/{runner-CeguHWJx.mjs → runner-CnUrhc8H.mjs} +1 -1
  187. package/dist/{runner-mysql-DOjbj-N1.mjs → runner-mysql-CW6bFa67.mjs} +1 -1
  188. package/dist/{runner-mysql-D549vGGm.mjs → runner-mysql-DSLGFOlC.mjs} +1 -1
  189. package/dist/{runner-pg-Buzw17hl.mjs → runner-pg-BcGF7iBR.mjs} +1 -1
  190. package/dist/{runner-pg-DMJquR3d.mjs → runner-pg-OeP0JpEo.mjs} +1 -1
  191. package/dist/{runner-Bf94YVJK.mjs → runner-rnXCGa20.mjs} +1 -1
  192. package/dist/runtime/ai/index.mjs +1 -1
  193. package/dist/runtime/auth/better-auth-d1.d.mts +1 -1
  194. package/dist/runtime/auth/better-auth-mysql.d.mts +1 -1
  195. package/dist/runtime/auth/better-auth-postgres.d.mts +1 -1
  196. package/dist/runtime/client/fetch-server.mjs +1 -1
  197. package/dist/runtime/client/fetch-stream.mjs +1 -1
  198. package/dist/runtime/client/fetch.mjs +1 -1
  199. package/dist/runtime/client/index.mjs +2 -2
  200. package/dist/runtime/client/react.mjs +2 -2
  201. package/dist/runtime/client/solid.mjs +2 -2
  202. package/dist/runtime/client/svelte.mjs +2 -2
  203. package/dist/runtime/client/vue.mjs +2 -2
  204. package/dist/runtime/durable/index.mjs +11 -26
  205. package/dist/runtime/env/runtime.d.mts +2 -10
  206. package/dist/runtime/handler/index.d.mts +3 -2
  207. package/dist/runtime/handler/index.mjs +2 -2
  208. package/dist/runtime/handler/validator.d.mts +1 -1
  209. package/dist/runtime/handler/validator.mjs +1 -1
  210. package/dist/runtime/html.d.mts +2 -0
  211. package/dist/runtime/html.mjs +1 -0
  212. package/dist/runtime/image/index.d.mts +103 -0
  213. package/dist/runtime/image/index.mjs +89 -0
  214. package/dist/runtime/jsx/index.d.mts +3 -0
  215. package/dist/runtime/jsx/index.mjs +2 -0
  216. package/dist/runtime/jsx/jsx-dev-runtime.d.mts +1 -0
  217. package/dist/runtime/jsx/jsx-dev-runtime.mjs +2 -0
  218. package/dist/runtime/jsx/jsx-runtime.d.mts +1 -0
  219. package/dist/runtime/jsx/jsx-runtime.mjs +2 -0
  220. package/dist/runtime/limits/index.mjs +1 -1
  221. package/dist/runtime/live/client.d.mts +2 -2
  222. package/dist/runtime/live/index.d.mts +1 -1
  223. package/dist/runtime/routing/index.d.mts +87 -4
  224. package/dist/runtime/routing/index.mjs +59 -20
  225. package/dist/runtime/routing/route-url.d.mts +2 -2
  226. package/dist/runtime/routing/route-url.mjs +1 -1
  227. package/dist/runtime/sandbox/index.mjs +1 -1
  228. package/dist/runtime/sse/client.d.mts +1 -1
  229. package/dist/runtime/workflows/entry.d.mts +8 -0
  230. package/dist/runtime/workflows/entry.mjs +49 -0
  231. package/dist/runtime/workflows/index.d.mts +3 -0
  232. package/dist/runtime/workflows/index.mjs +77 -0
  233. package/dist/runtime/ws/index.d.mts +1 -1
  234. package/dist/runtime/ws/index.mjs +2 -2
  235. package/dist/runtime/ws/room.d.mts +1 -1
  236. package/dist/runtime/ws/server.d.mts +2 -2
  237. package/dist/runtime-Db72hLY-.d.mts +11 -0
  238. package/dist/scan-BxhB4BA-.mjs +946 -0
  239. package/dist/scan-D2ISAobj.mjs +308 -0
  240. package/dist/{secret-C-WBaUSS.mjs → secret-Ck9N5xbU.mjs} +9 -8
  241. package/dist/{security-sarif-ClyYwtAW.mjs → security-sarif-DzTIqNwZ.mjs} +1 -1
  242. package/dist/{serialize-DN-envGQ.d.mts → serialize-Dr9B-0yV.d.mts} +10 -1
  243. package/dist/{serialize-BmB4BfKu.mjs → serialize-nW4IeEBI.mjs} +23 -2
  244. package/dist/{skills-C-csz78e.mjs → skills-BR7YHAF7.mjs} +1 -1
  245. package/dist/{scan-Ct_SEzH4.mjs → source-analysis-cache-Ccm_JSOl.mjs} +340 -902
  246. package/dist/standard-schema-DvMcZGMK.mjs +8 -0
  247. package/dist/{subcommand-prompt-B4LOLosl.mjs → subcommand-prompt-AFf2LcrC.mjs} +2 -2
  248. package/dist/{types-FDH6NuY1.d.mts → types-RYVujNS6.d.mts} +4 -2
  249. package/dist/{version-metadata-DqgLa6gc.mjs → untrusted-env-4oW0TdBP.mjs} +1 -23
  250. package/dist/{url-DBQluotE.mjs → url-DAQ1c3lh.mjs} +45 -1
  251. package/dist/{validate-CtBWCzez.mjs → validate-B1PsQ_mt.mjs} +1 -1
  252. package/dist/validate-p9b3r1k4.mjs +1 -0
  253. package/dist/{validation-error-CtcAvyI7.mjs → validation-error-EKI0wMWX.mjs} +2 -2
  254. package/dist/{validator-Dfh9kCDm.mjs → validator-JJcf9E48.mjs} +5 -8
  255. package/dist/version-metadata-CEla0kgi.mjs +23 -0
  256. package/dist/{wrangler-DVe5KV5G.mjs → wrangler-AyMfdVJK.mjs} +34 -69
  257. package/dist/wrangler-BT7qrzWc.mjs +1 -0
  258. package/dist/{wrapper-CcMYpOS8.mjs → wrapper-DPlTBVOx.mjs} +5 -5
  259. package/docs/guide/ai.md +1 -1
  260. package/docs/guide/app-types.md +6 -23
  261. package/docs/guide/auth.md +2 -4
  262. package/docs/guide/database/d1.md +21 -67
  263. package/docs/guide/database/mysql.md +8 -0
  264. package/docs/guide/database/postgresql.md +2 -2
  265. package/docs/guide/database.md +1 -1
  266. package/docs/guide/deployment.md +18 -0
  267. package/docs/guide/edge/prerendering.md +3 -7
  268. package/docs/guide/edge/redirects.md +1 -1
  269. package/docs/guide/edge/revalidation.md +8 -17
  270. package/docs/guide/edge/rewrites.md +1 -1
  271. package/docs/guide/edge/static-assets.md +10 -22
  272. package/docs/guide/email/domains.md +3 -1
  273. package/docs/guide/email/receiving.md +2 -2
  274. package/docs/guide/email/sending.md +3 -1
  275. package/docs/guide/env-vars.md +2 -0
  276. package/docs/guide/image-generation.md +142 -0
  277. package/docs/guide/index.md +17 -15
  278. package/docs/guide/jobs.md +2 -4
  279. package/docs/guide/kv.md +1 -1
  280. package/docs/guide/og-images.md +83 -0
  281. package/docs/guide/pages-routing/actions-and-forms.md +6 -4
  282. package/docs/guide/pages-routing/errors.md +20 -4
  283. package/docs/guide/pages-routing/head.md +5 -5
  284. package/docs/guide/pages-routing/islands.md +4 -14
  285. package/docs/guide/pages-routing/markdown.md +2 -2
  286. package/docs/guide/pages-routing/overview.md +129 -15
  287. package/docs/guide/platform/administration/plans.md +47 -16
  288. package/docs/guide/platform/administration/projects.md +10 -0
  289. package/docs/guide/platform/administration/security-audits.md +76 -30
  290. package/docs/guide/platform/administration/zero-trust.md +1 -1
  291. package/docs/guide/platform/installation/ci.md +0 -4
  292. package/docs/guide/platform/installation/credentials.md +1 -1
  293. package/docs/guide/platform/installation/maintenance.md +10 -10
  294. package/docs/guide/platform/installation/prerequisites.md +3 -1
  295. package/docs/guide/platform/installation/setup.md +7 -15
  296. package/docs/guide/platform/installation/uninstall.md +6 -12
  297. package/docs/guide/project-collaboration.md +1 -4
  298. package/docs/guide/queues.md +6 -8
  299. package/docs/guide/quickstart.md +6 -8
  300. package/docs/guide/sandboxes.md +1 -1
  301. package/docs/guide/self-hosted-platform.md +4 -7
  302. package/docs/guide/server-routing.md +5 -3
  303. package/docs/guide/ssg.md +1 -1
  304. package/docs/guide/type-safety.md +74 -10
  305. package/docs/guide/websockets.md +5 -7
  306. package/docs/guide/workflows.md +122 -0
  307. package/docs/index.md +2 -3
  308. package/docs/integrations/agents.md +3 -16
  309. package/docs/integrations/cloudflare.md +98 -2
  310. package/docs/integrations/frameworks/analog.md +9 -11
  311. package/docs/integrations/frameworks/astro.md +16 -17
  312. package/docs/integrations/frameworks/nuxt.md +11 -13
  313. package/docs/integrations/frameworks/overview.md +18 -20
  314. package/docs/integrations/frameworks/react-router.md +55 -6
  315. package/docs/integrations/frameworks/sveltekit.md +8 -6
  316. package/docs/integrations/frameworks/tanstack-start.md +10 -6
  317. package/docs/integrations/hono.md +27 -12
  318. package/docs/integrations/nodejs-bun-deno.md +10 -2
  319. package/docs/reference/api/database.md +8 -10
  320. package/docs/reference/api/env.md +2 -2
  321. package/docs/reference/api/handlers.md +1 -1
  322. package/docs/reference/api/html.md +45 -0
  323. package/docs/reference/api/pages.md +118 -167
  324. package/docs/reference/api/rewrites.md +5 -5
  325. package/docs/reference/api/types.md +13 -6
  326. package/docs/reference/api/workflows.md +48 -0
  327. package/docs/reference/api.md +7 -1
  328. package/docs/reference/cli/database.md +22 -10
  329. package/docs/reference/cli/deploy.md +49 -4
  330. package/docs/reference/cli/domains.md +7 -3
  331. package/docs/reference/cli/email.md +3 -1
  332. package/docs/reference/cli/platform-installation.md +9 -53
  333. package/docs/reference/cli/platform-security.md +36 -8
  334. package/docs/reference/cli/platform-users.md +11 -1
  335. package/docs/reference/cli/platform-zero-trust.md +1 -1
  336. package/docs/reference/cli/project.md +52 -11
  337. package/docs/reference/cli/setup.md +8 -10
  338. package/docs/reference/cli.md +49 -47
  339. package/docs/reference/config.md +22 -8
  340. package/docs/reference/resource-inference.md +8 -1
  341. package/docs/reference/structure.md +5 -0
  342. package/package.json +52 -25
  343. package/schema.json +20 -1
  344. package/skills/void/SKILL.md +60 -54
  345. package/dist/cf-build-output-Wpk_e5CI.mjs +0 -1
  346. package/dist/cf-worker-settings-BBdlhm9U.mjs +0 -41
  347. package/dist/cli/db-execute-process.d.mts +0 -2
  348. package/dist/cli/db-execute-process.mjs +0 -57
  349. package/dist/cloudflare-user-output-CCR99eQY.mjs +0 -19
  350. package/dist/collect-B6nlSnsb.mjs +0 -1
  351. package/dist/db-args-BvMwAber.mjs +0 -1
  352. package/dist/deploy-GT4CW5fs.mjs +0 -2
  353. package/dist/discover-D2KGP3cR.mjs +0 -1
  354. package/dist/entry-Bwb9ev8K.mjs +0 -113
  355. package/dist/gen-vhBDHs3q.mjs +0 -1
  356. package/dist/help-fKPzcTJv.mjs +0 -1
  357. package/dist/isr-config-DiTnL9Tb.mjs +0 -115
  358. package/dist/login-BbSQTZ6d.mjs +0 -1
  359. package/dist/migrate-C9aoWLvY.mjs +0 -1
  360. package/dist/operator-cmd-jnjzuJKX.mjs +0 -1
  361. package/dist/output-D7K9TWIA.mjs +0 -1
  362. package/dist/platform-args-CMwMoiLp.mjs +0 -1
  363. package/dist/prepare-DcwigRUS.mjs +0 -1
  364. package/dist/providers-D5P8j_8D.d.mts +0 -5
  365. package/dist/resolve-project-YsTH-U9I.mjs +0 -1
  366. package/dist/static-exports-s7P86Ngp.mjs +0 -354
  367. package/dist/validate-CZYUIfR-.mjs +0 -1
  368. package/dist/wrangler-Dq269bjx.mjs +0 -1
  369. package/docs/guide/platform/development/local.md +0 -120
  370. package/docs/guide/platform/development/runtime.md +0 -115
  371. package/docs/guide/platform/development/schema-ci.md +0 -44
  372. package/docs/guide/platform-development.md +0 -16
@@ -1,3 +1,3 @@
1
1
  import { t as FetchError } from "../../fetch-error-EXhBRoxI.mjs";
2
- import { t as fetchStream } from "../../fetch-stream-BIG5lHW6.mjs";
2
+ import { t as fetchStream } from "../../fetch-stream-DEilLTCc.mjs";
3
3
  export { FetchError as StreamError, fetchStream };
@@ -1,3 +1,3 @@
1
1
  import { t as FetchError } from "../../fetch-error-EXhBRoxI.mjs";
2
- import { n as fetch, t as createRouteFetch } from "../../fetch-CiEsvjpP.mjs";
2
+ import { n as fetch, t as createRouteFetch } from "../../fetch-DL7OCgwB.mjs";
3
3
  export { FetchError, createRouteFetch, fetch };
@@ -1,5 +1,5 @@
1
1
  import { t as FetchError } from "../../fetch-error-EXhBRoxI.mjs";
2
- import { n as fetch } from "../../fetch-CiEsvjpP.mjs";
3
- import { t as fetchStream } from "../../fetch-stream-BIG5lHW6.mjs";
2
+ import { n as fetch } from "../../fetch-DL7OCgwB.mjs";
3
+ import { t as fetchStream } from "../../fetch-stream-DEilLTCc.mjs";
4
4
  import { n as createAuthClient, t as auth } from "../../client-Ypa4Immo.mjs";
5
5
  export { FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
@@ -1,5 +1,5 @@
1
1
  import { t as FetchError } from "../../fetch-error-EXhBRoxI.mjs";
2
- import { n as fetch } from "../../fetch-CiEsvjpP.mjs";
3
- import { t as fetchStream } from "../../fetch-stream-BIG5lHW6.mjs";
2
+ import { n as fetch } from "../../fetch-DL7OCgwB.mjs";
3
+ import { t as fetchStream } from "../../fetch-stream-DEilLTCc.mjs";
4
4
  import { n as createAuthClient, t as auth } from "../../client-react-B-ZqH8Ao.mjs";
5
5
  export { FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
@@ -1,5 +1,5 @@
1
1
  import { t as FetchError } from "../../fetch-error-EXhBRoxI.mjs";
2
- import { n as fetch } from "../../fetch-CiEsvjpP.mjs";
3
- import { t as fetchStream } from "../../fetch-stream-BIG5lHW6.mjs";
2
+ import { n as fetch } from "../../fetch-DL7OCgwB.mjs";
3
+ import { t as fetchStream } from "../../fetch-stream-DEilLTCc.mjs";
4
4
  import { n as createAuthClient, t as auth } from "../../client-solid-D2PSeKLm.mjs";
5
5
  export { FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
@@ -1,5 +1,5 @@
1
1
  import { t as FetchError } from "../../fetch-error-EXhBRoxI.mjs";
2
- import { n as fetch } from "../../fetch-CiEsvjpP.mjs";
3
- import { t as fetchStream } from "../../fetch-stream-BIG5lHW6.mjs";
2
+ import { n as fetch } from "../../fetch-DL7OCgwB.mjs";
3
+ import { t as fetchStream } from "../../fetch-stream-DEilLTCc.mjs";
4
4
  import { n as createAuthClient, t as auth } from "../../client-svelte-DbJbN7Ey.mjs";
5
5
  export { FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
@@ -1,5 +1,5 @@
1
1
  import { t as FetchError } from "../../fetch-error-EXhBRoxI.mjs";
2
- import { n as fetch } from "../../fetch-CiEsvjpP.mjs";
3
- import { t as fetchStream } from "../../fetch-stream-BIG5lHW6.mjs";
2
+ import { n as fetch } from "../../fetch-DL7OCgwB.mjs";
3
+ import { t as fetchStream } from "../../fetch-stream-DEilLTCc.mjs";
4
4
  import { n as createAuthClient, t as auth } from "../../client-vue-PBawsrwk.mjs";
5
5
  export { FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
@@ -1,29 +1,22 @@
1
- import { t as isResourceName } from "../../resource-name-DlJ9QXzg.mjs";
2
- import { a as requireRuntimeBinding, o as withRuntimeEnv } from "../../runtime-C_VPIJBF.mjs";
1
+ import { t as isResourceName } from "../../resource-name-D_gw36kh.mjs";
2
+ import { o as withRuntimeEnv } from "../../runtime-C_VPIJBF.mjs";
3
+ import { t as createResourceBinding } from "../../resource-binding-5nI30acw.mjs";
3
4
  import { DurableObject } from "cloudflare:workers";
4
5
  // src/runtime/durable/index.ts
5
6
  const DEFAULT_STORAGE_KEY = "__void_durable_state";
6
7
  /** Register a native Durable Object class without altering its lifecycle or RPC methods. */
7
8
  function defineDurableObject(definition) {
8
9
  if (definition.name !== void 0 && !isResourceName(definition.name)) throw new Error("durable: name must contain a word starting with a letter.");
9
- let bindingName;
10
- function boundNamespace() {
11
- if (!bindingName) throw new Error("durable: this definition is not bound. Default-export it from a file in durable-objects/.");
12
- return requireRuntimeBinding(bindingName);
13
- }
10
+ const binding = createResourceBinding(definition, "durable-objects", "defineDurableObject()");
14
11
  return {
15
12
  class: definition.class,
16
- __bind(name, resourceName) {
17
- if (definition.name !== resourceName) throw new Error("durable: name must be statically discoverable in defineDurableObject(). Run void info to inspect this definition.");
18
- if (bindingName && bindingName !== name) throw new Error(`durable: definition is already bound to '${bindingName}' and cannot also bind to '${name}'.`);
19
- bindingName = name;
20
- },
13
+ __bind: binding.bind,
21
14
  get(namespaceOrName, maybeName) {
22
- const namespace = typeof namespaceOrName === "string" ? boundNamespace() : namespaceOrName;
15
+ const namespace = typeof namespaceOrName === "string" ? binding.get() : namespaceOrName;
23
16
  return namespace.get(namespace.idFromName(typeof namespaceOrName === "string" ? namespaceOrName : maybeName));
24
17
  },
25
18
  getById(namespaceOrId, maybeId) {
26
- return (maybeId ? namespaceOrId : boundNamespace()).get(maybeId ?? namespaceOrId);
19
+ return (maybeId ? namespaceOrId : binding.get()).get(maybeId ?? namespaceOrId);
27
20
  }
28
21
  };
29
22
  }
@@ -44,11 +37,7 @@ function defineDurableState(definition) {
44
37
  if (!Number.isInteger(version) || version < 0) throw new Error("durable: version must be a non-negative integer.");
45
38
  const migrations = assertMigrations(version, definition.migrations ?? []);
46
39
  const storageKey = definition.storageKey ?? DEFAULT_STORAGE_KEY;
47
- let bindingName;
48
- function boundNamespace() {
49
- if (!bindingName) throw new Error("durable: this state definition is not bound. Default-export it from a file in durable-objects/.");
50
- return requireRuntimeBinding(bindingName);
51
- }
40
+ const binding = createResourceBinding(definition, "durable-objects", "defineDurableState()");
52
41
  class VoidDurableState extends DurableObject {
53
42
  #value;
54
43
  #ready;
@@ -147,18 +136,14 @@ function defineDurableState(definition) {
147
136
  }
148
137
  return {
149
138
  class: VoidDurableState,
150
- __bind(name, resourceName) {
151
- if (definition.name !== resourceName) throw new Error("durable: name must be statically discoverable in defineDurableState(). Run void info to inspect this definition.");
152
- if (bindingName && bindingName !== name) throw new Error(`durable: state definition is already bound to '${bindingName}' and cannot also bind to '${name}'.`);
153
- bindingName = name;
154
- },
139
+ __bind: binding.bind,
155
140
  get(namespaceOrName, maybeName) {
156
- const namespace = typeof namespaceOrName === "string" ? boundNamespace() : namespaceOrName;
141
+ const namespace = typeof namespaceOrName === "string" ? binding.get() : namespaceOrName;
157
142
  const name = typeof namespaceOrName === "string" ? namespaceOrName : maybeName;
158
143
  return namespace.get(namespace.idFromName(name));
159
144
  },
160
145
  getById(namespaceOrId, maybeId) {
161
- const namespace = maybeId ? namespaceOrId : boundNamespace();
146
+ const namespace = maybeId ? namespaceOrId : binding.get();
162
147
  const id = maybeId ?? namespaceOrId;
163
148
  return namespace.get(id);
164
149
  }
@@ -1,11 +1,3 @@
1
1
  import { t as RuntimeEnv } from "../../raw-CtfNvKyY.mjs";
2
- /** @internal Reuse a resource only within the current runtime request. */
3
- export declare function getRuntimeRequestResource<T>(key: object, initialize: () => T, outsideScope?: () => T): T;
4
- export declare function withRuntimeEnv<T>(env: unknown, fn: () => T): T;
5
- /** Whether `name` is a framework binding hidden from user code; `rawEnv` is the unfiltered env. */
6
- export declare function isInternalBinding(name: string, rawEnv: RuntimeEnv): boolean;
7
- /** Returns the runtime env with internal platform bindings hidden. */
8
- export declare function getRuntimeEnv(): RuntimeEnv;
9
- export declare function getRuntimeBinding<T = unknown>(name: string): T | undefined;
10
- export declare function requireRuntimeBinding<T = unknown>(name: string): T;
11
- export type { RuntimeEnv };
2
+ import { a as requireRuntimeBinding, i as isInternalBinding, n as getRuntimeEnv, o as withRuntimeEnv, r as getRuntimeRequestResource, t as getRuntimeBinding } from "../../runtime-Db72hLY-.mjs";
3
+ export { type RuntimeEnv, getRuntimeBinding, getRuntimeEnv, getRuntimeRequestResource, isInternalBinding, requireRuntimeBinding, withRuntimeEnv };
@@ -1,3 +1,4 @@
1
1
  /// <reference types="@cloudflare/workers-types" />
2
- import { C as defer, E as ValidatorSlots, S as InferProps, T as HandlerInput, _ as defineQueue, a as CloudEnv, b as Deferred, c as QueueRetryOptions, d as TypedQueueHandler, f as VoidAssetRewriteError, g as defineMiddleware, h as defineHead, i as CloudContextVariables, l as RenderAssetTags, m as defineHandler, n as CloudBindings, o as QueueBatch, p as basicAuth, r as CloudContext, s as QueueMessage, t as BasicAuthOptions, u as TypedHandler, v as defineRender, w as ValidationError, y as defineScheduled } from "../../index-Dn2mkPr2.mjs";
3
- export { BasicAuthOptions, CloudBindings, CloudContext, CloudContextVariables, CloudEnv, type Deferred, type HandlerInput, type InferProps, QueueBatch, QueueMessage, QueueRetryOptions, RenderAssetTags, TypedHandler, TypedQueueHandler, ValidationError, type ValidatorSlots, VoidAssetRewriteError, basicAuth, defer, defineHandler, defineHead, defineMiddleware, defineQueue, defineRender, defineScheduled };
2
+ import { n as CloudBindings } from "../../bindings-C7zOgxT3.mjs";
3
+ import { C as ValidationError, S as defer, T as ValidatorSlots, _ as defineRender, a as QueueBatch, c as RenderAssetTags, d as VoidAssetRewriteError, f as basicAuth, g as defineQueue, h as defineMiddleware, i as CloudEnv, l as TypedHandler, m as defineHead, n as CloudContext, o as QueueMessage, p as defineHandler, r as CloudContextVariables, s as QueueRetryOptions, t as BasicAuthOptions, u as TypedQueueHandler, v as defineScheduled, w as HandlerInput, x as InferProps, y as Deferred } from "../../index-CqF8_p9C.mjs";
4
+ export { BasicAuthOptions, type CloudBindings, CloudContext, CloudContextVariables, CloudEnv, type Deferred, type HandlerInput, type InferProps, QueueBatch, QueueMessage, QueueRetryOptions, RenderAssetTags, TypedHandler, TypedQueueHandler, ValidationError, type ValidatorSlots, VoidAssetRewriteError, basicAuth, defer, defineHandler, defineHead, defineMiddleware, defineQueue, defineRender, defineScheduled };
@@ -1,3 +1,3 @@
1
- import { r as defer, t as ValidationError } from "../../validation-error-CtcAvyI7.mjs";
2
- import { a as defineMiddleware, c as defineScheduled, i as defineHead, n as basicAuth, o as defineQueue, r as defineHandler, s as defineRender, t as VoidAssetRewriteError } from "../../handler-DCrDLzw2.mjs";
1
+ import { r as defer, t as ValidationError } from "../../validation-error-EKI0wMWX.mjs";
2
+ import { a as defineMiddleware, c as defineScheduled, i as defineHead, n as basicAuth, o as defineQueue, r as defineHandler, s as defineRender, t as VoidAssetRewriteError } from "../../handler-2wAywJgj.mjs";
3
3
  export { ValidationError, VoidAssetRewriteError, basicAuth, defer, defineHandler, defineHead, defineMiddleware, defineQueue, defineRender, defineScheduled };
@@ -1,2 +1,2 @@
1
- import { D as runValidation, E as ValidatorSlots, T as HandlerInput } from "../../index-Dn2mkPr2.mjs";
1
+ import { E as runValidation, T as ValidatorSlots, w as HandlerInput } from "../../index-CqF8_p9C.mjs";
2
2
  export { HandlerInput, ValidatorSlots, runValidation };
@@ -1 +1 @@
1
- export { t as runValidation } from "../../validator-Dfh9kCDm.mjs";
1
+ export { t as runValidation } from "../../validator-JJcf9E48.mjs";
@@ -0,0 +1,2 @@
1
+ import { n as html, r as raw, t as HtmlEscapedString } from "../html-5sfGLjiI.mjs";
2
+ export { type HtmlEscapedString, html, raw };
@@ -0,0 +1 @@
1
+ export { t as html, n as raw } from "../html-DPSOBDCh.mjs";
@@ -0,0 +1,103 @@
1
+ import { t as HtmlEscapedString } from "../../html-5sfGLjiI.mjs";
2
+ import { JSXNode } from "hono/jsx";
3
+ type BrowserRunFontData = ImageFontBytes | ImageFontUrl;
4
+ declare const genericFamilies: readonly ["serif", "sans-serif", "monospace", "cursive", "fantasy"];
5
+ /** Preinstalled families: https://developers.cloudflare.com/browser-run/reference/supported-fonts/ */
6
+ type BrowserRunDefaultFontFamily = (typeof genericFamilies)[number] | "Andale Mono" | "Arial" | "Arial Black" | "Comic Sans MS" | "Courier" | "Courier New" | "Georgia" | "Helvetica" | "Impact" | "Lucida Handwriting" | "Times" | "Times New Roman" | "Trebuchet MS" | "Verdana" | "Webdings" | `Bitstream Vera ${"Serif" | "Sans" | "Sans Mono"}` | "Bitstream Cyberbit" | "Cyberbit" | `DejaVu ${"Serif" | "Sans" | "Sans Mono"}` | `Free${"Serif" | "Sans" | "Mono"}` | "GFS Neohellenic" | `Liberation ${"Serif" | "Sans" | "Mono"}` | "Open Sans" | "Roboto" | "IPAGothic" | "IPAPGothic" | "Lohit Devanagari" | "Lohit Bengali" | "Lohit Tamil" | `Kacst${"Art" | "Book" | "Decorative" | "Digital" | "Farsi" | "Letter" | "Naskh" | "Office" | "One" | "Pen" | "Poster" | "Qurn" | "Screen" | "Title" | "TitleL"}` | `Noto ${"Sans" | "Serif"} CJK ${"HK" | "JP" | "KR" | "SC" | "TC"}` | "Noto Color Emoji" | "Garuda" | "Kinnari" | "Laksaman" | "Loma" | "Norasi" | "Purisa" | "Sawasdee" | `Tlwg ${"Mono" | "Typewriter" | "Typist" | "Typo"}` | "Umpush" | "Waree" | "WenQuanYi Zen Hei";
7
+ /** The default renderer uses the Worker binding directly, without a browser SDK. */
8
+ declare const browserRunRenderer: ImageRenderer<BrowserRunDefaultFontFamily, BrowserRunFontData>;
9
+ /** Encoded font-file bytes. */
10
+ type ImageFontBytes = ArrayBuffer | Uint8Array;
11
+ /** A remote font file. */
12
+ interface ImageFontUrl {
13
+ url: string;
14
+ }
15
+ /** A named font face with a source supported by the selected renderer. */
16
+ interface ImageFont<FontFamily extends string, RendererFontData> {
17
+ name: FontFamily;
18
+ /**
19
+ * The weight the font draws, from 1 to 1000. Leave it out for a variable
20
+ * font, so each element's `fontWeight` sets the weight; with it, the font
21
+ * draws only this weight.
22
+ */
23
+ weight?: number;
24
+ style?: "normal" | "italic";
25
+ /**
26
+ * Accepted for compatibility. Set the render's `lang` or the root element's
27
+ * `lang` attribute to choose how Chinese characters are drawn.
28
+ */
29
+ lang?: string;
30
+ data: RendererFontData;
31
+ }
32
+ /** Hono JSX or an escaped HTML template from `void/html`. */
33
+ type ImageInput = JSXNode | HtmlEscapedString | Promise<HtmlEscapedString>;
34
+ type AnyImageRenderer = ImageRenderer<never, never, never>;
35
+ type DefaultImageRenderer = typeof browserRunRenderer;
36
+ type RendererSettings<Renderer extends AnyImageRenderer> = Renderer extends ImageRenderer<infer DefaultFontFamily, infer FontData, never> ? {
37
+ defaultFontFamily: DefaultFontFamily;
38
+ fontData: FontData;
39
+ } : never;
40
+ type SharedSettingKey = keyof ImageRenderSettings<string, string, unknown>;
41
+ /**
42
+ * Selects a renderer, optionally with its own options. A renderer with required
43
+ * options must be passed in a tuple; renderer options cannot repeat shared
44
+ * settings such as `width`, which would replace them.
45
+ */
46
+ type ImageRendererOption<Renderer extends AnyImageRenderer> = (Record<never, never> extends RendererOptions<Renderer> ? Renderer : never) | [Renderer, NoInfer<RendererOptions<Renderer>> & { [Key in SharedSettingKey]?: never; }];
47
+ /** The renderer's own options, read from its signature without the shared settings. */
48
+ type RendererOptions<Renderer extends AnyImageRenderer> = Renderer extends ((element: ImageInput, options: infer Options) => unknown) ? Options extends unknown ? Omit<Options, SharedSettingKey> : never : never;
49
+ type IsDefaultRenderer<Renderer extends AnyImageRenderer> = [Renderer] extends [DefaultImageRenderer] ? [DefaultImageRenderer] extends [Renderer] ? true : false : false;
50
+ /** Only the default renderer may be omitted; other renderers type fonts differently. */
51
+ type RendererSelection<Renderer extends AnyImageRenderer> = IsDefaultRenderer<Renderer> extends true ? {
52
+ /** Defaults to Cloudflare Browser Run using the BROWSER binding. */
53
+ renderer?: ImageRendererOption<Renderer>;
54
+ } : {
55
+ /** Defaults to Cloudflare Browser Run using the BROWSER binding. */
56
+ renderer: ImageRendererOption<Renderer>;
57
+ };
58
+ /** The shared settings typed for a renderer's fonts. */
59
+ type RendererRenderSettings<Renderer extends AnyImageRenderer, FontFamily extends string> = ImageRenderSettings<RendererSettings<Renderer>["defaultFontFamily"], FontFamily, RendererSettings<Renderer>["fontData"]>;
60
+ /** Rendering options, without HTTP response options. */
61
+ type RenderImageOptions<Renderer extends AnyImageRenderer = DefaultImageRenderer, FontFamily extends string = never> = RendererRenderSettings<Renderer, FontFamily> & RendererSelection<Renderer>;
62
+ interface ImageRenderSettings<RendererDefaultFontFamily extends string, FontFamily extends string, RendererFontData> {
63
+ width: number;
64
+ height: number;
65
+ /** Language of the text, such as `ja` or `zh-TW`. */
66
+ lang?: string;
67
+ /** Draws a border around every box. */
68
+ debug?: boolean;
69
+ /** Default font family or ordered fallback stack. */
70
+ font?: NoInfer<RendererDefaultFontFamily | FontFamily | Array<RendererDefaultFontFamily | FontFamily>>;
71
+ /** Custom font faces. Browser Run requires a name with an HTTPS file URL or bytes. */
72
+ fonts?: Array<ImageFont<FontFamily, RendererFontData>>;
73
+ }
74
+ /** Takes the original image input and returns encoded PNG bytes. */
75
+ type ImageRenderer<RendererDefaultFontFamily extends string, RendererFontData, RendererOptions = undefined> = <FontFamily extends string>(element: ImageInput, options: ImageRenderSettings<RendererDefaultFontFamily, FontFamily, RendererFontData> & (RendererOptions extends Record<never, never> ? RendererOptions : Record<never, never>)) => Promise<Uint8Array<ArrayBuffer>>;
76
+ /** Renders Hono JSX or an escaped HTML template to PNG bytes. */
77
+ export declare function renderImage<Renderer extends AnyImageRenderer = DefaultImageRenderer, FontFamily extends string = never>(element: ImageInput, options: RenderImageOptions<Renderer, FontFamily>): Promise<Uint8Array<ArrayBuffer>>;
78
+ /** Open Graph rendering options, with default dimensions of 1200 × 630. */
79
+ type RenderOgImageOptions<Renderer extends AnyImageRenderer = DefaultImageRenderer, FontFamily extends string = never> = Omit<RendererRenderSettings<Renderer, FontFamily>, "width" | "height"> & {
80
+ /** Image width in pixels. Defaults to 1200. */
81
+ width?: number;
82
+ /** Image height in pixels. Defaults to 630. */
83
+ height?: number;
84
+ } & RendererSelection<Renderer>;
85
+ /** Renders PNG bytes at 1200 × 630 by default, or with custom dimensions. */
86
+ export declare function renderOgImage<Renderer extends AnyImageRenderer = DefaultImageRenderer, FontFamily extends string = never>(element: ImageInput, options?: RenderOgImageOptions<Renderer, FontFamily>): Promise<Uint8Array<ArrayBuffer>>;
87
+ /** Image rendering options combined with the response status and headers. */
88
+ type ImageResponseOptions<Renderer extends AnyImageRenderer = DefaultImageRenderer, FontFamily extends string = never> = ResponseInit & RenderImageOptions<Renderer, FontFamily>;
89
+ /**
90
+ * A PNG response rendered when its body is read. Use `renderImage` to await
91
+ * completion and handle rendering errors before creating an HTTP response.
92
+ * Does not choose a cache policy.
93
+ */
94
+ export declare class ImageResponse<Renderer extends AnyImageRenderer = DefaultImageRenderer, FontFamily extends string = never> extends Response {
95
+ constructor(element: ImageInput, options: ImageResponseOptions<Renderer, FontFamily>);
96
+ }
97
+ /** Open Graph rendering options combined with the response status and headers. */
98
+ type OgImageResponseOptions<Renderer extends AnyImageRenderer = DefaultImageRenderer, FontFamily extends string = never> = RenderOgImageOptions<Renderer, FontFamily> & ResponseInit;
99
+ /** A lazy PNG response: 1200 × 630 by default, with a 24-hour public cache default outside dev. */
100
+ export declare class OgImageResponse<Renderer extends AnyImageRenderer = DefaultImageRenderer, FontFamily extends string = never> extends ImageResponse<Renderer, FontFamily> {
101
+ constructor(element: ImageInput, options?: OgImageResponseOptions<Renderer, FontFamily>);
102
+ }
103
+ export type { BrowserRunDefaultFontFamily, BrowserRunFontData, DefaultImageRenderer, ImageFont, ImageFontBytes, ImageFontUrl, ImageInput, ImageRenderer, ImageResponseOptions, OgImageResponseOptions, RenderImageOptions, RenderOgImageOptions };
@@ -0,0 +1,89 @@
1
+ import { n as prepareImageInput } from "../../input-jcps6lAn.mjs";
2
+ import { AsyncLocalStorage } from "node:async_hooks";
3
+ // src/runtime/image/generate/render-image.ts
4
+ /** Renders Hono JSX or an escaped HTML template to PNG bytes. */
5
+ async function renderImage(element, options) {
6
+ const input = prepareImageInput(element);
7
+ const { renderer: selection, ...renderOptions } = options;
8
+ if (!selection) {
9
+ const { browserRunRenderer } = await import("../../browser-run-BKgZVwLk.mjs");
10
+ return browserRunRenderer(input, {
11
+ ...renderOptions,
12
+ fonts: renderOptions.fonts
13
+ });
14
+ }
15
+ const [renderer, rendererOptions] = typeof selection === "function" ? [selection, void 0] : selection;
16
+ return renderer(input, Object.assign({}, rendererOptions, renderOptions));
17
+ }
18
+ /** Renders PNG bytes at 1200 × 630 by default, or with custom dimensions. */
19
+ async function renderOgImage(element, options = {}) {
20
+ return renderImage(element, resolveOgImageOptions(options));
21
+ }
22
+ /** Shared by the byte API and lazy response wrapper. */
23
+ function resolveOgImageOptions(options) {
24
+ return {
25
+ ...options,
26
+ width: options.width ?? 1200,
27
+ height: options.height ?? 630
28
+ };
29
+ }
30
+ // src/runtime/image/generate/image-response.ts
31
+ /**
32
+ * A PNG response rendered when its body is read. Use `renderImage` to await
33
+ * completion and handle rendering errors before creating an HTTP response.
34
+ * Does not choose a cache policy.
35
+ */
36
+ var ImageResponse = class extends Response {
37
+ constructor(element, options) {
38
+ const { status, statusText, headers: responseHeaders, ...rest } = options;
39
+ const imageOptions = rest;
40
+ const headers = new Headers(responseHeaders);
41
+ if (!headers.has("content-type")) headers.set("content-type", "image/png");
42
+ const input = prepareImageInput(element);
43
+ const inRequestScope = AsyncLocalStorage.snapshot();
44
+ super(lazyImageBody(() => inRequestScope(() => renderImage(input, imageOptions))), {
45
+ status,
46
+ statusText,
47
+ headers
48
+ });
49
+ }
50
+ };
51
+ function lazyImageBody(render) {
52
+ let started = false;
53
+ let cancelled = false;
54
+ return new ReadableStream({
55
+ async pull(controller) {
56
+ if (started || cancelled) return;
57
+ started = true;
58
+ try {
59
+ const image = await render();
60
+ if (cancelled) return;
61
+ controller.enqueue(image);
62
+ controller.close();
63
+ } catch (error) {
64
+ if (cancelled) return;
65
+ console.error("void/image: failed to render the image.", error);
66
+ controller.error(error);
67
+ }
68
+ },
69
+ cancel() {
70
+ cancelled = true;
71
+ }
72
+ }, { highWaterMark: 0 });
73
+ }
74
+ /** A lazy PNG response: 1200 × 630 by default, with a 24-hour public cache default outside dev. */
75
+ var OgImageResponse = class extends ImageResponse {
76
+ constructor(element, options = {}) {
77
+ const { status, statusText, headers, ...rest } = options;
78
+ const imageOptions = rest;
79
+ const responseHeaders = new Headers(headers);
80
+ if (!import.meta.env?.DEV && !responseHeaders.has("cache-control")) responseHeaders.set("cache-control", "public, max-age=86400");
81
+ super(element, {
82
+ ...resolveOgImageOptions(imageOptions),
83
+ status,
84
+ statusText,
85
+ headers: responseHeaders
86
+ });
87
+ }
88
+ };
89
+ export { ImageResponse, OgImageResponse, renderImage, renderOgImage };
@@ -0,0 +1,3 @@
1
+ import jsx_default from "hono/jsx";
2
+ export * from "hono/jsx";
3
+ export { jsx_default as default };
@@ -0,0 +1,2 @@
1
+ export { default } from "hono/jsx";
2
+ export * from "hono/jsx";
@@ -0,0 +1 @@
1
+ export * from "hono/jsx/jsx-dev-runtime";
@@ -0,0 +1,2 @@
1
+ export * from "hono/jsx/jsx-dev-runtime";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "hono/jsx/jsx-runtime";
@@ -0,0 +1,2 @@
1
+ export * from "hono/jsx/jsx-runtime";
2
+ export {};
@@ -1 +1 @@
1
- export { t as UsageLimit, n as asUsageLimit, r as limitFromResponse, i as readUsageLimit } from "../../limits-BCoQLpn3.mjs";
1
+ export { t as UsageLimit, n as asUsageLimit, r as limitFromResponse, i as readUsageLimit } from "../../limits-3I3VdX2E.mjs";
@@ -1,5 +1,5 @@
1
- import { n as RequestUrl } from "../../route-url-Bd6IX-JZ.mjs";
2
- import { t as LiveClientEvent } from "../../index-8cAgNdb6.mjs";
1
+ import { n as RequestUrl } from "../../route-url-zDfC-7DD.mjs";
2
+ import { t as LiveClientEvent } from "../../index-lnEWwVAS.mjs";
3
3
  export type LiveSubscribeOptions<Data = unknown> = {
4
4
  id: string;
5
5
  topic: string;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="@cloudflare/workers-types" />
2
- import { _ as __getLiveBindingName, a as LiveControlErrorCode, b as defineLiveStream, c as LiveControlOptions, d as LiveHookContext, f as LiveLimits, g as LiveSubscribeHookContext, h as LiveStreamOptions, i as LiveControlError, l as LiveControlRequest, m as LiveStream, n as LiveConnectHookContext, o as LiveControlOperation, p as LivePublishOptions, r as LiveConnectOptions, s as LiveControlOperationResult, t as LiveClientEvent, u as LiveControlResponse, v as __setLiveBindingName, y as __setLiveDev } from "../../index-8cAgNdb6.mjs";
2
+ import { _ as __getLiveBindingName, a as LiveControlErrorCode, b as defineLiveStream, c as LiveControlOptions, d as LiveHookContext, f as LiveLimits, g as LiveSubscribeHookContext, h as LiveStreamOptions, i as LiveControlError, l as LiveControlRequest, m as LiveStream, n as LiveConnectHookContext, o as LiveControlOperation, p as LivePublishOptions, r as LiveConnectOptions, s as LiveControlOperationResult, t as LiveClientEvent, u as LiveControlResponse, v as __setLiveBindingName, y as __setLiveDev } from "../../index-lnEWwVAS.mjs";
3
3
  export { LiveClientEvent, LiveConnectHookContext, LiveConnectOptions, LiveControlError, LiveControlErrorCode, LiveControlOperation, LiveControlOperationResult, LiveControlOptions, LiveControlRequest, LiveControlResponse, LiveHookContext, LiveLimits, LivePublishOptions, LiveStream, LiveStreamOptions, LiveSubscribeHookContext, __getLiveBindingName, __setLiveBindingName, __setLiveDev, defineLiveStream };
@@ -1,7 +1,10 @@
1
- import { A as filterInternalBindings, M as ClientAssetTags, N as createClientAssetTags, O as createAssetFallback, P as createManifestLoader, j as prerenderPathsResponse, k as createWorkerFetch, r as CloudContext } from "../../index-Dn2mkPr2.mjs";
2
- import { a as handlePageMutation, i as handlePageGet } from "../../protocol-ERy-n3jf.mjs";
1
+ import { n as CloudContext } from "../../index-CqF8_p9C.mjs";
2
+ import { a as handlePageMutation, i as handlePageGet } from "../../protocol-wG7JP5Mm.mjs";
3
+ import { t as StandardSchemaV1 } from "../../standard-schema-CuDawHOC.mjs";
4
+ import { t as DevCssAsset } from "../../types-RYVujNS6.mjs";
5
+ import { t as AssetBinding } from "../../bindings-C7zOgxT3.mjs";
3
6
  import { AsyncLocalStorage } from "node:async_hooks";
4
- import { Context, Hono, Hono as Hono$1, MiddlewareHandler, NotFoundHandler, TypedResponse } from "hono";
7
+ import { Context, ExecutionContext, Hono, Hono as Hono$1, MiddlewareHandler, NotFoundHandler, TypedResponse } from "hono";
5
8
  import { matchedRoutes, matchedRoutes as matchedRoutes$1 } from "hono/route";
6
9
  import { RouteDestination, RouteUrlInput } from "void/routes";
7
10
  import { RedirectStatusCode } from "hono/utils/http-status";
@@ -18,12 +21,88 @@ type ErrorRenderer = {
18
21
  };
19
22
  /** Error rendering is shared by generated Pages apps; production never includes exception details. */
20
23
  export declare function createErrorRenderer(options: ErrorRendererOptions): ErrorRenderer;
24
+ type ClientManifest = Record<string, {
25
+ file?: string;
26
+ imports?: Array<string>;
27
+ css?: Array<string>;
28
+ /** Build-proven fingerprinted outputs; absent in older/third-party manifests. */
29
+ immutableFiles?: Array<string>;
30
+ }>;
31
+ type RuntimeEnvironment = Record<string, unknown> & {
32
+ ASSETS?: AssetBinding;
33
+ };
34
+ type AssetFallbackOptions = {
35
+ assetsDir?: string;
36
+ serveSpaFallback?: boolean;
37
+ notFound?: "none" | "404-page" | "single-page-application";
38
+ };
39
+ export declare function createAssetFallback(options?: AssetFallbackOptions): (request: Request, env: RuntimeEnvironment, response: Response) => Promise<Response>;
40
+ /** Hide platform capabilities without copying bindings or changing application bindings. */
41
+ export declare function filterInternalBindings<E extends Record<string, unknown>>(env: E, prefixes: Array<string>, exactNames?: Array<string>): E;
42
+ type WorkerFetchOptions = {
43
+ app: {
44
+ fetch: (request: Request, env: RuntimeEnvironment, context: ExecutionContext) => Response | Promise<Response>;
45
+ };
46
+ assets: ReturnType<typeof createAssetFallback>;
47
+ withRawEnv: (env: RuntimeEnvironment, fn: () => Promise<Response>) => Promise<Response>;
48
+ withRuntimeEnv: (env: RuntimeEnvironment, fn: () => Promise<Response>) => Promise<Response>;
49
+ filterBindings: (env: RuntimeEnvironment) => RuntimeEnvironment;
50
+ validateEnv?: (env: RuntimeEnvironment) => Promise<void>;
51
+ /** Native Cloudflare production builds redirect public HTTP requests to HTTPS. */
52
+ alwaysUseHttps?: boolean;
53
+ /** Authored/generated version metadata binding used to prove the served native version. */
54
+ versionMetadataBinding?: string;
55
+ remoteEnv?: (env: RuntimeEnvironment) => RuntimeEnvironment;
56
+ internalRoute: (request: Request, pathname: string) => Promise<Response | null>;
57
+ collectPrerenderPaths: (request: Request, env: RuntimeEnvironment, ctx: ExecutionContext) => Promise<Array<string>>;
58
+ staticNotFound?: (request: Request, env: RuntimeEnvironment) => Promise<Response>;
59
+ emailReceipt?: (request: Request, env: RuntimeEnvironment, ctx: ExecutionContext) => Promise<Response>;
60
+ isr?: {
61
+ deploymentId: string;
62
+ handle: (request: Request, env: RuntimeEnvironment, ctx: ExecutionContext, render: (request: Request) => Promise<Response>) => Promise<Response | null>;
63
+ };
64
+ };
65
+ /**
66
+ * Answer the prerender runner. A getPrerenderPaths() error is returned in the
67
+ * body so the build can show which page and entry to fix, not only HTTP 500.
68
+ */
69
+ export declare function prerenderPathsResponse(collect: () => Promise<Array<string>>): Promise<Response>;
70
+ export declare function createWorkerFetch(options: WorkerFetchOptions): (request: Request, env: RuntimeEnvironment, ctx: ExecutionContext) => Promise<Response>;
71
+ type ClientAssetTags = {
72
+ css: string;
73
+ preloads: string;
74
+ body: string;
75
+ devCss?: Array<DevCssAsset>;
76
+ };
77
+ type ManifestLoader = (request: Request, env: RuntimeEnvironment) => Promise<ClientManifest | null>;
78
+ export declare function createManifestLoader(): ManifestLoader;
79
+ type ClientAssetOptions = {
80
+ entryId: string;
81
+ entryUrl: string;
82
+ extraEntryId?: string;
83
+ extraEntryUrl?: string;
84
+ pageCssKeys?: Record<string, Array<string>>;
85
+ devRootPhases?: Record<string, Array<Array<string>>>;
86
+ kind: "ssr" | "pages" | "islands";
87
+ dev?: boolean;
88
+ reactRefresh?: boolean;
89
+ devCss?: (request: Request, env: RuntimeEnvironment, options: {
90
+ kind: "pages" | "islands";
91
+ componentId: string;
92
+ rootPhases: Array<Array<string>>;
93
+ }) => Promise<Array<DevCssAsset>>;
94
+ };
95
+ /** Frameworks supply only client entry IDs and active layout/page roots. */
96
+ export declare function createClientAssetTags(options: ClientAssetOptions, loadManifest?: ManifestLoader): (request: Request, env: RuntimeEnvironment, componentId?: string) => Promise<ClientAssetTags>;
21
97
  type PageGetArguments = Parameters<typeof handlePageGet>;
22
98
  type PageModule = {
23
99
  loader?: PageGetArguments[0];
24
100
  head?: PageGetArguments[1];
25
101
  action?: Parameters<typeof handlePageMutation>[0];
26
102
  actions?: Record<string, Parameters<typeof handlePageMutation>[0]>;
103
+ /** The page publishes its loader's validated query to the browser. */
104
+ exposeQuery?: boolean;
105
+ query?: StandardSchemaV1;
27
106
  };
28
107
  type PageRouteOptions = {
29
108
  load?: () => Promise<PageModule>;
@@ -34,6 +113,8 @@ type PageRouteOptions = {
34
113
  headConfig: PageGetArguments[6] | null;
35
114
  renderOptions: PageGetArguments[7];
36
115
  middlewareBoundaries?: NonNullable<PageGetArguments[7]>["boundaries"];
116
+ /** Loads the `.server` companion of a boundary component, by plan id. */
117
+ boundaryHeads?: NonNullable<NonNullable<PageGetArguments[7]>["boundaries"]>["loadHeads"];
37
118
  namedActions?: boolean;
38
119
  trailingSlash?: boolean;
39
120
  catchAllParam?: string;
@@ -124,6 +205,8 @@ export type RoutingRuntime = {
124
205
  applyFallback: (context: Context, rules: Array<RoutingRule>) => Promise<Response | undefined>;
125
206
  markNoMatch: (request: Request, response: Response) => Response;
126
207
  };
208
+ /** A compressed HEAD copy has no stream to carry the original response's identity. */
209
+ export declare function trackCompression(middleware: MiddlewareHandler): MiddlewareHandler;
127
210
  /** One state owner per generated app: recursive dispatch shares rewrite and fallback guards. */
128
211
  export declare function createRoutingRuntime(app: Hono$1, options?: {
129
212
  dev?: boolean;
@@ -134,4 +217,4 @@ export declare function createRoutingRuntime(app: Hono$1, options?: {
134
217
  export declare function markNoMatch(request: Request, response: Response): Response;
135
218
  export declare function createHttpRouteHandler(load: () => Promise<Record<string, (c: CloudContext) => unknown>>, method: string): (c: Context) => Promise<Response>;
136
219
  export declare function createModuleLoader<T>(load: () => Promise<T>, cache?: boolean): () => Promise<T>;
137
- export { type Hono, createAssetFallback, createClientAssetTags, createManifestLoader, createWorkerFetch, filterInternalBindings, matchedRoutes, prerenderPathsResponse };
220
+ export { type Hono, matchedRoutes };