cf 1.0.0-beta.30 → 1.0.0-beta.32

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 (232) hide show
  1. package/README.md +1 -1
  2. package/dist/_meta/commands.json +2404 -1420
  3. package/dist/_meta/schemas.json +1875 -956
  4. package/dist/{abuse-reports-Dzop8iDe.mjs → abuse-reports-DYm1nDLb.mjs} +1 -1
  5. package/dist/{access-2NeD3Gu8.mjs → access-Be_7nPz4.mjs} +1 -1
  6. package/dist/{accounts-CeJbhhX4.mjs → accounts-DXULGfnh.mjs} +3 -3
  7. package/dist/{acm-Dub0B14J.mjs → acm-Btsz5gzV.mjs} +1 -1
  8. package/dist/{addressing-BzWJU8m6.mjs → addressing-DBQ5dUBd.mjs} +1 -1
  9. package/dist/{agent-memory-2l9zyQFA.mjs → agent-memory-Df0q-68_.mjs} +1 -1
  10. package/dist/{ai-laLv3daG.mjs → ai-CJfI9JI2.mjs} +1 -1
  11. package/dist/{ai-audit-rgNePq5W.mjs → ai-audit-Dv37OLES.mjs} +1 -1
  12. package/dist/{ai-gateway-e9b8CcL6.mjs → ai-gateway-BRSUY1QZ.mjs} +5 -5
  13. package/dist/{ai-search-DZ0AqoPe.mjs → ai-search-Bxv4hDG9.mjs} +3 -3
  14. package/dist/{ai-security-CQuBTtmw.mjs → ai-security-ByNRXyJv.mjs} +1 -1
  15. package/dist/{alerting-_4ra-f_v.mjs → alerting-UkiCzqAq.mjs} +2 -4
  16. package/dist/{analytics-DLNn4bJ4.mjs → analytics-B4Wq2vJx.mjs} +1 -1
  17. package/dist/{analytics-engine-CY45yWuL.mjs → analytics-engine-BbwIXL0f.mjs} +1 -1
  18. package/dist/{api-security-BSvJAjJV.mjs → api-security-B6YETCDG.mjs} +1 -1
  19. package/dist/{argo-xzl0p--1.mjs → argo-CHSOLyFh.mjs} +1 -1
  20. package/dist/{artifacts-DAS14gcM.mjs → artifacts-1xMBpJLr.mjs} +1 -1
  21. package/dist/{audit-logs-3nYyCGQA.mjs → audit-logs-Cz__6-PH.mjs} +1 -1
  22. package/dist/auth-Byb5Y3o4.mjs +2 -0
  23. package/dist/{auth-cj71dGxS.mjs → auth-CRq9OQKr.mjs} +1 -1
  24. package/dist/{auth-B0mFB6nU.mjs → auth-CrBQca61.mjs} +1 -1
  25. package/dist/{auth-token-D9MnaZ-L.mjs → auth-token-BEkR6ulS.mjs} +1 -1
  26. package/dist/{autoconfig-DoLQ5ct8.mjs → autoconfig-BDEt9orA.mjs} +386 -120
  27. package/dist/{basin-catalog-BbCsAKyZ.mjs → basin-catalog-DRVVY1Ff.mjs} +1 -1
  28. package/dist/{billing-BsiLsjWJ.mjs → billing-CInp7pBa.mjs} +1 -1
  29. package/dist/{blocks-DK5qAzLe.mjs → blocks-DGXsHh9X.mjs} +1 -1
  30. package/dist/{bot-management-DkErOsIO.mjs → bot-management--NcaqMij.mjs} +1 -1
  31. package/dist/{botnet-feed-CK4_PKrf.mjs → botnet-feed-DbPZ3Wzl.mjs} +1 -1
  32. package/dist/{brand-protection-Czt-2Ei5.mjs → brand-protection-B3s-8soV.mjs} +2 -2
  33. package/dist/{browser-run-DLMdEaSJ.mjs → browser-run-B9hyiK7P.mjs} +1 -1
  34. package/dist/build-Bd56lS7c.mjs +2 -0
  35. package/dist/{build-DiEXOgHH.mjs → build-I3m3uZn6.mjs} +1 -1
  36. package/dist/{builds-D--zUbR2.mjs → builds-D0mRyKe3.mjs} +1 -1
  37. package/dist/{cache-C8PQmkjD.mjs → cache-eKHZG4U7.mjs} +1 -1
  38. package/dist/{cf-QIG83e0V.mjs → cf-MAiSK--E.mjs} +1 -1
  39. package/dist/{chunk-DSGVRFIS-CeCM3XGQ.mjs → chunk-DSGVRFIS-L76IWWlr.mjs} +1 -1
  40. package/dist/{chunk-Q5KVZMHK-Bjvrcihk.mjs → chunk-Q5KVZMHK-CYhKv3kZ.mjs} +1 -1
  41. package/dist/{cli-BBv5YMan.mjs → cli-hFt2ZEED.mjs} +1 -1
  42. package/dist/{client-side-security-CFxePUL9.mjs → client-side-security-BvIdcAtV.mjs} +1 -1
  43. package/dist/{cloud-connector-BitfLQ3s.mjs → cloud-connector-B-04mm0j.mjs} +1 -1
  44. package/dist/{cloudflared-DKh4JK7j.mjs → cloudflared-DynBXmdP.mjs} +1 -1
  45. package/dist/{cloudforce-one-D2dzA7VD.mjs → cloudforce-one-BAGybQNM.mjs} +139 -143
  46. package/dist/command-5bkZXAlq.mjs +2 -0
  47. package/dist/{command-BORazCDG.mjs → command-BCECG198.mjs} +1 -1
  48. package/dist/{command-BC_nezLE.mjs → command-BaFQsuac.mjs} +1 -1
  49. package/dist/{command-C2HYwGn_.mjs → command-BdnTjDyg.mjs} +1 -1
  50. package/dist/{command-n7QausoH.mjs → command-BkCc_9UI.mjs} +1 -1
  51. package/dist/{command-B6ustzcW.mjs → command-CQU92hcH.mjs} +1 -1
  52. package/dist/{command-D5FrTb2N.mjs → command-CdB1DQZl.mjs} +1 -1
  53. package/dist/{command-DoXuskBZ.mjs → command-CoR-c8lP.mjs} +1 -1
  54. package/dist/{command-iwrZ2Sb1.mjs → command-D-a4KxcW.mjs} +1 -1
  55. package/dist/{command-aeKPI1bt.mjs → command-D6wod_eb.mjs} +1 -1
  56. package/dist/{command-Xqidhyr_.mjs → command-DSPEpZHp.mjs} +1 -1
  57. package/dist/{command-BwcAuPBr.mjs → command-EG23K_k6.mjs} +1 -1
  58. package/dist/{command-s15KaL-x.mjs → command-Ux0DLWdC.mjs} +1 -1
  59. package/dist/{command-CQhD3Q1t.mjs → command-oko8tT2c.mjs} +1 -1
  60. package/dist/{completions-BAUSggys.mjs → completions-CdlqoV7q.mjs} +1 -1
  61. package/dist/{connector-interrupts-D9tI84Fk.mjs → connector-interrupts-D9iiu7ZU.mjs} +1 -1
  62. package/dist/{connector-telemetry-events-Bs9wLYwc.mjs → connector-telemetry-events-C8ouyC4A.mjs} +1 -1
  63. package/dist/{connector-telemetry-snapshots-CbwE4lrE.mjs → connector-telemetry-snapshots-Ck9btYy7.mjs} +1 -1
  64. package/dist/{connectors-LyJN1htu.mjs → connectors-kGPYvin5.mjs} +1 -1
  65. package/dist/{containers-CKs7ZyZq.mjs → containers-DIf9nmcC.mjs} +2 -2
  66. package/dist/{content-scan-BQRz7C7Z.mjs → content-scan-Cr0i9wJK.mjs} +1 -1
  67. package/dist/{context-DlFhI9cN.mjs → context-DsVjrTbe.mjs} +1 -1
  68. package/dist/{cps-DYlXx89C.mjs → cps-BHmMKg5Q.mjs} +1 -1
  69. package/dist/{csam-scanner-BFANxGD-.mjs → csam-scanner-DGTOi2EL.mjs} +1 -1
  70. package/dist/{custom-csrs-BX4aCeof.mjs → custom-csrs-DpLkO9_M.mjs} +1 -1
  71. package/dist/{custom-hostnames-BRYABKN3.mjs → custom-hostnames-beJnRWcQ.mjs} +1 -1
  72. package/dist/{custom-nameservers-CP1Vf1TD.mjs → custom-nameservers-B1WtaEDH.mjs} +1 -1
  73. package/dist/{custom-pages-BNL69ToU.mjs → custom-pages-BVXmc-u6.mjs} +1 -1
  74. package/dist/{d1-D4AZsUKn.mjs → d1-DYQBKGMz.mjs} +1 -1
  75. package/dist/{delegate-BKlomUk6.mjs → delegate-4bIHEQ8-.mjs} +1 -1
  76. package/dist/delegate.mjs +1 -1
  77. package/dist/{deploy-LbXgSfAd.mjs → deploy-DEq6UKzb.mjs} +1 -1
  78. package/dist/{deploy-context-BYw6gbl-.mjs → deploy-context-DJNsb7w-.mjs} +1 -1
  79. package/dist/deploy-input-Bkll8tDW.mjs +2 -0
  80. package/dist/{dev-DaFSd8WC.mjs → dev-DIguZvJE.mjs} +1 -1
  81. package/dist/{diagnostics-Dk3pyWx_.mjs → diagnostics-DyCPKwXL.mjs} +1 -1
  82. package/dist/{discover-DGsMj9ZN.mjs → discover-DtcZCeSh.mjs} +1 -1
  83. package/dist/discover-Dxb5yh9L.mjs +2 -0
  84. package/dist/{disk-cache-nbuwH1Dh.mjs → disk-cache-BVfJigfC.mjs} +1 -1
  85. package/dist/{dist-DwxlJ9Ms.mjs → dist-BoDdDWjK.mjs} +33 -33
  86. package/dist/{dls-DU6EdhQK.mjs → dls-BXGJug7c.mjs} +1 -1
  87. package/dist/{dns-3QDtCu6f.mjs → dns-Ev7l7p2X.mjs} +25 -25
  88. package/dist/{dns-firewall-Bbrr_0_a.mjs → dns-firewall-CrkTqlYI.mjs} +1 -1
  89. package/dist/{docs-lLLKcLr_.mjs → docs-Dx9n33S3.mjs} +1 -1
  90. package/dist/{durable-objects-DPf1DMeq.mjs → durable-objects-ChKP2Y6u.mjs} +1 -1
  91. package/dist/{email-auth-DOlEoi8q.mjs → email-auth-B-n1rKim.mjs} +1 -1
  92. package/dist/{email-routing-D56SPGty.mjs → email-routing-Dfs1g7hk.mjs} +1 -1
  93. package/dist/{email-security-CSawx0kD.mjs → email-security-B9wpMLHr.mjs} +1 -1
  94. package/dist/{email-sending-CgFi0cLA.mjs → email-sending-DUyDi24R.mjs} +3 -3
  95. package/dist/{errors-CilNjDVk.mjs → errors-CUuKkONZ.mjs} +1 -1
  96. package/dist/{field-extractors-FvIgySB4.mjs → field-extractors-B_R4gU51.mjs} +1 -1
  97. package/dist/{firewall-BrTvywhW.mjs → firewall-B5_DMZ5c.mjs} +1 -1
  98. package/dist/{flagship-BGFN1Epo.mjs → flagship-D_jWMrT9.mjs} +1 -1
  99. package/dist/{fraud-DzK6OIO3.mjs → fraud-BPywqzR5.mjs} +1 -1
  100. package/dist/{google-tag-gateway-Cd9v8A7Z.mjs → google-tag-gateway-B8SGqWxf.mjs} +1 -1
  101. package/dist/{healthchecks-Cm7EHaBA.mjs → healthchecks-C1NL0A-K.mjs} +1 -1
  102. package/dist/{hyperdrive-CVaSt0qX.mjs → hyperdrive-C1C_n591.mjs} +1 -1
  103. package/dist/{iam-CWN62Mi4.mjs → iam-BWm6OeLJ.mjs} +1 -1
  104. package/dist/{images-Bo_pdvQC.mjs → images-CU9B4ml9.mjs} +1 -1
  105. package/dist/index.mjs +1 -1
  106. package/dist/{init-Dwmpc_S-.mjs → init-DJGas0DL.mjs} +1 -1
  107. package/dist/{intel-CQFYeGEA.mjs → intel-COtK2F9g.mjs} +1 -1
  108. package/dist/{interactive-DCbIwYxy.mjs → interactive-CQ29h7qo.mjs} +1 -1
  109. package/dist/{ips-jTSzoqMU.mjs → ips-Dv5eyxgM.mjs} +1 -1
  110. package/dist/{k2-utE2lCYd.mjs → k2-CdhxgeiI.mjs} +1 -1
  111. package/dist/{kv-Cdh5hHte.mjs → kv-gNSTaGhd.mjs} +1 -1
  112. package/dist/{lazy-command-QoHlmXHW.mjs → lazy-command-CJcN1Ze6.mjs} +1 -1
  113. package/dist/{leaked-credential-checks-CqApscD3.mjs → leaked-credential-checks-B222QFHE.mjs} +1 -1
  114. package/dist/{load-balancers-w_4Uz9Gi.mjs → load-balancers-CM-4BY5q.mjs} +1 -1
  115. package/dist/{login-CS3KxVbk.mjs → login-Csb8Ld0x.mjs} +1 -1
  116. package/dist/login-bHCEjxRS.mjs +2 -0
  117. package/dist/{logpush-C76I5dgN.mjs → logpush-CmothcrK.mjs} +1 -1
  118. package/dist/{logs-B5aCYVCv.mjs → logs-CnKqBsDl.mjs} +1 -1
  119. package/dist/{magic-network-monitoring-CGf7cVQ9.mjs → magic-network-monitoring-BEdRTgMa.mjs} +1 -1
  120. package/dist/{magic-transit-CN5noqOR.mjs → magic-transit-CXjc5Yo4.mjs} +1 -1
  121. package/dist/{managed-defense-DAGr0UGm.mjs → managed-defense-BuOxTHAO.mjs} +1 -1
  122. package/dist/{managed-transforms-_SuwzZ-5.mjs → managed-transforms-BlqW4xkh.mjs} +1 -1
  123. package/dist/{mcp-CzedsjOf.mjs → mcp-ubFVHsP4.mjs} +1 -1
  124. package/dist/{mesh-DXX1S3pX.mjs → mesh-DQS7KfDF.mjs} +1 -1
  125. package/dist/{migrate-CvRQ4x3_.mjs → migrate-fY24KHV_.mjs} +1 -1
  126. package/dist/{monetization-8nt9PYln.mjs → monetization-CagZDoKh.mjs} +1 -1
  127. package/dist/{network-CaiRDY2e.mjs → network-BB35dF4N.mjs} +1 -1
  128. package/dist/{network-interconnects-Ad6JbAVd.mjs → network-interconnects-Dy4m1jMu.mjs} +2 -2
  129. package/dist/{o11y-DD2Hfnzi.mjs → o11y-Dmll3yib.mjs} +4 -4
  130. package/dist/{oauth-CQRlNgt5.mjs → oauth-Dv7Wucj6.mjs} +1 -1
  131. package/dist/{oauth-BUcV_xbm.mjs → oauth-NljTb7u9.mjs} +1 -1
  132. package/dist/observability-rtMYSCht.mjs +4 -0
  133. package/dist/{ohttp-gateway-Sej9-GCm.mjs → ohttp-gateway-BM3nsC92.mjs} +1 -1
  134. package/dist/{organizations-DwYsCbYD.mjs → organizations-Xus5102w.mjs} +1 -1
  135. package/dist/package-BJWSNfbc.mjs +2 -0
  136. package/dist/{page-rules-CjufEmIt.mjs → page-rules-BKoA5eaf.mjs} +1 -1
  137. package/dist/{pages-Dj0Cdf3G.mjs → pages-CLhvyehs.mjs} +4 -4
  138. package/dist/{pay-per-crawl-DPVlluRA.mjs → pay-per-crawl-BLjKJl62.mjs} +1 -1
  139. package/dist/{pay-per-use-DhuLjaoo.mjs → pay-per-use-FbddmVNv.mjs} +1 -1
  140. package/dist/{pipelines-D2pM69oq.mjs → pipelines-BsJkvK-K.mjs} +1 -1
  141. package/dist/{precursor-DzuA1m8D.mjs → precursor-oLj-WPJH.mjs} +1 -1
  142. package/dist/{previews-CHHd5Rx7.mjs → previews-BRPPf7UU.mjs} +3 -3
  143. package/dist/{progress-AML-AVs4.mjs → progress-DItBn6ZV.mjs} +1 -1
  144. package/dist/{prompt-Bnon9lfK.mjs → prompt-BGz3DNLz.mjs} +1 -1
  145. package/dist/{queues-GDwznw0o.mjs → queues-DAnbmO-t.mjs} +3 -3
  146. package/dist/{r2-B3Xkb0S4.mjs → r2-DNN91rtN.mjs} +2 -2
  147. package/dist/{radar-fBT7VIO2.mjs → radar-YWsfV39d.mjs} +150 -150
  148. package/dist/{raw-fetch-0T1SwPa1.mjs → raw-fetch-CmI3Ol3q.mjs} +1 -1
  149. package/dist/{realtime-B7mR3XtY.mjs → realtime-CfsgoOsd.mjs} +1 -1
  150. package/dist/{registrar-DOoxlZc7.mjs → registrar-N1c89kFV.mjs} +1 -1
  151. package/dist/{registrar-sandbox-DC7xAqqc.mjs → registrar-sandbox-D5lsoy-x.mjs} +1 -1
  152. package/dist/{reporting-DlD7J6Pq.mjs → reporting-CI5TLvj4.mjs} +1 -1
  153. package/dist/{request-headers-BEYXy4JN.mjs → request-headers-CUwBDAwI.mjs} +1 -1
  154. package/dist/{request-tracers-DYCGkszp.mjs → request-tracers-DO63p3ou.mjs} +1 -1
  155. package/dist/{resource-sharing-D_bUv7E8.mjs → resource-sharing-CxdcY5n1.mjs} +1 -1
  156. package/dist/{rules-C4cu3_jr.mjs → rules-DuuULmp2.mjs} +1 -1
  157. package/dist/{rulesets-Bl4mLnXA.mjs → rulesets-3_8IWMfL.mjs} +1 -1
  158. package/dist/{rum-DE_uJb09.mjs → rum-DkfsMJa7.mjs} +1 -1
  159. package/dist/run-C9SxROBF.mjs +2 -0
  160. package/dist/{run-DAg7dfIW.mjs → run-DAK_kbUa.mjs} +1 -1
  161. package/dist/{schema-cache-CTVUtkAl.mjs → schema-cache-BcbUfb3D.mjs} +1 -1
  162. package/dist/{scim-Dz4r0fnH.mjs → scim-DCR6AQp5.mjs} +1 -1
  163. package/dist/{secrets-store-C2GwCUKs.mjs → secrets-store-C3v0_Us9.mjs} +1 -1
  164. package/dist/{security-insights-DZCm5D3U.mjs → security-insights-0el4fk-S.mjs} +4 -2
  165. package/dist/security-txt-CcsEaOm5.mjs +8 -0
  166. package/dist/{session-BEsQIuwP.mjs → session-CgJ6kB79.mjs} +1 -1
  167. package/dist/shared-DjaJ-SCM.mjs +2 -0
  168. package/dist/{smart-shield-C2uSFcGN.mjs → smart-shield-BxTEZqtZ.mjs} +1 -1
  169. package/dist/{snippets-BoaGEAC6.mjs → snippets-CH4PcqCg.mjs} +1 -1
  170. package/dist/{spawn-B4y5Urjv.mjs → spawn-B681PPG2.mjs} +2 -2
  171. package/dist/{spectrum-Bb0KXA8R.mjs → spectrum-DconVKYG.mjs} +1 -1
  172. package/dist/{speed-zKYgLTHA.mjs → speed-Euqtk0Vc.mjs} +1 -1
  173. package/dist/{sql-pjWozuvl.mjs → sql-UNZoawTj.mjs} +1 -1
  174. package/dist/{src-B8i6_XGg.mjs → src-CSSFtpQM.mjs} +5 -5
  175. package/dist/{ssl-C5bg1X0i.mjs → ssl-CGWF2ZSz.mjs} +9 -9
  176. package/dist/startup-profile-ajl_yZx2.mjs +2 -0
  177. package/dist/{startup-profile-CyIelqtC.mjs → startup-profile-ne34QxOx.mjs} +1 -1
  178. package/dist/{state-BI_wSuID.mjs → state-BFClIYM_.mjs} +1 -1
  179. package/dist/state-V1KLVkd6.mjs +2 -0
  180. package/dist/{static-assets-CTv7XwIQ.mjs → static-assets-CWo7dxyW.mjs} +164 -164
  181. package/dist/{stream-C_FiNrLV.mjs → stream-B3tkAx82.mjs} +1 -1
  182. package/dist/{tags-CXlivF3y.mjs → tags-CKnt6RT6.mjs} +9 -9
  183. package/dist/telemetry-B3S5OfOn.mjs +2 -0
  184. package/dist/{telemetry-CtQWhsmy.mjs → telemetry-COJrOM3V.mjs} +1 -1
  185. package/dist/{tenant-custom-nameservers-DBg9Hzvn.mjs → tenant-custom-nameservers-BdVLeMsA.mjs} +1 -1
  186. package/dist/{tenants-89Q0u5_Q.mjs → tenants-C8Emd5Ou.mjs} +1 -1
  187. package/dist/{tunnels-CL2fIINH.mjs → tunnels-vUfvvRWt.mjs} +15 -13
  188. package/dist/{turnstile-D6GtQULo.mjs → turnstile-D-6e0ShA.mjs} +1 -1
  189. package/dist/ui-YBIkZLZt.mjs +2 -0
  190. package/dist/{update-check-0kpbTLvy.mjs → update-check-BW_N6gX4.mjs} +1 -1
  191. package/dist/{update-check-D3axIoUi.mjs → update-check-CvzNuZHG.mjs} +1 -1
  192. package/dist/update-check-worker.mjs +1 -1
  193. package/dist/{url-normalization--iS57OT_.mjs → url-normalization-Bfj-1zgi.mjs} +1 -1
  194. package/dist/{url-scanner-C6AtXGc2.mjs → url-scanner-CcZzqvrj.mjs} +1 -1
  195. package/dist/{user-C5vRYIta.mjs → user-CYHyVzic.mjs} +1 -1
  196. package/dist/{vectorize-C1Kxb1Ou.mjs → vectorize-69UvmqNI.mjs} +1 -1
  197. package/dist/version-5uL0ecbB.mjs +2 -0
  198. package/dist/{waiting-rooms-BCVZY9vI.mjs → waiting-rooms-Dj92gXpa.mjs} +1 -1
  199. package/dist/{web-assets-D2gXqKZS.mjs → web-assets-vbQ0MSCd.mjs} +1 -1
  200. package/dist/{web3-CJDZQCOk.mjs → web3-0Sz4gIto.mjs} +1 -1
  201. package/dist/{whoami-BEad9QUB.mjs → whoami-C4xRnPxf.mjs} +3 -3
  202. package/dist/whoami-wYc70ks4.mjs +2 -0
  203. package/dist/{workers-DzXSJMv9.mjs → workers-BQM8pUYu.mjs} +18 -18
  204. package/dist/{workers-for-platforms-CvazgrqD.mjs → workers-for-platforms-BfXIqCm4.mjs} +1 -1
  205. package/dist/{workers-vpc-DP4QC6UC.mjs → workers-vpc-CR3tfj4I.mjs} +1 -1
  206. package/dist/{workflows-BSOj56io.mjs → workflows-DpQgBIHz.mjs} +1 -1
  207. package/dist/{wrangler-migration-DZ9Oelof.mjs → wrangler-migration-ChTsuUHx.mjs} +57 -57
  208. package/dist/{zaraz-BnQvKXFy.mjs → zaraz-BPOBM0-W.mjs} +1 -1
  209. package/dist/{zero-trust-DsslXRub.mjs → zero-trust-Cridhy7G.mjs} +21 -17
  210. package/dist/{zones-DQ3SjGsZ.mjs → zones-BIKClc2S.mjs} +3 -3
  211. package/package.json +13 -13
  212. package/dist/auth-CXR2vsII.mjs +0 -2
  213. package/dist/build-ByjJ6yIB.mjs +0 -2
  214. package/dist/command-ycXauMSv.mjs +0 -2
  215. package/dist/deploy-input-BFWpjDVr.mjs +0 -2
  216. package/dist/discover-D9FNaCDK.mjs +0 -2
  217. package/dist/internal-CYrPZ9IX.mjs +0 -4
  218. package/dist/live-hZgMkXJf.mjs +0 -4
  219. package/dist/login-BBSJytOt.mjs +0 -2
  220. package/dist/observability-BzKBUUSf.mjs +0 -4
  221. package/dist/package-DXaRIx2f.mjs +0 -2
  222. package/dist/ready-BkXNDNTd.mjs +0 -4
  223. package/dist/run-Cg9utScS.mjs +0 -2
  224. package/dist/security-txt-Dbi9KxNc.mjs +0 -8
  225. package/dist/shared-DqW2vICA.mjs +0 -2
  226. package/dist/signed-url-BhHSAUam.mjs +0 -4
  227. package/dist/startup-profile-Dif7XOsU.mjs +0 -2
  228. package/dist/state-xUh3Z77T.mjs +0 -2
  229. package/dist/telemetry-DDs3zhdw.mjs +0 -2
  230. package/dist/ui-CY75N4Tm.mjs +0 -2
  231. package/dist/version-pcpa_kv3.mjs +0 -2
  232. package/dist/whoami-2eFTt0-Y.mjs +0 -2
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import{i as e,n as t}from"./auth-cj71dGxS.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{t as r}from"./output-PRKYaJuo.mjs";import{t as i}from"./progress-AML-AVs4.mjs";import{t as a}from"./run-DAg7dfIW.mjs";import"./telemetry-DDs3zhdw.mjs";import{c as o,n as s,r as c,t as l}from"./body-parser-HN91kAf0.mjs";import{n as u,t as d}from"./input-validation-D7z60HJH.mjs";var f={method:`GET`,path:()=>`/analytics/sql/introspection`,query:[`account_tag`,`include_columns`,`include_custom_attributes`,`include_attributes`,`include_wae`,`include_lex`,`dataset_name`],errors:{400:`BadRequestError`,403:`ForbiddenError`,422:`UnprocessableEntityError`,500:`InternalServerError`,503:`ServiceUnavailableError`}};function p(e){return e.usage("$0 sql datasets\n\nReturns the analytics dataset catalogue. By default, the response contains dataset names, titles, categories, descriptions, kinds, and hidden flags. Set `include_columns` to include each dataset's column names, descriptions, data types, and hidden flags. The caller must have Account Analytics Read permission on the account identified by `account_tag`. Dataset names, descriptions, and columns are the same for every authorized account. When `include_custom_attributes` or `include_attributes` is set, the response also includes attribute names and types discovered from that account's own data, which legitimately differs per caller. `attributes` is a replacement for `custom_attributes` that will eventually be removed; until then, set either flag independently to receive the corresponding field. `hidden` marks catalogue entries a client should de-emphasise. It has no effect on access: hidden datasets and columns are returned here and remain fully queryable. The catalogue lists the datasets this deployment is able to describe, which is not a fixed list. Some datasets are described by the service that owns them and are listed only where that service is available, so the same account may see a different catalogue in different environments, and datasets may appear or disappear without a change to this API. Clients should query the catalogue rather than hard-coding it, and should not treat a dataset's absence as proof that it does not exist. Workers Analytics Engine datasets are named by the account that writes them, so they are discovered from that account's own data rather than from a fixed list. They appear as `events.analyticsEngine.<dataset_name>` and differ per account. A dataset is listed for as long as any of its data is retained, so it does not disappear from the catalogue merely because writes have stopped. An account with a very large number of datasets may receive a truncated list. Set `include_wae=false` to omit them. Log Explorer datasets are listed only where the account has them, so they differ per account and are not part of the static catalogue. Set `include_lex=false` to omit them.").option(`account-tag`,{type:`string`,description:`Account whose available analytics datasets are returned.`,demandOption:!0}).option(`include-columns`,{type:`boolean`,description:`Include column metadata for each returned dataset.`}).option(`include-custom-attributes`,{type:`boolean`,description:"Include a capped set of custom attribute names and types observed during the preceding seven days, as `custom_attributes`. Requires a nonempty dataset_name. Deprecated in favor of `include_attributes`."}).option(`include-attributes`,{type:`boolean`,description:"Include a capped set of attribute names and types observed during the preceding seven days, as `attributes`. Requires a nonempty dataset_name. Replaces `include_custom_attributes`, which is deprecated."}).option(`include-wae`,{type:`boolean`,description:"Include Workers Analytics Engine datasets, which are discovered from the account's own data. Set to `false` to return only datasets described from the static catalogue, which avoids that lookup."}).option(`include-lex`,{type:`boolean`,description:"Include Log Explorer datasets, which are listed only where the account has them. Set to `false` to return only datasets described from the static catalogue, which avoids that lookup."}).option(`dataset-name`,{type:`string`,description:"Return only the dataset with this exact name. An empty value is treated as if the parameter had been omitted, and does not filter the catalogue. A name that matches no dataset in this deployment's catalogue is rejected with `422`; a dataset that exists but is not describable here is rejected identically, so the two cases cannot be told apart.\n\nA Workers Analytics Engine dataset is named in full, as `events.analyticsEngine.<dataset_name>`; the namespace on its own returns every such dataset the account has. A `dataset_name` the account does not have is rejected with `422` like any other unknown name."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`datasets`,describe:`List available analytics datasets`,builder:p,handler:async e=>a({command:`sql datasets`,classification:{safeFlags:[`include-columns`,`include-custom-attributes`,`include-attributes`,`include-wae`,`include-lex`,`dry-run`]}},e,async()=>{let a={account_tag:e[`account-tag`],include_columns:e[`include-columns`],include_custom_attributes:e[`include-custom-attributes`],include_attributes:e[`include-attributes`],include_wae:e[`include-wae`],include_lex:e[`include-lex`],dataset_name:e[`dataset-name`]};if(e.dryRun){n({command:`cf sql datasets`,method:`GET`,url:`https://api.cloudflare.com/client/v4/analytics/sql/introspection`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(f,a));r(s,{successLabel:`Loaded`})})};function h(e){return e.usage("$0 sql query <query>\n\nExecutes a SQL query against the analytics datasets available to the caller. Send either raw SQL or a JSON object containing the query and optional positional or named parameters, time range, and account or zone scope. Raw SQL placeholders can also be bound with query parameters named `param_<name>`. A trailing `FORMAT JSON`, `FORMAT JSONEachRow`, `FORMAT TabSeparated`, or `FORMAT TSV` is supported for all datasets. Without FORMAT, each backend retains its existing default JSON response.").positional(`query`,{type:`string`,description:`SQL query to execute. A trailing FORMAT selects JSON, JSONEachRow, TabSeparated, or TSV output on any dataset. `,demandOption:!0}).option(`scope-account`,{type:`string`,description:`Account tag used to authorize and scope the query. Must be a 32-character lowercase hex string.
2
+ import{i as e,n as t}from"./auth-CRq9OQKr.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{t as r}from"./output-PRKYaJuo.mjs";import{t as i}from"./progress-DItBn6ZV.mjs";import{t as a}from"./run-DAK_kbUa.mjs";import"./telemetry-B3S5OfOn.mjs";import{c as o,n as s,r as c,t as l}from"./body-parser-HN91kAf0.mjs";import{n as u,t as d}from"./input-validation-D7z60HJH.mjs";var f={method:`GET`,path:()=>`/analytics/sql/introspection`,query:[`account_tag`,`include_columns`,`include_custom_attributes`,`include_attributes`,`include_wae`,`include_lex`,`dataset_name`],errors:{400:`BadRequestError`,403:`ForbiddenError`,422:`UnprocessableEntityError`,500:`InternalServerError`,503:`ServiceUnavailableError`}};function p(e){return e.usage("$0 sql datasets\n\nReturns the analytics dataset catalogue. By default, the response contains dataset names, titles, categories, descriptions, kinds, and hidden flags. Set `include_columns` to include each dataset's column names, descriptions, data types, and hidden flags. The caller must have Account Analytics Read permission on the account identified by `account_tag`. Dataset names, descriptions, and columns are the same for every authorized account. When `include_custom_attributes` or `include_attributes` is set, the response also includes attribute names and types discovered from that account's own data, which legitimately differs per caller. `attributes` is a replacement for `custom_attributes` that will eventually be removed; until then, set either flag independently to receive the corresponding field. `hidden` marks catalogue entries a client should de-emphasise. It has no effect on access: hidden datasets and columns are returned here and remain fully queryable. The catalogue lists the datasets this deployment is able to describe, which is not a fixed list. Some datasets are described by the service that owns them and are listed only where that service is available, so the same account may see a different catalogue in different environments, and datasets may appear or disappear without a change to this API. Clients should query the catalogue rather than hard-coding it, and should not treat a dataset's absence as proof that it does not exist. Workers Analytics Engine datasets are named by the account that writes them, so they are discovered from that account's own data rather than from a fixed list. They appear as `events.analyticsEngine.<dataset_name>` and differ per account. A dataset is listed for as long as any of its data is retained, so it does not disappear from the catalogue merely because writes have stopped. An account with a very large number of datasets may receive a truncated list. Set `include_wae=false` to omit them. Log Explorer datasets are listed only where the account has them, so they differ per account and are not part of the static catalogue. Set `include_lex=false` to omit them.").option(`account-tag`,{type:`string`,description:`Account whose available analytics datasets are returned.`,demandOption:!0}).option(`include-columns`,{type:`boolean`,description:`Include column metadata for each returned dataset.`}).option(`include-custom-attributes`,{type:`boolean`,description:"Include a capped set of custom attribute names and types observed during the preceding seven days, as `custom_attributes`. Requires a nonempty dataset_name. Deprecated in favor of `include_attributes`."}).option(`include-attributes`,{type:`boolean`,description:"Include a capped set of attribute names and types observed during the preceding seven days, as `attributes`. Requires a nonempty dataset_name. Replaces `include_custom_attributes`, which is deprecated."}).option(`include-wae`,{type:`boolean`,description:"Include Workers Analytics Engine datasets, which are discovered from the account's own data. Set to `false` to return only datasets described from the static catalogue, which avoids that lookup."}).option(`include-lex`,{type:`boolean`,description:"Include Log Explorer datasets, which are listed only where the account has them. Set to `false` to return only datasets described from the static catalogue, which avoids that lookup."}).option(`dataset-name`,{type:`string`,description:"Return only the dataset with this exact name. An empty value is treated as if the parameter had been omitted, and does not filter the catalogue. A name that matches no dataset in this deployment's catalogue is rejected with `422`; a dataset that exists but is not describable here is rejected identically, so the two cases cannot be told apart.\n\nA Workers Analytics Engine dataset is named in full, as `events.analyticsEngine.<dataset_name>`; the namespace on its own returns every such dataset the account has. A `dataset_name` the account does not have is rejected with `422` like any other unknown name."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`datasets`,describe:`List available analytics datasets`,builder:p,handler:async e=>a({command:`sql datasets`,classification:{safeFlags:[`include-columns`,`include-custom-attributes`,`include-attributes`,`include-wae`,`include-lex`,`dry-run`]}},e,async()=>{let a={account_tag:e[`account-tag`],include_columns:e[`include-columns`],include_custom_attributes:e[`include-custom-attributes`],include_attributes:e[`include-attributes`],include_wae:e[`include-wae`],include_lex:e[`include-lex`],dataset_name:e[`dataset-name`]};if(e.dryRun){n({command:`cf sql datasets`,method:`GET`,url:`https://api.cloudflare.com/client/v4/analytics/sql/introspection`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(f,a));r(s,{successLabel:`Loaded`})})};function h(e){return e.usage("$0 sql query <query>\n\nExecutes a SQL query against the analytics datasets available to the caller. Send either raw SQL or a JSON object containing the query and optional positional or named parameters, time range, and account or zone scope. Raw SQL placeholders can also be bound with query parameters named `param_<name>`. A trailing `FORMAT JSON`, `FORMAT JSONEachRow`, `FORMAT TabSeparated`, or `FORMAT TSV` is supported for all datasets. Without FORMAT, each backend retains its existing default JSON response.").positional(`query`,{type:`string`,description:`SQL query to execute. A trailing FORMAT selects JSON, JSONEachRow, TabSeparated, or TSV output on any dataset. `,demandOption:!0}).option(`scope-account`,{type:`string`,description:`Account tag used to authorize and scope the query. Must be a 32-character lowercase hex string.
3
3
  `}).option(`scope-zone`,{type:`string`,description:`Zone tag used to authorize and scope the query. Must be a 32-character lowercase hex string.
