void 0.27.0 → 0.28.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 +3 -1
- package/dist/{account-cmd-l-FM7Ioq.mjs → account-cmd-Ci00cncT.mjs} +5 -5
- package/dist/{agents-B_pX_HmQ.mjs → agents-CuNtT0D_.mjs} +5 -2
- package/dist/{application-analysis-DKy02UY0.mjs → application-analysis-D72ZQfMZ.mjs} +118 -135
- package/dist/{application-routing-DQyUh_5S.mjs → application-routing-Dy589Vgn.mjs} +1 -2
- package/dist/atomic-write-Dq6R0BPN.mjs +18 -0
- package/dist/{auth-Dn2vw-SG.mjs → auth-B6iOCjKI.mjs} +23 -56
- package/dist/{auth-link-vz9Z2kmG.mjs → auth-link-DWr6Afao.mjs} +10 -10
- package/dist/{auth-migrations-BwHgeEsD.mjs → auth-migrations-Cgs0k6lS.mjs} +28 -5
- package/dist/{auth-router-DvsCUVw4.mjs → auth-router-DP14wVkZ.mjs} +4 -4
- package/dist/auth-wn6F8dB8.mjs +2 -0
- package/dist/base64-DVrOndmI.mjs +16 -0
- package/dist/{better-auth-shared-CPvWD3nG.d.mts → better-auth-shared-B74NJIus.d.mts} +8 -13
- package/dist/{better-auth-shared-DPpj8zxc.mjs → better-auth-shared-CMXlZG7W.mjs} +56 -68
- package/dist/{build-cmd-D6we0VjO.mjs → build-cmd-Cr3FJxv0.mjs} +5 -5
- package/dist/{cache-CZRdzKx1.mjs → cache-D0Tt28cn.mjs} +5 -5
- package/dist/{cancel-deploy-CQ3NnMvf.mjs → cancel-deploy-CJKvk7AN.mjs} +4 -4
- package/dist/{cf-access-TWNzXltp.mjs → cf-access-BM9G0lhO.mjs} +4 -3
- package/dist/{cf-access-BcIBSKqG.mjs → cf-access-CWP4avfP.mjs} +3 -7
- package/dist/cf-build-output-2u583yJK.mjs +2 -0
- package/dist/{cf-build-output-DjvB_872.mjs → cf-build-output-Bc8i3dzE.mjs} +2 -2
- package/dist/cf-user-agent-ChjQp2MU.mjs +33 -0
- package/dist/cli/cli.mjs +198 -311
- package/dist/cli/cloudflare-operation-process.mjs +41 -15
- package/dist/cli/env-schema-probe.d.mts +5 -43
- package/dist/cli/env-schema-probe.mjs +14 -80
- package/dist/client-C1BjRn3g.mjs +2 -0
- package/dist/{client-DlDJuY0s.mjs → client-DM9Kcf4e.mjs} +161 -415
- package/dist/{cloudflare-auth-CuxfF6OA.mjs → cloudflare-auth-CqFBDo52.mjs} +12 -39
- package/dist/{cloudflare-cmd-lHqNlJGW.mjs → cloudflare-cmd-CTrn-lXJ.mjs} +6 -5
- package/dist/{cloudflare-config-BmhBv3HV.mjs → cloudflare-config-DV60XFFK.mjs} +16 -28
- package/dist/{cloudflare-connect-2G3rL2rP.mjs → cloudflare-connect-BosmCNlq.mjs} +3 -3
- package/dist/{cloudflare-operations-CwI1bChl.mjs → cloudflare-operations-BKdSfNBN.mjs} +26 -34
- package/dist/{cloudflare-operations-BlYLlowZ.mjs → cloudflare-operations-Ds-lX3Ts.mjs} +1 -1
- package/dist/{cloudflare-process-2-TfIEzB.mjs → cloudflare-process-CeDWJRhj.mjs} +12 -7
- package/dist/collect-NUlJMpLY.mjs +2 -0
- package/dist/{collect-DiTn9yr6.mjs → collect-xjffdCdk.mjs} +1 -1
- package/dist/{config-CSa15FvD.d.mts → config-7qoq2p9v.d.mts} +2 -2
- package/dist/{config-CLYAosnQ.mjs → config-BEm9vRvS.mjs} +11 -5
- package/dist/{config-DiowPT80.mjs → config-Bx_1SpnO.mjs} +87 -177
- package/dist/config-CNnrSMYm.mjs +2 -0
- package/dist/{config-DPByhVck.mjs → config-D0GY5ItR.mjs} +1 -1
- package/dist/config-entry.d.mts +1 -1
- package/dist/{connect-BfPBHHm-.mjs → connect-nukQSoEO.mjs} +8 -8
- package/dist/{create-project-BdXEFKal.mjs → create-project-D4APeBwX.mjs} +7 -7
- package/dist/{create-project-qFDC45zg.mjs → create-project-DL7YXpjj.mjs} +1 -1
- package/dist/{db-Xs80hcaA.mjs → db-27RztQLy.mjs} +173 -263
- package/dist/{delete-d2vuou3j.mjs → delete-BbsZFZIw.mjs} +5 -5
- package/dist/deploy-B06EQq4t.mjs +6009 -0
- package/dist/deploy-Db2ALnQP.mjs +3 -0
- package/dist/deploy-managed-static-CGswbcay.mjs +2277 -0
- package/dist/deploy-transport-BiicfoQW.mjs +180 -0
- package/dist/deploy.d.mts +10 -0
- package/dist/deploy.mjs +82 -0
- package/dist/dev-inbox-Rd6j_8vM.mjs +217 -0
- package/dist/discover-CTUiSsfG.mjs +2 -0
- package/dist/{discover-CkCYv9T_.mjs → discover-D2PGT63u.mjs} +2 -2
- package/dist/{dist-BVqXeR_h.mjs → dist-ipQi0Q8y.mjs} +2 -3
- package/dist/{domain-BsDUBAvt.mjs → domain-Bfq9n03H.mjs} +7 -22
- package/dist/{dotenv-BfU6eqFt.mjs → dotenv-CNazY3-w.mjs} +4 -16
- package/dist/{email-d_Aux1vM.mjs → email-BcjSyAL0.mjs} +4 -20
- package/dist/{email-_lGAHOhp.mjs → email-DIwaQU4P.mjs} +99 -191
- package/dist/email-cloudflare-CH053RxK.mjs +1096 -0
- package/dist/email-protocol-D9nTvhCp.mjs +82 -0
- package/dist/{entry-CMAkqBmU.mjs → entry-ehmBvs5w.mjs} +2 -2
- package/dist/{env-BxocywBB.mjs → env-BJjULvL0.mjs} +2 -2
- package/dist/{env-DMA3cXZt.mjs → env-BhdWMrNy.mjs} +2 -13
- package/dist/{env-C74QepDE.mjs → env-C6ipBLp3.mjs} +8 -8
- package/dist/{env-public-DR7ZM6d-.d.mts → env-public-CCdykygU.d.mts} +6 -23
- package/dist/{env-raw-jZpP5n47.mjs → env-raw-Cklzcde3.mjs} +3 -20
- package/dist/{env-types-CwXgeMgL.mjs → env-types-DS2_y4X8.mjs} +2 -2
- package/dist/{env-validation-CrVNjsPm.mjs → env-validation-CTn-HhG1.mjs} +1 -1
- package/dist/env-validation-cE0zcmzO.mjs +486 -0
- package/dist/{gen-DtkQhvQg.mjs → gen-CnN1Xidx.mjs} +131 -253
- package/dist/gen-F8pSZnhc.mjs +2 -0
- package/dist/{generate-GDbL7sUr.mjs → generate-Dat0UTry.mjs} +38 -4
- package/dist/generate-Rii9klHB.mjs +2 -0
- package/dist/generated-wrangler-config-DeWj5F9Y.mjs +18 -0
- package/dist/{github-cmd-DaDdBbSS.mjs → github-cmd-BdkU4Nhe.mjs} +27 -71
- package/dist/{handler-BHAn2fZJ.mjs → handler-BZ1t7-Rv.mjs} +2 -2
- package/dist/{handler-CNAwjRcW.d.mts → handler-_PqY82xe.d.mts} +1 -1
- package/dist/{headers-DlfR78Nu.mjs → headers-Di1FsD3e.mjs} +26 -81
- package/dist/{help-0bTe_lID.mjs → help-Bug7pyK_.mjs} +18 -10
- package/dist/help-s9q7LTcu.mjs +2 -0
- package/dist/{inbound-PfQDLXc5.mjs → inbound-DmkTQeWp.mjs} +71 -222
- package/dist/{inbound-CH5Mksyy.d.mts → inbound-brj2-TM5.d.mts} +19 -58
- package/dist/index.d.mts +2 -18
- package/dist/index.mjs +200 -496
- package/dist/{info-PYWwkWyt.mjs → info-CujPwtMe.mjs} +5 -5
- package/dist/{init-DaBGmaXC.mjs → init-ZWOJvc-Z.mjs} +179 -388
- package/dist/isr-config-DPjXM8J2.mjs +194 -0
- package/dist/{link-C6fjafep.mjs → link-UEc7bnF4.mjs} +8 -8
- package/dist/{list-BTFBlqKl.mjs → list-CuWeOnzk.mjs} +6 -17
- package/dist/{live-CgQuTpqD.mjs → live-BxLX-JqJ.mjs} +19 -17
- package/dist/{live-Du8jXwOW.d.mts → live-DJONVlQK.d.mts} +1 -1
- package/dist/load-user-env-DD5qveNU.mjs +49 -0
- package/dist/{local-d1-ga5O_idV.mjs → local-d1-BM3p74mm.mjs} +6 -6
- package/dist/{login-GKcNUmtI.mjs → login-CZ2Cqa-D.mjs} +11 -11
- package/dist/login-DhK7o1oJ.mjs +2 -0
- package/dist/{logs-BiMSULmc.mjs → logs-TihRcLTk.mjs} +5 -5
- package/dist/migrate-BgT-hmu8.mjs +2 -0
- package/dist/{migrate-NLsjBbuM.mjs → migrate-uFwojusJ.mjs} +69 -21
- package/dist/migration-handler-Cg0Y4EPu.mjs +470 -0
- package/dist/{migration-handler-DM4clYj5.d.mts → migration-handler-CwlEQUoo.d.mts} +17 -26
- package/dist/{mime-DxCznlJq.mjs → mime-srOklVVv.mjs} +92 -395
- package/dist/{node-DJicPvPj.mjs → node-DoKbo1SZ.mjs} +8 -24
- package/dist/{operator-args-DOBhIaIg.mjs → operator-args-UnE8Y2eK.mjs} +27 -26
- package/dist/{operator-auth-BEZ_u0Cz.mjs → operator-auth-Cr2zCc-J.mjs} +2 -2
- package/dist/{operator-client-DbDv4vtE.mjs → operator-client-C-ROjk1I.mjs} +4 -4
- package/dist/{operator-cmd-BT4hgavL.mjs → operator-cmd-C5lCctnc.mjs} +8 -8
- package/dist/operator-cmd-Cjk5DiRx.mjs +2 -0
- package/dist/{output-C50ag2r3.mjs → output-FNHKw5Ac.mjs} +36 -5
- package/dist/{package-json-DXfiT1jV.mjs → package-json-BjYqR-So.mjs} +1 -1
- package/dist/pages/client.d.mts +1 -1
- package/dist/pages/client.mjs +91 -5
- package/dist/pages/index.d.mts +1 -2
- package/dist/pages/index.mjs +6 -6
- package/dist/pages/islands-plugin.mjs +5 -83
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +1 -1
- package/dist/pages/serialize.mjs +1 -1
- package/dist/{platform-args-DUeXY9Om.mjs → platform-args-C6Mb_I3a.mjs} +34 -58
- package/dist/platform-args-Cm7x-fot.mjs +2 -0
- package/dist/{platform-auth-config-CkSx3usH.mjs → platform-auth-config-CJmNkFT2.mjs} +10 -11
- package/dist/{platform-auth-protection-BJimB_p9.mjs → platform-auth-protection-D5wvsI-Y.mjs} +36 -26
- package/dist/{platform-auth-recovery-BU6izFAU.mjs → platform-auth-recovery-D_0I3n-1.mjs} +8 -9
- package/dist/{platform-cmd-BbmJiq5O.mjs → platform-cmd-Cuj4oUVo.mjs} +1 -1
- package/dist/{platform-cmd-BbY1dWiM.mjs → platform-cmd-DxxZO6e5.mjs} +15 -15
- package/dist/{platform-discovery-DIYz8V63.mjs → platform-discovery-CHhNs8Nn.mjs} +1 -1
- package/dist/{platform-domain-CHVS6cV0.mjs → platform-domain-zLXnW1G_.mjs} +5 -5
- package/dist/{platform-lifecycle-DzCwqhFq.mjs → platform-lifecycle-DOW-wLfx.mjs} +1398 -2043
- package/dist/{platform-lifecycle-ByAlpkhV.mjs → platform-lifecycle-_gfnjUBr.mjs} +1 -1
- package/dist/{platform-management-CBOT4BSM.mjs → platform-management-CYrLvTGH.mjs} +1 -1
- package/dist/{platform-management-CuuVDhyt.mjs → platform-management-t7HKy4-U.mjs} +632 -124
- package/dist/{platform-plans-config-CN-heS4q.mjs → platform-plans-config-CNH6zbPX.mjs} +15 -11
- package/dist/{platform-recovery-CskSJgLh.mjs → platform-recovery-DeucI7A9.mjs} +6 -9
- package/dist/{platform-registry-Cjv2Qf0r.mjs → platform-registry-B9mWX9LO.mjs} +13 -18
- package/dist/{platform-setup-BBxRxmFC.mjs → platform-setup-CTf6MMT9.mjs} +19 -26
- package/dist/{plugin-inference-BlQbOL0P.mjs → plugin-inference-DsARdQKE.mjs} +18 -33
- package/dist/{prepare-Dq9hTIbo.mjs → prepare-C4zfwks4.mjs} +3 -3
- package/dist/{prepare-Do96654b.mjs → prepare-CSH9dKTI.mjs} +11 -13
- package/dist/prepare-dr9uxQSV.mjs +2 -0
- package/dist/{prerender-render-Ct20jftc.mjs → prerender-render-Bfsumdkv.mjs} +8 -2
- package/dist/prerender-render.d.mts +2 -0
- package/dist/prerender-render.mjs +2 -2
- package/dist/project-DiiOBZPF.mjs +2 -0
- package/dist/{project-cmd-DaoRrn-8.mjs → project-cmd-Dq75AXzy.mjs} +19 -19
- package/dist/{project-paths-GgcMozYz.mjs → project-paths-DMvEeSau.mjs} +9 -14
- package/dist/{project-BAm2aB6Q.mjs → project-rqDnVsJN.mjs} +8 -4
- package/dist/{project-team-Q_lCA7Io.mjs → project-team-B3_QcStG.mjs} +6 -6
- package/dist/{project-token-BArgK9o1.mjs → project-token-CvsRvv2I.mjs} +5 -5
- package/dist/{project-tsconfig-CVJhNMxs.mjs → project-tsconfig-bveqhlYA.mjs} +3 -5
- package/dist/{project-zero-trust-KO9Hu2Pq.mjs → project-zero-trust-D1ICiwN_.mjs} +5 -5
- package/dist/{protocol-BPZaNqBo.d.mts → protocol-4H7V_3Os.d.mts} +1 -1
- package/dist/{protocol-CfaUwNs8.mjs → protocol-RNP0u7UY.mjs} +9 -3
- package/dist/{provision-BfaLiWbj.mjs → provision-DDh7ITVS.mjs} +118 -865
- package/dist/{requests-C7Oeoh5u.mjs → requests-3CL3BuZh.mjs} +4 -4
- package/dist/resolve-project-B9Hr0D3n.mjs +2 -0
- package/dist/resolve-project-C_Cu7E8a.mjs +48 -0
- package/dist/{rollback-DVAtrLAl.mjs → rollback-Ce1d_0J9.mjs} +7 -17
- package/dist/{route-types-CbtsIeFn.mjs → route-types-IrBuwJ7u.mjs} +35 -70
- package/dist/routing-assets-VkrKIbxE.mjs +139 -0
- package/dist/{runner-9wjsSZx-.mjs → runner-B5huK2eC.mjs} +1 -1
- package/dist/{runner-DMBKSrRk.mjs → runner-DcVDrzuR.mjs} +7 -28
- package/dist/{runner-mysql-CEzKtmFb.mjs → runner-mysql-CCtyI0p6.mjs} +4 -3
- package/dist/runner-mysql-CaJq-hd6.mjs +2 -0
- package/dist/runner-pg-BJhFZZG4.mjs +2 -0
- package/dist/{runner-pg-DV8p_zjA.mjs → runner-pg-CPd-CB_F.mjs} +1 -1
- package/dist/runtime/ai.mjs +9 -22
- package/dist/runtime/better-auth-mysql.d.mts +2 -5
- package/dist/runtime/better-auth-mysql.mjs +6 -31
- package/dist/runtime/better-auth-pg.d.mts +2 -5
- package/dist/runtime/better-auth-pg.mjs +6 -32
- package/dist/runtime/better-auth.d.mts +2 -4
- package/dist/runtime/better-auth.mjs +9 -19
- package/dist/runtime/db.mjs +1 -1
- package/dist/runtime/durable.d.mts +16 -0
- package/dist/runtime/durable.mjs +26 -2
- package/dist/runtime/email/testing.d.mts +1 -1
- package/dist/runtime/email/testing.mjs +9 -23
- package/dist/runtime/email-protocol.d.mts +12 -0
- package/dist/runtime/email-protocol.mjs +2 -70
- package/dist/runtime/email.d.mts +1 -1
- package/dist/runtime/email.mjs +79 -221
- package/dist/runtime/env-public.d.mts +1 -1
- package/dist/runtime/env-public.mjs +12 -38
- package/dist/runtime/env.d.mts +1 -12
- package/dist/runtime/env.mjs +1 -1
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/handler.mjs +1 -1
- package/dist/runtime/isr.mjs +1 -1
- package/dist/runtime/kv.mjs +1 -1
- package/dist/runtime/live-client.d.mts +1 -1
- package/dist/runtime/live-server.mjs +1 -16
- package/dist/runtime/live.d.mts +1 -1
- package/dist/runtime/live.mjs +1 -1
- package/dist/runtime/migration-handler-mysql.d.mts +2 -2
- package/dist/runtime/migration-handler-mysql.mjs +3 -2
- package/dist/runtime/migration-handler-pg.d.mts +2 -2
- package/dist/runtime/migration-handler-pg.mjs +1 -1
- package/dist/runtime/migration-handler.d.mts +2 -2
- package/dist/runtime/migration-handler.mjs +2 -470
- package/dist/runtime/queues.mjs +1 -1
- package/dist/runtime/remote/binding-handler.mjs +62 -62
- package/dist/runtime/remote/index.mjs +16 -77
- package/dist/runtime/routing.d.mts +1 -4
- package/dist/runtime/routing.mjs +82 -218
- package/dist/runtime/sandbox-container.d.mts +2 -2
- package/dist/runtime/sandbox-container.mjs +2 -2
- package/dist/runtime/sandbox.d.mts +2 -2
- package/dist/runtime/sandbox.mjs +13 -6
- package/dist/runtime/storage.mjs +1 -1
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/ws-server.d.mts +2 -3
- package/dist/runtime/ws-server.mjs +6 -28
- package/dist/runtime/ws.d.mts +1 -1
- package/dist/{sandbox-container-Bo0eiFKz.d.mts → sandbox-container-ChQRum-j.d.mts} +3 -1
- package/dist/{sandbox-container-C6ItmVuN.mjs → sandbox-container-DBKIqDEK.mjs} +12 -1
- package/dist/{sandbox-C5LFoJMf.d.mts → sandbox-q3waMc2T.d.mts} +1 -1
- package/dist/{scan-C3uDzz6J.mjs → scan-C0BMdmEd.mjs} +84 -7
- package/dist/{secret-BvtB7IjY.mjs → secret-B5J8bBsI.mjs} +62 -80
- package/dist/{serialize-BPvnNQuA.mjs → serialize-BtQyaYoC.mjs} +10 -4
- package/dist/{skills-BgVMvQdy.mjs → skills-BJsan98C.mjs} +2 -2
- package/dist/{subcommand-prompt-BSlnD1fI.mjs → subcommand-prompt-gQ-NDA-u.mjs} +38 -43
- package/dist/sveltekit.mjs +1 -1
- package/dist/validate-C9xtFOYR.mjs +2 -0
- package/dist/{validate-C9qJArv7.mjs → validate-CheZGRE7.mjs} +4 -8
- package/dist/version-metadata-DIrqEHQo.mjs +73 -0
- package/dist/{wrangler-D9KTuqnv.mjs → wrangler-BYs07Rxy.mjs} +119 -378
- package/dist/{ws-CChrrAU-.d.mts → ws-aKVYB-fA.d.mts} +1 -1
- package/dist/yarn-pnp-DLbEFMT0.mjs +92 -0
- package/docs/guide/auth.md +2 -0
- package/docs/guide/database/postgresql.md +2 -0
- package/docs/guide/database.md +2 -0
- package/docs/guide/durable-state.md +24 -0
- package/docs/guide/platform/administration/access.md +4 -0
- package/docs/guide/platform/administration/connected-apps.md +55 -0
- package/docs/guide/platform/installation/credentials.md +3 -1
- package/docs/guide/quickstart.md +2 -0
- package/docs/guide/sandboxes.md +2 -0
- package/docs/reference/api/deploy.md +23 -0
- package/docs/reference/api/pages.md +2 -0
- package/docs/reference/api.md +2 -1
- package/docs/reference/cli/database.md +9 -3
- package/docs/reference/cli/platform-installation.md +1 -1
- package/docs/reference/cli/setup.md +2 -0
- package/package.json +13 -16
- package/skills/void/SKILL.md +1 -0
- package/dist/auth-LMJcNESe.mjs +0 -2
- package/dist/cf-build-output-H9a97vME.mjs +0 -2
- package/dist/cf-user-agent-lKblH3zU.mjs +0 -17
- package/dist/client-tso2OfcG.mjs +0 -2
- package/dist/collect-DLyFDiKW.mjs +0 -2
- package/dist/config-5r-YpMC-.mjs +0 -2
- package/dist/config-B_ggY-IO.mjs +0 -89
- package/dist/config-BtSFvXZx.mjs +0 -2
- package/dist/config-write-AHGesphx.mjs +0 -61
- package/dist/deploy-Bqe1PYBw.mjs +0 -10458
- package/dist/deploy-VsWsVQkw.mjs +0 -2
- package/dist/dev-inbox-CK-UuPob.mjs +0 -297
- package/dist/discover-EDUf6JJw.mjs +0 -2
- package/dist/dist-_UUlL6bg.mjs +0 -2
- package/dist/env-validation-Dxdx_5wo.mjs +0 -951
- package/dist/gen-dA9hW7AV.mjs +0 -2
- package/dist/head-client-DzmJGN4C.mjs +0 -90
- package/dist/help-DfQYVfGY.mjs +0 -2
- package/dist/login-mx_ydhmp.mjs +0 -2
- package/dist/migrate-BHp07yJE.mjs +0 -2
- package/dist/operator-cmd-CwBB-1yb.mjs +0 -2
- package/dist/pages/head-client.d.mts +0 -13
- package/dist/pages/head-client.mjs +0 -2
- package/dist/platform-args-D4E1PjVw.mjs +0 -2
- package/dist/prepare-DRUV-g3X.mjs +0 -2
- package/dist/project-DedqCp59.mjs +0 -2
- package/dist/provision-Wu9ZBk9L.mjs +0 -2
- package/dist/resolve-project-BIeYs9Cw.mjs +0 -2
- package/dist/resolve-project-CP8rZs_p.mjs +0 -28
- package/dist/runner-mysql-CkFqZ6CE.mjs +0 -2
- package/dist/runner-pg-BGYRFdRp.mjs +0 -2
- package/dist/runtime/env-helpers.d.mts +0 -2
- package/dist/runtime/env-helpers.mjs +0 -2
- package/dist/validate-BJr9LfXy.mjs +0 -2
- package/dist/yarn-pnp-CUX_iTPA.mjs +0 -188
package/dist/gen-dA9hW7AV.mjs
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
//#region src/pages/head-client.ts
|
|
2
|
-
const ATTR = "data-void-head";
|
|
3
|
-
function elementDescriptorSignature(descriptor) {
|
|
4
|
-
const attrs = Object.entries(descriptor.attrs).sort(([a], [b]) => a.localeCompare(b));
|
|
5
|
-
return `${encodeURIComponent(descriptor.tag)}:${attrs.map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`).join("&")}`;
|
|
6
|
-
}
|
|
7
|
-
function elementSignature(el) {
|
|
8
|
-
const attrs = {};
|
|
9
|
-
for (const attr of Array.from(el.attributes)) if (attr.name !== ATTR) attrs[attr.name] = attr.value;
|
|
10
|
-
return elementDescriptorSignature({
|
|
11
|
-
tag: el.tagName.toLowerCase(),
|
|
12
|
-
attrs
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
function createHeadElement(descriptor) {
|
|
16
|
-
const el = document.createElement(descriptor.tag);
|
|
17
|
-
for (const [key, value] of Object.entries(descriptor.attrs)) el.setAttribute(key, value);
|
|
18
|
-
el.setAttribute(ATTR, "");
|
|
19
|
-
return el;
|
|
20
|
-
}
|
|
21
|
-
function collectDesiredHeadElements(head) {
|
|
22
|
-
const desired = [];
|
|
23
|
-
if (head.meta) for (const entry of head.meta) {
|
|
24
|
-
const attrs = {};
|
|
25
|
-
if (entry.charset) attrs.charset = entry.charset;
|
|
26
|
-
if (entry.name) attrs.name = entry.name;
|
|
27
|
-
if (entry.property) attrs.property = entry.property;
|
|
28
|
-
if (entry.content !== void 0) attrs.content = entry.content;
|
|
29
|
-
desired.push({
|
|
30
|
-
tag: "meta",
|
|
31
|
-
attrs
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
if (head.link) for (const entry of head.link) {
|
|
35
|
-
const attrs = {};
|
|
36
|
-
for (const [key, value] of Object.entries(entry)) if (value != null) attrs[key] = value;
|
|
37
|
-
desired.push({
|
|
38
|
-
tag: "link",
|
|
39
|
-
attrs
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
return desired;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Mark SSR-rendered head tags so they are cleaned up on the first SPA navigation.
|
|
46
|
-
* Call once after hydration with the initial page's head descriptor.
|
|
47
|
-
*/
|
|
48
|
-
function initClientHead(head) {
|
|
49
|
-
if (!head) return;
|
|
50
|
-
if (head.meta) for (const entry of head.meta) {
|
|
51
|
-
const selector = entry.charset ? "meta[charset]" : entry.property ? `meta[property="${entry.property}"]` : entry.name ? `meta[name="${entry.name}"]` : null;
|
|
52
|
-
if (!selector) continue;
|
|
53
|
-
const el = document.head.querySelector(selector);
|
|
54
|
-
if (el) el.setAttribute(ATTR, "");
|
|
55
|
-
}
|
|
56
|
-
if (head.link) for (const entry of head.link) {
|
|
57
|
-
const el = document.head.querySelector(`link[rel="${entry.rel}"][href="${entry.href}"]`);
|
|
58
|
-
if (el) el.setAttribute(ATTR, "");
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Apply head changes on SPA navigation.
|
|
63
|
-
* Preserves existing managed tags when their final attributes are unchanged.
|
|
64
|
-
*/
|
|
65
|
-
function applyClientHead(head) {
|
|
66
|
-
const existing = /* @__PURE__ */ new Map();
|
|
67
|
-
for (const el of document.head.querySelectorAll(`[${ATTR}]`)) {
|
|
68
|
-
const signature = elementSignature(el);
|
|
69
|
-
const elements = existing.get(signature);
|
|
70
|
-
if (elements) elements.push(el);
|
|
71
|
-
else existing.set(signature, [el]);
|
|
72
|
-
}
|
|
73
|
-
const desiredElements = [];
|
|
74
|
-
for (const descriptor of head ? collectDesiredHeadElements(head) : []) {
|
|
75
|
-
const signature = elementDescriptorSignature(descriptor);
|
|
76
|
-
const elements = existing.get(signature);
|
|
77
|
-
const preserved = elements?.shift();
|
|
78
|
-
if (elements && elements.length === 0) existing.delete(signature);
|
|
79
|
-
desiredElements.push(preserved ?? createHeadElement(descriptor));
|
|
80
|
-
}
|
|
81
|
-
for (const elements of existing.values()) for (const el of elements) el.remove();
|
|
82
|
-
let cursor = document.head.querySelector(`[${ATTR}]`);
|
|
83
|
-
for (const el of desiredElements) {
|
|
84
|
-
if (el !== cursor) document.head.insertBefore(el, cursor);
|
|
85
|
-
cursor = el.nextSibling;
|
|
86
|
-
}
|
|
87
|
-
if (head?.title !== void 0) document.title = head.title;
|
|
88
|
-
}
|
|
89
|
-
//#endregion
|
|
90
|
-
export { initClientHead as n, applyClientHead as t };
|
package/dist/help-DfQYVfGY.mjs
DELETED
package/dist/login-mx_ydhmp.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { n as HeadDescriptor } from "../head-C8K_iGe6.mjs";
|
|
2
|
-
//#region src/pages/head-client.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Mark SSR-rendered head tags so they are cleaned up on the first SPA navigation.
|
|
5
|
-
* Call once after hydration with the initial page's head descriptor.
|
|
6
|
-
*/
|
|
7
|
-
export declare function initClientHead(head: HeadDescriptor | undefined): void;
|
|
8
|
-
/**
|
|
9
|
-
* Apply head changes on SPA navigation.
|
|
10
|
-
* Preserves existing managed tags when their final attributes are unchanged.
|
|
11
|
-
*/
|
|
12
|
-
export declare function applyClientHead(head: HeadDescriptor | undefined): void;
|
|
13
|
-
//#endregion
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { _ as resolvePinnedApiBaseUrl, a as checkCloudflareProvisionDrift, c as enableD1ReadReplicationViaApi, d as isQueueConfirmedAbsent, f as isRealD1Id, g as provisionEnv, h as provisionCloudflareResources, i as assertValidResourceName, l as isAlreadyGoneKillError, m as normalizeRunWranglerResult, n as acquireProvisionLock, o as createDefaultRunWrangler, p as isRealKvId, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware, t as WranglerQuarantineError, u as isQuarantineError, v as resolveProperLockfileKey } from "./provision-BfaLiWbj.mjs";
|
|
2
|
-
export { WranglerQuarantineError, acquireProvisionLock, assertNoTransportRedirectInProjectDotenv, assertValidResourceName, checkCloudflareProvisionDrift, createDefaultRunWrangler, deleteEnvVarCaseAware, enableD1ReadReplicationViaApi, isAlreadyGoneKillError, isQuarantineError, isQueueConfirmedAbsent, isRealD1Id, isRealKvId, normalizeRunWranglerResult, provisionCloudflareResources, provisionEnv, resolvePinnedApiBaseUrl, resolveProperLockfileKey };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { a as join } from "./dist-BVqXeR_h.mjs";
|
|
2
|
-
import { readFileSync } from "node:fs";
|
|
3
|
-
//#region src/cli/resolve-project.ts
|
|
4
|
-
function getRequestedProjectSlug(options) {
|
|
5
|
-
const cliSlug = options?.projectSlug?.trim();
|
|
6
|
-
if (cliSlug) return cliSlug;
|
|
7
|
-
const envSlug = process.env.VOID_PROJECT?.trim();
|
|
8
|
-
if (envSlug) return envSlug;
|
|
9
|
-
return null;
|
|
10
|
-
}
|
|
11
|
-
function resolveProjectBySlug(projects, slug) {
|
|
12
|
-
const project = projects.find((candidate) => candidate.slug === slug);
|
|
13
|
-
return project ? {
|
|
14
|
-
projectId: project.id,
|
|
15
|
-
slug: project.slug
|
|
16
|
-
} : null;
|
|
17
|
-
}
|
|
18
|
-
async function requireProjectBySlug(client, slug) {
|
|
19
|
-
const project = resolveProjectBySlug(await client.listProjects(), slug);
|
|
20
|
-
if (!project) throw new Error(`project: No project found with slug '${slug}'.`);
|
|
21
|
-
return project;
|
|
22
|
-
}
|
|
23
|
-
function inferDefaultSlug(root) {
|
|
24
|
-
const pkgPath = join(root, "package.json");
|
|
25
|
-
return (JSON.parse(readFileSync(pkgPath, "utf-8")).name ?? "my-app").replace(/^@[^/]+\//, "").replace(/[^a-z0-9-]/g, "-");
|
|
26
|
-
}
|
|
27
|
-
//#endregion
|
|
28
|
-
export { resolveProjectBySlug as i, inferDefaultSlug as n, requireProjectBySlug as r, getRequestedProjectSlug as t };
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { a as join, n as dirname } from "./dist-BVqXeR_h.mjs";
|
|
2
|
-
import { existsSync, readdirSync } from "node:fs";
|
|
3
|
-
import { pathToFileURL } from "node:url";
|
|
4
|
-
//#region src/cli/yarn-pnp.ts
|
|
5
|
-
/**
|
|
6
|
-
* Read PnP runtime files at a single directory without walking
|
|
7
|
-
* ancestors. Returns a descriptor with the files that exist, or
|
|
8
|
-
* `undefined` when neither is present.
|
|
9
|
-
*/
|
|
10
|
-
function readPnpRuntimeAt(dir) {
|
|
11
|
-
const cjs = join(dir, ".pnp.cjs");
|
|
12
|
-
const loader = join(dir, ".pnp.loader.mjs");
|
|
13
|
-
const cjsExists = existsSync(cjs);
|
|
14
|
-
const loaderExists = existsSync(loader);
|
|
15
|
-
if (!cjsExists && !loaderExists) return;
|
|
16
|
-
return {
|
|
17
|
-
pnpCjs: cjsExists ? cjs : void 0,
|
|
18
|
-
pnpLoader: loaderExists ? loader : void 0
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Returns true when `dir` contains a local package-manager lockfile
|
|
23
|
-
* (`pnpm-lock.yaml`, `package-lock.json`, `yarn.lock`, `bun.lock`,
|
|
24
|
-
* `bun.lockb`). A lockfile at `dir` is definitive proof that a package
|
|
25
|
-
* manager runs install from this directory: Yarn / pnpm / npm / bun
|
|
26
|
-
* all write the lockfile at the install root, and workspace members
|
|
27
|
-
* SHARE the root lockfile rather than carrying their own.
|
|
28
|
-
*
|
|
29
|
-
* Two independent call sites depend on this signal:
|
|
30
|
-
*
|
|
31
|
-
* 1. `findYarnPnpRuntime` / `findInstalledYarnPnpRuntime` below use
|
|
32
|
-
* it as the "leaf-managed install ownership" gate: a nested
|
|
33
|
-
* project with its own lockfile must NOT inherit an outer Yarn
|
|
34
|
-
* PnP runtime into `NODE_OPTIONS`, because the outer `.pnp.cjs`
|
|
35
|
-
* patches `Module._resolveFilename` to consult a graph that
|
|
36
|
-
* doesn't contain the leaf's dependencies — drizzle-kit then
|
|
37
|
-
* fails to resolve `drizzle-orm/...`.
|
|
38
|
-
* 2. `resolveWorkspaceDeferral` in `init.ts` uses it as the
|
|
39
|
-
* "workspace-skip boundary": a subpackage with its own lockfile
|
|
40
|
-
* is not governed by the workspace install and must run install
|
|
41
|
-
* + starter migration locally.
|
|
42
|
-
*
|
|
43
|
-
* Both call sites must check the same set of lockfile paths — if one
|
|
44
|
-
* drifts (for example, adding a new package manager's lockfile to
|
|
45
|
-
* only one helper), the two paths will silently disagree on the same
|
|
46
|
-
* directory. Exported as the single source of truth to lock the
|
|
47
|
-
* invariant in one place.
|
|
48
|
-
*
|
|
49
|
-
* Note: `package.json#packageManager` (Corepack pin) is deliberately
|
|
50
|
-
* NOT a signal here. A Yarn Berry workspace member can legitimately
|
|
51
|
-
* declare its own `packageManager: "yarn@..."` while still resolving
|
|
52
|
-
* through the workspace root's `.pnp.cjs`; treating the pin as
|
|
53
|
-
* leaf-managed would stop the ancestor walk before reaching the real
|
|
54
|
-
* PnP root and break `void db generate` / starter migration
|
|
55
|
-
* generation in valid Yarn PnP monorepos. The lockfile check is
|
|
56
|
-
* sufficient: a fresh-cloned leaf project with only a Corepack pin
|
|
57
|
-
* will still trigger install, which writes the lockfile before
|
|
58
|
-
* `generateStarterMigration()` fires, at which point the gate engages.
|
|
59
|
-
*/
|
|
60
|
-
function hasLocalLockfile(dir) {
|
|
61
|
-
return existsSync(join(dir, "pnpm-lock.yaml")) || existsSync(join(dir, "package-lock.json")) || existsSync(join(dir, "yarn.lock")) || existsSync(join(dir, "bun.lock")) || existsSync(join(dir, "bun.lockb"));
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Walk ancestors from `start` (inclusive) looking for Yarn Berry PnP
|
|
65
|
-
* runtime files. Returns the directory containing them (with both
|
|
66
|
-
* possibly-existing paths) if found, or `undefined` otherwise.
|
|
67
|
-
*
|
|
68
|
-
* Walking ancestors is important for workspace subpackages — in a Yarn
|
|
69
|
-
* PnP monorepo, `.pnp.cjs` lives at the workspace root, not in each
|
|
70
|
-
* subpackage. Checking only `start` would miss the common shape.
|
|
71
|
-
*
|
|
72
|
-
* Local PnP files at `start` are always authoritative and take
|
|
73
|
-
* precedence over the leaf-managed guard below. When `start` has no
|
|
74
|
-
* local PnP files but DOES have a local lockfile, stop here — ancestor
|
|
75
|
-
* PnP data belongs to a different install graph and injecting it will
|
|
76
|
-
* break resolution for the local one. Only walk past `start` when
|
|
77
|
-
* neither condition holds.
|
|
78
|
-
*/
|
|
79
|
-
function findYarnPnpRuntime(start) {
|
|
80
|
-
const local = readPnpRuntimeAt(start);
|
|
81
|
-
if (local !== void 0) return {
|
|
82
|
-
dir: start,
|
|
83
|
-
runtime: local
|
|
84
|
-
};
|
|
85
|
-
if (hasLocalLockfile(start)) return;
|
|
86
|
-
let dir = dirname(start);
|
|
87
|
-
if (dir === start) return;
|
|
88
|
-
while (true) {
|
|
89
|
-
const found = readPnpRuntimeAt(dir);
|
|
90
|
-
if (found !== void 0) return {
|
|
91
|
-
dir,
|
|
92
|
-
runtime: found
|
|
93
|
-
};
|
|
94
|
-
const parent = dirname(dir);
|
|
95
|
-
if (parent === dir) return;
|
|
96
|
-
dir = parent;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Stricter variant of {@link findYarnPnpRuntime}: only returns a result
|
|
101
|
-
* when the PnP runtime files AND a post-install marker live in the
|
|
102
|
-
* SAME ancestor directory.
|
|
103
|
-
*
|
|
104
|
-
* Yarn Berry repos commonly commit `.pnp.cjs` to
|
|
105
|
-
* version control but NOT `.yarn/cache/*.zip` (zero-install is an
|
|
106
|
-
* opt-in, not the default). A fresh `git clone` before `yarn install`
|
|
107
|
-
* therefore has `.pnp.cjs` on disk while the PnP data points at ZIP
|
|
108
|
-
* archives that haven't been fetched yet. Trusting `.pnp.cjs` existence
|
|
109
|
-
* alone as proof that "yarn install has run" leads `init` to skip the
|
|
110
|
-
* install step, and the subsequent `drizzle-kit generate` spawn crashes
|
|
111
|
-
* because PnP tries to load `void/schema-d1` from a missing ZIP.
|
|
112
|
-
*
|
|
113
|
-
* Accept EITHER of two markers, to cover both non-zero-install
|
|
114
|
-
* and zero-install shapes:
|
|
115
|
-
*
|
|
116
|
-
* 1. `.yarn/install-state.gz` in the same dir. Yarn Berry (3.x and
|
|
117
|
-
* 4.x) writes this on every successful `yarn install` and it is
|
|
118
|
-
* gitignored by convention, so its presence strictly implies
|
|
119
|
-
* "yarn install has populated this checkout at least once". This
|
|
120
|
-
* is the only marker present in a classic (non-zero-install) repo.
|
|
121
|
-
* 2. `.yarn/cache/` containing at least one `.zip` entry in the same
|
|
122
|
-
* dir. In zero-install repos (`nodeLinker: pnp`, cache committed
|
|
123
|
-
* to git), `install-state.gz` is commonly gitignored or absent,
|
|
124
|
-
* but the populated cache IS on disk — that's the whole point of
|
|
125
|
-
* zero-install. A populated cache is therefore sufficient proof
|
|
126
|
-
* that the checkout is ready to resolve dependencies.
|
|
127
|
-
*
|
|
128
|
-
* The same-directory requirement locks the invariant — a committed
|
|
129
|
-
* `.pnp.cjs` in a subdirectory must not be covered by markers sitting
|
|
130
|
-
* at an unrelated ancestor.
|
|
131
|
-
*
|
|
132
|
-
* NOTE: `findYarnPnpRuntime` intentionally does NOT apply this stricter
|
|
133
|
-
* check. NODE_OPTIONS injection for drizzle-kit spawns should still
|
|
134
|
-
* happen whenever PnP runtime files are present: if install hasn't run,
|
|
135
|
-
* drizzle-kit will crash with or without the injected env, so the
|
|
136
|
-
* inject is harmless; if the user is about to run install and then hits
|
|
137
|
-
* a spawn, the env needs to be prepared.
|
|
138
|
-
*/
|
|
139
|
-
function findInstalledYarnPnpRuntime(start) {
|
|
140
|
-
const found = findYarnPnpRuntime(start);
|
|
141
|
-
return found && isYarnPnpInstalled(found.dir) ? found.runtime : void 0;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Return true when `dir` looks like a post-install Yarn Berry PnP
|
|
145
|
-
* checkout. Two valid markers (see `findInstalledYarnPnpRuntime`):
|
|
146
|
-
*
|
|
147
|
-
* - `.yarn/install-state.gz` — written by every successful
|
|
148
|
-
* `yarn install` in a classic (non-zero-install) repo.
|
|
149
|
-
* - `.yarn/cache/*.zip` — present in a zero-install checkout, where
|
|
150
|
-
* archives are committed to git and `install-state.gz` is often
|
|
151
|
-
* gitignored or absent.
|
|
152
|
-
*/
|
|
153
|
-
function isYarnPnpInstalled(dir) {
|
|
154
|
-
if (existsSync(join(dir, ".yarn", "install-state.gz"))) return true;
|
|
155
|
-
const cacheDir = join(dir, ".yarn", "cache");
|
|
156
|
-
if (!existsSync(cacheDir)) return false;
|
|
157
|
-
try {
|
|
158
|
-
return readdirSync(cacheDir).some((e) => e.endsWith(".zip"));
|
|
159
|
-
} catch {
|
|
160
|
-
return false;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* Build a child-process env that injects Yarn Berry PnP loaders into
|
|
165
|
-
* `NODE_OPTIONS` when a PnP runtime is found at or above `root`. This
|
|
166
|
-
* mirrors what `yarn node` does under the hood: `--require` the PnP
|
|
167
|
-
* CJS shim (patches `fs` + `Module._resolveFilename` to understand ZIP
|
|
168
|
-
* virtual paths) and, when present, `--experimental-loader` the PnP
|
|
169
|
-
* ESM loader.
|
|
170
|
-
*
|
|
171
|
-
* Any pre-existing `NODE_OPTIONS` from the parent process (for example
|
|
172
|
-
* when the command is invoked as `yarn void ...` and yarn already set
|
|
173
|
-
* it) is appended AFTER our injected flags so our PnP `--require` runs
|
|
174
|
-
* first. Non-PnP projects inherit `process.env` unchanged.
|
|
175
|
-
*/
|
|
176
|
-
function buildDrizzleKitSpawnEnv(root) {
|
|
177
|
-
const env = { ...process.env };
|
|
178
|
-
const pnp = findYarnPnpRuntime(root)?.runtime;
|
|
179
|
-
if (!pnp) return env;
|
|
180
|
-
const flags = [];
|
|
181
|
-
if (pnp.pnpCjs) flags.push(`--require ${JSON.stringify(pnp.pnpCjs)}`);
|
|
182
|
-
if (pnp.pnpLoader) flags.push(`--experimental-loader ${pathToFileURL(pnp.pnpLoader).href}`);
|
|
183
|
-
const injected = flags.join(" ");
|
|
184
|
-
env.NODE_OPTIONS = process.env.NODE_OPTIONS ? `${injected} ${process.env.NODE_OPTIONS}` : injected;
|
|
185
|
-
return env;
|
|
186
|
-
}
|
|
187
|
-
//#endregion
|
|
188
|
-
export { findInstalledYarnPnpRuntime as n, hasLocalLockfile as r, buildDrizzleKitSpawnEnv as t };
|