@vercel/cli-support 65.4.0 → 65.5.0-snapshot-8a613d8ad85d

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 (307) hide show
  1. package/README.md +22 -0
  2. package/dist/chunks/add-6UOKR26K.js +8 -0
  3. package/dist/chunks/add-GULZ6EGJ.js +8 -0
  4. package/dist/chunks/add-RPAOJH5O.js +8 -0
  5. package/dist/chunks/build-MLAKPRSC.js +7 -0
  6. package/dist/chunks/{chunk-ADLBLGT3.js → chunk-26QK3I2S.js} +1 -1
  7. package/dist/chunks/chunk-2BKALEOP.js +7 -0
  8. package/dist/chunks/chunk-2FHZYQPY.js +7 -0
  9. package/dist/chunks/{chunk-TIPQQ4TG.js → chunk-2QIJEHNE.js} +1 -1
  10. package/dist/chunks/{chunk-JP33AIDQ.js → chunk-36NK2Z3C.js} +1 -1
  11. package/dist/chunks/{chunk-D6REP5QQ.js → chunk-3E364MJE.js} +1 -1
  12. package/dist/chunks/{chunk-EEUJLJEJ.js → chunk-3H36RI7C.js} +1 -1
  13. package/dist/chunks/{chunk-JUSR7V2L.js → chunk-3NG2EYQ5.js} +1 -1
  14. package/dist/chunks/{chunk-AYUUSAB7.js → chunk-4G7ZQONX.js} +1 -1
  15. package/dist/chunks/{chunk-SYFG2RM6.js → chunk-4HJGSSSZ.js} +1 -1
  16. package/dist/chunks/{chunk-CWM2F235.js → chunk-55H6G46X.js} +1 -1
  17. package/dist/chunks/{chunk-6TXEVQA4.js → chunk-5CZNUB7Y.js} +1 -1
  18. package/dist/chunks/{chunk-ZN6CQWVP.js → chunk-5EMSOR2P.js} +1 -1
  19. package/dist/chunks/{chunk-NAX6IARA.js → chunk-5K426HWC.js} +1 -1
  20. package/dist/chunks/{chunk-773GOZIR.js → chunk-5SIC5273.js} +1 -1
  21. package/dist/chunks/chunk-5WYPJ2T5.js +25 -0
  22. package/dist/chunks/{chunk-MBEKRUTQ.js → chunk-6IATT2ID.js} +2 -2
  23. package/dist/chunks/{chunk-KPQLUGFI.js → chunk-6WMO5G45.js} +3 -3
  24. package/dist/chunks/{chunk-6OVX3PWM.js → chunk-75JI2SZX.js} +1 -1
  25. package/dist/chunks/{chunk-ECEDD646.js → chunk-7G4PQR6J.js} +1 -1
  26. package/dist/chunks/chunk-7SAEZ4NC.js +7 -0
  27. package/dist/chunks/{chunk-363SJ4TN.js → chunk-7VTPAXDC.js} +1 -1
  28. package/dist/chunks/chunk-A2UZ2O7H.js +7 -0
  29. package/dist/chunks/{chunk-3LIKVGFT.js → chunk-A3RU52F4.js} +1 -1
  30. package/dist/chunks/{chunk-CC6FLKIP.js → chunk-AIRQFG5A.js} +1 -1
  31. package/dist/chunks/{chunk-IOZ3I765.js → chunk-AOC6XXOO.js} +1 -1
  32. package/dist/chunks/{chunk-EISD3RG7.js → chunk-ARQMFBV4.js} +1 -1
  33. package/dist/chunks/{chunk-UHBMX3OK.js → chunk-AUY363W7.js} +1 -1
  34. package/dist/chunks/chunk-BGWS5R5R.js +9 -0
  35. package/dist/chunks/chunk-C6IITJ5S.js +7 -0
  36. package/dist/chunks/{chunk-OHEOYFBU.js → chunk-CLVEFWEX.js} +1 -1
  37. package/dist/chunks/{chunk-KGBIRIFF.js → chunk-CU2FTX57.js} +1 -1
  38. package/dist/chunks/{chunk-YHULP2KK.js → chunk-CWO4HMKU.js} +1 -1
  39. package/dist/chunks/{chunk-EU2GBIPC.js → chunk-CZINAGH6.js} +1 -1
  40. package/dist/chunks/{chunk-QIVX6SCR.js → chunk-DAUAVRFC.js} +1 -1
  41. package/dist/chunks/{chunk-GA277JFB.js → chunk-DPM33VFZ.js} +1 -1
  42. package/dist/chunks/{chunk-Q5ODLDCU.js → chunk-DSY2S2YT.js} +1 -1
  43. package/dist/chunks/{chunk-XP3FT56R.js → chunk-DWOJP4ST.js} +3 -3
  44. package/dist/chunks/chunk-ED3VA7D4.js +7 -0
  45. package/dist/chunks/{chunk-GG5RME4X.js → chunk-EE2FTI3R.js} +1 -1
  46. package/dist/chunks/{chunk-QVZAAMGQ.js → chunk-EFEQQXRU.js} +1 -1
  47. package/dist/chunks/{chunk-DKJL2KV7.js → chunk-EPO7P734.js} +1 -1
  48. package/dist/chunks/{chunk-7QAGSRCU.js → chunk-EQT2VHL2.js} +1 -1
  49. package/dist/chunks/chunk-ETEVOJQJ.js +8 -0
  50. package/dist/chunks/chunk-EWP5WICJ.js +10 -0
  51. package/dist/chunks/chunk-F22QLVTX.js +7 -0
  52. package/dist/chunks/{chunk-XC46OAAT.js → chunk-FAEC4BER.js} +1 -1
  53. package/dist/chunks/{chunk-LSQREJXO.js → chunk-FAELJM4F.js} +1 -1
  54. package/dist/chunks/{chunk-7R6TRRG5.js → chunk-FNA4MIOH.js} +1 -1
  55. package/dist/chunks/{chunk-L3JYCXVB.js → chunk-GFD6UAAO.js} +2 -2
  56. package/dist/chunks/{chunk-U2OBPULW.js → chunk-GP55VEOQ.js} +1 -1
  57. package/dist/chunks/{chunk-FSPPKNKN.js → chunk-GVPVWHFK.js} +1 -1
  58. package/dist/chunks/{chunk-527GBU3K.js → chunk-HMWDOAWO.js} +1 -1
  59. package/dist/chunks/{chunk-7L2K4OKM.js → chunk-HVDGNAPM.js} +1 -1
  60. package/dist/chunks/{chunk-QVHXFHBV.js → chunk-I2WEQWCA.js} +1 -1
  61. package/dist/chunks/{chunk-JRPNHWA3.js → chunk-IC3THLYP.js} +1 -1
  62. package/dist/chunks/{chunk-IQKGQ2Y2.js → chunk-J6L5MDTX.js} +1 -1
  63. package/dist/chunks/{chunk-YMZ6WBKB.js → chunk-JCGEXU7T.js} +3 -3
  64. package/dist/chunks/{chunk-7L5QUDUR.js → chunk-JGMJP4T3.js} +1 -1
  65. package/dist/chunks/{chunk-ZQBSAMFL.js → chunk-JHNLBVO2.js} +1 -1
  66. package/dist/chunks/{chunk-HTXDC7E2.js → chunk-JMLKK7RL.js} +2 -2
  67. package/dist/chunks/{chunk-T6243EDS.js → chunk-JSAY52FE.js} +1 -1
  68. package/dist/chunks/{chunk-C7FQMC6D.js → chunk-JWUXHL35.js} +1 -1
  69. package/dist/chunks/{chunk-KQCROPL3.js → chunk-JXAEI2GJ.js} +1 -1
  70. package/dist/chunks/{chunk-VNIKIQVE.js → chunk-KHADRPBJ.js} +1 -1
  71. package/dist/chunks/{chunk-GCZVIDNG.js → chunk-KWKEBKUR.js} +1 -1
  72. package/dist/chunks/chunk-KY7LDQRX.js +7 -0
  73. package/dist/chunks/{chunk-YEZJNXQX.js → chunk-L4XLDN6T.js} +1 -1
  74. package/dist/chunks/{chunk-EGNR2DEI.js → chunk-LOO42IMZ.js} +1 -1
  75. package/dist/chunks/{chunk-CBVKB3DT.js → chunk-LT5UZRMK.js} +1 -1
  76. package/dist/chunks/{chunk-FUX6LKNP.js → chunk-LUX4PBJL.js} +1 -1
  77. package/dist/chunks/chunk-M7LUSXMG.js +7 -0
  78. package/dist/chunks/{chunk-ANMDN3EG.js → chunk-MFW6IJIK.js} +1 -1
  79. package/dist/chunks/{chunk-UGNIIDHR.js → chunk-MLGQ233X.js} +1 -1
  80. package/dist/chunks/chunk-MY4MONOH.js +7 -0
  81. package/dist/chunks/{chunk-N6JBQMOF.js → chunk-MZQEDXOH.js} +1 -1
  82. package/dist/chunks/chunk-N5CXIFE2.js +7 -0
  83. package/dist/chunks/{chunk-LQVSU5HR.js → chunk-NM44RWS6.js} +1 -1
  84. package/dist/chunks/{chunk-FHU2O7ZJ.js → chunk-NVNE3W7S.js} +1 -1
  85. package/dist/chunks/chunk-NZPGWZLV.js +9 -0
  86. package/dist/chunks/{chunk-462YCCJZ.js → chunk-O7COT3YB.js} +1 -1
  87. package/dist/chunks/{chunk-KY335KWI.js → chunk-ODAV7Z2H.js} +1 -1
  88. package/dist/chunks/{chunk-HCRD3JFL.js → chunk-OKNDHNH6.js} +1 -1
  89. package/dist/chunks/{chunk-Q4KTAQB3.js → chunk-OQX4YVGU.js} +1 -1
  90. package/dist/chunks/chunk-ORJBK5FT.js +9 -0
  91. package/dist/chunks/{chunk-5KUUMQ3M.js → chunk-OTYF3ZZW.js} +1 -1
  92. package/dist/chunks/{chunk-FGFLTLEA.js → chunk-P6ZTEDX2.js} +1 -1
  93. package/dist/chunks/{chunk-O72YDZKD.js → chunk-PHHZ6J7Q.js} +1 -1
  94. package/dist/chunks/{chunk-RMZTB2IU.js → chunk-PRFIFS3Q.js} +1 -1
  95. package/dist/chunks/{chunk-R2XHJDAP.js → chunk-QDPYU6KS.js} +1 -1
  96. package/dist/chunks/{chunk-JLEJB6KM.js → chunk-QHM6OK76.js} +1 -1
  97. package/dist/chunks/{chunk-CR3NBTHV.js → chunk-QNL22LAW.js} +1 -1
  98. package/dist/chunks/{chunk-5V53NA6C.js → chunk-QUSEBFDO.js} +1 -1
  99. package/dist/chunks/{chunk-DQ2SVW4R.js → chunk-R3BEQTZZ.js} +1 -1
  100. package/dist/chunks/{chunk-BUJITHGZ.js → chunk-RCUDI7OF.js} +1 -1
  101. package/dist/chunks/{chunk-Y5ZMKL7E.js → chunk-RMW2FDXS.js} +1 -1
  102. package/dist/chunks/{chunk-KRPY5FHJ.js → chunk-RQVIMYKN.js} +1 -1
  103. package/dist/chunks/chunk-RWPQOJTT.js +22 -0
  104. package/dist/chunks/{chunk-2TUVL6WE.js → chunk-SDOPVIKJ.js} +1 -1
  105. package/dist/chunks/{chunk-3XW7N4W3.js → chunk-SKSOCUDZ.js} +1 -1
  106. package/dist/chunks/chunk-SLDWAIO3.js +18 -0
  107. package/dist/chunks/{chunk-JWCEHQQF.js → chunk-SW3JRXUW.js} +1 -1
  108. package/dist/chunks/{chunk-M2NXKZKX.js → chunk-TGOGYSBO.js} +1 -1
  109. package/dist/chunks/chunk-TZT3VYZ3.js +7 -0
  110. package/dist/chunks/{chunk-F6EBOT64.js → chunk-UJQ6PBRF.js} +1 -1
  111. package/dist/chunks/{chunk-BVGGTBYE.js → chunk-UWMPVTXG.js} +1 -1
  112. package/dist/chunks/{chunk-R6BEOVTU.js → chunk-VAWZZK3Y.js} +1 -1
  113. package/dist/chunks/{chunk-4N6LMERQ.js → chunk-VLYVVC3P.js} +11 -11
  114. package/dist/chunks/{chunk-HSFKISDH.js → chunk-VQ755MPP.js} +1 -1
  115. package/dist/chunks/{chunk-QB7F3UAP.js → chunk-VUQWLLNI.js} +1 -1
  116. package/dist/chunks/chunk-VWHIWUGJ.js +7 -0
  117. package/dist/chunks/chunk-WDUHDLUA.js +14 -0
  118. package/dist/chunks/{chunk-K5U47EVH.js → chunk-WICRM2JL.js} +1 -1
  119. package/dist/chunks/{chunk-KJA2GKPT.js → chunk-WSVYZKI6.js} +1 -1
  120. package/dist/chunks/{chunk-N2FLYCCO.js → chunk-XAU3KTPX.js} +1 -1
  121. package/dist/chunks/chunk-XCKUJZUG.js +10 -0
  122. package/dist/chunks/{chunk-WDXW6A4H.js → chunk-XE24Y6NM.js} +2 -2
  123. package/dist/chunks/{chunk-RW3X523R.js → chunk-XSQVCDSD.js} +1 -1
  124. package/dist/chunks/{chunk-KW6GSQXV.js → chunk-XTKGBVSF.js} +1 -1
  125. package/dist/chunks/{chunk-2K3ISCQ6.js → chunk-YALEYPMP.js} +1 -1
  126. package/dist/chunks/chunk-YCJHUYBJ.js +19 -0
  127. package/dist/chunks/{chunk-TEYREL44.js → chunk-YIRSRF6D.js} +1 -1
  128. package/dist/chunks/chunk-YQDOADMG.js +10 -0
  129. package/dist/chunks/{chunk-PFPJLIFF.js → chunk-YT3QAZQF.js} +1 -1
  130. package/dist/chunks/{chunk-R2BUF6Z7.js → chunk-ZQUVDDPB.js} +1 -1
  131. package/dist/chunks/{chunk-XVDRGWXM.js → chunk-ZUNQHI5Y.js} +1 -1
  132. package/dist/chunks/{chunk-KQCFC2JL.js → chunk-ZUYPTLVO.js} +1 -1
  133. package/dist/chunks/clear-UZWOOGOH.js +8 -0
  134. package/dist/chunks/compile-vercel-config-2RQDL3RD.js +7 -0
  135. package/dist/chunks/config-C76IGJ6B.js +8 -0
  136. package/dist/chunks/config-RMJWRS7O.js +7 -0
  137. package/dist/chunks/{connect-git-provider-FS5Q2HO4.js → connect-git-provider-IQ7N2NPY.js} +1 -1
  138. package/dist/chunks/delete-2WBR5JQW.js +9 -0
  139. package/dist/chunks/delete-OKOBDL7Z.js +10 -0
  140. package/dist/chunks/{detect-projects-OD4JEAW2.js → detect-projects-XPB3R7VS.js} +1 -1
  141. package/dist/chunks/detect-services-DRHV22O5.js +7 -0
  142. package/dist/chunks/disable-DFEABU2Z.js +7 -0
  143. package/dist/chunks/discard-KGBEMNFT.js +14 -0
  144. package/dist/chunks/edit-5XIRLUKG.js +9 -0
  145. package/dist/chunks/edit-PJIDMKUS.js +8 -0
  146. package/dist/chunks/enable-UDWDPFOI.js +7 -0
  147. package/dist/chunks/{exec-OZSY46V6.js → exec-PX4GTZNE.js} +1 -1
  148. package/dist/chunks/{export-EPLYZF2Q.js → export-W75EA6EQ.js} +1 -1
  149. package/dist/chunks/future-PHSAEQIE.js +7 -0
  150. package/dist/chunks/generate-cert-for-deploy-C67VL5Z6.js +7 -0
  151. package/dist/chunks/image-U5CV2PRP.js +7 -0
  152. package/dist/chunks/import-builders-PHIIX7HW.js +7 -0
  153. package/dist/chunks/inspect-AU3MX7E2.js +13 -0
  154. package/dist/chunks/{inspect-CZ7WXYE5.js → inspect-DQQI3PM7.js} +1 -1
  155. package/dist/chunks/inspect-LJK7I6RZ.js +9 -0
  156. package/dist/chunks/{inspect-T2AIREYK.js → inspect-RNWLPR7I.js} +1 -1
  157. package/dist/chunks/{inspect-HFDGZNWC.js → inspect-WHPWW4BI.js} +1 -1
  158. package/dist/chunks/list-JV26NNYL.js +16 -0
  159. package/dist/chunks/{list-ON4YTQRN.js → list-QNRFVMMQ.js} +1 -1
  160. package/dist/chunks/list-YF4FXWUZ.js +12 -0
  161. package/dist/chunks/login-A4KNOUNA.js +9 -0
  162. package/dist/chunks/login-COGE7JQU.js +7 -0
  163. package/dist/chunks/logs-KMQATUYR.js +7 -0
  164. package/dist/chunks/{ls-FK5XEJEU.js → ls-DTFLHFOW.js} +1 -1
  165. package/dist/chunks/{ls-A7K4XDQB.js → ls-FOKMPVIB.js} +1 -1
  166. package/dist/chunks/ls-HMYU2ZGA.js +11 -0
  167. package/dist/chunks/{ls-2HUJHVLA.js → ls-IHF33MQP.js} +1 -1
  168. package/dist/chunks/{ls-QGUKJJY5.js → ls-QD54I4S7.js} +1 -1
  169. package/dist/chunks/{ls-3DVM5HLK.js → ls-RNRMYD3V.js} +1 -1
  170. package/dist/chunks/ls-ZQLCDIQJ.js +8 -0
  171. package/dist/chunks/mutate-RMIFQOF6.js +9 -0
  172. package/dist/chunks/notifications-BFBNV2HY.js +7 -0
  173. package/dist/chunks/open-L6HEXHAI.js +7 -0
  174. package/dist/chunks/openapi-6JKCOR7K.js +7 -0
  175. package/dist/chunks/permissions-UYGTYRKA.js +7 -0
  176. package/dist/chunks/{plugin-offer-TEGYA3TA.js → plugin-offer-NBHRXMNR.js} +1 -1
  177. package/dist/chunks/prompt-missing-credentials-2IYIF2JI.js +7 -0
  178. package/dist/chunks/publish-T2VSTPG4.js +15 -0
  179. package/dist/chunks/pull-4GL47Z2S.js +7 -0
  180. package/dist/chunks/purchase-domain-if-available-BHFBD3LW.js +7 -0
  181. package/dist/chunks/push-CQPIDVTL.js +7 -0
  182. package/dist/chunks/{query-FXXLX6UB.js → query-HN45ORIB.js} +1 -1
  183. package/dist/chunks/reauthenticate-FTHGAWK3.js +7 -0
  184. package/dist/chunks/reorder-7BD5JZKQ.js +10 -0
  185. package/dist/chunks/reply-2INQJ5KM.js +9 -0
  186. package/dist/chunks/resolve-DHAJC3I7.js +12 -0
  187. package/dist/chunks/resolve-agent-team-KGYPHN5F.js +7 -0
  188. package/dist/chunks/restore-OQKNWEFQ.js +16 -0
  189. package/dist/chunks/rm-CTP4UZH7.js +8 -0
  190. package/dist/chunks/rm-GFHEXQQW.js +8 -0
  191. package/dist/chunks/rm-OG3OXA6H.js +8 -0
  192. package/dist/chunks/rm-PFZYHXEN.js +8 -0
  193. package/dist/chunks/rm-XAW3WJ3I.js +8 -0
  194. package/dist/chunks/{routes-PKTWMDWQ.js → routes-XKEWEA3P.js} +1 -1
  195. package/dist/chunks/rule-inspect-MKQE5IVJ.js +8 -0
  196. package/dist/chunks/{schema-ZWE5MNMG.js → schema-TFN5PSYE.js} +2 -2
  197. package/dist/chunks/schema-XFER2RCF.js +14 -0
  198. package/dist/chunks/select-org-PFTR6HQZ.js +7 -0
  199. package/dist/chunks/set-KWOZNGRL.js +7 -0
  200. package/dist/chunks/setup-and-link-BRYK42L7.js +7 -0
  201. package/dist/chunks/{skills-RKIGVVNM.js → skills-2MOFBKIE.js} +1 -1
  202. package/dist/chunks/tags-BHZUQTOQ.js +7 -0
  203. package/dist/chunks/{types-YM7TMHXW.js → types-IWO5QLAV.js} +1 -1
  204. package/dist/chunks/{update-BGDQ5TXO.js → update-LP7ZZUFZ.js} +1 -1
  205. package/dist/commands/build/index.js +2 -2
  206. package/dist/commands/deploy/index.js +8 -8
  207. package/dist/commands/dev/index.js +6 -6
  208. package/dist/commands/env/index.js +3 -3
  209. package/dist/commands/link/index.js +2 -2
  210. package/dist/commands/list/index.js +1 -1
  211. package/dist/commands/project/index.js +4 -4
  212. package/dist/commands-account.js +18 -18
  213. package/dist/commands-ai.js +12 -12
  214. package/dist/commands-blob.js +7 -7
  215. package/dist/commands-core.js +23 -23
  216. package/dist/commands-deployments.js +3 -3
  217. package/dist/commands-flags.js +29 -29
  218. package/dist/commands-integrations.js +98 -83
  219. package/dist/commands-observability.js +4 -4
  220. package/dist/commands-routing.js +23 -23
  221. package/dist/help.js +1 -1
  222. package/dist/index.js +7 -7
  223. package/dist/internal-build.js +2 -2
  224. package/dist/native-download.js +7 -0
  225. package/dist/package.json +27 -26
  226. package/dist/root-help-commands.mjs +1 -1
  227. package/dist/vc.js +172 -17
  228. package/dist/version.mjs +1 -1
  229. package/package.json +20 -19
  230. package/dist/chunks/add-7NS6HIWC.js +0 -8
  231. package/dist/chunks/add-NMYFDVXW.js +0 -8
  232. package/dist/chunks/add-PMJ5BECU.js +0 -8
  233. package/dist/chunks/build-BCY6HQJG.js +0 -7
  234. package/dist/chunks/chunk-5IWFRZQT.js +0 -10
  235. package/dist/chunks/chunk-6I6QJHCY.js +0 -7
  236. package/dist/chunks/chunk-6VH56CX2.js +0 -19
  237. package/dist/chunks/chunk-6YXIWZ3X.js +0 -25
  238. package/dist/chunks/chunk-7E3WREH5.js +0 -7
  239. package/dist/chunks/chunk-EAXMWCOL.js +0 -63
  240. package/dist/chunks/chunk-EKZTFGDX.js +0 -7
  241. package/dist/chunks/chunk-FLHO75XC.js +0 -8
  242. package/dist/chunks/chunk-GYVJIIYL.js +0 -7
  243. package/dist/chunks/chunk-JLE7K4SY.js +0 -9
  244. package/dist/chunks/chunk-KCKYPLIH.js +0 -7
  245. package/dist/chunks/chunk-LOBA3E72.js +0 -7
  246. package/dist/chunks/chunk-LW4N3CW6.js +0 -9
  247. package/dist/chunks/chunk-NGKO2OOU.js +0 -8
  248. package/dist/chunks/chunk-NW7WWUCQ.js +0 -9
  249. package/dist/chunks/chunk-O4WNSKQR.js +0 -15
  250. package/dist/chunks/chunk-OZCQTXI4.js +0 -7
  251. package/dist/chunks/chunk-QVXS234E.js +0 -7
  252. package/dist/chunks/chunk-SLGUYM42.js +0 -10
  253. package/dist/chunks/chunk-TAISZMA2.js +0 -7
  254. package/dist/chunks/chunk-WEH6XC4Y.js +0 -22
  255. package/dist/chunks/chunk-WVHCBDTB.js +0 -7
  256. package/dist/chunks/clear-FKVWDCVA.js +0 -8
  257. package/dist/chunks/compile-vercel-config-GWAJE44R.js +0 -7
  258. package/dist/chunks/config-5WVLG5SE.js +0 -8
  259. package/dist/chunks/config-RMOHN5YT.js +0 -7
  260. package/dist/chunks/delete-5WMB4WFR.js +0 -9
  261. package/dist/chunks/delete-EM4JZPFA.js +0 -10
  262. package/dist/chunks/detect-services-BSJGB4RM.js +0 -7
  263. package/dist/chunks/disable-QOM7UHQC.js +0 -7
  264. package/dist/chunks/discard-L5ZH7P5B.js +0 -14
  265. package/dist/chunks/edit-F3VJGCG2.js +0 -9
  266. package/dist/chunks/edit-TM7YCWBU.js +0 -8
  267. package/dist/chunks/enable-72C3QX34.js +0 -7
  268. package/dist/chunks/future-V77DRMQG.js +0 -7
  269. package/dist/chunks/generate-cert-for-deploy-Y3YHBMPU.js +0 -7
  270. package/dist/chunks/image-CVXEXU5R.js +0 -7
  271. package/dist/chunks/import-builders-PGRKJOOE.js +0 -7
  272. package/dist/chunks/inspect-BTRNXRJT.js +0 -9
  273. package/dist/chunks/inspect-FGDVWAQP.js +0 -13
  274. package/dist/chunks/list-CKRRHAOE.js +0 -12
  275. package/dist/chunks/list-FLREMGJR.js +0 -16
  276. package/dist/chunks/login-55LJ5ZA6.js +0 -9
  277. package/dist/chunks/login-DQRZSD4Z.js +0 -7
  278. package/dist/chunks/logs-2HQXWOHM.js +0 -7
  279. package/dist/chunks/ls-4B3QYHCI.js +0 -8
  280. package/dist/chunks/ls-VTKHPDWS.js +0 -11
  281. package/dist/chunks/mutate-7ADZBCZM.js +0 -9
  282. package/dist/chunks/notifications-XZJXE2K4.js +0 -7
  283. package/dist/chunks/open-EE5IZQD7.js +0 -7
  284. package/dist/chunks/openapi-QBX62ZXC.js +0 -7
  285. package/dist/chunks/permissions-VYJ4LL5R.js +0 -7
  286. package/dist/chunks/prompt-missing-credentials-VP6OVCFM.js +0 -7
  287. package/dist/chunks/publish-2HEK5UMJ.js +0 -15
  288. package/dist/chunks/pull-WRTTSY7J.js +0 -7
  289. package/dist/chunks/purchase-domain-if-available-6S3NLTUI.js +0 -7
  290. package/dist/chunks/push-L3QRGGLC.js +0 -7
  291. package/dist/chunks/reauthenticate-IXQDC4UZ.js +0 -7
  292. package/dist/chunks/reorder-B4OXSYCI.js +0 -10
  293. package/dist/chunks/reply-F637K6XH.js +0 -9
  294. package/dist/chunks/resolve-E3F6NYQZ.js +0 -12
  295. package/dist/chunks/resolve-agent-team-EIPCH766.js +0 -7
  296. package/dist/chunks/restore-Q25KRZPH.js +0 -16
  297. package/dist/chunks/rm-FWD2NUGX.js +0 -8
  298. package/dist/chunks/rm-JMQ4QKCC.js +0 -8
  299. package/dist/chunks/rm-PPG7P3GN.js +0 -8
  300. package/dist/chunks/rm-SH3DYKNS.js +0 -8
  301. package/dist/chunks/rm-UEBLKFVC.js +0 -8
  302. package/dist/chunks/rule-inspect-LKQA5I4V.js +0 -8
  303. package/dist/chunks/schema-FBV42W7N.js +0 -14
  304. package/dist/chunks/select-org-WMB752Z6.js +0 -7
  305. package/dist/chunks/set-UTYIPOLC.js +0 -7
  306. package/dist/chunks/setup-and-link-ZLY5XQW5.js +0 -7
  307. package/dist/chunks/tags-UCLZ5UMX.js +0 -7
