void 0.22.0 → 0.23.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 (276) hide show
  1. package/README.md +5 -1
  2. package/dist/{account-cmd-CjyxcGkM.mjs → account-cmd-C84Ee8cO.mjs} +4 -4
  3. package/dist/{scan-ClYmX3sa.mjs → application-analysis-BVsVqc11.mjs} +135 -18
  4. package/dist/application-routing-B7QEjqSR.mjs +27 -0
  5. package/dist/{auth-CZuiVsFh.mjs → auth-CCjt0hcq.mjs} +1 -1
  6. package/dist/{auth-DLNN0D3Z.mjs → auth-CSkdO2Bb.mjs} +4 -47
  7. package/dist/{auth-link-BLO4ptzo.mjs → auth-link-CioEg6uY.mjs} +4 -4
  8. package/dist/{auth-router-ZUg9MF_U.mjs → auth-router-BsR981d4.mjs} +4 -4
  9. package/dist/{better-auth-shared-rsBGBvWJ.mjs → better-auth-shared-hy6RPh9W.mjs} +13 -2
  10. package/dist/{build-cmd-BxR5FROK.mjs → build-cmd-LzvNJORH.mjs} +17 -5
  11. package/dist/{cache-D0sWhgKI.mjs → cache-C4MvnrMH.mjs} +2 -2
  12. package/dist/{cancel-deploy-D4NUqFbi.mjs → cancel-deploy-abUxpP2n.mjs} +2 -2
  13. package/dist/{cf-build-output-BJ6yGEIS.mjs → cf-build-output-BPqOT964.mjs} +2 -1
  14. package/dist/cf-build-output-_0HNWysu.mjs +2 -0
  15. package/dist/cli/cli.mjs +80 -455
  16. package/dist/cli/{cf-compat.mjs → cloudflare-operation-process.mjs} +442 -421
  17. package/dist/cli/env-schema-probe.d.mts +2 -1
  18. package/dist/cli/env-schema-probe.mjs +3 -3
  19. package/dist/client-Cu7jWiF1.mjs +2 -0
  20. package/dist/{client-BTZ3XkrB.mjs → client-RV8NVeB8.mjs} +140 -21
  21. package/dist/{cloudflare-auth-DQkqoMYa.mjs → cloudflare-auth-Qdc7tw8F.mjs} +41 -38
  22. package/dist/{cloudflare-cmd-BKlfGHAy.mjs → cloudflare-cmd-BcrVyTmJ.mjs} +5 -5
  23. package/dist/cloudflare-config-Bktvwtpf.mjs +182 -0
  24. package/dist/{cloudflare-connect-Ctmrw579.mjs → cloudflare-connect-B8uPZ4nx.mjs} +3 -3
  25. package/dist/{cloudflare-operations-BT6OWFBk.mjs → cloudflare-operations-AiWashgg.mjs} +1 -1
  26. package/dist/{cloudflare-operations-B9tzgjmf.mjs → cloudflare-operations-fxHb-byx.mjs} +116 -172
  27. package/dist/{preset-UHj9ARyP.mjs → cloudflare-process-B-wekeR6.mjs} +93 -6
  28. package/dist/{config-VavjpDnp.d.mts → config-BMHb8RCj.d.mts} +1 -0
  29. package/dist/config-C_XRIPx2.mjs +89 -0
  30. package/dist/config-entry.d.mts +1 -1
  31. package/dist/{connect-Dg-WkW-C.mjs → connect-Bd4kJd9U.mjs} +5 -5
  32. package/dist/{create-project-DdoqwFLF.mjs → create-project-Boczwj5r.mjs} +1 -1
  33. package/dist/{create-project-l9J7pbtm.mjs → create-project-bMf6ffLZ.mjs} +2 -2
  34. package/dist/{db-gp2sCXyN.mjs → db-8uG64XLl.mjs} +21 -21
  35. package/dist/{delete-TTedbH6B.mjs → delete-NvbiyeJf.mjs} +2 -2
  36. package/dist/{deploy-CH-o2CaZ.mjs → deploy-DzAIwqNU.mjs} +908 -582
  37. package/dist/{deploy-B19L2Bra.mjs → deploy-bjXdFCtn.mjs} +1 -1
  38. package/dist/{domain-JRF59P_r.mjs → domain-y5Tvydvo.mjs} +3 -3
  39. package/dist/{email-Bo6G9LOZ.mjs → email-B3umsW75.mjs} +13 -28
  40. package/dist/{env-BYOrWQnv.mjs → env-BS6qYHDb.mjs} +4 -4
  41. package/dist/{env-public-BxU_0yTL.d.mts → env-public-BX_r8HR6.d.mts} +1 -1
  42. package/dist/{env-validation-BB4GkLxn.mjs → env-validation-BPn7vk-V.mjs} +18 -71
  43. package/dist/{env-validation-BXge7uyK.mjs → env-validation-DbTg7-ar.mjs} +1 -1
  44. package/dist/{fetch-CXDChK7B.mjs → fetch-BIZJh7vR.mjs} +2 -2
  45. package/dist/{fetch-stream-AOByI7Ki.mjs → fetch-stream-IvCYKyQL.mjs} +24 -4
  46. package/dist/{gen-sCtlCOdA.mjs → gen-B580--vC.mjs} +2 -2
  47. package/dist/gen-BVaUUumi.mjs +2 -0
  48. package/dist/{github-cmd-0-7PexDq.mjs → github-cmd-v45BdfKX.mjs} +2 -2
  49. package/dist/{handler-HEcZsaij.d.mts → handler-CZ4nAylQ.d.mts} +1 -1
  50. package/dist/help-DofyZuY7.mjs +2 -0
  51. package/dist/{help-GKtwl07I.mjs → help-daGKjXGk.mjs} +229 -747
  52. package/dist/index.d.mts +1 -1
  53. package/dist/index.mjs +288 -1502
  54. package/dist/info-B97bTX9N.mjs +113 -0
  55. package/dist/{init-FZx3Elvz.mjs → init-Bvy7zrBo.mjs} +46 -15
  56. package/dist/limits-Bq5LG8Id.d.mts +27 -0
  57. package/dist/limits-Cjuk2VPm.mjs +68 -0
  58. package/dist/{link-BrQfb_CU.mjs → link-CDqqCjFl.mjs} +3 -3
  59. package/dist/{list-D44jmIAM.mjs → list-CZj0dzKY.mjs} +3 -3
  60. package/dist/{live-CKJlvlNp.d.mts → live-Chw1eIMv.d.mts} +1 -1
  61. package/dist/{local-d1-Bg9OzEEO.mjs → local-d1-2CMnpuW_.mjs} +2 -2
  62. package/dist/login-DYt_An22.mjs +2 -0
  63. package/dist/{login-CAsAsQ-_.mjs → login-UZKFM_u7.mjs} +3 -3
  64. package/dist/{logs-BjKvFnVM.mjs → logs-CUZ6t9t3.mjs} +3 -3
  65. package/dist/migrate-8_2u55MD.mjs +2 -0
  66. package/dist/{migrate-BPITvDJN.mjs → migrate-DHul7PRV.mjs} +2 -1
  67. package/dist/{node-Dt7z256D.mjs → node-BkyRWRx8.mjs} +1 -1
  68. package/dist/operator-args-CLgKGlwU.mjs +690 -0
  69. package/dist/{operator-cmd-BK5CCiT9.mjs → operator-cmd-DBA6dl0m.mjs} +68 -22
  70. package/dist/pages/client.d.mts +34 -2
  71. package/dist/pages/client.mjs +59 -3
  72. package/dist/pages/index.d.mts +1 -1
  73. package/dist/pages/index.mjs +1 -1
  74. package/dist/pages/islands-plugin.mjs +1 -1
  75. package/dist/pages/protocol.d.mts +2 -2
  76. package/dist/pages/protocol.mjs +2 -308
  77. package/dist/{parse-filename-DioPHiR9.mjs → parse-filename-CUbj-1MP.mjs} +35 -1
  78. package/dist/plan-D1Q5rf-r.mjs +2 -0
  79. package/dist/plan-NPpwZ_kc.mjs +58 -0
  80. package/dist/platform-args-BJdRtlLq.mjs +506 -0
  81. package/dist/platform-args-D3RXyR6h.mjs +2 -0
  82. package/dist/{platform-auth-config-BlN8xTdD.mjs → platform-auth-config-B56E9YP1.mjs} +3 -3
  83. package/dist/{platform-auth-protection-7d5aV2Jg.mjs → platform-auth-protection-BDWO_aER.mjs} +2 -2
  84. package/dist/{platform-auth-recovery-Dxij8ZbR.mjs → platform-auth-recovery-1gg4CSRe.mjs} +3 -3
  85. package/dist/{platform-cmd-E0FuL212.mjs → platform-cmd-Bt-1w6pY.mjs} +1 -1
  86. package/dist/{platform-cmd-B3hwKrFK.mjs → platform-cmd-DMcQStSc.mjs} +24 -3
  87. package/dist/{platform-domain-D6Xcy9ZX.mjs → platform-domain-BNkcz0OB.mjs} +2 -2
  88. package/dist/{platform-lifecycle-k0E0xoxx.mjs → platform-lifecycle-9OyBALhH.mjs} +327 -215
  89. package/dist/{platform-lifecycle-DMh_qrry.mjs → platform-lifecycle-BE6C_jxh.mjs} +1 -1
  90. package/dist/{platform-management-Brz_BDiT.mjs → platform-management-CjwLVQwN.mjs} +6 -3
  91. package/dist/{platform-management-DOtss0BN.mjs → platform-management-CnyTdcWX.mjs} +1 -1
  92. package/dist/platform-plans-config-BNGKGr4P.mjs +359 -0
  93. package/dist/{platform-recovery-BvtcXON5.mjs → platform-recovery-D6KSpuFm.mjs} +2 -2
  94. package/dist/{plugin-inference-BMfKRSqE.mjs → plugin-inference-CXWnn79A.mjs} +174 -64
  95. package/dist/{prepare-C-6YZyyg.mjs → prepare-B5Mkic5u.mjs} +1 -1
  96. package/dist/{prepare-CRhJbVrG.mjs → prepare-DOsL0CC9.mjs} +4 -20
  97. package/dist/prepare-cgvDMtSb.mjs +2 -0
  98. package/dist/{project-cmd-BZLCqOqw.mjs → project-cmd-CNzrqvBv.mjs} +16 -16
  99. package/dist/{project-team-BvgM0WoX.mjs → project-team-DQOWPfQT.mjs} +2 -2
  100. package/dist/{project-token-l5DqK6Az.mjs → project-token-CTDYU0Cc.mjs} +2 -2
  101. package/dist/{project-zero-trust-v6Mvpp8y.mjs → project-zero-trust-BNAkW-_0.mjs} +2 -2
  102. package/dist/{protocol-BBa6cstI.d.mts → protocol-CjF_iI9X.d.mts} +2 -2
  103. package/dist/protocol-U7bfjHmA.mjs +331 -0
  104. package/dist/{provision-Fr9pRqce.mjs → provision-C4ORE7G7.mjs} +1 -1
  105. package/dist/{provision-C4IGqkBf.mjs → provision-CJFgTZY8.mjs} +89 -198
  106. package/dist/{requests-DN-BbNiM.mjs → requests-MhxYnau8.mjs} +2 -2
  107. package/dist/resource-name-C7LVpcRm.mjs +11 -0
  108. package/dist/{rollback-D7rzSaZM.mjs → rollback-CJ6iSDoU.mjs} +3 -3
  109. package/dist/route-url-CG7U-cRN.mjs +15 -0
  110. package/dist/{runner-B8wXwWlo.mjs → runner-CXA9Fh8h.mjs} +1 -1
  111. package/dist/{runner-p-dMs2UN.mjs → runner-Ol0TNjk6.mjs} +2 -2
  112. package/dist/runtime/ai.d.mts +12 -8
  113. package/dist/runtime/ai.mjs +84 -17
  114. package/dist/runtime/better-auth-mysql.mjs +1 -1
  115. package/dist/runtime/better-auth-pg.mjs +1 -1
  116. package/dist/runtime/better-auth.mjs +1 -1
  117. package/dist/runtime/client-react.mjs +2 -2
  118. package/dist/runtime/client-solid.mjs +2 -2
  119. package/dist/runtime/client-svelte.mjs +2 -2
  120. package/dist/runtime/client-vue.mjs +2 -2
  121. package/dist/runtime/client.mjs +2 -2
  122. package/dist/runtime/durable.d.mts +3 -1
  123. package/dist/runtime/durable.mjs +4 -1
  124. package/dist/runtime/email/testing.mjs +1 -1
  125. package/dist/runtime/env-public.d.mts +1 -1
  126. package/dist/runtime/fetch-stream.mjs +1 -1
  127. package/dist/runtime/fetch.mjs +1 -1
  128. package/dist/runtime/handler.d.mts +1 -1
  129. package/dist/runtime/kv.mjs +0 -1
  130. package/dist/runtime/limits.d.mts +2 -0
  131. package/dist/runtime/limits.mjs +2 -0
  132. package/dist/runtime/live-client.d.mts +1 -1
  133. package/dist/runtime/live-server.mjs +25 -16
  134. package/dist/runtime/live.d.mts +1 -1
  135. package/dist/runtime/migration-handler.mjs +62 -42
  136. package/dist/runtime/route-url.d.mts +4 -0
  137. package/dist/runtime/route-url.mjs +2 -0
  138. package/dist/runtime/routing.d.mts +180 -0
  139. package/dist/runtime/routing.mjs +1082 -0
  140. package/dist/runtime/sandbox-container.d.mts +1 -1
  141. package/dist/runtime/sandbox-container.mjs +1 -1
  142. package/dist/runtime/sandbox.d.mts +3 -3
  143. package/dist/runtime/sandbox.mjs +75 -45
  144. package/dist/runtime/sse.mjs +1 -1
  145. package/dist/runtime/validator.d.mts +1 -1
  146. package/dist/runtime/ws-server.d.mts +4 -2
  147. package/dist/runtime/ws-server.mjs +27 -2
  148. package/dist/runtime/ws.d.mts +2 -2
  149. package/dist/runtime/ws.mjs +8 -6
  150. package/dist/{sandbox-qpNBT8a3.d.mts → sandbox-XZAqzFlG.d.mts} +11 -8
  151. package/dist/{sandbox-container-DdNEBfCc.d.mts → sandbox-container-Bo0eiFKz.d.mts} +2 -1
  152. package/dist/{sandbox-container-4fdqLnyb.mjs → sandbox-container-C6ItmVuN.mjs} +4 -2
  153. package/dist/{scan-4tfN-PSn.mjs → scan-C7okrLyM.mjs} +4 -35
  154. package/dist/{secret-BOtOl_cb.mjs → secret-Dli5fP0B.mjs} +4 -4
  155. package/dist/{sse-BaC1jXko.mjs → sse-CQNaDFFV.mjs} +6 -3
  156. package/dist/validate-Dq_L3s0S.mjs +2 -0
  157. package/dist/{validate-CIUwFpjB.mjs → validate-ctOrgiS3.mjs} +2 -1
  158. package/dist/{wrangler-DQF1vKyf.mjs → wrangler-7K-bW_DL.mjs} +8 -239
  159. package/dist/{ws-BoY7vQML.d.mts → ws-CL1w7GXU.d.mts} +13 -2
  160. package/package.json +15 -8
  161. package/skills/migrate-vite-cloudflare-to-void/SKILL.md +34 -157
  162. package/skills/void/SKILL.md +50 -135
  163. package/skills/void/docs/guide/ai.md +94 -84
  164. package/skills/void/docs/guide/app-types.md +3 -32
  165. package/skills/void/docs/guide/auth.md +12 -116
  166. package/skills/void/docs/guide/database/d1.md +9 -54
  167. package/skills/void/docs/guide/database/mysql.md +1 -1
  168. package/skills/void/docs/guide/database/postgresql.md +5 -26
  169. package/skills/void/docs/guide/database.md +23 -75
  170. package/skills/void/docs/guide/deployment.md +27 -113
  171. package/skills/void/docs/guide/durable-state.md +43 -18
  172. package/skills/void/docs/guide/edge/headers.md +3 -47
  173. package/skills/void/docs/guide/edge/prerendering.md +5 -20
  174. package/skills/void/docs/guide/edge/redirects.md +11 -64
  175. package/skills/void/docs/guide/edge/revalidation.md +5 -18
  176. package/skills/void/docs/guide/edge/rewrites.md +56 -284
  177. package/skills/void/docs/guide/edge/static-assets.md +22 -72
  178. package/skills/void/docs/guide/email/domains.md +112 -0
  179. package/skills/void/docs/guide/email/receiving.md +139 -0
  180. package/skills/void/docs/guide/email/sending.md +231 -0
  181. package/skills/void/docs/guide/email.md +13 -619
  182. package/skills/void/docs/guide/env-migration.md +11 -11
  183. package/skills/void/docs/guide/env-vars.md +9 -29
  184. package/skills/void/docs/guide/index.md +0 -15
  185. package/skills/void/docs/guide/jobs.md +3 -18
  186. package/skills/void/docs/guide/kv.md +5 -11
  187. package/skills/void/docs/guide/live.md +5 -56
  188. package/skills/void/docs/guide/pages-routing/actions-and-forms.md +78 -125
  189. package/skills/void/docs/guide/pages-routing/head.md +10 -10
  190. package/skills/void/docs/guide/pages-routing/islands.md +6 -36
  191. package/skills/void/docs/guide/pages-routing/layouts.md +6 -128
  192. package/skills/void/docs/guide/pages-routing/loaders.md +3 -19
  193. package/skills/void/docs/guide/pages-routing/markdown.md +13 -171
  194. package/skills/void/docs/guide/pages-routing/overview.md +7 -17
  195. package/skills/void/docs/guide/pages-routing/view-transitions.md +1 -1
  196. package/skills/void/docs/guide/platform/administration/access.md +1 -4
  197. package/skills/void/docs/guide/platform/administration/email.md +35 -8
  198. package/skills/void/docs/guide/platform/administration/operations.md +26 -4
  199. package/skills/void/docs/guide/platform/administration/plans.md +126 -0
  200. package/skills/void/docs/guide/platform/administration/projects.md +5 -2
  201. package/skills/void/docs/guide/platform/administration/zero-trust.md +23 -152
  202. package/skills/void/docs/guide/platform/development/runtime.md +3 -13
  203. package/skills/void/docs/guide/platform/development/schema-ci.md +0 -58
  204. package/skills/void/docs/guide/platform/installation/credentials.md +6 -4
  205. package/skills/void/docs/guide/platform/installation/domains.md +30 -2
  206. package/skills/void/docs/guide/platform/installation/first-deployment.md +2 -0
  207. package/skills/void/docs/guide/platform/installation/maintenance.md +3 -1
  208. package/skills/void/docs/guide/platform/installation/prerequisites.md +20 -15
  209. package/skills/void/docs/guide/platform/installation/setup.md +9 -5
  210. package/skills/void/docs/guide/platform-administration.md +1 -0
  211. package/skills/void/docs/guide/queues.md +7 -9
  212. package/skills/void/docs/guide/quickstart.md +38 -37
  213. package/skills/void/docs/guide/remote-dev.md +4 -9
  214. package/skills/void/docs/guide/sandboxes.md +29 -21
  215. package/skills/void/docs/guide/server-routing.md +9 -72
  216. package/skills/void/docs/guide/sse.md +4 -18
  217. package/skills/void/docs/guide/ssg.md +3 -15
  218. package/skills/void/docs/guide/ssr.md +14 -62
  219. package/skills/void/docs/guide/storage.md +9 -4
  220. package/skills/void/docs/guide/type-safety.md +3 -14
  221. package/skills/void/docs/guide/typed-fetch.md +3 -7
  222. package/skills/void/docs/guide/websockets.md +68 -40
  223. package/skills/void/docs/integrations/agents.md +3 -3
  224. package/skills/void/docs/integrations/cloudflare.md +85 -316
  225. package/skills/void/docs/integrations/frameworks/analog.md +5 -64
  226. package/skills/void/docs/integrations/frameworks/astro.md +4 -73
  227. package/skills/void/docs/integrations/frameworks/nuxt.md +5 -62
  228. package/skills/void/docs/integrations/frameworks/overview.md +11 -54
  229. package/skills/void/docs/integrations/frameworks/react-router.md +5 -60
  230. package/skills/void/docs/integrations/frameworks/sveltekit.md +6 -65
  231. package/skills/void/docs/integrations/frameworks/tanstack-start.md +4 -62
  232. package/skills/void/docs/integrations/nodejs-bun-deno.md +5 -69
  233. package/skills/void/docs/reference/api/auth.md +156 -0
  234. package/skills/void/docs/reference/api/client.md +87 -0
  235. package/skills/void/docs/reference/api/database.md +95 -0
  236. package/skills/void/docs/reference/api/durable.md +46 -0
  237. package/skills/void/docs/reference/api/env.md +50 -0
  238. package/skills/void/docs/reference/api/handlers.md +254 -0
  239. package/skills/void/docs/reference/api/pages.md +241 -0
  240. package/skills/void/docs/reference/api/plugin.md +39 -0
  241. package/skills/void/docs/reference/api/resources.md +109 -0
  242. package/skills/void/docs/reference/api/rewrites.md +76 -0
  243. package/skills/void/docs/reference/api/types.md +92 -0
  244. package/skills/void/docs/reference/api.md +56 -1218
  245. package/skills/void/docs/reference/cli/auth.md +88 -0
  246. package/skills/void/docs/reference/cli/database.md +128 -0
  247. package/skills/void/docs/reference/cli/deploy.md +85 -0
  248. package/skills/void/docs/reference/cli/domains.md +41 -0
  249. package/skills/void/docs/reference/cli/email.md +129 -0
  250. package/skills/void/docs/reference/cli/generate.md +116 -0
  251. package/skills/void/docs/reference/cli/github.md +189 -0
  252. package/skills/void/docs/reference/cli/platform-config.md +92 -0
  253. package/skills/void/docs/reference/cli/platform-email.md +81 -0
  254. package/skills/void/docs/reference/cli/platform-installation.md +127 -0
  255. package/skills/void/docs/reference/cli/platform-operations.md +90 -0
  256. package/skills/void/docs/reference/cli/platform-users.md +89 -0
  257. package/skills/void/docs/reference/cli/platform-zero-trust.md +45 -0
  258. package/skills/void/docs/reference/cli/platform.md +70 -0
  259. package/skills/void/docs/reference/cli/project.md +214 -0
  260. package/skills/void/docs/reference/cli/secrets.md +76 -0
  261. package/skills/void/docs/reference/cli/setup.md +70 -0
  262. package/skills/void/docs/reference/cli.md +32 -1682
  263. package/skills/void/docs/reference/config.md +12 -18
  264. package/skills/void/docs/reference/resource-inference.md +3 -58
  265. package/skills/void/docs/reference/structure.md +14 -41
  266. package/dist/canonical-json-DuDiiUsQ.mjs +0 -13
  267. package/dist/client-Czz8o5jP.mjs +0 -2
  268. package/dist/gen-CNJ62MM7.mjs +0 -2
  269. package/dist/help-CmZzxUba.mjs +0 -2
  270. package/dist/login-CGcRKEoi.mjs +0 -2
  271. package/dist/migrate-CYfbKkXh.mjs +0 -2
  272. package/dist/plan-BEZ8VJW0.mjs +0 -256
  273. package/dist/plan-DpuOr14e.mjs +0 -2
  274. package/dist/prepare-Bm3iq-u4.mjs +0 -2
  275. package/dist/validate-EKmJWxmy.mjs +0 -2
  276. /package/dist/cli/{cf-compat.d.mts → cloudflare-operation-process.d.mts} +0 -0
