@vercel/cli-support 68.0.0 → 68.1.0-snapshot-3c48721091f5

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 (494) hide show
  1. package/dist/chunks/add-57EE2LQO.js +8 -0
  2. package/dist/chunks/{add-4ZXS4RRN.js → add-DNRNPUU7.js} +1 -1
  3. package/dist/chunks/{add-G2LGF4HL.js → add-FLVE2M3L.js} +1 -1
  4. package/dist/chunks/{alerts-3352VWDL.js → alerts-26PDHRBL.js} +1 -1
  5. package/dist/chunks/{api-endpoints-2IYXPLEG.js → api-endpoints-EY2DO75S.js} +1 -1
  6. package/dist/chunks/auth-4A5CXZOA.js +7 -0
  7. package/dist/chunks/auth-ZJV6OHMS.js +7 -0
  8. package/dist/chunks/{build-3UFKTTS5.js → build-6WTRWW2M.js} +1 -1
  9. package/dist/chunks/{chunk-D6REP5QQ.js → chunk-2GXP676X.js} +1 -1
  10. package/dist/chunks/{chunk-MXTC4ZAQ.js → chunk-2ILZM77F.js} +1 -1
  11. package/dist/chunks/{chunk-OFDTADPQ.js → chunk-2K7U64CN.js} +1 -1
  12. package/dist/chunks/{chunk-Y4YBQUQM.js → chunk-2STLJAXZ.js} +1 -1
  13. package/dist/chunks/{chunk-PAHYNO73.js → chunk-2TUJJIYU.js} +1 -1
  14. package/dist/chunks/chunk-2XQO6C7Q.js +7 -0
  15. package/dist/chunks/{chunk-DH4A4QMD.js → chunk-33ETNP4M.js} +1 -1
  16. package/dist/chunks/{chunk-L46V6VL3.js → chunk-37SWAKIV.js} +1 -1
  17. package/dist/chunks/{chunk-23FY4PR3.js → chunk-3F3WNT5K.js} +1 -1
  18. package/dist/chunks/{chunk-ZXSZH7N5.js → chunk-3GKXXGSO.js} +1 -1
  19. package/dist/chunks/{chunk-QSL6AG2B.js → chunk-3HP6FOOL.js} +1 -1
  20. package/dist/chunks/{chunk-M32HBBPK.js → chunk-3WXQHKSS.js} +1 -1
  21. package/dist/chunks/{chunk-JELLVPCM.js → chunk-3XMKTJ5T.js} +1 -1
  22. package/dist/chunks/{chunk-YLXXGQQQ.js → chunk-42D3CPWB.js} +1 -1
  23. package/dist/chunks/{chunk-5A3DDLQR.js → chunk-42RUDD27.js} +1 -1
  24. package/dist/chunks/{chunk-HRR57QNP.js → chunk-46R47IE5.js} +1 -1
  25. package/dist/chunks/{chunk-OOPF73RV.js → chunk-4FPYV37P.js} +1 -1
  26. package/dist/chunks/{chunk-CAJ2OUSR.js → chunk-4L7AKIX7.js} +1 -1
  27. package/dist/chunks/{chunk-SGNDE4YS.js → chunk-4MAA4BQD.js} +1 -1
  28. package/dist/chunks/{chunk-FTNLCQC6.js → chunk-4OOHXEKI.js} +1 -1
  29. package/dist/chunks/{chunk-NMIB4JYP.js → chunk-4R7ICESH.js} +1 -1
  30. package/dist/chunks/{chunk-MCYG7CCE.js → chunk-4SIQE2W4.js} +1 -1
  31. package/dist/chunks/chunk-4WEKKDOL.js +8 -0
  32. package/dist/chunks/{chunk-TU54LHNW.js → chunk-54W7S4EV.js} +1 -1
  33. package/dist/chunks/{chunk-NWGBDBZI.js → chunk-5F4RJ32E.js} +1 -1
  34. package/dist/chunks/{chunk-KRPY5FHJ.js → chunk-5QC4IKRZ.js} +1 -1
  35. package/dist/chunks/{chunk-2AMO2VMV.js → chunk-64GNDWWX.js} +1 -1
  36. package/dist/chunks/{chunk-J24BABG4.js → chunk-6G2AZBW5.js} +1 -1
  37. package/dist/chunks/{chunk-DY643UZ7.js → chunk-6JBKQ5LR.js} +2 -3
  38. package/dist/chunks/{chunk-AVCLYJNC.js → chunk-6KI5LJIB.js} +1 -1
  39. package/dist/chunks/{chunk-X755TPX6.js → chunk-6O2LDFGJ.js} +1 -1
  40. package/dist/chunks/chunk-6OOJFAF5.js +20 -0
  41. package/dist/chunks/{chunk-E7IN2DGU.js → chunk-6XXXPJBV.js} +1 -1
  42. package/dist/chunks/chunk-732HWE3P.js +181 -0
  43. package/dist/chunks/chunk-75TGTOZQ.js +8 -0
  44. package/dist/chunks/{chunk-4FBOQLPZ.js → chunk-76AOTUM2.js} +1 -1
  45. package/dist/chunks/{chunk-KXMFGDO4.js → chunk-76XUBFXI.js} +1 -1
  46. package/dist/chunks/{chunk-VBANKZWM.js → chunk-7CLATJZX.js} +1 -1
  47. package/dist/chunks/{chunk-UPDIZCP3.js → chunk-7EI554V5.js} +1 -1
  48. package/dist/chunks/{chunk-IVZNPSHU.js → chunk-7IHVCKUV.js} +1 -1
  49. package/dist/chunks/{chunk-PSOVLGHP.js → chunk-7O3D3XED.js} +1 -1
  50. package/dist/chunks/{chunk-YTSUDTAK.js → chunk-7OOCSVWT.js} +1 -1
  51. package/dist/chunks/{chunk-FXLZM6Q7.js → chunk-7PK2JFEH.js} +1 -1
  52. package/dist/chunks/chunk-7Q5I3L37.js +68 -0
  53. package/dist/chunks/{chunk-24SIHFEW.js → chunk-7QHUMMBA.js} +1 -1
  54. package/dist/chunks/{chunk-5727HGA6.js → chunk-7TREJIPV.js} +1 -1
  55. package/dist/chunks/{chunk-4HR3I3ML.js → chunk-7TRHPXCG.js} +1 -1
  56. package/dist/chunks/{chunk-BLUPZPAS.js → chunk-7Y572CPZ.js} +1 -1
  57. package/dist/chunks/chunk-7ZCM4LWL.js +15 -0
  58. package/dist/chunks/{chunk-H3ZSF2P3.js → chunk-A7XRIU6Z.js} +1 -1
  59. package/dist/chunks/chunk-AASXSNBW.js +17 -0
  60. package/dist/chunks/{chunk-6DBLXAJI.js → chunk-AGFG7WHE.js} +1 -1
  61. package/dist/chunks/{chunk-Z73UJVGD.js → chunk-AU54JBLF.js} +1 -1
  62. package/dist/chunks/{chunk-SQ62IODX.js → chunk-AUCQKYL2.js} +1 -1
  63. package/dist/chunks/{chunk-SCV7XEEO.js → chunk-AX6UCTOC.js} +1 -1
  64. package/dist/chunks/{chunk-QHGPFYWQ.js → chunk-B7LM2BNN.js} +1 -1
  65. package/dist/chunks/{chunk-E3AML3VR.js → chunk-BB27VKHS.js} +1 -1
  66. package/dist/chunks/{chunk-YBAGKQXC.js → chunk-BCD4TRQF.js} +1 -1
  67. package/dist/chunks/{chunk-OQXHBPPS.js → chunk-BCRZI5IM.js} +1 -1
  68. package/dist/chunks/{chunk-KA2KG3SY.js → chunk-BDLZ6WL2.js} +1 -1
  69. package/dist/chunks/chunk-BFS4K2RF.js +7 -0
  70. package/dist/chunks/chunk-BKJ4H6KK.js +8 -0
  71. package/dist/chunks/{chunk-COD3WAUI.js → chunk-BNWEJZAC.js} +1 -1
  72. package/dist/chunks/{chunk-5MDNVAE6.js → chunk-BVFFSUG3.js} +1 -1
  73. package/dist/chunks/{chunk-LDDXXDN5.js → chunk-C2R5IEN6.js} +1 -1
  74. package/dist/chunks/{chunk-F7L5SXJM.js → chunk-CDO5IECP.js} +1 -1
  75. package/dist/chunks/{chunk-YN3HZJXW.js → chunk-CHTFRAXA.js} +1 -1
  76. package/dist/chunks/{chunk-XOETL6DB.js → chunk-CHY2NJU4.js} +1 -1
  77. package/dist/chunks/{chunk-MYVALJ4D.js → chunk-CNGI6Z2G.js} +1 -1
  78. package/dist/chunks/{chunk-4SWS7RKX.js → chunk-CRPZYLIL.js} +1 -1
  79. package/dist/chunks/{chunk-PVASGBEF.js → chunk-CSU46B7Q.js} +1 -1
  80. package/dist/chunks/{chunk-DORCX7UB.js → chunk-CUO3CYU3.js} +1 -1
  81. package/dist/chunks/{chunk-4SAVH3H7.js → chunk-DCFCPAFQ.js} +1 -1
  82. package/dist/chunks/{chunk-2DH6LTUI.js → chunk-DRDY2UZX.js} +1 -1
  83. package/dist/chunks/{chunk-D2JNI6UB.js → chunk-DWA7B7TB.js} +1 -1
  84. package/dist/chunks/chunk-DXFFWNK4.js +8 -0
  85. package/dist/chunks/chunk-E6VQXHBD.js +11 -0
  86. package/dist/chunks/chunk-E7ICSU45.js +7 -0
  87. package/dist/chunks/{chunk-F4KY2TOK.js → chunk-EAQLOKZX.js} +1 -1
  88. package/dist/chunks/{chunk-ZGM4K3B5.js → chunk-ECQW2R5M.js} +1 -1
  89. package/dist/chunks/{chunk-VJNTVPUV.js → chunk-EDXNAXEZ.js} +1 -1
  90. package/dist/chunks/{chunk-B4KA3ZH2.js → chunk-EFGZK6OY.js} +1 -1
  91. package/dist/chunks/{chunk-MWFHS4HV.js → chunk-EGXRQ73P.js} +1 -1
  92. package/dist/chunks/chunk-EK7U42I4.js +9 -0
  93. package/dist/chunks/{chunk-ID663OJ7.js → chunk-EL65DTVZ.js} +1 -1
  94. package/dist/chunks/{chunk-KNNIA3PS.js → chunk-EPCRR72R.js} +1 -1
  95. package/dist/chunks/{chunk-3G3FQYMW.js → chunk-ERMHTPO4.js} +1 -1
  96. package/dist/chunks/chunk-EV2VKG2V.js +8 -0
  97. package/dist/chunks/{chunk-E5A7E7X6.js → chunk-EZ3HXFLB.js} +1 -1
  98. package/dist/chunks/{chunk-NMY2YZ6M.js → chunk-F5FBLRH3.js} +1 -1
  99. package/dist/chunks/{chunk-VWKA6RKB.js → chunk-FHNHVEOX.js} +1 -1
  100. package/dist/chunks/{chunk-D3M2JG5C.js → chunk-FIICEEXO.js} +1 -1
  101. package/dist/chunks/{chunk-ZBOTJT5S.js → chunk-FMLRVSWK.js} +1 -1
  102. package/dist/chunks/chunk-FO7OSSLI.js +13 -0
  103. package/dist/chunks/{chunk-XC25DYA7.js → chunk-FSM7YM4W.js} +2 -2
  104. package/dist/chunks/chunk-FSMZPHAA.js +33 -0
  105. package/dist/chunks/chunk-FUH5PBGR.js +7 -0
  106. package/dist/chunks/{chunk-QPNTR3PA.js → chunk-FVMRKUWL.js} +1 -1
  107. package/dist/chunks/chunk-GB77JTTX.js +8 -0
  108. package/dist/chunks/{chunk-BIABM3FB.js → chunk-GILTW5RJ.js} +1 -1
  109. package/dist/chunks/{chunk-AW5KOUD7.js → chunk-GNQ7KLCN.js} +1 -1
  110. package/dist/chunks/{chunk-KLBSCTLL.js → chunk-GO64LSUW.js} +1 -1
  111. package/dist/chunks/{chunk-4NTBYNFR.js → chunk-GOXGA37R.js} +1 -1
  112. package/dist/chunks/{chunk-DGLE44KA.js → chunk-GPVXJI6X.js} +1 -1
  113. package/dist/chunks/{chunk-YTSGFU5T.js → chunk-GUFRGEM5.js} +1 -1
  114. package/dist/chunks/{chunk-WHEA5VLX.js → chunk-H43XHICL.js} +1 -1
  115. package/dist/chunks/{chunk-U43WXZBP.js → chunk-HAAKXJ4V.js} +1 -1
  116. package/dist/chunks/chunk-HAM7ZPEC.js +7 -0
  117. package/dist/chunks/{chunk-ZHGKJCQ2.js → chunk-HDKEES7E.js} +5 -5
  118. package/dist/chunks/{chunk-BTI5TG6Q.js → chunk-HGXM4UBQ.js} +1 -1
  119. package/dist/chunks/chunk-HIEFNLLO.js +7 -0
  120. package/dist/chunks/{chunk-2KXLL3DX.js → chunk-HSQPQ5RV.js} +1 -1
  121. package/dist/chunks/{chunk-DDZEKNQR.js → chunk-HT3CQEAF.js} +1 -1
  122. package/dist/chunks/{chunk-7JU5RJ3H.js → chunk-HT5EXCYX.js} +1 -1
  123. package/dist/chunks/{chunk-Z3YQZSU4.js → chunk-HXIOR7P6.js} +1 -1
  124. package/dist/chunks/{chunk-6NC2JFUQ.js → chunk-I254SHTL.js} +1 -1
  125. package/dist/chunks/{chunk-OPORM35X.js → chunk-IFMPBA4K.js} +1 -1
  126. package/dist/chunks/{chunk-EHAS6SQB.js → chunk-IKOVY76G.js} +1 -1
  127. package/dist/chunks/{chunk-BUBVZ6SQ.js → chunk-ILNTOWHG.js} +1 -1
  128. package/dist/chunks/chunk-ILUU3SGP.js +13 -0
  129. package/dist/chunks/{chunk-MCRKBVZA.js → chunk-IMLHRJ4K.js} +1 -1
  130. package/dist/chunks/{chunk-DTCQWGHE.js → chunk-IMZD7QEB.js} +2 -2
  131. package/dist/chunks/chunk-IVJEYHF5.js +8 -0
  132. package/dist/chunks/{chunk-Q6YPC3GK.js → chunk-IZOKMWU5.js} +1 -1
  133. package/dist/chunks/{chunk-BPUANOGW.js → chunk-IZV6K7RR.js} +1 -1
  134. package/dist/chunks/chunk-J5MGMWRV.js +9 -0
  135. package/dist/chunks/{chunk-BOJDM3O7.js → chunk-JCDPMWKO.js} +1 -1
  136. package/dist/chunks/{chunk-Y3V4JYK6.js → chunk-JGEJY7AC.js} +1 -1
  137. package/dist/chunks/chunk-JJTAADC5.js +7 -0
  138. package/dist/chunks/{chunk-OZKP3WKT.js → chunk-JK3NTR7T.js} +1 -1
  139. package/dist/chunks/{chunk-76NL3ZRJ.js → chunk-JM7KUCBM.js} +1 -1
  140. package/dist/chunks/chunk-JPJ6HGAN.js +7 -0
  141. package/dist/chunks/{chunk-O3YZLVC6.js → chunk-JRUL67UC.js} +3 -3
  142. package/dist/chunks/{chunk-J5SINMVO.js → chunk-K4J43D5J.js} +1 -1
  143. package/dist/chunks/{chunk-LUX4PBJL.js → chunk-K5GE24PG.js} +1 -1
  144. package/dist/chunks/{chunk-25565AGS.js → chunk-K7YK4PZP.js} +1 -1
  145. package/dist/chunks/{chunk-CTBSRTJW.js → chunk-KDCLHZYL.js} +1 -1
  146. package/dist/chunks/{chunk-GXWBL6YV.js → chunk-KDIICSD5.js} +1 -1
  147. package/dist/chunks/{chunk-FBYA6LLM.js → chunk-KHJWQ4WP.js} +1 -1
  148. package/dist/chunks/{chunk-2FUGD6J7.js → chunk-KNKGJD5J.js} +1 -1
  149. package/dist/chunks/{chunk-BRQUZ5NC.js → chunk-L4CSJDG7.js} +1 -1
  150. package/dist/chunks/{chunk-ISWW3DKF.js → chunk-L6MWUMWZ.js} +1 -1
  151. package/dist/chunks/{chunk-A6CMQOL7.js → chunk-LBJ7EOZM.js} +1 -1
  152. package/dist/chunks/{chunk-22ZRVWYP.js → chunk-LHK6B4ER.js} +2 -2
  153. package/dist/chunks/{chunk-ZBZQEDZY.js → chunk-LKFQMY5V.js} +1 -1
  154. package/dist/chunks/{chunk-KKYNEEM7.js → chunk-LKXPJLOP.js} +1 -1
  155. package/dist/chunks/{chunk-Q7D7RGXM.js → chunk-LLHXL3SV.js} +1 -1
  156. package/dist/chunks/{chunk-BS32OUOC.js → chunk-LPYHYTYI.js} +1 -1
  157. package/dist/chunks/{chunk-6WBEU34Y.js → chunk-LVPY2RTU.js} +1 -1
  158. package/dist/chunks/{chunk-A2RZZQEP.js → chunk-LY3EY2VG.js} +1 -1
  159. package/dist/chunks/chunk-M2XLLWK7.js +7 -0
  160. package/dist/chunks/chunk-M3LYYAQ6.js +7 -0
  161. package/dist/chunks/{chunk-7WDSOKOY.js → chunk-MAAJGMXM.js} +1 -1
  162. package/dist/chunks/{chunk-DWZBL4NK.js → chunk-MAIZY5BV.js} +1 -1
  163. package/dist/chunks/{chunk-5U2YLD56.js → chunk-MEF5BUJ5.js} +1 -1
  164. package/dist/chunks/{chunk-YHPPP3SF.js → chunk-MF43WTDT.js} +1 -1
  165. package/dist/chunks/{chunk-YFOBGEOW.js → chunk-MJKDKZ2J.js} +1 -1
  166. package/dist/chunks/{chunk-6Z5REGCM.js → chunk-MMMX3KE2.js} +1 -1
  167. package/dist/chunks/{chunk-ISSNEDG5.js → chunk-MN2F4NPH.js} +1 -1
  168. package/dist/chunks/{chunk-QFE3RPMA.js → chunk-MTPHHAPR.js} +1 -1
  169. package/dist/chunks/{slugify-NMMUASYK.js → chunk-N3COHC7T.js} +1 -1
  170. package/dist/chunks/{chunk-5WYJSLCF.js → chunk-N4FZIVIS.js} +1 -1
  171. package/dist/chunks/{chunk-27FVSW45.js → chunk-N7IBUNFY.js} +1 -1
  172. package/dist/chunks/{chunk-BZENIQ7N.js → chunk-NBPLUP7C.js} +1 -1
  173. package/dist/chunks/chunk-NE5RTEMC.js +7 -0
  174. package/dist/chunks/{chunk-DXFP22OK.js → chunk-NFBFXM6X.js} +1 -1
  175. package/dist/chunks/chunk-NXUDP37D.js +7 -0
  176. package/dist/chunks/{chunk-FB37TFVF.js → chunk-O256QMQM.js} +1 -1
  177. package/dist/chunks/{chunk-D6O5O3CW.js → chunk-OICSITNU.js} +1 -1
  178. package/dist/chunks/{chunk-PFD7LETF.js → chunk-OM6NML7C.js} +1 -1
  179. package/dist/chunks/chunk-OTIERMC7.js +7 -0
  180. package/dist/chunks/chunk-OVVHONX7.js +8 -0
  181. package/dist/chunks/{chunk-T44RB754.js → chunk-OXQKWOLS.js} +1 -1
  182. package/dist/chunks/chunk-P7GA2C6N.js +7 -0
  183. package/dist/chunks/{chunk-XE4SLG5H.js → chunk-PG5BHJVH.js} +1 -1
  184. package/dist/chunks/{chunk-AW33SRYY.js → chunk-PH2MLBQO.js} +1 -1
  185. package/dist/chunks/{chunk-DNONVY2L.js → chunk-PIGJVJNM.js} +2 -2
  186. package/dist/chunks/chunk-PP7BNCIG.js +7 -0
  187. package/dist/chunks/{chunk-BKFRN6C2.js → chunk-PR4NNS3O.js} +1 -1
  188. package/dist/chunks/chunk-PSMKLDLV.js +18 -0
  189. package/dist/chunks/chunk-PW67ZNDU.js +8 -0
  190. package/dist/chunks/{chunk-O3GQG2ML.js → chunk-Q3R4HAAA.js} +2 -2
  191. package/dist/chunks/chunk-Q4W3R6U2.js +12 -0
  192. package/dist/chunks/{chunk-A4LOQ3UK.js → chunk-QAVUE3TR.js} +1 -1
  193. package/dist/chunks/{chunk-U5SZQUYO.js → chunk-QCYCLWNG.js} +1 -1
  194. package/dist/chunks/{chunk-MGKNSTU4.js → chunk-QMI7GTT2.js} +1 -1
  195. package/dist/chunks/{chunk-S3L2OHPO.js → chunk-QNMWYJQW.js} +1 -1
  196. package/dist/chunks/{chunk-MMMJO2M3.js → chunk-QOIG2FJP.js} +1 -1
  197. package/dist/chunks/{chunk-BYBELFCP.js → chunk-QPNYOR6O.js} +1 -1
  198. package/dist/chunks/{chunk-6KNWKZR4.js → chunk-QPPFQREO.js} +1 -1
  199. package/dist/chunks/{chunk-EYRBV6RM.js → chunk-QROPMCL2.js} +2 -2
  200. package/dist/chunks/{chunk-MTZYPCZ7.js → chunk-QRPBDCDH.js} +1 -1
  201. package/dist/chunks/{chunk-R43H4T4L.js → chunk-QYAXCGZA.js} +1 -1
  202. package/dist/chunks/{chunk-7OZ7OKPS.js → chunk-R3ZPLQDI.js} +1 -1
  203. package/dist/chunks/{chunk-6TEYSBCT.js → chunk-R5KBPWWS.js} +1 -1
  204. package/dist/chunks/{chunk-X6JQI64G.js → chunk-RACUGILV.js} +1 -1
  205. package/dist/chunks/{chunk-GD7AV7BO.js → chunk-RFD7CEL6.js} +1 -1
  206. package/dist/chunks/{chunk-RYSO5U3E.js → chunk-RIXTYUYN.js} +1 -1
  207. package/dist/chunks/{chunk-XHBZITV4.js → chunk-RJB5Y7M4.js} +1 -1
  208. package/dist/chunks/{chunk-7HQZRU25.js → chunk-RRX2AMWY.js} +1 -1
  209. package/dist/chunks/chunk-S4ARHJGW.js +9 -0
  210. package/dist/chunks/chunk-S7FMMAST.js +7 -0
  211. package/dist/chunks/chunk-SIWT2MBT.js +8 -0
  212. package/dist/chunks/{chunk-AZVSMIPP.js → chunk-STDRVWDW.js} +1 -1
  213. package/dist/chunks/{chunk-M2Q2DUHO.js → chunk-SUD5V67L.js} +1 -1
  214. package/dist/chunks/{chunk-7EJQLVWX.js → chunk-SUT2PTL3.js} +1 -1
  215. package/dist/chunks/{chunk-Q4R34AVE.js → chunk-SWABNAKZ.js} +1 -1
  216. package/dist/chunks/chunk-SX2JJDHM.js +17 -0
  217. package/dist/chunks/{chunk-JDDPCL3K.js → chunk-T2IZUTGY.js} +1 -1
  218. package/dist/chunks/{chunk-3RFQ2NXZ.js → chunk-T4257EDB.js} +1 -1
  219. package/dist/chunks/chunk-TASNZYJU.js +14 -0
  220. package/dist/chunks/chunk-TIU3WJH7.js +8 -0
  221. package/dist/chunks/{chunk-KIDGOY4F.js → chunk-TL4AEZXF.js} +1 -1
  222. package/dist/chunks/chunk-TTM4VQ4T.js +7 -0
  223. package/dist/chunks/chunk-TUPVVZ4I.js +7 -0
  224. package/dist/chunks/{chunk-MDXG7T7M.js → chunk-U3IPJYB6.js} +1 -1
  225. package/dist/chunks/{chunk-AMZ7AUYX.js → chunk-UFE4RBZV.js} +1 -1
  226. package/dist/chunks/chunk-UGJRAFRA.js +8 -0
  227. package/dist/chunks/{chunk-3AFEVHHY.js → chunk-UGVOMXYR.js} +1 -1
  228. package/dist/chunks/{chunk-NB2WLB3J.js → chunk-UJ7YUIEJ.js} +1 -1
  229. package/dist/chunks/chunk-UK3VTHT5.js +7 -0
  230. package/dist/chunks/{chunk-S6TAO4MD.js → chunk-V2J5U5KQ.js} +1 -1
  231. package/dist/chunks/{chunk-J3U2QD2L.js → chunk-V7VHLSYL.js} +1 -1
  232. package/dist/chunks/chunk-VB6SQWSB.js +9 -0
  233. package/dist/chunks/{chunk-DOOBZO4W.js → chunk-VJM3WCEC.js} +1 -1
  234. package/dist/chunks/{chunk-BYYNR34Q.js → chunk-VNS4Z72T.js} +1 -1
  235. package/dist/chunks/{chunk-CTMTO2W4.js → chunk-VQAIH2X5.js} +1 -1
  236. package/dist/chunks/{chunk-ATSAMHUZ.js → chunk-VTAH7VMY.js} +1 -1
  237. package/dist/chunks/chunk-W2YAOE3Z.js +7 -0
  238. package/dist/chunks/{chunk-3SF3ILIT.js → chunk-WA4CPW3H.js} +1 -1
  239. package/dist/chunks/chunk-WKEDN5SX.js +9 -0
  240. package/dist/chunks/{chunk-JALVF3C2.js → chunk-WMIZ6Y4E.js} +1 -1
  241. package/dist/chunks/{chunk-Z436ZYLV.js → chunk-WQBNOQUT.js} +1 -1
  242. package/dist/chunks/{chunk-YOKTRWQX.js → chunk-WRTBYD4I.js} +1 -1
  243. package/dist/chunks/{chunk-7RABG6HV.js → chunk-WS6UOPMS.js} +1 -1
  244. package/dist/chunks/{chunk-TLKBGAOL.js → chunk-WWEUGL6W.js} +1 -1
  245. package/dist/chunks/chunk-X2UJGCIC.js +9 -0
  246. package/dist/chunks/{chunk-JUAHDOL6.js → chunk-X5YKQ2RJ.js} +1 -1
  247. package/dist/chunks/{chunk-D5JQZXL7.js → chunk-XHWA436J.js} +1 -1
  248. package/dist/chunks/chunk-XHXWUAJE.js +32 -0
  249. package/dist/chunks/{chunk-U4Z2MMOF.js → chunk-XKVKG7CW.js} +1 -1
  250. package/dist/chunks/{chunk-HYAIA5YC.js → chunk-XL6PE4AA.js} +2 -2
  251. package/dist/chunks/{chunk-E3WP42P2.js → chunk-XPEWDJV6.js} +1 -1
  252. package/dist/chunks/{chunk-TGIIE2L3.js → chunk-XPWLEGWA.js} +1 -1
  253. package/dist/chunks/{chunk-7SLMNM55.js → chunk-XY2GGCHC.js} +1 -1
  254. package/dist/chunks/{chunk-G24EKATW.js → chunk-XZYVBYUY.js} +1 -1
  255. package/dist/chunks/chunk-Y2KAVMM4.js +10 -0
  256. package/dist/chunks/{chunk-46ISU3XI.js → chunk-Y3ETQZSK.js} +2 -2
  257. package/dist/chunks/{chunk-GRRVPFSB.js → chunk-Y45NZT7C.js} +1 -1
  258. package/dist/chunks/{chunk-5RMIM4S2.js → chunk-Y7SZI3JV.js} +1 -1
  259. package/dist/chunks/{chunk-ZRFDZO7Y.js → chunk-YATYCZQJ.js} +1 -1
  260. package/dist/chunks/chunk-YBWLW6SW.js +7 -0
  261. package/dist/chunks/{chunk-B7IUFV5P.js → chunk-YDCILYRC.js} +1 -1
  262. package/dist/chunks/{chunk-67GZ5REA.js → chunk-YHZXIBS7.js} +1 -1
  263. package/dist/chunks/{chunk-H24KFNPB.js → chunk-YIKXLWSR.js} +1 -1
  264. package/dist/chunks/{chunk-5CVEW3HD.js → chunk-YLQCB6XY.js} +1 -1
  265. package/dist/chunks/{chunk-WAOS5OCB.js → chunk-YU33PPKX.js} +1 -1
  266. package/dist/chunks/{chunk-V3YNYCRV.js → chunk-YVWIDLY4.js} +6 -6
  267. package/dist/chunks/{chunk-CEA5NDJC.js → chunk-Z2NPMUPM.js} +1 -1
  268. package/dist/chunks/{chunk-N3ZNAMGR.js → chunk-Z62G57GC.js} +1 -1
  269. package/dist/chunks/{chunk-D6NVKMRP.js → chunk-ZG7A4P5U.js} +1 -1
  270. package/dist/chunks/{chunk-NZ2TFADV.js → chunk-ZOJI7HYA.js} +1 -1
  271. package/dist/chunks/{chunk-TSIKSHYG.js → chunk-ZSJU5MJP.js} +1 -1
  272. package/dist/chunks/{chunk-47E5IB3C.js → chunk-ZWPASRC2.js} +1 -1
  273. package/dist/chunks/{clear-GL4SZ2XR.js → clear-4MDTHLLE.js} +1 -1
  274. package/dist/chunks/{cli-embedded-NR5F35LW.js → cli-embedded-OYBJM5SA.js} +2 -2
  275. package/dist/chunks/cli-truncate-CylqKOGj-WE5OLB6Q.js +7 -0
  276. package/dist/chunks/commands-Bx-lrmie-W7FCFL4P.js +10 -0
  277. package/dist/chunks/compile-vercel-config-A2DMFB2R.js +7 -0
  278. package/dist/chunks/{config-KSQQQMQQ.js → config-4R62ATWJ.js} +1 -1
  279. package/dist/chunks/{config-U4GLPYDY.js → config-A7DCP25J.js} +1 -1
  280. package/dist/chunks/config-HiWLfXRQ-D7JA4E3D.js +43 -0
  281. package/dist/chunks/connect-U3yG4EtI-XYHDJQT7.js +7 -0
  282. package/dist/chunks/connect-git-provider-MPYSAOTH.js +7 -0
  283. package/dist/chunks/cp-aFe-HVrK-UAGAR2BC.js +12 -0
  284. package/dist/chunks/create-ilHWvzSk-7KWZXBE2.js +7 -0
  285. package/dist/chunks/create-project-OA7KBPVU.js +7 -0
  286. package/dist/chunks/{delete-O2VWRQC3.js → delete-DN53BRH7.js} +1 -1
  287. package/dist/chunks/{delete-D2WLQHVB.js → delete-G4MAUBXZ.js} +1 -1
  288. package/dist/chunks/{describe-N36SISDN.js → describe-Q5D5GYVG.js} +1 -1
  289. package/dist/chunks/detect-projects-DHS2E3N4.js +7 -0
  290. package/dist/chunks/detect-services-VBKVN4A2.js +7 -0
  291. package/dist/chunks/{disable-EHRVY24G.js → disable-CG3R2VAL.js} +1 -1
  292. package/dist/chunks/{discard-QW5TMTXX.js → discard-REGFZXFU.js} +1 -1
  293. package/dist/chunks/dist-4F3LAB5Z.js +7 -0
  294. package/dist/chunks/{dist-RXYNZPEA.js → dist-S7GEJ656.js} +1 -1
  295. package/dist/chunks/{dist-33WTJLVQ.js → dist-T2AURD3P.js} +1 -1
  296. package/dist/chunks/domain-DGvr_U55-PNXSOVDO.js +8 -0
  297. package/dist/chunks/drives-Bi-Mnt2z-Z4T2YY4P.js +14 -0
  298. package/dist/chunks/{edit-IZR537PS.js → edit-7AUE6GXE.js} +1 -1
  299. package/dist/chunks/{edit-WM6KJPSI.js → edit-HHLQDVOP.js} +1 -1
  300. package/dist/chunks/{enable-5Z72O3NI.js → enable-BV3N6GEL.js} +1 -1
  301. package/dist/chunks/{engine-C8wCzkw--PYVABGU4.js → engine-C8wCzkw--72P7UD6T.js} +1 -1
  302. package/dist/chunks/{esm-IYH32MTQ.js → esm-B3P7PUFJ.js} +1 -1
  303. package/dist/chunks/{esm-5GQXHN7C.js → esm-CMSQLK7G.js} +1 -1
  304. package/dist/chunks/{esm-LEQXRLFV.js → esm-KWMRMP74.js} +1 -1
  305. package/dist/chunks/{esm-NHCCFW7Z.js → esm-LRBNA4QO.js} +1 -1
  306. package/dist/chunks/{esm-FJCIOBBV.js → esm-NVIK2MSG.js} +1 -1
  307. package/dist/chunks/{esm-T655CG6O.js → esm-RAS56M3I.js} +1 -1
  308. package/dist/chunks/{esm-QQ3MUOW4.js → esm-WU2ZS2IW.js} +1 -1
  309. package/dist/chunks/exec-Bwv4MDyN-7YUAVBB2.js +7 -0
  310. package/dist/chunks/{exec-PCSP64LR.js → exec-NYLXYXB5.js} +3 -3
  311. package/dist/chunks/{export-IWVMWM2H.js → export-WUPMMHSX.js} +1 -1
  312. package/dist/chunks/extend-D9tq9Cot-QT72AXGH.js +8 -0
  313. package/dist/chunks/{fetch-proxy-MOKBS56A.js → fetch-proxy-ZIHXTNFP.js} +1 -1
  314. package/dist/chunks/fork-DQ6qfKqB-XXTHHUMZ.js +9 -0
  315. package/dist/chunks/future-DJOUGRV4.js +7 -0
  316. package/dist/chunks/generate-cert-for-deploy-PZHDFX3W.js +7 -0
  317. package/dist/chunks/groups-B8JVEeKk-K57VTXSS.js +10 -0
  318. package/dist/chunks/image-DX2IAUKJ.js +7 -0
  319. package/dist/chunks/import-builders-IUEC2WN2.js +7 -0
  320. package/dist/chunks/{inspect-QT3QEFBW.js → inspect-BS5UPI6W.js} +1 -1
  321. package/dist/chunks/{inspect-6J5DGZZ4.js → inspect-GJXLYJC7.js} +1 -1
  322. package/dist/chunks/{inspect-6Y672OQ3.js → inspect-IHVP2M4H.js} +1 -1
  323. package/dist/chunks/{inspect-47FM3OWG.js → inspect-PBSKPN4W.js} +1 -1
  324. package/dist/chunks/{inspect-SW2I7D6E.js → inspect-Y7VXJEI2.js} +1 -1
  325. package/dist/chunks/{inspect-ALC2J4BF.js → inspect-YGVXE4HR.js} +1 -1
  326. package/dist/chunks/{list-TGDHJKDT.js → list-27R4USBV.js} +1 -1
  327. package/dist/chunks/{list-BIFH4KO5.js → list-2ZCNO6DY.js} +1 -1
  328. package/dist/chunks/{list-CXXDI5UV.js → list-TUST62E6.js} +1 -1
  329. package/dist/chunks/{list-2CMCXXP4.js → list-ZSQVIQXC.js} +1 -1
  330. package/dist/chunks/list-iqQFvOHx-PNAUIUQL.js +7 -0
  331. package/dist/chunks/log-update-DsqoChS1-DG7F5XJ4.js +11 -0
  332. package/dist/chunks/{login-IUQDG334.js → login-CUEQHDT5.js} +1 -1
  333. package/dist/chunks/login-DGxA9ez--ZRIJ24TS.js +13 -0
  334. package/dist/chunks/login-YCOZROC2.js +7 -0
  335. package/dist/chunks/logout-OEbPJLu2-7NPM6ALK.js +8 -0
  336. package/dist/chunks/logs-W4GZLDHE.js +7 -0
  337. package/dist/chunks/ls-27K5BB7Z.js +11 -0
  338. package/dist/chunks/{ls-C75Z5FBX.js → ls-EEJQIKNI.js} +1 -1
  339. package/dist/chunks/ls-PAL6FQB6.js +8 -0
  340. package/dist/chunks/{ls-GC5MX2HZ.js → ls-TDYTE4HM.js} +1 -1
  341. package/dist/chunks/{ls-7D73WVOF.js → ls-UMSUUQCG.js} +1 -1
  342. package/dist/chunks/{ls-ERDQLUT2.js → ls-W7C5I555.js} +1 -1
  343. package/dist/chunks/{ls-4DNFF35I.js → ls-XYEJ5MR6.js} +1 -1
  344. package/dist/chunks/migrate-experimental-services-556MHJWK.js +7 -0
  345. package/dist/chunks/mutate-IELSY6ED.js +9 -0
  346. package/dist/chunks/{native-self-update-Q3EN6NZK.js → native-self-update-T75AUBHJ.js} +1 -1
  347. package/dist/chunks/{notifications-2HU4L7WA.js → notifications-GZH7CFZY.js} +1 -1
  348. package/dist/chunks/{open-MA7QGJKO.js → open-EVYPUPNZ.js} +1 -1
  349. package/dist/chunks/{openapi-POBVCXS3.js → openapi-S6F32ZQD.js} +1 -1
  350. package/dist/chunks/{permissions-AU5M5A6G.js → permissions-EHF5MNZP.js} +1 -1
  351. package/dist/chunks/{plugin-offer-E53UQXXX.js → plugin-offer-RZADKNYF.js} +1 -1
  352. package/dist/chunks/prompt-missing-credentials-OSAV5B7N.js +7 -0
  353. package/dist/chunks/{publish-G7NQESCE.js → publish-ZB2Q2YSB.js} +1 -1
  354. package/dist/chunks/pull-WUFIVXEG.js +7 -0
  355. package/dist/chunks/purchase-domain-if-available-YVVGT7MZ.js +7 -0
  356. package/dist/chunks/{push-BG7UEIKY.js → push-YWKZ6SOO.js} +1 -1
  357. package/dist/chunks/query-G62G25HV.js +7 -0
  358. package/dist/chunks/{raw-query-QHFSKN55.js → raw-query-WTKAOYCP.js} +1 -1
  359. package/dist/chunks/read-BTA5slYO-IJLWMNSS.js +8 -0
  360. package/dist/chunks/{reauthenticate-U2LOFDFP.js → reauthenticate-WQZ5HISG.js} +1 -1
  361. package/dist/chunks/remove-7PSNAEDY.js +9 -0
  362. package/dist/chunks/remove-CCa99nz9-LCSNBDLT.js +7 -0
  363. package/dist/chunks/{reorder-E5UYNMML.js → reorder-OLCKSATY.js} +1 -1
  364. package/dist/chunks/{reply-DSDFBUAX.js → reply-OVHQNEBO.js} +1 -1
  365. package/dist/chunks/{repo-info-to-url-XQSULSEO.js → repo-info-to-url-S2YOQIRM.js} +1 -1
  366. package/dist/chunks/{repo-root-DZ6WFHMP.js → repo-root-STNOAHCH.js} +1 -1
  367. package/dist/chunks/{resolve-VK5QTUII.js → resolve-TUHO4FHT.js} +1 -1
  368. package/dist/chunks/{resolve-agent-team-D7RFR6WL.js → resolve-agent-team-NQCRA6ER.js} +1 -1
  369. package/dist/chunks/{resolve-deployment-framework-preset-BLMQLCIN.js → resolve-deployment-framework-preset-SCQCWANF.js} +1 -1
  370. package/dist/chunks/{restore-IVNZOVU3.js → restore-5RLBSVYQ.js} +1 -1
  371. package/dist/chunks/{rm-PAI3WZXJ.js → rm-5RGN33Y5.js} +1 -1
  372. package/dist/chunks/rm-D7CWGBTV.js +8 -0
  373. package/dist/chunks/{rm-L2KCHMLS.js → rm-FYU3GBLC.js} +1 -1
  374. package/dist/chunks/rm-HA752TW6.js +8 -0
  375. package/dist/chunks/{rm-LWEITUDD.js → rm-P6AGSBXP.js} +1 -1
  376. package/dist/chunks/routes-7VLRHXT4.js +7 -0
  377. package/dist/chunks/rule-inspect-Y2MX7LQN.js +8 -0
  378. package/dist/chunks/run-D8obqfKw-D2EGHTU2.js +7 -0
  379. package/dist/chunks/{schema-ZOPJJLJC.js → schema-AJAHECZG.js} +1 -1
  380. package/dist/chunks/{schema-ZIK2W4AX.js → schema-UVTYLX6L.js} +2 -2
  381. package/dist/chunks/select-org-JBKKKZSN.js +7 -0
  382. package/dist/chunks/{serving-C1mhZQqH-73TMEGEB.js → serving-C1mhZQqH-XEQUVQZK.js} +1 -1
  383. package/dist/chunks/sessions-cvWvPgzc-FBOQQPU5.js +7 -0
  384. package/dist/chunks/{set-MC2CLSA2.js → set-774P7GEL.js} +1 -1
  385. package/dist/chunks/{set-B5MPNYXG.js → set-OWNTI5SM.js} +1 -1
  386. package/dist/chunks/setup-and-link-3LD4LQGE.js +7 -0
  387. package/dist/chunks/sh-7olsIyJh-NFO2QYTK.js +7 -0
  388. package/dist/chunks/{skills-X5MN3OH2.js → skills-W45E2EWS.js} +1 -1
  389. package/dist/chunks/slugify-OEOEYGDL.js +7 -0
  390. package/dist/chunks/snapshot-D9MAspub-UAVA2YSK.js +9 -0
  391. package/dist/chunks/snapshots-DQjvm6St-DBG4H2HS.js +9 -0
  392. package/dist/chunks/stamp-THWCZ5IQ.js +7 -0
  393. package/dist/chunks/{statuspage-K5SC7KAQ.js → statuspage-NCYXH7DR.js} +1 -1
  394. package/dist/chunks/stop-SQX-uC-Q-CRDQOA5M.js +10 -0
  395. package/dist/chunks/table-3DCL552W.js +7 -0
  396. package/dist/chunks/{tags-WRVKKRN7.js → tags-DEIOW5MM.js} +1 -1
  397. package/dist/chunks/telemetry-KLbte3YE-OAFHJTWE.js +13 -0
  398. package/dist/chunks/token-DGNBXqnR-37H4S563.js +7 -0
  399. package/dist/chunks/token-EYEJQ7AP.js +7 -0
  400. package/dist/chunks/token-LNLX4V5J.js +7 -0
  401. package/dist/chunks/token-MZBD3R2S.js +7 -0
  402. package/dist/chunks/token-util-4P4GUSTT.js +7 -0
  403. package/dist/chunks/token-util-DAhLJ1X4-NJBLJROT.js +7 -0
  404. package/dist/chunks/token-util-XC5K3DNT.js +7 -0
  405. package/dist/chunks/token-util-XO4H5VLL.js +7 -0
  406. package/dist/chunks/{types-PC3JIYPX.js → types-SYUZH46V.js} +1 -1
  407. package/dist/chunks/update-VG2LHBRV.js +8 -0
  408. package/dist/chunks/{update-route-version-KWK5S4UW.js → update-route-version-MKFTZPKQ.js} +1 -1
  409. package/dist/chunks/usage-NF6S3DAZ.js +17 -0
  410. package/dist/chunks/users-CGEsQ4G8-POYTVZJV.js +9 -0
  411. package/dist/chunks/{utils-IQZEE4DT.js → utils-XXR7KIRB.js} +1 -1
  412. package/dist/chunks/validate-config-MJQI5EMD.js +7 -0
  413. package/dist/chunks/{vercel-cli-3UQLDU2S.js → vercel-cli-RW4WHHOS.js} +1 -1
  414. package/dist/chunks/{vlt-builder-graph-XL2XRO4V.js → vlt-builder-graph-EU5EX7KY.js} +1 -1
  415. package/dist/chunks/{vlt-builder-importer-RBUPAB6J.js → vlt-builder-importer-2YSRGPFC.js} +1 -1
  416. package/dist/chunks/wrap-ansi-CaN_P_HT-MAPHF26X.js +7 -0
  417. package/dist/chunks/write-DixEhGqz-YYDLLSJE.js +10 -0
  418. package/dist/chunks/{zod-Y3ZBY67C.js → zod-H7KW2D5Z.js} +1 -1
  419. package/dist/commands/build/index.js +1 -1
  420. package/dist/commands/deploy/index.js +11 -11
  421. package/dist/commands/dev/index.js +5 -9
  422. package/dist/commands/env/index.js +1 -1
  423. package/dist/commands/link/index.js +1 -1
  424. package/dist/commands/list/index.js +1 -1
  425. package/dist/commands/project/index.js +102 -80
  426. package/dist/commands/tunnel/index.js +1 -1
  427. package/dist/commands-account.js +101 -67
  428. package/dist/commands-ai.js +15 -15
  429. package/dist/commands-blob.js +3 -3
  430. package/dist/commands-core.js +9 -9
  431. package/dist/commands-deployments.js +1 -1
  432. package/dist/commands-flags.js +7 -7
  433. package/dist/commands-integrations.js +11 -11
  434. package/dist/commands-observability.js +2 -2
  435. package/dist/commands-routing.js +9 -9
  436. package/dist/help.js +1 -1
  437. package/dist/index.js +10 -8
  438. package/dist/internal-build-worker.js +1 -1
  439. package/dist/internal-build.js +2 -2
  440. package/dist/package.json +9 -9
  441. package/dist/root-help-commands.mjs +1 -1
  442. package/dist/version.mjs +1 -1
  443. package/package.json +16 -16
  444. package/dist/chunks/add-RH3RQPGP.js +0 -8
  445. package/dist/chunks/chunk-37P7O3AQ.js +0 -9
  446. package/dist/chunks/chunk-3ARTWVQV.js +0 -11
  447. package/dist/chunks/chunk-4F73GVJZ.js +0 -7
  448. package/dist/chunks/chunk-6FEMU5YF.js +0 -7
  449. package/dist/chunks/chunk-6UJIJLQC.js +0 -13
  450. package/dist/chunks/chunk-CDJ25IKC.js +0 -7
  451. package/dist/chunks/chunk-EMTZZXMH.js +0 -13
  452. package/dist/chunks/chunk-HR4ID3MU.js +0 -7
  453. package/dist/chunks/chunk-INIZJZ3O.js +0 -7
  454. package/dist/chunks/chunk-JCHZRW4N.js +0 -7
  455. package/dist/chunks/chunk-MDRI27KN.js +0 -9
  456. package/dist/chunks/chunk-OAM5NJCU.js +0 -9
  457. package/dist/chunks/chunk-PX3V7X3Q.js +0 -12
  458. package/dist/chunks/chunk-RHFNVIFD.js +0 -7
  459. package/dist/chunks/chunk-T4DOV5S4.js +0 -7
  460. package/dist/chunks/chunk-XKPB27SC.js +0 -8
  461. package/dist/chunks/chunk-Z3XKNZDP.js +0 -9
  462. package/dist/chunks/compile-vercel-config-HMKEDWC4.js +0 -7
  463. package/dist/chunks/connect-git-provider-WGKVFXW2.js +0 -7
  464. package/dist/chunks/create-project-BTOHPKZB.js +0 -7
  465. package/dist/chunks/detect-projects-I7NEHWSM.js +0 -7
  466. package/dist/chunks/detect-services-4ONC2DH3.js +0 -7
  467. package/dist/chunks/future-3AUPMPY7.js +0 -7
  468. package/dist/chunks/generate-cert-for-deploy-OZWVIWOO.js +0 -7
  469. package/dist/chunks/image-EFBQXTAP.js +0 -7
  470. package/dist/chunks/import-builders-2G4KVI4T.js +0 -7
  471. package/dist/chunks/login-WYDX5KZN.js +0 -7
  472. package/dist/chunks/logs-E3RZLAT2.js +0 -7
  473. package/dist/chunks/ls-IQUZ6GWG.js +0 -11
  474. package/dist/chunks/ls-YTKJRKD3.js +0 -8
  475. package/dist/chunks/migrate-experimental-services-GPGYPN66.js +0 -7
  476. package/dist/chunks/mutate-YJNE2733.js +0 -9
  477. package/dist/chunks/prompt-missing-credentials-7F7MUAWK.js +0 -7
  478. package/dist/chunks/pull-4LISUHDN.js +0 -7
  479. package/dist/chunks/purchase-domain-if-available-QH2OHRLZ.js +0 -7
  480. package/dist/chunks/query-QCIU5IB4.js +0 -7
  481. package/dist/chunks/remove-IB7C6LII.js +0 -9
  482. package/dist/chunks/rm-GYS4DS2Z.js +0 -8
  483. package/dist/chunks/rm-PDJE63VV.js +0 -8
  484. package/dist/chunks/routes-SBMN6SDF.js +0 -7
  485. package/dist/chunks/rule-inspect-LQISNCBT.js +0 -8
  486. package/dist/chunks/select-org-EKDOS2CQ.js +0 -7
  487. package/dist/chunks/setup-and-link-FHHZAU65.js +0 -7
  488. package/dist/chunks/stamp-TKONNIJ5.js +0 -7
  489. package/dist/chunks/table-SCLK33K7.js +0 -7
  490. package/dist/chunks/token-MYYNOUIT.js +0 -7
  491. package/dist/chunks/token-util-OJHS52JP.js +0 -7
  492. package/dist/chunks/update-QDIZFM4T.js +0 -8
  493. package/dist/chunks/usage-JUP36KHN.js +0 -15
  494. package/dist/chunks/validate-config-K42CVRCZ.js +0 -7
