@vercel/cli-support 65.15.0 → 65.16.0-snapshot-579f9b2619d8

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 (258) hide show
  1. package/dist/chunks/{add-WGP6UVQN.js → add-7QN52B57.js} +1 -1
  2. package/dist/chunks/{add-6T3KGMEH.js → add-F6E3N6EL.js} +1 -1
  3. package/dist/chunks/{add-LULORXI7.js → add-MC6ZRFQX.js} +1 -1
  4. package/dist/chunks/{alerts-IFUWVZU4.js → alerts-LVINUFWK.js} +1 -1
  5. package/dist/chunks/{build-H5WTYJH4.js → build-IU3F645C.js} +1 -1
  6. package/dist/chunks/{chunk-X5LOHZT5.js → chunk-26NZS3ME.js} +1 -1
  7. package/dist/chunks/{chunk-HFVCKK5P.js → chunk-2DP7BD4A.js} +1 -1
  8. package/dist/chunks/{chunk-6737KAJP.js → chunk-2GBU6ULJ.js} +1 -1
  9. package/dist/chunks/{chunk-QEZ6KFSY.js → chunk-2QAXUK5X.js} +1 -1
  10. package/dist/chunks/{chunk-DETGGKXT.js → chunk-2R3K7FYA.js} +1 -1
  11. package/dist/chunks/{chunk-UZXQY5X5.js → chunk-2Y5X7IPM.js} +1 -1
  12. package/dist/chunks/{chunk-5DEAFZBT.js → chunk-33P2H5LU.js} +1 -1
  13. package/dist/chunks/{chunk-KVDSSSSF.js → chunk-34RN7PH7.js} +1 -1
  14. package/dist/chunks/{chunk-PL6TMRQZ.js → chunk-3FXGAG5H.js} +1 -1
  15. package/dist/chunks/{chunk-XDBRJ7H3.js → chunk-4K2IT6C4.js} +1 -1
  16. package/dist/chunks/{chunk-P333Z5AT.js → chunk-5MZ7JZY7.js} +1 -1
  17. package/dist/chunks/{chunk-3JFPC5MK.js → chunk-5S6VTCXQ.js} +1 -1
  18. package/dist/chunks/{chunk-W25UARQV.js → chunk-5ZCSFPWG.js} +1 -1
  19. package/dist/chunks/{chunk-6MFLATDD.js → chunk-5ZJ6UU6P.js} +1 -1
  20. package/dist/chunks/{chunk-ODM3YKPR.js → chunk-62EY3VOP.js} +1 -1
  21. package/dist/chunks/{chunk-4TD2KH46.js → chunk-63FPHKCJ.js} +1 -1
  22. package/dist/chunks/{chunk-SP6E7PHW.js → chunk-6CJFPT4F.js} +1 -1
  23. package/dist/chunks/{chunk-2LOA3LC6.js → chunk-6FYPSSL4.js} +1 -1
  24. package/dist/chunks/{chunk-BYJQPGPK.js → chunk-6IT3XN6I.js} +1 -1
  25. package/dist/chunks/chunk-6IZ2TU4N.js +12 -0
  26. package/dist/chunks/{chunk-2OQD274E.js → chunk-6UI3ZNHM.js} +7 -7
  27. package/dist/chunks/{chunk-UXRRYYSD.js → chunk-7HLAWGY2.js} +1 -1
  28. package/dist/chunks/{chunk-6C5KUHQP.js → chunk-7KCRYDGK.js} +1 -1
  29. package/dist/chunks/{chunk-SQ76HIB6.js → chunk-AB4WXRCO.js} +1 -1
  30. package/dist/chunks/{chunk-HVZ5OOOP.js → chunk-AFQLIDZC.js} +1 -1
  31. package/dist/chunks/{chunk-HVQEYQWF.js → chunk-AXKC5J52.js} +1 -1
  32. package/dist/chunks/{chunk-3EHJOZJB.js → chunk-BBQ4XOTI.js} +1 -1
  33. package/dist/chunks/{chunk-HVBSYQDN.js → chunk-BKHJUBCA.js} +1 -1
  34. package/dist/chunks/{chunk-JVGENO2R.js → chunk-BMIYC2MH.js} +1 -1
  35. package/dist/chunks/{chunk-26EJ4FM6.js → chunk-BPIGFKNN.js} +1 -1
  36. package/dist/chunks/{chunk-VBGL7MZR.js → chunk-BPM6HU7K.js} +1 -1
  37. package/dist/chunks/{chunk-CJ6XPDSS.js → chunk-BPQUJWX5.js} +1 -1
  38. package/dist/chunks/{chunk-YE245S4O.js → chunk-C35SG42R.js} +1 -1
  39. package/dist/chunks/{chunk-XHPIQGUS.js → chunk-CBEMES2R.js} +1 -1
  40. package/dist/chunks/{chunk-JZ4NMX3Z.js → chunk-CC36LXTT.js} +1 -1
  41. package/dist/chunks/chunk-CFJBDBYH.js +7 -0
  42. package/dist/chunks/{chunk-JQHS743O.js → chunk-CM7I3U5I.js} +1 -1
  43. package/dist/chunks/{chunk-MSJA64LL.js → chunk-D44WCAOX.js} +1 -1
  44. package/dist/chunks/chunk-D66BF5UU.js +7 -0
  45. package/dist/chunks/{chunk-2V6UURUN.js → chunk-DDPH26ZO.js} +1 -1
  46. package/dist/chunks/{chunk-PRNTZKYB.js → chunk-DJIBJVEQ.js} +1 -1
  47. package/dist/chunks/{chunk-T7XSLFZ6.js → chunk-DMPINPWB.js} +1 -1
  48. package/dist/chunks/{chunk-Z5FNUSWW.js → chunk-DOBV3XLO.js} +1 -1
  49. package/dist/chunks/{chunk-7GSB5AQE.js → chunk-DSHWUXYY.js} +1 -1
  50. package/dist/chunks/{chunk-OFZUWHZW.js → chunk-DTUEHPME.js} +1 -1
  51. package/dist/chunks/{chunk-WKSXBH7X.js → chunk-DY643UZ7.js} +2 -1
  52. package/dist/chunks/{chunk-O3DAPRJ3.js → chunk-EJLYDHT7.js} +1 -1
  53. package/dist/chunks/{chunk-4OO6TXBM.js → chunk-ELM2KPYX.js} +1 -1
  54. package/dist/chunks/{chunk-7OJMANDL.js → chunk-EVZCOEPD.js} +1 -1
  55. package/dist/chunks/{chunk-XEISEISC.js → chunk-FBLGDSCA.js} +6 -6
  56. package/dist/chunks/{chunk-U3J3SJJ5.js → chunk-FZ5XTMGO.js} +2 -2
  57. package/dist/chunks/{chunk-AR3ADTVY.js → chunk-GDOKUFG3.js} +1 -1
  58. package/dist/chunks/chunk-GLCSWIB4.js +7 -0
  59. package/dist/chunks/{chunk-RWK4YZLO.js → chunk-GV4XVRPN.js} +1 -1
  60. package/dist/chunks/{chunk-MTJLZGL5.js → chunk-HQGD4PEO.js} +1 -1
  61. package/dist/chunks/{chunk-UDKIA6WN.js → chunk-HXEXHXD4.js} +1 -1
  62. package/dist/chunks/{chunk-KAYGNWHX.js → chunk-I4QLOG2Z.js} +1 -1
  63. package/dist/chunks/{chunk-W45KFKUW.js → chunk-IG5ACFU6.js} +1 -1
  64. package/dist/chunks/{chunk-5L566FZB.js → chunk-IIK6GUVI.js} +1 -1
  65. package/dist/chunks/chunk-IJHT5BPS.js +12 -0
  66. package/dist/chunks/{chunk-3JM374FP.js → chunk-INICCBM4.js} +1 -1
  67. package/dist/chunks/{chunk-O3I6OKIE.js → chunk-IOQZ7HZM.js} +1 -1
  68. package/dist/chunks/chunk-IVZF2PMV.js +11 -0
  69. package/dist/chunks/chunk-JNA6LHLT.js +24 -0
  70. package/dist/chunks/{chunk-ATUJAOUR.js → chunk-JNXPL4Y4.js} +1 -1
  71. package/dist/chunks/{chunk-XF3327G6.js → chunk-JP2TYFG4.js} +1 -1
  72. package/dist/chunks/chunk-JWKFVECK.js +7 -0
  73. package/dist/chunks/{chunk-7O2W7ILO.js → chunk-K2IVJE2G.js} +1 -1
  74. package/dist/chunks/{chunk-X5I33MJS.js → chunk-K7ZPHS55.js} +1 -1
  75. package/dist/chunks/{chunk-ONXOTUO6.js → chunk-KBON4ISC.js} +1 -1
  76. package/dist/chunks/{chunk-2W4ND5DH.js → chunk-KEGZOZE5.js} +1 -1
  77. package/dist/chunks/{chunk-PSPPENIK.js → chunk-KLII7LME.js} +1 -1
  78. package/dist/chunks/{chunk-Z2HYNJLC.js → chunk-KNVMEDGC.js} +1 -1
  79. package/dist/chunks/{chunk-GTOSMVDY.js → chunk-L7MSHLII.js} +1 -1
  80. package/dist/chunks/{chunk-VTZH5DW3.js → chunk-LAFP5A4S.js} +1 -1
  81. package/dist/chunks/{chunk-NHB43235.js → chunk-LYL26S3N.js} +1 -1
  82. package/dist/chunks/{chunk-IDHH6QTJ.js → chunk-LYRSA2EI.js} +13 -3
  83. package/dist/chunks/{chunk-554TYJKV.js → chunk-M2J4MIKF.js} +1 -1
  84. package/dist/chunks/{chunk-4TAAEP5J.js → chunk-MCKKADC2.js} +1 -1
  85. package/dist/chunks/{chunk-TDHFWPK5.js → chunk-MKXE2IE4.js} +1 -1
  86. package/dist/chunks/{chunk-SPV6M2GS.js → chunk-MNRHYWPJ.js} +1 -1
  87. package/dist/chunks/{chunk-6TYBUUO4.js → chunk-MXAXD5DQ.js} +1 -1
  88. package/dist/chunks/{chunk-A7YTYTWM.js → chunk-MXN736AL.js} +1 -1
  89. package/dist/chunks/{chunk-EZ7CJF5G.js → chunk-N5MSOEHD.js} +1 -1
  90. package/dist/chunks/{chunk-5THEFDOZ.js → chunk-NJFTAKDY.js} +1 -1
  91. package/dist/chunks/{chunk-7RAGU3PA.js → chunk-NPROMJAU.js} +1 -1
  92. package/dist/chunks/{chunk-O47OWLP7.js → chunk-OKRQ2XLR.js} +1 -1
  93. package/dist/chunks/chunk-PDPX7546.js +12 -0
  94. package/dist/chunks/{chunk-VHRQW57O.js → chunk-PDUIYEMP.js} +1 -1
  95. package/dist/chunks/{chunk-OKKG2FUS.js → chunk-PIDEH4SJ.js} +1 -1
  96. package/dist/chunks/{chunk-QFCYM4RS.js → chunk-PY4WWD6Z.js} +1 -1
  97. package/dist/chunks/{chunk-B6WYIUOW.js → chunk-Q2PXJ55R.js} +1 -1
  98. package/dist/chunks/{chunk-LT3Z7YQX.js → chunk-QM2VCL36.js} +1 -1
  99. package/dist/chunks/{chunk-UZQJQXGJ.js → chunk-QOLGACFD.js} +1 -1
  100. package/dist/chunks/{chunk-N7NTAYBS.js → chunk-R5EPF72H.js} +1 -1
  101. package/dist/chunks/{chunk-KRZBZ7PB.js → chunk-RDO7G5LL.js} +1 -1
  102. package/dist/chunks/{chunk-U6P3UM3Z.js → chunk-RUGX7ONC.js} +1 -1
  103. package/dist/chunks/{chunk-YVIAN4VL.js → chunk-SCXMZVZ4.js} +1 -1
  104. package/dist/chunks/{chunk-A3C67PNC.js → chunk-SKYIWHB5.js} +1 -1
  105. package/dist/chunks/{chunk-HR66URIC.js → chunk-SYJXONEV.js} +1 -1
  106. package/dist/chunks/chunk-T3SXUNB7.js +21 -0
  107. package/dist/chunks/{chunk-TA4HB2ZR.js → chunk-TKF4SYCC.js} +1 -1
  108. package/dist/chunks/{chunk-YEQ7BBOS.js → chunk-TWHV3M4I.js} +1 -1
  109. package/dist/chunks/{chunk-ABSFPYM4.js → chunk-UDZJCD5W.js} +1 -1
  110. package/dist/chunks/{chunk-C35XH6YM.js → chunk-UJKEX77T.js} +1 -1
  111. package/dist/chunks/chunk-UQZZX2J7.js +7 -0
  112. package/dist/chunks/{chunk-6Q2XEYCJ.js → chunk-VHSAI6FS.js} +1 -1
  113. package/dist/chunks/chunk-VRYJNBOR.js +7 -0
  114. package/dist/chunks/chunk-WJX5PGNN.js +7 -0
  115. package/dist/chunks/chunk-WZCLCG4J.js +7 -0
  116. package/dist/chunks/{chunk-GUSOYIW6.js → chunk-XDYVJWGX.js} +1 -1
  117. package/dist/chunks/{chunk-E7CEQ2PO.js → chunk-XECELSF5.js} +1 -1
  118. package/dist/chunks/chunk-XKPB27SC.js +8 -0
  119. package/dist/chunks/{chunk-2QYOZU6E.js → chunk-XPFVO6C6.js} +1 -1
  120. package/dist/chunks/{chunk-DCUWC7WP.js → chunk-XTLEX3PJ.js} +1 -1
  121. package/dist/chunks/chunk-Y3F3TOOX.js +10 -0
  122. package/dist/chunks/{chunk-6VUD3LZP.js → chunk-ZKQ47ZXI.js} +1 -1
  123. package/dist/chunks/chunk-ZRA5BQXP.js +27 -0
  124. package/dist/chunks/{chunk-MCLT57FD.js → chunk-ZTLBMY3L.js} +1 -1
  125. package/dist/chunks/{chunk-HIK5CJTT.js → chunk-ZUDCZSDX.js} +1 -1
  126. package/dist/chunks/{chunk-OFOZ5DBA.js → chunk-ZZD5W5KT.js} +1 -1
  127. package/dist/chunks/{clear-L4HSULAA.js → clear-GJJUFB2T.js} +1 -1
  128. package/dist/chunks/{cli-embedded-NCWN74UF.js → cli-embedded-6SKYFUXJ.js} +2 -3
  129. package/dist/chunks/{compile-vercel-config-3AD57TKS.js → compile-vercel-config-6X6PGKDP.js} +1 -1
  130. package/dist/chunks/{config-N4SB5PPU.js → config-PJG22P4Z.js} +1 -1
  131. package/dist/chunks/{config-E7OJDF2P.js → config-S5V6CZRI.js} +1 -1
  132. package/dist/chunks/config-validator.mjs +1 -1
  133. package/dist/chunks/{contract-EULMKZS4.js → contract-R7ZFR2S3.js} +1 -1
  134. package/dist/chunks/{delete-33WIMH3P.js → delete-K4E77OOH.js} +1 -1
  135. package/dist/chunks/{delete-45EEPRWI.js → delete-NPYVDIFP.js} +1 -1
  136. package/dist/chunks/{describe-QAF4MI7I.js → describe-P4GM6EO2.js} +1 -1
  137. package/dist/chunks/{detect-projects-XGIE3YBG.js → detect-projects-4GK5I7QF.js} +1 -1
  138. package/dist/chunks/{detect-services-AAVP4EBS.js → detect-services-RPRW33BU.js} +1 -1
  139. package/dist/chunks/{disable-H3Z7OJJE.js → disable-OVOL3LWV.js} +1 -1
  140. package/dist/chunks/{discard-KIEAG7NI.js → discard-WOXNVSDS.js} +1 -1
  141. package/dist/chunks/{edit-YQJNSZTX.js → edit-G4DQQ4RV.js} +1 -1
  142. package/dist/chunks/{edit-3Q36ZYIA.js → edit-TSHEL2Y4.js} +1 -1
  143. package/dist/chunks/{enable-BMB5D7AO.js → enable-TDASZXQQ.js} +1 -1
  144. package/dist/chunks/{engine-DkdkXQEy-FDYYIXY7.js → engine-DkdkXQEy-VKQPUSSO.js} +1 -1
  145. package/dist/chunks/{export-QQAZAQOU.js → export-3EX2GKDG.js} +1 -1
  146. package/dist/chunks/{future-TZACZMSV.js → future-JZGOH3V2.js} +1 -1
  147. package/dist/chunks/{generate-cert-for-deploy-EZM5MW2G.js → generate-cert-for-deploy-C7O33LOJ.js} +1 -1
  148. package/dist/chunks/{image-YAMHIRFF.js → image-OVUBWPST.js} +1 -1
  149. package/dist/chunks/{import-builders-DE7NPR7N.js → import-builders-FKD73NYP.js} +1 -1
  150. package/dist/chunks/{inspect-MFVWIQT4.js → inspect-AJR3QIH5.js} +1 -1
  151. package/dist/chunks/{inspect-QNZWH5O3.js → inspect-AV5FVCCK.js} +1 -1
  152. package/dist/chunks/{inspect-OHNQUBKI.js → inspect-SEXVZS4G.js} +1 -1
  153. package/dist/chunks/{inspect-DIH47SML.js → inspect-TBSVBZUN.js} +1 -1
  154. package/dist/chunks/{inspect-VCJDESUJ.js → inspect-V4SPH2NB.js} +1 -1
  155. package/dist/chunks/{inspect-Y5LG6JUC.js → inspect-ZJD2MJWC.js} +1 -1
  156. package/dist/chunks/{list-AYUHH7TO.js → list-C6FS72S5.js} +1 -1
  157. package/dist/chunks/{list-KB6YGNJZ.js → list-EBCMDKJS.js} +1 -1
  158. package/dist/chunks/{list-C7GYUVSJ.js → list-M77FQQFX.js} +1 -1
  159. package/dist/chunks/{list-YJSC2ST6.js → list-QJZEUHZD.js} +1 -1
  160. package/dist/chunks/{login-T2VKRCUS.js → login-6PBI6PM2.js} +1 -1
  161. package/dist/chunks/{login-E47LQVJN.js → login-XYSPQU6N.js} +1 -1
  162. package/dist/chunks/{logs-BLMH6Y45.js → logs-ANETOSUR.js} +1 -1
  163. package/dist/chunks/{ls-V6KTI55Z.js → ls-26I7XZBC.js} +1 -1
  164. package/dist/chunks/{ls-BPRVNFEB.js → ls-2YN4PHE6.js} +1 -1
  165. package/dist/chunks/{ls-CBV4C474.js → ls-AXYPC5JY.js} +1 -1
  166. package/dist/chunks/{ls-JOOH2AF2.js → ls-DK6563EC.js} +1 -1
  167. package/dist/chunks/{ls-GI4HMBK6.js → ls-OUPL2GET.js} +1 -1
  168. package/dist/chunks/{ls-EBJTSOO7.js → ls-W7P3L76L.js} +1 -1
  169. package/dist/chunks/{ls-5KNEE66N.js → ls-XXK4CXFN.js} +1 -1
  170. package/dist/chunks/{migrate-experimental-services-ZMZITRD4.js → migrate-experimental-services-MSGNPCL7.js} +1 -1
  171. package/dist/chunks/{mutate-5AQS53DH.js → mutate-IBPZFKJ5.js} +1 -1
  172. package/dist/chunks/{notifications-T74YEQUZ.js → notifications-D2EQYROT.js} +1 -1
  173. package/dist/chunks/{open-GUNAPG6S.js → open-CXDBD72L.js} +1 -1
  174. package/dist/chunks/openapi-XZOI5Q7B.js +7 -0
  175. package/dist/chunks/{permissions-BISSYSWA.js → permissions-BPXSQD6I.js} +1 -1
  176. package/dist/chunks/{plugin-offer-NIDPSYYJ.js → plugin-offer-SQNMTIYE.js} +1 -1
  177. package/dist/chunks/{prompt-missing-credentials-YR5RBSGW.js → prompt-missing-credentials-QM4NGCZD.js} +1 -1
  178. package/dist/chunks/{publish-D7EXNS3C.js → publish-5BKJUDF2.js} +1 -1
  179. package/dist/chunks/{pull-NQ2FQBCM.js → pull-L7VY77Y4.js} +1 -1
  180. package/dist/chunks/{purchase-domain-if-available-YG3AOXZ7.js → purchase-domain-if-available-P66IAKLA.js} +1 -1
  181. package/dist/chunks/{push-OCU3RUHV.js → push-ZDALENLW.js} +1 -1
  182. package/dist/chunks/query-N4C5TD22.js +7 -0
  183. package/dist/chunks/raw-query-A7U4PTQZ.js +8 -0
  184. package/dist/chunks/{reauthenticate-S7ZZYONP.js → reauthenticate-ZX6AMGZ6.js} +1 -1
  185. package/dist/chunks/{remove-LZTO47IA.js → remove-TRI7VSFC.js} +1 -1
  186. package/dist/chunks/{reorder-TMBGWMPR.js → reorder-BCRI7RUZ.js} +1 -1
  187. package/dist/chunks/{reply-55HPMB6K.js → reply-SFW3HYUS.js} +1 -1
  188. package/dist/chunks/{resolve-BTBTAK33.js → resolve-QK4KE7FE.js} +1 -1
  189. package/dist/chunks/{resolve-agent-team-3QXPCCT7.js → resolve-agent-team-Z7ZHCMLX.js} +1 -1
  190. package/dist/chunks/{restore-K6LCLHTG.js → restore-LWBDMFH2.js} +1 -1
  191. package/dist/chunks/{rm-CEUCQRIX.js → rm-7CDYQOBQ.js} +1 -1
  192. package/dist/chunks/{rm-I5PRDQHP.js → rm-KIPL54AA.js} +1 -1
  193. package/dist/chunks/{rm-UOP7BPBQ.js → rm-OWZAM6LM.js} +1 -1
  194. package/dist/chunks/{rm-LL6X65SS.js → rm-PMS5WEEL.js} +1 -1
  195. package/dist/chunks/{rm-4PSIPJUA.js → rm-WBSH2FU4.js} +1 -1
  196. package/dist/chunks/{rule-inspect-DKODR7X2.js → rule-inspect-O544YVJS.js} +1 -1
  197. package/dist/chunks/{schema-L3YB2LQE.js → schema-UYWLZVGF.js} +1 -1
  198. package/dist/chunks/{schema-LRVPWIYU.js → schema-XKG4E3TS.js} +1 -1
  199. package/dist/chunks/{select-org-JQBD5NDP.js → select-org-SGAC2GQ5.js} +1 -1
  200. package/dist/chunks/{serving-DKny38LK-UNINNTL5.js → serving-DKny38LK-WG5QDDEJ.js} +1 -1
  201. package/dist/chunks/{set-YBCB2ZLD.js → set-J4UEV5IF.js} +1 -1
  202. package/dist/chunks/{set-UMNUZAGG.js → set-NRTRIRMB.js} +1 -1
  203. package/dist/chunks/{setup-and-link-JRQ5DLOI.js → setup-and-link-ZXJW6CB4.js} +1 -1
  204. package/dist/chunks/{skills-DDFYTBGG.js → skills-GICDAOI2.js} +3 -1
  205. package/dist/chunks/{tags-WRH47Z4W.js → tags-5BLLDHDY.js} +1 -1
  206. package/dist/chunks/token-MYYNOUIT.js +7 -0
  207. package/dist/chunks/{token-util-KL35LHLQ.js → token-util-OJHS52JP.js} +1 -1
  208. package/dist/chunks/{types-NQECZN4K.js → types-HBXTZZAC.js} +1 -1
  209. package/dist/chunks/{update-FAMBH7PW.js → update-NXJ7PC5H.js} +1 -1
  210. package/dist/chunks/{usage-YACGLTPY.js → usage-6U2JZOPE.js} +1 -1
  211. package/dist/chunks/{validate-config-X6DF35VG.js → validate-config-6RVSBIWX.js} +1 -1
  212. package/dist/commands/build/index.js +1 -1
  213. package/dist/commands/deploy/index.js +11 -10
  214. package/dist/commands/dev/index.js +5 -5
  215. package/dist/commands/env/index.js +3 -3
  216. package/dist/commands/link/index.js +1 -1
  217. package/dist/commands/list/index.js +1 -1
  218. package/dist/commands/project/index.js +31 -29
  219. package/dist/commands/tunnel/index.js +1 -1
  220. package/dist/commands-account.js +18 -18
  221. package/dist/commands-ai.js +130 -80
  222. package/dist/commands-blob.js +16 -16
  223. package/dist/commands-core.js +9 -9
  224. package/dist/commands-deployments.js +1 -1
  225. package/dist/commands-flags.js +165 -142
  226. package/dist/commands-integrations.js +6 -6
  227. package/dist/commands-observability.js +3 -3
  228. package/dist/commands-routing.js +7 -7
  229. package/dist/help.js +1 -1
  230. package/dist/index.js +4 -4
  231. package/dist/internal-build.js +1 -1
  232. package/dist/package.json +41 -41
  233. package/dist/version.mjs +1 -1
  234. package/package.json +43 -43
  235. package/dist/chunks/chunk-3S7H6NCV.js +0 -20
  236. package/dist/chunks/chunk-5PAMKYPV.js +0 -14
  237. package/dist/chunks/chunk-AY523IYR.js +0 -7
  238. package/dist/chunks/chunk-DIHB5BUY.js +0 -8
  239. package/dist/chunks/chunk-EB7744O7.js +0 -24
  240. package/dist/chunks/chunk-EI4CUIVA.js +0 -7
  241. package/dist/chunks/chunk-EZVNGJN5.js +0 -7
  242. package/dist/chunks/chunk-HOGVBY6Q.js +0 -11
  243. package/dist/chunks/chunk-HSCWCGL7.js +0 -7
  244. package/dist/chunks/chunk-IIMHD3FA.js +0 -7
  245. package/dist/chunks/chunk-KRVZKKJV.js +0 -12
  246. package/dist/chunks/chunk-LNQAOLNW.js +0 -10
  247. package/dist/chunks/chunk-MZ7ITRVR.js +0 -12
  248. package/dist/chunks/chunk-SEHERY6U.js +0 -7
  249. package/dist/chunks/chunk-U2ZNF6HN.js +0 -8
  250. package/dist/chunks/chunk-UIGZMWS6.js +0 -16
  251. package/dist/chunks/chunk-YANOBY2G.js +0 -7
  252. package/dist/chunks/openapi-5WTF7EXK.js +0 -7
  253. package/dist/chunks/query-FM6SRTQP.js +0 -12
  254. package/dist/chunks/token-3ILJZPAZ.js +0 -7
  255. package/dist/chunks/token-JJLQVXPI.js +0 -7
  256. package/dist/chunks/token-util-A4BSB3KP.js +0 -7
  257. /package/dist/chunks/{chunk-WFS3XBAA.js → chunk-MRCM5VF5.js} +0 -0
  258. /package/dist/chunks/{chunk-SNGM6NSO.js → chunk-TK7K6GCG.js} +0 -0
