cf 1.0.0-beta.31 → 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 (221) hide show
  1. package/dist/_meta/commands.json +1138 -70
  2. package/dist/_meta/schemas.json +1003 -54
  3. package/dist/{abuse-reports-B8vD22yf.mjs → abuse-reports-DYm1nDLb.mjs} +1 -1
  4. package/dist/{access-BkZlZPER.mjs → access-Be_7nPz4.mjs} +1 -1
  5. package/dist/{accounts-CG6_1Bfa.mjs → accounts-DXULGfnh.mjs} +1 -1
  6. package/dist/{acm-B5VvmBfE.mjs → acm-Btsz5gzV.mjs} +1 -1
  7. package/dist/{addressing-Db9Z1P-r.mjs → addressing-DBQ5dUBd.mjs} +1 -1
  8. package/dist/{agent-memory-nzAUPSmC.mjs → agent-memory-Df0q-68_.mjs} +1 -1
  9. package/dist/{ai-RTQ-iZFq.mjs → ai-CJfI9JI2.mjs} +1 -1
  10. package/dist/{ai-audit-BGipueRC.mjs → ai-audit-Dv37OLES.mjs} +1 -1
  11. package/dist/{ai-gateway-F2pW8d5j.mjs → ai-gateway-BRSUY1QZ.mjs} +5 -5
  12. package/dist/{ai-search-CKM-K1Hm.mjs → ai-search-Bxv4hDG9.mjs} +3 -3
  13. package/dist/{ai-security-CS2VJd4V.mjs → ai-security-ByNRXyJv.mjs} +1 -1
  14. package/dist/{alerting-DNqXDY_7.mjs → alerting-UkiCzqAq.mjs} +2 -4
  15. package/dist/{analytics-DM85HHka.mjs → analytics-B4Wq2vJx.mjs} +1 -1
  16. package/dist/{analytics-engine-CxnuZwEx.mjs → analytics-engine-BbwIXL0f.mjs} +1 -1
  17. package/dist/{api-security-BwLSP_5v.mjs → api-security-B6YETCDG.mjs} +1 -1
  18. package/dist/{argo-DZM2SJFd.mjs → argo-CHSOLyFh.mjs} +1 -1
  19. package/dist/{artifacts-CKbQsn4H.mjs → artifacts-1xMBpJLr.mjs} +1 -1
  20. package/dist/{audit-logs-CG76HATH.mjs → audit-logs-Cz__6-PH.mjs} +1 -1
  21. package/dist/auth-Byb5Y3o4.mjs +2 -0
  22. package/dist/{auth-NIRm11Ab.mjs → auth-CRq9OQKr.mjs} +1 -1
  23. package/dist/{auth-DBM4EcdJ.mjs → auth-CrBQca61.mjs} +1 -1
  24. package/dist/{auth-token-Cp_u44cF.mjs → auth-token-BEkR6ulS.mjs} +1 -1
  25. package/dist/{autoconfig-CQjvJ8Rp.mjs → autoconfig-BDEt9orA.mjs} +1 -1
  26. package/dist/{basin-catalog-BMKr8hFw.mjs → basin-catalog-DRVVY1Ff.mjs} +1 -1
  27. package/dist/{billing-LiyUCn9n.mjs → billing-CInp7pBa.mjs} +1 -1
  28. package/dist/{blocks-DdIA5quB.mjs → blocks-DGXsHh9X.mjs} +1 -1
  29. package/dist/{bot-management-ATqDTT08.mjs → bot-management--NcaqMij.mjs} +1 -1
  30. package/dist/{botnet-feed-Dk3eMSZo.mjs → botnet-feed-DbPZ3Wzl.mjs} +1 -1
  31. package/dist/{brand-protection-B82xx9X5.mjs → brand-protection-B3s-8soV.mjs} +1 -1
  32. package/dist/{browser-run-DEVs2X54.mjs → browser-run-B9hyiK7P.mjs} +1 -1
  33. package/dist/build-Bd56lS7c.mjs +2 -0
  34. package/dist/{build-D18S0p87.mjs → build-I3m3uZn6.mjs} +1 -1
  35. package/dist/{builds-kZaYZiQn.mjs → builds-D0mRyKe3.mjs} +1 -1
  36. package/dist/{cache-BSkT4mhb.mjs → cache-eKHZG4U7.mjs} +1 -1
  37. package/dist/{cf-QIG83e0V.mjs → cf-MAiSK--E.mjs} +1 -1
  38. package/dist/{chunk-DSGVRFIS-CeCM3XGQ.mjs → chunk-DSGVRFIS-L76IWWlr.mjs} +1 -1
  39. package/dist/{chunk-Q5KVZMHK-Bjvrcihk.mjs → chunk-Q5KVZMHK-CYhKv3kZ.mjs} +1 -1
  40. package/dist/{cli-dk6sJFtN.mjs → cli-hFt2ZEED.mjs} +1 -1
  41. package/dist/{client-side-security-90cX3xFX.mjs → client-side-security-BvIdcAtV.mjs} +1 -1
  42. package/dist/{cloud-connector-CtJhvxoD.mjs → cloud-connector-B-04mm0j.mjs} +1 -1
  43. package/dist/{cloudflared-DKh4JK7j.mjs → cloudflared-DynBXmdP.mjs} +1 -1
  44. package/dist/{cloudforce-one-DOf-Y51V.mjs → cloudforce-one-BAGybQNM.mjs} +139 -143
  45. package/dist/{command-DuCT0YaL.mjs → command-5bkZXAlq.mjs} +1 -1
  46. package/dist/{command-BORazCDG.mjs → command-BCECG198.mjs} +1 -1
  47. package/dist/{command-DPo7r1PT.mjs → command-BaFQsuac.mjs} +1 -1
  48. package/dist/{command-C2HYwGn_.mjs → command-BdnTjDyg.mjs} +1 -1
  49. package/dist/{command-BUYlzx4J.mjs → command-BkCc_9UI.mjs} +1 -1
  50. package/dist/{command-B6ustzcW.mjs → command-CQU92hcH.mjs} +1 -1
  51. package/dist/{command-QInwUVT5.mjs → command-CdB1DQZl.mjs} +1 -1
  52. package/dist/{command-MWbvYsQH.mjs → command-CoR-c8lP.mjs} +1 -1
  53. package/dist/{command-B2dfzTXs.mjs → command-D-a4KxcW.mjs} +1 -1
  54. package/dist/{command-aeKPI1bt.mjs → command-D6wod_eb.mjs} +1 -1
  55. package/dist/{command-BAzptjLF.mjs → command-DSPEpZHp.mjs} +1 -1
  56. package/dist/{command-BUbUtS1f.mjs → command-EG23K_k6.mjs} +1 -1
  57. package/dist/{command-V0dODmT-.mjs → command-Ux0DLWdC.mjs} +1 -1
  58. package/dist/{command-CTpn87uz.mjs → command-oko8tT2c.mjs} +1 -1
  59. package/dist/{completions-4aAl8vcF.mjs → completions-CdlqoV7q.mjs} +1 -1
  60. package/dist/{connector-interrupts-qEMhlWeV.mjs → connector-interrupts-D9iiu7ZU.mjs} +1 -1
  61. package/dist/{connector-telemetry-events-CdqnrxRp.mjs → connector-telemetry-events-C8ouyC4A.mjs} +1 -1
  62. package/dist/{connector-telemetry-snapshots-BRvmHAEM.mjs → connector-telemetry-snapshots-Ck9btYy7.mjs} +1 -1
  63. package/dist/{connectors-BqShaonQ.mjs → connectors-kGPYvin5.mjs} +1 -1
  64. package/dist/{containers-BNuGwLRK.mjs → containers-DIf9nmcC.mjs} +2 -2
  65. package/dist/{content-scan-02SOIW_1.mjs → content-scan-Cr0i9wJK.mjs} +1 -1
  66. package/dist/{context-CroqTqbk.mjs → context-DsVjrTbe.mjs} +1 -1
  67. package/dist/{cps-DvEG2eZl.mjs → cps-BHmMKg5Q.mjs} +1 -1
  68. package/dist/{csam-scanner-Bvklah8m.mjs → csam-scanner-DGTOi2EL.mjs} +1 -1
  69. package/dist/{custom-csrs-BVcDWpY-.mjs → custom-csrs-DpLkO9_M.mjs} +1 -1
  70. package/dist/{custom-hostnames-IgjZmeJc.mjs → custom-hostnames-beJnRWcQ.mjs} +1 -1
  71. package/dist/{custom-nameservers-0EYFPBz2.mjs → custom-nameservers-B1WtaEDH.mjs} +1 -1
  72. package/dist/{custom-pages-W2weASNg.mjs → custom-pages-BVXmc-u6.mjs} +1 -1
  73. package/dist/{d1-Df4t1noM.mjs → d1-DYQBKGMz.mjs} +1 -1
  74. package/dist/{delegate-CEaYc4br.mjs → delegate-4bIHEQ8-.mjs} +1 -1
  75. package/dist/delegate.mjs +1 -1
  76. package/dist/{deploy-CGx9aUuj.mjs → deploy-DEq6UKzb.mjs} +1 -1
  77. package/dist/{deploy-context-DzSmuU32.mjs → deploy-context-DJNsb7w-.mjs} +1 -1
  78. package/dist/{deploy-input-DA70GC4o.mjs → deploy-input-Bkll8tDW.mjs} +1 -1
  79. package/dist/{dev-BDls_bK6.mjs → dev-DIguZvJE.mjs} +1 -1
  80. package/dist/{diagnostics-C8V1G64d.mjs → diagnostics-DyCPKwXL.mjs} +1 -1
  81. package/dist/{disk-cache-D6xHBTAA.mjs → disk-cache-BVfJigfC.mjs} +1 -1
  82. package/dist/{dist-DwxlJ9Ms.mjs → dist-BoDdDWjK.mjs} +33 -33
  83. package/dist/{dls-BpU_jtuh.mjs → dls-BXGJug7c.mjs} +1 -1
  84. package/dist/{dns-BlgfnRkG.mjs → dns-Ev7l7p2X.mjs} +1 -1
  85. package/dist/{dns-firewall-DtkcaFQ0.mjs → dns-firewall-CrkTqlYI.mjs} +1 -1
  86. package/dist/{docs-BI2ZoYmm.mjs → docs-Dx9n33S3.mjs} +1 -1
  87. package/dist/{durable-objects-BPTzK6Xh.mjs → durable-objects-ChKP2Y6u.mjs} +1 -1
  88. package/dist/{email-auth-BSoYwLs1.mjs → email-auth-B-n1rKim.mjs} +1 -1
  89. package/dist/{email-routing-3AIhCb7w.mjs → email-routing-Dfs1g7hk.mjs} +1 -1
  90. package/dist/{email-security-INhnV4tT.mjs → email-security-B9wpMLHr.mjs} +1 -1
  91. package/dist/{email-sending-BJ3OLfN3.mjs → email-sending-DUyDi24R.mjs} +3 -3
  92. package/dist/{errors-CBngn9n1.mjs → errors-CUuKkONZ.mjs} +1 -1
  93. package/dist/{field-extractors-lSqk5ySb.mjs → field-extractors-B_R4gU51.mjs} +1 -1
  94. package/dist/{firewall-CdXsS4Cc.mjs → firewall-B5_DMZ5c.mjs} +1 -1
  95. package/dist/{flagship-CtnQ4Emf.mjs → flagship-D_jWMrT9.mjs} +1 -1
  96. package/dist/{fraud-CAZdLc_4.mjs → fraud-BPywqzR5.mjs} +1 -1
  97. package/dist/{google-tag-gateway-CBMNbgeM.mjs → google-tag-gateway-B8SGqWxf.mjs} +1 -1
  98. package/dist/{healthchecks-DdPEo0GC.mjs → healthchecks-C1NL0A-K.mjs} +1 -1
  99. package/dist/{hyperdrive-DxHbVnyO.mjs → hyperdrive-C1C_n591.mjs} +1 -1
  100. package/dist/{iam-CISZzLLr.mjs → iam-BWm6OeLJ.mjs} +1 -1
  101. package/dist/{images-DeMHqQHl.mjs → images-CU9B4ml9.mjs} +1 -1
  102. package/dist/index.mjs +1 -1
  103. package/dist/{init-DKADNnPy.mjs → init-DJGas0DL.mjs} +1 -1
  104. package/dist/{intel-BYvnwlXr.mjs → intel-COtK2F9g.mjs} +1 -1
  105. package/dist/{interactive-DCbIwYxy.mjs → interactive-CQ29h7qo.mjs} +1 -1
  106. package/dist/{ips-CS5SkxUL.mjs → ips-Dv5eyxgM.mjs} +1 -1
  107. package/dist/{k2-isJz0-93.mjs → k2-CdhxgeiI.mjs} +1 -1
  108. package/dist/{kv-Beih-nj_.mjs → kv-gNSTaGhd.mjs} +1 -1
  109. package/dist/{lazy-command-Dfv2jIGz.mjs → lazy-command-CJcN1Ze6.mjs} +1 -1
  110. package/dist/{leaked-credential-checks-CP_8DWAX.mjs → leaked-credential-checks-B222QFHE.mjs} +1 -1
  111. package/dist/{load-balancers-fhAs7LaH.mjs → load-balancers-CM-4BY5q.mjs} +1 -1
  112. package/dist/{login-BdTYP5Xw.mjs → login-Csb8Ld0x.mjs} +1 -1
  113. package/dist/login-bHCEjxRS.mjs +2 -0
  114. package/dist/{logpush-fHQiJ9eI.mjs → logpush-CmothcrK.mjs} +1 -1
  115. package/dist/{logs-Bquc4oxR.mjs → logs-CnKqBsDl.mjs} +1 -1
  116. package/dist/{magic-network-monitoring-DqQUEtPW.mjs → magic-network-monitoring-BEdRTgMa.mjs} +1 -1
  117. package/dist/{magic-transit-py-CXbOl.mjs → magic-transit-CXjc5Yo4.mjs} +1 -1
  118. package/dist/{managed-defense-nFm4rVCR.mjs → managed-defense-BuOxTHAO.mjs} +1 -1
  119. package/dist/{managed-transforms-2k6tV3U-.mjs → managed-transforms-BlqW4xkh.mjs} +1 -1
  120. package/dist/{mcp-BCtJ76cJ.mjs → mcp-ubFVHsP4.mjs} +1 -1
  121. package/dist/{mesh-D2V3ITA7.mjs → mesh-DQS7KfDF.mjs} +1 -1
  122. package/dist/{migrate-CqUzEP9-.mjs → migrate-fY24KHV_.mjs} +1 -1
  123. package/dist/{monetization-CQL4WEtz.mjs → monetization-CagZDoKh.mjs} +1 -1
  124. package/dist/{network-1oR1_5Ak.mjs → network-BB35dF4N.mjs} +1 -1
  125. package/dist/{network-interconnects-BKRa6OaY.mjs → network-interconnects-Dy4m1jMu.mjs} +2 -2
  126. package/dist/{o11y-B2hny1eT.mjs → o11y-Dmll3yib.mjs} +1 -1
  127. package/dist/{oauth-Dp9VNyOf.mjs → oauth-Dv7Wucj6.mjs} +1 -1
  128. package/dist/{oauth-CQiiWvag.mjs → oauth-NljTb7u9.mjs} +1 -1
  129. package/dist/observability-rtMYSCht.mjs +4 -0
  130. package/dist/{ohttp-gateway-B67P-f_M.mjs → ohttp-gateway-BM3nsC92.mjs} +1 -1
  131. package/dist/{organizations-Dk5cbMB5.mjs → organizations-Xus5102w.mjs} +1 -1
  132. package/dist/package-BJWSNfbc.mjs +2 -0
  133. package/dist/{page-rules-hRzoq6WZ.mjs → page-rules-BKoA5eaf.mjs} +1 -1
  134. package/dist/{pages-D_0y5Pbg.mjs → pages-CLhvyehs.mjs} +4 -4
  135. package/dist/{pay-per-crawl-C0ZDkVH8.mjs → pay-per-crawl-BLjKJl62.mjs} +1 -1
  136. package/dist/{pay-per-use-Z_LlZyxh.mjs → pay-per-use-FbddmVNv.mjs} +1 -1
  137. package/dist/{pipelines-B8-zUXTD.mjs → pipelines-BsJkvK-K.mjs} +1 -1
  138. package/dist/{precursor-vlW9-fma.mjs → precursor-oLj-WPJH.mjs} +1 -1
  139. package/dist/{previews-DZX0vwDU.mjs → previews-BRPPf7UU.mjs} +1 -1
  140. package/dist/{progress-DQfZZwit.mjs → progress-DItBn6ZV.mjs} +1 -1
  141. package/dist/{prompt-e6K5lhdE.mjs → prompt-BGz3DNLz.mjs} +1 -1
  142. package/dist/{queues-6WHCb5qi.mjs → queues-DAnbmO-t.mjs} +3 -3
  143. package/dist/{r2-C9xL1Rcg.mjs → r2-DNN91rtN.mjs} +1 -1
  144. package/dist/{radar-DN1PIWRf.mjs → radar-YWsfV39d.mjs} +1 -1
  145. package/dist/{raw-fetch-DXSBORQI.mjs → raw-fetch-CmI3Ol3q.mjs} +1 -1
  146. package/dist/{realtime-CcOSBEFJ.mjs → realtime-CfsgoOsd.mjs} +1 -1
  147. package/dist/{registrar-BjBA2lbF.mjs → registrar-N1c89kFV.mjs} +1 -1
  148. package/dist/{registrar-sandbox-DVeWO8gt.mjs → registrar-sandbox-D5lsoy-x.mjs} +1 -1
  149. package/dist/{reporting-cOY97XSy.mjs → reporting-CI5TLvj4.mjs} +1 -1
  150. package/dist/{request-headers-xtY5gOlq.mjs → request-headers-CUwBDAwI.mjs} +1 -1
  151. package/dist/{request-tracers-bHnQoIpS.mjs → request-tracers-DO63p3ou.mjs} +1 -1
  152. package/dist/{resource-sharing-CQMP1o3F.mjs → resource-sharing-CxdcY5n1.mjs} +1 -1
  153. package/dist/{rules-CrevxzXm.mjs → rules-DuuULmp2.mjs} +1 -1
  154. package/dist/{rulesets-DzGcmiGs.mjs → rulesets-3_8IWMfL.mjs} +1 -1
  155. package/dist/{rum-edoW7i0P.mjs → rum-DkfsMJa7.mjs} +1 -1
  156. package/dist/run-C9SxROBF.mjs +2 -0
  157. package/dist/{run-DhU17ztU.mjs → run-DAK_kbUa.mjs} +1 -1
  158. package/dist/{schema-cache-BFMBra5w.mjs → schema-cache-BcbUfb3D.mjs} +1 -1
  159. package/dist/{scim-BC31cTiV.mjs → scim-DCR6AQp5.mjs} +1 -1
  160. package/dist/{secrets-store-DJlRawQ0.mjs → secrets-store-C3v0_Us9.mjs} +1 -1
  161. package/dist/{security-insights-jHGuq15c.mjs → security-insights-0el4fk-S.mjs} +4 -2
  162. package/dist/security-txt-CcsEaOm5.mjs +8 -0
  163. package/dist/{session-Py5R3Tdx.mjs → session-CgJ6kB79.mjs} +1 -1
  164. package/dist/{shared-C50J5uEm.mjs → shared-DjaJ-SCM.mjs} +1 -1
  165. package/dist/{smart-shield-YI9Y6xhz.mjs → smart-shield-BxTEZqtZ.mjs} +1 -1
  166. package/dist/{snippets-SKlEbP3W.mjs → snippets-CH4PcqCg.mjs} +1 -1
  167. package/dist/{spawn-BXaiweDp.mjs → spawn-B681PPG2.mjs} +2 -2
  168. package/dist/{spectrum-CFl8kTtP.mjs → spectrum-DconVKYG.mjs} +1 -1
  169. package/dist/{speed-DekTJTgw.mjs → speed-Euqtk0Vc.mjs} +1 -1
  170. package/dist/{sql-tkIoPSbE.mjs → sql-UNZoawTj.mjs} +1 -1
  171. package/dist/{src-COKSSJwa.mjs → src-CSSFtpQM.mjs} +5 -5
  172. package/dist/{ssl-DRGNVUlP.mjs → ssl-CGWF2ZSz.mjs} +9 -9
  173. package/dist/startup-profile-ajl_yZx2.mjs +2 -0
  174. package/dist/{startup-profile-CyIelqtC.mjs → startup-profile-ne34QxOx.mjs} +1 -1
  175. package/dist/{state-BI_wSuID.mjs → state-BFClIYM_.mjs} +1 -1
  176. package/dist/state-V1KLVkd6.mjs +2 -0
  177. package/dist/{static-assets-pAj1uSDU.mjs → static-assets-CWo7dxyW.mjs} +164 -164
  178. package/dist/{stream-WHdFw1o1.mjs → stream-B3tkAx82.mjs} +1 -1
  179. package/dist/{tags-CNEWjoac.mjs → tags-CKnt6RT6.mjs} +9 -9
  180. package/dist/telemetry-B3S5OfOn.mjs +2 -0
  181. package/dist/{telemetry-BCQMv5dO.mjs → telemetry-COJrOM3V.mjs} +1 -1
  182. package/dist/{tenant-custom-nameservers-BCJoh-yz.mjs → tenant-custom-nameservers-BdVLeMsA.mjs} +1 -1
  183. package/dist/{tenants-Coo3-wTg.mjs → tenants-C8Emd5Ou.mjs} +1 -1
  184. package/dist/{tunnels-Cy3byznJ.mjs → tunnels-vUfvvRWt.mjs} +15 -13
  185. package/dist/{turnstile-DvkuMuTq.mjs → turnstile-D-6e0ShA.mjs} +1 -1
  186. package/dist/ui-YBIkZLZt.mjs +2 -0
  187. package/dist/{update-check-Buyg_Zyb.mjs → update-check-BW_N6gX4.mjs} +1 -1
  188. package/dist/{update-check-CV30Z3FO.mjs → update-check-CvzNuZHG.mjs} +1 -1
  189. package/dist/update-check-worker.mjs +1 -1
  190. package/dist/{url-normalization-DJzp3oJN.mjs → url-normalization-Bfj-1zgi.mjs} +1 -1
  191. package/dist/{url-scanner-C28ADWWB.mjs → url-scanner-CcZzqvrj.mjs} +1 -1
  192. package/dist/{user-CiFGo-51.mjs → user-CYHyVzic.mjs} +1 -1
  193. package/dist/{vectorize-DZ-VBQjl.mjs → vectorize-69UvmqNI.mjs} +1 -1
  194. package/dist/version-5uL0ecbB.mjs +2 -0
  195. package/dist/{waiting-rooms-mLG31NWt.mjs → waiting-rooms-Dj92gXpa.mjs} +1 -1
  196. package/dist/{web-assets-Caubyaqz.mjs → web-assets-vbQ0MSCd.mjs} +1 -1
  197. package/dist/{web3-Ctcb6rxj.mjs → web3-0Sz4gIto.mjs} +1 -1
  198. package/dist/{whoami-DBZfITBb.mjs → whoami-C4xRnPxf.mjs} +3 -3
  199. package/dist/whoami-wYc70ks4.mjs +2 -0
  200. package/dist/{workers-ClK3WFQg.mjs → workers-BQM8pUYu.mjs} +2 -2
  201. package/dist/{workers-for-platforms-D6fknsnw.mjs → workers-for-platforms-BfXIqCm4.mjs} +1 -1
  202. package/dist/{workers-vpc-B7wRAn-K.mjs → workers-vpc-CR3tfj4I.mjs} +1 -1
  203. package/dist/{workflows-B0UzguVf.mjs → workflows-DpQgBIHz.mjs} +1 -1
  204. package/dist/{wrangler-migration-u2oXOk-L.mjs → wrangler-migration-ChTsuUHx.mjs} +57 -57
  205. package/dist/{zaraz-p9rNptt3.mjs → zaraz-BPOBM0-W.mjs} +1 -1
  206. package/dist/{zero-trust-Dw5CvLQD.mjs → zero-trust-Cridhy7G.mjs} +21 -17
  207. package/dist/{zones-DzPc0thm.mjs → zones-BIKClc2S.mjs} +3 -3
  208. package/package.json +12 -12
  209. package/dist/auth-BBUZyJJx.mjs +0 -2
  210. package/dist/build-CjqOmQjC.mjs +0 -2
  211. package/dist/login-Bux329zM.mjs +0 -2
  212. package/dist/observability-ByzMkD8L.mjs +0 -4
  213. package/dist/package-CcmyQJFT.mjs +0 -2
  214. package/dist/run-B6k0nZU4.mjs +0 -2
  215. package/dist/security-txt-D1vV2ySL.mjs +0 -8
  216. package/dist/startup-profile-Dif7XOsU.mjs +0 -2
  217. package/dist/state-xUh3Z77T.mjs +0 -2
  218. package/dist/telemetry-CruYXv5e.mjs +0 -2
  219. package/dist/ui-CA_2sliN.mjs +0 -2
  220. package/dist/version--BAAeBma.mjs +0 -2
  221. package/dist/whoami-rfo2jx0r.mjs +0 -2
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import{d as e,l as t}from"./chunk-Q5KVZMHK-Bjvrcihk.mjs";import{r as n}from"./theme-BGHWSKCw.mjs";import{t as r}from"./agent-context-Dtyy4aKL.mjs";import{t as i}from"./auth-token-Cp_u44cF.mjs";import{i as a}from"./blocks-DdIA5quB.mjs";import{n as o}from"./interactive-wQM7Blhm.mjs";import{f as s,i as c,o as l,r as u,t as d}from"./oauth-CQiiWvag.mjs";import{t as f}from"./output-PRKYaJuo.mjs";import{r as p}from"./session-Py5R3Tdx.mjs";import"./ui-CA_2sliN.mjs";import{t as m}from"./string-width-D6-CGlwN.mjs";import{t as h}from"./log-Brx-wjJW.mjs";import{t as g}from"./sanitize-DHx5dAJu.mjs";import{n as _,t as v}from"./disk-cache-D6xHBTAA.mjs";import{t as y}from"./cf-QIG83e0V.mjs";const b=`oauth-scopes`;function x(e){if(!Array.isArray(e))return;let t=[];for(let n of e){let{id:e,name:r,category:i}=n??{};typeof e==`string`&&t.push({id:e,name:typeof r==`string`?r:e,...typeof i==`string`&&{category:i}})}return t.length>0?t:void 0}function S(e){return new Map(e.map(e=>[e.id,e]))}async function C(e){let t=v(b,[],864e5,x);if(t)return S(t);let[n,{default:r}]=await Promise.all([e(),import(`./list-4MfEFwJN.mjs`)]),i=await n.send(r),a=x(typeof i==`object`&&i&&`result`in i?i.result:i);if(!a)throw Error(`the API returned an unexpected scope catalogue`);return _(b,[],a),S(a)}const w={account_and_billing:`Account & Billing`,ai_and_machine_learning:`AI & Machine Learning`,analytics_and_logs:`Analytics & Logs`,app_security:`App Security`,cache_and_performance:`Cache & Performance`,cloudflare_one_and_zero_trust:`Cloudflare One / Zero Trust`,developer_platform:`Developer Platform`,dns_and_zones:`DNS & Zones`,email_and_messaging:`Email & Messaging`,media:`Media`,network_services:`Network Services`,other:`Other`,rules_and_configuration:`Rules & Configuration`},T=`Uncategorized`,E=[`Other`,T],D=new Set(y),O=/* @__PURE__ */ new Set([`read`,`metadata_read`]),k=/^(.+)([.:])([^.:]+)$/;function A(e){return w[e]??e.split(`_`).map(e=>e===`and`?`&`:e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function j(e,t){return E.indexOf(e)-E.indexOf(t)||e.localeCompare(t)}function M(e){return e.some(e=>k.test(e))}function N(e,t){let n=/* @__PURE__ */ new Map;for(let r of e){let e=k.exec(r);if(!e?.[1]||!e[3])continue;let i=t.get(r),a=i?.category?A(i.category):T,o=n.get(a)??[];o.push({scope:r,resource:e[1],action:e[3]}),n.set(a,o)}return n}function P(e,t,n){let r=t.get(e)??[],i=n.get(e)?.length??0,a=r.filter(({scope:e})=>D.has(e)).length,o=r.length-a,s=i>0?[`${a}/${i}`]:[];return o>0&&s.push(`${o} custom`),s.join(` + `)}function F(e,t){let r=N(e,t),i=N(y,t),a=[...r.keys()].sort(j);if(a.length===0)return``;let o=Math.max(...a.map(e=>e.length));return a.map(e=>`${n.bold(n.info(e.padEnd(o)))} ${n.muted(P(e,r,i))}`).join(`
2
+ import{d as e,l as t}from"./chunk-Q5KVZMHK-CYhKv3kZ.mjs";import{r as n}from"./theme-BGHWSKCw.mjs";import{t as r}from"./agent-context-Dtyy4aKL.mjs";import{t as i}from"./auth-token-BEkR6ulS.mjs";import{i as a}from"./blocks-DGXsHh9X.mjs";import{n as o}from"./interactive-wQM7Blhm.mjs";import{f as s,i as c,o as l,r as u,t as d}from"./oauth-NljTb7u9.mjs";import{t as f}from"./output-PRKYaJuo.mjs";import{r as p}from"./session-CgJ6kB79.mjs";import"./ui-YBIkZLZt.mjs";import{t as m}from"./string-width-D6-CGlwN.mjs";import{t as h}from"./log-Brx-wjJW.mjs";import{t as g}from"./sanitize-DHx5dAJu.mjs";import{n as _,t as v}from"./disk-cache-BVfJigfC.mjs";import{t as y}from"./cf-MAiSK--E.mjs";const b=`oauth-scopes`;function x(e){if(!Array.isArray(e))return;let t=[];for(let n of e){let{id:e,name:r,category:i}=n??{};typeof e==`string`&&t.push({id:e,name:typeof r==`string`?r:e,...typeof i==`string`&&{category:i}})}return t.length>0?t:void 0}function S(e){return new Map(e.map(e=>[e.id,e]))}async function C(e){let t=v(b,[],864e5,x);if(t)return S(t);let[n,{default:r}]=await Promise.all([e(),import(`./list-4MfEFwJN.mjs`)]),i=await n.send(r),a=x(typeof i==`object`&&i&&`result`in i?i.result:i);if(!a)throw Error(`the API returned an unexpected scope catalogue`);return _(b,[],a),S(a)}const w={account_and_billing:`Account & Billing`,ai_and_machine_learning:`AI & Machine Learning`,analytics_and_logs:`Analytics & Logs`,app_security:`App Security`,cache_and_performance:`Cache & Performance`,cloudflare_one_and_zero_trust:`Cloudflare One / Zero Trust`,developer_platform:`Developer Platform`,dns_and_zones:`DNS & Zones`,email_and_messaging:`Email & Messaging`,media:`Media`,network_services:`Network Services`,other:`Other`,rules_and_configuration:`Rules & Configuration`},T=`Uncategorized`,E=[`Other`,T],D=new Set(y),O=/* @__PURE__ */ new Set([`read`,`metadata_read`]),k=/^(.+)([.:])([^.:]+)$/;function A(e){return w[e]??e.split(`_`).map(e=>e===`and`?`&`:e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function j(e,t){return E.indexOf(e)-E.indexOf(t)||e.localeCompare(t)}function M(e){return e.some(e=>k.test(e))}function N(e,t){let n=/* @__PURE__ */ new Map;for(let r of e){let e=k.exec(r);if(!e?.[1]||!e[3])continue;let i=t.get(r),a=i?.category?A(i.category):T,o=n.get(a)??[];o.push({scope:r,resource:e[1],action:e[3]}),n.set(a,o)}return n}function P(e,t,n){let r=t.get(e)??[],i=n.get(e)?.length??0,a=r.filter(({scope:e})=>D.has(e)).length,o=r.length-a,s=i>0?[`${a}/${i}`]:[];return o>0&&s.push(`${o} custom`),s.join(` + `)}function F(e,t){let r=N(e,t),i=N(y,t),a=[...r.keys()].sort(j);if(a.length===0)return``;let o=Math.max(...a.map(e=>e.length));return a.map(e=>`${n.bold(n.info(e.padEnd(o)))} ${n.muted(P(e,r,i))}`).join(`
3
3
  `)}const I=e=>` ${e.toLowerCase().replace(/[^a-z0-9]+/g,` `)}`,L=e=>e.toLowerCase().replaceAll(`_`,`-`);function R(e,t){return I(e).includes(I(t).trimEnd())}function z(e){let t=/* @__PURE__ */ new Set([T]);for(let{category:n}of e.values())n&&t.add(A(n));return[...t].sort(j)}function B(e,t,{product:r=``,filter:i=``}={}){let a=N(e,t),o=N(y,t),s=[];for(let e of[...a.keys()].sort(j)){if(!R(e,r))continue;let t=(a.get(e)??[]).filter(({scope:e})=>L(e).includes(L(i)));if(t.length===0)continue;let c=[`${n.bold(n.info(e))} ${n.muted(`(${P(e,a,o)})`)}`],l=/* @__PURE__ */ new Map,u=[...t].sort((e,t)=>Number(!O.has(e.action))-Number(!O.has(t.action))||e.action.localeCompare(t.action));for(let{scope:e,resource:t,action:r}of u){let i=(O.has(r)?n.muted(r):n.warning(r))+(D.has(e)?``:n.muted(` (custom)`));l.set(t,(l.get(t)??/* @__PURE__ */ new Set).add(i))}let d=Math.max(...[...l.keys()].map(e=>e.length));for(let[e,t]of[...l].sort(([e],[t])=>e.localeCompare(t)))c.push(` ${e.padEnd(d)} ${[...t].join(`, `)}`);s.push(c.join(`
4
4
  `))}return s.join(`
5
5
 
6
6
  `)}const V={"--profile":`selected by --profile`,CLOUDFLARE_AUTH_PROFILE:`selected by CLOUDFLARE_AUTH_PROFILE`,directory:`activated for this directory`,default:`default profile`},H=`Use --json to see all information in a JSON object.`;function U(e,t){if(!e.authenticated)return`Not authenticated`;if(e.tokenValid===!1)return`Not authenticated (API token disabled or expired)`;let r=t===`oauth`?`OAuth`:`API Token`;if(e.tokenValid===null)return`Unable to verify authentication via ${r}`;let i=e.email?`${n.bold(n.info(g(e.email)))} ${n.muted(`via ${r}`)}`:n.muted(`via ${r} (email unavailable)`);return`${n.bold(`Authenticated`)}\n${i}`}async function W({result:e,method:t,tokenVariable:r,accountsAvailable:i},a){let o=[U(e,t)],s=g(e.profile.name);if(e.profile.name!=="default"&&o.push(`Active profile: ${n.bold(s)} ${n.muted(`(${V[e.profile.source]}${e.profile.overridden?`; overridden by ${g(r??`environment API token`)}`:``})`)}`),!e.authenticated)console.log(o.join(`
7
- `)),h.warn(t===`oauth`?`Could not refresh your OAuth credentials. Check your connection or log in again.`:`Log in to authenticate with Cloudflare.`,e.profile.name==="default"?`cf auth login${t===`oauth`?` --force`:``}`:`cf auth create ${s}`),h.info(H);else{if(o.push(``,n.bold(`Accounts`)),!i)o.push(`Unavailable; could not list accounts with these credentials`);else if(e.accounts.length===0)o.push(`No accessible accounts`);else{let t=[...e.accounts].sort((e,t)=>e.name.localeCompare(t.name)||e.id.localeCompare(t.id)).map(({name:e,id:t})=>({name:g(e),id:g(t)})),r=Math.max(...t.map(({name:e})=>m(e)));for(let{name:e,id:i}of t){let t=` `.repeat(r-m(e));o.push(`${n.bold(n.info(e))}${t} ${n.muted(i)}`)}}if(t===`api-token`)o.push(``,`Scopes: API token permissions are not available here`);else if(e.scopes===void 0)o.push(``,`Scopes: Not recorded for this OAuth login`);else if(o.push(``,n.bold(`OAuth scopes (${e.scopes.length} granted)`)),!M(e.scopes))o.push(` No product scopes granted`);else try{let t=await C(async()=>{let{createCommandClient:e}=await import(`./auth-BBUZyJJx.mjs`);return e(a)});o.push(F(e.scopes,t))}catch{o.push(` Product grouping unavailable; could not load the scope catalogue`)}console.log(o.join(`
8
- `)),t===`oauth`&&e.scopes&&M(e.scopes)&&h.info(`View granted permissions by product or list every scope:`,`cf auth scopes <product>`,`cf auth scopes --all`),h.info(H)}}function G(t,n){return{name:u(),source:t.profile?`--profile`:e()?`CLOUDFLARE_AUTH_PROFILE`:l().bindings.getProfileForDirectory(process.cwd())?`directory`:`default`,overridden:n}}const K={command:`whoami`,describe:`Show current user and authentication status`,builder:e=>e.option(`json`,{type:`boolean`,description:`Show full JSON (default for CI, non-interactive runs and agents; use --no-json for a summary)`}).middleware(()=>p(),!0),handler:async e=>{if(e[`temporary-account`]||e[`event-code`]!==void 0)throw Error(`--temporary-account and --event-code are not supported by cf auth whoami.`);let n=t(),l=n?process.env.CLOUDFLARE_API_TOKEN?`CLOUDFLARE_API_TOKEN`:`CF_API_TOKEN`:void 0,u=n?void 0:s(),p=G(e,!!n),m=e.json??(o(process.stdout)||r().isAgentic),h=n?`api-token`:u?.oauth_token?`oauth`:`none`,g;g=n?`${l} environment variable`:u?.oauth_token?`OAuth token from ${c()}`:`none`;try{await i()}catch{let t={result:{authenticated:!1,error:`Not logged in`,profile:p},method:h,tokenVariable:l,accountsAvailable:!1};m?f(t.result,{highlight:!1}):await W(t,e),g===`none`&&r().isAgentic&&console.error(a('Ask the user: "I can put this online for 60 minutes without you signing in. To keep it, complete the temporary-account claim before it expires. Would you like me to deploy it that way?" (https://developers.cloudflare.com/workers/platform/claim-deployments/) If they agree, run `cf deploy --temporary-account`.'));return}let{createCommandClient:_}=await import(`./auth-BBUZyJJx.mjs`),{default:v}=await import(`./get-BTisquA3.mjs`),{default:y}=await import(`./verify-B9ILCohg.mjs`),b=await _(e),x,S=[],[C,w,T]=await Promise.allSettled([n?b.send(y):Promise.resolve(void 0),b.send(v),d()]);if(C.status===`rejected`&&process.env.DEBUG&&console.error(`Token verification error:`,C.reason),w.status===`fulfilled`){let e=w.value;e&&`email`in e&&typeof e.email==`string`&&(x=e.email)}else process.env.DEBUG&&console.error(`User lookup error:`,w.reason);T.status===`fulfilled`?S=T.value:process.env.DEBUG&&console.error(`Account lookup error:`,T.reason);let E=null;C.status===`fulfilled`&&[`active`,`disabled`,`expired`].includes(C.value?.status??``)?E=C.value?.status===`active`:(w.status===`fulfilled`||T.status===`fulfilled`)&&(E=!0);let D={authenticated:!0,authSource:g,tokenValid:E,...x&&{email:x},accounts:S,profile:p},O=n?void 0:s();O?.oauth_token&&(D.scopes=O.scopes,D.expiresAt=O.expiration_time),m?f(D,{highlight:!1}):await W({result:D,method:h,tokenVariable:l,accountsAvailable:T.status===`fulfilled`},e)}};export{M as a,F as i,z as n,R as o,B as r,C as s,K as t};
7
+ `)),h.warn(t===`oauth`?`Could not refresh your OAuth credentials. Check your connection or log in again.`:`Log in to authenticate with Cloudflare.`,e.profile.name==="default"?`cf auth login${t===`oauth`?` --force`:``}`:`cf auth create ${s}`),h.info(H);else{if(o.push(``,n.bold(`Accounts`)),!i)o.push(`Unavailable; could not list accounts with these credentials`);else if(e.accounts.length===0)o.push(`No accessible accounts`);else{let t=[...e.accounts].sort((e,t)=>e.name.localeCompare(t.name)||e.id.localeCompare(t.id)).map(({name:e,id:t})=>({name:g(e),id:g(t)})),r=Math.max(...t.map(({name:e})=>m(e)));for(let{name:e,id:i}of t){let t=` `.repeat(r-m(e));o.push(`${n.bold(n.info(e))}${t} ${n.muted(i)}`)}}if(t===`api-token`)o.push(``,`Scopes: API token permissions are not available here`);else if(e.scopes===void 0)o.push(``,`Scopes: Not recorded for this OAuth login`);else if(o.push(``,n.bold(`OAuth scopes (${e.scopes.length} granted)`)),!M(e.scopes))o.push(` No product scopes granted`);else try{let t=await C(async()=>{let{createCommandClient:e}=await import(`./auth-Byb5Y3o4.mjs`);return e(a)});o.push(F(e.scopes,t))}catch{o.push(` Product grouping unavailable; could not load the scope catalogue`)}console.log(o.join(`
8
+ `)),t===`oauth`&&e.scopes&&M(e.scopes)&&h.info(`View granted permissions by product or list every scope:`,`cf auth scopes <product>`,`cf auth scopes --all`),h.info(H)}}function G(t,n){return{name:u(),source:t.profile?`--profile`:e()?`CLOUDFLARE_AUTH_PROFILE`:l().bindings.getProfileForDirectory(process.cwd())?`directory`:`default`,overridden:n}}const K={command:`whoami`,describe:`Show current user and authentication status`,builder:e=>e.option(`json`,{type:`boolean`,description:`Show full JSON (default for CI, non-interactive runs and agents; use --no-json for a summary)`}).middleware(()=>p(),!0),handler:async e=>{if(e[`temporary-account`]||e[`event-code`]!==void 0)throw Error(`--temporary-account and --event-code are not supported by cf auth whoami.`);let n=t(),l=n?process.env.CLOUDFLARE_API_TOKEN?`CLOUDFLARE_API_TOKEN`:`CF_API_TOKEN`:void 0,u=n?void 0:s(),p=G(e,!!n),m=e.json??(o(process.stdout)||r().isAgentic),h=n?`api-token`:u?.oauth_token?`oauth`:`none`,g;g=n?`${l} environment variable`:u?.oauth_token?`OAuth token from ${c()}`:`none`;try{await i()}catch{let t={result:{authenticated:!1,error:`Not logged in`,profile:p},method:h,tokenVariable:l,accountsAvailable:!1};m?f(t.result,{highlight:!1}):await W(t,e),g===`none`&&r().isAgentic&&console.error(a('Ask the user: "I can put this online for 60 minutes without you signing in. To keep it, complete the temporary-account claim before it expires. Would you like me to deploy it that way?" (https://developers.cloudflare.com/workers/platform/claim-deployments/) If they agree, run `cf deploy --temporary-account`.'));return}let{createCommandClient:_}=await import(`./auth-Byb5Y3o4.mjs`),{default:v}=await import(`./get-BTisquA3.mjs`),{default:y}=await import(`./verify-B9ILCohg.mjs`),b=await _(e),x,S=[],[C,w,T]=await Promise.allSettled([n?b.send(y):Promise.resolve(void 0),b.send(v),d()]);if(C.status===`rejected`&&process.env.DEBUG&&console.error(`Token verification error:`,C.reason),w.status===`fulfilled`){let e=w.value;e&&`email`in e&&typeof e.email==`string`&&(x=e.email)}else process.env.DEBUG&&console.error(`User lookup error:`,w.reason);T.status===`fulfilled`?S=T.value:process.env.DEBUG&&console.error(`Account lookup error:`,T.reason);let E=null;C.status===`fulfilled`&&[`active`,`disabled`,`expired`].includes(C.value?.status??``)?E=C.value?.status===`active`:(w.status===`fulfilled`||T.status===`fulfilled`)&&(E=!0);let D={authenticated:!0,authSource:g,tokenValid:E,...x&&{email:x},accounts:S,profile:p},O=n?void 0:s();O?.oauth_token&&(D.scopes=O.scopes,D.expiresAt=O.expiration_time),m?f(D,{highlight:!1}):await W({result:D,method:h,tokenVariable:l,accountsAvailable:T.status===`fulfilled`},e)}};export{M as a,F as i,z as n,R as o,B as r,C as s,K as t};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{n as e}from"./run-DAK_kbUa.mjs";import"./telemetry-B3S5OfOn.mjs";import{t}from"./whoami-C4xRnPxf.mjs";var n=e({...t,describe:!1},{command:`whoami`,classification:{safeFlags:[`json`]}});export{n as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-Dnt6lRJG.mjs";import{i as e,n as t}from"./auth-NIRm11Ab.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{t as r}from"./local-B3zt9PXR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{t as a}from"./progress-DQfZZwit.mjs";import{t as o}from"./path-DRw6Y-nd.mjs";import{a as s,i as c,n as l}from"./prompt-e6K5lhdE.mjs";import"./telemetry-CruYXv5e.mjs";import{r as u}from"./theme-BGHWSKCw.mjs";import{c as d,i as f,n as p,o as m,r as h,t as g}from"./body-parser-HN91kAf0.mjs";import{a as _,r as v,t as y}from"./context-CroqTqbk.mjs";import{t as b}from"./body-unions-QFGGUlIr.mjs";import{n as x,t as S}from"./input-validation-D7z60HJH.mjs";import{n as C,t as w}from"./raw-fetch-DXSBORQI.mjs";import{n as T,t as E}from"./shared-C50J5uEm.mjs";import{n as D,t as O}from"./run-DhU17ztU.mjs";import{a as k,f as A,n as ee,t as te,u as ne}from"./static-assets-pAj1uSDU.mjs";import{t as j}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as M}from"./lazy-command-Dfv2jIGz.mjs";import{X as N}from"./dist-DwxlJ9Ms.mjs";import{a as P,c as F,i as I,l as L,n as R,o as z,s as B}from"./build-D18S0p87.mjs";import{t as V}from"./deploy-context-DzSmuU32.mjs";import{r as H}from"./deploy-input-DA70GC4o.mjs";import{r as U}from"./dotenv-DKRemNCH.mjs";import{t as W}from"./log-Brx-wjJW.mjs";import{readBuildOutput as G}from"@cloudflare/build-output-utils";var K={method:`DELETE`,path:e=>o`/accounts/${e.account_id}/workers/workers/${e.worker_id}`,query:[`force`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,404:`NotFoundError`,500:`InternalServerError`}};function q(e){return e.usage(`$0 workers delete [worker]
2
+ import"./api-Dnt6lRJG.mjs";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"./local-B3zt9PXR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{t as a}from"./progress-DItBn6ZV.mjs";import{t as o}from"./path-DRw6Y-nd.mjs";import{a as s,i as c,n as l}from"./prompt-BGz3DNLz.mjs";import"./telemetry-B3S5OfOn.mjs";import{r as u}from"./theme-BGHWSKCw.mjs";import{c as d,i as f,n as p,o as m,r as h,t as g}from"./body-parser-HN91kAf0.mjs";import{a as _,r as v,t as y}from"./context-DsVjrTbe.mjs";import{t as b}from"./body-unions-QFGGUlIr.mjs";import{n as x,t as S}from"./input-validation-D7z60HJH.mjs";import{n as C,t as w}from"./raw-fetch-CmI3Ol3q.mjs";import{n as T,t as E}from"./shared-DjaJ-SCM.mjs";import{n as D,t as O}from"./run-DAK_kbUa.mjs";import{a as k,f as A,n as ee,t as te,u as ne}from"./static-assets-CWo7dxyW.mjs";import{t as j}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as M}from"./lazy-command-CJcN1Ze6.mjs";import{X as N}from"./dist-BoDdDWjK.mjs";import{a as P,c as F,i as I,l as L,n as R,o as z,s as B}from"./build-I3m3uZn6.mjs";import{t as V}from"./deploy-context-DJNsb7w-.mjs";import{r as H}from"./deploy-input-Bkll8tDW.mjs";import{r as U}from"./dotenv-DKRemNCH.mjs";import{t as W}from"./log-Brx-wjJW.mjs";import{readBuildOutput as G}from"@cloudflare/build-output-utils";var K={method:`DELETE`,path:e=>o`/accounts/${e.account_id}/workers/workers/${e.worker_id}`,query:[`force`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,404:`NotFoundError`,500:`InternalServerError`}};function q(e){return e.usage(`$0 workers delete [worker]
3
3
 
4
4
  Delete a Worker and all its associated resources (versions, deployments, etc.).`).positional(`worker`,{type:`string`,description:`Identifier for the Worker, which can be ID or name.`}).option(`worker`,{type:`string`,alias:[`script-name`,`worker-id`],description:`Identifier for the Worker, which can be ID or name.`}).group(`worker`,u.brand(`Options`)).option(`delete-with-references`,{type:`boolean`,description:`If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.`}).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 J={command:`delete [worker]`,describe:`Delete Worker`,builder:q,handler:async e=>O({command:`workers delete`,classification:{safeFlags:[`delete-with-references`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let o=v({scriptName:e.worker});e.worker=o;let s={force:e[`delete-with-references`]};if(e.dryRun){let t=await _();n({command:`cf workers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/workers/${encodeURIComponent(o)}`,pathParams:{worker:String(e.worker??``)},query:s,bodyKind:`none`});return}let c=await t(e),u=e.local?r:await y();if(e.accountId=u,!await l({force:!!e.force,message:`This will permanently delete the Worker and its associated versions and deployments.`}))return;let d=await a(`Deleting`,async()=>c.send(K,{account_id:u,worker_id:o,...s}));i(d,{successLabel:`Deleted`})})};var Y={method:`POST`,path:e=>o`/accounts/${e.account_id}/workers/scripts/${e.script_name}/deployments`,query:[`force`],body:`json`,constants:{strategy:`percentage`}};function X(e){return e.usage(`$0 workers deployments create
5
5
 
@@ -36,4 +36,4 @@ Get details about a specific Worker version.`).positional(`version-id`,{type:`st
36
36
 
37
37
  List all versions for a Worker.`).option(`worker`,{type:`string`,alias:[`script-name`,`worker-id`],description:`Identifier for the Worker, which can be ID or name.`}).option(`page`,{type:`number`,description:`Current page.`}).option(`per-page`,{type:`number`,description:`Items per-page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ke={command:`list`,describe:`List Worker Versions`,builder:Ge,handler:async e=>O({command:`workers versions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let o=v({scriptName:e.worker});e.worker=o;let s={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let t=await _();n({command:`cf workers versions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/workers/${encodeURIComponent(o)}/versions`,pathParams:{worker:String(e.worker??``)},query:s,bodyKind:`none`});return}let c=await t(e),l=e.local?r:await y();e.accountId=l;let u=await a(`Loading`,async()=>c.send(We,{account_id:l,worker_id:o,...s}));i(u,{successLabel:`Loaded`})})};function qe(e){return e.usage(`$0 workers versions profile <version-id>
38
38
 
39
- Captures a CPU or heap profile from a recently active isolate running the specified Worker version. This endpoint requires the Worker profiling feature to be enabled for the account.`).positional(`version-id`,{type:`string`,description:`Identifies the version by UUID or UUID prefix with a minimum length of eight characters. Use "latest" to select the most recently created version, which may not be deployed. Use "latest-deployed" to profile a version in the active deployment. Versions are tried in order of traffic share until one has a loaded isolate.`,demandOption:!0}).option(`worker`,{type:`string`,alias:[`script-name`,`worker-id`],description:`Identifies the Worker by ID or name.`}).option(`actor-id`,{type:`string`,description:`Identifies the exact Durable Object actor to profile. Must be specified together with namespace_id. The actor must currently be active and running the requested version.`}).option(`duration-ms`,{type:`number`,description:`Profile duration in milliseconds.`}).option(`namespace-id`,{type:`string`,description:`Identifies the Durable Object namespace containing the actor to profile. Must be specified together with actor_id.`}).option(`profile-type`,{type:`string`,description:`The profile_type field`,choices:[`cpu`,`heap`],default:`cpu`}).coerce(`profile-type`,e=>x(e,`profile-type`,`text`)).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(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const Je={command:`profile <version-id>`,describe:`Profile Worker Version`,builder:qe,handler:async e=>O({command:`workers versions profile`,classification:{safeFlags:[`profile-type`,`dry-run`,`text`]}},e,async()=>{let i=v({scriptName:e.worker});if(e.worker=i,e.dryRun){let t=await _();n({command:`cf workers versions profile`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/workers/${encodeURIComponent(i)}/versions/${e[`version-id`]==null?`<version-id>`:encodeURIComponent(String(e[`version-id`]))}/profile`,pathParams:{worker:String(e.worker??``),"version-id":String(e[`version-id`]??``)},bodyKind:`json`,body:e.body===void 0?g({actor_id:x(e[`actor-id`],`actor-id`,`text`),duration_ms:e[`duration-ms`],namespace_id:x(e[`namespace-id`],`namespace-id`,`text`),profile_type:e[`profile-type`]}):h(e.body)});return}let o=e.body===void 0?void 0:h(e.body);await t(e);let s=e.local?r:await y();if(e.accountId=s,e.body!==void 0){let t=o,n=await a(`Creating`,async()=>w(`/accounts/${s}/workers/workers/${encodeURIComponent(i)}/versions/${encodeURIComponent(String(e[`version-id`]))}/profile`,{method:`POST`,local:e.local===!0,persistTo:e.persistTo,body:JSON.stringify(t),contentType:`application/json`}));C(e.text===!0?n.toString(`utf-8`):n);return}if(e[`duration-ms`]===void 0)throw Error(`--duration-ms is required (or pass --body with this field set).`);let c={};e[`actor-id`]!==void 0&&d(c,[`actor_id`],x(e[`actor-id`],`actor-id`,`text`)),e[`duration-ms`]!==void 0&&d(c,[`duration_ms`],e[`duration-ms`]),e[`namespace-id`]!==void 0&&d(c,[`namespace_id`],x(e[`namespace-id`],`namespace-id`,`text`)),e[`profile-type`]!==void 0&&d(c,[`profile_type`],e[`profile-type`]);let l=await a(`Creating`,async()=>w(`/accounts/${s}/workers/workers/${encodeURIComponent(i)}/versions/${encodeURIComponent(String(e[`version-id`]))}/profile`,{method:`POST`,local:e.local===!0,persistTo:e.persistTo,body:Object.keys(c).length>0?c:void 0}));C(e.text===!0?l.toString(`utf-8`):l)})};function $(e){return T(e).positional(`directory`,ee).hide(`local`).hide(`persist-to`).epilogue(`Local simulation (--local) is not supported by this command.`).option(`preview-alias`,{type:`string`,description:`Preview alias for this Worker Version`,requiresArg:!0})}var Ye=D({command:`create [directory]`,describe:`Upload a new Worker Version without deploying it`,builder:$,handler:async e=>{if(e.local)throw Error(`--local is not supported by cf workers versions create.`);let t=await te(e,{isPreview:!1});await E(t?{...e,prebuilt:!0}:e,{command:`Version upload`})}},{command:`workers versions create`,classification:{safeFlags:[`dry-run`,`prebuilt`]}});const Xe={command:`versions`,describe:`Create, list, inspect, and manage Worker versions`,builder:e=>e.command(j(Ye,`native`)).command(Be).command(Ue).command(Ke).command(Je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ze=M(`check`,`Profile a Worker's startup performance`,()=>import(`./command-DuCT0YaL.mjs`),{command:`workers check`,classification:{safeFlags:[`prebuilt`]}});function Qe(e){return e.hide(`local`).hide(`persist-to`).epilogue(`Local simulation (--local) is not supported by this command.`).option(`prebuilt`,{type:`boolean`,description:`Use existing Build Output Specification files without building`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Run checks without applying triggers`,default:!1}).option(`worker`,P)}const $e={command:`deploy`,describe:`Apply triggers (Routes, Workflows, Cron triggers etc.)`,builder:Qe,handler:async e=>{if(e.local)throw Error(`--local is not supported by cf workers triggers deploy.`);if(!e.prebuilt){if(await R(e.mode,{worker:e.worker,dryRun:e[`dry-run`]})===`setup-needed`){W.success(`--dry-run: exiting now.`);return}W.message(``)}await U(e,()=>et(e))}};async function et(e){let{workers:t,rootConfig:n}=await G(process.cwd());if(n.buildContext.isPreview){let e=[`cf previews deploy`,`--prebuilt`,...n.buildContext.mode===void 0?[]:[`--mode`,n.buildContext.mode]].join(` `);throw Error(`The Build Output was created for a Preview, but this command deploys production triggers. To use the existing Build Output and deploy the Preview, run "${e}". To deploy production triggers, rebuild without Preview settings before deploying.`)}L(e.mode,n.buildContext.mode),F(n.accountId,e[`temporary-account`]===!0);let{worker:r}=I(B(t,e.worker)),{wranglerConfig:i}=z(r,n),a=N(i),{authToken:o,accountId:s}=await k({accountId:n.accountId,complianceRegion:a,dryRun:e[`dry-run`]});A(V(o)),W.section(`Deploy triggers`),await ne({...H(r,i,s,e),queueCreateCommand:e=>`cf queues create --queue-name ${e}`,workersDevConfigFieldName:`workersDev`,workersDevConfigAssignment:e=>`workersDev: ${e}`,previewUrlsConfigFieldName:`previewUrls`,previewUrlsConfigAssignment:e=>`previewUrls: ${e}`}),e[`dry-run`]||W.success(`Trigger deploy complete`)}const tt={command:`triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`,builder:e=>e.command(D($e,{command:`workers triggers deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`]}})).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var nt=M(`types`,`Generate types from cloudflare.config.ts`,()=>import(`./command-b1KxgQwf.mjs`),{command:`workers types`,classification:{safeFlags:[`include-runtime`]}});const rt={command:`workers`,describe:`Deploy and manage serverless JavaScript/WASM applications on Cloudflare's global network`,builder:e=>e.command(j(Ze,`preview`)).command(J).command(ge).command(ye).command(j(nt,`preview`)).command(pe).command(Ce).command(Le).command(j(tt,`native`)).command(Xe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{rt as default};
39
+ Captures a CPU or heap profile from a recently active isolate running the specified Worker version. This endpoint requires the Worker profiling feature to be enabled for the account.`).positional(`version-id`,{type:`string`,description:`Identifies the version by UUID or UUID prefix with a minimum length of eight characters. Use "latest" to select the most recently created version, which may not be deployed. Use "latest-deployed" to profile a version in the active deployment. Versions are tried in order of traffic share until one has a loaded isolate.`,demandOption:!0}).option(`worker`,{type:`string`,alias:[`script-name`,`worker-id`],description:`Identifies the Worker by ID or name.`}).option(`actor-id`,{type:`string`,description:`Identifies the exact Durable Object actor to profile. Must be specified together with namespace_id. The actor must currently be active and running the requested version.`}).option(`duration-ms`,{type:`number`,description:`Profile duration in milliseconds.`}).option(`namespace-id`,{type:`string`,description:`Identifies the Durable Object namespace containing the actor to profile. Must be specified together with actor_id.`}).option(`profile-type`,{type:`string`,description:`The profile_type field`,choices:[`cpu`,`heap`],default:`cpu`}).coerce(`profile-type`,e=>x(e,`profile-type`,`text`)).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(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const Je={command:`profile <version-id>`,describe:`Profile Worker Version`,builder:qe,handler:async e=>O({command:`workers versions profile`,classification:{safeFlags:[`profile-type`,`dry-run`,`text`]}},e,async()=>{let i=v({scriptName:e.worker});if(e.worker=i,e.dryRun){let t=await _();n({command:`cf workers versions profile`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/workers/${encodeURIComponent(i)}/versions/${e[`version-id`]==null?`<version-id>`:encodeURIComponent(String(e[`version-id`]))}/profile`,pathParams:{worker:String(e.worker??``),"version-id":String(e[`version-id`]??``)},bodyKind:`json`,body:e.body===void 0?g({actor_id:x(e[`actor-id`],`actor-id`,`text`),duration_ms:e[`duration-ms`],namespace_id:x(e[`namespace-id`],`namespace-id`,`text`),profile_type:e[`profile-type`]}):h(e.body)});return}let o=e.body===void 0?void 0:h(e.body);await t(e);let s=e.local?r:await y();if(e.accountId=s,e.body!==void 0){let t=o,n=await a(`Creating`,async()=>w(`/accounts/${s}/workers/workers/${encodeURIComponent(i)}/versions/${encodeURIComponent(String(e[`version-id`]))}/profile`,{method:`POST`,local:e.local===!0,persistTo:e.persistTo,body:JSON.stringify(t),contentType:`application/json`}));C(e.text===!0?n.toString(`utf-8`):n);return}if(e[`duration-ms`]===void 0)throw Error(`--duration-ms is required (or pass --body with this field set).`);let c={};e[`actor-id`]!==void 0&&d(c,[`actor_id`],x(e[`actor-id`],`actor-id`,`text`)),e[`duration-ms`]!==void 0&&d(c,[`duration_ms`],e[`duration-ms`]),e[`namespace-id`]!==void 0&&d(c,[`namespace_id`],x(e[`namespace-id`],`namespace-id`,`text`)),e[`profile-type`]!==void 0&&d(c,[`profile_type`],e[`profile-type`]);let l=await a(`Creating`,async()=>w(`/accounts/${s}/workers/workers/${encodeURIComponent(i)}/versions/${encodeURIComponent(String(e[`version-id`]))}/profile`,{method:`POST`,local:e.local===!0,persistTo:e.persistTo,body:Object.keys(c).length>0?c:void 0}));C(e.text===!0?l.toString(`utf-8`):l)})};function $(e){return T(e).positional(`directory`,ee).hide(`local`).hide(`persist-to`).epilogue(`Local simulation (--local) is not supported by this command.`).option(`preview-alias`,{type:`string`,description:`Preview alias for this Worker Version`,requiresArg:!0})}var Ye=D({command:`create [directory]`,describe:`Upload a new Worker Version without deploying it`,builder:$,handler:async e=>{if(e.local)throw Error(`--local is not supported by cf workers versions create.`);let t=await te(e,{isPreview:!1});await E(t?{...e,prebuilt:!0}:e,{command:`Version upload`})}},{command:`workers versions create`,classification:{safeFlags:[`dry-run`,`prebuilt`]}});const Xe={command:`versions`,describe:`Create, list, inspect, and manage Worker versions`,builder:e=>e.command(j(Ye,`native`)).command(Be).command(Ue).command(Ke).command(Je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ze=M(`check`,`Profile a Worker's startup performance`,()=>import(`./command-5bkZXAlq.mjs`),{command:`workers check`,classification:{safeFlags:[`prebuilt`]}});function Qe(e){return e.hide(`local`).hide(`persist-to`).epilogue(`Local simulation (--local) is not supported by this command.`).option(`prebuilt`,{type:`boolean`,description:`Use existing Build Output Specification files without building`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Run checks without applying triggers`,default:!1}).option(`worker`,P)}const $e={command:`deploy`,describe:`Apply triggers (Routes, Workflows, Cron triggers etc.)`,builder:Qe,handler:async e=>{if(e.local)throw Error(`--local is not supported by cf workers triggers deploy.`);if(!e.prebuilt){if(await R(e.mode,{worker:e.worker,dryRun:e[`dry-run`]})===`setup-needed`){W.success(`--dry-run: exiting now.`);return}W.message(``)}await U(e,()=>et(e))}};async function et(e){let{workers:t,rootConfig:n}=await G(process.cwd());if(n.buildContext.isPreview){let e=[`cf previews deploy`,`--prebuilt`,...n.buildContext.mode===void 0?[]:[`--mode`,n.buildContext.mode]].join(` `);throw Error(`The Build Output was created for a Preview, but this command deploys production triggers. To use the existing Build Output and deploy the Preview, run "${e}". To deploy production triggers, rebuild without Preview settings before deploying.`)}L(e.mode,n.buildContext.mode),F(n.accountId,e[`temporary-account`]===!0);let{worker:r}=I(B(t,e.worker)),{wranglerConfig:i}=z(r,n),a=N(i),{authToken:o,accountId:s}=await k({accountId:n.accountId,complianceRegion:a,dryRun:e[`dry-run`]});A(V(o)),W.section(`Deploy triggers`),await ne({...H(r,i,s,e),queueCreateCommand:e=>`cf queues create --queue-name ${e}`,workersDevConfigFieldName:`workersDev`,workersDevConfigAssignment:e=>`workersDev: ${e}`,previewUrlsConfigFieldName:`previewUrls`,previewUrlsConfigAssignment:e=>`previewUrls: ${e}`}),e[`dry-run`]||W.success(`Trigger deploy complete`)}const tt={command:`triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`,builder:e=>e.command(D($e,{command:`workers triggers deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`]}})).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var nt=M(`types`,`Generate types from cloudflare.config.ts`,()=>import(`./command-b1KxgQwf.mjs`),{command:`workers types`,classification:{safeFlags:[`include-runtime`]}});const rt={command:`workers`,describe:`Deploy and manage serverless JavaScript/WASM applications on Cloudflare's global network`,builder:e=>e.command(j(Ze,`preview`)).command(J).command(ge).command(ye).command(j(nt,`preview`)).command(pe).command(Ce).command(Le).command(j(tt,`native`)).command(Xe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{rt as default};
@@ -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{i as t,n}from"./auth-NIRm11Ab.mjs";import{c as r,i,r as a,t as o}from"./body-parser-HN91kAf0.mjs";import{a as s,t as c}from"./context-CroqTqbk.mjs";import{t as l}from"./dry-run-mrA7FFLR.mjs";import{n as u,t as d}from"./input-validation-D7z60HJH.mjs";import{t as f}from"./local-B3zt9PXR.mjs";import{t as p}from"./run-DhU17ztU.mjs";import{t as m}from"./output-PRKYaJuo.mjs";import{t as h}from"./progress-DQfZZwit.mjs";import"./telemetry-CruYXv5e.mjs";import{a as g,i as _,n as v}from"./prompt-e6K5lhdE.mjs";var y={method:`POST`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces`,body:`json`};function ee(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces create
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-CRq9OQKr.mjs";import{c as r,i,r as a,t as o}from"./body-parser-HN91kAf0.mjs";import{a as s,t as c}from"./context-DsVjrTbe.mjs";import{t as l}from"./dry-run-mrA7FFLR.mjs";import{n as u,t as d}from"./input-validation-D7z60HJH.mjs";import{t as f}from"./local-B3zt9PXR.mjs";import{t as p}from"./run-DAK_kbUa.mjs";import{t as m}from"./output-PRKYaJuo.mjs";import{t as h}from"./progress-DItBn6ZV.mjs";import"./telemetry-B3S5OfOn.mjs";import{a as g,i as _,n as v}from"./prompt-BGz3DNLz.mjs";var y={method:`POST`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces`,body:`json`};function ee(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces create
3
3
 
4
4
  Create a new Workers for Platforms dispatch namespace.`).option(`name`,{type:`string`,description:`The name of the dispatch namespace.`}).option(`trusted-workers`,{type:`boolean`,description:'Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the `request.cf` object on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, and `request.cf` is undefined. By default, Workers in a namespace are "untrusted".',default:!1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const te={command:`create`,describe:`Create Workers for Platforms Dispatch Namespace`,builder:ee,handler:async e=>p({command:`workers-for-platforms dispatch-namespaces create`,classification:{safeFlags:[`trusted-workers`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await s();l({command:`cf workers-for-platforms dispatch-namespaces create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces`,pathParams:{},bodyKind:`json`,body:e.body===void 0?o({name:u(e.name,`name`,`text`),trusted_workers:e[`trusted-workers`]}):a(e.body)});return}let t=e.body===void 0?void 0:a(e.body),r=await n(e),i=e.local?f:await c();if(e.accountId=i,e.body!==void 0){let e=t,n=await h(`Creating`,async()=>r.send(y,{body:e,account_id:i}));m(n,{successLabel:`Created`});return}let d=o({name:u(e.name,`name`,`text`),trusted_workers:e[`trusted-workers`]}),p=await h(`Creating`,async()=>r.send(y,{body:d,account_id:i}));m(p,{successLabel:`Created`})})};var b={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces/${t.dispatch_namespace}`};function x(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces delete <dispatch-namespace>
5
5
 
@@ -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-NIRm11Ab.mjs";import{r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{a as i,t as a}from"./context-CroqTqbk.mjs";import{t as o}from"./dry-run-mrA7FFLR.mjs";import{n as s}from"./input-validation-D7z60HJH.mjs";import{t as c}from"./local-B3zt9PXR.mjs";import{t as l}from"./run-DhU17ztU.mjs";import{t as u}from"./output-PRKYaJuo.mjs";import{t as d}from"./progress-DQfZZwit.mjs";import{a as f,i as p,n as m}from"./prompt-e6K5lhdE.mjs";import"./telemetry-CruYXv5e.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/connectivity/directory/services`,body:`json`};function g(e){return e.usage(`$0 workers-vpc services create
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CRq9OQKr.mjs";import{r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{a as i,t as a}from"./context-DsVjrTbe.mjs";import{t as o}from"./dry-run-mrA7FFLR.mjs";import{n as s}from"./input-validation-D7z60HJH.mjs";import{t as c}from"./local-B3zt9PXR.mjs";import{t as l}from"./run-DAK_kbUa.mjs";import{t as u}from"./output-PRKYaJuo.mjs";import{t as d}from"./progress-DItBn6ZV.mjs";import{a as f,i as p,n as m}from"./prompt-BGz3DNLz.mjs";import"./telemetry-B3S5OfOn.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/connectivity/directory/services`,body:`json`};function g(e){return e.usage(`$0 workers-vpc services create
3
3
 
4
4
  Creates a new Workers VPC connectivity service in the account.`).option(`host-ipv4`,{type:`string`,description:`The host.ipv4 field`}).option(`host-network-tunnel-id`,{type:`string`,description:`The host.network.tunnel_id field`}).option(`host-ipv6`,{type:`string`,description:`The host.ipv6 field`}).option(`host-hostname`,{type:`string`,description:`The host.hostname field`}).option(`host-resolver-network-resolver-ips`,{type:`string`,array:!0,description:`The host.resolver_network.resolver_ips field`}).option(`host-resolver-network-tunnel-id`,{type:`string`,description:`The host.resolver_network.tunnel_id field`}).option(`name`,{type:`string`,description:`The name field`}).option(`tls-settings-cert-verification-mode`,{type:`string`,description:'TLS certificate verification mode for the connection to the origin.\n\n- `"verify_full"` — verify certificate chain and hostname (default)\n- `"verify_ca"` — verify certificate chain only, skip hostname check\n- `"disabled"` — do not verify the server certificate at all\n\n`disabled` cannot be combined with `certificate_authority`: a custom CA is\nonly used to verify the server certificate.'}).option(`tls-settings-certificate-authority`,{type:`string`,description:`UUID of the custom CA certificate or chain.`}).option(`tls-settings-client-certificate`,{type:`string`,description:`UUID of the mTLS client certificate and private key.`}).option(`type`,{type:`string`,description:`The type field`,choices:[`tcp`,`http`]}).coerce(`type`,e=>s(e,`type`,`text`)).option(`http-port`,{type:`number`,description:`The http_port field`}).option(`https-port`,{type:`number`,description:`The https_port field`}).option(`app-protocol`,{type:`string`,description:`The app_protocol field`,choices:[`postgresql`,`mysql`]}).coerce(`app-protocol`,e=>s(e,`app-protocol`,`text`)).option(`tcp-port`,{type:`number`,description:`The tcp_port field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`host-ipv4`,[`host-hostname`,`host-resolver-network-resolver-ips`,`host-resolver-network-tunnel-id`]).implies(`host-ipv4`,[`host-network-tunnel-id`]).conflicts(`host-network-tunnel-id`,[`host-hostname`,`host-resolver-network-resolver-ips`,`host-resolver-network-tunnel-id`]).conflicts(`host-ipv6`,[`host-hostname`,`host-resolver-network-resolver-ips`,`host-resolver-network-tunnel-id`]).implies(`host-ipv6`,[`host-network-tunnel-id`]).conflicts(`host-hostname`,[`host-ipv4`,`host-network-tunnel-id`,`host-ipv6`]).implies(`host-hostname`,[`host-resolver-network-tunnel-id`]).conflicts(`host-resolver-network-resolver-ips`,[`host-ipv4`,`host-network-tunnel-id`,`host-ipv6`]).implies(`host-resolver-network-resolver-ips`,[`host-hostname`,`host-resolver-network-tunnel-id`]).conflicts(`host-resolver-network-tunnel-id`,[`host-ipv4`,`host-network-tunnel-id`,`host-ipv6`]).implies(`host-resolver-network-tunnel-id`,[`host-hostname`]).implies(`tls-settings-certificate-authority`,[`tls-settings-cert-verification-mode`]).implies(`tls-settings-client-certificate`,[`tls-settings-cert-verification-mode`]).conflicts(`http-port`,[`app-protocol`,`tcp-port`]).conflicts(`https-port`,[`app-protocol`,`tcp-port`]).conflicts(`app-protocol`,[`http-port`,`https-port`]).conflicts(`tcp-port`,[`http-port`,`https-port`])}const _={command:`create`,describe:`Create Workers VPC connectivity service`,builder:g,handler:async e=>l({command:`workers-vpc services create`,classification:{safeFlags:[`type`,`app-protocol`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();o({command:`cf workers-vpc services create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/connectivity/directory/services`,pathParams:{},bodyKind:`json`,body:e.body===void 0?r({host:{ipv4:s(e[`host-ipv4`],`host-ipv4`,`text`),network:{tunnel_id:s(e[`host-network-tunnel-id`],`host-network-tunnel-id`,`text`)},ipv6:s(e[`host-ipv6`],`host-ipv6`,`text`),hostname:s(e[`host-hostname`],`host-hostname`,`text`),resolver_network:{resolver_ips:e[`host-resolver-network-resolver-ips`],tunnel_id:s(e[`host-resolver-network-tunnel-id`],`host-resolver-network-tunnel-id`,`text`)}},name:s(e.name,`name`,`text`),tls_settings:{cert_verification_mode:s(e[`tls-settings-cert-verification-mode`],`tls-settings-cert-verification-mode`,`text`),certificate_authority:s(e[`tls-settings-certificate-authority`],`tls-settings-certificate-authority`,`text`),client_certificate:s(e[`tls-settings-client-certificate`],`tls-settings-client-certificate`,`text`)},type:e.type,http_port:e[`http-port`],https_port:e[`https-port`],app_protocol:e[`app-protocol`],tcp_port:e[`tcp-port`]}):n(e.body)});return}let l=e.body===void 0?void 0:n(e.body),m=await t(e),g=e.local?c:await a();if(e.accountId=g,e.body!==void 0){let e=l,t=await d(`Creating`,async()=>m.send(h,{body:e,account_id:g}));u(t,{successLabel:`Created`});return}e.name===void 0&&(e.name=await f(`name`,`The name field`)),e.type===void 0&&(e.type=await p(`type`,`The type field`,[`tcp`,`http`]));let _=r({host:{ipv4:s(e[`host-ipv4`],`host-ipv4`,`text`),network:{tunnel_id:s(e[`host-network-tunnel-id`],`host-network-tunnel-id`,`text`)},ipv6:s(e[`host-ipv6`],`host-ipv6`,`text`),hostname:s(e[`host-hostname`],`host-hostname`,`text`),resolver_network:{resolver_ips:e[`host-resolver-network-resolver-ips`],tunnel_id:s(e[`host-resolver-network-tunnel-id`],`host-resolver-network-tunnel-id`,`text`)}},name:s(e.name,`name`,`text`),tls_settings:{cert_verification_mode:s(e[`tls-settings-cert-verification-mode`],`tls-settings-cert-verification-mode`,`text`),certificate_authority:s(e[`tls-settings-certificate-authority`],`tls-settings-certificate-authority`,`text`),client_certificate:s(e[`tls-settings-client-certificate`],`tls-settings-client-certificate`,`text`)},type:e.type,http_port:e[`http-port`],https_port:e[`https-port`],app_protocol:e[`app-protocol`],tcp_port:e[`tcp-port`]}),v=await d(`Creating`,async()=>m.send(h,{body:_,account_id:g}));u(v,{successLabel:`Created`})})};var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/connectivity/directory/services/${t.service_id}`,response:!1};function y(e){return e.usage(`$0 workers-vpc services delete <service-id>
5
5
 
@@ -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{i as t,n}from"./auth-NIRm11Ab.mjs";import{r,s as i,t as a}from"./body-parser-HN91kAf0.mjs";import{a as o,t as s}from"./context-CroqTqbk.mjs";import{t as c}from"./dry-run-mrA7FFLR.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{t as u}from"./local-B3zt9PXR.mjs";import{t as d}from"./run-DhU17ztU.mjs";import{t as f}from"./output-PRKYaJuo.mjs";import{t as p}from"./progress-DQfZZwit.mjs";import{a as m,i as h,n as g}from"./prompt-e6K5lhdE.mjs";import"./telemetry-CruYXv5e.mjs";import{n as _,t as ee}from"./raw-fetch-DXSBORQI.mjs";var v={method:`POST`,path:t=>e`/accounts/${t.account_id}/workflows/concurrency`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,409:`ConflictError`}};function y(e){return e.usage(`$0 workflows concurrency create
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-CRq9OQKr.mjs";import{r,s as i,t as a}from"./body-parser-HN91kAf0.mjs";import{a 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"./local-B3zt9PXR.mjs";import{t as d}from"./run-DAK_kbUa.mjs";import{t as f}from"./output-PRKYaJuo.mjs";import{t as p}from"./progress-DItBn6ZV.mjs";import{a as m,i as h,n as g}from"./prompt-BGz3DNLz.mjs";import"./telemetry-B3S5OfOn.mjs";import{n as _,t as ee}from"./raw-fetch-CmI3Ol3q.mjs";var v={method:`POST`,path:t=>e`/accounts/${t.account_id}/workflows/concurrency`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,409:`ConflictError`}};function y(e){return e.usage(`$0 workflows concurrency create
3
3
 
4
4
  Creates an account-scoped concurrency key. Limits count steps still in flight from a previously deleted key of the same name.`).option(`limit`,{type:`number`,description:`Maximum number of steps that may concurrently hold this key.`}).option(`name`,{type:`string`,description:`Unique (per account) name of the concurrency key. Referenced by workflow steps via step config.`}).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 te={command:`create`,describe:`Create a concurrency key`,builder:y,handler:async e=>d({command:`workflows concurrency create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();c({command:`cf workflows concurrency create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/concurrency`,pathParams:{},bodyKind:`json`,body:e.body===void 0?a({limit:e.limit,name:l(e.name,`name`,`text`)}):r(e.body)});return}let t=e.body===void 0?void 0:r(e.body),i=await n(e),d=e.local?u:await s();if(e.accountId=d,e.body!==void 0){let e=t,n=await p(`Creating`,async()=>i.send(v,{body:e,account_id:d}));f(n,{successLabel:`Created`});return}if(e.limit===void 0)throw Error(`--limit is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await m(`name`,`Unique (per account) name of the concurrency key. Referenced by workflow steps via step config.`));let h=a({limit:e.limit,name:l(e.name,`name`,`text`)}),g=await p(`Creating`,async()=>i.send(v,{body:h,account_id:d}));f(g,{successLabel:`Created`})})};var ne={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/workflows/concurrency/${t.key_id}`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`}};function re(e){return e.usage(`$0 workflows concurrency delete <key-id>
5
5