@@ -4,9 +4,9 @@ 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{getBuildMachineResourceConfig}from"../../chunks/chunk-ZF27J6FQ.js";import{aliasLonePageInOutput,getSingleFileNameError,isIgnoredFile,isStaticFolderDeploy,resolveSingleFileProject,singleFileConfig,singleFileMeta,singleFileProjectSettings,singleFileTargetArgs,stageSingleFile}from"../../chunks/chunk-47E5IB3C.js";import{FIRST_DEPLOYMENT_PRODUCTION_NOTICE,hasEarlierDeployment,isNonProductionTarget,refuseFirstDeployment}from"../../chunks/chunk-R43H4T4L.js";import"../../chunks/chunk-COD3WAUI.js";import{pickOverrides}from"../../chunks/chunk-D6NVKMRP.js";import{resolvesInside,validatePaths,validateRootDirectory,validateUploadRoot}from"../../chunks/chunk-76NL3ZRJ.js";import{BLOCKED_DEPLOYMENT_REASON,DeployTelemetryClient,Now,PREBUILT_REFERENCE_SKIPPED,UploadErrorMissingArchive,formatVerificationFailure,getBlockedDeploymentDetails,getBlockedDeploymentMessage,getBlockedDeploymentNext,getDeploymentEnvironment,getDeploymentEnvironmentLabel,isBlockedDeployment,printBlockedDeployment,printDeploymentStatus,printPrebuiltFilePathMapIgnoreWarning,reportSkippedPrebuiltReferences,verifyDeployment}from"../../chunks/chunk-O3YZLVC6.js";import"../../chunks/chunk-ZFRNVIHI.js";import"../../chunks/chunk-Z3XKNZDP.js";import{PROJECT_EXPIRATION_TIMEFRAMES}from"../../chunks/chunk-LDDXXDN5.js";import"../../chunks/chunk-5RMIM4S2.js";import"../../chunks/chunk-7WDSOKOY.js";import{parseMeta}from"../../chunks/chunk-CZSOZKHX.js";import{compileVercelConfig,findSourceVercelConfigFile}from"../../chunks/chunk-XC25DYA7.js";import"../../chunks/chunk-H24KFNPB.js";import"../../chunks/chunk-U56NHYAH.js";import{getEnabledProtection,getProtectionForDeployment}from"../../chunks/chunk-BYYNR34Q.js";import{getProductionUrl}from"../../chunks/chunk-VT6RIZJH.js";import"../../chunks/chunk-KG526MHL.js";import{formatDate}from"../../chunks/chunk-HRR57QNP.js";import{stamp_default}from"../../chunks/chunk-A2RZZQEP.js";import"../../chunks/chunk-Q7D7RGXM.js";import{parseEnv}from"../../chunks/chunk-KR4DMT3I.js";import{applyDeprecatedTargetFlag,parseTarget}from"../../chunks/chunk-IVZNPSHU.js";import{isGuidanceEnabled}from"../../chunks/chunk-TAAWMNNL.js";import{ensureLink}from"../../chunks/chunk-DTCQWGHE.js";import"../../chunks/chunk-PX3V7X3Q.js";import{getDeployment}from"../../chunks/chunk-6Z5REGCM.js";import{mapCertError}from"../../chunks/chunk-TLKBGAOL.js";import"../../chunks/chunk-PFD7LETF.js";import{trackCreatedId}from"../../chunks/chunk-BUBVZ6SQ.js";import"../../chunks/chunk-IQ7FPAI4.js";import{getRenamedOption,reportRenamedOptionError}from"../../chunks/chunk-6TEYSBCT.js";import{getSubcommand}from"../../chunks/chunk-ETV3C2CV.js";import{param}from"../../chunks/chunk-3G3FQYMW.js";import{getCommandAliases}from"../../chunks/chunk-6UJIJLQC.js";import"../../chunks/chunk-KLBSCTLL.js";import"../../chunks/chunk-D5JQZXL7.js";import"../../chunks/chunk-SGNDE4YS.js";import"../../chunks/chunk-T44RB754.js";import{continueSubcommand,deployCommand,deprecatedArchiveSplitTgz,describeSubcommand,initSubcommand}from"../../chunks/chunk-Z3YQZSU4.js";import"../../chunks/chunk-4F73GVJZ.js";import"../../chunks/chunk-L74PQVPL.js";import"../../chunks/chunk-CDJ25IKC.js";import"../../chunks/chunk-RPYIWRSN.js";import"../../chunks/chunk-YN3HZJXW.js";import"../../chunks/chunk-JDDPCL3K.js";import"../../chunks/chunk-23FY4PR3.js";import"../../chunks/chunk-6FEMU5YF.js";import"../../chunks/chunk-F7L5SXJM.js";import"../../chunks/chunk-E7IN2DGU.js";import"../../chunks/chunk-7JU5RJ3H.js";import"../../chunks/chunk-X6JQI64G.js";import"../../chunks/chunk-7OZ7OKPS.js";import"../../chunks/chunk-6KNWKZR4.js";import"../../chunks/chunk-MDRI27KN.js";import"../../chunks/chunk-G24EKATW.js";import"../../chunks/chunk-E5A7E7X6.js";import"../../chunks/chunk-JALVF3C2.js";import"../../chunks/chunk-BYBELFCP.js";import"../../chunks/chunk-Y3V4JYK6.js";import"../../chunks/chunk-A6CMQOL7.js";import"../../chunks/chunk-4SWS7RKX.js";import{require_ci_info}from"../../chunks/chunk-EYRBV6RM.js";import{VERCEL_DIR,VERCEL_DIR_PROJECT,addToGitIgnore,createGitMeta,getGitConfigPath,getGitExecutable,getLinkFromDir,getRepoLink,getVercelDirectory,highlight,isOwnerLookupUnavailableLink,isProjectReadLink,isRemoteLookupSkippedLink,linkFolderToProject,localConfigFlagPath,parseGitConfig,pluckRemoteUrls,readLocalConfig,require_dist2,require_lib}from"../../chunks/chunk-ZHGKJCQ2.js";import{printAlignedLabel}from"../../chunks/chunk-M2Q2DUHO.js";import"../../chunks/chunk-4HR3I3ML.js";import{getProjectByNameOrId}from"../../chunks/chunk-3AFEVHHY.js";import"../../chunks/chunk-LUX4PBJL.js";import"../../chunks/chunk-MTZYPCZ7.js";import"../../chunks/chunk-OPORM35X.js";import"../../chunks/chunk-D6REP5QQ.js";import"../../chunks/chunk-FBYA6LLM.js";import{getFetchDispatcher}from"../../chunks/chunk-MY4MONOH.js";import"../../chunks/chunk-ZRFDZO7Y.js";import{require_ms}from"../../chunks/chunk-MXTC4ZAQ.js";import{printError}from"../../chunks/chunk-UPDIZCP3.js";import{parseArguments}from"../../chunks/chunk-INIZJZ3O.js";import{AGENT_REASON,AGENT_STATUS,argvHasNonInteractive,buildCommandWithYes,outputActionRequired,outputAgentError,withGlobalFlags,writeAgentError}from"../../chunks/chunk-3ARTWVQV.js";import{validateJsonOutput,warnDeprecatedInput}from"../../chunks/chunk-KA2KG3SY.js";import{require_types}from"../../chunks/chunk-AW33SRYY.js";import"../../chunks/chunk-4SAVH3H7.js";import"../../chunks/chunk-4NTBYNFR.js";import{AliasDomainConfigured,BuildError,BuildsRateLimited,ConflictingConfigFiles,ConflictingFilePath,ConflictingPathSegment,DeploymentNotFound,DeploymentsRateLimited,DeprecatedNowJson,DomainNotFound,DomainNotVerified,DomainPermissionDenied,DomainVerificationFailed,InvalidDomain,MissingBuildScript,NotDomainOwner,NowError,ProjectNotFound,SchemaValidationFailed,TooManyRequests,UserAborted,code,humanizePath,isAPIError,require_bytes}from"../../chunks/chunk-QFE3RPMA.js";import{getCommandName,getCommandNamePlain,packageName}from"../../chunks/chunk-B4KA3ZH2.js";import"../../chunks/chunk-BOJDM3O7.js";import{cliErrorFromUnknown,emoji,link_default,output_manager_default,prependEmoji,recordCliError}from"../../chunks/chunk-RYSO5U3E.js";import"../../chunks/chunk-BLUPZPAS.js";import{require_build_utils}from"../../chunks/chunk-5MDNVAE6.js";import"../../chunks/chunk-7HQZRU25.js";import"../../chunks/chunk-YTSGFU5T.js";import"../../chunks/chunk-7EJQLVWX.js";import"../../chunks/chunk-SCV7XEEO.js";import{require_dist}from"../../chunks/chunk-MCYG7CCE.js";import"../../chunks/chunk-YHPPP3SF.js";import"../../chunks/chunk-RHFNVIFD.js";import{help}from"../../chunks/chunk-5727HGA6.js";import"../../chunks/chunk-24SIHFEW.js";import"../../chunks/chunk-SQ62IODX.js";import{getFlagsSpecification,quoteArg,stripSensitiveAuthArgs}from"../../chunks/chunk-DORCX7UB.js";import"../../chunks/chunk-2BKALEOP.js";import{require_source}from"../../chunks/chunk-NB2WLB3J.js";import"../../chunks/chunk-ISWW3DKF.js";import"../../chunks/chunk-BRQUZ5NC.js";import"../../chunks/chunk-67GZ5REA.js";import"../../chunks/chunk-BS32OUOC.js";import{__toESM}from"../../chunks/chunk-BZENIQ7N.js";var import_build_utils2=__toESM(require_build_utils(),1),import_client=__toESM(require_dist2(),1),import_error_utils2=__toESM(require_dist(),1);var import_bytes=__toESM(require_bytes(),1),import_chalk=__toESM(require_source(),1),import_fs_extra4=__toESM(require_lib(),1),import_ms=__toESM(require_ms(),1);import{tmpdir}from"os";import{basename,dirname,extname,join as join4,relative,resolve as resolve2,sep}from"path";async function createDeploy(client,now,contextName,path,createArgs,org,isSettingUpProject,archive){try{return await now.create(path,createArgs,org,isSettingUpProject,archive)}catch(err){if(isAPIError(err)){if(err.code==="rate_limited")throw new DeploymentsRateLimited(err.message);if(err.code==="domain_missing")throw new DomainNotFound(err.value);if(err.code==="domain_not_found"&&err.domain)throw new DomainNotFound(err.domain);if(err.code==="domain_not_verified"&&err.domain)throw new DomainNotVerified(err.domain);if(err.code==="domain_not_verified"&&err.value)throw new DomainVerificationFailed(err.value);if(err.code==="not_domain_owner")throw new NotDomainOwner(err.message);if(err.code==="builds_rate_limited")throw new BuildsRateLimited(err.message,{ctaLabel:err.ctaLabel,ctaUrl:err.ctaUrl,action:err.action,link:err.link});if(err.code==="forbidden")throw new DomainPermissionDenied(err.value,contextName);if(err.code==="bad_request"&&err.keyword)throw new SchemaValidationFailed(err.message,err.keyword,err.dataPath,err.params);if(err.code==="domain_configured")throw new AliasDomainConfigured(err);if(err.code==="missing_build_script")throw new MissingBuildScript(err);if(err.code==="conflicting_file_path")throw new ConflictingFilePath(err);if(err.code==="conflicting_path_segment")throw new ConflictingPathSegment(err);if(err.code==="cert_missing"){let{default:generateCertForDeploy}=await import("../../chunks/generate-cert-for-deploy-OZWVIWOO.js"),result=await generateCertForDeploy(client,contextName,err.value);return result instanceof NowError?result:createDeploy(client,now,contextName,path,createArgs,org,isSettingUpProject)}if(err.code==="not_found")throw new DeploymentNotFound({context:contextName});let certError=mapCertError(err);if(certError)return certError}throw err}}var ENV_PAIR_FLAGS=["--env","--build-env"],ENV_VALUE_PLACEHOLDER="<VALUE>",PROJECT_PLACEHOLDER="<PROJECT>",CANONICAL_FLAGS={"--token":null,"--confirm":"--yes","--target":"--environment","--team":"--scope","--name":null,"--no-clipboard":null,"--no-logs":null};function buildCreateIfMissingCommand(positionals,flags,argv,{createIfMissing=!0,addProjectPlaceholder=!1}={}){let out=["deploy",...positionals],seen=new Set,hasPlaceholder=!1;for(let[typedName,value]of Object.entries(flags)){let name=typedName in CANONICAL_FLAGS?CANONICAL_FLAGS[typedName]:typedName;if(!(!name||name==="--create-if-missing"||seen.has(name))){if(seen.add(name),name==="--non-interactive"){out.push(argvHasNonInteractive(argv)?"--non-interactive":"--non-interactive=false");continue}for(let item of Array.isArray(value)?value:[value])if(item===!0)out.push(name);else if(typeof item=="string"||typeof item=="number"){let text=String(item),shown=ENV_PAIR_FLAGS.includes(name)?withPlaceholder(text):text;hasPlaceholder||=shown!==text,out.push(name,shown)}}}addProjectPlaceholder&&out.push("--project",PROJECT_PLACEHOLDER),createIfMissing&&out.push("--create-if-missing");let command=[packageName,...out.map(quoteToken)].join(" "),notes=[...addProjectPlaceholder?[`replace ${PROJECT_PLACEHOLDER} with the project name`]:[],...hasPlaceholder?[`replace each ${ENV_VALUE_PLACEHOLDER} with the Environment Variable's value`]:[]];return notes.length?{command,note:notes.join(", and ")}:{command}}function findEnvPlaceholder(flags){for(let flag of ENV_PAIR_FLAGS){let value=flags[flag];for(let pair of Array.isArray(value)?value:[value])if(typeof pair=="string"&&pair.endsWith(`=${ENV_VALUE_PLACEHOLDER}`))return{flag,key:pair.slice(0,pair.indexOf("="))}}}function withPlaceholder(pair){let equals=pair.indexOf("=");return equals>=0?`${pair.slice(0,equals)}=${ENV_VALUE_PLACEHOLDER}`:pair}function quoteToken(token){return token===PROJECT_PLACEHOLDER||/^[A-Za-z0-9_./@:=,+-]+$/.test(token)?token:quoteArg(token)}async function getDeploymentChecks(client,deploymentId){return await client.fetch(`/v1/deployments/${encodeURIComponent(deploymentId)}/checks`)}async function getDeploymentCheckRuns(client,deploymentId){return await client.fetch(`/v2/deployments/${encodeURIComponent(deploymentId)}/check-runs`)}function parseNdjson(text){let entries=[];for(let line of text.split(`
8
- `))if(line.trim())try{entries.push(JSON.parse(line))}catch{}return entries}async function getDeploymentCheckRunLogs(client,deploymentId,checkRunId){let url=`/v2/deployments/${encodeURIComponent(deploymentId)}/check-runs/${encodeURIComponent(checkRunId)}/logs`;await new Promise(resolve3=>setTimeout(resolve3,1e3));for(let attempt=0;attempt<5;attempt++){attempt>0&&await new Promise(resolve3=>setTimeout(resolve3,2e3));let res=await client.fetch(url,{json:!1}),text=typeof res=="string"?res:await res.text(),entries=parseNdjson(text);if(entries.some(e=>e.level==="eof"))return entries.filter(e=>e.level!=="eof"&&e.level!=="debug").map(({level,timestamp,message})=>({level,timestamp,message}))}return[]}var import_fs_extra=__toESM(require_lib(),1);import{join}from"path";async function getPrebuiltJson(directory){try{return await import_fs_extra.default.readJSON(join(directory,"builds.json"))}catch{}return null}import{resolve}from"path";var SUPPORTED_PROVIDERS=new Set(["github","gitlab","bitbucket"]),defaultDeps={getGitConfigPath,parseGitConfig,fetchProject:(client,project)=>client.fetch(`/v9/projects/${encodeURIComponent(project.id)}`,{accountId:project.accountId}),buildCommand:(client,command)=>withGlobalFlags(client,command,{preserveProject:!0})};async function getGitConnectRecommendation(client,cwd,project,options={}){let{alreadyOffered=!1,fetchedProject,deps=defaultDeps}=options;try{if(project.link||alreadyOffered)return;let gitConfigPath=deps.getGitConfigPath({cwd});if(!gitConfigPath)return;let gitConfig=await deps.parseGitConfig(gitConfigPath),remoteUrls=gitConfig&&pluckRemoteUrls(gitConfig);if(!remoteUrls)return;let remotes=Object.values(remoteUrls),{parseRepoUrl}=await import("../../chunks/connect-git-provider-WGKVFXW2.js");if(!remotes.some(remoteUrl=>{let repo=parseRepoUrl(remoteUrl);return repo&&SUPPORTED_PROVIDERS.has(repo.provider)})||client.nonInteractive&&remotes.length!==1||(fetchedProject??await deps.fetchProject(client,project)).link)return;let cwdFlag=resolve(cwd)===resolve(client.cwd)?"":` --cwd ${quoteArg(cwd)}`;return deps.buildCommand(client,`git connect${cwdFlag}`)}catch(error){output_manager_default.debug(`Failed to resolve Git connection guidance: ${error}`);return}}var import_types=__toESM(require_types(),1),validArchiveFormats=new Set(import_types.VALID_ARCHIVE_FORMATS);function isValidArchive(archive){return validArchiveFormats.has(archive)}var DEPRECATED_SHORTHANDS={"-e":"--env","-b":"--build-env"};function getDeployFlagsSpecification(options){return{...getFlagsSpecification(options),...DEPRECATED_SHORTHANDS}}function warnDeprecatedShorthands(client,options){let flags;try{({flags}=parseArguments(client.argv.slice(2),{...getFlagsSpecification(options),"-e":[String],"-b":[String]},{permissive:!0}))}catch{return}for(let[shorthand,name]of Object.entries(DEPRECATED_SHORTHANDS))flags[shorthand]!==void 0&&warnDeprecatedInput(client,shorthand,name)}function getErrorCta(source){if(typeof source.ctaLabel=="string"&&typeof source.ctaUrl=="string")return{label:source.ctaLabel,url:source.ctaUrl};if(typeof source.action=="string"&&typeof source.link=="string")return{label:source.action,url:source.link}}import{readFile}from"fs/promises";async function promptExperimentalServicesMigration(options){return await mayHaveLegacyServicesConfig(options)?(await import("../../chunks/migrate-experimental-services-GPGYPN66.js")).promptExperimentalServicesMigration(options):!1}async function mayHaveLegacyServicesConfig({cwd,allowConfigExecution=!0}){try{if(!allowConfigExecution||await findSourceVercelConfigFile(cwd))return!0;let{configPath}=await compileVercelConfig(cwd);return configPath?(await readFile(configPath,"utf8")).includes("experimentalServices"):!1}catch{return!0}}var import_fs_extra3=__toESM(require_lib(),1);import{join as join3}from"path";var import_fs_extra2=__toESM(require_lib(),1),import_ci_info=__toESM(require_ci_info(),1),import_build_utils=__toESM(require_build_utils(),1),import_error_utils=__toESM(require_dist(),1);import{randomBytes}from"crypto";import{join as join2}from"path";var VERCEL_DIR_ANONYMOUS="anonymous.json",UnsafeAnonymousStateError=class extends Error{constructor(path){super(`Refusing to use ${path} because it is a symbolic link.`),this.name="UnsafeAnonymousStateError"}};function anonymousStatePath(cwd){return join2(cwd,VERCEL_DIR,VERCEL_DIR_ANONYMOUS)}async function lstatOrNull(path){try{return await(0,import_fs_extra2.lstat)(path)}catch(err){if((0,import_error_utils.isErrnoException)(err)&&err.code==="ENOENT")return null;throw err}}async function assertNotSymlink(path){let stat=await lstatOrNull(path);if(stat?.isSymbolicLink())throw new UnsafeAnonymousStateError(path);return stat}async function readAnonymousState(cwd){if(!(await assertNotSymlink(join2(cwd,VERCEL_DIR)))?.isDirectory())return null;let path=anonymousStatePath(cwd);if(!(await assertNotSymlink(path))?.isFile())return null;try{let state=JSON.parse(await(0,import_fs_extra2.readFile)(path,"utf8"));if(typeof state?.projectId=="string"&&typeof state.token=="string"&&typeof state.claimUrl=="string"&&typeof state.expiresAt=="number")return state}catch{}return null}async function writeAnonymousState(cwd,state){let dir=join2(cwd,VERCEL_DIR);if(await assertNotSymlink(dir),await(0,import_fs_extra2.mkdirp)(dir),!(await assertNotSymlink(dir))?.isDirectory())throw new Error(`${dir} is not a directory.`);let path=anonymousStatePath(cwd),tmpPath=`${path}.${randomBytes(8).toString("hex")}.tmp`;try{await(0,import_fs_extra2.writeFile)(tmpPath,`${JSON.stringify(state,null,2)}
9
- `,{flag:"wx",mode:384}),await(0,import_fs_extra2.rename)(tmpPath,path)}catch(err){throw await(0,import_fs_extra2.unlink)(tmpPath).catch(()=>{}),err}await addToGitIgnore(cwd)}async function clearAnonymousState(cwd){if(!(await lstatOrNull(join2(cwd,VERCEL_DIR)))?.isDirectory())return;let path=anonymousStatePath(cwd),fileStat=await lstatOrNull(path);!fileStat||fileStat.isDirectory()||await(0,import_fs_extra2.unlink)(path)}async function bootstrapAnonymousProject(client){let{projectId,token,claimUrl,expiresAt}=await client.fetch("/v1/anonymous/projects?surface=cli",{method:"POST",body:{},useCurrentTeam:!1,retry:{retries:0}});return{projectId,token,claimUrl,expiresAt}}async function ensureAnonymousLink(client,cwd,{requireExistingState=!1,confirmed=!0}={}){if(import_ci_info.default.isCI||!!((0,import_build_utils.getPlatformEnv)("ORG_ID")&&(0,import_build_utils.getPlatformEnv)("PROJECT_ID"))||!!await getLinkFromDir(getVercelDirectory(cwd))||!!(await getRepoLink(client,cwd))?.repoConfig)return"refused";let state;try{state=await readAnonymousState(cwd)}catch(err){if(err instanceof UnsafeAnonymousStateError)return output_manager_default.prettyError({message:err.message}),"failed";throw err}if(state&&state.expiresAt<=Date.now())return output_manager_default.prettyError({message:`Your temporary deployment has expired. Run ${getCommandName("login")} to create an account and keep deploying this app.`}),"failed";if(!state&&requireExistingState)return"refused";if(!confirmed&&!state)return"confirmation-required";if(!state){try{state=await bootstrapAnonymousProject(client),trackCreatedId(client,"project",state.projectId)}catch(err){return output_manager_default.debug(`Anonymous bootstrap failed: ${(0,import_error_utils.errorToString)(err)}`),"refused"}await writeAnonymousState(cwd,state),output_manager_default.log("Not authenticated. Deploying anonymously.")}return client.authConfig={token:state.token,skipWrite:!0},delete process.env.VERCEL_TEAM_ID,{status:"linked",anonymous:!0,expiresAt:state.expiresAt,claimUrl:state.claimUrl,org:{type:"user",id:"",slug:"anonymous"},project:{id:state.projectId,name:state.projectId}}}function validateAnonymousTarget(isAnonymous,target){return isAnonymous&&target&&target!=="production"?(output_manager_default.error(`Anonymous deployments always target production, so "${target}" is not available. Remove the ${param("--environment")} option, or run ${getCommandName("login")} to deploy to other environments.`),!1):!0}async function setupAnonymousDeployment(client,cwd,{isAnonymous,dryRun}){isAnonymous||await clearAnonymousState(cwd);let anonymousLink;if(isAnonymous){let anonymous=await ensureAnonymousLink(client,cwd,{requireExistingState:dryRun});if(anonymous==="refused"){output_manager_default.log("Temporary deployments aren't available for this attempt. Log in to continue.");let{default:promptMissingCredentials}=await import("../../chunks/prompt-missing-credentials-7F7MUAWK.js"),loginExitCode=await promptMissingCredentials(client);if(loginExitCode!==0)return loginExitCode;isAnonymous=!1}else{if(anonymous==="failed")return 1;if(anonymous==="confirmation-required")return 1;anonymousLink=anonymous}}return{isAnonymous,anonymousLink}}async function handleAnonymousDeploymentError({client,cwd,error,link,isV0,retry}){if(!(!link||!isAPIError(error))){if(error.code==="anonymous_project_claimed"){if(client.nonInteractive||!client.stdin.isTTY)return output_manager_default.prettyError({message:`This project was claimed successfully. Run ${getCommandName("login")} to continue deploying it.`}),1;output_manager_default.log("This project was claimed successfully. Log in to continue deploying it.");let loginExitCode;try{let{default:login}=await import("../../chunks/login-WYDX5KZN.js");loginExitCode=await login(client,{shouldParseArgs:!1})}catch(loginError){return printError(loginError),1}if(loginExitCode!==0)return loginExitCode;let claimedProjectLink=await ensureLink("deploy",client,cwd,{autoConfirm:!0,projectName:link.project.id,failIfNotFound:!0,allowOwnerLookupFallback:!0,v0:isV0});return typeof claimedProjectLink=="number"?claimedProjectLink:(await linkFolderToProject(client,cwd,{projectId:claimedProjectLink.project.id,orgId:claimedProjectLink.org.id},claimedProjectLink.project.name,claimedProjectLink.org.slug,"link",!0,!1),await clearAnonymousState(cwd),retry())}if(error.status===401||error.status===410)return await clearAnonymousState(cwd),output_manager_default.prettyError({message:`Your temporary deployment has expired. Run ${getCommandName("login")} to create an account and keep deploying this app.`}),1}}async function runImplicitBuild(client,cwd){let projectJsonPath=join3(cwd,VERCEL_DIR,VERCEL_DIR_PROJECT),projectJsonExists=await import_fs_extra3.default.pathExists(projectJsonPath);projectJsonExists||await import_fs_extra3.default.outputJSON(projectJsonPath,{settings:{}},{spaces:2}),await import_fs_extra3.default.pathExists(join3(cwd,"package.json"))&&output_manager_default.log("Building your project locally\u2026");let originalArgv=client.argv,originalCwd=client.cwd,originalStdout=client.stdout,previousVercelFirstDeployment=process.env.VERCEL_FIRST_DEPLOYMENT;client.cwd=cwd,client.setArgv([...originalArgv.slice(0,2),"build","--prod","--yes"]),process.env.VERCEL_FIRST_DEPLOYMENT="1",client.stdout=createSinkStream();try{let build=(await import("../build/index.js")).default;return await build(client)}finally{client.setArgv(originalArgv),client.cwd=originalCwd,client.stdout=originalStdout,previousVercelFirstDeployment===void 0?delete process.env.VERCEL_FIRST_DEPLOYMENT:process.env.VERCEL_FIRST_DEPLOYMENT=previousVercelFirstDeployment,projectJsonExists||await import_fs_extra3.default.remove(projectJsonPath)}}function createSinkStream(){return{isTTY:!1,write:()=>!0}}var COMMAND_CONFIG={init:getCommandAliases(initSubcommand),continue:getCommandAliases(continueSubcommand),describe:getCommandAliases(describeSubcommand)},deploy_default=async client=>{let telemetryClient=new DeployTelemetryClient({opts:{store:client.telemetryEventStore}}),parsedArguments=null,flagsSpecification=getDeployFlagsSpecification(deployCommand.options);try{parsedArguments=parseArguments(client.argv.slice(2),flagsSpecification,{permissive:!0})}catch(error){return printError(error),2}let subArgs=parsedArguments.args[0]===deployCommand.name?parsedArguments.args.slice(1):parsedArguments.args,{subcommand,subcommandOriginal}=getSubcommand(subArgs,COMMAND_CONFIG);function printSubcommandHelp(command){output_manager_default.print(help(command,{stream:client.stderr,parent:deployCommand,columns:client.stderr.columns}))}switch(subcommand){case"init":return parsedArguments.flags["--help"]?(telemetryClient.trackCliFlagHelp("deploy",subcommandOriginal),printSubcommandHelp(initSubcommand),0):(telemetryClient.trackCliSubcommandInit(subcommandOriginal),handleInitDeployment(client,telemetryClient));case"continue":return parsedArguments.flags["--help"]?(telemetryClient.trackCliFlagHelp("deploy",subcommandOriginal),printSubcommandHelp(continueSubcommand),0):(telemetryClient.trackCliSubcommandContinue(subcommandOriginal),handleContinueSubcommand(client,telemetryClient));case"describe":return parsedArguments.flags["--help"]?(telemetryClient.trackCliFlagHelp("deploy",subcommandOriginal),printSubcommandHelp(describeSubcommand),0):(telemetryClient.trackCliSubcommandDescribe(subcommandOriginal),(await import("../../chunks/describe-N36SISDN.js")).default(client));default:return parsedArguments.flags["--help"]?(telemetryClient.trackCliFlagHelp("deploy"),output_manager_default.print(help(deployCommand,{stream:client.stderr,columns:client.stderr.columns})),0):handleDefaultDeploy(client,telemetryClient)}};function hasLocalConfigOverride(){return!!localConfigFlagPath()}async function compileConfigUnlessOverridden(workPath){hasLocalConfigOverride()||await compileVercelConfig(workPath)}async function handleInitDeployment(client,telemetryClient){let flagsSpecification=getDeployFlagsSpecification(initSubcommand.options),parsedArguments;try{parsedArguments=parseArguments(client.argv.slice(2),flagsSpecification)}catch(error2){return printError(error2),2}warnDeprecatedShorthands(client,initSubcommand.options),telemetryClient.trackCliFlagJson(parsedArguments.flags["--json"]),telemetryClient.trackCliOptionFormat(parsedArguments.flags["--format"]),telemetryClient.trackCliOptionProject(parsedArguments.flags["--project"]);let projectNameOrId=parsedArguments.flags["--project"],formatResult=validateJsonOutput(parsedArguments.flags);if(!formatResult.valid)return output_manager_default.error(formatResult.error),2;let asJson=formatResult.jsonOutput||client.nonInteractive;if(!applyDeprecatedTargetFlag(client,parsedArguments.flags))return 2;let envPlaceholderExit=rejectEnvPlaceholder(client,parsedArguments.flags,"deploy init --help");if(envPlaceholderExit!==void 0)return envPlaceholderExit;let args=parsedArguments.args;args[0]==="deploy"&&(args=args.slice(1)),args[0]==="init"&&(args=args.slice(1));let paths;args.length>0?(paths=args.map(item=>resolve2(client.cwd,item)),telemetryClient.trackCliArgumentProjectPath(paths[0])):paths=[client.cwd];let pathValidation=await validatePaths(client,paths);if(!pathValidation.valid)return pathValidation.exitCode;await compileConfigUnlessOverridden(paths[0]);let localConfig=paths[0]===client.cwd?client.localConfig||readLocalConfig(paths[0]):readLocalConfig(paths[0]);if(localConfig){client.localConfig=localConfig;let{version}=localConfig,file=highlight(localConfig[import_client.fileNameSymbol]),prop=code("version");if(version)if(typeof version=="number"){if(version!==2){let two=code(String(2));return output_manager_default.error(`The value of the ${prop} property within ${file} can only be ${two}.`),1}}else return output_manager_default.error(`The ${prop} property inside your ${file} file must be a number.`),1}let{log,debug,error}=output_manager_default,quiet=!client.stdout.isTTY,{path:cwd}=pathValidation,autoConfirm=parsedArguments.flags["--yes"],target=parseTarget({flagName:"environment",flags:parsedArguments.flags});telemetryClient.trackTargetEnvironment(target);let parsedArchive=parsedArguments.flags["--archive"];if(typeof parsedArchive=="string"&&!(isValidArchive(parsedArchive)||parsedArchive===deprecatedArchiveSplitTgz))return output_manager_default.error(`Format must be one of: ${import_client.VALID_ARCHIVE_FORMATS.join(", ")}`),2;parsedArchive===deprecatedArchiveSplitTgz&&output_manager_default.print(`${prependEmoji(`${param("--archive=tgz")} now has the same behavior as ${param("--archive=split-tgz")}. Please use ${param("--archive=tgz")} instead.`,emoji("warning"))}
7
+ import{getBuildMachineResourceConfig}from"../../chunks/chunk-ZF27J6FQ.js";import{aliasLonePageInOutput,getSingleFileNameError,isIgnoredFile,isStaticFolderDeploy,resolveSingleFileProject,singleFileConfig,singleFileMeta,singleFileProjectSettings,singleFileTargetArgs,stageSingleFile}from"../../chunks/chunk-ZWPASRC2.js";import{FIRST_DEPLOYMENT_PRODUCTION_NOTICE,hasEarlierDeployment,isNonProductionTarget,refuseFirstDeployment}from"../../chunks/chunk-QYAXCGZA.js";import"../../chunks/chunk-BNWEJZAC.js";import{pickOverrides}from"../../chunks/chunk-ZG7A4P5U.js";import{resolvesInside,validatePaths,validateRootDirectory,validateUploadRoot}from"../../chunks/chunk-JM7KUCBM.js";import{BLOCKED_DEPLOYMENT_REASON,DeployTelemetryClient,Now,PREBUILT_REFERENCE_SKIPPED,UploadErrorMissingArchive,formatVerificationFailure,getBlockedDeploymentDetails,getBlockedDeploymentMessage,getBlockedDeploymentNext,getDeploymentEnvironment,getDeploymentEnvironmentLabel,isBlockedDeployment,printBlockedDeployment,printDeploymentStatus,printPrebuiltFilePathMapIgnoreWarning,reportSkippedPrebuiltReferences,verifyDeployment}from"../../chunks/chunk-JRUL67UC.js";import"../../chunks/chunk-ZFRNVIHI.js";import"../../chunks/chunk-2XQO6C7Q.js";import"../../chunks/chunk-S4ARHJGW.js";import{PROJECT_EXPIRATION_TIMEFRAMES}from"../../chunks/chunk-C2R5IEN6.js";import"../../chunks/chunk-Y7SZI3JV.js";import"../../chunks/chunk-MAAJGMXM.js";import{parseMeta}from"../../chunks/chunk-CZSOZKHX.js";import{compileVercelConfig,findSourceVercelConfigFile}from"../../chunks/chunk-FSM7YM4W.js";import"../../chunks/chunk-YIKXLWSR.js";import"../../chunks/chunk-U56NHYAH.js";import{getEnabledProtection,getProtectionForDeployment}from"../../chunks/chunk-VNS4Z72T.js";import{getProductionUrl}from"../../chunks/chunk-VT6RIZJH.js";import"../../chunks/chunk-KG526MHL.js";import{formatDate}from"../../chunks/chunk-46R47IE5.js";import{stamp_default}from"../../chunks/chunk-LY3EY2VG.js";import"../../chunks/chunk-LLHXL3SV.js";import{parseEnv}from"../../chunks/chunk-KR4DMT3I.js";import{applyDeprecatedTargetFlag,parseTarget}from"../../chunks/chunk-7IHVCKUV.js";import{ensureLink}from"../../chunks/chunk-IMZD7QEB.js";import"../../chunks/chunk-Q4W3R6U2.js";import{getDeployment}from"../../chunks/chunk-MMMX3KE2.js";import{mapCertError}from"../../chunks/chunk-WWEUGL6W.js";import{isGuidanceEnabled}from"../../chunks/chunk-TAAWMNNL.js";import"../../chunks/chunk-OM6NML7C.js";import{trackCreatedId}from"../../chunks/chunk-ILNTOWHG.js";import"../../chunks/chunk-IQ7FPAI4.js";import{getRenamedOption,reportRenamedOptionError}from"../../chunks/chunk-R5KBPWWS.js";import{getSubcommand}from"../../chunks/chunk-ETV3C2CV.js";import{param}from"../../chunks/chunk-ERMHTPO4.js";import{getCommandAliases}from"../../chunks/chunk-ILUU3SGP.js";import"../../chunks/chunk-4MAA4BQD.js";import"../../chunks/chunk-GO64LSUW.js";import"../../chunks/chunk-TUPVVZ4I.js";import"../../chunks/chunk-XHWA436J.js";import"../../chunks/chunk-OXQKWOLS.js";import{continueSubcommand,deployCommand,deprecatedArchiveSplitTgz,describeSubcommand,initSubcommand}from"../../chunks/chunk-HXIOR7P6.js";import"../../chunks/chunk-M3LYYAQ6.js";import"../../chunks/chunk-L74PQVPL.js";import"../../chunks/chunk-CHTFRAXA.js";import"../../chunks/chunk-T2IZUTGY.js";import"../../chunks/chunk-3F3WNT5K.js";import"../../chunks/chunk-P7GA2C6N.js";import"../../chunks/chunk-RPYIWRSN.js";import"../../chunks/chunk-CDO5IECP.js";import"../../chunks/chunk-6XXXPJBV.js";import"../../chunks/chunk-HT5EXCYX.js";import"../../chunks/chunk-RACUGILV.js";import"../../chunks/chunk-R3ZPLQDI.js";import"../../chunks/chunk-QPPFQREO.js";import"../../chunks/chunk-X2UJGCIC.js";import"../../chunks/chunk-XZYVBYUY.js";import"../../chunks/chunk-EZ3HXFLB.js";import"../../chunks/chunk-WMIZ6Y4E.js";import"../../chunks/chunk-QPNYOR6O.js";import"../../chunks/chunk-JGEJY7AC.js";import"../../chunks/chunk-LBJ7EOZM.js";import"../../chunks/chunk-CRPZYLIL.js";import{require_ci_info}from"../../chunks/chunk-QROPMCL2.js";import{VERCEL_DIR,VERCEL_DIR_PROJECT,addToGitIgnore,createGitMeta,getGitConfigPath,getGitExecutable,getLinkFromDir,getRepoLink,getVercelDirectory,highlight,isOwnerLookupUnavailableLink,isProjectReadLink,isRemoteLookupSkippedLink,linkFolderToProject,localConfigFlagPath,parseGitConfig,pluckRemoteUrls,readLocalConfig,require_dist2,require_lib}from"../../chunks/chunk-HDKEES7E.js";import{printAlignedLabel}from"../../chunks/chunk-SUD5V67L.js";import"../../chunks/chunk-7TRHPXCG.js";import{getProjectByNameOrId}from"../../chunks/chunk-UGVOMXYR.js";import"../../chunks/chunk-QRPBDCDH.js";import"../../chunks/chunk-2GXP676X.js";import"../../chunks/chunk-K5GE24PG.js";import"../../chunks/chunk-IFMPBA4K.js";import"../../chunks/chunk-KHJWQ4WP.js";import{getFetchDispatcher}from"../../chunks/chunk-MY4MONOH.js";import"../../chunks/chunk-YATYCZQJ.js";import{require_ms}from"../../chunks/chunk-2ILZM77F.js";import{printError}from"../../chunks/chunk-7EI554V5.js";import{parseArguments}from"../../chunks/chunk-E7ICSU45.js";import{AGENT_REASON,AGENT_STATUS,argvHasNonInteractive,buildCommandWithYes,outputActionRequired,outputAgentError,withGlobalFlags,writeAgentError}from"../../chunks/chunk-E6VQXHBD.js";import{validateJsonOutput,warnDeprecatedInput}from"../../chunks/chunk-BDLZ6WL2.js";import{require_types}from"../../chunks/chunk-PH2MLBQO.js";import"../../chunks/chunk-DCFCPAFQ.js";import"../../chunks/chunk-GOXGA37R.js";import{AliasDomainConfigured,BuildError,BuildsRateLimited,ConflictingConfigFiles,ConflictingFilePath,ConflictingPathSegment,DeploymentNotFound,DeploymentsRateLimited,DeprecatedNowJson,DomainNotFound,DomainNotVerified,DomainPermissionDenied,DomainVerificationFailed,InvalidDomain,MissingBuildScript,NotDomainOwner,NowError,ProjectNotFound,SchemaValidationFailed,TooManyRequests,UserAborted,code,humanizePath,isAPIError,require_bytes}from"../../chunks/chunk-MTPHHAPR.js";import{getCommandName,getCommandNamePlain,packageName}from"../../chunks/chunk-EFGZK6OY.js";import"../../chunks/chunk-JCDPMWKO.js";import{cliErrorFromUnknown,emoji,link_default,output_manager_default,prependEmoji,recordCliError}from"../../chunks/chunk-RIXTYUYN.js";import"../../chunks/chunk-7Y572CPZ.js";import{require_build_utils}from"../../chunks/chunk-BVFFSUG3.js";import"../../chunks/chunk-RRX2AMWY.js";import"../../chunks/chunk-GUFRGEM5.js";import"../../chunks/chunk-SUT2PTL3.js";import"../../chunks/chunk-AX6UCTOC.js";import{require_dist}from"../../chunks/chunk-4SIQE2W4.js";import"../../chunks/chunk-MF43WTDT.js";import"../../chunks/chunk-FUH5PBGR.js";import{help}from"../../chunks/chunk-7TREJIPV.js";import"../../chunks/chunk-7QHUMMBA.js";import"../../chunks/chunk-AUCQKYL2.js";import{getFlagsSpecification,quoteArg,stripSensitiveAuthArgs}from"../../chunks/chunk-CUO3CYU3.js";import"../../chunks/chunk-2BKALEOP.js";import{require_source}from"../../chunks/chunk-UJ7YUIEJ.js";import"../../chunks/chunk-L6MWUMWZ.js";import"../../chunks/chunk-L4CSJDG7.js";import"../../chunks/chunk-YHZXIBS7.js";import"../../chunks/chunk-LPYHYTYI.js";import{__toESM}from"../../chunks/chunk-NBPLUP7C.js";var import_build_utils2=__toESM(require_build_utils(),1),import_client=__toESM(require_dist2(),1),import_error_utils2=__toESM(require_dist(),1);var import_bytes=__toESM(require_bytes(),1),import_chalk=__toESM(require_source(),1),import_fs_extra4=__toESM(require_lib(),1),import_ms=__toESM(require_ms(),1);import{tmpdir}from"os";import{basename,dirname,extname,join as join4,relative,resolve as resolve2,sep}from"path";async function createDeploy(client,now,contextName,path,createArgs,org,isSettingUpProject,archive){try{return await now.create(path,createArgs,org,isSettingUpProject,archive)}catch(err){if(isAPIError(err)){if(err.code==="rate_limited")throw new DeploymentsRateLimited(err.message);if(err.code==="domain_missing")throw new DomainNotFound(err.value);if(err.code==="domain_not_found"&&err.domain)throw new DomainNotFound(err.domain);if(err.code==="domain_not_verified"&&err.domain)throw new DomainNotVerified(err.domain);if(err.code==="domain_not_verified"&&err.value)throw new DomainVerificationFailed(err.value);if(err.code==="not_domain_owner")throw new NotDomainOwner(err.message);if(err.code==="builds_rate_limited")throw new BuildsRateLimited(err.message,{ctaLabel:err.ctaLabel,ctaUrl:err.ctaUrl,action:err.action,link:err.link});if(err.code==="forbidden")throw new DomainPermissionDenied(err.value,contextName);if(err.code==="bad_request"&&err.keyword)throw new SchemaValidationFailed(err.message,err.keyword,err.dataPath,err.params);if(err.code==="domain_configured")throw new AliasDomainConfigured(err);if(err.code==="missing_build_script")throw new MissingBuildScript(err);if(err.code==="conflicting_file_path")throw new ConflictingFilePath(err);if(err.code==="conflicting_path_segment")throw new ConflictingPathSegment(err);if(err.code==="cert_missing"){let{default:generateCertForDeploy}=await import("../../chunks/generate-cert-for-deploy-PZHDFX3W.js"),result=await generateCertForDeploy(client,contextName,err.value);return result instanceof NowError?result:createDeploy(client,now,contextName,path,createArgs,org,isSettingUpProject)}if(err.code==="not_found")throw new DeploymentNotFound({context:contextName});let certError=mapCertError(err);if(certError)return certError}throw err}}var ENV_PAIR_FLAGS=["--env","--build-env"],ENV_VALUE_PLACEHOLDER="<VALUE>",PROJECT_PLACEHOLDER="<PROJECT>",CANONICAL_FLAGS={"--token":null,"--confirm":"--yes","--target":"--environment","--team":"--scope","--name":null,"--no-clipboard":null,"--no-logs":null};function buildCreateIfMissingCommand(positionals,flags,argv,{createIfMissing=!0,addProjectPlaceholder=!1}={}){let out=["deploy",...positionals],seen=new Set,hasPlaceholder=!1;for(let[typedName,value]of Object.entries(flags)){let name=typedName in CANONICAL_FLAGS?CANONICAL_FLAGS[typedName]:typedName;if(!(!name||name==="--create-if-missing"||seen.has(name))){if(seen.add(name),name==="--non-interactive"){out.push(argvHasNonInteractive(argv)?"--non-interactive":"--non-interactive=false");continue}for(let item of Array.isArray(value)?value:[value])if(item===!0)out.push(name);else if(typeof item=="string"||typeof item=="number"){let text=String(item),shown=ENV_PAIR_FLAGS.includes(name)?withPlaceholder(text):text;hasPlaceholder||=shown!==text,out.push(name,shown)}}}addProjectPlaceholder&&out.push("--project",PROJECT_PLACEHOLDER),createIfMissing&&out.push("--create-if-missing");let command=[packageName,...out.map(quoteToken)].join(" "),notes=[...addProjectPlaceholder?[`replace ${PROJECT_PLACEHOLDER} with the project name`]:[],...hasPlaceholder?[`replace each ${ENV_VALUE_PLACEHOLDER} with the Environment Variable's value`]:[]];return notes.length?{command,note:notes.join(", and ")}:{command}}function findEnvPlaceholder(flags){for(let flag of ENV_PAIR_FLAGS){let value=flags[flag];for(let pair of Array.isArray(value)?value:[value])if(typeof pair=="string"&&pair.endsWith(`=${ENV_VALUE_PLACEHOLDER}`))return{flag,key:pair.slice(0,pair.indexOf("="))}}}function withPlaceholder(pair){let equals=pair.indexOf("=");return equals>=0?`${pair.slice(0,equals)}=${ENV_VALUE_PLACEHOLDER}`:pair}function quoteToken(token){return token===PROJECT_PLACEHOLDER||/^[A-Za-z0-9_./@:=,+-]+$/.test(token)?token:quoteArg(token)}async function getDeploymentChecks(client,deploymentId){return await client.fetch(`/v1/deployments/${encodeURIComponent(deploymentId)}/checks`)}async function getDeploymentCheckRuns(client,deploymentId){return await client.fetch(`/v2/deployments/${encodeURIComponent(deploymentId)}/check-runs`)}function parseNdjson(text){let entries=[];for(let line of text.split(`
8
+ `))if(line.trim())try{entries.push(JSON.parse(line))}catch{}return entries}async function getDeploymentCheckRunLogs(client,deploymentId,checkRunId){let url=`/v2/deployments/${encodeURIComponent(deploymentId)}/check-runs/${encodeURIComponent(checkRunId)}/logs`;await new Promise(resolve3=>setTimeout(resolve3,1e3));for(let attempt=0;attempt<5;attempt++){attempt>0&&await new Promise(resolve3=>setTimeout(resolve3,2e3));let res=await client.fetch(url,{json:!1}),text=typeof res=="string"?res:await res.text(),entries=parseNdjson(text);if(entries.some(e=>e.level==="eof"))return entries.filter(e=>e.level!=="eof"&&e.level!=="debug").map(({level,timestamp,message})=>({level,timestamp,message}))}return[]}var import_fs_extra=__toESM(require_lib(),1);import{join}from"path";async function getPrebuiltJson(directory){try{return await import_fs_extra.default.readJSON(join(directory,"builds.json"))}catch{}return null}import{resolve}from"path";var SUPPORTED_PROVIDERS=new Set(["github","gitlab","bitbucket"]),defaultDeps={getGitConfigPath,parseGitConfig,fetchProject:(client,project)=>client.fetch(`/v9/projects/${encodeURIComponent(project.id)}`,{accountId:project.accountId}),buildCommand:(client,command)=>withGlobalFlags(client,command,{preserveProject:!0})};async function getGitConnectRecommendation(client,cwd,project,options={}){let{alreadyOffered=!1,fetchedProject,deps=defaultDeps}=options;try{if(project.link||alreadyOffered)return;let gitConfigPath=deps.getGitConfigPath({cwd});if(!gitConfigPath)return;let gitConfig=await deps.parseGitConfig(gitConfigPath),remoteUrls=gitConfig&&pluckRemoteUrls(gitConfig);if(!remoteUrls)return;let remotes=Object.values(remoteUrls),{parseRepoUrl}=await import("../../chunks/connect-git-provider-MPYSAOTH.js");if(!remotes.some(remoteUrl=>{let repo=parseRepoUrl(remoteUrl);return repo&&SUPPORTED_PROVIDERS.has(repo.provider)})||client.nonInteractive&&remotes.length!==1||(fetchedProject??await deps.fetchProject(client,project)).link)return;let cwdFlag=resolve(cwd)===resolve(client.cwd)?"":` --cwd ${quoteArg(cwd)}`;return deps.buildCommand(client,`git connect${cwdFlag}`)}catch(error){output_manager_default.debug(`Failed to resolve Git connection guidance: ${error}`);return}}var import_types=__toESM(require_types(),1),validArchiveFormats=new Set(import_types.VALID_ARCHIVE_FORMATS);function isValidArchive(archive){return validArchiveFormats.has(archive)}var DEPRECATED_SHORTHANDS={"-e":"--env","-b":"--build-env"};function getDeployFlagsSpecification(options){return{...getFlagsSpecification(options),...DEPRECATED_SHORTHANDS}}function warnDeprecatedShorthands(client,options){let flags;try{({flags}=parseArguments(client.argv.slice(2),{...getFlagsSpecification(options),"-e":[String],"-b":[String]},{permissive:!0}))}catch{return}for(let[shorthand,name]of Object.entries(DEPRECATED_SHORTHANDS))flags[shorthand]!==void 0&&warnDeprecatedInput(client,shorthand,name)}function getErrorCta(source){if(typeof source.ctaLabel=="string"&&typeof source.ctaUrl=="string")return{label:source.ctaLabel,url:source.ctaUrl};if(typeof source.action=="string"&&typeof source.link=="string")return{label:source.action,url:source.link}}import{readFile}from"fs/promises";async function promptExperimentalServicesMigration(options){return await mayHaveLegacyServicesConfig(options)?(await import("../../chunks/migrate-experimental-services-556MHJWK.js")).promptExperimentalServicesMigration(options):!1}async function mayHaveLegacyServicesConfig({cwd,allowConfigExecution=!0}){try{if(!allowConfigExecution||await findSourceVercelConfigFile(cwd))return!0;let{configPath}=await compileVercelConfig(cwd);return configPath?(await readFile(configPath,"utf8")).includes("experimentalServices"):!1}catch{return!0}}var import_fs_extra3=__toESM(require_lib(),1);import{join as join3}from"path";var import_fs_extra2=__toESM(require_lib(),1),import_ci_info=__toESM(require_ci_info(),1),import_build_utils=__toESM(require_build_utils(),1),import_error_utils=__toESM(require_dist(),1);import{randomBytes}from"crypto";import{join as join2}from"path";var VERCEL_DIR_ANONYMOUS="anonymous.json",UnsafeAnonymousStateError=class extends Error{constructor(path){super(`Refusing to use ${path} because it is a symbolic link.`),this.name="UnsafeAnonymousStateError"}};function anonymousStatePath(cwd){return join2(cwd,VERCEL_DIR,VERCEL_DIR_ANONYMOUS)}async function lstatOrNull(path){try{return await(0,import_fs_extra2.lstat)(path)}catch(err){if((0,import_error_utils.isErrnoException)(err)&&err.code==="ENOENT")return null;throw err}}async function assertNotSymlink(path){let stat=await lstatOrNull(path);if(stat?.isSymbolicLink())throw new UnsafeAnonymousStateError(path);return stat}async function readAnonymousState(cwd){if(!(await assertNotSymlink(join2(cwd,VERCEL_DIR)))?.isDirectory())return null;let path=anonymousStatePath(cwd);if(!(await assertNotSymlink(path))?.isFile())return null;try{let state=JSON.parse(await(0,import_fs_extra2.readFile)(path,"utf8"));if(typeof state?.projectId=="string"&&typeof state.token=="string"&&typeof state.claimUrl=="string"&&typeof state.expiresAt=="number")return state}catch{}return null}async function writeAnonymousState(cwd,state){let dir=join2(cwd,VERCEL_DIR);if(await assertNotSymlink(dir),await(0,import_fs_extra2.mkdirp)(dir),!(await assertNotSymlink(dir))?.isDirectory())throw new Error(`${dir} is not a directory.`);let path=anonymousStatePath(cwd),tmpPath=`${path}.${randomBytes(8).toString("hex")}.tmp`;try{await(0,import_fs_extra2.writeFile)(tmpPath,`${JSON.stringify(state,null,2)}
9
+ `,{flag:"wx",mode:384}),await(0,import_fs_extra2.rename)(tmpPath,path)}catch(err){throw await(0,import_fs_extra2.unlink)(tmpPath).catch(()=>{}),err}await addToGitIgnore(cwd)}async function clearAnonymousState(cwd){if(!(await lstatOrNull(join2(cwd,VERCEL_DIR)))?.isDirectory())return;let path=anonymousStatePath(cwd),fileStat=await lstatOrNull(path);!fileStat||fileStat.isDirectory()||await(0,import_fs_extra2.unlink)(path)}async function bootstrapAnonymousProject(client){let{projectId,token,claimUrl,expiresAt}=await client.fetch("/v1/anonymous/projects?surface=cli",{method:"POST",body:{},useCurrentTeam:!1,retry:{retries:0}});return{projectId,token,claimUrl,expiresAt}}async function ensureAnonymousLink(client,cwd,{requireExistingState=!1,confirmed=!0}={}){if(!!((0,import_build_utils.getPlatformEnv)("ORG_ID")&&(0,import_build_utils.getPlatformEnv)("PROJECT_ID"))||!!await getLinkFromDir(getVercelDirectory(cwd))||!!(await getRepoLink(client,cwd))?.repoConfig)return"refused";let state;try{state=await readAnonymousState(cwd)}catch(err){if(err instanceof UnsafeAnonymousStateError)return output_manager_default.prettyError({message:err.message}),"failed";throw err}if(state&&state.expiresAt<=Date.now())return output_manager_default.prettyError({message:`Your temporary deployment has expired. Run ${getCommandName("login")} to create an account and keep deploying this app.`}),"failed";if(!state&&requireExistingState)return"refused";if(!confirmed&&!state)return"confirmation-required";if(!state){try{state=await bootstrapAnonymousProject(client),trackCreatedId(client,"project",state.projectId)}catch(err){return output_manager_default.debug(`Anonymous bootstrap failed: ${(0,import_error_utils.errorToString)(err)}`),"refused"}await writeAnonymousState(cwd,state),output_manager_default.log("Not authenticated. Deploying anonymously.")}return client.authConfig={token:state.token,skipWrite:!0},delete process.env.VERCEL_TEAM_ID,{status:"linked",anonymous:!0,expiresAt:state.expiresAt,claimUrl:import_ci_info.default.isCI?void 0:state.claimUrl,org:{type:"user",id:"",slug:"anonymous"},project:{id:state.projectId,name:state.projectId}}}function validateAnonymousTarget(isAnonymous,target){return isAnonymous&&target&&target!=="production"?(output_manager_default.error(`Anonymous deployments always target production, so "${target}" is not available. Remove the ${param("--environment")} option, or run ${getCommandName("login")} to deploy to other environments.`),!1):!0}async function setupAnonymousDeployment(client,cwd,{isAnonymous,dryRun}){isAnonymous||await clearAnonymousState(cwd);let anonymousLink;if(isAnonymous){let anonymous=await ensureAnonymousLink(client,cwd,{requireExistingState:dryRun});if(anonymous==="refused"){output_manager_default.log("Temporary deployments aren't available for this attempt. Log in to continue.");let{default:promptMissingCredentials}=await import("../../chunks/prompt-missing-credentials-OSAV5B7N.js"),loginExitCode=await promptMissingCredentials(client);if(loginExitCode!==0)return loginExitCode;isAnonymous=!1}else{if(anonymous==="failed")return 1;if(anonymous==="confirmation-required")return 1;anonymousLink=anonymous}}return{isAnonymous,anonymousLink}}async function handleAnonymousDeploymentError({client,cwd,error,link,isV0,retry}){if(!(!link||!isAPIError(error))){if(error.code==="anonymous_project_claimed"){if(client.nonInteractive||!client.stdin.isTTY)return output_manager_default.prettyError({message:`This project was claimed successfully. Run ${getCommandName("login")} to continue deploying it.`}),1;output_manager_default.log("This project was claimed successfully. Log in to continue deploying it.");let loginExitCode;try{let{default:login}=await import("../../chunks/login-YCOZROC2.js");loginExitCode=await login(client,{shouldParseArgs:!1})}catch(loginError){return printError(loginError),1}if(loginExitCode!==0)return loginExitCode;let claimedProjectLink=await ensureLink("deploy",client,cwd,{autoConfirm:!0,projectName:link.project.id,failIfNotFound:!0,allowOwnerLookupFallback:!0,v0:isV0});return typeof claimedProjectLink=="number"?claimedProjectLink:(await linkFolderToProject(client,cwd,{projectId:claimedProjectLink.project.id,orgId:claimedProjectLink.org.id},claimedProjectLink.project.name,claimedProjectLink.org.slug,"link",!0,!1),await clearAnonymousState(cwd),retry())}if(error.status===401||error.status===410)return await clearAnonymousState(cwd),output_manager_default.prettyError({message:`Your temporary deployment has expired. Run ${getCommandName("login")} to create an account and keep deploying this app.`}),1}}async function runImplicitBuild(client,cwd){let projectJsonPath=join3(cwd,VERCEL_DIR,VERCEL_DIR_PROJECT),projectJsonExists=await import_fs_extra3.default.pathExists(projectJsonPath);projectJsonExists||await import_fs_extra3.default.outputJSON(projectJsonPath,{settings:{}},{spaces:2}),await import_fs_extra3.default.pathExists(join3(cwd,"package.json"))&&output_manager_default.log("Building your project locally\u2026");let originalArgv=client.argv,originalCwd=client.cwd,originalStdout=client.stdout,previousVercelFirstDeployment=process.env.VERCEL_FIRST_DEPLOYMENT;client.cwd=cwd,client.setArgv([...originalArgv.slice(0,2),"build","--prod","--yes"]),process.env.VERCEL_FIRST_DEPLOYMENT="1",client.stdout=createSinkStream();try{let build=(await import("../build/index.js")).default;return await build(client)}finally{client.setArgv(originalArgv),client.cwd=originalCwd,client.stdout=originalStdout,previousVercelFirstDeployment===void 0?delete process.env.VERCEL_FIRST_DEPLOYMENT:process.env.VERCEL_FIRST_DEPLOYMENT=previousVercelFirstDeployment,projectJsonExists||await import_fs_extra3.default.remove(projectJsonPath)}}function createSinkStream(){return{isTTY:!1,write:()=>!0}}var COMMAND_CONFIG={init:getCommandAliases(initSubcommand),continue:getCommandAliases(continueSubcommand),describe:getCommandAliases(describeSubcommand)},deploy_default=async client=>{let telemetryClient=new DeployTelemetryClient({opts:{store:client.telemetryEventStore}}),parsedArguments=null,flagsSpecification=getDeployFlagsSpecification(deployCommand.options);try{parsedArguments=parseArguments(client.argv.slice(2),flagsSpecification,{permissive:!0})}catch(error){return printError(error),2}let subArgs=parsedArguments.args[0]===deployCommand.name?parsedArguments.args.slice(1):parsedArguments.args,{subcommand,subcommandOriginal}=getSubcommand(subArgs,COMMAND_CONFIG);function printSubcommandHelp(command){output_manager_default.print(help(command,{stream:client.stderr,parent:deployCommand,columns:client.stderr.columns}))}switch(subcommand){case"init":return parsedArguments.flags["--help"]?(telemetryClient.trackCliFlagHelp("deploy",subcommandOriginal),printSubcommandHelp(initSubcommand),0):(telemetryClient.trackCliSubcommandInit(subcommandOriginal),handleInitDeployment(client,telemetryClient));case"continue":return parsedArguments.flags["--help"]?(telemetryClient.trackCliFlagHelp("deploy",subcommandOriginal),printSubcommandHelp(continueSubcommand),0):(telemetryClient.trackCliSubcommandContinue(subcommandOriginal),handleContinueSubcommand(client,telemetryClient));case"describe":return parsedArguments.flags["--help"]?(telemetryClient.trackCliFlagHelp("deploy",subcommandOriginal),printSubcommandHelp(describeSubcommand),0):(telemetryClient.trackCliSubcommandDescribe(subcommandOriginal),(await import("../../chunks/describe-Q5D5GYVG.js")).default(client));default:return parsedArguments.flags["--help"]?(telemetryClient.trackCliFlagHelp("deploy"),output_manager_default.print(help(deployCommand,{stream:client.stderr,columns:client.stderr.columns})),0):handleDefaultDeploy(client,telemetryClient)}};function hasLocalConfigOverride(){return!!localConfigFlagPath()}async function compileConfigUnlessOverridden(workPath){hasLocalConfigOverride()||await compileVercelConfig(workPath)}async function handleInitDeployment(client,telemetryClient){let flagsSpecification=getDeployFlagsSpecification(initSubcommand.options),parsedArguments;try{parsedArguments=parseArguments(client.argv.slice(2),flagsSpecification)}catch(error2){return printError(error2),2}warnDeprecatedShorthands(client,initSubcommand.options),telemetryClient.trackCliFlagJson(parsedArguments.flags["--json"]),telemetryClient.trackCliOptionFormat(parsedArguments.flags["--format"]),telemetryClient.trackCliOptionProject(parsedArguments.flags["--project"]);let projectNameOrId=parsedArguments.flags["--project"],formatResult=validateJsonOutput(parsedArguments.flags);if(!formatResult.valid)return output_manager_default.error(formatResult.error),2;let asJson=formatResult.jsonOutput||client.nonInteractive;if(!applyDeprecatedTargetFlag(client,parsedArguments.flags))return 2;let envPlaceholderExit=rejectEnvPlaceholder(client,parsedArguments.flags,"deploy init --help");if(envPlaceholderExit!==void 0)return envPlaceholderExit;let args=parsedArguments.args;args[0]==="deploy"&&(args=args.slice(1)),args[0]==="init"&&(args=args.slice(1));let paths;args.length>0?(paths=args.map(item=>resolve2(client.cwd,item)),telemetryClient.trackCliArgumentProjectPath(paths[0])):paths=[client.cwd];let pathValidation=await validatePaths(client,paths);if(!pathValidation.valid)return pathValidation.exitCode;await compileConfigUnlessOverridden(paths[0]);let localConfig=paths[0]===client.cwd?client.localConfig||readLocalConfig(paths[0]):readLocalConfig(paths[0]);if(localConfig){client.localConfig=localConfig;let{version}=localConfig,file=highlight(localConfig[import_client.fileNameSymbol]),prop=code("version");if(version)if(typeof version=="number"){if(version!==2){let two=code(String(2));return output_manager_default.error(`The value of the ${prop} property within ${file} can only be ${two}.`),1}}else return output_manager_default.error(`The ${prop} property inside your ${file} file must be a number.`),1}let{log,debug,error}=output_manager_default,quiet=!client.stdout.isTTY,{path:cwd}=pathValidation,autoConfirm=parsedArguments.flags["--yes"],target=parseTarget({flagName:"environment",flags:parsedArguments.flags});telemetryClient.trackTargetEnvironment(target);let parsedArchive=parsedArguments.flags["--archive"];if(typeof parsedArchive=="string"&&!(isValidArchive(parsedArchive)||parsedArchive===deprecatedArchiveSplitTgz))return output_manager_default.error(`Format must be one of: ${import_client.VALID_ARCHIVE_FORMATS.join(", ")}`),2;parsedArchive===deprecatedArchiveSplitTgz&&output_manager_default.print(`${prependEmoji(`${param("--archive=tgz")} now has the same behavior as ${param("--archive=split-tgz")}. Please use ${param("--archive=tgz")} instead.`,emoji("warning"))}
10
10
  `);let cliMeta=parseMeta(parsedArguments.flags["--meta"]),isV0=cliMeta.v0==="true";getGitExecutable(cwd);let refuseInitFirstDeployment=newProject=>refuseFirstDeployment(client,{target,newProject,prodCommand:buildProdCommand(["init",...args],parsedArguments.flags,client.argv)}),link=await ensureLink("deploy",client,cwd,{autoConfirm,projectName:projectNameOrId??localConfig?.name,failIfNotFound:!!projectNameOrId,v0:isV0,beforeCreateProject:isNonProductionTarget(target)?()=>refuseInitFirstDeployment(!0):void 0});if(typeof link=="number")return link;let{org,project}=link,rootDirectory=project.rootDirectory,sourceFilesOutsideRootDirectory=project.sourceFilesOutsideRootDirectory??!0,uploadRoot=await validateUploadRoot(client,cwd,link.repoRoot);if(!uploadRoot.valid)return uploadRoot.exitCode;cwd=uploadRoot.path;let contextName=org.slug;if(client.config.currentTeam=org.type==="team"?org.id:void 0,isNonProductionTarget(target)&&!await hasEarlierDeployment(client,org,project.id,isRemoteLookupSkippedLink(link)?void 0:project.latestDeployments))return refuseInitFirstDeployment(!1);if(rootDirectory&&await validateRootDirectory(cwd,join4(cwd,rootDirectory),project?`To change your Project Settings, go to https://vercel.com/${org?.slug}/${project.name}/settings`:"")===!1)return 1;if(!hasLocalConfigOverride()&&await promptExperimentalServicesMigration({client,cwd:join4(cwd,rootDirectory||""),autoConfirm:!!parsedArguments.flags["--yes"],nonInteractive:client.nonInteractive})&&(localConfig=readLocalConfig(join4(cwd,rootDirectory||""))),rootDirectory){let rootDirectoryPath=join4(cwd,rootDirectory);await compileConfigUnlessOverridden(rootDirectoryPath);let rootDirectoryConfig=readLocalConfig(rootDirectoryPath);rootDirectoryConfig?(debug(`Read local config from root directory (${rootDirectory})`),localConfig=rootDirectoryConfig):localConfig&&output_manager_default.print(`${prependEmoji(`The ${highlight(localConfig[import_client.fileNameSymbol])} file should be inside of the provided root directory.`,emoji("warning"))}
11
11
  `)}localConfig=localConfig||{},localConfig.name&&output_manager_default.print(`${prependEmoji(`The ${code("name")} property in ${highlight(localConfig[import_client.fileNameSymbol])} is deprecated (https://vercel.link/name-prop)`,emoji("warning"))}
12
12
  `);let isObject=item=>Object.prototype.toString.call(item)==="[object Object]";if(typeof localConfig.env<"u"&&!isObject(localConfig.env))return error(`The ${code("env")} property in ${highlight(localConfig[import_client.fileNameSymbol])} needs to be an object`),1;if(typeof localConfig.build<"u"){if(!isObject(localConfig.build))return error(`The ${code("build")} property in ${highlight(localConfig[import_client.fileNameSymbol])} needs to be an object`),1;if(typeof localConfig.build.env<"u"&&!isObject(localConfig.build.env))return error(`The ${code("build.env")} property in ${highlight(localConfig[import_client.fileNameSymbol])} needs to be an object`),1}let meta=Object.assign({},parseMeta(localConfig.meta),cliMeta),gitMetadata=client.withTrace("vc.cli.deploy.git_metadata",()=>createGitMeta(join4(cwd,project.rootDirectory||""),project));gitMetadata.catch(()=>{});let deploymentEnv=Object.assign({},parseEnv(localConfig.env),parseEnv(parsedArguments.flags["--env"])),deploymentBuildEnv=Object.assign({},parseEnv(localConfig.build&&localConfig.build.env),parseEnv(parsedArguments.flags["--build-env"]));try{await addProcessEnv(log,deploymentEnv),await addProcessEnv(log,deploymentBuildEnv)}catch(err){return error((0,import_error_utils2.errorToString)(err)),1}let regionFlag=(parsedArguments.flags["--regions"]||"").split(",").map(s=>s.trim()).filter(Boolean),regions=regionFlag.length>0?regionFlag:localConfig.regions,currentTeam=org.type==="team"?org.id:void 0,now=new Now({client,currentTeam}),deployStamp=stamp_default(),localConfigurationOverrides=pickOverrides(localConfig),name=project.name;if(!name)throw new Error("`name` not found on project or provided by existing project");let noWait=!0;try{let autoAssignCustomDomains=parsedArguments.flags["--skip-domain"]?!1:void 0,createArgs={name,env:deploymentEnv,build:{env:deploymentBuildEnv},forceNew:parsedArguments.flags["--force"],withCache:parsedArguments.flags["--with-cache"],prebuilt:!0,vercelOutputDir:void 0,rootDirectory,quiet,nowConfig:{...localConfig,images:void 0},regions,meta,gitMetadata,deployStamp,target,skipAutoDetectionConfirmation:autoConfirm,noWait,withFullLogs:!1,autoAssignCustomDomains,manual:!0,jsonOutput:asJson,linkedProject:project};(!localConfig.builds||localConfig.builds.length===0)&&(createArgs.projectSettings={sourceFilesOutsideRootDirectory,rootDirectory,...localConfigurationOverrides});let{packageJson}=await(0,import_build_utils2.findPackageJson)(join4(cwd,project?.rootDirectory??""),!0,cwd),nodeVersion;if(packageJson?.engines?.node)try{let{range}=await(0,import_build_utils2.getSupportedNodeVersion)(packageJson.engines.node);nodeVersion=range}catch(error2){error2 instanceof Error&&output_manager_default.warn(error2.message)}createArgs.projectSettings||(createArgs.projectSettings={}),createArgs.projectSettings.nodeVersion=nodeVersion;let deployment=await createDeploy(client,now,contextName,cwd,createArgs,org,!project,parsedArchive?"tgz":void 0);if(deployment instanceof NotDomainOwner)return recordCliError({code:"not_domain_owner"}),client.nonInteractive?(client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"not_domain_owner",message:deployment.message,next:[{command:withGlobalFlags(client,"deploy"),when:"retry deploy"}]},null,2)}
@@ -29,7 +29,7 @@ ${next.map(step=>`To ${step.when}:
29
29
  `),telemetryClient.trackCliFlagNoClipboard(!0));let isAnonymous=!client.authConfig.token&&!!parsedArguments.flags["--temporary"];if(!client.authConfig.token&&!isAnonymous)return output_manager_default.prettyError({message:`No existing credentials found. Run ${getCommandName("deploy --temporary")} to create a temporary deployment you can claim later, or ${getCommandName("login")} to log in.`,link:"https://err.sh/vercel/no-credentials-found"}),1;if(client.authConfig.token&&parsedArguments.flags["--temporary"]&&parsedArguments.flags["--delete-project-after"]===void 0){let message="--temporary only applies when you are not logged in. To create a temporary project while logged in, use --delete-project-after.",args=stripSensitiveAuthArgs(client.argv.slice(2)).filter(arg=>arg!=="--temporary");outputActionRequired(client,{status:AGENT_STATUS.ACTION_REQUIRED,reason:AGENT_REASON.INVALID_ARGUMENTS,message,next:[{command:`${packageName} ${[...args,"--delete-project-after","1h"].map(quoteArg).join(" ")}`,when:"Create a temporary project that is deleted after 1 hour"}]},2),output_manager_default.warn(message)}let target=parseTarget({flagName:"environment",flags:parsedArguments.flags});if(telemetryClient.trackTargetEnvironment(target),!validateAnonymousTarget(isAnonymous,target))return 1;if(parsedArguments.flags["--skip-domain"]&&target!=="production")return output_manager_default.error("The `--skip-domain` option can only be used with production deployments. Use `--prod` or `--environment production`."),1;let parsedArchive=parsedArguments.flags["--archive"];if(typeof parsedArchive=="string"&&!(isValidArchive(parsedArchive)||parsedArchive===deprecatedArchiveSplitTgz))return output_manager_default.error(`Format must be one of: ${import_client.VALID_ARCHIVE_FORMATS.join(", ")}`),2;parsedArchive===deprecatedArchiveSplitTgz&&output_manager_default.print(`${prependEmoji(`${param("--archive=tgz")} now has the same behavior as ${param("--archive=split-tgz")}. Please use ${param("--archive=tgz")} instead.`,emoji("warning"))}
30
30
  `);let deleteProjectAfter=parsedArguments.flags["--delete-project-after"];if(deleteProjectAfter!==void 0&&!Object.hasOwn(PROJECT_EXPIRATION_TIMEFRAMES,deleteProjectAfter))return output_manager_default.error(`${param("--delete-project-after")} must be one of: ${Object.keys(PROJECT_EXPIRATION_TIMEFRAMES).join(", ")}`),2;if(deleteProjectAfter!==void 0&&isAnonymous)return output_manager_default.error(`${param("--delete-project-after")} can't be used with temporary deployments, which already expire.`),2;let expiration=deleteProjectAfter===void 0?void 0:PROJECT_EXPIRATION_TIMEFRAMES[deleteProjectAfter],cliMeta=parseMeta(parsedArguments.flags["--meta"]),isV0=cliMeta.v0==="true";!singleFile&&!parsedArguments.flags["--dry"]&&getGitExecutable(cwd);let anonymousSetup=singleFile&&!isAnonymous?{isAnonymous:!1,anonymousLink:void 0}:await setupAnonymousDeployment(client,cwd,{isAnonymous,dryRun:!!parsedArguments.flags["--dry"]});if(typeof anonymousSetup=="number")return anonymousSetup;isAnonymous=anonymousSetup.isAnonymous;let anonymousLink=anonymousSetup.anonymousLink;anonymousLink&&(target="production");let checkFirstDeployment=isNonProductionTarget(target)&&!isAnonymous&&!parsedArguments.flags["--dry"],deployPath=cwd,refuseDefaultFirstDeployment=newProject=>{let prebuilt2=!!parsedArguments.flags["--prebuilt"],prodCommand=buildProdCommand(parsedArguments.args,parsedArguments.flags,client.argv,{keepCreateIfMissing:newProject,dropPrebuilt:newProject});return refuseFirstDeployment(client,{target,newProject,prodCommand:newProject&&prebuilt2?{...prodCommand,note:[prodCommand.note,"without --prebuilt, so Vercel builds it"].filter(Boolean).join("; ")}:prodCommand,prepareCommands:prebuilt2&&!newProject?[{command:withGlobalFlags(client,`pull --yes --environment production --cwd ${quoteArg(deployPath)}`,{preserveProject:!0}),action:"pull Production settings and Environment Variables"},{command:withGlobalFlags(client,`build --prod --cwd ${quoteArg(deployPath)}`,{preserveProject:!0}),action:"build for Production"}]:void 0})},beforeCreateProject=checkFirstDeployment?()=>refuseDefaultFirstDeployment(!0):!target&&!isAnonymous&&!parsedArguments.flags["--dry"]?()=>{output_manager_default.warning(FIRST_DEPLOYMENT_PRODUCTION_NOTICE)}:void 0,link=anonymousLink??(singleFile?await resolveSingleFileProject(client,singleFile,{project:projectNameOrId,name:parsedArguments.flags["--name"],dryRun:!!parsedArguments.flags["--dry"],production:target==="production",asJson,v0:isV0,expiration,beforeCreateProject}):await ensureLink("deploy",client,cwd,{autoConfirm,projectName:projectNameOrId??parsedArguments.flags["--name"]??localConfig?.name,failIfNotFound:!!projectNameOrId,createIfNotFound:!!projectNameOrId&&!parsedArguments.flags["--dry"]&&(createIfMissing||!autoConfirm),createCommand:projectNameOrId&&!parsedArguments.flags["--dry"]?buildCreateIfMissingCommand(parsedArguments.args,parsedArguments.flags,client.argv):void 0,requireExistingLink:parsedArguments.flags["--dry"],allowOwnerLookupFallback:!0,skipRemoteLookup:!parsedArguments.flags["--dry"],v0:isV0,expiration,beforeCreateProject}));if(typeof link=="number")return link;if(expiration){let{expiration:projectExpiration,name:name2}=link.project;projectExpiration&&"expiresAt"in projectExpiration?output_manager_default.warn(`Project ${name2} will be deleted on ${formatDate(projectExpiration.expiresAt)}. Run ${getCommandName(`project keep ${quoteArg(name2)} --scope ${quoteArg(link.org.slug||link.org.id)}`)} to keep it.`):output_manager_default.warn(`${param("--delete-project-after")} only applies when the deploy creates the project. ${name2} already exists, so its expiration was not changed.`)}let singleFileTarget=singleFile&&!anonymousLink?singleFileTargetArgs(client,link):void 0,redeployCommand=withGlobalFlags(client,singleFile?`deploy ${quoteArg(singleFile)}${isAnonymous?" --temporary":""}${singleFileTarget??""}`:isAnonymous?"deploy --temporary":"deploy",{preserveProject:!!singleFile&&!singleFileTarget}),{org,project}=link,linkedProjectRead,lookUpLinkedProject=isRemoteLookupSkippedLink(link)?()=>linkedProjectRead??=getProjectByNameOrId(client,project.id,project.accountId):void 0,deployedBefore=checkFirstDeployment?hasEarlierDeployment(client,org,project.id,isRemoteLookupSkippedLink(link)?void 0:project.latestDeployments):void 0,rootDirectory=singleFile?null:project.rootDirectory,sourceFilesOutsideRootDirectory=project.sourceFilesOutsideRootDirectory??!0,projectCwd=cwd,validatedRoot=await validateUploadRoot(client,cwd,singleFile?void 0:link.repoRoot);if(!validatedRoot.valid)return validatedRoot.exitCode;cwd=validatedRoot.path;let postDeployGuidanceEnabled=!singleFile&&!anonymousLink&&(client.nonInteractive||!asJson)&&isGuidanceEnabled(client,parsedArguments.flags["--guidance"],!0),prebuilt=isAnonymous||!!singleFile||!!parsedArguments.flags["--prebuilt"],vercelOutputDir,prebuiltBuild=null,singleFileOutputRoot;if(prebuilt){vercelOutputDir=join4(cwd,".vercel/output"),link.repoRoot&&link.project.rootDirectory&&(vercelOutputDir=join4(cwd,link.project.rootDirectory,".vercel/output"));let prebuiltExists=await import_fs_extra4.default.pathExists(vercelOutputDir);if(singleFile)singleFileOutputRoot=await import_fs_extra4.default.mkdtemp(join4(tmpdir(),"vercel-file-")),tempDirs.push(singleFileOutputRoot),vercelOutputDir=join4(singleFileOutputRoot,".vercel/output"),await stageSingleFile(singleFile,join4(vercelOutputDir,"static")),await import_fs_extra4.default.outputJSON(join4(vercelOutputDir,"config.json"),{version:3}),prebuiltExists=!0;else if(isAnonymous&&!parsedArguments.flags["--prebuilt"]&&!parsedArguments.flags["--dry"]){let buildExitCode=await runImplicitBuild(client,cwd);if(buildExitCode!==0)return buildExitCode;prebuiltExists=await import_fs_extra4.default.pathExists(vercelOutputDir)}if(!prebuiltExists)return error(`The ${param("--prebuilt")} option was used, but no prebuilt output found in ".vercel/output". Run ${getCommandName("build")} to generate a local build.`),1;if(!singleFile&&!await validatePrebuiltOutputDir(cwd,vercelOutputDir))return 1;prebuiltBuild=await getPrebuiltJson(vercelOutputDir);let prebuiltError=prebuiltBuild?.error||prebuiltBuild?.builds?.find(build=>"error"in build)?.error;if(prebuiltError)return output_manager_default.log(`Prebuilt deployment cannot be created because ${getCommandName("build")} failed with error:
31
31
  `),prettyError(prebuiltError),1;isAnonymous&&!singleFile&&!parsedArguments.flags["--prebuilt"]&&!prebuiltBuild?.detectedFramework?.slug&&isStaticFolderDeploy(project,localConfig||{},rootDirectory)&&await aliasLonePageInOutput(vercelOutputDir);let assumedTarget=target||"preview";if(prebuiltBuild?.target&&prebuiltBuild.target!==assumedTarget){let specifyTarget="";return prebuiltBuild.target==="production"&&(specifyTarget=" --prod"),prettyError({message:`The ${param("--prebuilt")} option was used with the target environment "${assumedTarget}", but the prebuilt output found in ".vercel/output" was built with target environment "${prebuiltBuild.target}". Please run ${getCommandName(`--prebuilt${specifyTarget}`)}.`,link:"https://vercel.link/prebuilt-environment-mismatch"}),1}}if(singleFile&&!singleFileOutputRoot)throw new Error("The file was not staged for deployment.");let uploadRoot=singleFileOutputRoot??cwd,orgSlug=isRemoteLookupSkippedLink(link)?void 0:org.slug,contextName=orgSlug??"the linked account",currentTeam=isOwnerLookupUnavailableLink(link)||org.type!=="team"?void 0:org.id;if(client.config.currentTeam=currentTeam,rootDirectory&&await validateRootDirectory(cwd,join4(cwd,rootDirectory),project&&orgSlug?`To change your Project Settings, go to https://vercel.com/${orgSlug}/${project.name}/settings`:"")===!1)return 1;if(!singleFile&&!parsedArguments.flags["--dry"]&&!prebuilt&&!hasLocalConfigOverride()&&await promptExperimentalServicesMigration({client,cwd:join4(cwd,rootDirectory||""),autoConfirm:!!parsedArguments.flags["--yes"],nonInteractive:client.nonInteractive})&&(localConfig=readLocalConfig(join4(cwd,rootDirectory||""))),rootDirectory){let rootDirectoryPath=join4(cwd,rootDirectory);await compileConfigUnlessOverridden(rootDirectoryPath);let rootDirectoryConfig=readLocalConfig(rootDirectoryPath);rootDirectoryConfig?(debug(`Read local config from root directory (${rootDirectory})`),localConfig=rootDirectoryConfig):localConfig&&output_manager_default.print(`${prependEmoji(`The ${highlight(localConfig[import_client.fileNameSymbol])} file should be inside of the provided root directory.`,emoji("warning"))}
32
- `)}localConfig=localConfig||{};let servePageAtRoot=!singleFile&&!parsedArchive&&isStaticFolderDeploy(project,localConfig,rootDirectory);if(parsedArguments.flags["--dry"])try{let summary=await(0,import_client.inspectDeploymentFiles)({path:uploadRoot,archive:parsedArchive?"tgz":void 0,debug:output_manager_default.isDebugEnabled(),prebuilt,vercelOutputDir,projectName:project.name,rootDirectory,bulkRedirectsPath:localConfig.bulkRedirectsPath,servePageAtRoot}),{resolveDeploymentFrameworkPreset}=await import("../../chunks/resolve-deployment-framework-preset-BLMQLCIN.js"),framework=resolveDeploymentFrameworkPreset({localFramework:localConfig.framework,projectFramework:project.framework});singleFile&&(summary.basePath=singleFile),summary.warning&&printPrebuiltFilePathMapIgnoreWarning(summary.warning,telemetryClient);let warnings=summary.referenceWarning?[reportSkippedPrebuiltReferences(summary.referenceWarning)]:[];return await printDeploymentDryRun(client,summary,framework,asJson||!client.stdout.isTTY,warnings),0}catch(err){return printError(err),1}if(deployedBefore&&!await deployedBefore)return refuseDefaultFirstDeployment(!1);localConfig.name&&output_manager_default.print(`${prependEmoji(`The ${code("name")} property in ${highlight(localConfig[import_client.fileNameSymbol])} is deprecated (https://vercel.link/name-prop)`,emoji("warning"))}
32
+ `)}localConfig=localConfig||{};let servePageAtRoot=!singleFile&&!parsedArchive&&isStaticFolderDeploy(project,localConfig,rootDirectory);if(parsedArguments.flags["--dry"])try{let summary=await(0,import_client.inspectDeploymentFiles)({path:uploadRoot,archive:parsedArchive?"tgz":void 0,debug:output_manager_default.isDebugEnabled(),prebuilt,vercelOutputDir,projectName:project.name,rootDirectory,bulkRedirectsPath:localConfig.bulkRedirectsPath,servePageAtRoot}),{resolveDeploymentFrameworkPreset}=await import("../../chunks/resolve-deployment-framework-preset-SCQCWANF.js"),framework=resolveDeploymentFrameworkPreset({localFramework:localConfig.framework,projectFramework:project.framework});singleFile&&(summary.basePath=singleFile),summary.warning&&printPrebuiltFilePathMapIgnoreWarning(summary.warning,telemetryClient);let warnings=summary.referenceWarning?[reportSkippedPrebuiltReferences(summary.referenceWarning)]:[];return await printDeploymentDryRun(client,summary,framework,asJson||!client.stdout.isTTY,warnings),0}catch(err){return printError(err),1}if(deployedBefore&&!await deployedBefore)return refuseDefaultFirstDeployment(!1);localConfig.name&&output_manager_default.print(`${prependEmoji(`The ${code("name")} property in ${highlight(localConfig[import_client.fileNameSymbol])} is deprecated (https://vercel.link/name-prop)`,emoji("warning"))}
33
33
  `);let isObject=item=>Object.prototype.toString.call(item)==="[object Object]";if(typeof localConfig.env<"u"&&!isObject(localConfig.env))return error(`The ${code("env")} property in ${highlight(localConfig[import_client.fileNameSymbol])} needs to be an object`),1;if(typeof localConfig.build<"u"){if(!isObject(localConfig.build))return error(`The ${code("build")} property in ${highlight(localConfig[import_client.fileNameSymbol])} needs to be an object`),1;if(typeof localConfig.build.env<"u"&&!isObject(localConfig.build.env))return error(`The ${code("build.env")} property in ${highlight(localConfig[import_client.fileNameSymbol])} needs to be an object`),1}let meta=Object.assign({},parseMeta(localConfig.meta),cliMeta,singleFile?singleFileMeta:{}),gitMetadata=singleFile?Promise.resolve(void 0):client.withTrace("vc.cli.deploy.git_metadata",()=>createGitMeta(join4(cwd,project.rootDirectory||""),project));gitMetadata.catch(()=>{});let deploymentEnv=Object.assign({},parseEnv(localConfig.env),parseEnv(parsedArguments.flags["--env"])),deploymentBuildEnv=Object.assign({},parseEnv(localConfig.build&&localConfig.build.env),parseEnv(parsedArguments.flags["--build-env"]));try{await addProcessEnv(log,deploymentEnv),await addProcessEnv(log,deploymentBuildEnv)}catch(err){return error((0,import_error_utils2.errorToString)(err)),1}let regionFlag=(parsedArguments.flags["--regions"]||"").split(",").map(s=>s.trim()).filter(Boolean),regions=regionFlag.length>0?regionFlag:localConfig.regions,now=new Now({client,currentTeam}),reportedWarnings=()=>now.cliWarnings.length>0?{warnings:now.cliWarnings}:{},deployStamp=stamp_default(),deployment=null,noWait=!!parsedArguments.flags["--no-wait"],withFullLogs=!!parsedArguments.flags["--logs"],localConfigurationOverrides=pickOverrides(localConfig),name=project.name;if(!name)throw new Error("`name` not found on project or provided by existing project");try{let autoAssignCustomDomains=parsedArguments.flags["--skip-domain"]?!1:void 0,createArgs={name,project:project.id,env:deploymentEnv,build:{env:deploymentBuildEnv},buildMachine,forceNew:parsedArguments.flags["--force"],withCache:parsedArguments.flags["--with-cache"],prebuilt,anonymous:isAnonymous,vercelOutputDir,rootDirectory,quiet,nowConfig:{...localConfig,images:void 0},regions,meta,gitMetadata,deployStamp,target,skipAutoDetectionConfirmation:autoConfirm||isAnonymous,noWait,withFullLogs,autoAssignCustomDomains,agentName:client.agentName,jsonOutput:asJson,servePageAtRoot,linkedProject:project,lookUpLinkedProject,firstDeployment:!isRemoteLookupSkippedLink(link)&&Array.isArray(project.latestDeployments)&&project.latestDeployments.length===0};(!localConfig.builds||localConfig.builds.length===0)&&(createArgs.projectSettings={sourceFilesOutsideRootDirectory,rootDirectory,...localConfigurationOverrides,...singleFile&&singleFileProjectSettings});let{packageJson}=singleFile?{packageJson:null}:await(0,import_build_utils2.findPackageJson)(join4(cwd,project?.rootDirectory??""),!0,cwd),nodeVersion;if(packageJson?.engines?.node)try{let{range}=await(0,import_build_utils2.getSupportedNodeVersion)(packageJson.engines.node);nodeVersion=range}catch(error2){error2 instanceof Error&&output_manager_default.warn(error2.message)}if(createArgs.projectSettings||(createArgs.projectSettings={}),isAnonymous&&!Object.hasOwn(localConfig,"framework")&&createArgs.projectSettings.framework===void 0&&prebuiltBuild?.detectedFramework?.status==="detected"&&prebuiltBuild.detectedFramework.slug&&(createArgs.projectSettings.framework=prebuiltBuild.detectedFramework.slug),createArgs.projectSettings.nodeVersion=nodeVersion,deployment=await createDeploy(client,now,contextName,uploadRoot,createArgs,org,!project,parsedArchive?"tgz":void 0),deployment&&!(deployment instanceof Error)&&telemetryClient.trackDeploymentId(deployment.id),deployment instanceof NotDomainOwner)return recordCliError({code:"not_domain_owner"}),client.nonInteractive?(client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"not_domain_owner",...reportedWarnings(),message:deployment.message,next:[{command:redeployCommand,when:"retry deploy"}]},null,2)}
34
34
  `),1):(output_manager_default.error(deployment.message),1);if(deployment instanceof Error){let deployError=cliErrorFromUnknown(deployment);recordCliError({...deployError,code:deployError.code??"deploy_failed"});let msg=deployment.message||"An unexpected error occurred while deploying your project";return client.nonInteractive?(client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"deploy_failed",...reportedWarnings(),message:msg,next:[{command:redeployCommand,when:"retry deploy"}]},null,2)}