@@ -4,7 +4,7 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{getNativePackageName}from"./chunk-T7GKQYWA.js";import{HOMEBREW_UPGRADE_COMMAND,execPackageManager,getUpdateCommandInfo,getUpgradePackageManager,isGlobal,packageManagerInvocation,trustedUpgradeDirectory,trustedUpgradeEnvironment}from"./chunk-YVIAN4VL.js";import{require_semver}from"./chunk-BPUANOGW.js";import{withDirectoryLock}from"./chunk-TABMJZVW.js";import{progress}from"./chunk-U56NHYAH.js";import{require_ci_info}from"./chunk-KDCODXVL.js";import{getInstallRoot,isNativeBinaryInstall}from"./chunk-NWGBDBZI.js";import{getCachedUsername,require_lib}from"./chunk-2OQD274E.js";import{pkg_default}from"./chunk-BOJDM3O7.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import{__commonJS,__require,__toESM}from"./chunk-BZENIQ7N.js";var require_lib2=__commonJS({"../../node_modules/.pnpm/os-paths@4.4.0/node_modules/os-paths/src/lib/index.js"(exports,module){"use strict";var os=__require("os"),paths=__require("path"),isWinOS=/^win/i.test(process.platform);function normalize_path(path){return paths.normalize(paths.join(path,"."))}var base=()=>{let{env}=process,object={};return object.home=()=>normalize_path(os.homedir?os.homedir():env.HOME),object.temp=()=>normalize_path(os.tmpdir?os.tmpdir():env.TMPDIR||env.TEMP||env.TMP),object},windows=()=>{let{env}=process,object={};return object.home=()=>normalize_path(os.homedir?os.homedir():env.USERPROFILE||paths.join(env.HOMEDRIVE,env.HOMEPATH)||env.HOME),object.temp=()=>normalize_path(os.tmpdir?os.tmpdir():env.TEMP||env.TMP||paths.join(env.LOCALAPPDATA||env.SystemRoot||env.windir,"Temp")),object},_OSPaths=class __OSPaths{constructor(){let OSPaths=function(){return new __OSPaths};this._fn=OSPaths;let extension=isWinOS?windows():base();return Object.keys(extension).forEach(key=>{this._fn[key]=extension[key]}),this._fn}};module.exports=new _OSPaths}});var require_lib3=__commonJS({"../../node_modules/.pnpm/xdg-portable@7.3.0/node_modules/xdg-portable/src/lib/index.js"(exports,module){"use strict";var path=__require("path"),osPaths=require_lib2(),linux=()=>{let object={};return object.cache=()=>process.env.XDG_CACHE_HOME||path.join(osPaths.home()||osPaths.temp(),".cache"),object.config=()=>process.env.XDG_CONFIG_HOME||path.join(osPaths.home()||osPaths.temp(),".config"),object.data=()=>process.env.XDG_DATA_HOME||path.join(osPaths.home()||osPaths.temp(),".local","share"),object.runtime=()=>process.env.XDG_RUNTIME_DIR||void 0,object.state=()=>process.env.XDG_STATE_HOME||path.join(osPaths.home()||osPaths.temp(),".local","state"),object},macos=()=>{let object={};return object.cache=()=>process.env.XDG_CACHE_HOME||path.join(path.join(osPaths.home()||osPaths.temp(),"Library"),"Caches"),object.config=()=>process.env.XDG_CONFIG_HOME||path.join(path.join(osPaths.home()||osPaths.temp(),"Library"),"Preferences"),object.data=()=>process.env.XDG_DATA_HOME||path.join(path.join(osPaths.home()||osPaths.temp(),"Library"),"Application Support"),object.runtime=()=>process.env.XDG_RUNTIME_DIR||void 0,object.state=()=>process.env.XDG_STATE_HOME||path.join(path.join(osPaths.home()||osPaths.temp(),"Library"),"State"),object},windows=()=>{let object={};return object.cache=()=>{let localAppData=process.env.LOCALAPPDATA||path.join(osPaths.home()||osPaths.temp(),"AppData","Local");return process.env.XDG_CACHE_HOME||path.join(localAppData,"xdg.cache")},object.config=()=>{let appData=process.env.APPDATA||path.join(osPaths.home()||osPaths.temp(),"AppData","Roaming");return process.env.XDG_CONFIG_HOME||path.join(appData,"xdg.config")},object.data=()=>{let appData=process.env.APPDATA||path.join(osPaths.home()||osPaths.temp(),"AppData","Roaming");return process.env.XDG_DATA_HOME||path.join(appData,"xdg.data")},object.runtime=()=>process.env.XDG_RUNTIME_DIR||void 0,object.state=()=>{let localAppData=process.env.LOCALAPPDATA||path.join(osPaths.home()||osPaths.temp(),"AppData","Local");return process.env.XDG_STATE_HOME||path.join(localAppData,"xdg.state")},object},_XDGPortable=()=>{let XDGPortable=function(){return _XDGPortable()},extension={};return/^darwin$/i.test(process.platform)?extension=macos():/^win/i.test(process.platform)?extension=windows():extension=linux(),extension.configDirs=()=>{let dirs=[];return dirs.push(extension.config()),process.env.XDG_CONFIG_DIRS&&dirs.push(...process.env.XDG_CONFIG_DIRS.split(path.delimiter)),dirs},extension.dataDirs=()=>{let dirs=[];return dirs.push(extension.data()),process.env.XDG_DATA_DIRS&&dirs.push(...process.env.XDG_DATA_DIRS.split(path.delimiter)),dirs},Object.keys(extension).forEach(key=>{XDGPortable[key]=extension[key]}),XDGPortable};module.exports=_XDGPortable()}});var require_xdg_app_paths=__commonJS({"../../node_modules/.pnpm/xdg-app-paths@5.1.0/node_modules/xdg-app-paths/index.js"(exports,module){"use strict";var path=__require("path"),os=__require("os"),xdg=require_lib3(),isWinOS=/^win/i.test(process.platform);function _normalizeOptions(options,isolated){if(options=options||{},typeof options!="object"&&(options={isolated:options}),options.isolated=options.isolated===void 0||options.isolated===null?isolated:options.isolated,typeof options.isolated!="boolean")throw new TypeError(`Expected boolean for "isolated" argument, got ${typeof options.isolated}`);return options}var base=(name,isolated)=>{let object={};return object.cache=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),path.join(xdg.cache(),options.isolated?name:"")),object.config=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),path.join(xdg.config(),options.isolated?name:"")),object.data=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),path.join(xdg.data(),options.isolated?name:"")),object.runtime=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),xdg.runtime()?path.join(xdg.runtime(),options.isolated?name:""):void 0),object.state=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),path.join(xdg.state(),options.isolated?name:"")),object.configDirs=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),xdg.configDirs().map(s=>path.join(s,options.isolated?name:""))),object.dataDirs=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),xdg.dataDirs().map(s=>path.join(s,options.isolated?name:""))),object},windows=(name,isolated)=>{let{env}=process,homedir=os.homedir(),tmpdir=os.tmpdir(),appData=env.APPDATA||path.join(homedir||tmpdir,"AppData","Roaming"),localAppData=env.LOCALAPPDATA||path.join(homedir||tmpdir,"AppData","Local"),object={};return object.cache=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),!options.isolated||env.XDG_CACHE_HOME?path.join(xdg.cache(),options.isolated?name:""):path.join(localAppData,options.isolated?name:"","Cache")),object.config=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),!options.isolated||env.XDG_CONFIG_HOME?path.join(xdg.config(),options.isolated?name:""):path.join(appData,options.isolated?name:"","Config")),object.data=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),!options.isolated||env.XDG_DATA_HOME?path.join(xdg.data(),options.isolated?name:""):path.join(appData,options.isolated?name:"","Data")),object.runtime=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),xdg.runtime()?path.join(xdg.runtime(),options.isolated?name:""):void 0),object.state=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),!options.isolated||env.XDG_STATE_HOME?path.join(xdg.state(),options.isolated?name:""):path.join(localAppData,options.isolated?name:"","State")),object.configDirs=(options={isolated:null})=>{options=_normalizeOptions(options,isolated);let dirs=[object.config(options)];return env.XDG_CONFIG_DIRS&&dirs.push(...env.XDG_CONFIG_DIRS.split(path.delimiter).map(s=>path.join(s,options.isolated?name:""))),dirs},object.dataDirs=(options={isolated:null})=>{options=_normalizeOptions(options,isolated);let dirs=[object.data(options)];return env.XDG_DATA_DIRS&&dirs.push(...env.XDG_DATA_DIRS.split(path.delimiter).map(s=>path.join(s,options.isolated?name:""))),dirs},object},_XDGAppPaths=class __XDGAppPaths{constructor(options={name:null,suffix:null,isolated:!0}){let XDGAppPaths2=function(options2={name:null,suffix:null,isolated:!0}){return new __XDGAppPaths(options2)};this._fn=XDGAppPaths2,options=options||{},typeof options!="object"&&(options={name:options});let name=options.name||"";if(typeof name!="string")throw new TypeError(`Expected string for "name" argument, got ${typeof name}`);let suffix=options.suffix||"";if(typeof suffix!="string")throw new TypeError(`Expected string for "suffix" argument, got ${typeof suffix}`);let isolated=options.isolated===void 0||options.isolated===null?!0:options.isolated;if(typeof isolated!="boolean")throw new TypeError(`Expected boolean for "isolated" argument, got ${typeof isolated}`);name||(name=path.parse(process.pkg?process.execPath:__require.main?__require.main.filename:process.argv[0]).name),suffix&&(name+=suffix),this._fn.$name=()=>name,this._fn.$isolated=()=>isolated;let extension=isWinOS?windows(name,isolated):base(name,isolated);return Object.keys(extension).forEach(key=>{this._fn[key]=extension[key]}),this._fn}};module.exports=new _XDGAppPaths}});var require_fetch_dist_tags=__commonJS({"src/util/get-latest-version/fetch-dist-tags.cjs"(exports,module){"use strict";var https=__require("https");function fetchDistTags(name,options){let timeout=options&&options.timeout||3e3,agent=new https.Agent({keepAlive:!0,maxSockets:15}),headers={accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},url=`https://registry.npmjs.org/-/package/${name}/dist-tags`;return new Promise(resolve2=>{let timer=setTimeout(()=>{req.destroy(),resolve2(void 0)},timeout),req=https.get(url,{agent,headers},res=>{let buf="";res.on("data",chunk=>{buf+=chunk}),res.on("end",()=>{clearTimeout(timer);try{if(res.statusCode&&res.statusCode>=400){resolve2(void 0);return}resolve2(JSON.parse(buf))}catch{resolve2(void 0)}})});req.on("error",()=>{clearTimeout(timer),resolve2(void 0)})})}module.exports={fetchDistTags}}});function getWhoamiCachedAnswer(args,authConfig){return args.includes("--cached")?getCachedUsername(authConfig):void 0}var import_semver=__toESM(require_semver(),1);import{spawn}from"child_process";function renderUpgradeProgress(current,total,phase){let bar=progress(current,total);output_manager_default.spinner(bar?`Upgrading Vercel CLI [${bar}] (${current}/${total})${phase?` ${phase}`:""}`:phase||"Upgrading Vercel CLI\u2026",0)}function execFileStdout(command,args,cwd,env=trustedUpgradeEnvironment){return execPackageManager(command,args,{cwd,env,timeout:15e3})}function parseVersionOutput(stdout){for(let line of[stdout.trim(),...stdout.trim().split(`
7
+ import{getNativePackageName}from"./chunk-T7GKQYWA.js";import{HOMEBREW_UPGRADE_COMMAND,execPackageManager,getUpdateCommandInfo,getUpgradePackageManager,isGlobal,packageManagerInvocation,trustedUpgradeDirectory,trustedUpgradeEnvironment}from"./chunk-SCXMZVZ4.js";import{require_semver}from"./chunk-BPUANOGW.js";import{withDirectoryLock}from"./chunk-TABMJZVW.js";import{progress}from"./chunk-U56NHYAH.js";import{require_ci_info}from"./chunk-KDCODXVL.js";import{getInstallRoot,isNativeBinaryInstall}from"./chunk-NWGBDBZI.js";import{getCachedUsername,require_lib}from"./chunk-6UI3ZNHM.js";import{pkg_default}from"./chunk-BOJDM3O7.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import{__commonJS,__require,__toESM}from"./chunk-BZENIQ7N.js";var require_lib2=__commonJS({"../../node_modules/.pnpm/os-paths@4.4.0/node_modules/os-paths/src/lib/index.js"(exports,module){"use strict";var os=__require("os"),paths=__require("path"),isWinOS=/^win/i.test(process.platform);function normalize_path(path){return paths.normalize(paths.join(path,"."))}var base=()=>{let{env}=process,object={};return object.home=()=>normalize_path(os.homedir?os.homedir():env.HOME),object.temp=()=>normalize_path(os.tmpdir?os.tmpdir():env.TMPDIR||env.TEMP||env.TMP),object},windows=()=>{let{env}=process,object={};return object.home=()=>normalize_path(os.homedir?os.homedir():env.USERPROFILE||paths.join(env.HOMEDRIVE,env.HOMEPATH)||env.HOME),object.temp=()=>normalize_path(os.tmpdir?os.tmpdir():env.TEMP||env.TMP||paths.join(env.LOCALAPPDATA||env.SystemRoot||env.windir,"Temp")),object},_OSPaths=class __OSPaths{constructor(){let OSPaths=function(){return new __OSPaths};this._fn=OSPaths;let extension=isWinOS?windows():base();return Object.keys(extension).forEach(key=>{this._fn[key]=extension[key]}),this._fn}};module.exports=new _OSPaths}});var require_lib3=__commonJS({"../../node_modules/.pnpm/xdg-portable@7.3.0/node_modules/xdg-portable/src/lib/index.js"(exports,module){"use strict";var path=__require("path"),osPaths=require_lib2(),linux=()=>{let object={};return object.cache=()=>process.env.XDG_CACHE_HOME||path.join(osPaths.home()||osPaths.temp(),".cache"),object.config=()=>process.env.XDG_CONFIG_HOME||path.join(osPaths.home()||osPaths.temp(),".config"),object.data=()=>process.env.XDG_DATA_HOME||path.join(osPaths.home()||osPaths.temp(),".local","share"),object.runtime=()=>process.env.XDG_RUNTIME_DIR||void 0,object.state=()=>process.env.XDG_STATE_HOME||path.join(osPaths.home()||osPaths.temp(),".local","state"),object},macos=()=>{let object={};return object.cache=()=>process.env.XDG_CACHE_HOME||path.join(path.join(osPaths.home()||osPaths.temp(),"Library"),"Caches"),object.config=()=>process.env.XDG_CONFIG_HOME||path.join(path.join(osPaths.home()||osPaths.temp(),"Library"),"Preferences"),object.data=()=>process.env.XDG_DATA_HOME||path.join(path.join(osPaths.home()||osPaths.temp(),"Library"),"Application Support"),object.runtime=()=>process.env.XDG_RUNTIME_DIR||void 0,object.state=()=>process.env.XDG_STATE_HOME||path.join(path.join(osPaths.home()||osPaths.temp(),"Library"),"State"),object},windows=()=>{let object={};return object.cache=()=>{let localAppData=process.env.LOCALAPPDATA||path.join(osPaths.home()||osPaths.temp(),"AppData","Local");return process.env.XDG_CACHE_HOME||path.join(localAppData,"xdg.cache")},object.config=()=>{let appData=process.env.APPDATA||path.join(osPaths.home()||osPaths.temp(),"AppData","Roaming");return process.env.XDG_CONFIG_HOME||path.join(appData,"xdg.config")},object.data=()=>{let appData=process.env.APPDATA||path.join(osPaths.home()||osPaths.temp(),"AppData","Roaming");return process.env.XDG_DATA_HOME||path.join(appData,"xdg.data")},object.runtime=()=>process.env.XDG_RUNTIME_DIR||void 0,object.state=()=>{let localAppData=process.env.LOCALAPPDATA||path.join(osPaths.home()||osPaths.temp(),"AppData","Local");return process.env.XDG_STATE_HOME||path.join(localAppData,"xdg.state")},object},_XDGPortable=()=>{let XDGPortable=function(){return _XDGPortable()},extension={};return/^darwin$/i.test(process.platform)?extension=macos():/^win/i.test(process.platform)?extension=windows():extension=linux(),extension.configDirs=()=>{let dirs=[];return dirs.push(extension.config()),process.env.XDG_CONFIG_DIRS&&dirs.push(...process.env.XDG_CONFIG_DIRS.split(path.delimiter)),dirs},extension.dataDirs=()=>{let dirs=[];return dirs.push(extension.data()),process.env.XDG_DATA_DIRS&&dirs.push(...process.env.XDG_DATA_DIRS.split(path.delimiter)),dirs},Object.keys(extension).forEach(key=>{XDGPortable[key]=extension[key]}),XDGPortable};module.exports=_XDGPortable()}});var require_xdg_app_paths=__commonJS({"../../node_modules/.pnpm/xdg-app-paths@5.1.0/node_modules/xdg-app-paths/index.js"(exports,module){"use strict";var path=__require("path"),os=__require("os"),xdg=require_lib3(),isWinOS=/^win/i.test(process.platform);function _normalizeOptions(options,isolated){if(options=options||{},typeof options!="object"&&(options={isolated:options}),options.isolated=options.isolated===void 0||options.isolated===null?isolated:options.isolated,typeof options.isolated!="boolean")throw new TypeError(`Expected boolean for "isolated" argument, got ${typeof options.isolated}`);return options}var base=(name,isolated)=>{let object={};return object.cache=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),path.join(xdg.cache(),options.isolated?name:"")),object.config=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),path.join(xdg.config(),options.isolated?name:"")),object.data=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),path.join(xdg.data(),options.isolated?name:"")),object.runtime=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),xdg.runtime()?path.join(xdg.runtime(),options.isolated?name:""):void 0),object.state=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),path.join(xdg.state(),options.isolated?name:"")),object.configDirs=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),xdg.configDirs().map(s=>path.join(s,options.isolated?name:""))),object.dataDirs=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),xdg.dataDirs().map(s=>path.join(s,options.isolated?name:""))),object},windows=(name,isolated)=>{let{env}=process,homedir=os.homedir(),tmpdir=os.tmpdir(),appData=env.APPDATA||path.join(homedir||tmpdir,"AppData","Roaming"),localAppData=env.LOCALAPPDATA||path.join(homedir||tmpdir,"AppData","Local"),object={};return object.cache=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),!options.isolated||env.XDG_CACHE_HOME?path.join(xdg.cache(),options.isolated?name:""):path.join(localAppData,options.isolated?name:"","Cache")),object.config=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),!options.isolated||env.XDG_CONFIG_HOME?path.join(xdg.config(),options.isolated?name:""):path.join(appData,options.isolated?name:"","Config")),object.data=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),!options.isolated||env.XDG_DATA_HOME?path.join(xdg.data(),options.isolated?name:""):path.join(appData,options.isolated?name:"","Data")),object.runtime=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),xdg.runtime()?path.join(xdg.runtime(),options.isolated?name:""):void 0),object.state=(options={isolated:null})=>(options=_normalizeOptions(options,isolated),!options.isolated||env.XDG_STATE_HOME?path.join(xdg.state(),options.isolated?name:""):path.join(localAppData,options.isolated?name:"","State")),object.configDirs=(options={isolated:null})=>{options=_normalizeOptions(options,isolated);let dirs=[object.config(options)];return env.XDG_CONFIG_DIRS&&dirs.push(...env.XDG_CONFIG_DIRS.split(path.delimiter).map(s=>path.join(s,options.isolated?name:""))),dirs},object.dataDirs=(options={isolated:null})=>{options=_normalizeOptions(options,isolated);let dirs=[object.data(options)];return env.XDG_DATA_DIRS&&dirs.push(...env.XDG_DATA_DIRS.split(path.delimiter).map(s=>path.join(s,options.isolated?name:""))),dirs},object},_XDGAppPaths=class __XDGAppPaths{constructor(options={name:null,suffix:null,isolated:!0}){let XDGAppPaths2=function(options2={name:null,suffix:null,isolated:!0}){return new __XDGAppPaths(options2)};this._fn=XDGAppPaths2,options=options||{},typeof options!="object"&&(options={name:options});let name=options.name||"";if(typeof name!="string")throw new TypeError(`Expected string for "name" argument, got ${typeof name}`);let suffix=options.suffix||"";if(typeof suffix!="string")throw new TypeError(`Expected string for "suffix" argument, got ${typeof suffix}`);let isolated=options.isolated===void 0||options.isolated===null?!0:options.isolated;if(typeof isolated!="boolean")throw new TypeError(`Expected boolean for "isolated" argument, got ${typeof isolated}`);name||(name=path.parse(process.pkg?process.execPath:__require.main?__require.main.filename:process.argv[0]).name),suffix&&(name+=suffix),this._fn.$name=()=>name,this._fn.$isolated=()=>isolated;let extension=isWinOS?windows(name,isolated):base(name,isolated);return Object.keys(extension).forEach(key=>{this._fn[key]=extension[key]}),this._fn}};module.exports=new _XDGAppPaths}});var require_fetch_dist_tags=__commonJS({"src/util/get-latest-version/fetch-dist-tags.cjs"(exports,module){"use strict";var https=__require("https");function fetchDistTags(name,options){let timeout=options&&options.timeout||3e3,agent=new https.Agent({keepAlive:!0,maxSockets:15}),headers={accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},url=`https://registry.npmjs.org/-/package/${name}/dist-tags`;return new Promise(resolve2=>{let timer=setTimeout(()=>{req.destroy(),resolve2(void 0)},timeout),req=https.get(url,{agent,headers},res=>{let buf="";res.on("data",chunk=>{buf+=chunk}),res.on("end",()=>{clearTimeout(timer);try{if(res.statusCode&&res.statusCode>=400){resolve2(void 0);return}resolve2(JSON.parse(buf))}catch{resolve2(void 0)}})});req.on("error",()=>{clearTimeout(timer),resolve2(void 0)})})}module.exports={fetchDistTags}}});function getWhoamiCachedAnswer(args,authConfig){return args.includes("--cached")?getCachedUsername(authConfig):void 0}var import_semver=__toESM(require_semver(),1);import{spawn}from"child_process";function renderUpgradeProgress(current,total,phase){let bar=progress(current,total);output_manager_default.spinner(bar?`Upgrading Vercel CLI [${bar}] (${current}/${total})${phase?` ${phase}`:""}`:phase||"Upgrading Vercel CLI\u2026",0)}function execFileStdout(command,args,cwd,env=trustedUpgradeEnvironment){return execPackageManager(command,args,{cwd,env,timeout:15e3})}function parseVersionOutput(stdout){for(let line of[stdout.trim(),...stdout.trim().split(`
8
8
  `).reverse()])try{let value=JSON.parse(line),parsed=Array.isArray(value)&&value.length===1?value[0]:value,version=typeof parsed=="string"?parsed:typeof parsed?.data=="string"?parsed.data:void 0;if(version&&import_semver.default.valid(version))return version}catch{let version=line.trim();if(import_semver.default.valid(version))return version}}async function getLatestPackageVersion(packageManager,installArgs,cwd,global,env,bypassMinReleaseAge=!0){let packageSpecifier=installArgs.find(arg=>arg.endsWith("@latest"));if(!packageSpecifier)return;let manager=getUpgradePackageManager(packageManager),queryArgs=[...manager.metadataArgs(packageSpecifier),...bypassMinReleaseAge?manager.releaseAgeBypassArgs:[]];try{let stdout=await execFileStdout(packageManager,queryArgs,cwd,env);return parseVersionOutput(stdout)}catch(error){output_manager_default.debug(`Failed to resolve the latest Vercel CLI version: ${error instanceof Error?error.message:String(error)}`);return}}async function getInstalledPackageVersion(packageManager,installArgs,cwd,global){let packageSpecifier=installArgs.find(arg=>arg.endsWith("@latest"));if(!packageSpecifier)return;let packageName=packageSpecifier.slice(0,-7);try{let stdout=await execFileStdout(packageManager,["list",packageName,"--depth=0","--json",...global?["--global"]:[]],cwd),parsed=JSON.parse(stdout),projects=Array.isArray(parsed)?parsed:[parsed];for(let project of projects){let version=project?.dependencies?.[packageName]?.version??project?.devDependencies?.[packageName]?.version??project?.optionalDependencies?.[packageName]?.version;if(typeof version=="string"&&import_semver.default.valid(version))return version}}catch(error){output_manager_default.debug(`Failed to read the installed Vercel CLI version: ${error instanceof Error?error.message:String(error)}`)}}function isVersionCurrent(current,latest){return import_semver.default.valid(current)&&import_semver.default.valid(latest)?import_semver.default.gte(current,latest):current===latest}function pinPackageVersion(args,version){return args.map(arg=>arg.endsWith("@latest")?`${arg.slice(0,-6)}${version}`:arg)}async function getMinReleaseAgeContext(packageManager,cwd,global){let setting=packageManager==="pnpm"?"minimumReleaseAge":"min-release-age";try{let raw=(await execFileStdout(packageManager,["config","get",setting,"--json",...global?["--global"]:[]],cwd)).trim(),value=raw===""||raw==="undefined"?void 0:JSON.parse(raw);if(!(value==null||value===""||value==="undefined")){let age=typeof value=="number"||typeof value=="string"&&value.trim()!==""?Number(value):NaN;if(!Number.isFinite(age)||age<0)return`Could not determine ${packageManager}'s configured minimum release age.`;let minutes=packageManager==="pnpm"?age:age*1440,duration=minutes>0&&minutes%60===0?`${minutes/60} ${minutes===60?"hour":"hours"}`:`${minutes} ${minutes===1?"minute":"minutes"}`;return`${packageManager} ${setting} is configured to ${duration}.`}if(packageManager==="pnpm"){let version=parseVersionOutput(await execFileStdout(packageManager,["--version"],cwd));if(version&&!import_semver.default.prerelease(version)&&import_semver.default.gte(version,"11.0.0"))return`pnpm ${version} defaults to a minimum release age of 24 hours (1440 minutes); no explicit minimumReleaseAge setting was reported.`}return`${packageManager} did not report a configured minimum release age.`}catch{return`Could not determine ${packageManager}'s configured minimum release age.`}}function isMinReleaseAgeError(packageManager,stdout,stderr){let installerOutput=`${stdout}
