void 1.3.0 → 1.5.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.
- package/README.md +1 -1
- package/dist/{account-cmd-B4i71m7k.mjs → account-cmd-ChVKPZ-w.mjs} +7 -8
- package/dist/{action-key-XZ9HkWAO.mjs → action-key-XtKKbbsi.mjs} +1 -2
- package/dist/{agents-CuNtT0D_.mjs → agents-DRo8gzni.mjs} +2 -3
- package/dist/{application-analysis-DYdVoMAY.mjs → application-analysis-2vGZrKzg.mjs} +27 -29
- package/dist/{application-routing-C8EqRDfv.mjs → application-routing-DnUQoOJD.mjs} +2 -3
- package/dist/{ast-CsZ_q_gc.mjs → ast-Cv0JwXqb.mjs} +1 -2
- package/dist/{ast-bindings-C3yaPs1y.mjs → ast-bindings-BkivMJIo.mjs} +6 -11
- package/dist/{atomic-write-Dq6R0BPN.mjs → atomic-write-DA6eD1Kp.mjs} +1 -2
- package/dist/auth-CH4PLAX1.d.mts +68 -0
- package/dist/{auth-Cbqi1iVX.mjs → auth-CL-p_rqV.mjs} +1 -1
- package/dist/{auth-B6iOCjKI.mjs → auth-Dy8svcqQ.mjs} +6 -7
- package/dist/{auth-3sGB0zJ1.mjs → auth-YVjBX5NY.mjs} +1 -2
- package/dist/{auth-client-Bawdj38n.d.mts → auth-client-6-Ft9i9T.d.mts} +0 -2
- package/dist/{auth-client-BWBT8HLp.mjs → auth-client-DwCdwKbw.mjs} +1 -2
- package/dist/{auth-client-react-CMLwT2xI.mjs → auth-client-react-CJdeErvM.mjs} +1 -2
- package/dist/{auth-client-react-7GFffu8R.d.mts → auth-client-react-DvQLe5Zb.d.mts} +0 -2
- package/dist/{auth-client-solid-UoreJWZG.mjs → auth-client-solid-BRvgvp6h.mjs} +1 -2
- package/dist/{auth-client-solid-DyTFL4cq.d.mts → auth-client-solid-P9pEtKGp.d.mts} +0 -2
- package/dist/{auth-client-svelte-zetW0KIH.d.mts → auth-client-svelte-B5j8irT6.d.mts} +0 -2
- package/dist/{auth-client-svelte-Cv_WvrRk.mjs → auth-client-svelte-BSqUCEed.mjs} +1 -2
- package/dist/{auth-client-vue-bChShbQP.d.mts → auth-client-vue-BEiAfavk.d.mts} +0 -2
- package/dist/{auth-client-vue-CFk7Xbv3.mjs → auth-client-vue-CPkbRtOO.mjs} +1 -2
- package/dist/{auth-link-BKwHPbdv.mjs → auth-link-D4uMdOsw.mjs} +7 -8
- package/dist/{auth-migrations-BO27GDNr.mjs → auth-migrations-DDeifS3v.mjs} +1 -2
- package/dist/{auth-router-DqLx8E0F.mjs → auth-router-62dna450.mjs} +14 -10
- package/dist/{base64-DVrOndmI.mjs → base64-ikl9yBy3.mjs} +1 -2
- package/dist/{better-auth-shared-DVk2DkTW.d.mts → better-auth-shared-BJyG2mH0.d.mts} +2 -6
- package/dist/{better-auth-shared-7FM3Uk2N.mjs → better-auth-shared-CiclgPde.mjs} +4 -5
- package/dist/{build-cmd-Dy4psnt1.mjs → build-cmd-D93K_4Sa.mjs} +7 -8
- package/dist/{cache-DV37S6dl.mjs → cache-CiIzEED4.mjs} +7 -8
- package/dist/{cancel-deploy-DMPyu1Vt.mjs → cancel-deploy-BNoGfn2e.mjs} +6 -7
- package/dist/{cf-access-CWP4avfP.mjs → cf-access-BmBT2h8_.mjs} +3 -4
- package/dist/{cf-access-BM9G0lhO.mjs → cf-access-pejlJmuy.mjs} +1 -2
- package/dist/{cf-build-output-Bapzc_8Z.mjs → cf-build-output-B1C8U83u.mjs} +60 -317
- package/dist/cf-build-output-CmDOcA7K.mjs +1 -0
- package/dist/{cf-command-values-ByHk0xg4.mjs → cf-command-values-Ccl-zRhl.mjs} +10 -7
- package/dist/cf-config-migrate-Dy8MrKgF.mjs +326 -0
- package/dist/{cf-worker-settings-BECvvTVd.mjs → cf-worker-settings-CARs4Wy9.mjs} +14 -10
- package/dist/cli/cli.mjs +66 -76
- package/dist/cli/cloudflare-operation-process.mjs +21 -19
- package/dist/cli/env-schema-probe.d.mts +1 -5
- package/dist/cli/env-schema-probe.mjs +4 -5
- package/dist/client-DVtAKeUm.mjs +1 -0
- package/dist/{client-BEMtySaV.mjs → client-Qayy9xEh.mjs} +10 -12
- package/dist/{cloudflare-auth-Byo_0_N9.mjs → cloudflare-auth-CEu-1Ps_.mjs} +3 -4
- package/dist/{cloudflare-cmd-BaqIigwI.mjs → cloudflare-cmd-DiFGaLow.mjs} +7 -8
- package/dist/{cloudflare-config-DchHxPTo.mjs → cloudflare-config-Chet188_.mjs} +25 -9
- package/dist/{cloudflare-connect-pNLQmr_e.mjs → cloudflare-connect-BdgAQBc7.mjs} +5 -6
- package/dist/{cloudflare-operations-vP3b5CQf.mjs → cloudflare-operations-CWA24vCh.mjs} +8 -9
- package/dist/{cloudflare-operations-PCM4wucv.mjs → cloudflare-operations-D8MoezuN.mjs} +1 -1
- package/dist/{cloudflare-process-8jEYIeim.mjs → cloudflare-process-DjJ638A-.mjs} +7 -9
- package/dist/{cloudflare-user-output-Q-k0QoNQ.mjs → cloudflare-user-output-zEwuGrEJ.mjs} +1 -2
- package/dist/collect-8i0wU63d.mjs +1 -0
- package/dist/{collect-Dew86qce.mjs → collect-C6Blu9yw.mjs} +2 -3
- package/dist/{config-BU6hMu1W.mjs → config-BszFVhpk.mjs} +1 -1
- package/dist/{config-BIaXIkkv.mjs → config-Bt4rw93x.mjs} +5 -6
- package/dist/{config-Du88-7Y8.d.mts → config-CzsNzGVH.d.mts} +4 -6
- package/dist/{config-DHgSEWT7.mjs → config-DkA9jYF2.mjs} +9 -8
- package/dist/config-WlvEcL82.mjs +86 -0
- package/dist/config-entry.d.mts +1 -3
- package/dist/config-entry.mjs +1 -2
- package/dist/{connect-DwVsBvVh.mjs → connect-b9mJbb6X.mjs} +10 -11
- package/dist/{create-project-CjzbBlTv.mjs → create-project-eomwm0wa.mjs} +9 -11
- package/dist/{create-project-CgrnvzyA.mjs → create-project-rnjum4_V.mjs} +1 -1
- package/dist/{database-provider-Cx525bwX.mjs → database-provider-DkZo4VwN.mjs} +1 -2
- package/dist/database-provider.d.mts +1 -3
- package/dist/database-provider.mjs +1 -1
- package/dist/{db-rvo64snS.mjs → db-UPWmiSk1.mjs} +52 -54
- package/dist/{db-types-NGxPwnlt.mjs → db-types-C_8amnB0.mjs} +3 -4
- package/dist/{delete-DWX6dP4M.mjs → delete-BeeYi1WO.mjs} +7 -8
- package/dist/deploy-CfU7CR-b.mjs +2 -0
- package/dist/{deploy-hRPvw8ci.mjs → deploy-CwmCcTlq.mjs} +321 -185
- package/dist/{deploy-managed-static-CDYA2p3L.mjs → deploy-managed-static-gPDxyp3v.mjs} +46 -46
- package/dist/{deploy-transport-JCxw7QDi.mjs → deploy-transport-L6zzPE9T.mjs} +17 -17
- package/dist/deploy.d.mts +3 -3
- package/dist/deploy.mjs +13 -12
- package/dist/{dev-inbox-D0jxye_D.mjs → dev-inbox-CwH5VuZj.mjs} +3 -4
- package/dist/discover-D4mQthao.mjs +1 -0
- package/dist/{discover-LaV0tbIu.mjs → discover-Dhkzxgdt.mjs} +3 -4
- package/dist/{dispatch-OVLeWW8K.mjs → dispatch-CiJ1Xrba.mjs} +13 -16
- package/dist/{dist-Cegxq8gs.mjs → dist-B6eN80gc.mjs} +199 -118
- package/dist/{dist-D15hFhP0.mjs → dist-BWNkVq50.mjs} +8 -15
- package/dist/{dist-Cor9XGoz.mjs → dist-D23AAMxT.mjs} +9 -16
- package/dist/{dist-ipQi0Q8y.mjs → dist-DMYe8CZJ.mjs} +1 -2
- package/dist/{dist-B1PLt4_8.mjs → dist-eV_Ep60B.mjs} +1 -1
- package/dist/{domain-CH5iBD9Y.mjs → domain-3xdH9p2L.mjs} +8 -9
- package/dist/{dotenv-CNazY3-w.mjs → dotenv-CEI8hapP.mjs} +1 -2
- package/dist/{drizzle-9TubSZvI.mjs → drizzle-C8MPqt5m.mjs} +1 -1
- package/dist/{drizzle-BQfyvQKX.mjs → drizzle-lFdzSEa9.mjs} +2 -3
- package/dist/{email-B9ayYQEG.mjs → email-BHY72ixO.mjs} +3 -4
- package/dist/{email-CbTO1l78.mjs → email-Du3YRnM5.mjs} +14 -15
- package/dist/{email-cloudflare-B8-pq_-W.mjs → email-cloudflare-CtD8qE13.mjs} +34 -24
- package/dist/{email-protocol-D9nTvhCp.mjs → email-protocol-DTs_TjCS.mjs} +1 -2
- package/dist/{entry-BEM8ZuGP.mjs → entry-CBZsCy3O.mjs} +5 -6
- package/dist/{env-BBdw236G.mjs → env-Cnvp0pGy.mjs} +10 -11
- package/dist/{env-BaMz0j7H.mjs → env-CuzZZyjB.mjs} +3 -4
- package/dist/{env-0jrMQJI_.mjs → env-DtKg5G26.mjs} +2 -3
- package/dist/{env-helpers--wFmQ_5Q.mjs → env-helpers-Dj_SIwPu.mjs} +1 -2
- package/dist/{env-helpers-CyKtOBpj.d.mts → env-helpers-U56xuFgL.d.mts} +1 -3
- package/dist/{env-public-6lqiSD2b.d.mts → env-public-CeNeO_AT.d.mts} +2 -4
- package/dist/{env-raw-D74P4ebM.mjs → env-raw-e8qgqAzQ.mjs} +1 -2
- package/dist/{env-types-BicfKBhV.mjs → env-types-DqzVBKnS.mjs} +4 -5
- package/dist/{env-validation-BfBVvBNe.mjs → env-validation-C8Cmvas0.mjs} +1 -1
- package/dist/{env-validation-XcukUlFM.mjs → env-validation-GV1oD4EV.mjs} +10 -10
- package/dist/error-pages-COVBnzK7.mjs +31 -0
- package/dist/{fetch-CUX0tB78.d.mts → fetch-B-gLGYVl.d.mts} +0 -4
- package/dist/{fetch-CtESUYWd.mjs → fetch-C8yhLoF3.mjs} +3 -4
- package/dist/{fetch-error-Bw0n-IY-.mjs → fetch-error-DmlRM6e4.mjs} +2 -4
- package/dist/{fetch-stream-BspOeTAI.mjs → fetch-stream-DafNtVJC.mjs} +4 -5
- package/dist/{fetch-stream-DfkAzZf-.d.mts → fetch-stream-DuwxWmBM.d.mts} +1 -3
- package/dist/{gen-CCx3t2Ju.mjs → gen-BvVmpZ5f.mjs} +12 -13
- package/dist/gen-i61rdQgg.mjs +1 -0
- package/dist/{generate-DkEb9rL-.mjs → generate-BOp1g1H_.mjs} +1 -1
- package/dist/{generate-B1m4Cm4n.mjs → generate-CWb8aOsm.mjs} +4 -5
- package/dist/{generated-wrangler-config-DeWj5F9Y.mjs → generated-wrangler-config-CoDaaFsA.mjs} +1 -2
- package/dist/{git-metadata-D-gurjzG.mjs → git-metadata-Cukp5kV5.mjs} +1 -2
- package/dist/{github-cmd-BzkRLkbg.mjs → github-cmd-X2GKiLi-.mjs} +8 -9
- package/dist/{handler-CQv5YDS0.d.mts → handler-Drm_lyrV.d.mts} +15 -26
- package/dist/{handler-BZ1t7-Rv.mjs → handler-xmzz0U38.mjs} +4 -5
- package/dist/{head-D2VF4ApL.mjs → head-5XPcnG-j.mjs} +1 -2
- package/dist/{head-C8K_iGe6.d.mts → head-MeF_5M_3.d.mts} +0 -2
- package/dist/{headers-D522zd0A.mjs → headers-DEUBAM6W.mjs} +4 -5
- package/dist/help-BcZDUcTw.mjs +1 -0
- package/dist/{help-CKbrhZha.mjs → help-EWDNxST-.mjs} +19 -11
- package/dist/{inbound-VrOLqwZY.mjs → inbound-DQfekMtz.mjs} +5 -6
- package/dist/{inbound-Da7XsjH3.d.mts → inbound-DSKSHDUj.d.mts} +0 -4
- package/dist/index.d.mts +23 -13
- package/dist/index.mjs +504 -225
- package/dist/{info-oBm8yK8J.mjs → info-jW8_d3VI.mjs} +6 -7
- package/dist/{init-CBp_uMve.mjs → init-jDQ5G9QC.mjs} +62 -64
- package/dist/{isr-config-fZaJJ8t7.mjs → isr-config-DhBkzCdY.mjs} +5 -9
- package/dist/{limits-D0vD1M9A.mjs → limits-CrHLm5Tk.mjs} +1 -2
- package/dist/{limits-CFsDKQvU.d.mts → limits-_xIf5z_P.d.mts} +0 -2
- package/dist/{link-Dt_QXmM4.mjs → link-DOyxX5Xs.mjs} +8 -9
- package/dist/{list-DF6asTdt.mjs → list-C9pTYDtl.mjs} +8 -9
- package/dist/{live-CXJ9yC98.d.mts → live-CDBHyYiR.d.mts} +2 -4
- package/dist/{live-BcHoTDFe.mjs → live-DF4HUl2m.mjs} +5 -7
- package/dist/{load-user-env-DD5qveNU.mjs → load-user-env-CSwdofj0.mjs} +1 -2
- package/dist/{local-d1-CUhH3qtj.mjs → local-d1-CKfek6Z4.mjs} +4 -5
- package/dist/{log-BMwmN5Ae.mjs → log-D9hwSySP.mjs} +3 -4
- package/dist/login-C0MiQrYs.mjs +1 -0
- package/dist/{login-BjSyhXlT.mjs → login-koQbjzPd.mjs} +6 -7
- package/dist/{logs-DmvBl6xA.mjs → logs-cTU5TsRW.mjs} +8 -9
- package/dist/migrate-BG09-KOv.mjs +1 -0
- package/dist/{migrate-BXRHpYwR.mjs → migrate-C62pGTfr.mjs} +22 -79
- package/dist/{migration-handler-CwlEQUoo.d.mts → migration-handler-D8mDx3Ew.d.mts} +0 -4
- package/dist/{migration-handler-Cg0Y4EPu.mjs → migration-handler-DCehTlWs.mjs} +1 -2
- package/dist/{mime-BAyHPskU.mjs → mime-DKkO7ZtA.mjs} +2 -3
- package/dist/{mysql-migration-sql-BIS5vbNk.mjs → mysql-migration-sql-CI9VTwjt.mjs} +3 -5
- package/dist/{neon-DTZr7Bu7.mjs → neon-CJzQSycr.mjs} +2 -3
- package/dist/nitro.d.mts +0 -2
- package/dist/nitro.mjs +6 -7
- package/dist/{node-DtD7ZiPf.mjs → node-BfAt2rz8.mjs} +9 -10
- package/dist/{operator-args-BsJIYXaT.mjs → operator-args-D79WQP70.mjs} +2 -3
- package/dist/{operator-auth-Cr2zCc-J.mjs → operator-auth-CfDcmzpo.mjs} +2 -3
- package/dist/{operator-client-C-ROjk1I.mjs → operator-client-BIY4-N_6.mjs} +3 -4
- package/dist/operator-cmd-BhHXIL2G.mjs +1 -0
- package/dist/{operator-cmd-DjZKGGgN.mjs → operator-cmd-CnAvSqJ5.mjs} +8 -9
- package/dist/{output-BpgYODYx.mjs → output-BCdLioKP.mjs} +4 -5
- package/dist/output-E6gecbbV.mjs +1 -0
- package/dist/{package-json-BjYqR-So.mjs → package-json-DvS6IFRv.mjs} +2 -3
- package/dist/pages/client.d.mts +22 -23
- package/dist/pages/client.mjs +51 -31
- package/dist/pages/head.d.mts +1 -1
- package/dist/pages/head.mjs +1 -1
- package/dist/pages/index.d.mts +18 -14
- package/dist/pages/index.mjs +99 -10
- package/dist/pages/islands-plugin.d.mts +29 -11
- package/dist/pages/islands-plugin.mjs +3 -4
- package/dist/pages/prefetch.d.mts +1 -1
- package/dist/pages/prefetch.mjs +1 -1
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +2 -2
- package/dist/pages/serialize.d.mts +1 -1
- package/dist/pages/serialize.mjs +1 -1
- package/dist/{pg-J2HbZIkX.mjs → pg-DoyPxa_X.mjs} +1 -2
- package/dist/{picocolors-BsDfhxIw.mjs → picocolors-D1NxSLw-.mjs} +2 -3
- package/dist/{plan-BhLO2p4w.mjs → plan-BOD70XGS.mjs} +1 -2
- package/dist/plan-CQ-N4gws.mjs +1 -0
- package/dist/{platform-args-BMD2gjc_.mjs → platform-args-Bv9hoLEL.mjs} +4 -7
- package/dist/platform-args-C1kqYUen.mjs +1 -0
- package/dist/{platform-auth-config-BgnuMbml.mjs → platform-auth-config-CLj0EvnB.mjs} +10 -11
- package/dist/{platform-auth-protection-NjRejttU.mjs → platform-auth-protection-DQDSxVhr.mjs} +10 -11
- package/dist/{platform-auth-recovery-Ug12d9W5.mjs → platform-auth-recovery-DD3oLerq.mjs} +9 -11
- package/dist/{platform-cmd-HByuZAO7.mjs → platform-cmd-PLNLg-2N.mjs} +12 -13
- package/dist/{platform-cmd-BYKLMPCn.mjs → platform-cmd-WnOmdLzR.mjs} +1 -1
- package/dist/{platform-discovery-CHhNs8Nn.mjs → platform-discovery-B0eZjZ3B.mjs} +2 -3
- package/dist/{platform-domain-DLSQ8GF8.mjs → platform-domain-Bnq0vg0q.mjs} +7 -8
- package/dist/{platform-lifecycle-3dwFJmnq.mjs → platform-lifecycle-BCsFg1Tl.mjs} +53 -88
- package/dist/{platform-lifecycle-BRqcxerG.mjs → platform-lifecycle-BQiN9HN5.mjs} +1 -1
- package/dist/{platform-management-ZK6XcbCo.mjs → platform-management-CMJR8Zi-.mjs} +1 -1
- package/dist/{platform-management-ZZ6bQM5j.mjs → platform-management-nzCDwtiN.mjs} +7 -9
- package/dist/{platform-plans-config-CeydDSj0.mjs → platform-plans-config-Dx1agneU.mjs} +5 -6
- package/dist/{platform-recovery-8vNE5dNN.mjs → platform-recovery-DBNoME3I.mjs} +5 -6
- package/dist/{platform-registry-B9mWX9LO.mjs → platform-registry-DZ_2Xuqd.mjs} +4 -6
- package/dist/{platform-setup-Ca53gtt0.mjs → platform-setup-VEcHu0Vq.mjs} +4 -5
- package/dist/{plugin-inference-CeiB6BG5.mjs → plugin-inference-DmwjC3y2.mjs} +16 -24
- package/dist/{prefetch-Ce6la4EI.d.mts → prefetch-CG0K6JPd.d.mts} +0 -2
- package/dist/{prefetch-Bsc_Pb6c.mjs → prefetch-L93_1Jk7.mjs} +1 -2
- package/dist/prepare-BJMmfq3W.mjs +1 -0
- package/dist/{prepare-5BR7Splm.mjs → prepare-BPsfLWaW.mjs} +4 -5
- package/dist/{prepare-Dseww74N.mjs → prepare-pfl2LIMy.mjs} +17 -14
- package/dist/{prerender-render-CaShbHJ3.mjs → prerender-render-RlAj6hh8.mjs} +2 -3
- package/dist/prerender-render.d.mts +1 -3
- package/dist/prerender-render.mjs +1 -1
- package/dist/{project-rqDnVsJN.mjs → project-CLwxcEdq.mjs} +3 -4
- package/dist/{project-zdB3fs9G.mjs → project-DVsTAWFh.mjs} +1 -1
- package/dist/{project-cmd-CjLNNxwe.mjs → project-cmd-5Izu4Pg3.mjs} +21 -23
- package/dist/{project-paths-DGu_QZ_Q.mjs → project-paths-CdGv9Tmi.mjs} +3 -5
- package/dist/project-slug-BUy0lmyR.mjs +1 -0
- package/dist/{project-slug-23TpquG4.mjs → project-slug-CO6ci9XG.mjs} +0 -1
- package/dist/{project-team-DE5drjcl.mjs → project-team-DSUyjZFh.mjs} +7 -8
- package/dist/{project-token-XEYEXfiJ.mjs → project-token-wj09YQSB.mjs} +7 -8
- package/dist/{project-tsconfig-Itv1f4WC.mjs → project-tsconfig-Cf2NFjlM.mjs} +28 -8
- package/dist/{project-zero-trust-6VPU8zmV.mjs → project-zero-trust-BMHf2YF0.mjs} +7 -8
- package/dist/{protocol-DimNxVRr.mjs → protocol-0-lp9ZYx.mjs} +6 -7
- package/dist/{protocol-BekmFxCI.d.mts → protocol-xdrl-In0.d.mts} +3 -5
- package/dist/{providers-BNKRacMr.d.mts → providers-D5P8j_8D.d.mts} +0 -2
- package/dist/{providers-BUHwJlmM.mjs → providers-ZARwX2cL.mjs} +1 -2
- package/dist/{provision-B7UFrBH7.mjs → provision-CRiNnlfE.mjs} +29 -14
- package/dist/{provision-Chq0NRAV.mjs → provision-CxHIGBIZ.mjs} +1 -1
- package/dist/{queues-BWKt1Xo4.d.mts → queues-DdM42xXW.d.mts} +0 -2
- package/dist/{r2-conditions-B8xUgJRc.mjs → r2-conditions-BqkQNt2n.mjs} +1 -2
- package/dist/{requests-CG-Pj8ze.mjs → requests-DicgB5jU.mjs} +6 -7
- package/dist/resolve-project-CgfjtOwz.mjs +1 -0
- package/dist/{resolve-project-Xoi6eTWY.mjs → resolve-project-D0YNnJfm.mjs} +4 -5
- package/dist/{resource-name-C7LVpcRm.mjs → resource-name-DlJ9QXzg.mjs} +1 -2
- package/dist/{response-Tn7rU0MV.mjs → response-HmNjB30w.mjs} +1 -2
- package/dist/{rollback-CIrm2txZ.mjs → rollback-DrDZOKNE.mjs} +7 -8
- package/dist/{rolldown-runtime-3h0WiCiA.mjs → rolldown-runtime-uD8oG6U2.mjs} +1 -2
- package/dist/{route-types--PAOzHlH.mjs → route-types-irZc1txT.mjs} +100 -7
- package/dist/route-url-BGOiyKNz.d.mts +24 -0
- package/dist/route-url-CRDF-I0I.mjs +57 -0
- package/dist/routes-stub.d.mts +4 -3
- package/dist/routes-stub.mjs +1 -1
- package/dist/{routing-assets-DdSFxoLp.mjs → routing-assets-DJIVOrCh.mjs} +1 -2
- package/dist/{runner-3uGC-oLF.mjs → runner-5MCSimKx.mjs} +5 -6
- package/dist/{runner-WCdfeI0q.mjs → runner-QMeOpScZ.mjs} +1 -1
- package/dist/{runner-mysql-BcHnLUuM.mjs → runner-mysql-0zVmB1JW.mjs} +1 -1
- package/dist/{runner-mysql-BWmbk5IE.mjs → runner-mysql-Bdmsp_x4.mjs} +3 -4
- package/dist/{runner-pg-Cgp-cr_p.mjs → runner-pg-2pjltt0t.mjs} +1 -1
- package/dist/{runner-pg-Cr3qrqi4.mjs → runner-pg-mYc75KfH.mjs} +2 -3
- package/dist/runtime/ai.d.mts +0 -4
- package/dist/runtime/ai.mjs +6 -8
- package/dist/runtime/auth-client-react.d.mts +1 -1
- package/dist/runtime/auth-client-react.mjs +1 -1
- package/dist/runtime/auth-client-solid.d.mts +1 -1
- package/dist/runtime/auth-client-solid.mjs +1 -1
- package/dist/runtime/auth-client-svelte.d.mts +1 -1
- package/dist/runtime/auth-client-svelte.mjs +1 -1
- package/dist/runtime/auth-client-vue.d.mts +1 -1
- package/dist/runtime/auth-client-vue.mjs +1 -1
- package/dist/runtime/auth-client.d.mts +1 -1
- package/dist/runtime/auth-client.mjs +1 -1
- package/dist/runtime/auth.d.mts +2 -2
- package/dist/runtime/auth.mjs +1 -1
- package/dist/runtime/better-auth-mysql.d.mts +2 -4
- package/dist/runtime/better-auth-mysql.mjs +3 -4
- package/dist/runtime/better-auth-pg.d.mts +2 -4
- package/dist/runtime/better-auth-pg.mjs +4 -5
- package/dist/runtime/better-auth.d.mts +2 -4
- package/dist/runtime/better-auth.mjs +3 -4
- package/dist/runtime/client-react.d.mts +4 -4
- package/dist/runtime/client-react.mjs +4 -4
- package/dist/runtime/client-solid.d.mts +4 -4
- package/dist/runtime/client-solid.mjs +4 -4
- package/dist/runtime/client-svelte.d.mts +4 -4
- package/dist/runtime/client-svelte.mjs +4 -4
- package/dist/runtime/client-vue.d.mts +4 -4
- package/dist/runtime/client-vue.mjs +4 -4
- package/dist/runtime/client.d.mts +4 -4
- package/dist/runtime/client.mjs +4 -4
- package/dist/runtime/db.d.mts +0 -2
- package/dist/runtime/db.mjs +2 -3
- package/dist/runtime/durable.d.mts +0 -2
- package/dist/runtime/durable.mjs +3 -4
- package/dist/runtime/email/testing.d.mts +1 -5
- package/dist/runtime/email/testing.mjs +5 -6
- package/dist/runtime/email-protocol.d.mts +0 -2
- package/dist/runtime/email-protocol.mjs +1 -1
- package/dist/runtime/email.d.mts +1 -5
- package/dist/runtime/email.mjs +6 -7
- package/dist/runtime/env-public-client.d.mts +1 -3
- package/dist/runtime/env-public-client.mjs +2 -3
- package/dist/runtime/env-public.d.mts +2 -2
- package/dist/runtime/env-public.mjs +5 -7
- package/dist/runtime/env.d.mts +0 -4
- package/dist/runtime/env.mjs +1 -1
- package/dist/runtime/fetch-server.d.mts +1 -3
- package/dist/runtime/fetch-server.mjs +3 -4
- package/dist/runtime/fetch-stream.d.mts +2 -2
- package/dist/runtime/fetch-stream.mjs +2 -2
- package/dist/runtime/fetch.d.mts +1 -1
- package/dist/runtime/fetch.mjs +2 -2
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/handler.mjs +2 -2
- package/dist/runtime/isr.d.mts +1 -3
- package/dist/runtime/isr.mjs +2 -3
- package/dist/runtime/kv.d.mts +1 -3
- package/dist/runtime/kv.mjs +2 -3
- package/dist/runtime/limits.d.mts +1 -1
- package/dist/runtime/limits.mjs +1 -1
- package/dist/runtime/live-client.d.mts +1 -3
- package/dist/runtime/live-client.mjs +1 -2
- package/dist/runtime/live-server.d.mts +0 -2
- package/dist/runtime/live-server.mjs +3 -4
- package/dist/runtime/live.d.mts +1 -1
- package/dist/runtime/live.mjs +1 -1
- package/dist/runtime/log.d.mts +3 -3
- package/dist/runtime/log.mjs +26 -18
- package/dist/runtime/migration-handler-mysql.d.mts +2 -4
- package/dist/runtime/migration-handler-mysql.mjs +2 -3
- package/dist/runtime/migration-handler-pg.d.mts +2 -4
- package/dist/runtime/migration-handler-pg.mjs +2 -3
- package/dist/runtime/migration-handler.d.mts +1 -1
- package/dist/runtime/migration-handler.mjs +1 -1
- package/dist/runtime/queues.d.mts +1 -1
- package/dist/runtime/queues.mjs +2 -3
- package/dist/runtime/remote/binding-handler.d.mts +1 -3
- package/dist/runtime/remote/binding-handler.mjs +3 -4
- package/dist/runtime/remote/index.d.mts +1 -3
- package/dist/runtime/remote/index.mjs +8 -13
- package/dist/runtime/response.d.mts +1 -3
- package/dist/runtime/response.mjs +1 -1
- package/dist/runtime/route-url.d.mts +2 -2
- package/dist/runtime/route-url.mjs +1 -1
- package/dist/runtime/routing.d.mts +10 -12
- package/dist/runtime/routing.mjs +27 -88
- package/dist/runtime/sandbox-container.d.mts +1 -1
- package/dist/runtime/sandbox-container.mjs +1 -1
- package/dist/runtime/sandbox.d.mts +2 -2
- package/dist/runtime/sandbox.mjs +5 -6
- package/dist/runtime/seed.d.mts +0 -2
- package/dist/runtime/seed.mjs +1 -2
- package/dist/runtime/sse-client.d.mts +1 -3
- package/dist/runtime/sse-client.mjs +1 -2
- package/dist/runtime/sse.d.mts +1 -3
- package/dist/runtime/sse.mjs +1 -1
- package/dist/runtime/storage.d.mts +1 -3
- package/dist/runtime/storage.mjs +2 -3
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/validator.mjs +1 -1
- package/dist/runtime/ws-server.d.mts +3 -5
- package/dist/runtime/ws-server.mjs +3 -4
- package/dist/runtime/ws.d.mts +1 -1
- package/dist/runtime/ws.mjs +7 -6
- package/dist/{sandbox-q3waMc2T.d.mts → sandbox-DE1WsxuB.d.mts} +2 -4
- package/dist/{sandbox-container-a9LRUtii.mjs → sandbox-container-BuxhwCgt.mjs} +1 -2
- package/dist/{sandbox-container-ChQRum-j.d.mts → sandbox-container-CZFZdMso.d.mts} +0 -2
- package/dist/{scan-N9WzdcAl.mjs → scan-DSQtH3oS.mjs} +31 -25
- package/dist/{secret-BL6g7mF5.mjs → secret-C_QtTzJG.mjs} +23 -24
- package/dist/{serialize-YHvlcG3Q.mjs → serialize-DUuYuaY3.mjs} +2 -4
- package/dist/{serialize-DtR8Vwa_.d.mts → serialize-I4EmS-Wf.d.mts} +0 -2
- package/dist/{skills-CrUO3PJ0.mjs → skills-D393E4lB.mjs} +4 -5
- package/dist/{sqlite-validation-BzKMWnO4.mjs → sqlite-validation-CLJXXN93.mjs} +1 -2
- package/dist/{sse-CMvCgjNk.mjs → sse-CxR30yMF.mjs} +1 -2
- package/dist/{standard-schema-Fo_vCAZh.d.mts → standard-schema-CuDawHOC.d.mts} +0 -2
- package/dist/{static-asset-marker-Btf-6oCD.mjs → static-asset-marker-NR1XS2z5.mjs} +1 -2
- package/dist/{subcommand-prompt-D9OhhbGG.mjs → subcommand-prompt-CxJXporl.mjs} +3 -4
- package/dist/sveltekit.d.mts +0 -2
- package/dist/sveltekit.mjs +2 -3
- package/dist/{terminal-log-text-D9ACPOuG.mjs → terminal-log-text-DNsWJREL.mjs} +1 -2
- package/dist/{types-w72dljaA.d.mts → types-agfx0alu.d.mts} +0 -4
- package/dist/validate-DY1U9rET.mjs +1 -0
- package/dist/{validate-CnZPMq4q.mjs → validate-Ddzl-IwT.mjs} +4 -5
- package/dist/{validation-error-Dg9Recn1.mjs → validation-error-rDVbUJet.mjs} +2 -4
- package/dist/{validator-BTOu0fB0.mjs → validator-CTfmzZYb.mjs} +2 -5
- package/dist/{version-metadata-DmaZNTYW.mjs → version-metadata-Blf5H9BQ.mjs} +5 -6
- package/dist/{worker-conditions-AWFRcFxR.mjs → worker-conditions-CBZ0RYsZ.mjs} +1 -2
- package/dist/wrangler-CPRX2d9A.mjs +1 -0
- package/dist/{wrangler-CDiEBCdS.mjs → wrangler-p-kLCJqF.mjs} +81 -15
- package/dist/{wrapper-CEiDeCqD.mjs → wrapper-iejSJDwL.mjs} +18 -15
- package/dist/{ws-D1zWiB_P.d.mts → ws-DzBD-NUj.d.mts} +4 -5
- package/dist/{yarn-pnp-DLbEFMT0.mjs → yarn-pnp-DgWbE7z5.mjs} +2 -3
- package/docs/guide/auth.md +1 -1
- package/docs/guide/database.md +4 -4
- package/docs/guide/deployment.md +1 -1
- package/docs/guide/edge/headers.md +2 -6
- package/docs/guide/edge/redirects.md +22 -0
- package/docs/guide/edge/static-assets.md +0 -10
- package/docs/guide/email/domains.md +3 -1
- package/docs/guide/email/receiving.md +3 -3
- package/docs/guide/email/sending.md +1 -1
- package/docs/guide/pages-routing/actions-and-forms.md +26 -5
- package/docs/guide/pages-routing/islands.md +2 -2
- package/docs/guide/pages-routing/loaders.md +3 -3
- package/docs/guide/pages-routing/markdown.md +6 -6
- package/docs/guide/pages-routing/overview.md +34 -27
- package/docs/guide/platform/administration/email.md +6 -8
- package/docs/guide/platform/installation/credentials.md +6 -6
- package/docs/guide/platform/installation/maintenance.md +10 -24
- package/docs/guide/platform/installation/prerequisites.md +1 -1
- package/docs/guide/platform/installation/setup.md +1 -1
- package/docs/guide/platform/installation/uninstall.md +1 -1
- package/docs/guide/queues.md +4 -8
- package/docs/guide/self-hosted-platform.md +3 -3
- package/docs/guide/server-routing.md +8 -6
- package/docs/guide/ssg.md +8 -0
- package/docs/guide/type-safety.md +42 -0
- package/docs/guide/typed-fetch.md +1 -1
- package/docs/guide/websockets.md +1 -1
- package/docs/integrations/cloudflare.md +17 -8
- package/docs/integrations/frameworks/analog.md +1 -1
- package/docs/integrations/frameworks/nuxt.md +1 -1
- package/docs/integrations/frameworks/sveltekit.md +1 -1
- package/docs/integrations/frameworks/tanstack-start.md +1 -1
- package/docs/integrations/hono.md +5 -5
- package/docs/reference/api/auth.md +6 -2
- package/docs/reference/api/deploy.md +15 -11
- package/docs/reference/api/pages.md +10 -0
- package/docs/reference/api/plugin.md +4 -4
- package/docs/reference/api/resources.md +4 -1
- package/docs/reference/api/rewrites.md +20 -2
- package/docs/reference/api/types.md +41 -0
- package/docs/reference/api.md +2 -2
- package/docs/reference/cli/database.md +15 -9
- package/docs/reference/cli/deploy.md +10 -9
- package/docs/reference/cli/email.md +4 -2
- package/docs/reference/cli/platform-installation.md +2 -2
- package/docs/reference/cli/project.md +2 -2
- package/docs/reference/cli/secrets.md +3 -1
- package/docs/reference/cli/setup.md +3 -3
- package/docs/reference/cli.md +1 -1
- package/docs/reference/config.md +12 -2
- package/package.json +35 -31
- package/sandbox.Dockerfile +1 -1
- package/schema.json +4 -0
- package/skills/void/SKILL.md +1 -1
- package/dist/auth-DkcFflXV.d.mts +0 -42
- package/dist/cf-build-output-DlBkWdNU.mjs +0 -1
- package/dist/client-DyxPQnF_.mjs +0 -1
- package/dist/collect-BWhkgtAn.mjs +0 -1
- package/dist/config-BTu1o3Dc.mjs +0 -49
- package/dist/deploy-CtHE2A3R.mjs +0 -2
- package/dist/discover-D4TPKo57.mjs +0 -1
- package/dist/gen-TgXy93Rr.mjs +0 -1
- package/dist/help-qOZr3wng.mjs +0 -1
- package/dist/login-Cdo8Aco1.mjs +0 -1
- package/dist/migrate-COPncCGx.mjs +0 -1
- package/dist/operator-cmd-DDiX7Y3f.mjs +0 -1
- package/dist/output-BW9uK099.mjs +0 -1
- package/dist/plan-CKX_jWnD.mjs +0 -1
- package/dist/platform-args-BC8_hsDj.mjs +0 -1
- package/dist/prepare-B3VrSF1Z.mjs +0 -1
- package/dist/project-slug-6cyz8E7k.mjs +0 -1
- package/dist/resolve-project-DD1vu8s9.mjs +0 -1
- package/dist/route-url-BgPja1GS.d.mts +0 -5
- package/dist/route-url-BjGv_KKY.mjs +0 -28
- package/dist/validate-D7Wn8PUX.mjs +0 -1
- package/dist/wrangler-DOPr4jyI.mjs +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { a as join, c as resolve, n as dirname } from "./dist-
|
|
2
|
-
import { i as voidWarn } from "./log-
|
|
3
|
-
import { n as readGeneratedWranglerConfigFile } from "./generated-wrangler-config-
|
|
4
|
-
import { n as scanWranglerDotenvKeys } from "./dotenv-
|
|
5
|
-
import { a as findReservedEnvKeys, c as reservedEnvKeysMessage, i as findLegacyEnvFiles, o as isClientEnvKey, r as LOCAL_ENV_FILE, s as loadLocalEnv } from "./env-
|
|
6
|
-
import { t as findEnvFile } from "./env-types-
|
|
7
|
-
import { t as loadUserEnvFile } from "./load-user-env-
|
|
8
|
-
import { l as resolveCloudflareOperationArgv, n as decodeCloudflareOperationResult, r as encodeCloudflareOperation } from "./cloudflare-process-
|
|
1
|
+
import { a as join, c as resolve, n as dirname } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
+
import { i as voidWarn } from "./log-D9hwSySP.mjs";
|
|
3
|
+
import { n as readGeneratedWranglerConfigFile } from "./generated-wrangler-config-CoDaaFsA.mjs";
|
|
4
|
+
import { n as scanWranglerDotenvKeys } from "./dotenv-CEI8hapP.mjs";
|
|
5
|
+
import { a as findReservedEnvKeys, c as reservedEnvKeysMessage, i as findLegacyEnvFiles, o as isClientEnvKey, r as LOCAL_ENV_FILE, s as loadLocalEnv } from "./env-CuzZZyjB.mjs";
|
|
6
|
+
import { t as findEnvFile } from "./env-types-DqzVBKnS.mjs";
|
|
7
|
+
import { t as loadUserEnvFile } from "./load-user-env-CSwdofj0.mjs";
|
|
8
|
+
import { l as resolveCloudflareOperationArgv, n as decodeCloudflareOperationResult, r as encodeCloudflareOperation } from "./cloudflare-process-DjJ638A-.mjs";
|
|
9
9
|
import { existsSync, readFileSync } from "node:fs";
|
|
10
10
|
import { spawn } from "node:child_process";
|
|
11
11
|
import { parseRootWranglerConfig, readWranglerTopLevelString } from "@void/deploy-cloudflare";
|
|
12
|
-
|
|
12
|
+
// src/cli/env-validation.ts
|
|
13
13
|
/** Env-schema validation for `void env check`, `void secret`, and both deploy paths. */
|
|
14
14
|
/**
|
|
15
15
|
* Validate plaintext while it is still available to `void secret put/sync`.
|
|
@@ -476,6 +476,7 @@ function secretListEnv(accountId, platform) {
|
|
|
476
476
|
scrub("CF_ACCESS_CLIENT_SECRET");
|
|
477
477
|
scrub("VOID_ACCESS_CREDENTIALS");
|
|
478
478
|
scrub("VOID_ACCESS_ORIGIN");
|
|
479
|
+
scrub("CF_ACCESS_READINESS_ORIGIN");
|
|
479
480
|
scrub("WRANGLER_LOG_SANITIZE");
|
|
480
481
|
env.WRANGLER_LOG_SANITIZE = "true";
|
|
481
482
|
if (accountId) {
|
|
@@ -484,5 +485,4 @@ function secretListEnv(accountId, platform) {
|
|
|
484
485
|
}
|
|
485
486
|
return env;
|
|
486
487
|
}
|
|
487
|
-
//#endregion
|
|
488
488
|
export { validateSecretValues as _, computeInvalidEmittedKeys as a, deriveSelfHostSchemaFacts as c, formatEnvReport as d, listSelfHostSecretNames as f, validateProdEnv as g, selfHostSchemaFailureMessage as h, SelfHostSecretListError as i, dischargeSelfHostEnvContext as l, secretListEnv as m, SelfHostFirstDeployError as n, createDefaultSecretListRunner as o, readEmittedWorkerVars as p, SelfHostSchemaError as r, deriveSelfHostEnvContextFromVars as s, SelfHostEnvValidationError as t, fetchRemoteSecretNames as u };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// src/runtime/error-pages/404.html?raw
|
|
2
|
+
var _404_default = "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <title>404: Not Found</title>\n <!-- inject:css -->\n <!--\n Do not add code here. At runtime, the file referenced by the tag below is\n inlined, replacing this entire block (including this comment).\n The tag is kept so you can preview this HTML file by opening it directly in a browser.\n -->\n <link rel=\"stylesheet\" href=\"./style.css\" />\n <!-- endinject -->\n <!-- inject:js -->\n <!--\n Do not add code here. At runtime, the file referenced by the tag below is\n inlined, replacing this entire block (including this comment).\n The tag is kept so you can preview this HTML file by opening it directly in a browser.\n -->\n <script src=\"./script.js\"><\/script>\n <!-- endinject -->\n </head>\n <body>\n <div class=\"error-page\">\n <div class=\"grid-cell\" aria-hidden=\"true\"></div>\n <div class=\"grid-cell\" aria-hidden=\"true\"></div>\n <div class=\"grid-cell\" aria-hidden=\"true\"></div>\n <div class=\"grid-cell\" aria-hidden=\"true\"></div>\n <main class=\"error-content\">\n <span class=\"grid-tick top left\" aria-hidden=\"true\"></span>\n <span class=\"grid-tick top right\" aria-hidden=\"true\"></span>\n <span class=\"grid-tick bottom left\" aria-hidden=\"true\"></span>\n <span class=\"grid-tick bottom right\" aria-hidden=\"true\"></span>\n <h1>\n <span class=\"error-code\">404</span><span class=\"error-title\">Lost in the void</span>\n </h1>\n <p class=\"error-description\">This page doesn't exist</p>\n <button class=\"error-action\" type=\"button\" id=\"void-error-back\" hidden>\n <span class=\"error-arrow\" aria-hidden=\"true\">←</span>Go back\n </button>\n </main>\n <div class=\"grid-cell\" aria-hidden=\"true\"></div>\n <div class=\"grid-cell\" aria-hidden=\"true\"></div>\n <div class=\"grid-cell\" aria-hidden=\"true\"></div>\n <div class=\"grid-cell\" aria-hidden=\"true\"></div>\n <canvas class=\"error-texture\" aria-hidden=\"true\"></canvas>\n </div>\n </body>\n</html>\n";
|
|
3
|
+
// src/runtime/error-pages/500.html?raw
|
|
4
|
+
var _500_default = "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <title>500: Internal Server Error</title>\n <!-- inject:css -->\n <!--\n Do not add code here. At runtime, the file referenced by the tag below is\n inlined, replacing this entire block (including this comment).\n The tag is kept so you can preview this HTML file by opening it directly in a browser.\n -->\n <link rel=\"stylesheet\" href=\"./style.css\" />\n <!-- endinject -->\n <!-- inject:js -->\n <!--\n Do not add code here. At runtime, the file referenced by the tag below is\n inlined, replacing this entire block (including this comment).\n The tag is kept so you can preview this HTML file by opening it directly in a browser.\n -->\n <script src=\"./script.js\"><\/script>\n <!-- endinject -->\n </head>\n <body>\n <div class=\"error-page\">\n <div class=\"grid-cell\" aria-hidden=\"true\"></div>\n <div class=\"grid-cell\" aria-hidden=\"true\"></div>\n <div class=\"grid-cell\" aria-hidden=\"true\"></div>\n <div class=\"grid-cell\" aria-hidden=\"true\"></div>\n <main class=\"error-content\">\n <span class=\"grid-tick top left\" aria-hidden=\"true\"></span>\n <span class=\"grid-tick top right\" aria-hidden=\"true\"></span>\n <span class=\"grid-tick bottom left\" aria-hidden=\"true\"></span>\n <span class=\"grid-tick bottom right\" aria-hidden=\"true\"></span>\n <h1>\n <span class=\"error-code\">500</span><span class=\"error-title\">Something went wrong</span>\n </h1>\n <p class=\"error-description\">Please try again in a moment</p>\n <a class=\"error-action\" href=\"\"\n ><span class=\"error-arrow\" aria-hidden=\"true\">↻</span>Reload page</a\n >\n </main>\n <div class=\"grid-cell\" aria-hidden=\"true\"></div>\n <div class=\"grid-cell\" aria-hidden=\"true\"></div>\n <div class=\"grid-cell\" aria-hidden=\"true\"></div>\n <div class=\"grid-cell\" aria-hidden=\"true\"></div>\n <canvas class=\"error-texture\" aria-hidden=\"true\"></canvas>\n </div>\n </body>\n</html>\n";
|
|
5
|
+
// src/runtime/error-pages/inline.ts
|
|
6
|
+
const closing = "<!-- endinject -->";
|
|
7
|
+
function replaceAssetBlock(html, name, content) {
|
|
8
|
+
const opening = `<!-- inject:${name} -->`;
|
|
9
|
+
const start = html.indexOf(opening);
|
|
10
|
+
const end = html.indexOf(closing, start + opening.length);
|
|
11
|
+
if (start === -1 || end === -1 || html.lastIndexOf(opening) !== start) throw new Error(`Expected one complete ${name} block in the default error page.`);
|
|
12
|
+
return html.slice(0, start) + content + html.slice(end + 18);
|
|
13
|
+
}
|
|
14
|
+
function inlineErrorPageAssets(html, stylesheet, script) {
|
|
15
|
+
if (html.split(closing).length !== 3) throw new Error("Expected two endinject markers in the default error page.");
|
|
16
|
+
for (const [name, content] of [["css", `<style>\n${stylesheet}</style>`], ["js", `<script>\n${script}<\/script>`]]) html = replaceAssetBlock(html, name, content);
|
|
17
|
+
return html;
|
|
18
|
+
}
|
|
19
|
+
// src/runtime/error-pages/script.js?raw
|
|
20
|
+
var script_default = "(() => {\n const designs = ['signal', 'grid', 'fold'];\n document.documentElement.dataset.design = designs[Math.floor(Math.random() * designs.length)];\n\n function setup() {\n const back = document.getElementById('void-error-back');\n const canGoBack = window.navigation ? window.navigation.canGoBack : window.history.length > 1;\n if (back && canGoBack) {\n back.hidden = false;\n back.addEventListener('click', () => window.history.back());\n }\n\n if (document.documentElement.dataset.design !== 'signal') {\n return;\n }\n const canvas = document.querySelector('.error-texture');\n const ctx = canvas.getContext('2d');\n if (!ctx) {\n return;\n }\n\n function draw() {\n const { width, height } = canvas.getBoundingClientRect();\n const ratio = Math.min(window.devicePixelRatio || 1, 2);\n canvas.width = Math.round(width * ratio);\n canvas.height = Math.round(height * ratio);\n ctx.setTransform(ratio, 0, 0, ratio, 0, 0);\n const colors = getComputedStyle(canvas);\n const chars = ['·', '/', '0', '1', '+', '[', ']', '—'];\n ctx.font = '8px ui-monospace, monospace';\n ctx.textAlign = 'center';\n ctx.textBaseline = 'middle';\n ctx.fillStyle = colors.color;\n\n for (let y = 8, row = 0; y < height; y += 12, row++) {\n for (let x = 8, col = 0; x < width; x += 9, col++) {\n const distance = Math.hypot(\n (x - width / 2) / (width * 0.47),\n (y - height * 0.48) / (height * 0.55),\n );\n const seed = (Math.imul(row + 11, 61) ^ Math.imul(col + 7, 137)) >>> 0;\n const core = Math.max(0, Math.min(1, (distance - 0.28) / 0.55));\n const opacity = core * (0.15 + (seed % 7) * 0.025) * 0.75;\n if (seed % 17 === 0 || opacity < 0.015) {\n continue;\n }\n ctx.globalAlpha = opacity;\n ctx.fillText(chars[(seed >>> 3) % chars.length], x, y);\n }\n }\n\n ctx.globalAlpha = 1;\n ctx.strokeStyle = colors.borderTopColor;\n for (const [x, y] of [\n [28, 28],\n [width - 28, 28],\n [28, height - 28],\n [width - 28, height - 28],\n ]) {\n ctx.beginPath();\n ctx.moveTo(x - 4, y);\n ctx.lineTo(x + 4, y);\n ctx.moveTo(x, y - 4);\n ctx.lineTo(x, y + 4);\n ctx.stroke();\n }\n }\n\n new ResizeObserver(draw).observe(canvas);\n window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', draw);\n draw();\n }\n\n if (document.readyState === 'loading') {\n document.addEventListener('DOMContentLoaded', setup, { once: true });\n } else {\n setup();\n }\n})();\n";
|
|
21
|
+
// src/runtime/error-pages/style.css?raw
|
|
22
|
+
var style_default = ":root {\n color-scheme: light dark;\n --background: light-dark(#fff, #16171d);\n --foreground: light-dark(#16171d, #f6f5f8);\n --muted: light-dark(#6e6874, #a8a2ae);\n --line: light-dark(#e5e4e7, #36323c);\n --ink: light-dark(#4e4856, #c3bdcd);\n --corner: light-dark(#e5e4e7, #3b3440);\n background: var(--background);\n color: var(--foreground);\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n -webkit-font-smoothing: antialiased;\n}\n\n* {\n box-sizing: border-box;\n}\n\nbody {\n margin: 0;\n}\n\n.error-page {\n position: relative;\n isolation: isolate;\n display: flex;\n align-items: center;\n justify-content: center;\n min-block-size: 100svh;\n overflow: hidden;\n}\n\n.error-content {\n min-inline-size: 0;\n padding: 32px 24px;\n text-align: center;\n}\n\n.error-content h1 {\n display: flex;\n flex-direction: column;\n gap: 18px;\n margin: 0;\n font-weight: 500;\n}\n\n.error-code {\n font-size: 64px;\n line-height: 1;\n letter-spacing: -0.045em;\n}\n\n.error-title {\n font-size: 15px;\n line-height: 1.4;\n letter-spacing: -0.02em;\n text-wrap: balance;\n}\n\n.error-description {\n margin: 6px 0 0;\n color: var(--muted);\n font-size: 12px;\n line-height: 1.5;\n letter-spacing: -0.01em;\n}\n\n.error-action {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 7px;\n min-block-size: 32px;\n margin-block-start: 20px;\n padding: 6px 12px;\n border: 1px solid var(--line);\n border-radius: 6px;\n background: var(--background);\n color: var(--foreground);\n font:\n 500 12px/18px system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n sans-serif;\n letter-spacing: -0.01em;\n text-decoration: none;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.error-action::after {\n position: absolute;\n inset: -6px -3px;\n content: '';\n}\n\n.error-action:hover {\n border-color: var(--foreground);\n background: var(--foreground);\n color: var(--background);\n}\n\n.error-action:focus-visible {\n outline: 2px solid var(--foreground);\n outline-offset: 4px;\n}\n\n.error-action[hidden] {\n visibility: hidden;\n}\n\n.error-arrow {\n font-size: 15px;\n line-height: 14px;\n}\n\n.error-texture {\n position: absolute;\n z-index: -1;\n inset: 0;\n display: block;\n inline-size: 100%;\n block-size: 100%;\n border-color: var(--line);\n color: var(--ink);\n}\n\n.grid-cell,\n.grid-tick {\n display: none;\n}\n\n.grid-tick {\n position: absolute;\n z-index: 1;\n inline-size: 0;\n block-size: 0;\n border: 5px solid transparent;\n pointer-events: none;\n}\n\n:root[data-design='grid'] .error-page {\n display: grid;\n grid-template-columns: minmax(24px, 1fr) minmax(0, 456px) minmax(24px, 1fr);\n grid-template-rows: minmax(24px, 1fr) minmax(272px, auto) minmax(24px, 1fr);\n align-items: stretch;\n}\n\n:root[data-design='grid'] .grid-cell,\n:root[data-design='grid'] .error-content {\n min-inline-size: 0;\n border-inline-end: 1px solid var(--line);\n border-block-end: 1px solid var(--line);\n}\n\n:root[data-design='grid'] .grid-cell {\n display: block;\n}\n\n:root[data-design='grid'] .grid-cell:nth-child(3n) {\n border-inline-end: 0;\n}\n\n:root[data-design='grid'] .grid-cell:nth-child(n + 7) {\n border-block-end: 0;\n}\n\n:root[data-design='grid'] .error-content {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 32px;\n}\n\n:root[data-design='grid'] .grid-tick {\n display: block;\n}\n\n.grid-tick.left {\n left: -1px;\n border-left-color: var(--corner);\n}\n\n.grid-tick.right {\n right: 0;\n border-right-color: var(--corner);\n}\n\n.grid-tick.top {\n top: -5px;\n}\n\n.grid-tick.bottom {\n bottom: -5px;\n}\n\n:root[data-design='grid'] .error-texture,\n:root[data-design='fold'] .error-texture {\n display: none;\n}\n\n:root[data-design='fold'] .error-page {\n padding: 40px 42px;\n}\n\n:root[data-design='fold'] .error-content {\n flex: 0 1 560px;\n margin-inline-end: auto;\n padding: 0;\n text-align: start;\n}\n\n:root[data-design='fold'] h1 {\n flex-direction: row;\n align-items: baseline;\n gap: 14px;\n}\n\n:root[data-design='fold'] .error-code,\n:root[data-design='fold'] .error-title {\n font-size: 26px;\n line-height: 1.2;\n letter-spacing: -0.025em;\n}\n\n:root[data-design='fold'] .error-code {\n flex: none;\n color: var(--muted);\n font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;\n font-weight: 400;\n letter-spacing: -0.045em;\n}\n\n:root[data-design='fold'] .error-description {\n margin-block-start: 12px;\n font-size: 14px;\n line-height: 1.6;\n text-wrap: pretty;\n}\n\n:root[data-design='fold'] .error-action {\n margin-block-start: 24px;\n}\n\n@supports (corner-shape: squircle) {\n .error-action {\n border-radius: 12px;\n corner-shape: squircle;\n }\n}\n\n@media (pointer: coarse) {\n .error-action {\n min-block-size: 40px;\n }\n}\n\n@media (max-width: 620px) {\n :root[data-design='fold'] .error-page {\n padding: 36px 30px;\n }\n\n :root[data-design='fold'] .error-code,\n :root[data-design='fold'] .error-title {\n font-size: 24px;\n }\n}\n\n@media (max-width: 440px) {\n .error-code {\n font-size: 56px;\n }\n\n :root[data-design='grid'] .error-page {\n grid-template-columns: 24px minmax(0, 1fr) 24px;\n }\n\n :root[data-design='grid'] .error-content {\n padding: 24px;\n }\n\n :root[data-design='fold'] .error-code {\n display: none;\n }\n\n :root[data-design='fold'] .error-action {\n margin-block-start: 20px;\n }\n}\n";
|
|
23
|
+
// src/runtime/error-pages/index.ts
|
|
24
|
+
const pages = {
|
|
25
|
+
404: inlineErrorPageAssets(_404_default, style_default, script_default),
|
|
26
|
+
500: inlineErrorPageAssets(_500_default, style_default, script_default)
|
|
27
|
+
};
|
|
28
|
+
function renderDefaultErrorPage(status) {
|
|
29
|
+
return pages[status];
|
|
30
|
+
}
|
|
31
|
+
export { renderDefaultErrorPage as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RouteMap } from "void/routes";
|
|
2
|
-
//#region src/runtime/fetch-error.d.ts
|
|
3
2
|
type FetchResponse<T = unknown> = Response & {
|
|
4
3
|
_data?: T;
|
|
5
4
|
};
|
|
@@ -17,8 +16,6 @@ type FetchErrorConstructor = new <T = unknown>(message: string, opts?: {
|
|
|
17
16
|
cause: unknown;
|
|
18
17
|
}) => FetchError<T>;
|
|
19
18
|
declare const FetchError: FetchErrorConstructor;
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region src/runtime/fetch.d.ts
|
|
22
19
|
type MethodsOf<P extends keyof RouteMap> = keyof RouteMap[P] & string;
|
|
23
20
|
type DefaultMethod<P extends keyof RouteMap> = "GET" extends MethodsOf<P> ? "GET" : never;
|
|
24
21
|
type RouteEntry<P extends keyof RouteMap, M extends MethodsOf<P>> = RouteMap[P][M] extends {
|
|
@@ -85,5 +82,4 @@ declare function fetch<P extends keyof RouteMap & string>(path: HasRequiredInput
|
|
|
85
82
|
declare function fetch<P extends keyof RouteMap & string, M extends MethodsOf<P> = DefaultMethod<P>>(path: P, options: FetchOptions<P, M>): Promise<OutputOf<P, M>>;
|
|
86
83
|
/** Apply the same route interpolation and request options to browser and server transports. */
|
|
87
84
|
declare function createRouteFetch(transport: typeof globalThis.fetch): (path: string, options?: UntypedFetchOptions) => Promise<unknown>;
|
|
88
|
-
//#endregion
|
|
89
85
|
export { UntypedFetchOptions as a, FetchError as c, QueryOption as i, MethodsOf as n, createRouteFetch as o, ParamsOption as r, fetch as s, BodyOption as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { t as interpolateRouteParams } from "./route-url-CRDF-I0I.mjs";
|
|
2
|
+
import { n as createFetch } from "./fetch-error-DmlRM6e4.mjs";
|
|
3
|
+
// src/runtime/fetch.ts
|
|
4
4
|
const browserFetch = createRouteFetch((...args) => globalThis.fetch(...args));
|
|
5
5
|
async function fetch(path, options) {
|
|
6
6
|
return browserFetch(path, options);
|
|
@@ -22,5 +22,4 @@ function createRouteFetch(transport) {
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
//#endregion
|
|
26
25
|
export { fetch as n, createRouteFetch as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/ofetch@2.0.0-alpha.3/node_modules/ofetch/dist/index.mjs
|
|
2
2
|
/**
|
|
3
3
|
* Joins the given base URL and path, ensuring that there is only one slash between them.
|
|
4
4
|
*/
|
|
@@ -259,8 +259,6 @@ function createFetch(globalOptions = {}) {
|
|
|
259
259
|
return $fetch$1;
|
|
260
260
|
}
|
|
261
261
|
const ofetch = createFetch({ fetch: globalThis.fetch ? (...args) => globalThis.fetch(...args) : () => Promise.reject(/* @__PURE__ */ new Error("[ofetch] global.fetch is not supported!")) });
|
|
262
|
-
|
|
263
|
-
//#region src/runtime/fetch-error.ts
|
|
262
|
+
// src/runtime/fetch-error.ts
|
|
264
263
|
const FetchError = FetchError$1;
|
|
265
|
-
//#endregion
|
|
266
264
|
export { createFetch as n, ofetch as r, FetchError as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { n as asUsageLimit, r as limitFromResponse } from "./limits-
|
|
4
|
-
|
|
1
|
+
import { t as interpolateRouteParams } from "./route-url-CRDF-I0I.mjs";
|
|
2
|
+
import { r as ofetch, t as FetchError } from "./fetch-error-DmlRM6e4.mjs";
|
|
3
|
+
import { n as asUsageLimit, r as limitFromResponse } from "./limits-CrHLm5Tk.mjs";
|
|
4
|
+
// src/runtime/fetch-stream.ts
|
|
5
5
|
/**
|
|
6
6
|
* Consume an SSE endpoint as an async generator of text chunks.
|
|
7
7
|
*
|
|
@@ -99,5 +99,4 @@ function chunkText(data) {
|
|
|
99
99
|
} catch {}
|
|
100
100
|
return data;
|
|
101
101
|
}
|
|
102
|
-
//#endregion
|
|
103
102
|
export { fetchStream as t };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { i as QueryOption, n as MethodsOf, r as ParamsOption, t as BodyOption } from "./fetch-
|
|
1
|
+
import { i as QueryOption, n as MethodsOf, r as ParamsOption, t as BodyOption } from "./fetch-B-gLGYVl.mjs";
|
|
2
2
|
import { RouteMap } from "void/routes";
|
|
3
|
-
//#region src/runtime/fetch-stream.d.ts
|
|
4
3
|
type InputOf<P extends keyof RouteMap, M extends MethodsOf<P>> = RouteMap[P][M] extends {
|
|
5
4
|
input: infer I;
|
|
6
5
|
} ? I : {};
|
|
@@ -30,5 +29,4 @@ type StreamOptions<P extends keyof RouteMap, M extends MethodsOf<P>> = BodyOptio
|
|
|
30
29
|
* @yields {string} Text chunks from SSE data frames.
|
|
31
30
|
*/
|
|
32
31
|
declare function fetchStream<P extends keyof RouteMap & string, M extends MethodsOf<P> = "POST" extends MethodsOf<P> ? "POST" : MethodsOf<P>>(path: P, options?: StreamOptions<P, M>): AsyncGenerator<string, void, undefined>;
|
|
33
|
-
//#endregion
|
|
34
32
|
export { fetchStream as t };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as join, n as dirname, s as relative } from "./dist-
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
3
|
-
import { l as getDatabaseDialect, p as readConfig } from "./config-
|
|
4
|
-
import { n as readJournal, t as collectMigrations } from "./collect-
|
|
5
|
-
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-
|
|
6
|
-
import { t as assertJournalCoherence } from "./validate-
|
|
7
|
-
import { K as select, L as log, O as cancel, tt as isCancel } from "./dist-
|
|
8
|
-
import { m as printSuccess } from "./output-
|
|
9
|
-
import { n as drizzleKitBin, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-
|
|
10
|
-
import { n as snapshotDrizzleOutputs } from "./generate-
|
|
1
|
+
import { a as join, n as dirname, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-CdGv9Tmi.mjs";
|
|
3
|
+
import { l as getDatabaseDialect, p as readConfig } from "./config-DkA9jYF2.mjs";
|
|
4
|
+
import { n as readJournal, t as collectMigrations } from "./collect-C6Blu9yw.mjs";
|
|
5
|
+
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-Bt4rw93x.mjs";
|
|
6
|
+
import { t as assertJournalCoherence } from "./validate-Ddzl-IwT.mjs";
|
|
7
|
+
import { K as select, L as log, O as cancel, tt as isCancel } from "./dist-D23AAMxT.mjs";
|
|
8
|
+
import { m as printSuccess } from "./output-BCdLioKP.mjs";
|
|
9
|
+
import { n as drizzleKitBin, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-DgWbE7z5.mjs";
|
|
10
|
+
import { n as snapshotDrizzleOutputs } from "./generate-CWb8aOsm.mjs";
|
|
11
11
|
import { existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
|
|
12
12
|
import { spawnSync } from "node:child_process";
|
|
13
|
-
|
|
13
|
+
// src/cli/gen.ts
|
|
14
14
|
async function runGenCommand(root, args) {
|
|
15
15
|
console.log();
|
|
16
16
|
if (args.subcommand === "model") await runModel(root, args.name, args.columns);
|
|
@@ -329,7 +329,7 @@ async function runModel(root, name, columns) {
|
|
|
329
329
|
const existing = readFileSync(barrelPath, "utf-8");
|
|
330
330
|
if (!existing.includes(exportLine)) writeFileSync(barrelPath, existing.trimEnd() + "\n" + exportLine + "\n");
|
|
331
331
|
} else writeFileSync(barrelPath, exportLine + "\n");
|
|
332
|
-
const { prepareProject } = await import("./prepare-
|
|
332
|
+
const { prepareProject } = await import("./prepare-BJMmfq3W.mjs");
|
|
333
333
|
await prepareProject(root);
|
|
334
334
|
log.step(`Created ${relative(root, modelPath)}`);
|
|
335
335
|
log.step(`Updated ${relative(root, barrelPath)}`);
|
|
@@ -683,5 +683,4 @@ export default function App() {
|
|
|
683
683
|
}
|
|
684
684
|
`);
|
|
685
685
|
}
|
|
686
|
-
//#endregion
|
|
687
686
|
export { formatTimestamp as n, runGenCommand as r, detectValidator as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as runGenCommand } from "./gen-BvVmpZ5f.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as generateValidatedSqliteMigrations } from "./generate-
|
|
1
|
+
export { t as generateValidatedSqliteMigrations } from "./generate-CWb8aOsm.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as join, n as dirname } from "./dist-
|
|
2
|
-
import { t as collectMigrations } from "./collect-
|
|
3
|
-
import { n as openMigrationValidationDatabase } from "./sqlite-validation-
|
|
1
|
+
import { a as join, n as dirname } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
+
import { t as collectMigrations } from "./collect-C6Blu9yw.mjs";
|
|
3
|
+
import { n as openMigrationValidationDatabase } from "./sqlite-validation-CLJXXN93.mjs";
|
|
4
4
|
import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|
|
5
|
-
|
|
5
|
+
// src/drizzle/generate.ts
|
|
6
6
|
function snapshotFiles(root) {
|
|
7
7
|
const files = /* @__PURE__ */ new Map();
|
|
8
8
|
if (existsSync(root)) {
|
|
@@ -77,5 +77,4 @@ async function generateValidatedSqliteMigrations(migrationsDir, generate) {
|
|
|
77
77
|
throw new Error(`${cause instanceof Error ? cause.message : String(cause)}\nMigration generation failed; previous SQL, snapshots and journal were restored. Review the schema change before retrying. For additive changes, use an additive migration rather than rebuilding existing tables.`, { cause });
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
//#endregion
|
|
81
80
|
export { snapshotDrizzleOutputs as n, generateValidatedSqliteMigrations as t };
|
package/dist/{generated-wrangler-config-DeWj5F9Y.mjs → generated-wrangler-config-CoDaaFsA.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readFileSync } from "node:fs";
|
|
2
2
|
import { parse } from "jsonc-parser";
|
|
3
|
-
|
|
3
|
+
// src/cli/generated-wrangler-config.ts
|
|
4
4
|
/** Parse JSON/JSONC text with an optional BOM; undefined unless it is one valid object. */
|
|
5
5
|
function parseJsoncObject(text) {
|
|
6
6
|
const errors = [];
|
|
@@ -14,5 +14,4 @@ function readGeneratedWranglerConfigFile(path) {
|
|
|
14
14
|
if (!parsed) throw new Error("Invalid Wrangler JSON/JSONC config.");
|
|
15
15
|
return parsed;
|
|
16
16
|
}
|
|
17
|
-
//#endregion
|
|
18
17
|
export { readGeneratedWranglerConfigFile as n, parseJsoncObject as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { execFileSync } from "node:child_process";
|
|
2
|
-
|
|
2
|
+
// src/cli/git-metadata.ts
|
|
3
3
|
function git(root, args, env) {
|
|
4
4
|
try {
|
|
5
5
|
return execFileSync("git", args, {
|
|
@@ -79,5 +79,4 @@ function collectGitDeployMetadata(root, commit, env = process.env, childEnv = pr
|
|
|
79
79
|
repositoryUrl
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
//#endregion
|
|
83
82
|
export { collectGitDeployMetadata as t };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as readProjectConfig } from "./project-
|
|
2
|
-
import { c as getToken, n as createCodeChallenge, r as createCodeVerifier, t as awaitBrowserCallback, u as openBrowser } from "./auth-
|
|
3
|
-
import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./dist-
|
|
4
|
-
import { c as platformErrorMessage, n as PlatformApiError, r as PlatformClient, s as parsePlatformErrorBody } from "./client-
|
|
5
|
-
import { f as import_picocolors, l as formatUrl, m as printSuccess } from "./output-
|
|
6
|
-
import { a as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-
|
|
7
|
-
import { t as collectGitDeployMetadata } from "./git-metadata-
|
|
1
|
+
import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
2
|
+
import { c as getToken, n as createCodeChallenge, r as createCodeVerifier, t as awaitBrowserCallback, u as openBrowser } from "./auth-Dy8svcqQ.mjs";
|
|
3
|
+
import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./dist-D23AAMxT.mjs";
|
|
4
|
+
import { c as platformErrorMessage, n as PlatformApiError, r as PlatformClient, s as parsePlatformErrorBody } from "./client-Qayy9xEh.mjs";
|
|
5
|
+
import { f as import_picocolors, l as formatUrl, m as printSuccess } from "./output-BCdLioKP.mjs";
|
|
6
|
+
import { a as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-D0YNnJfm.mjs";
|
|
7
|
+
import { t as collectGitDeployMetadata } from "./git-metadata-Cukp5kV5.mjs";
|
|
8
8
|
import { randomBytes } from "node:crypto";
|
|
9
|
-
|
|
9
|
+
// src/cli/github-cmd.ts
|
|
10
10
|
/**
|
|
11
11
|
* The workflow file `void init --github` scaffolds and the platform default for
|
|
12
12
|
* a connection's OIDC deploy pin. Kept in sync with the server default
|
|
@@ -687,5 +687,4 @@ async function runGithubDisconnect(root, client, args) {
|
|
|
687
687
|
}
|
|
688
688
|
printSuccess(`Disconnected ${connection.repo_full_name}.`);
|
|
689
689
|
}
|
|
690
|
-
//#endregion
|
|
691
690
|
export { runGithubCommand };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { l as VoidPlatformSandbox } from "./sandbox-
|
|
2
|
-
import { t as StandardSchemaV1 } from "./standard-schema-
|
|
3
|
-
import { n as HeadDescriptor } from "./head-
|
|
4
|
-
import { r as AuthUser, t as AuthSession } from "./auth-
|
|
5
|
-
import { t as DevCssAsset } from "./types-
|
|
6
|
-
import { Context, Env, ExecutionContext as ExecutionContext$1, MiddlewareHandler } from "hono";
|
|
7
|
-
import { RewriteDestination } from "void/routes";
|
|
8
|
-
//#region src/runtime/routing-assets.d.ts
|
|
1
|
+
import { l as VoidPlatformSandbox } from "./sandbox-DE1WsxuB.mjs";
|
|
2
|
+
import { t as StandardSchemaV1 } from "./standard-schema-CuDawHOC.mjs";
|
|
3
|
+
import { n as HeadDescriptor } from "./head-MeF_5M_3.mjs";
|
|
4
|
+
import { r as AuthUser, t as AuthSession } from "./auth-CH4PLAX1.mjs";
|
|
5
|
+
import { t as DevCssAsset } from "./types-agfx0alu.mjs";
|
|
6
|
+
import { Context, Env, ExecutionContext as ExecutionContext$1, MiddlewareHandler, Next } from "hono";
|
|
7
|
+
import { RewriteDestination, RouteDestination } from "void/routes";
|
|
9
8
|
type ClientAssetTags = {
|
|
10
9
|
css: string;
|
|
11
10
|
preloads: string;
|
|
@@ -39,8 +38,6 @@ type ClientAssetOptions = {
|
|
|
39
38
|
};
|
|
40
39
|
/** Frameworks supply only client entry IDs and active layout/page roots. */
|
|
41
40
|
declare function createClientAssetTags(options: ClientAssetOptions, loadManifest?: ManifestLoader): (request: Request, env: RuntimeEnvironment, componentId?: string) => Promise<ClientAssetTags>;
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/runtime/routing-worker.d.ts
|
|
44
41
|
type AssetBinding = {
|
|
45
42
|
fetch: (request: Request) => Promise<Response>;
|
|
46
43
|
};
|
|
@@ -64,6 +61,8 @@ type WorkerFetchOptions = {
|
|
|
64
61
|
withRuntimeEnv: (env: RuntimeEnvironment, fn: () => Promise<Response>) => Promise<Response>;
|
|
65
62
|
filterBindings: (env: RuntimeEnvironment) => RuntimeEnvironment;
|
|
66
63
|
validateEnv?: (env: RuntimeEnvironment) => Promise<void>;
|
|
64
|
+
/** Native Cloudflare production builds redirect public HTTP requests to HTTPS. */
|
|
65
|
+
alwaysUseHttps?: boolean;
|
|
67
66
|
/** Authored/generated version metadata binding used to prove the served native version. */
|
|
68
67
|
versionMetadataBinding?: string;
|
|
69
68
|
remoteEnv?: (env: RuntimeEnvironment) => RuntimeEnvironment;
|
|
@@ -76,8 +75,6 @@ type WorkerFetchOptions = {
|
|
|
76
75
|
};
|
|
77
76
|
};
|
|
78
77
|
declare function createWorkerFetch(options: WorkerFetchOptions): (request: Request, env: RuntimeEnvironment, ctx: ExecutionContext$1) => Promise<Response>;
|
|
79
|
-
//#endregion
|
|
80
|
-
//#region src/runtime/validator.d.ts
|
|
81
78
|
type ValidatorSlots = {
|
|
82
79
|
body?: StandardSchemaV1;
|
|
83
80
|
query?: StandardSchemaV1;
|
|
@@ -93,14 +90,10 @@ type ValidationFailure = {
|
|
|
93
90
|
};
|
|
94
91
|
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; };
|
|
95
92
|
declare function runValidation<V extends ValidatorSlots>(validators: V, c: CloudContext): Promise<ValidationSuccess<V> | ValidationFailure>;
|
|
96
|
-
//#endregion
|
|
97
|
-
//#region src/pages/validation-error.d.ts
|
|
98
93
|
declare class ValidationError extends Error {
|
|
99
94
|
readonly errors: Record<string, string>;
|
|
100
95
|
constructor(errors: Record<string, string>);
|
|
101
96
|
}
|
|
102
|
-
//#endregion
|
|
103
|
-
//#region src/pages/defer.d.ts
|
|
104
97
|
/** Reactive wrapper for a deferred prop on non-React clients. */
|
|
105
98
|
type DeferredState<T> = {
|
|
106
99
|
readonly loading: true;
|
|
@@ -127,8 +120,6 @@ type InferProps<T> = T extends {
|
|
|
127
120
|
} ? R : never;
|
|
128
121
|
declare function defer<T>(resolver: (c: CloudContext) => Promise<T>): Deferred<T>;
|
|
129
122
|
declare function defer<T>(group: string, resolver: (c: CloudContext) => Promise<T>): Deferred<T>;
|
|
130
|
-
//#endregion
|
|
131
|
-
//#region src/runtime/handler.d.ts
|
|
132
123
|
/**
|
|
133
124
|
* Thrown when `c.rewrite()` is called with a destination whose final path
|
|
134
125
|
* segment ends in a known static-asset extension (e.g. `/hero.png`,
|
|
@@ -197,12 +188,11 @@ declare module "hono" {
|
|
|
197
188
|
* do not re-evaluate on it. Your middleware is responsible for its own loop
|
|
198
189
|
* prevention (e.g., checking if the path already has a prefix).
|
|
199
190
|
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
* (e.g. `` `/users/${id}` ``)
|
|
203
|
-
* been generated yet, `RouteMap` is empty and this is equivalent to `string`.
|
|
191
|
+
* Accepts a typed `{ pathname, params, query, hash }` destination or a string.
|
|
192
|
+
* String destinations retain route autocomplete and support dynamic paths
|
|
193
|
+
* (e.g. `` `/users/${id}` ``).
|
|
204
194
|
*/
|
|
205
|
-
rewrite: (path: RewriteDestination) => Promise<Response>;
|
|
195
|
+
rewrite: (path: RewriteDestination | RouteDestination) => Promise<Response>;
|
|
206
196
|
/**
|
|
207
197
|
* Returns the URL the client actually requested — the pre-rewrite URL as
|
|
208
198
|
* a `URL` object — or `null` when the current request was not rewritten.
|
|
@@ -237,7 +227,7 @@ type CloudContext = Context<CloudEnv>;
|
|
|
237
227
|
type HandlerFn = (c: CloudContext) => unknown | Promise<unknown>;
|
|
238
228
|
type LoaderFn<R> = (c: CloudContext) => R | Response | Promise<R | Response>;
|
|
239
229
|
type LoaderOutput<F extends HandlerFn> = Exclude<Awaited<ReturnType<F>>, Response>;
|
|
240
|
-
type MiddlewareFn = MiddlewareHandler<CloudEnv
|
|
230
|
+
type MiddlewareFn = (c: CloudContext, next: Next) => ReturnType<MiddlewareHandler<CloudEnv>>;
|
|
241
231
|
type BasicAuthOptionValue = string | (() => string);
|
|
242
232
|
interface BasicAuthOptions {
|
|
243
233
|
/** Username required by the Basic auth challenge. */
|
|
@@ -334,7 +324,7 @@ declare namespace defineHandler {
|
|
|
334
324
|
* Identity function that provides type inference for middleware.
|
|
335
325
|
* At runtime it simply returns the function passed to it.
|
|
336
326
|
*/
|
|
337
|
-
declare function defineMiddleware(handler:
|
|
327
|
+
declare function defineMiddleware(handler: MiddlewareFn): MiddlewareHandler<CloudEnv>;
|
|
338
328
|
/**
|
|
339
329
|
* Create Basic authentication middleware for temporary site gates and
|
|
340
330
|
* pre-launch protection.
|
|
@@ -364,5 +354,4 @@ declare function defineHead<P = Record<string, unknown>>(handler: (c: CloudConte
|
|
|
364
354
|
* At runtime it simply returns the function passed to it.
|
|
365
355
|
*/
|
|
366
356
|
declare function defineQueue<T = unknown>(handler: QueueFn<T>): TypedQueueHandler<T>;
|
|
367
|
-
//#endregion
|
|
368
357
|
export { filterInternalBindings as A, defer as C, runValidation as D, ValidatorSlots as E, createClientAssetTags as M, createManifestLoader as N, createAssetFallback as O, 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, ClientAssetTags as j, createWorkerFetch as k, 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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as base64ToBytes } from "./base64-
|
|
2
|
-
import { t as convertReturnValue } from "./response-
|
|
3
|
-
import { t as runValidation } from "./validator-
|
|
4
|
-
|
|
1
|
+
import { t as base64ToBytes } from "./base64-ikl9yBy3.mjs";
|
|
2
|
+
import { t as convertReturnValue } from "./response-HmNjB30w.mjs";
|
|
3
|
+
import { t as runValidation } from "./validator-CTfmzZYb.mjs";
|
|
4
|
+
// src/runtime/handler.ts
|
|
5
5
|
/**
|
|
6
6
|
* Thrown when `c.rewrite()` is called with a destination whose final path
|
|
7
7
|
* segment ends in a known static-asset extension (e.g. `/hero.png`,
|
|
@@ -147,5 +147,4 @@ function defineHead(handler) {
|
|
|
147
147
|
function defineQueue(handler) {
|
|
148
148
|
return handler;
|
|
149
149
|
}
|
|
150
|
-
//#endregion
|
|
151
150
|
export { defineMiddleware as a, defineScheduled as c, defineHead as i, basicAuth as n, defineQueue as o, defineHandler as r, defineRender as s, VoidAssetRewriteError as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/pages/head.ts
|
|
2
2
|
/**
|
|
3
3
|
* Merge head descriptors with precedence: page > middleware > config.
|
|
4
4
|
*
|
|
@@ -86,5 +86,4 @@ function renderBodyAttrs(head) {
|
|
|
86
86
|
const attrs = head.bodyAttrs ? serializeAttrs(head.bodyAttrs) : "";
|
|
87
87
|
return attrs ? " " + attrs : "";
|
|
88
88
|
}
|
|
89
|
-
//#endregion
|
|
90
89
|
export { resolveHead as i, renderHeadToString as n, renderHtmlAttrs as r, renderBodyAttrs as t };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/pages/head.d.ts
|
|
2
1
|
/** Shape of a single page's head metadata. */
|
|
3
2
|
type HeadDescriptor = {
|
|
4
3
|
title?: string;
|
|
@@ -41,5 +40,4 @@ declare function renderHeadToString(head: HeadDescriptor): string;
|
|
|
41
40
|
declare function renderHtmlAttrs(head: HeadDescriptor): string;
|
|
42
41
|
/** Serialize bodyAttrs to an attribute string (includes leading space). */
|
|
43
42
|
declare function renderBodyAttrs(head: HeadDescriptor): string;
|
|
44
|
-
//#endregion
|
|
45
43
|
export { renderHtmlAttrs as a, renderHeadToString as i, HeadDescriptor as n, resolveHead as o, renderBodyAttrs as r, HeadConfig as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as join } from "./dist-
|
|
2
|
-
import { a as convertRewritesConfig, d as isProtocolRelative, f as parseHostPrefixedSource, i as convertRedirectsConfig, n as convertFallbacksConfig, o as countSplats, r as convertHeadersConfig, t as VALID_REDIRECT_STATUSES } from "./config-
|
|
3
|
-
import { i as voidWarn } from "./log-
|
|
1
|
+
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
+
import { a as convertRewritesConfig, d as isProtocolRelative, f as parseHostPrefixedSource, i as convertRedirectsConfig, n as convertFallbacksConfig, o as countSplats, r as convertHeadersConfig, t as VALID_REDIRECT_STATUSES } from "./config-DkA9jYF2.mjs";
|
|
3
|
+
import { i as voidWarn } from "./log-D9hwSySP.mjs";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
|
-
|
|
5
|
+
// src/cli/headers.ts
|
|
6
6
|
/**
|
|
7
7
|
* Parse a Cloudflare/Netlify `_headers` file into HeaderRule[].
|
|
8
8
|
*
|
|
@@ -222,5 +222,4 @@ function lintDuplicateSources(rules, phaseName) {
|
|
|
222
222
|
if (lines.length === 0) return;
|
|
223
223
|
voidWarn(`duplicate rule sources detected in ${phaseName} (first match wins — the earlier entry takes effect):\n${lines.join("\n")}`);
|
|
224
224
|
}
|
|
225
|
-
//#endregion
|
|
226
225
|
export { mergeRoutingRules as n, parseRedirectsFile as r, lintRoutingPhases as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as printHelpPage } from "./help-EWDNxST-.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as outro } from "./dist-
|
|
2
|
-
import { n as getOwnVersion } from "./agents-
|
|
3
|
-
import { d as helpLine, f as import_picocolors, g as sectionTitle, l as formatUrl, p as note, t as categoryTitle } from "./output-
|
|
4
|
-
import { n as operatorGroups, t as operatorCommands } from "./operator-args-
|
|
5
|
-
|
|
1
|
+
import { H as outro } from "./dist-D23AAMxT.mjs";
|
|
2
|
+
import { n as getOwnVersion } from "./agents-DRo8gzni.mjs";
|
|
3
|
+
import { d as helpLine, f as import_picocolors, g as sectionTitle, l as formatUrl, p as note, t as categoryTitle } from "./output-BCdLioKP.mjs";
|
|
4
|
+
import { n as operatorGroups, t as operatorCommands } from "./operator-args-D79WQP70.mjs";
|
|
5
|
+
// src/cli/ascii.ts
|
|
6
6
|
const asciiArts = [
|
|
7
7
|
`
|
|
8
8
|
▄ ▄ ▄▄▄ ▄ ▐▌
|
|
@@ -23,8 +23,7 @@ dP .dP .d8888b. dP .d888b88
|
|
|
23
23
|
| |/ / /_/ / / /_/ /
|
|
24
24
|
|___/\\____/_/\\__,_/`
|
|
25
25
|
];
|
|
26
|
-
|
|
27
|
-
//#region src/cli/help.ts
|
|
26
|
+
// src/cli/help.ts
|
|
28
27
|
function operatorHelpTree() {
|
|
29
28
|
return Object.fromEntries(operatorGroups.map((group) => {
|
|
30
29
|
const commands = operatorCommands.filter((entry) => entry.group === group);
|
|
@@ -166,11 +165,11 @@ const HELP_TREE = {
|
|
|
166
165
|
]
|
|
167
166
|
},
|
|
168
167
|
migrate: {
|
|
169
|
-
summary: "
|
|
168
|
+
summary: "Update project configuration.",
|
|
170
169
|
usage: ["void migrate"],
|
|
171
170
|
examples: [{
|
|
172
171
|
command: "void migrate",
|
|
173
|
-
description: "
|
|
172
|
+
description: "Update project configuration"
|
|
174
173
|
}]
|
|
175
174
|
},
|
|
176
175
|
deploy: {
|
|
@@ -1045,7 +1044,17 @@ const HELP_TREE = {
|
|
|
1045
1044
|
list: withProjectOption("List project secrets.", "void secret list [options]"),
|
|
1046
1045
|
put: withProjectOption("Set a project secret.", "void secret put <name> [options]"),
|
|
1047
1046
|
delete: withProjectOption("Delete a project secret.", "void secret delete <name> [options]"),
|
|
1048
|
-
sync:
|
|
1047
|
+
sync: {
|
|
1048
|
+
summary: "Sync secrets from a dotenv file.",
|
|
1049
|
+
usage: ["void secret sync <file> [options]"],
|
|
1050
|
+
options: [{
|
|
1051
|
+
command: "--project <name>",
|
|
1052
|
+
description: "Project name override"
|
|
1053
|
+
}, {
|
|
1054
|
+
command: "--yes",
|
|
1055
|
+
description: "Skip confirmation (required in CI and non-interactive shells)"
|
|
1056
|
+
}]
|
|
1057
|
+
}
|
|
1049
1058
|
}
|
|
1050
1059
|
},
|
|
1051
1060
|
domain: {
|
|
@@ -1945,5 +1954,4 @@ function getKnownHelpPrefix(args) {
|
|
|
1945
1954
|
function formatHelpPath(path) {
|
|
1946
1955
|
return path.length === 0 ? "help" : path.join(" ");
|
|
1947
1956
|
}
|
|
1948
|
-
//#endregion
|
|
1949
1957
|
export { printVoidHeader as i, printGlobalHelp as n, printHelpPage as r, getHelpPath as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as base64ToBytes } from "./base64-
|
|
2
|
-
import { c as validateAddressParts, i as indexOfControl, n as MimeError, o as normalizeEmail, r as buildMime } from "./mime-
|
|
3
|
-
import { a as getRawRuntimeEnv } from "./env-raw-
|
|
4
|
-
import { o as withTimeout } from "./email-protocol-
|
|
1
|
+
import { t as base64ToBytes } from "./base64-ikl9yBy3.mjs";
|
|
2
|
+
import { c as validateAddressParts, i as indexOfControl, n as MimeError, o as normalizeEmail, r as buildMime } from "./mime-DKkO7ZtA.mjs";
|
|
3
|
+
import { a as getRawRuntimeEnv } from "./env-raw-e8qgqAzQ.mjs";
|
|
4
|
+
import { o as withTimeout } from "./email-protocol-DTs_TjCS.mjs";
|
|
5
5
|
import { EMAIL_MAX_ACTIONS, EMAIL_MAX_INBOUND_BYTES, EMAIL_MAX_INBOUND_HEADERS, EMAIL_MAX_METADATA_BYTES, EMAIL_MAX_REPLY_BYTES, EMAIL_MAX_RESPONSE_BYTES } from "@void/platform/email-protocol";
|
|
6
|
-
|
|
6
|
+
// src/runtime/email/inbound.ts
|
|
7
7
|
const MAX_ACTIONS = EMAIL_MAX_ACTIONS;
|
|
8
8
|
const MAX_ACTION_METADATA_BYTES = EMAIL_MAX_METADATA_BYTES;
|
|
9
9
|
/** Bounds on a forward's headers. */
|
|
@@ -580,5 +580,4 @@ async function enactEmailActions(message, actions) {
|
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
|
-
//#endregion
|
|
584
583
|
export { createMessageProxy as a, isForwardableEmailMessage as c, readProjectSlug as d, replyEmail as f, bytesToReadableStream as i, parseEmail as l, MAX_INBOUND_HEADERS as n, defineEmail as o, tryGetRawRuntimeEnv as p, ParseEmailError as r, enactEmailActions as s, MAX_INBOUND_BYTES as t, readEnvString as u };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EmailWireAction } from "@void/platform/email-protocol";
|
|
2
2
|
import { Email } from "postal-mime";
|
|
3
|
-
//#region src/runtime/email/types.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Public types for the void/email module.
|
|
6
5
|
*
|
|
@@ -164,8 +163,6 @@ interface NormalizedAttachment {
|
|
|
164
163
|
contentId?: string;
|
|
165
164
|
disposition: "attachment" | "inline";
|
|
166
165
|
}
|
|
167
|
-
//#endregion
|
|
168
|
-
//#region src/runtime/email/inbound.d.ts
|
|
169
166
|
interface EmailHandlerInfo {
|
|
170
167
|
/**
|
|
171
168
|
* Captured params from dynamic / tagged route segments. For example, a
|
|
@@ -300,5 +297,4 @@ declare function isForwardableEmailMessage(value: unknown): value is Forwardable
|
|
|
300
297
|
* `EmailMessage`, so `cloudflare:email` loads only when one was recorded.
|
|
301
298
|
*/
|
|
302
299
|
declare function enactEmailActions(message: ForwardableEmailMessage, actions: ReadonlyArray<EmailAction>): Promise<void>;
|
|
303
|
-
//#endregion
|
|
304
300
|
export { SendEmailOptions as C, SendEmailErrorCode as S, SendEmailResult as T, Attachment as _, MessageProxy as a, SendEmailDelivery as b, ParsedEmail as c, defineEmail as d, enactEmailActions as f, Address as g, replyEmail as h, EmailHandlerInfo as i, ReplyEmailOptions as l, parseEmail as m, EmailEnvelope as n, ParseEmailError as o, isForwardableEmailMessage as p, EmailHandler as r, ParseEmailErrorCode as s, EmailAction as t, createMessageProxy as u, EmailDeliveryState as v, SendEmailRecipientResult as w, SendEmailError as x, NormalizedEmail as y };
|