vercel 64.7.0 → 65.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/dist/chunks/add-2HOGPYWC.js +8 -0
  2. package/dist/chunks/add-2RYLJ442.js +8 -0
  3. package/dist/chunks/add-PAQE7CT2.js +8 -0
  4. package/dist/chunks/build-77Q2YPHO.js +7 -0
  5. package/dist/chunks/{chunk-OJKZ7EV3.js → chunk-27QCVNMI.js} +1 -1
  6. package/dist/chunks/{chunk-WFJEWVTE.js → chunk-2BAAJZBZ.js} +1 -1
  7. package/dist/chunks/{chunk-PNR5J6ZW.js → chunk-2UBZCG4F.js} +1 -1
  8. package/dist/chunks/chunk-36N6VMW4.js +7 -0
  9. package/dist/chunks/chunk-3GXZPT7T.js +7 -0
  10. package/dist/chunks/{chunk-HJV7CTD4.js → chunk-3L4MAGRI.js} +1 -1
  11. package/dist/chunks/chunk-3XDTQFBL.js +57 -0
  12. package/dist/chunks/{chunk-FZUNGPGO.js → chunk-43T3YKNH.js} +1 -1
  13. package/dist/chunks/{chunk-VKXEOL4K.js → chunk-4NTBYNFR.js} +3 -2
  14. package/dist/chunks/{chunk-4ITTBUCW.js → chunk-4T22AQTB.js} +1 -1
  15. package/dist/chunks/{chunk-EVXOSCYR.js → chunk-52JGR5SZ.js} +1 -1
  16. package/dist/chunks/{chunk-SQXVQT2O.js → chunk-66262IYI.js} +1 -1
  17. package/dist/chunks/{chunk-D7X7W4F4.js → chunk-66ODHUGV.js} +1 -1
  18. package/dist/chunks/chunk-732WJANV.js +15 -0
  19. package/dist/chunks/{chunk-AGH2CMUM.js → chunk-7C5JHTHO.js} +1 -1
  20. package/dist/chunks/{chunk-S76ILVQO.js → chunk-7G72V52B.js} +1 -1
  21. package/dist/chunks/chunk-7OMWRRY4.js +9 -0
  22. package/dist/chunks/{chunk-2IRZ2C5L.js → chunk-AGDMSAYW.js} +1 -1
  23. package/dist/chunks/chunk-AW7DEWIM.js +7 -0
  24. package/dist/chunks/{chunk-XSDAUM4F.js → chunk-AZ5OUZPP.js} +1 -1
  25. package/dist/chunks/{chunk-CQQQSUQX.js → chunk-B6U5434D.js} +1 -1
  26. package/dist/chunks/{chunk-OGH32TS2.js → chunk-BFJC3UDU.js} +1 -1
  27. package/dist/chunks/{chunk-KKCBFBJK.js → chunk-BHWEIKSP.js} +1 -1
  28. package/dist/chunks/chunk-BJ5APZ6X.js +7 -0
  29. package/dist/chunks/chunk-BZQ7YWSB.js +10 -0
  30. package/dist/chunks/chunk-CLKHGKJA.js +7 -0
  31. package/dist/chunks/{chunk-CYV3X62I.js → chunk-CTKJQTC5.js} +1 -1
  32. package/dist/chunks/{chunk-IVIZLWZQ.js → chunk-CZ2KEML2.js} +1 -1
  33. package/dist/chunks/{chunk-WYI4VNXT.js → chunk-DBNQ45J5.js} +1 -1
  34. package/dist/chunks/{chunk-O5ZJ5YJP.js → chunk-DGDNI76L.js} +1 -1
  35. package/dist/chunks/{chunk-HVUJNVPS.js → chunk-EJINOHL3.js} +1 -1
  36. package/dist/chunks/chunk-EKMQNUO4.js +9 -0
  37. package/dist/chunks/{chunk-VO6FF6DY.js → chunk-ENWROHWX.js} +1 -1
  38. package/dist/chunks/{chunk-WX2KXEZV.js → chunk-F4ZFLPMT.js} +1 -1
  39. package/dist/chunks/chunk-F53OKXYI.js +7 -0
  40. package/dist/chunks/{chunk-EVEH3L3V.js → chunk-FN7TTXXY.js} +1 -1
  41. package/dist/chunks/{chunk-EVQJ7SCV.js → chunk-FPC5LINQ.js} +1 -1
  42. package/dist/chunks/chunk-FRSHC2HN.js +7 -0
  43. package/dist/chunks/{chunk-F2TLISI5.js → chunk-GRVLQZFQ.js} +1 -1
  44. package/dist/chunks/{chunk-SADXKDBI.js → chunk-HBPSZHXX.js} +1 -1
  45. package/dist/chunks/{chunk-DX6PPIY7.js → chunk-HNF2BEOE.js} +1 -1
  46. package/dist/chunks/{chunk-P4U47GXI.js → chunk-IKSZMJKB.js} +1 -1
  47. package/dist/chunks/{chunk-3BTEMYLT.js → chunk-IMMMID5G.js} +1 -1
  48. package/dist/chunks/{chunk-R5QHLEAJ.js → chunk-INDGZ3JK.js} +3 -3
  49. package/dist/chunks/{chunk-EWK3VAME.js → chunk-IYM5GO57.js} +1 -1
  50. package/dist/chunks/{chunk-2EYJFHEL.js → chunk-JDVUKDX3.js} +1 -1
  51. package/dist/chunks/{chunk-M2NKATEC.js → chunk-JETQEZ24.js} +1 -1
  52. package/dist/chunks/{chunk-TD7MFXUO.js → chunk-JT273F22.js} +1 -1
  53. package/dist/chunks/{chunk-MGOPTP7N.js → chunk-JWX2YZVC.js} +1 -1
  54. package/dist/chunks/{chunk-XGO6AXX5.js → chunk-KCVCGYAR.js} +1 -1
  55. package/dist/chunks/{chunk-Z5NJL63U.js → chunk-KDABXEHF.js} +1 -1
  56. package/dist/chunks/chunk-KNTBWMVA.js +7 -0
  57. package/dist/chunks/chunk-KUGFILF5.js +7 -0
  58. package/dist/chunks/{chunk-IULNLFPX.js → chunk-KXHUMVXD.js} +1 -1
  59. package/dist/chunks/{chunk-GNV6PG6W.js → chunk-L5ANBZTX.js} +1 -1
  60. package/dist/chunks/chunk-LJIQZ3LU.js +7 -0
  61. package/dist/chunks/{chunk-R6Y4Z5VL.js → chunk-MIKNK3B6.js} +1 -1
  62. package/dist/chunks/{chunk-54KLVDB5.js → chunk-MTETAZA4.js} +1 -1
  63. package/dist/chunks/{chunk-DQLWDDNU.js → chunk-NYKEU7DQ.js} +1 -1
  64. package/dist/chunks/chunk-ODB7LEAO.js +7 -0
  65. package/dist/chunks/{chunk-SCJH3KSQ.js → chunk-OVV5MV5M.js} +1 -1
  66. package/dist/chunks/{chunk-JJSDTLBW.js → chunk-PNUH3XXW.js} +1 -1
  67. package/dist/chunks/{chunk-N7YVHGLM.js → chunk-PS3KKHSI.js} +1 -1
  68. package/dist/chunks/chunk-PXU645V7.js +8 -0
  69. package/dist/chunks/chunk-R3MRIQMO.js +7 -0
  70. package/dist/chunks/{chunk-KJWOXBZV.js → chunk-RAN5LUZY.js} +1 -1
  71. package/dist/chunks/chunk-RH2SQQWH.js +10 -0
  72. package/dist/chunks/{chunk-QW4W2UB6.js → chunk-RTWGDRYT.js} +3 -3
  73. package/dist/chunks/{chunk-4XKEOH4J.js → chunk-RUOOZ574.js} +1 -1
  74. package/dist/chunks/{chunk-NBNZYZFM.js → chunk-SLI2O5X7.js} +3 -3
  75. package/dist/chunks/{chunk-OS62YRSW.js → chunk-SSKMT5SL.js} +1 -1
  76. package/dist/chunks/chunk-T5LBVZWY.js +7 -0
  77. package/dist/chunks/{chunk-T3GQAMBJ.js → chunk-TKBORMUF.js} +1 -1
  78. package/dist/chunks/{chunk-X5HOJBDL.js → chunk-UDMEPP3K.js} +1 -1
  79. package/dist/chunks/{chunk-M774HRX5.js → chunk-UGZ3HFHI.js} +2 -2
  80. package/dist/chunks/chunk-UMUPJDWU.js +7 -0
  81. package/dist/chunks/chunk-VAZQS475.js +7 -0
  82. package/dist/chunks/chunk-VCV3H73W.js +7 -0
  83. package/dist/chunks/{chunk-JHB3TYKZ.js → chunk-VF2WX27D.js} +1 -1
  84. package/dist/chunks/chunk-VO2XAQFF.js +22 -0
  85. package/dist/chunks/{chunk-ZT2HVX54.js → chunk-VO36D4U4.js} +1 -1
  86. package/dist/chunks/chunk-VWK26HHN.js +7 -0
  87. package/dist/chunks/{chunk-2PSLXHNT.js → chunk-VY63XWWU.js} +1 -1
  88. package/dist/chunks/{chunk-QRCJKCMF.js → chunk-W7J5HTTY.js} +1 -1
  89. package/dist/chunks/{chunk-IJCCFLCQ.js → chunk-WDWYKX2I.js} +1 -1
  90. package/dist/chunks/{chunk-GH6O7YJ3.js → chunk-WFEEUZ6B.js} +1 -1
  91. package/dist/chunks/{chunk-MP27ZZFO.js → chunk-WFSQ3OSN.js} +1 -1
  92. package/dist/chunks/{chunk-YROIQRYI.js → chunk-WKC7S5IW.js} +1 -1
  93. package/dist/chunks/{chunk-MZ3QGJH3.js → chunk-WTBGMDQ7.js} +1 -1
  94. package/dist/chunks/chunk-WYJGP5QW.js +7 -0
  95. package/dist/chunks/{chunk-7ENWK2AH.js → chunk-X3VSVBXT.js} +1 -1
  96. package/dist/chunks/{chunk-EWUSBHX5.js → chunk-X5J7LOJK.js} +1 -1
  97. package/dist/chunks/{chunk-ROPQIBWJ.js → chunk-X7CLBXWL.js} +1 -1
  98. package/dist/chunks/{chunk-ZOYMKZOR.js → chunk-XBTLXKOI.js} +1 -1
  99. package/dist/chunks/{chunk-X44OEPBR.js → chunk-XD2FF2PZ.js} +1 -1
  100. package/dist/chunks/{chunk-KYMABVTF.js → chunk-XDKCDGJF.js} +1 -1
  101. package/dist/chunks/chunk-YNOLLMOG.js +9 -0
  102. package/dist/chunks/{chunk-YE6WQYJH.js → chunk-YPX7BXJ6.js} +2 -2
  103. package/dist/chunks/{chunk-DNDBPLLI.js → chunk-YXZGKFF3.js} +1 -1
  104. package/dist/chunks/{chunk-GOVZY7W2.js → chunk-Z6JDXW4A.js} +1 -1
  105. package/dist/chunks/{chunk-N5SAC4AS.js → chunk-ZIWS57E4.js} +1 -1
  106. package/dist/chunks/{chunk-PA5N7YTJ.js → chunk-ZVRKM3UD.js} +1 -1
  107. package/dist/chunks/clear-HPHGW2CD.js +8 -0
  108. package/dist/chunks/compile-vercel-config-YG2E5LXN.js +7 -0
  109. package/dist/chunks/config-PZ7HFZQZ.js +8 -0
  110. package/dist/chunks/{config-VWDIXJZA.js → config-XH532PP3.js} +1 -1
  111. package/dist/chunks/config-validator.mjs +1 -1
  112. package/dist/chunks/{connect-git-provider-2JIBL3ST.js → connect-git-provider-WEFO2ESM.js} +1 -1
  113. package/dist/chunks/{constants-JAB7MRSK.js → constants-ICJL2EO5.js} +1 -1
  114. package/dist/chunks/delete-UPHMMYEJ.js +10 -0
  115. package/dist/chunks/delete-Z7PXYHTL.js +9 -0
  116. package/dist/chunks/{detect-projects-PNODS4M7.js → detect-projects-CHMBPFSE.js} +1 -1
  117. package/dist/chunks/detect-services-ZYHOOBMO.js +7 -0
  118. package/dist/chunks/disable-34LCZPFL.js +7 -0
  119. package/dist/chunks/discard-HDUCYAHG.js +14 -0
  120. package/dist/chunks/edit-4F7DADVN.js +9 -0
  121. package/dist/chunks/edit-5WKAHKCW.js +8 -0
  122. package/dist/chunks/enable-YV6I32W6.js +7 -0
  123. package/dist/chunks/{exec-NMRO6DIZ.js → exec-5ZWP5NC6.js} +1 -1
  124. package/dist/chunks/{export-LS4WTCAJ.js → export-3OE2RWU7.js} +1 -1
  125. package/dist/chunks/future-N2ZTDYVW.js +7 -0
  126. package/dist/chunks/generate-cert-for-deploy-ORS7XL64.js +7 -0
  127. package/dist/chunks/image-WTWQT7A4.js +7 -0
  128. package/dist/chunks/import-builders-XBGAW4MC.js +7 -0
  129. package/dist/chunks/{inspect-FR333BCC.js → inspect-GD6JJPWG.js} +1 -1
  130. package/dist/chunks/{inspect-4OQTNJ46.js → inspect-HYJULYCV.js} +1 -1
  131. package/dist/chunks/inspect-ISRYYL7L.js +13 -0
  132. package/dist/chunks/{inspect-VEBZWYJL.js → inspect-JWDH7C6F.js} +1 -1
  133. package/dist/chunks/inspect-MEYRAEVT.js +9 -0
  134. package/dist/chunks/{list-Z43SODYP.js → list-4SZS2TB7.js} +1 -1
  135. package/dist/chunks/{list-ZK7VDRVT.js → list-AGS47O5P.js} +1 -1
  136. package/dist/chunks/list-O7FAMXMT.js +12 -0
  137. package/dist/chunks/login-KNE2BGUB.js +9 -0
  138. package/dist/chunks/login-NCAGHBZD.js +7 -0
  139. package/dist/chunks/logs-7H5XDI44.js +7 -0
  140. package/dist/chunks/{ls-VWA57ZVD.js → ls-KNRG7G5K.js} +1 -1
  141. package/dist/chunks/{ls-M7YO74RP.js → ls-LGL5ZKEJ.js} +1 -1
  142. package/dist/chunks/ls-RI6BNJO7.js +8 -0
  143. package/dist/chunks/ls-UJHETSDA.js +11 -0
  144. package/dist/chunks/{ls-QND7WBWE.js → ls-WQX2DS4X.js} +1 -1
  145. package/dist/chunks/{ls-LYVIYO4J.js → ls-Y2JQYSVO.js} +1 -1
  146. package/dist/chunks/{ls-H3ICVEYT.js → ls-ZPUNJ7ND.js} +1 -1
  147. package/dist/chunks/mutate-QHSLJCQU.js +9 -0
  148. package/dist/chunks/notifications-557GW5KI.js +7 -0
  149. package/dist/chunks/open-IYLA5OZF.js +7 -0
  150. package/dist/chunks/{openapi-GTAWN7OT.js → openapi-IVXUCJPM.js} +1 -1
  151. package/dist/chunks/permissions-2XHSDRNE.js +7 -0
  152. package/dist/chunks/prompt-missing-credentials-BLT57RIR.js +7 -0
  153. package/dist/chunks/publish-MQ56IB4K.js +15 -0
  154. package/dist/chunks/pull-K3JVXGZM.js +7 -0
  155. package/dist/chunks/purchase-domain-if-available-VDMLT3J2.js +7 -0
  156. package/dist/chunks/push-YXUJGMP4.js +7 -0
  157. package/dist/chunks/{query-ESQIFSJ6.js → query-JA5OWDSP.js} +1 -1
  158. package/dist/chunks/reauthenticate-YZXHWSEC.js +7 -0
  159. package/dist/chunks/reorder-UNU63VF3.js +10 -0
  160. package/dist/chunks/reply-CTLC5KAK.js +9 -0
  161. package/dist/chunks/resolve-HTKF4MMV.js +12 -0
  162. package/dist/chunks/resolve-agent-team-DLIROIXX.js +7 -0
  163. package/dist/chunks/restore-CSZYM5WU.js +16 -0
  164. package/dist/chunks/rm-BGLDOP4N.js +8 -0
  165. package/dist/chunks/rm-O2XVUZOW.js +8 -0
  166. package/dist/chunks/rm-OSMI52XV.js +8 -0
  167. package/dist/chunks/rm-SZIT75ZY.js +8 -0
  168. package/dist/chunks/rm-WJERY4WM.js +8 -0
  169. package/dist/chunks/routes-ZNPZJERJ.js +7 -0
  170. package/dist/chunks/rule-inspect-NGI6XURL.js +8 -0
  171. package/dist/chunks/schema-JLQ7SNYR.js +14 -0
  172. package/dist/chunks/{schema-D2CWSXZU.js → schema-OV4SUO52.js} +2 -2
  173. package/dist/chunks/select-org-URO7GRAY.js +7 -0
  174. package/dist/chunks/set-RU227EQQ.js +7 -0
  175. package/dist/chunks/setup-and-link-WX6IEZZO.js +7 -0
  176. package/dist/chunks/{skills-C2WOCF5Q.js → skills-6EFE7KH7.js} +1 -1
  177. package/dist/chunks/tags-KJINDQSV.js +7 -0
  178. package/dist/chunks/{types-6PREOZWK.js → types-2DDQTYAO.js} +1 -1
  179. package/dist/chunks/update-XUMH6CAJ.js +8 -0
  180. package/dist/commands/build/index.js +3 -3
  181. package/dist/commands/deploy/index.js +12 -11
  182. package/dist/commands/dev/index.js +26 -16
  183. package/dist/commands/env/index.js +1 -1
  184. package/dist/commands/link/index.js +1 -1
  185. package/dist/commands/list/index.js +1 -1
  186. package/dist/commands-bulk.js +655 -653
  187. package/dist/help.js +1 -1
  188. package/dist/index.js +2 -2
  189. package/dist/internal-build.js +1 -1
  190. package/dist/version.mjs +1 -1
  191. package/package.json +61 -61
  192. package/dist/chunks/add-J6YV6RJ7.js +0 -8
  193. package/dist/chunks/add-LN5C4Y2G.js +0 -8
  194. package/dist/chunks/add-UBG7IGYE.js +0 -8
  195. package/dist/chunks/build-7QUO5T72.js +0 -7
  196. package/dist/chunks/chunk-2B2Z447M.js +0 -10
  197. package/dist/chunks/chunk-2LMIOQID.js +0 -7
  198. package/dist/chunks/chunk-2VBFQZ72.js +0 -7
  199. package/dist/chunks/chunk-4KYSK2MS.js +0 -7
  200. package/dist/chunks/chunk-A4NHFQVX.js +0 -20
  201. package/dist/chunks/chunk-AAFST44A.js +0 -7
  202. package/dist/chunks/chunk-ANUSL4ES.js +0 -7
  203. package/dist/chunks/chunk-AOWWC6WZ.js +0 -7
  204. package/dist/chunks/chunk-AOYNYH5D.js +0 -7
  205. package/dist/chunks/chunk-BMQREWR6.js +0 -10
  206. package/dist/chunks/chunk-BXHADCSX.js +0 -7
  207. package/dist/chunks/chunk-CFEJIJGS.js +0 -7
  208. package/dist/chunks/chunk-DD5XIW5T.js +0 -7
  209. package/dist/chunks/chunk-EU2FGSLR.js +0 -15
  210. package/dist/chunks/chunk-FOGLMAZE.js +0 -7
  211. package/dist/chunks/chunk-HGTMU34S.js +0 -7
  212. package/dist/chunks/chunk-I7KMJTOY.js +0 -8
  213. package/dist/chunks/chunk-JSCK6WWR.js +0 -20
  214. package/dist/chunks/chunk-JXKKJ5OI.js +0 -7
  215. package/dist/chunks/chunk-KJKM2UNP.js +0 -7
  216. package/dist/chunks/chunk-MY4MONOH.js +0 -7
  217. package/dist/chunks/chunk-O4FDRZ22.js +0 -7
  218. package/dist/chunks/chunk-P2O5DOYE.js +0 -7
  219. package/dist/chunks/chunk-PE5BSEYV.js +0 -7
  220. package/dist/chunks/chunk-PPCFQQSU.js +0 -7
  221. package/dist/chunks/chunk-PPWMHBWP.js +0 -9
  222. package/dist/chunks/chunk-QQ6IA4O5.js +0 -9
  223. package/dist/chunks/chunk-RD7VCVW5.js +0 -44
  224. package/dist/chunks/chunk-TVHFWIH4.js +0 -7
  225. package/dist/chunks/chunk-UI53O6MW.js +0 -7
  226. package/dist/chunks/chunk-VKPZP4LC.js +0 -8
  227. package/dist/chunks/chunk-WKZ6JSGZ.js +0 -7
  228. package/dist/chunks/chunk-Y4GLHDBA.js +0 -9
  229. package/dist/chunks/chunk-ZQME5XUJ.js +0 -7
  230. package/dist/chunks/chunk-ZS2WS4AM.js +0 -7
  231. package/dist/chunks/clear-HKGEIG6F.js +0 -8
  232. package/dist/chunks/compile-vercel-config-ZY34MDLE.js +0 -7
  233. package/dist/chunks/config-33ZMAOLB.js +0 -8
  234. package/dist/chunks/delete-OMER3AX3.js +0 -10
  235. package/dist/chunks/delete-ZHGL7GGN.js +0 -9
  236. package/dist/chunks/detect-services-ABFXK5B7.js +0 -7
  237. package/dist/chunks/disable-OIGHKAMI.js +0 -7
  238. package/dist/chunks/discard-XUMTJVVB.js +0 -14
  239. package/dist/chunks/edit-3DIEWIVC.js +0 -8
  240. package/dist/chunks/edit-IQ74VVWW.js +0 -9
  241. package/dist/chunks/enable-AVCTKWMV.js +0 -7
  242. package/dist/chunks/future-BSDI3CNY.js +0 -7
  243. package/dist/chunks/generate-cert-for-deploy-FEZT4VSA.js +0 -7
  244. package/dist/chunks/image-BIOIWB4M.js +0 -7
  245. package/dist/chunks/import-builders-5TVTITKF.js +0 -7
  246. package/dist/chunks/inspect-2OWYT5HO.js +0 -13
  247. package/dist/chunks/inspect-WPYSJNEK.js +0 -9
  248. package/dist/chunks/list-LZCBVTIL.js +0 -12
  249. package/dist/chunks/login-36BXMMDQ.js +0 -9
  250. package/dist/chunks/login-HAND2C3L.js +0 -7
  251. package/dist/chunks/logs-JYROMZI7.js +0 -7
  252. package/dist/chunks/ls-IMAHWKOH.js +0 -8
  253. package/dist/chunks/ls-YWZLCIGC.js +0 -11
  254. package/dist/chunks/mutate-JQF3GLZP.js +0 -9
  255. package/dist/chunks/notifications-2SS4R53X.js +0 -7
  256. package/dist/chunks/open-RF3GYOHD.js +0 -7
  257. package/dist/chunks/permissions-G4F4PLFB.js +0 -7
  258. package/dist/chunks/prompt-missing-credentials-CV5NLAYI.js +0 -7
  259. package/dist/chunks/publish-KXUGNXEK.js +0 -15
  260. package/dist/chunks/pull-ELQ3GVJJ.js +0 -7
  261. package/dist/chunks/purchase-domain-if-available-QDQJOGOX.js +0 -7
  262. package/dist/chunks/push-WSYAQQKI.js +0 -7
  263. package/dist/chunks/reauthenticate-H7ZY6BVA.js +0 -7
  264. package/dist/chunks/reorder-SADHAXS4.js +0 -10
  265. package/dist/chunks/reply-UFH3BEMN.js +0 -9
  266. package/dist/chunks/resolve-5THDM4PN.js +0 -12
  267. package/dist/chunks/resolve-agent-team-MCTKBED5.js +0 -7
  268. package/dist/chunks/restore-3ZTRYEOV.js +0 -16
  269. package/dist/chunks/rm-GUSBRP6P.js +0 -8
  270. package/dist/chunks/rm-HUQFQOP2.js +0 -8
  271. package/dist/chunks/rm-WVA4E2BL.js +0 -8
  272. package/dist/chunks/rm-ZL4VR3BA.js +0 -8
  273. package/dist/chunks/rm-ZQWP6MUB.js +0 -8
  274. package/dist/chunks/routes-ZOLO53UC.js +0 -7
  275. package/dist/chunks/rule-inspect-WJ6ENOME.js +0 -8
  276. package/dist/chunks/schema-7ACGW22H.js +0 -14
  277. package/dist/chunks/select-org-3BWXFGPH.js +0 -7
  278. package/dist/chunks/set-5I5CPDY3.js +0 -7
  279. package/dist/chunks/setup-and-link-HJSR6ANM.js +0 -7
  280. package/dist/chunks/tags-HTY22QMH.js +0 -7
  281. package/dist/chunks/update-6TDKMDKO.js +0 -8