9
9
  ${stderr}`;return packageManager==="pnpm"?installerOutput.includes("ERR_PNPM_NO_MATURE_MATCHING_VERSION")||installerOutput.includes("ERR_PNPM_NO_MATCHING_VERSION")&&installerOutput.includes("satisfies the specs but was released at"):packageManager==="npm"?/\bETARGET\b/.test(installerOutput)&&installerOutput.includes("with a date before")||/min-release-age cannot be provided/i.test(installerOutput):!1}function setMinReleaseAgeBypass(client,enabled){client.config={...client.config,updates:{...client.config.updates,bypassMinReleaseAge:enabled}},client.writeToConfigFile()}async function executeHomebrewUpgrade(env=trustedUpgradeEnvironment){let[brew,...args]=HOMEBREW_UPGRADE_COMMAND.split(" ");output_manager_default.debug(`Executing: ${HOMEBREW_UPGRADE_COMMAND}`);let result=await new Promise(resolve2=>{let settled=!1,brewProcess=spawn(brew,args,{cwd:trustedUpgradeDirectory,env:{...env},stdio:"inherit",shell:!1});brewProcess.on("error",spawnError=>{settled||(settled=!0,resolve2({code:1,spawnError}))}),brewProcess.on("close",code=>{settled||(settled=!0,resolve2({code:code??1}))})});return result.spawnError?(output_manager_default.error(`Failed to run Homebrew: ${result.spawnError.message}`),output_manager_default.log(`You can try running the command manually: ${HOMEBREW_UPGRADE_COMMAND}`),1):(result.code!==0&&(output_manager_default.error(`Homebrew upgrade failed with exit code ${result.code}`),output_manager_default.log(`You can try running the command manually: ${HOMEBREW_UPGRADE_COMMAND}`)),result.code)}function executeAutomaticUpgrade(client,env=trustedUpgradeEnvironment){return executeUpgrade("latest",client,!1,!0,env,"package-manager")}async function executeUpgrade(targetVersion,client,bypassMinReleaseAge=!1,explicitTarget=!1,env=trustedUpgradeEnvironment,releaseAgePolicy="newest",outcome){let totalSteps=targetVersion?2:3;renderUpgradeProgress(0,totalSteps,"Resolving installer\u2026");let{command:updateCommand,global,packageManager}=await getUpdateCommandInfo(env).catch(error=>{throw output_manager_default.stopSpinner(),error}),[command,...args]=updateCommand.split(" "),cwd=global?trustedUpgradeDirectory:process.cwd(),bypassArgs=getUpgradePackageManager(packageManager).releaseAgeBypassArgs;if(bypassMinReleaseAge&&bypassArgs.length===0)return output_manager_default.stopSpinner(),output_manager_default.error(`Minimum release-age bypass is not supported for ${packageManager}. Run the upgrade without --bypass-min-release-age, or configure release-age settings in ${packageManager} directly.`),1;bypassMinReleaseAge&&client&&client.config.updates?.bypassMinReleaseAge!==!0&&setMinReleaseAgeBypass(client,!0);let versionBefore=pkg_default.version,installLatestTag=explicitTarget&&targetVersion==="latest",resolvedTargetVersion=installLatestTag?void 0:targetVersion;if(targetVersion||(renderUpgradeProgress(1,totalSteps,"Checking for updates\u2026"),resolvedTargetVersion=await getLatestPackageVersion(packageManager,args,cwd,global,env,releaseAgePolicy==="newest")),!resolvedTargetVersion&&!installLatestTag)return output_manager_default.stopSpinner(),output_manager_default.error("Failed to resolve the latest Vercel CLI version."),1;if(!explicitTarget&&resolvedTargetVersion&&isVersionCurrent(versionBefore,resolvedTargetVersion))return renderUpgradeProgress(totalSteps,totalSteps),output_manager_default.stopSpinner(),output_manager_default.log(`No upgrade available. Vercel CLI is already up to date (v${versionBefore}).`),0;let installArgs=resolvedTargetVersion?pinPackageVersion(args,resolvedTargetVersion):args,shouldBypass=releaseAgePolicy==="newest"&&bypassArgs.length>0&&(bypassMinReleaseAge||client?.config.updates?.bypassMinReleaseAge===!0);shouldBypass&&(installArgs=[...installArgs,...bypassArgs]);let runInstall=currentArgs=>{let installCommand=[command,...currentArgs].join(" ");return output_manager_default.debug(`Executing: ${installCommand} (cwd: ${cwd})`),new Promise(resolve2=>{let stdout=[],stderr=[],invocation;try{invocation=packageManagerInvocation(command,currentArgs,env)}catch(spawnError){resolve2({code:1,stdout:"",stderr:"",spawnError});return}let upgradeProcess=spawn(invocation.file,invocation.args,{cwd,env:{...env},stdio:["inherit","pipe","pipe"],shell:!1,windowsVerbatimArguments:invocation.windowsVerbatimArguments});upgradeProcess.stdout?.on("data",data=>{stdout.push(Uint8Array.from(data)),output_manager_default.debug(`[upgrade stdout] ${data.toString().trimEnd()}`)}),upgradeProcess.stderr?.on("data",data=>{stderr.push(Uint8Array.from(data)),output_manager_default.debug(`[upgrade stderr] ${data.toString().trimEnd()}`)});let settled=!1;upgradeProcess.on("error",spawnError=>{settled||(settled=!0,resolve2({code:1,stdout:"",stderr:"",spawnError}))}),upgradeProcess.on("close",code=>{settled||(settled=!0,resolve2({code:code??1,stdout:Buffer.concat(stdout).toString(),stderr:Buffer.concat(stderr).toString()}))})})};renderUpgradeProgress(targetVersion?1:2,totalSteps,"Installing\u2026");let result=await runInstall(installArgs),usedAllowedRelease=!1;if(result.code!==0&&!result.spawnError&&releaseAgePolicy==="newest"&&!shouldBypass&&bypassArgs.length>0&&isMinReleaseAgeError(packageManager,result.stdout,result.stderr)){let context=await getMinReleaseAgeContext(packageManager,cwd,global);output_manager_default.stopSpinner();let blockedMessage=`The package manager blocked this Vercel CLI release because of its minimum release-age setting. ${context}`;if(!client||client.nonInteractive||!client.stdin.isTTY)return output_manager_default.error(`${blockedMessage}
