@vercel/cli-support 66.6.0 → 67.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (399) hide show
  1. package/dist/chunks/add-PULH4LLG.js +8 -0
  2. package/dist/chunks/add-SWKAAP2V.js +8 -0
  3. package/dist/chunks/add-U3ILHW5T.js +8 -0
  4. package/dist/chunks/{alerts-72Q42HNT.js → alerts-GXY7LZWX.js} +1 -1
  5. package/dist/chunks/build-UNR3B22D.js +7 -0
  6. package/dist/chunks/{chunk-ZZD5W5KT.js → chunk-23FY4PR3.js} +1 -1
  7. package/dist/chunks/{chunk-YTRKHRL3.js → chunk-27FVSW45.js} +1 -1
  8. package/dist/chunks/chunk-2BI5SSHB.js +7 -0
  9. package/dist/chunks/{chunk-IIK6GUVI.js → chunk-2BK7SZQA.js} +1 -1
  10. package/dist/chunks/{chunk-WJX5PGNN.js → chunk-2DH6LTUI.js} +1 -1
  11. package/dist/chunks/{chunk-7AVHDJSP.js → chunk-2KXLL3DX.js} +4 -4
  12. package/dist/chunks/{chunk-DZ77BIEV.js → chunk-2OMMOXFL.js} +1 -1
  13. package/dist/chunks/{chunk-6PDKIOAO.js → chunk-2TJQY7PH.js} +1 -1
  14. package/dist/chunks/{chunk-DJZBJC2A.js → chunk-3AFEVHHY.js} +1 -1
  15. package/dist/chunks/{chunk-YOAQNRBN.js → chunk-3C6BMAGB.js} +2 -2
  16. package/dist/chunks/{chunk-Q66LJNIV.js → chunk-3RFQ2NXZ.js} +1 -1
  17. package/dist/chunks/{chunk-F4UEGELU.js → chunk-3VNS4D7V.js} +1 -1
  18. package/dist/chunks/{chunk-QZJOKECY.js → chunk-4GYDXPNC.js} +2 -2
  19. package/dist/chunks/{chunk-H2KNSYPR.js → chunk-55FPQ5MM.js} +1 -1
  20. package/dist/chunks/{chunk-RBW62SOU.js → chunk-55WV4RRW.js} +1 -1
  21. package/dist/chunks/{chunk-5KSBRQI2.js → chunk-5727HGA6.js} +1 -1
  22. package/dist/chunks/{chunk-D2TVI7KK.js → chunk-5CFLIIMP.js} +4 -4
  23. package/dist/chunks/chunk-5DHOC47O.js +13 -0
  24. package/dist/chunks/{chunk-CSCUVSJM.js → chunk-5GKIRBHJ.js} +1 -1
  25. package/dist/chunks/{chunk-YLLFLPNA.js → chunk-5QMXW5KS.js} +1 -1
  26. package/dist/chunks/{chunk-UUBPAYTG.js → chunk-5RMIM4S2.js} +1 -1
  27. package/dist/chunks/{chunk-NLK7NGVP.js → chunk-5ZL2RRO3.js} +1 -1
  28. package/dist/chunks/chunk-67GZ5REA.js +7 -0
  29. package/dist/chunks/chunk-6D44CCJA.js +23 -0
  30. package/dist/chunks/{chunk-VHSAI6FS.js → chunk-6FEMU5YF.js} +1 -1
  31. package/dist/chunks/{chunk-UDZJCD5W.js → chunk-6KNWKZR4.js} +1 -1
  32. package/dist/chunks/{chunk-ZKNEIE44.js → chunk-6NC2JFUQ.js} +1 -1
  33. package/dist/chunks/{chunk-SYVWRGFQ.js → chunk-6UWBCYEW.js} +1 -1
  34. package/dist/chunks/{chunk-X7KKWUPS.js → chunk-6WBEU34Y.js} +1 -1
  35. package/dist/chunks/{chunk-NBTFAXL4.js → chunk-6Z5REGCM.js} +1 -1
  36. package/dist/chunks/chunk-742MHFPK.js +31 -0
  37. package/dist/chunks/chunk-7HQZRU25.js +10 -0
  38. package/dist/chunks/{chunk-QZKRVE44.js → chunk-7J7SOUFS.js} +1 -1
  39. package/dist/chunks/{chunk-XECELSF5.js → chunk-7JU5RJ3H.js} +1 -1
  40. package/dist/chunks/{chunk-UQZZX2J7.js → chunk-7OZ7OKPS.js} +1 -1
  41. package/dist/chunks/{chunk-PFOOPXTN.js → chunk-7RABG6HV.js} +2 -2
  42. package/dist/chunks/{chunk-OISNKAC6.js → chunk-7W4GWVUP.js} +2 -2
  43. package/dist/chunks/{chunk-AMH5MXDW.js → chunk-7WDSOKOY.js} +1 -1
  44. package/dist/chunks/{chunk-ELM2KPYX.js → chunk-A4LOQ3UK.js} +1 -1
  45. package/dist/chunks/{chunk-SYJXONEV.js → chunk-A6CMQOL7.js} +1 -1
  46. package/dist/chunks/{chunk-6GE4V7MW.js → chunk-ANT2GN7F.js} +2 -2
  47. package/dist/chunks/{chunk-YEUIG3JC.js → chunk-AZVSMIPP.js} +1 -1
  48. package/dist/chunks/{chunk-Y77DXGGN.js → chunk-B6YVE4WJ.js} +1 -1
  49. package/dist/chunks/chunk-B7IB5CTS.js +7 -0
  50. package/dist/chunks/{chunk-XLYO5QNG.js → chunk-B7IUFV5P.js} +2 -2
  51. package/dist/chunks/{chunk-YIOMTAUF.js → chunk-BKFRN6C2.js} +1 -1
  52. package/dist/chunks/chunk-BS32OUOC.js +7 -0
  53. package/dist/chunks/{chunk-YJNMDXEG.js → chunk-BUBVZ6SQ.js} +1 -1
  54. package/dist/chunks/{chunk-VZ4URN3U.js → chunk-BYBELFCP.js} +1 -1
  55. package/dist/chunks/{chunk-B7GCRM5I.js → chunk-BYYNR34Q.js} +1 -1
  56. package/dist/chunks/{chunk-FOFX7LHS.js → chunk-C3KNFAVK.js} +1 -1
  57. package/dist/chunks/{chunk-OE26EQSH.js → chunk-C7TNFTTK.js} +1 -1
  58. package/dist/chunks/{chunk-5TMHRECT.js → chunk-CAJ2OUSR.js} +1 -1
  59. package/dist/chunks/chunk-CDJ25IKC.js +7 -0
  60. package/dist/chunks/chunk-CO5LKOMH.js +7 -0
  61. package/dist/chunks/{chunk-REJLEESP.js → chunk-CTMTO2W4.js} +1 -1
  62. package/dist/chunks/{chunk-K3MGQQEP.js → chunk-D5JQZXL7.js} +1 -1
  63. package/dist/chunks/{chunk-LM3YPF3K.js → chunk-DOOBZO4W.js} +1 -1
  64. package/dist/chunks/chunk-DORCX7UB.js +7 -0
  65. package/dist/chunks/{chunk-XDYVJWGX.js → chunk-E5A7E7X6.js} +1 -1
  66. package/dist/chunks/{chunk-GLCSWIB4.js → chunk-E7IN2DGU.js} +1 -1
  67. package/dist/chunks/{chunk-N6JHFCWC.js → chunk-EM4OX47A.js} +1 -1
  68. package/dist/chunks/{chunk-VPSR2O55.js → chunk-EOUT7E7U.js} +3 -3
  69. package/dist/chunks/chunk-EYRBV6RM.js +25 -0
  70. package/dist/chunks/{chunk-AKOYIH3A.js → chunk-F4KY2TOK.js} +1 -1
  71. package/dist/chunks/{chunk-TSNRTRIM.js → chunk-FB37TFVF.js} +1 -1
  72. package/dist/chunks/chunk-FFHV7BRT.js +7 -0
  73. package/dist/chunks/{chunk-ACN6DBTC.js → chunk-FHUDTYY7.js} +1 -1
  74. package/dist/chunks/{chunk-T7GKQYWA.js → chunk-FXLZM6Q7.js} +1 -1
  75. package/dist/chunks/{chunk-RVIJRFVD.js → chunk-G24EKATW.js} +1 -1
  76. package/dist/chunks/{chunk-3A3GU62R.js → chunk-G2CDEA2E.js} +1 -1
  77. package/dist/chunks/chunk-GQXKF3PR.js +7 -0
  78. package/dist/chunks/{chunk-KSGN5OCV.js → chunk-GT3JH2FU.js} +1 -1
  79. package/dist/chunks/{chunk-FFN3EGSF.js → chunk-GWYQXFBP.js} +1 -1
  80. package/dist/chunks/{chunk-BCAI7MED.js → chunk-H75TYZ4K.js} +1 -1
  81. package/dist/chunks/{chunk-W2L24GM7.js → chunk-HT445TYO.js} +1 -1
  82. package/dist/chunks/{chunk-DOMBKOLJ.js → chunk-HZRU7VS6.js} +1 -1
  83. package/dist/chunks/{chunk-TOTTVS5P.js → chunk-ID663OJ7.js} +1 -1
  84. package/dist/chunks/{chunk-ZA5O22ZY.js → chunk-IGJBSAFY.js} +1 -1
  85. package/dist/chunks/{chunk-CINNNQDJ.js → chunk-INIZJZ3O.js} +1 -1
  86. package/dist/chunks/chunk-IPORRCTF.js +12 -0
  87. package/dist/chunks/{chunk-LNZEYUEC.js → chunk-IVZNPSHU.js} +1 -1
  88. package/dist/chunks/{chunk-6CJFPT4F.js → chunk-JDDPCL3K.js} +1 -1
  89. package/dist/chunks/{chunk-R33HJGYA.js → chunk-JYGOOFIW.js} +1 -1
  90. package/dist/chunks/{chunk-FEJD7MRH.js → chunk-KA2KG3SY.js} +1 -1
  91. package/dist/chunks/{chunk-JBYROCAC.js → chunk-KC5BRLPR.js} +1 -1
  92. package/dist/chunks/{table-W6LOHWWF.js → chunk-KG526MHL.js} +1 -1
  93. package/dist/chunks/{chunk-QGHAD5A5.js → chunk-KHDRQS6I.js} +1 -1
  94. package/dist/chunks/{chunk-L5PIUIUM.js → chunk-KJUFWRZP.js} +1 -1
  95. package/dist/chunks/chunk-L3DJOYTO.js +11 -0
  96. package/dist/chunks/{chunk-54FY6GJ5.js → chunk-L46V6VL3.js} +1 -1
  97. package/dist/chunks/{chunk-ANIA2G6F.js → chunk-LDDXXDN5.js} +1 -1
  98. package/dist/chunks/{chunk-2AU6O6Z5.js → chunk-LIQLOS7B.js} +1 -1
  99. package/dist/chunks/chunk-LYQECLRR.js +10 -0
  100. package/dist/chunks/{chunk-M7FED5YP.js → chunk-M2Q2DUHO.js} +1 -1
  101. package/dist/chunks/{chunk-5ZCSFPWG.js → chunk-MDRI27KN.js} +1 -1
  102. package/dist/chunks/{chunk-GUGP6OY2.js → chunk-ME52HBX7.js} +1 -1
  103. package/dist/chunks/{chunk-XAGG5BJT.js → chunk-MFOBJA6M.js} +1 -1
  104. package/dist/chunks/{chunk-GHNHUSVK.js → chunk-MMMJO2M3.js} +1 -1
  105. package/dist/chunks/chunk-MNDFF42B.js +30 -0
  106. package/dist/chunks/{chunk-AFHZC47H.js → chunk-MPOK5ZI5.js} +1 -1
  107. package/dist/chunks/{chunk-WAFBTC45.js → chunk-N3IQO5HN.js} +1 -1
  108. package/dist/chunks/{chunk-2G2SALNN.js → chunk-NBRW54IL.js} +1 -1
  109. package/dist/chunks/chunk-NJFXR3FN.js +77 -0
  110. package/dist/chunks/chunk-NMY2YZ6M.js +8 -0
  111. package/dist/chunks/chunk-NTSJNYRU.js +11 -0
  112. package/dist/chunks/{chunk-EFP3LK4G.js → chunk-OBBFWQJ3.js} +1 -1
  113. package/dist/chunks/{chunk-SQCVI2EG.js → chunk-OOAIU7WR.js} +1 -1
  114. package/dist/chunks/{chunk-ZJNDLFZ7.js → chunk-OOPF73RV.js} +1 -1
  115. package/dist/chunks/{chunk-YRKW42CD.js → chunk-OQXHBPPS.js} +1 -1
  116. package/dist/chunks/chunk-PHK4OYIZ.js +8 -0
  117. package/dist/chunks/{chunk-IF6GA273.js → chunk-PKCEKIQP.js} +1 -1
  118. package/dist/chunks/{chunk-33HVDSWP.js → chunk-PYHNDBNH.js} +1 -1
  119. package/dist/chunks/chunk-QFE3RPMA.js +19 -0
  120. package/dist/chunks/{chunk-S4AANAHX.js → chunk-QKK5BAZO.js} +1 -1
  121. package/dist/chunks/{chunk-RDDIWY3O.js → chunk-QPX6N5CV.js} +3 -3
  122. package/dist/chunks/{chunk-3UZE566G.js → chunk-QSL6AG2B.js} +1 -1
  123. package/dist/chunks/{chunk-BDXK4TCN.js → chunk-RHFNVIFD.js} +1 -1
  124. package/dist/chunks/chunk-RNHPL4C7.js +13 -0
  125. package/dist/chunks/chunk-RPYIWRSN.js +7 -0
  126. package/dist/chunks/{chunk-AP6DZGTK.js → chunk-RYSO5U3E.js} +1 -1
  127. package/dist/chunks/{chunk-2OMI3IUW.js → chunk-S6QZTDZ3.js} +1 -1
  128. package/dist/chunks/{chunk-5O4AXCN7.js → chunk-SGFMVYFR.js} +1 -1
  129. package/dist/chunks/chunk-SGNDE4YS.js +7 -0
  130. package/dist/chunks/{chunk-GLIQ4KNY.js → chunk-SQ62IODX.js} +1 -1
  131. package/dist/chunks/{chunk-PIDEH4SJ.js → chunk-T44RB754.js} +1 -1
  132. package/dist/chunks/{chunk-DHKWTBF6.js → chunk-T4DOV5S4.js} +1 -1
  133. package/dist/chunks/{chunk-TNQUCTJH.js → chunk-THMCHMVZ.js} +1 -1
  134. package/dist/chunks/{chunk-TJUZVODP.js → chunk-TLKBGAOL.js} +1 -1
  135. package/dist/chunks/{chunk-E4VPDMRQ.js → chunk-TRDAU3LX.js} +1 -1
  136. package/dist/chunks/chunk-TVTGVWCV.js +8 -0
  137. package/dist/chunks/{chunk-CJZE7647.js → chunk-U5SZQUYO.js} +1 -1
  138. package/dist/chunks/chunk-UEFDCTG6.js +7 -0
  139. package/dist/chunks/{chunk-OXS5VO4X.js → chunk-URJT7V4L.js} +1 -1
  140. package/dist/chunks/chunk-UT3HLSJV.js +8 -0
  141. package/dist/chunks/chunk-V5TIFXUP.js +15 -0
  142. package/dist/chunks/chunk-VGSSSQFT.js +7 -0
  143. package/dist/chunks/{chunk-OF32Z3UP.js → chunk-VT7UAUY6.js} +1 -1
  144. package/dist/chunks/{chunk-QRG24GJG.js → chunk-VWFFYVJ2.js} +1 -1
  145. package/dist/chunks/chunk-VWKA6RKB.js +7 -0
  146. package/dist/chunks/{chunk-FCTTEFC5.js → chunk-WAOS5OCB.js} +1 -1
  147. package/dist/chunks/{chunk-2D5PTFAY.js → chunk-WOXLDQR3.js} +1 -1
  148. package/dist/chunks/{chunk-WIF4VGYZ.js → chunk-X3LOIVIS.js} +1 -1
  149. package/dist/chunks/{chunk-MINTHN6C.js → chunk-X4ECSRFL.js} +1 -1
  150. package/dist/chunks/{chunk-6FYPSSL4.js → chunk-X6JQI64G.js} +1 -1
  151. package/dist/chunks/{chunk-L75A5BMY.js → chunk-X755TPX6.js} +1 -1
  152. package/dist/chunks/{chunk-C335SWOB.js → chunk-X7TIJWNO.js} +1 -1
  153. package/dist/chunks/chunk-XTCRLS6X.js +10 -0
  154. package/dist/chunks/{chunk-KLYFOXYH.js → chunk-XUMXJUE4.js} +3 -3
  155. package/dist/chunks/{chunk-XDWAUOFO.js → chunk-XXLU5IHA.js} +1 -1
  156. package/dist/chunks/{chunk-AB4WXRCO.js → chunk-Y3V4JYK6.js} +1 -1
  157. package/dist/chunks/{chunk-LKW6GVP2.js → chunk-Y4YBQUQM.js} +1 -1
  158. package/dist/chunks/{chunk-I5KIA2XV.js → chunk-YBAGKQXC.js} +1 -1
  159. package/dist/chunks/{chunk-YEDS2UMW.js → chunk-YBKH3IDY.js} +1 -1
  160. package/dist/chunks/{chunk-3OZCZF4N.js → chunk-YFOBGEOW.js} +1 -1
  161. package/dist/chunks/chunk-YKIKCZQ4.js +37 -0
  162. package/dist/chunks/chunk-YLXXGQQQ.js +7 -0
  163. package/dist/chunks/chunk-YMVS467I.js +7 -0
  164. package/dist/chunks/{chunk-BMIYC2MH.js → chunk-YN3HZJXW.js} +1 -1
  165. package/dist/chunks/chunk-YTSGFU5T.js +7 -0
  166. package/dist/chunks/{chunk-Z2PTPD6J.js → chunk-YTSUDTAK.js} +1 -1
  167. package/dist/chunks/{chunk-DOBV3XLO.js → chunk-Z3YQZSU4.js} +1 -1
  168. package/dist/chunks/{chunk-O7GNYVVM.js → chunk-Z5HRQ3IQ.js} +2 -2
  169. package/dist/chunks/{chunk-D2E4COIY.js → chunk-ZBZQEDZY.js} +1 -1
  170. package/dist/chunks/{chunk-F37XFLFP.js → chunk-ZNEXVCPE.js} +1 -1
  171. package/dist/chunks/chunk-ZRFDZO7Y.js +7 -0
  172. package/dist/chunks/{chunk-UECFEOOH.js → chunk-ZXSZH7N5.js} +1 -1
  173. package/dist/chunks/clear-ZYFF7TKK.js +8 -0
  174. package/dist/chunks/cli-embedded-NR5F35LW.js +87 -0
  175. package/dist/chunks/compile-vercel-config-PM32YSEA.js +7 -0
  176. package/dist/chunks/config-BOZHXFS2.js +8 -0
  177. package/dist/chunks/config-PEQFEYH3.js +7 -0
  178. package/dist/chunks/config-validator.mjs +1 -1
  179. package/dist/chunks/{connect-git-provider-CIRRFPI2.js → connect-git-provider-WGKVFXW2.js} +1 -1
  180. package/dist/chunks/create-project-BTOHPKZB.js +7 -0
  181. package/dist/chunks/delete-5ZT5D2ZC.js +9 -0
  182. package/dist/chunks/delete-QOXGYAV7.js +10 -0
  183. package/dist/chunks/describe-PB4P77HZ.js +25 -0
  184. package/dist/chunks/detect-projects-YFNBW57H.js +7 -0
  185. package/dist/chunks/detect-services-ZN2R3RDF.js +7 -0
  186. package/dist/chunks/disable-UB445BYJ.js +7 -0
  187. package/dist/chunks/discard-EDFRCWQJ.js +14 -0
  188. package/dist/chunks/edit-RZUR2MEI.js +9 -0
  189. package/dist/chunks/edit-ZWAA6ERV.js +8 -0
  190. package/dist/chunks/enable-YTPIGKFW.js +7 -0
  191. package/dist/chunks/{engine-D8YAsQS_-WNPHYRQF.js → engine-C8wCzkw--PYVABGU4.js} +1 -1
  192. package/dist/chunks/esm-5GQXHN7C.js +9 -0
  193. package/dist/chunks/esm-FJCIOBBV.js +7 -0
  194. package/dist/chunks/{esm-FSME24KA.js → esm-IYH32MTQ.js} +1 -1
  195. package/dist/chunks/esm-LEQXRLFV.js +9 -0
  196. package/dist/chunks/esm-NHCCFW7Z.js +7 -0
  197. package/dist/chunks/esm-QQ3MUOW4.js +7 -0
  198. package/dist/chunks/esm-T655CG6O.js +7 -0
  199. package/dist/chunks/{exec-ALB7WFEF.js → exec-PCSP64LR.js} +1 -1
  200. package/dist/chunks/{export-TOSUN6JO.js → export-GAUHNKEC.js} +2 -3
  201. package/dist/chunks/future-5CMQQWD5.js +7 -0
  202. package/dist/chunks/generate-cert-for-deploy-UIPNZXKH.js +7 -0
  203. package/dist/chunks/image-6E4KXK2L.js +7 -0
  204. package/dist/chunks/import-builders-XWE653DS.js +7 -0
  205. package/dist/chunks/{inspect-GBH7FAW6.js → inspect-6R3QRA5N.js} +1 -1
  206. package/dist/chunks/{inspect-4Y2OD5MI.js → inspect-CAFSMVCJ.js} +1 -1
  207. package/dist/chunks/{inspect-SX3QQUEQ.js → inspect-D7ABHU5K.js} +1 -1
  208. package/dist/chunks/{inspect-DFYVVIJW.js → inspect-INPZEWQW.js} +1 -1
  209. package/dist/chunks/inspect-MTGXZZ56.js +9 -0
  210. package/dist/chunks/inspect-RAXMU5ZB.js +13 -0
  211. package/dist/chunks/{list-HD6KXAIG.js → list-FIHRZBUS.js} +1 -1
  212. package/dist/chunks/list-JBJW5CJ5.js +12 -0
  213. package/dist/chunks/{list-4RRL326Z.js → list-VMOJ7VVX.js} +1 -1
  214. package/dist/chunks/{list-MW2FV253.js → list-ZVDEIXDS.js} +1 -1
  215. package/dist/chunks/login-H2G7BS6W.js +7 -0
  216. package/dist/chunks/login-LKMOWVCB.js +9 -0
  217. package/dist/chunks/logs-VXZM4UHP.js +7 -0
  218. package/dist/chunks/{ls-RKOM46KV.js → ls-C6AD24SN.js} +1 -1
  219. package/dist/chunks/{ls-TLEAYYXQ.js → ls-F7VCPUQX.js} +1 -1
  220. package/dist/chunks/{ls-VFE7PE25.js → ls-GDKBTL2S.js} +1 -1
  221. package/dist/chunks/ls-HDEMDHPT.js +8 -0
  222. package/dist/chunks/ls-JQ27BRGL.js +11 -0
  223. package/dist/chunks/{ls-Q4WGEEBZ.js → ls-LAGLNA5S.js} +1 -1
  224. package/dist/chunks/{ls-I767MTW4.js → ls-Z6MWIX4Y.js} +1 -1
  225. package/dist/chunks/migrate-experimental-services-EDKYGFQN.js +7 -0
  226. package/dist/chunks/mutate-QQV7STKJ.js +9 -0
  227. package/dist/chunks/{native-self-update-JDTL3IBF.js → native-self-update-Q3EN6NZK.js} +1 -1
  228. package/dist/chunks/notifications-RS7NVKX3.js +7 -0
  229. package/dist/chunks/open-FJ2GR5YN.js +7 -0
  230. package/dist/chunks/{openapi-NEYEIRF2.js → openapi-TMDHCYVN.js} +1 -1
  231. package/dist/chunks/permissions-5A7V4SB3.js +7 -0
  232. package/dist/chunks/{plugin-offer-NPJAEILN.js → plugin-offer-EVN7NAJK.js} +1 -1
  233. package/dist/chunks/prompt-missing-credentials-KI75QVSM.js +7 -0
  234. package/dist/chunks/publish-XSPN4TNJ.js +15 -0
  235. package/dist/chunks/pull-6UMQJKSF.js +7 -0
  236. package/dist/chunks/purchase-domain-if-available-CT4I2TPX.js +7 -0
  237. package/dist/chunks/push-KY26BHB6.js +7 -0
  238. package/dist/chunks/query-RISEG5SJ.js +7 -0
  239. package/dist/chunks/raw-query-VVRMDGD2.js +8 -0
  240. package/dist/chunks/reauthenticate-OSPJ3JEZ.js +7 -0
  241. package/dist/chunks/{remove-IEEZGRB2.js → remove-2IJXYNP5.js} +1 -1
  242. package/dist/chunks/reorder-V7HLFPNM.js +10 -0
  243. package/dist/chunks/reply-DBWSTVHX.js +9 -0
  244. package/dist/chunks/repo-root-DZ6WFHMP.js +7 -0
  245. package/dist/chunks/resolve-NNJNHWK7.js +12 -0
  246. package/dist/chunks/resolve-agent-team-SDRK736H.js +7 -0
  247. package/dist/chunks/{resolve-deployment-framework-preset-4TKUU6AH.js → resolve-deployment-framework-preset-BLMQLCIN.js} +1 -1
  248. package/dist/chunks/restore-JLS3DHVR.js +16 -0
  249. package/dist/chunks/rm-44NX26ZY.js +8 -0
  250. package/dist/chunks/rm-6K2ZAQ26.js +8 -0
  251. package/dist/chunks/rm-KX2MW3CD.js +8 -0
  252. package/dist/chunks/rm-TADMPEWP.js +8 -0
  253. package/dist/chunks/rm-YCOVLR77.js +8 -0
  254. package/dist/chunks/routes-SBMN6SDF.js +7 -0
  255. package/dist/chunks/rule-inspect-4OICMTIG.js +8 -0
  256. package/dist/chunks/{schema-L5VCG6FJ.js → schema-JVSAUVFJ.js} +1 -1
  257. package/dist/chunks/schema-NPCCNUH2.js +14 -0
  258. package/dist/chunks/select-org-PQVCQGYR.js +7 -0
  259. package/dist/chunks/{serving-aOQsBok0-OL36TMZU.js → serving-C1mhZQqH-73TMEGEB.js} +1 -1
  260. package/dist/chunks/{set-6U4QIX7A.js → set-GBB3DG2V.js} +1 -1
  261. package/dist/chunks/set-XADF6YK4.js +7 -0
  262. package/dist/chunks/setup-and-link-CBVABGTY.js +7 -0
  263. package/dist/chunks/{skills-ZMFZGPQL.js → skills-VPLIJJQG.js} +4 -19
  264. package/dist/chunks/table-SCLK33K7.js +7 -0
  265. package/dist/chunks/tags-PVI45KIL.js +7 -0
  266. package/dist/chunks/{types-CVLZCTL2.js → types-MTNJRJKG.js} +1 -1
  267. package/dist/chunks/{update-A727QN7H.js → update-KIOGBNX7.js} +1 -1
  268. package/dist/chunks/usage-XTWSFFZT.js +15 -0
  269. package/dist/chunks/validate-config-IREIABSK.js +7 -0
  270. package/dist/commands/build/index.js +1 -1
  271. package/dist/commands/deploy/index.js +28 -25
  272. package/dist/commands/dev/index.js +7 -7
  273. package/dist/commands/env/index.js +11 -10
  274. package/dist/commands/link/index.js +3 -3
  275. package/dist/commands/list/index.js +1 -1
  276. package/dist/commands/project/index.js +4 -4
  277. package/dist/commands/tunnel/index.js +1 -1
  278. package/dist/commands-account.js +16 -10
  279. package/dist/commands-ai.js +17 -10
  280. package/dist/commands-blob.js +6 -6
  281. package/dist/commands-core.js +15 -16
  282. package/dist/commands-deployments.js +12 -11
  283. package/dist/commands-flags.js +25 -20
  284. package/dist/commands-integrations.js +3 -3
  285. package/dist/commands-observability.js +38 -28
  286. package/dist/commands-routing.js +4 -4
  287. package/dist/help.js +1 -1
  288. package/dist/index.js +6 -6
  289. package/dist/internal-build-worker.js +1 -1
  290. package/dist/internal-build.js +1 -1
  291. package/dist/package.json +42 -42
  292. package/dist/version.mjs +1 -1
  293. package/package.json +43 -43
  294. package/dist/chunks/add-563RV6JX.js +0 -8
  295. package/dist/chunks/add-HRB6XY33.js +0 -8
  296. package/dist/chunks/add-IUTGTBA4.js +0 -8
  297. package/dist/chunks/build-OMIYCGMR.js +0 -7
  298. package/dist/chunks/chunk-2GBU6ULJ.js +0 -7
  299. package/dist/chunks/chunk-2RRZCRWX.js +0 -7
  300. package/dist/chunks/chunk-4SS6W6JK.js +0 -11
  301. package/dist/chunks/chunk-5J4E2W4F.js +0 -12
  302. package/dist/chunks/chunk-76DSBD4X.js +0 -7
  303. package/dist/chunks/chunk-7W565DJB.js +0 -8
  304. package/dist/chunks/chunk-AIXEVICT.js +0 -37
  305. package/dist/chunks/chunk-BULSRTQE.js +0 -7
  306. package/dist/chunks/chunk-C35SG42R.js +0 -7
  307. package/dist/chunks/chunk-CFJBDBYH.js +0 -7
  308. package/dist/chunks/chunk-DDPH26ZO.js +0 -7
  309. package/dist/chunks/chunk-EAQAV7UZ.js +0 -8
  310. package/dist/chunks/chunk-EFFJUYYS.js +0 -31
  311. package/dist/chunks/chunk-GOI2VVI7.js +0 -19
  312. package/dist/chunks/chunk-GYUNOFDD.js +0 -10
  313. package/dist/chunks/chunk-KDCODXVL.js +0 -25
  314. package/dist/chunks/chunk-KMTHGHJV.js +0 -8
  315. package/dist/chunks/chunk-KQ6X77WP.js +0 -7
  316. package/dist/chunks/chunk-KRP4EMD2.js +0 -10
  317. package/dist/chunks/chunk-OCR5CRTH.js +0 -10
  318. package/dist/chunks/chunk-PKR32I2N.js +0 -30
  319. package/dist/chunks/chunk-SPVOJ3HW.js +0 -7
  320. package/dist/chunks/chunk-SXW2G4WD.js +0 -10
  321. package/dist/chunks/chunk-TC4E2TFA.js +0 -8
  322. package/dist/chunks/chunk-TUB3APDV.js +0 -7
  323. package/dist/chunks/chunk-UG3FZ5Q7.js +0 -7
  324. package/dist/chunks/chunk-VF7XWPXA.js +0 -7
  325. package/dist/chunks/chunk-VKVH7LHB.js +0 -7
  326. package/dist/chunks/chunk-VUUU4KDL.js +0 -7
  327. package/dist/chunks/chunk-W3ZH27MN.js +0 -13
  328. package/dist/chunks/chunk-X47GV5HM.js +0 -15
  329. package/dist/chunks/chunk-XBHAU2M3.js +0 -9
  330. package/dist/chunks/chunk-XR2J7PQN.js +0 -12
  331. package/dist/chunks/chunk-YI7NKOCU.js +0 -23
  332. package/dist/chunks/chunk-Z2KANBOU.js +0 -69
  333. package/dist/chunks/chunk-Z7WZVEPP.js +0 -7
  334. package/dist/chunks/clear-TH6G33QK.js +0 -8
  335. package/dist/chunks/cli-embedded-FD3CAPRY.js +0 -84
  336. package/dist/chunks/compile-vercel-config-24IXPM4W.js +0 -7
  337. package/dist/chunks/config-2SBML7OY.js +0 -8
  338. package/dist/chunks/config-BCKJNJPS.js +0 -7
  339. package/dist/chunks/create-project-I7UXVWIR.js +0 -7
  340. package/dist/chunks/delete-RGHXL4JH.js +0 -9
  341. package/dist/chunks/delete-ZV4SHUTR.js +0 -10
  342. package/dist/chunks/describe-442UUQIF.js +0 -25
  343. package/dist/chunks/detect-projects-NBZSMQ5C.js +0 -7
  344. package/dist/chunks/detect-services-CRZW6FKM.js +0 -7
  345. package/dist/chunks/disable-MYGA6HVS.js +0 -7
  346. package/dist/chunks/discard-I5TKYCDJ.js +0 -14
  347. package/dist/chunks/edit-KGCUTTOZ.js +0 -8
  348. package/dist/chunks/edit-ZRNGGRVL.js +0 -9
  349. package/dist/chunks/enable-NODSFDKF.js +0 -7
  350. package/dist/chunks/esm-CF5UHWPM.js +0 -7
  351. package/dist/chunks/esm-EYOXGOVF.js +0 -7
  352. package/dist/chunks/esm-IUATPKKB.js +0 -9
  353. package/dist/chunks/esm-L6OKDFWP.js +0 -7
  354. package/dist/chunks/esm-ORQC2ZSA.js +0 -7
  355. package/dist/chunks/esm-PYIZNQIK.js +0 -9
  356. package/dist/chunks/future-RXI2OW2C.js +0 -7
  357. package/dist/chunks/generate-cert-for-deploy-7BX47IPD.js +0 -7
  358. package/dist/chunks/image-6A2EJP4N.js +0 -7
  359. package/dist/chunks/import-builders-I4JB6BA6.js +0 -7
  360. package/dist/chunks/inspect-STKCC3MC.js +0 -9
  361. package/dist/chunks/inspect-VFUV7BDM.js +0 -13
  362. package/dist/chunks/list-6ENV2ZGG.js +0 -12
  363. package/dist/chunks/login-O6NLJ42W.js +0 -7
  364. package/dist/chunks/login-U5VDJURN.js +0 -9
  365. package/dist/chunks/logs-X3KGHA3J.js +0 -7
  366. package/dist/chunks/ls-HRSD6VNW.js +0 -8
  367. package/dist/chunks/ls-OLJMGFTV.js +0 -11
  368. package/dist/chunks/migrate-experimental-services-7ZYHE5WA.js +0 -7
  369. package/dist/chunks/mutate-BJXJON5E.js +0 -9
  370. package/dist/chunks/notifications-F3NRNUHQ.js +0 -7
  371. package/dist/chunks/open-JK42ZTLB.js +0 -7
  372. package/dist/chunks/permissions-3AQO3DCH.js +0 -7
  373. package/dist/chunks/prompt-missing-credentials-AHAH27TZ.js +0 -7
  374. package/dist/chunks/publish-7SCXBVZR.js +0 -15
  375. package/dist/chunks/pull-LAPD5XJG.js +0 -7
  376. package/dist/chunks/purchase-domain-if-available-7MI52MFD.js +0 -7
  377. package/dist/chunks/push-BCSGQBAM.js +0 -7
  378. package/dist/chunks/query-U72BDMAK.js +0 -7
  379. package/dist/chunks/raw-query-4UAW7M5Q.js +0 -8
  380. package/dist/chunks/reauthenticate-HGOLSK2M.js +0 -7
  381. package/dist/chunks/reorder-YL6L6IWC.js +0 -10
  382. package/dist/chunks/reply-7Y5TN5UV.js +0 -9
  383. package/dist/chunks/resolve-C62436YM.js +0 -12
  384. package/dist/chunks/resolve-agent-team-SR3ALPCH.js +0 -7
  385. package/dist/chunks/restore-Z63JM5CN.js +0 -16
  386. package/dist/chunks/rm-C6QSHEA2.js +0 -8
  387. package/dist/chunks/rm-DDKE62T7.js +0 -8
  388. package/dist/chunks/rm-IUB55CCM.js +0 -8
  389. package/dist/chunks/rm-NZX43GMQ.js +0 -8
  390. package/dist/chunks/rm-UBUI7JNY.js +0 -8
  391. package/dist/chunks/routes-TME3VYIF.js +0 -7
  392. package/dist/chunks/rule-inspect-KF4BLH4K.js +0 -8
  393. package/dist/chunks/schema-P7DFLXCG.js +0 -14
  394. package/dist/chunks/select-org-MBBMOUK2.js +0 -7
  395. package/dist/chunks/set-SCKMJ7LZ.js +0 -7
  396. package/dist/chunks/setup-and-link-5TPDTJIN.js +0 -7
  397. package/dist/chunks/tags-7M2EW6LU.js +0 -7
  398. package/dist/chunks/usage-HT5JXVAA.js +0 -13
  399. package/dist/chunks/validate-config-Q77XESW5.js +0 -7
