cf 1.0.0-beta.5 → 1.0.0-beta.6

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.
Files changed (261) hide show
  1. package/dist/_meta/commands.json +5047 -5068
  2. package/dist/_meta/hand-written-commands.json +1 -1
  3. package/dist/_meta/schemas.json +3026 -3123
  4. package/dist/abuse-reports-BtI6fvRl.mjs +24 -0
  5. package/dist/{access-DRlrq_cq.mjs → access-CqOyTHw4.mjs} +1 -1
  6. package/dist/{account-tags-DMCYk5rR.mjs → account-tags-7I77Dwsd.mjs} +1 -1
  7. package/dist/{accounts-BlVDzIWc.mjs → accounts-Cq-eOPzL.mjs} +32 -26
  8. package/dist/{acm-CCc33e4l.mjs → acm-CSXnlN6o.mjs} +1 -1
  9. package/dist/{addressing-BA-5A3jQ.mjs → addressing-C5XvjNhk.mjs} +1 -1
  10. package/dist/{agent-memory-Csgs8W5u.mjs → agent-memory-CSzr9gty.mjs} +1 -1
  11. package/dist/{ai-BN_pzw7p.mjs → ai-C0xWIvsG.mjs} +7 -9
  12. package/dist/{ai-audit-Dbln3Ai6.mjs → ai-audit-B43vm1KJ.mjs} +1 -1
  13. package/dist/{ai-gateway-BhASWwdp.mjs → ai-gateway-BK3MbIzT.mjs} +1 -1
  14. package/dist/{ai-search-DvA8g4xr.mjs → ai-search-TrFTxBbn.mjs} +1 -1
  15. package/dist/{ai-security-nualpneg.mjs → ai-security-JrYa27qd.mjs} +1 -1
  16. package/dist/{alerting-HUbVuQMl.mjs → alerting-B1-ZwfVT.mjs} +1 -1
  17. package/dist/{analytics-ClKN9YnQ.mjs → analytics-B-wlVtDV.mjs} +1 -1
  18. package/dist/{analytics_engine-DP_O5HIq.mjs → analytics_engine-DWzzQzOs.mjs} +1 -1
  19. package/dist/{api-security-Ce_9nFH9.mjs → api-security-BWFWWmXl.mjs} +1 -1
  20. package/dist/{argo-CLLBrtiV.mjs → argo-DHPGTvCT.mjs} +1 -1
  21. package/dist/{artifacts-CIxZX3VM.mjs → artifacts-mmBDk3wO.mjs} +1 -1
  22. package/dist/{audit-logs-DjzIj9T4.mjs → audit-logs-CCF5e500.mjs} +1 -1
  23. package/dist/{auth-CgPQplnD.mjs → auth-Dnp10uLy.mjs} +1 -1
  24. package/dist/{auth-B_Utev-x.mjs → auth-gOCL6Pm0.mjs} +2 -2
  25. package/dist/{autoconfig-BunaOShS.mjs → autoconfig-DqEPKpj0.mjs} +1 -1
  26. package/dist/basin-catalog-hRY01t_Z.mjs +44 -0
  27. package/dist/{billing-tHlHhEVf.mjs → billing-C_ev-9nh.mjs} +1 -1
  28. package/dist/{bot-management-ChV-gaXh.mjs → bot-management-CyYsXkZt.mjs} +1 -1
  29. package/dist/{botnet-feed-DQWBOEqC.mjs → botnet-feed-Dj5R5v2o.mjs} +1 -1
  30. package/dist/{brand-protection-B3afeuOj.mjs → brand-protection-CmQ6Iu0I.mjs} +1 -1
  31. package/dist/{browser-run-eQMomr1x.mjs → browser-run-sWHTsCSB.mjs} +1 -1
  32. package/dist/build-Dyt1M_Ib.mjs +2 -0
  33. package/dist/{build-VUz0URCV.mjs → build-_qqitpn0.mjs} +1 -1
  34. package/dist/{builds-wTOvlp0S.mjs → builds-c21rTfcg.mjs} +1 -1
  35. package/dist/{cache-s4HK0we7.mjs → cache-CuNjJl6m.mjs} +27 -27
  36. package/dist/{certificate-authorities-CaPUfYzA.mjs → certificate-authorities-DRUUzvI3.mjs} +1 -1
  37. package/dist/{cli-CT-QJu7q.mjs → cli-Caa776EB.mjs} +1 -1
  38. package/dist/{client-certificates-BfNDnT8H.mjs → client-certificates-BSi1CEGk.mjs} +1 -1
  39. package/dist/{client-side-security-BV7iORbb.mjs → client-side-security-BdxUX3Y8.mjs} +1 -1
  40. package/dist/{cloud-connector-CGT8ezvv.mjs → cloud-connector-B46ajuAj.mjs} +1 -1
  41. package/dist/{cloudforce-one-BDhbXtA_.mjs → cloudforce-one-adbVR2Ah.mjs} +47 -56
  42. package/dist/{command-DJF4wdrM.mjs → command-B47VlNBp.mjs} +1 -1
  43. package/dist/{command-ozwmaY7n.mjs → command-B5Itp2BM.mjs} +1 -1
  44. package/dist/{command-DjNcY4cf.mjs → command-BDCTd8Ra.mjs} +1 -1
  45. package/dist/{command-Cox9Wh1i.mjs → command-BmXnByw9.mjs} +1 -1
  46. package/dist/{command-C3Qhz4kU.mjs → command-Bw-M_qxb.mjs} +1 -1
  47. package/dist/{command-BgBsFEYv.mjs → command-C2bU5Etc.mjs} +1 -1
  48. package/dist/{command-DQcG8PK-.mjs → command-CHcCSvVz.mjs} +1 -1
  49. package/dist/{command-C8gLcKlB.mjs → command-CRgQ0dM3.mjs} +1 -1
  50. package/dist/{command-DH67hNLj.mjs → command-CVg0qT13.mjs} +1 -1
  51. package/dist/{command-DpEQ07Xe.mjs → command-CkJvjkfK.mjs} +1 -1
  52. package/dist/{command-C_l69o2b.mjs → command-DV196MKR.mjs} +1 -1
  53. package/dist/{command-lYaHS62l.mjs → command-Du3MiYA7.mjs} +1 -1
  54. package/dist/{command-SgtzgQrs.mjs → command-eBmGBTA7.mjs} +1 -1
  55. package/dist/{command-G_VL3Jf8.mjs → command-eqgT8zz4.mjs} +1 -1
  56. package/dist/{completions-VR53Fiec.mjs → completions-DbT6O2ol.mjs} +1 -1
  57. package/dist/{connector-interrupts-hfttjm-b.mjs → connector-interrupts-BhfMiPcq.mjs} +1 -1
  58. package/dist/{connector-telemetry-events-5nVvivYA.mjs → connector-telemetry-events-CxKECRgO.mjs} +1 -1
  59. package/dist/{connector-telemetry-snapshots-DKk_7VQa.mjs → connector-telemetry-snapshots-BHi-jHE5.mjs} +1 -1
  60. package/dist/{connectors-CvX4Z3cg.mjs → connectors-gkP2aNSN.mjs} +1 -1
  61. package/dist/{containers-BU9RquYh.mjs → containers-BY8pinEV.mjs} +1 -1
  62. package/dist/{containers-BQxj87na.mjs → containers-DUvBpnRo.mjs} +1 -1
  63. package/dist/{content-scan-hWh-aGbO.mjs → content-scan-BCPhAjMZ.mjs} +1 -1
  64. package/dist/{context-CPVzoKbN.mjs → context-CE7QFX-z.mjs} +1 -1
  65. package/dist/{cps-o8QQFfnF.mjs → cps-B35EPUAk.mjs} +1 -1
  66. package/dist/{csamScanner-DHod3Hak.mjs → csamScanner-DcTA9oLR.mjs} +1 -1
  67. package/dist/{ct-alerting-D-_YsE1x.mjs → ct-alerting-B3CS-CPk.mjs} +1 -1
  68. package/dist/{custom-certificates-UnaVRb3W.mjs → custom-certificates-IjJJhl7_.mjs} +1 -1
  69. package/dist/{custom-csrs-BCJ7LOUe.mjs → custom-csrs-ChYOaEQg.mjs} +1 -1
  70. package/dist/{custom-hostnames-DOluVIfa.mjs → custom-hostnames-Bai3cqAD.mjs} +1 -1
  71. package/dist/{custom-nameservers-CvIucaA2.mjs → custom-nameservers-DsukmLNZ.mjs} +1 -1
  72. package/dist/{custom-pages-DzrXSeCR.mjs → custom-pages-CiboX-9D.mjs} +1 -1
  73. package/dist/d1-s293SFAJ.mjs +41 -0
  74. package/dist/{dcv-delegation-9bMHPSoc.mjs → dcv-delegation-BfgvmpQT.mjs} +1 -1
  75. package/dist/{deploy-BT_EVz0K.mjs → deploy-CvxNMDbS.mjs} +1 -1
  76. package/dist/{deploy-input-YW632ysz.mjs → deploy-input-CNrImP7B.mjs} +1 -1
  77. package/dist/{dev-jRnP9IIJ.mjs → dev-Z6vYszaT.mjs} +1 -1
  78. package/dist/{diagnostics-BIe-XR-P.mjs → diagnostics-Ops0RjxG.mjs} +1 -1
  79. package/dist/discover-CcGReXr0.mjs +2 -0
  80. package/dist/{dist-COohnEBL.mjs → dist-Dgnf_i4w.mjs} +1 -1
  81. package/dist/{dls-BuKO5QWL.mjs → dls-uo7NYEqE.mjs} +1 -1
  82. package/dist/{dns-DzVN-WA4.mjs → dns-B-NwBOpQ.mjs} +52 -43
  83. package/dist/{dns-firewall-Dx_XvWKJ.mjs → dns-firewall-LTIP13nb.mjs} +1 -1
  84. package/dist/durable-objects-o7uB3YYg.mjs +6 -0
  85. package/dist/{email-auth-DqIyzEcR.mjs → email-auth-BUdBDCaE.mjs} +1 -1
  86. package/dist/{email-routing-8rhAmzOY.mjs → email-routing-BPRliM3z.mjs} +1 -1
  87. package/dist/{email-security-BRq5J31C.mjs → email-security-dbLE3I5c.mjs} +50 -50
  88. package/dist/{email-sending-Bsfk4Jia.mjs → email-sending-BLlGy5Mn.mjs} +1 -1
  89. package/dist/error-sanitization-CEf4JTNN.mjs +2 -0
  90. package/dist/{error-sanitization-Dc4bLj8k.mjs → error-sanitization-CcNUzN1f.mjs} +1 -1
  91. package/dist/{fieldExtractors-COaK02vB.mjs → fieldExtractors-M-KfLOGw.mjs} +1 -1
  92. package/dist/{firewall-Dar706zc.mjs → firewall-DzbLwqo3.mjs} +1 -1
  93. package/dist/flagship-DcXWEywy.mjs +28 -0
  94. package/dist/{fraud-H-mdJfRU.mjs → fraud-CGXRWANi.mjs} +1 -1
  95. package/dist/generate-t4dFfFRV.mjs +2 -0
  96. package/dist/{google-tag-gateway-zqXS_12f.mjs → google-tag-gateway-B3Z3Puwl.mjs} +1 -1
  97. package/dist/{healthchecks-x889sT8g.mjs → healthchecks-BIiV29q7.mjs} +1 -1
  98. package/dist/{hostnames-DqB5I-_U.mjs → hostnames-ueWsZFwv.mjs} +1 -1
  99. package/dist/{hyperdrive-sR7Mwif9.mjs → hyperdrive-Bxk9LZf5.mjs} +1 -1
  100. package/dist/{iam-CKt7U41p.mjs → iam-kA9gcv79.mjs} +1 -1
  101. package/dist/{images-CakdBcMc.mjs → images-CK4J5as7.mjs} +1 -1
  102. package/dist/index.mjs +1 -1
  103. package/dist/{init-CVyWV_Ow.mjs → init-COcG8sp5.mjs} +2 -2
  104. package/dist/{intel-Dcv1vMsK.mjs → intel-z7DkM9Xc.mjs} +1 -1
  105. package/dist/{ips-Ce9_k1Vh.mjs → ips-BXdBK4Co.mjs} +1 -1
  106. package/dist/{keyless-certificates-Cf_6sc7K.mjs → keyless-certificates-Dp9xTYtD.mjs} +1 -1
  107. package/dist/{keys-DW2A43fL.mjs → keys-DrVlj4VI.mjs} +1 -1
  108. package/dist/{kv-BKBWXf8s.mjs → kv-WX-dlUT1.mjs} +1 -1
  109. package/dist/{lazy-command-BOjQB_U7.mjs → lazy-command-g04RHlS2.mjs} +1 -1
  110. package/dist/{leaked-credential-checks-D-gwxxaF.mjs → leaked-credential-checks-BMQ0VhCd.mjs} +1 -1
  111. package/dist/{load-balancers-DHUVei95.mjs → load-balancers-BbkSL89c.mjs} +1 -1
  112. package/dist/local-BWhuu9TH.mjs +2 -0
  113. package/dist/{local-B3OyWKkW.mjs → local-Cyk8fPvL.mjs} +1 -1
  114. package/dist/{local-runtime-Co5vVDlI.mjs → local-runtime-CWWJJB2E.mjs} +1 -1
  115. package/dist/{login-CptngugC.mjs → login-CyU_ZTNI.mjs} +1 -1
  116. package/dist/{login-D37fy09s.mjs → login-DYQ8UgJQ.mjs} +1 -1
  117. package/dist/{logo-matches-D1aNSBnZ.mjs → logo-matches-HFmD2hK6.mjs} +1 -1
  118. package/dist/{logos-SyEjq15s.mjs → logos-Di2PABE_.mjs} +1 -1
  119. package/dist/{logpush-l9tVWnua.mjs → logpush-DEqdt0I0.mjs} +1 -1
  120. package/dist/logs-Ckfw-3Q_.mjs +37 -0
  121. package/dist/{magic-cloud-networking-CN2Qd2Lx.mjs → magic-cloud-networking-C0yBJKMb.mjs} +1 -1
  122. package/dist/{magic-network-monitoring-8jxG-tPc.mjs → magic-network-monitoring-CLvaiI7s.mjs} +1 -1
  123. package/dist/{magic-transit-DLhIQz2l.mjs → magic-transit-Bhb1kxYj.mjs} +108 -112
  124. package/dist/{managed-defense-CgKdTd9J.mjs → managed-defense-COL3aqXw.mjs} +1 -1
  125. package/dist/{managed-transforms-BASi4j_s.mjs → managed-transforms-cK0strTK.mjs} +1 -1
  126. package/dist/{matches-BCV6x948.mjs → matches-Df4WEz0x.mjs} +1 -1
  127. package/dist/{mcp-DQODvLQm.mjs → mcp-DK_5OUVl.mjs} +1 -1
  128. package/dist/{mesh-S_yYh-w3.mjs → mesh-CVXpTYED.mjs} +1 -1
  129. package/dist/{migrate-B4kBnkpV.mjs → migrate-CipwWhJE.mjs} +1 -1
  130. package/dist/monetization-BHk0S5BF.mjs +20 -0
  131. package/dist/{mtls-certificates-XJXK21J_.mjs → mtls-certificates-8pzdxzOX.mjs} +1 -1
  132. package/dist/{network-DA81Mcdh.mjs → network-ClNeXTvG.mjs} +1 -1
  133. package/dist/{network-interconnects-OttR92s7.mjs → network-interconnects-t3jSoV7o.mjs} +1 -1
  134. package/dist/{oauth-ChXrM0q9.mjs → oauth-CJamdfrC.mjs} +1 -1
  135. package/dist/{oauth-CKeW8CqE.mjs → oauth-CNSirGUu.mjs} +1 -1
  136. package/dist/{oauth-clients-Ba-YZsxB.mjs → oauth-clients-DBxdvlJC.mjs} +1 -1
  137. package/dist/{oauth-scopes-XqOk2zCQ.mjs → oauth-scopes-D39GYkt6.mjs} +1 -1
  138. package/dist/{observability-BdIbZ1D8.mjs → observability-ZV1yPflB.mjs} +1 -1
  139. package/dist/{organization-DnQ2_txo.mjs → organization-Bk-TkQlB.mjs} +7 -7
  140. package/dist/{organizations-BkI0IhEg.mjs → organizations-hXITNpPl.mjs} +1 -1
  141. package/dist/{origin-ca-certificates-Br91H1EG.mjs → origin-ca-certificates-DsLR_Z2e.mjs} +1 -1
  142. package/dist/{origin-post-quantum-encryption-BcpK8DaG.mjs → origin-post-quantum-encryption-C_egsVQu.mjs} +1 -1
  143. package/dist/{origin-tls-client-auth-CYK6YnzK.mjs → origin-tls-client-auth-DPG6A6kz.mjs} +1 -1
  144. package/dist/{page-rules-DpOcNsJr.mjs → page-rules-B8lrkiiF.mjs} +1 -1
  145. package/dist/pages-Cx4doLvQ.mjs +54 -0
  146. package/dist/{pay-per-crawl-BORpCGxC.mjs → pay-per-crawl-BUVHqPPA.mjs} +1 -1
  147. package/dist/{pay-per-use-CZw-KHEz.mjs → pay-per-use-CzYgryid.mjs} +1 -1
  148. package/dist/{pipelines-DDDyJ6Oe.mjs → pipelines-CGHmwc4a.mjs} +1 -1
  149. package/dist/{precursor-DrH1i64o.mjs → precursor--Jim5u4y.mjs} +1 -1
  150. package/dist/{previews-CiYBBKj8.mjs → previews-BKO1pZyG.mjs} +1 -1
  151. package/dist/{progress-DS2fwfNP.mjs → progress-CRjK46r1.mjs} +1 -1
  152. package/dist/{prompt-doX80PCd.mjs → prompt-C_90YsVE.mjs} +1 -1
  153. package/dist/{queries-CD6h6iEP.mjs → queries-z2pjzXlA.mjs} +1 -1
  154. package/dist/{queues-3TpjE349.mjs → queues-D0IXxSa7.mjs} +1 -1
  155. package/dist/{r2-CV_hSFkM.mjs → r2-DQ7w9dCM.mjs} +1 -1
  156. package/dist/r2-data-catalog-DpktRU5y.mjs +2 -0
  157. package/dist/{radar-6-4_LoQ1.mjs → radar-DyLO7Zg1.mjs} +1 -1
  158. package/dist/{raw-fetch-_Z55VEDY.mjs → raw-fetch-C8SdmQBp.mjs} +1 -1
  159. package/dist/{realtime-B5ce977I.mjs → realtime-mQzLbDxe.mjs} +1 -1
  160. package/dist/{registrar-CF-3h2dN.mjs → registrar-ClbtM5Dy.mjs} +2 -2
  161. package/dist/{registrar-sandbox-BDRZbyAV.mjs → registrar-sandbox-BIEHm_Jp.mjs} +2 -2
  162. package/dist/{reporting-CiS-RBNJ.mjs → reporting-CjkMzSsZ.mjs} +1 -1
  163. package/dist/{request-headers-DPbWytRv.mjs → request-headers-jr2VznA9.mjs} +1 -1
  164. package/dist/{request-tracers-Drcpv8ha.mjs → request-tracers-BoSXOTox.mjs} +1 -1
  165. package/dist/{resource-sharing-BI3CoOjl.mjs → resource-sharing-CFS39nJq.mjs} +1 -1
  166. package/dist/{resource-tagging-D4i_-E0W.mjs → resource-tagging-CZ5mvMhE.mjs} +1 -1
  167. package/dist/{rules-C4I4CLoq.mjs → rules-CfqumI45.mjs} +4 -4
  168. package/dist/{rulesets-c2efesdy.mjs → rulesets-o3jsPv4U.mjs} +20 -20
  169. package/dist/{rum-DT58nW8a.mjs → rum-BZ0rYlun.mjs} +1 -1
  170. package/dist/run-D0_7wBp2.mjs +2 -0
  171. package/dist/{run-CJ-6owN3.mjs → run-huwFFwXd.mjs} +1 -1
  172. package/dist/{schema-flags-DDW79Tda.mjs → schema-flags-nL7pHvaE.mjs} +1 -1
  173. package/dist/{scim-PfJWMuRu.mjs → scim-0-eR9pvC.mjs} +1 -1
  174. package/dist/{sdk-Bx29ZKK3.mjs → sdk-Bmz7t_CD.mjs} +1 -1
  175. package/dist/{secrets-store-7jrgww1J.mjs → secrets-store-Duc29Zs-.mjs} +1 -1
  176. package/dist/security-insights-5CuLC-Yo.mjs +40 -0
  177. package/dist/{security-txt-ButEG3qy.mjs → security-txt-qm2PqCPz.mjs} +1 -1
  178. package/dist/{shared-JNtE--kh.mjs → shared-BDIrEKWt.mjs} +1 -1
  179. package/dist/{smart-shield-DgbYuUFC.mjs → smart-shield-BXLH9OM0.mjs} +1 -1
  180. package/dist/{snippets-De-xVTIb.mjs → snippets-DZG6UWeH.mjs} +1 -1
  181. package/dist/{spawn-IM_tQldH.mjs → spawn-KZqyx6KK.mjs} +1 -1
  182. package/dist/{spectrum-DcknX0jS.mjs → spectrum-Be4ImAIY.mjs} +1 -1
  183. package/dist/{speed-Cn_p-ieT.mjs → speed-CNWujfIC.mjs} +1 -1
  184. package/dist/{src-BYjublVL.mjs → src-CW6py11z.mjs} +5 -5
  185. package/dist/{ssl-Bkn4ke9Q.mjs → ssl-BIlS4Qs8.mjs} +1 -1
  186. package/dist/{stream-Cx78uNm_.mjs → stream-C5RvTAKF.mjs} +1 -1
  187. package/dist/{submit-Gu34n1a6.mjs → submit-Bpru4P79.mjs} +1 -1
  188. package/dist/{tags-BQqO7TLX.mjs → tags-Rv7X1rU9.mjs} +1 -1
  189. package/dist/{telemetry-Qc-g_0fL.mjs → telemetry-0npQCuKc.mjs} +1 -1
  190. package/dist/telemetry-B4_YhD82.mjs +2 -0
  191. package/dist/tenant-CjYf6OPN.mjs +10 -0
  192. package/dist/{tenant-custom-nameservers-B5Nf5hLr.mjs → tenant-custom-nameservers-BbHaaEhv.mjs} +1 -1
  193. package/dist/{tunnels-ndJtol-f.mjs → tunnels-CLWPaIIF.mjs} +1 -1
  194. package/dist/{turnstile-Cd65N6jD.mjs → turnstile-C5ezKSoz.mjs} +1 -1
  195. package/dist/update-check-CebyUyqG.mjs +2 -0
  196. package/dist/{update-check-AraGlAQf.mjs → update-check-aOpHVlzB.mjs} +1 -1
  197. package/dist/update-check-worker.mjs +1 -1
  198. package/dist/{url-info-CQKJ5A-x.mjs → url-info-Gcf8-MyB.mjs} +1 -1
  199. package/dist/{url-normalization-BPXZwYu0.mjs → url-normalization-Dvg8mZRk.mjs} +1 -1
  200. package/dist/{url-scanner-Bq43LJ98.mjs → url-scanner-BZCsgh0O.mjs} +1 -1
  201. package/dist/{user-D4InwQxA.mjs → user-BnkvXmjc.mjs} +1 -1
  202. package/dist/{values-C3YLablc.mjs → values-yUGls__L.mjs} +1 -1
  203. package/dist/{vectorize-CYt0qXQ5.mjs → vectorize-BiXngTuI.mjs} +3 -3
  204. package/dist/version-C3q1GMTe.mjs +2 -0
  205. package/dist/{waiting-rooms-B3ksWao9.mjs → waiting-rooms-BoLWF74U.mjs} +1 -1
  206. package/dist/{web-assets-DNiElHgV.mjs → web-assets-CEJ9Zne1.mjs} +1 -1
  207. package/dist/{web3-DfMKMDix.mjs → web3-CIjm7EuJ.mjs} +1 -1
  208. package/dist/workers-DdtWb7Ws.mjs +38 -0
  209. package/dist/{workers-builds-DbEy311-.mjs → workers-builds-DT4tA-KT.mjs} +1 -1
  210. package/dist/workers-for-platforms-CaCr8ApU.mjs +42 -0
  211. package/dist/{workers-vpc-BEnB6e_3.mjs → workers-vpc-DRtjG39D.mjs} +1 -1
  212. package/dist/{workflows-CX3Zer8w.mjs → workflows-DRme6yrC.mjs} +2 -2
  213. package/dist/{wrangler-migration-BDkh1_IV.mjs → wrangler-migration-BDnS1puc.mjs} +1 -1
  214. package/dist/{zaraz-DR1KbYY-.mjs → zaraz-DmjDEnUJ.mjs} +1 -1
  215. package/dist/{zero-trust-CLoXVq1e.mjs → zero-trust-BRAHExxa.mjs} +427 -441
  216. package/dist/{zone-B9qejq6W.mjs → zone-CclLvb-g.mjs} +1 -1
  217. package/dist/{zones-BxU08wO0.mjs → zones-C6tc2OOV.mjs} +1 -1
  218. package/package.json +3 -2
  219. package/dist/abuse-reports-DoqL_52r.mjs +0 -26
  220. package/dist/account-DfC3gRTf.mjs +0 -12
  221. package/dist/build-DFa0ngeO.mjs +0 -2
  222. package/dist/d1-BCg7BhWi.mjs +0 -45
  223. package/dist/discover-DgHRf-qo.mjs +0 -2
  224. package/dist/durable-objects-DnU6OsEb.mjs +0 -8
  225. package/dist/error-sanitization-Cu-8OKRA.mjs +0 -2
  226. package/dist/flagship-CTchDpyw.mjs +0 -28
  227. package/dist/generate-qMU-2MgC.mjs +0 -2
  228. package/dist/local-qOpZjDed.mjs +0 -2
  229. package/dist/logs-EW0Pq-gf.mjs +0 -48
  230. package/dist/pages-Cw4DM-1N.mjs +0 -60
  231. package/dist/r2-data-catalog-D_YHTMFG.mjs +0 -44
  232. package/dist/run-D0esoYSn.mjs +0 -2
  233. package/dist/security-center-BhUM_Flh.mjs +0 -30
  234. package/dist/telemetry-D2UwfCd1.mjs +0 -2
  235. package/dist/tenant-Dr0hGlhU.mjs +0 -12
  236. package/dist/update-check-D5-zqJoN.mjs +0 -2
  237. package/dist/version-DyZwKU6l.mjs +0 -2
  238. package/dist/workers-C8uiRedD.mjs +0 -40
  239. package/dist/workers-for-platforms-BjvcY5A1.mjs +0 -25
  240. /package/dist/{alerts-DqZgVSCT.mjs → alerts-DY_7Nknx.mjs} +0 -0
  241. /package/dist/{autorag-Cq9k9Ye6.mjs → autorag-K396-M2S.mjs} +0 -0
  242. /package/dist/{cloudflared-91JvyShh.mjs → cloudflared-Ciq4L97v.mjs} +0 -0
  243. /package/dist/{command-C72KLHMc.mjs → command-D1Z5uf_S.mjs} +0 -0
  244. /package/dist/{discover-VRFBjse7.mjs → discover-B_3A4a_t.mjs} +0 -0
  245. /package/dist/{generate-iV6OVNin.mjs → generate-QUDsysBJ.mjs} +0 -0
  246. /package/dist/{rate-limit-analytics-Bw9qmxMx.mjs → rate-limit-analytics-YsGha5pH.mjs} +0 -0
  247. /package/dist/{rate-limits-CDm_xzKt.mjs → rate-limits-kH13NRdf.mjs} +0 -0
  248. /package/dist/{ready-BXGqY1Wi.mjs → ready-DYun4Fpn.mjs} +0 -0
  249. /package/dist/{recent-submissions-AhGZD3a3.mjs → recent-submissions-18NaOGOo.mjs} +0 -0
  250. /package/dist/{refute-D_w5Gw20.mjs → refute-BhMiJcE1.mjs} +0 -0
  251. /package/dist/{registry-DBMUTYqf.mjs → registry-CSv7HR1J.mjs} +0 -0
  252. /package/dist/{scan-logo-BZzFam-Q.mjs → scan-logo-7y0pqFMk.mjs} +0 -0
  253. /package/dist/{scan-page-BPA8nSPM.mjs → scan-page-B6jnK3QI.mjs} +0 -0
  254. /package/dist/{schema-CueLBLXC.mjs → schema-JVvksQ1J.mjs} +0 -0
  255. /package/dist/{search-De0UlXYN.mjs → search-Rn3Eefv8.mjs} +0 -0
  256. /package/dist/{signed-url-ziDz9frX.mjs → signed-url-Dzwy9Xiw.mjs} +0 -0
  257. /package/dist/{submission-info-83D2DCCG.mjs → submission-info-SNhkDRRZ.mjs} +0 -0
  258. /package/dist/{tools-BJbI_f35.mjs → tools-CFEubTr4.mjs} +0 -0
  259. /package/dist/{total-queries-Dhol31Kn.mjs → total-queries-B20xslrH.mjs} +0 -0
  260. /package/dist/{tracked-domains-DoOPs6Vd.mjs → tracked-domains-BCvIOZOK.mjs} +0 -0
  261. /package/dist/{verify-CxpGEnJb.mjs → verify-DOeBG4PL.mjs} +0 -0
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-CPVzoKbN.mjs";import{r}from"./auth-B_Utev-x.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-DS2fwfNP.mjs";import{t as s}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,n as f}from"./prompt-doX80PCd.mjs";import{t as p}from"./cli-types-DoVT5q_M.mjs";function m(e){return e.usage(`$0 secrets-store quota get
2
+ import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,n as f}from"./prompt-C_90YsVE.mjs";import{t as p}from"./cli-types-DoVT5q_M.mjs";function m(e){return e.usage(`$0 secrets-store quota get
3
3
 
4
4
  Lists the number of secrets used in the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get`,describe:`View secret usage`,builder:m,handler:async c=>s({command:`secrets-store quota get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf secrets-store quota get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/secrets_store/quota`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.secretsStore.quota.get({account_id:l})),{successLabel:`Loaded`})})},g={command:`quota`,describe:`Account quota limits for secrets stores, secrets count, and storage capacity`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _(e){return e.usage(`$0 secrets-store secrets bulk-delete
5
5
 
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,i as n,t as r}from"./context-CE7QFX-z.mjs";import{r as i}from"./auth-gOCL6Pm0.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-CRjK46r1.mjs";import{t as c}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";import{n as p,t as m}from"./raw-fetch-C8SdmQBp.mjs";function h(e){return e.usage(`$0 security-insights audit-logs get <issue-id>
3
+
4
+ Lists audit log entries for a specific Security Center insight, showing changes to its status and classification over time.`).positional(`issue-id`,{type:`string`,description:`Issue ID`,demandOption:!0}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`cursor`,{type:`string`,description:`Opaque cursor for pagination. Use the cursor value from result_info of the previous response.`}).option(`field-changed`,{type:`string`,description:`Filter by the field that was changed.`,choices:[`status`,`user_classification`]}).option(`changed-by`,{type:`string`,description:`Filter by the actor that made the change.`}).option(`since`,{type:`string`,description:`Filter entries changed at or after this timestamp (RFC 3339).`}).option(`before`,{type:`string`,description:`Filter entries changed before this timestamp (RFC 3339).`}).option(`order`,{type:`string`,description:`Sort order for results. Use 'asc' for oldest first or 'desc' for newest first.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`get <issue-id>`,describe:`Retrieves Issue Audit Log`,builder:f(h),handler:async l=>c({command:`security-insights audit-logs get`,classification:{safeFlags:[`field-changed`,`order`,`dry-run`]}},l,async()=>{let c={per_page:l[`per-page`],cursor:l.cursor,field_changed:l[`field-changed`],changed_by:l[`changed-by`],since:l.since,before:l.before,order:l.order};if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-insights audit-logs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/${l[`issue-id`]==null?`<issue-id>`:encodeURIComponent(String(l[`issue-id`]))}/audit-log`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"issue-id":String(l[`issue-id`]??``)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityInsights.auditLogs.get({account_or_zone:d,account_or_zone_id:f,issue_id:l[`issue-id`],...c})),{successLabel:`Loaded`})})};function g(e){return e.usage(`$0 security-insights audit-logs list
5
+
6
+ Lists audit log entries for all Security Center insights in the account or zone, showing changes to insight status and classification.`).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`cursor`,{type:`string`,description:`Opaque cursor for pagination. Use the cursor value from result_info of the previous response.`}).option(`field-changed`,{type:`string`,description:`Filter by the field that was changed.`,choices:[`status`,`user_classification`]}).option(`changed-by`,{type:`string`,description:`Filter by the actor that made the change.`}).option(`since`,{type:`string`,description:`Filter entries changed at or after this timestamp (RFC 3339).`}).option(`before`,{type:`string`,description:`Filter entries changed before this timestamp (RFC 3339).`}).option(`order`,{type:`string`,description:`Sort order for results. Use 'asc' for oldest first or 'desc' for newest first.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`list`,describe:`Retrieves account or zone Audit Log`,builder:f(g),handler:async l=>c({command:`security-insights audit-logs list`,classification:{safeFlags:[`field-changed`,`order`,`dry-run`]}},l,async()=>{let c={per_page:l[`per-page`],cursor:l.cursor,field_changed:l[`field-changed`],changed_by:l[`changed-by`],since:l.since,before:l.before,order:l.order};if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-insights audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/audit-log`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityInsights.auditLogs.list({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},v={command:`audit-logs`,describe:`Operations for audit-logs`,builder:e=>e.command(ee).command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function y(e){return e.usage(`$0 security-insights classify <issue-id>
7
+
8
+ Updates the user classification for a Security Center insight. Valid values are 'false_positive' or 'accept_risk'. To reset, set classification to null. Cannot change directly between classification values - must reset to null first.`).positional(`issue-id`,{type:`string`,description:`Issue ID`,demandOption:!0}).option(`classification`,{type:`string`,description:`User-defined classification for the insight. Can be 'false_positive', 'accept_risk', 'other', or null.`,choices:[`false_positive`,`accept_risk`,`other`]}).option(`rationale`,{type:`string`,description:`Rationale for the classification change. Required when classification is 'accept_risk' or 'other'.`}).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 b={command:`classify <issue-id>`,describe:`Updates Security Center Insight Classification`,builder:y,handler:async f=>c({command:`security-insights classify`,classification:{safeFlags:[`classification`,`dry-run`]}},f,async()=>{if(f.dryRun){let e=f.zone===void 0?await t():void 0,n=f.zone===void 0?`accounts`:`zones`,r=f.zone??e??`<account-id>`;o({command:`cf security-insights classify`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/${f[`issue-id`]==null?`<issue-id>`:encodeURIComponent(String(f[`issue-id`]))}/classification`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"issue-id":String(f[`issue-id`]??``)},bodyKind:`json`,body:f.body===void 0?u({classification:d(f.classification,`classification`,`text`),rationale:d(f.rationale,`rationale`,`text`)}):l(f.body)});return}let c=await i(f),p=f.zone===void 0?`accounts`:`zones`,m=p===`zones`?await n({zone:f.zone},c,{quiet:f.quiet}):f.local?e:await r();if(p===`zones`?f.zoneId=m:f.accountId=m,f.body){let e=l(f.body);a(await s(`Updating`,async()=>c.securityInsights.classify({...e,account_or_zone:p,account_or_zone_id:m,issue_id:f[`issue-id`]})),{successLabel:`Updated`});return}let h=u({classification:d(f.classification,`classification`,`text`),rationale:d(f.rationale,`rationale`,`text`)});a(await s(`Updating`,async()=>c.securityInsights.classify({...h,account_or_zone:p,account_or_zone_id:m,issue_id:f[`issue-id`]})),{successLabel:`Updated`})})};function x(e){return e.usage(`$0 security-insights context get <issue-id>
9
+
10
+ Returns the full context payload for an insight. This endpoint is used for insights with large payloads that are not included inline in the list response.`).positional(`issue-id`,{type:`string`,description:`Issue ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`get <issue-id>`,describe:`Retrieves Security Center Insight Context`,builder:x,handler:async n=>c({command:`security-insights context get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){o({command:`cf security-insights context get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/security-center/insights/${n[`issue-id`]==null?`<issue-id>`:encodeURIComponent(String(n[`issue-id`]))}/context`,pathParams:{"issue-id":String(n[`issue-id`]??``)},bodyKind:`none`});return}let c=await i(n),l=n.local?e:await r();n.accountId=l,a(await s(`Loading`,async()=>c.securityInsights.context.get({account_id:l,issue_id:n[`issue-id`]})),{successLabel:`Loaded`})})},C={command:`context`,describe:`Operations for context`,builder:e=>e.command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function w(e){return e.usage(`$0 security-insights count by-class
11
+
12
+ Retrieves Security Center insight counts aggregated by classification class.`).option(`dismissed`,{type:`boolean`,description:`Dismissed`}).option(`issue-class`,{type:`string`,description:`Issue class`}).option(`issue-type`,{type:`string`,description:`Issue type`}).option(`product`,{type:`string`,description:`Product`}).option(`source`,{type:`string`,description:`Source`}).option(`severity`,{type:`string`,description:`Severity`}).option(`subject`,{type:`string`,description:`Subject`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`by-class`,describe:`Retrieves Security Center Insight Counts by Class`,builder:f(w),handler:async l=>c({command:`security-insights count by-class`,classification:{safeFlags:[`dismissed`,`dry-run`]}},l,async()=>{let c={dismissed:l.dismissed,issue_class:l[`issue-class`],issue_type:l[`issue-type`],product:l.product,source:l.source,severity:l.severity,subject:l.subject};if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-insights count by-class`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/class`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityInsights.count.byClass({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})};function E(e){return e.usage(`$0 security-insights count by-partner
13
+
14
+ Retrieves the uncapped count of active, non-dismissed, unclassified RiskRecon insights for the account or zone.`).option(`source`,{type:`string`,description:`Source`,choices:[`riskrecon`],demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const D={command:`by-partner`,describe:`Retrieves a Partner Security Center Insight Count`,builder:f(E),handler:async l=>c({command:`security-insights count by-partner`,classification:{safeFlags:[`source`,`dry-run`]}},l,async()=>{let c={source:l.source};if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-insights count by-partner`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/partner-count`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityInsights.count.byPartner({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})};function O(e){return e.usage(`$0 security-insights count by-severity
15
+
16
+ Retrieves Security Center insight counts aggregated by severity level (critical, high, medium, low).`).option(`dismissed`,{type:`boolean`,description:`Dismissed`}).option(`issue-class`,{type:`string`,description:`Issue class`}).option(`issue-type`,{type:`string`,description:`Issue type`}).option(`product`,{type:`string`,description:`Product`}).option(`source`,{type:`string`,description:`Source`}).option(`severity`,{type:`string`,description:`Severity`}).option(`subject`,{type:`string`,description:`Subject`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const k={command:`by-severity`,describe:`Retrieves Security Center Insight Counts by Severity`,builder:f(O),handler:async l=>c({command:`security-insights count by-severity`,classification:{safeFlags:[`dismissed`,`dry-run`]}},l,async()=>{let c={dismissed:l.dismissed,issue_class:l[`issue-class`],issue_type:l[`issue-type`],product:l.product,source:l.source,severity:l.severity,subject:l.subject};if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-insights count by-severity`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/severity`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityInsights.count.bySeverity({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})};function A(e){return e.usage(`$0 security-insights count by-type
17
+
18
+ Retrieves Security Center insight counts aggregated by insight type.`).option(`dismissed`,{type:`boolean`,description:`Dismissed`}).option(`issue-class`,{type:`string`,description:`Issue class`}).option(`issue-type`,{type:`string`,description:`Issue type`}).option(`product`,{type:`string`,description:`Product`}).option(`source`,{type:`string`,description:`Source`}).option(`severity`,{type:`string`,description:`Severity`}).option(`subject`,{type:`string`,description:`Subject`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`by-type`,describe:`Retrieves Security Center Insight Counts by Type`,builder:f(A),handler:async l=>c({command:`security-insights count by-type`,classification:{safeFlags:[`dismissed`,`dry-run`]}},l,async()=>{let c={dismissed:l.dismissed,issue_class:l[`issue-class`],issue_type:l[`issue-type`],product:l.product,source:l.source,severity:l.severity,subject:l.subject};if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-insights count by-type`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/type`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityInsights.count.byType({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},M={command:`count`,describe:`Operations for count`,builder:e=>e.command(T).command(D).command(k).command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function N(e){return e.usage(`$0 security-insights dismiss <issue-id>
19
+
20
+ Archives a Security Center insight for an account or zone, removing it from the active insights list while preserving historical data.`).positional(`issue-id`,{type:`string`,description:`Issue ID`,demandOption:!0}).option(`dismiss`,{type:`boolean`,description:`The dismiss field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const P={command:`dismiss <issue-id>`,describe:`Archives Security Center Insight`,builder:N,handler:async d=>c({command:`security-insights dismiss`,classification:{safeFlags:[`dismiss`,`dry-run`]}},d,async()=>{if(d.dryRun){let e=d.zone===void 0?await t():void 0,n=d.zone===void 0?`accounts`:`zones`,r=d.zone??e??`<account-id>`;o({command:`cf security-insights dismiss`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/${d[`issue-id`]==null?`<issue-id>`:encodeURIComponent(String(d[`issue-id`]))}/dismiss`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"issue-id":String(d[`issue-id`]??``)},bodyKind:`json`,body:d.body===void 0?u({dismiss:d.dismiss}):l(d.body)});return}let c=await i(d),f=d.zone===void 0?`accounts`:`zones`,p=f===`zones`?await n({zone:d.zone},c,{quiet:d.quiet}):d.local?e:await r();if(f===`zones`?d.zoneId=p:d.accountId=p,d.body){let e=l(d.body);a(await s(`Updating`,async()=>c.securityInsights.dismiss({...e,account_or_zone:f,account_or_zone_id:p,issue_id:d[`issue-id`]})),{successLabel:`Updated`});return}let m=u({dismiss:d.dismiss});a(await s(`Updating`,async()=>c.securityInsights.dismiss({...m,account_or_zone:f,account_or_zone_id:p,issue_id:d[`issue-id`]})),{successLabel:`Updated`})})};function F(e){return e.usage(`$0 security-insights list
21
+
22
+ Lists all Security Center insights for the account or zone, showing security findings and recommendations.`).option(`dismissed`,{type:`boolean`,description:`Dismissed`}).option(`issue-class`,{type:`string`,description:`Issue class`}).option(`issue-type`,{type:`string`,description:`Issue type`}).option(`product`,{type:`string`,description:`Product`}).option(`source`,{type:`string`,description:`Source`}).option(`severity`,{type:`string`,description:`Severity`}).option(`subject`,{type:`string`,description:`Subject`}).option(`page`,{type:`number`,description:`Specifies the current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`Sets the number of results per page of results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const te={command:`list`,describe:`Retrieves Security Center Insights`,builder:f(F),handler:async l=>c({command:`security-insights list`,classification:{safeFlags:[`dismissed`,`dry-run`]}},l,async()=>{let c={dismissed:l.dismissed,issue_class:l[`issue-class`],issue_type:l[`issue-type`],product:l.product,source:l.source,severity:l.severity,subject:l.subject,page:l.page,per_page:l[`per-page`]};if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-insights list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityInsights.list({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})};function I(e){return e.usage(`$0 security-insights partners settings get <partner>
23
+
24
+ Returns whether the account has enabled the selected partner integration. An integration that has never been configured is returned as disabled.`).positional(`partner`,{type:`string`,description:`The partner integration identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`get <partner>`,describe:`Retrieves Partner Integration Settings`,builder:f(I),handler:async n=>c({command:`security-insights partners settings get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){o({command:`cf security-insights partners settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/security-center/partners/${n.partner==null?`<partner>`:encodeURIComponent(String(n.partner))}/settings`,pathParams:{partner:String(n.partner??``)},bodyKind:`none`});return}let c=await i(n),l=n.local?e:await r();n.accountId=l,a(await s(`Loading`,async()=>c.securityInsights.partners.settings.get({account_id:l,partner:n.partner})),{successLabel:`Loaded`})})};function R(e){return e.usage(`$0 security-insights partners settings update <partner>
25
+
26
+ Enables or disables the selected partner integration for the account. Enabling the integration for the first time also schedules an account scan for that partner.`).positional(`partner`,{type:`string`,description:`The partner integration identifier.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`Whether the partner integration is enabled for the account.`}).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 z={command:`update <partner>`,describe:`Updates Partner Integration Settings`,builder:f(R),handler:async n=>c({command:`security-insights partners settings update`,classification:{safeFlags:[`enabled`,`dry-run`]}},n,async()=>{if(n.dryRun){o({command:`cf security-insights partners settings update`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/security-center/partners/${n.partner==null?`<partner>`:encodeURIComponent(String(n.partner))}/settings`,pathParams:{partner:String(n.partner??``)},bodyKind:`json`,body:n.body===void 0?u({enabled:n.enabled}):l(n.body)});return}let c=await i(n),d=n.local?e:await r();if(n.accountId=d,n.body){let e=l(n.body);a(await s(`Creating`,async()=>c.securityInsights.partners.settings.update({body:e,account_id:d,partner:n.partner})),{successLabel:`Created`});return}if(n.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let f=u({enabled:n.enabled});a(await s(`Creating`,async()=>c.securityInsights.partners.settings.update({body:f,account_id:d,partner:n.partner})),{successLabel:`Created`})})},B={command:`settings`,describe:`Operations for partners.settings`,builder:e=>e.command(L).command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function V(e){return e.usage(`$0 security-insights partners shadow-hosts list
27
+
28
+ Lists partner-discovered hosts beneath the zone that are not in the account.`).option(`partner`,{type:`string`,description:`The partner integration identifier.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number for premium partner asset results.`}).option(`per-page`,{type:`number`,description:`Number of premium partner asset results per page. Values other than 1 must be a multiple of 5.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`list`,describe:`Lists Partner-Discovered Shadow Hosts for a Zone`,builder:V,handler:async e=>c({command:`security-insights partners shadow-hosts list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`]};if(e.dryRun){o({command:`cf security-insights partners shadow-hosts list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/security-center/partners/${e.partner==null?`<partner>`:encodeURIComponent(String(e.partner))}/shadow-hosts`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),partner:String(e.partner??``)},query:t,bodyKind:`none`});return}let r=await i(e);e.zoneId=await n({zone:e.zone},r,{quiet:e.quiet});let a=new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();p((await s(`Loading`,async()=>m(`/zones/${e.zoneId}/security-center/partners/${encodeURIComponent(String(e.partner))}/shadow-hosts${a?`?`+a:``}`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}))).toString(`utf-8`))})},U={command:`shadow-hosts`,describe:`Operations for partners.shadow-hosts`,builder:e=>e.command(H).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function W(e){return e.usage(`$0 security-insights partners shadow-zone-hosts list
29
+
30
+ Lists hosts discovered beneath a shadow-zone domain. This endpoint is available only to premium accounts and supports JSON and CSV output.`).option(`partner`,{type:`string`,description:`The partner integration identifier.`,demandOption:!0}).option(`domain`,{type:`string`,description:`The shadow-zone domain.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number for premium partner asset results.`}).option(`per-page`,{type:`number`,description:`Number of premium partner asset results per page. Values other than 1 must be a multiple of 5.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const G={command:`list`,describe:`Lists Hosts in a Partner-Discovered Shadow Zone`,builder:W,handler:async n=>c({command:`security-insights partners shadow-zone-hosts list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{let a={page:n.page,per_page:n[`per-page`]};if(n.dryRun){o({command:`cf security-insights partners shadow-zone-hosts list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/security-center/partners/${n.partner==null?`<partner>`:encodeURIComponent(String(n.partner))}/shadow-zones/${n.domain==null?`<domain>`:encodeURIComponent(String(n.domain))}/hosts`,pathParams:{partner:String(n.partner??``),domain:String(n.domain??``)},query:a,bodyKind:`none`});return}await i(n);let c=n.local?e:await r();n.accountId=c;let l=new URLSearchParams(Object.entries(a).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();p((await s(`Loading`,async()=>m(`/accounts/${c}/security-center/partners/${encodeURIComponent(String(n.partner))}/shadow-zones/${encodeURIComponent(String(n.domain))}/hosts${l?`?`+l:``}`,{method:`GET`,local:n.local===!0,persistTo:n.persistTo}))).toString(`utf-8`))})},K={command:`shadow-zone-hosts`,describe:`Operations for partners.shadow-zone-hosts`,builder:e=>e.command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function q(e){return e.usage(`$0 security-insights partners shadow-zones list
31
+
32
+ Lists domains discovered by the selected partner that are not in the account. Baseline accounts receive the total count only; premium accounts receive paginated items and may request CSV output.`).option(`partner`,{type:`string`,description:`The partner integration identifier.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number for premium partner asset results.`}).option(`per-page`,{type:`number`,description:`Number of premium partner asset results per page. Values other than 1 must be a multiple of 5.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const J={command:`list`,describe:`Lists Partner-Discovered Shadow Zones`,builder:q,handler:async n=>c({command:`security-insights partners shadow-zones list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{let a={page:n.page,per_page:n[`per-page`]};if(n.dryRun){o({command:`cf security-insights partners shadow-zones list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/security-center/partners/${n.partner==null?`<partner>`:encodeURIComponent(String(n.partner))}/shadow-zones`,pathParams:{partner:String(n.partner??``)},query:a,bodyKind:`none`});return}await i(n);let c=n.local?e:await r();n.accountId=c;let l=new URLSearchParams(Object.entries(a).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();p((await s(`Loading`,async()=>m(`/accounts/${c}/security-center/partners/${encodeURIComponent(String(n.partner))}/shadow-zones${l?`?`+l:``}`,{method:`GET`,local:n.local===!0,persistTo:n.persistTo}))).toString(`utf-8`))})},Y={command:`shadow-zones`,describe:`Operations for partners.shadow-zones`,builder:e=>e.command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},X={command:`partners`,describe:`Operations for partners`,builder:e=>e.command(B).command(U).command(K).command(Y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Z(e){return e.usage(`$0 security-insights scans list
33
+
34
+ Returns the most recent on-demand scans for the account or zone, up to a maximum of 5. Each scan includes its ID, start time, and current status. This includes both account or zone-wide and zone-scoped scans. Also returns quota information showing how many scans have been used and how many remain in the current 24-hour window.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Q={command:`list`,describe:`Get Recent account or zone Scans`,builder:Z,handler:async l=>c({command:`security-insights scans list`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-insights scans list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/scans`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await n({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await r();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.securityInsights.scans.list({account_or_zone:u,account_or_zone_id:d})),{successLabel:`Loaded`})})};function ne(e){return e.usage(`$0 security-insights scans start
35
+
36
+ Initiates an on-demand security scan for the entire account or zone, scanning all zones associated with the account or zone. Rate limited to 5 scans per account or zone per 24-hour window.`).option(`issue-type`,{type:`string`,description:`The issue_type field`,choices:[`compliance_violation`,`email_security`,`exposed_infrastructure`,`insecure_configuration`,`weak_authentication`,`configuration_suggestion`]}).option(`issue-class`,{type:`string`,description:`The issue_class field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for starting an on-demand scan. Specify issue_type or issue_class to scope the scan, or provide an empty object to scan all issue types.`}).conflicts(`issue-type`,[`issue-class`]).conflicts(`issue-class`,[`issue-type`])}const re={command:`start`,describe:`Start On-Demand account or zone Scan`,builder:ne,handler:async f=>c({command:`security-insights scans start`,classification:{safeFlags:[`issue-type`,`dry-run`]}},f,async()=>{if(f.dryRun){let e=f.zone===void 0?await t():void 0,n=f.zone===void 0?`accounts`:`zones`,r=f.zone??e??`<account-id>`;o({command:`cf security-insights scans start`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/scans`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:f.body===void 0?u({issue_type:d(f[`issue-type`],`issue-type`,`text`),issue_class:d(f[`issue-class`],`issue-class`,`text`)}):l(f.body)});return}let c=await i(f),p=f.zone===void 0?`accounts`:`zones`,m=p===`zones`?await n({zone:f.zone},c,{quiet:f.quiet}):f.local?e:await r();if(p===`zones`?f.zoneId=m:f.accountId=m,f.body){let e=l(f.body);a(await s(`Creating`,async()=>c.securityInsights.scans.start({body:e,account_or_zone:p,account_or_zone_id:m})),{successLabel:`Created`});return}let h=u({issue_type:d(f[`issue-type`],`issue-type`,`text`),issue_class:d(f[`issue-class`],`issue-class`,`text`)});a(await s(`Creating`,async()=>c.securityInsights.scans.start({body:h,account_or_zone:p,account_or_zone_id:m})),{successLabel:`Created`})})},ie={command:`scans`,describe:`Operations for scans`,builder:e=>e.command(Q).command(re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ae(e){return e.usage(`$0 security-insights state get
37
+
38
+ Returns account-level Security Center state: whether scans are enabled for the account and whether the account was recently reactivated from a dormant state.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const oe={command:`get`,describe:`Retrieves Account State`,builder:ae,handler:async n=>c({command:`security-insights state get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){o({command:`cf security-insights state get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/security-center/state`,pathParams:{},bodyKind:`none`});return}let c=await i(n),l=n.local?e:await r();n.accountId=l,a(await s(`Loading`,async()=>c.securityInsights.state.get({account_id:l})),{successLabel:`Loaded`})})};function $(e){return e.usage(`$0 security-insights state update
39
+
40
+ Updates account-level Security Center state. Currently supports enabling or disabling scans for the account. Returns the account's state after the update.`).option(`scans-enabled`,{type:`boolean`,description:`Enable or disable scans for the account.`}).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 se={command:`update`,describe:`Updates Account State`,builder:$,handler:async n=>c({command:`security-insights state update`,classification:{safeFlags:[`scans-enabled`,`dry-run`]}},n,async()=>{if(n.dryRun){o({command:`cf security-insights state update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/security-center/state`,pathParams:{},bodyKind:`json`,body:n.body===void 0?u({scans_enabled:n[`scans-enabled`]}):l(n.body)});return}let c=await i(n),d=n.local?e:await r();if(n.accountId=d,n.body){let e=l(n.body);a(await s(`Updating`,async()=>c.securityInsights.state.update({...e,account_id:d})),{successLabel:`Updated`});return}if(n[`scans-enabled`]===void 0)throw Error(`--scans-enabled is required (or pass --body with this field set).`);let f=u({scans_enabled:n[`scans-enabled`]});a(await s(`Updating`,async()=>c.securityInsights.state.update({...f,account_id:d})),{successLabel:`Updated`})})},ce={command:`state`,describe:`Operations for state`,builder:e=>e.command(oe).command(se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},le={command:`security-insights`,describe:`security-insights`,builder:e=>e.command(b).command(P).command(te).command(v).command(C).command(M).command(X).command(ie).command(ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{le as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-CPVzoKbN.mjs";import{r as t}from"./auth-B_Utev-x.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-DS2fwfNP.mjs";import{t as a}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{n as l}from"./prompt-doX80PCd.mjs";function u(e){return e.usage(`$0 security-txt delete
2
+ import{i as e}from"./context-CE7QFX-z.mjs";import{r as t}from"./auth-gOCL6Pm0.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-CRjK46r1.mjs";import{t as a}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{n as l}from"./prompt-C_90YsVE.mjs";function u(e){return e.usage(`$0 security-txt delete
3
3
 
4
4
  Removes the security.txt file configuration for a zone. The /.well-known/security.txt endpoint will no longer be served.`).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 d={command:`delete`,describe:`Deletes security.txt`,builder:u,handler:async o=>a({command:`security-txt delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf security-txt delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/security-center/securitytxt`,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 l({force:!!o.force})){process.stderr.write(`Aborted.
5
5
  `);return}n(await i(`Deleting`,async()=>a.securityTxt.delete({zone_id:s})),{successLabel:`Deleted`})})};function f(e){return e.usage(`$0 security-txt get
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./theme-BIWQFmZ0.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{G as n,nt as r,q as i}from"./dist-DfMipWKR.mjs";import"./ui-BQxRjahW.mjs";import{t as a}from"./context-CPVzoKbN.mjs";import{n as o}from"./dist-DW47TUGh.mjs";import{i as s}from"./auth-B_Utev-x.mjs";import{D as c,d as l,g as u,u as d}from"./dist-COohnEBL.mjs";import{c as f,i as p,l as m,t as h}from"./containers-BU9RquYh.mjs";import{a as g,i as _,n as v,o as y,r as b}from"./build-VUz0URCV.mjs";import{i as x,n as S,t as C}from"./deploy-input-YW632ysz.mjs";import{readBuildOutput as w}from"@cloudflare/build-output-utils";function T(e){return e.option(`prebuilt`,{type:`boolean`,description:`Deploy existing Build Output Specification files without building`,default:!1}).option(`tag`,{type:`string`,description:`A tag to associate with this Worker Version`,requiresArg:!0}).option(`message`,{type:`string`,description:`A message to associate with this Worker Version`,requiresArg:!0}).option(`secrets-file`,{type:`string`,description:`Path to a file containing secrets to upload with the version (JSON or .env format)`,requiresArg:!0}).option(`dry-run`,{describe:`Build a project and run checks without actually uploading the Worker`,type:`boolean`,default:!1}).option(`worker`,b)}async function E(e,n){return e.prebuilt||(await v(e.mode,{worker:e.worker}),o.message(``,{spacing:0})),t(e,()=>D(e,n))}async function D(t,v){let{workers:b,rootConfig:T,containers:E}=await w(process.cwd());if(T.buildContext.isPreview){let e=[`cf previews deploy`,...t.prebuilt?[`--prebuilt`]:[],...T.buildContext.mode===void 0?[]:[`--mode`,T.buildContext.mode]].join(` `);throw Error(`This build output is for a Preview. Run ${e} instead.`)}y(t.mode,T.buildContext.mode);let D=g(b,t.worker),{wranglerConfig:O,builtConfig:k}=_(D,T),A=C(D,k),j=t[`dry-run`]?``:await s(),M=t[`dry-run`]?void 0:T.accountId??await a({skipProjectSettings:!0,complianceRegion:i(O)}),N=c(j);m(N),u({logger:N.logger,fetchResult:N.fetchResult,fetchPagedListResult:N.fetchPagedListResult}),M!==void 0&&E.length>0&&l(M,j,n(O));let P=h(E,O,{accountId:M,containersRollout:t[`containers-rollout`]}),F;if(v.command===`Deploy`){let n=S(D,O,M,t,P);o.message(e.bold(`Deploy`),{symbol:e.muted(`├`),spacing:0}),{versionId:F}=await p(n,O,A,{syncWorkersSite:void 0,analyseBundle:void 0})}else{let n=x(D,O,M,t,P);o.message(e.bold(`Upload`),{symbol:e.muted(`├`),spacing:0}),{versionId:F}=await f(n,O,A,{analyseBundle:void 0})}F!==null&&!t[`dry-run`]&&(v.command!==`Deploy`||t[`containers-rollout`]!==`none`)&&await d([...v.command===`Deploy`?P.standard.builtImages:[],...P.durableObjects.builtImages],r()),o.success(t[`dry-run`]?`Dry run complete`:`${v.command} complete`)}export{T as n,E as t};
2
+ import{r as e}from"./theme-BIWQFmZ0.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{G as n,nt as r,q as i}from"./dist-DfMipWKR.mjs";import"./ui-BQxRjahW.mjs";import{t as a}from"./context-CE7QFX-z.mjs";import{n as o}from"./dist-DW47TUGh.mjs";import{i as s}from"./auth-gOCL6Pm0.mjs";import{D as c,d as l,g as u,u as d}from"./dist-Dgnf_i4w.mjs";import{c as f,i as p,l as m,t as h}from"./containers-BY8pinEV.mjs";import{a as g,i as _,n as v,o as y,r as b}from"./build-_qqitpn0.mjs";import{i as x,n as S,t as C}from"./deploy-input-CNrImP7B.mjs";import{readBuildOutput as w}from"@cloudflare/build-output-utils";function T(e){return e.option(`prebuilt`,{type:`boolean`,description:`Deploy existing Build Output Specification files without building`,default:!1}).option(`tag`,{type:`string`,description:`A tag to associate with this Worker Version`,requiresArg:!0}).option(`message`,{type:`string`,description:`A message to associate with this Worker Version`,requiresArg:!0}).option(`secrets-file`,{type:`string`,description:`Path to a file containing secrets to upload with the version (JSON or .env format)`,requiresArg:!0}).option(`dry-run`,{describe:`Build a project and run checks without actually uploading the Worker`,type:`boolean`,default:!1}).option(`worker`,b)}async function E(e,n){return e.prebuilt||(await v(e.mode,{worker:e.worker}),o.message(``,{spacing:0})),t(e,()=>D(e,n))}async function D(t,v){let{workers:b,rootConfig:T,containers:E}=await w(process.cwd());if(T.buildContext.isPreview){let e=[`cf previews deploy`,...t.prebuilt?[`--prebuilt`]:[],...T.buildContext.mode===void 0?[]:[`--mode`,T.buildContext.mode]].join(` `);throw Error(`This build output is for a Preview. Run ${e} instead.`)}y(t.mode,T.buildContext.mode);let D=g(b,t.worker),{wranglerConfig:O,builtConfig:k}=_(D,T),A=C(D,k),j=t[`dry-run`]?``:await s(),M=t[`dry-run`]?void 0:T.accountId??await a({skipProjectSettings:!0,complianceRegion:i(O)}),N=c(j);m(N),u({logger:N.logger,fetchResult:N.fetchResult,fetchPagedListResult:N.fetchPagedListResult}),M!==void 0&&E.length>0&&l(M,j,n(O));let P=h(E,O,{accountId:M,containersRollout:t[`containers-rollout`]}),F;if(v.command===`Deploy`){let n=S(D,O,M,t,P);o.message(e.bold(`Deploy`),{symbol:e.muted(`├`),spacing:0}),{versionId:F}=await p(n,O,A,{syncWorkersSite:void 0,analyseBundle:void 0})}else{let n=x(D,O,M,t,P);o.message(e.bold(`Upload`),{symbol:e.muted(`├`),spacing:0}),{versionId:F}=await f(n,O,A,{analyseBundle:void 0})}F!==null&&!t[`dry-run`]&&(v.command!==`Deploy`||t[`containers-rollout`]!==`none`)&&await d([...v.command===`Deploy`?P.standard.builtImages:[],...P.durableObjects.builtImages],r()),o.success(t[`dry-run`]?`Dry run complete`:`${v.command} complete`)}export{T as n,E as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-CPVzoKbN.mjs";import{r as t}from"./auth-B_Utev-x.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-DS2fwfNP.mjs";import{t as a}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as o,r as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";import{a as u,n as d}from"./prompt-doX80PCd.mjs";function f(e){return e.usage(`$0 smart-shield cache-reserve-clear clear
2
+ import{i as e}from"./context-CE7QFX-z.mjs";import{r as t}from"./auth-gOCL6Pm0.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-CRjK46r1.mjs";import{t as a}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as o,r as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";import{a as u,n as d}from"./prompt-C_90YsVE.mjs";function f(e){return e.usage(`$0 smart-shield cache-reserve-clear clear
3
3
 
4
4
  You can use Cache Reserve Clear to clear your Cache Reserve, but you must first disable Cache Reserve. In most cases, this will be accomplished within 24 hours. You cannot re-enable Cache Reserve while this process is ongoing. Keep in mind that you cannot undo or cancel this operation.`).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 p={command:`clear`,describe:`Start Cache Reserve Clear`,builder:f,handler:async o=>a({command:`smart-shield cache-reserve-clear clear`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf smart-shield cache-reserve-clear clear`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/smart_shield/cache_reserve_clear`,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 d({force:!!o.force,message:`This operation permanently clears Cache Reserve for this zone and cannot be undone.`})){process.stderr.write(`Aborted.
5
5
  `);return}n(await i(`Deleting`,async()=>a.smartShield.cacheReserveClear.clear({zone_id:s})),{successLabel:`Deleted`})})};function m(e){return e.usage(`$0 smart-shield cache-reserve-clear status
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-CPVzoKbN.mjs";import{a as t,r as n}from"./auth-B_Utev-x.mjs";import{t as r}from"./output-CvQFJkvi.mjs";import{t as i}from"./dry-run-Bq0JAsbX.mjs";import{t as a}from"./progress-DS2fwfNP.mjs";import{t as o}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as s,r as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u,t as d}from"./input-validation-Dk52b0me.mjs";import{n as f}from"./prompt-doX80PCd.mjs";import{n as p,t as m}from"./raw-fetch-_Z55VEDY.mjs";function h(e){return e.usage(`$0 snippets content get <snippet-name>
2
+ import{i as e}from"./context-CE7QFX-z.mjs";import{a as t,r as n}from"./auth-gOCL6Pm0.mjs";import{t as r}from"./output-CvQFJkvi.mjs";import{t as i}from"./dry-run-Bq0JAsbX.mjs";import{t as a}from"./progress-CRjK46r1.mjs";import{t as o}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as s,r as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u,t as d}from"./input-validation-Dk52b0me.mjs";import{n as f}from"./prompt-C_90YsVE.mjs";import{n as p,t as m}from"./raw-fetch-C8SdmQBp.mjs";function h(e){return e.usage(`$0 snippets content get <snippet-name>
3
3
 
4
4
  Fetches the content of a snippet belonging to the zone.`).positional(`snippet-name`,{type:`string`,description:`Identify the snippet.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const g={command:`get <snippet-name>`,describe:`Get a zone snippet content`,builder:h,handler:async t=>o({command:`snippets content get`,classification:{safeFlags:[`dry-run`,`text`]}},t,async()=>{if(t.dryRun){i({command:`cf snippets content get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${t.zone??t.zoneId??`<zone>`}/snippets/${t[`snippet-name`]==null?`<snippet-name>`:encodeURIComponent(String(t[`snippet-name`]))}/content`,pathParams:{"zone-id":String(t.zone??t[`zone-id`]??``),"snippet-name":String(t[`snippet-name`]??``)},bodyKind:`none`});return}let r=await n(t);t.zoneId=await e({zone:t.zone},r,{quiet:t.quiet});let o=await a(`Loading`,async()=>m(`/zones/${t.zoneId}/snippets/${encodeURIComponent(String(t[`snippet-name`]))}/content`,{method:`GET`,local:t.local===!0,persistTo:t.persistTo}));p(t.text===!0?o.toString(`utf-8`):o)})},_={command:`content`,describe:`Operations for content`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.usage(`$0 snippets delete <snippet-name>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e,n as t}from"./source-38bULAR8.mjs";import{r as n}from"./theme-BIWQFmZ0.mjs";import{t as r}from"./cli-exit-Dqoo6Jgb.mjs";import"./ui-BQxRjahW.mjs";import{a as i,i as a,n as o,o as s,r as c,s as l,t as u}from"./gt-DmcMNPX6.mjs";import{n as d,t as f}from"./discover-VRFBjse7.mjs";import{t as p}from"./registry-DBMUTYqf.mjs";import{constants as m}from"node:os";import{spawn as h}from"node:child_process";var g=t(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),_=t(((e,t)=>{let n=o();t.exports=(e,t,r)=>n(e,t,r)===0})),v=t(((e,t)=>{let n=o();t.exports=(e,t,r)=>n(e,t,r)!==0})),y=t(((e,t)=>{let n=o();t.exports=(e,t,r)=>n(e,t,r)>=0})),b=t(((e,t)=>{let n=o();t.exports=(e,t,r)=>n(e,t,r)<0})),x=t(((e,t)=>{let n=o();t.exports=(e,t,r)=>n(e,t,r)<=0})),S=t(((e,t)=>{let n=_(),r=v(),i=u(),a=y(),o=b(),s=x();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),C=t(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),d(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,d(`comp`,this)}parse(e){let t=this.options.loose?o[s.COMPARATORLOOSE]:o[s.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new f(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(d(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new f(e,this.options)}catch{return!1}return u(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new p(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new p(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||u(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||u(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=a(),{safeRe:o,t:s}=i(),u=S(),d=l(),f=c(),p=w()})),w=t(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=o(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof u)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!w(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&T(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(S,``);let t=((this.options.includePrerelease&&b)|(this.options.loose&&x))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,a=i?p[h.HYPHENRANGELOOSE]:p[h.HYPHENRANGE];e=e.replace(a,R(this.options.includePrerelease)),d(`hyphen replace`,e),e=e.replace(p[h.COMPARATORTRIM],_),d(`comparator trim`,e),e=e.replace(p[h.TILDETRIM],v),d(`tilde trim`,e),e=e.replace(p[h.CARETTRIM],y),d(`caret trim`,e);let o=e.split(` `).map(e=>D(e,this.options)).join(` `).split(/\s+/).map(e=>L(e,this.options));i&&(o=o.filter(e=>(d(`loose invalid filter`,e,this.options),!!e.match(p[h.COMPARATORLOOSE])))),d(`range list`,o);let s=new Map,c=o.map(e=>new u(e,this.options));for(let e of c){if(w(e))return[e];s.set(e.value,e)}s.size>1&&s.has(``)&&s.delete(``);let l=[...s.values()];return r.set(t,l),l}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>E(e,n)&&t.set.some(t=>E(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new f(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(z(this.set[t],e,this.options))return!0;return!1}};let r=new(g()),o=a(),u=C(),d=l(),f=c(),{safeRe:p,src:m,t:h,comparatorTrimReplace:_,tildeTrimReplace:v,caretTrimReplace:y}=i(),{FLAG_INCLUDE_PRERELEASE:b,FLAG_LOOSE:x}=s(),S=new RegExp(m[h.BUILD],`g`),w=e=>e.value===`<0.0.0-0`,T=e=>e.value===``,E=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},D=(e,t)=>(e=e.replace(p[h.BUILD],``),d(`comp`,e,t),e=M(e,t),d(`caret`,e),e=A(e,t),d(`tildes`,e),e=P(e,t),d(`xrange`,e),e=I(e,t),d(`stars`,e),e),O=e=>!e||e.toLowerCase()===`x`||e===`*`,k=(e,t,n)=>O(e)&&!O(t)||O(t)&&n&&!O(n),A=(e,t)=>e.trim().split(/\s+/).map(e=>j(e,t)).join(` `),j=(e,t)=>{let n=t.loose?p[h.TILDELOOSE]:p[h.TILDE],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,o)=>{d(`tilde`,e,t,n,i,a,o);let s;return O(n)?s=``:O(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:O(a)?s=`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:o?(d(`replaceTilde pr`,o),s=`>=${n}.${i}.${a}-${o} <${n}.${+i+1}.0-0`):s=`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`,d(`tilde return`,s),s})},M=(e,t)=>e.trim().split(/\s+/).map(e=>N(e,t)).join(` `),N=(e,t)=>{d(`caret`,e,t);let n=t.loose?p[h.CARETLOOSE]:p[h.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,o)=>{d(`caret`,e,t,n,i,a,o);let s;return O(n)?s=``:O(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:O(a)?s=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:o?(d(`replaceCaret pr`,o),s=n===`0`?i===`0`?`>=${n}.${i}.${a}-${o} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${o} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${o} <${+n+1}.0.0-0`):(d(`no pr`),s=n===`0`?i===`0`?`>=${n}.${i}.${a} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),d(`caret return`,s),s})},P=(e,t)=>(d(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>F(e,t)).join(` `)),F=(e,t)=>{e=e.trim();let n=t.loose?p[h.XRANGELOOSE]:p[h.XRANGE];return e.replace(n,(n,r,i,a,o,s)=>{if(d(`xRange`,e,n,r,i,a,o,s),k(i,a,o))return e;let c=O(i),l=c||O(a),u=l||O(o),f=u;return r===`=`&&f&&(r=``),s=t.includePrerelease?`-0`:``,c?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(l&&(a=0),o=0,r===`>`?(r=`>=`,l?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):r===`<=`&&(r=`<`,l?i=+i+1:a=+a+1),r===`<`&&(s=`-0`),n=`${r+i}.${a}.${o}${s}`):l?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:u&&(n=`>=${i}.${a}.0${s} <${i}.${+a+1}.0-0`),d(`xRange return`,n),n})},I=(e,t)=>(d(`replaceStars`,e,t),e.trim().replace(p[h.STAR],``)),L=(e,t)=>(d(`replaceGTE0`,e,t),e.trim().replace(p[t.includePrerelease?h.GTE0PRE:h.GTE0],``)),R=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=O(r)?``:O(i)?`>=${r}.0.0${e?`-0`:``}`:O(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=O(l)?``:O(u)?`<${+l+1}.0.0-0`:O(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),z=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(d(e[n].semver),e[n].semver!==u.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),T=e(t(((e,t)=>{let n=w();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}}))(),1);function E(e){let t=f(e);if(t.length===0)throw A(e),new r(1);if(t.length>1)throw j(t),new r(1);let[n]=t;if(!n)throw new r(1);if(!n.binary)throw M(n),new r(1);if(n.impl.versionConstraint!==void 0&&!D(n.installedVersion,n.impl.versionConstraint.range))throw O(n),new r(1);return n}function D(e,t){return e!==void 0&&(0,T.default)(e,t,{includePrerelease:!0})}function O(e){console.error(`\n${n.bold(e.impl.pkg)}@${e.installedVersion??`unknown`} is installed, but it is not compatible with cf's local runtime.\n\n`+k(e)+`Try: ${e.impl.installHint}`)}function k(e){let t=e.impl.versionConstraint?.display??`a compatible version`;return`cf requires ${n.bold(t)} for ${n.bold(`cf dev`)}, ${n.bold(`cf build`)}, ${n.bold(`cf deploy`)}, and ${n.bold(`cf previews deploy`)}.\n`}function A(e){console.error(`
2
+ import{i as e,n as t}from"./source-38bULAR8.mjs";import{r as n}from"./theme-BIWQFmZ0.mjs";import{t as r}from"./cli-exit-Dqoo6Jgb.mjs";import"./ui-BQxRjahW.mjs";import{a as i,i as a,n as o,o as s,r as c,s as l,t as u}from"./gt-DmcMNPX6.mjs";import{n as d,t as f}from"./discover-B_3A4a_t.mjs";import{t as p}from"./registry-CSv7HR1J.mjs";import{constants as m}from"node:os";import{spawn as h}from"node:child_process";var g=t(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),_=t(((e,t)=>{let n=o();t.exports=(e,t,r)=>n(e,t,r)===0})),v=t(((e,t)=>{let n=o();t.exports=(e,t,r)=>n(e,t,r)!==0})),y=t(((e,t)=>{let n=o();t.exports=(e,t,r)=>n(e,t,r)>=0})),b=t(((e,t)=>{let n=o();t.exports=(e,t,r)=>n(e,t,r)<0})),x=t(((e,t)=>{let n=o();t.exports=(e,t,r)=>n(e,t,r)<=0})),S=t(((e,t)=>{let n=_(),r=v(),i=u(),a=y(),o=b(),s=x();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),C=t(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),d(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,d(`comp`,this)}parse(e){let t=this.options.loose?o[s.COMPARATORLOOSE]:o[s.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new f(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(d(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new f(e,this.options)}catch{return!1}return u(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new p(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new p(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||u(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||u(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=a(),{safeRe:o,t:s}=i(),u=S(),d=l(),f=c(),p=w()})),w=t(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=o(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof u)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!w(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&T(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(S,``);let t=((this.options.includePrerelease&&b)|(this.options.loose&&x))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,a=i?p[h.HYPHENRANGELOOSE]:p[h.HYPHENRANGE];e=e.replace(a,R(this.options.includePrerelease)),d(`hyphen replace`,e),e=e.replace(p[h.COMPARATORTRIM],_),d(`comparator trim`,e),e=e.replace(p[h.TILDETRIM],v),d(`tilde trim`,e),e=e.replace(p[h.CARETTRIM],y),d(`caret trim`,e);let o=e.split(` `).map(e=>D(e,this.options)).join(` `).split(/\s+/).map(e=>L(e,this.options));i&&(o=o.filter(e=>(d(`loose invalid filter`,e,this.options),!!e.match(p[h.COMPARATORLOOSE])))),d(`range list`,o);let s=new Map,c=o.map(e=>new u(e,this.options));for(let e of c){if(w(e))return[e];s.set(e.value,e)}s.size>1&&s.has(``)&&s.delete(``);let l=[...s.values()];return r.set(t,l),l}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>E(e,n)&&t.set.some(t=>E(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new f(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(z(this.set[t],e,this.options))return!0;return!1}};let r=new(g()),o=a(),u=C(),d=l(),f=c(),{safeRe:p,src:m,t:h,comparatorTrimReplace:_,tildeTrimReplace:v,caretTrimReplace:y}=i(),{FLAG_INCLUDE_PRERELEASE:b,FLAG_LOOSE:x}=s(),S=new RegExp(m[h.BUILD],`g`),w=e=>e.value===`<0.0.0-0`,T=e=>e.value===``,E=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},D=(e,t)=>(e=e.replace(p[h.BUILD],``),d(`comp`,e,t),e=M(e,t),d(`caret`,e),e=A(e,t),d(`tildes`,e),e=P(e,t),d(`xrange`,e),e=I(e,t),d(`stars`,e),e),O=e=>!e||e.toLowerCase()===`x`||e===`*`,k=(e,t,n)=>O(e)&&!O(t)||O(t)&&n&&!O(n),A=(e,t)=>e.trim().split(/\s+/).map(e=>j(e,t)).join(` `),j=(e,t)=>{let n=t.loose?p[h.TILDELOOSE]:p[h.TILDE],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,o)=>{d(`tilde`,e,t,n,i,a,o);let s;return O(n)?s=``:O(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:O(a)?s=`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:o?(d(`replaceTilde pr`,o),s=`>=${n}.${i}.${a}-${o} <${n}.${+i+1}.0-0`):s=`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`,d(`tilde return`,s),s})},M=(e,t)=>e.trim().split(/\s+/).map(e=>N(e,t)).join(` `),N=(e,t)=>{d(`caret`,e,t);let n=t.loose?p[h.CARETLOOSE]:p[h.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,o)=>{d(`caret`,e,t,n,i,a,o);let s;return O(n)?s=``:O(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:O(a)?s=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:o?(d(`replaceCaret pr`,o),s=n===`0`?i===`0`?`>=${n}.${i}.${a}-${o} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${o} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${o} <${+n+1}.0.0-0`):(d(`no pr`),s=n===`0`?i===`0`?`>=${n}.${i}.${a} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),d(`caret return`,s),s})},P=(e,t)=>(d(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>F(e,t)).join(` `)),F=(e,t)=>{e=e.trim();let n=t.loose?p[h.XRANGELOOSE]:p[h.XRANGE];return e.replace(n,(n,r,i,a,o,s)=>{if(d(`xRange`,e,n,r,i,a,o,s),k(i,a,o))return e;let c=O(i),l=c||O(a),u=l||O(o),f=u;return r===`=`&&f&&(r=``),s=t.includePrerelease?`-0`:``,c?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(l&&(a=0),o=0,r===`>`?(r=`>=`,l?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):r===`<=`&&(r=`<`,l?i=+i+1:a=+a+1),r===`<`&&(s=`-0`),n=`${r+i}.${a}.${o}${s}`):l?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:u&&(n=`>=${i}.${a}.0${s} <${i}.${+a+1}.0-0`),d(`xRange return`,n),n})},I=(e,t)=>(d(`replaceStars`,e,t),e.trim().replace(p[h.STAR],``)),L=(e,t)=>(d(`replaceGTE0`,e,t),e.trim().replace(p[t.includePrerelease?h.GTE0PRE:h.GTE0],``)),R=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=O(r)?``:O(i)?`>=${r}.0.0${e?`-0`:``}`:O(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=O(l)?``:O(u)?`<${+l+1}.0.0-0`:O(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),z=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(d(e[n].semver),e[n].semver!==u.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),T=e(t(((e,t)=>{let n=w();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}}))(),1);function E(e){let t=f(e);if(t.length===0)throw A(e),new r(1);if(t.length>1)throw j(t),new r(1);let[n]=t;if(!n)throw new r(1);if(!n.binary)throw M(n),new r(1);if(n.impl.versionConstraint!==void 0&&!D(n.installedVersion,n.impl.versionConstraint.range))throw O(n),new r(1);return n}function D(e,t){return e!==void 0&&(0,T.default)(e,t,{includePrerelease:!0})}function O(e){console.error(`\n${n.bold(e.impl.pkg)}@${e.installedVersion??`unknown`} is installed, but it is not compatible with cf's local runtime.\n\n`+k(e)+`Try: ${e.impl.installHint}`)}function k(e){let t=e.impl.versionConstraint?.display??`a compatible version`;return`cf requires ${n.bold(t)} for ${n.bold(`cf dev`)}, ${n.bold(`cf build`)}, ${n.bold(`cf deploy`)}, and ${n.bold(`cf previews deploy`)}.\n`}function A(e){console.error(`
3
3
  No Cloudflare dev-server is installed in this project.
4
4
 
5
5
  A project must declare exactly one of the following in its manifest:
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-CPVzoKbN.mjs";import{r as t}from"./auth-B_Utev-x.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-DS2fwfNP.mjs";import{t as a}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,n as u}from"./prompt-doX80PCd.mjs";import{t as d}from"./cli-types-DoVT5q_M.mjs";function f(e){return e.usage(`$0 spectrum analytics aggregates currents get
2
+ import{i as e}from"./context-CE7QFX-z.mjs";import{r as t}from"./auth-gOCL6Pm0.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-CRjK46r1.mjs";import{t as a}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,n as u}from"./prompt-C_90YsVE.mjs";import{t as d}from"./cli-types-DoVT5q_M.mjs";function f(e){return e.usage(`$0 spectrum analytics aggregates currents get
3
3
 
4
4
  Retrieves analytics aggregated from the last minute of usage on Spectrum applications underneath a given zone.`).option(`app-id`,{type:`string`,description:`Comma-delimited list of Spectrum Application Id(s). If provided, the response will be limited to Spectrum Application Id(s) that match.`}).option(`colo-name`,{type:`string`,description:`Co-location identifier.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`get`,describe:`Get current aggregated analytics`,builder:f,handler:async o=>a({command:`spectrum analytics aggregates currents get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{let a={appID:o[`app-id`],colo_name:o[`colo-name`]};if(o.dryRun){r({command:`cf spectrum analytics aggregates currents get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/spectrum/analytics/aggregate/current`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.spectrum.analytics.aggregates.currents.get({zone_id:c,...a})),{successLabel:`Loaded`})})},m={command:`currents`,describe:`Operations for analytics.aggregates.currents`,builder:e=>e.command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},h={command:`aggregates`,describe:`Operations for analytics.aggregates`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e){return e.usage(`$0 spectrum analytics events bytimes get
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-CPVzoKbN.mjs";import{r as t}from"./auth-B_Utev-x.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-DS2fwfNP.mjs";import{t as a}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as o}from"./body-parser-hh2avzkz.mjs";import{n as s}from"./prompt-doX80PCd.mjs";import{t as c}from"./cli-types-DoVT5q_M.mjs";function l(e){return e.usage(`$0 speed availabilities list
2
+ import{i as e}from"./context-CE7QFX-z.mjs";import{r as t}from"./auth-gOCL6Pm0.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-CRjK46r1.mjs";import{t as a}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as o}from"./body-parser-hh2avzkz.mjs";import{n as s}from"./prompt-C_90YsVE.mjs";import{t as c}from"./cli-types-DoVT5q_M.mjs";function l(e){return e.usage(`$0 speed availabilities list
3
3
 
4
4
  Retrieves quota for all plans, as well as the current zone quota.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`list`,describe:`Get quota and availability`,builder:l,handler:async o=>a({command:`speed availabilities list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf speed availabilities list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/availabilities`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.speed.availabilities.list({zone_id:s})),{successLabel:`Loaded`})})},d={command:`availabilities`,describe:`Check which speed test regions and configurations are available for your zone`,builder:e=>e.command(u).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function f(e){return e.usage(`$0 speed pages list
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e,n as t}from"./source-38bULAR8.mjs";import{n,t as r}from"./ansi-styles-eKEZXVwN.mjs";import{t as i}from"./lazy-command-BOjQB_U7.mjs";import{n as a}from"./metadata-C33s4rc-.mjs";import{r as o}from"./theme-BIWQFmZ0.mjs";import{t as s}from"./agent-context-GRiQ4zRU.mjs";import{t as c}from"./args-CXgkQKK7.mjs";import{t as l}from"./cli-exit-Dqoo6Jgb.mjs";import{n as u,t as d}from"./dotenv-CcQjGlV0.mjs";import{r as f}from"./sdk-Bx29ZKK3.mjs";import{at as p}from"./dist-DfMipWKR.mjs";import{n as m}from"./version-DyZwKU6l.mjs";import{n as h,t as g}from"./banner-ClclgnBn.mjs";import{n as ee,t as _}from"./session-CjQFm10R.mjs";import{t as v}from"./ui-BQxRjahW.mjs";import{i as y}from"./local-B3OyWKkW.mjs";import{a as te}from"./project-settings-DO6njFg_.mjs";import{a as ne,n as re,t as b}from"./lifecycle-C7tAC1Mn.mjs";import{createRequire as x}from"node:module";import{setTimeout as S}from"node:timers/promises";import{notStrictEqual as ie,strictEqual as C}from"assert";import{basename as ae,dirname as oe,extname as se,join as ce,normalize as le,relative as ue,resolve as w}from"path";import{readFileSync as de,readdirSync as fe,statSync as pe,writeFile as T}from"fs";import{format as me,inspect as he}from"util";import{fileURLToPath as ge}from"url";import{readFileSync as _e,readdirSync as ve}from"node:fs";const ye={right:Ce,center:we};var be=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(`
2
+ import{i as e,n as t}from"./source-38bULAR8.mjs";import{n,t as r}from"./ansi-styles-eKEZXVwN.mjs";import{t as i}from"./lazy-command-g04RHlS2.mjs";import{n as a}from"./metadata-C33s4rc-.mjs";import{r as o}from"./theme-BIWQFmZ0.mjs";import{t as s}from"./agent-context-GRiQ4zRU.mjs";import{t as c}from"./args-CXgkQKK7.mjs";import{t as l}from"./cli-exit-Dqoo6Jgb.mjs";import{n as u,t as d}from"./dotenv-CcQjGlV0.mjs";import{r as f}from"./sdk-Bmz7t_CD.mjs";import{at as p}from"./dist-DfMipWKR.mjs";import{n as m}from"./version-C3q1GMTe.mjs";import{n as h,t as g}from"./banner-ClclgnBn.mjs";import{n as ee,t as _}from"./session-CjQFm10R.mjs";import{t as v}from"./ui-BQxRjahW.mjs";import{i as y}from"./local-Cyk8fPvL.mjs";import{a as te}from"./project-settings-DO6njFg_.mjs";import{a as ne,n as re,t as b}from"./lifecycle-C7tAC1Mn.mjs";import{createRequire as x}from"node:module";import{setTimeout as S}from"node:timers/promises";import{notStrictEqual as ie,strictEqual as C}from"assert";import{basename as ae,dirname as oe,extname as se,join as ce,normalize as le,relative as ue,resolve as w}from"path";import{readFileSync as de,readdirSync as fe,statSync as pe,writeFile as T}from"fs";import{format as me,inspect as he}from"util";import{fileURLToPath as ge}from"url";import{readFileSync as _e,readdirSync as ve}from"node:fs";const ye={right:Ce,center:we};var be=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&&D.stringWidth(e[0])>n&&(n=Math.min(Math.floor(this.width*.5),D.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=D.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>D.stringWidth(n)&&(c+=` `.repeat(s-D.stringWidth(n))),e[a].align&&e[a].align!==`left`&&this.wrap){let t=ye[e[a].align];c=t(c,s),D.stringWidth(c)<s&&(c+=` `.repeat((o||0)-D.stringWidth(c)-1))}let l=e[a].padding||[0,0,0,0];l[3]&&(i+=` `.repeat(l[3])),i+=xe(e[a],c,`| `),i+=c,i+=xe(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=D.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?D.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=>{!cn.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=>{cn.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){P(`<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)):(j(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){P(`<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=sn(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=Jt(o,t=>!e[t]),c=Jt(c,t=>!e[t]),a};let l=[];return a.freeze=function(){l.push({implied:o,conflicting:c})},a.unfreeze=function(){let e=l.pop();j(e,void 0,n),{implied:o,conflicting:c}=e},a}let un=[],dn;function fn(e,t,n,r){dn=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=mn(t,e.extends);else try{o=import.meta.resolve(e.extends)}catch{return e}pn(o),un.push(o),i=a?JSON.parse(dn.readFileSync(o,`utf8`)):r.require(e.extends),delete e.extends,i=fn(i,dn.path.dirname(o),n,dn)}return un=[],n?hn(i,e):Object.assign({},i,e)}function pn(e){if(un.indexOf(e)>-1)throw new N(`Circular extended configurations: '${e}'.`)}function mn(e,t){return dn.path.resolve(e,t)}function hn(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]=hn(e[i],t[i]):n[i]=t[i];return n}var F=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},I=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)},L,gn,_n,R,z,vn,B,yn,bn,V,xn,H,U,W,G,Sn,Cn,K,q,wn,Tn,J,En,Dn,On,Y,kn,X,An,jn,Mn,Z,Nn,Q,$;function Pn(e){return(t=[],n=e.process.cwd(),r)=>{let i=new _r(t,n,r,e);return Object.defineProperty(i,`argv`,{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}const Fn=Symbol(`copyDoubleDash`),In=Symbol(`copyDoubleDash`),Ln=Symbol(`deleteFromParserHintObject`),Rn=Symbol(`emitWarning`),zn=Symbol(`freeze`),Bn=Symbol(`getDollarZero`),Vn=Symbol(`getParserConfiguration`),Hn=Symbol(`getUsageConfiguration`),Un=Symbol(`guessLocale`),Wn=Symbol(`guessVersion`),Gn=Symbol(`parsePositionalNumbers`),Kn=Symbol(`pkgUp`),qn=Symbol(`populateParserHintArray`),Jn=Symbol(`populateParserHintSingleValueDictionary`),Yn=Symbol(`populateParserHintArrayDictionary`),Xn=Symbol(`populateParserHintDictionary`),Zn=Symbol(`sanitizeKey`),Qn=Symbol(`setKey`),$n=Symbol(`unfreeze`),er=Symbol(`validateAsync`),tr=Symbol(`getCommandInstance`),nr=Symbol(`getContext`),rr=Symbol(`getHasOutput`),ir=Symbol(`getLoggerInstance`),ar=Symbol(`getParseContext`),or=Symbol(`getUsageInstance`),sr=Symbol(`getValidationInstance`),cr=Symbol(`hasParseCallback`),lr=Symbol(`isGlobalContext`),ur=Symbol(`postProcess`),dr=Symbol(`rebase`),fr=Symbol(`reset`),pr=Symbol(`runYargsParserAndExecuteCommands`),mr=Symbol(`runValidation`),hr=Symbol(`setHasOutput`),gr=Symbol(`kTrackManuallySetKeys`);var _r=class{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,L.set(this,void 0),gn.set(this,void 0),_n.set(this,{commands:[],fullCommands:[]}),R.set(this,null),z.set(this,null),vn.set(this,`show-hidden`),B.set(this,null),yn.set(this,!0),bn.set(this,{}),V.set(this,!0),xn.set(this,[]),H.set(this,void 0),U.set(this,{}),W.set(this,!1),G.set(this,null),Sn.set(this,!0),Cn.set(this,void 0),K.set(this,``),q.set(this,void 0),wn.set(this,void 0),Tn.set(this,{}),J.set(this,null),En.set(this,null),Dn.set(this,{}),On.set(this,{}),Y.set(this,void 0),kn.set(this,!1),X.set(this,void 0),An.set(this,!1),jn.set(this,!1),Mn.set(this,!1),Z.set(this,void 0),Nn.set(this,{}),Q.set(this,null),$.set(this,void 0),F(this,X,r,`f`),F(this,Y,e,`f`),F(this,gn,t,`f`),F(this,wn,n,`f`),F(this,H,new Ft(this),`f`),this.$0=this[Bn](),this[fr](),F(this,L,I(this,L,`f`),`f`),F(this,Z,I(this,Z,`f`),`f`),F(this,$,I(this,$,`f`),`f`),F(this,q,I(this,q,`f`),`f`),I(this,q,`f`).showHiddenOpt=I(this,vn,`f`),F(this,Cn,this[In](),`f`),I(this,X,`f`).y18n.setLocale(`en_US`)}addHelpOpt(e,t){return P(`[string|boolean] [string]`,[e,t],arguments.length),I(this,G,`f`)&&(this[Ln](I(this,G,`f`)),F(this,G,null,`f`)),e===!1&&t===void 0?this:(F(this,G,typeof e==`string`?e:`help`,`f`),this.boolean(I(this,G,`f`)),this.describe(I(this,G,`f`),t||I(this,Z,`f`).deferY18nLookup(`Show help`)),this)}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(P(`[string|boolean] [string]`,[e,t],arguments.length),e===!1&&t===void 0)return this;let n=typeof e==`string`?e:I(this,vn,`f`);return this.boolean(n),this.describe(n,t||I(this,Z,`f`).deferY18nLookup(`Show hidden options`)),I(this,q,`f`).showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return P(`<object|string|array> [string|array]`,[e,t],arguments.length),this[Yn](this.alias.bind(this),`alias`,e,t),this}array(e){return P(`<array|string>`,[e],arguments.length),this[qn](`array`,e),this[gr](e),this}boolean(e){return P(`<array|string>`,[e],arguments.length),this[qn](`boolean`,e),this[gr](e),this}check(e,t){return P(`<function> [boolean]`,[e,t],arguments.length),this.middleware((t,n)=>Rt(()=>e(t,n.getOptions()),n=>(n?(typeof n==`string`||n instanceof Error)&&I(this,Z,`f`).fail(n.toString(),n):I(this,Z,`f`).fail(I(this,X,`f`).y18n.__(`Argument check failed: %s`,e.toString())),t),e=>(I(this,Z,`f`).fail(e.message?e.message:e.toString(),e),t)),!1,t),this}choices(e,t){return P(`<object|string|array> [string|array]`,[e,t],arguments.length),this[Yn](this.choices.bind(this),`choices`,e,t),this}coerce(e,t){if(P(`<object|string|array> [function]`,[e,t],arguments.length),Array.isArray(e)){if(!t)throw new N(`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 N(`coerce callback must be provided`);let n=e;return I(this,q,`f`).key[n]=!0,I(this,H,`f`).addCoerceMiddleware((e,r)=>{let i=[n,...r.getAliases()[n]??[]].filter(t=>Object.prototype.hasOwnProperty.call(e,t));return i.length===0?e:Rt(()=>t(e[i[0]]),t=>(i.forEach(n=>{e[n]=t}),e),e=>{throw new N(e.message)})},n),this}conflicts(e,t){return P(`<string|object> [string|array]`,[e,t],arguments.length),I(this,$,`f`).conflicts(e,t),this}config(e=`config`,t,n){return P(`[object|string] [string|function] [function]`,[e,t,n],arguments.length),typeof e==`object`&&!Array.isArray(e)?(e=fn(e,I(this,gn,`f`),this[Vn]()[`deep-merge-config`]||!1,I(this,X,`f`)),I(this,q,`f`).configObjects=(I(this,q,`f`).configObjects||[]).concat(e),this):(typeof t==`function`&&(n=t,t=void 0),this.describe(e,t||I(this,Z,`f`).deferY18nLookup(`Path to JSON config file`)),(Array.isArray(e)?e:[e]).forEach(e=>{I(this,q,`f`).config[e]=n||!0}),this)}completion(e,t,n){return P(`[string] [string|boolean|function] [function]`,[e,t,n],arguments.length),typeof t==`function`&&(n=t,t=void 0),F(this,z,e||I(this,z,`f`)||`completion`,`f`),!t&&t!==!1&&(t=`generate completion script`),this.command(I(this,z,`f`),t),n&&I(this,R,`f`).registerFunction(n),this}command(e,t,n,r,i,a){return P(`<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]`,[e,t,n,r,i,a],arguments.length),I(this,L,`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){P(`<string> [object]`,[e,t],arguments.length);let n=I(this,wn,`f`)||I(this,X,`f`).require;return I(this,L,`f`).addDirectory(e,n,I(this,X,`f`).getCallerFile(),t),this}count(e){return P(`<array|string>`,[e],arguments.length),this[qn](`count`,e),this[gr](e),this}default(e,t,n){return P(`<object|string|array> [*] [string]`,[e,t,n],arguments.length),n&&(kt(e,I(this,X,`f`)),I(this,q,`f`).defaultDescription[e]=n),typeof t==`function`&&(kt(e,I(this,X,`f`)),I(this,q,`f`).defaultDescription[e]||(I(this,q,`f`).defaultDescription[e]=I(this,Z,`f`).functionDescription(t)),t=t.call()),this[Jn](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 P(`[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),I(this,q,`f`).demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach(e=>{j(n,!0,I(this,X,`f`)),this.demandOption(e,n)}),t=1/0):typeof t!=`number`&&(n=t,t=1/0),typeof e==`number`?(j(n,!0,I(this,X,`f`)),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach(e=>{j(n,!0,I(this,X,`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 P(`<object|string|array> [string]`,[e,t],arguments.length),this[Jn](this.demandOption.bind(this),`demandedOptions`,e,t),this}deprecateOption(e,t){return P(`<string> [string|boolean]`,[e,t],arguments.length),I(this,q,`f`).deprecatedOptions[e]=t,this}describe(e,t){return P(`<object|string|array> [string]`,[e,t],arguments.length),this[Qn](e,!0),I(this,Z,`f`).describe(e,t),this}detectLocale(e){return P(`<boolean>`,[e],arguments.length),F(this,yn,e,`f`),this}env(e){return P(`[string|boolean]`,[e],arguments.length),e===!1?delete I(this,q,`f`).envPrefix:I(this,q,`f`).envPrefix=e||``,this}epilogue(e){return P(`<string>`,[e],arguments.length),I(this,Z,`f`).epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return P(`<string|array> [string]`,[e,t],arguments.length),Array.isArray(e)?e.forEach(e=>this.example(...e)):I(this,Z,`f`).example(e,t),this}exit(e,t){F(this,W,!0,`f`),F(this,B,t,`f`),I(this,V,`f`)&&I(this,X,`f`).process.exit(e)}exitProcess(e=!0){return P(`[boolean]`,[e],arguments.length),F(this,V,e,`f`),this}fail(e){if(P(`<function|boolean>`,[e],arguments.length),typeof e==`boolean`&&e!==!1)throw new N(`Invalid first argument. Expected function or boolean 'false'`);return I(this,Z,`f`).failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return P(`<array> [function]`,[e,t],arguments.length),t?I(this,R,`f`).getCompletion(e,t):new Promise((t,n)=>{I(this,R,`f`).getCompletion(e,(e,r)=>{e?n(e):t(r)})})}getDemandedOptions(){return P([],0),I(this,q,`f`).demandedOptions}getDemandedCommands(){return P([],0),I(this,q,`f`).demandedCommands}getDeprecatedOptions(){return P([],0),I(this,q,`f`).deprecatedOptions}getDetectLocale(){return I(this,yn,`f`)}getExitProcess(){return I(this,V,`f`)}getGroups(){return Object.assign({},I(this,U,`f`),I(this,On,`f`))}getHelp(){if(F(this,W,!0,`f`),!I(this,Z,`f`).hasCachedHelpMessage()){if(!this.parsed){let e=this[pr](I(this,Y,`f`),void 0,void 0,0,!0);if(M(e))return e.then(()=>I(this,Z,`f`).help())}let e=I(this,L,`f`).runDefaultBuilderOn(this);if(M(e))return e.then(()=>I(this,Z,`f`).help())}return Promise.resolve(I(this,Z,`f`).help())}getOptions(){return I(this,q,`f`)}getStrict(){return I(this,An,`f`)}getStrictCommands(){return I(this,jn,`f`)}getStrictOptions(){return I(this,Mn,`f`)}global(e,t){return P(`<string|array> [boolean]`,[e,t],arguments.length),e=[].concat(e),t===!1?e.forEach(e=>{I(this,q,`f`).local.includes(e)||I(this,q,`f`).local.push(e)}):I(this,q,`f`).local=I(this,q,`f`).local.filter(t=>e.indexOf(t)===-1),this}group(e,t){P(`<string|array> <string>`,[e,t],arguments.length);let n=I(this,On,`f`)[t]||I(this,U,`f`)[t];I(this,On,`f`)[t]&&delete I(this,On,`f`)[t];let r={};return I(this,U,`f`)[t]=(n||[]).concat(e).filter(e=>r[e]?!1:r[e]=!0),this}hide(e){return P(`<string>`,[e],arguments.length),I(this,q,`f`).hiddenOptions.push(e),this}implies(e,t){return P(`<string|object> [number|string|array]`,[e,t],arguments.length),I(this,$,`f`).implies(e,t),this}locale(e){return P(`[string]`,[e],arguments.length),e===void 0?(this[Un](),I(this,X,`f`).y18n.getLocale()):(F(this,yn,!1,`f`),I(this,X,`f`).y18n.setLocale(e),this)}middleware(e,t,n){return I(this,H,`f`).addMiddleware(e,!!t,n)}nargs(e,t){return P(`<string|object|array> [number]`,[e,t],arguments.length),this[Jn](this.nargs.bind(this),`narg`,e,t),this}normalize(e){return P(`<array|string>`,[e],arguments.length),this[qn](`normalize`,e),this}number(e){return P(`<array|string>`,[e],arguments.length),this[qn](`number`,e),this[gr](e),this}option(e,t){if(P(`<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[gr](e),I(this,Q,`f`)&&(e===`version`||t?.alias===`version`)&&this[Rn]([`"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`),I(this,q,`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&&(I(this,q,`f`).defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);let i=t.describe||t.description||t.desc,a=I(this,Z,`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){P(`[string|array] [function|boolean|object] [function]`,[e,t,n],arguments.length),this[zn](),e===void 0&&(e=I(this,Y,`f`)),typeof t==`object`&&(F(this,En,t,`f`),t=n),typeof t==`function`&&(F(this,J,t,`f`),t=!1),t||F(this,Y,e,`f`),I(this,J,`f`)&&F(this,V,!1,`f`);let r=this[pr](e,!!t),i=this.parsed;return I(this,R,`f`).setParsed(this.parsed),M(r)?r.then(e=>(I(this,J,`f`)&&I(this,J,`f`).call(this,I(this,B,`f`),e,I(this,K,`f`)),e)).catch(e=>{throw I(this,J,`f`)&&I(this,J,`f`)(e,this.parsed.argv,I(this,K,`f`)),e}).finally(()=>{this[$n](),this.parsed=i}):(I(this,J,`f`)&&I(this,J,`f`).call(this,I(this,B,`f`),r,I(this,K,`f`)),this[$n](),this.parsed=i,r)}parseAsync(e,t,n){let r=this.parse(e,t,n);return M(r)?r:Promise.resolve(r)}parseSync(e,t,n){let r=this.parse(e,t,n);if(M(r))throw new N(`.parseSync() must not be used with asynchronous builders, handlers, or middleware`);return r}parserConfiguration(e){return P(`<object>`,[e],arguments.length),F(this,Tn,e,`f`),this}pkgConf(e,t){P(`<string> [string]`,[e,t],arguments.length);let n=null,r=this[Kn](t||I(this,gn,`f`));return r[e]&&typeof r[e]==`object`&&(n=fn(r[e],t||I(this,gn,`f`),this[Vn]()[`deep-merge-config`]||!1,I(this,X,`f`)),I(this,q,`f`).configObjects=(I(this,q,`f`).configObjects||[]).concat(n)),this}positional(e,t){P(`<string> <object>`,[e,t],arguments.length);let n=[`default`,`defaultDescription`,`implies`,`normalize`,`choices`,`conflicts`,`coerce`,`type`,`describe`,`desc`,`description`,`alias`];t=Jt(t,(e,t)=>e===`type`&&![`string`,`number`,`boolean`].includes(t)?!1:n.includes(e));let r=I(this,_n,`f`).fullCommands[I(this,_n,`f`).fullCommands.length-1],i=r?I(this,L,`f`).cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return At(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,I(this,Z,`f`).getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return P(`[boolean]`,[e],arguments.length),F(this,kn,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 P(`<array|string|object> [number]`,[e],arguments.length),typeof e==`string`&&I(this,q,`f`).narg[e]||this[Jn](this.requiresArg.bind(this),`narg`,e,NaN),this}showCompletionScript(e,t){return P(`[string] [string]`,[e,t],arguments.length),e||=this.$0,I(this,Cn,`f`).log(I(this,R,`f`).generateCompletionScript(e,t||I(this,z,`f`)||`completion`)),this}showHelp(e){if(P(`[string|function]`,[e],arguments.length),F(this,W,!0,`f`),!I(this,Z,`f`).hasCachedHelpMessage()){if(!this.parsed){let t=this[pr](I(this,Y,`f`),void 0,void 0,0,!0);if(M(t))return t.then(()=>{I(this,Z,`f`).showHelp(e)}),this}let t=I(this,L,`f`).runDefaultBuilderOn(this);if(M(t))return t.then(()=>{I(this,Z,`f`).showHelp(e)}),this}return I(this,Z,`f`).showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return P(`[boolean|string] [string]`,[e,t],arguments.length),I(this,Z,`f`).showHelpOnFail(e,t),this}showVersion(e){return P(`[string|function]`,[e],arguments.length),I(this,Z,`f`).showVersion(e),this}skipValidation(e){return P(`<array|string>`,[e],arguments.length),this[qn](`skipValidation`,e),this}strict(e){return P(`[boolean]`,[e],arguments.length),F(this,An,e!==!1,`f`),this}strictCommands(e){return P(`[boolean]`,[e],arguments.length),F(this,jn,e!==!1,`f`),this}strictOptions(e){return P(`[boolean]`,[e],arguments.length),F(this,Mn,e!==!1,`f`),this}string(e){return P(`<array|string>`,[e],arguments.length),this[qn](`string`,e),this[gr](e),this}terminalWidth(){return P([],0),I(this,X,`f`).process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return P(`<object>`,[e],arguments.length),F(this,yn,!1,`f`),I(this,X,`f`).y18n.updateLocale(e),this}usage(e,t,n,r){if(P(`<string|null|undefined> [string|boolean] [function|object] [function]`,[e,t,n,r],arguments.length),t!==void 0){if(j(e,null,I(this,X,`f`)),(e||``).match(/^\$0( |$)/))return this.command(e,t,n,r);throw new N(`.usage() description must start with $0 if being used as alias for .command()`)}else return I(this,Z,`f`).usage(e),this}usageConfiguration(e){return P(`<object>`,[e],arguments.length),F(this,Nn,e,`f`),this}version(e,t,n){let r=`version`;if(P(`[boolean|string] [string] [string]`,[e,t,n],arguments.length),I(this,Q,`f`)&&(this[Ln](I(this,Q,`f`)),I(this,Z,`f`).version(void 0),F(this,Q,null,`f`)),arguments.length===0)n=this[Wn](),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 F(this,Q,typeof e==`string`?e:r,`f`),t||=I(this,Z,`f`).deferY18nLookup(`Show version number`),I(this,Z,`f`).version(n||void 0),this.boolean(I(this,Q,`f`)),this.describe(I(this,Q,`f`),t),this}wrap(e){return P(`<number|null|undefined>`,[e],arguments.length),I(this,Z,`f`).wrap(e),this}[(L=new WeakMap,gn=new WeakMap,_n=new WeakMap,R=new WeakMap,z=new WeakMap,vn=new WeakMap,B=new WeakMap,yn=new WeakMap,bn=new WeakMap,V=new WeakMap,xn=new WeakMap,H=new WeakMap,U=new WeakMap,W=new WeakMap,G=new WeakMap,Sn=new WeakMap,Cn=new WeakMap,K=new WeakMap,q=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,An=new WeakMap,jn=new WeakMap,Mn=new WeakMap,Z=new WeakMap,Nn=new WeakMap,Q=new WeakMap,$=new WeakMap,Fn)](e){if(!e._||!e[`--`])return e;e._.push.apply(e._,e[`--`]);try{delete e[`--`]}catch{}return e}[In](){return{log:(...e)=>{this[cr]()||console.log(...e),F(this,W,!0,`f`),I(this,K,`f`).length&&F(this,K,I(this,K,`f`)+`
97
97
  `,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)},error:(...e)=>{this[cr]()||console.error(...e),F(this,W,!0,`f`),I(this,K,`f`).length&&F(this,K,I(this,K,`f`)+`
98
- `,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)}}}[Ln](e){At(I(this,q,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=I(this,q,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete I(this,Z,`f`).getDescriptions()[e]}[Rn](e,t,n){I(this,bn,`f`)[n]||(I(this,X,`f`).process.emitWarning(e,t),I(this,bn,`f`)[n]=!0)}[zn](){I(this,xn,`f`).push({options:I(this,q,`f`),configObjects:I(this,q,`f`).configObjects.slice(0),exitProcess:I(this,V,`f`),groups:I(this,U,`f`),strict:I(this,An,`f`),strictCommands:I(this,jn,`f`),strictOptions:I(this,Mn,`f`),completionCommand:I(this,z,`f`),output:I(this,K,`f`),exitError:I(this,B,`f`),hasOutput:I(this,W,`f`),parsed:this.parsed,parseFn:I(this,J,`f`),parseContext:I(this,En,`f`)}),I(this,Z,`f`).freeze(),I(this,$,`f`).freeze(),I(this,L,`f`).freeze(),I(this,H,`f`).freeze()}[Bn](){let e=``,t;return t=/\b(node|iojs|electron)(\.exe)?$/.test(I(this,X,`f`).process.argv()[0])?I(this,X,`f`).process.argv().slice(1,2):I(this,X,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[dr](I(this,gn,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),I(this,X,`f`).getEnv(`_`)&&I(this,X,`f`).getProcessArgvBin()===I(this,X,`f`).getEnv(`_`)&&(e=I(this,X,`f`).getEnv(`_`).replace(`${I(this,X,`f`).path.dirname(I(this,X,`f`).process.execPath())}/`,``)),e}[Vn](){return I(this,Tn,`f`)}[Hn](){return I(this,Nn,`f`)}[Un](){if(!I(this,yn,`f`))return;let e=I(this,X,`f`).getEnv(`LC_ALL`)||I(this,X,`f`).getEnv(`LC_MESSAGES`)||I(this,X,`f`).getEnv(`LANG`)||I(this,X,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[Wn](){return this[Kn]().version||`unknown`}[Gn](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)I(this,X,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[Kn](e){let t=e||`*`;if(I(this,Dn,`f`)[t])return I(this,Dn,`f`)[t];let n={};try{let t=e||I(this,X,`f`).mainFilename;I(this,X,`f`).path.extname(t)&&(t=I(this,X,`f`).path.dirname(t));let r=I(this,X,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});j(r,void 0,I(this,X,`f`)),n=JSON.parse(I(this,X,`f`).readFileSync(r,`utf8`))}catch{}return I(this,Dn,`f`)[t]=n||{},I(this,Dn,`f`)[t]}[qn](e,t){t=[].concat(t),t.forEach(t=>{t=this[Zn](t),I(this,q,`f`)[e].push(t)})}[Jn](e,t,n,r){this[Xn](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=n})}[Yn](e,t,n,r){this[Xn](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=(I(this,q,`f`)[e][t]||[]).concat(n)})}[Xn](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 At(n))e(t,n[t]);else i(t,this[Zn](n),r)}[Zn](e){return e===`__proto__`?`___proto___`:e}[Qn](e,t){return this[Jn](this[Qn].bind(this),`key`,e,t),this}[$n](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=I(this,xn,`f`).pop();j(f,void 0,I(this,X,`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){F(e,q,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){F(t,V,e,`f`)}}.value,groups:{set value(e){F(n,U,e,`f`)}}.value,output:{set value(e){F(r,K,e,`f`)}}.value,exitError:{set value(e){F(i,B,e,`f`)}}.value,hasOutput:{set value(e){F(a,W,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){F(o,An,e,`f`)}}.value,strictCommands:{set value(e){F(s,jn,e,`f`)}}.value,strictOptions:{set value(e){F(c,Mn,e,`f`)}}.value,completionCommand:{set value(e){F(l,z,e,`f`)}}.value,parseFn:{set value(e){F(u,J,e,`f`)}}.value,parseContext:{set value(e){F(d,En,e,`f`)}}.value}=f,I(this,q,`f`).configObjects=p,I(this,Z,`f`).unfreeze(),I(this,$,`f`).unfreeze(),I(this,L,`f`).unfreeze(),I(this,H,`f`).unfreeze()}[er](e,t){return Rt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[tr].bind(this),getContext:this[nr].bind(this),getHasOutput:this[rr].bind(this),getLoggerInstance:this[ir].bind(this),getParseContext:this[ar].bind(this),getParserConfiguration:this[Vn].bind(this),getUsageConfiguration:this[Hn].bind(this),getUsageInstance:this[or].bind(this),getValidationInstance:this[sr].bind(this),hasParseCallback:this[cr].bind(this),isGlobalContext:this[lr].bind(this),postProcess:this[ur].bind(this),reset:this[fr].bind(this),runValidation:this[mr].bind(this),runYargsParserAndExecuteCommands:this[pr].bind(this),setHasOutput:this[hr].bind(this)}}[tr](){return I(this,L,`f`)}[nr](){return I(this,_n,`f`)}[rr](){return I(this,W,`f`)}[ir](){return I(this,Cn,`f`)}[ar](){return I(this,En,`f`)||{}}[or](){return I(this,Z,`f`)}[sr](){return I(this,$,`f`)}[cr](){return!!I(this,J,`f`)}[lr](){return I(this,Sn,`f`)}[ur](e,t,n,r){return n||M(e)?e:(t||(e=this[Fn](e)),(this[Vn]()[`parse-positional-numbers`]||this[Vn]()[`parse-positional-numbers`]===void 0)&&(e=this[Gn](e)),r&&(e=Lt(e,this,I(this,H,`f`).getMiddleware(),!1)),e)}[fr](e={}){F(this,q,I(this,q,`f`)||{},`f`);let t={};t.local=I(this,q,`f`).local||[],t.configObjects=I(this,q,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(I(this,On,`f`),Object.keys(I(this,U,`f`)).reduce((e,t)=>{let r=I(this,U,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),F(this,U,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(I(this,q,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=Jt(I(this,q,`f`)[e],e=>!n[e])}),t.envPrefix=I(this,q,`f`).envPrefix,F(this,q,t,`f`),F(this,Z,I(this,Z,`f`)?I(this,Z,`f`).reset(n):Zt(this,I(this,X,`f`)),`f`),F(this,$,I(this,$,`f`)?I(this,$,`f`).reset(n):ln(this,I(this,Z,`f`),I(this,X,`f`)),`f`),F(this,L,I(this,L,`f`)?I(this,L,`f`).reset():Ht(I(this,Z,`f`),I(this,$,`f`),I(this,H,`f`),I(this,X,`f`)),`f`),I(this,R,`f`)||F(this,R,rn(this,I(this,Z,`f`),I(this,L,`f`),I(this,X,`f`)),`f`),I(this,H,`f`).reset(),F(this,z,null,`f`),F(this,K,``,`f`),F(this,B,null,`f`),F(this,W,!1,`f`),this.parsed=!1,this}[dr](e,t){return I(this,X,`f`).path.relative(e,t)}[pr](e,t,n,r=0,i=!1){let a=!!n||i;e||=I(this,Y,`f`),I(this,q,`f`).__=I(this,X,`f`).y18n.__,I(this,q,`f`).configuration=this[Vn]();let o=!!I(this,q,`f`).configuration[`populate--`],s=Object.assign({},I(this,q,`f`).configuration,{"populate--":!0}),c=I(this,X,`f`).Parser.detailed(e,Object.assign({},I(this,q,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,I(this,En,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===I(this,G,`f`)&&l[e]?f=!0:e===I(this,Q,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&I(this,Z,`f`).clearCachedHelpMessage();try{if(this[Un](),t)return this[ur](l,o,!!n,!1);I(this,G,`f`)&&[I(this,G,`f`)].concat(d[I(this,G,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),F(this,Sn,!1,`f`);let s=I(this,L,`f`).getCommands(),m=I(this,R,`f`)?.completionKey?[I(this,R,`f`)?.completionKey,...this.getAliases()[I(this,R,`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!==I(this,z,`f`)){let e=I(this,L,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[ur](e,o,!!n,!1)}else if(!e&&a!==I(this,z,`f`)){e=a;break}!I(this,L,`f`).hasDefaultCommand()&&I(this,kn,`f`)&&e&&!h&&I(this,$,`f`).recommendCommands(e,s)}I(this,z,`f`)&&l._.includes(I(this,z,`f`))&&!m&&(I(this,V,`f`)&&Yt(!0),this.showCompletionScript(),this.exit(0))}if(I(this,L,`f`).hasDefaultCommand()&&!h){let e=I(this,L,`f`).runCommand(null,this,c,0,i,f||p||i);return this[ur](e,o,!!n,!1)}if(m){I(this,V,`f`)&&Yt(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${I(this,R,`f`).completionKey}`)+1);return I(this,R,`f`).getCompletion(t,(e,t)=>{if(e)throw new N(e.message);(t||[]).forEach(e=>{I(this,Cn,`f`).log(e)}),this.exit(0)}),this[ur](l,!o,!!n,!1)}if(I(this,W,`f`)||(f?(I(this,V,`f`)&&Yt(!0),a=!0,this.showHelp(e=>{I(this,Cn,`f`).log(e),this.exit(0)})):p&&(I(this,V,`f`)&&Yt(!0),a=!0,I(this,Z,`f`).showVersion(`log`),this.exit(0))),!a&&I(this,q,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>I(this,q,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new N(c.error.message);if(!m){let e=this[mr](d,{},c.error);n||(u=Lt(l,this,I(this,H,`f`).getMiddleware(),!0)),u=this[er](e,u??l),M(u)&&!n&&(u=u.then(()=>Lt(l,this,I(this,H,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof N)I(this,Z,`f`).fail(e.message,e);else throw e}return this[ur](u??l,o,!!n,!0)}[mr](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new N(n.message);I(this,$,`f`).nonOptionCount(a),I(this,$,`f`).requiredArguments(a,i);let o=!1;I(this,jn,`f`)&&(o=I(this,$,`f`).unknownCommands(a)),I(this,An,`f`)&&!o?I(this,$,`f`).unknownArguments(a,e,t,!!r):I(this,Mn,`f`)&&I(this,$,`f`).unknownArguments(a,e,{},!1,!1),I(this,$,`f`).limitedChoices(a),I(this,$,`f`).implications(a),I(this,$,`f`).conflicting(a)}}[hr](){F(this,W,!0,`f`)}[gr](e){if(typeof e==`string`)I(this,q,`f`).key[e]=!0;else for(let t of e)I(this,q,`f`).key[t]=!0}};function vr(e){return!!e&&typeof e.getInternalMethods==`function`}const yr=Pn(Ot),br=[{command:i(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-DoqL_52r.mjs`),null),hideCommand:!0},{command:i(`access`,`Access protected applications and services`,()=>import(`./access-DRlrq_cq.mjs`),null),hideCommand:!1},{command:i(`account`,`account`,()=>import(`./account-DfC3gRTf.mjs`),null),hideCommand:!1},{command:i(`account-tags`,`account-tags`,()=>import(`./account-tags-DMCYk5rR.mjs`),null),hideCommand:!1},{command:i(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-BlVDzIWc.mjs`),null),hideCommand:!1},{command:i(`acm`,`acm`,()=>import(`./acm-CCc33e4l.mjs`),null),hideCommand:!0},{command:i(`addressing`,`addressing`,()=>import(`./addressing-BA-5A3jQ.mjs`),null),hideCommand:!1},{command:i(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-Csgs8W5u.mjs`),null),hideCommand:!1},{command:i(`ai`,`ai`,()=>import(`./ai-BN_pzw7p.mjs`),null),hideCommand:!1},{command:i(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-Dbln3Ai6.mjs`),null),hideCommand:!1},{command:i(`ai-gateway`,`Proxy, cache, rate-limit, and observe requests to AI providers — OpenAI, Anthropic, Workers AI, and more`,()=>import(`./ai-gateway-BhASWwdp.mjs`),null),hideCommand:!1},{command:i(`ai-search`,`Managed search-as-a-service: crawl, index, and query content with AI-powered relevance and chat completions`,()=>import(`./ai-search-DvA8g4xr.mjs`),null),hideCommand:!1},{command:i(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-nualpneg.mjs`),null),hideCommand:!0},{command:i(`alerting`,`alerting`,()=>import(`./alerting-HUbVuQMl.mjs`),null),hideCommand:!0},{command:i(`alerts`,`alerts`,()=>import(`./alerts-DqZgVSCT.mjs`),null),hideCommand:!0},{command:i(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-ClKN9YnQ.mjs`),null),hideCommand:!1},{command:i(`analytics_engine`,`analytics_engine`,()=>import(`./analytics_engine-DP_O5HIq.mjs`),null),hideCommand:!0},{command:i(`api-security`,`api-security`,()=>import(`./api-security-Ce_9nFH9.mjs`),null),hideCommand:!0},{command:i(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-CLLBrtiV.mjs`),null),hideCommand:!0},{command:i(`artifacts`,`artifacts`,()=>import(`./artifacts-CIxZX3VM.mjs`),null),hideCommand:!0},{command:i(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-DjzIj9T4.mjs`),null),hideCommand:!0},{command:i(`autorag`,`autorag`,()=>import(`./autorag-Cq9k9Ye6.mjs`),null),hideCommand:!0},{command:i(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-tHlHhEVf.mjs`),null),hideCommand:!1},{command:i(`bot-management`,`bot-management`,()=>import(`./bot-management-ChV-gaXh.mjs`),null),hideCommand:!0},{command:i(`botnet-feed`,`Botnet threat intelligence feeds — IP and ASN-level data on known command-and-control infrastructure`,()=>import(`./botnet-feed-DQWBOEqC.mjs`),null),hideCommand:!0},{command:i(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-B3afeuOj.mjs`),null),hideCommand:!0},{command:i(`brands`,`brands`,()=>import(`./brands-DeLbFxSt.mjs`),null),hideCommand:!0},{command:i(`browser-extension`,`browser-extension`,()=>import(`./browser-extension-C1zmKFDG.mjs`),null),hideCommand:!0},{command:i(`browser-run`,`browser-run`,()=>import(`./browser-run-eQMomr1x.mjs`),null),hideCommand:!1},{command:i(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-wTOvlp0S.mjs`),null),hideCommand:!1},{command:i(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-s4HK0we7.mjs`),null),hideCommand:!1},{command:i(`certificate-authorities`,`certificate-authorities`,()=>import(`./certificate-authorities-CaPUfYzA.mjs`),null),hideCommand:!0},{command:i(`clear`,`clear`,()=>import(`./clear-CRfI7WS7.mjs`),null),hideCommand:!0},{command:i(`client-certificates`,`client-certificates`,()=>import(`./client-certificates-BfNDnT8H.mjs`),null),hideCommand:!0},{command:i(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-BV7iORbb.mjs`),null),hideCommand:!0},{command:i(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-CGT8ezvv.mjs`),null),hideCommand:!1},{command:i(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-BDhbXtA_.mjs`),null),hideCommand:!1},{command:i(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-hfttjm-b.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-5nVvivYA.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-events-latest`,`connector-telemetry-events-latest`,()=>import(`./connector-telemetry-events-latest-D8p_dR8s.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-DKk_7VQa.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-snapshots-latest`,`connector-telemetry-snapshots-latest`,()=>import(`./connector-telemetry-snapshots-latest-COFmzmlk.mjs`),null),hideCommand:!0},{command:i(`connectors`,`connectors`,()=>import(`./connectors-CvX4Z3cg.mjs`),null),hideCommand:!0},{command:i(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-BQxj87na.mjs`),null),hideCommand:!1},{command:i(`content-scan`,`Malicious uploads detection, scan uploaded content in HTTP requests for malware and malicious payloads`,()=>import(`./content-scan-hWh-aGbO.mjs`),null),hideCommand:!0},{command:i(`cps`,`cps`,()=>import(`./cps-o8QQFfnF.mjs`),null),hideCommand:!1},{command:i(`csamScanner`,`csamScanner`,()=>import(`./csamScanner-DHod3Hak.mjs`),null),hideCommand:!0},{command:i(`ct-alerting`,`ct-alerting`,()=>import(`./ct-alerting-D-_YsE1x.mjs`),null),hideCommand:!0},{command:i(`custom-certificates`,`custom-certificates`,()=>import(`./custom-certificates-UnaVRb3W.mjs`),null),hideCommand:!0},{command:i(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-BCJ7LOUe.mjs`),null),hideCommand:!1},{command:i(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-DOluVIfa.mjs`),null),hideCommand:!0},{command:i(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-CvIucaA2.mjs`),null),hideCommand:!1},{command:i(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-DzrXSeCR.mjs`),null),hideCommand:!1},{command:i(`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-BCg7BhWi.mjs`),null),hideCommand:!1},{command:i(`dcv-delegation`,`dcv-delegation`,()=>import(`./dcv-delegation-9bMHPSoc.mjs`),null),hideCommand:!0},{command:i(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-BIe-XR-P.mjs`),null),hideCommand:!0},{command:i(`dls`,`dls`,()=>import(`./dls-BuKO5QWL.mjs`),null),hideCommand:!0},{command:i(`dns`,`dns`,()=>import(`./dns-DzVN-WA4.mjs`),null),hideCommand:!1},{command:i(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-Dx_XvWKJ.mjs`),null),hideCommand:!0},{command:i(`domain-info`,`domain-info`,()=>import(`./domain-info-aiwP60Fo.mjs`),null),hideCommand:!0},{command:i(`durable-objects`,`durable-objects`,()=>import(`./durable-objects-DnU6OsEb.mjs`),null),hideCommand:!1},{command:i(`email-auth`,`email-auth`,()=>import(`./email-auth-DqIyzEcR.mjs`),null),hideCommand:!0},{command:i(`email-routing`,`Route incoming email to verified destination addresses or Workers with routing rules, catch-all behavior, and managed DNS records`,()=>import(`./email-routing-8rhAmzOY.mjs`),null),hideCommand:!1},{command:i(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-BRq5J31C.mjs`),null),hideCommand:!1},{command:i(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-Bsfk4Jia.mjs`),null),hideCommand:!1},{command:i(`fieldExtractors`,`fieldExtractors`,()=>import(`./fieldExtractors-COaK02vB.mjs`),null),hideCommand:!0},{command:i(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-Dar706zc.mjs`),null),hideCommand:!1},{command:i(`flagship`,`flagship`,()=>import(`./flagship-CTchDpyw.mjs`),null),hideCommand:!0},{command:i(`fraud`,`fraud`,()=>import(`./fraud-H-mdJfRU.mjs`),null),hideCommand:!0},{command:i(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-zqXS_12f.mjs`),null),hideCommand:!0},{command:i(`health`,`health`,()=>import(`./health-Bz33n-_F.mjs`),null),hideCommand:!0},{command:i(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-x889sT8g.mjs`),null),hideCommand:!0},{command:i(`hostnames`,`hostnames`,()=>import(`./hostnames-DqB5I-_U.mjs`),null),hideCommand:!0},{command:i(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-sR7Mwif9.mjs`),null),hideCommand:!1},{command:i(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-CKt7U41p.mjs`),null),hideCommand:!0},{command:i(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-CakdBcMc.mjs`),null),hideCommand:!1},{command:i(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-Dcv1vMsK.mjs`),null),hideCommand:!1},{command:i(`internal`,`internal`,()=>import(`./internal-BHrJbbdA.mjs`),null),hideCommand:!0},{command:i(`ips`,`ips`,()=>import(`./ips-Ce9_k1Vh.mjs`),null),hideCommand:!0},{command:i(`keyless-certificates`,`keyless-certificates`,()=>import(`./keyless-certificates-Cf_6sc7K.mjs`),null),hideCommand:!0},{command:i(`keys`,`keys`,()=>import(`./keys-DW2A43fL.mjs`),null),hideCommand:!0},{command:i(`kv`,`kv`,()=>import(`./kv-BKBWXf8s.mjs`),null),hideCommand:!1},{command:i(`leaked-credential-checks`,`Detect compromised credentials in login requests by checking against known breach databases`,()=>import(`./leaked-credential-checks-D-gwxxaF.mjs`),null),hideCommand:!0},{command:i(`live`,`live`,()=>import(`./live-a01OfPf9.mjs`),null),hideCommand:!0},{command:i(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-DHUVei95.mjs`),null),hideCommand:!1},{command:i(`logo-matches`,`logo-matches`,()=>import(`./logo-matches-D1aNSBnZ.mjs`),null),hideCommand:!0},{command:i(`logos`,`logos`,()=>import(`./logos-SyEjq15s.mjs`),null),hideCommand:!0},{command:i(`logpush`,`logpush`,()=>import(`./logpush-l9tVWnua.mjs`),null),hideCommand:!1},{command:i(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-EW0Pq-gf.mjs`),null),hideCommand:!1},{command:i(`magic-cloud-networking`,`magic-cloud-networking`,()=>import(`./magic-cloud-networking-CN2Qd2Lx.mjs`),null),hideCommand:!0},{command:i(`magic-network-monitoring`,`Flow-based network traffic monitoring with configurable alerting rules and VPC flow ingestion`,()=>import(`./magic-network-monitoring-8jxG-tPc.mjs`),null),hideCommand:!1},{command:i(`magic-transit`,`DDoS-protected network transit — GRE/IPsec tunnels, static routes, Magic WAN sites, connectors, and packet captures`,()=>import(`./magic-transit-DLhIQz2l.mjs`),null),hideCommand:!0},{command:i(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-CgKdTd9J.mjs`),null),hideCommand:!1},{command:i(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-BASi4j_s.mjs`),null),hideCommand:!0},{command:i(`matches`,`matches`,()=>import(`./matches-BCV6x948.mjs`),null),hideCommand:!0},{command:i(`mcp`,`mcp`,()=>import(`./mcp-DQODvLQm.mjs`),null),hideCommand:!1},{command:i(`mesh`,`mesh`,()=>import(`./mesh-S_yYh-w3.mjs`),null),hideCommand:!0},{command:i(`mtls-certificates`,`mtls-certificates`,()=>import(`./mtls-certificates-XJXK21J_.mjs`),null),hideCommand:!0},{command:i(`network`,`network`,()=>import(`./network-DA81Mcdh.mjs`),null),hideCommand:!0},{command:i(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-OttR92s7.mjs`),null),hideCommand:!0},{command:i(`oauth-clients`,`oauth-clients`,()=>import(`./oauth-clients-Ba-YZsxB.mjs`),null),hideCommand:!0},{command:i(`oauth-scopes`,`oauth-scopes`,()=>import(`./oauth-scopes-XqOk2zCQ.mjs`),null),hideCommand:!0},{command:i(`observability`,`observability`,()=>import(`./observability-BdIbZ1D8.mjs`),null),hideCommand:!1},{command:i(`organization`,`organization`,()=>import(`./organization-DnQ2_txo.mjs`),null),hideCommand:!1},{command:i(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-BkI0IhEg.mjs`),null),hideCommand:!1},{command:i(`origin-ca-certificates`,`origin-ca-certificates`,()=>import(`./origin-ca-certificates-Br91H1EG.mjs`),null),hideCommand:!0},{command:i(`origin-post-quantum-encryption`,`Enable post-quantum key exchange for connections between Cloudflare and your origin server`,()=>import(`./origin-post-quantum-encryption-BcpK8DaG.mjs`),null),hideCommand:!0},{command:i(`origin-tls-client-auth`,`origin-tls-client-auth`,()=>import(`./origin-tls-client-auth-CYK6YnzK.mjs`),null),hideCommand:!0},{command:i(`page-rules`,`page-rules`,()=>import(`./page-rules-DpOcNsJr.mjs`),null),hideCommand:!0},{command:i(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-Cw4DM-1N.mjs`),null),hideCommand:!0},{command:i(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-BORpCGxC.mjs`),null),hideCommand:!1},{command:i(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-CZw-KHEz.mjs`),null),hideCommand:!1},{command:i(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-DDDyJ6Oe.mjs`),null),hideCommand:!1},{command:i(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-DrH1i64o.mjs`),null),hideCommand:!0},{command:i(`queries`,`queries`,()=>import(`./queries-CD6h6iEP.mjs`),null),hideCommand:!0},{command:i(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-3TpjE349.mjs`),null),hideCommand:!1},{command:i(`r2`,`S3-compatible object storage with zero egress fees — buckets, lifecycle rules, event notifications, and data migration`,()=>import(`./r2-CV_hSFkM.mjs`),null),hideCommand:!1},{command:i(`r2-data-catalog`,`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,()=>import(`./r2-data-catalog-D_YHTMFG.mjs`),null),hideCommand:!0},{command:i(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-6-4_LoQ1.mjs`),null),hideCommand:!0},{command:i(`rate-limit-analytics`,`rate-limit-analytics`,()=>import(`./rate-limit-analytics-Bw9qmxMx.mjs`),null),hideCommand:!1},{command:i(`rate-limits`,`Legacy per-zone rate limiting rules — prefer Advanced Rate Limiting in Rulesets for new configurations`,()=>import(`./rate-limits-CDm_xzKt.mjs`),null),hideCommand:!0},{command:i(`ready`,`ready`,()=>import(`./ready-BXGqY1Wi.mjs`),null),hideCommand:!0},{command:i(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-B5ce977I.mjs`),null),hideCommand:!1},{command:i(`recent-submissions`,`recent-submissions`,()=>import(`./recent-submissions-AhGZD3a3.mjs`),null),hideCommand:!0},{command:i(`refute`,`refute`,()=>import(`./refute-D_w5Gw20.mjs`),null),hideCommand:!0},{command:i(`registrar`,`registrar`,()=>import(`./registrar-CF-3h2dN.mjs`),null),hideCommand:!1},{command:i(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-BDRZbyAV.mjs`),null),hideCommand:!1},{command:i(`reporting`,`reporting`,()=>import(`./reporting-CiS-RBNJ.mjs`),null),hideCommand:!1},{command:i(`request-tracers`,`Trace how a request would be processed through Cloudflare's rules and configuration pipeline`,()=>import(`./request-tracers-Drcpv8ha.mjs`),null),hideCommand:!0},{command:i(`resource-sharing`,`Share Cloudflare resources (zones, accounts) across organizations with granular access controls`,()=>import(`./resource-sharing-BI3CoOjl.mjs`),null),hideCommand:!1},{command:i(`resource-tagging`,`resource-tagging`,()=>import(`./resource-tagging-D4i_-E0W.mjs`),null),hideCommand:!0},{command:i(`rules`,`Account-level IP lists, hostname lists, and other reusable lists referenced by Rulesets rules`,()=>import(`./rules-C4I4CLoq.mjs`),null),hideCommand:!0},{command:i(`rulesets`,`rulesets`,()=>import(`./rulesets-c2efesdy.mjs`),null),hideCommand:!1},{command:i(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-DT58nW8a.mjs`),null),hideCommand:!0},{command:i(`scan-logo`,`scan-logo`,()=>import(`./scan-logo-BZzFam-Q.mjs`),null),hideCommand:!0},{command:i(`scan-page`,`scan-page`,()=>import(`./scan-page-BPA8nSPM.mjs`),null),hideCommand:!0},{command:i(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-PfJWMuRu.mjs`),null),hideCommand:!0},{command:i(`search`,`search`,()=>import(`./search-De0UlXYN.mjs`),null),hideCommand:!0},{command:i(`secrets-store`,`Centralized secret management — store API keys, tokens, and credentials for use across Workers and other products`,()=>import(`./secrets-store-7jrgww1J.mjs`),null),hideCommand:!1},{command:i(`security-center`,`Security posture dashboard — view and manage security insights, misconfigurations, and vulnerabilities`,()=>import(`./security-center-BhUM_Flh.mjs`),null),hideCommand:!1},{command:i(`security-txt`,`Manage the /.well-known/security.txt file that tells security researchers how to report vulnerabilities`,()=>import(`./security-txt-ButEG3qy.mjs`),null),hideCommand:!0},{command:i(`signed-url`,`signed-url`,()=>import(`./signed-url-ziDz9frX.mjs`),null),hideCommand:!0},{command:i(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-DgbYuUFC.mjs`),null),hideCommand:!0},{command:i(`snippets`,`snippets`,()=>import(`./snippets-De-xVTIb.mjs`),null),hideCommand:!1},{command:i(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-DcknX0jS.mjs`),null),hideCommand:!0},{command:i(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-Cn_p-ieT.mjs`),null),hideCommand:!1},{command:i(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-Bkn4ke9Q.mjs`),null),hideCommand:!0},{command:i(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-Cx78uNm_.mjs`),null),hideCommand:!1},{command:i(`submission-info`,`submission-info`,()=>import(`./submission-info-83D2DCCG.mjs`),null),hideCommand:!0},{command:i(`submit`,`submit`,()=>import(`./submit-Gu34n1a6.mjs`),null),hideCommand:!0},{command:i(`tags`,`tags`,()=>import(`./tags-BQqO7TLX.mjs`),null),hideCommand:!0},{command:i(`tenant`,`tenant`,()=>import(`./tenant-Dr0hGlhU.mjs`),null),hideCommand:!1},{command:i(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-B5Nf5hLr.mjs`),null),hideCommand:!0},{command:i(`total-queries`,`total-queries`,()=>import(`./total-queries-Dhol31Kn.mjs`),null),hideCommand:!0},{command:i(`tracked-domains`,`tracked-domains`,()=>import(`./tracked-domains-DoOPs6Vd.mjs`),null),hideCommand:!0},{command:i(`tunnels`,`tunnels`,()=>import(`./tunnels-ndJtol-f.mjs`),null),hideCommand:!0},{command:i(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-Cd65N6jD.mjs`),null),hideCommand:!0},{command:i(`url-info`,`url-info`,()=>import(`./url-info-CQKJ5A-x.mjs`),null),hideCommand:!0},{command:i(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-BPXZwYu0.mjs`),null),hideCommand:!0},{command:i(`url-scanner`,`Scan URLs for phishing, malware, and other threats — submit scans and retrieve detailed results`,()=>import(`./url-scanner-Bq43LJ98.mjs`),null),hideCommand:!0},{command:i(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-D4InwQxA.mjs`),null),hideCommand:!1},{command:i(`values`,`values`,()=>import(`./values-C3YLablc.mjs`),null),hideCommand:!0},{command:i(`vectorize`,`vectorize`,()=>import(`./vectorize-CYt0qXQ5.mjs`),null),hideCommand:!0},{command:i(`verify`,`verify`,()=>import(`./verify-CxpGEnJb.mjs`),null),hideCommand:!0},{command:i(`waiting-rooms`,`Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages`,()=>import(`./waiting-rooms-B3ksWao9.mjs`),null),hideCommand:!1},{command:i(`web-assets`,`web-assets`,()=>import(`./web-assets-DNiElHgV.mjs`),null),hideCommand:!0},{command:i(`web3`,`web3`,()=>import(`./web3-DfMKMDix.mjs`),null),hideCommand:!0},{command:i(`workers`,`workers`,()=>import(`./workers-C8uiRedD.mjs`),null),hideCommand:!1},{command:i(`workers-builds`,`workers-builds`,()=>import(`./workers-builds-DbEy311-.mjs`),null),hideCommand:!0},{command:i(`workers-for-platforms`,`workers-for-platforms`,()=>import(`./workers-for-platforms-BjvcY5A1.mjs`),null),hideCommand:!1},{command:i(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-BEnB6e_3.mjs`),null),hideCommand:!1},{command:i(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-CX3Zer8w.mjs`),null),hideCommand:!1},{command:i(`zaraz`,`Server-side tag manager — load third-party tools (analytics, pixels, etc.) from Cloudflare's edge without client-side JS`,()=>import(`./zaraz-DR1KbYY-.mjs`),null),hideCommand:!0},{command:i(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-CLoXVq1e.mjs`),null),hideCommand:!1},{command:i(`zone`,`zone`,()=>import(`./zone-B9qejq6W.mjs`),null),hideCommand:!1},{command:i(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-BxU08wO0.mjs`),null),hideCommand:!1}];function xr(e){return typeof e==`object`&&!!e&&`schemas`in e&&typeof e.schemas==`object`&&e.schemas!==null&&!Array.isArray(e.schemas)}function Sr(e,t){if(!t)return e;let n=a(import.meta.url,`schemas.json`,xr);return!n||!Object.hasOwn(n.schemas,t)?e:`${e}\n\n${o.italic(`To inspect the exact API request, run ${o.code(`cf schema ${t}`)}`)}`}const Cr=[{kind:`root`,command:`auth`,describe:`Manage authentication and profiles`,dir:`auth`,load:()=>import(`./auth-CgPQplnD.mjs`),telemetry:{command:`auth`,recordArgs:!1}},{kind:`root`,command:`login`,describe:!1,dir:`login`,load:()=>import(`./login-D37fy09s.mjs`),telemetry:null},{kind:`root`,command:`build`,describe:`Build a project for Cloudflare`,dir:`build`,load:()=>import(`./build-DFa0ngeO.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},{kind:`root`,command:`complete [shell]`,describe:`Generate and handle shell completions`,dir:`completions`,load:()=>import(`./completions-VR53Fiec.mjs`),telemetry:null},{kind:`root`,command:`deploy`,describe:`Deploy a project to Cloudflare`,dir:`deploy`,load:()=>import(`./deploy-BT_EVz0K.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-jRnP9IIJ.mjs`),telemetry:{command:`dev`,recordArgs:!1}},{kind:`root`,command:`init [directory]`,describe:`Create a new Cloudflare project or set up an existing one`,dir:`init`,load:()=>import(`./init-CVyWV_Ow.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},{kind:`root`,command:`migrate [path]`,describe:`Migrate a Wrangler project to cf`,dir:`migrate`,load:()=>import(`./migrate-B4kBnkpV.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},{kind:`root`,command:`cli`,describe:`Discover commands and configure the cf CLI`,dir:`cli`,load:()=>import(`./cli-CT-QJu7q.mjs`),telemetry:{command:`cli`,recordArgs:!1}},{kind:`root`,command:`previews`,describe:`Manage Worker Previews`,dir:`previews`,load:()=>import(`./previews-CiYBBKj8.mjs`),telemetry:{command:`previews`,recordArgs:!1}},{kind:`root`,command:`schema [command..]`,describe:`Show API schema details for a command`,dir:`schema`,load:()=>import(`./schema-CueLBLXC.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},{kind:`root`,command:`tools`,describe:!1,dir:`tools`,load:()=>import(`./tools-BJbI_f35.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:`pages`,name:`deploy`,dir:`pages/deploy`},{kind:`leaf`,parent:`workers`,name:`check`,dir:`workers/check`},{kind:`leaf`,parent:`workers`,name:`types`,dir:`workers/types`},{kind:`parentOverride`,parent:`access`,describe:`Access protected applications and services`,expose:!0},{kind:`leaf`,parent:`access`,name:`login`,dir:`access/login`},{kind:`leaf`,parent:`access`,name:`token`,dir:`access/token`},{kind:`leaf`,parent:`access`,name:`ssh-config`,dir:`access/ssh-config`},{kind:`leaf`,parent:`access`,name:`ssh-gen`,dir:`access/ssh-gen`},{kind:`leaf`,parent:`access`,name:`tcp`,dir:`access/tcp`},{kind:`leaf`,parent:`access`,name:`curl`,dir:`access/curl`},{kind:`leaf`,parent:`tunnels`,name:`diag`,dir:`tunnels/diag`},{kind:`leaf`,parent:`tunnels`,name:`login`,dir:`tunnels/login`},{kind:`leaf`,parent:`tunnels`,name:`quick-start`,dir:`tunnels/quick-start`},{kind:`leaf`,parent:`tunnels`,name:`ready`,dir:`tunnels/ready`},{kind:`leaf`,parent:`tunnels`,name:`run`,dir:`tunnels/run`},{kind:`leaf`,parent:`tunnels`,name:`tail`,dir:`tunnels/tail`},{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 wr(){return Cr.filter(e=>e.kind===`root`)}function Tr(e){return e.command.split(/\s+/)[0]??e.command}function Er(e){try{let t=new URL(e);return`${t.pathname.replace(/^\/client\/v\d+/,``)}${t.search}`}catch{return e}}function Dr(e){if(_(m),e instanceof f){let t=e.statusCode,n=e.body,r=t===void 0?`Envelope Error`:kr(t),i=[];if(n){let e=n;Array.isArray(e.errors)&&(i=e.errors)}let a=e.rawResponse?.url?`HTTP ${Er(e.rawResponse.url)}`:void 0,s=t===void 0?r:`${t} ${r}`,c=a?`${s} · ${a}`:s,l=o.muted(c),u=``;return i.length>0?u=i.map((e,t)=>{let n=typeof e.code==`number`?o.error(o.bold(`[${e.code}]`)):o.error(o.bold(`[error]`)),r=o.bold(e.message??``);return t===i.length-1?`${n} ${r}\n${l}`:`${n} ${r}`}).join(`
98
+ `,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)}}}[Ln](e){At(I(this,q,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=I(this,q,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete I(this,Z,`f`).getDescriptions()[e]}[Rn](e,t,n){I(this,bn,`f`)[n]||(I(this,X,`f`).process.emitWarning(e,t),I(this,bn,`f`)[n]=!0)}[zn](){I(this,xn,`f`).push({options:I(this,q,`f`),configObjects:I(this,q,`f`).configObjects.slice(0),exitProcess:I(this,V,`f`),groups:I(this,U,`f`),strict:I(this,An,`f`),strictCommands:I(this,jn,`f`),strictOptions:I(this,Mn,`f`),completionCommand:I(this,z,`f`),output:I(this,K,`f`),exitError:I(this,B,`f`),hasOutput:I(this,W,`f`),parsed:this.parsed,parseFn:I(this,J,`f`),parseContext:I(this,En,`f`)}),I(this,Z,`f`).freeze(),I(this,$,`f`).freeze(),I(this,L,`f`).freeze(),I(this,H,`f`).freeze()}[Bn](){let e=``,t;return t=/\b(node|iojs|electron)(\.exe)?$/.test(I(this,X,`f`).process.argv()[0])?I(this,X,`f`).process.argv().slice(1,2):I(this,X,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[dr](I(this,gn,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),I(this,X,`f`).getEnv(`_`)&&I(this,X,`f`).getProcessArgvBin()===I(this,X,`f`).getEnv(`_`)&&(e=I(this,X,`f`).getEnv(`_`).replace(`${I(this,X,`f`).path.dirname(I(this,X,`f`).process.execPath())}/`,``)),e}[Vn](){return I(this,Tn,`f`)}[Hn](){return I(this,Nn,`f`)}[Un](){if(!I(this,yn,`f`))return;let e=I(this,X,`f`).getEnv(`LC_ALL`)||I(this,X,`f`).getEnv(`LC_MESSAGES`)||I(this,X,`f`).getEnv(`LANG`)||I(this,X,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[Wn](){return this[Kn]().version||`unknown`}[Gn](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)I(this,X,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[Kn](e){let t=e||`*`;if(I(this,Dn,`f`)[t])return I(this,Dn,`f`)[t];let n={};try{let t=e||I(this,X,`f`).mainFilename;I(this,X,`f`).path.extname(t)&&(t=I(this,X,`f`).path.dirname(t));let r=I(this,X,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});j(r,void 0,I(this,X,`f`)),n=JSON.parse(I(this,X,`f`).readFileSync(r,`utf8`))}catch{}return I(this,Dn,`f`)[t]=n||{},I(this,Dn,`f`)[t]}[qn](e,t){t=[].concat(t),t.forEach(t=>{t=this[Zn](t),I(this,q,`f`)[e].push(t)})}[Jn](e,t,n,r){this[Xn](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=n})}[Yn](e,t,n,r){this[Xn](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=(I(this,q,`f`)[e][t]||[]).concat(n)})}[Xn](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 At(n))e(t,n[t]);else i(t,this[Zn](n),r)}[Zn](e){return e===`__proto__`?`___proto___`:e}[Qn](e,t){return this[Jn](this[Qn].bind(this),`key`,e,t),this}[$n](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=I(this,xn,`f`).pop();j(f,void 0,I(this,X,`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){F(e,q,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){F(t,V,e,`f`)}}.value,groups:{set value(e){F(n,U,e,`f`)}}.value,output:{set value(e){F(r,K,e,`f`)}}.value,exitError:{set value(e){F(i,B,e,`f`)}}.value,hasOutput:{set value(e){F(a,W,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){F(o,An,e,`f`)}}.value,strictCommands:{set value(e){F(s,jn,e,`f`)}}.value,strictOptions:{set value(e){F(c,Mn,e,`f`)}}.value,completionCommand:{set value(e){F(l,z,e,`f`)}}.value,parseFn:{set value(e){F(u,J,e,`f`)}}.value,parseContext:{set value(e){F(d,En,e,`f`)}}.value}=f,I(this,q,`f`).configObjects=p,I(this,Z,`f`).unfreeze(),I(this,$,`f`).unfreeze(),I(this,L,`f`).unfreeze(),I(this,H,`f`).unfreeze()}[er](e,t){return Rt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[tr].bind(this),getContext:this[nr].bind(this),getHasOutput:this[rr].bind(this),getLoggerInstance:this[ir].bind(this),getParseContext:this[ar].bind(this),getParserConfiguration:this[Vn].bind(this),getUsageConfiguration:this[Hn].bind(this),getUsageInstance:this[or].bind(this),getValidationInstance:this[sr].bind(this),hasParseCallback:this[cr].bind(this),isGlobalContext:this[lr].bind(this),postProcess:this[ur].bind(this),reset:this[fr].bind(this),runValidation:this[mr].bind(this),runYargsParserAndExecuteCommands:this[pr].bind(this),setHasOutput:this[hr].bind(this)}}[tr](){return I(this,L,`f`)}[nr](){return I(this,_n,`f`)}[rr](){return I(this,W,`f`)}[ir](){return I(this,Cn,`f`)}[ar](){return I(this,En,`f`)||{}}[or](){return I(this,Z,`f`)}[sr](){return I(this,$,`f`)}[cr](){return!!I(this,J,`f`)}[lr](){return I(this,Sn,`f`)}[ur](e,t,n,r){return n||M(e)?e:(t||(e=this[Fn](e)),(this[Vn]()[`parse-positional-numbers`]||this[Vn]()[`parse-positional-numbers`]===void 0)&&(e=this[Gn](e)),r&&(e=Lt(e,this,I(this,H,`f`).getMiddleware(),!1)),e)}[fr](e={}){F(this,q,I(this,q,`f`)||{},`f`);let t={};t.local=I(this,q,`f`).local||[],t.configObjects=I(this,q,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(I(this,On,`f`),Object.keys(I(this,U,`f`)).reduce((e,t)=>{let r=I(this,U,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),F(this,U,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(I(this,q,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=Jt(I(this,q,`f`)[e],e=>!n[e])}),t.envPrefix=I(this,q,`f`).envPrefix,F(this,q,t,`f`),F(this,Z,I(this,Z,`f`)?I(this,Z,`f`).reset(n):Zt(this,I(this,X,`f`)),`f`),F(this,$,I(this,$,`f`)?I(this,$,`f`).reset(n):ln(this,I(this,Z,`f`),I(this,X,`f`)),`f`),F(this,L,I(this,L,`f`)?I(this,L,`f`).reset():Ht(I(this,Z,`f`),I(this,$,`f`),I(this,H,`f`),I(this,X,`f`)),`f`),I(this,R,`f`)||F(this,R,rn(this,I(this,Z,`f`),I(this,L,`f`),I(this,X,`f`)),`f`),I(this,H,`f`).reset(),F(this,z,null,`f`),F(this,K,``,`f`),F(this,B,null,`f`),F(this,W,!1,`f`),this.parsed=!1,this}[dr](e,t){return I(this,X,`f`).path.relative(e,t)}[pr](e,t,n,r=0,i=!1){let a=!!n||i;e||=I(this,Y,`f`),I(this,q,`f`).__=I(this,X,`f`).y18n.__,I(this,q,`f`).configuration=this[Vn]();let o=!!I(this,q,`f`).configuration[`populate--`],s=Object.assign({},I(this,q,`f`).configuration,{"populate--":!0}),c=I(this,X,`f`).Parser.detailed(e,Object.assign({},I(this,q,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,I(this,En,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===I(this,G,`f`)&&l[e]?f=!0:e===I(this,Q,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&I(this,Z,`f`).clearCachedHelpMessage();try{if(this[Un](),t)return this[ur](l,o,!!n,!1);I(this,G,`f`)&&[I(this,G,`f`)].concat(d[I(this,G,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),F(this,Sn,!1,`f`);let s=I(this,L,`f`).getCommands(),m=I(this,R,`f`)?.completionKey?[I(this,R,`f`)?.completionKey,...this.getAliases()[I(this,R,`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!==I(this,z,`f`)){let e=I(this,L,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[ur](e,o,!!n,!1)}else if(!e&&a!==I(this,z,`f`)){e=a;break}!I(this,L,`f`).hasDefaultCommand()&&I(this,kn,`f`)&&e&&!h&&I(this,$,`f`).recommendCommands(e,s)}I(this,z,`f`)&&l._.includes(I(this,z,`f`))&&!m&&(I(this,V,`f`)&&Yt(!0),this.showCompletionScript(),this.exit(0))}if(I(this,L,`f`).hasDefaultCommand()&&!h){let e=I(this,L,`f`).runCommand(null,this,c,0,i,f||p||i);return this[ur](e,o,!!n,!1)}if(m){I(this,V,`f`)&&Yt(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${I(this,R,`f`).completionKey}`)+1);return I(this,R,`f`).getCompletion(t,(e,t)=>{if(e)throw new N(e.message);(t||[]).forEach(e=>{I(this,Cn,`f`).log(e)}),this.exit(0)}),this[ur](l,!o,!!n,!1)}if(I(this,W,`f`)||(f?(I(this,V,`f`)&&Yt(!0),a=!0,this.showHelp(e=>{I(this,Cn,`f`).log(e),this.exit(0)})):p&&(I(this,V,`f`)&&Yt(!0),a=!0,I(this,Z,`f`).showVersion(`log`),this.exit(0))),!a&&I(this,q,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>I(this,q,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new N(c.error.message);if(!m){let e=this[mr](d,{},c.error);n||(u=Lt(l,this,I(this,H,`f`).getMiddleware(),!0)),u=this[er](e,u??l),M(u)&&!n&&(u=u.then(()=>Lt(l,this,I(this,H,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof N)I(this,Z,`f`).fail(e.message,e);else throw e}return this[ur](u??l,o,!!n,!0)}[mr](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new N(n.message);I(this,$,`f`).nonOptionCount(a),I(this,$,`f`).requiredArguments(a,i);let o=!1;I(this,jn,`f`)&&(o=I(this,$,`f`).unknownCommands(a)),I(this,An,`f`)&&!o?I(this,$,`f`).unknownArguments(a,e,t,!!r):I(this,Mn,`f`)&&I(this,$,`f`).unknownArguments(a,e,{},!1,!1),I(this,$,`f`).limitedChoices(a),I(this,$,`f`).implications(a),I(this,$,`f`).conflicting(a)}}[hr](){F(this,W,!0,`f`)}[gr](e){if(typeof e==`string`)I(this,q,`f`).key[e]=!0;else for(let t of e)I(this,q,`f`).key[t]=!0}};function vr(e){return!!e&&typeof e.getInternalMethods==`function`}const yr=Pn(Ot),br=[{command:i(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-BtI6fvRl.mjs`),null),hideCommand:!1},{command:i(`access`,`Access protected applications and services`,()=>import(`./access-CqOyTHw4.mjs`),null),hideCommand:!1},{command:i(`account-tags`,`account-tags`,()=>import(`./account-tags-7I77Dwsd.mjs`),null),hideCommand:!1},{command:i(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-Cq-eOPzL.mjs`),null),hideCommand:!1},{command:i(`acm`,`acm`,()=>import(`./acm-CSXnlN6o.mjs`),null),hideCommand:!0},{command:i(`addressing`,`addressing`,()=>import(`./addressing-C5XvjNhk.mjs`),null),hideCommand:!1},{command:i(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-CSzr9gty.mjs`),null),hideCommand:!1},{command:i(`ai`,`ai`,()=>import(`./ai-C0xWIvsG.mjs`),null),hideCommand:!1},{command:i(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-B43vm1KJ.mjs`),null),hideCommand:!1},{command:i(`ai-gateway`,`Proxy, cache, rate-limit, and observe requests to AI providers — OpenAI, Anthropic, Workers AI, and more`,()=>import(`./ai-gateway-BK3MbIzT.mjs`),null),hideCommand:!1},{command:i(`ai-search`,`Managed search-as-a-service: crawl, index, and query content with AI-powered relevance and chat completions`,()=>import(`./ai-search-TrFTxBbn.mjs`),null),hideCommand:!1},{command:i(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-JrYa27qd.mjs`),null),hideCommand:!0},{command:i(`alerting`,`alerting`,()=>import(`./alerting-B1-ZwfVT.mjs`),null),hideCommand:!0},{command:i(`alerts`,`alerts`,()=>import(`./alerts-DY_7Nknx.mjs`),null),hideCommand:!0},{command:i(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-B-wlVtDV.mjs`),null),hideCommand:!1},{command:i(`analytics_engine`,`analytics_engine`,()=>import(`./analytics_engine-DWzzQzOs.mjs`),null),hideCommand:!0},{command:i(`api-security`,`api-security`,()=>import(`./api-security-BWFWWmXl.mjs`),null),hideCommand:!0},{command:i(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-DHPGTvCT.mjs`),null),hideCommand:!0},{command:i(`artifacts`,`artifacts`,()=>import(`./artifacts-mmBDk3wO.mjs`),null),hideCommand:!0},{command:i(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-CCF5e500.mjs`),null),hideCommand:!0},{command:i(`autorag`,`autorag`,()=>import(`./autorag-K396-M2S.mjs`),null),hideCommand:!0},{command:i(`basin-catalog`,`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,()=>import(`./basin-catalog-hRY01t_Z.mjs`),null),hideCommand:!1},{command:i(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-C_ev-9nh.mjs`),null),hideCommand:!1},{command:i(`bot-management`,`bot-management`,()=>import(`./bot-management-CyYsXkZt.mjs`),null),hideCommand:!0},{command:i(`botnet-feed`,`Botnet threat intelligence feeds — IP and ASN-level data on known command-and-control infrastructure`,()=>import(`./botnet-feed-Dj5R5v2o.mjs`),null),hideCommand:!0},{command:i(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-CmQ6Iu0I.mjs`),null),hideCommand:!0},{command:i(`brands`,`brands`,()=>import(`./brands-DeLbFxSt.mjs`),null),hideCommand:!0},{command:i(`browser-extension`,`browser-extension`,()=>import(`./browser-extension-C1zmKFDG.mjs`),null),hideCommand:!0},{command:i(`browser-run`,`browser-run`,()=>import(`./browser-run-sWHTsCSB.mjs`),null),hideCommand:!1},{command:i(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-c21rTfcg.mjs`),null),hideCommand:!1},{command:i(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-CuNjJl6m.mjs`),null),hideCommand:!1},{command:i(`certificate-authorities`,`certificate-authorities`,()=>import(`./certificate-authorities-DRUUzvI3.mjs`),null),hideCommand:!0},{command:i(`clear`,`clear`,()=>import(`./clear-CRfI7WS7.mjs`),null),hideCommand:!0},{command:i(`client-certificates`,`client-certificates`,()=>import(`./client-certificates-BSi1CEGk.mjs`),null),hideCommand:!0},{command:i(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-BdxUX3Y8.mjs`),null),hideCommand:!0},{command:i(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-B46ajuAj.mjs`),null),hideCommand:!1},{command:i(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-adbVR2Ah.mjs`),null),hideCommand:!1},{command:i(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-BhfMiPcq.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-CxKECRgO.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-events-latest`,`connector-telemetry-events-latest`,()=>import(`./connector-telemetry-events-latest-D8p_dR8s.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-BHi-jHE5.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-snapshots-latest`,`connector-telemetry-snapshots-latest`,()=>import(`./connector-telemetry-snapshots-latest-COFmzmlk.mjs`),null),hideCommand:!0},{command:i(`connectors`,`connectors`,()=>import(`./connectors-gkP2aNSN.mjs`),null),hideCommand:!0},{command:i(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-DUvBpnRo.mjs`),null),hideCommand:!1},{command:i(`content-scan`,`Malicious uploads detection, scan uploaded content in HTTP requests for malware and malicious payloads`,()=>import(`./content-scan-BCPhAjMZ.mjs`),null),hideCommand:!0},{command:i(`cps`,`cps`,()=>import(`./cps-B35EPUAk.mjs`),null),hideCommand:!1},{command:i(`csamScanner`,`csamScanner`,()=>import(`./csamScanner-DcTA9oLR.mjs`),null),hideCommand:!0},{command:i(`ct-alerting`,`ct-alerting`,()=>import(`./ct-alerting-B3CS-CPk.mjs`),null),hideCommand:!0},{command:i(`custom-certificates`,`custom-certificates`,()=>import(`./custom-certificates-IjJJhl7_.mjs`),null),hideCommand:!0},{command:i(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-ChYOaEQg.mjs`),null),hideCommand:!1},{command:i(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-Bai3cqAD.mjs`),null),hideCommand:!0},{command:i(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-DsukmLNZ.mjs`),null),hideCommand:!1},{command:i(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-CiboX-9D.mjs`),null),hideCommand:!1},{command:i(`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-s293SFAJ.mjs`),null),hideCommand:!1},{command:i(`dcv-delegation`,`dcv-delegation`,()=>import(`./dcv-delegation-BfgvmpQT.mjs`),null),hideCommand:!0},{command:i(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-Ops0RjxG.mjs`),null),hideCommand:!0},{command:i(`dls`,`dls`,()=>import(`./dls-uo7NYEqE.mjs`),null),hideCommand:!0},{command:i(`dns`,`dns`,()=>import(`./dns-B-NwBOpQ.mjs`),null),hideCommand:!1},{command:i(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-LTIP13nb.mjs`),null),hideCommand:!0},{command:i(`domain-info`,`domain-info`,()=>import(`./domain-info-aiwP60Fo.mjs`),null),hideCommand:!0},{command:i(`durable-objects`,`durable-objects`,()=>import(`./durable-objects-o7uB3YYg.mjs`),null),hideCommand:!1},{command:i(`email-auth`,`email-auth`,()=>import(`./email-auth-BUdBDCaE.mjs`),null),hideCommand:!0},{command:i(`email-routing`,`Route incoming email to verified destination addresses or Workers with routing rules, catch-all behavior, and managed DNS records`,()=>import(`./email-routing-BPRliM3z.mjs`),null),hideCommand:!1},{command:i(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-dbLE3I5c.mjs`),null),hideCommand:!1},{command:i(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-BLlGy5Mn.mjs`),null),hideCommand:!1},{command:i(`fieldExtractors`,`fieldExtractors`,()=>import(`./fieldExtractors-M-KfLOGw.mjs`),null),hideCommand:!0},{command:i(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-DzbLwqo3.mjs`),null),hideCommand:!1},{command:i(`flagship`,`flagship`,()=>import(`./flagship-DcXWEywy.mjs`),null),hideCommand:!1},{command:i(`fraud`,`fraud`,()=>import(`./fraud-CGXRWANi.mjs`),null),hideCommand:!0},{command:i(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-B3Z3Puwl.mjs`),null),hideCommand:!0},{command:i(`health`,`health`,()=>import(`./health-Bz33n-_F.mjs`),null),hideCommand:!0},{command:i(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-BIiV29q7.mjs`),null),hideCommand:!0},{command:i(`hostnames`,`hostnames`,()=>import(`./hostnames-ueWsZFwv.mjs`),null),hideCommand:!0},{command:i(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-Bxk9LZf5.mjs`),null),hideCommand:!1},{command:i(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-kA9gcv79.mjs`),null),hideCommand:!0},{command:i(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-CK4J5as7.mjs`),null),hideCommand:!1},{command:i(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-z7DkM9Xc.mjs`),null),hideCommand:!1},{command:i(`internal`,`internal`,()=>import(`./internal-BHrJbbdA.mjs`),null),hideCommand:!0},{command:i(`ips`,`ips`,()=>import(`./ips-BXdBK4Co.mjs`),null),hideCommand:!0},{command:i(`keyless-certificates`,`keyless-certificates`,()=>import(`./keyless-certificates-Dp9xTYtD.mjs`),null),hideCommand:!0},{command:i(`keys`,`keys`,()=>import(`./keys-DrVlj4VI.mjs`),null),hideCommand:!0},{command:i(`kv`,`kv`,()=>import(`./kv-WX-dlUT1.mjs`),null),hideCommand:!1},{command:i(`leaked-credential-checks`,`Detect compromised credentials in login requests by checking against known breach databases`,()=>import(`./leaked-credential-checks-BMQ0VhCd.mjs`),null),hideCommand:!0},{command:i(`live`,`live`,()=>import(`./live-a01OfPf9.mjs`),null),hideCommand:!0},{command:i(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-BbkSL89c.mjs`),null),hideCommand:!1},{command:i(`logo-matches`,`logo-matches`,()=>import(`./logo-matches-HFmD2hK6.mjs`),null),hideCommand:!0},{command:i(`logos`,`logos`,()=>import(`./logos-Di2PABE_.mjs`),null),hideCommand:!0},{command:i(`logpush`,`logpush`,()=>import(`./logpush-DEqdt0I0.mjs`),null),hideCommand:!1},{command:i(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-Ckfw-3Q_.mjs`),null),hideCommand:!1},{command:i(`magic-cloud-networking`,`magic-cloud-networking`,()=>import(`./magic-cloud-networking-C0yBJKMb.mjs`),null),hideCommand:!0},{command:i(`magic-network-monitoring`,`Flow-based network traffic monitoring with configurable alerting rules and VPC flow ingestion`,()=>import(`./magic-network-monitoring-CLvaiI7s.mjs`),null),hideCommand:!1},{command:i(`magic-transit`,`DDoS-protected network transit — GRE/IPsec tunnels, static routes, Magic WAN sites, connectors, and packet captures`,()=>import(`./magic-transit-Bhb1kxYj.mjs`),null),hideCommand:!0},{command:i(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-COL3aqXw.mjs`),null),hideCommand:!1},{command:i(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-cK0strTK.mjs`),null),hideCommand:!0},{command:i(`matches`,`matches`,()=>import(`./matches-Df4WEz0x.mjs`),null),hideCommand:!0},{command:i(`mcp`,`mcp`,()=>import(`./mcp-DK_5OUVl.mjs`),null),hideCommand:!1},{command:i(`mesh`,`mesh`,()=>import(`./mesh-CVXpTYED.mjs`),null),hideCommand:!0},{command:i(`monetization`,`monetization`,()=>import(`./monetization-BHk0S5BF.mjs`),null),hideCommand:!1},{command:i(`mtls-certificates`,`mtls-certificates`,()=>import(`./mtls-certificates-8pzdxzOX.mjs`),null),hideCommand:!0},{command:i(`network`,`network`,()=>import(`./network-ClNeXTvG.mjs`),null),hideCommand:!0},{command:i(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-t3jSoV7o.mjs`),null),hideCommand:!0},{command:i(`oauth-clients`,`oauth-clients`,()=>import(`./oauth-clients-DBxdvlJC.mjs`),null),hideCommand:!0},{command:i(`oauth-scopes`,`oauth-scopes`,()=>import(`./oauth-scopes-D39GYkt6.mjs`),null),hideCommand:!0},{command:i(`observability`,`observability`,()=>import(`./observability-ZV1yPflB.mjs`),null),hideCommand:!1},{command:i(`organization`,`organization`,()=>import(`./organization-Bk-TkQlB.mjs`),null),hideCommand:!1},{command:i(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-hXITNpPl.mjs`),null),hideCommand:!1},{command:i(`origin-ca-certificates`,`origin-ca-certificates`,()=>import(`./origin-ca-certificates-DsLR_Z2e.mjs`),null),hideCommand:!0},{command:i(`origin-post-quantum-encryption`,`Enable post-quantum key exchange for connections between Cloudflare and your origin server`,()=>import(`./origin-post-quantum-encryption-C_egsVQu.mjs`),null),hideCommand:!0},{command:i(`origin-tls-client-auth`,`origin-tls-client-auth`,()=>import(`./origin-tls-client-auth-DPG6A6kz.mjs`),null),hideCommand:!0},{command:i(`page-rules`,`page-rules`,()=>import(`./page-rules-B8lrkiiF.mjs`),null),hideCommand:!0},{command:i(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-Cx4doLvQ.mjs`),null),hideCommand:!1},{command:i(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-BUVHqPPA.mjs`),null),hideCommand:!1},{command:i(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-CzYgryid.mjs`),null),hideCommand:!1},{command:i(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-CGHmwc4a.mjs`),null),hideCommand:!1},{command:i(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor--Jim5u4y.mjs`),null),hideCommand:!0},{command:i(`queries`,`queries`,()=>import(`./queries-z2pjzXlA.mjs`),null),hideCommand:!0},{command:i(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-D0IXxSa7.mjs`),null),hideCommand:!1},{command:i(`r2`,`S3-compatible object storage with zero egress fees — buckets, lifecycle rules, event notifications, and data migration`,()=>import(`./r2-DQ7w9dCM.mjs`),null),hideCommand:!1},{command:i(`r2-data-catalog`,`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,()=>import(`./r2-data-catalog-DpktRU5y.mjs`),null),hideCommand:!1},{command:i(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-DyLO7Zg1.mjs`),null),hideCommand:!0},{command:i(`rate-limit-analytics`,`rate-limit-analytics`,()=>import(`./rate-limit-analytics-YsGha5pH.mjs`),null),hideCommand:!1},{command:i(`rate-limits`,`Legacy per-zone rate limiting rules — prefer Advanced Rate Limiting in Rulesets for new configurations`,()=>import(`./rate-limits-kH13NRdf.mjs`),null),hideCommand:!0},{command:i(`ready`,`ready`,()=>import(`./ready-DYun4Fpn.mjs`),null),hideCommand:!0},{command:i(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-mQzLbDxe.mjs`),null),hideCommand:!1},{command:i(`recent-submissions`,`recent-submissions`,()=>import(`./recent-submissions-18NaOGOo.mjs`),null),hideCommand:!0},{command:i(`refute`,`refute`,()=>import(`./refute-BhMiJcE1.mjs`),null),hideCommand:!0},{command:i(`registrar`,`registrar`,()=>import(`./registrar-ClbtM5Dy.mjs`),null),hideCommand:!1},{command:i(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-BIEHm_Jp.mjs`),null),hideCommand:!1},{command:i(`reporting`,`reporting`,()=>import(`./reporting-CjkMzSsZ.mjs`),null),hideCommand:!1},{command:i(`request-tracers`,`Trace how a request would be processed through Cloudflare's rules and configuration pipeline`,()=>import(`./request-tracers-BoSXOTox.mjs`),null),hideCommand:!0},{command:i(`resource-sharing`,`Share Cloudflare resources (zones, accounts) across organizations with granular access controls`,()=>import(`./resource-sharing-CFS39nJq.mjs`),null),hideCommand:!1},{command:i(`resource-tagging`,`resource-tagging`,()=>import(`./resource-tagging-CZ5mvMhE.mjs`),null),hideCommand:!0},{command:i(`rules`,`Resources used by Cloudflare rules and rulesets`,()=>import(`./rules-CfqumI45.mjs`),null),hideCommand:!1},{command:i(`rulesets`,`rulesets`,()=>import(`./rulesets-o3jsPv4U.mjs`),null),hideCommand:!1},{command:i(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-BZ0rYlun.mjs`),null),hideCommand:!0},{command:i(`scan-logo`,`scan-logo`,()=>import(`./scan-logo-7y0pqFMk.mjs`),null),hideCommand:!0},{command:i(`scan-page`,`scan-page`,()=>import(`./scan-page-B6jnK3QI.mjs`),null),hideCommand:!0},{command:i(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-0-eR9pvC.mjs`),null),hideCommand:!0},{command:i(`search`,`search`,()=>import(`./search-Rn3Eefv8.mjs`),null),hideCommand:!0},{command:i(`secrets-store`,`Centralized secret management — store API keys, tokens, and credentials for use across Workers and other products`,()=>import(`./secrets-store-Duc29Zs-.mjs`),null),hideCommand:!1},{command:i(`security-insights`,`security-insights`,()=>import(`./security-insights-5CuLC-Yo.mjs`),null),hideCommand:!1},{command:i(`security-txt`,`Manage the /.well-known/security.txt file that tells security researchers how to report vulnerabilities`,()=>import(`./security-txt-qm2PqCPz.mjs`),null),hideCommand:!1},{command:i(`signed-url`,`signed-url`,()=>import(`./signed-url-Dzwy9Xiw.mjs`),null),hideCommand:!0},{command:i(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-BXLH9OM0.mjs`),null),hideCommand:!0},{command:i(`snippets`,`snippets`,()=>import(`./snippets-DZG6UWeH.mjs`),null),hideCommand:!1},{command:i(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-Be4ImAIY.mjs`),null),hideCommand:!0},{command:i(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-CNWujfIC.mjs`),null),hideCommand:!1},{command:i(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-BIlS4Qs8.mjs`),null),hideCommand:!0},{command:i(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-C5RvTAKF.mjs`),null),hideCommand:!1},{command:i(`submission-info`,`submission-info`,()=>import(`./submission-info-SNhkDRRZ.mjs`),null),hideCommand:!0},{command:i(`submit`,`submit`,()=>import(`./submit-Bpru4P79.mjs`),null),hideCommand:!0},{command:i(`tags`,`tags`,()=>import(`./tags-Rv7X1rU9.mjs`),null),hideCommand:!0},{command:i(`tenant`,`tenant`,()=>import(`./tenant-CjYf6OPN.mjs`),null),hideCommand:!1},{command:i(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-BbHaaEhv.mjs`),null),hideCommand:!0},{command:i(`total-queries`,`total-queries`,()=>import(`./total-queries-B20xslrH.mjs`),null),hideCommand:!0},{command:i(`tracked-domains`,`tracked-domains`,()=>import(`./tracked-domains-BCvIOZOK.mjs`),null),hideCommand:!0},{command:i(`tunnels`,`tunnels`,()=>import(`./tunnels-CLWPaIIF.mjs`),null),hideCommand:!0},{command:i(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-C5ezKSoz.mjs`),null),hideCommand:!0},{command:i(`url-info`,`url-info`,()=>import(`./url-info-Gcf8-MyB.mjs`),null),hideCommand:!0},{command:i(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-Dvg8mZRk.mjs`),null),hideCommand:!0},{command:i(`url-scanner`,`Scan URLs for phishing, malware, and other threats — submit scans and retrieve detailed results`,()=>import(`./url-scanner-BZCsgh0O.mjs`),null),hideCommand:!0},{command:i(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-BnkvXmjc.mjs`),null),hideCommand:!1},{command:i(`values`,`values`,()=>import(`./values-yUGls__L.mjs`),null),hideCommand:!0},{command:i(`vectorize`,`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,()=>import(`./vectorize-BiXngTuI.mjs`),null),hideCommand:!1},{command:i(`verify`,`verify`,()=>import(`./verify-DOeBG4PL.mjs`),null),hideCommand:!0},{command:i(`waiting-rooms`,`Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages`,()=>import(`./waiting-rooms-BoLWF74U.mjs`),null),hideCommand:!1},{command:i(`web-assets`,`web-assets`,()=>import(`./web-assets-CEJ9Zne1.mjs`),null),hideCommand:!0},{command:i(`web3`,`web3`,()=>import(`./web3-CIjm7EuJ.mjs`),null),hideCommand:!0},{command:i(`workers`,`workers`,()=>import(`./workers-DdtWb7Ws.mjs`),null),hideCommand:!1},{command:i(`workers-builds`,`workers-builds`,()=>import(`./workers-builds-DT4tA-KT.mjs`),null),hideCommand:!0},{command:i(`workers-for-platforms`,`workers-for-platforms`,()=>import(`./workers-for-platforms-CaCr8ApU.mjs`),null),hideCommand:!1},{command:i(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-DRtjG39D.mjs`),null),hideCommand:!1},{command:i(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-DRme6yrC.mjs`),null),hideCommand:!1},{command:i(`zaraz`,`Server-side tag manager — load third-party tools (analytics, pixels, etc.) from Cloudflare's edge without client-side JS`,()=>import(`./zaraz-DmjDEnUJ.mjs`),null),hideCommand:!0},{command:i(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-BRAHExxa.mjs`),null),hideCommand:!1},{command:i(`zone`,`zone`,()=>import(`./zone-CclLvb-g.mjs`),null),hideCommand:!1},{command:i(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-C6tc2OOV.mjs`),null),hideCommand:!1}];function xr(e){return typeof e==`object`&&!!e&&`schemas`in e&&typeof e.schemas==`object`&&e.schemas!==null&&!Array.isArray(e.schemas)}function Sr(e,t){if(!t)return e;let n=a(import.meta.url,`schemas.json`,xr);return!n||!Object.hasOwn(n.schemas,t)?e:`${e}\n\n${o.italic(`To inspect the exact API request, run ${o.code(`cf schema ${t}`)}`)}`}const Cr=[{kind:`root`,command:`auth`,describe:`Manage authentication and profiles`,dir:`auth`,load:()=>import(`./auth-Dnp10uLy.mjs`),telemetry:{command:`auth`,recordArgs:!1}},{kind:`root`,command:`login`,describe:!1,dir:`login`,load:()=>import(`./login-DYQ8UgJQ.mjs`),telemetry:null},{kind:`root`,command:`build`,describe:`Build a project for Cloudflare`,dir:`build`,load:()=>import(`./build-Dyt1M_Ib.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},{kind:`root`,command:`complete [shell]`,describe:`Generate and handle shell completions`,dir:`completions`,load:()=>import(`./completions-DbT6O2ol.mjs`),telemetry:null},{kind:`root`,command:`deploy`,describe:`Deploy a project to Cloudflare`,dir:`deploy`,load:()=>import(`./deploy-CvxNMDbS.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-Z6vYszaT.mjs`),telemetry:{command:`dev`,recordArgs:!1}},{kind:`root`,command:`init [directory]`,describe:`Create a new Cloudflare project or set up an existing one`,dir:`init`,load:()=>import(`./init-COcG8sp5.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},{kind:`root`,command:`migrate [path]`,describe:`Migrate a Wrangler project to cf`,dir:`migrate`,load:()=>import(`./migrate-CipwWhJE.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},{kind:`root`,command:`cli`,describe:`Discover commands and configure the cf CLI`,dir:`cli`,load:()=>import(`./cli-Caa776EB.mjs`),telemetry:{command:`cli`,recordArgs:!1}},{kind:`root`,command:`previews`,describe:`Manage Worker Previews`,dir:`previews`,load:()=>import(`./previews-BKO1pZyG.mjs`),telemetry:{command:`previews`,recordArgs:!1}},{kind:`root`,command:`schema [command..]`,describe:`Show API schema details for a command`,dir:`schema`,load:()=>import(`./schema-JVvksQ1J.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},{kind:`root`,command:`tools`,describe:!1,dir:`tools`,load:()=>import(`./tools-CFEubTr4.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:`pages`,name:`deploy`,dir:`pages/deploy`},{kind:`leaf`,parent:`workers`,name:`check`,dir:`workers/check`},{kind:`leaf`,parent:`workers`,name:`types`,dir:`workers/types`},{kind:`parentOverride`,parent:`access`,describe:`Access protected applications and services`,expose:!0},{kind:`leaf`,parent:`access`,name:`login`,dir:`access/login`},{kind:`leaf`,parent:`access`,name:`token`,dir:`access/token`},{kind:`leaf`,parent:`access`,name:`ssh-config`,dir:`access/ssh-config`},{kind:`leaf`,parent:`access`,name:`ssh-gen`,dir:`access/ssh-gen`},{kind:`leaf`,parent:`access`,name:`tcp`,dir:`access/tcp`},{kind:`leaf`,parent:`access`,name:`curl`,dir:`access/curl`},{kind:`leaf`,parent:`tunnels`,name:`diag`,dir:`tunnels/diag`},{kind:`leaf`,parent:`tunnels`,name:`login`,dir:`tunnels/login`},{kind:`leaf`,parent:`tunnels`,name:`quick-start`,dir:`tunnels/quick-start`},{kind:`leaf`,parent:`tunnels`,name:`ready`,dir:`tunnels/ready`},{kind:`leaf`,parent:`tunnels`,name:`run`,dir:`tunnels/run`},{kind:`leaf`,parent:`tunnels`,name:`tail`,dir:`tunnels/tail`},{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 wr(){return Cr.filter(e=>e.kind===`root`)}function Tr(e){return e.command.split(/\s+/)[0]??e.command}function Er(e){try{let t=new URL(e);return`${t.pathname.replace(/^\/client\/v\d+/,``)}${t.search}`}catch{return e}}function Dr(e){if(_(m),e instanceof f){let t=e.statusCode,n=e.body,r=t===void 0?`Envelope Error`:kr(t),i=[];if(n){let e=n;Array.isArray(e.errors)&&(i=e.errors)}let a=e.rawResponse?.url?`HTTP ${Er(e.rawResponse.url)}`:void 0,s=t===void 0?r:`${t} ${r}`,c=a?`${s} · ${a}`:s,l=o.muted(c),u=``;return i.length>0?u=i.map((e,t)=>{let n=typeof e.code==`number`?o.error(o.bold(`[${e.code}]`)):o.error(o.bold(`[error]`)),r=o.bold(e.message??``);return t===i.length-1?`${n} ${r}\n${l}`:`${n} ${r}`}).join(`
99
99
 
100
100
  `):(u=o.error(o.bold(e.message||c)),e.message&&c&&(u+=`\n${l}`)),console.error(v(u,void 0,{title:`APIError`,rawMessage:!0})),t===401?console.error(`
101
101
  `+h(`Try running: cf auth login`)):t===403&&console.error(`
@@ -104,6 +104,6 @@ complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name
104
104
  `)}else{let t=o.error(o.bold(e.message));i=n?`${t}\n${n}`:t}return console.error(v(i,void 0,{title:`APIError`,rawMessage:!0})),e.status===401?console.error(`
105
105
  `+h(`Try running: cf auth login`)):e.status===403&&console.error(`
106
106
  `+h(`Check your API token permissions`)),e}if(e instanceof Error){let t=process.env.DEBUG&&e.stack?Or(e.stack):void 0;return console.error(v(e.message,t)),e}return console.error(v(`An unexpected error occurred`,String(e))),e}function Or(e){return e.replace(/[A-Za-z0-9_-]{40,}/g,`[REDACTED]`)}function kr(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 Ar={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 jr(e){return Object.entries(Ar).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 Mr=wr().map(e=>i(e.command,e.describe,e.load,e.telemetry)),Nr=new Set(wr().map(Tr)),Pr=[`=== STOP: AGENT COMMAND DISCOVERY ===`,`AGENTS: Do not explore commands by chaining nested --help calls.`,`Your first port of call and the best way to discover commands is:`,`AGENTS: Keep cf cli search queries anonymous; describe the action and resource type only.`,`Never include names, email addresses, domains, account or resource IDs, tokens, or other identifying values.`,` cf cli search "<describe the task you want to accomplish>"`,`It returns five compact JSON matches with short descriptions. Pick the best match instead of repeating similar searches.`,"Run `<discovered command> --help` for detailed command help.","For API request details, replace the result's leading `cf` with `cf schema`.",`=== END AGENT COMMAND DISCOVERY ===`].join(`
107
- `);function Fr(e){return s().isAgentic?`${Pr}\n${e}`:e}function Ir(e,t){return Fr(Sr(e,t))}async function Lr(e=!1){if(!process.stderr.isTTY||e||c(process.argv.slice(2))||Br()===`complete`)return;let{readState:t,updateState:n}=await import(`./state-Dyo8DcW7.mjs`);t().completions?.prompted||(process.stderr.write(o.muted("Tip: run `cf complete <bash|zsh|fish>` to install shell completions.\n")),n({completions:{prompted:!0}}))}let Rr;function zr(){return Rr??=import(`./telemetry-Qc-g_0fL.mjs`),Rr}function Br(e=process.argv.slice(2)){return Vr(e,1)[0]}function Vr(e=process.argv.slice(2),t=2){let n=[];for(let r=0;r<e.length&&n.length<t;r++){let t=e[r];if(t===void 0||t===`--`)break;if(jr(t)){r++;continue}t.startsWith(`-`)||n.push(t)}return n}async function Hr(e=!1){if(!process.stderr.isTTY)return;let t=process.argv.slice(2);if(e||c(t)||t.includes(`--help`)||t.includes(`-h`)||Kr(Vr(t).join(` `)))return;let{getBannerLastShown:n,getTelemetryDispatcher:r,setBannerLastShown:i}=await zr();r().enabled&&n()!==m&&(process.stderr.write(o.muted("Cloudflare collects anonymous cf usage telemetry. Run `cf cli telemetry disable` to opt out.\n")),i(m))}async function Ur(){try{await Promise.race([b(),S(1e3,void 0,{ref:!1})])}catch{}}function Wr(e){return e instanceof Error&&e.message.startsWith(`Unknown command:`)}function Gr(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 Kr(e){let[t,n]=e.split(` `);return t===`complete`||t===`cli`&&n===`telemetry`}async function qr(e,t){if(ne()||e instanceof l)return;let n=Wr(e)?void 0:t;if(!(n===void 0&&!Wr(e)||Kr(n??Vr().join(` `))))try{let{getTelemetryDispatcher:t,UNKNOWN_COMMAND_EVENT:r}=await zr(),{sanitizeError:i}=await import(`./error-sanitization-Cu-8OKRA.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{}}async function Jr(e){if(!(!e||Kr(e)))try{let{getTelemetryDispatcher:t}=await zr();t().sendAdhocEvent(`cf help shown`,{command:e})}catch{}}function Yr(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(g(m,e)),!0)}function Xr(e){if(process.argv.slice(2).length>0)return!1;let t=[g(m,e),``,`The Cloudflare CLI — manage your account, zones, and developer platform.`,``,`${o.bold(`Get started:`)}`,` ${o.code(`cf auth login`)} ${o.muted(`Authenticate with Cloudflare`)}`,` ${o.code(`cf --help`)} ${o.muted(`Browse all commands`)}`,` ${o.code(`cf <command> --help`)} ${o.muted(`Per-command help`)}`,` ${o.code(`cf migrate`)} ${o.muted(`Migrate a Wrangler project to cf`)}`,` ${o.code(`cf complete bash`)} ${o.muted(`Install shell completions`)}`,``,`${o.bold(`Docs:`)} ${o.brand(`https://developers.cloudflare.com/`)}`,``];return console.log(t.join(`
108
- `)),!0}function Zr(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`)||Br(i)!==`complete`&&_(m,{quiet:e||c(i),update:t}))}async function Qr(){let e=process.argv.slice(2);if(c(e)||Br(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-SgAjen2z.mjs`);if(t)return;let{getUpdateNotice:n,maybeStartBackgroundUpdateCheck:r}=await import(`./update-check-D5-zqJoN.mjs`),i=!1;return{notice:n(m),start(){i||(i=!0,r())}}}function $r(e,t={}){let{onCommandResolved:n,onHelpShown:r,updateCheck:i}=t,a,s=e=>o.brand(e),c=e.indexOf(`--`),l=(c===-1?e:e.slice(0,c)).some(e=>e===`--local`||e===`--no-local`||e.startsWith(`--local=`)),f=yr(e).scriptName(`cf`).parserConfiguration({"sort-commands":!0}).wrap(process.stdout.columns||80).usage(`$0 <command> [options]`).usage(`
109
- The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":s(`Commands`),"Options:":s(`Options`),"Positionals:":s(`Positionals`),"Examples:":s(`Examples`)}).help(`help`,`Show help`).alias(`h`,`help`).options(Ar).group([...Object.keys(Ar),`help`,`version`],s(`Global flags`));for(let e of Mr)f.command(e);for(let e of br)e.hideCommand?f.command({...e.command,describe:!1}):f.command(e.command);f.middleware(async e=>{Zr(e.quiet,i?.notice),i?.start();let t=Gr(f);t!==void 0&&n?.(t);try{await Hr(e.quiet)}catch{}try{await Lr(e.quiet)}catch{}te(e.mode);let r=String(e._[0]??``);if(!e.help&&(r===`dev`&&l||e.local&&Nr.has(r)))throw Error(`--local is not supported by cf ${r}.`);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(t!==void 0&&u(t,e.local)&&(a=await d(e)),!e.local){let{resolveProfile:t}=await import(`./oauth-ChXrM0q9.mjs`);ee(t(e.profile))}}).demandCommand(1,`You need to specify a command`).strictCommands().strictOptions().recommendCommands().version(m).alias(`v`,`version`).epilogue(`For more information, visit https://developers.cloudflare.com/`).exitProcess(!1).fail((e,t,a)=>{Zr(!1,i?.notice),i?.start();let o=Gr(f);if(o!==void 0&&n?.(o),t)throw t;let s=/^Did you mean (.+)\?$/.exec(e)?.[1];if(!(s&&!a.getCommands().some(([e])=>e.split(` `)[0]===s))){if(e===`Please specify a subcommand`){o!==void 0&&r?.(o),a.showHelp(`log`);return}throw a.showHelp(`error`),Error(e)}});let p=f.showHelp.bind(f);f.showHelp=e=>p(t=>{let i=Gr(f);i!==void 0&&n?.(i),r?.(i??`cf`);let a=Ir(t,i);typeof e==`function`?e(a):e===`log`?console.log(a):console.error(a)});let h=f.getHelp.bind(f);return f.getHelp=async()=>Ir(await h(),Gr(f)),{cli:f,dispose:()=>{a?.(),a=void 0}}}async function ei(e){let t=process.argv;process.argv=[`node`,`cf`,...e];try{await ti()}finally{process.argv=t}}async function ti(){te(void 0),re();let e=await Qr();if(Yr(e?.notice)||Xr(e?.notice))throw e?.start(),new l(0);let t,n,{cli:r,dispose:i}=$r(vt(process.argv),{onCommandResolved:e=>{t=e},onHelpShown:e=>{n=e},updateCheck:e}),a=vt(process.argv),o=a.indexOf(`--`),s=o===-1?a:a.slice(0,o);if(s.includes(`--help`)||s.includes(`-h`)){Zr(!1,e?.notice),e?.start();try{await Lr()}catch{}}try{await r.parse(vt(process.argv)),await Jr(n)}catch(e){if(e instanceof l)throw e;if(t===void 0){try{await Hr()}catch{}try{await Lr()}catch{}}throw await qr(e,t??Gr(r)),Dr(e)}finally{i(),await y(),await Ur()}}export{ti as n,ei as r,$r as t};
107
+ `);function Fr(e){return s().isAgentic?`${Pr}\n${e}`:e}function Ir(e,t){return Fr(Sr(e,t))}async function Lr(e=!1){if(!process.stderr.isTTY||e||c(process.argv.slice(2))||Br()===`complete`)return;let{readState:t,updateState:n}=await import(`./state-Dyo8DcW7.mjs`);t().completions?.prompted||(process.stderr.write(o.muted("Tip: run `cf complete <bash|zsh|fish>` to install shell completions.\n")),n({completions:{prompted:!0}}))}let Rr;function zr(){return Rr??=import(`./telemetry-0npQCuKc.mjs`),Rr}function Br(e=process.argv.slice(2)){return Vr(e,1)[0]}function Vr(e=process.argv.slice(2),t=2){let n=[];for(let r=0;r<e.length&&n.length<t;r++){let t=e[r];if(t===void 0||t===`--`)break;if(jr(t)){r++;continue}t.startsWith(`-`)||n.push(t)}return n}async function Hr(e=!1){if(!process.stderr.isTTY)return;let t=process.argv.slice(2);if(e||c(t)||t.includes(`--help`)||t.includes(`-h`)||Kr(Vr(t).join(` `)))return;let{getBannerLastShown:n,getTelemetryDispatcher:r,setBannerLastShown:i}=await zr();r().enabled&&n()!==m&&(process.stderr.write(o.muted("Cloudflare collects anonymous cf usage telemetry. Run `cf cli telemetry disable` to opt out.\n")),i(m))}async function Ur(){try{await Promise.race([b(),S(1e3,void 0,{ref:!1})])}catch{}}function Wr(e){return e instanceof Error&&e.message.startsWith(`Unknown command:`)}function Gr(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 Kr(e){let[t,n]=e.split(` `);return t===`complete`||t===`cli`&&n===`telemetry`}async function qr(e,t){if(ne()||e instanceof l)return;let n=Wr(e)?void 0:t;if(!(n===void 0&&!Wr(e)||Kr(n??Vr().join(` `))))try{let{getTelemetryDispatcher:t,UNKNOWN_COMMAND_EVENT:r}=await zr(),{sanitizeError:i}=await import(`./error-sanitization-CEf4JTNN.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{}}async function Jr(e){if(!(!e||Kr(e)))try{let{getTelemetryDispatcher:t}=await zr();t().sendAdhocEvent(`cf help shown`,{command:e})}catch{}}function Yr(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(g(m,e)),!0)}function Xr(e){if(process.argv.slice(2).length>0)return!1;let t=[g(m,e),``,`The Cloudflare CLI — manage your account, zones, and developer platform.`,``,`${o.bold(`Get started:`)}`,` ${o.code(`cf auth login`)} ${o.muted(`Authenticate with Cloudflare`)}`,` ${o.code(`cf --help`)} ${o.muted(`Browse all commands`)}`,` ${o.code(`cf <command> --help`)} ${o.muted(`Per-command help`)}`,` ${o.code(`cf migrate`)} ${o.muted(`Migrate a Wrangler project to cf`)}`,` ${o.code(`cf complete bash`)} ${o.muted(`Install shell completions`)}`,``,`${o.bold(`Docs:`)} ${o.brand(`https://developers.cloudflare.com/`)}`,``];return console.log(t.join(`
108
+ `)),!0}function Zr(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`)||Br(i)!==`complete`&&_(m,{quiet:e||c(i),update:t}))}async function Qr(){let e=process.argv.slice(2);if(c(e)||Br(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-SgAjen2z.mjs`);if(t)return;let{getUpdateNotice:n,maybeStartBackgroundUpdateCheck:r}=await import(`./update-check-CebyUyqG.mjs`),i=!1;return{notice:n(m),start(){i||(i=!0,r())}}}function $r(e,t={}){let{onCommandResolved:n,onHelpShown:r,updateCheck:i}=t,a,s=e=>o.brand(e),c=e.indexOf(`--`),l=(c===-1?e:e.slice(0,c)).some(e=>e===`--local`||e===`--no-local`||e.startsWith(`--local=`)),f=yr(e).scriptName(`cf`).parserConfiguration({"sort-commands":!0}).wrap(process.stdout.columns||80).usage(`$0 <command> [options]`).usage(`
109
+ The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":s(`Commands`),"Options:":s(`Options`),"Positionals:":s(`Positionals`),"Examples:":s(`Examples`)}).help(`help`,`Show help`).alias(`h`,`help`).options(Ar).group([...Object.keys(Ar),`help`,`version`],s(`Global flags`));for(let e of Mr)f.command(e);for(let e of br)e.hideCommand?f.command({...e.command,describe:!1}):f.command(e.command);f.middleware(async e=>{Zr(e.quiet,i?.notice),i?.start();let t=Gr(f);t!==void 0&&n?.(t);try{await Hr(e.quiet)}catch{}try{await Lr(e.quiet)}catch{}te(e.mode);let r=String(e._[0]??``);if(!e.help&&(r===`dev`&&l||e.local&&Nr.has(r)))throw Error(`--local is not supported by cf ${r}.`);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(t!==void 0&&u(t,e.local)&&(a=await d(e)),!e.local){let{resolveProfile:t}=await import(`./oauth-CJamdfrC.mjs`);ee(t(e.profile))}}).demandCommand(1,`You need to specify a command`).strictCommands().strictOptions().recommendCommands().version(m).alias(`v`,`version`).epilogue(`For more information, visit https://developers.cloudflare.com/`).exitProcess(!1).fail((e,t,a)=>{Zr(!1,i?.notice),i?.start();let o=Gr(f);if(o!==void 0&&n?.(o),t)throw t;let s=/^Did you mean (.+)\?$/.exec(e)?.[1];if(!(s&&!a.getCommands().some(([e])=>e.split(` `)[0]===s))){if(e===`Please specify a subcommand`){o!==void 0&&r?.(o),a.showHelp(`log`);return}throw a.showHelp(`error`),Error(e)}});let p=f.showHelp.bind(f);f.showHelp=e=>p(t=>{let i=Gr(f);i!==void 0&&n?.(i),r?.(i??`cf`);let a=Ir(t,i);typeof e==`function`?e(a):e===`log`?console.log(a):console.error(a)});let h=f.getHelp.bind(f);return f.getHelp=async()=>Ir(await h(),Gr(f)),{cli:f,dispose:()=>{a?.(),a=void 0}}}async function ei(e){let t=process.argv;process.argv=[`node`,`cf`,...e];try{await ti()}finally{process.argv=t}}async function ti(){te(void 0),re();let e=await Qr();if(Yr(e?.notice)||Xr(e?.notice))throw e?.start(),new l(0);let t,n,{cli:r,dispose:i}=$r(vt(process.argv),{onCommandResolved:e=>{t=e},onHelpShown:e=>{n=e},updateCheck:e}),a=vt(process.argv),o=a.indexOf(`--`),s=o===-1?a:a.slice(0,o);if(s.includes(`--help`)||s.includes(`-h`)){Zr(!1,e?.notice),e?.start();try{await Lr()}catch{}}try{await r.parse(vt(process.argv)),await Jr(n)}catch(e){if(e instanceof l)throw e;if(t===void 0){try{await Hr()}catch{}try{await Lr()}catch{}}throw await qr(e,t??Gr(r)),Dr(e)}finally{i(),await y(),await Ur()}}export{ti as n,ei as r,$r as t};