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,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{i as n}from"./context-DlFhI9cN.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{t as a}from"./progress-AML-AVs4.mjs";import{t as o}from"./run-DAg7dfIW.mjs";import"./telemetry-DDs3zhdw.mjs";import{n as s}from"./prompt-Bnon9lfK.mjs";var c={method:`PUT`,path:t=>e`/zones/${t.zone_id}/settings/ohttp-gateway`,errors:{400:`BadRequestError`,403:`ForbiddenError`,500:`InternalServerError`}};function l(e){return e.usage(`$0 ohttp-gateway enablement create
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CRq9OQKr.mjs";import{i as n}from"./context-DsVjrTbe.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{t as a}from"./progress-DItBn6ZV.mjs";import{t as o}from"./run-DAK_kbUa.mjs";import"./telemetry-B3S5OfOn.mjs";import{n as s}from"./prompt-BGz3DNLz.mjs";var c={method:`PUT`,path:t=>e`/zones/${t.zone_id}/settings/ohttp-gateway`,errors:{400:`BadRequestError`,403:`ForbiddenError`,500:`InternalServerError`}};function l(e){return e.usage(`$0 ohttp-gateway enablement create
3
3
 
4
4
  Idempotently enables OHTTP Gateway for the zone. Requires product subscription to call.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`create`,describe:`Enable OHTTP Gateway`,builder:l,handler:async e=>o({command:`ohttp-gateway enablement create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf ohttp-gateway enablement create`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/ohttp-gateway`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let l=await a(`Updating`,async()=>o.send(c,{zone_id:s}));i(l,{successLabel:`Updated`})})};var d={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/settings/ohttp-gateway`,errors:{400:`BadRequestError`,403:`ForbiddenError`,500:`InternalServerError`}};function f(e){return e.usage(`$0 ohttp-gateway enablement delete
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e,n as t}from"./auth-cj71dGxS.mjs";import{t as n}from"./path-DRw6Y-nd.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{t as a}from"./progress-AML-AVs4.mjs";import"./telemetry-DDs3zhdw.mjs";import{t as o}from"./run-DAg7dfIW.mjs";import"./api-Dnt6lRJG.mjs";import{o as s,r as c,t as l}from"./body-parser-HN91kAf0.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,i as f,n as p}from"./prompt-Bnon9lfK.mjs";function m(e){return e.usage("$0 organizations accounts list\n\nRetrieve the accounts immediately attached to a specific organization. Accounts attached to sub-organizations are not included. Use `page_token` and `page_size` for cursor pagination. The default response uses Account fields; `Accept: application/json; legacy=true` requests the LegacyAccount representation.").option(`organization-id`,{type:`string`,description:`The ID of the organization to retrieve a list of accounts for.`,demandOption:!0}).option(`account-pubname`,{type:`string`,description:`(case-sensitive) Filter the list of accounts to where the account_pubname is equal to
2
+ import{i as e,n as t}from"./auth-CRq9OQKr.mjs";import{t as n}from"./path-DRw6Y-nd.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{t as a}from"./progress-DItBn6ZV.mjs";import"./telemetry-B3S5OfOn.mjs";import{t as o}from"./run-DAK_kbUa.mjs";import"./api-Dnt6lRJG.mjs";import{o as s,r as c,t as l}from"./body-parser-HN91kAf0.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,i as f,n as p}from"./prompt-BGz3DNLz.mjs";function m(e){return e.usage("$0 organizations accounts list\n\nRetrieve the accounts immediately attached to a specific organization. Accounts attached to sub-organizations are not included. Use `page_token` and `page_size` for cursor pagination. The default response uses Account fields; `Accept: application/json; legacy=true` requests the LegacyAccount representation.").option(`organization-id`,{type:`string`,description:`The ID of the organization to retrieve a list of accounts for.`,demandOption:!0}).option(`account-pubname`,{type:`string`,description:`(case-sensitive) Filter the list of accounts to where the account_pubname is equal to
3
3
  a particular string.`}).option(`account-pubname-starts-with`,{type:`string`,description:`(case-insensitive) Filter the list of accounts to where the account_pubname starts with
4
4
  a particular string.`}).option(`account-pubname-ends-with`,{type:`string`,description:`(case-insensitive) Filter the list of accounts to where the account_pubname ends with
5
5
  a particular string.`}).option(`account-pubname-contains`,{type:`string`,description:`(case-insensitive) Filter the list of accounts to where the account_pubname contains
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ var e=`1.0.0-beta.32`;export{e 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{i as n}from"./context-DlFhI9cN.mjs";import{o as r,r as i,t as a}from"./body-parser-HN91kAf0.mjs";import{t as o}from"./dry-run-mrA7FFLR.mjs";import{n as s}from"./input-validation-D7z60HJH.mjs";import{t as c}from"./run-DAg7dfIW.mjs";import{t as l}from"./output-PRKYaJuo.mjs";import{t as u}from"./progress-AML-AVs4.mjs";import"./telemetry-DDs3zhdw.mjs";import{n as d}from"./prompt-Bnon9lfK.mjs";var f={method:`POST`,path:t=>e`/zones/${t.zone_id}/pagerules`,body:`json`};function p(e){return e.usage(`$0 page-rules create
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CRq9OQKr.mjs";import{i as n}from"./context-DsVjrTbe.mjs";import{o as r,r as i,t as a}from"./body-parser-HN91kAf0.mjs";import{t as o}from"./dry-run-mrA7FFLR.mjs";import{n as s}from"./input-validation-D7z60HJH.mjs";import{t as c}from"./run-DAK_kbUa.mjs";import{t as l}from"./output-PRKYaJuo.mjs";import{t as u}from"./progress-DItBn6ZV.mjs";import"./telemetry-B3S5OfOn.mjs";import{n as d}from"./prompt-BGz3DNLz.mjs";var f={method:`POST`,path:t=>e`/zones/${t.zone_id}/pagerules`,body:`json`};function p(e){return e.usage(`$0 page-rules create
3
3
 
4
4
  Creates a new Page Rule.`).option(`actions`,{type:`string`,description:`The set of actions to perform if the targets of this rule match the
5
5
  request. Actions can redirect to another URL or override settings, but
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-Dnt6lRJG.mjs";import{i as e,n as t}from"./auth-cj71dGxS.mjs";import{t as n}from"./path-DRw6Y-nd.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{t as i}from"./local-B3zt9PXR.mjs";import{t as a}from"./output-PRKYaJuo.mjs";import{a as o,t as s}from"./context-DlFhI9cN.mjs";import{t as c}from"./progress-AML-AVs4.mjs";import{a as l,i as u,n as d}from"./prompt-Bnon9lfK.mjs";import"./telemetry-DDs3zhdw.mjs";import{t as f}from"./run-DAg7dfIW.mjs";import{i as p,r as m,t as h}from"./body-parser-HN91kAf0.mjs";import{n as g,t as _}from"./input-validation-D7z60HJH.mjs";import{t as v}from"./lazy-command-QoHlmXHW.mjs";import{t as y}from"./hand-written-dry-run-B82fRl2N.mjs";var ee={method:`POST`,path:e=>n`/accounts/${e.account_id}/pages/projects/${e.project_name}/purge_build_cache`};function te(e){return e.usage(`$0 pages build-cache purge <project-name>
2
+ import"./api-Dnt6lRJG.mjs";import{i as e,n as t}from"./auth-CRq9OQKr.mjs";import{t as n}from"./path-DRw6Y-nd.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{t as i}from"./local-B3zt9PXR.mjs";import{t as a}from"./output-PRKYaJuo.mjs";import{a as o,t as s}from"./context-DsVjrTbe.mjs";import{t as c}from"./progress-DItBn6ZV.mjs";import{a as l,i as u,n as d}from"./prompt-BGz3DNLz.mjs";import"./telemetry-B3S5OfOn.mjs";import{t as f}from"./run-DAK_kbUa.mjs";import{i as p,r as m,t as h}from"./body-parser-HN91kAf0.mjs";import{n as g,t as _}from"./input-validation-D7z60HJH.mjs";import{t as v}from"./lazy-command-CJcN1Ze6.mjs";import{t as y}from"./hand-written-dry-run-B82fRl2N.mjs";var ee={method:`POST`,path:e=>n`/accounts/${e.account_id}/pages/projects/${e.project_name}/purge_build_cache`};function te(e){return e.usage(`$0 pages build-cache purge <project-name>
3
3
 
4
4
  Remove cached build artifacts so subsequent builds run without the project's existing build cache.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 ne={command:`purge <project-name>`,describe:`Purge the Pages build cache`,builder:te,handler:async e=>f({command:`pages build-cache purge`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();r({command:`cf pages build-cache purge`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/purge_build_cache`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let n=await t(e),l=e.local?i:await s();if(e.accountId=l,!await d({force:!!e.force,message:`This operation purges the build cache for a Pages project.`}))return;let u=await c(`Processing`,async()=>n.send(ee,{account_id:l,project_name:e[`project-name`]}));a(u,{successLabel:`Done`})})},re={command:`build-cache`,describe:`Operations for build-cache`,builder:e=>e.command(ne).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`POST`,path:e=>n`/accounts/${e.account_id}/pages/projects`,body:`json`};function x(e){return e.usage(`$0 pages create
5
5
 
@@ -27,9 +27,9 @@ Attach a custom domain to a Cloudflare Pages project.`).positional(`project-name
27
27
 
28
28
  Remove a custom domain from a Cloudflare Pages project.`).positional(`domain-name`,{type:`string`,description:"Fully qualified domain name for the Pages project, such as `example.com`.",demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 ce={command:`delete <domain-name>`,describe:`Delete a Pages custom domain`,builder:se,handler:async e=>f({command:`pages domains delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();r({command:`cf pages domains delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/domains/${e[`domain-name`]==null?`<domain-name>`:encodeURIComponent(String(e[`domain-name`]))}`,pathParams:{"project-name":String(e[`project-name`]??``),"domain-name":String(e[`domain-name`]??``)},bodyKind:`none`});return}let n=await t(e),l=e.local?i:await s();if(e.accountId=l,!await d({force:!!e.force}))return;let u=await c(`Deleting`,async()=>n.send(oe,{account_id:l,project_name:e[`project-name`],domain_name:e[`domain-name`]}));a(u,{successLabel:`Deleted`})})};var le={method:`GET`,path:e=>n`/accounts/${e.account_id}/pages/projects/${e.project_name}/domains/${e.domain_name}`};function ue(e){return e.usage(`$0 pages domains get <domain-name>
29
29
 
30
- Retrieve the configuration and validation status of a custom domain attached to a Cloudflare Pages project.`).positional(`domain-name`,{type:`string`,description:"Fully qualified domain name for the Pages project, such as `example.com`.",demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const de={command:`get <domain-name>`,describe:`Get a Pages custom domain`,builder:ue,handler:async e=>f({command:`pages domains get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();r({command:`cf pages domains get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/domains/${e[`domain-name`]==null?`<domain-name>`:encodeURIComponent(String(e[`domain-name`]))}`,pathParams:{"project-name":String(e[`project-name`]??``),"domain-name":String(e[`domain-name`]??``)},bodyKind:`none`});return}let n=await t(e),l=e.local?i:await s();e.accountId=l;let u=await c(`Loading`,async()=>n.send(le,{account_id:l,project_name:e[`project-name`],domain_name:e[`domain-name`]}));a(u,{successLabel:`Loaded`})})};var fe={method:`GET`,path:e=>n`/accounts/${e.account_id}/pages/projects/${e.project_name}/domains`};function pe(e){return e.usage(`$0 pages domains list
30
+ Retrieve the configuration and validation status of a custom domain attached to a Cloudflare Pages project.`).positional(`domain-name`,{type:`string`,description:"Fully qualified domain name for the Pages project, such as `example.com`.",demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const de={command:`get <domain-name>`,describe:`Get a Pages custom domain`,builder:ue,handler:async e=>f({command:`pages domains get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();r({command:`cf pages domains get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/domains/${e[`domain-name`]==null?`<domain-name>`:encodeURIComponent(String(e[`domain-name`]))}`,pathParams:{"project-name":String(e[`project-name`]??``),"domain-name":String(e[`domain-name`]??``)},bodyKind:`none`});return}let n=await t(e),l=e.local?i:await s();e.accountId=l;let u=await c(`Loading`,async()=>n.send(le,{account_id:l,project_name:e[`project-name`],domain_name:e[`domain-name`]}));a(u,{successLabel:`Loaded`})})};var fe={method:`GET`,path:e=>n`/accounts/${e.account_id}/pages/projects/${e.project_name}/domains`,query:[`page`,`per_page`]};function pe(e){return e.usage(`$0 pages domains list
31
31
 
32
- List the custom domains associated with a Cloudflare Pages project.`).option(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const me={command:`list`,describe:`List Pages custom domains`,builder:pe,handler:async e=>f({command:`pages domains list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();r({command:`cf pages domains list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/domains`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let n=await t(e),l=e.local?i:await s();e.accountId=l;let u=await c(`Loading`,async()=>n.send(fe,{account_id:l,project_name:e[`project-name`]}));a(u,{successLabel:`Loaded`})})};var he={method:`PATCH`,path:e=>n`/accounts/${e.account_id}/pages/projects/${e.project_name}/domains/${e.domain_name}`};function ge(e){return e.usage(`$0 pages domains validation retry <domain-name>
32
+ List the custom domains associated with a Cloudflare Pages project.`).option(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number of custom domains, starting at 1.`}).option(`per-page`,{type:`number`,description:`Number of custom domains per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const me={command:`list`,describe:`List Pages custom domains`,builder:pe,handler:async e=>f({command:`pages domains list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let t=await o();r({command:`cf pages domains list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/domains`,pathParams:{"project-name":String(e[`project-name`]??``)},query:n,bodyKind:`none`});return}let l=await t(e),u=e.local?i:await s();e.accountId=u;let d=await c(`Loading`,async()=>l.send(fe,{account_id:u,project_name:e[`project-name`],...n}));a(d,{successLabel:`Loaded`})})};var he={method:`PATCH`,path:e=>n`/accounts/${e.account_id}/pages/projects/${e.project_name}/domains/${e.domain_name}`};function ge(e){return e.usage(`$0 pages domains validation retry <domain-name>
33
33
 
34
34
  Retry validation for a custom domain attached to a Cloudflare Pages project.`).positional(`domain-name`,{type:`string`,description:"Fully qualified domain name for the Pages project, such as `example.com`.",demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _e={command:`retry <domain-name>`,describe:`Retry custom domain validation`,builder:ge,handler:async e=>f({command:`pages domains validation retry`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();r({command:`cf pages domains validation retry`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/domains/${e[`domain-name`]==null?`<domain-name>`:encodeURIComponent(String(e[`domain-name`]))}`,pathParams:{"project-name":String(e[`project-name`]??``),"domain-name":String(e[`domain-name`]??``)},bodyKind:`none`});return}let n=await t(e),l=e.local?i:await s();e.accountId=l;let u=await c(`Updating`,async()=>n.send(he,{account_id:l,project_name:e[`project-name`],domain_name:e[`domain-name`]}));a(u,{successLabel:`Updated`})})},ve={command:`validation`,describe:`Operations for domains.validation`,builder:e=>e.command(_e).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ye={command:`domains`,describe:`Operations for domains`,builder:e=>e.command(ae).command(ce).command(de).command(me).command(ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`PATCH`,path:e=>n`/accounts/${e.account_id}/pages/projects/${e.project_name}`,body:`json`};function be(e){return e.usage(`$0 pages edit <project-name>
35
35
 
@@ -45,4 +45,4 @@ Connect a GitHub or GitLab repository to a Cloudflare Pages project to enable Gi
45
45
  When disabled, no deployments (production or preview) will be triggered automatically.
46
46
  `}).option(`source-config-owner`,{type:`string`,description:`The owner of the repository.`}).option(`source-config-owner-id`,{type:`string`,description:`The owner ID of the repository.`}).option(`source-config-path-excludes`,{type:`string`,array:!0,description:"A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-path-includes`,{type:`string`,array:!0,description:"A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-pr-comments-enabled`,{type:`boolean`,description:`Whether to enable PR comments.`}).option(`source-config-preview-branch-excludes`,{type:`string`,array:!0,description:"A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-branch-includes`,{type:`string`,array:!0,description:"A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-deployment-setting`,{type:`string`,description:`Controls whether commits to preview branches trigger a preview deployment.`,choices:[`all`,`none`,`custom`]}).coerce(`source-config-preview-deployment-setting`,e=>g(e,`source-config-preview-deployment-setting`,`text`)).option(`source-config-production-branch`,{type:`string`,description:`The production branch of the repository.`}).option(`source-config-production-deployments-enabled`,{type:`boolean`,description:`Whether to trigger a production deployment on commits to the production branch.`}).option(`source-config-repo-id`,{type:`string`,description:`The ID of the repository.`}).option(`source-config-repo-name`,{type:`string`,description:`The name of the repository.`}).option(`type`,{type:`string`,description:`The source control management provider.`,choices:[`github`,`gitlab`]}).coerce(`type`,e=>g(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Repository and deployment settings for connecting a Git repository to a Pages project.`})}const Oe={command:`connect <project-name>`,describe:`Connect a Git repository`,builder:$,handler:async e=>f({command:`pages source connect`,classification:{safeFlags:[`source-config-deployments-enabled`,`source-config-pr-comments-enabled`,`source-config-preview-deployment-setting`,`source-config-production-deployments-enabled`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();r({command:`cf pages source connect`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/source`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`json`,body:e.body===void 0?h({config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:g(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:g(e[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:e[`source-config-path-excludes`],path_includes:e[`source-config-path-includes`],pr_comments_enabled:e[`source-config-pr-comments-enabled`],preview_branch_excludes:e[`source-config-preview-branch-excludes`],preview_branch_includes:e[`source-config-preview-branch-includes`],preview_deployment_setting:e[`source-config-preview-deployment-setting`],production_branch:g(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:g(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:g(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:e.type}):m(e.body)});return}let n=e.body===void 0?void 0:m(e.body),d=await t(e),f=e.local?i:await s();if(e.accountId=f,e.body!==void 0){let t=n,r=await c(`Creating`,async()=>d.send(Q,{body:t,account_id:f,project_name:e[`project-name`]}));a(r,{successLabel:`Created`});return}if(e[`source-config-deployments-enabled`]===void 0)throw Error(`--source-config-deployments-enabled is required (or pass --body with this field set).`);if(e[`source-config-owner`]===void 0&&(e[`source-config-owner`]=await l(`source-config-owner`,`The owner of the repository.`)),e[`source-config-owner-id`]===void 0&&(e[`source-config-owner-id`]=await l(`source-config-owner-id`,`The owner ID of the repository.`)),e[`source-config-path-excludes`]===void 0)throw Error(`--source-config-path-excludes is required (or pass --body with this field set).`);if(e[`source-config-path-includes`]===void 0)throw Error(`--source-config-path-includes is required (or pass --body with this field set).`);if(e[`source-config-pr-comments-enabled`]===void 0)throw Error(`--source-config-pr-comments-enabled is required (or pass --body with this field set).`);if(e[`source-config-preview-branch-excludes`]===void 0)throw Error(`--source-config-preview-branch-excludes is required (or pass --body with this field set).`);if(e[`source-config-preview-branch-includes`]===void 0)throw Error(`--source-config-preview-branch-includes is required (or pass --body with this field set).`);if(e[`source-config-preview-deployment-setting`]===void 0&&(e[`source-config-preview-deployment-setting`]=await u(`source-config-preview-deployment-setting`,`Controls whether commits to preview branches trigger a preview deployment.`,[`all`,`none`,`custom`])),e[`source-config-production-branch`]===void 0&&(e[`source-config-production-branch`]=await l(`source-config-production-branch`,`The production branch of the repository.`)),e[`source-config-production-deployments-enabled`]===void 0)throw Error(`--source-config-production-deployments-enabled is required (or pass --body with this field set).`);e[`source-config-repo-id`]===void 0&&(e[`source-config-repo-id`]=await l(`source-config-repo-id`,`The ID of the repository.`)),e[`source-config-repo-name`]===void 0&&(e[`source-config-repo-name`]=await l(`source-config-repo-name`,`The name of the repository.`)),e.type===void 0&&(e.type=await u(`type`,`The source control management provider.`,[`github`,`gitlab`]));let p=h({config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:g(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:g(e[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:e[`source-config-path-excludes`],path_includes:e[`source-config-path-includes`],pr_comments_enabled:e[`source-config-pr-comments-enabled`],preview_branch_excludes:e[`source-config-preview-branch-excludes`],preview_branch_includes:e[`source-config-preview-branch-includes`],preview_deployment_setting:e[`source-config-preview-deployment-setting`],production_branch:g(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:g(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:g(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:e.type}),_=await c(`Creating`,async()=>d.send(Q,{body:p,account_id:f,project_name:e[`project-name`]}));a(_,{successLabel:`Created`})})};var ke={method:`DELETE`,path:e=>n`/accounts/${e.account_id}/pages/projects/${e.project_name}/source`};function Ae(e){return e.usage(`$0 pages source disconnect <project-name>
47
47
 
48
- Disconnect the Git repository from a Cloudflare Pages project to stop Git-based deployments.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 je={command:`disconnect <project-name>`,describe:`Disconnect a Git repository`,builder:Ae,handler:async e=>f({command:`pages source disconnect`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();r({command:`cf pages source disconnect`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/source`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let n=await t(e),l=e.local?i:await s();if(e.accountId=l,!await d({force:!!e.force}))return;let u=await c(`Deleting`,async()=>n.send(ke,{account_id:l,project_name:e[`project-name`]}));a(u,{successLabel:`Deleted`})})},Me={command:`source`,describe:`Operations for source`,builder:e=>e.command(Oe).command(je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ne=v(`deploy [directory]`,`Deploy a directory of static assets as a Pages deployment`,()=>import(`./command-BORazCDG.mjs`),{command:`pages deploy`,recordArgs:!1});const Pe={command:`pages`,describe:`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,builder:e=>e.command(S).command(T).command(y(Ne,`preview`)).command(xe).command(we).command(De).command(re).command(Y).command(ye).command(Me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Pe as default};
48
+ Disconnect the Git repository from a Cloudflare Pages project to stop Git-based deployments.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 je={command:`disconnect <project-name>`,describe:`Disconnect a Git repository`,builder:Ae,handler:async e=>f({command:`pages source disconnect`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();r({command:`cf pages source disconnect`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/source`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let n=await t(e),l=e.local?i:await s();if(e.accountId=l,!await d({force:!!e.force}))return;let u=await c(`Deleting`,async()=>n.send(ke,{account_id:l,project_name:e[`project-name`]}));a(u,{successLabel:`Deleted`})})},Me={command:`source`,describe:`Operations for source`,builder:e=>e.command(Oe).command(je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ne=v(`deploy [directory]`,`Deploy a directory of static assets as a Pages deployment`,()=>import(`./command-BCECG198.mjs`),{command:`pages deploy`,recordArgs:!1});const Pe={command:`pages`,describe:`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,builder:e=>e.command(S).command(T).command(y(Ne,`preview`)).command(xe).command(we).command(De).command(re).command(Y).command(ye).command(Me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Pe 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{n as t}from"./auth-cj71dGxS.mjs";import{i as n,o as r,r as i,t as a}from"./body-parser-HN91kAf0.mjs";import{a as o,i as s,t as c}from"./context-DlFhI9cN.mjs";import{t as l}from"./dry-run-mrA7FFLR.mjs";import{t as u}from"./output-PRKYaJuo.mjs";import{t as d}from"./progress-AML-AVs4.mjs";import{t as f}from"./run-DAg7dfIW.mjs";import"./telemetry-DDs3zhdw.mjs";import{t as p}from"./local-B3zt9PXR.mjs";import{n as m}from"./prompt-Bnon9lfK.mjs";var h={method:`POST`,path:t=>e`/zones/${t.zone_id}/pay-per-crawl/configuration`,body:`json`,errors:{400:`BadRequestError`}};function ee(e){return e.usage(`$0 pay-per-crawl config create
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CRq9OQKr.mjs";import{i as n,o as r,r as i,t as a}from"./body-parser-HN91kAf0.mjs";import{a as o,i as s,t as c}from"./context-DsVjrTbe.mjs";import{t as l}from"./dry-run-mrA7FFLR.mjs";import{t as u}from"./output-PRKYaJuo.mjs";import{t as d}from"./progress-DItBn6ZV.mjs";import{t as f}from"./run-DAK_kbUa.mjs";import"./telemetry-B3S5OfOn.mjs";import{t as p}from"./local-B3zt9PXR.mjs";import{n as m}from"./prompt-BGz3DNLz.mjs";var h={method:`POST`,path:t=>e`/zones/${t.zone_id}/pay-per-crawl/configuration`,body:`json`,errors:{400:`BadRequestError`}};function ee(e){return e.usage(`$0 pay-per-crawl config create
3
3
 
4
4
  Creates the pay-per-crawl config for a zone.`).option(`bot-overrides`,{type:`string`,description:`The bot_overrides field. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": "charge" | "bypass"}.`}).option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`price-usd-microcents`,{type:`number`,description:`Price in microcents 1 USD = 100,000,000 microcents. Must be 0 or a multiple of 100,000 $0.001. Range: $0.001–$9,999.999.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Data for fully replacing a pay-per-crawl zone configuration`})}const g={command:`create`,describe:`Creates pay-per-crawl config for a zone`,builder:ee,handler:async e=>f({command:`pay-per-crawl config create`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf pay-per-crawl config create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/pay-per-crawl/configuration`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?a({bot_overrides:n(e[`bot-overrides`],`bot-overrides`,!0),enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]},[[`bot_overrides`]]):i(e.body,[{path:[`bot_overrides`],flag:`bot-overrides`}])});return}let r=e.body===void 0?void 0:i(e.body,[{path:[`bot_overrides`],flag:`bot-overrides`}]),o=await t(e),c=await s({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body!==void 0){let e=r,t=await d(`Creating`,async()=>o.send(h,{body:e,zone_id:c}));u(t,{successLabel:`Created`});return}if(e[`bot-overrides`]===void 0)throw Error(`--bot-overrides is required (or pass --body with this field set).`);if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);if(e[`price-usd-microcents`]===void 0)throw Error(`--price-usd-microcents is required (or pass --body with this field set).`);let f=a({bot_overrides:n(e[`bot-overrides`],`bot-overrides`,!0),enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]},[[`bot_overrides`]]),p=await d(`Creating`,async()=>o.send(h,{body:f,zone_id:c}));u(p,{successLabel:`Created`})})};var _={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/pay-per-crawl/configuration`,body:`json`,errors:{400:`BadRequestError`}};function te(e){return e.usage(`$0 pay-per-crawl config edit
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-cj71dGxS.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{a as i,i as a,t as o}from"./context-DlFhI9cN.mjs";import{t as s}from"./local-B3zt9PXR.mjs";import{t as c}from"./output-PRKYaJuo.mjs";import{t as l}from"./progress-AML-AVs4.mjs";import{t as u}from"./run-DAg7dfIW.mjs";import"./telemetry-DDs3zhdw.mjs";import{o as d,r as f,t as p}from"./body-parser-HN91kAf0.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v}from"./prompt-Bnon9lfK.mjs";var y={method:`GET`,path:t=>e`/accounts/${t.account_id}/pay-per-use/enabled-domains`,query:[`cursor`,`per_page`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,500:`InternalServerError`}};function b(e){return e.usage(`$0 pay-per-use enabled-domains list
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-CRq9OQKr.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{a as i,i as a,t as o}from"./context-DsVjrTbe.mjs";import{t as s}from"./local-B3zt9PXR.mjs";import{t as c}from"./output-PRKYaJuo.mjs";import{t as l}from"./progress-DItBn6ZV.mjs";import{t as u}from"./run-DAK_kbUa.mjs";import"./telemetry-B3S5OfOn.mjs";import{o as d,r as f,t as p}from"./body-parser-HN91kAf0.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v}from"./prompt-BGz3DNLz.mjs";var y={method:`GET`,path:t=>e`/accounts/${t.account_id}/pay-per-use/enabled-domains`,query:[`cursor`,`per_page`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,500:`InternalServerError`}};function b(e){return e.usage(`$0 pay-per-use enabled-domains list
3
3
 
4
4
  Returns publisher domains associated with the requesting Pay Per Use operator through an accepted price agreement. License expiration is the earlier non-null boundary from the price agreement and publisher zone lifecycles. A future expiration remains active and is exposed to the operator. After expiration, the license remains listed as expired for one calendar month before it is omitted; an active agreement for the same domain takes precedence. The requesting account must be an active Pay Per Use operator.`).option(`cursor`,{type:`string`,description:`Opaque, account-bound cursor returned by the previous page. Cursors expire after one hour; restart pagination without a cursor after receiving a 400 response for an expired cursor.`}).option(`per-page`,{type:`number`,description:`Maximum number of domains to return`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`list`,describe:`List enabled Pay Per Use domains`,builder:b,handler:async e=>u({command:`pay-per-use enabled-domains list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={cursor:e.cursor,per_page:e[`per-page`]};if(e.dryRun){let e=await i();r({command:`cf pay-per-use enabled-domains list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-use/enabled-domains`,pathParams:{},query:t,bodyKind:`none`});return}let a=await n(e),u=e.local?s:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(y,{account_id:u,...t}));c(d,{successLabel:`Loaded`})})},te={command:`enabled-domains`,describe:`Operations for enabled-domains`,builder:e=>e.command(ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ne={method:`GET`,path:t=>e`/accounts/${t.account_id}/pay-per-use/operator/configuration`,errors:{403:`ForbiddenError`,404:`NotFoundError`}};function x(e){return e.usage(`$0 pay-per-use operator get-configuration
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-cj71dGxS.mjs";import{o as n,r,t as i}from"./body-parser-HN91kAf0.mjs";import{a,t as o}from"./context-DlFhI9cN.mjs";import{t as s}from"./dry-run-mrA7FFLR.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{t as l}from"./local-B3zt9PXR.mjs";import{t as u}from"./run-DAg7dfIW.mjs";import{t as d}from"./output-PRKYaJuo.mjs";import{t as f}from"./progress-AML-AVs4.mjs";import{a as p,i as m,n as h}from"./prompt-Bnon9lfK.mjs";import"./telemetry-DDs3zhdw.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/pipelines/v1/pipelines`,body:`json`};function _(e){return e.usage(`$0 pipelines 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,t as o}from"./context-DsVjrTbe.mjs";import{t as s}from"./dry-run-mrA7FFLR.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{t as l}from"./local-B3zt9PXR.mjs";import{t as u}from"./run-DAK_kbUa.mjs";import{t as d}from"./output-PRKYaJuo.mjs";import{t as f}from"./progress-DItBn6ZV.mjs";import{a as p,i as m,n as h}from"./prompt-BGz3DNLz.mjs";import"./telemetry-B3S5OfOn.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/pipelines/v1/pipelines`,body:`json`};function _(e){return e.usage(`$0 pipelines create
3
3
 
4
4
  Create a new Pipeline.`).option(`name`,{type:`string`,description:`Specifies the name of the Pipeline.`}).option(`sql`,{type:`string`,description:`Specifies SQL for the Pipeline processing flow.`}).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 v={command:`create`,describe:`Create Pipeline`,builder:_,handler:async e=>u({command:`pipelines create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();s({command:`cf pipelines create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pipelines/v1/pipelines`,pathParams:{},bodyKind:`json`,body:e.body===void 0?i({name:c(e.name,`name`,`text`),sql:c(e.sql,`sql`,`text`)}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),u=await t(e),m=e.local?l:await o();if(e.accountId=m,e.body!==void 0){let e=n,t=await f(`Creating`,async()=>u.send(g,{body:e,account_id:m}));d(t,{successLabel:`Created`});return}e.name===void 0&&(e.name=await p(`name`,`Specifies the name of the Pipeline.`)),e.sql===void 0&&(e.sql=await p(`sql`,`Specifies SQL for the Pipeline processing flow.`));let h=i({name:c(e.name,`name`,`text`),sql:c(e.sql,`sql`,`text`)}),_=await f(`Creating`,async()=>u.send(g,{body:h,account_id:m}));d(_,{successLabel:`Created`})})};var ee={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/pipelines/v1/pipelines/${t.pipeline_id}`};function y(e){return e.usage(`$0 pipelines delete <pipeline-id>
5
5
 
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import{i as e,n as t}from"./auth-cj71dGxS.mjs";import{i as n}from"./context-DlFhI9cN.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{t as a}from"./progress-AML-AVs4.mjs";import{t as o}from"./run-DAg7dfIW.mjs";import"./telemetry-DDs3zhdw.mjs";import{c as s,o as c,r as l,t as u}from"./body-parser-HN91kAf0.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";function f(e){return e.usage("$0 precursor get\n\nRetrieve a zone's Precursor configuration: the detection `mode`, whether to `show_interstitial`, and the ordered list of `rules`.").option(`cloudflare-version`,{type:`string`,description:`Selects the split Precursor API schema.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`get`,describe:`Get Zone Precursor Config`,builder:f,handler:async s=>o({command:`precursor get`,classification:{safeFlags:[`dry-run`]}},s,async()=>{let o={};if(s[`cloudflare-version`]!==void 0&&(o[`Cloudflare-Version`]=String(s[`cloudflare-version`])),s.dryRun){r({command:`cf precursor get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/precursor`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`none`});return}let c=await t(s);s.zoneId=await n({zone:s.zone},c,{quiet:s.quiet});let l=await a(`Loading`,async()=>e(c,`GET`,`/zones/${s.zoneId}/precursor`,{headers:Object.keys(o).length>0?o:void 0}));i(l,{successLabel:`Loaded`})})};function m(e){return e.usage("$0 precursor update\n\nUpdates the Precursor configuration for a zone. `mode` controls whether Precursor detection is off, monitoring, or armed. `show_interstitial` controls the zone-level response when armed. `rules` is the ordered list of overrides for matching requests. This is a partial update: only the fields present in the request body are changed. - Sending an empty array (`[]`) clears all rules. - At least one of `mode`, `show_interstitial`, or `rules` must be present; an empty body (`{}`) is rejected with `400`. - Rule `id` is read-only (assigned by Cloudflare) and ignored on input. - Rule `show_interstitial` is required and controls the response for requests that match that rule. - Rule `expression` is limited to 4000 characters. The limit applies to each rule individually, not to the combined size of all rules.").option(`cloudflare-version`,{type:`string`,description:`Selects the split Precursor API schema.`,demandOption:!0}).option(`detection-mode`,{type:`string`,description:"Controls Precursor detection for the zone. `off` disables detection,\n`monitor` records detections without affecting bot scores, and `arm`\nallows detections to affect bot scores.",choices:[`off`,`monitor`,`arm`]}).coerce(`detection-mode`,e=>d(e,`detection-mode`,`text`)).option(`rules`,{type:`string`,description:`The ordered list of Precursor rules for the zone. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"expression": string, "show_interstitial": boolean, "description"?: string, "enabled"?: boolean}]. ? marks optional keys.`}).option(`show-interstitial`,{type:`boolean`,description:`Whether Precursor shows an interstitial when it takes action on a
2
+ import{i as e,n as t}from"./auth-CRq9OQKr.mjs";import{i as n}from"./context-DsVjrTbe.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{t as a}from"./progress-DItBn6ZV.mjs";import{t as o}from"./run-DAK_kbUa.mjs";import"./telemetry-B3S5OfOn.mjs";import{c as s,o as c,r as l,t as u}from"./body-parser-HN91kAf0.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";function f(e){return e.usage("$0 precursor get\n\nRetrieve a zone's Precursor configuration: the detection `mode`, whether to `show_interstitial`, and the ordered list of `rules`.").option(`cloudflare-version`,{type:`string`,description:`Selects the split Precursor API schema.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`get`,describe:`Get Zone Precursor Config`,builder:f,handler:async s=>o({command:`precursor get`,classification:{safeFlags:[`dry-run`]}},s,async()=>{let o={};if(s[`cloudflare-version`]!==void 0&&(o[`Cloudflare-Version`]=String(s[`cloudflare-version`])),s.dryRun){r({command:`cf precursor get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/precursor`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`none`});return}let c=await t(s);s.zoneId=await n({zone:s.zone},c,{quiet:s.quiet});let l=await a(`Loading`,async()=>e(c,`GET`,`/zones/${s.zoneId}/precursor`,{headers:Object.keys(o).length>0?o:void 0}));i(l,{successLabel:`Loaded`})})};function m(e){return e.usage("$0 precursor update\n\nUpdates the Precursor configuration for a zone. `mode` controls whether Precursor detection is off, monitoring, or armed. `show_interstitial` controls the zone-level response when armed. `rules` is the ordered list of overrides for matching requests. This is a partial update: only the fields present in the request body are changed. - Sending an empty array (`[]`) clears all rules. - At least one of `mode`, `show_interstitial`, or `rules` must be present; an empty body (`{}`) is rejected with `400`. - Rule `id` is read-only (assigned by Cloudflare) and ignored on input. - Rule `show_interstitial` is required and controls the response for requests that match that rule. - Rule `expression` is limited to 4000 characters. The limit applies to each rule individually, not to the combined size of all rules.").option(`cloudflare-version`,{type:`string`,description:`Selects the split Precursor API schema.`,demandOption:!0}).option(`detection-mode`,{type:`string`,description:"Controls Precursor detection for the zone. `off` disables detection,\n`monitor` records detections without affecting bot scores, and `arm`\nallows detections to affect bot scores.",choices:[`off`,`monitor`,`arm`]}).coerce(`detection-mode`,e=>d(e,`detection-mode`,`text`)).option(`rules`,{type:`string`,description:`The ordered list of Precursor rules for the zone. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"expression": string, "show_interstitial": boolean, "description"?: string, "enabled"?: boolean}]. ? marks optional keys.`}).option(`show-interstitial`,{type:`boolean`,description:`Whether Precursor shows an interstitial when it takes action on a
3
3
  request.
4
4
  `}).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 h={command:`update`,describe:`Update Zone Precursor Config`,builder:m,handler:async d=>o({command:`precursor update`,classification:{safeFlags:[`detection-mode`,`show-interstitial`,`dry-run`]}},d,async()=>{let o={};if(d[`cloudflare-version`]!==void 0&&(o[`Cloudflare-Version`]=String(d[`cloudflare-version`])),d.dryRun){r({command:`cf precursor update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${d.zone??d.zoneId??`<zone>`}/precursor`,pathParams:{"zone-id":String(d.zone??d[`zone-id`]??``)},bodyKind:`json`,body:d.body===void 0?u({mode:d[`detection-mode`],rules:c(d.rules,`rules`),show_interstitial:d[`show-interstitial`]}):l(d.body)});return}let f=d.body===void 0?void 0:l(d.body),p=await t(d);if(d.zoneId=await n({zone:d.zone},p,{quiet:d.quiet}),d.body!==void 0){let t=f,n=await a(`Updating`,async()=>e(p,`PUT`,`/zones/${d.zoneId}/precursor`,{body:t,headers:Object.keys(o).length>0?o:void 0}));i(n,{successLabel:`Updated`});return}let m={};d[`detection-mode`]!==void 0&&s(m,[`mode`],d[`detection-mode`]),d.rules!==void 0&&s(m,[`rules`],c(d.rules,`rules`)),d[`show-interstitial`]!==void 0&&s(m,[`show_interstitial`],d[`show-interstitial`]);let h=await a(`Updating`,async()=>e(p,`PUT`,`/zones/${d.zoneId}/precursor`,{body:m,headers:Object.keys(o).length>0?o:void 0}));i(h,{successLabel:`Updated`})})},g={command:`precursor`,describe:`Precursor settings for a zone`,builder:e=>e.command(p).command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{g as default};
@@ -1,6 +1,6 @@
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"./local-B3zt9PXR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{t as a}from"./progress-AML-AVs4.mjs";import{n as o}from"./prompt-Bnon9lfK.mjs";import{a as s,t as c}from"./context-DlFhI9cN.mjs";import"./telemetry-DDs3zhdw.mjs";import{C as l,_ as u,d,f,l as p,r as m,t as h,x as g,y as _}from"./deploy-context-BYw6gbl-.mjs";import{a as v,c as y,f as b,i as x,l as S,n as C,o as w,r as T,t as E}from"./static-assets-CTv7XwIQ.mjs";import{B as D,J as O,X as k,at as A}from"./dist-DwxlJ9Ms.mjs";import{a as j,c as M,i as N,n as P,o as F,r as I,s as ee}from"./build-DiEXOgHH.mjs";import{n as L,t as R}from"./run-DAg7dfIW.mjs";import{t as z}from"./deploy-input-BFWpjDVr.mjs";import{r as B}from"./dotenv-DKRemNCH.mjs";import{d as V,s as H}from"./interactive-DCbIwYxy.mjs";import{t as U}from"./hand-written-dry-run-B82fRl2N.mjs";import{readBuildOutput as W}from"@cloudflare/build-output-utils";function G(e){return e.usage(`$0 previews delete <name>
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"./local-B3zt9PXR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{t as a}from"./progress-DItBn6ZV.mjs";import{n as o}from"./prompt-BGz3DNLz.mjs";import{a as s,t as c}from"./context-DsVjrTbe.mjs";import"./telemetry-B3S5OfOn.mjs";import{C as l,_ as u,d,f,l as p,r as m,t as h,x as g,y as _}from"./deploy-context-DJNsb7w-.mjs";import{a as v,c as y,f as b,i as x,l as S,n as C,o as w,r as T,t as E}from"./static-assets-CWo7dxyW.mjs";import{B as D,J as O,X as k,at as A}from"./dist-BoDdDWjK.mjs";import{a as j,c as M,i as N,l as P,n as F,o as I,s as ee,u as L}from"./build-I3m3uZn6.mjs";import{n as R,t as z}from"./run-DAK_kbUa.mjs";import{t as B}from"./deploy-input-Bkll8tDW.mjs";import{r as V}from"./dotenv-DKRemNCH.mjs";import{d as H,s as U}from"./interactive-CQ29h7qo.mjs";import{t as W}from"./hand-written-dry-run-B82fRl2N.mjs";import{readBuildOutput as G}from"@cloudflare/build-output-utils";function K(e){return e.usage(`$0 previews delete <name>
3
3
 
4
- Delete a Preview.`).positional(`name`,{type:`string`,description:`Identifier for the Preview, which can be ID, slug, or URL-encoded name.`,demandOption:!0}).option(`worker`,{type:`string`,description:`Identifier for the Worker, which can be ID or name.`,demandOption:!0}).option(`delete-with-references`,{type:`boolean`,description:`If true, delete the Preview even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Preview 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 K={command:`delete <name>`,describe:`Delete Preview`,builder:G,handler:async l=>R({command:`previews delete`,classification:{safeFlags:[`delete-with-references`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},l,async()=>{let u={force:l[`delete-with-references`]};if(l.dryRun){let e=await s();n({command:`cf previews delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/workers/workers/${l.worker==null?`<worker>`:encodeURIComponent(String(l.worker))}/previews/${l.name==null?`<name>`:encodeURIComponent(String(l.name))}`,pathParams:{worker:String(l.worker??``),name:String(l.name??``)},query:u,bodyKind:`none`});return}let d=await t(l),f=l.local?r:await c();if(l.accountId=f,!await o({force:!!l.force,message:`This operation permanently deletes the Preview.`}))return;let p=await a(`Deleting`,async()=>e(d,`DELETE`,`/accounts/${f}/workers/workers/${encodeURIComponent(String(l.worker))}/previews/${encodeURIComponent(String(l.name))}`,{query:u}));i(p,{successLabel:`Deleted`})})};function q(e){return{getNormalizedContainerOptions:async t=>e.standard.normalized.map(e=>({...e,name:t.containers?.find(({class_name:t})=>t===e.class_name)?.name??e.name})),deployPreviewContainers:async(t,n,r,i,a)=>J(a.quiet,async()=>{let o=/* @__PURE__ */ new Map;for(let e of Object.values(r.env??{}))e.type===`durable_object_namespace`&&e.class_name&&e.namespace_id&&e.script_name===void 0&&o.set(e.class_name,e.namespace_id);let s;for(let c of n){let n=o.get(c.class_name);if(n||=(s??=await _(t,i),s.find(e=>e.class===c.class_name&&e.preview?.id===r.preview_id)?.id),!n)throw Error(`Could not find a Preview Durable Object namespace for Container class "${c.class_name}".`);let l=await Y(c,e,r.id,i,t,a.localImageReferences?.get(c.class_name));await p({imageRef:l,durable_object_namespace_id:n,configFileName:`cloudflare.config.ts`,observabilityTargetPercentageField:`targetInstancePercentage`,observabilityTargetCountField:`targetInstanceCount`},c,t,i)}await d(e.standard.builtImages.filter(({container:e})=>!a.localImageReferences?.has(e.class_name)),A())})}}async function J(e,t){if(!e)return t();let n=H();V(`error`);try{return await t()}finally{V(n)}}async function Y(e,t,n,r,i,a){if(a!==void 0)return l({pathToDocker:A(),sourceTag:a,targetTag:a,accountId:r,complianceConfig:i,containerConfig:`dockerfile`in e?e:void 0,cleanupSourceTag:!1});let o=t.standard.builtImages.find(({container:t})=>t.class_name===e.class_name);if(o)return g(o,n,A(),r,i);if(`image_uri`in e)return{newTag:e.image_uri};throw Error(`Container "${e.name}" has no Build Output image to deploy.`)}function X(e){return e.positional(`directory`,C).option(`preview-name`,{type:`string`,description:`Preview name. Defaults to the current CI or Git branch; required if no branch is available.`}).option(`prebuilt`,{type:`boolean`,description:`Use existing Preview Build Output Specification files without building`,default:!1}).option(`worker`,I)}function Z(e){return{type:`preview`,version:1,preview_id:e.preview.id,preview_name:e.preview.name,preview_slug:e.preview.slug,preview_urls:e.preview.urls,deployment_id:e.deployment.id,deployment_urls:e.deployment.urls}}async function Q(e){let t=e[`preview-name`],n=t??y();if(!n||!t&&n===`HEAD`)throw Error(`We couldn't determine a Preview name from CI or Git. The name is optional when a branch is available. Otherwise, run:
4
+ Delete a Preview.`).positional(`name`,{type:`string`,description:`Identifier for the Preview, which can be ID, slug, or URL-encoded name.`,demandOption:!0}).option(`worker`,{type:`string`,description:`Identifier for the Worker, which can be ID or name.`,demandOption:!0}).option(`delete-with-references`,{type:`boolean`,description:`If true, delete the Preview even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Preview 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 q={command:`delete <name>`,describe:`Delete Preview`,builder:K,handler:async l=>z({command:`previews delete`,classification:{safeFlags:[`delete-with-references`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},l,async()=>{let u={force:l[`delete-with-references`]};if(l.dryRun){let e=await s();n({command:`cf previews delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/workers/workers/${l.worker==null?`<worker>`:encodeURIComponent(String(l.worker))}/previews/${l.name==null?`<name>`:encodeURIComponent(String(l.name))}`,pathParams:{worker:String(l.worker??``),name:String(l.name??``)},query:u,bodyKind:`none`});return}let d=await t(l),f=l.local?r:await c();if(l.accountId=f,!await o({force:!!l.force,message:`This operation permanently deletes the Preview.`}))return;let p=await a(`Deleting`,async()=>e(d,`DELETE`,`/accounts/${f}/workers/workers/${encodeURIComponent(String(l.worker))}/previews/${encodeURIComponent(String(l.name))}`,{query:u}));i(p,{successLabel:`Deleted`})})};function J(e){return{getNormalizedContainerOptions:async t=>e.standard.normalized.map(e=>({...e,name:t.containers?.find(({class_name:t})=>t===e.class_name)?.name??e.name})),deployPreviewContainers:async(t,n,r,i,a)=>Y(a.quiet,async()=>{let o=/* @__PURE__ */ new Map;for(let e of Object.values(r.env??{}))e.type===`durable_object_namespace`&&e.class_name&&e.namespace_id&&e.script_name===void 0&&o.set(e.class_name,e.namespace_id);let s;for(let c of n){let n=o.get(c.class_name);if(n||=(s??=await _(t,i),s.find(e=>e.class===c.class_name&&e.preview?.id===r.preview_id)?.id),!n)throw Error(`Could not find a Preview Durable Object namespace for Container class "${c.class_name}".`);let l=await X(c,e,r.id,i,t,a.localImageReferences?.get(c.class_name));await p({imageRef:l,durable_object_namespace_id:n,configFileName:`cloudflare.config.ts`,observabilityTargetPercentageField:`targetInstancePercentage`,observabilityTargetCountField:`targetInstanceCount`},c,t,i)}await d(e.standard.builtImages.filter(({container:e})=>!a.localImageReferences?.has(e.class_name)),A())})}}async function Y(e,t){if(!e)return t();let n=U();H(`error`);try{return await t()}finally{H(n)}}async function X(e,t,n,r,i,a){if(a!==void 0)return l({pathToDocker:A(),sourceTag:a,targetTag:a,accountId:r,complianceConfig:i,containerConfig:`dockerfile`in e?e:void 0,cleanupSourceTag:!1});let o=t.standard.builtImages.find(({container:t})=>t.class_name===e.class_name);if(o)return g(o,n,A(),r,i);if(`image_uri`in e)return{newTag:e.image_uri};throw Error(`Container "${e.name}" has no Build Output image to deploy.`)}function Z(e){return e.positional(`directory`,C).option(`preview-name`,{type:`string`,description:`Preview name. Defaults to the current CI or Git branch; required if no branch is available.`}).option(`prebuilt`,{type:`boolean`,description:`Use existing Preview Build Output Specification files without building`,default:!1}).option(`worker`,j)}function Q(e){return{type:`preview`,version:1,preview_id:e.preview.id,preview_name:e.preview.name,preview_slug:e.preview.slug,preview_urls:e.preview.urls,deployment_id:e.deployment.id,deployment_urls:e.deployment.urls}}async function $(e){let t=e[`preview-name`],n=t??y();if(!n||!t&&n===`HEAD`)throw Error(`We couldn't determine a Preview name from CI or Git. The name is optional when a branch is available. Otherwise, run:
5
5
 
6
- cf previews deploy --preview-name PREVIEW_NAME`);let r=await E(e,{isPreview:!0});return!e.prebuilt&&!r&&await P(e.mode,{output:e.quiet?`silent`:`stderr`,worker:e.worker},{isPreview:!0}),B(e,()=>$(e,n))}async function $(e,t){let n=await W(process.cwd());w(n.rootConfig),ee(e.mode,n.rootConfig.buildContext.mode),F(n.rootConfig.accountId,e[`temporary-account`]);let r=j(n.workers,e.worker),{wranglerConfig:i,builtConfig:a}=N(r,n.rootConfig),o=k(i),{authToken:s,accountId:c}=await v({accountId:n.rootConfig.accountId,complianceRegion:o,isPreview:!0}),l=h(s);b({...l,logger:{...l.logger,log:()=>{},info:()=>{}}}),u({logger:{...l.logger,debug:()=>{},debugWithSanitization:()=>{},log:()=>{},info:()=>{}},fetchResult:l.fetchResult,fetchPagedListResult:l.fetchPagedListResult});let d=new Set(Object.values(a.exports??{}).filter(x).map(({container:e})=>e)),p=n.containers?.filter(({config:e})=>d.has(e.name))??[],g=T(p,i,{accountId:c}),_=g.source;if(_?.some(e=>e.scheduling_policy===`durable_object`))throw new M(`Preview deployments do not support Durable Object-managed Containers (schedulingPolicy: "durable-object").`);_&&_.length>0&&f(c,s,O(i));let y=await S(c,{name:t,json:!0},{workerConfig:a,rootConfig:n.rootConfig,containers:p.filter(({config:e})=>_?.some(({name:t})=>t===e.name)).map(({config:e})=>e),buildResult:r.bundleDir?z(r,a):void 0,assets:r.assetsDir?{directory:r.assetsDir}:void 0},{deployCommand:`cf deploy`,previewCommand:`cf previews deploy`,...q(g),verifyContainersScope:async()=>{await m.listApplications()}});return D({...Z(y),worker_name:a.name??null}),y}var te=L({command:`deploy [directory]`,describe:`Deploy a Worker Preview`,builder:X,handler:async e=>{if(e.local)throw Error(`--local is not supported by cf previews deploy.`);let t=await Q(e);i(Z(t),{quiet:e.quiet})}},{command:`previews deploy`,classification:{safeFlags:[`prebuilt`]}});const ne={command:`previews`,describe:`Manage Worker Previews`,builder:e=>e.command(K).command(U(te,`preview`)).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{ne as default};
6
+ cf previews deploy --preview-name PREVIEW_NAME`);let r=await E(e,{isPreview:!0});return!e.prebuilt&&!r&&await F(e.mode,{output:e.quiet?`silent`:`stderr`,worker:e.worker},{isPreview:!0}),V(e,()=>te(e,n))}async function te(e,t){let n=await G(process.cwd());w(n.rootConfig),P(e.mode,n.rootConfig.buildContext.mode),M(n.rootConfig.accountId,e[`temporary-account`]);let{worker:r}=N(ee(n.workers,e.worker)),{wranglerConfig:i,builtConfig:a}=I(r,n.rootConfig),o=k(i),{authToken:s,accountId:c}=await v({accountId:n.rootConfig.accountId,complianceRegion:o,isPreview:!0}),l=h(s);b({...l,logger:{...l.logger,log:()=>{},info:()=>{}}}),u({logger:{...l.logger,debug:()=>{},debugWithSanitization:()=>{},log:()=>{},info:()=>{}},fetchResult:l.fetchResult,fetchPagedListResult:l.fetchPagedListResult});let d=new Set(Object.values(a.exports??{}).filter(x).map(({container:e})=>e)),p=n.containers?.filter(({config:e})=>d.has(e.name))??[],g=T(p,i,{accountId:c}),_=g.source;if(_?.some(e=>e.scheduling_policy===`durable_object`))throw new L(`Preview deployments do not support Durable Object-managed Containers (schedulingPolicy: "durable-object").`);_&&_.length>0&&f(c,s,O(i));let y=await S(c,{name:t,json:!0},{workerConfig:a,rootConfig:n.rootConfig,containers:p.filter(({config:e})=>_?.some(({name:t})=>t===e.name)).map(({config:e})=>e),buildResult:r.bundleDir?B(r,a,n.root):void 0,assets:r.assetsDir?{directory:r.assetsDir}:void 0},{deployCommand:`cf deploy`,previewCommand:`cf previews deploy`,...J(g),verifyContainersScope:async()=>{await m.listApplications()}});return D({...Q(y),worker_name:a.name??null}),y}var ne=R({command:`deploy [directory]`,describe:`Deploy a Worker Preview`,builder:Z,handler:async e=>{if(e.local)throw Error(`--local is not supported by cf previews deploy.`);let t=await $(e);i(Q(t),{quiet:e.quiet})}},{command:`previews deploy`,classification:{safeFlags:[`prebuilt`]}});const re={command:`previews`,describe:`Manage Worker Previews`,builder:e=>e.command(q).command(W(ne,`preview`)).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{re as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{s as e}from"./log-Brx-wjJW.mjs";import{n as t}from"./version-pcpa_kv3.mjs";import{n}from"./interactive-wQM7Blhm.mjs";import{t as r}from"./args-BAOHroBC.mjs";import{t as i}from"./session-BEsQIuwP.mjs";import{t as a}from"./theme-BGHWSKCw.mjs";const o={Hidden:0,Normal:1,Error:2,Indeterminate:3,Warning:4},s=new class{cleanupRegistered=!1;get isDisabled(){return process.env.CF_NO_OSC_PROGRESS===`1`||process.env.CF_QUIET===`1`||r()}get isSupported(){if(this.isDisabled||!process.stderr.isTTY)return!1;if(process.env.CF_FORCE_OSC_PROGRESS===`1`)return!0;let e=process.env.TERM_PROGRAM?.toLowerCase()??``;return!!(e.includes(`ghostty`)||e.includes(`iterm`)||e.includes(`wezterm`)||process.env.WT_SESSION||process.env.ConEmuANSI===`ON`)}setIndeterminate(){this.isSupported&&(this.ensureCleanup(),this.write(o.Indeterminate))}clear(){this.isSupported&&process.stderr.write(`\x1b]9;4;${o.Hidden};0\x07`)}ensureCleanup(){this.cleanupRegistered||(this.cleanupRegistered=!0,process.on(`exit`,()=>{this.clear()}))}write(e){this.isSupported&&process.stderr.write(`\x1b]9;4;${e};0\x07`)}},c=[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`];function l(){return!(!a(process.env,process.stderr.isTTY===!0)||n()||process.env.CF_QUIET===`1`)}async function u(n,r){if(!l())return r();i(t);let a=e({frames:[...c],indicator:`timer`,delay:80,output:process.stderr});s.setIndeterminate(),a.start(n);let o=e=>process.exit(e===`SIGTERM`?143:130),u=e=>{e===0&&(process.exitCode=130)};process.on(`SIGINT`,o),process.on(`SIGTERM`,o),process.on(`exit`,u);try{let e=await r();return s.clear(),a.stop(n),e}catch(e){throw s.clear(),a.error(n),e}finally{process.off(`SIGINT`,o),process.off(`SIGTERM`,o),process.off(`exit`,u)}}export{u as t};
2
+ import{s as e}from"./log-Brx-wjJW.mjs";import{n as t}from"./version-5uL0ecbB.mjs";import{n}from"./interactive-wQM7Blhm.mjs";import{t as r}from"./args-BAOHroBC.mjs";import{t as i}from"./session-CgJ6kB79.mjs";import{t as a}from"./theme-BGHWSKCw.mjs";const o={Hidden:0,Normal:1,Error:2,Indeterminate:3,Warning:4},s=new class{cleanupRegistered=!1;get isDisabled(){return process.env.CF_NO_OSC_PROGRESS===`1`||process.env.CF_QUIET===`1`||r()}get isSupported(){if(this.isDisabled||!process.stderr.isTTY)return!1;if(process.env.CF_FORCE_OSC_PROGRESS===`1`)return!0;let e=process.env.TERM_PROGRAM?.toLowerCase()??``;return!!(e.includes(`ghostty`)||e.includes(`iterm`)||e.includes(`wezterm`)||process.env.WT_SESSION||process.env.ConEmuANSI===`ON`)}setIndeterminate(){this.isSupported&&(this.ensureCleanup(),this.write(o.Indeterminate))}clear(){this.isSupported&&process.stderr.write(`\x1b]9;4;${o.Hidden};0\x07`)}ensureCleanup(){this.cleanupRegistered||(this.cleanupRegistered=!0,process.on(`exit`,()=>{this.clear()}))}write(e){this.isSupported&&process.stderr.write(`\x1b]9;4;${e};0\x07`)}},c=[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`];function l(){return!(!a(process.env,process.stderr.isTTY===!0)||n()||process.env.CF_QUIET===`1`)}async function u(n,r){if(!l())return r();i(t);let a=e({frames:[...c],indicator:`timer`,delay:80,output:process.stderr});s.setIndeterminate(),a.start(n);let o=e=>process.exit(e===`SIGTERM`?143:130),u=e=>{e===0&&(process.exitCode=130)};process.on(`SIGINT`,o),process.on(`SIGTERM`,o),process.on(`exit`,u);try{let e=await r();return s.clear(),a.stop(n),e}catch(e){throw s.clear(),a.error(n),e}finally{process.off(`SIGINT`,o),process.off(`SIGTERM`,o),process.off(`exit`,u)}}export{u as t};
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import{a as e,c as t,l as n,n as r,o as i,r as a}from"./log-Brx-wjJW.mjs";import{n as o}from"./version-pcpa_kv3.mjs";import{t as s}from"./cli-exit-CstFZ1eJ.mjs";import{i as c}from"./dialog-CD94-Kzw.mjs";import{n as l}from"./interactive-wQM7Blhm.mjs";import{t as u}from"./session-BEsQIuwP.mjs";import{t as d}from"./sanitize-DHx5dAJu.mjs";import{r as f}from"./theme-BGHWSKCw.mjs";function p(){u(o)}async function m(){let e=[];for await(let t of process.stdin)e.push(Buffer.from(t));let t=Buffer.concat(e).toString(`utf-8`);return t.endsWith(`
2
+ import{a as e,c as t,l as n,n as r,o as i,r as a}from"./log-Brx-wjJW.mjs";import{n as o}from"./version-5uL0ecbB.mjs";import{t as s}from"./cli-exit-CstFZ1eJ.mjs";import{i as c}from"./dialog-CD94-Kzw.mjs";import{n as l}from"./interactive-wQM7Blhm.mjs";import{t as u}from"./session-CgJ6kB79.mjs";import{t as d}from"./sanitize-DHx5dAJu.mjs";import{r as f}from"./theme-BGHWSKCw.mjs";function p(){u(o)}async function m(){let e=[];for await(let t of process.stdin)e.push(Buffer.from(t));let t=Buffer.concat(e).toString(`utf-8`);return t.endsWith(`
3
3
  `)?t.slice(0,-1):t}async function h(r,i,a){let o=a?.kind??`text`;if(l()){if(o===`secret`){let e=await m();if(e.length>0)return e;throw Error(`--${r} is required. Pipe the value via stdin, pass --${r} <value>, or run interactively.`)}throw Error(`--${r} is required. Pass --${r} <value> or run interactively.`)}let u=`Enter value for --${r}`,d=c(i||a?.question||u),f=e=>e&&e.length>0?a?.validate?.(e):`Value cannot be empty`;p();let h=o===`secret`?await e({message:d,mask:`•`,validate:f,output:process.stderr}):await t({message:d,validate:f,output:process.stderr});if(n(h)||typeof h!=`string`)throw new s(130,{cancelled:!0});return h}async function g(e,t,r,a={}){let o=d(e),c=r.map(d);if(l())throw Error(`--${o} is required (one of: ${c.join(`, `)}). Pass --${o} <value> or run interactively.`);let u=`Select value for --${o}`,f=d(t||u);p();let m=await i({message:f,output:process.stderr,options:r.map(e=>{let t=Object.hasOwn(a,e)?a[e]:void 0;return{value:e,label:d(t??e)}})});if(n(m)||typeof m!=`string`)throw new s(130,{cancelled:!0});return m}async function _(e,t){if(l())throw Error(`--${e} is required and must be true. Pass --${e} or run interactively.`);p();let r=await a({message:t||`Confirm --${e}`,initialValue:!1,output:process.stderr});if(n(r))throw new s(130,{cancelled:!0});return r===!0}async function v(e,{defaultValue:t=!0,fallbackValue:r=!0}={}){if(l())return process.stderr.write(`? ${e}\n Using fallback value in non-interactive context: ${r?`yes`:`no`}\n`),r;p();let i=await a({message:e,initialValue:t,output:process.stderr});if(n(i))throw new s(130,{cancelled:!0});return i===!0}async function y(e={}){if(e.force===!0)return!0;let t=e.message?`${e.message} Continue?`:`This permanently deletes the resource. Continue?`;if(l())throw process.stderr.write(`${f.warning(`?`)} ${t}\n ${f.muted(`(non-interactive; pass --force to confirm)`)}\nAborted.
4
4
  `),new s(1);p();let i=await a({message:t,initialValue:!1,output:process.stderr});if(n(i))throw new s(130,{cancelled:!0});return i===!0||(r(`Aborted.`,{output:process.stderr}),!1)}export{h as a,g as i,y as n,_ as r,v 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,t as o}from"./context-DlFhI9cN.mjs";import{t as s}from"./dry-run-mrA7FFLR.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{t as l}from"./local-B3zt9PXR.mjs";import{t as u}from"./run-DAg7dfIW.mjs";import{t as d}from"./output-PRKYaJuo.mjs";import{t as f}from"./progress-AML-AVs4.mjs";import{a as p,i as m,n as h}from"./prompt-Bnon9lfK.mjs";import"./telemetry-DDs3zhdw.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers`,body:`json`};function _(e){return e.usage(`$0 queues consumers create <queue-id>
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,t as o}from"./context-DsVjrTbe.mjs";import{t as s}from"./dry-run-mrA7FFLR.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{t as l}from"./local-B3zt9PXR.mjs";import{t as u}from"./run-DAK_kbUa.mjs";import{t as d}from"./output-PRKYaJuo.mjs";import{t as f}from"./progress-DItBn6ZV.mjs";import{a as p,i as m,n as h}from"./prompt-BGz3DNLz.mjs";import"./telemetry-B3S5OfOn.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers`,body:`json`};function _(e){return e.usage(`$0 queues consumers create <queue-id>
3
3
 
4
4
  Creates a consumer for a Queue.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dead-letter-queue`,{type:`string`,description:`The dead_letter_queue field`}).option(`script-name`,{type:`string`,description:`Name of a Worker`}).option(`settings-batch-size`,{type:`number`,description:`The maximum number of messages to include in a batch.`}).option(`settings-max-concurrency`,{type:`number`,description:"Maximum number of concurrent consumers that may consume from this Queue. Set to `null` to automatically opt in to the platform's maximum (recommended)."}).option(`settings-max-retries`,{type:`number`,description:`The maximum number of retries`}).option(`settings-max-wait-time-ms`,{type:`number`,description:`The number of milliseconds to wait for a batch to fill up before attempting to deliver it`}).option(`settings-retry-delay`,{type:`number`,description:`The number of seconds to delay before making the message available for another attempt.`}).option(`settings-visibility-timeout-ms`,{type:`number`,description:`The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.`}).option(`type`,{type:`string`,description:`The type field`,choices:[`worker`,`http_pull`]}).coerce(`type`,e=>c(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating or updating a consumer`}).conflicts(`script-name`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-concurrency`,[`settings-visibility-timeout-ms`]).implies(`settings-max-concurrency`,[`script-name`]).conflicts(`settings-max-wait-time-ms`,[`settings-visibility-timeout-ms`]).implies(`settings-max-wait-time-ms`,[`script-name`]).conflicts(`settings-visibility-timeout-ms`,[`script-name`,`settings-max-concurrency`,`settings-max-wait-time-ms`])}const v={command:`create <queue-id>`,describe:`Create a Queue Consumer`,builder:_,handler:async e=>u({command:`queues consumers create`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();s({command:`cf queues consumers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers`,pathParams:{"queue-id":String(e[`queue-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({dead_letter_queue:c(e[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:c(e[`script-name`],`script-name`,`text`),settings:{batch_size:e[`settings-batch-size`],max_concurrency:e[`settings-max-concurrency`],max_retries:e[`settings-max-retries`],max_wait_time_ms:e[`settings-max-wait-time-ms`],retry_delay:e[`settings-retry-delay`],visibility_timeout_ms:e[`settings-visibility-timeout-ms`]},type:e.type}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),u=await t(e),h=e.local?l:await o();if(e.accountId=h,e.body!==void 0){let t=n,r=await f(`Creating`,async()=>u.send(g,{body:t,account_id:h,queue_id:e[`queue-id`]}));d(r,{successLabel:`Created`});return}e.type===void 0&&(e.type=await m(`type`,`The type field`,[`worker`,`http_pull`])),e.type===`worker`&&e[`script-name`]===void 0&&(e[`script-name`]=await p(`script-name`,`Name of a Worker`,{question:`Enter value for --script-name`}));let _=i({dead_letter_queue:c(e[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:c(e[`script-name`],`script-name`,`text`),settings:{batch_size:e[`settings-batch-size`],max_concurrency:e[`settings-max-concurrency`],max_retries:e[`settings-max-retries`],max_wait_time_ms:e[`settings-max-wait-time-ms`],retry_delay:e[`settings-retry-delay`],visibility_timeout_ms:e[`settings-visibility-timeout-ms`]},type:e.type}),v=await f(`Creating`,async()=>u.send(g,{body:_,account_id:h,queue_id:e[`queue-id`]}));d(v,{successLabel:`Created`})})};var ee={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers/${t.consumer_id}`};function te(e){return e.usage(`$0 queues consumers delete <consumer-id>
5
5
 
@@ -17,9 +17,9 @@ Deletes a Queue.`).positional(`queue-id`,{type:`string`,description:`A Resource
17
17
 
18
18
  Updates part of a Queue's configuration.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`eu`,`us`,`fedramp`]}).coerce(`jurisdiction`,e=>c(e,`jurisdiction`,`text`)).option(`queue-name`,{type:`string`,description:`The queue_name field`}).option(`settings-delivery-delay`,{type:`number`,description:`Number of seconds to delay delivery of all messages to consumers.`}).option(`settings-delivery-paused`,{type:`boolean`,description:`Indicates if message delivery to consumers is currently paused.`}).option(`settings-message-retention-period`,{type:`number`,description:`Number of seconds after which an unconsumed message will be delayed.`}).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 j={command:`edit <queue-id>`,describe:`Update Queue`,builder:A,handler:async e=>u({command:`queues edit`,classification:{safeFlags:[`jurisdiction`,`settings-delivery-paused`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();s({command:`cf queues edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}`,pathParams:{"queue-id":String(e[`queue-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({jurisdiction:e.jurisdiction,queue_name:c(e[`queue-name`],`queue-name`,`text`),settings:{delivery_delay:e[`settings-delivery-delay`],delivery_paused:e[`settings-delivery-paused`],message_retention_period:e[`settings-message-retention-period`]}}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),u=await t(e),p=e.local?l:await o();if(e.accountId=p,e.body!==void 0){let t=n,r=await f(`Updating`,async()=>u.send(k,{body:t,account_id:p,queue_id:e[`queue-id`]}));d(r,{successLabel:`Updated`});return}let m=i({jurisdiction:e.jurisdiction,queue_name:c(e[`queue-name`],`queue-name`,`text`),settings:{delivery_delay:e[`settings-delivery-delay`],delivery_paused:e[`settings-delivery-paused`],message_retention_period:e[`settings-message-retention-period`]}}),h=await f(`Updating`,async()=>u.send(k,{body:m,account_id:p,queue_id:e[`queue-id`]}));d(h,{successLabel:`Updated`})})};var M={method:`GET`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}`};function N(e){return e.usage(`$0 queues get <queue-id>
19
19
 
20
- Returns details about a specific Queue.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`get <queue-id>`,describe:`Get Queue`,builder:N,handler:async e=>u({command:`queues get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();s({command:`cf queues get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}`,pathParams:{"queue-id":String(e[`queue-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=e.local?l:await o();e.accountId=r;let i=await f(`Loading`,async()=>n.send(M,{account_id:r,queue_id:e[`queue-id`]}));d(i,{successLabel:`Loaded`})})};var F={method:`GET`,path:t=>e`/accounts/${t.account_id}/queues`};function I(e){return e.usage(`$0 queues list
20
+ Returns details about a specific Queue.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`get <queue-id>`,describe:`Get Queue`,builder:N,handler:async e=>u({command:`queues get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();s({command:`cf queues get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}`,pathParams:{"queue-id":String(e[`queue-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=e.local?l:await o();e.accountId=r;let i=await f(`Loading`,async()=>n.send(M,{account_id:r,queue_id:e[`queue-id`]}));d(i,{successLabel:`Loaded`})})};var F={method:`GET`,path:t=>e`/accounts/${t.account_id}/queues`,query:[`page`,`per_page`]};function I(e){return e.usage(`$0 queues list
21
21
 
22
- Returns the queues owned by an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`list`,describe:`List Queues`,builder:I,handler:async e=>u({command:`queues list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();s({command:`cf queues list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/queues`,pathParams:{},bodyKind:`none`});return}let n=await t(e),r=e.local?l:await o();e.accountId=r;let i=await f(`Loading`,async()=>n.send(F,{account_id:r}));d(i,{successLabel:`Loaded`})})};var R={method:`POST`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/messages/ack`,body:`json`};function z(e){return e.usage(`$0 queues messages ack <queue-id>
22
+ Returns the queues owned by an account.`).option(`page`,{type:`number`,description:`Page number of queues, starting at 1.`}).option(`per-page`,{type:`number`,description:`Number of queues per page. Takes precedence over the legacy perPage query parameter.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`list`,describe:`List Queues`,builder:I,handler:async e=>u({command:`queues list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await a();s({command:`cf queues list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/queues`,pathParams:{},query:n,bodyKind:`none`});return}let r=await t(e),i=e.local?l:await o();e.accountId=i;let c=await f(`Loading`,async()=>r.send(F,{account_id:i,...n}));d(c,{successLabel:`Loaded`})})};var R={method:`POST`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/messages/ack`,body:`json`};function z(e){return e.usage(`$0 queues messages ack <queue-id>
23
23
 
24
24
  Acknowledges successfully processed Queue messages and retries messages that were not processed successfully.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`acks`,{type:`string`,description:`The acks field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"lease_id"?: string}]. ? marks optional keys.`}).option(`retries`,{type:`string`,description:`The retries field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"delay_seconds"?: number, "lease_id"?: string}]. ? marks optional keys.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const B={command:`ack <queue-id>`,describe:`Acknowledge + Retry Queue Messages`,builder:z,handler:async e=>u({command:`queues messages ack`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();s({command:`cf queues messages ack`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/messages/ack`,pathParams:{"queue-id":String(e[`queue-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({acks:n(e.acks,`acks`),retries:n(e.retries,`retries`)}):r(e.body)});return}let c=e.body===void 0?void 0:r(e.body),u=await t(e),p=e.local?l:await o();if(e.accountId=p,e.body!==void 0){let t=c,n=await f(`Creating`,async()=>u.send(R,{body:t,account_id:p,queue_id:e[`queue-id`]}));d(n,{successLabel:`Created`});return}let m=i({acks:n(e.acks,`acks`),retries:n(e.retries,`retries`)}),h=await f(`Creating`,async()=>u.send(R,{body:m,account_id:p,queue_id:e[`queue-id`]}));d(h,{successLabel:`Created`})})};var V={method:`POST`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/messages/batch`,body:`json`};function H(e){return e.usage(`$0 queues messages bulk-push
25
25
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e,n as t}from"./auth-cj71dGxS.mjs";import{t as n}from"./path-DRw6Y-nd.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{t as i}from"./local-B3zt9PXR.mjs";import{a,t as o}from"./context-DlFhI9cN.mjs";import{t as s}from"./output-PRKYaJuo.mjs";import{t as c}from"./progress-AML-AVs4.mjs";import{a as l,i as u,n as d}from"./prompt-Bnon9lfK.mjs";import{t as f}from"./run-DAg7dfIW.mjs";import"./telemetry-DDs3zhdw.mjs";import{c as p,o as m,r as h,t as g}from"./body-parser-HN91kAf0.mjs";import{n as _,t as v}from"./input-validation-D7z60HJH.mjs";import"./api-Dnt6lRJG.mjs";import{n as y,t as b}from"./raw-fetch-0T1SwPa1.mjs";import{t as x}from"./body-unions-QFGGUlIr.mjs";function ee(e){return e.usage(`$0 r2 buckets cors delete <bucket-name>
2
+ import{i as e,n as t}from"./auth-CRq9OQKr.mjs";import{t as n}from"./path-DRw6Y-nd.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{t as i}from"./local-B3zt9PXR.mjs";import{a,t as o}from"./context-DsVjrTbe.mjs";import{t as s}from"./output-PRKYaJuo.mjs";import{t as c}from"./progress-DItBn6ZV.mjs";import{a as l,i as u,n as d}from"./prompt-BGz3DNLz.mjs";import{t as f}from"./run-DAK_kbUa.mjs";import"./telemetry-B3S5OfOn.mjs";import{c as p,o as m,r as h,t as g}from"./body-parser-HN91kAf0.mjs";import{n as _,t as v}from"./input-validation-D7z60HJH.mjs";import"./api-Dnt6lRJG.mjs";import{n as y,t as b}from"./raw-fetch-CmI3Ol3q.mjs";import{t as x}from"./body-unions-QFGGUlIr.mjs";function ee(e){return e.usage(`$0 r2 buckets cors delete <bucket-name>
3
3
 
4
4
  Delete the CORS policy for a bucket.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).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 te={command:`delete <bucket-name>`,describe:`Delete Bucket CORS Policy`,builder:ee,handler:async n=>f({command:`r2 buckets cors delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{let l={};if(n[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(n[`cf-r2-jurisdiction`])),n.dryRun){let e=await a();r({command:`cf r2 buckets cors delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/r2/buckets/${n[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(n[`bucket-name`]))}/cors`,pathParams:{"bucket-name":String(n[`bucket-name`]??``)},bodyKind:`none`});return}let u=await t(n),f=n.local?i:await o();if(n.accountId=f,!await d({force:!!n.force,message:`This removes the R2 bucket's CORS policy. Browser requests that depend on these cross-origin permissions may fail.`}))return;let p=await c(`Deleting`,async()=>e(u,`DELETE`,`/accounts/${f}/r2/buckets/${encodeURIComponent(String(n[`bucket-name`]))}/cors`,{headers:Object.keys(l).length>0?l:void 0}));s(p,{successLabel:`Deleted`})})};function ne(e){return e.usage(`$0 r2 buckets cors get <bucket-name>
5
5
 
@@ -43,7 +43,7 @@ Lists background jobs for an R2 bucket, including prefix-delete (and bucket-empt
43
43
 
44
44
  Get object lifecycle rules for a bucket.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const we={command:`get <bucket-name>`,describe:`Get Object Lifecycle Rules`,builder:Ce,handler:async n=>f({command:`r2 buckets lifecycle get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{let l={};if(n[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(n[`cf-r2-jurisdiction`])),n.dryRun){let e=await a();r({command:`cf r2 buckets lifecycle get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/r2/buckets/${n[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(n[`bucket-name`]))}/lifecycle`,pathParams:{"bucket-name":String(n[`bucket-name`]??``)},bodyKind:`none`});return}let u=await t(n),d=n.local?i:await o();n.accountId=d;let f=await c(`Loading`,async()=>e(u,`GET`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(n[`bucket-name`]))}/lifecycle`,{headers:Object.keys(l).length>0?l:void 0}));s(f,{successLabel:`Loaded`})})};function Te(e){return e.usage(`$0 r2 buckets lifecycle update <bucket-name>
45
45
 
46
- Replaces the object lifecycle rules for an R2 bucket. Rules match object-key prefixes and can expire objects, abort incomplete multipart uploads, or transition objects to Infrequent Access storage.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`rules`,{type:`string`,description:`The rules field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"conditions": {...}, "enabled": boolean, "id": string, "abortMultipartUploadsTransition"?: {...}, "deleteObjectsTransition"?: {...}, ...more}]. ? marks optional keys.`}).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}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ee={command:`update <bucket-name>`,describe:`Set Object Lifecycle Rules`,builder:Te,handler:async n=>f({command:`r2 buckets lifecycle update`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{let l={};if(n[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(n[`cf-r2-jurisdiction`])),n.dryRun){let e=await a();r({command:`cf r2 buckets lifecycle update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/r2/buckets/${n[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(n[`bucket-name`]))}/lifecycle`,pathParams:{"bucket-name":String(n[`bucket-name`]??``)},bodyKind:`json`,body:n.body===void 0?g({rules:m(n.rules,`rules`)}):h(n.body)});return}let u=n.body===void 0?void 0:h(n.body),f=await t(n),_=n.local?i:await o();if(n.accountId=_,!await d({force:!!n.force,message:`This replaces the R2 bucket's object lifecycle rules and can schedule object deletion or abort multipart uploads.`}))return;if(n.body!==void 0){let t=u,r=await c(`Updating`,async()=>e(f,`PUT`,`/accounts/${_}/r2/buckets/${encodeURIComponent(String(n[`bucket-name`]))}/lifecycle`,{body:t,headers:Object.keys(l).length>0?l:void 0}));s(r,{successLabel:`Updated`});return}let v={};n.rules!==void 0&&p(v,[`rules`],m(n.rules,`rules`));let y=await c(`Updating`,async()=>e(f,`PUT`,`/accounts/${_}/r2/buckets/${encodeURIComponent(String(n[`bucket-name`]))}/lifecycle`,{body:v,headers:Object.keys(l).length>0?l:void 0}));s(y,{successLabel:`Updated`})})},De={command:`lifecycle`,describe:`Operations for buckets.lifecycle`,builder:e=>e.command(we).command(Ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Oe(e){return e.usage(`$0 r2 buckets list
46
+ Replaces the object lifecycle rules for an R2 bucket. Rules match object-key prefixes and can expire objects, abort incomplete multipart uploads, or transition objects to Infrequent Access storage.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`rules`,{type:`string`,description:`The rules field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"conditions": {...}, "enabled": boolean, "id": string, "abortMultipartUploadsTransition"?: {...}, "deleteObjectsTransition"?: {...}, ...more}]. ? marks optional keys.`}).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}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ee={command:`update <bucket-name>`,describe:`Set Object Lifecycle Rules`,builder:Te,handler:async n=>f({command:`r2 buckets lifecycle update`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{let l={};if(n[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(n[`cf-r2-jurisdiction`])),n.dryRun){let e=await a();r({command:`cf r2 buckets lifecycle update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/r2/buckets/${n[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(n[`bucket-name`]))}/lifecycle`,pathParams:{"bucket-name":String(n[`bucket-name`]??``)},bodyKind:`json`,body:n.body===void 0?g({rules:m(n.rules,`rules`)}):h(n.body)});return}let u=n.body===void 0?void 0:h(n.body),f=await t(n),_=n.local?i:await o();if(n.accountId=_,!await d({force:!!n.force,message:`This operation replaces all of the R2 bucket's object lifecycle rules. Rules left out of the request are removed, including the Default Multipart Abort Rule that aborts incomplete multipart uploads after 7 days, and the new rules can schedule object deletion.`}))return;if(n.body!==void 0){let t=u,r=await c(`Updating`,async()=>e(f,`PUT`,`/accounts/${_}/r2/buckets/${encodeURIComponent(String(n[`bucket-name`]))}/lifecycle`,{body:t,headers:Object.keys(l).length>0?l:void 0}));s(r,{successLabel:`Updated`});return}let v={};n.rules!==void 0&&p(v,[`rules`],m(n.rules,`rules`));let y=await c(`Updating`,async()=>e(f,`PUT`,`/accounts/${_}/r2/buckets/${encodeURIComponent(String(n[`bucket-name`]))}/lifecycle`,{body:v,headers:Object.keys(l).length>0?l:void 0}));s(y,{successLabel:`Updated`})})},De={command:`lifecycle`,describe:`Operations for buckets.lifecycle`,builder:e=>e.command(we).command(Ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Oe(e){return e.usage(`$0 r2 buckets list
47
47
 
48
48
  Lists a page of R2 buckets in the account and selected jurisdiction. Use the returned cursor to retrieve the next page.`).option(`name-contains`,{type:`string`,description:`Bucket names to filter by. Only buckets with this phrase in their name will be returned.`}).option(`start-after`,{type:`string`,description:`Bucket name to start searching after. Buckets are ordered lexicographically.`}).option(`per-page`,{type:`number`,description:`Maximum number of buckets to return in a single call.`}).option(`order`,{type:`string`,description:`Field to order buckets by.`,choices:[`name`]}).option(`direction`,{type:`string`,description:`Direction to order buckets.`,choices:[`asc`,`desc`]}).option(`cursor`,{type:`string`,description:`Pagination cursor received during the last List Buckets call. R2 buckets are paginated using cursors instead of page numbers.`}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ke={command:`list`,describe:`List Buckets`,builder:Oe,handler:async n=>f({command:`r2 buckets list`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},n,async()=>{let l={name_contains:n[`name-contains`],start_after:n[`start-after`],per_page:n[`per-page`],order:n.order,direction:n.direction,cursor:n.cursor},u={};if(n[`cf-r2-jurisdiction`]!==void 0&&(u[`cf-r2-jurisdiction`]=String(n[`cf-r2-jurisdiction`])),n.dryRun){let e=await a();r({command:`cf r2 buckets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/r2/buckets`,pathParams:{},query:l,bodyKind:`none`});return}let d=await t(n),f=n.local?i:await o();n.accountId=f;let p=await c(`Loading`,async()=>e(d,`GET`,`/accounts/${f}/r2/buckets`,{query:l,headers:Object.keys(u).length>0?u:void 0}));s(p,{successLabel:`Loaded`})})};var Ae={method:`GET`,path:e=>n`/accounts/${e.account_id}/r2/buckets/${e.bucket_name}/local-uploads`};function je(e){return e.usage(`$0 r2 buckets local-uploads get <bucket-name>
49
49