@@ -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{events_default}from"./chunk-OGH32TS2.js";import{require_strip_ansi}from"./chunk-BS32OUOC.js";import{output_manager_default}from"./chunk-M774HRX5.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1);var import_strip_ansi=__toESM(require_strip_ansi(),1);function displayBuildLogs(client,deployment,follow=!0,onAliasAssigned){let abortController=new AbortController;return{promise:events_default(client,deployment.id,{mode:"logs",onEvent:event=>printBuildLog(event,output_manager_default.print),onAliasAssigned,quiet:!1,findOpts:{direction:"forward",follow}},abortController),abortController}}function collectBuildLogs(client,deployment,follow=!0){let logs=[],abortController=new AbortController;return{promise:events_default(client,deployment.id,{mode:"logs",onEvent:event=>{event.created&&logs.push(event)},quiet:!0,findOpts:{direction:"forward",follow}},abortController).then(()=>logs),abortController}}async function displayBuildLogsUntilFinalError(client,deployment,error){let abortController=new AbortController;return events_default(client,deployment.id,{mode:"logs",onEvent:event=>{printBuildLog(event,output_manager_default.print),event.level==="error"&&event.text?.includes(error)&&abortController.abort()},quiet:!1,findOpts:{direction:"forward",follow:!0}},abortController)}function printBuildLog(log,print){if(!log.created)return;let date=new Date(log.created).toISOString(),cleanText=parseLogLines(log).join(`
7
+ import{events_default}from"./chunk-BFJC3UDU.js";import{require_strip_ansi}from"./chunk-BS32OUOC.js";import{output_manager_default}from"./chunk-UGZ3HFHI.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1);var import_strip_ansi=__toESM(require_strip_ansi(),1);function displayBuildLogs(client,deployment,follow=!0,onAliasAssigned){let abortController=new AbortController;return{promise:events_default(client,deployment.id,{mode:"logs",onEvent:event=>printBuildLog(event,output_manager_default.print),onAliasAssigned,quiet:!1,findOpts:{direction:"forward",follow}},abortController),abortController}}function collectBuildLogs(client,deployment,follow=!0){let logs=[],abortController=new AbortController;return{promise:events_default(client,deployment.id,{mode:"logs",onEvent:event=>{event.created&&logs.push(event)},quiet:!0,findOpts:{direction:"forward",follow}},abortController).then(()=>logs),abortController}}async function displayBuildLogsUntilFinalError(client,deployment,error){let abortController=new AbortController;return events_default(client,deployment.id,{mode:"logs",onEvent:event=>{printBuildLog(event,output_manager_default.print),event.level==="error"&&event.text?.includes(error)&&abortController.abort()},quiet:!1,findOpts:{direction:"forward",follow:!0}},abortController)}function printBuildLog(log,print){if(!log.created)return;let date=new Date(log.created).toISOString(),cleanText=parseLogLines(log).join(`
8
8
  `);for(let line of colorize(cleanText,log).split(`
