void 1.10.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-CZhbDfp4.mjs → account-cmd-D_0qJ9fx.mjs} +6 -6
- package/dist/{agents-DRo8gzni.mjs → agents-64FnLwxP.mjs} +6 -5
- package/dist/{application-analysis-Do1WaGAY.mjs → application-analysis-Cx2S63z5.mjs} +48 -22
- package/dist/{application-routing-DrOFahHO.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-DFQTA1jN.mjs → auth-link-C97r9p2N.mjs} +6 -6
- package/dist/{auth-router-BOiaDmcQ.mjs → auth-router-BmzEgzYx.mjs} +5 -5
- package/dist/{better-auth-shared-BqsMzU14.d.mts → better-auth-shared-BS3pDQbT.d.mts} +11 -6
- package/dist/{better-auth-shared-DRHo5FoG.mjs → better-auth-shared-BcqDt-37.mjs} +7 -2
- package/dist/{build-cmd-BCiXgjn9.mjs → build-cmd-BaFsyZrz.mjs} +13 -12
- package/dist/{cache-CUulshOu.mjs → cache-xO711ATQ.mjs} +6 -6
- package/dist/{cancel-deploy-BHGZo6KC.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 +223 -16
- package/dist/cli/env-schema-probe.d.mts +3 -1
- package/dist/cli/env-schema-probe.mjs +7 -8
- package/dist/{cli-main-hM7rhIbB.mjs → cli-main-DlW6lB8s.mjs} +153 -91
- package/dist/{client-BEYbgqZw.mjs → client-DkYzDEC0.mjs} +1 -1
- package/dist/{client-aIv5UQf3.mjs → client-ImIe7Mjq.mjs} +192 -17
- package/dist/{cloudflare-auth-pNvmT6kL.mjs → cloudflare-auth-eWfhdZCk.mjs} +1 -1
- package/dist/{cloudflare-cmd-DLcgInCa.mjs → cloudflare-cmd-SsFlJe2B.mjs} +7 -8
- package/dist/{cloudflare-config-BfEfIEuY.mjs → cloudflare-config-D9UFH_A5.mjs} +2 -2
- package/dist/{cloudflare-connect-CMcKtA02.mjs → cloudflare-connect-BgpHcSg3.mjs} +3 -3
- package/dist/{cloudflare-operations-DLhn_Bom.mjs → cloudflare-operations-BF0PSErW.mjs} +40 -24
- package/dist/cloudflare-operations-dpRD-2Px.mjs +1 -0
- 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-CbKmMpHK.mjs → config-BSoW3QCB.mjs} +5 -5
- package/dist/{config-DuiDZbq7.d.mts → config-DA6ZbLXO.d.mts} +3 -1
- package/dist/{config-CtkCfPpv.mjs → config-DtjrUtPo.mjs} +1 -1
- package/dist/{config-qgt863GH.mjs → config-Dv5jri1-.mjs} +10 -6
- package/dist/config-entry.d.mts +1 -1
- package/dist/{connect-DM3yCNPG.mjs → connect-DDRQGfFE.mjs} +9 -9
- package/dist/{create-project-BkVGXGNt.mjs → create-project-CY7sP8sI.mjs} +7 -6
- package/dist/{create-project-C-hNdYvD.mjs → create-project-Dro3K-az.mjs} +1 -1
- package/dist/{db-DQAi7Ckr.mjs → db-DmlaWVBu.mjs} +166 -121
- package/dist/db-seed-loader-Bcz_SutQ.mjs +253 -0
- package/dist/{db-types-BpPYAx0B.mjs → db-types-B4Cf9dzR.mjs} +8 -2
- package/dist/{delete-BtVnPGO2.mjs → delete-Uuq9ch6o.mjs} +6 -6
- package/dist/{deploy-Cs93Af-d.mjs → deploy-B9E7_rHC.mjs} +235 -558
- package/dist/deploy-BB3rsZbP.mjs +2 -0
- package/dist/{deploy-managed-static-CZIx3cc1.mjs → deploy-managed-static-IKZyuc1W.mjs} +123 -198
- package/dist/deploy-security-notice-C3LalelR.mjs +192 -0
- package/dist/{deploy-transport-DT-ALuDj.mjs → deploy-transport-BKP_oV9q.mjs} +4 -4
- package/dist/deploy.mjs +10 -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-DPEuEblR.mjs → dispatch-DIhDA3NI.mjs} +38 -17
- 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-cOhYYiHU.mjs → domain-B_xY1yZ5.mjs} +8 -10
- package/dist/{dotenv-CEI8hapP.mjs → dotenv-BG6RQavH.mjs} +2 -2
- package/dist/{drizzle-DBSpPpU1.mjs → drizzle-BJDMPrj7.mjs} +35 -30
- package/dist/{drizzle-D4V_06-B.mjs → drizzle-CQ5jWuDL.mjs} +1 -1
- package/dist/{email-CnnDqvXV.mjs → email-BIC15L7a.mjs} +47 -32
- package/dist/{email-cloudflare-CCIoQueP.mjs → email-cloudflare-C447nOqq.mjs} +195 -109
- 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-5bphL5mV.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-CjcH6DJS.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-CVDLb51-.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-Cyr87J6Z.mjs → headers-DqBsjDxg.mjs} +7 -7
- package/dist/{help-B1cH8518.mjs → help-9wfMyXHb.mjs} +146 -69
- 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 +351 -444
- package/dist/{info-BE3snw2_.mjs → info-BWEWaOBo.mjs} +4 -4
- package/dist/{init-BrS5MAiJ.mjs → init-BuTPVLPO.mjs} +737 -546
- package/dist/{isr-config-Czzb4mIq.mjs → isr-config-DiTnL9Tb.mjs} +5 -5
- package/dist/{link-BbzyrCBD.mjs → link-BiesPyT4.mjs} +7 -7
- package/dist/{list-DmppHjVc.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-DLxsKmkw.mjs → local-d1-CYOYkVwO.mjs} +3 -3
- package/dist/{login-Cihxnu7m.mjs → login-BSOSah1j.mjs} +8 -6
- package/dist/login-DWCZeCX9.mjs +1 -0
- package/dist/{logs-BCgLeLNd.mjs → logs-HOBUnroa.mjs} +9 -9
- package/dist/{migrate-DOK67gE-.mjs → migrate-BNZL1hee.mjs} +9 -10
- package/dist/migrate-C9aoWLvY.mjs +1 -0
- package/dist/{migrations-ByS7r3HV.mjs → migrations-CUHhX65Y.mjs} +15 -12
- 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-qXD3FbIU.mjs → node-DVJWfV6s.mjs} +6 -6
- package/dist/node-buffer-D7kgjaDs.mjs +4 -0
- package/dist/{operator-ai-logging-CNuX5uKg.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-D0vSUVle.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-DNVILSz2.mjs → output-BZLnu0z8.mjs} +39 -4
- 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-V2ifSLQ-.mjs → platform-auth-config-DLRMPw1G.mjs} +26 -23
- package/dist/{platform-auth-protection-BybVCUzi.mjs → platform-auth-protection-HSmLmD3d.mjs} +10 -10
- package/dist/{platform-auth-recovery-kH1-h8Ch.mjs → platform-auth-recovery-BXPhTlKa.mjs} +11 -9
- package/dist/{platform-cmd-B1jtqXnu.mjs → platform-cmd-CqRjxFEU.mjs} +1 -1
- package/dist/{platform-cmd-BHWdh1Hx.mjs → platform-cmd-DJ-fOYhL.mjs} +11 -11
- package/dist/{platform-discovery-B0eZjZ3B.mjs → platform-discovery-CLxtixHJ.mjs} +1 -1
- package/dist/{platform-domain-DB_KpVhg.mjs → platform-domain-CRsRJOws.mjs} +14 -10
- package/dist/{platform-lifecycle-BoOTmH6H.mjs → platform-lifecycle-bx_kpqo7.mjs} +1 -1
- package/dist/{platform-lifecycle-C6fUuj4y.mjs → platform-lifecycle-fau3VKv6.mjs} +773 -206
- package/dist/platform-management-BRGhD-oF.mjs +1 -0
- package/dist/{platform-management-B8-pOxoJ.mjs → platform-management-CnKBdDx5.mjs} +227 -58
- package/dist/{platform-plans-config-iczSDkQK.mjs → platform-plans-config-2C3_5EDs.mjs} +112 -35
- package/dist/{platform-recovery-ZAXin6WK.mjs → platform-recovery-poxgOOAY.mjs} +5 -5
- package/dist/{platform-registry-DZ_2Xuqd.mjs → platform-registry-DHH6fivm.mjs} +6 -5
- package/dist/{platform-setup-CpcHLI-0.mjs → platform-setup-DYylapHD.mjs} +26 -12
- package/dist/{plugin-inference-BGamcCqB.mjs → plugin-inference-7O11_E4H.mjs} +26 -26
- package/dist/{prepare-BrAkXTTB.mjs → prepare-BbvlKreR.mjs} +12 -12
- package/dist/prepare-BmG2E6TI.mjs +1 -0
- package/dist/{prepare-Cjt6EM0d.mjs → prepare-DWjn1Lzd.mjs} +3 -3
- package/dist/{project-cmd-wtCuc8Ln.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-CZFvPIJ-.mjs → project-team-BszTHgzC.mjs} +8 -8
- package/dist/{project-token-C3TxkWeC.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-CknEbPuw.mjs → provision-Bh44omGA.mjs} +39 -29
- package/dist/provision-DFv7SJDn.mjs +1 -0
- 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-FaA9M3RX.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-DM6pZ23Y.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.d.mts +1 -0
- package/dist/runtime/ai/index.mjs +26 -11
- 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 +8 -2
- package/dist/runtime/db/index.mjs +21 -8
- 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 +2 -0
- package/dist/runtime/db/session.mjs +1 -0
- 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-tDExXbA1.mjs → scan-Ct_SEzH4.mjs} +36 -29
- package/dist/{secret-DDNLIQOT.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-BT8XDkvL.mjs +45 -0
- package/dist/session-ouZYD7zb.d.mts +18 -0
- package/dist/{skills-CoBB9_Ao.mjs → skills-C-csz78e.mjs} +10 -17
- 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-0yIARXf2.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-DEmItNdS.mjs → version-metadata-DqgLa6gc.mjs} +1 -1
- package/dist/{wrangler-D1zq1rXr.mjs → wrangler-DVe5KV5G.mjs} +49 -46
- package/dist/wrangler-Dq269bjx.mjs +1 -0
- package/dist/{wrapper-C2gMY432.mjs → wrapper-CcMYpOS8.mjs} +45 -171
- package/docs/guide/ai.md +13 -0
- package/docs/guide/app-types.md +1 -1
- package/docs/guide/auth.md +2 -16
- package/docs/guide/database/d1.md +283 -3
- package/docs/guide/database.md +2 -0
- package/docs/guide/email/domains.md +8 -6
- 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/development/local.md +3 -5
- 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 +5 -3
- package/docs/reference/api/database.md +42 -2
- package/docs/reference/api/handlers.md +3 -3
- package/docs/reference/api/types.md +11 -1
- package/docs/reference/api.md +1 -1
- package/docs/reference/cli/database.md +6 -3
- package/docs/reference/cli/deploy.md +17 -13
- package/docs/reference/cli/domains.md +1 -1
- package/docs/reference/cli/email.md +3 -3
- 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 +7 -6
- package/package.json +31 -27
- package/schema.json +7 -1
- package/skills/void/SKILL.md +8 -0
- package/dist/cf-build-output-D3_x71H6.mjs +0 -1
- package/dist/cf-config-migrate-CHtnM3_C.mjs +0 -348
- package/dist/cloudflare-operations-C5RTQNnh.mjs +0 -1
- 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-rUunHBNJ.mjs +0 -2
- package/dist/discover-Diq0l6TZ.mjs +0 -1
- package/dist/gen-BQ7itmK7.mjs +0 -1
- package/dist/help-Ld6XFol7.mjs +0 -1
- package/dist/login-C-n1rA0s.mjs +0 -1
- package/dist/migrate-CKn30rmw.mjs +0 -1
- package/dist/operator-args-BCCohcz3.mjs +0 -722
- package/dist/operator-cmd-BnLoIO2A.mjs +0 -1
- package/dist/output-BsdnNpxa.mjs +0 -1
- package/dist/platform-args-Rgp86xa7.mjs +0 -1
- package/dist/platform-management-7Bf_OgS5.mjs +0 -1
- package/dist/prepare-CI7_C9Xf.mjs +0 -1
- package/dist/project-zero-trust-DrRyAHW1.mjs +0 -64
- package/dist/provision-DdWqRmmr.mjs +0 -1
- 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-DM3GOqck.mjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as resolve, n as dirname, s as relative } from "../dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { a as createBoundaryManifest, d as editIslandSource, f as findIslandImports, n as scanPages, o as resolveEffectiveLayoutChain, p as findStaticCssImports, u as toLayoutId } from "../scan-
|
|
2
|
+
import { a as createBoundaryManifest, d as editIslandSource, f as findIslandImports, n as scanPages, o as resolveEffectiveLayoutChain, p as findStaticCssImports, u as toLayoutId } from "../scan-Ct_SEzH4.mjs";
|
|
3
3
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
import { isCSSRequest, normalizePath } from "vite";
|
|
5
5
|
// src/pages/islands-plugin.ts
|
|
@@ -23,6 +23,7 @@ function resolveSpecifier(specifier, importerDir, extensions) {
|
|
|
23
23
|
/** `extensions` are tried, in order, for an island import without one. */
|
|
24
24
|
function createIslandManifest(root, extensions) {
|
|
25
25
|
const entries = /* @__PURE__ */ new Map();
|
|
26
|
+
let server = null;
|
|
26
27
|
function register(specifier, importerDir, hydrate) {
|
|
27
28
|
const absPath = resolveSpecifier(specifier, importerDir, extensions);
|
|
28
29
|
if (!absPath) return {
|
|
@@ -30,16 +31,27 @@ function createIslandManifest(root, extensions) {
|
|
|
30
31
|
islandId: specifier
|
|
31
32
|
};
|
|
32
33
|
const islandId = normalizePath(relative(root, absPath)).replace(/\.[^.]+$/, "");
|
|
34
|
+
const isNew = entries.get(islandId)?.componentPath !== absPath;
|
|
33
35
|
entries.set(islandId, {
|
|
34
36
|
componentPath: absPath,
|
|
35
37
|
islandId,
|
|
36
38
|
hydrate
|
|
37
39
|
});
|
|
40
|
+
if (isNew && server) invalidateVirtualModule(server, ISLANDS_CLIENT_ENTRY_ID);
|
|
38
41
|
return {
|
|
39
42
|
absPath,
|
|
40
43
|
islandId
|
|
41
44
|
};
|
|
42
45
|
}
|
|
46
|
+
function registerFile(filePath) {
|
|
47
|
+
let code;
|
|
48
|
+
try {
|
|
49
|
+
code = readFileSync(filePath, "utf8");
|
|
50
|
+
} catch {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
for (const islandImport of findIslandImports(code, filePath)) register(islandImport.specifier, dirname(filePath), islandImport.hydrate);
|
|
54
|
+
}
|
|
43
55
|
return {
|
|
44
56
|
entries,
|
|
45
57
|
register,
|
|
@@ -54,10 +66,28 @@ function createIslandManifest(root, extensions) {
|
|
|
54
66
|
];
|
|
55
67
|
for (const entry of files) {
|
|
56
68
|
if (!entry.island) continue;
|
|
57
|
-
|
|
58
|
-
const code = readFileSync(filePath, "utf-8");
|
|
59
|
-
for (const islandImport of findIslandImports(code, filePath)) register(islandImport.specifier, dirname(filePath), islandImport.hydrate);
|
|
69
|
+
registerFile(resolve(pagesDir, entry.filePath));
|
|
60
70
|
}
|
|
71
|
+
},
|
|
72
|
+
configureServer(devServer, pagesDir) {
|
|
73
|
+
server = devServer;
|
|
74
|
+
const pagesPrefix = normalizePath(pagesDir) + "/";
|
|
75
|
+
const onIslandFile = (path) => {
|
|
76
|
+
for (const entry of entries.values()) if (entry.componentPath === path) {
|
|
77
|
+
invalidateVirtualModule(devServer, ISLANDS_CLIENT_ENTRY_ID);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
const onSave = (file) => {
|
|
82
|
+
const path = normalizePath(file);
|
|
83
|
+
if (path.startsWith(pagesPrefix) && path.endsWith(".md")) registerFile(path);
|
|
84
|
+
};
|
|
85
|
+
devServer.watcher.on("add", (file) => {
|
|
86
|
+
onIslandFile(normalizePath(file));
|
|
87
|
+
onSave(file);
|
|
88
|
+
});
|
|
89
|
+
devServer.watcher.on("change", onSave);
|
|
90
|
+
devServer.watcher.on("unlink", (file) => onIslandFile(normalizePath(file)));
|
|
61
91
|
}
|
|
62
92
|
};
|
|
63
93
|
}
|
|
@@ -142,6 +172,7 @@ function collectIslandStyles(getModuleInfo, roots) {
|
|
|
142
172
|
const pending = [...roots].reverse();
|
|
143
173
|
while (pending.length > 0) {
|
|
144
174
|
const id = pending.pop();
|
|
175
|
+
if (id === void 0) break;
|
|
145
176
|
if (seen.has(id)) continue;
|
|
146
177
|
seen.add(id);
|
|
147
178
|
if (isLinkedStylesheet(id)) {
|
|
@@ -206,21 +237,21 @@ function rewriteCssImportForVirtualModule(matchedLine, specifier, sourceFilePath
|
|
|
206
237
|
}
|
|
207
238
|
function generateIslandClientEntry(options) {
|
|
208
239
|
const uniqueIslands = /* @__PURE__ */ new Map();
|
|
209
|
-
for (const entry of options.manifest.entries.values())
|
|
240
|
+
for (const entry of options.manifest.entries.values()) {
|
|
241
|
+
if (!existsSync(entry.componentPath)) continue;
|
|
242
|
+
uniqueIslands.set(entry.islandId, entry.componentPath);
|
|
243
|
+
}
|
|
210
244
|
const lines = [];
|
|
211
245
|
if (!options.isDev && options.styles) for (const id of options.styles) lines.push(`import ${JSON.stringify(id)};`);
|
|
212
246
|
else if (!options.isDev) for (const file of options.cssFiles) {
|
|
213
|
-
const content = readFileSync(file, "
|
|
247
|
+
const content = readFileSync(file, "utf8");
|
|
214
248
|
lines.push(...options.styleBlockImports?.(file, content) ?? []);
|
|
215
249
|
for (const item of findStaticCssImports(content, file)) lines.push(rewriteCssImportForVirtualModule(item.statement, item.specifier, file));
|
|
216
250
|
}
|
|
217
251
|
if (!options.needsRuntime && !options.isDev) return lines.join("\n");
|
|
218
|
-
lines.push("import { initIslands } from \"void/pages-client\";");
|
|
219
|
-
lines.push("const islands = {");
|
|
252
|
+
lines.push("import { initIslands } from \"void/pages-client\";", "const islands = {");
|
|
220
253
|
for (const [id, path] of uniqueIslands) lines.push(` ${JSON.stringify(id)}: () => import(${JSON.stringify(path)}),`);
|
|
221
|
-
lines.push("};");
|
|
222
|
-
lines.push(options.hydrateIsland);
|
|
223
|
-
lines.push("initIslands(islands, hydrateIsland);");
|
|
254
|
+
lines.push("};", options.hydrateIsland, "initIslands(islands, hydrateIsland);");
|
|
224
255
|
return lines.join("\n");
|
|
225
256
|
}
|
|
226
257
|
/**
|
|
@@ -229,7 +260,7 @@ function generateIslandClientEntry(options) {
|
|
|
229
260
|
* Use findStaticCssImports to inspect authored imports. Removed in the next major version.
|
|
230
261
|
*/
|
|
231
262
|
function extractCssImports(filePath) {
|
|
232
|
-
const code = readFileSync(filePath, "
|
|
263
|
+
const code = readFileSync(filePath, "utf8");
|
|
233
264
|
return findStaticCssImports(code, filePath).map(({ specifier }) => `@import ${JSON.stringify(specifier)};`).join("\n");
|
|
234
265
|
}
|
|
235
266
|
/** Compute which island pages need client-side JavaScript. */
|
|
@@ -239,7 +270,7 @@ function computePagesNeedingClientJS(pageScan, pagesDir, resolvedConfig) {
|
|
|
239
270
|
for (const layout of pageScan.layouts) {
|
|
240
271
|
if (!layout.island) continue;
|
|
241
272
|
const filePath = resolve(pagesDir, layout.filePath);
|
|
242
|
-
if (hasIslandImports(readFileSync(filePath, "
|
|
273
|
+
if (hasIslandImports(readFileSync(filePath, "utf8"), filePath)) layoutDirsWithIslands.add(layout.directory);
|
|
243
274
|
}
|
|
244
275
|
const result = /* @__PURE__ */ new Set();
|
|
245
276
|
for (const page of pageScan.pages) {
|
|
@@ -249,7 +280,7 @@ function computePagesNeedingClientJS(pageScan, pagesDir, resolvedConfig) {
|
|
|
249
280
|
continue;
|
|
250
281
|
}
|
|
251
282
|
const filePath = resolve(pagesDir, page.componentPath);
|
|
252
|
-
if (hasIslandImports(readFileSync(filePath, "
|
|
283
|
+
if (hasIslandImports(readFileSync(filePath, "utf8"), filePath)) {
|
|
253
284
|
result.add(page.componentId);
|
|
254
285
|
continue;
|
|
255
286
|
}
|
|
@@ -260,17 +291,26 @@ function computePagesNeedingClientJS(pageScan, pagesDir, resolvedConfig) {
|
|
|
260
291
|
}
|
|
261
292
|
}
|
|
262
293
|
const pageIds = new Set(pageScan.pages.map((page) => page.componentId));
|
|
263
|
-
const interactiveLayouts = new Set([...pageScan.layouts, ...pageScan.namedLayouts].
|
|
294
|
+
const interactiveLayouts = new Set([...pageScan.layouts, ...pageScan.namedLayouts].flatMap((layout) => {
|
|
295
|
+
if (!(layout.island && hasIslandImports(readFileSync(resolve(pagesDir, layout.filePath), "utf8"), layout.filePath))) return [];
|
|
264
296
|
const id = toLayoutId(layout);
|
|
265
|
-
return pageIds.has(id) ? id.replace(/(^|\/)([^/]+)$/, "$1_$2") : id;
|
|
297
|
+
return [pageIds.has(id) ? id.replace(/(^|\/)([^/]+)$/, "$1_$2") : id];
|
|
266
298
|
}));
|
|
267
299
|
for (const plan of Object.values(createBoundaryManifest(pageScan).plans)) if (plan.layouts.some((id) => interactiveLayouts.has(id))) result.add(plan.id);
|
|
268
300
|
return result;
|
|
269
301
|
}
|
|
302
|
+
/** Make the dev server load a virtual module again on its next request. */
|
|
303
|
+
function invalidateVirtualModule(server, id) {
|
|
304
|
+
for (const env of Object.values(server.environments)) {
|
|
305
|
+
const mod = env.moduleGraph.getModuleById("\0" + id);
|
|
306
|
+
if (mod) env.moduleGraph.invalidateModule(mod);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
270
309
|
/**
|
|
271
310
|
* Watch the pages directory for structural changes (add/remove) and .md content
|
|
272
311
|
* changes (frontmatter layout field) so that new layouts and named layouts are
|
|
273
|
-
* picked up without a dev server restart.
|
|
312
|
+
* picked up without a dev server restart. Any other page or layout edit
|
|
313
|
+
* regenerates the islands renderer, which reads their island imports.
|
|
274
314
|
*
|
|
275
315
|
* Returns a `flush()` function that resolves when any pending rescan completes
|
|
276
316
|
* (useful for tests).
|
|
@@ -290,10 +330,7 @@ function watchPagesForRescan(server, pagesDir, root, onRescan) {
|
|
|
290
330
|
environment: "dev"
|
|
291
331
|
}).then((pageScan) => {
|
|
292
332
|
onRescan(pageScan);
|
|
293
|
-
|
|
294
|
-
const mod = env.moduleGraph.getModuleById("\0virtual:void-islands-renderer");
|
|
295
|
-
if (mod) env.moduleGraph.invalidateModule(mod);
|
|
296
|
-
}
|
|
333
|
+
invalidateVirtualModule(server, ISLANDS_RENDERER_ID);
|
|
297
334
|
}, () => {}).finally(() => {
|
|
298
335
|
pending = null;
|
|
299
336
|
});
|
|
@@ -302,7 +339,9 @@ function watchPagesForRescan(server, pagesDir, root, onRescan) {
|
|
|
302
339
|
server.watcher.on("add", scheduleRescan);
|
|
303
340
|
server.watcher.on("unlink", scheduleRescan);
|
|
304
341
|
server.watcher.on("change", (path) => {
|
|
305
|
-
|
|
342
|
+
const normalizedPath = normalizePath(path);
|
|
343
|
+
if (normalizedPath.endsWith(".md")) scheduleRescan(path);
|
|
344
|
+
else if (normalizedPath.startsWith(normalizedPagesDir + "/")) invalidateVirtualModule(server, ISLANDS_RENDERER_ID);
|
|
306
345
|
});
|
|
307
346
|
return { flush: () => pending ?? Promise.resolve() };
|
|
308
347
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { w as ValidationError } from "../index-
|
|
2
|
-
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as recoverPageHttpException, r as flattenValidationErrors, s as safeJsonStringify, t as PageObject } from "../protocol-
|
|
1
|
+
import { w as ValidationError } from "../index-Dn2mkPr2.mjs";
|
|
2
|
+
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as recoverPageHttpException, r as flattenValidationErrors, s as safeJsonStringify, t as PageObject } from "../protocol-ERy-n3jf.mjs";
|
|
3
3
|
export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, recoverPageHttpException, safeJsonStringify };
|
package/dist/pages/protocol.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as ValidationError } from "../validation-error-CtcAvyI7.mjs";
|
|
2
|
-
import { a as safeJsonStringify, i as recoverPageHttpException, n as handlePageGet, r as handlePageMutation, t as flattenValidationErrors } from "../protocol-
|
|
2
|
+
import { a as safeJsonStringify, i as recoverPageHttpException, n as handlePageGet, r as handlePageMutation, t as flattenValidationErrors } from "../protocol-CE3wP-H1.mjs";
|
|
3
3
|
export { ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, recoverPageHttpException, safeJsonStringify };
|
package/dist/pages/serialize.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ISLAND_FRONTMATTER_ID, n as decodePageData, r as deserializePageData, i as islandFrontmatterScript, a as serializePageData } from "../serialize-
|
|
1
|
+
export { t as ISLAND_FRONTMATTER_ID, n as decodePageData, r as deserializePageData, i as islandFrontmatterScript, a as serializePageData } from "../serialize-BmB4BfKu.mjs";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// src/runtime/db/pgpass.ts
|
|
2
|
+
const noPassword = async () => void 0;
|
|
2
3
|
/**
|
|
3
4
|
* `pg` falls back to `pgpass` when no password is present in the connection
|
|
4
5
|
* config and the server requests one. Workers have no pgpass file, and the
|
|
@@ -6,8 +7,8 @@
|
|
|
6
7
|
*/
|
|
7
8
|
function disablePgPassFallback(client) {
|
|
8
9
|
const pgClient = client;
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const { password } = pgClient;
|
|
11
|
+
if (password === null || password === void 0) {
|
|
11
12
|
pgClient.password = noPassword;
|
|
12
13
|
if (pgClient.connectionParameters) pgClient.connectionParameters.password = noPassword;
|
|
13
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as parsePlatformArgs } from "./platform-args-lwCyQ6Xy.mjs";
|
|
@@ -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-BybVCUzi.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 { f as
|
|
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. */
|