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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (494) hide show
  1. package/dist/chunks/add-57EE2LQO.js +8 -0
  2. package/dist/chunks/{add-4ZXS4RRN.js → add-DNRNPUU7.js} +1 -1
  3. package/dist/chunks/{add-G2LGF4HL.js → add-FLVE2M3L.js} +1 -1
  4. package/dist/chunks/{alerts-3352VWDL.js → alerts-26PDHRBL.js} +1 -1
  5. package/dist/chunks/{api-endpoints-2IYXPLEG.js → api-endpoints-EY2DO75S.js} +1 -1
  6. package/dist/chunks/auth-4A5CXZOA.js +7 -0
  7. package/dist/chunks/auth-ZJV6OHMS.js +7 -0
  8. package/dist/chunks/{build-3UFKTTS5.js → build-6WTRWW2M.js} +1 -1
  9. package/dist/chunks/{chunk-D6REP5QQ.js → chunk-2GXP676X.js} +1 -1
  10. package/dist/chunks/{chunk-MXTC4ZAQ.js → chunk-2ILZM77F.js} +1 -1
  11. package/dist/chunks/{chunk-OFDTADPQ.js → chunk-2K7U64CN.js} +1 -1
  12. package/dist/chunks/{chunk-Y4YBQUQM.js → chunk-2STLJAXZ.js} +1 -1
  13. package/dist/chunks/{chunk-PAHYNO73.js → chunk-2TUJJIYU.js} +1 -1
  14. package/dist/chunks/chunk-2XQO6C7Q.js +7 -0
  15. package/dist/chunks/{chunk-DH4A4QMD.js → chunk-33ETNP4M.js} +1 -1
  16. package/dist/chunks/{chunk-L46V6VL3.js → chunk-37SWAKIV.js} +1 -1
  17. package/dist/chunks/{chunk-23FY4PR3.js → chunk-3F3WNT5K.js} +1 -1
  18. package/dist/chunks/{chunk-ZXSZH7N5.js → chunk-3GKXXGSO.js} +1 -1
  19. package/dist/chunks/{chunk-QSL6AG2B.js → chunk-3HP6FOOL.js} +1 -1
  20. package/dist/chunks/{chunk-M32HBBPK.js → chunk-3WXQHKSS.js} +1 -1
  21. package/dist/chunks/{chunk-JELLVPCM.js → chunk-3XMKTJ5T.js} +1 -1
  22. package/dist/chunks/{chunk-YLXXGQQQ.js → chunk-42D3CPWB.js} +1 -1
  23. package/dist/chunks/{chunk-5A3DDLQR.js → chunk-42RUDD27.js} +1 -1
  24. package/dist/chunks/{chunk-HRR57QNP.js → chunk-46R47IE5.js} +1 -1
  25. package/dist/chunks/{chunk-OOPF73RV.js → chunk-4FPYV37P.js} +1 -1
  26. package/dist/chunks/{chunk-CAJ2OUSR.js → chunk-4L7AKIX7.js} +1 -1
  27. package/dist/chunks/{chunk-SGNDE4YS.js → chunk-4MAA4BQD.js} +1 -1
  28. package/dist/chunks/{chunk-FTNLCQC6.js → chunk-4OOHXEKI.js} +1 -1
  29. package/dist/chunks/{chunk-NMIB4JYP.js → chunk-4R7ICESH.js} +1 -1
  30. package/dist/chunks/{chunk-MCYG7CCE.js → chunk-4SIQE2W4.js} +1 -1
  31. package/dist/chunks/chunk-4WEKKDOL.js +8 -0
  32. package/dist/chunks/{chunk-TU54LHNW.js → chunk-54W7S4EV.js} +1 -1
  33. package/dist/chunks/{chunk-NWGBDBZI.js → chunk-5F4RJ32E.js} +1 -1
  34. package/dist/chunks/{chunk-KRPY5FHJ.js → chunk-5QC4IKRZ.js} +1 -1
  35. package/dist/chunks/{chunk-2AMO2VMV.js → chunk-64GNDWWX.js} +1 -1
  36. package/dist/chunks/{chunk-J24BABG4.js → chunk-6G2AZBW5.js} +1 -1
  37. package/dist/chunks/{chunk-DY643UZ7.js → chunk-6JBKQ5LR.js} +2 -3
  38. package/dist/chunks/{chunk-AVCLYJNC.js → chunk-6KI5LJIB.js} +1 -1
  39. package/dist/chunks/{chunk-X755TPX6.js → chunk-6O2LDFGJ.js} +1 -1
  40. package/dist/chunks/chunk-6OOJFAF5.js +20 -0
  41. package/dist/chunks/{chunk-E7IN2DGU.js → chunk-6XXXPJBV.js} +1 -1
  42. package/dist/chunks/chunk-732HWE3P.js +181 -0
  43. package/dist/chunks/chunk-75TGTOZQ.js +8 -0
  44. package/dist/chunks/{chunk-4FBOQLPZ.js → chunk-76AOTUM2.js} +1 -1
  45. package/dist/chunks/{chunk-KXMFGDO4.js → chunk-76XUBFXI.js} +1 -1
  46. package/dist/chunks/{chunk-VBANKZWM.js → chunk-7CLATJZX.js} +1 -1
  47. package/dist/chunks/{chunk-UPDIZCP3.js → chunk-7EI554V5.js} +1 -1
  48. package/dist/chunks/{chunk-IVZNPSHU.js → chunk-7IHVCKUV.js} +1 -1
  49. package/dist/chunks/{chunk-PSOVLGHP.js → chunk-7O3D3XED.js} +1 -1
  50. package/dist/chunks/{chunk-YTSUDTAK.js → chunk-7OOCSVWT.js} +1 -1
  51. package/dist/chunks/{chunk-FXLZM6Q7.js → chunk-7PK2JFEH.js} +1 -1
  52. package/dist/chunks/chunk-7Q5I3L37.js +68 -0
  53. package/dist/chunks/{chunk-24SIHFEW.js → chunk-7QHUMMBA.js} +1 -1
  54. package/dist/chunks/{chunk-5727HGA6.js → chunk-7TREJIPV.js} +1 -1
  55. package/dist/chunks/{chunk-4HR3I3ML.js → chunk-7TRHPXCG.js} +1 -1
  56. package/dist/chunks/{chunk-BLUPZPAS.js → chunk-7Y572CPZ.js} +1 -1
  57. package/dist/chunks/chunk-7ZCM4LWL.js +15 -0
  58. package/dist/chunks/{chunk-H3ZSF2P3.js → chunk-A7XRIU6Z.js} +1 -1
  59. package/dist/chunks/chunk-AASXSNBW.js +17 -0
  60. package/dist/chunks/{chunk-6DBLXAJI.js → chunk-AGFG7WHE.js} +1 -1
  61. package/dist/chunks/{chunk-Z73UJVGD.js → chunk-AU54JBLF.js} +1 -1
  62. package/dist/chunks/{chunk-SQ62IODX.js → chunk-AUCQKYL2.js} +1 -1
  63. package/dist/chunks/{chunk-SCV7XEEO.js → chunk-AX6UCTOC.js} +1 -1
  64. package/dist/chunks/{chunk-QHGPFYWQ.js → chunk-B7LM2BNN.js} +1 -1
  65. package/dist/chunks/{chunk-E3AML3VR.js → chunk-BB27VKHS.js} +1 -1
  66. package/dist/chunks/{chunk-YBAGKQXC.js → chunk-BCD4TRQF.js} +1 -1
  67. package/dist/chunks/{chunk-OQXHBPPS.js → chunk-BCRZI5IM.js} +1 -1
  68. package/dist/chunks/{chunk-KA2KG3SY.js → chunk-BDLZ6WL2.js} +1 -1
  69. package/dist/chunks/chunk-BFS4K2RF.js +7 -0
  70. package/dist/chunks/chunk-BKJ4H6KK.js +8 -0
  71. package/dist/chunks/{chunk-COD3WAUI.js → chunk-BNWEJZAC.js} +1 -1
  72. package/dist/chunks/{chunk-5MDNVAE6.js → chunk-BVFFSUG3.js} +1 -1
  73. package/dist/chunks/{chunk-LDDXXDN5.js → chunk-C2R5IEN6.js} +1 -1
  74. package/dist/chunks/{chunk-F7L5SXJM.js → chunk-CDO5IECP.js} +1 -1
  75. package/dist/chunks/{chunk-YN3HZJXW.js → chunk-CHTFRAXA.js} +1 -1
  76. package/dist/chunks/{chunk-XOETL6DB.js → chunk-CHY2NJU4.js} +1 -1
  77. package/dist/chunks/{chunk-MYVALJ4D.js → chunk-CNGI6Z2G.js} +1 -1
  78. package/dist/chunks/{chunk-4SWS7RKX.js → chunk-CRPZYLIL.js} +1 -1
  79. package/dist/chunks/{chunk-PVASGBEF.js → chunk-CSU46B7Q.js} +1 -1
  80. package/dist/chunks/{chunk-DORCX7UB.js → chunk-CUO3CYU3.js} +1 -1
  81. package/dist/chunks/{chunk-4SAVH3H7.js → chunk-DCFCPAFQ.js} +1 -1
  82. package/dist/chunks/{chunk-2DH6LTUI.js → chunk-DRDY2UZX.js} +1 -1
  83. package/dist/chunks/{chunk-D2JNI6UB.js → chunk-DWA7B7TB.js} +1 -1
  84. package/dist/chunks/chunk-DXFFWNK4.js +8 -0
  85. package/dist/chunks/chunk-E6VQXHBD.js +11 -0
  86. package/dist/chunks/chunk-E7ICSU45.js +7 -0
  87. package/dist/chunks/{chunk-F4KY2TOK.js → chunk-EAQLOKZX.js} +1 -1
  88. package/dist/chunks/{chunk-ZGM4K3B5.js → chunk-ECQW2R5M.js} +1 -1
  89. package/dist/chunks/{chunk-VJNTVPUV.js → chunk-EDXNAXEZ.js} +1 -1
  90. package/dist/chunks/{chunk-B4KA3ZH2.js → chunk-EFGZK6OY.js} +1 -1
  91. package/dist/chunks/{chunk-MWFHS4HV.js → chunk-EGXRQ73P.js} +1 -1
  92. package/dist/chunks/chunk-EK7U42I4.js +9 -0
  93. package/dist/chunks/{chunk-ID663OJ7.js → chunk-EL65DTVZ.js} +1 -1
  94. package/dist/chunks/{chunk-KNNIA3PS.js → chunk-EPCRR72R.js} +1 -1
  95. package/dist/chunks/{chunk-3G3FQYMW.js → chunk-ERMHTPO4.js} +1 -1
  96. package/dist/chunks/chunk-EV2VKG2V.js +8 -0
  97. package/dist/chunks/{chunk-E5A7E7X6.js → chunk-EZ3HXFLB.js} +1 -1
  98. package/dist/chunks/{chunk-NMY2YZ6M.js → chunk-F5FBLRH3.js} +1 -1
  99. package/dist/chunks/{chunk-VWKA6RKB.js → chunk-FHNHVEOX.js} +1 -1
  100. package/dist/chunks/{chunk-D3M2JG5C.js → chunk-FIICEEXO.js} +1 -1
  101. package/dist/chunks/{chunk-ZBOTJT5S.js → chunk-FMLRVSWK.js} +1 -1
  102. package/dist/chunks/chunk-FO7OSSLI.js +13 -0
  103. package/dist/chunks/{chunk-XC25DYA7.js → chunk-FSM7YM4W.js} +2 -2
  104. package/dist/chunks/chunk-FSMZPHAA.js +33 -0
  105. package/dist/chunks/chunk-FUH5PBGR.js +7 -0
  106. package/dist/chunks/{chunk-QPNTR3PA.js → chunk-FVMRKUWL.js} +1 -1
  107. package/dist/chunks/chunk-GB77JTTX.js +8 -0
  108. package/dist/chunks/{chunk-BIABM3FB.js → chunk-GILTW5RJ.js} +1 -1
  109. package/dist/chunks/{chunk-AW5KOUD7.js → chunk-GNQ7KLCN.js} +1 -1
  110. package/dist/chunks/{chunk-KLBSCTLL.js → chunk-GO64LSUW.js} +1 -1
  111. package/dist/chunks/{chunk-4NTBYNFR.js → chunk-GOXGA37R.js} +1 -1
  112. package/dist/chunks/{chunk-DGLE44KA.js → chunk-GPVXJI6X.js} +1 -1
  113. package/dist/chunks/{chunk-YTSGFU5T.js → chunk-GUFRGEM5.js} +1 -1
  114. package/dist/chunks/{chunk-WHEA5VLX.js → chunk-H43XHICL.js} +1 -1
  115. package/dist/chunks/{chunk-U43WXZBP.js → chunk-HAAKXJ4V.js} +1 -1
  116. package/dist/chunks/chunk-HAM7ZPEC.js +7 -0
  117. package/dist/chunks/{chunk-ZHGKJCQ2.js → chunk-HDKEES7E.js} +5 -5
  118. package/dist/chunks/{chunk-BTI5TG6Q.js → chunk-HGXM4UBQ.js} +1 -1
  119. package/dist/chunks/chunk-HIEFNLLO.js +7 -0
  120. package/dist/chunks/{chunk-2KXLL3DX.js → chunk-HSQPQ5RV.js} +1 -1
  121. package/dist/chunks/{chunk-DDZEKNQR.js → chunk-HT3CQEAF.js} +1 -1
  122. package/dist/chunks/{chunk-7JU5RJ3H.js → chunk-HT5EXCYX.js} +1 -1
  123. package/dist/chunks/{chunk-Z3YQZSU4.js → chunk-HXIOR7P6.js} +1 -1
  124. package/dist/chunks/{chunk-6NC2JFUQ.js → chunk-I254SHTL.js} +1 -1
  125. package/dist/chunks/{chunk-OPORM35X.js → chunk-IFMPBA4K.js} +1 -1
  126. package/dist/chunks/{chunk-EHAS6SQB.js → chunk-IKOVY76G.js} +1 -1
  127. package/dist/chunks/{chunk-BUBVZ6SQ.js → chunk-ILNTOWHG.js} +1 -1
  128. package/dist/chunks/chunk-ILUU3SGP.js +13 -0
  129. package/dist/chunks/{chunk-MCRKBVZA.js → chunk-IMLHRJ4K.js} +1 -1
  130. package/dist/chunks/{chunk-DTCQWGHE.js → chunk-IMZD7QEB.js} +2 -2
  131. package/dist/chunks/chunk-IVJEYHF5.js +8 -0
  132. package/dist/chunks/{chunk-Q6YPC3GK.js → chunk-IZOKMWU5.js} +1 -1
  133. package/dist/chunks/{chunk-BPUANOGW.js → chunk-IZV6K7RR.js} +1 -1
  134. package/dist/chunks/chunk-J5MGMWRV.js +9 -0
  135. package/dist/chunks/{chunk-BOJDM3O7.js → chunk-JCDPMWKO.js} +1 -1
  136. package/dist/chunks/{chunk-Y3V4JYK6.js → chunk-JGEJY7AC.js} +1 -1
  137. package/dist/chunks/chunk-JJTAADC5.js +7 -0
  138. package/dist/chunks/{chunk-OZKP3WKT.js → chunk-JK3NTR7T.js} +1 -1
  139. package/dist/chunks/{chunk-76NL3ZRJ.js → chunk-JM7KUCBM.js} +1 -1
  140. package/dist/chunks/chunk-JPJ6HGAN.js +7 -0
  141. package/dist/chunks/{chunk-O3YZLVC6.js → chunk-JRUL67UC.js} +3 -3
  142. package/dist/chunks/{chunk-J5SINMVO.js → chunk-K4J43D5J.js} +1 -1
  143. package/dist/chunks/{chunk-LUX4PBJL.js → chunk-K5GE24PG.js} +1 -1
  144. package/dist/chunks/{chunk-25565AGS.js → chunk-K7YK4PZP.js} +1 -1
  145. package/dist/chunks/{chunk-CTBSRTJW.js → chunk-KDCLHZYL.js} +1 -1
  146. package/dist/chunks/{chunk-GXWBL6YV.js → chunk-KDIICSD5.js} +1 -1
  147. package/dist/chunks/{chunk-FBYA6LLM.js → chunk-KHJWQ4WP.js} +1 -1
  148. package/dist/chunks/{chunk-2FUGD6J7.js → chunk-KNKGJD5J.js} +1 -1
  149. package/dist/chunks/{chunk-BRQUZ5NC.js → chunk-L4CSJDG7.js} +1 -1
  150. package/dist/chunks/{chunk-ISWW3DKF.js → chunk-L6MWUMWZ.js} +1 -1
  151. package/dist/chunks/{chunk-A6CMQOL7.js → chunk-LBJ7EOZM.js} +1 -1
  152. package/dist/chunks/{chunk-22ZRVWYP.js → chunk-LHK6B4ER.js} +2 -2
  153. package/dist/chunks/{chunk-ZBZQEDZY.js → chunk-LKFQMY5V.js} +1 -1
  154. package/dist/chunks/{chunk-KKYNEEM7.js → chunk-LKXPJLOP.js} +1 -1
  155. package/dist/chunks/{chunk-Q7D7RGXM.js → chunk-LLHXL3SV.js} +1 -1
  156. package/dist/chunks/{chunk-BS32OUOC.js → chunk-LPYHYTYI.js} +1 -1
  157. package/dist/chunks/{chunk-6WBEU34Y.js → chunk-LVPY2RTU.js} +1 -1
  158. package/dist/chunks/{chunk-A2RZZQEP.js → chunk-LY3EY2VG.js} +1 -1
  159. package/dist/chunks/chunk-M2XLLWK7.js +7 -0
  160. package/dist/chunks/chunk-M3LYYAQ6.js +7 -0
  161. package/dist/chunks/{chunk-7WDSOKOY.js → chunk-MAAJGMXM.js} +1 -1
  162. package/dist/chunks/{chunk-DWZBL4NK.js → chunk-MAIZY5BV.js} +1 -1
  163. package/dist/chunks/{chunk-5U2YLD56.js → chunk-MEF5BUJ5.js} +1 -1
  164. package/dist/chunks/{chunk-YHPPP3SF.js → chunk-MF43WTDT.js} +1 -1
  165. package/dist/chunks/{chunk-YFOBGEOW.js → chunk-MJKDKZ2J.js} +1 -1
  166. package/dist/chunks/{chunk-6Z5REGCM.js → chunk-MMMX3KE2.js} +1 -1
  167. package/dist/chunks/{chunk-ISSNEDG5.js → chunk-MN2F4NPH.js} +1 -1
  168. package/dist/chunks/{chunk-QFE3RPMA.js → chunk-MTPHHAPR.js} +1 -1
  169. package/dist/chunks/{slugify-NMMUASYK.js → chunk-N3COHC7T.js} +1 -1
  170. package/dist/chunks/{chunk-5WYJSLCF.js → chunk-N4FZIVIS.js} +1 -1
  171. package/dist/chunks/{chunk-27FVSW45.js → chunk-N7IBUNFY.js} +1 -1
  172. package/dist/chunks/{chunk-BZENIQ7N.js → chunk-NBPLUP7C.js} +1 -1
  173. package/dist/chunks/chunk-NE5RTEMC.js +7 -0
  174. package/dist/chunks/{chunk-DXFP22OK.js → chunk-NFBFXM6X.js} +1 -1
  175. package/dist/chunks/chunk-NXUDP37D.js +7 -0
  176. package/dist/chunks/{chunk-FB37TFVF.js → chunk-O256QMQM.js} +1 -1
  177. package/dist/chunks/{chunk-D6O5O3CW.js → chunk-OICSITNU.js} +1 -1
  178. package/dist/chunks/{chunk-PFD7LETF.js → chunk-OM6NML7C.js} +1 -1
  179. package/dist/chunks/chunk-OTIERMC7.js +7 -0
  180. package/dist/chunks/chunk-OVVHONX7.js +8 -0
  181. package/dist/chunks/{chunk-T44RB754.js → chunk-OXQKWOLS.js} +1 -1
  182. package/dist/chunks/chunk-P7GA2C6N.js +7 -0
  183. package/dist/chunks/{chunk-XE4SLG5H.js → chunk-PG5BHJVH.js} +1 -1
  184. package/dist/chunks/{chunk-AW33SRYY.js → chunk-PH2MLBQO.js} +1 -1
  185. package/dist/chunks/{chunk-DNONVY2L.js → chunk-PIGJVJNM.js} +2 -2
  186. package/dist/chunks/chunk-PP7BNCIG.js +7 -0
  187. package/dist/chunks/{chunk-BKFRN6C2.js → chunk-PR4NNS3O.js} +1 -1
  188. package/dist/chunks/chunk-PSMKLDLV.js +18 -0
  189. package/dist/chunks/chunk-PW67ZNDU.js +8 -0
  190. package/dist/chunks/{chunk-O3GQG2ML.js → chunk-Q3R4HAAA.js} +2 -2
  191. package/dist/chunks/chunk-Q4W3R6U2.js +12 -0
  192. package/dist/chunks/{chunk-A4LOQ3UK.js → chunk-QAVUE3TR.js} +1 -1
  193. package/dist/chunks/{chunk-U5SZQUYO.js → chunk-QCYCLWNG.js} +1 -1
  194. package/dist/chunks/{chunk-MGKNSTU4.js → chunk-QMI7GTT2.js} +1 -1
  195. package/dist/chunks/{chunk-S3L2OHPO.js → chunk-QNMWYJQW.js} +1 -1
  196. package/dist/chunks/{chunk-MMMJO2M3.js → chunk-QOIG2FJP.js} +1 -1
  197. package/dist/chunks/{chunk-BYBELFCP.js → chunk-QPNYOR6O.js} +1 -1
  198. package/dist/chunks/{chunk-6KNWKZR4.js → chunk-QPPFQREO.js} +1 -1
  199. package/dist/chunks/{chunk-EYRBV6RM.js → chunk-QROPMCL2.js} +2 -2
  200. package/dist/chunks/{chunk-MTZYPCZ7.js → chunk-QRPBDCDH.js} +1 -1
  201. package/dist/chunks/{chunk-R43H4T4L.js → chunk-QYAXCGZA.js} +1 -1
  202. package/dist/chunks/{chunk-7OZ7OKPS.js → chunk-R3ZPLQDI.js} +1 -1
  203. package/dist/chunks/{chunk-6TEYSBCT.js → chunk-R5KBPWWS.js} +1 -1
  204. package/dist/chunks/{chunk-X6JQI64G.js → chunk-RACUGILV.js} +1 -1
  205. package/dist/chunks/{chunk-GD7AV7BO.js → chunk-RFD7CEL6.js} +1 -1
  206. package/dist/chunks/{chunk-RYSO5U3E.js → chunk-RIXTYUYN.js} +1 -1
  207. package/dist/chunks/{chunk-XHBZITV4.js → chunk-RJB5Y7M4.js} +1 -1
  208. package/dist/chunks/{chunk-7HQZRU25.js → chunk-RRX2AMWY.js} +1 -1
  209. package/dist/chunks/chunk-S4ARHJGW.js +9 -0
  210. package/dist/chunks/chunk-S7FMMAST.js +7 -0
  211. package/dist/chunks/chunk-SIWT2MBT.js +8 -0
  212. package/dist/chunks/{chunk-AZVSMIPP.js → chunk-STDRVWDW.js} +1 -1
  213. package/dist/chunks/{chunk-M2Q2DUHO.js → chunk-SUD5V67L.js} +1 -1
  214. package/dist/chunks/{chunk-7EJQLVWX.js → chunk-SUT2PTL3.js} +1 -1
  215. package/dist/chunks/{chunk-Q4R34AVE.js → chunk-SWABNAKZ.js} +1 -1
  216. package/dist/chunks/chunk-SX2JJDHM.js +17 -0
  217. package/dist/chunks/{chunk-JDDPCL3K.js → chunk-T2IZUTGY.js} +1 -1
  218. package/dist/chunks/{chunk-3RFQ2NXZ.js → chunk-T4257EDB.js} +1 -1
  219. package/dist/chunks/chunk-TASNZYJU.js +14 -0
  220. package/dist/chunks/chunk-TIU3WJH7.js +8 -0
  221. package/dist/chunks/{chunk-KIDGOY4F.js → chunk-TL4AEZXF.js} +1 -1
  222. package/dist/chunks/chunk-TTM4VQ4T.js +7 -0
  223. package/dist/chunks/chunk-TUPVVZ4I.js +7 -0
  224. package/dist/chunks/{chunk-MDXG7T7M.js → chunk-U3IPJYB6.js} +1 -1
  225. package/dist/chunks/{chunk-AMZ7AUYX.js → chunk-UFE4RBZV.js} +1 -1
  226. package/dist/chunks/chunk-UGJRAFRA.js +8 -0
  227. package/dist/chunks/{chunk-3AFEVHHY.js → chunk-UGVOMXYR.js} +1 -1
  228. package/dist/chunks/{chunk-NB2WLB3J.js → chunk-UJ7YUIEJ.js} +1 -1
  229. package/dist/chunks/chunk-UK3VTHT5.js +7 -0
  230. package/dist/chunks/{chunk-S6TAO4MD.js → chunk-V2J5U5KQ.js} +1 -1
  231. package/dist/chunks/{chunk-J3U2QD2L.js → chunk-V7VHLSYL.js} +1 -1
  232. package/dist/chunks/chunk-VB6SQWSB.js +9 -0
  233. package/dist/chunks/{chunk-DOOBZO4W.js → chunk-VJM3WCEC.js} +1 -1
  234. package/dist/chunks/{chunk-BYYNR34Q.js → chunk-VNS4Z72T.js} +1 -1
  235. package/dist/chunks/{chunk-CTMTO2W4.js → chunk-VQAIH2X5.js} +1 -1
  236. package/dist/chunks/{chunk-ATSAMHUZ.js → chunk-VTAH7VMY.js} +1 -1
  237. package/dist/chunks/chunk-W2YAOE3Z.js +7 -0
  238. package/dist/chunks/{chunk-3SF3ILIT.js → chunk-WA4CPW3H.js} +1 -1
  239. package/dist/chunks/chunk-WKEDN5SX.js +9 -0
  240. package/dist/chunks/{chunk-JALVF3C2.js → chunk-WMIZ6Y4E.js} +1 -1
  241. package/dist/chunks/{chunk-Z436ZYLV.js → chunk-WQBNOQUT.js} +1 -1
  242. package/dist/chunks/{chunk-YOKTRWQX.js → chunk-WRTBYD4I.js} +1 -1
  243. package/dist/chunks/{chunk-7RABG6HV.js → chunk-WS6UOPMS.js} +1 -1
  244. package/dist/chunks/{chunk-TLKBGAOL.js → chunk-WWEUGL6W.js} +1 -1
  245. package/dist/chunks/chunk-X2UJGCIC.js +9 -0
  246. package/dist/chunks/{chunk-JUAHDOL6.js → chunk-X5YKQ2RJ.js} +1 -1
  247. package/dist/chunks/{chunk-D5JQZXL7.js → chunk-XHWA436J.js} +1 -1
  248. package/dist/chunks/chunk-XHXWUAJE.js +32 -0
  249. package/dist/chunks/{chunk-U4Z2MMOF.js → chunk-XKVKG7CW.js} +1 -1
  250. package/dist/chunks/{chunk-HYAIA5YC.js → chunk-XL6PE4AA.js} +2 -2
  251. package/dist/chunks/{chunk-E3WP42P2.js → chunk-XPEWDJV6.js} +1 -1
  252. package/dist/chunks/{chunk-TGIIE2L3.js → chunk-XPWLEGWA.js} +1 -1
  253. package/dist/chunks/{chunk-7SLMNM55.js → chunk-XY2GGCHC.js} +1 -1
  254. package/dist/chunks/{chunk-G24EKATW.js → chunk-XZYVBYUY.js} +1 -1
  255. package/dist/chunks/chunk-Y2KAVMM4.js +10 -0
  256. package/dist/chunks/{chunk-46ISU3XI.js → chunk-Y3ETQZSK.js} +2 -2
  257. package/dist/chunks/{chunk-GRRVPFSB.js → chunk-Y45NZT7C.js} +1 -1
  258. package/dist/chunks/{chunk-5RMIM4S2.js → chunk-Y7SZI3JV.js} +1 -1
  259. package/dist/chunks/{chunk-ZRFDZO7Y.js → chunk-YATYCZQJ.js} +1 -1
  260. package/dist/chunks/chunk-YBWLW6SW.js +7 -0
  261. package/dist/chunks/{chunk-B7IUFV5P.js → chunk-YDCILYRC.js} +1 -1
  262. package/dist/chunks/{chunk-67GZ5REA.js → chunk-YHZXIBS7.js} +1 -1
  263. package/dist/chunks/{chunk-H24KFNPB.js → chunk-YIKXLWSR.js} +1 -1
  264. package/dist/chunks/{chunk-5CVEW3HD.js → chunk-YLQCB6XY.js} +1 -1
  265. package/dist/chunks/{chunk-WAOS5OCB.js → chunk-YU33PPKX.js} +1 -1
  266. package/dist/chunks/{chunk-V3YNYCRV.js → chunk-YVWIDLY4.js} +6 -6
  267. package/dist/chunks/{chunk-CEA5NDJC.js → chunk-Z2NPMUPM.js} +1 -1
  268. package/dist/chunks/{chunk-N3ZNAMGR.js → chunk-Z62G57GC.js} +1 -1
  269. package/dist/chunks/{chunk-D6NVKMRP.js → chunk-ZG7A4P5U.js} +1 -1
  270. package/dist/chunks/{chunk-NZ2TFADV.js → chunk-ZOJI7HYA.js} +1 -1
  271. package/dist/chunks/{chunk-TSIKSHYG.js → chunk-ZSJU5MJP.js} +1 -1
  272. package/dist/chunks/{chunk-47E5IB3C.js → chunk-ZWPASRC2.js} +1 -1
  273. package/dist/chunks/{clear-GL4SZ2XR.js → clear-4MDTHLLE.js} +1 -1
  274. package/dist/chunks/{cli-embedded-NR5F35LW.js → cli-embedded-OYBJM5SA.js} +2 -2
  275. package/dist/chunks/cli-truncate-CylqKOGj-WE5OLB6Q.js +7 -0
  276. package/dist/chunks/commands-Bx-lrmie-W7FCFL4P.js +10 -0
  277. package/dist/chunks/compile-vercel-config-A2DMFB2R.js +7 -0
  278. package/dist/chunks/{config-KSQQQMQQ.js → config-4R62ATWJ.js} +1 -1
  279. package/dist/chunks/{config-U4GLPYDY.js → config-A7DCP25J.js} +1 -1
  280. package/dist/chunks/config-HiWLfXRQ-D7JA4E3D.js +43 -0
  281. package/dist/chunks/connect-U3yG4EtI-XYHDJQT7.js +7 -0
  282. package/dist/chunks/connect-git-provider-MPYSAOTH.js +7 -0
  283. package/dist/chunks/cp-aFe-HVrK-UAGAR2BC.js +12 -0
  284. package/dist/chunks/create-ilHWvzSk-7KWZXBE2.js +7 -0
  285. package/dist/chunks/create-project-OA7KBPVU.js +7 -0
  286. package/dist/chunks/{delete-O2VWRQC3.js → delete-DN53BRH7.js} +1 -1
  287. package/dist/chunks/{delete-D2WLQHVB.js → delete-G4MAUBXZ.js} +1 -1
  288. package/dist/chunks/{describe-N36SISDN.js → describe-Q5D5GYVG.js} +1 -1
  289. package/dist/chunks/detect-projects-DHS2E3N4.js +7 -0
  290. package/dist/chunks/detect-services-VBKVN4A2.js +7 -0
  291. package/dist/chunks/{disable-EHRVY24G.js → disable-CG3R2VAL.js} +1 -1
  292. package/dist/chunks/{discard-QW5TMTXX.js → discard-REGFZXFU.js} +1 -1
  293. package/dist/chunks/dist-4F3LAB5Z.js +7 -0
  294. package/dist/chunks/{dist-RXYNZPEA.js → dist-S7GEJ656.js} +1 -1
  295. package/dist/chunks/{dist-33WTJLVQ.js → dist-T2AURD3P.js} +1 -1
  296. package/dist/chunks/domain-DGvr_U55-PNXSOVDO.js +8 -0
  297. package/dist/chunks/drives-Bi-Mnt2z-Z4T2YY4P.js +14 -0
  298. package/dist/chunks/{edit-IZR537PS.js → edit-7AUE6GXE.js} +1 -1
  299. package/dist/chunks/{edit-WM6KJPSI.js → edit-HHLQDVOP.js} +1 -1
  300. package/dist/chunks/{enable-5Z72O3NI.js → enable-BV3N6GEL.js} +1 -1
  301. package/dist/chunks/{engine-C8wCzkw--PYVABGU4.js → engine-C8wCzkw--72P7UD6T.js} +1 -1
  302. package/dist/chunks/{esm-IYH32MTQ.js → esm-B3P7PUFJ.js} +1 -1
  303. package/dist/chunks/{esm-5GQXHN7C.js → esm-CMSQLK7G.js} +1 -1
  304. package/dist/chunks/{esm-LEQXRLFV.js → esm-KWMRMP74.js} +1 -1
  305. package/dist/chunks/{esm-NHCCFW7Z.js → esm-LRBNA4QO.js} +1 -1
  306. package/dist/chunks/{esm-FJCIOBBV.js → esm-NVIK2MSG.js} +1 -1
  307. package/dist/chunks/{esm-T655CG6O.js → esm-RAS56M3I.js} +1 -1
  308. package/dist/chunks/{esm-QQ3MUOW4.js → esm-WU2ZS2IW.js} +1 -1
  309. package/dist/chunks/exec-Bwv4MDyN-7YUAVBB2.js +7 -0
  310. package/dist/chunks/{exec-PCSP64LR.js → exec-NYLXYXB5.js} +3 -3
  311. package/dist/chunks/{export-IWVMWM2H.js → export-WUPMMHSX.js} +1 -1
  312. package/dist/chunks/extend-D9tq9Cot-QT72AXGH.js +8 -0
  313. package/dist/chunks/{fetch-proxy-MOKBS56A.js → fetch-proxy-ZIHXTNFP.js} +1 -1
  314. package/dist/chunks/fork-DQ6qfKqB-XXTHHUMZ.js +9 -0
  315. package/dist/chunks/future-DJOUGRV4.js +7 -0
  316. package/dist/chunks/generate-cert-for-deploy-PZHDFX3W.js +7 -0
  317. package/dist/chunks/groups-B8JVEeKk-K57VTXSS.js +10 -0
  318. package/dist/chunks/image-DX2IAUKJ.js +7 -0
  319. package/dist/chunks/import-builders-IUEC2WN2.js +7 -0
  320. package/dist/chunks/{inspect-QT3QEFBW.js → inspect-BS5UPI6W.js} +1 -1
  321. package/dist/chunks/{inspect-6J5DGZZ4.js → inspect-GJXLYJC7.js} +1 -1
  322. package/dist/chunks/{inspect-6Y672OQ3.js → inspect-IHVP2M4H.js} +1 -1
  323. package/dist/chunks/{inspect-47FM3OWG.js → inspect-PBSKPN4W.js} +1 -1
  324. package/dist/chunks/{inspect-SW2I7D6E.js → inspect-Y7VXJEI2.js} +1 -1
  325. package/dist/chunks/{inspect-ALC2J4BF.js → inspect-YGVXE4HR.js} +1 -1
  326. package/dist/chunks/{list-TGDHJKDT.js → list-27R4USBV.js} +1 -1
  327. package/dist/chunks/{list-BIFH4KO5.js → list-2ZCNO6DY.js} +1 -1
  328. package/dist/chunks/{list-CXXDI5UV.js → list-TUST62E6.js} +1 -1
  329. package/dist/chunks/{list-2CMCXXP4.js → list-ZSQVIQXC.js} +1 -1
  330. package/dist/chunks/list-iqQFvOHx-PNAUIUQL.js +7 -0
  331. package/dist/chunks/log-update-DsqoChS1-DG7F5XJ4.js +11 -0
  332. package/dist/chunks/{login-IUQDG334.js → login-CUEQHDT5.js} +1 -1
  333. package/dist/chunks/login-DGxA9ez--ZRIJ24TS.js +13 -0
  334. package/dist/chunks/login-YCOZROC2.js +7 -0
  335. package/dist/chunks/logout-OEbPJLu2-7NPM6ALK.js +8 -0
  336. package/dist/chunks/logs-W4GZLDHE.js +7 -0
  337. package/dist/chunks/ls-27K5BB7Z.js +11 -0
  338. package/dist/chunks/{ls-C75Z5FBX.js → ls-EEJQIKNI.js} +1 -1
  339. package/dist/chunks/ls-PAL6FQB6.js +8 -0
  340. package/dist/chunks/{ls-GC5MX2HZ.js → ls-TDYTE4HM.js} +1 -1
  341. package/dist/chunks/{ls-7D73WVOF.js → ls-UMSUUQCG.js} +1 -1
  342. package/dist/chunks/{ls-ERDQLUT2.js → ls-W7C5I555.js} +1 -1
  343. package/dist/chunks/{ls-4DNFF35I.js → ls-XYEJ5MR6.js} +1 -1
  344. package/dist/chunks/migrate-experimental-services-556MHJWK.js +7 -0
  345. package/dist/chunks/mutate-IELSY6ED.js +9 -0
  346. package/dist/chunks/{native-self-update-Q3EN6NZK.js → native-self-update-T75AUBHJ.js} +1 -1
  347. package/dist/chunks/{notifications-2HU4L7WA.js → notifications-GZH7CFZY.js} +1 -1
  348. package/dist/chunks/{open-MA7QGJKO.js → open-EVYPUPNZ.js} +1 -1
  349. package/dist/chunks/{openapi-POBVCXS3.js → openapi-S6F32ZQD.js} +1 -1
  350. package/dist/chunks/{permissions-AU5M5A6G.js → permissions-EHF5MNZP.js} +1 -1
  351. package/dist/chunks/{plugin-offer-E53UQXXX.js → plugin-offer-RZADKNYF.js} +1 -1
  352. package/dist/chunks/prompt-missing-credentials-OSAV5B7N.js +7 -0
  353. package/dist/chunks/{publish-G7NQESCE.js → publish-ZB2Q2YSB.js} +1 -1
  354. package/dist/chunks/pull-WUFIVXEG.js +7 -0
  355. package/dist/chunks/purchase-domain-if-available-YVVGT7MZ.js +7 -0
  356. package/dist/chunks/{push-BG7UEIKY.js → push-YWKZ6SOO.js} +1 -1
  357. package/dist/chunks/query-G62G25HV.js +7 -0
  358. package/dist/chunks/{raw-query-QHFSKN55.js → raw-query-WTKAOYCP.js} +1 -1
  359. package/dist/chunks/read-BTA5slYO-IJLWMNSS.js +8 -0
  360. package/dist/chunks/{reauthenticate-U2LOFDFP.js → reauthenticate-WQZ5HISG.js} +1 -1
  361. package/dist/chunks/remove-7PSNAEDY.js +9 -0
  362. package/dist/chunks/remove-CCa99nz9-LCSNBDLT.js +7 -0
  363. package/dist/chunks/{reorder-E5UYNMML.js → reorder-OLCKSATY.js} +1 -1
  364. package/dist/chunks/{reply-DSDFBUAX.js → reply-OVHQNEBO.js} +1 -1
  365. package/dist/chunks/{repo-info-to-url-XQSULSEO.js → repo-info-to-url-S2YOQIRM.js} +1 -1
  366. package/dist/chunks/{repo-root-DZ6WFHMP.js → repo-root-STNOAHCH.js} +1 -1
  367. package/dist/chunks/{resolve-VK5QTUII.js → resolve-TUHO4FHT.js} +1 -1
  368. package/dist/chunks/{resolve-agent-team-D7RFR6WL.js → resolve-agent-team-NQCRA6ER.js} +1 -1
  369. package/dist/chunks/{resolve-deployment-framework-preset-BLMQLCIN.js → resolve-deployment-framework-preset-SCQCWANF.js} +1 -1
  370. package/dist/chunks/{restore-IVNZOVU3.js → restore-5RLBSVYQ.js} +1 -1
  371. package/dist/chunks/{rm-PAI3WZXJ.js → rm-5RGN33Y5.js} +1 -1
  372. package/dist/chunks/rm-D7CWGBTV.js +8 -0
  373. package/dist/chunks/{rm-L2KCHMLS.js → rm-FYU3GBLC.js} +1 -1
  374. package/dist/chunks/rm-HA752TW6.js +8 -0
  375. package/dist/chunks/{rm-LWEITUDD.js → rm-P6AGSBXP.js} +1 -1
  376. package/dist/chunks/routes-7VLRHXT4.js +7 -0
  377. package/dist/chunks/rule-inspect-Y2MX7LQN.js +8 -0
  378. package/dist/chunks/run-D8obqfKw-D2EGHTU2.js +7 -0
  379. package/dist/chunks/{schema-ZOPJJLJC.js → schema-AJAHECZG.js} +1 -1
  380. package/dist/chunks/{schema-ZIK2W4AX.js → schema-UVTYLX6L.js} +2 -2
  381. package/dist/chunks/select-org-JBKKKZSN.js +7 -0
  382. package/dist/chunks/{serving-C1mhZQqH-73TMEGEB.js → serving-C1mhZQqH-XEQUVQZK.js} +1 -1
  383. package/dist/chunks/sessions-cvWvPgzc-FBOQQPU5.js +7 -0
  384. package/dist/chunks/{set-MC2CLSA2.js → set-774P7GEL.js} +1 -1
  385. package/dist/chunks/{set-B5MPNYXG.js → set-OWNTI5SM.js} +1 -1
  386. package/dist/chunks/setup-and-link-3LD4LQGE.js +7 -0
  387. package/dist/chunks/sh-7olsIyJh-NFO2QYTK.js +7 -0
  388. package/dist/chunks/{skills-X5MN3OH2.js → skills-W45E2EWS.js} +1 -1
  389. package/dist/chunks/slugify-OEOEYGDL.js +7 -0
  390. package/dist/chunks/snapshot-D9MAspub-UAVA2YSK.js +9 -0
  391. package/dist/chunks/snapshots-DQjvm6St-DBG4H2HS.js +9 -0
  392. package/dist/chunks/stamp-THWCZ5IQ.js +7 -0
  393. package/dist/chunks/{statuspage-K5SC7KAQ.js → statuspage-NCYXH7DR.js} +1 -1
  394. package/dist/chunks/stop-SQX-uC-Q-CRDQOA5M.js +10 -0
  395. package/dist/chunks/table-3DCL552W.js +7 -0
  396. package/dist/chunks/{tags-WRVKKRN7.js → tags-DEIOW5MM.js} +1 -1
  397. package/dist/chunks/telemetry-KLbte3YE-OAFHJTWE.js +13 -0
  398. package/dist/chunks/token-DGNBXqnR-37H4S563.js +7 -0
  399. package/dist/chunks/token-EYEJQ7AP.js +7 -0
  400. package/dist/chunks/token-LNLX4V5J.js +7 -0
  401. package/dist/chunks/token-MZBD3R2S.js +7 -0
  402. package/dist/chunks/token-util-4P4GUSTT.js +7 -0
  403. package/dist/chunks/token-util-DAhLJ1X4-NJBLJROT.js +7 -0
  404. package/dist/chunks/token-util-XC5K3DNT.js +7 -0
  405. package/dist/chunks/token-util-XO4H5VLL.js +7 -0
  406. package/dist/chunks/{types-PC3JIYPX.js → types-SYUZH46V.js} +1 -1
  407. package/dist/chunks/update-VG2LHBRV.js +8 -0
  408. package/dist/chunks/{update-route-version-KWK5S4UW.js → update-route-version-MKFTZPKQ.js} +1 -1
  409. package/dist/chunks/usage-NF6S3DAZ.js +17 -0
  410. package/dist/chunks/users-CGEsQ4G8-POYTVZJV.js +9 -0
  411. package/dist/chunks/{utils-IQZEE4DT.js → utils-XXR7KIRB.js} +1 -1
  412. package/dist/chunks/validate-config-MJQI5EMD.js +7 -0
  413. package/dist/chunks/{vercel-cli-3UQLDU2S.js → vercel-cli-RW4WHHOS.js} +1 -1
  414. package/dist/chunks/{vlt-builder-graph-XL2XRO4V.js → vlt-builder-graph-EU5EX7KY.js} +1 -1
  415. package/dist/chunks/{vlt-builder-importer-RBUPAB6J.js → vlt-builder-importer-2YSRGPFC.js} +1 -1
  416. package/dist/chunks/wrap-ansi-CaN_P_HT-MAPHF26X.js +7 -0
  417. package/dist/chunks/write-DixEhGqz-YYDLLSJE.js +10 -0
  418. package/dist/chunks/{zod-Y3ZBY67C.js → zod-H7KW2D5Z.js} +1 -1
  419. package/dist/commands/build/index.js +1 -1
  420. package/dist/commands/deploy/index.js +11 -11
  421. package/dist/commands/dev/index.js +5 -9
  422. package/dist/commands/env/index.js +1 -1
  423. package/dist/commands/link/index.js +1 -1
  424. package/dist/commands/list/index.js +1 -1
  425. package/dist/commands/project/index.js +102 -80
  426. package/dist/commands/tunnel/index.js +1 -1
  427. package/dist/commands-account.js +101 -67
  428. package/dist/commands-ai.js +15 -15
  429. package/dist/commands-blob.js +3 -3
  430. package/dist/commands-core.js +9 -9
  431. package/dist/commands-deployments.js +1 -1
  432. package/dist/commands-flags.js +7 -7
  433. package/dist/commands-integrations.js +11 -11
  434. package/dist/commands-observability.js +2 -2
  435. package/dist/commands-routing.js +9 -9
  436. package/dist/help.js +1 -1
  437. package/dist/index.js +10 -8
  438. package/dist/internal-build-worker.js +1 -1
  439. package/dist/internal-build.js +2 -2
  440. package/dist/package.json +9 -9
  441. package/dist/root-help-commands.mjs +1 -1
  442. package/dist/version.mjs +1 -1
  443. package/package.json +16 -16
  444. package/dist/chunks/add-RH3RQPGP.js +0 -8
  445. package/dist/chunks/chunk-37P7O3AQ.js +0 -9
  446. package/dist/chunks/chunk-3ARTWVQV.js +0 -11
  447. package/dist/chunks/chunk-4F73GVJZ.js +0 -7
  448. package/dist/chunks/chunk-6FEMU5YF.js +0 -7
  449. package/dist/chunks/chunk-6UJIJLQC.js +0 -13
  450. package/dist/chunks/chunk-CDJ25IKC.js +0 -7
  451. package/dist/chunks/chunk-EMTZZXMH.js +0 -13
  452. package/dist/chunks/chunk-HR4ID3MU.js +0 -7
  453. package/dist/chunks/chunk-INIZJZ3O.js +0 -7
  454. package/dist/chunks/chunk-JCHZRW4N.js +0 -7
  455. package/dist/chunks/chunk-MDRI27KN.js +0 -9
  456. package/dist/chunks/chunk-OAM5NJCU.js +0 -9
  457. package/dist/chunks/chunk-PX3V7X3Q.js +0 -12
  458. package/dist/chunks/chunk-RHFNVIFD.js +0 -7
  459. package/dist/chunks/chunk-T4DOV5S4.js +0 -7
  460. package/dist/chunks/chunk-XKPB27SC.js +0 -8
  461. package/dist/chunks/chunk-Z3XKNZDP.js +0 -9
  462. package/dist/chunks/compile-vercel-config-HMKEDWC4.js +0 -7
  463. package/dist/chunks/connect-git-provider-WGKVFXW2.js +0 -7
  464. package/dist/chunks/create-project-BTOHPKZB.js +0 -7
  465. package/dist/chunks/detect-projects-I7NEHWSM.js +0 -7
  466. package/dist/chunks/detect-services-4ONC2DH3.js +0 -7
  467. package/dist/chunks/future-3AUPMPY7.js +0 -7
  468. package/dist/chunks/generate-cert-for-deploy-OZWVIWOO.js +0 -7
  469. package/dist/chunks/image-EFBQXTAP.js +0 -7
  470. package/dist/chunks/import-builders-2G4KVI4T.js +0 -7
  471. package/dist/chunks/login-WYDX5KZN.js +0 -7
  472. package/dist/chunks/logs-E3RZLAT2.js +0 -7
  473. package/dist/chunks/ls-IQUZ6GWG.js +0 -11
  474. package/dist/chunks/ls-YTKJRKD3.js +0 -8
  475. package/dist/chunks/migrate-experimental-services-GPGYPN66.js +0 -7
  476. package/dist/chunks/mutate-YJNE2733.js +0 -9
  477. package/dist/chunks/prompt-missing-credentials-7F7MUAWK.js +0 -7
  478. package/dist/chunks/pull-4LISUHDN.js +0 -7
  479. package/dist/chunks/purchase-domain-if-available-QH2OHRLZ.js +0 -7
  480. package/dist/chunks/query-QCIU5IB4.js +0 -7
  481. package/dist/chunks/remove-IB7C6LII.js +0 -9
  482. package/dist/chunks/rm-GYS4DS2Z.js +0 -8
  483. package/dist/chunks/rm-PDJE63VV.js +0 -8
  484. package/dist/chunks/routes-SBMN6SDF.js +0 -7
  485. package/dist/chunks/rule-inspect-LQISNCBT.js +0 -8
  486. package/dist/chunks/select-org-EKDOS2CQ.js +0 -7
  487. package/dist/chunks/setup-and-link-FHHZAU65.js +0 -7
  488. package/dist/chunks/stamp-TKONNIJ5.js +0 -7
  489. package/dist/chunks/table-SCLK33K7.js +0 -7
  490. package/dist/chunks/token-MYYNOUIT.js +0 -7
  491. package/dist/chunks/token-util-OJHS52JP.js +0 -7
  492. package/dist/chunks/update-QDIZFM4T.js +0 -8
  493. package/dist/chunks/usage-JUP36KHN.js +0 -15
  494. package/dist/chunks/validate-config-K42CVRCZ.js +0 -7
