@vercel/cli-support 68.1.0-snapshot-f8c293166d1f → 68.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/dist/chunks/add-57EE2LQO.js +8 -0
  2. package/dist/chunks/{add-CDHMIDYR.js → add-DNRNPUU7.js} +1 -1
  3. package/dist/chunks/{add-JC2KSFHX.js → add-FLVE2M3L.js} +1 -1
  4. package/dist/chunks/{alerts-TMFON3SU.js → alerts-26PDHRBL.js} +1 -1
  5. package/dist/chunks/{build-ALEGEJFV.js → build-6WTRWW2M.js} +1 -1
  6. package/dist/chunks/{chunk-B6QW2OXJ.js → chunk-2STLJAXZ.js} +1 -1
  7. package/dist/chunks/{chunk-ELQO7254.js → chunk-2TUJJIYU.js} +1 -1
  8. package/dist/chunks/{chunk-4SI66IFC.js → chunk-2XQO6C7Q.js} +1 -1
  9. package/dist/chunks/{chunk-HMNIFPU2.js → chunk-33ETNP4M.js} +1 -1
  10. package/dist/chunks/{chunk-GTBPHJRJ.js → chunk-3F3WNT5K.js} +1 -1
  11. package/dist/chunks/{chunk-PNTKMD3A.js → chunk-42RUDD27.js} +1 -1
  12. package/dist/chunks/{chunk-2ACABADL.js → chunk-4MAA4BQD.js} +1 -1
  13. package/dist/chunks/{chunk-GHZ4YQCI.js → chunk-4OOHXEKI.js} +1 -1
  14. package/dist/chunks/{chunk-HJCMNBDK.js → chunk-4R7ICESH.js} +1 -1
  15. package/dist/chunks/{chunk-F6BUBFV2.js → chunk-54W7S4EV.js} +1 -1
  16. package/dist/chunks/{chunk-CX6QYE3Y.js → chunk-6KI5LJIB.js} +1 -1
  17. package/dist/chunks/{chunk-ZEGUFI44.js → chunk-6XXXPJBV.js} +1 -1
  18. package/dist/chunks/{chunk-PG3WQGEK.js → chunk-732HWE3P.js} +1 -1
  19. package/dist/chunks/{chunk-J7DIPT7M.js → chunk-76AOTUM2.js} +1 -1
  20. package/dist/chunks/{chunk-VV5TYUAT.js → chunk-76XUBFXI.js} +1 -1
  21. package/dist/chunks/{chunk-5RRSLENO.js → chunk-7CLATJZX.js} +1 -1
  22. package/dist/chunks/{chunk-Y2J2ESAE.js → chunk-7EI554V5.js} +1 -1
  23. package/dist/chunks/{chunk-YTBNOSND.js → chunk-7IHVCKUV.js} +1 -1
  24. package/dist/chunks/{chunk-TNNCGRBK.js → chunk-7OOCSVWT.js} +1 -1
  25. package/dist/chunks/{chunk-F2VXECRT.js → chunk-7TREJIPV.js} +1 -1
  26. package/dist/chunks/{chunk-VUB4NBD4.js → chunk-7ZCM4LWL.js} +1 -1
  27. package/dist/chunks/{chunk-FWYKEEQK.js → chunk-A7XRIU6Z.js} +1 -1
  28. package/dist/chunks/{chunk-SWWLPWX7.js → chunk-AASXSNBW.js} +1 -1
  29. package/dist/chunks/{chunk-PROENC6V.js → chunk-B7LM2BNN.js} +1 -1
  30. package/dist/chunks/{chunk-XBT7X2Q4.js → chunk-BB27VKHS.js} +1 -1
  31. package/dist/chunks/{chunk-IR3E37HD.js → chunk-BDLZ6WL2.js} +1 -1
  32. package/dist/chunks/{chunk-EYCKXHL4.js → chunk-C2R5IEN6.js} +1 -1
  33. package/dist/chunks/{chunk-I3NEZRVW.js → chunk-CHTFRAXA.js} +1 -1
  34. package/dist/chunks/{chunk-AJJIPBAG.js → chunk-CNGI6Z2G.js} +1 -1
  35. package/dist/chunks/{chunk-HG7NRFC5.js → chunk-CRPZYLIL.js} +1 -1
  36. package/dist/chunks/{chunk-DORCX7UB.js → chunk-CUO3CYU3.js} +1 -1
  37. package/dist/chunks/{chunk-2DH6LTUI.js → chunk-DRDY2UZX.js} +1 -1
  38. package/dist/chunks/{chunk-VSDLCOK3.js → chunk-DWA7B7TB.js} +1 -1
  39. package/dist/chunks/chunk-E6VQXHBD.js +11 -0
  40. package/dist/chunks/chunk-E7ICSU45.js +7 -0
  41. package/dist/chunks/{chunk-X5ZBXCCY.js → chunk-EDXNAXEZ.js} +1 -1
  42. package/dist/chunks/{chunk-O7FAYZU6.js → chunk-EGXRQ73P.js} +1 -1
  43. package/dist/chunks/chunk-EK7U42I4.js +9 -0
  44. package/dist/chunks/{chunk-UXAPG6IX.js → chunk-EPCRR72R.js} +1 -1
  45. package/dist/chunks/{chunk-VBCWRNS4.js → chunk-EZ3HXFLB.js} +1 -1
  46. package/dist/chunks/{chunk-AULX6RDR.js → chunk-FMLRVSWK.js} +1 -1
  47. package/dist/chunks/chunk-FO7OSSLI.js +13 -0
  48. package/dist/chunks/{chunk-PQQRSUUG.js → chunk-FSM7YM4W.js} +1 -1
  49. package/dist/chunks/{chunk-6ZD6IARJ.js → chunk-FSMZPHAA.js} +1 -1
  50. package/dist/chunks/chunk-FUH5PBGR.js +7 -0
  51. package/dist/chunks/{chunk-SSOWIDKG.js → chunk-GILTW5RJ.js} +1 -1
  52. package/dist/chunks/{chunk-6SYKGWTJ.js → chunk-GNQ7KLCN.js} +1 -1
  53. package/dist/chunks/{chunk-3YD5WA5R.js → chunk-GO64LSUW.js} +1 -1
  54. package/dist/chunks/{chunk-PKWSWWVW.js → chunk-GPVXJI6X.js} +1 -1
  55. package/dist/chunks/{chunk-ICPRMAKB.js → chunk-H43XHICL.js} +1 -1
  56. package/dist/chunks/{chunk-H2O53DAZ.js → chunk-HAAKXJ4V.js} +1 -1
  57. package/dist/chunks/{chunk-G7RQVFID.js → chunk-HDKEES7E.js} +4 -4
  58. package/dist/chunks/{chunk-CX4WJVNY.js → chunk-HT3CQEAF.js} +1 -1
  59. package/dist/chunks/{chunk-ZEBOIM34.js → chunk-HT5EXCYX.js} +1 -1
  60. package/dist/chunks/{chunk-Z3YQZSU4.js → chunk-HXIOR7P6.js} +1 -1
  61. package/dist/chunks/{chunk-KMTQYFJF.js → chunk-IKOVY76G.js} +1 -1
  62. package/dist/chunks/{chunk-MDWUJ7TA.js → chunk-ILNTOWHG.js} +1 -1
  63. package/dist/chunks/{chunk-MJ2HLVVL.js → chunk-ILUU3SGP.js} +3 -3
  64. package/dist/chunks/{chunk-2KJIWBJQ.js → chunk-IMZD7QEB.js} +2 -2
  65. package/dist/chunks/{chunk-57H5KQGN.js → chunk-IZOKMWU5.js} +1 -1
  66. package/dist/chunks/{chunk-7MBJ4YIK.js → chunk-JGEJY7AC.js} +1 -1
  67. package/dist/chunks/chunk-JJTAADC5.js +7 -0
  68. package/dist/chunks/{chunk-J4WXRM2Y.js → chunk-JK3NTR7T.js} +1 -1
  69. package/dist/chunks/{chunk-K45TGFUJ.js → chunk-JM7KUCBM.js} +1 -1
  70. package/dist/chunks/chunk-JPJ6HGAN.js +7 -0
  71. package/dist/chunks/{chunk-72CSJCJX.js → chunk-JRUL67UC.js} +2 -2
  72. package/dist/chunks/{chunk-P5IKPNRJ.js → chunk-K4J43D5J.js} +1 -1
  73. package/dist/chunks/{chunk-NFPO75IP.js → chunk-KDCLHZYL.js} +1 -1
  74. package/dist/chunks/{chunk-5KGALAC2.js → chunk-KDIICSD5.js} +1 -1
  75. package/dist/chunks/{chunk-DTEWQLNP.js → chunk-KNKGJD5J.js} +1 -1
  76. package/dist/chunks/{chunk-V7EJ7O6E.js → chunk-LBJ7EOZM.js} +1 -1
  77. package/dist/chunks/{chunk-WU22X5RO.js → chunk-LHK6B4ER.js} +1 -1
  78. package/dist/chunks/{chunk-NXFYKZVZ.js → chunk-LKFQMY5V.js} +1 -1
  79. package/dist/chunks/{chunk-HLJ2UIG6.js → chunk-LVPY2RTU.js} +1 -1
  80. package/dist/chunks/chunk-M3LYYAQ6.js +7 -0
  81. package/dist/chunks/{chunk-VG44VJB5.js → chunk-MEF5BUJ5.js} +1 -1
  82. package/dist/chunks/{chunk-AI32LWRL.js → chunk-MJKDKZ2J.js} +1 -1
  83. package/dist/chunks/{chunk-4HYZZASG.js → chunk-N4FZIVIS.js} +1 -1
  84. package/dist/chunks/{chunk-UE6M2VKP.js → chunk-NFBFXM6X.js} +1 -1
  85. package/dist/chunks/{chunk-JEACGNHI.js → chunk-O256QMQM.js} +1 -1
  86. package/dist/chunks/{chunk-NQPQRYHS.js → chunk-OICSITNU.js} +1 -1
  87. package/dist/chunks/{chunk-6SX4TE7Y.js → chunk-OXQKWOLS.js} +1 -1
  88. package/dist/chunks/chunk-P7GA2C6N.js +7 -0
  89. package/dist/chunks/{chunk-NNPXYFMY.js → chunk-PG5BHJVH.js} +1 -1
  90. package/dist/chunks/{chunk-XXPUBGJZ.js → chunk-PIGJVJNM.js} +2 -2
  91. package/dist/chunks/chunk-PP7BNCIG.js +7 -0
  92. package/dist/chunks/{chunk-AJ3KPZLM.js → chunk-PSMKLDLV.js} +1 -1
  93. package/dist/chunks/{chunk-BLA6V5UN.js → chunk-Q3R4HAAA.js} +1 -1
  94. package/dist/chunks/chunk-Q4W3R6U2.js +12 -0
  95. package/dist/chunks/{chunk-A4LOQ3UK.js → chunk-QAVUE3TR.js} +1 -1
  96. package/dist/chunks/{chunk-JJNTYM7J.js → chunk-QMI7GTT2.js} +1 -1
  97. package/dist/chunks/{chunk-UAPEASRH.js → chunk-QPNYOR6O.js} +1 -1
  98. package/dist/chunks/{chunk-UVBRWYYJ.js → chunk-QPPFQREO.js} +1 -1
  99. package/dist/chunks/{chunk-LNRKGW7S.js → chunk-QROPMCL2.js} +1 -1
  100. package/dist/chunks/{chunk-WPWGH5CA.js → chunk-QYAXCGZA.js} +1 -1
  101. package/dist/chunks/{chunk-UJINL7VK.js → chunk-R3ZPLQDI.js} +1 -1
  102. package/dist/chunks/{chunk-QDSDYOMV.js → chunk-R5KBPWWS.js} +1 -1
  103. package/dist/chunks/{chunk-C6AOL5RF.js → chunk-RACUGILV.js} +1 -1
  104. package/dist/chunks/{chunk-PKECY4JZ.js → chunk-RJB5Y7M4.js} +1 -1
  105. package/dist/chunks/{chunk-SHLKM7EZ.js → chunk-SWABNAKZ.js} +1 -1
  106. package/dist/chunks/{chunk-245QYIHU.js → chunk-T2IZUTGY.js} +1 -1
  107. package/dist/chunks/{chunk-3YNMC7FF.js → chunk-TL4AEZXF.js} +1 -1
  108. package/dist/chunks/chunk-TUPVVZ4I.js +7 -0
  109. package/dist/chunks/{chunk-B4IOZL3K.js → chunk-U3IPJYB6.js} +1 -1
  110. package/dist/chunks/{chunk-4JPDCF2O.js → chunk-UFE4RBZV.js} +1 -1
  111. package/dist/chunks/chunk-UK3VTHT5.js +7 -0
  112. package/dist/chunks/{chunk-X3A324UF.js → chunk-V2J5U5KQ.js} +1 -1
  113. package/dist/chunks/{chunk-X72FHJ6W.js → chunk-V7VHLSYL.js} +1 -1
  114. package/dist/chunks/{chunk-A3WRF4AB.js → chunk-VTAH7VMY.js} +1 -1
  115. package/dist/chunks/{chunk-NUS3WWST.js → chunk-WA4CPW3H.js} +1 -1
  116. package/dist/chunks/chunk-WKEDN5SX.js +9 -0
  117. package/dist/chunks/{chunk-Q2FGBONA.js → chunk-WQBNOQUT.js} +1 -1
  118. package/dist/chunks/{chunk-OD4RCBDD.js → chunk-WRTBYD4I.js} +1 -1
  119. package/dist/chunks/{chunk-GOH7QCG3.js → chunk-WS6UOPMS.js} +1 -1
  120. package/dist/chunks/chunk-X2UJGCIC.js +9 -0
  121. package/dist/chunks/{chunk-TR3M42DX.js → chunk-XHWA436J.js} +1 -1
  122. package/dist/chunks/{chunk-OVIWCH3S.js → chunk-XL6PE4AA.js} +1 -1
  123. package/dist/chunks/{chunk-AP2JY545.js → chunk-XPWLEGWA.js} +1 -1
  124. package/dist/chunks/{chunk-SPPOQ54P.js → chunk-XY2GGCHC.js} +1 -1
  125. package/dist/chunks/{chunk-T5DQCNBC.js → chunk-XZYVBYUY.js} +1 -1
  126. package/dist/chunks/{chunk-7JQBC2HB.js → chunk-Y45NZT7C.js} +1 -1
  127. package/dist/chunks/{chunk-4D4IP557.js → chunk-YATYCZQJ.js} +1 -1
  128. package/dist/chunks/{chunk-CKPY7TAQ.js → chunk-YIKXLWSR.js} +1 -1
  129. package/dist/chunks/{chunk-MHVM4VKT.js → chunk-YVWIDLY4.js} +5 -5
  130. package/dist/chunks/{chunk-RTIVLPN7.js → chunk-Z2NPMUPM.js} +1 -1
  131. package/dist/chunks/{chunk-EFQCGYZF.js → chunk-Z62G57GC.js} +1 -1
  132. package/dist/chunks/{chunk-KEFF3BL3.js → chunk-ZG7A4P5U.js} +1 -1
  133. package/dist/chunks/{chunk-RIVRPVTH.js → chunk-ZSJU5MJP.js} +1 -1
  134. package/dist/chunks/{chunk-YNNU3GPR.js → chunk-ZWPASRC2.js} +1 -1
  135. package/dist/chunks/{clear-FQ4L2ACT.js → clear-4MDTHLLE.js} +1 -1
  136. package/dist/chunks/{cli-embedded-CZYKFQ6U.js → cli-embedded-OYBJM5SA.js} +1 -1
  137. package/dist/chunks/{commands-Bx-lrmie-KJI5MSFW.js → commands-Bx-lrmie-W7FCFL4P.js} +1 -1
  138. package/dist/chunks/{compile-vercel-config-GUTXMJOP.js → compile-vercel-config-A2DMFB2R.js} +1 -1
  139. package/dist/chunks/{config-EEYAOPDR.js → config-4R62ATWJ.js} +1 -1
  140. package/dist/chunks/{config-4KECSIYK.js → config-A7DCP25J.js} +1 -1
  141. package/dist/chunks/{config-HiWLfXRQ-G4JC3PIR.js → config-HiWLfXRQ-D7JA4E3D.js} +1 -1
  142. package/dist/chunks/{connect-U3yG4EtI-KWEUMGCU.js → connect-U3yG4EtI-XYHDJQT7.js} +1 -1
  143. package/dist/chunks/{cp-aFe-HVrK-JGQPCT5R.js → cp-aFe-HVrK-UAGAR2BC.js} +1 -1
  144. package/dist/chunks/{create-ilHWvzSk-MPW7HE43.js → create-ilHWvzSk-7KWZXBE2.js} +1 -1
  145. package/dist/chunks/{create-project-FMUOSSNP.js → create-project-OA7KBPVU.js} +1 -1
  146. package/dist/chunks/{delete-LP4N4BXX.js → delete-DN53BRH7.js} +1 -1
  147. package/dist/chunks/{delete-JRMGVHFJ.js → delete-G4MAUBXZ.js} +1 -1
  148. package/dist/chunks/{describe-5M3XKRMV.js → describe-Q5D5GYVG.js} +1 -1
  149. package/dist/chunks/{detect-services-HCUFI3RJ.js → detect-services-VBKVN4A2.js} +1 -1
  150. package/dist/chunks/{disable-ZFDARZAF.js → disable-CG3R2VAL.js} +1 -1
  151. package/dist/chunks/{discard-PE5SSIDJ.js → discard-REGFZXFU.js} +1 -1
  152. package/dist/chunks/{dist-BGUQ47VG.js → dist-4F3LAB5Z.js} +1 -1
  153. package/dist/chunks/{dist-E4BMK7BO.js → dist-T2AURD3P.js} +1 -1
  154. package/dist/chunks/{domain-DGvr_U55-AZYOJW3J.js → domain-DGvr_U55-PNXSOVDO.js} +1 -1
  155. package/dist/chunks/{drives-Bi-Mnt2z-JAGBYE6W.js → drives-Bi-Mnt2z-Z4T2YY4P.js} +1 -1
  156. package/dist/chunks/{edit-BATH6ETJ.js → edit-7AUE6GXE.js} +1 -1
  157. package/dist/chunks/{edit-7S67WBSE.js → edit-HHLQDVOP.js} +1 -1
  158. package/dist/chunks/{enable-JWLWXAZP.js → enable-BV3N6GEL.js} +1 -1
  159. package/dist/chunks/{exec-Bwv4MDyN-SMCC4JHS.js → exec-Bwv4MDyN-7YUAVBB2.js} +1 -1
  160. package/dist/chunks/{exec-6WGVP2E2.js → exec-NYLXYXB5.js} +2 -2
  161. package/dist/chunks/{export-DASZMUUD.js → export-WUPMMHSX.js} +1 -1
  162. package/dist/chunks/{extend-D9tq9Cot-Z4ORB3B2.js → extend-D9tq9Cot-QT72AXGH.js} +1 -1
  163. package/dist/chunks/{fork-DQ6qfKqB-AJCZOGQR.js → fork-DQ6qfKqB-XXTHHUMZ.js} +1 -1
  164. package/dist/chunks/{future-CNLTCF2D.js → future-DJOUGRV4.js} +1 -1
  165. package/dist/chunks/{generate-cert-for-deploy-TCH3OY6G.js → generate-cert-for-deploy-PZHDFX3W.js} +1 -1
  166. package/dist/chunks/{groups-B8JVEeKk-J5CCQYWU.js → groups-B8JVEeKk-K57VTXSS.js} +1 -1
  167. package/dist/chunks/{image-CDRXKTJG.js → image-DX2IAUKJ.js} +1 -1
  168. package/dist/chunks/{import-builders-XI6CYID6.js → import-builders-IUEC2WN2.js} +1 -1
  169. package/dist/chunks/{inspect-FODCPYHT.js → inspect-BS5UPI6W.js} +1 -1
  170. package/dist/chunks/{inspect-I7NZH44Z.js → inspect-GJXLYJC7.js} +1 -1
  171. package/dist/chunks/{inspect-DSTHAT43.js → inspect-IHVP2M4H.js} +1 -1
  172. package/dist/chunks/{inspect-RSSQ5YKF.js → inspect-PBSKPN4W.js} +1 -1
  173. package/dist/chunks/{inspect-FCJC7XCN.js → inspect-Y7VXJEI2.js} +1 -1
  174. package/dist/chunks/{inspect-JFRSCAAW.js → inspect-YGVXE4HR.js} +1 -1
  175. package/dist/chunks/{list-NT2RHNIB.js → list-27R4USBV.js} +1 -1
  176. package/dist/chunks/{list-HWDVPR4V.js → list-2ZCNO6DY.js} +1 -1
  177. package/dist/chunks/{list-7K3LEJXV.js → list-TUST62E6.js} +1 -1
  178. package/dist/chunks/{list-QDBAXYKL.js → list-ZSQVIQXC.js} +1 -1
  179. package/dist/chunks/{list-iqQFvOHx-EWWTMITV.js → list-iqQFvOHx-PNAUIUQL.js} +1 -1
  180. package/dist/chunks/{login-WHXNCPDU.js → login-CUEQHDT5.js} +1 -1
  181. package/dist/chunks/login-YCOZROC2.js +7 -0
  182. package/dist/chunks/{logs-RDOQVAER.js → logs-W4GZLDHE.js} +1 -1
  183. package/dist/chunks/ls-27K5BB7Z.js +11 -0
  184. package/dist/chunks/{ls-ASWAYYAI.js → ls-EEJQIKNI.js} +1 -1
  185. package/dist/chunks/ls-PAL6FQB6.js +8 -0
  186. package/dist/chunks/{ls-7DUE3OKC.js → ls-TDYTE4HM.js} +1 -1
  187. package/dist/chunks/{ls-2PCKZKR7.js → ls-UMSUUQCG.js} +1 -1
  188. package/dist/chunks/{ls-PEFQHSG3.js → ls-W7C5I555.js} +1 -1
  189. package/dist/chunks/{ls-UQZB42CA.js → ls-XYEJ5MR6.js} +1 -1
  190. package/dist/chunks/{migrate-experimental-services-2E5TRQU6.js → migrate-experimental-services-556MHJWK.js} +1 -1
  191. package/dist/chunks/mutate-IELSY6ED.js +9 -0
  192. package/dist/chunks/{notifications-F2BUWHH4.js → notifications-GZH7CFZY.js} +1 -1
  193. package/dist/chunks/{open-5FUW57NF.js → open-EVYPUPNZ.js} +1 -1
  194. package/dist/chunks/{openapi-NZLMBOMR.js → openapi-S6F32ZQD.js} +1 -1
  195. package/dist/chunks/{permissions-ABXSL4I4.js → permissions-EHF5MNZP.js} +1 -1
  196. package/dist/chunks/{plugin-offer-IMTYE365.js → plugin-offer-RZADKNYF.js} +1 -1
  197. package/dist/chunks/{prompt-missing-credentials-3MKVB7HN.js → prompt-missing-credentials-OSAV5B7N.js} +1 -1
  198. package/dist/chunks/{publish-5AE7VXIO.js → publish-ZB2Q2YSB.js} +1 -1
  199. package/dist/chunks/pull-WUFIVXEG.js +7 -0
  200. package/dist/chunks/{purchase-domain-if-available-MU5TGXLG.js → purchase-domain-if-available-YVVGT7MZ.js} +1 -1
  201. package/dist/chunks/{push-SBTMPRZE.js → push-YWKZ6SOO.js} +1 -1
  202. package/dist/chunks/{query-5Q6ZV2TP.js → query-G62G25HV.js} +1 -1
  203. package/dist/chunks/{raw-query-OAYC3OTN.js → raw-query-WTKAOYCP.js} +1 -1
  204. package/dist/chunks/{read-BTA5slYO-TGRGDUB5.js → read-BTA5slYO-IJLWMNSS.js} +1 -1
  205. package/dist/chunks/{reauthenticate-PXEYMV7G.js → reauthenticate-WQZ5HISG.js} +1 -1
  206. package/dist/chunks/remove-7PSNAEDY.js +9 -0
  207. package/dist/chunks/{remove-CCa99nz9-52C5X3OV.js → remove-CCa99nz9-LCSNBDLT.js} +1 -1
  208. package/dist/chunks/{reorder-DT32UBAI.js → reorder-OLCKSATY.js} +1 -1
  209. package/dist/chunks/{reply-AMZ3Y3U5.js → reply-OVHQNEBO.js} +1 -1
  210. package/dist/chunks/{resolve-NPE5HKCT.js → resolve-TUHO4FHT.js} +1 -1
  211. package/dist/chunks/{resolve-agent-team-75WZ2VDR.js → resolve-agent-team-NQCRA6ER.js} +1 -1
  212. package/dist/chunks/{restore-IZHGW3NV.js → restore-5RLBSVYQ.js} +1 -1
  213. package/dist/chunks/{rm-MBWOLQZJ.js → rm-5RGN33Y5.js} +1 -1
  214. package/dist/chunks/rm-D7CWGBTV.js +8 -0
  215. package/dist/chunks/{rm-ILDCA66K.js → rm-FYU3GBLC.js} +1 -1
  216. package/dist/chunks/rm-HA752TW6.js +8 -0
  217. package/dist/chunks/{rm-G4U54YJT.js → rm-P6AGSBXP.js} +1 -1
  218. package/dist/chunks/{routes-GTTTHCOL.js → routes-7VLRHXT4.js} +1 -1
  219. package/dist/chunks/rule-inspect-Y2MX7LQN.js +8 -0
  220. package/dist/chunks/{run-D8obqfKw-VBME5UHC.js → run-D8obqfKw-D2EGHTU2.js} +1 -1
  221. package/dist/chunks/{schema-SKHPOMD7.js → schema-AJAHECZG.js} +1 -1
  222. package/dist/chunks/{schema-5FNNQEU5.js → schema-UVTYLX6L.js} +2 -2
  223. package/dist/chunks/{select-org-YRCPH5Z5.js → select-org-JBKKKZSN.js} +1 -1
  224. package/dist/chunks/{sessions-cvWvPgzc-XIYLOGFI.js → sessions-cvWvPgzc-FBOQQPU5.js} +1 -1
  225. package/dist/chunks/{set-V6QX5AZQ.js → set-774P7GEL.js} +1 -1
  226. package/dist/chunks/{set-WWREM57F.js → set-OWNTI5SM.js} +1 -1
  227. package/dist/chunks/setup-and-link-3LD4LQGE.js +7 -0
  228. package/dist/chunks/{sh-7olsIyJh-PKP4FF4F.js → sh-7olsIyJh-NFO2QYTK.js} +1 -1
  229. package/dist/chunks/{skills-5TXXGKN5.js → skills-W45E2EWS.js} +1 -1
  230. package/dist/chunks/{snapshot-D9MAspub-SROFKNVE.js → snapshot-D9MAspub-UAVA2YSK.js} +1 -1
  231. package/dist/chunks/{snapshots-DQjvm6St-4DTYO2IQ.js → snapshots-DQjvm6St-DBG4H2HS.js} +1 -1
  232. package/dist/chunks/{stop-SQX-uC-Q-MCMKSJVQ.js → stop-SQX-uC-Q-CRDQOA5M.js} +1 -1
  233. package/dist/chunks/{tags-SVOY7QEN.js → tags-DEIOW5MM.js} +1 -1
  234. package/dist/chunks/{types-NX7G6YBW.js → types-SYUZH46V.js} +1 -1
  235. package/dist/chunks/update-VG2LHBRV.js +8 -0
  236. package/dist/chunks/usage-NF6S3DAZ.js +17 -0
  237. package/dist/chunks/{users-CGEsQ4G8-BEKXN56N.js → users-CGEsQ4G8-POYTVZJV.js} +1 -1
  238. package/dist/chunks/{write-DixEhGqz-D34NI34B.js → write-DixEhGqz-YYDLLSJE.js} +1 -1
  239. package/dist/commands/build/index.js +1 -1
  240. package/dist/commands/deploy/index.js +5 -5
  241. package/dist/commands/dev/index.js +2 -2
  242. package/dist/commands/env/index.js +1 -1
  243. package/dist/commands/link/index.js +1 -1
  244. package/dist/commands/list/index.js +1 -1
  245. package/dist/commands/project/index.js +1 -1
  246. package/dist/commands/tunnel/index.js +1 -1
  247. package/dist/commands-account.js +101 -67
  248. package/dist/commands-ai.js +12 -12
  249. package/dist/commands-blob.js +1 -1
  250. package/dist/commands-core.js +7 -7
  251. package/dist/commands-deployments.js +1 -1
  252. package/dist/commands-flags.js +7 -7
  253. package/dist/commands-integrations.js +1 -1
  254. package/dist/commands-observability.js +2 -2
  255. package/dist/commands-routing.js +2 -2
  256. package/dist/help.js +1 -1
  257. package/dist/index.js +10 -8
  258. package/dist/internal-build.js +1 -1
  259. package/dist/package.json +8 -8
  260. package/dist/root-help-commands.mjs +1 -1
  261. package/dist/version.mjs +1 -1
  262. package/package.json +17 -17
  263. package/dist/chunks/add-56T4ON6W.js +0 -8
  264. package/dist/chunks/chunk-2V5IP6A5.js +0 -7
  265. package/dist/chunks/chunk-4HNNFJLO.js +0 -7
  266. package/dist/chunks/chunk-AWB4IKVC.js +0 -9
  267. package/dist/chunks/chunk-HI5PLVKM.js +0 -12
  268. package/dist/chunks/chunk-KVZR24QI.js +0 -7
  269. package/dist/chunks/chunk-NVU7XTNI.js +0 -11
  270. package/dist/chunks/chunk-OCX4QZ3X.js +0 -9
  271. package/dist/chunks/chunk-OK52DDU5.js +0 -9
  272. package/dist/chunks/chunk-PNN2Y2ZQ.js +0 -7
  273. package/dist/chunks/chunk-RDTWDVFO.js +0 -7
  274. package/dist/chunks/chunk-RWVYBRVF.js +0 -13
  275. package/dist/chunks/chunk-V45KKYNK.js +0 -7
  276. package/dist/chunks/chunk-XGCCTSBW.js +0 -7
  277. package/dist/chunks/chunk-XO2CZXGA.js +0 -7
  278. package/dist/chunks/login-RWXYD2CO.js +0 -7
  279. package/dist/chunks/ls-2OYMFZIB.js +0 -8
  280. package/dist/chunks/ls-XJZFHHWA.js +0 -11
  281. package/dist/chunks/mutate-QXTPOGVD.js +0 -9
  282. package/dist/chunks/pull-MGQ2TMA3.js +0 -7
  283. package/dist/chunks/remove-WSK5OYNV.js +0 -9
  284. package/dist/chunks/rm-HVDZJXME.js +0 -8
  285. package/dist/chunks/rm-JWMYMOKD.js +0 -8
  286. package/dist/chunks/rule-inspect-KZ7FNV26.js +0 -8
  287. package/dist/chunks/setup-and-link-STBOP67J.js +0 -7
  288. package/dist/chunks/update-AVWVPYK5.js +0 -8
  289. package/dist/chunks/usage-RUCM3AMF.js +0 -15
  290. /package/dist/chunks/{chunk-COOA33HY.js → chunk-OTIERMC7.js} +0 -0
  291. /package/dist/chunks/{chunk-O7AF7CLE.js → chunk-TIU3WJH7.js} +0 -0
