void 1.12.1 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/{account-cmd-BU1Fy_Bf.mjs → account-cmd-4fQiXYX7.mjs} +6 -6
- package/dist/{application-analysis-DVeN8yoi.mjs → application-analysis-BjEwHTV2.mjs} +19 -13
- package/dist/{application-routing-KKw4Y84h.mjs → application-routing-COCfD2yc.mjs} +1 -1
- package/dist/args-DrnTI35r.mjs +88 -0
- package/dist/args-MnQnqypt.mjs +1 -0
- package/dist/{auth-CqwJwItO.mjs → auth-CeBmolb-.mjs} +3 -3
- package/dist/{auth-A7cZ8aXA.mjs → auth-CvaDxOMi.mjs} +1 -1
- package/dist/{auth-link-Duu2NvN5.mjs → auth-link-I4omV0pL.mjs} +6 -6
- package/dist/{auth-router-vgtOdb9j.mjs → auth-router-CXq4q7bb.mjs} +6 -5
- package/dist/{better-auth-shared-BS3pDQbT.d.mts → better-auth-shared-CrIkcN8I.d.mts} +2 -1
- package/dist/bindings-C7zOgxT3.d.mts +28 -0
- package/dist/browser-run-BKgZVwLk.mjs +124 -0
- package/dist/{build-cmd-B7OJ0U5R.mjs → build-cmd-Biz6u4rn.mjs} +6 -6
- package/dist/{cache-wSpi3aeM.mjs → cache-WkLMUrjQ.mjs} +6 -6
- package/dist/{cancel-deploy-DMWzkAlb.mjs → cancel-deploy-BRsrmyTk.mjs} +6 -5
- package/dist/{cf-access-DHklo7Rg.mjs → cf-access-B21j-nd6.mjs} +1 -1
- package/dist/{cf-build-output-Cso7Vh-t.mjs → cf-build-output-G-7Tdd8b.mjs} +6 -5
- package/dist/cf-build-output-Qc43LWzE.mjs +1 -0
- package/dist/{cf-command-values-5BPBRc9Z.mjs → cf-command-values-cUnJwCyG.mjs} +24 -1
- package/dist/{cf-config-migrate-D271BTiw.mjs → cf-config-migrate-CsbQGzMf.mjs} +200 -94
- package/dist/cf-user-agent-HHTRzfud.mjs +15 -0
- package/dist/cf-version-api-BWHMVtzw.mjs +1 -0
- package/dist/cf-version-api-XEEK2B9A.mjs +856 -0
- package/dist/cf-worker-settings-DJKdy97k.mjs +127 -0
- package/dist/cli/cli.mjs +1 -1
- package/dist/cli/cloudflare-operation-process.mjs +111 -47
- package/dist/cli/env-schema-probe.mjs +3 -3
- package/dist/cli/json-command-process.d.mts +6 -0
- package/dist/cli/json-command-process.mjs +91 -0
- package/dist/{cli-main-BrChcpE3.mjs → cli-main-CJTGhcYN.mjs} +84 -113
- package/dist/{client-eLZwqkPH.mjs → client-0um7Lzze.mjs} +1 -1
- package/dist/{client-DE2m2ldh.mjs → client-BEHI4UWn.mjs} +14 -8
- package/dist/{cloudflare-auth-eWfhdZCk.mjs → cloudflare-auth-iOgRurWm.mjs} +1 -1
- package/dist/{cloudflare-cmd-SsFlJe2B.mjs → cloudflare-cmd-DsSlXbNy.mjs} +5 -5
- package/dist/{cloudflare-config-D9UFH_A5.mjs → cloudflare-config-KPHKf57C.mjs} +2 -2
- package/dist/{cloudflare-connect-BgpHcSg3.mjs → cloudflare-connect-bEtneBjT.mjs} +5 -4
- package/dist/{cloudflare-operations-ByjFGats.mjs → cloudflare-operations-BmICrRnm.mjs} +1 -1
- package/dist/{cloudflare-operations-BIRQkYwL.mjs → cloudflare-operations-D-9psgPQ.mjs} +19 -11
- package/dist/cloudflare-preview-8eLSQPdO.mjs +1 -0
- package/dist/cloudflare-preview-BaeU-m74.mjs +112 -0
- package/dist/{cloudflare-process-60r4Z2Zf.mjs → cloudflare-process-DFNpqV_m.mjs} +57 -29
- package/dist/cloudflare-user-output-DFbD0l4l.mjs +36 -0
- package/dist/collect-Aam0GwAU.mjs +1 -0
- package/dist/{collect-rNLybAnF.mjs → collect-KC4cizWM.mjs} +6 -1
- package/dist/{config-DA6ZbLXO.d.mts → config-BdmM5ZzP.d.mts} +12 -2
- package/dist/{config-BFX5ZB1J.mjs → config-CUYGZqdN.mjs} +2 -2
- package/dist/{config-BSoW3QCB.mjs → config-C_UjzkVS.mjs} +3 -3
- package/dist/{config-DtjrUtPo.mjs → config-Ge-MytMU.mjs} +1 -1
- package/dist/{config-Dv5jri1-.mjs → config-KZAiI3gG.mjs} +32 -6
- package/dist/config-entry.d.mts +1 -1
- package/dist/config-write-dKLINlm2.mjs +80 -0
- package/dist/{connect-D0V0o40j.mjs → connect-Bqq3b9sX.mjs} +10 -9
- package/dist/{create-project-CbuDH5Hv.mjs → create-project-MXoP_rte.mjs} +1 -1
- package/dist/{create-project-8FdN6D2i.mjs → create-project-T-9AIQDe.mjs} +7 -6
- package/dist/{db-BNPIjLkK.mjs → db-B3eoVDNA.mjs} +50 -47
- package/dist/{db-args-CiQVg8SJ.mjs → db-args-BcvTZ8KE.mjs} +1 -1
- package/dist/db-args-Cx1y4vZn.mjs +1 -0
- package/dist/{db-types-B4Cf9dzR.mjs → db-types-BpgXVtQZ.mjs} +1 -1
- package/dist/{delete-WtLEfap2.mjs → delete-Cf6SroAw.mjs} +7 -6
- package/dist/deploy-DZ9j7MC4.mjs +2 -0
- package/dist/{deploy-BgSbagIP.mjs → deploy-UojYUEWr.mjs} +803 -1415
- package/dist/{deploy-managed-static-BWBsxOww.mjs → deploy-managed-static-DV_OmTWf.mjs} +54 -393
- package/dist/{deploy-security-notice-IRGy6Edf.mjs → deploy-security-notice-3jX71IeP.mjs} +6 -4
- package/dist/deploy-summary-Dkl0zvQy.mjs +377 -0
- package/dist/{deploy-transport-BKP_oV9q.mjs → deploy-transport-4ISWxx8n.mjs} +4 -3
- package/dist/deploy.mjs +14 -10
- package/dist/discover-BZWVWeQs.mjs +1 -0
- package/dist/{discover-IcspacCg.mjs → discover-BeFs7OPS.mjs} +1 -1
- package/dist/{dispatch-DIhDA3NI.mjs → dispatch-BUKbPdqb.mjs} +7 -7
- package/dist/{dist-Cr_xGE_K.mjs → dist-BngS28id.mjs} +6 -6
- package/dist/{dist-C47zy_kJ.mjs → dist-x99fIj4n.mjs} +1 -1
- package/dist/{domain-mweyYXSw.mjs → domain-BK6NWkWK.mjs} +7 -7
- package/dist/{drizzle-BJDMPrj7.mjs → drizzle-CnSbVeiZ.mjs} +12 -13
- package/dist/{drizzle-CQ5jWuDL.mjs → drizzle-CrkwVwK8.mjs} +1 -1
- package/dist/{email-DcQNP40O.mjs → email-BBSDV0J5.mjs} +13 -12
- package/dist/{email-cloudflare-DeYH3Ke7.mjs → email-cloudflare-C-guKEbz.mjs} +10 -8
- package/dist/{env-DaAoYR2-.mjs → env-BVnKiGYJ.mjs} +8 -8
- package/dist/{env-EjHqc7m9.mjs → env-CU2tMDdO.mjs} +6 -1
- package/dist/{env-types-D2hBodXP.mjs → env-types-B33fEHRH.mjs} +1 -1
- package/dist/{env-validation-j9pjCDfA.mjs → env-validation-BnAsx6gz.mjs} +1 -1
- package/dist/{env-validation-D-v5_CWL.mjs → env-validation-SXsjd6-Z.mjs} +4 -4
- package/dist/{fetch-CiEsvjpP.mjs → fetch-DL7OCgwB.mjs} +1 -1
- package/dist/{fetch-stream-BIG5lHW6.mjs → fetch-stream-DEilLTCc.mjs} +2 -2
- package/dist/{gen-aOtHhZLD.mjs → gen-BxuIN1bz.mjs} +10 -9
- package/dist/gen-DaayFP9v.mjs +1 -0
- package/dist/{generate-Dq2Bgw75.mjs → generate-Ck-L3e0e.mjs} +1 -1
- package/dist/{generate-C3ZAqCy-.mjs → generate-t1dDUYZZ.mjs} +1 -1
- package/dist/{github-cmd-BR19Ffdz.mjs → github-cmd-B7U9Hjmi.mjs} +7 -6
- package/dist/{handler-DCrDLzw2.mjs → handler-2wAywJgj.mjs} +11 -9
- package/dist/{headers-DqBsjDxg.mjs → headers-DPI4MDGC.mjs} +1 -1
- package/dist/{help-DvClCzqL.mjs → help-Bgiu5PMX.mjs} +36 -4
- package/dist/help-DWGHmt_n.mjs +1 -0
- package/dist/html-5sfGLjiI.d.mts +3 -0
- package/dist/html-DPSOBDCh.mjs +1 -0
- package/dist/{index-Dn2mkPr2.d.mts → index-CqF8_p9C.d.mts} +5 -105
- package/dist/index-Cvqotnhc.d.mts +91 -0
- package/dist/{index-BQ5qYiAw.d.mts → index-DAinHkj8.d.mts} +1 -1
- package/dist/{index-8cAgNdb6.d.mts → index-lnEWwVAS.d.mts} +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +536 -170
- package/dist/{info-P6MBiVJi.mjs → info-7COlpAfY.mjs} +32 -20
- package/dist/{init-C8YpkGIP.mjs → init-DftAx3L4.mjs} +237 -88
- package/dist/input-jcps6lAn.mjs +64 -0
- package/dist/interactive-prompts-EK0dilFu.mjs +43 -0
- package/dist/{limits-BCoQLpn3.mjs → limits-3I3VdX2E.mjs} +4 -1
- package/dist/{link-Dyz9IGcM.mjs → link-C3WMNFTG.mjs} +7 -7
- package/dist/{list-VGYBMjmx.mjs → list-K4EGVUZN.mjs} +9 -9
- package/dist/{load-user-env-B8qC0Q2Y.mjs → load-user-env-uMmQJ-Th.mjs} +1 -1
- package/dist/{local-d1-CYOYkVwO.mjs → local-d1-BtLCVC1p.mjs} +2 -2
- package/dist/login-BJwPhV_S.mjs +1 -0
- package/dist/{login-CWFr-G2I.mjs → login-DaugBfBG.mjs} +6 -5
- package/dist/{logs-kS1wuR4b.mjs → logs-BR2szdN5.mjs} +6 -6
- package/dist/migrate-BHD46A31.mjs +1 -0
- package/dist/{migrate-BNZL1hee.mjs → migrate-Dtlg8fC6.mjs} +7 -7
- package/dist/nitro.mjs +3 -3
- package/dist/{node-DVJWfV6s.mjs → node-BbKlLpHa.mjs} +5 -5
- package/dist/{operator-ai-logging-DD0n6zc2.mjs → operator-ai-logging-4Nvs6Ut3.mjs} +5 -5
- package/dist/{operator-args-nvetCWuz.mjs → operator-args-DWvqq3Ws.mjs} +31 -15
- package/dist/{operator-auth-DMvn-y9X.mjs → operator-auth-DtRMGXYY.mjs} +2 -2
- package/dist/{operator-client-dFNnXfyB.mjs → operator-client-BG0VIMMM.mjs} +2 -2
- package/dist/operator-cmd-CR3Q9k4c.mjs +1 -0
- package/dist/{operator-cmd-a7yOf2tH.mjs → operator-cmd-D4YcMKO-.mjs} +9 -9
- package/dist/{operator-security-D5MToU0p.mjs → operator-security-nVLo8vDt.mjs} +11 -5
- package/dist/{output-BZLnu0z8.mjs → output-DhJgS6Ve.mjs} +1 -1
- package/dist/output-OYwcEwok.mjs +1 -0
- package/dist/pages/client.d.mts +34 -20
- package/dist/pages/client.mjs +172 -74
- package/dist/pages/index.d.mts +11 -4
- package/dist/pages/index.mjs +5 -5
- package/dist/pages/islands-plugin.d.mts +2 -2
- package/dist/pages/islands-plugin.mjs +5 -3
- package/dist/pages/protocol.d.mts +3 -3
- package/dist/pages/protocol.mjs +3 -3
- package/dist/pages/serialize.d.mts +2 -2
- package/dist/pages/serialize.mjs +1 -1
- package/dist/parse-filename-DIPUjoCh.d.mts +2 -0
- package/dist/platform-C3Q44RJ8.mjs +250 -0
- package/dist/platform-args-BSyVZESg.mjs +1 -0
- package/dist/{platform-args-CvZSuhYS.mjs → platform-args-BnocJDC_.mjs} +1 -1
- package/dist/{platform-auth-config-CpszX-Ne.mjs → platform-auth-config-BbfNhjBc.mjs} +9 -9
- package/dist/{platform-auth-protection-DA6Tw8Og.mjs → platform-auth-protection-BHPV4MUf.mjs} +9 -8
- package/dist/{platform-auth-recovery-Cztrb1JC.mjs → platform-auth-recovery-DE0nArYy.mjs} +8 -7
- package/dist/{platform-cmd-m6Asj6nO.mjs → platform-cmd-CLRU3BRb.mjs} +11 -10
- package/dist/{platform-cmd-u1j88ggF.mjs → platform-cmd-Cs2LkT5L.mjs} +1 -1
- package/dist/{platform-discovery-CLxtixHJ.mjs → platform-discovery-CKeeeD82.mjs} +1 -1
- package/dist/{platform-domain-DJSznNTA.mjs → platform-domain-kn3WuKPG.mjs} +6 -5
- package/dist/{platform-lifecycle-BC-9p58d.mjs → platform-lifecycle-BoCEYy2w.mjs} +1 -1
- package/dist/{platform-lifecycle-GFeXv3NC.mjs → platform-lifecycle-CKwOg8wz.mjs} +244 -104
- package/dist/{platform-management-BwHkz46V.mjs → platform-management-CaSdFthX.mjs} +1 -1
- package/dist/{platform-management-DX1zINou.mjs → platform-management-fyrsq2Ra.mjs} +27 -14
- package/dist/{platform-plans-config-DiydtNKY.mjs → platform-plans-config-BSI-6Inu.mjs} +11 -5
- package/dist/{platform-recovery-CnzBbudV.mjs → platform-recovery-PwJ54AIZ.mjs} +3 -3
- package/dist/{platform-registry-DHH6fivm.mjs → platform-registry-zHH3RiIm.mjs} +2 -1
- package/dist/{platform-setup-Lph9i-rh.mjs → platform-setup-DwYITHfY.mjs} +3 -3
- package/dist/{plugin-inference-COlq96WJ.mjs → plugin-inference-D5MjBVMB.mjs} +60 -142
- package/dist/prepare-CLl_TA_r.mjs +1 -0
- package/dist/{prepare-WvijE289.mjs → prepare-DZEs5AGr.mjs} +3 -3
- package/dist/{prepare-co1o1FFd.mjs → prepare-DhVzN7CB.mjs} +14 -12
- package/dist/{project-uXKua1it.mjs → project-BXpm-vgG.mjs} +1 -1
- package/dist/{project-dh9431bN.mjs → project-DC-BqHef.mjs} +1 -1
- package/dist/{project-cmd-BWJTplpc.mjs → project-cmd-BKN3qT4R.mjs} +31 -21
- package/dist/{project-paths-2ENfCCih.mjs → project-paths-BeAxxqGh.mjs} +1 -1
- package/dist/{project-security-BV1xfj1K.mjs → project-security-B-SHxprt.mjs} +1 -1
- package/dist/{project-security-CY_aahvW.mjs → project-security-BWTd6cTU.mjs} +87 -46
- package/dist/{project-team-BlIFXlmT.mjs → project-team-jcn9reIB.mjs} +6 -6
- package/dist/{project-token-CMsB7I1-.mjs → project-token-BHkBKtzt.mjs} +6 -6
- package/dist/{project-tsconfig-BOA4ym99.mjs → project-tsconfig-LjgxDdj_.mjs} +1 -1
- package/dist/{project-zero-trust-BI6pdpx4.mjs → project-zero-trust-2t_qI6xa.mjs} +4 -4
- package/dist/{protocol-4rEnumif.mjs → protocol-DhMbnxzy.mjs} +120 -35
- package/dist/{protocol-ERy-n3jf.d.mts → protocol-wG7JP5Mm.d.mts} +27 -4
- package/dist/{provision-DFv7SJDn.mjs → provision-C04aXE3a.mjs} +1 -1
- package/dist/{provision-Bh44omGA.mjs → provision-CQykn8gu.mjs} +8 -4
- package/dist/{redirect-Dyvuil0Q.mjs → redirect-DjyA_hx_.mjs} +1 -1
- package/dist/{requests-CfmJxNYg.mjs → requests-BznxnxTT.mjs} +5 -5
- package/dist/resolve-project-Bob_rEi2.mjs +1 -0
- package/dist/{resolve-project-8WZ3iVmr.mjs → resolve-project-s_FGWyr-.mjs} +2 -2
- package/dist/resource-binding-5nI30acw.mjs +20 -0
- package/dist/{resource-name-DlJ9QXzg.mjs → resource-name-D_gw36kh.mjs} +5 -1
- package/dist/{rollback-DL5HuAsM.mjs → rollback-CLiINtpt.mjs} +25 -14
- package/dist/{route-types-CSed9-Dp.mjs → route-types-DxvqN5bL.mjs} +59 -9
- package/dist/{route-url-B41eQ8QI.mjs → route-url-CRC8yR_2.mjs} +2 -3
- package/dist/{route-url-Bd6IX-JZ.d.mts → route-url-zDfC-7DD.d.mts} +33 -5
- package/dist/routes-stub.d.mts +18 -2
- package/dist/routes-stub.mjs +1 -1
- package/dist/{runner-CeguHWJx.mjs → runner-CnUrhc8H.mjs} +1 -1
- package/dist/{runner-mysql-DOjbj-N1.mjs → runner-mysql-CW6bFa67.mjs} +1 -1
- package/dist/{runner-mysql-D549vGGm.mjs → runner-mysql-DSLGFOlC.mjs} +1 -1
- package/dist/{runner-pg-Buzw17hl.mjs → runner-pg-BcGF7iBR.mjs} +1 -1
- package/dist/{runner-pg-DMJquR3d.mjs → runner-pg-OeP0JpEo.mjs} +1 -1
- package/dist/{runner-Bf94YVJK.mjs → runner-rnXCGa20.mjs} +1 -1
- package/dist/runtime/ai/index.mjs +1 -1
- package/dist/runtime/auth/better-auth-d1.d.mts +1 -1
- package/dist/runtime/auth/better-auth-mysql.d.mts +1 -1
- package/dist/runtime/auth/better-auth-postgres.d.mts +1 -1
- package/dist/runtime/client/fetch-server.mjs +1 -1
- package/dist/runtime/client/fetch-stream.mjs +1 -1
- package/dist/runtime/client/fetch.mjs +1 -1
- package/dist/runtime/client/index.mjs +2 -2
- package/dist/runtime/client/react.mjs +2 -2
- package/dist/runtime/client/solid.mjs +2 -2
- package/dist/runtime/client/svelte.mjs +2 -2
- package/dist/runtime/client/vue.mjs +2 -2
- package/dist/runtime/durable/index.mjs +11 -26
- package/dist/runtime/env/runtime.d.mts +2 -10
- package/dist/runtime/handler/index.d.mts +3 -2
- package/dist/runtime/handler/index.mjs +2 -2
- package/dist/runtime/handler/validator.d.mts +1 -1
- package/dist/runtime/handler/validator.mjs +1 -1
- package/dist/runtime/html.d.mts +2 -0
- package/dist/runtime/html.mjs +1 -0
- package/dist/runtime/image/index.d.mts +103 -0
- package/dist/runtime/image/index.mjs +89 -0
- package/dist/runtime/jsx/index.d.mts +3 -0
- package/dist/runtime/jsx/index.mjs +2 -0
- package/dist/runtime/jsx/jsx-dev-runtime.d.mts +1 -0
- package/dist/runtime/jsx/jsx-dev-runtime.mjs +2 -0
- package/dist/runtime/jsx/jsx-runtime.d.mts +1 -0
- package/dist/runtime/jsx/jsx-runtime.mjs +2 -0
- package/dist/runtime/limits/index.mjs +1 -1
- package/dist/runtime/live/client.d.mts +2 -2
- package/dist/runtime/live/index.d.mts +1 -1
- package/dist/runtime/routing/index.d.mts +87 -4
- package/dist/runtime/routing/index.mjs +59 -20
- package/dist/runtime/routing/route-url.d.mts +2 -2
- package/dist/runtime/routing/route-url.mjs +1 -1
- package/dist/runtime/sandbox/index.mjs +1 -1
- package/dist/runtime/sse/client.d.mts +1 -1
- package/dist/runtime/workflows/entry.d.mts +8 -0
- package/dist/runtime/workflows/entry.mjs +49 -0
- package/dist/runtime/workflows/index.d.mts +3 -0
- package/dist/runtime/workflows/index.mjs +77 -0
- package/dist/runtime/ws/index.d.mts +1 -1
- package/dist/runtime/ws/index.mjs +2 -2
- package/dist/runtime/ws/room.d.mts +1 -1
- package/dist/runtime/ws/server.d.mts +2 -2
- package/dist/runtime-Db72hLY-.d.mts +11 -0
- package/dist/scan-BxhB4BA-.mjs +946 -0
- package/dist/scan-D2ISAobj.mjs +308 -0
- package/dist/{secret-C-WBaUSS.mjs → secret-Ck9N5xbU.mjs} +9 -8
- package/dist/{security-sarif-ClyYwtAW.mjs → security-sarif-DzTIqNwZ.mjs} +1 -1
- package/dist/{serialize-DN-envGQ.d.mts → serialize-Dr9B-0yV.d.mts} +10 -1
- package/dist/{serialize-BmB4BfKu.mjs → serialize-nW4IeEBI.mjs} +23 -2
- package/dist/{skills-C-csz78e.mjs → skills-BR7YHAF7.mjs} +1 -1
- package/dist/{scan-Ct_SEzH4.mjs → source-analysis-cache-Ccm_JSOl.mjs} +340 -902
- package/dist/standard-schema-DvMcZGMK.mjs +8 -0
- package/dist/{subcommand-prompt-B4LOLosl.mjs → subcommand-prompt-AFf2LcrC.mjs} +2 -2
- package/dist/{types-FDH6NuY1.d.mts → types-RYVujNS6.d.mts} +4 -2
- package/dist/{version-metadata-DqgLa6gc.mjs → untrusted-env-4oW0TdBP.mjs} +1 -23
- package/dist/{url-DBQluotE.mjs → url-DAQ1c3lh.mjs} +45 -1
- package/dist/{validate-CtBWCzez.mjs → validate-B1PsQ_mt.mjs} +1 -1
- package/dist/validate-p9b3r1k4.mjs +1 -0
- package/dist/{validation-error-CtcAvyI7.mjs → validation-error-EKI0wMWX.mjs} +2 -2
- package/dist/{validator-Dfh9kCDm.mjs → validator-JJcf9E48.mjs} +5 -8
- package/dist/version-metadata-CEla0kgi.mjs +23 -0
- package/dist/{wrangler-DVe5KV5G.mjs → wrangler-AyMfdVJK.mjs} +34 -69
- package/dist/wrangler-BT7qrzWc.mjs +1 -0
- package/dist/{wrapper-CcMYpOS8.mjs → wrapper-DPlTBVOx.mjs} +5 -5
- package/docs/guide/ai.md +1 -1
- package/docs/guide/app-types.md +6 -23
- package/docs/guide/auth.md +2 -4
- package/docs/guide/database/d1.md +21 -67
- package/docs/guide/database/mysql.md +8 -0
- package/docs/guide/database/postgresql.md +2 -2
- package/docs/guide/database.md +1 -1
- package/docs/guide/deployment.md +18 -0
- package/docs/guide/edge/prerendering.md +3 -7
- package/docs/guide/edge/redirects.md +1 -1
- package/docs/guide/edge/revalidation.md +8 -17
- package/docs/guide/edge/rewrites.md +1 -1
- package/docs/guide/edge/static-assets.md +10 -22
- package/docs/guide/email/domains.md +3 -1
- package/docs/guide/email/receiving.md +2 -2
- package/docs/guide/email/sending.md +3 -1
- package/docs/guide/env-vars.md +2 -0
- package/docs/guide/image-generation.md +142 -0
- package/docs/guide/index.md +17 -15
- package/docs/guide/jobs.md +2 -4
- package/docs/guide/kv.md +1 -1
- package/docs/guide/og-images.md +83 -0
- package/docs/guide/pages-routing/actions-and-forms.md +6 -4
- package/docs/guide/pages-routing/errors.md +20 -4
- package/docs/guide/pages-routing/head.md +5 -5
- package/docs/guide/pages-routing/islands.md +4 -14
- package/docs/guide/pages-routing/markdown.md +2 -2
- package/docs/guide/pages-routing/overview.md +129 -15
- package/docs/guide/platform/administration/plans.md +47 -16
- package/docs/guide/platform/administration/projects.md +10 -0
- package/docs/guide/platform/administration/security-audits.md +76 -30
- package/docs/guide/platform/administration/zero-trust.md +1 -1
- package/docs/guide/platform/installation/ci.md +0 -4
- package/docs/guide/platform/installation/credentials.md +1 -1
- package/docs/guide/platform/installation/maintenance.md +11 -9
- package/docs/guide/platform/installation/prerequisites.md +3 -1
- package/docs/guide/platform/installation/setup.md +7 -15
- package/docs/guide/platform/installation/uninstall.md +6 -12
- package/docs/guide/project-collaboration.md +1 -4
- package/docs/guide/queues.md +6 -8
- package/docs/guide/quickstart.md +6 -8
- package/docs/guide/sandboxes.md +1 -1
- package/docs/guide/self-hosted-platform.md +4 -7
- package/docs/guide/server-routing.md +5 -3
- package/docs/guide/ssg.md +1 -1
- package/docs/guide/type-safety.md +74 -10
- package/docs/guide/websockets.md +5 -7
- package/docs/guide/workflows.md +122 -0
- package/docs/index.md +2 -3
- package/docs/integrations/agents.md +3 -16
- package/docs/integrations/cloudflare.md +98 -2
- package/docs/integrations/frameworks/analog.md +9 -11
- package/docs/integrations/frameworks/astro.md +16 -17
- package/docs/integrations/frameworks/nuxt.md +11 -13
- package/docs/integrations/frameworks/overview.md +18 -20
- package/docs/integrations/frameworks/react-router.md +55 -6
- package/docs/integrations/frameworks/sveltekit.md +8 -6
- package/docs/integrations/frameworks/tanstack-start.md +10 -6
- package/docs/integrations/hono.md +27 -12
- package/docs/integrations/nodejs-bun-deno.md +10 -2
- package/docs/reference/api/database.md +8 -10
- package/docs/reference/api/env.md +2 -2
- package/docs/reference/api/handlers.md +1 -1
- package/docs/reference/api/html.md +45 -0
- package/docs/reference/api/pages.md +118 -167
- package/docs/reference/api/rewrites.md +5 -5
- package/docs/reference/api/types.md +13 -6
- package/docs/reference/api/workflows.md +48 -0
- package/docs/reference/api.md +7 -1
- package/docs/reference/cli/database.md +22 -10
- package/docs/reference/cli/deploy.md +49 -4
- package/docs/reference/cli/domains.md +7 -3
- package/docs/reference/cli/email.md +3 -1
- package/docs/reference/cli/platform-installation.md +9 -53
- package/docs/reference/cli/platform-security.md +36 -8
- package/docs/reference/cli/platform-users.md +11 -1
- package/docs/reference/cli/platform-zero-trust.md +1 -1
- package/docs/reference/cli/project.md +52 -11
- package/docs/reference/cli/setup.md +8 -10
- package/docs/reference/cli.md +49 -47
- package/docs/reference/config.md +22 -8
- package/docs/reference/resource-inference.md +8 -1
- package/docs/reference/structure.md +5 -0
- package/package.json +52 -25
- package/schema.json +20 -1
- package/skills/void/SKILL.md +60 -54
- package/dist/cf-build-output-Wpk_e5CI.mjs +0 -1
- package/dist/cf-worker-settings-BBdlhm9U.mjs +0 -41
- package/dist/cli/db-execute-process.d.mts +0 -2
- package/dist/cli/db-execute-process.mjs +0 -57
- package/dist/cloudflare-user-output-CCR99eQY.mjs +0 -19
- package/dist/collect-B6nlSnsb.mjs +0 -1
- package/dist/db-args-BvMwAber.mjs +0 -1
- package/dist/deploy-Do6FWqon.mjs +0 -2
- package/dist/discover-D2KGP3cR.mjs +0 -1
- package/dist/entry-Bwb9ev8K.mjs +0 -113
- package/dist/gen-vhBDHs3q.mjs +0 -1
- package/dist/help-fKPzcTJv.mjs +0 -1
- package/dist/isr-config-DiTnL9Tb.mjs +0 -115
- package/dist/login-DECm3e9b.mjs +0 -1
- package/dist/migrate-C9aoWLvY.mjs +0 -1
- package/dist/operator-cmd-CVfK5U0B.mjs +0 -1
- package/dist/output-D7K9TWIA.mjs +0 -1
- package/dist/platform-args-CMwMoiLp.mjs +0 -1
- package/dist/prepare-DcwigRUS.mjs +0 -1
- package/dist/providers-D5P8j_8D.d.mts +0 -5
- package/dist/resolve-project-YsTH-U9I.mjs +0 -1
- package/dist/static-exports-s7P86Ngp.mjs +0 -354
- package/dist/validate-CZYUIfR-.mjs +0 -1
- package/dist/wrangler-Dq269bjx.mjs +0 -1
- package/docs/guide/platform/development/local.md +0 -120
- package/docs/guide/platform/development/runtime.md +0 -115
- package/docs/guide/platform/development/schema-ci.md +0 -44
- package/docs/guide/platform-development.md +0 -16
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as readDeploymentPlatform } from "./project-
|
|
2
|
-
import { H as outro, L as log } from "./dist-
|
|
3
|
-
import { c as getToken, s as getSiteDomain } from "./auth-
|
|
4
|
-
import { r as PlatformClient } from "./client-
|
|
5
|
-
import { S as tablePrefix, c as formatCount, f as formatUrl, h as import_picocolors, o as dim } from "./output-
|
|
1
|
+
import { n as readDeploymentPlatform } from "./project-DC-BqHef.mjs";
|
|
2
|
+
import { H as outro, L as log } from "./dist-BngS28id.mjs";
|
|
3
|
+
import { c as getToken, s as getSiteDomain } from "./auth-CeBmolb-.mjs";
|
|
4
|
+
import { r as PlatformClient } from "./client-BEHI4UWn.mjs";
|
|
5
|
+
import { S as tablePrefix, c as formatCount, f as formatUrl, h as import_picocolors, o as dim } from "./output-DhJgS6Ve.mjs";
|
|
6
6
|
// src/cli/projects.ts
|
|
7
7
|
async function runProjectsCommand(root) {
|
|
8
8
|
console.log();
|
|
@@ -37,83 +37,93 @@ async function runProjectsCommand(root) {
|
|
|
37
37
|
async function runProjectCommand(root, args) {
|
|
38
38
|
const cloudflare = readDeploymentPlatform(root) === "cloudflare";
|
|
39
39
|
if (args.subcommand === "status") {
|
|
40
|
-
const { runListCommand } = await import("./list-
|
|
40
|
+
const { runListCommand } = await import("./list-K4EGVUZN.mjs");
|
|
41
41
|
return runListCommand(root, args.name || void 0);
|
|
42
42
|
}
|
|
43
43
|
if (args.subcommand === "link") {
|
|
44
44
|
if (cloudflare) throw new Error("project: Direct Cloudflare apps are identified by cloudflare.name in void.config.ts and do not need linking.");
|
|
45
|
-
const { runLink } = await import("./link-
|
|
45
|
+
const { runLink } = await import("./link-C3WMNFTG.mjs");
|
|
46
46
|
return runLink(root, args.name || void 0);
|
|
47
47
|
}
|
|
48
48
|
if (args.subcommand === "list") {
|
|
49
49
|
if (cloudflare) {
|
|
50
|
-
const { runListCommand } = await import("./list-
|
|
50
|
+
const { runListCommand } = await import("./list-K4EGVUZN.mjs");
|
|
51
51
|
return runListCommand(root);
|
|
52
52
|
}
|
|
53
53
|
return runProjectsCommand(root);
|
|
54
54
|
}
|
|
55
55
|
if (args.subcommand === "token") {
|
|
56
56
|
if (cloudflare) throw new Error("project: CI deploy credentials are available only for Void platform projects.");
|
|
57
|
-
const { runProjectTokenCommand } = await import("./project-token-
|
|
57
|
+
const { runProjectTokenCommand } = await import("./project-token-BHkBKtzt.mjs");
|
|
58
58
|
return runProjectTokenCommand(root, args);
|
|
59
59
|
}
|
|
60
60
|
if (args.subcommand === "team") {
|
|
61
61
|
if (args.action === "") {
|
|
62
|
-
const { printHelpPage } = await import("./help-
|
|
62
|
+
const { printHelpPage } = await import("./help-DWGHmt_n.mjs");
|
|
63
63
|
printHelpPage(["project", "team"]);
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
const accountInvitationAction = args.action === "pending" || args.action === "accept" || args.action === "decline";
|
|
67
67
|
if (cloudflare && !accountInvitationAction) throw new Error("project: Teams are available only for projects hosted on a Void platform, not direct Cloudflare deployments.");
|
|
68
|
-
const { runProjectTeamCommand } = await import("./project-team-
|
|
68
|
+
const { runProjectTeamCommand } = await import("./project-team-jcn9reIB.mjs");
|
|
69
69
|
return runProjectTeamCommand(root, args);
|
|
70
70
|
}
|
|
71
71
|
if (args.subcommand === "zero-trust") {
|
|
72
72
|
if (cloudflare) throw new Error("project: Zero Trust overrides are available only for projects hosted on a Void platform.");
|
|
73
73
|
if (args.action === "") {
|
|
74
|
-
const { printHelpPage } = await import("./help-
|
|
74
|
+
const { printHelpPage } = await import("./help-DWGHmt_n.mjs");
|
|
75
75
|
printHelpPage(["project", "zero-trust"]);
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
|
-
const { runProjectZeroTrustCommand } = await import("./project-zero-trust-
|
|
78
|
+
const { runProjectZeroTrustCommand } = await import("./project-zero-trust-2t_qI6xa.mjs");
|
|
79
79
|
return runProjectZeroTrustCommand(root, args);
|
|
80
80
|
}
|
|
81
81
|
if (args.subcommand === "security") {
|
|
82
82
|
if (cloudflare) throw new Error("project: Security audits are available only for projects hosted on a Void platform.");
|
|
83
83
|
if (args.action === "") {
|
|
84
|
-
const { printHelpPage } = await import("./help-
|
|
84
|
+
const { printHelpPage } = await import("./help-DWGHmt_n.mjs");
|
|
85
85
|
printHelpPage(["project", "security"]);
|
|
86
86
|
return;
|
|
87
87
|
}
|
|
88
|
-
const { runProjectSecurityCommand } = await import("./project-security-
|
|
88
|
+
const { runProjectSecurityCommand } = await import("./project-security-B-SHxprt.mjs");
|
|
89
89
|
return runProjectSecurityCommand(root, args);
|
|
90
90
|
}
|
|
91
91
|
if (args.subcommand === "logs") {
|
|
92
|
-
const { runLogsCommand } = await import("./logs-
|
|
92
|
+
const { runLogsCommand } = await import("./logs-BR2szdN5.mjs");
|
|
93
93
|
return runLogsCommand(root, args.filter, args.range, args.deployment || void 0, args.level || void 0);
|
|
94
94
|
}
|
|
95
95
|
if (args.subcommand === "requests") {
|
|
96
96
|
if (cloudflare) throw new Error("project: Historical request analytics require the Void platform. Use `void project logs` for a live Cloudflare tail.");
|
|
97
|
-
const { runRequestsCommand } = await import("./requests-
|
|
97
|
+
const { runRequestsCommand } = await import("./requests-BznxnxTT.mjs");
|
|
98
98
|
return runRequestsCommand(root, args.range, args.status || void 0);
|
|
99
99
|
}
|
|
100
100
|
if (args.subcommand === "rollback") {
|
|
101
|
-
const { runRollbackCommand } = await import("./rollback-
|
|
101
|
+
const { runRollbackCommand } = await import("./rollback-CLiINtpt.mjs");
|
|
102
102
|
return runRollbackCommand(root, args.deployId || void 0, args.platform);
|
|
103
103
|
}
|
|
104
|
+
if (args.subcommand === "preview") {
|
|
105
|
+
if (args.action === "") {
|
|
106
|
+
const { printHelpPage } = await import("./help-DWGHmt_n.mjs");
|
|
107
|
+
printHelpPage(["project", "preview"]);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
if (args.platform !== "cloudflare" && !cloudflare) throw new Error("project: Previews from `void deploy --preview` exist only for direct Cloudflare deploys. Add --platform cloudflare.");
|
|
111
|
+
const { runCloudflarePreviewDelete } = await import("./cloudflare-preview-8eLSQPdO.mjs");
|
|
112
|
+
return runCloudflarePreviewDelete(root, { name: args.name });
|
|
113
|
+
}
|
|
104
114
|
if (args.subcommand === "cancel") {
|
|
105
115
|
if (cloudflare) throw new Error("project: Direct Cloudflare deploys activate only after readiness succeeds, so there is no remote build to cancel.");
|
|
106
|
-
const { runCancelDeployCommand } = await import("./cancel-deploy-
|
|
116
|
+
const { runCancelDeployCommand } = await import("./cancel-deploy-BRsrmyTk.mjs");
|
|
107
117
|
return runCancelDeployCommand(root, args.deployId || void 0);
|
|
108
118
|
}
|
|
109
119
|
if (args.subcommand === "delete") {
|
|
110
120
|
if (cloudflare) throw new Error("project: Refusing to delete Cloudflare resources through this command. Direct deployments are additive and existing resources may be shared.");
|
|
111
|
-
const { runDeleteCommand } = await import("./delete-
|
|
121
|
+
const { runDeleteCommand } = await import("./delete-Cf6SroAw.mjs");
|
|
112
122
|
return runDeleteCommand(root, args.name || void 0, { force: args.force });
|
|
113
123
|
}
|
|
114
124
|
if (args.subcommand === "purge-cache") {
|
|
115
125
|
if (cloudflare) throw new Error("project: `void project purge-cache` is available only for projects hosted on a Void platform. For a direct Cloudflare deploy, redeploy or purge the configured ISR KV namespace.");
|
|
116
|
-
const { runPurgeCacheCommand } = await import("./cache-
|
|
126
|
+
const { runPurgeCacheCommand } = await import("./cache-WkLMUrjQ.mjs");
|
|
117
127
|
return runPurgeCacheCommand(root, args.projectSlug || void 0);
|
|
118
128
|
}
|
|
119
129
|
}
|
|
@@ -161,4 +161,4 @@ function assertNoRootSourceConventionConflicts(paths) {
|
|
|
161
161
|
if (conflicts.length === 0) return;
|
|
162
162
|
throw new Error(`sourceDir: ${getConfigFileName(paths.root)} sets "sourceDir": "${paths.sourceDir}", but convention path(s) also exist at the project root: ${conflicts.join(", ")}. Move them under "${paths.sourceDir}" or remove the root copy.`);
|
|
163
163
|
}
|
|
164
|
-
export { validateSourceDir as a,
|
|
164
|
+
export { validateSourceDir as a, loadTypedVoidConfigFile as c, resolveProjectPaths as i, loadVoidConfig as l, readProjectPaths as n, LEGACY_CONFIG_FILE as o, resolvePagesDir as r, TYPED_CONFIG_FILE as s, assertNoRootSourceConventionConflicts as t, aliasHint as u };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { m as runProjectSecurityCommand } from "./project-security-
|
|
1
|
+
export { m as runProjectSecurityCommand } from "./project-security-BWTd6cTU.mjs";
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { t as __commonJSMin } from "./rolldown-runtime-uD8oG6U2.mjs";
|
|
2
|
-
import { A as confirm, tt as isCancel } from "./dist-Cr_xGE_K.mjs";
|
|
3
2
|
import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
|
|
4
|
-
import { c as getToken, u as openBrowser } from "./auth-
|
|
5
|
-
import { n as PlatformApiError, r as PlatformClient } from "./client-
|
|
6
|
-
import { n as
|
|
3
|
+
import { c as getToken, u as openBrowser } from "./auth-CeBmolb-.mjs";
|
|
4
|
+
import { n as PlatformApiError, r as PlatformClient } from "./client-BEHI4UWn.mjs";
|
|
5
|
+
import { n as confirm } from "./interactive-prompts-EK0dilFu.mjs";
|
|
6
|
+
import { tt as isCancel } from "./dist-BngS28id.mjs";
|
|
7
|
+
import { n as cleanBlock, r as cleanLine } from "./output-DhJgS6Ve.mjs";
|
|
7
8
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
8
9
|
import { o as uploadAssetsToR2, t as DirectR2PutError } from "./direct-r2-upload-DFXLWfXV.mjs";
|
|
9
|
-
import { r as readProjectConfig } from "./project-
|
|
10
|
-
import { r as requireProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-
|
|
11
|
-
import { n as securityFindingsSarif, t as sarifToolVersion } from "./security-sarif-
|
|
10
|
+
import { r as readProjectConfig } from "./project-DC-BqHef.mjs";
|
|
11
|
+
import { r as requireProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-s_FGWyr-.mjs";
|
|
12
|
+
import { n as securityFindingsSarif, t as sarifToolVersion } from "./security-sarif-DzTIqNwZ.mjs";
|
|
12
13
|
import { closeSync, lstatSync, openSync, readFileSync, readSync } from "node:fs";
|
|
13
14
|
import { createHash } from "node:crypto";
|
|
14
15
|
import { execFileSync } from "node:child_process";
|
|
15
|
-
import { securityPickProblemNote } from "@void/platform/security-models";
|
|
16
|
-
import { securityTraceLines } from "@void/platform/security-policy";
|
|
17
16
|
import { gzipSync } from "node:zlib";
|
|
17
|
+
import { securityPickProblemNote } from "@void/platform/security-models";
|
|
18
|
+
import { SECURITY_ERRORS, securityTraceLines } from "@void/platform/security-policy";
|
|
18
19
|
import { SECURITY_LOCAL_CHECK_LIMITS, isSecurityLocalTreePath, securityInputFilter, securityLocalTreeTar } from "@void/platform/security-local-check";
|
|
19
20
|
// ../../node_modules/.pnpm/ci-info@4.5.0/node_modules/ci-info/vendors.json
|
|
20
21
|
var require_vendors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -560,7 +561,8 @@ const SEVERITY_LABEL = {
|
|
|
560
561
|
*/
|
|
561
562
|
function checkResultLines(slug, view, options = {}) {
|
|
562
563
|
const { check, result } = view;
|
|
563
|
-
const
|
|
564
|
+
const reason = check.statusReason === "spend_cap" ? "spend limit reached" : check.statusReason;
|
|
565
|
+
const head = [`${slug} · local check ${cleanLine(check.id)}`, ` ${cleanLine(check.status)}${reason ? ` (${cleanLine(reason)})` : ""}${check.coverageLabel ? ` · ${cleanLine(check.coverageLabel)}` : ""} · ${plural(check.filesScanned, "file")}${check.model ? ` · ${cleanLine(check.model)}` : ""}`];
|
|
564
566
|
if (!ENDED_WITH_RESULT.has(check.status)) return head;
|
|
565
567
|
if (result === null) return [...head, options.fresh ? " The result is missing." : " The result is no longer stored (results are kept for 30 days)."];
|
|
566
568
|
const confirmed = result.findings.filter((finding) => finding.verdict === "confirmed");
|
|
@@ -709,7 +711,7 @@ function budgetSkipCopy(cause, budget, model, projectId) {
|
|
|
709
711
|
};
|
|
710
712
|
const resets = `Resets ${day(budget.resetsAt)}.`;
|
|
711
713
|
const reserve = typeof budget.scanReserveUsd === "number" ? budget.scanReserveUsd : null;
|
|
712
|
-
const oneScan = `one scan with ${cleanLine(model ?? "this model")}
|
|
714
|
+
const oneScan = `one scan with ${cleanLine(model ?? "this model")} needs${reserve === null ? "" : ` ${usd(reserve)},`}`;
|
|
713
715
|
const cheaper = "pick a cheaper model: void project security model";
|
|
714
716
|
if (cause === "platform_cap") return {
|
|
715
717
|
...none,
|
|
@@ -777,7 +779,9 @@ function scanStatusCopy(status, projectId) {
|
|
|
777
779
|
case "failed": return lastScan.failureCause === "installation" ? "Not scanned: a platform problem (your platform admin can see it in the admin panel)." : `Last scan failed (${reason}). ${next}`;
|
|
778
780
|
case "timed_out": return `Last scan failed (timed out). ${next}`;
|
|
779
781
|
case "refused": return `Refused by ${cleanLine(lastScan.model ?? "the scan model")} (category: ${cleanLine(lastScan.refusalCategory ?? "unknown")}). The next deploy is scanned again. To switch model: void project security model <id>`;
|
|
780
|
-
case "incomplete":
|
|
782
|
+
case "incomplete":
|
|
783
|
+
if (reason === "spend_cap") return `Last scan reached its spend limit. Confirmed findings are kept. ${next}`;
|
|
784
|
+
return reason.startsWith("budget") ? `Last scan stopped early: the monthly scan budget ran out. Confirmed findings it found are kept. ${next}` : `Last scan was partial (${reason}). Confirmed findings it found are kept. ${next}`;
|
|
781
785
|
case "superseded": return "Replaced by the scan of a newer deploy.";
|
|
782
786
|
case "canceled": return `Canceled by a platform admin. ${next}`;
|
|
783
787
|
case "skipped":
|
|
@@ -858,8 +862,9 @@ function formatStatus(slug, status, projectId) {
|
|
|
858
862
|
if (urgent.count === 0) lines.push(row("Urgent", "none open"));
|
|
859
863
|
else lines.push(row("Urgent", `${urgent.count} open (${urgentCounts(urgent)}) · oldest ${day(urgent.oldestFirstSeenAt)} → void project security list --urgent`));
|
|
860
864
|
const reason = cleanLine(policy.reason);
|
|
865
|
+
const byRule = policy.override === "always" || policy.override === "never";
|
|
861
866
|
if (policy.mode === "disabled") lines.push(row("Policy", reason));
|
|
862
|
-
else if (policy.applies) lines.push(row("Policy", `applies: ${reason}${policy.mode === "public" ? " (Public projects only)" : ""}`));
|
|
867
|
+
else if (policy.applies) lines.push(row("Policy", `applies: ${reason}${policy.mode === "public" && !byRule ? " (Public projects only)" : ""}`));
|
|
863
868
|
else lines.push(row("Policy", `does not apply: ${reason}`));
|
|
864
869
|
lines.push(row("Model", `${cleanLine(model.id ?? "none")} (${modelSource(model)})`));
|
|
865
870
|
if (model.thirdParty && model.id) lines.push(cont("Run by a third-party provider, not Cloudflare. Its usage policy applies and it may refuse."));
|
|
@@ -871,7 +876,7 @@ function formatStatus(slug, status, projectId) {
|
|
|
871
876
|
if (!lastScan) lines.push(row("Last scan", policy.applies && policy.mode !== "disabled" ? "none yet. The first scan runs after your next deploy and reviews the whole app." : "none"));
|
|
872
877
|
else {
|
|
873
878
|
const parts = [
|
|
874
|
-
|
|
879
|
+
formatScanState(lastScan),
|
|
875
880
|
lastScan.deploymentId ? cleanLine(lastScan.deploymentId) : null,
|
|
876
881
|
duration(lastScan),
|
|
877
882
|
lastScan.coverageLabel ? cleanLine(lastScan.coverageLabel) : null
|
|
@@ -896,24 +901,36 @@ function formatStatus(slug, status, projectId) {
|
|
|
896
901
|
}
|
|
897
902
|
return lines;
|
|
898
903
|
}
|
|
904
|
+
/** `false_positive` → `false positive`, as the resolve message and the security page say it. */
|
|
905
|
+
function words(value) {
|
|
906
|
+
return cleanLine(value).split("_").join(" ");
|
|
907
|
+
}
|
|
899
908
|
function findingState(finding) {
|
|
900
|
-
if (finding.state === "resolved") return finding.resolution ? `resolved (${
|
|
909
|
+
if (finding.state === "resolved") return finding.resolution ? `resolved (${words(finding.resolution)})` : "resolved";
|
|
901
910
|
return finding.verdict === "needs_validation" ? "lead" : "open";
|
|
902
911
|
}
|
|
912
|
+
/** Pads every cell but the last of each row to its column's widest value. */
|
|
913
|
+
function columns(rows) {
|
|
914
|
+
const widths = [];
|
|
915
|
+
for (const cells of rows) cells.forEach((cell, index) => {
|
|
916
|
+
widths[index] = Math.max(widths[index] ?? 0, cell.length);
|
|
917
|
+
});
|
|
918
|
+
return rows.map((cells) => cells.map((cell, index) => index === cells.length - 1 ? cell : cell.padEnd(widths[index] ?? 0)).join(" ").trimEnd());
|
|
919
|
+
}
|
|
903
920
|
function formatFindingList(findings) {
|
|
904
|
-
return findings.map((finding) => {
|
|
921
|
+
return columns(findings.map((finding) => {
|
|
905
922
|
const place = finding.file ? `${cleanLine(finding.file)}${finding.line ? `:${finding.line}` : ""}` : "";
|
|
923
|
+
const title = finding.title === void 0 ? "" : cleanLine(finding.title);
|
|
906
924
|
return [
|
|
907
|
-
cleanLine(finding.id)
|
|
908
|
-
cleanLine(finding.severity ?? "-")
|
|
909
|
-
findingState(finding)
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
});
|
|
925
|
+
cleanLine(finding.id),
|
|
926
|
+
cleanLine(finding.severity ?? "-"),
|
|
927
|
+
findingState(finding),
|
|
928
|
+
[title, place ? `(${place})` : ""].filter(Boolean).join(" ")
|
|
929
|
+
];
|
|
930
|
+
}));
|
|
914
931
|
}
|
|
915
932
|
function indent(text) {
|
|
916
|
-
return cleanBlock(text).split("\n").map((line) => ` ${line}`);
|
|
933
|
+
return cleanBlock(text).split("\n").map((line) => line.trim() === "" ? "" : ` ${line}`);
|
|
917
934
|
}
|
|
918
935
|
function formatFinding(finding, events) {
|
|
919
936
|
const lines = [`${cleanLine(finding.id)} ${cleanLine(finding.severity ?? "-")} ${findingState(finding)}${finding.urgent ? " (urgent)" : ""}`];
|
|
@@ -947,22 +964,26 @@ function formatFinding(finding, events) {
|
|
|
947
964
|
for (const event of events) {
|
|
948
965
|
const who = event.actor ?? event.actorKind;
|
|
949
966
|
const role = event.formerMember ? "former member" : event.actorRole ? cleanLine(event.actorRole) : null;
|
|
950
|
-
lines.push(` ${stamp(event.createdAt)} · ${
|
|
951
|
-
if (event.comment) lines.push(...indent(event.comment).map((line) => ` ${line}`));
|
|
967
|
+
lines.push(` ${stamp(event.createdAt)} · ${words(event.action)}${event.resolution ? ` (${words(event.resolution)})` : ""}${event.severityFrom && event.severityTo ? ` (${cleanLine(event.severityFrom)} → ${cleanLine(event.severityTo)})` : ""} · ${cleanLine(who)}${role ? ` (${role})` : ""}`);
|
|
968
|
+
if (event.comment) lines.push(...indent(event.comment).map((line) => line === "" ? "" : ` ${line}`));
|
|
952
969
|
}
|
|
953
970
|
}
|
|
954
971
|
return lines;
|
|
955
972
|
}
|
|
973
|
+
function formatScanState(scan) {
|
|
974
|
+
const reason = scan.statusReason === "spend_cap" ? "scan spend limit reached" : scan.statusReason;
|
|
975
|
+
return cleanLine(scan.status + (reason ? ` (${reason})` : ""));
|
|
976
|
+
}
|
|
956
977
|
function formatScans(scans) {
|
|
957
|
-
return scans.map((scan) => [
|
|
958
|
-
day(scan.createdAt)
|
|
959
|
-
|
|
960
|
-
cleanLine(scan.deploymentId ?? "-")
|
|
961
|
-
cleanLine(scan.trigger)
|
|
978
|
+
return columns(scans.map((scan) => [
|
|
979
|
+
day(scan.createdAt),
|
|
980
|
+
formatScanState(scan),
|
|
981
|
+
cleanLine(scan.deploymentId ?? "-"),
|
|
982
|
+
cleanLine(scan.trigger),
|
|
962
983
|
duration(scan) ?? "-",
|
|
963
984
|
scan.meteredUsd === null ? "" : usd(scan.meteredUsd),
|
|
964
985
|
scan.model ? cleanLine(scan.model) : ""
|
|
965
|
-
]
|
|
986
|
+
]));
|
|
966
987
|
}
|
|
967
988
|
async function resolveTarget(root, args) {
|
|
968
989
|
const token = getToken(root);
|
|
@@ -1010,17 +1031,26 @@ function noticeOf(error) {
|
|
|
1010
1031
|
return null;
|
|
1011
1032
|
}
|
|
1012
1033
|
}
|
|
1034
|
+
function isModelNotAllowed(error) {
|
|
1035
|
+
if (!(error instanceof PlatformApiError)) return false;
|
|
1036
|
+
try {
|
|
1037
|
+
return JSON.parse(error.body).error === SECURITY_ERRORS.modelNotAllowed.code;
|
|
1038
|
+
} catch {
|
|
1039
|
+
return false;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1013
1042
|
function severityChangeLine(id, level, result) {
|
|
1014
1043
|
if (!result.changed) return result.severityEdited ? `${id} is already ${level}. Nothing changed.` : `${id} already uses the scan severity (${level}). Nothing changed.`;
|
|
1015
1044
|
if (!result.severityEdited) return `✓ ${id} uses the scan severity again: ${level}.`;
|
|
1016
1045
|
const scans = result.scanSeverity ? cleanLine(result.scanSeverity) : null;
|
|
1017
1046
|
return `✓ ${id} severity set to ${level}${scans && scans !== level ? ` (scans said ${scans})` : ""}. Later scans keep it.`;
|
|
1018
1047
|
}
|
|
1019
|
-
/** The rescan cost confirm (spec §13.4 rescan rule): what it runs and
|
|
1048
|
+
/** The rescan cost confirm (spec §13.4 rescan rule): what it runs and its estimated cost. */
|
|
1020
1049
|
function rescanConfirmLines(preview) {
|
|
1021
1050
|
const id = cleanLine(preview.deploymentId);
|
|
1022
1051
|
const model = cleanLine(preview.model ?? "the scan model");
|
|
1023
|
-
const
|
|
1052
|
+
const estimate = preview.estimatedUsd ?? preview.worstCaseUsd;
|
|
1053
|
+
const cost = typeof estimate === "number" ? ` Estimated cost: up to ${usd(estimate)}.` : "";
|
|
1024
1054
|
const whole = preview.clientAssets ? "This reviews the whole app, and the sources of its client bundles." : "This reviews the whole app.";
|
|
1025
1055
|
const lines = [preview.alreadyScanned ? `Live deployment ${id} was already scanned. Run a full scan with ${model}? ${whole}${cost}` : `Run a full scan of live deployment ${id} with ${model}? ${whole}${cost}`];
|
|
1026
1056
|
const budget = preview.budget;
|
|
@@ -1115,7 +1145,7 @@ async function runProjectSecurityCommand(root, args, deps = {}) {
|
|
|
1115
1145
|
const results = [];
|
|
1116
1146
|
const lines = [];
|
|
1117
1147
|
let lastRequest;
|
|
1118
|
-
|
|
1148
|
+
const failed = [];
|
|
1119
1149
|
for (const id of args.ids) try {
|
|
1120
1150
|
const result = await client.resolveProjectSecurityFinding(projectId, id, {
|
|
1121
1151
|
reason: args.reason,
|
|
@@ -1126,16 +1156,17 @@ async function runProjectSecurityCommand(root, args, deps = {}) {
|
|
|
1126
1156
|
lastRequest = result.publicRequest ?? lastRequest;
|
|
1127
1157
|
lines.push(`✓ ${cleanLine(result.id)} resolved (${reasonLabel(result.resolution)}).${args.reason === "fixed" ? " The next scan will check that the fix holds." : ""}`);
|
|
1128
1158
|
} catch (error) {
|
|
1129
|
-
failed
|
|
1130
|
-
const
|
|
1159
|
+
failed.push(id);
|
|
1160
|
+
const raw = error instanceof Error ? error.message : String(error);
|
|
1131
1161
|
results.push({
|
|
1132
1162
|
ok: false,
|
|
1133
1163
|
id,
|
|
1134
|
-
error:
|
|
1164
|
+
error: raw
|
|
1135
1165
|
});
|
|
1136
|
-
|
|
1166
|
+
const message = cleanLine(raw);
|
|
1167
|
+
lines.push(`✖ ${message.startsWith(`${id} `) ? message : `${id}: ${message}`}`);
|
|
1137
1168
|
}
|
|
1138
|
-
if (failed < args.ids.length) {
|
|
1169
|
+
if (failed.length < args.ids.length) {
|
|
1139
1170
|
const status = await statusAfterChange(client, projectId);
|
|
1140
1171
|
const open = status?.urgent.findings ?? [];
|
|
1141
1172
|
const describe = (id) => {
|
|
@@ -1148,7 +1179,7 @@ async function runProjectSecurityCommand(root, args, deps = {}) {
|
|
|
1148
1179
|
else if (status && status.urgent.count > 0) lines.push(` Still open and urgent: ${open.map((finding) => describe(finding.id)).join(", ")}${status.urgent.more > 0 ? `, and ${status.urgent.more} more` : ""}.`);
|
|
1149
1180
|
}
|
|
1150
1181
|
print(args, { results }, lines);
|
|
1151
|
-
if (failed > 0) throw new Error(`project:
|
|
1182
|
+
if (failed.length > 0) throw new Error(`project: Not resolved: ${failed.join(", ")}.`);
|
|
1152
1183
|
return;
|
|
1153
1184
|
}
|
|
1154
1185
|
if (args.action === "scans") {
|
|
@@ -1181,13 +1212,15 @@ async function runProjectSecurityCommand(root, args, deps = {}) {
|
|
|
1181
1212
|
}
|
|
1182
1213
|
if (args.action === "model") {
|
|
1183
1214
|
if (args.change === "show") {
|
|
1184
|
-
const { model } = await client.getProjectSecurity(projectId);
|
|
1215
|
+
const { model, modelChoices } = await client.getProjectSecurity(projectId);
|
|
1216
|
+
const choices = modelChoices?.choices.map((choice) => cleanLine(choice.id)) ?? [];
|
|
1185
1217
|
const lines = [
|
|
1186
1218
|
`${slug} · security model`,
|
|
1187
1219
|
row("Model", `${cleanLine(model.id ?? "none")} (${modelSource(model)})`),
|
|
1188
|
-
row("Asked for", cleanLine(model.requested)),
|
|
1220
|
+
model.requested === model.id ? null : row("Asked for", cleanLine(model.requested)),
|
|
1189
1221
|
model.thirdParty || model.pendingDefault || model.pickProblem === "notice" ? row("Notice", model.noticeAccepted ? "provider notice accepted" : "provider notice not accepted") : null,
|
|
1190
|
-
|
|
1222
|
+
...choices.map((id, index) => index === 0 ? row("Choices", id) : cont(id)),
|
|
1223
|
+
row("Change", "void project security model <id> or void project security model --default")
|
|
1191
1224
|
].filter((line) => line !== null);
|
|
1192
1225
|
print(args, { model }, lines);
|
|
1193
1226
|
return;
|
|
@@ -1203,7 +1236,14 @@ async function runProjectSecurityCommand(root, args, deps = {}) {
|
|
|
1203
1236
|
result = await set(args.acceptNotice ? 0 : void 0);
|
|
1204
1237
|
} catch (error) {
|
|
1205
1238
|
const notice = noticeOf(error);
|
|
1206
|
-
if (!notice)
|
|
1239
|
+
if (!notice) {
|
|
1240
|
+
if (!args.json && isModelNotAllowed(error)) {
|
|
1241
|
+
const { modelChoices } = await client.getProjectSecurity(projectId);
|
|
1242
|
+
const ids = modelChoices?.choices.map((choice) => cleanLine(choice.id)) ?? [];
|
|
1243
|
+
if (ids.length > 0) throw new Error(`${error.message} Models you can pick: ${ids.join(", ")}.`, { cause: error });
|
|
1244
|
+
}
|
|
1245
|
+
throw error;
|
|
1246
|
+
}
|
|
1207
1247
|
const text = notice.notice.map(cleanLine);
|
|
1208
1248
|
if (!args.acceptNotice) {
|
|
1209
1249
|
if (!args.json) console.log([
|
|
@@ -1302,7 +1342,8 @@ async function runSecurityCheck(root, client, projectId, slug, args, deps) {
|
|
|
1302
1342
|
const model = cleanLine(preview.model);
|
|
1303
1343
|
const lines = ["", ...checkSummaryLines(slug, tree)];
|
|
1304
1344
|
if (preview.notice) lines.push("", ...preview.notice.map((line) => ` ${cleanLine(line)}`));
|
|
1305
|
-
|
|
1345
|
+
const estimate = preview.estimatedUsd ?? preview.worstCaseUsd;
|
|
1346
|
+
lines.push("", ` The code goes to the platform and is reviewed by ${model}.${typeof estimate === "number" ? ` Estimated cost: up to ${usd(estimate)}; monthly caps apply.` : " Monthly caps apply."}`, " The result is not saved as project findings. The platform keeps it for 30 days.");
|
|
1306
1347
|
log(lines);
|
|
1307
1348
|
if (!args.yes && !await askYesNo(deps, `Send these files for a security check with ${model}?`)) {
|
|
1308
1349
|
console.log("Nothing was sent.");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as outro, L as log } from "./dist-
|
|
2
|
-
import { c as getToken, i as getAccountCredential } from "./auth-
|
|
3
|
-
import { c as parsePlatformErrorBody, l as platformErrorMessage, n as PlatformApiError, r as PlatformClient } from "./client-
|
|
4
|
-
import { b as sanitizeTerminalText, c as formatCount, f as formatUrl, g as note, y as printSuccess } from "./output-
|
|
5
|
-
import { r as readProjectConfig } from "./project-
|
|
6
|
-
import { r as requireProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-
|
|
1
|
+
import { H as outro, L as log } from "./dist-BngS28id.mjs";
|
|
2
|
+
import { c as getToken, i as getAccountCredential } from "./auth-CeBmolb-.mjs";
|
|
3
|
+
import { c as parsePlatformErrorBody, l as platformErrorMessage, n as PlatformApiError, r as PlatformClient } from "./client-BEHI4UWn.mjs";
|
|
4
|
+
import { b as sanitizeTerminalText, c as formatCount, f as formatUrl, g as note, y as printSuccess } from "./output-DhJgS6Ve.mjs";
|
|
5
|
+
import { r as readProjectConfig } from "./project-DC-BqHef.mjs";
|
|
6
|
+
import { r as requireProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-s_FGWyr-.mjs";
|
|
7
7
|
// src/cli/project-team.ts
|
|
8
8
|
function clean(value) {
|
|
9
9
|
return (value ?? "—").replaceAll(/[\u0000-\u001f\u007f]/g, " ");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as outro, L as log } from "./dist-
|
|
2
|
-
import { c as getToken } from "./auth-
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
4
|
-
import { S as tablePrefix, o as dim, y as printSuccess } from "./output-
|
|
5
|
-
import { r as readProjectConfig } from "./project-
|
|
6
|
-
import { r as requireProjectBySlug } from "./resolve-project-
|
|
1
|
+
import { H as outro, L as log } from "./dist-BngS28id.mjs";
|
|
2
|
+
import { c as getToken } from "./auth-CeBmolb-.mjs";
|
|
3
|
+
import { r as PlatformClient } from "./client-BEHI4UWn.mjs";
|
|
4
|
+
import { S as tablePrefix, o as dim, y as printSuccess } from "./output-DhJgS6Ve.mjs";
|
|
5
|
+
import { r as readProjectConfig } from "./project-DC-BqHef.mjs";
|
|
6
|
+
import { r as requireProjectBySlug } from "./resolve-project-s_FGWyr-.mjs";
|
|
7
7
|
// src/cli/project-token.ts
|
|
8
8
|
async function resolveTarget(root, args) {
|
|
9
9
|
const humanToken = getToken(root);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join, n as dirname, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-BeAxxqGh.mjs";
|
|
3
3
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
4
4
|
// src/codegen/write-if-changed.ts
|
|
5
5
|
function writeFileIfChanged(path, content) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H as outro, L as log } from "./dist-
|
|
1
|
+
import { H as outro, L as log } from "./dist-BngS28id.mjs";
|
|
2
2
|
import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
|
|
3
|
-
import { n as PlatformApiError } from "./client-
|
|
4
|
-
import { b as sanitizeTerminalText, g as note, r as cleanLine, y as printSuccess } from "./output-
|
|
5
|
-
import { a as day, d as publicRequestLines, p as resolveTarget, t as askYesNo, u as isInteractive } from "./project-security-
|
|
3
|
+
import { n as PlatformApiError } from "./client-BEHI4UWn.mjs";
|
|
4
|
+
import { b as sanitizeTerminalText, g as note, r as cleanLine, y as printSuccess } from "./output-DhJgS6Ve.mjs";
|
|
5
|
+
import { a as day, d as publicRequestLines, p as resolveTarget, t as askYesNo, u as isInteractive } from "./project-security-BWTd6cTU.mjs";
|
|
6
6
|
import { t as OPEN_PUBLIC_REQUEST_STATES } from "./security-api-types-CU7zQtr_.mjs";
|
|
7
7
|
// src/cli/project-zero-trust.ts
|
|
8
8
|
function isOpenRequest(request) {
|