cf 1.0.0-beta.7 → 1.0.0-beta.8
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/{abuse-reports-D7Hrm0MV.mjs → abuse-reports-D9LttL99.mjs} +1 -1
- package/dist/{access-_upGyV1N.mjs → access-CSUG9fDH.mjs} +1 -1
- package/dist/{account-tags-CrijxKW6.mjs → account-tags-BkmuF6bd.mjs} +1 -1
- package/dist/{accounts-Db5SMjh2.mjs → accounts-CmqKD3xG.mjs} +1 -1
- package/dist/{acm-9cXKVj2C.mjs → acm-D9WirG6Y.mjs} +1 -1
- package/dist/{addressing-D_FtdMEM.mjs → addressing-DAdzF3M5.mjs} +1 -1
- package/dist/{agent-memory-BygNv4aJ.mjs → agent-memory-CIEk0dD-.mjs} +1 -1
- package/dist/{ai-D-55e3UD.mjs → ai-Dq1GOYn7.mjs} +1 -1
- package/dist/{ai-audit-DDQ68vrA.mjs → ai-audit-D5XtqDkx.mjs} +1 -1
- package/dist/{ai-gateway-sP2B_8Ef.mjs → ai-gateway-D16_7Zbq.mjs} +1 -1
- package/dist/{ai-search-DvMUOhub.mjs → ai-search-Ce3p9ccc.mjs} +1 -1
- package/dist/{ai-security-BVWVxZmP.mjs → ai-security-BodoNshv.mjs} +1 -1
- package/dist/{alerting-DZ9gxuKS.mjs → alerting-DuF0tdhO.mjs} +1 -1
- package/dist/{analytics-Y2xckwX1.mjs → analytics-DmnqxoBT.mjs} +1 -1
- package/dist/{analytics_engine-A8gMyUty.mjs → analytics_engine-BOYHgzoX.mjs} +1 -1
- package/dist/{api-security-CNMyTBs-.mjs → api-security-B3v-EKrg.mjs} +1 -1
- package/dist/{argo-Be_3wk6n.mjs → argo-BsSvWev6.mjs} +1 -1
- package/dist/{artifacts-B8roQjRg.mjs → artifacts-Dq5t2ZQO.mjs} +1 -1
- package/dist/{audit-logs-DgkSAyTu.mjs → audit-logs-DpszUSNO.mjs} +1 -1
- package/dist/{auth-CHTMVVW3.mjs → auth-BjxUTZWb.mjs} +2 -2
- package/dist/{auth-B74oTm3b.mjs → auth-skaSvH3I.mjs} +1 -1
- package/dist/{basin-catalog-85ubk7YB.mjs → basin-catalog-c_Z-KmdC.mjs} +1 -1
- package/dist/{billing-Cc6_LzwM.mjs → billing-D8eSkPUk.mjs} +1 -1
- package/dist/{bot-management-DSJtyyh_.mjs → bot-management-gPqJF81w.mjs} +1 -1
- package/dist/{botnet-feed-BkhLL1Oz.mjs → botnet-feed-B1TeX5OO.mjs} +1 -1
- package/dist/{brand-protection-Bldu6Tvz.mjs → brand-protection-jjdTCYeF.mjs} +1 -1
- package/dist/{browser-run-B_0Fh5Cg.mjs → browser-run-CkmofJ6D.mjs} +1 -1
- package/dist/{build-SxtWgMkQ.mjs → build-B-tN7mO-.mjs} +1 -1
- package/dist/build-D5D56lvE.mjs +2 -0
- package/dist/{builds-BwP-UvyR.mjs → builds-Ca9hPvgz.mjs} +1 -1
- package/dist/{cache-DQDer_pF.mjs → cache-BnRnlPjP.mjs} +1 -1
- package/dist/{certificate-authorities-Dfc0QVyT.mjs → certificate-authorities-D2J5rh-m.mjs} +1 -1
- package/dist/{cf-Dw3HK_Qy.mjs → cf-Bh_fTFIj.mjs} +1 -1
- package/dist/{cli-B0_EbPK6.mjs → cli-xbKU3h28.mjs} +1 -1
- package/dist/{client-certificates-BVfmuFsa.mjs → client-certificates-D3mKJGFa.mjs} +1 -1
- package/dist/{client-side-security-DiaSjw1y.mjs → client-side-security-DcO8apX2.mjs} +1 -1
- package/dist/{cloud-connector-B6iUAIzF.mjs → cloud-connector-CCbT4xFi.mjs} +1 -1
- package/dist/{cloudforce-one-B2PweUyv.mjs → cloudforce-one-Cnj0OnZF.mjs} +1 -1
- package/dist/{command-CzzAaOGK.mjs → command-B9rrie65.mjs} +1 -1
- package/dist/{command-BOktUlKN.mjs → command-BUWmTl5w.mjs} +1 -1
- package/dist/{command-Bi0InjEd.mjs → command-BWUoVso3.mjs} +1 -1
- package/dist/{command-CNfYJjg7.mjs → command-BvwvCWkB.mjs} +1 -1
- package/dist/{command-CnEF-7o0.mjs → command-BxrOxsu9.mjs} +1 -1
- package/dist/{command-D1S9Z0gV.mjs → command-CUQF-QFP.mjs} +1 -1
- package/dist/{command-BC7oCgWp.mjs → command-CwsA28Vt.mjs} +1 -1
- package/dist/{command-WrVIhg73.mjs → command-D5vy9tlg.mjs} +1 -1
- package/dist/{command-CrS8Q6U3.mjs → command-DwbJIcAA.mjs} +1 -1
- package/dist/{command-DVSwnnMJ.mjs → command-_4j_XD3U.mjs} +1 -1
- package/dist/{completions-UDpzduKn.mjs → completions-EHied_ON.mjs} +1 -1
- package/dist/{connector-interrupts-47IuSZFG.mjs → connector-interrupts-CyeiC7gw.mjs} +1 -1
- package/dist/{connector-telemetry-events-BQb3Hsnt.mjs → connector-telemetry-events-D-cL2RuW.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-CeFJqT4_.mjs → connector-telemetry-snapshots-MrpBZ5fC.mjs} +1 -1
- package/dist/{connectors-CF9n8yHv.mjs → connectors-Ds5PWdpP.mjs} +1 -1
- package/dist/{containers-DBs5P8vO.mjs → containers-BR6paNcL.mjs} +1 -1
- package/dist/{containers-D4pJisp-.mjs → containers-D9masRwv.mjs} +1 -1
- package/dist/{content-scan-DLdl9ZpM.mjs → content-scan-eX3wIB8J.mjs} +1 -1
- package/dist/{context-C71TA0Yp.mjs → context-M2Ho8pi3.mjs} +1 -1
- package/dist/{cps-X4HFj7Qw.mjs → cps-CyviY22M.mjs} +1 -1
- package/dist/{csamScanner-tkB73Sgi.mjs → csamScanner-CHF53DZw.mjs} +1 -1
- package/dist/{ct-alerting-HDZJVnZS.mjs → ct-alerting-BORxnBtn.mjs} +1 -1
- package/dist/{custom-certificates-ClGBR4Oo.mjs → custom-certificates-KsS8xnfG.mjs} +1 -1
- package/dist/{custom-csrs-D3b2bNiX.mjs → custom-csrs-BtNQaSVn.mjs} +1 -1
- package/dist/{custom-hostnames-CWyObX98.mjs → custom-hostnames-4tLpHtCK.mjs} +1 -1
- package/dist/{custom-nameservers-Di8z6ioQ.mjs → custom-nameservers-DYM29vGA.mjs} +1 -1
- package/dist/{custom-pages-D2l1rZfJ.mjs → custom-pages-BIwM1IyN.mjs} +1 -1
- package/dist/{d1-aDiX5BdB.mjs → d1-Yhj_t0--.mjs} +1 -1
- package/dist/{dcv-delegation-D-vyZC0M.mjs → dcv-delegation-DXspPfEr.mjs} +1 -1
- package/dist/{deploy-input-DxuYgPps.mjs → deploy-input-DJWWJs3a.mjs} +1 -1
- package/dist/{deploy-DBmw0fiq.mjs → deploy-su0BR90P.mjs} +1 -1
- package/dist/{dev-SpCmvb4M.mjs → dev-DqgkwmRH.mjs} +1 -1
- package/dist/{diagnostics-nRYcfs30.mjs → diagnostics-B6FqDbQY.mjs} +1 -1
- package/dist/{dist-Du72beRE.mjs → dist-CxGYQfpW.mjs} +1 -1
- package/dist/{dls-CANrS9Ke.mjs → dls-CDvZjyjo.mjs} +1 -1
- package/dist/{dns-Vt3Dc_Vu.mjs → dns-DGMcGcBE.mjs} +1 -1
- package/dist/{dns-firewall-CVSEaJZY.mjs → dns-firewall-BahlWOJO.mjs} +1 -1
- package/dist/{durable-objects-B-e7xqhL.mjs → durable-objects-Cnho3J7w.mjs} +1 -1
- package/dist/{email-auth-hUz_5D2H.mjs → email-auth-CkqeIq8V.mjs} +1 -1
- package/dist/{email-routing-By5Q7zP0.mjs → email-routing-D_Mw8HSX.mjs} +1 -1
- package/dist/{email-security-C9VhlZkz.mjs → email-security-D9yMRsXl.mjs} +1 -1
- package/dist/{email-sending-C7cVl025.mjs → email-sending-CQfuE7h6.mjs} +1 -1
- package/dist/{fieldExtractors-DMdnj9KA.mjs → fieldExtractors-Bbbegy-c.mjs} +1 -1
- package/dist/{firewall-C93JnCsO.mjs → firewall-DtlT_8mG.mjs} +1 -1
- package/dist/{flagship-CVZWzLTv.mjs → flagship-BWEdMJSQ.mjs} +1 -1
- package/dist/{fraud-DJ3jnp3_.mjs → fraud-mszBJHV6.mjs} +1 -1
- package/dist/{google-tag-gateway-DbE_3TkF.mjs → google-tag-gateway-DD8rztUs.mjs} +1 -1
- package/dist/{healthchecks-DKWTVerg.mjs → healthchecks-CzCJR3df.mjs} +1 -1
- package/dist/{hostnames-VNPfazJd.mjs → hostnames-BTSxAv-T.mjs} +1 -1
- package/dist/{hyperdrive-BKtLQf8J.mjs → hyperdrive-Bg1T58qE.mjs} +1 -1
- package/dist/{iam-BsZ7ORd5.mjs → iam-cAzxdXI7.mjs} +1 -1
- package/dist/{images-Bd3lRkGK.mjs → images-CfHt8v2n.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-D9pazuYJ.mjs → init-9TwyFuzD.mjs} +1 -1
- package/dist/{intel-ropzhmya.mjs → intel-WWPG0-t7.mjs} +1 -1
- package/dist/{ips-85Mq1qXg.mjs → ips-CxSw5R88.mjs} +1 -1
- package/dist/{keyless-certificates-CRzCJ82O.mjs → keyless-certificates-Jfsyada7.mjs} +1 -1
- package/dist/{keys-CWUCTmsD.mjs → keys-BrDarg28.mjs} +1 -1
- package/dist/{kv-BT2uSv-y.mjs → kv-C8eauBSy.mjs} +1 -1
- package/dist/{lazy-command-DjCioGYx.mjs → lazy-command-B0914_IJ.mjs} +1 -1
- package/dist/{leaked-credential-checks-DjDq1Toq.mjs → leaked-credential-checks-Y9mDSJKn.mjs} +1 -1
- package/dist/{load-balancers--4Ouz99G.mjs → load-balancers-DsKJIF_U.mjs} +1 -1
- package/dist/local-B5d4OPhA.mjs +2 -0
- package/dist/{local-C9i1d0ma.mjs → local-CQc36Viv.mjs} +1 -1
- package/dist/{local-runtime-WQyZe3ed.mjs → local-runtime-CifOYlPq.mjs} +1 -1
- package/dist/{login-CHjklzf2.mjs → login-DFZ3DEjI.mjs} +1 -1
- package/dist/{login-BDFpobb3.mjs → login-DGXSiCII.mjs} +1 -1
- package/dist/{logo-matches-DVQfRSCD.mjs → logo-matches-D1vjZF-k.mjs} +1 -1
- package/dist/{logos-BUEuiGuz.mjs → logos-CCEIMvE7.mjs} +1 -1
- package/dist/{logpush-cKUA9fBU.mjs → logpush-DAx2y5MY.mjs} +1 -1
- package/dist/{logs-2OJeMqWG.mjs → logs-D9BsByMt.mjs} +1 -1
- package/dist/{magic-cloud-networking-D29ITjYQ.mjs → magic-cloud-networking-C_FsIQoS.mjs} +1 -1
- package/dist/{magic-network-monitoring-Bva_tF2u.mjs → magic-network-monitoring-DBo1mI3a.mjs} +1 -1
- package/dist/{magic-transit-DG_ZmEzW.mjs → magic-transit-BgRq6ZeA.mjs} +1 -1
- package/dist/{managed-defense-xGCISaB_.mjs → managed-defense-BRdCrVVh.mjs} +1 -1
- package/dist/{managed-transforms-DDgqNWVJ.mjs → managed-transforms-cmvRuRQ7.mjs} +1 -1
- package/dist/{matches-CxWA1zUN.mjs → matches-B0bzP6tB.mjs} +1 -1
- package/dist/{mcp-DVoYs5z5.mjs → mcp-CSxoAB-y.mjs} +1 -1
- package/dist/{mesh-qenm6AM4.mjs → mesh-C-n2gi4F.mjs} +1 -1
- package/dist/{monetization-CUWtxI_y.mjs → monetization-DHFiy5qs.mjs} +1 -1
- package/dist/{mtls-certificates-xUIkGtmX.mjs → mtls-certificates-o11WJKM1.mjs} +1 -1
- package/dist/{network-Y8kCdzJC.mjs → network-Ck6XHs9j.mjs} +1 -1
- package/dist/{network-interconnects-CEvvsGwX.mjs → network-interconnects-CT4a_D5b.mjs} +1 -1
- package/dist/{oauth-J2zz9fHk.mjs → oauth-D6EZEBcY.mjs} +1 -1
- package/dist/{oauth-vj6qkLCC.mjs → oauth-D9jA6L9a.mjs} +1 -1
- package/dist/{oauth-clients-B7qfaBLY.mjs → oauth-clients-DRBvDDNL.mjs} +1 -1
- package/dist/{oauth-scopes-D7_xDwvo.mjs → oauth-scopes-eV0VbNV-.mjs} +1 -1
- package/dist/{observability-_aI_XF0M.mjs → observability-CBCuWCen.mjs} +1 -1
- package/dist/{organization-C41nlZcO.mjs → organization-3y27rtm7.mjs} +1 -1
- package/dist/{organizations-D15_q5u6.mjs → organizations-Q9QPbB-p.mjs} +1 -1
- package/dist/{origin-ca-certificates-DGSGDaNw.mjs → origin-ca-certificates-CbTgmQ2N.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-C_9NBBkG.mjs → origin-post-quantum-encryption-D5zeAJJ1.mjs} +1 -1
- package/dist/{origin-tls-client-auth-Dh9vTi_F.mjs → origin-tls-client-auth-V5hB1Bwu.mjs} +1 -1
- package/dist/{page-rules-CWZJaKuz.mjs → page-rules-BYYBcKRU.mjs} +1 -1
- package/dist/{pages-CVlGF6mj.mjs → pages-CfinrrWX.mjs} +1 -1
- package/dist/{pay-per-crawl-BJ10CSH9.mjs → pay-per-crawl-C-S5WxQT.mjs} +1 -1
- package/dist/{pay-per-use-B3eQmzWv.mjs → pay-per-use-B3gl7GQo.mjs} +1 -1
- package/dist/{pipelines-VhDz1fDL.mjs → pipelines-lfvTXng7.mjs} +1 -1
- package/dist/{precursor-CvYpYouB.mjs → precursor-CNm5rIPl.mjs} +1 -1
- package/dist/{previews-CJHqRKPF.mjs → previews-DV7OxoSM.mjs} +1 -1
- package/dist/{progress-BlxgG8Ss.mjs → progress-BnIv4lh5.mjs} +1 -1
- package/dist/{prompt-ClEoR47s.mjs → prompt-DjRAo2Up.mjs} +1 -1
- package/dist/{queries-8m5UOv21.mjs → queries-D0obyA9I.mjs} +1 -1
- package/dist/{queues-C8P3RI-3.mjs → queues-G1CS4M1H.mjs} +1 -1
- package/dist/{r2-ChQ_GZA7.mjs → r2-BLXUGlGq.mjs} +1 -1
- package/dist/{radar-B9PnH7nW.mjs → radar-hGFsVuHs.mjs} +1 -1
- package/dist/{raw-fetch-CWRDTVMr.mjs → raw-fetch-CuMHmrn0.mjs} +1 -1
- package/dist/{realtime-31GZpgm5.mjs → realtime-CZYwfmjr.mjs} +1 -1
- package/dist/{registrar-fBw5wh-I.mjs → registrar-dvv2gU93.mjs} +1 -1
- package/dist/{registrar-sandbox-Bcr5l7Js.mjs → registrar-sandbox-Cnqn9BDJ.mjs} +1 -1
- package/dist/{registry-rtPfnFht.mjs → registry-DWTPK8_Q.mjs} +1 -1
- package/dist/{reporting-BfpNLeGh.mjs → reporting-Bfwnpc7z.mjs} +1 -1
- package/dist/{request-headers-DmiSqfLo.mjs → request-headers-DaUqNccK.mjs} +1 -1
- package/dist/{request-tracers-DCpDftuC.mjs → request-tracers-CF4_bzqx.mjs} +1 -1
- package/dist/{resource-sharing-D-OCBlIj.mjs → resource-sharing-DaY7ISTQ.mjs} +1 -1
- package/dist/{resource-tagging-DCn8TwS0.mjs → resource-tagging-D669i7sI.mjs} +1 -1
- package/dist/{rules-DHeYlXlI.mjs → rules-C9w-8uyl.mjs} +1 -1
- package/dist/{rulesets-BMv5GVEt.mjs → rulesets-yYRTXZ71.mjs} +1 -1
- package/dist/{rum-CaTeqDsB.mjs → rum-DPrqqYSC.mjs} +1 -1
- package/dist/run-Dkcz54xY.mjs +2 -0
- package/dist/{run-l2pCxS-W.mjs → run-Duj1fsxa.mjs} +1 -1
- package/dist/{schema-flags-DBujG5kJ.mjs → schema-flags-CK4J4XhG.mjs} +1 -1
- package/dist/{scim-DHwWD1nA.mjs → scim-DAZek91U.mjs} +1 -1
- package/dist/{secrets-store-DoH9JnqC.mjs → secrets-store-COlaXNll.mjs} +1 -1
- package/dist/{security-insights-oqJuf8MY.mjs → security-insights-DF6ffEWO.mjs} +1 -1
- package/dist/{security-txt-BY07I5Bx.mjs → security-txt-D1nLEOCZ.mjs} +1 -1
- package/dist/{shared-D0PR8DbO.mjs → shared-_YyZp2AY.mjs} +1 -1
- package/dist/{smart-shield-g5UHGdCQ.mjs → smart-shield-CKSVq1sT.mjs} +1 -1
- package/dist/{snippets-Bgn7ZKJo.mjs → snippets-D5zLR7Nj.mjs} +1 -1
- package/dist/{spawn-BSnyZB0W.mjs → spawn-DiZTRMi2.mjs} +1 -1
- package/dist/{spectrum-BmLwQKib.mjs → spectrum-L56rh44p.mjs} +1 -1
- package/dist/{speed-CesLeufR.mjs → speed-CfufTtTk.mjs} +1 -1
- package/dist/{src-wDWeXeJp.mjs → src-BIRFlqDR.mjs} +5 -5
- package/dist/{ssl-DrYK9KX-.mjs → ssl-BrDo1vL9.mjs} +1 -1
- package/dist/{state-BDkCKOju.mjs → state-BaGRaYow.mjs} +1 -1
- package/dist/state-CpXhcMdX.mjs +2 -0
- package/dist/{stream-D0sXaEj7.mjs → stream-1BpcnrhV.mjs} +1 -1
- package/dist/{submit-CpjZiCN9.mjs → submit-C-ICyQA7.mjs} +1 -1
- package/dist/{tags-B17h1YBS.mjs → tags-BA2CG06z.mjs} +1 -1
- package/dist/telemetry-Bn5lYtiy.mjs +2 -0
- package/dist/{telemetry-D84K-X2j.mjs → telemetry-D14VqvDU.mjs} +1 -1
- package/dist/{tenant-S7-Cb54D.mjs → tenant-DZ4dgD2t.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-CZ8qgnt_.mjs → tenant-custom-nameservers-YjOHEMtf.mjs} +1 -1
- package/dist/{tunnels-DzSFv0qt.mjs → tunnels-l8YE_pie.mjs} +1 -1
- package/dist/{turnstile-C5tc9QGH.mjs → turnstile-BQrUOlSx.mjs} +1 -1
- package/dist/{update-check-CpGj0g5l.mjs → update-check-BPVQSvnH.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/update-check-zLVAcGWy.mjs +2 -0
- package/dist/{url-info-lY7WbQzK.mjs → url-info-D2l_0t3y.mjs} +1 -1
- package/dist/{url-normalization-BHVZ4ULQ.mjs → url-normalization-K8zAzorz.mjs} +1 -1
- package/dist/{url-scanner-DRnPOsj9.mjs → url-scanner-Dv7lSDeH.mjs} +1 -1
- package/dist/{user-DyT-q94n.mjs → user-DleZBZED.mjs} +1 -1
- package/dist/{values-BE3pRW6M.mjs → values-BnpLZYLh.mjs} +1 -1
- package/dist/{vectorize-CGl0BOXJ.mjs → vectorize-DyHeuA7K.mjs} +1 -1
- package/dist/version-CH8K5y4G.mjs +2 -0
- package/dist/{waiting-rooms-DbhiDyp_.mjs → waiting-rooms-CKp_ty0T.mjs} +1 -1
- package/dist/{web-assets-noQwig7x.mjs → web-assets-XrKWHvN4.mjs} +1 -1
- package/dist/{web3-Dts8-Peq.mjs → web3-Bntbgx_4.mjs} +1 -1
- package/dist/{workers-DtZRm0HJ.mjs → workers-DM3cs8PN.mjs} +1 -1
- package/dist/{workers-builds-ean9unEX.mjs → workers-builds-02i1psK2.mjs} +1 -1
- package/dist/{workers-for-platforms-jdC-4D-X.mjs → workers-for-platforms-B5RlZXZK.mjs} +1 -1
- package/dist/{workers-vpc-D2PZCegg.mjs → workers-vpc-kjiAIRuT.mjs} +1 -1
- package/dist/{workflows-C9QBOzZz.mjs → workflows-BkuFC47X.mjs} +1 -1
- package/dist/{zaraz-DVLkn3fF.mjs → zaraz-BPOqw7RU.mjs} +1 -1
- package/dist/{zero-trust-DfwISsW4.mjs → zero-trust-B4sjDfre.mjs} +1 -1
- package/dist/{zone-DQV-hfHN.mjs → zone-DkaGQuB6.mjs} +1 -1
- package/dist/{zones-By8IT3CV.mjs → zones-DIlihhZN.mjs} +1 -1
- package/package.json +2 -2
- package/dist/build-VB6btUkb.mjs +0 -2
- package/dist/local-j2uOZ8Uq.mjs +0 -2
- package/dist/run-BJmOnVJI.mjs +0 -2
- package/dist/state-50FyMVTz.mjs +0 -2
- package/dist/telemetry-BqtdHwmi.mjs +0 -2
- package/dist/update-check-7q-e6UWW.mjs +0 -2
- package/dist/version-DOZrLErk.mjs +0 -2
|
@@ -15,4 +15,4 @@ Alternatively, try running \`${e.commands.login}\` to re-authenticate.`,{telemet
|
|
|
15
15
|
Please set the appropriate \`account_id\` in your ${e.getConfigFileLabel()} file or assign it to the \`CLOUDFLARE_ACCOUNT_ID\` environment variable.
|
|
16
16
|
Available accounts are (\`<name>\`: \`<account_id>\`):
|
|
17
17
|
${o.map(e=>` \`${r?`(redacted)`:e.name}\`: \`${e.id}\``).join(`
|
|
18
|
-
`)}`,{telemetryMessage:`user account selection unavailable`})}throw r}}_(H,`getOrSelectAccountId`);async function U(e){if(b.isTemporaryAllowed()){if(d(e)!==`public`)throw new t(`Temporary accounts aren't available when the compliance region is not set to public.`,{telemetryMessage:`user temporary account unavailable in compliance region`});let n=b.getActiveTemporaryAccount();if(n)return n.account.id;if(T())throw new t("You're already authenticated with Cloudflare, so `--temporary` can't be used. Temporary preview accounts are only for unauthenticated use. Either remove `--temporary` to use your existing account, or log out (and unset CLOUDFLARE_API_TOKEN) first.",{telemetryMessage:`user temporary account already authenticated`});let{account:r,cached:i}=await b.activateTemporaryAccount();return Te(a,r,i),r.account.id}let n=await A(e);if(!n.loggedIn)throw n.reason===`no-credentials-non-interactive`||n.reason===`token-expired-non-interactive`?new t(`In a non-interactive environment, it's necessary to set a CLOUDFLARE_API_TOKEN environment variable for ${f} to work. Please go to https://developers.cloudflare.com/fundamentals/api/get-started/create-token/ for instructions on how to create an api token, and assign its value to CLOUDFLARE_API_TOKEN.`,{telemetryMessage:`user auth missing api token non interactive`}):n.reason===`token-refresh-unreachable`?new t(p[n.reason],{telemetryMessage:`user auth token refresh unreachable`}):new t(`Did not login, quitting...`,{telemetryMessage:`user login cancelled`});let r=await H(e);if(!r)throw new t(`No account id found, quitting...`,{telemetryMessage:`user auth missing account id`});return r}return _(U,`requireAuth`),{setProfile:x,getActiveProfile:S,getCredentialStore:C,setTemporaryAllowed:w,getAPIToken:T,requireApiToken:E,login:O,logout:k,loginOrRefreshIfRequired:A,getOAuthTokenFromLocalState:j,getScopes:N,readAuthCredentials:P,writeAuthCredentials:F,getActiveAccountId:V,getOrSelectAccountId:H,getAccountFromCache:R,fetchAllAccounts:B,requireAuth:U}}_(Ee,`createCloudflareAuth`);var De=`profiles/directory-bindings.json`,Oe=`.enc`;function Y(e){let{logger:t,getConfigPath:n,keyringServiceName:r,format:i}=e,a=`.${i}`;function o(e){return p(n(),e,i)}_(o,`plaintextPath`);function s(e){return y(n(),e)}_(s,`encryptedPath`);function c(){return j.dirname(o(`default`))}_(c,`getProfileConfigDirectory`);let l={exists(e){return T(o(e))||T(s(e))},list(){let e=c();if(!T(e))return[];let t=new Set;for(let n of O(e))n.endsWith(a)?t.add(n.slice(0,-a.length)):n.endsWith(Oe)&&t.add(n.slice(0,-Oe.length));return[...t]},delete(e){let{backendAvailable:a,encryptedFileExisted:s}=h({serviceName:r,configPath:n(),profile:e,format:i});q(i,()=>o(e)).clear(),s&&!a&&t.warn(`Removed the credential files for profile "${e}", but the keyring backend was not reachable on this host so its keyring entry could not be cleared. Clear it manually if it persists.`)}};function u(){return j.join(n(),De)}return _(u,`getDirectoryBindingsPath`),x({configs:l,bindings:{read(){try{let e=D(u(),`utf-8`);return JSON.parse(e)}catch{return{}}},write(e){let t=u();E(j.dirname(t),{recursive:!0}),A(t,JSON.stringify(e,null,` `),`utf-8`)}}})}_(Y,`createCloudflareProfileStore`);function ke(e){let{loginCommand:t,createProfileCommand:n,keyringServiceName:r,getConfigPath:i,format:a,preferences:o}=e,{readUserPreferences:s,updateUserPreferences:c}=o;function l(e){return e??`default`}_(l,`describeProfile`);function u(e){let t=[];T(y(i()))&&t.push(void 0);let n=Y({logger:e,getConfigPath:i,keyringServiceName:r,format:a});for(let e of n.configs.list()){try{b(e)}catch{continue}T(y(i(),e))&&t.push(e)}return t}_(u,`listEncryptedProfiles`);function d(e){let o=u(e);if(o.length===0)return;let s=[],c=[];for(let t of o)try{let{backendAvailable:e}=h({serviceName:r,configPath:i(),profile:t,format:a});s.push(l(t)),e||c.push(l(t))}catch(n){e.warn(`Failed to remove encrypted credentials for profile "${l(t)}": ${n instanceof Error?n.message:String(n)}. You may need to clear them manually.`)}if(s.length>0){let r=n?`Re-authenticate with \`${t}\` (default profile) or \`${n} <name>\` (named profiles).`:`Re-authenticate with \`${t}\`.`;e.log(`Removed encrypted credentials for ${s.map(e=>`"${e}"`).join(`, `)}. ${r}`)}c.length>0&&e.warn(`The keyring backend was not reachable on this host, so the keyring entry for ${c.map(e=>`"${e}"`).join(`, `)} could not be cleared. Clear it manually if it persists.`)}_(d,`scrubAllEncryptedProfiles`);function f(e,t){let{logger:n,getCredentialStore:r}=t,i=s().keyring_enabled===!0,a=m();if(a!==void 0&&a!==e&&n.warn(`CLOUDFLARE_AUTH_USE_KEYRING=${a} overrides ${e?`enabling`:`disabling`} keyring storage for this command.`),!e&&a!==!0&&d(n),c({keyring_enabled:e}),e&&a!==!1)try{r().kind!==`encrypted-file`&&(c({keyring_enabled:i}),n.warn(`Keyring storage isn't available on this host (see warning above), so it was not enabled. Try again once the keyring backend is reachable.`))}catch(e){throw c({keyring_enabled:i}),e}return{enabled:s().keyring_enabled===!0}}return _(f,`setKeyringPreference`),{setKeyringPreference:f}}_(ke,`createKeyringPreference`);function Ae(e){let{getConfigPath:t,format:n}=e;function r(e){return p(t(),e,n)}_(r,`getAuthConfigFilePath`);function i(e){return y(t(),e)}_(i,`getEncryptedAuthConfigFilePath`);function a(e){return q(n,()=>r(e))}_(a,`defaultAuthConfigStorage`);function o(e,t){a(t).write(e)}_(o,`writeAuthConfigFile`);function s(e){return a(e).read()}return _(s,`readAuthConfigFile`),{getAuthConfigFilePath:r,getEncryptedAuthConfigFilePath:i,defaultAuthConfigStorage:a,readAuthConfigFile:s,writeAuthConfigFile:o}}_(Ae,`createAuthConfigFileHelpers`),C(import.meta.url||(typeof __filename==`string`?__filename:`/`));var X=`cloudflare`,je=`cf`,Me=`cf`,Ne=`http://localhost:8877/oauth/callback`,Pe={granted:{url:`https://welcome.developers.workers.dev/cf-oauth-consent-granted`},denied:{url:`https://welcome.developers.workers.dev/cf-oauth-consent-denied`,error:"Error: Consent denied. You must grant consent to cf in order to login.\nIf you don't want to do this consider passing an API token via the `CLOUDFLARE_API_TOKEN` environment variable"}},Fe=f({variableName:`CLOUDFLARE_CLIENT_ID`,defaultValue:_(()=>`cbca97e7-c331-4cdd-8fd8-e25a451b98bf`,`defaultValue`)});function Z(){return e({appName:`cloudflare`,leadingDot:!1,useLegacyHomeDir:!1})}_(Z,`getCfConfigPath`);var Ie=`access:read,access:write,account:read,account_api_tokens:create,agw:read,agw:run,agw:write,ai:read,ai:write,ai-search:read,ai-search:run,ai-search:write,aiaudit:read,aiaudit:write,aig:read,aig:write,auditlogs:read,billing:read,billing:write,browser:read,browser:write,cfone:read,cfone:write,cloudchamber:write,connectivity:admin,connectivity:bind,connectivity:read,constellation:write,containers:write,d1:write,dex:read,dex:write,dns_analytics:read,dns_records:edit,dns_records:read,dns_settings:read,email_routing:read,email_routing:write,email_sending:read,email_sending:write,firstpartytags:write,images:read,images:write,lb:edit,lb:read,logpush:read,logpush:write,mcp_portals:read,mcp_portals:write,notebook-examples:read,notebook-managed:read,notification:read,notification:write,oauth_account_ssl_and_certificates_write,offline,openid,pages:read,pages:write,pipelines:read,pipelines:setup,pipelines:write,query_cache:write,queues:write,r2_catalog:write,radar:read,rag:read,rag:write,registrar:read,registrar:write,secrets_store:read,secrets_store:write,sso-connector:read,sso-connector:write,ssl_certs:write,teams:pii,teams:read,teams:secure_location,teams:write,url_scanner:read,url_scanner:write,user:read,vectorize:write,workers:read,workers:write,workers_builds:read,workers_builds:write,workers_deployments:read,workers_kv:write,workers_observability:read,workers_observability:write,workers_observability_telemetry:write,workers_routes:write,workers_scripts:write,workers_tail:read,zone:read,account-analytics.read,account-ssl-and-certificates.write,ssl-and-certificates.read,ssl-and-certificates.write,registrar-domains.read,registrar-domains.admin,logs.read,logs.write,websearch.run,snippets.read,snippets.write,access-acct.read,access-acct.revoke,access-acct.write,access-app.read,access-app.revoke,access-app.write,access-audit-log.read,access-certificate.read,access-certificate.write,access-custom-page.read,access-custom-page.write,access-device-posture.read,access-device-posture.write,access-group.read,access-group.write,access-idp.read,access-idp.write,access-key.read,access-key.write,access-org.read,access-org.revoke,access-org.write,access-policy-test.read,access-policy-test.write,access-policy.read,access-policy.write,access-population.read,access-population.write,access-saml-certificate.read,access-saml-certificate.write,access-scim-log.read,access-seats.write,access-service-token.read,access-service-token.write,access-ssh-auditing.read,access-ssh-auditing.write,access-tag.read,access-tag.write,access-users.read,access-users.write,access.read,access.revoke,access.write,account-api-gateway.read,account-api-gateway.write,account-custom-asset.read,account-custom-asset.write,account-custom-error-rules.read,account-custom-error-rules.write,account-custom-pages.read,account-custom-pages.write,account-disable-esc.read,account-disable-esc.write,account-dns-settings.read,account-dns-settings.write,account-firewall-access-rules.read,account-firewall-access-rules.write,account-logs.read,account-logs.write,account-rule-lists.read,account-rule-lists.write,account-rulesets.read,account-rulesets.write,account-security-center-insights.read,account-security-center-insights.write,account-settings.read,account-settings.write,account-ssl-and-certificates.read,account-waf.read,account-waf.write,account-waiting-rooms.read,address-maps.read,address-maps.write,agent-memory.write,agw.read,agw.run,agw.write,ai-search.index,ai-search.metadata_read,ai-search.read,ai-search.run,ai-search.write,ai.read,ai.write,aiaudit.read,aiaudit.write,aig.metadata_read,aig.read,aig.run,aig.write,analytics.read,api-gateway.read,api-gateway.write,apps.write,argotunnel.read,argotunnel.write,artifacts.read,artifacts.write,bot-management-feedback.read,bot-management-feedback.write,bot-management.read,bot-management.write,browser-rendering.read,browser-rendering.write,cache-settings.read,cache-settings.write,cache.purge,calls.read,calls.write,casb.read,casb.write,cf-agents.read,cf-agents.write,challenge-widgets.read,challenge-widgets.write,chinanetwork-steering.read,chinanetwork-steering.write,cloud-connector.read,cloud-connector.write,cloud-email-security.read,cloud-email-security.write,cloudchamber.read,cloudchamber.write,cloudforce-one.read,cloudforce-one.write,config-settings.read,config-settings.write,connectivity-directory.admin,connectivity-directory.bind,connectivity-directory.read,constellation.read,constellation.write,containers.read,containers.write,custom-errors.read,custom-errors.write,custom-pages.read,custom-pages.write,d1.metadata_read,d1.read,d1.write,ddos-botnet-feed.read,ddos-botnet-feed.write,ddos-protection.read,ddos-protection.write,dls.read,dls.write,dns-firewall.read,dns-firewall.write,dns-view.read,dns-view.write,dns.read,dns.write,domain-page-shield.read,domain-page.shield,dynamic-redirect.read,dynamic-redirect.write,email-routing-account-rule.read,email-routing-address.read,email-routing-address.write,email-routing-rule.read,email-routing-rule.write,email-routing-suppression.read,email-routing-suppression.write,email-security-dmarcreports.read,email-security-dmarcreports.write,email-sending.read,email-sending.write,fbm.admin,fbm.read,fbm.write,field-extractor.read,field-extractor.write,firewall-for-ai.read,firewall-for-ai.write,firewall-services.read,firewall-services.write,flagship.evaluate,flagship.read,flagship.write,fraud-detection-pii.read,fraud-detection.read,fraud-detection.write,fraud-events.write,fraud-feedback.read,fraud-feedback.write,healthcheck.read,healthcheck.write,http-applications.read,http-applications.write,http-ddos-managed-ruleset.read,http-ddos-managed-ruleset.write,images.metadata_read,images.read,images.write,integration.write,intel.read,intel.write,iot.read,iot.write,ip-prefix-bgp-on-demand.read,ip-prefix-bgp-on-demand.write,ip-prefix.read,ip-prefix.write,l4-ddos-managed-ruleset.read,l4-ddos-managed-ruleset.write,load-balancers-account.read,load-balancers-account.write,load-balancers.read,load-balancers.write,load-balancing-monitors-and-pools.read,load-balancing-monitors-and-pools.write,magic-firewall.read,magic-firewall.write,magic-transit.read,magic-transit.write,magic-wan.read,magic-wan.write,managed-headers.read,managed-headers.write,mass-url-redirects.read,mass-url-redirects.write,mcp-portals.read,mcp-portals.write,memberships.read,memberships.write,messaging.edit,messaging.metadata_read,messaging.read,moq.read,moq.write,notifications.read,notifications.write,origin.read,origin.write,page-rules.read,page-rules.write,page-shield.read,page.read,page.shield,page.write,pages.metadata_read,payments-gateway.read,payments-gateway.write,pcaps-api.read,pcaps-api.write,pipelines.read,pipelines.send,pipelines.write,precursor.read,precursor.write,pubsub.read,pubsub.write,query-cache.read,query-cache.write,queues.metadata_read,queues.read,queues.write,r2-catalog-sql.read,r2-catalog.read,r2-catalog.write,radar.read,rag.read,rag.run,rag.write,realtime.admin,realtime.read,realtime.write,registrar-sandbox-domains.admin,registrar-sandbox-domains.read,reports-application-security-report.read,request-tracer.read,resource-library.read,resource-library.write,resource-sharing.read,response-compression.read,response-compression.write,sanitize.read,sanitize.write,secrets-store.read,secrets-store.write,select-configuration.read,select-configuration.write,stream.metadata_read,stream.read,stream.write,tag.read,tag.write,teams-cds-compute-account.read,teams-cds-compute-account.write,teams-connector-cloudflared.monitoring,teams-connector-cloudflared.read,teams-connector-cloudflared.write,teams-connector-warp.read,teams-connector-warp.write,teams-connectors.read,teams-connectors.write,teams-dex.read,teams-dex.write,teams-networks.read,teams-networks.write,teams-pii.read,teams-resilience.read,teams-resilience.write,teams-secure.location,teams.read,teams.report,teams.write,transform-rules.read,transform-rules.write,trust-and-safety.read,trust-and-safety.write,url-scanner.read,url-scanner.write,user-details.read,user-details.write,vectorize.read,vectorize.write,waiting-rooms.read,waiting-rooms.write,web3-hostnames.read,web3-hostnames.write,websearch.metadata_read,websearch.read,websearch.write,workers-ci.read,workers-ci.write,workers-kv-storage.metadata_read,workers-kv-storage.read,workers-kv-storage.write,workers-observability-telemetry.write,workers-observability.read,workers-observability.write,workers-r2-bucket-item.read,workers-r2-bucket-item.write,workers-r2.metadata_read,workers-r2.read,workers-r2.write,workers-routes.read,workers-routes.write,workers-scripts.bind,workers-scripts.read,workers-scripts.write,workers-tail.read,workers_ai.metadata_read,zaraz.edit,zaraz.read,zaraz.write,zone-access.read,zone-access.revoke,zone-access.write,zone-custom-asset.read,zone-custom-asset.write,zone-disable-esc.read,zone-disable-esc.write,zone-dns-settings.read,zone-dns-settings.write,zone-security-center-insights.read,zone-security-center-insights.write,zone-settings.read,zone-settings.write,zone-transform-rules.read,zone-transform-rules.write,zone-versioning.read,zone-versioning.write,zone-waf.read,zone-waf.write,zone.read,zone.write`.split(`,`),Le=new Set([`billing:read`,`billing:write`,`email_routing:read`,`email_sending:read`,`notebook-managed:read`,`oauth_account_ssl_and_certificates_write`]),Re=Ie.filter(e=>!Le.has(e)),Q=[...Re];function ze(e){Q=e}_(ze,`setLoginScopeKeys`);var Be=new Set(Re);function Ve(e){return e.every(e=>Be.has(e))}_(Ve,`validateScopeKeys`);function He(){let e=a();return e===`production`?`cloudflare-temporary-account.json`:`cloudflare-temporary-account.${e}.json`}_(He,`getTemporaryAccountConfigFile`);function Ue(){return j.join(Z(),He())}_(Ue,`getCfTemporaryAccountConfigPath`);function We(e){return q(`json`,e)}_(We,`createJsonFileStorage`);var{getAuthConfigFilePath:Ge,getEncryptedAuthConfigFilePath:Ke,defaultAuthConfigStorage:qe,readAuthConfigFile:Je,writeAuthConfigFile:Ye}=Ae({getConfigPath:Z,format:`json`}),$={cliName:je,displayName:Me,commands:{login:`cf auth login`,whoami:`cf auth whoami`,createProfile:`cf auth create`,deviceLogin:`cf auth login`},keyringServiceName:X,clientId:Fe,consent:Pe,redirectUri:Ne,useDeviceFlowByDefault:!0,allowGlobalAuthKey:!1,getConfigPath:Z,getTemporaryAccountConfigPath:Ue,fileFormat:`json`,accountCachePrefix:`cloudflare-account`,cacheNamespace:`cloudflare`,getConfigFileLabel:_(()=>`cf config`,`getConfigFileLabel`),getDefaultScopeKeys:_(()=>Q,`getDefaultScopeKeys`)},Xe=M(Z),{readUserPreferences:Ze,updateUserPreferences:Qe}=Xe;function $e(e){return Ee($,e)}_($e,`createCfAuth`);function et(e){return Y({logger:e.logger,getConfigPath:Z,keyringServiceName:X,format:`json`})}_(et,`createCfProfileStore`);var tt=ke({loginCommand:$.commands.login,createProfileCommand:$.commands.createProfile,keyringServiceName:X,getConfigPath:Z,format:`json`,preferences:Xe});function nt(e,t){return tt.setKeyringPreference(e,t)}_(nt,`setKeyringPreference`);export{Ve as a,Z as i,et as n,We as r,$e as t};
|
|
18
|
+
`)}`,{telemetryMessage:`user account selection unavailable`})}throw r}}_(H,`getOrSelectAccountId`);async function U(e){if(b.isTemporaryAllowed()){if(d(e)!==`public`)throw new t(`Temporary accounts aren't available when the compliance region is not set to public.`,{telemetryMessage:`user temporary account unavailable in compliance region`});let n=b.getActiveTemporaryAccount();if(n)return n.account.id;if(T())throw new t("You're already authenticated with Cloudflare, so `--temporary` can't be used. Temporary preview accounts are only for unauthenticated use. Either remove `--temporary` to use your existing account, or log out (and unset CLOUDFLARE_API_TOKEN) first.",{telemetryMessage:`user temporary account already authenticated`});let{account:r,cached:i}=await b.activateTemporaryAccount();return Te(a,r,i),r.account.id}let n=await A(e);if(!n.loggedIn)throw n.reason===`no-credentials-non-interactive`||n.reason===`token-expired-non-interactive`?new t(`In a non-interactive environment, it's necessary to set a CLOUDFLARE_API_TOKEN environment variable for ${f} to work. Please go to https://developers.cloudflare.com/fundamentals/api/get-started/create-token/ for instructions on how to create an api token, and assign its value to CLOUDFLARE_API_TOKEN.`,{telemetryMessage:`user auth missing api token non interactive`}):n.reason===`token-refresh-unreachable`?new t(p[n.reason],{telemetryMessage:`user auth token refresh unreachable`}):new t(`Did not login, quitting...`,{telemetryMessage:`user login cancelled`});let r=await H(e);if(!r)throw new t(`No account id found, quitting...`,{telemetryMessage:`user auth missing account id`});return r}return _(U,`requireAuth`),{setProfile:x,getActiveProfile:S,getCredentialStore:C,setTemporaryAllowed:w,getAPIToken:T,requireApiToken:E,login:O,logout:k,loginOrRefreshIfRequired:A,getOAuthTokenFromLocalState:j,getScopes:N,readAuthCredentials:P,writeAuthCredentials:F,getActiveAccountId:V,getOrSelectAccountId:H,getAccountFromCache:R,fetchAllAccounts:B,requireAuth:U}}_(Ee,`createCloudflareAuth`);var De=`profiles/directory-bindings.json`,Oe=`.enc`;function Y(e){let{logger:t,getConfigPath:n,keyringServiceName:r,format:i}=e,a=`.${i}`;function o(e){return p(n(),e,i)}_(o,`plaintextPath`);function s(e){return y(n(),e)}_(s,`encryptedPath`);function c(){return j.dirname(o(`default`))}_(c,`getProfileConfigDirectory`);let l={exists(e){return T(o(e))||T(s(e))},list(){let e=c();if(!T(e))return[];let t=new Set;for(let n of O(e))n.endsWith(a)?t.add(n.slice(0,-a.length)):n.endsWith(Oe)&&t.add(n.slice(0,-Oe.length));return[...t]},delete(e){let{backendAvailable:a,encryptedFileExisted:s}=h({serviceName:r,configPath:n(),profile:e,format:i});q(i,()=>o(e)).clear(),s&&!a&&t.warn(`Removed the credential files for profile "${e}", but the keyring backend was not reachable on this host so its keyring entry could not be cleared. Clear it manually if it persists.`)}};function u(){return j.join(n(),De)}return _(u,`getDirectoryBindingsPath`),x({configs:l,bindings:{read(){try{let e=D(u(),`utf-8`);return JSON.parse(e)}catch{return{}}},write(e){let t=u();E(j.dirname(t),{recursive:!0}),A(t,JSON.stringify(e,null,` `),`utf-8`)}}})}_(Y,`createCloudflareProfileStore`);function ke(e){let{loginCommand:t,createProfileCommand:n,keyringServiceName:r,getConfigPath:i,format:a,preferences:o}=e,{readUserPreferences:s,updateUserPreferences:c}=o;function l(e){return e??`default`}_(l,`describeProfile`);function u(e){let t=[];T(y(i()))&&t.push(void 0);let n=Y({logger:e,getConfigPath:i,keyringServiceName:r,format:a});for(let e of n.configs.list()){try{b(e)}catch{continue}T(y(i(),e))&&t.push(e)}return t}_(u,`listEncryptedProfiles`);function d(e){let o=u(e);if(o.length===0)return;let s=[],c=[];for(let t of o)try{let{backendAvailable:e}=h({serviceName:r,configPath:i(),profile:t,format:a});s.push(l(t)),e||c.push(l(t))}catch(n){e.warn(`Failed to remove encrypted credentials for profile "${l(t)}": ${n instanceof Error?n.message:String(n)}. You may need to clear them manually.`)}if(s.length>0){let r=n?`Re-authenticate with \`${t}\` (default profile) or \`${n} <name>\` (named profiles).`:`Re-authenticate with \`${t}\`.`;e.log(`Removed encrypted credentials for ${s.map(e=>`"${e}"`).join(`, `)}. ${r}`)}c.length>0&&e.warn(`The keyring backend was not reachable on this host, so the keyring entry for ${c.map(e=>`"${e}"`).join(`, `)} could not be cleared. Clear it manually if it persists.`)}_(d,`scrubAllEncryptedProfiles`);function f(e,t){let{logger:n,getCredentialStore:r}=t,i=s().keyring_enabled===!0,a=m();if(a!==void 0&&a!==e&&n.warn(`CLOUDFLARE_AUTH_USE_KEYRING=${a} overrides ${e?`enabling`:`disabling`} keyring storage for this command.`),!e&&a!==!0&&d(n),c({keyring_enabled:e}),e&&a!==!1)try{r().kind!==`encrypted-file`&&(c({keyring_enabled:i}),n.warn(`Keyring storage isn't available on this host (see warning above), so it was not enabled. Try again once the keyring backend is reachable.`))}catch(e){throw c({keyring_enabled:i}),e}return{enabled:s().keyring_enabled===!0}}return _(f,`setKeyringPreference`),{setKeyringPreference:f}}_(ke,`createKeyringPreference`);function Ae(e){let{getConfigPath:t,format:n}=e;function r(e){return p(t(),e,n)}_(r,`getAuthConfigFilePath`);function i(e){return y(t(),e)}_(i,`getEncryptedAuthConfigFilePath`);function a(e){return q(n,()=>r(e))}_(a,`defaultAuthConfigStorage`);function o(e,t){a(t).write(e)}_(o,`writeAuthConfigFile`);function s(e){return a(e).read()}return _(s,`readAuthConfigFile`),{getAuthConfigFilePath:r,getEncryptedAuthConfigFilePath:i,defaultAuthConfigStorage:a,readAuthConfigFile:s,writeAuthConfigFile:o}}_(Ae,`createAuthConfigFileHelpers`),C(import.meta.url||(typeof __filename==`string`?__filename:`/`));var X=`cloudflare`,je=`cf`,Me=`cf`,Ne=`http://localhost:8877/oauth/callback`,Pe={granted:{url:`https://welcome.developers.workers.dev/cf-oauth-consent-granted`},denied:{url:`https://welcome.developers.workers.dev/cf-oauth-consent-denied`,error:"Error: Consent denied. You must grant consent to cf in order to login.\nIf you don't want to do this consider passing an API token via the `CLOUDFLARE_API_TOKEN` environment variable"}},Fe=f({variableName:`CLOUDFLARE_CLIENT_ID`,defaultValue:_(()=>`cbca97e7-c331-4cdd-8fd8-e25a451b98bf`,`defaultValue`)});function Z(){return e({appName:`cloudflare`,leadingDot:!1,useLegacyHomeDir:!1})}_(Z,`getCfConfigPath`);var Ie=`access:read,access:write,account:read,account_api_tokens:create,agw:read,agw:run,agw:write,ai:read,ai:write,ai-search:read,ai-search:run,ai-search:write,aiaudit:read,aiaudit:write,aig:read,aig:write,auditlogs:read,billing:read,billing:write,browser:read,browser:write,cfone:read,cfone:write,cloudchamber:write,connectivity:admin,connectivity:bind,connectivity:read,constellation:write,containers:write,d1:write,dex:read,dex:write,dns_analytics:read,dns_records:edit,dns_records:read,dns_settings:read,email_routing:read,email_routing:write,email_sending:read,email_sending:write,firstpartytags:write,images:read,images:write,lb:edit,lb:read,logpush:read,logpush:write,mcp_portals:read,mcp_portals:write,notebook-examples:read,notebook-managed:read,notification:read,notification:write,oauth_account_ssl_and_certificates_write,offline,openid,pages:read,pages:write,pipelines:read,pipelines:setup,pipelines:write,query_cache:write,queues:write,r2_catalog:write,radar:read,rag:read,rag:write,registrar:read,registrar:write,secrets_store:read,secrets_store:write,sso-connector:read,sso-connector:write,ssl_certs:write,teams:pii,teams:read,teams:secure_location,teams:write,url_scanner:read,url_scanner:write,user:read,vectorize:write,workers:read,workers:write,workers_builds:read,workers_builds:write,workers_deployments:read,workers_kv:write,workers_observability:read,workers_observability:write,workers_observability_telemetry:write,workers_routes:write,workers_scripts:write,workers_tail:read,zone:read,account-analytics.read,account-ssl-and-certificates.write,ssl-and-certificates.read,ssl-and-certificates.write,registrar-domains.read,registrar-domains.admin,logs.read,logs.write,websearch.run,snippets.read,snippets.write,access-acct.read,access-acct.revoke,access-acct.write,access-app.read,access-app.revoke,access-app.write,access-audit-log.read,access-certificate.read,access-certificate.write,access-custom-page.read,access-custom-page.write,access-device-posture.read,access-device-posture.write,access-group.read,access-group.write,access-idp.read,access-idp.write,access-key.read,access-key.write,access-org.read,access-org.revoke,access-org.write,access-policy-test.read,access-policy-test.write,access-policy.read,access-policy.write,access-population.read,access-population.write,access-saml-certificate.read,access-saml-certificate.write,access-scim-log.read,access-seats.write,access-service-token.read,access-service-token.write,access-ssh-auditing.read,access-ssh-auditing.write,access-tag.read,access-tag.write,access-users.read,access-users.write,access.read,access.revoke,access.write,account-api-gateway.read,account-api-gateway.write,account-custom-asset.read,account-custom-asset.write,account-custom-error-rules.read,account-custom-error-rules.write,account-custom-pages.read,account-custom-pages.write,account-disable-esc.read,account-disable-esc.write,account-dns-settings.read,account-dns-settings.write,account-firewall-access-rules.read,account-firewall-access-rules.write,account-logs.read,account-logs.write,account-rule-lists.read,account-rule-lists.write,account-rulesets.read,account-rulesets.write,account-security-center-insights.read,account-security-center-insights.write,account-settings.read,account-settings.write,account-ssl-and-certificates.read,account-waf.read,account-waf.write,account-waiting-rooms.read,address-maps.read,address-maps.write,agent-memory.write,agw.read,agw.run,agw.write,ai-search.index,ai-search.metadata_read,ai-search.read,ai-search.run,ai-search.write,ai.read,ai.write,aiaudit.read,aiaudit.write,aig.metadata_read,aig.read,aig.run,aig.write,analytics.read,api-gateway.read,api-gateway.write,apps.write,argotunnel.read,argotunnel.write,artifacts.read,artifacts.write,bot-management-feedback.read,bot-management-feedback.write,bot-management.read,bot-management.write,browser-rendering.read,browser-rendering.write,cache-settings.read,cache-settings.write,cache.purge,calls.read,calls.write,casb.read,casb.write,cf-agents.read,cf-agents.write,challenge-widgets.read,challenge-widgets.write,chinanetwork-steering.read,chinanetwork-steering.write,cloud-connector.read,cloud-connector.write,cloud-email-security.read,cloud-email-security.write,cloudchamber.read,cloudchamber.write,cloudforce-one.read,cloudforce-one.write,config-settings.read,config-settings.write,connectivity-directory.admin,connectivity-directory.bind,connectivity-directory.read,constellation.read,constellation.write,containers.read,containers.write,custom-errors.read,custom-errors.write,custom-pages.read,custom-pages.write,d1.metadata_read,d1.read,d1.write,ddos-botnet-feed.read,ddos-botnet-feed.write,ddos-protection.read,ddos-protection.write,dls.read,dls.write,dns-firewall.read,dns-firewall.write,dns-view.read,dns-view.write,dns.read,dns.write,domain-page-shield.read,domain-page.shield,dynamic-redirect.read,dynamic-redirect.write,email-routing-account-rule.read,email-routing-address.read,email-routing-address.write,email-routing-rule.read,email-routing-rule.write,email-routing-suppression.read,email-routing-suppression.write,email-security-dmarcreports.read,email-security-dmarcreports.write,email-sending.read,email-sending.write,fbm.admin,fbm.read,fbm.write,field-extractor.read,field-extractor.write,firewall-for-ai.read,firewall-for-ai.write,firewall-services.read,firewall-services.write,flagship.evaluate,flagship.read,flagship.write,fraud-detection-pii.read,fraud-detection.read,fraud-detection.write,fraud-events.write,fraud-feedback.read,fraud-feedback.write,healthcheck.read,healthcheck.write,http-applications.read,http-applications.write,http-ddos-managed-ruleset.read,http-ddos-managed-ruleset.write,images.metadata_read,images.read,images.write,integration.write,intel.read,intel.write,iot.read,iot.write,ip-prefix-bgp-on-demand.read,ip-prefix-bgp-on-demand.write,ip-prefix.read,ip-prefix.write,k2.consume,k2.produce,k2.read,k2.write,l4-ddos-managed-ruleset.read,l4-ddos-managed-ruleset.write,load-balancers-account.read,load-balancers-account.write,load-balancers.read,load-balancers.write,load-balancing-monitors-and-pools.read,load-balancing-monitors-and-pools.write,magic-firewall.read,magic-firewall.write,magic-transit.read,magic-transit.write,magic-wan.read,magic-wan.write,managed-headers.read,managed-headers.write,mass-url-redirects.read,mass-url-redirects.write,mcp-portals.read,mcp-portals.write,memberships.read,memberships.write,messaging.edit,messaging.metadata_read,messaging.read,moq.read,moq.write,notifications.read,notifications.write,origin.read,origin.write,page-rules.read,page-rules.write,page-shield.read,page.read,page.shield,page.write,pages.metadata_read,payments-gateway.read,payments-gateway.write,pcaps-api.read,pcaps-api.write,pipelines.read,pipelines.send,pipelines.write,precursor.read,precursor.write,pubsub.read,pubsub.write,query-cache.read,query-cache.write,queues.metadata_read,queues.read,queues.write,r2-catalog-sql.read,r2-catalog.read,r2-catalog.write,radar.read,rag.read,rag.run,rag.write,realtime.admin,realtime.read,realtime.write,registrar-sandbox-domains.admin,registrar-sandbox-domains.read,reports-application-security-report.read,request-tracer.read,resource-library.read,resource-library.write,resource-sharing.read,response-compression.read,response-compression.write,sanitize.read,sanitize.write,secrets-store.read,secrets-store.write,select-configuration.read,select-configuration.write,stream.metadata_read,stream.read,stream.write,tag.read,tag.write,teams-cds-compute-account.read,teams-cds-compute-account.write,teams-connector-cloudflared.monitoring,teams-connector-cloudflared.read,teams-connector-cloudflared.write,teams-connector-warp.read,teams-connector-warp.write,teams-connectors.read,teams-connectors.write,teams-dex.read,teams-dex.write,teams-networks.read,teams-networks.write,teams-pii.read,teams-resilience.read,teams-resilience.write,teams-secure.location,teams.read,teams.report,teams.write,transform-rules.read,transform-rules.write,trust-and-safety.read,trust-and-safety.write,url-scanner.read,url-scanner.write,user-details.read,user-details.write,vectorize.read,vectorize.write,waiting-rooms.read,waiting-rooms.write,web3-hostnames.read,web3-hostnames.write,websearch.metadata_read,websearch.read,websearch.write,workers-ci.read,workers-ci.write,workers-kv-storage.metadata_read,workers-kv-storage.read,workers-kv-storage.write,workers-observability-telemetry.write,workers-observability.read,workers-observability.write,workers-r2-bucket-item.read,workers-r2-bucket-item.write,workers-r2.metadata_read,workers-r2.read,workers-r2.write,workers-routes.read,workers-routes.write,workers-scripts.bind,workers-scripts.read,workers-scripts.write,workers-tail.read,workers_ai.metadata_read,zaraz.edit,zaraz.read,zaraz.write,zone-access.read,zone-access.revoke,zone-access.write,zone-custom-asset.read,zone-custom-asset.write,zone-disable-esc.read,zone-disable-esc.write,zone-dns-settings.read,zone-dns-settings.write,zone-security-center-insights.read,zone-security-center-insights.write,zone-settings.read,zone-settings.write,zone-transform-rules.read,zone-transform-rules.write,zone-versioning.read,zone-versioning.write,zone-waf.read,zone-waf.write,zone.read,zone.write`.split(`,`),Le=new Set([`billing:read`,`billing:write`,`email_routing:read`,`email_sending:read`,`notebook-managed:read`,`oauth_account_ssl_and_certificates_write`]),Re=Ie.filter(e=>!Le.has(e)),Q=[...Re];function ze(e){Q=e}_(ze,`setLoginScopeKeys`);var Be=new Set(Re);function Ve(e){return e.every(e=>Be.has(e))}_(Ve,`validateScopeKeys`);function He(){let e=a();return e===`production`?`cloudflare-temporary-account.json`:`cloudflare-temporary-account.${e}.json`}_(He,`getTemporaryAccountConfigFile`);function Ue(){return j.join(Z(),He())}_(Ue,`getCfTemporaryAccountConfigPath`);function We(e){return q(`json`,e)}_(We,`createJsonFileStorage`);var{getAuthConfigFilePath:Ge,getEncryptedAuthConfigFilePath:Ke,defaultAuthConfigStorage:qe,readAuthConfigFile:Je,writeAuthConfigFile:Ye}=Ae({getConfigPath:Z,format:`json`}),$={cliName:je,displayName:Me,commands:{login:`cf auth login`,whoami:`cf auth whoami`,createProfile:`cf auth create`,deviceLogin:`cf auth login`},keyringServiceName:X,clientId:Fe,consent:Pe,redirectUri:Ne,useDeviceFlowByDefault:!0,allowGlobalAuthKey:!1,getConfigPath:Z,getTemporaryAccountConfigPath:Ue,fileFormat:`json`,accountCachePrefix:`cloudflare-account`,cacheNamespace:`cloudflare`,getConfigFileLabel:_(()=>`cf config`,`getConfigFileLabel`),getDefaultScopeKeys:_(()=>Q,`getDefaultScopeKeys`)},Xe=M(Z),{readUserPreferences:Ze,updateUserPreferences:Qe}=Xe;function $e(e){return Ee($,e)}_($e,`createCfAuth`);function et(e){return Y({logger:e.logger,getConfigPath:Z,keyringServiceName:X,format:`json`})}_(et,`createCfProfileStore`);var tt=ke({loginCommand:$.commands.login,createProfileCommand:$.commands.createProfile,keyringServiceName:X,getConfigPath:Z,format:`json`,preferences:Xe});function nt(e,t){return tt.setKeyringPreference(e,t)}_(nt,`setKeyringPreference`);export{Ve as a,Z as i,et as n,We as r,$e as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e,t}from"./metadata-C33s4rc-.mjs";import{r as n}from"./theme-BIWQFmZ0.mjs";import{t as r}from"./cli-exit-Dqoo6Jgb.mjs";import"./ui-BQxRjahW.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{a,f as o,m as s,t as c,u as l}from"./run-
|
|
2
|
+
import{n as e,t}from"./metadata-C33s4rc-.mjs";import{r as n}from"./theme-BIWQFmZ0.mjs";import{t as r}from"./cli-exit-Dqoo6Jgb.mjs";import"./ui-BQxRjahW.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{a,f as o,m as s,t as c,u as l}from"./run-Duj1fsxa.mjs";import u from"minisearch";function d({enabled:e,source:t}){let r=e?n.success(`Enabled`):n.error(`Disabled`),i=l(t);return`Status: ${r}${i?` (set by ${i})`:``}\n`}const f={command:`disable`,describe:`Disable cf telemetry collection`,handler:()=>{s(!1);let{enabled:e,source:t}=o();console.log(d({enabled:e,source:t})),console.log(e?`cf is collecting usage telemetry because ${l(t)}=true overrides this setting.\n`:`cf is no longer collecting usage telemetry.
|
|
3
3
|
`)}},p={command:`enable`,describe:`Enable cf telemetry collection`,handler:()=>{s(!0);let{enabled:e,source:t}=o();console.log(d({enabled:e,source:t})),console.log(e?`cf is now collecting anonymous usage telemetry. Thank you for helping make cf better.
|
|
4
4
|
`:`cf is not collecting usage telemetry because ${l(t)}${t===`env`||t===`wrangler-env`?`=false`:``} overrides this setting.\n`)}},m={command:`status`,describe:`Check whether cf telemetry collection is enabled`,handler:()=>{console.log(d(o())),console.log(n.muted(`Configure on this machine: \`cf cli telemetry enable\` / \`cf cli telemetry disable\`.
|
|
5
5
|
Override per invocation with ${a}=true/false. DO_NOT_TRACK is also honored.\nLearn more: https://github.com/cloudflare/cf/blob/main/packages/cli/telemetry.md`))}},h={command:`telemetry`,describe:`Configure whether cf collects anonymous usage telemetry`,builder:e=>e.command(m).command(p).command(f).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e,t){let n=e.fullPath.slice(0,-1).map((t,n)=>e.fullPath.slice(0,n+1).join(` `));return{command:e.command,summary:e.summary||e.description.split(`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./context-
|
|
2
|
+
import{i as e}from"./context-M2Ho8pi3.mjs";import{r as t}from"./auth-BjxUTZWb.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-BnIv4lh5.mjs";import{t as a}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,n as u}from"./prompt-DjRAo2Up.mjs";import{t as d}from"./cli-types-DoVT5q_M.mjs";function f(e){return e.usage(`$0 client-certificates create
|
|
3
3
|
|
|
4
4
|
Create a new API Shield mTLS Client Certificate.`).option(`csr`,{type:`string`,description:`The Certificate Signing Request (CSR). Must be newline-encoded.`}).option(`validity-days`,{type:`number`,description:`The number of days the Client Certificate will be valid after the issued_on date.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const p={command:`create`,describe:`Create Client Certificate`,builder:f,handler:async u=>a({command:`client-certificates create`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf client-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/client_certificates`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({csr:c(u.csr,`csr`,`text`),validity_days:u[`validity-days`]}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Creating`,async()=>a.clientCertificates.create({...e,zone_id:d})),{successLabel:`Created`});return}if(u.csr===void 0&&(u.csr=await l(`csr`,`The Certificate Signing Request (CSR). Must be newline-encoded.`)),u[`validity-days`]===void 0)throw Error(`--validity-days is required (or pass --body with this field set).`);let f=s({csr:c(u.csr,`csr`,`text`),validity_days:u[`validity-days`]});n(await i(`Creating`,async()=>a.clientCertificates.create({...f,zone_id:d})),{successLabel:`Created`})})};function m(e){return e.usage(`$0 client-certificates delete <client-certificate-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./context-
|
|
2
|
+
import{i as e}from"./context-M2Ho8pi3.mjs";import{r as t}from"./auth-BjxUTZWb.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-BnIv4lh5.mjs";import{t as a}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,i as u,n as d}from"./prompt-DjRAo2Up.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 client-side-security connections get <connection-id>
|
|
3
3
|
|
|
4
4
|
Returns a webpage connection detected on the zone by connection ID.`).positional(`connection-id`,{type:`string`,description:`Identifier`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`get <connection-id>`,describe:`Get a detected connection`,builder:p,handler:async o=>a({command:`client-side-security connections get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf client-side-security connections get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/page_shield/connections/${o[`connection-id`]==null?`<connection-id>`:encodeURIComponent(String(o[`connection-id`]))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),"connection-id":String(o[`connection-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.clientSideSecurity.connections.get({zone_id:s,connection_id:o[`connection-id`]})),{successLabel:`Loaded`})})};function h(e){return e.usage(`$0 client-side-security connections list
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./context-
|
|
2
|
+
import{i as e}from"./context-M2Ho8pi3.mjs";import{r as t}from"./auth-BjxUTZWb.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-BnIv4lh5.mjs";import{t as a}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as o}from"./body-parser-hh2avzkz.mjs";function s(e){return e.usage(`$0 cloud-connector rules list
|
|
3
3
|
|
|
4
4
|
Retrieves the Cloud Connector rules configured for a zone. Rules define how traffic is routed to cloud services.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const c={command:`list`,describe:`Rules`,builder:s,handler:async o=>a({command:`cloud-connector rules list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf cloud-connector rules list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/cloud_connector/rules`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.cloudConnector.rules.list({zone_id:s})),{successLabel:`Loaded`})})};function l(e){return e.usage(`$0 cloud-connector rules update
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-CQc36Viv.mjs";import{a as t,t as n}from"./context-M2Ho8pi3.mjs";import{a as r,r as i}from"./auth-BjxUTZWb.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-BnIv4lh5.mjs";import{t as c}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{i as l,n as u,r as d,t as f}from"./body-parser-hh2avzkz.mjs";import{n as p,t as m}from"./input-validation-Dk52b0me.mjs";import{a as h,i as g,n as _}from"./prompt-DjRAo2Up.mjs";import{t as v}from"./cli-types-DoVT5q_M.mjs";import{n as y,t as b}from"./raw-fetch-CuMHmrn0.mjs";function ee(e){return e.usage(`$0 cloudforce-one binary-storage create
|
|
3
3
|
|
|
4
4
|
Uploads a binary file to Cloudforce One's binary database for malware analysis and threat intelligence correlation.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Binary file to be uploaded to the database.`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const te={command:`create`,describe:`Posts a file to Binary Storage`,builder:ee,handler:async l=>c({command:`cloudforce-one binary-storage create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){o({command:`cf cloudforce-one binary-storage create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/binary`,pathParams:{},bodyKind:`multipart`,body:{body:l.body,file:l.file}});return}let c=await i(l),u=l.local?e:await n();if(l.accountId=u,l.file!==void 0||l.body!==void 0){let e=new FormData;if(l.file){let t=m(l.file);e.append(`file`,new Blob([t]),l.file.split(/[\\/]/).filter(Boolean).pop())}else l.body!==void 0&&e.append(`file`,l.body);a(await s(`Creating`,async()=>r(c,`POST`,`/accounts/${u}/cloudforce-one/binary`,{body:e})),{successLabel:`Created`});return}if(l.body){let e=p(l.body,`body`,`binary`);a(await s(`Creating`,async()=>r(c,`POST`,`/accounts/${u}/cloudforce-one/binary`,{body:e,headers:{"Content-Type":`multipart/form-data`}})),{successLabel:`Created`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function x(e){return e.usage(`$0 cloudforce-one binary-storage get <hash>
|
|
5
5
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{r as n}from"./resolve-BCTrtcx7.mjs";import{t as r}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{r as n}from"./resolve-BCTrtcx7.mjs";import{t as r}from"./context-M2Ho8pi3.mjs";import{r as i}from"./auth-BjxUTZWb.mjs";import{t as a}from"./progress-BnIv4lh5.mjs";import{n as o,t as s}from"./cloudflared-C4KjWoEY.mjs";const c=1e3;async function l(e,t,r){if(n(r))return r;let i=0,a;for(let n=1;;n++){let o=await e.tunnel.list({account_id:t,name:r,is_deleted:!1,page:n,per_page:c}),s=o.result??[];for(let e of s)e.name===r&&(i++,a=e.id);let l=o.result_info?.per_page||c;if(s.length<l)break}if(i===0)throw Error(`"${r}" is neither the ID nor the name of any tunnel. Run \`cf tunnels list\` to see available tunnels.`);if(i>1)throw Error(`Found multiple tunnels named "${r}". Pass the tunnel UUID instead.`);if(!a)throw Error(`Tunnel "${r}" was found but has no ID. Pass the tunnel UUID instead.`);return a}async function u(e,t,n){let r=await e.tunnels.token.get({account_id:t,tunnel_id:n});if(typeof r!=`string`||r.length===0)throw Error(`The API returned an empty token for tunnel ${n}.`);return r}function d(e){return e.positional(`tunnel`,{type:`string`,description:`Tunnel name or UUID; required unless --token is provided`}).option(`token`,{type:`string`,description:`Tunnel token supplied directly to cloudflared`}).option(`log-level`,{type:`string`,choices:s,default:`info`,description:`cloudflared log level`})}const f={command:`run [tunnel]`,describe:`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,builder:d,handler:async n=>{if(n.local)throw Error(`--local is not supported by cf tunnels run.`);let s=n.token,c=n.tunnel;if(!s){if(!c)throw Error(`Either a tunnel name/UUID or --token must be provided.`);s=await t(n,async()=>{let e=await i(n),t=await r();return a(`Fetching tunnel token`,async()=>u(e,t,await l(e,t,c)))})}let d=[`tunnel`,`--loglevel`,n[`log-level`]];throw d.push(`run`),new e(await o(d,{env:{TUNNEL_TOKEN:s}}))}};export{f as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-M2Ho8pi3.mjs";import{n as r}from"./cloudflared-C4KjWoEY.mjs";const i={command:`login`,describe:`Authorize cloudflared and download an origin certificate for locally managed tunnels.`,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf tunnels login.`);let a=[`tunnel`,`login`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{t as n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{t as n}from"./context-M2Ho8pi3.mjs";import{r}from"./auth-BjxUTZWb.mjs";import{t as i}from"./progress-BnIv4lh5.mjs";import{n as a}from"./cloudflared-C4KjWoEY.mjs";const o=[`cloudflared`,`http`,`tcp`,`udp`],s=[`debug`,`info`,`warn`,`error`],c=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function l(e,t){if(!c.test(e))throw Error(`${t} must be a valid UUID.`);return e}const u={command:`tail [tunnel-id]`,describe:`Stream logs from a remote cloudflared instance.`,builder:e=>e.positional(`tunnel-id`,{type:`string`,coerce:e=>l(e,`Tunnel ID`),description:`Tunnel UUID to stream logs from`}).option(`connector-id`,{type:`string`,coerce:e=>l(e,`--connector-id`),description:`Target a specific cloudflared connector`}).option(`event`,{type:`string`,choices:o,array:!0,description:`Filter by event type (may be repeated)`}).option(`level`,{type:`string`,choices:s,description:`Filter by log level`}).option(`sample`,{type:`number`,coerce:e=>{if(!Number.isFinite(e)||e<=0||e>1)throw Error(`--sample must be greater than 0.0 and no greater than 1.0.`);return e},description:`Sample log events by fraction greater than 0.0 and no greater than 1.0`}),handler:async o=>{if(o.local)throw Error(`--local is not supported by cf tunnels tail.`);let s=process.env.TUNNEL_MANAGEMENT_TOKEN;if(s!==void 0&&!s.trim())throw Error(`TUNNEL_MANAGEMENT_TOKEN must not be empty.`);if(s&&o[`tunnel-id`])throw Error(`Specify either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN, not both.`);let c=s;if(!c){let e=o[`tunnel-id`];if(!e)throw Error(`Either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN must be provided.`);c=await t({mode:o.mode,local:o.local},async()=>{let t=await r(o),a=await n();return i(`Fetching tunnel management token`,async()=>t.tunnels.managementToken.create({account_id:a,tunnel_id:e,resources:[`logs`]}))})}let l=[`tail`,`--output`,`json`];if(o[`connector-id`]&&l.push(`--connector-id`,o[`connector-id`]),o.event)for(let e of o.event)l.push(`--event`,e);throw o.level&&l.push(`--level`,o.level),o.sample!==void 0&&l.push(`--sample`,String(o.sample)),o[`tunnel-id`]&&l.push(o[`tunnel-id`]),new e(await a(l,{env:{TUNNEL_MANAGEMENT_TOKEN:c}}))}};export{u as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-M2Ho8pi3.mjs";import{n as r,t as i}from"./cloudflared-C4KjWoEY.mjs";function a(e){return e.option(`hostname`,{type:`string`,demandOption:!0,description:`Hostname of the Access application`}).option(`destination`,{type:`string`,description:`Destination address of the target server`}).option(`url`,{type:`string`,description:`Local host and port to forward to the Cloudflare edge`}).option(`header`,{type:`string`,array:!0,description:`Additional request header; repeat for multiple headers`}).option(`service-token-id`,{type:`string`,description:`Access service token ID`}).option(`service-token-secret`,{type:`string`,description:`Access service token secret`}).option(`log-level`,{alias:`loglevel`,type:`string`,choices:i,description:`cloudflared log level`})}const o={command:`tcp`,aliases:[`ssh`,`rdp`,`smb`],describe:`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,builder:a,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access tcp.`);let a=[`access`];await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`tcp`),a.push(`--hostname`,i.hostname),i.destination&&a.push(`--destination`,i.destination),i.url&&a.push(`--url`,i.url);for(let e of i.header??[])a.push(`--header`,e);throw i[`service-token-id`]&&a.push(`--service-token-id`,i[`service-token-id`]),i[`log-level`]&&a.push(`--loglevel`,i[`log-level`]),new e(await r(a,{env:i[`service-token-secret`]?{TUNNEL_SERVICE_TOKEN_SECRET:i[`service-token-secret`]}:void 0}))}};export{o as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-M2Ho8pi3.mjs";import{n as r}from"./cloudflared-C4KjWoEY.mjs";const i={command:`curl <url>`,describe:`Run curl against an Access-protected application with its JWT injected by cloudflared.`,builder:e=>e.parserConfiguration({"populate--":!0,"parse-positional-numbers":!1,"short-option-groups":!1}).option(`allow-request`,{alias:`ar`,type:`boolean`,description:`Continue the request when no Access token is available`}).positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access curl.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`curl`),i[`allow-request`]&&a.push(`--allow-request`),a.push(i.url,...(i[`--`]??[]).map(String)),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-M2Ho8pi3.mjs";import{n as r}from"./cloudflared-C4KjWoEY.mjs";const i={command:`ssh-gen`,describe:`Generate a short-lived certificate for an Access SSH application.`,builder:e=>e.option(`hostname`,{type:`string`,description:`Hostname of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access ssh-gen.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`ssh-gen`,`--hostname`,i.hostname),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-M2Ho8pi3.mjs";import{n as r}from"./cloudflared-C4KjWoEY.mjs";const i={command:`ssh-config`,describe:`Print an example SSH configuration for an Access application.`,builder:e=>e.option(`hostname`,{type:`string`,description:`Hostname of the Access application`}).option(`short-lived-cert`,{type:`boolean`,description:`Include short-lived certificate configuration`}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access ssh-config.`);if(await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`)throw Error(`cf access ssh-config does not support FedRAMP because cloudflared does not include --fedramp in its generated SSH configuration.`);let a=[`access`,`ssh-config`];throw i.hostname&&a.push(`--hostname`,i.hostname),i[`short-lived-cert`]&&a.push(`--short-lived-cert`),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-M2Ho8pi3.mjs";import{n as r}from"./cloudflared-C4KjWoEY.mjs";const i={command:`token <url>`,describe:`Print a JWT for authenticating with an Access application.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access token.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`token`,i.url),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{x as e}from"./dist-BuCJ_55d.mjs";import{t}from"./chunk-KKDV4JPS-DdzLLtnl.mjs";import{i as n,n as r,t as i}from"./startup-profile-CR7GMuLx.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./progress-
|
|
2
|
+
import{x as e}from"./dist-BuCJ_55d.mjs";import{t}from"./chunk-KKDV4JPS-DdzLLtnl.mjs";import{i as n,n as r,t as i}from"./startup-profile-CR7GMuLx.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./progress-BnIv4lh5.mjs";import{a as s,i as c,n as l,o as u,r as d,s as f}from"./build-B-tN7mO-.mjs";import{t as p}from"./deploy-input-DJWWJs3a.mjs";import m from"node:path";import{writeFile as h}from"node:fs/promises";import{readBuildOutput as g}from"@cloudflare/build-output-utils";function _(e){return e.option(`outfile`,{type:`string`,description:`Output file for the startup CPU profile`,default:`worker-startup.cpuprofile`,requiresArg:!0}).option(`prebuilt`,{type:`boolean`,description:`Use existing Build Output Specification files without building`,default:!1}).option(`worker`,d)}const v={command:`check`,describe:`Profile a Worker's startup performance`,builder:_,handler:async d=>{if(d.local)throw Error(`--local is not supported by cf workers check.`);d.prebuilt||await l(d.mode,{output:d.quiet?`silent`:`stderr`,worker:d.worker});let{workers:_,rootConfig:v}=await g(process.cwd());u(d.mode,v.buildContext.mode);let y=s(_,d.worker),{wranglerConfig:b,builtConfig:x}=c(y,v),S=p(y,x);if(!S.resolvedEntryPointPath)throw new f(`Startup profiling requires a Worker entrypoint; assets-only projects cannot be profiled.`);if(S.bundleType===`commonjs`)throw new f(`Startup profiling does not support service-worker format Workers. Refer to https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ for migration guidance.`);let C=t({name:b.name??y.config.name??`worker`,main:{name:x.manifest?.mainModule??m.basename(S.resolvedEntryPointPath),filePath:S.resolvedEntryPointPath,content:S.content,type:S.bundleType},modules:S.modules,sourceMaps:S.sourceMaps,compatibility_date:b.compatibility_date,compatibility_flags:b.compatibility_flags??[],assets:void 0,containers:void 0,migrations:void 0,exports:void 0,keepVars:void 0,keepSecrets:void 0,logpush:void 0,placement:void 0,tail_consumers:void 0,streaming_tail_consumers:void 0,limits:void 0,annotations:void 0,observability:void 0,cache:void 0,package_dependencies:void 0},e(b),{dryRun:!0,unsafe:b.unsafe}),w=await r(C),T=d.quiet?await i(C):await o(`Profiling Worker startup`,()=>i(C)),E=n(T);await h(d.outfile,JSON.stringify(T)),a({bundle:{sizeBytes:w.size,gzipSizeBytes:w.gzipSize},startup:{profileWindowMs:E.profileWindow/1e3,sampledTimeMs:E.sampledTime/1e3,activeTimeMs:E.activeTime/1e3,garbageCollectionTimeMs:E.garbageCollectionTime/1e3,idleTimeMs:E.idleTime/1e3,sampleCount:E.sampleCount},profile:d.outfile,note:`This profile was measured locally. Use it to understand where startup time is spent, not to predict startup time on Cloudflare.`},{quiet:d.quiet})}};export{v as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-M2Ho8pi3.mjs";import{n as r}from"./cloudflared-C4KjWoEY.mjs";const i={command:`login <url>`,describe:`Authenticate with an Access application and store its JWT through cloudflared.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access login.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`login`),i.quiet&&a.push(`--quiet`),a.push(i.url),new e(await r(a))}};export{i as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e,t}from"./metadata-C33s4rc-.mjs";import{t as n}from"./run-
|
|
2
|
+
import{n as e,t}from"./metadata-C33s4rc-.mjs";import{t as n}from"./run-Duj1fsxa.mjs";import r from"node:assert";function i(e,t){return`#compdef ${e}
|
|
3
3
|
compdef _${e} ${e}
|
|
4
4
|
|
|
5
5
|
# zsh completion for ${e} -*- shell-script -*-
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-CQc36Viv.mjs";import{a as t,t as n}from"./context-M2Ho8pi3.mjs";import{r}from"./auth-BjxUTZWb.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BnIv4lh5.mjs";import{t as s}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";function u(e){return e.usage(`$0 connector-interrupts create <connector-id>
|
|
3
3
|
|
|
4
4
|
Creates an interrupt for a Magic WAN Connector.`).positional(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`reboot-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`restart-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`shutdown-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Interrupt action for a connector.`})}const d={command:`create <connector-id>`,describe:`Create Interrupt`,builder:u,handler:async u=>s({command:`connector-interrupts create`,classification:{safeFlags:[`reboot-purge`,`restart-purge`,`shutdown-purge`,`dry-run`]}},u,async()=>{if(u.dryRun){a({command:`cf connector-interrupts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/connectors/${u[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(u[`connector-id`]))}/interrupts`,pathParams:{"connector-id":String(u[`connector-id`]??``)},bodyKind:`json`,body:u.body===void 0?l({reboot:{purge:u[`reboot-purge`]},restart:{purge:u[`restart-purge`]},shutdown:{purge:u[`shutdown-purge`]}}):c(u.body)});return}let s=await r(u),d=u.local?e:await n();if(u.accountId=d,u.body){let e=c(u.body);i(await o(`Creating`,async()=>s.connectorInterrupts.create({...e,account_id:d,connector_id:u[`connector-id`]})),{successLabel:`Created`});return}let f=l({reboot:{purge:u[`reboot-purge`]},restart:{purge:u[`restart-purge`]},shutdown:{purge:u[`shutdown-purge`]}});i(await o(`Creating`,async()=>s.connectorInterrupts.create({...f,account_id:d,connector_id:u[`connector-id`]})),{successLabel:`Created`})})};function f(e){return e.usage(`$0 connector-interrupts list
|
|
5
5
|
|
package/dist/{connector-telemetry-events-BQb3Hsnt.mjs → connector-telemetry-events-D-cL2RuW.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-CQc36Viv.mjs";import{a as t,t as n}from"./context-M2Ho8pi3.mjs";import{r}from"./auth-BjxUTZWb.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BnIv4lh5.mjs";import{t as s}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";function c(e){return e.usage(`$0 connector-telemetry-events get <event-n>
|
|
3
3
|
|
|
4
4
|
Gets Magic WAN Connector Telemetry Event`).positional(`event-n`,{type:`string`,description:`Event n`,demandOption:!0}).option(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`event-t`,{type:`string`,description:`Event t`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get <event-n>`,describe:`Get Event`,builder:c,handler:async c=>s({command:`connector-telemetry-events get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf connector-telemetry-events get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/connectors/${c[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(c[`connector-id`]))}/telemetry/events/${c[`event-t`]==null?`<event-t>`:encodeURIComponent(String(c[`event-t`]))}.${c[`event-n`]==null?`<event-n>`:encodeURIComponent(String(c[`event-n`]))}`,pathParams:{"connector-id":String(c[`connector-id`]??``),"event-t":String(c[`event-t`]??``),"event-n":String(c[`event-n`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.connectorTelemetryEvents.get({account_id:l,connector_id:c[`connector-id`],event_t:c[`event-t`],event_n:c[`event-n`]})),{successLabel:`Loaded`})})};function u(e){return e.usage(`$0 connector-telemetry-events list
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-CQc36Viv.mjs";import{a as t,t as n}from"./context-M2Ho8pi3.mjs";import{r}from"./auth-BjxUTZWb.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BnIv4lh5.mjs";import{t as s}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";function c(e){return e.usage(`$0 connector-telemetry-snapshots get <snapshot-t>
|
|
3
3
|
|
|
4
4
|
Gets Magic WAN Connector Telemetry Snapshot`).positional(`snapshot-t`,{type:`string`,description:`Snapshot t`,demandOption:!0}).option(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get <snapshot-t>`,describe:`Get Snapshot`,builder:c,handler:async c=>s({command:`connector-telemetry-snapshots get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf connector-telemetry-snapshots get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/connectors/${c[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(c[`connector-id`]))}/telemetry/snapshots/${c[`snapshot-t`]==null?`<snapshot-t>`:encodeURIComponent(String(c[`snapshot-t`]))}`,pathParams:{"connector-id":String(c[`connector-id`]??``),"snapshot-t":String(c[`snapshot-t`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.connectorTelemetrySnapshots.get({account_id:l,connector_id:c[`connector-id`],snapshot_t:c[`snapshot-t`]})),{successLabel:`Loaded`})})};function u(e){return e.usage(`$0 connector-telemetry-snapshots list
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-CQc36Viv.mjs";import{a as t,t as n}from"./context-M2Ho8pi3.mjs";import{r}from"./auth-BjxUTZWb.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BnIv4lh5.mjs";import{t as s}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{n as d}from"./prompt-DjRAo2Up.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 connectors create
|
|
3
3
|
|
|
4
4
|
Creates a Magic WAN Connector.`).option(`device-id`,{type:`string`,description:`The device.id field`}).option(`device-provision-license`,{type:`boolean`,description:`When true, create and provision a new licence key for the connector.`}).option(`device-serial-number`,{type:`string`,description:`The device.serial_number field`}).option(`activated`,{type:`boolean`,description:`The activated field`}).option(`interrupt-window-days-of-week`,{type:`string`,array:!0,description:`Allowed days of the week for upgrades. Default is all days.`}).option(`interrupt-window-duration-hours`,{type:`number`,description:`The interrupt_window_duration_hours field`}).option(`interrupt-window-embargo-dates`,{type:`string`,array:!0,description:`List of dates (YYYY-MM-DD) when upgrades are blocked.`}).option(`interrupt-window-hour-of-day`,{type:`number`,description:`The interrupt_window_hour_of_day field`}).option(`notes`,{type:`string`,description:`The notes field`}).option(`timezone`,{type:`string`,description:`The timezone field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`create`,describe:`Create Connector`,builder:p,handler:async d=>s({command:`connectors create`,classification:{safeFlags:[`device-provision-license`,`activated`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf connectors create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/connectors`,pathParams:{},bodyKind:`json`,body:d.body===void 0?l({device:{id:u(d[`device-id`],`device-id`,`text`),provision_license:d[`device-provision-license`],serial_number:u(d[`device-serial-number`],`device-serial-number`,`text`)},activated:d.activated,interrupt_window_days_of_week:d[`interrupt-window-days-of-week`],interrupt_window_duration_hours:d[`interrupt-window-duration-hours`],interrupt_window_embargo_dates:d[`interrupt-window-embargo-dates`],interrupt_window_hour_of_day:d[`interrupt-window-hour-of-day`],notes:u(d.notes,`notes`,`text`),timezone:u(d.timezone,`timezone`,`text`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Creating`,async()=>s.connectors.create({...e,account_id:f})),{successLabel:`Created`});return}let p=l({device:{id:u(d[`device-id`],`device-id`,`text`),provision_license:d[`device-provision-license`],serial_number:u(d[`device-serial-number`],`device-serial-number`,`text`)},activated:d.activated,interrupt_window_days_of_week:d[`interrupt-window-days-of-week`],interrupt_window_duration_hours:d[`interrupt-window-duration-hours`],interrupt_window_embargo_dates:d[`interrupt-window-embargo-dates`],interrupt_window_hour_of_day:d[`interrupt-window-hour-of-day`],notes:u(d.notes,`notes`,`text`),timezone:u(d.timezone,`timezone`,`text`)});i(await o(`Creating`,async()=>s.connectors.create({...p,account_id:f})),{successLabel:`Created`})})};function h(e){return e.usage(`$0 connectors delete <connector-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{G as e}from"./dist-BuCJ_55d.mjs";import{a as t}from"./banner-ClclgnBn.mjs";import{t as n}from"./local-
|
|
2
|
+
import{G as e}from"./dist-BuCJ_55d.mjs";import{a as t}from"./banner-ClclgnBn.mjs";import{t as n}from"./local-CQc36Viv.mjs";import{a as r,n as i,t as a}from"./context-M2Ho8pi3.mjs";import{n as o}from"./request-headers-DaUqNccK.mjs";import{i as s,r as c}from"./auth-BjxUTZWb.mjs";import{t as l}from"./output-CvQFJkvi.mjs";import{t as u}from"./dry-run-Bq0JAsbX.mjs";import{t as d}from"./progress-BnIv4lh5.mjs";import{n as f,t as p}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as m,r as h,t as g}from"./body-parser-hh2avzkz.mjs";import{n as _}from"./input-validation-Dk52b0me.mjs";import{a as v,i as y,n as b}from"./prompt-DjRAo2Up.mjs";import{t as x}from"./cli-types-DoVT5q_M.mjs";import{D as S,T as C,_ as w,d as T,f as E,g as D,l as ee,m as te,o as O,w as k,x as A,y as j}from"./dist-CxGYQfpW.mjs";function M(e){return e.positional(`path`,{type:`string`,demandOption:!0,description:`Directory containing the Dockerfile to build`}).option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Name and optional tag for the built image`}).option(`push`,{alias:`p`,type:`boolean`,default:!1,description:`Push the built image to Cloudflare's managed registry`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var N=f({command:`build <path>`,describe:`Build a Container image`,builder:M,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers build`.");let n={compliance_region:t.push?await i():`public`},r=t.push?await s():``,o=S(r);D({logger:o.logger,fetchResult:o.fetchResult,fetchPagedListResult:o.fetchPagedListResult}),t.push&&T(await a(),r,e(n)),await ee({PATH:t.path,tag:t.tag,push:t.push,pathToDocker:t[`path-to-docker`]},n)}},{command:`containers build`,classification:{safeFlags:[`push`],shortFlagAliases:{p:{canonical:`push`,type:`boolean`},t:{canonical:`tag`,type:`value`}}}});function P(e){return e.option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Tag of the local image to push`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var F=f({command:`push`,describe:`Push a local image to the Cloudflare managed registry`,builder:P,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers push`.");let n=await s(),r=await a(),o={compliance_region:await i()},c=S(n);D({logger:c.logger,fetchResult:c.fetchResult,fetchPagedListResult:c.fetchPagedListResult}),T(r,n,e(o)),await A({TAG:t.tag,pathToDocker:t[`path-to-docker`]},r,o)}},{command:`containers push`,classification:{safeFlags:[],shortFlagAliases:{t:{canonical:`tag`,type:`value`}}}});function I(e){return e.positional(`id`,{type:`string`,demandOption:!0,description:`ID of the container instance`}).positional(`ssh-command`,{type:`string`,array:!0,description:`Command and arguments to run in the container`}).options(E).middleware(e=>{k(e)&&(e.quiet=!0)},!0).parserConfiguration({"populate--":!0,"unknown-options-as-args":!0,"parse-positional-numbers":!1})}const L={command:`ssh <id> [ssh-command..]`,describe:`SSH into a container`,builder:I,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers ssh`.");let n=await s(),r=await a(),c={compliance_region:await i()},l=S(n);D({logger:l.logger,fetchResult:l.fetchResult}),O.HEADERS=o(),T(r,n,e(c)),await C({...t,id:t.id,command:[...t[`ssh-command`]??[],...Array.isArray(t[`--`])?t[`--`].map(String):[]]})}},R=f(L,{command:`containers ssh`,recordArgs:!1});var z={...R,handler:async e=>{if(k(e)){let{markCommandReported:t}=await import(`./telemetry-D14VqvDU.mjs`);return t(),L.handler(e)}return R.handler(e)}};function B(e){return e.usage('$0 containers applications create\n\nCreate a Containers application. Use `scheduling_policy: "default"` for a scheduler-backed application. The Containers scheduler maintains the requested instance count and manages deployment configuration, placement, scaling, versions, and rollouts. Use `scheduling_policy: "durable_object"` for a Durable Object-managed application. Each Durable Object creates and manages the lifecycle of its container instance. Supply `name`, `scheduling_policy`, and `durable_objects`, with optional `configuration` and optional top-level `observability` settings. Deployment configuration, scaling, constraints, versions, and rollouts do not apply.').option(`configuration-command`,{type:`string`,array:!0,description:`The command that runs when the container starts, passed to the entrypoint.
|
|
3
3
|
You can override this at run-time. If you override only the command,
|
|
4
4
|
it gets passed to the default entrypoint specified in the image.
|
|
5
5
|
`}).option(`configuration-entrypoint`,{type:`string`,array:!0,description:`The entry point for the container, specifying the executable to run when the container starts.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e,n as t,t as n}from"./source-38bULAR8.mjs";import{i as r}from"./dotenv-CcQjGlV0.mjs";import{At as i,B as a,C as o,Ct as s,Et as c,F as l,H as u,J as d,Ot as f,P as p,S as m,St as h,T as g,Tt as _,U as v,W as y,X as b,Z as x,_t as S,at as C,b as w,bt as T,ct as E,dt as D,f as ee,ft as O,gt as te,ht as ne,k,kt as A,lt as j,mt as re,n as ie,nt as ae,o as oe,ot as se,p as ce,pt as le,r as ue,rt as de,st as fe,u as pe,ut as M,vt as me,x as he,y as ge,yt as _e,z as ve}from"./dist-BuCJ_55d.mjs";import{a as ye,c as be,i as N,o as P,r as xe,s as Se,t as Ce}from"./chunk-KKDV4JPS-DdzLLtnl.mjs";import{A as we,C as Te,D as Ee,E as De,T as Oe,a as ke,b as Ae,c as je,d as Me,f as Ne,h as Pe,j as Fe,k as Ie,o as Le,p as Re,r as ze,w as Be,y as Ve}from"./interactive-C-o16XQs.mjs";import{C as He,E as Ue,S as We,a as Ge,b as Ke,g as qe,h as Je,i as Ye,n as Xe,p as Ze,r as Qe,s as $e,t as et,v as tt}from"./dist-Du72beRE.mjs";import{s as nt}from"./build-SxtWgMkQ.mjs";import{createRequire as rt}from"node:module";import{setTimeout as it}from"node:timers/promises";import{createReadStream as at,mkdirSync as ot,readFileSync as st,writeFileSync as ct}from"node:fs";import*as lt from"node:path";import ut,{extname as dt,isAbsolute as ft,resolve as pt,sep as mt}from"node:path";import ht,{URLSearchParams as gt}from"node:url";import{access as _t,readFile as vt,readdir as yt,stat as bt,writeFile as xt}from"node:fs/promises";import F from"node:assert";import{isDeepStrictEqual as St}from"node:util";import{Blob as Ct}from"node:buffer";import{gzipSync as wt}from"node:zlib";import{createHash as Tt}from"node:crypto";import{execSync as Et}from"node:child_process";import{getFreshSourceMapSupport as Dt,getNodeCompat as Ot}from"miniflare";import kt from"node:readline";import{hash as At}from"blake3-wasm";import{convertToWranglerConfig as jt}from"@cloudflare/config";rt(import.meta.url||(typeof __filename==`string`?__filename:`/`));var I,L,Mt,Nt,Pt,Ft,It;function Lt(e){I=e.logger,L=e.fetchResult,Mt=e.fetchListResult,Nt=e.fetchPagedListResult,e.fetchKVGetValue,Pt=e.confirm,Ft=e.prompt,It=e.select}P(Lt,`initDeployHelpersContext`);var Rt=t(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)})),zt=a(),Bt=e(Rt(),1),Vt=class e extends Error{name=`TimeoutError`;constructor(t,n){super(t,n),Error.captureStackTrace?.(this,e)}};const Ht=e=>e.reason??new DOMException(`This operation was aborted.`,`AbortError`);function Ut(e,t){let{milliseconds:n,fallback:r,message:i,customTimers:a={setTimeout,clearTimeout},signal:o}=t,s,c,l=new Promise((t,l)=>{if(typeof n!=`number`||Math.sign(n)!==1)throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(o?.aborted){l(Ht(o));return}if(o&&(c=()=>{l(Ht(o))},o.addEventListener(`abort`,c,{once:!0})),e.then(t,l),n===1/0)return;let u=new Vt;s=a.setTimeout.call(void 0,()=>{if(r){try{t(r())}catch(e){l(e)}return}typeof e.cancel==`function`&&e.cancel(),i===!1?t():i instanceof Error?l(i):(u.message=i??`Promise timed out after ${n} milliseconds`,l(u))},n)}).finally(()=>{l.clear(),c&&o&&o.removeEventListener(`abort`,c)});return l.clear=()=>{a.clearTimeout.call(void 0,s),s=void 0},l}function Wt(e,t,n){let r=0,i=e.length;for(;i>0;){let a=Math.trunc(i/2),o=r+a;n(e[o],t)<=0?(r=++o,i-=a+1):i=a}return r}var Gt=class{#e=[];enqueue(e,t){let{priority:n=0,id:r}=t??{},i={priority:n,id:r,run:e};if(this.size===0||this.#e[this.size-1].priority>=n){this.#e.push(i);return}let a=Wt(this.#e,i,(e,t)=>t.priority-e.priority);this.#e.splice(a,0,i)}setPriority(e,t){let n=this.#e.findIndex(t=>t.id===e);if(n===-1)throw ReferenceError(`No promise function with the id "${e}" exists in the queue.`);let[r]=this.#e.splice(n,1);this.enqueue(r.run,{priority:t,id:e})}dequeue(){return this.#e.shift()?.run}filter(e){return this.#e.filter(t=>t.priority===e.priority).map(e=>e.run)}get size(){return this.#e.length}},Kt=class extends Bt.default{#e;#t;#n=0;#r;#i=!1;#a=!1;#o;#s=0;#c=0;#l;#u;#d;#f;#p=0;#m;#h;#g=1n;#_=new Map;timeout;constructor(e){if(super(),e={carryoverIntervalCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:Gt,...e},!(typeof e.intervalCap==`number`&&e.intervalCap>=1))throw TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${e.intervalCap?.toString()??``}\` (${typeof e.intervalCap})`);if(e.interval===void 0||!(Number.isFinite(e.interval)&&e.interval>=0))throw TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${e.interval?.toString()??``}\` (${typeof e.interval})`);if(this.#e=e.carryoverIntervalCount??e.carryoverConcurrencyCount??!1,this.#t=e.intervalCap===1/0||e.interval===0,this.#r=e.intervalCap,this.#o=e.interval,this.#d=new e.queueClass,this.#f=e.queueClass,this.concurrency=e.concurrency,e.timeout!==void 0&&!(Number.isFinite(e.timeout)&&e.timeout>0))throw TypeError(`Expected \`timeout\` to be a positive finite number, got \`${e.timeout}\` (${typeof e.timeout})`);this.timeout=e.timeout,this.#h=e.autoStart===!1,this.#M()}get#v(){return this.#t||this.#n<this.#r}get#y(){return this.#p<this.#m}#b(){this.#p--,this.#p===0&&this.emit(`pendingZero`),this.#E(),this.emit(`next`)}#x(){this.#O(),this.#D(),this.#u=void 0}get#S(){let e=Date.now();if(this.#l===void 0){let t=this.#s-e;if(t<0){if(this.#c>0){let t=e-this.#c;if(t<this.#o)return this.#C(this.#o-t),!0}this.#n=this.#e?this.#p:0}else return this.#C(t),!0}return!1}#C(e){this.#u===void 0&&(this.#u=setTimeout(()=>{this.#x()},e))}#w(){this.#l&&=(clearInterval(this.#l),void 0)}#T(){this.#u&&=(clearTimeout(this.#u),void 0)}#E(){if(this.#d.size===0)return this.#w(),this.emit(`empty`),this.#p===0&&(this.#T(),this.emit(`idle`)),!1;let e=!1;if(!this.#h){let t=!this.#S;if(this.#v&&this.#y){let n=this.#d.dequeue();this.#t||(this.#n++,this.#N()),this.emit(`active`),this.#c=Date.now(),n(),t&&this.#D(),e=!0}}return e}#D(){this.#t||this.#l!==void 0||(this.#l=setInterval(()=>{this.#O()},this.#o),this.#s=Date.now()+this.#o)}#O(){this.#n===0&&this.#p===0&&this.#l&&this.#w(),this.#n=this.#e?this.#p:0,this.#k(),this.#N()}#k(){for(;this.#E(););}get concurrency(){return this.#m}set concurrency(e){if(!(typeof e==`number`&&e>=1))throw TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this.#m=e,this.#k()}async#A(e){return new Promise((t,n)=>{e.addEventListener(`abort`,()=>{n(e.reason)},{once:!0})})}setPriority(e,t){if(typeof t!=`number`||!Number.isFinite(t))throw TypeError(`Expected \`priority\` to be a finite number, got \`${t}\` (${typeof t})`);this.#d.setPriority(e,t)}async add(e,t={}){return t.id??=(this.#g++).toString(),t={timeout:this.timeout,...t},new Promise((n,r)=>{let i=Symbol(`task-${t.id}`);this.#d.enqueue(async()=>{this.#p++,this.#_.set(i,{id:t.id,priority:t.priority??0,startTime:Date.now(),timeout:t.timeout});try{try{t.signal?.throwIfAborted()}catch(e){throw this.#t||this.#n--,this.#_.delete(i),e}let r=e({signal:t.signal});t.timeout&&(r=Ut(Promise.resolve(r),{milliseconds:t.timeout,message:`Task timed out after ${t.timeout}ms (queue has ${this.#p} running, ${this.#d.size} waiting)`})),t.signal&&(r=Promise.race([r,this.#A(t.signal)]));let a=await r;n(a),this.emit(`completed`,a)}catch(e){r(e),this.emit(`error`,e)}finally{this.#_.delete(i),queueMicrotask(()=>{this.#b()})}},t),this.emit(`add`),this.#E()})}async addAll(e,t){return Promise.all(e.map(async e=>this.add(e,t)))}start(){return this.#h?(this.#h=!1,this.#k(),this):this}pause(){this.#h=!0}clear(){this.#d=new this.#f,this.#P()}async onEmpty(){this.#d.size!==0&&await this.#j(`empty`)}async onSizeLessThan(e){this.#d.size<e||await this.#j(`next`,()=>this.#d.size<e)}async onIdle(){this.#p===0&&this.#d.size===0||await this.#j(`idle`)}async onPendingZero(){this.#p!==0&&await this.#j(`pendingZero`)}async onRateLimit(){this.isRateLimited||await this.#j(`rateLimit`)}async onRateLimitCleared(){this.isRateLimited&&await this.#j(`rateLimitCleared`)}async onError(){return new Promise((e,t)=>{let n=e=>{this.off(`error`,n),t(e)};this.on(`error`,n)})}async#j(e,t){return new Promise(n=>{let r=()=>{t&&!t()||(this.off(e,r),n())};this.on(e,r)})}get size(){return this.#d.size}sizeBy(e){return this.#d.filter(e).length}get pending(){return this.#p}get isPaused(){return this.#h}#M(){this.#t||(this.on(`add`,()=>{this.#d.size>0&&this.#N()}),this.on(`next`,()=>{this.#N()}))}#N(){this.#t||this.#a||(this.#a=!0,queueMicrotask(()=>{this.#a=!1,this.#P()}))}#P(){let e=this.#i,t=!this.#t&&this.#n>=this.#r&&this.#d.size>0;t!==e&&(this.#i=t,this.emit(t?`rateLimit`:`rateLimitCleared`))}get isRateLimited(){return this.#i}get isSaturated(){return this.#p===this.#m&&this.#d.size>0||this.isRateLimited&&this.#d.size>0}get runningTasks(){return[...this.#_.values()].map(e=>({...e}))}};const qt=[`B`,`kB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],Jt=[`B`,`KiB`,`MiB`,`GiB`,`TiB`,`PiB`,`EiB`,`ZiB`,`YiB`],Yt=[`b`,`kbit`,`Mbit`,`Gbit`,`Tbit`,`Pbit`,`Ebit`,`Zbit`,`Ybit`],Xt=[`b`,`kibit`,`Mibit`,`Gibit`,`Tibit`,`Pibit`,`Eibit`,`Zibit`,`Yibit`],Zt=(e,t,n)=>{let r=e;return typeof t==`string`||Array.isArray(t)?r=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(r=e.toLocaleString(void 0,n)),r};function Qt(e,t){if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};let n=t.bits?t.binary?Xt:Yt:t.binary?Jt:qt,r=t.space?` `:``;if(t.signed&&e===0)return` 0${r}${n[0]}`;let i=e<0,a=i?`-`:t.signed?`+`:``;i&&(e=-e);let o;if(t.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:t.maximumFractionDigits,...o}),e<1)return a+Zt(e,t.locale,o)+r+n[0];let s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**s,o||(e=e.toPrecision(3));let c=Zt(Number(e),t.locale,o),l=n[s];return a+c+r+l}var $t=r();rt(import.meta.url||(typeof __filename==`string`?__filename:`/`));var en=N({"../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js"(e,t){function n(e){return Array.isArray(e)?e:[e]}P(n,`makeArray`);var r=``,i=` `,a=`\\`,o=/^\s+$/,s=/(?:[^\\]|^)\\$/,c=/^\\!/,l=/^\\#/,u=/\r?\n/g,d=/^\.*\/|^\.+$/,f=`/`,p=`node-ignore`;typeof Symbol<`u`&&(p=Symbol.for(`node-ignore`));var m=p,h=P((e,t,n)=>Object.defineProperty(e,t,{value:n}),`define`),g=/([0-z])-([0-z])/g,_=P(()=>!1,`RETURN_FALSE`),v=P(e=>e.replace(g,(e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:r),`sanitizeRange`),y=P(e=>{let{length:t}=e;return e.slice(0,t-t%2)},`cleanRangeBackSlash`),b=[[/^\uFEFF/,()=>r],[/\\?\s+$/,e=>e.indexOf(`\\`)===0?i:r],[/\\\s/g,()=>i],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>`[^/]`],[/^\//,()=>`^`],[/\//g,()=>`\\/`],[/^\^*\\\*\\\*\\\//,()=>`^(?:.*\\/)?`],[/^(?=[^^])/,P(function(){return/\/(?!$)/.test(this)?`^`:`(?:^|\\/)`},`startingReplacer`)],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?`(?:\\/[^\\/]+)*`:`\\/.+`],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,`[^\\/]*`)],[/\\\\\\(?=[$.|*+(){^])/g,()=>a],[/\\\\/g,()=>a],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,i)=>t===a?`\\[${n}${y(r)}${i}`:i===`]`&&r.length%2==0?`[${v(n)}${r}]`:`[]`],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:`[^/]*`}(?=$|\\/$)`]],x=Object.create(null),S=P((e,t)=>{let n=x[e];return n||(n=b.reduce((t,n)=>t.replace(n[0],n[1].bind(e)),e),x[e]=n),t?new RegExp(n,`i`):new RegExp(n)},`makeRegex`),C=P(e=>typeof e==`string`,`isString`),w=P(e=>e&&C(e)&&!o.test(e)&&!s.test(e)&&e.indexOf(`#`)!==0,`checkPattern`),T=P(e=>e.split(u),`splitPattern`),E=class{static{P(this,`IgnoreRule`)}constructor(e,t,n,r){this.origin=e,this.pattern=t,this.negative=n,this.regex=r}},D=P((e,t)=>{let n=e,r=!1;e.indexOf(`!`)===0&&(r=!0,e=e.substr(1)),e=e.replace(c,`!`).replace(l,`#`);let i=S(e,t);return new E(n,e,r,i)},`createRule`),ee=P((e,t)=>{throw new t(e)},`throwError`),O=P((e,t,n)=>C(e)?e?O.isNotRelative(e)?n(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:n(`path must not be empty`,TypeError):n(`path must be a string, but got \`${t}\``,TypeError),`checkPath`),te=P(e=>d.test(e),`isNotRelative`);O.isNotRelative=te,O.convert=e=>e;var ne=class{static{P(this,`Ignore`)}constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){h(this,m,!0),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[m]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(w(e)){let t=D(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,n(C(e)?T(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach(i=>{let{negative:a}=i;r===a&&n!==r||a&&!n&&!r&&!t||i.regex.test(e)&&(n=!a,r=a)}),{ignored:n,unignored:r}}_test(e,t,n,r){let i=e&&O.convert(e);return O(i,e,this._allowRelativePaths?_:ee),this._t(i,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||=e.split(f),r.pop(),!r.length)return t[e]=this._testOne(e,n);let i=this._t(r.join(f)+f,t,n,r);return t[e]=i.ignored?i:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return n(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},k=P(e=>new ne(e),`factory`);if(k.isPathValid=P(e=>O(e&&O.convert(e),e,_),`isPathValid`),k.default=k,t.exports=k,typeof process<`u`&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform===`win32`)){O.convert=P(e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,`/`),`makePosix`);let e=/^[a-z]:\//i;O.isNotRelative=t=>e.test(t)||te(t)}}}),tn=N({"../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/lib/heap.js"(e,t){(function(){var n,r,i=Math.floor,a,o,s,c,l,u,d=Math.min,f,p,m,h,g;r=P(function(e,t){return e<t?-1:+(e>t)},`defaultCmp`),u=P(function(e,t,n,a,o){var s;if(n??=0,o??=r,n<0)throw Error(`lo must be non-negative`);for(a??=e.length;n<a;)s=i((n+a)/2),o(t,e[s])<0?a=s:n=s+1;return[].splice.apply(e,[n,n-n].concat(t)),t},`insort`),s=P(function(e,t,n){return n??=r,e.push(t),h(e,0,e.length-1,n)},`heappush`),o=P(function(e,t){var n,i;return t??=r,n=e.pop(),e.length?(i=e[0],e[0]=n,g(e,0,t)):i=n,i},`heappop`),l=P(function(e,t,n){var i;return n??=r,i=e[0],e[0]=t,g(e,0,n),i},`heapreplace`),c=P(function(e,t,n){var i;return n??=r,e.length&&n(e[0],t)<0&&(i=[e[0],t],t=i[0],e[0]=i[1],g(e,0,n)),t},`heappushpop`),a=P(function(e,t){var n,a,o,s,c,l;for(t??=r,s=function(){l=[];for(var t=0,n=i(e.length/2);0<=n?t<n:t>n;0<=n?t++:t--)l.push(t);return l}.apply(this).reverse(),c=[],a=0,o=s.length;a<o;a++)n=s[a],c.push(g(e,n,t));return c},`heapify`),m=P(function(e,t,n){var i;if(n??=r,i=e.indexOf(t),i!==-1)return h(e,0,i,n),g(e,i,n)},`updateItem`),f=P(function(e,t,n){var i,o,s,l,u;if(n??=r,o=e.slice(0,t),!o.length)return o;for(a(o,n),u=e.slice(t),s=0,l=u.length;s<l;s++)i=u[s],c(o,i,n);return o.sort(n).reverse()},`nlargest`),p=P(function(e,t,n){var i,s,c,l,f,p,m,h,g;if(n??=r,t*10<=e.length){if(c=e.slice(0,t).sort(n),!c.length)return c;for(s=c[c.length-1],m=e.slice(t),l=0,p=m.length;l<p;l++)i=m[l],n(i,s)<0&&(u(c,i,0,null,n),c.pop(),s=c[c.length-1]);return c}for(a(e,n),g=[],f=0,h=d(t,e.length);0<=h?f<h:f>h;0<=h?++f:--f)g.push(o(e,n));return g},`nsmallest`),h=P(function(e,t,n,i){var a,o,s;for(i??=r,a=e[n];n>t;){if(s=n-1>>1,o=e[s],i(a,o)<0){e[n]=o,n=s;continue}break}return e[n]=a},`_siftdown`),g=P(function(e,t,n){var i,a,o,s,c;for(n??=r,a=e.length,c=t,o=e[t],i=2*t+1;i<a;)s=i+1,s<a&&!(n(e[i],e[s])<0)&&(i=s),e[t]=e[i],t=i,i=2*t+1;return e[t]=o,h(e,c,t,n)},`_siftup`),n=function(){e.push=s,e.pop=o,e.replace=l,e.pushpop=c,e.heapify=a,e.updateItem=m,e.nlargest=f,e.nsmallest=p;function e(e){this.cmp=e??r,this.nodes=[]}return P(e,`Heap`),e.prototype.push=function(e){return s(this.nodes,e,this.cmp)},e.prototype.pop=function(){return o(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return this.nodes.indexOf(e)!==-1},e.prototype.replace=function(e){return l(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return c(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return a(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return m(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return this.nodes.length===0},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t=new e;return t.nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),(function(n,r){return typeof define==`function`&&define.amd?define([],r):typeof e==`object`?t.exports=r():n.Heap=r()})(this,function(){return n})}).call(e)}}),nn=N({"../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/index.js"(e,t){t.exports=tn()}}),rn=N({"../../node_modules/.pnpm/@ewoudenberg+difflib@0.1.0/node_modules/@ewoudenberg/difflib/lib/difflib.js"(e){(function(){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S=[].indexOf;({floor:h,max:_,min:v}=Math),n=nn(),p=Se(`assert`),c=P(function(e,t){return t?2*e/t:1},`_calculateRatio`),s=P(function(e,t){var n,r,i,a,o;for([i,a]=[e.length,t.length],n=r=0,o=v(i,a);0<=o?r<o:r>o;n=0<=o?++r:--r){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return i-a},`_arrayCmp`),f=P(function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},`_has`),o=P(function(e){var t,n,r;for(n=0,r=e.length;n<r;n++)if(t=e[n],t)return!0;return!1},`_any`),a=class{static{P(this,`SequenceMatcher`)}constructor(e,t=``,n=``,r=!0){this.isjunk=e,this.autojunk=r,this.a=this.b=null,this.setSeqs(t,n)}setSeqs(e,t){return this.setSeq1(e),this.setSeq2(t)}setSeq1(e){if(e!==this.a)return this.a=e,this.matchingBlocks=this.opcodes=null}setSeq2(e){if(e!==this.b)return this.b=e,this.matchingBlocks=this.opcodes=null,this.fullbcount=null,this._chainB()}_chainB(){var e=this.b,t,n,r,i,a,o,s,c,l,u,d;for(this.b2j=t=new Map,r=s=0,c=e.length;s<c;r=++s)n=e[r],t.has(n)||t.set(n,[]),i=t.get(n),i.push(r);return o=new Map,a=this.isjunk,a&&t.forEach(function(e,n){if(a(n))return o.set(n,!0),t.delete(n)}),d=new Map,l=e.length,this.autojunk&&l>=200&&(u=h(l/100)+1,t.forEach(function(e,n){if(e.length>u)return d.set(n,!0),t.delete(n)})),this.isbjunk=function(e){return o.has(e)},this.isbpopular=function(e){return d.has(e)}}findLongestMatch(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x;for([i,a,o,d]=[this.a,this.b,this.b2j,this.isbjunk],[s,c,l]=[e,n,0],p={},u=g=b=e,x=t;b<=x?g<x:g>x;u=b<=x?++g:--g){for(y={},m=[],o.has(i[u])&&(m=o.get(i[u])),v=0,_=m.length;v<_;v++)if(f=m[v],!(f<n)){if(f>=r)break;h=y[f]=(p[f-1]||0)+1,h>l&&([s,c,l]=[u-h+1,f-h+1,h])}p=y}for(;s>e&&c>n&&!d(a[c-1])&&i[s-1]===a[c-1];)[s,c,l]=[s-1,c-1,l+1];for(;s+l<t&&c+l<r&&!d(a[c+l])&&i[s+l]===a[c+l];)l++;for(;s>e&&c>n&&d(a[c-1])&&i[s-1]===a[c-1];)[s,c,l]=[s-1,c-1,l+1];for(;s+l<t&&c+l<r&&d(a[c+l])&&i[s+l]===a[c+l];)l++;return[s,c,l]}getMatchingBlocks(){var e,t,n,r,i,a,o,c,l,u,d,f,p,m,h,g,_,v,y,b,x;if(this.matchingBlocks)return this.matchingBlocks;for([h,g]=[this.a.length,this.b.length],b=[[0,h,0,g]],v=[];b.length;)[t,e,r,n]=b.pop(),[i,c,d]=x=this.findLongestMatch(t,e,r,n),d&&(v.push(x),t<i&&r<c&&b.push([t,i,r,c]),i+d<e&&c+d<n&&b.push([i+d,e,c+d,n]));for(v.sort(s),a=l=f=0,y=[],m=0,_=v.length;m<_;m++)[o,u,p]=v[m],a+f===o&&l+f===u?f+=p:(f&&y.push([a,l,f]),[a,l,f]=[o,u,p]);return f&&y.push([a,l,f]),y.push([h,g,0]),this.matchingBlocks=y}getOpcodes(){var e,t,n,r,i,a,o,s,c,l;if(this.opcodes)return this.opcodes;for(r=i=0,this.opcodes=t=[],s=this.getMatchingBlocks(),a=0,o=s.length;a<o;a++)[e,n,c]=s[a],l=``,r<e&&i<n?l=`replace`:r<e?l=`delete`:i<n&&(l=`insert`),l&&t.push([l,r,e,i,n]),[r,i]=[e+c,n+c],c&&t.push([`equal`,e,r,n,i]);return t}getGroupedOpcodes(e=3){var t=this.getOpcodes(),n,r,i,a,o,s,c,l,u,d;for(t.length||(t=[[`equal`,0,1,0,1]]),t[0][0]===`equal`&&([d,i,a,o,s]=t[0],t[0]=[d,_(i,a-e),a,_(o,s-e),s]),t[t.length-1][0]===`equal`&&([d,i,a,o,s]=t[t.length-1],t[t.length-1]=[d,i,v(a,i+e),o,v(s,o+e)]),u=e+e,r=[],n=[],c=0,l=t.length;c<l;c++)[d,i,a,o,s]=t[c],d===`equal`&&a-i>u&&(n.push([d,i,v(a,i+e),o,v(s,o+e)]),r.push(n),n=[],[i,o]=[_(i,a-e),_(o,s-e)]),n.push([d,i,a,o,s]);return n.length&&!(n.length===1&&n[0][0]===`equal`)&&r.push(n),r}ratio(){var e,t,n,r=0,i=this.getMatchingBlocks();for(e=0,t=i.length;e<t;e++)n=i[e],r+=n[2];return c(r,this.a.length+this.b.length)}quickRatio(){var e,t,n,r,i,a,o,s,l,u,d;if(!this.fullbcount)for(this.fullbcount=n={},u=this.b,r=0,i=u.length;r<i;r++)t=u[r],n[t]=(n[t]||0)+1;for(n=this.fullbcount,e={},s=0,d=this.a,o=0,a=d.length;o<a;o++)t=d[o],l=f(e,t)?e[t]:n[t]||0,e[t]=l-1,l>0&&s++;return c(s,this.a.length+this.b.length)}realQuickRatio(){var e,t;return[e,t]=[this.a.length,this.b.length],c(v(e,t),e+t)}},g=P(function(e,t,r=3,i=.6){var o,c,l,u,d,f,p,m,h;if(!(r>0))throw Error(`n must be > 0: (${r})`);if(!(0<=i&&i<=1))throw Error(`cutoff must be in [0.0, 1.0]: (${i})`);for(d=[],p=new a,p.setSeq2(e),o=0,c=t.length;o<c;o++)h=t[o],p.setSeq1(h),p.realQuickRatio()>=i&&p.quickRatio()>=i&&p.ratio()>=i&&d.push([p.ratio(),h]);for(d=n.nlargest(d,r,s),f=[],u=0,l=d.length;u<l;u++)[m,h]=d[u],f.push(h);return f},`getCloseMatches`),l=P(function(e,t){var n,r;for([n,r]=[0,e.length];n<r&&e[n]===t;)n++;return n},`_countLeading`),t=class{static{P(this,`Differ`)}constructor(e,t){this.linejunk=e,this.charjunk=t}compare(e,t){var n,r,i,o,s=new a(this.linejunk,e,t),c,l,u,d,f,p=[],m,h=s.getOpcodes(),g;for(l=0,u=h.length;l<u;l++){switch([g,r,n,o,i]=h[l],g){case`replace`:c=this._fancyReplace(e,r,n,t,o,i);break;case`delete`:c=this._dump(`-`,e,r,n);break;case`insert`:c=this._dump(`+`,t,o,i);break;case`equal`:c=this._dump(` `,e,r,n);break;default:throw Error(`unknow tag (${g})`)}for(m=0,d=c.length;m<d;m++)f=c[m],p.push(f)}return p}_dump(e,t,n,r){var i,a,o,s,c=[];for(i=a=o=n,s=r;o<=s?a<s:a>s;i=o<=s?++a:--a)c.push(`${e} ${t[i]}`);return c}_plainReplace(e,t,n,r,i,a){var o,s,c,l,u,d,f,m,h,g;for(p(t<n&&i<a),a-i<n-t?(o=this._dump(`+`,r,i,a),g=this._dump(`-`,e,t,n)):(o=this._dump(`-`,e,t,n),g=this._dump(`+`,r,i,a)),f=[],h=[o,g],c=0,l=h.length;c<l;c++)for(s=h[c],m=0,u=s.length;m<u;m++)d=s[m],f.push(d);return f}_fancyReplace(e,t,n,r,i,o){var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,ee,O,te,ne,k,A,j,re,ie,ae,oe,se,ce,le,ue,de,fe,pe,M,me,he,ge,_e,ve;for([p,x]=[.74,.75],b=new a(this.charjunk),[S,C]=[null,null],re=[],T=E=le=i,ue=o;le<=ue?E<ue:E>ue;T=le<=ue?++E:--E)for(g=r[T],b.setSeq2(g),w=ie=de=t,fe=n;de<=fe?ie<fe:ie>fe;w=de<=fe?++ie:--ie){if(c=e[w],c===g){S===null&&([S,C]=[w,T]);continue}b.setSeq1(c),b.realQuickRatio()>p&&b.quickRatio()>p&&b.ratio()>p&&([p,m,h]=[b.ratio(),w,T])}if(p<x){if(S===null){for(pe=this._plainReplace(e,t,n,r,i,o),ae=0,O=pe.length;ae<O;ae++)j=pe[ae],re.push(j);return re}[m,h,p]=[S,C,1]}else S=null;for(M=this._fancyHelper(e,t,m,r,i,h),oe=0,te=M.length;oe<te;oe++)j=M[oe],re.push(j);if([s,f]=[e[m],r[h]],S===null){for(d=y=``,b.setSeqs(s,f),me=b.getOpcodes(),se=0,ne=me.length;se<ne;se++)switch([ve,l,u,_,v]=me[se],[D,ee]=[u-l,v-_],ve){case`replace`:d+=Array(D+1).join(`^`),y+=Array(ee+1).join(`^`);break;case`delete`:d+=Array(D+1).join(`-`);break;case`insert`:y+=Array(ee+1).join(`+`);break;case`equal`:d+=Array(D+1).join(` `),y+=Array(ee+1).join(` `);break;default:throw Error(`unknow tag (${ve})`)}for(he=this._qformat(s,f,d,y),ce=0,k=he.length;ce<k;ce++)j=he[ce],re.push(j)}else re.push(` `+s);for(ge=this._fancyHelper(e,m+1,n,r,h+1,o),_e=0,A=ge.length;_e<A;_e++)j=ge[_e],re.push(j);return re}_fancyHelper(e,t,n,r,i,a){var o=[];return t<n?o=i<a?this._fancyReplace(e,t,n,r,i,a):this._dump(`-`,e,t,n):i<a&&(o=this._dump(`+`,r,i,a)),o}_qformat(e,t,n,r){var i,a=[];return i=v(l(e,` `),l(t,` `)),i=v(i,l(n.slice(0,i),` `)),i=v(i,l(r.slice(0,i),` `)),n=n.slice(i).replace(/\s+$/,``),r=r.slice(i).replace(/\s+$/,``),a.push(`- `+e),n.length&&a.push(`? ${Array(i+1).join(` `)}${n}
|
|
2
|
+
import{i as e,n as t,t as n}from"./source-38bULAR8.mjs";import{i as r}from"./dotenv-CcQjGlV0.mjs";import{At as i,B as a,C as o,Ct as s,Et as c,F as l,H as u,J as d,Ot as f,P as p,S as m,St as h,T as g,Tt as _,U as v,W as y,X as b,Z as x,_t as S,at as C,b as w,bt as T,ct as E,dt as D,f as ee,ft as O,gt as te,ht as ne,k,kt as A,lt as j,mt as re,n as ie,nt as ae,o as oe,ot as se,p as ce,pt as le,r as ue,rt as de,st as fe,u as pe,ut as M,vt as me,x as he,y as ge,yt as _e,z as ve}from"./dist-BuCJ_55d.mjs";import{a as ye,c as be,i as N,o as P,r as xe,s as Se,t as Ce}from"./chunk-KKDV4JPS-DdzLLtnl.mjs";import{A as we,C as Te,D as Ee,E as De,T as Oe,a as ke,b as Ae,c as je,d as Me,f as Ne,h as Pe,j as Fe,k as Ie,o as Le,p as Re,r as ze,w as Be,y as Ve}from"./interactive-C-o16XQs.mjs";import{C as He,E as Ue,S as We,a as Ge,b as Ke,g as qe,h as Je,i as Ye,n as Xe,p as Ze,r as Qe,s as $e,t as et,v as tt}from"./dist-CxGYQfpW.mjs";import{s as nt}from"./build-B-tN7mO-.mjs";import{createRequire as rt}from"node:module";import{setTimeout as it}from"node:timers/promises";import{createReadStream as at,mkdirSync as ot,readFileSync as st,writeFileSync as ct}from"node:fs";import*as lt from"node:path";import ut,{extname as dt,isAbsolute as ft,resolve as pt,sep as mt}from"node:path";import ht,{URLSearchParams as gt}from"node:url";import{access as _t,readFile as vt,readdir as yt,stat as bt,writeFile as xt}from"node:fs/promises";import F from"node:assert";import{isDeepStrictEqual as St}from"node:util";import{Blob as Ct}from"node:buffer";import{gzipSync as wt}from"node:zlib";import{createHash as Tt}from"node:crypto";import{execSync as Et}from"node:child_process";import{getFreshSourceMapSupport as Dt,getNodeCompat as Ot}from"miniflare";import kt from"node:readline";import{hash as At}from"blake3-wasm";import{convertToWranglerConfig as jt}from"@cloudflare/config";rt(import.meta.url||(typeof __filename==`string`?__filename:`/`));var I,L,Mt,Nt,Pt,Ft,It;function Lt(e){I=e.logger,L=e.fetchResult,Mt=e.fetchListResult,Nt=e.fetchPagedListResult,e.fetchKVGetValue,Pt=e.confirm,Ft=e.prompt,It=e.select}P(Lt,`initDeployHelpersContext`);var Rt=t(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)})),zt=a(),Bt=e(Rt(),1),Vt=class e extends Error{name=`TimeoutError`;constructor(t,n){super(t,n),Error.captureStackTrace?.(this,e)}};const Ht=e=>e.reason??new DOMException(`This operation was aborted.`,`AbortError`);function Ut(e,t){let{milliseconds:n,fallback:r,message:i,customTimers:a={setTimeout,clearTimeout},signal:o}=t,s,c,l=new Promise((t,l)=>{if(typeof n!=`number`||Math.sign(n)!==1)throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(o?.aborted){l(Ht(o));return}if(o&&(c=()=>{l(Ht(o))},o.addEventListener(`abort`,c,{once:!0})),e.then(t,l),n===1/0)return;let u=new Vt;s=a.setTimeout.call(void 0,()=>{if(r){try{t(r())}catch(e){l(e)}return}typeof e.cancel==`function`&&e.cancel(),i===!1?t():i instanceof Error?l(i):(u.message=i??`Promise timed out after ${n} milliseconds`,l(u))},n)}).finally(()=>{l.clear(),c&&o&&o.removeEventListener(`abort`,c)});return l.clear=()=>{a.clearTimeout.call(void 0,s),s=void 0},l}function Wt(e,t,n){let r=0,i=e.length;for(;i>0;){let a=Math.trunc(i/2),o=r+a;n(e[o],t)<=0?(r=++o,i-=a+1):i=a}return r}var Gt=class{#e=[];enqueue(e,t){let{priority:n=0,id:r}=t??{},i={priority:n,id:r,run:e};if(this.size===0||this.#e[this.size-1].priority>=n){this.#e.push(i);return}let a=Wt(this.#e,i,(e,t)=>t.priority-e.priority);this.#e.splice(a,0,i)}setPriority(e,t){let n=this.#e.findIndex(t=>t.id===e);if(n===-1)throw ReferenceError(`No promise function with the id "${e}" exists in the queue.`);let[r]=this.#e.splice(n,1);this.enqueue(r.run,{priority:t,id:e})}dequeue(){return this.#e.shift()?.run}filter(e){return this.#e.filter(t=>t.priority===e.priority).map(e=>e.run)}get size(){return this.#e.length}},Kt=class extends Bt.default{#e;#t;#n=0;#r;#i=!1;#a=!1;#o;#s=0;#c=0;#l;#u;#d;#f;#p=0;#m;#h;#g=1n;#_=new Map;timeout;constructor(e){if(super(),e={carryoverIntervalCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:Gt,...e},!(typeof e.intervalCap==`number`&&e.intervalCap>=1))throw TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${e.intervalCap?.toString()??``}\` (${typeof e.intervalCap})`);if(e.interval===void 0||!(Number.isFinite(e.interval)&&e.interval>=0))throw TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${e.interval?.toString()??``}\` (${typeof e.interval})`);if(this.#e=e.carryoverIntervalCount??e.carryoverConcurrencyCount??!1,this.#t=e.intervalCap===1/0||e.interval===0,this.#r=e.intervalCap,this.#o=e.interval,this.#d=new e.queueClass,this.#f=e.queueClass,this.concurrency=e.concurrency,e.timeout!==void 0&&!(Number.isFinite(e.timeout)&&e.timeout>0))throw TypeError(`Expected \`timeout\` to be a positive finite number, got \`${e.timeout}\` (${typeof e.timeout})`);this.timeout=e.timeout,this.#h=e.autoStart===!1,this.#M()}get#v(){return this.#t||this.#n<this.#r}get#y(){return this.#p<this.#m}#b(){this.#p--,this.#p===0&&this.emit(`pendingZero`),this.#E(),this.emit(`next`)}#x(){this.#O(),this.#D(),this.#u=void 0}get#S(){let e=Date.now();if(this.#l===void 0){let t=this.#s-e;if(t<0){if(this.#c>0){let t=e-this.#c;if(t<this.#o)return this.#C(this.#o-t),!0}this.#n=this.#e?this.#p:0}else return this.#C(t),!0}return!1}#C(e){this.#u===void 0&&(this.#u=setTimeout(()=>{this.#x()},e))}#w(){this.#l&&=(clearInterval(this.#l),void 0)}#T(){this.#u&&=(clearTimeout(this.#u),void 0)}#E(){if(this.#d.size===0)return this.#w(),this.emit(`empty`),this.#p===0&&(this.#T(),this.emit(`idle`)),!1;let e=!1;if(!this.#h){let t=!this.#S;if(this.#v&&this.#y){let n=this.#d.dequeue();this.#t||(this.#n++,this.#N()),this.emit(`active`),this.#c=Date.now(),n(),t&&this.#D(),e=!0}}return e}#D(){this.#t||this.#l!==void 0||(this.#l=setInterval(()=>{this.#O()},this.#o),this.#s=Date.now()+this.#o)}#O(){this.#n===0&&this.#p===0&&this.#l&&this.#w(),this.#n=this.#e?this.#p:0,this.#k(),this.#N()}#k(){for(;this.#E(););}get concurrency(){return this.#m}set concurrency(e){if(!(typeof e==`number`&&e>=1))throw TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this.#m=e,this.#k()}async#A(e){return new Promise((t,n)=>{e.addEventListener(`abort`,()=>{n(e.reason)},{once:!0})})}setPriority(e,t){if(typeof t!=`number`||!Number.isFinite(t))throw TypeError(`Expected \`priority\` to be a finite number, got \`${t}\` (${typeof t})`);this.#d.setPriority(e,t)}async add(e,t={}){return t.id??=(this.#g++).toString(),t={timeout:this.timeout,...t},new Promise((n,r)=>{let i=Symbol(`task-${t.id}`);this.#d.enqueue(async()=>{this.#p++,this.#_.set(i,{id:t.id,priority:t.priority??0,startTime:Date.now(),timeout:t.timeout});try{try{t.signal?.throwIfAborted()}catch(e){throw this.#t||this.#n--,this.#_.delete(i),e}let r=e({signal:t.signal});t.timeout&&(r=Ut(Promise.resolve(r),{milliseconds:t.timeout,message:`Task timed out after ${t.timeout}ms (queue has ${this.#p} running, ${this.#d.size} waiting)`})),t.signal&&(r=Promise.race([r,this.#A(t.signal)]));let a=await r;n(a),this.emit(`completed`,a)}catch(e){r(e),this.emit(`error`,e)}finally{this.#_.delete(i),queueMicrotask(()=>{this.#b()})}},t),this.emit(`add`),this.#E()})}async addAll(e,t){return Promise.all(e.map(async e=>this.add(e,t)))}start(){return this.#h?(this.#h=!1,this.#k(),this):this}pause(){this.#h=!0}clear(){this.#d=new this.#f,this.#P()}async onEmpty(){this.#d.size!==0&&await this.#j(`empty`)}async onSizeLessThan(e){this.#d.size<e||await this.#j(`next`,()=>this.#d.size<e)}async onIdle(){this.#p===0&&this.#d.size===0||await this.#j(`idle`)}async onPendingZero(){this.#p!==0&&await this.#j(`pendingZero`)}async onRateLimit(){this.isRateLimited||await this.#j(`rateLimit`)}async onRateLimitCleared(){this.isRateLimited&&await this.#j(`rateLimitCleared`)}async onError(){return new Promise((e,t)=>{let n=e=>{this.off(`error`,n),t(e)};this.on(`error`,n)})}async#j(e,t){return new Promise(n=>{let r=()=>{t&&!t()||(this.off(e,r),n())};this.on(e,r)})}get size(){return this.#d.size}sizeBy(e){return this.#d.filter(e).length}get pending(){return this.#p}get isPaused(){return this.#h}#M(){this.#t||(this.on(`add`,()=>{this.#d.size>0&&this.#N()}),this.on(`next`,()=>{this.#N()}))}#N(){this.#t||this.#a||(this.#a=!0,queueMicrotask(()=>{this.#a=!1,this.#P()}))}#P(){let e=this.#i,t=!this.#t&&this.#n>=this.#r&&this.#d.size>0;t!==e&&(this.#i=t,this.emit(t?`rateLimit`:`rateLimitCleared`))}get isRateLimited(){return this.#i}get isSaturated(){return this.#p===this.#m&&this.#d.size>0||this.isRateLimited&&this.#d.size>0}get runningTasks(){return[...this.#_.values()].map(e=>({...e}))}};const qt=[`B`,`kB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],Jt=[`B`,`KiB`,`MiB`,`GiB`,`TiB`,`PiB`,`EiB`,`ZiB`,`YiB`],Yt=[`b`,`kbit`,`Mbit`,`Gbit`,`Tbit`,`Pbit`,`Ebit`,`Zbit`,`Ybit`],Xt=[`b`,`kibit`,`Mibit`,`Gibit`,`Tibit`,`Pibit`,`Eibit`,`Zibit`,`Yibit`],Zt=(e,t,n)=>{let r=e;return typeof t==`string`||Array.isArray(t)?r=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(r=e.toLocaleString(void 0,n)),r};function Qt(e,t){if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};let n=t.bits?t.binary?Xt:Yt:t.binary?Jt:qt,r=t.space?` `:``;if(t.signed&&e===0)return` 0${r}${n[0]}`;let i=e<0,a=i?`-`:t.signed?`+`:``;i&&(e=-e);let o;if(t.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:t.maximumFractionDigits,...o}),e<1)return a+Zt(e,t.locale,o)+r+n[0];let s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**s,o||(e=e.toPrecision(3));let c=Zt(Number(e),t.locale,o),l=n[s];return a+c+r+l}var $t=r();rt(import.meta.url||(typeof __filename==`string`?__filename:`/`));var en=N({"../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js"(e,t){function n(e){return Array.isArray(e)?e:[e]}P(n,`makeArray`);var r=``,i=` `,a=`\\`,o=/^\s+$/,s=/(?:[^\\]|^)\\$/,c=/^\\!/,l=/^\\#/,u=/\r?\n/g,d=/^\.*\/|^\.+$/,f=`/`,p=`node-ignore`;typeof Symbol<`u`&&(p=Symbol.for(`node-ignore`));var m=p,h=P((e,t,n)=>Object.defineProperty(e,t,{value:n}),`define`),g=/([0-z])-([0-z])/g,_=P(()=>!1,`RETURN_FALSE`),v=P(e=>e.replace(g,(e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:r),`sanitizeRange`),y=P(e=>{let{length:t}=e;return e.slice(0,t-t%2)},`cleanRangeBackSlash`),b=[[/^\uFEFF/,()=>r],[/\\?\s+$/,e=>e.indexOf(`\\`)===0?i:r],[/\\\s/g,()=>i],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>`[^/]`],[/^\//,()=>`^`],[/\//g,()=>`\\/`],[/^\^*\\\*\\\*\\\//,()=>`^(?:.*\\/)?`],[/^(?=[^^])/,P(function(){return/\/(?!$)/.test(this)?`^`:`(?:^|\\/)`},`startingReplacer`)],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?`(?:\\/[^\\/]+)*`:`\\/.+`],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,`[^\\/]*`)],[/\\\\\\(?=[$.|*+(){^])/g,()=>a],[/\\\\/g,()=>a],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,i)=>t===a?`\\[${n}${y(r)}${i}`:i===`]`&&r.length%2==0?`[${v(n)}${r}]`:`[]`],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:`[^/]*`}(?=$|\\/$)`]],x=Object.create(null),S=P((e,t)=>{let n=x[e];return n||(n=b.reduce((t,n)=>t.replace(n[0],n[1].bind(e)),e),x[e]=n),t?new RegExp(n,`i`):new RegExp(n)},`makeRegex`),C=P(e=>typeof e==`string`,`isString`),w=P(e=>e&&C(e)&&!o.test(e)&&!s.test(e)&&e.indexOf(`#`)!==0,`checkPattern`),T=P(e=>e.split(u),`splitPattern`),E=class{static{P(this,`IgnoreRule`)}constructor(e,t,n,r){this.origin=e,this.pattern=t,this.negative=n,this.regex=r}},D=P((e,t)=>{let n=e,r=!1;e.indexOf(`!`)===0&&(r=!0,e=e.substr(1)),e=e.replace(c,`!`).replace(l,`#`);let i=S(e,t);return new E(n,e,r,i)},`createRule`),ee=P((e,t)=>{throw new t(e)},`throwError`),O=P((e,t,n)=>C(e)?e?O.isNotRelative(e)?n(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:n(`path must not be empty`,TypeError):n(`path must be a string, but got \`${t}\``,TypeError),`checkPath`),te=P(e=>d.test(e),`isNotRelative`);O.isNotRelative=te,O.convert=e=>e;var ne=class{static{P(this,`Ignore`)}constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){h(this,m,!0),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[m]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(w(e)){let t=D(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,n(C(e)?T(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach(i=>{let{negative:a}=i;r===a&&n!==r||a&&!n&&!r&&!t||i.regex.test(e)&&(n=!a,r=a)}),{ignored:n,unignored:r}}_test(e,t,n,r){let i=e&&O.convert(e);return O(i,e,this._allowRelativePaths?_:ee),this._t(i,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||=e.split(f),r.pop(),!r.length)return t[e]=this._testOne(e,n);let i=this._t(r.join(f)+f,t,n,r);return t[e]=i.ignored?i:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return n(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},k=P(e=>new ne(e),`factory`);if(k.isPathValid=P(e=>O(e&&O.convert(e),e,_),`isPathValid`),k.default=k,t.exports=k,typeof process<`u`&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform===`win32`)){O.convert=P(e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,`/`),`makePosix`);let e=/^[a-z]:\//i;O.isNotRelative=t=>e.test(t)||te(t)}}}),tn=N({"../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/lib/heap.js"(e,t){(function(){var n,r,i=Math.floor,a,o,s,c,l,u,d=Math.min,f,p,m,h,g;r=P(function(e,t){return e<t?-1:+(e>t)},`defaultCmp`),u=P(function(e,t,n,a,o){var s;if(n??=0,o??=r,n<0)throw Error(`lo must be non-negative`);for(a??=e.length;n<a;)s=i((n+a)/2),o(t,e[s])<0?a=s:n=s+1;return[].splice.apply(e,[n,n-n].concat(t)),t},`insort`),s=P(function(e,t,n){return n??=r,e.push(t),h(e,0,e.length-1,n)},`heappush`),o=P(function(e,t){var n,i;return t??=r,n=e.pop(),e.length?(i=e[0],e[0]=n,g(e,0,t)):i=n,i},`heappop`),l=P(function(e,t,n){var i;return n??=r,i=e[0],e[0]=t,g(e,0,n),i},`heapreplace`),c=P(function(e,t,n){var i;return n??=r,e.length&&n(e[0],t)<0&&(i=[e[0],t],t=i[0],e[0]=i[1],g(e,0,n)),t},`heappushpop`),a=P(function(e,t){var n,a,o,s,c,l;for(t??=r,s=function(){l=[];for(var t=0,n=i(e.length/2);0<=n?t<n:t>n;0<=n?t++:t--)l.push(t);return l}.apply(this).reverse(),c=[],a=0,o=s.length;a<o;a++)n=s[a],c.push(g(e,n,t));return c},`heapify`),m=P(function(e,t,n){var i;if(n??=r,i=e.indexOf(t),i!==-1)return h(e,0,i,n),g(e,i,n)},`updateItem`),f=P(function(e,t,n){var i,o,s,l,u;if(n??=r,o=e.slice(0,t),!o.length)return o;for(a(o,n),u=e.slice(t),s=0,l=u.length;s<l;s++)i=u[s],c(o,i,n);return o.sort(n).reverse()},`nlargest`),p=P(function(e,t,n){var i,s,c,l,f,p,m,h,g;if(n??=r,t*10<=e.length){if(c=e.slice(0,t).sort(n),!c.length)return c;for(s=c[c.length-1],m=e.slice(t),l=0,p=m.length;l<p;l++)i=m[l],n(i,s)<0&&(u(c,i,0,null,n),c.pop(),s=c[c.length-1]);return c}for(a(e,n),g=[],f=0,h=d(t,e.length);0<=h?f<h:f>h;0<=h?++f:--f)g.push(o(e,n));return g},`nsmallest`),h=P(function(e,t,n,i){var a,o,s;for(i??=r,a=e[n];n>t;){if(s=n-1>>1,o=e[s],i(a,o)<0){e[n]=o,n=s;continue}break}return e[n]=a},`_siftdown`),g=P(function(e,t,n){var i,a,o,s,c;for(n??=r,a=e.length,c=t,o=e[t],i=2*t+1;i<a;)s=i+1,s<a&&!(n(e[i],e[s])<0)&&(i=s),e[t]=e[i],t=i,i=2*t+1;return e[t]=o,h(e,c,t,n)},`_siftup`),n=function(){e.push=s,e.pop=o,e.replace=l,e.pushpop=c,e.heapify=a,e.updateItem=m,e.nlargest=f,e.nsmallest=p;function e(e){this.cmp=e??r,this.nodes=[]}return P(e,`Heap`),e.prototype.push=function(e){return s(this.nodes,e,this.cmp)},e.prototype.pop=function(){return o(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return this.nodes.indexOf(e)!==-1},e.prototype.replace=function(e){return l(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return c(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return a(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return m(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return this.nodes.length===0},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t=new e;return t.nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),(function(n,r){return typeof define==`function`&&define.amd?define([],r):typeof e==`object`?t.exports=r():n.Heap=r()})(this,function(){return n})}).call(e)}}),nn=N({"../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/index.js"(e,t){t.exports=tn()}}),rn=N({"../../node_modules/.pnpm/@ewoudenberg+difflib@0.1.0/node_modules/@ewoudenberg/difflib/lib/difflib.js"(e){(function(){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S=[].indexOf;({floor:h,max:_,min:v}=Math),n=nn(),p=Se(`assert`),c=P(function(e,t){return t?2*e/t:1},`_calculateRatio`),s=P(function(e,t){var n,r,i,a,o;for([i,a]=[e.length,t.length],n=r=0,o=v(i,a);0<=o?r<o:r>o;n=0<=o?++r:--r){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return i-a},`_arrayCmp`),f=P(function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},`_has`),o=P(function(e){var t,n,r;for(n=0,r=e.length;n<r;n++)if(t=e[n],t)return!0;return!1},`_any`),a=class{static{P(this,`SequenceMatcher`)}constructor(e,t=``,n=``,r=!0){this.isjunk=e,this.autojunk=r,this.a=this.b=null,this.setSeqs(t,n)}setSeqs(e,t){return this.setSeq1(e),this.setSeq2(t)}setSeq1(e){if(e!==this.a)return this.a=e,this.matchingBlocks=this.opcodes=null}setSeq2(e){if(e!==this.b)return this.b=e,this.matchingBlocks=this.opcodes=null,this.fullbcount=null,this._chainB()}_chainB(){var e=this.b,t,n,r,i,a,o,s,c,l,u,d;for(this.b2j=t=new Map,r=s=0,c=e.length;s<c;r=++s)n=e[r],t.has(n)||t.set(n,[]),i=t.get(n),i.push(r);return o=new Map,a=this.isjunk,a&&t.forEach(function(e,n){if(a(n))return o.set(n,!0),t.delete(n)}),d=new Map,l=e.length,this.autojunk&&l>=200&&(u=h(l/100)+1,t.forEach(function(e,n){if(e.length>u)return d.set(n,!0),t.delete(n)})),this.isbjunk=function(e){return o.has(e)},this.isbpopular=function(e){return d.has(e)}}findLongestMatch(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x;for([i,a,o,d]=[this.a,this.b,this.b2j,this.isbjunk],[s,c,l]=[e,n,0],p={},u=g=b=e,x=t;b<=x?g<x:g>x;u=b<=x?++g:--g){for(y={},m=[],o.has(i[u])&&(m=o.get(i[u])),v=0,_=m.length;v<_;v++)if(f=m[v],!(f<n)){if(f>=r)break;h=y[f]=(p[f-1]||0)+1,h>l&&([s,c,l]=[u-h+1,f-h+1,h])}p=y}for(;s>e&&c>n&&!d(a[c-1])&&i[s-1]===a[c-1];)[s,c,l]=[s-1,c-1,l+1];for(;s+l<t&&c+l<r&&!d(a[c+l])&&i[s+l]===a[c+l];)l++;for(;s>e&&c>n&&d(a[c-1])&&i[s-1]===a[c-1];)[s,c,l]=[s-1,c-1,l+1];for(;s+l<t&&c+l<r&&d(a[c+l])&&i[s+l]===a[c+l];)l++;return[s,c,l]}getMatchingBlocks(){var e,t,n,r,i,a,o,c,l,u,d,f,p,m,h,g,_,v,y,b,x;if(this.matchingBlocks)return this.matchingBlocks;for([h,g]=[this.a.length,this.b.length],b=[[0,h,0,g]],v=[];b.length;)[t,e,r,n]=b.pop(),[i,c,d]=x=this.findLongestMatch(t,e,r,n),d&&(v.push(x),t<i&&r<c&&b.push([t,i,r,c]),i+d<e&&c+d<n&&b.push([i+d,e,c+d,n]));for(v.sort(s),a=l=f=0,y=[],m=0,_=v.length;m<_;m++)[o,u,p]=v[m],a+f===o&&l+f===u?f+=p:(f&&y.push([a,l,f]),[a,l,f]=[o,u,p]);return f&&y.push([a,l,f]),y.push([h,g,0]),this.matchingBlocks=y}getOpcodes(){var e,t,n,r,i,a,o,s,c,l;if(this.opcodes)return this.opcodes;for(r=i=0,this.opcodes=t=[],s=this.getMatchingBlocks(),a=0,o=s.length;a<o;a++)[e,n,c]=s[a],l=``,r<e&&i<n?l=`replace`:r<e?l=`delete`:i<n&&(l=`insert`),l&&t.push([l,r,e,i,n]),[r,i]=[e+c,n+c],c&&t.push([`equal`,e,r,n,i]);return t}getGroupedOpcodes(e=3){var t=this.getOpcodes(),n,r,i,a,o,s,c,l,u,d;for(t.length||(t=[[`equal`,0,1,0,1]]),t[0][0]===`equal`&&([d,i,a,o,s]=t[0],t[0]=[d,_(i,a-e),a,_(o,s-e),s]),t[t.length-1][0]===`equal`&&([d,i,a,o,s]=t[t.length-1],t[t.length-1]=[d,i,v(a,i+e),o,v(s,o+e)]),u=e+e,r=[],n=[],c=0,l=t.length;c<l;c++)[d,i,a,o,s]=t[c],d===`equal`&&a-i>u&&(n.push([d,i,v(a,i+e),o,v(s,o+e)]),r.push(n),n=[],[i,o]=[_(i,a-e),_(o,s-e)]),n.push([d,i,a,o,s]);return n.length&&!(n.length===1&&n[0][0]===`equal`)&&r.push(n),r}ratio(){var e,t,n,r=0,i=this.getMatchingBlocks();for(e=0,t=i.length;e<t;e++)n=i[e],r+=n[2];return c(r,this.a.length+this.b.length)}quickRatio(){var e,t,n,r,i,a,o,s,l,u,d;if(!this.fullbcount)for(this.fullbcount=n={},u=this.b,r=0,i=u.length;r<i;r++)t=u[r],n[t]=(n[t]||0)+1;for(n=this.fullbcount,e={},s=0,d=this.a,o=0,a=d.length;o<a;o++)t=d[o],l=f(e,t)?e[t]:n[t]||0,e[t]=l-1,l>0&&s++;return c(s,this.a.length+this.b.length)}realQuickRatio(){var e,t;return[e,t]=[this.a.length,this.b.length],c(v(e,t),e+t)}},g=P(function(e,t,r=3,i=.6){var o,c,l,u,d,f,p,m,h;if(!(r>0))throw Error(`n must be > 0: (${r})`);if(!(0<=i&&i<=1))throw Error(`cutoff must be in [0.0, 1.0]: (${i})`);for(d=[],p=new a,p.setSeq2(e),o=0,c=t.length;o<c;o++)h=t[o],p.setSeq1(h),p.realQuickRatio()>=i&&p.quickRatio()>=i&&p.ratio()>=i&&d.push([p.ratio(),h]);for(d=n.nlargest(d,r,s),f=[],u=0,l=d.length;u<l;u++)[m,h]=d[u],f.push(h);return f},`getCloseMatches`),l=P(function(e,t){var n,r;for([n,r]=[0,e.length];n<r&&e[n]===t;)n++;return n},`_countLeading`),t=class{static{P(this,`Differ`)}constructor(e,t){this.linejunk=e,this.charjunk=t}compare(e,t){var n,r,i,o,s=new a(this.linejunk,e,t),c,l,u,d,f,p=[],m,h=s.getOpcodes(),g;for(l=0,u=h.length;l<u;l++){switch([g,r,n,o,i]=h[l],g){case`replace`:c=this._fancyReplace(e,r,n,t,o,i);break;case`delete`:c=this._dump(`-`,e,r,n);break;case`insert`:c=this._dump(`+`,t,o,i);break;case`equal`:c=this._dump(` `,e,r,n);break;default:throw Error(`unknow tag (${g})`)}for(m=0,d=c.length;m<d;m++)f=c[m],p.push(f)}return p}_dump(e,t,n,r){var i,a,o,s,c=[];for(i=a=o=n,s=r;o<=s?a<s:a>s;i=o<=s?++a:--a)c.push(`${e} ${t[i]}`);return c}_plainReplace(e,t,n,r,i,a){var o,s,c,l,u,d,f,m,h,g;for(p(t<n&&i<a),a-i<n-t?(o=this._dump(`+`,r,i,a),g=this._dump(`-`,e,t,n)):(o=this._dump(`-`,e,t,n),g=this._dump(`+`,r,i,a)),f=[],h=[o,g],c=0,l=h.length;c<l;c++)for(s=h[c],m=0,u=s.length;m<u;m++)d=s[m],f.push(d);return f}_fancyReplace(e,t,n,r,i,o){var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,ee,O,te,ne,k,A,j,re,ie,ae,oe,se,ce,le,ue,de,fe,pe,M,me,he,ge,_e,ve;for([p,x]=[.74,.75],b=new a(this.charjunk),[S,C]=[null,null],re=[],T=E=le=i,ue=o;le<=ue?E<ue:E>ue;T=le<=ue?++E:--E)for(g=r[T],b.setSeq2(g),w=ie=de=t,fe=n;de<=fe?ie<fe:ie>fe;w=de<=fe?++ie:--ie){if(c=e[w],c===g){S===null&&([S,C]=[w,T]);continue}b.setSeq1(c),b.realQuickRatio()>p&&b.quickRatio()>p&&b.ratio()>p&&([p,m,h]=[b.ratio(),w,T])}if(p<x){if(S===null){for(pe=this._plainReplace(e,t,n,r,i,o),ae=0,O=pe.length;ae<O;ae++)j=pe[ae],re.push(j);return re}[m,h,p]=[S,C,1]}else S=null;for(M=this._fancyHelper(e,t,m,r,i,h),oe=0,te=M.length;oe<te;oe++)j=M[oe],re.push(j);if([s,f]=[e[m],r[h]],S===null){for(d=y=``,b.setSeqs(s,f),me=b.getOpcodes(),se=0,ne=me.length;se<ne;se++)switch([ve,l,u,_,v]=me[se],[D,ee]=[u-l,v-_],ve){case`replace`:d+=Array(D+1).join(`^`),y+=Array(ee+1).join(`^`);break;case`delete`:d+=Array(D+1).join(`-`);break;case`insert`:y+=Array(ee+1).join(`+`);break;case`equal`:d+=Array(D+1).join(` `),y+=Array(ee+1).join(` `);break;default:throw Error(`unknow tag (${ve})`)}for(he=this._qformat(s,f,d,y),ce=0,k=he.length;ce<k;ce++)j=he[ce],re.push(j)}else re.push(` `+s);for(ge=this._fancyHelper(e,m+1,n,r,h+1,o),_e=0,A=ge.length;_e<A;_e++)j=ge[_e],re.push(j);return re}_fancyHelper(e,t,n,r,i,a){var o=[];return t<n?o=i<a?this._fancyReplace(e,t,n,r,i,a):this._dump(`-`,e,t,n):i<a&&(o=this._dump(`+`,r,i,a)),o}_qformat(e,t,n,r){var i,a=[];return i=v(l(e,` `),l(t,` `)),i=v(i,l(n.slice(0,i),` `)),i=v(i,l(r.slice(0,i),` `)),n=n.slice(i).replace(/\s+$/,``),r=r.slice(i).replace(/\s+$/,``),a.push(`- `+e),n.length&&a.push(`? ${Array(i+1).join(` `)}${n}
|
|
3
3
|
`),a.push(`+ `+t),r.length&&a.push(`? ${Array(i+1).join(` `)}${r}
|
|
4
4
|
`),a}},i=P(function(e,t=/^\s*#?\s*$/){return t.test(e)},`IS_LINE_JUNK`),r=P(function(e,t=` `){return S.call(t,e)>=0},`IS_CHARACTER_JUNK`),d=P(function(e,t){var n=e+1,r=t-e;return r===1?`${n}`:(r||n--,`${n},${r}`)},`_formatRangeUnified`),x=P(function(e,t,{fromfile:n,tofile:r,fromfiledate:i,tofiledate:o,n:s,lineterm:c}={}){var l,u,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,ee,O,te,ne,k,A,j,re,ie,ae,oe;for(n??=``,r??=``,i??=``,o??=``,s??=3,c??=`
|
|
5
5
|
`,D=[],ie=!1,k=new a(null,e,t).getGroupedOpcodes(),y=0,x=k.length;y<x;y++)for(m=k[y],ie||(ie=!0,p=i?` ${i}`:``,oe=o?` ${o}`:``,D.push(`--- ${n}${p}${c}`),D.push(`+++ ${r}${oe}${c}`)),[f,b]=[m[0],m[m.length-1]],l=d(f[1],b[2]),u=d(f[3],b[4]),D.push(`@@ -${l} +${u} @@${c}`),ee=0,S=m.length;ee<S;ee++){if([ae,h,g,_,v]=m[ee],ae===`equal`){for(A=e.slice(h,g),O=0,C=A.length;O<C;O++)E=A[O],D.push(` `+E);continue}if(ae===`replace`||ae===`delete`)for(j=e.slice(h,g),te=0,w=j.length;te<w;te++)E=j[te],D.push(`-`+E);if(ae===`replace`||ae===`insert`)for(re=t.slice(_,v),ne=0,T=re.length;ne<T;ne++)E=re[ne],D.push(`+`+E)}return D},`unifiedDiff`),u=P(function(e,t){var n=e+1,r=t-e;return r||n--,r<=1?`${n}`:`${n},${n+r-1}`},`_formatRangeContext`),m=P(function(e,t,{fromfile:n,tofile:r,fromfiledate:i,tofiledate:s,n:c,lineterm:l}={}){var d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,ee,O,te,ne,k,A,j,re,ie,ae,oe,se,ce;for(n??=``,r??=``,i??=``,s??=``,c??=3,l??=`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./context-
|
|
2
|
+
import{i as e}from"./context-M2Ho8pi3.mjs";import{r as t}from"./auth-BjxUTZWb.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-BnIv4lh5.mjs";import{t as a}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,i as u,n as d}from"./prompt-DjRAo2Up.mjs";function f(e){return e.usage(`$0 content-scan expressions create
|
|
3
3
|
|
|
4
4
|
Create one or more Content Scanning custom expressions, appending them to the existing list of the zone, and return the updated list. Each expression reaches content objects the scanner cannot find automatically, for example \`lookup_json_string(http.request.body.raw, "file")\`.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Array of Content Scanning custom expressions to create.`})}const p={command:`create`,describe:`Create Content Scanning custom expressions for a zone.`,builder:f,handler:async s=>a({command:`content-scan expressions create`,classification:{safeFlags:[`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf content-scan expressions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/content-upload-scan/payloads`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?void 0:o(s.body)});return}let a=await t(s),c=await e({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=c,s.body){let e=o(s.body);n(await i(`Creating`,async()=>a.contentScan.expressions.create({body:e,zone_id:c})),{successLabel:`Created`});return}if(s.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function m(e){return e.usage(`$0 content-scan expressions delete <expression-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e,r as t}from"./project-settings-DO6njFg_.mjs";import{n}from"./resolve-BCTrtcx7.mjs";function r(e,t){if(t)return{value:t,source:`flag`};let n=process.env[e];if(n)return{value:n,source:`env`}}async function i(n={}){let r=process.env.CLOUDFLARE_ACCOUNT_ID;if(r)return{value:r,source:`env`};if(n.skipProjectSettings)return;let i=t(void 0,n),a=i===void 0?await e(void 0,n):i;if(a?.settings?.accountId)return{value:a.settings.accountId,source:`settings`,path:a.path}}async function a(){let e=await i();if(e)return e.value;let{getActiveAccountId:t}=await import(`./oauth-
|
|
2
|
+
import{i as e,r as t}from"./project-settings-DO6njFg_.mjs";import{n}from"./resolve-BCTrtcx7.mjs";function r(e,t){if(t)return{value:t,source:`flag`};let n=process.env[e];if(n)return{value:n,source:`env`}}async function i(n={}){let r=process.env.CLOUDFLARE_ACCOUNT_ID;if(r)return{value:r,source:`env`};if(n.skipProjectSettings)return;let i=t(void 0,n),a=i===void 0?await e(void 0,n):i;if(a?.settings?.accountId)return{value:a.settings.accountId,source:`settings`,path:a.path}}async function a(){let e=await i();if(e)return e.value;let{getActiveAccountId:t}=await import(`./oauth-D9jA6L9a.mjs`);try{return t()}catch{return}}async function o(e){let t=await i(e);t&&s(t.value,g(t,`accountId`));let{getOrSelectAccountId:n}=await import(`./oauth-D9jA6L9a.mjs`);return n(t?.value,e)}function s(e,t){if(!process.env.DEBUG)return;let n=e.length>12?e.slice(0,12)+`…`:e;process.stderr.write(`Using account: ${n} (${t})\n`)}async function c(e,t,n){if(e?.zoneId)return l(e.zoneId,t);let i=r(`CLOUDFLARE_ZONE_ID`,e?.zone);if(i){if(!n?.quiet&&i.source!==`flag`){let e=g(i);console.error(`Using zone: ${i.value} (from ${e})`)}return l(i.value,t)}throw Error(`No zone specified.
|
|
3
3
|
|
|
4
4
|
Please provide one of the following:
|
|
5
5
|
1. Zone as a positional argument: cf dns records list <zone>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./auth-
|
|
2
|
+
import{r as e}from"./auth-BjxUTZWb.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-BnIv4lh5.mjs";import{t as i}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as a,t as o}from"./body-parser-hh2avzkz.mjs";import{n as s}from"./input-validation-Dk52b0me.mjs";function c(e){return e.usage(`$0 cps get
|
|
3
3
|
|
|
4
4
|
Retrieve the communication preferences for the authenticated user, including email verification status, marketing subscription opt-in/opt-out state, and language locale. Callers authenticate with standard Cloudflare API tokens or keys.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Get communication preferences`,builder:c,handler:async a=>i({command:`cps get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf cps get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/communication_preferences`,pathParams:{},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.cps.get()),{successLabel:`Loaded`})})};function u(e){return e.usage(`$0 cps update
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./context-
|
|
2
|
+
import{i as e}from"./context-M2Ho8pi3.mjs";import{r as t}from"./auth-BjxUTZWb.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-BnIv4lh5.mjs";import{t as a}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";function l(e){return e.usage(`$0 csamScanner edit
|
|
3
3
|
|
|
4
4
|
Update the CSAM Scanner configuration for a zone. Allows enabling or disabling CSAM scanning, updating the notification email, and configuring scanning sources. When a new email is provided, email verification is triggered automatically. The \`enabled\` field is a toggle; the server may adjust it based on whether the notification email is verified. Returns 403 if the zone or account is locked by Trust & Safety.`).option(`id`,{type:`string`,description:`The feature identifier.`,choices:[`csam_scanner`]}).option(`value-email`,{type:`string`,description:`Notification email address for CSAM scan results. When changed,
|
|
5
5
|
email verification is triggered automatically.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./context-
|
|
2
|
+
import{i as e}from"./context-M2Ho8pi3.mjs";import{r as t}from"./auth-BjxUTZWb.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-BnIv4lh5.mjs";import{t as a}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";function c(e){return e.usage(`$0 ct-alerting get
|
|
3
3
|
|
|
4
4
|
Retrieve the Certificate Transparency alerting subscription settings for a zone. Returns whether CT monitoring is enabled and the list of email addresses that receive alerts, if any have been configured.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Get CT Alerting Subscription`,builder:c,handler:async o=>a({command:`ct-alerting get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ct-alerting get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ct/alerting`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.ctAlerting.get({zone_id:s})),{successLabel:`Loaded`})})};function u(e){return e.usage("$0 ct-alerting update\n\nCreate or update the Certificate Transparency alerting subscription for a zone. Enables or disables email notifications when certificates are issued for the zone's domains. The `enabled` field is required on every request and controls whether the subscription is active. The `emails` field is optional and, when provided, replaces the stored recipient list for the zone. When `emails` is omitted, the stored recipient list is preserved and only the enabled state is toggled. A maximum of 100 email addresses may be configured per zone. Requests that omit `enabled` are rejected with error code 1008. Subscribe and unsubscribe notification emails are only sent for recipients whose effective subscription state changes. Idempotent requests (no state change) send no notification email.").option(`emails`,{type:`string`,array:!0,description:`Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
|
|
5
5
|
`}).option(`enabled`,{type:`boolean`,description:`Whether CT alerting is enabled for the zone.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for updating CT alerting subscription settings.`})}const d={command:`update`,describe:`Update CT Alerting Subscription`,builder:u,handler:async c=>a({command:`ct-alerting update`,classification:{safeFlags:[`enabled`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf ct-alerting update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/ct/alerting`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({emails:c.emails,enabled:c.enabled}):o(c.body)});return}let a=await t(c),l=await e({zone:c.zone},a,{quiet:c.quiet});if(c.zoneId=l,c.body){let e=o(c.body);n(await i(`Updating`,async()=>a.ctAlerting.update({...e,zone_id:l})),{successLabel:`Updated`});return}if(c.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let u=s({emails:c.emails,enabled:c.enabled});n(await i(`Updating`,async()=>a.ctAlerting.update({...u,zone_id:l})),{successLabel:`Updated`})})},f={command:`ct-alerting`,describe:`ct-alerting`,builder:e=>e.command(l).command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{f as default};
|