10
10
  To install the newest release allowed by your settings:
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{fetchAllPages}from"./chunk-MSJA64LL.js";import{isPerEntityScope}from"./chunk-YE245S4O.js";import{isAPIError}from"./chunk-GOI2VVI7.js";var TEAM_BUDGET={scope:"team"},BUDGET_THRESHOLD_PERCENTS=[50,75,100],PAUSE_AT_PERCENT=100;function buildThresholds({pause,webhookUrl}){return BUDGET_THRESHOLD_PERCENTS.map(percent=>({percent,sendNotifications:!0,triggerWebhook:!!webhookUrl,pauseUsage:percent===PAUSE_AT_PERCENT?!!pause:!1}))}function thresholdsForSet({existing,pause,pauseSpecified,webhookUrl,webhookSpecified}){if(!existing?.length)return buildThresholds({pause,webhookUrl});let next=existing.map(threshold=>({...threshold}));if(pauseSpecified&&(next=applyPauseToThresholds(next,pause)),webhookSpecified){let triggerWebhook=!!webhookUrl;next=next.map(threshold=>({...threshold,triggerWebhook}))}return next}function hasPauseThreshold(thresholds){return thresholds.some(threshold=>threshold.percent===PAUSE_AT_PERCENT)}function pausePercentsOutside100(thresholds){return thresholds.filter(threshold=>threshold.pauseUsage&&threshold.percent!==PAUSE_AT_PERCENT).map(threshold=>threshold.percent)}function applyPauseToThresholds(thresholds,pause){return pause?thresholds.map(threshold=>({...threshold,pauseUsage:threshold.percent===PAUSE_AT_PERCENT})):thresholds.map(threshold=>({...threshold,pauseUsage:!1}))}function spendDollars(spend){return spend?.currentSpend==null?null:spend.currentSpend/100}function percentUsed(spent,amount){return spent!==null&&amount>0?Math.round(spent/amount*100):null}function spendPayload(spent,amount){return{currentSpend:spent,percentUsed:amount===null?null:percentUsed(spent,amount),unit:"usd"}}var NO_RETRY={retries:0};function budgetPauses(budget){return budget.thresholds.some(t=>t.pauseUsage)}function ownerJson(owner){return owner.type==="organization"?{organizationId:owner.id,organizationSlug:owner.slug}:{teamId:owner.id,teamSlug:owner.slug}}function withScopeName(item,scopeName){return Object.fromEntries(Object.entries(item).flatMap(([key,value])=>key==="scopeId"?[[key,value],["scopeName",scopeName]]:[[key,value]]))}function budgetJson(budget,scopeName){return withScopeName({...budget,webhook:budget.webhook?{id:budget.webhook.id,url:budget.webhook.url}:null},scopeName)}function budgetAlertJson(alert,scopeName){return withScopeName(alert,scopeName)}function setReceipt({owner,target,outcome,budget}){let webhookSecret=budget.webhook?.secret;return{...ownerJson(owner),target,outcome,budget:budgetJson(budget,target.name),...webhookSecret?{webhookSecret}:{}}}function removeReceipt({owner,target,budget}){return{...ownerJson(owner),target,outcome:budget?"deleted":"unchanged",alreadyAbsent:budget===null,budget:budget?budgetJson(budget,target.name):null}}function formatUsdWhole(dollars){return`$${dollars.toLocaleString("en-US",{maximumFractionDigits:0})}`}function formatUsd(dollars){return`$${dollars.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}async function listBudgets(client,selector){let budgets=await fetchAllPages(async next=>{let params=new URLSearchParams({limit:"100",status:"active"});setSelectorParams(params,selector),next&&params.set("next",next);let page=await client.fetch(`/v2/budgets?${params}`,{method:"GET",...ownerOptions(selector)});return{items:page.data??[],next:page.pagination?.next??null}});return newestPerSlot(budgets)}function newestPerSlot(budgets){let seen=new Set;return budgets.filter(budget=>{let target=isPerEntityScope(budget.scope)?budget.scopeId??"":"",slot=`${budget.ownerId}:${budget.scope}:${target}`;return seen.has(slot)?!1:(seen.add(slot),!0)})}async function findBudget(client,selector=TEAM_BUDGET){return(await listBudgets(client,selector))[0]}async function createBudget(client,input){try{return await client.fetch(`/v2/budgets${orgQuery(input)}`,{method:"POST",...ownerOptions(input),retry:{retries:0},body:{scope:input.scope,...input.scopeId?{scopeId:input.scopeId}:{},amount:input.amount,thresholds:input.thresholds,...input.webhookUrl?{webhookUrl:input.webhookUrl}:{}}})}catch(err){let budgetId=existingBudgetId(err);if(!budgetId)throw err;return updateBudget(client,budgetId,{amount:input.amount,thresholds:input.thresholds,webhookUrl:input.webhookUrl||null},input)}}function isPreviousPlanBudgetError(err){return isAPIError(err)&&err.code==="budget_not_current"}function existingBudgetId(err){if(!isAPIError(err)||err.code!=="budget_exists")return;let{budgetId,status}=err;return status==="disabled"&&typeof budgetId=="string"?budgetId:void 0}async function updateBudget(client,budgetId,input,selector){return client.fetch(budgetPath(budgetId,selector),{method:"PATCH",...ownerOptions(selector),retry:{retries:0},body:{amount:input.amount,thresholds:input.thresholds,status:"active",...input.webhookUrl!==void 0?{webhookUrl:input.webhookUrl}:{}}})}async function removeBudget(client,budgetId,selector){return client.fetch(budgetPath(budgetId,selector),{method:"DELETE",...ownerOptions(selector)})}function budgetPath(budgetId,selector){return`/v2/budgets/${encodeURIComponent(budgetId)}${orgQuery(selector)}`}async function getTeamSpend(client,teamId,selector=TEAM_BUDGET,{retry}={}){if(selector.orgId)return{currentSpend:null,avgSpend:null};let params=new URLSearchParams;selector.scope!=="team"&&setSelectorParams(params,selector);let qs=params.toString(),{data}=await client.fetch(`/teams/${encodeURIComponent(teamId)}/spend${qs?`?${qs}`:""}`,{method:"GET",...retry?{retry}:{}});return data??{currentSpend:null,avgSpend:null}}async function listBudgetAlerts(client,selector,query={},{retry}={}){let params=new URLSearchParams;setSelectorParams(params,selector);for(let[key,value]of Object.entries(query))value!==void 0&&params.set(key,String(value));let page=await client.fetch(`/v2/budget-alerts?${params}`,{method:"GET",...ownerOptions(selector),...retry?{retry}:{}});return{data:page.data??[],next:page.pagination?.next??null}}async function listBudgetProducts(client){return(await client.fetch("/v2/budget-products",{method:"GET"})).data??[]}function setSelectorParams(params,selector){if(selector){if(Array.isArray(selector.scope)){params.set("scope",selector.scope.join(","));return}params.set("scope",selector.scope),"scopeId"in selector&&selector.scopeId&&params.set("scopeId",selector.scopeId),"orgId"in selector&&selector.orgId&&params.set("orgId",selector.orgId)}}function orgIdOf(selector){return selector&&"orgId"in selector?selector.orgId:void 0}function ownerOptions(selector){return orgIdOf(selector)?{useCurrentTeam:!1}:{}}function orgQuery(selector){let orgId=orgIdOf(selector);return orgId?`?${new URLSearchParams({orgId})}`:""}export{TEAM_BUDGET,thresholdsForSet,hasPauseThreshold,pausePercentsOutside100,spendDollars,percentUsed,spendPayload,NO_RETRY,budgetPauses,ownerJson,budgetJson,budgetAlertJson,setReceipt,removeReceipt,formatUsdWhole,formatUsd,listBudgets,findBudget,createBudget,isPreviousPlanBudgetError,updateBudget,removeBudget,getTeamSpend,listBudgetAlerts,listBudgetProducts};
7
+ import{fetchAllPages}from"./chunk-D44WCAOX.js";import{isPerEntityScope}from"./chunk-C35SG42R.js";import{isAPIError}from"./chunk-GOI2VVI7.js";var TEAM_BUDGET={scope:"team"},BUDGET_THRESHOLD_PERCENTS=[50,75,100],PAUSE_AT_PERCENT=100;function buildThresholds({pause,webhookUrl}){return BUDGET_THRESHOLD_PERCENTS.map(percent=>({percent,sendNotifications:!0,triggerWebhook:!!webhookUrl,pauseUsage:percent===PAUSE_AT_PERCENT?!!pause:!1}))}function thresholdsForSet({existing,pause,pauseSpecified,webhookUrl,webhookSpecified}){if(!existing?.length)return buildThresholds({pause,webhookUrl});let next=existing.map(threshold=>({...threshold}));if(pauseSpecified&&(next=applyPauseToThresholds(next,pause)),webhookSpecified){let triggerWebhook=!!webhookUrl;next=next.map(threshold=>({...threshold,triggerWebhook}))}return next}function hasPauseThreshold(thresholds){return thresholds.some(threshold=>threshold.percent===PAUSE_AT_PERCENT)}function pausePercentsOutside100(thresholds){return thresholds.filter(threshold=>threshold.pauseUsage&&threshold.percent!==PAUSE_AT_PERCENT).map(threshold=>threshold.percent)}function applyPauseToThresholds(thresholds,pause){return pause?thresholds.map(threshold=>({...threshold,pauseUsage:threshold.percent===PAUSE_AT_PERCENT})):thresholds.map(threshold=>({...threshold,pauseUsage:!1}))}function spendDollars(spend){return spend?.currentSpend==null?null:spend.currentSpend/100}function percentUsed(spent,amount){return spent!==null&&amount>0?Math.round(spent/amount*100):null}function spendPayload(spent,amount){return{currentSpend:spent,percentUsed:amount===null?null:percentUsed(spent,amount),unit:"usd"}}var NO_RETRY={retries:0};function budgetPauses(budget){return budget.thresholds.some(t=>t.pauseUsage)}function ownerJson(owner){return owner.type==="organization"?{organizationId:owner.id,organizationSlug:owner.slug}:{teamId:owner.id,teamSlug:owner.slug}}function withScopeName(item,scopeName){return Object.fromEntries(Object.entries(item).flatMap(([key,value])=>key==="scopeId"?[[key,value],["scopeName",scopeName]]:[[key,value]]))}function budgetJson(budget,scopeName){return withScopeName({...budget,webhook:budget.webhook?{id:budget.webhook.id,url:budget.webhook.url}:null},scopeName)}function budgetAlertJson(alert,scopeName){return withScopeName(alert,scopeName)}function setReceipt({owner,target,outcome,budget}){let webhookSecret=budget.webhook?.secret;return{...ownerJson(owner),target,outcome,budget:budgetJson(budget,target.name),...webhookSecret?{webhookSecret}:{}}}function removeReceipt({owner,target,budget}){return{...ownerJson(owner),target,outcome:budget?"deleted":"unchanged",alreadyAbsent:budget===null,budget:budget?budgetJson(budget,target.name):null}}function formatUsdWhole(dollars){return`$${dollars.toLocaleString("en-US",{maximumFractionDigits:0})}`}function formatUsd(dollars){return`$${dollars.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}async function listBudgets(client,selector){let budgets=await fetchAllPages(async next=>{let params=new URLSearchParams({limit:"100",status:"active"});setSelectorParams(params,selector),next&&params.set("next",next);let page=await client.fetch(`/v2/budgets?${params}`,{method:"GET",...ownerOptions(selector)});return{items:page.data??[],next:page.pagination?.next??null}});return newestPerSlot(budgets)}function newestPerSlot(budgets){let seen=new Set;return budgets.filter(budget=>{let target=isPerEntityScope(budget.scope)?budget.scopeId??"":"",slot=`${budget.ownerId}:${budget.scope}:${target}`;return seen.has(slot)?!1:(seen.add(slot),!0)})}async function findBudget(client,selector=TEAM_BUDGET){return(await listBudgets(client,selector))[0]}async function createBudget(client,input){try{return await client.fetch(`/v2/budgets${orgQuery(input)}`,{method:"POST",...ownerOptions(input),retry:{retries:0},body:{scope:input.scope,...input.scopeId?{scopeId:input.scopeId}:{},amount:input.amount,thresholds:input.thresholds,...input.webhookUrl?{webhookUrl:input.webhookUrl}:{}}})}catch(err){let budgetId=existingBudgetId(err);if(!budgetId)throw err;return updateBudget(client,budgetId,{amount:input.amount,thresholds:input.thresholds,webhookUrl:input.webhookUrl||null},input)}}function isPreviousPlanBudgetError(err){return isAPIError(err)&&err.code==="budget_not_current"}function existingBudgetId(err){if(!isAPIError(err)||err.code!=="budget_exists")return;let{budgetId,status}=err;return status==="disabled"&&typeof budgetId=="string"?budgetId:void 0}async function updateBudget(client,budgetId,input,selector){return client.fetch(budgetPath(budgetId,selector),{method:"PATCH",...ownerOptions(selector),retry:{retries:0},body:{amount:input.amount,thresholds:input.thresholds,status:"active",...input.webhookUrl!==void 0?{webhookUrl:input.webhookUrl}:{}}})}async function removeBudget(client,budgetId,selector){return client.fetch(budgetPath(budgetId,selector),{method:"DELETE",...ownerOptions(selector)})}function budgetPath(budgetId,selector){return`/v2/budgets/${encodeURIComponent(budgetId)}${orgQuery(selector)}`}async function getTeamSpend(client,teamId,selector=TEAM_BUDGET,{retry}={}){if(selector.orgId)return{currentSpend:null,avgSpend:null};let params=new URLSearchParams;selector.scope!=="team"&&setSelectorParams(params,selector);let qs=params.toString(),{data}=await client.fetch(`/teams/${encodeURIComponent(teamId)}/spend${qs?`?${qs}`:""}`,{method:"GET",...retry?{retry}:{}});return data??{currentSpend:null,avgSpend:null}}async function listBudgetAlerts(client,selector,query={},{retry}={}){let params=new URLSearchParams;setSelectorParams(params,selector);for(let[key,value]of Object.entries(query))value!==void 0&&params.set(key,String(value));let page=await client.fetch(`/v2/budget-alerts?${params}`,{method:"GET",...ownerOptions(selector),...retry?{retry}:{}});return{data:page.data??[],next:page.pagination?.next??null}}async function listBudgetProducts(client){return(await client.fetch("/v2/budget-products",{method:"GET"})).data??[]}function setSelectorParams(params,selector){if(selector){if(Array.isArray(selector.scope)){params.set("scope",selector.scope.join(","));return}params.set("scope",selector.scope),"scopeId"in selector&&selector.scopeId&&params.set("scopeId",selector.scopeId),"orgId"in selector&&selector.orgId&&params.set("orgId",selector.orgId)}}function orgIdOf(selector){return selector&&"orgId"in selector?selector.orgId:void 0}function ownerOptions(selector){return orgIdOf(selector)?{useCurrentTeam:!1}:{}}function orgQuery(selector){let orgId=orgIdOf(selector);return orgId?`?${new URLSearchParams({orgId})}`:""}export{TEAM_BUDGET,thresholdsForSet,hasPauseThreshold,pausePercentsOutside100,spendDollars,percentUsed,spendPayload,NO_RETRY,budgetPauses,ownerJson,budgetJson,budgetAlertJson,setReceipt,removeReceipt,formatUsdWhole,formatUsd,listBudgets,findBudget,createBudget,isPreviousPlanBudgetError,updateBudget,removeBudget,getTeamSpend,listBudgetAlerts,listBudgetProducts};
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{packageName}from"./chunk-B4KA3ZH2.js";import{jsonOption,limitOption,projectOption,yesOption}from"./chunk-EZVNGJN5.js";var listSubcommand={name:"list",aliases:["ls"],description:"List all routing rules for the current project. These routes apply to all deployments and environments.",arguments:[],options:[projectOption,jsonOption,{name:"query",description:"Search by name, description, source, or destination",shorthand:"q",type:String,argument:"TEXT",deprecated:!1},{name:"search",description:"Deprecated alias for `--query`",shorthand:"s",type:String,argument:"QUERY",deprecated:!0},{name:"type",description:"Filter by type: rewrite, redirect, set_status, transform",shorthand:null,type:String,argument:"TYPE",deprecated:!1},{name:"filter",description:"Deprecated alias for `--type`",shorthand:"f",type:String,argument:"TYPE",deprecated:!0},{name:"production",description:"List routes from the live production version",shorthand:null,type:Boolean,deprecated:!1},{name:"routes-version",description:"List routes from a specific version",shorthand:null,type:String,argument:"VERSION",deprecated:!1},{name:"version-id",description:"Deprecated alias for `--routes-version`",shorthand:null,type:String,argument:"VERSION_ID",deprecated:!0},{name:"diff",description:"Compare staged changes against production. Use with --routes-version to compare a specific version.",shorthand:null,type:Boolean,deprecated:!1},{name:"expand",description:"Show expanded details for each route",shorthand:null,deprecatedShorthand:"e",type:Boolean,deprecated:!1}],examples:[{name:"List all routes",value:`${packageName} routes list`},{name:"Search for routes",value:`${packageName} routes list --query "api"`},{name:"Filter by type",value:`${packageName} routes list --type rewrite`},{name:"Show staged changes",value:`${packageName} routes list --diff`},{name:"Show live production routes",value:`${packageName} routes list --production`},{name:"Show expanded details",value:`${packageName} routes list --expand`}]},listVersionsSubcommand={name:"list-versions",aliases:["ls-versions"],description:"List all versions of routing rules",arguments:[],options:[projectOption,jsonOption,{...limitOption,description:"Number of versions to fetch (default: 20, max: 100)"},{name:"count",description:"Deprecated alias for `--limit`",shorthand:null,type:Number,argument:"NUMBER",deprecated:!0}],examples:[{name:"List route versions",value:`${packageName} routes list-versions`},{name:"List more versions",value:`${packageName} routes list-versions --limit 50`}]},inspectSubcommand={name:"inspect",aliases:[],description:"Show detailed information about a specific route",arguments:[{name:"name-or-id",required:!0}],options:[projectOption,jsonOption,{name:"diff",description:"Compare staged changes against production for this route",shorthand:null,type:Boolean,deprecated:!1}],examples:[{name:"Inspect a route by name",value:`${packageName} routes inspect "API rewrite"`},{name:"Inspect a route by ID",value:`${packageName} routes inspect abc123`},{name:"Show staged changes for a route",value:`${packageName} routes inspect "My route" --diff`}]},addSubcommand={name:"add",aliases:[],description:"Add a new routing rule to the project",arguments:[{name:"name",required:!1}],options:[projectOption,{name:"src",description:"Path pattern (required in non-interactive mode)",shorthand:null,type:String,argument:"PATTERN",deprecated:!1},{name:"src-syntax",description:"Path syntax: regex, path-to-regexp, equals (default: regex)",shorthand:null,type:String,argument:"TYPE",deprecated:!1},{name:"action",description:"Action type: rewrite, redirect, or set-status (required with --dest/--status)",shorthand:null,type:String,argument:"TYPE",deprecated:!1},{name:"dest",description:"Destination URL for rewrite or redirect",shorthand:null,type:String,argument:"URL",deprecated:!1},{name:"status",description:"Status code (301/302/307/308 for redirect, or any for set-status)",shorthand:null,type:Number,argument:"CODE",deprecated:!1},{name:"set-response-header",description:"Set response header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"append-response-header",description:"Append to response header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"delete-response-header",description:"Delete response header: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"set-request-header",description:"Set request header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"append-request-header",description:"Append to request header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"delete-request-header",description:"Delete request header: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"set-request-query",description:"Set query parameter: key=value (repeatable)",shorthand:null,type:[String],argument:"PARAM",deprecated:!1},{name:"append-request-query",description:"Append to query parameter: key=value (repeatable)",shorthand:null,type:[String],argument:"PARAM",deprecated:!1},{name:"delete-request-query",description:"Delete query parameter: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"has",description:"Condition that must match: type:key or type:key:value (repeatable)",shorthand:null,type:[String],argument:"CONDITION",deprecated:!1},{name:"missing",description:'"Does not have" condition: type:key or type:key:value (repeatable)',shorthand:null,type:[String],argument:"CONDITION",deprecated:!1},{name:"description",description:"Route description (max 1024 chars)",shorthand:null,type:String,argument:"TEXT",deprecated:!1},{name:"no-enable",description:"Add the route turned off (default: on)",shorthand:null,type:Boolean,deprecated:!1},{name:"disabled",description:"Deprecated alias for `--no-enable`",shorthand:null,type:Boolean,deprecated:!0},{name:"ai",description:"Generate route from a natural language description (AI-powered)",shorthand:null,type:String,argument:"PROMPT",deprecated:!1},{name:"position",description:"Position: start, end, after:<id>, before:<id>",shorthand:null,type:String,argument:"POSITION",deprecated:!1},{name:"yes",description:"Skip confirmation prompts",shorthand:"y",type:Boolean,deprecated:!1}],examples:[{name:"Interactive mode",value:`${packageName} routes add`},{name:"Create with AI",value:`${packageName} routes add --ai "Rewrite /api/* to https://backend.internal/*"`},{name:"Add a rewrite",value:`${packageName} routes add "API Proxy" --src "/api/:path*" --src-syntax path-to-regexp --action rewrite --dest "https://api.example.com/:path*" --yes`},{name:"Add a redirect",value:`${packageName} routes add "Old Blog" --src "/blog" --src-syntax equals --action redirect --dest "/articles" --status 301 --yes`},{name:"Add CORS headers",value:`${packageName} routes add "CORS" --src "^/api/.*$" --set-response-header "Access-Control-Allow-Origin=*" --yes`},{name:"Block access (set status)",value:`${packageName} routes add "Block Admin" --src "^/admin/.*$" --action set-status --status 403 --yes`},{name:"Conditional redirect",value:`${packageName} routes add "Auth Required" --src "/protected/:path*" --src-syntax path-to-regexp --action redirect --dest "/login" --status 307 --missing "cookie:session" --yes`},{name:"Rewrite with request headers",value:`${packageName} routes add "Backend Proxy" --src "/backend/:path*" --src-syntax path-to-regexp --action rewrite --dest "https://internal.example.com/:path*" --set-request-header "X-Forwarded-Host=myapp.com" --yes`},{name:"Add route at start",value:`${packageName} routes add "Priority Route" --src "/priority" --src-syntax equals --action rewrite --dest "/handler" --position start --yes`}]},publishSubcommand={name:"publish",aliases:[],description:"Publish all staged routing changes to production",arguments:[],options:[projectOption,{...yesOption,description:"Skip the confirmation prompt when publishing"}],examples:[{name:"Publish staged changes",value:`${packageName} routes publish`},{name:"Publish without confirmation",value:`${packageName} routes publish --yes`}]},restoreSubcommand={name:"restore",aliases:[],description:"Restore a previous routing version to production",arguments:[{name:"version-id",required:!0}],options:[projectOption,{...yesOption,description:"Skip the confirmation prompt when restoring"}],examples:[{name:"Restore a previous version",placeholders:["<version-id>"],value:`${packageName} routes restore <version-id>`},{name:"Restore without confirmation",placeholders:["<version-id>"],value:`${packageName} routes restore <version-id> --yes`}]},discardSubcommand={name:"discard-staging",aliases:[],description:"Discard staged routing changes",arguments:[],options:[projectOption,{...yesOption,description:"Skip the confirmation prompt when discarding"}],examples:[{name:"Discard staged changes",value:`${packageName} routes discard-staging`},{name:"Discard without confirmation",value:`${packageName} routes discard-staging --yes`}]},deleteSubcommand={name:"remove",aliases:["rm","delete"],description:"Remove one or more routing rules",arguments:[{name:"name-or-id",required:!0,multiple:!0}],options:[projectOption,{...yesOption,description:"Skip the confirmation prompt when removing"}],examples:[{name:"Remove a route by name",value:`${packageName} routes remove "Old Redirect"`},{name:"Remove a route by ID",value:`${packageName} routes remove abc123`},{name:"Remove multiple routes",value:`${packageName} routes remove "Route A" "Route B"`},{name:"Remove without confirmation",value:`${packageName} routes remove "Old Route" --yes`}]},enableSubcommand={name:"enable",aliases:[],description:"Enable a disabled routing rule",arguments:[{name:"name-or-id",required:!0}],options:[projectOption],examples:[{name:"Enable a route by name",value:`${packageName} routes enable "API Proxy"`},{name:"Enable a route by ID",value:`${packageName} routes enable abc123`}]},disableSubcommand={name:"disable",aliases:[],description:"Disable a routing rule without deleting it",arguments:[{name:"name-or-id",required:!0}],options:[projectOption],examples:[{name:"Disable a route by name",value:`${packageName} routes disable "API Proxy"`},{name:"Disable a route by ID",value:`${packageName} routes disable abc123`}]},reorderSubcommand={name:"move",aliases:["reorder"],description:"Move a routing rule to a different position",arguments:[{name:"name-or-id",required:!0}],options:[projectOption,{name:"position",description:"Target position: start, end, a number (1-based), before:<id>, after:<id>",shorthand:null,type:String,argument:"POSITION",deprecated:!1},{name:"first",description:"Move to the first position (highest priority)",shorthand:null,type:Boolean,deprecated:!1},{name:"last",description:"Move to the last position (lowest priority)",shorthand:null,type:Boolean,deprecated:!1},{...yesOption,description:"Skip the confirmation prompt when moving"}],examples:[{name:"Move to first position",value:`${packageName} routes move "Catch All" --first`},{name:"Move to last position",value:`${packageName} routes move "Catch All" --last`},{name:"Move to a specific position",value:`${packageName} routes move "API Proxy" --position 3`},{name:"Move after another route",value:`${packageName} routes move "API Proxy" --position after:route-id-123`},{name:"Interactive move (prompts for position)",value:`${packageName} routes move "API Proxy"`}]},editSubcommand={name:"update",aliases:["edit"],description:"Update an existing routing rule",arguments:[{name:"name-or-id",required:!0}],options:[projectOption,{name:"name",description:"Change route name",shorthand:null,type:String,argument:"NAME",deprecated:!1},{name:"description",description:'Change description (use "" to clear)',shorthand:null,type:String,argument:"TEXT",deprecated:!1},{name:"src",description:"Change source path pattern",shorthand:null,type:String,argument:"PATTERN",deprecated:!1},{name:"src-syntax",description:"Change path syntax: regex, path-to-regexp, equals",shorthand:null,type:String,argument:"TYPE",deprecated:!1},{name:"action",description:"Set action type: rewrite, redirect, or set-status (required when switching types)",shorthand:null,type:String,argument:"TYPE",deprecated:!1},{name:"dest",description:"Set destination URL",shorthand:null,type:String,argument:"URL",deprecated:!1},{name:"status",description:"Set status code",shorthand:null,type:Number,argument:"CODE",deprecated:!1},{name:"no-dest",description:"Remove destination",shorthand:null,type:Boolean,deprecated:!1},{name:"no-status",description:"Remove status code",shorthand:null,type:Boolean,deprecated:!1},{name:"set-response-header",description:"Set response header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"append-response-header",description:"Append to response header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"delete-response-header",description:"Delete response header: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"set-request-header",description:"Set request header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"append-request-header",description:"Append to request header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"delete-request-header",description:"Delete request header: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"set-request-query",description:"Set query parameter: key=value (repeatable)",shorthand:null,type:[String],argument:"PARAM",deprecated:!1},{name:"append-request-query",description:"Append to query parameter: key=value (repeatable)",shorthand:null,type:[String],argument:"PARAM",deprecated:!1},{name:"delete-request-query",description:"Delete query parameter: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"has",description:"Add a has condition: type:key or type:key:value (repeatable)",shorthand:null,type:[String],argument:"CONDITION",deprecated:!1},{name:"missing",description:'Add a "does not have" condition: type:key or type:key:value (repeatable)',shorthand:null,type:[String],argument:"CONDITION",deprecated:!1},{name:"clear-conditions",description:"Remove all has/does-not-have conditions",shorthand:null,type:Boolean,deprecated:!1},{name:"clear-headers",description:"Remove all response headers",shorthand:null,type:Boolean,deprecated:!1},{name:"clear-transforms",description:"Remove all transforms (request headers, request query)",shorthand:null,type:Boolean,deprecated:!1},{name:"ai",description:"Describe changes using natural language (AI-powered)",shorthand:null,type:String,argument:"PROMPT",deprecated:!1},{...yesOption,description:"Skip confirmation prompts"}],examples:[{name:"Interactive mode",value:`${packageName} routes update "API Proxy"`},{name:"Update with AI",value:`${packageName} routes update "API Proxy" --ai "Add CORS headers and change status to 308"`},{name:"Change destination",value:`${packageName} routes update "API Proxy" --dest "https://new-api.example.com/:path*"`},{name:"Switch to redirect",value:`${packageName} routes update "Old Route" --action redirect --dest "/new" --status 301`},{name:"Add a response header",value:`${packageName} routes update "My Route" --set-response-header "Cache-Control=public, max-age=3600"`},{name:"Clear all conditions and add new ones",value:`${packageName} routes update "My Route" --clear-conditions --has "header:Authorization"`}]},exportSubcommand={name:"export",aliases:[],description:"Export routes to a vercel.json or vercel.ts file",arguments:[{name:"name-or-id",required:!1}],options:[projectOption,{name:"output",description:"Output file format: .json or .ts (default: .json)",shorthand:"o",type:String,argument:"json|ts",deprecated:!1}],examples:[{name:"Export as vercel.json format",value:`${packageName} routes export`},{name:"Export as vercel.ts format",value:`${packageName} routes export --output ts`},{name:"Export a specific route",value:`${packageName} routes export "API Proxy"`},{name:"Export to a file",value:`${packageName} routes export > routes.json`}]},routesCommand={name:"routes",aliases:[],description:"Manage routing rules for a project. Routes managed at the project level apply to all deployments and environments.",arguments:[],subcommands:[listSubcommand,listVersionsSubcommand,inspectSubcommand,addSubcommand,editSubcommand,deleteSubcommand,enableSubcommand,disableSubcommand,reorderSubcommand,exportSubcommand,publishSubcommand,restoreSubcommand,discardSubcommand],options:[],examples:[]};export{listSubcommand,listVersionsSubcommand,inspectSubcommand,addSubcommand,publishSubcommand,restoreSubcommand,discardSubcommand,deleteSubcommand,enableSubcommand,disableSubcommand,reorderSubcommand,editSubcommand,exportSubcommand,routesCommand};
7
+ import{packageName}from"./chunk-B4KA3ZH2.js";import{jsonOption,limitOption,projectOption,yesOption}from"./chunk-CFJBDBYH.js";var listSubcommand={name:"list",aliases:["ls"],description:"List all routing rules for the current project. These routes apply to all deployments and environments.",arguments:[],options:[projectOption,jsonOption,{name:"query",description:"Search by name, description, source, or destination",shorthand:"q",type:String,argument:"TEXT",deprecated:!1},{name:"search",description:"Deprecated alias for `--query`",shorthand:"s",type:String,argument:"QUERY",deprecated:!0},{name:"type",description:"Filter by type: rewrite, redirect, set_status, transform",shorthand:null,type:String,argument:"TYPE",deprecated:!1},{name:"filter",description:"Deprecated alias for `--type`",shorthand:"f",type:String,argument:"TYPE",deprecated:!0},{name:"production",description:"List routes from the live production version",shorthand:null,type:Boolean,deprecated:!1},{name:"routes-version",description:"List routes from a specific version",shorthand:null,type:String,argument:"VERSION",deprecated:!1},{name:"version-id",description:"Deprecated alias for `--routes-version`",shorthand:null,type:String,argument:"VERSION_ID",deprecated:!0},{name:"diff",description:"Compare staged changes against production. Use with --routes-version to compare a specific version.",shorthand:null,type:Boolean,deprecated:!1},{name:"expand",description:"Show expanded details for each route",shorthand:null,deprecatedShorthand:"e",type:Boolean,deprecated:!1}],examples:[{name:"List all routes",value:`${packageName} routes list`},{name:"Search for routes",value:`${packageName} routes list --query "api"`},{name:"Filter by type",value:`${packageName} routes list --type rewrite`},{name:"Show staged changes",value:`${packageName} routes list --diff`},{name:"Show live production routes",value:`${packageName} routes list --production`},{name:"Show expanded details",value:`${packageName} routes list --expand`}]},listVersionsSubcommand={name:"list-versions",aliases:["ls-versions"],description:"List all versions of routing rules",arguments:[],options:[projectOption,jsonOption,{...limitOption,description:"Number of versions to fetch (default: 20, max: 100)"},{name:"count",description:"Deprecated alias for `--limit`",shorthand:null,type:Number,argument:"NUMBER",deprecated:!0}],examples:[{name:"List route versions",value:`${packageName} routes list-versions`},{name:"List more versions",value:`${packageName} routes list-versions --limit 50`}]},inspectSubcommand={name:"inspect",aliases:[],description:"Show detailed information about a specific route",arguments:[{name:"name-or-id",required:!0}],options:[projectOption,jsonOption,{name:"diff",description:"Compare staged changes against production for this route",shorthand:null,type:Boolean,deprecated:!1}],examples:[{name:"Inspect a route by name",value:`${packageName} routes inspect "API rewrite"`},{name:"Inspect a route by ID",value:`${packageName} routes inspect abc123`},{name:"Show staged changes for a route",value:`${packageName} routes inspect "My route" --diff`}]},addSubcommand={name:"add",aliases:[],description:"Add a new routing rule to the project",arguments:[{name:"name",required:!1}],options:[projectOption,{name:"src",description:"Path pattern (required in non-interactive mode)",shorthand:null,type:String,argument:"PATTERN",deprecated:!1},{name:"src-syntax",description:"Path syntax: regex, path-to-regexp, equals (default: regex)",shorthand:null,type:String,argument:"TYPE",deprecated:!1},{name:"action",description:"Action type: rewrite, redirect, or set-status (required with --dest/--status)",shorthand:null,type:String,argument:"TYPE",deprecated:!1},{name:"dest",description:"Destination URL for rewrite or redirect",shorthand:null,type:String,argument:"URL",deprecated:!1},{name:"status",description:"Status code (301/302/307/308 for redirect, or any for set-status)",shorthand:null,type:Number,argument:"CODE",deprecated:!1},{name:"set-response-header",description:"Set response header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"append-response-header",description:"Append to response header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"delete-response-header",description:"Delete response header: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"set-request-header",description:"Set request header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"append-request-header",description:"Append to request header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"delete-request-header",description:"Delete request header: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"set-request-query",description:"Set query parameter: key=value (repeatable)",shorthand:null,type:[String],argument:"PARAM",deprecated:!1},{name:"append-request-query",description:"Append to query parameter: key=value (repeatable)",shorthand:null,type:[String],argument:"PARAM",deprecated:!1},{name:"delete-request-query",description:"Delete query parameter: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"has",description:"Condition that must match: type:key or type:key:value (repeatable)",shorthand:null,type:[String],argument:"CONDITION",deprecated:!1},{name:"missing",description:'"Does not have" condition: type:key or type:key:value (repeatable)',shorthand:null,type:[String],argument:"CONDITION",deprecated:!1},{name:"description",description:"Route description (max 1024 chars)",shorthand:null,type:String,argument:"TEXT",deprecated:!1},{name:"no-enable",description:"Add the route turned off (default: on)",shorthand:null,type:Boolean,deprecated:!1},{name:"disabled",description:"Deprecated alias for `--no-enable`",shorthand:null,type:Boolean,deprecated:!0},{name:"ai",description:"Generate route from a natural language description (AI-powered)",shorthand:null,type:String,argument:"PROMPT",deprecated:!1},{name:"position",description:"Position: start, end, after:<id>, before:<id>",shorthand:null,type:String,argument:"POSITION",deprecated:!1},{name:"yes",description:"Skip confirmation prompts",shorthand:"y",type:Boolean,deprecated:!1}],examples:[{name:"Interactive mode",value:`${packageName} routes add`},{name:"Create with AI",value:`${packageName} routes add --ai "Rewrite /api/* to https://backend.internal/*"`},{name:"Add a rewrite",value:`${packageName} routes add "API Proxy" --src "/api/:path*" --src-syntax path-to-regexp --action rewrite --dest "https://api.example.com/:path*" --yes`},{name:"Add a redirect",value:`${packageName} routes add "Old Blog" --src "/blog" --src-syntax equals --action redirect --dest "/articles" --status 301 --yes`},{name:"Add CORS headers",value:`${packageName} routes add "CORS" --src "^/api/.*$" --set-response-header "Access-Control-Allow-Origin=*" --yes`},{name:"Block access (set status)",value:`${packageName} routes add "Block Admin" --src "^/admin/.*$" --action set-status --status 403 --yes`},{name:"Conditional redirect",value:`${packageName} routes add "Auth Required" --src "/protected/:path*" --src-syntax path-to-regexp --action redirect --dest "/login" --status 307 --missing "cookie:session" --yes`},{name:"Rewrite with request headers",value:`${packageName} routes add "Backend Proxy" --src "/backend/:path*" --src-syntax path-to-regexp --action rewrite --dest "https://internal.example.com/:path*" --set-request-header "X-Forwarded-Host=myapp.com" --yes`},{name:"Add route at start",value:`${packageName} routes add "Priority Route" --src "/priority" --src-syntax equals --action rewrite --dest "/handler" --position start --yes`}]},publishSubcommand={name:"publish",aliases:[],description:"Publish all staged routing changes to production",arguments:[],options:[projectOption,{...yesOption,description:"Skip the confirmation prompt when publishing"}],examples:[{name:"Publish staged changes",value:`${packageName} routes publish`},{name:"Publish without confirmation",value:`${packageName} routes publish --yes`}]},restoreSubcommand={name:"restore",aliases:[],description:"Restore a previous routing version to production",arguments:[{name:"version-id",required:!0}],options:[projectOption,{...yesOption,description:"Skip the confirmation prompt when restoring"}],examples:[{name:"Restore a previous version",placeholders:["<version-id>"],value:`${packageName} routes restore <version-id>`},{name:"Restore without confirmation",placeholders:["<version-id>"],value:`${packageName} routes restore <version-id> --yes`}]},discardSubcommand={name:"discard-staging",aliases:[],description:"Discard staged routing changes",arguments:[],options:[projectOption,{...yesOption,description:"Skip the confirmation prompt when discarding"}],examples:[{name:"Discard staged changes",value:`${packageName} routes discard-staging`},{name:"Discard without confirmation",value:`${packageName} routes discard-staging --yes`}]},deleteSubcommand={name:"remove",aliases:["rm","delete"],description:"Remove one or more routing rules",arguments:[{name:"name-or-id",required:!0,multiple:!0}],options:[projectOption,{...yesOption,description:"Skip the confirmation prompt when removing"}],examples:[{name:"Remove a route by name",value:`${packageName} routes remove "Old Redirect"`},{name:"Remove a route by ID",value:`${packageName} routes remove abc123`},{name:"Remove multiple routes",value:`${packageName} routes remove "Route A" "Route B"`},{name:"Remove without confirmation",value:`${packageName} routes remove "Old Route" --yes`}]},enableSubcommand={name:"enable",aliases:[],description:"Enable a disabled routing rule",arguments:[{name:"name-or-id",required:!0}],options:[projectOption],examples:[{name:"Enable a route by name",value:`${packageName} routes enable "API Proxy"`},{name:"Enable a route by ID",value:`${packageName} routes enable abc123`}]},disableSubcommand={name:"disable",aliases:[],description:"Disable a routing rule without deleting it",arguments:[{name:"name-or-id",required:!0}],options:[projectOption],examples:[{name:"Disable a route by name",value:`${packageName} routes disable "API Proxy"`},{name:"Disable a route by ID",value:`${packageName} routes disable abc123`}]},reorderSubcommand={name:"move",aliases:["reorder"],description:"Move a routing rule to a different position",arguments:[{name:"name-or-id",required:!0}],options:[projectOption,{name:"position",description:"Target position: start, end, a number (1-based), before:<id>, after:<id>",shorthand:null,type:String,argument:"POSITION",deprecated:!1},{name:"first",description:"Move to the first position (highest priority)",shorthand:null,type:Boolean,deprecated:!1},{name:"last",description:"Move to the last position (lowest priority)",shorthand:null,type:Boolean,deprecated:!1},{...yesOption,description:"Skip the confirmation prompt when moving"}],examples:[{name:"Move to first position",value:`${packageName} routes move "Catch All" --first`},{name:"Move to last position",value:`${packageName} routes move "Catch All" --last`},{name:"Move to a specific position",value:`${packageName} routes move "API Proxy" --position 3`},{name:"Move after another route",value:`${packageName} routes move "API Proxy" --position after:route-id-123`},{name:"Interactive move (prompts for position)",value:`${packageName} routes move "API Proxy"`}]},editSubcommand={name:"update",aliases:["edit"],description:"Update an existing routing rule",arguments:[{name:"name-or-id",required:!0}],options:[projectOption,{name:"name",description:"Change route name",shorthand:null,type:String,argument:"NAME",deprecated:!1},{name:"description",description:'Change description (use "" to clear)',shorthand:null,type:String,argument:"TEXT",deprecated:!1},{name:"src",description:"Change source path pattern",shorthand:null,type:String,argument:"PATTERN",deprecated:!1},{name:"src-syntax",description:"Change path syntax: regex, path-to-regexp, equals",shorthand:null,type:String,argument:"TYPE",deprecated:!1},{name:"action",description:"Set action type: rewrite, redirect, or set-status (required when switching types)",shorthand:null,type:String,argument:"TYPE",deprecated:!1},{name:"dest",description:"Set destination URL",shorthand:null,type:String,argument:"URL",deprecated:!1},{name:"status",description:"Set status code",shorthand:null,type:Number,argument:"CODE",deprecated:!1},{name:"no-dest",description:"Remove destination",shorthand:null,type:Boolean,deprecated:!1},{name:"no-status",description:"Remove status code",shorthand:null,type:Boolean,deprecated:!1},{name:"set-response-header",description:"Set response header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"append-response-header",description:"Append to response header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"delete-response-header",description:"Delete response header: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"set-request-header",description:"Set request header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"append-request-header",description:"Append to request header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"delete-request-header",description:"Delete request header: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"set-request-query",description:"Set query parameter: key=value (repeatable)",shorthand:null,type:[String],argument:"PARAM",deprecated:!1},{name:"append-request-query",description:"Append to query parameter: key=value (repeatable)",shorthand:null,type:[String],argument:"PARAM",deprecated:!1},{name:"delete-request-query",description:"Delete query parameter: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"has",description:"Add a has condition: type:key or type:key:value (repeatable)",shorthand:null,type:[String],argument:"CONDITION",deprecated:!1},{name:"missing",description:'Add a "does not have" condition: type:key or type:key:value (repeatable)',shorthand:null,type:[String],argument:"CONDITION",deprecated:!1},{name:"clear-conditions",description:"Remove all has/does-not-have conditions",shorthand:null,type:Boolean,deprecated:!1},{name:"clear-headers",description:"Remove all response headers",shorthand:null,type:Boolean,deprecated:!1},{name:"clear-transforms",description:"Remove all transforms (request headers, request query)",shorthand:null,type:Boolean,deprecated:!1},{name:"ai",description:"Describe changes using natural language (AI-powered)",shorthand:null,type:String,argument:"PROMPT",deprecated:!1},{...yesOption,description:"Skip confirmation prompts"}],examples:[{name:"Interactive mode",value:`${packageName} routes update "API Proxy"`},{name:"Update with AI",value:`${packageName} routes update "API Proxy" --ai "Add CORS headers and change status to 308"`},{name:"Change destination",value:`${packageName} routes update "API Proxy" --dest "https://new-api.example.com/:path*"`},{name:"Switch to redirect",value:`${packageName} routes update "Old Route" --action redirect --dest "/new" --status 301`},{name:"Add a response header",value:`${packageName} routes update "My Route" --set-response-header "Cache-Control=public, max-age=3600"`},{name:"Clear all conditions and add new ones",value:`${packageName} routes update "My Route" --clear-conditions --has "header:Authorization"`}]},exportSubcommand={name:"export",aliases:[],description:"Export routes to a vercel.json or vercel.ts file",arguments:[{name:"name-or-id",required:!1}],options:[projectOption,{name:"output",description:"Output file format: .json or .ts (default: .json)",shorthand:"o",type:String,argument:"json|ts",deprecated:!1}],examples:[{name:"Export as vercel.json format",value:`${packageName} routes export`},{name:"Export as vercel.ts format",value:`${packageName} routes export --output ts`},{name:"Export a specific route",value:`${packageName} routes export "API Proxy"`},{name:"Export to a file",value:`${packageName} routes export > routes.json`}]},routesCommand={name:"routes",aliases:[],description:"Manage routing rules for a project. Routes managed at the project level apply to all deployments and environments.",arguments:[],subcommands:[listSubcommand,listVersionsSubcommand,inspectSubcommand,addSubcommand,editSubcommand,deleteSubcommand,enableSubcommand,disableSubcommand,reorderSubcommand,exportSubcommand,publishSubcommand,restoreSubcommand,discardSubcommand],options:[],examples:[]};export{listSubcommand,listVersionsSubcommand,inspectSubcommand,addSubcommand,publishSubcommand,restoreSubcommand,discardSubcommand,deleteSubcommand,enableSubcommand,disableSubcommand,reorderSubcommand,editSubcommand,exportSubcommand,routesCommand};