void 1.4.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-HP8bixYo.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-DDOQwiXk.mjs → application-analysis-2vGZrKzg.mjs} +18 -24
- package/dist/{application-routing-4719u_kf.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-g2TQbDLD.d.mts → auth-CH4PLAX1.d.mts} +0 -2
- 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-CedYpDCy.mjs → auth-link-D4uMdOsw.mjs} +7 -8
- package/dist/{auth-migrations-BO27GDNr.mjs → auth-migrations-DDeifS3v.mjs} +1 -2
- package/dist/{auth-router-vafo7x8w.mjs → auth-router-62dna450.mjs} +6 -7
- package/dist/{base64-DVrOndmI.mjs → base64-ikl9yBy3.mjs} +1 -2
- package/dist/{better-auth-shared-BHB8kiTE.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-9vUAQ1_V.mjs → build-cmd-D93K_4Sa.mjs} +7 -8
- package/dist/{cache-jvwLNb0h.mjs → cache-CiIzEED4.mjs} +7 -8
- package/dist/{cancel-deploy-Dw0UmWKO.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-XpNR9zoh.mjs → cf-build-output-B1C8U83u.mjs} +41 -314
- 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-Dg27RzyT.mjs → cf-worker-settings-CARs4Wy9.mjs} +3 -5
- package/dist/cli/cli.mjs +66 -76
- package/dist/cli/cloudflare-operation-process.mjs +14 -18
- 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-B3LnB_bE.mjs → client-Qayy9xEh.mjs} +10 -12
- package/dist/{cloudflare-auth-DyD_kVFr.mjs → cloudflare-auth-CEu-1Ps_.mjs} +2 -3
- package/dist/{cloudflare-cmd-D-b_u3T4.mjs → cloudflare-cmd-DiFGaLow.mjs} +7 -8
- package/dist/{cloudflare-config-CH1AylZT.mjs → cloudflare-config-Chet188_.mjs} +22 -17
- package/dist/{cloudflare-connect-zTJh8UnN.mjs → cloudflare-connect-BdgAQBc7.mjs} +5 -6
- package/dist/{cloudflare-operations-Bc-7fN44.mjs → cloudflare-operations-CWA24vCh.mjs} +8 -9
- package/dist/{cloudflare-operations-BtulCNOg.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-BV2ASlpn.mjs → config-BszFVhpk.mjs} +1 -1
- package/dist/{config-tqMM6DwY.mjs → config-Bt4rw93x.mjs} +5 -6
- package/dist/{config-CAdZVTLN.d.mts → config-CzsNzGVH.d.mts} +2 -6
- package/dist/{config-OFOAimzt.mjs → config-DkA9jYF2.mjs} +4 -5
- package/dist/{config-D-6q7EBH.mjs → config-WlvEcL82.mjs} +3 -4
- package/dist/config-entry.d.mts +1 -3
- package/dist/config-entry.mjs +1 -2
- package/dist/{connect-BOM6zvFX.mjs → connect-b9mJbb6X.mjs} +10 -11
- package/dist/{create-project-Bxd02EHN.mjs → create-project-eomwm0wa.mjs} +9 -11
- package/dist/{create-project-C2K0DN2O.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-Cdvr3zwG.mjs → db-UPWmiSk1.mjs} +52 -54
- package/dist/{db-types-0eCiqYb1.mjs → db-types-C_8amnB0.mjs} +3 -4
- package/dist/{delete-lETE6Tpt.mjs → delete-BeeYi1WO.mjs} +7 -8
- package/dist/deploy-CfU7CR-b.mjs +2 -0
- package/dist/{deploy-CdM-LAxX.mjs → deploy-CwmCcTlq.mjs} +83 -112
- package/dist/{deploy-managed-static-DjeBFG2c.mjs → deploy-managed-static-gPDxyp3v.mjs} +33 -40
- package/dist/{deploy-transport-DIq_gFTP.mjs → deploy-transport-L6zzPE9T.mjs} +6 -7
- package/dist/deploy.d.mts +1 -3
- package/dist/deploy.mjs +10 -11
- 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-CLa2LThw.mjs → dispatch-CiJ1Xrba.mjs} +12 -15
- 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-DyhNtdYf.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-DM2wDcBN.mjs → email-Du3YRnM5.mjs} +14 -15
- package/dist/{email-cloudflare-PMbAev9Q.mjs → email-cloudflare-CtD8qE13.mjs} +18 -21
- 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-78hbN-oI.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-BUfFZ6bt.mjs → env-validation-C8Cmvas0.mjs} +1 -1
- package/dist/{env-validation-B3VobvXm.mjs → env-validation-GV1oD4EV.mjs} +9 -10
- package/dist/{error-pages-CLIJ7aYq.mjs → error-pages-COVBnzK7.mjs} +6 -12
- 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-CFmsUsW1.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-De-_IWbM.mjs → github-cmd-X2GKiLi-.mjs} +8 -9
- package/dist/{handler-BHktmuTL.d.mts → handler-Drm_lyrV.d.mts} +13 -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--vaK_chu.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 +452 -208
- package/dist/{info-Yg0-V5Rs.mjs → info-jW8_d3VI.mjs} +6 -7
- package/dist/{init-CDiJQycf.mjs → init-jDQ5G9QC.mjs} +42 -59
- 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-Dllip08S.mjs → link-DOyxX5Xs.mjs} +8 -9
- package/dist/{list-BYRP6am0.mjs → list-C9pTYDtl.mjs} +8 -9
- package/dist/{live-BllfDuzA.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-CAwAs9GH.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-PcFy5mlC.mjs → login-koQbjzPd.mjs} +6 -7
- package/dist/{logs-DmJTBhed.mjs → logs-cTU5TsRW.mjs} +8 -9
- package/dist/migrate-BG09-KOv.mjs +1 -0
- package/dist/{migrate-B8S2xTcb.mjs → migrate-C62pGTfr.mjs} +20 -16
- 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 +5 -6
- package/dist/{node-CDOPrGSl.mjs → node-BfAt2rz8.mjs} +8 -9
- 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-DmkmS2wL.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 +9 -25
- package/dist/pages/client.mjs +28 -33
- package/dist/pages/head.d.mts +1 -1
- package/dist/pages/head.mjs +1 -1
- package/dist/pages/index.d.mts +4 -16
- package/dist/pages/index.mjs +9 -11
- 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-CImnfohz.mjs → platform-auth-config-CLj0EvnB.mjs} +10 -11
- package/dist/{platform-auth-protection-BogLhtHi.mjs → platform-auth-protection-DQDSxVhr.mjs} +10 -11
- package/dist/{platform-auth-recovery-B-mEaWEi.mjs → platform-auth-recovery-DD3oLerq.mjs} +9 -11
- package/dist/{platform-cmd-DZK2ixMl.mjs → platform-cmd-PLNLg-2N.mjs} +12 -13
- package/dist/{platform-cmd-CV8NxIIn.mjs → platform-cmd-WnOmdLzR.mjs} +1 -1
- package/dist/{platform-discovery-CHhNs8Nn.mjs → platform-discovery-B0eZjZ3B.mjs} +2 -3
- package/dist/{platform-domain-CRvelPGE.mjs → platform-domain-Bnq0vg0q.mjs} +7 -8
- package/dist/{platform-lifecycle-CPYY7E9B.mjs → platform-lifecycle-BCsFg1Tl.mjs} +53 -88
- package/dist/{platform-lifecycle-DwXq7kZt.mjs → platform-lifecycle-BQiN9HN5.mjs} +1 -1
- package/dist/{platform-management-lXdgGgAM.mjs → platform-management-CMJR8Zi-.mjs} +1 -1
- package/dist/{platform-management-BOnGbMSM.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-noaALXnE.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-BuOS18AM.mjs → prepare-BPsfLWaW.mjs} +4 -5
- package/dist/{prepare-D604Yiyr.mjs → prepare-pfl2LIMy.mjs} +12 -13
- 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-DBYqAIbe.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-BjCLgTRC.mjs → project-team-DSUyjZFh.mjs} +7 -8
- package/dist/{project-token-BB6PwaA9.mjs → project-token-wj09YQSB.mjs} +7 -8
- package/dist/{project-tsconfig-CVvk6Z_e.mjs → project-tsconfig-Cf2NFjlM.mjs} +4 -6
- package/dist/{project-zero-trust-CWDh1P_t.mjs → project-zero-trust-BMHf2YF0.mjs} +7 -8
- package/dist/{protocol-DimNxVRr.mjs → protocol-0-lp9ZYx.mjs} +6 -7
- package/dist/{protocol-D5XDySYu.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-DztLJ97X.mjs → provision-CRiNnlfE.mjs} +6 -7
- package/dist/{provision-DfxLCg-d.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-D_pbzDyz.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-CjfIYsJx.mjs → rollback-DrDZOKNE.mjs} +7 -8
- package/dist/{rolldown-runtime-3h0WiCiA.mjs → rolldown-runtime-uD8oG6U2.mjs} +1 -2
- package/dist/{route-types-DvEGmPif.mjs → route-types-irZc1txT.mjs} +43 -8
- 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 +1 -1
- 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 +7 -10
- package/dist/runtime/routing.mjs +18 -19
- 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 +3 -4
- 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-3X0PxmuX.mjs → secret-C_QtTzJG.mjs} +17 -15
- 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-D2vfMQzv.mjs → version-metadata-Blf5H9BQ.mjs} +4 -6
- package/dist/{worker-conditions-AWFRcFxR.mjs → worker-conditions-CBZ0RYsZ.mjs} +1 -2
- package/dist/wrangler-CPRX2d9A.mjs +1 -0
- package/dist/{wrangler-I-scB_1t.mjs → wrangler-p-kLCJqF.mjs} +6 -8
- package/dist/{wrapper-BBl1rC32.mjs → wrapper-iejSJDwL.mjs} +17 -14
- package/dist/{ws-B3ClMVDh.d.mts → ws-DzBD-NUj.d.mts} +3 -5
- package/dist/{yarn-pnp-DLbEFMT0.mjs → yarn-pnp-DgWbE7z5.mjs} +2 -3
- 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 +4 -4
- 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 +6 -9
- 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 +9 -25
- 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 +7 -7
- 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 +2 -2
- 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 +1 -1
- package/docs/reference/api/deploy.md +6 -6
- package/docs/reference/api/pages.md +9 -1
- 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/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 +2 -2
- package/package.json +35 -32
- package/sandbox.Dockerfile +1 -1
- package/dist/cf-build-output-bd8Uwv1P.mjs +0 -1
- package/dist/client-BZb9j66F.mjs +0 -1
- package/dist/collect-BWhkgtAn.mjs +0 -1
- package/dist/deploy-CX94CmKa.mjs +0 -2
- package/dist/discover-D4TPKo57.mjs +0 -1
- package/dist/gen-BhWBT4iu.mjs +0 -1
- package/dist/help-qOZr3wng.mjs +0 -1
- package/dist/login-BAPmYnb7.mjs +0 -1
- package/dist/migrate-BIYTPQE6.mjs +0 -1
- package/dist/operator-cmd-CjazwOyb.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-DU-tOpS5.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-UnwdISay.mjs +0 -1
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// src/runtime/error-pages/404.html?raw
|
|
2
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
|
-
|
|
4
|
-
//#region src/runtime/error-pages/500.html?raw
|
|
3
|
+
// src/runtime/error-pages/500.html?raw
|
|
5
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";
|
|
6
|
-
|
|
7
|
-
//#region src/runtime/error-pages/inline.ts
|
|
5
|
+
// src/runtime/error-pages/inline.ts
|
|
8
6
|
const closing = "<!-- endinject -->";
|
|
9
7
|
function replaceAssetBlock(html, name, content) {
|
|
10
8
|
const opening = `<!-- inject:${name} -->`;
|
|
@@ -18,14 +16,11 @@ function inlineErrorPageAssets(html, stylesheet, script) {
|
|
|
18
16
|
for (const [name, content] of [["css", `<style>\n${stylesheet}</style>`], ["js", `<script>\n${script}<\/script>`]]) html = replaceAssetBlock(html, name, content);
|
|
19
17
|
return html;
|
|
20
18
|
}
|
|
21
|
-
|
|
22
|
-
//#region src/runtime/error-pages/script.js?raw
|
|
19
|
+
// src/runtime/error-pages/script.js?raw
|
|
23
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";
|
|
24
|
-
|
|
25
|
-
//#region src/runtime/error-pages/style.css?raw
|
|
21
|
+
// src/runtime/error-pages/style.css?raw
|
|
26
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";
|
|
27
|
-
|
|
28
|
-
//#region src/runtime/error-pages/index.ts
|
|
23
|
+
// src/runtime/error-pages/index.ts
|
|
29
24
|
const pages = {
|
|
30
25
|
404: inlineErrorPageAssets(_404_default, style_default, script_default),
|
|
31
26
|
500: inlineErrorPageAssets(_500_default, style_default, script_default)
|
|
@@ -33,5 +28,4 @@ const pages = {
|
|
|
33
28
|
function renderDefaultErrorPage(status) {
|
|
34
29
|
return pages[status];
|
|
35
30
|
}
|
|
36
|
-
//#endregion
|
|
37
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
|
};
|
|
@@ -78,8 +75,6 @@ type WorkerFetchOptions = {
|
|
|
78
75
|
};
|
|
79
76
|
};
|
|
80
77
|
declare function createWorkerFetch(options: WorkerFetchOptions): (request: Request, env: RuntimeEnvironment, ctx: ExecutionContext$1) => Promise<Response>;
|
|
81
|
-
//#endregion
|
|
82
|
-
//#region src/runtime/validator.d.ts
|
|
83
78
|
type ValidatorSlots = {
|
|
84
79
|
body?: StandardSchemaV1;
|
|
85
80
|
query?: StandardSchemaV1;
|
|
@@ -95,14 +90,10 @@ type ValidationFailure = {
|
|
|
95
90
|
};
|
|
96
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; };
|
|
97
92
|
declare function runValidation<V extends ValidatorSlots>(validators: V, c: CloudContext): Promise<ValidationSuccess<V> | ValidationFailure>;
|
|
98
|
-
//#endregion
|
|
99
|
-
//#region src/pages/validation-error.d.ts
|
|
100
93
|
declare class ValidationError extends Error {
|
|
101
94
|
readonly errors: Record<string, string>;
|
|
102
95
|
constructor(errors: Record<string, string>);
|
|
103
96
|
}
|
|
104
|
-
//#endregion
|
|
105
|
-
//#region src/pages/defer.d.ts
|
|
106
97
|
/** Reactive wrapper for a deferred prop on non-React clients. */
|
|
107
98
|
type DeferredState<T> = {
|
|
108
99
|
readonly loading: true;
|
|
@@ -129,8 +120,6 @@ type InferProps<T> = T extends {
|
|
|
129
120
|
} ? R : never;
|
|
130
121
|
declare function defer<T>(resolver: (c: CloudContext) => Promise<T>): Deferred<T>;
|
|
131
122
|
declare function defer<T>(group: string, resolver: (c: CloudContext) => Promise<T>): Deferred<T>;
|
|
132
|
-
//#endregion
|
|
133
|
-
//#region src/runtime/handler.d.ts
|
|
134
123
|
/**
|
|
135
124
|
* Thrown when `c.rewrite()` is called with a destination whose final path
|
|
136
125
|
* segment ends in a known static-asset extension (e.g. `/hero.png`,
|
|
@@ -199,12 +188,11 @@ declare module "hono" {
|
|
|
199
188
|
* do not re-evaluate on it. Your middleware is responsible for its own loop
|
|
200
189
|
* prevention (e.g., checking if the path already has a prefix).
|
|
201
190
|
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
* (e.g. `` `/users/${id}` ``)
|
|
205
|
-
* 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}` ``).
|
|
206
194
|
*/
|
|
207
|
-
rewrite: (path: RewriteDestination) => Promise<Response>;
|
|
195
|
+
rewrite: (path: RewriteDestination | RouteDestination) => Promise<Response>;
|
|
208
196
|
/**
|
|
209
197
|
* Returns the URL the client actually requested — the pre-rewrite URL as
|
|
210
198
|
* a `URL` object — or `null` when the current request was not rewritten.
|
|
@@ -239,7 +227,7 @@ type CloudContext = Context<CloudEnv>;
|
|
|
239
227
|
type HandlerFn = (c: CloudContext) => unknown | Promise<unknown>;
|
|
240
228
|
type LoaderFn<R> = (c: CloudContext) => R | Response | Promise<R | Response>;
|
|
241
229
|
type LoaderOutput<F extends HandlerFn> = Exclude<Awaited<ReturnType<F>>, Response>;
|
|
242
|
-
type MiddlewareFn = MiddlewareHandler<CloudEnv
|
|
230
|
+
type MiddlewareFn = (c: CloudContext, next: Next) => ReturnType<MiddlewareHandler<CloudEnv>>;
|
|
243
231
|
type BasicAuthOptionValue = string | (() => string);
|
|
244
232
|
interface BasicAuthOptions {
|
|
245
233
|
/** Username required by the Basic auth challenge. */
|
|
@@ -336,7 +324,7 @@ declare namespace defineHandler {
|
|
|
336
324
|
* Identity function that provides type inference for middleware.
|
|
337
325
|
* At runtime it simply returns the function passed to it.
|
|
338
326
|
*/
|
|
339
|
-
declare function defineMiddleware(handler:
|
|
327
|
+
declare function defineMiddleware(handler: MiddlewareFn): MiddlewareHandler<CloudEnv>;
|
|
340
328
|
/**
|
|
341
329
|
* Create Basic authentication middleware for temporary site gates and
|
|
342
330
|
* pre-launch protection.
|
|
@@ -366,5 +354,4 @@ declare function defineHead<P = Record<string, unknown>>(handler: (c: CloudConte
|
|
|
366
354
|
* At runtime it simply returns the function passed to it.
|
|
367
355
|
*/
|
|
368
356
|
declare function defineQueue<T = unknown>(handler: QueueFn<T>): TypedQueueHandler<T>;
|
|
369
|
-
//#endregion
|
|
370
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 };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
1
|
-
import { n as HeadDescriptor } from "./head-
|
|
2
|
-
import { r as AuthUser } from "./auth-
|
|
3
|
-
import { s as RouteEnvironment } from "./types-
|
|
4
|
-
import { C as defer, E as ValidatorSlots, S as InferProps, T as HandlerInput, _ as defineQueue, a as CloudEnv, b as Deferred, c as QueueRetryOptions, d as TypedQueueHandler, f as VoidAssetRewriteError, g as defineMiddleware, h as defineHead, i as CloudContextVariables, l as RenderAssetTags, m as defineHandler, o as QueueBatch, p as basicAuth, r as CloudContext, s as QueueMessage, t as BasicAuthOptions, u as TypedHandler, v as defineRender, x as DeferredState, y as defineScheduled } from "./handler-
|
|
5
|
-
import { t as QueueMap } from "./queues-
|
|
6
|
-
import { PluginConfig } from "@cloudflare/vite-plugin";
|
|
1
|
+
import { n as HeadDescriptor } from "./head-MeF_5M_3.mjs";
|
|
2
|
+
import { r as AuthUser } from "./auth-CH4PLAX1.mjs";
|
|
3
|
+
import { s as RouteEnvironment } from "./types-agfx0alu.mjs";
|
|
4
|
+
import { C as defer, E as ValidatorSlots, S as InferProps, T as HandlerInput, _ as defineQueue, a as CloudEnv, b as Deferred, c as QueueRetryOptions, d as TypedQueueHandler, f as VoidAssetRewriteError, g as defineMiddleware, h as defineHead, i as CloudContextVariables, l as RenderAssetTags, m as defineHandler, o as QueueBatch, p as basicAuth, r as CloudContext, s as QueueMessage, t as BasicAuthOptions, u as TypedHandler, v as defineRender, x as DeferredState, y as defineScheduled } from "./handler-Drm_lyrV.mjs";
|
|
5
|
+
import { t as QueueMap } from "./queues-DdM42xXW.mjs";
|
|
7
6
|
import { Plugin } from "vite";
|
|
8
|
-
|
|
7
|
+
import { convertToWranglerConfig } from "@cloudflare/config";
|
|
8
|
+
import { PluginConfig } from "@cloudflare/vite-plugin";
|
|
9
|
+
/** Void keeps its Wrangler-shaped public options independently of the upstream plugin. */
|
|
10
|
+
type WorkerConfig = ReturnType<typeof convertToWranglerConfig>;
|
|
11
|
+
type AuxiliaryConfig = Partial<WorkerConfig> | ((config: WorkerConfig, context: {
|
|
12
|
+
entryWorkerConfig: WorkerConfig;
|
|
13
|
+
}) => Partial<WorkerConfig> | void);
|
|
14
|
+
type AuxiliaryWorkerConfig = ({
|
|
15
|
+
configPath: string;
|
|
16
|
+
config?: AuxiliaryConfig;
|
|
17
|
+
} | {
|
|
18
|
+
configPath?: string;
|
|
19
|
+
config: AuxiliaryConfig;
|
|
20
|
+
}) & {
|
|
21
|
+
viteEnvironment?: PluginConfig["viteEnvironment"];
|
|
22
|
+
devOnly?: boolean | (() => boolean);
|
|
23
|
+
};
|
|
9
24
|
/**
|
|
10
25
|
* Decide whether to inject the `void dev` email-inbox loopback var.
|
|
11
26
|
*
|
|
@@ -28,8 +43,6 @@ import { Plugin } from "vite";
|
|
|
28
43
|
* only arm a path that must then fail; gate on it instead.
|
|
29
44
|
*/
|
|
30
45
|
export declare function shouldInjectEmailDevInboxVar(routeEnvironment: RouteEnvironment, needsEmail: boolean | undefined, assetsBinding: string | undefined): boolean;
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/plugin-ai-setup.d.ts
|
|
33
46
|
/**
|
|
34
47
|
* Decide whether to inject a Workers AI binding into the built wrangler config.
|
|
35
48
|
*
|
|
@@ -45,12 +58,9 @@ export declare function shouldInjectEmailDevInboxVar(routeEnvironment: RouteEnvi
|
|
|
45
58
|
export declare function shouldBindWorkersAi(command: string, needsAI: boolean, resolvedAi: unknown, resultAi: unknown, directCloudflareDev?: boolean): boolean;
|
|
46
59
|
/** Resolve the runtime Workers AI binding, preserving a root Wrangler declaration. */
|
|
47
60
|
export declare function resolveWorkersAiBindingName(resolvedAi: unknown, configuredName?: string): string;
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region src/index.d.ts
|
|
50
61
|
/** Returns the Vite plugins that build and serve a Void app for its configured target. */
|
|
51
62
|
export declare function voidPlugin(options?: {
|
|
52
63
|
persistTo?: string;
|
|
53
|
-
auxiliaryWorkers?:
|
|
64
|
+
auxiliaryWorkers?: Array<AuxiliaryWorkerConfig>;
|
|
54
65
|
}): Array<Plugin>;
|
|
55
|
-
//#endregion
|
|
56
66
|
export { type AuthUser, type BasicAuthOptions, type CloudContext, type CloudContextVariables, type CloudEnv, type Deferred, type DeferredState, type HandlerInput, type HeadDescriptor, type InferProps, type QueueBatch, type QueueMap, type QueueMessage, type QueueRetryOptions, type RenderAssetTags, type TypedHandler, type TypedQueueHandler, type ValidatorSlots, VoidAssetRewriteError, basicAuth, defer, defineHandler, defineHead, defineMiddleware, defineQueue, defineRender, defineScheduled };
|