void 0.10.13 → 0.20.1

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 (432) hide show
  1. package/AGENTS_TEMPLATE.md +6 -0
  2. package/{skills/void/docs/node_modules/void/node_modules/pglite-server/LICENSE.md → LICENSE} +1 -1
  3. package/README.md +34 -8
  4. package/dist/{auth-qgMlYp7Z.d.mts → auth-DkcFflXV.d.mts} +10 -11
  5. package/dist/auth-W9WII-mN.mjs +630 -0
  6. package/dist/{auth-cmd-BqsdZJp5.mjs → auth-cmd-CAH62yDU.mjs} +4 -3
  7. package/dist/{auth-migrations-BTZ-ATvQ.mjs → auth-migrations-9vif1uj8.mjs} +53 -12
  8. package/dist/{better-auth-shared-BQooDxbw.mjs → better-auth-shared-CYw1T3k4.mjs} +7 -10
  9. package/dist/{better-auth-shared-DealXecJ.d.mts → better-auth-shared-DSCeohOK.d.mts} +10 -5
  10. package/dist/{build-cmd-Bujrv5q-.mjs → build-cmd-CJvZvPQO.mjs} +6 -4
  11. package/dist/{cache-C11V8Fxq.mjs → cache-BlNeQjuP.mjs} +9 -5
  12. package/dist/{cancel-deploy-fwFYF04b.mjs → cancel-deploy-CmlAZ9P6.mjs} +3 -2
  13. package/dist/cf-access-AJ1ehiFR.mjs +42 -0
  14. package/dist/cf-access-DsSsZUPr.mjs +67 -0
  15. package/dist/cli/cli.d.mts +1 -1
  16. package/dist/cli/cli.mjs +1735 -165
  17. package/dist/cli/env-schema-probe.d.mts +48 -61
  18. package/dist/cli/env-schema-probe.mjs +10 -58
  19. package/dist/{client-Gb71-XkG.mjs → client-Clirrol3.mjs} +120 -463
  20. package/dist/cloudflare-auth-B1QtTO1b.mjs +217 -0
  21. package/dist/cloudflare-cmd-B6_OZx2V.mjs +62 -0
  22. package/dist/cloudflare-connect-j5D4hhrG.mjs +56 -0
  23. package/dist/cloudflare-operations-CPTpRW6d.mjs +566 -0
  24. package/dist/{config-qHGgPuWT.mjs → config-BQFq7QvD.mjs} +75 -41
  25. package/dist/{config-CutEMNGJ.mjs → config-NOG_U1aK.mjs} +10 -15
  26. package/dist/connect-C04Wdy_h.mjs +79 -0
  27. package/dist/{create-project-DsYvl3TB.mjs → create-project-ChGZ1DFd.mjs} +26 -16
  28. package/dist/database-provider.d.mts +21 -0
  29. package/dist/database-provider.mjs +6 -0
  30. package/dist/{db-C0i0sYMS.mjs → db-D2d_mUsB.mjs} +612 -117
  31. package/dist/{delete-mh6p-zkQ.mjs → delete-D8GigDk8.mjs} +9 -6
  32. package/dist/{deploy-jBJT1fUT.mjs → deploy-iXZ3F0N6.mjs} +3252 -1995
  33. package/dist/dev-inbox-DkgRWLkW.mjs +307 -0
  34. package/dist/{discover-CJHyvYfR.mjs → discover-xvfrgJeo.mjs} +3 -3
  35. package/dist/{magic-string.es-ZQjdJFFn.mjs → dist-BR1quN_w.mjs} +570 -216
  36. package/dist/{dist-DaKKDf8D.mjs → dist-BrsS7cai.mjs} +17 -2
  37. package/dist/{dist-BuiRJkTd.mjs → dist-m40_XgNh.mjs} +48 -33
  38. package/dist/{domain-DiaNQbrl.mjs → domain-B1VmoSr0.mjs} +41 -4
  39. package/dist/dotenv-VQxupEUv.mjs +181 -0
  40. package/dist/edge.d.mts +2 -0
  41. package/dist/edge.mjs +2 -0
  42. package/dist/email-Ce6SQq-i.mjs +182 -0
  43. package/dist/email-uKyQYUVY.mjs +1016 -0
  44. package/dist/{entry-D7yy4xVH.mjs → entry-DU3oDoQ3.mjs} +2 -2
  45. package/dist/env-BcQzYgoG.mjs +73 -0
  46. package/dist/env-D4Emu-M_.mjs +95 -0
  47. package/dist/env-helpers-CyKtOBpj.d.mts +22 -0
  48. package/dist/env-public-D_6u46fX.d.mts +135 -0
  49. package/dist/{env-types-QBj-ndax.mjs → env-types-BNPhro-M.mjs} +2 -2
  50. package/dist/{env-validation-Dea3v3ej.mjs → env-validation-ENpMy6Ez.mjs} +68 -122
  51. package/dist/{gen-BzXf3Jh2.mjs → gen-DI2YwdBM.mjs} +70 -15
  52. package/dist/generate-RTK8_kK1.mjs +47 -0
  53. package/dist/{github-cmd-DKcGUNsj.mjs → github-cmd-xItS5Zwf.mjs} +39 -31
  54. package/dist/{handler-Cjh8uM3Y.d.mts → handler-D1hLsObx.d.mts} +124 -122
  55. package/dist/{head-nmvOgFjd.d.mts → head-Do8P4puT.d.mts} +9 -8
  56. package/dist/{headers-ChAADPQu.mjs → headers-D8QfRX9Y.mjs} +12 -10
  57. package/dist/inbound-2d0zi2yS.mjs +706 -0
  58. package/dist/inbound-afAcWeQ9.d.mts +363 -0
  59. package/dist/index.d.mts +61 -34
  60. package/dist/index.mjs +1012 -293
  61. package/dist/{init-7JCAcKNQ.mjs → init-BD-9THgn.mjs} +329 -271
  62. package/dist/link-RMdgjF1v.mjs +52 -0
  63. package/dist/{list-CPwFDZ_c.mjs → list-3F52R_yO.mjs} +37 -5
  64. package/dist/{runner-kapo9aPs.mjs → local-d1-D2I6Ox5F.mjs} +116 -6
  65. package/dist/{login-BT3H8PN3.mjs → login-pV69H-ZO.mjs} +17 -15
  66. package/dist/{logs-Bt313ax7.mjs → logs-DFHHD6wE.mjs} +16 -2
  67. package/dist/mime-BJD7d_qL.mjs +1216 -0
  68. package/dist/neon-DHwd2zvC.mjs +54 -0
  69. package/dist/{node-pRg81HqV.mjs → node-Dk3H2jmU.mjs} +29 -8
  70. package/dist/operator-cmd-DYWRbWUA.mjs +348 -0
  71. package/dist/{agents-CtgBYqld.mjs → output-tFQLLj26.mjs} +676 -211
  72. package/dist/{package-json-Cx1osYo6.mjs → package-json-CPoWX79C.mjs} +1 -1
  73. package/dist/pages/client.d.mts +43 -41
  74. package/dist/pages/client.mjs +40 -33
  75. package/dist/pages/head-client.d.mts +10 -12
  76. package/dist/pages/head.d.mts +1 -1
  77. package/dist/pages/index.d.mts +37 -14
  78. package/dist/pages/index.mjs +5 -5
  79. package/dist/pages/islands-plugin.d.mts +25 -27
  80. package/dist/pages/islands-plugin.mjs +6 -4
  81. package/dist/pages/prefetch.d.mts +6 -7
  82. package/dist/pages/protocol.d.mts +2 -2
  83. package/dist/pages/protocol.mjs +2 -1
  84. package/dist/pages/serialize.d.mts +7 -8
  85. package/dist/platform-cmd-DxJ2FRwR.mjs +123 -0
  86. package/dist/platform-domain-ChvbJkdy.mjs +228 -0
  87. package/dist/platform-lifecycle-DN4MzJF_.mjs +4450 -0
  88. package/dist/platform-management-Db2PXw0B.mjs +698 -0
  89. package/dist/platform-recovery-C_YO-tIs.mjs +99 -0
  90. package/dist/{plugin-inference-DMeavIJ6.mjs → plugin-inference-BDRfZngg.mjs} +35 -19
  91. package/dist/prepare-BfJvFUtJ.mjs +14 -0
  92. package/dist/{prepare-BvvgAz-3.mjs → prepare-CBetXvsN.mjs} +15 -24
  93. package/dist/{preset-BjyR3lzz.mjs → preset-lAy0B0BQ.mjs} +25 -212
  94. package/dist/{project-cmd-D_w-4w5B.mjs → project-cmd-Mo0V9yKS.mjs} +25 -12
  95. package/dist/{project-paths-BQd7OmIo.mjs → project-paths-SK8nMHPp.mjs} +3 -1
  96. package/dist/{project-tsconfig-B-QtXjLQ.mjs → project-tsconfig-Ql2XsSQp.mjs} +2 -2
  97. package/dist/{protocol-Bnb0LFp3.d.mts → protocol-C-pqYJjE.d.mts} +3 -4
  98. package/dist/{provision-CPx2ZxsH.mjs → provision-Blnstcm2.mjs} +78 -45
  99. package/dist/r2-conditions-D1Wk8i7b.mjs +30 -0
  100. package/dist/{requests-B8sZxaFM.mjs → requests-BcKOVpRg.mjs} +5 -3
  101. package/dist/{resolve-project-BBMtLLV9.mjs → resolve-project--Vxawf7z.mjs} +2 -2
  102. package/dist/rollback-Bx85-0xh.mjs +166 -0
  103. package/dist/{rolldown-runtime-DJK8HYOj.mjs → rolldown-runtime-rQ84J-ij.mjs} +1 -1
  104. package/dist/{route-types-z1jtHEi_.mjs → route-types-Da-DpyUp.mjs} +77 -25
  105. package/dist/routes-stub.d.mts +22 -23
  106. package/dist/runner-mysql-7BPUNGmL.mjs +61 -0
  107. package/dist/{runner-pg-CHM76xuC.mjs → runner-pg-BkEza-dX.mjs} +18 -6
  108. package/dist/runtime/ai.d.mts +21 -14
  109. package/dist/runtime/ai.mjs +5 -4
  110. package/dist/runtime/auth-client-react.d.mts +3 -5
  111. package/dist/runtime/auth-client-solid.d.mts +3 -5
  112. package/dist/runtime/auth-client-svelte.d.mts +3 -5
  113. package/dist/runtime/auth-client-vue.d.mts +3 -5
  114. package/dist/runtime/auth-client.d.mts +3 -5
  115. package/dist/runtime/auth.d.mts +1 -1
  116. package/dist/runtime/better-auth-mysql.d.mts +10 -0
  117. package/dist/runtime/better-auth-mysql.mjs +49 -0
  118. package/dist/runtime/better-auth-pg.d.mts +8 -9
  119. package/dist/runtime/better-auth-pg.mjs +2 -2
  120. package/dist/runtime/better-auth.d.mts +8 -9
  121. package/dist/runtime/better-auth.mjs +2 -2
  122. package/dist/runtime/client-react.d.mts +1 -1
  123. package/dist/runtime/client-solid.d.mts +1 -1
  124. package/dist/runtime/client-svelte.d.mts +1 -1
  125. package/dist/runtime/client-vue.d.mts +1 -1
  126. package/dist/runtime/client.d.mts +1 -1
  127. package/dist/runtime/db-mysql.d.mts +2 -0
  128. package/dist/runtime/db-mysql.mjs +1 -0
  129. package/dist/runtime/db.d.mts +10 -11
  130. package/dist/runtime/durable.d.mts +47 -0
  131. package/dist/runtime/durable.mjs +146 -0
  132. package/dist/runtime/email/testing.d.mts +112 -0
  133. package/dist/runtime/email/testing.mjs +283 -0
  134. package/dist/runtime/email.d.mts +30 -0
  135. package/dist/runtime/email.mjs +573 -0
  136. package/dist/runtime/env-helpers.d.mts +2 -2
  137. package/dist/runtime/env-helpers.mjs +5 -42
  138. package/dist/runtime/env-public-client.d.mts +10 -11
  139. package/dist/runtime/env-public-client.mjs +1 -1
  140. package/dist/runtime/env-public.d.mts +2 -2
  141. package/dist/runtime/env-public.mjs +104 -49
  142. package/dist/runtime/env.d.mts +19 -18
  143. package/dist/runtime/env.mjs +15 -2
  144. package/dist/runtime/fetch-stream.d.mts +20 -21
  145. package/dist/runtime/fetch.d.mts +15 -16
  146. package/dist/runtime/handler.d.mts +1 -1
  147. package/dist/runtime/isr.d.mts +21 -22
  148. package/dist/runtime/isr.mjs +26 -8
  149. package/dist/runtime/kv.d.mts +9 -10
  150. package/dist/runtime/live-client.d.mts +5 -7
  151. package/dist/runtime/live-client.mjs +9 -7
  152. package/dist/runtime/live-server.d.mts +4 -5
  153. package/dist/runtime/live.d.mts +22 -24
  154. package/dist/runtime/live.mjs +1 -1
  155. package/dist/runtime/log.d.mts +16 -17
  156. package/dist/runtime/migration-handler-mysql.d.mts +4 -0
  157. package/dist/runtime/migration-handler-mysql.mjs +81 -0
  158. package/dist/runtime/migration-handler-pg.d.mts +2 -4
  159. package/dist/runtime/migration-handler.d.mts +5 -6
  160. package/dist/runtime/migration-handler.mjs +4 -3
  161. package/dist/runtime/queues.d.mts +3 -4
  162. package/dist/runtime/queues.mjs +2 -1
  163. package/dist/runtime/remote/binding-handler.d.mts +10 -12
  164. package/dist/runtime/remote/binding-handler.mjs +24 -3
  165. package/dist/runtime/remote/index.d.mts +5 -6
  166. package/dist/runtime/remote/index.mjs +21 -18
  167. package/dist/runtime/response.d.mts +10 -11
  168. package/dist/runtime/sandbox.d.mts +56 -55
  169. package/dist/runtime/sandbox.mjs +57 -49
  170. package/dist/runtime/schema-mysql.d.mts +1 -0
  171. package/dist/runtime/schema-mysql.mjs +2 -0
  172. package/dist/runtime/seed.d.mts +14 -9
  173. package/dist/runtime/sse-client.d.mts +6 -7
  174. package/dist/runtime/sse.d.mts +11 -12
  175. package/dist/runtime/storage.d.mts +3 -4
  176. package/dist/runtime/validator.d.mts +1 -1
  177. package/dist/runtime/ws-server.d.mts +12 -12
  178. package/dist/runtime/ws-server.mjs +32 -4
  179. package/dist/runtime/ws.d.mts +19 -21
  180. package/dist/{scan-ChWt4pX1.mjs → scan-BMH4rzlv.mjs} +42 -19
  181. package/dist/{scan-NU4xKGci.mjs → scan-CpK-57ug.mjs} +5 -4
  182. package/dist/{secret-Dt32J6RI.mjs → secret-ByhJ9AMl.mjs} +62 -5
  183. package/dist/{skills-CLjN0uUO.mjs → skills-Q46GZMO-.mjs} +6 -4
  184. package/dist/sqlite-validation-BzKMWnO4.mjs +25 -0
  185. package/dist/{standard-schema-DJ0HW7QP.d.mts → standard-schema-Fo_vCAZh.d.mts} +6 -6
  186. package/dist/{subcommand-prompt-BzV8iQZo.mjs → subcommand-prompt-WfySCQ7S.mjs} +67 -48
  187. package/dist/sveltekit.d.mts +12 -11
  188. package/dist/sveltekit.mjs +1 -1
  189. package/dist/types-BAp5AEBU.d.mts +79 -0
  190. package/dist/types-CKWnYgfy.d.mts +1 -0
  191. package/dist/{validate-Cw_RLeTj.mjs → validate-tBBN_dXH.mjs} +4 -3
  192. package/dist/wrangler--imS8n0d.mjs +1796 -0
  193. package/dist/{yarn-pnp-DJn3SAHF.mjs → yarn-pnp-DxSInkzL.mjs} +1 -1
  194. package/package.json +79 -65
  195. package/schema.json +22 -3
  196. package/skills/void/SKILL.md +59 -2
  197. package/skills/void/docs/guide/ai.md +32 -14
  198. package/skills/void/docs/guide/app-types.md +6 -6
  199. package/skills/void/docs/guide/auth.md +14 -16
  200. package/skills/void/docs/guide/database/d1.md +6 -0
  201. package/skills/void/docs/guide/database/mysql.md +60 -0
  202. package/skills/void/docs/guide/database/postgresql.md +14 -9
  203. package/skills/void/docs/guide/database.md +39 -26
  204. package/skills/void/docs/guide/deployment.md +99 -25
  205. package/skills/void/docs/guide/durable-state.md +140 -0
  206. package/skills/void/docs/guide/edge/headers.md +5 -5
  207. package/skills/void/docs/guide/edge/prerendering.md +2 -0
  208. package/skills/void/docs/guide/edge/revalidation.md +21 -6
  209. package/skills/void/docs/guide/edge/rewrites.md +18 -14
  210. package/skills/void/docs/guide/edge/static-assets.md +12 -10
  211. package/skills/void/docs/guide/email.md +640 -0
  212. package/skills/void/docs/guide/env-migration.md +109 -0
  213. package/skills/void/docs/guide/env-vars.md +70 -248
  214. package/skills/void/docs/guide/index.md +15 -17
  215. package/skills/void/docs/guide/jobs.md +8 -5
  216. package/skills/void/docs/guide/live.md +7 -15
  217. package/skills/void/docs/guide/pages-routing/actions-and-forms.md +8 -4
  218. package/skills/void/docs/guide/pages-routing/islands.md +3 -3
  219. package/skills/void/docs/guide/pages-routing/loaders.md +6 -4
  220. package/skills/void/docs/guide/pages-routing/overview.md +7 -7
  221. package/skills/void/docs/guide/platform-administration.md +212 -0
  222. package/skills/void/docs/guide/platform-development.md +264 -0
  223. package/skills/void/docs/guide/queues.md +10 -10
  224. package/skills/void/docs/guide/quickstart.md +46 -67
  225. package/skills/void/docs/guide/remote-dev.md +8 -6
  226. package/skills/void/docs/guide/sandboxes.md +33 -16
  227. package/skills/void/docs/guide/self-hosted-platform.md +553 -0
  228. package/skills/void/docs/guide/server-routing.md +5 -5
  229. package/skills/void/docs/guide/sse.md +4 -4
  230. package/skills/void/docs/guide/ssg.md +5 -3
  231. package/skills/void/docs/guide/storage.md +2 -2
  232. package/skills/void/docs/guide/websockets.md +15 -7
  233. package/skills/void/docs/index.md +3 -3
  234. package/skills/void/docs/integrations/agents.md +6 -64
  235. package/skills/void/docs/integrations/cloudflare.md +165 -146
  236. package/skills/void/docs/integrations/frameworks/analog.md +4 -4
  237. package/skills/void/docs/integrations/frameworks/astro.md +5 -5
  238. package/skills/void/docs/integrations/frameworks/nuxt.md +5 -5
  239. package/skills/void/docs/integrations/frameworks/overview.md +3 -3
  240. package/skills/void/docs/integrations/frameworks/react-router.md +3 -3
  241. package/skills/void/docs/integrations/frameworks/sveltekit.md +3 -3
  242. package/skills/void/docs/integrations/frameworks/tanstack-start.md +2 -2
  243. package/skills/void/docs/integrations/nodejs-bun-deno.md +11 -4
  244. package/skills/void/docs/reference/api.md +42 -6
  245. package/skills/void/docs/reference/cli.md +665 -160
  246. package/skills/void/docs/reference/config.md +67 -27
  247. package/skills/void/docs/reference/resource-inference.md +13 -9
  248. package/skills/void/docs/reference/structure.md +9 -11
  249. package/AGENT_PROMPT.md +0 -19
  250. package/dist/cf-access-Bqw81xAf.mjs +0 -22
  251. package/dist/env-CZy5MorI.mjs +0 -299
  252. package/dist/env-helpers-z4stu8uc.d.mts +0 -52
  253. package/dist/env-mask-Dd47NbR6.mjs +0 -90
  254. package/dist/env-public-BfiLcMBk.d.mts +0 -140
  255. package/dist/link-CdGHSIy-.mjs +0 -45
  256. package/dist/mcp-DoM3_nhd.mjs +0 -377
  257. package/dist/project-paths-GpziKeQQ.d.mts +0 -25
  258. package/dist/providers-BNKRacMr.d.mts +0 -7
  259. package/dist/proxy-D-3_D-Gl.mjs +0 -5
  260. package/dist/rollback-CkvTFXx5.mjs +0 -90
  261. package/dist/runtime/isr-cache.d.mts +0 -207
  262. package/dist/runtime/isr-cache.mjs +0 -523
  263. package/dist/types-lLjNE9Qp.d.mts +0 -51
  264. package/getting-started-prompt.txt +0 -28
  265. package/skills/void/command/void.md +0 -7
  266. package/skills/void/docs/integrations/auth-providers.md +0 -0
  267. package/skills/void/docs/integrations/payment-processors.md +0 -0
  268. package/skills/void/docs/node_modules/@iconify/vue/README.md +0 -408
  269. package/skills/void/docs/node_modules/@iconify/vue/offline/readme.md +0 -5
  270. package/skills/void/docs/node_modules/@voidzero-dev/vitepress-theme/README.md +0 -103
  271. package/skills/void/docs/node_modules/oxc-minify/README.md +0 -78
  272. package/skills/void/docs/node_modules/reka-ui/README.md +0 -80
  273. package/skills/void/docs/node_modules/vitepress/README.md +0 -28
  274. package/skills/void/docs/node_modules/vitepress/template/api-examples.md +0 -49
  275. package/skills/void/docs/node_modules/vitepress/template/index.md +0 -28
  276. package/skills/void/docs/node_modules/vitepress/template/markdown-examples.md +0 -85
  277. package/skills/void/docs/node_modules/vitepress-plugin-group-icons/README.md +0 -101
  278. package/skills/void/docs/node_modules/void/AGENT_PROMPT.md +0 -19
  279. package/skills/void/docs/node_modules/void/CLAUDE.md +0 -221
  280. package/skills/void/docs/node_modules/void/README.md +0 -90
  281. package/skills/void/docs/node_modules/void/node_modules/@clack/prompts/CHANGELOG.md +0 -685
  282. package/skills/void/docs/node_modules/void/node_modules/@clack/prompts/README.md +0 -396
  283. package/skills/void/docs/node_modules/void/node_modules/@cloudflare/sandbox/README.md +0 -219
  284. package/skills/void/docs/node_modules/void/node_modules/@cloudflare/vite-plugin/README.md +0 -37
  285. package/skills/void/docs/node_modules/void/node_modules/@cloudflare/workers-types/README.md +0 -135
  286. package/skills/void/docs/node_modules/void/node_modules/@electric-sql/pglite/README.md +0 -189
  287. package/skills/void/docs/node_modules/void/node_modules/@hono/oauth-providers/CHANGELOG.md +0 -143
  288. package/skills/void/docs/node_modules/void/node_modules/@hono/oauth-providers/README.md +0 -1272
  289. package/skills/void/docs/node_modules/void/node_modules/@napi-rs/keyring/README.md +0 -19
  290. package/skills/void/docs/node_modules/void/node_modules/@types/better-sqlite3/README.md +0 -15
  291. package/skills/void/docs/node_modules/void/node_modules/@types/node/README.md +0 -15
  292. package/skills/void/docs/node_modules/void/node_modules/@types/pg/README.md +0 -15
  293. package/skills/void/docs/node_modules/void/node_modules/@types/proper-lockfile/README.md +0 -51
  294. package/skills/void/docs/node_modules/void/node_modules/@typescript/native-preview/README.md +0 -22
  295. package/skills/void/docs/node_modules/void/node_modules/@typescript/native-preview/vendor/vscode-jsonrpc/README.md +0 -69
  296. package/skills/void/docs/node_modules/void/node_modules/@void/md/README.md +0 -153
  297. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/@shikijs/engine-javascript/README.md +0 -9
  298. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/@shikijs/transformers/README.md +0 -9
  299. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/@types/node/README.md +0 -15
  300. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/gray-matter/CHANGELOG.md +0 -24
  301. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/gray-matter/README.md +0 -565
  302. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-exit/README.md +0 -127
  303. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-it-anchor/README.md +0 -600
  304. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-it-attrs/README.md +0 -386
  305. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-it-container/README.md +0 -95
  306. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-it-emoji/README.md +0 -101
  307. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-it-footnote/README.md +0 -135
  308. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/pathslash/README.md +0 -64
  309. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/shiki/README.md +0 -15
  310. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/tinyglobby/README.md +0 -25
  311. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/AGENTS.md +0 -16
  312. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/README.md +0 -220
  313. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/build.md +0 -21
  314. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/check.md +0 -35
  315. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/create.md +0 -70
  316. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/fmt.md +0 -20
  317. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/index.md +0 -35
  318. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/lint.md +0 -26
  319. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/pack.md +0 -17
  320. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/run.md +0 -364
  321. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/staged.md +0 -15
  322. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/test.md +0 -18
  323. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/automatic-data-tracking.md +0 -145
  324. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/build.md +0 -40
  325. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/cache.md +0 -107
  326. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/check.md +0 -60
  327. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/ci.md +0 -62
  328. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/commit-hooks.md +0 -60
  329. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/create.md +0 -341
  330. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/dev.md +0 -24
  331. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/docker.md +0 -175
  332. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/env.md +0 -167
  333. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/fmt.md +0 -41
  334. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/github-actions-cache.md +0 -165
  335. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/ide-integration.md +0 -101
  336. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/implode.md +0 -23
  337. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/index.md +0 -134
  338. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/install.md +0 -199
  339. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/lint.md +0 -50
  340. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/migrate-rules.md +0 -347
  341. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/migrate.md +0 -197
  342. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/monorepo.md +0 -176
  343. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/pack.md +0 -69
  344. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/run.md +0 -356
  345. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/test.md +0 -35
  346. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/troubleshooting.md +0 -108
  347. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/upgrade.md +0 -101
  348. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/vpx.md +0 -66
  349. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/why.md +0 -39
  350. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/index.md +0 -12
  351. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/team.md +0 -35
  352. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/templates/generator/README.md +0 -35
  353. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/templates/monorepo/README.md +0 -29
  354. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vue/README.md +0 -58
  355. package/skills/void/docs/node_modules/void/node_modules/arktype/README.md +0 -165
  356. package/skills/void/docs/node_modules/void/node_modules/better-auth/LICENSE.md +0 -20
  357. package/skills/void/docs/node_modules/void/node_modules/better-auth/README.md +0 -32
  358. package/skills/void/docs/node_modules/void/node_modules/better-sqlite3/README.md +0 -99
  359. package/skills/void/docs/node_modules/void/node_modules/blake3-jit/README.md +0 -108
  360. package/skills/void/docs/node_modules/void/node_modules/drizzle-arktype/README.md +0 -51
  361. package/skills/void/docs/node_modules/void/node_modules/drizzle-kit/README.md +0 -79
  362. package/skills/void/docs/node_modules/void/node_modules/drizzle-orm/README.md +0 -44
  363. package/skills/void/docs/node_modules/void/node_modules/drizzle-valibot/README.md +0 -51
  364. package/skills/void/docs/node_modules/void/node_modules/drizzle-zod/README.md +0 -65
  365. package/skills/void/docs/node_modules/void/node_modules/es-module-lexer/README.md +0 -403
  366. package/skills/void/docs/node_modules/void/node_modules/estree-walker/README.md +0 -48
  367. package/skills/void/docs/node_modules/void/node_modules/hono/README.md +0 -85
  368. package/skills/void/docs/node_modules/void/node_modules/ignore/README.md +0 -452
  369. package/skills/void/docs/node_modules/void/node_modules/jsonc-parser/CHANGELOG.md +0 -76
  370. package/skills/void/docs/node_modules/void/node_modules/jsonc-parser/LICENSE.md +0 -21
  371. package/skills/void/docs/node_modules/void/node_modules/jsonc-parser/README.md +0 -364
  372. package/skills/void/docs/node_modules/void/node_modules/jsonc-parser/SECURITY.md +0 -41
  373. package/skills/void/docs/node_modules/void/node_modules/magic-string/README.md +0 -325
  374. package/skills/void/docs/node_modules/void/node_modules/ofetch/README.md +0 -398
  375. package/skills/void/docs/node_modules/void/node_modules/pathslash/README.md +0 -64
  376. package/skills/void/docs/node_modules/void/node_modules/pg/README.md +0 -96
  377. package/skills/void/docs/node_modules/void/node_modules/pglite-server/README.md +0 -135
  378. package/skills/void/docs/node_modules/void/node_modules/picocolors/README.md +0 -21
  379. package/skills/void/docs/node_modules/void/node_modules/proper-lockfile/CHANGELOG.md +0 -108
  380. package/skills/void/docs/node_modules/void/node_modules/proper-lockfile/README.md +0 -183
  381. package/skills/void/docs/node_modules/void/node_modules/tinyglobby/README.md +0 -25
  382. package/skills/void/docs/node_modules/void/node_modules/valibot/LICENSE.md +0 -9
  383. package/skills/void/docs/node_modules/void/node_modules/valibot/README.md +0 -94
  384. package/skills/void/docs/node_modules/void/node_modules/vite-plus/AGENTS.md +0 -16
  385. package/skills/void/docs/node_modules/void/node_modules/vite-plus/README.md +0 -220
  386. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/build.md +0 -21
  387. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/check.md +0 -35
  388. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/create.md +0 -70
  389. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/fmt.md +0 -20
  390. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/index.md +0 -35
  391. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/lint.md +0 -26
  392. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/pack.md +0 -17
  393. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/run.md +0 -364
  394. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/staged.md +0 -15
  395. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/test.md +0 -18
  396. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/automatic-data-tracking.md +0 -145
  397. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/build.md +0 -40
  398. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/cache.md +0 -107
  399. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/check.md +0 -60
  400. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/ci.md +0 -62
  401. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/commit-hooks.md +0 -60
  402. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/create.md +0 -341
  403. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/dev.md +0 -24
  404. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/docker.md +0 -175
  405. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/env.md +0 -167
  406. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/fmt.md +0 -41
  407. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/github-actions-cache.md +0 -165
  408. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/ide-integration.md +0 -101
  409. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/implode.md +0 -23
  410. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/index.md +0 -134
  411. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/install.md +0 -199
  412. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/lint.md +0 -50
  413. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/migrate-rules.md +0 -347
  414. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/migrate.md +0 -197
  415. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/monorepo.md +0 -176
  416. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/pack.md +0 -69
  417. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/run.md +0 -356
  418. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/test.md +0 -35
  419. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/troubleshooting.md +0 -108
  420. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/upgrade.md +0 -101
  421. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/vpx.md +0 -66
  422. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/why.md +0 -39
  423. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/index.md +0 -12
  424. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/team.md +0 -35
  425. package/skills/void/docs/node_modules/void/node_modules/vite-plus/templates/generator/README.md +0 -35
  426. package/skills/void/docs/node_modules/void/node_modules/vite-plus/templates/monorepo/README.md +0 -29
  427. package/skills/void/docs/node_modules/void/node_modules/wrangler/README.md +0 -63
  428. package/skills/void/docs/node_modules/void/node_modules/zod/README.md +0 -191
  429. package/skills/void/docs/node_modules/void/skills/migrate-vite-cloudflare-to-void/SKILL.md +0 -175
  430. package/skills/void/docs/node_modules/void/skills/void/SKILL.md +0 -76
  431. package/skills/void/docs/node_modules/void/skills/void/command/void.md +0 -7
  432. package/skills/void/docs/node_modules/void/test/e2e/README.md +0 -85