35
35
  `),1):(output_manager_default.error(msg,void 0,"https://vercel.link/help","Contact Support"),1)}if(deployment.readyState==="CANCELED"){if(recordCliError({code:"deployment_canceled"}),asJson){output_manager_default.stopSpinner();let deploymentJson=getDeploymentOutputJson(deployment,client.apiUrl,{name:"DEPLOYMENT_CANCELED",message:"The deployment has been canceled."}),payload=client.nonInteractive?{status:AGENT_STATUS.ERROR,reason:"deployment_canceled",message:"The deployment has been canceled.",deployment:deploymentJson,next:[{command:redeployCommand,when:"retry deploy"}]}:deploymentJson;client.stdout.write(`${JSON.stringify(payload,null,2)}
@@ -39,21 +39,21 @@ ${next.map(step=>`To ${step.when}:
39
39
  `),1):(error("Uploading failed. Please try again."),1)}catch(err){recordCliError(cliErrorFromUnknown(err)),(0,import_error_utils2.isError)(err)&&debug(`Error: ${err}
40
40
  ${err.stack}`);let anonymousExitCode=await handleAnonymousDeploymentError({client,cwd,error:err,link:anonymousLink,isV0,retry:()=>handleDefaultDeploy(client,telemetryClient)});if(anonymousExitCode!==void 0)return anonymousExitCode;if(err instanceof UploadErrorMissingArchive)return client.nonInteractive?(client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"missing_archive",...reportedWarnings(),message:err.message,next:[{command:redeployCommand,when:"retry deploy"}]},null,2)}