@@ -4,7 +4,7 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{collectBuildLogs,displayBuildLogs}from"./chunks/chunk-NAX6IARA.js";import{InvalidEventsResponseError,RecordTooLargeError,decodeContinuation,encodeContinuation,fetchEventPages,recordLine,serializeTimeRange,sortIntervals,warningLine}from"./chunks/chunk-KQCROPL3.js";import{summaryLine,writeJsonError}from"./chunks/chunk-O72YDZKD.js";import{getBuildMachineResourceConfig}from"./chunks/chunk-ZF27J6FQ.js";import{isDeploying}from"./chunks/chunk-ZFRNVIHI.js";import"./chunks/chunk-N2FLYCCO.js";import{readStandardInput}from"./chunks/chunk-PSOVLGHP.js";import"./chunks/chunk-XOETL6DB.js";import{parseTimeFlag,validateIntegerRangeWithDefault}from"./chunks/chunk-RW3X523R.js";import{external_exports}from"./chunks/chunk-2NABMKFV.js";import{elapsed}from"./chunks/chunk-Q7D7RGXM.js";import{indent_default}from"./chunks/chunk-GZNDA6SV.js";import{getDeployment}from"./chunks/chunk-R6BEOVTU.js";import"./chunks/chunk-HCRD3JFL.js";import"./chunks/chunk-7EJQLVWX.js";import{printNextPageCommand}from"./chunks/chunk-VNIKIQVE.js";import{require_format}from"./chunks/chunk-PFD7LETF.js";import{getSubcommand}from"./chunks/chunk-ETV3C2CV.js";import{getTeams}from"./chunks/chunk-FGFLTLEA.js";import{BACKGROUND_FUNCTION_EXCLUSION,DEFAULT_LIMIT,DEFAULT_WINDOW,MAX_LIMIT,getCommandAliases,inspectCommand,logsCommand,logsSources,requestsSubcommand,runtimeSubcommand,sourceForEvent}from"./chunks/chunk-O4WNSKQR.js";import"./chunks/chunk-6I6QJHCY.js";import"./chunks/chunk-EKZTFGDX.js";import"./chunks/chunk-462YCCJZ.js";import"./chunks/chunk-WVHCBDTB.js";import"./chunks/chunk-TAISZMA2.js";import"./chunks/chunk-527GBU3K.js";import"./chunks/chunk-CR3NBTHV.js";import"./chunks/chunk-BVGGTBYE.js";import"./chunks/chunk-6TXEVQA4.js";import"./chunks/chunk-5KUUMQ3M.js";import"./chunks/chunk-UHBMX3OK.js";import"./chunks/chunk-EEUJLJEJ.js";import"./chunks/chunk-NW7WWUCQ.js";import"./chunks/chunk-F6EBOT64.js";import"./chunks/chunk-LFOWP74R.js";import"./chunks/chunk-LOBA3E72.js";import"./chunks/chunk-7R6TRRG5.js";import"./chunks/chunk-JALVF3C2.js";import"./chunks/chunk-OZCQTXI4.js";import"./chunks/chunk-FSPPKNKN.js";import{help}from"./chunks/chunk-FLHO75XC.js";import"./chunks/chunk-773GOZIR.js";import{printError}from"./chunks/chunk-HSFKISDH.js";import"./chunks/chunk-67GZ5REA.js";import{require_strip_ansi}from"./chunks/chunk-BS32OUOC.js";import{TelemetryClient}from"./chunks/chunk-6YXIWZ3X.js";import"./chunks/chunk-PUKYAALC.js";import{detectExplicitScope,getContextName}from"./chunks/chunk-K5U47EVH.js";import{require_ms}from"./chunks/chunk-MXTC4ZAQ.js";import"./chunks/chunk-NWGBDBZI.js";import{AGENT_REASON,getErrorRecovery}from"./chunks/chunk-WDXW6A4H.js";import"./chunks/chunk-DKJL2KV7.js";import{getProjectByNameOrId,getProjectLink,resolveProjectCwd,sleep}from"./chunks/chunk-4N6LMERQ.js";import"./chunks/chunk-ADLBLGT3.js";import"./chunks/chunk-CWM2F235.js";import"./chunks/chunk-4NTBYNFR.js";import{isArgumentError,parseArguments}from"./chunks/chunk-KCKYPLIH.js";import{getTeamByIdOrSlug,quoteArg}from"./chunks/chunk-F53OKXYI.js";import{getFlagsSpecification,validateJsonOutput,warnDeprecatedSubcommand}from"./chunks/chunk-QVXS234E.js";import"./chunks/chunk-FUX6LKNP.js";import"./chunks/chunk-OPORM35X.js";import"./chunks/chunk-4SAVH3H7.js";import{DeploymentNotFound,DeploymentPermissionDenied,InvalidDeploymentId,ProjectNotFound,isAPIError,require_bytes}from"./chunks/chunk-6VH56CX2.js";import{getCommandName,getCommandNamePlain,require_lib}from"./chunks/chunk-JESNVRVR.js";import{output_manager_default,require_build_utils}from"./chunks/chunk-XP3FT56R.js";import"./chunks/chunk-BLUPZPAS.js";import{require_dist}from"./chunks/chunk-RM3ZDRYE.js";import"./chunks/chunk-OO572JUC.js";import"./chunks/chunk-D3AHZ5LI.js";import"./chunks/chunk-2GHZGOWT.js";import"./chunks/chunk-YHPPP3SF.js";import{require_source}from"./chunks/chunk-NB2WLB3J.js";import"./chunks/chunk-ISWW3DKF.js";import"./chunks/chunk-BRQUZ5NC.js";import{__toESM}from"./chunks/chunk-BZENIQ7N.js";var import_error_utils=__toESM(require_dist(),1),import_chalk3=__toESM(require_source(),1),import_ms=__toESM(require_ms(),1),import_title=__toESM(require_lib(),1);var NOT_SAVED_LABELS={disabled:"not saved (caching disabled)",prebuilt:"not saved (prebuilt deployment)",no_cache_branch:"not saved (no branch to cache)",forced_skip:"not saved (skipped)",missing_metadata:"not saved (missing metadata)",no_files:"not saved (nothing to cache)"};function describeBuildCache(summary){let save=getKnownSave(summary);if(!save)return"unavailable";if(save.saved){let rows=[["size",`${formatCacheBytes(save.compressedSizeBytes)} / ${formatCacheBytes(save.cacheLimitBytes)} limit`]];return save.fileCount!==void 0&&rows.push(["file count",`~${save.fileCount.toLocaleString("en-US")} (approx., paths selected for packing)`]),rows}return"cacheLimitBytes"in save?`not saved (exceeded ${formatCacheBytes(save.cacheLimitBytes)} limit)`:save.reason==="failed"?"upload failed":NOT_SAVED_LABELS[save.reason]??"not saved"}function getBuildCacheJson(summary){if(!summary||typeof summary!="object")return;let{save}=summary;return save===void 0?void 0:{save}}function getKnownSave(summary){if(!summary||typeof summary!="object")return;let{version,save}=summary;if(!(version!==1||!save||typeof save!="object")){if(save.saved===!0)return isCount(save.compressedSizeBytes)&&isCount(save.cacheLimitBytes)&&(save.fileCount===void 0||isCount(save.fileCount))?save:void 0;if(!(save.saved!==!1||typeof save.reason!="string"))return save.reason==="size_exceeded"?isCount(save.cacheLimitBytes)?save:void 0:{saved:!1,reason:save.reason}}}function isCount(value){return typeof value=="number"&&Number.isSafeInteger(value)&&value>=0}var BINARY_UNITS=["B","KiB","MiB","GiB","TiB"];function formatCacheBytes(value){let unit=0,scaled=value;for(;scaled>=1024&&unit<BINARY_UNITS.length-1;)scaled/=1024,unit++;return`${Number(scaled.toFixed(2))} ${BINARY_UNITS[unit]}`}var import_chalk=__toESM(require_source(),1),import_bytes=__toESM(require_bytes(),1);var isReady=({readyState})=>readyState==="READY",isFailed=({readyState})=>readyState.endsWith("_ERROR")||readyState==="ERROR";var padding=8,MAX_BUILD_GROUPS=5,MAX_OUTPUTS_PER_GROUP=5,hasOutput=b=>Array.isArray(b.output)&&b.output.length>0,getCommonPath=buildGroup=>{let commonPath=[],splits=buildGroup.map(build=>getDirPath(build.entrypoint).split("/")),shortest=splits.reduce((prevValue,currentValue)=>Math.min(prevValue,currentValue.length),1/0);for(let i=0;i<=shortest;i++){let first=splits[0][i];if(splits.every(pathParts=>pathParts[i]===first)){commonPath.push(first);continue}break}return commonPath.join("/")||"/"},styleBuild=(build,times,longestSource)=>{let{entrypoint,id}=build,time=typeof times[id]=="string"?times[id]:"",pathColor=import_chalk.default.cyan;isFailed(build)&&(pathColor=import_chalk.default.red);let entry=entrypoint.padEnd(longestSource+padding),prefix=hasOutput(build)?"\u250C":"\u2576";return`${import_chalk.default.grey(prefix)} ${pathColor(entry)}${time}`},styleHiddenBuilds=(commonPath,buildGroup,times,longestSource,isHidden=!1)=>{let{id}=buildGroup[0],entry=commonPath.padEnd(longestSource+padding),time=typeof times[id]=="string"?times[id]:"",prefix=isHidden===!1&&buildGroup.some(hasOutput)?"\u250C":"\u2576",pathColor=import_chalk.default.cyan;return buildGroup.every(isFailed)&&(pathColor=import_chalk.default.red),isHidden&&(pathColor=import_chalk.default.grey),`${import_chalk.default.grey(prefix)} ${pathColor(entry)}${time}`},styleOutput=(output,readyState,isLast)=>{let{type,path,size,lambda}=output,prefix=type==="lambda"?"\u03BB ":"",finalSize=size?` ${import_chalk.default.grey(`(${(0,import_bytes.default)(size)})`)}`:"",color=import_chalk.default.grey,finalRegion="";if(isReady({readyState})?color=import_chalk.default:isFailed({readyState})&&(color=import_chalk.default.red),lambda){let{deployedTo}=lambda;deployedTo&&deployedTo.length>0&&(finalRegion=` ${import_chalk.default.grey(`[${deployedTo.join(", ")}]`)}`)}let corner=isLast?"\u2514\u2500\u2500":"\u251C\u2500\u2500",main=prefix+path+finalSize+finalRegion;return`${import_chalk.default.grey(corner)} ${color(main)}`},getDirPath=(path,level=0,highestLevel=null)=>{let parts=path.split("/").slice(0,-1);if(highestLevel===null||level===0)return parts.join("/");let reverseLevel=highestLevel-level;return parts.slice(0,reverseLevel).join("/")},sortByEntrypoint=(a,b)=>{let aPath=getDirPath(a.entrypoint),bPath=getDirPath(b.entrypoint);return aPath===""?1:bPath===""?-1:aPath>bPath?1:bPath>aPath?-1:0},groupBuilds=(buildList,highestLevel,counter)=>{let currentIndex=counter%buildList.length,__level=Math.ceil(counter/buildList.length),_level=(__level===0?1:__level)-1,level=_level>highestLevel?highestLevel:_level,currentPath=getDirPath(buildList[currentIndex][0].entrypoint,level,highestLevel),nextList=[],currentGroup=[];for(let i=0;i<buildList.length;i++){let group=buildList[i];getDirPath(group[0].entrypoint,level,highestLevel)===currentPath?currentGroup.push(...group):nextList.push(group)}return currentIndex===0?nextList.unshift(currentGroup):nextList.splice(currentIndex,0,currentGroup),nextList},builds_default=(builds,times)=>{let path=builds.sort(sortByEntrypoint).map(build=>[build]),highestLevel=builds.reduce((prev,curr)=>{let partCounter=curr.entrypoint.split("/").length-1;return partCounter>prev?partCounter:prev},0),counter=0;for(;path.length>MAX_BUILD_GROUPS;)path=groupBuilds(path,highestLevel,counter),counter++;path=path.reverse();let longestSource=builds.reduce((final2,current)=>{let{length}=current.entrypoint;return length>final2?length:final2},0),final=[],finalBuildsLength=path.length,lengthWithoutRootPaths=path.length,hiddenBuildGroup=[];path=(()=>{let nextList=[],rootList=[];for(let group of path)getCommonPath(group)==="/"?group.map(item=>rootList.push([item])):nextList.push(group);return lengthWithoutRootPaths=nextList.length,rootList.map(group=>nextList.push(group)),nextList})();for(let buildGroup of path){let commonPath=getCommonPath(buildGroup);if(commonPath==="/")if(lengthWithoutRootPaths<=MAX_BUILD_GROUPS&&finalBuildsLength<=MAX_BUILD_GROUPS){let item=buildGroup[0];final.push(`${styleBuild(item,times,longestSource)}
7
+ import{collectBuildLogs,displayBuildLogs}from"./chunks/chunk-5K426HWC.js";import{InvalidEventsResponseError,RecordTooLargeError,decodeContinuation,encodeContinuation,fetchEventPages,recordLine,serializeTimeRange,sortIntervals,warningLine}from"./chunks/chunk-JXAEI2GJ.js";import{indent_default}from"./chunks/chunk-GZNDA6SV.js";import{summaryLine,writeJsonError}from"./chunks/chunk-PHHZ6J7Q.js";import{getBuildMachineResourceConfig}from"./chunks/chunk-ZF27J6FQ.js";import{isDeploying}from"./chunks/chunk-ZFRNVIHI.js";import"./chunks/chunk-XAU3KTPX.js";import{readStandardInput}from"./chunks/chunk-PSOVLGHP.js";import"./chunks/chunk-XOETL6DB.js";import{parseTimeFlag,validateIntegerRangeWithDefault}from"./chunks/chunk-XSQVCDSD.js";import{getDeployment}from"./chunks/chunk-VAWZZK3Y.js";import"./chunks/chunk-OKNDHNH6.js";import"./chunks/chunk-7EJQLVWX.js";import{external_exports}from"./chunks/chunk-2NABMKFV.js";import{printNextPageCommand}from"./chunks/chunk-KHADRPBJ.js";import{require_format}from"./chunks/chunk-PFD7LETF.js";import{elapsed}from"./chunks/chunk-Q7D7RGXM.js";import{getSubcommand}from"./chunks/chunk-ETV3C2CV.js";import{getTeams}from"./chunks/chunk-P6ZTEDX2.js";import{BACKGROUND_FUNCTION_EXCLUSION,DEFAULT_LIMIT,DEFAULT_WINDOW,MAX_LIMIT,getCommandAliases,inspectCommand,logsCommand,logsSources,requestsSubcommand,runtimeSubcommand,sourceForEvent}from"./chunks/chunk-WDUHDLUA.js";import"./chunks/chunk-O7COT3YB.js";import"./chunks/chunk-2FHZYQPY.js";import"./chunks/chunk-M7LUSXMG.js";import"./chunks/chunk-C6IITJ5S.js";import"./chunks/chunk-TZT3VYZ3.js";import"./chunks/chunk-HMWDOAWO.js";import"./chunks/chunk-QNL22LAW.js";import"./chunks/chunk-UWMPVTXG.js";import"./chunks/chunk-5CZNUB7Y.js";import"./chunks/chunk-AUY363W7.js";import"./chunks/chunk-OTYF3ZZW.js";import"./chunks/chunk-3H36RI7C.js";import"./chunks/chunk-BGWS5R5R.js";import"./chunks/chunk-UJQ6PBRF.js";import"./chunks/chunk-LFOWP74R.js";import"./chunks/chunk-GVPVWHFK.js";import"./chunks/chunk-N5CXIFE2.js";import"./chunks/chunk-FNA4MIOH.js";import"./chunks/chunk-JALVF3C2.js";import"./chunks/chunk-VWHIWUGJ.js";import{printError}from"./chunks/chunk-VQ755MPP.js";import{help}from"./chunks/chunk-SLDWAIO3.js";import"./chunks/chunk-67GZ5REA.js";import{require_strip_ansi}from"./chunks/chunk-BS32OUOC.js";import{TelemetryClient}from"./chunks/chunk-5WYPJ2T5.js";import"./chunks/chunk-2EYYB6YN.js";import{detectExplicitScope,getContextName}from"./chunks/chunk-WICRM2JL.js";import{require_ms}from"./chunks/chunk-MXTC4ZAQ.js";import"./chunks/chunk-NWGBDBZI.js";import{AGENT_REASON,getErrorRecovery}from"./chunks/chunk-XE24Y6NM.js";import"./chunks/chunk-EPO7P734.js";import{getProjectByNameOrId,getProjectLink,resolveProjectCwd,sleep}from"./chunks/chunk-VLYVVC3P.js";import"./chunks/chunk-26QK3I2S.js";import"./chunks/chunk-55H6G46X.js";import"./chunks/chunk-4NTBYNFR.js";import{isArgumentError,parseArguments}from"./chunks/chunk-F22QLVTX.js";import{getTeamByIdOrSlug,quoteArg}from"./chunks/chunk-F53OKXYI.js";import{validateJsonOutput,warnDeprecatedSubcommand}from"./chunks/chunk-7SAEZ4NC.js";import"./chunks/chunk-LUX4PBJL.js";import"./chunks/chunk-OPORM35X.js";import"./chunks/chunk-4SAVH3H7.js";import{DeploymentNotFound,DeploymentPermissionDenied,InvalidDeploymentId,ProjectNotFound,isAPIError,require_bytes}from"./chunks/chunk-YCJHUYBJ.js";import{getCommandName,getCommandNamePlain,require_lib}from"./chunks/chunk-JESNVRVR.js";import{output_manager_default,require_build_utils}from"./chunks/chunk-DWOJP4ST.js";import"./chunks/chunk-BLUPZPAS.js";import{require_dist}from"./chunks/chunk-RM3ZDRYE.js";import"./chunks/chunk-D3AHZ5LI.js";import"./chunks/chunk-2GHZGOWT.js";import"./chunks/chunk-YHPPP3SF.js";import"./chunks/chunk-OO572JUC.js";import"./chunks/chunk-PUKYAALC.js";import{getFlagsSpecification}from"./chunks/chunk-A2UZ2O7H.js";import"./chunks/chunk-2BKALEOP.js";import{require_source}from"./chunks/chunk-NB2WLB3J.js";import"./chunks/chunk-ISWW3DKF.js";import"./chunks/chunk-BRQUZ5NC.js";import"./chunks/chunk-MY4MONOH.js";import{__toESM}from"./chunks/chunk-BZENIQ7N.js";var import_error_utils=__toESM(require_dist(),1),import_chalk3=__toESM(require_source(),1),import_ms=__toESM(require_ms(),1),import_title=__toESM(require_lib(),1);var NOT_SAVED_LABELS={disabled:"not saved (caching disabled)",prebuilt:"not saved (prebuilt deployment)",no_cache_branch:"not saved (no branch to cache)",forced_skip:"not saved (skipped)",missing_metadata:"not saved (missing metadata)",no_files:"not saved (nothing to cache)"};function describeBuildCache(summary){let save=getKnownSave(summary);if(!save)return"unavailable";if(save.saved){let rows=[["size",`${formatCacheBytes(save.compressedSizeBytes)} / ${formatCacheBytes(save.cacheLimitBytes)} limit`]];return save.fileCount!==void 0&&rows.push(["file count",`~${save.fileCount.toLocaleString("en-US")} (approx., paths selected for packing)`]),rows}return"cacheLimitBytes"in save?`not saved (exceeded ${formatCacheBytes(save.cacheLimitBytes)} limit)`:save.reason==="failed"?"upload failed":NOT_SAVED_LABELS[save.reason]??"not saved"}function getBuildCacheJson(summary){if(!summary||typeof summary!="object")return;let{save}=summary;return save===void 0?void 0:{save}}function getKnownSave(summary){if(!summary||typeof summary!="object")return;let{version,save}=summary;if(!(version!==1||!save||typeof save!="object")){if(save.saved===!0)return isCount(save.compressedSizeBytes)&&isCount(save.cacheLimitBytes)&&(save.fileCount===void 0||isCount(save.fileCount))?save:void 0;if(!(save.saved!==!1||typeof save.reason!="string"))return save.reason==="size_exceeded"?isCount(save.cacheLimitBytes)?save:void 0:{saved:!1,reason:save.reason}}}function isCount(value){return typeof value=="number"&&Number.isSafeInteger(value)&&value>=0}var BINARY_UNITS=["B","KiB","MiB","GiB","TiB"];function formatCacheBytes(value){let unit=0,scaled=value;for(;scaled>=1024&&unit<BINARY_UNITS.length-1;)scaled/=1024,unit++;return`${Number(scaled.toFixed(2))} ${BINARY_UNITS[unit]}`}var import_chalk=__toESM(require_source(),1),import_bytes=__toESM(require_bytes(),1);var isReady=({readyState})=>readyState==="READY",isFailed=({readyState})=>readyState.endsWith("_ERROR")||readyState==="ERROR";var padding=8,MAX_BUILD_GROUPS=5,MAX_OUTPUTS_PER_GROUP=5,hasOutput=b=>Array.isArray(b.output)&&b.output.length>0,getCommonPath=buildGroup=>{let commonPath=[],splits=buildGroup.map(build=>getDirPath(build.entrypoint).split("/")),shortest=splits.reduce((prevValue,currentValue)=>Math.min(prevValue,currentValue.length),1/0);for(let i=0;i<=shortest;i++){let first=splits[0][i];if(splits.every(pathParts=>pathParts[i]===first)){commonPath.push(first);continue}break}return commonPath.join("/")||"/"},styleBuild=(build,times,longestSource)=>{let{entrypoint,id}=build,time=typeof times[id]=="string"?times[id]:"",pathColor=import_chalk.default.cyan;isFailed(build)&&(pathColor=import_chalk.default.red);let entry=entrypoint.padEnd(longestSource+padding),prefix=hasOutput(build)?"\u250C":"\u2576";return`${import_chalk.default.grey(prefix)} ${pathColor(entry)}${time}`},styleHiddenBuilds=(commonPath,buildGroup,times,longestSource,isHidden=!1)=>{let{id}=buildGroup[0],entry=commonPath.padEnd(longestSource+padding),time=typeof times[id]=="string"?times[id]:"",prefix=isHidden===!1&&buildGroup.some(hasOutput)?"\u250C":"\u2576",pathColor=import_chalk.default.cyan;return buildGroup.every(isFailed)&&(pathColor=import_chalk.default.red),isHidden&&(pathColor=import_chalk.default.grey),`${import_chalk.default.grey(prefix)} ${pathColor(entry)}${time}`},styleOutput=(output,readyState,isLast)=>{let{type,path,size,lambda}=output,prefix=type==="lambda"?"\u03BB ":"",finalSize=size?` ${import_chalk.default.grey(`(${(0,import_bytes.default)(size)})`)}`:"",color=import_chalk.default.grey,finalRegion="";if(isReady({readyState})?color=import_chalk.default:isFailed({readyState})&&(color=import_chalk.default.red),lambda){let{deployedTo}=lambda;deployedTo&&deployedTo.length>0&&(finalRegion=` ${import_chalk.default.grey(`[${deployedTo.join(", ")}]`)}`)}let corner=isLast?"\u2514\u2500\u2500":"\u251C\u2500\u2500",main=prefix+path+finalSize+finalRegion;return`${import_chalk.default.grey(corner)} ${color(main)}`},getDirPath=(path,level=0,highestLevel=null)=>{let parts=path.split("/").slice(0,-1);if(highestLevel===null||level===0)return parts.join("/");let reverseLevel=highestLevel-level;return parts.slice(0,reverseLevel).join("/")},sortByEntrypoint=(a,b)=>{let aPath=getDirPath(a.entrypoint),bPath=getDirPath(b.entrypoint);return aPath===""?1:bPath===""?-1:aPath>bPath?1:bPath>aPath?-1:0},groupBuilds=(buildList,highestLevel,counter)=>{let currentIndex=counter%buildList.length,__level=Math.ceil(counter/buildList.length),_level=(__level===0?1:__level)-1,level=_level>highestLevel?highestLevel:_level,currentPath=getDirPath(buildList[currentIndex][0].entrypoint,level,highestLevel),nextList=[],currentGroup=[];for(let i=0;i<buildList.length;i++){let group=buildList[i];getDirPath(group[0].entrypoint,level,highestLevel)===currentPath?currentGroup.push(...group):nextList.push(group)}return currentIndex===0?nextList.unshift(currentGroup):nextList.splice(currentIndex,0,currentGroup),nextList},builds_default=(builds,times)=>{let path=builds.sort(sortByEntrypoint).map(build=>[build]),highestLevel=builds.reduce((prev,curr)=>{let partCounter=curr.entrypoint.split("/").length-1;return partCounter>prev?partCounter:prev},0),counter=0;for(;path.length>MAX_BUILD_GROUPS;)path=groupBuilds(path,highestLevel,counter),counter++;path=path.reverse();let longestSource=builds.reduce((final2,current)=>{let{length}=current.entrypoint;return length>final2?length:final2},0),final=[],finalBuildsLength=path.length,lengthWithoutRootPaths=path.length,hiddenBuildGroup=[];path=(()=>{let nextList=[],rootList=[];for(let group of path)getCommonPath(group)==="/"?group.map(item=>rootList.push([item])):nextList.push(group);return lengthWithoutRootPaths=nextList.length,rootList.map(group=>nextList.push(group)),nextList})();for(let buildGroup of path){let commonPath=getCommonPath(buildGroup);if(commonPath==="/")if(lengthWithoutRootPaths<=MAX_BUILD_GROUPS&&finalBuildsLength<=MAX_BUILD_GROUPS){let item=buildGroup[0];final.push(`${styleBuild(item,times,longestSource)}
8
8
  `),finalBuildsLength++}else{hiddenBuildGroup.push(buildGroup[0]);continue}else if(buildGroup.length===1){let item=buildGroup[0];final.push(`${styleBuild(item,times,longestSource)}
9
9
  `),finalBuildsLength++}else final.push(`${styleHiddenBuilds(`${commonPath}/*`,buildGroup,times,longestSource)}
10
10
  `),finalBuildsLength++;let outputs=[];for(let build of buildGroup)Array.isArray(build.output)&&outputs.push(...build.output);outputs.slice(0,MAX_OUTPUTS_PER_GROUP).forEach((output,index)=>final.push(`${styleOutput(output,"READY",outputs.length===index+1)}
@@ -13,7 +13,7 @@ import{collectBuildLogs,displayBuildLogs}from"./chunks/chunk-NAX6IARA.js";import
13
13
  `),{lines:final.length+1,toPrint:`${final.join("")}`}};var import_chalk2=__toESM(require_source(),1),longestProperty=(routes2,name)=>{let val=routes2.sort((a,b)=>{let aName=a[name],bName=b[name],firstItem=typeof aName=="string"?aName.length:0;return(typeof bName=="string"?bName.length:0)-firstItem})[0][name];return typeof val=="string"?val.length:0};function routes(routes2){let toPrint="",longestSrc=longestProperty(routes2,"src"),longestDest=longestProperty(routes2,"dest"),padding2=6,space=" ".repeat(padding2),destSpace=" ".repeat(longestDest||10),arrow=import_chalk2.default.grey("->");for(let item of routes2){if("handle"in item){toPrint+=`${import_chalk2.default.grey("\u2576")} ${import_chalk2.default.cyan(item.handle)}`;continue}let{src,dest,status,headers}=item,suffix=routes2.indexOf(item)===routes2.length-1?"":`
14
14
  `,finalSrc=import_chalk2.default.cyan(src.padEnd(longestSrc+padding2)),finalDest=dest?`${arrow}${space}${dest}`:` ${space}${destSpace}`,finalStatus=status?import_chalk2.default.grey(`[${status}]`):"",finalHeaders=null;if(headers){finalHeaders=`
15
15
  `;let headerKeys=Object.keys(headers);for(let header of headerKeys){let value=headers[header],last2=headerKeys.indexOf(header)===headerKeys.length-1,suffix2=last2?"":`
16
- `,prefix2=import_chalk2.default.grey(last2?"\u2514\u2500\u2500":"\u251C\u2500\u2500");finalHeaders+=`${prefix2} ${header}: ${value}${suffix2}`}}let prefix=import_chalk2.default.grey(finalHeaders?"\u250C":"\u2576"),fill=`${finalSrc}${finalDest}${space}${finalStatus}`;toPrint+=`${prefix} ${fill}${finalHeaders||""}${suffix}`}return toPrint}import{URL as URL2}from"url";function parseDeploymentUrl(input){let url;try{url=new URL2(input)}catch{return normalizeDeploymentId(input)}return url.hostname==="vercel.com"||url.hostname==="www.vercel.com"?parseVercelDashboardUrl(url):{deploymentIdOrHost:url.hostname}}function parseVercelDashboardUrl(url){let pathParts=url.pathname.split("/").filter(Boolean);if(pathParts.length>=3){let[scope,,deploymentId]=pathParts;return{deploymentIdOrHost:normalizeDeploymentId(deploymentId).deploymentIdOrHost,scope}}return{deploymentIdOrHost:url.hostname}}function normalizeDeploymentId(input){return input.includes(".")?{deploymentIdOrHost:input}:input.startsWith("dpl_")?{deploymentIdOrHost:input}:{deploymentIdOrHost:`dpl_${input}`}}var InspectTelemetryClient=class extends TelemetryClient{trackCliArgumentDeployment(idOrHost){idOrHost&&this.trackCliArgument({arg:"deploymentIdOrHost",value:this.redactedValue})}trackCliOptionTimeout(timeout){timeout&&this.trackCliOption({option:"timeout",value:this.redactedValue})}trackCliFlagLogs(logs2){logs2&&this.trackCliFlag("logs")}trackCliFlagWait(wait){wait&&this.trackCliFlag("wait")}trackCliFlagJson(json){json&&this.trackCliFlag("json")}};async function inspect(client){let{print,error,warn}=output_manager_default,telemetry=new InspectTelemetryClient({opts:{store:client.telemetryEventStore}}),parsedArguments,flagsSpecification=getFlagsSpecification(inspectCommand.options);try{parsedArguments=parseArguments(client.argv.slice(2),flagsSpecification)}catch(err){return printError(err),2}if(parsedArguments.flags["--help"])return telemetry.trackCliFlagHelp("inspect"),print(help(inspectCommand,{columns:client.stderr.columns})),0;parsedArguments.args[0]===inspectCommand.name&&parsedArguments.args.shift();let[deploymentIdOrHost]=parsedArguments.args;if(!deploymentIdOrHost){let stdInput=(await readStandardInput(client.stdin)).trim();stdInput&&(deploymentIdOrHost=stdInput)}if(!deploymentIdOrHost)return error(`${getCommandName("inspect <deployment>")} expects exactly one argument`),print(help(inspectCommand,{columns:client.stderr.columns})),2;telemetry.trackCliArgumentDeployment(deploymentIdOrHost),telemetry.trackCliOptionTimeout(parsedArguments.flags["--timeout"]),telemetry.trackCliFlagLogs(parsedArguments.flags["--logs"]),telemetry.trackCliFlagWait(parsedArguments.flags["--wait"]),telemetry.trackCliOptionFormat(parsedArguments.flags["--format"]),telemetry.trackCliFlagJson(parsedArguments.flags["--json"]);let timeout=(0,import_ms.default)(parsedArguments.flags["--timeout"]??"3m");if(timeout===void 0)return error(`Invalid timeout "${parsedArguments.flags["--timeout"]}"`),1;let contextName=null,parsed=parseDeploymentUrl(deploymentIdOrHost);if(deploymentIdOrHost=parsed.deploymentIdOrHost,parsed.scope&&!detectExplicitScope(client)){let team=(await getTeams(client)).find(t=>t.slug===parsed.scope);team&&(client.config.currentTeam=team.id)}try{contextName=await getContextName(client)}catch(err){if((0,import_error_utils.isErrnoException)(err)&&(err.code==="NOT_AUTHORIZED"||err.code==="TEAM_DELETED"))return error(err.message),1;throw err}let until=Date.now()+timeout,wait=parsedArguments.flags["--wait"]??!1,withLogs=parsedArguments.flags["--logs"],formatResult=validateJsonOutput(parsedArguments.flags);if(!formatResult.valid)return error(formatResult.error),2;let asJson=formatResult.jsonOutput,startTimestamp=Date.now();asJson&&withLogs||output_manager_default.spinner(`Fetching deployment "${deploymentIdOrHost}" in ${import_chalk3.default.bold(contextName)}`);let prefetchedBuilds;!wait&&!withLogs&&deploymentIdOrHost.startsWith("dpl_")&&(prefetchedBuilds=fetchBuilds(client,deploymentIdOrHost),prefetchedBuilds.catch(()=>{}));let deployment=await getDeployment(client,contextName,deploymentIdOrHost);deployment.id!==deploymentIdOrHost&&(prefetchedBuilds=void 0);let abortController,buildLogsPromise;if(withLogs)if(asJson){let promise;({abortController,promise}=collectBuildLogs(client,deployment,wait)),buildLogsPromise=promise.catch(error2=>(warn(`Failed to read build logs: ${error2}`),[]))}else{let promise;({abortController,promise}=displayBuildLogs(client,deployment,wait)),wait?promise.catch(error2=>warn(`Failed to read build logs: ${error2}`)):await promise}let timedOut=!1;for(;wait;){if(await sleep(250),deployment=await getDeployment(client,contextName,deploymentIdOrHost),!isDeploying(deployment.readyState)){abortController?.abort();break}if(Date.now()>until){warn(`stopped waiting after ${(0,import_ms.default)(timeout,{long:!0})}, the deployment is still in progress`),timedOut=!0,abortController?.abort();break}}return asJson?(output_manager_default.stopSpinner(),withLogs?printLogsJson(client,await buildLogsPromise??[]):await printJson({deployment,contextName,client,prefetchedBuilds})):withLogs?print(`${import_chalk3.default.cyan("status")} ${stateString(deployment.readyState)}
16
+ `,prefix2=import_chalk2.default.grey(last2?"\u2514\u2500\u2500":"\u251C\u2500\u2500");finalHeaders+=`${prefix2} ${header}: ${value}${suffix2}`}}let prefix=import_chalk2.default.grey(finalHeaders?"\u250C":"\u2576"),fill=`${finalSrc}${finalDest}${space}${finalStatus}`;toPrint+=`${prefix} ${fill}${finalHeaders||""}${suffix}`}return toPrint}import{URL as URL2}from"url";function parseDeploymentUrl(input){let url;try{url=new URL2(input)}catch{return normalizeDeploymentId(input)}return url.hostname==="vercel.com"||url.hostname==="www.vercel.com"?parseVercelDashboardUrl(url):{deploymentIdOrHost:url.hostname}}function parseVercelDashboardUrl(url){let pathParts=url.pathname.split("/").filter(Boolean);if(pathParts.length>=3){let[scope,,deploymentId]=pathParts;return{deploymentIdOrHost:normalizeDeploymentId(deploymentId).deploymentIdOrHost,scope}}return{deploymentIdOrHost:url.hostname}}function normalizeDeploymentId(input){return input.includes(".")?{deploymentIdOrHost:input}:input.startsWith("dpl_")?{deploymentIdOrHost:input}:{deploymentIdOrHost:`dpl_${input}`}}var InspectTelemetryClient=class extends TelemetryClient{trackCliArgumentDeployment(idOrHost){idOrHost&&this.trackCliArgument({arg:"deploymentIdOrHost",value:this.redactedValue})}trackCliOptionTimeout(timeout){timeout&&this.trackCliOption({option:"timeout",value:this.redactedValue})}trackCliFlagLogs(logs2){logs2&&this.trackCliFlag("logs")}trackCliFlagWait(wait){wait&&this.trackCliFlag("wait")}trackCliFlagJson(json){json&&this.trackCliFlag("json")}};async function inspect(client){let{print,error,warn}=output_manager_default,telemetry=new InspectTelemetryClient({opts:{store:client.telemetryEventStore}}),parsedArguments,flagsSpecification=getFlagsSpecification(inspectCommand.options);try{parsedArguments=parseArguments(client.argv.slice(2),flagsSpecification)}catch(err){return printError(err),2}if(parsedArguments.flags["--help"])return telemetry.trackCliFlagHelp("inspect"),print(help(inspectCommand,{stream:client.stderr,columns:client.stderr.columns})),0;parsedArguments.args[0]===inspectCommand.name&&parsedArguments.args.shift();let[deploymentIdOrHost]=parsedArguments.args;if(!deploymentIdOrHost){let stdInput=(await readStandardInput(client.stdin)).trim();stdInput&&(deploymentIdOrHost=stdInput)}if(!deploymentIdOrHost)return error(`${getCommandName("inspect <deployment>")} expects exactly one argument`),print(help(inspectCommand,{stream:client.stderr,columns:client.stderr.columns})),2;telemetry.trackCliArgumentDeployment(deploymentIdOrHost),telemetry.trackCliOptionTimeout(parsedArguments.flags["--timeout"]),telemetry.trackCliFlagLogs(parsedArguments.flags["--logs"]),telemetry.trackCliFlagWait(parsedArguments.flags["--wait"]),telemetry.trackCliOptionFormat(parsedArguments.flags["--format"]),telemetry.trackCliFlagJson(parsedArguments.flags["--json"]);let timeout=(0,import_ms.default)(parsedArguments.flags["--timeout"]??"3m");if(timeout===void 0)return error(`Invalid timeout "${parsedArguments.flags["--timeout"]}"`),1;let contextName=null,parsed=parseDeploymentUrl(deploymentIdOrHost);if(deploymentIdOrHost=parsed.deploymentIdOrHost,parsed.scope&&!detectExplicitScope(client)){let team=(await getTeams(client)).find(t=>t.slug===parsed.scope);team&&(client.config.currentTeam=team.id)}try{contextName=await getContextName(client)}catch(err){if((0,import_error_utils.isErrnoException)(err)&&(err.code==="NOT_AUTHORIZED"||err.code==="TEAM_DELETED"))return error(err.message),1;throw err}let until=Date.now()+timeout,wait=parsedArguments.flags["--wait"]??!1,withLogs=parsedArguments.flags["--logs"],formatResult=validateJsonOutput(parsedArguments.flags);if(!formatResult.valid)return error(formatResult.error),2;let asJson=formatResult.jsonOutput,startTimestamp=Date.now();asJson&&withLogs||output_manager_default.spinner(`Fetching deployment "${deploymentIdOrHost}" in ${import_chalk3.default.bold(contextName)}`);let prefetchedBuilds;!wait&&!withLogs&&deploymentIdOrHost.startsWith("dpl_")&&(prefetchedBuilds=fetchBuilds(client,deploymentIdOrHost),prefetchedBuilds.catch(()=>{}));let deployment=await getDeployment(client,contextName,deploymentIdOrHost);deployment.id!==deploymentIdOrHost&&(prefetchedBuilds=void 0);let abortController,buildLogsPromise;if(withLogs)if(asJson){let promise;({abortController,promise}=collectBuildLogs(client,deployment,wait)),buildLogsPromise=promise.catch(error2=>(warn(`Failed to read build logs: ${error2}`),[]))}else{let promise;({abortController,promise}=displayBuildLogs(client,deployment,wait)),wait?promise.catch(error2=>warn(`Failed to read build logs: ${error2}`)):await promise}let timedOut=!1;for(;wait;){if(await sleep(250),deployment=await getDeployment(client,contextName,deploymentIdOrHost),!isDeploying(deployment.readyState)){abortController?.abort();break}if(Date.now()>until){warn(`stopped waiting after ${(0,import_ms.default)(timeout,{long:!0})}, the deployment is still in progress`),timedOut=!0,abortController?.abort();break}}return asJson?(output_manager_default.stopSpinner(),withLogs?printLogsJson(client,await buildLogsPromise??[]):await printJson({deployment,contextName,client,prefetchedBuilds})):withLogs?print(`${import_chalk3.default.cyan("status")} ${stateString(deployment.readyState)}
17
17
  `):await printDetails({deployment,contextName,client,startTimestamp,prefetchedBuilds}),timedOut?1:exitCode(deployment.readyState)}function stateString(s){let CIRCLE="\u25CF ",sTitle=s&&(0,import_title.default)(s);switch(s){case"INITIALIZING":case"BUILDING":return import_chalk3.default.yellow(CIRCLE)+sTitle;case"ERROR":case"BLOCKED":return import_chalk3.default.red(CIRCLE)+sTitle;case"READY":return import_chalk3.default.green(CIRCLE)+sTitle;case"QUEUED":return import_chalk3.default.gray(CIRCLE)+sTitle;case"CANCELED":return import_chalk3.default.gray(CIRCLE)+sTitle;default:return import_chalk3.default.gray("UNKNOWN")}}async function printDetails({deployment,contextName,client,startTimestamp,prefetchedBuilds}){output_manager_default.log(`Fetched deployment "${import_chalk3.default.bold(deployment.url)}" in ${import_chalk3.default.bold(contextName)} ${elapsed(Date.now()-startTimestamp)}`);let{id,name,url,createdAt,routes:routes2,readyState,readyStateReason,alias:aliases}=deployment,{print,link}=output_manager_default,builds=deployment.version===2?await(prefetchedBuilds??fetchBuilds(client,id)):[];print(`
18
18
  `),print(import_chalk3.default.bold(` General
19
19
 
@@ -72,7 +72,7 @@ See ${getCommandName("logs runtime --help")} for filter fields and examples.`}fu
72
72
  See ${getCommandName("logs runtime --help")} or ${getCommandName("logs requests --help")} for filter fields and examples.`;if(flags["--branch"]!==void 0)return"--branch is no longer supported. Remove it from the command.";let requestId=flags["--request-id"];if(requestId!==void 0){let value=SIMPLE_VALUE.test(requestId)?requestId:"<request-id>";return`--request-id was removed. Use ${filterCommand(`requestId:"${value}"`)}.`}let levels=flags["--level"];if(levels!==void 0){let values=levels.every(level=>SIMPLE_VALUE.test(level))?levels:["error"];return`--level was removed. Use ${filterCommand(alternatives("level",values))}.`}let sources=flags["--source"];if(sources!==void 0)return sourceReplacement(sources);let statusCode=flags["--status-code"];if(statusCode!==void 0)return`--status-code was removed. Use ${filterCommand(statusFilter(statusCode.trim()),"requests")}.`;if(flags["--expand"]!==void 0)return"--expand was removed. Full runtime messages are shown by default; remove the option.";for(let flag of["--no-branch","--no-follow"])if(flags[flag]!==void 0)return`${flag} was removed and has no effect. Remove it from the command.`}function quoteFilterValue(value){return JSON.stringify(value)}function composeFilter({source,deploymentId,environment,filter}){let clauses=[];if(deploymentId&&clauses.push(`deploymentId:${quoteFilterValue(deploymentId)}`),environment&&clauses.push(`environment:${quoteFilterValue(environment)}`),clauses.push(...source.fixedFilters),filter&&clauses.push(filter),clauses.length!==0)return clauses.map(clause=>`(${clause})`).join(" AND ")}function fetchEventPages2(client,query,limit,startCursor){return fetchEventPages(client,{event:query.source.event,ownerId:query.teamId,projectIds:[query.projectId],timeRange:{start:query.timeRange.start.toISOString(),end:query.timeRange.end.toISOString()},filter:query.filter,select:query.source.select,queryReason:query.source.queryReason},limit,startCursor)}var import_build_utils=__toESM(require_build_utils(),1);var NOT_LINKED_MESSAGE=`Your codebase isn't linked to a project on Vercel. Run ${getCommandName("link")}, or select a team and project with --scope <team> --project <name>.`;function fail(reason,error,exitCode2=1){return{error,exitCode:exitCode2,reason}}async function readLink(client,project){let orgId=(0,import_build_utils.getPlatformEnv)("ORG_ID"),projectId=(0,import_build_utils.getPlatformEnv)("PROJECT_ID");if(orgId&&projectId)return{link:{orgId,projectId}};if(orgId||projectId){let present=orgId?"`VERCEL_ORG_ID`":"`VERCEL_PROJECT_ID`",missing=orgId?"`VERCEL_PROJECT_ID`":"`VERCEL_ORG_ID`";return fail(AGENT_REASON.INVALID_CONFIGURATION,`You specified ${present} but you forgot to specify ${missing}. You need to specify both to select a custom project.`)}let path=await resolveProjectCwd(client.cwd);if(project){let selected=await getProjectLink(client,path,project,!0);if(selected)return{link:{orgId:selected.orgId,projectId:selected.projectId}}}let link=await getProjectLink(client,path);return{link:link?{orgId:link.orgId,projectId:link.projectId}:null}}async function teamLabel(client,teamId){try{return(await getTeamByIdOrSlug(client,teamId,{useCurrentTeam:!1})).slug||teamId}catch(err){return output_manager_default.debug(`Could not fetch team ${teamId}: ${err}`),teamId}}function isTeamId(ownerId){return ownerId.startsWith("team_")}var PERSONAL_ACCOUNT_MESSAGE="Logs are available for team-owned projects only. Select a team with --scope <team>.";async function resolveLogsTarget(client,{project:projectOption,deployment:deploymentOption,deploymentFromArgument=!1,quiet=!1}){let spinner=message=>{quiet||output_manager_default.spinner(message,1e3)},explicitScope=detectExplicitScope(client),explicitTeamId=explicitScope?client.config.currentTeam:void 0;if(explicitScope&&!explicitTeamId)return fail(AGENT_REASON.MISSING_SCOPE,PERSONAL_ACCOUNT_MESSAGE);let replacesLinkedProject=!!(projectOption||deploymentOption),link=null;if(!(explicitTeamId&&replacesLinkedProject)){let linkResult=await readLink(client,projectOption);if("error"in linkResult)return linkResult;link=linkResult.link}let teamId=explicitTeamId??link?.orgId;if(!teamId)return fail(AGENT_REASON.NOT_LINKED,NOT_LINKED_MESSAGE);if(!isTeamId(teamId))return fail(AGENT_REASON.MISSING_SCOPE,PERSONAL_ACCOUNT_MESSAGE);if(!replacesLinkedProject){if(!link)return fail(AGENT_REASON.NOT_LINKED,NOT_LINKED_MESSAGE);if(link.orgId!==teamId){let[requested,linked]=await Promise.all([teamLabel(client,teamId),teamLabel(client,link.orgId)]);return fail(AGENT_REASON.TARGET_CONFLICT,`This directory is linked to a project in team ${linked}, but ${requested} was selected.
73
73
  Select a project in ${requested} with --project <name>, select the linked team with --scope ${linked}, or run ${getCommandName("link")} to relink.`)}}client.config.currentTeam=teamId;let labelPromise=teamLabel(client,teamId),deploymentId,deploymentProjectId;if(deploymentOption){let label2=await labelPromise;spinner(`Resolving deployment "${deploymentOption}"`);try{let deployment=await getDeployment(client,label2,deploymentOption);deploymentId=deployment.id,deploymentProjectId=deployment.projectId}catch(err){if(err instanceof DeploymentNotFound||err instanceof DeploymentPermissionDenied)return fail(AGENT_REASON.NOT_FOUND,`Deployment not found: ${deploymentOption} under ${label2}`);if(err instanceof InvalidDeploymentId)return fail(AGENT_REASON.NOT_FOUND,`Invalid deployment ID or URL: ${deploymentOption}`);throw err}finally{output_manager_default.stopSpinner()}if(!deploymentProjectId)return fail(AGENT_REASON.NOT_FOUND,`Deployment ${deploymentOption} is not associated with a project.`)}let projectIdOrName=projectOption??deploymentProjectId??link?.projectId;if(!projectIdOrName)return fail(AGENT_REASON.NOT_LINKED,NOT_LINKED_MESSAGE);spinner("Retrieving project\u2026");let project;try{project=await getProjectByNameOrId(client,projectIdOrName,teamId)}finally{output_manager_default.stopSpinner()}let label=await labelPromise;if(project instanceof ProjectNotFound)return!projectOption&&!deploymentProjectId?fail(AGENT_REASON.PROJECT_NOT_FOUND,`The linked project ${projectIdOrName} was not found under ${label}. Run ${getCommandName("link")} to relink, or select a project with --project <name>.`):fail(AGENT_REASON.PROJECT_NOT_FOUND,`Project not found: ${projectIdOrName} under ${label}`);if(deploymentProjectId&&project.id!==deploymentProjectId){let deploymentInput=deploymentFromArgument?"the deployment argument":"--deployment";return fail(AGENT_REASON.TARGET_CONFLICT,`Deployment ${deploymentOption} does not belong to project ${project.name}. Remove ${deploymentInput} or --project.`)}return{target:{teamId,teamLabel:label,projectId:project.id,projectName:project.name,deploymentId}}}var import_ms2=__toESM(require_ms(),1);function parseBound(flag,value,now){try{return parseTimeFlag(value,now)}catch{return`Invalid time format "${value}" for ${flag}. Use a relative duration (1h, 30m, 2d), an ISO 8601 datetime, or now.`}}function resolveLogsTimeRange({since,until,now,wholeSeconds}){let end=until!==void 0?parseBound("--until",until,now):new Date(now);if(typeof end=="string")return{error:end};let start=since!==void 0?parseBound("--since",since,now):new Date(end.getTime()-(0,import_ms2.default)(DEFAULT_WINDOW));if(typeof start=="string")return{error:start};let range=wholeSeconds?{start:floorToSecond(start),end:floorToSecond(end)}:{start,end};return range.start.getTime()>=range.end.getTime()?{error:[`The time range is empty: the start (${range.start.toISOString()}) must be before the end (${range.end.toISOString()}).`,"Use --since to set an earlier start."].join(`
74
74
  `)}:{range}}function floorToSecond(date){return new Date(Math.floor(date.getTime()/1e3)*1e3)}var COMMAND_CONFIG={runtime:getCommandAliases(runtimeSubcommand),requests:getCommandAliases(requestsSubcommand)},SUBCOMMAND_METADATA={runtime:runtimeSubcommand,requests:requestsSubcommand},SOURCE_TITLES={runtime:"Runtime logs",requests:"CDN requests"},CONTINUATION_CONFLICTS=["--project","--deployment","--environment","--query","--since","--until"];function looksLikeDeployment(value){return value.startsWith("dpl_")||value.includes(".")||/^https?:\/\//i.test(value)}function deploymentHost(value){try{return new URL(value).hostname}catch{return value}}function argvRequestsJson(argv){let args=argv.slice(2);for(let[index,arg]of args.entries()){if(arg==="--")break;if(arg==="--json")return!0;if(arg.startsWith("--json=")){if(arg.slice(7).toLowerCase()!=="false")return!0;continue}if(arg.toLowerCase()==="--format=json"||arg.startsWith("-F=")&&arg.slice(3).toLowerCase()==="json"||(arg==="--format"||arg==="-F")&&args[index+1]?.toLowerCase()==="json")return!0}return!1}function isRemovedJsonShorthandError(err){return isArgumentError(err)&&err.invalidOption==="-j"}function argvHasScopeFlag(argv){for(let arg of argv.slice(2)){if(arg==="--")break;if(arg==="--scope"||arg==="--team"||arg==="-S"||arg==="-T"||arg.startsWith("--scope=")||arg.startsWith("--team="))return!0}return!1}function deploymentFlag(value){return`--deployment ${quoteArg(deploymentHost(value))}`}function positionalError(value,explicitSource){let sourcePart=explicitSource?` ${explicitSource}`:"";return looksLikeDeployment(value)?`Select a deployment with --deployment: ${getCommandName(`logs${sourcePart} ${deploymentFlag(value)}`)}`:explicitSource?`Unexpected argument "${value}". ${getCommandName(`logs ${explicitSource}`)} takes no arguments.`:`Unknown data source "${value}". Use runtime or requests. See ${getCommandName("logs --help")}.`}function isClosedOutputError(err){return err instanceof Error&&(err.code==="EPIPE"||err.message==="Output stream closed.")}function streamGapMessage(interval){return`Results omit ${sanitize(interval.start)} to ${sanitize(interval.end)}: data for this period is unavailable to this query.`}async function logs(client){let commandStart=Date.now(),telemetry=new LogsTelemetryClient({opts:{store:client.telemetryEventStore}}),parsedArguments;try{parsedArguments=parseArguments(client.argv.slice(2),getFlagsSpecification([...logsCommand.options,...legacyLogsOptions]))}catch(err){let removedShorthand=isRemovedJsonShorthandError(err);removedShorthand&&telemetry.trackCliLegacyOption("j");let message=removedShorthand?"-j was removed. Use --json.":err instanceof Error?err.message:String(err);return client.nonInteractive||argvRequestsJson(client.argv)?writeJsonError(client,{status:"error",reason:AGENT_REASON.INVALID_ARGUMENTS,message,next:[{command:"vercel logs --help"}]}):removedShorthand?(output_manager_default.error(message),2):(printError(err),output_manager_default.print(`Run ${getCommandName("logs --help")} for usage.
75
- `),2)}parsedArguments.args[0]==="log"&&warnDeprecatedSubcommand(client,"log","logs");let{flags}=parsedArguments,formatResult=validateJsonOutput(flags),json=!!flags["--json"]||formatResult.valid&&formatResult.jsonOutput||argvRequestsJson(client.argv)||client.nonInteractive,{subcommand,subcommandOriginal,args}=getSubcommand(parsedArguments.args.slice(1),COMMAND_CONFIG),explicitSource=subcommand==="runtime"||subcommand==="requests"?subcommand:void 0;if(flags["--help"])return telemetry.trackCliFlagHelp("logs",explicitSource&&subcommandOriginal),output_manager_default.print(help(explicitSource?SUBCOMMAND_METADATA[explicitSource]:logsCommand,{parent:explicitSource?logsCommand:void 0,columns:client.stderr.columns})),0;let nextOption=flags["--next"],trimmedNext=nextOption?.trim(),continuation=trimmedNext?decodeContinuation(trimmedNext):void 0,continuationSource=continuation?sourceForEvent(continuation.event):void 0,sourceName=explicitSource??continuationSource?.name??"runtime";sourceName==="requests"?telemetry.trackCliSubcommandRequests(subcommandOriginal):telemetry.trackCliSubcommandRuntime(subcommandOriginal);let projectOption=flags["--project"],deploymentOption=flags["--deployment"],environmentOption=flags["--environment"],queryOption=flags["--query"],sinceOption=flags["--since"],untilOption=flags["--until"],limitOption=flags["--limit"];telemetry.trackCliOptionProject(projectOption),telemetry.trackCliOptionDeployment(deploymentOption),telemetry.trackCliOptionEnvironment(environmentOption),telemetry.trackCliOptionQuery(queryOption),telemetry.trackCliOptionSince(sinceOption),telemetry.trackCliOptionUntil(untilOption),telemetry.trackCliOptionLimit(limitOption),telemetry.trackCliOptionNext(nextOption),telemetry.trackCliOptionFormat(flags["--format"]),telemetry.trackCliFlagJson(flags["--json"]),telemetry.trackCliFlagFollow(flags["--follow"]);let fail2=(reason,message,exitCode2,extra={})=>(output_manager_default.stopSpinner(),json?writeJsonError(client,{status:"error",reason,message,...extra},exitCode2):(output_manager_default.error(message),exitCode2??(reason===AGENT_REASON.INVALID_ARGUMENTS?2:1))),usageError=message=>fail2(AGENT_REASON.INVALID_ARGUMENTS,message,2),failUnexpected=err=>{if(output_manager_default.stopSpinner(),!json)return printError(err),1;let failure=describeLogsApiError(client,err,sourceName);return failure?writeJsonError(client,failure.json,failure.exitCode):writeJsonError(client,{status:"error",reason:AGENT_REASON.API_ERROR,message:(0,import_error_utils2.errorToString)(err)})};if(!formatResult.valid)return usageError(formatResult.error);let legacyOptions=usedLegacyOptions(flags);for(let name of legacyOptions)telemetry.trackCliLegacyOption(name);let legacyError=getLegacyOptionError(flags);if(legacyError)return usageError(legacyError);let positionalDeployment;if(args.length>0){if(telemetry.trackCliArgumentPositional(looksLikeDeployment(args[0])?"deployment":"unknown"),args.length>1||!looksLikeDeployment(args[0]))return usageError(positionalError(args[0],explicitSource));if(deploymentOption!==void 0)return usageError("Pass the deployment once, with --deployment. Remove the deployment argument.");if(nextOption!==void 0)return usageError("A deployment argument can't be combined with --next. The cursor keeps the original target, filter, and time window.");positionalDeployment=args[0]}let upfrontWarnings=[],warn=(reason,message,data)=>{json?upfrontWarnings.push(warningLine({reason,message,data})):output_manager_default.warning(message)};flags["--follow"]&&warn("deprecated","--follow is deprecated and no longer streams logs. Showing a bounded result; remove --follow."),positionalDeployment!==void 0&&warn("deprecated",`Passing a deployment as an argument is deprecated. Use ${deploymentFlag(positionalDeployment)}.`);let limit;if(typeof limitOption=="number"&&Number.isInteger(limitOption)&&limitOption>MAX_LIMIT)limit=MAX_LIMIT,warn("limit_clamped",`--limit ${limitOption} is above the maximum of ${MAX_LIMIT}. Using ${MAX_LIMIT}.`,{requested:limitOption,limit:MAX_LIMIT});else{let limitResult=validateIntegerRangeWithDefault(limitOption,{flag:"--limit",min:1,max:MAX_LIMIT,defaultValue:DEFAULT_LIMIT});if(!limitResult.valid)return usageError(limitResult.message);limit=limitResult.value}let plan;if(nextOption!==void 0){let planResult=await planContinuation();if(typeof planResult=="number")return planResult;plan=planResult}else{let planResult=await planQuery();if(typeof planResult=="number")return planResult;plan=planResult}async function planContinuation(){if(!trimmedNext)return usageError("--next must not be empty.");let invalidCursor=`--next is not a valid cursor. Use the pagination.next value from the summary of a previous ${getCommandName("logs --json")} run.`;if(!continuation||!continuationSource)return usageError(invalidCursor);let parsed=parseContinuation(continuation);if(!parsed)return usageError(invalidCursor);if(explicitSource&&explicitSource!==continuationSource.name)return usageError(`The --next cursor continues a ${continuationSource.name} query. Use ${getCommandName("logs --next <CURSOR>")} without "${explicitSource}".`);for(let flag of CONTINUATION_CONFLICTS)if(flags[flag]!==void 0)return usageError(`${flag} can't be combined with --next. The cursor keeps the original target, filter, and time window.`);if(argvHasScopeFlag(client.argv)&&client.config.currentTeam!==continuation.ownerId)return usageError("The --next cursor belongs to a different team than --scope. Remove --scope to use the team in the cursor.");let{teamId,projectId,timeRange:timeRange2}=parsed;return{source:continuationSource,teamId,projectId,timeRange:timeRange2,filter:continuation.filter,startCursor:continuation.cursor,context:async()=>{let[label,project]=await Promise.all([teamLabel(client,teamId),getProjectByNameOrId(client,projectId,teamId).catch(()=>null)]),projectName=project&&!(project instanceof ProjectNotFound)?project.name:projectId;return`${SOURCE_TITLES[continuationSource.name]} for ${label}/${projectName} (continued), ${formatWindow(timeRange2)}`}}}async function planQuery(){let source2=logsSources[sourceName],filter=queryOption?.trim();if(queryOption!==void 0&&!filter)return usageError("--query must not be empty.");let environment=environmentOption?.trim();if(environmentOption!==void 0&&!environment)return usageError("--environment must not be empty.");let deploymentInput=deploymentOption??positionalDeployment,deployment=deploymentInput?.trim();if(deploymentInput!==void 0&&!deployment)return usageError("--deployment must not be empty.");let project=projectOption?.trim();if(projectOption!==void 0&&!project)return usageError("--project must not be empty.");let timeRangeResult=resolveLogsTimeRange({since:sinceOption,until:untilOption,now:commandStart,wholeSeconds:source2.wholeSecondBounds});if("error"in timeRangeResult)return usageError(timeRangeResult.error);let timeRange2=timeRangeResult.range,targetResult;try{targetResult=await resolveLogsTarget(client,{project,deployment:deployment&&deploymentHost(deployment),deploymentFromArgument:positionalDeployment!==void 0,quiet:json})}catch(err){return failUnexpected(err)}if("error"in targetResult)return fail2(targetResult.reason,targetResult.error,targetResult.exitCode);let{target}=targetResult;return{source:source2,teamId:target.teamId,projectId:target.projectId,timeRange:timeRange2,filter:composeFilter({source:source2,deploymentId:target.deploymentId,environment,filter}),context:async()=>{let details=[target.deploymentId?`deployment ${target.deploymentId}`:void 0,environment?`environment ${environment}`:void 0].filter(Boolean);return`${SOURCE_TITLES[source2.name]} for ${target.teamLabel}/${target.projectName}`+(details.length>0?` (${details.join(", ")})`:"")+`, ${formatWindow(timeRange2)}`}}}let{source,timeRange}=plan,serializedTimeRange=serializeTimeRange(timeRange),tokenFor=cursor=>encodeContinuation({event:source.event,ownerId:plan.teamId,projectIds:[plan.projectId],timeRange:serializedTimeRange,...plan.filter!==void 0?{filter:plan.filter}:{},order:"desc",cursor}),write=async text2=>{try{return await writeWithBackpressure(client.stdout,text2),!0}catch(err){if(isClosedOutputError(err))return!1;throw err}};json||output_manager_default.print(import_chalk5.default.dim(`${await plan.context()}
75
+ `),2)}parsedArguments.args[0]==="log"&&warnDeprecatedSubcommand(client,"log","logs");let{flags}=parsedArguments,formatResult=validateJsonOutput(flags),json=!!flags["--json"]||formatResult.valid&&formatResult.jsonOutput||argvRequestsJson(client.argv)||client.nonInteractive,{subcommand,subcommandOriginal,args}=getSubcommand(parsedArguments.args.slice(1),COMMAND_CONFIG),explicitSource=subcommand==="runtime"||subcommand==="requests"?subcommand:void 0;if(flags["--help"])return telemetry.trackCliFlagHelp("logs",explicitSource&&subcommandOriginal),output_manager_default.print(help(explicitSource?SUBCOMMAND_METADATA[explicitSource]:logsCommand,{stream:client.stderr,parent:explicitSource?logsCommand:void 0,columns:client.stderr.columns})),0;let nextOption=flags["--next"],trimmedNext=nextOption?.trim(),continuation=trimmedNext?decodeContinuation(trimmedNext):void 0,continuationSource=continuation?sourceForEvent(continuation.event):void 0,sourceName=explicitSource??continuationSource?.name??"runtime";sourceName==="requests"?telemetry.trackCliSubcommandRequests(subcommandOriginal):telemetry.trackCliSubcommandRuntime(subcommandOriginal);let projectOption=flags["--project"],deploymentOption=flags["--deployment"],environmentOption=flags["--environment"],queryOption=flags["--query"],sinceOption=flags["--since"],untilOption=flags["--until"],limitOption=flags["--limit"];telemetry.trackCliOptionProject(projectOption),telemetry.trackCliOptionDeployment(deploymentOption),telemetry.trackCliOptionEnvironment(environmentOption),telemetry.trackCliOptionQuery(queryOption),telemetry.trackCliOptionSince(sinceOption),telemetry.trackCliOptionUntil(untilOption),telemetry.trackCliOptionLimit(limitOption),telemetry.trackCliOptionNext(nextOption),telemetry.trackCliOptionFormat(flags["--format"]),telemetry.trackCliFlagJson(flags["--json"]),telemetry.trackCliFlagFollow(flags["--follow"]);let fail2=(reason,message,exitCode2,extra={})=>(output_manager_default.stopSpinner(),json?writeJsonError(client,{status:"error",reason,message,...extra},exitCode2):(output_manager_default.error(message),exitCode2??(reason===AGENT_REASON.INVALID_ARGUMENTS?2:1))),usageError=message=>fail2(AGENT_REASON.INVALID_ARGUMENTS,message,2),failUnexpected=err=>{if(output_manager_default.stopSpinner(),!json)return printError(err),1;let failure=describeLogsApiError(client,err,sourceName);return failure?writeJsonError(client,failure.json,failure.exitCode):writeJsonError(client,{status:"error",reason:AGENT_REASON.API_ERROR,message:(0,import_error_utils2.errorToString)(err)})};if(!formatResult.valid)return usageError(formatResult.error);let legacyOptions=usedLegacyOptions(flags);for(let name of legacyOptions)telemetry.trackCliLegacyOption(name);let legacyError=getLegacyOptionError(flags);if(legacyError)return usageError(legacyError);let positionalDeployment;if(args.length>0){if(telemetry.trackCliArgumentPositional(looksLikeDeployment(args[0])?"deployment":"unknown"),args.length>1||!looksLikeDeployment(args[0]))return usageError(positionalError(args[0],explicitSource));if(deploymentOption!==void 0)return usageError("Pass the deployment once, with --deployment. Remove the deployment argument.");if(nextOption!==void 0)return usageError("A deployment argument can't be combined with --next. The cursor keeps the original target, filter, and time window.");positionalDeployment=args[0]}let upfrontWarnings=[],warn=(reason,message,data)=>{json?upfrontWarnings.push(warningLine({reason,message,data})):output_manager_default.warning(message)};flags["--follow"]&&warn("deprecated","--follow is deprecated and no longer streams logs. Showing a bounded result; remove --follow."),positionalDeployment!==void 0&&warn("deprecated",`Passing a deployment as an argument is deprecated. Use ${deploymentFlag(positionalDeployment)}.`);let limit;if(typeof limitOption=="number"&&Number.isInteger(limitOption)&&limitOption>MAX_LIMIT)limit=MAX_LIMIT,warn("limit_clamped",`--limit ${limitOption} is above the maximum of ${MAX_LIMIT}. Using ${MAX_LIMIT}.`,{requested:limitOption,limit:MAX_LIMIT});else{let limitResult=validateIntegerRangeWithDefault(limitOption,{flag:"--limit",min:1,max:MAX_LIMIT,defaultValue:DEFAULT_LIMIT});if(!limitResult.valid)return usageError(limitResult.message);limit=limitResult.value}let plan;if(nextOption!==void 0){let planResult=await planContinuation();if(typeof planResult=="number")return planResult;plan=planResult}else{let planResult=await planQuery();if(typeof planResult=="number")return planResult;plan=planResult}async function planContinuation(){if(!trimmedNext)return usageError("--next must not be empty.");let invalidCursor=`--next is not a valid cursor. Use the pagination.next value from the summary of a previous ${getCommandName("logs --json")} run.`;if(!continuation||!continuationSource)return usageError(invalidCursor);let parsed=parseContinuation(continuation);if(!parsed)return usageError(invalidCursor);if(explicitSource&&explicitSource!==continuationSource.name)return usageError(`The --next cursor continues a ${continuationSource.name} query. Use ${getCommandName("logs --next <CURSOR>")} without "${explicitSource}".`);for(let flag of CONTINUATION_CONFLICTS)if(flags[flag]!==void 0)return usageError(`${flag} can't be combined with --next. The cursor keeps the original target, filter, and time window.`);if(argvHasScopeFlag(client.argv)&&client.config.currentTeam!==continuation.ownerId)return usageError("The --next cursor belongs to a different team than --scope. Remove --scope to use the team in the cursor.");let{teamId,projectId,timeRange:timeRange2}=parsed;return{source:continuationSource,teamId,projectId,timeRange:timeRange2,filter:continuation.filter,startCursor:continuation.cursor,context:async()=>{let[label,project]=await Promise.all([teamLabel(client,teamId),getProjectByNameOrId(client,projectId,teamId).catch(()=>null)]),projectName=project&&!(project instanceof ProjectNotFound)?project.name:projectId;return`${SOURCE_TITLES[continuationSource.name]} for ${label}/${projectName} (continued), ${formatWindow(timeRange2)}`}}}async function planQuery(){let source2=logsSources[sourceName],filter=queryOption?.trim();if(queryOption!==void 0&&!filter)return usageError("--query must not be empty.");let environment=environmentOption?.trim();if(environmentOption!==void 0&&!environment)return usageError("--environment must not be empty.");let deploymentInput=deploymentOption??positionalDeployment,deployment=deploymentInput?.trim();if(deploymentInput!==void 0&&!deployment)return usageError("--deployment must not be empty.");let project=projectOption?.trim();if(projectOption!==void 0&&!project)return usageError("--project must not be empty.");let timeRangeResult=resolveLogsTimeRange({since:sinceOption,until:untilOption,now:commandStart,wholeSeconds:source2.wholeSecondBounds});if("error"in timeRangeResult)return usageError(timeRangeResult.error);let timeRange2=timeRangeResult.range,targetResult;try{targetResult=await resolveLogsTarget(client,{project,deployment:deployment&&deploymentHost(deployment),deploymentFromArgument:positionalDeployment!==void 0,quiet:json})}catch(err){return failUnexpected(err)}if("error"in targetResult)return fail2(targetResult.reason,targetResult.error,targetResult.exitCode);let{target}=targetResult;return{source:source2,teamId:target.teamId,projectId:target.projectId,timeRange:timeRange2,filter:composeFilter({source:source2,deploymentId:target.deploymentId,environment,filter}),context:async()=>{let details=[target.deploymentId?`deployment ${target.deploymentId}`:void 0,environment?`environment ${environment}`:void 0].filter(Boolean);return`${SOURCE_TITLES[source2.name]} for ${target.teamLabel}/${target.projectName}`+(details.length>0?` (${details.join(", ")})`:"")+`, ${formatWindow(timeRange2)}`}}}let{source,timeRange}=plan,serializedTimeRange=serializeTimeRange(timeRange),tokenFor=cursor=>encodeContinuation({event:source.event,ownerId:plan.teamId,projectIds:[plan.projectId],timeRange:serializedTimeRange,...plan.filter!==void 0?{filter:plan.filter}:{},order:"desc",cursor}),write=async text2=>{try{return await writeWithBackpressure(client.stdout,text2),!0}catch(err){if(isClosedOutputError(err))return!1;throw err}};json||output_manager_default.print(import_chalk5.default.dim(`${await plan.context()}
76
76
  `));let pages=fetchEventPages2(client,{source,teamId:plan.teamId,projectId:plan.projectId,timeRange,filter:plan.filter},limit,plan.startCursor),renderer=json?void 0:createRenderer(source.name,timeRange),excludedIntervals=new Map,written=0,pagesFetched=0,resumeCursor=plan.startCursor,result;try{if(upfrontWarnings.length>0&&!await write(upfrontWarnings.join("")))return 0;for(;;){!json&&pagesFetched===0&&output_manager_default.spinner(`Fetching ${source.recordsLabel}\u2026`,1e3);let next;try{next=await pages.next()}catch(err){return reportFetchFailure(err)}if(output_manager_default.stopSpinner(),pagesFetched+=1,next.done){result=next.value;break}for(let interval of next.value.excludedIntervals)excludedIntervals.set(`${interval.start}/${interval.end}`,interval);let{events}=next.value,chunk="";if(renderer){written===0&&events.length>0&&(chunk+=`${renderer.header()}
77
77
  `);for(let event of events)chunk+=`${renderer.row(event)}
78
78
  `}else for(let event of events)chunk+=recordLine(source.recordType,event);if(chunk&&!await write(chunk))return 0;written+=events.length,resumeCursor=next.value.nextCursor??void 0}let intervals=sortIntervals(excludedIntervals.values()),nextToken=result.nextCursor?tokenFor(result.nextCursor):null;if(json){let tail=intervals.map(interval=>warningLine({reason:"stream_gap",message:streamGapMessage(interval),data:{start:interval.start,end:interval.end}})).join("")+summaryLine({recordsReturned:written,timeRange:serializedTimeRange,pagination:{hasMore:result.hasMore,next:nextToken},excludedIntervals:intervals});return await write(tail),0}for(let interval of intervals)output_manager_default.warning(streamGapMessage(interval));if(written===0){let notes=[`No ${source.recordsLabel} found in this window. Use an earlier --since to search further back.`];source.fixedFilters.includes(BACKGROUND_FUNCTION_EXCLUSION)&&notes.push("Background function executions are always excluded."),output_manager_default.print(import_chalk5.default.dim(`${notes.join(`