void 1.11.0 → 1.12.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-Bbr5cHjm.mjs → account-cmd-D_0qJ9fx.mjs} +6 -6
- package/dist/{agents-DRo8gzni.mjs → agents-64FnLwxP.mjs} +6 -5
- package/dist/{application-analysis-XyUuNqYA.mjs → application-analysis-Cx2S63z5.mjs} +48 -22
- package/dist/{application-routing-DATqynKH.mjs → application-routing-BAXpnawu.mjs} +1 -1
- package/dist/{assets-DZBd7yqh.mjs → assets-Br6_BeFJ.mjs} +34 -27
- package/dist/{ast-Cv0JwXqb.mjs → ast-BkPQu7A0.mjs} +5 -1
- package/dist/{auth-BN0NU9dz.mjs → auth-Boz0lrb3.mjs} +1 -1
- package/dist/{auth-CCk9Seol.mjs → auth-DlLDymuc.mjs} +24 -12
- package/dist/{auth-link-CVxoyU81.mjs → auth-link-C97r9p2N.mjs} +6 -6
- package/dist/{auth-router-ChXKduRM.mjs → auth-router-BmzEgzYx.mjs} +5 -5
- package/dist/{better-auth-shared-B8W8tZxP.d.mts → better-auth-shared-BS3pDQbT.d.mts} +6 -6
- package/dist/{better-auth-shared-DRHo5FoG.mjs → better-auth-shared-BcqDt-37.mjs} +7 -2
- package/dist/{build-cmd-C3b13rRf.mjs → build-cmd-BaFsyZrz.mjs} +13 -12
- package/dist/{cache-B1WzZV60.mjs → cache-xO711ATQ.mjs} +6 -6
- package/dist/{cancel-deploy-BggXixU_.mjs → cancel-deploy-Di11ynsr.mjs} +5 -5
- package/dist/{cf-access-pejlJmuy.mjs → cf-access-DmkKPcAI.mjs} +0 -8
- package/dist/{cf-access-Dnyw8KFY.mjs → cf-access-FaIm95jA.mjs} +8 -4
- package/dist/{cf-build-output-bBx1gDll.mjs → cf-build-output-Ca201_n1.mjs} +27 -25
- package/dist/cf-build-output-Dy7N0hQN.mjs +1 -0
- package/dist/{cf-command-values-Ccl-zRhl.mjs → cf-command-values-5BPBRc9Z.mjs} +1 -1
- package/dist/cf-config-migrate-D271BTiw.mjs +1664 -0
- package/dist/{cf-worker-settings-CARs4Wy9.mjs → cf-worker-settings-BBdlhm9U.mjs} +1 -1
- package/dist/cli/cli.mjs +1 -1
- package/dist/cli/cloudflare-operation-process.mjs +17 -14
- package/dist/cli/env-schema-probe.d.mts +3 -1
- package/dist/cli/env-schema-probe.mjs +7 -8
- package/dist/{cli-main-DW09sVsT.mjs → cli-main-DlW6lB8s.mjs} +142 -88
- package/dist/{client-DGfZTE4V.mjs → client-DkYzDEC0.mjs} +1 -1
- package/dist/{client-DF6U7KLP.mjs → client-ImIe7Mjq.mjs} +186 -17
- package/dist/{cloudflare-auth-pNvmT6kL.mjs → cloudflare-auth-eWfhdZCk.mjs} +1 -1
- package/dist/{cloudflare-cmd-BOhToob3.mjs → cloudflare-cmd-SsFlJe2B.mjs} +7 -8
- package/dist/{cloudflare-config-D1dMHbvz.mjs → cloudflare-config-D9UFH_A5.mjs} +2 -2
- package/dist/{cloudflare-connect-DTrsIBAa.mjs → cloudflare-connect-BgpHcSg3.mjs} +3 -3
- package/dist/{cloudflare-operations-DmqtzoX4.mjs → cloudflare-operations-BF0PSErW.mjs} +12 -20
- package/dist/{cloudflare-operations-BditDbcd.mjs → cloudflare-operations-dpRD-2Px.mjs} +1 -1
- package/dist/cloudflare-process-60r4Z2Zf.mjs +671 -0
- package/dist/cloudflare-user-output-CCR99eQY.mjs +19 -0
- package/dist/collect-B6nlSnsb.mjs +1 -0
- package/dist/{collect-C6Blu9yw.mjs → collect-rNLybAnF.mjs} +3 -3
- package/dist/{config-Do7gJI3T.mjs → config-BFX5ZB1J.mjs} +5 -4
- package/dist/{config-CeZd67L0.mjs → config-BSoW3QCB.mjs} +5 -5
- package/dist/{config-DYW2TBgz.d.mts → config-DA6ZbLXO.d.mts} +1 -1
- package/dist/{config-dMSpL-ml.mjs → config-DtjrUtPo.mjs} +1 -1
- package/dist/{config-BmvqLnbi.mjs → config-Dv5jri1-.mjs} +4 -4
- package/dist/config-entry.d.mts +1 -1
- package/dist/{connect-B3bKxRzX.mjs → connect-DDRQGfFE.mjs} +9 -9
- package/dist/{create-project-DLUlxmf5.mjs → create-project-CY7sP8sI.mjs} +7 -6
- package/dist/{create-project-By7ymK7F.mjs → create-project-Dro3K-az.mjs} +1 -1
- package/dist/{db-3qsP21pH.mjs → db-DmlaWVBu.mjs} +120 -103
- package/dist/db-seed-loader-Bcz_SutQ.mjs +253 -0
- package/dist/{db-types-DC7KJLx2.mjs → db-types-B4Cf9dzR.mjs} +1 -1
- package/dist/{delete-HbFqgEFC.mjs → delete-Uuq9ch6o.mjs} +6 -6
- package/dist/{deploy-2QjsBEGw.mjs → deploy-B9E7_rHC.mjs} +218 -553
- package/dist/deploy-BB3rsZbP.mjs +2 -0
- package/dist/{deploy-managed-static-JoNP3cec.mjs → deploy-managed-static-IKZyuc1W.mjs} +115 -194
- package/dist/deploy-security-notice-C3LalelR.mjs +192 -0
- package/dist/{deploy-transport-QAkhJYRI.mjs → deploy-transport-BKP_oV9q.mjs} +4 -4
- package/dist/deploy.mjs +9 -9
- package/dist/{dev-inbox-BiamQEAa.mjs → dev-inbox-ClVjKEHy.mjs} +1 -1
- package/dist/direct-r2-upload-DFXLWfXV.mjs +204 -0
- package/dist/discover-D2KGP3cR.mjs +1 -0
- package/dist/{discover-Vd18lHsj.mjs → discover-IcspacCg.mjs} +1 -1
- package/dist/{dispatch-BlOYh1Vc.mjs → dispatch-DIhDA3NI.mjs} +11 -10
- package/dist/{dist-Cp4b1_T9.mjs → dist-C47zy_kJ.mjs} +1 -1
- package/dist/{dist-STQXl8ck.mjs → dist-Cr_xGE_K.mjs} +73 -38
- package/dist/{domain-COkVSfII.mjs → domain-B_xY1yZ5.mjs} +8 -10
- package/dist/{dotenv-CEI8hapP.mjs → dotenv-BG6RQavH.mjs} +2 -2
- package/dist/{drizzle-BXVOa6Jg.mjs → drizzle-BJDMPrj7.mjs} +3 -4
- package/dist/{drizzle-CvSGrvdl.mjs → drizzle-CQ5jWuDL.mjs} +1 -1
- package/dist/{email-Dj02fLgQ.mjs → email-BIC15L7a.mjs} +33 -30
- package/dist/{email-cloudflare-DDknDAgp.mjs → email-cloudflare-C447nOqq.mjs} +29 -38
- package/dist/{email-pattern-BYr-EFq5.mjs → email-pattern-bRna9MOJ.mjs} +2 -2
- package/dist/{entry-DMgR7XOf.mjs → entry-Bwb9ev8K.mjs} +13 -10
- package/dist/{env-BA7e5yzp.mjs → env-DJPZYHT5.mjs} +8 -8
- package/dist/{env-UqS-21xi.mjs → env-EjHqc7m9.mjs} +1 -1
- package/dist/{env-types-WEZw5D-r.mjs → env-types-D2hBodXP.mjs} +2 -19
- package/dist/{env-validation-DfJ9Fzfa.mjs → env-validation-D-v5_CWL.mjs} +13 -13
- package/dist/{env-validation-ly_Q9Kgd.mjs → env-validation-j9pjCDfA.mjs} +1 -1
- package/dist/{error-pages-QNeBXiRR.mjs → error-pages-GORL6F_e.mjs} +1 -1
- package/dist/{fetch-CbI6lNnk.d.mts → fetch-CczQyIed.d.mts} +1 -1
- package/dist/{fetch-DdK9eGin.mjs → fetch-CiEsvjpP.mjs} +1 -1
- package/dist/{fetch-stream-DQAavFdm.mjs → fetch-stream-BIG5lHW6.mjs} +3 -4
- package/dist/{fetch-stream-DoED9atq.d.mts → fetch-stream-DRX8-83b.d.mts} +2 -2
- package/dist/gen-CQDiPi8m.mjs +1 -0
- package/dist/{gen-EMpnzNGz.mjs → gen-DiTZlDx8.mjs} +21 -18
- package/dist/{generate-BOp1g1H_.mjs → generate-C3ZAqCy-.mjs} +1 -1
- package/dist/{generate-CWb8aOsm.mjs → generate-Dq2Bgw75.mjs} +6 -6
- package/dist/{git-metadata-Cukp5kV5.mjs → git-metadata-BEokJ6US.mjs} +1 -1
- package/dist/{github-cmd-8bXgJNAQ.mjs → github-cmd-DPmby8x-.mjs} +14 -9
- package/dist/{handler-w_FAiIRu.mjs → handler-DCrDLzw2.mjs} +3 -3
- package/dist/has-own-key-D9QEnAkF.mjs +5 -0
- package/dist/{head-0o0QoREY.mjs → head-BwQ5kgqt.mjs} +5 -4
- package/dist/{head-CVO92KEx.d.mts → head-fUp8n_QJ.d.mts} +9 -4
- package/dist/{headers-BjgvlY29.mjs → headers-DqBsjDxg.mjs} +7 -7
- package/dist/{help-DCQKp3Kp.mjs → help-9wfMyXHb.mjs} +130 -60
- package/dist/help-Dy3w4rPq.mjs +1 -0
- package/dist/{inbound-BHt4dIlL.d.mts → inbound-CwgZSqFI.d.mts} +9 -3
- package/dist/{inbound--OF7zkwX.mjs → inbound-feMn1Rxx.mjs} +7 -7
- package/dist/{index-CmqHYj2R.d.mts → index-8cAgNdb6.d.mts} +1 -1
- package/dist/{index-BTmhCDbw.d.mts → index-BQ5qYiAw.d.mts} +2 -2
- package/dist/{index-BESZTC1z.d.mts → index-BYcWajVp.d.mts} +2 -1
- package/dist/{index-BXdP39qx.d.mts → index-Dn2mkPr2.d.mts} +24 -23
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +341 -444
- package/dist/{info--jdAIsJN.mjs → info-BWEWaOBo.mjs} +4 -4
- package/dist/{init-BLZvktk_.mjs → init-BuTPVLPO.mjs} +69 -335
- package/dist/{isr-config-Czzb4mIq.mjs → isr-config-DiTnL9Tb.mjs} +5 -5
- package/dist/{link-DPJ4jN7y.mjs → link-BiesPyT4.mjs} +7 -7
- package/dist/{list-B-au6xJt.mjs → list-CkonftPQ.mjs} +11 -7
- package/dist/{live-DvtxTUhW.mjs → live-dvGThbwy.mjs} +14 -17
- package/dist/{load-user-env-BltIJLtl.mjs → load-user-env-B8qC0Q2Y.mjs} +1 -1
- package/dist/{local-d1-C6xn26Nl.mjs → local-d1-CYOYkVwO.mjs} +3 -3
- package/dist/{login-p1_BMgXg.mjs → login-BSOSah1j.mjs} +8 -6
- package/dist/login-DWCZeCX9.mjs +1 -0
- package/dist/{logs-UNH3vQeX.mjs → logs-HOBUnroa.mjs} +9 -9
- package/dist/{migrate-9dlt6Mxu.mjs → migrate-BNZL1hee.mjs} +9 -10
- package/dist/migrate-C9aoWLvY.mjs +1 -0
- package/dist/{migrations-Cbns2RAm.mjs → migrations-CUHhX65Y.mjs} +5 -5
- package/dist/{mime-BGoZ8ZLL.mjs → mime-Btw9R3CC.mjs} +26 -12
- package/dist/{mysql-sql-SlpS6OMg.mjs → mysql-sql-CB52k8tQ.mjs} +45 -22
- package/dist/nitro.d.mts +3 -0
- package/dist/nitro.mjs +14 -5
- package/dist/{node-DqkiQujF.mjs → node-DVJWfV6s.mjs} +6 -6
- package/dist/{operator-ai-logging-BQ6mOgQs.mjs → operator-ai-logging-ZDqqhnIq.mjs} +11 -10
- package/dist/operator-args-DCkWbgT-.mjs +1499 -0
- package/dist/{operator-auth-CD3pap65.mjs → operator-auth-BjoPLgja.mjs} +2 -2
- package/dist/{operator-client-XvXTkea6.mjs → operator-client-DzebIntv.mjs} +3 -3
- package/dist/{operator-cmd-CKbZbNKn.mjs → operator-cmd-AZoeI9Pl.mjs} +28 -12
- package/dist/operator-cmd-DEnHFmJF.mjs +1 -0
- package/dist/operator-security-Bo26FP01.mjs +263 -0
- package/dist/{output-Bc8ixgPF.mjs → output-BZLnu0z8.mjs} +13 -3
- package/dist/output-D7K9TWIA.mjs +1 -0
- package/dist/{package-json-DvS6IFRv.mjs → package-json-4xUI3xLz.mjs} +1 -1
- package/dist/pages/client.d.mts +53 -30
- package/dist/pages/client.mjs +93 -31
- package/dist/pages/head.d.mts +1 -1
- package/dist/pages/head.mjs +1 -1
- package/dist/pages/index.d.mts +2 -2
- package/dist/pages/index.mjs +7 -7
- package/dist/pages/islands-plugin.d.mts +26 -8
- package/dist/pages/islands-plugin.mjs +61 -22
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +1 -1
- package/dist/pages/serialize.mjs +1 -1
- package/dist/{pgpass-CEtnBOZO.mjs → pgpass-BLPoYN9_.mjs} +3 -2
- package/dist/platform-args-DNbNZ_RR.mjs +1 -0
- package/dist/{platform-args-DQSMW4EP.mjs → platform-args-lwCyQ6Xy.mjs} +37 -9
- package/dist/{platform-auth-config-D80AKe72.mjs → platform-auth-config-DLRMPw1G.mjs} +26 -23
- package/dist/{platform-auth-protection-k1Ox-u9T.mjs → platform-auth-protection-HSmLmD3d.mjs} +10 -10
- package/dist/{platform-auth-recovery-D-hKehPy.mjs → platform-auth-recovery-BXPhTlKa.mjs} +11 -9
- package/dist/{platform-cmd-Dtz5lw7R.mjs → platform-cmd-CqRjxFEU.mjs} +1 -1
- package/dist/{platform-cmd-DQ0Wi61H.mjs → platform-cmd-DJ-fOYhL.mjs} +11 -11
- package/dist/{platform-discovery-B0eZjZ3B.mjs → platform-discovery-CLxtixHJ.mjs} +1 -1
- package/dist/{platform-domain-BMGS4l74.mjs → platform-domain-CRsRJOws.mjs} +14 -10
- package/dist/{platform-lifecycle-y4AfmC7M.mjs → platform-lifecycle-bx_kpqo7.mjs} +1 -1
- package/dist/{platform-lifecycle-BCkNQNsQ.mjs → platform-lifecycle-fau3VKv6.mjs} +755 -207
- package/dist/platform-management-BRGhD-oF.mjs +1 -0
- package/dist/{platform-management-Cj2aXFqD.mjs → platform-management-CnKBdDx5.mjs} +227 -58
- package/dist/{platform-plans-config-CrUUzEl9.mjs → platform-plans-config-2C3_5EDs.mjs} +112 -35
- package/dist/{platform-recovery-DKZnALHI.mjs → platform-recovery-poxgOOAY.mjs} +5 -5
- package/dist/{platform-registry-DZ_2Xuqd.mjs → platform-registry-DHH6fivm.mjs} +6 -5
- package/dist/{platform-setup-CKmSEb1J.mjs → platform-setup-DYylapHD.mjs} +26 -12
- package/dist/{plugin-inference-B_urWd5Z.mjs → plugin-inference-7O11_E4H.mjs} +26 -26
- package/dist/{prepare-vCdm5moJ.mjs → prepare-BbvlKreR.mjs} +12 -12
- package/dist/prepare-BmG2E6TI.mjs +1 -0
- package/dist/{prepare-CU7SZieQ.mjs → prepare-DWjn1Lzd.mjs} +3 -3
- package/dist/{project-cmd-B4cgPSi4.mjs → project-cmd-DyUEFi2b.mjs} +30 -24
- package/dist/{project-CLwxcEdq.mjs → project-dh9431bN.mjs} +2 -2
- package/dist/{project-paths-CUhCPMpK.mjs → project-paths-2ENfCCih.mjs} +4 -3
- package/dist/project-security--tYGFPGo.mjs +1340 -0
- package/dist/project-security-DZEQgnsS.mjs +1 -0
- package/dist/{project-team-BdX6anO3.mjs → project-team-BszTHgzC.mjs} +8 -8
- package/dist/{project-token-C1rcq8Xb.mjs → project-token-DBDy4NdV.mjs} +6 -6
- package/dist/{project-tsconfig-MyRJgufB.mjs → project-tsconfig-BOA4ym99.mjs} +25 -5
- package/dist/{project-DVsTAWFh.mjs → project-uXKua1it.mjs} +1 -1
- package/dist/project-zero-trust-D9sUouij.mjs +210 -0
- package/dist/{protocol-W5EQcIzN.mjs → protocol-CE3wP-H1.mjs} +5 -5
- package/dist/{protocol-BlAiF-hc.d.mts → protocol-ERy-n3jf.d.mts} +7 -4
- package/dist/{provision-DWnnKdT-.mjs → provision-Bh44omGA.mjs} +30 -22
- package/dist/{provision-CGI-T0mq.mjs → provision-DFv7SJDn.mjs} +1 -1
- package/dist/{public-B80SwOFp.d.mts → public-DB9C2Cy_.d.mts} +5 -2
- package/dist/{raw-7pQirZpQ.mjs → raw-5rak34QN.mjs} +2 -1
- package/dist/{redirect-Dqb4fEc5.mjs → redirect-DD825Stf.mjs} +1 -1
- package/dist/{requests-D6MaLS_Y.mjs → requests-CBokjiOi.mjs} +6 -6
- package/dist/{resolve-project-Da3OgCU1.mjs → resolve-project-8WZ3iVmr.mjs} +3 -3
- package/dist/resolve-project-YsTH-U9I.mjs +1 -0
- package/dist/{rollback-Bs8I8PF8.mjs → rollback-CEeHNFUn.mjs} +16 -7
- package/dist/route-types-CSed9-Dp.mjs +435 -0
- package/dist/{route-url-BBdkU7rb.mjs → route-url-B41eQ8QI.mjs} +1 -1
- package/dist/{route-url-Di1kB8D_.d.mts → route-url-Bd6IX-JZ.d.mts} +2 -1
- package/dist/routes-stub.d.mts +1 -1
- package/dist/routes-stub.mjs +1 -1
- package/dist/{runner-CTk21HrO.mjs → runner-Bf94YVJK.mjs} +1 -1
- package/dist/{runner-CMZb7jNU.mjs → runner-CeguHWJx.mjs} +3 -2
- package/dist/{runner-mysql-CJ-HyqxV.mjs → runner-mysql-3XDKrn-g.mjs} +13 -9
- package/dist/{runner-mysql-C_PrAUTm.mjs → runner-mysql-r688x6Y9.mjs} +1 -1
- package/dist/{runner-pg-mYc75KfH.mjs → runner-pg-Buzw17hl.mjs} +1 -1
- package/dist/{runner-pg-2pjltt0t.mjs → runner-pg-DMJquR3d.mjs} +1 -1
- package/dist/runtime/ai/index.mjs +2 -2
- package/dist/runtime/auth/better-auth-d1.d.mts +1 -1
- package/dist/runtime/auth/better-auth-d1.mjs +2 -2
- package/dist/runtime/auth/better-auth-mysql.d.mts +1 -1
- package/dist/runtime/auth/better-auth-mysql.mjs +2 -2
- package/dist/runtime/auth/better-auth-postgres.d.mts +1 -1
- package/dist/runtime/auth/better-auth-postgres.mjs +3 -3
- package/dist/runtime/client/fetch-server.d.mts +1 -1
- package/dist/runtime/client/fetch-server.mjs +2 -2
- package/dist/runtime/client/fetch-stream.d.mts +2 -2
- package/dist/runtime/client/fetch-stream.mjs +1 -1
- package/dist/runtime/client/fetch.d.mts +1 -1
- package/dist/runtime/client/fetch.mjs +1 -1
- package/dist/runtime/client/index.d.mts +2 -2
- package/dist/runtime/client/index.mjs +2 -2
- package/dist/runtime/client/react.d.mts +2 -2
- package/dist/runtime/client/react.mjs +2 -2
- package/dist/runtime/client/solid.d.mts +2 -2
- package/dist/runtime/client/solid.mjs +2 -2
- package/dist/runtime/client/svelte.d.mts +2 -2
- package/dist/runtime/client/svelte.mjs +2 -2
- package/dist/runtime/client/vue.d.mts +2 -2
- package/dist/runtime/client/vue.mjs +2 -2
- package/dist/runtime/db/index.d.mts +1 -1
- package/dist/runtime/db/index.mjs +3 -3
- package/dist/runtime/db/migrations/mysql-handler.mjs +1 -1
- package/dist/runtime/db/migrations/postgres-handler.mjs +1 -1
- package/dist/runtime/db/session.d.mts +1 -1
- package/dist/runtime/db/session.mjs +1 -1
- package/dist/runtime/durable/index.mjs +7 -5
- package/dist/runtime/email/index.d.mts +1 -1
- package/dist/runtime/email/index.mjs +14 -11
- package/dist/runtime/email/testing.d.mts +1 -1
- package/dist/runtime/email/testing.mjs +4 -4
- package/dist/runtime/env/public-client.d.mts +4 -1
- package/dist/runtime/env/public.d.mts +1 -1
- package/dist/runtime/env/public.mjs +2 -2
- package/dist/runtime/env/runtime.mjs +1 -1
- package/dist/runtime/handler/index.d.mts +1 -1
- package/dist/runtime/handler/index.mjs +1 -1
- package/dist/runtime/handler/validator.d.mts +1 -1
- package/dist/runtime/handler/validator.mjs +1 -1
- package/dist/runtime/isr/index.mjs +1 -1
- package/dist/runtime/kv/index.mjs +1 -1
- package/dist/runtime/live/client.d.mts +2 -2
- package/dist/runtime/live/client.mjs +7 -7
- package/dist/runtime/live/index.d.mts +1 -1
- package/dist/runtime/live/index.mjs +1 -1
- package/dist/runtime/live/server.mjs +3 -3
- package/dist/runtime/queues/index.mjs +2 -2
- package/dist/runtime/remote/index.d.mts +5 -1
- package/dist/runtime/remote/index.mjs +10 -9
- package/dist/runtime/routing/index.d.mts +11 -12
- package/dist/runtime/routing/index.mjs +69 -65
- package/dist/runtime/routing/route-url.d.mts +1 -1
- package/dist/runtime/routing/route-url.mjs +1 -1
- package/dist/runtime/sandbox/index.d.mts +1 -1
- package/dist/runtime/sandbox/index.mjs +2 -2
- package/dist/runtime/sse/client.d.mts +1 -1
- package/dist/runtime/sse/index.mjs +1 -1
- package/dist/runtime/storage/index.mjs +1 -1
- package/dist/runtime/ws/index.d.mts +1 -1
- package/dist/runtime/ws/index.mjs +3 -2
- package/dist/runtime/ws/room.d.mts +1 -1
- package/dist/runtime/ws/room.mjs +2 -2
- package/dist/runtime/ws/server.d.mts +2 -2
- package/dist/runtime/ws/server.mjs +1 -1
- package/dist/{runtime-zDDinDI5.mjs → runtime-C_VPIJBF.mjs} +1 -1
- package/dist/{scan-LjuG3vfA.mjs → scan-Ct_SEzH4.mjs} +36 -29
- package/dist/{secret-DdUs8AuR.mjs → secret-Deqo3n_N.mjs} +11 -10
- package/dist/security-api-types-CU7zQtr_.mjs +9 -0
- package/dist/security-sarif-ClyYwtAW.mjs +123 -0
- package/dist/{serialize-Pf-CIQK_.mjs → serialize-BmB4BfKu.mjs} +1 -1
- package/dist/{server-CfUbeOjx.mjs → server-T-4mn8zy.mjs} +5 -4
- package/dist/{session-Cw8-b8Um.mjs → session-BT8XDkvL.mjs} +1 -1
- package/dist/{session-DgNrdNh_.d.mts → session-ouZYD7zb.d.mts} +1 -1
- package/dist/{skills-B40svMBE.mjs → skills-C-csz78e.mjs} +3 -3
- package/dist/{sse-BXnTfcf3.mjs → sse-D3ab0YQT.mjs} +16 -13
- package/dist/{static-exports-DFkzL-NX.mjs → static-exports-s7P86Ngp.mjs} +3 -3
- package/dist/{subcommand-prompt-D-m3Umap.mjs → subcommand-prompt-B4LOLosl.mjs} +31 -21
- package/dist/sveltekit.mjs +1 -1
- package/dist/{terminal-log-text-DNsWJREL.mjs → terminal-log-text-CfS2JKM6.mjs} +1 -1
- package/dist/{url-DaehRGKR.mjs → url-DBQluotE.mjs} +4 -1
- package/dist/validate-CZYUIfR-.mjs +1 -0
- package/dist/{validate-Ddzl-IwT.mjs → validate-CtBWCzez.mjs} +7 -4
- package/dist/{validator-Duafcnh7.mjs → validator-Dfh9kCDm.mjs} +5 -5
- package/dist/{version-metadata-k6KFiyWt.mjs → version-metadata-DqgLa6gc.mjs} +1 -1
- package/dist/{wrangler-v2BmVchV.mjs → wrangler-DVe5KV5G.mjs} +49 -46
- package/dist/wrangler-Dq269bjx.mjs +1 -0
- package/dist/{wrapper-eh6MpBZA.mjs → wrapper-CcMYpOS8.mjs} +45 -171
- package/docs/guide/app-types.md +1 -1
- package/docs/guide/auth.md +2 -16
- package/docs/guide/database.md +2 -0
- package/docs/guide/email/domains.md +1 -1
- package/docs/guide/email/sending.md +18 -1
- package/docs/guide/pages-routing/actions-and-forms.md +4 -4
- package/docs/guide/pages-routing/head.md +20 -2
- package/docs/guide/platform/administration/plans.md +13 -0
- package/docs/guide/platform/administration/security-audits.md +213 -0
- package/docs/guide/platform/administration/zero-trust.md +6 -0
- package/docs/guide/platform/installation/ci.md +1 -1
- package/docs/guide/platform/installation/credentials.md +23 -20
- package/docs/guide/platform/installation/maintenance.md +8 -2
- package/docs/guide/platform/installation/prerequisites.md +1 -1
- package/docs/guide/platform/installation/uninstall.md +2 -0
- package/docs/guide/platform-administration.md +1 -0
- package/docs/guide/self-hosted-platform.md +14 -13
- package/docs/guide/type-safety.md +1 -1
- package/docs/integrations/cloudflare.md +3 -1
- package/docs/reference/api/handlers.md +3 -3
- package/docs/reference/api/types.md +11 -1
- package/docs/reference/cli/deploy.md +5 -1
- package/docs/reference/cli/domains.md +1 -1
- package/docs/reference/cli/platform-config.md +5 -3
- package/docs/reference/cli/platform-installation.md +29 -28
- package/docs/reference/cli/platform-security.md +98 -0
- package/docs/reference/cli/platform-zero-trust.md +2 -0
- package/docs/reference/cli/platform.md +1 -0
- package/docs/reference/cli/project.md +57 -0
- package/docs/reference/cli.md +3 -1
- package/docs/reference/config.md +2 -2
- package/package.json +30 -27
- package/skills/void/SKILL.md +7 -0
- package/dist/cf-build-output-D3_x71H6.mjs +0 -1
- package/dist/cf-config-migrate-CHtnM3_C.mjs +0 -348
- package/dist/cloudflare-process-wcnaQ5JG.mjs +0 -392
- package/dist/cloudflare-user-output-zEwuGrEJ.mjs +0 -19
- package/dist/collect-8i0wU63d.mjs +0 -1
- package/dist/deploy-DiFfBu8g.mjs +0 -2
- package/dist/discover-Diq0l6TZ.mjs +0 -1
- package/dist/gen-CuANrEzy.mjs +0 -1
- package/dist/help-7EzLA1qP.mjs +0 -1
- package/dist/login-apwve7WD.mjs +0 -1
- package/dist/migrate-BzRplq7m.mjs +0 -1
- package/dist/operator-args-BCCohcz3.mjs +0 -722
- package/dist/operator-cmd-D42knxMz.mjs +0 -1
- package/dist/output-D4UOUifX.mjs +0 -1
- package/dist/platform-args-Rgp86xa7.mjs +0 -1
- package/dist/platform-management-CRzeC70H.mjs +0 -1
- package/dist/prepare-C2MTqfFv.mjs +0 -1
- package/dist/project-zero-trust-CS02LrlK.mjs +0 -64
- package/dist/resolve-project-C5wC-Hoi.mjs +0 -1
- package/dist/route-types-CrODgORq.mjs +0 -655
- package/dist/validate-DY1U9rET.mjs +0 -1
- package/dist/wrangler-BPIAJdxA.mjs +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { n as operatorGroups, r as parseOperatorArgs } from "./operator-args-
|
|
1
|
+
import { n as operatorGroups, r as parseOperatorArgs } from "./operator-args-DCkWbgT-.mjs";
|
|
2
2
|
import { R2_LOCATION_HINTS, isR2LocationHint } from "@void/deploy-core";
|
|
3
3
|
import { PLATFORM_LOGIN_KINDS, normalizePlatformDashboardUrl, parsePlatformLoginId } from "@void/platform";
|
|
4
|
+
import { parsePlanSecurityCapInput } from "@void/platform/security-policy";
|
|
4
5
|
import { parsePlatformPlanId } from "@void/platform/plans";
|
|
5
6
|
// src/cli/platform-config-args.ts
|
|
6
7
|
const PLATFORM_AUTH_ACTIONS = [
|
|
@@ -124,7 +125,8 @@ function parsePlatformPlansArgs(args) {
|
|
|
124
125
|
"file",
|
|
125
126
|
"name",
|
|
126
127
|
"copy",
|
|
127
|
-
"replacement"
|
|
128
|
+
"replacement",
|
|
129
|
+
"security-cap"
|
|
128
130
|
]);
|
|
129
131
|
const [action = "", target = "", ...extra] = positional;
|
|
130
132
|
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].`);
|
|
@@ -141,7 +143,8 @@ function parsePlatformPlansArgs(args) {
|
|
|
141
143
|
["file", ["add", "set"]],
|
|
142
144
|
["name", ["add", "set"]],
|
|
143
145
|
["copy", ["add"]],
|
|
144
|
-
["replacement", ["remove"]]
|
|
146
|
+
["replacement", ["remove"]],
|
|
147
|
+
["security-cap", ["add", "set"]]
|
|
145
148
|
]) if (values.has(name) && !actions.includes(action)) throw new Error(`platform: --${name} is only valid for ${actions.join(" or ")}.`);
|
|
146
149
|
return {
|
|
147
150
|
subcommand: "config",
|
|
@@ -153,11 +156,24 @@ function parsePlatformPlansArgs(args) {
|
|
|
153
156
|
name: values.get("name") ?? "",
|
|
154
157
|
copy: values.get("copy") ?? "",
|
|
155
158
|
replacement: values.get("replacement") ?? "",
|
|
159
|
+
securityCap: parseSecurityCapFlag(values.get("security-cap")),
|
|
156
160
|
json: flags.has("json"),
|
|
157
161
|
plan: flags.has("plan"),
|
|
158
162
|
yes: flags.has("yes")
|
|
159
163
|
};
|
|
160
164
|
}
|
|
165
|
+
/** `--security-cap 50`, `--security-cap 12.50`, `none` (no cap) or `inherit` (policy default). */
|
|
166
|
+
function parseSecurityCapFlag(value) {
|
|
167
|
+
if (value === void 0) return;
|
|
168
|
+
if (value === "none" || value === "inherit") return value;
|
|
169
|
+
const usd = value.trim() === "" ? NaN : Number(value);
|
|
170
|
+
try {
|
|
171
|
+
parsePlanSecurityCapInput(usd);
|
|
172
|
+
} catch {
|
|
173
|
+
throw new Error("platform: --security-cap must be a USD amount with at most two decimals (for example 50 or 12.50), none, or inherit.");
|
|
174
|
+
}
|
|
175
|
+
return usd;
|
|
176
|
+
}
|
|
161
177
|
// src/cli/platform-storage.ts
|
|
162
178
|
function parsePlatformStorageLocation(value) {
|
|
163
179
|
if (value !== "automatic" && !isR2LocationHint(value)) throw new Error(`platform: --storage-location must be automatic or one of: ${R2_LOCATION_HINTS.join(", ")}.`);
|
|
@@ -271,6 +287,7 @@ function parseLifecycleSelector(rest, subcommand) {
|
|
|
271
287
|
let authConfig;
|
|
272
288
|
let dashboardUrl;
|
|
273
289
|
let customDomains = false;
|
|
290
|
+
let securityAudits = false;
|
|
274
291
|
for (let index = 0; index < rest.length; index++) {
|
|
275
292
|
const arg = rest[index];
|
|
276
293
|
if (arg === "--runtime") {
|
|
@@ -283,6 +300,7 @@ function parseLifecycleSelector(rest, subcommand) {
|
|
|
283
300
|
dashboardUrl = normalizePlatformDashboardUrl(value);
|
|
284
301
|
index = next;
|
|
285
302
|
} else if (arg === "--custom-domains" && (subcommand === "upgrade" || subcommand === "repair")) customDomains = true;
|
|
303
|
+
else if (arg === "--security-audits" && (subcommand === "upgrade" || subcommand === "repair")) securityAudits = true;
|
|
286
304
|
else if (arg === "--storage-location" && subcommand === "upgrade") {
|
|
287
305
|
const [value, next] = readValue(rest, index, arg);
|
|
288
306
|
storageLocation = parsePlatformStorageLocation(value);
|
|
@@ -310,6 +328,7 @@ function parseLifecycleSelector(rest, subcommand) {
|
|
|
310
328
|
...authConfig !== void 0 ? { authConfig } : {},
|
|
311
329
|
...dashboardUrl !== void 0 ? { dashboardUrl } : {},
|
|
312
330
|
...customDomains ? { customDomains: true } : {},
|
|
331
|
+
...securityAudits ? { securityAudits: true } : {},
|
|
313
332
|
...runtimeLogs !== void 0 ? { runtimeLogs } : {},
|
|
314
333
|
...storageLocation !== void 0 ? { storageLocation } : {}
|
|
315
334
|
};
|
|
@@ -404,7 +423,7 @@ function parsePlatformArgs(args) {
|
|
|
404
423
|
};
|
|
405
424
|
}
|
|
406
425
|
if (subcommand === "upgrade" || subcommand === "rollback" || subcommand === "repair" || subcommand === "disable" || subcommand === "enable") {
|
|
407
|
-
const { selector, plan, runtime, fromRuntime, yes, authConfig, dashboardUrl, customDomains, runtimeLogs, storageLocation } = parseLifecycleSelector(rest, subcommand);
|
|
426
|
+
const { selector, plan, runtime, fromRuntime, yes, authConfig, dashboardUrl, customDomains, securityAudits, runtimeLogs, storageLocation } = parseLifecycleSelector(rest, subcommand);
|
|
408
427
|
return subcommand === "rollback" ? {
|
|
409
428
|
subcommand,
|
|
410
429
|
selector,
|
|
@@ -421,6 +440,7 @@ function parsePlatformArgs(args) {
|
|
|
421
440
|
...authConfig !== void 0 ? { authConfig } : {},
|
|
422
441
|
...dashboardUrl !== void 0 ? { dashboardUrl } : {},
|
|
423
442
|
...customDomains ? { customDomains } : {},
|
|
443
|
+
...securityAudits ? { securityAudits } : {},
|
|
424
444
|
...runtimeLogs !== void 0 ? { runtimeLogs } : {},
|
|
425
445
|
...storageLocation !== void 0 ? { storageLocation } : {}
|
|
426
446
|
};
|
|
@@ -467,6 +487,7 @@ function parsePlatformArgs(args) {
|
|
|
467
487
|
]);
|
|
468
488
|
let workersDev = false;
|
|
469
489
|
let customDomains = false;
|
|
490
|
+
let securityAudits = false;
|
|
470
491
|
for (let i = 0; i < rest.length; i++) {
|
|
471
492
|
const arg = rest[i];
|
|
472
493
|
if (valueFlags.has(arg)) {
|
|
@@ -485,6 +506,7 @@ function parsePlatformArgs(args) {
|
|
|
485
506
|
} else if (arg === "--yes") yes = true;
|
|
486
507
|
else if (arg === "--workers-dev") workersDev = true;
|
|
487
508
|
else if (arg === "--custom-domains") customDomains = true;
|
|
509
|
+
else if (arg === "--security-audits") securityAudits = true;
|
|
488
510
|
else throw new Error(`platform: Unexpected argument '${arg}'.`);
|
|
489
511
|
}
|
|
490
512
|
if (noControlPlaneDomain && values.has("--control-plane-domain")) throw new Error("platform: Choose either --control-plane-domain or --no-control-plane-domain.");
|
|
@@ -496,8 +518,13 @@ function parsePlatformArgs(args) {
|
|
|
496
518
|
"platform",
|
|
497
519
|
"custom"
|
|
498
520
|
].includes(appAccess)) throw new Error("platform: --app-access accepts public, platform, or custom.");
|
|
499
|
-
const
|
|
500
|
-
const
|
|
521
|
+
const runtimeLogsInput = values.get("--runtime-logs");
|
|
522
|
+
const runtimeLogs = runtimeLogsInput === void 0 ? void 0 : parseRuntimeLogs(runtimeLogsInput);
|
|
523
|
+
const storageLocationInput = values.get("--storage-location");
|
|
524
|
+
const storageLocation = storageLocationInput === void 0 ? void 0 : parsePlatformStorageLocation(storageLocationInput);
|
|
525
|
+
const hyperdrive = values.get("--hyperdrive");
|
|
526
|
+
const authConfig = values.get("--auth-config");
|
|
527
|
+
const dashboardUrl = values.get("--dashboard-url");
|
|
501
528
|
const loginMethods = values.get("--login-methods")?.split(",");
|
|
502
529
|
if (loginMethods && loginMethods.some((method) => !PLATFORM_LOGIN_KINDS.includes(method))) throw new Error("platform: --login-methods accepts github, google, oidc, and cloudflare-access.");
|
|
503
530
|
if (workersDev && (values.has("--application-domain") || values.has("--zone") || dedicatedZone)) throw new Error("platform: --workers-dev cannot be combined with a domain, zone, or --dedicated-zone.");
|
|
@@ -507,18 +534,19 @@ function parsePlatformArgs(args) {
|
|
|
507
534
|
...noControlPlaneDomain ? { noControlPlaneDomain: true } : {},
|
|
508
535
|
...noDedicatedZone ? { dedicatedZoneSpecified: true } : {},
|
|
509
536
|
...customDomains ? { customDomains: true } : {},
|
|
510
|
-
...
|
|
537
|
+
...securityAudits ? { securityAudits: true } : {},
|
|
538
|
+
...hyperdrive !== void 0 ? { hyperdrive } : {},
|
|
511
539
|
...loginMethods ? { loginMethods: [...new Set(loginMethods)] } : {},
|
|
512
540
|
...accessProtection !== void 0 ? { accessProtection } : {},
|
|
513
541
|
...appAccess !== void 0 ? { appAccess } : {},
|
|
514
542
|
...workersDev ? { workersDev: true } : {},
|
|
515
543
|
...runtimeLogs !== void 0 ? { runtimeLogs } : {},
|
|
516
544
|
...storageLocation !== void 0 ? { storageLocation } : {},
|
|
517
|
-
...
|
|
545
|
+
...authConfig !== void 0 ? { authConfig } : {},
|
|
518
546
|
account: values.get("--account") ?? "",
|
|
519
547
|
applicationDomain: values.get("--application-domain") ?? "",
|
|
520
548
|
controlPlaneDomain: values.get("--control-plane-domain") ?? "",
|
|
521
|
-
...
|
|
549
|
+
...dashboardUrl !== void 0 ? { dashboardUrl: normalizePlatformDashboardUrl(dashboardUrl) } : {},
|
|
522
550
|
dedicatedZone,
|
|
523
551
|
displayName: values.get("--display-name") ?? "",
|
|
524
552
|
name: values.get("--name") ?? "",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as confirm, K as select, U as password, X as text, z as multiselect } from "./dist-
|
|
2
|
-
import { u as openBrowser } from "./auth-
|
|
3
|
-
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-
|
|
4
|
-
import { n as OperatorClient } from "./operator-client-
|
|
5
|
-
import { i as humanLines } from "./operator-cmd-
|
|
6
|
-
import {
|
|
7
|
-
import { o as platformPromptAnswer } from "./platform-setup-
|
|
1
|
+
import { A as confirm, K as select, U as password, X as text, z as multiselect } from "./dist-Cr_xGE_K.mjs";
|
|
2
|
+
import { u as openBrowser } from "./auth-DlLDymuc.mjs";
|
|
3
|
+
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-BjoPLgja.mjs";
|
|
4
|
+
import { n as OperatorClient } from "./operator-client-DzebIntv.mjs";
|
|
5
|
+
import { i as humanLines } from "./operator-cmd-AZoeI9Pl.mjs";
|
|
6
|
+
import { f as formatUrl, y as printSuccess } from "./output-BZLnu0z8.mjs";
|
|
7
|
+
import { o as platformPromptAnswer } from "./platform-setup-DYylapHD.mjs";
|
|
8
8
|
import { parsePlatformAdmissionPolicy, parsePlatformLoginConfiguration } from "@void/platform";
|
|
9
9
|
import { stripVTControlCharacters } from "node:util";
|
|
10
10
|
import { readFile } from "node:fs/promises";
|
|
@@ -142,11 +142,11 @@ async function configurationInput(args, existing) {
|
|
|
142
142
|
}
|
|
143
143
|
async function runPlatformAuthConfig(args) {
|
|
144
144
|
if (args.action === "recover") {
|
|
145
|
-
const { runPlatformAuthRecovery } = await import("./platform-auth-recovery-
|
|
145
|
+
const { runPlatformAuthRecovery } = await import("./platform-auth-recovery-BXPhTlKa.mjs");
|
|
146
146
|
return runPlatformAuthRecovery(args);
|
|
147
147
|
}
|
|
148
148
|
if (args.action === "protection") {
|
|
149
|
-
const { runPlatformProtectionConfig } = await import("./platform-auth-protection-
|
|
149
|
+
const { runPlatformProtectionConfig } = await import("./platform-auth-protection-HSmLmD3d.mjs");
|
|
150
150
|
return runPlatformProtectionConfig(args);
|
|
151
151
|
}
|
|
152
152
|
const origin = resolveOperatorOrigin(args.connection);
|
|
@@ -240,6 +240,7 @@ async function runPlatformAuthConfig(args) {
|
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
const method = listing.methods.find((method) => method.id === chosen);
|
|
243
|
+
if (!method) throw new Error("platform: The selected login method is unavailable.");
|
|
243
244
|
const action = platformPromptAnswer(await select({
|
|
244
245
|
message: stripVTControlCharacters(method.label),
|
|
245
246
|
options: [
|
|
@@ -278,7 +279,7 @@ async function runPlatformAuthConfig(args) {
|
|
|
278
279
|
if (!listing.initialized) throw new Error("platform: Run void platform config auth initialize, then sign in again.");
|
|
279
280
|
if (args.action === "admission") {
|
|
280
281
|
let admission;
|
|
281
|
-
if (args.file) admission = JSON.parse(await readFile(args.file, "utf8"));
|
|
282
|
+
if (args.file) admission = parsePlatformAdmissionPolicy(JSON.parse(await readFile(args.file, "utf8")));
|
|
282
283
|
else {
|
|
283
284
|
if (!process.stdin.isTTY || args.json) throw new Error("platform: Supply --file with the signup policy in non-interactive mode.");
|
|
284
285
|
const mode = platformPromptAnswer(await select({
|
|
@@ -306,23 +307,24 @@ async function runPlatformAuthConfig(args) {
|
|
|
306
307
|
}));
|
|
307
308
|
const eligible = listing.methods.filter((method) => method.enabled && method.configuration.kind !== "github" && (method.configuration.kind !== "google" || method.configuration.allowedDomains.length > 0));
|
|
308
309
|
if (!access && eligible.length === 0) throw new Error("platform: Configure a company-restricted login or Access protection first.");
|
|
309
|
-
|
|
310
|
+
const connections = eligible.length ? platformPromptAnswer(await multiselect({
|
|
311
|
+
message: "Login methods whose company policies qualify new users:",
|
|
312
|
+
required: !access,
|
|
313
|
+
options: eligible.map((method) => ({
|
|
314
|
+
value: method.id,
|
|
315
|
+
label: stripVTControlCharacters(method.label)
|
|
316
|
+
}))
|
|
317
|
+
})) : [];
|
|
318
|
+
admission = parsePlatformAdmissionPolicy({
|
|
310
319
|
mode,
|
|
311
320
|
access,
|
|
312
|
-
connections
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
options: eligible.map((method) => ({
|
|
316
|
-
value: method.id,
|
|
317
|
-
label: stripVTControlCharacters(method.label)
|
|
318
|
-
}))
|
|
319
|
-
})) : []
|
|
320
|
-
};
|
|
321
|
-
} else admission = { mode };
|
|
321
|
+
connections
|
|
322
|
+
});
|
|
323
|
+
} else admission = parsePlatformAdmissionPolicy({ mode });
|
|
322
324
|
}
|
|
323
325
|
printApplied(await apply(client, "/config/auth/admission", {
|
|
324
326
|
revision: listing.revision,
|
|
325
|
-
admission
|
|
327
|
+
admission
|
|
326
328
|
}, args), args);
|
|
327
329
|
return;
|
|
328
330
|
}
|
|
@@ -343,11 +345,12 @@ async function runPlatformAuthConfig(args) {
|
|
|
343
345
|
const input = await configurationInput(args, args.action === "configure" ? method : void 0);
|
|
344
346
|
printApplied(await apply(client, `/config/auth/connections/${encodeURIComponent(input.configuration.id)}/configure`, {
|
|
345
347
|
...input,
|
|
346
|
-
revision: args.action === "add" ? null : method
|
|
348
|
+
revision: args.action === "add" ? null : method?.revision
|
|
347
349
|
}, args), args);
|
|
348
350
|
if (!args.plan && !args.json) console.log(`Test and enable it with void platform config auth enable ${input.configuration.id}.`);
|
|
349
351
|
return;
|
|
350
352
|
}
|
|
353
|
+
if (!method) throw new Error("platform: Login method not found. Run void platform config auth list.");
|
|
351
354
|
let testId = args.testId;
|
|
352
355
|
if ((args.action === "enable" || args.action === "link") && !testId) {
|
|
353
356
|
if (!process.stdin.isTTY || args.plan || args.json) throw new Error("platform: Complete a login test and supply its --test-id.");
|
package/dist/{platform-auth-protection-k1Ox-u9T.mjs → platform-auth-protection-HSmLmD3d.mjs}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as confirm, tt as isCancel } from "./dist-
|
|
2
|
-
import { t as cfAccessHeaders } from "./cf-access-
|
|
3
|
-
import { t as ensurePlatformAccessToken } from "./cf-access-
|
|
4
|
-
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-
|
|
5
|
-
import { n as OperatorClient } from "./operator-client-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
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-
|
|
1
|
+
import { A as confirm, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
|
|
2
|
+
import { t as cfAccessHeaders } from "./cf-access-DmkKPcAI.mjs";
|
|
3
|
+
import { t as ensurePlatformAccessToken } from "./cf-access-FaIm95jA.mjs";
|
|
4
|
+
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-BjoPLgja.mjs";
|
|
5
|
+
import { n as OperatorClient } from "./operator-client-DzebIntv.mjs";
|
|
6
|
+
import { y as printSuccess } from "./output-BZLnu0z8.mjs";
|
|
7
|
+
import { K as platformOperatorCredentialLabel, Q as preparePlatformAccessSetup, X as checkpointPlatformAccessResources, Z as parsePlatformAccessSetupSpec, et as PlatformCloudflareClient, n as resolvePlatformInstallDatabaseUrl, q as resolvePlatformCloudflareCredential, v as acquirePlatformDatabaseLifecycleLock } from "./platform-lifecycle-fau3VKv6.mjs";
|
|
8
|
+
import { f as verifyPlatformInstallationOwnership, u as selectAuthoritativePlatformManifest } from "./platform-management-CnKBdDx5.mjs";
|
|
9
|
+
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-DHH6fivm.mjs";
|
|
10
10
|
import { parsePlatformAccessProtection, platformProtectionProofMessage } from "@void/platform";
|
|
11
11
|
import { createHmac } from "node:crypto";
|
|
12
12
|
import { readFile } from "node:fs/promises";
|
|
@@ -125,7 +125,7 @@ async function runPlatformProtectionConfig(args) {
|
|
|
125
125
|
const recovery = readInstallationRecoverySecrets(currentManifest);
|
|
126
126
|
if (!recovery?.jwtSecret) throw new Error("platform: Restore the original encrypted installation recovery credentials before changing protection.");
|
|
127
127
|
const credential = await resolvePlatformCloudflareCredential();
|
|
128
|
-
const cloudflare = new PlatformCloudflareClient(credential.token);
|
|
128
|
+
const cloudflare = new PlatformCloudflareClient(credential.token, { credential: platformOperatorCredentialLabel(credential) });
|
|
129
129
|
let protection = null;
|
|
130
130
|
const checkpoint = { ...recovery };
|
|
131
131
|
const save = (values) => {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { A as confirm, tt as isCancel } from "./dist-
|
|
2
|
-
import { u as openBrowser } from "./auth-
|
|
3
|
-
import { a as resolveOperatorOrigin } from "./operator-auth-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { A as confirm, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
|
|
2
|
+
import { u as openBrowser } from "./auth-DlLDymuc.mjs";
|
|
3
|
+
import { a as resolveOperatorOrigin } from "./operator-auth-BjoPLgja.mjs";
|
|
4
|
+
import { f as formatUrl, y as printSuccess } from "./output-BZLnu0z8.mjs";
|
|
5
|
+
import { t as Buffer } from "./node-buffer-D7kgjaDs.mjs";
|
|
6
|
+
import { K as platformOperatorCredentialLabel, b as platformDatabaseClientUrl, et as PlatformCloudflareClient, n as resolvePlatformInstallDatabaseUrl, q as resolvePlatformCloudflareCredential, y as acquirePlatformDatabaseLifecycleLockConnection } from "./platform-lifecycle-fau3VKv6.mjs";
|
|
7
|
+
import { f as verifyPlatformInstallationOwnership, u as selectAuthoritativePlatformManifest } from "./platform-management-CnKBdDx5.mjs";
|
|
8
|
+
import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest } from "./platform-registry-DHH6fivm.mjs";
|
|
8
9
|
import { parsePlatformAccessProtection, parsePlatformAdmissionPolicy, parsePlatformLoginConfiguration, platformAuthenticationRecoveryMessage, validatePlatformAdmissionPolicy } from "@void/platform";
|
|
9
10
|
import { createCipheriv, createDecipheriv, createHash, createHmac, hkdfSync, randomBytes, randomUUID } from "node:crypto";
|
|
10
11
|
import { readFile } from "node:fs/promises";
|
|
@@ -175,7 +176,7 @@ async function runPlatformAuthRecovery(args) {
|
|
|
175
176
|
const releaseDatabase = await acquirePlatformDatabaseLifecycleLockConnection(db, manifest.id, manifest.ownershipNonce);
|
|
176
177
|
try {
|
|
177
178
|
manifest = selectAuthoritativePlatformManifest(manifest, releaseDatabase.authoritativeManifest);
|
|
178
|
-
await verifyPlatformInstallationOwnership(new PlatformCloudflareClient(credential.token), manifest, { databaseUrl });
|
|
179
|
+
await verifyPlatformInstallationOwnership(new PlatformCloudflareClient(credential.token, { credential: platformOperatorCredentialLabel(credential) }), manifest, { databaseUrl });
|
|
179
180
|
if (!manifest.endpoints.apiUrl) throw new Error("platform: Recover or repair the installed API endpoint first.");
|
|
180
181
|
const existing = await readConnection(db, args.target);
|
|
181
182
|
const keyProbe = existing ?? (await db.query("SELECT c.id,c.kind,r.revision,c.generation,r.configuration,r.secret FROM platform_login_connections c JOIN platform_login_revisions r ON c.id = r.connection_id LIMIT 1")).rows[0];
|
|
@@ -209,7 +210,8 @@ async function runPlatformAuthRecovery(args) {
|
|
|
209
210
|
let revision = existing?.revision ?? 1;
|
|
210
211
|
if (suppliedSecret || input.configuration) {
|
|
211
212
|
revision = existing ? existing.revision + 1 : 1;
|
|
212
|
-
const secret = suppliedSecret ?? recoverAuthenticationCredential(secrets.projectSecretKeysJson, manifest.id, existing.id, existing.revision, existing.secret);
|
|
213
|
+
const secret = suppliedSecret ?? (existing ? recoverAuthenticationCredential(secrets.projectSecretKeysJson, manifest.id, existing.id, existing.revision, existing.secret) : void 0);
|
|
214
|
+
if (secret === void 0) throw new Error("platform: The login connection requires a client secret.");
|
|
213
215
|
const encrypted = encryptCredential(secrets.projectSecretKeysJson, secrets.projectSecretActiveKeyVersion, manifest.id, args.target, revision, secret);
|
|
214
216
|
if (!existing) await db.query("INSERT INTO platform_login_connections (id,kind) VALUES ($1,$2)", [args.target, configuration.kind]);
|
|
215
217
|
await db.query("INSERT INTO platform_login_revisions (connection_id,revision,configuration,secret) VALUES ($1,$2,$3::jsonb,$4::jsonb)", [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as discoverPlatform, r as runPlatformCommand } from "./platform-cmd-
|
|
1
|
+
export { t as discoverPlatform, r as runPlatformCommand } from "./platform-cmd-DJ-fOYhL.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { K as select, L as log, X as text, tt as isCancel } from "./dist-
|
|
2
|
-
import { t as cfAccessHeaders } from "./cf-access-
|
|
3
|
-
import { r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-
|
|
4
|
-
import {
|
|
5
|
-
import { n as readPlatformDiscoveryResponse, t as PlatformDisabledError } from "./platform-discovery-
|
|
6
|
-
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-
|
|
1
|
+
import { K as select, L as log, X as text, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
|
|
2
|
+
import { t as cfAccessHeaders } from "./cf-access-DmkKPcAI.mjs";
|
|
3
|
+
import { r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-FaIm95jA.mjs";
|
|
4
|
+
import { f as formatUrl, h as import_picocolors, y as printSuccess } from "./output-BZLnu0z8.mjs";
|
|
5
|
+
import { n as readPlatformDiscoveryResponse, t as PlatformDisabledError } from "./platform-discovery-CLxtixHJ.mjs";
|
|
6
|
+
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-DHH6fivm.mjs";
|
|
7
7
|
// src/cli/platform-cmd.ts
|
|
8
8
|
function normalizePlatformInputUrl(input) {
|
|
9
9
|
const value = input.trim();
|
|
@@ -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-DNbNZ_RR.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-2C3_5EDs.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-DLRMPw1G.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-DEnHFmJF.mjs");
|
|
112
112
|
await runOperatorCommand(args);
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
@@ -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-bx_kpqo7.mjs");
|
|
180
180
|
await runPlatformLifecycleCommand(args);
|
|
181
181
|
}
|
|
182
182
|
function showSavedInstallationStatus(manifest) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as normalizePlatformApiUrl } from "./platform-registry-
|
|
1
|
+
import { c as normalizePlatformApiUrl } from "./platform-registry-DHH6fivm.mjs";
|
|
2
2
|
import { parsePlatformDiscoveryDocument } from "@void/platform";
|
|
3
3
|
// src/cli/platform-discovery.ts
|
|
4
4
|
/** Discovery was refused because the platform traffic gate is closed. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as confirm, X as text, tt as isCancel } from "./dist-
|
|
2
|
-
import { t as cfAccessHeaders } from "./cf-access-
|
|
3
|
-
import {
|
|
4
|
-
import { A as
|
|
5
|
-
import {
|
|
6
|
-
import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-
|
|
1
|
+
import { A as confirm, X as text, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
|
|
2
|
+
import { t as cfAccessHeaders } from "./cf-access-DmkKPcAI.mjs";
|
|
3
|
+
import { g as note, y as printSuccess } from "./output-BZLnu0z8.mjs";
|
|
4
|
+
import { A as recordResource, D as createPlatformHealthProbeToken, G as assertPlatformOperatorCredentialCanApplyPlan, K as platformOperatorCredentialLabel, M as recordPlatformWorkerTraffic, N as createPlatformInstallPlan, et as PlatformCloudflareClient, n as resolvePlatformInstallDatabaseUrl, q as resolvePlatformCloudflareCredential, t as assertNoninteractivePlatformMutationAcknowledged, v as acquirePlatformDatabaseLifecycleLock } from "./platform-lifecycle-fau3VKv6.mjs";
|
|
5
|
+
import { f as verifyPlatformInstallationOwnership, o as resolveInstalledPlatformManifest, u as selectAuthoritativePlatformManifest } from "./platform-management-CnKBdDx5.mjs";
|
|
6
|
+
import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-DHH6fivm.mjs";
|
|
7
7
|
import { PLATFORM_HEALTH_HOSTNAME_LABEL, PLATFORM_REMOTE_INSTALLATION_MANIFEST_KEY, createApplicationRoutes, createPlatformDeploymentManifest, normalizeApplicationDomain } from "@void/platform";
|
|
8
8
|
// src/cli/platform-domain.ts
|
|
9
9
|
function platformDomainTarget(manifest, domain, zone, dedicatedZone) {
|
|
@@ -23,9 +23,9 @@ function platformDomainTarget(manifest, domain, zone, dedicatedZone) {
|
|
|
23
23
|
}
|
|
24
24
|
}).application;
|
|
25
25
|
}
|
|
26
|
+
const now = () => (/* @__PURE__ */ new Date()).toISOString();
|
|
26
27
|
async function applyPlatformDomain(client, original, target, plan, dependencies) {
|
|
27
28
|
let manifest = original;
|
|
28
|
-
const now = () => (/* @__PURE__ */ new Date()).toISOString();
|
|
29
29
|
const save = async (next) => {
|
|
30
30
|
await dependencies.checkpoint(next);
|
|
31
31
|
manifest = next;
|
|
@@ -122,6 +122,8 @@ async function activatePlatformDomain(application, manifest) {
|
|
|
122
122
|
return body.ready;
|
|
123
123
|
}
|
|
124
124
|
async function probePlatformDomain(hostname, manifest) {
|
|
125
|
+
const { pendingDomain } = manifest;
|
|
126
|
+
if (!pendingDomain) throw new Error("platform: No pending application domain to probe.");
|
|
125
127
|
const url = `https://${hostname}/health`;
|
|
126
128
|
try {
|
|
127
129
|
const response = await fetch(url, {
|
|
@@ -135,14 +137,14 @@ async function probePlatformDomain(hostname, manifest) {
|
|
|
135
137
|
const body = await response.json();
|
|
136
138
|
if (!response.ok || body.ok !== true || body.installationId !== manifest.id) throw new Error("Identity or health did not match.");
|
|
137
139
|
} catch {
|
|
138
|
-
throw new Error(`platform: HTTPS is not ready for *.${
|
|
140
|
+
throw new Error(`platform: HTTPS is not ready for *.${pendingDomain.baseDomain}. Existing URLs remain active. Wait for DNS/certificate activation and rerun the same domain set command.`);
|
|
139
141
|
}
|
|
140
142
|
}
|
|
141
143
|
async function runPlatformDomainCommand(args) {
|
|
142
144
|
assertNoninteractivePlatformMutationAcknowledged(args, process.stdin.isTTY === true);
|
|
143
145
|
const selected = await resolveInstalledPlatformManifest(args.selector);
|
|
144
146
|
const credential = await resolvePlatformCloudflareCredential();
|
|
145
|
-
const client = new PlatformCloudflareClient(credential.token);
|
|
147
|
+
const client = new PlatformCloudflareClient(credential.token, { credential: platformOperatorCredentialLabel(credential) });
|
|
146
148
|
const domainInput = args.domain || await text({
|
|
147
149
|
message: "Application domain:",
|
|
148
150
|
placeholder: "example.com"
|
|
@@ -178,6 +180,8 @@ async function runPlatformDomainCommand(args) {
|
|
|
178
180
|
...createApplicationRoutes(target).map((route) => `route ${route.pattern}`)
|
|
179
181
|
].join("\n"), "Application domain plan");
|
|
180
182
|
if (args.plan) return;
|
|
183
|
+
const { apiUrl } = manifest.endpoints;
|
|
184
|
+
if (!apiUrl) throw new Error("platform: The installation has no API URL. Repair the platform, then rerun this command.");
|
|
181
185
|
assertPlatformOperatorCredentialCanApplyPlan(credential, plan);
|
|
182
186
|
if (!args.yes) {
|
|
183
187
|
const accepted = await confirm({
|
|
@@ -225,7 +229,7 @@ async function runPlatformDomainCommand(args) {
|
|
|
225
229
|
}
|
|
226
230
|
savePlatformConnection({
|
|
227
231
|
accountId: manifest.account.id,
|
|
228
|
-
apiUrl
|
|
232
|
+
apiUrl,
|
|
229
233
|
applicationDomain: domain,
|
|
230
234
|
displayName: deployment.displayName,
|
|
231
235
|
installationId: manifest.id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as runPlatformLifecycleCommand } from "./platform-lifecycle-
|
|
1
|
+
export { r as runPlatformLifecycleCommand } from "./platform-lifecycle-fau3VKv6.mjs";
|