cf 0.15.0 → 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE-APACHE +176 -0
- package/LICENSE-MIT +25 -0
- package/README.md +6 -7
- package/dist/{abuse-reports-BAQR1w79.mjs → abuse-reports-BwsJLiPN.mjs} +1 -1
- package/dist/{access-C8KMplzp.mjs → access-BVbIajYr.mjs} +1 -1
- package/dist/{account-B-KQSR0L.mjs → account-DBLarar2.mjs} +1 -1
- package/dist/{account-tags-EncLJpLc.mjs → account-tags-BNrSShjj.mjs} +1 -1
- package/dist/{accounts-BA4Mp3A_.mjs → accounts-CCAnDjFk.mjs} +1 -1
- package/dist/{acm-ByxUJcqF.mjs → acm-ZPYQbZQr.mjs} +1 -1
- package/dist/{addressing-C-ym0h0G.mjs → addressing-BFpzLfTn.mjs} +1 -1
- package/dist/{agent-memory-CkPSiZDI.mjs → agent-memory-DEvy2dLU.mjs} +1 -1
- package/dist/{ai-DkE_Q64s.mjs → ai-BF0_0NtS.mjs} +1 -1
- package/dist/{ai-audit-pPcjYWI5.mjs → ai-audit-Dn03zntn.mjs} +1 -1
- package/dist/{ai-gateway-DtrwF1lQ.mjs → ai-gateway-CVABbCjv.mjs} +1 -1
- package/dist/{ai-search-DLD_kDS1.mjs → ai-search-g0tR8Cut.mjs} +1 -1
- package/dist/{ai-security-jyZcBl9g.mjs → ai-security-BXXA0Jnk.mjs} +1 -1
- package/dist/{alerting-DOROjm8E.mjs → alerting-Bst10SOG.mjs} +1 -1
- package/dist/{analytics-rQ-h-plT.mjs → analytics-DgEaxta8.mjs} +1 -1
- package/dist/{analytics_engine-Cg9gCAMt.mjs → analytics_engine-B4DvcYmB.mjs} +1 -1
- package/dist/{api-security-B8p8vp8u.mjs → api-security-Dkx1Codr.mjs} +1 -1
- package/dist/{argo-g8SjUb_t.mjs → argo-BvswWPlP.mjs} +1 -1
- package/dist/{artifacts-B1PaeF5h.mjs → artifacts-D8kZKJq0.mjs} +1 -1
- package/dist/{audit-logs-DmU_PHy_.mjs → audit-logs-Bp_yQpXJ.mjs} +1 -1
- package/dist/{auth-CZqics6E.mjs → auth-B9w55oRg.mjs} +1 -1
- package/dist/{auth-Cp7gT-AF.mjs → auth-C80y97yu.mjs} +1 -1
- package/dist/{billing-CvTbUg-H.mjs → billing-Cqj64fqz.mjs} +1 -1
- package/dist/{bot-management-z53tbcbH.mjs → bot-management-CzZx_aml.mjs} +1 -1
- package/dist/{botnet-feed-CSBbJdr_.mjs → botnet-feed-Co0c8Xdj.mjs} +1 -1
- package/dist/{brand-protection-DzV211IQ.mjs → brand-protection-CDsGaPIl.mjs} +1 -1
- package/dist/{browser-extension-C0Hi9CHX.mjs → browser-extension-BRHJm3Qf.mjs} +1 -1
- package/dist/{browser-run-DYQvMAyo.mjs → browser-run-DFrohJ1p.mjs} +1 -1
- package/dist/{build-BPIp8J5F.mjs → build-BbjcJxKq.mjs} +1 -1
- package/dist/build-DQh5-KK4.mjs +2 -0
- package/dist/{builds-CwKRqjQ5.mjs → builds-CamhClyb.mjs} +1 -1
- package/dist/{cache-CugNPPsJ.mjs → cache-BiTk4-Zc.mjs} +1 -1
- package/dist/{certificate-authorities-DaEnJYge.mjs → certificate-authorities-Dal9DNjW.mjs} +1 -1
- package/dist/{client-certificates-DZUIqBTB.mjs → client-certificates-DDisXoTE.mjs} +1 -1
- package/dist/{client-side-security-Dk6F1ENG.mjs → client-side-security-CIO_YPtN.mjs} +1 -1
- package/dist/{cloud-connector-avpf86kG.mjs → cloud-connector-vwdixea0.mjs} +1 -1
- package/dist/{cloudforce-one-DNRhUD8z.mjs → cloudforce-one-C1cFVBGK.mjs} +1 -1
- package/dist/{command-B2Qe-WUa.mjs → command-BP7ldws1.mjs} +1 -1
- package/dist/{command-DIvPLK8x.mjs → command-BtNRBTP6.mjs} +1 -1
- package/dist/{command-D45NW-R3.mjs → command-Ck9rbHA4.mjs} +1 -1
- package/dist/{connector-interrupts-BSztJ-Ko.mjs → connector-interrupts-DQ5T-HMN.mjs} +1 -1
- package/dist/{connector-telemetry-events-_M8CCK6_.mjs → connector-telemetry-events-DWam38_9.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-DySvmR9a.mjs → connector-telemetry-snapshots-DX6AJf9Q.mjs} +1 -1
- package/dist/{connectors-BSmhzNB7.mjs → connectors-CBhLWVd-.mjs} +1 -1
- package/dist/{containers-CFzvhmyz.mjs → containers-Bx_44bmJ.mjs} +1 -1
- package/dist/{containers-B5vDcFzo.mjs → containers-C7blN-pe.mjs} +1 -1
- package/dist/{content-scan-CeLZAcbT.mjs → content-scan-CC91dAlv.mjs} +1 -1
- package/dist/{cps-BlI_Od72.mjs → cps-D9a4N_bH.mjs} +1 -1
- package/dist/{csamScanner-Cn7d0HWS.mjs → csamScanner-T7nbCnep.mjs} +1 -1
- package/dist/{ct-alerting-lhgFPu-y.mjs → ct-alerting-CkjNJlla.mjs} +1 -1
- package/dist/{custom-certificates-Ba4Do5qt.mjs → custom-certificates-DnWnt9oJ.mjs} +1 -1
- package/dist/{custom-csrs-MNUIx8yX.mjs → custom-csrs-Db2pF9Ib.mjs} +1 -1
- package/dist/{custom-hostnames-Dj1SBd0J.mjs → custom-hostnames-B_N-uSIa.mjs} +1 -1
- package/dist/{custom-nameservers-C7nzhNzV.mjs → custom-nameservers-DPA_sFY8.mjs} +1 -1
- package/dist/{custom-pages-BgfhGksj.mjs → custom-pages-D6fxEBoh.mjs} +1 -1
- package/dist/{d1-P2kWbdID.mjs → d1-DXs1xVmH.mjs} +1 -1
- package/dist/{data-security-pBIozmRL.mjs → data-security-CVZAIzhe.mjs} +1 -1
- package/dist/{dcv-delegation-Bpy9WnKZ.mjs → dcv-delegation-as1ue_wx.mjs} +1 -1
- package/dist/{deploy-CVYdt3NK.mjs → deploy-D2XXCkqk.mjs} +1 -1
- package/dist/{deploy-input-DpOgndz4.mjs → deploy-input-BCYyKXpp.mjs} +1 -1
- package/dist/{dev-PPUBjWcm.mjs → dev-nsNxyg2D.mjs} +1 -1
- package/dist/{diagnostics-C62habGQ.mjs → diagnostics-BKH1Oh-C.mjs} +1 -1
- package/dist/{dialog-C_ccBiZp.mjs → dialog-Dx4rRcKM.mjs} +1 -1
- package/dist/{dist-B4pQ4CXK.mjs → dist-BDOzKthe.mjs} +1 -1
- package/dist/{dls-CpkcyQ8C.mjs → dls-C5kAQsN6.mjs} +1 -1
- package/dist/{dns-DG1X4Wap.mjs → dns-CYwXrdJO.mjs} +1 -1
- package/dist/{dns-firewall-B1gGHEDo.mjs → dns-firewall-BEw4QcXj.mjs} +1 -1
- package/dist/{durable-objects-D214VhxH.mjs → durable-objects-3jvUgzKd.mjs} +1 -1
- package/dist/{email-auth-Ba4ONan2.mjs → email-auth-B3MD8FrJ.mjs} +1 -1
- package/dist/{email-routing-BlqKnqNM.mjs → email-routing-C4YhZGPw.mjs} +1 -1
- package/dist/{email-security-Dl1E1Dko.mjs → email-security-BcFyWNby.mjs} +1 -1
- package/dist/{email-sending-DIRSSRIz.mjs → email-sending-BO1GOAho.mjs} +1 -1
- package/dist/{fieldExtractors-zqYKMCEn.mjs → fieldExtractors-BJDnzNCN.mjs} +1 -1
- package/dist/{firewall-DdsDh8GD.mjs → firewall-BSMa9aH3.mjs} +1 -1
- package/dist/{flagship-CkUIVW7c.mjs → flagship-BJYMb7hb.mjs} +1 -1
- package/dist/{fraud-BUpZgvQT.mjs → fraud-C7kS7kP9.mjs} +1 -1
- package/dist/{google-tag-gateway-Bi1uLnEU.mjs → google-tag-gateway-8VR-j0sa.mjs} +1 -1
- package/dist/{healthchecks-DjQWb3EM.mjs → healthchecks-BJleItOD.mjs} +1 -1
- package/dist/{hostnames-ClBLPbct.mjs → hostnames-CHajvoHa.mjs} +1 -1
- package/dist/{hyperdrive-U54xZsWU.mjs → hyperdrive-DlxQrok-.mjs} +1 -1
- package/dist/{iam-T-wWmOep.mjs → iam-B7oTr6vW.mjs} +1 -1
- package/dist/{images-ia5UG1GW.mjs → images-xLAYe436.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{intel-BhswZLMI.mjs → intel-DwZXY1YE.mjs} +1 -1
- package/dist/{ips-Dad_EvhM.mjs → ips-BC_9nKE7.mjs} +1 -1
- package/dist/{keyless-certificates-BhHaxLjM.mjs → keyless-certificates-CtsCsbZ2.mjs} +1 -1
- package/dist/{keys-DjIPvqj4.mjs → keys-K-GFzhku.mjs} +1 -1
- package/dist/{kv-DzXVnK94.mjs → kv-Bfwz_ULu.mjs} +1 -1
- package/dist/{leaked-credential-checks-B9G_ZTNH.mjs → leaked-credential-checks-D8UuxztO.mjs} +1 -1
- package/dist/{load-balancers-3wGHPsYz.mjs → load-balancers-B0XeGLhT.mjs} +1 -1
- package/dist/{login-DEWvGuaU.mjs → login-CAsRUF4c.mjs} +1 -1
- package/dist/{login-CEQbOgBM.mjs → login-DaglE6WA.mjs} +1 -1
- package/dist/{logo-matches-YGRPstPi.mjs → logo-matches-DWg5ezsM.mjs} +1 -1
- package/dist/{logos-BirufUgo.mjs → logos-6A6gJC5C.mjs} +1 -1
- package/dist/{logpush-BlNbUHyV.mjs → logpush-DwehajAw.mjs} +1 -1
- package/dist/{logs-DmFlVF9q.mjs → logs-BWg7YymF.mjs} +1 -1
- package/dist/{magic-cloud-networking-B3Wj2dhJ.mjs → magic-cloud-networking--14hNj2F.mjs} +1 -1
- package/dist/{magic-network-monitoring-ry63w2Rw.mjs → magic-network-monitoring-Dzo4L6kd.mjs} +1 -1
- package/dist/{magic-transit-CBVOK2aa.mjs → magic-transit-DDO0A5v4.mjs} +1 -1
- package/dist/{managed-defense-BdW6s483.mjs → managed-defense-DQ0iwWdG.mjs} +1 -1
- package/dist/{managed-transforms-BIeiofIS.mjs → managed-transforms-DDIdcPG0.mjs} +1 -1
- package/dist/{matches-CAnwci0P.mjs → matches-D6ahHNaP.mjs} +1 -1
- package/dist/{mcp-BfhOMGFE.mjs → mcp-BcIrLbRv.mjs} +1 -1
- package/dist/{mesh-CxUL2Wf-.mjs → mesh-wLiPcWyN.mjs} +1 -1
- package/dist/{mtls-certificates-CzmTw4zs.mjs → mtls-certificates-AEuNOERQ.mjs} +1 -1
- package/dist/{network-C68psMbz.mjs → network-DZsrs_sw.mjs} +1 -1
- package/dist/{network-interconnects-CLsMrTuk.mjs → network-interconnects-Cjbu4EMv.mjs} +1 -1
- package/dist/{oauth-D4bkeMAw.mjs → oauth-C-QCVfWz.mjs} +1 -1
- package/dist/{oauth-DouM-qz0.mjs → oauth-Cu1twz9z.mjs} +1 -1
- package/dist/{oauth-clients-DbUmVE_5.mjs → oauth-clients-DR0hzakz.mjs} +1 -1
- package/dist/{oauth-scopes-CQ18rwBg.mjs → oauth-scopes-BDNpJJ32.mjs} +1 -1
- package/dist/{observability-DpYxkFeZ.mjs → observability-BnHy2M6p.mjs} +1 -1
- package/dist/{organization-Dg55Xfz7.mjs → organization-iasRm69J.mjs} +1 -1
- package/dist/{organizations-QnyzGjB2.mjs → organizations-CUzCIKXV.mjs} +1 -1
- package/dist/{origin-ca-certificates-Co5lqIGL.mjs → origin-ca-certificates-iQXSqBI0.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-Cz8JZamC.mjs → origin-post-quantum-encryption-DcMDK6Tz.mjs} +1 -1
- package/dist/{origin-tls-client-auth-Dd0T1Kfv.mjs → origin-tls-client-auth-D1X26X7y.mjs} +1 -1
- package/dist/{page-rules--D3eXrCf.mjs → page-rules-CXa8EYcP.mjs} +1 -1
- package/dist/{pages-Ce8DDgNr.mjs → pages-Cu0m9GSH.mjs} +1 -1
- package/dist/{pay-per-crawl-CpkEbasz.mjs → pay-per-crawl-DmF8xlm_.mjs} +1 -1
- package/dist/{pay-per-use-fyM1DWgY.mjs → pay-per-use-DIp2fwJU.mjs} +1 -1
- package/dist/{pipelines-CAqCgBLh.mjs → pipelines-MmXlsxYO.mjs} +1 -1
- package/dist/{precursor-DBnn4Q35.mjs → precursor-jqeEG_mJ.mjs} +1 -1
- package/dist/{previews-y_nSqWK5.mjs → previews-Cg6lc24N.mjs} +1 -1
- package/dist/{progress-Bi02B6v4.mjs → progress-Bpp73hIu.mjs} +1 -1
- package/dist/{prompt-Bx2PB-tt.mjs → prompt-CpZztV8c.mjs} +1 -1
- package/dist/{queries-dg-CVXjf.mjs → queries-VzdcSR5H.mjs} +1 -1
- package/dist/{queues-C_ilLbRI.mjs → queues-BZYl2emH.mjs} +1 -1
- package/dist/{r2-data-catalog-DGv6aROr.mjs → r2-data-catalog-DISnPFPY.mjs} +1 -1
- package/dist/{r2-hZAkra-l.mjs → r2-omcKF8_A.mjs} +1 -1
- package/dist/{radar-BO9b0aZy.mjs → radar-JzBTD249.mjs} +1 -1
- package/dist/{raw-fetch-DNTQkXbg.mjs → raw-fetch-DxGs_eRm.mjs} +1 -1
- package/dist/{realtime-eSavuSeE.mjs → realtime-yIdAJ0Yf.mjs} +1 -1
- package/dist/{registrar-Ct30kOXZ.mjs → registrar-D-Li9gNk.mjs} +1 -1
- package/dist/{registrar-sandbox-Dmn9zGUk.mjs → registrar-sandbox-CKSSHAyv.mjs} +1 -1
- package/dist/{reporting-B-F5aWUJ.mjs → reporting-Cf-pnw6h.mjs} +1 -1
- package/dist/{request-headers-Dnbzv6RZ.mjs → request-headers-DaXBfmVn.mjs} +1 -1
- package/dist/{request-tracers-CaubpUFV.mjs → request-tracers-BegIQTzt.mjs} +1 -1
- package/dist/{resource-sharing-6Snv-b69.mjs → resource-sharing-DEVgiYzM.mjs} +1 -1
- package/dist/{resource-tagging-W_LFiX2J.mjs → resource-tagging-Cm2yJkU9.mjs} +1 -1
- package/dist/{rules-C26eyeA5.mjs → rules-DDCa7cYF.mjs} +1 -1
- package/dist/{rulesets-BKzIwVtJ.mjs → rulesets-BhS7Hvtu.mjs} +1 -1
- package/dist/{rum-Xdw5hyWY.mjs → rum-EIj9ViSn.mjs} +1 -1
- package/dist/run-CSFE1qVX.mjs +2 -0
- package/dist/{run-BBBMrSrs.mjs → run-ChM_YpZ0.mjs} +1 -1
- package/dist/{schema-DqtYndhB.mjs → schema-DCBb3Fcs.mjs} +1 -1
- package/dist/{schema-flags-CebDI0f1.mjs → schema-flags--GosoCMU.mjs} +1 -1
- package/dist/{scim-odJTXiIe.mjs → scim-DA83eNe-.mjs} +1 -1
- package/dist/{secrets-store-RYpWWzaw.mjs → secrets-store-BTd3eGIB.mjs} +1 -1
- package/dist/{security-center-B3D95vCa.mjs → security-center-DbH_7h-T.mjs} +1 -1
- package/dist/{security-txt-BSytVv-9.mjs → security-txt-DSrHhVEN.mjs} +1 -1
- package/dist/{shared-D67owd9x.mjs → shared-CtBkOWGN.mjs} +1 -1
- package/dist/{smart-shield-C83Sfnf4.mjs → smart-shield-DnSTo-OI.mjs} +1 -1
- package/dist/{snippets-B6oE9WIa.mjs → snippets-An5kQs33.mjs} +1 -1
- package/dist/{spawn-CKqJ9J4_.mjs → spawn-7IW1UyoH.mjs} +1 -1
- package/dist/{spectrum-CfxY--X_.mjs → spectrum-Ci79n7fd.mjs} +1 -1
- package/dist/{speed-DzK-kiWt.mjs → speed-BBL7LrLn.mjs} +1 -1
- package/dist/{src-B3h6tKMt.mjs → src-CNHNCZpy.mjs} +5 -5
- package/dist/{ssl-dnjzPcSB.mjs → ssl-B2psFIRm.mjs} +1 -1
- package/dist/{stream-oFyhS4Wi.mjs → stream-Du0Q7UOh.mjs} +1 -1
- package/dist/{submit-4f-ravmC.mjs → submit-CU8S2jBT.mjs} +1 -1
- package/dist/{tags-DrIP6Uiq.mjs → tags-C3l5aZSi.mjs} +1 -1
- package/dist/telemetry-CNt8H3aA.mjs +2 -0
- package/dist/{telemetry-Ds4epd3D.mjs → telemetry-PHe8XxA2.mjs} +1 -1
- package/dist/{tenant-C-gc3NWv.mjs → tenant-BZ0ysR9L.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-DduTQIwh.mjs → tenant-custom-nameservers-DtKeyM5J.mjs} +1 -1
- package/dist/{tunnels-D0QYsskp.mjs → tunnels-D1tRWQQi.mjs} +1 -1
- package/dist/{turnstile-C6Q3spRB.mjs → turnstile-DBa4_Vyz.mjs} +1 -1
- package/dist/{update-check-CTLoakFV.mjs → update-check-AAn7EXw8.mjs} +1 -1
- package/dist/update-check-BbIXBq1o.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-Cs0V89qq.mjs → url-info-BRA0XGT2.mjs} +1 -1
- package/dist/{url-normalization-DaEQYy5h.mjs → url-normalization-B6N2m5s6.mjs} +1 -1
- package/dist/{url-scanner-C4YVeQ4v.mjs → url-scanner-CeKkzkhe.mjs} +1 -1
- package/dist/{user-BV1VY3Kl.mjs → user-CftksgmF.mjs} +1 -1
- package/dist/{values-qDS63E43.mjs → values-m7w9PX3o.mjs} +1 -1
- package/dist/{vectorize-NFzD3mP5.mjs → vectorize-BWBEtsgZ.mjs} +1 -1
- package/dist/version-cPq-WKL8.mjs +2 -0
- package/dist/{waiting-rooms-Y9YGj3ih.mjs → waiting-rooms-BVZSYTNJ.mjs} +1 -1
- package/dist/{web-assets-Gd6z8dbt.mjs → web-assets-CLU5vAgP.mjs} +1 -1
- package/dist/{web3-DCJx4NRp.mjs → web3-Dkd4XRNH.mjs} +1 -1
- package/dist/{workers-B-j-1ygi.mjs → workers-BQi4_SBS.mjs} +1 -1
- package/dist/{workers-builds-DPrNKjZW.mjs → workers-builds-BgtPSDYJ.mjs} +1 -1
- package/dist/{workers-for-platforms-BjKAhMLA.mjs → workers-for-platforms-actLCM6Q.mjs} +1 -1
- package/dist/{workers-vpc-C5YoCnQK.mjs → workers-vpc-DjGfJgQn.mjs} +1 -1
- package/dist/{workflows-C2KKIJjl.mjs → workflows-Cm7WsAgB.mjs} +1 -1
- package/dist/{zaraz-CVLCs1IX.mjs → zaraz-DurWe32F.mjs} +1 -1
- package/dist/{zero-trust-BtJi4OXF.mjs → zero-trust-D8SVU8YZ.mjs} +1 -1
- package/dist/{zone-hKgt0WzO.mjs → zone-B3AEAfcd.mjs} +1 -1
- package/dist/{zones-CCNyaD3J.mjs → zones-DiX5LoSU.mjs} +1 -1
- package/package.json +15 -3
- package/dist/build-OC77a1zq.mjs +0 -2
- package/dist/run-BRucX7Rz.mjs +0 -2
- package/dist/telemetry-mKEb8lYB.mjs +0 -2
- package/dist/update-check-BBS1K1jt.mjs +0 -2
- package/dist/version-W6_TN_kN.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e,t}from"./chunk-DL5FNmn1.mjs";import{n,t as r}from"./ansi-styles-eKEZXVwN.mjs";import{r as i}from"./sdk-CvIO3tWS.mjs";import{I as a}from"./dist-dc4E1u01.mjs";import{n as o}from"./version-
|
|
2
|
+
import{r as e,t}from"./chunk-DL5FNmn1.mjs";import{n,t as r}from"./ansi-styles-eKEZXVwN.mjs";import{r as i}from"./sdk-CvIO3tWS.mjs";import{I as a}from"./dist-dc4E1u01.mjs";import{n as o}from"./version-cPq-WKL8.mjs";import{o as s}from"./chunk-XLADBZ7F-BXKOjWbx.mjs";import{a as c,n as l,t as u}from"./theme-BiIYWOed.mjs";import{n as d,r as f,t as p}from"./ui-DH95w1Qk.mjs";import{i as m}from"./local-B6b2OIBW.mjs";import{a as h}from"./project-settings-DSXevRvj.mjs";import{a as g,n as ee,t as _}from"./lifecycle-Ichnb2x1.mjs";import{createRequire as te}from"node:module";import{setTimeout as v}from"node:timers/promises";import{notStrictEqual as ne,strictEqual as re}from"assert";import{basename as ie,dirname as y,extname as b,join as x,normalize as ae,relative as S,resolve as C}from"path";import{readFileSync as oe,readdirSync as se,statSync as ce,writeFile as le}from"fs";import{format as ue,inspect as de}from"util";import{fileURLToPath as fe}from"url";import{readFileSync as pe,readdirSync as me}from"node:fs";const w={right:ye,center:be};var he=class{constructor(e){this.width=e.width,this.wrap=e.wrap??!0,this.rows=[]}span(...e){let t=this.div(...e);t.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(``),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]==`string`)return this.applyLayoutDSL(e[0]);let t=e.map(e=>typeof e==`string`?this.colFromString(e):e);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]==`string`&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let t=e.split(`
|
|
3
3
|
`).map(e=>e.split(` `)),n=0;return t.forEach(e=>{e.length>1&&T.stringWidth(e[0])>n&&(n=Math.min(Math.floor(this.width*.5),T.stringWidth(e[0])))}),t.forEach(e=>{this.div(...e.map((t,r)=>({text:t.trim(),padding:this.measurePadding(t),width:r===0&&e.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){let t=T.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){let e=[];return this.rows.forEach(t=>{this.rowToString(t,e)}),e.filter(e=>!e.hidden).map(e=>e.text).join(`
|
|
4
4
|
`)}rowToString(e,t){return this.rasterize(e).forEach((n,r)=>{let i=``;n.forEach((n,a)=>{let{width:o}=e[a],s=this.negatePadding(e[a]),c=n;if(s>T.stringWidth(n)&&(c+=` `.repeat(s-T.stringWidth(n))),e[a].align&&e[a].align!==`left`&&this.wrap){let t=w[e[a].align];c=t(c,s),T.stringWidth(c)<s&&(c+=` `.repeat((o||0)-T.stringWidth(c)-1))}let l=e[a].padding||[0,0,0,0];l[3]&&(i+=` `.repeat(l[3])),i+=ge(e[a],c,`| `),i+=c,i+=ge(e[a],c,` |`),l[1]&&(i+=` `.repeat(l[1])),r===0&&t.length>0&&(i=this.renderInline(i,t[t.length-1]))}),t.push({text:i.replace(/ +$/,``),span:e.span})}),t}renderInline(e,t){let n=e.match(/^ */),r=n?n[0].length:0,i=t.text,a=T.stringWidth(i.trimRight());return t.span?this.wrap?r<a?e:(t.hidden=!0,i.trimRight()+` `.repeat(r-a)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){let t=[],n=this.columnWidths(e),r;return e.forEach((e,i)=>{e.width=n[i],r=this.wrap?T.wrap(e.text,this.negatePadding(e),{hard:!0}).split(`
|
|
5
5
|
`):e.text.split(`
|
|
@@ -95,7 +95,7 @@ complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name
|
|
|
95
95
|
`)}`:``;t.fail(i(`Missing required argument: %s`,`Missing required arguments: %s`,Object.keys(r).length,Object.keys(r).join(`, `)+n))}},a.unknownArguments=function(n,r,o,s,c=!0){let l=e.getInternalMethods().getCommandInstance().getCommands(),u=[],d=e.getInternalMethods().getContext();if(Object.keys(n).forEach(t=>{!nn.includes(t)&&!Object.prototype.hasOwnProperty.call(o,t)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),t)&&!a.isValidAndSomeAliasIsNotNew(t,r)&&u.push(t)}),c&&(d.commands.length>0||l.length>0||s)&&n._.slice(d.commands.length).forEach(e=>{l.includes(``+e)||u.push(``+e)}),c){let t=e.getDemandedCommands()._?.max||0,r=d.commands.length+t;r<n._.length&&n._.slice(r).forEach(e=>{e=String(e),!d.commands.includes(e)&&!u.includes(e)&&u.push(e)})}u.length&&t.fail(i(`Unknown argument: %s`,`Unknown arguments: %s`,u.length,u.map(e=>e.trim()?e:`"${e}"`).join(`, `)))},a.unknownCommands=function(n){let r=e.getInternalMethods().getCommandInstance().getCommands(),a=[],o=e.getInternalMethods().getContext();return(o.commands.length>0||r.length>0)&&n._.slice(o.commands.length).forEach(e=>{r.includes(``+e)||a.push(``+e)}),a.length>0?(t.fail(i(`Unknown command: %s`,`Unknown commands: %s`,a.length,a.join(`, `))),!0):!1},a.isValidAndSomeAliasIsNotNew=function(t,n){if(!Object.prototype.hasOwnProperty.call(n,t))return!1;let r=e.parsed.newAliases;return[t,...n[t]].some(e=>!Object.prototype.hasOwnProperty.call(r,e)||!r[t])},a.limitedChoices=function(n){let i=e.getOptions(),a={};if(!Object.keys(i.choices).length)return;Object.keys(n).forEach(e=>{nn.indexOf(e)===-1&&Object.prototype.hasOwnProperty.call(i.choices,e)&&[].concat(n[e]).forEach(t=>{i.choices[e].indexOf(t)===-1&&t!==void 0&&(a[e]=(a[e]||[]).concat(t))})});let o=Object.keys(a);if(!o.length)return;let s=r(`Invalid values:`);o.forEach(e=>{s+=`\n ${r(`Argument: %s, Given: %s, Choices: %s`,e,t.stringifiedValues(a[e]),t.stringifiedValues(i.choices[e]))}`}),t.fail(s)};let o={};a.implies=function(t,r){N(`<string|object> [array|number|string]`,[t,r],arguments.length),typeof t==`object`?Object.keys(t).forEach(e=>{a.implies(e,t[e])}):(e.global(t),o[t]||(o[t]=[]),Array.isArray(r)?r.forEach(e=>a.implies(t,e)):(A(r,void 0,n),o[t].push(r)))},a.getImplied=function(){return o};function s(e,t){let n=Number(t);return t=isNaN(n)?t:n,typeof t==`number`?t=e._.length>=t:t.match(/^--no-.+/)?(t=t.match(/^--no-(.+)/)[1],t=!Object.prototype.hasOwnProperty.call(e,t)):t=Object.prototype.hasOwnProperty.call(e,t),t}a.implications=function(e){let n=[];if(Object.keys(o).forEach(t=>{let r=t;(o[t]||[]).forEach(t=>{let i=r,a=t;i=s(e,i),t=s(e,t),i&&!t&&n.push(` ${r} -> ${a}`)})}),n.length){let e=`${r(`Implications failed:`)}\n`;n.forEach(t=>{e+=t}),t.fail(e)}};let c={};a.conflicts=function(t,n){N(`<string|object> [array|string]`,[t,n],arguments.length),typeof t==`object`?Object.keys(t).forEach(e=>{a.conflicts(e,t[e])}):(e.global(t),c[t]||(c[t]=[]),Array.isArray(n)?n.forEach(e=>a.conflicts(t,e)):c[t].push(n))},a.getConflicting=()=>c,a.conflicting=function(i){Object.keys(i).forEach(e=>{c[e]&&c[e].forEach(n=>{n&&i[e]!==void 0&&i[n]!==void 0&&t.fail(r(`Arguments %s and %s are mutually exclusive`,e,n))})}),e.getInternalMethods().getParserConfiguration()[`strip-dashed`]&&Object.keys(c).forEach(e=>{c[e].forEach(a=>{a&&i[n.Parser.camelCase(e)]!==void 0&&i[n.Parser.camelCase(a)]!==void 0&&t.fail(r(`Arguments %s and %s are mutually exclusive`,e,a))})})},a.recommendCommands=function(e,n){n=n.sort((e,t)=>t.length-e.length);let i=null,a=1/0;for(let t=0,r;(r=n[t])!==void 0;t++){let t=tn(e,r);t<=3&&t<a&&(a=t,i=r)}i&&t.fail(r(`Did you mean %s?`,i))},a.reset=function(e){return o=Ut(o,t=>!e[t]),c=Ut(c,t=>!e[t]),a};let l=[];return a.freeze=function(){l.push({implied:o,conflicting:c})},a.unfreeze=function(){let e=l.pop();A(e,void 0,n),{implied:o,conflicting:c}=e},a}let an=[],on;function sn(e,t,n,r){on=r;let i={};if(Object.prototype.hasOwnProperty.call(e,`extends`)){if(typeof e.extends!=`string`)return i;let a=/\.json|\..*rc$/.test(e.extends),o=null;if(a)o=ln(t,e.extends);else try{o=import.meta.resolve(e.extends)}catch{return e}cn(o),an.push(o),i=a?JSON.parse(on.readFileSync(o,`utf8`)):r.require(e.extends),delete e.extends,i=sn(i,on.path.dirname(o),n,on)}return an=[],n?un(i,e):Object.assign({},i,e)}function cn(e){if(an.indexOf(e)>-1)throw new M(`Circular extended configurations: '${e}'.`)}function ln(e,t){return on.path.resolve(e,t)}function un(e,t){let n={};function r(e){return e&&typeof e==`object`&&!Array.isArray(e)}Object.assign(n,e);for(let i of Object.keys(t))r(t[i])&&r(n[i])?n[i]=un(e[i],t[i]):n[i]=t[i];return n}var P=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},F=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},I,dn,fn,L,R,pn,z,mn,hn,B,gn,V,H,U,W,_n,vn,G,K,yn,bn,q,xn,Sn,Cn,wn,Tn,J,En,Dn,On,Y,kn,X,Z;function An(e){return(t=[],n=e.process.cwd(),r)=>{let i=new fr(t,n,r,e);return Object.defineProperty(i,`argv`,{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}const jn=Symbol(`copyDoubleDash`),Mn=Symbol(`copyDoubleDash`),Nn=Symbol(`deleteFromParserHintObject`),Pn=Symbol(`emitWarning`),Fn=Symbol(`freeze`),In=Symbol(`getDollarZero`),Ln=Symbol(`getParserConfiguration`),Rn=Symbol(`getUsageConfiguration`),zn=Symbol(`guessLocale`),Bn=Symbol(`guessVersion`),Vn=Symbol(`parsePositionalNumbers`),Hn=Symbol(`pkgUp`),Q=Symbol(`populateParserHintArray`),Un=Symbol(`populateParserHintSingleValueDictionary`),Wn=Symbol(`populateParserHintArrayDictionary`),Gn=Symbol(`populateParserHintDictionary`),Kn=Symbol(`sanitizeKey`),qn=Symbol(`setKey`),Jn=Symbol(`unfreeze`),Yn=Symbol(`validateAsync`),Xn=Symbol(`getCommandInstance`),Zn=Symbol(`getContext`),Qn=Symbol(`getHasOutput`),$n=Symbol(`getLoggerInstance`),er=Symbol(`getParseContext`),tr=Symbol(`getUsageInstance`),nr=Symbol(`getValidationInstance`),rr=Symbol(`hasParseCallback`),ir=Symbol(`isGlobalContext`),ar=Symbol(`postProcess`),or=Symbol(`rebase`),sr=Symbol(`reset`),cr=Symbol(`runYargsParserAndExecuteCommands`),lr=Symbol(`runValidation`),ur=Symbol(`setHasOutput`),dr=Symbol(`kTrackManuallySetKeys`);var fr=class{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,I.set(this,void 0),dn.set(this,void 0),fn.set(this,{commands:[],fullCommands:[]}),L.set(this,null),R.set(this,null),pn.set(this,`show-hidden`),z.set(this,null),mn.set(this,!0),hn.set(this,{}),B.set(this,!0),gn.set(this,[]),V.set(this,void 0),H.set(this,{}),U.set(this,!1),W.set(this,null),_n.set(this,!0),vn.set(this,void 0),G.set(this,``),K.set(this,void 0),yn.set(this,void 0),bn.set(this,{}),q.set(this,null),xn.set(this,null),Sn.set(this,{}),Cn.set(this,{}),wn.set(this,void 0),Tn.set(this,!1),J.set(this,void 0),En.set(this,!1),Dn.set(this,!1),On.set(this,!1),Y.set(this,void 0),kn.set(this,{}),X.set(this,null),Z.set(this,void 0),P(this,J,r,`f`),P(this,wn,e,`f`),P(this,dn,t,`f`),P(this,yn,n,`f`),P(this,V,new At(this),`f`),this.$0=this[In](),this[sr](),P(this,I,F(this,I,`f`),`f`),P(this,Y,F(this,Y,`f`),`f`),P(this,Z,F(this,Z,`f`),`f`),P(this,K,F(this,K,`f`),`f`),F(this,K,`f`).showHiddenOpt=F(this,pn,`f`),P(this,vn,this[Mn](),`f`),F(this,J,`f`).y18n.setLocale(`en_US`)}addHelpOpt(e,t){return N(`[string|boolean] [string]`,[e,t],arguments.length),F(this,W,`f`)&&(this[Nn](F(this,W,`f`)),P(this,W,null,`f`)),e===!1&&t===void 0?this:(P(this,W,typeof e==`string`?e:`help`,`f`),this.boolean(F(this,W,`f`)),this.describe(F(this,W,`f`),t||F(this,Y,`f`).deferY18nLookup(`Show help`)),this)}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(N(`[string|boolean] [string]`,[e,t],arguments.length),e===!1&&t===void 0)return this;let n=typeof e==`string`?e:F(this,pn,`f`);return this.boolean(n),this.describe(n,t||F(this,Y,`f`).deferY18nLookup(`Show hidden options`)),F(this,K,`f`).showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return N(`<object|string|array> [string|array]`,[e,t],arguments.length),this[Wn](this.alias.bind(this),`alias`,e,t),this}array(e){return N(`<array|string>`,[e],arguments.length),this[Q](`array`,e),this[dr](e),this}boolean(e){return N(`<array|string>`,[e],arguments.length),this[Q](`boolean`,e),this[dr](e),this}check(e,t){return N(`<function> [boolean]`,[e,t],arguments.length),this.middleware((t,n)=>Nt(()=>e(t,n.getOptions()),n=>(n?(typeof n==`string`||n instanceof Error)&&F(this,Y,`f`).fail(n.toString(),n):F(this,Y,`f`).fail(F(this,J,`f`).y18n.__(`Argument check failed: %s`,e.toString())),t),e=>(F(this,Y,`f`).fail(e.message?e.message:e.toString(),e),t)),!1,t),this}choices(e,t){return N(`<object|string|array> [string|array]`,[e,t],arguments.length),this[Wn](this.choices.bind(this),`choices`,e,t),this}coerce(e,t){if(N(`<object|string|array> [function]`,[e,t],arguments.length),Array.isArray(e)){if(!t)throw new M(`coerce callback must be provided`);for(let n of e)this.coerce(n,t);return this}else if(typeof e==`object`){for(let t of Object.keys(e))this.coerce(t,e[t]);return this}if(!t)throw new M(`coerce callback must be provided`);let n=e;return F(this,K,`f`).key[n]=!0,F(this,V,`f`).addCoerceMiddleware((e,r)=>{let i=[n,...r.getAliases()[n]??[]].filter(t=>Object.prototype.hasOwnProperty.call(e,t));return i.length===0?e:Nt(()=>t(e[i[0]]),t=>(i.forEach(n=>{e[n]=t}),e),e=>{throw new M(e.message)})},n),this}conflicts(e,t){return N(`<string|object> [string|array]`,[e,t],arguments.length),F(this,Z,`f`).conflicts(e,t),this}config(e=`config`,t,n){return N(`[object|string] [string|function] [function]`,[e,t,n],arguments.length),typeof e==`object`&&!Array.isArray(e)?(e=sn(e,F(this,dn,`f`),this[Ln]()[`deep-merge-config`]||!1,F(this,J,`f`)),F(this,K,`f`).configObjects=(F(this,K,`f`).configObjects||[]).concat(e),this):(typeof t==`function`&&(n=t,t=void 0),this.describe(e,t||F(this,Y,`f`).deferY18nLookup(`Path to JSON config file`)),(Array.isArray(e)?e:[e]).forEach(e=>{F(this,K,`f`).config[e]=n||!0}),this)}completion(e,t,n){return N(`[string] [string|boolean|function] [function]`,[e,t,n],arguments.length),typeof t==`function`&&(n=t,t=void 0),P(this,R,e||F(this,R,`f`)||`completion`,`f`),!t&&t!==!1&&(t=`generate completion script`),this.command(F(this,R,`f`),t),n&&F(this,L,`f`).registerFunction(n),this}command(e,t,n,r,i,a){return N(`<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]`,[e,t,n,r,i,a],arguments.length),F(this,I,`f`).addHandler(e,t,n,r,i,a),this}commands(e,t,n,r,i,a){return this.command(e,t,n,r,i,a)}commandDir(e,t){N(`<string> [object]`,[e,t],arguments.length);let n=F(this,yn,`f`)||F(this,J,`f`).require;return F(this,I,`f`).addDirectory(e,n,F(this,J,`f`).getCallerFile(),t),this}count(e){return N(`<array|string>`,[e],arguments.length),this[Q](`count`,e),this[dr](e),this}default(e,t,n){return N(`<object|string|array> [*] [string]`,[e,t,n],arguments.length),n&&(wt(e,F(this,J,`f`)),F(this,K,`f`).defaultDescription[e]=n),typeof t==`function`&&(wt(e,F(this,J,`f`)),F(this,K,`f`).defaultDescription[e]||(F(this,K,`f`).defaultDescription[e]=F(this,Y,`f`).functionDescription(t)),t=t.call()),this[Un](this.default.bind(this),`default`,e,t),this}defaults(e,t,n){return this.default(e,t,n)}demandCommand(e=1,t,n,r){return N(`[number] [number|string] [string|null|undefined] [string|null|undefined]`,[e,t,n,r],arguments.length),typeof t!=`number`&&(n=t,t=1/0),this.global(`_`,!1),F(this,K,`f`).demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach(e=>{A(n,!0,F(this,J,`f`)),this.demandOption(e,n)}),t=1/0):typeof t!=`number`&&(n=t,t=1/0),typeof e==`number`?(A(n,!0,F(this,J,`f`)),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach(e=>{A(n,!0,F(this,J,`f`)),this.demandOption(e,n)}):typeof n==`string`?this.demandOption(e,n):(n===!0||n===void 0)&&this.demandOption(e),this}demandOption(e,t){return N(`<object|string|array> [string]`,[e,t],arguments.length),this[Un](this.demandOption.bind(this),`demandedOptions`,e,t),this}deprecateOption(e,t){return N(`<string> [string|boolean]`,[e,t],arguments.length),F(this,K,`f`).deprecatedOptions[e]=t,this}describe(e,t){return N(`<object|string|array> [string]`,[e,t],arguments.length),this[qn](e,!0),F(this,Y,`f`).describe(e,t),this}detectLocale(e){return N(`<boolean>`,[e],arguments.length),P(this,mn,e,`f`),this}env(e){return N(`[string|boolean]`,[e],arguments.length),e===!1?delete F(this,K,`f`).envPrefix:F(this,K,`f`).envPrefix=e||``,this}epilogue(e){return N(`<string>`,[e],arguments.length),F(this,Y,`f`).epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return N(`<string|array> [string]`,[e,t],arguments.length),Array.isArray(e)?e.forEach(e=>this.example(...e)):F(this,Y,`f`).example(e,t),this}exit(e,t){P(this,U,!0,`f`),P(this,z,t,`f`),F(this,B,`f`)&&F(this,J,`f`).process.exit(e)}exitProcess(e=!0){return N(`[boolean]`,[e],arguments.length),P(this,B,e,`f`),this}fail(e){if(N(`<function|boolean>`,[e],arguments.length),typeof e==`boolean`&&e!==!1)throw new M(`Invalid first argument. Expected function or boolean 'false'`);return F(this,Y,`f`).failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return N(`<array> [function]`,[e,t],arguments.length),t?F(this,L,`f`).getCompletion(e,t):new Promise((t,n)=>{F(this,L,`f`).getCompletion(e,(e,r)=>{e?n(e):t(r)})})}getDemandedOptions(){return N([],0),F(this,K,`f`).demandedOptions}getDemandedCommands(){return N([],0),F(this,K,`f`).demandedCommands}getDeprecatedOptions(){return N([],0),F(this,K,`f`).deprecatedOptions}getDetectLocale(){return F(this,mn,`f`)}getExitProcess(){return F(this,B,`f`)}getGroups(){return Object.assign({},F(this,H,`f`),F(this,Cn,`f`))}getHelp(){if(P(this,U,!0,`f`),!F(this,Y,`f`).hasCachedHelpMessage()){if(!this.parsed){let e=this[cr](F(this,wn,`f`),void 0,void 0,0,!0);if(j(e))return e.then(()=>F(this,Y,`f`).help())}let e=F(this,I,`f`).runDefaultBuilderOn(this);if(j(e))return e.then(()=>F(this,Y,`f`).help())}return Promise.resolve(F(this,Y,`f`).help())}getOptions(){return F(this,K,`f`)}getStrict(){return F(this,En,`f`)}getStrictCommands(){return F(this,Dn,`f`)}getStrictOptions(){return F(this,On,`f`)}global(e,t){return N(`<string|array> [boolean]`,[e,t],arguments.length),e=[].concat(e),t===!1?e.forEach(e=>{F(this,K,`f`).local.includes(e)||F(this,K,`f`).local.push(e)}):F(this,K,`f`).local=F(this,K,`f`).local.filter(t=>e.indexOf(t)===-1),this}group(e,t){N(`<string|array> <string>`,[e,t],arguments.length);let n=F(this,Cn,`f`)[t]||F(this,H,`f`)[t];F(this,Cn,`f`)[t]&&delete F(this,Cn,`f`)[t];let r={};return F(this,H,`f`)[t]=(n||[]).concat(e).filter(e=>r[e]?!1:r[e]=!0),this}hide(e){return N(`<string>`,[e],arguments.length),F(this,K,`f`).hiddenOptions.push(e),this}implies(e,t){return N(`<string|object> [number|string|array]`,[e,t],arguments.length),F(this,Z,`f`).implies(e,t),this}locale(e){return N(`[string]`,[e],arguments.length),e===void 0?(this[zn](),F(this,J,`f`).y18n.getLocale()):(P(this,mn,!1,`f`),F(this,J,`f`).y18n.setLocale(e),this)}middleware(e,t,n){return F(this,V,`f`).addMiddleware(e,!!t,n)}nargs(e,t){return N(`<string|object|array> [number]`,[e,t],arguments.length),this[Un](this.nargs.bind(this),`narg`,e,t),this}normalize(e){return N(`<array|string>`,[e],arguments.length),this[Q](`normalize`,e),this}number(e){return N(`<array|string>`,[e],arguments.length),this[Q](`number`,e),this[dr](e),this}option(e,t){if(N(`<string|object> [object]`,[e,t],arguments.length),typeof e==`object`)Object.keys(e).forEach(t=>{this.options(t,e[t])});else{typeof t!=`object`&&(t={}),this[dr](e),F(this,X,`f`)&&(e===`version`||t?.alias===`version`)&&this[Pn]([`"version" is a reserved word.`,`Please do one of the following:`,'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)",`- Use a different option key`,`https://yargs.js.org/docs/#api-reference-version`].join(`
|
|
96
96
|
`),void 0,`versionWarning`),F(this,K,`f`).key[e]=!0,t.alias&&this.alias(e,t.alias);let n=t.deprecate||t.deprecated;n&&this.deprecateOption(e,n);let r=t.demand||t.required||t.require;r&&this.demand(e,r),t.demandOption&&this.demandOption(e,typeof t.demandOption==`string`?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),`default`in t&&this.default(e,t.default),t.implies!==void 0&&this.implies(e,t.implies),t.nargs!==void 0&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||t.type===`boolean`)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||t.type===`array`)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||t.type===`number`)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||t.type===`string`)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||t.type===`count`)&&this.count(e),typeof t.global==`boolean`&&this.global(e,t.global),t.defaultDescription&&(F(this,K,`f`).defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);let i=t.describe||t.description||t.desc,a=F(this,Y,`f`).getDescriptions();(!Object.prototype.hasOwnProperty.call(a,e)||typeof i==`string`)&&this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,n){N(`[string|array] [function|boolean|object] [function]`,[e,t,n],arguments.length),this[Fn](),e===void 0&&(e=F(this,wn,`f`)),typeof t==`object`&&(P(this,xn,t,`f`),t=n),typeof t==`function`&&(P(this,q,t,`f`),t=!1),t||P(this,wn,e,`f`),F(this,q,`f`)&&P(this,B,!1,`f`);let r=this[cr](e,!!t),i=this.parsed;return F(this,L,`f`).setParsed(this.parsed),j(r)?r.then(e=>(F(this,q,`f`)&&F(this,q,`f`).call(this,F(this,z,`f`),e,F(this,G,`f`)),e)).catch(e=>{throw F(this,q,`f`)&&F(this,q,`f`)(e,this.parsed.argv,F(this,G,`f`)),e}).finally(()=>{this[Jn](),this.parsed=i}):(F(this,q,`f`)&&F(this,q,`f`).call(this,F(this,z,`f`),r,F(this,G,`f`)),this[Jn](),this.parsed=i,r)}parseAsync(e,t,n){let r=this.parse(e,t,n);return j(r)?r:Promise.resolve(r)}parseSync(e,t,n){let r=this.parse(e,t,n);if(j(r))throw new M(`.parseSync() must not be used with asynchronous builders, handlers, or middleware`);return r}parserConfiguration(e){return N(`<object>`,[e],arguments.length),P(this,bn,e,`f`),this}pkgConf(e,t){N(`<string> [string]`,[e,t],arguments.length);let n=null,r=this[Hn](t||F(this,dn,`f`));return r[e]&&typeof r[e]==`object`&&(n=sn(r[e],t||F(this,dn,`f`),this[Ln]()[`deep-merge-config`]||!1,F(this,J,`f`)),F(this,K,`f`).configObjects=(F(this,K,`f`).configObjects||[]).concat(n)),this}positional(e,t){N(`<string> <object>`,[e,t],arguments.length);let n=[`default`,`defaultDescription`,`implies`,`normalize`,`choices`,`conflicts`,`coerce`,`type`,`describe`,`desc`,`description`,`alias`];t=Ut(t,(e,t)=>e===`type`&&![`string`,`number`,`boolean`].includes(t)?!1:n.includes(e));let r=F(this,fn,`f`).fullCommands[F(this,fn,`f`).fullCommands.length-1],i=r?F(this,I,`f`).cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return Tt(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.indexOf(e)!==-1&&(t[n]=!0):r[e]&&!(n in t)&&(t[n]=r[e])}),this.group(e,F(this,Y,`f`).getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return N(`[boolean]`,[e],arguments.length),P(this,Tn,e,`f`),this}required(e,t,n){return this.demand(e,t,n)}require(e,t,n){return this.demand(e,t,n)}requiresArg(e){return N(`<array|string|object> [number]`,[e],arguments.length),typeof e==`string`&&F(this,K,`f`).narg[e]||this[Un](this.requiresArg.bind(this),`narg`,e,NaN),this}showCompletionScript(e,t){return N(`[string] [string]`,[e,t],arguments.length),e||=this.$0,F(this,vn,`f`).log(F(this,L,`f`).generateCompletionScript(e,t||F(this,R,`f`)||`completion`)),this}showHelp(e){if(N(`[string|function]`,[e],arguments.length),P(this,U,!0,`f`),!F(this,Y,`f`).hasCachedHelpMessage()){if(!this.parsed){let t=this[cr](F(this,wn,`f`),void 0,void 0,0,!0);if(j(t))return t.then(()=>{F(this,Y,`f`).showHelp(e)}),this}let t=F(this,I,`f`).runDefaultBuilderOn(this);if(j(t))return t.then(()=>{F(this,Y,`f`).showHelp(e)}),this}return F(this,Y,`f`).showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return N(`[boolean|string] [string]`,[e,t],arguments.length),F(this,Y,`f`).showHelpOnFail(e,t),this}showVersion(e){return N(`[string|function]`,[e],arguments.length),F(this,Y,`f`).showVersion(e),this}skipValidation(e){return N(`<array|string>`,[e],arguments.length),this[Q](`skipValidation`,e),this}strict(e){return N(`[boolean]`,[e],arguments.length),P(this,En,e!==!1,`f`),this}strictCommands(e){return N(`[boolean]`,[e],arguments.length),P(this,Dn,e!==!1,`f`),this}strictOptions(e){return N(`[boolean]`,[e],arguments.length),P(this,On,e!==!1,`f`),this}string(e){return N(`<array|string>`,[e],arguments.length),this[Q](`string`,e),this[dr](e),this}terminalWidth(){return N([],0),F(this,J,`f`).process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return N(`<object>`,[e],arguments.length),P(this,mn,!1,`f`),F(this,J,`f`).y18n.updateLocale(e),this}usage(e,t,n,r){if(N(`<string|null|undefined> [string|boolean] [function|object] [function]`,[e,t,n,r],arguments.length),t!==void 0){if(A(e,null,F(this,J,`f`)),(e||``).match(/^\$0( |$)/))return this.command(e,t,n,r);throw new M(`.usage() description must start with $0 if being used as alias for .command()`)}else return F(this,Y,`f`).usage(e),this}usageConfiguration(e){return N(`<object>`,[e],arguments.length),P(this,kn,e,`f`),this}version(e,t,n){let r=`version`;if(N(`[boolean|string] [string] [string]`,[e,t,n],arguments.length),F(this,X,`f`)&&(this[Nn](F(this,X,`f`)),F(this,Y,`f`).version(void 0),P(this,X,null,`f`)),arguments.length===0)n=this[Bn](),e=r;else if(arguments.length===1){if(e===!1)return this;n=e,e=r}else arguments.length===2&&(n=t,t=void 0);return P(this,X,typeof e==`string`?e:r,`f`),t||=F(this,Y,`f`).deferY18nLookup(`Show version number`),F(this,Y,`f`).version(n||void 0),this.boolean(F(this,X,`f`)),this.describe(F(this,X,`f`),t),this}wrap(e){return N(`<number|null|undefined>`,[e],arguments.length),F(this,Y,`f`).wrap(e),this}[(I=new WeakMap,dn=new WeakMap,fn=new WeakMap,L=new WeakMap,R=new WeakMap,pn=new WeakMap,z=new WeakMap,mn=new WeakMap,hn=new WeakMap,B=new WeakMap,gn=new WeakMap,V=new WeakMap,H=new WeakMap,U=new WeakMap,W=new WeakMap,_n=new WeakMap,vn=new WeakMap,G=new WeakMap,K=new WeakMap,yn=new WeakMap,bn=new WeakMap,q=new WeakMap,xn=new WeakMap,Sn=new WeakMap,Cn=new WeakMap,wn=new WeakMap,Tn=new WeakMap,J=new WeakMap,En=new WeakMap,Dn=new WeakMap,On=new WeakMap,Y=new WeakMap,kn=new WeakMap,X=new WeakMap,Z=new WeakMap,jn)](e){if(!e._||!e[`--`])return e;e._.push.apply(e._,e[`--`]);try{delete e[`--`]}catch{}return e}[Mn](){return{log:(...e)=>{this[rr]()||console.log(...e),P(this,U,!0,`f`),F(this,G,`f`).length&&P(this,G,F(this,G,`f`)+`
|
|
97
97
|
`,`f`),P(this,G,F(this,G,`f`)+e.join(` `),`f`)},error:(...e)=>{this[rr]()||console.error(...e),P(this,U,!0,`f`),F(this,G,`f`).length&&P(this,G,F(this,G,`f`)+`
|
|
98
|
-
`,`f`),P(this,G,F(this,G,`f`)+e.join(` `),`f`)}}}[Nn](e){Tt(F(this,K,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=F(this,K,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete F(this,Y,`f`).getDescriptions()[e]}[Pn](e,t,n){F(this,hn,`f`)[n]||(F(this,J,`f`).process.emitWarning(e,t),F(this,hn,`f`)[n]=!0)}[Fn](){F(this,gn,`f`).push({options:F(this,K,`f`),configObjects:F(this,K,`f`).configObjects.slice(0),exitProcess:F(this,B,`f`),groups:F(this,H,`f`),strict:F(this,En,`f`),strictCommands:F(this,Dn,`f`),strictOptions:F(this,On,`f`),completionCommand:F(this,R,`f`),output:F(this,G,`f`),exitError:F(this,z,`f`),hasOutput:F(this,U,`f`),parsed:this.parsed,parseFn:F(this,q,`f`),parseContext:F(this,xn,`f`)}),F(this,Y,`f`).freeze(),F(this,Z,`f`).freeze(),F(this,I,`f`).freeze(),F(this,V,`f`).freeze()}[In](){let e=``,t;return t=/\b(node|iojs|electron)(\.exe)?$/.test(F(this,J,`f`).process.argv()[0])?F(this,J,`f`).process.argv().slice(1,2):F(this,J,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[or](F(this,dn,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),F(this,J,`f`).getEnv(`_`)&&F(this,J,`f`).getProcessArgvBin()===F(this,J,`f`).getEnv(`_`)&&(e=F(this,J,`f`).getEnv(`_`).replace(`${F(this,J,`f`).path.dirname(F(this,J,`f`).process.execPath())}/`,``)),e}[Ln](){return F(this,bn,`f`)}[Rn](){return F(this,kn,`f`)}[zn](){if(!F(this,mn,`f`))return;let e=F(this,J,`f`).getEnv(`LC_ALL`)||F(this,J,`f`).getEnv(`LC_MESSAGES`)||F(this,J,`f`).getEnv(`LANG`)||F(this,J,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[Bn](){return this[Hn]().version||`unknown`}[Vn](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)F(this,J,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[Hn](e){let t=e||`*`;if(F(this,Sn,`f`)[t])return F(this,Sn,`f`)[t];let n={};try{let t=e||F(this,J,`f`).mainFilename;F(this,J,`f`).path.extname(t)&&(t=F(this,J,`f`).path.dirname(t));let r=F(this,J,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});A(r,void 0,F(this,J,`f`)),n=JSON.parse(F(this,J,`f`).readFileSync(r,`utf8`))}catch{}return F(this,Sn,`f`)[t]=n||{},F(this,Sn,`f`)[t]}[Q](e,t){t=[].concat(t),t.forEach(t=>{t=this[Kn](t),F(this,K,`f`)[e].push(t)})}[Un](e,t,n,r){this[Gn](e,t,n,r,(e,t,n)=>{F(this,K,`f`)[e][t]=n})}[Wn](e,t,n,r){this[Gn](e,t,n,r,(e,t,n)=>{F(this,K,`f`)[e][t]=(F(this,K,`f`)[e][t]||[]).concat(n)})}[Gn](e,t,n,r,i){if(Array.isArray(n))n.forEach(t=>{e(t,r)});else if((e=>typeof e==`object`)(n))for(let t of Tt(n))e(t,n[t]);else i(t,this[Kn](n),r)}[Kn](e){return e===`__proto__`?`___proto___`:e}[qn](e,t){return this[Un](this[qn].bind(this),`key`,e,t),this}[Jn](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=F(this,gn,`f`).pop();A(f,void 0,F(this,J,`f`));let p;e=this,t=this,n=this,r=this,i=this,a=this,o=this,s=this,c=this,l=this,u=this,d=this,{options:{set value(t){P(e,K,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){P(t,B,e,`f`)}}.value,groups:{set value(e){P(n,H,e,`f`)}}.value,output:{set value(e){P(r,G,e,`f`)}}.value,exitError:{set value(e){P(i,z,e,`f`)}}.value,hasOutput:{set value(e){P(a,U,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){P(o,En,e,`f`)}}.value,strictCommands:{set value(e){P(s,Dn,e,`f`)}}.value,strictOptions:{set value(e){P(c,On,e,`f`)}}.value,completionCommand:{set value(e){P(l,R,e,`f`)}}.value,parseFn:{set value(e){P(u,q,e,`f`)}}.value,parseContext:{set value(e){P(d,xn,e,`f`)}}.value}=f,F(this,K,`f`).configObjects=p,F(this,Y,`f`).unfreeze(),F(this,Z,`f`).unfreeze(),F(this,I,`f`).unfreeze(),F(this,V,`f`).unfreeze()}[Yn](e,t){return Nt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[Xn].bind(this),getContext:this[Zn].bind(this),getHasOutput:this[Qn].bind(this),getLoggerInstance:this[$n].bind(this),getParseContext:this[er].bind(this),getParserConfiguration:this[Ln].bind(this),getUsageConfiguration:this[Rn].bind(this),getUsageInstance:this[tr].bind(this),getValidationInstance:this[nr].bind(this),hasParseCallback:this[rr].bind(this),isGlobalContext:this[ir].bind(this),postProcess:this[ar].bind(this),reset:this[sr].bind(this),runValidation:this[lr].bind(this),runYargsParserAndExecuteCommands:this[cr].bind(this),setHasOutput:this[ur].bind(this)}}[Xn](){return F(this,I,`f`)}[Zn](){return F(this,fn,`f`)}[Qn](){return F(this,U,`f`)}[$n](){return F(this,vn,`f`)}[er](){return F(this,xn,`f`)||{}}[tr](){return F(this,Y,`f`)}[nr](){return F(this,Z,`f`)}[rr](){return!!F(this,q,`f`)}[ir](){return F(this,_n,`f`)}[ar](e,t,n,r){return n||j(e)?e:(t||(e=this[jn](e)),(this[Ln]()[`parse-positional-numbers`]||this[Ln]()[`parse-positional-numbers`]===void 0)&&(e=this[Vn](e)),r&&(e=Mt(e,this,F(this,V,`f`).getMiddleware(),!1)),e)}[sr](e={}){P(this,K,F(this,K,`f`)||{},`f`);let t={};t.local=F(this,K,`f`).local||[],t.configObjects=F(this,K,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(F(this,Cn,`f`),Object.keys(F(this,H,`f`)).reduce((e,t)=>{let r=F(this,H,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),P(this,H,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(F(this,K,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=Ut(F(this,K,`f`)[e],e=>!n[e])}),t.envPrefix=F(this,K,`f`).envPrefix,P(this,K,t,`f`),P(this,Y,F(this,Y,`f`)?F(this,Y,`f`).reset(n):Kt(this,F(this,J,`f`)),`f`),P(this,Z,F(this,Z,`f`)?F(this,Z,`f`).reset(n):rn(this,F(this,Y,`f`),F(this,J,`f`)),`f`),P(this,I,F(this,I,`f`)?F(this,I,`f`).reset():Lt(F(this,Y,`f`),F(this,Z,`f`),F(this,V,`f`),F(this,J,`f`)),`f`),F(this,L,`f`)||P(this,L,Qt(this,F(this,Y,`f`),F(this,I,`f`),F(this,J,`f`)),`f`),F(this,V,`f`).reset(),P(this,R,null,`f`),P(this,G,``,`f`),P(this,z,null,`f`),P(this,U,!1,`f`),this.parsed=!1,this}[or](e,t){return F(this,J,`f`).path.relative(e,t)}[cr](e,t,n,r=0,i=!1){let a=!!n||i;e||=F(this,wn,`f`),F(this,K,`f`).__=F(this,J,`f`).y18n.__,F(this,K,`f`).configuration=this[Ln]();let o=!!F(this,K,`f`).configuration[`populate--`],s=Object.assign({},F(this,K,`f`).configuration,{"populate--":!0}),c=F(this,J,`f`).Parser.detailed(e,Object.assign({},F(this,K,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,F(this,xn,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===F(this,W,`f`)&&l[e]?f=!0:e===F(this,X,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&F(this,Y,`f`).clearCachedHelpMessage();try{if(this[zn](),t)return this[ar](l,o,!!n,!1);F(this,W,`f`)&&[F(this,W,`f`)].concat(d[F(this,W,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),P(this,_n,!1,`f`);let s=F(this,I,`f`).getCommands(),m=F(this,L,`f`)?.completionKey?[F(this,L,`f`)?.completionKey,...this.getAliases()[F(this,L,`f`)?.completionKey]??[]].some(e=>Object.prototype.hasOwnProperty.call(l,e)):!1,h=f||m||i;if(l._.length){if(s.length){let e;for(let t=r||0,a;l._[t]!==void 0;t++)if(a=String(l._[t]),s.includes(a)&&a!==F(this,R,`f`)){let e=F(this,I,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[ar](e,o,!!n,!1)}else if(!e&&a!==F(this,R,`f`)){e=a;break}!F(this,I,`f`).hasDefaultCommand()&&F(this,Tn,`f`)&&e&&!h&&F(this,Z,`f`).recommendCommands(e,s)}F(this,R,`f`)&&l._.includes(F(this,R,`f`))&&!m&&(F(this,B,`f`)&&Wt(!0),this.showCompletionScript(),this.exit(0))}if(F(this,I,`f`).hasDefaultCommand()&&!h){let e=F(this,I,`f`).runCommand(null,this,c,0,i,f||p||i);return this[ar](e,o,!!n,!1)}if(m){F(this,B,`f`)&&Wt(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${F(this,L,`f`).completionKey}`)+1);return F(this,L,`f`).getCompletion(t,(e,t)=>{if(e)throw new M(e.message);(t||[]).forEach(e=>{F(this,vn,`f`).log(e)}),this.exit(0)}),this[ar](l,!o,!!n,!1)}if(F(this,U,`f`)||(f?(F(this,B,`f`)&&Wt(!0),a=!0,this.showHelp(e=>{F(this,vn,`f`).log(e),this.exit(0)})):p&&(F(this,B,`f`)&&Wt(!0),a=!0,F(this,Y,`f`).showVersion(`log`),this.exit(0))),!a&&F(this,K,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>F(this,K,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new M(c.error.message);if(!m){let e=this[lr](d,{},c.error);n||(u=Mt(l,this,F(this,V,`f`).getMiddleware(),!0)),u=this[Yn](e,u??l),j(u)&&!n&&(u=u.then(()=>Mt(l,this,F(this,V,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof M)F(this,Y,`f`).fail(e.message,e);else throw e}return this[ar](u??l,o,!!n,!0)}[lr](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new M(n.message);F(this,Z,`f`).nonOptionCount(a),F(this,Z,`f`).requiredArguments(a,i);let o=!1;F(this,Dn,`f`)&&(o=F(this,Z,`f`).unknownCommands(a)),F(this,En,`f`)&&!o?F(this,Z,`f`).unknownArguments(a,e,t,!!r):F(this,On,`f`)&&F(this,Z,`f`).unknownArguments(a,e,{},!1,!1),F(this,Z,`f`).limitedChoices(a),F(this,Z,`f`).implications(a),F(this,Z,`f`).conflicting(a)}}[ur](){P(this,U,!0,`f`)}[dr](e){if(typeof e==`string`)F(this,K,`f`).key[e]=!0;else for(let t of e)F(this,K,`f`).key[t]=!0}};function pr(e){return!!e&&typeof e.getInternalMethods==`function`}const mr=An(Ct);function $(e,t,n,r){return{command:e,describe:t,builder:async e=>{let t=(await n()).default.builder;return typeof t==`function`?t(e):e},handler:async e=>{let t=await n();if(!r){await t.default.handler(e);return}let{runWithTelemetry:i}=await import(`./run-BRucX7Rz.mjs`);await i(r,e,()=>t.default.handler(e))}}}const hr=[{command:$(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-BAQR1w79.mjs`)),hideCommand:!0},{command:$(`access`,`access`,()=>import(`./access-C8KMplzp.mjs`)),hideCommand:!0},{command:$(`account`,`account`,()=>import(`./account-B-KQSR0L.mjs`)),hideCommand:!1},{command:$(`account-tags`,`account-tags`,()=>import(`./account-tags-EncLJpLc.mjs`)),hideCommand:!1},{command:$(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-BA4Mp3A_.mjs`)),hideCommand:!1},{command:$(`acm`,`acm`,()=>import(`./acm-ByxUJcqF.mjs`)),hideCommand:!0},{command:$(`addressing`,`addressing`,()=>import(`./addressing-C-ym0h0G.mjs`)),hideCommand:!0},{command:$(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-CkPSiZDI.mjs`)),hideCommand:!1},{command:$(`ai`,`ai`,()=>import(`./ai-DkE_Q64s.mjs`)),hideCommand:!1},{command:$(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-pPcjYWI5.mjs`)),hideCommand:!1},{command:$(`ai-gateway`,`Proxy, cache, rate-limit, and observe requests to AI providers — OpenAI, Anthropic, Workers AI, and more`,()=>import(`./ai-gateway-DtrwF1lQ.mjs`)),hideCommand:!1},{command:$(`ai-search`,`Managed search-as-a-service: crawl, index, and query content with AI-powered relevance and chat completions`,()=>import(`./ai-search-DLD_kDS1.mjs`)),hideCommand:!1},{command:$(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-jyZcBl9g.mjs`)),hideCommand:!0},{command:$(`alerting`,`alerting`,()=>import(`./alerting-DOROjm8E.mjs`)),hideCommand:!0},{command:$(`alerts`,`alerts`,()=>import(`./alerts-CstOk8n0.mjs`)),hideCommand:!0},{command:$(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-rQ-h-plT.mjs`)),hideCommand:!1},{command:$(`analytics_engine`,`analytics_engine`,()=>import(`./analytics_engine-Cg9gCAMt.mjs`)),hideCommand:!0},{command:$(`api-security`,`api-security`,()=>import(`./api-security-B8p8vp8u.mjs`)),hideCommand:!0},{command:$(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-g8SjUb_t.mjs`)),hideCommand:!0},{command:$(`artifacts`,`artifacts`,()=>import(`./artifacts-B1PaeF5h.mjs`)),hideCommand:!0},{command:$(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-DmU_PHy_.mjs`)),hideCommand:!0},{command:$(`autorag`,`autorag`,()=>import(`./autorag-PRTwXGgn.mjs`)),hideCommand:!0},{command:$(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-CvTbUg-H.mjs`)),hideCommand:!1},{command:$(`bot-management`,`bot-management`,()=>import(`./bot-management-z53tbcbH.mjs`)),hideCommand:!0},{command:$(`botnet-feed`,`Botnet threat intelligence feeds — IP and ASN-level data on known command-and-control infrastructure`,()=>import(`./botnet-feed-CSBbJdr_.mjs`)),hideCommand:!0},{command:$(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-DzV211IQ.mjs`)),hideCommand:!0},{command:$(`brands`,`brands`,()=>import(`./brands-BHRXlWDm.mjs`)),hideCommand:!0},{command:$(`browser-extension`,`browser-extension`,()=>import(`./browser-extension-C0Hi9CHX.mjs`)),hideCommand:!1},{command:$(`browser-run`,`browser-run`,()=>import(`./browser-run-DYQvMAyo.mjs`)),hideCommand:!1},{command:$(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-CwKRqjQ5.mjs`)),hideCommand:!1},{command:$(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-CugNPPsJ.mjs`)),hideCommand:!1},{command:$(`certificate-authorities`,`certificate-authorities`,()=>import(`./certificate-authorities-DaEnJYge.mjs`)),hideCommand:!0},{command:$(`clear`,`clear`,()=>import(`./clear-UvKESVx3.mjs`)),hideCommand:!0},{command:$(`client-certificates`,`client-certificates`,()=>import(`./client-certificates-DZUIqBTB.mjs`)),hideCommand:!0},{command:$(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-Dk6F1ENG.mjs`)),hideCommand:!0},{command:$(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-avpf86kG.mjs`)),hideCommand:!1},{command:$(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-DNRhUD8z.mjs`)),hideCommand:!1},{command:$(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-BSztJ-Ko.mjs`)),hideCommand:!0},{command:$(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-_M8CCK6_.mjs`)),hideCommand:!0},{command:$(`connector-telemetry-events-latest`,`connector-telemetry-events-latest`,()=>import(`./connector-telemetry-events-latest-DwnFeZg0.mjs`)),hideCommand:!0},{command:$(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-DySvmR9a.mjs`)),hideCommand:!0},{command:$(`connector-telemetry-snapshots-latest`,`connector-telemetry-snapshots-latest`,()=>import(`./connector-telemetry-snapshots-latest-Dv6rZlxs.mjs`)),hideCommand:!0},{command:$(`connectors`,`connectors`,()=>import(`./connectors-BSmhzNB7.mjs`)),hideCommand:!0},{command:$(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-B5vDcFzo.mjs`)),hideCommand:!1},{command:$(`content-scan`,`Malicious uploads detection, scan uploaded content in HTTP requests for malware and malicious payloads`,()=>import(`./content-scan-CeLZAcbT.mjs`)),hideCommand:!0},{command:$(`cps`,`cps`,()=>import(`./cps-BlI_Od72.mjs`)),hideCommand:!1},{command:$(`csamScanner`,`csamScanner`,()=>import(`./csamScanner-Cn7d0HWS.mjs`)),hideCommand:!0},{command:$(`ct-alerting`,`ct-alerting`,()=>import(`./ct-alerting-lhgFPu-y.mjs`)),hideCommand:!0},{command:$(`custom-certificates`,`custom-certificates`,()=>import(`./custom-certificates-Ba4Do5qt.mjs`)),hideCommand:!0},{command:$(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-MNUIx8yX.mjs`)),hideCommand:!1},{command:$(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-Dj1SBd0J.mjs`)),hideCommand:!0},{command:$(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-C7nzhNzV.mjs`)),hideCommand:!1},{command:$(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-BgfhGksj.mjs`)),hideCommand:!1},{command:$(`d1`,`D1 is Cloudflare's managed, serverless database with SQLite's SQL semantics, built-in disaster recovery, and Worker and HTTP API access.`,()=>import(`./d1-P2kWbdID.mjs`)),hideCommand:!1},{command:$(`data-security`,`data-security`,()=>import(`./data-security-pBIozmRL.mjs`)),hideCommand:!1},{command:$(`dcv-delegation`,`dcv-delegation`,()=>import(`./dcv-delegation-Bpy9WnKZ.mjs`)),hideCommand:!0},{command:$(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-C62habGQ.mjs`)),hideCommand:!0},{command:$(`dls`,`dls`,()=>import(`./dls-CpkcyQ8C.mjs`)),hideCommand:!0},{command:$(`dns`,`dns`,()=>import(`./dns-DG1X4Wap.mjs`)),hideCommand:!1},{command:$(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-B1gGHEDo.mjs`)),hideCommand:!0},{command:$(`domain-info`,`domain-info`,()=>import(`./domain-info-BqTDXNBo.mjs`)),hideCommand:!0},{command:$(`durable-objects`,`durable-objects`,()=>import(`./durable-objects-D214VhxH.mjs`)),hideCommand:!1},{command:$(`email-auth`,`email-auth`,()=>import(`./email-auth-Ba4ONan2.mjs`)),hideCommand:!0},{command:$(`email-routing`,`Route incoming email to verified destination addresses or Workers with routing rules, catch-all behavior, and managed DNS records`,()=>import(`./email-routing-BlqKnqNM.mjs`)),hideCommand:!1},{command:$(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-Dl1E1Dko.mjs`)),hideCommand:!0},{command:$(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-DIRSSRIz.mjs`)),hideCommand:!1},{command:$(`fieldExtractors`,`fieldExtractors`,()=>import(`./fieldExtractors-zqYKMCEn.mjs`)),hideCommand:!0},{command:$(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-DdsDh8GD.mjs`)),hideCommand:!1},{command:$(`flagship`,`flagship`,()=>import(`./flagship-CkUIVW7c.mjs`)),hideCommand:!0},{command:$(`fraud`,`fraud`,()=>import(`./fraud-BUpZgvQT.mjs`)),hideCommand:!0},{command:$(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-Bi1uLnEU.mjs`)),hideCommand:!0},{command:$(`health`,`health`,()=>import(`./health-CwPzzrV6.mjs`)),hideCommand:!0},{command:$(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-DjQWb3EM.mjs`)),hideCommand:!0},{command:$(`hostnames`,`hostnames`,()=>import(`./hostnames-ClBLPbct.mjs`)),hideCommand:!0},{command:$(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-U54xZsWU.mjs`)),hideCommand:!1},{command:$(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-T-wWmOep.mjs`)),hideCommand:!0},{command:$(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-ia5UG1GW.mjs`)),hideCommand:!1},{command:$(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-BhswZLMI.mjs`)),hideCommand:!1},{command:$(`internal`,`internal`,()=>import(`./internal-WLHfxX64.mjs`)),hideCommand:!0},{command:$(`ips`,`ips`,()=>import(`./ips-Dad_EvhM.mjs`)),hideCommand:!0},{command:$(`keyless-certificates`,`keyless-certificates`,()=>import(`./keyless-certificates-BhHaxLjM.mjs`)),hideCommand:!0},{command:$(`keys`,`keys`,()=>import(`./keys-DjIPvqj4.mjs`)),hideCommand:!0},{command:$(`kv`,`kv`,()=>import(`./kv-DzXVnK94.mjs`)),hideCommand:!0},{command:$(`leaked-credential-checks`,`Detect compromised credentials in login requests by checking against known breach databases`,()=>import(`./leaked-credential-checks-B9G_ZTNH.mjs`)),hideCommand:!0},{command:$(`live`,`live`,()=>import(`./live-D_k7eHdv.mjs`)),hideCommand:!0},{command:$(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-3wGHPsYz.mjs`)),hideCommand:!1},{command:$(`logo-matches`,`logo-matches`,()=>import(`./logo-matches-YGRPstPi.mjs`)),hideCommand:!0},{command:$(`logos`,`logos`,()=>import(`./logos-BirufUgo.mjs`)),hideCommand:!0},{command:$(`logpush`,`logpush`,()=>import(`./logpush-BlNbUHyV.mjs`)),hideCommand:!1},{command:$(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-DmFlVF9q.mjs`)),hideCommand:!1},{command:$(`magic-cloud-networking`,`magic-cloud-networking`,()=>import(`./magic-cloud-networking-B3Wj2dhJ.mjs`)),hideCommand:!0},{command:$(`magic-network-monitoring`,`Flow-based network traffic monitoring with configurable alerting rules and VPC flow ingestion`,()=>import(`./magic-network-monitoring-ry63w2Rw.mjs`)),hideCommand:!1},{command:$(`magic-transit`,`DDoS-protected network transit — GRE/IPsec tunnels, static routes, Magic WAN sites, connectors, and packet captures`,()=>import(`./magic-transit-CBVOK2aa.mjs`)),hideCommand:!0},{command:$(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-BdW6s483.mjs`)),hideCommand:!1},{command:$(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-BIeiofIS.mjs`)),hideCommand:!0},{command:$(`matches`,`matches`,()=>import(`./matches-CAnwci0P.mjs`)),hideCommand:!0},{command:$(`mcp`,`mcp`,()=>import(`./mcp-BfhOMGFE.mjs`)),hideCommand:!1},{command:$(`mesh`,`mesh`,()=>import(`./mesh-CxUL2Wf-.mjs`)),hideCommand:!0},{command:$(`mtls-certificates`,`mtls-certificates`,()=>import(`./mtls-certificates-CzmTw4zs.mjs`)),hideCommand:!0},{command:$(`network`,`network`,()=>import(`./network-C68psMbz.mjs`)),hideCommand:!0},{command:$(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-CLsMrTuk.mjs`)),hideCommand:!0},{command:$(`oauth-clients`,`oauth-clients`,()=>import(`./oauth-clients-DbUmVE_5.mjs`)),hideCommand:!0},{command:$(`oauth-scopes`,`oauth-scopes`,()=>import(`./oauth-scopes-CQ18rwBg.mjs`)),hideCommand:!0},{command:$(`observability`,`observability`,()=>import(`./observability-DpYxkFeZ.mjs`)),hideCommand:!1},{command:$(`organization`,`organization`,()=>import(`./organization-Dg55Xfz7.mjs`)),hideCommand:!1},{command:$(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-QnyzGjB2.mjs`)),hideCommand:!1},{command:$(`origin-ca-certificates`,`origin-ca-certificates`,()=>import(`./origin-ca-certificates-Co5lqIGL.mjs`)),hideCommand:!0},{command:$(`origin-post-quantum-encryption`,`Enable post-quantum key exchange for connections between Cloudflare and your origin server`,()=>import(`./origin-post-quantum-encryption-Cz8JZamC.mjs`)),hideCommand:!0},{command:$(`origin-tls-client-auth`,`origin-tls-client-auth`,()=>import(`./origin-tls-client-auth-Dd0T1Kfv.mjs`)),hideCommand:!0},{command:$(`page-rules`,`page-rules`,()=>import(`./page-rules--D3eXrCf.mjs`)),hideCommand:!0},{command:$(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-Ce8DDgNr.mjs`)),hideCommand:!0},{command:$(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-CpkEbasz.mjs`)),hideCommand:!1},{command:$(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-fyM1DWgY.mjs`)),hideCommand:!1},{command:$(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-CAqCgBLh.mjs`)),hideCommand:!1},{command:$(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-DBnn4Q35.mjs`)),hideCommand:!0},{command:$(`queries`,`queries`,()=>import(`./queries-dg-CVXjf.mjs`)),hideCommand:!0},{command:$(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-C_ilLbRI.mjs`)),hideCommand:!1},{command:$(`r2`,`S3-compatible object storage with zero egress fees — buckets, lifecycle rules, event notifications, and data migration`,()=>import(`./r2-hZAkra-l.mjs`)),hideCommand:!1},{command:$(`r2-data-catalog`,`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,()=>import(`./r2-data-catalog-DGv6aROr.mjs`)),hideCommand:!0},{command:$(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-BO9b0aZy.mjs`)),hideCommand:!0},{command:$(`rate-limit-analytics`,`rate-limit-analytics`,()=>import(`./rate-limit-analytics-CDTPxSET.mjs`)),hideCommand:!1},{command:$(`rate-limits`,`Legacy per-zone rate limiting rules — prefer Advanced Rate Limiting in Rulesets for new configurations`,()=>import(`./rate-limits-C3K9smdl.mjs`)),hideCommand:!0},{command:$(`ready`,`ready`,()=>import(`./ready-CvwvbdTX.mjs`)),hideCommand:!0},{command:$(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-eSavuSeE.mjs`)),hideCommand:!1},{command:$(`recent-submissions`,`recent-submissions`,()=>import(`./recent-submissions-CjzcT-iH.mjs`)),hideCommand:!0},{command:$(`refute`,`refute`,()=>import(`./refute-CIAFMj00.mjs`)),hideCommand:!0},{command:$(`registrar`,`registrar`,()=>import(`./registrar-Ct30kOXZ.mjs`)),hideCommand:!1},{command:$(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-Dmn9zGUk.mjs`)),hideCommand:!1},{command:$(`reporting`,`reporting`,()=>import(`./reporting-B-F5aWUJ.mjs`)),hideCommand:!1},{command:$(`request-tracers`,`Trace how a request would be processed through Cloudflare's rules and configuration pipeline`,()=>import(`./request-tracers-CaubpUFV.mjs`)),hideCommand:!0},{command:$(`resource-sharing`,`Share Cloudflare resources (zones, accounts) across organizations with granular access controls`,()=>import(`./resource-sharing-6Snv-b69.mjs`)),hideCommand:!1},{command:$(`resource-tagging`,`resource-tagging`,()=>import(`./resource-tagging-W_LFiX2J.mjs`)),hideCommand:!0},{command:$(`rules`,`Account-level IP lists, hostname lists, and other reusable lists referenced by Rulesets rules`,()=>import(`./rules-C26eyeA5.mjs`)),hideCommand:!0},{command:$(`rulesets`,`rulesets`,()=>import(`./rulesets-BKzIwVtJ.mjs`)),hideCommand:!1},{command:$(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-Xdw5hyWY.mjs`)),hideCommand:!0},{command:$(`scan-logo`,`scan-logo`,()=>import(`./scan-logo-zFkphtQ3.mjs`)),hideCommand:!0},{command:$(`scan-page`,`scan-page`,()=>import(`./scan-page-CLl2MAkZ.mjs`)),hideCommand:!0},{command:$(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-odJTXiIe.mjs`)),hideCommand:!0},{command:$(`search`,`search`,()=>import(`./search-12jA1b4l.mjs`)),hideCommand:!0},{command:$(`secrets-store`,`Centralized secret management — store API keys, tokens, and credentials for use across Workers and other products`,()=>import(`./secrets-store-RYpWWzaw.mjs`)),hideCommand:!1},{command:$(`security-center`,`Security posture dashboard — view and manage security insights, misconfigurations, and vulnerabilities`,()=>import(`./security-center-B3D95vCa.mjs`)),hideCommand:!1},{command:$(`security-txt`,`Manage the /.well-known/security.txt file that tells security researchers how to report vulnerabilities`,()=>import(`./security-txt-BSytVv-9.mjs`)),hideCommand:!0},{command:$(`signed-url`,`signed-url`,()=>import(`./signed-url-U0T_PEMR.mjs`)),hideCommand:!0},{command:$(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-C83Sfnf4.mjs`)),hideCommand:!0},{command:$(`snippets`,`snippets`,()=>import(`./snippets-B6oE9WIa.mjs`)),hideCommand:!1},{command:$(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-CfxY--X_.mjs`)),hideCommand:!0},{command:$(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-DzK-kiWt.mjs`)),hideCommand:!1},{command:$(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-dnjzPcSB.mjs`)),hideCommand:!0},{command:$(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-oFyhS4Wi.mjs`)),hideCommand:!1},{command:$(`submission-info`,`submission-info`,()=>import(`./submission-info-CZ84a3Nb.mjs`)),hideCommand:!0},{command:$(`submit`,`submit`,()=>import(`./submit-4f-ravmC.mjs`)),hideCommand:!0},{command:$(`tags`,`tags`,()=>import(`./tags-DrIP6Uiq.mjs`)),hideCommand:!0},{command:$(`tenant`,`tenant`,()=>import(`./tenant-C-gc3NWv.mjs`)),hideCommand:!1},{command:$(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-DduTQIwh.mjs`)),hideCommand:!0},{command:$(`total-queries`,`total-queries`,()=>import(`./total-queries-CJTc9Pde.mjs`)),hideCommand:!0},{command:$(`tracked-domains`,`tracked-domains`,()=>import(`./tracked-domains-BKLxnnSv.mjs`)),hideCommand:!0},{command:$(`tunnels`,`tunnels`,()=>import(`./tunnels-D0QYsskp.mjs`)),hideCommand:!0},{command:$(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-C6Q3spRB.mjs`)),hideCommand:!0},{command:$(`url-info`,`url-info`,()=>import(`./url-info-Cs0V89qq.mjs`)),hideCommand:!0},{command:$(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-DaEQYy5h.mjs`)),hideCommand:!0},{command:$(`url-scanner`,`Scan URLs for phishing, malware, and other threats — submit scans and retrieve detailed results`,()=>import(`./url-scanner-C4YVeQ4v.mjs`)),hideCommand:!0},{command:$(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-BV1VY3Kl.mjs`)),hideCommand:!1},{command:$(`values`,`values`,()=>import(`./values-qDS63E43.mjs`)),hideCommand:!0},{command:$(`vectorize`,`vectorize`,()=>import(`./vectorize-NFzD3mP5.mjs`)),hideCommand:!0},{command:$(`verify`,`verify`,()=>import(`./verify-CZW5Fo1q.mjs`)),hideCommand:!0},{command:$(`waiting-rooms`,`Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages`,()=>import(`./waiting-rooms-Y9YGj3ih.mjs`)),hideCommand:!1},{command:$(`web-assets`,`web-assets`,()=>import(`./web-assets-Gd6z8dbt.mjs`)),hideCommand:!0},{command:$(`web3`,`web3`,()=>import(`./web3-DCJx4NRp.mjs`)),hideCommand:!0},{command:$(`workers`,`workers`,()=>import(`./workers-B-j-1ygi.mjs`)),hideCommand:!1},{command:$(`workers-builds`,`workers-builds`,()=>import(`./workers-builds-DPrNKjZW.mjs`)),hideCommand:!0},{command:$(`workers-for-platforms`,`workers-for-platforms`,()=>import(`./workers-for-platforms-BjKAhMLA.mjs`)),hideCommand:!1},{command:$(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-C5YoCnQK.mjs`)),hideCommand:!0},{command:$(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-C2KKIJjl.mjs`)),hideCommand:!1},{command:$(`zaraz`,`Server-side tag manager — load third-party tools (analytics, pixels, etc.) from Cloudflare's edge without client-side JS`,()=>import(`./zaraz-CVLCs1IX.mjs`)),hideCommand:!0},{command:$(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-BtJi4OXF.mjs`)),hideCommand:!1},{command:$(`zone`,`zone`,()=>import(`./zone-hKgt0WzO.mjs`)),hideCommand:!1},{command:$(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-CCNyaD3J.mjs`)),hideCommand:!1}],gr=[{kind:`root`,command:`auth`,describe:`Manage authentication and profiles`,dir:`auth`,load:()=>import(`./auth-CZqics6E.mjs`)},{kind:`root`,command:`login`,describe:!1,dir:`login`,load:()=>import(`./login-DEWvGuaU.mjs`)},{kind:`root`,command:`build`,describe:`Build a project for Cloudflare`,dir:`build`,load:()=>import(`./build-OC77a1zq.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},{kind:`root`,command:`complete [shell]`,describe:`Generate and handle shell completions`,dir:`completions`,load:()=>import(`./completions-xPLd1cvL.mjs`)},{kind:`root`,command:`deploy`,describe:`Deploy a project to Cloudflare`,dir:`deploy`,load:()=>import(`./deploy-CVYdt3NK.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`]}}},{kind:`root`,command:`dev [implArgs..]`,describe:`Run the project's Cloudflare dev server`,dir:`dev`,load:()=>import(`./dev-PPUBjWcm.mjs`),telemetry:{command:`dev`,recordArgs:!1}},{kind:`root`,command:`telemetry`,describe:`Configure whether cf collects anonymous usage telemetry`,dir:`telemetry`,load:()=>import(`./telemetry-Dk1GcQ0u.mjs`)},{kind:`root`,command:`previews`,describe:`Manage Worker Previews`,dir:`previews`,load:()=>import(`./previews-y_nSqWK5.mjs`)},{kind:`root`,command:`schema [command..]`,describe:`Show API schema details for a command`,dir:`schema`,load:()=>import(`./schema-DqtYndhB.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},{kind:`root`,command:`tools`,describe:!1,dir:`tools`,load:()=>import(`./tools-BMKpYraQ.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}},{kind:`leafOverride`,emitKey:`ai/run`,dir:`ai/run`},{kind:`leafOverride`,emitKey:`registrar/registrations/create`,dir:`registrar/registrations/create`},{kind:`leaf`,parent:`workers/versions`,name:`create`,dir:`workers/versions/create`},{kind:`leaf`,parent:`containers`,name:`build`,dir:`containers/build`},{kind:`leaf`,parent:`containers`,name:`push`,dir:`containers/push`},{kind:`leaf`,parent:`containers/images`,name:`list`,dir:`containers/images/list`},{kind:`leaf`,parent:`containers/images`,name:`delete`,dir:`containers/images/delete`},{kind:`leaf`,parent:`containers`,name:`ssh`,dir:`containers/ssh`},{kind:`leaf`,parent:`workers`,name:`check`,dir:`workers/check`},{kind:`leaf`,parent:`workers`,name:`types`,dir:`workers/types`},{kind:`leaf`,parent:`tunnels`,name:`quick-start`,dir:`tunnels/quick-start`},{kind:`leaf`,parent:`tunnels`,name:`run`,dir:`tunnels/run`},{kind:`subgroup`,parent:`d1`,name:`migrations`,dir:`d1/migrations`,describe:`Create, list, and apply D1 database migrations`},{kind:`subgroup`,parent:`workers`,name:`triggers`,dir:`workers/triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`}];function _r(){return gr.filter(e=>e.kind===`root`)}function vr(e){return e.command.split(/\s+/)[0]??e.command}function yr(e=process.argv.slice(2)){let t=!1;for(let[n,r]of e.entries()){if(r===`--`)break;if(r===`--quiet=false`||r===`-q=false`||r===`--no-quiet`){t=!1;continue}if(r===`--quiet=true`||r===`-q=true`){t=!0;continue}(r===`--quiet`||r===`-q`)&&(t=e[n+1]!==`false`)}return t}let br=!1,xr=!1,Sr=!1;function Cr(e,t={}){if(!(br||xr)){if(t.quiet||!process.stderr.isTTY){xr=!0;return}process.stderr.write(`${d(e,t.update)}\n`),br=!0}}function wr(e){!br||xr||Sr||e===`default`||s({allowGlobalAuthKey:!1})!==void 0||(process.stderr.write(`${c.muted(`Active profile:`)} ${c.info(e)}\n`),Sr=!0)}function Tr(e){try{let t=new URL(e);return`${t.pathname.replace(/^\/client\/v\d+/,``)}${t.search}`}catch{return e}}function Er(e){if(Cr(o),e instanceof i){let t=l(),n=e.statusCode,r=e.body,i=n===void 0?`Envelope Error`:Or(n),a=[];if(r){let e=r;Array.isArray(e.errors)&&(a=e.errors)}let o=e.rawResponse?.url?`HTTP ${Tr(e.rawResponse.url)}`:void 0,s=n===void 0?i:`${n} ${i}`,c=o?`${s} · ${o}`:s,d=t.dim(c),m=``;return a.length>0?m=a.map((e,n)=>{let r=typeof e.code==`number`?t.hex(u.error).bold(`[${e.code}]`):t.hex(u.error).bold(`[error]`),i=t.bold(e.message??``);return n===a.length-1?`${r} ${i}\n${d}`:`${r} ${i}`}).join(`
|
|
98
|
+
`,`f`),P(this,G,F(this,G,`f`)+e.join(` `),`f`)}}}[Nn](e){Tt(F(this,K,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=F(this,K,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete F(this,Y,`f`).getDescriptions()[e]}[Pn](e,t,n){F(this,hn,`f`)[n]||(F(this,J,`f`).process.emitWarning(e,t),F(this,hn,`f`)[n]=!0)}[Fn](){F(this,gn,`f`).push({options:F(this,K,`f`),configObjects:F(this,K,`f`).configObjects.slice(0),exitProcess:F(this,B,`f`),groups:F(this,H,`f`),strict:F(this,En,`f`),strictCommands:F(this,Dn,`f`),strictOptions:F(this,On,`f`),completionCommand:F(this,R,`f`),output:F(this,G,`f`),exitError:F(this,z,`f`),hasOutput:F(this,U,`f`),parsed:this.parsed,parseFn:F(this,q,`f`),parseContext:F(this,xn,`f`)}),F(this,Y,`f`).freeze(),F(this,Z,`f`).freeze(),F(this,I,`f`).freeze(),F(this,V,`f`).freeze()}[In](){let e=``,t;return t=/\b(node|iojs|electron)(\.exe)?$/.test(F(this,J,`f`).process.argv()[0])?F(this,J,`f`).process.argv().slice(1,2):F(this,J,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[or](F(this,dn,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),F(this,J,`f`).getEnv(`_`)&&F(this,J,`f`).getProcessArgvBin()===F(this,J,`f`).getEnv(`_`)&&(e=F(this,J,`f`).getEnv(`_`).replace(`${F(this,J,`f`).path.dirname(F(this,J,`f`).process.execPath())}/`,``)),e}[Ln](){return F(this,bn,`f`)}[Rn](){return F(this,kn,`f`)}[zn](){if(!F(this,mn,`f`))return;let e=F(this,J,`f`).getEnv(`LC_ALL`)||F(this,J,`f`).getEnv(`LC_MESSAGES`)||F(this,J,`f`).getEnv(`LANG`)||F(this,J,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[Bn](){return this[Hn]().version||`unknown`}[Vn](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)F(this,J,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[Hn](e){let t=e||`*`;if(F(this,Sn,`f`)[t])return F(this,Sn,`f`)[t];let n={};try{let t=e||F(this,J,`f`).mainFilename;F(this,J,`f`).path.extname(t)&&(t=F(this,J,`f`).path.dirname(t));let r=F(this,J,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});A(r,void 0,F(this,J,`f`)),n=JSON.parse(F(this,J,`f`).readFileSync(r,`utf8`))}catch{}return F(this,Sn,`f`)[t]=n||{},F(this,Sn,`f`)[t]}[Q](e,t){t=[].concat(t),t.forEach(t=>{t=this[Kn](t),F(this,K,`f`)[e].push(t)})}[Un](e,t,n,r){this[Gn](e,t,n,r,(e,t,n)=>{F(this,K,`f`)[e][t]=n})}[Wn](e,t,n,r){this[Gn](e,t,n,r,(e,t,n)=>{F(this,K,`f`)[e][t]=(F(this,K,`f`)[e][t]||[]).concat(n)})}[Gn](e,t,n,r,i){if(Array.isArray(n))n.forEach(t=>{e(t,r)});else if((e=>typeof e==`object`)(n))for(let t of Tt(n))e(t,n[t]);else i(t,this[Kn](n),r)}[Kn](e){return e===`__proto__`?`___proto___`:e}[qn](e,t){return this[Un](this[qn].bind(this),`key`,e,t),this}[Jn](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=F(this,gn,`f`).pop();A(f,void 0,F(this,J,`f`));let p;e=this,t=this,n=this,r=this,i=this,a=this,o=this,s=this,c=this,l=this,u=this,d=this,{options:{set value(t){P(e,K,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){P(t,B,e,`f`)}}.value,groups:{set value(e){P(n,H,e,`f`)}}.value,output:{set value(e){P(r,G,e,`f`)}}.value,exitError:{set value(e){P(i,z,e,`f`)}}.value,hasOutput:{set value(e){P(a,U,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){P(o,En,e,`f`)}}.value,strictCommands:{set value(e){P(s,Dn,e,`f`)}}.value,strictOptions:{set value(e){P(c,On,e,`f`)}}.value,completionCommand:{set value(e){P(l,R,e,`f`)}}.value,parseFn:{set value(e){P(u,q,e,`f`)}}.value,parseContext:{set value(e){P(d,xn,e,`f`)}}.value}=f,F(this,K,`f`).configObjects=p,F(this,Y,`f`).unfreeze(),F(this,Z,`f`).unfreeze(),F(this,I,`f`).unfreeze(),F(this,V,`f`).unfreeze()}[Yn](e,t){return Nt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[Xn].bind(this),getContext:this[Zn].bind(this),getHasOutput:this[Qn].bind(this),getLoggerInstance:this[$n].bind(this),getParseContext:this[er].bind(this),getParserConfiguration:this[Ln].bind(this),getUsageConfiguration:this[Rn].bind(this),getUsageInstance:this[tr].bind(this),getValidationInstance:this[nr].bind(this),hasParseCallback:this[rr].bind(this),isGlobalContext:this[ir].bind(this),postProcess:this[ar].bind(this),reset:this[sr].bind(this),runValidation:this[lr].bind(this),runYargsParserAndExecuteCommands:this[cr].bind(this),setHasOutput:this[ur].bind(this)}}[Xn](){return F(this,I,`f`)}[Zn](){return F(this,fn,`f`)}[Qn](){return F(this,U,`f`)}[$n](){return F(this,vn,`f`)}[er](){return F(this,xn,`f`)||{}}[tr](){return F(this,Y,`f`)}[nr](){return F(this,Z,`f`)}[rr](){return!!F(this,q,`f`)}[ir](){return F(this,_n,`f`)}[ar](e,t,n,r){return n||j(e)?e:(t||(e=this[jn](e)),(this[Ln]()[`parse-positional-numbers`]||this[Ln]()[`parse-positional-numbers`]===void 0)&&(e=this[Vn](e)),r&&(e=Mt(e,this,F(this,V,`f`).getMiddleware(),!1)),e)}[sr](e={}){P(this,K,F(this,K,`f`)||{},`f`);let t={};t.local=F(this,K,`f`).local||[],t.configObjects=F(this,K,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(F(this,Cn,`f`),Object.keys(F(this,H,`f`)).reduce((e,t)=>{let r=F(this,H,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),P(this,H,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(F(this,K,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=Ut(F(this,K,`f`)[e],e=>!n[e])}),t.envPrefix=F(this,K,`f`).envPrefix,P(this,K,t,`f`),P(this,Y,F(this,Y,`f`)?F(this,Y,`f`).reset(n):Kt(this,F(this,J,`f`)),`f`),P(this,Z,F(this,Z,`f`)?F(this,Z,`f`).reset(n):rn(this,F(this,Y,`f`),F(this,J,`f`)),`f`),P(this,I,F(this,I,`f`)?F(this,I,`f`).reset():Lt(F(this,Y,`f`),F(this,Z,`f`),F(this,V,`f`),F(this,J,`f`)),`f`),F(this,L,`f`)||P(this,L,Qt(this,F(this,Y,`f`),F(this,I,`f`),F(this,J,`f`)),`f`),F(this,V,`f`).reset(),P(this,R,null,`f`),P(this,G,``,`f`),P(this,z,null,`f`),P(this,U,!1,`f`),this.parsed=!1,this}[or](e,t){return F(this,J,`f`).path.relative(e,t)}[cr](e,t,n,r=0,i=!1){let a=!!n||i;e||=F(this,wn,`f`),F(this,K,`f`).__=F(this,J,`f`).y18n.__,F(this,K,`f`).configuration=this[Ln]();let o=!!F(this,K,`f`).configuration[`populate--`],s=Object.assign({},F(this,K,`f`).configuration,{"populate--":!0}),c=F(this,J,`f`).Parser.detailed(e,Object.assign({},F(this,K,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,F(this,xn,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===F(this,W,`f`)&&l[e]?f=!0:e===F(this,X,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&F(this,Y,`f`).clearCachedHelpMessage();try{if(this[zn](),t)return this[ar](l,o,!!n,!1);F(this,W,`f`)&&[F(this,W,`f`)].concat(d[F(this,W,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),P(this,_n,!1,`f`);let s=F(this,I,`f`).getCommands(),m=F(this,L,`f`)?.completionKey?[F(this,L,`f`)?.completionKey,...this.getAliases()[F(this,L,`f`)?.completionKey]??[]].some(e=>Object.prototype.hasOwnProperty.call(l,e)):!1,h=f||m||i;if(l._.length){if(s.length){let e;for(let t=r||0,a;l._[t]!==void 0;t++)if(a=String(l._[t]),s.includes(a)&&a!==F(this,R,`f`)){let e=F(this,I,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[ar](e,o,!!n,!1)}else if(!e&&a!==F(this,R,`f`)){e=a;break}!F(this,I,`f`).hasDefaultCommand()&&F(this,Tn,`f`)&&e&&!h&&F(this,Z,`f`).recommendCommands(e,s)}F(this,R,`f`)&&l._.includes(F(this,R,`f`))&&!m&&(F(this,B,`f`)&&Wt(!0),this.showCompletionScript(),this.exit(0))}if(F(this,I,`f`).hasDefaultCommand()&&!h){let e=F(this,I,`f`).runCommand(null,this,c,0,i,f||p||i);return this[ar](e,o,!!n,!1)}if(m){F(this,B,`f`)&&Wt(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${F(this,L,`f`).completionKey}`)+1);return F(this,L,`f`).getCompletion(t,(e,t)=>{if(e)throw new M(e.message);(t||[]).forEach(e=>{F(this,vn,`f`).log(e)}),this.exit(0)}),this[ar](l,!o,!!n,!1)}if(F(this,U,`f`)||(f?(F(this,B,`f`)&&Wt(!0),a=!0,this.showHelp(e=>{F(this,vn,`f`).log(e),this.exit(0)})):p&&(F(this,B,`f`)&&Wt(!0),a=!0,F(this,Y,`f`).showVersion(`log`),this.exit(0))),!a&&F(this,K,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>F(this,K,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new M(c.error.message);if(!m){let e=this[lr](d,{},c.error);n||(u=Mt(l,this,F(this,V,`f`).getMiddleware(),!0)),u=this[Yn](e,u??l),j(u)&&!n&&(u=u.then(()=>Mt(l,this,F(this,V,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof M)F(this,Y,`f`).fail(e.message,e);else throw e}return this[ar](u??l,o,!!n,!0)}[lr](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new M(n.message);F(this,Z,`f`).nonOptionCount(a),F(this,Z,`f`).requiredArguments(a,i);let o=!1;F(this,Dn,`f`)&&(o=F(this,Z,`f`).unknownCommands(a)),F(this,En,`f`)&&!o?F(this,Z,`f`).unknownArguments(a,e,t,!!r):F(this,On,`f`)&&F(this,Z,`f`).unknownArguments(a,e,{},!1,!1),F(this,Z,`f`).limitedChoices(a),F(this,Z,`f`).implications(a),F(this,Z,`f`).conflicting(a)}}[ur](){P(this,U,!0,`f`)}[dr](e){if(typeof e==`string`)F(this,K,`f`).key[e]=!0;else for(let t of e)F(this,K,`f`).key[t]=!0}};function pr(e){return!!e&&typeof e.getInternalMethods==`function`}const mr=An(Ct);function $(e,t,n,r){return{command:e,describe:t,builder:async e=>{let t=(await n()).default.builder;return typeof t==`function`?t(e):e},handler:async e=>{let t=await n();if(!r){await t.default.handler(e);return}let{runWithTelemetry:i}=await import(`./run-CSFE1qVX.mjs`);await i(r,e,()=>t.default.handler(e))}}}const hr=[{command:$(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-BwsJLiPN.mjs`)),hideCommand:!0},{command:$(`access`,`access`,()=>import(`./access-BVbIajYr.mjs`)),hideCommand:!0},{command:$(`account`,`account`,()=>import(`./account-DBLarar2.mjs`)),hideCommand:!1},{command:$(`account-tags`,`account-tags`,()=>import(`./account-tags-BNrSShjj.mjs`)),hideCommand:!1},{command:$(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-CCAnDjFk.mjs`)),hideCommand:!1},{command:$(`acm`,`acm`,()=>import(`./acm-ZPYQbZQr.mjs`)),hideCommand:!0},{command:$(`addressing`,`addressing`,()=>import(`./addressing-BFpzLfTn.mjs`)),hideCommand:!0},{command:$(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-DEvy2dLU.mjs`)),hideCommand:!1},{command:$(`ai`,`ai`,()=>import(`./ai-BF0_0NtS.mjs`)),hideCommand:!1},{command:$(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-Dn03zntn.mjs`)),hideCommand:!1},{command:$(`ai-gateway`,`Proxy, cache, rate-limit, and observe requests to AI providers — OpenAI, Anthropic, Workers AI, and more`,()=>import(`./ai-gateway-CVABbCjv.mjs`)),hideCommand:!1},{command:$(`ai-search`,`Managed search-as-a-service: crawl, index, and query content with AI-powered relevance and chat completions`,()=>import(`./ai-search-g0tR8Cut.mjs`)),hideCommand:!1},{command:$(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-BXXA0Jnk.mjs`)),hideCommand:!0},{command:$(`alerting`,`alerting`,()=>import(`./alerting-Bst10SOG.mjs`)),hideCommand:!0},{command:$(`alerts`,`alerts`,()=>import(`./alerts-CstOk8n0.mjs`)),hideCommand:!0},{command:$(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-DgEaxta8.mjs`)),hideCommand:!1},{command:$(`analytics_engine`,`analytics_engine`,()=>import(`./analytics_engine-B4DvcYmB.mjs`)),hideCommand:!0},{command:$(`api-security`,`api-security`,()=>import(`./api-security-Dkx1Codr.mjs`)),hideCommand:!0},{command:$(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-BvswWPlP.mjs`)),hideCommand:!0},{command:$(`artifacts`,`artifacts`,()=>import(`./artifacts-D8kZKJq0.mjs`)),hideCommand:!0},{command:$(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-Bp_yQpXJ.mjs`)),hideCommand:!0},{command:$(`autorag`,`autorag`,()=>import(`./autorag-PRTwXGgn.mjs`)),hideCommand:!0},{command:$(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-Cqj64fqz.mjs`)),hideCommand:!1},{command:$(`bot-management`,`bot-management`,()=>import(`./bot-management-CzZx_aml.mjs`)),hideCommand:!0},{command:$(`botnet-feed`,`Botnet threat intelligence feeds — IP and ASN-level data on known command-and-control infrastructure`,()=>import(`./botnet-feed-Co0c8Xdj.mjs`)),hideCommand:!0},{command:$(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-CDsGaPIl.mjs`)),hideCommand:!0},{command:$(`brands`,`brands`,()=>import(`./brands-BHRXlWDm.mjs`)),hideCommand:!0},{command:$(`browser-extension`,`browser-extension`,()=>import(`./browser-extension-BRHJm3Qf.mjs`)),hideCommand:!1},{command:$(`browser-run`,`browser-run`,()=>import(`./browser-run-DFrohJ1p.mjs`)),hideCommand:!1},{command:$(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-CamhClyb.mjs`)),hideCommand:!1},{command:$(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-BiTk4-Zc.mjs`)),hideCommand:!1},{command:$(`certificate-authorities`,`certificate-authorities`,()=>import(`./certificate-authorities-Dal9DNjW.mjs`)),hideCommand:!0},{command:$(`clear`,`clear`,()=>import(`./clear-UvKESVx3.mjs`)),hideCommand:!0},{command:$(`client-certificates`,`client-certificates`,()=>import(`./client-certificates-DDisXoTE.mjs`)),hideCommand:!0},{command:$(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-CIO_YPtN.mjs`)),hideCommand:!0},{command:$(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-vwdixea0.mjs`)),hideCommand:!1},{command:$(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-C1cFVBGK.mjs`)),hideCommand:!1},{command:$(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-DQ5T-HMN.mjs`)),hideCommand:!0},{command:$(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-DWam38_9.mjs`)),hideCommand:!0},{command:$(`connector-telemetry-events-latest`,`connector-telemetry-events-latest`,()=>import(`./connector-telemetry-events-latest-DwnFeZg0.mjs`)),hideCommand:!0},{command:$(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-DX6AJf9Q.mjs`)),hideCommand:!0},{command:$(`connector-telemetry-snapshots-latest`,`connector-telemetry-snapshots-latest`,()=>import(`./connector-telemetry-snapshots-latest-Dv6rZlxs.mjs`)),hideCommand:!0},{command:$(`connectors`,`connectors`,()=>import(`./connectors-CBhLWVd-.mjs`)),hideCommand:!0},{command:$(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-C7blN-pe.mjs`)),hideCommand:!1},{command:$(`content-scan`,`Malicious uploads detection, scan uploaded content in HTTP requests for malware and malicious payloads`,()=>import(`./content-scan-CC91dAlv.mjs`)),hideCommand:!0},{command:$(`cps`,`cps`,()=>import(`./cps-D9a4N_bH.mjs`)),hideCommand:!1},{command:$(`csamScanner`,`csamScanner`,()=>import(`./csamScanner-T7nbCnep.mjs`)),hideCommand:!0},{command:$(`ct-alerting`,`ct-alerting`,()=>import(`./ct-alerting-CkjNJlla.mjs`)),hideCommand:!0},{command:$(`custom-certificates`,`custom-certificates`,()=>import(`./custom-certificates-DnWnt9oJ.mjs`)),hideCommand:!0},{command:$(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-Db2pF9Ib.mjs`)),hideCommand:!1},{command:$(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-B_N-uSIa.mjs`)),hideCommand:!0},{command:$(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-DPA_sFY8.mjs`)),hideCommand:!1},{command:$(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-D6fxEBoh.mjs`)),hideCommand:!1},{command:$(`d1`,`D1 is Cloudflare's managed, serverless database with SQLite's SQL semantics, built-in disaster recovery, and Worker and HTTP API access.`,()=>import(`./d1-DXs1xVmH.mjs`)),hideCommand:!1},{command:$(`data-security`,`data-security`,()=>import(`./data-security-CVZAIzhe.mjs`)),hideCommand:!1},{command:$(`dcv-delegation`,`dcv-delegation`,()=>import(`./dcv-delegation-as1ue_wx.mjs`)),hideCommand:!0},{command:$(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-BKH1Oh-C.mjs`)),hideCommand:!0},{command:$(`dls`,`dls`,()=>import(`./dls-C5kAQsN6.mjs`)),hideCommand:!0},{command:$(`dns`,`dns`,()=>import(`./dns-CYwXrdJO.mjs`)),hideCommand:!1},{command:$(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-BEw4QcXj.mjs`)),hideCommand:!0},{command:$(`domain-info`,`domain-info`,()=>import(`./domain-info-BqTDXNBo.mjs`)),hideCommand:!0},{command:$(`durable-objects`,`durable-objects`,()=>import(`./durable-objects-3jvUgzKd.mjs`)),hideCommand:!1},{command:$(`email-auth`,`email-auth`,()=>import(`./email-auth-B3MD8FrJ.mjs`)),hideCommand:!0},{command:$(`email-routing`,`Route incoming email to verified destination addresses or Workers with routing rules, catch-all behavior, and managed DNS records`,()=>import(`./email-routing-C4YhZGPw.mjs`)),hideCommand:!1},{command:$(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-BcFyWNby.mjs`)),hideCommand:!0},{command:$(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-BO1GOAho.mjs`)),hideCommand:!1},{command:$(`fieldExtractors`,`fieldExtractors`,()=>import(`./fieldExtractors-BJDnzNCN.mjs`)),hideCommand:!0},{command:$(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-BSMa9aH3.mjs`)),hideCommand:!1},{command:$(`flagship`,`flagship`,()=>import(`./flagship-BJYMb7hb.mjs`)),hideCommand:!0},{command:$(`fraud`,`fraud`,()=>import(`./fraud-C7kS7kP9.mjs`)),hideCommand:!0},{command:$(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-8VR-j0sa.mjs`)),hideCommand:!0},{command:$(`health`,`health`,()=>import(`./health-CwPzzrV6.mjs`)),hideCommand:!0},{command:$(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-BJleItOD.mjs`)),hideCommand:!0},{command:$(`hostnames`,`hostnames`,()=>import(`./hostnames-CHajvoHa.mjs`)),hideCommand:!0},{command:$(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-DlxQrok-.mjs`)),hideCommand:!1},{command:$(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-B7oTr6vW.mjs`)),hideCommand:!0},{command:$(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-xLAYe436.mjs`)),hideCommand:!1},{command:$(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-DwZXY1YE.mjs`)),hideCommand:!1},{command:$(`internal`,`internal`,()=>import(`./internal-WLHfxX64.mjs`)),hideCommand:!0},{command:$(`ips`,`ips`,()=>import(`./ips-BC_9nKE7.mjs`)),hideCommand:!0},{command:$(`keyless-certificates`,`keyless-certificates`,()=>import(`./keyless-certificates-CtsCsbZ2.mjs`)),hideCommand:!0},{command:$(`keys`,`keys`,()=>import(`./keys-K-GFzhku.mjs`)),hideCommand:!0},{command:$(`kv`,`kv`,()=>import(`./kv-Bfwz_ULu.mjs`)),hideCommand:!0},{command:$(`leaked-credential-checks`,`Detect compromised credentials in login requests by checking against known breach databases`,()=>import(`./leaked-credential-checks-D8UuxztO.mjs`)),hideCommand:!0},{command:$(`live`,`live`,()=>import(`./live-D_k7eHdv.mjs`)),hideCommand:!0},{command:$(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-B0XeGLhT.mjs`)),hideCommand:!1},{command:$(`logo-matches`,`logo-matches`,()=>import(`./logo-matches-DWg5ezsM.mjs`)),hideCommand:!0},{command:$(`logos`,`logos`,()=>import(`./logos-6A6gJC5C.mjs`)),hideCommand:!0},{command:$(`logpush`,`logpush`,()=>import(`./logpush-DwehajAw.mjs`)),hideCommand:!1},{command:$(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-BWg7YymF.mjs`)),hideCommand:!1},{command:$(`magic-cloud-networking`,`magic-cloud-networking`,()=>import(`./magic-cloud-networking--14hNj2F.mjs`)),hideCommand:!0},{command:$(`magic-network-monitoring`,`Flow-based network traffic monitoring with configurable alerting rules and VPC flow ingestion`,()=>import(`./magic-network-monitoring-Dzo4L6kd.mjs`)),hideCommand:!1},{command:$(`magic-transit`,`DDoS-protected network transit — GRE/IPsec tunnels, static routes, Magic WAN sites, connectors, and packet captures`,()=>import(`./magic-transit-DDO0A5v4.mjs`)),hideCommand:!0},{command:$(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-DQ0iwWdG.mjs`)),hideCommand:!1},{command:$(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-DDIdcPG0.mjs`)),hideCommand:!0},{command:$(`matches`,`matches`,()=>import(`./matches-D6ahHNaP.mjs`)),hideCommand:!0},{command:$(`mcp`,`mcp`,()=>import(`./mcp-BcIrLbRv.mjs`)),hideCommand:!1},{command:$(`mesh`,`mesh`,()=>import(`./mesh-wLiPcWyN.mjs`)),hideCommand:!0},{command:$(`mtls-certificates`,`mtls-certificates`,()=>import(`./mtls-certificates-AEuNOERQ.mjs`)),hideCommand:!0},{command:$(`network`,`network`,()=>import(`./network-DZsrs_sw.mjs`)),hideCommand:!0},{command:$(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-Cjbu4EMv.mjs`)),hideCommand:!0},{command:$(`oauth-clients`,`oauth-clients`,()=>import(`./oauth-clients-DR0hzakz.mjs`)),hideCommand:!0},{command:$(`oauth-scopes`,`oauth-scopes`,()=>import(`./oauth-scopes-BDNpJJ32.mjs`)),hideCommand:!0},{command:$(`observability`,`observability`,()=>import(`./observability-BnHy2M6p.mjs`)),hideCommand:!1},{command:$(`organization`,`organization`,()=>import(`./organization-iasRm69J.mjs`)),hideCommand:!1},{command:$(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-CUzCIKXV.mjs`)),hideCommand:!1},{command:$(`origin-ca-certificates`,`origin-ca-certificates`,()=>import(`./origin-ca-certificates-iQXSqBI0.mjs`)),hideCommand:!0},{command:$(`origin-post-quantum-encryption`,`Enable post-quantum key exchange for connections between Cloudflare and your origin server`,()=>import(`./origin-post-quantum-encryption-DcMDK6Tz.mjs`)),hideCommand:!0},{command:$(`origin-tls-client-auth`,`origin-tls-client-auth`,()=>import(`./origin-tls-client-auth-D1X26X7y.mjs`)),hideCommand:!0},{command:$(`page-rules`,`page-rules`,()=>import(`./page-rules-CXa8EYcP.mjs`)),hideCommand:!0},{command:$(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-Cu0m9GSH.mjs`)),hideCommand:!0},{command:$(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-DmF8xlm_.mjs`)),hideCommand:!1},{command:$(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-DIp2fwJU.mjs`)),hideCommand:!1},{command:$(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-MmXlsxYO.mjs`)),hideCommand:!1},{command:$(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-jqeEG_mJ.mjs`)),hideCommand:!0},{command:$(`queries`,`queries`,()=>import(`./queries-VzdcSR5H.mjs`)),hideCommand:!0},{command:$(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-BZYl2emH.mjs`)),hideCommand:!1},{command:$(`r2`,`S3-compatible object storage with zero egress fees — buckets, lifecycle rules, event notifications, and data migration`,()=>import(`./r2-omcKF8_A.mjs`)),hideCommand:!1},{command:$(`r2-data-catalog`,`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,()=>import(`./r2-data-catalog-DISnPFPY.mjs`)),hideCommand:!0},{command:$(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-JzBTD249.mjs`)),hideCommand:!0},{command:$(`rate-limit-analytics`,`rate-limit-analytics`,()=>import(`./rate-limit-analytics-CDTPxSET.mjs`)),hideCommand:!1},{command:$(`rate-limits`,`Legacy per-zone rate limiting rules — prefer Advanced Rate Limiting in Rulesets for new configurations`,()=>import(`./rate-limits-C3K9smdl.mjs`)),hideCommand:!0},{command:$(`ready`,`ready`,()=>import(`./ready-CvwvbdTX.mjs`)),hideCommand:!0},{command:$(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-yIdAJ0Yf.mjs`)),hideCommand:!1},{command:$(`recent-submissions`,`recent-submissions`,()=>import(`./recent-submissions-CjzcT-iH.mjs`)),hideCommand:!0},{command:$(`refute`,`refute`,()=>import(`./refute-CIAFMj00.mjs`)),hideCommand:!0},{command:$(`registrar`,`registrar`,()=>import(`./registrar-D-Li9gNk.mjs`)),hideCommand:!1},{command:$(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-CKSSHAyv.mjs`)),hideCommand:!1},{command:$(`reporting`,`reporting`,()=>import(`./reporting-Cf-pnw6h.mjs`)),hideCommand:!1},{command:$(`request-tracers`,`Trace how a request would be processed through Cloudflare's rules and configuration pipeline`,()=>import(`./request-tracers-BegIQTzt.mjs`)),hideCommand:!0},{command:$(`resource-sharing`,`Share Cloudflare resources (zones, accounts) across organizations with granular access controls`,()=>import(`./resource-sharing-DEVgiYzM.mjs`)),hideCommand:!1},{command:$(`resource-tagging`,`resource-tagging`,()=>import(`./resource-tagging-Cm2yJkU9.mjs`)),hideCommand:!0},{command:$(`rules`,`Account-level IP lists, hostname lists, and other reusable lists referenced by Rulesets rules`,()=>import(`./rules-DDCa7cYF.mjs`)),hideCommand:!0},{command:$(`rulesets`,`rulesets`,()=>import(`./rulesets-BhS7Hvtu.mjs`)),hideCommand:!1},{command:$(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-EIj9ViSn.mjs`)),hideCommand:!0},{command:$(`scan-logo`,`scan-logo`,()=>import(`./scan-logo-zFkphtQ3.mjs`)),hideCommand:!0},{command:$(`scan-page`,`scan-page`,()=>import(`./scan-page-CLl2MAkZ.mjs`)),hideCommand:!0},{command:$(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-DA83eNe-.mjs`)),hideCommand:!0},{command:$(`search`,`search`,()=>import(`./search-12jA1b4l.mjs`)),hideCommand:!0},{command:$(`secrets-store`,`Centralized secret management — store API keys, tokens, and credentials for use across Workers and other products`,()=>import(`./secrets-store-BTd3eGIB.mjs`)),hideCommand:!1},{command:$(`security-center`,`Security posture dashboard — view and manage security insights, misconfigurations, and vulnerabilities`,()=>import(`./security-center-DbH_7h-T.mjs`)),hideCommand:!1},{command:$(`security-txt`,`Manage the /.well-known/security.txt file that tells security researchers how to report vulnerabilities`,()=>import(`./security-txt-DSrHhVEN.mjs`)),hideCommand:!0},{command:$(`signed-url`,`signed-url`,()=>import(`./signed-url-U0T_PEMR.mjs`)),hideCommand:!0},{command:$(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-DnSTo-OI.mjs`)),hideCommand:!0},{command:$(`snippets`,`snippets`,()=>import(`./snippets-An5kQs33.mjs`)),hideCommand:!1},{command:$(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-Ci79n7fd.mjs`)),hideCommand:!0},{command:$(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-BBL7LrLn.mjs`)),hideCommand:!1},{command:$(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-B2psFIRm.mjs`)),hideCommand:!0},{command:$(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-Du0Q7UOh.mjs`)),hideCommand:!1},{command:$(`submission-info`,`submission-info`,()=>import(`./submission-info-CZ84a3Nb.mjs`)),hideCommand:!0},{command:$(`submit`,`submit`,()=>import(`./submit-CU8S2jBT.mjs`)),hideCommand:!0},{command:$(`tags`,`tags`,()=>import(`./tags-C3l5aZSi.mjs`)),hideCommand:!0},{command:$(`tenant`,`tenant`,()=>import(`./tenant-BZ0ysR9L.mjs`)),hideCommand:!1},{command:$(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-DtKeyM5J.mjs`)),hideCommand:!0},{command:$(`total-queries`,`total-queries`,()=>import(`./total-queries-CJTc9Pde.mjs`)),hideCommand:!0},{command:$(`tracked-domains`,`tracked-domains`,()=>import(`./tracked-domains-BKLxnnSv.mjs`)),hideCommand:!0},{command:$(`tunnels`,`tunnels`,()=>import(`./tunnels-D1tRWQQi.mjs`)),hideCommand:!0},{command:$(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-DBa4_Vyz.mjs`)),hideCommand:!0},{command:$(`url-info`,`url-info`,()=>import(`./url-info-BRA0XGT2.mjs`)),hideCommand:!0},{command:$(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-B6N2m5s6.mjs`)),hideCommand:!0},{command:$(`url-scanner`,`Scan URLs for phishing, malware, and other threats — submit scans and retrieve detailed results`,()=>import(`./url-scanner-CeKkzkhe.mjs`)),hideCommand:!0},{command:$(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-CftksgmF.mjs`)),hideCommand:!1},{command:$(`values`,`values`,()=>import(`./values-m7w9PX3o.mjs`)),hideCommand:!0},{command:$(`vectorize`,`vectorize`,()=>import(`./vectorize-BWBEtsgZ.mjs`)),hideCommand:!0},{command:$(`verify`,`verify`,()=>import(`./verify-CZW5Fo1q.mjs`)),hideCommand:!0},{command:$(`waiting-rooms`,`Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages`,()=>import(`./waiting-rooms-BVZSYTNJ.mjs`)),hideCommand:!1},{command:$(`web-assets`,`web-assets`,()=>import(`./web-assets-CLU5vAgP.mjs`)),hideCommand:!0},{command:$(`web3`,`web3`,()=>import(`./web3-Dkd4XRNH.mjs`)),hideCommand:!0},{command:$(`workers`,`workers`,()=>import(`./workers-BQi4_SBS.mjs`)),hideCommand:!1},{command:$(`workers-builds`,`workers-builds`,()=>import(`./workers-builds-BgtPSDYJ.mjs`)),hideCommand:!0},{command:$(`workers-for-platforms`,`workers-for-platforms`,()=>import(`./workers-for-platforms-actLCM6Q.mjs`)),hideCommand:!1},{command:$(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-DjGfJgQn.mjs`)),hideCommand:!0},{command:$(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-Cm7WsAgB.mjs`)),hideCommand:!1},{command:$(`zaraz`,`Server-side tag manager — load third-party tools (analytics, pixels, etc.) from Cloudflare's edge without client-side JS`,()=>import(`./zaraz-DurWe32F.mjs`)),hideCommand:!0},{command:$(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-D8SVU8YZ.mjs`)),hideCommand:!1},{command:$(`zone`,`zone`,()=>import(`./zone-B3AEAfcd.mjs`)),hideCommand:!1},{command:$(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-DiX5LoSU.mjs`)),hideCommand:!1}],gr=[{kind:`root`,command:`auth`,describe:`Manage authentication and profiles`,dir:`auth`,load:()=>import(`./auth-B9w55oRg.mjs`)},{kind:`root`,command:`login`,describe:!1,dir:`login`,load:()=>import(`./login-CAsRUF4c.mjs`)},{kind:`root`,command:`build`,describe:`Build a project for Cloudflare`,dir:`build`,load:()=>import(`./build-DQh5-KK4.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},{kind:`root`,command:`complete [shell]`,describe:`Generate and handle shell completions`,dir:`completions`,load:()=>import(`./completions-xPLd1cvL.mjs`)},{kind:`root`,command:`deploy`,describe:`Deploy a project to Cloudflare`,dir:`deploy`,load:()=>import(`./deploy-D2XXCkqk.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`]}}},{kind:`root`,command:`dev [implArgs..]`,describe:`Run the project's Cloudflare dev server`,dir:`dev`,load:()=>import(`./dev-nsNxyg2D.mjs`),telemetry:{command:`dev`,recordArgs:!1}},{kind:`root`,command:`telemetry`,describe:`Configure whether cf collects anonymous usage telemetry`,dir:`telemetry`,load:()=>import(`./telemetry-Dk1GcQ0u.mjs`)},{kind:`root`,command:`previews`,describe:`Manage Worker Previews`,dir:`previews`,load:()=>import(`./previews-Cg6lc24N.mjs`)},{kind:`root`,command:`schema [command..]`,describe:`Show API schema details for a command`,dir:`schema`,load:()=>import(`./schema-DCBb3Fcs.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},{kind:`root`,command:`tools`,describe:!1,dir:`tools`,load:()=>import(`./tools-BMKpYraQ.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}},{kind:`leafOverride`,emitKey:`ai/run`,dir:`ai/run`},{kind:`leafOverride`,emitKey:`registrar/registrations/create`,dir:`registrar/registrations/create`},{kind:`leaf`,parent:`workers/versions`,name:`create`,dir:`workers/versions/create`},{kind:`leaf`,parent:`containers`,name:`build`,dir:`containers/build`},{kind:`leaf`,parent:`containers`,name:`push`,dir:`containers/push`},{kind:`leaf`,parent:`containers/images`,name:`list`,dir:`containers/images/list`},{kind:`leaf`,parent:`containers/images`,name:`delete`,dir:`containers/images/delete`},{kind:`leaf`,parent:`containers`,name:`ssh`,dir:`containers/ssh`},{kind:`leaf`,parent:`workers`,name:`check`,dir:`workers/check`},{kind:`leaf`,parent:`workers`,name:`types`,dir:`workers/types`},{kind:`leaf`,parent:`tunnels`,name:`quick-start`,dir:`tunnels/quick-start`},{kind:`leaf`,parent:`tunnels`,name:`run`,dir:`tunnels/run`},{kind:`subgroup`,parent:`d1`,name:`migrations`,dir:`d1/migrations`,describe:`Create, list, and apply D1 database migrations`},{kind:`subgroup`,parent:`workers`,name:`triggers`,dir:`workers/triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`}];function _r(){return gr.filter(e=>e.kind===`root`)}function vr(e){return e.command.split(/\s+/)[0]??e.command}function yr(e=process.argv.slice(2)){let t=!1;for(let[n,r]of e.entries()){if(r===`--`)break;if(r===`--quiet=false`||r===`-q=false`||r===`--no-quiet`){t=!1;continue}if(r===`--quiet=true`||r===`-q=true`){t=!0;continue}(r===`--quiet`||r===`-q`)&&(t=e[n+1]!==`false`)}return t}let br=!1,xr=!1,Sr=!1;function Cr(e,t={}){if(!(br||xr)){if(t.quiet||!process.stderr.isTTY){xr=!0;return}process.stderr.write(`${d(e,t.update)}\n`),br=!0}}function wr(e){!br||xr||Sr||e===`default`||s({allowGlobalAuthKey:!1})!==void 0||(process.stderr.write(`${c.muted(`Active profile:`)} ${c.info(e)}\n`),Sr=!0)}function Tr(e){try{let t=new URL(e);return`${t.pathname.replace(/^\/client\/v\d+/,``)}${t.search}`}catch{return e}}function Er(e){if(Cr(o),e instanceof i){let t=l(),n=e.statusCode,r=e.body,i=n===void 0?`Envelope Error`:Or(n),a=[];if(r){let e=r;Array.isArray(e.errors)&&(a=e.errors)}let o=e.rawResponse?.url?`HTTP ${Tr(e.rawResponse.url)}`:void 0,s=n===void 0?i:`${n} ${i}`,c=o?`${s} · ${o}`:s,d=t.dim(c),m=``;return a.length>0?m=a.map((e,n)=>{let r=typeof e.code==`number`?t.hex(u.error).bold(`[${e.code}]`):t.hex(u.error).bold(`[error]`),i=t.bold(e.message??``);return n===a.length-1?`${r} ${i}\n${d}`:`${r} ${i}`}).join(`
|
|
99
99
|
|
|
100
100
|
`):(m=t.hex(u.error).bold(e.message||c),e.message&&c&&(m+=`\n${d}`)),console.error(p(m,void 0,{title:`APIError`,rawMessage:!0})),n===401?console.error(`
|
|
101
101
|
`+f(`Try running: cf auth login`)):n===403&&console.error(`
|
|
@@ -103,6 +103,6 @@ complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name
|
|
|
103
103
|
|
|
104
104
|
`)}else{let n=t.hex(u.error).bold(e.message);a=r?`${n}\n${r}`:n}return console.error(p(a,void 0,{title:`APIError`,rawMessage:!0})),e.status===401?console.error(`
|
|
105
105
|
`+f(`Try running: cf auth login`)):e.status===403&&console.error(`
|
|
106
|
-
`+f(`Check your API token permissions`)),e}if(e instanceof Error){let t=process.env.DEBUG&&e.stack?Dr(e.stack):void 0;return console.error(p(e.message,t)),e}return console.error(p(`An unexpected error occurred`,String(e))),e}function Dr(e){return e.replace(/[A-Za-z0-9_-]{40,}/g,`[REDACTED]`)}function Or(e){return{400:`Bad Request`,401:`Unauthorized`,403:`Forbidden`,404:`Not Found`,405:`Method Not Allowed`,409:`Conflict`,422:`Unprocessable Entity`,429:`Too Many Requests`,500:`Internal Server Error`,502:`Bad Gateway`,503:`Service Unavailable`,504:`Gateway Timeout`}[e]??``}const kr={quiet:{type:`boolean`,alias:`q`,description:`Suppress non-essential output`,global:!0,default:!1},zone:{type:`string`,alias:`z`,description:`Zone ID or domain name (overrides CLOUDFLARE_ZONE_ID)`,global:!0},profile:{type:`string`,description:`Use a specific auth profile`,requiresArg:!0,global:!0},mode:{type:`string`,alias:`m`,description:`Mode used to evaluate project configuration`,requiresArg:!0,global:!0,coerce:e=>{if(Array.isArray(e))throw Error(`--mode can only be specified once.`);if(e===``)throw Error(`--mode requires a non-empty value.`);return e}},local:{type:`boolean`,description:`Use local resource simulations`,global:!0,default:!1},"persist-to":{type:`string`,description:`Directory holding local persisted state (default: ~/.config/cloudflare/state)`,requiresArg:!0,global:!0}};function Ar(e){return Object.entries(kr).some(([t,n])=>{if(n.type===`boolean`)return!1;let r=n.alias;return[t,...Array.isArray(r)?r:r===void 0?[]:[r]].some(t=>e===(t.length===1?`-${t}`:`--${t}`))})}const jr=_r().map(e=>$(e.command,e.describe,e.load,e.telemetry)),Mr=new Set(_r().map(vr));async function Nr(e=!1){if(!process.stderr.isTTY||e||yr(process.argv.slice(2))||Ir()===`complete`)return;let{readState:t,updateState:n}=await import(`./state-DSzkxXML.mjs`);t().completions?.prompted||(process.stderr.write(c.muted("Tip: run `cf complete <bash|zsh|fish>` to install shell completions.\n")),n({completions:{prompted:!0}}))}let Pr;function Fr(){return Pr??=import(`./telemetry-
|
|
107
|
-
`)),!0}function Gr(e=!1,t){let n=process.argv.slice(2),r=n.indexOf(`--`),i=r===-1?n:n.slice(0,r);i.length!==0&&(i.includes(`--version`)||i.includes(`-v`)||Ir(i)!==`complete`&&Cr(o,{quiet:e||yr(i),update:t}))}async function Kr(){let e=process.argv.slice(2);if(yr(e)||Ir(e)===`complete`||(e.length===0||e.includes(`--version`)||e.includes(`-v`)?process.stdout.isTTY!==!0:process.stderr.isTTY!==!0))return;let{isCI:t}=await import(`./interactive-DnUvQHjc.mjs`);if(t)return;let{getUpdateNotice:n,maybeStartBackgroundUpdateCheck:r}=await import(`./update-check-
|
|
108
|
-
The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":r(`Commands`),"Options:":r(`Options`),"Positionals:":r(`Positionals`),"Examples:":r(`Examples`)}).help(`help`,`Show help`).alias(`h`,`help`).options(kr).group([...Object.keys(kr),`help`,`version`],r(`Global flags`));for(let e of jr)s.command(e);for(let e of hr)e.hideCommand?s.command({...e.command,describe:!1}):s.command(e.command);return s.middleware(async e=>{Gr(e.quiet,n?.notice),n?.start();let r=Br(s);r!==void 0&&t?.(r);try{await Lr(e.quiet)}catch{}try{await Nr(e.quiet)}catch{}h(e.mode);let i=String(e._[0]??``);if(!e.help&&(i===`dev`&&a||e.local&&Mr.has(i)))throw Error(`--local is not supported by cf ${i}.`);if(e.persistTo===``)throw Error(`--persist-to requires a non-empty directory.`);if(e.persistTo!==void 0&&!e.local)throw Error(`--persist-to can only be used with --local.`);if(!e.local){let{resolveProfile:t}=await import(`./oauth-
|
|
106
|
+
`+f(`Check your API token permissions`)),e}if(e instanceof Error){let t=process.env.DEBUG&&e.stack?Dr(e.stack):void 0;return console.error(p(e.message,t)),e}return console.error(p(`An unexpected error occurred`,String(e))),e}function Dr(e){return e.replace(/[A-Za-z0-9_-]{40,}/g,`[REDACTED]`)}function Or(e){return{400:`Bad Request`,401:`Unauthorized`,403:`Forbidden`,404:`Not Found`,405:`Method Not Allowed`,409:`Conflict`,422:`Unprocessable Entity`,429:`Too Many Requests`,500:`Internal Server Error`,502:`Bad Gateway`,503:`Service Unavailable`,504:`Gateway Timeout`}[e]??``}const kr={quiet:{type:`boolean`,alias:`q`,description:`Suppress non-essential output`,global:!0,default:!1},zone:{type:`string`,alias:`z`,description:`Zone ID or domain name (overrides CLOUDFLARE_ZONE_ID)`,global:!0},profile:{type:`string`,description:`Use a specific auth profile`,requiresArg:!0,global:!0},mode:{type:`string`,alias:`m`,description:`Mode used to evaluate project configuration`,requiresArg:!0,global:!0,coerce:e=>{if(Array.isArray(e))throw Error(`--mode can only be specified once.`);if(e===``)throw Error(`--mode requires a non-empty value.`);return e}},local:{type:`boolean`,description:`Use local resource simulations`,global:!0,default:!1},"persist-to":{type:`string`,description:`Directory holding local persisted state (default: ~/.config/cloudflare/state)`,requiresArg:!0,global:!0}};function Ar(e){return Object.entries(kr).some(([t,n])=>{if(n.type===`boolean`)return!1;let r=n.alias;return[t,...Array.isArray(r)?r:r===void 0?[]:[r]].some(t=>e===(t.length===1?`-${t}`:`--${t}`))})}const jr=_r().map(e=>$(e.command,e.describe,e.load,e.telemetry)),Mr=new Set(_r().map(vr));async function Nr(e=!1){if(!process.stderr.isTTY||e||yr(process.argv.slice(2))||Ir()===`complete`)return;let{readState:t,updateState:n}=await import(`./state-DSzkxXML.mjs`);t().completions?.prompted||(process.stderr.write(c.muted("Tip: run `cf complete <bash|zsh|fish>` to install shell completions.\n")),n({completions:{prompted:!0}}))}let Pr;function Fr(){return Pr??=import(`./telemetry-PHe8XxA2.mjs`),Pr}function Ir(e=process.argv.slice(2)){for(let t=0;t<e.length;t++){let n=e[t];if(n===void 0||n===`--`)return;if(Ar(n)){t++;continue}if(!n.startsWith(`-`))return n}}async function Lr(e=!1){if(!process.stderr.isTTY)return;let t=process.argv.slice(2);if(e||yr(t)||t.includes(`--help`)||t.includes(`-h`))return;let n=Ir(t);if(n===`complete`||n===`telemetry`)return;let{getBannerLastShown:r,getTelemetryDispatcher:i,setBannerLastShown:a}=await Fr();i().enabled&&r()!==o&&(process.stderr.write(c.muted("Cloudflare collects anonymous cf usage telemetry. Run `cf telemetry disable` to opt out.\n")),a(o))}async function Rr(){try{await Promise.race([_(),v(1e3,void 0,{ref:!1})])}catch{}}function zr(e){return e instanceof Error&&e.message.startsWith(`Unknown command:`)}function Br(e){try{let t=e.getInternalMethods().getContext().commands;return!Array.isArray(t)||t.length===0||!t.every(e=>typeof e==`string`)?void 0:t.join(` `)}catch{return}}function Vr(e){let t=e.split(` `)[0];return t===`complete`||t===`telemetry`}async function Hr(e,t){if(g()||e instanceof Jr)return;let n=zr(e)?void 0:t,r=n??Ir();if(!(n===void 0&&!zr(e)||r!==void 0&&Vr(r)))try{let{getTelemetryDispatcher:t,UNKNOWN_COMMAND_EVENT:r}=await Fr(),{sanitizeError:i}=await import(`./error-sanitization-BkgUhGVc.mjs`),a=t(),o={command:n??r,sanitizedArgs:{},argsUsed:[],argsCombination:``};a.sendCommandEvent(`cf command started`,o),a.sendCommandEvent(`cf command finished`,{...o,outcome:`error`,durationMs:0,...i(e)})}catch{}}function Ur(e){let t=process.argv.slice(2),n=t.indexOf(`--`),r=n===-1?t:t.slice(0,n);return!r.includes(`--version`)&&!r.includes(`-v`)?!1:(console.log(d(o,e)),!0)}function Wr(e){if(process.argv.slice(2).length>0)return!1;let t=[d(o,e),``,`The Cloudflare CLI — manage your account, zones, and developer platform.`,``,`${c.bold(`Get started:`)}`,` ${c.code(`cf auth login`)} ${c.muted(`Authenticate with Cloudflare`)}`,` ${c.code(`cf --help`)} ${c.muted(`Browse all commands`)}`,` ${c.code(`cf <command> --help`)} ${c.muted(`Per-command help`)}`,` ${c.code(`cf complete bash`)} ${c.muted(`Install shell completions`)}`,``,`${c.bold(`Docs:`)} ${c.brand(`https://developers.cloudflare.com/`)}`,``];return console.log(t.join(`
|
|
107
|
+
`)),!0}function Gr(e=!1,t){let n=process.argv.slice(2),r=n.indexOf(`--`),i=r===-1?n:n.slice(0,r);i.length!==0&&(i.includes(`--version`)||i.includes(`-v`)||Ir(i)!==`complete`&&Cr(o,{quiet:e||yr(i),update:t}))}async function Kr(){let e=process.argv.slice(2);if(yr(e)||Ir(e)===`complete`||(e.length===0||e.includes(`--version`)||e.includes(`-v`)?process.stdout.isTTY!==!0:process.stderr.isTTY!==!0))return;let{isCI:t}=await import(`./interactive-DnUvQHjc.mjs`);if(t)return;let{getUpdateNotice:n,maybeStartBackgroundUpdateCheck:r}=await import(`./update-check-BbIXBq1o.mjs`),i=!1;return{notice:n(o),start(){i||(i=!0,r())}}}function qr(e,t,n){let r=e=>c.brand(e),i=e.indexOf(`--`),a=(i===-1?e:e.slice(0,i)).some(e=>e===`--local`||e===`--no-local`||e.startsWith(`--local=`)),s=mr(e).scriptName(`cf`).parserConfiguration({"sort-commands":!0}).wrap(process.stdout.columns||80).usage(`$0 <command> [options]`).usage(`
|
|
108
|
+
The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":r(`Commands`),"Options:":r(`Options`),"Positionals:":r(`Positionals`),"Examples:":r(`Examples`)}).help(`help`,`Show help`).alias(`h`,`help`).options(kr).group([...Object.keys(kr),`help`,`version`],r(`Global flags`));for(let e of jr)s.command(e);for(let e of hr)e.hideCommand?s.command({...e.command,describe:!1}):s.command(e.command);return s.middleware(async e=>{Gr(e.quiet,n?.notice),n?.start();let r=Br(s);r!==void 0&&t?.(r);try{await Lr(e.quiet)}catch{}try{await Nr(e.quiet)}catch{}h(e.mode);let i=String(e._[0]??``);if(!e.help&&(i===`dev`&&a||e.local&&Mr.has(i)))throw Error(`--local is not supported by cf ${i}.`);if(e.persistTo===``)throw Error(`--persist-to requires a non-empty directory.`);if(e.persistTo!==void 0&&!e.local)throw Error(`--persist-to can only be used with --local.`);if(!e.local){let{resolveProfile:t}=await import(`./oauth-Cu1twz9z.mjs`);wr(t(e.profile))}}).demandCommand(1,`You need to specify a command`).strictCommands().strictOptions().recommendCommands().version(o).alias(`v`,`version`).epilogue(`For more information, visit https://developers.cloudflare.com/`).exitProcess(!1).fail((e,r,i)=>{Gr(!1,n?.notice),n?.start();let a=Br(i);if(a!==void 0&&t?.(a),r)throw r;let o=/^Did you mean (.+)\?$/.exec(e)?.[1];if(!(o&&!i.getCommands().some(([e])=>e.split(` `)[0]===o))){if(e===`Please specify a subcommand`){i.showHelp(`log`);return}throw i.showHelp(`error`),Error(e)}}),s}var Jr=class extends Error{signal;cancelled;constructor(e,t={}){super(`CliExit(${e})`),this.code=e,this.name=`CliExit`,this.signal=t.signal,this.cancelled=t.cancelled??!1}};async function Yr(e){let t=process.argv;process.argv=[`node`,`cf`,...e];try{await Xr()}finally{process.argv=t}}async function Xr(){h(void 0),ee();let e=await Kr();if(Ur(e?.notice)||Wr(e?.notice))throw e?.start(),new Jr(0);let t,n=qr(pt(process.argv),e=>{t=e},e),r=pt(process.argv),i=r.indexOf(`--`),a=i===-1?r:r.slice(0,i);if(a.includes(`--help`)||a.includes(`-h`)){Gr(!1,e?.notice),e?.start();try{await Nr()}catch{}}try{await n.parse(pt(process.argv))}catch(e){if(e instanceof Jr)throw e;if(t===void 0){try{await Lr()}catch{}try{await Nr()}catch{}}throw await Hr(e,t??Br(n)),Er(e)}finally{await m(),await Rr()}}export{Cr as a,Yr as i,qr as n,yr as o,Xr as r,$ as s,Jr as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{_ as e}from"./oauth-
|
|
2
|
+
import{_ as e}from"./oauth-C-QCVfWz.mjs";import{r as t}from"./auth-C80y97yu.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-Bpp73hIu.mjs";import{t as a}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{n as o,t as s}from"./body-parser-CUWbw_Tq.mjs";import{n as c}from"./input-validation-Ch4Vllrm.mjs";import{i as l,n as u}from"./prompt-CpZztV8c.mjs";import{t as d}from"./cli-types-tt_LZMbn.mjs";function f(e){return e.usage(`$0 ssl analyze create
|
|
3
3
|
|
|
4
4
|
Returns the set of hostnames, the signature algorithm, and the expiration date of the certificate.`).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`],default:`ubiquitous`}).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).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:`Analyze Certificate`,builder:f,handler:async l=>a({command:`ssl analyze create`,classification:{safeFlags:[`bundle-method`,`dry-run`]}},l,async()=>{if(l.dryRun){r({command:`cf ssl analyze create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${l.zone??l.zoneId??`<zone>`}/ssl/analyze`,pathParams:{"zone-id":String(l.zone??l[`zone-id`]??``)},bodyKind:`json`,body:l.body===void 0?s({bundle_method:c(l[`bundle-method`],`bundle-method`,`text`),certificate:c(l.certificate,`certificate`,`text`)}):o(l.body)});return}let a=await t(l),u=await e({zone:l.zone},a,{quiet:l.quiet});if(l.zoneId=u,l.body){let e=o(l.body);n(await i(`Creating`,async()=>a.ssl.analyze.create({...e,zone_id:u})),{successLabel:`Created`});return}let d=s({bundle_method:c(l[`bundle-method`],`bundle-method`,`text`),certificate:c(l.certificate,`certificate`,`text`)});n(await i(`Creating`,async()=>a.ssl.analyze.create({...d,zone_id:u})),{successLabel:`Created`})})},m={command:`analyze`,describe:`Operations for analyze`,builder:e=>e.command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function h(e){return e.usage('$0 ssl auto-origin-tls-kex edit\n\nEnable or disable Auto-Origin TLS KEX selection for the zone by sending `{"enabled": true}` or `{"enabled": false}`. When enabled, Cloudflare runs a periodic scan of the zone\'s origins to determine the preferred key-exchange algorithm and writes that preference to the edge so it is sent first in the TLS ClientHello to the origin.').option(`enabled`,{type:`boolean`,description:`Controls enablement of Auto-Origin TLS KEX selection for the zone.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update enablement of Auto-Origin TLS KEX selection.`})}const g={command:`edit`,describe:`Patch Auto-Origin TLS KEX enrollment status for the given zone`,builder:h,handler:async c=>a({command:`ssl auto-origin-tls-kex edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf ssl auto-origin-tls-kex edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/settings/auto_origin_tls_kex`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({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.ssl.autoOriginTlsKex.edit({...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({enabled:c.enabled});n(await i(`Updating`,async()=>a.ssl.autoOriginTlsKex.edit({...u,zone_id:l})),{successLabel:`Updated`})})};function _(e){return e.usage(`$0 ssl auto-origin-tls-kex get
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-C-QCVfWz.mjs";import{a as r,r as i}from"./auth-C80y97yu.mjs";import{t as a}from"./output-Bia1u2k5.mjs";import{t as o}from"./dry-run-CLX6Pbtq.mjs";import{t as s}from"./progress-Bpp73hIu.mjs";import{t as c}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{i as l,n as u,r as d,t as f}from"./body-parser-CUWbw_Tq.mjs";import{n as p,t as m}from"./input-validation-Ch4Vllrm.mjs";import{a as h,n as g}from"./prompt-CpZztV8c.mjs";import{t as ee}from"./cli-types-tt_LZMbn.mjs";import{n as te,t as _}from"./raw-fetch-DxGs_eRm.mjs";function v(e){return e.usage(`$0 stream keys create
|
|
3
3
|
|
|
4
4
|
Creates an RSA private key in PEM and JWK formats. Key files are only displayed once after creation. Keys are created, used, and deleted independently of videos, and every key can sign any video.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`create`,describe:`Create signing keys`,builder:v,handler:async r=>c({command:`stream keys create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream keys create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/stream/keys`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Creating`,async()=>c.stream.keys.create({account_id:l})),{successLabel:`Created`})})};function b(e){return e.usage(`$0 stream keys delete <identifier>
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-C-QCVfWz.mjs";import{r}from"./auth-C80y97yu.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-Bpp73hIu.mjs";import{t as s}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";function c(e){return e.usage(`$0 submit create
|
|
3
3
|
|
|
4
4
|
Return new URL submissions`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`create`,describe:`Create new URL submissions`,builder:c,handler:async c=>s({command:`submit create`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf submit create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/brand-protection/submit`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Creating`,async()=>s.submit.create({account_id:l})),{successLabel:`Created`})})},u={command:`submit`,describe:`submit`,builder:e=>e.command(l).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{u as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-C-QCVfWz.mjs";import{r}from"./auth-C80y97yu.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-Bpp73hIu.mjs";import{t as s}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{t as c}from"./cli-types-tt_LZMbn.mjs";function l(e){return e.usage(`$0 tags resources list
|
|
3
3
|
|
|
4
4
|
Lists all tagged resources for an account.`).option(`type`,{type:`string`,description:`Filter by resource type. Can be repeated to filter by multiple types (OR logic). Example: ?type=zone&type=worker`}).option(`name`,{type:`string`,description:`Filter by resource name. Performs a case-insensitive substring match. Example: ?name=my-zone`}).option(`id`,{type:`string`,description:`Filter by resource ID. Can be repeated up to 50 times to filter by multiple IDs. Example: ?id=abc&id=def`}).option(`case-insensitive`,{type:`boolean`,description:"Match `tag` keys and values case-insensitively. Stored casing is unchanged. Example: ?tag=environment=production&case_insensitive=true"}).option(`tag`,{type:`string`,description:"Filter resources by tag criteria. This parameter can be repeated multiple times, with AND logic between parameters.\n\nSupported syntax:\n- **Key-only**: `tag=<key>` - Resource must have the tag key (e.g., `tag=production`)\n- **Key-value**: `tag=<key>=<value>` - Resource must have the tag with specific value (e.g., `tag=env=prod`)\n- **Multiple values (OR)**: `tag=<key>=<v1>,<v2>` - Resource must have tag with any of the values (e.g., `tag=env=prod,staging`)\n- **Negate key-only**: `tag=!<key>` - Resource must not have the tag key (e.g., `tag=!archived`)\n- **Negate key-value**: `tag=<key>!=<value>` - Resource must not have the tag with specific value (e.g., `tag=region!=us-west-1`)\n\nMultiple tag parameters are combined with AND logic."}).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`list`,describe:`List tagged resources`,builder:c(l),handler:async c=>s({command:`tags resources list`,classification:{safeFlags:[`case-insensitive`,`dry-run`]}},c,async()=>{let s={type:c.type,name:c.name,id:c.id,case_insensitive:c[`case-insensitive`],tag:c.tag,cursor:c.cursor};if(c.dryRun){a({command:`cf tags resources list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/tags/resources`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.tags.resources.list({account_id:u,...s})),{successLabel:`Loaded`})})},d={command:`resources`,describe:`Operations for resources`,builder:e=>e.command(u).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},f={command:`tags`,describe:`tags`,builder:e=>e.command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{f as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as e,n as t,r as n,t as r}from"./lifecycle-Ichnb2x1.mjs";import{a as i,c as a,i as o,l as s,n as c,o as l,r as u,s as d,t as f}from"./config-B4vIa0zp.mjs";import{i as p,n as m,r as h,t as g}from"./run-
|
|
2
|
+
import{a as e,n as t,r as n,t as r}from"./lifecycle-Ichnb2x1.mjs";import{a as i,c as a,i as o,l as s,n as c,o as l,r as u,s as d,t as f}from"./config-B4vIa0zp.mjs";import{i as p,n as m,r as h,t as g}from"./run-ChM_YpZ0.mjs";import{t as _}from"./telemetry-CNt8H3aA.mjs";export{f as TELEMETRY_ENV_VAR,c as TELEMETRY_POLICY_DATE,_ as UNKNOWN_COMMAND_EVENT,r as allTelemetryDispatchesSettled,t as beginTelemetryRun,u as getBannerLastShown,o as getDeviceId,p as getTelemetryDispatcher,i as getTelemetryFromEnv,l as isFirstUsage,n as markCommandReported,d as resolveTelemetry,g as runWithTelemetry,h as sanitizeArgs,a as setBannerLastShown,s as setTelemetryPermission,e as wasCommandReported,m as withTelemetry};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./auth-
|
|
2
|
+
import{r as e}from"./auth-C80y97yu.mjs";import{t}from"./output-Bia1u2k5.mjs";import{t as n}from"./dry-run-CLX6Pbtq.mjs";import{t as r}from"./progress-Bpp73hIu.mjs";import{t as i}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";function a(e){return e.usage(`$0 tenant account-type list
|
|
3
3
|
|
|
4
4
|
List of account types available for the Tenant to provision accounts.`).option(`tenant-id`,{type:`string`,description:`Tenant ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const o={command:`list`,describe:`Get tenant account types`,builder:a,handler:async a=>i({command:`tenant account-type list`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf tenant account-type list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/tenants/${a[`tenant-id`]==null?`<tenant-id>`:encodeURIComponent(String(a[`tenant-id`]))}/account_types`,pathParams:{"tenant-id":String(a[`tenant-id`]??``)},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.tenant.accountType.list({tenant_id:a[`tenant-id`]})),{successLabel:`Loaded`})})},s={command:`account-type`,describe:`Operations for account-type`,builder:e=>e.command(o).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function c(e){return e.usage(`$0 tenant account list
|
|
5
5
|
|
package/dist/{tenant-custom-nameservers-DduTQIwh.mjs → tenant-custom-nameservers-DtKeyM5J.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./auth-
|
|
2
|
+
import{r as e}from"./auth-C80y97yu.mjs";import{t}from"./output-Bia1u2k5.mjs";import{t as n}from"./dry-run-CLX6Pbtq.mjs";import{t as r}from"./progress-Bpp73hIu.mjs";import{t as i}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{n as a,t as o}from"./body-parser-CUWbw_Tq.mjs";import{n as s}from"./input-validation-Ch4Vllrm.mjs";import{a as c,n as l}from"./prompt-CpZztV8c.mjs";function u(e){return e.usage(`$0 tenant-custom-nameservers create <tenant-tag>
|
|
3
3
|
|
|
4
4
|
Adds a custom nameserver for a tenant.`).positional(`tenant-tag`,{type:`string`,description:`Tenant identifier tag.`,demandOption:!0}).option(`ns-name`,{type:`string`,description:`The FQDN of the name server.`}).option(`ns-set`,{type:`number`,description:`The number of the set that this name server belongs to.`,default:1}).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 d={command:`create <tenant-tag>`,describe:`Add Tenant Custom Nameserver`,builder:u,handler:async l=>i({command:`tenant-custom-nameservers create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){n({command:`cf tenant-custom-nameservers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/tenants/${l[`tenant-tag`]==null?`<tenant-tag>`:encodeURIComponent(String(l[`tenant-tag`]))}/custom_ns`,pathParams:{"tenant-tag":String(l[`tenant-tag`]??``)},bodyKind:`json`,body:l.body===void 0?o({ns_name:s(l[`ns-name`],`ns-name`,`text`),ns_set:l[`ns-set`]}):a(l.body)});return}let i=await e(l);if(l.body){let e=a(l.body);t(await r(`Creating`,async()=>i.tenantCustomNameservers.create({body:e,tenant_tag:l[`tenant-tag`]})),{successLabel:`Created`});return}l[`ns-name`]===void 0&&(l[`ns-name`]=await c(`ns-name`,`The FQDN of the name server.`));let u=o({ns_name:s(l[`ns-name`],`ns-name`,`text`),ns_set:l[`ns-set`]});t(await r(`Creating`,async()=>i.tenantCustomNameservers.create({body:u,tenant_tag:l[`tenant-tag`]})),{successLabel:`Created`})})};function f(e){return e.usage(`$0 tenant-custom-nameservers delete <custom-ns-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{s as e}from"./src-
|
|
2
|
+
import{s as e}from"./src-CNHNCZpy.mjs";import{t}from"./local-B6b2OIBW.mjs";import{m as n,v as r}from"./oauth-C-QCVfWz.mjs";import{r as i}from"./auth-C80y97yu.mjs";import{t as a}from"./output-Bia1u2k5.mjs";import{t as o}from"./dry-run-CLX6Pbtq.mjs";import{t as s}from"./progress-Bpp73hIu.mjs";import{t as c}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{n as l,t as u}from"./body-parser-CUWbw_Tq.mjs";import{n as d}from"./input-validation-Ch4Vllrm.mjs";import{a as f,n as p}from"./prompt-CpZztV8c.mjs";import{t as m}from"./cli-types-tt_LZMbn.mjs";var h=e(`quick-start <url>`,`Expose a local URL with a temporary trycloudflare.com tunnel. The tunnel remains active until cf exits.`,()=>import(`./command-BP7ldws1.mjs`)),g=e(`run [tunnel]`,`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,()=>import(`./command-BtNRBTP6.mjs`));function _(e){return e.usage(`$0 tunnels config get <tunnel-id>
|
|
3
3
|
|
|
4
4
|
Retrieves the configuration for a remotely managed Cloudflare Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`get <tunnel-id>`,describe:`Get Tunnel configuration`,builder:_,handler:async e=>c({command:`tunnels config get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf tunnels config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}/configurations`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},bodyKind:`none`});return}let c=await i(e),l=e.local?t:await n();e.accountId=l,a(await s(`Loading`,async()=>c.tunnels.config.get({account_id:l,tunnel_id:e[`tunnel-id`]})),{successLabel:`Loaded`})})};function y(e){return e.usage(`$0 tunnels config update <tunnel-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-C-QCVfWz.mjs";import{r}from"./auth-C80y97yu.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-Bpp73hIu.mjs";import{t as s}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{n as c,t as l}from"./body-parser-CUWbw_Tq.mjs";import{n as u}from"./input-validation-Ch4Vllrm.mjs";import{a as d,n as f}from"./prompt-CpZztV8c.mjs";import{t as p}from"./cli-types-tt_LZMbn.mjs";function m(e){return e.usage(`$0 turnstile widgets create
|
|
3
3
|
|
|
4
4
|
Lists challenge widgets.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`order`,{type:`string`,description:`Field to order widgets by.`,choices:[`id`,`sitekey`,`name`,`created_on`,`modified_on`]}).option(`direction`,{type:`string`,description:`Direction to order widgets.`,choices:[`asc`,`desc`]}).option(`filter`,{type:`string`,description:"Filter widgets by field using case-insensitive substring matching.\nFormat: `field:value`\n\nSupported fields:\n- `name` - Filter by widget name (e.g., `filter=name:login-form`)\n- `sitekey` - Filter by sitekey (e.g., `filter=sitekey:0x4AAA`)\n\nReturns 400 Bad Request if the field is unsupported or format is invalid.\nAn empty filter value returns all results."}).option(`bot-fight-mode`,{type:`boolean`,description:`If bot_fight_mode is set to \`true\`, Cloudflare issues computationally
|
|
5
5
|
expensive challenges in response to malicious bots (ENT only).
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e,t}from"./chunk-DL5FNmn1.mjs";import{n}from"./version-W6_TN_kN.mjs";import{i as r}from"./cf-oadujOtC.mjs";import{closeSync as i,mkdirSync as a,openSync as o,readFileSync as s,renameSync as c,statSync as l,unlinkSync as u,writeFileSync as d}from"node:fs";import{dirname as f,join as p}from"node:path";import{fileURLToPath as m}from"node:url";import{spawn as h}from"node:child_process";var g=t(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),_=t(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),v=t(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=_(),a=g();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),y=t(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),b=t(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),x=t(((e,t)=>{let n=g(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=_(),{safeRe:a,t:o}=v(),s=y(),{compareIdentifiers:c}=b(),l=(e,t)=>{let n=t.split(`.`);if(n.length>e.length)return!1;for(let t=0;t<n.length;t++)if(c(e[t],n[t])!==0)return!1;return!0};t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];if(n===!1&&(r=[t]),l(this.prerelease,t)){let e=this.prerelease[t.split(`.`).length];isNaN(e)&&(this.prerelease=r)}else this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),S=t(((e,t)=>{let n=x();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),C=t(((e,t)=>{let n=S();t.exports=(e,t,r)=>n(e,t,r)>0})),w=t(((e,t)=>{let n=x();t.exports=(e,t)=>new n(e,t).major})),T=t(((e,t)=>{let n=x();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),E=t(((e,t)=>{let n=T();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),D=t(((e,t)=>{let n=T();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),O=e(C(),1),k=e(w(),1),A=e(E(),1),j=e(D(),1);const M=1440*60*1e3;function N(e){return(0,A.default)(e)?.includes(`beta`)?`beta`:`latest`}function P(e=n){return p(r(),`cache`,`update-check-${N(e)}.json`)}function F(e=P()){try{let t=JSON.parse(s(e,`utf8`));if(typeof t!=`object`||!t||Array.isArray(t))return{};let n=t;return{lastAttemptedAt:typeof n.lastAttemptedAt==`number`&&Number.isFinite(n.lastAttemptedAt)?n.lastAttemptedAt:void 0,lastSuccessfulAt:typeof n.lastSuccessfulAt==`number`&&Number.isFinite(n.lastSuccessfulAt)?n.lastSuccessfulAt:void 0,latestVersion:typeof n.latestVersion==`string`&&(0,j.default)(n.latestVersion)?n.latestVersion:void 0}}catch{return{}}}function I(e,t=P()){let n=`${t}.${process.pid}.tmp`;try{return a(f(t),{recursive:!0}),d(n,`${JSON.stringify(e)}\n`,{encoding:`utf8`,mode:384}),c(n,t),!0}catch{try{u(n)}catch{}return!1}}function L(e,t,n){let r=`${e}.lock`,s;try{a(f(e),{recursive:!0});try{s=o(r,`wx`,384)}catch{try{if(t-l(r).mtimeMs<=5e3)return;u(r),s=o(r,`wx`,384)}catch{return}}return n()}catch{return}finally{if(s!==void 0)try{i(s),u(r)}catch{}}}function R(e,t){if(!(0,j.default)(e)||!t.latestVersion||!(0,O.default)(t.latestVersion,e))return;let n=(0,k.default)(t.latestVersion)>(0,k.default)(e);return{latestVersion:t.latestVersion,isMajor:n}}function z(e,t=P(e)){return R(e,F(t))}function B(){let e=import.meta.url.endsWith(`.ts`),t=new URL(e?`../update-check-worker.ts`:`./update-check-worker.mjs`,import.meta.url),n=e?[...process.execArgv,m(t)]:[m(t)];h(process.execPath,n,{detached:!0,stdio:`ignore`,windowsHide:!0}).unref()}function V(e={}){let t=e.cachePath??P(e.currentVersion??n),r=e.now??Date.now();if(L(t,r,()=>{let e=F(t);return e.lastAttemptedAt!==void 0&&r-e.lastAttemptedAt<864e5?!1:I({...e,lastAttemptedAt:r},t)}))try{(e.spawnWorker??B)()}catch{}}async function H(e,t,r,i){if(!(0,j.default)(t))return{status:`failed`};let a=await i(`https://registry.npmjs.org/${encodeURIComponent(e)}/${r}`,{headers:{accept:`application/json`,"user-agent":`cf-cli/${n}`},signal:AbortSignal.timeout(3e3)});if(!a.ok)return{status:`failed`};let o=await a.json();if(typeof o!=`object`||!o||Array.isArray(o))return{status:`failed`};let s=o;return s.name!==e||typeof s.version!=`string`||!(0,j.default)(s.version)?{status:`failed`}:(0,O.default)(s.version,t)?{status:`update-available`,latest:s.version}:{status:`up-to-date`}}async function U(e={}){let t=e.currentVersion??n,r=N(t),i=e.cachePath??P(t),a=e.now??Date.now();try{let n=await(e.check??((t,n,r)=>H(t,n,r,e.fetch??globalThis.fetch)))(`cf`,t,r);if(n.status===`failed`)return;let o=n.status===`update-available`?n.latest:t;if(!(0,j.default)(o))return;I({...F(i),latestVersion:o,lastSuccessfulAt:a},i)}catch{}}export{U as i,z as n,V as r,M as t};
|
|
2
|
+
import{r as e,t}from"./chunk-DL5FNmn1.mjs";import{n}from"./version-cPq-WKL8.mjs";import{i as r}from"./cf-oadujOtC.mjs";import{closeSync as i,mkdirSync as a,openSync as o,readFileSync as s,renameSync as c,statSync as l,unlinkSync as u,writeFileSync as d}from"node:fs";import{dirname as f,join as p}from"node:path";import{fileURLToPath as m}from"node:url";import{spawn as h}from"node:child_process";var g=t(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),_=t(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),v=t(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=_(),a=g();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),y=t(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),b=t(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),x=t(((e,t)=>{let n=g(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=_(),{safeRe:a,t:o}=v(),s=y(),{compareIdentifiers:c}=b(),l=(e,t)=>{let n=t.split(`.`);if(n.length>e.length)return!1;for(let t=0;t<n.length;t++)if(c(e[t],n[t])!==0)return!1;return!0};t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];if(n===!1&&(r=[t]),l(this.prerelease,t)){let e=this.prerelease[t.split(`.`).length];isNaN(e)&&(this.prerelease=r)}else this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),S=t(((e,t)=>{let n=x();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),C=t(((e,t)=>{let n=S();t.exports=(e,t,r)=>n(e,t,r)>0})),w=t(((e,t)=>{let n=x();t.exports=(e,t)=>new n(e,t).major})),T=t(((e,t)=>{let n=x();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),E=t(((e,t)=>{let n=T();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),D=t(((e,t)=>{let n=T();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),O=e(C(),1),k=e(w(),1),A=e(E(),1),j=e(D(),1);const M=1440*60*1e3;function N(e){return(0,A.default)(e)?.includes(`beta`)?`beta`:`latest`}function P(e=n){return p(r(),`cache`,`update-check-${N(e)}.json`)}function F(e=P()){try{let t=JSON.parse(s(e,`utf8`));if(typeof t!=`object`||!t||Array.isArray(t))return{};let n=t;return{lastAttemptedAt:typeof n.lastAttemptedAt==`number`&&Number.isFinite(n.lastAttemptedAt)?n.lastAttemptedAt:void 0,lastSuccessfulAt:typeof n.lastSuccessfulAt==`number`&&Number.isFinite(n.lastSuccessfulAt)?n.lastSuccessfulAt:void 0,latestVersion:typeof n.latestVersion==`string`&&(0,j.default)(n.latestVersion)?n.latestVersion:void 0}}catch{return{}}}function I(e,t=P()){let n=`${t}.${process.pid}.tmp`;try{return a(f(t),{recursive:!0}),d(n,`${JSON.stringify(e)}\n`,{encoding:`utf8`,mode:384}),c(n,t),!0}catch{try{u(n)}catch{}return!1}}function L(e,t,n){let r=`${e}.lock`,s;try{a(f(e),{recursive:!0});try{s=o(r,`wx`,384)}catch{try{if(t-l(r).mtimeMs<=5e3)return;u(r),s=o(r,`wx`,384)}catch{return}}return n()}catch{return}finally{if(s!==void 0)try{i(s),u(r)}catch{}}}function R(e,t){if(!(0,j.default)(e)||!t.latestVersion||!(0,O.default)(t.latestVersion,e))return;let n=(0,k.default)(t.latestVersion)>(0,k.default)(e);return{latestVersion:t.latestVersion,isMajor:n}}function z(e,t=P(e)){return R(e,F(t))}function B(){let e=import.meta.url.endsWith(`.ts`),t=new URL(e?`../update-check-worker.ts`:`./update-check-worker.mjs`,import.meta.url),n=e?[...process.execArgv,m(t)]:[m(t)];h(process.execPath,n,{detached:!0,stdio:`ignore`,windowsHide:!0}).unref()}function V(e={}){let t=e.cachePath??P(e.currentVersion??n),r=e.now??Date.now();if(L(t,r,()=>{let e=F(t);return e.lastAttemptedAt!==void 0&&r-e.lastAttemptedAt<864e5?!1:I({...e,lastAttemptedAt:r},t)}))try{(e.spawnWorker??B)()}catch{}}async function H(e,t,r,i){if(!(0,j.default)(t))return{status:`failed`};let a=await i(`https://registry.npmjs.org/${encodeURIComponent(e)}/${r}`,{headers:{accept:`application/json`,"user-agent":`cf-cli/${n}`},signal:AbortSignal.timeout(3e3)});if(!a.ok)return{status:`failed`};let o=await a.json();if(typeof o!=`object`||!o||Array.isArray(o))return{status:`failed`};let s=o;return s.name!==e||typeof s.version!=`string`||!(0,j.default)(s.version)?{status:`failed`}:(0,O.default)(s.version,t)?{status:`update-available`,latest:s.version}:{status:`up-to-date`}}async function U(e={}){let t=e.currentVersion??n,r=N(t),i=e.cachePath??P(t),a=e.now??Date.now();try{let n=await(e.check??((t,n,r)=>H(t,n,r,e.fetch??globalThis.fetch)))(`cf`,t,r);if(n.status===`failed`)return;let o=n.status===`update-available`?n.latest:t;if(!(0,j.default)(o))return;I({...F(i),latestVersion:o,lastSuccessfulAt:a},i)}catch{}}export{U as i,z as n,V as r,M as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./update-check-
|
|
2
|
+
import{i as e}from"./update-check-AAn7EXw8.mjs";await e();export{};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-C-QCVfWz.mjs";import{r}from"./auth-C80y97yu.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-Bpp73hIu.mjs";import{t as s}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";function c(e){return e.usage(`$0 url-info get
|
|
3
3
|
|
|
4
4
|
Return submitted URLs based on ID`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Read submitted URLs by ID`,builder:c,handler:async c=>s({command:`url-info get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf url-info get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/brand-protection/url-info`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.urlInfo.get({account_id:l})),{successLabel:`Loaded`})})},u={command:`url-info`,describe:`url-info`,builder:e=>e.command(l).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{u as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{_ as e}from"./oauth-
|
|
2
|
+
import{_ as e}from"./oauth-C-QCVfWz.mjs";import{r as t}from"./auth-C80y97yu.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-Bpp73hIu.mjs";import{t as a}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{n as o,t as s}from"./body-parser-CUWbw_Tq.mjs";import{n as c}from"./input-validation-Ch4Vllrm.mjs";import{i as l,n as u}from"./prompt-CpZztV8c.mjs";function d(e){return e.usage(`$0 url-normalization delete
|
|
3
3
|
|
|
4
4
|
Deletes the URL Normalization settings.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const f={command:`delete`,describe:`Delete URL Normalization settings`,builder:d,handler:async o=>a({command:`url-normalization delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf url-normalization delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/url_normalization`,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});if(o.zoneId=s,!await u({force:!!o.force})){process.stderr.write(`Aborted.
|
|
5
5
|
`);return}n(await i(`Deleting`,async()=>a.urlNormalization.delete({zone_id:s})),{successLabel:`Deleted`})})};function p(e){return e.usage(`$0 url-normalization get
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-C-QCVfWz.mjs";import{r}from"./auth-C80y97yu.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-Bpp73hIu.mjs";import{t as s}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{n as c,t as l}from"./body-parser-CUWbw_Tq.mjs";import{n as u}from"./input-validation-Ch4Vllrm.mjs";import{a as d}from"./prompt-CpZztV8c.mjs";import{n as f,t as p}from"./raw-fetch-DxGs_eRm.mjs";function m(e){return e.usage("$0 url-scanner responses get <response-id>\n\nReturns the raw response of the network request. Find the `response_id` in the `data.requests.response.hash`.").positional(`response-id`,{type:`string`,description:`Response hash.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get <response-id>`,describe:`Get raw response`,builder:m,handler:async i=>s({command:`url-scanner responses get`,classification:{safeFlags:[`dry-run`]}},i,async()=>{if(i.dryRun){a({command:`cf url-scanner responses get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/urlscanner/v2/responses/${i[`response-id`]==null?`<response-id>`:encodeURIComponent(String(i[`response-id`]))}`,pathParams:{"response-id":String(i[`response-id`]??``)},bodyKind:`none`});return}await r(i);let s=i.local?e:await t();i.accountId=s,f((await o(`Loading`,async()=>p(`/accounts/${s}/urlscanner/v2/responses/${encodeURIComponent(String(i[`response-id`]))}`,{method:`GET`,local:i.local===!0,persistTo:i.persistTo}))).toString(`utf-8`))})},g={command:`responses`,describe:`Raw HTTP response data captured during URL scans`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _(e){return e.usage(`$0 url-scanner scans bulk-create
|
|
3
3
|
|
|
4
4
|
Submit URLs to scan. Check limits at https://developers.cloudflare.com/security-center/investigate/scan-limits/ and take into account scans submitted in bulk have lower priority and may take longer to finish.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`List of urls to scan (up to a 100).`})}const v={command:`bulk-create`,describe:`Bulk create URL Scans`,builder:_,handler:async l=>s({command:`url-scanner scans bulk-create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf url-scanner scans bulk-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/urlscanner/v2/bulk`,pathParams:{},bodyKind:`json`,body:l.body===void 0?void 0:c(l.body)});return}let s=await r(l),u=l.local?e:await t();if(l.accountId=u,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.urlScanner.scans.bulkCreate({body:e,account_id:u})),{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 y(e){return e.usage(`$0 url-scanner scans create
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as e,r as t}from"./auth-
|
|
2
|
+
import{a as e,r as t}from"./auth-C80y97yu.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-Bpp73hIu.mjs";import{t as a}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{i as o,n as s,r as c,t as l}from"./body-parser-CUWbw_Tq.mjs";import{n as u}from"./input-validation-Ch4Vllrm.mjs";import{a as d,n as f}from"./prompt-CpZztV8c.mjs";import{t as p}from"./cli-types-tt_LZMbn.mjs";function ee(e){return e.usage(`$0 user audit-logs list
|
|
3
3
|
|
|
4
4
|
Gets a list of audit logs for a user account. Can be filtered by who made the change, on which zone, and the timeframe of the change.`).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`export`,{type:`boolean`,description:`Indicates that this request is an export of logs in CSV format.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-ip`,{type:`string`,description:`Filters by the IP address of the request that made the change by specific IP address or valid CIDR Range.`}).option(`actor-email`,{type:`string`,description:`Filters by the email address of the actor that made the change.`}).option(`since`,{type:`string`,description:"Limits the returned results to logs newer than the specified date. A `full-date` that conforms to RFC3339."}).option(`before`,{type:`string`,description:"Limits the returned results to logs older than the specified date. A `full-date` that conforms to RFC3339."}).option(`zone-name`,{type:`string`,description:`Filters by the name of the zone associated to the change.`}).option(`direction`,{type:`string`,description:`Changes the direction of the chronological sorting.`,choices:[`desc`,`asc`]}).option(`per-page`,{type:`number`,description:`Sets the number of results to return per page.`}).option(`page`,{type:`number`,description:`Defines which page of results to return.`}).option(`hide-user-logs`,{type:`boolean`,description:`Indicates whether or not to hide user level audit logs.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const te={command:`list`,describe:`Get user audit logs`,builder:p(ee),handler:async e=>a({command:`user audit-logs list`,classification:{safeFlags:[`export`,`direction`,`hide-user-logs`,`dry-run`]}},e,async()=>{let a={id:e.id,export:e.export,"action.type":e[`action-type`],"actor.ip":e[`actor-ip`],"actor.email":e[`actor-email`],since:e.since,before:e.before,"zone.name":e[`zone-name`],direction:e.direction,per_page:e[`per-page`],page:e.page,hide_user_logs:e[`hide-user-logs`]};if(e.dryRun){r({command:`cf user audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/audit_logs`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e);n(await i(`Loading`,async()=>o.user.auditLogs.list(a)),{successLabel:`Loaded`})})},m={command:`audit-logs`,describe:`Operations for audit-logs`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function h(e){return e.usage(`$0 user billing history list
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-C-QCVfWz.mjs";import{r}from"./auth-C80y97yu.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-Bpp73hIu.mjs";import{t as s}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{t as c}from"./cli-types-tt_LZMbn.mjs";function l(e){return e.usage(`$0 values list
|
|
3
3
|
|
|
4
4
|
Lists all distinct values for a given tag key, optionally filtered by resource type.`).option(`tag-key`,{type:`string`,description:`The tag key to retrieve values for.`,demandOption:!0}).option(`type`,{type:`string`,description:`Filter by resource type.`,choices:`access_application.access_application_policy.access_group.account.account_ruleset.ai_gateway.alerting_policy.alerting_webhook.api_gateway_operation.cloudflared_tunnel.custom_certificate.custom_hostname.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.dns_record.durable_object_namespace.gateway_list.gateway_rule.healthcheck.image.infrastructure_target.kv_namespace.load_balancer.load_balancer_monitor.load_balancer_pool.managed_client_certificate.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker.worker_route.worker_version.zone.zone_ruleset`.split(`.`)}).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`list`,describe:`List tag values`,builder:c(l),handler:async c=>s({command:`values list`,classification:{safeFlags:[`type`,`dry-run`]}},c,async()=>{let s={type:c.type,cursor:c.cursor};if(c.dryRun){a({command:`cf values list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/tags/values/${c[`tag-key`]==null?`<tag-key>`:encodeURIComponent(String(c[`tag-key`]))}`,pathParams:{"tag-key":String(c[`tag-key`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.values.list({account_id:u,tag_key:c[`tag-key`],...s})),{successLabel:`Loaded`})})},d={command:`values`,describe:`values`,builder:e=>e.command(u).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{d as default};
|