cf 1.0.0-beta.24 → 1.0.0-beta.25

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 (238) hide show
  1. package/dist/_meta/commands.json +478 -141
  2. package/dist/_meta/hand-written-commands.json +44 -0
  3. package/dist/_meta/schemas.json +254 -2
  4. package/dist/{abuse-reports-CTOO4FJ4.mjs → abuse-reports-BIS9MZn7.mjs} +3 -3
  5. package/dist/{access-DFGLlXpy.mjs → access-__sFDSFL.mjs} +1 -1
  6. package/dist/{accounts-C-wpV8Az.mjs → accounts-CmggwRjh.mjs} +36 -34
  7. package/dist/{acm-thIt17mv.mjs → acm-AAhRZUAU.mjs} +1 -1
  8. package/dist/{addressing-D7VI7-Oi.mjs → addressing-DVeJNPZc.mjs} +1 -1
  9. package/dist/{agent-memory-duLTH8pl.mjs → agent-memory-DQhWO6sc.mjs} +1 -1
  10. package/dist/{ai-ctIjDCq0.mjs → ai-CULO9sno.mjs} +3 -3
  11. package/dist/{ai-audit-CjhuS21p.mjs → ai-audit-udn4HF34.mjs} +1 -1
  12. package/dist/{ai-gateway-B1TIw7wl.mjs → ai-gateway-Bm2MMdec.mjs} +3 -3
  13. package/dist/{ai-search-DUQBnOWH.mjs → ai-search-GRN_gXgU.mjs} +1 -1
  14. package/dist/{ai-security-bdABwEIR.mjs → ai-security-DXy9ht-9.mjs} +2 -2
  15. package/dist/{alerting-I_KErGZy.mjs → alerting-CssnaN2i.mjs} +1 -1
  16. package/dist/{analytics-DGxcDAWu.mjs → analytics-BVo7Ax0w.mjs} +1 -1
  17. package/dist/{analytics-engine-DNNokw1O.mjs → analytics-engine-BBd0Bydx.mjs} +1 -1
  18. package/dist/{api-security-CsPrJ-Xw.mjs → api-security-C-D9OKtH.mjs} +3 -3
  19. package/dist/{argo-BhNmRYk5.mjs → argo-DSziwzvA.mjs} +1 -1
  20. package/dist/{artifacts-DRo8KadB.mjs → artifacts-nVMgn4dn.mjs} +1 -1
  21. package/dist/{audit-logs-CzxDyTbx.mjs → audit-logs-DIZ5oA_y.mjs} +1 -1
  22. package/dist/auth-Bls_1yRW.mjs +2 -0
  23. package/dist/{auth-pbuzyz4C.mjs → auth-CB9wjyad.mjs} +1 -1
  24. package/dist/auth-JsvLULHA.mjs +7 -0
  25. package/dist/{auth-token-BcIV7k1B.mjs → auth-token-BAgw7kYP.mjs} +1 -1
  26. package/dist/{autoconfig-CXcy-e1R.mjs → autoconfig-CajkMb3B.mjs} +19 -11
  27. package/dist/{basin-catalog-DoTn8zvi.mjs → basin-catalog-BRvGeKm3.mjs} +9 -9
  28. package/dist/{billing-CMbLzZV0.mjs → billing-BhPoqyKC.mjs} +1 -1
  29. package/dist/{blocks-DmOx-xEv.mjs → blocks-D2tE8dp2.mjs} +1 -1
  30. package/dist/{bot-management-CJs5WwAW.mjs → bot-management-BfjX5DuH.mjs} +1 -1
  31. package/dist/{botnet-feed-DeF7P5lI.mjs → botnet-feed-VOL5P4s3.mjs} +1 -1
  32. package/dist/{brand-protection-dx_B8OWa.mjs → brand-protection-CSVHQ9Pt.mjs} +2 -2
  33. package/dist/{browser-run-fRn9ItYu.mjs → browser-run-cxOd2cZE.mjs} +1 -1
  34. package/dist/{build-CCepbVuJ.mjs → build-BfkzV5_c.mjs} +1 -1
  35. package/dist/build-DCdLWwOg.mjs +2 -0
  36. package/dist/{builds-5YhQ_zIm.mjs → builds-y5BQCJ81.mjs} +1 -1
  37. package/dist/{cache-WQyxt7O5.mjs → cache-Bvr988Hj.mjs} +1 -1
  38. package/dist/cf-DgLg6Hop.mjs +18 -0
  39. package/dist/{chunk-3PJ54H4K-C8sxQzhB.mjs → chunk-3PJ54H4K-CbRAWQWI.mjs} +1 -1
  40. package/dist/{chunk-DSGVRFIS-CP2xC0bc.mjs → chunk-DSGVRFIS-Dq2PrGsi.mjs} +1 -1
  41. package/dist/{cli-CgkhNdjb.mjs → cli-BTxJfFus.mjs} +1 -1
  42. package/dist/{client-side-security-COuAb7BM.mjs → client-side-security-CFmO0uz9.mjs} +1 -1
  43. package/dist/{cloud-connector-D1gjX0Dx.mjs → cloud-connector-CtwPdFBa.mjs} +1 -1
  44. package/dist/{cloudflared-FEg1GxHT.mjs → cloudflared-DPkNN1Qv.mjs} +1 -1
  45. package/dist/{cloudforce-one-BmXgL6kB.mjs → cloudforce-one-DHrMaxnU.mjs} +58 -58
  46. package/dist/{command-BfoLlrr1.mjs → command-6_Ms3TZv.mjs} +1 -1
  47. package/dist/{command-DrdxR1tJ.mjs → command-BWyx7dNO.mjs} +1 -1
  48. package/dist/{command-qhfkede5.mjs → command-BXCk1OsI.mjs} +1 -1
  49. package/dist/{command-WyIFe__L.mjs → command-CCDzJjIB.mjs} +1 -1
  50. package/dist/{command-BG9JYUHo.mjs → command-CDYTsmxe.mjs} +1 -1
  51. package/dist/{command-Dsi4sM8D.mjs → command-CXwKBbj9.mjs} +1 -1
  52. package/dist/{command-8hWrCCy6.mjs → command-ClneauMx.mjs} +1 -1
  53. package/dist/{command-BJFKdqVc.mjs → command-CmK8-DJ9.mjs} +1 -1
  54. package/dist/{command-BaIY4UuC.mjs → command-Ct3tf-P5.mjs} +1 -1
  55. package/dist/{command-hh8rEbH4.mjs → command-DPOjEs1B.mjs} +1 -1
  56. package/dist/{command-D3E7d8E7.mjs → command-DqWBPiew.mjs} +1 -1
  57. package/dist/{command-BXPssGfS.mjs → command-YFWLEK8W.mjs} +1 -1
  58. package/dist/{command-CA6yIa17.mjs → command-ckixJeTm.mjs} +1 -1
  59. package/dist/{command-B_Fxpr5v.mjs → command-lJJ7sEZe.mjs} +1 -1
  60. package/dist/{completions-BshG3sAO.mjs → completions-B1rYgw_a.mjs} +1 -1
  61. package/dist/{connector-interrupts-pNU4QmsW.mjs → connector-interrupts-DecTdK6X.mjs} +1 -1
  62. package/dist/{connector-telemetry-events-BpRPtTdD.mjs → connector-telemetry-events-wePxPACj.mjs} +1 -1
  63. package/dist/{connector-telemetry-snapshots-pNfynA2r.mjs → connector-telemetry-snapshots-D8sXR1qx.mjs} +1 -1
  64. package/dist/{connectors-CiWTAGHh.mjs → connectors-C-6RQ_Q1.mjs} +1 -1
  65. package/dist/{containers-IBtaInTL.mjs → containers-C_byVTZF.mjs} +193 -193
  66. package/dist/{containers-Dvq0NjQg.mjs → containers-D65Gpj9Q.mjs} +2 -2
  67. package/dist/{content-scan-B69hOyhb.mjs → content-scan-DbIDQ-Yu.mjs} +1 -1
  68. package/dist/{context-BryBS1zQ.mjs → context-DCon1tRZ.mjs} +1 -1
  69. package/dist/{cps-DLgWaZMT.mjs → cps-DGLmzCzp.mjs} +1 -1
  70. package/dist/{csam-scanner-D1928b81.mjs → csam-scanner-R7Ih-Dnw.mjs} +1 -1
  71. package/dist/{custom-csrs-DrxWBjmx.mjs → custom-csrs-D0RnVoJ7.mjs} +1 -1
  72. package/dist/{custom-hostnames-BP1pxK1F.mjs → custom-hostnames-BFWR-tR_.mjs} +1 -1
  73. package/dist/{custom-nameservers-5DJLY479.mjs → custom-nameservers-Dn_9Ssti.mjs} +1 -1
  74. package/dist/{custom-pages-CNAsOY9a.mjs → custom-pages-HqIQcb77.mjs} +1 -1
  75. package/dist/{d1-Dge80Qgq.mjs → d1-CopIY9RT.mjs} +2 -2
  76. package/dist/{delegate-CBKb0nov.mjs → delegate-CTj0dYET.mjs} +1 -1
  77. package/dist/delegate.mjs +1 -1
  78. package/dist/{deploy-CR5b7uhB.mjs → deploy-BVTA83rN.mjs} +1 -1
  79. package/dist/{deploy-context-D51tgJGI.mjs → deploy-context-CO8ZSRwx.mjs} +1 -1
  80. package/dist/{deploy-input-em95cFc7.mjs → deploy-input-PhKRxa_2.mjs} +1 -1
  81. package/dist/{dev-BczBHbpj.mjs → dev-CM5GLHNn.mjs} +1 -1
  82. package/dist/{diagnostics-BKKinCge.mjs → diagnostics-DPjl0aCm.mjs} +1 -1
  83. package/dist/{dist-D5YYi2LO.mjs → dist-ataVE8ob.mjs} +3 -3
  84. package/dist/{dls-DU4HnxED.mjs → dls-BLTIVlbh.mjs} +1 -1
  85. package/dist/{dns-BzdH3geY.mjs → dns-DkqVq-nB.mjs} +60 -58
  86. package/dist/{dns-firewall-puq_86Wd.mjs → dns-firewall-D1bb1byu.mjs} +1 -1
  87. package/dist/{docs-AWb7X2VX.mjs → docs-tOv_OllI.mjs} +1 -1
  88. package/dist/{durable-objects-Dg6XPcsB.mjs → durable-objects-OJhns_to.mjs} +1 -1
  89. package/dist/{email-auth-DXR0NU9R.mjs → email-auth-BbsIBNlu.mjs} +1 -1
  90. package/dist/{email-domains-B00mAtjT.mjs → email-domains-pWZi1M4q.mjs} +1 -1
  91. package/dist/{email-routing-Cm19q9hA.mjs → email-routing-DnitWE1A.mjs} +1 -1
  92. package/dist/{email-security-CFKcS-DM.mjs → email-security-DiWtb7cx.mjs} +2 -2
  93. package/dist/{email-sending-B3xSoKcC.mjs → email-sending-DuDjXykw.mjs} +1 -1
  94. package/dist/{errors-CIQDUrWg.mjs → errors-CCFmptqJ.mjs} +1 -1
  95. package/dist/{field-extractors-Csz8QknP.mjs → field-extractors-DNNnkBZH.mjs} +1 -1
  96. package/dist/{firewall-C8FW0Nb2.mjs → firewall-C7eZRNVF.mjs} +22 -16
  97. package/dist/{flagship-v-bGZ_U-.mjs → flagship-BczjsrJ5.mjs} +1 -1
  98. package/dist/{fraud-VvfL2I5a.mjs → fraud-wE0UM2SM.mjs} +1 -1
  99. package/dist/{google-tag-gateway-DF6fS2MQ.mjs → google-tag-gateway-6mvtxcJK.mjs} +1 -1
  100. package/dist/{healthchecks-D3p3E4WL.mjs → healthchecks-aIB3DebS.mjs} +1 -1
  101. package/dist/{hyperdrive-DopYL1dK.mjs → hyperdrive-DHRP8SJS.mjs} +1 -1
  102. package/dist/{iam-cIfyshlf.mjs → iam-6t7-ScrS.mjs} +1 -1
  103. package/dist/{images-BR5fP_6r.mjs → images-CLgvxd0t.mjs} +1 -1
  104. package/dist/index.mjs +1 -1
  105. package/dist/{init-JXRQoqGP.mjs → init-B_DBTMXU.mjs} +1 -1
  106. package/dist/{intel-BvNrrM7V.mjs → intel-jnoIVlYG.mjs} +2 -2
  107. package/dist/{interactive-DOWEcR6_.mjs → interactive-1g0dnrA8.mjs} +1 -1
  108. package/dist/{internal-DcnAVlpA.mjs → internal-Ba3b-Z8J.mjs} +1 -1
  109. package/dist/{ips-BUEIuhhw.mjs → ips-CQ4gFfex.mjs} +1 -1
  110. package/dist/{k2-Dm4LvAhL.mjs → k2-Bsm6rzNX.mjs} +1 -1
  111. package/dist/{kv-7oD-JIak.mjs → kv-DQfnNE-w.mjs} +1 -1
  112. package/dist/{lazy-command-CD1nuS38.mjs → lazy-command-DjGzxiUT.mjs} +1 -1
  113. package/dist/{leaked-credential-checks-B6s8hUYU.mjs → leaked-credential-checks-CaqjG3Oz.mjs} +1 -1
  114. package/dist/list-4MfEFwJN.mjs +2 -0
  115. package/dist/list-ByCv9-Fl.mjs +2 -0
  116. package/dist/{live-CHP4AXSN.mjs → live-BfobGv8W.mjs} +1 -1
  117. package/dist/{load-balancers-B_yvINGW.mjs → load-balancers-BzSCp2Uh.mjs} +1 -1
  118. package/dist/{local-CIeKNHSz.mjs → local-BNmz58v4.mjs} +1 -1
  119. package/dist/local-ChR3YIMU.mjs +2 -0
  120. package/dist/{local-runtime-DOSBgJlo.mjs → local-runtime-DvH92pV8.mjs} +1 -1
  121. package/dist/{login-h8vuvNN3.mjs → login-B9wYab6S.mjs} +2 -2
  122. package/dist/login-ierSCYE6.mjs +2 -0
  123. package/dist/{logpush-B70rNMOP.mjs → logpush-DgfiSd1b.mjs} +2 -2
  124. package/dist/{logs-DqmqCNqQ.mjs → logs-Dan7xU-k.mjs} +1 -1
  125. package/dist/{magic-cloud-networking-CurtlBvl.mjs → magic-cloud-networking-DP8fWC4a.mjs} +3 -3
  126. package/dist/{magic-network-monitoring-OzpX7MfI.mjs → magic-network-monitoring-TAjt04vN.mjs} +1 -1
  127. package/dist/{magic-transit-Ca_CROhr.mjs → magic-transit-BSuLHnQ5.mjs} +1 -1
  128. package/dist/{managed-defense-BRxv0mgy.mjs → managed-defense-CTnIZLg4.mjs} +1 -1
  129. package/dist/{managed-transforms-C7YLIPdN.mjs → managed-transforms-BETvesjp.mjs} +1 -1
  130. package/dist/{mcp-B_StIx94.mjs → mcp-DhjMGaKc.mjs} +1 -1
  131. package/dist/{mesh-YW-p6Tkx.mjs → mesh-jxLLG3t4.mjs} +1 -1
  132. package/dist/{migrate-CrBgU7Xm.mjs → migrate-Bkhk38nJ.mjs} +1 -1
  133. package/dist/{monetization-rMP8HK_4.mjs → monetization-BqDgHlPv.mjs} +1 -1
  134. package/dist/{network-D9Do7C-u.mjs → network-D6BRpgOv.mjs} +2 -2
  135. package/dist/{network-interconnects-DYMhB3TR.mjs → network-interconnects-tP41GbnL.mjs} +1 -1
  136. package/dist/{o11y-HT9_9NUF.mjs → o11y-h4cIC_1T.mjs} +1 -1
  137. package/dist/{oauth-D6uh5ZdS.mjs → oauth-CuM12iNb.mjs} +1 -1
  138. package/dist/{oauth-clients-B_BJco0Z.mjs → oauth-clients-B0voUiXM.mjs} +1 -1
  139. package/dist/{oauth-DetIFT59.mjs → oauth-nDH3nTCa.mjs} +2 -2
  140. package/dist/oauth-scopes-Bhns1ZHW.mjs +4 -0
  141. package/dist/{organization-DhxMPdqU.mjs → organization-Cy55HoRR.mjs} +4 -4
  142. package/dist/organizations-7Q3d9vcW.mjs +4 -0
  143. package/dist/{origin-post-quantum-encryption-CPZQGLmW.mjs → origin-post-quantum-encryption-XBMPCdSL.mjs} +1 -1
  144. package/dist/package-DK3JX4I3.mjs +2 -0
  145. package/dist/{page-rules-0nDfdFWr.mjs → page-rules-BlT5xlhH.mjs} +1 -1
  146. package/dist/{pages-Br-w5HLL.mjs → pages-CIbL62L2.mjs} +2 -2
  147. package/dist/{pay-per-crawl-Di6UpJoo.mjs → pay-per-crawl-BzsBqo_m.mjs} +1 -1
  148. package/dist/{pay-per-use-Bm7Nxf6s.mjs → pay-per-use-DtejLYJ8.mjs} +1 -1
  149. package/dist/{pipelines-BRVI3bV9.mjs → pipelines-LjLb8jq6.mjs} +1 -1
  150. package/dist/{precursor-DyrQWdO5.mjs → precursor-BKp5_Ag4.mjs} +1 -1
  151. package/dist/{previews-rpfwcJzi.mjs → previews-zRYO9uO9.mjs} +1 -1
  152. package/dist/{progress-C_yVLVcl.mjs → progress-_Jux05O5.mjs} +1 -1
  153. package/dist/{prompt-kxvGZ6nF.mjs → prompt-SNVLBS1b.mjs} +1 -1
  154. package/dist/{queues-BGV3aC26.mjs → queues-Ci4rGGC4.mjs} +1 -1
  155. package/dist/{r2-CWMqr3JJ.mjs → r2-qm2hgS43.mjs} +1 -1
  156. package/dist/radar-C_ydbJe_.mjs +300 -0
  157. package/dist/{raw-fetch-C_hWBr7n.mjs → raw-fetch-D3ydyJYW.mjs} +1 -1
  158. package/dist/{ready-BXz5amSL.mjs → ready-hk-_B8z3.mjs} +1 -1
  159. package/dist/{realtime-9jG5GaNK.mjs → realtime-BAvjYmYw.mjs} +2 -2
  160. package/dist/{registrar-C-2I1SJh.mjs → registrar-DD7WZaP2.mjs} +10 -10
  161. package/dist/{registrar-sandbox-D9ldxGPo.mjs → registrar-sandbox-DbxloH5s.mjs} +2 -2
  162. package/dist/{reporting-Bk3dc6Gi.mjs → reporting-CRVg3J1C.mjs} +1 -1
  163. package/dist/{request-headers-B5Rjq7Ic.mjs → request-headers-Cn01EsbI.mjs} +1 -1
  164. package/dist/{request-tracers-H-iRAUdG.mjs → request-tracers-BWs0rdFS.mjs} +1 -1
  165. package/dist/{resource-sharing-A6ITunsT.mjs → resource-sharing-yipIkdbd.mjs} +2 -2
  166. package/dist/{rules-BntvQdnS.mjs → rules-CCtaBLiN.mjs} +1 -1
  167. package/dist/{rulesets-DKz_iYU_.mjs → rulesets-DBEvCNDS.mjs} +1 -1
  168. package/dist/{rum-D9zpcNqT.mjs → rum-gDOKylu_.mjs} +1 -1
  169. package/dist/{run-BlSXngtI.mjs → run-Br8sYjNF.mjs} +1 -1
  170. package/dist/run-LOgTLpob.mjs +2 -0
  171. package/dist/schema-cache-Cb64Nqbt.mjs +3 -0
  172. package/dist/schema-flags-BcbbCWR5.mjs +4 -0
  173. package/dist/{scim-DVhxKKpH.mjs → scim-CM8Xah56.mjs} +1 -1
  174. package/dist/{secrets-store-3mxJrDWJ.mjs → secrets-store-BEnXiYCC.mjs} +2 -2
  175. package/dist/{security-insights-BDLWuG0E.mjs → security-insights-Be5GvdBA.mjs} +5 -5
  176. package/dist/{security-txt-COzdrpdW.mjs → security-txt-BF0PWAEW.mjs} +1 -1
  177. package/dist/{session-X3xaW70I.mjs → session-B7vOqdZU.mjs} +1 -1
  178. package/dist/{shared-foRpbmSV.mjs → shared-CBMFY1VY.mjs} +1 -1
  179. package/dist/{signed-url-Dgi1p-Qi.mjs → signed-url-VDDQlllt.mjs} +1 -1
  180. package/dist/{smart-shield-DSDA5bZt.mjs → smart-shield-DQku_wYi.mjs} +1 -1
  181. package/dist/{snippets-myowgDLd.mjs → snippets-B3FCEMuh.mjs} +1 -1
  182. package/dist/{spawn-C8D5pzxJ.mjs → spawn-9sE67p7c.mjs} +1 -1
  183. package/dist/{spectrum-CB-NzbZ7.mjs → spectrum-nLirlVue.mjs} +5 -5
  184. package/dist/{speed-UqKG1WDl.mjs → speed-C1hCyMPy.mjs} +1 -1
  185. package/dist/{sql-BzikdIje.mjs → sql-DVQOKThL.mjs} +1 -1
  186. package/dist/{src-B9agxHh8.mjs → src-Bh2gHpI7.mjs} +5 -5
  187. package/dist/{ssl-BmWWsUX6.mjs → ssl-CYDRgr24.mjs} +2 -2
  188. package/dist/{startup-profile-B7yHR_YB.mjs → startup-profile-BLvw_Wmc.mjs} +1 -1
  189. package/dist/startup-profile-ByxSdhEl.mjs +2 -0
  190. package/dist/{state-DNuVv5i-.mjs → state-B8n0QU04.mjs} +1 -1
  191. package/dist/state-BTOzaT5L.mjs +2 -0
  192. package/dist/{stream-G87TzC9e.mjs → stream-DHyejrI6.mjs} +1 -1
  193. package/dist/{tags-Ctl4fLux.mjs → tags-DOL6dKQE.mjs} +2 -2
  194. package/dist/{telemetry-CA0_i9-l.mjs → telemetry-DJ8-Q2pU.mjs} +1 -1
  195. package/dist/telemetry-kjElc1zT.mjs +2 -0
  196. package/dist/{tenant-t5yPFQOx.mjs → tenant-2EdATz2Y.mjs} +1 -1
  197. package/dist/{tenant-custom-nameservers-B2ehXfQK.mjs → tenant-custom-nameservers-DhEpJNST.mjs} +1 -1
  198. package/dist/{tunnels-DL_VgV0P.mjs → tunnels-CMAmH4Vh.mjs} +3 -3
  199. package/dist/{turnstile-CEjw5vn6.mjs → turnstile-DTJjDMFp.mjs} +1 -1
  200. package/dist/ui-7zujR-O7.mjs +2 -0
  201. package/dist/{update-check-LF-JcHRF.mjs → update-check-BkCdHK-3.mjs} +1 -1
  202. package/dist/{update-check-2Mn4Z1ln.mjs → update-check-DDGKWkmi.mjs} +1 -1
  203. package/dist/update-check-worker.mjs +1 -1
  204. package/dist/{url-normalization-BL_BkGvP.mjs → url-normalization-BbWOra1u.mjs} +1 -1
  205. package/dist/{url-scanner-CVzV9Syq.mjs → url-scanner-Bj-eS_3C.mjs} +2 -2
  206. package/dist/{user-YnQSmPNR.mjs → user-CMzTHHVX.mjs} +1 -1
  207. package/dist/{vectorize-C5ZwKQzI.mjs → vectorize-D4H7_KPs.mjs} +1 -1
  208. package/dist/version-DIIJ2ixL.mjs +2 -0
  209. package/dist/{waiting-rooms-D9V1Fm16.mjs → waiting-rooms-CqMbVu9s.mjs} +1 -1
  210. package/dist/{web-assets-yzPkWgLy.mjs → web-assets-BgfzyF8t.mjs} +5 -5
  211. package/dist/{web3-DbWNUhP4.mjs → web3-ByCe47FI.mjs} +1 -1
  212. package/dist/{workers-r9Aj68v1.mjs → workers-BiLsPkYD.mjs} +2 -2
  213. package/dist/{workers-builds-DgIDPDhj.mjs → workers-builds-2N71_8MZ.mjs} +1 -1
  214. package/dist/{workers-for-platforms-CoPp1ez5.mjs → workers-for-platforms-BMN4QXgT.mjs} +1 -1
  215. package/dist/{workers-vpc-Cvjg15bk.mjs → workers-vpc-3o7dMg7-.mjs} +1 -1
  216. package/dist/{workflows-D4SIo58Q.mjs → workflows-COiyqt-B.mjs} +1 -1
  217. package/dist/{wrangler-migration-D2HwxIG5.mjs → wrangler-migration-CqSg8IDj.mjs} +5 -5
  218. package/dist/{zaraz-CkqpiZBH.mjs → zaraz-DjwhCH8A.mjs} +2 -2
  219. package/dist/{zero-trust-CEY-lohP.mjs → zero-trust-BmpuDOmH.mjs} +64 -58
  220. package/dist/{zones-BWieAez1.mjs → zones-XYQiz5kF.mjs} +2 -2
  221. package/package.json +12 -12
  222. package/dist/auth-B2V5gsm4.mjs +0 -2
  223. package/dist/auth-CyF_s5ic.mjs +0 -2
  224. package/dist/build-CgpCJjPA.mjs +0 -2
  225. package/dist/cf-CInFH4Ng.mjs +0 -18
  226. package/dist/local-CTaqb1nl.mjs +0 -2
  227. package/dist/login-pt6gTX3x.mjs +0 -2
  228. package/dist/oauth-scopes-Cub2pl0Z.mjs +0 -4
  229. package/dist/organizations-DIduPB74.mjs +0 -4
  230. package/dist/package-Bf2u3-yO.mjs +0 -2
  231. package/dist/radar-D8x_TUAi.mjs +0 -300
  232. package/dist/run-DB1-Sj9a.mjs +0 -2
  233. package/dist/schema-flags-CoTAkrz8.mjs +0 -5
  234. package/dist/startup-profile-zt6cFnBn.mjs +0 -2
  235. package/dist/state-C5mQ9At8.mjs +0 -2
  236. package/dist/telemetry-jl3s2-bN.mjs +0 -2
  237. package/dist/ui-Dt1-eURh.mjs +0 -2
  238. package/dist/version-Bz705iJe.mjs +0 -2
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{r as e,t}from"./rolldown-runtime-BNtqjh-B.mjs";import{n,t as r}from"./ansi-styles-kSC6bEIq.mjs";import{t as i}from"./lazy-command-CD1nuS38.mjs";import{n as a}from"./metadata-Df5kCWJv.mjs";import{r as o}from"./theme-BGHWSKCw.mjs";import{t as s}from"./agent-context-Dtyy4aKL.mjs";import{t as c}from"./args-BAOHroBC.mjs";import{t as l}from"./cli-exit-CstFZ1eJ.mjs";import{n as u,t as d}from"./dotenv-qsoPELMm.mjs";import{n as f}from"./version-Bz705iJe.mjs";import{r as p}from"./blocks-DmOx-xEv.mjs";import{n as m,t as h}from"./session-X3xaW70I.mjs";import{n as g}from"./errors-CIQDUrWg.mjs";import{t as ee}from"./hand-written-dry-run-B82fRl2N.mjs";import{i as _}from"./local-CIeKNHSz.mjs";import{a as te}from"./project-settings-nBMEx1f-.mjs";import{a as v,n as ne,t as re}from"./lifecycle-oud60haK.mjs";import"./ui-Dt1-eURh.mjs";import{createRequire as y}from"node:module";import{setTimeout as b}from"node:timers/promises";import{notStrictEqual as x,strictEqual as S}from"assert";import{basename as ie,dirname as C,extname as ae,join as oe,normalize as se,relative as ce,resolve as le}from"path";import{readFileSync as ue,readdirSync as de,statSync as fe,writeFile as pe}from"fs";import{format as me,inspect as w}from"util";import{fileURLToPath as he}from"url";import{readFileSync as ge,readdirSync as _e}from"node:fs";const ve={right:E,center:Se};var ye=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{r as e,t}from"./rolldown-runtime-BNtqjh-B.mjs";import{n,t as r}from"./ansi-styles-kSC6bEIq.mjs";import{t as i}from"./lazy-command-DjGzxiUT.mjs";import{n as a}from"./metadata-Df5kCWJv.mjs";import{r as o}from"./theme-BGHWSKCw.mjs";import{t as s}from"./agent-context-Dtyy4aKL.mjs";import{t as c}from"./args-BAOHroBC.mjs";import{t as l}from"./cli-exit-CstFZ1eJ.mjs";import{n as u,t as d}from"./dotenv-qsoPELMm.mjs";import{n as f}from"./version-DIIJ2ixL.mjs";import{r as p}from"./blocks-D2tE8dp2.mjs";import{n as m,t as h}from"./session-B7vOqdZU.mjs";import{n as g}from"./errors-CCFmptqJ.mjs";import{t as ee}from"./hand-written-dry-run-B82fRl2N.mjs";import{i as _}from"./local-BNmz58v4.mjs";import{a as te}from"./project-settings-nBMEx1f-.mjs";import{a as v,n as ne,t as re}from"./lifecycle-oud60haK.mjs";import"./ui-7zujR-O7.mjs";import{createRequire as y}from"node:module";import{setTimeout as b}from"node:timers/promises";import{notStrictEqual as x,strictEqual as S}from"assert";import{basename as ie,dirname as C,extname as ae,join as oe,normalize as se,relative as ce,resolve as le}from"path";import{readFileSync as ue,readdirSync as de,statSync as fe,writeFile as pe}from"fs";import{format as me,inspect as w}from"util";import{fileURLToPath as he}from"url";import{readFileSync as ge,readdirSync as _e}from"node:fs";const ve={right:E,center:Se};var ye=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=ve[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+=T(e[a],c,`| `),i+=c,i+=T(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(`
@@ -115,7 +115,7 @@ Please do one of the following:
115
115
  - Use a different option key
116
116
  https://yargs.js.org/docs/#api-reference-version`,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,X,`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[$n](),e===void 0&&(e=I(this,Hn,`f`)),typeof t==`object`&&(F(this,zn,t,`f`),t=n),typeof t==`function`&&(F(this,J,t,`f`),t=!1),t||F(this,Hn,e,`f`),I(this,J,`f`)&&F(this,V,!1,`f`);let r=this[Er](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[fr](),this.parsed=i}):(I(this,J,`f`)&&I(this,J,`f`).call(this,I(this,B,`f`),r,I(this,K,`f`)),this[fr](),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,Rn,e,`f`),this}pkgConf(e,t){P(`<string> [string]`,[e,t],arguments.length);let n=null,r=this[or](t||I(this,kn,`f`));return r[e]&&typeof r[e]==`object`&&(n=Tn(r[e],t||I(this,kn,`f`),this[tr]()[`deep-merge-config`]||!1,I(this,Y,`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=cn(t,(e,t)=>e===`type`&&![`string`,`number`,`boolean`].includes(t)?!1:n.includes(e));let r=I(this,An,`f`).fullCommands[I(this,An,`f`).fullCommands.length-1],i=r?I(this,L,`f`).cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return Ut(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,X,`f`).getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return P(`[boolean]`,[e],arguments.length),F(this,Un,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[sr](this.requiresArg.bind(this),`narg`,e,NaN),this}showCompletionScript(e,t){return P(`[string] [string]`,[e,t],arguments.length),e||=this.$0,I(this,In,`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,X,`f`).hasCachedHelpMessage()){if(!this.parsed){let t=this[Er](I(this,Hn,`f`),void 0,void 0,0,!0);if(M(t))return t.then(()=>{I(this,X,`f`).showHelp(e)}),this}let t=I(this,L,`f`).runDefaultBuilderOn(this);if(M(t))return t.then(()=>{I(this,X,`f`).showHelp(e)}),this}return I(this,X,`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,X,`f`).showHelpOnFail(e,t),this}showVersion(e){return P(`[string|function]`,[e],arguments.length),I(this,X,`f`).showVersion(e),this}skipValidation(e){return P(`<array|string>`,[e],arguments.length),this[$](`skipValidation`,e),this}strict(e){return P(`[boolean]`,[e],arguments.length),F(this,Wn,e!==!1,`f`),this}strictCommands(e){return P(`[boolean]`,[e],arguments.length),F(this,Gn,e!==!1,`f`),this}strictOptions(e){return P(`[boolean]`,[e],arguments.length),F(this,Kn,e!==!1,`f`),this}string(e){return P(`<array|string>`,[e],arguments.length),this[$](`string`,e),this[kr](e),this}terminalWidth(){return P([],0),I(this,Y,`f`).process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return P(`<object>`,[e],arguments.length),F(this,Mn,!1,`f`),I(this,Y,`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,Y,`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()`)}return I(this,X,`f`).usage(e),this}usageConfiguration(e){return P(`<object>`,[e],arguments.length),F(this,qn,e,`f`),this}version(e,t,n){let r=`version`;if(P(`[boolean|string] [string] [string]`,[e,t,n],arguments.length),I(this,Z,`f`)&&(this[Zn](I(this,Z,`f`)),I(this,X,`f`).version(void 0),F(this,Z,null,`f`)),arguments.length===0)n=this[ir](),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,Z,typeof e==`string`?e:r,`f`),t||=I(this,X,`f`).deferY18nLookup(`Show version number`),I(this,X,`f`).version(n||void 0),this.boolean(I(this,Z,`f`)),this.describe(I(this,Z,`f`),t),this}wrap(e){return P(`<number|null|undefined>`,[e],arguments.length),I(this,X,`f`).wrap(e),this}[(L=/* @__PURE__ */ new WeakMap,kn=/* @__PURE__ */ new WeakMap,An=/* @__PURE__ */ new WeakMap,R=/* @__PURE__ */ new WeakMap,z=/* @__PURE__ */ new WeakMap,jn=/* @__PURE__ */ new WeakMap,B=/* @__PURE__ */ new WeakMap,Mn=/* @__PURE__ */ new WeakMap,Nn=/* @__PURE__ */ new WeakMap,V=/* @__PURE__ */ new WeakMap,Pn=/* @__PURE__ */ new WeakMap,H=/* @__PURE__ */ new WeakMap,U=/* @__PURE__ */ new WeakMap,W=/* @__PURE__ */ new WeakMap,G=/* @__PURE__ */ new WeakMap,Fn=/* @__PURE__ */ new WeakMap,In=/* @__PURE__ */ new WeakMap,K=/* @__PURE__ */ new WeakMap,q=/* @__PURE__ */ new WeakMap,Ln=/* @__PURE__ */ new WeakMap,Rn=/* @__PURE__ */ new WeakMap,J=/* @__PURE__ */ new WeakMap,zn=/* @__PURE__ */ new WeakMap,Bn=/* @__PURE__ */ new WeakMap,Vn=/* @__PURE__ */ new WeakMap,Hn=/* @__PURE__ */ new WeakMap,Un=/* @__PURE__ */ new WeakMap,Y=/* @__PURE__ */ new WeakMap,Wn=/* @__PURE__ */ new WeakMap,Gn=/* @__PURE__ */ new WeakMap,Kn=/* @__PURE__ */ new WeakMap,X=/* @__PURE__ */ new WeakMap,qn=/* @__PURE__ */ new WeakMap,Z=/* @__PURE__ */ new WeakMap,Q=/* @__PURE__ */ new WeakMap,Yn)](e){if(!e._||!e[`--`])return e;e._.push.apply(e._,e[`--`]);try{delete e[`--`]}catch{}return e}[Xn](){return{log:(...e)=>{this[xr]()||console.log(...e),F(this,W,!0,`f`),I(this,K,`f`).length&&F(this,K,I(this,K,`f`)+`
117
117
  `,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)},error:(...e)=>{this[xr]()||console.error(...e),F(this,W,!0,`f`),I(this,K,`f`).length&&F(this,K,I(this,K,`f`)+`
118
- `,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)}}}[Zn](e){Ut(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,X,`f`).getDescriptions()[e]}[Qn](e,t,n){I(this,Nn,`f`)[n]||(I(this,Y,`f`).process.emitWarning(e,t),I(this,Nn,`f`)[n]=!0)}[$n](){I(this,Pn,`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,Wn,`f`),strictCommands:I(this,Gn,`f`),strictOptions:I(this,Kn,`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,zn,`f`)}),I(this,X,`f`).freeze(),I(this,Q,`f`).freeze(),I(this,L,`f`).freeze(),I(this,H,`f`).freeze()}[er](){let e=``,t;return t=/\b(node|iojs|electron|bun)(\.exe)?$/.test(I(this,Y,`f`).process.argv()[0])?I(this,Y,`f`).process.argv().slice(1,2):I(this,Y,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[wr](I(this,kn,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),I(this,Y,`f`).getEnv(`_`)&&I(this,Y,`f`).getProcessArgvBin()===I(this,Y,`f`).getEnv(`_`)&&(e=I(this,Y,`f`).getEnv(`_`).replace(`${I(this,Y,`f`).path.dirname(I(this,Y,`f`).process.execPath())}/`,``)),e}[tr](){return I(this,Rn,`f`)}[nr](){return I(this,qn,`f`)}[rr](){if(!I(this,Mn,`f`))return;let e=I(this,Y,`f`).getEnv(`LC_ALL`)||I(this,Y,`f`).getEnv(`LC_MESSAGES`)||I(this,Y,`f`).getEnv(`LANG`)||I(this,Y,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[ir](){return this[or]().version||`unknown`}[ar](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)I(this,Y,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[or](e){let t=e||`*`;if(I(this,Bn,`f`)[t])return I(this,Bn,`f`)[t];let n={};try{let t=e||I(this,Y,`f`).mainFilename;I(this,Y,`f`).path.extname(t)&&(t=I(this,Y,`f`).path.dirname(t));let r=I(this,Y,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});j(r,void 0,I(this,Y,`f`)),n=JSON.parse(I(this,Y,`f`).readFileSync(r,`utf8`))}catch{}return I(this,Bn,`f`)[t]=n||{},I(this,Bn,`f`)[t]}[$](e,t){t=[].concat(t),t.forEach(t=>{t=this[ur](t),I(this,q,`f`)[e].push(t)})}[sr](e,t,n,r){this[lr](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=n})}[cr](e,t,n,r){this[lr](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=(I(this,q,`f`)[e][t]||[]).concat(n)})}[lr](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 Ut(n))e(t,n[t]);else i(t,this[ur](n),r)}[ur](e){return e===`__proto__`?`___proto___`:e}[dr](e,t){return this[sr](this[dr].bind(this),`key`,e,t),this}[fr](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=I(this,Pn,`f`).pop();j(f,void 0,I(this,Y,`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,Wn,e,`f`)}}.value,strictCommands:{set value(e){F(s,Gn,e,`f`)}}.value,strictOptions:{set value(e){F(c,Kn,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,zn,e,`f`)}}.value}=f,I(this,q,`f`).configObjects=p,I(this,X,`f`).unfreeze(),I(this,Q,`f`).unfreeze(),I(this,L,`f`).unfreeze(),I(this,H,`f`).unfreeze()}[pr](e,t){return Zt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[mr].bind(this),getContext:this[hr].bind(this),getHasOutput:this[gr].bind(this),getLoggerInstance:this[_r].bind(this),getParseContext:this[vr].bind(this),getParserConfiguration:this[tr].bind(this),getUsageConfiguration:this[nr].bind(this),getUsageInstance:this[yr].bind(this),getValidationInstance:this[br].bind(this),hasParseCallback:this[xr].bind(this),isGlobalContext:this[Sr].bind(this),postProcess:this[Cr].bind(this),reset:this[Tr].bind(this),runValidation:this[Dr].bind(this),runYargsParserAndExecuteCommands:this[Er].bind(this),setHasOutput:this[Or].bind(this)}}[mr](){return I(this,L,`f`)}[hr](){return I(this,An,`f`)}[gr](){return I(this,W,`f`)}[_r](){return I(this,In,`f`)}[vr](){return I(this,zn,`f`)||{}}[yr](){return I(this,X,`f`)}[br](){return I(this,Q,`f`)}[xr](){return!!I(this,J,`f`)}[Sr](){return I(this,Fn,`f`)}[Cr](e,t,n,r){return n||M(e)||(t||(e=this[Yn](e)),(this[tr]()[`parse-positional-numbers`]||this[tr]()[`parse-positional-numbers`]===void 0)&&(e=this[ar](e)),r&&(e=Xt(e,this,I(this,H,`f`).getMiddleware(),!1))),e}[Tr](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,Vn,`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]=cn(I(this,q,`f`)[e],e=>!n[e])}),t.envPrefix=I(this,q,`f`).envPrefix,F(this,q,t,`f`),F(this,X,I(this,X,`f`)?I(this,X,`f`).reset(n):dn(this,I(this,Y,`f`)),`f`),F(this,Q,I(this,Q,`f`)?I(this,Q,`f`).reset(n):Sn(this,I(this,X,`f`),I(this,Y,`f`)),`f`),F(this,L,I(this,L,`f`)?I(this,L,`f`).reset():tn(I(this,X,`f`),I(this,Q,`f`),I(this,H,`f`),I(this,Y,`f`)),`f`),I(this,R,`f`)||F(this,R,_n(this,I(this,X,`f`),I(this,L,`f`),I(this,Y,`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}[wr](e,t){return I(this,Y,`f`).path.relative(e,t)}[Er](e,t,n,r=0,i=!1){let a=!!n||i;e||=I(this,Hn,`f`),I(this,q,`f`).__=I(this,Y,`f`).y18n.__,I(this,q,`f`).configuration=this[tr]();let o=!!I(this,q,`f`).configuration[`populate--`],s=Object.assign({},I(this,q,`f`).configuration,{"populate--":!0}),c=I(this,Y,`f`).Parser.detailed(e,Object.assign({},I(this,q,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,I(this,zn,`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,Z,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&I(this,X,`f`).clearCachedHelpMessage();try{if(this[rr](),t)return this[Cr](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,Fn,!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[Cr](e,o,!!n,!1)}if(!e&&a!==I(this,z,`f`)){e=a;break}}!I(this,L,`f`).hasDefaultCommand()&&I(this,Un,`f`)&&e&&!h&&I(this,Q,`f`).recommendCommands(e,s)}I(this,z,`f`)&&l._.includes(I(this,z,`f`))&&!m&&(I(this,V,`f`)&&ln(!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[Cr](e,o,!!n,!1)}if(m){I(this,V,`f`)&&ln(!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,In,`f`).log(e)}),this.exit(0)}),this[Cr](l,!o,!!n,!1)}if(I(this,W,`f`)||(f?(I(this,V,`f`)&&ln(!0),a=!0,this.showHelp(e=>{I(this,In,`f`).log(e),this.exit(0)})):p&&(I(this,V,`f`)&&ln(!0),a=!0,I(this,X,`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[Dr](d,{},c.error);n||(u=Xt(l,this,I(this,H,`f`).getMiddleware(),!0)),u=this[pr](e,u??l),M(u)&&!n&&(u=u.then(()=>Xt(l,this,I(this,H,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof N)I(this,X,`f`).fail(e.message,e);else throw e}return this[Cr](u??l,o,!!n,!0)}[Dr](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new N(n.message);I(this,Q,`f`).nonOptionCount(a),I(this,Q,`f`).requiredArguments(a,i);let o=!1;I(this,Gn,`f`)&&(o=I(this,Q,`f`).unknownCommands(a)),I(this,Wn,`f`)&&!o?I(this,Q,`f`).unknownArguments(a,e,t,!!r):I(this,Kn,`f`)&&I(this,Q,`f`).unknownArguments(a,e,{},!1,!1),I(this,Q,`f`).limitedChoices(a),I(this,Q,`f`).implications(a),I(this,Q,`f`).conflicting(a)}}[Or](){F(this,W,!0,`f`)}[kr](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 jr(e){return!!e&&typeof e.getInternalMethods==`function`}const Mr=Jn(Vt),Nr=[{command:i(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-CTOO4FJ4.mjs`),null),hideCommand:!1},{command:i(`access`,`Access protected applications and services`,()=>import(`./access-DFGLlXpy.mjs`),null),hideCommand:!1},{command:i(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-C-wpV8Az.mjs`),null),hideCommand:!1},{command:i(`acm`,`acm`,()=>import(`./acm-thIt17mv.mjs`),null),hideCommand:!1},{command:i(`addressing`,`addressing`,()=>import(`./addressing-D7VI7-Oi.mjs`),null),hideCommand:!1},{command:i(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-duLTH8pl.mjs`),null),hideCommand:!1},{command:i(`ai`,`ai`,()=>import(`./ai-ctIjDCq0.mjs`),null),hideCommand:!1},{command:i(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-CjhuS21p.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-B1TIw7wl.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-DUQBnOWH.mjs`),null),hideCommand:!1},{command:i(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-bdABwEIR.mjs`),null),hideCommand:!1},{command:i(`alerting`,`alerting`,()=>import(`./alerting-I_KErGZy.mjs`),null),hideCommand:!0},{command:i(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-DGxcDAWu.mjs`),null),hideCommand:!1},{command:i(`analytics-engine`,`analytics-engine`,()=>import(`./analytics-engine-DNNokw1O.mjs`),null),hideCommand:!0},{command:i(`api-security`,`api-security`,()=>import(`./api-security-CsPrJ-Xw.mjs`),null),hideCommand:!1},{command:i(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-BhNmRYk5.mjs`),null),hideCommand:!1},{command:i(`artifacts`,`artifacts`,()=>import(`./artifacts-DRo8KadB.mjs`),null),hideCommand:!1},{command:i(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-CzxDyTbx.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-DoTn8zvi.mjs`),null),hideCommand:!1},{command:i(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-CMbLzZV0.mjs`),null),hideCommand:!1},{command:i(`bot-management`,`bot-management`,()=>import(`./bot-management-CJs5WwAW.mjs`),null),hideCommand:!1},{command:i(`botnet-feed`,`Botnet threat intelligence feeds — IP and ASN-level data on known command-and-control infrastructure`,()=>import(`./botnet-feed-DeF7P5lI.mjs`),null),hideCommand:!1},{command:i(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-dx_B8OWa.mjs`),null),hideCommand:!1},{command:i(`browser-run`,`browser-run`,()=>import(`./browser-run-fRn9ItYu.mjs`),null),hideCommand:!1},{command:i(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-5YhQ_zIm.mjs`),null),hideCommand:!1},{command:i(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-WQyxt7O5.mjs`),null),hideCommand:!1},{command:i(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-COuAb7BM.mjs`),null),hideCommand:!1},{command:i(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-D1gjX0Dx.mjs`),null),hideCommand:!1},{command:i(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-BmXgL6kB.mjs`),null),hideCommand:!1},{command:i(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-pNU4QmsW.mjs`),null),hideCommand:!1},{command:i(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-BpRPtTdD.mjs`),null),hideCommand:!1},{command:i(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-pNfynA2r.mjs`),null),hideCommand:!1},{command:i(`connectors`,`connectors`,()=>import(`./connectors-CiWTAGHh.mjs`),null),hideCommand:!1},{command:i(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-Dvq0NjQg.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-B69hOyhb.mjs`),null),hideCommand:!1},{command:i(`cps`,`cps`,()=>import(`./cps-DLgWaZMT.mjs`),null),hideCommand:!1},{command:i(`csam-scanner`,`csam-scanner`,()=>import(`./csam-scanner-D1928b81.mjs`),null),hideCommand:!1},{command:i(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-DrxWBjmx.mjs`),null),hideCommand:!1},{command:i(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-BP1pxK1F.mjs`),null),hideCommand:!1},{command:i(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-5DJLY479.mjs`),null),hideCommand:!1},{command:i(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-CNAsOY9a.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-Dge80Qgq.mjs`),null),hideCommand:!1},{command:i(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-BKKinCge.mjs`),null),hideCommand:!1},{command:i(`dls`,`dls`,()=>import(`./dls-DU4HnxED.mjs`),null),hideCommand:!1},{command:i(`dns`,`dns`,()=>import(`./dns-BzdH3geY.mjs`),null),hideCommand:!1},{command:i(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-puq_86Wd.mjs`),null),hideCommand:!1},{command:i(`durable-objects`,`durable-objects`,()=>import(`./durable-objects-Dg6XPcsB.mjs`),null),hideCommand:!1},{command:i(`email-auth`,`email-auth`,()=>import(`./email-auth-DXR0NU9R.mjs`),null),hideCommand:!1},{command:i(`email-domains`,`email-domains`,()=>import(`./email-domains-B00mAtjT.mjs`),null),hideCommand:!1},{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-Cm19q9hA.mjs`),null),hideCommand:!1},{command:i(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-CFKcS-DM.mjs`),null),hideCommand:!1},{command:i(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-B3xSoKcC.mjs`),null),hideCommand:!1},{command:i(`field-extractors`,`field-extractors`,()=>import(`./field-extractors-Csz8QknP.mjs`),null),hideCommand:!0},{command:i(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-C8FW0Nb2.mjs`),null),hideCommand:!1},{command:i(`flagship`,`flagship`,()=>import(`./flagship-v-bGZ_U-.mjs`),null),hideCommand:!1},{command:i(`fraud`,`fraud`,()=>import(`./fraud-VvfL2I5a.mjs`),null),hideCommand:!1},{command:i(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-DF6fS2MQ.mjs`),null),hideCommand:!1},{command:i(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-D3p3E4WL.mjs`),null),hideCommand:!1},{command:i(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-DopYL1dK.mjs`),null),hideCommand:!1},{command:i(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-cIfyshlf.mjs`),null),hideCommand:!0},{command:i(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-BR5fP_6r.mjs`),null),hideCommand:!1},{command:i(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-BvNrrM7V.mjs`),null),hideCommand:!1},{command:i(`internal`,`internal`,()=>import(`./internal-DcnAVlpA.mjs`),null),hideCommand:!0},{command:i(`ips`,`ips`,()=>import(`./ips-BUEIuhhw.mjs`),null),hideCommand:!0},{command:i(`k2`,`Durable, ordered event streams that you produce records to and consume from with subscriptions`,()=>import(`./k2-Dm4LvAhL.mjs`),null),hideCommand:!1},{command:i(`kv`,`kv`,()=>import(`./kv-7oD-JIak.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-B6s8hUYU.mjs`),null),hideCommand:!1},{command:i(`live`,`live`,()=>import(`./live-CHP4AXSN.mjs`),null),hideCommand:!0},{command:i(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-B_yvINGW.mjs`),null),hideCommand:!1},{command:i(`logpush`,`logpush`,()=>import(`./logpush-B70rNMOP.mjs`),null),hideCommand:!1},{command:i(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-DqmqCNqQ.mjs`),null),hideCommand:!1},{command:i(`magic-cloud-networking`,`magic-cloud-networking`,()=>import(`./magic-cloud-networking-CurtlBvl.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-OzpX7MfI.mjs`),null),hideCommand:!0},{command:i(`magic-transit`,`DDoS-protected network transit — GRE/IPsec tunnels, static routes, Magic WAN sites, connectors, and packet captures`,()=>import(`./magic-transit-Ca_CROhr.mjs`),null),hideCommand:!1},{command:i(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-BRxv0mgy.mjs`),null),hideCommand:!1},{command:i(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-C7YLIPdN.mjs`),null),hideCommand:!0},{command:i(`mcp`,`Manage MCP portals and upstream MCP servers for Cloudflare Access AI controls`,()=>import(`./mcp-B_StIx94.mjs`),null),hideCommand:!1},{command:i(`mesh`,`mesh`,()=>import(`./mesh-YW-p6Tkx.mjs`),null),hideCommand:!1},{command:i(`monetization`,`monetization`,()=>import(`./monetization-rMP8HK_4.mjs`),null),hideCommand:!1},{command:i(`network`,`network`,()=>import(`./network-D9Do7C-u.mjs`),null),hideCommand:!1},{command:i(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-DYMhB3TR.mjs`),null),hideCommand:!1},{command:i(`o11y`,`o11y`,()=>import(`./o11y-HT9_9NUF.mjs`),null),hideCommand:!1},{command:i(`oauth-clients`,`oauth-clients`,()=>import(`./oauth-clients-B_BJco0Z.mjs`),null),hideCommand:!0},{command:i(`oauth-scopes`,`oauth-scopes`,()=>import(`./oauth-scopes-Cub2pl0Z.mjs`),null),hideCommand:!0},{command:i(`organization`,`organization`,()=>import(`./organization-DhxMPdqU.mjs`),null),hideCommand:!1},{command:i(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-DIduPB74.mjs`),null),hideCommand:!1},{command:i(`origin-post-quantum-encryption`,`Enable post-quantum key exchange for connections between Cloudflare and your origin server`,()=>import(`./origin-post-quantum-encryption-CPZQGLmW.mjs`),null),hideCommand:!1},{command:i(`page-rules`,`page-rules`,()=>import(`./page-rules-0nDfdFWr.mjs`),null),hideCommand:!0},{command:i(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-Br-w5HLL.mjs`),null),hideCommand:!1},{command:i(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-Di6UpJoo.mjs`),null),hideCommand:!1},{command:i(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-Bm7Nxf6s.mjs`),null),hideCommand:!1},{command:i(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-BRVI3bV9.mjs`),null),hideCommand:!1},{command:i(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-DyrQWdO5.mjs`),null),hideCommand:!0},{command:i(`previews`,`Manage Worker Previews`,()=>import(`./previews-rpfwcJzi.mjs`),null),hideCommand:!1},{command:i(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-BGV3aC26.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-CWMqr3JJ.mjs`),null),hideCommand:!1},{command:i(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-D8x_TUAi.mjs`),null),hideCommand:!1},{command:i(`ready`,`ready`,()=>import(`./ready-BXz5amSL.mjs`),null),hideCommand:!0},{command:i(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-9jG5GaNK.mjs`),null),hideCommand:!1},{command:i(`registrar`,`registrar`,()=>import(`./registrar-C-2I1SJh.mjs`),null),hideCommand:!1},{command:i(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-D9ldxGPo.mjs`),null),hideCommand:!1},{command:i(`reporting`,`reporting`,()=>import(`./reporting-Bk3dc6Gi.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-H-iRAUdG.mjs`),null),hideCommand:!1},{command:i(`resource-sharing`,`Share Cloudflare resources (zones, accounts) across organizations with granular access controls`,()=>import(`./resource-sharing-A6ITunsT.mjs`),null),hideCommand:!1},{command:i(`rules`,`Resources used by Cloudflare rules and rulesets`,()=>import(`./rules-BntvQdnS.mjs`),null),hideCommand:!1},{command:i(`rulesets`,`rulesets`,()=>import(`./rulesets-DKz_iYU_.mjs`),null),hideCommand:!1},{command:i(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-D9zpcNqT.mjs`),null),hideCommand:!0},{command:i(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-DVhxKKpH.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-3mxJrDWJ.mjs`),null),hideCommand:!1},{command:i(`security-insights`,`security-insights`,()=>import(`./security-insights-BDLWuG0E.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-COzdrpdW.mjs`),null),hideCommand:!1},{command:i(`signed-url`,`signed-url`,()=>import(`./signed-url-Dgi1p-Qi.mjs`),null),hideCommand:!0},{command:i(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-DSDA5bZt.mjs`),null),hideCommand:!1},{command:i(`snippets`,`snippets`,()=>import(`./snippets-myowgDLd.mjs`),null),hideCommand:!1},{command:i(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-CB-NzbZ7.mjs`),null),hideCommand:!1},{command:i(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-UqKG1WDl.mjs`),null),hideCommand:!1},{command:i(`sql`,`sql`,()=>import(`./sql-BzikdIje.mjs`),null),hideCommand:!1},{command:i(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-BmWWsUX6.mjs`),null),hideCommand:!1},{command:i(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-G87TzC9e.mjs`),null),hideCommand:!1},{command:i(`tags`,`tags`,()=>import(`./tags-Ctl4fLux.mjs`),null),hideCommand:!1},{command:i(`tenant`,`tenant`,()=>import(`./tenant-t5yPFQOx.mjs`),null),hideCommand:!1},{command:i(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-B2ehXfQK.mjs`),null),hideCommand:!0},{command:i(`tunnels`,`tunnels`,()=>import(`./tunnels-DL_VgV0P.mjs`),null),hideCommand:!1},{command:i(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-CEjw5vn6.mjs`),null),hideCommand:!1},{command:i(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-BL_BkGvP.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-CVzV9Syq.mjs`),null),hideCommand:!0},{command:i(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-YnQSmPNR.mjs`),null),hideCommand:!1},{command:i(`vectorize`,`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,()=>import(`./vectorize-C5ZwKQzI.mjs`),null),hideCommand:!1},{command:i(`waiting-rooms`,`Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages`,()=>import(`./waiting-rooms-D9V1Fm16.mjs`),null),hideCommand:!1},{command:i(`web-assets`,`web-assets`,()=>import(`./web-assets-yzPkWgLy.mjs`),null),hideCommand:!1},{command:i(`web3`,`web3`,()=>import(`./web3-DbWNUhP4.mjs`),null),hideCommand:!0},{command:i(`workers`,`workers`,()=>import(`./workers-r9Aj68v1.mjs`),null),hideCommand:!1},{command:i(`workers-builds`,`workers-builds`,()=>import(`./workers-builds-DgIDPDhj.mjs`),null),hideCommand:!0},{command:i(`workers-for-platforms`,`workers-for-platforms`,()=>import(`./workers-for-platforms-CoPp1ez5.mjs`),null),hideCommand:!1},{command:i(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-Cvjg15bk.mjs`),null),hideCommand:!1},{command:i(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-D4SIo58Q.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-CkqpiZBH.mjs`),null),hideCommand:!1},{command:i(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-CEY-lohP.mjs`),null),hideCommand:!1},{command:i(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-BWieAez1.mjs`),null),hideCommand:!1}];function Pr(e){return typeof e==`object`&&!!e&&`schemas`in e&&typeof e.schemas==`object`&&e.schemas!==null&&!Array.isArray(e.schemas)}function Fr(e,t){if(!t)return e;let n=a(import.meta.url,`schemas.json`,Pr);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 Ir=[{kind:`root`,dryRun:`preview`,command:`auth`,describe:`Manage authentication and profiles`,dir:`auth`},{kind:`root`,dryRun:`preview`,command:`login`,describe:!1,dir:`login`},{kind:`root`,dryRun:`preview`,command:`build`,describe:`Build a project for Cloudflare`,dir:`build`},{kind:`root`,dryRun:`preview`,command:`complete [shell]`,describe:`Generate and handle shell completions`,dir:`completions`},{kind:`root`,dryRun:`native`,command:`deploy`,describe:`Deploy a project to Cloudflare`,dir:`deploy`},{kind:`root`,dryRun:`preview`,command:`dev [implArgs..]`,describe:`Run the project's Cloudflare dev server`,dir:`dev`},{kind:`root`,dryRun:`preview`,command:`docs`,describe:`Search live Cloudflare documentation`,dir:`docs`},{kind:`root`,dryRun:`preview`,command:`init [directory]`,describe:`Create a new Cloudflare project or set up an existing one`,dir:`init`},{kind:`root`,dryRun:`native`,command:`migrate [path]`,describe:`Migrate a Wrangler project to cf`,dir:`migrate`},{kind:`root`,dryRun:`preview`,command:`cli`,describe:`Discover commands and configure the cf CLI`,dir:`cli`},{kind:`leaf`,dryRun:`preview`,parent:`previews`,name:`deploy`,dir:`previews/deploy`},{kind:`parentOverride`,parent:`previews`,describe:`Manage Worker Previews`,expose:!0,createIfMissing:!0},{kind:`root`,dryRun:`preview`,command:`schema [command..]`,describe:`Show API schema details for a command`,dir:`schema`},{kind:`root`,dryRun:`preview`,command:`tools`,describe:!1,dir:`tools`},{kind:`leafOverride`,dryRun:`native`,emitKey:`ai/run`,dir:`ai/run`},{kind:`leafOverride`,dryRun:`native`,emitKey:`registrar/registrations/create`,dir:`registrar/registrations/create`},{kind:`leaf`,dryRun:`native`,parent:`workers/versions`,name:`create`,dir:`workers/versions/create`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`build`,dir:`containers/build`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`push`,dir:`containers/push`},{kind:`leaf`,dryRun:`preview`,parent:`containers/images`,name:`list`,dir:`containers/images/list`},{kind:`leaf`,dryRun:`preview`,parent:`containers/images`,name:`delete`,dir:`containers/images/delete`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`ssh`,dir:`containers/ssh`},{kind:`leaf`,dryRun:`preview`,parent:`pages`,name:`deploy`,dir:`pages/deploy`},{kind:`leaf`,dryRun:`preview`,parent:`workers`,name:`check`,dir:`workers/check`},{kind:`leaf`,dryRun:`preview`,parent:`workers`,name:`types`,dir:`workers/types`},{kind:`parentOverride`,parent:`access`,describe:`Access protected applications and services`,expose:!0},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`login`,dir:`access/login`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`token`,dir:`access/token`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`ssh-config`,dir:`access/ssh-config`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`ssh-gen`,dir:`access/ssh-gen`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`tcp`,dir:`access/tcp`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`curl`,dir:`access/curl`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`diag`,dir:`tunnels/diag`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`login`,dir:`tunnels/login`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`quick-start`,dir:`tunnels/quick-start`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`ready`,dir:`tunnels/ready`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`run`,dir:`tunnels/run`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`tail`,dir:`tunnels/tail`},{kind:`subgroup`,dryRun:`preview`,parent:`d1`,name:`migrations`,dir:`d1/migrations`,describe:`Create, list, and apply D1 database migrations`},{kind:`subgroup`,dryRun:`native`,parent:`workers`,name:`triggers`,dir:`workers/triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`}];function Lr(){return Ir.filter(e=>e.kind===`root`)}function Rr(e){return e.command.split(/\s+/)[0]??e.command}const zr={auth:{load:()=>import(`./auth-CyF_s5ic.mjs`),telemetry:{command:`auth`,recordArgs:!1}},login:{load:()=>import(`./login-pt6gTX3x.mjs`),telemetry:null},build:{load:()=>import(`./build-CgpCJjPA.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},completions:{load:()=>import(`./completions-BshG3sAO.mjs`),telemetry:null},deploy:{load:()=>import(`./deploy-CR5b7uhB.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`,`provision`]}}},dev:{load:()=>import(`./dev-BczBHbpj.mjs`),telemetry:{command:`dev`,recordArgs:!1}},init:{load:()=>import(`./init-JXRQoqGP.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},migrate:{load:()=>import(`./migrate-CrBgU7Xm.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},docs:{load:()=>import(`./docs-AWb7X2VX.mjs`),telemetry:{command:`docs`,recordArgs:!1}},cli:{load:()=>import(`./cli-CgkhNdjb.mjs`),telemetry:{command:`cli`,recordArgs:!1}},schema:{load:()=>import(`./schema-DuLIZRhA.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},tools:{load:()=>import(`./tools-C-vmgYSv.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}}};function Br(){return Lr().map(e=>({...e,...zr[e.dir]}))}const Vr={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}},"temporary-account":{type:`boolean`,description:`Create or reuse a temporary account when no Cloudflare credentials are available`,global:!0,default:!1,hidden:!0},"event-code":{type:`string`,description:`Specify the event code to use when creating a temporary account for an event`,requiresArg:!0,global:!0,hidden:!0,coerce:e=>{if(Array.isArray(e))throw Error(`--event-code expects a single value.`);let t=e.trim();if(!t)throw Error(`--event-code cannot be empty.`);return t}},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}},Hr={help:{alias:`h`,description:`Show help`},version:{alias:`v`,description:`Show version number`}};Object.entries({...Vr,...Hr}).flatMap(([e,{alias:t}])=>[e,...t===void 0?[]:typeof t==`string`?[t]:t]);function Ur(e,t){return Object.entries(Vr).some(([n,r])=>{if(r.type===`boolean`&&t!==`true`&&t!==`false`)return!1;let i=r.alias;return[n,...Array.isArray(i)?i:i===void 0?[]:[i]].some(t=>e===(t.length===1?`-${t}`:`--${t}`))})}const Wr=Br().map(e=>ee(i(e.command,e.describe,e.load,e.telemetry),e.dryRun)),Gr=new Set(Lr().map(Rr));function Kr(e){return s().isAgentic?`=== STOP: AGENT COMMAND DISCOVERY ===
118
+ `,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)}}}[Zn](e){Ut(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,X,`f`).getDescriptions()[e]}[Qn](e,t,n){I(this,Nn,`f`)[n]||(I(this,Y,`f`).process.emitWarning(e,t),I(this,Nn,`f`)[n]=!0)}[$n](){I(this,Pn,`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,Wn,`f`),strictCommands:I(this,Gn,`f`),strictOptions:I(this,Kn,`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,zn,`f`)}),I(this,X,`f`).freeze(),I(this,Q,`f`).freeze(),I(this,L,`f`).freeze(),I(this,H,`f`).freeze()}[er](){let e=``,t;return t=/\b(node|iojs|electron|bun)(\.exe)?$/.test(I(this,Y,`f`).process.argv()[0])?I(this,Y,`f`).process.argv().slice(1,2):I(this,Y,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[wr](I(this,kn,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),I(this,Y,`f`).getEnv(`_`)&&I(this,Y,`f`).getProcessArgvBin()===I(this,Y,`f`).getEnv(`_`)&&(e=I(this,Y,`f`).getEnv(`_`).replace(`${I(this,Y,`f`).path.dirname(I(this,Y,`f`).process.execPath())}/`,``)),e}[tr](){return I(this,Rn,`f`)}[nr](){return I(this,qn,`f`)}[rr](){if(!I(this,Mn,`f`))return;let e=I(this,Y,`f`).getEnv(`LC_ALL`)||I(this,Y,`f`).getEnv(`LC_MESSAGES`)||I(this,Y,`f`).getEnv(`LANG`)||I(this,Y,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[ir](){return this[or]().version||`unknown`}[ar](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)I(this,Y,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[or](e){let t=e||`*`;if(I(this,Bn,`f`)[t])return I(this,Bn,`f`)[t];let n={};try{let t=e||I(this,Y,`f`).mainFilename;I(this,Y,`f`).path.extname(t)&&(t=I(this,Y,`f`).path.dirname(t));let r=I(this,Y,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});j(r,void 0,I(this,Y,`f`)),n=JSON.parse(I(this,Y,`f`).readFileSync(r,`utf8`))}catch{}return I(this,Bn,`f`)[t]=n||{},I(this,Bn,`f`)[t]}[$](e,t){t=[].concat(t),t.forEach(t=>{t=this[ur](t),I(this,q,`f`)[e].push(t)})}[sr](e,t,n,r){this[lr](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=n})}[cr](e,t,n,r){this[lr](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=(I(this,q,`f`)[e][t]||[]).concat(n)})}[lr](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 Ut(n))e(t,n[t]);else i(t,this[ur](n),r)}[ur](e){return e===`__proto__`?`___proto___`:e}[dr](e,t){return this[sr](this[dr].bind(this),`key`,e,t),this}[fr](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=I(this,Pn,`f`).pop();j(f,void 0,I(this,Y,`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,Wn,e,`f`)}}.value,strictCommands:{set value(e){F(s,Gn,e,`f`)}}.value,strictOptions:{set value(e){F(c,Kn,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,zn,e,`f`)}}.value}=f,I(this,q,`f`).configObjects=p,I(this,X,`f`).unfreeze(),I(this,Q,`f`).unfreeze(),I(this,L,`f`).unfreeze(),I(this,H,`f`).unfreeze()}[pr](e,t){return Zt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[mr].bind(this),getContext:this[hr].bind(this),getHasOutput:this[gr].bind(this),getLoggerInstance:this[_r].bind(this),getParseContext:this[vr].bind(this),getParserConfiguration:this[tr].bind(this),getUsageConfiguration:this[nr].bind(this),getUsageInstance:this[yr].bind(this),getValidationInstance:this[br].bind(this),hasParseCallback:this[xr].bind(this),isGlobalContext:this[Sr].bind(this),postProcess:this[Cr].bind(this),reset:this[Tr].bind(this),runValidation:this[Dr].bind(this),runYargsParserAndExecuteCommands:this[Er].bind(this),setHasOutput:this[Or].bind(this)}}[mr](){return I(this,L,`f`)}[hr](){return I(this,An,`f`)}[gr](){return I(this,W,`f`)}[_r](){return I(this,In,`f`)}[vr](){return I(this,zn,`f`)||{}}[yr](){return I(this,X,`f`)}[br](){return I(this,Q,`f`)}[xr](){return!!I(this,J,`f`)}[Sr](){return I(this,Fn,`f`)}[Cr](e,t,n,r){return n||M(e)||(t||(e=this[Yn](e)),(this[tr]()[`parse-positional-numbers`]||this[tr]()[`parse-positional-numbers`]===void 0)&&(e=this[ar](e)),r&&(e=Xt(e,this,I(this,H,`f`).getMiddleware(),!1))),e}[Tr](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,Vn,`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]=cn(I(this,q,`f`)[e],e=>!n[e])}),t.envPrefix=I(this,q,`f`).envPrefix,F(this,q,t,`f`),F(this,X,I(this,X,`f`)?I(this,X,`f`).reset(n):dn(this,I(this,Y,`f`)),`f`),F(this,Q,I(this,Q,`f`)?I(this,Q,`f`).reset(n):Sn(this,I(this,X,`f`),I(this,Y,`f`)),`f`),F(this,L,I(this,L,`f`)?I(this,L,`f`).reset():tn(I(this,X,`f`),I(this,Q,`f`),I(this,H,`f`),I(this,Y,`f`)),`f`),I(this,R,`f`)||F(this,R,_n(this,I(this,X,`f`),I(this,L,`f`),I(this,Y,`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}[wr](e,t){return I(this,Y,`f`).path.relative(e,t)}[Er](e,t,n,r=0,i=!1){let a=!!n||i;e||=I(this,Hn,`f`),I(this,q,`f`).__=I(this,Y,`f`).y18n.__,I(this,q,`f`).configuration=this[tr]();let o=!!I(this,q,`f`).configuration[`populate--`],s=Object.assign({},I(this,q,`f`).configuration,{"populate--":!0}),c=I(this,Y,`f`).Parser.detailed(e,Object.assign({},I(this,q,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,I(this,zn,`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,Z,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&I(this,X,`f`).clearCachedHelpMessage();try{if(this[rr](),t)return this[Cr](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,Fn,!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[Cr](e,o,!!n,!1)}if(!e&&a!==I(this,z,`f`)){e=a;break}}!I(this,L,`f`).hasDefaultCommand()&&I(this,Un,`f`)&&e&&!h&&I(this,Q,`f`).recommendCommands(e,s)}I(this,z,`f`)&&l._.includes(I(this,z,`f`))&&!m&&(I(this,V,`f`)&&ln(!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[Cr](e,o,!!n,!1)}if(m){I(this,V,`f`)&&ln(!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,In,`f`).log(e)}),this.exit(0)}),this[Cr](l,!o,!!n,!1)}if(I(this,W,`f`)||(f?(I(this,V,`f`)&&ln(!0),a=!0,this.showHelp(e=>{I(this,In,`f`).log(e),this.exit(0)})):p&&(I(this,V,`f`)&&ln(!0),a=!0,I(this,X,`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[Dr](d,{},c.error);n||(u=Xt(l,this,I(this,H,`f`).getMiddleware(),!0)),u=this[pr](e,u??l),M(u)&&!n&&(u=u.then(()=>Xt(l,this,I(this,H,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof N)I(this,X,`f`).fail(e.message,e);else throw e}return this[Cr](u??l,o,!!n,!0)}[Dr](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new N(n.message);I(this,Q,`f`).nonOptionCount(a),I(this,Q,`f`).requiredArguments(a,i);let o=!1;I(this,Gn,`f`)&&(o=I(this,Q,`f`).unknownCommands(a)),I(this,Wn,`f`)&&!o?I(this,Q,`f`).unknownArguments(a,e,t,!!r):I(this,Kn,`f`)&&I(this,Q,`f`).unknownArguments(a,e,{},!1,!1),I(this,Q,`f`).limitedChoices(a),I(this,Q,`f`).implications(a),I(this,Q,`f`).conflicting(a)}}[Or](){F(this,W,!0,`f`)}[kr](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 jr(e){return!!e&&typeof e.getInternalMethods==`function`}const Mr=Jn(Vt),Nr=[{command:i(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-BIS9MZn7.mjs`),null),hideCommand:!1},{command:i(`access`,`Access protected applications and services`,()=>import(`./access-__sFDSFL.mjs`),null),hideCommand:!1},{command:i(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-CmggwRjh.mjs`),null),hideCommand:!1},{command:i(`acm`,`acm`,()=>import(`./acm-AAhRZUAU.mjs`),null),hideCommand:!1},{command:i(`addressing`,`addressing`,()=>import(`./addressing-DVeJNPZc.mjs`),null),hideCommand:!1},{command:i(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-DQhWO6sc.mjs`),null),hideCommand:!1},{command:i(`ai`,`ai`,()=>import(`./ai-CULO9sno.mjs`),null),hideCommand:!1},{command:i(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-udn4HF34.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-Bm2MMdec.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-GRN_gXgU.mjs`),null),hideCommand:!1},{command:i(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-DXy9ht-9.mjs`),null),hideCommand:!1},{command:i(`alerting`,`alerting`,()=>import(`./alerting-CssnaN2i.mjs`),null),hideCommand:!0},{command:i(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-BVo7Ax0w.mjs`),null),hideCommand:!1},{command:i(`analytics-engine`,`analytics-engine`,()=>import(`./analytics-engine-BBd0Bydx.mjs`),null),hideCommand:!0},{command:i(`api-security`,`api-security`,()=>import(`./api-security-C-D9OKtH.mjs`),null),hideCommand:!1},{command:i(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-DSziwzvA.mjs`),null),hideCommand:!1},{command:i(`artifacts`,`artifacts`,()=>import(`./artifacts-nVMgn4dn.mjs`),null),hideCommand:!1},{command:i(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-DIZ5oA_y.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-BRvGeKm3.mjs`),null),hideCommand:!1},{command:i(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-BhPoqyKC.mjs`),null),hideCommand:!1},{command:i(`bot-management`,`bot-management`,()=>import(`./bot-management-BfjX5DuH.mjs`),null),hideCommand:!1},{command:i(`botnet-feed`,`Botnet threat intelligence feeds — IP and ASN-level data on known command-and-control infrastructure`,()=>import(`./botnet-feed-VOL5P4s3.mjs`),null),hideCommand:!1},{command:i(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-CSVHQ9Pt.mjs`),null),hideCommand:!1},{command:i(`browser-run`,`browser-run`,()=>import(`./browser-run-cxOd2cZE.mjs`),null),hideCommand:!1},{command:i(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-y5BQCJ81.mjs`),null),hideCommand:!1},{command:i(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-Bvr988Hj.mjs`),null),hideCommand:!1},{command:i(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-CFmO0uz9.mjs`),null),hideCommand:!1},{command:i(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-CtwPdFBa.mjs`),null),hideCommand:!1},{command:i(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-DHrMaxnU.mjs`),null),hideCommand:!1},{command:i(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-DecTdK6X.mjs`),null),hideCommand:!1},{command:i(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-wePxPACj.mjs`),null),hideCommand:!1},{command:i(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-D8sXR1qx.mjs`),null),hideCommand:!1},{command:i(`connectors`,`connectors`,()=>import(`./connectors-C-6RQ_Q1.mjs`),null),hideCommand:!1},{command:i(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-D65Gpj9Q.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-DbIDQ-Yu.mjs`),null),hideCommand:!1},{command:i(`cps`,`cps`,()=>import(`./cps-DGLmzCzp.mjs`),null),hideCommand:!1},{command:i(`csam-scanner`,`csam-scanner`,()=>import(`./csam-scanner-R7Ih-Dnw.mjs`),null),hideCommand:!1},{command:i(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-D0RnVoJ7.mjs`),null),hideCommand:!1},{command:i(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-BFWR-tR_.mjs`),null),hideCommand:!1},{command:i(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-Dn_9Ssti.mjs`),null),hideCommand:!1},{command:i(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-HqIQcb77.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-CopIY9RT.mjs`),null),hideCommand:!1},{command:i(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-DPjl0aCm.mjs`),null),hideCommand:!1},{command:i(`dls`,`dls`,()=>import(`./dls-BLTIVlbh.mjs`),null),hideCommand:!1},{command:i(`dns`,`dns`,()=>import(`./dns-DkqVq-nB.mjs`),null),hideCommand:!1},{command:i(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-D1bb1byu.mjs`),null),hideCommand:!1},{command:i(`durable-objects`,`durable-objects`,()=>import(`./durable-objects-OJhns_to.mjs`),null),hideCommand:!1},{command:i(`email-auth`,`email-auth`,()=>import(`./email-auth-BbsIBNlu.mjs`),null),hideCommand:!1},{command:i(`email-domains`,`email-domains`,()=>import(`./email-domains-pWZi1M4q.mjs`),null),hideCommand:!1},{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-DnitWE1A.mjs`),null),hideCommand:!1},{command:i(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-DiWtb7cx.mjs`),null),hideCommand:!1},{command:i(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-DuDjXykw.mjs`),null),hideCommand:!1},{command:i(`field-extractors`,`field-extractors`,()=>import(`./field-extractors-DNNnkBZH.mjs`),null),hideCommand:!1},{command:i(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-C7eZRNVF.mjs`),null),hideCommand:!1},{command:i(`flagship`,`flagship`,()=>import(`./flagship-BczjsrJ5.mjs`),null),hideCommand:!1},{command:i(`fraud`,`fraud`,()=>import(`./fraud-wE0UM2SM.mjs`),null),hideCommand:!1},{command:i(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-6mvtxcJK.mjs`),null),hideCommand:!1},{command:i(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-aIB3DebS.mjs`),null),hideCommand:!1},{command:i(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-DHRP8SJS.mjs`),null),hideCommand:!1},{command:i(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-6t7-ScrS.mjs`),null),hideCommand:!0},{command:i(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-CLgvxd0t.mjs`),null),hideCommand:!1},{command:i(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-jnoIVlYG.mjs`),null),hideCommand:!1},{command:i(`internal`,`internal`,()=>import(`./internal-Ba3b-Z8J.mjs`),null),hideCommand:!0},{command:i(`ips`,`ips`,()=>import(`./ips-CQ4gFfex.mjs`),null),hideCommand:!0},{command:i(`k2`,`Durable, ordered event streams that you produce records to and consume from with subscriptions`,()=>import(`./k2-Bsm6rzNX.mjs`),null),hideCommand:!1},{command:i(`kv`,`kv`,()=>import(`./kv-DQfnNE-w.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-CaqjG3Oz.mjs`),null),hideCommand:!1},{command:i(`live`,`live`,()=>import(`./live-BfobGv8W.mjs`),null),hideCommand:!0},{command:i(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-BzSCp2Uh.mjs`),null),hideCommand:!1},{command:i(`logpush`,`logpush`,()=>import(`./logpush-DgfiSd1b.mjs`),null),hideCommand:!1},{command:i(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-Dan7xU-k.mjs`),null),hideCommand:!1},{command:i(`magic-cloud-networking`,`magic-cloud-networking`,()=>import(`./magic-cloud-networking-DP8fWC4a.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-TAjt04vN.mjs`),null),hideCommand:!0},{command:i(`magic-transit`,`DDoS-protected network transit — GRE/IPsec tunnels, static routes, Magic WAN sites, connectors, and packet captures`,()=>import(`./magic-transit-BSuLHnQ5.mjs`),null),hideCommand:!1},{command:i(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-CTnIZLg4.mjs`),null),hideCommand:!1},{command:i(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-BETvesjp.mjs`),null),hideCommand:!0},{command:i(`mcp`,`Manage MCP portals and upstream MCP servers for Cloudflare Access AI controls`,()=>import(`./mcp-DhjMGaKc.mjs`),null),hideCommand:!1},{command:i(`mesh`,`mesh`,()=>import(`./mesh-jxLLG3t4.mjs`),null),hideCommand:!1},{command:i(`monetization`,`monetization`,()=>import(`./monetization-BqDgHlPv.mjs`),null),hideCommand:!1},{command:i(`network`,`network`,()=>import(`./network-D6BRpgOv.mjs`),null),hideCommand:!1},{command:i(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-tP41GbnL.mjs`),null),hideCommand:!1},{command:i(`o11y`,`o11y`,()=>import(`./o11y-h4cIC_1T.mjs`),null),hideCommand:!1},{command:i(`oauth-clients`,`oauth-clients`,()=>import(`./oauth-clients-B0voUiXM.mjs`),null),hideCommand:!0},{command:i(`oauth-scopes`,`oauth-scopes`,()=>import(`./oauth-scopes-Bhns1ZHW.mjs`),null),hideCommand:!0},{command:i(`organization`,`organization`,()=>import(`./organization-Cy55HoRR.mjs`),null),hideCommand:!1},{command:i(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-7Q3d9vcW.mjs`),null),hideCommand:!1},{command:i(`origin-post-quantum-encryption`,`Enable post-quantum key exchange for connections between Cloudflare and your origin server`,()=>import(`./origin-post-quantum-encryption-XBMPCdSL.mjs`),null),hideCommand:!1},{command:i(`page-rules`,`page-rules`,()=>import(`./page-rules-BlT5xlhH.mjs`),null),hideCommand:!0},{command:i(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-CIbL62L2.mjs`),null),hideCommand:!1},{command:i(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-BzsBqo_m.mjs`),null),hideCommand:!1},{command:i(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-DtejLYJ8.mjs`),null),hideCommand:!1},{command:i(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-LjLb8jq6.mjs`),null),hideCommand:!1},{command:i(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-BKp5_Ag4.mjs`),null),hideCommand:!0},{command:i(`previews`,`Manage Worker Previews`,()=>import(`./previews-zRYO9uO9.mjs`),null),hideCommand:!1},{command:i(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-Ci4rGGC4.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-qm2hgS43.mjs`),null),hideCommand:!1},{command:i(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-C_ydbJe_.mjs`),null),hideCommand:!1},{command:i(`ready`,`ready`,()=>import(`./ready-hk-_B8z3.mjs`),null),hideCommand:!0},{command:i(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-BAvjYmYw.mjs`),null),hideCommand:!1},{command:i(`registrar`,`registrar`,()=>import(`./registrar-DD7WZaP2.mjs`),null),hideCommand:!1},{command:i(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-DbxloH5s.mjs`),null),hideCommand:!1},{command:i(`reporting`,`reporting`,()=>import(`./reporting-CRVg3J1C.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-BWs0rdFS.mjs`),null),hideCommand:!1},{command:i(`resource-sharing`,`Share Cloudflare resources (zones, accounts) across organizations with granular access controls`,()=>import(`./resource-sharing-yipIkdbd.mjs`),null),hideCommand:!1},{command:i(`rules`,`Resources used by Cloudflare rules and rulesets`,()=>import(`./rules-CCtaBLiN.mjs`),null),hideCommand:!1},{command:i(`rulesets`,`rulesets`,()=>import(`./rulesets-DBEvCNDS.mjs`),null),hideCommand:!1},{command:i(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-gDOKylu_.mjs`),null),hideCommand:!0},{command:i(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-CM8Xah56.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-BEnXiYCC.mjs`),null),hideCommand:!1},{command:i(`security-insights`,`security-insights`,()=>import(`./security-insights-Be5GvdBA.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-BF0PWAEW.mjs`),null),hideCommand:!1},{command:i(`signed-url`,`signed-url`,()=>import(`./signed-url-VDDQlllt.mjs`),null),hideCommand:!0},{command:i(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-DQku_wYi.mjs`),null),hideCommand:!1},{command:i(`snippets`,`snippets`,()=>import(`./snippets-B3FCEMuh.mjs`),null),hideCommand:!1},{command:i(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-nLirlVue.mjs`),null),hideCommand:!1},{command:i(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-C1hCyMPy.mjs`),null),hideCommand:!1},{command:i(`sql`,`sql`,()=>import(`./sql-DVQOKThL.mjs`),null),hideCommand:!1},{command:i(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-CYDRgr24.mjs`),null),hideCommand:!1},{command:i(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-DHyejrI6.mjs`),null),hideCommand:!1},{command:i(`tags`,`tags`,()=>import(`./tags-DOL6dKQE.mjs`),null),hideCommand:!1},{command:i(`tenant`,`tenant`,()=>import(`./tenant-2EdATz2Y.mjs`),null),hideCommand:!1},{command:i(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-DhEpJNST.mjs`),null),hideCommand:!0},{command:i(`tunnels`,`tunnels`,()=>import(`./tunnels-CMAmH4Vh.mjs`),null),hideCommand:!1},{command:i(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-DTJjDMFp.mjs`),null),hideCommand:!1},{command:i(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-BbWOra1u.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-Bj-eS_3C.mjs`),null),hideCommand:!1},{command:i(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-CMzTHHVX.mjs`),null),hideCommand:!1},{command:i(`vectorize`,`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,()=>import(`./vectorize-D4H7_KPs.mjs`),null),hideCommand:!1},{command:i(`waiting-rooms`,`Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages`,()=>import(`./waiting-rooms-CqMbVu9s.mjs`),null),hideCommand:!1},{command:i(`web-assets`,`web-assets`,()=>import(`./web-assets-BgfzyF8t.mjs`),null),hideCommand:!1},{command:i(`web3`,`web3`,()=>import(`./web3-ByCe47FI.mjs`),null),hideCommand:!0},{command:i(`workers`,`workers`,()=>import(`./workers-BiLsPkYD.mjs`),null),hideCommand:!1},{command:i(`workers-builds`,`workers-builds`,()=>import(`./workers-builds-2N71_8MZ.mjs`),null),hideCommand:!0},{command:i(`workers-for-platforms`,`workers-for-platforms`,()=>import(`./workers-for-platforms-BMN4QXgT.mjs`),null),hideCommand:!1},{command:i(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-3o7dMg7-.mjs`),null),hideCommand:!1},{command:i(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-COiyqt-B.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-DjwhCH8A.mjs`),null),hideCommand:!1},{command:i(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-BmpuDOmH.mjs`),null),hideCommand:!1},{command:i(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-XYQiz5kF.mjs`),null),hideCommand:!1}];function Pr(e){return typeof e==`object`&&!!e&&`schemas`in e&&typeof e.schemas==`object`&&e.schemas!==null&&!Array.isArray(e.schemas)}function Fr(e,t){if(!t)return e;let n=a(import.meta.url,`schemas.json`,Pr);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 Ir=[{kind:`root`,dryRun:`preview`,command:`auth`,describe:`Manage authentication and profiles`,dir:`auth`},{kind:`root`,dryRun:`preview`,command:`login`,describe:!1,dir:`login`},{kind:`root`,dryRun:`preview`,command:`build`,describe:`Build a project for Cloudflare`,dir:`build`},{kind:`root`,dryRun:`preview`,command:`complete [shell]`,describe:`Generate and handle shell completions`,dir:`completions`},{kind:`root`,dryRun:`native`,command:`deploy`,describe:`Deploy a project to Cloudflare`,dir:`deploy`},{kind:`root`,dryRun:`preview`,command:`dev [implArgs..]`,describe:`Run the project's Cloudflare dev server`,dir:`dev`},{kind:`root`,dryRun:`preview`,command:`docs`,describe:`Search live Cloudflare documentation`,dir:`docs`},{kind:`root`,dryRun:`preview`,command:`init [directory]`,describe:`Create a new Cloudflare project or set up an existing one`,dir:`init`},{kind:`root`,dryRun:`native`,command:`migrate [path]`,describe:`Migrate a Wrangler project to cf`,dir:`migrate`},{kind:`root`,dryRun:`preview`,command:`cli`,describe:`Discover commands and configure the cf CLI`,dir:`cli`},{kind:`leaf`,dryRun:`preview`,parent:`previews`,name:`deploy`,dir:`previews/deploy`},{kind:`parentOverride`,parent:`previews`,describe:`Manage Worker Previews`,expose:!0,createIfMissing:!0},{kind:`root`,dryRun:`preview`,command:`schema [command..]`,describe:`Show API schema details for a command`,dir:`schema`},{kind:`root`,dryRun:`preview`,command:`tools`,describe:!1,dir:`tools`},{kind:`leafOverride`,dryRun:`native`,emitKey:`ai/run`,dir:`ai/run`},{kind:`leafOverride`,dryRun:`native`,emitKey:`registrar/registrations/create`,dir:`registrar/registrations/create`},{kind:`leaf`,dryRun:`native`,parent:`workers/versions`,name:`create`,dir:`workers/versions/create`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`build`,dir:`containers/build`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`push`,dir:`containers/push`},{kind:`leaf`,dryRun:`preview`,parent:`containers/images`,name:`list`,dir:`containers/images/list`},{kind:`leaf`,dryRun:`preview`,parent:`containers/images`,name:`delete`,dir:`containers/images/delete`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`ssh`,dir:`containers/ssh`},{kind:`leaf`,dryRun:`preview`,parent:`pages`,name:`deploy`,dir:`pages/deploy`},{kind:`leaf`,dryRun:`preview`,parent:`workers`,name:`check`,dir:`workers/check`},{kind:`leaf`,dryRun:`preview`,parent:`workers`,name:`types`,dir:`workers/types`},{kind:`parentOverride`,parent:`access`,describe:`Access protected applications and services`,expose:!0},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`login`,dir:`access/login`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`token`,dir:`access/token`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`ssh-config`,dir:`access/ssh-config`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`ssh-gen`,dir:`access/ssh-gen`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`tcp`,dir:`access/tcp`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`curl`,dir:`access/curl`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`diag`,dir:`tunnels/diag`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`login`,dir:`tunnels/login`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`quick-start`,dir:`tunnels/quick-start`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`ready`,dir:`tunnels/ready`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`run`,dir:`tunnels/run`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`tail`,dir:`tunnels/tail`},{kind:`subgroup`,dryRun:`preview`,parent:`d1`,name:`migrations`,dir:`d1/migrations`,describe:`Create, list, and apply D1 database migrations`},{kind:`subgroup`,dryRun:`native`,parent:`workers`,name:`triggers`,dir:`workers/triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`}];function Lr(){return Ir.filter(e=>e.kind===`root`)}function Rr(e){return e.command.split(/\s+/)[0]??e.command}const zr={auth:{load:()=>import(`./auth-JsvLULHA.mjs`),telemetry:{command:`auth`,recordArgs:!1}},login:{load:()=>import(`./login-ierSCYE6.mjs`),telemetry:null},build:{load:()=>import(`./build-DCdLWwOg.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},completions:{load:()=>import(`./completions-B1rYgw_a.mjs`),telemetry:null},deploy:{load:()=>import(`./deploy-BVTA83rN.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`,`provision`]}}},dev:{load:()=>import(`./dev-CM5GLHNn.mjs`),telemetry:{command:`dev`,recordArgs:!1}},init:{load:()=>import(`./init-B_DBTMXU.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},migrate:{load:()=>import(`./migrate-Bkhk38nJ.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},docs:{load:()=>import(`./docs-tOv_OllI.mjs`),telemetry:{command:`docs`,recordArgs:!1}},cli:{load:()=>import(`./cli-BTxJfFus.mjs`),telemetry:{command:`cli`,recordArgs:!1}},schema:{load:()=>import(`./schema-DuLIZRhA.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},tools:{load:()=>import(`./tools-C-vmgYSv.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}}};function Br(){return Lr().map(e=>({...e,...zr[e.dir]}))}const Vr={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}},"temporary-account":{type:`boolean`,description:`Create or reuse a temporary account when no Cloudflare credentials are available`,global:!0,default:!1,hidden:!0},"event-code":{type:`string`,description:`Specify the event code to use when creating a temporary account for an event`,requiresArg:!0,global:!0,hidden:!0,coerce:e=>{if(Array.isArray(e))throw Error(`--event-code expects a single value.`);let t=e.trim();if(!t)throw Error(`--event-code cannot be empty.`);return t}},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}},Hr={help:{alias:`h`,description:`Show help`},version:{alias:`v`,description:`Show version number`}};Object.entries({...Vr,...Hr}).flatMap(([e,{alias:t}])=>[e,...t===void 0?[]:typeof t==`string`?[t]:t]);function Ur(e,t){return Object.entries(Vr).some(([n,r])=>{if(r.type===`boolean`&&t!==`true`&&t!==`false`)return!1;let i=r.alias;return[n,...Array.isArray(i)?i:i===void 0?[]:[i]].some(t=>e===(t.length===1?`-${t}`:`--${t}`))})}const Wr=Br().map(e=>ee(i(e.command,e.describe,e.load,e.telemetry),e.dryRun)),Gr=new Set(Lr().map(Rr));function Kr(e){return s().isAgentic?`=== STOP: AGENT COMMAND DISCOVERY ===
119
119
  AGENTS: Do not explore commands by chaining nested --help calls.
120
120
  Your first port of call and the best way to discover commands is:
121
121
  AGENTS: Keep cf cli search and cf docs search queries anonymous; describe the action and resource type only.
@@ -126,6 +126,6 @@ Run \`<discovered command> --help\` for detailed command help.
126
126
  For API request details, replace the result's leading \`cf\` with \`cf schema\`.
127
127
  For Cloudflare documentation, guides, and examples, use cf docs search "<question>".
128
128
  It returns ranked JSON results. Fetch a result's URL with Accept: text/markdown to read the full page.
129
- === END AGENT COMMAND DISCOVERY ===\n${e}`:e}function qr(e,t){return Kr(Fr(e,t))}async function Jr(e=!1){if(!process.stderr.isTTY||e||c(process.argv.slice(2))||Zr()===`complete`)return;let{isCI:t}=await import(`./interactive-CHcvofEp.mjs`);if(t)return;let{readState:n,updateState:r}=await import(`./state-C5mQ9At8.mjs`);if(n().completions?.prompted)return;r({completions:{prompted:!0}});let{log:i}=await import(`./log-DZfik9Jk.mjs`);i.info(`Tip: run ${o.code(`cf complete <bash|zsh|fish|powershell>`)} to install shell completions.`)}let Yr;function Xr(){return Yr??=import(`./telemetry-CA0_i9-l.mjs`),Yr}function Zr(e=process.argv.slice(2)){return Qr(e,1)[0]}function Qr(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;Ur(t,e[r+1])?r++:t.startsWith(`-`)||n.push(t)}return n}async function $r(e=!1){if(!process.stderr.isTTY)return;let t=process.argv.slice(2);if(e||c(t)||t.includes(`--help`)||t.includes(`-h`)||oi(Qr(t).join(` `)))return;let{getBannerLastShown:n,getTelemetryDispatcher:r,setBannerLastShown:i}=await Xr();if(!r().enabled||n()===f)return;let{log:a}=await import(`./log-DZfik9Jk.mjs`);a.info(`Cloudflare collects anonymous cf usage telemetry. Run ${o.code(`cf cli telemetry disable`)} to opt out.`),i(f)}async function ei(){try{await Promise.race([re(),b(1e3,void 0,{ref:!1})])}catch{}}const ti=/^Unknown commands?: /,ni=/^Did you mean (.+)\?$/;function ri(e){return e instanceof Error&&e.message.startsWith(`Unknown command:`)}function ii(e,t){let n=ni.exec(t)?.[1],r;if(n!==void 0)r=`suggested-command`;else if(ti.test(t))r=`unknown-subcommand`;else if(t===`You need to specify a command`)r=`missing-command`;else return;try{let t=e,i=t.getInternalMethods(),a=i.getContext().commands,o=i.getCommandInstance().getCommands(),s=t.parsed?t.parsed.argv?._:void 0;if(!Array.isArray(a)||!a.every(e=>typeof e==`string`)||!Array.isArray(o))return;let c=a.length>0&&o.length===0;return{kind:r===`unknown-subcommand`&&c?`surplus-positional`:r,knownCommand:a,knownCommandIsLeaf:c,unknownTokens:Array.isArray(s)?s.slice(a.length).map(String):[],...n===void 0?{}:{suggestedCommand:n}}}catch{return}}function ai(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 oi(e){let[t,n]=e.split(` `);return t===`complete`||t===`cli`&&n===`telemetry`}function si(e){let[t,...n]=e.unknownTokens,r=e.suggestedCommand??t;return[...e.knownCommand,...r===void 0?[]:[r],...n].join(` `).toLowerCase()}async function ci(e,t,n){if(v()||e instanceof l)return;let r=ri(e)||n?.knownCommand.length===0,i=r?void 0:t;if(!(i===void 0&&!r||oi(i??Qr().join(` `))||n!==void 0&&oi(si(n))))try{let{getTelemetryDispatcher:t,UNKNOWN_COMMAND_EVENT:r}=await Xr(),{sanitizeError:a}=await import(`./error-sanitization-rodO1WCL.mjs`),o=t();if(!o.enabled)return;let s=n?await li(n):{argsUsed:[],argsCombination:``},c={command:i??r,sanitizedArgs:{},...s};o.sendCommandEvent(`cf command started`,c),o.sendCommandEvent(`cf command finished`,{...c,outcome:`error`,durationMs:0,...a(e)})}catch{}}async function li(e){let{loadCommandVocabulary:t,sanitizeCommandResolution:n}=await import(`./command-resolution-DAQ4PWUt.mjs`);return n(e,gt(process.argv),t(Object.keys(Vr)))}async function ui(e){if(e&&!oi(e))try{let{getTelemetryDispatcher:t}=await Xr();t().sendAdhocEvent(`cf help shown`,{command:e})}catch{}}function di(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:(h(f,{quiet:c(r),update:e}),console.log(f),!0)}function fi(e){if(process.argv.slice(2).length>0)return!1;let t=[p(f,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(`
130
- `)),!0}function pi(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`)||Zr(i)!==`complete`&&h(f,{quiet:e||c(i),update:t}))}async function mi(){let e=process.argv.slice(2);if(c(e)||Zr(e)===`complete`||(e.length===0?process.stdout.isTTY!==!0:process.stderr.isTTY!==!0))return;let{isCI:t}=await import(`./interactive-CHcvofEp.mjs`);if(t)return;let{getUpdateNotice:n,maybeStartBackgroundUpdateCheck:r}=await import(`./update-check-LF-JcHRF.mjs`),i=!1;return{notice:n(f),start(){i||(i=!0,r())}}}function hi(e,t={}){let{onCommandResolved:n,onCommandResolutionFailed:r,onHelpShown:i,updateCheck:a}=t,s,c=e=>o.brand(e),l=e.indexOf(`--`),p=(l===-1?e:e.slice(0,l)).some(e=>e===`--local`||e===`--no-local`||e.startsWith(`--local=`)),h=Mr(e).scriptName(`cf`).parserConfiguration({"sort-commands":!0}).wrap(process.stdout.columns||80).usage(`$0 <command> [options]`).usage(`
131
- The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":c(`Commands`),"Options:":c(`Options`),"Positionals:":c(`Positionals`),"Examples:":c(`Examples`)}).help(`help`,Hr.help.description).alias(Hr.help.alias,`help`).options(Vr).group([...Object.keys(Vr),...Object.keys(Hr)],c(`Global flags`));for(let e of Wr)h.command(e);for(let e of Nr)e.hideCommand?h.command({...e.command,describe:!1}):h.command(e.command);h.middleware(async e=>{pi(e.quiet,a?.notice),a?.start();let t=ai(h);t!==void 0&&n?.(t);try{await $r(e.quiet)}catch{}try{await Jr(e.quiet)}catch{}te(e.mode);let r=String(e._[0]??``),i=e.persistTo??e[`persist-to`];if(!e.help&&(r===`dev`&&p||e.local&&Gr.has(r)))throw Error(`--local is not supported by cf ${r}.`);if(!e.help&&r===`dev`&&i!==void 0)throw Error(`--persist-to is not supported by cf dev.`);if(i===``)throw Error(`--persist-to requires a non-empty directory.`);if(i!==void 0&&!e.local)throw Error(`--persist-to can only be used with --local.`);if(e[`temporary-account`]&&e.local)throw Error(`--temporary-account cannot be used with --local.`);let o=e[`event-code`];if(o!==void 0&&!e[`temporary-account`])throw Error(`--event-code requires --temporary-account.`);if(t!==void 0&&u(t,e.local)&&(s=await d(e)),!e.local){let{resolveProfile:t,setTemporaryAccountRequested:n}=await import(`./oauth-D6uh5ZdS.mjs`);n(e[`temporary-account`],o===void 0?void 0:{eventCode:o});let r=t(e.profile);m(r)}}).demandCommand(1,`You need to specify a command`).strictCommands().strictOptions().recommendCommands().version(`version`,Hr.version.description,f).alias(Hr.version.alias,`version`).epilogue(`For more information, visit https://developers.cloudflare.com/`).exitProcess(!1).fail((e,t,o)=>{pi(!1,a?.notice),a?.start();let s=ai(h);if(s!==void 0&&n?.(s),t)throw t;let c=ni.exec(e)?.[1];if(c&&!o.getCommands().some(([e])=>e.split(` `)[0]===c))return;if(e===`Please specify a subcommand`){s!==void 0&&i?.(s),o.showHelp(`log`);return}let l=Error(e),u=ii(h,e);throw u&&r?.(u,l),o.showHelp(`error`),l});let g=h.showHelp.bind(h);h.showHelp=e=>g(t=>{let r=ai(h);r!==void 0&&n?.(r),i?.(r??`cf`);let a=qr(t,r);typeof e==`function`?e(a):e===`log`?console.log(a):console.error(a)});let ee=h.getHelp.bind(h);return h.getHelp=async()=>qr(await ee(),ai(h)),{cli:h,dispose:()=>{s?.(),s=void 0}}}async function gi(e){let t=process.argv;process.argv=[`node`,`cf`,...e];try{await _i()}finally{process.argv=t}}async function _i(){te(void 0),ne();let e=await mi();if(di(e?.notice)||fi(e?.notice))throw e?.start(),new l(0);let t,n,r,{cli:i,dispose:a}=hi(gt(process.argv),{onCommandResolved:e=>{t=e},onCommandResolutionFailed:(e,t)=>{n={failure:e,error:t}},onHelpShown:e=>{r=e},updateCheck:e}),o=gt(process.argv),s=o.indexOf(`--`),c=s===-1?o:o.slice(0,s);if(c.includes(`--help`)||c.includes(`-h`)){pi(!1,e?.notice),e?.start();try{await Jr()}catch{}}try{await i.parse(gt(process.argv)),await ui(r)}catch(e){if(e instanceof l)throw e;if(t===void 0){try{await $r()}catch{}try{await Jr()}catch{}}let r=n!==void 0&&n.error===e?n.failure:void 0;throw await ci(e,t??ai(i),r),g(e)}finally{a(),await _(),await ei()}}export{_i as n,gi as r,hi as t};
129
+ === END AGENT COMMAND DISCOVERY ===\n${e}`:e}function qr(e,t){return Kr(Fr(e,t))}async function Jr(e=!1){if(!process.stderr.isTTY||e||c(process.argv.slice(2))||Zr()===`complete`)return;let{isCI:t}=await import(`./interactive-CHcvofEp.mjs`);if(t)return;let{readState:n,updateState:r}=await import(`./state-BTOzaT5L.mjs`);if(n().completions?.prompted)return;r({completions:{prompted:!0}});let{log:i}=await import(`./log-DZfik9Jk.mjs`);i.info(`Tip: run ${o.code(`cf complete <bash|zsh|fish|powershell>`)} to install shell completions.`)}let Yr;function Xr(){return Yr??=import(`./telemetry-DJ8-Q2pU.mjs`),Yr}function Zr(e=process.argv.slice(2)){return Qr(e,1)[0]}function Qr(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;Ur(t,e[r+1])?r++:t.startsWith(`-`)||n.push(t)}return n}async function $r(e=!1){if(!process.stderr.isTTY)return;let t=process.argv.slice(2);if(e||c(t)||t.includes(`--help`)||t.includes(`-h`)||oi(Qr(t).join(` `)))return;let{getBannerLastShown:n,getTelemetryDispatcher:r,setBannerLastShown:i}=await Xr();if(!r().enabled||n()===f)return;let{log:a}=await import(`./log-DZfik9Jk.mjs`);a.info(`Cloudflare collects anonymous cf usage telemetry. Run ${o.code(`cf cli telemetry disable`)} to opt out.`),i(f)}async function ei(){try{await Promise.race([re(),b(1e3,void 0,{ref:!1})])}catch{}}const ti=/^Unknown commands?: /,ni=/^Did you mean (.+)\?$/;function ri(e){return e instanceof Error&&e.message.startsWith(`Unknown command:`)}function ii(e,t){let n=ni.exec(t)?.[1],r;if(n!==void 0)r=`suggested-command`;else if(ti.test(t))r=`unknown-subcommand`;else if(t===`You need to specify a command`)r=`missing-command`;else return;try{let t=e,i=t.getInternalMethods(),a=i.getContext().commands,o=i.getCommandInstance().getCommands(),s=t.parsed?t.parsed.argv?._:void 0;if(!Array.isArray(a)||!a.every(e=>typeof e==`string`)||!Array.isArray(o))return;let c=a.length>0&&o.length===0;return{kind:r===`unknown-subcommand`&&c?`surplus-positional`:r,knownCommand:a,knownCommandIsLeaf:c,unknownTokens:Array.isArray(s)?s.slice(a.length).map(String):[],...n===void 0?{}:{suggestedCommand:n}}}catch{return}}function ai(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 oi(e){let[t,n]=e.split(` `);return t===`complete`||t===`cli`&&n===`telemetry`}function si(e){let[t,...n]=e.unknownTokens,r=e.suggestedCommand??t;return[...e.knownCommand,...r===void 0?[]:[r],...n].join(` `).toLowerCase()}async function ci(e,t,n){if(v()||e instanceof l)return;let r=ri(e)||n?.knownCommand.length===0,i=r?void 0:t;if(!(i===void 0&&!r||oi(i??Qr().join(` `))||n!==void 0&&oi(si(n))))try{let{getTelemetryDispatcher:t,UNKNOWN_COMMAND_EVENT:r}=await Xr(),{sanitizeError:a}=await import(`./error-sanitization-rodO1WCL.mjs`),o=t();if(!o.enabled)return;let s=n?await li(n):{argsUsed:[],argsCombination:``},c={command:i??r,sanitizedArgs:{},...s};o.sendCommandEvent(`cf command started`,c),o.sendCommandEvent(`cf command finished`,{...c,outcome:`error`,durationMs:0,...a(e)})}catch{}}async function li(e){let{loadCommandVocabulary:t,sanitizeCommandResolution:n}=await import(`./command-resolution-DAQ4PWUt.mjs`);return n(e,gt(process.argv),t(Object.keys(Vr)))}async function ui(e){if(e&&!oi(e))try{let{getTelemetryDispatcher:t}=await Xr();t().sendAdhocEvent(`cf help shown`,{command:e})}catch{}}function di(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:(h(f,{quiet:c(r),update:e}),console.log(f),!0)}function fi(e){if(process.argv.slice(2).length>0)return!1;let t=[p(f,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(`
130
+ `)),!0}function pi(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`)||Zr(i)!==`complete`&&h(f,{quiet:e||c(i),update:t}))}async function mi(){let e=process.argv.slice(2);if(c(e)||Zr(e)===`complete`||(e.length===0?process.stdout.isTTY!==!0:process.stderr.isTTY!==!0))return;let{isCI:t}=await import(`./interactive-CHcvofEp.mjs`);if(t)return;let{getUpdateNotice:n,maybeStartBackgroundUpdateCheck:r}=await import(`./update-check-BkCdHK-3.mjs`),i=!1;return{notice:n(f),start(){i||(i=!0,r())}}}function hi(e,t={}){let{onCommandResolved:n,onCommandResolutionFailed:r,onHelpShown:i,updateCheck:a}=t,s,c=e=>o.brand(e),l=e.indexOf(`--`),p=(l===-1?e:e.slice(0,l)).some(e=>e===`--local`||e===`--no-local`||e.startsWith(`--local=`)),h=Mr(e).scriptName(`cf`).parserConfiguration({"sort-commands":!0}).wrap(process.stdout.columns||80).usage(`$0 <command> [options]`).usage(`
131
+ The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":c(`Commands`),"Options:":c(`Options`),"Positionals:":c(`Positionals`),"Examples:":c(`Examples`)}).help(`help`,Hr.help.description).alias(Hr.help.alias,`help`).options(Vr).group([...Object.keys(Vr),...Object.keys(Hr)],c(`Global flags`));for(let e of Wr)h.command(e);for(let e of Nr)e.hideCommand?h.command({...e.command,describe:!1}):h.command(e.command);h.middleware(async e=>{pi(e.quiet,a?.notice),a?.start();let t=ai(h);t!==void 0&&n?.(t);try{await $r(e.quiet)}catch{}try{await Jr(e.quiet)}catch{}te(e.mode);let r=String(e._[0]??``),i=e.persistTo??e[`persist-to`];if(!e.help&&(r===`dev`&&p||e.local&&Gr.has(r)))throw Error(`--local is not supported by cf ${r}.`);if(!e.help&&r===`dev`&&i!==void 0)throw Error(`--persist-to is not supported by cf dev.`);if(i===``)throw Error(`--persist-to requires a non-empty directory.`);if(i!==void 0&&!e.local)throw Error(`--persist-to can only be used with --local.`);if(e[`temporary-account`]&&e.local)throw Error(`--temporary-account cannot be used with --local.`);let o=e[`event-code`];if(o!==void 0&&!e[`temporary-account`])throw Error(`--event-code requires --temporary-account.`);if(t!==void 0&&u(t,e.local)&&(s=await d(e)),!e.local){let{resolveProfile:t,setTemporaryAccountRequested:n}=await import(`./oauth-CuM12iNb.mjs`);n(e[`temporary-account`],o===void 0?void 0:{eventCode:o});let r=t(e.profile);m(r)}}).demandCommand(1,`You need to specify a command`).strictCommands().strictOptions().recommendCommands().version(`version`,Hr.version.description,f).alias(Hr.version.alias,`version`).epilogue(`For more information, visit https://developers.cloudflare.com/`).exitProcess(!1).fail((e,t,o)=>{pi(!1,a?.notice),a?.start();let s=ai(h);if(s!==void 0&&n?.(s),t)throw t;let c=ni.exec(e)?.[1];if(c&&!o.getCommands().some(([e])=>e.split(` `)[0]===c))return;if(e===`Please specify a subcommand`){s!==void 0&&i?.(s),o.showHelp(`log`);return}let l=Error(e),u=ii(h,e);throw u&&r?.(u,l),o.showHelp(`error`),l});let g=h.showHelp.bind(h);h.showHelp=e=>g(t=>{let r=ai(h);r!==void 0&&n?.(r),i?.(r??`cf`);let a=qr(t,r);typeof e==`function`?e(a):e===`log`?console.log(a):console.error(a)});let ee=h.getHelp.bind(h);return h.getHelp=async()=>qr(await ee(),ai(h)),{cli:h,dispose:()=>{s?.(),s=void 0}}}async function gi(e){let t=process.argv;process.argv=[`node`,`cf`,...e];try{await _i()}finally{process.argv=t}}async function _i(){te(void 0),ne();let e=await mi();if(di(e?.notice)||fi(e?.notice))throw e?.start(),new l(0);let t,n,r,{cli:i,dispose:a}=hi(gt(process.argv),{onCommandResolved:e=>{t=e},onCommandResolutionFailed:(e,t)=>{n={failure:e,error:t}},onHelpShown:e=>{r=e},updateCheck:e}),o=gt(process.argv),s=o.indexOf(`--`),c=s===-1?o:o.slice(0,s);if(c.includes(`--help`)||c.includes(`-h`)){pi(!1,e?.notice),e?.start();try{await Jr()}catch{}}try{await i.parse(gt(process.argv)),await ui(r)}catch(e){if(e instanceof l)throw e;if(t===void 0){try{await $r()}catch{}try{await Jr()}catch{}}let r=n!==void 0&&n.error===e?n.failure:void 0;throw await ci(e,t??ai(i),r),g(e)}finally{a(),await _(),await ei()}}export{_i as n,gi as r,hi as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{n}from"./auth-pbuzyz4C.mjs";import{a as r,i,t as a}from"./context-BryBS1zQ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-C_yVLVcl.mjs";import{t as l}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as u,n as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-kxvGZ6nF.mjs";var _={method:`POST`,path:t=>e`/zones/${t.zone_id}/ssl/analyze`,body:`json`};function v(e){return e.usage(`$0 ssl analyze create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-BNmz58v4.mjs";import{n}from"./auth-CB9wjyad.mjs";import{a as r,i,t as a}from"./context-DCon1tRZ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-_Jux05O5.mjs";import{t as l}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{a as u,n as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-SNVLBS1b.mjs";var _={method:`POST`,path:t=>e`/zones/${t.zone_id}/ssl/analyze`,body:`json`};function v(e){return e.usage(`$0 ssl analyze create
3
3
 
4
4
  Returns the set of hostnames, the signature algorithm, and the expiration date of the certificate.`).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`],default:`ubiquitous`}).coerce(`bundle-method`,e=>p(e,`bundle-method`,`text`)).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ee={command:`create`,describe:`Analyze Certificate`,builder:v,handler:async e=>l({command:`ssl analyze create`,classification:{safeFlags:[`bundle-method`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl analyze create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/analyze`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`)}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(_,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}let a=f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`)}),l=await c(`Creating`,async()=>t.send(_,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})},te={command:`analyze`,describe:`Operations for analyze`,builder:e=>e.command(ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/auto_origin_tls_kex`,body:`json`};function b(e){return e.usage('$0 ssl auto-origin-tls-kex edit\n\nEnable or disable Auto-Origin TLS KEX selection for the zone by sending `{"enabled": true}` or `{"enabled": false}`. When enabled, Cloudflare runs a periodic scan of the zone\'s origins to determine the preferred key-exchange algorithm and writes that preference to the edge so it is sent first in the TLS ClientHello to the origin.').option(`enabled`,{type:`boolean`,description:`Controls enablement of Auto-Origin TLS KEX selection for the zone.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update enablement of Auto-Origin TLS KEX selection.`})}const ne={command:`edit`,describe:`Patch Auto-Origin TLS KEX enrollment status for the given zone`,builder:b,handler:async e=>l({command:`ssl auto-origin-tls-kex edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl auto-origin-tls-kex edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/auto_origin_tls_kex`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({enabled:e.enabled}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(y,{body:n,zone_id:r}));o(i,{successLabel:`Updated`});return}if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let a=f({enabled:e.enabled}),l=await c(`Updating`,async()=>t.send(y,{body:a,zone_id:r}));o(l,{successLabel:`Updated`})})};var re={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/auto_origin_tls_kex`};function ie(e){return e.usage(`$0 ssl auto-origin-tls-kex get
5
5
 
@@ -72,7 +72,7 @@ Deletes the mTLS certificate unless the certificate is in use by one or more Clo
72
72
 
73
73
  Fetches a single mTLS certificate uploaded to your account. To get a certificate issued by the Cloudflare managed CA, use the [Client Certificate Details endpoint](/api/resources/client_certificates/methods/get/).`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Rt={command:`get <mtls-certificate-id>`,describe:`Get mTLS certificate`,builder:Lt,handler:async e=>l({command:`ssl mtls-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf ssl mtls-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/mtls_certificates/${e[`mtls-certificate-id`]==null?`<mtls-certificate-id>`:encodeURIComponent(String(e[`mtls-certificate-id`]))}`,pathParams:{"mtls-certificate-id":String(e[`mtls-certificate-id`]??``)},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(It,{account_id:l,mtls_certificate_id:e[`mtls-certificate-id`]}));o(u,{successLabel:`Loaded`})})};var zt={method:`GET`,path:t=>e`/accounts/${t.account_id}/mtls_certificates`,query:[`type`],joined:[`type`]};function Bt(e){return e.usage(`$0 ssl mtls-certificates list
74
74
 
75
- Lists all mTLS certificates uploaded to your account, such as Bring Your Own CA (BYO-CA) for mTLS. To list certificates issued by the Cloudflare managed CA, use the [List Client Certificates endpoint](/api/resources/client_certificates/methods/list/).`).option(`type`,{type:`string`,description:`Filters results by certificate type. Multiple types can be comma-separated.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Vt={command:`list`,describe:`List mTLS certificates`,builder:Bt,handler:async e=>l({command:`ssl mtls-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let i={type:e.type};if(e.dryRun){let e=await r();s({command:`cf ssl mtls-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/mtls_certificates`,pathParams:{},query:i,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(zt,{account_id:u,...i}));o(d,{successLabel:`Loaded`})})},Ht={command:`mtls-certificates`,describe:`Operations for mtls-certificates`,builder:e=>e.command(Mt).command(Ft).command(Rt).command(Vt).command(At).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var K={method:`POST`,path:()=>`/certificates`,body:`json`};function Ut(e){return e.usage(`$0 ssl origin-ca-certificates create
75
+ Lists all mTLS certificates uploaded to your account, such as Bring Your Own CA (BYO-CA) for mTLS. To list certificates issued by the Cloudflare managed CA, use the [List Client Certificates endpoint](/api/resources/client_certificates/methods/list/).`).option(`type`,{type:`string`,array:!0,description:`Filters results by certificate type. Multiple types can be comma-separated.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Vt={command:`list`,describe:`List mTLS certificates`,builder:Bt,handler:async e=>l({command:`ssl mtls-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let i={type:e.type};if(e.dryRun){let e=await r();s({command:`cf ssl mtls-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/mtls_certificates`,pathParams:{},query:i,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(zt,{account_id:u,...i}));o(d,{successLabel:`Loaded`})})},Ht={command:`mtls-certificates`,describe:`Operations for mtls-certificates`,builder:e=>e.command(Mt).command(Ft).command(Rt).command(Vt).command(At).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var K={method:`POST`,path:()=>`/certificates`,body:`json`};function Ut(e){return e.usage(`$0 ssl origin-ca-certificates create
76
76
 
77
77
  Create an Origin CA certificate. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).option(`csr`,{type:`string`,description:`The Certificate Signing Request (CSR). Must be newline-encoded.`}).option(`hostnames`,{type:`string`,array:!0,description:"Array of hostnames or wildcard names bound to the certificate.\nHostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., `example.com` or `sub.example.com`). Wildcards are supported only as a `*.` prefix for a single level (e.g., `*.example.com`). Double wildcards (`*.*.example.com`) and interior wildcards (`foo.*.example.com`) are not allowed. The wildcard suffix must be a multi-label domain (`*.example.com` is valid, but `*.com` is not). Unicode/IDN hostnames are accepted and automatically converted to punycode."}).option(`request-type`,{type:`string`,description:`Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).`,choices:[`origin-rsa`,`origin-ecc`,`keyless-certificate`]}).coerce(`request-type`,e=>p(e,`request-type`,`text`)).option(`requested-validity`,{type:`number`,description:`The number of days for which the certificate should be valid.`,default:5475}).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 Wt={command:`create`,describe:`Create Certificate`,builder:Ut,handler:async e=>l({command:`ssl origin-ca-certificates create`,classification:{safeFlags:[`request-type`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-ca-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/certificates`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({csr:p(e.csr,`csr`,`text`),hostnames:e.hostnames,request_type:e[`request-type`],requested_validity:e[`requested-validity`]}):d(e.body)});return}let t=await n(e);if(e.body){let n=d(e.body),r=await c(`Creating`,async()=>t.send(K,{body:n}));o(r,{successLabel:`Created`});return}if(e.csr===void 0&&(e.csr=await m(`csr`,`The Certificate Signing Request (CSR). Must be newline-encoded.`)),e.hostnames===void 0)throw Error(`--hostnames is required (or pass --body with this field set).`);e[`request-type`]===void 0&&(e[`request-type`]=await h(`request-type`,`Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).`,[`origin-rsa`,`origin-ecc`,`keyless-certificate`]));let r=f({csr:p(e.csr,`csr`,`text`),hostnames:e.hostnames,request_type:e[`request-type`],requested_validity:e[`requested-validity`]}),i=await c(`Creating`,async()=>t.send(K,{body:r}));o(i,{successLabel:`Created`})})};var Gt={method:`DELETE`,path:t=>e`/certificates/${t.certificate_id}`};function Kt(e){return e.usage(`$0 ssl origin-ca-certificates delete <certificate-id>
78
78
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{n as e,r as t,t as n}from"./rolldown-runtime-BNtqjh-B.mjs";import{B as r}from"./dist-D5YYi2LO.mjs";import{N as i}from"./chunk-2HLTAS5V-B92NbX1j.mjs";import{n as a,o}from"./chunk-DSGVRFIS-CP2xC0bc.mjs";import{createRequire as s}from"node:module";import{readFile as c}from"node:fs/promises";import{gzipSync as l}from"node:zlib";import{randomUUID as u}from"node:crypto";import{clearTimeout as d,setTimeout as f}from"node:timers";import{Miniflare as p,convertV4MiniflareOptions as m}from"miniflare";var h=/* @__PURE__ */ n(((e,t)=>{let n=[`nodebuffer`,`arraybuffer`,`fragments`],r=typeof Blob<`u`;r&&n.push(`blob`),t.exports={BINARY_TYPES:n,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,hasBlob:r,kForOnEventAttribute:Symbol(`kIsForOnEventAttribute`),kListener:Symbol(`kListener`),kStatusCode:Symbol(`status-code`),kWebSocket:Symbol(`websocket`),NOOP:()=>{}}})),g=/* @__PURE__ */ n(((t,n)=>{let{EMPTY_BUFFER:r}=h(),i=Buffer[Symbol.species];function a(e,t){if(e.length===0)return r;if(e.length===1)return e[0];let n=Buffer.allocUnsafe(t),a=0;for(let t=0;t<e.length;t++){let r=e[t];n.set(r,a),a+=r.length}return a<t?new i(n.buffer,n.byteOffset,a):n}function o(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[a]^t[a&3]}function s(e,t){for(let n=0;n<e.length;n++)e[n]^=t[n&3]}function c(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function l(e){if(l.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=new i(e):ArrayBuffer.isView(e)?t=new i(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),l.readOnly=!1),t}
2
+ import{n as e,r as t,t as n}from"./rolldown-runtime-BNtqjh-B.mjs";import{B as r}from"./dist-ataVE8ob.mjs";import{N as i}from"./chunk-2HLTAS5V-B92NbX1j.mjs";import{n as a,o}from"./chunk-DSGVRFIS-Dq2PrGsi.mjs";import{createRequire as s}from"node:module";import{readFile as c}from"node:fs/promises";import{gzipSync as l}from"node:zlib";import{randomUUID as u}from"node:crypto";import{clearTimeout as d,setTimeout as f}from"node:timers";import{Miniflare as p,convertV4MiniflareOptions as m}from"miniflare";var h=/* @__PURE__ */ n(((e,t)=>{let n=[`nodebuffer`,`arraybuffer`,`fragments`],r=typeof Blob<`u`;r&&n.push(`blob`),t.exports={BINARY_TYPES:n,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,hasBlob:r,kForOnEventAttribute:Symbol(`kIsForOnEventAttribute`),kListener:Symbol(`kListener`),kStatusCode:Symbol(`status-code`),kWebSocket:Symbol(`websocket`),NOOP:()=>{}}})),g=/* @__PURE__ */ n(((t,n)=>{let{EMPTY_BUFFER:r}=h(),i=Buffer[Symbol.species];function a(e,t){if(e.length===0)return r;if(e.length===1)return e[0];let n=Buffer.allocUnsafe(t),a=0;for(let t=0;t<e.length;t++){let r=e[t];n.set(r,a),a+=r.length}return a<t?new i(n.buffer,n.byteOffset,a):n}function o(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[a]^t[a&3]}function s(e,t){for(let n=0;n<e.length;n++)e[n]^=t[n&3]}function c(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function l(e){if(l.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=new i(e):ArrayBuffer.isView(e)?t=new i(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),l.readOnly=!1),t}
3
3
  /* istanbul ignore else */
4
4
  if(n.exports={concat:a,mask:o,toArrayBuffer:c,toBuffer:l,unmask:s},!process.env.WS_NO_BUFFER_UTIL)try{let t=e(`bufferutil`);n.exports.mask=function(e,n,r,i,a){a<48?o(e,n,r,i,a):t.mask(e,n,r,i,a)},n.exports.unmask=function(e,n){e.length<32?s(e,n):t.unmask(e,n)}}catch{}})),_=/* @__PURE__ */ n(((e,t)=>{let n=Symbol(`kDone`),r=Symbol(`kRun`);t.exports=class{constructor(e){this[n]=()=>{this.pending--,this[r]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[r]()}[r](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[n])}}}})),v=/* @__PURE__ */ n(((t,n)=>{let r=e(`zlib`),i=g(),a=_(),{kStatusCode:o}=h(),s=Buffer[Symbol.species],c=Buffer.from([0,0,255,255]),l=Symbol(`permessage-deflate`),u=Symbol(`total-length`),d=Symbol(`callback`),f=Symbol(`buffers`),p=Symbol(`error`),m;n.exports=class{constructor(e){if(this._options=e||{},this._threshold=this._options.threshold===void 0?1024:this._options.threshold,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,!m){let e=this._options.concurrencyLimit===void 0?10:this._options.concurrencyLimit;m=new a(e)}}static get extensionName(){return`permessage-deflate`}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits??(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&=(this._inflate.close(),null),this._deflate){let e=this._deflate[d];this._deflate.close(),this._deflate=null,e&&e(/* @__PURE__ */ Error(`The deflate stream was closed while data was being processed`))}}acceptAsServer(e){let t=this._options,n=e.find(e=>!(t.serverNoContextTakeover===!1&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits==`number`&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==`number`&&!e.client_max_window_bits));if(!n)throw Error(`None of the extension offers can be accepted`);return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),typeof t.serverMaxWindowBits==`number`&&(n.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits==`number`?n.client_max_window_bits=t.clientMaxWindowBits:(n.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete n.client_max_window_bits,n}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw Error(`Unexpected parameter "client_no_context_takeover"`);if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits==`number`&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==`number`&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw Error(`Unexpected or invalid parameter "client_max_window_bits"`);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let n=e[t];if(n.length>1)throw Error(`Parameter "${t}" must have only a single value`);if(n=n[0],t===`client_max_window_bits`){if(n!==!0){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else if(t===`server_max_window_bits`){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(t===`client_no_context_takeover`||t===`server_no_context_takeover`){if(n!==!0)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else throw Error(`Unknown parameter "${t}"`);e[t]=n})}),e}decompress(e,t,n){m.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){m.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(e,t,n){let a=this._isServer?`client`:`server`;if(!this._inflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:r.Z_DEFAULT_WINDOWBITS;this._inflate=r.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[l]=this,this._inflate[u]=0,this._inflate[f]=[],this._inflate.on(`error`,b),this._inflate.on(`data`,y)}this._inflate[d]=n,this._inflate.write(e),t&&this._inflate.write(c),this._inflate.flush(()=>{let e=this._inflate[p];if(e){this._inflate.close(),this._inflate=null,n(e);return}let r=i.concat(this._inflate[f],this._inflate[u]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[u]=0,this._inflate[f]=[],t&&this.params[`${a}_no_context_takeover`]&&this._inflate.reset()),n(null,r)})}_compress(e,t,n){let a=this._isServer?`server`:`client`;if(!this._deflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:r.Z_DEFAULT_WINDOWBITS;this._deflate=r.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[u]=0,this._deflate[f]=[],this._deflate.on(`data`,v)}this._deflate[d]=n,this._deflate.write(e),this._deflate.flush(r.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=i.concat(this._deflate[f],this._deflate[u]);t&&(e=new s(e.buffer,e.byteOffset,e.length-4)),this._deflate[d]=null,this._deflate[u]=0,this._deflate[f]=[],t&&this.params[`${a}_no_context_takeover`]&&this._deflate.reset(),n(null,e)})}};function v(e){this[f].push(e),this[u]+=e.length}function y(e){this[u]+=e.length,this[l]._maxPayload<1||this[u]<=this[l]._maxPayload?this[f].push(e):(this[p]=/* @__PURE__ */ RangeError(`Max payload size exceeded`),this[p].code=`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`,this[p][o]=1009,this.removeListener(`data`,y),this.reset())}function b(e){this[l]._inflate=null,this[p]?this[d](this[p]):(e[o]=1007,this[d](e))}})),y=/* @__PURE__ */ n(((t,n)=>{let{isUtf8:r}=e(`buffer`),{hasBlob:i}=h(),a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function o(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function s(e){let t=e.length,n=0;for(;n<t;)if(!(e[n]&128))n++;else if((e[n]&224)==192){if(n+1===t||(e[n+1]&192)!=128||(e[n]&254)==192)return!1;n+=2}else if((e[n]&240)==224){if(n+2>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||e[n]===224&&(e[n+1]&224)==128||e[n]===237&&(e[n+1]&224)==160)return!1;n+=3}else if((e[n]&248)==240){if(n+3>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||(e[n+3]&192)!=128||e[n]===240&&(e[n+1]&240)==128||e[n]===244&&e[n+1]>143||e[n]>244)return!1;n+=4}else return!1;return!0}function c(e){return i&&typeof e==`object`&&typeof e.arrayBuffer==`function`&&typeof e.type==`string`&&typeof e.stream==`function`&&(e[Symbol.toStringTag]===`Blob`||e[Symbol.toStringTag]===`File`)}if(n.exports={isBlob:c,isValidStatusCode:o,isValidUTF8:s,tokenChars:a},r)n.exports.isValidUTF8=function(e){return e.length<24?s(e):r(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let t=e(`utf-8-validate`);n.exports.isValidUTF8=function(e){return e.length<32?s(e):t(e)}}catch{}})),b=/* @__PURE__ */ n(((t,n)=>{let{Writable:r}=e(`stream`),i=v(),{BINARY_TYPES:a,EMPTY_BUFFER:o,kStatusCode:s,kWebSocket:c}=h(),{concat:l,toArrayBuffer:u,unmask:d}=g(),{isValidStatusCode:f,isValidUTF8:p}=y(),m=Buffer[Symbol.species];n.exports=class extends r{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents===void 0||e.allowSynchronousEvents,this._binaryType=e.binaryType||a[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxBufferedChunks=e.maxBufferedChunks|0,this._maxFragments=e.maxFragments|0,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[c]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(this._opcode===8&&this._state==0)return n();this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks?n(this.createError(RangeError,`Too many buffered chunks`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`)):(this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n))}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let t=this._buffers[0];return this._buffers[0]=new m(t.buffer,t.byteOffset+e,t.length-e),new m(t.buffer,t.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new m(n.buffer,n.byteOffset+e,n.length-e)),e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if(t[0]&48){e(this.createError(RangeError,`RSV2 and RSV3 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_2_3`));return}let n=(t[0]&64)==64;if(n&&!this._extensions[i.extensionName])e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));else{if(this._fin=(t[0]&128)==128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(!this._fragmented){e(this.createError(RangeError,`invalid opcode 0`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._compressed=n}else if(this._opcode>7&&this._opcode<11){if(!this._fin){e(this.createError(RangeError,`FIN must be set`,!0,1002,`WS_ERR_EXPECTED_FIN`));return}if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,`WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH`));return}}else{e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)==128,this._isServer){if(!this._masked){e(this.createError(RangeError,`MASK must be set`,!0,1002,`WS_ERR_EXPECTED_MASK`));return}}else if(this._masked){e(this.createError(RangeError,`MASK must be clear`,!0,1002,`WS_ERR_UNEXPECTED_MASK`));return}this._payloadLength===126?this._state=1:this._payloadLength===127?this._state=2:this.haveLength(e)}}getPayloadLength16(e){this._bufferedBytes<2?this._loop=!1:(this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e))}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),n=t.readUInt32BE(0);n>2**21-1?e(this.createError(RangeError,`Unsupported WebSocket frame: payload length > 2^53 - 1`,!1,1009,`WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH`)):(this._payloadLength=n*2**32+t.readUInt32BE(4),this.haveLength(e))}haveLength(e){this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)?e(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`)):this._state=this._masked?3:4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(e){let t=o;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&d(t,this._mask)}if(this._opcode>7)this.controlMessage(t,e);else if(this._compressed)this._state=5,this.decompress(t,e);else{if(t.length){if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){e(this.createError(RangeError,`Too many message fragments`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._messageLength=this._totalPayloadLength,this._fragments.push(t)}this.dataMessage(e)}}decompress(e,t){this._extensions[i.extensionName].decompress(e,this._fin,(e,n)=>{if(e)return t(e);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){t(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){t(this.createError(RangeError,`Too many message fragments`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._fragments.push(n)}this.dataMessage(t),this._state===0&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=0;return}let t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let r;r=this._binaryType===`nodebuffer`?l(n,t):this._binaryType===`arraybuffer`?u(l(n,t)):this._binaryType===`blob`?new Blob(n):n,this._allowSynchronousEvents?(this.emit(`message`,r,!0),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!0),this._state=0,this.startLoop(e)}))}else{let r=l(n,t);if(!this._skipUTF8Validation&&!p(r)){e(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._state===5||this._allowSynchronousEvents?(this.emit(`message`,r,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!1),this._state=0,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit(`conclude`,1005,o),this.end();else{let n=e.readUInt16BE(0);if(!f(n)){t(this.createError(RangeError,`invalid status code ${n}`,!0,1002,`WS_ERR_INVALID_CLOSE_CODE`));return}let r=new m(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!p(r)){t(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._loop=!1,this.emit(`conclude`,n,r),this.end()}this._state=0}else this._allowSynchronousEvents?(this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0):(this._state=6,setImmediate(()=>{this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0,this.startLoop(t)}))}createError(e,t,n,r,i){this._loop=!1,this._errored=!0;let a=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(a,this.createError),a.code=i,a[s]=r,a}}})),x=/* @__PURE__ */ n(((t,n)=>{let{Duplex:r}=e(`stream`),{randomFillSync:i}=e(`crypto`),{types:{isUint8Array:a}}=e(`util`),o=v(),{EMPTY_BUFFER:s,kWebSocket:c,NOOP:l}=h(),{isBlob:u,isValidStatusCode:d}=y(),{mask:f,toBuffer:p}=g(),m=Symbol(`kByteLength`),_=Buffer.alloc(4),b=8192,x,S=b;n.exports=class e{constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=l,this[c]=void 0}static frame(e,t){let n,r=!1,a=2,o=!1;t.mask&&(n=t.maskBuffer||_,t.generateMask?t.generateMask(n):(S===b&&(x===void 0&&(x=Buffer.alloc(b)),i(x,0,b),S=0),n[0]=x[S++],n[1]=x[S++],n[2]=x[S++],n[3]=x[S++]),o=(n[0]|n[1]|n[2]|n[3])===0,a=6);let s;typeof e==`string`?(!t.mask||o)&&t[m]!==void 0?s=t[m]:(e=Buffer.from(e),s=e.length):(s=e.length,r=t.mask&&t.readOnly&&!o);let c=s;s>=65536?(a+=8,c=127):s>125&&(a+=2,c=126);let l=Buffer.allocUnsafe(r?s+a:a);return l[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(l[0]|=64),l[1]=c,c===126?l.writeUInt16BE(s,2):c===127&&(l[2]=l[3]=0,l.writeUIntBE(s,4,6)),!t.mask||(l[1]|=128,l[a-4]=n[0],l[a-3]=n[1],l[a-2]=n[2],l[a-1]=n[3],o)?[l,e]:r?(f(e,n,l,a,s),[l]):(f(e,n,e,0,s),[l,e])}close(t,n,r,i){let o;if(t===void 0)o=s;else if(typeof t!=`number`||!d(t))throw TypeError(`First argument must be a valid error code number`);else if(n===void 0||!n.length)o=Buffer.allocUnsafe(2),o.writeUInt16BE(t,0);else{let e=Buffer.byteLength(n);if(e>123)throw RangeError(`The message must not be greater than 123 bytes`);if(o=Buffer.allocUnsafe(2+e),o.writeUInt16BE(t,0),typeof n==`string`)o.write(n,2);else if(a(n))o.set(n,2);else throw TypeError(`Second argument must be a string or a Uint8Array`)}let c={[m]:o.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state===0?this.sendFrame(e.frame(o,c),i):this.enqueue([this.dispatch,o,!1,c,i])}ping(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):u(t)?(i=t.size,a=!1):(t=p(t),i=t.length,a=p.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[m]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:9,readOnly:a,rsv1:!1};u(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}pong(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):u(t)?(i=t.size,a=!1):(t=p(t),i=t.length,a=p.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[m]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:10,readOnly:a,rsv1:!1};u(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}send(e,t,n){let r=this._extensions[o.extensionName],i=t.binary?2:1,a=t.compress,s,c;typeof e==`string`?(s=Buffer.byteLength(e),c=!1):u(e)?(s=e.size,c=!1):(e=p(e),s=e.length,c=p.readOnly),this._firstFragment?(this._firstFragment=!1,a&&r&&r.params[r._isServer?`server_no_context_takeover`:`client_no_context_takeover`]&&(a=s>=r._threshold),this._compress=a):(a=!1,i=0),t.fin&&(this._firstFragment=!0);let l={[m]:s,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:c,rsv1:a};u(e)?this._state===0?this.getBlobData(e,this._compress,l,n):this.enqueue([this.getBlobData,e,this._compress,l,n]):this._state===0?this.dispatch(e,this._compress,l,n):this.enqueue([this.dispatch,e,this._compress,l,n])}getBlobData(t,n,r,i){this._bufferedBytes+=r[m],this._state=2,t.arrayBuffer().then(t=>{if(this._socket.destroyed){let e=/* @__PURE__ */ Error(`The socket was closed while the blob was being read`);process.nextTick(C,this,e,i);return}this._bufferedBytes-=r[m];let a=p(t);n?this.dispatch(a,n,r,i):(this._state=0,this.sendFrame(e.frame(a,r),i),this.dequeue())}).catch(e=>{process.nextTick(w,this,e,i)})}dispatch(t,n,r,i){if(!n){this.sendFrame(e.frame(t,r),i);return}let a=this._extensions[o.extensionName];this._bufferedBytes+=r[m],this._state=1,a.compress(t,r.fin,(t,n)=>{if(this._socket.destroyed){let e=/* @__PURE__ */ Error(`The socket was closed while data was being compressed`);C(this,e,i)}else this._bufferedBytes-=r[m],this._state=0,r.readOnly=!1,this.sendFrame(e.frame(n,r),i),this.dequeue()})}dequeue(){for(;this._state===0&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][m],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][m],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};function C(e,t,n){typeof n==`function`&&n(t);for(let n=0;n<e._queue.length;n++){let r=e._queue[n],i=r[r.length-1];typeof i==`function`&&i(t)}}function w(e,t,n){C(e,t,n),e.onerror(t)}})),S=/* @__PURE__ */ n(((e,t)=>{let{kForOnEventAttribute:n,kListener:r}=h(),i=Symbol(`kCode`),a=Symbol(`kData`),o=Symbol(`kError`),s=Symbol(`kMessage`),c=Symbol(`kReason`),l=Symbol(`kTarget`),u=Symbol(`kType`),d=Symbol(`kWasClean`);var f=class{constructor(e){this[l]=null,this[u]=e}get target(){return this[l]}get type(){return this[u]}};Object.defineProperty(f.prototype,"target",{enumerable:!0}),Object.defineProperty(f.prototype,"type",{enumerable:!0});var p=class extends f{constructor(e,t={}){super(e),this[i]=t.code===void 0?0:t.code,this[c]=t.reason===void 0?``:t.reason,this[d]=t.wasClean!==void 0&&t.wasClean}get code(){return this[i]}get reason(){return this[c]}get wasClean(){return this[d]}};Object.defineProperty(p.prototype,"code",{enumerable:!0}),Object.defineProperty(p.prototype,"reason",{enumerable:!0}),Object.defineProperty(p.prototype,"wasClean",{enumerable:!0});var m=class extends f{constructor(e,t={}){super(e),this[o]=t.error===void 0?null:t.error,this[s]=t.message===void 0?``:t.message}get error(){return this[o]}get message(){return this[s]}};Object.defineProperty(m.prototype,"error",{enumerable:!0}),Object.defineProperty(m.prototype,"message",{enumerable:!0});var g=class extends f{constructor(e,t={}){super(e),this[a]=t.data===void 0?null:t.data}get data(){return this[a]}};Object.defineProperty(g.prototype,"data",{enumerable:!0}),t.exports={CloseEvent:p,ErrorEvent:m,Event:f,EventTarget:{addEventListener(e,t,i={}){for(let a of this.listeners(e))if(!i[n]&&a[r]===t&&!a[n])return;let a;if(e===`message`)a=function(e,n){let r=new g(`message`,{data:n?e:e.toString()});r[l]=this,_(t,this,r)};else if(e===`close`)a=function(e,n){let r=new p(`close`,{code:e,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[l]=this,_(t,this,r)};else if(e===`error`)a=function(e){let n=new m(`error`,{error:e,message:e.message});n[l]=this,_(t,this,n)};else if(e===`open`)a=function(){let e=new f(`open`);e[l]=this,_(t,this,e)};else return;a[n]=!!i[n],a[r]=t,i.once?this.once(e,a):this.on(e,a)},removeEventListener(e,t){for(let i of this.listeners(e))if(i[r]===t&&!i[n]){this.removeListener(e,i);break}}},MessageEvent:g};function _(e,t,n){typeof e==`object`&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}})),C=/* @__PURE__ */ n(((e,t)=>{let{tokenChars:n}=y();function r(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function i(e){let t=Object.create(null),i=Object.create(null),a=!1,o=!1,s=!1,c,l,u=-1,d=-1,f=-1,p=0;for(;p<e.length;p++)if(d=e.charCodeAt(p),c===void 0){if(f===-1&&n[d]===1)u===-1&&(u=p);else if(p!==0&&(d===32||d===9))f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);d===44?(r(t,n,i),i=Object.create(null)):c=n,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`)}else if(l===void 0){if(f===-1&&n[d]===1)u===-1&&(u=p);else if(d===32||d===9)f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p),r(i,e.slice(u,f),!0),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),u=f=-1}else if(d===61&&u!==-1&&f===-1)l=e.slice(u,p),u=f=-1;else throw SyntaxError(`Unexpected character at index ${p}`)}else if(o){if(n[d]!==1)throw SyntaxError(`Unexpected character at index ${p}`);u===-1?u=p:a||=!0,o=!1}else if(s){if(n[d]===1)u===-1&&(u=p);else if(d===34&&u!==-1)s=!1,f=p;else if(d===92)o=!0;else throw SyntaxError(`Unexpected character at index ${p}`)}else if(d===34&&e.charCodeAt(p-1)===61)s=!0;else if(f===-1&&n[d]===1)u===-1&&(u=p);else if(u!==-1&&(d===32||d===9))f===-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);a&&=(n=n.replace(/\\/g,``),!1),r(i,l,n),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),l=void 0,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);if(u===-1||s||d===32||d===9)throw SyntaxError(`Unexpected end of input`);f===-1&&(f=p);let m=e.slice(u,f);return c===void 0?r(t,m,i):(l===void 0?r(i,m,!0):a?r(i,l,m.replace(/\\/g,``)):r(i,l,m),r(t,c,i)),t}function a(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>e===!0?t:`${t}=${e}`).join(`; `)})).join(`; `)).join(`, `)}).join(`, `)}t.exports={format:a,parse:i}})),w=/* @__PURE__ */ n(((t,n)=>{let r=e(`events`),i=e(`https`),a=e(`http`),o=e(`net`),s=e(`tls`),{randomBytes:c,createHash:l}=e(`crypto`),{Duplex:u,Readable:d}=e(`stream`),{URL:f}=e(`url`),p=v(),m=b(),_=x(),{isBlob:w}=y(),{BINARY_TYPES:T,CLOSE_TIMEOUT:E,EMPTY_BUFFER:D,GUID:O,kForOnEventAttribute:k,kListener:A,kStatusCode:j,kWebSocket:M,NOOP:N}=h(),{EventTarget:{addEventListener:P,removeEventListener:F}}=S(),{format:I,parse:L}=C(),{toBuffer:R}=g(),z=Symbol(`kAborted`),B=[8,13],V=[`CONNECTING`,`OPEN`,`CLOSING`,`CLOSED`],H=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;var U=class e extends r{constructor(t,n,r){super(),this._binaryType=T[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=D,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol=``,this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,t===null?(this._autoPong=r.autoPong,this._closeTimeout=r.closeTimeout,this._isServer=!0):(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,n===void 0?n=[]:Array.isArray(n)||(typeof n==`object`&&n?(r=n,n=[]):n=[n]),W(this,t,n,r))}get binaryType(){return this._binaryType}set binaryType(e){T.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}
5
5
  /* istanbul ignore next */
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export{t as analyseBundle}from"./startup-profile-BLvw_Wmc.mjs";
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{i as e,r as t}from"./cf-CInFH4Ng.mjs";import{join as n}from"node:path";const r=t(()=>n(e(),`state.json`));function i(){return r.read()??{}}function a(e){let t=i();r.write({...t,...e,...e.telemetry===void 0?{}:{telemetry:{...t.telemetry,...e.telemetry}}})}export{a as n,i as t};
2
+ import{a as e,i as t}from"./cf-DgLg6Hop.mjs";import{join as n}from"node:path";const r=t(()=>n(e(),`state.json`));function i(){return r.read()??{}}function a(e){let t=i();r.write({...t,...e,...e.telemetry===void 0?{}:{telemetry:{...t.telemetry,...e.telemetry}}})}export{a as n,i as t};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export{t as readState,n as updateState}from"./state-B8n0QU04.mjs";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{i as n,n as r}from"./auth-pbuzyz4C.mjs";import{a as i,t as a}from"./context-BryBS1zQ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-C_yVLVcl.mjs";import{t as l}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as u,n as d,r as f,s as p,t as m}from"./body-parser-BKcZS9iJ.mjs";import{n as h,t as g}from"./input-validation-D7z60HJH.mjs";import{a as _,n as v}from"./prompt-kxvGZ6nF.mjs";import{n as y,t as ee}from"./raw-fetch-C_hWBr7n.mjs";var te={method:`POST`,path:t=>e`/accounts/${t.account_id}/stream/keys`};function ne(e){return e.usage(`$0 stream keys create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-BNmz58v4.mjs";import{i as n,n as r}from"./auth-CB9wjyad.mjs";import{a as i,t as a}from"./context-DCon1tRZ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-_Jux05O5.mjs";import{t as l}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{a as u,n as d,r as f,s as p,t as m}from"./body-parser-BKcZS9iJ.mjs";import{n as h,t as g}from"./input-validation-D7z60HJH.mjs";import{a as _,n as v}from"./prompt-SNVLBS1b.mjs";import{n as y,t as ee}from"./raw-fetch-D3ydyJYW.mjs";var te={method:`POST`,path:t=>e`/accounts/${t.account_id}/stream/keys`};function ne(e){return e.usage(`$0 stream keys create
3
3
 
4
4
  Creates an RSA private key in PEM and JWK formats. Key files are only displayed once after creation. Keys are created, used, and deleted independently of videos, and every key can sign any video.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`create`,describe:`Create signing keys`,builder:ne,handler:async e=>l({command:`stream keys create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();s({command:`cf stream keys create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/stream/keys`,pathParams:{},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Creating`,async()=>n.send(te,{account_id:l}));o(u,{successLabel:`Created`})})};var ie={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/stream/keys/${t.identifier}`};function ae(e){return e.usage(`$0 stream keys delete <identifier>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{i as n,n as r}from"./auth-pbuzyz4C.mjs";import{a as i,i as a,t as o}from"./context-BryBS1zQ.mjs";import{t as s}from"./output-BJEgbI0G.mjs";import{t as c}from"./dry-run-gy0Hl9xo.mjs";import{t as l}from"./progress-C_yVLVcl.mjs";import{t as u}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as d,s as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g,n as _}from"./prompt-kxvGZ6nF.mjs";function v(e){return e.usage(`$0 tags account-resources delete
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-BNmz58v4.mjs";import{i as n,n as r}from"./auth-CB9wjyad.mjs";import{a as i,i as a,t as o}from"./context-DCon1tRZ.mjs";import{t as s}from"./output-BJEgbI0G.mjs";import{t as c}from"./dry-run-gy0Hl9xo.mjs";import{t as l}from"./progress-_Jux05O5.mjs";import{t as u}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{n as d,s as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g,n as _}from"./prompt-SNVLBS1b.mjs";function v(e){return e.usage(`$0 tags account-resources delete
3
3
 
4
4
  Removes all tags from a specific account or zone-level resource.`).option(`if-match`,{type:`string`,description:`ETag value for optimistic concurrency control. When provided, the server will
5
5
  verify the current resource ETag matches before applying the write. Returns
@@ -15,7 +15,7 @@ obtained. Omit this header for unconditional writes.`}).option(`resource-id`,{ty
15
15
 
16
16
  Lists all distinct tag keys used across resources in an account.`).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`list`,describe:`List tag keys`,builder:D,handler:async e=>u({command:`tags keys list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={cursor:e.cursor};if(e.dryRun){let e=await i();c({command:`cf tags keys list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tags/keys`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(E,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})},k={command:`keys`,describe:`Operations for keys`,builder:e=>e.command(O).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var A={method:`GET`,path:t=>e`/accounts/${t.account_id}/tags/resources`,query:[`include_navigation`,`type`,`name`,`id`,`case_insensitive`,`tag`,`cursor`]};function j(e){return e.usage(`$0 tags resources list
17
17
 
18
- Lists all tagged resources for an account.`).option(`include-navigation`,{type:`boolean`,description:`Resolve current namespace Worker navigation by immutable child tag. Optional read-only navigation is omitted for deleted or unresolved children. Lookups are limited to this page, at most five concurrently, with a shared two-second budget. Tag identity, ETag, filters and pagination are unchanged; name filtering still uses the stored resource name. Defaults to false.`}).option(`type`,{type:`string`,description:`Filter by resource type. Can be repeated to filter by multiple types (OR logic). Example: ?type=zone&type=worker`}).option(`name`,{type:`string`,description:`Filter by resource name. Performs a case-insensitive substring match. Example: ?name=my-zone`}).option(`id`,{type:`string`,description:`Filter by resource ID. Can be repeated up to 50 times to filter by multiple IDs. Example: ?id=abc&id=def`}).option(`case-insensitive`,{type:`boolean`,description:"Match `tag` keys and values case-insensitively. Stored casing is unchanged. Example: ?tag=environment=production&case_insensitive=true"}).option(`tag`,{type:`string`,description:"Filter resources by tag criteria. This parameter can be repeated multiple times, with AND logic between parameters.\n\nSupported syntax:\n- **Key-only**: `tag=<key>` - Resource must have the tag key (e.g., `tag=production`)\n- **Key-value**: `tag=<key>=<value>` - Resource must have the tag with specific value (e.g., `tag=env=prod`)\n- **Multiple values (OR)**: `tag=<key>=<v1>,<v2>` - Resource must have tag with any of the values (e.g., `tag=env=prod,staging`)\n- **Negate key-only**: `tag=!<key>` - Resource must not have the tag key (e.g., `tag=!archived`)\n- **Negate key-value**: `tag=<key>!=<value>` - Resource must not have the tag with specific value (e.g., `tag=region!=us-west-1`)\n\nMultiple tag parameters are combined with AND logic."}).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`list`,describe:`List tagged resources`,builder:j,handler:async e=>u({command:`tags resources list`,classification:{safeFlags:[`include-navigation`,`case-insensitive`,`dry-run`]}},e,async()=>{let n={include_navigation:e[`include-navigation`],type:e.type,name:e.name,id:e.id,case_insensitive:e[`case-insensitive`],tag:e.tag,cursor:e.cursor};if(e.dryRun){let e=await i();c({command:`cf tags resources list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tags/resources`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(A,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})},N={command:`resources`,describe:`Operations for resources`,builder:e=>e.command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var P={method:`GET`,path:t=>e`/accounts/${t.account_id}/tags/summary`,query:[`cursor`]};function F(e){return e.usage(`$0 tags summary get
18
+ Lists all tagged resources for an account.`).option(`include-navigation`,{type:`boolean`,description:`Resolve current namespace Worker navigation by immutable child tag. Optional read-only navigation is omitted for deleted or unresolved children. Lookups are limited to this page, at most five concurrently, with a shared two-second budget. Tag identity, ETag, filters and pagination are unchanged; name filtering still uses the stored resource name. Defaults to false.`}).option(`type`,{type:`string`,array:!0,description:`Filter by resource type. Can be repeated to filter by multiple types (OR logic). Example: ?type=zone&type=worker`}).option(`name`,{type:`string`,description:`Filter by resource name. Performs a case-insensitive substring match. Example: ?name=my-zone`}).option(`id`,{type:`string`,array:!0,description:`Filter by resource ID. Can be repeated up to 50 times to filter by multiple IDs. Example: ?id=abc&id=def`}).option(`case-insensitive`,{type:`boolean`,description:"Match `tag` keys and values case-insensitively. Stored casing is unchanged. Example: ?tag=environment=production&case_insensitive=true"}).option(`tag`,{type:`string`,array:!0,description:"Filter resources by tag criteria. This parameter can be repeated multiple times, with AND logic between parameters.\n\nSupported syntax:\n- **Key-only**: `tag=<key>` - Resource must have the tag key (e.g., `tag=production`)\n- **Key-value**: `tag=<key>=<value>` - Resource must have the tag with specific value (e.g., `tag=env=prod`)\n- **Multiple values (OR)**: `tag=<key>=<v1>,<v2>` - Resource must have tag with any of the values (e.g., `tag=env=prod,staging`)\n- **Negate key-only**: `tag=!<key>` - Resource must not have the tag key (e.g., `tag=!archived`)\n- **Negate key-value**: `tag=<key>!=<value>` - Resource must not have the tag with specific value (e.g., `tag=region!=us-west-1`)\n\nMultiple tag parameters are combined with AND logic."}).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`list`,describe:`List tagged resources`,builder:j,handler:async e=>u({command:`tags resources list`,classification:{safeFlags:[`include-navigation`,`case-insensitive`,`dry-run`]}},e,async()=>{let n={include_navigation:e[`include-navigation`],type:e.type,name:e.name,id:e.id,case_insensitive:e[`case-insensitive`],tag:e.tag,cursor:e.cursor};if(e.dryRun){let e=await i();c({command:`cf tags resources list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tags/resources`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(A,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})},N={command:`resources`,describe:`Operations for resources`,builder:e=>e.command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var P={method:`GET`,path:t=>e`/accounts/${t.account_id}/tags/summary`,query:[`cursor`]};function F(e){return e.usage(`$0 tags summary get
19
19
 
20
20
  Lists all distinct tag keys and their distinct values across resources in an account.`).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`get`,describe:`List tag key summary`,builder:F,handler:async e=>u({command:`tags summary get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={cursor:e.cursor};if(e.dryRun){let e=await i();c({command:`cf tags summary get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tags/summary`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(P,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})},L={command:`summary`,describe:`Operations for summary`,builder:e=>e.command(I).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var R={method:`GET`,path:t=>e`/accounts/${t.account_id}/tags/values/${t.tag_key}`,query:[`type`,`cursor`]};function z(e){return e.usage(`$0 tags values list
21
21
 
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{a as e,n as t,r as n,t as r}from"./lifecycle-oud60haK.mjs";import{a as i,c as a,d as o,f as s,i as c,n as l,o as u,p as d,r as f,s as p,t as m,u as h}from"./run-BlSXngtI.mjs";import{r as g}from"./sanitization-DkVWMHkc.mjs";import{t as _}from"./telemetry-jl3s2-bN.mjs";export{c as TELEMETRY_ENV_VAR,i as TELEMETRY_POLICY_DATE,_ as UNKNOWN_COMMAND_EVENT,r as allTelemetryDispatchesSettled,t as beginTelemetryRun,u as getBannerLastShown,p as getDeviceId,f as getTelemetryDispatcher,a as getTelemetryFromEnv,h as isFirstUsage,n as markCommandReported,o as resolveTelemetry,m as runWithTelemetry,g as sanitizeArgs,s as setBannerLastShown,d as setTelemetryPermission,e as wasCommandReported,l as withTelemetry};
2
+ import{a as e,n as t,r as n,t as r}from"./lifecycle-oud60haK.mjs";import{a as i,c as a,d as o,f as s,i as c,n as l,o as u,p as d,r as f,s as p,t as m,u as h}from"./run-Br8sYjNF.mjs";import{r as g}from"./sanitization-DkVWMHkc.mjs";import{t as _}from"./telemetry-kjElc1zT.mjs";export{c as TELEMETRY_ENV_VAR,i as TELEMETRY_POLICY_DATE,_ as UNKNOWN_COMMAND_EVENT,r as allTelemetryDispatchesSettled,t as beginTelemetryRun,u as getBannerLastShown,p as getDeviceId,f as getTelemetryDispatcher,a as getTelemetryFromEnv,h as isFirstUsage,n as markCommandReported,o as resolveTelemetry,m as runWithTelemetry,g as sanitizeArgs,s as setBannerLastShown,d as setTelemetryPermission,e as wasCommandReported,l as withTelemetry};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import"./run-Br8sYjNF.mjs";const e=`unknown command`;export{e as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-pbuzyz4C.mjs";import{t as n}from"./output-BJEgbI0G.mjs";import{t as r}from"./dry-run-gy0Hl9xo.mjs";import{t as i}from"./progress-C_yVLVcl.mjs";import{t as a}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";var o={method:`GET`,path:t=>e`/tenants/${t.tenant_id}/account_types`};function s(e){return e.usage(`$0 tenant account-type list
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CB9wjyad.mjs";import{t as n}from"./output-BJEgbI0G.mjs";import{t as r}from"./dry-run-gy0Hl9xo.mjs";import{t as i}from"./progress-_Jux05O5.mjs";import{t as a}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";var o={method:`GET`,path:t=>e`/tenants/${t.tenant_id}/account_types`};function s(e){return e.usage(`$0 tenant account-type list
3
3
 
4
4
  Lists the account types this tenant is allowed to provision.`).option(`tenant-id`,{type:`string`,description:`The ID of the tenant whose available account types to list.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const c={command:`list`,describe:`List tenant account types`,builder:s,handler:async e=>a({command:`tenant account-type list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf tenant account-type list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/tenants/${e[`tenant-id`]==null?`<tenant-id>`:encodeURIComponent(String(e[`tenant-id`]))}/account_types`,pathParams:{"tenant-id":String(e[`tenant-id`]??``)},bodyKind:`none`});return}let a=await t(e),s=await i(`Loading`,async()=>a.send(o,{tenant_id:e[`tenant-id`]}));n(s,{successLabel:`Loaded`})})},l={command:`account-type`,describe:`Operations for account-type`,builder:e=>e.command(c).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var u={method:`GET`,path:t=>e`/tenants/${t.tenant_id}/accounts`};function d(e){return e.usage(`$0 tenant account list
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-pbuzyz4C.mjs";import{t as n}from"./output-BJEgbI0G.mjs";import{t as r}from"./dry-run-gy0Hl9xo.mjs";import{t as i}from"./progress-C_yVLVcl.mjs";import{t as a}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as o,t as s}from"./body-parser-BKcZS9iJ.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{a as l,n as u}from"./prompt-kxvGZ6nF.mjs";var d={method:`POST`,path:t=>e`/tenants/${t.tenant_tag}/custom_ns`,body:`json`};function f(e){return e.usage(`$0 tenant-custom-nameservers create <tenant-tag>
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CB9wjyad.mjs";import{t as n}from"./output-BJEgbI0G.mjs";import{t as r}from"./dry-run-gy0Hl9xo.mjs";import{t as i}from"./progress-_Jux05O5.mjs";import{t as a}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{n as o,t as s}from"./body-parser-BKcZS9iJ.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{a as l,n as u}from"./prompt-SNVLBS1b.mjs";var d={method:`POST`,path:t=>e`/tenants/${t.tenant_tag}/custom_ns`,body:`json`};function f(e){return e.usage(`$0 tenant-custom-nameservers create <tenant-tag>
3
3
 
4
4
  Adds a custom nameserver for a tenant.`).positional(`tenant-tag`,{type:`string`,description:`Tenant identifier tag.`,demandOption:!0}).option(`ns-name`,{type:`string`,description:`The FQDN of the name server.`}).option(`ns-set`,{type:`number`,description:`The number of the set that this name server belongs to.`,default:1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const p={command:`create <tenant-tag>`,describe:`Add Tenant Custom Nameserver`,builder:f,handler:async e=>a({command:`tenant-custom-nameservers create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf tenant-custom-nameservers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/tenants/${e[`tenant-tag`]==null?`<tenant-tag>`:encodeURIComponent(String(e[`tenant-tag`]))}/custom_ns`,pathParams:{"tenant-tag":String(e[`tenant-tag`]??``)},bodyKind:`json`,body:e.body===void 0?s({ns_name:c(e[`ns-name`],`ns-name`,`text`),ns_set:e[`ns-set`]}):o(e.body)});return}let a=await t(e);if(e.body){let t=o(e.body),r=await i(`Creating`,async()=>a.send(d,{body:t,tenant_tag:e[`tenant-tag`]}));n(r,{successLabel:`Created`});return}e[`ns-name`]===void 0&&(e[`ns-name`]=await l(`ns-name`,`The FQDN of the name server.`));let u=s({ns_name:c(e[`ns-name`],`ns-name`,`text`),ns_set:e[`ns-set`]}),f=await i(`Creating`,async()=>a.send(d,{body:u,tenant_tag:e[`tenant-tag`]}));n(f,{successLabel:`Created`})})};var m={method:`DELETE`,path:t=>e`/tenants/${t.tenant_tag}/custom_ns/${t.custom_ns_id}`};function h(e){return e.usage(`$0 tenant-custom-nameservers delete <custom-ns-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./lazy-command-CD1nuS38.mjs";import"./api-X3wKppsT.mjs";import{t}from"./path-DRw6Y-nd.mjs";import{t as n}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as r}from"./local-CIeKNHSz.mjs";import{n as i}from"./auth-pbuzyz4C.mjs";import{a,t as o}from"./context-BryBS1zQ.mjs";import{t as s}from"./output-BJEgbI0G.mjs";import{t as c}from"./dry-run-gy0Hl9xo.mjs";import{t as l}from"./progress-C_yVLVcl.mjs";import{t as u}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as d,n as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,n as g}from"./prompt-kxvGZ6nF.mjs";import{t as _}from"./create-BtmuVqVL.mjs";import{t as v}from"./get-Be821dio.mjs";var y={method:`GET`,path:e=>t`/accounts/${e.account_id}/cfd_tunnel/${e.tunnel_id}/configurations`};function b(e){return e.usage(`$0 tunnels config get <tunnel-id>
2
+ import{t as e}from"./lazy-command-DjGzxiUT.mjs";import"./api-X3wKppsT.mjs";import{t}from"./path-DRw6Y-nd.mjs";import{t as n}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as r}from"./local-BNmz58v4.mjs";import{n as i}from"./auth-CB9wjyad.mjs";import{a,t as o}from"./context-DCon1tRZ.mjs";import{t as s}from"./output-BJEgbI0G.mjs";import{t as c}from"./dry-run-gy0Hl9xo.mjs";import{t as l}from"./progress-_Jux05O5.mjs";import{t as u}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{a as d,n as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,n as g}from"./prompt-SNVLBS1b.mjs";import{t as _}from"./create-BtmuVqVL.mjs";import{t as v}from"./get-Be821dio.mjs";var y={method:`GET`,path:e=>t`/accounts/${e.account_id}/cfd_tunnel/${e.tunnel_id}/configurations`};function b(e){return e.usage(`$0 tunnels config get <tunnel-id>
3
3
 
4
4
  Retrieves the configuration for a remotely managed Cloudflare Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`get <tunnel-id>`,describe:`Get Tunnel configuration`,builder:b,handler:async e=>u({command:`tunnels config get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();c({command:`cf tunnels config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}/configurations`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},bodyKind:`none`});return}let t=await i(e),n=e.local?r:await o();e.accountId=n;let u=await l(`Loading`,async()=>t.send(y,{account_id:n,tunnel_id:e[`tunnel-id`]}));s(u,{successLabel:`Loaded`})})};var x={method:`PUT`,path:e=>t`/accounts/${e.account_id}/cfd_tunnel/${e.tunnel_id}/configurations`,body:`json`};function S(e){return e.usage(`$0 tunnels config update <tunnel-id>
5
5
 
@@ -20,8 +20,8 @@ Updates the name or secret of an existing Cloudflare Tunnel.`).positional(`tunne
20
20
 
21
21
  Fetches a single Cloudflare Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const K={command:`get <tunnel-id>`,describe:`Get a Cloudflare Tunnel`,builder:G,handler:async e=>u({command:`tunnels get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();c({command:`cf tunnels get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},bodyKind:`none`});return}let t=await i(e),n=e.local?r:await o();e.accountId=n;let u=await l(`Loading`,async()=>t.send(W,{account_id:n,tunnel_id:e[`tunnel-id`]}));s(u,{successLabel:`Loaded`})})};var q={method:`GET`,path:e=>t`/accounts/${e.account_id}/tunnels`,query:[`name`,`is_deleted`,`existed_at`,`uuid`,`was_active_at`,`was_inactive_at`,`include_prefix`,`exclude_prefix`,`tun_types`,`status`,`per_page`,`page`]};function J(e){return e.usage(`$0 tunnels list
22
22
 
23
- Lists and filters all types of Tunnels in an account.`).option(`name`,{type:`string`,description:`A user-friendly name for the tunnel.`}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only include deleted tunnels. If `false`, exclude deleted tunnels. If empty, all tunnels will be included."}).option(`existed-at`,{type:`string`,description:`If provided, include only resources that were created (and not deleted) before this time. URL encoded.`}).option(`uuid`,{type:`string`,description:`UUID of the tunnel.`}).option(`was-active-at`,{type:`string`,description:`Was active at`}).option(`was-inactive-at`,{type:`string`,description:`Was inactive at`}).option(`include-prefix`,{type:`string`,description:`Include prefix`}).option(`exclude-prefix`,{type:`string`,description:`Exclude prefix`}).option(`tun-types`,{type:`string`,description:`The types of tunnels to filter by, separated by commas.`}).option(`status`,{type:`string`,description:"The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).",choices:[`inactive`,`degraded`,`healthy`,`down`]}).option(`per-page`,{type:`number`,description:`Number of results to display.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Y={command:`list`,describe:`List All Tunnels`,builder:J,handler:async e=>u({command:`tunnels list`,classification:{safeFlags:[`is-deleted`,`status`,`dry-run`]}},e,async()=>{let t={name:e.name,is_deleted:e[`is-deleted`],existed_at:e[`existed-at`],uuid:e.uuid,was_active_at:e[`was-active-at`],was_inactive_at:e[`was-inactive-at`],include_prefix:e[`include-prefix`],exclude_prefix:e[`exclude-prefix`],tun_types:e[`tun-types`],status:e.status,per_page:e[`per-page`],page:e.page};if(e.dryRun){let e=await a();c({command:`cf tunnels list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tunnels`,pathParams:{},query:t,bodyKind:`none`});return}let n=await i(e),u=e.local?r:await o();e.accountId=u;let d=await l(`Loading`,async()=>n.send(q,{account_id:u,...t}));s(d,{successLabel:`Loaded`})})};function X(e){return e.usage(`$0 tunnels management-token create <tunnel-id>
23
+ Lists and filters all types of Tunnels in an account.`).option(`name`,{type:`string`,description:`A user-friendly name for the tunnel.`}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only include deleted tunnels. If `false`, exclude deleted tunnels. If empty, all tunnels will be included."}).option(`existed-at`,{type:`string`,description:`If provided, include only resources that were created (and not deleted) before this time. URL encoded.`}).option(`uuid`,{type:`string`,description:`UUID of the tunnel.`}).option(`was-active-at`,{type:`string`,description:`Was active at`}).option(`was-inactive-at`,{type:`string`,description:`Was inactive at`}).option(`include-prefix`,{type:`string`,description:`Include prefix`}).option(`exclude-prefix`,{type:`string`,description:`Exclude prefix`}).option(`tun-types`,{type:`string`,array:!0,description:`The types of tunnels to filter by, separated by commas.`}).option(`status`,{type:`string`,description:"The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).",choices:[`inactive`,`degraded`,`healthy`,`down`]}).option(`per-page`,{type:`number`,description:`Number of results to display.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Y={command:`list`,describe:`List All Tunnels`,builder:J,handler:async e=>u({command:`tunnels list`,classification:{safeFlags:[`is-deleted`,`status`,`dry-run`]}},e,async()=>{let t={name:e.name,is_deleted:e[`is-deleted`],existed_at:e[`existed-at`],uuid:e.uuid,was_active_at:e[`was-active-at`],was_inactive_at:e[`was-inactive-at`],include_prefix:e[`include-prefix`],exclude_prefix:e[`exclude-prefix`],tun_types:e[`tun-types`],status:e.status,per_page:e[`per-page`],page:e.page};if(e.dryRun){let e=await a();c({command:`cf tunnels list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tunnels`,pathParams:{},query:t,bodyKind:`none`});return}let n=await i(e),u=e.local?r:await o();e.accountId=u;let d=await l(`Loading`,async()=>n.send(q,{account_id:u,...t}));s(d,{successLabel:`Loaded`})})};function X(e){return e.usage(`$0 tunnels management-token create <tunnel-id>
24
24
 
25
25
  Creates a short-lived management token for the requested Tunnel management resources, such as streaming logs. Treat the token as a secret.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`resources`,{type:`string`,array:!0,description:`The resources 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 Z={command:`create <tunnel-id>`,describe:`Get a Cloudflare Tunnel management token`,builder:X,handler:async e=>u({command:`tunnels management-token create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();c({command:`cf tunnels management-token create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}/management`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({resources:e.resources}):f(e.body)});return}let t=await i(e),n=e.local?r:await o();if(e.accountId=n,e.body){let r=f(e.body),i=await l(`Creating`,async()=>t.send(_,{body:r,account_id:n,tunnel_id:e[`tunnel-id`]}));s(i,{successLabel:`Created`});return}if(e.resources===void 0)throw Error(`--resources is required (or pass --body with this field set).`);let u=p({resources:e.resources}),d=await l(`Creating`,async()=>t.send(_,{body:u,account_id:n,tunnel_id:e[`tunnel-id`]}));s(d,{successLabel:`Created`})})},Q={command:`management-token`,describe:`Operations for management-token`,builder:e=>e.command(Z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ne(e){return e.usage(`$0 tunnels token get <tunnel-id>
26
26
 
27
- Retrieves the token used to run cloudflared and associate it with a specific Cloudflare Tunnel. Treat the token as a secret.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`get <tunnel-id>`,describe:`Get a Cloudflare Tunnel token`,builder:ne,handler:async e=>u({command:`tunnels token get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();c({command:`cf tunnels token get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}/token`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},bodyKind:`none`});return}let t=await i(e),n=e.local?r:await o();e.accountId=n;let u=await l(`Loading`,async()=>t.send(v,{account_id:n,tunnel_id:e[`tunnel-id`]}));s(u,{successLabel:`Loaded`})})},ie={command:`token`,describe:`Operations for token`,builder:e=>e.command(re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ae=e(`diag`,`Create a diagnostic report from a local cloudflared instance.`,()=>import(`./command-BaIY4UuC.mjs`),{command:`tunnels diag`,recordArgs:!1}),oe=e(`login`,`Authorize cloudflared and download an origin certificate for locally managed tunnels.`,()=>import(`./command-B_Fxpr5v.mjs`),{command:`tunnels login`,recordArgs:!1}),$=e(`quick-start <url>`,`Expose a local URL with a temporary trycloudflare.com tunnel. The tunnel remains active until cf exits.`,()=>import(`./command-DrdxR1tJ.mjs`),{command:`tunnels quick-start`,recordArgs:!1}),se=e(`ready`,`Check the /ready endpoint exposed by a local cloudflared instance.`,()=>import(`./command-BfoLlrr1.mjs`),{command:`tunnels ready`,recordArgs:!1}),ce=e(`run [tunnel]`,`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,()=>import(`./command-CA6yIa17.mjs`),{command:`tunnels run`,recordArgs:!1}),le=e(`tail [tunnel-id]`,`Stream logs from a remote cloudflared instance.`,()=>import(`./command-qhfkede5.mjs`),{command:`tunnels tail`,recordArgs:!1});const ue={command:`tunnels`,describe:`tunnels`,builder:e=>e.command(R).command(te).command(n(ae,`preview`)).command(U).command(K).command(Y).command(n(oe,`preview`)).command(n($,`preview`)).command(n(se,`preview`)).command(n(ce,`preview`)).command(n(le,`preview`)).command(w).command(j).command(F).command(Q).command(ie).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{ue as default};
27
+ Retrieves the token used to run cloudflared and associate it with a specific Cloudflare Tunnel. Treat the token as a secret.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`get <tunnel-id>`,describe:`Get a Cloudflare Tunnel token`,builder:ne,handler:async e=>u({command:`tunnels token get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();c({command:`cf tunnels token get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}/token`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},bodyKind:`none`});return}let t=await i(e),n=e.local?r:await o();e.accountId=n;let u=await l(`Loading`,async()=>t.send(v,{account_id:n,tunnel_id:e[`tunnel-id`]}));s(u,{successLabel:`Loaded`})})},ie={command:`token`,describe:`Operations for token`,builder:e=>e.command(re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ae=e(`diag`,`Create a diagnostic report from a local cloudflared instance.`,()=>import(`./command-Ct3tf-P5.mjs`),{command:`tunnels diag`,recordArgs:!1}),oe=e(`login`,`Authorize cloudflared and download an origin certificate for locally managed tunnels.`,()=>import(`./command-lJJ7sEZe.mjs`),{command:`tunnels login`,recordArgs:!1}),$=e(`quick-start <url>`,`Expose a local URL with a temporary trycloudflare.com tunnel. The tunnel remains active until cf exits.`,()=>import(`./command-BWyx7dNO.mjs`),{command:`tunnels quick-start`,recordArgs:!1}),se=e(`ready`,`Check the /ready endpoint exposed by a local cloudflared instance.`,()=>import(`./command-6_Ms3TZv.mjs`),{command:`tunnels ready`,recordArgs:!1}),ce=e(`run [tunnel]`,`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,()=>import(`./command-ckixJeTm.mjs`),{command:`tunnels run`,recordArgs:!1}),le=e(`tail [tunnel-id]`,`Stream logs from a remote cloudflared instance.`,()=>import(`./command-BXCk1OsI.mjs`),{command:`tunnels tail`,recordArgs:!1});const ue={command:`tunnels`,describe:`tunnels`,builder:e=>e.command(R).command(te).command(n(ae,`preview`)).command(U).command(K).command(Y).command(n(oe,`preview`)).command(n($,`preview`)).command(n(se,`preview`)).command(n(ce,`preview`)).command(n(le,`preview`)).command(w).command(j).command(F).command(Q).command(ie).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{ue as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{n}from"./auth-pbuzyz4C.mjs";import{a as r,t as i}from"./context-BryBS1zQ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-C_yVLVcl.mjs";import{t as c}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-kxvGZ6nF.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/challenges/widgets`,query:[`page`,`per_page`,`order`,`direction`,`filter`],body:`json`};function g(e){return e.usage(`$0 turnstile widgets create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-BNmz58v4.mjs";import{n}from"./auth-CB9wjyad.mjs";import{a as r,t as i}from"./context-DCon1tRZ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-_Jux05O5.mjs";import{t as c}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{n as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-SNVLBS1b.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/challenges/widgets`,query:[`page`,`per_page`,`order`,`direction`,`filter`],body:`json`};function g(e){return e.usage(`$0 turnstile widgets create
3
3
 
4
4
  Creates a Turnstile widget for an account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`order`,{type:`string`,description:`Field to order widgets by.`,choices:[`id`,`sitekey`,`name`,`created_on`,`modified_on`]}).option(`direction`,{type:`string`,description:`Direction to order widgets.`,choices:[`asc`,`desc`]}).option(`filter`,{type:`string`,description:"Filter widgets by field. The `name` field uses case-insensitive\nsubstring matching; `sitekey` uses exact matching.\nFormat: `field:value`\n\nSupported fields:\n- `name` - Filter by widget name (e.g., `filter=name:login-form`)\n- `sitekey` - Filter by sitekey (e.g., `filter=sitekey:0x4AAA`)\n\nReturns 400 Bad Request if the field is unsupported or format is invalid.\nAn empty filter value returns all results."}).option(`bot-fight-mode`,{type:`boolean`,description:`If bot_fight_mode is set to \`true\`, Cloudflare issues computationally
5
5
  expensive challenges in response to malicious bots (ENT only).
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import"./theme-BGHWSKCw.mjs";import"./blocks-D2tE8dp2.mjs";export{};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export{n as getUpdateNotice,r as maybeStartBackgroundUpdateCheck}from"./update-check-2Mn4Z1ln.mjs";
2
+ export{n as getUpdateNotice,r as maybeStartBackgroundUpdateCheck}from"./update-check-DDGKWkmi.mjs";