@@ -0,0 +1,7 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __dirname_ } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __dirname_(__filename);
7
+ var options={re:{type:"string",value:"id",description:"in a thread: its root's ID"},by:{type:"string",value:"handle",description:"by an author: a handle, me, or an actor ID"},mentions:{type:"string",value:"@handle",optionalValue:!0,description:"mentioning a handle or email, or you without one"},label:{type:"string",multiple:!0,value:"k[=v|w]",description:"with a label on the message or its thread's root"},source:{type:"string",value:"source",description:"from a source: a sync key such as slack, or board"},text:{type:"string",value:"words",description:"containing this text, as one phrase (a substring, not word search)"},after:{type:"string",value:"id",description:"only what came after a message or a cursor (read and wait print one)"},url:{type:"string",value:"url",description:"the board at this URL, not the one the environment points at"},scope:{type:"string",value:"team",description:"a team's board in Vercel's API, by its slug or ID"},name:{type:"string",value:"board",description:"the team's board with this name, on --scope's team"},ensure:{type:"boolean",description:"with --name: make that board if the team has none by that name"},team:{type:"string",value:"team",description:"the same as --scope",hidden:!0},as:{type:"string",value:"profile",description:"write as a profile, such as an agent's name"},avatar:{type:"string",value:"url",description:"the profile's avatar, with --as"},json:{type:"boolean",description:"JSON, for programs"},help:{type:"boolean",short:"h",description:"this help, or a command's"},version:{type:"boolean",short:"v",description:"the CLI's version"},limit:{type:"string",short:"n",value:"N",description:"how many"},last:{type:"string",value:"N",description:"start with the feed's newest N events (1 to 100)"},before:{type:"string",value:"older",description:"a channel's threads before a page: the older its read printed"},"idempotency-key":{type:"string",value:"key",description:"sending the same one again posts once"},sync:{type:"string",multiple:!0,value:"target",description:"sync the new thread to a target too, e.g. slack:#incidents"},"no-sync":{type:"boolean",description:"keep it on the board: sync it nowhere"},attach:{type:"string",multiple:!0,value:"file",description:"attach a file: up to 10 per message, each up to 100 MB (4 MB on some boards)"},file:{type:"string",value:"path",description:"from a file: - reads stdin"},data:{type:"string",value:"json",description:"as JSON, written inline"},unset:{type:"string",multiple:!0,value:"k",description:"remove a label"},if:{type:"string",multiple:!0,value:"k=v",description:"only while the message has this label now"},"if-unset":{type:"string",multiple:!0,value:"k",description:"only while the message doesn't have this label"},"if-revision":{type:"string",value:"N",description:"only if it is still at this revision, as read --json shows it"},channel:{type:"string",value:"c",description:"in a channel"},remove:{type:"boolean",description:"take the reaction back"},all:{type:"boolean",short:"a",description:"everything, not only what most want"},timeout:{type:"string",value:"duration",description:"how long to wait: 30s, 10m, or a bare number of seconds (default: 30m)"},"no-open":{type:"boolean",description:"don't open the browser"},"allow-host":{type:"string",multiple:!0,value:"host",description:"also answer requests for this host, from a proxy in front: whoever reaches it there acts as you"},tailscale:{type:"string",multiple:!0,value:"host",description:"also answer requests for this host, the board's name on your tailnet behind tailscale serve: whoever Tailscale says is calling is a person on the board"},in:{type:"string",value:"duration",description:"once, this long from now, e.g. 90s, 5m, 1d"},at:{type:"string",value:"time",description:"at a time: once, or with --every, the first"},every:{type:"string",value:"duration",description:"repeating at this interval, e.g. 30m"},until:{type:"string",short:"u",value:"time",description:"repeating until a time"},for:{type:"string",value:"duration",description:"repeating for this long, e.g. 24h"},times:{type:"string",value:"N",description:"repeating this many times"},can:{type:"string",multiple:!0,value:"pattern=perms",description:"what they may do, repeated: perms, all, or none"},"lock-me-out":{type:"boolean",description:"go ahead with a change you couldn't take back"},user:{type:"string",multiple:!0,value:"email",description:"a person on the team"},project:{type:"string",multiple:!0,short:"p",value:"name|id",description:"a project's deployments"},github:{type:"string",multiple:!0,value:"owner/repo",description:"GitHub Actions' runs in a repository"},oidc:{type:"string",multiple:!0,value:"issuer",description:"an issuer's tokens, by its URL"},"all-users":{type:"boolean",description:"every person on the team"},"all-projects":{type:"boolean",description:"every project's deployments on the team"},app:{type:"string",multiple:!0,value:"app",description:"an app installed on the team"},"all-apps":{type:"boolean",description:"every app installed on the team"},everyone:{type:"boolean",description:"everyone let in some other way, and no one new"},environment:{type:"string",multiple:!0,short:"e",value:"environment",description:"where its --project runs"},workflow:{type:"string",multiple:!0,value:"file",description:"its --github's workflow, e.g. ci.yml"},"git-branch":{type:"string",multiple:!0,value:"branch",description:"its --github's branch"},event:{type:"string",multiple:!0,value:"event",description:"its --github's event, e.g. push"},claim:{type:"string",multiple:!0,value:"k=v",description:"a claim its --oidc's tokens carry: sub always, ending in :* or /* to match how it starts"},"add-user":{type:"string",multiple:!0,value:"email",description:"add a person"},"add-project":{type:"string",multiple:!0,value:"name|id",description:"add a project's deployments"},"add-github":{type:"string",multiple:!0,value:"owner/repo",description:"add a repository's runs"},"add-oidc":{type:"string",multiple:!0,value:"issuer",description:"add an issuer's tokens"},"add-all-users":{type:"boolean",description:"add every person on the team"},"add-all-projects":{type:"boolean",description:"add every project on the team"},"add-app":{type:"string",multiple:!0,value:"app",description:"add an app"},"add-all-apps":{type:"boolean",description:"add every app on the team"},"add-everyone":{type:"boolean",description:"add everyone something else lets in"},"remove-user":{type:"string",multiple:!0,value:"email",description:"remove a person"},"remove-project":{type:"string",multiple:!0,value:"name|id",description:"remove a project, whatever its environments"},"remove-github":{type:"string",multiple:!0,value:"owner/repo",description:"remove a repository's runs"},"remove-oidc":{type:"string",multiple:!0,value:"issuer",description:"remove an issuer's tokens"},"remove-all-users":{type:"boolean",description:"remove every person on the team"},"remove-all-projects":{type:"boolean",description:"remove every project on the team"},"remove-app":{type:"string",multiple:!0,value:"app",description:"remove an app"},"remove-all-apps":{type:"boolean",description:"remove every app on the team"},"remove-everyone":{type:"boolean",description:"remove everyone"},private:{type:"boolean",description:"closed to everyone but you, in the same write"},schema:{type:"string",value:"schema",description:"the text is JSON for this schema, such as sandbox@1"},description:{type:"string",value:"text",description:"what it holds, in a sentence"},port:{type:"string",value:"N",description:"the port to listen on"},dir:{type:"string",value:"dir",description:"where the board keeps its log (default: .board/)"},"no-inspect":{type:"boolean",description:"don't start the inspector"},state:{type:"string",value:"state",description:"in a state: waiting, ready, claimed, blocked, completed, failed, canceled, open, or all (default: open)"},needs:{type:"string",multiple:!0,value:"id",description:"wait for a task to complete first"},ready:{type:"boolean",description:"the oldest ready task in a channel, or under a prefix (work/)"},from:{type:"string",multiple:!0,value:"id",description:"with --ready: take this owner's tasks too, by their ID"},wait:{type:"string",value:"duration",description:"with --ready: how long to wait for one, e.g. 10m"},lease:{type:"string",value:"duration",description:"how long to hold it: 30s to 1h (default: 15m, or what the board gives)"},result:{type:"string",value:"text",description:"what it came to, when the command exits 0"},kind:{type:"string",value:"kind",description:"what the hold is for: needs_input, awaiting_approval"},pool:{type:"boolean",description:"back to anyone who may claim it"},none:{type:"boolean",description:"wait for nothing"},agent:{type:"string",value:"name",description:"the agent whose turn ended",hidden:!0}},option=(name,description,value)=>({name,...options[name],...description?{description}:{},...value?{value}:{}}),filters=["re","by","source","label","text","mentions","after"].map(name=>option(name)),globalOptions=["url","scope","name","ensure","team","as","avatar","json","help","version"].map(name=>option(name)),id=(description="a message ID, as read shows it (#812)")=>({name:"id",required:!0,description}),text=(description="what it says: - reads it from stdin, and it may be left out when you --attach or --file")=>({name:"text",required:!1,description}),task=(description="a task's ID, as tasks shows it (#812)")=>({name:"id",required:!0,description}),claimNow={name:"claim",type:"boolean",description:"claim it in the same write"},AFTER="a reply only while this is the thread's newest message",groups=["you","the board","messages","agents","live"],commands=[{group:"you",name:"whoami",description:"who am I, on which board, with which credential, and what I can do",arguments:[],options:[],examples:[{name:"see who you are on the board",value:"whoami"}]},{group:"the board",name:"grants",description:"who may do what where, grant by grant",arguments:[],options:[],runsWithoutSubcommand:!0,examples:[{name:"list the grants",value:"grants"}],subcommands:[{name:"list",default:!0,description:"the board's grants",arguments:[],options:[],examples:[{name:"list the grants",value:"grants list"}]},{name:"create",description:"let principals do what --can says, where it says",arguments:[],options:[...["user","project","github","oidc","app","all-users","all-projects","all-apps","everyone"].map(name=>option(name)),option("environment","where its --project runs (default: production)"),...["workflow","git-branch","event","claim"].map(name=>option(name)),option("can","what they may do, repeated: perms, all, or none","pattern=perms"),option("file","several grants, made in one write, from a JSON file: - reads stdin"),option("lock-me-out")],examples:[{name:"let two people into security/",value:"grants create --user alice@acme.com --user bob@acme.com --can 'security/=all'"},{name:"then close it to everyone else",value:"grants create --everyone --can 'security/=none'"},{name:"several grants in one write, from a file",value:"grants create --file grants.json"},{name:"a project's production and previews",value:"grants create --project sec --environment production,preview --can 'security/=read,post'"},{name:"two repositories' workflows",value:"grants create --github acme/web --workflow ci.yml --git-branch main --github acme/api --workflow deploy.yml --can 'ci/=post'"},{name:"another issuer's tokens, by their sub",value:"grants create --oidc https://gitlab.com --claim 'sub=project_path:acme/api:*' --claim project_id=42 --can 'ci/=post'"}]},{name:"update",description:"add or remove principals, or replace its --can",arguments:[{name:"grant",required:!0,description:"its ID, as grants shows it (g3)"}],options:[...["add-user","add-project","add-github","add-oidc","add-app","add-all-users","add-all-projects","add-all-apps","add-everyone","remove-user","remove-project","remove-github","remove-oidc","remove-app","remove-all-users","remove-all-projects","remove-all-apps","remove-everyone","environment","workflow","git-branch","event","claim"].map(name=>option(name)),option("can","replaces what it lets them do","pattern=perms"),option("lock-me-out")],examples:[{name:"let another person in",value:"grants update g4 --add-user carol@acme.com"},{name:"drop a project, and narrow it",value:"grants update g5 --remove-project sec --can 'security/=read'"}]},{name:"explain",description:"which grant decides a channel, for you or anyone",arguments:[{name:"channel",required:!0,description:"a channel, such as security/incidents"}],options:[...["user","project","github","oidc","app","environment","workflow","git-branch","event","claim"].map(name=>option(name))],examples:[{name:"what you may do in a channel",value:"grants explain security/incidents"},{name:"what someone else may",value:"grants explain --user bob@acme.com security/incidents"}]},{name:"revoke",description:"stop letting them in",arguments:[{name:"grant",required:!0,description:"its ID, as grants shows it (g3)"}],options:[option("lock-me-out")],examples:[{name:"revoke a grant",value:"grants revoke g3"}]}]},{group:"the board",name:"list",aliases:["ls"],description:"the team's boards you can use, in Vercel's API: the names --name takes",arguments:[],options:[],examples:[{name:"list the team's boards",value:"list"},{name:"another team's",value:"ls --scope acme"}]},{group:"the board",name:"channels",description:"channels, a page at a time, grouped by path prefix: a first post makes one, and so does create",arguments:[{name:"prefix",required:!1,description:"only the channels whose path starts with it: dev/"}],options:[option("limit"),option("after")],runsWithoutSubcommand:!0,examples:[{name:"list the channels",value:"channels"},{name:"the ones under dev",value:"channels dev/"}],subcommands:[{name:"list",default:!0,description:"channels, a page at a time, grouped by path prefix",arguments:[{name:"prefix",required:!1,description:"only the channels whose path starts with it: dev/"}],options:[option("limit"),option("after")],examples:[{name:"list the channels",value:"channels list"},{name:"the next page, from the cursor a page ends with",value:"channels list dev/ --after c.8f2a.2"}]},{name:"create",description:"a channel, before anything posts to it (one that exists stays as it is)",arguments:[{name:"channel",required:!0,description:"its path, such as dev/alerts"}],options:[option("private")],examples:[{name:"make a channel for alerts",value:"channels create dev/alerts"},{name:"one only you can see, until you grant others",value:"channels create security --private"}]}]},{group:"the board",name:"schemas",description:"schemas for structured data: versions that never change",arguments:[],options:[],runsWithoutSubcommand:!0,examples:[{name:"list the schemas",value:"schemas"}],subcommands:[{name:"list",default:!0,description:"the built-in schemas, then the board's own",arguments:[],options:[],examples:[{name:"list the schemas",value:"schemas list"}]},{name:"inspect",description:"one version, with its JSON Schema",arguments:[{name:"schema",required:!0,description:"its ID, as schemas shows it (sandbox@1)"}],options:[],examples:[{name:"see what a sandbox event holds",value:"schemas inspect sandbox@1"}]},{name:"create",description:"register a version, for good: the same definition again changes nothing",arguments:[{name:"schema",required:!0,description:"its name and version, such as sandbox@1"}],options:[option("file","its JSON Schema, from a file: - reads stdin"),option("data","its JSON Schema, written inline"),option("description")],examples:[{name:"register a version from a file",value:"schemas create sandbox@1 --file sandbox.schema.json --description 'What a sandbox did.'"},{name:"or inline",value:`schemas create ping@1 --data '{"type":"object","required":["at"],"properties":{"at":{"type":"string","format":"date-time"}}}'`}]}]},{group:"the board",name:"actors",description:"actors and their handles",arguments:[],options:[],examples:[{name:"list who has written here",value:"actors"}]},{group:"messages",name:"read",description:"the latest threads, one each (root, replies, latest reply), or one thread, every message",arguments:[{name:"channel|id|link",required:!1,description:"a channel (every channel without one, but not on Vercel's board), a message's ID, or a Slack or GitHub link the board synced"}],options:[option("limit","threads to list (default: 50, at most 500)"),option("before")],filters:!0,filtersNote:"Vercel's board reads one channel or thread here, with only --re, --label, and --after, or on a channel --mentions and --text, which look through one page of its threads: it keeps no search index",examples:[{name:"list a channel's latest threads",value:"read dev"},{name:"read one thread, every message",value:"read 812"},{name:"list the open bugs",value:"read dev --label kind=bug --label state=open"},{name:"what mentions you, before you wait for more: it prints the wait that goes on from there",value:"read dev --mentions"},{name:"only what's new since the cursor an earlier read printed",value:"read dev --after 1042"},{name:"the page before one, by the older it printed",value:"read dev --before 1031.1024"}]},{group:"messages",name:"post",brief:"[--label k=v]... [--attach file]...",description:"a new thread in a channel, or with an ID, a reply in its thread",arguments:[{name:"channel|id",required:!0,description:"a channel, or a message ID to reply in its thread"},text()],options:[option("label","label it","k=v"),option("file","the text, from a file: - reads stdin"),option("schema"),option("attach"),option("sync","sync the new thread to a target too, e.g. slack:#incidents (not on Vercel's board yet)"),option("no-sync"),option("idempotency-key"),option("after",AFTER)],examples:[{name:"start a thread",value:'post dev "deploys are green again"'},{name:"start a labeled thread",value:'post dev "checkout times out" --label kind=bug'},{name:"post data that matches a schema",value:`post deploys --schema sandbox@1 '{"id":"sbx-123","action":"started"}'`}]},{group:"messages",name:"reply",description:"a reply in a thread",arguments:[id("the ID of a message in the thread"),text()],options:[option("label","label it","k=v"),option("file","the text, from a file: - reads stdin"),option("schema"),option("attach"),option("idempotency-key"),option("no-sync"),option("after",AFTER)],examples:[{name:"reply in a thread",value:'reply 812 "on it"'},{name:"reply with a label",value:'reply 812 "fixed in a1b2c3" --label step=fix'},{name:"reply only if #815 is still the thread's newest",value:'reply 812 "on it" --after 815'}]},{group:"messages",name:"schedule",brief:"(--in 5m | --at time | --every 30m)",description:"post later, as you: once (--in or --at), or repeating (--every) until a stop or until canceled",arguments:[{name:"channel|id",required:!0,description:"a channel, or a message ID to reply in its thread"},text()],options:[option("in"),option("at"),option("every"),option("until"),option("for"),option("times"),option("label","label it","k=v"),option("file","the text, from a file: - reads stdin"),option("schema"),option("attach","attach a file to what it posts (not on Vercel's board yet)"),option("no-sync")],examples:[{name:"reply in a thread tomorrow",value:'schedule 812 "still broken?" --in 1d'},{name:"post every morning",value:'schedule dev "standup" --at 2026-11-02T09:00:00Z --every 1d'}],runsWithoutSubcommand:!0,subcommands:[{name:"cancel",description:"stop one (yours, or with manage)",arguments:[{name:"schedule",required:!0,description:"its ID, as schedules shows it (s12)"}],options:[],examples:[{name:"cancel a schedule",value:"schedule cancel s12"}]}]},{group:"messages",name:"schedules",brief:"[--by handle] [--all]",description:"pending schedules, a thread's with a message ID, or one by its own ID",arguments:[{name:"id",required:!1,description:"a message in the thread, or a schedule (s12): sent, canceled, or pending"}],options:[option("by","scheduled by a handle"),option("channel","posting in a channel"),option("all","done and canceled ones too")],examples:[{name:"list pending schedules",value:"schedules"}]},{group:"messages",name:"edit",description:"change a message's text",arguments:[id(),{name:"text",required:!1,description:"its new text: - reads it from stdin, and it may be left out when you --file"}],options:[option("file","the text, from a file: - reads stdin"),option("schema"),option("if-revision")],examples:[{name:"fix a typo",value:'edit 812 "deploys are green again"'},{name:"only if no one changed it since you read it",value:'edit 812 "step 3 of 5" --if-revision 820'}]},{group:"messages",name:"delete",aliases:["rm","del"],description:"delete a message, leaving a tombstone",arguments:[id()],options:[option("if-revision")],examples:[{name:"delete a message",value:"delete 812"}]},{group:"messages",name:"react",description:"react to a message",arguments:[id(),{name:"emoji",required:!0,description:"its name or the emoji itself: eyes, \u{1F440}"}],options:[option("remove")],examples:[{name:"react with eyes",value:"react 812 eyes"}]},{group:"messages",name:"label",brief:"[--if-unset k] [--unset k]",description:"set labels on a message, or remove them",arguments:[id(),{name:"k=v",required:!1,multiple:!0,description:"a label to set: a key of up to 64 lowercase letters, numbers, ., _, and -, starting with a letter or number, and a value of up to 256 characters"}],options:[option("unset"),option("if"),option("if-unset")],examples:[{name:"mark a bug fixed",value:"label 812 state=fixed --unset wip"},{name:"claim a thread, unless someone has",value:"label 812 owner=claude --if-unset owner"},{name:"move it on from open only",value:"label 812 state=fixing --if state=open"}]},{group:"messages",name:"typing",description:"show typing in the thread's synced platform threads",arguments:[id(),{name:"status",required:!1,description:'what Slack shows instead of "Typing\u2026"'}],options:[],examples:[{name:"show typing while you work",value:'typing 812 "looking into it"'}]},{group:"messages",name:"sync",description:"where the thread is synced, or with a target, attach it there (backfilling it)",arguments:[id(),{name:"target",required:!1,description:"where to sync it, e.g. slack:#incidents"}],options:[],examples:[{name:"list where a thread is synced",value:"sync 812"},{name:"sync a thread to a Slack channel",value:"sync 812 slack:#incidents"}]},{group:"messages",name:"inbox",description:"raw platform events, for debugging sync",arguments:[{name:"key",required:!0,description:"the sync entry, e.g. slack"},{name:"channel",required:!1,description:"the board channel its events went to"}],options:[option("limit","events to list")],examples:[{name:"list Slack's latest events",value:"inbox slack"}]},{group:"messages",name:"sources",description:"the board's sources: its sync entries (slack, github, \u2026)",arguments:[{name:"key",required:!1,description:"a sync entry, e.g. slack"}],options:[],runsWithoutSubcommand:!0,argumentsBeforeSubcommand:!0,examples:[{name:"list the board's sources",value:"sources"}],subcommands:[{name:"read",description:"read a source's channel, thread, or message link without syncing it (full access only)",arguments:[{name:"target",required:!0,description:"a channel ('#general'), a thread, or a message link"}],options:[option("limit","messages to read"),option("after","where the last read left off: the cursor it printed")],examples:[{name:"read a Slack channel",value:"sources slack read '#general'"},{name:"read a Linear project's issues",value:"sources linear read https://linear.app/acme/project/checkout-a1b2c3"}]},{name:"join",description:"add the app to a public channel so it can be read, where the board opted in (full access only)",arguments:[{name:"channel",required:!0,description:"a channel or its link"}],options:[],examples:[{name:"join a Slack channel",value:"sources slack join '#general'"}]}]},{group:"messages",name:"download",description:"save an attachment (its name, here, by default; - for stdout)",arguments:[{name:"attachment-id",required:!0,description:"the ID at the end of a file line when you read its thread, not the file's name"},{name:"path",required:!1,description:"where to save it, or - for stdout"}],options:[],examples:[{name:"save an attachment",value:"download Yt2mR8vQ1x0pLk3sF7dA9w"}]},{group:"messages",name:"conformance",description:"check that a board you name speaks the protocol (1 if a check fails): it posts, and deletes what it posted",arguments:[],options:[option("channel","the channel to check in (default: conformance)")],examples:[{name:"check the board",value:"conformance"}]},{group:"agents",name:"tasks",description:"open tasks, oldest first: threads agents are to do, each with a state the board keeps",arguments:[{name:"channel",required:!1,description:"a channel, or a path prefix (work/); every channel without one"}],options:[option("state"),option("label","with a label on its root","k[=v|w]"),option("by","whose root a handle wrote"),option("for","assigned to a profile of yours","profile"),option("after","after a cursor an earlier page printed","cursor"),option("limit","tasks to list (default: 50)")],runsWithoutSubcommand:!0,examples:[{name:"list a queue's open tasks",value:"tasks work/"},{name:"list what is ready to fix",value:"tasks work/ --state ready --label step=fix"}],subcommands:[{name:"create",description:"start a thread as a task, or with an ID, make that thread one: you own it. With --file, a plan of them",arguments:[{name:"channel|id",required:!0,description:"a channel, or a thread's ID to make a task of it as it is"},{name:"text",required:!1,description:"what to do, for a new thread: - reads it from stdin, and --file takes its place"}],options:[option("label","label it, to route it","k=v"),option("needs"),option("for","only this profile of yours claims it","profile"),claimNow,option("lease","with --claim: how long to hold it"),option("file",`a plan, from a JSON file (- reads stdin): an array of tasks, each { key?, text, labels?, needs?, for?, noSync?, attachments? }, all made, in as many writes as it takes. needs takes a key of the plan ("fix" or {"key": "fix"}) or a task that's there by its ID ("812" or {"id": "812"})`),option("no-sync"),option("idempotency-key","sending the same one again makes it once")],examples:[{name:"hand a fix to whoever takes fixes",value:'tasks create work "fix CVE-123 in acme/web" --label step=fix'},{name:"a review that waits for it",value:'tasks create work "review the fix for CVE-123" --label step=review --needs 812'},{name:"make a task of a thread that is there",value:"tasks create 812"},{name:"a plan of tasks that wait for each other",value:"tasks create work --file plan.json --idempotency-key migration-7"}]},{name:"claim",description:"hold a task for a lease, by its ID, or with --ready the oldest ready one in a channel",arguments:[{name:"id|channel",required:!0,description:"a task's ID, or with --ready a channel or a path prefix (work/)"}],options:[option("ready"),option("label","with --ready: one whose root has this label, one value exactly","k=v"),option("from"),option("wait"),option("lease")],examples:[{name:"claim a task",value:"tasks claim 812"},{name:"claim the next fix, waiting for one",value:"tasks claim --ready work/ --label step=fix --wait 10m"}]},{name:"run",description:"claim a task and run a command on it: renew while it runs, complete on exit 0, fail otherwise",arguments:[{name:"id|channel",required:!0,description:"a task's ID, or with --ready a channel or a path prefix"},{name:"cmd",required:!0,multiple:!0,description:"the command, after --: it gets BOARD_TASK, the task's ID"}],options:[option("result"),option("ready"),option("label","with --ready: one whose root has this label, one value exactly","k=v"),option("from"),option("wait"),option("lease")],examples:[{name:"run the tests as a task",value:'tasks run 812 --result "tests pass" -- make test'},{name:"work the next fix",value:"tasks run --ready work/ --label step=fix -- ./fix.sh"}]},{name:"renew",description:"extend the lease of a task you hold, from now",arguments:[task()],options:[option("lease")],examples:[{name:"hold it for another 30 minutes",value:"tasks renew 812 --lease 30m"}]},{name:"release",description:"give a task you hold back: it is ready again",arguments:[task()],options:[],examples:[{name:"give a task back",value:"tasks release 812"}]},{name:"complete",description:"finish a task you hold: what waits only for it is ready",arguments:[task(),{name:"result",required:!1,description:"what it came to, in a line"}],options:[],examples:[{name:"complete a task",value:'tasks complete 812 "fixed in a1b2c3, tests pass"'}]},{name:"fail",description:"give up on a task you hold: what waits for it keeps waiting, until it's reopened",arguments:[task(),{name:"reason",required:!0,description:"why, in a line"}],options:[],examples:[{name:"fail a task",value:'tasks fail 812 "the tests need a database"'}]},{name:"block",description:"hold a task for a person: with your claim, which it ends, or as its owner",arguments:[task(),{name:"reason",required:!0,description:"what you need from them"}],options:[option("kind")],examples:[{name:"ask for approval",value:'tasks block 813 "approve the prod deploy?" --kind awaiting_approval'}]},{name:"unblock",description:"lift a hold, as its owner: ready again, or waiting while a task it needs has not completed",arguments:[task()],options:[],examples:[{name:"lift a hold",value:"tasks unblock 813"}]},{name:"reopen",description:"make a failed task ready again, as its owner",arguments:[task()],options:[],examples:[{name:"retry a failed task",value:"tasks reopen 812"}]},{name:"assign",description:"keep a task for one of its owner's profiles, or with --pool, for anyone who may claim it",arguments:[task(),{name:"profile",required:!1,description:"a profile of the task's owner, such as fixer"}],options:[option("pool")],examples:[{name:"keep it for the fixer",value:"tasks assign 812 fixer"},{name:"back to the pool",value:"tasks assign 812 --pool"}]},{name:"needs",description:"set what a task waits for, as its owner: the tasks named, in place of what it waited for",arguments:[task(),{name:"needs",required:!1,multiple:!0,description:"the tasks it waits for now, by ID"}],options:[option("none")],examples:[{name:"wait for two tasks",value:"tasks needs 814 812 813"},{name:"wait for nothing",value:"tasks needs 814 --none"}]},{name:"cancel",description:"cancel a task that has not completed, as its owner: any claim ends",arguments:[task(),{name:"reason",required:!0,description:"why, in a line"}],options:[],examples:[{name:"cancel a task",value:'tasks cancel 812 "superseded by #820"'}]}]},{group:"agents",name:"hooks",description:"the turn-end hooks an earlier board installed",arguments:[],options:[],examples:[],subcommands:[{name:"uninstall",description:"remove the turn-end hooks an earlier board installed, from every agent or the ones named",arguments:[{name:"agent",required:!1,multiple:!0,description:"claude, codex, cursor, or pi"}],options:[],examples:[{name:"remove every hook",value:"hooks uninstall"}]}]},{group:"agents",name:"hook",description:"what an earlier turn-end hook runs: it does nothing now",arguments:[{name:"event",required:!1,multiple:!0}],options:[option("agent")],examples:[],hidden:!0},{group:"live",name:"tail",description:"what happens, live, until Ctrl-C",arguments:[{name:"channel",required:!1,description:"a channel, or a path prefix (dev/)"}],options:[option("all","delivery receipts too"),option("last")],filters:!0,examples:[{name:"follow the bugs",value:"tail dev --label kind=bug"},{name:"start with a channel's newest 20 events, then follow",value:"tail dev --last 20"}]},{group:"live",name:"wait",brief:"[--after id] [--timeout 10m]",description:"block for the next match and print it",arguments:[{name:"channel|id",required:!1,description:"a channel, a path prefix (dev/), or a message's ID: what comes after it in its thread"}],options:[option("timeout")],filters:!0,examples:[{name:'wait for a mention: it sees only what comes after it starts, so read dev --mentions first. When none comes in time it says "Nothing matched" and exits 1',value:"wait dev --mentions --timeout 10m"},{name:"wait for a reply in a thread, from the last message you read so none is missed",value:"wait --re 812 --after 815 --timeout 10m"}]},{group:"live",name:"help",description:"this help, or a command's",arguments:[{name:"command",required:!1,multiple:!0}],options:[],examples:[],hidden:!0}];function usage(path){let words=[];return path.forEach((command,at)=>{let last=at===path.length-1;if(words.push(command.name),last||command.argumentsBeforeSubcommand)for(let argument of command.arguments){let required=argument.required||!last;words.push(`${required?`<${argument.name}>`:`[${argument.name}]`}${argument.multiple?"...":""}`)}}),path.at(-1)?.filters&&words.push("[filters]"),words.join(" ")}export{options,filters,globalOptions,groups,commands,usage};
@@ -4,7 +4,7 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{require_signal_exit}from"./chunk-BLUPZPAS.js";import{require_dist}from"./chunk-MCYG7CCE.js";import{require_ansi_escapes}from"./chunk-YHPPP3SF.js";import{chars_default}from"./chunk-2BKALEOP.js";import{require_source}from"./chunk-NB2WLB3J.js";import{require_has_flag,require_supports_color}from"./chunk-ISWW3DKF.js";import{require_string_width,require_strip_ansi}from"./chunk-BULSRTQE.js";import{__commonJS,__esm,__export,__toESM}from"./chunk-BZENIQ7N.js";var dist_exports={};__export(dist_exports,{Diagnostic:()=>Diagnostic,createConsoleReporter:()=>createConsoleReporter,defineDiagnostics:()=>defineDiagnostics,defineProdDiagnostics:()=>defineProdDiagnostics,formatDiagnostic:()=>formatDiagnostic});function formatDiagnostic(diagnostic){let header=`[${diagnostic.name}] ${diagnostic.message}`,details=[];return diagnostic.fix&&details.push(`fix: ${diagnostic.fix}`),diagnostic.sources?.length&&details.push(`sources: ${diagnostic.sources.join(", ")}`),diagnostic.docs&&details.push(`see: ${diagnostic.docs}`),details.length===0?header:[header,...details.map((detail,i)=>`${i<details.length-1?"\u251C\u25B6":"\u2570\u25B6"} ${detail}`)].join(`
7
+ import{require_signal_exit}from"./chunk-BLUPZPAS.js";import{require_dist}from"./chunk-MCYG7CCE.js";import{require_ansi_escapes}from"./chunk-YHPPP3SF.js";import{chars_default}from"./chunk-2BKALEOP.js";import{require_source}from"./chunk-NB2WLB3J.js";import{require_has_flag,require_supports_color}from"./chunk-ISWW3DKF.js";import{require_string_width}from"./chunk-67GZ5REA.js";import{require_strip_ansi}from"./chunk-BS32OUOC.js";import{__commonJS,__esm,__export,__toESM}from"./chunk-BZENIQ7N.js";var dist_exports={};__export(dist_exports,{Diagnostic:()=>Diagnostic,createConsoleReporter:()=>createConsoleReporter,defineDiagnostics:()=>defineDiagnostics,defineProdDiagnostics:()=>defineProdDiagnostics,formatDiagnostic:()=>formatDiagnostic});function formatDiagnostic(diagnostic){let header=`[${diagnostic.name}] ${diagnostic.message}`,details=[];return diagnostic.fix&&details.push(`fix: ${diagnostic.fix}`),diagnostic.sources?.length&&details.push(`sources: ${diagnostic.sources.join(", ")}`),diagnostic.docs&&details.push(`see: ${diagnostic.docs}`),details.length===0?header:[header,...details.map((detail,i)=>`${i<details.length-1?"\u251C\u25B6":"\u2570\u25B6"} ${detail}`)].join(`
8
8
  `)}function toValueWithArgs(valFn,...args){return typeof valFn=="function"?valFn(...args):valFn}function createConsoleReporter({method:defaultMethod="warn",formatter=formatDiagnostic}={}){return(diagnostic,{method=defaultMethod}={})=>{console[method](formatter(diagnostic))}}function deriveDocs(docsBase,code){return typeof docsBase=="string"?`${docsBase}/${code.toLowerCase()}`:docsBase?.(code)}function defineDiagnostics(options){let reporters=options.reporters??[],result={},{docsBase}=options;for(let code of Object.keys(options.codes)){let def=options.codes[code],docs=def.docs===!1?void 0:def.docs||deriveDocs(docsBase,code),handle=(params={},reporterOptions={})=>{let diagnostic=new Diagnostic({why:toValueWithArgs(def.why,params),fix:toValueWithArgs(def.fix,params),docs,cause:params.cause,sources:params.sources},handle);diagnostic.name=code;for(let reporter of reporters)reporter(diagnostic,reporterOptions);return diagnostic};result[code]=handle}return result}function defineProdDiagnostics(options={}){let{docsBase,reporters=[]}=options;return new Proxy({},{get(_target,code){if(typeof code!="string")return;let handle=(params={},reporterOptions={})=>{let diagnostic=new Diagnostic({why:code,docs:deriveDocs(docsBase,code),cause:params.cause,sources:params.sources},handle);diagnostic.name=code;for(let reporter of reporters)reporter(diagnostic,reporterOptions);return diagnostic};return handle}})}var captureStackTrace,Diagnostic,init_dist=__esm({"../../node_modules/.pnpm/nostics@1.1.4/node_modules/nostics/dist/index.mjs"(){captureStackTrace=Error.captureStackTrace,Diagnostic=class Diagnostic2 extends Error{name="Diagnostic";docs;fix;sources;get why(){return this.message}constructor(init,captureFrom=Diagnostic2){super(init.why,{cause:init.cause}),this.fix=init.fix,this.docs=init.docs,this.sources=init.sources,captureStackTrace?.(this,captureFrom)}toJSON(){return{name:this.name,why:this.why,fix:this.fix,docs:this.docs,sources:this.sources,cause:this.cause,stack:this.stack}}}}});var require_supports_hyperlinks=__commonJS({"../../node_modules/.pnpm/supports-hyperlinks@3.0.0/node_modules/supports-hyperlinks/index.js"(exports,module){"use strict";var supportsColor=require_supports_color(),hasFlag=require_has_flag();function parseVersion(versionString){if(/^\d{3,4}$/.test(versionString)){let m=/(\d{1,2})(\d{2})/.exec(versionString)||[];return{major:0,minor:parseInt(m[1],10),patch:parseInt(m[2],10)}}let versions=(versionString||"").split(".").map(n=>parseInt(n,10));return{major:versions[0],minor:versions[1],patch:versions[2]}}function supportsHyperlink(stream){let{CI,FORCE_HYPERLINK,NETLIFY,TEAMCITY_VERSION,TERM_PROGRAM,TERM_PROGRAM_VERSION,VTE_VERSION}=process.env;if(FORCE_HYPERLINK)return!(FORCE_HYPERLINK.length>0&&parseInt(FORCE_HYPERLINK,10)===0);if(hasFlag("no-hyperlink")||hasFlag("no-hyperlinks")||hasFlag("hyperlink=false")||hasFlag("hyperlink=never"))return!1;if(hasFlag("hyperlink=true")||hasFlag("hyperlink=always")||NETLIFY)return!0;if(!supportsColor.supportsColor(stream)||stream&&!stream.isTTY||process.platform==="win32"||CI||TEAMCITY_VERSION)return!1;if(TERM_PROGRAM){let version=parseVersion(TERM_PROGRAM_VERSION||"");switch(TERM_PROGRAM){case"iTerm.app":return version.major===3?version.minor>=1:version.major>3;case"WezTerm":return version.major>=20200620;case"vscode":return version.major>1||version.major===1&&version.minor>=72}}if(VTE_VERSION){if(VTE_VERSION==="0.50.0")return!1;let version=parseVersion(VTE_VERSION);return version.major>0||version.minor>=50}return!1}module.exports={supportsHyperlink,stdout:supportsHyperlink(process.stdout),stderr:supportsHyperlink(process.stderr)}}});var import_chalk=__toESM(require_source(),1),link=import_chalk.default.cyan.underline,link_default=link;var import_ansi_escapes=__toESM(require_ansi_escapes(),1);function eraseLines(numberOfLines){return import_ansi_escapes.default.eraseLines(numberOfLines)}var emojiLabels={notice:"\u{1F4DD}",tip:"\u{1F4A1}",warning:"\u2757\uFE0F",link:"\u{1F517}",inspect:"\u{1F50D}",success:"\u2705",locked:"\u{1F512}",loading:"\u23F3"},stripEmojiRegex=new RegExp(Object.values(emojiLabels).join("|"),"gi");function emoji(label){return emojiLabels[label]}function prependEmoji(message,emoji2){return emoji2&&process.stdout.isTTY?`${emoji2} ${message}`:message}function removeEmoji(message){let result=message.replace(stripEmojiRegex,"");return result.startsWith(`
9
9
  `)?result:result.trimStart()}init_dist();var UNCLASSIFIED_ERROR_CODE="UNCLASSIFIED_ERROR",MAX_SCANNED_OUTPUT_LENGTH=64*1024,recorded;function stringProperty(value,key){if(typeof value=="object"&&value!==null&&key in value){let property=value[key];if(typeof property=="string")return property}}function numberProperty(value,key){if(typeof value=="object"&&value!==null&&key in value){let property=value[key];if(typeof property=="number")return property}}function cliErrorFromUnknown(err,{includeMessage=!1}={}){let code=err instanceof Diagnostic&&err.name!=="Diagnostic"?err.name:stringProperty(err,"code");return{status:numberProperty(err,"status"),code:code??(err instanceof Error&&err.name!=="Error"&&err.name!=="Diagnostic"?err.name:void 0),slug:stringProperty(err,"slug"),action:stringProperty(err,"action"),serverMessage:includeMessage?stringProperty(err,"serverMessage")??stringProperty(err,"message"):void 0}}function recordCliError(details,{override=!1}={}){recorded&&!override&&(recorded.code||!details.code)||(recorded=details)}function recordCliErrorFromOutput(chunk){if(typeof chunk!="string"||chunk.length>MAX_SCANNED_OUTPUT_LENGTH||!chunk.includes('"reason"'))return;let text=chunk.trim();if(!text.startsWith("{"))return;let payload;try{payload=JSON.parse(text)}catch{return}let status=stringProperty(payload,"status"),reason=stringProperty(payload,"reason");(status==="error"||status==="action_required")&&reason&&recordCliError({code:reason})}function peekCliError(){return recorded}function takeCliError(){let details=recorded;return recorded=void 0,details}var import_chalk3=__toESM(require_source(),1),ansiEscapes2=__toESM(require_ansi_escapes(),1),import_supports_hyperlinks=__toESM(require_supports_hyperlinks(),1);var import_chalk2=__toESM(require_source(),1),import_signal_exit=__toESM(require_signal_exit(),1),import_string_width=__toESM(require_string_width(),1),import_strip_ansi=__toESM(require_strip_ansi(),1);var SPINNER=process.platform==="win32"?{frames:["-","\\","|","/"],interval:130}:{frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],interval:80},BEGIN_SYNC="\x1B[?2026h",END_SYNC="\x1B[?2026l",HIDE_CURSOR="\x1B[?25l",SHOW_CURSOR="\x1B[?25h",SAVE_CURSOR="\x1B7",RESTORE_CURSOR="\x1B8";function sync(data){return BEGIN_SYNC+data+END_SYNC}function countRows(line,columns){return(0,import_strip_ansi.default)(line).split(`
10
10
  `).reduce((rows,part)=>rows+Math.max(1,Math.ceil((0,import_string_width.default)(part)/columns)),0)}var Spinner=class{constructor(text,stream){this.frameIndex=0;this.interval=null;this.removeExitHandler=null;this.renderedText=null;this.renderedColumns=0;this.renderedRows=0;this.text=text,this.stream=stream}setText(text){this.text=text}start(){this.removeExitHandler=(0,import_signal_exit.default)(()=>{this.stream.write(SHOW_CURSOR)}),this.stream.write(HIDE_CURSOR),this.render(),this.interval=setInterval(()=>this.render(),SPINNER.interval)}stop(){this.interval&&(clearInterval(this.interval),this.interval=null),this.removeExitHandler?.(),this.removeExitHandler=null,this.stream.write(sync(this.erase())+SHOW_CURSOR)}render(){let glyph=import_chalk2.default.gray(SPINNER.frames[this.frameIndex]);this.frameIndex=(this.frameIndex+1)%SPINNER.frames.length;let columns=this.stream.columns||80;if(this.text===this.renderedText&&columns===this.renderedColumns){let up=this.renderedRows-1;this.stream.write(sync(SAVE_CURSOR+(up>0?`\x1B[${up}A`:"")+"\r"+glyph+RESTORE_CURSOR));return}let line=`${glyph} ${import_chalk2.default.gray(this.text)}`;this.stream.write(sync(this.erase()+line)),this.renderedText=this.text,this.renderedColumns=columns,this.renderedRows=countRows(line,columns)}erase(){let rows=this.renderedRows;return this.renderedText=null,this.renderedRows=0,rows>0?eraseLines(rows):""}};function wait(opts,delay=300){let text=opts.text,stream=opts.stream??process.stderr,spinner=null;if(typeof text!="string")throw new Error('"text" is required for spinner');let timeout=setTimeout(()=>{if(!stream.isTTY||process.env.CI){stream.write(`- ${text}
@@ -4,6 +4,6 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{decodeListCursor}from"./chunk-D2E4COIY.js";import{external_exports}from"./chunk-2AMO2VMV.js";import{parseListLimit}from"./chunk-PFOOPXTN.js";import{AGENT_ACTION,AGENT_REASON,AGENT_STATUS,getExitCodeForReason,outputActionRequired,outputAgentError}from"./chunk-4SS6W6JK.js";import{validateJsonOutput}from"./chunk-FEJD7MRH.js";import{isAPIError}from"./chunk-GOI2VVI7.js";import{getCommandName,getCommandNamePlain}from"./chunk-B4KA3ZH2.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import{getGlobalFlagsFromArgs}from"./chunk-CFJBDBYH.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var OrganizationResponseError=class extends Error{};function handleOrganizationApiError(client,err,failed){if(!isAPIError(err)){output_manager_default.debug(`Organization request failed: ${err}`);let cause=err instanceof OrganizationResponseError?err.message:"";return report(client,{reason:AGENT_REASON.API_ERROR,message:`Failed to ${failed.action}.${cause?` ${cause}`:""}`})}let remote=stripControlCharacters(err.serverMessage||"");if(err.status===404)return report(client,{reason:AGENT_REASON.NOT_FOUND,message:failed.notFound??`Couldn't ${failed.action}. It wasn't found.`});if(err.status===403)return report(client,{reason:AGENT_REASON.PERMISSION_DENIED,message:`You can't ${failed.action}.`,remote,action:err.action,resource:typeof err.resource=="string"?err.resource:void 0});let plan=typeof err.code=="string"&&PLAN_CAUSES[err.code];if(plan)return report(client,{reason:AGENT_REASON.PLAN_LIMIT,message:`Can't ${failed.action}. ${plan}.`,remote});if(err.status===409){let conflict=typeof err.code=="string"&&CONFLICT_CAUSES[err.code];return report(client,{reason:AGENT_REASON.CONFLICT,message:`Can't ${failed.action}. ${conflict||"It conflicts with the current state of the organization or team"}.`,remote})}return err.status===429?report(client,{reason:AGENT_REASON.RATE_LIMITED,message:"Too many requests to the Vercel API. Try again later."}):report(client,{reason:AGENT_REASON.API_ERROR,message:`Failed to ${failed.action}.`,remote})}var CONFLICT_CAUSES={already_exists:"Another organization uses this slug",slug_conflict:"Another team uses this slug",team_already_in_organization:"The team already belongs to an organization",team_organization_transfer_in_progress:"The team is already moving to an organization"},PLAN_CAUSES={invalid_billing_plan:"The team's billing plan doesn't allow it",child_team_limit_reached:"The organization has reached its limit of enterprise child teams",team_already_enterprise:"An existing Enterprise team can't become an enterprise child team"};function stripControlCharacters(text){return text.replace(/[\u0000-\u001f\u007f-\u009f]/g," ").trim()}function report(client,failure){let payload={status:AGENT_STATUS.ERROR,reason:failure.reason,message:failure.message};return failure.remote&&(payload.data={remoteMessage:failure.remote}),failure.action&&(payload.action=failure.action),failure.resource&&(payload.resource=failure.resource),outputAgentError(client,payload,1),output_manager_default.error(failure.message),failure.remote&&output_manager_default.log(` Vercel API: ${failure.remote}`),1}var organizationSchema=external_exports.looseObject({organizationId:external_exports.string(),slug:external_exports.string(),name:external_exports.string().optional(),teamId:external_exports.string(),teamCount:external_exports.number(),createdAt:external_exports.string(),updatedAt:external_exports.string()}),teamSchema=external_exports.looseObject({organizationId:external_exports.string(),teamId:external_exports.string(),ssoMode:external_exports.string(),billingPlan:external_exports.string().optional(),createdAt:external_exports.string(),updatedAt:external_exports.string()}),teamsSchema=external_exports.object({teams:external_exports.array(teamSchema.extend({slug:external_exports.string(),name:external_exports.string().nullable(),avatar:external_exports.string().nullable()})),cursor:external_exports.string().nullable().optional()});async function request(client,path,schema,options={}){let fetchOptions={...options,useCurrentTeam:!1};options.method&&options.method!=="GET"&&(fetchOptions.retry={retries:0},fetchOptions.bailOn429=!0);let data=await client.fetch(`/v1/organizations${path}`,fetchOptions),result=schema.safeParse(data);if(!result.success){let paths=[...new Set(result.error.issues.map(issue=>issue.path.length?issue.path.join("."):"<root>"))].slice(0,5);throw new OrganizationResponseError(`The Organizations API returned an invalid response at ${paths.join(", ")}.`)}return result.data}function listOrganizations(client){return request(client,"",external_exports.object({organizations:external_exports.array(organizationSchema)}))}function getOrganization(client,id){return request(client,`/${encodeURIComponent(id)}`,organizationSchema)}function createOrganization(client,rootTeamId,body){let query=new URLSearchParams({teamId:rootTeamId});return request(client,`?${query}`,organizationSchema,{method:"POST",body})}function updateOrganization(client,id,slug){return request(client,`/${encodeURIComponent(id)}`,organizationSchema,{method:"PATCH",body:{slug}})}function listOrganizationTeams(client,id,cursor){let query=cursor===void 0?"":`?${new URLSearchParams({cursor})}`;return request(client,`/${encodeURIComponent(id)}/teams${query}`,teamsSchema)}function addOrganizationTeam(client,id,body){return request(client,`/${encodeURIComponent(id)}/teams`,teamSchema,{method:"POST",body})}var import_chalk=__toESM(require_source(),1);var idSchema=external_exports.string().max(256).regex(/^[a-zA-Z0-9_-]+$/),slugSchema=external_exports.string().min(1).max(48).regex(/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/),nameSchema=external_exports.string().min(1).max(256).refine(value=>value.trim().length>0&&!/[\x00-\x1f\x7f]/.test(value)),billingPlanSchema=external_exports.enum(["platform","enterprise"]),ORGANIZATION_ID_PREFIX="org_",TEAM_ID_PREFIX="team_";function isPrefixedId(value,prefix){return value.startsWith(prefix)&&value.length>prefix.length&&idSchema.safeParse(value).success}var SLUG_MESSAGE="Provide --slug with 1-48 lowercase letters, numbers, or hyphens, beginning and ending with a letter or number.",NAME_MESSAGE="Provide --name with 1-256 characters and no control characters.",PLAN_MESSAGE="Use --billing-plan platform or --billing-plan enterprise.";function organizationsSuggestion(subcommand,argv){let globalFlags=getGlobalFlagsFromArgs(argv.slice(2)),full=globalFlags.length?`${subcommand} ${globalFlags.join(" ")}`:subcommand;return getCommandNamePlain(full)}function missingArgument(client,options){let next=[];return options.suggestList&&next.push({command:organizationsSuggestion("organizations list",client.argv),when:"List organizations to find an ID"}),next.push({command:organizationsSuggestion(options.usage,client.argv)}),outputActionRequired(client,{status:AGENT_STATUS.ACTION_REQUIRED,action:AGENT_ACTION.MISSING_ARGUMENTS,reason:options.reason,message:options.message,next}),output_manager_default.error(options.message),output_manager_default.log(`Usage: ${import_chalk.default.cyan(getCommandName(options.usage))}`),getExitCodeForReason(options.reason)}function invalidArgument(client,message){return outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:AGENT_REASON.INVALID_ARGUMENTS,message}),output_manager_default.error(message),2}function invalidArgumentCount(client,usage){let message=`Too many arguments. Usage: ${getCommandNamePlain(usage)}`;return outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:AGENT_REASON.INVALID_ARGUMENTS,message}),output_manager_default.error(`Invalid number of arguments. Usage: ${import_chalk.default.cyan(getCommandName(usage))}`),2}function validate(client,schema,value,options){if(value===void 0)return{status:"error",exitCode:missingArgument(client,{...options,reason:AGENT_REASON.MISSING_ARGUMENTS})};let parsed=schema.safeParse(value);return parsed.success?{status:"ok",value:parsed.data}:{status:"error",exitCode:invalidArgument(client,options.message)}}function validateOptional(client,schema,value,message){if(value===void 0)return{status:"ok",value:void 0};let parsed=schema.safeParse(value);return parsed.success?{status:"ok",value:parsed.data}:{status:"error",exitCode:invalidArgument(client,message)}}function outputFormat(client,flags){let format=validateJsonOutput(flags);return format.valid?{status:"ok",value:format.jsonOutput}:{status:"error",exitCode:invalidArgument(client,format.error)}}function noArguments(client,args,usage){return args.length?{status:"error",exitCode:invalidArgumentCount(client,usage)}:{status:"ok",value:void 0}}function unknownCommand(client,group,segment){let path=getCommandNamePlain(group),message=segment?`Unknown command ${segment} for ${path}.`:`Missing command for ${path}.`;return outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:segment?"unknown_command":"missing_command",message,next:[{command:`${path} --help`,when:"See all commands"}]}),output_manager_default.error(message),output_manager_default.log(`
7
+ import{decodeListCursor}from"./chunk-ZBZQEDZY.js";import{external_exports}from"./chunk-2AMO2VMV.js";import{parseListLimit}from"./chunk-7RABG6HV.js";import{AGENT_ACTION,AGENT_REASON,AGENT_STATUS,getExitCodeForReason,outputActionRequired,outputAgentError}from"./chunk-NTSJNYRU.js";import{validateJsonOutput}from"./chunk-KA2KG3SY.js";import{isAPIError}from"./chunk-QFE3RPMA.js";import{getCommandName,getCommandNamePlain}from"./chunk-B4KA3ZH2.js";import{output_manager_default}from"./chunk-RYSO5U3E.js";import{getGlobalFlagsFromArgs}from"./chunk-DORCX7UB.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var OrganizationResponseError=class extends Error{};function handleOrganizationApiError(client,err,failed){if(!isAPIError(err)){output_manager_default.debug(`Organization request failed: ${err}`);let cause=err instanceof OrganizationResponseError?err.message:"";return report(client,{reason:AGENT_REASON.API_ERROR,message:`Failed to ${failed.action}.${cause?` ${cause}`:""}`})}let remote=stripControlCharacters(err.serverMessage||"");if(err.status===404)return report(client,{reason:AGENT_REASON.NOT_FOUND,message:failed.notFound??`Couldn't ${failed.action}. It wasn't found.`});if(err.status===403)return report(client,{reason:AGENT_REASON.PERMISSION_DENIED,message:`You can't ${failed.action}.`,remote,action:err.action,resource:typeof err.resource=="string"?err.resource:void 0});let plan=typeof err.code=="string"&&PLAN_CAUSES[err.code];if(plan)return report(client,{reason:AGENT_REASON.PLAN_LIMIT,message:`Can't ${failed.action}. ${plan}.`,remote});if(err.status===409){let conflict=typeof err.code=="string"&&CONFLICT_CAUSES[err.code];return report(client,{reason:AGENT_REASON.CONFLICT,message:`Can't ${failed.action}. ${conflict||"It conflicts with the current state of the organization or team"}.`,remote})}return err.status===429?report(client,{reason:AGENT_REASON.RATE_LIMITED,message:"Too many requests to the Vercel API. Try again later."}):report(client,{reason:AGENT_REASON.API_ERROR,message:`Failed to ${failed.action}.`,remote})}var CONFLICT_CAUSES={already_exists:"Another organization uses this slug",slug_conflict:"Another team uses this slug",team_already_in_organization:"The team already belongs to an organization",team_organization_transfer_in_progress:"The team is already moving to an organization"},PLAN_CAUSES={invalid_billing_plan:"The team's billing plan doesn't allow it",child_team_limit_reached:"The organization has reached its limit of enterprise child teams",team_already_enterprise:"An existing Enterprise team can't become an enterprise child team"};function stripControlCharacters(text){return text.replace(/[\u0000-\u001f\u007f-\u009f]/g," ").trim()}function report(client,failure){let payload={status:AGENT_STATUS.ERROR,reason:failure.reason,message:failure.message};return failure.remote&&(payload.data={remoteMessage:failure.remote}),failure.action&&(payload.action=failure.action),failure.resource&&(payload.resource=failure.resource),outputAgentError(client,payload,1),output_manager_default.error(failure.message),failure.remote&&output_manager_default.log(` Vercel API: ${failure.remote}`),1}var organizationSchema=external_exports.looseObject({organizationId:external_exports.string(),slug:external_exports.string(),name:external_exports.string().optional(),teamId:external_exports.string(),teamCount:external_exports.number(),createdAt:external_exports.string(),updatedAt:external_exports.string()}),teamSchema=external_exports.looseObject({organizationId:external_exports.string(),teamId:external_exports.string(),ssoMode:external_exports.string(),billingPlan:external_exports.string().optional(),createdAt:external_exports.string(),updatedAt:external_exports.string()}),teamsSchema=external_exports.object({teams:external_exports.array(teamSchema.extend({slug:external_exports.string(),name:external_exports.string().nullable(),avatar:external_exports.string().nullable()})),cursor:external_exports.string().nullable().optional()});async function request(client,path,schema,options={}){let fetchOptions={...options,useCurrentTeam:!1};options.method&&options.method!=="GET"&&(fetchOptions.retry={retries:0},fetchOptions.bailOn429=!0);let data=await client.fetch(`/v1/organizations${path}`,fetchOptions),result=schema.safeParse(data);if(!result.success){let paths=[...new Set(result.error.issues.map(issue=>issue.path.length?issue.path.join("."):"<root>"))].slice(0,5);throw new OrganizationResponseError(`The Organizations API returned an invalid response at ${paths.join(", ")}.`)}return result.data}function listOrganizations(client){return request(client,"",external_exports.object({organizations:external_exports.array(organizationSchema)}))}function getOrganization(client,id){return request(client,`/${encodeURIComponent(id)}`,organizationSchema)}function createOrganization(client,rootTeamId,body){let query=new URLSearchParams({teamId:rootTeamId});return request(client,`?${query}`,organizationSchema,{method:"POST",body})}function updateOrganization(client,id,slug){return request(client,`/${encodeURIComponent(id)}`,organizationSchema,{method:"PATCH",body:{slug}})}function listOrganizationTeams(client,id,cursor){let query=cursor===void 0?"":`?${new URLSearchParams({cursor})}`;return request(client,`/${encodeURIComponent(id)}/teams${query}`,teamsSchema)}function addOrganizationTeam(client,id,body){return request(client,`/${encodeURIComponent(id)}/teams`,teamSchema,{method:"POST",body})}var import_chalk=__toESM(require_source(),1);var idSchema=external_exports.string().max(256).regex(/^[a-zA-Z0-9_-]+$/),slugSchema=external_exports.string().min(1).max(48).regex(/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/),nameSchema=external_exports.string().min(1).max(256).refine(value=>value.trim().length>0&&!/[\x00-\x1f\x7f]/.test(value)),billingPlanSchema=external_exports.enum(["platform","enterprise"]),ORGANIZATION_ID_PREFIX="org_",TEAM_ID_PREFIX="team_";function isPrefixedId(value,prefix){return value.startsWith(prefix)&&value.length>prefix.length&&idSchema.safeParse(value).success}var SLUG_MESSAGE="Provide --slug with 1-48 lowercase letters, numbers, or hyphens, beginning and ending with a letter or number.",NAME_MESSAGE="Provide --name with 1-256 characters and no control characters.",PLAN_MESSAGE="Use --billing-plan platform or --billing-plan enterprise.";function organizationsSuggestion(subcommand,argv){let globalFlags=getGlobalFlagsFromArgs(argv.slice(2)),full=globalFlags.length?`${subcommand} ${globalFlags.join(" ")}`:subcommand;return getCommandNamePlain(full)}function missingArgument(client,options){let next=[];return options.suggestList&&next.push({command:organizationsSuggestion("organizations list",client.argv),when:"List organizations to find an ID"}),next.push({command:organizationsSuggestion(options.usage,client.argv)}),outputActionRequired(client,{status:AGENT_STATUS.ACTION_REQUIRED,action:AGENT_ACTION.MISSING_ARGUMENTS,reason:options.reason,message:options.message,next}),output_manager_default.error(options.message),output_manager_default.log(`Usage: ${import_chalk.default.cyan(getCommandName(options.usage))}`),getExitCodeForReason(options.reason)}function invalidArgument(client,message){return outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:AGENT_REASON.INVALID_ARGUMENTS,message}),output_manager_default.error(message),2}function invalidArgumentCount(client,usage){let message=`Too many arguments. Usage: ${getCommandNamePlain(usage)}`;return outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:AGENT_REASON.INVALID_ARGUMENTS,message}),output_manager_default.error(`Invalid number of arguments. Usage: ${import_chalk.default.cyan(getCommandName(usage))}`),2}function validate(client,schema,value,options){if(value===void 0)return{status:"error",exitCode:missingArgument(client,{...options,reason:AGENT_REASON.MISSING_ARGUMENTS})};let parsed=schema.safeParse(value);return parsed.success?{status:"ok",value:parsed.data}:{status:"error",exitCode:invalidArgument(client,options.message)}}function validateOptional(client,schema,value,message){if(value===void 0)return{status:"ok",value:void 0};let parsed=schema.safeParse(value);return parsed.success?{status:"ok",value:parsed.data}:{status:"error",exitCode:invalidArgument(client,message)}}function outputFormat(client,flags){let format=validateJsonOutput(flags);return format.valid?{status:"ok",value:format.jsonOutput}:{status:"error",exitCode:invalidArgument(client,format.error)}}function noArguments(client,args,usage){return args.length?{status:"error",exitCode:invalidArgumentCount(client,usage)}:{status:"ok",value:void 0}}function unknownCommand(client,group,segment){let path=getCommandNamePlain(group),message=segment?`Unknown command ${segment} for ${path}.`:`Missing command for ${path}.`;return outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:segment?"unknown_command":"missing_command",message,next:[{command:`${path} --help`,when:"See all commands"}]}),output_manager_default.error(message),output_manager_default.log(`
8
8
  See all commands:
9
9
  ${path} --help`),2}function listWindow(client,flags){let limit;try{limit=parseListLimit(flags["--limit"])}catch(err){let message=err instanceof Error?err.message:String(err);return{status:"error",exitCode:invalidArgument(client,message)}}let next=flags["--next"];if(next===void 0)return{status:"ok",value:{limit,start:{offset:0}}};let start=decodeListCursor(next);return start?{status:"ok",value:{limit,start}}:{status:"error",exitCode:invalidArgument(client,"Provide --next with the cursor from the previous page.")}}export{OrganizationResponseError,handleOrganizationApiError,listOrganizations,getOrganization,createOrganization,updateOrganization,listOrganizationTeams,addOrganizationTeam,slugSchema,nameSchema,billingPlanSchema,ORGANIZATION_ID_PREFIX,TEAM_ID_PREFIX,isPrefixedId,SLUG_MESSAGE,NAME_MESSAGE,PLAN_MESSAGE,missingArgument,invalidArgument,invalidArgumentCount,validate,validateOptional,outputFormat,noArguments,unknownCommand,listWindow};
@@ -4,7 +4,7 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{require_dist as require_dist2}from"./chunk-KSGN5OCV.js";import{validateConfig}from"./chunk-76DSBD4X.js";import{compileVercelConfig,findSourceVercelConfigFile}from"./chunk-O7GNYVVM.js";import{init_dist,stringify}from"./chunk-U4Z2MMOF.js";import{applyEdits,findNodeAtLocation,init_main,modify,parse,parseTree}from"./chunk-J24BABG4.js";import{require_dist}from"./chunk-VPSR2O55.js";import{printAlignedLabel}from"./chunk-M7FED5YP.js";import{code}from"./chunk-GOI2VVI7.js";import{link_default,output_manager_default}from"./chunk-AP6DZGTK.js";import{require_build_utils}from"./chunk-5MDNVAE6.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1);init_main();init_dist();var import_build_utils=__toESM(require_build_utils(),1),import_fs_detectors=__toESM(require_dist(),1),import_service_topology=__toESM(require_dist2(),1);import{readFile,writeFile}from"fs/promises";import{basename}from"path";var EXPERIMENTAL_SERVICES_DOCS_URL="https://vercel.com/docs/services/experimental";async function prepareExperimentalServicesMigration(cwd,detectServicesResult){let compileResult=await compileVercelConfig(cwd);if(!compileResult.configPath)return null;let rawConfig=await readFile(compileResult.configPath,"utf8"),config=parse(rawConfig);if(!config||!(0,import_service_topology.hasLegacyServicesConfig)(config))return null;let resolvedServices=detectServicesResult?.resolved?.source==="configured"?detectServicesResult.services.filter(s=>(0,import_build_utils.isExperimentalService)(s)):void 0,plan=await(0,import_service_topology.migrateExperimentalServices)({fs:new import_fs_detectors.LocalFileSystemDetector(cwd),config,resolvedServices:resolvedServices&&resolvedServices.length>0?resolvedServices:void 0}),sourceFile=compileResult.sourceFile??basename(compileResult.configPath),preparation={plan,sourceFile,snippet:renderSnippet(sourceFile,plan)};if(plan.errors.length>0)return preparation;if(compileResult.wasCompiled)return preparation.writeBlocker=`${sourceFile} can't be updated automatically.`,preparation;let content=applyPlanToJson(rawConfig,config,plan),parseErrors=[],nextConfig=parse(content,parseErrors);if(parseErrors.length>0)return preparation.writeBlocker=`Couldn't produce a valid ${sourceFile}.`,preparation;let validationError=validateConfig(nextConfig);return validationError?(preparation.writeBlocker=validationError.message,preparation):(preparation.write={configPath:compileResult.configPath,content},preparation)}function applyPlanToJson(rawConfig,config,plan){let eol=rawConfig.includes(`\r
7
+ import{require_dist as require_dist2}from"./chunk-GT3JH2FU.js";import{validateConfig}from"./chunk-FFHV7BRT.js";import{compileVercelConfig,findSourceVercelConfigFile}from"./chunk-Z5HRQ3IQ.js";import{init_dist,stringify}from"./chunk-U4Z2MMOF.js";import{applyEdits,findNodeAtLocation,init_main,modify,parse,parseTree}from"./chunk-J24BABG4.js";import{require_dist}from"./chunk-EOUT7E7U.js";import{printAlignedLabel}from"./chunk-M2Q2DUHO.js";import{code}from"./chunk-QFE3RPMA.js";import{link_default,output_manager_default}from"./chunk-RYSO5U3E.js";import{require_build_utils}from"./chunk-5MDNVAE6.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1);init_main();init_dist();var import_build_utils=__toESM(require_build_utils(),1),import_fs_detectors=__toESM(require_dist(),1),import_service_topology=__toESM(require_dist2(),1);import{readFile,writeFile}from"fs/promises";import{basename}from"path";var EXPERIMENTAL_SERVICES_DOCS_URL="https://vercel.com/docs/services/experimental";async function prepareExperimentalServicesMigration(cwd,detectServicesResult){let compileResult=await compileVercelConfig(cwd);if(!compileResult.configPath)return null;let rawConfig=await readFile(compileResult.configPath,"utf8"),config=parse(rawConfig);if(!config||!(0,import_service_topology.hasLegacyServicesConfig)(config))return null;let resolvedServices=detectServicesResult?.resolved?.source==="configured"?detectServicesResult.services.filter(s=>(0,import_build_utils.isExperimentalService)(s)):void 0,plan=await(0,import_service_topology.migrateExperimentalServices)({fs:new import_fs_detectors.LocalFileSystemDetector(cwd),config,resolvedServices:resolvedServices&&resolvedServices.length>0?resolvedServices:void 0}),sourceFile=compileResult.sourceFile??basename(compileResult.configPath),preparation={plan,sourceFile,snippet:renderSnippet(sourceFile,plan)};if(plan.errors.length>0)return preparation;if(compileResult.wasCompiled)return preparation.writeBlocker=`${sourceFile} can't be updated automatically.`,preparation;let content=applyPlanToJson(rawConfig,config,plan),parseErrors=[],nextConfig=parse(content,parseErrors);if(parseErrors.length>0)return preparation.writeBlocker=`Couldn't produce a valid ${sourceFile}.`,preparation;let validationError=validateConfig(nextConfig);return validationError?(preparation.writeBlocker=validationError.message,preparation):(preparation.write={configPath:compileResult.configPath,content},preparation)}function applyPlanToJson(rawConfig,config,plan){let eol=rawConfig.includes(`\r
8
8
  `)?`\r
9
9
  `:`
10
10
  `,indent2=/^([ \t]+)\S/m.exec(rawConfig)?.[1]??" ",formattingOptions={eol,insertSpaces:!indent2.startsWith(" "),tabSize:indent2.startsWith(" ")?1:indent2.length},legacyKey=config.experimentalServices?"experimentalServices":"experimentalServicesV2",key=findNodeAtLocation(parseTree(rawConfig),[legacyKey]).parent.children[0],text=applyEdits(rawConfig,[{offset:key.offset,length:key.length,content:'"services"'}]);text=applyEdits(text,modify(text,["services"],plan.patch.services,{formattingOptions}));for(let key2 of plan.removeKeys)key2!==legacyKey&&(text=applyEdits(text,modify(text,[key2],void 0,{formattingOptions})));for(let[key2,value]of Object.entries(plan.patch.build?.env??{}))text=applyEdits(text,modify(text,["build","env",key2],value,{formattingOptions}));if(plan.patch.rewrites.length>0)if(Array.isArray(config.rewrites))for(let rewrite of plan.patch.rewrites)text=applyEdits(text,modify(text,["rewrites",-1],rewrite,{formattingOptions}));else text=applyEdits(text,modify(text,["rewrites"],plan.patch.rewrites,{formattingOptions,getInsertionIndex:keys=>keys.indexOf("services")+1}));return text.endsWith(`
@@ -0,0 +1,7 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __dirname_ } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __dirname_(__filename);
7
+ import{tracesConfigCommand}from"./chunk-T44RB754.js";import{packageName}from"./chunk-B4KA3ZH2.js";import{deploymentOption,nextCursorOption,projectOption,protectionBypassOption,sinceOption,untilOption,yesOption}from"./chunk-DORCX7UB.js";var spanQueryOptions=[{...projectOption,shorthand:"p",description:"Filter spans to one project (default: all team projects)"},{name:"environment",shorthand:"e",type:String,argument:"ENVIRONMENT",deprecated:!1,description:"Environment: production or preview (case-insensitive)"},{name:"service",shorthand:null,type:String,deprecated:!1,description:"Filter by service name"},{name:"name",shorthand:null,type:String,deprecated:!1,description:"Filter by span name"},{name:"kind",shorthand:null,type:String,deprecated:!1,description:"Filter by span kind: unspecified (0), internal (1), server (2), client (3), producer (4), consumer (5)"},{name:"status",shorthand:null,type:String,deprecated:!1,description:"Status: error, ok, or unset (case-insensitive)"},{...deploymentOption,description:"Filter by deployment ID"},{name:"deployment-id",shorthand:null,type:String,deprecated:!0},{name:"request-id",shorthand:null,type:String,deprecated:!1,description:"Filter by request ID. Some IDs return 404 in traces inspect. Reuse --scope and --project. See traces inspect --help."},{name:"trace",shorthand:null,type:String,argument:"TRACE",deprecated:!1,description:"Filter by trace ID"},{name:"trace-id",shorthand:null,type:String,deprecated:!0},{name:"span",shorthand:null,type:String,argument:"SPAN",deprecated:!1,description:"Filter by span ID"},{name:"span-id",shorthand:null,type:String,deprecated:!0},{name:"root",shorthand:null,type:Boolean,deprecated:!1,description:"Show root spans only"},{...sinceOption,description:`${sinceOption.description} (default: 1h ago)`},untilOption];var requestIdLookupHelp={title:"Request-ID lookup",body:["A request ID in search results does not guarantee traces inspect can retrieve the trace. Lookup requires a matching root span in the same project within 30 minutes after the request-ID timestamp.","","If no matching root is found, lookup returns 404. Use the same --scope and --project for search and inspect."]},getSubcommand={name:"inspect",aliases:["get"],default:!0,description:"Show a captured trace by trace ID or request ID",helpSections:[{title:"Trace-ID lookup",body:["A 32-character hexadecimal ID selects trace-ID lookup. Other IDs select request-ID lookup.","Trace-ID lookup retrieves the trace directly within the trace retention window. Use the same --scope and --project as search."]},requestIdLookupHelp],arguments:[{name:"id",required:!0}],options:[{name:"json",shorthand:null,type:Boolean,deprecated:!1,description:"Print the raw trace JSON to stdout"},{name:"project",shorthand:"p",type:String,argument:"NAME|ID",deprecated:!1,description:"Project that owns the trace (default: linked project)"},{name:"open",shorthand:null,type:Boolean,deprecated:!1,description:"Open the trace in the Vercel Dashboard instead of printing it."},{name:"view",shorthand:null,type:String,argument:"timeline|tree|waterfall",deprecated:!1,description:"Dashboard view to open (default: timeline). Only valid with --open."},{name:"full",shorthand:null,type:Boolean,deprecated:!1,description:"Show every span on its own row, instead of capping the span tree at 96 rows and grouping repeated sibling spans."}],examples:[{name:"Inspect a trace by trace ID",value:`${packageName} traces inspect e5c0d1efb3904155472b01692c7f2d00`},{name:"Inspect a trace by request ID",value:`${packageName} traces inspect qb46r-1790847620933-1145d2891a3e`},{name:"Print the raw trace JSON",value:`${packageName} traces inspect e5c0d1efb3904155472b01692c7f2d00 --json`},{name:"Inspect a trace without typing the default inspect subcommand",value:`${packageName} traces e5c0d1efb3904155472b01692c7f2d00`},{name:"Inspect a trace from a specific team and project",value:`${packageName} traces inspect e5c0d1efb3904155472b01692c7f2d00 --scope my-team --project my-app`},{name:"List every span instead of the capped, grouped tree",value:`${packageName} traces inspect e5c0d1efb3904155472b01692c7f2d00 --full`},{name:"Open the trace in the Vercel Dashboard",value:`${packageName} traces inspect e5c0d1efb3904155472b01692c7f2d00 --open`},{name:"Open the trace in the Vercel Dashboard with the waterfall view",value:`${packageName} traces inspect e5c0d1efb3904155472b01692c7f2d00 --open --view waterfall`}]},createSubcommand={name:"create",aliases:[],description:"Capture a session trace for a request (alias for `vercel curl --trace`).",arguments:[{name:"path",required:!0}],forwardsUnknownOptions:!0,options:[deploymentOption,protectionBypassOption,{name:"json",shorthand:null,type:Boolean,deprecated:!1,description:"Emit { response, requestId } as JSON on stdout"},{...yesOption,description:"Skip the production confirmation prompt (e.g. in non-interactive mode)"}],examples:[{name:"Capture a session trace for a request",value:`${packageName} traces create /api/hello`},{name:"Target a specific deployment",value:`${packageName} traces create /api/status --deployment https://your-project-abc123.vercel.app`},{name:"Pass curl options after the separator",value:`${packageName} traces create /api/test -- --request POST --data '{"name": "John"}'`}]},searchSubcommand={name:"search",aliases:[],description:"Search team spans. Use --project to filter one project. Results are newest first. Duration filters do not sort results.",helpSections:[{title:"Table columns",body:["Available: span.startTime, span.duration, span.name, span.status.code, service.name, environment, request.id, trace.id, span.id, parent.id, span.kind","Default: all except environment, request.id, and span.kind.","In a terminal, the default drops parent.id and span.id, then shortens span.name, then drops service.name and span.startTime to fit the width. Piped output and --columns keep every listed column."]},{title:"KQL filters",body:["Fields: project.id, environment, service.name, deployment.id, request.id, user.id, session.id","Span fields: span.name, span.kind, span.id, parent.id, span.isRoot, span.status.code, span.duration","Trace fields: trace.id, trace.state","","Other fields search span attributes first, then resource attributes.","","span.duration uses milliseconds.","span.kind uses the numeric values shown under --kind.","span.status.code uses Error, Ok, or Unset.","Use field:value filters. Plain text search is not supported.","Use NOT to exclude values. End a value with * to match a prefix.","Wrap values with spaces in double quotes. Keep the full query in single quotes."]},{title:"Paging",body:["When more spans match, a Next page command is printed on stderr.","After results, stderr shows a traces inspect command.","--json prints one span line per record and ends with a summary line; --non-interactive implies --json.","--next continues from the summary's pagination.next value. It keeps the original team, project, filters, and time window, so it can't be combined with them. --limit can change."]}],arguments:[],options:[...spanQueryOptions,{name:"limit",shorthand:"n",type:Number,deprecated:!1,description:"Maximum number of spans (default: 100, max: 1000)"},{name:"query",shorthand:"q",type:String,deprecated:!1,description:"Filter spans using KQL"},{name:"columns",shorthand:null,argument:"LIST",type:String,deprecated:!1,description:"Columns to show, in order. Separate names with commas. Cannot be used with --json or --non-interactive."},{...nextCursorOption,description:"Continue a previous search from its summary's next value"},{name:"json",shorthand:null,type:Boolean,deprecated:!1,description:"Output JSON Lines ending with a summary line"}],examples:[{name:"Find production errors for one service",value:`${packageName} traces search --environment production --service checkout-api --status error --since 1h`},{name:"Use KQL and output JSON Lines",value:`${packageName} traces search --query 'http.route:"/api/checkout"' --kind server --json`},{name:"Exclude span names starting with app/lib/fetch-api",value:`${packageName} traces search --query 'NOT span.name:app/lib/fetch-api*'`},{name:"Exclude exact span names",value:`${packageName} traces search --query 'NOT span.name:("GET /screenshot/v2" OR "middleware GET")'`},{name:"Find spans longer than 2 seconds",value:`${packageName} traces search --query 'span.duration > 2000' --columns span.startTime,span.duration,span.name,span.kind,span.status.code`},{name:"Continue from the summary's next value",placeholders:["<CURSOR>"],value:`${packageName} traces search --next <CURSOR> --json`}]},tracesCommand={name:"traces",aliases:[],description:"Inspect project traces and search spans across a Vercel team.",arguments:[{name:"id",required:!1}],subcommands:[getSubcommand,searchSubcommand,createSubcommand,tracesConfigCommand],options:[],examples:[{name:"Inspect a trace by trace ID",value:`${packageName} traces inspect e5c0d1efb3904155472b01692c7f2d00`},{name:"Inspect a trace by request ID",value:`${packageName} traces inspect qb46r-1790847620933-1145d2891a3e`},{name:"Print the raw trace JSON",value:`${packageName} traces inspect e5c0d1efb3904155472b01692c7f2d00 --json`},{name:"Capture a session trace for a request",value:`${packageName} traces create /api/hello`},{name:"Search recent spans",value:`${packageName} traces search --status error`},{name:"List the trace sampling rules for a project",value:`${packageName} traces config ls`}]};export{getSubcommand,createSubcommand,searchSubcommand,tracesCommand};
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{require_strip_ansi}from"./chunk-BULSRTQE.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_strip_ansi=__toESM(require_strip_ansi(),1),CONTROL_CHARACTERS=/[\u0000-\u001F\u007F-\u009F]/g,FORMAT_CHARACTERS=/[\u200B-\u200F\u202A-\u202E\u2060-\u2069\uFEFF]/g;function remoteText(value){return(0,import_strip_ansi.default)(value).replace(/\r?\n/g,"\\n").replace(CONTROL_CHARACTERS,"").replace(FORMAT_CHARACTERS,"")}export{remoteText};
7
+ import{require_strip_ansi}from"./chunk-BS32OUOC.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_strip_ansi=__toESM(require_strip_ansi(),1),CONTROL_CHARACTERS=/[\u0000-\u001F\u007F-\u009F]/g,FORMAT_CHARACTERS=/[\u200B-\u200F\u202A-\u202E\u2060-\u2069\uFEFF]/g;function remoteText(value){return(0,import_strip_ansi.default)(value).replace(/\r?\n/g,"\\n").replace(CONTROL_CHARACTERS,"").replace(FORMAT_CHARACTERS,"")}export{CONTROL_CHARACTERS,FORMAT_CHARACTERS,remoteText};
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{packageName}from"./chunk-B4KA3ZH2.js";import{environmentOption,formatOption,jsonOption,projectOption}from"./chunk-CFJBDBYH.js";var RULE_ENVIRONMENTS=["any","preview","production"],ruleEnvironmentOption={...environmentOption,description:"Environment the rule applies to (required): production, preview, or any"},lsSubcommand={name:"ls",aliases:["list"],description:"List the Vercel tracing sampling rules for a project",arguments:[],options:[formatOption,jsonOption,projectOption],examples:[{name:"List the sampling rules for the linked project",value:`${packageName} traces config ls`},{name:"List the sampling rules as JSON",value:`${packageName} traces config ls --json`}]},setSubcommand={name:"set",aliases:[],description:"Enable Vercel tracing and add or replace one sampling rule. The rate is a whole percentage from 1 to 100.",arguments:[{name:"rate",required:!0},{name:"requestPath",required:!1}],options:[ruleEnvironmentOption,formatOption,jsonOption,projectOption],examples:[{name:"Trace a quarter of production traffic",value:`${packageName} traces config set 25 --environment production`},{name:"Trace every preview request to one path prefix",value:`${packageName} traces config set 100 /api --environment preview`},{name:"Trace one percent of traffic in every environment",value:`${packageName} traces config set 1 --environment any`}]},rmSubcommand={descriptionTone:"normal",name:"remove",aliases:["rm","delete"],description:"Remove Vercel tracing sampling rules. Without a path prefix, every rule for the environment is removed. Removing the final rule disables tracing.",arguments:[{name:"requestPath",required:!1}],options:[ruleEnvironmentOption,{name:"default",shorthand:null,type:Boolean,deprecated:!1,description:"Remove only the rule that has no path prefix, keeping the per-path rules"},formatOption,jsonOption,projectOption],examples:[{name:"Remove one rule by environment and path prefix",value:`${packageName} traces config remove /api --environment production`},{name:"Remove every rule for production",value:`${packageName} traces config remove --environment production`},{name:"Remove only the production rule that covers all paths",value:`${packageName} traces config remove --environment production --default`}]},tracesConfigCommand={name:"config",aliases:[],description:"Manage Vercel tracing sampling rules for a project.",arguments:[],subcommands:[lsSubcommand,setSubcommand,rmSubcommand],options:[],examples:[{name:"List the sampling rules for the linked project",value:`${packageName} traces config ls`},{name:"Trace a quarter of production traffic",value:`${packageName} traces config set 25 --environment production`},{name:"Remove every rule for production",value:`${packageName} traces config remove --environment production`}]};export{RULE_ENVIRONMENTS,lsSubcommand,setSubcommand,rmSubcommand,tracesConfigCommand};
7
+ import{packageName}from"./chunk-B4KA3ZH2.js";import{environmentOption,formatOption,jsonOption,projectOption}from"./chunk-DORCX7UB.js";var RULE_ENVIRONMENTS=["any","preview","production"],ruleEnvironmentOption={...environmentOption,description:"Environment the rule applies to (required): production, preview, or any"},lsSubcommand={name:"ls",aliases:["list"],description:"List the Vercel tracing sampling rules for a project",arguments:[],options:[formatOption,jsonOption,projectOption],examples:[{name:"List the sampling rules for the linked project",value:`${packageName} traces config ls`},{name:"List the sampling rules as JSON",value:`${packageName} traces config ls --json`}]},setSubcommand={name:"set",aliases:[],description:"Enable Vercel tracing and add or replace one sampling rule. The rate is a whole percentage from 1 to 100.",arguments:[{name:"rate",required:!0},{name:"requestPath",required:!1}],options:[ruleEnvironmentOption,formatOption,jsonOption,projectOption],examples:[{name:"Trace a quarter of production traffic",value:`${packageName} traces config set 25 --environment production`},{name:"Trace every preview request to one path prefix",value:`${packageName} traces config set 100 /api --environment preview`},{name:"Trace one percent of traffic in every environment",value:`${packageName} traces config set 1 --environment any`}]},rmSubcommand={descriptionTone:"normal",name:"remove",aliases:["rm","delete"],description:"Remove Vercel tracing sampling rules. Without a path prefix, every rule for the environment is removed. Removing the final rule disables tracing.",arguments:[{name:"requestPath",required:!1}],options:[ruleEnvironmentOption,{name:"default",shorthand:null,type:Boolean,deprecated:!1,description:"Remove only the rule that has no path prefix, keeping the per-path rules"},formatOption,jsonOption,projectOption],examples:[{name:"Remove one rule by environment and path prefix",value:`${packageName} traces config remove /api --environment production`},{name:"Remove every rule for production",value:`${packageName} traces config remove --environment production`},{name:"Remove only the production rule that covers all paths",value:`${packageName} traces config remove --environment production --default`}]},tracesConfigCommand={name:"config",aliases:[],description:"Manage Vercel tracing sampling rules for a project.",arguments:[],subcommands:[lsSubcommand,setSubcommand,rmSubcommand],options:[],examples:[{name:"List the sampling rules for the linked project",value:`${packageName} traces config ls`},{name:"Trace a quarter of production traffic",value:`${packageName} traces config set 25 --environment production`},{name:"Remove every rule for production",value:`${packageName} traces config remove --environment production`}]};export{RULE_ENVIRONMENTS,lsSubcommand,setSubcommand,rmSubcommand,tracesConfigCommand};
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{getGlobalPathConfig}from"./chunk-UG3FZ5Q7.js";import{output_manager_default}from"./chunk-AP6DZGTK.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");return JSON.parse(content)}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};
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};