41
41
  `),1):(output_manager_default.prettyError(err),1);if(err instanceof NotDomainOwner)return recordCliError({code:"not_domain_owner"},{override:!0}),client.nonInteractive?(client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"not_domain_owner",...reportedWarnings(),message:err.message,next:[{command:redeployCommand,when:"retry deploy"}]},null,2)}
42
- `),1):(output_manager_default.error(err.message),1);if(err instanceof DomainNotFound&&err.meta&&err.meta.domain){output_manager_default.debug(`The domain ${err.meta.domain} was not found, trying to purchase it`);let{default:purchaseDomainIfAvailable}=await import("../../chunks/purchase-domain-if-available-QH2OHRLZ.js"),purchase=await purchaseDomainIfAvailable(client,err.meta.domain,contextName);return purchase===!0?(output_manager_default.success(`Successfully purchased the domain ${err.meta.domain}!`),0):typeof purchase=="object"&&!(purchase instanceof Error)?(output_manager_default.log(`${err.meta.domain} is already registered to ${contextName} by an earlier purchase. This run's order ${purchase.orderId} ${purchase.orderOutcome==="refunded"?"failed, and its charge was refunded":"failed"}.`),0):purchase===!1||purchase instanceof UserAborted?(handleCreateDeployError(deployment,localConfig),1):(handleCreateDeployError(purchase,localConfig)!==1&&output_manager_default.error(purchase.message),1)}if(err instanceof DomainNotFound||err instanceof DomainNotVerified||err instanceof NotDomainOwner||err instanceof DomainPermissionDenied||err instanceof DomainVerificationFailed||err instanceof SchemaValidationFailed||err instanceof InvalidDomain||err instanceof DeploymentNotFound||err instanceof BuildsRateLimited||err instanceof DeploymentsRateLimited||err instanceof AliasDomainConfigured||err instanceof MissingBuildScript||err instanceof ConflictingFilePath||err instanceof ConflictingPathSegment||err instanceof ConflictingConfigFiles)return client.nonInteractive&&client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"deploy_failed",...reportedWarnings(),message:err instanceof Error?err.message:String(err),next:[{command:redeployCommand,when:"retry deploy"}]},null,2)}
42
+ `),1):(output_manager_default.error(err.message),1);if(err instanceof DomainNotFound&&err.meta&&err.meta.domain){output_manager_default.debug(`The domain ${err.meta.domain} was not found, trying to purchase it`);let{default:purchaseDomainIfAvailable}=await import("../../chunks/purchase-domain-if-available-YVVGT7MZ.js"),purchase=await purchaseDomainIfAvailable(client,err.meta.domain,contextName);return purchase===!0?(output_manager_default.success(`Successfully purchased the domain ${err.meta.domain}!`),0):typeof purchase=="object"&&!(purchase instanceof Error)?(output_manager_default.log(`${err.meta.domain} is already registered to ${contextName} by an earlier purchase. This run's order ${purchase.orderId} ${purchase.orderOutcome==="refunded"?"failed, and its charge was refunded":"failed"}.`),0):purchase===!1||purchase instanceof UserAborted?(handleCreateDeployError(deployment,localConfig),1):(handleCreateDeployError(purchase,localConfig)!==1&&output_manager_default.error(purchase.message),1)}if(err instanceof DomainNotFound||err instanceof DomainNotVerified||err instanceof NotDomainOwner||err instanceof DomainPermissionDenied||err instanceof DomainVerificationFailed||err instanceof SchemaValidationFailed||err instanceof InvalidDomain||err instanceof DeploymentNotFound||err instanceof BuildsRateLimited||err instanceof DeploymentsRateLimited||err instanceof AliasDomainConfigured||err instanceof MissingBuildScript||err instanceof ConflictingFilePath||err instanceof ConflictingPathSegment||err instanceof ConflictingConfigFiles)return client.nonInteractive&&client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"deploy_failed",...reportedWarnings(),message:err instanceof Error?err.message:String(err),next:[{command:redeployCommand,when:"retry deploy"}]},null,2)}
43
43
  `),handleCreateDeployError(err,localConfig),1;if(err instanceof BuildError){let buildFailedNext=[...now.url?[{command:withGlobalFlags(client,`inspect ${now.url} --logs`),when:"read build logs"}]:[],{command:redeployCommand,when:"retry deploy"}];if(now.url)try{let failedDeployment=await getDeployment(client,contextName,now.url);if(asJson){output_manager_default.stopSpinner();let deploymentJson=getDeploymentOutputJson({...failedDeployment,cliWarnings:now.cliWarnings},client.apiUrl,{name:"BUILD_ERROR",message:err.message}),payload=client.nonInteractive?{status:AGENT_STATUS.ERROR,reason:"build_failed",message:err.message,deployment:deploymentJson,next:buildFailedNext}:deploymentJson;client.stdout.write(`${JSON.stringify(payload,null,2)}
