cf 0.9.0 → 0.10.0

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 (262) hide show
  1. package/README.md +5 -0
  2. package/dist/_meta/agent-context.json +34 -35
  3. package/dist/_meta/commands.json +6834 -10044
  4. package/dist/_meta/schemas.json +11228 -12752
  5. package/dist/{abuse-reports-DnNvw2gG.mjs → abuse-reports-CGF4zcKf.mjs} +2 -2
  6. package/dist/{access-RbqBFrSC.mjs → access-lhLJo1v2.mjs} +1 -1
  7. package/dist/{account-D7xvYqDx.mjs → account-CYRm3yoN.mjs} +1 -1
  8. package/dist/account-tags-B88TotoH.mjs +9 -0
  9. package/dist/accounts-BSIAT_iP.mjs +28 -0
  10. package/dist/{acm-Szq4CoQN.mjs → acm-VULm1djv.mjs} +1 -1
  11. package/dist/{addressing-CgTTbuCF.mjs → addressing-BHPBIkRY.mjs} +1 -1
  12. package/dist/{agent-context-Bu6yvDqA.mjs → agent-context-KBy48G1b.mjs} +1 -1
  13. package/dist/{agent-memory-C8pT01pR.mjs → agent-memory-DDv_Gxr7.mjs} +2 -2
  14. package/dist/{ai-audit-CCygMmsh.mjs → ai-audit-BWZGvbca.mjs} +1 -1
  15. package/dist/{ai-gateway-D4tATNRV.mjs → ai-gateway-jeB-sAgP.mjs} +1 -1
  16. package/dist/ai-search-BmdskMjR.mjs +7 -0
  17. package/dist/{ai-security-AUfzagSE.mjs → ai-security-CsmfcaUx.mjs} +1 -1
  18. package/dist/{ai-Cn0BniR4.mjs → ai-viHB1tgI.mjs} +1 -1
  19. package/dist/{alerting-DbXVpGv3.mjs → alerting-Bl8OqViR.mjs} +4 -4
  20. package/dist/analytics-vOxw8Hy0.mjs +3 -0
  21. package/dist/{analytics_engine-B_bMbfxW.mjs → analytics_engine-DO4-C0wD.mjs} +1 -1
  22. package/dist/{api-security-pSJdgmtK.mjs → api-security-4FVrD4n8.mjs} +1 -1
  23. package/dist/argo-CQfCgazW.mjs +2 -0
  24. package/dist/args-DlUhyGU0.mjs +2 -0
  25. package/dist/artifacts-CVDGnr2V.mjs +4 -0
  26. package/dist/{audit-logs-BIHP5-rk.mjs → audit-logs-CzpwvQ6A.mjs} +1 -1
  27. package/dist/{auth-MeSu8lFz.mjs → auth-D0xZxAEa.mjs} +1 -1
  28. package/dist/{auth-C6MhC9EZ.mjs → auth-MQEamPN9.mjs} +2 -2
  29. package/dist/{billing-0RNCYBJM.mjs → billing-aJgapeRm.mjs} +2 -2
  30. package/dist/{bot-management-uhBRnSPl.mjs → bot-management-Y2q5d-pi.mjs} +1 -1
  31. package/dist/{botnet-feed-DEbMknrE.mjs → botnet-feed-DANJqfmE.mjs} +1 -1
  32. package/dist/{brand-protection-DY2qPL8d.mjs → brand-protection-CjpZWBjp.mjs} +1 -1
  33. package/dist/{browser-extension-DBsmLCUj.mjs → browser-extension-BtpCbh-2.mjs} +1 -1
  34. package/dist/browser-run-BFn9h2Tz.mjs +4 -0
  35. package/dist/{build-Nivzj54_.mjs → build-DcflwvqN.mjs} +1 -1
  36. package/dist/{cache-BgRIDcFJ.mjs → cache-VyWK1SjY.mjs} +1 -1
  37. package/dist/{calls-JrRne0U0.mjs → calls-BxoRYxs4.mjs} +1 -1
  38. package/dist/{certificate-authorities-BJ7W8GGQ.mjs → certificate-authorities-D7OAFxF_.mjs} +1 -1
  39. package/dist/{cf-BUKsENG5.mjs → cf-C7DU4819.mjs} +2 -2
  40. package/dist/{chunk-LQW53VED-Xakf_rUn.mjs → chunk-LQW53VED-DLrXV-hE.mjs} +2 -2
  41. package/dist/{client-certificates-6xxvcOgI.mjs → client-certificates-DDUv8K0a.mjs} +1 -1
  42. package/dist/{client-side-security-cU0Z1tql.mjs → client-side-security-D4ysjwWT.mjs} +1 -1
  43. package/dist/{cloud-connector-DFooSAcn.mjs → cloud-connector-Bhec6z2P.mjs} +1 -1
  44. package/dist/cloudforce-one-J_hn9ss9.mjs +36 -0
  45. package/dist/config.mjs +1 -1
  46. package/dist/connector-interrupts-Dycx8zFx.mjs +2 -0
  47. package/dist/{connector-telemetry-events-CTMmX2BA.mjs → connector-telemetry-events-BmxOSNtN.mjs} +1 -1
  48. package/dist/connector-telemetry-events-latest-BY2556uL.mjs +2 -0
  49. package/dist/{connector-telemetry-snapshots-5Y7m8Cw8.mjs → connector-telemetry-snapshots-CdcqfKnH.mjs} +1 -1
  50. package/dist/connector-telemetry-snapshots-latest-BHYdxUEF.mjs +2 -0
  51. package/dist/{connectors-BRCQSsos.mjs → connectors-BqxYMMtQ.mjs} +1 -1
  52. package/dist/{containers-CfKOM_f5.mjs → containers-CKW081JA.mjs} +8 -8
  53. package/dist/{content-scan-CB4xHGv1.mjs → content-scan-Dgd7A8KF.mjs} +1 -1
  54. package/dist/{csamScanner-AQo_QTlq.mjs → csamScanner-DYL37wLc.mjs} +1 -1
  55. package/dist/{ct-alerting-Bai-1Z3k.mjs → ct-alerting-CkhSbfAs.mjs} +1 -1
  56. package/dist/{custom-certificates-D6aQIGu2.mjs → custom-certificates-BzAOnEoT.mjs} +1 -1
  57. package/dist/custom-csrs-CgzG3pd3.mjs +3 -0
  58. package/dist/{custom-hostnames-BiOVGwnR.mjs → custom-hostnames-q_nsnlye.mjs} +4 -4
  59. package/dist/custom-nameservers-BUBmfhUe.mjs +3 -0
  60. package/dist/custom-pages-M7jA2Hit.mjs +3 -0
  61. package/dist/{d1-FmAh7T7l.mjs → d1-BFvMd6-S.mjs} +1 -1
  62. package/dist/{data-security-2fmzF_Me.mjs → data-security-Bji4Or_j.mjs} +2 -2
  63. package/dist/{dcv-delegation-Cmxxgi9V.mjs → dcv-delegation-BuoRQ1Yh.mjs} +1 -1
  64. package/dist/{deploy-BzFbjH6a.mjs → deploy-CZ7bgNDu.mjs} +1 -1
  65. package/dist/{deploy-input-BRMQehgs.mjs → deploy-input-CrvuoDGJ.mjs} +1 -1
  66. package/dist/{dev-CWaf-qW4.mjs → dev-V10MG-Bg.mjs} +1 -1
  67. package/dist/{diagnostics-Ca6r_972.mjs → diagnostics-BTH-8nJH.mjs} +2 -2
  68. package/dist/{directory-CGNWfVQc.mjs → directory-BlH6N6Qy.mjs} +1 -1
  69. package/dist/{dispatch-namespaces-CBo5kuf7.mjs → dispatch-namespaces-BCjH1JzB.mjs} +1 -1
  70. package/dist/{dist-COfwjT96.mjs → dist-CgrMkXFx.mjs} +1 -1
  71. package/dist/{dls-CobKlH4N.mjs → dls-BF5iN78p.mjs} +1 -1
  72. package/dist/{dns-OfJXNYkK.mjs → dns-CeCTNqRk.mjs} +11 -11
  73. package/dist/{dns-firewall-DZ2ij-nX.mjs → dns-firewall-B54MaLGm.mjs} +1 -1
  74. package/dist/{dot-prop-6SRZBKHT-C_xd7eTS.mjs → dot-prop-6SRZBKHT-wIVDg_fl.mjs} +1 -1
  75. package/dist/{durable-objects-Cw_y37WB.mjs → durable-objects-D8FQORrL.mjs} +1 -1
  76. package/dist/{email-auth-DuJHdiwN.mjs → email-auth-DJK0Eb30.mjs} +1 -1
  77. package/dist/email-routing-NpmiKIrl.mjs +6 -0
  78. package/dist/{email-security-D-P8ln2L.mjs → email-security-BLZ7WZ9Z.mjs} +2 -2
  79. package/dist/email-sending-dn-353Nx.mjs +7 -0
  80. package/dist/fieldExtractors-ahysj57J.mjs +3 -0
  81. package/dist/firewall-CBPGJ43p.mjs +11 -0
  82. package/dist/{flagship-CPkQMist.mjs → flagship-BusjRNIb.mjs} +3 -3
  83. package/dist/{fraud-BhX0QNUl.mjs → fraud-BIhS8pLf.mjs} +1 -1
  84. package/dist/{google-tag-gateway-CDtRxao4.mjs → google-tag-gateway-TZZ3F1tV.mjs} +1 -1
  85. package/dist/{healthchecks-D2WwALvQ.mjs → healthchecks-FiXIk-KP.mjs} +2 -2
  86. package/dist/{hostnames-CGAFkYT1.mjs → hostnames-Bx0mykMR.mjs} +1 -1
  87. package/dist/{hyperdrive-zLFPWFQj.mjs → hyperdrive-C8qCabBF.mjs} +1 -1
  88. package/dist/{iam-Su_hpatD.mjs → iam-Cj63Kjc6.mjs} +1 -1
  89. package/dist/{images-D2ZflvBi.mjs → images-CBWXCDhy.mjs} +1 -1
  90. package/dist/index.mjs +1 -1
  91. package/dist/{intel-DPGzVovJ.mjs → intel-B-9Z_sJs.mjs} +2 -2
  92. package/dist/{interactive-CM2G03lr.mjs → interactive-DtsCYfrK.mjs} +1 -1
  93. package/dist/{ips-C5-NH1b0.mjs → ips-qs9eGJnI.mjs} +1 -1
  94. package/dist/{keyless-certificates-Xx-oAN3Z.mjs → keyless-certificates-THHvoXX3.mjs} +1 -1
  95. package/dist/{keys-B0FBtlOD.mjs → keys-D7N0j4-x.mjs} +1 -1
  96. package/dist/{kv-BbZ9st5o.mjs → kv-BFDUCnft.mjs} +1 -1
  97. package/dist/{leaked-credential-checks-Vonw4inx.mjs → leaked-credential-checks-DUlUCOoJ.mjs} +1 -1
  98. package/dist/load-balancers-D2zbQ8fT.mjs +6 -0
  99. package/dist/{local-eEF0NF51.mjs → local-D-aVNu6A.mjs} +1 -1
  100. package/dist/{local-runtime-BNCCOZ8s.mjs → local-runtime-Dh3keC5v.mjs} +1 -1
  101. package/dist/logexplorer-CUsfZ_bS.mjs +13 -0
  102. package/dist/{logo-matches-oHYc8Xaz.mjs → logo-matches-CJcthPHf.mjs} +1 -1
  103. package/dist/{logos-DS0krPAz.mjs → logos-BS65zN8q.mjs} +1 -1
  104. package/dist/logpush-BK34mMQs.mjs +4 -0
  105. package/dist/{logs-C07M9zn-.mjs → logs-CLAqX9h2.mjs} +1 -1
  106. package/dist/{magic-cloud-networking-ZPEK7O5I.mjs → magic-cloud-networking-h_ozrC5S.mjs} +1 -1
  107. package/dist/magic-network-monitoring-C7tAPNKP.mjs +4 -0
  108. package/dist/{magic-transit-CgPZ8iMn.mjs → magic-transit-BtsFePMx.mjs} +5 -5
  109. package/dist/{managed-transforms-2XyQ14s3.mjs → managed-transforms-Cm_KVCMB.mjs} +1 -1
  110. package/dist/{matches-CIaCrdrs.mjs → matches-InA1hwII.mjs} +1 -1
  111. package/dist/{mcp-D2afM8MD.mjs → mcp-mJ7bekNJ.mjs} +1 -1
  112. package/dist/mesh-BK4S1Ezy.mjs +4 -0
  113. package/dist/{moq-BBQVNGo1.mjs → moq-qmuVPAO0.mjs} +1 -1
  114. package/dist/{mtls-certificates-C5j0Gn65.mjs → mtls-certificates-CU4OAAXY.mjs} +1 -1
  115. package/dist/{network-CmuJqtFJ.mjs → network-D74cSy3t.mjs} +1 -1
  116. package/dist/{network-interconnects-BlajBQqs.mjs → network-interconnects-BJ0Nc48J.mjs} +1 -1
  117. package/dist/{oauth-BjHjJtnn.mjs → oauth-B0ETkNcX.mjs} +2 -2
  118. package/dist/{oauth-clients-BSthfZP-.mjs → oauth-clients-Br-smLxQ.mjs} +1 -1
  119. package/dist/{oauth-scopes-ByUp5bLU.mjs → oauth-scopes-D5bF11ju.mjs} +1 -1
  120. package/dist/observability-BWE0Gg3V.mjs +4 -0
  121. package/dist/{open-PBXRGS4R-C46yIm3u.mjs → open-PBXRGS4R-R-qesf18.mjs} +1 -1
  122. package/dist/{organization-DQIfNVCT.mjs → organization-NX7yCZrq.mjs} +1 -1
  123. package/dist/{organizations-L_ycAy6r.mjs → organizations-DLhiRt8g.mjs} +1 -1
  124. package/dist/{origin-ca-certificates-opIcs3_Q.mjs → origin-ca-certificates-Ff4McZRQ.mjs} +1 -1
  125. package/dist/{origin-post-quantum-encryption-TSMXzoEL.mjs → origin-post-quantum-encryption-UuTr4_SW.mjs} +1 -1
  126. package/dist/{origin-tls-client-auth-5CtcPUR6.mjs → origin-tls-client-auth-DOJ1zlH3.mjs} +1 -1
  127. package/dist/{output-DgW1hQGX.mjs → output-DrpYYfnB.mjs} +1 -1
  128. package/dist/{page-rules-DPd1Y3IL.mjs → page-rules-BSz1gO-_.mjs} +1 -1
  129. package/dist/{pages-CskAn5mR.mjs → pages-DVDogxPs.mjs} +4 -4
  130. package/dist/{pay-per-crawl-BMa_V40s.mjs → pay-per-crawl-BrLXK7gT.mjs} +1 -1
  131. package/dist/{pipelines-BbJjj1ZQ.mjs → pipelines-BszRk4sM.mjs} +2 -2
  132. package/dist/{precursor-DgRWBN9_.mjs → precursor-BPNjQr76.mjs} +1 -1
  133. package/dist/progress-CsHIt3Tp.mjs +2 -0
  134. package/dist/{prompt-DM4z101s.mjs → prompt-DdegNPpg.mjs} +1 -1
  135. package/dist/{queries-DrqcK0ZX.mjs → queries-JL1H1Biz.mjs} +1 -1
  136. package/dist/{queues-CutvMZcc.mjs → queues-DpkYdRUE.mjs} +1 -1
  137. package/dist/{r2-sFI62vhq.mjs → r2-CKozthw_.mjs} +4 -4
  138. package/dist/{r2-data-catalog-3vzU6FE1.mjs → r2-data-catalog-Du7hN9jA.mjs} +1 -1
  139. package/dist/radar-C-92vggG.mjs +2 -0
  140. package/dist/{rate-limits-HRZ8zMSl.mjs → rate-limits-yBF3qoYD.mjs} +1 -1
  141. package/dist/{raw-fetch-25gXED6c.mjs → raw-fetch-CteyTOM2.mjs} +1 -1
  142. package/dist/realtimekit-CIP7lP-a.mjs +7 -0
  143. package/dist/{registrar-C0EsXf83.mjs → registrar-DKKN0M29.mjs} +3 -3
  144. package/dist/{registrar-sandbox-CR9Rr7jV.mjs → registrar-sandbox-DiXg8p_1.mjs} +3 -3
  145. package/dist/{registry-CJvn75Bq.mjs → registry-Bck_zFkz.mjs} +1 -1
  146. package/dist/{reporting-BB6sqe6r.mjs → reporting-fg_GKXe1.mjs} +1 -1
  147. package/dist/{request-tracers-BrsM3zXZ.mjs → request-tracers-CkMya96z.mjs} +1 -1
  148. package/dist/{resource-sharing-CusU3kiy.mjs → resource-sharing-D1pSDvtf.mjs} +1 -1
  149. package/dist/{resource-tagging-wXAcblmz.mjs → resource-tagging-z48JGHCq.mjs} +1 -1
  150. package/dist/{rules-C2BxykEe.mjs → rules-BTmNjDN-.mjs} +1 -1
  151. package/dist/rulesets-CsoSM-17.mjs +5 -0
  152. package/dist/{rum-Dyno5zj3.mjs → rum-DB4iO2q5.mjs} +1 -1
  153. package/dist/{schema-BeXPWeK9.mjs → schema-B34Q9tLF.mjs} +1 -1
  154. package/dist/{schema-flags-C1BRprT2.mjs → schema-flags-iGoOriJt.mjs} +1 -1
  155. package/dist/{scim-Bb2xHpIz.mjs → scim-CcSyfKCH.mjs} +1 -1
  156. package/dist/sdk-ZctLa5jW.mjs +3 -0
  157. package/dist/{secrets-store-BMhjbceW.mjs → secrets-store-DFmvtphu.mjs} +1 -1
  158. package/dist/security-center-DFKeHq5c.mjs +2 -0
  159. package/dist/{security-txt-Bh_2gymk.mjs → security-txt-DqnFpjMI.mjs} +1 -1
  160. package/dist/{session-Br-q_UIW.mjs → session-D6KHthHf.mjs} +1 -1
  161. package/dist/{share-DfTpOxhk.mjs → share-BuwYUzOL.mjs} +1 -1
  162. package/dist/{shared-BNjZc02w.mjs → shared-VppSAQf4.mjs} +1 -1
  163. package/dist/{smart-shield-rHn-Lckq.mjs → smart-shield-D6X8L7p8.mjs} +2 -2
  164. package/dist/{snippets-nSLwH8uJ.mjs → snippets-DIpc9pb_.mjs} +1 -1
  165. package/dist/{spawn-Bj8QRFJ5.mjs → spawn-O1RS01vr.mjs} +2 -2
  166. package/dist/{spectrum-DuhSUTZI.mjs → spectrum-b7N1ZRAm.mjs} +1 -1
  167. package/dist/{speed-Dgby_e1J.mjs → speed-cw31yFva.mjs} +1 -1
  168. package/dist/src-D_HETJNy.mjs +108 -0
  169. package/dist/{ssl-BsxTHasY.mjs → ssl-CsEhRVTO.mjs} +1 -1
  170. package/dist/{state-C1m9nwUm.mjs → state-Bb5Cbc_L.mjs} +1 -1
  171. package/dist/{stream-CkEOX5Ko.mjs → stream-DFOao6Gu.mjs} +3 -3
  172. package/dist/{submit-BjdywxTq.mjs → submit--xTzyNPy.mjs} +1 -1
  173. package/dist/{tags-CFAw_Sce.mjs → tags-efICDkah.mjs} +1 -1
  174. package/dist/{tenant-C66iOy5O.mjs → tenant-CerHuToJ.mjs} +1 -1
  175. package/dist/{tenant-custom-nameservers-CyJZ_AB0.mjs → tenant-custom-nameservers-C4otMBm2.mjs} +1 -1
  176. package/dist/{tools-D2Xxfkrc.mjs → tools-BHfBOZOU.mjs} +1 -1
  177. package/dist/{triggers-Dv22ZXM4.mjs → triggers-BEsiiKAf.mjs} +1 -1
  178. package/dist/{tunnel-BatkLdds.mjs → tunnel-DkMiNtVY.mjs} +1 -1
  179. package/dist/{tunnels-CstoXOoq.mjs → tunnels-D0J8lJoI.mjs} +1 -1
  180. package/dist/{turnstile-IoRtama4.mjs → turnstile-CFmtY5bn.mjs} +2 -2
  181. package/dist/{ui-DjQ4AQww.mjs → ui-DE8CNn6c.mjs} +1 -1
  182. package/dist/{url-info-Hjhwr2la.mjs → url-info-DBCeRWwb.mjs} +1 -1
  183. package/dist/{url-normalization-C2BP_Kl0.mjs → url-normalization-ClfFiruK.mjs} +1 -1
  184. package/dist/{url-scanner-DmYVTdAE.mjs → url-scanner-CNyvg65L.mjs} +1 -1
  185. package/dist/{user-CVHm-cnB.mjs → user-bifVEQq5.mjs} +2 -2
  186. package/dist/{values-Cmlw5wGZ.mjs → values-OxkdP1tV.mjs} +1 -1
  187. package/dist/{vectorize-BQtIqiNO.mjs → vectorize-CVKu7lEt.mjs} +1 -1
  188. package/dist/{versions-CU6Av1vh.mjs → versions-BVL-Ludh.mjs} +1 -1
  189. package/dist/waiting-rooms-CmRAl51T.mjs +11 -0
  190. package/dist/{web-assets-DmSKaxzf.mjs → web-assets-C2s9kzWf.mjs} +1 -1
  191. package/dist/{web3-DVv4jNul.mjs → web3-y_cY91V_.mjs} +1 -1
  192. package/dist/{workers-builds-DgrejrUc.mjs → workers-builds-B55-oXOa.mjs} +4 -4
  193. package/dist/{workers-D8czeT64.mjs → workers-jDcq14GH.mjs} +6 -6
  194. package/dist/{workflows-BOi5MTEN.mjs → workflows-B-kGHxFu.mjs} +2 -2
  195. package/dist/{zaraz-CGSSFJng.mjs → zaraz-27zwjLvv.mjs} +1 -1
  196. package/dist/zero-trust-DV3sIOvu.mjs +92 -0
  197. package/dist/{zone-Bx5ElO9U.mjs → zone-BJix2KQ9.mjs} +1 -1
  198. package/dist/{zones-_SnlZMiM.mjs → zones-Bkj5i92c.mjs} +1 -1
  199. package/package.json +2 -2
  200. package/dist/account-tags-CKRh1jra.mjs +0 -9
  201. package/dist/accounts-2pGhN4s8.mjs +0 -28
  202. package/dist/ai-search-2xP8FP_W.mjs +0 -7
  203. package/dist/analytics-UQrIx99t.mjs +0 -3
  204. package/dist/argo-Br60zF3y.mjs +0 -2
  205. package/dist/artifacts-D8HMRQmb.mjs +0 -4
  206. package/dist/browser-run-C5pYOwtf.mjs +0 -4
  207. package/dist/cloudforce-one-Cp4bQmrG.mjs +0 -30
  208. package/dist/connector-interrupts-BR47snkh.mjs +0 -2
  209. package/dist/custom-csrs-D0zBkQT5.mjs +0 -4
  210. package/dist/custom-nameservers-G2MWpRwY.mjs +0 -3
  211. package/dist/custom-pages-BINNZTds.mjs +0 -4
  212. package/dist/email-CGOC_evd.mjs +0 -2
  213. package/dist/email-routing-CRvIUSFm.mjs +0 -6
  214. package/dist/email-sending-BwRN8PMW.mjs +0 -7
  215. package/dist/filters-DczM8qpH.mjs +0 -4
  216. package/dist/firewall-BMiETRmM.mjs +0 -11
  217. package/dist/load-balancers-Ct5cyyF9.mjs +0 -7
  218. package/dist/logexplorer-BhsAWxCr.mjs +0 -24
  219. package/dist/logpush-CFQBi88z.mjs +0 -5
  220. package/dist/magic-network-monitoring-CY3CHSpX.mjs +0 -4
  221. package/dist/media-CnxgOViL.mjs +0 -2
  222. package/dist/mesh-DLNLi3UT.mjs +0 -4
  223. package/dist/observability-B5p3iwrq.mjs +0 -4
  224. package/dist/progress-C-oFUtvC.mjs +0 -2
  225. package/dist/radar-Cu9rsTw_.mjs +0 -2
  226. package/dist/realtimekit-msnGHBbf.mjs +0 -7
  227. package/dist/rulesets-BHvhAeG_.mjs +0 -8
  228. package/dist/sdk-m4xeaua4.mjs +0 -3
  229. package/dist/security-center-DRC4Mf3R.mjs +0 -2
  230. package/dist/src-CgAVPA4I.mjs +0 -108
  231. package/dist/waiting-rooms-ku9UsAr9.mjs +0 -11
  232. package/dist/zero-trust-BmA0VkgF.mjs +0 -102
  233. package/dist/zone-tags-izd3WWmy.mjs +0 -9
  234. /package/dist/{Page-C-JHZnIy.mjs → Page-9ry_XAVC.mjs} +0 -0
  235. /package/dist/{alerts-B85uj2Vx.mjs → alerts-CRmjqOZi.mjs} +0 -0
  236. /package/dist/{autorag-Do9l_LyY.mjs → autorag-BD7cu5NU.mjs} +0 -0
  237. /package/dist/{body-parser-CYD7PKFC.mjs → body-parser-C-c9gfH1.mjs} +0 -0
  238. /package/dist/{brands-DateHCdd.mjs → brands-BhALBkX2.mjs} +0 -0
  239. /package/dist/{chunk-6EUZQHAF-l8tR2Qyj.mjs → chunk-6EUZQHAF-B7bSMYLe.mjs} +0 -0
  240. /package/dist/{chunk-Q72B4Q5Z-CPy_WJKU.mjs → chunk-Q72B4Q5Z-DVMMVVEs.mjs} +0 -0
  241. /package/dist/{clear-CB2kgcEB.mjs → clear-BgF8No7D.mjs} +0 -0
  242. /package/dist/{cli-types-BWdZbsFE.mjs → cli-types-BsTty22w.mjs} +0 -0
  243. /package/dist/{domain-info-DJHEt8JJ.mjs → domain-info-C50W5GhA.mjs} +0 -0
  244. /package/dist/{health-buY5f5pp.mjs → health-BFNZqiAm.mjs} +0 -0
  245. /package/dist/{input-validation-BBKJRoRB.mjs → input-validation-Bav2M9F-.mjs} +0 -0
  246. /package/dist/{internal-CwyoJUHh.mjs → internal-BTeSewwB.mjs} +0 -0
  247. /package/dist/{live-wEpA5V_n.mjs → live-Dkiyu30_.mjs} +0 -0
  248. /package/dist/{public-BwQqexwo-DbWj8rrr.mjs → public-BwQqexwo-CNW_dPly.mjs} +0 -0
  249. /package/dist/{rate-limit-analytics-Bf1uT0lT.mjs → rate-limit-analytics-Dz-Wv1T0.mjs} +0 -0
  250. /package/dist/{ready-CBSCPiHE.mjs → ready-TKOkKeRg.mjs} +0 -0
  251. /package/dist/{recent-submissions-Dpmq1f7z.mjs → recent-submissions-3Asm6eIi.mjs} +0 -0
  252. /package/dist/{refute-u7ZPQJZy.mjs → refute-BVz9nMyd.mjs} +0 -0
  253. /package/dist/{resolve-XgxRJ-Ys.mjs → resolve-CeBbH6Pq.mjs} +0 -0
  254. /package/dist/{scan-logo-Ba8WZAyp.mjs → scan-logo-ZteA-PUV.mjs} +0 -0
  255. /package/dist/{scan-page-Bcq3Ei86.mjs → scan-page-DWDSyzQ7.mjs} +0 -0
  256. /package/dist/{search-D9WDwnV4.mjs → search-DGNc37HK.mjs} +0 -0
  257. /package/dist/{signed-url-CjPbG5zV.mjs → signed-url-B5Qpn2mn.mjs} +0 -0
  258. /package/dist/{submission-info-Z9hhp9Rq.mjs → submission-info-FjUolE6A.mjs} +0 -0
  259. /package/dist/{theme-BePJemMn.mjs → theme-CeVf-5qG.mjs} +0 -0
  260. /package/dist/{total-queries-aKAYX1iX.mjs → total-queries-NHJj1HGq.mjs} +0 -0
  261. /package/dist/{tracked-domains-Ck7Jm4Kn.mjs → tracked-domains-CniKVHIp.mjs} +0 -0
  262. /package/dist/{verify-2yi0H93r.mjs → verify-DS1PWAJe.mjs} +0 -0
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-eEF0NF51.mjs";import{f as t,g as n}from"./oauth-BjHjJtnn.mjs";import{r}from"./auth-C6MhC9EZ.mjs";import{t as i}from"./output-DgW1hQGX.mjs";import{n as a,t as o}from"./progress-C-oFUtvC.mjs";import{n as s,t as c}from"./body-parser-CYD7PKFC.mjs";import{n as l}from"./input-validation-BBKJRoRB.mjs";import{a as u,i as d,n as f}from"./prompt-DM4z101s.mjs";function p(e){return e.positional(`build-uuid`,{type:`string`,description:`Build UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`cancel <build-uuid>`,describe:`Cancel a running or queued build`,builder:p,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds builds cancel`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/builds/${s[`build-uuid`]==null?`<build-uuid>`:encodeURIComponent(String(s[`build-uuid`]))}/cancel`,pathParams:{"build-uuid":String(s[`build-uuid`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();s.accountId=l,i(await o(`Updating`,async()=>c.workersBuilds.builds.cancel({account_id:l,build_uuid:s[`build-uuid`]})),{successLabel:`Updated`})}};function h(e){return e.positional(`build-uuid`,{type:`string`,description:`Build UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`get <build-uuid>`,describe:`Retrieve detailed information about a specific build`,builder:h,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds builds get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/builds/${s[`build-uuid`]==null?`<build-uuid>`:encodeURIComponent(String(s[`build-uuid`]))}`,pathParams:{"build-uuid":String(s[`build-uuid`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();s.accountId=l,i(await o(`Loading`,async()=>c.workersBuilds.builds.get({account_id:l,build_uuid:s[`build-uuid`]})),{successLabel:`Loaded`})}};function g(e){return e.option(`external-script-id`,{type:`string`,description:`System-generated worker script tag.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number for pagination`}).option(`per-page`,{type:`number`,description:`Number of items per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`list`,describe:`Get all builds for a specific worker script with pagination`,builder:g,handler:async s=>{let c={page:s.page,per_page:s[`per-page`]};if(s.dryRun){a({command:`cf workers-builds builds list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${s[`external-script-id`]==null?`<external-script-id>`:encodeURIComponent(String(s[`external-script-id`]))}/builds`,pathParams:{"external-script-id":String(s[`external-script-id`]??``)},query:c,bodyKind:`none`});return}let l=await r(s),u=s.local?e:await t();s.accountId=u,i(await o(`Loading`,async()=>l.workersBuilds.builds.list({account_id:u,external_script_id:s[`external-script-id`],...c})),{successLabel:`Loaded`})}};function v(e){return e.positional(`build-uuid`,{type:`string`,description:`Build UUID.`,demandOption:!0}).option(`cursor`,{type:`string`,description:`Pagination cursor for log retrieval.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get <build-uuid>`,describe:`Retrieve logs for a specific build with cursor-based pagination`,builder:v,handler:async s=>{let c={cursor:s.cursor};if(s.dryRun){a({command:`cf workers-builds builds logs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/builds/${s[`build-uuid`]==null?`<build-uuid>`:encodeURIComponent(String(s[`build-uuid`]))}/logs`,pathParams:{"build-uuid":String(s[`build-uuid`]??``)},query:c,bodyKind:`none`});return}let l=await r(s),u=s.local?e:await t();s.accountId=u,i(await o(`Loading`,async()=>l.workersBuilds.builds.logs.get({account_id:u,build_uuid:s[`build-uuid`],...c})),{successLabel:`Loaded`})}},b={command:`logs`,describe:`Operations for builds.logs`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},x={command:`builds`,describe:`Build job operations`,builder:e=>e.command(m).command(ee).command(_).command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function S(e){return e.positional(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,demandOption:!0}).option(`branch`,{type:`string`,description:`Git branch name.`}).option(`deploy-hook-name`,{type:`string`,description:`Deploy hook name (1-58 characters).`}).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 C={command:`create <script-name>`,describe:`Create a new deploy hook for a worker script.`,builder:S,handler:async d=>{if(d.dryRun){a({command:`cf workers-builds deploy-hooks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${d[`script-name`]==null?`<script-name>`:encodeURIComponent(String(d[`script-name`]))}/deploy_hooks`,pathParams:{"script-name":String(d[`script-name`]??``)},bodyKind:`json`,body:d.body===void 0?c({branch:l(d.branch,`branch`,`text`),deploy_hook_name:l(d[`deploy-hook-name`],`deploy-hook-name`,`text`)}):s(d.body)});return}let f=await r(d),p=d.local?e:await t();if(d.accountId=p,d.body){let e=s(d.body);i(await o(`Creating`,async()=>f.workersBuilds.deployHooks.create({body:e,account_id:p,script_name:d[`script-name`]})),{successLabel:`Created`});return}d.branch===void 0&&(d.branch=await u(`branch`,`Git branch name.`)),d[`deploy-hook-name`]===void 0&&(d[`deploy-hook-name`]=await u(`deploy-hook-name`,`Deploy hook name (1-58 characters).`));let m=c({branch:l(d.branch,`branch`,`text`),deploy_hook_name:l(d[`deploy-hook-name`],`deploy-hook-name`,`text`)});i(await o(`Creating`,async()=>f.workersBuilds.deployHooks.create({body:m,account_id:p,script_name:d[`script-name`]})),{successLabel:`Created`})}};function w(e){return e.positional(`deploy-hook-uuid`,{type:`string`,description:`Deploy hook UUID`,demandOption:!0}).option(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,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 T={command:`delete <deploy-hook-uuid>`,describe:`Delete a deploy hook.`,builder:w,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds deploy-hooks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${s[`script-name`]==null?`<script-name>`:encodeURIComponent(String(s[`script-name`]))}/deploy_hooks/${s[`deploy-hook-uuid`]==null?`<deploy-hook-uuid>`:encodeURIComponent(String(s[`deploy-hook-uuid`]))}`,pathParams:{"script-name":String(s[`script-name`]??``),"deploy-hook-uuid":String(s[`deploy-hook-uuid`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();if(s.accountId=l,!await f({force:!!s.force})){process.stderr.write(`Aborted.
2
+ import{t as e}from"./local-D-aVNu6A.mjs";import{f as t,g as n}from"./oauth-B0ETkNcX.mjs";import{r}from"./auth-MQEamPN9.mjs";import{t as i}from"./output-DrpYYfnB.mjs";import{n as a,t as o}from"./progress-CsHIt3Tp.mjs";import{n as s,t as c}from"./body-parser-C-c9gfH1.mjs";import{n as l}from"./input-validation-Bav2M9F-.mjs";import{a as u,i as d,n as f}from"./prompt-DdegNPpg.mjs";function p(e){return e.positional(`build-uuid`,{type:`string`,description:`Build UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`cancel <build-uuid>`,describe:`Cancel a running or queued build`,builder:p,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds builds cancel`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/builds/${s[`build-uuid`]==null?`<build-uuid>`:encodeURIComponent(String(s[`build-uuid`]))}/cancel`,pathParams:{"build-uuid":String(s[`build-uuid`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();s.accountId=l,i(await o(`Updating`,async()=>c.workersBuilds.builds.cancel({account_id:l,build_uuid:s[`build-uuid`]})),{successLabel:`Updated`})}};function h(e){return e.positional(`build-uuid`,{type:`string`,description:`Build UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`get <build-uuid>`,describe:`Retrieve detailed information about a specific build`,builder:h,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds builds get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/builds/${s[`build-uuid`]==null?`<build-uuid>`:encodeURIComponent(String(s[`build-uuid`]))}`,pathParams:{"build-uuid":String(s[`build-uuid`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();s.accountId=l,i(await o(`Loading`,async()=>c.workersBuilds.builds.get({account_id:l,build_uuid:s[`build-uuid`]})),{successLabel:`Loaded`})}};function g(e){return e.option(`external-script-id`,{type:`string`,description:`System-generated worker script tag.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number for pagination`}).option(`per-page`,{type:`number`,description:`Number of items per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`list`,describe:`Get all builds for a specific worker script with pagination`,builder:g,handler:async s=>{let c={page:s.page,per_page:s[`per-page`]};if(s.dryRun){a({command:`cf workers-builds builds list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${s[`external-script-id`]==null?`<external-script-id>`:encodeURIComponent(String(s[`external-script-id`]))}/builds`,pathParams:{"external-script-id":String(s[`external-script-id`]??``)},query:c,bodyKind:`none`});return}let l=await r(s),u=s.local?e:await t();s.accountId=u,i(await o(`Loading`,async()=>l.workersBuilds.builds.list({account_id:u,external_script_id:s[`external-script-id`],...c})),{successLabel:`Loaded`})}};function v(e){return e.positional(`build-uuid`,{type:`string`,description:`Build UUID.`,demandOption:!0}).option(`cursor`,{type:`string`,description:`Pagination cursor for log retrieval.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get <build-uuid>`,describe:`Retrieve logs for a specific build with cursor-based pagination`,builder:v,handler:async s=>{let c={cursor:s.cursor};if(s.dryRun){a({command:`cf workers-builds builds logs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/builds/${s[`build-uuid`]==null?`<build-uuid>`:encodeURIComponent(String(s[`build-uuid`]))}/logs`,pathParams:{"build-uuid":String(s[`build-uuid`]??``)},query:c,bodyKind:`none`});return}let l=await r(s),u=s.local?e:await t();s.accountId=u,i(await o(`Loading`,async()=>l.workersBuilds.builds.logs.get({account_id:u,build_uuid:s[`build-uuid`],...c})),{successLabel:`Loaded`})}},b={command:`logs`,describe:`Operations for builds.logs`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},x={command:`builds`,describe:`Build job operations`,builder:e=>e.command(m).command(ee).command(_).command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function S(e){return e.positional(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,demandOption:!0}).option(`branch`,{type:`string`,description:`Git branch name.`}).option(`deploy-hook-name`,{type:`string`,description:`Deploy hook name (1-58 characters).`}).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 C={command:`create <script-name>`,describe:`Create a new deploy hook for a worker script.`,builder:S,handler:async d=>{if(d.dryRun){a({command:`cf workers-builds deploy-hooks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${d[`script-name`]==null?`<script-name>`:encodeURIComponent(String(d[`script-name`]))}/deploy_hooks`,pathParams:{"script-name":String(d[`script-name`]??``)},bodyKind:`json`,body:d.body===void 0?c({branch:l(d.branch,`branch`,`text`),deploy_hook_name:l(d[`deploy-hook-name`],`deploy-hook-name`,`text`)}):s(d.body)});return}let f=await r(d),p=d.local?e:await t();if(d.accountId=p,d.body){let e=s(d.body);i(await o(`Creating`,async()=>f.workersBuilds.deployHooks.create({body:e,account_id:p,script_name:d[`script-name`]})),{successLabel:`Created`});return}d.branch===void 0&&(d.branch=await u(`branch`,`Git branch name.`)),d[`deploy-hook-name`]===void 0&&(d[`deploy-hook-name`]=await u(`deploy-hook-name`,`Deploy hook name (1-58 characters).`));let m=c({branch:l(d.branch,`branch`,`text`),deploy_hook_name:l(d[`deploy-hook-name`],`deploy-hook-name`,`text`)});i(await o(`Creating`,async()=>f.workersBuilds.deployHooks.create({body:m,account_id:p,script_name:d[`script-name`]})),{successLabel:`Created`})}};function w(e){return e.positional(`deploy-hook-uuid`,{type:`string`,description:`Deploy hook UUID`,demandOption:!0}).option(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,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 T={command:`delete <deploy-hook-uuid>`,describe:`Delete a deploy hook.`,builder:w,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds deploy-hooks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${s[`script-name`]==null?`<script-name>`:encodeURIComponent(String(s[`script-name`]))}/deploy_hooks/${s[`deploy-hook-uuid`]==null?`<deploy-hook-uuid>`:encodeURIComponent(String(s[`deploy-hook-uuid`]))}`,pathParams:{"script-name":String(s[`script-name`]??``),"deploy-hook-uuid":String(s[`deploy-hook-uuid`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();if(s.accountId=l,!await f({force:!!s.force})){process.stderr.write(`Aborted.
3
3
  `);return}i(await o(`Deleting`,async()=>c.workersBuilds.deployHooks.delete({account_id:l,script_name:s[`script-name`],deploy_hook_uuid:s[`deploy-hook-uuid`]})),{successLabel:`Deleted`})}};function E(e){return e.positional(`deploy-hook-uuid`,{type:`string`,description:`Deploy hook UUID`,demandOption:!0}).option(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const D={command:`get <deploy-hook-uuid>`,describe:`Get details of a specific deploy hook.`,builder:E,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds deploy-hooks get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${s[`script-name`]==null?`<script-name>`:encodeURIComponent(String(s[`script-name`]))}/deploy_hooks/${s[`deploy-hook-uuid`]==null?`<deploy-hook-uuid>`:encodeURIComponent(String(s[`deploy-hook-uuid`]))}`,pathParams:{"script-name":String(s[`script-name`]??``),"deploy-hook-uuid":String(s[`deploy-hook-uuid`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();s.accountId=l,i(await o(`Loading`,async()=>c.workersBuilds.deployHooks.get({account_id:l,script_name:s[`script-name`],deploy_hook_uuid:s[`deploy-hook-uuid`]})),{successLabel:`Loaded`})}};function O(e){return e.option(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const k={command:`list`,describe:`Get all deploy hooks for a specific worker script.`,builder:O,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds deploy-hooks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${s[`script-name`]==null?`<script-name>`:encodeURIComponent(String(s[`script-name`]))}/deploy_hooks`,pathParams:{"script-name":String(s[`script-name`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();s.accountId=l,i(await o(`Loading`,async()=>c.workersBuilds.deployHooks.list({account_id:l,script_name:s[`script-name`]})),{successLabel:`Loaded`})}};function A(e){return e.positional(`deploy-hook-uuid`,{type:`string`,description:`Deploy hook UUID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`trigger <deploy-hook-uuid>`,describe:`Trigger a build using a deploy hook. This endpoint does not require authentication - the deploy_hook_uuid acts as a secret token.`,builder:A,handler:async e=>{if(e.dryRun){a({command:`cf workers-builds deploy-hooks trigger`,method:`POST`,url:`https://api.cloudflare.com/client/v4/workers/builds/deploy_hooks/${e[`deploy-hook-uuid`]==null?`<deploy-hook-uuid>`:encodeURIComponent(String(e[`deploy-hook-uuid`]))}`,pathParams:{"deploy-hook-uuid":String(e[`deploy-hook-uuid`]??``)},bodyKind:`none`});return}let t=await r(e);i(await o(`Creating`,async()=>t.workersBuilds.deployHooks.trigger({deploy_hook_uuid:e[`deploy-hook-uuid`]})),{successLabel:`Created`})}};function M(e){return e.positional(`deploy-hook-uuid`,{type:`string`,description:`Deploy hook UUID`,demandOption:!0}).option(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,demandOption:!0}).option(`branch`,{type:`string`,description:`Git branch name.`}).option(`deploy-hook-name`,{type:`string`,description:`Deploy hook name (1-58 characters).`}).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 N={command:`update <deploy-hook-uuid>`,describe:`Update an existing deploy hook.`,builder:M,handler:async d=>{if(d.dryRun){a({command:`cf workers-builds deploy-hooks update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${d[`script-name`]==null?`<script-name>`:encodeURIComponent(String(d[`script-name`]))}/deploy_hooks/${d[`deploy-hook-uuid`]==null?`<deploy-hook-uuid>`:encodeURIComponent(String(d[`deploy-hook-uuid`]))}`,pathParams:{"script-name":String(d[`script-name`]??``),"deploy-hook-uuid":String(d[`deploy-hook-uuid`]??``)},bodyKind:`json`,body:d.body===void 0?c({branch:l(d.branch,`branch`,`text`),deploy_hook_name:l(d[`deploy-hook-name`],`deploy-hook-name`,`text`)}):s(d.body)});return}let f=await r(d),p=d.local?e:await t();if(d.accountId=p,d.body){let e=s(d.body);i(await o(`Updating`,async()=>f.workersBuilds.deployHooks.update({body:e,account_id:p,script_name:d[`script-name`],deploy_hook_uuid:d[`deploy-hook-uuid`]})),{successLabel:`Updated`});return}d.branch===void 0&&(d.branch=await u(`branch`,`Git branch name.`)),d[`deploy-hook-name`]===void 0&&(d[`deploy-hook-name`]=await u(`deploy-hook-name`,`Deploy hook name (1-58 characters).`));let m=c({branch:l(d.branch,`branch`,`text`),deploy_hook_name:l(d[`deploy-hook-name`],`deploy-hook-name`,`text`)});i(await o(`Updating`,async()=>f.workersBuilds.deployHooks.update({body:m,account_id:p,script_name:d[`script-name`],deploy_hook_uuid:d[`deploy-hook-uuid`]})),{successLabel:`Updated`})}},P={command:`deploy-hooks`,describe:`Deploy hooks operations`,builder:e=>e.command(C).command(T).command(D).command(k).command(j).command(N).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function F(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`get-account-limits`,describe:`Retrieve account limits and usage information`,builder:F,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds get-account-limits`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/account/limits`,pathParams:{},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();s.accountId=l,i(await o(`Loading`,async()=>c.workersBuilds.getAccountLimits({account_id:l})),{successLabel:`Loaded`})}};function L(e){return e.option(`version-ids`,{type:`string`,description:`Comma-separated list of version UUIDs (max 20).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const R={command:`get-builds-by-version`,describe:`Retrieve builds for specific version IDs`,builder:L,handler:async s=>{let c={version_ids:s[`version-ids`]};if(s.dryRun){a({command:`cf workers-builds get-builds-by-version`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/builds`,pathParams:{},query:c,bodyKind:`none`});return}let l=await r(s),u=s.local?e:await t();s.accountId=u,i(await o(`Loading`,async()=>l.workersBuilds.getBuildsByVersion({account_id:u,...c})),{successLabel:`Loaded`})}};function z(e){return e.option(`external-script-ids`,{type:`string`,description:`Comma-separated list of system-generated worker script tags (max 20).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const B={command:`get-latest-builds`,describe:`Retrieve the most recent builds for multiple worker scripts`,builder:z,handler:async s=>{let c={external_script_ids:s[`external-script-ids`]};if(s.dryRun){a({command:`cf workers-builds get-latest-builds`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/builds/latest`,pathParams:{},query:c,bodyKind:`none`});return}let l=await r(s),u=s.local?e:await t();s.accountId=u,i(await o(`Loading`,async()=>l.workersBuilds.getLatestBuilds({account_id:u,...c})),{successLabel:`Loaded`})}};function V(e){return e.positional(`repo-id`,{type:`string`,description:`Repository identifier.`,demandOption:!0}).option(`provider-type`,{type:`string`,description:`SCM provider type`,demandOption:!0}).option(`provider-account-id`,{type:`string`,description:`Provider account identifier.`,demandOption:!0}).option(`branch`,{type:`string`,description:`Git branch name.`,demandOption:!0}).option(`root-directory`,{type:`string`,description:`Root directory path.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`get <repo-id>`,describe:`Analyze repository for automatic configuration detection`,builder:V,handler:async s=>{let c={branch:s.branch,root_directory:s[`root-directory`]};if(s.dryRun){a({command:`cf workers-builds repos config-autofill get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/repos/${s[`provider-type`]==null?`<provider-type>`:encodeURIComponent(String(s[`provider-type`]))}/${s[`provider-account-id`]==null?`<provider-account-id>`:encodeURIComponent(String(s[`provider-account-id`]))}/${s[`repo-id`]==null?`<repo-id>`:encodeURIComponent(String(s[`repo-id`]))}/config_autofill`,pathParams:{"provider-type":String(s[`provider-type`]??``),"provider-account-id":String(s[`provider-account-id`]??``),"repo-id":String(s[`repo-id`]??``)},query:c,bodyKind:`none`});return}let l=await r(s),u=s.local?e:await t();s.accountId=u,i(await o(`Loading`,async()=>l.workersBuilds.repos.configAutofill.get({account_id:u,provider_type:s[`provider-type`],provider_account_id:s[`provider-account-id`],repo_id:s[`repo-id`],...c})),{successLabel:`Loaded`})}},U={command:`config-autofill`,describe:`Operations for repos.config-autofill`,builder:e=>e.command(H).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function W(e){return e.positional(`repo-connection-uuid`,{type:`string`,description:`Repository connection UUID.`,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 G={command:`delete <repo-connection-uuid>`,describe:`Remove a repository connection`,builder:W,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds repos connections delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/repos/connections/${s[`repo-connection-uuid`]==null?`<repo-connection-uuid>`:encodeURIComponent(String(s[`repo-connection-uuid`]))}`,pathParams:{"repo-connection-uuid":String(s[`repo-connection-uuid`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();if(s.accountId=l,!await f({force:!!s.force})){process.stderr.write(`Aborted.
4
- `);return}i(await o(`Deleting`,async()=>c.workersBuilds.repos.connections.delete({account_id:l,repo_connection_uuid:s[`repo-connection-uuid`]})),{successLabel:`Deleted`})}};function K(e){return e.option(`provider-account-id`,{type:`string`,description:`Provider account identifier.`}).option(`provider-account-name`,{type:`string`,description:`The provider_account_name field`}).option(`provider-type`,{type:`string`,description:`The provider_type field`,choices:[`github`,`gitlab`,`gitlab_internal`]}).option(`repo-id`,{type:`string`,description:`Repository identifier.`}).option(`repo-name`,{type:`string`,description:`The repo_name field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const q={command:`upsert`,describe:`Upsert a repository connection for CI/CD integration`,builder:K,handler:async f=>{if(f.dryRun){a({command:`cf workers-builds repos connections upsert`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/repos/connections`,pathParams:{},bodyKind:`json`,body:f.body===void 0?c({provider_account_id:l(f[`provider-account-id`],`provider-account-id`,`text`),provider_account_name:l(f[`provider-account-name`],`provider-account-name`,`text`),provider_type:l(f[`provider-type`],`provider-type`,`text`),repo_id:l(f[`repo-id`],`repo-id`,`text`),repo_name:l(f[`repo-name`],`repo-name`,`text`)}):s(f.body)});return}let p=await r(f),m=f.local?e:await t();if(f.accountId=m,f.body){let e=s(f.body);i(await o(`Updating`,async()=>p.workersBuilds.repos.connections.upsert({...e,account_id:m})),{successLabel:`Updated`});return}f[`provider-account-id`]===void 0&&(f[`provider-account-id`]=await u(`provider-account-id`,`Provider account identifier.`)),f[`provider-account-name`]===void 0&&(f[`provider-account-name`]=await u(`provider-account-name`,`The provider_account_name field`)),f[`provider-type`]===void 0&&(f[`provider-type`]=await d(`provider-type`,`The provider_type field`,[`github`,`gitlab`,`gitlab_internal`])),f[`repo-id`]===void 0&&(f[`repo-id`]=await u(`repo-id`,`Repository identifier.`)),f[`repo-name`]===void 0&&(f[`repo-name`]=await u(`repo-name`,`The repo_name field`));let h=c({provider_account_id:l(f[`provider-account-id`],`provider-account-id`,`text`),provider_account_name:l(f[`provider-account-name`],`provider-account-name`,`text`),provider_type:l(f[`provider-type`],`provider-type`,`text`),repo_id:l(f[`repo-id`],`repo-id`,`text`),repo_name:l(f[`repo-name`],`repo-name`,`text`)});i(await o(`Updating`,async()=>p.workersBuilds.repos.connections.upsert({...h,account_id:m})),{successLabel:`Updated`})}},J={command:`connections`,describe:`Operations for repos.connections`,builder:e=>e.command(G).command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Y={command:`repos`,describe:`Repos operations`,builder:e=>e.command(U).command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function X(e){return e.option(`build-token-name`,{type:`string`,description:`The build_token_name field`}).option(`build-token-secret`,{type:`string`,description:`The build_token_secret field`}).option(`cloudflare-token-id`,{type:`string`,description:`The cloudflare_token_id field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Z={command:`create`,describe:`Create a new build authentication token`,builder:X,handler:async d=>{if(d.dryRun){a({command:`cf workers-builds tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/tokens`,pathParams:{},bodyKind:`json`,body:d.body===void 0?c({build_token_name:l(d[`build-token-name`],`build-token-name`,`text`),build_token_secret:l(d[`build-token-secret`],`build-token-secret`,`text`),cloudflare_token_id:l(d[`cloudflare-token-id`],`cloudflare-token-id`,`text`)}):s(d.body)});return}let f=await r(d),p=d.local?e:await t();if(d.accountId=p,d.body){let e=s(d.body);i(await o(`Creating`,async()=>f.workersBuilds.tokens.create({...e,account_id:p})),{successLabel:`Created`});return}d[`build-token-name`]===void 0&&(d[`build-token-name`]=await u(`build-token-name`,`The build_token_name field`)),d[`build-token-secret`]===void 0&&(d[`build-token-secret`]=await u(`build-token-secret`,`The build_token_secret field`)),d[`cloudflare-token-id`]===void 0&&(d[`cloudflare-token-id`]=await u(`cloudflare-token-id`,`The cloudflare_token_id field`));let m=c({build_token_name:l(d[`build-token-name`],`build-token-name`,`text`),build_token_secret:l(d[`build-token-secret`],`build-token-secret`,`text`),cloudflare_token_id:l(d[`cloudflare-token-id`],`cloudflare-token-id`,`text`)});i(await o(`Creating`,async()=>f.workersBuilds.tokens.create({...m,account_id:p})),{successLabel:`Created`})}};function te(e){return e.positional(`build-token-uuid`,{type:`string`,description:`Build token UUID.`,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 Q={command:`delete <build-token-uuid>`,describe:`Remove a build authentication token`,builder:te,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/tokens/${s[`build-token-uuid`]==null?`<build-token-uuid>`:encodeURIComponent(String(s[`build-token-uuid`]))}`,pathParams:{"build-token-uuid":String(s[`build-token-uuid`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();if(s.accountId=l,!await f({force:!!s.force})){process.stderr.write(`Aborted.
5
- `);return}i(await o(`Deleting`,async()=>c.workersBuilds.tokens.delete({account_id:l,build_token_uuid:s[`build-token-uuid`]})),{successLabel:`Deleted`})}};function ne(e){return e.option(`page`,{type:`number`,description:`Page number for pagination`}).option(`per-page`,{type:`number`,description:`Number of items per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`list`,describe:`Get all build tokens with pagination`,builder:ne,handler:async s=>{let c={page:s.page,per_page:s[`per-page`]};if(s.dryRun){a({command:`cf workers-builds tokens list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/tokens`,pathParams:{},query:c,bodyKind:`none`});return}let l=await r(s),u=s.local?e:await t();s.accountId=u,i(await o(`Loading`,async()=>l.workersBuilds.tokens.list({account_id:u,...c})),{successLabel:`Loaded`})}},ie={command:`tokens`,describe:`Tokens operations`,builder:e=>e.command(Z).command(Q).command(re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ae(e){return e.positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,demandOption:!0}).option(`seed-repo-branch`,{type:`string`,description:`Git branch name.`}).option(`seed-repo-owner`,{type:`string`,description:`The seed_repo.owner field`}).option(`seed-repo-path`,{type:`string`,description:`The seed_repo.path field`}).option(`seed-repo-provider`,{type:`string`,description:`The seed_repo.provider field`,choices:[`github`,`gitlab`,`gitlab_internal`]}).option(`seed-repo-repository`,{type:`string`,description:`The seed_repo.repository field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).check(e=>{if([`seed-repo-branch`,`seed-repo-owner`,`seed-repo-path`,`seed-repo-provider`,`seed-repo-repository`].some(t=>e[t]!==void 0)){let t=[`seed-repo-branch`,`seed-repo-owner`,`seed-repo-path`,`seed-repo-provider`,`seed-repo-repository`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --seed_repo-* flag is set`)}return!0})}const oe={command:`create-build <trigger-uuid>`,describe:`Trigger a manual build for a specific trigger`,builder:ae,handler:async u=>{if(u.dryRun){a({command:`cf workers-builds triggers create-build`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${u[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(u[`trigger-uuid`]))}/builds`,pathParams:{"trigger-uuid":String(u[`trigger-uuid`]??``)},bodyKind:`json`,body:u.body===void 0?c({seed_repo:{branch:l(u[`seed-repo-branch`],`seed-repo-branch`,`text`),owner:l(u[`seed-repo-owner`],`seed-repo-owner`,`text`),path:l(u[`seed-repo-path`],`seed-repo-path`,`text`),provider:l(u[`seed-repo-provider`],`seed-repo-provider`,`text`),repository:l(u[`seed-repo-repository`],`seed-repo-repository`,`text`)}}):s(u.body)});return}let d=await r(u),f=u.local?e:await t();if(u.accountId=f,u.body){let e=s(u.body);i(await o(`Creating`,async()=>d.workersBuilds.triggers.createBuild({...e,account_id:f,trigger_uuid:u[`trigger-uuid`]})),{successLabel:`Created`});return}let p=c({seed_repo:{branch:l(u[`seed-repo-branch`],`seed-repo-branch`,`text`),owner:l(u[`seed-repo-owner`],`seed-repo-owner`,`text`),path:l(u[`seed-repo-path`],`seed-repo-path`,`text`),provider:l(u[`seed-repo-provider`],`seed-repo-provider`,`text`),repository:l(u[`seed-repo-repository`],`seed-repo-repository`,`text`)}});i(await o(`Creating`,async()=>d.workersBuilds.triggers.createBuild({...p,account_id:f,trigger_uuid:u[`trigger-uuid`]})),{successLabel:`Created`})}};function se(e){return e.option(`branch-excludes`,{type:`string`,array:!0,description:`The branch_excludes field`}).option(`branch-includes`,{type:`string`,array:!0,description:`The branch_includes field`}).option(`build-caching-enabled`,{type:`boolean`,description:`The build_caching_enabled field`,default:!1}).option(`build-command`,{type:`string`,description:`The build_command field`}).option(`build-token-uuid`,{type:`string`,description:`Build token UUID.`}).option(`deploy-command`,{type:`string`,description:`The deploy_command field`}).option(`external-script-id`,{type:`string`,description:`System-generated worker script tag.`}).option(`path-excludes`,{type:`string`,array:!0,description:`The path_excludes field`}).option(`path-includes`,{type:`string`,array:!0,description:`The path_includes field`}).option(`repo-connection-uuid`,{type:`string`,description:`Repository connection UUID.`}).option(`root-directory`,{type:`string`,description:`Root directory path.`}).option(`trigger-name`,{type:`string`,description:`The trigger_name field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ce={command:`create`,describe:`Create a new CI/CD trigger`,builder:se,handler:async d=>{if(d.dryRun){a({command:`cf workers-builds triggers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers`,pathParams:{},bodyKind:`json`,body:d.body===void 0?c({branch_excludes:d[`branch-excludes`],branch_includes:d[`branch-includes`],build_caching_enabled:d[`build-caching-enabled`],build_command:l(d[`build-command`],`build-command`,`text`),build_token_uuid:l(d[`build-token-uuid`],`build-token-uuid`,`text`),deploy_command:l(d[`deploy-command`],`deploy-command`,`text`),external_script_id:l(d[`external-script-id`],`external-script-id`,`text`),path_excludes:d[`path-excludes`],path_includes:d[`path-includes`],repo_connection_uuid:l(d[`repo-connection-uuid`],`repo-connection-uuid`,`text`),root_directory:l(d[`root-directory`],`root-directory`,`text`),trigger_name:l(d[`trigger-name`],`trigger-name`,`text`)}):s(d.body)});return}let f=await r(d),p=d.local?e:await t();if(d.accountId=p,d.body){let e=s(d.body);i(await o(`Creating`,async()=>f.workersBuilds.triggers.create({...e,account_id:p})),{successLabel:`Created`});return}if(d[`branch-excludes`]===void 0)throw Error(`--branch-excludes is required (or pass --body with this field set).`);if(d[`branch-includes`]===void 0)throw Error(`--branch-includes is required (or pass --body with this field set).`);if(d[`build-command`]===void 0&&(d[`build-command`]=await u(`build-command`,`The build_command field`)),d[`build-token-uuid`]===void 0&&(d[`build-token-uuid`]=await u(`build-token-uuid`,`Build token UUID.`)),d[`deploy-command`]===void 0&&(d[`deploy-command`]=await u(`deploy-command`,`The deploy_command field`)),d[`external-script-id`]===void 0&&(d[`external-script-id`]=await u(`external-script-id`,`System-generated worker script tag.`)),d[`path-excludes`]===void 0)throw Error(`--path-excludes is required (or pass --body with this field set).`);if(d[`path-includes`]===void 0)throw Error(`--path-includes is required (or pass --body with this field set).`);d[`repo-connection-uuid`]===void 0&&(d[`repo-connection-uuid`]=await u(`repo-connection-uuid`,`Repository connection UUID.`)),d[`root-directory`]===void 0&&(d[`root-directory`]=await u(`root-directory`,`Root directory path.`)),d[`trigger-name`]===void 0&&(d[`trigger-name`]=await u(`trigger-name`,`The trigger_name field`));let m=c({branch_excludes:d[`branch-excludes`],branch_includes:d[`branch-includes`],build_caching_enabled:d[`build-caching-enabled`],build_command:l(d[`build-command`],`build-command`,`text`),build_token_uuid:l(d[`build-token-uuid`],`build-token-uuid`,`text`),deploy_command:l(d[`deploy-command`],`deploy-command`,`text`),external_script_id:l(d[`external-script-id`],`external-script-id`,`text`),path_excludes:d[`path-excludes`],path_includes:d[`path-includes`],repo_connection_uuid:l(d[`repo-connection-uuid`],`repo-connection-uuid`,`text`),root_directory:l(d[`root-directory`],`root-directory`,`text`),trigger_name:l(d[`trigger-name`],`trigger-name`,`text`)});i(await o(`Creating`,async()=>f.workersBuilds.triggers.create({...m,account_id:p})),{successLabel:`Created`})}};function le(e){return e.positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,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 ue={command:`delete <trigger-uuid>`,describe:`Remove a CI/CD trigger`,builder:le,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds triggers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${s[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(s[`trigger-uuid`]))}`,pathParams:{"trigger-uuid":String(s[`trigger-uuid`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();if(s.accountId=l,!await f({force:!!s.force})){process.stderr.write(`Aborted.
4
+ `);return}i(await o(`Deleting`,async()=>c.workersBuilds.repos.connections.delete({account_id:l,repo_connection_uuid:s[`repo-connection-uuid`]})),{successLabel:`Deleted`})}};function K(e){return e.option(`provider-account-id`,{type:`string`,description:`Provider account identifier.`}).option(`provider-account-name`,{type:`string`,description:`The provider_account_name field`}).option(`provider-type`,{type:`string`,description:`The provider_type field`,choices:[`github`,`gitlab`,`gitlab_internal`,`origin`]}).option(`repo-id`,{type:`string`,description:`Repository identifier.`}).option(`repo-name`,{type:`string`,description:`The repo_name field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const q={command:`upsert`,describe:`Upsert a repository connection for CI/CD integration`,builder:K,handler:async f=>{if(f.dryRun){a({command:`cf workers-builds repos connections upsert`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/repos/connections`,pathParams:{},bodyKind:`json`,body:f.body===void 0?c({provider_account_id:l(f[`provider-account-id`],`provider-account-id`,`text`),provider_account_name:l(f[`provider-account-name`],`provider-account-name`,`text`),provider_type:l(f[`provider-type`],`provider-type`,`text`),repo_id:l(f[`repo-id`],`repo-id`,`text`),repo_name:l(f[`repo-name`],`repo-name`,`text`)}):s(f.body)});return}let p=await r(f),m=f.local?e:await t();if(f.accountId=m,f.body){let e=s(f.body);i(await o(`Updating`,async()=>p.workersBuilds.repos.connections.upsert({...e,account_id:m})),{successLabel:`Updated`});return}f[`provider-account-id`]===void 0&&(f[`provider-account-id`]=await u(`provider-account-id`,`Provider account identifier.`)),f[`provider-account-name`]===void 0&&(f[`provider-account-name`]=await u(`provider-account-name`,`The provider_account_name field`)),f[`provider-type`]===void 0&&(f[`provider-type`]=await d(`provider-type`,`The provider_type field`,[`github`,`gitlab`,`gitlab_internal`,`origin`])),f[`repo-id`]===void 0&&(f[`repo-id`]=await u(`repo-id`,`Repository identifier.`)),f[`repo-name`]===void 0&&(f[`repo-name`]=await u(`repo-name`,`The repo_name field`));let h=c({provider_account_id:l(f[`provider-account-id`],`provider-account-id`,`text`),provider_account_name:l(f[`provider-account-name`],`provider-account-name`,`text`),provider_type:l(f[`provider-type`],`provider-type`,`text`),repo_id:l(f[`repo-id`],`repo-id`,`text`),repo_name:l(f[`repo-name`],`repo-name`,`text`)});i(await o(`Updating`,async()=>p.workersBuilds.repos.connections.upsert({...h,account_id:m})),{successLabel:`Updated`})}},J={command:`connections`,describe:`Operations for repos.connections`,builder:e=>e.command(G).command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Y={command:`repos`,describe:`Repos operations`,builder:e=>e.command(U).command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function X(e){return e.option(`build-token-name`,{type:`string`,description:`The build_token_name field`}).option(`build-token-secret`,{type:`string`,description:`The build_token_secret field`}).option(`cloudflare-token-id`,{type:`string`,description:`The cloudflare_token_id field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Z={command:`create`,describe:`Create a new build authentication token`,builder:X,handler:async d=>{if(d.dryRun){a({command:`cf workers-builds tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/tokens`,pathParams:{},bodyKind:`json`,body:d.body===void 0?c({build_token_name:l(d[`build-token-name`],`build-token-name`,`text`),build_token_secret:l(d[`build-token-secret`],`build-token-secret`,`text`),cloudflare_token_id:l(d[`cloudflare-token-id`],`cloudflare-token-id`,`text`)}):s(d.body)});return}let f=await r(d),p=d.local?e:await t();if(d.accountId=p,d.body){let e=s(d.body);i(await o(`Creating`,async()=>f.workersBuilds.tokens.create({...e,account_id:p})),{successLabel:`Created`});return}d[`build-token-name`]===void 0&&(d[`build-token-name`]=await u(`build-token-name`,`The build_token_name field`)),d[`build-token-secret`]===void 0&&(d[`build-token-secret`]=await u(`build-token-secret`,`The build_token_secret field`)),d[`cloudflare-token-id`]===void 0&&(d[`cloudflare-token-id`]=await u(`cloudflare-token-id`,`The cloudflare_token_id field`));let m=c({build_token_name:l(d[`build-token-name`],`build-token-name`,`text`),build_token_secret:l(d[`build-token-secret`],`build-token-secret`,`text`),cloudflare_token_id:l(d[`cloudflare-token-id`],`cloudflare-token-id`,`text`)});i(await o(`Creating`,async()=>f.workersBuilds.tokens.create({...m,account_id:p})),{successLabel:`Created`})}};function te(e){return e.positional(`build-token-uuid`,{type:`string`,description:`Build token UUID.`,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 Q={command:`delete <build-token-uuid>`,describe:`Remove a build authentication token`,builder:te,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/tokens/${s[`build-token-uuid`]==null?`<build-token-uuid>`:encodeURIComponent(String(s[`build-token-uuid`]))}`,pathParams:{"build-token-uuid":String(s[`build-token-uuid`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();if(s.accountId=l,!await f({force:!!s.force})){process.stderr.write(`Aborted.
5
+ `);return}i(await o(`Deleting`,async()=>c.workersBuilds.tokens.delete({account_id:l,build_token_uuid:s[`build-token-uuid`]})),{successLabel:`Deleted`})}};function ne(e){return e.option(`page`,{type:`number`,description:`Page number for pagination`}).option(`per-page`,{type:`number`,description:`Number of items per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`list`,describe:`Get all build tokens with pagination`,builder:ne,handler:async s=>{let c={page:s.page,per_page:s[`per-page`]};if(s.dryRun){a({command:`cf workers-builds tokens list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/tokens`,pathParams:{},query:c,bodyKind:`none`});return}let l=await r(s),u=s.local?e:await t();s.accountId=u,i(await o(`Loading`,async()=>l.workersBuilds.tokens.list({account_id:u,...c})),{successLabel:`Loaded`})}},ie={command:`tokens`,describe:`Tokens operations`,builder:e=>e.command(Z).command(Q).command(re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ae(e){return e.positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,demandOption:!0}).option(`seed-repo-branch`,{type:`string`,description:`Git branch name.`}).option(`seed-repo-owner`,{type:`string`,description:`The seed_repo.owner field`}).option(`seed-repo-path`,{type:`string`,description:`The seed_repo.path field`}).option(`seed-repo-provider`,{type:`string`,description:`The seed_repo.provider field`,choices:[`github`,`gitlab`,`gitlab_internal`,`origin`]}).option(`seed-repo-repository`,{type:`string`,description:`The seed_repo.repository field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).check(e=>{if([`seed-repo-branch`,`seed-repo-owner`,`seed-repo-path`,`seed-repo-provider`,`seed-repo-repository`].some(t=>e[t]!==void 0)){let t=[`seed-repo-branch`,`seed-repo-owner`,`seed-repo-path`,`seed-repo-provider`,`seed-repo-repository`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --seed_repo-* flag is set`)}return!0})}const oe={command:`create-build <trigger-uuid>`,describe:`Trigger a manual build for a specific trigger`,builder:ae,handler:async u=>{if(u.dryRun){a({command:`cf workers-builds triggers create-build`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${u[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(u[`trigger-uuid`]))}/builds`,pathParams:{"trigger-uuid":String(u[`trigger-uuid`]??``)},bodyKind:`json`,body:u.body===void 0?c({seed_repo:{branch:l(u[`seed-repo-branch`],`seed-repo-branch`,`text`),owner:l(u[`seed-repo-owner`],`seed-repo-owner`,`text`),path:l(u[`seed-repo-path`],`seed-repo-path`,`text`),provider:l(u[`seed-repo-provider`],`seed-repo-provider`,`text`),repository:l(u[`seed-repo-repository`],`seed-repo-repository`,`text`)}}):s(u.body)});return}let d=await r(u),f=u.local?e:await t();if(u.accountId=f,u.body){let e=s(u.body);i(await o(`Creating`,async()=>d.workersBuilds.triggers.createBuild({...e,account_id:f,trigger_uuid:u[`trigger-uuid`]})),{successLabel:`Created`});return}let p=c({seed_repo:{branch:l(u[`seed-repo-branch`],`seed-repo-branch`,`text`),owner:l(u[`seed-repo-owner`],`seed-repo-owner`,`text`),path:l(u[`seed-repo-path`],`seed-repo-path`,`text`),provider:l(u[`seed-repo-provider`],`seed-repo-provider`,`text`),repository:l(u[`seed-repo-repository`],`seed-repo-repository`,`text`)}});i(await o(`Creating`,async()=>d.workersBuilds.triggers.createBuild({...p,account_id:f,trigger_uuid:u[`trigger-uuid`]})),{successLabel:`Created`})}};function se(e){return e.option(`branch-excludes`,{type:`string`,array:!0,description:`The branch_excludes field`}).option(`branch-includes`,{type:`string`,array:!0,description:`The branch_includes field`}).option(`build-caching-enabled`,{type:`boolean`,description:`The build_caching_enabled field`,default:!1}).option(`build-command`,{type:`string`,description:`The build_command field`}).option(`build-token-uuid`,{type:`string`,description:`Build token UUID.`}).option(`deploy-command`,{type:`string`,description:`The deploy_command field`}).option(`external-script-id`,{type:`string`,description:`System-generated worker script tag.`}).option(`path-excludes`,{type:`string`,array:!0,description:`The path_excludes field`}).option(`path-includes`,{type:`string`,array:!0,description:`The path_includes field`}).option(`repo-connection-uuid`,{type:`string`,description:`Repository connection UUID.`}).option(`root-directory`,{type:`string`,description:`Root directory path.`}).option(`trigger-name`,{type:`string`,description:`The trigger_name field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ce={command:`create`,describe:`Create a new CI/CD trigger`,builder:se,handler:async d=>{if(d.dryRun){a({command:`cf workers-builds triggers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers`,pathParams:{},bodyKind:`json`,body:d.body===void 0?c({branch_excludes:d[`branch-excludes`],branch_includes:d[`branch-includes`],build_caching_enabled:d[`build-caching-enabled`],build_command:l(d[`build-command`],`build-command`,`text`),build_token_uuid:l(d[`build-token-uuid`],`build-token-uuid`,`text`),deploy_command:l(d[`deploy-command`],`deploy-command`,`text`),external_script_id:l(d[`external-script-id`],`external-script-id`,`text`),path_excludes:d[`path-excludes`],path_includes:d[`path-includes`],repo_connection_uuid:l(d[`repo-connection-uuid`],`repo-connection-uuid`,`text`),root_directory:l(d[`root-directory`],`root-directory`,`text`),trigger_name:l(d[`trigger-name`],`trigger-name`,`text`)}):s(d.body)});return}let f=await r(d),p=d.local?e:await t();if(d.accountId=p,d.body){let e=s(d.body);i(await o(`Creating`,async()=>f.workersBuilds.triggers.create({...e,account_id:p})),{successLabel:`Created`});return}if(d[`branch-excludes`]===void 0)throw Error(`--branch-excludes is required (or pass --body with this field set).`);if(d[`branch-includes`]===void 0)throw Error(`--branch-includes is required (or pass --body with this field set).`);if(d[`build-command`]===void 0&&(d[`build-command`]=await u(`build-command`,`The build_command field`)),d[`build-token-uuid`]===void 0&&(d[`build-token-uuid`]=await u(`build-token-uuid`,`Build token UUID.`)),d[`deploy-command`]===void 0&&(d[`deploy-command`]=await u(`deploy-command`,`The deploy_command field`)),d[`external-script-id`]===void 0&&(d[`external-script-id`]=await u(`external-script-id`,`System-generated worker script tag.`)),d[`path-excludes`]===void 0)throw Error(`--path-excludes is required (or pass --body with this field set).`);if(d[`path-includes`]===void 0)throw Error(`--path-includes is required (or pass --body with this field set).`);d[`repo-connection-uuid`]===void 0&&(d[`repo-connection-uuid`]=await u(`repo-connection-uuid`,`Repository connection UUID.`)),d[`root-directory`]===void 0&&(d[`root-directory`]=await u(`root-directory`,`Root directory path.`)),d[`trigger-name`]===void 0&&(d[`trigger-name`]=await u(`trigger-name`,`The trigger_name field`));let m=c({branch_excludes:d[`branch-excludes`],branch_includes:d[`branch-includes`],build_caching_enabled:d[`build-caching-enabled`],build_command:l(d[`build-command`],`build-command`,`text`),build_token_uuid:l(d[`build-token-uuid`],`build-token-uuid`,`text`),deploy_command:l(d[`deploy-command`],`deploy-command`,`text`),external_script_id:l(d[`external-script-id`],`external-script-id`,`text`),path_excludes:d[`path-excludes`],path_includes:d[`path-includes`],repo_connection_uuid:l(d[`repo-connection-uuid`],`repo-connection-uuid`,`text`),root_directory:l(d[`root-directory`],`root-directory`,`text`),trigger_name:l(d[`trigger-name`],`trigger-name`,`text`)});i(await o(`Creating`,async()=>f.workersBuilds.triggers.create({...m,account_id:p})),{successLabel:`Created`})}};function le(e){return e.positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,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 ue={command:`delete <trigger-uuid>`,describe:`Remove a CI/CD trigger`,builder:le,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds triggers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${s[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(s[`trigger-uuid`]))}`,pathParams:{"trigger-uuid":String(s[`trigger-uuid`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();if(s.accountId=l,!await f({force:!!s.force})){process.stderr.write(`Aborted.
6
6
  `);return}i(await o(`Deleting`,async()=>c.workersBuilds.triggers.delete({account_id:l,trigger_uuid:s[`trigger-uuid`]})),{successLabel:`Deleted`})}};function de(e){return e.positional(`environment-variable-key`,{type:`string`,description:`Environment variable key.`,demandOption:!0}).option(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,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 fe={command:`delete <environment-variable-key>`,describe:`Remove a specific environment variable from a trigger`,builder:de,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds triggers environment-variables delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${s[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(s[`trigger-uuid`]))}/environment_variables/${s[`environment-variable-key`]==null?`<environment-variable-key>`:encodeURIComponent(String(s[`environment-variable-key`]))}`,pathParams:{"trigger-uuid":String(s[`trigger-uuid`]??``),"environment-variable-key":String(s[`environment-variable-key`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();if(s.accountId=l,!await f({force:!!s.force})){process.stderr.write(`Aborted.
7
7
  `);return}i(await o(`Deleting`,async()=>c.workersBuilds.triggers.environmentVariables.delete({account_id:l,trigger_uuid:s[`trigger-uuid`],environment_variable_key:s[`environment-variable-key`]})),{successLabel:`Deleted`})}};function pe(e){return e.option(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const me={command:`list`,describe:`Get all environment variables for a trigger`,builder:pe,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds triggers environment-variables list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${s[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(s[`trigger-uuid`]))}/environment_variables`,pathParams:{"trigger-uuid":String(s[`trigger-uuid`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();s.accountId=l,i(await o(`Loading`,async()=>c.workersBuilds.triggers.environmentVariables.list({account_id:l,trigger_uuid:s[`trigger-uuid`]})),{successLabel:`Loaded`})}};function he(e){return e.positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,demandOption:!0}).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 ge={command:`upsert <trigger-uuid>`,describe:`Create or update environment variables for a trigger`,builder:he,handler:async c=>{if(c.dryRun){a({command:`cf workers-builds triggers environment-variables upsert`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${c[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(c[`trigger-uuid`]))}/environment_variables`,pathParams:{"trigger-uuid":String(c[`trigger-uuid`]??``)},bodyKind:`json`,body:c.body===void 0?void 0:s(c.body)});return}let l=await r(c),u=c.local?e:await t();if(c.accountId=u,c.body){let e=s(c.body);i(await o(`Updating`,async()=>l.workersBuilds.triggers.environmentVariables.upsert({body:e,account_id:u,trigger_uuid:c[`trigger-uuid`]})),{successLabel:`Updated`});return}if(c.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)}},_e={command:`environment-variables`,describe:`Operations for triggers.environment-variables`,builder:e=>e.command(fe).command(me).command(ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ve(e){return e.option(`external-script-id`,{type:`string`,description:`System-generated worker script tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ye={command:`list`,describe:`Get all triggers for a specific worker script`,builder:ve,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds triggers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${s[`external-script-id`]==null?`<external-script-id>`:encodeURIComponent(String(s[`external-script-id`]))}/triggers`,pathParams:{"external-script-id":String(s[`external-script-id`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();s.accountId=l,i(await o(`Loading`,async()=>c.workersBuilds.triggers.list({account_id:l,external_script_id:s[`external-script-id`]})),{successLabel:`Loaded`})}};function be(e){return e.positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,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 xe={command:`purge-cache <trigger-uuid>`,describe:`Clear the build cache for a specific trigger`,builder:be,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds triggers purge-cache`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${s[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(s[`trigger-uuid`]))}/purge_build_cache`,pathParams:{"trigger-uuid":String(s[`trigger-uuid`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();if(s.accountId=l,!await f({force:!!s.force,message:`This operation wipes the workers-build cache.`})){process.stderr.write(`Aborted.
8
- `);return}i(await o(`Deleting`,async()=>c.workersBuilds.triggers.purgeCache({account_id:l,trigger_uuid:s[`trigger-uuid`]})),{successLabel:`Deleted`})}};function Se(e){return e.positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,demandOption:!0}).option(`branch-excludes`,{type:`string`,array:!0,description:`The branch_excludes field`}).option(`branch-includes`,{type:`string`,array:!0,description:`The branch_includes field`}).option(`build-caching-enabled`,{type:`boolean`,description:`The build_caching_enabled field`}).option(`build-command`,{type:`string`,description:`The build_command field`}).option(`build-token-uuid`,{type:`string`,description:`Build token UUID.`}).option(`deploy-command`,{type:`string`,description:`The deploy_command field`}).option(`path-excludes`,{type:`string`,array:!0,description:`The path_excludes field`}).option(`path-includes`,{type:`string`,array:!0,description:`The path_includes field`}).option(`root-directory`,{type:`string`,description:`Root directory path.`}).option(`trigger-name`,{type:`string`,description:`The trigger_name field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ce={command:`update <trigger-uuid>`,describe:`Update an existing CI/CD trigger`,builder:Se,handler:async u=>{if(u.dryRun){a({command:`cf workers-builds triggers update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${u[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(u[`trigger-uuid`]))}`,pathParams:{"trigger-uuid":String(u[`trigger-uuid`]??``)},bodyKind:`json`,body:u.body===void 0?c({branch_excludes:u[`branch-excludes`],branch_includes:u[`branch-includes`],build_caching_enabled:u[`build-caching-enabled`],build_command:l(u[`build-command`],`build-command`,`text`),build_token_uuid:l(u[`build-token-uuid`],`build-token-uuid`,`text`),deploy_command:l(u[`deploy-command`],`deploy-command`,`text`),path_excludes:u[`path-excludes`],path_includes:u[`path-includes`],root_directory:l(u[`root-directory`],`root-directory`,`text`),trigger_name:l(u[`trigger-name`],`trigger-name`,`text`)}):s(u.body)});return}let d=await r(u),f=u.local?e:await t();if(u.accountId=f,u.body){let e=s(u.body);i(await o(`Updating`,async()=>d.workersBuilds.triggers.update({...e,account_id:f,trigger_uuid:u[`trigger-uuid`]})),{successLabel:`Updated`});return}let p=c({branch_excludes:u[`branch-excludes`],branch_includes:u[`branch-includes`],build_caching_enabled:u[`build-caching-enabled`],build_command:l(u[`build-command`],`build-command`,`text`),build_token_uuid:l(u[`build-token-uuid`],`build-token-uuid`,`text`),deploy_command:l(u[`deploy-command`],`deploy-command`,`text`),path_excludes:u[`path-excludes`],path_includes:u[`path-includes`],root_directory:l(u[`root-directory`],`root-directory`,`text`),trigger_name:l(u[`trigger-name`],`trigger-name`,`text`)});i(await o(`Updating`,async()=>d.workersBuilds.triggers.update({...p,account_id:f,trigger_uuid:u[`trigger-uuid`]})),{successLabel:`Updated`})}},we={command:`triggers`,describe:`Triggers operations`,builder:e=>e.command(ce).command(oe).command(ue).command(ye).command(xe).command(Ce).command(_e).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Te(e){return e.option(`git-repository-branch`,{type:`string`,description:`Git branch to watch for builds`}).option(`git-repository-provider-account-id`,{type:`string`,description:`Provider account identifier.`}).option(`git-repository-provider-account-name`,{type:`string`,description:`The git_repository.provider_account_name field`}).option(`git-repository-provider-type`,{type:`string`,description:`The git_repository.provider_type field`,choices:[`github`,`gitlab`,`gitlab_internal`]}).option(`git-repository-repo-id`,{type:`string`,description:`Repository identifier.`}).option(`git-repository-repo-name`,{type:`string`,description:`The git_repository.repo_name field`}).option(`git-repository-grant-id`,{type:`string`,description:`Grant ID required when provider_type is gitlab_internal`}).option(`production-settings-build-command`,{type:`string`,description:`The production_settings.build_command field`}).option(`production-settings-build-token-uuid`,{type:`string`,description:`Build token UUID.`}).option(`production-settings-deploy-command`,{type:`string`,description:`The production_settings.deploy_command field`}).option(`production-settings-path-excludes`,{type:`string`,array:!0,description:`The production_settings.path_excludes field`}).option(`production-settings-path-includes`,{type:`string`,array:!0,description:`The production_settings.path_includes field`}).option(`script-tag`,{type:`string`,description:`System-generated worker script tag.`}).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 a Worker build configuration.`})}const Ee={command:`create`,describe:`Create a new build configuration for a Worker script, linking it to a git repository with CI/CD triggers.`,builder:Te,handler:async f=>{if(f.dryRun){a({command:`cf workers-builds workers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers`,pathParams:{},bodyKind:`json`,body:f.body===void 0?c({git_repository:{branch:l(f[`git-repository-branch`],`git-repository-branch`,`text`),provider_account_id:l(f[`git-repository-provider-account-id`],`git-repository-provider-account-id`,`text`),provider_account_name:l(f[`git-repository-provider-account-name`],`git-repository-provider-account-name`,`text`),provider_type:l(f[`git-repository-provider-type`],`git-repository-provider-type`,`text`),repo_id:l(f[`git-repository-repo-id`],`git-repository-repo-id`,`text`),repo_name:l(f[`git-repository-repo-name`],`git-repository-repo-name`,`text`),grant_id:l(f[`git-repository-grant-id`],`git-repository-grant-id`,`text`)},production_settings:{build_command:l(f[`production-settings-build-command`],`production-settings-build-command`,`text`),build_token_uuid:l(f[`production-settings-build-token-uuid`],`production-settings-build-token-uuid`,`text`),deploy_command:l(f[`production-settings-deploy-command`],`production-settings-deploy-command`,`text`),path_excludes:f[`production-settings-path-excludes`],path_includes:f[`production-settings-path-includes`]},script_tag:l(f[`script-tag`],`script-tag`,`text`)}):s(f.body)});return}let p=await r(f),m=f.local?e:await t();if(f.accountId=m,f.body){let e=s(f.body);i(await o(`Creating`,async()=>p.workersBuilds.workers.create({...e,account_id:m})),{successLabel:`Created`});return}f[`git-repository-branch`]===void 0&&(f[`git-repository-branch`]=await u(`git-repository-branch`,`Git branch to watch for builds`)),f[`git-repository-provider-account-id`]===void 0&&(f[`git-repository-provider-account-id`]=await u(`git-repository-provider-account-id`,`Provider account identifier.`)),f[`git-repository-provider-account-name`]===void 0&&(f[`git-repository-provider-account-name`]=await u(`git-repository-provider-account-name`,`The git_repository.provider_account_name field`)),f[`git-repository-provider-type`]===void 0&&(f[`git-repository-provider-type`]=await d(`git-repository-provider-type`,`The git_repository.provider_type field`,[`github`,`gitlab`,`gitlab_internal`])),f[`git-repository-repo-id`]===void 0&&(f[`git-repository-repo-id`]=await u(`git-repository-repo-id`,`Repository identifier.`)),f[`git-repository-repo-name`]===void 0&&(f[`git-repository-repo-name`]=await u(`git-repository-repo-name`,`The git_repository.repo_name field`)),f[`production-settings-build-command`]===void 0&&(f[`production-settings-build-command`]=await u(`production-settings-build-command`,`The production_settings.build_command field`)),f[`production-settings-build-token-uuid`]===void 0&&(f[`production-settings-build-token-uuid`]=await u(`production-settings-build-token-uuid`,`Build token UUID.`)),f[`production-settings-deploy-command`]===void 0&&(f[`production-settings-deploy-command`]=await u(`production-settings-deploy-command`,`The production_settings.deploy_command field`)),f[`script-tag`]===void 0&&(f[`script-tag`]=await u(`script-tag`,`System-generated worker script tag.`));let h=c({git_repository:{branch:l(f[`git-repository-branch`],`git-repository-branch`,`text`),provider_account_id:l(f[`git-repository-provider-account-id`],`git-repository-provider-account-id`,`text`),provider_account_name:l(f[`git-repository-provider-account-name`],`git-repository-provider-account-name`,`text`),provider_type:l(f[`git-repository-provider-type`],`git-repository-provider-type`,`text`),repo_id:l(f[`git-repository-repo-id`],`git-repository-repo-id`,`text`),repo_name:l(f[`git-repository-repo-name`],`git-repository-repo-name`,`text`),grant_id:l(f[`git-repository-grant-id`],`git-repository-grant-id`,`text`)},production_settings:{build_command:l(f[`production-settings-build-command`],`production-settings-build-command`,`text`),build_token_uuid:l(f[`production-settings-build-token-uuid`],`production-settings-build-token-uuid`,`text`),deploy_command:l(f[`production-settings-deploy-command`],`production-settings-deploy-command`,`text`),path_excludes:f[`production-settings-path-excludes`],path_includes:f[`production-settings-path-includes`]},script_tag:l(f[`script-tag`],`script-tag`,`text`)});i(await o(`Creating`,async()=>p.workersBuilds.workers.create({...h,account_id:m})),{successLabel:`Created`})}};function De(e){return e.positional(`script-tag`,{type:`string`,description:`The Worker script tag (external script ID)`,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 $={command:`delete <script-tag>`,describe:`Delete the build configuration for a Worker script.`,builder:De,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds workers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${s[`script-tag`]==null?`<script-tag>`:encodeURIComponent(String(s[`script-tag`]))}`,pathParams:{"script-tag":String(s[`script-tag`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();if(s.accountId=l,!await f({force:!!s.force})){process.stderr.write(`Aborted.
8
+ `);return}i(await o(`Deleting`,async()=>c.workersBuilds.triggers.purgeCache({account_id:l,trigger_uuid:s[`trigger-uuid`]})),{successLabel:`Deleted`})}};function Se(e){return e.positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,demandOption:!0}).option(`branch-excludes`,{type:`string`,array:!0,description:`The branch_excludes field`}).option(`branch-includes`,{type:`string`,array:!0,description:`The branch_includes field`}).option(`build-caching-enabled`,{type:`boolean`,description:`The build_caching_enabled field`}).option(`build-command`,{type:`string`,description:`The build_command field`}).option(`build-token-uuid`,{type:`string`,description:`Build token UUID.`}).option(`deploy-command`,{type:`string`,description:`The deploy_command field`}).option(`path-excludes`,{type:`string`,array:!0,description:`The path_excludes field`}).option(`path-includes`,{type:`string`,array:!0,description:`The path_includes field`}).option(`root-directory`,{type:`string`,description:`Root directory path.`}).option(`trigger-name`,{type:`string`,description:`The trigger_name field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ce={command:`update <trigger-uuid>`,describe:`Update an existing CI/CD trigger`,builder:Se,handler:async u=>{if(u.dryRun){a({command:`cf workers-builds triggers update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${u[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(u[`trigger-uuid`]))}`,pathParams:{"trigger-uuid":String(u[`trigger-uuid`]??``)},bodyKind:`json`,body:u.body===void 0?c({branch_excludes:u[`branch-excludes`],branch_includes:u[`branch-includes`],build_caching_enabled:u[`build-caching-enabled`],build_command:l(u[`build-command`],`build-command`,`text`),build_token_uuid:l(u[`build-token-uuid`],`build-token-uuid`,`text`),deploy_command:l(u[`deploy-command`],`deploy-command`,`text`),path_excludes:u[`path-excludes`],path_includes:u[`path-includes`],root_directory:l(u[`root-directory`],`root-directory`,`text`),trigger_name:l(u[`trigger-name`],`trigger-name`,`text`)}):s(u.body)});return}let d=await r(u),f=u.local?e:await t();if(u.accountId=f,u.body){let e=s(u.body);i(await o(`Updating`,async()=>d.workersBuilds.triggers.update({...e,account_id:f,trigger_uuid:u[`trigger-uuid`]})),{successLabel:`Updated`});return}let p=c({branch_excludes:u[`branch-excludes`],branch_includes:u[`branch-includes`],build_caching_enabled:u[`build-caching-enabled`],build_command:l(u[`build-command`],`build-command`,`text`),build_token_uuid:l(u[`build-token-uuid`],`build-token-uuid`,`text`),deploy_command:l(u[`deploy-command`],`deploy-command`,`text`),path_excludes:u[`path-excludes`],path_includes:u[`path-includes`],root_directory:l(u[`root-directory`],`root-directory`,`text`),trigger_name:l(u[`trigger-name`],`trigger-name`,`text`)});i(await o(`Updating`,async()=>d.workersBuilds.triggers.update({...p,account_id:f,trigger_uuid:u[`trigger-uuid`]})),{successLabel:`Updated`})}},we={command:`triggers`,describe:`Triggers operations`,builder:e=>e.command(ce).command(oe).command(ue).command(ye).command(xe).command(Ce).command(_e).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Te(e){return e.option(`git-repository-branch`,{type:`string`,description:`Git branch to watch for builds`}).option(`git-repository-provider-account-id`,{type:`string`,description:`Provider account identifier.`}).option(`git-repository-provider-account-name`,{type:`string`,description:`The git_repository.provider_account_name field`}).option(`git-repository-provider-type`,{type:`string`,description:`The git_repository.provider_type field`,choices:[`github`,`gitlab`,`gitlab_internal`,`origin`]}).option(`git-repository-repo-id`,{type:`string`,description:`Repository identifier.`}).option(`git-repository-repo-name`,{type:`string`,description:`The git_repository.repo_name field`}).option(`git-repository-grant-id`,{type:`string`,description:`Grant ID required for grant-backed providers`}).option(`production-settings-build-command`,{type:`string`,description:`The production_settings.build_command field`}).option(`production-settings-build-token-uuid`,{type:`string`,description:`Build token UUID.`}).option(`production-settings-deploy-command`,{type:`string`,description:`The production_settings.deploy_command field`}).option(`production-settings-path-excludes`,{type:`string`,array:!0,description:`The production_settings.path_excludes field`}).option(`production-settings-path-includes`,{type:`string`,array:!0,description:`The production_settings.path_includes field`}).option(`script-tag`,{type:`string`,description:`System-generated worker script tag.`}).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 a Worker build configuration.`})}const Ee={command:`create`,describe:`Create a new build configuration for a Worker script, linking it to a git repository with CI/CD triggers.`,builder:Te,handler:async f=>{if(f.dryRun){a({command:`cf workers-builds workers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers`,pathParams:{},bodyKind:`json`,body:f.body===void 0?c({git_repository:{branch:l(f[`git-repository-branch`],`git-repository-branch`,`text`),provider_account_id:l(f[`git-repository-provider-account-id`],`git-repository-provider-account-id`,`text`),provider_account_name:l(f[`git-repository-provider-account-name`],`git-repository-provider-account-name`,`text`),provider_type:l(f[`git-repository-provider-type`],`git-repository-provider-type`,`text`),repo_id:l(f[`git-repository-repo-id`],`git-repository-repo-id`,`text`),repo_name:l(f[`git-repository-repo-name`],`git-repository-repo-name`,`text`),grant_id:l(f[`git-repository-grant-id`],`git-repository-grant-id`,`text`)},production_settings:{build_command:l(f[`production-settings-build-command`],`production-settings-build-command`,`text`),build_token_uuid:l(f[`production-settings-build-token-uuid`],`production-settings-build-token-uuid`,`text`),deploy_command:l(f[`production-settings-deploy-command`],`production-settings-deploy-command`,`text`),path_excludes:f[`production-settings-path-excludes`],path_includes:f[`production-settings-path-includes`]},script_tag:l(f[`script-tag`],`script-tag`,`text`)}):s(f.body)});return}let p=await r(f),m=f.local?e:await t();if(f.accountId=m,f.body){let e=s(f.body);i(await o(`Creating`,async()=>p.workersBuilds.workers.create({...e,account_id:m})),{successLabel:`Created`});return}f[`git-repository-branch`]===void 0&&(f[`git-repository-branch`]=await u(`git-repository-branch`,`Git branch to watch for builds`)),f[`git-repository-provider-account-id`]===void 0&&(f[`git-repository-provider-account-id`]=await u(`git-repository-provider-account-id`,`Provider account identifier.`)),f[`git-repository-provider-account-name`]===void 0&&(f[`git-repository-provider-account-name`]=await u(`git-repository-provider-account-name`,`The git_repository.provider_account_name field`)),f[`git-repository-provider-type`]===void 0&&(f[`git-repository-provider-type`]=await d(`git-repository-provider-type`,`The git_repository.provider_type field`,[`github`,`gitlab`,`gitlab_internal`,`origin`])),f[`git-repository-repo-id`]===void 0&&(f[`git-repository-repo-id`]=await u(`git-repository-repo-id`,`Repository identifier.`)),f[`git-repository-repo-name`]===void 0&&(f[`git-repository-repo-name`]=await u(`git-repository-repo-name`,`The git_repository.repo_name field`)),f[`production-settings-build-command`]===void 0&&(f[`production-settings-build-command`]=await u(`production-settings-build-command`,`The production_settings.build_command field`)),f[`production-settings-build-token-uuid`]===void 0&&(f[`production-settings-build-token-uuid`]=await u(`production-settings-build-token-uuid`,`Build token UUID.`)),f[`production-settings-deploy-command`]===void 0&&(f[`production-settings-deploy-command`]=await u(`production-settings-deploy-command`,`The production_settings.deploy_command field`)),f[`script-tag`]===void 0&&(f[`script-tag`]=await u(`script-tag`,`System-generated worker script tag.`));let h=c({git_repository:{branch:l(f[`git-repository-branch`],`git-repository-branch`,`text`),provider_account_id:l(f[`git-repository-provider-account-id`],`git-repository-provider-account-id`,`text`),provider_account_name:l(f[`git-repository-provider-account-name`],`git-repository-provider-account-name`,`text`),provider_type:l(f[`git-repository-provider-type`],`git-repository-provider-type`,`text`),repo_id:l(f[`git-repository-repo-id`],`git-repository-repo-id`,`text`),repo_name:l(f[`git-repository-repo-name`],`git-repository-repo-name`,`text`),grant_id:l(f[`git-repository-grant-id`],`git-repository-grant-id`,`text`)},production_settings:{build_command:l(f[`production-settings-build-command`],`production-settings-build-command`,`text`),build_token_uuid:l(f[`production-settings-build-token-uuid`],`production-settings-build-token-uuid`,`text`),deploy_command:l(f[`production-settings-deploy-command`],`production-settings-deploy-command`,`text`),path_excludes:f[`production-settings-path-excludes`],path_includes:f[`production-settings-path-includes`]},script_tag:l(f[`script-tag`],`script-tag`,`text`)});i(await o(`Creating`,async()=>p.workersBuilds.workers.create({...h,account_id:m})),{successLabel:`Created`})}};function De(e){return e.positional(`script-tag`,{type:`string`,description:`The Worker script tag (external script ID)`,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 $={command:`delete <script-tag>`,describe:`Delete the build configuration for a Worker script.`,builder:De,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds workers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${s[`script-tag`]==null?`<script-tag>`:encodeURIComponent(String(s[`script-tag`]))}`,pathParams:{"script-tag":String(s[`script-tag`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();if(s.accountId=l,!await f({force:!!s.force})){process.stderr.write(`Aborted.
9
9
  `);return}i(await o(`Deleting`,async()=>c.workersBuilds.workers.delete({account_id:l,script_tag:s[`script-tag`]})),{successLabel:`Deleted`})}};function Oe(e){return e.positional(`script-tag`,{type:`string`,description:`The Worker script tag (external script ID)`,demandOption:!0}).option(`git-repository-branch`,{type:`string`,description:`New git branch to watch for builds`}).option(`production-settings-build-caching-enabled`,{type:`boolean`,description:`The production_settings.build_caching_enabled field`}).option(`production-settings-build-command`,{type:`string`,description:`The production_settings.build_command field`}).option(`production-settings-build-token-uuid`,{type:`string`,description:`Build token UUID.`}).option(`production-settings-deploy-command`,{type:`string`,description:`The production_settings.deploy_command field`}).option(`production-settings-path-excludes`,{type:`string`,array:!0,description:`The production_settings.path_excludes field`}).option(`production-settings-path-includes`,{type:`string`,array:!0,description:`The production_settings.path_includes field`}).option(`production-settings-root-directory`,{type:`string`,description:`Root directory path.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for updating a Worker build configuration. At least one field must be provided.`})}const ke={command:`edit <script-tag>`,describe:`Update the build configuration for a Worker script. Supports partial updates to git repository settings and production build settings.`,builder:Oe,handler:async u=>{if(u.dryRun){a({command:`cf workers-builds workers edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${u[`script-tag`]==null?`<script-tag>`:encodeURIComponent(String(u[`script-tag`]))}`,pathParams:{"script-tag":String(u[`script-tag`]??``)},bodyKind:`json`,body:u.body===void 0?c({git_repository:{branch:l(u[`git-repository-branch`],`git-repository-branch`,`text`)},production_settings:{build_caching_enabled:u[`production-settings-build-caching-enabled`],build_command:l(u[`production-settings-build-command`],`production-settings-build-command`,`text`),build_token_uuid:l(u[`production-settings-build-token-uuid`],`production-settings-build-token-uuid`,`text`),deploy_command:l(u[`production-settings-deploy-command`],`production-settings-deploy-command`,`text`),path_excludes:u[`production-settings-path-excludes`],path_includes:u[`production-settings-path-includes`],root_directory:l(u[`production-settings-root-directory`],`production-settings-root-directory`,`text`)}}):s(u.body)});return}let d=await r(u),f=u.local?e:await t();if(u.accountId=f,u.body){let e=s(u.body);i(await o(`Updating`,async()=>d.workersBuilds.workers.edit({...e,account_id:f,script_tag:u[`script-tag`]})),{successLabel:`Updated`});return}let p=c({git_repository:{branch:l(u[`git-repository-branch`],`git-repository-branch`,`text`)},production_settings:{build_caching_enabled:u[`production-settings-build-caching-enabled`],build_command:l(u[`production-settings-build-command`],`production-settings-build-command`,`text`),build_token_uuid:l(u[`production-settings-build-token-uuid`],`production-settings-build-token-uuid`,`text`),deploy_command:l(u[`production-settings-deploy-command`],`production-settings-deploy-command`,`text`),path_excludes:u[`production-settings-path-excludes`],path_includes:u[`production-settings-path-includes`],root_directory:l(u[`production-settings-root-directory`],`production-settings-root-directory`,`text`)}});i(await o(`Updating`,async()=>d.workersBuilds.workers.edit({...p,account_id:f,script_tag:u[`script-tag`]})),{successLabel:`Updated`})}};function Ae(e){return e.positional(`script-tag`,{type:`string`,description:`The Worker script tag (external script ID)`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const je={command:`get <script-tag>`,describe:`Retrieve the build configuration for a specific Worker script, including git repository details and production settings.`,builder:Ae,handler:async s=>{if(s.dryRun){a({command:`cf workers-builds workers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${s[`script-tag`]==null?`<script-tag>`:encodeURIComponent(String(s[`script-tag`]))}`,pathParams:{"script-tag":String(s[`script-tag`]??``)},bodyKind:`none`});return}let c=await r(s),l=s.local?e:await t();s.accountId=l,i(await o(`Loading`,async()=>c.workersBuilds.workers.get({account_id:l,script_tag:s[`script-tag`]})),{successLabel:`Loaded`})}},Me={command:`workers`,describe:`Workers operations`,builder:e=>e.command(Ee).command($).command(ke).command(je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ne={command:`workers-builds`,describe:`Automated build and deployment pipeline for Workers — track builds, logs, and repo connections`,builder:e=>e.command(I).command(R).command(B).command(x).command(P).command(Y).command(ie).command(we).command(Me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Ne as default};