@@ -1,7 +0,0 @@
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
- import{packageName}from"./chunk-B4KA3ZH2.js";import{formatOption,jsonOption,sinceOption,untilOption}from"./chunk-DORCX7UB.js";var organizationOption={name:"organization",shorthand:null,type:String,argument:"ORGANIZATION",deprecated:!1,description:"Show usage for the whole organization, by organization slug or ID, from any team"},usageCommand={name:"usage",aliases:[],summary:"Show billing usage and costs",description:"Show billing usage and costs for the current billing cycle or a custom date range",arguments:[],options:[{...sinceOption,description:"Start time: YYYY-MM-DD (midnight LA time), ISO 8601, or relative, like 7d (default: start of the current billing cycle)"},{...untilOption,description:"End time: YYYY-MM-DD (end of day LA time), ISO 8601, or relative; requires --since (default: now)"},{name:"from",shorthand:null,type:String,deprecated:!0},{name:"to",shorthand:null,type:String,deprecated:!0},{name:"breakdown",shorthand:null,type:String,argument:"PERIOD",description:"Show usage breakdown by time period instead of aggregated totals (daily, weekly, monthly)",deprecated:!1},{name:"group-by",shorthand:null,type:String,argument:"DIMENSION",description:"Group usage by a dimension instead of aggregated totals (project, region, team)",deprecated:!1},organizationOption,formatOption,jsonOption],examples:[{name:"Show usage for the current billing period",value:`${packageName} billing usage`},{name:"Show usage for a custom date range",value:`${packageName} billing usage --since 2025-01-01 --until 2025-01-31`},{name:"Show usage for the last 7 days",value:`${packageName} billing usage --since 7d`},{name:"Show daily usage breakdown",value:`${packageName} billing usage --breakdown daily`},{name:"Show weekly usage breakdown",value:`${packageName} billing usage --breakdown weekly`},{name:"Show usage grouped by project",value:`${packageName} billing usage --group-by project`},{name:"Show usage grouped by region",value:`${packageName} billing usage --group-by region`},{name:"Show usage for the whole organization",value:`${packageName} billing usage --organization acme`},{name:"Show organization usage grouped by team",value:`${packageName} billing usage --organization acme --group-by team`},{name:"Output usage data as JSON",value:`${packageName} billing usage --json`}]};export{usageCommand};
@@ -1,13 +0,0 @@
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
- import{require_cjs}from"./chunk-EHAS6SQB.js";import{CONTACT_FIELDS,billingFieldsUsed,collectContactInformation,getBillingContact,getDomainPrice,getDomainStatus,isPurchasedSince,mergeContact,missingContactFields,purchaseDomain,readContactFlags}from"./chunk-TSIKSHYG.js";import{stamp_default}from"./chunk-A2RZZQEP.js";import{amountMatchesPrice,canPromptForCharge,chargeFailureReason,chargeFlagWithValue,formatAmountArg,formatTerm,orderStatusStep,parseAmount,parseOrderWait,printChargeRecovery,refuseUnnamedTeam,reportChargeFailure,reportOrderPending,reportPriceChanged,reportUnknownOutcome,reportUsageError,writeChargeAction}from"./chunk-V3YNYCRV.js";import{formatUsd}from"./chunk-CTBSRTJW.js";import{param}from"./chunk-3G3FQYMW.js";import{buySubcommand}from"./chunk-6UJIJLQC.js";import{getScope}from"./chunk-4SWS7RKX.js";import{TelemetryClient}from"./chunk-EYRBV6RM.js";import{printError}from"./chunk-UPDIZCP3.js";import{parseArguments}from"./chunk-INIZJZ3O.js";import{AGENT_ACTION,AGENT_REASON,AGENT_STATUS,buildCommandWithGlobalFlags,outputAgentError}from"./chunk-3ARTWVQV.js";import{validateJsonOutput}from"./chunk-KA2KG3SY.js";import{DomainChargeOutcomeUnknown,DomainPaymentAuthenticationRequired,DomainPriceChanged,DomainPurchaseInProgress,isAPIError}from"./chunk-QFE3RPMA.js";import{getCommandName,getCommandNamePlain}from"./chunk-B4KA3ZH2.js";import{output_manager_default}from"./chunk-RYSO5U3E.js";import{require_dist}from"./chunk-MCYG7CCE.js";import{getFlagsSpecification,getGlobalFlagsFromArgs,quoteArg}from"./chunk-DORCX7UB.js";import{require_source}from"./chunk-NB2WLB3J.js";import{require_strip_ansi}from"./chunk-BS32OUOC.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1),import_strip_ansi=__toESM(require_strip_ansi(),1),import_tldts=__toESM(require_cjs(),1),import_error_utils=__toESM(require_dist(),1);var DomainsBuyTelemetryClient=class extends TelemetryClient{trackCliArgumentDomain(v){v&&this.trackCliArgument({arg:"domain",value:this.redactedValue})}trackCliOptionAmount(v){this.trackRedactedCliOption("amount",v)}trackCliFlagUseBillingDetails(v){v&&this.trackCliFlag("use-billing-details")}trackCliOptionFirstName(v){this.trackRedactedCliOption("first-name",v)}trackCliOptionLastName(v){this.trackRedactedCliOption("last-name",v)}trackCliOptionEmail(v){this.trackRedactedCliOption("email",v)}trackCliOptionPhone(v){this.trackRedactedCliOption("phone",v)}trackCliOptionAddress(v){this.trackRedactedCliOption("address",v)}trackCliOptionCity(v){this.trackRedactedCliOption("city",v)}trackCliOptionState(v){this.trackRedactedCliOption("state",v)}trackCliOptionZip(v){this.trackRedactedCliOption("zip",v)}trackCliOptionCountry(v){this.trackRedactedCliOption("country",v)}trackCliOptionCompany(v){this.trackRedactedCliOption("company",v)}trackCliFlagAutoRenew(v){v&&this.trackCliFlag("auto-renew")}trackCliFlagNoAutoRenew(v){v&&this.trackCliFlag("no-auto-renew")}trackCliFlagJson(v){v&&this.trackCliFlag("json")}trackCliOptionTimeout(timeout){timeout&&this.trackCliOption({option:"timeout",value:"[TIME]"})}trackCliFlagNoWait(noWait){noWait&&this.trackCliFlag("no-wait")}};function buildBuyCommand(client,domain,opts){let parts=[`domains buy ${domain}`];opts.team&&parts.push(`--scope ${opts.team}`),opts.amount!==void 0&&parts.push(`--amount ${formatAmountArg(opts.amount)}`),opts.useBilling&&parts.push("--use-billing-details");for(let{field,flag}of CONTACT_FIELDS){let value=opts.contact[field];value!==void 0?parts.push(`${flag} ${quoteArg(value)}`):opts.missing.includes(field)&&parts.push(`${flag} <${flag.slice(2)}>`)}return opts.autoRenew===!0&&parts.push("--auto-renew"),opts.autoRenew===!1&&parts.push("--no-auto-renew"),opts.wait?.noWait?parts.push("--no-wait"):opts.wait?.timeout&&parts.push(`--timeout ${quoteArg(opts.wait.timeout)}`),opts.json&&parts.push("--json"),buildCommandWithGlobalFlags(client.argv,parts.join(" "))}function flagFor(field){return CONTACT_FIELDS.find(f=>f.field===field).flag}function usageError(client,message){return reportUsageError(client,AGENT_REASON.INVALID_ARGUMENTS,message)}async function buy(client,argv){let telemetry=new DomainsBuyTelemetryClient({opts:{store:client.telemetryEventStore}}),parsedArgs,flagsSpecification=getFlagsSpecification(buySubcommand.options);try{parsedArgs=parseArguments(argv,flagsSpecification)}catch(error){return client.nonInteractive&&outputAgentError(client,{status:"error",reason:"invalid_arguments",message:error instanceof Error?error.message:String(error)},2),printError(error),2}let{args,flags}=parsedArgs,[domainName]=args;if(telemetry.trackCliArgumentDomain(domainName),telemetry.trackCliOptionAmount(flags["--amount"]),telemetry.trackCliFlagUseBillingDetails(flags["--use-billing-details"]),telemetry.trackCliOptionFirstName(flags["--first-name"]),telemetry.trackCliOptionLastName(flags["--last-name"]),telemetry.trackCliOptionEmail(flags["--email"]),telemetry.trackCliOptionPhone(flags["--phone"]),telemetry.trackCliOptionAddress(flags["--address"]),telemetry.trackCliOptionCity(flags["--city"]),telemetry.trackCliOptionState(flags["--state"]),telemetry.trackCliOptionZip(flags["--zip"]),telemetry.trackCliOptionCountry(flags["--country"]),telemetry.trackCliOptionCompany(flags["--company"]),telemetry.trackCliFlagAutoRenew(flags["--auto-renew"]),telemetry.trackCliFlagNoAutoRenew(flags["--no-auto-renew"]),telemetry.trackCliOptionTimeout(flags["--timeout"]),telemetry.trackCliFlagNoWait(flags["--no-wait"]),telemetry.trackCliOptionFormat(flags["--format"]),telemetry.trackCliFlagJson(flags["--json"]),!domainName){if(client.nonInteractive){let globalFlags=getGlobalFlagsFromArgs(client.argv.slice(2)),cmd=getCommandNamePlain(`domains buy <domain> ${globalFlags.join(" ")}`.trim());outputAgentError(client,{status:"error",reason:"missing_arguments",message:`Missing domain name. Run: ${cmd}`,next:[{command:cmd,when:"Replace <domain> with the domain to buy"}]},2)}return output_manager_default.error(`Missing domain name. Run ${getCommandName("domains --help")}`),2}if(args.length>1){let extra=args[1].toLowerCase();return usageError(client,extra==="true"||extra==="false"?"Unexpected extra argument. On/off options like --auto-renew don't take a value: pass --auto-renew or --no-auto-renew.":'Unexpected extra argument. domains buy takes one domain; quote option values that contain spaces, like --address "1 Main St".')}let formatResult=validateJsonOutput(flags);if(!formatResult.valid)return usageError(client,formatResult.error);let asJson=formatResult.jsonOutput,{domain:rootDomain,subdomain}=(0,import_tldts.parse)(domainName);if(subdomain||!rootDomain)return client.nonInteractive&&outputAgentError(client,{status:"error",reason:"invalid_domain",message:`Invalid domain name '${domainName}'. Use a registrable root domain (no subdomain).`},1),output_manager_default.error(`Invalid domain name "${domainName}". Run ${getCommandName("domains --help")}`),1;let amount=parseAmount(flags["--amount"]);if(amount instanceof Error)return usageError(client,amount.message);let wait=parseOrderWait(flags);if(typeof wait=="string")return usageError(client,wait);let fromFlags=readContactFlags(flags);if(typeof fromFlags=="string")return usageError(client,fromFlags);let valuedFlag=chargeFlagWithValue(argv,["--auto-renew","--no-auto-renew","--use-billing-details"]);if(valuedFlag)return usageError(client,valuedFlag);let useBilling=!!flags["--use-billing-details"];if(flags["--auto-renew"]&&flags["--no-auto-renew"])return usageError(client,"Can't use --auto-renew with --no-auto-renew.");let autoRenewChoice=flags["--auto-renew"]?!0:flags["--no-auto-renew"]?!1:void 0,{contextName,team}=await getScope(client),commandOptions={team:team?.slug,useBilling,contact:fromFlags,autoRenew:autoRenewChoice,wait:{noWait:wait.noWait,timeout:flags["--timeout"]===void 0?void 0:wait.timeout},json:asJson},availableStamp=stamp_default(),[domainPrice,domainStatus]=await Promise.all([getDomainPrice(client,domainName),getDomainStatus(client,domainName)]);if(!domainStatus.available){if(await isPurchasedSince(client,domainName,0)){if(!canPromptForCharge(client,asJson)&&team){let refused=refuseUnnamedTeam(client,asJson,{verb:"buy",domain:domainName,team,nextCommand:buildBuyCommand(client,domainName,{...commandOptions,amount,missing:[]})});if(refused!==void 0)return refused}return reportAlreadyOwned(client,asJson,domainName,contextName,{autoRenew:autoRenewChoice})}return reportChargeFailure(client,asJson,{reason:AGENT_REASON.DOMAIN_NOT_AVAILABLE,message:`The domain ${domainName} is unavailable.`})}if(domainPrice instanceof Error)return reportChargeFailure(client,asJson,{reason:chargeFailureReason(domainPrice),message:domainPrice.message});let{years,purchasePrice,renewalPrice}=domainPrice;if(purchasePrice===null||renewalPrice===null)return reportChargeFailure(client,asJson,{reason:AGENT_REASON.API_ERROR,message:`The price of ${domainName} was not found.`});output_manager_default.log(`The domain ${param(domainName)} is ${import_chalk.default.underline("available")} to buy under ${import_chalk.default.bold(contextName)}! ${availableStamp()}`);let billing=getBillingContact(team),contact=mergeContact(fromFlags,useBilling?billing:{});if(amount!==void 0&&!amountMatchesPrice(amount,purchasePrice))return reportPriceChanged(client,{verb:"buy",domain:domainName,amount,price:purchasePrice,nextCommand:buildBuyCommand(client,domainName,{...commandOptions,amount:purchasePrice,missing:missingContactFields(contact)}),json:asJson});let autoRenew,contactInformation;if(canPromptForCharge(client,asJson)){if(amount===void 0&&!await client.input.confirm(`Buy now for ${import_chalk.default.bold(formatUsd(purchasePrice))} (${formatTerm(years)})?`,!1))return 0;autoRenew=autoRenewChoice??await client.input.confirm(years===1?`Auto renew yearly for ${import_chalk.default.bold(formatUsd(renewalPrice))}?`:`Auto renew every ${years} years for ${import_chalk.default.bold(formatUsd(renewalPrice))}?`,!0),contactInformation=await collectContactInformation(client,{provided:contact,defaults:mergeContact(fromFlags,billing)})}else{let missing=missingContactFields(contact);if(amount===void 0||missing.length>0||autoRenewChoice===void 0)return requireApproval(client,{domain:domainName,team:team?.slug,contextName,price:purchasePrice,renewalPrice,years,amount,fromFlags,billing,useBilling,autoRenew:autoRenewChoice,wait:commandOptions.wait,json:asJson});if(team){let refused=refuseUnnamedTeam(client,asJson,{verb:"buy",domain:domainName,team,nextCommand:buildBuyCommand(client,domainName,{...commandOptions,amount,missing:[]})});if(refused!==void 0)return refused}autoRenew=autoRenewChoice,contactInformation={...contact,companyName:contact.companyName||void 0}}let inspectCommand=buildCommandWithGlobalFlags(client.argv,`domains inspect ${domainName}`),buyResult,purchaseStamp=stamp_default();output_manager_default.spinner("Purchasing");try{buyResult=await purchaseDomain(client,domainName,purchasePrice,years,autoRenew,contactInformation,{waitMs:wait.waitMs,onOrderAccepted:orderId=>{asJson||wait.noWait||(output_manager_default.stopSpinner(),output_manager_default.log(`Order ${orderId} accepted.`),output_manager_default.spinner(`Waiting on the registrar to register ${domainName}`))}})}catch(err){output_manager_default.stopSpinner(),output_manager_default.debug(`Server response: ${(0,import_error_utils.errorToString)(err)}`);let apiError=isAPIError(err)?err:void 0;return reportChargeFailure(client,asJson,{reason:AGENT_REASON.API_ERROR,message:apiError?`Couldn't buy ${domainName}. The API returned an error (${apiError.code}). Nothing was charged.`:`Couldn't buy ${domainName}. The order wasn't sent, so nothing was charged.`},{apiMessage:apiError?.serverMessage})}if(output_manager_default.stopSpinner(),buyResult instanceof DomainPriceChanged)return reportPriceChanged(client,{verb:"buy",domain:domainName,amount:purchasePrice,nextCommand:buildBuyCommand(client,domainName,{...commandOptions,missing:[]}),json:asJson});if(buyResult instanceof DomainChargeOutcomeUnknown)return reportUnknownOutcome(client,asJson,{verb:"buy",domain:domainName,inspectCommand,orderId:buyResult.meta.orderId});if(buyResult instanceof DomainPurchaseInProgress){let{orderId}=buyResult.meta;return reportChargeFailure(client,asJson,{reason:AGENT_REASON.PURCHASE_IN_PROGRESS,message:buyResult.message,retryable:!1,data:{domain:domainName,remote:"none",...orderId&&{orderId}},next:[...orderId?[orderStatusStep(client,{verb:"buy",domain:domainName,orderId})]:[],{command:inspectCommand,when:"Once that order finishes, see the domain"}]})}return buyResult instanceof DomainPaymentAuthenticationRequired?reportChargeFailure(client,asJson,{reason:AGENT_REASON.PAYMENT_AUTHENTICATION_REQUIRED,message:buyResult.message,userActionRequired:!0,verification_uri:buyResult.meta.url}):buyResult instanceof Error?reportChargeFailure(client,asJson,{reason:chargeFailureReason(buyResult),message:buyResult.message}):buyResult.status==="already_owned"?reportAlreadyOwned(client,asJson,domainName,contextName,{autoRenew,duplicate:{orderId:buyResult.orderId,orderOutcome:buyResult.orderOutcome}}):buyResult.status==="pending"?reportOrderPending(client,asJson,{verb:"buy",domain:domainName,orderId:buyResult.orderId,lastStatus:buyResult.lastStatus,readError:buyResult.readError,inspectCommand,wait}):asJson?(client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.OK,domain:domainName,years,charge:{amount:purchasePrice,currency:"USD"},orderId:buyResult.orderId,autoRenew,renewalPrice,message:`Domain ${domainName} purchased.`},null,2)}
8
- `),0):(client.stdout.write(`${domainName}
9
- `),output_manager_default.success(`Domain ${param(domainName)} purchased ${purchaseStamp()}`),output_manager_default.log(`Charged ${formatUsd(purchasePrice)} for ${formatTerm(years)}. Registered to ${contactInformation.firstName} ${contactInformation.lastName} (${contactInformation.email}).`),output_manager_default.note(`You may now use your domain as an alias to your deployments. Run ${getCommandName("alias --help")}`),0)}function reportAlreadyOwned(client,json,domain,contextName,opts={}){let{duplicate,autoRenew}=opts,autoRenewCommand=autoRenew===void 0?void 0:buildCommandWithGlobalFlags(client.argv,`domains auto-renew ${autoRenew?"enable":"disable"} ${domain}`),message=[duplicate?`${domain} is already registered to ${contextName} by an earlier purchase. This run's order ${duplicate.orderId} ${duplicate.orderOutcome==="refunded"?"failed, and its charge was refunded":"failed"}.`:`${domain} is already registered to ${contextName}. Nothing was charged.`,autoRenewCommand?`This run didn't change its auto-renew setting; to turn it ${autoRenew?"on":"off"}, run ${autoRenewCommand}.`:""].filter(Boolean).join(" ");return json?(client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.OK,domain,outcome:"unchanged",...duplicate&&{orderId:duplicate.orderId,orderStatus:duplicate.orderOutcome},message,...autoRenewCommand&&{next:[{command:autoRenewCommand,when:`To turn auto-renew ${autoRenew?"on":"off"} for the existing registration`}]}},null,2)}
10
- `),0):(client.stdout.write(`${domain}
11
- `),output_manager_default.log(message),0)}function requireApproval(client,opts){let{domain,price,renewalPrice,years,billing,autoRenew}=opts,shown=billingFieldsUsed(opts.fromFlags,billing),shownFields=CONTACT_FIELDS.filter(({field})=>shown[field]),hasBilling=shownFields.length>0,useBilling=opts.useBilling||hasBilling,missing=missingContactFields(mergeContact(opts.fromFlags,useBilling?billing:{})),missingFlags=missing.map(flagFor),missingNow=missingContactFields(mergeContact(opts.fromFlags,opts.useBilling?billing:{})),needs=[...opts.amount===void 0?["an approved price (--amount)"]:[],...autoRenew===void 0?["an auto-renew choice (--auto-renew or --no-auto-renew)"]:[],...missingNow.length>0?["registrant details"]:[]],headline=`Can't buy ${domain} without ${needs.join(" and ")} in non-interactive mode.`,every=years===1?"year":formatTerm(years),renewal=autoRenew===void 0?`Auto-renew isn't chosen: --auto-renew renews it every ${every} (currently ${formatUsd(renewalPrice)}), --no-auto-renew lets it expire.`:autoRenew?`Then it auto-renews every ${every} (currently ${formatUsd(renewalPrice)}).`:"Auto-renew is off.",priceLine=`Price: ${formatUsd(price)} for ${formatTerm(years)}, charged to ${opts.contextName}. ${renewal}`,stillNeeded=missingFlags.length>0?`Still needed: ${missingFlags.join(", ")}.`:"",next=(autoRenew===void 0?[!0,!1]:[autoRenew]).map(renews=>({command:buildBuyCommand(client,domain,{team:opts.team,amount:price,useBilling,contact:opts.fromFlags,missing,autoRenew:renews,wait:opts.wait,json:opts.json}),when:`Only after a human approves: charges ${formatUsd(price)} now${renews?` and renews every ${every} (currently ${formatUsd(renewalPrice)})`:", with no renewal"}`}));writeChargeAction(client,opts.json,{status:AGENT_STATUS.ACTION_REQUIRED,reason:opts.amount===void 0||autoRenew===void 0?AGENT_REASON.CONFIRMATION_REQUIRED:AGENT_REASON.MISSING_REQUIREMENTS,action:AGENT_ACTION.CONFIRMATION_REQUIRED,message:[headline,priceLine,hasBilling?`The team's billing info has the registrant ${shownFields.map(({label})=>label.toLowerCase()).join(", ")} (data.billingDetails). Confirm them with the user; --use-billing-details uses them, and any contact option you pass replaces them.`:"",stillNeeded].filter(Boolean).join(" "),userActionRequired:!0,hint:"Show the user the price, renewal terms, and registrant details, and get their approval before running next[]. Domain registrations are non-refundable.",data:{domain,...opts.team&&{team:opts.team},amount:price,currency:"USD",years,autoRenew:autoRenew??null,renewalAmount:renewalPrice,...hasBilling&&{billingDetails:shown}},missing:[...opts.amount===void 0?["--amount"]:[],...autoRenew===void 0?["--auto-renew|--no-auto-renew"]:[],...useBilling&&!opts.useBilling?["--use-billing-details"]:[],...missingFlags],next});let billingRows=hasBilling?[`From ${opts.contextName}'s billing info:`,...shownFields.map(({field,label})=>` ${label.padEnd(10)}${(0,import_strip_ansi.default)(shown[field])}`)]:[];return printChargeRecovery([headline,priceLine,...billingRows,stillNeeded].filter(Boolean).join(`
12
- `),next.length>1?"Once a person approves the price, details, and auto-renew choice, run one of":"Once a person approves the price and details, run",next.map(({command})=>command).join(`
13
- `)),1}async function removeAliasById(client,id){return client.fetch(`/now/aliases/${id}`,{method:"DELETE"})}function isDomainExternal(domain){return domain.serviceType!=="zeit.world"}function getProjectDomain(client,projectIdOrName,domainName,options={}){return fetchProjectDomain(client,`/v9/projects/${encodeURIComponent(projectIdOrName)}/domains/${encodeURIComponent(domainName)}`,options)}function getProjectDomainByName(client,domainName,options={}){return fetchProjectDomain(client,`/project-domains/${encodeURIComponent(domainName)}`,options)}function verifyProjectDomain(client,projectIdOrName,domainName,options={}){return fetchProjectDomain(client,`/v9/projects/${encodeURIComponent(projectIdOrName)}/domains/${encodeURIComponent(domainName)}/verify`,{...options,method:"POST"})}async function fetchProjectDomain(client,url,init){try{return await client.fetch(url,init)}catch(err){if(isAPIError(err)&&err.status<500)return err;throw err}}async function deleteCertById(client,id){return client.fetch(`/v5/certs/${id}`,{method:"DELETE"})}async function getDomains(client,next,limit=20){let domainUrl=`/v5/domains?limit=${limit}`;return next&&(domainUrl+=`&until=${next}`),await client.fetch(domainUrl)}export{removeAliasById,isDomainExternal,getProjectDomain,getProjectDomainByName,verifyProjectDomain,buy,deleteCertById,getDomains};
@@ -1,7 +0,0 @@
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
- import{getSubcommand}from"./chunk-ETV3C2CV.js";import{monitorsCommand,monitorsNotificationsAggregateCommand}from"./chunk-MDRI27KN.js";import{TelemetryClient}from"./chunk-EYRBV6RM.js";import{takeCommand}from"./chunk-INIZJZ3O.js";import{AGENT_REASON,buildCommandWithGlobalFlags,outputAgentError}from"./chunk-3ARTWVQV.js";import{warnDeprecatedSubcommand}from"./chunk-KA2KG3SY.js";import{output_manager_default}from"./chunk-RYSO5U3E.js";import{getFlagsSpecification}from"./chunk-DORCX7UB.js";var MonitorsTelemetryClient=class extends TelemetryClient{trackCliSubcommandLs(actual){this.trackCliSubcommand({subcommand:"ls",value:actual})}trackCliSubcommandSchema(actual){this.trackCliSubcommand({subcommand:"schema",value:actual})}trackCliSubcommandAdd(actual){this.trackCliSubcommand({subcommand:"add",value:actual})}trackCliSubcommandInspect(actual){this.trackCliSubcommand({subcommand:"inspect",value:actual})}trackCliSubcommandRemove(actual){this.trackCliSubcommand({subcommand:"remove",value:actual})}trackCliSubcommandUpdate(actual){this.trackCliSubcommand({subcommand:"update",value:actual})}trackCliSubcommandNotifications(actual){this.trackCliSubcommand({subcommand:"notifications",value:actual})}trackCliOptionType(v){v&&v.length>0&&this.trackCliOption({option:"type",value:v.join(",")})}trackCliFlagAll(v){v&&this.trackCliFlag("all")}trackCliFlagJson(v){v&&this.trackCliFlag("json")}};var MONITORS_CONFIG={ls:["ls","list"],schema:["schema"],add:["add","create"],inspect:["inspect","get"],remove:["remove","rm","delete"],update:["update","patch"],notifications:["notifications"]},monitorsRoutingFlags=getFlagsSpecification([...monitorsCommand.subcommands,...monitorsNotificationsAggregateCommand.subcommands].flatMap(command=>[...command.options]));async function runMonitors(client,argv,api){let{command,args:argsWithoutCommand}=takeCommand(argv,monitorsRoutingFlags),found=command?getSubcommand([command],MONITORS_CONFIG):void 0;if(command&&found?.subcommand==null)return outputAgentError(client,{status:"error",reason:AGENT_REASON.INVALID_ARGUMENTS,message:`Unknown "monitors" subcommand "${command}".`,next:[{command:buildCommandWithGlobalFlags(client.argv,"monitors --help"),when:"Show valid monitors subcommands"}]},2),output_manager_default.error(`Unknown "monitors" subcommand "${command}". Run \`vercel monitors --help\`.`),2;let resolved=found?.subcommand??"ls",original=found?.subcommandOriginal??"ls",args=found?argsWithoutCommand:argv,telemetry=new MonitorsTelemetryClient({opts:{store:client.telemetryEventStore}});switch(resolved){case"ls":return telemetry.trackCliSubcommandLs(original),(await import("./ls-YTKJRKD3.js")).default(client,args,api,telemetry);case"schema":return telemetry.trackCliSubcommandSchema(original),(await import("./schema-ZIK2W4AX.js")).default(client,args,api);case"add":return telemetry.trackCliSubcommandAdd(original),original==="create"&&warnDeprecatedSubcommand(client,"monitors create","monitors add"),(await import("./add-RH3RQPGP.js")).default(client,args,api);case"inspect":return telemetry.trackCliSubcommandInspect(original),original==="get"&&warnDeprecatedSubcommand(client,"monitors get","monitors inspect"),(await import("./rule-inspect-LQISNCBT.js")).default(client,args,api);case"remove":return telemetry.trackCliSubcommandRemove(original),original==="delete"&&warnDeprecatedSubcommand(client,"monitors delete","monitors remove"),(await import("./rm-GYS4DS2Z.js")).default(client,args,api);case"update":return telemetry.trackCliSubcommandUpdate(original),original==="patch"&&warnDeprecatedSubcommand(client,"monitors patch","monitors update"),(await import("./update-QDIZFM4T.js")).default(client,args,api);case"notifications":return(await import("./notifications-2HU4L7WA.js")).default(client,args,api,telemetry);default:return output_manager_default.error(`Unhandled monitors subcommand: ${String(resolved)}`),1}}export{monitorsRoutingFlags,runMonitors};
@@ -1,7 +0,0 @@
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
- import{warnDeprecatedOption}from"./chunk-KA2KG3SY.js";import{packageName}from"./chunk-B4KA3ZH2.js";import{DEPRECATED_SHORTHANDS,arg_common_default,getShortFlagLongName,quoteArg,setCommandFlagsSpecification,stripSensitiveAuthArgs}from"./chunk-DORCX7UB.js";import{__commonJS,__toESM}from"./chunk-BZENIQ7N.js";var require_arg=__commonJS({"../../node_modules/.pnpm/arg@5.0.0/node_modules/arg/index.js"(exports,module){var flagSymbol=Symbol("arg flag"),ArgError=class _ArgError extends Error{constructor(msg,code){super(msg),this.name="ArgError",this.code=code,Object.setPrototypeOf(this,_ArgError.prototype)}};function arg2(opts,{argv=process.argv.slice(2),permissive=!1,stopAtPositional=!1}={}){if(!opts)throw new ArgError("argument specification object is required","ARG_CONFIG_NO_SPEC");let result={_:[]},aliases={},handlers={};for(let key of Object.keys(opts)){if(!key)throw new ArgError("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY");if(key[0]!=="-")throw new ArgError(`argument key must start with '-' but found: '${key}'`,"ARG_CONFIG_NONOPT_KEY");if(key.length===1)throw new ArgError(`argument key must have a name; singular '-' keys are not allowed: ${key}`,"ARG_CONFIG_NONAME_KEY");if(typeof opts[key]=="string"){aliases[key]=opts[key];continue}let type=opts[key],isFlag=!1;if(Array.isArray(type)&&type.length===1&&typeof type[0]=="function"){let[fn]=type;type=(value,name,prev=[])=>(prev.push(fn(value,name,prev[prev.length-1])),prev),isFlag=fn===Boolean||fn[flagSymbol]===!0}else if(typeof type=="function")isFlag=type===Boolean||type[flagSymbol]===!0;else throw new ArgError(`type missing or not a function or valid array type: ${key}`,"ARG_CONFIG_VAD_TYPE");if(key[1]!=="-"&&key.length>2)throw new ArgError(`short argument keys (with a single hyphen) must have only one character: ${key}`,"ARG_CONFIG_SHORTOPT_TOOLONG");handlers[key]=[type,isFlag]}for(let i=0,len=argv.length;i<len;i++){let wholeArg=argv[i];if(stopAtPositional&&result._.length>0){result._=result._.concat(argv.slice(i));break}if(wholeArg==="--"){result._=result._.concat(argv.slice(i+1));break}if(wholeArg.length>1&&wholeArg[0]==="-"){let separatedArguments=wholeArg[1]==="-"||wholeArg.length===2?[wholeArg]:wholeArg.slice(1).split("").map(a=>`-${a}`);for(let j=0;j<separatedArguments.length;j++){let arg3=separatedArguments[j],[originalArgName,argStr]=arg3[1]==="-"?arg3.split(/=(.*)/,2):[arg3,void 0],argName=originalArgName;for(;argName in aliases;)argName=aliases[argName];if(!(argName in handlers))if(permissive){result._.push(arg3);continue}else throw new ArgError(`unknown or unexpected option: ${originalArgName}`,"ARG_UNKNOWN_OPTION");let[type,isFlag]=handlers[argName];if(!isFlag&&j+1<separatedArguments.length)throw new ArgError(`option requires argument (but was followed by another short argument): ${originalArgName}`,"ARG_MISSING_REQUIRED_SHORTARG");if(isFlag)result[argName]=type(!0,argName,result[argName]);else if(argStr===void 0){if(argv.length<i+2||argv[i+1].length>1&&argv[i+1][0]==="-"&&!(argv[i+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(type===Number||typeof BigInt<"u"&&type===BigInt))){let extended=originalArgName===argName?"":` (alias for ${argName})`;throw new ArgError(`option requires argument: ${originalArgName}${extended}`,"ARG_MISSING_REQUIRED_LONGARG")}result[argName]=type(argv[i+1],argName,result[argName]),++i}else result[argName]=type(argStr,argName,result[argName])}}else result._.push(wholeArg)}return result}arg2.flag=fn=>(fn[flagSymbol]=!0,fn);arg2.COUNT=arg2.flag((v,name,existingCount)=>(existingCount||0)+1);arg2.ArgError=ArgError;module.exports=arg2}});var import_arg=__toESM(require_arg(),1);function suggestCorrection(input,choices){if(input.replace(/^-+/,"").length<3||choices.includes(input))return;let matches=[...new Set(choices)].filter(choice=>{if(Math.abs(input.length-choice.length)>1)return!1;let i=0;for(;i<input.length&&input[i]===choice[i];)i++;return input.length===choice.length?input.slice(i+1)===choice.slice(i+1)||input[i]===choice[i+1]&&input[i+1]===choice[i]&&input.slice(i+2)===choice.slice(i+2):input.length>choice.length?input.slice(i+1)===choice.slice(i):input.slice(i)===choice.slice(i+1)});return matches.length===1?matches[0]:void 0}var SAFE_VALUE_FLAGS=new Set(["--cwd","--scope","--team","-S","-T","--project","-p","--format","--environment","--since","--until","--limit"]),READ_COMMANDS=new Set(["inspect","list","ls","schema","whoami"]);function buildCorrectedCommand(argv,from,to,flagsSpecification={}){let corrected=argv.slice(2),spec={...arg_common_default(),...flagsSpecification},isSafeValueFlag=name=>SAFE_VALUE_FLAGS.has(getShortFlagLongName(name,spec)??name),valuelessFlags=new Set,takesValue=new Set;for(let[name,value]of Object.entries(spec))((typeof value=="string"?spec[value]:value)===Boolean?valuelessFlags:takesValue).add(name);for(let i=0;i<corrected.length;i++){let value=corrected[i];if(value==="--")break;if(value===from||value.startsWith(`${from}=`)){corrected[i]=to+value.slice(from.length);break}takesValue.has(value)&&i++}let args=stripSensitiveAuthArgs(corrected).filter(arg2=>!/^-t[^-=]/.test(arg2)),out=[],positionals=0,readCommand=!1;for(let i=0;i<args.length;i++){let value=args[i];if(value==="--"){out.push("--","<argument>");break}if(value.startsWith("-")){if(/^-[A-Za-z][^=].+/.test(value)&&!value.startsWith("--")){let name2=value.slice(0,2);out.push(name2,isSafeValueFlag(name2)?value.slice(2):"<value>");continue}let equals=value.indexOf("="),name=equals<0?value:value.slice(0,equals);equals>=0?out.push(`${name}=${isSafeValueFlag(name)||valuelessFlags.has(name)&&/^(true|false)$/.test(value.slice(equals+1))?value.slice(equals+1):"<value>"}`):(out.push(name),!valuelessFlags.has(name)&&i+1<args.length&&(takesValue.has(name)||!args[i+1].startsWith("-"))&&(i++,out.push(isSafeValueFlag(name)?args[i]:"<value>")))}else positionals++,positionals<=2&&(readCommand||=READ_COMMANDS.has(value)),out.push(positionals<=2||readCommand?value:"<argument>")}return[packageName,...out].map(quoteArg).join(" ")}var argumentErrors=new WeakSet;function isArgumentError(error){return error instanceof Error&&argumentErrors.has(error)}function getNegations(spec){let negations=new Map;for(let[name,type]of Object.entries(spec)){if(type!==Boolean||!name.startsWith("--")||name.startsWith("--no-"))continue;let negation=`--no-${name.slice(2)}`;negation in spec||negations.set(negation,name)}return negations}function conflictingOptionsError(name,negation){let error=new Error(`Can't use ${name} with ${negation}.`);return error.code="ARG_CONFLICTING_OPTIONS",argumentErrors.add(error),error}function parseWithSuggestions(args,spec,options){let negations=options.keepNegations?new Map:getNegations(spec);try{let negationSpec={};for(let negation of negations.keys())negationSpec[negation]=Boolean;let result=(0,import_arg.default)({...spec,...negationSpec},{...options,argv:args});for(let[negation,name]of negations)if(result[negation]!==void 0&&(delete result[negation],result[name]!==void 0&&!options.permissive))throw conflictingOptionsError(name,negation);return result}catch(error){if(error instanceof Error&&"code"in error&&["ARG_UNKNOWN_OPTION","ARG_MISSING_REQUIRED_LONGARG","ARG_MISSING_REQUIRED_SHORTARG"].includes(String(error.code))){let err=error,option=/(?:unknown or unexpected option|option requires argument(?: \([^)]*\))?): (--?[A-Za-z0-9-]+)(?: \(alias for --?[A-Za-z0-9-]+\))?$/.exec(err.message)?.[1];option&&(argumentErrors.add(err),err.invalidOption=option,err.allowedOptions=Object.keys(spec).filter(name=>name.startsWith("--")).sort(),err.code==="ARG_UNKNOWN_OPTION"&&(err.suggestedOption=suggestCorrection(option,err.allowedOptions)),err.flagsSpecification=spec)}throw error}}function getArgs(argv,argsOptions,argOptions={}){return parseWithSuggestions(argv,Object.assign({},arg_common_default(),argsOptions),argOptions)}var COMMAND_SHORTHAND_PLACEHOLDER="--\0command-shorthand-";function parseArguments(args,flagsSpecification,parserOptions={}){let spec=Object.assign({},arg_common_default(),flagsSpecification),{commandShorthands}=parserOptions,keepForCommand=!!(parserOptions.permissive&&commandShorthands?.size),{_:parsed,...rest}=parseWithSuggestions(keepForCommand?args.map((arg2,index)=>commandShorthands.has(index)?`${COMMAND_SHORTHAND_PLACEHOLDER}${index}`:arg2):args,spec,parserOptions),positional=keepForCommand?parsed.map(arg2=>arg2.startsWith(COMMAND_SHORTHAND_PLACEHOLDER)?args[Number(arg2.slice(COMMAND_SHORTHAND_PLACEHOLDER.length))]:arg2):parsed;return!parserOptions.permissive&&parserOptions.warnDeprecated!==!1&&(setCommandFlagsSpecification(spec),warnDeprecatedShorthands(args,spec,parserOptions)),{args:positional,flags:rest}}var usedShorthands=new Set,warnedShorthands=new Set;function getUsedDeprecatedShorthands(){return[...usedShorthands]}function warnDeprecatedShorthands(args,spec,parserOptions){let shorthands=spec[DEPRECATED_SHORTHANDS];if(!shorthands?.length)return;let names=new Map,splitSpec={...spec};for(let shorthand of shorthands){let name=spec[shorthand];if(typeof name!="string")continue;let handler=resolveHandler(spec,name);handler!==void 0&&(names.set(shorthand,name),splitSpec[shorthand]=handler)}let flags;try{flags=parseWithSuggestions(args,splitSpec,parserOptions)}catch{return}for(let[shorthand,name]of names){if(flags[shorthand]===void 0)continue;usedShorthands.add(shorthand);let warning=`${shorthand} ${name}`;warnedShorthands.has(warning)||(warnedShorthands.add(warning),warnDeprecatedOption(args,shorthand,name))}}function resolveHandler(spec,name){let handler=spec[name];for(;typeof handler=="string";)handler=spec[handler];return handler}function parseWithShortFlag(args,spec,shortFlag,handler=resolveHandler(spec,shortFlag)){if(handler===void 0)return{};try{return parseArguments(args,{...spec,[shortFlag]:handler},{permissive:!0,warnDeprecated:!1}).flags}catch{return{}}}function getTypedOptionName(args,spec,name){for(let[key,target]of Object.entries(spec))if(target===name&&/^-[^-]$/.test(key)&&parseWithShortFlag(args,spec,key)[key]!==void 0)return usedShorthands.add(key),key;return name}function takeCommand(argv,flagsSpecification){let{_:positional}=parseWithSuggestions(argv,Object.assign({},arg_common_default(),flagsSpecification),{stopAtPositional:!0}),index=argv.length-positional.length;return{command:positional[0],index,args:[...argv.slice(0,index),...argv.slice(index+1)]}}export{require_arg,suggestCorrection,buildCorrectedCommand,isArgumentError,getArgs,parseArguments,getUsedDeprecatedShorthands,parseWithShortFlag,getTypedOptionName,takeCommand};
@@ -1,7 +0,0 @@
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
- import{printProjectNotFoundError}from"./chunk-PX3V7X3Q.js";import{detectExplicitScope}from"./chunk-4SWS7RKX.js";import{getLinkedProject}from"./chunk-ZHGKJCQ2.js";import{omitGlobalFlagsFromArgs}from"./chunk-3ARTWVQV.js";function getInvokingCommandArgsFromArgv(argv){let args=omitGlobalFlagsFromArgs(argv.slice(2)),positionals=[];for(let arg of args){if(arg.startsWith("-"))break;positionals.push(arg)}return positionals}async function resolveProjectContext({client,cwd=client.cwd,projectNameOrId,commandName="",projectNotFoundHandling="report",skipOwnerLookup,allowOwnerLookupFallback,allowProjectLookupFallback,quiet,allowConfigExecution}){let context=await getLinkedProject(client,{cwd,projectName:projectNameOrId,projectNameIsExplicit:!!projectNameOrId,scopeIsExplicit:detectExplicitScope(client),skipOwnerLookup,allowOwnerLookupFallback,allowProjectLookupFallback,quiet,allowConfigExecution});return context.status==="not_linked"&&projectNameOrId&&projectNotFoundHandling==="report"?(await printProjectNotFoundError(client,projectNameOrId,commandName||getInvokingCommandArgsFromArgv(client.argv),context.orgId),{status:"error",exitCode:1,orgId:context.orgId}):context}export{resolveProjectContext};
@@ -1,9 +0,0 @@
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
- import{packageName}from"./chunk-B4KA3ZH2.js";import{formatOption,jsonOption,projectOption,yesOption}from"./chunk-DORCX7UB.js";var builtInBody={type:"built-in",name:"Production server errors",triggers:{mode:"selected",items:[{type:"error_anomaly",filter:"statusGroup:5xx AND route:/api/*"}]},matchMinimumSeverityLevel:"high"},patchBody={name:"Critical production errors",matchMinimumSeverityLevel:"critical"},authoringReference={title:"Authoring reference",body:[{command:"vercel monitors schema --type built-in"}]},monitorsAddHelpSections=[{title:"Scope",body:["Provide ruleScope in the body or use a scope option, not both.","--project maps to one included project.","--all maps to every project in the team."]},{title:"Built-in body (rule.json)",preformatted:!0,body:[...JSON.stringify(builtInBody,null,2).split(`
8
- `),"",{command:"vercel monitors add --project my-app --body ./rule.json"}]},authoringReference],monitorsUpdateHelpSections=[{title:"Update body",body:["Include only the fields to change. type is optional and inferred from the stored monitor.","Use --project or --all to change scope with or without --body.","Do not combine a ruleScope field in the body with --project or --all.","--all moves the monitor to team-wide scope."]},{title:"Partial body (patch.json)",preformatted:!0,body:[...JSON.stringify(patchBody,null,2).split(`
9
- `),"",{command:"vercel monitors update ar_abc123 --body ./patch.json"},{command:"vercel monitors update ar_abc123 --project my-app"}]},authoringReference];var projectScopeOption={...projectOption,shorthand:"p",description:"Use a project by name or ID"},listAllOption={name:"all",shorthand:"a",type:Boolean,deprecated:!1,description:"List all accessible monitors in the selected team"},mutationAllOption={...listAllOption,description:"Apply the monitor to all projects in the selected team"},deprecatedItemScopeOptions=[{...projectScopeOption,deprecated:!0},{...listAllOption,deprecated:!0}],bodyOption={name:"body",shorthand:null,type:String,argument:"PATH",deprecated:!1,description:"Read the monitor body from a JSON file"},monitorsLsSubcommand={name:"ls",aliases:["list"],default:!0,description:"List monitors for a project or team",arguments:[],options:[projectScopeOption,listAllOption,{name:"type",shorthand:null,type:[String],argument:"TYPE",deprecated:!1,description:"Filter by monitor type"},formatOption,jsonOption],examples:[{name:"List monitors affecting the linked project",value:`${packageName} monitors ls`},{name:"List all monitors in the selected team",value:`${packageName} monitors ls --all`},{name:"Write JSON output",value:`${packageName} monitors ls --all --json`}]},monitorsSchemaSubcommand={name:"schema",aliases:[],description:"Show monitor request fields and examples",arguments:[],options:[{name:"type",shorthand:null,type:String,argument:"TYPE",deprecated:!1,description:"Monitor type to describe"},formatOption,jsonOption],examples:[{name:"List supported monitor types",value:`${packageName} monitors schema`},{name:"Show the built-in monitor schema",value:`${packageName} monitors schema --type built-in`}]},monitorsAddSubcommand={name:"add",aliases:["create"],description:"Add a monitor from a JSON body",helpSections:monitorsAddHelpSections,arguments:[],options:[projectScopeOption,mutationAllOption,formatOption,jsonOption,bodyOption],examples:[{name:"Create a project-scoped monitor",value:`${packageName} monitors add --project my-app --body ./rule.json`},{name:"Create a team-wide built-in monitor",value:`${packageName} monitors add --all --body ./rule.json`}]},monitorsInspectSubcommand={name:"inspect",aliases:["get"],description:"Show one monitor by ID",arguments:[{name:"monitorId",required:!0}],options:[...deprecatedItemScopeOptions,formatOption,jsonOption],examples:[{name:"Inspect a monitor",value:`${packageName} monitors inspect ar_abc123`},{name:"Write JSON output",value:`${packageName} monitors inspect ar_abc123 --json`}]},monitorsRmSubcommand={name:"remove",aliases:["rm","delete"],description:"Remove a monitor",arguments:[{name:"monitorId",required:!0}],options:[...deprecatedItemScopeOptions,formatOption,jsonOption,yesOption],examples:[{name:"Remove with confirmation",value:`${packageName} monitors remove ar_abc123`},{name:"Remove without a prompt",value:`${packageName} monitors remove ar_abc123 --yes`}]},monitorsUpdateSubcommand={name:"update",aliases:["patch"],description:"Update a monitor's settings or scope",helpSections:monitorsUpdateHelpSections,arguments:[{name:"monitorId",required:!0}],options:[projectScopeOption,mutationAllOption,formatOption,jsonOption,{...bodyOption,description:"Read the partial update body from a JSON file"}],examples:[{name:"Update fields from a file",value:`${packageName} monitors update ar_abc123 --body ./patch.json`},{name:"Move a monitor to a project",value:`${packageName} monitors update ar_abc123 --project my-app`}]},notificationTargetOptions=[{name:"webhook",shorthand:null,type:String,argument:"WEBHOOK_ID",deprecated:!1,description:"Select an account webhook by ID"},{name:"slack-channel",shorthand:null,type:String,argument:"CHANNEL_ID",deprecated:!1,description:"Select a Slack channel by ID"},{name:"slack-installation-id",shorthand:null,type:String,argument:"INSTALLATION_ID",deprecated:!1,description:"Slack installation ID. Optional only when the team has exactly one completed Slack installation."}],criticalOnlyOption={name:"critical-only",shorthand:null,type:Boolean,deprecated:!1,description:"Notify only when Vercel Agent escalates an alert to Critical"},noCriticalOnlyOption={name:"no-critical-only",shorthand:null,type:Boolean,deprecated:!1,description:"Deliver every alert matched by the monitor"},monitorsNotificationsLsSubcommand={name:"ls",aliases:["list"],default:!0,description:"List notification destinations for all readable monitors or one monitor",arguments:[{name:"monitorId",required:!1}],options:[formatOption,jsonOption],examples:[{name:"List notification destinations for all readable monitors",value:`${packageName} monitors notifications ls`},{name:"List notification destinations for one monitor",value:`${packageName} monitors notifications ls ar_abc123`},{name:"Write JSON output",value:`${packageName} monitors notifications ar_abc123 --json`}]},monitorsNotificationsLinkSubcommand={name:"link",aliases:[],description:"Link a Slack channel or account webhook to a monitor",arguments:[{name:"monitorId",required:!0}],options:[...notificationTargetOptions,criticalOnlyOption,formatOption,jsonOption],examples:[{name:"Link a Slack channel",value:`${packageName} monitors notifications link ar_abc123 --slack-channel C123`},{name:"Link a Slack channel from a specific installation",value:`${packageName} monitors notifications link ar_abc123 --slack-channel C123 --slack-installation-id icfg_abc123`},{name:"Link a webhook",value:`${packageName} monitors notifications link ar_abc123 --webhook wh_abc123`},{name:"Link a Critical-only webhook",value:`${packageName} monitors notifications link ar_abc123 --webhook wh_abc123 --critical-only`}]},monitorsNotificationsUpdateSubcommand={name:"update",aliases:["patch"],description:"Update a notification destination's delivery setting",arguments:[{name:"monitorId",required:!0}],options:[...notificationTargetOptions,criticalOnlyOption,noCriticalOnlyOption,formatOption,jsonOption],examples:[{name:"Restrict a Slack channel to Critical alerts",value:`${packageName} monitors notifications update ar_abc123 --slack-channel C123 --critical-only`},{name:"Restore delivery for every alert matched by the monitor",value:`${packageName} monitors notifications update ar_abc123 --webhook wh_abc123 --no-critical-only`}]},monitorsNotificationsUnlinkSubcommand={name:"unlink",aliases:[],description:"Unlink a Slack channel or account webhook from a monitor",arguments:[{name:"monitorId",required:!0}],options:[...notificationTargetOptions,formatOption,jsonOption],examples:[{name:"Unlink a Slack channel",value:`${packageName} monitors notifications unlink ar_abc123 --slack-channel C123`},{name:"Unlink a webhook",value:`${packageName} monitors notifications unlink ar_abc123 --webhook wh_abc123`}]},monitorsNotificationsAggregateCommand={name:"notifications",aliases:[],description:"List and manage linked Slack and webhook destinations for monitors",arguments:[],subcommands:[monitorsNotificationsLsSubcommand,monitorsNotificationsLinkSubcommand,monitorsNotificationsUpdateSubcommand,monitorsNotificationsUnlinkSubcommand],options:[formatOption,jsonOption],examples:[{name:"List destinations for all readable monitors",value:`${packageName} monitors notifications`},{name:"List destinations for one monitor",value:`${packageName} monitors notifications ar_abc123`},{name:"Link Slack with the team's only installation",value:`${packageName} monitors notifications link ar_abc123 --slack-channel C123`}]},monitorsCommand={name:"monitors",aliases:[],description:"Add, inspect, list, update, and remove monitors, and manage their notification destinations",arguments:[],subcommands:[monitorsLsSubcommand,monitorsSchemaSubcommand,monitorsAddSubcommand,monitorsInspectSubcommand,monitorsRmSubcommand,monitorsUpdateSubcommand,monitorsNotificationsAggregateCommand],options:monitorsLsSubcommand.options,examples:[{name:"List monitors for the linked project",value:`${packageName} monitors ls`},{name:"Add a monitor",value:`${packageName} monitors add --project my-app --body ./rule.json`},{name:"Inspect a monitor",value:`${packageName} monitors inspect ar_abc123`},{name:"Update a monitor",value:`${packageName} monitors update ar_abc123 --body ./patch.json`},{name:"Remove a monitor",value:`${packageName} monitors remove ar_abc123`},{name:"List notification destinations for a monitor",value:`${packageName} monitors notifications ar_abc123`}]};export{monitorsLsSubcommand,monitorsSchemaSubcommand,monitorsAddSubcommand,monitorsInspectSubcommand,monitorsRmSubcommand,monitorsUpdateSubcommand,monitorsNotificationsLsSubcommand,monitorsNotificationsLinkSubcommand,monitorsNotificationsUpdateSubcommand,monitorsNotificationsUnlinkSubcommand,monitorsNotificationsAggregateCommand,monitorsCommand};
@@ -1,9 +0,0 @@
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
- import{__esm}from"./chunk-BZENIQ7N.js";import{createHash}from"crypto";import{mkdir,writeFile}from"fs/promises";import{join}from"path";function wait(ms){return new Promise(resolve=>setTimeout(resolve,ms))}function buildUserAgent(userAgentSuffix){return[`@vercel/prepare-flags-definitions/${version}`,userAgentSuffix].filter(Boolean).join(" ")}function obfuscate(sdkKey,prefixLength=18){return prefixLength>=sdkKey.length?sdkKey:sdkKey.slice(0,prefixLength)+"*".repeat(sdkKey.length-prefixLength)}function hashSdkKey(sdkKey){return createHash("sha256").update(sdkKey).digest("hex")}function getProjectIdFromOidcToken(oidcToken){let tokenParts=oidcToken.split(".");if(tokenParts.length!==3||!tokenParts[1])return;let payload=JSON.parse(Buffer.from(tokenParts[1],"base64url").toString("utf8"));if(!(typeof payload.project_id!="string"||!payload.project_id))return payload.project_id}function generateDefinitionConstants(lines,entries){let stringToConst=new Map;return entries.map(entry=>{let stringified=JSON.stringify(entry.definitions),definitionConst=stringToConst.get(stringified);return definitionConst||(definitionConst=`_d${stringToConst.size}`,stringToConst.set(stringified,definitionConst),lines.push(`const ${definitionConst} = memo(() => JSON.parse(${JSON.stringify(stringified)}));`)),{key:entry.key,value:definitionConst}})}function generateMap(lines,entries){lines.push(""),lines.push("const map = {");for(let entry of entries)lines.push(` ${JSON.stringify(entry.key)}: ${entry.value},`);lines.push("};"),lines.push(""),lines.push("export function get(key) {"),lines.push(" return map[key]?.() ?? null;"),lines.push("}")}function isRetryableStatus(status){return status===429||status>=500}async function fetchDatafile(token,env,fetchFn,userAgentSuffix,output,sourceProjectId){let headers={authorization:`Bearer ${token}`,"user-agent":buildUserAgent(userAgentSuffix)};sourceProjectId&&(headers["x-vercel-flags-project-id"]=sourceProjectId);let label=sourceProjectId?`project ${sourceProjectId}`:obfuscate(token);env.VERCEL_PROJECT_ID&&(headers["x-vercel-project-id"]=env.VERCEL_PROJECT_ID),env.VERCEL_ENV&&(headers["x-vercel-env"]=env.VERCEL_ENV),env.VERCEL_DEPLOYMENT_ID&&(headers["x-vercel-deployment-id"]=env.VERCEL_DEPLOYMENT_ID),env.VERCEL_REGION&&(headers["x-vercel-region"]=env.VERCEL_REGION);let lastError;for(let attempt=0;attempt<=FETCH_MAX_RETRIES;attempt++){if(attempt>0){let delay=FETCH_RETRY_BASE_DELAY_MS*2**(attempt-1);output?.debug(`vercel-flags: retrying datafile fetch for ${label} (attempt ${attempt}/${FETCH_MAX_RETRIES}) after ${delay}ms`),await wait(delay)}let res;try{res=await fetchFn(`${FLAGS_HOST}/v1/datafile`,{headers})}catch(error2){lastError=error2;continue}if(res.ok)return{...await res.json(),fetchedAt:Date.now()};if(res.status===404)return;let error=new Error(`Failed to fetch flag definitions for ${label}: ${res.status} ${res.statusText}`);if(!isRetryableStatus(res.status))throw error;lastError=error}throw lastError instanceof Error?lastError:new Error(`Failed to fetch flag definitions for ${label} after ${FETCH_MAX_RETRIES} retries`)}function generateDefinitionsModule(entries,output){output?.debug(`vercel-flags: writing flag definitions for "${entries.map(({key})=>obfuscate(key)).join(", ")}"`);let lines=["const memo = (fn) => { let cached; return () => (cached ??= fn()); };",""],generatedDefinitions=generateDefinitionConstants(lines,entries);return generateMap(lines,generatedDefinitions),lines.push("",`export const version = ${JSON.stringify(FLAGS_DEFINITIONS_VERSION)};`),lines.join(`
8
- `)}async function fetchConnectedSourceProjectIds(oidcToken,fetchFn,userAgentSuffix,output){try{let res=await fetchFn(`${API_HOST}${CONNECTED_SOURCES_PATH}`,{headers:{authorization:`Bearer ${oidcToken}`,"user-agent":buildUserAgent(userAgentSuffix)},signal:AbortSignal.timeout(CONNECTED_SOURCES_TIMEOUT_MS)});if(!res.ok)return output?.debug(`vercel-flags: could not list connected projects (${res.status})`),[];let body=await res.json();return(Array.isArray(body.data)?body.data:[]).map(c=>c.sourceProjectId).filter(id=>typeof id=="string"&&PROJECT_ID_REGEX.test(id))}catch(error){return output?.debug(`vercel-flags: could not list connected projects (${error instanceof Error?error.message:String(error)})`),[]}}async function fetchSourceProjectDatafile(entry,env,fetchFn,userAgentSuffix,output){try{return await fetchDatafile(entry.key,env,fetchFn,userAgentSuffix,output,entry.projectId)}catch(error){output?.debug(`vercel-flags: skipping connected project ${entry.projectId} (${error instanceof Error?error.message:String(error)})`);return}}async function collectFlagEntries(env,fetchFn,userAgentSuffix,output){let entries=[],sdkKeys=new Set;for(let value of Object.values(env))if(typeof value=="string"){if(SDK_KEY_REGEX.test(value))sdkKeys.add(value);else if(value.startsWith("flags:")){let sdkKey=new URLSearchParams(value.slice(6)).get("sdkKey");sdkKey&&SDK_KEY_REGEX.test(sdkKey)&&sdkKeys.add(sdkKey)}}if(sdkKeys.size>0){output?.debug(`vercel-flags: found ${sdkKeys.size} SDK keys`);for(let key of Array.from(sdkKeys))entries.push({type:"sdkKey",key})}let oidcToken=env.VERCEL_OIDC_TOKEN;if(oidcToken&&oidcToken?.length>0){output?.debug("vercel-flags: found OIDC token"),entries.push({type:"oidcToken",key:oidcToken});let ownProjectId=getProjectIdFromOidcToken(oidcToken),sourceProjectIds=new Set(await fetchConnectedSourceProjectIds(oidcToken,fetchFn,userAgentSuffix,output));ownProjectId&&sourceProjectIds.delete(ownProjectId);for(let projectId of Array.from(sourceProjectIds))entries.push({type:"sourceProject",key:oidcToken,projectId});sourceProjectIds.size>0&&output?.debug(`vercel-flags: found ${sourceProjectIds.size} connected projects`)}return entries}async function prepareFlagsDefinitions(options){let{cwd,env,userAgentSuffix,fetch:fetchFn=globalThis.fetch,output}=options;output?.debug("vercel-flags: checking env vars for SDK Keys and OIDC Token");let entries=await collectFlagEntries(env,fetchFn,userAgentSuffix,output);if(entries.length===0)return{created:!1,reason:"no-flags-entries"};let validEntries=(await Promise.all(entries.map(async entry=>{if(entry.type==="sourceProject"){let definitions2=await fetchSourceProjectDatafile(entry,env,fetchFn,userAgentSuffix,output);return definitions2?{key:entry.projectId,definitions:definitions2}:void 0}let definitions=await fetchDatafile(entry.key,env,fetchFn,userAgentSuffix,output);if(definitions){if(entry.type==="oidcToken"){let projectId=getProjectIdFromOidcToken(entry.key);if(projectId)return{key:projectId,definitions}}if(entry.type==="sdkKey")return{key:hashSdkKey(entry.key),definitions}}}))).filter(entry=>!!entry),definitionsJs=generateDefinitionsModule(validEntries,output),storageDir=join(cwd,"node_modules","@vercel","flags-definitions"),indexPath=join(storageDir,"index.js"),dtsPath=join(storageDir,"index.d.ts"),packageJsonPath=join(storageDir,"package.json"),dts=["export function get(key: string): Record<string, unknown> | null;","export const version: string;",""].join(`
9
- `),packageJson={name:"@vercel/flags-definitions",version:FLAGS_DEFINITIONS_VERSION,type:"module",main:"./index.js",types:"./index.d.ts",exports:{".":{types:"./index.d.ts",import:"./index.js"}}};return await mkdir(storageDir,{recursive:!0}),await Promise.all([writeFile(indexPath,definitionsJs),writeFile(dtsPath,dts),writeFile(packageJsonPath,JSON.stringify(packageJson,null,2))]),output?.debug("vercel-flags: created module"),output?.debug(` \u2192 ${indexPath}`),output?.debug(` \u2192 ${dtsPath}`),output?.debug(` \u2192 ${packageJsonPath}`),{created:!0,entryCount:entries.length}}var version,FLAGS_HOST,API_HOST,CONNECTED_SOURCES_PATH,FLAGS_DEFINITIONS_VERSION,FETCH_MAX_RETRIES,FETCH_RETRY_BASE_DELAY_MS,CONNECTED_SOURCES_TIMEOUT_MS,SDK_KEY_REGEX,PROJECT_ID_REGEX,init_dist=__esm({"../../node_modules/.pnpm/@vercel+prepare-flags-definitions@0.6.1/node_modules/@vercel/prepare-flags-definitions/dist/index.js"(){version="0.6.1",FLAGS_HOST="https://flags.vercel.com",API_HOST="https://api.vercel.com",CONNECTED_SOURCES_PATH="/v1/feature-flags/connections/sources",FLAGS_DEFINITIONS_VERSION="1.0.1",FETCH_MAX_RETRIES=3,FETCH_RETRY_BASE_DELAY_MS=200,CONNECTED_SOURCES_TIMEOUT_MS=5e3;SDK_KEY_REGEX=/^vf_(?:server|client)_/,PROJECT_ID_REGEX=/^[A-Za-z0-9_]{1,64}$/}});export{hashSdkKey,getProjectIdFromOidcToken,generateDefinitionsModule,prepareFlagsDefinitions,init_dist};
@@ -1,12 +0,0 @@
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
- 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}
8
-
9
- `+(createCommand?`To create it${createNote?`, ${createNote}`:""}:
10
- ${createCommand.command}
11
-
12
- `:"")+"If it lives in a different team or account:\n \u2022 Retry with `--scope <team-slug|your-username>`, or\n \u2022 Run `vercel switch <team-slug|your-username>` to change scope.\n\nList accessible teams with `vercel teams ls`."),!shouldEmitNonInteractiveCommandError(client))return;let commandArgs=Array.isArray(commandName)?commandName:commandName.split(/\s+/).filter(Boolean),retryTemplate=[...Array.isArray(commandName)?commandArgs.map(quoteArg):commandArgs,"--project",quoteArg(projectNameOrId),"--scope","<team-slug>"].join(" "),retryWithScope=buildCommandWithGlobalFlags(client.argv,retryTemplate),retryArgv=[packageName,...commandArgs,"--project",projectNameOrId,"--scope","<team-slug>",...getPreservedGlobalFlags(client.argv,retryTemplate)];outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:AGENT_REASON.PROJECT_NOT_FOUND,message:`${headline}${suggestionLine}${createCommand?` To create it, retry with --create-if-missing${createNote?`, and ${createNote}`:""}.`:""} If it lives in a different team or account, retry with --scope <team-slug|your-username> or run \`vercel switch <team-slug|your-username>\` to change scope.`,...contextName?{scope:contextName}:{},...suggestion?{data:{suggestion}}:{},next:[...createCommand?[{command:createCommand.command,when:`create the project${createNote?`; ${createNote}`:""}`}]:[],{command:"vercel teams ls",when:"list accessible teams"},{command:retryWithScope,argv:retryArgv,when:"retry with a specific team"},{command:"vercel switch <team-slug>",when:"change the default scope"}]},1)}export{printProjectNotFoundError};
@@ -1,7 +0,0 @@
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
- import{BETA_COMMANDS,helpCommandNames}from"./chunk-5727HGA6.js";var ROOT_HELP_GROUPS={"Deploy and Develop":["deploy","build","dev","init","templates","inspect","list","promote","redeploy","rollback","remove","rolling-release","bisect","ci","curl","httpstat"],"Projects and Configuration":["project","link","open","pull","env","git","cache","target","environments","flags","microfrontends","deploy-hooks"],"Domains and Traffic":["domains","dns","alias","certs","redirects","routes"],"Data and Compute":["storage","blob","drives","global-config","sandbox","vcr","daemons","crons","schedules","ai-gateway"],"Operations and Security":["activity","health","agent-runs","alerts","monitors","comments","logs","drains","metrics","traces","security","firewall","kms","webhooks"],"Account and Billing":["login","logout","signup","switch","teams","organizations","tokens","whoami","billing","buy","pricing"],"CLI and Integrations":["help","doctor","feedback","api","install","integration","integration-resource","connect","agent","mcp","setup","skills","changelog","docs","kb","telemetry","upgrade","version","token-pass"]};function commandGroup(name,fallback="CLI and Integrations"){return Object.entries(ROOT_HELP_GROUPS).find(([,names])=>names.includes(name))?.[0]??fallback}var DEPRECATED_COMMANDS=new Set(["integration-resource"]),DEFAULT_COMMAND="deploy",HELP_COMMAND_DESCRIPTION="Show help for a command, or find a command by task",HELP_ROW={names:["help"],description:HELP_COMMAND_DESCRIPTION,group:commandGroup("help"),default:!1};function summarize(description){let firstLine=description.trim().split(/\n\s*\n/)[0].replace(/\s*\n\s*/g," "),abbreviations=new Set(["e.g.","i.e.","vs.","etc."]),sentenceEnd=[...firstLine.matchAll(/[^.]\.(\s|$)/g)].find(match=>{let prefix=firstLine.slice(0,match.index+2);return!abbreviations.has((prefix.split(/\s/).at(-1)??"").replace(/^[^a-z]+/i,""))});return(sentenceEnd?firstLine.slice(0,sentenceEnd.index+1):firstLine).replace(/\.$/,"")}function isListedRootCommand(command){return"description"in command&&!command.hidden&&!DEPRECATED_COMMANDS.has(command.name)}function getRootHelpCommands(commands){let rows=[HELP_ROW];for(let command of commands){if(!isListedRootCommand(command)||command.name==="help")continue;let names=helpCommandNames(command),description=command.summary?command.summary.replace(/\.$/,""):summarize(command.description);BETA_COMMANDS.has(command.name)&&(description+=" [beta]"),rows.push({names,description,group:commandGroup(command.name),default:command.name===DEFAULT_COMMAND});for(let alias of command.aliases){let subcommand=command.subcommands?.find(candidate=>candidate.name===alias&&!candidate.hidden);subcommand&&rows.push({names:[alias],description:subcommand.summary?subcommand.summary.replace(/\.$/,""):summarize(subcommand.description),group:commandGroup(alias,commandGroup(command.name)),default:!1})}}return rows.sort((a,b)=>{if(a.default!==b.default)return a.default?-1:1;let aName=a.names[a.names.length-1],bName=b.names[b.names.length-1];return aName<bName?-1:aName>bName?1:0})}export{ROOT_HELP_GROUPS,HELP_COMMAND_DESCRIPTION,summarize,isListedRootCommand,getRootHelpCommands};
@@ -1,7 +0,0 @@
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
- import{getGlobalPathConfig}from"./chunk-ZRFDZO7Y.js";import{output_manager_default}from"./chunk-RYSO5U3E.js";var OPENAPI_URL="https://openapi.vercel.sh/",CACHE_FILE="openapi-spec.json",CACHE_TTL_MS=864e5,FETCH_TIMEOUT_MS=1e4,MAX_OPENAPI_SPEC_BYTES=52428800,VERCEL_CLI_ROOT_DISPLAY_KEY="__root__";async function readSpecResponse(response,url,maxBytes=52428800){let contentLength=response.headers.get("content-length");if(contentLength){let bytes=Number(contentLength);if(Number.isFinite(bytes)&&bytes>maxBytes)throw new Error(`OpenAPI spec from ${url} exceeds the ${maxBytes} byte limit.`)}if(!response.body)throw new Error(`OpenAPI spec from ${url} returned an empty response.`);let reader=response.body.getReader(),chunks=[],totalBytes=0;for(;;){let{done,value}=await reader.read();if(done)break;if(value){if(totalBytes+=value.byteLength,totalBytes>maxBytes)throw await reader.cancel(),new Error(`OpenAPI spec from ${url} exceeds the ${maxBytes} byte limit.`);chunks.push(value)}}let buffer=new Uint8Array(totalBytes),offset=0;for(let chunk of chunks)buffer.set(chunk,offset),offset+=chunk.byteLength;return JSON.parse(new TextDecoder().decode(buffer))}import{join}from"path";import{readFile,writeFile,mkdir}from"fs/promises";var OpenApiCache=class{constructor(){this.spec=null;this.cachePath=join(getGlobalPathConfig(),CACHE_FILE)}get isLoaded(){return this.spec!==null}async load(forceRefresh=!1){return this.loadSpec(forceRefresh)}async loadSpec(forceRefresh=!1){if(!forceRefresh){let cached=await this.readCache(this.cachePath);if(cached&&!this.isExpired(cached.fetchedAt))return output_manager_default.debug("Using cached OpenAPI spec"),this.spec=cached.spec,!0}try{return output_manager_default.debug("Fetching OpenAPI spec from "+OPENAPI_URL),this.spec=await this.fetchSpec(OPENAPI_URL),await this.saveCache(this.cachePath,this.spec),!0}catch(err){output_manager_default.debug(`Failed to fetch OpenAPI spec: ${err}`);let stale=await this.readCache(this.cachePath);return stale?(output_manager_default.debug("Using stale cached OpenAPI spec"),this.spec=stale.spec,!0):!1}}async loadWithSpinner(forceRefresh=!1){output_manager_default.spinner(forceRefresh?"Refreshing API endpoints...":"Loading API endpoints...");let success=await this.load(forceRefresh);return output_manager_default.stopSpinner(),success}getEndpoints(){this.ensureLoaded();let endpoints=this.extractEndpoints();return this.sortEndpoints(endpoints)}getBodyFields(endpoint){if(this.ensureLoaded(),!endpoint.requestBody?.content)return[];let jsonContent=endpoint.requestBody.content["application/json"];if(!jsonContent?.schema)return[];let schema=this.resolveSchemaRef(jsonContent.schema);if(!schema?.properties)return[];let requiredFields=new Set(schema.required||[]),fields=[];for(let[name,propSchema]of Object.entries(schema.properties)){let resolvedProp=this.resolveSchemaRef(propSchema),enumValues=resolvedProp?.enum||propSchema.enum;if(!enumValues&&(resolvedProp?.type==="array"||propSchema.type==="array")){let items=resolvedProp?.items||propSchema.items;items&&(enumValues=this.resolveSchemaRef(items)?.enum||items.enum)}fields.push({name,required:requiredFields.has(name),description:resolvedProp?.description||propSchema.description,type:resolvedProp?.type||propSchema.type,enumValues})}return fields.sort((a,b)=>a.required!==b.required?a.required?-1:1:a.name.localeCompare(b.name)),fields}getDisplayColumns(endpoint){this.ensureLoaded();let pathItem=this.spec.paths[endpoint.path];if(!pathItem)return null;let operation=pathItem[endpoint.method.toLowerCase()];if(!operation?.responses)return null;let ok=operation.responses[200]||operation.responses[201];if(!ok)return null;let jsonContent=ok.content?.["application/json"];return jsonContent?.schema?this.findDisplayColumns(jsonContent.schema):null}findDisplayColumns(schema){let xCli=schema["x-vercel-cli"];if(xCli?.displayColumns)return xCli.displayColumns;for(let key of["oneOf","allOf","anyOf"]){let variants=schema[key];if(variants)for(let sub of variants){let found=this.findDisplayColumns(sub);if(found)return found}}return null}ensureLoaded(){if(!this.spec)throw new Error("OpenAPI spec not loaded. Call load() or loadWithSpinner() first.")}async readCache(cachePath){try{let content=await readFile(cachePath,"utf-8"),cached=JSON.parse(content);return this.validateSpec(cached.spec,cachePath),cached}catch{return null}}async saveCache(cachePath,spec){let cached={fetchedAt:Date.now(),spec},dir=join(cachePath,"..");await mkdir(dir,{recursive:!0}),await writeFile(cachePath,JSON.stringify(cached)),output_manager_default.debug("Saved OpenAPI spec to cache")}async fetchSpec(url){let controller=new AbortController,timeoutId=setTimeout(()=>controller.abort(),1e4);try{let response=await fetch(url,{signal:controller.signal});if(!response.ok)throw new Error(`Failed to fetch OpenAPI spec: ${response.status}`);let spec=await readSpecResponse(response,url);return this.validateSpec(spec,url),spec}finally{clearTimeout(timeoutId)}}validateSpec(spec,url){if(!spec||typeof spec!="object")throw new Error(`Invalid OpenAPI spec from ${url}: expected a JSON object.`);if(typeof spec.openapi!="string"||!spec.openapi.startsWith("3."))throw new Error(`Invalid OpenAPI spec from ${url}: expected an OpenAPI 3.x document with an "openapi" field.`);if(!spec.paths||typeof spec.paths!="object")throw new Error(`Invalid OpenAPI spec from ${url}: expected a "paths" object.`);for(let path of Object.keys(spec.paths))if(!path.startsWith("/")||path.startsWith("//"))throw new Error(`Invalid OpenAPI spec from ${url}: path "${path}" must be a relative API path.`)}isExpired(fetchedAt){return Date.now()-fetchedAt>864e5}sortEndpoints(endpoints){return endpoints.sort((a,b)=>{let pathCompare=a.path.localeCompare(b.path);return pathCompare!==0?pathCompare:a.method.localeCompare(b.method)})}extractEndpoints(){let endpoints=[];for(let[path,pathItem]of Object.entries(this.spec.paths)){let methods=["get","post","put","patch","delete"];for(let method of methods){let operation=pathItem[method];if(operation){let pathParams=pathItem.parameters||[],opParams=operation.parameters||[],allParams=[...pathParams,...opParams];endpoints.push({path,method:method.toUpperCase(),summary:operation.summary||pathItem.summary||"",description:operation.description||pathItem.description||"",operationId:operation.operationId||"",tags:operation.tags||[],parameters:allParams,requestBody:operation.requestBody})}}}return endpoints}resolveSchemaRef(schema,spec=this.spec){if(schema){if(schema.$ref){let match=schema.$ref.match(/^#\/components\/schemas\/(.+)$/);if(match&&spec.components?.schemas){let resolved=spec.components.schemas[match[1]];return this.resolveSchemaRef(resolved,spec)}return}if(schema.allOf&&schema.allOf.length>0){let merged={type:"object",properties:{},required:[]};for(let subSchema of schema.allOf){let resolved=this.resolveSchemaRef(subSchema,spec);resolved&&(resolved.properties&&(merged.properties={...merged.properties,...resolved.properties}),resolved.required&&(merged.required=[...merged.required||[],...resolved.required]))}return merged}return schema}}};async function matchesCliApiTag(tagHint){if(!tagHint||tagHint.startsWith("-")||tagHint.includes("/"))return!1;let cache=new OpenApiCache;if(!await cache.load())return!1;let endpoints=cache.getEndpoints(),lower=tagHint.toLowerCase();return endpoints.some(ep=>ep.tags.some(t=>t.toLowerCase()===lower))}async function resolveOpenApiTagForProjectsCli(){return await matchesCliApiTag("projects")?"projects":await matchesCliApiTag("project")?"project":null}async function resolveOpenApiTagForTeamsCli(){return await matchesCliApiTag("teams")?"teams":await matchesCliApiTag("team")?"team":null}export{OPENAPI_URL,CACHE_FILE,CACHE_TTL_MS,FETCH_TIMEOUT_MS,MAX_OPENAPI_SPEC_BYTES,VERCEL_CLI_ROOT_DISPLAY_KEY,readSpecResponse,OpenApiCache,matchesCliApiTag,resolveOpenApiTagForProjectsCli,resolveOpenApiTagForTeamsCli};