44
- `)}else if(withFullLogs===!1){let{displayBuildLogsUntilFinalError}=await import("../../chunks/logs-E3RZLAT2.js");await displayBuildLogsUntilFinalError(client,failedDeployment,err.message)}}catch{if(asJson){output_manager_default.stopSpinner();let payload=client.nonInteractive?{status:AGENT_STATUS.ERROR,reason:"build_failed",...reportedWarnings(),message:err.message,url:`https://${now.url}`,next:buildFailedNext}:{error:{name:"BUILD_ERROR",message:err.message},url:`https://${now.url}`,...reportedWarnings()};client.stdout.write(`${JSON.stringify(payload,null,2)}
44
+ `)}else if(withFullLogs===!1){let{displayBuildLogsUntilFinalError}=await import("../../chunks/logs-W4GZLDHE.js");await displayBuildLogsUntilFinalError(client,failedDeployment,err.message)}}catch{if(asJson){output_manager_default.stopSpinner();let payload=client.nonInteractive?{status:AGENT_STATUS.ERROR,reason:"build_failed",...reportedWarnings(),message:err.message,url:`https://${now.url}`,next:buildFailedNext}:{error:{name:"BUILD_ERROR",message:err.message},url:`https://${now.url}`,...reportedWarnings()};client.stdout.write(`${JSON.stringify(payload,null,2)}
45
45
  `)}else output_manager_default.log(`To check build logs run: ${getCommandName(`inspect ${now.url} --logs`)}`),output_manager_default.log(`Or inspect them in your browser at https://${now.url}/_logs`)}else client.nonInteractive&&(output_manager_default.stopSpinner(),client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"build_failed",...reportedWarnings(),message:err.message,next:buildFailedNext},null,2)}
