void 1.6.2 → 1.7.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/dist/{account-cmd-D903EEWQ.mjs → account-cmd-BfkJ_1PC.mjs} +6 -6
- package/dist/{application-analysis-DlUG-XNT.mjs → application-analysis-OV0CBJ80.mjs} +8 -7
- package/dist/{application-routing-GCBSwXA9.mjs → application-routing-QpyC5G8z.mjs} +2 -1
- package/dist/{auth-CL-p_rqV.mjs → auth-BN0NU9dz.mjs} +1 -1
- package/dist/{auth-Dy8svcqQ.mjs → auth-CCk9Seol.mjs} +2 -2
- package/dist/{auth-CH4PLAX1.d.mts → auth-CZrthGxs.d.mts} +8 -1
- package/dist/{auth-YVjBX5NY.mjs → auth-DyWp-fSo.mjs} +7 -1
- package/dist/{auth-link-g9J7MSmP.mjs → auth-link-CW1Zh6FM.mjs} +6 -6
- package/dist/{auth-router-DMZbG9Qn.mjs → auth-router-CNBKnEZi.mjs} +3 -3
- package/dist/{better-auth-shared-BJyG2mH0.d.mts → better-auth-shared-C-0uZg8-.d.mts} +1 -1
- package/dist/{better-auth-shared-C958aM7W.mjs → better-auth-shared-CdVyCUou.mjs} +1 -1
- package/dist/{build-cmd-DmjbuT6d.mjs → build-cmd-C9qOKW9W.mjs} +5 -5
- package/dist/{cache-2khBO1MR.mjs → cache-DVBBbWQL.mjs} +5 -5
- package/dist/{cancel-deploy-_itbbvY3.mjs → cancel-deploy-COavnjud.mjs} +4 -4
- package/dist/{cf-build-output-B1C8U83u.mjs → cf-build-output-CWNOH-KA.mjs} +2 -1
- package/dist/cf-build-output-DUZnAeZ1.mjs +1 -0
- package/dist/{cf-config-migrate-Dy8MrKgF.mjs → cf-config-migrate-Bb-EdAQq.mjs} +5 -1
- package/dist/cli/cli.mjs +68 -1868
- package/dist/cli/cloudflare-operation-process.mjs +10 -8
- package/dist/cli/env-schema-probe.mjs +3 -3
- package/dist/cli-main-DFteHrJI.mjs +1889 -0
- package/dist/client-BAxLpSKv.mjs +1 -0
- package/dist/{client-CoxPEhJq.mjs → client-BEZmTP6p.mjs} +10 -4
- package/dist/{cloudflare-auth-CuS42-9A.mjs → cloudflare-auth-DGIivpTb.mjs} +1 -1
- package/dist/{cloudflare-cmd-DTF19-j-.mjs → cloudflare-cmd-DJaxC-bc.mjs} +5 -5
- package/dist/{cloudflare-config-Ce8j5S7V.mjs → cloudflare-config-DtOGAbeB.mjs} +2 -2
- package/dist/{cloudflare-connect-BN4dHp8i.mjs → cloudflare-connect-BjpWmglw.mjs} +3 -3
- package/dist/{cloudflare-operations-laxRA8HN.mjs → cloudflare-operations-CZkjFrzH.mjs} +1 -1
- package/dist/{cloudflare-operations-DrZGzQap.mjs → cloudflare-operations-k7wYUv56.mjs} +6 -6
- package/dist/{cloudflare-process-D9aC-jXr.mjs → cloudflare-process-BcPvlMFd.mjs} +2 -2
- package/dist/{config-hL-S-Y9D.mjs → config-5oSQhZNj.mjs} +3 -1
- package/dist/{config-CPxJmt4M.d.mts → config-CTlUaXWZ.d.mts} +3 -1
- package/dist/{config-CNDjO-15.mjs → config-DcqUBGCb.mjs} +1 -1
- package/dist/config-entry.d.mts +1 -1
- package/dist/{config-DMR0i3Z2.mjs → config-wo2EaH0X.mjs} +1 -1
- package/dist/{connect-DHepM7Xs.mjs → connect-j1F1C_rW.mjs} +7 -7
- package/dist/{create-project-Bq0M8MtO.mjs → create-project-CE3jOmd5.mjs} +5 -5
- package/dist/{create-project-BiMmR5wA.mjs → create-project-DZH3aYGQ.mjs} +1 -1
- package/dist/{db-CqfT6lhV.mjs → db-DyLzzxvM.mjs} +38 -38
- package/dist/{db-types-DRmxBJ2K.mjs → db-types-DdHHUVPy.mjs} +1 -1
- package/dist/{delete-CY4L8fi2.mjs → delete-Dey6YoMA.mjs} +5 -5
- package/dist/{deploy-La_Ly8g_.mjs → deploy-Ccw2D2lw.mjs} +491 -109
- package/dist/deploy-DEZkUS77.mjs +2 -0
- package/dist/{deploy-managed-static-CESLfKHN.mjs → deploy-managed-static-BBVtpuGv.mjs} +16 -16
- package/dist/{deploy-transport-DcI6LXhY.mjs → deploy-transport-Dt0IvSVW.mjs} +2 -2
- package/dist/deploy.mjs +8 -8
- package/dist/{dispatch-DM4Xdd2l.mjs → dispatch-pYaww76u.mjs} +4 -4
- package/dist/{dist-D23AAMxT.mjs → dist-BQdgCVQF.mjs} +1 -1
- package/dist/{dist-eV_Ep60B.mjs → dist-DeTdhbZc.mjs} +1 -1
- package/dist/{domain-BD1KOQL3.mjs → domain-Dh3mG8Vs.mjs} +6 -6
- package/dist/{email-XAspopcj.mjs → email-DKyMjOYM.mjs} +10 -10
- package/dist/{email-cloudflare-RxIQoPc9.mjs → email-cloudflare-CTt2n_W2.mjs} +13 -9
- package/dist/{env-DrYUh55t.mjs → env-DkZzh_Dd.mjs} +7 -7
- package/dist/env-mask-D31Qztl9.mjs +46 -0
- package/dist/{env-validation-Del3C8AY.mjs → env-validation-1snjKtDX.mjs} +4 -4
- package/dist/{env-validation-Bosj7EVg.mjs → env-validation-C8NL3lEH.mjs} +1 -1
- package/dist/{fetch-C8yhLoF3.mjs → fetch-CAIVkLvW.mjs} +1 -1
- package/dist/{fetch-B-gLGYVl.d.mts → fetch-CbI6lNnk.d.mts} +6 -4
- package/dist/{fetch-stream-DafNtVJC.mjs → fetch-stream-6Op0qlLd.mjs} +1 -1
- package/dist/{fetch-stream-DuwxWmBM.d.mts → fetch-stream-DoED9atq.d.mts} +1 -1
- package/dist/{gen-DSkScMIz.mjs → gen-BZmFOGDQ.mjs} +7 -7
- package/dist/gen-C6iknRdI.mjs +1 -0
- package/dist/{github-cmd-CA-lBdkn.mjs → github-cmd-7Oky9qgH.mjs} +6 -6
- package/dist/{handler-DnI_au0K.mjs → handler-C9SnmeW1.mjs} +5 -4
- package/dist/{handler-BR6Tvjkp.d.mts → handler-DjqciiDc.d.mts} +20 -7
- package/dist/{headers--cbz6iZ8.mjs → headers-CimYIfQI.mjs} +1 -1
- package/dist/{help-1OCFDsRr.mjs → help-CNuUb47C.mjs} +7 -3
- package/dist/help-C_cqTByy.mjs +1 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +154 -109
- package/dist/{info-BpxpsX0B.mjs → info-DwB8IWIx.mjs} +4 -4
- package/dist/{init-DpVXO5S-.mjs → init-CUGSmcED.mjs} +33 -31
- package/dist/{link-DAXOT-G_.mjs → link-BlRTGHan.mjs} +6 -6
- package/dist/{list-BFQ0gcML.mjs → list-iCg7d5Pa.mjs} +7 -7
- package/dist/{live-DF4HUl2m.mjs → live-CYJ4KGoR.mjs} +2 -2
- package/dist/{live-0xrcVpyq.d.mts → live-zKGbRT4h.d.mts} +2 -2
- package/dist/{local-d1-CLVPP6v7.mjs → local-d1-CFcH9Bx3.mjs} +2 -2
- package/dist/login-C4q1S-5b.mjs +1 -0
- package/dist/{login-RIw7ffPe.mjs → login-TA51e5Fw.mjs} +5 -5
- package/dist/{logs-B2OeLS4X.mjs → logs-BlyAxlvx.mjs} +6 -6
- package/dist/{migrate-DiI50Chz.mjs → migrate-BH6LCr00.mjs} +5 -5
- package/dist/migrate-CVBsSFhC.mjs +1 -0
- package/dist/nitro.d.mts +5 -0
- package/dist/nitro.mjs +27 -8
- package/dist/{node-Bc-dBAGL.mjs → node-B0otYjDv.mjs} +4 -4
- package/dist/{operator-args-D79WQP70.mjs → operator-args-DuKAQ3Ks.mjs} +1 -1
- package/dist/{operator-auth-CfDcmzpo.mjs → operator-auth-CD3pap65.mjs} +1 -1
- package/dist/{operator-client-BIY4-N_6.mjs → operator-client-XvXTkea6.mjs} +2 -2
- package/dist/{operator-cmd-CEI5Aaza.mjs → operator-cmd-CoHlJjcT.mjs} +7 -7
- package/dist/operator-cmd-DnaCnCSP.mjs +1 -0
- package/dist/output-CNsMDEd2.mjs +1 -0
- package/dist/{output-BCdLioKP.mjs → output-CXJTIAtF.mjs} +1 -1
- package/dist/pages/client.d.mts +16 -13
- package/dist/pages/client.mjs +34 -66
- package/dist/pages/index.d.mts +4 -3
- package/dist/pages/index.mjs +6 -6
- package/dist/pages/islands-plugin.mjs +1 -1
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +1 -1
- package/dist/pages/serialize.d.mts +2 -2
- package/dist/pages/serialize.mjs +1 -1
- package/dist/platform-args-B7-wQ0_B.mjs +1 -0
- package/dist/{platform-args-Cx1M-7bq.mjs → platform-args-DfT8yQBF.mjs} +1 -1
- package/dist/{platform-auth-config-ZrYm8KVs.mjs → platform-auth-config-MO0VdVs9.mjs} +10 -10
- package/dist/{platform-auth-protection-t6mdY4nn.mjs → platform-auth-protection-Dv208eyL.mjs} +8 -8
- package/dist/{platform-auth-recovery-XeBmPTXx.mjs → platform-auth-recovery-DvAQ674F.mjs} +7 -7
- package/dist/{platform-cmd-C7BevP9b.mjs → platform-cmd-BpUA19r_.mjs} +1 -1
- package/dist/{platform-cmd-EXehmSYA.mjs → platform-cmd-dlSxrcQ7.mjs} +9 -9
- package/dist/{platform-domain-DR263ObA.mjs → platform-domain-DSO4eUEw.mjs} +5 -5
- package/dist/{platform-lifecycle-BvU_TNji.mjs → platform-lifecycle-BSvsyB_x.mjs} +17 -17
- package/dist/{platform-lifecycle-CN4aXldN.mjs → platform-lifecycle-CfcFygHb.mjs} +1 -1
- package/dist/{platform-management-yS2sve3V.mjs → platform-management-BMdyt667.mjs} +1 -1
- package/dist/{platform-management-_UE1_GM8.mjs → platform-management-CrP1XhVd.mjs} +4 -4
- package/dist/{platform-plans-config-Dx1agneU.mjs → platform-plans-config-CgDiwflR.mjs} +5 -5
- package/dist/{platform-recovery-CPVk9-Q4.mjs → platform-recovery-CHWwXVZ6.mjs} +3 -3
- package/dist/{platform-setup-Vw1AaUN8.mjs → platform-setup-BTQVbnTC.mjs} +3 -3
- package/dist/{plugin-inference-bQ1Be840.mjs → plugin-inference-g66Q1Mx9.mjs} +4 -4
- package/dist/prepare-Bx4a8cb1.mjs +1 -0
- package/dist/{prepare-BkRhDnxw.mjs → prepare-DJYHjpzq.mjs} +3 -3
- package/dist/{prepare-D8L9AQbw.mjs → prepare-DXduEwQp.mjs} +11 -8
- package/dist/{prerender-render-RlAj6hh8.mjs → prerender-render-BN9Lmebs.mjs} +29 -13
- package/dist/prerender-render.d.mts +10 -2
- package/dist/prerender-render.mjs +1 -1
- package/dist/{project-cmd-DH3CuFC6.mjs → project-cmd-Dfb1Sg8w.mjs} +18 -18
- package/dist/{project-team-MjT5K4rQ.mjs → project-team-BO2dyc7S.mjs} +5 -5
- package/dist/{project-token-BKHGwY3k.mjs → project-token-ByO2mEI2.mjs} +5 -5
- package/dist/{project-tsconfig-BMveFb4b.mjs → project-tsconfig-nhnTWO_Y.mjs} +3 -1
- package/dist/{project-zero-trust-Bzdd05-h.mjs → project-zero-trust-CoQfwRBR.mjs} +5 -5
- package/dist/{protocol-CkwjASep.d.mts → protocol-xZMvWsrg.d.mts} +5 -3
- package/dist/{protocol-COyySMki.mjs → protocol-yxdHxFLN.mjs} +47 -11
- package/dist/{provision-CYhZR_Mn.mjs → provision-CMH4-8ri.mjs} +1 -1
- package/dist/{provision-B0HqoRuI.mjs → provision-D5q-ptD3.mjs} +2 -2
- package/dist/{requests-daJmVpjk.mjs → requests-CPOiDkjh.mjs} +4 -4
- package/dist/resolve-project-BALVa9q0.mjs +1 -0
- package/dist/{resolve-project-D0YNnJfm.mjs → resolve-project-ClvLMTI9.mjs} +1 -1
- package/dist/{rollback-AVwiMAkk.mjs → rollback-BfCs2la4.mjs} +7 -7
- package/dist/{route-types-e69EqY88.mjs → route-types-Cl3x0Q8B.mjs} +265 -12
- package/dist/{route-url-C_YIH_zO.d.mts → route-url-C3JwYrER.d.mts} +8 -3
- package/dist/{route-url-CRDF-I0I.mjs → route-url-CfCR4oMj.mjs} +4 -3
- package/dist/routes-stub.d.mts +10 -1
- package/dist/routes-stub.mjs +1 -1
- package/dist/{runner-QMeOpScZ.mjs → runner-CTk21HrO.mjs} +1 -1
- package/dist/{runner-mysql-0zVmB1JW.mjs → runner-mysql-CHvEg_sy.mjs} +1 -1
- package/dist/runtime/ai.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 +1 -1
- package/dist/runtime/better-auth-mysql.mjs +1 -1
- package/dist/runtime/better-auth-pg.d.mts +1 -1
- package/dist/runtime/better-auth-pg.mjs +1 -1
- package/dist/runtime/better-auth.d.mts +1 -1
- package/dist/runtime/better-auth.mjs +1 -1
- package/dist/runtime/client-react.d.mts +3 -3
- package/dist/runtime/client-react.mjs +2 -2
- package/dist/runtime/client-solid.d.mts +3 -3
- package/dist/runtime/client-solid.mjs +2 -2
- package/dist/runtime/client-svelte.d.mts +3 -3
- package/dist/runtime/client-svelte.mjs +2 -2
- package/dist/runtime/client-vue.d.mts +3 -3
- package/dist/runtime/client-vue.mjs +2 -2
- package/dist/runtime/client.d.mts +3 -3
- package/dist/runtime/client.mjs +2 -2
- package/dist/runtime/email/testing.mjs +2 -2
- package/dist/runtime/email.mjs +3 -3
- package/dist/runtime/env-public.mjs +2 -46
- package/dist/runtime/fetch-server.d.mts +1 -1
- package/dist/runtime/fetch-server.mjs +1 -1
- package/dist/runtime/fetch-stream.d.mts +2 -2
- package/dist/runtime/fetch-stream.mjs +1 -1
- package/dist/runtime/fetch.d.mts +1 -1
- package/dist/runtime/fetch.mjs +1 -1
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/handler.mjs +1 -1
- package/dist/runtime/isr.d.mts +3 -1
- package/dist/runtime/live-client.d.mts +11 -2
- package/dist/runtime/live-client.mjs +8 -0
- package/dist/runtime/live-server.mjs +1 -1
- package/dist/runtime/live.d.mts +1 -1
- package/dist/runtime/live.mjs +1 -1
- package/dist/runtime/log.mjs +1 -1
- package/dist/runtime/remote/index.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 +15 -4
- package/dist/runtime/routing.mjs +93 -11
- package/dist/runtime/sandbox.mjs +1 -1
- package/dist/runtime/sse-client.d.mts +9 -1
- package/dist/runtime/sse-client.mjs +7 -0
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/validator.mjs +1 -1
- package/dist/runtime/ws-server.d.mts +3 -3
- package/dist/runtime/ws-server.mjs +1 -1
- package/dist/runtime/ws.d.mts +1 -1
- package/dist/runtime/ws.mjs +1 -1
- package/dist/{scan-F0psanp7.mjs → scan-L8OSv1f7.mjs} +10 -7
- package/dist/{secret-szNdoeKa.mjs → secret-CuI6LTpD.mjs} +7 -7
- package/dist/serialize-DN-envGQ.d.mts +18 -0
- package/dist/serialize-Pf-CIQK_.mjs +39 -0
- package/dist/{skills-D393E4lB.mjs → skills-BBO9wMjB.mjs} +1 -1
- package/dist/{subcommand-prompt-CxJXporl.mjs → subcommand-prompt-BZMnCA8T.mjs} +2 -2
- package/dist/url-CuoEn0o3.mjs +43 -0
- package/dist/validator-8-NZs2Xr.mjs +168 -0
- package/dist/{version-metadata-BC3LK7Y-.mjs → version-metadata-eUd6Ar_U.mjs} +1 -1
- package/dist/wrangler-R3kMdJfw.mjs +1 -0
- package/dist/{wrangler-Gn4EoY4-.mjs → wrangler-k40T7XTQ.mjs} +2 -2
- package/dist/{wrapper-B9W9RE8z.mjs → wrapper-BGsi_uHs.mjs} +11 -8
- package/dist/{ws-Dmjg5NH2.d.mts → ws-DB8Feytg.d.mts} +2 -2
- package/docs/guide/ai.md +2 -0
- package/docs/guide/auth.md +62 -0
- package/docs/guide/database.md +33 -0
- package/docs/guide/deployment.md +8 -0
- package/docs/guide/edge/prerendering.md +9 -4
- package/docs/guide/edge/revalidation.md +3 -0
- package/docs/guide/live.md +2 -0
- package/docs/guide/pages-routing/actions-and-forms.md +15 -10
- package/docs/guide/pages-routing/head.md +3 -1
- package/docs/guide/pages-routing/islands.md +1 -1
- package/docs/guide/pages-routing/loaders.md +2 -0
- package/docs/guide/pages-routing/markdown.md +2 -2
- package/docs/guide/pages-routing/overview.md +139 -10
- package/docs/guide/quickstart.md +1 -0
- package/docs/guide/sse.md +2 -0
- package/docs/guide/ssg.md +23 -2
- package/docs/guide/storage.md +6 -2
- package/docs/guide/type-safety.md +307 -26
- package/docs/guide/typed-fetch.md +7 -3
- package/docs/guide/websockets.md +5 -5
- package/docs/integrations/cloudflare.md +10 -10
- package/docs/integrations/frameworks/nuxt.md +2 -0
- package/docs/integrations/frameworks/overview.md +2 -0
- package/docs/integrations/nodejs-bun-deno.md +65 -0
- package/docs/reference/api/auth.md +19 -0
- package/docs/reference/api/client.md +6 -4
- package/docs/reference/api/handlers.md +3 -1
- package/docs/reference/api/pages.md +8 -8
- package/docs/reference/api/resources.md +3 -1
- package/docs/reference/api/rewrites.md +16 -4
- package/docs/reference/api/types.md +9 -2
- package/docs/reference/cli/database.md +2 -0
- package/docs/reference/cli/deploy.md +17 -11
- package/docs/reference/cli.md +3 -0
- package/docs/reference/config.md +24 -2
- package/package.json +25 -23
- package/schema.json +4 -0
- package/skills/void/SKILL.md +5 -0
- package/dist/cf-build-output-CmDOcA7K.mjs +0 -1
- package/dist/client-CEtr5UOR.mjs +0 -1
- package/dist/deploy-DMhOyebt.mjs +0 -2
- package/dist/gen-BbT1Ku1P.mjs +0 -1
- package/dist/help-Ba8Dq5-r.mjs +0 -1
- package/dist/login-BX2gzHUt.mjs +0 -1
- package/dist/migrate-CUGMGaIM.mjs +0 -1
- package/dist/operator-cmd-oTT2MA9G.mjs +0 -1
- package/dist/output-E6gecbbV.mjs +0 -1
- package/dist/platform-args-C7XUw9mw.mjs +0 -1
- package/dist/prepare-CZRVGNld.mjs +0 -1
- package/dist/resolve-project-CgfjtOwz.mjs +0 -1
- package/dist/serialize-DUuYuaY3.mjs +0 -29
- package/dist/serialize-I4EmS-Wf.d.mts +0 -16
- package/dist/validator-CTfmzZYb.mjs +0 -69
- package/dist/wrangler-CQ5c-MtJ.mjs +0 -1
- package/dist/{cf-access-BmBT2h8_.mjs → cf-access-Dnyw8KFY.mjs} +1 -1
- package/dist/{config-s6TkpSat.mjs → config-eeDzKBS9.mjs} +1 -1
- package/dist/{entry-DFBca6aS.mjs → entry-Bw-G1VVx.mjs} +1 -1
- package/dist/{env-types-Bd8DkQhl.mjs → env-types-Dz9qkiOn.mjs} +1 -1
- package/dist/{inbound-CdO-qY0w.mjs → inbound-C2H6Dzz1.mjs} +2 -2
- package/dist/{runner-5MCSimKx.mjs → runner-CMZb7jNU.mjs} +1 -1
- package/dist/{runner-mysql-Bdmsp_x4.mjs → runner-mysql-BXfcQQj3.mjs} +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { L as log } from "./dist-BQdgCVQF.mjs";
|
|
2
|
+
import { c as getToken, f as removeToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
+
import { r as PlatformClient } from "./client-BEZmTP6p.mjs";
|
|
4
|
+
import { n as runLoginCommand } from "./login-TA51e5Fw.mjs";
|
|
5
|
+
import { m as printSuccess } from "./output-CXJTIAtF.mjs";
|
|
6
6
|
import { execSync } from "node:child_process";
|
|
7
7
|
// src/cli/account-cmd.ts
|
|
8
8
|
async function runAccountCommand(root, args) {
|
|
9
9
|
switch (args.subcommand) {
|
|
10
10
|
case "login": return runLoginCommand(root);
|
|
11
|
-
case "link": return import("./auth-link-
|
|
11
|
+
case "link": return import("./auth-link-CW1Zh6FM.mjs").then(({ runAuthLink }) => runAuthLink(root, args.connectionId));
|
|
12
12
|
case "logout":
|
|
13
13
|
if (removeToken(root)) printSuccess("Logged out.");
|
|
14
14
|
else log.info("Not logged in.");
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { c as scanWebSocketRoutesSync, d as readResourceDefinition, f as listConventionFiles, h as needsApplicationDatabase, i as inferProjectBindings, n as FRAMEWORK_SCAN_DIRS, p as listRouteFiles, r as detectFramework, s as isWebSocketPatternFile } from "./plugin-inference-g66Q1Mx9.mjs";
|
|
2
|
+
import { r as findVoidAuthConfig } from "./config-eeDzKBS9.mjs";
|
|
3
|
+
import { l as getDatabaseDialect, m as resolveBindingNames } from "./config-5oSQhZNj.mjs";
|
|
1
4
|
import { a as join, i as isAbsolute, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { c as scanWebSocketRoutesSync, d as readResourceDefinition, f as listConventionFiles, h as needsApplicationDatabase, i as inferProjectBindings, n as FRAMEWORK_SCAN_DIRS, p as listRouteFiles, r as detectFramework, s as isWebSocketPatternFile } from "./plugin-inference-bQ1Be840.mjs";
|
|
3
|
-
import { i as resolveProjectPaths, n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
|
|
4
|
-
import { r as findVoidAuthConfig } from "./config-s6TkpSat.mjs";
|
|
5
|
-
import { l as getDatabaseDialect, m as resolveBindingNames } from "./config-hL-S-Y9D.mjs";
|
|
6
|
-
import { n as globSync } from "./dist-BWNkVq50.mjs";
|
|
7
|
-
import { h as parseRouteFilename, m as isRouteEnabledForEnvironment, n as scanPages, p as compareRouteSpecificity } from "./scan-F0psanp7.mjs";
|
|
8
|
-
import { n as isIdentifier, o as moduleExportName } from "./ast-Cv0JwXqb.mjs";
|
|
9
5
|
import { a as staticLiteral, i as staticExportInitializers, o as unwrapStaticExpression, t as bindingNames } from "./ast-bindings-BkivMJIo.mjs";
|
|
10
6
|
import { n as resourceNameWords } from "./resource-name-DlJ9QXzg.mjs";
|
|
11
7
|
import { t as collectMigrations } from "./collect-C6Blu9yw.mjs";
|
|
8
|
+
import { i as resolveProjectPaths, n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
|
|
12
9
|
import { i as scanEmailHandlersSync } from "./email-BHY72ixO.mjs";
|
|
10
|
+
import { g as parseRouteFilename, h as isRouteEnabledForEnvironment, m as compareRouteSpecificity, n as scanPages } from "./scan-L8OSv1f7.mjs";
|
|
11
|
+
import { n as globSync } from "./dist-BWNkVq50.mjs";
|
|
12
|
+
import { n as isIdentifier, o as moduleExportName } from "./ast-Cv0JwXqb.mjs";
|
|
13
13
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
14
14
|
import { parseSync } from "vite";
|
|
15
15
|
import { fileURLToPath } from "node:url";
|
|
@@ -185,6 +185,7 @@ function parseMiddlewareDefinitions(files) {
|
|
|
185
185
|
async function scanRoutes(root, options) {
|
|
186
186
|
const { paths, inventory } = options;
|
|
187
187
|
const pages = await scanPages(root, {
|
|
188
|
+
trailingSlash: options.trailingSlash,
|
|
188
189
|
output: options.output,
|
|
189
190
|
paths,
|
|
190
191
|
checkRoutes: options.checkPageRoutes,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { l as scanRoutes, t as analyzeApplicationSync } from "./application-analysis-
|
|
1
|
+
import { l as scanRoutes, t as analyzeApplicationSync } from "./application-analysis-OV0CBJ80.mjs";
|
|
2
2
|
// src/application-routing.ts
|
|
3
3
|
/** Complete route/page analysis using the same resource and handler inventories. */
|
|
4
4
|
async function completeApplicationAnalysis(analysis) {
|
|
5
5
|
const scan = await scanRoutes(analysis.root, {
|
|
6
|
+
trailingSlash: analysis.config.routing?.trailingSlash,
|
|
6
7
|
output: analysis.config.output,
|
|
7
8
|
paths: analysis.paths,
|
|
8
9
|
checkPageRoutes: !analysis.framework,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as getApiUrl, s as getSiteDomain, p as runPlatformLogin } from "./auth-
|
|
1
|
+
export { a as getApiUrl, s as getSiteDomain, p as runPlatformLogin } from "./auth-CCk9Seol.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
+
import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
|
|
3
|
+
import { t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
|
|
2
4
|
import { C as deleteKeyringPassword, T as writeKeyringPassword, c as normalizePlatformApiUrl, i as getActivePlatformConnection, s as listPlatformConnections, u as platformCredentialAccount, w as readKeyringPassword } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
3
5
|
import { a as readProjectPlatformUrl, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
4
|
-
import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
|
|
5
|
-
import { t as ensurePlatformAccessToken } from "./cf-access-BmBT2h8_.mjs";
|
|
6
6
|
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { createHash, randomBytes } from "node:crypto";
|
|
8
8
|
import { homedir } from "node:os";
|
|
@@ -31,6 +31,11 @@ type AuthUser = VoidAuthTypes extends {
|
|
|
31
31
|
type AuthSession = VoidAuthTypes extends {
|
|
32
32
|
session: infer S;
|
|
33
33
|
} ? S : Session;
|
|
34
|
+
/** Better Auth's instance, including plugins configured by the app. */
|
|
35
|
+
type InferAuthInstance<T> = [unknown] extends [T] ? Auth<BetterAuthOptions> : Auth<Extract<T extends ((...args: Array<never>) => infer R) ? R : T, BetterAuthOptions>>;
|
|
36
|
+
type AuthInstance = VoidAuthTypes extends {
|
|
37
|
+
auth: infer A;
|
|
38
|
+
} ? A : Auth<BetterAuthOptions>;
|
|
34
39
|
type AuthState = {
|
|
35
40
|
session: AuthSession;
|
|
36
41
|
user: AuthUser;
|
|
@@ -60,9 +65,11 @@ declare const authContext: AsyncLocalStorage<AuthContextStore>;
|
|
|
60
65
|
declare function defineAuth<T extends VoidAuthConfig>(config: T): T;
|
|
61
66
|
declare function getUser(): AuthUser | null;
|
|
62
67
|
declare function getSession(): AuthState | null;
|
|
68
|
+
/** Returns the instance created by Void's auth middleware for this request. */
|
|
69
|
+
declare function getAuth(c: Context): AuthInstance;
|
|
63
70
|
declare function requireAuth<E extends Env & {
|
|
64
71
|
Variables: {
|
|
65
72
|
user: AuthUser | null;
|
|
66
73
|
};
|
|
67
74
|
}>(c: Context<E>): AuthUser;
|
|
68
|
-
export {
|
|
75
|
+
export { InferAuthInstance as a, VoidAuthConfigContext as c, defineAuth as d, getAuth as f, requireAuth as h, AuthUser as i, VoidAuthTypes as l, getUser as m, AuthSession as n, InferAuthSession as o, getSession as p, AuthState as r, VoidAuthConfig as s, AuthInstance as t, authContext as u };
|
|
@@ -13,9 +13,15 @@ function getUser() {
|
|
|
13
13
|
function getSession() {
|
|
14
14
|
return authContext.getStore()?.state ?? null;
|
|
15
15
|
}
|
|
16
|
+
/** Returns the instance created by Void's auth middleware for this request. */
|
|
17
|
+
function getAuth(c) {
|
|
18
|
+
const auth = c.get("__voidAuth");
|
|
19
|
+
if (!auth) throw new Error("Better Auth is not available for this request. Enable auth in void.config.ts.");
|
|
20
|
+
return auth;
|
|
21
|
+
}
|
|
16
22
|
function requireAuth(c) {
|
|
17
23
|
const user = c.get("user");
|
|
18
24
|
if (!user) throw new HTTPException(401, { message: "Unauthorized" });
|
|
19
25
|
return user;
|
|
20
26
|
}
|
|
21
|
-
export {
|
|
27
|
+
export { getUser as a, getSession as i, defineAuth as n, requireAuth as o, getAuth as r, authContext as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as discoverPlatform } from "./platform-cmd-
|
|
1
|
+
import { L as log } from "./dist-BQdgCVQF.mjs";
|
|
2
|
+
import { a as getApiUrl, c as getToken, m as savePlatformToken, p as runPlatformLogin, u as openBrowser } from "./auth-CCk9Seol.mjs";
|
|
3
|
+
import { r as PlatformClient } from "./client-BEZmTP6p.mjs";
|
|
4
|
+
import { r as selectPlatformLoginMethod } from "./login-TA51e5Fw.mjs";
|
|
5
|
+
import { l as formatUrl } from "./output-CXJTIAtF.mjs";
|
|
6
|
+
import { t as discoverPlatform } from "./platform-cmd-dlSxrcQ7.mjs";
|
|
7
7
|
// src/cli/auth-link.ts
|
|
8
8
|
async function runAuthLink(root, connectionId) {
|
|
9
9
|
const token = getToken(root);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { K as select, tt as isCancel } from "./dist-BQdgCVQF.mjs";
|
|
1
2
|
import { c as normalizePlatformApiUrl, s as listPlatformConnections } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
2
3
|
import { n as readDeploymentPlatform } from "./project-CLwxcEdq.mjs";
|
|
3
|
-
import { K as select, tt as isCancel } from "./dist-D23AAMxT.mjs";
|
|
4
4
|
// src/cli/auth-router.ts
|
|
5
5
|
async function chooseDestination(root, args, interactive) {
|
|
6
6
|
const saved = readDeploymentPlatform(root);
|
|
@@ -39,11 +39,11 @@ async function chooseDestination(root, args, interactive) {
|
|
|
39
39
|
async function runAuthRouter(root, args, interactive = Boolean(process.stdin.isTTY)) {
|
|
40
40
|
const destination = await chooseDestination(root, args, interactive);
|
|
41
41
|
if (destination.platform === "cloudflare") {
|
|
42
|
-
const { runCloudflareCommand } = await import("./cloudflare-cmd-
|
|
42
|
+
const { runCloudflareCommand } = await import("./cloudflare-cmd-DJaxC-bc.mjs");
|
|
43
43
|
await runCloudflareCommand(root, { subcommand: args.subcommand });
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
|
-
const { runAccountCommand } = await import("./account-cmd-
|
|
46
|
+
const { runAccountCommand } = await import("./account-cmd-BfkJ_1PC.mjs");
|
|
47
47
|
const subcommand = args.subcommand === "status" ? "whoami" : args.subcommand;
|
|
48
48
|
if (!destination.apiUrl) {
|
|
49
49
|
await runAccountCommand(root, { subcommand });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as VoidAuthProvider } from "./providers-D5P8j_8D.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { r as AuthState, s as VoidAuthConfig } from "./auth-CZrthGxs.mjs";
|
|
3
3
|
import { BetterAuthOptions, betterAuth } from "better-auth";
|
|
4
4
|
import { Context } from "hono";
|
|
5
5
|
import { DBFieldAttribute } from "better-auth/db";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as getVoidAuthProviderSettingEnvNames, o as isVoidSocialAuthProvider, r as getVoidAuthProviderEnvNames } from "./providers-ZARwX2cL.mjs";
|
|
2
2
|
import { i as authDependentRequests, r as SHARED_CACHE_HEADERS, t as isUnchangedStaticAsset } from "./static-asset-marker-DsQKz6lt.mjs";
|
|
3
|
-
import { t as authContext } from "./auth-
|
|
3
|
+
import { t as authContext } from "./auth-DyWp-fSo.mjs";
|
|
4
4
|
import { randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5
5
|
import { betterAuth } from "better-auth";
|
|
6
6
|
// src/runtime/better-auth-shared.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { H as outro, L as log } from "./dist-BQdgCVQF.mjs";
|
|
2
|
+
import { c as getToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
+
import { n as PlatformApiError, r as PlatformClient } from "./client-BEZmTP6p.mjs";
|
|
4
|
+
import { f as import_picocolors, i as dim, m as printSuccess } from "./output-CXJTIAtF.mjs";
|
|
1
5
|
import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { H as outro, L as log } from "./dist-D23AAMxT.mjs";
|
|
4
|
-
import { n as PlatformApiError, r as PlatformClient } from "./client-CoxPEhJq.mjs";
|
|
5
|
-
import { f as import_picocolors, i as dim, m as printSuccess } from "./output-BCdLioKP.mjs";
|
|
6
|
-
import { a as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-D0YNnJfm.mjs";
|
|
6
|
+
import { a as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-ClvLMTI9.mjs";
|
|
7
7
|
import { appendFileSync, writeFileSync } from "node:fs";
|
|
8
8
|
// src/cli/build-cmd.ts
|
|
9
9
|
const POLL_MS = 1e3;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { L as log } from "./dist-BQdgCVQF.mjs";
|
|
2
|
+
import { c as getToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
+
import { r as PlatformClient } from "./client-BEZmTP6p.mjs";
|
|
4
|
+
import { m as printSuccess, o as formatCount, r as createSpinner } from "./output-CXJTIAtF.mjs";
|
|
1
5
|
import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { L as log } from "./dist-D23AAMxT.mjs";
|
|
4
|
-
import { r as PlatformClient } from "./client-CoxPEhJq.mjs";
|
|
5
|
-
import { m as printSuccess, o as formatCount, r as createSpinner } from "./output-BCdLioKP.mjs";
|
|
6
|
-
import { a as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-D0YNnJfm.mjs";
|
|
6
|
+
import { a as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-ClvLMTI9.mjs";
|
|
7
7
|
// src/cli/cache.ts
|
|
8
8
|
async function runPurgeCacheCommand(root, projectSlug) {
|
|
9
9
|
console.log();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { A as confirm, H as outro, L as log, tt as isCancel } from "./dist-BQdgCVQF.mjs";
|
|
2
|
+
import { c as getToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
+
import { r as PlatformClient } from "./client-BEZmTP6p.mjs";
|
|
4
|
+
import { m as printSuccess } from "./output-CXJTIAtF.mjs";
|
|
1
5
|
import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
2
|
-
import { c as getToken } from "./auth-Dy8svcqQ.mjs";
|
|
3
|
-
import { A as confirm, H as outro, L as log, tt as isCancel } from "./dist-D23AAMxT.mjs";
|
|
4
|
-
import { r as PlatformClient } from "./client-CoxPEhJq.mjs";
|
|
5
|
-
import { m as printSuccess } from "./output-BCdLioKP.mjs";
|
|
6
6
|
// src/cli/cancel-deploy.ts
|
|
7
7
|
const ACTIVE_STATUSES = /* @__PURE__ */ new Set([
|
|
8
8
|
"pending",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as join, c as resolve, i as isAbsolute, n as dirname, r as extname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
+
import { n as record, t as migrateBuiltWranglerConfig } from "./cf-config-migrate-Bb-EdAQq.mjs";
|
|
2
3
|
import { n as readGeneratedWranglerConfigFile } from "./generated-wrangler-config-CoDaaFsA.mjs";
|
|
3
|
-
import { n as record, t as migrateBuiltWranglerConfig } from "./cf-config-migrate-Dy8MrKgF.mjs";
|
|
4
4
|
import { t as WORKER_CONDITIONS } from "./worker-conditions-CBZ0RYsZ.mjs";
|
|
5
5
|
import { copyFileSync, cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, rmSync, symlinkSync, writeFileSync } from "node:fs";
|
|
6
6
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
@@ -381,6 +381,7 @@ async function prepareBundledBuildOutput(options) {
|
|
|
381
381
|
configFile: false,
|
|
382
382
|
root: options.projectRoot,
|
|
383
383
|
publicDir: false,
|
|
384
|
+
envDir: false,
|
|
384
385
|
logLevel: "error",
|
|
385
386
|
plugins: [additionalModulesPlugin()],
|
|
386
387
|
resolve: { conditions: [...WORKER_CONDITIONS, "production"] },
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as prepareCfBuildOutput } from "./cf-build-output-CWNOH-KA.mjs";
|
|
@@ -43,7 +43,11 @@ function migrationInput(raw) {
|
|
|
43
43
|
return result;
|
|
44
44
|
}
|
|
45
45
|
function applyPreservationFlags(raw, worker) {
|
|
46
|
-
const keepBindings =
|
|
46
|
+
const keepBindings = raw.keep_vars === true || raw.keep_secrets === true ? [
|
|
47
|
+
...raw.keep_vars === true ? ["plain_text", "json"] : [],
|
|
48
|
+
"secret_text",
|
|
49
|
+
"secret_key"
|
|
50
|
+
] : [];
|
|
47
51
|
if (keepBindings.length === 0 && raw.keep_assets !== true) return;
|
|
48
52
|
const unsafe = record(worker.unsafe) ?? {};
|
|
49
53
|
const metadata = record(unsafe.metadata) ?? {};
|