@@ -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-YNNU3GPR.js";import{FIRST_DEPLOYMENT_PRODUCTION_NOTICE,hasEarlierDeployment,isNonProductionTarget,refuseFirstDeployment}from"../../chunks/chunk-WPWGH5CA.js";import"../../chunks/chunk-BNWEJZAC.js";import{pickOverrides}from"../../chunks/chunk-KEFF3BL3.js";import{resolvesInside,validatePaths,validateRootDirectory,validateUploadRoot}from"../../chunks/chunk-K45TGFUJ.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-72CSJCJX.js";import"../../chunks/chunk-ZFRNVIHI.js";import"../../chunks/chunk-4SI66IFC.js";import"../../chunks/chunk-S4ARHJGW.js";import{PROJECT_EXPIRATION_TIMEFRAMES}from"../../chunks/chunk-EYCKXHL4.js";import"../../chunks/chunk-Y7SZI3JV.js";import"../../chunks/chunk-MAAJGMXM.js";import{parseMeta}from"../../chunks/chunk-CZSOZKHX.js";import{compileVercelConfig,findSourceVercelConfigFile}from"../../chunks/chunk-PQQRSUUG.js";import"../../chunks/chunk-CKPY7TAQ.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-YTBNOSND.js";import{isGuidanceEnabled}from"../../chunks/chunk-TAAWMNNL.js";import{ensureLink}from"../../chunks/chunk-2KJIWBJQ.js";import"../../chunks/chunk-HI5PLVKM.js";import{getDeployment}from"../../chunks/chunk-MMMX3KE2.js";import{mapCertError}from"../../chunks/chunk-WWEUGL6W.js";import"../../chunks/chunk-OM6NML7C.js";import{trackCreatedId}from"../../chunks/chunk-MDWUJ7TA.js";import"../../chunks/chunk-IQ7FPAI4.js";import{getRenamedOption,reportRenamedOptionError}from"../../chunks/chunk-QDSDYOMV.js";import{getSubcommand}from"../../chunks/chunk-ETV3C2CV.js";import{param}from"../../chunks/chunk-ERMHTPO4.js";import{getCommandAliases}from"../../chunks/chunk-MJ2HLVVL.js";import"../../chunks/chunk-2ACABADL.js";import"../../chunks/chunk-3YD5WA5R.js";import"../../chunks/chunk-XGCCTSBW.js";import"../../chunks/chunk-TR3M42DX.js";import"../../chunks/chunk-6SX4TE7Y.js";import{continueSubcommand,deployCommand,deprecatedArchiveSplitTgz,describeSubcommand,initSubcommand}from"../../chunks/chunk-Z3YQZSU4.js";import"../../chunks/chunk-XO2CZXGA.js";import"../../chunks/chunk-L74PQVPL.js";import"../../chunks/chunk-I3NEZRVW.js";import"../../chunks/chunk-245QYIHU.js";import"../../chunks/chunk-GTBPHJRJ.js";import"../../chunks/chunk-V45KKYNK.js";import"../../chunks/chunk-RPYIWRSN.js";import"../../chunks/chunk-CDO5IECP.js";import"../../chunks/chunk-ZEGUFI44.js";import"../../chunks/chunk-ZEBOIM34.js";import"../../chunks/chunk-C6AOL5RF.js";import"../../chunks/chunk-UJINL7VK.js";import"../../chunks/chunk-UVBRWYYJ.js";import"../../chunks/chunk-OCX4QZ3X.js";import"../../chunks/chunk-T5DQCNBC.js";import"../../chunks/chunk-VBCWRNS4.js";import"../../chunks/chunk-WMIZ6Y4E.js";import"../../chunks/chunk-UAPEASRH.js";import"../../chunks/chunk-7MBJ4YIK.js";import"../../chunks/chunk-V7EJ7O6E.js";import"../../chunks/chunk-HG7NRFC5.js";import{require_ci_info}from"../../chunks/chunk-LNRKGW7S.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-G7RQVFID.js";import{printAlignedLabel}from"../../chunks/chunk-SUD5V67L.js";import"../../chunks/chunk-7TRHPXCG.js";import{getProjectByNameOrId}from"../../chunks/chunk-UGVOMXYR.js";import"../../chunks/chunk-K5GE24PG.js";import"../../chunks/chunk-QRPBDCDH.js";import"../../chunks/chunk-IFMPBA4K.js";import"../../chunks/chunk-2GXP676X.js";import"../../chunks/chunk-KHJWQ4WP.js";import{getFetchDispatcher}from"../../chunks/chunk-MY4MONOH.js";import"../../chunks/chunk-4D4IP557.js";import{require_ms}from"../../chunks/chunk-2ILZM77F.js";import{printError}from"../../chunks/chunk-Y2J2ESAE.js";import{parseArguments}from"../../chunks/chunk-RDTWDVFO.js";import{AGENT_REASON,AGENT_STATUS,argvHasNonInteractive,buildCommandWithYes,outputActionRequired,outputAgentError,withGlobalFlags,writeAgentError}from"../../chunks/chunk-NVU7XTNI.js";import{validateJsonOutput,warnDeprecatedInput}from"../../chunks/chunk-IR3E37HD.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-PNN2Y2ZQ.js";import{help}from"../../chunks/chunk-F2VXECRT.js";import"../../chunks/chunk-7QHUMMBA.js";import"../../chunks/chunk-AUCQKYL2.js";import{getFlagsSpecification,quoteArg,stripSensitiveAuthArgs}from"../../chunks/chunk-DORCX7UB.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-TCH3OY6G.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-2E5TRQU6.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-3MKVB7HN.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-RWXYD2CO.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-5M3XKRMV.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)}
@@ -39,9 +39,9 @@ ${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-MU5TGXLG.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-RDOQVAER.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)}