@@ -1,6 +1,7 @@
1
- import { A as text, S as confirm, T as log, j as isCancel, k as select, u as import_picocolors, x as cancel } from "./agents-CtgBYqld.mjs";
2
- import { b as readProjectConfig, c as createCodeChallenge, f as getToken, h as openBrowser, l as createCodeVerifier, n as PlatformClient, o as parsePlatformErrorBody, s as awaitBrowserCallback, t as PlatformApiError } from "./client-Gb71-XkG.mjs";
3
- import { r as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-BBMtLLV9.mjs";
1
+ import { C as cancel, D as log, F as isCancel, N as text, c as import_picocolors, j as select, w as confirm } from "./output-tFQLLj26.mjs";
2
+ import { c as getToken, d as openBrowser, i as createCodeVerifier, n as awaitBrowserCallback, r as createCodeChallenge, x as readProjectConfig } from "./auth-W9WII-mN.mjs";
3
+ import { n as PlatformClient, o as parsePlatformErrorBody, t as PlatformApiError } from "./client-Clirrol3.mjs";
4
+ import { r as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project--Vxawf7z.mjs";
4
5
  import { t as collectGitDeployMetadata } from "./git-metadata-D-gurjzG.mjs";
5
6
  import { randomBytes } from "node:crypto";
6
7
  //#region src/cli/github-cmd.ts
@@ -83,12 +84,14 @@ function formatInstallations(installations) {
83
84
  function formatConnection(connection) {
84
85
  const row = (label, value) => ` ${label.padEnd(16)}${value}`;
85
86
  const workflow = connection.build_executor === "github_actions" ? connection.workflow_path : `${connection.workflow_path} (unused for container builds)`;
86
- return [
87
+ const rows = [
87
88
  row("Repository", connection.repo_full_name),
88
89
  row("Branch", connection.branch),
89
90
  row("Build executor", connection.build_executor),
90
91
  row("Deploy workflow", workflow)
91
- ].join("\n");
92
+ ];
93
+ if (connection.requires_reconnect) rows.push(row("Authorization", "Reconnect required: run `void github connect` for this repository"));
94
+ return rows.join("\n");
92
95
  }
93
96
  async function runGithubCommand(root, args) {
94
97
  const token = getToken(root);
@@ -310,7 +313,8 @@ async function runConnect(root, client, args) {
310
313
  let projectId;
311
314
  const requestedSlug = getRequestedProjectSlug({ projectSlug: args.projectName || void 0 });
312
315
  if (requestedSlug) {
313
- const resolved = resolveProjectBySlug(await client.listProjects(), requestedSlug);
316
+ const projects = await client.listProjects();
317
+ const resolved = resolveProjectBySlug(projects, requestedSlug);
314
318
  if (!resolved) {
315
319
  log.error(`connect: No project found with slug '${requestedSlug}'.`);
316
320
  process.exit(1);
@@ -397,31 +401,32 @@ async function runConnect(root, client, args) {
397
401
  }
398
402
  let repoFullName;
399
403
  if (args.repo) repoFullName = args.repo;
400
- else if (installation.repository_selection === "selected") if (installation.repositories.length === 0) {
401
- if (!isTTY) {
402
- log.error("connect: --repo <owner/repo> is required — this installation does not expose a repository list to your account.");
404
+ else if (installation.repository_selection === "selected") {
405
+ if (installation.repositories.length === 0) {
406
+ if (!isTTY) {
407
+ log.error("connect: --repo <owner/repo> is required — this installation does not expose a repository list to your account.");
408
+ process.exit(1);
409
+ }
410
+ repoFullName = await promptRepoFullName(root);
411
+ } else if (installation.repositories.length === 1) repoFullName = installation.repositories[0].full_name;
412
+ else if (!isTTY) {
413
+ log.error("connect: Multiple repositories available. Pass --repo <owner/repo>.");
403
414
  process.exit(1);
415
+ } else {
416
+ const picked = await select({
417
+ message: "Select a repository:",
418
+ options: installation.repositories.map((r) => ({
419
+ value: r.full_name,
420
+ label: r.full_name
421
+ }))
422
+ });
423
+ if (isCancel(picked)) {
424
+ cancel("Cancelled.");
425
+ process.exit(0);
426
+ }
427
+ repoFullName = picked;
404
428
  }
405
- repoFullName = await promptRepoFullName(root);
406
- } else if (installation.repositories.length === 1) repoFullName = installation.repositories[0].full_name;
407
- else if (!isTTY) {
408
- log.error("connect: Multiple repositories available. Pass --repo <owner/repo>.");
409
- process.exit(1);
410
429
  } else {
411
- const picked = await select({
412
- message: "Select a repository:",
413
- options: installation.repositories.map((r) => ({
414
- value: r.full_name,
415
- label: r.full_name
416
- }))
417
- });
418
- if (isCancel(picked)) {
419
- cancel("Cancelled.");
420
- process.exit(0);
421
- }
422
- repoFullName = picked;
423
- }
424
- else {
425
430
  if (!isTTY) {
426
431
  log.error("connect: --repo <owner/repo> is required in non-interactive mode for an all-repositories installation.");
427
432
  process.exit(1);
@@ -545,7 +550,8 @@ async function runGithubUpdate(root, client, args) {
545
550
  let projectId;
546
551
  const requestedSlug = getRequestedProjectSlug({ projectSlug: args.projectName || void 0 });
547
552
  if (requestedSlug) {
548
- const resolved = resolveProjectBySlug(await client.listProjects(), requestedSlug);
553
+ const projects = await client.listProjects();
554
+ const resolved = resolveProjectBySlug(projects, requestedSlug);
549
555
  if (!resolved) {
550
556
  log.error(`update: No project found with slug '${requestedSlug}'.`);
551
557
  process.exit(1);
@@ -690,7 +696,8 @@ async function runStatus(root, client, args) {
690
696
  let projectId;
691
697
  const requestedSlug = getRequestedProjectSlug({ projectSlug: args.projectName || void 0 });
692
698
  if (requestedSlug) {
693
- const resolved = resolveProjectBySlug(await client.listProjects(), requestedSlug);
699
+ const projects = await client.listProjects();
700
+ const resolved = resolveProjectBySlug(projects, requestedSlug);
694
701
  if (!resolved) {
695
702
  log.error(`status: No project found with slug '${requestedSlug}'.`);
696
703
  process.exit(1);
@@ -752,7 +759,8 @@ async function runGithubDisconnect(root, client, args) {
752
759
  let projectId;
753
760
  const requestedSlug = getRequestedProjectSlug({ projectSlug: args.projectName || void 0 });
754
761
  if (requestedSlug) {
755
- const resolved = resolveProjectBySlug(await client.listProjects(), requestedSlug);
762
+ const projects = await client.listProjects();
763
+ const resolved = resolveProjectBySlug(projects, requestedSlug);
756
764
  if (!resolved) {
757
765
  log.error(`disconnect: No project found with slug '${requestedSlug}'.`);
758
766
  process.exit(1);
@@ -1,9 +1,8 @@
1
- import { t as StandardSchemaV1 } from "./standard-schema-DJ0HW7QP.mjs";
2
- import { n as HeadDescriptor } from "./head-nmvOgFjd.mjs";
3
- import { r as AuthUser, t as AuthSession } from "./auth-qgMlYp7Z.mjs";
1
+ import { t as StandardSchemaV1 } from "./standard-schema-Fo_vCAZh.mjs";
2
+ import { n as HeadDescriptor } from "./head-Do8P4puT.mjs";
3
+ import { r as AuthUser, t as AuthSession } from "./auth-DkcFflXV.mjs";
4
4
  import { Context, Env, MiddlewareHandler } from "hono";
5
5
  import { RewriteDestination } from "void/routes";
6
-
7
6
  //#region src/runtime/validator.d.ts
8
7
  type ValidatorSlots = {
9
8
  body?: StandardSchemaV1;
@@ -18,7 +17,7 @@ type ValidationFailure = {
18
17
  ok: false;
19
18
  response: Response;
20
19
  };
21
- type HandlerInput<V extends ValidatorSlots> = { [K in keyof V as V[K] extends StandardSchemaV1 ? K : never]: V[K] extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<V[K]> : never };
20
+ type HandlerInput<V extends ValidatorSlots> = { [K in keyof V as V[K] extends StandardSchemaV1 ? K : never]: V[K] extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<V[K]> : never; };
22
21
  declare function runValidation<V extends ValidatorSlots>(validators: V, c: CloudContext): Promise<ValidationSuccess<V> | ValidationFailure>;
23
22
  //#endregion
24
23
  //#region src/pages/validation-error.d.ts
@@ -43,10 +42,10 @@ type DeferredState<T> = {
43
42
  readonly error: Error;
44
43
  };
45
44
  /**
46
- * Deferred props are represented as framework-native resources on the client.
47
- * React treats them as promises consumed with `use()`, while the other adapters
48
- * expose the historical `{ loading, value, error }` state object.
49
- */
45
+ * Deferred props are represented as framework-native resources on the client.
46
+ * React treats them as promises consumed with `use()`, while the other adapters
47
+ * expose the historical `{ loading, value, error }` state object.
48
+ */
50
49
  type Deferred<T> = DeferredState<T> & Promise<T>;
51
50
  /** Extract the props type from a typed handler (loader). */
52
51
  type InferProps<T> = T extends {
@@ -57,24 +56,24 @@ declare function defer<T>(group: string, resolver: (c: CloudContext) => Promise<
57
56
  //#endregion
58
57
  //#region src/runtime/handler.d.ts
59
58
  /**
60
- * Thrown when `c.rewrite()` is called with a destination whose final path
61
- * segment ends in a known static-asset extension (e.g. `/hero.png`,
62
- * `/app.css`). Runtime rewrites only reach routes and SSR entries inside
63
- * the worker — static asset handlers run in front of the worker, so a
64
- * `c.rewrite()` into an asset path re-enters the Hono router, matches
65
- * nothing, and returns a 404. Fail at the call site so users reach for
66
- * static `routing.rewrites` instead of debugging a mystery 404.
67
- */
59
+ * Thrown when `c.rewrite()` is called with a destination whose final path
60
+ * segment ends in a known static-asset extension (e.g. `/hero.png`,
61
+ * `/app.css`). Runtime rewrites only reach routes and SSR entries inside
62
+ * the worker — static asset handlers run in front of the worker, so a
63
+ * `c.rewrite()` into an asset path re-enters the Hono router, matches
64
+ * nothing, and returns a 404. Fail at the call site so users reach for
65
+ * static `routing.rewrites` instead of debugging a mystery 404.
66
+ */
68
67
  declare class VoidAssetRewriteError extends Error {
69
68
  override name: string;
70
69
  constructor(destination: string);
71
70
  }
72
71
  /**
73
- * Hono environment type for Void workers.
74
- *
75
- * Includes standard Cloudflare bindings plus request-scoped auth
76
- * variables populated by Better Auth middleware.
77
- */
72
+ * Hono environment type for Void workers.
73
+ *
74
+ * Includes standard Cloudflare bindings plus request-scoped auth
75
+ * variables populated by Better Auth middleware.
76
+ */
78
77
  interface CloudContextVariables {
79
78
  user: AuthUser | null;
80
79
  session: AuthSession | null;
@@ -82,13 +81,13 @@ interface CloudContextVariables {
82
81
  [key: string]: unknown;
83
82
  }
84
83
  /**
85
- * Hono `Bindings` shape for Void workers.
86
- *
87
- * Augmented by the generated `.void/env.d.ts` so user-declared env keys
88
- * become typed on `c.env`. The index signature keeps untyped access
89
- * working for bindings that aren't in the schema (queues, custom
90
- * bindings, etc.).
91
- */
84
+ * Hono `Bindings` shape for Void workers.
85
+ *
86
+ * Augmented by the generated `.void/env.d.ts` so user-declared env keys
87
+ * become typed on `c.env`. The index signature keeps untyped access
88
+ * working for bindings that aren't in the schema (queues, custom
89
+ * bindings, etc.).
90
+ */
92
91
  interface CloudBindings {
93
92
  DB: D1Database;
94
93
  KV: KVNamespace;
@@ -104,60 +103,60 @@ type CloudEnv = Env & {
104
103
  declare module "hono" {
105
104
  interface Context {
106
105
  /**
107
- * Rewrite the request to a different internal path without changing the browser URL.
108
- *
109
- * Must be called inside a `defineMiddleware` handler and the result must be returned:
110
- *
111
- * ```ts
112
- * export default defineMiddleware(async (c, next) => {
113
- * if (!hasLocalePrefix(c.req.path)) {
114
- * return c.rewrite(`/en${c.req.path}`);
115
- * }
116
- * return next();
117
- * });
118
- * ```
119
- *
120
- * The request is re-dispatched through the Hono router with the new pathname.
121
- * The re-dispatched request is tracked internally so that static routing rules
122
- * do not re-evaluate on it. Your middleware is responsible for its own loop
123
- * prevention (e.g., checking if the path already has a prefix).
124
- *
125
- * The `path` type is `RewriteDestination`, which is `keyof RouteMap | (string & {})`.
126
- * Known routes autocomplete, but any string is still accepted so dynamic paths
127
- * (e.g. `` `/users/${id}` ``) continue to work. When `.void/routes.d.ts` has not
128
- * been generated yet, `RouteMap` is empty and this is equivalent to `string`.
129
- */
106
+ * Rewrite the request to a different internal path without changing the browser URL.
107
+ *
108
+ * Must be called inside a `defineMiddleware` handler and the result must be returned:
109
+ *
110
+ * ```ts
111
+ * export default defineMiddleware(async (c, next) => {
112
+ * if (!hasLocalePrefix(c.req.path)) {
113
+ * return c.rewrite(`/en${c.req.path}`);
114
+ * }
115
+ * return next();
116
+ * });
117
+ * ```
118
+ *
119
+ * The request is re-dispatched through the Hono router with the new pathname.
120
+ * The re-dispatched request is tracked internally so that static routing rules
121
+ * do not re-evaluate on it. Your middleware is responsible for its own loop
122
+ * prevention (e.g., checking if the path already has a prefix).
123
+ *
124
+ * The `path` type is `RewriteDestination`, which is `keyof RouteMap | (string & {})`.
125
+ * Known routes autocomplete, but any string is still accepted so dynamic paths
126
+ * (e.g. `` `/users/${id}` ``) continue to work. When `.void/routes.d.ts` has not
127
+ * been generated yet, `RouteMap` is empty and this is equivalent to `string`.
128
+ */
130
129
  rewrite: (path: RewriteDestination) => Promise<Response>;
131
130
  /**
132
- * Returns the URL the client actually requested — the pre-rewrite URL as
133
- * a `URL` object — or `null` when the current request was not rewritten.
134
- *
135
- * Set on every Void-managed request, whether the rewrite came from a
136
- * static rule (`routing.rewrites`, `routing.fallbacks`, `_redirects`
137
- * `200`/`200!`) or `c.rewrite()` in middleware. Useful for canonical
138
- * link generation and locale negotiation that must reference the URL
139
- * the user actually requested.
140
- */
131
+ * Returns the URL the client actually requested — the pre-rewrite URL as
132
+ * a `URL` object — or `null` when the current request was not rewritten.
133
+ *
134
+ * Set on every Void-managed request, whether the rewrite came from a
135
+ * static rule (`routing.rewrites`, `routing.fallbacks`, `_redirects`
136
+ * `200`/`200!`) or `c.rewrite()` in middleware. Useful for canonical
137
+ * link generation and locale negotiation that must reference the URL
138
+ * the user actually requested.
139
+ */
141
140
  originalUrl: () => URL | null;
142
141
  /**
143
- * Returns `true` when the current request was re-dispatched by a rewrite,
144
- * `false` otherwise. Equivalent to `c.originalUrl() !== null`.
145
- *
146
- * Use this to skip side-effectful work that would otherwise double-fire
147
- * on the second pass of middleware (request logging, rate-limit
148
- * increments, auth audit trails). Static rewrites (edge dispatch,
149
- * `routing.rewrites`, `routing.fallbacks`, `_redirects` `200`/`200!`)
150
- * and `c.rewrite()` in middleware both set the flag.
151
- */
142
+ * Returns `true` when the current request was re-dispatched by a rewrite,
143
+ * `false` otherwise. Equivalent to `c.originalUrl() !== null`.
144
+ *
145
+ * Use this to skip side-effectful work that would otherwise double-fire
146
+ * on the second pass of middleware (request logging, rate-limit
147
+ * increments, auth audit trails). Static rewrites (edge dispatch,
148
+ * `routing.rewrites`, `routing.fallbacks`, `_redirects` `200`/`200!`)
149
+ * and `c.rewrite()` in middleware both set the flag.
150
+ */
152
151
  isRewritten: () => boolean;
153
152
  }
154
153
  }
155
154
  /**
156
- * Hono {@link Context} pre-typed with {@link CloudEnv}.
157
- *
158
- * This is the type of the `c` parameter in route handlers and middleware
159
- * created with {@link defineHandler} and {@link defineMiddleware}.
160
- */
155
+ * Hono {@link Context} pre-typed with {@link CloudEnv}.
156
+ *
157
+ * This is the type of the `c` parameter in route handlers and middleware
158
+ * created with {@link defineHandler} and {@link defineMiddleware}.
159
+ */
161
160
  type CloudContext = Context<CloudEnv>;
162
161
  type HandlerFn = (c: CloudContext) => unknown | Promise<unknown>;
163
162
  type MiddlewareFn = MiddlewareHandler<CloudEnv>;
@@ -174,8 +173,11 @@ interface BasicAuthOptions {
174
173
  }
175
174
  /** Pre-rendered asset tags injected by the SSR build. */
176
175
  type RenderAssetTags = {
177
- /** CSS stylesheet links for `<head>`. */css: string; /** JS modulepreload links for `<head>` (only when page needs JS). */
178
- preloads: string; /** Script tags for `</body>` (only when page needs JS). */
176
+ /** CSS stylesheet links for `<head>`. */
177
+ css: string;
178
+ /** JS modulepreload links for `<head>` (only when page needs JS). */
179
+ preloads: string;
180
+ /** Script tags for `</body>` (only when page needs JS). */
179
181
  body: string;
180
182
  };
181
183
  type RenderFn = (c: CloudContext, assetTags: RenderAssetTags) => Response | Promise<Response>;
@@ -203,30 +205,30 @@ type QueueBatch<T = unknown> = {
203
205
  };
204
206
  type QueueFn<T = unknown> = (batch: QueueBatch<T>, env: CloudEnv["Bindings"]) => void | Promise<void>;
205
207
  /**
206
- * A typed queue handler with a phantom type carrier for the payload type.
207
- * `__payload` exists at the type level only —
208
- * TypeScript's `typeof import(...)` reads it for codegen.
209
- */
208
+ * A typed queue handler with a phantom type carrier for the payload type.
209
+ * `__payload` exists at the type level only —
210
+ * TypeScript's `typeof import(...)` reads it for codegen.
211
+ */
210
212
  type TypedQueueHandler<T = unknown> = {
211
213
  (batch: QueueBatch<T>, env: CloudEnv["Bindings"]): void | Promise<void>;
212
214
  readonly __payload: T;
213
215
  };
214
216
  /**
215
- * A typed handler with phantom type carriers for validators and return type.
216
- * `__validators` and `__output` exist at the type level only —
217
- * TypeScript's `typeof import(...)` reads them for codegen.
218
- */
217
+ * A typed handler with phantom type carriers for validators and return type.
218
+ * `__validators` and `__output` exist at the type level only —
219
+ * TypeScript's `typeof import(...)` reads them for codegen.
220
+ */
219
221
  type TypedHandler<V extends ValidatorSlots = {}, R = unknown> = {
220
222
  (c: CloudContext): Promise<Response> | Response | unknown | Promise<unknown>;
221
223
  readonly __validators: V;
222
224
  readonly __output: R;
223
225
  };
224
226
  /**
225
- * Define a route handler, optionally composed with per-route middleware.
226
- *
227
- * Single argument: identity wrapper (backwards compatible).
228
- * Multiple arguments: middleware chain + final handler, composed at runtime.
229
- */
227
+ * Define a route handler, optionally composed with per-route middleware.
228
+ *
229
+ * Single argument: identity wrapper (backwards compatible).
230
+ * Multiple arguments: middleware chain + final handler, composed at runtime.
231
+ */
230
232
  declare function defineHandler<R>(handler: (c: CloudContext) => R | Response | Promise<R | Response>): TypedHandler<{}, Exclude<Awaited<R>, Response>>;
231
233
  declare function defineHandler(firstMiddleware: MiddlewareFn, handler: HandlerFn): TypedHandler;
232
234
  declare function defineHandler(firstMiddleware: MiddlewareFn, secondMiddleware: MiddlewareFn, handler: HandlerFn): TypedHandler;
@@ -234,52 +236,52 @@ declare function defineHandler(firstMiddleware: MiddlewareFn, secondMiddleware:
234
236
  declare function defineHandler(firstMiddleware: MiddlewareFn, secondMiddleware: MiddlewareFn, thirdMiddleware: MiddlewareFn, fourthMiddleware: MiddlewareFn, handler: HandlerFn): TypedHandler;
235
237
  declare function defineHandler(firstMiddleware: MiddlewareFn, secondMiddleware: MiddlewareFn, thirdMiddleware: MiddlewareFn, fourthMiddleware: MiddlewareFn, fifthMiddleware: MiddlewareFn, handler: HandlerFn): TypedHandler;
236
238
  /**
237
- * Create a handler with input validation using Standard Schema validators.
238
- *
239
- * ```ts
240
- * export const POST = defineHandler.withValidator({
241
- * body: mySchema,
242
- * })((c, { body }) => {
243
- * return { received: body };
244
- * });
245
- * ```
246
- */
239
+ * Create a handler with input validation using Standard Schema validators.
240
+ *
241
+ * ```ts
242
+ * export const POST = defineHandler.withValidator({
243
+ * body: mySchema,
244
+ * })((c, { body }) => {
245
+ * return { received: body };
246
+ * });
247
+ * ```
248
+ */
247
249
  declare namespace defineHandler {
248
250
  function withValidator<V extends ValidatorSlots>(validators: V): <R>(handler: (c: CloudContext, input: HandlerInput<V>) => R) => TypedHandler<V, R>;
249
251
  }
250
252
  /**
251
- * Identity function that provides type inference for middleware.
252
- * At runtime it simply returns the function passed to it.
253
- */
253
+ * Identity function that provides type inference for middleware.
254
+ * At runtime it simply returns the function passed to it.
255
+ */
254
256
  declare function defineMiddleware(handler: MiddlewareHandler<CloudEnv>): MiddlewareHandler<CloudEnv>;
255
257
  /**
256
- * Create Basic authentication middleware for temporary site gates and
257
- * pre-launch protection.
258
- *
259
- * Void internal endpoints under `/__void` are always excluded so deploy-time
260
- * migrations, prerendering, cron/queue dispatch, and remote binding helpers
261
- * continue to reach Void's own internal-token checks.
262
- */
258
+ * Create Basic authentication middleware for temporary site gates and
259
+ * pre-launch protection.
260
+ *
261
+ * Void internal endpoints under `/__void` are always excluded so deploy-time
262
+ * migrations, prerendering, cron/queue dispatch, and remote binding helpers
263
+ * continue to reach Void's own internal-token checks.
264
+ */
263
265
  declare function basicAuth(options: BasicAuthOptions): MiddlewareHandler<CloudEnv>;
264
266
  /**
265
- * Identity function that provides type inference for scheduled jobs.
266
- * At runtime it simply returns the function passed to it.
267
- */
267
+ * Identity function that provides type inference for scheduled jobs.
268
+ * At runtime it simply returns the function passed to it.
269
+ */
268
270
  declare function defineScheduled(handler: ScheduledFn): ScheduledFn;
269
271
  /**
270
- * Identity function that provides type inference for SSR render entry.
271
- * The second argument includes asset tags for client scripts/styles.
272
- */
272
+ * Identity function that provides type inference for SSR render entry.
273
+ * The second argument includes asset tags for client scripts/styles.
274
+ */
273
275
  declare function defineRender(handler: RenderFn): RenderFn;
274
276
  /**
275
- * Identity function that provides type inference for page `head()` exports.
276
- * At runtime it simply returns the function passed to it.
277
- */
277
+ * Identity function that provides type inference for page `head()` exports.
278
+ * At runtime it simply returns the function passed to it.
279
+ */
278
280
  declare function defineHead<P = Record<string, unknown>>(handler: (c: CloudContext, props: P) => HeadDescriptor | undefined): (c: CloudContext, props: P) => HeadDescriptor | undefined;
279
281
  /**
280
- * Identity function that provides type inference for queue consumers.
281
- * At runtime it simply returns the function passed to it.
282
- */
282
+ * Identity function that provides type inference for queue consumers.
283
+ * At runtime it simply returns the function passed to it.
284
+ */
283
285
  declare function defineQueue<T = unknown>(handler: QueueFn<T>): TypedQueueHandler<T>;
284
286
  //#endregion
285
287
  export { defer as C, runValidation as D, ValidatorSlots as E, InferProps as S, HandlerInput as T, defineQueue as _, CloudEnv as a, Deferred as b, QueueRetryOptions as c, TypedQueueHandler as d, VoidAssetRewriteError as f, defineMiddleware as g, defineHead as h, CloudContextVariables as i, RenderAssetTags as l, defineHandler as m, CloudBindings as n, QueueBatch as o, basicAuth as p, CloudContext as r, QueueMessage as s, BasicAuthOptions as t, TypedHandler as u, defineRender as v, ValidationError as w, DeferredState as x, defineScheduled as y };
@@ -23,16 +23,17 @@ type HeadDescriptor = {
23
23
  };
24
24
  /** Extended head config with template support (used in void.json). */
25
25
  type HeadConfig = HeadDescriptor & {
26
- /** Title template — `%s` is replaced with the page title. */titleTemplate?: string;
26
+ /** Title template — `%s` is replaced with the page title. */
27
+ titleTemplate?: string;
27
28
  };
28
29
  /**
29
- * Merge head descriptors with precedence: page > middleware > config.
30
- *
31
- * - `title`: page wins; `titleTemplate` from config wraps it (`%s` replaced)
32
- * - `meta`: page overrides entries with same `name`/`property`; others appended
33
- * - `link`/`script`: concatenated (config first, then middleware, then page)
34
- * - `htmlAttrs`/`bodyAttrs`: shallow merge, page wins conflicts
35
- */
30
+ * Merge head descriptors with precedence: page > middleware > config.
31
+ *
32
+ * - `title`: page wins; `titleTemplate` from config wraps it (`%s` replaced)
33
+ * - `meta`: page overrides entries with same `name`/`property`; others appended
34
+ * - `link`/`script`: concatenated (config first, then middleware, then page)
35
+ * - `htmlAttrs`/`bodyAttrs`: shallow merge, page wins conflicts
36
+ */
36
37
  declare function resolveHead(configHead: HeadConfig | undefined, middlewareHead: HeadDescriptor | undefined, pageHead: HeadDescriptor | undefined): HeadDescriptor | undefined;
37
38
  /** Serialize a HeadDescriptor to HTML tags for injection into `<head>`. */
38
39
  declare function renderHeadToString(head: HeadDescriptor): string;
@@ -1,5 +1,5 @@
1
- import { a as join } from "./dist-DaKKDf8D.mjs";
2
- import { a as convertRedirectsConfig, d as parseHostPrefixedSource, i as convertHeadersConfig, o as convertRewritesConfig, r as convertFallbacksConfig, s as countSplats, t as VALID_REDIRECT_STATUSES, u as isProtocolRelative } from "./config-qHGgPuWT.mjs";
1
+ import { o as join } from "./dist-BrsS7cai.mjs";
2
+ import { a as convertRedirectsConfig, d as parseHostPrefixedSource, i as convertHeadersConfig, o as convertRewritesConfig, r as convertFallbacksConfig, s as countSplats, t as VALID_REDIRECT_STATUSES, u as isProtocolRelative } from "./config-BQFq7QvD.mjs";
3
3
  import { i as voidWarn } from "./log-ChfPKsVd.mjs";
4
4
  import { existsSync, readFileSync } from "node:fs";
5
5
  //#region src/cli/headers.ts
@@ -94,13 +94,14 @@ function parseRedirectsFile(dir) {
94
94
  }
95
95
  let status;
96
96
  let force = false;
97
- if (statusStr) if (statusStr.endsWith("!")) {
98
- const numericPart = statusStr.slice(0, -1);
99
- status = parseInt(numericPart, 10);
100
- if (status === 200) force = true;
101
- else if (status >= 300 && status < 400) redundantForceOn3xx++;
102
- } else status = parseInt(statusStr, 10);
103
- else status = 302;
97
+ if (statusStr) {
98
+ if (statusStr.endsWith("!")) {
99
+ const numericPart = statusStr.slice(0, -1);
100
+ status = parseInt(numericPart, 10);
101
+ if (status === 200) force = true;
102
+ else if (status >= 300 && status < 400) redundantForceOn3xx++;
103
+ } else status = parseInt(statusStr, 10);
104
+ } else status = 302;
104
105
  if (status === 200) {
105
106
  if (!destination.startsWith("/")) {
106
107
  voidWarn(`Skipping _redirects rewrite "${rawSource} ${destination} ${force ? "200!" : "200"}": destination must start with "/" (only internal paths are supported).`);
@@ -236,7 +237,8 @@ function lintDestinationSplats(rules, phaseName) {
236
237
  if (!rules || rules.length === 0) return;
237
238
  const affected = rules.filter((r) => r.destination.includes("*"));
238
239
  if (affected.length === 0) return;
239
- voidWarn(`destinations in ${phaseName} contain a literal "*" — splat tokens are not substituted in destinations; use ":splat" (or other named params) or rewrite the destination:\n${affected.map((r) => ` ${r.source} → ${r.destination} (${r.origin ?? "<unknown>"})`).join("\n")}`);
240
+ const lines = affected.map((r) => ` ${r.source} → ${r.destination} (${r.origin ?? "<unknown>"})`);
241
+ voidWarn(`destinations in ${phaseName} contain a literal "*" — splat tokens are not substituted in destinations; use ":splat" (or other named params) or rewrite the destination:\n${lines.join("\n")}`);
240
242
  }
241
243
  /**
242
244
  * Warn when the same `source` pattern appears more than once within a single