46
46
  `));return 1}if(isAPIError(err)&&err.code==="size_limit_exceeded"){let{sizeLimit=0}=err,message=`File size limit exceeded (${(0,import_bytes.default)(sizeLimit)})`;return client.nonInteractive&&client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"size_limit_exceeded",...reportedWarnings(),message,next:[{command:redeployCommand,when:"retry deploy"}]},null,2)}
47
47
  `),error(message),1}return client.nonInteractive&&client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"deploy_failed",...reportedWarnings(),message:err instanceof Error?err.message:String(err),next:[{command:redeployCommand,when:"retry deploy"}]},null,2)}
48
- `),printError(err),1}let fetchedProject=isProjectReadLink(link)?project:await linkedProjectRead?.then(read=>read instanceof ProjectNotFound?void 0:read,()=>{}),[gitConnectCommand,protection]=await Promise.all([postDeployGuidanceEnabled?getGitConnectRecommendation(client,projectCwd,project,{alreadyOffered:"gitConnectOffered"in link&&link.gitConnectOffered===!0,fetchedProject}):void 0,anonymousLink?null:getEnabledProtection(client,project,fetchedProject)]),anonymousUrl=anonymousLink?deployment.alias?.[0]:void 0,verification;if(verify){let verifyUrl=anonymousUrl?`https://${anonymousUrl}`:getProductionUrl(deployment)??`https://${deployment.url}`;output_manager_default.spinner(`Loading ${verifyUrl}\u2026`,0),verification=await verifyDeployment(client,verifyUrl,{project:anonymousLink?void 0:project,org:anonymousLink?void 0:org,protectionEnabled:getProtectionForDeployment(protection,deployment).length>0,deploymentUrl:`https://${deployment.url}`}),output_manager_default.stopSpinner(),verification.ok||recordCliError({code:"verification_failed"})}if(asJson){output_manager_default.stopSpinner();let deploymentJson={...getDeploymentOutputJson(deployment,client.apiUrl),...anonymousLink?{expiresAt:anonymousLink.expiresAt,claimUrl:anonymousLink.claimUrl}:{},...anonymousUrl?{url:`https://${anonymousUrl}`,inspectorUrl:null,productionUrl:null}:{},...anonymousLink?{}:{deploymentProtection:protection?.map(method=>method.id)??null},...verification?{verification}:{}};if(verification&&!verification.ok){let message=formatVerificationFailure(verification),payload2=client.nonInteractive?{status:AGENT_STATUS.ERROR,reason:"verification_failed",message,deployment:deploymentJson,next:[{command:`${packageName} curl ${verification.url}`,when:"See the full response"},{command:withGlobalFlags(client,`inspect ${deployment.url} --logs`),when:"read build logs"}]}:{...deploymentJson,error:{name:"VERIFICATION_FAILED",message}};return client.stdout.write(`${JSON.stringify(payload2,null,2)}
49
- `),1}let isProduction=deployment.target==="production",isImplicitProduction=isProduction&&target!=="production",payload=client.nonInteractive?{status:AGENT_STATUS.OK,deployment:deploymentJson,message:anonymousLink?`Anonymous deployment ${anonymousUrl??deployment.url} ready. It expires in ${(0,import_ms.default)(anonymousLink.expiresAt-Date.now(),{long:!0})}. Claim it at ${anonymousLink.claimUrl} to keep it.`:formatReadyMessage(deployment.url,deploymentJson.productionUrl),...isImplicitProduction?{hint:"This is the project\u2019s first deployment, so it was assigned to production. Future deployments will be preview deployments unless you use --prod."}:{},next:anonymousLink?[{command:redeployCommand,when:"Redeploy changes to the same anonymous deployment"},{command:withGlobalFlags(client,"login"),when:"Create an account to keep deploying"}]:[...gitConnectCommand?[{command:gitConnectCommand,when:"Automatically deploy changes on every push"}]:[],...verification?[]:[{command:`${packageName} curl ${deploymentJson.productionUrl??`https://${deployment.url}`}`,when:"Verify deployment, including when Deployment Protection is enabled"}],{command:withGlobalFlags(client,`inspect ${deployment.url}`),when:"Inspect deployment"},...isImplicitProduction?[{command:withGlobalFlags(client,`remove ${deployment.id}`),when:"Delete this deployment and its production alias. The command stops and asks for a person's approval first."}]:[],...isProduction?[]:[{command:singleFile?withGlobalFlags(client,`deploy ${quoteArg(singleFile)} --prod${singleFileTarget??""}`):withGlobalFlags(client,"deploy --prod"),when:"Promote to production"}]]}:deploymentJson;return client.stdout.write(`${JSON.stringify(payload,null,2)}
48
+ `),printError(err),1}let fetchedProject=isProjectReadLink(link)?project:await linkedProjectRead?.then(read=>read instanceof ProjectNotFound?void 0:read,()=>{}),[gitConnectCommand,protection]=await Promise.all([postDeployGuidanceEnabled?getGitConnectRecommendation(client,projectCwd,project,{alreadyOffered:"gitConnectOffered"in link&&link.gitConnectOffered===!0,fetchedProject}):void 0,anonymousLink?null:getEnabledProtection(client,project,fetchedProject)]),anonymousUrl=anonymousLink?deployment.alias?.[0]:void 0,claimUrl=anonymousLink?.claimUrl,expiresIn=anonymousLink?(0,import_ms.default)(anonymousLink.expiresAt-Date.now(),{long:!0}):void 0,verification;if(verify){let verifyUrl=anonymousUrl?`https://${anonymousUrl}`:getProductionUrl(deployment)??`https://${deployment.url}`;output_manager_default.spinner(`Loading ${verifyUrl}\u2026`,0),verification=await verifyDeployment(client,verifyUrl,{project:anonymousLink?void 0:project,org:anonymousLink?void 0:org,protectionEnabled:getProtectionForDeployment(protection,deployment).length>0,deploymentUrl:`https://${deployment.url}`}),output_manager_default.stopSpinner(),verification.ok||recordCliError({code:"verification_failed"})}if(asJson){output_manager_default.stopSpinner();let deploymentJson={...getDeploymentOutputJson(deployment,client.apiUrl),...anonymousLink?{expiresAt:anonymousLink.expiresAt,claimUrl}:{},...anonymousUrl?{url:`https://${anonymousUrl}`,inspectorUrl:null,productionUrl:null}:{},...anonymousLink?{}:{deploymentProtection:protection?.map(method=>method.id)??null},...verification?{verification}:{}};if(verification&&!verification.ok){let message=formatVerificationFailure(verification),payload2=client.nonInteractive?{status:AGENT_STATUS.ERROR,reason:"verification_failed",message,deployment:deploymentJson,next:[{command:`${packageName} curl ${verification.url}`,when:"See the full response"},{command:withGlobalFlags(client,`inspect ${deployment.url} --logs`),when:"read build logs"}]}:{...deploymentJson,error:{name:"VERIFICATION_FAILED",message}};return client.stdout.write(`${JSON.stringify(payload2,null,2)}
49
+ `),1}let isProduction=deployment.target==="production",isImplicitProduction=isProduction&&target!=="production",payload=client.nonInteractive?{status:AGENT_STATUS.OK,deployment:deploymentJson,message:anonymousLink?`Anonymous deployment ${anonymousUrl??deployment.url} ready. It expires in ${expiresIn}.${claimUrl?` Claim it at ${claimUrl} to keep it.`:""}`:formatReadyMessage(deployment.url,deploymentJson.productionUrl),...isImplicitProduction?{hint:"This is the project\u2019s first deployment, so it was assigned to production. Future deployments will be preview deployments unless you use --prod."}:{},next:anonymousLink?[{command:redeployCommand,when:"Redeploy changes to the same anonymous deployment"},{command:withGlobalFlags(client,"login"),when:"Create an account to keep deploying"}]:[...gitConnectCommand?[{command:gitConnectCommand,when:"Automatically deploy changes on every push"}]:[],...verification?[]:[{command:`${packageName} curl ${deploymentJson.productionUrl??`https://${deployment.url}`}`,when:"Verify deployment, including when Deployment Protection is enabled"}],{command:withGlobalFlags(client,`inspect ${deployment.url}`),when:"Inspect deployment"},...isImplicitProduction?[{command:withGlobalFlags(client,`remove ${deployment.id}`),when:"Delete this deployment and its production alias. The command stops and asks for a person's approval first."}]:[],...isProduction?[]:[{command:singleFile?withGlobalFlags(client,`deploy ${quoteArg(singleFile)} --prod${singleFileTarget??""}`):withGlobalFlags(client,"deploy --prod"),when:"Promote to production"}]]}:deploymentJson;return client.stdout.write(`${JSON.stringify(payload,null,2)}
50
50
  `),0}return anonymousLink&&(output_manager_default.print(`
