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/pages/protocol.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as ValidationError } from "../validation-error-Dg9Recn1.mjs";
|
|
2
|
-
import { i as safeJsonStringify, n as handlePageGet, r as handlePageMutation, t as flattenValidationErrors } from "../protocol-
|
|
2
|
+
import { i as safeJsonStringify, n as handlePageGet, r as handlePageMutation, t as flattenValidationErrors } from "../protocol-RNP0u7UY.mjs";
|
|
3
3
|
export { ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
|
package/dist/pages/serialize.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as serializePageData } from "../serialize-
|
|
1
|
+
import { t as serializePageData } from "../serialize-BtQyaYoC.mjs";
|
|
2
2
|
export { serializePageData };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as operatorGroups, r as parseOperatorArgs } from "./operator-args-
|
|
1
|
+
import { n as operatorGroups, r as parseOperatorArgs } from "./operator-args-UnE8Y2eK.mjs";
|
|
2
2
|
import { PLATFORM_LOGIN_KINDS, normalizePlatformDashboardUrl, parsePlatformLoginId } from "@void/platform";
|
|
3
3
|
import { parsePlatformPlanId } from "@void/platform/plans";
|
|
4
4
|
//#region src/cli/platform-config-args.ts
|
|
@@ -18,38 +18,14 @@ const PLATFORM_AUTH_ACTIONS = [
|
|
|
18
18
|
];
|
|
19
19
|
function parsePlatformConfigArgs(args) {
|
|
20
20
|
if (args.length && args[0] !== "auth") throw new Error("platform: Usage: void platform config auth [command] [options].");
|
|
21
|
-
const positional = [
|
|
22
|
-
const flags = /* @__PURE__ */ new Set();
|
|
23
|
-
const values = /* @__PURE__ */ new Map();
|
|
24
|
-
const valueFlags = [
|
|
21
|
+
const { positional, flags, values } = parseConfigFlags(args, "auth", [
|
|
25
22
|
"connection",
|
|
26
23
|
"installation",
|
|
27
24
|
"id",
|
|
28
25
|
"file",
|
|
29
26
|
"client-secret-env",
|
|
30
27
|
"test-id"
|
|
31
|
-
];
|
|
32
|
-
for (let index = 1; index < args.length; index++) {
|
|
33
|
-
const arg = args[index];
|
|
34
|
-
if (!arg.startsWith("-")) {
|
|
35
|
-
positional.push(arg);
|
|
36
|
-
continue;
|
|
37
|
-
}
|
|
38
|
-
const name = arg.slice(2);
|
|
39
|
-
if (!arg.startsWith("--") || ![
|
|
40
|
-
"json",
|
|
41
|
-
"plan",
|
|
42
|
-
"yes"
|
|
43
|
-
].includes(name) && !valueFlags.includes(name)) throw new Error(`platform: Unknown config auth flag ${arg}.`);
|
|
44
|
-
if (flags.has(name) || values.has(name)) throw new Error(`platform: Duplicate flag ${arg}.`);
|
|
45
|
-
if (!valueFlags.includes(name)) {
|
|
46
|
-
flags.add(name);
|
|
47
|
-
continue;
|
|
48
|
-
}
|
|
49
|
-
const value = args[++index];
|
|
50
|
-
if (!value || value.startsWith("-")) throw new Error(`platform: ${arg} requires a value.`);
|
|
51
|
-
values.set(name, value);
|
|
52
|
-
}
|
|
28
|
+
]);
|
|
53
29
|
const [action = "", target = "", ...extra] = positional;
|
|
54
30
|
if (extra.length || action && !PLATFORM_AUTH_ACTIONS.includes(action)) throw new Error(`platform: Usage: void platform config auth <${PLATFORM_AUTH_ACTIONS.join("|")}>.`);
|
|
55
31
|
const needsTarget = action && action !== "list" && action !== "initialize" && action !== "admission";
|
|
@@ -97,30 +73,11 @@ function parsePlatformConfigArgs(args) {
|
|
|
97
73
|
yes: flags.has("yes")
|
|
98
74
|
};
|
|
99
75
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
const PLATFORM_PLAN_ACTIONS = [
|
|
103
|
-
"show",
|
|
104
|
-
"add",
|
|
105
|
-
"set",
|
|
106
|
-
"reset",
|
|
107
|
-
"archive",
|
|
108
|
-
"restore",
|
|
109
|
-
"remove",
|
|
110
|
-
"default",
|
|
111
|
-
"sync"
|
|
112
|
-
];
|
|
113
|
-
function parsePlatformPlansArgs(args) {
|
|
76
|
+
/** Parses `config <group>` flags: --json, --plan, --yes, and the given value flags. */
|
|
77
|
+
function parseConfigFlags(args, group, valueFlags) {
|
|
114
78
|
const positional = [];
|
|
115
79
|
const flags = /* @__PURE__ */ new Set();
|
|
116
80
|
const values = /* @__PURE__ */ new Map();
|
|
117
|
-
const valueFlags = [
|
|
118
|
-
"connection",
|
|
119
|
-
"file",
|
|
120
|
-
"name",
|
|
121
|
-
"copy",
|
|
122
|
-
"replacement"
|
|
123
|
-
];
|
|
124
81
|
for (let index = 1; index < args.length; index++) {
|
|
125
82
|
const arg = args[index];
|
|
126
83
|
if (!arg.startsWith("-")) {
|
|
@@ -132,7 +89,7 @@ function parsePlatformPlansArgs(args) {
|
|
|
132
89
|
"json",
|
|
133
90
|
"plan",
|
|
134
91
|
"yes"
|
|
135
|
-
].includes(name) && !valueFlags.includes(name)) throw new Error(`platform: Unknown config
|
|
92
|
+
].includes(name) && !valueFlags.includes(name)) throw new Error(`platform: Unknown config ${group} flag ${arg}.`);
|
|
136
93
|
if (flags.has(name) || values.has(name)) throw new Error(`platform: Duplicate flag ${arg}.`);
|
|
137
94
|
if (!valueFlags.includes(name)) {
|
|
138
95
|
flags.add(name);
|
|
@@ -142,6 +99,33 @@ function parsePlatformPlansArgs(args) {
|
|
|
142
99
|
if (!value || value.startsWith("-")) throw new Error(`platform: ${arg} requires a value.`);
|
|
143
100
|
values.set(name, value);
|
|
144
101
|
}
|
|
102
|
+
return {
|
|
103
|
+
positional,
|
|
104
|
+
flags,
|
|
105
|
+
values
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/cli/platform-plans-args.ts
|
|
110
|
+
const PLATFORM_PLAN_ACTIONS = [
|
|
111
|
+
"show",
|
|
112
|
+
"add",
|
|
113
|
+
"set",
|
|
114
|
+
"reset",
|
|
115
|
+
"archive",
|
|
116
|
+
"restore",
|
|
117
|
+
"remove",
|
|
118
|
+
"default",
|
|
119
|
+
"sync"
|
|
120
|
+
];
|
|
121
|
+
function parsePlatformPlansArgs(args) {
|
|
122
|
+
const { positional, flags, values } = parseConfigFlags(args, "plans", [
|
|
123
|
+
"connection",
|
|
124
|
+
"file",
|
|
125
|
+
"name",
|
|
126
|
+
"copy",
|
|
127
|
+
"replacement"
|
|
128
|
+
]);
|
|
145
129
|
const [action = "", target = "", ...extra] = positional;
|
|
146
130
|
if (extra.length || action && !PLATFORM_PLAN_ACTIONS.includes(action)) throw new Error(`platform: Usage: void platform config plans [${PLATFORM_PLAN_ACTIONS.join("|")}] [plan-id] [options].`);
|
|
147
131
|
const needsTarget = action && action !== "show" && action !== "sync";
|
|
@@ -362,21 +346,13 @@ function parsePlatformArgs(args) {
|
|
|
362
346
|
if (rest.length > 0) throw new Error(`platform: Unexpected argument '${rest[0]}'.`);
|
|
363
347
|
return { subcommand };
|
|
364
348
|
}
|
|
365
|
-
if (subcommand === "use") {
|
|
349
|
+
if (subcommand === "use" || subcommand === "status") {
|
|
366
350
|
const { selector } = parseSelector(rest, subcommand);
|
|
367
351
|
return {
|
|
368
352
|
subcommand,
|
|
369
353
|
selector
|
|
370
354
|
};
|
|
371
355
|
}
|
|
372
|
-
if (subcommand === "status") {
|
|
373
|
-
const { selector, plan } = parseSelector(rest, subcommand);
|
|
374
|
-
if (plan) throw new Error("platform: Unknown flag '--plan'.");
|
|
375
|
-
return {
|
|
376
|
-
subcommand,
|
|
377
|
-
selector
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
356
|
if (subcommand === "discover") {
|
|
381
357
|
let account = "";
|
|
382
358
|
let selector = "";
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { u as openBrowser } from "./auth-
|
|
1
|
+
import { u as openBrowser } from "./auth-B6iOCjKI.mjs";
|
|
2
2
|
import { A as confirm, K as select, U as password, X as text, z as multiselect } from "./dist-D3m88sjf.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { n as OperatorClient } from "./operator-client-
|
|
5
|
-
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-
|
|
6
|
-
import { i as humanLines } from "./operator-cmd-
|
|
7
|
-
import { o as platformPromptAnswer } from "./platform-setup-
|
|
3
|
+
import { l as formatUrl, m as printSuccess } from "./output-FNHKw5Ac.mjs";
|
|
4
|
+
import { n as OperatorClient } from "./operator-client-C-ROjk1I.mjs";
|
|
5
|
+
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-Cr2zCc-J.mjs";
|
|
6
|
+
import { i as humanLines } from "./operator-cmd-C5lCctnc.mjs";
|
|
7
|
+
import { o as platformPromptAnswer } from "./platform-setup-CTf6MMT9.mjs";
|
|
8
8
|
import { parsePlatformAdmissionPolicy, parsePlatformLoginConfiguration } from "@void/platform";
|
|
9
9
|
import { stripVTControlCharacters } from "node:util";
|
|
10
|
-
import { execFile } from "node:child_process";
|
|
11
10
|
import { setTimeout } from "node:timers/promises";
|
|
12
11
|
import { readFile } from "node:fs/promises";
|
|
13
12
|
//#region src/cli/platform-auth-config.ts
|
|
@@ -46,8 +45,8 @@ async function waitForPlatformLoginTest(client, launch, signal) {
|
|
|
46
45
|
if (url.origin !== client.origin || url.pathname !== "/auth/test" || url.username || url.password || url.hash) throw new Error("platform: The login test belongs to a different platform.");
|
|
47
46
|
const expiry = Date.parse(launch.expiresAt);
|
|
48
47
|
if (!Number.isFinite(expiry) || expiry > Date.now() + 66e4) throw new Error("platform: Invalid login test expiry.");
|
|
49
|
-
console.log(`Complete the login test in your browser: ${url.href}`);
|
|
50
|
-
openBrowser(url.href
|
|
48
|
+
console.log(`Complete the login test in your browser: ${formatUrl(url.href)}`);
|
|
49
|
+
openBrowser(url.href);
|
|
51
50
|
while (Date.now() < expiry) {
|
|
52
51
|
signal?.throwIfAborted();
|
|
53
52
|
const result = await client.request(`/config/auth/tests/${encodeURIComponent(launch.id)}`, { signal });
|
|
@@ -143,11 +142,11 @@ async function configurationInput(args, existing) {
|
|
|
143
142
|
}
|
|
144
143
|
async function runPlatformAuthConfig(args) {
|
|
145
144
|
if (args.action === "recover") {
|
|
146
|
-
const { runPlatformAuthRecovery } = await import("./platform-auth-recovery-
|
|
145
|
+
const { runPlatformAuthRecovery } = await import("./platform-auth-recovery-D_0I3n-1.mjs");
|
|
147
146
|
return runPlatformAuthRecovery(args);
|
|
148
147
|
}
|
|
149
148
|
if (args.action === "protection") {
|
|
150
|
-
const { runPlatformProtectionConfig } = await import("./platform-auth-protection-
|
|
149
|
+
const { runPlatformProtectionConfig } = await import("./platform-auth-protection-D5wvsI-Y.mjs");
|
|
151
150
|
return runPlatformProtectionConfig(args);
|
|
152
151
|
}
|
|
153
152
|
const origin = resolveOperatorOrigin(args.connection);
|
package/dist/{platform-auth-protection-BJimB_p9.mjs → platform-auth-protection-D5wvsI-Y.mjs}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as writePendingInstallationSecrets, c as normalizePlatformApiUrl, m as readInstallationRecoverySecrets, p as promoteInstallationSecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest } from "./platform-registry-
|
|
2
|
-
import { t as cfAccessHeaders } from "./cf-access-
|
|
3
|
-
import {
|
|
1
|
+
import { S as writePendingInstallationSecrets, c as normalizePlatformApiUrl, m as readInstallationRecoverySecrets, p as promoteInstallationSecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest } from "./platform-registry-B9mWX9LO.mjs";
|
|
2
|
+
import { t as cfAccessHeaders } from "./cf-access-BM9G0lhO.mjs";
|
|
3
|
+
import { t as ensurePlatformAccessToken } from "./cf-access-CWP4avfP.mjs";
|
|
4
4
|
import { A as confirm, tt as isCancel } from "./dist-D3m88sjf.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { n as OperatorClient } from "./operator-client-
|
|
7
|
-
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-
|
|
8
|
-
import {
|
|
9
|
-
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-
|
|
5
|
+
import { m as printSuccess } from "./output-FNHKw5Ac.mjs";
|
|
6
|
+
import { n as OperatorClient } from "./operator-client-C-ROjk1I.mjs";
|
|
7
|
+
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-Cr2zCc-J.mjs";
|
|
8
|
+
import { F as checkpointPlatformAccessResources, I as parsePlatformAccessSetupSpec, L as preparePlatformAccessSetup, N as resolvePlatformCloudflareCredential, n as resolvePlatformInstallDatabaseUrl, s as acquirePlatformDatabaseLifecycleLock, z as PlatformCloudflareClient } from "./platform-lifecycle-DOW-wLfx.mjs";
|
|
9
|
+
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-t7HKy4-U.mjs";
|
|
10
10
|
import { parsePlatformAccessProtection, platformProtectionProofMessage } from "@void/platform";
|
|
11
11
|
import { createHmac } from "node:crypto";
|
|
12
12
|
import { readFile } from "node:fs/promises";
|
|
@@ -55,6 +55,21 @@ async function verifyProtectionWorkerOrigins(client, manifest, origins, disableP
|
|
|
55
55
|
if (current.enabled !== update.enabled || current.previews_enabled !== false) throw new Error("platform: Worker alternate origins changed during protection setup. Reconcile them before retrying.");
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
function stringList(value) {
|
|
59
|
+
return Array.isArray(value) && value.every((item) => typeof item === "string") ? value : void 0;
|
|
60
|
+
}
|
|
61
|
+
function protectionContext(value) {
|
|
62
|
+
const { installationId, userId, sessionId, revision, lifecycleVersion } = value;
|
|
63
|
+
const origins = stringList(value.origins);
|
|
64
|
+
return typeof installationId === "string" && typeof userId === "string" && typeof sessionId === "string" && typeof revision === "number" && Number.isSafeInteger(revision) && typeof lifecycleVersion === "string" && origins ? {
|
|
65
|
+
installationId,
|
|
66
|
+
userId,
|
|
67
|
+
sessionId,
|
|
68
|
+
revision,
|
|
69
|
+
lifecycleVersion,
|
|
70
|
+
origins
|
|
71
|
+
} : void 0;
|
|
72
|
+
}
|
|
58
73
|
async function runPlatformProtectionConfig(args) {
|
|
59
74
|
const manifest = args.target === "show" ? void 0 : resolveInstallationManifest(args.installation);
|
|
60
75
|
const origin = args.connection ? resolveOperatorOrigin(args.connection) : manifest?.endpoints.apiUrl ? normalizePlatformApiUrl(manifest.endpoints.apiUrl) : resolveOperatorOrigin("");
|
|
@@ -64,16 +79,16 @@ async function runPlatformProtectionConfig(args) {
|
|
|
64
79
|
const provisioning = saved?.accessProvisioningJson ? JSON.parse(saved.accessProvisioningJson) : void 0;
|
|
65
80
|
if (manifest.deployment.authentication.accessProtection || provisioning?.resources?.protection?.id) ensurePlatformAccessToken(origin, false, true);
|
|
66
81
|
}
|
|
67
|
-
|
|
82
|
+
const live = await operator.request("/config/auth/protection");
|
|
68
83
|
if (args.target === "show") {
|
|
69
84
|
console.log(JSON.stringify({
|
|
70
|
-
protection:
|
|
71
|
-
origins:
|
|
85
|
+
protection: live.protection,
|
|
86
|
+
origins: live.origins
|
|
72
87
|
}, null, 2));
|
|
73
88
|
return;
|
|
74
89
|
}
|
|
75
|
-
|
|
76
|
-
|
|
90
|
+
let context = protectionContext(live);
|
|
91
|
+
if (!manifest || manifest.status !== "installed" || !manifest.endpoints.proxyUrl || normalizePlatformApiUrl(manifest.endpoints.apiUrl ?? "") !== origin || !context || context.installationId !== manifest.id) throw new Error("platform: Protection settings must belong to this completed installation. Repair or upgrade it first.");
|
|
77
92
|
let origins = context.origins;
|
|
78
93
|
if (!origins.includes(origin) || !origins.includes(new URL(manifest.endpoints.proxyUrl).origin)) throw new Error("platform: The live API and proxy origins differ from installation recovery state. Repair the installation first.");
|
|
79
94
|
const spec = args.file ? parsePlatformAccessSetupSpec(JSON.parse(await readFile(args.file, "utf8"))) : void 0;
|
|
@@ -126,10 +141,9 @@ async function runPlatformProtectionConfig(args) {
|
|
|
126
141
|
currentManifest = selectAuthoritativePlatformManifest(currentManifest, releaseDatabase.authoritativeManifest);
|
|
127
142
|
if (!releaseDatabase.authoritativeManifest) await releaseDatabase.checkpoint?.(currentManifest);
|
|
128
143
|
else writeInstallationManifest(currentManifest);
|
|
129
|
-
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
if (normalizePlatformApiUrl(currentManifest.endpoints.apiUrl ?? "") !== origin || !currentManifest.endpoints.proxyUrl || context.installationId !== currentManifest.id || lockedOrigins.length !== (Array.isArray(rawLockedOrigins) ? rawLockedOrigins.length : -1) || !lockedOrigins.includes(origin) || !lockedOrigins.includes(new URL(currentManifest.endpoints.proxyUrl).origin)) throw new Error("platform: Platform origins changed before Access provisioning. Review and retry.");
|
|
144
|
+
const locked = await operator.request("/config/auth/protection");
|
|
145
|
+
const lockedOrigins = stringList(locked.origins);
|
|
146
|
+
if (normalizePlatformApiUrl(currentManifest.endpoints.apiUrl ?? "") !== origin || !currentManifest.endpoints.proxyUrl || locked.installationId !== currentManifest.id || !lockedOrigins || !lockedOrigins.includes(origin) || !lockedOrigins.includes(new URL(currentManifest.endpoints.proxyUrl).origin)) throw new Error("platform: Platform origins changed before Access provisioning. Review and retry.");
|
|
133
147
|
origins = lockedOrigins;
|
|
134
148
|
await verifyPlatformInstallationOwnership(cloudflare, currentManifest);
|
|
135
149
|
await verifyProtectionWorkerOrigins(cloudflare, currentManifest, origins, true);
|
|
@@ -168,9 +182,8 @@ async function runPlatformProtectionConfig(args) {
|
|
|
168
182
|
}
|
|
169
183
|
ensurePlatformAccessToken(origin, false, true);
|
|
170
184
|
if (!cfAccessHeaders(process.env, origin)["cf-access-token"]) throw new Error("platform: Sign in interactively through company Access to enable protection. Service credentials cannot authorize this change.");
|
|
171
|
-
context = await operator.request("/config/auth/protection");
|
|
172
|
-
if (context
|
|
173
|
-
lifecycleVersion = context.lifecycleVersion;
|
|
185
|
+
context = protectionContext(await operator.request("/config/auth/protection"));
|
|
186
|
+
if (!context || context.installationId !== currentManifest.id || JSON.stringify(context.origins) !== JSON.stringify(origins)) throw new Error("platform: Protection settings changed while Access resources were being checkpointed. Review and retry.");
|
|
174
187
|
await verifyProtectionWorkerOrigins(cloudflare, currentManifest, origins, false);
|
|
175
188
|
}
|
|
176
189
|
const expiresAt = new Date(Date.now() + 3e5).toISOString();
|
|
@@ -180,13 +193,13 @@ async function runPlatformProtectionConfig(args) {
|
|
|
180
193
|
userId: context.userId,
|
|
181
194
|
sessionId: context.sessionId,
|
|
182
195
|
revision: context.revision,
|
|
183
|
-
lifecycleVersion,
|
|
196
|
+
lifecycleVersion: context.lifecycleVersion,
|
|
184
197
|
protection,
|
|
185
198
|
expiresAt
|
|
186
199
|
})).digest("base64url");
|
|
187
200
|
const body = {
|
|
188
201
|
revision: context.revision,
|
|
189
|
-
lifecycleVersion,
|
|
202
|
+
lifecycleVersion: context.lifecycleVersion,
|
|
190
203
|
protection,
|
|
191
204
|
expiresAt,
|
|
192
205
|
signature
|
|
@@ -203,10 +216,7 @@ async function runPlatformProtectionConfig(args) {
|
|
|
203
216
|
method: "POST",
|
|
204
217
|
body
|
|
205
218
|
});
|
|
206
|
-
|
|
207
|
-
revision: result.revision,
|
|
208
|
-
protection
|
|
209
|
-
}) });
|
|
219
|
+
writePendingInstallationSecrets(currentManifest, checkpoint);
|
|
210
220
|
promoteInstallationSecrets(currentManifest);
|
|
211
221
|
console.log(JSON.stringify({
|
|
212
222
|
...result,
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest } from "./platform-registry-
|
|
2
|
-
import { u as openBrowser } from "./auth-
|
|
1
|
+
import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest } from "./platform-registry-B9mWX9LO.mjs";
|
|
2
|
+
import { u as openBrowser } from "./auth-B6iOCjKI.mjs";
|
|
3
3
|
import { A as confirm, tt as isCancel } from "./dist-D3m88sjf.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { a as resolveOperatorOrigin } from "./operator-auth-
|
|
6
|
-
import {
|
|
7
|
-
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-
|
|
4
|
+
import { l as formatUrl, m as printSuccess } from "./output-FNHKw5Ac.mjs";
|
|
5
|
+
import { a as resolveOperatorOrigin } from "./operator-auth-Cr2zCc-J.mjs";
|
|
6
|
+
import { N as resolvePlatformCloudflareCredential, c as acquirePlatformDatabaseLifecycleLockConnection, l as platformDatabaseClientUrl, n as resolvePlatformInstallDatabaseUrl, z as PlatformCloudflareClient } from "./platform-lifecycle-DOW-wLfx.mjs";
|
|
7
|
+
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-t7HKy4-U.mjs";
|
|
8
8
|
import { parsePlatformAccessProtection, parsePlatformAdmissionPolicy, parsePlatformLoginConfiguration, platformAuthenticationRecoveryMessage, validatePlatformAdmissionPolicy } from "@void/platform";
|
|
9
9
|
import { createCipheriv, createDecipheriv, createHash, createHmac, hkdfSync, randomBytes, randomUUID } from "node:crypto";
|
|
10
|
-
import { execFile } from "node:child_process";
|
|
11
10
|
import { setTimeout } from "node:timers/promises";
|
|
12
11
|
import { readFile } from "node:fs/promises";
|
|
13
12
|
//#region src/cli/platform-auth-recovery-core.ts
|
|
@@ -271,8 +270,8 @@ async function runPlatformAuthRecovery(args) {
|
|
|
271
270
|
const url = new URL("/auth/test", manifest.endpoints.apiUrl);
|
|
272
271
|
url.searchParams.set("id", testId);
|
|
273
272
|
url.searchParams.set("proof", proof);
|
|
274
|
-
console.log(`Complete the recovery login in your browser: ${url.href}`);
|
|
275
|
-
if (process.stdin.isTTY) openBrowser(url.href
|
|
273
|
+
console.log(`Complete the recovery login in your browser: ${formatUrl(url.href)}`);
|
|
274
|
+
if (process.stdin.isTTY) openBrowser(url.href);
|
|
276
275
|
let tested;
|
|
277
276
|
while (Date.now() < Date.parse(expiresAt)) {
|
|
278
277
|
tested = (await db.query("SELECT issuer,subject,login FROM platform_login_tests WHERE id = $1 AND user_id = $2 AND expires_at > now()", [testId, input.administratorUserId])).rows[0];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as runPlatformCommand, t as discoverPlatform } from "./platform-cmd-
|
|
1
|
+
import { r as runPlatformCommand, t as discoverPlatform } from "./platform-cmd-DxxZO6e5.mjs";
|
|
2
2
|
export { discoverPlatform, runPlatformCommand };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as selectPlatformConnection, c as normalizePlatformApiUrl, i as getActivePlatformConnection, l as platformConnectionSlug, o as listInstallationManifests, s as listPlatformConnections, y as savePlatformConnection } from "./platform-registry-
|
|
2
|
-
import { t as cfAccessHeaders } from "./cf-access-
|
|
3
|
-
import {
|
|
1
|
+
import { b as selectPlatformConnection, c as normalizePlatformApiUrl, i as getActivePlatformConnection, l as platformConnectionSlug, o as listInstallationManifests, s as listPlatformConnections, y as savePlatformConnection } from "./platform-registry-B9mWX9LO.mjs";
|
|
2
|
+
import { t as cfAccessHeaders } from "./cf-access-BM9G0lhO.mjs";
|
|
3
|
+
import { r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-CWP4avfP.mjs";
|
|
4
4
|
import { K as select, L as log, X as text, tt as isCancel } from "./dist-D3m88sjf.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { n as readPlatformDiscoveryResponse, t as PlatformDisabledError } from "./platform-discovery-
|
|
5
|
+
import { f as import_picocolors, l as formatUrl, m as printSuccess } from "./output-FNHKw5Ac.mjs";
|
|
6
|
+
import { n as readPlatformDiscoveryResponse, t as PlatformDisabledError } from "./platform-discovery-CHhNs8Nn.mjs";
|
|
7
7
|
//#region src/cli/platform-cmd.ts
|
|
8
8
|
function normalizePlatformInputUrl(input) {
|
|
9
9
|
const value = input.trim();
|
|
@@ -12,7 +12,7 @@ function normalizePlatformInputUrl(input) {
|
|
|
12
12
|
}
|
|
13
13
|
async function discoverPlatform(input, fetcher = fetch) {
|
|
14
14
|
const apiUrl = normalizePlatformInputUrl(input);
|
|
15
|
-
|
|
15
|
+
ensurePlatformAccessToken(apiUrl);
|
|
16
16
|
const request = () => fetcher(`${apiUrl}/.well-known/void-platform`, {
|
|
17
17
|
headers: {
|
|
18
18
|
Accept: "application/json",
|
|
@@ -66,7 +66,7 @@ async function resolveConnection(selector) {
|
|
|
66
66
|
function showPlatform(connection, installations) {
|
|
67
67
|
const slug = platformConnectionSlug(connection, installations);
|
|
68
68
|
console.log(` ${import_picocolors.default.bold(connection.displayName)}${slug ? ` ${import_picocolors.default.dim(`(${slug})`)}` : ""}`);
|
|
69
|
-
console.log(` ${connection.apiUrl}`);
|
|
69
|
+
console.log(` ${formatUrl(connection.apiUrl)}`);
|
|
70
70
|
if (connection.applicationDomain) console.log(connection.applicationDomain.endsWith(".workers.dev") ? " apps: workers.dev (testing)" : ` apps: *.${connection.applicationDomain}`);
|
|
71
71
|
}
|
|
72
72
|
function saveDiscoveredPlatform(discovery) {
|
|
@@ -96,19 +96,19 @@ async function runPlatformCommand(_root, args) {
|
|
|
96
96
|
}]
|
|
97
97
|
});
|
|
98
98
|
if (isCancel(group)) return;
|
|
99
|
-
const { parsePlatformArgs } = await import("./platform-args-
|
|
99
|
+
const { parsePlatformArgs } = await import("./platform-args-Cm7x-fot.mjs");
|
|
100
100
|
return runPlatformCommand(_root, parsePlatformArgs(["config", group]));
|
|
101
101
|
}
|
|
102
|
-
const { runPlatformPlansConfig } = await import("./platform-plans-config-
|
|
102
|
+
const { runPlatformPlansConfig } = await import("./platform-plans-config-CNH6zbPX.mjs");
|
|
103
103
|
await runPlatformPlansConfig(args);
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
|
-
const { runPlatformAuthConfig } = await import("./platform-auth-config-
|
|
106
|
+
const { runPlatformAuthConfig } = await import("./platform-auth-config-CJmNkFT2.mjs");
|
|
107
107
|
await runPlatformAuthConfig(args);
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
110
|
if (args.subcommand === "operator") {
|
|
111
|
-
const { runOperatorCommand } = await import("./operator-cmd-
|
|
111
|
+
const { runOperatorCommand } = await import("./operator-cmd-Cjk5DiRx.mjs");
|
|
112
112
|
await runOperatorCommand(args);
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
@@ -166,8 +166,8 @@ async function runPlatformCommand(_root, args) {
|
|
|
166
166
|
throw error;
|
|
167
167
|
}
|
|
168
168
|
log.info(`${discovery.displayName} is reachable.`);
|
|
169
|
-
console.log(`API: ${discovery.apiUrl}`);
|
|
170
|
-
console.log(`Proxy: ${discovery.proxyUrl}`);
|
|
169
|
+
console.log(`API: ${formatUrl(discovery.apiUrl)}`);
|
|
170
|
+
console.log(`Proxy: ${formatUrl(discovery.proxyUrl)}`);
|
|
171
171
|
if (discovery.applicationRouting?.workersDev && !discovery.applicationRouting.zoneName) {
|
|
172
172
|
console.log("Application domain: workers.dev (testing)");
|
|
173
173
|
console.log("Add a domain: void platform domain set <domain>");
|
|
@@ -176,7 +176,7 @@ async function runPlatformCommand(_root, args) {
|
|
|
176
176
|
console.log(`Capabilities: ${Object.entries(discovery.capabilities).filter(([, enabled]) => enabled).map(([name]) => name).join(", ")}`);
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
|
-
const { runPlatformLifecycleCommand } = await import("./platform-lifecycle-
|
|
179
|
+
const { runPlatformLifecycleCommand } = await import("./platform-lifecycle-_gfnjUBr.mjs");
|
|
180
180
|
await runPlatformLifecycleCommand(args);
|
|
181
181
|
}
|
|
182
182
|
function showSavedInstallationStatus(manifest) {
|
|
@@ -187,7 +187,7 @@ function showSavedInstallationStatus(manifest) {
|
|
|
187
187
|
console.log(`Saved operation: ${operation.action} — ${operation.phase}`);
|
|
188
188
|
console.log(`Runtime: ${operation.fromVersion ?? "new installation"} → ${operation.toVersion}`);
|
|
189
189
|
}
|
|
190
|
-
if (manifest.endpoints.apiUrl) console.log(`Administrator status: ${manifest.endpoints.apiUrl}/admin/status`);
|
|
190
|
+
if (manifest.endpoints.apiUrl) console.log(`Administrator status: ${formatUrl(`${manifest.endpoints.apiUrl}/admin/status`)}`);
|
|
191
191
|
}
|
|
192
192
|
//#endregion
|
|
193
193
|
export { saveDiscoveredPlatform as i, promptPlatformUrl as n, runPlatformCommand as r, discoverPlatform as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as normalizePlatformApiUrl } from "./platform-registry-
|
|
1
|
+
import { c as normalizePlatformApiUrl } from "./platform-registry-B9mWX9LO.mjs";
|
|
2
2
|
import { parsePlatformDiscoveryDocument } from "@void/platform";
|
|
3
3
|
//#region src/cli/platform-discovery.ts
|
|
4
4
|
/** Discovery was refused because the platform traffic gate is closed. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-
|
|
2
|
-
import { t as cfAccessHeaders } from "./cf-access-
|
|
1
|
+
import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-B9mWX9LO.mjs";
|
|
2
|
+
import { t as cfAccessHeaders } from "./cf-access-BM9G0lhO.mjs";
|
|
3
3
|
import { A as confirm, X as text, tt as isCancel } from "./dist-D3m88sjf.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest, o as resolveInstalledPlatformManifest } from "./platform-management-
|
|
4
|
+
import { m as printSuccess, p as note } from "./output-FNHKw5Ac.mjs";
|
|
5
|
+
import { M as assertPlatformOperatorCredentialCanApplyPlan, N as resolvePlatformCloudflareCredential, b as recordPlatformWorkerTraffic, h as createPlatformHealthProbeToken, n as resolvePlatformInstallDatabaseUrl, s as acquirePlatformDatabaseLifecycleLock, t as assertNoninteractivePlatformMutationAcknowledged, v as recordResource, x as createPlatformInstallPlan, z as PlatformCloudflareClient } from "./platform-lifecycle-DOW-wLfx.mjs";
|
|
6
|
+
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest, o as resolveInstalledPlatformManifest } from "./platform-management-t7HKy4-U.mjs";
|
|
7
7
|
import { PLATFORM_HEALTH_HOSTNAME_LABEL, PLATFORM_REMOTE_INSTALLATION_MANIFEST_KEY, createApplicationRoutes, createPlatformDeploymentManifest, normalizeApplicationDomain } from "@void/platform";
|
|
8
8
|
//#region src/cli/platform-domain.ts
|
|
9
9
|
function platformDomainTarget(manifest, domain, zone, dedicatedZone) {
|