9
9
  `))print(`${import_chalk.default.dim(date)} ${line}
10
10
  `)}function sanitize(log){return(0,import_strip_ansi.default)(log.text||"").replace(/\n$/,"").replace(/^\n/,"")}function parseLogLines(log){return sanitize(log).split(`
@@ -4,5 +4,5 @@ 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{require_ms}from"./chunk-MXTC4ZAQ.js";import{output_manager_default}from"./chunk-M774HRX5.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_ms=__toESM(require_ms(),1);function parseTimeFlag(input,now=Date.now()){if(input.trim()==="now")return new Date(now);let milliseconds=(0,import_ms.default)(input);if(milliseconds!==void 0)return new Date(now-milliseconds);let date=new Date(input);if(isNaN(date.getTime()))throw new Error(`Invalid time format "${input}". Use relative (1h, 30m, 2d, 1w), ISO 8601 datetime, or now.`);return date}function resolveTimeRange(since="1h",until,now=Date.now()){let startTime=parseTimeFlag(since,now),endTime=until?parseTimeFlag(until,now):new Date(now);return{startTime,endTime}}function validateAllProjectMutualExclusivity(all,project){return all&&project?{valid:!1,code:"MUTUAL_EXCLUSIVITY",message:"Cannot specify both --all and --project. Use one or the other."}:{valid:!0}}function validateTimeBound(input){if(!input)return{valid:!0,value:void 0};try{return{valid:!0,value:parseTimeFlag(input)}}catch(err){return{valid:!1,code:"INVALID_TIME",message:err.message}}}function validateTimeOrder(since,until){return since&&until&&since.getTime()>until.getTime()?{valid:!1,code:"INVALID_TIME_RANGE",message:"`--since` must be earlier than `--until`."}:{valid:!0}}function normalizeRepeatableStringFilters(filters){if(!filters||filters.length===0)return[];let normalized=filters.flatMap(filter=>filter.split(",")).map(filter=>filter.trim()).filter(Boolean);return[...new Set(normalized)]}function validateIntegerRangeWithDefault(value,opts){return value===void 0?{valid:!0,value:opts.defaultValue}:Number.isNaN(value)?{valid:!1,code:"INVALID_LIMIT",message:`Please provide a number for flag \`${opts.flag}\`.`}:!Number.isInteger(value)||value<opts.min||value>opts.max?{valid:!1,code:"INVALID_LIMIT",message:`\`${opts.flag}\` must be an integer between ${opts.min} and ${opts.max}.`}:{valid:!0,value}}function validateOptionalIntegerRange(value,opts){return value===void 0?{valid:!0,value:void 0}:Number.isNaN(value)?{valid:!1,code:opts.code||"INVALID_LIMIT",message:`Please provide a number for flag \`${opts.flag}\`.`}:!Number.isInteger(value)||value<opts.min||value>opts.max?{valid:!1,code:opts.code||"INVALID_LIMIT",message:`\`${opts.flag}\` must be an integer between ${opts.min} and ${opts.max}.`}:{valid:!0,value}}function formatJsonError(code,message){return`${JSON.stringify({error:{code,message}},null,2)}
7
+ import{require_ms}from"./chunk-MXTC4ZAQ.js";import{output_manager_default}from"./chunk-UGZ3HFHI.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_ms=__toESM(require_ms(),1);function parseTimeFlag(input,now=Date.now()){if(input.trim()==="now")return new Date(now);let milliseconds=(0,import_ms.default)(input);if(milliseconds!==void 0)return new Date(now-milliseconds);let date=new Date(input);if(isNaN(date.getTime()))throw new Error(`Invalid time format "${input}". Use relative (1h, 30m, 2d, 1w), ISO 8601 datetime, or now.`);return date}function resolveTimeRange(since="1h",until,now=Date.now()){let startTime=parseTimeFlag(since,now),endTime=until?parseTimeFlag(until,now):new Date(now);return{startTime,endTime}}function validateAllProjectMutualExclusivity(all,project){return all&&project?{valid:!1,code:"MUTUAL_EXCLUSIVITY",message:"Cannot specify both --all and --project. Use one or the other."}:{valid:!0}}function validateTimeBound(input){if(!input)return{valid:!0,value:void 0};try{return{valid:!0,value:parseTimeFlag(input)}}catch(err){return{valid:!1,code:"INVALID_TIME",message:err.message}}}function validateTimeOrder(since,until){return since&&until&&since.getTime()>until.getTime()?{valid:!1,code:"INVALID_TIME_RANGE",message:"`--since` must be earlier than `--until`."}:{valid:!0}}function normalizeRepeatableStringFilters(filters){if(!filters||filters.length===0)return[];let normalized=filters.flatMap(filter=>filter.split(",")).map(filter=>filter.trim()).filter(Boolean);return[...new Set(normalized)]}function validateIntegerRangeWithDefault(value,opts){return value===void 0?{valid:!0,value:opts.defaultValue}:Number.isNaN(value)?{valid:!1,code:"INVALID_LIMIT",message:`Please provide a number for flag \`${opts.flag}\`.`}:!Number.isInteger(value)||value<opts.min||value>opts.max?{valid:!1,code:"INVALID_LIMIT",message:`\`${opts.flag}\` must be an integer between ${opts.min} and ${opts.max}.`}:{valid:!0,value}}function validateOptionalIntegerRange(value,opts){return value===void 0?{valid:!0,value:void 0}:Number.isNaN(value)?{valid:!1,code:opts.code||"INVALID_LIMIT",message:`Please provide a number for flag \`${opts.flag}\`.`}:!Number.isInteger(value)||value<opts.min||value>opts.max?{valid:!1,code:opts.code||"INVALID_LIMIT",message:`\`${opts.flag}\` must be an integer between ${opts.min} and ${opts.max}.`}:{valid:!0,value}}function formatJsonError(code,message){return`${JSON.stringify({error:{code,message}},null,2)}
8
8
  `}function writeJsonError(client,code,message){client.stdout.write(formatJsonError(code,message))}var USAGE_ERROR_CODES=new Set(["CONFLICTING_CONTENT","INVALID_AGGREGATION","INVALID_ARGUMENTS","INVALID_ATTACHMENT","INVALID_GRANULARITY","INVALID_GROUP_BY","INVALID_LIMIT","INVALID_NEXT","INVALID_RULE_TYPE","INVALID_STATUS","INVALID_THREAD","INVALID_TIME","INVALID_TIME_RANGE","MESSAGE_WITH_MULTIPLE_THREADS","MISSING_ARGUMENT","MISSING_ARGUMENTS","MISSING_CONTENT","MISSING_FLAG","MISSING_THREAD","MUTUAL_EXCLUSIVITY"]);function getExitCodeForErrorCode(code){return USAGE_ERROR_CODES.has(code)?2:1}function outputError(client,jsonOutput,code,message){return jsonOutput?writeJsonError(client,code,message):output_manager_default.error(message),getExitCodeForErrorCode(code)}function handleValidationError(result,jsonOutput,client){return outputError(client,jsonOutput,result.code,result.message)}export{parseTimeFlag,resolveTimeRange,validateAllProjectMutualExclusivity,validateTimeBound,validateTimeOrder,normalizeRepeatableStringFilters,validateIntegerRangeWithDefault,validateOptionalIntegerRange,writeJsonError,getExitCodeForErrorCode,outputError,handleValidationError};
@@ -0,0 +1,7 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __dirname_ } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __dirname_(__filename);
7
+ function getFlagsSpecification(options){let flagsSpecification={};for(let option of options)flagsSpecification[`--${option.name}`]=option.type,option.shorthand&&(flagsSpecification[`-${option.shorthand}`]=`--${option.name}`);return flagsSpecification["--next"]&&!flagsSpecification["-N"]&&(flagsSpecification["-N"]="--next"),flagsSpecification}var SENSITIVE_AUTH_FLAG_NAMES=new Set(["--token","-t"]);function normalizeFlagName(flag){return flag.includes("=")?flag.slice(0,flag.indexOf("=")):flag}function stripSensitiveAuthArgs(args){let out=[],afterDelimiter=!1;for(let i=0;i<args.length;i++){let arg=args[i];arg==="--"&&(afterDelimiter=!0);let name=normalizeFlagName(arg);if(SENSITIVE_AUTH_FLAG_NAMES.has(name)){!arg.includes("=")&&i+1<args.length&&i++;continue}if(!afterDelimiter&&/^-[A-Za-z]{2,}$/.test(arg)&&arg.includes("t")){let rest=arg.replace(/t/g,"");rest!=="-"&&out.push(rest),i+1<args.length&&i++;continue}out.push(arg)}return out}var globalCommandOptions=[{name:"help",shorthand:"h",type:Boolean,description:"Output usage information",deprecated:!1},{name:"version",shorthand:"v",type:Boolean,description:"Output the version number",deprecated:!1},{name:"cwd",shorthand:null,type:String,argument:"DIR",description:"Sets the current working directory for a single run of a command",deprecated:!1},{name:"local-config",shorthand:"A",type:String,argument:"FILE",description:"Path to the local `vercel.json` file",deprecated:!1},{name:"global-config",shorthand:"Q",type:String,argument:"DIR",description:"Path to the global `.vercel` directory",deprecated:!1},{name:"debug",shorthand:"d",type:Boolean,description:"Debug mode (default: off)",deprecated:!1},{name:"no-color",shorthand:null,type:Boolean,description:"No color mode (default: off)",deprecated:!1},{name:"non-interactive",shorthand:null,type:Boolean,description:"Run without interactive prompts (default: on when an agent is detected)",deprecated:!1},{name:"scope",shorthand:"S",type:String,description:"Set a custom scope",deprecated:!1},{name:"token",shorthand:"t",type:String,argument:"TOKEN",description:"Login token",deprecated:!1},{name:"team",shorthand:"T",type:String,deprecated:!1},{name:"api",shorthand:null,type:String,deprecated:!1}],GLOBAL_CLI_FLAG_NAMES=(()=>{let set=new Set;for(let opt of globalCommandOptions)set.add(`--${opt.name}`),opt.shorthand&&set.add(`-${opt.shorthand}`);return set})();function globalCliFlagTakesValue(flagName){let normalized=normalizeFlagName(flagName);for(let opt of globalCommandOptions)if(`--${opt.name}`===normalized||opt.shorthand&&`-${opt.shorthand}`===normalized)return opt.type===String;return!1}var SUGGESTION_FLAGS_TAKING_VALUE=new Set(["--config","--deployment","--environment","--git-branch","--id","--value","--status","--name","--slug","--version","--search","--format","--project","--page","--per-page"]);function suggestionFlagTakesSeparateValue(flagName){let name=normalizeFlagName(flagName);return globalCliFlagTakesValue(name)?!0:SUGGESTION_FLAGS_TAKING_VALUE.has(name)}function getSameSubcommandSuggestionFlags(args){let safeArgs=stripSensitiveAuthArgs(args),out=[];for(let i=0;i<safeArgs.length;i++){let a=safeArgs[i];if(!a.startsWith("-")||(out.push(a),a.includes("=")))continue;suggestionFlagTakesSeparateValue(a)&&i+1<safeArgs.length&&!safeArgs[i+1].startsWith("-")&&out.push(safeArgs[++i])}return out}var GLOBAL_OPTIONS=getFlagsSpecification(globalCommandOptions),arg_common_default=()=>GLOBAL_OPTIONS,yesOption={name:"yes",shorthand:"y",type:Boolean,deprecated:!1,description:"Accept default value for all prompts"},nextCursorOption={name:"next",shorthand:null,type:String,deprecated:!1,description:"Show the next page using the cursor from the previous output",argument:"CURSOR"},confirmOption={name:"confirm",shorthand:"c",type:Boolean,deprecated:!0},limitOption={name:"limit",shorthand:null,type:Number,deprecated:!1,description:"Number of results to return per page (default: 20, max: 100)",argument:"NUMBER"},sinceOption={name:"since",shorthand:"s",type:String,argument:"TIME",deprecated:!1,description:"Start time: ISO 8601 or relative, like 1h or 7d"},untilOption={name:"until",shorthand:"u",type:String,argument:"TIME",deprecated:!1,description:"End time: ISO 8601 or relative (default: now)"},environmentOption={name:"environment",shorthand:"e",type:String,argument:"ENVIRONMENT",deprecated:!1,description:"Environment: production, preview, development, or a custom environment"},targetOption={name:"target",shorthand:null,type:String,argument:"ENVIRONMENT",deprecated:!0,description:"Deprecated alias for `--environment`"},forceOption={name:"force",shorthand:"f",type:Boolean,deprecated:!1},formatOption={name:"format",shorthand:"F",type:String,argument:"FORMAT",description:"Specify the output format (json)",deprecated:!0},jsonOption={name:"json",shorthand:null,type:Boolean,deprecated:!1,description:"Output as JSON"};var allOption={name:"all",shorthand:"a",type:Boolean,deprecated:!1,description:"List resources across all projects"},projectOption={name:"project",shorthand:null,type:String,argument:"NAME_OR_ID",description:"Project name or ID (default: linked project)",deprecated:!1},deploymentOption={name:"deployment",shorthand:null,type:String,deprecated:!1,description:"The deployment ID or URL to target",argument:"DEPLOYMENT"},protectionBypassOption={name:"protection-bypass",shorthand:null,type:String,deprecated:!1,description:"Protection bypass secret for accessing protected deployments",argument:"SECRET"},GLOBAL_LONG_TO_OPT=new Map,GLOBAL_SHORT_TO_OPT=new Map;for(let opt of globalCommandOptions)GLOBAL_LONG_TO_OPT.set(`--${opt.name}`,opt),opt.shorthand&&GLOBAL_SHORT_TO_OPT.set(`-${opt.shorthand}`,opt);function getGlobalFlagsFromArgs(args,options){let delimiterIndex=args.indexOf("--"),cliArgs=delimiterIndex===-1?args:args.slice(0,delimiterIndex),safeArgs=stripSensitiveAuthArgs(cliArgs),out=[];for(let i=0;i<safeArgs.length;i++){let a=safeArgs[i];if(options?.preserveYes&&(a==="--yes"||a==="-y")){out.push(a);continue}if(options?.preserveConfig&&(a==="--config"||a.startsWith("--config="))){if(out.push(a),a==="--config"){let next=safeArgs[i+1];next&&!next.startsWith("-")&&(out.push(next),i++)}continue}let opt;if(a.startsWith("--")&&a.includes("=")){let name=a.slice(2).split("=")[0];opt=GLOBAL_LONG_TO_OPT.get(`--${name}`),opt&&out.push(a);continue}if(opt=GLOBAL_LONG_TO_OPT.get(a)||GLOBAL_SHORT_TO_OPT.get(a),!!opt&&(out.push(a),opt.type===String&&!a.includes("="))){let next=safeArgs[i+1];next&&!next.startsWith("-")&&(out.push(next),i++)}}if(options?.preserveProject){let projectOption2=findProjectOption(safeArgs);projectOption2&&out.push(...projectOption2.args)}return out}function findProjectOption(args){for(let i=0;i<args.length;i++){let arg=args[i];if(arg==="--")return;if(arg.startsWith("--project="))return{value:arg.slice(10),args:[arg]};if(arg==="--project"){let value=args[i+1];return value&&!value.startsWith("-")?{value,args:[arg,value]}:void 0}}}function getProjectOptionFromArgs(args){return findProjectOption(args)?.value}export{getFlagsSpecification,normalizeFlagName,stripSensitiveAuthArgs,globalCommandOptions,GLOBAL_CLI_FLAG_NAMES,globalCliFlagTakesValue,suggestionFlagTakesSeparateValue,getSameSubcommandSuggestionFlags,arg_common_default,yesOption,nextCursorOption,confirmOption,limitOption,sinceOption,untilOption,environmentOption,targetOption,forceOption,formatOption,jsonOption,allOption,projectOption,deploymentOption,protectionBypassOption,getGlobalFlagsFromArgs,getProjectOptionFromArgs};
@@ -4,6 +4,6 @@ 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{buildCorrectedCommand,isArgumentError}from"./chunk-ZOYMKZOR.js";import{getErrorRecovery,shouldEmitNonInteractiveCommandError,trackAgentError,writeAgentError}from"./chunk-2B2Z447M.js";import{parseRetryAfterHeaderAsMillis,require_bytes}from"./chunk-XSDAUM4F.js";import{getCommandName}from"./chunk-JESNVRVR.js";import{cliErrorFromUnknown,output_manager_default,recordCliError}from"./chunk-M774HRX5.js";import{pkg_default}from"./chunk-OO572JUC.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1);var import_bytes=__toESM(require_bytes(),1);async function responseError(res,fallbackMessage=null,parsedBody={}){let message="",bodyError;if(res.status>=400&&res.status<500){let body;try{body=await res.json()}catch{body=parsedBody}bodyError=body.error||body.err||{},message=bodyError.message}message||(message=fallbackMessage===null?"Response Error":fallbackMessage);let err=new Error(`${message} (${res.status})`);if(err.status=res.status,err.serverMessage=message,bodyError)for(let field of Object.keys(bodyError))field!=="message"&&(err[field]=bodyError[field]);if(res.status===429||res.status===503){let parsed=parseRetryAfterHeaderAsMillis(res.headers.get("Retry-After"));err.retryAfterMs=parsed??(res.status===429?0:void 0)}return err}var MAX_SERIALIZED_ERROR_DEPTH=5;function isPlainObject(value){let proto=Object.getPrototypeOf(value);return proto===null||proto===Object.prototype}function toJsonSafe(value,ancestors,depth){if(typeof value=="bigint")return value.toString();if(!(typeof value=="function"||typeof value=="symbol")){if(value===null||typeof value!="object")return value;if(ancestors.has(value))return"[Circular]";if(depth>=MAX_SERIALIZED_ERROR_DEPTH)return"[Truncated]";if(value instanceof Error)return serializeError(value,ancestors,depth+1);if(!Array.isArray(value)&&!isPlainObject(value))return`[${value.constructor?.name||"Object"}]`;ancestors.add(value);try{if(Array.isArray(value))return value.map(item=>toJsonSafe(item,ancestors,depth+1));let copy={};for(let[key,child]of Object.entries(value))copy[key]=toJsonSafe(child,ancestors,depth+1);return copy}finally{ancestors.delete(value)}}}function serializeError(err,ancestors,depth){ancestors.add(err);try{let enumerable={name:err.name};for(let key of Object.getOwnPropertyNames(err))enumerable[key]=toJsonSafe(err[key],ancestors,depth);return enumerable}finally{ancestors.delete(err)}}function toEnumerableError(err){return err===null||typeof err!="object"?{name:"Error",message:String(err)}:serializeError(err,new WeakSet,0)}function printError(error2,client){typeof error2=="string"&&(error2=new Error(error2)),recordCliError(cliErrorFromUnknown(error2));let apiError=error2,{message,stack,status,code,sizeLimit}=apiError,argumentError=isArgumentError(error2)?error2:void 0,suggestion=argumentError?.suggestedOption&&argumentError.invalidOption,correction=suggestion&&client&&argumentError?buildCorrectedCommand(client.argv,argumentError.invalidOption,argumentError.suggestedOption,argumentError.flagsSpecification):void 0,recovery=getErrorRecovery(apiError,client),reason=status===403?"forbidden":status===402?"payment_required":status===401?"not_authorized":status===429?"rate_limited":argumentError?"invalid_arguments":"api_error",hint=argumentError?.allowedOptions?`Vercel CLI ${pkg_default.version} accepts: ${argumentError.allowedOptions.join(", ")}.${suggestion?` Did you mean ${argumentError.suggestedOption}?`:""}`:recovery.hint;if(client&&(status||argumentError?.allowedOptions)){let payload={...recovery,status:"error",reason,message:apiError.serverMessage||message,hint,...argumentError?.allowedOptions&&{allowedOptions:argumentError.allowedOptions,suggestedOption:argumentError.suggestedOption,cliVersion:pkg_default.version},...correction&&{next:[{command:correction,when:correction.includes("<")?"Replace placeholders with the intended values, then run the corrected command":"Run the corrected command"}]}};if(shouldEmitNonInteractiveCommandError(client)){output_manager_default.stopSpinner(),writeAgentError(client,payload);return}trackAgentError(client,payload)}if(hint){output_manager_default.stopSpinner(),output_manager_default.fatal(apiError.serverMessage||message||"The request failed."),output_manager_default.print(` ${hint}
7
+ import{getErrorRecovery,shouldEmitNonInteractiveCommandError,trackAgentError,writeAgentError}from"./chunk-RH2SQQWH.js";import{buildCorrectedCommand,isArgumentError}from"./chunk-XBTLXKOI.js";import{parseRetryAfterHeaderAsMillis,require_bytes}from"./chunk-AZ5OUZPP.js";import{getCommandName}from"./chunk-JESNVRVR.js";import{cliErrorFromUnknown,output_manager_default,recordCliError}from"./chunk-UGZ3HFHI.js";import{pkg_default}from"./chunk-OO572JUC.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1);var import_bytes=__toESM(require_bytes(),1);async function responseError(res,fallbackMessage=null,parsedBody={}){let message="",bodyError;if(res.status>=400&&res.status<500){let body;try{body=await res.json()}catch{body=parsedBody}bodyError=body.error||body.err||{},message=bodyError.message}message||(message=fallbackMessage===null?"Response Error":fallbackMessage);let err=new Error(`${message} (${res.status})`);if(err.status=res.status,err.serverMessage=message,bodyError)for(let field of Object.keys(bodyError))field!=="message"&&(err[field]=bodyError[field]);if(res.status===429||res.status===503){let parsed=parseRetryAfterHeaderAsMillis(res.headers.get("Retry-After"));err.retryAfterMs=parsed??(res.status===429?0:void 0)}return err}var MAX_SERIALIZED_ERROR_DEPTH=5;function isPlainObject(value){let proto=Object.getPrototypeOf(value);return proto===null||proto===Object.prototype}function toJsonSafe(value,ancestors,depth){if(typeof value=="bigint")return value.toString();if(!(typeof value=="function"||typeof value=="symbol")){if(value===null||typeof value!="object")return value;if(ancestors.has(value))return"[Circular]";if(depth>=MAX_SERIALIZED_ERROR_DEPTH)return"[Truncated]";if(value instanceof Error)return serializeError(value,ancestors,depth+1);if(!Array.isArray(value)&&!isPlainObject(value))return`[${value.constructor?.name||"Object"}]`;ancestors.add(value);try{if(Array.isArray(value))return value.map(item=>toJsonSafe(item,ancestors,depth+1));let copy={};for(let[key,child]of Object.entries(value))copy[key]=toJsonSafe(child,ancestors,depth+1);return copy}finally{ancestors.delete(value)}}}function serializeError(err,ancestors,depth){ancestors.add(err);try{let enumerable={name:err.name};for(let key of Object.getOwnPropertyNames(err))enumerable[key]=toJsonSafe(err[key],ancestors,depth);return enumerable}finally{ancestors.delete(err)}}function toEnumerableError(err){return err===null||typeof err!="object"?{name:"Error",message:String(err)}:serializeError(err,new WeakSet,0)}function printError(error2,client){typeof error2=="string"&&(error2=new Error(error2)),recordCliError(cliErrorFromUnknown(error2));let apiError=error2,{message,stack,status,code,sizeLimit}=apiError,argumentError=isArgumentError(error2)?error2:void 0,suggestion=argumentError?.suggestedOption&&argumentError.invalidOption,correction=suggestion&&client&&argumentError?buildCorrectedCommand(client.argv,argumentError.invalidOption,argumentError.suggestedOption,argumentError.flagsSpecification):void 0,recovery=getErrorRecovery(apiError,client),reason=status===403?"forbidden":status===402?"payment_required":status===401?"not_authorized":status===429?"rate_limited":argumentError?"invalid_arguments":"api_error",hint=argumentError?.allowedOptions?`Vercel CLI ${pkg_default.version} accepts: ${argumentError.allowedOptions.join(", ")}.${suggestion?` Did you mean ${argumentError.suggestedOption}?`:""}`:recovery.hint;if(client&&(status||argumentError?.allowedOptions)){let payload={...recovery,status:"error",reason,message:apiError.serverMessage||message,hint,...argumentError?.allowedOptions&&{allowedOptions:argumentError.allowedOptions,suggestedOption:argumentError.suggestedOption,cliVersion:pkg_default.version},...correction&&{next:[{command:correction,when:correction.includes("<")?"Replace placeholders with the intended values, then run the corrected command":"Run the corrected command"}]}};if(shouldEmitNonInteractiveCommandError(client)){output_manager_default.stopSpinner(),writeAgentError(client,payload);return}trackAgentError(client,payload)}if(hint){output_manager_default.stopSpinner(),output_manager_default.fatal(apiError.serverMessage||message||"The request failed."),output_manager_default.print(` ${hint}
8
8
  `),correction&&output_manager_default.print(` ${correction}
