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

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 (467) hide show
  1. package/dist/chunks/{add-RH3RQPGP.js → add-56T4ON6W.js} +1 -1
  2. package/dist/chunks/{add-4ZXS4RRN.js → add-CDHMIDYR.js} +1 -1
  3. package/dist/chunks/{add-G2LGF4HL.js → add-JC2KSFHX.js} +1 -1
  4. package/dist/chunks/{alerts-3352VWDL.js → alerts-TMFON3SU.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-ALEGEJFV.js} +1 -1
  9. package/dist/chunks/{chunk-JDDPCL3K.js → chunk-245QYIHU.js} +1 -1
  10. package/dist/chunks/{chunk-SGNDE4YS.js → chunk-2ACABADL.js} +1 -1
  11. package/dist/chunks/{chunk-D6REP5QQ.js → chunk-2GXP676X.js} +1 -1
  12. package/dist/chunks/{chunk-MXTC4ZAQ.js → chunk-2ILZM77F.js} +1 -1
  13. package/dist/chunks/{chunk-OFDTADPQ.js → chunk-2K7U64CN.js} +1 -1
  14. package/dist/chunks/{chunk-DTCQWGHE.js → chunk-2KJIWBJQ.js} +2 -2
  15. package/dist/chunks/{chunk-T4DOV5S4.js → chunk-2V5IP6A5.js} +1 -1
  16. package/dist/chunks/{chunk-L46V6VL3.js → chunk-37SWAKIV.js} +1 -1
  17. package/dist/chunks/{chunk-ZXSZH7N5.js → chunk-3GKXXGSO.js} +1 -1
  18. package/dist/chunks/{chunk-QSL6AG2B.js → chunk-3HP6FOOL.js} +1 -1
  19. package/dist/chunks/{chunk-M32HBBPK.js → chunk-3WXQHKSS.js} +1 -1
  20. package/dist/chunks/{chunk-JELLVPCM.js → chunk-3XMKTJ5T.js} +1 -1
  21. package/dist/chunks/{chunk-KLBSCTLL.js → chunk-3YD5WA5R.js} +1 -1
  22. package/dist/chunks/{chunk-KIDGOY4F.js → chunk-3YNMC7FF.js} +1 -1
  23. package/dist/chunks/{chunk-YLXXGQQQ.js → chunk-42D3CPWB.js} +1 -1
  24. package/dist/chunks/{chunk-HRR57QNP.js → chunk-46R47IE5.js} +1 -1
  25. package/dist/chunks/{chunk-ZRFDZO7Y.js → chunk-4D4IP557.js} +1 -1
  26. package/dist/chunks/{chunk-OOPF73RV.js → chunk-4FPYV37P.js} +1 -1
  27. package/dist/chunks/{chunk-HR4ID3MU.js → chunk-4HNNFJLO.js} +1 -1
  28. package/dist/chunks/{chunk-5WYJSLCF.js → chunk-4HYZZASG.js} +1 -1
  29. package/dist/chunks/{chunk-AMZ7AUYX.js → chunk-4JPDCF2O.js} +1 -1
  30. package/dist/chunks/{chunk-CAJ2OUSR.js → chunk-4L7AKIX7.js} +1 -1
  31. package/dist/chunks/chunk-4SI66IFC.js +7 -0
  32. package/dist/chunks/{chunk-MCYG7CCE.js → chunk-4SIQE2W4.js} +1 -1
  33. package/dist/chunks/chunk-4WEKKDOL.js +8 -0
  34. package/dist/chunks/{chunk-Q6YPC3GK.js → chunk-57H5KQGN.js} +1 -1
  35. package/dist/chunks/{chunk-NWGBDBZI.js → chunk-5F4RJ32E.js} +1 -1
  36. package/dist/chunks/{chunk-GXWBL6YV.js → chunk-5KGALAC2.js} +1 -1
  37. package/dist/chunks/{chunk-KRPY5FHJ.js → chunk-5QC4IKRZ.js} +1 -1
  38. package/dist/chunks/{chunk-VBANKZWM.js → chunk-5RRSLENO.js} +1 -1
  39. package/dist/chunks/{chunk-2AMO2VMV.js → chunk-64GNDWWX.js} +1 -1
  40. package/dist/chunks/{chunk-J24BABG4.js → chunk-6G2AZBW5.js} +1 -1
  41. package/dist/chunks/{chunk-DY643UZ7.js → chunk-6JBKQ5LR.js} +2 -3
  42. package/dist/chunks/{chunk-X755TPX6.js → chunk-6O2LDFGJ.js} +1 -1
  43. package/dist/chunks/chunk-6OOJFAF5.js +20 -0
  44. package/dist/chunks/{chunk-T44RB754.js → chunk-6SX4TE7Y.js} +1 -1
  45. package/dist/chunks/{chunk-AW5KOUD7.js → chunk-6SYKGWTJ.js} +1 -1
  46. package/dist/chunks/chunk-6ZD6IARJ.js +33 -0
  47. package/dist/chunks/{chunk-O3YZLVC6.js → chunk-72CSJCJX.js} +3 -3
  48. package/dist/chunks/chunk-75TGTOZQ.js +8 -0
  49. package/dist/chunks/{chunk-GRRVPFSB.js → chunk-7JQBC2HB.js} +1 -1
  50. package/dist/chunks/{chunk-Y3V4JYK6.js → chunk-7MBJ4YIK.js} +1 -1
  51. package/dist/chunks/{chunk-PSOVLGHP.js → chunk-7O3D3XED.js} +1 -1
  52. package/dist/chunks/{chunk-FXLZM6Q7.js → chunk-7PK2JFEH.js} +1 -1
  53. package/dist/chunks/chunk-7Q5I3L37.js +68 -0
  54. package/dist/chunks/{chunk-24SIHFEW.js → chunk-7QHUMMBA.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-ATSAMHUZ.js → chunk-A3WRF4AB.js} +1 -1
  58. package/dist/chunks/{chunk-6DBLXAJI.js → chunk-AGFG7WHE.js} +1 -1
  59. package/dist/chunks/{chunk-YFOBGEOW.js → chunk-AI32LWRL.js} +1 -1
  60. package/dist/chunks/chunk-AJ3KPZLM.js +18 -0
  61. package/dist/chunks/{chunk-MYVALJ4D.js → chunk-AJJIPBAG.js} +1 -1
  62. package/dist/chunks/{chunk-TGIIE2L3.js → chunk-AP2JY545.js} +1 -1
  63. package/dist/chunks/{chunk-Z73UJVGD.js → chunk-AU54JBLF.js} +1 -1
  64. package/dist/chunks/{chunk-SQ62IODX.js → chunk-AUCQKYL2.js} +1 -1
  65. package/dist/chunks/{chunk-ZBOTJT5S.js → chunk-AULX6RDR.js} +1 -1
  66. package/dist/chunks/{chunk-37P7O3AQ.js → chunk-AWB4IKVC.js} +1 -1
  67. package/dist/chunks/{chunk-SCV7XEEO.js → chunk-AX6UCTOC.js} +1 -1
  68. package/dist/chunks/{chunk-MDXG7T7M.js → chunk-B4IOZL3K.js} +1 -1
  69. package/dist/chunks/{chunk-Y4YBQUQM.js → chunk-B6QW2OXJ.js} +1 -1
  70. package/dist/chunks/{chunk-YBAGKQXC.js → chunk-BCD4TRQF.js} +1 -1
  71. package/dist/chunks/{chunk-OQXHBPPS.js → chunk-BCRZI5IM.js} +1 -1
  72. package/dist/chunks/chunk-BFS4K2RF.js +7 -0
  73. package/dist/chunks/chunk-BKJ4H6KK.js +8 -0
  74. package/dist/chunks/{chunk-O3GQG2ML.js → chunk-BLA6V5UN.js} +2 -2
  75. package/dist/chunks/{chunk-COD3WAUI.js → chunk-BNWEJZAC.js} +1 -1
  76. package/dist/chunks/{chunk-5MDNVAE6.js → chunk-BVFFSUG3.js} +1 -1
  77. package/dist/chunks/{chunk-X6JQI64G.js → chunk-C6AOL5RF.js} +1 -1
  78. package/dist/chunks/{chunk-F7L5SXJM.js → chunk-CDO5IECP.js} +1 -1
  79. package/dist/chunks/{chunk-XOETL6DB.js → chunk-CHY2NJU4.js} +1 -1
  80. package/dist/chunks/{chunk-H24KFNPB.js → chunk-CKPY7TAQ.js} +1 -1
  81. package/dist/chunks/chunk-COOA33HY.js +7 -0
  82. package/dist/chunks/{chunk-PVASGBEF.js → chunk-CSU46B7Q.js} +1 -1
  83. package/dist/chunks/{chunk-DDZEKNQR.js → chunk-CX4WJVNY.js} +1 -1
  84. package/dist/chunks/{chunk-AVCLYJNC.js → chunk-CX6QYE3Y.js} +1 -1
  85. package/dist/chunks/{chunk-4SAVH3H7.js → chunk-DCFCPAFQ.js} +1 -1
  86. package/dist/chunks/{chunk-2FUGD6J7.js → chunk-DTEWQLNP.js} +1 -1
  87. package/dist/chunks/chunk-DXFFWNK4.js +8 -0
  88. package/dist/chunks/{chunk-F4KY2TOK.js → chunk-EAQLOKZX.js} +1 -1
  89. package/dist/chunks/{chunk-ZGM4K3B5.js → chunk-ECQW2R5M.js} +1 -1
  90. package/dist/chunks/{chunk-B4KA3ZH2.js → chunk-EFGZK6OY.js} +1 -1
  91. package/dist/chunks/{chunk-N3ZNAMGR.js → chunk-EFQCGYZF.js} +1 -1
  92. package/dist/chunks/{chunk-ID663OJ7.js → chunk-EL65DTVZ.js} +1 -1
  93. package/dist/chunks/{chunk-PAHYNO73.js → chunk-ELQO7254.js} +1 -1
  94. package/dist/chunks/{chunk-3G3FQYMW.js → chunk-ERMHTPO4.js} +1 -1
  95. package/dist/chunks/chunk-EV2VKG2V.js +8 -0
  96. package/dist/chunks/{chunk-LDDXXDN5.js → chunk-EYCKXHL4.js} +1 -1
  97. package/dist/chunks/{chunk-5727HGA6.js → chunk-F2VXECRT.js} +1 -1
  98. package/dist/chunks/{chunk-NMY2YZ6M.js → chunk-F5FBLRH3.js} +1 -1
  99. package/dist/chunks/{chunk-TU54LHNW.js → chunk-F6BUBFV2.js} +1 -1
  100. package/dist/chunks/{chunk-VWKA6RKB.js → chunk-FHNHVEOX.js} +1 -1
  101. package/dist/chunks/{chunk-D3M2JG5C.js → chunk-FIICEEXO.js} +1 -1
  102. package/dist/chunks/{chunk-QPNTR3PA.js → chunk-FVMRKUWL.js} +1 -1
  103. package/dist/chunks/{chunk-H3ZSF2P3.js → chunk-FWYKEEQK.js} +1 -1
  104. package/dist/chunks/{chunk-ZHGKJCQ2.js → chunk-G7RQVFID.js} +5 -5
  105. package/dist/chunks/chunk-GB77JTTX.js +8 -0
  106. package/dist/chunks/{chunk-FTNLCQC6.js → chunk-GHZ4YQCI.js} +1 -1
  107. package/dist/chunks/{chunk-7RABG6HV.js → chunk-GOH7QCG3.js} +1 -1
  108. package/dist/chunks/{chunk-4NTBYNFR.js → chunk-GOXGA37R.js} +1 -1
  109. package/dist/chunks/{chunk-23FY4PR3.js → chunk-GTBPHJRJ.js} +1 -1
  110. package/dist/chunks/{chunk-YTSGFU5T.js → chunk-GUFRGEM5.js} +1 -1
  111. package/dist/chunks/{chunk-U43WXZBP.js → chunk-H2O53DAZ.js} +1 -1
  112. package/dist/chunks/chunk-HAM7ZPEC.js +7 -0
  113. package/dist/chunks/{chunk-4SWS7RKX.js → chunk-HG7NRFC5.js} +1 -1
  114. package/dist/chunks/{chunk-BTI5TG6Q.js → chunk-HGXM4UBQ.js} +1 -1
  115. package/dist/chunks/{chunk-PX3V7X3Q.js → chunk-HI5PLVKM.js} +1 -1
  116. package/dist/chunks/chunk-HIEFNLLO.js +7 -0
  117. package/dist/chunks/{chunk-NMIB4JYP.js → chunk-HJCMNBDK.js} +1 -1
  118. package/dist/chunks/{chunk-6WBEU34Y.js → chunk-HLJ2UIG6.js} +1 -1
  119. package/dist/chunks/{chunk-DH4A4QMD.js → chunk-HMNIFPU2.js} +1 -1
  120. package/dist/chunks/{chunk-2KXLL3DX.js → chunk-HSQPQ5RV.js} +1 -1
  121. package/dist/chunks/{chunk-6NC2JFUQ.js → chunk-I254SHTL.js} +1 -1
  122. package/dist/chunks/{chunk-YN3HZJXW.js → chunk-I3NEZRVW.js} +1 -1
  123. package/dist/chunks/{chunk-WHEA5VLX.js → chunk-ICPRMAKB.js} +1 -1
  124. package/dist/chunks/{chunk-OPORM35X.js → chunk-IFMPBA4K.js} +1 -1
  125. package/dist/chunks/{chunk-MCRKBVZA.js → chunk-IMLHRJ4K.js} +1 -1
  126. package/dist/chunks/{chunk-KA2KG3SY.js → chunk-IR3E37HD.js} +1 -1
  127. package/dist/chunks/chunk-IVJEYHF5.js +8 -0
  128. package/dist/chunks/{chunk-BPUANOGW.js → chunk-IZV6K7RR.js} +1 -1
  129. package/dist/chunks/{chunk-OZKP3WKT.js → chunk-J4WXRM2Y.js} +1 -1
  130. package/dist/chunks/chunk-J5MGMWRV.js +9 -0
  131. package/dist/chunks/{chunk-4FBOQLPZ.js → chunk-J7DIPT7M.js} +1 -1
  132. package/dist/chunks/{chunk-BOJDM3O7.js → chunk-JCDPMWKO.js} +1 -1
  133. package/dist/chunks/{chunk-FB37TFVF.js → chunk-JEACGNHI.js} +1 -1
  134. package/dist/chunks/{chunk-MGKNSTU4.js → chunk-JJNTYM7J.js} +1 -1
  135. package/dist/chunks/{chunk-76NL3ZRJ.js → chunk-K45TGFUJ.js} +1 -1
  136. package/dist/chunks/{chunk-LUX4PBJL.js → chunk-K5GE24PG.js} +1 -1
  137. package/dist/chunks/{chunk-25565AGS.js → chunk-K7YK4PZP.js} +1 -1
  138. package/dist/chunks/{chunk-D6NVKMRP.js → chunk-KEFF3BL3.js} +1 -1
  139. package/dist/chunks/{chunk-FBYA6LLM.js → chunk-KHJWQ4WP.js} +1 -1
  140. package/dist/chunks/{chunk-EHAS6SQB.js → chunk-KMTQYFJF.js} +1 -1
  141. package/dist/chunks/{chunk-JCHZRW4N.js → chunk-KVZR24QI.js} +1 -1
  142. package/dist/chunks/{chunk-BRQUZ5NC.js → chunk-L4CSJDG7.js} +1 -1
  143. package/dist/chunks/{chunk-ISWW3DKF.js → chunk-L6MWUMWZ.js} +1 -1
  144. package/dist/chunks/{chunk-KKYNEEM7.js → chunk-LKXPJLOP.js} +1 -1
  145. package/dist/chunks/{chunk-Q7D7RGXM.js → chunk-LLHXL3SV.js} +1 -1
  146. package/dist/chunks/{chunk-EYRBV6RM.js → chunk-LNRKGW7S.js} +1 -1
  147. package/dist/chunks/{chunk-BS32OUOC.js → chunk-LPYHYTYI.js} +1 -1
  148. package/dist/chunks/{chunk-A2RZZQEP.js → chunk-LY3EY2VG.js} +1 -1
  149. package/dist/chunks/chunk-M2XLLWK7.js +7 -0
  150. package/dist/chunks/{chunk-7WDSOKOY.js → chunk-MAAJGMXM.js} +1 -1
  151. package/dist/chunks/{chunk-DWZBL4NK.js → chunk-MAIZY5BV.js} +1 -1
  152. package/dist/chunks/{chunk-BUBVZ6SQ.js → chunk-MDWUJ7TA.js} +1 -1
  153. package/dist/chunks/{chunk-YHPPP3SF.js → chunk-MF43WTDT.js} +1 -1
  154. package/dist/chunks/{chunk-V3YNYCRV.js → chunk-MHVM4VKT.js} +2 -2
  155. package/dist/chunks/chunk-MJ2HLVVL.js +13 -0
  156. package/dist/chunks/{chunk-6Z5REGCM.js → chunk-MMMX3KE2.js} +1 -1
  157. package/dist/chunks/{chunk-ISSNEDG5.js → chunk-MN2F4NPH.js} +1 -1
  158. package/dist/chunks/{chunk-QFE3RPMA.js → chunk-MTPHHAPR.js} +1 -1
  159. package/dist/chunks/{slugify-NMMUASYK.js → chunk-N3COHC7T.js} +1 -1
  160. package/dist/chunks/{chunk-27FVSW45.js → chunk-N7IBUNFY.js} +1 -1
  161. package/dist/chunks/{chunk-BZENIQ7N.js → chunk-NBPLUP7C.js} +1 -1
  162. package/dist/chunks/chunk-NE5RTEMC.js +7 -0
  163. package/dist/chunks/{chunk-CTBSRTJW.js → chunk-NFPO75IP.js} +1 -1
  164. package/dist/chunks/{chunk-XE4SLG5H.js → chunk-NNPXYFMY.js} +1 -1
  165. package/dist/chunks/{chunk-D6O5O3CW.js → chunk-NQPQRYHS.js} +1 -1
  166. package/dist/chunks/{chunk-3SF3ILIT.js → chunk-NUS3WWST.js} +1 -1
  167. package/dist/chunks/chunk-NVU7XTNI.js +11 -0
  168. package/dist/chunks/{chunk-ZBZQEDZY.js → chunk-NXFYKZVZ.js} +1 -1
  169. package/dist/chunks/chunk-NXUDP37D.js +7 -0
  170. package/dist/chunks/chunk-O7AF7CLE.js +8 -0
  171. package/dist/chunks/{chunk-MWFHS4HV.js → chunk-O7FAYZU6.js} +1 -1
  172. package/dist/chunks/{chunk-MDRI27KN.js → chunk-OCX4QZ3X.js} +1 -1
  173. package/dist/chunks/{chunk-YOKTRWQX.js → chunk-OD4RCBDD.js} +1 -1
  174. package/dist/chunks/{chunk-OAM5NJCU.js → chunk-OK52DDU5.js} +1 -1
  175. package/dist/chunks/{chunk-PFD7LETF.js → chunk-OM6NML7C.js} +1 -1
  176. package/dist/chunks/{chunk-HYAIA5YC.js → chunk-OVIWCH3S.js} +2 -2
  177. package/dist/chunks/chunk-OVVHONX7.js +8 -0
  178. package/dist/chunks/{chunk-J5SINMVO.js → chunk-P5IKPNRJ.js} +1 -1
  179. package/dist/chunks/chunk-PG3WQGEK.js +181 -0
  180. package/dist/chunks/{chunk-AW33SRYY.js → chunk-PH2MLBQO.js} +1 -1
  181. package/dist/chunks/{chunk-XHBZITV4.js → chunk-PKECY4JZ.js} +1 -1
  182. package/dist/chunks/{chunk-DGLE44KA.js → chunk-PKWSWWVW.js} +1 -1
  183. package/dist/chunks/{chunk-RHFNVIFD.js → chunk-PNN2Y2ZQ.js} +1 -1
  184. package/dist/chunks/{chunk-5A3DDLQR.js → chunk-PNTKMD3A.js} +1 -1
  185. package/dist/chunks/{chunk-XC25DYA7.js → chunk-PQQRSUUG.js} +2 -2
  186. package/dist/chunks/{chunk-BKFRN6C2.js → chunk-PR4NNS3O.js} +1 -1
  187. package/dist/chunks/{chunk-QHGPFYWQ.js → chunk-PROENC6V.js} +1 -1
  188. package/dist/chunks/chunk-PW67ZNDU.js +8 -0
  189. package/dist/chunks/{chunk-Z436ZYLV.js → chunk-Q2FGBONA.js} +1 -1
  190. package/dist/chunks/{chunk-U5SZQUYO.js → chunk-QCYCLWNG.js} +1 -1
  191. package/dist/chunks/{chunk-6TEYSBCT.js → chunk-QDSDYOMV.js} +1 -1
  192. package/dist/chunks/{chunk-S3L2OHPO.js → chunk-QNMWYJQW.js} +1 -1
  193. package/dist/chunks/{chunk-MMMJO2M3.js → chunk-QOIG2FJP.js} +1 -1
  194. package/dist/chunks/{chunk-MTZYPCZ7.js → chunk-QRPBDCDH.js} +1 -1
  195. package/dist/chunks/{chunk-INIZJZ3O.js → chunk-RDTWDVFO.js} +1 -1
  196. package/dist/chunks/{chunk-GD7AV7BO.js → chunk-RFD7CEL6.js} +1 -1
  197. package/dist/chunks/{chunk-TSIKSHYG.js → chunk-RIVRPVTH.js} +1 -1
  198. package/dist/chunks/{chunk-RYSO5U3E.js → chunk-RIXTYUYN.js} +1 -1
  199. package/dist/chunks/{chunk-7HQZRU25.js → chunk-RRX2AMWY.js} +1 -1
  200. package/dist/chunks/{chunk-CEA5NDJC.js → chunk-RTIVLPN7.js} +1 -1
  201. package/dist/chunks/chunk-RWVYBRVF.js +13 -0
  202. package/dist/chunks/chunk-S4ARHJGW.js +9 -0
  203. package/dist/chunks/chunk-S7FMMAST.js +7 -0
  204. package/dist/chunks/{chunk-Q4R34AVE.js → chunk-SHLKM7EZ.js} +1 -1
  205. package/dist/chunks/chunk-SIWT2MBT.js +8 -0
  206. package/dist/chunks/{chunk-7SLMNM55.js → chunk-SPPOQ54P.js} +1 -1
  207. package/dist/chunks/{chunk-BIABM3FB.js → chunk-SSOWIDKG.js} +1 -1
  208. package/dist/chunks/{chunk-AZVSMIPP.js → chunk-STDRVWDW.js} +1 -1
  209. package/dist/chunks/{chunk-M2Q2DUHO.js → chunk-SUD5V67L.js} +1 -1
  210. package/dist/chunks/{chunk-7EJQLVWX.js → chunk-SUT2PTL3.js} +1 -1
  211. package/dist/chunks/chunk-SWWLPWX7.js +17 -0
  212. package/dist/chunks/chunk-SX2JJDHM.js +17 -0
  213. package/dist/chunks/{chunk-3RFQ2NXZ.js → chunk-T4257EDB.js} +1 -1
  214. package/dist/chunks/{chunk-G24EKATW.js → chunk-T5DQCNBC.js} +1 -1
  215. package/dist/chunks/chunk-TASNZYJU.js +14 -0
  216. package/dist/chunks/{chunk-YTSUDTAK.js → chunk-TNNCGRBK.js} +1 -1
  217. package/dist/chunks/{chunk-D5JQZXL7.js → chunk-TR3M42DX.js} +1 -1
  218. package/dist/chunks/chunk-TTM4VQ4T.js +7 -0
  219. package/dist/chunks/{chunk-BYBELFCP.js → chunk-UAPEASRH.js} +1 -1
  220. package/dist/chunks/{chunk-DXFP22OK.js → chunk-UE6M2VKP.js} +1 -1
  221. package/dist/chunks/chunk-UGJRAFRA.js +8 -0
  222. package/dist/chunks/{chunk-3AFEVHHY.js → chunk-UGVOMXYR.js} +1 -1
  223. package/dist/chunks/{chunk-NB2WLB3J.js → chunk-UJ7YUIEJ.js} +1 -1
  224. package/dist/chunks/{chunk-7OZ7OKPS.js → chunk-UJINL7VK.js} +1 -1
  225. package/dist/chunks/{chunk-6KNWKZR4.js → chunk-UVBRWYYJ.js} +1 -1
  226. package/dist/chunks/{chunk-KNNIA3PS.js → chunk-UXAPG6IX.js} +1 -1
  227. package/dist/chunks/{chunk-6FEMU5YF.js → chunk-V45KKYNK.js} +1 -1
  228. package/dist/chunks/{chunk-A6CMQOL7.js → chunk-V7EJ7O6E.js} +1 -1
  229. package/dist/chunks/chunk-VB6SQWSB.js +9 -0
  230. package/dist/chunks/{chunk-E5A7E7X6.js → chunk-VBCWRNS4.js} +1 -1
  231. package/dist/chunks/{chunk-5U2YLD56.js → chunk-VG44VJB5.js} +1 -1
  232. package/dist/chunks/{chunk-DOOBZO4W.js → chunk-VJM3WCEC.js} +1 -1
  233. package/dist/chunks/{chunk-BYYNR34Q.js → chunk-VNS4Z72T.js} +1 -1
  234. package/dist/chunks/{chunk-CTMTO2W4.js → chunk-VQAIH2X5.js} +1 -1
  235. package/dist/chunks/{chunk-D2JNI6UB.js → chunk-VSDLCOK3.js} +1 -1
  236. package/dist/chunks/chunk-VUB4NBD4.js +15 -0
  237. package/dist/chunks/{chunk-KXMFGDO4.js → chunk-VV5TYUAT.js} +1 -1
  238. package/dist/chunks/chunk-W2YAOE3Z.js +7 -0
  239. package/dist/chunks/{chunk-JALVF3C2.js → chunk-WMIZ6Y4E.js} +1 -1
  240. package/dist/chunks/{chunk-R43H4T4L.js → chunk-WPWGH5CA.js} +1 -1
  241. package/dist/chunks/{chunk-22ZRVWYP.js → chunk-WU22X5RO.js} +2 -2
  242. package/dist/chunks/{chunk-TLKBGAOL.js → chunk-WWEUGL6W.js} +1 -1
  243. package/dist/chunks/{chunk-S6TAO4MD.js → chunk-X3A324UF.js} +1 -1
  244. package/dist/chunks/{chunk-JUAHDOL6.js → chunk-X5YKQ2RJ.js} +1 -1
  245. package/dist/chunks/{chunk-VJNTVPUV.js → chunk-X5ZBXCCY.js} +1 -1
  246. package/dist/chunks/{chunk-J3U2QD2L.js → chunk-X72FHJ6W.js} +1 -1
  247. package/dist/chunks/{chunk-E3AML3VR.js → chunk-XBT7X2Q4.js} +1 -1
  248. package/dist/chunks/{chunk-CDJ25IKC.js → chunk-XGCCTSBW.js} +1 -1
  249. package/dist/chunks/chunk-XHXWUAJE.js +32 -0
  250. package/dist/chunks/{chunk-U4Z2MMOF.js → chunk-XKVKG7CW.js} +1 -1
  251. package/dist/chunks/{chunk-4F73GVJZ.js → chunk-XO2CZXGA.js} +1 -1
  252. package/dist/chunks/{chunk-E3WP42P2.js → chunk-XPEWDJV6.js} +1 -1
  253. package/dist/chunks/{chunk-DNONVY2L.js → chunk-XXPUBGJZ.js} +2 -2
  254. package/dist/chunks/{chunk-UPDIZCP3.js → chunk-Y2J2ESAE.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-5RMIM4S2.js → chunk-Y7SZI3JV.js} +1 -1
  258. package/dist/chunks/chunk-YBWLW6SW.js +7 -0
  259. package/dist/chunks/{chunk-B7IUFV5P.js → chunk-YDCILYRC.js} +1 -1
  260. package/dist/chunks/{chunk-67GZ5REA.js → chunk-YHZXIBS7.js} +1 -1
  261. package/dist/chunks/{chunk-5CVEW3HD.js → chunk-YLQCB6XY.js} +1 -1
  262. package/dist/chunks/{chunk-47E5IB3C.js → chunk-YNNU3GPR.js} +1 -1
  263. package/dist/chunks/{chunk-IVZNPSHU.js → chunk-YTBNOSND.js} +1 -1
  264. package/dist/chunks/{chunk-WAOS5OCB.js → chunk-YU33PPKX.js} +1 -1
  265. package/dist/chunks/{chunk-7JU5RJ3H.js → chunk-ZEBOIM34.js} +1 -1
  266. package/dist/chunks/{chunk-E7IN2DGU.js → chunk-ZEGUFI44.js} +1 -1
  267. package/dist/chunks/{chunk-NZ2TFADV.js → chunk-ZOJI7HYA.js} +1 -1
  268. package/dist/chunks/{clear-GL4SZ2XR.js → clear-FQ4L2ACT.js} +1 -1
  269. package/dist/chunks/{cli-embedded-NR5F35LW.js → cli-embedded-CZYKFQ6U.js} +2 -2
  270. package/dist/chunks/cli-truncate-CylqKOGj-WE5OLB6Q.js +7 -0
  271. package/dist/chunks/commands-Bx-lrmie-KJI5MSFW.js +10 -0
  272. package/dist/chunks/compile-vercel-config-GUTXMJOP.js +7 -0
  273. package/dist/chunks/{config-U4GLPYDY.js → config-4KECSIYK.js} +1 -1
  274. package/dist/chunks/{config-KSQQQMQQ.js → config-EEYAOPDR.js} +1 -1
  275. package/dist/chunks/config-HiWLfXRQ-G4JC3PIR.js +43 -0
  276. package/dist/chunks/connect-U3yG4EtI-KWEUMGCU.js +7 -0
  277. package/dist/chunks/connect-git-provider-MPYSAOTH.js +7 -0
  278. package/dist/chunks/cp-aFe-HVrK-JGQPCT5R.js +12 -0
  279. package/dist/chunks/create-ilHWvzSk-MPW7HE43.js +7 -0
  280. package/dist/chunks/create-project-FMUOSSNP.js +7 -0
  281. package/dist/chunks/{delete-D2WLQHVB.js → delete-JRMGVHFJ.js} +1 -1
  282. package/dist/chunks/{delete-O2VWRQC3.js → delete-LP4N4BXX.js} +1 -1
  283. package/dist/chunks/{describe-N36SISDN.js → describe-5M3XKRMV.js} +1 -1
  284. package/dist/chunks/detect-projects-DHS2E3N4.js +7 -0
  285. package/dist/chunks/detect-services-HCUFI3RJ.js +7 -0
  286. package/dist/chunks/{disable-EHRVY24G.js → disable-ZFDARZAF.js} +1 -1
  287. package/dist/chunks/{discard-QW5TMTXX.js → discard-PE5SSIDJ.js} +1 -1
  288. package/dist/chunks/dist-BGUQ47VG.js +7 -0
  289. package/dist/chunks/{dist-33WTJLVQ.js → dist-E4BMK7BO.js} +1 -1
  290. package/dist/chunks/{dist-RXYNZPEA.js → dist-S7GEJ656.js} +1 -1
  291. package/dist/chunks/domain-DGvr_U55-AZYOJW3J.js +8 -0
  292. package/dist/chunks/drives-Bi-Mnt2z-JAGBYE6W.js +14 -0
  293. package/dist/chunks/{edit-WM6KJPSI.js → edit-7S67WBSE.js} +1 -1
  294. package/dist/chunks/{edit-IZR537PS.js → edit-BATH6ETJ.js} +1 -1
  295. package/dist/chunks/{enable-5Z72O3NI.js → enable-JWLWXAZP.js} +1 -1
  296. package/dist/chunks/{engine-C8wCzkw--PYVABGU4.js → engine-C8wCzkw--72P7UD6T.js} +1 -1
  297. package/dist/chunks/{esm-IYH32MTQ.js → esm-B3P7PUFJ.js} +1 -1
  298. package/dist/chunks/{esm-5GQXHN7C.js → esm-CMSQLK7G.js} +1 -1
  299. package/dist/chunks/{esm-LEQXRLFV.js → esm-KWMRMP74.js} +1 -1
  300. package/dist/chunks/{esm-NHCCFW7Z.js → esm-LRBNA4QO.js} +1 -1
  301. package/dist/chunks/{esm-FJCIOBBV.js → esm-NVIK2MSG.js} +1 -1
  302. package/dist/chunks/{esm-T655CG6O.js → esm-RAS56M3I.js} +1 -1
  303. package/dist/chunks/{esm-QQ3MUOW4.js → esm-WU2ZS2IW.js} +1 -1
  304. package/dist/chunks/{exec-PCSP64LR.js → exec-6WGVP2E2.js} +1 -1
  305. package/dist/chunks/exec-Bwv4MDyN-SMCC4JHS.js +7 -0
  306. package/dist/chunks/{export-IWVMWM2H.js → export-DASZMUUD.js} +1 -1
  307. package/dist/chunks/extend-D9tq9Cot-Z4ORB3B2.js +8 -0
  308. package/dist/chunks/{fetch-proxy-MOKBS56A.js → fetch-proxy-ZIHXTNFP.js} +1 -1
  309. package/dist/chunks/fork-DQ6qfKqB-AJCZOGQR.js +9 -0
  310. package/dist/chunks/future-CNLTCF2D.js +7 -0
  311. package/dist/chunks/generate-cert-for-deploy-TCH3OY6G.js +7 -0
  312. package/dist/chunks/groups-B8JVEeKk-J5CCQYWU.js +10 -0
  313. package/dist/chunks/image-CDRXKTJG.js +7 -0
  314. package/dist/chunks/import-builders-XI6CYID6.js +7 -0
  315. package/dist/chunks/{inspect-6Y672OQ3.js → inspect-DSTHAT43.js} +1 -1
  316. package/dist/chunks/{inspect-SW2I7D6E.js → inspect-FCJC7XCN.js} +1 -1
  317. package/dist/chunks/{inspect-QT3QEFBW.js → inspect-FODCPYHT.js} +1 -1
  318. package/dist/chunks/{inspect-6J5DGZZ4.js → inspect-I7NZH44Z.js} +1 -1
  319. package/dist/chunks/{inspect-ALC2J4BF.js → inspect-JFRSCAAW.js} +1 -1
  320. package/dist/chunks/{inspect-47FM3OWG.js → inspect-RSSQ5YKF.js} +1 -1
  321. package/dist/chunks/{list-CXXDI5UV.js → list-7K3LEJXV.js} +1 -1
  322. package/dist/chunks/{list-BIFH4KO5.js → list-HWDVPR4V.js} +1 -1
  323. package/dist/chunks/{list-TGDHJKDT.js → list-NT2RHNIB.js} +1 -1
  324. package/dist/chunks/{list-2CMCXXP4.js → list-QDBAXYKL.js} +1 -1
  325. package/dist/chunks/list-iqQFvOHx-EWWTMITV.js +7 -0
  326. package/dist/chunks/log-update-DsqoChS1-DG7F5XJ4.js +11 -0
  327. package/dist/chunks/login-DGxA9ez--ZRIJ24TS.js +13 -0
  328. package/dist/chunks/login-RWXYD2CO.js +7 -0
  329. package/dist/chunks/{login-IUQDG334.js → login-WHXNCPDU.js} +1 -1
  330. package/dist/chunks/logout-OEbPJLu2-7NPM6ALK.js +8 -0
  331. package/dist/chunks/logs-RDOQVAER.js +7 -0
  332. package/dist/chunks/{ls-YTKJRKD3.js → ls-2OYMFZIB.js} +1 -1
  333. package/dist/chunks/{ls-7D73WVOF.js → ls-2PCKZKR7.js} +1 -1
  334. package/dist/chunks/{ls-GC5MX2HZ.js → ls-7DUE3OKC.js} +1 -1
  335. package/dist/chunks/{ls-C75Z5FBX.js → ls-ASWAYYAI.js} +1 -1
  336. package/dist/chunks/{ls-ERDQLUT2.js → ls-PEFQHSG3.js} +1 -1
  337. package/dist/chunks/{ls-4DNFF35I.js → ls-UQZB42CA.js} +1 -1
  338. package/dist/chunks/{ls-IQUZ6GWG.js → ls-XJZFHHWA.js} +1 -1
  339. package/dist/chunks/migrate-experimental-services-2E5TRQU6.js +7 -0
  340. package/dist/chunks/{mutate-YJNE2733.js → mutate-QXTPOGVD.js} +1 -1
  341. package/dist/chunks/{native-self-update-Q3EN6NZK.js → native-self-update-T75AUBHJ.js} +1 -1
  342. package/dist/chunks/{notifications-2HU4L7WA.js → notifications-F2BUWHH4.js} +1 -1
  343. package/dist/chunks/{open-MA7QGJKO.js → open-5FUW57NF.js} +1 -1
  344. package/dist/chunks/{openapi-POBVCXS3.js → openapi-NZLMBOMR.js} +1 -1
  345. package/dist/chunks/{permissions-AU5M5A6G.js → permissions-ABXSL4I4.js} +1 -1
  346. package/dist/chunks/{plugin-offer-E53UQXXX.js → plugin-offer-IMTYE365.js} +1 -1
  347. package/dist/chunks/prompt-missing-credentials-3MKVB7HN.js +7 -0
  348. package/dist/chunks/{publish-G7NQESCE.js → publish-5AE7VXIO.js} +1 -1
  349. package/dist/chunks/pull-MGQ2TMA3.js +7 -0
  350. package/dist/chunks/purchase-domain-if-available-MU5TGXLG.js +7 -0
  351. package/dist/chunks/{push-BG7UEIKY.js → push-SBTMPRZE.js} +1 -1
  352. package/dist/chunks/query-5Q6ZV2TP.js +7 -0
  353. package/dist/chunks/{raw-query-QHFSKN55.js → raw-query-OAYC3OTN.js} +1 -1
  354. package/dist/chunks/read-BTA5slYO-TGRGDUB5.js +8 -0
  355. package/dist/chunks/{reauthenticate-U2LOFDFP.js → reauthenticate-PXEYMV7G.js} +1 -1
  356. package/dist/chunks/remove-CCa99nz9-52C5X3OV.js +7 -0
  357. package/dist/chunks/{remove-IB7C6LII.js → remove-WSK5OYNV.js} +1 -1
  358. package/dist/chunks/{reorder-E5UYNMML.js → reorder-DT32UBAI.js} +1 -1
  359. package/dist/chunks/{reply-DSDFBUAX.js → reply-AMZ3Y3U5.js} +1 -1
  360. package/dist/chunks/{repo-info-to-url-XQSULSEO.js → repo-info-to-url-S2YOQIRM.js} +1 -1
  361. package/dist/chunks/{repo-root-DZ6WFHMP.js → repo-root-STNOAHCH.js} +1 -1
  362. package/dist/chunks/{resolve-VK5QTUII.js → resolve-NPE5HKCT.js} +1 -1
  363. package/dist/chunks/{resolve-agent-team-D7RFR6WL.js → resolve-agent-team-75WZ2VDR.js} +1 -1
  364. package/dist/chunks/{resolve-deployment-framework-preset-BLMQLCIN.js → resolve-deployment-framework-preset-SCQCWANF.js} +1 -1
  365. package/dist/chunks/{restore-IVNZOVU3.js → restore-IZHGW3NV.js} +1 -1
  366. package/dist/chunks/{rm-LWEITUDD.js → rm-G4U54YJT.js} +1 -1
  367. package/dist/chunks/{rm-GYS4DS2Z.js → rm-HVDZJXME.js} +1 -1
  368. package/dist/chunks/{rm-L2KCHMLS.js → rm-ILDCA66K.js} +1 -1
  369. package/dist/chunks/{rm-PDJE63VV.js → rm-JWMYMOKD.js} +1 -1
  370. package/dist/chunks/{rm-PAI3WZXJ.js → rm-MBWOLQZJ.js} +1 -1
  371. package/dist/chunks/routes-GTTTHCOL.js +7 -0
  372. package/dist/chunks/rule-inspect-KZ7FNV26.js +8 -0
  373. package/dist/chunks/run-D8obqfKw-VBME5UHC.js +7 -0
  374. package/dist/chunks/{schema-ZIK2W4AX.js → schema-5FNNQEU5.js} +1 -1
  375. package/dist/chunks/{schema-ZOPJJLJC.js → schema-SKHPOMD7.js} +1 -1
  376. package/dist/chunks/select-org-YRCPH5Z5.js +7 -0
  377. package/dist/chunks/{serving-C1mhZQqH-73TMEGEB.js → serving-C1mhZQqH-XEQUVQZK.js} +1 -1
  378. package/dist/chunks/sessions-cvWvPgzc-XIYLOGFI.js +7 -0
  379. package/dist/chunks/{set-MC2CLSA2.js → set-V6QX5AZQ.js} +1 -1
  380. package/dist/chunks/{set-B5MPNYXG.js → set-WWREM57F.js} +1 -1
  381. package/dist/chunks/setup-and-link-STBOP67J.js +7 -0
  382. package/dist/chunks/sh-7olsIyJh-PKP4FF4F.js +7 -0
  383. package/dist/chunks/{skills-X5MN3OH2.js → skills-5TXXGKN5.js} +1 -1
  384. package/dist/chunks/slugify-OEOEYGDL.js +7 -0
  385. package/dist/chunks/snapshot-D9MAspub-SROFKNVE.js +9 -0
  386. package/dist/chunks/snapshots-DQjvm6St-4DTYO2IQ.js +9 -0
  387. package/dist/chunks/stamp-THWCZ5IQ.js +7 -0
  388. package/dist/chunks/{statuspage-K5SC7KAQ.js → statuspage-NCYXH7DR.js} +1 -1
  389. package/dist/chunks/stop-SQX-uC-Q-MCMKSJVQ.js +10 -0
  390. package/dist/chunks/table-3DCL552W.js +7 -0
  391. package/dist/chunks/{tags-WRVKKRN7.js → tags-SVOY7QEN.js} +1 -1
  392. package/dist/chunks/telemetry-KLbte3YE-OAFHJTWE.js +13 -0
  393. package/dist/chunks/token-DGNBXqnR-37H4S563.js +7 -0
  394. package/dist/chunks/token-EYEJQ7AP.js +7 -0
  395. package/dist/chunks/token-LNLX4V5J.js +7 -0
  396. package/dist/chunks/token-MZBD3R2S.js +7 -0
  397. package/dist/chunks/token-util-4P4GUSTT.js +7 -0
  398. package/dist/chunks/token-util-DAhLJ1X4-NJBLJROT.js +7 -0
  399. package/dist/chunks/token-util-XC5K3DNT.js +7 -0
  400. package/dist/chunks/token-util-XO4H5VLL.js +7 -0
  401. package/dist/chunks/{types-PC3JIYPX.js → types-NX7G6YBW.js} +1 -1
  402. package/dist/chunks/{update-QDIZFM4T.js → update-AVWVPYK5.js} +1 -1
  403. package/dist/chunks/{update-route-version-KWK5S4UW.js → update-route-version-MKFTZPKQ.js} +1 -1
  404. package/dist/chunks/{usage-JUP36KHN.js → usage-RUCM3AMF.js} +1 -1
  405. package/dist/chunks/users-CGEsQ4G8-BEKXN56N.js +9 -0
  406. package/dist/chunks/{utils-IQZEE4DT.js → utils-XXR7KIRB.js} +1 -1
  407. package/dist/chunks/validate-config-MJQI5EMD.js +7 -0
  408. package/dist/chunks/{vercel-cli-3UQLDU2S.js → vercel-cli-RW4WHHOS.js} +1 -1
  409. package/dist/chunks/{vlt-builder-graph-XL2XRO4V.js → vlt-builder-graph-EU5EX7KY.js} +1 -1
  410. package/dist/chunks/{vlt-builder-importer-RBUPAB6J.js → vlt-builder-importer-2YSRGPFC.js} +1 -1
  411. package/dist/chunks/wrap-ansi-CaN_P_HT-MAPHF26X.js +7 -0
  412. package/dist/chunks/write-DixEhGqz-D34NI34B.js +10 -0
  413. package/dist/chunks/{zod-Y3ZBY67C.js → zod-H7KW2D5Z.js} +1 -1
  414. package/dist/commands/build/index.js +1 -1
  415. package/dist/commands/deploy/index.js +11 -11
  416. package/dist/commands/dev/index.js +5 -9
  417. package/dist/commands/env/index.js +1 -1
  418. package/dist/commands/link/index.js +1 -1
  419. package/dist/commands/list/index.js +1 -1
  420. package/dist/commands/project/index.js +102 -80
  421. package/dist/commands/tunnel/index.js +1 -1
  422. package/dist/commands-account.js +5 -5
  423. package/dist/commands-ai.js +6 -6
  424. package/dist/commands-blob.js +3 -3
  425. package/dist/commands-core.js +9 -9
  426. package/dist/commands-deployments.js +1 -1
  427. package/dist/commands-flags.js +1 -1
  428. package/dist/commands-integrations.js +11 -11
  429. package/dist/commands-observability.js +2 -2
  430. package/dist/commands-routing.js +9 -9
  431. package/dist/help.js +1 -1
  432. package/dist/index.js +5 -5
  433. package/dist/internal-build-worker.js +1 -1
  434. package/dist/internal-build.js +2 -2
  435. package/dist/package.json +8 -8
  436. package/dist/version.mjs +1 -1
  437. package/package.json +16 -16
  438. package/dist/chunks/chunk-3ARTWVQV.js +0 -11
  439. package/dist/chunks/chunk-6UJIJLQC.js +0 -13
  440. package/dist/chunks/chunk-EMTZZXMH.js +0 -13
  441. package/dist/chunks/chunk-XKPB27SC.js +0 -8
  442. package/dist/chunks/chunk-Z3XKNZDP.js +0 -9
  443. package/dist/chunks/compile-vercel-config-HMKEDWC4.js +0 -7
  444. package/dist/chunks/connect-git-provider-WGKVFXW2.js +0 -7
  445. package/dist/chunks/create-project-BTOHPKZB.js +0 -7
  446. package/dist/chunks/detect-projects-I7NEHWSM.js +0 -7
  447. package/dist/chunks/detect-services-4ONC2DH3.js +0 -7
  448. package/dist/chunks/future-3AUPMPY7.js +0 -7
  449. package/dist/chunks/generate-cert-for-deploy-OZWVIWOO.js +0 -7
  450. package/dist/chunks/image-EFBQXTAP.js +0 -7
  451. package/dist/chunks/import-builders-2G4KVI4T.js +0 -7
  452. package/dist/chunks/login-WYDX5KZN.js +0 -7
  453. package/dist/chunks/logs-E3RZLAT2.js +0 -7
  454. package/dist/chunks/migrate-experimental-services-GPGYPN66.js +0 -7
  455. package/dist/chunks/prompt-missing-credentials-7F7MUAWK.js +0 -7
  456. package/dist/chunks/pull-4LISUHDN.js +0 -7
  457. package/dist/chunks/purchase-domain-if-available-QH2OHRLZ.js +0 -7
  458. package/dist/chunks/query-QCIU5IB4.js +0 -7
  459. package/dist/chunks/routes-SBMN6SDF.js +0 -7
  460. package/dist/chunks/rule-inspect-LQISNCBT.js +0 -8
  461. package/dist/chunks/select-org-EKDOS2CQ.js +0 -7
  462. package/dist/chunks/setup-and-link-FHHZAU65.js +0 -7
  463. package/dist/chunks/stamp-TKONNIJ5.js +0 -7
  464. package/dist/chunks/table-SCLK33K7.js +0 -7
  465. package/dist/chunks/token-MYYNOUIT.js +0 -7
  466. package/dist/chunks/token-util-OJHS52JP.js +0 -7
  467. package/dist/chunks/validate-config-K42CVRCZ.js +0 -7
