void 1.6.2 → 1.8.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-CZKntRH2.mjs} +6 -6
- package/dist/action-key-ByZ6DDld.mjs +64 -0
- package/dist/{application-analysis-DlUG-XNT.mjs → application-analysis-CyTagJQM.mjs} +31 -10
- package/dist/{application-routing-GCBSwXA9.mjs → application-routing-BLrMVpqi.mjs} +2 -1
- package/dist/{auth-CL-p_rqV.mjs → auth-BN0NU9dz.mjs} +1 -1
- package/dist/{auth-CH4PLAX1.d.mts → auth-Bk9VGtQW.d.mts} +9 -2
- package/dist/{auth-Dy8svcqQ.mjs → auth-CCk9Seol.mjs} +2 -2
- package/dist/{auth-YVjBX5NY.mjs → auth-DyWp-fSo.mjs} +7 -1
- package/dist/{auth-link-g9J7MSmP.mjs → auth-link-BOaQWMKw.mjs} +6 -6
- package/dist/{auth-router-DMZbG9Qn.mjs → auth-router-D0-VcmDs.mjs} +3 -3
- package/dist/{better-auth-shared-BJyG2mH0.d.mts → better-auth-shared-CQFdtguU.d.mts} +2 -2
- package/dist/{better-auth-shared-C958aM7W.mjs → better-auth-shared-CdVyCUou.mjs} +1 -1
- package/dist/boundary-plans-CRmWH68v.d.mts +25 -0
- package/dist/{build-cmd-DmjbuT6d.mjs → build-cmd-JTsXXf2F.mjs} +5 -5
- package/dist/{cache-2khBO1MR.mjs → cache-D0m3Z_Xf.mjs} +5 -5
- package/dist/{cancel-deploy-_itbbvY3.mjs → cancel-deploy-Ce6Os4fa.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 +101 -26
- package/dist/cli/env-schema-probe.d.mts +1 -1
- package/dist/cli/env-schema-probe.mjs +3 -3
- package/dist/cli-main-rkrJy2Ge.mjs +1889 -0
- package/dist/client-D1Vz1Zep.mjs +1 -0
- package/dist/{client-CoxPEhJq.mjs → client-SZPyj4X_.mjs} +10 -4
- package/dist/{cloudflare-auth-CuS42-9A.mjs → cloudflare-auth-7jTqy9Bx.mjs} +1 -1
- package/dist/{cloudflare-cmd-DTF19-j-.mjs → cloudflare-cmd-ChPLQcTP.mjs} +5 -5
- package/dist/{cloudflare-config-Ce8j5S7V.mjs → cloudflare-config-DtOGAbeB.mjs} +2 -2
- package/dist/{cloudflare-connect-BN4dHp8i.mjs → cloudflare-connect-Co93VYTo.mjs} +3 -3
- package/dist/{cloudflare-operations-DrZGzQap.mjs → cloudflare-operations-CXaDKYj2.mjs} +6 -6
- package/dist/{cloudflare-operations-laxRA8HN.mjs → cloudflare-operations-DATekLwI.mjs} +1 -1
- package/dist/{cloudflare-process-D9aC-jXr.mjs → cloudflare-process-DmTxZR-N.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-DlvXt1JR.mjs} +7 -7
- package/dist/{create-project-Bq0M8MtO.mjs → create-project-CC_7hmYJ.mjs} +5 -5
- package/dist/{create-project-BiMmR5wA.mjs → create-project-DzY05xqC.mjs} +1 -1
- package/dist/{db-CqfT6lhV.mjs → db-FhyYGcJJ.mjs} +39 -39
- package/dist/{db-types-DRmxBJ2K.mjs → db-types-sVwEpyPR.mjs} +4 -2
- package/dist/{delete-CY4L8fi2.mjs → delete-CModjyOC.mjs} +5 -5
- package/dist/{deploy-La_Ly8g_.mjs → deploy-Cz9TEzZy.mjs} +502 -110
- package/dist/deploy-DMieisRu.mjs +2 -0
- package/dist/{deploy-managed-static-CESLfKHN.mjs → deploy-managed-static-DlxxXkAM.mjs} +16 -16
- package/dist/{deploy-transport-DcI6LXhY.mjs → deploy-transport-DUvm6-CR.mjs} +3 -3
- package/dist/deploy.mjs +8 -8
- package/dist/{dispatch-DM4Xdd2l.mjs → dispatch-CCiaAnSK.mjs} +7 -7
- package/dist/{dist-eV_Ep60B.mjs → dist-Cp4b1_T9.mjs} +1 -1
- package/dist/{dist-D23AAMxT.mjs → dist-STQXl8ck.mjs} +86 -138
- package/dist/{domain-BD1KOQL3.mjs → domain-DvdZPA50.mjs} +6 -6
- package/dist/{drizzle-C8MPqt5m.mjs → drizzle-D4V_06-B.mjs} +1 -1
- package/dist/{drizzle-lFdzSEa9.mjs → drizzle-DBSpPpU1.mjs} +34 -8
- package/dist/{email-XAspopcj.mjs → email-ASpNrfLd.mjs} +10 -10
- package/dist/{email-cloudflare-RxIQoPc9.mjs → email-cloudflare-kqoN9jst.mjs} +25 -16
- package/dist/{entry-DFBca6aS.mjs → entry-BweGTCgj.mjs} +1 -1
- package/dist/{env-DrYUh55t.mjs → env-Bpkg3G5i.mjs} +7 -7
- package/dist/{env-CuzZZyjB.mjs → env-UqS-21xi.mjs} +8 -1
- package/dist/env-mask-D31Qztl9.mjs +46 -0
- package/dist/{env-public-CeNeO_AT.d.mts → env-public-DtJL_hZq.d.mts} +8 -7
- package/dist/{env-validation-Del3C8AY.mjs → env-validation-BpCCQE_6.mjs} +6 -6
- package/dist/{env-validation-Bosj7EVg.mjs → env-validation-CN386Utu.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-M5fNQKfH.mjs +1 -0
- package/dist/{gen-DSkScMIz.mjs → gen-upKJChvd.mjs} +7 -7
- package/dist/{github-cmd-CA-lBdkn.mjs → github-cmd-BvMOlb8Z.mjs} +6 -6
- package/dist/{handler-BR6Tvjkp.d.mts → handler-BO7Od-z9.d.mts} +22 -8
- package/dist/{handler-DnI_au0K.mjs → handler-C9SnmeW1.mjs} +5 -4
- package/dist/{headers--cbz6iZ8.mjs → headers-COGEDoMN.mjs} +11 -2
- package/dist/help-CItQVDL4.mjs +1 -0
- package/dist/{help-1OCFDsRr.mjs → help-TPCjTu6e.mjs} +7 -3
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +379 -265
- package/dist/{info-BpxpsX0B.mjs → info-EsDyihwf.mjs} +4 -4
- package/dist/{init-DpVXO5S-.mjs → init-a4lVagrb.mjs} +33 -32
- package/dist/{link-DAXOT-G_.mjs → link-CE55DDzS.mjs} +6 -6
- package/dist/{list-BFQ0gcML.mjs → list-CxRthQks.mjs} +7 -7
- package/dist/{live-DF4HUl2m.mjs → live-CYJ4KGoR.mjs} +2 -2
- package/dist/{live-0xrcVpyq.d.mts → live-Kc55iuOQ.d.mts} +2 -2
- package/dist/{local-d1-CLVPP6v7.mjs → local-d1-CFcH9Bx3.mjs} +2 -2
- package/dist/{login-RIw7ffPe.mjs → login-AfcSGSmE.mjs} +5 -5
- package/dist/login-ZHsAm-I6.mjs +1 -0
- package/dist/{logs-B2OeLS4X.mjs → logs-BgRJuvb1.mjs} +6 -6
- package/dist/{migrate-DiI50Chz.mjs → migrate-BNAh6m_C.mjs} +5 -5
- package/dist/migrate-BflbbZQK.mjs +1 -0
- package/dist/nitro.d.mts +5 -0
- package/dist/nitro.mjs +27 -8
- package/dist/{node-Bc-dBAGL.mjs → node-CXFUw0Uz.mjs} +5 -5
- package/dist/{operator-args-D79WQP70.mjs → operator-args-DGTuCdSE.mjs} +9 -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-C-viB7Si.mjs} +7 -7
- package/dist/operator-cmd-D6qNuJ_z.mjs +1 -0
- package/dist/output-BsdnNpxa.mjs +1 -0
- package/dist/{output-BCdLioKP.mjs → output-DNVILSz2.mjs} +1 -1
- package/dist/pages/client.d.mts +43 -15
- package/dist/pages/client.mjs +165 -80
- package/dist/pages/index.d.mts +6 -4
- package/dist/pages/index.mjs +6 -6
- package/dist/pages/islands-plugin.d.mts +1 -1
- package/dist/pages/islands-plugin.mjs +13 -2
- 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-Cx1M-7bq.mjs → platform-args-CiYeZmc5.mjs} +1 -1
- package/dist/platform-args-DJvF1-kl.mjs +1 -0
- package/dist/{platform-auth-config-ZrYm8KVs.mjs → platform-auth-config-Dt2qEc2w.mjs} +10 -10
- package/dist/{platform-auth-protection-t6mdY4nn.mjs → platform-auth-protection-B7TaF-PZ.mjs} +8 -8
- package/dist/{platform-auth-recovery-XeBmPTXx.mjs → platform-auth-recovery-suXSteJ6.mjs} +7 -7
- package/dist/{platform-cmd-EXehmSYA.mjs → platform-cmd-9rvYBBtr.mjs} +9 -9
- package/dist/{platform-cmd-C7BevP9b.mjs → platform-cmd-DuAsIxbU.mjs} +1 -1
- package/dist/{platform-domain-DR263ObA.mjs → platform-domain-DhH_vDr6.mjs} +5 -5
- package/dist/{platform-lifecycle-CN4aXldN.mjs → platform-lifecycle-3uI-E2bF.mjs} +1 -1
- package/dist/{platform-lifecycle-BvU_TNji.mjs → platform-lifecycle-CXmXe2xt.mjs} +17 -17
- package/dist/{platform-management-_UE1_GM8.mjs → platform-management-BBCHfwji.mjs} +4 -4
- package/dist/{platform-management-yS2sve3V.mjs → platform-management-PdrgDQTe.mjs} +1 -1
- package/dist/{platform-plans-config-Dx1agneU.mjs → platform-plans-config-BGwkXYDM.mjs} +5 -5
- package/dist/{platform-recovery-CPVk9-Q4.mjs → platform-recovery-C8NxXGRR.mjs} +3 -3
- package/dist/{platform-setup-Vw1AaUN8.mjs → platform-setup-Casiffqj.mjs} +3 -3
- package/dist/{plugin-inference-bQ1Be840.mjs → plugin-inference-CErfTgEx.mjs} +4 -4
- package/dist/{prepare-D8L9AQbw.mjs → prepare-BDKWZgfL.mjs} +12 -9
- package/dist/{prepare-BkRhDnxw.mjs → prepare-BLrzXjIl.mjs} +3 -3
- package/dist/prepare-a1_5usAn.mjs +1 -0
- package/dist/{prerender-render-RlAj6hh8.mjs → prerender-render-BAdYhivW.mjs} +44 -15
- package/dist/prerender-render.d.mts +12 -2
- package/dist/prerender-render.mjs +1 -1
- package/dist/{project-cmd-DH3CuFC6.mjs → project-cmd-DzGvxXKH.mjs} +18 -18
- package/dist/{project-team-MjT5K4rQ.mjs → project-team-C5XtHbZk.mjs} +5 -5
- package/dist/{project-token-BKHGwY3k.mjs → project-token-B4D5yhHQ.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--0LvktDg.mjs} +5 -5
- package/dist/{protocol-COyySMki.mjs → protocol-B1Tvc9-x.mjs} +232 -74
- package/dist/{protocol-CkwjASep.d.mts → protocol-Cg2I81NA.d.mts} +13 -4
- package/dist/{provision-B0HqoRuI.mjs → provision-C3yiHdld.mjs} +2 -2
- package/dist/{provision-CYhZR_Mn.mjs → provision-CAcrauvr.mjs} +1 -1
- package/dist/{requests-daJmVpjk.mjs → requests-CrRiTgQA.mjs} +4 -4
- package/dist/resolve-project-C5wC-Hoi.mjs +1 -0
- package/dist/{resolve-project-D0YNnJfm.mjs → resolve-project-Da3OgCU1.mjs} +1 -1
- package/dist/{rollback-AVwiMAkk.mjs → rollback-BsmQyj-Q.mjs} +7 -7
- package/dist/{route-types-e69EqY88.mjs → route-types-CgtlFCDz.mjs} +268 -14
- 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 +14 -4
- 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/db.d.mts +6 -3
- package/dist/runtime/db.mjs +2 -2
- package/dist/runtime/email/testing.mjs +2 -2
- package/dist/runtime/email.mjs +3 -3
- package/dist/runtime/env-public.d.mts +1 -1
- package/dist/runtime/env-public.mjs +55 -85
- 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 +21 -5
- package/dist/runtime/routing.mjs +251 -29
- 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-BJ3bj6aP.mjs} +236 -32
- package/dist/{secret-szNdoeKa.mjs → secret-D0g5oBsP.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-CoBB9_Ao.mjs} +1 -1
- package/dist/{ast-bindings-BkivMJIo.mjs → static-exports-DFkzL-NX.mjs} +96 -33
- package/dist/{subcommand-prompt-CxJXporl.mjs → subcommand-prompt-0yIARXf2.mjs} +2 -2
- package/dist/{types-agfx0alu.d.mts → types-IPut3_Yx.d.mts} +15 -1
- 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-CVMZarxf.mjs} +11 -8
- package/dist/{ws-Dmjg5NH2.d.mts → ws--U7QicYy.d.mts} +2 -2
- package/docs/guide/ai.md +3 -0
- package/docs/guide/app-types.md +1 -0
- package/docs/guide/auth.md +63 -0
- package/docs/guide/database/d1.md +16 -1
- package/docs/guide/database/mysql.md +1 -0
- package/docs/guide/database/postgresql.md +1 -0
- package/docs/guide/database.md +34 -0
- package/docs/guide/deployment.md +9 -0
- package/docs/guide/durable-state.md +1 -0
- package/docs/guide/edge/headers.md +1 -0
- package/docs/guide/edge/prerendering.md +10 -4
- package/docs/guide/edge/redirects.md +1 -0
- package/docs/guide/edge/revalidation.md +6 -0
- package/docs/guide/edge/rewrites.md +1 -0
- package/docs/guide/edge/static-assets.md +1 -0
- package/docs/guide/email/domains.md +1 -0
- package/docs/guide/email/receiving.md +3 -2
- package/docs/guide/email/sending.md +3 -2
- package/docs/guide/email.md +1 -0
- package/docs/guide/env-vars.md +4 -0
- package/docs/guide/index.md +1 -0
- package/docs/guide/jobs.md +1 -0
- package/docs/guide/kv.md +1 -0
- package/docs/guide/live.md +3 -0
- package/docs/guide/pages-routing/actions-and-forms.md +51 -28
- package/docs/guide/pages-routing/errors.md +101 -0
- package/docs/guide/pages-routing/head.md +4 -1
- package/docs/guide/pages-routing/islands.md +2 -1
- package/docs/guide/pages-routing/layouts.md +3 -0
- package/docs/guide/pages-routing/loaders.md +3 -0
- package/docs/guide/pages-routing/markdown.md +3 -3
- package/docs/guide/pages-routing/overview.md +142 -10
- package/docs/guide/pages-routing/view-transitions.md +1 -0
- package/docs/guide/platform/administration/access.md +1 -0
- package/docs/guide/platform/administration/connected-apps.md +4 -0
- package/docs/guide/platform/administration/email.md +1 -0
- package/docs/guide/platform/administration/operations.md +1 -0
- package/docs/guide/platform/administration/plans.md +1 -0
- package/docs/guide/platform/administration/projects.md +11 -0
- package/docs/guide/platform/administration/zero-trust.md +1 -0
- package/docs/guide/platform/development/local.md +1 -0
- package/docs/guide/platform/development/runtime.md +1 -0
- package/docs/guide/platform/development/schema-ci.md +1 -0
- package/docs/guide/platform/installation/ci.md +1 -0
- package/docs/guide/platform/installation/credentials.md +1 -0
- package/docs/guide/platform/installation/domains.md +1 -0
- package/docs/guide/platform/installation/first-deployment.md +1 -0
- package/docs/guide/platform/installation/maintenance.md +1 -0
- package/docs/guide/platform/installation/prerequisites.md +1 -0
- package/docs/guide/platform/installation/setup.md +1 -0
- package/docs/guide/platform/installation/uninstall.md +1 -0
- package/docs/guide/platform-administration.md +1 -0
- package/docs/guide/platform-development.md +1 -0
- package/docs/guide/project-collaboration.md +1 -0
- package/docs/guide/queues.md +3 -0
- package/docs/guide/quickstart.md +4 -2
- package/docs/guide/remote-dev.md +1 -0
- package/docs/guide/sandboxes.md +1 -0
- package/docs/guide/self-hosted-platform.md +1 -0
- package/docs/guide/server-routing.md +1 -0
- package/docs/guide/sse.md +3 -0
- package/docs/guide/ssg.md +24 -2
- package/docs/guide/ssr.md +1 -0
- package/docs/guide/storage.md +7 -2
- package/docs/guide/testing.md +62 -0
- package/docs/guide/type-safety.md +308 -26
- package/docs/guide/typed-fetch.md +8 -3
- package/docs/guide/websockets.md +6 -5
- package/docs/index.md +1 -0
- package/docs/integrations/agents.md +1 -0
- package/docs/integrations/cloudflare.md +11 -10
- package/docs/integrations/frameworks/analog.md +1 -0
- package/docs/integrations/frameworks/astro.md +1 -0
- package/docs/integrations/frameworks/nuxt.md +3 -0
- package/docs/integrations/frameworks/overview.md +3 -0
- package/docs/integrations/frameworks/react-router.md +1 -0
- package/docs/integrations/frameworks/sveltekit.md +1 -0
- package/docs/integrations/frameworks/tanstack-start.md +1 -0
- package/docs/integrations/hono.md +1 -0
- package/docs/integrations/nodejs-bun-deno.md +66 -0
- package/docs/reference/api/auth.md +20 -0
- package/docs/reference/api/client.md +7 -4
- package/docs/reference/api/database.md +24 -1
- package/docs/reference/api/deploy.md +4 -0
- package/docs/reference/api/durable.md +1 -0
- package/docs/reference/api/env.md +1 -0
- package/docs/reference/api/handlers.md +4 -1
- package/docs/reference/api/pages.md +30 -12
- package/docs/reference/api/plugin.md +1 -0
- package/docs/reference/api/resources.md +4 -1
- package/docs/reference/api/rewrites.md +18 -5
- package/docs/reference/api/types.md +10 -2
- package/docs/reference/api.md +1 -0
- package/docs/reference/cli/auth.md +1 -0
- package/docs/reference/cli/database.md +3 -0
- package/docs/reference/cli/deploy.md +18 -11
- package/docs/reference/cli/domains.md +1 -0
- package/docs/reference/cli/email.md +1 -0
- package/docs/reference/cli/generate.md +1 -0
- package/docs/reference/cli/github.md +1 -0
- package/docs/reference/cli/platform-config.md +1 -0
- package/docs/reference/cli/platform-email.md +1 -0
- package/docs/reference/cli/platform-installation.md +1 -0
- package/docs/reference/cli/platform-operations.md +1 -0
- package/docs/reference/cli/platform-users.md +23 -0
- package/docs/reference/cli/platform-zero-trust.md +1 -0
- package/docs/reference/cli/platform.md +1 -0
- package/docs/reference/cli/project.md +1 -0
- package/docs/reference/cli/secrets.md +1 -0
- package/docs/reference/cli/setup.md +1 -0
- package/docs/reference/cli.md +6 -0
- package/docs/reference/config.md +25 -2
- package/docs/reference/resource-inference.md +1 -0
- package/docs/reference/structure.md +1 -0
- package/package.json +27 -25
- package/schema.json +4 -0
- package/skills/void/SKILL.md +7 -0
- package/dist/action-key-XtKKbbsi.mjs +0 -25
- 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/{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,9 +1,10 @@
|
|
|
1
1
|
import { a as join, l as toSlash, n as dirname, r as extname, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
|
|
3
2
|
import { t as glob } from "./dist-BWNkVq50.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { a as staticLiteral, i as staticExportInitializers, t as bindingNames } from "./ast-bindings-BkivMJIo.mjs";
|
|
3
|
+
import { p as readConfig } from "./config-5oSQhZNj.mjs";
|
|
6
4
|
import { i as voidWarn } from "./log-D9hwSySP.mjs";
|
|
5
|
+
import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
|
|
6
|
+
import { i as staticLiteral, n as readStaticExports, o as bindingNames, r as staticExports, t as mayExportAll } from "./static-exports-DFkzL-NX.mjs";
|
|
7
|
+
import { n as isIdentifier, o as moduleExportName, r as isLiteral } from "./ast-Cv0JwXqb.mjs";
|
|
7
8
|
import { t as MagicString } from "./dist-B6eN80gc.mjs";
|
|
8
9
|
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
9
10
|
import { parseSync } from "vite";
|
|
@@ -174,6 +175,12 @@ function invalidateSourceAnalysis(path) {
|
|
|
174
175
|
entries.delete(toSlash(path));
|
|
175
176
|
}
|
|
176
177
|
// src/pages/island-imports.ts
|
|
178
|
+
const SCRIPT_ATTRIBUTE_RE = /([^\s"'=/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;
|
|
179
|
+
/** `<script module>` (Svelte 5) or `<script context="module">` (Svelte 4). */
|
|
180
|
+
function isSvelteModuleScript(attributes) {
|
|
181
|
+
for (const [, name, doubleQuoted, singleQuoted, bare] of attributes.matchAll(SCRIPT_ATTRIBUTE_RE)) if (name === "module" || name === "context" && (doubleQuoted ?? singleQuoted ?? bare) === "module") return true;
|
|
182
|
+
return false;
|
|
183
|
+
}
|
|
177
184
|
const MARKDOWN_SCRIPT_RE = /^<script\b[^>]*>([\s\S]*?)<\/script>\s*\n?/;
|
|
178
185
|
/**
|
|
179
186
|
* The whole JS/TS module, each `<script>` block of a Vue/Svelte SFC, or the
|
|
@@ -196,13 +203,16 @@ function scriptBlocks(code, filename) {
|
|
|
196
203
|
filename
|
|
197
204
|
}];
|
|
198
205
|
const scriptFilename = filename.replace(/\.(?:vue|svelte)$/, ".ts");
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
206
|
+
const svelte = filename.endsWith(".svelte");
|
|
207
|
+
return [...code.matchAll(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>/gi)].map((match) => {
|
|
208
|
+
const source = match[2];
|
|
209
|
+
const block = {
|
|
202
210
|
source,
|
|
203
211
|
offset: match.index + match[0].indexOf(source),
|
|
204
212
|
filename: scriptFilename
|
|
205
213
|
};
|
|
214
|
+
if (svelte && !isSvelteModuleScript(match[1])) block.instance = true;
|
|
215
|
+
return block;
|
|
206
216
|
});
|
|
207
217
|
}
|
|
208
218
|
/** Collect stylesheet imports from authored modules without treating dynamic imports or text as dependencies. */
|
|
@@ -305,6 +315,7 @@ function resolveEffectiveLayoutEntries(page, layouts, namedLayouts) {
|
|
|
305
315
|
if (page.layout === false) return [];
|
|
306
316
|
const defaultChain = resolveLayoutChain(page.componentId, layouts, page.componentPath).map((layout) => ({
|
|
307
317
|
id: toLayoutId(layout),
|
|
318
|
+
directory: layout.directory,
|
|
308
319
|
definition: layout
|
|
309
320
|
}));
|
|
310
321
|
if (page.layout === void 0) return defaultChain;
|
|
@@ -313,9 +324,13 @@ function resolveEffectiveLayoutEntries(page, layouts, namedLayouts) {
|
|
|
313
324
|
if (!resolved) return defaultChain;
|
|
314
325
|
const namedEntry = {
|
|
315
326
|
id: toLayoutId(resolved),
|
|
327
|
+
directory: defaultChain.at(-1)?.directory ?? (page.componentPath ?? page.componentId).split("/").slice(0, -1).join("/"),
|
|
316
328
|
definition: resolved
|
|
317
329
|
};
|
|
318
|
-
if (isExclusive || defaultChain.length === 0)
|
|
330
|
+
if (isExclusive || defaultChain.length === 0) {
|
|
331
|
+
namedEntry.directory = (page.componentPath ?? page.componentId).split("/").slice(0, -1).join("/");
|
|
332
|
+
return [namedEntry];
|
|
333
|
+
}
|
|
319
334
|
const chain = [...defaultChain];
|
|
320
335
|
chain[chain.length - 1] = namedEntry;
|
|
321
336
|
return chain;
|
|
@@ -327,6 +342,91 @@ function resolveEffectiveLayoutChain(page, layouts, namedLayouts) {
|
|
|
327
342
|
function resolveLayoutIds(page, layouts, namedLayouts) {
|
|
328
343
|
return resolveEffectiveLayoutEntries(page, layouts, namedLayouts).map((layout) => layout.id);
|
|
329
344
|
}
|
|
345
|
+
// src/pages/boundary-plans.ts
|
|
346
|
+
const encloses = (outer, inner) => !outer || outer === inner || inner.startsWith(outer + "/");
|
|
347
|
+
/** Build-local render identities preserve a named layout's logical placement. */
|
|
348
|
+
function createBoundaryManifest(scan) {
|
|
349
|
+
if (!scan.boundaries?.length) return {
|
|
350
|
+
plans: {},
|
|
351
|
+
pages: {}
|
|
352
|
+
};
|
|
353
|
+
const plans = {};
|
|
354
|
+
const pages = {};
|
|
355
|
+
const pageIds = new Set(scan.pages.map((page) => page.componentId));
|
|
356
|
+
const layoutKey = (id) => pageIds.has(id) ? id.replace(/(^|\/)([^/]+)$/, "$1_$2") : id;
|
|
357
|
+
for (const page of scan.pages) {
|
|
358
|
+
const directory = page.componentPath.split("/").slice(0, -1).join("/");
|
|
359
|
+
const layouts = resolveEffectiveLayoutEntries(page, scan.layouts, scan.namedLayouts);
|
|
360
|
+
const candidates = (scan.boundaries ?? []).filter((b) => encloses(b.directory, directory)).sort((a, b) => b.directory.length - a.directory.length);
|
|
361
|
+
const add = (boundary) => {
|
|
362
|
+
const retained = layouts.filter((l) => encloses(l.directory, boundary.directory)).map((l) => layoutKey(l.id));
|
|
363
|
+
const id = `_void:boundary:${JSON.stringify([
|
|
364
|
+
page.componentId,
|
|
365
|
+
boundary.componentId,
|
|
366
|
+
retained
|
|
367
|
+
])}`;
|
|
368
|
+
plans[id] = {
|
|
369
|
+
id,
|
|
370
|
+
...boundary,
|
|
371
|
+
source: page.componentId,
|
|
372
|
+
layouts: retained
|
|
373
|
+
};
|
|
374
|
+
return id;
|
|
375
|
+
};
|
|
376
|
+
const errors = candidates.filter((b) => b.kind === "error");
|
|
377
|
+
const notFound = candidates.find((b) => b.kind === "not-found");
|
|
378
|
+
pages[page.componentId] = {
|
|
379
|
+
...notFound ? {
|
|
380
|
+
notFound: add(notFound),
|
|
381
|
+
notFoundErrors: errors.filter((b) => encloses(b.directory, notFound.directory)).map(add)
|
|
382
|
+
} : {},
|
|
383
|
+
errors: errors.map(add),
|
|
384
|
+
catches: errors.map((b) => ({
|
|
385
|
+
depth: layouts.filter((l) => encloses(l.directory, b.directory)).length,
|
|
386
|
+
plan: add(b)
|
|
387
|
+
}))
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
const root = scan.boundaries?.find((b) => b.kind === "not-found" && !b.directory);
|
|
391
|
+
if (root) {
|
|
392
|
+
const id = `_void:boundary:root-not-found:${JSON.stringify(scan.layouts.filter((l) => !l.directory).map((l) => l.filePath))}`;
|
|
393
|
+
plans[id] = {
|
|
394
|
+
id,
|
|
395
|
+
...root,
|
|
396
|
+
source: id,
|
|
397
|
+
layouts: scan.layouts.filter((l) => !l.directory).map((l) => layoutKey(l.directory ? l.directory + "/layout" : "layout"))
|
|
398
|
+
};
|
|
399
|
+
const error = scan.boundaries?.find((b) => b.kind === "error" && !b.directory);
|
|
400
|
+
const rootErrors = [];
|
|
401
|
+
if (error) {
|
|
402
|
+
const errorId = `_void:boundary:root-error:${id}`;
|
|
403
|
+
plans[errorId] = {
|
|
404
|
+
...error,
|
|
405
|
+
id: errorId,
|
|
406
|
+
source: id,
|
|
407
|
+
layouts: [...plans[id].layouts]
|
|
408
|
+
};
|
|
409
|
+
rootErrors.push(errorId);
|
|
410
|
+
}
|
|
411
|
+
pages[id] = {
|
|
412
|
+
errors: rootErrors,
|
|
413
|
+
catches: rootErrors.map((plan) => ({
|
|
414
|
+
depth: plans[id].layouts.length,
|
|
415
|
+
plan
|
|
416
|
+
}))
|
|
417
|
+
};
|
|
418
|
+
return {
|
|
419
|
+
plans,
|
|
420
|
+
pages,
|
|
421
|
+
root: id,
|
|
422
|
+
rootErrors
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
return {
|
|
426
|
+
plans,
|
|
427
|
+
pages
|
|
428
|
+
};
|
|
429
|
+
}
|
|
330
430
|
// src/pages/manifest.ts
|
|
331
431
|
/**
|
|
332
432
|
* Generates the component import map and layout tree as code strings.
|
|
@@ -384,6 +484,13 @@ for (const [pattern, id, load, chain] of __voidDynamicRoutes) {
|
|
|
384
484
|
routes.push({ pattern, id });
|
|
385
485
|
}`);
|
|
386
486
|
for (const layout of [...scan.layouts, ...scan.namedLayouts]) lines.push(`components[${JSON.stringify(layoutKey(toLayoutId(layout)))}] = ${load(layout.filePath)};`);
|
|
487
|
+
for (const boundary of scan.boundaries ?? []) lines.push(`components[${JSON.stringify(boundary.componentId)}] = ${load(boundary.filePath)};`);
|
|
488
|
+
const boundaryManifest = createBoundaryManifest(scan);
|
|
489
|
+
lines.push(`const boundaryManifest = ${JSON.stringify(boundaryManifest)};`);
|
|
490
|
+
for (const plan of Object.values(boundaryManifest.plans)) {
|
|
491
|
+
lines.push(`components[${JSON.stringify(plan.id)}] = ${load(plan.filePath)};`);
|
|
492
|
+
lines.push(`layoutTree[${JSON.stringify(plan.id)}] = ${JSON.stringify(plan.layouts)};`);
|
|
493
|
+
}
|
|
387
494
|
lines.push("const routeMeta = {");
|
|
388
495
|
for (const page of scan.pages) {
|
|
389
496
|
const flags = [];
|
|
@@ -392,6 +499,7 @@ for (const [pattern, id, load, chain] of __voidDynamicRoutes) {
|
|
|
392
499
|
if (flags.length > 0) lines.push(` ${JSON.stringify(page.componentId)}: { ${flags.join(", ")} },`);
|
|
393
500
|
}
|
|
394
501
|
lines.push("};");
|
|
502
|
+
for (const plan of Object.values(boundaryManifest.plans)) lines.push(`routeMeta[${JSON.stringify(plan.id)}] = { boundary: true };`);
|
|
395
503
|
lines.push(`function matchRoute(path) {
|
|
396
504
|
const id = __voidStaticRouteIds.get(path);
|
|
397
505
|
if (id !== undefined) return id;
|
|
@@ -417,13 +525,14 @@ function isStaticPattern(pattern) {
|
|
|
417
525
|
}
|
|
418
526
|
/** The RegExp literal a page pattern matches with, the same on the client and the server. */
|
|
419
527
|
function patternToRegex(pattern) {
|
|
420
|
-
|
|
528
|
+
const trailingWildcard = pattern.endsWith("/*/");
|
|
529
|
+
return `/^${(trailingWildcard ? pattern.slice(0, -2) : pattern).split("/").map((segment) => {
|
|
421
530
|
const group = captureGroup(segment);
|
|
422
531
|
if (group) return group;
|
|
423
532
|
let literal = "";
|
|
424
533
|
for (const char of segment) literal += REGEX_SYNTAX.includes(char) ? "\\" + char : char;
|
|
425
534
|
return literal;
|
|
426
|
-
}).join("\\/")}$/`;
|
|
535
|
+
}).join("\\/")}${trailingWildcard ? "(?:(.*)\\/)?" : ""}$/`;
|
|
427
536
|
}
|
|
428
537
|
// src/pages/scan.ts
|
|
429
538
|
const COMPONENT_EXTENSIONS = [
|
|
@@ -443,14 +552,60 @@ const MAX_REVALIDATE = 31536e3;
|
|
|
443
552
|
const warnedLayoutPaths = /* @__PURE__ */ new Set();
|
|
444
553
|
/** Unreachable pages already reported, for the same reason. */
|
|
445
554
|
const warnedShadowedPages = /* @__PURE__ */ new Set();
|
|
555
|
+
/** Ignored page settings already reported, for the same reason. */
|
|
556
|
+
const warnedPageSettings = /* @__PURE__ */ new Set();
|
|
557
|
+
/**
|
|
558
|
+
* Page settings (layout, revalidate, prerender, ssr) are read from the source
|
|
559
|
+
* without running it. One the source does not show keeps its default, as
|
|
560
|
+
* before, with a warning: a hard error would break builds that already ship it.
|
|
561
|
+
*/
|
|
562
|
+
function warnPageSettings(pagesDir, warnings) {
|
|
563
|
+
for (const warning of warnings) {
|
|
564
|
+
const key = `${pagesDir}\0${warning}`;
|
|
565
|
+
if (!warnedPageSettings.has(key)) {
|
|
566
|
+
warnedPageSettings.add(key);
|
|
567
|
+
voidWarn(warning);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
const LAYOUT_EXPORT = /* @__PURE__ */ new Set(["layout"]);
|
|
572
|
+
function mayExportLayout(source) {
|
|
573
|
+
return source.includes("layout") || mayExportAll(source);
|
|
574
|
+
}
|
|
575
|
+
/** The first script block that declares a readable layout wins; warnings only apply when none does. */
|
|
446
576
|
function componentLayout(source, filename) {
|
|
447
|
-
if (!source
|
|
577
|
+
if (!mayExportLayout(source)) return {
|
|
578
|
+
layout: void 0,
|
|
579
|
+
warnings: []
|
|
580
|
+
};
|
|
581
|
+
let ignored;
|
|
582
|
+
let exportsAll = false;
|
|
448
583
|
for (const script of scriptBlocks(source, filename)) {
|
|
449
|
-
if (!script.source
|
|
450
|
-
const
|
|
584
|
+
if (!mayExportLayout(script.source)) continue;
|
|
585
|
+
const exports = readStaticExports(script.filename, script.source, LAYOUT_EXPORT);
|
|
586
|
+
const initializer = exports.initializers.get("layout");
|
|
451
587
|
const value = staticLiteral(initializer);
|
|
452
|
-
if (typeof value === "string" || value === false) return
|
|
588
|
+
if (typeof value === "string" || value === false) return {
|
|
589
|
+
layout: value,
|
|
590
|
+
warnings: []
|
|
591
|
+
};
|
|
592
|
+
if (script.instance) continue;
|
|
593
|
+
exportsAll ||= exports.exportsAll;
|
|
594
|
+
if (exports.unreadable.has("layout")) ignored ??= `pages: layout in '${filename}' is ignored. Declare it in that file as \`export const layout = '<name>'\`; re-exported layouts and other export forms are not read.`;
|
|
595
|
+
else if (initializer) ignored ??= `pages: layout in '${filename}' is ignored. It must be a string literal or \`false\`, such as \`export const layout = 'landing'\`.`;
|
|
453
596
|
}
|
|
597
|
+
if (ignored) return {
|
|
598
|
+
layout: void 0,
|
|
599
|
+
warnings: [ignored]
|
|
600
|
+
};
|
|
601
|
+
if (exportsAll) return {
|
|
602
|
+
layout: void 0,
|
|
603
|
+
warnings: [`pages: '${filename}' uses \`export * from\`. Void does not read a layout export through it, so declare layout in that file with \`export const\`.`]
|
|
604
|
+
};
|
|
605
|
+
return {
|
|
606
|
+
layout: void 0,
|
|
607
|
+
warnings: []
|
|
608
|
+
};
|
|
454
609
|
}
|
|
455
610
|
const TRANSPARENT_EXPRESSION_TYPES = /* @__PURE__ */ new Set([
|
|
456
611
|
"ParenthesizedExpression",
|
|
@@ -463,8 +618,41 @@ function readLiteral(node) {
|
|
|
463
618
|
while (node && TRANSPARENT_EXPRESSION_TYPES.has(node.type)) node = node.expression;
|
|
464
619
|
return isLiteral(node) ? node.value : void 0;
|
|
465
620
|
}
|
|
621
|
+
const PAGE_SETTINGS = [
|
|
622
|
+
"revalidate",
|
|
623
|
+
"prerender",
|
|
624
|
+
"ssr"
|
|
625
|
+
];
|
|
626
|
+
const PAGE_SETTING_SET = new Set(PAGE_SETTINGS);
|
|
627
|
+
const PAGE_SETTING_PLACEHOLDERS = {
|
|
628
|
+
revalidate: "<seconds>",
|
|
629
|
+
prerender: "<boolean>",
|
|
630
|
+
ssr: "<boolean>"
|
|
631
|
+
};
|
|
632
|
+
/** Read revalidate, prerender and ssr from a page's server file, collecting warnings for values it cannot read. */
|
|
633
|
+
function readPageSettings(program, filename, metadata) {
|
|
634
|
+
const settings = staticExports(program, PAGE_SETTING_SET);
|
|
635
|
+
for (const name of PAGE_SETTINGS) {
|
|
636
|
+
if (settings.unreadable.has(name)) {
|
|
637
|
+
metadata.warnings.push(`pages: ${name} in '${filename}' is ignored. Declare it in that file as \`export const ${name} = ${PAGE_SETTING_PLACEHOLDERS[name]}\`; re-exported settings and other export forms are not read.`);
|
|
638
|
+
continue;
|
|
639
|
+
}
|
|
640
|
+
const initializer = settings.initializers.get(name);
|
|
641
|
+
if (!initializer) continue;
|
|
642
|
+
const value = readLiteral(initializer);
|
|
643
|
+
if (name === "revalidate") {
|
|
644
|
+
if (typeof value === "number" && Number.isInteger(value) && value >= 0) metadata.revalidate = value;
|
|
645
|
+
else metadata.warnings.push(`pages: revalidate in '${filename}' is ignored. It must be a nonnegative integer literal, such as \`export const revalidate = 3600\`.`);
|
|
646
|
+
} else if (typeof value === "boolean") metadata[name] = value;
|
|
647
|
+
else metadata.warnings.push(`pages: ${name} in '${filename}' is ignored. It must be \`true\` or \`false\`.`);
|
|
648
|
+
}
|
|
649
|
+
if (settings.exportsAll) metadata.warnings.push(`pages: '${filename}' uses \`export * from\`. Void does not see page exports through it, so export loader, action, actions and getPrerenderPaths by name, and declare revalidate, prerender and ssr in that file with \`export const\`.`);
|
|
650
|
+
}
|
|
466
651
|
function detectPageServerMetadata(source, filename) {
|
|
467
|
-
const metadata = {
|
|
652
|
+
const metadata = {
|
|
653
|
+
methods: [],
|
|
654
|
+
warnings: []
|
|
655
|
+
};
|
|
468
656
|
let parsed;
|
|
469
657
|
try {
|
|
470
658
|
parsed = parseSync(filename, source);
|
|
@@ -479,20 +667,8 @@ function detectPageServerMetadata(source, filename) {
|
|
|
479
667
|
const declaration = exported.declaration;
|
|
480
668
|
if (declaration?.type === "VariableDeclaration") {
|
|
481
669
|
const variables = declaration;
|
|
482
|
-
for (const variable of variables.declarations ?? [])
|
|
483
|
-
|
|
484
|
-
else if (name === "getPrerenderPaths") metadata.hasGetPrerenderPaths = true;
|
|
485
|
-
if (isIdentifier(variable.id) && variables.kind === "const") {
|
|
486
|
-
const name = variable.id.name;
|
|
487
|
-
if (name === "revalidate") {
|
|
488
|
-
const value = readLiteral(variable.init);
|
|
489
|
-
if (typeof value === "number" && Number.isInteger(value) && value >= 0) metadata.revalidate = value;
|
|
490
|
-
} else if (name === "prerender" || name === "ssr") {
|
|
491
|
-
const value = readLiteral(variable.init);
|
|
492
|
-
if (typeof value === "boolean") metadata[name] = value;
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
}
|
|
670
|
+
for (const variable of variables.declarations ?? []) for (const name of bindingNames(variable.id)) if (PAGE_METHODS.has(name)) metadata.methods.push(name);
|
|
671
|
+
else if (name === "getPrerenderPaths") metadata.hasGetPrerenderPaths = true;
|
|
496
672
|
} else if (declaration?.type === "FunctionDeclaration") {
|
|
497
673
|
const functionName = declaration.id;
|
|
498
674
|
if (isIdentifier(functionName)) {
|
|
@@ -507,6 +683,7 @@ function detectPageServerMetadata(source, filename) {
|
|
|
507
683
|
else if (name === "getPrerenderPaths") metadata.hasGetPrerenderPaths = true;
|
|
508
684
|
}
|
|
509
685
|
}
|
|
686
|
+
readPageSettings(program, filename, metadata);
|
|
510
687
|
return metadata;
|
|
511
688
|
}
|
|
512
689
|
function inferAutoPrerender(page, options) {
|
|
@@ -543,6 +720,7 @@ function pageFileEnvironment(relativePath) {
|
|
|
543
720
|
return base.endsWith(".dev") ? "dev" : base.endsWith(".prod") ? "prod" : null;
|
|
544
721
|
}
|
|
545
722
|
async function scanPages(root, options) {
|
|
723
|
+
const trailingSlash = options?.trailingSlash ?? readConfig(root).routing?.trailingSlash;
|
|
546
724
|
const pagesDir = options?.pagesDir ?? options?.paths?.pagesDir ?? readProjectPaths(root).pagesDir;
|
|
547
725
|
if (!existsSync(pagesDir)) return {
|
|
548
726
|
pages: [],
|
|
@@ -557,8 +735,28 @@ async function scanPages(root, options) {
|
|
|
557
735
|
const pages = [];
|
|
558
736
|
const layouts = [];
|
|
559
737
|
const namedLayouts = [];
|
|
738
|
+
const boundaries = [];
|
|
560
739
|
for (const file of files.sort()) {
|
|
561
740
|
const segments = file.split("/");
|
|
741
|
+
const boundary = /^_(error|not-found)(?:\.(dev|prod))?(\.island)?\.(tsx|jsx|vue|svelte)$/.exec(segments.at(-1));
|
|
742
|
+
if (boundary && !segments.slice(0, -1).some((segment) => segment.startsWith("_"))) {
|
|
743
|
+
const env = boundary[2];
|
|
744
|
+
if (options?.environment && env && env !== options.environment) continue;
|
|
745
|
+
const base = file.slice(0, -extname(file).length);
|
|
746
|
+
if (boundary[3] || ROUTE_EXTENSIONS.some((ext) => existsSync(join(pagesDir, `${base}.server.${ext}`))) || deriveFromSource(join(pagesDir, file), "page-boundary-layout", (source) => scriptBlocks(source, file).some((script) => readStaticExports(script.filename, script.source, /* @__PURE__ */ new Set(["layout"])).initializers.has("layout")))) throw new Error(`pages: Boundary '${file}' cannot be an island, select a layout, or have a .server companion.`);
|
|
747
|
+
const directory = segments.slice(0, -1).join("/");
|
|
748
|
+
for (const prior of boundaries) {
|
|
749
|
+
const priorEnv = /^_(?:error|not-found)\.(dev|prod)\./.exec(basename(prior.filePath))?.[1];
|
|
750
|
+
if (prior.directory === directory && prior.kind === boundary[1] && (!env || !priorEnv || env === priorEnv)) throw new Error(`pages: Ambiguous boundary files '${prior.filePath}' and '${file}'.`);
|
|
751
|
+
}
|
|
752
|
+
boundaries.push({
|
|
753
|
+
kind: boundary[1],
|
|
754
|
+
directory,
|
|
755
|
+
componentId: base,
|
|
756
|
+
filePath: file
|
|
757
|
+
});
|
|
758
|
+
continue;
|
|
759
|
+
}
|
|
562
760
|
if (segments.some((s) => s.startsWith("_") && s !== "_layouts")) continue;
|
|
563
761
|
const ext = extname(file);
|
|
564
762
|
let base = basename(file, ext);
|
|
@@ -610,6 +808,7 @@ async function scanPages(root, options) {
|
|
|
610
808
|
prerender = metadata.prerender;
|
|
611
809
|
ssr = metadata.ssr;
|
|
612
810
|
hasGetPrerenderPaths = metadata.hasGetPrerenderPaths;
|
|
811
|
+
warnPageSettings(pagesDir, metadata.warnings);
|
|
613
812
|
break;
|
|
614
813
|
}
|
|
615
814
|
}
|
|
@@ -632,9 +831,13 @@ async function scanPages(root, options) {
|
|
|
632
831
|
metadata: extractFrontmatterMeta(source),
|
|
633
832
|
layout: extractFrontmatterLayout(source, matter)
|
|
634
833
|
})));
|
|
635
|
-
} else
|
|
834
|
+
} else {
|
|
835
|
+
const component = deriveFromSource(join(pagesDir, file), "page-layout", (source) => componentLayout(source, file));
|
|
836
|
+
layout = component.layout;
|
|
837
|
+
warnPageSettings(pagesDir, component.warnings);
|
|
838
|
+
}
|
|
636
839
|
pages.push({
|
|
637
|
-
pattern: route.pattern,
|
|
840
|
+
pattern: trailingSlash && route.pattern !== "/" ? `${route.pattern}/` : route.pattern,
|
|
638
841
|
params: route.params,
|
|
639
842
|
catchAll: route.catchAll,
|
|
640
843
|
componentPath: file,
|
|
@@ -684,7 +887,8 @@ async function scanPages(root, options) {
|
|
|
684
887
|
return {
|
|
685
888
|
pages,
|
|
686
889
|
layouts,
|
|
687
|
-
namedLayouts
|
|
890
|
+
namedLayouts,
|
|
891
|
+
...boundaries.length ? { boundaries } : {}
|
|
688
892
|
};
|
|
689
893
|
}
|
|
690
894
|
function compareText(left, right) {
|
|
@@ -763,4 +967,4 @@ function extractFrontmatterLayout(source, matter) {
|
|
|
763
967
|
if (value === false || value === "false") return false;
|
|
764
968
|
return typeof value === "string" ? value : JSON.stringify(value);
|
|
765
969
|
}
|
|
766
|
-
export {
|
|
970
|
+
export { isRouteEnabledForEnvironment as _, createBoundaryManifest as a, ROUTE_EXTENSIONS as b, resolveLayoutIds as c, editIslandSource as d, findIslandImports as f, compareRouteSpecificity as g, invalidateSourceAnalysis as h, patternToRegex as i, resolveNamedLayout as l, deriveFromSource as m, scanPages as n, resolveEffectiveLayoutChain as o, findStaticCssImports as p, generateComponentManifest as r, resolveLayoutChain as s, pageFileEnvironment as t, toLayoutId as u, parseRouteFilename as v, parseWebSocketFilename as y };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { A as confirm, H as outro, L as log, O as cancel, U as password, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
|
+
import { c as getToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
+
import { r as PlatformClient } from "./client-SZPyj4X_.mjs";
|
|
4
|
+
import { _ as validateSecretValues } from "./env-validation-BpCCQE_6.mjs";
|
|
5
|
+
import { m as printSuccess, o as formatCount, p as note } from "./output-DNVILSz2.mjs";
|
|
1
6
|
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { A as confirm, H as outro, L as log, O as cancel, U as password, tt as isCancel } from "./dist-D23AAMxT.mjs";
|
|
4
|
-
import { r as PlatformClient } from "./client-CoxPEhJq.mjs";
|
|
5
|
-
import { m as printSuccess, o as formatCount, p as note } from "./output-BCdLioKP.mjs";
|
|
6
|
-
import { a as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-D0YNnJfm.mjs";
|
|
7
|
-
import { _ as validateSecretValues } from "./env-validation-Del3C8AY.mjs";
|
|
7
|
+
import { a as resolveProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-Da3OgCU1.mjs";
|
|
8
8
|
import { readFileSync } from "node:fs";
|
|
9
9
|
import { parseEnv } from "node:util";
|
|
10
10
|
// src/cli/secret.ts
|
|
@@ -97,7 +97,7 @@ async function resolveSecretBackend(root, args) {
|
|
|
97
97
|
}
|
|
98
98
|
async function resolveCloudflareSecretBackend(root, args) {
|
|
99
99
|
if (args.projectName) throw new Error("secret: --project selects a Void platform project and is not used for direct Cloudflare apps.");
|
|
100
|
-
const { deleteCloudflareSecret, listCloudflareSecrets, putCloudflareSecret, resolveCloudflareOperationContext, syncCloudflareSecrets } = await import("./cloudflare-operations-
|
|
100
|
+
const { deleteCloudflareSecret, listCloudflareSecrets, putCloudflareSecret, resolveCloudflareOperationContext, syncCloudflareSecrets } = await import("./cloudflare-operations-DATekLwI.mjs");
|
|
101
101
|
const context = resolveCloudflareOperationContext(root);
|
|
102
102
|
return {
|
|
103
103
|
target: "Cloudflare Worker",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Serialize Pages data without losing supported JavaScript values. The envelope
|
|
3
|
+
* keeps deferred metadata visible to existing ISR caches, which must not cache
|
|
4
|
+
* an initial payload whose deferred groups still need to stream.
|
|
5
|
+
*/
|
|
6
|
+
declare function serializePageData(pageObj: unknown): string;
|
|
7
|
+
/** Decode a parsed Pages payload, also accepting cached pre-devalue JSON. */
|
|
8
|
+
declare function decodePageData<T = unknown>(value: unknown): T;
|
|
9
|
+
declare function deserializePageData<T = unknown>(text: string): T;
|
|
10
|
+
/** Element id of the Markdown page frontmatter that islands read when they hydrate. */
|
|
11
|
+
declare const ISLAND_FRONTMATTER_ID = "__void_frontmatter";
|
|
12
|
+
/**
|
|
13
|
+
* Script tag that carries a Markdown page's frontmatter to its islands, so
|
|
14
|
+
* `useFrontmatter()` returns the same value in the browser as on the server.
|
|
15
|
+
* Empty when the page has no frontmatter.
|
|
16
|
+
*/
|
|
17
|
+
declare function islandFrontmatterScript(frontmatter: Record<string, unknown> | undefined): string;
|
|
18
|
+
export { serializePageData as a, islandFrontmatterScript as i, decodePageData as n, deserializePageData as r, ISLAND_FRONTMATTER_ID as t };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { stringify, unflatten } from "devalue";
|
|
2
|
+
// src/pages/script-json.ts
|
|
3
|
+
const UNSAFE_SCRIPT_CHARS = /[<>&\u2028\u2029]/g;
|
|
4
|
+
function escapeScriptJson(json) {
|
|
5
|
+
return json.replace(UNSAFE_SCRIPT_CHARS, (c) => {
|
|
6
|
+
return `\\u${c.charCodeAt(0).toString(16).padStart(4, "0")}`;
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
// src/pages/serialize.ts
|
|
10
|
+
/**
|
|
11
|
+
* Serialize Pages data without losing supported JavaScript values. The envelope
|
|
12
|
+
* keeps deferred metadata visible to existing ISR caches, which must not cache
|
|
13
|
+
* an initial payload whose deferred groups still need to stream.
|
|
14
|
+
*/
|
|
15
|
+
function serializePageData(pageObj) {
|
|
16
|
+
const { deferred, deferredKeys } = pageObj ?? {};
|
|
17
|
+
const pending = deferred !== void 0 || deferredKeys !== void 0;
|
|
18
|
+
return escapeScriptJson(`{"__void":"devalue","data":${stringify(pageObj)}${pending ? ",\"deferred\":true" : ""}}`);
|
|
19
|
+
}
|
|
20
|
+
/** Decode a parsed Pages payload, also accepting cached pre-devalue JSON. */
|
|
21
|
+
function decodePageData(value) {
|
|
22
|
+
if (value && typeof value === "object" && "__void" in value && value.__void === "devalue" && "data" in value) return unflatten(value.data);
|
|
23
|
+
return value;
|
|
24
|
+
}
|
|
25
|
+
function deserializePageData(text) {
|
|
26
|
+
return decodePageData(JSON.parse(text));
|
|
27
|
+
}
|
|
28
|
+
/** Element id of the Markdown page frontmatter that islands read when they hydrate. */
|
|
29
|
+
const ISLAND_FRONTMATTER_ID = "__void_frontmatter";
|
|
30
|
+
/**
|
|
31
|
+
* Script tag that carries a Markdown page's frontmatter to its islands, so
|
|
32
|
+
* `useFrontmatter()` returns the same value in the browser as on the server.
|
|
33
|
+
* Empty when the page has no frontmatter.
|
|
34
|
+
*/
|
|
35
|
+
function islandFrontmatterScript(frontmatter) {
|
|
36
|
+
if (!frontmatter || Object.keys(frontmatter).length === 0) return "";
|
|
37
|
+
return `<script type="application/json" id="${ISLAND_FRONTMATTER_ID}">${serializePageData(frontmatter)}<\/script>`;
|
|
38
|
+
}
|
|
39
|
+
export { serializePageData as a, islandFrontmatterScript as i, decodePageData as n, escapeScriptJson as o, deserializePageData as r, ISLAND_FRONTMATTER_ID as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { L as log } from "./dist-STQXl8ck.mjs";
|
|
1
2
|
import { a as join, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { L as log } from "./dist-D23AAMxT.mjs";
|
|
3
3
|
import { r as getPackageDir } from "./agents-DRo8gzni.mjs";
|
|
4
4
|
import { existsSync, mkdirSync, readFileSync, readdirSync, readlinkSync, symlinkSync } from "node:fs";
|
|
5
5
|
// src/cli/skills.ts
|
|
@@ -1,36 +1,5 @@
|
|
|
1
|
-
import { n as isIdentifier } from "./ast-Cv0JwXqb.mjs";
|
|
1
|
+
import { n as isIdentifier, o as moduleExportName } from "./ast-Cv0JwXqb.mjs";
|
|
2
2
|
import { parseSync } from "vite";
|
|
3
|
-
// src/shared/static-exports.ts
|
|
4
|
-
/** Read the initializer of directly exported constants without evaluating user code. */
|
|
5
|
-
function staticExportInitializers(filename, source, names) {
|
|
6
|
-
const result = /* @__PURE__ */ new Map();
|
|
7
|
-
const program = parseSync(filename, source).program;
|
|
8
|
-
for (const statement of program.body ?? []) {
|
|
9
|
-
if (statement.type !== "ExportNamedDeclaration") continue;
|
|
10
|
-
const declaration = statement.declaration;
|
|
11
|
-
if (declaration?.type !== "VariableDeclaration" || declaration.kind !== "const") continue;
|
|
12
|
-
for (const variable of declaration.declarations ?? []) if (isIdentifier(variable.id) && names.has(variable.id.name) && variable.init) result.set(variable.id.name, variable.init);
|
|
13
|
-
}
|
|
14
|
-
return result;
|
|
15
|
-
}
|
|
16
|
-
function unwrapStaticExpression(node) {
|
|
17
|
-
while (node && [
|
|
18
|
-
"ParenthesizedExpression",
|
|
19
|
-
"TSAsExpression",
|
|
20
|
-
"TSSatisfiesExpression",
|
|
21
|
-
"TSTypeAssertion"
|
|
22
|
-
].includes(node.type)) node = node.expression;
|
|
23
|
-
return node;
|
|
24
|
-
}
|
|
25
|
-
function staticLiteral(node) {
|
|
26
|
-
node = unwrapStaticExpression(node);
|
|
27
|
-
if (node?.type === "Literal") return node.value;
|
|
28
|
-
if (node?.type === "TemplateLiteral") {
|
|
29
|
-
const expressions = node.expressions;
|
|
30
|
-
const quasis = node.quasis;
|
|
31
|
-
if (expressions?.length === 0 && quasis?.length === 1) return quasis[0]?.value?.cooked;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
3
|
// ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/walker.js
|
|
35
4
|
/**
|
|
36
5
|
* @typedef { import('estree').Node} Node
|
|
@@ -288,4 +257,98 @@ function bindingResolver(program, options) {
|
|
|
288
257
|
}
|
|
289
258
|
};
|
|
290
259
|
}
|
|
291
|
-
|
|
260
|
+
// src/shared/static-exports.ts
|
|
261
|
+
const LINE_TERMINATORS = /* @__PURE__ */ new Set([
|
|
262
|
+
"\n",
|
|
263
|
+
"\r",
|
|
264
|
+
"\u2028",
|
|
265
|
+
"\u2029"
|
|
266
|
+
]);
|
|
267
|
+
/**
|
|
268
|
+
* Whether `export` is followed by `*` once whitespace and comments are skipped,
|
|
269
|
+
* so a comment between the two still counts. True only means the source needs
|
|
270
|
+
* parsing: the text may sit in a string or comment. This is a scan because a
|
|
271
|
+
* regular expression that skips repeated comments can backtrack exponentially.
|
|
272
|
+
*/
|
|
273
|
+
function mayExportAll(source) {
|
|
274
|
+
for (let index = source.indexOf("export"); index !== -1; index = source.indexOf("export", index + 1)) {
|
|
275
|
+
let cursor = index + 6;
|
|
276
|
+
while (cursor < source.length) if (/\s/.test(source[cursor])) cursor += 1;
|
|
277
|
+
else if (source.startsWith("/*", cursor)) {
|
|
278
|
+
const end = source.indexOf("*/", cursor + 2);
|
|
279
|
+
cursor = end === -1 ? source.length : end + 2;
|
|
280
|
+
} else if (source.startsWith("//", cursor)) {
|
|
281
|
+
cursor += 2;
|
|
282
|
+
while (cursor < source.length && !LINE_TERMINATORS.has(source[cursor])) cursor += 1;
|
|
283
|
+
} else break;
|
|
284
|
+
if (source[cursor] === "*") return true;
|
|
285
|
+
}
|
|
286
|
+
return false;
|
|
287
|
+
}
|
|
288
|
+
const VALUE_DECLARATIONS = /* @__PURE__ */ new Set([
|
|
289
|
+
"FunctionDeclaration",
|
|
290
|
+
"ClassDeclaration",
|
|
291
|
+
"TSEnumDeclaration"
|
|
292
|
+
]);
|
|
293
|
+
/** Read how a parsed module exports `names` without evaluating user code. Type-only exports are skipped. */
|
|
294
|
+
function staticExports(program, names) {
|
|
295
|
+
const result = {
|
|
296
|
+
initializers: /* @__PURE__ */ new Map(),
|
|
297
|
+
unreadable: /* @__PURE__ */ new Set(),
|
|
298
|
+
exportsAll: false
|
|
299
|
+
};
|
|
300
|
+
const markUnreadable = (name) => {
|
|
301
|
+
if (name !== void 0 && names.has(name)) result.unreadable.add(name);
|
|
302
|
+
};
|
|
303
|
+
for (const statement of program.body ?? []) {
|
|
304
|
+
if (statement.type === "ExportAllDeclaration") {
|
|
305
|
+
const exported = statement;
|
|
306
|
+
if (exported.exportKind === "type") continue;
|
|
307
|
+
if (exported.exported) markUnreadable(moduleExportName(exported.exported));
|
|
308
|
+
else result.exportsAll = true;
|
|
309
|
+
continue;
|
|
310
|
+
}
|
|
311
|
+
if (statement.type !== "ExportNamedDeclaration") continue;
|
|
312
|
+
const exported = statement;
|
|
313
|
+
if (exported.exportKind === "type") continue;
|
|
314
|
+
for (const specifier of exported.specifiers ?? []) if (specifier.exportKind !== "type") markUnreadable(moduleExportName(specifier.exported));
|
|
315
|
+
const declaration = exported.declaration;
|
|
316
|
+
if (declaration?.type === "VariableDeclaration") {
|
|
317
|
+
const variables = declaration;
|
|
318
|
+
for (const variable of variables.declarations ?? []) {
|
|
319
|
+
if (variables.kind === "const" && isIdentifier(variable.id) && variable.init) {
|
|
320
|
+
if (names.has(variable.id.name)) result.initializers.set(variable.id.name, variable.init);
|
|
321
|
+
continue;
|
|
322
|
+
}
|
|
323
|
+
for (const name of bindingNames(variable.id)) markUnreadable(name);
|
|
324
|
+
}
|
|
325
|
+
} else if (declaration && VALUE_DECLARATIONS.has(declaration.type)) {
|
|
326
|
+
const id = declaration.id;
|
|
327
|
+
markUnreadable(isIdentifier(id) ? id.name : void 0);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
return result;
|
|
331
|
+
}
|
|
332
|
+
/** Parse a module and read how it exports `names` without evaluating user code. */
|
|
333
|
+
function readStaticExports(filename, source, names) {
|
|
334
|
+
return staticExports(parseSync(filename, source).program, names);
|
|
335
|
+
}
|
|
336
|
+
function unwrapStaticExpression(node) {
|
|
337
|
+
while (node && [
|
|
338
|
+
"ParenthesizedExpression",
|
|
339
|
+
"TSAsExpression",
|
|
340
|
+
"TSSatisfiesExpression",
|
|
341
|
+
"TSTypeAssertion"
|
|
342
|
+
].includes(node.type)) node = node.expression;
|
|
343
|
+
return node;
|
|
344
|
+
}
|
|
345
|
+
function staticLiteral(node) {
|
|
346
|
+
node = unwrapStaticExpression(node);
|
|
347
|
+
if (node?.type === "Literal") return node.value;
|
|
348
|
+
if (node?.type === "TemplateLiteral") {
|
|
349
|
+
const expressions = node.expressions;
|
|
350
|
+
const quasis = node.quasis;
|
|
351
|
+
if (expressions?.length === 0 && quasis?.length === 1) return quasis[0]?.value?.cooked;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
export { unwrapStaticExpression as a, walk as c, staticLiteral as i, readStaticExports as n, bindingNames as o, staticExports as r, bindingResolver as s, mayExportAll as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as wrapTextWithPrefix, G as promptTitle, M as getGuide, V as optionText, b as S_RADIO_ACTIVE, d as S_CHECKBOX_SELECTED, i as S_BAR_END, it as wrapAnsi, j as formatInstructionFooter, n as SELECT_INSTRUCTIONS, r as S_BAR, t as MULTISELECT_INSTRUCTIONS, u as S_CHECKBOX_INACTIVE, w as S_STEP_SUBMIT } from "./dist-
|
|
2
|
-
import { f as import_picocolors } from "./output-
|
|
1
|
+
import { $ as wrapTextWithPrefix, G as promptTitle, M as getGuide, V as optionText, b as S_RADIO_ACTIVE, d as S_CHECKBOX_SELECTED, i as S_BAR_END, it as wrapAnsi, j as formatInstructionFooter, n as SELECT_INSTRUCTIONS, r as S_BAR, t as MULTISELECT_INSTRUCTIONS, u as S_CHECKBOX_INACTIVE, w as S_STEP_SUBMIT } from "./dist-STQXl8ck.mjs";
|
|
2
|
+
import { f as import_picocolors } from "./output-DNVILSz2.mjs";
|
|
3
3
|
// src/cli/subcommand-prompt.ts
|
|
4
4
|
const isUpKey = (key) => key === "\x1B[A" || key === "\x1BOA";
|
|
5
5
|
const isDownKey = (key) => key === "\x1B[B" || key === "\x1BOB";
|