4
4
  `}).option(`time-until`,{type:`string`,description:`Inclusive upper bound for the dataset's timestamp column.`}).option(`time-since`,{type:`string`,description:`Inclusive lower bound for the dataset's timestamp column.`}).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)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).conflicts(`scope-account`,[`scope-zone`]).conflicts(`scope-zone`,[`scope-account`]).check(e=>{let t=[`time-until`,`time-since`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`time-since`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --time-range-* flag is set`)}return!0})}const g={command:`query <query>`,describe:`Query analytics datasets`,builder:h,handler:async f=>a({command:`sql query`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){n({command:`cf sql query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/analytics/sql`,pathParams:{},bodyKind:f.file===void 0?`json`:`octet-stream`,body:f.file===void 0?f.body===void 0?l({scope:{accountTag:u(f[`scope-account`],`scope-account`,`text`),zoneTag:u(f[`scope-zone`],`scope-zone`,`text`)},time_range:{end:u(f[`time-until`],`time-until`,`text`),start:u(f[`time-since`],`time-since`,`text`)},query:f.query}):s(c(f.body),[{name:`query`,field:`query`,value:f.query}]):{file:f.file}});return}let a=f.file===void 0?f.body===void 0?void 0:s(c(f.body),[{name:`query`,field:`query`,value:f.query}]):void 0,p=await t(f);if(f.file!==void 0){let t=d(f.file),n=await i(`Loading`,async()=>e(p,`POST`,`/analytics/sql`,{body:t,headers:{"Content-Type":`text/plain`}}));r(n,{successLabel:`Loaded`});return}if(f.body!==void 0){let t=a,n=await i(`Loading`,async()=>e(p,`POST`,`/analytics/sql`,{body:t}));r(n,{successLabel:`Loaded`});return}let m={};f[`scope-account`]!==void 0&&o(m,[`scope`,`accountTag`],u(f[`scope-account`],`scope-account`,`text`)),f[`scope-zone`]!==void 0&&o(m,[`scope`,`zoneTag`],u(f[`scope-zone`],`scope-zone`,`text`)),f[`time-until`]!==void 0&&o(m,[`time_range`,`end`],u(f[`time-until`],`time-until`,`text`)),f[`time-since`]!==void 0&&o(m,[`time_range`,`start`],u(f[`time-since`],`time-since`,`text`)),f.query!==void 0&&(m.query=f.query);let h=await i(`Loading`,async()=>e(p,`POST`,`/analytics/sql`,{body:m}));r(h,{successLabel:`Loaded`})})},_={command:`sql`,describe:`sql`,builder:e=>e.command(m).command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{_ as default};
@@ -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{n as i,t as a}from"./string-width-D6-CGlwN.mjs";import{t as o}from"./lazy-command-QoHlmXHW.mjs";import{n as s}from"./metadata-Df5kCWJv.mjs";import{r as c}from"./theme-BGHWSKCw.mjs";import{t as l}from"./agent-context-Dtyy4aKL.mjs";import{t as u}from"./args-BAOHroBC.mjs";import{t as d}from"./cli-exit-CstFZ1eJ.mjs";import{n as f,t as p}from"./dotenv-DKRemNCH.mjs";import{n as m}from"./errors-CilNjDVk.mjs";import{n as h,r as g,t as _}from"./global-options-4pyD17hd.mjs";import{t as v}from"./hand-written-dry-run-B82fRl2N.mjs";import{i as ee}from"./local-B3zt9PXR.mjs";import{o as y}from"./project-settings-D_S-UC8I.mjs";import{n as te,t as ne}from"./session-BEsQIuwP.mjs";import{a as re,n as b,t as x}from"./lifecycle-oud60haK.mjs";import{r as S}from"./blocks-DK5qAzLe.mjs";import"./ui-CY75N4Tm.mjs";import{n as C}from"./version-pcpa_kv3.mjs";import{createRequire as w}from"node:module";import{setTimeout as ie}from"node:timers/promises";import{notStrictEqual as ae,strictEqual as oe}from"assert";import{basename as se,dirname as ce,extname as le,join as ue,normalize as de,relative as fe,resolve as pe}from"path";import{readFileSync as T,readdirSync as me,statSync as he,writeFile as ge}from"fs";import{format as _e,inspect as ve}from"util";import{fileURLToPath as E}from"url";import{readFileSync as ye,readdirSync as be}from"node:fs";const D={right:Te,center:Ee};var xe=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{n as i,t as a}from"./string-width-D6-CGlwN.mjs";import{t as o}from"./lazy-command-CJcN1Ze6.mjs";import{n as s}from"./metadata-Df5kCWJv.mjs";import{r as c}from"./theme-BGHWSKCw.mjs";import{t as l}from"./agent-context-Dtyy4aKL.mjs";import{t as u}from"./args-BAOHroBC.mjs";import{t as d}from"./cli-exit-CstFZ1eJ.mjs";import{n as f,t as p}from"./dotenv-DKRemNCH.mjs";import{n as m}from"./errors-CUuKkONZ.mjs";import{n as h,r as g,t as _}from"./global-options-4pyD17hd.mjs";import{t as v}from"./hand-written-dry-run-B82fRl2N.mjs";import{i as ee}from"./local-B3zt9PXR.mjs";import{o as y}from"./project-settings-D_S-UC8I.mjs";import{n as te,t as ne}from"./session-CgJ6kB79.mjs";import{a as re,n as b,t as x}from"./lifecycle-oud60haK.mjs";import{r as S}from"./blocks-DGXsHh9X.mjs";import"./ui-YBIkZLZt.mjs";import{n as C}from"./version-5uL0ecbB.mjs";import{createRequire as w}from"node:module";import{setTimeout as ie}from"node:timers/promises";import{notStrictEqual as ae,strictEqual as oe}from"assert";import{basename as se,dirname as ce,extname as le,join as ue,normalize as de,relative as fe,resolve as pe}from"path";import{readFileSync as T,readdirSync as me,statSync as he,writeFile as ge}from"fs";import{format as _e,inspect as ve}from"util";import{fileURLToPath as E}from"url";import{readFileSync as ye,readdirSync as be}from"node:fs";const D={right:Te,center:Ee};var xe=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&&O.stringWidth(e[0])>n&&(n=Math.min(Math.floor(this.width*.5),O.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=O.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>O.stringWidth(n)&&(c+=` `.repeat(s-O.stringWidth(n))),e[a].align&&e[a].align!==`left`&&this.wrap){let t=D[e[a].align];c=t(c,s),O.stringWidth(c)<s&&(c+=` `.repeat((o||0)-O.stringWidth(c)-1))}let l=e[a].padding||[0,0,0,0];l[3]&&(i+=` `.repeat(l[3])),i+=Se(e[a],c,`| `),i+=c,i+=Se(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=O.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?O.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`),L(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&&(L(this,q,`f`).defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);let i=t.describe||t.description||t.desc,a=L(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){F(`[string|array] [function|boolean|object] [function]`,[e,t,n],arguments.length),this[An](),e===void 0&&(e=L(this,yn,`f`)),typeof t==`object`&&(I(this,gn,t,`f`),t=n),typeof t==`function`&&(I(this,J,t,`f`),t=!1),t||I(this,yn,e,`f`),L(this,J,`f`)&&I(this,V,!1,`f`);let r=this[rr](e,!!t),i=this.parsed;return L(this,z,`f`).setParsed(this.parsed),N(r)?r.then(e=>(L(this,J,`f`)&&L(this,J,`f`).call(this,L(this,cn,`f`),e,L(this,K,`f`)),e)).catch(e=>{throw L(this,J,`f`)&&L(this,J,`f`)(e,this.parsed.argv,L(this,K,`f`)),e}).finally(()=>{this[Un](),this.parsed=i}):(L(this,J,`f`)&&L(this,J,`f`).call(this,L(this,cn,`f`),r,L(this,K,`f`)),this[Un](),this.parsed=i,r)}parseAsync(e,t,n){let r=this.parse(e,t,n);return N(r)?r:Promise.resolve(r)}parseSync(e,t,n){let r=this.parse(e,t,n);if(N(r))throw new P(`.parseSync() must not be used with asynchronous builders, handlers, or middleware`);return r}parserConfiguration(e){return F(`<object>`,[e],arguments.length),I(this,hn,e,`f`),this}pkgConf(e,t){F(`<string> [string]`,[e,t],arguments.length);let n=null,r=this[Ln](t||L(this,an,`f`));return r[e]&&typeof r[e]==`object`&&(n=en(r[e],t||L(this,an,`f`),this[Mn]()[`deep-merge-config`]||!1,L(this,Y,`f`)),L(this,q,`f`).configObjects=(L(this,q,`f`).configObjects||[]).concat(n)),this}positional(e,t){F(`<string> <object>`,[e,t],arguments.length);let n=[`default`,`defaultDescription`,`implies`,`normalize`,`choices`,`conflicts`,`coerce`,`type`,`describe`,`desc`,`description`,`alias`];t=Lt(t,(e,t)=>e===`type`&&![`string`,`number`,`boolean`].includes(t)?!1:n.includes(e));let r=L(this,on,`f`).fullCommands[L(this,on,`f`).fullCommands.length-1],i=r?L(this,R,`f`).cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return yt(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,L(this,X,`f`).getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return F(`[boolean]`,[e],arguments.length),I(this,bn,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 F(`<array|string|object> [number]`,[e],arguments.length),typeof e==`string`&&L(this,q,`f`).narg[e]||this[Rn](this.requiresArg.bind(this),`narg`,e,NaN),this}showCompletionScript(e,t){return F(`[string] [string]`,[e,t],arguments.length),e||=this.$0,L(this,pn,`f`).log(L(this,z,`f`).generateCompletionScript(e,t||L(this,B,`f`)||`completion`)),this}showHelp(e){if(F(`[string|function]`,[e],arguments.length),I(this,W,!0,`f`),!L(this,X,`f`).hasCachedHelpMessage()){if(!this.parsed){let t=this[rr](L(this,yn,`f`),void 0,void 0,0,!0);if(N(t))return t.then(()=>{L(this,X,`f`).showHelp(e)}),this}let t=L(this,R,`f`).runDefaultBuilderOn(this);if(N(t))return t.then(()=>{L(this,X,`f`).showHelp(e)}),this}return L(this,X,`f`).showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return F(`[boolean|string] [string]`,[e,t],arguments.length),L(this,X,`f`).showHelpOnFail(e,t),this}showVersion(e){return F(`[string|function]`,[e],arguments.length),L(this,X,`f`).showVersion(e),this}skipValidation(e){return F(`<array|string>`,[e],arguments.length),this[$](`skipValidation`,e),this}strict(e){return F(`[boolean]`,[e],arguments.length),I(this,xn,e!==!1,`f`),this}strictCommands(e){return F(`[boolean]`,[e],arguments.length),I(this,Sn,e!==!1,`f`),this}strictOptions(e){return F(`[boolean]`,[e],arguments.length),I(this,Cn,e!==!1,`f`),this}string(e){return F(`<array|string>`,[e],arguments.length),this[$](`string`,e),this[or](e),this}terminalWidth(){return F([],0),L(this,Y,`f`).process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return F(`<object>`,[e],arguments.length),I(this,ln,!1,`f`),L(this,Y,`f`).y18n.updateLocale(e),this}usage(e,t,n,r){if(F(`<string|null|undefined> [string|boolean] [function|object] [function]`,[e,t,n,r],arguments.length),t!==void 0){if(M(e,null,L(this,Y,`f`)),(e||``).match(/^\$0( |$)/))return this.command(e,t,n,r);throw new P(`.usage() description must start with $0 if being used as alias for .command()`)}return L(this,X,`f`).usage(e),this}usageConfiguration(e){return F(`<object>`,[e],arguments.length),I(this,wn,e,`f`),this}version(e,t,n){let r=`version`;if(F(`[boolean|string] [string] [string]`,[e,t,n],arguments.length),L(this,Z,`f`)&&(this[On](L(this,Z,`f`)),L(this,X,`f`).version(void 0),I(this,Z,null,`f`)),arguments.length===0)n=this[Fn](),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 I(this,Z,typeof e==`string`?e:r,`f`),t||=L(this,X,`f`).deferY18nLookup(`Show version number`),L(this,X,`f`).version(n||void 0),this.boolean(L(this,Z,`f`)),this.describe(L(this,Z,`f`),t),this}wrap(e){return F(`<number|null|undefined>`,[e],arguments.length),L(this,X,`f`).wrap(e),this}[(R=/* @__PURE__ */ new WeakMap,an=/* @__PURE__ */ new WeakMap,on=/* @__PURE__ */ new WeakMap,z=/* @__PURE__ */ new WeakMap,B=/* @__PURE__ */ new WeakMap,sn=/* @__PURE__ */ new WeakMap,cn=/* @__PURE__ */ new WeakMap,ln=/* @__PURE__ */ new WeakMap,un=/* @__PURE__ */ new WeakMap,V=/* @__PURE__ */ new WeakMap,dn=/* @__PURE__ */ new WeakMap,H=/* @__PURE__ */ new WeakMap,U=/* @__PURE__ */ new WeakMap,W=/* @__PURE__ */ new WeakMap,G=/* @__PURE__ */ new WeakMap,fn=/* @__PURE__ */ new WeakMap,pn=/* @__PURE__ */ new WeakMap,K=/* @__PURE__ */ new WeakMap,q=/* @__PURE__ */ new WeakMap,mn=/* @__PURE__ */ new WeakMap,hn=/* @__PURE__ */ new WeakMap,J=/* @__PURE__ */ new WeakMap,gn=/* @__PURE__ */ new WeakMap,_n=/* @__PURE__ */ new WeakMap,vn=/* @__PURE__ */ new WeakMap,yn=/* @__PURE__ */ new WeakMap,bn=/* @__PURE__ */ new WeakMap,Y=/* @__PURE__ */ new WeakMap,xn=/* @__PURE__ */ new WeakMap,Sn=/* @__PURE__ */ new WeakMap,Cn=/* @__PURE__ */ new WeakMap,X=/* @__PURE__ */ new WeakMap,wn=/* @__PURE__ */ new WeakMap,Z=/* @__PURE__ */ new WeakMap,Q=/* @__PURE__ */ new WeakMap,En)](e){if(!e._||!e[`--`])return e;e._.push.apply(e._,e[`--`]);try{delete e[`--`]}catch{}return e}[Dn](){return{log:(...e)=>{this[Qn]()||console.log(...e),I(this,W,!0,`f`),L(this,K,`f`).length&&I(this,K,L(this,K,`f`)+`
117
117
  `,`f`),I(this,K,L(this,K,`f`)+e.join(` `),`f`)},error:(...e)=>{this[Qn]()||console.error(...e),I(this,W,!0,`f`),L(this,K,`f`).length&&I(this,K,L(this,K,`f`)+`
118
- `,`f`),I(this,K,L(this,K,`f`)+e.join(` `),`f`)}}}[On](e){yt(L(this,q,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=L(this,q,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete L(this,X,`f`).getDescriptions()[e]}[kn](e,t,n){L(this,un,`f`)[n]||(L(this,Y,`f`).process.emitWarning(e,t),L(this,un,`f`)[n]=!0)}[An](){L(this,dn,`f`).push({options:L(this,q,`f`),configObjects:L(this,q,`f`).configObjects.slice(0),exitProcess:L(this,V,`f`),groups:L(this,U,`f`),strict:L(this,xn,`f`),strictCommands:L(this,Sn,`f`),strictOptions:L(this,Cn,`f`),completionCommand:L(this,B,`f`),output:L(this,K,`f`),exitError:L(this,cn,`f`),hasOutput:L(this,W,`f`),parsed:this.parsed,parseFn:L(this,J,`f`),parseContext:L(this,gn,`f`)}),L(this,X,`f`).freeze(),L(this,Q,`f`).freeze(),L(this,R,`f`).freeze(),L(this,H,`f`).freeze()}[jn](){let e=``,t;return t=/\b(node|iojs|electron|bun)(\.exe)?$/.test(L(this,Y,`f`).process.argv()[0])?L(this,Y,`f`).process.argv().slice(1,2):L(this,Y,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[tr](L(this,an,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),L(this,Y,`f`).getEnv(`_`)&&L(this,Y,`f`).getProcessArgvBin()===L(this,Y,`f`).getEnv(`_`)&&(e=L(this,Y,`f`).getEnv(`_`).replace(`${L(this,Y,`f`).path.dirname(L(this,Y,`f`).process.execPath())}/`,``)),e}[Mn](){return L(this,hn,`f`)}[Nn](){return L(this,wn,`f`)}[Pn](){if(!L(this,ln,`f`))return;let e=L(this,Y,`f`).getEnv(`LC_ALL`)||L(this,Y,`f`).getEnv(`LC_MESSAGES`)||L(this,Y,`f`).getEnv(`LANG`)||L(this,Y,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[Fn](){return this[Ln]().version||`unknown`}[In](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)L(this,Y,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[Ln](e){let t=e||`*`;if(L(this,_n,`f`)[t])return L(this,_n,`f`)[t];let n={};try{let t=e||L(this,Y,`f`).mainFilename;L(this,Y,`f`).path.extname(t)&&(t=L(this,Y,`f`).path.dirname(t));let r=L(this,Y,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});M(r,void 0,L(this,Y,`f`)),n=JSON.parse(L(this,Y,`f`).readFileSync(r,`utf8`))}catch{}return L(this,_n,`f`)[t]=n||{},L(this,_n,`f`)[t]}[$](e,t){t=[].concat(t),t.forEach(t=>{t=this[Vn](t),L(this,q,`f`)[e].push(t)})}[Rn](e,t,n,r){this[Bn](e,t,n,r,(e,t,n)=>{L(this,q,`f`)[e][t]=n})}[zn](e,t,n,r){this[Bn](e,t,n,r,(e,t,n)=>{L(this,q,`f`)[e][t]=(L(this,q,`f`)[e][t]||[]).concat(n)})}[Bn](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 yt(n))e(t,n[t]);else i(t,this[Vn](n),r)}[Vn](e){return e===`__proto__`?`___proto___`:e}[Hn](e,t){return this[Rn](this[Hn].bind(this),`key`,e,t),this}[Un](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=L(this,dn,`f`).pop();M(f,void 0,L(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){I(e,q,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){I(t,V,e,`f`)}}.value,groups:{set value(e){I(n,U,e,`f`)}}.value,output:{set value(e){I(r,K,e,`f`)}}.value,exitError:{set value(e){I(i,cn,e,`f`)}}.value,hasOutput:{set value(e){I(a,W,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){I(o,xn,e,`f`)}}.value,strictCommands:{set value(e){I(s,Sn,e,`f`)}}.value,strictOptions:{set value(e){I(c,Cn,e,`f`)}}.value,completionCommand:{set value(e){I(l,B,e,`f`)}}.value,parseFn:{set value(e){I(u,J,e,`f`)}}.value,parseContext:{set value(e){I(d,gn,e,`f`)}}.value}=f,L(this,q,`f`).configObjects=p,L(this,X,`f`).unfreeze(),L(this,Q,`f`).unfreeze(),L(this,R,`f`).unfreeze(),L(this,H,`f`).unfreeze()}[Wn](e,t){return Dt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[Gn].bind(this),getContext:this[Kn].bind(this),getHasOutput:this[qn].bind(this),getLoggerInstance:this[Jn].bind(this),getParseContext:this[Yn].bind(this),getParserConfiguration:this[Mn].bind(this),getUsageConfiguration:this[Nn].bind(this),getUsageInstance:this[Xn].bind(this),getValidationInstance:this[Zn].bind(this),hasParseCallback:this[Qn].bind(this),isGlobalContext:this[$n].bind(this),postProcess:this[er].bind(this),reset:this[nr].bind(this),runValidation:this[ir].bind(this),runYargsParserAndExecuteCommands:this[rr].bind(this),setHasOutput:this[ar].bind(this)}}[Gn](){return L(this,R,`f`)}[Kn](){return L(this,on,`f`)}[qn](){return L(this,W,`f`)}[Jn](){return L(this,pn,`f`)}[Yn](){return L(this,gn,`f`)||{}}[Xn](){return L(this,X,`f`)}[Zn](){return L(this,Q,`f`)}[Qn](){return!!L(this,J,`f`)}[$n](){return L(this,fn,`f`)}[er](e,t,n,r){return n||N(e)||(t||(e=this[En](e)),(this[Mn]()[`parse-positional-numbers`]||this[Mn]()[`parse-positional-numbers`]===void 0)&&(e=this[In](e)),r&&(e=Et(e,this,L(this,H,`f`).getMiddleware(),!1))),e}[nr](e={}){I(this,q,L(this,q,`f`)||{},`f`);let t={};t.local=L(this,q,`f`).local||[],t.configObjects=L(this,q,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(L(this,vn,`f`),Object.keys(L(this,U,`f`)).reduce((e,t)=>{let r=L(this,U,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),I(this,U,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(L(this,q,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=Lt(L(this,q,`f`)[e],e=>!n[e])}),t.envPrefix=L(this,q,`f`).envPrefix,I(this,q,t,`f`),I(this,X,L(this,X,`f`)?L(this,X,`f`).reset(n):Bt(this,L(this,Y,`f`)),`f`),I(this,Q,L(this,Q,`f`)?L(this,Q,`f`).reset(n):Zt(this,L(this,X,`f`),L(this,Y,`f`)),`f`),I(this,R,L(this,R,`f`)?L(this,R,`f`).reset():jt(L(this,X,`f`),L(this,Q,`f`),L(this,H,`f`),L(this,Y,`f`)),`f`),L(this,z,`f`)||I(this,z,Kt(this,L(this,X,`f`),L(this,R,`f`),L(this,Y,`f`)),`f`),L(this,H,`f`).reset(),I(this,B,null,`f`),I(this,K,``,`f`),I(this,cn,null,`f`),I(this,W,!1,`f`),this.parsed=!1,this}[tr](e,t){return L(this,Y,`f`).path.relative(e,t)}[rr](e,t,n,r=0,i=!1){let a=!!n||i;e||=L(this,yn,`f`),L(this,q,`f`).__=L(this,Y,`f`).y18n.__,L(this,q,`f`).configuration=this[Mn]();let o=!!L(this,q,`f`).configuration[`populate--`],s=Object.assign({},L(this,q,`f`).configuration,{"populate--":!0}),c=L(this,Y,`f`).Parser.detailed(e,Object.assign({},L(this,q,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,L(this,gn,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===L(this,G,`f`)&&l[e]?f=!0:e===L(this,Z,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&L(this,X,`f`).clearCachedHelpMessage();try{if(this[Pn](),t)return this[er](l,o,!!n,!1);L(this,G,`f`)&&[L(this,G,`f`)].concat(d[L(this,G,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),I(this,fn,!1,`f`);let s=L(this,R,`f`).getCommands(),m=L(this,z,`f`)?.completionKey?[L(this,z,`f`)?.completionKey,...this.getAliases()[L(this,z,`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!==L(this,B,`f`)){let e=L(this,R,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[er](e,o,!!n,!1)}if(!e&&a!==L(this,B,`f`)){e=a;break}}!L(this,R,`f`).hasDefaultCommand()&&L(this,bn,`f`)&&e&&!h&&L(this,Q,`f`).recommendCommands(e,s)}L(this,B,`f`)&&l._.includes(L(this,B,`f`))&&!m&&(L(this,V,`f`)&&Rt(!0),this.showCompletionScript(),this.exit(0))}if(L(this,R,`f`).hasDefaultCommand()&&!h){let e=L(this,R,`f`).runCommand(null,this,c,0,i,f||p||i);return this[er](e,o,!!n,!1)}if(m){L(this,V,`f`)&&Rt(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${L(this,z,`f`).completionKey}`)+1);return L(this,z,`f`).getCompletion(t,(e,t)=>{if(e)throw new P(e.message);(t||[]).forEach(e=>{L(this,pn,`f`).log(e)}),this.exit(0)}),this[er](l,!o,!!n,!1)}if(L(this,W,`f`)||(f?(L(this,V,`f`)&&Rt(!0),a=!0,this.showHelp(e=>{L(this,pn,`f`).log(e),this.exit(0)})):p&&(L(this,V,`f`)&&Rt(!0),a=!0,L(this,X,`f`).showVersion(`log`),this.exit(0))),!a&&L(this,q,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>L(this,q,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new P(c.error.message);if(!m){let e=this[ir](d,{},c.error);n||(u=Et(l,this,L(this,H,`f`).getMiddleware(),!0)),u=this[Wn](e,u??l),N(u)&&!n&&(u=u.then(()=>Et(l,this,L(this,H,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof P)L(this,X,`f`).fail(e.message,e);else throw e}return this[er](u??l,o,!!n,!0)}[ir](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new P(n.message);L(this,Q,`f`).nonOptionCount(a),L(this,Q,`f`).requiredArguments(a,i);let o=!1;L(this,Sn,`f`)&&(o=L(this,Q,`f`).unknownCommands(a)),L(this,xn,`f`)&&!o?L(this,Q,`f`).unknownArguments(a,e,t,!!r):L(this,Cn,`f`)&&L(this,Q,`f`).unknownArguments(a,e,{},!1,!1),L(this,Q,`f`).limitedChoices(a),L(this,Q,`f`).implications(a),L(this,Q,`f`).conflicting(a)}}[ar](){I(this,W,!0,`f`)}[or](e){if(typeof e==`string`)L(this,q,`f`).key[e]=!0;else for(let t of e)L(this,q,`f`).key[t]=!0}};function cr(e){return!!e&&typeof e.getInternalMethods==`function`}const lr=Tn(_t),ur=[{command:o(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-Dzop8iDe.mjs`),null),hideCommand:!1},{command:o(`access`,`Access protected applications and services`,()=>import(`./access-2NeD3Gu8.mjs`),null),hideCommand:!1},{command:o(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-CeJbhhX4.mjs`),null),hideCommand:!1},{command:o(`acm`,`acm`,()=>import(`./acm-Dub0B14J.mjs`),null),hideCommand:!1},{command:o(`addressing`,`addressing`,()=>import(`./addressing-BzWJU8m6.mjs`),null),hideCommand:!1},{command:o(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-2l9zyQFA.mjs`),null),hideCommand:!1},{command:o(`ai`,`ai`,()=>import(`./ai-laLv3daG.mjs`),null),hideCommand:!1},{command:o(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-rgNePq5W.mjs`),null),hideCommand:!1},{command:o(`ai-gateway`,`Proxy, cache, rate-limit, and observe requests to AI providers — OpenAI, Anthropic, Workers AI, and more`,()=>import(`./ai-gateway-e9b8CcL6.mjs`),null),hideCommand:!1},{command:o(`ai-search`,`Managed search-as-a-service: crawl, index, and query content with AI-powered relevance and chat completions`,()=>import(`./ai-search-DZ0AqoPe.mjs`),null),hideCommand:!1},{command:o(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-CQuBTtmw.mjs`),null),hideCommand:!1},{command:o(`alerting`,`alerting`,()=>import(`./alerting-_4ra-f_v.mjs`),null),hideCommand:!1},{command:o(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-DLNn4bJ4.mjs`),null),hideCommand:!1},{command:o(`analytics-engine`,`analytics-engine`,()=>import(`./analytics-engine-CY45yWuL.mjs`),null),hideCommand:!1},{command:o(`api-security`,`api-security`,()=>import(`./api-security-BSvJAjJV.mjs`),null),hideCommand:!1},{command:o(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-xzl0p--1.mjs`),null),hideCommand:!1},{command:o(`artifacts`,`artifacts`,()=>import(`./artifacts-DAS14gcM.mjs`),null),hideCommand:!1},{command:o(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-3nYyCGQA.mjs`),null),hideCommand:!1},{command:o(`basin-catalog`,`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,()=>import(`./basin-catalog-BbCsAKyZ.mjs`),null),hideCommand:!1},{command:o(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-BsiLsjWJ.mjs`),null),hideCommand:!1},{command:o(`bot-management`,`bot-management`,()=>import(`./bot-management-DkErOsIO.mjs`),null),hideCommand:!1},{command:o(`botnet-feed`,`Botnet threat intelligence feeds — IP and ASN-level data on known command-and-control infrastructure`,()=>import(`./botnet-feed-CK4_PKrf.mjs`),null),hideCommand:!1},{command:o(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-Czt-2Ei5.mjs`),null),hideCommand:!1},{command:o(`browser-run`,`browser-run`,()=>import(`./browser-run-DLMdEaSJ.mjs`),null),hideCommand:!1},{command:o(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-D--zUbR2.mjs`),null),hideCommand:!1},{command:o(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-C8PQmkjD.mjs`),null),hideCommand:!1},{command:o(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-CFxePUL9.mjs`),null),hideCommand:!1},{command:o(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-BitfLQ3s.mjs`),null),hideCommand:!1},{command:o(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-D2dzA7VD.mjs`),null),hideCommand:!1},{command:o(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-D9tI84Fk.mjs`),null),hideCommand:!1},{command:o(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-Bs9wLYwc.mjs`),null),hideCommand:!1},{command:o(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-CbwE4lrE.mjs`),null),hideCommand:!1},{command:o(`connectors`,`connectors`,()=>import(`./connectors-LyJN1htu.mjs`),null),hideCommand:!1},{command:o(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-CKs7ZyZq.mjs`),null),hideCommand:!1},{command:o(`content-scan`,`Malicious uploads detection, scan uploaded content in HTTP requests for malware and malicious payloads`,()=>import(`./content-scan-BQRz7C7Z.mjs`),null),hideCommand:!1},{command:o(`cps`,`cps`,()=>import(`./cps-DYlXx89C.mjs`),null),hideCommand:!1},{command:o(`csam-scanner`,`csam-scanner`,()=>import(`./csam-scanner-BFANxGD-.mjs`),null),hideCommand:!1},{command:o(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-BX4aCeof.mjs`),null),hideCommand:!1},{command:o(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-BRYABKN3.mjs`),null),hideCommand:!1},{command:o(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-CP1Vf1TD.mjs`),null),hideCommand:!1},{command:o(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-BNL69ToU.mjs`),null),hideCommand:!1},{command:o(`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-D4AZsUKn.mjs`),null),hideCommand:!1},{command:o(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-Dk3pyWx_.mjs`),null),hideCommand:!1},{command:o(`dls`,`dls`,()=>import(`./dls-DU6EdhQK.mjs`),null),hideCommand:!1},{command:o(`dns`,`dns`,()=>import(`./dns-3QDtCu6f.mjs`),null),hideCommand:!1},{command:o(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-Bbrr_0_a.mjs`),null),hideCommand:!1},{command:o(`durable-objects`,`Stateful serverless objects with transactional storage, ideal for coordination, sessions, and real-time collaboration`,()=>import(`./durable-objects-DPf1DMeq.mjs`),null),hideCommand:!1},{command:o(`email-auth`,`email-auth`,()=>import(`./email-auth-DOlEoi8q.mjs`),null),hideCommand:!1},{command:o(`email-routing`,`Route incoming email to verified destination addresses or Workers with routing rules, catch-all behavior, and managed DNS records`,()=>import(`./email-routing-D56SPGty.mjs`),null),hideCommand:!1},{command:o(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-CSawx0kD.mjs`),null),hideCommand:!1},{command:o(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-CgFi0cLA.mjs`),null),hideCommand:!1},{command:o(`field-extractors`,`field-extractors`,()=>import(`./field-extractors-FvIgySB4.mjs`),null),hideCommand:!1},{command:o(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-BrTvywhW.mjs`),null),hideCommand:!1},{command:o(`flagship`,`flagship`,()=>import(`./flagship-BGFN1Epo.mjs`),null),hideCommand:!1},{command:o(`fraud`,`fraud`,()=>import(`./fraud-DzK6OIO3.mjs`),null),hideCommand:!1},{command:o(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-Cd9v8A7Z.mjs`),null),hideCommand:!1},{command:o(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-Cm7EHaBA.mjs`),null),hideCommand:!1},{command:o(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-CVaSt0qX.mjs`),null),hideCommand:!1},{command:o(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-CWN62Mi4.mjs`),null),hideCommand:!1},{command:o(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-Bo_pdvQC.mjs`),null),hideCommand:!1},{command:o(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-CQFYeGEA.mjs`),null),hideCommand:!1},{command:o(`internal`,`internal`,()=>import(`./internal-CYrPZ9IX.mjs`),null),hideCommand:!0},{command:o(`ips`,`ips`,()=>import(`./ips-jTSzoqMU.mjs`),null),hideCommand:!0},{command:o(`k2`,`Durable, ordered event streams that you produce records to and consume from with subscriptions`,()=>import(`./k2-utE2lCYd.mjs`),null),hideCommand:!1},{command:o(`kv`,`kv`,()=>import(`./kv-Cdh5hHte.mjs`),null),hideCommand:!1},{command:o(`leaked-credential-checks`,`Detect compromised credentials in login requests by checking against known breach databases`,()=>import(`./leaked-credential-checks-CqApscD3.mjs`),null),hideCommand:!1},{command:o(`live`,`live`,()=>import(`./live-hZgMkXJf.mjs`),null),hideCommand:!0},{command:o(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-w_4Uz9Gi.mjs`),null),hideCommand:!1},{command:o(`logpush`,`logpush`,()=>import(`./logpush-C76I5dgN.mjs`),null),hideCommand:!1},{command:o(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-B5aCYVCv.mjs`),null),hideCommand:!1},{command:o(`magic-network-monitoring`,`Flow-based network traffic monitoring with configurable alerting rules and VPC flow ingestion`,()=>import(`./magic-network-monitoring-CGf7cVQ9.mjs`),null),hideCommand:!0},{command:o(`magic-transit`,`DDoS-protected network transit — GRE/IPsec tunnels, static routes, Magic WAN sites, connectors, and packet captures`,()=>import(`./magic-transit-CN5noqOR.mjs`),null),hideCommand:!1},{command:o(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-DAGr0UGm.mjs`),null),hideCommand:!1},{command:o(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-_SuwzZ-5.mjs`),null),hideCommand:!1},{command:o(`mcp`,`Manage MCP portals and upstream MCP servers for Cloudflare Access AI controls`,()=>import(`./mcp-CzedsjOf.mjs`),null),hideCommand:!1},{command:o(`mesh`,`mesh`,()=>import(`./mesh-DXX1S3pX.mjs`),null),hideCommand:!1},{command:o(`monetization`,`monetization`,()=>import(`./monetization-8nt9PYln.mjs`),null),hideCommand:!1},{command:o(`network`,`network`,()=>import(`./network-CaiRDY2e.mjs`),null),hideCommand:!1},{command:o(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-Ad6JbAVd.mjs`),null),hideCommand:!1},{command:o(`o11y`,`o11y`,()=>import(`./o11y-DD2Hfnzi.mjs`),null),hideCommand:!1},{command:o(`observability`,`observability`,()=>import(`./observability-BzKBUUSf.mjs`),null),hideCommand:!1},{command:o(`ohttp-gateway`,`ohttp-gateway`,()=>import(`./ohttp-gateway-Sej9-GCm.mjs`),null),hideCommand:!1},{command:o(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-DwYsCbYD.mjs`),null),hideCommand:!1},{command:o(`page-rules`,`page-rules`,()=>import(`./page-rules-CjufEmIt.mjs`),null),hideCommand:!1},{command:o(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-Dj0Cdf3G.mjs`),null),hideCommand:!1},{command:o(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-DPVlluRA.mjs`),null),hideCommand:!1},{command:o(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-DhuLjaoo.mjs`),null),hideCommand:!1},{command:o(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-D2pM69oq.mjs`),null),hideCommand:!1},{command:o(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-DzuA1m8D.mjs`),null),hideCommand:!1},{command:o(`previews`,`Manage Worker Previews`,()=>import(`./previews-CHHd5Rx7.mjs`),null),hideCommand:!1},{command:o(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-GDwznw0o.mjs`),null),hideCommand:!1},{command:o(`r2`,`S3-compatible object storage with zero egress fees — buckets, lifecycle rules, event notifications, and data migration`,()=>import(`./r2-B3Xkb0S4.mjs`),null),hideCommand:!1},{command:o(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-fBT7VIO2.mjs`),null),hideCommand:!1},{command:o(`ready`,`ready`,()=>import(`./ready-BkXNDNTd.mjs`),null),hideCommand:!0},{command:o(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-B7mR3XtY.mjs`),null),hideCommand:!1},{command:o(`registrar`,`registrar`,()=>import(`./registrar-DOoxlZc7.mjs`),null),hideCommand:!1},{command:o(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-DC7xAqqc.mjs`),null),hideCommand:!1},{command:o(`reporting`,`reporting`,()=>import(`./reporting-DlD7J6Pq.mjs`),null),hideCommand:!1},{command:o(`request-tracers`,`Trace how a request would be processed through Cloudflare's rules and configuration pipeline`,()=>import(`./request-tracers-DYCGkszp.mjs`),null),hideCommand:!1},{command:o(`resource-sharing`,`Share account-level resources (WAF custom rulesets, Gateway policies and settings, Access IdP federation grants) with other accounts in the same organization`,()=>import(`./resource-sharing-D_bUv7E8.mjs`),null),hideCommand:!1},{command:o(`rules`,`Resources used by Cloudflare rules and rulesets`,()=>import(`./rules-C4cu3_jr.mjs`),null),hideCommand:!1},{command:o(`rulesets`,`rulesets`,()=>import(`./rulesets-Bl4mLnXA.mjs`),null),hideCommand:!1},{command:o(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-DE_uJb09.mjs`),null),hideCommand:!0},{command:o(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-Dz4r0fnH.mjs`),null),hideCommand:!1},{command:o(`secrets-store`,`Centralized secret management — store API keys, tokens, and credentials for use across Workers and other products`,()=>import(`./secrets-store-C2GwCUKs.mjs`),null),hideCommand:!1},{command:o(`security-insights`,`security-insights`,()=>import(`./security-insights-DZCm5D3U.mjs`),null),hideCommand:!1},{command:o(`security-txt`,`Manage the /.well-known/security.txt file that tells security researchers how to report vulnerabilities`,()=>import(`./security-txt-Dbi9KxNc.mjs`),null),hideCommand:!1},{command:o(`signed-url`,`signed-url`,()=>import(`./signed-url-BhHSAUam.mjs`),null),hideCommand:!0},{command:o(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-C2uSFcGN.mjs`),null),hideCommand:!1},{command:o(`snippets`,`snippets`,()=>import(`./snippets-BoaGEAC6.mjs`),null),hideCommand:!1},{command:o(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-Bb0KXA8R.mjs`),null),hideCommand:!1},{command:o(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-zKYgLTHA.mjs`),null),hideCommand:!1},{command:o(`sql`,`sql`,()=>import(`./sql-pjWozuvl.mjs`),null),hideCommand:!1},{command:o(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-C5bg1X0i.mjs`),null),hideCommand:!1},{command:o(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-C_FiNrLV.mjs`),null),hideCommand:!1},{command:o(`tags`,`tags`,()=>import(`./tags-CXlivF3y.mjs`),null),hideCommand:!1},{command:o(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-DBg9Hzvn.mjs`),null),hideCommand:!1},{command:o(`tenants`,`Multi-tenant account management`,()=>import(`./tenants-89Q0u5_Q.mjs`),null),hideCommand:!1},{command:o(`tunnels`,`tunnels`,()=>import(`./tunnels-CL2fIINH.mjs`),null),hideCommand:!1},{command:o(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-D6GtQULo.mjs`),null),hideCommand:!1},{command:o(`url-normalization`,`url-normalization`,()=>import(`./url-normalization--iS57OT_.mjs`),null),hideCommand:!1},{command:o(`url-scanner`,`Scan URLs for phishing, malware, and other threats — submit scans and retrieve detailed results`,()=>import(`./url-scanner-C6AtXGc2.mjs`),null),hideCommand:!1},{command:o(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-C5vRYIta.mjs`),null),hideCommand:!1},{command:o(`vectorize`,`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,()=>import(`./vectorize-C1Kxb1Ou.mjs`),null),hideCommand:!1},{command:o(`waiting-rooms`,`Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages`,()=>import(`./waiting-rooms-BCVZY9vI.mjs`),null),hideCommand:!1},{command:o(`web-assets`,`web-assets`,()=>import(`./web-assets-D2gXqKZS.mjs`),null),hideCommand:!1},{command:o(`web3`,`web3`,()=>import(`./web3-CJDZQCOk.mjs`),null),hideCommand:!0},{command:o(`workers`,`Deploy and manage serverless JavaScript/WASM applications on Cloudflare's global network`,()=>import(`./workers-DzXSJMv9.mjs`),null),hideCommand:!1},{command:o(`workers-for-platforms`,`Workers for Platforms uses dispatch namespaces to isolate and route requests to many individual user Workers, letting platforms run untrusted customer or AI-generated code at scale with per-tenant bindings, limits, and observability`,()=>import(`./workers-for-platforms-CvazgrqD.mjs`),null),hideCommand:!1},{command:o(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-DP4QC6UC.mjs`),null),hideCommand:!1},{command:o(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-BSOj56io.mjs`),null),hideCommand:!1},{command:o(`zaraz`,`Server-side tag manager — load third-party tools (analytics, pixels, etc.) from Cloudflare's edge without client-side JS`,()=>import(`./zaraz-BnQvKXFy.mjs`),null),hideCommand:!1},{command:o(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-DsslXRub.mjs`),null),hideCommand:!1},{command:o(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-DQ3SjGsZ.mjs`),null),hideCommand:!1}];function dr(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=s(import.meta.url,`schemas.json`,dr);return!n||!Object.hasOwn(n.schemas,t)?e:`${e}\n\n${c.italic(`To inspect the exact API request, run ${c.code(`cf schema ${t}`)}`)}`}const pr=[{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:`whoami`,describe:!1,dir:`whoami`},{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 [directory]`,describe:`Deploy a Worker, static site, or full-stack application 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 mr(){return pr.filter(e=>e.kind===`root`)}function hr(e){return e.command.split(/\s+/)[0]??e.command}const gr={auth:{load:()=>import(`./auth-B0mFB6nU.mjs`),telemetry:{command:`auth`,recordArgs:!1}},login:{load:()=>import(`./login-BBSJytOt.mjs`),telemetry:null},whoami:{load:()=>import(`./whoami-2eFTt0-Y.mjs`),telemetry:null},build:{load:()=>import(`./build-ByjJ6yIB.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},completions:{load:()=>import(`./completions-BAUSggys.mjs`),telemetry:null},deploy:{load:()=>import(`./deploy-LbXgSfAd.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`,`provision`]}}},dev:{load:()=>import(`./dev-DaFSd8WC.mjs`),telemetry:{command:`dev`,recordArgs:!1}},init:{load:()=>import(`./init-Dwmpc_S-.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},migrate:{load:()=>import(`./migrate-CvRQ4x3_.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},docs:{load:()=>import(`./docs-lLLKcLr_.mjs`),telemetry:{command:`docs`,recordArgs:!1}},cli:{load:()=>import(`./cli-BBv5YMan.mjs`),telemetry:{command:`cli`,recordArgs:!1}},schema:{load:()=>import(`./schema-BX822YfT.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},tools:{load:()=>import(`./tools-aVtEAIvu.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}}};function _r(){return mr().map(e=>({...e,...gr[e.dir]}))}function vr(e,t){let n=t.alias;return[e,...Array.isArray(n)?n:n===void 0?[]:[n]]}function yr(e){return e.length===1?`-${e}`:`--${e}`}const br=new Set(g),xr=Object.entries({...h,..._}).filter(([,e])=>!e.hidden).map(([e,t])=>` ${vr(e,t).sort((e,t)=>e.length-t.length).map(yr).join(`, `)}`).join(`
118
+ `,`f`),I(this,K,L(this,K,`f`)+e.join(` `),`f`)}}}[On](e){yt(L(this,q,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=L(this,q,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete L(this,X,`f`).getDescriptions()[e]}[kn](e,t,n){L(this,un,`f`)[n]||(L(this,Y,`f`).process.emitWarning(e,t),L(this,un,`f`)[n]=!0)}[An](){L(this,dn,`f`).push({options:L(this,q,`f`),configObjects:L(this,q,`f`).configObjects.slice(0),exitProcess:L(this,V,`f`),groups:L(this,U,`f`),strict:L(this,xn,`f`),strictCommands:L(this,Sn,`f`),strictOptions:L(this,Cn,`f`),completionCommand:L(this,B,`f`),output:L(this,K,`f`),exitError:L(this,cn,`f`),hasOutput:L(this,W,`f`),parsed:this.parsed,parseFn:L(this,J,`f`),parseContext:L(this,gn,`f`)}),L(this,X,`f`).freeze(),L(this,Q,`f`).freeze(),L(this,R,`f`).freeze(),L(this,H,`f`).freeze()}[jn](){let e=``,t;return t=/\b(node|iojs|electron|bun)(\.exe)?$/.test(L(this,Y,`f`).process.argv()[0])?L(this,Y,`f`).process.argv().slice(1,2):L(this,Y,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[tr](L(this,an,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),L(this,Y,`f`).getEnv(`_`)&&L(this,Y,`f`).getProcessArgvBin()===L(this,Y,`f`).getEnv(`_`)&&(e=L(this,Y,`f`).getEnv(`_`).replace(`${L(this,Y,`f`).path.dirname(L(this,Y,`f`).process.execPath())}/`,``)),e}[Mn](){return L(this,hn,`f`)}[Nn](){return L(this,wn,`f`)}[Pn](){if(!L(this,ln,`f`))return;let e=L(this,Y,`f`).getEnv(`LC_ALL`)||L(this,Y,`f`).getEnv(`LC_MESSAGES`)||L(this,Y,`f`).getEnv(`LANG`)||L(this,Y,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[Fn](){return this[Ln]().version||`unknown`}[In](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)L(this,Y,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[Ln](e){let t=e||`*`;if(L(this,_n,`f`)[t])return L(this,_n,`f`)[t];let n={};try{let t=e||L(this,Y,`f`).mainFilename;L(this,Y,`f`).path.extname(t)&&(t=L(this,Y,`f`).path.dirname(t));let r=L(this,Y,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});M(r,void 0,L(this,Y,`f`)),n=JSON.parse(L(this,Y,`f`).readFileSync(r,`utf8`))}catch{}return L(this,_n,`f`)[t]=n||{},L(this,_n,`f`)[t]}[$](e,t){t=[].concat(t),t.forEach(t=>{t=this[Vn](t),L(this,q,`f`)[e].push(t)})}[Rn](e,t,n,r){this[Bn](e,t,n,r,(e,t,n)=>{L(this,q,`f`)[e][t]=n})}[zn](e,t,n,r){this[Bn](e,t,n,r,(e,t,n)=>{L(this,q,`f`)[e][t]=(L(this,q,`f`)[e][t]||[]).concat(n)})}[Bn](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 yt(n))e(t,n[t]);else i(t,this[Vn](n),r)}[Vn](e){return e===`__proto__`?`___proto___`:e}[Hn](e,t){return this[Rn](this[Hn].bind(this),`key`,e,t),this}[Un](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=L(this,dn,`f`).pop();M(f,void 0,L(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){I(e,q,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){I(t,V,e,`f`)}}.value,groups:{set value(e){I(n,U,e,`f`)}}.value,output:{set value(e){I(r,K,e,`f`)}}.value,exitError:{set value(e){I(i,cn,e,`f`)}}.value,hasOutput:{set value(e){I(a,W,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){I(o,xn,e,`f`)}}.value,strictCommands:{set value(e){I(s,Sn,e,`f`)}}.value,strictOptions:{set value(e){I(c,Cn,e,`f`)}}.value,completionCommand:{set value(e){I(l,B,e,`f`)}}.value,parseFn:{set value(e){I(u,J,e,`f`)}}.value,parseContext:{set value(e){I(d,gn,e,`f`)}}.value}=f,L(this,q,`f`).configObjects=p,L(this,X,`f`).unfreeze(),L(this,Q,`f`).unfreeze(),L(this,R,`f`).unfreeze(),L(this,H,`f`).unfreeze()}[Wn](e,t){return Dt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[Gn].bind(this),getContext:this[Kn].bind(this),getHasOutput:this[qn].bind(this),getLoggerInstance:this[Jn].bind(this),getParseContext:this[Yn].bind(this),getParserConfiguration:this[Mn].bind(this),getUsageConfiguration:this[Nn].bind(this),getUsageInstance:this[Xn].bind(this),getValidationInstance:this[Zn].bind(this),hasParseCallback:this[Qn].bind(this),isGlobalContext:this[$n].bind(this),postProcess:this[er].bind(this),reset:this[nr].bind(this),runValidation:this[ir].bind(this),runYargsParserAndExecuteCommands:this[rr].bind(this),setHasOutput:this[ar].bind(this)}}[Gn](){return L(this,R,`f`)}[Kn](){return L(this,on,`f`)}[qn](){return L(this,W,`f`)}[Jn](){return L(this,pn,`f`)}[Yn](){return L(this,gn,`f`)||{}}[Xn](){return L(this,X,`f`)}[Zn](){return L(this,Q,`f`)}[Qn](){return!!L(this,J,`f`)}[$n](){return L(this,fn,`f`)}[er](e,t,n,r){return n||N(e)||(t||(e=this[En](e)),(this[Mn]()[`parse-positional-numbers`]||this[Mn]()[`parse-positional-numbers`]===void 0)&&(e=this[In](e)),r&&(e=Et(e,this,L(this,H,`f`).getMiddleware(),!1))),e}[nr](e={}){I(this,q,L(this,q,`f`)||{},`f`);let t={};t.local=L(this,q,`f`).local||[],t.configObjects=L(this,q,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(L(this,vn,`f`),Object.keys(L(this,U,`f`)).reduce((e,t)=>{let r=L(this,U,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),I(this,U,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(L(this,q,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=Lt(L(this,q,`f`)[e],e=>!n[e])}),t.envPrefix=L(this,q,`f`).envPrefix,I(this,q,t,`f`),I(this,X,L(this,X,`f`)?L(this,X,`f`).reset(n):Bt(this,L(this,Y,`f`)),`f`),I(this,Q,L(this,Q,`f`)?L(this,Q,`f`).reset(n):Zt(this,L(this,X,`f`),L(this,Y,`f`)),`f`),I(this,R,L(this,R,`f`)?L(this,R,`f`).reset():jt(L(this,X,`f`),L(this,Q,`f`),L(this,H,`f`),L(this,Y,`f`)),`f`),L(this,z,`f`)||I(this,z,Kt(this,L(this,X,`f`),L(this,R,`f`),L(this,Y,`f`)),`f`),L(this,H,`f`).reset(),I(this,B,null,`f`),I(this,K,``,`f`),I(this,cn,null,`f`),I(this,W,!1,`f`),this.parsed=!1,this}[tr](e,t){return L(this,Y,`f`).path.relative(e,t)}[rr](e,t,n,r=0,i=!1){let a=!!n||i;e||=L(this,yn,`f`),L(this,q,`f`).__=L(this,Y,`f`).y18n.__,L(this,q,`f`).configuration=this[Mn]();let o=!!L(this,q,`f`).configuration[`populate--`],s=Object.assign({},L(this,q,`f`).configuration,{"populate--":!0}),c=L(this,Y,`f`).Parser.detailed(e,Object.assign({},L(this,q,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,L(this,gn,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===L(this,G,`f`)&&l[e]?f=!0:e===L(this,Z,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&L(this,X,`f`).clearCachedHelpMessage();try{if(this[Pn](),t)return this[er](l,o,!!n,!1);L(this,G,`f`)&&[L(this,G,`f`)].concat(d[L(this,G,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),I(this,fn,!1,`f`);let s=L(this,R,`f`).getCommands(),m=L(this,z,`f`)?.completionKey?[L(this,z,`f`)?.completionKey,...this.getAliases()[L(this,z,`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!==L(this,B,`f`)){let e=L(this,R,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[er](e,o,!!n,!1)}if(!e&&a!==L(this,B,`f`)){e=a;break}}!L(this,R,`f`).hasDefaultCommand()&&L(this,bn,`f`)&&e&&!h&&L(this,Q,`f`).recommendCommands(e,s)}L(this,B,`f`)&&l._.includes(L(this,B,`f`))&&!m&&(L(this,V,`f`)&&Rt(!0),this.showCompletionScript(),this.exit(0))}if(L(this,R,`f`).hasDefaultCommand()&&!h){let e=L(this,R,`f`).runCommand(null,this,c,0,i,f||p||i);return this[er](e,o,!!n,!1)}if(m){L(this,V,`f`)&&Rt(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${L(this,z,`f`).completionKey}`)+1);return L(this,z,`f`).getCompletion(t,(e,t)=>{if(e)throw new P(e.message);(t||[]).forEach(e=>{L(this,pn,`f`).log(e)}),this.exit(0)}),this[er](l,!o,!!n,!1)}if(L(this,W,`f`)||(f?(L(this,V,`f`)&&Rt(!0),a=!0,this.showHelp(e=>{L(this,pn,`f`).log(e),this.exit(0)})):p&&(L(this,V,`f`)&&Rt(!0),a=!0,L(this,X,`f`).showVersion(`log`),this.exit(0))),!a&&L(this,q,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>L(this,q,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new P(c.error.message);if(!m){let e=this[ir](d,{},c.error);n||(u=Et(l,this,L(this,H,`f`).getMiddleware(),!0)),u=this[Wn](e,u??l),N(u)&&!n&&(u=u.then(()=>Et(l,this,L(this,H,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof P)L(this,X,`f`).fail(e.message,e);else throw e}return this[er](u??l,o,!!n,!0)}[ir](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new P(n.message);L(this,Q,`f`).nonOptionCount(a),L(this,Q,`f`).requiredArguments(a,i);let o=!1;L(this,Sn,`f`)&&(o=L(this,Q,`f`).unknownCommands(a)),L(this,xn,`f`)&&!o?L(this,Q,`f`).unknownArguments(a,e,t,!!r):L(this,Cn,`f`)&&L(this,Q,`f`).unknownArguments(a,e,{},!1,!1),L(this,Q,`f`).limitedChoices(a),L(this,Q,`f`).implications(a),L(this,Q,`f`).conflicting(a)}}[ar](){I(this,W,!0,`f`)}[or](e){if(typeof e==`string`)L(this,q,`f`).key[e]=!0;else for(let t of e)L(this,q,`f`).key[t]=!0}};function cr(e){return!!e&&typeof e.getInternalMethods==`function`}const lr=Tn(_t),ur=[{command:o(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-DYm1nDLb.mjs`),null),hideCommand:!1},{command:o(`access`,`Access protected applications and services`,()=>import(`./access-Be_7nPz4.mjs`),null),hideCommand:!1},{command:o(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-DXULGfnh.mjs`),null),hideCommand:!1},{command:o(`acm`,`acm`,()=>import(`./acm-Btsz5gzV.mjs`),null),hideCommand:!1},{command:o(`addressing`,`addressing`,()=>import(`./addressing-DBQ5dUBd.mjs`),null),hideCommand:!1},{command:o(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-Df0q-68_.mjs`),null),hideCommand:!1},{command:o(`ai`,`ai`,()=>import(`./ai-CJfI9JI2.mjs`),null),hideCommand:!1},{command:o(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-Dv37OLES.mjs`),null),hideCommand:!1},{command:o(`ai-gateway`,`Proxy, cache, rate-limit, and observe requests to AI providers — OpenAI, Anthropic, Workers AI, and more`,()=>import(`./ai-gateway-BRSUY1QZ.mjs`),null),hideCommand:!1},{command:o(`ai-search`,`Managed search-as-a-service: crawl, index, and query content with AI-powered relevance and chat completions`,()=>import(`./ai-search-Bxv4hDG9.mjs`),null),hideCommand:!1},{command:o(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-ByNRXyJv.mjs`),null),hideCommand:!1},{command:o(`alerting`,`alerting`,()=>import(`./alerting-UkiCzqAq.mjs`),null),hideCommand:!1},{command:o(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-B4Wq2vJx.mjs`),null),hideCommand:!1},{command:o(`analytics-engine`,`analytics-engine`,()=>import(`./analytics-engine-BbwIXL0f.mjs`),null),hideCommand:!1},{command:o(`api-security`,`api-security`,()=>import(`./api-security-B6YETCDG.mjs`),null),hideCommand:!1},{command:o(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-CHSOLyFh.mjs`),null),hideCommand:!1},{command:o(`artifacts`,`artifacts`,()=>import(`./artifacts-1xMBpJLr.mjs`),null),hideCommand:!1},{command:o(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-Cz__6-PH.mjs`),null),hideCommand:!1},{command:o(`basin-catalog`,`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,()=>import(`./basin-catalog-DRVVY1Ff.mjs`),null),hideCommand:!1},{command:o(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-CInp7pBa.mjs`),null),hideCommand:!1},{command:o(`bot-management`,`bot-management`,()=>import(`./bot-management--NcaqMij.mjs`),null),hideCommand:!1},{command:o(`botnet-feed`,`Botnet threat intelligence feeds — IP and ASN-level data on known command-and-control infrastructure`,()=>import(`./botnet-feed-DbPZ3Wzl.mjs`),null),hideCommand:!1},{command:o(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-B3s-8soV.mjs`),null),hideCommand:!1},{command:o(`browser-run`,`browser-run`,()=>import(`./browser-run-B9hyiK7P.mjs`),null),hideCommand:!1},{command:o(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-D0mRyKe3.mjs`),null),hideCommand:!1},{command:o(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-eKHZG4U7.mjs`),null),hideCommand:!1},{command:o(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-BvIdcAtV.mjs`),null),hideCommand:!1},{command:o(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-B-04mm0j.mjs`),null),hideCommand:!1},{command:o(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-BAGybQNM.mjs`),null),hideCommand:!1},{command:o(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-D9iiu7ZU.mjs`),null),hideCommand:!1},{command:o(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-C8ouyC4A.mjs`),null),hideCommand:!1},{command:o(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-Ck9btYy7.mjs`),null),hideCommand:!1},{command:o(`connectors`,`connectors`,()=>import(`./connectors-kGPYvin5.mjs`),null),hideCommand:!1},{command:o(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-DIf9nmcC.mjs`),null),hideCommand:!1},{command:o(`content-scan`,`Malicious uploads detection, scan uploaded content in HTTP requests for malware and malicious payloads`,()=>import(`./content-scan-Cr0i9wJK.mjs`),null),hideCommand:!1},{command:o(`cps`,`cps`,()=>import(`./cps-BHmMKg5Q.mjs`),null),hideCommand:!1},{command:o(`csam-scanner`,`csam-scanner`,()=>import(`./csam-scanner-DGTOi2EL.mjs`),null),hideCommand:!1},{command:o(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-DpLkO9_M.mjs`),null),hideCommand:!1},{command:o(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-beJnRWcQ.mjs`),null),hideCommand:!1},{command:o(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-B1WtaEDH.mjs`),null),hideCommand:!1},{command:o(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-BVXmc-u6.mjs`),null),hideCommand:!1},{command:o(`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-DYQBKGMz.mjs`),null),hideCommand:!1},{command:o(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-DyCPKwXL.mjs`),null),hideCommand:!1},{command:o(`dls`,`dls`,()=>import(`./dls-BXGJug7c.mjs`),null),hideCommand:!1},{command:o(`dns`,`dns`,()=>import(`./dns-Ev7l7p2X.mjs`),null),hideCommand:!1},{command:o(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-CrkTqlYI.mjs`),null),hideCommand:!1},{command:o(`durable-objects`,`Stateful serverless objects with transactional storage, ideal for coordination, sessions, and real-time collaboration`,()=>import(`./durable-objects-ChKP2Y6u.mjs`),null),hideCommand:!1},{command:o(`email-auth`,`email-auth`,()=>import(`./email-auth-B-n1rKim.mjs`),null),hideCommand:!1},{command:o(`email-routing`,`Route incoming email to verified destination addresses or Workers with routing rules, catch-all behavior, and managed DNS records`,()=>import(`./email-routing-Dfs1g7hk.mjs`),null),hideCommand:!1},{command:o(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-B9wpMLHr.mjs`),null),hideCommand:!1},{command:o(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-DUyDi24R.mjs`),null),hideCommand:!1},{command:o(`field-extractors`,`field-extractors`,()=>import(`./field-extractors-B_R4gU51.mjs`),null),hideCommand:!1},{command:o(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-B5_DMZ5c.mjs`),null),hideCommand:!1},{command:o(`flagship`,`flagship`,()=>import(`./flagship-D_jWMrT9.mjs`),null),hideCommand:!1},{command:o(`fraud`,`fraud`,()=>import(`./fraud-BPywqzR5.mjs`),null),hideCommand:!1},{command:o(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-B8SGqWxf.mjs`),null),hideCommand:!1},{command:o(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-C1NL0A-K.mjs`),null),hideCommand:!1},{command:o(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-C1C_n591.mjs`),null),hideCommand:!1},{command:o(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-BWm6OeLJ.mjs`),null),hideCommand:!1},{command:o(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-CU9B4ml9.mjs`),null),hideCommand:!1},{command:o(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-COtK2F9g.mjs`),null),hideCommand:!1},{command:o(`ips`,`ips`,()=>import(`./ips-Dv5eyxgM.mjs`),null),hideCommand:!0},{command:o(`k2`,`Durable, ordered event streams that you produce records to and consume from with subscriptions`,()=>import(`./k2-CdhxgeiI.mjs`),null),hideCommand:!1},{command:o(`kv`,`kv`,()=>import(`./kv-gNSTaGhd.mjs`),null),hideCommand:!1},{command:o(`leaked-credential-checks`,`Detect compromised credentials in login requests by checking against known breach databases`,()=>import(`./leaked-credential-checks-B222QFHE.mjs`),null),hideCommand:!1},{command:o(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-CM-4BY5q.mjs`),null),hideCommand:!1},{command:o(`logpush`,`logpush`,()=>import(`./logpush-CmothcrK.mjs`),null),hideCommand:!1},{command:o(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-CnKqBsDl.mjs`),null),hideCommand:!1},{command:o(`magic-network-monitoring`,`Flow-based network traffic monitoring with configurable alerting rules and VPC flow ingestion`,()=>import(`./magic-network-monitoring-BEdRTgMa.mjs`),null),hideCommand:!0},{command:o(`magic-transit`,`DDoS-protected network transit — GRE/IPsec tunnels, static routes, Magic WAN sites, connectors, and packet captures`,()=>import(`./magic-transit-CXjc5Yo4.mjs`),null),hideCommand:!1},{command:o(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-BuOxTHAO.mjs`),null),hideCommand:!1},{command:o(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-BlqW4xkh.mjs`),null),hideCommand:!1},{command:o(`mcp`,`Manage MCP portals and upstream MCP servers for Cloudflare Access AI controls`,()=>import(`./mcp-ubFVHsP4.mjs`),null),hideCommand:!1},{command:o(`mesh`,`mesh`,()=>import(`./mesh-DQS7KfDF.mjs`),null),hideCommand:!1},{command:o(`monetization`,`monetization`,()=>import(`./monetization-CagZDoKh.mjs`),null),hideCommand:!1},{command:o(`network`,`network`,()=>import(`./network-BB35dF4N.mjs`),null),hideCommand:!1},{command:o(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-Dy4m1jMu.mjs`),null),hideCommand:!1},{command:o(`o11y`,`o11y`,()=>import(`./o11y-Dmll3yib.mjs`),null),hideCommand:!1},{command:o(`observability`,`observability`,()=>import(`./observability-rtMYSCht.mjs`),null),hideCommand:!1},{command:o(`ohttp-gateway`,`ohttp-gateway`,()=>import(`./ohttp-gateway-BM3nsC92.mjs`),null),hideCommand:!1},{command:o(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-Xus5102w.mjs`),null),hideCommand:!1},{command:o(`page-rules`,`page-rules`,()=>import(`./page-rules-BKoA5eaf.mjs`),null),hideCommand:!1},{command:o(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-CLhvyehs.mjs`),null),hideCommand:!1},{command:o(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-BLjKJl62.mjs`),null),hideCommand:!1},{command:o(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-FbddmVNv.mjs`),null),hideCommand:!1},{command:o(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-BsJkvK-K.mjs`),null),hideCommand:!1},{command:o(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-oLj-WPJH.mjs`),null),hideCommand:!1},{command:o(`previews`,`Manage Worker Previews`,()=>import(`./previews-BRPPf7UU.mjs`),null),hideCommand:!1},{command:o(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-DAnbmO-t.mjs`),null),hideCommand:!1},{command:o(`r2`,`S3-compatible object storage with zero egress fees — buckets, lifecycle rules, event notifications, and data migration`,()=>import(`./r2-DNN91rtN.mjs`),null),hideCommand:!1},{command:o(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-YWsfV39d.mjs`),null),hideCommand:!1},{command:o(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-CfsgoOsd.mjs`),null),hideCommand:!1},{command:o(`registrar`,`registrar`,()=>import(`./registrar-N1c89kFV.mjs`),null),hideCommand:!1},{command:o(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-D5lsoy-x.mjs`),null),hideCommand:!1},{command:o(`reporting`,`reporting`,()=>import(`./reporting-CI5TLvj4.mjs`),null),hideCommand:!1},{command:o(`request-tracers`,`Trace how a request would be processed through Cloudflare's rules and configuration pipeline`,()=>import(`./request-tracers-DO63p3ou.mjs`),null),hideCommand:!1},{command:o(`resource-sharing`,`Share account-level resources (WAF custom rulesets, Gateway policies and settings, Access IdP federation grants) with other accounts in the same organization`,()=>import(`./resource-sharing-CxdcY5n1.mjs`),null),hideCommand:!1},{command:o(`rules`,`Resources used by Cloudflare rules and rulesets`,()=>import(`./rules-DuuULmp2.mjs`),null),hideCommand:!1},{command:o(`rulesets`,`rulesets`,()=>import(`./rulesets-3_8IWMfL.mjs`),null),hideCommand:!1},{command:o(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-DkfsMJa7.mjs`),null),hideCommand:!0},{command:o(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-DCR6AQp5.mjs`),null),hideCommand:!1},{command:o(`secrets-store`,`Centralized secret management — store API keys, tokens, and credentials for use across Workers and other products`,()=>import(`./secrets-store-C3v0_Us9.mjs`),null),hideCommand:!1},{command:o(`security-insights`,`security-insights`,()=>import(`./security-insights-0el4fk-S.mjs`),null),hideCommand:!1},{command:o(`security-txt`,`Manage the /.well-known/security.txt file that tells security researchers how to report vulnerabilities`,()=>import(`./security-txt-CcsEaOm5.mjs`),null),hideCommand:!1},{command:o(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-BxTEZqtZ.mjs`),null),hideCommand:!1},{command:o(`snippets`,`snippets`,()=>import(`./snippets-CH4PcqCg.mjs`),null),hideCommand:!1},{command:o(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-DconVKYG.mjs`),null),hideCommand:!1},{command:o(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-Euqtk0Vc.mjs`),null),hideCommand:!1},{command:o(`sql`,`sql`,()=>import(`./sql-UNZoawTj.mjs`),null),hideCommand:!1},{command:o(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-CGWF2ZSz.mjs`),null),hideCommand:!1},{command:o(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-B3tkAx82.mjs`),null),hideCommand:!1},{command:o(`tags`,`tags`,()=>import(`./tags-CKnt6RT6.mjs`),null),hideCommand:!1},{command:o(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-BdVLeMsA.mjs`),null),hideCommand:!1},{command:o(`tenants`,`Multi-tenant account management`,()=>import(`./tenants-C8Emd5Ou.mjs`),null),hideCommand:!1},{command:o(`tunnels`,`tunnels`,()=>import(`./tunnels-vUfvvRWt.mjs`),null),hideCommand:!1},{command:o(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-D-6e0ShA.mjs`),null),hideCommand:!1},{command:o(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-Bfj-1zgi.mjs`),null),hideCommand:!1},{command:o(`url-scanner`,`Scan URLs for phishing, malware, and other threats — submit scans and retrieve detailed results`,()=>import(`./url-scanner-CcZzqvrj.mjs`),null),hideCommand:!1},{command:o(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-CYHyVzic.mjs`),null),hideCommand:!1},{command:o(`vectorize`,`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,()=>import(`./vectorize-69UvmqNI.mjs`),null),hideCommand:!1},{command:o(`waiting-rooms`,`Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages`,()=>import(`./waiting-rooms-Dj92gXpa.mjs`),null),hideCommand:!1},{command:o(`web-assets`,`web-assets`,()=>import(`./web-assets-vbQ0MSCd.mjs`),null),hideCommand:!1},{command:o(`web3`,`web3`,()=>import(`./web3-0Sz4gIto.mjs`),null),hideCommand:!0},{command:o(`workers`,`Deploy and manage serverless JavaScript/WASM applications on Cloudflare's global network`,()=>import(`./workers-BQM8pUYu.mjs`),null),hideCommand:!1},{command:o(`workers-for-platforms`,`Workers for Platforms uses dispatch namespaces to isolate and route requests to many individual user Workers, letting platforms run untrusted customer or AI-generated code at scale with per-tenant bindings, limits, and observability`,()=>import(`./workers-for-platforms-BfXIqCm4.mjs`),null),hideCommand:!1},{command:o(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-CR3tfj4I.mjs`),null),hideCommand:!1},{command:o(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-DpQgBIHz.mjs`),null),hideCommand:!1},{command:o(`zaraz`,`Server-side tag manager — load third-party tools (analytics, pixels, etc.) from Cloudflare's edge without client-side JS`,()=>import(`./zaraz-BPOBM0-W.mjs`),null),hideCommand:!1},{command:o(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-Cridhy7G.mjs`),null),hideCommand:!1},{command:o(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-BIKClc2S.mjs`),null),hideCommand:!1}];function dr(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=s(import.meta.url,`schemas.json`,dr);return!n||!Object.hasOwn(n.schemas,t)?e:`${e}\n\n${c.italic(`To inspect the exact API request, run ${c.code(`cf schema ${t}`)}`)}`}const pr=[{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:`whoami`,describe:!1,dir:`whoami`},{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 [directory]`,describe:`Deploy a Worker, static site, or full-stack application 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 mr(){return pr.filter(e=>e.kind===`root`)}function hr(e){return e.command.split(/\s+/)[0]??e.command}const gr={auth:{load:()=>import(`./auth-CrBQca61.mjs`),telemetry:{command:`auth`,recordArgs:!1}},login:{load:()=>import(`./login-bHCEjxRS.mjs`),telemetry:null},whoami:{load:()=>import(`./whoami-wYc70ks4.mjs`),telemetry:null},build:{load:()=>import(`./build-Bd56lS7c.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},completions:{load:()=>import(`./completions-CdlqoV7q.mjs`),telemetry:null},deploy:{load:()=>import(`./deploy-DEq6UKzb.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`,`provision`]}}},dev:{load:()=>import(`./dev-DIguZvJE.mjs`),telemetry:{command:`dev`,recordArgs:!1}},init:{load:()=>import(`./init-DJGas0DL.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},migrate:{load:()=>import(`./migrate-fY24KHV_.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},docs:{load:()=>import(`./docs-Dx9n33S3.mjs`),telemetry:{command:`docs`,recordArgs:!1}},cli:{load:()=>import(`./cli-hFt2ZEED.mjs`),telemetry:{command:`cli`,recordArgs:!1}},schema:{load:()=>import(`./schema-BX822YfT.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},tools:{load:()=>import(`./tools-aVtEAIvu.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}}};function _r(){return mr().map(e=>({...e,...gr[e.dir]}))}function vr(e,t){let n=t.alias;return[e,...Array.isArray(n)?n:n===void 0?[]:[n]]}function yr(e){return e.length===1?`-${e}`:`--${e}`}const br=new Set(g),xr=Object.entries({...h,..._}).filter(([,e])=>!e.hidden).map(([e,t])=>` ${vr(e,t).sort((e,t)=>e.length-t.length).map(yr).join(`, `)}`).join(`
119
119
  `);function Sr(e,t){return Object.entries(h).some(([n,r])=>r.type===`boolean`&&t!==`true`&&t!==`false`?!1:vr(n,r).some(t=>e===yr(t)))}const Cr=_r().map(e=>v(o(e.command,e.describe,e.load,e.telemetry),e.dryRun)),wr=new Set(mr().map(hr));function Tr(e){return l().isAgentic?`=== STOP: AGENT COMMAND DISCOVERY ===
120
120
  AGENTS: Do not explore commands by chaining nested --help calls.
121
121
  Your first port of call and the best way to discover commands is:
@@ -127,7 +127,7 @@ Run \`<discovered command> --help\` for detailed command help.
127
127
  For API request details, replace the result's leading \`cf\` with \`cf schema\`.
128
128
  For Cloudflare documentation, guides, and examples, use cf docs search "<question>".
129
129
  It returns ranked JSON results. Fetch a result's URL with Accept: text/markdown to read the full page.
130
- === END AGENT COMMAND DISCOVERY ===\n${e}`:e}function Er(e,t){return Tr(fr(e,t))}async function Dr(e=!1){if(!process.stderr.isTTY||e||u(process.argv.slice(2))||Ar()===`complete`)return;let{isCI:t}=await import(`./interactive-CHcvofEp.mjs`);if(t)return;let{readState:n,updateState:r}=await import(`./state-xUh3Z77T.mjs`);if(n().completions?.prompted)return;r({completions:{prompted:!0}});let{log:i}=await import(`./log-DBAHla_W.mjs`);i.info(`Tip: run ${c.code(`cf complete <bash|zsh|fish|powershell>`)} to install shell completions.`)}let Or;function kr(){return Or??=import(`./telemetry-CtQWhsmy.mjs`),Or}function Ar(e=process.argv.slice(2)){return jr(e,1)[0]}function jr(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;Sr(t,e[r+1])?r++:t.startsWith(`-`)||n.push(t)}return n}async function Mr(e=!1){if(!process.stderr.isTTY)return;let t=process.argv.slice(2);if(e||u(t)||t.includes(`--help`)||t.includes(`-h`)||Ur(jr(t).join(` `)))return;let{getBannerLastShown:n,getTelemetryDispatcher:r,setBannerLastShown:i}=await kr();if(!r().enabled||n()===C)return;let{log:a}=await import(`./log-DBAHla_W.mjs`);a.info(`Cloudflare collects anonymous cf usage telemetry. Run ${c.code(`cf cli telemetry disable`)} to opt out.`),i(C)}async function Nr(){try{await Promise.race([x(),ie(1e3,void 0,{ref:!1})])}catch{}}const Pr=/^Unknown commands?: /,Fr=/^Did you mean (.+)\?$/,Ir=`You need to specify a command`;function Lr(e){return e instanceof Error&&e.message.startsWith(`Unknown command:`)}function Rr(e,t){let n=Fr.exec(t)?.[1],r;if(n!==void 0)r=`suggested-command`;else if(Pr.test(t))r=`unknown-subcommand`;else if(t===Ir)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 zr(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 Br(e){let t=e,n=t.parsed;if(!n||n.argv.help!==!0)return[];let{commands:r,fullCommands:i}=t.getInternalMethods().getContext();if(!Array.isArray(r)||!Array.isArray(i))return[];let a=i.at(-1),o=typeof a==`string`?a.match(/(?:<[^>]+>|\[[^\]]+\])/g)??[]:[];return o.some(e=>e.slice(1,-1).endsWith(`..`))?[]:n.argv._.slice(r.length+o.length).map(String)}var Vr=class extends Error{helpCommand;constructor(e,t){super(e),this.helpCommand=t}};function Hr(e){return`cf${e?` ${e}`:``} --help`}function Ur(e){let[t,n]=e.split(` `);return t===`complete`||t===`cli`&&n===`telemetry`}function Wr(e){let[t,...n]=e.unknownTokens,r=e.suggestedCommand??t;return[...e.knownCommand,...r===void 0?[]:[r],...n].join(` `).toLowerCase()}async function Gr(e,t,n){if(re()||e instanceof d)return;let r=Lr(e)||n?.knownCommand.length===0,i=r?void 0:t;if(!(i===void 0&&!r||Ur(i??jr().join(` `))||n!==void 0&&Ur(Wr(n))))try{let{getTelemetryDispatcher:t,UNKNOWN_COMMAND_EVENT:r}=await kr(),{sanitizeError:a}=await import(`./error-sanitization-D069tpKk.mjs`),o=t();if(!o.enabled)return;let s=n?await Kr(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 Kr(e){let{loadCommandVocabulary:t,sanitizeCommandResolution:n}=await import(`./command-resolution-DAQ4PWUt.mjs`);return n(e,st(process.argv),t(Object.keys(h)))}async function qr(e){if(e&&!Ur(e))try{let{getTelemetryDispatcher:t}=await kr();t().sendAdhocEvent(`cf help shown`,{command:e})}catch{}}function Jr(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:(ne(C,{quiet:u(r),update:e}),console.log(C),!0)}function Yr(e){if(process.argv.slice(2).length>0)return!1;let t=[S(C,e),``,`The Cloudflare CLI — manage your account, zones, and developer platform.`,``,`${c.bold(`Get started:`)}`,` ${c.code(`cf auth login`)} ${c.muted(`Authenticate with Cloudflare`)}`,` ${c.code(`cf --help`)} ${c.muted(`Browse all commands`)}`,` ${c.code(`cf <command> --help`)} ${c.muted(`Per-command help`)}`,` ${c.code(`cf migrate`)} ${c.muted(`Migrate a Wrangler project to cf`)}`,` ${c.code(`cf complete bash`)} ${c.muted(`Install shell completions`)}`,``,`${c.bold(`Docs:`)} ${c.brand(`https://developers.cloudflare.com/`)}`,``];return console.log(t.join(`
131
- `)),!0}function Xr(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`)||Ar(i)!==`complete`&&ne(C,{quiet:e||u(i),update:t}))}async function Zr(){let e=process.argv.slice(2);if(u(e)||Ar(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-0kpbTLvy.mjs`),i=!1;return{notice:n(C),start(){i||(i=!0,r())}}}function Qr(e,t={}){let{onCommandResolved:n,onCommandResolutionFailed:r,onHelpShown:i,updateCheck:a}=t,o,s=e=>c.brand(e),l=e.indexOf(`--`),u=(l===-1?e:e.slice(0,l)).some(e=>e===`--local`||e===`--no-local`||e.startsWith(`--local=`)),d=lr(e).scriptName(`cf`).parserConfiguration({"sort-commands":!0}).wrap(process.stdout.columns||80).usage(`$0 <command> [options]`).usage(`
132
- The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":s(`Commands`),"Options:":s(`Options`),"Positionals:":s(`Positionals`),"Examples:":s(`Examples`)}).help(`help`,_.help.description).alias(_.help.alias,`help`).options(h).group([...Object.keys(h),...Object.keys(_)],s(`Global flags`));for(let e of Cr)d.command(e);for(let e of ur)e.hideCommand?d.command({...e.command,describe:!1}):d.command(e.command);d.middleware(async e=>{Xr(e.quiet,a?.notice),a?.start();let t=zr(d);t!==void 0&&n?.(t);try{await Mr(e.quiet)}catch{}try{await Dr(e.quiet)}catch{}y(e.mode);let r=String(e._[0]??``),i=e.persistTo??e[`persist-to`];if(!e.help&&(r===`dev`&&u||e.local&&wr.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 s=e[`event-code`];if(s!==void 0&&!e[`temporary-account`])throw Error(`--event-code requires --temporary-account.`);if(t!==void 0&&f(t,e.local)&&(o=await p(e)),!e.local){let{resolveProfile:t,setTemporaryAccountRequested:n}=await import(`./oauth-CQRlNgt5.mjs`);n(e[`temporary-account`],s===void 0?void 0:{eventCode:s});let r=t(e.profile);te(r)}}).demandCommand(1,`You need to specify a command`).strictCommands().strictOptions().recommendCommands().version(`version`,_.version.description,C).alias(_.version.alias,`version`).epilogue(`For more information, visit https://developers.cloudflare.com/`).exitProcess(!1).fail((e,t,o)=>{Xr(!1,a?.notice),a?.start();let s=zr(d);if(s!==void 0&&n?.(s),t)throw t;if(e===`You need to specify a command`&&d.parsed&&Object.keys(d.parsed.argv).some(e=>e!==`_`&&e!==`$0`&&!br.has(e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`))))return;let c=Fr.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=new Vr(e,Hr(s)),u=Rr(d,e)??(s===void 0&&/^Unknown arguments?:/.test(e)?Rr(d,Ir):void 0);throw u&&r?.(u,l),l});let m=d.showHelp.bind(d);d.showHelp=e=>{let t=typeof e==`function`?Br(d):[];if(t.length>0){let e=new Vr(`Unknown command: ${t[0]}`,Hr(zr(d))),n=Rr(d,e.message);throw n&&r?.({...n,unknownTokens:t},e),e}return m(t=>{let r=zr(d);r!==void 0&&n?.(r),i?.(r??`cf`);let a=Er(t,r);typeof e==`function`?e(a):e===`log`?console.log(a):console.error(a)})};let g=d.getHelp.bind(d);return d.getHelp=async()=>Er(await g(),zr(d)),{cli:d,dispose:()=>{o?.(),o=void 0}}}async function $r(e){let t=process.argv;process.argv=[`node`,`cf`,...e];try{await ei()}finally{process.argv=t}}async function ei(){y(void 0),b();let e=await Zr();if(Jr(e?.notice)||Yr(e?.notice))throw e?.start(),new d(0);let t,n,r,{cli:i,dispose:a}=Qr(st(process.argv),{onCommandResolved:e=>{t=e},onCommandResolutionFailed:(e,t)=>{n={failure:e,error:t}},onHelpShown:e=>{r=e},updateCheck:e}),o=st(process.argv),s=o.indexOf(`--`),l=s===-1?o:o.slice(0,s);if(l.includes(`--help`)||l.includes(`-h`)){Xr(!1,e?.notice),e?.start();try{await Dr()}catch{}}try{await i.parse(st(process.argv)),await qr(r)}catch(e){if(e instanceof d)throw e;if(t===void 0){try{await Mr()}catch{}try{await Dr()}catch{}}let r=n!==void 0&&n.error===e?n.failure:void 0;await Gr(e,t??zr(i),r);let a=m(e);throw e instanceof Vr&&(e.helpCommand===`cf --help`&&/^Unknown arguments?:/.test(e.message)&&console.error(`\nGlobal flags:\n${xr}`),console.error(`
130
+ === END AGENT COMMAND DISCOVERY ===\n${e}`:e}function Er(e,t){return Tr(fr(e,t))}async function Dr(e=!1){if(!process.stderr.isTTY||e||u(process.argv.slice(2))||Ar()===`complete`)return;let{isCI:t}=await import(`./interactive-CHcvofEp.mjs`);if(t)return;let{readState:n,updateState:r}=await import(`./state-V1KLVkd6.mjs`);if(n().completions?.prompted)return;r({completions:{prompted:!0}});let{log:i}=await import(`./log-DBAHla_W.mjs`);i.info(`Tip: run ${c.code(`cf complete <bash|zsh|fish|powershell>`)} to install shell completions.`)}let Or;function kr(){return Or??=import(`./telemetry-COJrOM3V.mjs`),Or}function Ar(e=process.argv.slice(2)){return jr(e,1)[0]}function jr(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;Sr(t,e[r+1])?r++:t.startsWith(`-`)||n.push(t)}return n}async function Mr(e=!1){if(!process.stderr.isTTY)return;let t=process.argv.slice(2);if(e||u(t)||t.includes(`--help`)||t.includes(`-h`)||Ur(jr(t).join(` `)))return;let{getBannerLastShown:n,getTelemetryDispatcher:r,setBannerLastShown:i}=await kr();if(!r().enabled||n()===C)return;let{log:a}=await import(`./log-DBAHla_W.mjs`);a.info(`Cloudflare collects anonymous cf usage telemetry. Run ${c.code(`cf cli telemetry disable`)} to opt out.`),i(C)}async function Nr(){try{await Promise.race([x(),ie(1e3,void 0,{ref:!1})])}catch{}}const Pr=/^Unknown commands?: /,Fr=/^Did you mean (.+)\?$/,Ir=`You need to specify a command`;function Lr(e){return e instanceof Error&&e.message.startsWith(`Unknown command:`)}function Rr(e,t){let n=Fr.exec(t)?.[1],r;if(n!==void 0)r=`suggested-command`;else if(Pr.test(t))r=`unknown-subcommand`;else if(t===Ir)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 zr(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 Br(e){let t=e,n=t.parsed;if(!n||n.argv.help!==!0)return[];let{commands:r,fullCommands:i}=t.getInternalMethods().getContext();if(!Array.isArray(r)||!Array.isArray(i))return[];let a=i.at(-1),o=typeof a==`string`?a.match(/(?:<[^>]+>|\[[^\]]+\])/g)??[]:[];return o.some(e=>e.slice(1,-1).endsWith(`..`))?[]:n.argv._.slice(r.length+o.length).map(String)}var Vr=class extends Error{helpCommand;constructor(e,t){super(e),this.helpCommand=t}};function Hr(e){return`cf${e?` ${e}`:``} --help`}function Ur(e){let[t,n]=e.split(` `);return t===`complete`||t===`cli`&&n===`telemetry`}function Wr(e){let[t,...n]=e.unknownTokens,r=e.suggestedCommand??t;return[...e.knownCommand,...r===void 0?[]:[r],...n].join(` `).toLowerCase()}async function Gr(e,t,n){if(re()||e instanceof d)return;let r=Lr(e)||n?.knownCommand.length===0,i=r?void 0:t;if(!(i===void 0&&!r||Ur(i??jr().join(` `))||n!==void 0&&Ur(Wr(n))))try{let{getTelemetryDispatcher:t,UNKNOWN_COMMAND_EVENT:r}=await kr(),{sanitizeError:a}=await import(`./error-sanitization-D069tpKk.mjs`),o=t();if(!o.enabled)return;let s=n?await Kr(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 Kr(e){let{loadCommandVocabulary:t,sanitizeCommandResolution:n}=await import(`./command-resolution-DAQ4PWUt.mjs`);return n(e,st(process.argv),t(Object.keys(h)))}async function qr(e){if(e&&!Ur(e))try{let{getTelemetryDispatcher:t}=await kr();t().sendAdhocEvent(`cf help shown`,{command:e})}catch{}}function Jr(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:(ne(C,{quiet:u(r),update:e}),console.log(C),!0)}function Yr(e){if(process.argv.slice(2).length>0)return!1;let t=[S(C,e),``,`The Cloudflare CLI — manage your account, zones, and developer platform.`,``,`${c.bold(`Get started:`)}`,` ${c.code(`cf auth login`)} ${c.muted(`Authenticate with Cloudflare`)}`,` ${c.code(`cf --help`)} ${c.muted(`Browse all commands`)}`,` ${c.code(`cf <command> --help`)} ${c.muted(`Per-command help`)}`,` ${c.code(`cf migrate`)} ${c.muted(`Migrate a Wrangler project to cf`)}`,` ${c.code(`cf complete bash`)} ${c.muted(`Install shell completions`)}`,``,`${c.bold(`Docs:`)} ${c.brand(`https://developers.cloudflare.com/`)}`,``];return console.log(t.join(`
131
+ `)),!0}function Xr(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`)||Ar(i)!==`complete`&&ne(C,{quiet:e||u(i),update:t}))}async function Zr(){let e=process.argv.slice(2);if(u(e)||Ar(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-BW_N6gX4.mjs`),i=!1;return{notice:n(C),start(){i||(i=!0,r())}}}function Qr(e,t={}){let{onCommandResolved:n,onCommandResolutionFailed:r,onHelpShown:i,updateCheck:a}=t,o,s=e=>c.brand(e),l=e.indexOf(`--`),u=(l===-1?e:e.slice(0,l)).some(e=>e===`--local`||e===`--no-local`||e.startsWith(`--local=`)),d=lr(e).scriptName(`cf`).parserConfiguration({"sort-commands":!0}).wrap(process.stdout.columns||80).usage(`$0 <command> [options]`).usage(`
132
+ The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":s(`Commands`),"Options:":s(`Options`),"Positionals:":s(`Positionals`),"Examples:":s(`Examples`)}).help(`help`,_.help.description).alias(_.help.alias,`help`).options(h).group([...Object.keys(h),...Object.keys(_)],s(`Global flags`));for(let e of Cr)d.command(e);for(let e of ur)e.hideCommand?d.command({...e.command,describe:!1}):d.command(e.command);d.middleware(async e=>{Xr(e.quiet,a?.notice),a?.start();let t=zr(d);t!==void 0&&n?.(t);try{await Mr(e.quiet)}catch{}try{await Dr(e.quiet)}catch{}y(e.mode);let r=String(e._[0]??``),i=e.persistTo??e[`persist-to`];if(!e.help&&(r===`dev`&&u||e.local&&wr.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 s=e[`event-code`];if(s!==void 0&&!e[`temporary-account`])throw Error(`--event-code requires --temporary-account.`);if(t!==void 0&&f(t,e.local)&&(o=await p(e)),!e.local){let{resolveProfile:t,setTemporaryAccountRequested:n}=await import(`./oauth-Dv7Wucj6.mjs`);n(e[`temporary-account`],s===void 0?void 0:{eventCode:s});let r=t(e.profile);te(r)}}).demandCommand(1,`You need to specify a command`).strictCommands().strictOptions().recommendCommands().version(`version`,_.version.description,C).alias(_.version.alias,`version`).epilogue(`For more information, visit https://developers.cloudflare.com/`).exitProcess(!1).fail((e,t,o)=>{Xr(!1,a?.notice),a?.start();let s=zr(d);if(s!==void 0&&n?.(s),t)throw t;if(e===`You need to specify a command`&&d.parsed&&Object.keys(d.parsed.argv).some(e=>e!==`_`&&e!==`$0`&&!br.has(e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`))))return;let c=Fr.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=new Vr(e,Hr(s)),u=Rr(d,e)??(s===void 0&&/^Unknown arguments?:/.test(e)?Rr(d,Ir):void 0);throw u&&r?.(u,l),l});let m=d.showHelp.bind(d);d.showHelp=e=>{let t=typeof e==`function`?Br(d):[];if(t.length>0){let e=new Vr(`Unknown command: ${t[0]}`,Hr(zr(d))),n=Rr(d,e.message);throw n&&r?.({...n,unknownTokens:t},e),e}return m(t=>{let r=zr(d);r!==void 0&&n?.(r),i?.(r??`cf`);let a=Er(t,r);typeof e==`function`?e(a):e===`log`?console.log(a):console.error(a)})};let g=d.getHelp.bind(d);return d.getHelp=async()=>Er(await g(),zr(d)),{cli:d,dispose:()=>{o?.(),o=void 0}}}async function $r(e){let t=process.argv;process.argv=[`node`,`cf`,...e];try{await ei()}finally{process.argv=t}}async function ei(){y(void 0),b();let e=await Zr();if(Jr(e?.notice)||Yr(e?.notice))throw e?.start(),new d(0);let t,n,r,{cli:i,dispose:a}=Qr(st(process.argv),{onCommandResolved:e=>{t=e},onCommandResolutionFailed:(e,t)=>{n={failure:e,error:t}},onHelpShown:e=>{r=e},updateCheck:e}),o=st(process.argv),s=o.indexOf(`--`),l=s===-1?o:o.slice(0,s);if(l.includes(`--help`)||l.includes(`-h`)){Xr(!1,e?.notice),e?.start();try{await Dr()}catch{}}try{await i.parse(st(process.argv)),await qr(r)}catch(e){if(e instanceof d)throw e;if(t===void 0){try{await Mr()}catch{}try{await Dr()}catch{}}let r=n!==void 0&&n.error===e?n.failure:void 0;await Gr(e,t??zr(i),r);let a=m(e);throw e instanceof Vr&&(e.helpCommand===`cf --help`&&/^Unknown arguments?:/.test(e.message)&&console.error(`\nGlobal flags:\n${xr}`),console.error(`
133
133
  `+c.italic(`For more information, run ${c.code(e.helpCommand)}`))),a}finally{a(),await ee(),await Nr()}}export{ei as n,$r as r,Qr as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-cj71dGxS.mjs";import{o as n,r,t as i}from"./body-parser-HN91kAf0.mjs";import{a,i as o,t as s}from"./context-DlFhI9cN.mjs";import{t as c}from"./dry-run-mrA7FFLR.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{t as u}from"./output-PRKYaJuo.mjs";import{t as d}from"./run-DAg7dfIW.mjs";import{t as f}from"./progress-AML-AVs4.mjs";import"./telemetry-DDs3zhdw.mjs";import{a as p,i as m,n as h}from"./prompt-Bnon9lfK.mjs";import{t as g}from"./local-B3zt9PXR.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-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CRq9OQKr.mjs";import{o as n,r,t as i}from"./body-parser-HN91kAf0.mjs";import{a,i as o,t as s}from"./context-DsVjrTbe.mjs";import{t as c}from"./dry-run-mrA7FFLR.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{t as u}from"./output-PRKYaJuo.mjs";import{t as d}from"./run-DAK_kbUa.mjs";import{t as f}from"./progress-DItBn6ZV.mjs";import"./telemetry-B3S5OfOn.mjs";import{a as p,i as m,n as h}from"./prompt-BGz3DNLz.mjs";import{t as g}from"./local-B3zt9PXR.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=>l(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=>d({command:`ssl analyze create`,classification:{safeFlags:[`bundle-method`,`dry-run`]}},e,async()=>{if(e.dryRun){c({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?i({bundle_method:e[`bundle-method`],certificate:l(e.certificate,`certificate`,`text`)}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),a=await t(e),s=await o({zone:e.zone},a,{quiet:e.quiet});if(e.zoneId=s,e.body!==void 0){let e=n,t=await f(`Creating`,async()=>a.send(_,{body:e,zone_id:s}));u(t,{successLabel:`Created`});return}let d=i({bundle_method:e[`bundle-method`],certificate:l(e.certificate,`certificate`,`text`)}),p=await f(`Creating`,async()=>a.send(_,{body:d,zone_id:s}));u(p,{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=>d({command:`ssl auto-origin-tls-kex edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){c({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?i({enabled:e.enabled}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),a=await t(e),s=await o({zone:e.zone},a,{quiet:e.quiet});if(e.zoneId=s,e.body!==void 0){let e=n,t=await f(`Updating`,async()=>a.send(y,{body:e,zone_id:s}));u(t,{successLabel:`Updated`});return}if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let l=i({enabled:e.enabled}),d=await f(`Updating`,async()=>a.send(y,{body:l,zone_id:s}));u(d,{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
 
@@ -60,9 +60,9 @@ Removes a Keyless SSL configuration. SSL connections will no longer use the keyl
60
60
 
61
61
  This will update attributes of a Keyless SSL. Consists of one or more of the following: host,name,port.`).positional(`keyless-certificate-id`,{type:`string`,description:`Keyless certificate identifier tag.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`Whether or not the Keyless SSL is on or off.`}).option(`host`,{type:`string`,description:`The keyless SSL name.`}).option(`name`,{type:`string`,description:`The keyless SSL name.`}).option(`port`,{type:`number`,description:`The keyless SSL port used to communicate between Cloudflare and the client's Keyless SSL server.`}).option(`tunnel-private-ip`,{type:`string`,description:`Private IP of the Key Server Host.`}).option(`tunnel-vnet-id`,{type:`string`,description:`Cloudflare Tunnel Virtual Network ID.`}).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)`}).check(e=>{let t=[`tunnel-private-ip`,`tunnel-vnet-id`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`tunnel-private-ip`,`tunnel-vnet-id`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --tunnel-* flag is set`)}return!0})}const yt={command:`edit <keyless-certificate-id>`,describe:`Edit Keyless SSL Configuration`,builder:vt,handler:async e=>d({command:`ssl keyless-certificates edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf ssl keyless-certificates edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates/${e[`keyless-certificate-id`]==null?`<keyless-certificate-id>`:encodeURIComponent(String(e[`keyless-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"keyless-certificate-id":String(e[`keyless-certificate-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({enabled:e.enabled,host:l(e.host,`host`,`text`),name:l(e.name,`name`,`text`),port:e.port,tunnel:{private_ip:l(e[`tunnel-private-ip`],`tunnel-private-ip`,`text`),vnet_id:l(e[`tunnel-vnet-id`],`tunnel-vnet-id`,`text`)}}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),a=await t(e),s=await o({zone:e.zone},a,{quiet:e.quiet});if(e.zoneId=s,e.body!==void 0){let t=n,r=await f(`Updating`,async()=>a.send(W,{body:t,zone_id:s,keyless_certificate_id:e[`keyless-certificate-id`]}));u(r,{successLabel:`Updated`});return}let d=i({enabled:e.enabled,host:l(e.host,`host`,`text`),name:l(e.name,`name`,`text`),port:e.port,tunnel:{private_ip:l(e[`tunnel-private-ip`],`tunnel-private-ip`,`text`),vnet_id:l(e[`tunnel-vnet-id`],`tunnel-vnet-id`,`text`)}}),p=await f(`Updating`,async()=>a.send(W,{body:d,zone_id:s,keyless_certificate_id:e[`keyless-certificate-id`]}));u(p,{successLabel:`Updated`})})};var bt={method:`GET`,path:t=>e`/zones/${t.zone_id}/keyless_certificates/${t.keyless_certificate_id}`};function xt(e){return e.usage(`$0 ssl keyless-certificates get <keyless-certificate-id>
62
62
 
63
- Get details for one Keyless SSL configuration.`).positional(`keyless-certificate-id`,{type:`string`,description:`Keyless certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const St={command:`get <keyless-certificate-id>`,describe:`Get Keyless SSL Configuration`,builder:xt,handler:async e=>d({command:`ssl keyless-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf ssl keyless-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates/${e[`keyless-certificate-id`]==null?`<keyless-certificate-id>`:encodeURIComponent(String(e[`keyless-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"keyless-certificate-id":String(e[`keyless-certificate-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r;let i=await f(`Loading`,async()=>n.send(bt,{zone_id:r,keyless_certificate_id:e[`keyless-certificate-id`]}));u(i,{successLabel:`Loaded`})})};var Ct={method:`GET`,path:t=>e`/zones/${t.zone_id}/keyless_certificates`};function wt(e){return e.usage(`$0 ssl keyless-certificates list
63
+ Get details for one Keyless SSL configuration.`).positional(`keyless-certificate-id`,{type:`string`,description:`Keyless certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const St={command:`get <keyless-certificate-id>`,describe:`Get Keyless SSL Configuration`,builder:xt,handler:async e=>d({command:`ssl keyless-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf ssl keyless-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates/${e[`keyless-certificate-id`]==null?`<keyless-certificate-id>`:encodeURIComponent(String(e[`keyless-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"keyless-certificate-id":String(e[`keyless-certificate-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r;let i=await f(`Loading`,async()=>n.send(bt,{zone_id:r,keyless_certificate_id:e[`keyless-certificate-id`]}));u(i,{successLabel:`Loaded`})})};var Ct={method:`GET`,path:t=>e`/zones/${t.zone_id}/keyless_certificates`,query:[`page`,`per_page`]};function wt(e){return e.usage(`$0 ssl keyless-certificates list
64
64
 
65
- List all Keyless SSL configurations for a given zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Tt={command:`list`,describe:`List Keyless SSL Configurations`,builder:wt,handler:async e=>d({command:`ssl keyless-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf ssl keyless-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r;let i=await f(`Loading`,async()=>n.send(Ct,{zone_id:r}));u(i,{successLabel:`Loaded`})})},Et={command:`keyless-certificates`,describe:`Operations for keyless-certificates`,builder:e=>e.command(mt).command(_t).command(yt).command(St).command(Tt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Dt={method:`GET`,path:t=>e`/accounts/${t.account_id}/mtls_certificates/${t.mtls_certificate_id}/associations`};function Ot(e){return e.usage(`$0 ssl mtls-certificates associations list
65
+ List all Keyless SSL configurations for a given zone.`).option(`page`,{type:`number`,description:`Page number of Keyless SSL configurations, starting at 1.`}).option(`per-page`,{type:`number`,description:`Number of Keyless SSL configurations per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Tt={command:`list`,describe:`List Keyless SSL Configurations`,builder:wt,handler:async e=>d({command:`ssl keyless-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){c({command:`cf ssl keyless-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:n,bodyKind:`none`});return}let r=await t(e),i=await o({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i;let a=await f(`Loading`,async()=>r.send(Ct,{zone_id:i,...n}));u(a,{successLabel:`Loaded`})})},Et={command:`keyless-certificates`,describe:`Operations for keyless-certificates`,builder:e=>e.command(mt).command(_t).command(yt).command(St).command(Tt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Dt={method:`GET`,path:t=>e`/accounts/${t.account_id}/mtls_certificates/${t.mtls_certificate_id}/associations`};function Ot(e){return e.usage(`$0 ssl mtls-certificates associations list
66
66
 
67
67
  Lists all active associations between the certificate and Cloudflare services.`).option(`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 kt={command:`list`,describe:`List mTLS certificate associations`,builder:Ot,handler:async e=>d({command:`ssl mtls-certificates associations list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();c({command:`cf ssl mtls-certificates associations list`,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`]))}/associations`,pathParams:{"mtls-certificate-id":String(e[`mtls-certificate-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=e.local?g:await s();e.accountId=r;let i=await f(`Loading`,async()=>n.send(Dt,{account_id:r,mtls_certificate_id:e[`mtls-certificate-id`]}));u(i,{successLabel:`Loaded`})})},At={command:`associations`,describe:`Operations for mtls-certificates.associations`,builder:e=>e.command(kt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`POST`,path:t=>e`/accounts/${t.account_id}/mtls_certificates`,body:`json`};function jt(e){return e.usage(`$0 ssl mtls-certificates create
68
68
 
@@ -70,9 +70,9 @@ Upload a certificate that you want to use with mTLS-enabled Cloudflare services,
70
70
 
71
71
  Deletes the mTLS certificate unless the certificate is in use by one or more Cloudflare services.`).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}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Ft={command:`delete <mtls-certificate-id>`,describe:`Delete mTLS certificate`,builder:Pt,handler:async e=>d({command:`ssl mtls-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();c({command:`cf ssl mtls-certificates delete`,method:`DELETE`,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 n=await t(e),r=e.local?g:await s();if(e.accountId=r,!await h({force:!!e.force}))return;let i=await f(`Deleting`,async()=>n.send(Nt,{account_id:r,mtls_certificate_id:e[`mtls-certificate-id`]}));u(i,{successLabel:`Deleted`})})};var It={method:`GET`,path:t=>e`/accounts/${t.account_id}/mtls_certificates/${t.mtls_certificate_id}`};function Lt(e){return e.usage(`$0 ssl mtls-certificates get <mtls-certificate-id>
72
72
 
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=>d({command:`ssl mtls-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();c({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 n=await t(e),r=e.local?g:await s();e.accountId=r;let i=await f(`Loading`,async()=>n.send(It,{account_id:r,mtls_certificate_id:e[`mtls-certificate-id`]}));u(i,{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
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=>d({command:`ssl mtls-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();c({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 n=await t(e),r=e.local?g:await s();e.accountId=r;let i=await f(`Loading`,async()=>n.send(It,{account_id:r,mtls_certificate_id:e[`mtls-certificate-id`]}));u(i,{successLabel:`Loaded`})})};var zt={method:`GET`,path:t=>e`/accounts/${t.account_id}/mtls_certificates`,query:[`page`,`per_page`,`limit`,`offset`,`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`,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=>d({command:`ssl mtls-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={type:e.type};if(e.dryRun){let e=await a();c({command:`cf ssl mtls-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/mtls_certificates`,pathParams:{},query:n,bodyKind:`none`});return}let r=await t(e),i=e.local?g:await s();e.accountId=i;let o=await f(`Loading`,async()=>r.send(zt,{account_id:i,...n}));u(o,{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\n\nCreate an Origin CA certificate. For `keyless-certificate` requests, `zone_id` is required and the response contains only `id`, `certificate`, and `expires_on`. 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=>l(e,`request-type`,`text`)).option(`requested-validity`,{type:`number`,description:`The number of days for which the certificate should be valid.`,default:5475}).option(`zone-id`,{type:`string`,description:"Identifier of the zone whose keyless servers the certificate is for. Required when `request_type` is `keyless-certificate`; ignored otherwise."}).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=>d({command:`ssl origin-ca-certificates create`,classification:{safeFlags:[`request-type`,`dry-run`]}},e,async()=>{if(e.dryRun){c({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?i({csr:l(e.csr,`csr`,`text`),hostnames:e.hostnames,request_type:e[`request-type`],requested_validity:e[`requested-validity`],zone_id:l(e[`zone-id`],`zone-id`,`text`)}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),a=await t(e);if(e.body!==void 0){let e=n,t=await f(`Creating`,async()=>a.send(K,{body:e}));u(t,{successLabel:`Created`});return}if(e.csr===void 0&&(e.csr=await p(`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 m(`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 o=i({csr:l(e.csr,`csr`,`text`),hostnames:e.hostnames,request_type:e[`request-type`],requested_validity:e[`requested-validity`],zone_id:l(e[`zone-id`],`zone-id`,`text`)}),s=await f(`Creating`,async()=>a.send(K,{body:o}));u(s,{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>
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(`page`,{type:`number`,description:`Page number, starting at 1. Defaults to 1. Ignored when offset is provided.`}).option(`per-page`,{type:`number`,description:`Number of results per page. Defaults to 50 when neither per_page nor limit is provided. Ignored when limit is provided. Values above 1000 are capped at 1000.`}).option(`limit`,{type:`number`,description:`Alias for per_page. Defaults to 50 when neither per_page nor limit is provided. Takes precedence over per_page. Values above 1000 are capped at 1000.`}).option(`offset`,{type:`number`,description:`Number of results to skip. Defaults to 0. Takes precedence over page, including when offset is 0.`}).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=>d({command:`ssl mtls-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`],limit:e.limit,offset:e.offset,type:e.type};if(e.dryRun){let e=await a();c({command:`cf ssl mtls-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/mtls_certificates`,pathParams:{},query:n,bodyKind:`none`});return}let r=await t(e),i=e.local?g:await s();e.accountId=i;let o=await f(`Loading`,async()=>r.send(zt,{account_id:i,...n}));u(o,{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\n\nCreate an Origin CA certificate. For `keyless-certificate` requests, `zone_id` is required and the response contains only `id`, `certificate`, and `expires_on`. 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=>l(e,`request-type`,`text`)).option(`requested-validity`,{type:`number`,description:`The number of days for which the certificate should be valid.`,default:5475}).option(`zone-id`,{type:`string`,description:"Identifier of the zone whose keyless servers the certificate is for. Required when `request_type` is `keyless-certificate`; ignored otherwise."}).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=>d({command:`ssl origin-ca-certificates create`,classification:{safeFlags:[`request-type`,`dry-run`]}},e,async()=>{if(e.dryRun){c({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?i({csr:l(e.csr,`csr`,`text`),hostnames:e.hostnames,request_type:e[`request-type`],requested_validity:e[`requested-validity`],zone_id:l(e[`zone-id`],`zone-id`,`text`)}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),a=await t(e);if(e.body!==void 0){let e=n,t=await f(`Creating`,async()=>a.send(K,{body:e}));u(t,{successLabel:`Created`});return}if(e.csr===void 0&&(e.csr=await p(`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 m(`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 o=i({csr:l(e.csr,`csr`,`text`),hostnames:e.hostnames,request_type:e[`request-type`],requested_validity:e[`requested-validity`],zone_id:l(e[`zone-id`],`zone-id`,`text`)}),s=await f(`Creating`,async()=>a.send(K,{body:o}));u(s,{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>
76
76
 
77
77
  Revoke an existing Origin CA certificate by its serial number. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).positional(`certificate-id`,{type:`string`,description:`The x509 serial number of the Origin CA certificate.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const qt={command:`delete <certificate-id>`,describe:`Revoke Certificate`,builder:Kt,handler:async e=>d({command:`ssl origin-ca-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf ssl origin-ca-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let n=await t(e);if(!await h({force:!!e.force}))return;let r=await f(`Deleting`,async()=>n.send(Gt,{certificate_id:e[`certificate-id`]}));u(r,{successLabel:`Deleted`})})};var Jt={method:`GET`,path:t=>e`/certificates/${t.certificate_id}`};function Yt(e){return e.usage(`$0 ssl origin-ca-certificates get <certificate-id>
78
78
 
@@ -86,9 +86,9 @@ Upload a certificate to be used for client authentication on a hostname. 10 host
86
86
 
87
87
  Removes a client certificate used for authenticated origin pulls on a specific hostname. Note: Before deleting the certificate, you must first invalidate the hostname for client authentication by sending a PUT request with \`enabled\` set to null. After invalidating the association, the certificate can be safely deleted.`).positional(`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}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const un={command:`delete <certificate-id>`,describe:`Delete Hostname Client Certificate`,builder:ln,handler:async e=>d({command:`ssl origin-tls-client-auth hostname-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf ssl origin-tls-client-auth hostname-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,!await h({force:!!e.force}))return;let i=await f(`Deleting`,async()=>n.send(cn,{zone_id:r,certificate_id:e[`certificate-id`]}));u(i,{successLabel:`Deleted`})})};var dn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames/certificates/${t.certificate_id}`};function fn(e){return e.usage(`$0 ssl origin-tls-client-auth hostname-certificates get <certificate-id>
88
88
 
89
- Get the certificate by ID to be used for client authentication on a hostname.`).positional(`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 pn={command:`get <certificate-id>`,describe:`Get the Hostname Client Certificate`,builder:fn,handler:async e=>d({command:`ssl origin-tls-client-auth hostname-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf ssl origin-tls-client-auth hostname-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r;let i=await f(`Loading`,async()=>n.send(dn,{zone_id:r,certificate_id:e[`certificate-id`]}));u(i,{successLabel:`Loaded`})})};var mn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames/certificates`};function hn(e){return e.usage(`$0 ssl origin-tls-client-auth hostname-certificates list
89
+ Get the certificate by ID to be used for client authentication on a hostname.`).positional(`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 pn={command:`get <certificate-id>`,describe:`Get the Hostname Client Certificate`,builder:fn,handler:async e=>d({command:`ssl origin-tls-client-auth hostname-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf ssl origin-tls-client-auth hostname-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r;let i=await f(`Loading`,async()=>n.send(dn,{zone_id:r,certificate_id:e[`certificate-id`]}));u(i,{successLabel:`Loaded`})})};var mn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames/certificates`,query:[`page`,`per_page`,`limit`,`offset`]};function hn(e){return e.usage(`$0 ssl origin-tls-client-auth hostname-certificates list
90
90
 
91
- Lists all client certificates configured for per-hostname authenticated origin pulls on the zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const gn={command:`list`,describe:`List Certificates`,builder:hn,handler:async e=>d({command:`ssl origin-tls-client-auth hostname-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf ssl origin-tls-client-auth hostname-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r;let i=await f(`Loading`,async()=>n.send(mn,{zone_id:r}));u(i,{successLabel:`Loaded`})})},_n={command:`hostname-certificates`,describe:`Operations for origin-tls-client-auth.hostname-certificates`,builder:e=>e.command(sn).command(un).command(pn).command(gn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var vn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames/${t.hostname}`};function yn(e){return e.usage(`$0 ssl origin-tls-client-auth hostnames get <hostname>
91
+ Lists all client certificates configured for per-hostname authenticated origin pulls on the zone.`).option(`page`,{type:`number`,description:`Page number, starting at 1. Defaults to 1. Ignored when offset is provided.`}).option(`per-page`,{type:`number`,description:`Number of results per page. Defaults to 50 when neither per_page nor limit is provided. Ignored when limit is provided. Values above 1000 are capped at 1000.`}).option(`limit`,{type:`number`,description:`Alias for per_page. Defaults to 50 when neither per_page nor limit is provided. Takes precedence over per_page. Values above 1000 are capped at 1000.`}).option(`offset`,{type:`number`,description:`Number of results to skip. Defaults to 0. Takes precedence over page, including when offset is 0.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const gn={command:`list`,describe:`List Certificates`,builder:hn,handler:async e=>d({command:`ssl origin-tls-client-auth hostname-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`],limit:e.limit,offset:e.offset};if(e.dryRun){c({command:`cf ssl origin-tls-client-auth hostname-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:n,bodyKind:`none`});return}let r=await t(e),i=await o({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i;let a=await f(`Loading`,async()=>r.send(mn,{zone_id:i,...n}));u(a,{successLabel:`Loaded`})})},_n={command:`hostname-certificates`,describe:`Operations for origin-tls-client-auth.hostname-certificates`,builder:e=>e.command(sn).command(un).command(pn).command(gn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var vn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames/${t.hostname}`};function yn(e){return e.usage(`$0 ssl origin-tls-client-auth hostnames get <hostname>
92
92
 
93
93
  Retrieves the client certificate authentication status for a specific hostname, showing whether authenticated origin pulls are enabled.`).positional(`hostname`,{type:`string`,description:`The hostname on the origin for which the client certificate uploaded will be used.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const bn={command:`get <hostname>`,describe:`Get the Hostname Status for Client Authentication`,builder:yn,handler:async e=>d({command:`ssl origin-tls-client-auth hostnames get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf ssl origin-tls-client-auth hostnames get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r;let i=await f(`Loading`,async()=>n.send(vn,{zone_id:r,hostname:e.hostname}));u(i,{successLabel:`Loaded`})})};var J={method:`PUT`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames`,body:`json`};function xn(e){return e.usage(`$0 ssl origin-tls-client-auth hostnames update
94
94
 
@@ -102,9 +102,9 @@ Upload your own certificate you want Cloudflare to use for edge-to-origin commun
102
102
 
103
103
  Removes a client certificate used for zone-level authenticated origin pulls.`).positional(`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}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Pn={command:`delete <certificate-id>`,describe:`Delete Certificate`,builder:Nn,handler:async e=>d({command:`ssl origin-tls-client-auth zone-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf ssl origin-tls-client-auth zone-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,!await h({force:!!e.force}))return;let i=await f(`Deleting`,async()=>n.send(Mn,{zone_id:r,certificate_id:e[`certificate-id`]}));u(i,{successLabel:`Deleted`})})};var Fn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/${t.certificate_id}`};function In(e){return e.usage(`$0 ssl origin-tls-client-auth zone-certificates get <certificate-id>
104
104
 
105
- Retrieves details for a specific client certificate used in zone-level authenticated origin pulls.`).positional(`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 Ln={command:`get <certificate-id>`,describe:`Get Certificate Details`,builder:In,handler:async e=>d({command:`ssl origin-tls-client-auth zone-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf ssl origin-tls-client-auth zone-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r;let i=await f(`Loading`,async()=>n.send(Fn,{zone_id:r,certificate_id:e[`certificate-id`]}));u(i,{successLabel:`Loaded`})})};var Rn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth`};function zn(e){return e.usage(`$0 ssl origin-tls-client-auth zone-certificates list
105
+ Retrieves details for a specific client certificate used in zone-level authenticated origin pulls.`).positional(`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 Ln={command:`get <certificate-id>`,describe:`Get Certificate Details`,builder:In,handler:async e=>d({command:`ssl origin-tls-client-auth zone-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf ssl origin-tls-client-auth zone-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r;let i=await f(`Loading`,async()=>n.send(Fn,{zone_id:r,certificate_id:e[`certificate-id`]}));u(i,{successLabel:`Loaded`})})};var Rn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth`,query:[`page`,`per_page`,`limit`,`offset`]};function zn(e){return e.usage(`$0 ssl origin-tls-client-auth zone-certificates list
106
106
 
107
- Lists all client certificates configured for zone-level authenticated origin pulls.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Bn={command:`list`,describe:`List Certificates`,builder:zn,handler:async e=>d({command:`ssl origin-tls-client-auth zone-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf ssl origin-tls-client-auth zone-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r;let i=await f(`Loading`,async()=>n.send(Rn,{zone_id:r}));u(i,{successLabel:`Loaded`})})},Vn={command:`zone-certificates`,describe:`Operations for origin-tls-client-auth.zone-certificates`,builder:e=>e.command(jn).command(Pn).command(Ln).command(Bn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Hn={command:`origin-tls-client-auth`,describe:`Operations for origin-tls-client-auth`,builder:e=>e.command(an).command(_n).command(Cn).command(kn).command(Vn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`GET`,path:t=>e`/zones/${t.zone_id}/ssl/recommendation`};function Un(e){return e.usage(`$0 ssl recommendations get
107
+ Lists all client certificates configured for zone-level authenticated origin pulls.`).option(`page`,{type:`number`,description:`Page number, starting at 1. Defaults to 1. Ignored when offset is provided.`}).option(`per-page`,{type:`number`,description:`Number of results per page. Defaults to 50 when neither per_page nor limit is provided. Ignored when limit is provided. Values above 1000 are capped at 1000.`}).option(`limit`,{type:`number`,description:`Alias for per_page. Defaults to 50 when neither per_page nor limit is provided. Takes precedence over per_page. Values above 1000 are capped at 1000.`}).option(`offset`,{type:`number`,description:`Number of results to skip. Defaults to 0. Takes precedence over page, including when offset is 0.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Bn={command:`list`,describe:`List Certificates`,builder:zn,handler:async e=>d({command:`ssl origin-tls-client-auth zone-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`],limit:e.limit,offset:e.offset};if(e.dryRun){c({command:`cf ssl origin-tls-client-auth zone-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:n,bodyKind:`none`});return}let r=await t(e),i=await o({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i;let a=await f(`Loading`,async()=>r.send(Rn,{zone_id:i,...n}));u(a,{successLabel:`Loaded`})})},Vn={command:`zone-certificates`,describe:`Operations for origin-tls-client-auth.zone-certificates`,builder:e=>e.command(jn).command(Pn).command(Ln).command(Bn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Hn={command:`origin-tls-client-auth`,describe:`Operations for origin-tls-client-auth`,builder:e=>e.command(an).command(_n).command(Cn).command(kn).command(Vn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`GET`,path:t=>e`/zones/${t.zone_id}/ssl/recommendation`};function Un(e){return e.usage(`$0 ssl recommendations get
108
108
 
109
109
  Retrieve the SSL/TLS Recommender's recommendation for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Wn={command:`get`,describe:`SSL/TLS Recommendation`,builder:Un,handler:async e=>d({command:`ssl recommendations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf ssl recommendations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/recommendation`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r;let i=await f(`Loading`,async()=>n.send(Z,{zone_id:r}));u(i,{successLabel:`Loaded`})})},Gn={command:`recommendations`,describe:`Get the recommended SSL/TLS encryption mode based on your origin server's certificate configuration`,builder:e=>e.command(Wn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Q={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/ssl/universal/settings`,body:`json`};function Kn(e){return e.usage(`$0 ssl universal settings edit
110
110
 
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export{t as analyseBundle}from"./startup-profile-ne34QxOx.mjs";
@@ -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{n as r,o as i}from"./chunk-DSGVRFIS-CeCM3XGQ.mjs";import{N as a}from"./chunk-AAQI36FL-e6E5HW1g.mjs";import{V as o}from"./dist-DwxlJ9Ms.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{n as r,o as i}from"./chunk-DSGVRFIS-L76IWWlr.mjs";import{N as a}from"./chunk-AAQI36FL-e6E5HW1g.mjs";import{V as o}from"./dist-BoDdDWjK.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 */
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{a as e,i as t}from"./cf-QIG83e0V.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-MAiSK--E.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-BFClIYM_.mjs";