@@ -4,7 +4,7 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{__commonJS,__require}from"./chunk-BZENIQ7N.js";var require_polyfills=__commonJS({"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports,module){var constants=__require("constants"),origCwd=process.cwd,cwd=null,platform=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return cwd||(cwd=origCwd.call(process)),cwd};try{process.cwd()}catch{}typeof process.chdir=="function"&&(chdir=process.chdir,process.chdir=function(d){cwd=null,chdir.call(process,d)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,chdir));var chdir;module.exports=patch;function patch(fs){constants.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&patchLchmod(fs),fs.lutimes||patchLutimes(fs),fs.chown=chownFix(fs.chown),fs.fchown=chownFix(fs.fchown),fs.lchown=chownFix(fs.lchown),fs.chmod=chmodFix(fs.chmod),fs.fchmod=chmodFix(fs.fchmod),fs.lchmod=chmodFix(fs.lchmod),fs.chownSync=chownFixSync(fs.chownSync),fs.fchownSync=chownFixSync(fs.fchownSync),fs.lchownSync=chownFixSync(fs.lchownSync),fs.chmodSync=chmodFixSync(fs.chmodSync),fs.fchmodSync=chmodFixSync(fs.fchmodSync),fs.lchmodSync=chmodFixSync(fs.lchmodSync),fs.stat=statFix(fs.stat),fs.fstat=statFix(fs.fstat),fs.lstat=statFix(fs.lstat),fs.statSync=statFixSync(fs.statSync),fs.fstatSync=statFixSync(fs.fstatSync),fs.lstatSync=statFixSync(fs.lstatSync),fs.chmod&&!fs.lchmod&&(fs.lchmod=function(path,mode,cb){cb&&process.nextTick(cb)},fs.lchmodSync=function(){}),fs.chown&&!fs.lchown&&(fs.lchown=function(path,uid,gid,cb){cb&&process.nextTick(cb)},fs.lchownSync=function(){}),platform==="win32"&&(fs.rename=typeof fs.rename!="function"?fs.rename:function(fs$rename){function rename(from,to,cb){var start=Date.now(),backoff=0;fs$rename(from,to,function CB(er){if(er&&(er.code==="EACCES"||er.code==="EPERM"||er.code==="EBUSY")&&Date.now()-start<6e4){setTimeout(function(){fs.stat(to,function(stater,st){stater&&stater.code==="ENOENT"?fs$rename(from,to,CB):cb(er)})},backoff),backoff<100&&(backoff+=10);return}cb&&cb(er)})}return Object.setPrototypeOf&&Object.setPrototypeOf(rename,fs$rename),rename}(fs.rename)),fs.read=typeof fs.read!="function"?fs.read:function(fs$read){function read(fd,buffer,offset,length,position,callback_){var callback;if(callback_&&typeof callback_=="function"){var eagCounter=0;callback=function(er,_,__){if(er&&er.code==="EAGAIN"&&eagCounter<10)return eagCounter++,fs$read.call(fs,fd,buffer,offset,length,position,callback);callback_.apply(this,arguments)}}return fs$read.call(fs,fd,buffer,offset,length,position,callback)}return Object.setPrototypeOf&&Object.setPrototypeOf(read,fs$read),read}(fs.read),fs.readSync=typeof fs.readSync!="function"?fs.readSync:function(fs$readSync){return function(fd,buffer,offset,length,position){for(var eagCounter=0;;)try{return fs$readSync.call(fs,fd,buffer,offset,length,position)}catch(er){if(er.code==="EAGAIN"&&eagCounter<10){eagCounter++;continue}throw er}}}(fs.readSync);function patchLchmod(fs2){fs2.lchmod=function(path,mode,callback){fs2.open(path,constants.O_WRONLY|constants.O_SYMLINK,mode,function(err,fd){if(err){callback&&callback(err);return}fs2.fchmod(fd,mode,function(err2){fs2.close(fd,function(err22){callback&&callback(err2||err22)})})})},fs2.lchmodSync=function(path,mode){var fd=fs2.openSync(path,constants.O_WRONLY|constants.O_SYMLINK,mode),threw=!0,ret;try{ret=fs2.fchmodSync(fd,mode),threw=!1}finally{if(threw)try{fs2.closeSync(fd)}catch{}else fs2.closeSync(fd)}return ret}}function patchLutimes(fs2){constants.hasOwnProperty("O_SYMLINK")&&fs2.futimes?(fs2.lutimes=function(path,at,mt,cb){fs2.open(path,constants.O_SYMLINK,function(er,fd){if(er){cb&&cb(er);return}fs2.futimes(fd,at,mt,function(er2){fs2.close(fd,function(er22){cb&&cb(er2||er22)})})})},fs2.lutimesSync=function(path,at,mt){var fd=fs2.openSync(path,constants.O_SYMLINK),ret,threw=!0;try{ret=fs2.futimesSync(fd,at,mt),threw=!1}finally{if(threw)try{fs2.closeSync(fd)}catch{}else fs2.closeSync(fd)}return ret}):fs2.futimes&&(fs2.lutimes=function(_a,_b,_c,cb){cb&&process.nextTick(cb)},fs2.lutimesSync=function(){})}function chmodFix(orig){return orig&&function(target,mode,cb){return orig.call(fs,target,mode,function(er){chownErOk(er)&&(er=null),cb&&cb.apply(this,arguments)})}}function chmodFixSync(orig){return orig&&function(target,mode){try{return orig.call(fs,target,mode)}catch(er){if(!chownErOk(er))throw er}}}function chownFix(orig){return orig&&function(target,uid,gid,cb){return orig.call(fs,target,uid,gid,function(er){chownErOk(er)&&(er=null),cb&&cb.apply(this,arguments)})}}function chownFixSync(orig){return orig&&function(target,uid,gid){try{return orig.call(fs,target,uid,gid)}catch(er){if(!chownErOk(er))throw er}}}function statFix(orig){return orig&&function(target,options,cb){typeof options=="function"&&(cb=options,options=null);function callback(er,stats){stats&&(stats.uid<0&&(stats.uid+=4294967296),stats.gid<0&&(stats.gid+=4294967296)),cb&&cb.apply(this,arguments)}return options?orig.call(fs,target,options,callback):orig.call(fs,target,callback)}}function statFixSync(orig){return orig&&function(target,options){var stats=options?orig.call(fs,target,options):orig.call(fs,target);return stats&&(stats.uid<0&&(stats.uid+=4294967296),stats.gid<0&&(stats.gid+=4294967296)),stats}}function chownErOk(er){if(!er||er.code==="ENOSYS")return!0;var nonroot=!process.getuid||process.getuid()!==0;return!!(nonroot&&(er.code==="EINVAL"||er.code==="EPERM"))}}}});var require_legacy_streams=__commonJS({"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports,module){var Stream=__require("stream").Stream;module.exports=legacy;function legacy(fs){return{ReadStream,WriteStream};function ReadStream(path,options){if(!(this instanceof ReadStream))return new ReadStream(path,options);Stream.call(this);var self=this;this.path=path,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,options=options||{};for(var keys=Object.keys(options),index=0,length=keys.length;index<length;index++){var key=keys[index];this[key]=options[key]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){self._read()});return}fs.open(this.path,this.flags,this.mode,function(err,fd){if(err){self.emit("error",err),self.readable=!1;return}self.fd=fd,self.emit("open",fd),self._read()})}function WriteStream(path,options){if(!(this instanceof WriteStream))return new WriteStream(path,options);Stream.call(this),this.path=path,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,options=options||{};for(var keys=Object.keys(options),index=0,length=keys.length;index<length;index++){var key=keys[index];this[key]=options[key]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=fs.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}});var require_clone=__commonJS({"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports,module){"use strict";module.exports=clone;var getPrototypeOf=Object.getPrototypeOf||function(obj){return obj.__proto__};function clone(obj){if(obj===null||typeof obj!="object")return obj;if(obj instanceof Object)var copy={__proto__:getPrototypeOf(obj)};else var copy=Object.create(null);return Object.getOwnPropertyNames(obj).forEach(function(key){Object.defineProperty(copy,key,Object.getOwnPropertyDescriptor(obj,key))}),copy}}});var require_graceful_fs=__commonJS({"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports,module){var fs=__require("fs"),polyfills=require_polyfills(),legacy=require_legacy_streams(),clone=require_clone(),util=__require("util"),gracefulQueue,previousSymbol;typeof Symbol=="function"&&typeof Symbol.for=="function"?(gracefulQueue=Symbol.for("graceful-fs.queue"),previousSymbol=Symbol.for("graceful-fs.previous")):(gracefulQueue="___graceful-fs.queue",previousSymbol="___graceful-fs.previous");function noop(){}function publishQueue(context,queue2){Object.defineProperty(context,gracefulQueue,{get:function(){return queue2}})}var debug=noop;util.debuglog?debug=util.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(debug=function(){var m=util.format.apply(util,arguments);m="GFS4: "+m.split(/\n/).join(`
7
+ import{__commonJS,__require}from"./chunk-NBPLUP7C.js";var require_polyfills=__commonJS({"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports,module){var constants=__require("constants"),origCwd=process.cwd,cwd=null,platform=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return cwd||(cwd=origCwd.call(process)),cwd};try{process.cwd()}catch{}typeof process.chdir=="function"&&(chdir=process.chdir,process.chdir=function(d){cwd=null,chdir.call(process,d)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,chdir));var chdir;module.exports=patch;function patch(fs){constants.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&patchLchmod(fs),fs.lutimes||patchLutimes(fs),fs.chown=chownFix(fs.chown),fs.fchown=chownFix(fs.fchown),fs.lchown=chownFix(fs.lchown),fs.chmod=chmodFix(fs.chmod),fs.fchmod=chmodFix(fs.fchmod),fs.lchmod=chmodFix(fs.lchmod),fs.chownSync=chownFixSync(fs.chownSync),fs.fchownSync=chownFixSync(fs.fchownSync),fs.lchownSync=chownFixSync(fs.lchownSync),fs.chmodSync=chmodFixSync(fs.chmodSync),fs.fchmodSync=chmodFixSync(fs.fchmodSync),fs.lchmodSync=chmodFixSync(fs.lchmodSync),fs.stat=statFix(fs.stat),fs.fstat=statFix(fs.fstat),fs.lstat=statFix(fs.lstat),fs.statSync=statFixSync(fs.statSync),fs.fstatSync=statFixSync(fs.fstatSync),fs.lstatSync=statFixSync(fs.lstatSync),fs.chmod&&!fs.lchmod&&(fs.lchmod=function(path,mode,cb){cb&&process.nextTick(cb)},fs.lchmodSync=function(){}),fs.chown&&!fs.lchown&&(fs.lchown=function(path,uid,gid,cb){cb&&process.nextTick(cb)},fs.lchownSync=function(){}),platform==="win32"&&(fs.rename=typeof fs.rename!="function"?fs.rename:function(fs$rename){function rename(from,to,cb){var start=Date.now(),backoff=0;fs$rename(from,to,function CB(er){if(er&&(er.code==="EACCES"||er.code==="EPERM"||er.code==="EBUSY")&&Date.now()-start<6e4){setTimeout(function(){fs.stat(to,function(stater,st){stater&&stater.code==="ENOENT"?fs$rename(from,to,CB):cb(er)})},backoff),backoff<100&&(backoff+=10);return}cb&&cb(er)})}return Object.setPrototypeOf&&Object.setPrototypeOf(rename,fs$rename),rename}(fs.rename)),fs.read=typeof fs.read!="function"?fs.read:function(fs$read){function read(fd,buffer,offset,length,position,callback_){var callback;if(callback_&&typeof callback_=="function"){var eagCounter=0;callback=function(er,_,__){if(er&&er.code==="EAGAIN"&&eagCounter<10)return eagCounter++,fs$read.call(fs,fd,buffer,offset,length,position,callback);callback_.apply(this,arguments)}}return fs$read.call(fs,fd,buffer,offset,length,position,callback)}return Object.setPrototypeOf&&Object.setPrototypeOf(read,fs$read),read}(fs.read),fs.readSync=typeof fs.readSync!="function"?fs.readSync:function(fs$readSync){return function(fd,buffer,offset,length,position){for(var eagCounter=0;;)try{return fs$readSync.call(fs,fd,buffer,offset,length,position)}catch(er){if(er.code==="EAGAIN"&&eagCounter<10){eagCounter++;continue}throw er}}}(fs.readSync);function patchLchmod(fs2){fs2.lchmod=function(path,mode,callback){fs2.open(path,constants.O_WRONLY|constants.O_SYMLINK,mode,function(err,fd){if(err){callback&&callback(err);return}fs2.fchmod(fd,mode,function(err2){fs2.close(fd,function(err22){callback&&callback(err2||err22)})})})},fs2.lchmodSync=function(path,mode){var fd=fs2.openSync(path,constants.O_WRONLY|constants.O_SYMLINK,mode),threw=!0,ret;try{ret=fs2.fchmodSync(fd,mode),threw=!1}finally{if(threw)try{fs2.closeSync(fd)}catch{}else fs2.closeSync(fd)}return ret}}function patchLutimes(fs2){constants.hasOwnProperty("O_SYMLINK")&&fs2.futimes?(fs2.lutimes=function(path,at,mt,cb){fs2.open(path,constants.O_SYMLINK,function(er,fd){if(er){cb&&cb(er);return}fs2.futimes(fd,at,mt,function(er2){fs2.close(fd,function(er22){cb&&cb(er2||er22)})})})},fs2.lutimesSync=function(path,at,mt){var fd=fs2.openSync(path,constants.O_SYMLINK),ret,threw=!0;try{ret=fs2.futimesSync(fd,at,mt),threw=!1}finally{if(threw)try{fs2.closeSync(fd)}catch{}else fs2.closeSync(fd)}return ret}):fs2.futimes&&(fs2.lutimes=function(_a,_b,_c,cb){cb&&process.nextTick(cb)},fs2.lutimesSync=function(){})}function chmodFix(orig){return orig&&function(target,mode,cb){return orig.call(fs,target,mode,function(er){chownErOk(er)&&(er=null),cb&&cb.apply(this,arguments)})}}function chmodFixSync(orig){return orig&&function(target,mode){try{return orig.call(fs,target,mode)}catch(er){if(!chownErOk(er))throw er}}}function chownFix(orig){return orig&&function(target,uid,gid,cb){return orig.call(fs,target,uid,gid,function(er){chownErOk(er)&&(er=null),cb&&cb.apply(this,arguments)})}}function chownFixSync(orig){return orig&&function(target,uid,gid){try{return orig.call(fs,target,uid,gid)}catch(er){if(!chownErOk(er))throw er}}}function statFix(orig){return orig&&function(target,options,cb){typeof options=="function"&&(cb=options,options=null);function callback(er,stats){stats&&(stats.uid<0&&(stats.uid+=4294967296),stats.gid<0&&(stats.gid+=4294967296)),cb&&cb.apply(this,arguments)}return options?orig.call(fs,target,options,callback):orig.call(fs,target,callback)}}function statFixSync(orig){return orig&&function(target,options){var stats=options?orig.call(fs,target,options):orig.call(fs,target);return stats&&(stats.uid<0&&(stats.uid+=4294967296),stats.gid<0&&(stats.gid+=4294967296)),stats}}function chownErOk(er){if(!er||er.code==="ENOSYS")return!0;var nonroot=!process.getuid||process.getuid()!==0;return!!(nonroot&&(er.code==="EINVAL"||er.code==="EPERM"))}}}});var require_legacy_streams=__commonJS({"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports,module){var Stream=__require("stream").Stream;module.exports=legacy;function legacy(fs){return{ReadStream,WriteStream};function ReadStream(path,options){if(!(this instanceof ReadStream))return new ReadStream(path,options);Stream.call(this);var self=this;this.path=path,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,options=options||{};for(var keys=Object.keys(options),index=0,length=keys.length;index<length;index++){var key=keys[index];this[key]=options[key]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){self._read()});return}fs.open(this.path,this.flags,this.mode,function(err,fd){if(err){self.emit("error",err),self.readable=!1;return}self.fd=fd,self.emit("open",fd),self._read()})}function WriteStream(path,options){if(!(this instanceof WriteStream))return new WriteStream(path,options);Stream.call(this),this.path=path,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,options=options||{};for(var keys=Object.keys(options),index=0,length=keys.length;index<length;index++){var key=keys[index];this[key]=options[key]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=fs.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}});var require_clone=__commonJS({"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports,module){"use strict";module.exports=clone;var getPrototypeOf=Object.getPrototypeOf||function(obj){return obj.__proto__};function clone(obj){if(obj===null||typeof obj!="object")return obj;if(obj instanceof Object)var copy={__proto__:getPrototypeOf(obj)};else var copy=Object.create(null);return Object.getOwnPropertyNames(obj).forEach(function(key){Object.defineProperty(copy,key,Object.getOwnPropertyDescriptor(obj,key))}),copy}}});var require_graceful_fs=__commonJS({"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports,module){var fs=__require("fs"),polyfills=require_polyfills(),legacy=require_legacy_streams(),clone=require_clone(),util=__require("util"),gracefulQueue,previousSymbol;typeof Symbol=="function"&&typeof Symbol.for=="function"?(gracefulQueue=Symbol.for("graceful-fs.queue"),previousSymbol=Symbol.for("graceful-fs.previous")):(gracefulQueue="___graceful-fs.queue",previousSymbol="___graceful-fs.previous");function noop(){}function publishQueue(context,queue2){Object.defineProperty(context,gracefulQueue,{get:function(){return queue2}})}var debug=noop;util.debuglog?debug=util.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(debug=function(){var m=util.format.apply(util,arguments);m="GFS4: "+m.split(/\n/).join(`
8
8
  GFS4: `),console.error(m)});fs[gracefulQueue]||(queue=global[gracefulQueue]||[],publishQueue(fs,queue),fs.close=function(fs$close){function close(fd,cb){return fs$close.call(fs,fd,function(err){err||resetQueue(),typeof cb=="function"&&cb.apply(this,arguments)})}return Object.defineProperty(close,previousSymbol,{value:fs$close}),close}(fs.close),fs.closeSync=function(fs$closeSync){function closeSync(fd){fs$closeSync.apply(fs,arguments),resetQueue()}return Object.defineProperty(closeSync,previousSymbol,{value:fs$closeSync}),closeSync}(fs.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){debug(fs[gracefulQueue]),__require("assert").equal(fs[gracefulQueue].length,0)}));var queue;global[gracefulQueue]||publishQueue(global,fs[gracefulQueue]);module.exports=patch(clone(fs));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!fs.__patched&&(module.exports=patch(fs),fs.__patched=!0);function patch(fs2){polyfills(fs2),fs2.gracefulify=patch,fs2.createReadStream=createReadStream,fs2.createWriteStream=createWriteStream;var fs$readFile=fs2.readFile;fs2.readFile=readFile;function readFile(path,options,cb){return typeof options=="function"&&(cb=options,options=null),go$readFile(path,options,cb);function go$readFile(path2,options2,cb2,startTime){return fs$readFile(path2,options2,function(err){err&&(err.code==="EMFILE"||err.code==="ENFILE")?enqueue([go$readFile,[path2,options2,cb2],err,startTime||Date.now(),Date.now()]):typeof cb2=="function"&&cb2.apply(this,arguments)})}}var fs$writeFile=fs2.writeFile;fs2.writeFile=writeFile;function writeFile(path,data,options,cb){return typeof options=="function"&&(cb=options,options=null),go$writeFile(path,data,options,cb);function go$writeFile(path2,data2,options2,cb2,startTime){return fs$writeFile(path2,data2,options2,function(err){err&&(err.code==="EMFILE"||err.code==="ENFILE")?enqueue([go$writeFile,[path2,data2,options2,cb2],err,startTime||Date.now(),Date.now()]):typeof cb2=="function"&&cb2.apply(this,arguments)})}}var fs$appendFile=fs2.appendFile;fs$appendFile&&(fs2.appendFile=appendFile);function appendFile(path,data,options,cb){return typeof options=="function"&&(cb=options,options=null),go$appendFile(path,data,options,cb);function go$appendFile(path2,data2,options2,cb2,startTime){return fs$appendFile(path2,data2,options2,function(err){err&&(err.code==="EMFILE"||err.code==="ENFILE")?enqueue([go$appendFile,[path2,data2,options2,cb2],err,startTime||Date.now(),Date.now()]):typeof cb2=="function"&&cb2.apply(this,arguments)})}}var fs$copyFile=fs2.copyFile;fs$copyFile&&(fs2.copyFile=copyFile);function copyFile(src,dest,flags,cb){return typeof flags=="function"&&(cb=flags,flags=0),go$copyFile(src,dest,flags,cb);function go$copyFile(src2,dest2,flags2,cb2,startTime){return fs$copyFile(src2,dest2,flags2,function(err){err&&(err.code==="EMFILE"||err.code==="ENFILE")?enqueue([go$copyFile,[src2,dest2,flags2,cb2],err,startTime||Date.now(),Date.now()]):typeof cb2=="function"&&cb2.apply(this,arguments)})}}var fs$readdir=fs2.readdir;fs2.readdir=readdir;var noReaddirOptionVersions=/^v[0-5]\./;function readdir(path,options,cb){typeof options=="function"&&(cb=options,options=null);var go$readdir=noReaddirOptionVersions.test(process.version)?function(path2,options2,cb2,startTime){return fs$readdir(path2,fs$readdirCallback(path2,options2,cb2,startTime))}:function(path2,options2,cb2,startTime){return fs$readdir(path2,options2,fs$readdirCallback(path2,options2,cb2,startTime))};return go$readdir(path,options,cb);function fs$readdirCallback(path2,options2,cb2,startTime){return function(err,files){err&&(err.code==="EMFILE"||err.code==="ENFILE")?enqueue([go$readdir,[path2,options2,cb2],err,startTime||Date.now(),Date.now()]):(files&&files.sort&&files.sort(),typeof cb2=="function"&&cb2.call(this,err,files))}}}if(process.version.substr(0,4)==="v0.8"){var legStreams=legacy(fs2);ReadStream=legStreams.ReadStream,WriteStream=legStreams.WriteStream}var fs$ReadStream=fs2.ReadStream;fs$ReadStream&&(ReadStream.prototype=Object.create(fs$ReadStream.prototype),ReadStream.prototype.open=ReadStream$open);var fs$WriteStream=fs2.WriteStream;fs$WriteStream&&(WriteStream.prototype=Object.create(fs$WriteStream.prototype),WriteStream.prototype.open=WriteStream$open),Object.defineProperty(fs2,"ReadStream",{get:function(){return ReadStream},set:function(val){ReadStream=val},enumerable:!0,configurable:!0}),Object.defineProperty(fs2,"WriteStream",{get:function(){return WriteStream},set:function(val){WriteStream=val},enumerable:!0,configurable:!0});var FileReadStream=ReadStream;Object.defineProperty(fs2,"FileReadStream",{get:function(){return FileReadStream},set:function(val){FileReadStream=val},enumerable:!0,configurable:!0});var FileWriteStream=WriteStream;Object.defineProperty(fs2,"FileWriteStream",{get:function(){return FileWriteStream},set:function(val){FileWriteStream=val},enumerable:!0,configurable:!0});function ReadStream(path,options){return this instanceof ReadStream?(fs$ReadStream.apply(this,arguments),this):ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var that=this;open(that.path,that.flags,that.mode,function(err,fd){err?(that.autoClose&&that.destroy(),that.emit("error",err)):(that.fd=fd,that.emit("open",fd),that.read())})}function WriteStream(path,options){return this instanceof WriteStream?(fs$WriteStream.apply(this,arguments),this):WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var that=this;open(that.path,that.flags,that.mode,function(err,fd){err?(that.destroy(),that.emit("error",err)):(that.fd=fd,that.emit("open",fd))})}function createReadStream(path,options){return new fs2.ReadStream(path,options)}function createWriteStream(path,options){return new fs2.WriteStream(path,options)}var fs$open=fs2.open;fs2.open=open;function open(path,flags,mode,cb){return typeof mode=="function"&&(cb=mode,mode=null),go$open(path,flags,mode,cb);function go$open(path2,flags2,mode2,cb2,startTime){return fs$open(path2,flags2,mode2,function(err,fd){err&&(err.code==="EMFILE"||err.code==="ENFILE")?enqueue([go$open,[path2,flags2,mode2,cb2],err,startTime||Date.now(),Date.now()]):typeof cb2=="function"&&cb2.apply(this,arguments)})}}return fs2}function enqueue(elem){debug("ENQUEUE",elem[0].name,elem[1]),fs[gracefulQueue].push(elem),retry()}var retryTimer;function resetQueue(){for(var now=Date.now(),i=0;i<fs[gracefulQueue].length;++i)fs[gracefulQueue][i].length>2&&(fs[gracefulQueue][i][3]=now,fs[gracefulQueue][i][4]=now);retry()}function retry(){if(clearTimeout(retryTimer),retryTimer=void 0,fs[gracefulQueue].length!==0){var elem=fs[gracefulQueue].shift(),fn=elem[0],args=elem[1],err=elem[2],startTime=elem[3],lastTime=elem[4];if(startTime===void 0)debug("RETRY",fn.name,args),fn.apply(null,args);else if(Date.now()-startTime>=6e4){debug("TIMEOUT",fn.name,args);var cb=args.pop();typeof cb=="function"&&cb.call(null,err)}else{var sinceAttempt=Date.now()-lastTime,sinceStart=Math.max(lastTime-startTime,1),desiredDelay=Math.min(sinceStart*1.2,100);sinceAttempt>=desiredDelay?(debug("RETRY",fn.name,args),fn.apply(null,args.concat([startTime]))):fs[gracefulQueue].push(elem)}retryTimer===void 0&&(retryTimer=setTimeout(retry,0))}}}});var require_strip_bom=__commonJS({"../../node_modules/.pnpm/strip-bom@3.0.0/node_modules/strip-bom/index.js"(exports,module){"use strict";module.exports=x=>{if(typeof x!="string")throw new TypeError("Expected a string, got "+typeof x);return x.charCodeAt(0)===65279?x.slice(1):x}}});var require_is_arrayish=__commonJS({"../../node_modules/.pnpm/is-arrayish@0.2.1/node_modules/is-arrayish/index.js"(exports,module){"use strict";module.exports=function(obj){return obj?obj instanceof Array||Array.isArray(obj)||obj.length>=0&&obj.splice instanceof Function:!1}}});var require_error_ex=__commonJS({"../../node_modules/.pnpm/error-ex@1.3.4/node_modules/error-ex/index.js"(exports,module){"use strict";var util=__require("util"),isArrayish=require_is_arrayish(),errorEx=function(name,properties){(!name||name.constructor!==String)&&(properties=name||{},name=Error.name);var errorExError=function ErrorEXError(message){if(!this)return new ErrorEXError(message);message=message instanceof Error?message.message:message||this.message,Error.call(this,message),Error.captureStackTrace(this,errorExError),this.name=name,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var newMessage=message.split(/\r?\n/g);for(var key in properties)if(properties.hasOwnProperty(key)){var modifier=properties[key];"message"in modifier&&(newMessage=modifier.message(this[key],newMessage)||newMessage,isArrayish(newMessage)||(newMessage=[newMessage]))}return newMessage.join(`
9
9
  `)},set:function(v){message=v}});var overwrittenStack=null,stackDescriptor=Object.getOwnPropertyDescriptor(this,"stack"),stackGetter=stackDescriptor.get,stackValue=stackDescriptor.value;delete stackDescriptor.value,delete stackDescriptor.writable,stackDescriptor.set=function(newstack){overwrittenStack=newstack},stackDescriptor.get=function(){var stack=(overwrittenStack||(stackGetter?stackGetter.call(this):stackValue)).split(/\r?\n+/g);overwrittenStack||(stack[0]=this.name+": "+this.message);var lineCount=1;for(var key in properties)if(properties.hasOwnProperty(key)){var modifier=properties[key];if("line"in modifier){var line=modifier.line(this[key]);line&&stack.splice(lineCount++,0," "+line)}"stack"in modifier&&modifier.stack(this[key],stack)}return stack.join(`
10
10
  `)},Object.defineProperty(this,"stack",stackDescriptor)};return Object.setPrototypeOf?(Object.setPrototypeOf(errorExError.prototype,Error.prototype),Object.setPrototypeOf(errorExError,Error)):util.inherits(errorExError,Error),errorExError};errorEx.append=function(str,def){return{message:function(v,message){return v=v||def,v&&(message[0]+=" "+str.replace("%s",v.toString())),message}}};errorEx.line=function(str,def){return{line:function(v){return v=v||def,v?str.replace("%s",v.toString()):null}}};module.exports=errorEx}});var require_unicode=__commonJS({"../../node_modules/.pnpm/parse-json@3.0.0/node_modules/parse-json/vendor/unicode.js"(exports,module){var Uni=module.exports;module.exports.isWhiteSpace=function(x){return x===" "||x==="\xA0"||x==="\uFEFF"||x>=" "&&x<="\r"||x==="\u1680"||x==="\u180E"||x>="\u2000"&&x<="\u200A"||x==="\u2028"||x==="\u2029"||x==="\u202F"||x==="\u205F"||x==="\u3000"};module.exports.isWhiteSpaceJSON=function(x){return x===" "||x===" "||x===`
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{packageName}from"./chunk-B4KA3ZH2.js";import{formatOption,jsonOption,limitOption,projectOption}from"./chunk-DORCX7UB.js";var projectScopeOption={...projectOption,shorthand:"p",description:"Project name or ID (default: linked project)."},nextOption={name:"next",shorthand:null,type:String,deprecated:!1,description:"Show the next page using the cursor from the previous output",argument:"CURSOR"},cursorOption={name:"cursor",shorthand:"c",type:String,deprecated:!0,description:"Cursor from a previous page to continue listing from",argument:"STRING"},TAGS_SORT_BY_CHOICES=["updatedAt","tag"],TAGS_SORT_ORDER_CHOICES=["asc","desc"],tagsLsSubcommand={name:"ls",aliases:["list"],description:"List a repository's tags",arguments:[{name:"repository",required:!0}],options:[projectScopeOption,{name:"sort-by",shorthand:null,type:String,deprecated:!1,description:"Field to sort tags by (default: updatedAt)",argument:"FIELD",choices:TAGS_SORT_BY_CHOICES},{name:"sort-order",shorthand:null,type:String,deprecated:!1,description:"Sort direction (default: desc)",argument:"ORDER",choices:TAGS_SORT_ORDER_CHOICES},limitOption,nextOption,cursorOption,formatOption,jsonOption],examples:[{name:"List a repository's tags",value:`${packageName} vcr tag ls my-app`}]},tagsInspectSubcommand={name:"inspect",aliases:["get"],description:"Show details for a single tag",arguments:[{name:"repository",required:!0},{name:"tag",required:!0}],options:[projectScopeOption,formatOption,jsonOption],examples:[{name:"Inspect a tag by name",value:`${packageName} vcr tag inspect my-app latest`}]},tagsAggregateCommand={name:"tag",aliases:["tags"],description:"List or inspect a repository's tags",arguments:[],subcommands:[tagsLsSubcommand,tagsInspectSubcommand],options:[],examples:[]};export{TAGS_SORT_BY_CHOICES,TAGS_SORT_ORDER_CHOICES,tagsLsSubcommand,tagsInspectSubcommand,tagsAggregateCommand};
7
+ import{packageName}from"./chunk-EFGZK6OY.js";import{formatOption,jsonOption,limitOption,projectOption}from"./chunk-DORCX7UB.js";var projectScopeOption={...projectOption,shorthand:"p",description:"Project name or ID (default: linked project)."},nextOption={name:"next",shorthand:null,type:String,deprecated:!1,description:"Show the next page using the cursor from the previous output",argument:"CURSOR"},cursorOption={name:"cursor",shorthand:"c",type:String,deprecated:!0,description:"Cursor from a previous page to continue listing from",argument:"STRING"},TAGS_SORT_BY_CHOICES=["updatedAt","tag"],TAGS_SORT_ORDER_CHOICES=["asc","desc"],tagsLsSubcommand={name:"ls",aliases:["list"],description:"List a repository's tags",arguments:[{name:"repository",required:!0}],options:[projectScopeOption,{name:"sort-by",shorthand:null,type:String,deprecated:!1,description:"Field to sort tags by (default: updatedAt)",argument:"FIELD",choices:TAGS_SORT_BY_CHOICES},{name:"sort-order",shorthand:null,type:String,deprecated:!1,description:"Sort direction (default: desc)",argument:"ORDER",choices:TAGS_SORT_ORDER_CHOICES},limitOption,nextOption,cursorOption,formatOption,jsonOption],examples:[{name:"List a repository's tags",value:`${packageName} vcr tag ls my-app`}]},tagsInspectSubcommand={name:"inspect",aliases:["get"],description:"Show details for a single tag",arguments:[{name:"repository",required:!0},{name:"tag",required:!0}],options:[projectScopeOption,formatOption,jsonOption],examples:[{name:"Inspect a tag by name",value:`${packageName} vcr tag inspect my-app latest`}]},tagsAggregateCommand={name:"tag",aliases:["tags"],description:"List or inspect a repository's tags",arguments:[],subcommands:[tagsLsSubcommand,tagsInspectSubcommand],options:[],examples:[]};export{TAGS_SORT_BY_CHOICES,TAGS_SORT_ORDER_CHOICES,tagsLsSubcommand,tagsInspectSubcommand,tagsAggregateCommand};
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{__commonJS}from"./chunk-BZENIQ7N.js";var require_balanced_match=__commonJS({"../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports,module){"use strict";module.exports=balanced;function balanced(a,b,str){a instanceof RegExp&&(a=maybeMatch(a,str)),b instanceof RegExp&&(b=maybeMatch(b,str));var r=range(a,b,str);return r&&{start:r[0],end:r[1],pre:str.slice(0,r[0]),body:str.slice(r[0]+a.length,r[1]),post:str.slice(r[1]+b.length)}}function maybeMatch(reg,str){var m=str.match(reg);return m?m[0]:null}balanced.range=range;function range(a,b,str){var begs,beg,left,right,result,ai=str.indexOf(a),bi=str.indexOf(b,ai+1),i=ai;if(ai>=0&&bi>0){if(a===b)return[ai,bi];for(begs=[],left=str.length;i>=0&&!result;)i==ai?(begs.push(i),ai=str.indexOf(a,i+1)):begs.length==1?result=[begs.pop(),bi]:(beg=begs.pop(),beg<left&&(left=beg,right=bi),bi=str.indexOf(b,i+1)),i=ai<bi&&ai>=0?ai:bi;begs.length&&(result=[left,right])}return result}}});export{require_balanced_match};
7
+ import{__commonJS}from"./chunk-NBPLUP7C.js";var require_balanced_match=__commonJS({"../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports,module){"use strict";module.exports=balanced;function balanced(a,b,str){a instanceof RegExp&&(a=maybeMatch(a,str)),b instanceof RegExp&&(b=maybeMatch(b,str));var r=range(a,b,str);return r&&{start:r[0],end:r[1],pre:str.slice(0,r[0]),body:str.slice(r[0]+a.length,r[1]),post:str.slice(r[1]+b.length)}}function maybeMatch(reg,str){var m=str.match(reg);return m?m[0]:null}balanced.range=range;function range(a,b,str){var begs,beg,left,right,result,ai=str.indexOf(a),bi=str.indexOf(b,ai+1),i=ai;if(ai>=0&&bi>0){if(a===b)return[ai,bi];for(begs=[],left=str.length;i>=0&&!result;)i==ai?(begs.push(i),ai=str.indexOf(a,i+1)):begs.length==1?result=[begs.pop(),bi]:(beg=begs.pop(),beg<left&&(left=beg,right=bi),bi=str.indexOf(b,i+1)),i=ai<bi&&ai>=0?ai:bi;begs.length&&(result=[left,right])}return result}}});export{require_balanced_match};
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{findOrganization}from"./chunk-DGLE44KA.js";import{TEAM_BUDGET,listBudgetProducts}from"./chunk-CTBSRTJW.js";import{BUDGET_SCOPES,OPTION_SCOPES,isBudgetScope}from"./chunk-L74PQVPL.js";import{getProjectByNameOrId}from"./chunk-3AFEVHHY.js";import{getTeamByIdOrSlug}from"./chunk-3ARTWVQV.js";import{ProjectNotFound,isAPIError}from"./chunk-QFE3RPMA.js";import{getCommandName}from"./chunk-B4KA3ZH2.js";import{output_manager_default}from"./chunk-RYSO5U3E.js";async function resolveBudgetTeam(client){let id=await client.resolveCurrentTeam();if(!id)return output_manager_default.error("No team selected. Use `vercel --scope <team-slug> budget \u2026` or run `vercel switch` first."),null;try{let team=await getTeamByIdOrSlug(client,id);return{id:team.id,slug:team.slug}}catch{return{id,slug:id}}}var SCOPE_OPTIONS={organization:{noun:"an organization slug or ID",resolve:async(_client,organization)=>({value:organizationTarget(organization)})},project:{noun:"a project name or ID",resolve:resolveProject},product:{noun:"a product name or ID",resolve:resolveProduct}};function parseBudgetScopeOptions(opts){let given=OPTION_SCOPES.filter(scope2=>opts[`--${scope2}`]!==void 0);if(given.length>1)return{error:`Can't use --${given[0]} with --${given[1]}.`};if(given.length===0)return{value:null};let scope=given[0],value=opts[`--${scope}`]?.trim();return value?{value:{scope,value}}:{error:`Provide ${SCOPE_OPTIONS[scope].noun} with --${scope}.`}}function parseBudgetFilterOptions(opts){let scope=parseBudgetScopeOptions(opts);if("error"in scope)return scope;let values=(opts["--type"]??[]).flatMap(value=>value.split(",")).map(value=>value.trim());if(values.length===0)return{value:{input:scope.value,types:null}};let unknown=values.find(value=>!isBudgetScope(value));return unknown!==void 0?{error:`Unknown budget type "${unknown}". Expected one of: ${BUDGET_SCOPES.join(", ")}.`}:scope.value?{error:`Can't use --type with --${scope.value.scope}.`}:{value:{input:null,types:BUDGET_SCOPES.filter(type=>values.includes(type))}}}function scopeOptionArgs(input){return input?` --${input.scope} ${quoteArg(input.value)}`:""}function quoteArg(arg){return/\s/.test(arg)?JSON.stringify(arg):arg}function teamTarget(team){return{selector:TEAM_BUDGET,args:"",where:`on team ${team.slug}`,pauses:`all projects on team ${team.slug}`,json:{scope:"team",scopeId:team.id,name:team.slug}}}async function resolveBudgetTarget(client,team,input,{readOnly=!1}={}){return input?SCOPE_OPTIONS[input.scope].resolve(client,team,input.value,readOnly):{value:teamTarget(team)}}function typeFilter(team,types){if(!types)return{selector:void 0,args:"",where:`on team ${team.slug}`,json:{scope:null,scopeId:null,name:null}};let[first]=types;return{selector:{scope:types},args:types.includes("team")||first===void 0?"":` --${first} <${first.toUpperCase()}>`,where:`on team ${team.slug} (type ${types.join(", ")})`,json:{type:types}}}async function resolveBudgetFilter(client,team,{input,types}){return input?resolveBudgetTarget(client,team,input,{readOnly:!0}):{value:typeFilter(team,types)}}async function resolveBudgetOwner(client,input){if(input?.scope==="organization")return resolveOrganization(client,input.value);let team=await resolveBudgetTeam(client);return team?{value:{...team,type:"team"}}:null}async function resolveOrganization(client,value){let found=await findOrganization(client,value);return"error"in found?{error:found.error,usage:!1}:{value:{type:"organization",...found.value}}}function organizationTarget(organization){return{selector:{scope:"organization",orgId:organization.id},args:` --organization ${organization.slug}`,where:`on organization ${organization.slug}`,pauses:null,json:{scope:"organization",scopeId:organization.id,name:organization.slug}}}var PROJECT_ID=/^prj_[A-Za-z0-9]+$/;async function resolveProject(client,team,name,readOnly){let project;try{project=await getProjectByNameOrId(client,name,team.id)}catch(err){if(isAPIError(err))return{error:err.message,usage:!1};throw err}return project instanceof ProjectNotFound&&readOnly&&PROJECT_ID.test(name)?{value:{selector:{scope:"project",scopeId:name},args:` --project ${name}`,where:`on project ${name}`,pauses:`project ${name}`,json:{scope:"project",scopeId:name,name:null}}}:project instanceof ProjectNotFound?{error:`Project "${name}" was not found on team ${team.slug}.`,usage:!1}:{value:{selector:{scope:"project",scopeId:project.id},args:` --project ${project.name}`,where:`on project ${project.name}`,pauses:`project ${project.name}`,json:{scope:"project",scopeId:project.id,name:project.name}}}}var MAX_PRODUCT_SUGGESTIONS=5,PRODUCT_ID=/^prod_[a-z0-9]+$/;async function resolveProduct(client,team,name){let products;try{products=await listBudgetProducts(client)}catch(err){if(isAPIError(err))return{error:err.message,usage:!1};throw err}let lower=name.toLowerCase(),product=products.find(p=>p.id===name)??products.find(p=>p.name.toLowerCase()===lower);if(!product&&PRODUCT_ID.test(name))return{value:{selector:{scope:"product",scopeId:name},args:` --product ${name}`,where:`on product ${name}`,pauses:null,json:{scope:"product",scopeId:name,name:null}}};if(!product){if(products.length===0)return{error:`Team ${team.slug} has no products that can have a budget.`,usage:!0};let similar=products.filter(p=>p.name.toLowerCase().includes(lower)),hint=similar.length>0&&similar.length<=MAX_PRODUCT_SUGGESTIONS?`Did you mean ${similar.map(p=>`"${p.name}"`).join(", ")}?`:`Products that can have one: ${products.map(p=>p.name).sort((a,b)=>a.localeCompare(b)).join(", ")}.`;return{error:`Product "${name}" can't have a budget on team ${team.slug}. ${hint}`,usage:!0}}return{value:{selector:{scope:"product",scopeId:product.id},args:` --product ${product.id}`,where:`on product ${product.name}`,pauses:product.pausable?`${product.name} usage`:null,json:{scope:"product",scopeId:product.id,name:product.name}}}}function rejectUnexpectedArgs(args,command){return args.length===0?!1:(output_manager_default.error(`Unexpected argument "${args[0]}". ${getCommandName(command)} takes options only.`),!0)}function trackScopeOptions(telemetry,opts){for(let scope of OPTION_SCOPES){let method=`trackCliOption${capitalize(scope)}`;telemetry[method](opts[`--${scope}`])}}function capitalize(value){return`${value[0].toUpperCase()}${value.slice(1)}`}export{parseBudgetScopeOptions,parseBudgetFilterOptions,scopeOptionArgs,resolveBudgetTarget,typeFilter,resolveBudgetFilter,resolveBudgetOwner,organizationTarget,rejectUnexpectedArgs,trackScopeOptions};
7
+ import{findOrganization}from"./chunk-PKWSWWVW.js";import{TEAM_BUDGET,listBudgetProducts}from"./chunk-NFPO75IP.js";import{BUDGET_SCOPES,OPTION_SCOPES,isBudgetScope}from"./chunk-L74PQVPL.js";import{getProjectByNameOrId}from"./chunk-UGVOMXYR.js";import{getTeamByIdOrSlug}from"./chunk-NVU7XTNI.js";import{ProjectNotFound,isAPIError}from"./chunk-MTPHHAPR.js";import{getCommandName}from"./chunk-EFGZK6OY.js";import{output_manager_default}from"./chunk-RIXTYUYN.js";async function resolveBudgetTeam(client){let id=await client.resolveCurrentTeam();if(!id)return output_manager_default.error("No team selected. Use `vercel --scope <team-slug> budget \u2026` or run `vercel switch` first."),null;try{let team=await getTeamByIdOrSlug(client,id);return{id:team.id,slug:team.slug}}catch{return{id,slug:id}}}var SCOPE_OPTIONS={organization:{noun:"an organization slug or ID",resolve:async(_client,organization)=>({value:organizationTarget(organization)})},project:{noun:"a project name or ID",resolve:resolveProject},product:{noun:"a product name or ID",resolve:resolveProduct}};function parseBudgetScopeOptions(opts){let given=OPTION_SCOPES.filter(scope2=>opts[`--${scope2}`]!==void 0);if(given.length>1)return{error:`Can't use --${given[0]} with --${given[1]}.`};if(given.length===0)return{value:null};let scope=given[0],value=opts[`--${scope}`]?.trim();return value?{value:{scope,value}}:{error:`Provide ${SCOPE_OPTIONS[scope].noun} with --${scope}.`}}function parseBudgetFilterOptions(opts){let scope=parseBudgetScopeOptions(opts);if("error"in scope)return scope;let values=(opts["--type"]??[]).flatMap(value=>value.split(",")).map(value=>value.trim());if(values.length===0)return{value:{input:scope.value,types:null}};let unknown=values.find(value=>!isBudgetScope(value));return unknown!==void 0?{error:`Unknown budget type "${unknown}". Expected one of: ${BUDGET_SCOPES.join(", ")}.`}:scope.value?{error:`Can't use --type with --${scope.value.scope}.`}:{value:{input:null,types:BUDGET_SCOPES.filter(type=>values.includes(type))}}}function scopeOptionArgs(input){return input?` --${input.scope} ${quoteArg(input.value)}`:""}function quoteArg(arg){return/\s/.test(arg)?JSON.stringify(arg):arg}function teamTarget(team){return{selector:TEAM_BUDGET,args:"",where:`on team ${team.slug}`,pauses:`all projects on team ${team.slug}`,json:{scope:"team",scopeId:team.id,name:team.slug}}}async function resolveBudgetTarget(client,team,input,{readOnly=!1}={}){return input?SCOPE_OPTIONS[input.scope].resolve(client,team,input.value,readOnly):{value:teamTarget(team)}}function typeFilter(team,types){if(!types)return{selector:void 0,args:"",where:`on team ${team.slug}`,json:{scope:null,scopeId:null,name:null}};let[first]=types;return{selector:{scope:types},args:types.includes("team")||first===void 0?"":` --${first} <${first.toUpperCase()}>`,where:`on team ${team.slug} (type ${types.join(", ")})`,json:{type:types}}}async function resolveBudgetFilter(client,team,{input,types}){return input?resolveBudgetTarget(client,team,input,{readOnly:!0}):{value:typeFilter(team,types)}}async function resolveBudgetOwner(client,input){if(input?.scope==="organization")return resolveOrganization(client,input.value);let team=await resolveBudgetTeam(client);return team?{value:{...team,type:"team"}}:null}async function resolveOrganization(client,value){let found=await findOrganization(client,value);return"error"in found?{error:found.error,usage:!1}:{value:{type:"organization",...found.value}}}function organizationTarget(organization){return{selector:{scope:"organization",orgId:organization.id},args:` --organization ${organization.slug}`,where:`on organization ${organization.slug}`,pauses:null,json:{scope:"organization",scopeId:organization.id,name:organization.slug}}}var PROJECT_ID=/^prj_[A-Za-z0-9]+$/;async function resolveProject(client,team,name,readOnly){let project;try{project=await getProjectByNameOrId(client,name,team.id)}catch(err){if(isAPIError(err))return{error:err.message,usage:!1};throw err}return project instanceof ProjectNotFound&&readOnly&&PROJECT_ID.test(name)?{value:{selector:{scope:"project",scopeId:name},args:` --project ${name}`,where:`on project ${name}`,pauses:`project ${name}`,json:{scope:"project",scopeId:name,name:null}}}:project instanceof ProjectNotFound?{error:`Project "${name}" was not found on team ${team.slug}.`,usage:!1}:{value:{selector:{scope:"project",scopeId:project.id},args:` --project ${project.name}`,where:`on project ${project.name}`,pauses:`project ${project.name}`,json:{scope:"project",scopeId:project.id,name:project.name}}}}var MAX_PRODUCT_SUGGESTIONS=5,PRODUCT_ID=/^prod_[a-z0-9]+$/;async function resolveProduct(client,team,name){let products;try{products=await listBudgetProducts(client)}catch(err){if(isAPIError(err))return{error:err.message,usage:!1};throw err}let lower=name.toLowerCase(),product=products.find(p=>p.id===name)??products.find(p=>p.name.toLowerCase()===lower);if(!product&&PRODUCT_ID.test(name))return{value:{selector:{scope:"product",scopeId:name},args:` --product ${name}`,where:`on product ${name}`,pauses:null,json:{scope:"product",scopeId:name,name:null}}};if(!product){if(products.length===0)return{error:`Team ${team.slug} has no products that can have a budget.`,usage:!0};let similar=products.filter(p=>p.name.toLowerCase().includes(lower)),hint=similar.length>0&&similar.length<=MAX_PRODUCT_SUGGESTIONS?`Did you mean ${similar.map(p=>`"${p.name}"`).join(", ")}?`:`Products that can have one: ${products.map(p=>p.name).sort((a,b)=>a.localeCompare(b)).join(", ")}.`;return{error:`Product "${name}" can't have a budget on team ${team.slug}. ${hint}`,usage:!0}}return{value:{selector:{scope:"product",scopeId:product.id},args:` --product ${product.id}`,where:`on product ${product.name}`,pauses:product.pausable?`${product.name} usage`:null,json:{scope:"product",scopeId:product.id,name:product.name}}}}function rejectUnexpectedArgs(args,command){return args.length===0?!1:(output_manager_default.error(`Unexpected argument "${args[0]}". ${getCommandName(command)} takes options only.`),!0)}function trackScopeOptions(telemetry,opts){for(let scope of OPTION_SCOPES){let method=`trackCliOption${capitalize(scope)}`;telemetry[method](opts[`--${scope}`])}}function capitalize(value){return`${value[0].toUpperCase()}${value.slice(1)}`}export{parseBudgetScopeOptions,parseBudgetFilterOptions,scopeOptionArgs,resolveBudgetTarget,typeFilter,resolveBudgetFilter,resolveBudgetOwner,organizationTarget,rejectUnexpectedArgs,trackScopeOptions};
@@ -0,0 +1,7 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __dirname_ } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __dirname_(__filename);
7
+ function e(e2){return t2=>{if(!e2.aborted)throw t2}}function t(e2,t2){let n2=e2();return Object.assign(n2,{[Symbol.dispose]:()=>t2(n2)})}function n(e2){return{[Symbol.dispose]:e2}}function r(n2){return t(()=>{let t2=new AbortController;return{abort:e2=>t2.abort(e2??n2),signal:t2.signal,ignoreInterruptions:e(t2.signal)}},e2=>e2.abort(n2))}function i(){var e2=typeof SuppressedError=="function"?SuppressedError:function(e3,t3){var n3=Error();return n3.name="SuppressedError",n3.error=e3,n3.suppressed=t3,n3},t2={},n2=[];function r2(e3,t3){if(t3!=null){if(Object(t3)!==t3)throw TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(e3)var r3=t3[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(r3===void 0&&(r3=t3[Symbol.dispose||Symbol.for("Symbol.dispose")],e3))var i2=r3;if(typeof r3!="function")throw TypeError("Object is not disposable.");i2&&(r3=function(){try{i2.call(t3)}catch(e4){return Promise.reject(e4)}}),n2.push({v:t3,d:r3,a:e3})}else e3&&n2.push({d:t3,a:e3});return t3}return{e:t2,u:r2.bind(null,!1),a:r2.bind(null,!0),d:function(){var r3,i2=this.e,a=0;function o(){for(;r3=n2.pop();)try{if(!r3.a&&a===1)return a=0,n2.push(r3),Promise.resolve().then(o);if(r3.d){var e3=r3.d.call(r3.v);if(r3.a)return a|=2,Promise.resolve(e3).then(o,s)}else a|=1}catch(e4){return s(e4)}if(a===1)return i2===t2?Promise.resolve():Promise.reject(i2);if(i2!==t2)throw i2}function s(n3){return i2=i2===t2?n3:new e2(n3,i2),o()}return o()}}}export{t,n,r,i};
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{assertOrgIdMatchesAppTeam,findProjectsFromPath,getConfigFilePath,getLinkFromDir,getOrgSlug,getRepoLink,getUser,getVercelDirectory,introspectToken,isOwnerLookupUnavailableError,resolveAppFromToken}from"./chunk-ZHGKJCQ2.js";import{require_ms}from"./chunk-MXTC4ZAQ.js";import{parseArguments}from"./chunk-INIZJZ3O.js";import{getTeamByIdOrSlug}from"./chunk-3ARTWVQV.js";import{require_cli_config}from"./chunk-4SAVH3H7.js";import{InvalidToken,TeamDeleted}from"./chunk-QFE3RPMA.js";import{output_manager_default}from"./chunk-RYSO5U3E.js";import{require_build_utils}from"./chunk-5MDNVAE6.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_cli_config=__toESM(require_cli_config(),1),import_ms=__toESM(require_ms(),1);var TEAM_SLUG_TTL_MS=(0,import_ms.default)("1d");function getCachedTeamSlug(config,teamId,now=Date.now()){let saved=config.cachedTeamSlugs?.[teamId];if(!isSavedTeamSlug(saved))return;let age=now-saved.savedAt;return age>=0&&age<TEAM_SLUG_TTL_MS?saved.slug:void 0}function setCachedTeamSlug(client,teamId,slug){if(getCachedTeamSlug(client.config,teamId)===slug)return;let saved={slug,savedAt:Date.now()};updateCachedTeamSlugs(client,slugs=>({...slugs,[teamId]:saved}))}function forgetCachedTeamSlug(client,teamId){let slugs=client.config.cachedTeamSlugs;!slugs||!(teamId in slugs)||updateCachedTeamSlugs(client,saved=>{let rest={...saved};return delete rest[teamId],rest})}function isSavedTeamSlug(value){return typeof value=="object"&&value!==null&&typeof value.slug=="string"&&typeof value.savedAt=="number"}function updateCachedTeamSlugs(client,update){try{let configPath=getConfigFilePath(),savedConfig=(0,import_cli_config.readGlobalConfigFile)(configPath),cachedTeamSlugs=update(savedConfig.cachedTeamSlugs??{}),config={...savedConfig,cachedTeamSlugs};(0,import_cli_config.writeGlobalConfigFile)(configPath,config),client.config.cachedTeamSlugs=cachedTeamSlugs}catch{output_manager_default.debug("Failed to persist cached team slugs.")}}var import_build_utils=__toESM(require_build_utils(),1);import{relative}from"path";async function getScope(client,opts={}){let{user,app,token}=await getPrincipal(client),defaultTeamId=user?.version==="northstar"&&!client.ignoresSavedTeam?user.defaultTeamId:void 0,appTeamId=!user&&app?token?.team?.id:void 0;if(!user&&app&&opts.getTeam===!1)throw new Error("App principal scope resolution requires a team lookup.");!user&&app&&(client.ignoresSavedTeam&&appTeamId&&assertOrgIdMatchesAppTeam(client,appTeamId),client.config.currentTeam=appTeamId),!client.config.currentTeam&&defaultTeamId&&(client.config.currentTeam=defaultTeamId),client.isTeamUnchosen()&&await client.chooseTeam({ask:opts.chooseTeam!==!1});let teamId=client.config.currentTeam||defaultTeamId,team=teamId&&opts.getTeam!==!1?await getTeam(client,teamId).catch(err=>{let appTeam=token?.team;if(opts.allowOwnerLookupFallback&&!user&&app&&appTeam?.id===teamId&&isOwnerLookupUnavailableError(err))return output_manager_default.debug(`Can't read team ${teamId}; using its token's team`),{id:appTeam.id,slug:appTeam.slug||appTeam.id,name:appTeam.name};throw err}):null,contextName=team?.slug||user?.username||user?.email;if(!contextName)throw new Error("Unable to determine context name");return opts.resolveLocalScope?resolveLocalScopeContext(client,{user,app,team}):{contextName,team,user,app}}async function getContextName(client,opts={}){let teamId=client.config.currentTeam,cachedSlug=teamId&&!client.authConfig.tokenSource?getCachedTeamSlug(client.config,teamId):void 0;if(cachedSlug&&!(opts.resolveLocalScope&&await hasLocalScope(client)))return output_manager_default.debug(`Using saved name "${cachedSlug}" for team ${teamId}`),cachedSlug;let scope;try{scope=opts.resolveLocalScope?await getScope(client,{resolveLocalScope:!0}):await getScope(client)}catch(err){let currentTeam=client.config.currentTeam;if(opts.allowOwnerLookupFallback&&currentTeam&&isOwnerLookupUnavailableError(err))return output_manager_default.debug(`Can't read team ${currentTeam}; using its token's name`),getOrgSlug(client,{id:currentTeam});throw err}let{contextName,team}=scope;return team&&!client.authConfig.tokenSource&&setCachedTeamSlug(client,team.id,team.slug),contextName}async function hasLocalScope(client){if(detectExplicitScope(client))return!1;let{localOrgId,isCrossTeamRepo}=await findLocalLink(client);return!!localOrgId||isCrossTeamRepo}async function getPrincipal(client){try{return{user:await getUser(client),app:null,token:null}}catch(err){if(!(err instanceof InvalidToken))throw err;let token=await introspectToken(client).catch(()=>null),app=token?resolveAppFromToken(token):null;if(!app)throw err;return{user:null,app,token}}}async function resolveLocalScopeContext(client,{user,app,team}){let explicitScopeProvided=detectExplicitScope(client)||client.ignoresSavedTeam&&!!(0,import_build_utils.getPlatformEnv)("ORG_ID"),globalTeamId=client.config.currentTeam,{localOrgId,linkedRepo,isCrossTeamRepo}=await findLocalLink(client),isAppPrincipal=!user&&!!app,effectiveLocalOrgId=isAppPrincipal?void 0:localOrgId,scopeMismatch=!!(effectiveLocalOrgId&&globalTeamId&&globalTeamId!==effectiveLocalOrgId);!isAppPrincipal&&!explicitScopeProvided&&!effectiveLocalOrgId&&isCrossTeamRepo&&output_manager_default.warn("This repository has projects across multiple teams. Use `--scope` to specify which team, or `cd` into a project directory.");let resolvedTeam=!explicitScopeProvided&&effectiveLocalOrgId?await applyLocalOrg(client,effectiveLocalOrgId):team,{org,contextName}=resolveOrg(resolvedTeam,user);return{org,contextName,user,team:resolvedTeam,app,globalTeam:team,linkedRepo,isCrossTeamRepo,localOrgId:effectiveLocalOrgId,scopeMismatch,explicitScopeProvided}}async function applyLocalOrg(client,localOrgId){return client.config.currentTeam=localOrgId.startsWith("team_")?localOrgId:void 0,client.config.currentTeam?await getTeamByIdOrSlug(client,client.config.currentTeam):null}async function getTeam(client,teamId){let team=await getTeamByIdOrSlug(client,teamId);if(!team)throw new TeamDeleted;return team}function resolveOrg(team,user){if(team)return{org:{type:"team",id:team.id,slug:team.slug},contextName:team.slug};if(user)return{org:{type:"user",id:user.id,slug:user.username},contextName:user.username||user.email};throw new Error("Unable to determine scope: no team or personal account is available for this token. Use `--scope` to specify a team.")}async function getLocalOrgId(client){return(await findLocalLink(client)).localOrgId}async function findLocalLink(client){let[projectLink,repoLink]=await Promise.all([findProjectLink(client),findRepoLink(client)]);return{localOrgId:findLocalOrgId(client.cwd,projectLink,repoLink),linkedRepo:repoLink?.repoConfig?{repoConfig:repoLink.repoConfig,rootPath:repoLink.rootPath}:null,isCrossTeamRepo:detectCrossTeamRepo(repoLink?.repoConfig)}}async function findProjectLink(client){try{return await getLinkFromDir(getVercelDirectory(client.cwd))}catch{return null}}async function findRepoLink(client){try{return await getRepoLink(client,client.cwd)}catch{return null}}function findLocalOrgId(cwd,projectLink,repoLink){if(projectLink)return projectLink.orgId;if(repoLink?.repoConfig)return findRepoOrgId(repoLink.repoConfig,relative(repoLink.rootPath,cwd))}function findRepoOrgId(repoConfig,pathFromRepoRoot){let matchedProjects=findProjectsFromPath(repoConfig.projects,pathFromRepoRoot),projects=matchedProjects.length===0&&pathFromRepoRoot===""?repoConfig.projects:matchedProjects,orgIds=new Set(projects.map(p=>p.orgId??repoConfig.orgId??""));if(orgIds.size!==1)return;let[orgId]=orgIds;return orgId||void 0}function scopeFlagPassed(argv){for(let index=0;index<argv.length;index++){let arg=argv[index];if(arg==="--")break;if(arg==="--scope"||arg==="--team"||arg.startsWith("--scope=")||arg.startsWith("--team=")||arg==="-S"||arg==="-T"||isGroupedScopeFlag(argv,index))return!0}return!1}function isGroupedScopeFlag(argv,index){let value=argv[index+1];return/^-[A-Za-z]+[ST]$/.test(argv[index])&&argv[index].length>2&&value!==void 0&&value!==""&&!value.startsWith("-")}function detectExplicitScope(client){return scopeFlagPassed(client.argv)||!!client.localConfig?.scope}function hasExplicitScopeValue(client){if(client.localConfig?.scope)return!0;if(!scopeFlagPassed(client.argv))return!1;let{flags}=parseArguments(client.argv.slice(2),{},{permissive:!0});return!!(flags["--scope"]||flags["--team"])}function detectCrossTeamRepo(repoConfig){if(!repoConfig?.projects||repoConfig.projects.length<2)return!1;let orgIds=new Set;for(let project of repoConfig.projects){let orgId=project.orgId??repoConfig.orgId;orgId&&orgIds.add(orgId)}return orgIds.size>1}export{getCachedTeamSlug,forgetCachedTeamSlug,getScope,getContextName,resolveOrg,getLocalOrgId,scopeFlagPassed,isGroupedScopeFlag,detectExplicitScope,hasExplicitScopeValue};
7
+ import{assertOrgIdMatchesAppTeam,findProjectsFromPath,getConfigFilePath,getLinkFromDir,getOrgSlug,getRepoLink,getUser,getVercelDirectory,introspectToken,isOwnerLookupUnavailableError,resolveAppFromToken}from"./chunk-G7RQVFID.js";import{require_ms}from"./chunk-2ILZM77F.js";import{parseArguments}from"./chunk-RDTWDVFO.js";import{getTeamByIdOrSlug}from"./chunk-NVU7XTNI.js";import{require_cli_config}from"./chunk-DCFCPAFQ.js";import{InvalidToken,TeamDeleted}from"./chunk-MTPHHAPR.js";import{output_manager_default}from"./chunk-RIXTYUYN.js";import{require_build_utils}from"./chunk-BVFFSUG3.js";import{__toESM}from"./chunk-NBPLUP7C.js";var import_cli_config=__toESM(require_cli_config(),1),import_ms=__toESM(require_ms(),1);var TEAM_SLUG_TTL_MS=(0,import_ms.default)("1d");function getCachedTeamSlug(config,teamId,now=Date.now()){let saved=config.cachedTeamSlugs?.[teamId];if(!isSavedTeamSlug(saved))return;let age=now-saved.savedAt;return age>=0&&age<TEAM_SLUG_TTL_MS?saved.slug:void 0}function setCachedTeamSlug(client,teamId,slug){if(getCachedTeamSlug(client.config,teamId)===slug)return;let saved={slug,savedAt:Date.now()};updateCachedTeamSlugs(client,slugs=>({...slugs,[teamId]:saved}))}function forgetCachedTeamSlug(client,teamId){let slugs=client.config.cachedTeamSlugs;!slugs||!(teamId in slugs)||updateCachedTeamSlugs(client,saved=>{let rest={...saved};return delete rest[teamId],rest})}function isSavedTeamSlug(value){return typeof value=="object"&&value!==null&&typeof value.slug=="string"&&typeof value.savedAt=="number"}function updateCachedTeamSlugs(client,update){try{let configPath=getConfigFilePath(),savedConfig=(0,import_cli_config.readGlobalConfigFile)(configPath),cachedTeamSlugs=update(savedConfig.cachedTeamSlugs??{}),config={...savedConfig,cachedTeamSlugs};(0,import_cli_config.writeGlobalConfigFile)(configPath,config),client.config.cachedTeamSlugs=cachedTeamSlugs}catch{output_manager_default.debug("Failed to persist cached team slugs.")}}var import_build_utils=__toESM(require_build_utils(),1);import{relative}from"path";async function getScope(client,opts={}){let{user,app,token}=await getPrincipal(client),defaultTeamId=user?.version==="northstar"&&!client.ignoresSavedTeam?user.defaultTeamId:void 0,appTeamId=!user&&app?token?.team?.id:void 0;if(!user&&app&&opts.getTeam===!1)throw new Error("App principal scope resolution requires a team lookup.");!user&&app&&(client.ignoresSavedTeam&&appTeamId&&assertOrgIdMatchesAppTeam(client,appTeamId),client.config.currentTeam=appTeamId),!client.config.currentTeam&&defaultTeamId&&(client.config.currentTeam=defaultTeamId),client.isTeamUnchosen()&&await client.chooseTeam({ask:opts.chooseTeam!==!1});let teamId=client.config.currentTeam||defaultTeamId,team=teamId&&opts.getTeam!==!1?await getTeam(client,teamId).catch(err=>{let appTeam=token?.team;if(opts.allowOwnerLookupFallback&&!user&&app&&appTeam?.id===teamId&&isOwnerLookupUnavailableError(err))return output_manager_default.debug(`Can't read team ${teamId}; using its token's team`),{id:appTeam.id,slug:appTeam.slug||appTeam.id,name:appTeam.name};throw err}):null,contextName=team?.slug||user?.username||user?.email;if(!contextName)throw new Error("Unable to determine context name");return opts.resolveLocalScope?resolveLocalScopeContext(client,{user,app,team}):{contextName,team,user,app}}async function getContextName(client,opts={}){let teamId=client.config.currentTeam,cachedSlug=teamId&&!client.authConfig.tokenSource?getCachedTeamSlug(client.config,teamId):void 0;if(cachedSlug&&!(opts.resolveLocalScope&&await hasLocalScope(client)))return output_manager_default.debug(`Using saved name "${cachedSlug}" for team ${teamId}`),cachedSlug;let scope;try{scope=opts.resolveLocalScope?await getScope(client,{resolveLocalScope:!0}):await getScope(client)}catch(err){let currentTeam=client.config.currentTeam;if(opts.allowOwnerLookupFallback&&currentTeam&&isOwnerLookupUnavailableError(err))return output_manager_default.debug(`Can't read team ${currentTeam}; using its token's name`),getOrgSlug(client,{id:currentTeam});throw err}let{contextName,team}=scope;return team&&!client.authConfig.tokenSource&&setCachedTeamSlug(client,team.id,team.slug),contextName}async function hasLocalScope(client){if(detectExplicitScope(client))return!1;let{localOrgId,isCrossTeamRepo}=await findLocalLink(client);return!!localOrgId||isCrossTeamRepo}async function getPrincipal(client){try{return{user:await getUser(client),app:null,token:null}}catch(err){if(!(err instanceof InvalidToken))throw err;let token=await introspectToken(client).catch(()=>null),app=token?resolveAppFromToken(token):null;if(!app)throw err;return{user:null,app,token}}}async function resolveLocalScopeContext(client,{user,app,team}){let explicitScopeProvided=detectExplicitScope(client)||client.ignoresSavedTeam&&!!(0,import_build_utils.getPlatformEnv)("ORG_ID"),globalTeamId=client.config.currentTeam,{localOrgId,linkedRepo,isCrossTeamRepo}=await findLocalLink(client),isAppPrincipal=!user&&!!app,effectiveLocalOrgId=isAppPrincipal?void 0:localOrgId,scopeMismatch=!!(effectiveLocalOrgId&&globalTeamId&&globalTeamId!==effectiveLocalOrgId);!isAppPrincipal&&!explicitScopeProvided&&!effectiveLocalOrgId&&isCrossTeamRepo&&output_manager_default.warn("This repository has projects across multiple teams. Use `--scope` to specify which team, or `cd` into a project directory.");let resolvedTeam=!explicitScopeProvided&&effectiveLocalOrgId?await applyLocalOrg(client,effectiveLocalOrgId):team,{org,contextName}=resolveOrg(resolvedTeam,user);return{org,contextName,user,team:resolvedTeam,app,globalTeam:team,linkedRepo,isCrossTeamRepo,localOrgId:effectiveLocalOrgId,scopeMismatch,explicitScopeProvided}}async function applyLocalOrg(client,localOrgId){return client.config.currentTeam=localOrgId.startsWith("team_")?localOrgId:void 0,client.config.currentTeam?await getTeamByIdOrSlug(client,client.config.currentTeam):null}async function getTeam(client,teamId){let team=await getTeamByIdOrSlug(client,teamId);if(!team)throw new TeamDeleted;return team}function resolveOrg(team,user){if(team)return{org:{type:"team",id:team.id,slug:team.slug},contextName:team.slug};if(user)return{org:{type:"user",id:user.id,slug:user.username},contextName:user.username||user.email};throw new Error("Unable to determine scope: no team or personal account is available for this token. Use `--scope` to specify a team.")}async function getLocalOrgId(client){return(await findLocalLink(client)).localOrgId}async function findLocalLink(client){let[projectLink,repoLink]=await Promise.all([findProjectLink(client),findRepoLink(client)]);return{localOrgId:findLocalOrgId(client.cwd,projectLink,repoLink),linkedRepo:repoLink?.repoConfig?{repoConfig:repoLink.repoConfig,rootPath:repoLink.rootPath}:null,isCrossTeamRepo:detectCrossTeamRepo(repoLink?.repoConfig)}}async function findProjectLink(client){try{return await getLinkFromDir(getVercelDirectory(client.cwd))}catch{return null}}async function findRepoLink(client){try{return await getRepoLink(client,client.cwd)}catch{return null}}function findLocalOrgId(cwd,projectLink,repoLink){if(projectLink)return projectLink.orgId;if(repoLink?.repoConfig)return findRepoOrgId(repoLink.repoConfig,relative(repoLink.rootPath,cwd))}function findRepoOrgId(repoConfig,pathFromRepoRoot){let matchedProjects=findProjectsFromPath(repoConfig.projects,pathFromRepoRoot),projects=matchedProjects.length===0&&pathFromRepoRoot===""?repoConfig.projects:matchedProjects,orgIds=new Set(projects.map(p=>p.orgId??repoConfig.orgId??""));if(orgIds.size!==1)return;let[orgId]=orgIds;return orgId||void 0}function scopeFlagPassed(argv){for(let index=0;index<argv.length;index++){let arg=argv[index];if(arg==="--")break;if(arg==="--scope"||arg==="--team"||arg.startsWith("--scope=")||arg.startsWith("--team=")||arg==="-S"||arg==="-T"||isGroupedScopeFlag(argv,index))return!0}return!1}function isGroupedScopeFlag(argv,index){let value=argv[index+1];return/^-[A-Za-z]+[ST]$/.test(argv[index])&&argv[index].length>2&&value!==void 0&&value!==""&&!value.startsWith("-")}function detectExplicitScope(client){return scopeFlagPassed(client.argv)||!!client.localConfig?.scope}function hasExplicitScopeValue(client){if(client.localConfig?.scope)return!0;if(!scopeFlagPassed(client.argv))return!1;let{flags}=parseArguments(client.argv.slice(2),{},{permissive:!0});return!!(flags["--scope"]||flags["--team"])}function detectCrossTeamRepo(repoConfig){if(!repoConfig?.projects||repoConfig.projects.length<2)return!1;let orgIds=new Set;for(let project of repoConfig.projects){let orgId=project.orgId??repoConfig.orgId;orgId&&orgIds.add(orgId)}return orgIds.size>1}export{getCachedTeamSlug,forgetCachedTeamSlug,getScope,getContextName,resolveOrg,getLocalOrgId,scopeFlagPassed,isGroupedScopeFlag,detectExplicitScope,hasExplicitScopeValue};
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1),listItem=(msg,n)=>(n||(n="-"),Number(n)&&(n+="."),`${(0,import_chalk.default)(n.toString())} ${msg}`),list_item_default=listItem;export{list_item_default};
7
+ import{require_source}from"./chunk-UJ7YUIEJ.js";import{__toESM}from"./chunk-NBPLUP7C.js";var import_chalk=__toESM(require_source(),1),listItem=(msg,n)=>(n||(n="-"),Number(n)&&(n+="."),`${(0,import_chalk.default)(n.toString())} ${msg}`),list_item_default=listItem;export{list_item_default};
@@ -4,7 +4,7 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{getScope}from"./chunk-4SWS7RKX.js";import{getOrgById}from"./chunk-ZHGKJCQ2.js";import{suggestCorrection}from"./chunk-INIZJZ3O.js";import{AGENT_REASON,AGENT_STATUS,buildCommandWithGlobalFlags,getPreservedGlobalFlags,outputAgentError,shouldEmitNonInteractiveCommandError}from"./chunk-3ARTWVQV.js";import{packageName}from"./chunk-B4KA3ZH2.js";import{output_manager_default}from"./chunk-RYSO5U3E.js";import{quoteArg}from"./chunk-DORCX7UB.js";async function findSimilarProjectName(client,name,orgId){try{let{projects}=await client.fetch("/v9/projects?limit=100",{accountId:orgId});return suggestCorrection(name,projects.map(project=>project.name).filter(projectName=>/^[a-z0-9._-]+$/i.test(projectName)))}catch(err){output_manager_default.debug(`Project suggestion lookup failed: ${err}`);return}}async function printProjectNotFoundError(client,projectNameOrId,commandName,orgId,{createCommand}={}){let contextName;try{orgId?contextName=(await getOrgById(client,orgId))?.slug??orgId:contextName=(await getScope(client)).contextName}catch(err){contextName=orgId,output_manager_default.debug(`Scope lookup failed during error reporting: ${err}`)}let scopeClause=contextName?` (${contextName})`:"",headline=`Project "${projectNameOrId}" was not found in the current scope${scopeClause}.`,suggestion=createCommand?await findSimilarProjectName(client,projectNameOrId,orgId):void 0,suggestionLine=suggestion?` Did you mean ${suggestion}?`:"",createNote=createCommand?.note;if(output_manager_default.error(`${headline}${suggestionLine}
7
+ import{getScope}from"./chunk-HG7NRFC5.js";import{getOrgById}from"./chunk-G7RQVFID.js";import{suggestCorrection}from"./chunk-RDTWDVFO.js";import{AGENT_REASON,AGENT_STATUS,buildCommandWithGlobalFlags,getPreservedGlobalFlags,outputAgentError,shouldEmitNonInteractiveCommandError}from"./chunk-NVU7XTNI.js";import{packageName}from"./chunk-EFGZK6OY.js";import{output_manager_default}from"./chunk-RIXTYUYN.js";import{quoteArg}from"./chunk-DORCX7UB.js";async function findSimilarProjectName(client,name,orgId){try{let{projects}=await client.fetch("/v9/projects?limit=100",{accountId:orgId});return suggestCorrection(name,projects.map(project=>project.name).filter(projectName=>/^[a-z0-9._-]+$/i.test(projectName)))}catch(err){output_manager_default.debug(`Project suggestion lookup failed: ${err}`);return}}async function printProjectNotFoundError(client,projectNameOrId,commandName,orgId,{createCommand}={}){let contextName;try{orgId?contextName=(await getOrgById(client,orgId))?.slug??orgId:contextName=(await getScope(client)).contextName}catch(err){contextName=orgId,output_manager_default.debug(`Scope lookup failed during error reporting: ${err}`)}let scopeClause=contextName?` (${contextName})`:"",headline=`Project "${projectNameOrId}" was not found in the current scope${scopeClause}.`,suggestion=createCommand?await findSimilarProjectName(client,projectNameOrId,orgId):void 0,suggestionLine=suggestion?` Did you mean ${suggestion}?`:"",createNote=createCommand?.note;if(output_manager_default.error(`${headline}${suggestionLine}
8
8
 
9
9
  `+(createCommand?`To create it${createNote?`, ${createNote}`:""}:
10
10
  ${createCommand.command}
@@ -0,0 +1,7 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __dirname_ } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __dirname_(__filename);
7
+ var e=(e2=0)=>t2=>`\x1B[${t2+e2}m`,t=(e2=0)=>t2=>`\x1B[${38+e2};5;${t2}m`,n=(e2=0)=>(t2,n2,r2)=>`\x1B[${38+e2};2;${t2};${n2};${r2}m`,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(r.modifier);var i=Object.keys(r.color),a=Object.keys(r.bgColor);[...i,...a];function o(){let i2=new Map;for(let[e2,t2]of Object.entries(r)){for(let[e3,n2]of Object.entries(t2))r[e3]={open:`\x1B[${n2[0]}m`,close:`\x1B[${n2[1]}m`},t2[e3]=r[e3],i2.set(n2[0],n2[1]);Object.defineProperty(r,e2,{value:t2,enumerable:!1})}return Object.defineProperty(r,"codes",{value:i2,enumerable:!1}),r.color.close="\x1B[39m",r.bgColor.close="\x1B[49m",r.color.ansi=e(),r.color.ansi256=t(),r.color.ansi16m=n(),r.bgColor.ansi=e(10),r.bgColor.ansi256=t(10),r.bgColor.ansi16m=n(10),Object.defineProperties(r,{rgbToAnsi256:{value:(e2,t2,n2)=>e2===t2&&t2===n2?e2<8?16:e2>248?231:Math.round((e2-8)/247*24)+232:16+36*Math.round(e2/255*5)+6*Math.round(t2/255*5)+Math.round(n2/255*5),enumerable:!1},hexToRgb:{value:e2=>{let t2=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e2.toString(16));if(!t2)return[0,0,0];let[n2]=t2;n2.length===3&&(n2=[...n2].map(e3=>e3+e3).join(""));let r2=Number.parseInt(n2,16);return[r2>>16&255,r2>>8&255,r2&255]},enumerable:!1},hexToAnsi256:{value:e2=>r.rgbToAnsi256(...r.hexToRgb(e2)),enumerable:!1},ansi256ToAnsi:{value:e2=>{if(e2<8)return 30+e2;if(e2<16)return 90+(e2-8);let t2,n2,r2;if(e2>=232)t2=((e2-232)*10+8)/255,n2=t2,r2=t2;else{e2-=16;let i4=e2%36;t2=Math.floor(e2/36)/5,n2=Math.floor(i4/6)/5,r2=i4%6/5}let i3=Math.max(t2,n2,r2)*2;if(i3===0)return 30;let a2=30+(Math.round(r2)<<2|Math.round(n2)<<1|Math.round(t2));return i3===2&&(a2+=60),a2},enumerable:!1},rgbToAnsi:{value:(e2,t2,n2)=>r.ansi256ToAnsi(r.rgbToAnsi256(e2,t2,n2)),enumerable:!1},hexToAnsi:{value:e2=>r.ansi256ToAnsi(r.hexToAnsi256(e2)),enumerable:!1}}),r}var s=o();export{s};
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{getContextName}from"./chunk-4SWS7RKX.js";import{DeploymentNotFound,DeploymentPermissionDenied,InvalidDeploymentId,isAPIError}from"./chunk-QFE3RPMA.js";async function getAliases(client,deploymentId,next,limit=20){let aliasUrl=`/v3/now/aliases?limit=${limit}`;next&&(aliasUrl+=`&until=${next}`);let to=deploymentId?`/now/deployments/${deploymentId}/aliases`:aliasUrl;try{return await client.fetch(to)}catch(err){if(isAPIError(err)){let contextName=await getContextName(client,{allowOwnerLookupFallback:!0});if(err.status===404)throw new DeploymentNotFound({id:deploymentId,context:contextName});if(err.status===403&&deploymentId)throw new DeploymentPermissionDenied(deploymentId,contextName);if(err.status===400&&err.message.includes("`id`")&&deploymentId)throw new InvalidDeploymentId(deploymentId)}throw err}}export{getAliases};
7
+ import{getContextName}from"./chunk-HG7NRFC5.js";import{DeploymentNotFound,DeploymentPermissionDenied,InvalidDeploymentId,isAPIError}from"./chunk-MTPHHAPR.js";async function getAliases(client,deploymentId,next,limit=20){let aliasUrl=`/v3/now/aliases?limit=${limit}`;next&&(aliasUrl+=`&until=${next}`);let to=deploymentId?`/now/deployments/${deploymentId}/aliases`:aliasUrl;try{return await client.fetch(to)}catch(err){if(isAPIError(err)){let contextName=await getContextName(client,{allowOwnerLookupFallback:!0});if(err.status===404)throw new DeploymentNotFound({id:deploymentId,context:contextName});if(err.status===403&&deploymentId)throw new DeploymentPermissionDenied(deploymentId,contextName);if(err.status===400&&err.message.includes("`id`")&&deploymentId)throw new InvalidDeploymentId(deploymentId)}throw err}}export{getAliases};
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{warnDeprecatedInput}from"./chunk-KA2KG3SY.js";function applyDeprecatedGitBranchFlag(client,flags,oldName,typedName=oldName){let value=flags[oldName];if(value!==void 0){if(flags["--git-branch"]!==void 0)return`Can't use ${typedName} with --git-branch. Use --git-branch.`;warnDeprecatedInput(client,typedName,"--git-branch"),flags["--git-branch"]=value,delete flags[oldName]}}export{applyDeprecatedGitBranchFlag};
7
+ import{warnDeprecatedInput}from"./chunk-IR3E37HD.js";function applyDeprecatedGitBranchFlag(client,flags,oldName,typedName=oldName){let value=flags[oldName];if(value!==void 0){if(flags["--git-branch"]!==void 0)return`Can't use ${typedName} with --git-branch. Use --git-branch.`;warnDeprecatedInput(client,typedName,"--git-branch"),flags["--git-branch"]=value,delete flags[oldName]}}export{applyDeprecatedGitBranchFlag};
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{toGranularityMsFromDuration}from"./chunk-Q6YPC3GK.js";var VALUE_ALIAS="value",COUNT_ALIAS="__seriesCount";function alignTimeRangeToStep(startTime,endTime,stepMs){return{startTime:new Date(Math.floor(startTime.getTime()/stepMs)*stepMs),endTime:new Date(Math.ceil(endTime.getTime()/stepMs)*stepMs)}}function alignTimeRangeToGranularity(startTime,endTime,granularity){return alignTimeRangeToStep(startTime,endTime,toGranularityMsFromDuration(granularity))}function createCanonicalMetricsRequest(options){let metrics={[VALUE_ALIAS]:options.selection},rankMetric=VALUE_ALIAS;return options.groupBy.length>0&&options.orderBy==="count"&&options.selection.aggregation!=="count"&&(metrics[COUNT_ALIAS]={metric:options.metric,aggregation:"count"},rankMetric=COUNT_ALIAS),{scope:{ownerId:options.scope.ownerId,...options.scope.type==="project"?{projectIds:options.scope.projectIds}:{}},timeRange:{start:options.startTime.toISOString(),end:options.endTime.toISOString()},bucketSeconds:toGranularityMsFromDuration(options.granularity)/1e3,...options.groupBy.length>0?{groupBy:options.groupBy}:{},...options.filter?{filter:options.filter}:{},metrics,outputs:[VALUE_ALIAS],...options.groupBy.length>0?{seriesSelection:{limit:options.limit,mode:"exact",rankBy:[{metric:rankMetric,direction:options.orderDirection??"desc"}]}}:{}}}function canonicalResponseToMetricsResponse(response,rollupColumn,orderBy,orderDirection){let toRow=point=>({...point.dimensions,[rollupColumn]:point.values[VALUE_ALIAS]??null});return{...response.series?{data:response.series.map(point=>({timestamp:point.timestamp,...toRow(point)}))}:{},summary:response.summary.map(toRow),statistics:{rowsRead:response.meta.statistics.rowsRead,bytesRead:response.meta.statistics.bytesRead,dbTimeSeconds:response.meta.statistics.databaseElapsedMs/1e3,engineTimeSeconds:response.meta.statistics.elapsedMs/1e3,queryTable:[...new Set(response.meta.sources.map(source=>source.id))].sort().join(",")},...orderBy?{orderBy}:{},...orderDirection?{orderDirection}:{}}}var FILTER_DEPRECATION_WARNING="OData support in --query is deprecated and will be removed soon. KQL will be the only supported filter syntax.";function usesODataSyntax(filters){return filters?.some(filter=>{let unquoted=filter.replace(/"(?:\\.|[^"\\])*"|'(?:''|[^'])*'/g,"");return/\s(?:eq|ne|gt|ge|lt|le|in)\s/i.test(unquoted)||/\b(?:contains|startswith|endswith)\s*\(/i.test(unquoted)})??!1}export{alignTimeRangeToStep,alignTimeRangeToGranularity,createCanonicalMetricsRequest,canonicalResponseToMetricsResponse,FILTER_DEPRECATION_WARNING,usesODataSyntax};
7
+ import{toGranularityMsFromDuration}from"./chunk-57H5KQGN.js";var VALUE_ALIAS="value",COUNT_ALIAS="__seriesCount";function alignTimeRangeToStep(startTime,endTime,stepMs){return{startTime:new Date(Math.floor(startTime.getTime()/stepMs)*stepMs),endTime:new Date(Math.ceil(endTime.getTime()/stepMs)*stepMs)}}function alignTimeRangeToGranularity(startTime,endTime,granularity){return alignTimeRangeToStep(startTime,endTime,toGranularityMsFromDuration(granularity))}function createCanonicalMetricsRequest(options){let metrics={[VALUE_ALIAS]:options.selection},rankMetric=VALUE_ALIAS;return options.groupBy.length>0&&options.orderBy==="count"&&options.selection.aggregation!=="count"&&(metrics[COUNT_ALIAS]={metric:options.metric,aggregation:"count"},rankMetric=COUNT_ALIAS),{scope:{ownerId:options.scope.ownerId,...options.scope.type==="project"?{projectIds:options.scope.projectIds}:{}},timeRange:{start:options.startTime.toISOString(),end:options.endTime.toISOString()},bucketSeconds:toGranularityMsFromDuration(options.granularity)/1e3,...options.groupBy.length>0?{groupBy:options.groupBy}:{},...options.filter?{filter:options.filter}:{},metrics,outputs:[VALUE_ALIAS],...options.groupBy.length>0?{seriesSelection:{limit:options.limit,mode:"exact",rankBy:[{metric:rankMetric,direction:options.orderDirection??"desc"}]}}:{}}}function canonicalResponseToMetricsResponse(response,rollupColumn,orderBy,orderDirection){let toRow=point=>({...point.dimensions,[rollupColumn]:point.values[VALUE_ALIAS]??null});return{...response.series?{data:response.series.map(point=>({timestamp:point.timestamp,...toRow(point)}))}:{},summary:response.summary.map(toRow),statistics:{rowsRead:response.meta.statistics.rowsRead,bytesRead:response.meta.statistics.bytesRead,dbTimeSeconds:response.meta.statistics.databaseElapsedMs/1e3,engineTimeSeconds:response.meta.statistics.elapsedMs/1e3,queryTable:[...new Set(response.meta.sources.map(source=>source.id))].sort().join(",")},...orderBy?{orderBy}:{},...orderDirection?{orderDirection}:{}}}var FILTER_DEPRECATION_WARNING="OData support in --query is deprecated and will be removed soon. KQL will be the only supported filter syntax.";function usesODataSyntax(filters){return filters?.some(filter=>{let unquoted=filter.replace(/"(?:\\.|[^"\\])*"|'(?:''|[^'])*'/g,"");return/\s(?:eq|ne|gt|ge|lt|le|in)\s/i.test(unquoted)||/\b(?:contains|startswith|endswith)\s*\(/i.test(unquoted)})??!1}export{alignTimeRangeToStep,alignTimeRangeToGranularity,createCanonicalMetricsRequest,canonicalResponseToMetricsResponse,FILTER_DEPRECATION_WARNING,usesODataSyntax};
@@ -4,7 +4,7 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{init_dist,parse as parse2,stringify}from"./chunk-U4Z2MMOF.js";import{applyEdits,init_main,modify,parse,printParseErrorCode}from"./chunk-J24BABG4.js";import{require_execa}from"./chunk-M32HBBPK.js";import{external_exports}from"./chunk-2AMO2VMV.js";import{printAlignedLabel}from"./chunk-M2Q2DUHO.js";import{require_lib}from"./chunk-LUX4PBJL.js";import{output_manager_default}from"./chunk-RYSO5U3E.js";import{__toESM}from"./chunk-BZENIQ7N.js";import{join as join2}from"node:path";init_dist();init_main();import{readFile,writeFile,mkdir,copyFile,access,chmod,lstat,stat,link,unlink}from"node:fs/promises";import{isDeepStrictEqual}from"node:util";import{dirname}from"node:path";async function pathExists(path){try{return await access(path),!0}catch{return!1}}async function isFile(path){try{return(await stat(path)).isFile()}catch{return!1}}async function isSymlink(path){try{return(await lstat(path)).isSymbolicLink()}catch{return!1}}async function readFileOrNull(path){try{return await readFile(path,"utf8")}catch(err){if(err.code==="ENOENT")return null;throw err}}function isPlainObject(value){return typeof value=="object"&&value!==null&&!Array.isArray(value)&&Object.getPrototypeOf(value)===Object.prototype}function deepMerge(base,patch){let out={...base};for(let[key,patchValue]of Object.entries(patch)){let baseValue=out[key];isPlainObject(baseValue)&&isPlainObject(patchValue)?out[key]=deepMerge(baseValue,patchValue):out[key]=patchValue}return out}function detectJsonFormatting(text){let eol=text.includes(`\r
7
+ import{init_dist,parse as parse2,stringify}from"./chunk-XKVKG7CW.js";import{applyEdits,init_main,modify,parse,printParseErrorCode}from"./chunk-6G2AZBW5.js";import{require_execa}from"./chunk-3WXQHKSS.js";import{external_exports}from"./chunk-64GNDWWX.js";import{printAlignedLabel}from"./chunk-SUD5V67L.js";import{require_lib}from"./chunk-K5GE24PG.js";import{output_manager_default}from"./chunk-RIXTYUYN.js";import{__toESM}from"./chunk-NBPLUP7C.js";import{join as join2}from"node:path";init_dist();init_main();import{readFile,writeFile,mkdir,copyFile,access,chmod,lstat,stat,link,unlink}from"node:fs/promises";import{isDeepStrictEqual}from"node:util";import{dirname}from"node:path";async function pathExists(path){try{return await access(path),!0}catch{return!1}}async function isFile(path){try{return(await stat(path)).isFile()}catch{return!1}}async function isSymlink(path){try{return(await lstat(path)).isSymbolicLink()}catch{return!1}}async function readFileOrNull(path){try{return await readFile(path,"utf8")}catch(err){if(err.code==="ENOENT")return null;throw err}}function isPlainObject(value){return typeof value=="object"&&value!==null&&!Array.isArray(value)&&Object.getPrototypeOf(value)===Object.prototype}function deepMerge(base,patch){let out={...base};for(let[key,patchValue]of Object.entries(patch)){let baseValue=out[key];isPlainObject(baseValue)&&isPlainObject(patchValue)?out[key]=deepMerge(baseValue,patchValue):out[key]=patchValue}return out}function detectJsonFormatting(text){let eol=text.includes(`\r
8
8
  `)?`\r
9
9
  `:`
10
10
  `,indent=text.match(/^([ \t]+)\S/m)?.[1];return indent?.startsWith(" ")?{eol,insertSpaces:!1,tabSize:1}:{eol,insertSpaces:!0,tabSize:indent?.length||2}}function parseJsonObjectOrNull(current,parse4=JSON.parse){if(!current||!current.trim())return null;let raw;try{raw=parse4(current)}catch(err){throw new Error(`existing file is not valid JSON (${err.message})`)}if(!isPlainObject(raw))throw new Error("existing file is not a JSON object");return raw}function mergeJson(current,patch,parse4=JSON.parse){let raw=parseJsonObjectOrNull(current,parse4);if(!current||raw===null)return`${JSON.stringify(deepMerge({},patch),null,2)}
@@ -4,7 +4,7 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{require_dist}from"./chunk-MCYG7CCE.js";import{__commonJS,__require}from"./chunk-BZENIQ7N.js";var require_common=__commonJS({"../../node_modules/.pnpm/js-yaml@3.13.1/node_modules/js-yaml/lib/js-yaml/common.js"(exports,module){"use strict";function isNothing(subject){return typeof subject>"u"||subject===null}function isObject(subject){return typeof subject=="object"&&subject!==null}function toArray(sequence){return Array.isArray(sequence)?sequence:isNothing(sequence)?[]:[sequence]}function extend(target,source){var index,length,key,sourceKeys;if(source)for(sourceKeys=Object.keys(source),index=0,length=sourceKeys.length;index<length;index+=1)key=sourceKeys[index],target[key]=source[key];return target}function repeat(string,count){var result="",cycle;for(cycle=0;cycle<count;cycle+=1)result+=string;return result}function isNegativeZero(number){return number===0&&Number.NEGATIVE_INFINITY===1/number}module.exports.isNothing=isNothing;module.exports.isObject=isObject;module.exports.toArray=toArray;module.exports.repeat=repeat;module.exports.isNegativeZero=isNegativeZero;module.exports.extend=extend}});var require_exception=__commonJS({"../../node_modules/.pnpm/js-yaml@3.13.1/node_modules/js-yaml/lib/js-yaml/exception.js"(exports,module){"use strict";function YAMLException(reason,mark){Error.call(this),this.name="YAMLException",this.reason=reason,this.mark=mark,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function(compact){var result=this.name+": ";return result+=this.reason||"(unknown reason)",!compact&&this.mark&&(result+=" "+this.mark.toString()),result};module.exports=YAMLException}});var require_mark=__commonJS({"../../node_modules/.pnpm/js-yaml@3.13.1/node_modules/js-yaml/lib/js-yaml/mark.js"(exports,module){"use strict";var common=require_common();function Mark(name,buffer,position,line,column){this.name=name,this.buffer=buffer,this.position=position,this.line=line,this.column=column}Mark.prototype.getSnippet=function(indent,maxLength){var head,start,tail,end,snippet;if(!this.buffer)return null;for(indent=indent||4,maxLength=maxLength||75,head="",start=this.position;start>0&&`\0\r
7
+ import{require_dist}from"./chunk-4SIQE2W4.js";import{__commonJS,__require}from"./chunk-NBPLUP7C.js";var require_common=__commonJS({"../../node_modules/.pnpm/js-yaml@3.13.1/node_modules/js-yaml/lib/js-yaml/common.js"(exports,module){"use strict";function isNothing(subject){return typeof subject>"u"||subject===null}function isObject(subject){return typeof subject=="object"&&subject!==null}function toArray(sequence){return Array.isArray(sequence)?sequence:isNothing(sequence)?[]:[sequence]}function extend(target,source){var index,length,key,sourceKeys;if(source)for(sourceKeys=Object.keys(source),index=0,length=sourceKeys.length;index<length;index+=1)key=sourceKeys[index],target[key]=source[key];return target}function repeat(string,count){var result="",cycle;for(cycle=0;cycle<count;cycle+=1)result+=string;return result}function isNegativeZero(number){return number===0&&Number.NEGATIVE_INFINITY===1/number}module.exports.isNothing=isNothing;module.exports.isObject=isObject;module.exports.toArray=toArray;module.exports.repeat=repeat;module.exports.isNegativeZero=isNegativeZero;module.exports.extend=extend}});var require_exception=__commonJS({"../../node_modules/.pnpm/js-yaml@3.13.1/node_modules/js-yaml/lib/js-yaml/exception.js"(exports,module){"use strict";function YAMLException(reason,mark){Error.call(this),this.name="YAMLException",this.reason=reason,this.mark=mark,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function(compact){var result=this.name+": ";return result+=this.reason||"(unknown reason)",!compact&&this.mark&&(result+=" "+this.mark.toString()),result};module.exports=YAMLException}});var require_mark=__commonJS({"../../node_modules/.pnpm/js-yaml@3.13.1/node_modules/js-yaml/lib/js-yaml/mark.js"(exports,module){"use strict";var common=require_common();function Mark(name,buffer,position,line,column){this.name=name,this.buffer=buffer,this.position=position,this.line=line,this.column=column}Mark.prototype.getSnippet=function(indent,maxLength){var head,start,tail,end,snippet;if(!this.buffer)return null;for(indent=indent||4,maxLength=maxLength||75,head="",start=this.position;start>0&&`\0\r
8
8
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(start-1))===-1;)if(start-=1,this.position-start>maxLength/2-1){head=" ... ",start+=5;break}for(tail="",end=this.position;end<this.buffer.length&&`\0\r
9
9
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(end))===-1;)if(end+=1,end-this.position>maxLength/2-1){tail=" ... ",end-=5;break}return snippet=this.buffer.slice(start,end),common.repeat(" ",indent)+head+snippet+tail+`
10
10
  `+common.repeat(" ",indent+this.position-start+head.length)+"^"};Mark.prototype.toString=function(compact){var snippet,where="";return this.name&&(where+='in "'+this.name+'" '),where+="at line "+(this.line+1)+", column "+(this.column+1),compact||(snippet=this.getSnippet(),snippet&&(where+=`:
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{permissionsAggregateCommand}from"./chunk-JDDPCL3K.js";import{tagsAggregateCommand}from"./chunk-23FY4PR3.js";import{imageAggregateCommand}from"./chunk-6FEMU5YF.js";import{packageName}from"./chunk-B4KA3ZH2.js";import{formatOption,jsonOption,limitOption,projectOption,yesOption}from"./chunk-DORCX7UB.js";var projectScopeOption={...projectOption,shorthand:"p",description:"Project name or ID (default: linked project)."},nextOption={name:"next",shorthand:null,type:String,deprecated:!1,description:"Show the next page using the cursor from the previous output",argument:"CURSOR"},cursorOption={name:"cursor",shorthand:"c",type:String,deprecated:!0,description:"Cursor from a previous page to continue listing from",argument:"STRING"},platformOption={name:"platform",shorthand:null,type:String,deprecated:!1,description:"Target platform for the build (default: linux/amd64).",argument:"PLATFORM"},pushOption={name:"push",shorthand:null,type:Boolean,deprecated:!1,description:"Push the image after building. With Docker this builds and pushes in one step (Buildx enables zstd compression); Podman and Buildah build, then push with zstd compression."},publicOption={name:"public",shorthand:null,type:Boolean,deprecated:!1,description:"Make the repository public.",legacyValues:{on:"true",off:"false"}},noPublicOption={name:"no-public",shorthand:null,type:Boolean,deprecated:!1,description:"Make the repository private."},listSubcommand={name:"ls",aliases:["list"],description:"List container registry repositories for a project",arguments:[],options:[projectScopeOption,limitOption,nextOption,cursorOption,formatOption,jsonOption],examples:[{name:"List repositories in the linked project",value:`${packageName} vcr ls`},{name:"List repositories for a specific project as JSON",value:`${packageName} vcr ls --project my-app --json`}]},inspectSubcommand={name:"inspect",aliases:["get"],description:"Show details for a single repository",arguments:[{name:"repository",required:!0}],options:[projectScopeOption,formatOption,jsonOption],examples:[{name:"Inspect a repository by name",value:`${packageName} vcr inspect my-repository`}]},addSubcommand={name:"create",aliases:["add"],description:"Create a container registry repository",arguments:[{name:"name",required:!0}],options:[projectScopeOption,formatOption,jsonOption],examples:[{name:"Create a repository",value:`${packageName} vcr create my-repository`}]},configSubcommand={name:"update",aliases:["config"],description:"Update a container registry repository, such as the repository's visibility",arguments:[{name:"repository",required:!0}],options:[publicOption,noPublicOption,projectScopeOption,formatOption,jsonOption],examples:[{name:"Make a repository public",value:`${packageName} vcr update my-repository --public`},{name:"Make a repository private",value:`${packageName} vcr update my-repository --no-public`}]},removeSubcommand={name:"delete",aliases:["rm","del","remove"],description:"Delete a container registry repository",arguments:[{name:"repository",required:!0}],options:[projectScopeOption,yesOption,formatOption,jsonOption],examples:[{name:"Delete a repository",value:`${packageName} vcr delete my-repository`},{name:"Delete a repository without the confirmation prompt",value:`${packageName} vcr delete my-repository --yes`}]},loginSubcommand={name:"login",aliases:[],description:"Authenticate a container tool (docker, podman, or buildah) with the Vercel Container Registry",arguments:[{name:"engine",required:!0}],options:[projectScopeOption,formatOption,jsonOption],examples:[{name:"Log in with Docker",value:`${packageName} vcr login docker`},{name:"Log in with Podman",value:`${packageName} vcr login podman`},{name:"Log in with Buildah",value:`${packageName} vcr login buildah`},{name:"Log in for a specific project",value:`${packageName} vcr login docker --project my-app`}]},buildSubcommand={name:"build",aliases:[],description:"Build a container image tagged for the Vercel Container Registry by shelling out to your container tool (docker, podman, or buildah)",arguments:[{name:"engine",required:!0},{name:"path",required:!1},{name:"name",required:!1}],options:[projectScopeOption,platformOption,pushOption],examples:[{name:"Build the current directory into the linked project (repository defaults to the project name, tag to latest)",value:`${packageName} vcr build docker`},{name:"Build and push in one step (Docker Buildx enables zstd compression)",value:`${packageName} vcr build docker --push`},{name:"Build a specific context path with a repository and tag",value:`${packageName} vcr build docker ./app my-api:1.2.3`},{name:"Pass extra options through to the container tool",value:`${packageName} vcr build docker . -- --no-cache --build-arg KEY=value`}]},pushSubcommand={name:"push",aliases:[],description:"Push a container image to the Vercel Container Registry by shelling out to your container tool (docker, podman, or buildah)",arguments:[{name:"engine",required:!0},{name:"name",required:!1}],options:[projectScopeOption],examples:[{name:"Push the linked project image (repository defaults to the project name, tag to latest)",value:`${packageName} vcr push docker`},{name:"Push a specific repository and tag",value:`${packageName} vcr push docker my-api:1.2.3`}]},vcrCommand={name:"vcr",aliases:[],description:"Manage Vercel Container Registry repositories and images (see `vcr image`).",arguments:[],subcommands:[listSubcommand,inspectSubcommand,addSubcommand,configSubcommand,removeSubcommand,loginSubcommand,buildSubcommand,pushSubcommand,tagsAggregateCommand,imageAggregateCommand,permissionsAggregateCommand],options:[],examples:[{name:"List repositories in the linked project",value:`${packageName} vcr ls`},{name:"Create a repository",value:`${packageName} vcr create my-app`},{name:"List images in a repository",value:`${packageName} vcr image ls my-app`}]};export{listSubcommand,inspectSubcommand,addSubcommand,configSubcommand,removeSubcommand,loginSubcommand,buildSubcommand,pushSubcommand,vcrCommand};
7
+ import{permissionsAggregateCommand}from"./chunk-245QYIHU.js";import{tagsAggregateCommand}from"./chunk-GTBPHJRJ.js";import{imageAggregateCommand}from"./chunk-V45KKYNK.js";import{packageName}from"./chunk-EFGZK6OY.js";import{formatOption,jsonOption,limitOption,projectOption,yesOption}from"./chunk-DORCX7UB.js";var projectScopeOption={...projectOption,shorthand:"p",description:"Project name or ID (default: linked project)."},nextOption={name:"next",shorthand:null,type:String,deprecated:!1,description:"Show the next page using the cursor from the previous output",argument:"CURSOR"},cursorOption={name:"cursor",shorthand:"c",type:String,deprecated:!0,description:"Cursor from a previous page to continue listing from",argument:"STRING"},platformOption={name:"platform",shorthand:null,type:String,deprecated:!1,description:"Target platform for the build (default: linux/amd64).",argument:"PLATFORM"},pushOption={name:"push",shorthand:null,type:Boolean,deprecated:!1,description:"Push the image after building. With Docker this builds and pushes in one step (Buildx enables zstd compression); Podman and Buildah build, then push with zstd compression."},publicOption={name:"public",shorthand:null,type:Boolean,deprecated:!1,description:"Make the repository public.",legacyValues:{on:"true",off:"false"}},noPublicOption={name:"no-public",shorthand:null,type:Boolean,deprecated:!1,description:"Make the repository private."},listSubcommand={name:"ls",aliases:["list"],description:"List container registry repositories for a project",arguments:[],options:[projectScopeOption,limitOption,nextOption,cursorOption,formatOption,jsonOption],examples:[{name:"List repositories in the linked project",value:`${packageName} vcr ls`},{name:"List repositories for a specific project as JSON",value:`${packageName} vcr ls --project my-app --json`}]},inspectSubcommand={name:"inspect",aliases:["get"],description:"Show details for a single repository",arguments:[{name:"repository",required:!0}],options:[projectScopeOption,formatOption,jsonOption],examples:[{name:"Inspect a repository by name",value:`${packageName} vcr inspect my-repository`}]},addSubcommand={name:"create",aliases:["add"],description:"Create a container registry repository",arguments:[{name:"name",required:!0}],options:[projectScopeOption,formatOption,jsonOption],examples:[{name:"Create a repository",value:`${packageName} vcr create my-repository`}]},configSubcommand={name:"update",aliases:["config"],description:"Update a container registry repository, such as the repository's visibility",arguments:[{name:"repository",required:!0}],options:[publicOption,noPublicOption,projectScopeOption,formatOption,jsonOption],examples:[{name:"Make a repository public",value:`${packageName} vcr update my-repository --public`},{name:"Make a repository private",value:`${packageName} vcr update my-repository --no-public`}]},removeSubcommand={name:"delete",aliases:["rm","del","remove"],description:"Delete a container registry repository",arguments:[{name:"repository",required:!0}],options:[projectScopeOption,yesOption,formatOption,jsonOption],examples:[{name:"Delete a repository",value:`${packageName} vcr delete my-repository`},{name:"Delete a repository without the confirmation prompt",value:`${packageName} vcr delete my-repository --yes`}]},loginSubcommand={name:"login",aliases:[],description:"Authenticate a container tool (docker, podman, or buildah) with the Vercel Container Registry",arguments:[{name:"engine",required:!0}],options:[projectScopeOption,formatOption,jsonOption],examples:[{name:"Log in with Docker",value:`${packageName} vcr login docker`},{name:"Log in with Podman",value:`${packageName} vcr login podman`},{name:"Log in with Buildah",value:`${packageName} vcr login buildah`},{name:"Log in for a specific project",value:`${packageName} vcr login docker --project my-app`}]},buildSubcommand={name:"build",aliases:[],description:"Build a container image tagged for the Vercel Container Registry by shelling out to your container tool (docker, podman, or buildah)",arguments:[{name:"engine",required:!0},{name:"path",required:!1},{name:"name",required:!1}],options:[projectScopeOption,platformOption,pushOption],examples:[{name:"Build the current directory into the linked project (repository defaults to the project name, tag to latest)",value:`${packageName} vcr build docker`},{name:"Build and push in one step (Docker Buildx enables zstd compression)",value:`${packageName} vcr build docker --push`},{name:"Build a specific context path with a repository and tag",value:`${packageName} vcr build docker ./app my-api:1.2.3`},{name:"Pass extra options through to the container tool",value:`${packageName} vcr build docker . -- --no-cache --build-arg KEY=value`}]},pushSubcommand={name:"push",aliases:[],description:"Push a container image to the Vercel Container Registry by shelling out to your container tool (docker, podman, or buildah)",arguments:[{name:"engine",required:!0},{name:"name",required:!1}],options:[projectScopeOption],examples:[{name:"Push the linked project image (repository defaults to the project name, tag to latest)",value:`${packageName} vcr push docker`},{name:"Push a specific repository and tag",value:`${packageName} vcr push docker my-api:1.2.3`}]},vcrCommand={name:"vcr",aliases:[],description:"Manage Vercel Container Registry repositories and images (see `vcr image`).",arguments:[],subcommands:[listSubcommand,inspectSubcommand,addSubcommand,configSubcommand,removeSubcommand,loginSubcommand,buildSubcommand,pushSubcommand,tagsAggregateCommand,imageAggregateCommand,permissionsAggregateCommand],options:[],examples:[{name:"List repositories in the linked project",value:`${packageName} vcr ls`},{name:"Create a repository",value:`${packageName} vcr create my-app`},{name:"List images in a repository",value:`${packageName} vcr image ls my-app`}]};export{listSubcommand,inspectSubcommand,addSubcommand,configSubcommand,removeSubcommand,loginSubcommand,buildSubcommand,pushSubcommand,vcrCommand};