@@ -2,7 +2,7 @@ import { a as join } from "./dist-BVqXeR_h.mjs";
2
2
  import { N as note, P as outro } from "./dist-CTBk70IR.mjs";
3
3
  import { n as getPackageDir } from "./agents-B_pX_HmQ.mjs";
4
4
  import { c as import_picocolors, s as helpLine, t as categoryTitle, u as sectionTitle } from "./output-Dm_A4Tbv.mjs";
5
- import { t as OPERATOR_MAX_TIMEOUT_MS } from "./operator-client-DUwumHpQ.mjs";
5
+ import { n as operatorGroups, t as operatorCommands } from "./operator-args-CLgKGlwU.mjs";
6
6
  import { readFileSync } from "node:fs";
7
7
  //#region src/cli/ascii.ts
8
8
  const asciiArts = [
@@ -26,647 +26,6 @@ dP .dP .d8888b. dP .d888b88
26
26
  |___/\\____/_/\\__,_/`
27
27
  ];
28
28
  //#endregion
29
- //#region src/cli/operator-args.ts
30
- const operatorCommands = [
31
- {
32
- group: "auth",
33
- action: "login",
34
- description: "Sign in as a platform administrator",
35
- path: "/session",
36
- values: { provider: "OAuth provider" },
37
- booleans: ["token-stdin"]
38
- },
39
- {
40
- group: "auth",
41
- action: "logout",
42
- description: "Revoke the current operator session and remove its local credential",
43
- path: "/session/logout"
44
- },
45
- {
46
- group: "auth",
47
- action: "status",
48
- description: "Inspect operator identity, expiry, and capabilities",
49
- path: "/session"
50
- },
51
- {
52
- group: "auth",
53
- action: "token",
54
- description: "Print an operator token; exchange an API session with --token-stdin",
55
- path: "/session",
56
- booleans: ["token-stdin"]
57
- },
58
- {
59
- group: "user",
60
- action: "list",
61
- description: "List users",
62
- path: "/users",
63
- values: { search: "Search login or email" }
64
- },
65
- {
66
- group: "user",
67
- action: "show",
68
- description: "Inspect a user, usage, and projects",
69
- path: "/users/:id",
70
- positional: ["id"]
71
- },
72
- {
73
- group: "user",
74
- action: "plan",
75
- description: "Change a user plan",
76
- path: "/users/:id/plan",
77
- positional: ["id", "plan"],
78
- method: "POST"
79
- },
80
- {
81
- group: "user",
82
- action: "suspend",
83
- description: "Suspend a user and their projects",
84
- path: "/users/:id/suspend",
85
- positional: ["id"],
86
- values: { reason: "Reason for suspension" },
87
- method: "POST"
88
- },
89
- {
90
- group: "user",
91
- action: "restore",
92
- description: "Restore a suspended user",
93
- path: "/users/:id/restore",
94
- positional: ["id"],
95
- method: "POST"
96
- },
97
- {
98
- group: "user",
99
- action: "delete",
100
- description: "Delete a user and all owned resources",
101
- path: "/users/:id/delete",
102
- positional: ["id"],
103
- method: "POST"
104
- },
105
- {
106
- group: "project",
107
- action: "list",
108
- description: "List tenant projects",
109
- path: "/projects",
110
- values: {
111
- user: "Owner user ID",
112
- search: "Search projects"
113
- }
114
- },
115
- {
116
- group: "project",
117
- action: "show",
118
- description: "Inspect a project and its resources",
119
- path: "/projects/:id",
120
- positional: ["id"]
121
- },
122
- {
123
- group: "project",
124
- action: "delete",
125
- description: "Delete a project and its resources",
126
- path: "/projects/:id/delete",
127
- positional: ["id"],
128
- method: "POST"
129
- },
130
- {
131
- group: "project",
132
- action: "owner",
133
- description: "Transfer project ownership to another registered user",
134
- path: "/projects/:id/owner",
135
- positional: ["id", "userId"],
136
- method: "POST"
137
- },
138
- {
139
- group: "zero-trust",
140
- action: "status",
141
- description: "Inspect saved platform Zero Trust configuration and project state counts",
142
- path: "/zero-trust",
143
- booleans: ["check"]
144
- },
145
- {
146
- group: "zero-trust",
147
- action: "configure",
148
- description: "Configure and reconcile project Zero Trust protection",
149
- path: "/zero-trust/configure",
150
- values: {
151
- "identity-providers": "Comma-separated Access identity provider IDs",
152
- policies: "Comma-separated reusable Access policy IDs",
153
- "existing-projects": "Required when enabling: protected or public for existing projects"
154
- },
155
- booleans: ["token-stdin", "protect-new-projects"],
156
- method: "POST"
157
- },
158
- {
159
- group: "zero-trust",
160
- action: "reconcile",
161
- description: "Repair platform and project Access configuration drift",
162
- path: "/zero-trust/reconcile",
163
- method: "POST"
164
- },
165
- {
166
- group: "zero-trust",
167
- action: "disable",
168
- description: "Remove Void-managed Access applications and make projects public",
169
- path: "/zero-trust/disable",
170
- method: "POST"
171
- },
172
- {
173
- group: "zero-trust",
174
- action: "project-status",
175
- description: "Inspect one project Zero Trust override and effective state",
176
- path: "/zero-trust/projects/:id",
177
- positional: ["id"]
178
- },
179
- {
180
- group: "zero-trust",
181
- action: "project-protect",
182
- description: "Protect one project, overriding the platform default",
183
- path: "/zero-trust/projects/:id",
184
- positional: ["id"],
185
- method: "POST"
186
- },
187
- {
188
- group: "zero-trust",
189
- action: "project-public",
190
- description: "Make one project public, overriding the platform default",
191
- path: "/zero-trust/projects/:id",
192
- positional: ["id"],
193
- method: "POST"
194
- },
195
- {
196
- group: "zero-trust",
197
- action: "project-reconcile",
198
- description: "Repair Access configuration drift for one project",
199
- path: "/zero-trust/projects/:id/reconcile",
200
- positional: ["id"],
201
- method: "POST"
202
- },
203
- {
204
- group: "deployment",
205
- action: "list",
206
- description: "List tenant deployments",
207
- path: "/deployments",
208
- values: {
209
- project: "Project ID",
210
- search: "Search deployments",
211
- status: "Deployment status"
212
- }
213
- },
214
- {
215
- group: "deployment",
216
- action: "show",
217
- description: "Inspect a deployment",
218
- path: "/deployments/:id",
219
- positional: ["id"]
220
- },
221
- {
222
- group: "deployment",
223
- action: "cancel",
224
- description: "Cancel a deployment",
225
- path: "/deployments/:id/cancel",
226
- positional: ["id"],
227
- method: "POST"
228
- },
229
- {
230
- group: "deployment",
231
- action: "logs",
232
- description: "Read runtime logs (JSON follow emits one object per line)",
233
- path: "/deployments/:id/logs",
234
- positional: ["id"],
235
- values: {
236
- since: "Duration or ISO timestamp",
237
- cursor: "Opaque continuation cursor"
238
- },
239
- booleans: ["follow"]
240
- },
241
- {
242
- group: "build",
243
- action: "show",
244
- description: "Inspect a managed build",
245
- path: "/builds/:id",
246
- positional: ["id"]
247
- },
248
- {
249
- group: "build",
250
- action: "logs",
251
- description: "Read build logs (JSON follow emits one object per line)",
252
- path: "/builds/:id/logs",
253
- positional: ["id"],
254
- values: { since: "Last received sequence number" },
255
- booleans: ["follow"]
256
- },
257
- {
258
- group: "signup",
259
- action: "show",
260
- description: "Inspect signup restrictions and allowlist",
261
- path: "/signup"
262
- },
263
- {
264
- group: "signup",
265
- action: "restrict",
266
- description: "Restrict signup to the allowlist",
267
- path: "/signup/restrict",
268
- method: "POST"
269
- },
270
- {
271
- group: "signup",
272
- action: "open",
273
- description: "Open public signup",
274
- path: "/signup/open",
275
- method: "POST"
276
- },
277
- {
278
- group: "signup",
279
- action: "allow",
280
- description: "Add a GitHub, email, or exact login identity grant",
281
- path: "/signup/allow",
282
- positional: ["type", "pattern"],
283
- usage: ["void platform signup allow <github|email> <pattern> [options]", "void platform signup allow identity <connection-id> <subject> [options]"],
284
- values: { note: "Allowlist note" },
285
- method: "POST"
286
- },
287
- {
288
- group: "signup",
289
- action: "disallow",
290
- description: "Remove a GitHub, email, or exact login identity grant",
291
- path: "/signup/disallow",
292
- positional: ["type", "pattern"],
293
- usage: ["void platform signup disallow <github|email> <pattern> [options]", "void platform signup disallow identity <connection-id> <subject> [options]"],
294
- method: "POST"
295
- },
296
- {
297
- group: "signup",
298
- action: "remove",
299
- description: "Remove a GitHub or email allowlist pattern (compatibility alias)",
300
- path: "/signup/remove",
301
- positional: ["type", "pattern"],
302
- method: "POST"
303
- },
304
- {
305
- group: "invitation",
306
- action: "list",
307
- description: "List invitations",
308
- path: "/invitations"
309
- },
310
- {
311
- group: "invitation",
312
- action: "send",
313
- description: "Send invitations to comma-separated email addresses",
314
- path: "/invitations/send",
315
- positional: ["emails"],
316
- method: "POST"
317
- },
318
- {
319
- group: "invitation",
320
- action: "revoke",
321
- description: "Revoke an invitation",
322
- path: "/invitations/:id/revoke",
323
- positional: ["id"],
324
- method: "POST"
325
- },
326
- {
327
- group: "system",
328
- action: "overview",
329
- description: "Inspect platform usage and capacity",
330
- path: "/system/overview"
331
- },
332
- {
333
- group: "system",
334
- action: "health",
335
- description: "Check platform health",
336
- path: "/system/health"
337
- },
338
- {
339
- group: "system",
340
- action: "cli-versions",
341
- description: "Inspect CLI version adoption and deployment statistics",
342
- path: "/system/cli-versions"
343
- },
344
- {
345
- group: "system",
346
- action: "events",
347
- description: "List operator audit events",
348
- path: "/system/events"
349
- },
350
- {
351
- group: "system",
352
- action: "backfill-queue-tokens",
353
- description: "Repair missing queue authentication tokens",
354
- path: "/system/backfill-queue-tokens",
355
- method: "POST"
356
- },
357
- {
358
- group: "system",
359
- action: "sandbox-drain",
360
- description: "Drain and verify managed Sandbox container applications",
361
- path: "/system/sandbox-drain",
362
- values: { cursor: "Opaque cursor returned by --plan" },
363
- method: "POST"
364
- },
365
- {
366
- group: "email",
367
- action: "policy",
368
- description: "Show the recipient policy for the shared sender",
369
- path: "/email/policy"
370
- },
371
- {
372
- group: "email",
373
- action: "policy-set",
374
- description: "Set the recipient policy: verified, domains, or any",
375
- path: "/email/policy",
376
- positional: ["mode"],
377
- values: { domains: "Comma-separated recipient domains for mode=domains" },
378
- method: "POST"
379
- },
380
- {
381
- group: "email",
382
- action: "settings",
383
- description: "Show platform email settings",
384
- path: "/email/settings"
385
- },
386
- {
387
- group: "email",
388
- action: "settings-set",
389
- description: "Set who manages email domains: self-serve or admin",
390
- path: "/email/settings",
391
- values: { domains: "self-serve or admin" },
392
- method: "POST"
393
- },
394
- {
395
- group: "email",
396
- action: "limit",
397
- description: "Set a project's monthly and burst recipient submission caps",
398
- path: "/email/projects/:project/limit",
399
- positional: ["project"],
400
- values: {
401
- monthly: "Recipient submissions per UTC calendar month",
402
- burst: "Recipient submissions per rolling 60-second window"
403
- },
404
- method: "POST"
405
- },
406
- {
407
- group: "email",
408
- action: "logs",
409
- description: "Inspect retained email receipt and recipient outcomes for a project",
410
- path: "/email/projects/:project/logs",
411
- positional: ["project"]
412
- },
413
- {
414
- group: "email",
415
- action: "attempts",
416
- description: "List unresolved email send attempts awaiting operator reconciliation",
417
- path: "/email/attempts",
418
- values: { project: "Project id or slug" }
419
- },
420
- {
421
- group: "email",
422
- action: "attempt-resolve",
423
- description: "Resolve a stopped send as outcome unknown and release its cleanup fence",
424
- path: "/email/attempts/:id/resolve",
425
- positional: ["id"],
426
- values: { reason: "Audit reason without recipient or message content" },
427
- booleans: ["ended"],
428
- method: "POST"
429
- },
430
- {
431
- group: "email",
432
- action: "operation-resolve",
433
- description: "Resolve an ended ambiguous email setup write with operator attestation",
434
- path: "/email/operations/:id/resolve",
435
- positional: ["id"],
436
- values: {
437
- outcome: "Provider outcome: applied or not-applied",
438
- reason: "Audit reason for the verified provider outcome"
439
- },
440
- booleans: ["ended"],
441
- method: "POST"
442
- },
443
- {
444
- group: "email",
445
- action: "domains",
446
- description: "List email domains registered on this platform",
447
- path: "/email/domains",
448
- values: { project: "Project id or slug" }
449
- },
450
- {
451
- group: "email",
452
- action: "domain-add",
453
- description: "Register an email domain for a project with the platform credential",
454
- path: "/email/domains",
455
- positional: ["domain"],
456
- values: { project: "Project id or slug" },
457
- booleans: ["token-stdin"],
458
- method: "POST"
459
- },
460
- {
461
- group: "email",
462
- action: "domain-status",
463
- description: "Inspect an email domain's setup, credential and relay",
464
- path: "/email/domains/:domain",
465
- positional: ["domain"]
466
- },
467
- {
468
- group: "email",
469
- action: "domain-sync",
470
- description: "Reconcile an email domain with its Cloudflare setup",
471
- path: "/email/domains/:domain/sync",
472
- positional: ["domain"],
473
- method: "POST"
474
- },
475
- {
476
- group: "email",
477
- action: "domain-rotate-secret",
478
- description: "Rotate an email domain's ingress secret",
479
- path: "/email/domains/:domain/rotate-secret",
480
- positional: ["domain"],
481
- method: "POST"
482
- },
483
- {
484
- group: "email",
485
- action: "domain-remove",
486
- description: "Remove an email domain and its Cloudflare setup",
487
- path: "/email/domains/:domain/remove",
488
- positional: ["domain"],
489
- booleans: ["token-stdin"],
490
- method: "POST"
491
- },
492
- {
493
- group: "worker",
494
- action: "list",
495
- description: "List hosted platform workers",
496
- path: "/workers",
497
- values: { environment: "production or staging" }
498
- },
499
- {
500
- group: "worker",
501
- action: "show",
502
- description: "Inspect hosted worker versions",
503
- path: "/workers/:id",
504
- positional: ["id"],
505
- values: { environment: "production or staging" }
506
- },
507
- {
508
- group: "worker",
509
- action: "rollback",
510
- description: "Roll back a hosted worker to a version",
511
- path: "/workers/:id/rollback",
512
- positional: ["id", "versionId"],
513
- values: { environment: "production or staging" },
514
- method: "POST"
515
- },
516
- {
517
- group: "worker",
518
- action: "rollback-all",
519
- description: "Roll back all hosted workers to their previous versions",
520
- path: "/workers/rollback-all",
521
- values: { environment: "production or staging" },
522
- method: "POST"
523
- },
524
- {
525
- group: "worker",
526
- action: "events",
527
- description: "List hosted worker events or inspect a batch",
528
- path: "/workers/events",
529
- positional: ["batchId"],
530
- optionalPositional: true,
531
- values: { environment: "production or staging" }
532
- }
533
- ];
534
- const operatorGroups = [...new Set(operatorCommands.map(({ group }) => group))];
535
- function parseOperatorArgs(args) {
536
- const positional = [];
537
- const values = {};
538
- const flags = /* @__PURE__ */ new Set();
539
- const booleanFlags = /* @__PURE__ */ new Set([
540
- "json",
541
- "plan",
542
- "yes",
543
- "follow",
544
- "token-stdin",
545
- "force",
546
- "ended",
547
- ...operatorCommands.flatMap((command) => command.booleans ?? [])
548
- ]);
549
- for (let index = 0; index < args.length; index++) {
550
- const arg = args[index];
551
- if (!arg.startsWith("-")) {
552
- positional.push(arg);
553
- continue;
554
- }
555
- if (!arg.startsWith("--")) throw new Error(`platform: Unknown flag '${arg}'.`);
556
- const flag = arg.slice(2);
557
- if (flags.has(flag) || Object.hasOwn(values, flag)) throw new Error(`platform: Duplicate flag '${arg}'.`);
558
- if (booleanFlags.has(flag)) flags.add(flag);
559
- else {
560
- const value = args[++index];
561
- if (!value || value.startsWith("-")) throw new Error(`platform: ${arg} requires a value.`);
562
- values[flag] = value;
563
- }
564
- }
565
- const [group = "", action = "", ...parameters] = positional;
566
- if (!operatorGroups.includes(group)) throw new Error("platform: Unknown operator command group.");
567
- const parsed = {
568
- subcommand: "operator",
569
- group,
570
- action,
571
- connection: values.connection ?? "",
572
- json: flags.has("json"),
573
- plan: flags.has("plan"),
574
- yes: flags.has("yes"),
575
- follow: flags.has("follow"),
576
- tokenStdin: flags.has("token-stdin"),
577
- provider: values.provider ?? "github",
578
- ...values.provider ? { providerExplicit: true } : {},
579
- method: "GET",
580
- path: "",
581
- query: {},
582
- body: {}
583
- };
584
- if (!action && args.length === 1) return parsed;
585
- const command = operatorCommands.find((entry) => entry.group === group && entry.action === action);
586
- if (!command) throw new Error(`platform: Usage: void platform ${group} <${operatorCommands.filter((entry) => entry.group === group).map(({ action }) => action).join("|")}>.`);
587
- const count = command.positional?.length ?? 0;
588
- const identitySignupEntry = group === "signup" && ["allow", "disallow"].includes(action) && parameters[0] === "identity";
589
- if (group === "signup" && action === "remove" && parameters[0] === "identity") throw new Error("platform: Use `void platform signup disallow identity <connection-id> <subject>`.");
590
- const expectedCount = identitySignupEntry ? 3 : count;
591
- if (parameters.length > expectedCount || !command.optionalPositional && parameters.length !== expectedCount) throw new Error(`platform: Usage: ${command.usage?.[identitySignupEntry ? 1 : 0]?.replace(/ \[options\]$/, "") ?? `void platform ${group} ${action}${command.positional?.map((name) => ` <${name}>`).join("") ?? ""}`}.`);
592
- const paged = action === "list" || action === "events" || action === "logs" || action === "attempts";
593
- const allowed = /* @__PURE__ */ new Set([
594
- "connection",
595
- ...command.method ? ["timeout"] : [],
596
- ...Object.keys(command.values ?? {}),
597
- ...paged ? ["limit", ...action !== "logs" || group === "email" ? ["page"] : []] : []
598
- ]);
599
- for (const name of Object.keys(values)) if (!allowed.has(name)) throw new Error(`platform: Unknown flag '--${name}' for ${group} ${action}.`);
600
- for (const name of flags) if (![
601
- "json",
602
- ...command.method ? ["yes", "plan"] : [],
603
- ...command.booleans ?? []
604
- ].includes(name)) throw new Error(`platform: Unknown flag '--${name}' for ${group} ${action}.`);
605
- if (parsed.plan && parsed.yes) throw new Error("platform: --plan and --yes cannot be combined.");
606
- parsed.path = command.path;
607
- parsed.method = command.method ?? "GET";
608
- if (identitySignupEntry) {
609
- const connectionId = parameters[1];
610
- const subject = parameters[2];
611
- if (!/^[a-z][a-z0-9-]{0,63}$/.test(connectionId)) throw new Error("platform: Invalid login connection ID.");
612
- if (!subject || subject.length > 255) throw new Error("platform: Identity subject must be 1–255 characters.");
613
- parsed.body = {
614
- type: "identity",
615
- connectionId,
616
- subject
617
- };
618
- } else for (const [index, name] of (command.positional ?? []).entries()) {
619
- const value = parameters[index];
620
- if (value === void 0) continue;
621
- if (value === "." || value === "..") throw new Error("platform: An object ID cannot be a dot path segment.");
622
- if (parsed.path.includes(`:${name}`)) parsed.path = parsed.path.replace(`:${name}`, encodeURIComponent(value));
623
- else if (group === "worker" && action === "events") parsed.path += `/${encodeURIComponent(value)}`;
624
- else parsed.body[name] = name === "emails" ? value.split(",").map((email) => email.trim()) : value;
625
- }
626
- for (const [name, value] of Object.entries(values)) {
627
- if (name === "connection" || name === "provider") continue;
628
- if (name === "timeout") {
629
- const maximum = OPERATOR_MAX_TIMEOUT_MS / 1e3;
630
- if (!/^[1-9]\d*$/.test(value) || Number(value) > maximum) throw new Error(`platform: --timeout must be an integer from 1 to ${maximum} seconds.`);
631
- parsed.timeoutMs = Number(value) * 1e3;
632
- continue;
633
- }
634
- if (name === "page" || name === "limit") {
635
- const maximum = name === "limit" ? action === "logs" && group !== "email" ? 500 : 100 : 1e6;
636
- if (!/^[1-9]\d*$/.test(value) || Number(value) > maximum) throw new Error(`platform: --${name} must be an integer from 1 to ${maximum}.`);
637
- }
638
- if (name === "since" && group === "build" && (!/^\d+$/.test(value) || !Number.isSafeInteger(Number(value)))) throw new Error("platform: --since must be a nonnegative safe integer for build logs.");
639
- if (name === "environment" && !["production", "staging"].includes(value)) throw new Error("platform: --environment must be production or staging.");
640
- if (parsed.method === "POST") parsed.body[name] = value;
641
- else parsed.query[name] = value;
642
- }
643
- if (parsed.body.type && ![
644
- "github",
645
- "email",
646
- "identity"
647
- ].includes(String(parsed.body.type))) throw new Error("platform: Signup grant type must be github, email, or identity.");
648
- for (const name of command.booleans ?? []) if (name !== "token-stdin" && flags.has(name)) parsed.body[name] = true;
649
- if (group === "zero-trust" && action === "configure") {
650
- if (!parsed.tokenStdin) throw new Error("platform: zero-trust configure requires --token-stdin.");
651
- const identityProviderIds = values["identity-providers"]?.split(",").map((entry) => entry.trim()).filter(Boolean);
652
- const policyIds = values.policies?.split(",").map((entry) => entry.trim()).filter(Boolean);
653
- const existingProjects = values["existing-projects"];
654
- if (!identityProviderIds?.length || !policyIds?.length) throw new Error("platform: zero-trust configure requires --identity-providers and --policies.");
655
- if (existingProjects !== void 0 && existingProjects !== "protected" && existingProjects !== "public") throw new Error("platform: --existing-projects must be protected or public.");
656
- parsed.body = {
657
- identityProviderIds,
658
- policyIds,
659
- ...existingProjects ? { existingProjects } : {},
660
- protectNewProjects: flags.has("protect-new-projects")
661
- };
662
- } else if (group === "zero-trust" && action === "status") {
663
- delete parsed.body.check;
664
- if (flags.has("check")) parsed.query.check = "true";
665
- } else if (group === "zero-trust" && action === "project-protect") parsed.body.protected = true;
666
- else if (group === "zero-trust" && action === "project-public") parsed.body.protected = false;
667
- return parsed;
668
- }
669
- //#endregion
670
29
  //#region src/cli/help.ts
671
30
  function operatorHelpTree() {
672
31
  return Object.fromEntries(operatorGroups.map((group) => {
@@ -708,7 +67,8 @@ function operatorHelpTree() {
708
67
  "list",
709
68
  "events",
710
69
  "logs",
711
- "attempts"
70
+ "attempts",
71
+ "shared-recipients"
712
72
  ].includes(entry.action) ? [{
713
73
  command: "--limit <number>",
714
74
  description: entry.action === "logs" && group !== "email" ? "Maximum 500 log records" : "Maximum 100 records per page"
@@ -954,6 +314,10 @@ const HELP_TREE = {
954
314
  command: "config auth [command]",
955
315
  description: "Configure login methods, company protection, and provider recovery"
956
316
  },
317
+ {
318
+ command: "config plans [command]",
319
+ description: "Manage plans, account limits, and the default plan"
320
+ },
957
321
  {
958
322
  command: "list",
959
323
  description: "List installed and connected platforms"
@@ -1007,99 +371,177 @@ const HELP_TREE = {
1007
371
  ...operatorHelpTree(),
1008
372
  config: {
1009
373
  summary: "Configure platform settings.",
1010
- usage: ["void platform config auth [command] [options]"],
1011
- children: { auth: {
1012
- summary: "Manage login methods and independent platform protection. Without a command, opens interactive configuration.",
1013
- usage: ["void platform config auth [list|show|initialize|add|configure|test|enable|disable|link|admission|protection|recover] [method-or-action] [options]"],
1014
- commands: [
1015
- {
1016
- command: "list",
1017
- description: "List configured login methods and platform protection"
1018
- },
1019
- {
1020
- command: "show <id>",
1021
- description: "Inspect a login method without displaying secrets"
1022
- },
1023
- {
1024
- command: "initialize",
1025
- description: "Import existing login settings before first configuration"
1026
- },
1027
- {
1028
- command: "add <github|google|oidc|cloudflare-access>",
1029
- description: "Configure a new login method"
1030
- },
1031
- {
1032
- command: "configure <id>",
1033
- description: "Stage an update to a login method"
1034
- },
1035
- {
1036
- command: "test <id>",
1037
- description: "Verify a login configuration in the browser"
1038
- },
1039
- {
1040
- command: "enable <id>",
1041
- description: "Enable a successfully tested configuration"
1042
- },
1043
- {
1044
- command: "disable <id>",
1045
- description: "Disable a method and revoke its human sessions"
1046
- },
1047
- {
1048
- command: "link <id>",
1049
- description: "Explicitly link a tested identity to your account"
1050
- },
1051
- {
1052
- command: "admission",
1053
- description: "Choose invited, company-approved, or public signup"
1054
- },
1055
- {
1056
- command: "protection <enable|disable|show>",
1057
- description: "Create or connect Access protection independently from login"
1058
- },
1059
- {
1060
- command: "recover <id>",
1061
- description: "Recover an existing administrator using installation authority"
1062
- }
1063
- ],
1064
- options: [
1065
- {
1066
- command: "--connection <id-or-url>",
1067
- description: "Select a registered platform"
1068
- },
1069
- {
1070
- command: "--installation <id>",
1071
- description: "Select recovery authority for protection or provider recovery"
1072
- },
1073
- {
1074
- command: "--id <id>",
1075
- description: "Name a new OIDC or Access connection"
1076
- },
1077
- {
1078
- command: "--file <path>",
1079
- description: "Read nonsecret configuration from JSON"
1080
- },
1081
- {
1082
- command: "--client-secret-env <name>",
1083
- description: "Read the client secret from an environment variable"
1084
- },
1085
- {
1086
- command: "--test-id <id>",
1087
- description: "Use a completed test for enable or link"
1088
- },
1089
- {
1090
- command: "--plan",
1091
- description: "Validate and preview a change"
1092
- },
1093
- {
1094
- command: "--yes",
1095
- description: "Apply without prompting"
1096
- },
1097
- {
1098
- command: "--json",
1099
- description: "Print structured output"
1100
- }
1101
- ]
1102
- } }
374
+ usage: ["void platform config <auth|plans> [command] [options]"],
375
+ children: {
376
+ plans: {
377
+ summary: "Manage plans and limits. Without a command, opens interactive configuration.",
378
+ usage: ["void platform config plans [show|add|set|reset|archive|restore|remove|default|sync] [plan-id] [options]"],
379
+ commands: [
380
+ {
381
+ command: "show [id]",
382
+ description: "Show the catalog or one plan and its account count"
383
+ },
384
+ {
385
+ command: "add <id> --copy <id> --name <name>",
386
+ description: "Copy an existing plan with a new stable ID"
387
+ },
388
+ {
389
+ command: "set <id>",
390
+ description: "Edit a plan name, limits, or build instance size"
391
+ },
392
+ {
393
+ command: "reset <id>",
394
+ description: "Restore a built-in plan’s original limits and build size"
395
+ },
396
+ {
397
+ command: "archive <id>",
398
+ description: "Keep current accounts while stopping new assignments"
399
+ },
400
+ {
401
+ command: "restore <id>",
402
+ description: "Allow assignments to an archived plan again"
403
+ },
404
+ {
405
+ command: "remove <id>",
406
+ description: "Remove an unused plan or move its accounts to a replacement"
407
+ },
408
+ {
409
+ command: "default <id>",
410
+ description: "Choose the plan new accounts receive"
411
+ },
412
+ {
413
+ command: "sync",
414
+ description: "Continue pending account limit updates"
415
+ }
416
+ ],
417
+ options: [
418
+ {
419
+ command: "--connection <id-or-url>",
420
+ description: "Select a registered platform"
421
+ },
422
+ {
423
+ command: "--file <path>",
424
+ description: "Read plan settings and partial limits from JSON"
425
+ },
426
+ {
427
+ command: "--name <name>",
428
+ description: "Set the display name when adding or editing"
429
+ },
430
+ {
431
+ command: "--copy <id>",
432
+ description: "Copy this plan when adding a new one"
433
+ },
434
+ {
435
+ command: "--replacement <id>",
436
+ description: "Move accounts and any default before removing a plan"
437
+ },
438
+ {
439
+ command: "--plan",
440
+ description: "Preview the change and affected accounts"
441
+ },
442
+ {
443
+ command: "--yes",
444
+ description: "Apply without prompting"
445
+ },
446
+ {
447
+ command: "--json",
448
+ description: "Print structured output"
449
+ }
450
+ ]
451
+ },
452
+ auth: {
453
+ summary: "Manage login methods and independent platform protection. Without a command, opens interactive configuration.",
454
+ usage: ["void platform config auth [list|show|initialize|add|configure|test|enable|disable|link|admission|protection|recover] [method-or-action] [options]"],
455
+ commands: [
456
+ {
457
+ command: "list",
458
+ description: "List configured login methods and platform protection"
459
+ },
460
+ {
461
+ command: "show <id>",
462
+ description: "Inspect a login method without displaying secrets"
463
+ },
464
+ {
465
+ command: "initialize",
466
+ description: "Import existing login settings before first configuration"
467
+ },
468
+ {
469
+ command: "add <github|google|oidc|cloudflare-access>",
470
+ description: "Configure a new login method"
471
+ },
472
+ {
473
+ command: "configure <id>",
474
+ description: "Stage an update to a login method"
475
+ },
476
+ {
477
+ command: "test <id>",
478
+ description: "Verify a login configuration in the browser"
479
+ },
480
+ {
481
+ command: "enable <id>",
482
+ description: "Enable a successfully tested configuration"
483
+ },
484
+ {
485
+ command: "disable <id>",
486
+ description: "Disable a method and revoke its human sessions"
487
+ },
488
+ {
489
+ command: "link <id>",
490
+ description: "Explicitly link a tested identity to your account"
491
+ },
492
+ {
493
+ command: "admission",
494
+ description: "Choose invited, company-approved, or public signup"
495
+ },
496
+ {
497
+ command: "protection <enable|disable|show>",
498
+ description: "Create or connect Access protection independently from login"
499
+ },
500
+ {
501
+ command: "recover <id>",
502
+ description: "Recover an existing administrator using installation authority"
503
+ }
504
+ ],
505
+ options: [
506
+ {
507
+ command: "--connection <id-or-url>",
508
+ description: "Select a registered platform"
509
+ },
510
+ {
511
+ command: "--installation <id>",
512
+ description: "Select recovery authority for protection or provider recovery"
513
+ },
514
+ {
515
+ command: "--id <id>",
516
+ description: "Name a new OIDC or Access connection"
517
+ },
518
+ {
519
+ command: "--file <path>",
520
+ description: "Read nonsecret configuration from JSON"
521
+ },
522
+ {
523
+ command: "--client-secret-env <name>",
524
+ description: "Read the client secret from an environment variable"
525
+ },
526
+ {
527
+ command: "--test-id <id>",
528
+ description: "Use a completed test for enable or link"
529
+ },
530
+ {
531
+ command: "--plan",
532
+ description: "Validate and preview a change"
533
+ },
534
+ {
535
+ command: "--yes",
536
+ description: "Apply without prompting"
537
+ },
538
+ {
539
+ command: "--json",
540
+ description: "Print structured output"
541
+ }
542
+ ]
543
+ }
544
+ }
1103
545
  },
1104
546
  domain: {
1105
547
  summary: "Add an application domain while keeping existing workers.dev URLs.",
@@ -1153,13 +595,29 @@ const HELP_TREE = {
1153
595
  command: "--auth-config <path>",
1154
596
  description: "Read login methods and signup policy from nonsecret JSON with environment secret references"
1155
597
  },
598
+ {
599
+ command: "--login-methods <methods>",
600
+ description: "Comma-separated github, google, oidc, or cloudflare-access login methods"
601
+ },
602
+ {
603
+ command: "--access-protection",
604
+ description: "Protect platform UI and APIs with Cloudflare Access"
605
+ },
606
+ {
607
+ command: "--no-access-protection",
608
+ description: "Skip Cloudflare Access protection"
609
+ },
610
+ {
611
+ command: "--hyperdrive <create|id>",
612
+ description: "Create Hyperdrive or use the specified existing configuration"
613
+ },
1156
614
  {
1157
615
  command: "--name <slug>",
1158
616
  description: "Installation name"
1159
617
  },
1160
618
  {
1161
619
  command: "--workers-dev",
1162
- description: "Use workers.dev for testing; add a domain later"
620
+ description: "Use workers.dev for testing. Add a domain later."
1163
621
  },
1164
622
  {
1165
623
  command: "--display-name <name>",
@@ -1171,7 +629,7 @@ const HELP_TREE = {
1171
629
  },
1172
630
  {
1173
631
  command: "--application-domain <domain>",
1174
- description: "Base domain for applications (zone apex is simplest)"
632
+ description: "Base domain for applications"
1175
633
  },
1176
634
  {
1177
635
  command: "--zone <domain>",
@@ -1181,10 +639,22 @@ const HELP_TREE = {
1181
639
  command: "--dedicated-zone",
1182
640
  description: "Allow zone-wide application catch-all routes"
1183
641
  },
642
+ {
643
+ command: "--no-dedicated-zone",
644
+ description: "Skip zone-wide application catch-all routes"
645
+ },
1184
646
  {
1185
647
  command: "--control-plane-domain <domain>",
1186
648
  description: "Optional API hostname"
1187
649
  },
650
+ {
651
+ command: "--no-control-plane-domain",
652
+ description: "Use the default workers.dev API hostname"
653
+ },
654
+ {
655
+ command: "--dashboard-url <origin>",
656
+ description: "HTTPS origin of a separately deployed dashboard"
657
+ },
1188
658
  {
1189
659
  command: "--plan",
1190
660
  description: "Print the exact plan without changing Cloudflare"
@@ -1666,20 +1136,14 @@ const HELP_TREE = {
1666
1136
  }
1667
1137
  ],
1668
1138
  options: [{
1669
- command: "--subdomain <label|host>",
1670
- description: "On add: register this subdomain instead of the proposed mail.<domain>"
1671
- }, {
1672
1139
  command: "--project <name>",
1673
1140
  description: "Project name override"
1674
1141
  }],
1675
1142
  children: {
1676
1143
  add: {
1677
- summary: "Register a domain on a Cloudflare zone you own for sending and receiving. Proposes mail.<domain> when the apex already carries MX.",
1144
+ summary: "Register a Cloudflare zone apex you own for sending and receiving.",
1678
1145
  usage: ["void email domain add <domain> [options]"],
1679
1146
  options: [{
1680
- command: "--subdomain <label|host>",
1681
- description: "Register this subdomain instead of the proposed mail.<domain>"
1682
- }, {
1683
1147
  command: "--project <name>",
1684
1148
  description: "Project name override"
1685
1149
  }]
@@ -2172,6 +1636,18 @@ const HELP_TREE = {
2172
1636
  queue: basicSubcommand("Generate a queue consumer file.", "void gen queue <name>")
2173
1637
  }
2174
1638
  },
1639
+ info: {
1640
+ summary: "Inspect persistent resource names in this project without deploying.",
1641
+ usage: ["void info [--json]"],
1642
+ options: [{
1643
+ command: "--json",
1644
+ description: "Write structured JSON to stdout"
1645
+ }],
1646
+ examples: [{
1647
+ command: "void info",
1648
+ description: "Find names to preserve before moving persistent definitions"
1649
+ }]
1650
+ },
2175
1651
  prepare: {
2176
1652
  summary: "Generate .void artifacts without starting Vite.",
2177
1653
  usage: ["void prepare"],
@@ -2204,7 +1680,7 @@ function withProjectOption(summary, usage) {
2204
1680
  function lifecycleHelp(command, summary) {
2205
1681
  return {
2206
1682
  summary,
2207
- usage: [`void platform ${command} [id] [--plan]${command === "disable" ? "" : " [--runtime <path>]"} [--yes]`],
1683
+ usage: [`void platform ${command} [id] [--plan]${command === "disable" ? "" : " [--runtime <path>]"}${command === "upgrade" || command === "repair" ? " [--dashboard-url <origin>]" : ""} [--yes]`],
2208
1684
  options: [
2209
1685
  {
2210
1686
  command: "--plan",
@@ -2214,6 +1690,10 @@ function lifecycleHelp(command, summary) {
2214
1690
  command: "--runtime <path>",
2215
1691
  description: "Deploy an integrity-checked runtime directory instead of the package"
2216
1692
  }],
1693
+ ...command === "upgrade" || command === "repair" ? [{
1694
+ command: "--dashboard-url <origin>",
1695
+ description: "Configure a separately deployed dashboard; omission keeps its saved origin"
1696
+ }] : [],
2217
1697
  {
2218
1698
  command: "--yes",
2219
1699
  description: "Acknowledge non-interactive Cloudflare changes"
@@ -2229,6 +1709,8 @@ function printGlobalHelp() {
2229
1709
  "",
2230
1710
  globalCommandLine(["migrate"], "void migrate"),
2231
1711
  "",
1712
+ globalCommandLine(["info"], "void info [--json]"),
1713
+ "",
2232
1714
  globalCommandLine(["connect"], "void connect [url]"),
2233
1715
  ...globalOptionLines(["connect"]),
2234
1716
  "",
@@ -2373,4 +1855,4 @@ function formatHelpPath(path) {
2373
1855
  return path.length === 0 ? "help" : path.join(" ");
2374
1856
  }
2375
1857
  //#endregion
2376
- export { operatorGroups as a, printVoidHeader as i, printGlobalHelp as n, parseOperatorArgs as o, printHelpPage as r, getHelpPath as t };
1858
+ export { printVoidHeader as i, printGlobalHelp as n, printHelpPage as r, getHelpPath as t };