9
9
  `);return}output_manager_default.debug(`handling error: ${stack}`),message!=="User force closed the prompt with 0 null"&&(status===403?output_manager_default.error(message||`Authentication error. Run ${getCommandName("login")} to log-in again.`):status===429?output_manager_default.error(message):code==="size_limit_exceeded"?output_manager_default.error(`File size limit exceeded (${(0,import_bytes.default)(sizeLimit)})`):message?output_manager_default.prettyError(apiError):status===500?output_manager_default.error("Unexpected server error. Please retry."):code==="USER_ABORT"?output_manager_default.log("Canceled"):output_manager_default.error(`Unexpected error. Please try again later. (${message})`))}export{responseError,toEnumerableError,printError};
@@ -4,5 +4,5 @@ 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{noBorderChars,require_cli_table3}from"./chunk-773GOZIR.js";import{require_dist}from"./chunk-PUKYAALC.js";import{globalCommandOptions}from"./chunk-4KYSK2MS.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1),import_constants=__toESM(require_dist(),1),import_cli_table3=__toESM(require_cli_table3(),1);var INDENT=" ".repeat(2),NEWLINE=`
7
+ import{noBorderChars,require_cli_table3}from"./chunk-773GOZIR.js";import{require_dist}from"./chunk-PUKYAALC.js";import{globalCommandOptions}from"./chunk-ODB7LEAO.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1),import_constants=__toESM(require_dist(),1),import_cli_table3=__toESM(require_cli_table3(),1);var INDENT=" ".repeat(2),NEWLINE=`
8
8
  `,tableOptions={chars:noBorderChars,style:{"padding-left":0,"padding-right":0}};function wordWrap(text,maxWidth){let _tableOptions=Object.assign({},tableOptions,{colWidths:[maxWidth],style:{"padding-left":INDENT.length}}),table=new import_cli_table3.default(_tableOptions);return table.push([{content:text,wordWrap:!0}]),table.toString()}function lineToString(line){let string="";for(let i=0;i<line.length;i++)if(i===line.length-1)string+=line[i];else{let curr=line[i],next=line[i+1];string+=curr,curr.trim()!==""&&next.trim()!==""&&(string+=" ")}return string}function outputArrayToString(outputArray){return outputArray.filter(line=>line!==null).join(NEWLINE)}var commandPaths=new WeakMap;function registerCommandPaths(roots){let visit=(command,parentPath)=>{let path=[...parentPath,command.name];commandPaths.has(command)||commandPaths.set(command,path);for(let subcommand of command.subcommands??[])visit(subcommand,path)};for(let root of roots)visit(root,[])}function getCommandPath(command,parent){let registered=commandPaths.get(command);return registered||(parent?[parent.name,command.name]:[command.name])}function buildCommandSynopsisLine(command,parent){let line=[INDENT,import_constants.LOGO,import_chalk.default.bold(import_constants.NAME)];for(let name of getCommandPath(command,parent))line.push(import_chalk.default.bold(name));let args=command.arguments.slice(0);if(args.length===0&&command.subcommands&&command.subcommands.length>0&&args.push({name:"command",required:!command.subcommands.some(subcommand=>subcommand.default)}),args.length>0)for(let argument of args){let{name}=argument;argument.multiple&&(name+=" ..."),line.push(argument.required?name:`[${name}]`)}return command.options.length>0&&line.push("[options]"),line.push(NEWLINE),lineToString(line)}function buildCommandOptionLines(commandOptions,options,sectionTitle){let filteredCommandOptions=commandOptions.filter(option=>!option.deprecated&&option.description!==void 0);if(filteredCommandOptions.length===0)return null;filteredCommandOptions.sort((a,b)=>a.name<b.name?-1:a.name>b.name?1:0);let maxWidthOfUnwrappedColumns=0,rows=[];for(let option of filteredCommandOptions){let shorthandCell=option.shorthand?`${INDENT}-${option.shorthand},`:"",longhandCell=`${INDENT}--${option.name}`;option.argument&&(longhandCell+=` <${option.argument}>`),longhandCell+=INDENT;let widthOfUnwrappedColumns=shorthandCell.length+longhandCell.length;maxWidthOfUnwrappedColumns=Math.max(widthOfUnwrappedColumns,maxWidthOfUnwrappedColumns),rows.push([shorthandCell,longhandCell,{content:option.description,wordWrap:!0}])}let finalColumnWidth=options.columns-maxWidthOfUnwrappedColumns,table=new import_cli_table3.default(Object.assign({},tableOptions,{colWidths:[null,null,finalColumnWidth]}));return table.push(...rows),[`${INDENT}${import_chalk.default.dim(sectionTitle)}:`,NEWLINE,NEWLINE,table.toString(),NEWLINE,NEWLINE].join("")}function buildSubcommandLines(subcommands,options,title="Commands"){if(!subcommands)return null;let maxWidthOfUnwrappedColumns=0,rows=[];for(let command of subcommands){if(command.hidden)continue;let nameCell=`${INDENT}${command.name}`,argsCell=INDENT;argsCell+=command.arguments.map(arg=>arg.required?arg.name:`[${arg.name}]`).join(" "),argsCell+=INDENT;let widthOfUnwrappedColumns=nameCell.length+argsCell.length;maxWidthOfUnwrappedColumns=Math.max(widthOfUnwrappedColumns,maxWidthOfUnwrappedColumns),rows.push([nameCell,argsCell,{content:command.default?`${command.summary??command.description} ${import_chalk.default.bold("(default)")}`:command.summary??command.description,wordWrap:!0}])}let rightMargin=INDENT.repeat(4).length,finalColumnWidth=options.columns-maxWidthOfUnwrappedColumns-rightMargin,table=new import_cli_table3.default(Object.assign({},tableOptions,{colWidths:[null,null,finalColumnWidth]}));return rows.length===0?null:(table.push(...rows),[`${INDENT}${import_chalk.default.dim(title)}:`,NEWLINE,NEWLINE,table.toString(),NEWLINE,NEWLINE].join(""))}function buildCommandExampleLines(command){if(!command.examples?.length)return null;let outputArray=[`${INDENT}${import_chalk.default.dim("Examples:")}`,""];for(let example of command.examples){let nameLine=[INDENT];nameLine.push(import_chalk.default.gray("-")),nameLine.push(example.name),outputArray.push(lineToString(nameLine)),outputArray.push("");let buildValueLine=value=>lineToString([INDENT,INDENT,import_chalk.default.cyan(`$ ${value}`)]);if(Array.isArray(example.value))for(let line of example.value)outputArray.push(buildValueLine(line));else outputArray.push(buildValueLine(example.value));outputArray.push("")}return outputArrayToString(outputArray)}function buildCommandDocumentationLines(command,options){if(options.omitDocumentation)return null;let documentation=command.documentation??options.parent?.documentation;return documentation?outputArrayToString([`${INDENT}${import_chalk.default.dim(`${documentation.label}:`)}`,"",lineToString([INDENT,INDENT,import_chalk.default.cyan(documentation.url)]),""]):null}function buildDescriptionLine(command,options){return`${wordWrap(command.description,options.columns)}${NEWLINE}`}function buildHelpOutput(command,options){let filteredGlobalOptions=command.disabledGlobalOptions?globalCommandOptions.filter(opt=>!command.disabledGlobalOptions?.includes(opt.name)):globalCommandOptions,sections=command.helpSections??[],buildSection=section=>outputArrayToString([`${INDENT}${import_chalk.default.dim(`${section.title}:`)}`,"",...section.body.map(line=>line===""?"":wordWrap(line,options.columns)),""]),outputArray=["",buildCommandSynopsisLine(command,options.parent),buildDescriptionLine(command,options),buildSubcommandLines(command.subcommands,options,command.subcommandsTitle),buildCommandOptionLines(command.options,options,"Options"),...sections.filter(section=>section.placement==="afterOptions").map(buildSection),buildCommandOptionLines(filteredGlobalOptions,options,"Global Options"),buildCommandExampleLines(command),...sections.filter(section=>section.placement!=="afterOptions").map(buildSection),buildCommandDocumentationLines(command,options),""];return outputArrayToString(outputArray)}function help(command,options){return buildHelpOutput(command,{...options,columns:options.columns??80})}function findOption(token,options){let isLong=token.startsWith("--"),name=isLong?token.slice(2):token.slice(1);return options.find(candidate=>isLong?candidate.name===name:candidate.shorthand===name)}function subtreeOptions(command){return[...command.options,...(command.subcommands??[]).flatMap(subtreeOptions)]}function isSubcommandOf(command,token){return token!==void 0&&(command.subcommands??[]).some(subcommand=>subcommand.name===token||subcommand.aliases.includes(token))}function optionTakesValue(token,walkedOptions,command,nextToken){let walked=findOption(token,walkedOptions);if(walked)return walked.type!==Boolean;let below=findOption(token,subtreeOptions(command)),global=findOption(token,globalCommandOptions);return below&&below.type!==Boolean&&(!global||global.type!==Boolean||!isSubcommandOf(command,nextToken))?!0:global!==void 0&&global.type!==Boolean}function resolveHelpTarget(root,tokens){let command=root,ancestors=[],typedPath=[],options=[...root.options],groupArguments=0,unknownSegment;for(let i=0;i<tokens.length;i++){let token=tokens[i];if(token==="--")break;if(token.startsWith("-")){!token.includes("=")&&optionTakesValue(token,options,command,tokens[i+1])&&i++;continue}let subcommand=command.subcommands?.find(candidate=>candidate.name===token||candidate.aliases.includes(token));if(!subcommand){if(command.argumentsBeforeSubcommand&&groupArguments<command.arguments.length){groupArguments++;continue}command.subcommands?.length&&command.arguments.length===0&&!command.runsWithoutSubcommand&&!command.subcommands.some(candidate=>candidate.default)&&(unknownSegment=token);break}ancestors.push(command),typedPath.push(token),options.push(...subcommand.options),command=subcommand,groupArguments=0}let parent=ancestors[ancestors.length-1];for(let i=ancestors.length-1;i>=0;i--)if(ancestors[i].documentation){parent=ancestors[i];break}return{command,parent,typedPath,unknownSegment}}export{registerCommandPaths,buildCommandDocumentationLines,help,resolveHelpTarget};