51
- `),log(`This deployment expires in ${(0,import_ms.default)(anonymousLink.expiresAt-Date.now(),{long:!0})}. Claim it to keep it live (don't share this link): ${import_chalk.default.cyan(anonymousLink.claimUrl)}`)),await printDeploymentStatus(client,deployment,deployStamp,noWait,postDeployGuidanceEnabled,void 0,gitConnectCommand,getProtectionForDeployment(protection,deployment).map(method=>method.name),verification)}function handleCreateDeployError(error,localConfig){if(error instanceof InvalidDomain)return output_manager_default.error(`The domain ${error.meta.domain} is not valid`),1;if(error instanceof DomainVerificationFailed)return output_manager_default.error(`The domain used as a suffix ${import_chalk.default.underline(error.meta.domain)} is not verified and can't be used as custom suffix.`),1;if(error instanceof DomainPermissionDenied)return output_manager_default.error(`You don't have permissions to access the domain used as a suffix ${import_chalk.default.underline(error.meta.domain)}.`),1;if(error instanceof SchemaValidationFailed){let niceError=(0,import_build_utils2.getPrettyError)(error.meta),fileName=localConfig[import_client.fileNameSymbol]||"vercel.json";return niceError.message=`Invalid ${fileName} - ${niceError.message}`,output_manager_default.prettyError(niceError),1}if(error instanceof TooManyRequests)return output_manager_default.error(`Too many requests detected for ${error.meta.api} API. Try again in ${(0,import_ms.default)(error.meta.retryAfterMs,{long:!0})}.`),1;if(error instanceof DomainNotVerified)return output_manager_default.error(`The domain used as an alias ${import_chalk.default.underline(error.meta.domain)} is not verified yet. Please verify it.`),1;if(error instanceof BuildsRateLimited){output_manager_default.error(error.message);let cta=getErrorCta(error.meta);return output_manager_default.note(cta?`${cta.label}: ${link_default(cta.url)}`:"Upgrade your plan to increase your builds limit."),1}return error instanceof DeploymentNotFound||error instanceof NotDomainOwner||error instanceof DeploymentsRateLimited||error instanceof AliasDomainConfigured||error instanceof MissingBuildScript||error instanceof ConflictingFilePath||error instanceof ConflictingPathSegment||error instanceof ConflictingConfigFiles||error instanceof DeprecatedNowJson?(output_manager_default.error(error.message),1):error}async function printDeploymentDryRun(client,summary,framework,asJson,warnings){let directories=getDirectoryDistribution(summary.files),largestFiles=[...summary.files].sort((a,b)=>b.size-a.size||a.path.localeCompare(b.path)).slice(0,10);if(asJson){client.stdout.write(`${JSON.stringify({framework,basePath:summary.basePath,fileCount:summary.fileCount,totalSize:summary.totalSize,ignoredCount:summary.ignoredCount,ignored:summary.ignored,...summary.warning?{warning:{code:"PREBUILT_FILEPATHMAP_IGNORED",message:summary.warning}}:{},...warnings.length>0?{warnings}:{},directories,largestFiles,files:summary.files},null,2)}
51
+ `),log(`This deployment expires in ${expiresIn}.${claimUrl?` Claim it to keep it live (don't share this link): ${import_chalk.default.cyan(claimUrl)}`:""}`)),await printDeploymentStatus(client,deployment,deployStamp,noWait,postDeployGuidanceEnabled,void 0,gitConnectCommand,getProtectionForDeployment(protection,deployment).map(method=>method.name),verification)}function handleCreateDeployError(error,localConfig){if(error instanceof InvalidDomain)return output_manager_default.error(`The domain ${error.meta.domain} is not valid`),1;if(error instanceof DomainVerificationFailed)return output_manager_default.error(`The domain used as a suffix ${import_chalk.default.underline(error.meta.domain)} is not verified and can't be used as custom suffix.`),1;if(error instanceof DomainPermissionDenied)return output_manager_default.error(`You don't have permissions to access the domain used as a suffix ${import_chalk.default.underline(error.meta.domain)}.`),1;if(error instanceof SchemaValidationFailed){let niceError=(0,import_build_utils2.getPrettyError)(error.meta),fileName=localConfig[import_client.fileNameSymbol]||"vercel.json";return niceError.message=`Invalid ${fileName} - ${niceError.message}`,output_manager_default.prettyError(niceError),1}if(error instanceof TooManyRequests)return output_manager_default.error(`Too many requests detected for ${error.meta.api} API. Try again in ${(0,import_ms.default)(error.meta.retryAfterMs,{long:!0})}.`),1;if(error instanceof DomainNotVerified)return output_manager_default.error(`The domain used as an alias ${import_chalk.default.underline(error.meta.domain)} is not verified yet. Please verify it.`),1;if(error instanceof BuildsRateLimited){output_manager_default.error(error.message);let cta=getErrorCta(error.meta);return output_manager_default.note(cta?`${cta.label}: ${link_default(cta.url)}`:"Upgrade your plan to increase your builds limit."),1}return error instanceof DeploymentNotFound||error instanceof NotDomainOwner||error instanceof DeploymentsRateLimited||error instanceof AliasDomainConfigured||error instanceof MissingBuildScript||error instanceof ConflictingFilePath||error instanceof ConflictingPathSegment||error instanceof ConflictingConfigFiles||error instanceof DeprecatedNowJson?(output_manager_default.error(error.message),1):error}async function printDeploymentDryRun(client,summary,framework,asJson,warnings){let directories=getDirectoryDistribution(summary.files),largestFiles=[...summary.files].sort((a,b)=>b.size-a.size||a.path.localeCompare(b.path)).slice(0,10);if(asJson){client.stdout.write(`${JSON.stringify({framework,basePath:summary.basePath,fileCount:summary.fileCount,totalSize:summary.totalSize,ignoredCount:summary.ignoredCount,ignored:summary.ignored,...summary.warning?{warning:{code:"PREBUILT_FILEPATHMAP_IGNORED",message:summary.warning}}:{},...warnings.length>0?{warnings}:{},directories,largestFiles,files:summary.files},null,2)}
52
52
  `);return}let lines=[`${import_chalk.default.bold("Deployment Dry Run")}
53
53
  `,`${import_chalk.default.bold("Detected Framework Preset")}: ${framework.name}${framework.slug?` (${framework.slug})`:""}`,`Included: ${summary.fileCount} ${pluralize("file",summary.fileCount)}, ${formatBytes(summary.totalSize)}`,`Ignored: ${summary.ignoredCount} ${pluralize("path",summary.ignoredCount)}
54
- `],{default:table}=await import("../../chunks/table-SCLK33K7.js");directories.length>0&&lines.push(table([["Path","Files","Size"],...directories.map(item=>[item.path,String(item.fileCount),formatBytes(item.size)])],{align:["l","r","r"],hsep:4}),""),largestFiles.length>0&&lines.push(import_chalk.default.bold("Largest Files"),table(largestFiles.map(file=>[file.path,formatBytes(file.size)]),{align:["l","r"],hsep:4}),""),output_manager_default.print(`${lines.join(`
54
+ `],{default:table}=await import("../../chunks/table-3DCL552W.js");directories.length>0&&lines.push(table([["Path","Files","Size"],...directories.map(item=>[item.path,String(item.fileCount),formatBytes(item.size)])],{align:["l","r","r"],hsep:4}),""),largestFiles.length>0&&lines.push(import_chalk.default.bold("Largest Files"),table(largestFiles.map(file=>[file.path,formatBytes(file.size)]),{align:["l","r"],hsep:4}),""),output_manager_default.print(`${lines.join(`
55
55
  `)}
56
- `)}function getDirectoryDistribution(files){let directories=new Map;for(let file of files){let[segment]=file.path.split("/"),key=file.path.includes("/")?segment:file.path,current=directories.get(key)??{path:key,fileCount:0,size:0};current.fileCount+=1,current.size+=file.size,directories.set(key,current)}return Array.from(directories.values()).sort((a,b)=>b.size-a.size||a.path.localeCompare(b.path))}function formatBytes(size){return import_bytes.default.format(size,{decimalPlaces:1})}function pluralize(word,count){return count===1?word:`${word}s`}var addProcessEnv=async(log,env)=>{let val;for(let key of Object.keys(env))if(!(typeof env[key]<"u"))if(val=process.env[key],typeof val=="string")log(`Reading ${import_chalk.default.bold(`"${import_chalk.default.bold(key)}"`)} from your env (as no value was specified)`),env[key]=val.replace(/^@/,"\\@");else throw new Error(`No value specified for env variable ${import_chalk.default.bold(`"${import_chalk.default.bold(key)}"`)} and it was not found in your env. If you meant to specify an environment to deploy to, use ${param("--environment")}`)};async function validatePrebuiltOutputDir(uploadRoot,vercelOutputDir){if(await resolvesInside(uploadRoot,vercelOutputDir))return!0;output_manager_default.fatal("Can't deploy the prebuilt output. With symbolic links resolved, it is not in the directory to upload."),printAlignedLabel("Directory",humanizePath(uploadRoot));let{isPlainPath}=await import("../../chunks/repo-root-DZ6WFHMP.js"),outputPath=relative(uploadRoot,vercelOutputDir).split(sep).join("/");return isPlainPath(outputPath)&&printAlignedLabel("Output",outputPath),output_manager_default.print(`
56
+ `)}function getDirectoryDistribution(files){let directories=new Map;for(let file of files){let[segment]=file.path.split("/"),key=file.path.includes("/")?segment:file.path,current=directories.get(key)??{path:key,fileCount:0,size:0};current.fileCount+=1,current.size+=file.size,directories.set(key,current)}return Array.from(directories.values()).sort((a,b)=>b.size-a.size||a.path.localeCompare(b.path))}function formatBytes(size){return import_bytes.default.format(size,{decimalPlaces:1})}function pluralize(word,count){return count===1?word:`${word}s`}var addProcessEnv=async(log,env)=>{let val;for(let key of Object.keys(env))if(!(typeof env[key]<"u"))if(val=process.env[key],typeof val=="string")log(`Reading ${import_chalk.default.bold(`"${import_chalk.default.bold(key)}"`)} from your env (as no value was specified)`),env[key]=val.replace(/^@/,"\\@");else throw new Error(`No value specified for env variable ${import_chalk.default.bold(`"${import_chalk.default.bold(key)}"`)} and it was not found in your env. If you meant to specify an environment to deploy to, use ${param("--environment")}`)};async function validatePrebuiltOutputDir(uploadRoot,vercelOutputDir){if(await resolvesInside(uploadRoot,vercelOutputDir))return!0;output_manager_default.fatal("Can't deploy the prebuilt output. With symbolic links resolved, it is not in the directory to upload."),printAlignedLabel("Directory",humanizePath(uploadRoot));let{isPlainPath}=await import("../../chunks/repo-root-STNOAHCH.js"),outputPath=relative(uploadRoot,vercelOutputDir).split(sep).join("/");return isPlainPath(outputPath)&&printAlignedLabel("Output",outputPath),output_manager_default.print(`
57
57
  Check the symbolic links in the path of the prebuilt output.
58
58
  `),!1}async function handleContinueDeployment({client,telemetryClient,deploymentId,cwd,deployStamp,noWait,org,vercelOutputDir,archive}){let{debug,error}=output_manager_default;if(debug(`Continuing deployment: ${deploymentId}`),!vercelOutputDir)return error("Could not determine vercel output directory"),1;if(!await validatePrebuiltOutputDir(cwd,vercelOutputDir))return 1;let token=client.authConfig.token;if(!token)return error("Missing authentication token"),1;output_manager_default.spinner("Continuing deployment\u2026",0);try{let finalDeployment=null,prebuiltFilePathMapWarning;for await(let event of(0,import_client.continueDeployment)({dispatcher:getFetchDispatcher(),apiUrl:client.apiUrl,debug:output_manager_default.isDebugEnabled(),deploymentId,archive,path:cwd,teamId:org.type==="team"?org.id:void 0,token,getAuthHeaders:client.getAuthHeaders,vercelOutputDir})){if(debug(`Event: ${event.type}`),event.type==="warning"&&"code"in event&&event.code==="PREBUILT_FILEPATHMAP_IGNORED"){let message=String(event.payload);prebuiltFilePathMapWarning={code:"PREBUILT_FILEPATHMAP_IGNORED",message},printPrebuiltFilePathMapIgnoreWarning(message,telemetryClient),client.stderr.isTTY&&output_manager_default.spinner("Continuing deployment\u2026",0);continue}if(event.type==="warning"&&"code"in event&&event.code===PREBUILT_REFERENCE_SKIPPED){reportSkippedPrebuiltReferences(String(event.payload)),client.stderr.isTTY&&output_manager_default.spinner("Continuing deployment\u2026",0);continue}if(event.type==="hashes-calculated"){let hashCount=Object.keys(event.payload).length;debug(`Calculated ${hashCount} hashes`)}if(event.type==="file-count"){let{total,missing}=event.payload;output_manager_default.spinner(`Uploading ${missing.length} of ${total.size} files\u2026`,0)}if(event.type==="file-uploaded"&&debug(`Uploaded: ${event.payload.file.names.join(" ")}`),event.type==="all-files-uploaded"&&output_manager_default.spinner("Continuing deployment\u2026",0),event.type==="created"){if(finalDeployment=event.payload,output_manager_default.stopSpinner(),finalDeployment.inspectorUrl&&printAlignedLabel("Inspect",import_chalk.default.cyan(finalDeployment.inspectorUrl)),isBlockedDeployment(finalDeployment))return handleBlockedDeployment(client,finalDeployment,!1,org.type==="team"?org.slug:void 0);let isProdDeployment=finalDeployment.target==="production",previewUrl=`https://${finalDeployment.url}`;if(printAlignedLabel(getDeploymentEnvironmentLabel(finalDeployment),import_chalk.default.cyan(previewUrl),isProdDeployment&&noWait?{gutter:"\u25B2"}:{}),noWait)return prebuiltFilePathMapWarning&&(finalDeployment.warning=prebuiltFilePathMapWarning),printDeploymentStatus(client,finalDeployment,deployStamp,noWait,!1);output_manager_default.spinner("Building\u2026",0)}if(event.type==="building"&&output_manager_default.spinner("Building\u2026",0),event.type==="ready"&&(finalDeployment=event.payload,output_manager_default.stopSpinner()),event.type==="alias-assigned"&&(finalDeployment=event.payload,output_manager_default.stopSpinner(),finalDeployment.target==="production"&&finalDeployment.alias&&finalDeployment.alias.length>0)){let prodUrl=`https://${finalDeployment.alias[0]}`;printAlignedLabel("Aliased",import_chalk.default.cyan(prodUrl),{gutter:"\u25B2"})}if(event.type==="checks-v2-failed")return output_manager_default.stopSpinner(),handleFailedCheckRuns(client,event.payload,!1);if(event.type==="blocked")return output_manager_default.stopSpinner(),handleBlockedDeployment(client,event.payload,!1,org.type==="team"?org.slug:void 0);if(event.type==="error"){output_manager_default.stopSpinner();let payload=event.payload;return recordCliError(cliErrorFromUnknown(payload)),error(payload.message||"An error occurred during deployment"),1}}return finalDeployment?(prebuiltFilePathMapWarning&&(finalDeployment.warning=prebuiltFilePathMapWarning),printDeploymentStatus(client,finalDeployment,deployStamp,noWait,!1)):(error("Deployment failed: no deployment returned"),1)}catch(err){return recordCliError(cliErrorFromUnknown(err)),output_manager_default.stopSpinner(),(0,import_error_utils2.isError)(err)?(debug(`Error: ${err}
59
59
  ${err.stack}`),error(err.message)):error("An unexpected error occurred"),1}}function rejectEnvPlaceholder(client,flags,helpTemplate){let envPlaceholder=findEnvPlaceholder(flags);if(!envPlaceholder)return;let message=`${envPlaceholder.flag} ${envPlaceholder.key} is still the placeholder ${ENV_VALUE_PLACEHOLDER}. Replace it with the Environment Variable's value.`,helpCommand=getCommandNamePlain(helpTemplate);return output_manager_default.error(`${message}