vercel 59.14.0 → 59.15.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 (459) hide show
  1. package/dist/chunks/add-7XFD2OHW.js +8 -0
  2. package/dist/chunks/add-HZC7AUBY.js +8 -0
  3. package/dist/chunks/add-PYUNJZ6K.js +8 -0
  4. package/dist/chunks/build-EFKQ6BND.js +7 -0
  5. package/dist/chunks/chunk-2B2MN3U5.js +8 -0
  6. package/dist/chunks/chunk-2H77IRPI.js +9 -0
  7. package/dist/chunks/chunk-2I64AYHG.js +7 -0
  8. package/dist/chunks/chunk-2PPXY24N.js +20 -0
  9. package/dist/chunks/chunk-2S6PE6GB.js +7 -0
  10. package/dist/chunks/{chunk-PIMIVJYK.js → chunk-3FMJYJUR.js} +7 -32
  11. package/dist/chunks/chunk-3IAQUNQH.js +7 -0
  12. package/dist/chunks/chunk-3QHJYVCY.js +7 -0
  13. package/dist/chunks/chunk-3QT7VOE3.js +7 -0
  14. package/dist/chunks/chunk-3TXEXPUW.js +7 -0
  15. package/dist/chunks/chunk-4MZK6JT6.js +7 -0
  16. package/dist/chunks/chunk-4NE5IQ25.js +7 -0
  17. package/dist/chunks/chunk-4PNSSS3L.js +7 -0
  18. package/dist/chunks/chunk-4QX77CP7.js +7 -0
  19. package/dist/chunks/chunk-57GHYR4Y.js +25 -0
  20. package/dist/chunks/chunk-5QQNYN4N.js +7 -0
  21. package/dist/chunks/chunk-5XJNPXQK.js +7 -0
  22. package/dist/chunks/chunk-6L236MNA.js +7 -0
  23. package/dist/chunks/chunk-6PFC3KWQ.js +7 -0
  24. package/dist/chunks/chunk-6QKS6QK7.js +7 -0
  25. package/dist/chunks/chunk-6RIQPTJA.js +8 -0
  26. package/dist/chunks/chunk-6TAQ6OWD.js +13 -0
  27. package/dist/chunks/chunk-6YAADRQB.js +9 -0
  28. package/dist/chunks/chunk-75CPY75D.js +15 -0
  29. package/dist/chunks/chunk-7HL2RPUO.js +7 -0
  30. package/dist/chunks/chunk-7PNYOSDU.js +9 -0
  31. package/dist/chunks/chunk-7R5FEXZ5.js +7 -0
  32. package/dist/chunks/chunk-7RMCBXBB.js +62 -0
  33. package/dist/chunks/chunk-7RR7MIMT.js +7 -0
  34. package/dist/chunks/chunk-7T6TL3GQ.js +7 -0
  35. package/dist/chunks/chunk-ADUYPK2G.js +13 -0
  36. package/dist/chunks/chunk-AFPOIDM5.js +7 -0
  37. package/dist/chunks/chunk-AM46JVVN.js +7 -0
  38. package/dist/chunks/chunk-AVSPFBLM.js +7 -0
  39. package/dist/chunks/chunk-B4ATVYZW.js +7 -0
  40. package/dist/chunks/chunk-BATE73HA.js +9 -0
  41. package/dist/chunks/{chunk-64IF634X.js → chunk-BRK4OB4B.js} +1 -12
  42. package/dist/chunks/chunk-BVH2AEFE.js +7 -0
  43. package/dist/chunks/chunk-CN2QZO4U.js +7 -0
  44. package/dist/chunks/chunk-COQGD2EI.js +8 -0
  45. package/dist/chunks/chunk-CUAIEGNE.js +7 -0
  46. package/dist/chunks/chunk-CVKB54WW.js +7 -0
  47. package/dist/chunks/{chunk-A3NYPUKZ.js → chunk-CZSOZKHX.js} +1 -11
  48. package/dist/chunks/chunk-D4MW3RDW.js +7 -0
  49. package/dist/chunks/chunk-DFVNL5ML.js +7 -0
  50. package/dist/chunks/chunk-EE3FVJLV.js +16 -0
  51. package/dist/chunks/chunk-EGMJRU5P.js +28 -0
  52. package/dist/chunks/chunk-ENBTTYJR.js +7 -0
  53. package/dist/chunks/chunk-ENS6KX2F.js +7 -0
  54. package/dist/chunks/chunk-EOBD4ZEG.js +8 -0
  55. package/dist/chunks/chunk-EOCTK4EA.js +7 -0
  56. package/dist/chunks/chunk-EQ52F4LH.js +7 -0
  57. package/dist/chunks/chunk-ETV3C2CV.js +7 -0
  58. package/dist/chunks/chunk-EVZRQGNK.js +7 -0
  59. package/dist/chunks/chunk-F2ZWW2IO.js +8 -0
  60. package/dist/chunks/chunk-FAW6NBLQ.js +7 -0
  61. package/dist/chunks/chunk-FI772UVH.js +7 -0
  62. package/dist/chunks/chunk-FKCOBJFH.js +7 -0
  63. package/dist/chunks/chunk-FVGESGJI.js +45 -0
  64. package/dist/chunks/chunk-G5FC5ZCO.js +9 -0
  65. package/dist/chunks/chunk-G6CTAHKY.js +39 -0
  66. package/dist/chunks/chunk-G7Y77DFH.js +7 -0
  67. package/dist/chunks/chunk-GHAY4PSD.js +7 -0
  68. package/dist/chunks/chunk-GHM7V3GG.js +7 -0
  69. package/dist/chunks/chunk-GRNTLNC7.js +7 -0
  70. package/dist/chunks/chunk-GTRGQIY2.js +10 -0
  71. package/dist/chunks/chunk-GU6VIFR5.js +7 -0
  72. package/dist/chunks/{constants-YMCRE6IG.js → chunk-GZNDA6SV.js} +2 -9
  73. package/dist/chunks/chunk-HBFPLBTX.js +10 -0
  74. package/dist/chunks/chunk-HEGJZJO7.js +7 -0
  75. package/dist/chunks/chunk-HSJ6AHWG.js +12 -0
  76. package/dist/chunks/chunk-HTC6KO2B.js +7 -0
  77. package/dist/chunks/chunk-HVUHCRZB.js +18 -0
  78. package/dist/chunks/chunk-HZZ5L472.js +7 -0
  79. package/dist/chunks/chunk-IVSSTHB6.js +7 -0
  80. package/dist/chunks/chunk-IVWPQYIH.js +7 -0
  81. package/dist/chunks/chunk-J3U3L45Y.js +7 -0
  82. package/dist/chunks/chunk-JAJW3P42.js +7 -0
  83. package/dist/chunks/chunk-JEIMW3CO.js +7 -0
  84. package/dist/chunks/chunk-JIYY3B4C.js +7 -0
  85. package/dist/chunks/chunk-JKTQV2QJ.js +7 -0
  86. package/dist/chunks/chunk-JTVVBRW7.js +7 -0
  87. package/dist/chunks/chunk-JYAUUIR4.js +7 -0
  88. package/dist/chunks/chunk-JZRMH5UA.js +7 -0
  89. package/dist/chunks/chunk-K2RAW5DI.js +10 -0
  90. package/dist/chunks/chunk-K3KJZLBD.js +7 -0
  91. package/dist/chunks/chunk-KK4AJES5.js +36 -0
  92. package/dist/chunks/chunk-KKS7XWEX.js +7 -0
  93. package/dist/chunks/chunk-KNEWCUWF.js +14 -0
  94. package/dist/chunks/chunk-KO733OJG.js +9 -0
  95. package/dist/chunks/chunk-L243RUIR.js +19 -0
  96. package/dist/chunks/chunk-L3JDEHCQ.js +7 -0
  97. package/dist/chunks/chunk-LDM3SQAU.js +13 -0
  98. package/dist/chunks/chunk-LNPMDXBJ.js +7 -0
  99. package/dist/chunks/chunk-M2W3HKV3.js +23 -0
  100. package/dist/chunks/chunk-M2XARQBF.js +9 -0
  101. package/dist/chunks/chunk-M5AV545M.js +7 -0
  102. package/dist/chunks/chunk-MAVRGZQP.js +7 -0
  103. package/dist/chunks/chunk-MBL6TXEJ.js +7 -0
  104. package/dist/chunks/chunk-MEAY2K5Z.js +11 -0
  105. package/dist/chunks/chunk-MY4MONOH.js +7 -0
  106. package/dist/chunks/chunk-N3N5UHIL.js +7 -0
  107. package/dist/chunks/chunk-N3ZZ7FHQ.js +7 -0
  108. package/dist/chunks/chunk-N6CNMMSZ.js +7 -0
  109. package/dist/chunks/chunk-NBVY237X.js +7 -0
  110. package/dist/chunks/chunk-NGNOUPWS.js +25 -0
  111. package/dist/chunks/chunk-NHTF332K.js +7 -0
  112. package/dist/chunks/chunk-NNP5NITU.js +15 -0
  113. package/dist/chunks/chunk-NS4FH2TY.js +11 -0
  114. package/dist/chunks/chunk-NUGLE4QY.js +11 -0
  115. package/dist/chunks/chunk-NWFHHUKZ.js +7 -0
  116. package/dist/chunks/chunk-O7G3CZ42.js +7 -0
  117. package/dist/chunks/chunk-OD6RZ3XZ.js +8 -0
  118. package/dist/chunks/chunk-OHDEHZLX.js +7 -0
  119. package/dist/chunks/chunk-OK3S6KFX.js +16 -0
  120. package/dist/chunks/chunk-OKZDOANA.js +23 -0
  121. package/dist/chunks/chunk-OSCCYU74.js +7 -0
  122. package/dist/chunks/chunk-OUHPDA7Q.js +7 -0
  123. package/dist/chunks/chunk-P2O5DOYE.js +7 -0
  124. package/dist/chunks/chunk-PHW54NU5.js +13 -0
  125. package/dist/chunks/chunk-PPCFQQSU.js +7 -0
  126. package/dist/chunks/chunk-QGIGNMII.js +8 -0
  127. package/dist/chunks/chunk-QGIQK47P.js +7 -0
  128. package/dist/chunks/chunk-QHJLRTVY.js +7 -0
  129. package/dist/chunks/{chunk-2473DUBR.js → chunk-QR7QPUFN.js} +1 -9
  130. package/dist/chunks/chunk-QTKJC2O5.js +7 -0
  131. package/dist/chunks/chunk-R2TGGVCT.js +19 -0
  132. package/dist/chunks/chunk-RAIBQIKB.js +7 -0
  133. package/dist/chunks/chunk-RCTYVKM5.js +16 -0
  134. package/dist/chunks/chunk-RKAUVPOQ.js +86 -0
  135. package/dist/chunks/chunk-S5CEIACD.js +7 -0
  136. package/dist/chunks/chunk-SGWVKRSR.js +8 -0
  137. package/dist/chunks/chunk-SOJCELXH.js +7 -0
  138. package/dist/chunks/chunk-SXUEGVWB.js +7 -0
  139. package/dist/chunks/{chunk-GGPE5377.js → chunk-T3GQAMBJ.js} +1 -9
  140. package/dist/chunks/chunk-T52FMXWC.js +7 -0
  141. package/dist/chunks/chunk-TG2RCYTH.js +7 -0
  142. package/dist/chunks/chunk-TJCIHDPZ.js +9 -0
  143. package/dist/chunks/chunk-TKBXN4H3.js +9 -0
  144. package/dist/chunks/chunk-TRTEXGVN.js +7 -0
  145. package/dist/chunks/chunk-TXELFFNK.js +15 -0
  146. package/dist/chunks/chunk-U56NHYAH.js +7 -0
  147. package/dist/chunks/chunk-U7KCDTCH.js +12 -0
  148. package/dist/chunks/chunk-UETTIYUQ.js +8 -0
  149. package/dist/chunks/chunk-UGMZQZJE.js +24 -0
  150. package/dist/chunks/chunk-ULLWCOYC.js +7 -0
  151. package/dist/chunks/chunk-UXTHEQVJ.js +21 -0
  152. package/dist/chunks/chunk-VLZ47RWM.js +44 -0
  153. package/dist/chunks/chunk-WKZ6JSGZ.js +7 -0
  154. package/dist/chunks/chunk-WPS6JZF6.js +7 -0
  155. package/dist/chunks/chunk-WRILLB46.js +7 -0
  156. package/dist/chunks/chunk-WUZD4KBL.js +7 -0
  157. package/dist/chunks/chunk-XCJDGQO7.js +7 -0
  158. package/dist/chunks/{pkg-56KRLZ5K.js → chunk-XD2LZRBS.js} +1 -7
  159. package/dist/chunks/chunk-XFVGX5HG.js +7 -0
  160. package/dist/chunks/chunk-XHOGOH6N.js +7 -0
  161. package/dist/chunks/{update-route-version-E3V47KNI.js → chunk-XPXOV5UO.js} +1 -7
  162. package/dist/chunks/chunk-XQ73QIQ3.js +7 -0
  163. package/dist/chunks/chunk-XSVBYDYI.js +8 -0
  164. package/dist/chunks/chunk-YKZLKOOD.js +12 -0
  165. package/dist/chunks/chunk-YMVDWVMO.js +7 -0
  166. package/dist/chunks/chunk-YPTLSODC.js +7 -0
  167. package/dist/chunks/chunk-YV6CTDHR.js +7 -0
  168. package/dist/chunks/chunk-Z6Y55QJW.js +23 -0
  169. package/dist/chunks/chunk-ZDX75YNZ.js +7 -0
  170. package/dist/chunks/chunk-ZIPVX7LD.js +7 -0
  171. package/dist/chunks/chunk-ZKYS7EAB.js +7 -0
  172. package/dist/chunks/chunk-ZT6KDLLY.js +20 -0
  173. package/dist/chunks/chunk-ZXE4XYIV.js +7 -0
  174. package/dist/chunks/chunk-ZZQRMRWD.js +20 -0
  175. package/dist/chunks/cjs-GOQHXIHX.js +54 -0
  176. package/dist/chunks/clear-5NQAVWIF.js +8 -0
  177. package/dist/chunks/compile-vercel-config-6J2XUFRK.js +7 -0
  178. package/dist/chunks/config-CKYRXZXL.js +7 -0
  179. package/dist/chunks/config-VNUY4RJ4.js +8 -0
  180. package/dist/chunks/connect-git-provider-GIU5WZ52.js +7 -0
  181. package/dist/chunks/constants-G4UYVLOF.js +7 -0
  182. package/dist/chunks/create-project-SRQGD4JY.js +7 -0
  183. package/dist/chunks/delete-GTXXCSKQ.js +10 -0
  184. package/dist/chunks/delete-HRJEO4MI.js +9 -0
  185. package/dist/chunks/detect-projects-2GNCZ4CS.js +7 -0
  186. package/dist/chunks/detect-services-GHILEGNU.js +7 -0
  187. package/dist/chunks/disable-RWCRVG5O.js +7 -0
  188. package/dist/chunks/discard-SHFIYCJU.js +14 -0
  189. package/dist/chunks/edit-DMO3NSO2.js +9 -0
  190. package/dist/chunks/edit-EVQI2RSS.js +8 -0
  191. package/dist/chunks/enable-AWDU6STD.js +7 -0
  192. package/dist/chunks/esm-7HVUFWMN.js +7 -0
  193. package/dist/chunks/esm-BZBEM7YA.js +7 -0
  194. package/dist/chunks/esm-CXICLFA3.js +9 -0
  195. package/dist/chunks/esm-HDEHVK7I.js +9 -0
  196. package/dist/chunks/esm-NQRLKALI.js +20 -0
  197. package/dist/chunks/esm-SZZI53W7.js +7 -0
  198. package/dist/chunks/esm-WGJFGCLK.js +7 -0
  199. package/dist/chunks/exec-4AISDHUV.js +16372 -0
  200. package/dist/chunks/export-IQKTA4RS.js +19 -0
  201. package/dist/chunks/fetch-proxy-AEAWC6MD.js +7 -0
  202. package/dist/chunks/future-E2FHKPJN.js +7 -0
  203. package/dist/chunks/generate-cert-for-deploy-VKOWC4PZ.js +7 -0
  204. package/dist/chunks/image-LDFYNOCA.js +7 -0
  205. package/dist/chunks/import-builders-P7CXSX2D.js +7 -0
  206. package/dist/chunks/inspect-3N47ODIH.js +15 -0
  207. package/dist/chunks/inspect-53SGDDAH.js +20 -0
  208. package/dist/chunks/inspect-5INZDUQS.js +19 -0
  209. package/dist/chunks/inspect-WMT2M335.js +9 -0
  210. package/dist/chunks/inspect-Y6BUCOUV.js +13 -0
  211. package/dist/chunks/list-BIAPHKFM.js +11 -0
  212. package/dist/chunks/list-DMOCRRSE.js +16 -0
  213. package/dist/chunks/list-K5J7OULR.js +10 -0
  214. package/dist/chunks/login-DEAEVUHM.js +7 -0
  215. package/dist/chunks/login-SRVNHI4Y.js +9 -0
  216. package/dist/chunks/logs-GK7CJBYY.js +7 -0
  217. package/dist/chunks/ls-7ZX6DCJW.js +12 -0
  218. package/dist/chunks/ls-AJWN5ZR4.js +12 -0
  219. package/dist/chunks/ls-BFJWCRLZ.js +12 -0
  220. package/dist/chunks/ls-KGIE6HCO.js +12 -0
  221. package/dist/chunks/ls-UVKTHBTE.js +8 -0
  222. package/dist/chunks/ls-WEG45IOC.js +8 -0
  223. package/dist/chunks/native-self-update-KOJVRMHR.js +7 -0
  224. package/dist/chunks/open-OEWPI5G6.js +7 -0
  225. package/dist/chunks/openapi-MO5HYMHR.js +7 -0
  226. package/dist/chunks/permissions-EPQBQFE3.js +7 -0
  227. package/dist/chunks/pkg-YFU67U7I.js +7 -0
  228. package/dist/chunks/prompt-missing-credentials-IUHLYSQU.js +7 -0
  229. package/dist/chunks/publish-JG7MEPWT.js +15 -0
  230. package/dist/chunks/pull-MRKXG6TO.js +7 -0
  231. package/dist/chunks/purchase-domain-if-available-O5ARXEZ5.js +7 -0
  232. package/dist/chunks/push-XOXJDFYO.js +7 -0
  233. package/dist/chunks/query-AL7C6WV2.js +12 -0
  234. package/dist/chunks/reauthenticate-SH4XR7NH.js +7 -0
  235. package/dist/chunks/reorder-5DMRFDBY.js +10 -0
  236. package/dist/chunks/reply-WSRNZWFD.js +9 -0
  237. package/dist/chunks/repo-info-to-url-SK3VX6UL.js +7 -0
  238. package/dist/chunks/resolve-YJUXQVOZ.js +12 -0
  239. package/dist/chunks/resolve-deployment-framework-preset-XF3NJIDS.js +7 -0
  240. package/dist/chunks/restore-QT3DBGKU.js +16 -0
  241. package/dist/chunks/rm-MHPIUEZ5.js +8 -0
  242. package/dist/chunks/rm-MVZFU6RG.js +8 -0
  243. package/dist/chunks/rm-PXR4J2US.js +8 -0
  244. package/dist/chunks/rm-WB2AIP3N.js +8 -0
  245. package/dist/chunks/rm-XRP6MRUT.js +8 -0
  246. package/dist/chunks/routes-5DERZV5M.js +7 -0
  247. package/dist/chunks/rule-inspect-TT3DRGCS.js +8 -0
  248. package/dist/chunks/rules-B5GW4KJH.js +7 -0
  249. package/dist/chunks/schema-JY5QTZOG.js +14 -0
  250. package/dist/chunks/schema-KCNKVFT3.js +44 -0
  251. package/dist/chunks/select-org-KSCYSESV.js +7 -0
  252. package/dist/chunks/set-7BANEWEL.js +7 -0
  253. package/dist/chunks/setup-and-link-ZAV3EFGC.js +7 -0
  254. package/dist/chunks/slugify-O5DBATYT.js +7 -0
  255. package/dist/chunks/stamp-OX4YO3KY.js +7 -0
  256. package/dist/chunks/tags-VZR66NUC.js +7 -0
  257. package/dist/chunks/types-LRXQEDYI.js +14 -0
  258. package/dist/chunks/update-RBFNNSWE.js +8 -0
  259. package/dist/chunks/update-route-version-XZAFPQJC.js +7 -0
  260. package/dist/chunks/utils-B5ZTMQKY.js +58 -0
  261. package/dist/chunks/vlt-builder-importer-YVCYYRVV.js +11 -0
  262. package/dist/commands/build/index.js +24 -4925
  263. package/dist/commands/deploy/index.js +43 -2875
  264. package/dist/commands/dev/index.js +56 -23857
  265. package/dist/commands/env/index.js +26 -3411
  266. package/dist/commands/link/index.js +4 -284
  267. package/dist/commands/list/index.js +6 -566
  268. package/dist/commands-bulk.js +1187 -87691
  269. package/dist/help.js +1 -8
  270. package/dist/index.js +19 -2591
  271. package/dist/version.mjs +1 -1
  272. package/package.json +50 -51
  273. package/dist/chunks/add-EQZRT4XL.js +0 -221
  274. package/dist/chunks/add-KMDROZC3.js +0 -196
  275. package/dist/chunks/add-QPJ3XMBV.js +0 -145
  276. package/dist/chunks/build-W4HPTAOB.js +0 -251
  277. package/dist/chunks/chunk-26CU4Q3C.js +0 -598
  278. package/dist/chunks/chunk-2HSQ7YUK.js +0 -93
  279. package/dist/chunks/chunk-2JIX6UMI.js +0 -4626
  280. package/dist/chunks/chunk-2LCFOK66.js +0 -1536
  281. package/dist/chunks/chunk-332LMJLZ.js +0 -16014
  282. package/dist/chunks/chunk-3HZLXCVL.js +0 -137
  283. package/dist/chunks/chunk-3VM7HWF6.js +0 -104
  284. package/dist/chunks/chunk-3ZE5CFVM.js +0 -346
  285. package/dist/chunks/chunk-4IALDGB7.js +0 -22
  286. package/dist/chunks/chunk-4KD5BYHB.js +0 -127
  287. package/dist/chunks/chunk-4TUMNBEE.js +0 -231
  288. package/dist/chunks/chunk-4WG2MYCI.js +0 -163
  289. package/dist/chunks/chunk-57RHXXXG.js +0 -150
  290. package/dist/chunks/chunk-5AJPMLDV.js +0 -28
  291. package/dist/chunks/chunk-5EIV6LPQ.js +0 -305
  292. package/dist/chunks/chunk-5NF5HOBJ.js +0 -1854
  293. package/dist/chunks/chunk-653QRQAD.js +0 -417
  294. package/dist/chunks/chunk-67CRVWDF.js +0 -81
  295. package/dist/chunks/chunk-6E6KPBXY.js +0 -43
  296. package/dist/chunks/chunk-75VENWDN.js +0 -1892
  297. package/dist/chunks/chunk-7MRDIPJY.js +0 -107
  298. package/dist/chunks/chunk-7NRNFV77.js +0 -875
  299. package/dist/chunks/chunk-7Q45OKWR.js +0 -149
  300. package/dist/chunks/chunk-AHU7WNL2.js +0 -24
  301. package/dist/chunks/chunk-AINIBIP4.js +0 -39
  302. package/dist/chunks/chunk-AJ5HUOWB.js +0 -14059
  303. package/dist/chunks/chunk-AKLTIZCU.js +0 -46
  304. package/dist/chunks/chunk-AQ6P3IGG.js +0 -49
  305. package/dist/chunks/chunk-B5NH7SLK.js +0 -324
  306. package/dist/chunks/chunk-B5XLQKHI.js +0 -849
  307. package/dist/chunks/chunk-BEQV3X2L.js +0 -86
  308. package/dist/chunks/chunk-CAHP7UGE.js +0 -79
  309. package/dist/chunks/chunk-CFDDM4TX.js +0 -13618
  310. package/dist/chunks/chunk-CJV7J7B5.js +0 -314
  311. package/dist/chunks/chunk-CV5YC2EN.js +0 -867
  312. package/dist/chunks/chunk-CXFY6A6W.js +0 -255
  313. package/dist/chunks/chunk-D5SMZXVO.js +0 -233
  314. package/dist/chunks/chunk-E336ZXPP.js +0 -43
  315. package/dist/chunks/chunk-EDMW7SBH.js +0 -246
  316. package/dist/chunks/chunk-EFYMIIER.js +0 -40
  317. package/dist/chunks/chunk-EKPSCRJZ.js +0 -26
  318. package/dist/chunks/chunk-EOZFDJSY.js +0 -18
  319. package/dist/chunks/chunk-EWBCSDTM.js +0 -1708
  320. package/dist/chunks/chunk-EZKW5YJ2.js +0 -177
  321. package/dist/chunks/chunk-F2QLCXCF.js +0 -2399
  322. package/dist/chunks/chunk-FGDKMNEN.js +0 -21
  323. package/dist/chunks/chunk-FRVG4OW3.js +0 -7438
  324. package/dist/chunks/chunk-FVF4UHDM.js +0 -1288
  325. package/dist/chunks/chunk-G5FBSUL4.js +0 -822
  326. package/dist/chunks/chunk-GDOUDU6O.js +0 -74
  327. package/dist/chunks/chunk-GGP5R3FU.js +0 -129
  328. package/dist/chunks/chunk-GVNCVKCI.js +0 -68
  329. package/dist/chunks/chunk-GY5I4AYD.js +0 -122
  330. package/dist/chunks/chunk-GZLPFESR.js +0 -48
  331. package/dist/chunks/chunk-HB4UKFDO.js +0 -1295
  332. package/dist/chunks/chunk-HD4DR3DA.js +0 -818
  333. package/dist/chunks/chunk-HKHXKSXQ.js +0 -152
  334. package/dist/chunks/chunk-HM24ZWQL.js +0 -174
  335. package/dist/chunks/chunk-HRXRELD3.js +0 -338
  336. package/dist/chunks/chunk-IB5L4LKZ.js +0 -1082
  337. package/dist/chunks/chunk-IIMSID24.js +0 -104
  338. package/dist/chunks/chunk-J7JKZM4T.js +0 -58
  339. package/dist/chunks/chunk-JC2O346E.js +0 -137
  340. package/dist/chunks/chunk-JSD4EZL3.js +0 -34
  341. package/dist/chunks/chunk-JZXJZX7O.js +0 -257
  342. package/dist/chunks/chunk-K3RED3VO.js +0 -566
  343. package/dist/chunks/chunk-KFWQ3EFH.js +0 -151
  344. package/dist/chunks/chunk-KW7BS25T.js +0 -466
  345. package/dist/chunks/chunk-KXDWXXJH.js +0 -70
  346. package/dist/chunks/chunk-LERVNZTD.js +0 -90
  347. package/dist/chunks/chunk-LYAAQDNS.js +0 -242
  348. package/dist/chunks/chunk-M5I6INNF.js +0 -61
  349. package/dist/chunks/chunk-N6HP5BLI.js +0 -18190
  350. package/dist/chunks/chunk-ND5CF2H3.js +0 -53
  351. package/dist/chunks/chunk-NFU4XJIR.js +0 -120
  352. package/dist/chunks/chunk-NW34PW6V.js +0 -1772
  353. package/dist/chunks/chunk-OAMU5QO6.js +0 -18
  354. package/dist/chunks/chunk-OCIZ6ZYA.js +0 -253
  355. package/dist/chunks/chunk-ORQZKIIB.js +0 -2914
  356. package/dist/chunks/chunk-P3SKP5WM.js +0 -27
  357. package/dist/chunks/chunk-P4QNYOFB.js +0 -96
  358. package/dist/chunks/chunk-P7VSBDR4.js +0 -827
  359. package/dist/chunks/chunk-PEC3CQSK.js +0 -90
  360. package/dist/chunks/chunk-PMSMUMUO.js +0 -30
  361. package/dist/chunks/chunk-PNGVSHR3.js +0 -40
  362. package/dist/chunks/chunk-POOO7W47.js +0 -916
  363. package/dist/chunks/chunk-PRWJUY5U.js +0 -848
  364. package/dist/chunks/chunk-Q2DGFCO7.js +0 -579
  365. package/dist/chunks/chunk-RBF2NPUP.js +0 -577
  366. package/dist/chunks/chunk-RBIFXFZX.js +0 -52
  367. package/dist/chunks/chunk-RDTRWLWB.js +0 -11441
  368. package/dist/chunks/chunk-RN6V5ODW.js +0 -114
  369. package/dist/chunks/chunk-RNSMTWA6.js +0 -122
  370. package/dist/chunks/chunk-RTJASENB.js +0 -59
  371. package/dist/chunks/chunk-RVBZ64EQ.js +0 -52
  372. package/dist/chunks/chunk-S7KYDPEM.js +0 -1564
  373. package/dist/chunks/chunk-SLPSPYVR.js +0 -334
  374. package/dist/chunks/chunk-SM3F3PYJ.js +0 -522
  375. package/dist/chunks/chunk-TO7QZGYK.js +0 -105
  376. package/dist/chunks/chunk-TSBUHSN7.js +0 -3495
  377. package/dist/chunks/chunk-TSFWMUCY.js +0 -506
  378. package/dist/chunks/chunk-TZ2YI2VH.js +0 -87
  379. package/dist/chunks/chunk-UG2WOB5L.js +0 -150
  380. package/dist/chunks/chunk-UNKHOYMF.js +0 -559
  381. package/dist/chunks/chunk-UOVWUSLG.js +0 -2099
  382. package/dist/chunks/chunk-V4RMJKQP.js +0 -36
  383. package/dist/chunks/chunk-VGIMO3ZK.js +0 -17
  384. package/dist/chunks/chunk-VGKSIKCC.js +0 -92
  385. package/dist/chunks/chunk-VP5Y3SZG.js +0 -106
  386. package/dist/chunks/chunk-VXYGCOKL.js +0 -28
  387. package/dist/chunks/chunk-W7FGI2GZ.js +0 -233
  388. package/dist/chunks/chunk-WGGABYO5.js +0 -31
  389. package/dist/chunks/chunk-XDGOOW3K.js +0 -60
  390. package/dist/chunks/chunk-XFF5TGRA.js +0 -303
  391. package/dist/chunks/chunk-XNIZGCN5.js +0 -58
  392. package/dist/chunks/chunk-XPJLPUKO.js +0 -117
  393. package/dist/chunks/chunk-XUAWTW4W.js +0 -467
  394. package/dist/chunks/chunk-YPQSDAEW.js +0 -29
  395. package/dist/chunks/chunk-YS76T533.js +0 -270
  396. package/dist/chunks/chunk-ZDU2NODC.js +0 -104
  397. package/dist/chunks/chunk-ZW6HETRE.js +0 -97
  398. package/dist/chunks/cjs-DV4RM7XU.js +0 -20743
  399. package/dist/chunks/clear-4IACMLFU.js +0 -141
  400. package/dist/chunks/compile-vercel-config-PQQ3OCLV.js +0 -33
  401. package/dist/chunks/config-BQQKMQBP.js +0 -168
  402. package/dist/chunks/config-OCPNHXQL.js +0 -127
  403. package/dist/chunks/delete-HRKIYPCO.js +0 -159
  404. package/dist/chunks/delete-P2UL3KTU.js +0 -226
  405. package/dist/chunks/detect-projects-ODNU4PK2.js +0 -18
  406. package/dist/chunks/detect-services-U7QGT7VO.js +0 -40
  407. package/dist/chunks/disable-3NYMICQ3.js +0 -198
  408. package/dist/chunks/discard-RNVEJUK3.js +0 -145
  409. package/dist/chunks/edit-63S2RQHR.js +0 -162
  410. package/dist/chunks/edit-CTENFZ7H.js +0 -647
  411. package/dist/chunks/enable-WILWXAHV.js +0 -204
  412. package/dist/chunks/exec-4IPHZ55G.js +0 -1291
  413. package/dist/chunks/export-YHGV3EPK.js +0 -177
  414. package/dist/chunks/fetch-proxy-R3JZNXBZ.js +0 -99
  415. package/dist/chunks/image-MWKS2YMB.js +0 -75
  416. package/dist/chunks/import-builders-H55X5VYD.js +0 -39
  417. package/dist/chunks/inspect-JTJMK6TO.js +0 -596
  418. package/dist/chunks/inspect-KBIPLMGR.js +0 -216
  419. package/dist/chunks/inspect-OP26FDBY.js +0 -171
  420. package/dist/chunks/inspect-SW4UMWTB.js +0 -175
  421. package/dist/chunks/inspect-WPLZPVBO.js +0 -145
  422. package/dist/chunks/list-HE7DWAWH.js +0 -387
  423. package/dist/chunks/list-OUG7WCT7.js +0 -404
  424. package/dist/chunks/list-QUSEURJZ.js +0 -426
  425. package/dist/chunks/login-MIIQJVF3.js +0 -233
  426. package/dist/chunks/ls-24N3DUK4.js +0 -183
  427. package/dist/chunks/ls-3Y7KEFKT.js +0 -175
  428. package/dist/chunks/ls-75F5HIJ5.js +0 -188
  429. package/dist/chunks/ls-REN6X2X5.js +0 -204
  430. package/dist/chunks/ls-W4STUDXK.js +0 -223
  431. package/dist/chunks/ls-Z4CTSD6C.js +0 -210
  432. package/dist/chunks/open-ARMCLPBK.js +0 -116
  433. package/dist/chunks/permissions-JKI67F62.js +0 -99
  434. package/dist/chunks/publish-SMSQ7OX2.js +0 -155
  435. package/dist/chunks/pull-4QZJZELD.js +0 -45
  436. package/dist/chunks/push-T6IYQY2J.js +0 -191
  437. package/dist/chunks/query-CP3JK5LW.js +0 -725
  438. package/dist/chunks/reorder-RAWKFGLV.js +0 -412
  439. package/dist/chunks/reply-235UHUD4.js +0 -176
  440. package/dist/chunks/resolve-5KCLN7QV.js +0 -237
  441. package/dist/chunks/resolve-deployment-framework-preset-NPE6RLV3.js +0 -36
  442. package/dist/chunks/restore-D24WAUAN.js +0 -252
  443. package/dist/chunks/rm-DBQDXSOC.js +0 -162
  444. package/dist/chunks/rm-G5INO77R.js +0 -148
  445. package/dist/chunks/rm-NLKSEKZ5.js +0 -195
  446. package/dist/chunks/rm-QV76CJA4.js +0 -322
  447. package/dist/chunks/rm-TZ4PDDUK.js +0 -147
  448. package/dist/chunks/routes-QVMBXOSX.js +0 -24
  449. package/dist/chunks/rule-inspect-76MC7I2D.js +0 -123
  450. package/dist/chunks/rules-IDUXVTPG.js +0 -89
  451. package/dist/chunks/schema-AV6BHGKY.js +0 -237
  452. package/dist/chunks/schema-QJVQTNB4.js +0 -381
  453. package/dist/chunks/set-L5NFQSCF.js +0 -250
  454. package/dist/chunks/setup-and-link-USSVDKCM.js +0 -65
  455. package/dist/chunks/stamp-AA7R3MZS.js +0 -16
  456. package/dist/chunks/tags-2NLUU4EC.js +0 -69
  457. package/dist/chunks/types-4GAJ7XQQ.js +0 -116
  458. package/dist/chunks/update-WGLBB65M.js +0 -224
  459. package/dist/chunks/vlt-builder-importer-USCFHWPL.js +0 -322
@@ -1,1295 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module';
2
- import { fileURLToPath as __fileURLToPath } from 'node:url';
3
- import { dirname as __dirname_ } from 'node:path';
4
- const require = __createRequire(import.meta.url);
5
- const __filename = __fileURLToPath(import.meta.url);
6
- const __dirname = __dirname_(__filename);
7
- import {
8
- require_load_json_file,
9
- require_pify
10
- } from "./chunk-B5XLQKHI.js";
11
- import {
12
- isNativeBinaryInstall
13
- } from "./chunk-4IALDGB7.js";
14
- import {
15
- require_graceful_fs
16
- } from "./chunk-G5FBSUL4.js";
17
- import {
18
- output_manager_default,
19
- require_signal_exit
20
- } from "./chunk-2JIX6UMI.js";
21
- import {
22
- __commonJS,
23
- __require,
24
- __toESM
25
- } from "./chunk-TZ2YI2VH.js";
26
-
27
- // ../../internals/constants/dist/index.js
28
- var require_dist = __commonJS({
29
- "../../internals/constants/dist/index.js"(exports) {
30
- "use strict";
31
- Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.TITLE = exports.NAME = exports.LOGO = exports.PROJECT_ENV_TARGET = void 0;
33
- exports.PROJECT_ENV_TARGET = [
34
- "production",
35
- "preview",
36
- "development"
37
- ];
38
- exports.LOGO = "\u25B2";
39
- exports.NAME = "vercel";
40
- exports.TITLE = "Vercel";
41
- }
42
- });
43
-
44
- // ../../node_modules/.pnpm/imurmurhash@0.1.4/node_modules/imurmurhash/imurmurhash.js
45
- var require_imurmurhash = __commonJS({
46
- "../../node_modules/.pnpm/imurmurhash@0.1.4/node_modules/imurmurhash/imurmurhash.js"(exports, module) {
47
- (function() {
48
- var cache;
49
- function MurmurHash3(key, seed) {
50
- var m = this instanceof MurmurHash3 ? this : cache;
51
- m.reset(seed);
52
- if (typeof key === "string" && key.length > 0) {
53
- m.hash(key);
54
- }
55
- if (m !== this) {
56
- return m;
57
- }
58
- }
59
- ;
60
- MurmurHash3.prototype.hash = function(key) {
61
- var h1, k1, i, top, len;
62
- len = key.length;
63
- this.len += len;
64
- k1 = this.k1;
65
- i = 0;
66
- switch (this.rem) {
67
- case 0:
68
- k1 ^= len > i ? key.charCodeAt(i++) & 65535 : 0;
69
- case 1:
70
- k1 ^= len > i ? (key.charCodeAt(i++) & 65535) << 8 : 0;
71
- case 2:
72
- k1 ^= len > i ? (key.charCodeAt(i++) & 65535) << 16 : 0;
73
- case 3:
74
- k1 ^= len > i ? (key.charCodeAt(i) & 255) << 24 : 0;
75
- k1 ^= len > i ? (key.charCodeAt(i++) & 65280) >> 8 : 0;
76
- }
77
- this.rem = len + this.rem & 3;
78
- len -= this.rem;
79
- if (len > 0) {
80
- h1 = this.h1;
81
- while (1) {
82
- k1 = k1 * 11601 + (k1 & 65535) * 3432906752 & 4294967295;
83
- k1 = k1 << 15 | k1 >>> 17;
84
- k1 = k1 * 13715 + (k1 & 65535) * 461832192 & 4294967295;
85
- h1 ^= k1;
86
- h1 = h1 << 13 | h1 >>> 19;
87
- h1 = h1 * 5 + 3864292196 & 4294967295;
88
- if (i >= len) {
89
- break;
90
- }
91
- k1 = key.charCodeAt(i++) & 65535 ^ (key.charCodeAt(i++) & 65535) << 8 ^ (key.charCodeAt(i++) & 65535) << 16;
92
- top = key.charCodeAt(i++);
93
- k1 ^= (top & 255) << 24 ^ (top & 65280) >> 8;
94
- }
95
- k1 = 0;
96
- switch (this.rem) {
97
- case 3:
98
- k1 ^= (key.charCodeAt(i + 2) & 65535) << 16;
99
- case 2:
100
- k1 ^= (key.charCodeAt(i + 1) & 65535) << 8;
101
- case 1:
102
- k1 ^= key.charCodeAt(i) & 65535;
103
- }
104
- this.h1 = h1;
105
- }
106
- this.k1 = k1;
107
- return this;
108
- };
109
- MurmurHash3.prototype.result = function() {
110
- var k1, h1;
111
- k1 = this.k1;
112
- h1 = this.h1;
113
- if (k1 > 0) {
114
- k1 = k1 * 11601 + (k1 & 65535) * 3432906752 & 4294967295;
115
- k1 = k1 << 15 | k1 >>> 17;
116
- k1 = k1 * 13715 + (k1 & 65535) * 461832192 & 4294967295;
117
- h1 ^= k1;
118
- }
119
- h1 ^= this.len;
120
- h1 ^= h1 >>> 16;
121
- h1 = h1 * 51819 + (h1 & 65535) * 2246770688 & 4294967295;
122
- h1 ^= h1 >>> 13;
123
- h1 = h1 * 44597 + (h1 & 65535) * 3266445312 & 4294967295;
124
- h1 ^= h1 >>> 16;
125
- return h1 >>> 0;
126
- };
127
- MurmurHash3.prototype.reset = function(seed) {
128
- this.h1 = typeof seed === "number" ? seed : 0;
129
- this.rem = this.k1 = this.len = 0;
130
- return this;
131
- };
132
- cache = new MurmurHash3();
133
- if (typeof module != "undefined") {
134
- module.exports = MurmurHash3;
135
- } else {
136
- this.MurmurHash3 = MurmurHash3;
137
- }
138
- })();
139
- }
140
- });
141
-
142
- // ../../node_modules/.pnpm/write-file-atomic@2.4.3/node_modules/write-file-atomic/index.js
143
- var require_write_file_atomic = __commonJS({
144
- "../../node_modules/.pnpm/write-file-atomic@2.4.3/node_modules/write-file-atomic/index.js"(exports, module) {
145
- "use strict";
146
- module.exports = writeFile;
147
- module.exports.sync = writeFileSync;
148
- module.exports._getTmpname = getTmpname;
149
- module.exports._cleanupOnExit = cleanupOnExit;
150
- var fs = require_graceful_fs();
151
- var MurmurHash3 = require_imurmurhash();
152
- var onExit = require_signal_exit();
153
- var path = __require("path");
154
- var activeFiles = {};
155
- var threadId = function getId() {
156
- try {
157
- var workerThreads = __require("worker_threads");
158
- return workerThreads.threadId;
159
- } catch (e) {
160
- return 0;
161
- }
162
- }();
163
- var invocations = 0;
164
- function getTmpname(filename) {
165
- return filename + "." + MurmurHash3(__filename).hash(String(process.pid)).hash(String(threadId)).hash(String(++invocations)).result();
166
- }
167
- function cleanupOnExit(tmpfile) {
168
- return function() {
169
- try {
170
- fs.unlinkSync(typeof tmpfile === "function" ? tmpfile() : tmpfile);
171
- } catch (_) {
172
- }
173
- };
174
- }
175
- function writeFile(filename, data, options, callback) {
176
- if (options) {
177
- if (options instanceof Function) {
178
- callback = options;
179
- options = {};
180
- } else if (typeof options === "string") {
181
- options = { encoding: options };
182
- }
183
- } else {
184
- options = {};
185
- }
186
- var Promise2 = options.Promise || global.Promise;
187
- var truename;
188
- var fd;
189
- var tmpfile;
190
- var removeOnExitHandler = onExit(cleanupOnExit(() => tmpfile));
191
- var absoluteName = path.resolve(filename);
192
- new Promise2(function serializeSameFile(resolve) {
193
- if (!activeFiles[absoluteName])
194
- activeFiles[absoluteName] = [];
195
- activeFiles[absoluteName].push(resolve);
196
- if (activeFiles[absoluteName].length === 1)
197
- resolve();
198
- }).then(function getRealPath() {
199
- return new Promise2(function(resolve) {
200
- fs.realpath(filename, function(_, realname) {
201
- truename = realname || filename;
202
- tmpfile = getTmpname(truename);
203
- resolve();
204
- });
205
- });
206
- }).then(function stat() {
207
- return new Promise2(function stat2(resolve) {
208
- if (options.mode && options.chown)
209
- resolve();
210
- else {
211
- fs.stat(truename, function(err, stats) {
212
- if (err || !stats)
213
- resolve();
214
- else {
215
- options = Object.assign({}, options);
216
- if (options.mode == null) {
217
- options.mode = stats.mode;
218
- }
219
- if (options.chown == null && process.getuid) {
220
- options.chown = { uid: stats.uid, gid: stats.gid };
221
- }
222
- resolve();
223
- }
224
- });
225
- }
226
- });
227
- }).then(function thenWriteFile() {
228
- return new Promise2(function(resolve, reject) {
229
- fs.open(tmpfile, "w", options.mode, function(err, _fd) {
230
- fd = _fd;
231
- if (err)
232
- reject(err);
233
- else
234
- resolve();
235
- });
236
- });
237
- }).then(function write() {
238
- return new Promise2(function(resolve, reject) {
239
- if (Buffer.isBuffer(data)) {
240
- fs.write(fd, data, 0, data.length, 0, function(err) {
241
- if (err)
242
- reject(err);
243
- else
244
- resolve();
245
- });
246
- } else if (data != null) {
247
- fs.write(fd, String(data), 0, String(options.encoding || "utf8"), function(err) {
248
- if (err)
249
- reject(err);
250
- else
251
- resolve();
252
- });
253
- } else
254
- resolve();
255
- });
256
- }).then(function syncAndClose() {
257
- return new Promise2(function(resolve, reject) {
258
- if (options.fsync !== false) {
259
- fs.fsync(fd, function(err) {
260
- if (err)
261
- fs.close(fd, () => reject(err));
262
- else
263
- fs.close(fd, resolve);
264
- });
265
- } else {
266
- fs.close(fd, resolve);
267
- }
268
- });
269
- }).then(function chown() {
270
- fd = null;
271
- if (options.chown) {
272
- return new Promise2(function(resolve, reject) {
273
- fs.chown(tmpfile, options.chown.uid, options.chown.gid, function(err) {
274
- if (err)
275
- reject(err);
276
- else
277
- resolve();
278
- });
279
- });
280
- }
281
- }).then(function chmod() {
282
- if (options.mode) {
283
- return new Promise2(function(resolve, reject) {
284
- fs.chmod(tmpfile, options.mode, function(err) {
285
- if (err)
286
- reject(err);
287
- else
288
- resolve();
289
- });
290
- });
291
- }
292
- }).then(function rename() {
293
- return new Promise2(function(resolve, reject) {
294
- fs.rename(tmpfile, truename, function(err) {
295
- if (err)
296
- reject(err);
297
- else
298
- resolve();
299
- });
300
- });
301
- }).then(function success() {
302
- removeOnExitHandler();
303
- callback();
304
- }, function fail(err) {
305
- return new Promise2((resolve) => {
306
- return fd ? fs.close(fd, resolve) : resolve();
307
- }).then(() => {
308
- removeOnExitHandler();
309
- fs.unlink(tmpfile, function() {
310
- callback(err);
311
- });
312
- });
313
- }).then(function checkQueue() {
314
- activeFiles[absoluteName].shift();
315
- if (activeFiles[absoluteName].length > 0) {
316
- activeFiles[absoluteName][0]();
317
- } else
318
- delete activeFiles[absoluteName];
319
- });
320
- }
321
- function writeFileSync(filename, data, options) {
322
- if (typeof options === "string")
323
- options = { encoding: options };
324
- else if (!options)
325
- options = {};
326
- try {
327
- filename = fs.realpathSync(filename);
328
- } catch (ex) {
329
- }
330
- var tmpfile = getTmpname(filename);
331
- if (!options.mode || !options.chown) {
332
- try {
333
- var stats = fs.statSync(filename);
334
- options = Object.assign({}, options);
335
- if (!options.mode) {
336
- options.mode = stats.mode;
337
- }
338
- if (!options.chown && process.getuid) {
339
- options.chown = { uid: stats.uid, gid: stats.gid };
340
- }
341
- } catch (ex) {
342
- }
343
- }
344
- var fd;
345
- var cleanup = cleanupOnExit(tmpfile);
346
- var removeOnExitHandler = onExit(cleanup);
347
- try {
348
- fd = fs.openSync(tmpfile, "w", options.mode);
349
- if (Buffer.isBuffer(data)) {
350
- fs.writeSync(fd, data, 0, data.length, 0);
351
- } else if (data != null) {
352
- fs.writeSync(fd, String(data), 0, String(options.encoding || "utf8"));
353
- }
354
- if (options.fsync !== false) {
355
- fs.fsyncSync(fd);
356
- }
357
- fs.closeSync(fd);
358
- if (options.chown)
359
- fs.chownSync(tmpfile, options.chown.uid, options.chown.gid);
360
- if (options.mode)
361
- fs.chmodSync(tmpfile, options.mode);
362
- fs.renameSync(tmpfile, filename);
363
- removeOnExitHandler();
364
- } catch (err) {
365
- if (fd) {
366
- try {
367
- fs.closeSync(fd);
368
- } catch (ex) {
369
- }
370
- }
371
- removeOnExitHandler();
372
- cleanup();
373
- throw err;
374
- }
375
- }
376
- }
377
- });
378
-
379
- // ../../node_modules/.pnpm/is-plain-obj@1.1.0/node_modules/is-plain-obj/index.js
380
- var require_is_plain_obj = __commonJS({
381
- "../../node_modules/.pnpm/is-plain-obj@1.1.0/node_modules/is-plain-obj/index.js"(exports, module) {
382
- "use strict";
383
- var toString = Object.prototype.toString;
384
- module.exports = function(x) {
385
- var prototype;
386
- return toString.call(x) === "[object Object]" && (prototype = Object.getPrototypeOf(x), prototype === null || prototype === Object.getPrototypeOf({}));
387
- };
388
- }
389
- });
390
-
391
- // ../../node_modules/.pnpm/sort-keys@1.1.2/node_modules/sort-keys/index.js
392
- var require_sort_keys = __commonJS({
393
- "../../node_modules/.pnpm/sort-keys@1.1.2/node_modules/sort-keys/index.js"(exports, module) {
394
- "use strict";
395
- var isPlainObj = require_is_plain_obj();
396
- module.exports = function(obj, opts) {
397
- if (!isPlainObj(obj)) {
398
- throw new TypeError("Expected a plain object");
399
- }
400
- opts = opts || {};
401
- if (typeof opts === "function") {
402
- opts = { compare: opts };
403
- }
404
- var deep = opts.deep;
405
- var seenInput = [];
406
- var seenOutput = [];
407
- var sortKeys = function(x) {
408
- var seenIndex = seenInput.indexOf(x);
409
- if (seenIndex !== -1) {
410
- return seenOutput[seenIndex];
411
- }
412
- var ret = {};
413
- var keys = Object.keys(x).sort(opts.compare);
414
- seenInput.push(x);
415
- seenOutput.push(ret);
416
- for (var i = 0; i < keys.length; i++) {
417
- var key = keys[i];
418
- var val = x[key];
419
- ret[key] = deep && isPlainObj(val) ? sortKeys(val) : val;
420
- }
421
- return ret;
422
- };
423
- return sortKeys(obj);
424
- };
425
- }
426
- });
427
-
428
- // ../../node_modules/.pnpm/pify@3.0.0/node_modules/pify/index.js
429
- var require_pify2 = __commonJS({
430
- "../../node_modules/.pnpm/pify@3.0.0/node_modules/pify/index.js"(exports, module) {
431
- "use strict";
432
- var processFn = (fn, opts) => function() {
433
- const P = opts.promiseModule;
434
- const args = new Array(arguments.length);
435
- for (let i = 0; i < arguments.length; i++) {
436
- args[i] = arguments[i];
437
- }
438
- return new P((resolve, reject) => {
439
- if (opts.errorFirst) {
440
- args.push(function(err, result) {
441
- if (opts.multiArgs) {
442
- const results = new Array(arguments.length - 1);
443
- for (let i = 1; i < arguments.length; i++) {
444
- results[i - 1] = arguments[i];
445
- }
446
- if (err) {
447
- results.unshift(err);
448
- reject(results);
449
- } else {
450
- resolve(results);
451
- }
452
- } else if (err) {
453
- reject(err);
454
- } else {
455
- resolve(result);
456
- }
457
- });
458
- } else {
459
- args.push(function(result) {
460
- if (opts.multiArgs) {
461
- const results = new Array(arguments.length - 1);
462
- for (let i = 0; i < arguments.length; i++) {
463
- results[i] = arguments[i];
464
- }
465
- resolve(results);
466
- } else {
467
- resolve(result);
468
- }
469
- });
470
- }
471
- fn.apply(this, args);
472
- });
473
- };
474
- module.exports = (obj, opts) => {
475
- opts = Object.assign({
476
- exclude: [/.+(Sync|Stream)$/],
477
- errorFirst: true,
478
- promiseModule: Promise
479
- }, opts);
480
- const filter = (key) => {
481
- const match = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key);
482
- return opts.include ? opts.include.some(match) : !opts.exclude.some(match);
483
- };
484
- let ret;
485
- if (typeof obj === "function") {
486
- ret = function() {
487
- if (opts.excludeMain) {
488
- return obj.apply(this, arguments);
489
- }
490
- return processFn(obj, opts).apply(this, arguments);
491
- };
492
- } else {
493
- ret = Object.create(Object.getPrototypeOf(obj));
494
- }
495
- for (const key in obj) {
496
- const x = obj[key];
497
- ret[key] = typeof x === "function" && filter(key) ? processFn(x, opts) : x;
498
- }
499
- return ret;
500
- };
501
- }
502
- });
503
-
504
- // ../../node_modules/.pnpm/make-dir@1.3.0/node_modules/make-dir/index.js
505
- var require_make_dir = __commonJS({
506
- "../../node_modules/.pnpm/make-dir@1.3.0/node_modules/make-dir/index.js"(exports, module) {
507
- "use strict";
508
- var fs = __require("fs");
509
- var path = __require("path");
510
- var pify = require_pify2();
511
- var defaults = {
512
- mode: 511 & ~process.umask(),
513
- fs
514
- };
515
- var checkPath = (pth) => {
516
- if (process.platform === "win32") {
517
- const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, ""));
518
- if (pathHasInvalidWinCharacters) {
519
- const err = new Error(`Path contains invalid characters: ${pth}`);
520
- err.code = "EINVAL";
521
- throw err;
522
- }
523
- }
524
- };
525
- module.exports = (input, opts) => Promise.resolve().then(() => {
526
- checkPath(input);
527
- opts = Object.assign({}, defaults, opts);
528
- const mkdir = pify(opts.fs.mkdir);
529
- const stat = pify(opts.fs.stat);
530
- const make = (pth) => {
531
- return mkdir(pth, opts.mode).then(() => pth).catch((err) => {
532
- if (err.code === "ENOENT") {
533
- if (err.message.includes("null bytes") || path.dirname(pth) === pth) {
534
- throw err;
535
- }
536
- return make(path.dirname(pth)).then(() => make(pth));
537
- }
538
- return stat(pth).then((stats) => stats.isDirectory() ? pth : Promise.reject()).catch(() => {
539
- throw err;
540
- });
541
- });
542
- };
543
- return make(path.resolve(input));
544
- });
545
- module.exports.sync = (input, opts) => {
546
- checkPath(input);
547
- opts = Object.assign({}, defaults, opts);
548
- const make = (pth) => {
549
- try {
550
- opts.fs.mkdirSync(pth, opts.mode);
551
- } catch (err) {
552
- if (err.code === "ENOENT") {
553
- if (err.message.includes("null bytes") || path.dirname(pth) === pth) {
554
- throw err;
555
- }
556
- make(path.dirname(pth));
557
- return make(pth);
558
- }
559
- try {
560
- if (!opts.fs.statSync(pth).isDirectory()) {
561
- throw new Error("The path is not a directory");
562
- }
563
- } catch (_) {
564
- throw err;
565
- }
566
- }
567
- return pth;
568
- };
569
- return make(path.resolve(input));
570
- };
571
- }
572
- });
573
-
574
- // ../../node_modules/.pnpm/detect-indent@5.0.0/node_modules/detect-indent/index.js
575
- var require_detect_indent = __commonJS({
576
- "../../node_modules/.pnpm/detect-indent@5.0.0/node_modules/detect-indent/index.js"(exports, module) {
577
- "use strict";
578
- var INDENT_RE = /^(?:( )+|\t+)/;
579
- function getMostUsed(indents) {
580
- let result = 0;
581
- let maxUsed = 0;
582
- let maxWeight = 0;
583
- for (const entry of indents) {
584
- const key = entry[0];
585
- const val = entry[1];
586
- const u = val[0];
587
- const w = val[1];
588
- if (u > maxUsed || u === maxUsed && w > maxWeight) {
589
- maxUsed = u;
590
- maxWeight = w;
591
- result = Number(key);
592
- }
593
- }
594
- return result;
595
- }
596
- module.exports = (str) => {
597
- if (typeof str !== "string") {
598
- throw new TypeError("Expected a string");
599
- }
600
- let tabs = 0;
601
- let spaces = 0;
602
- let prev = 0;
603
- const indents = /* @__PURE__ */ new Map();
604
- let current;
605
- let isIndent;
606
- for (const line of str.split(/\n/g)) {
607
- if (!line) {
608
- continue;
609
- }
610
- let indent2;
611
- const matches = line.match(INDENT_RE);
612
- if (matches) {
613
- indent2 = matches[0].length;
614
- if (matches[1]) {
615
- spaces++;
616
- } else {
617
- tabs++;
618
- }
619
- } else {
620
- indent2 = 0;
621
- }
622
- const diff = indent2 - prev;
623
- prev = indent2;
624
- if (diff) {
625
- isIndent = diff > 0;
626
- current = indents.get(isIndent ? diff : -diff);
627
- if (current) {
628
- current[0]++;
629
- } else {
630
- current = [1, 0];
631
- indents.set(diff, current);
632
- }
633
- } else if (current) {
634
- current[1] += Number(isIndent);
635
- }
636
- }
637
- const amount = getMostUsed(indents);
638
- let type;
639
- let indent;
640
- if (!amount) {
641
- type = null;
642
- indent = "";
643
- } else if (spaces >= tabs) {
644
- type = "space";
645
- indent = " ".repeat(amount);
646
- } else {
647
- type = "tab";
648
- indent = " ".repeat(amount);
649
- }
650
- return {
651
- amount,
652
- type,
653
- indent
654
- };
655
- };
656
- }
657
- });
658
-
659
- // ../../node_modules/.pnpm/write-json-file@2.2.0/node_modules/write-json-file/index.js
660
- var require_write_json_file = __commonJS({
661
- "../../node_modules/.pnpm/write-json-file@2.2.0/node_modules/write-json-file/index.js"(exports, module) {
662
- "use strict";
663
- var path = __require("path");
664
- var fs = require_graceful_fs();
665
- var writeFileAtomic = require_write_file_atomic();
666
- var sortKeys = require_sort_keys();
667
- var makeDir = require_make_dir();
668
- var pify = require_pify();
669
- var detectIndent = require_detect_indent();
670
- var init = (fn, fp, data, opts) => {
671
- if (!fp) {
672
- throw new TypeError("Expected a filepath");
673
- }
674
- if (data === void 0) {
675
- throw new TypeError("Expected data to stringify");
676
- }
677
- opts = Object.assign({
678
- indent: " ",
679
- sortKeys: false
680
- }, opts);
681
- if (opts.sortKeys) {
682
- data = sortKeys(data, {
683
- deep: true,
684
- compare: typeof opts.sortKeys === "function" && opts.sortKeys
685
- });
686
- }
687
- return fn(fp, data, opts);
688
- };
689
- var readFile = (fp) => pify(fs.readFile)(fp, "utf8").catch(() => {
690
- });
691
- var main = (fp, data, opts) => {
692
- return (opts.detectIndent ? readFile(fp) : Promise.resolve()).then((str) => {
693
- const indent = str ? detectIndent(str).indent : opts.indent;
694
- const json = JSON.stringify(data, opts.replacer, indent);
695
- return pify(writeFileAtomic)(fp, `${json}
696
- `, { mode: opts.mode });
697
- });
698
- };
699
- var mainSync = (fp, data, opts) => {
700
- let indent = opts.indent;
701
- if (opts.detectIndent) {
702
- try {
703
- const file = fs.readFileSync(fp, "utf8");
704
- indent = detectIndent(file).indent;
705
- } catch (err) {
706
- if (err.code !== "ENOENT") {
707
- throw err;
708
- }
709
- }
710
- }
711
- const json = JSON.stringify(data, opts.replacer, indent);
712
- return writeFileAtomic.sync(fp, `${json}
713
- `, { mode: opts.mode });
714
- };
715
- module.exports = (fp, data, opts) => {
716
- return makeDir(path.dirname(fp), { fs }).then(() => init(main, fp, data, opts));
717
- };
718
- module.exports.sync = (fp, data, opts) => {
719
- makeDir.sync(path.dirname(fp), { fs });
720
- init(mainSync, fp, data, opts);
721
- };
722
- }
723
- });
724
-
725
- // src/util/telemetry/index.ts
726
- import { randomUUID as randomUUID2 } from "crypto";
727
- import os from "os";
728
- var import_constants = __toESM(require_dist(), 1);
729
- import { spawn } from "child_process";
730
- import { cloneEnv } from "@vercel/build-utils";
731
-
732
- // src/util/telemetry/session.ts
733
- var import_load_json_file = __toESM(require_load_json_file(), 1);
734
- var import_write_json_file = __toESM(require_write_json_file(), 1);
735
- import { randomUUID } from "crypto";
736
- import { mkdirSync } from "fs";
737
- import { dirname } from "path";
738
- var DEFAULT_CLI_SESSION_INACTIVITY_TIMEOUT_MS = 30 * 60 * 1e3;
739
- var DEFAULT_CLI_SESSION_MAX_LIFETIME_MS = 24 * 60 * 60 * 1e3;
740
- function isPersistedCliSession(value) {
741
- if (!value || typeof value !== "object") {
742
- return false;
743
- }
744
- const session = value;
745
- return typeof session.id === "string" && typeof session.createdAt === "number" && Number.isFinite(session.createdAt) && typeof session.lastSeenAt === "number" && Number.isFinite(session.lastSeenAt);
746
- }
747
- function isPersistedCliDevice(value) {
748
- if (!value || typeof value !== "object") {
749
- return false;
750
- }
751
- const device = value;
752
- return typeof device.id === "string";
753
- }
754
- function readPersistedCliSession(filePath) {
755
- try {
756
- const session = import_load_json_file.default.sync(filePath);
757
- return isPersistedCliSession(session) ? session : null;
758
- } catch {
759
- return null;
760
- }
761
- }
762
- function writePersistedCliSession(filePath, session) {
763
- try {
764
- mkdirSync(dirname(filePath), { recursive: true });
765
- import_write_json_file.default.sync(filePath, session, { indent: 2 });
766
- } catch {
767
- }
768
- }
769
- function readPersistedCliDevice(filePath) {
770
- try {
771
- const device = import_load_json_file.default.sync(filePath);
772
- return isPersistedCliDevice(device) ? device : null;
773
- } catch {
774
- return null;
775
- }
776
- }
777
- function writePersistedCliDevice(filePath, device) {
778
- try {
779
- mkdirSync(dirname(filePath), { recursive: true });
780
- import_write_json_file.default.sync(filePath, device, { indent: 2 });
781
- } catch {
782
- }
783
- }
784
- function getOrCreatePersistedCliSession(opts) {
785
- const now = opts.now?.() ?? Date.now();
786
- const inactivityTimeoutMs = opts.inactivityTimeoutMs ?? DEFAULT_CLI_SESSION_INACTIVITY_TIMEOUT_MS;
787
- const maxLifetimeMs = opts.maxLifetimeMs ?? DEFAULT_CLI_SESSION_MAX_LIFETIME_MS;
788
- const existing = readPersistedCliSession(opts.filePath);
789
- const shouldReuseExisting = existing && now - existing.lastSeenAt <= inactivityTimeoutMs && now - existing.createdAt <= maxLifetimeMs;
790
- const session = shouldReuseExisting ? {
791
- ...existing,
792
- lastSeenAt: now
793
- } : {
794
- id: randomUUID(),
795
- createdAt: now,
796
- lastSeenAt: now
797
- };
798
- writePersistedCliSession(opts.filePath, session);
799
- return session;
800
- }
801
- function touchPersistedCliSession(opts, session) {
802
- const nextSession = {
803
- ...session,
804
- lastSeenAt: opts.now?.() ?? Date.now()
805
- };
806
- writePersistedCliSession(opts.filePath, nextSession);
807
- return nextSession;
808
- }
809
- function getOrCreatePersistedCliDevice(opts) {
810
- const existing = readPersistedCliDevice(opts.filePath);
811
- if (existing) {
812
- return existing;
813
- }
814
- const device = {
815
- id: randomUUID()
816
- };
817
- writePersistedCliDevice(opts.filePath, device);
818
- return device;
819
- }
820
-
821
- // src/util/telemetry/index.ts
822
- var LogLabel = `['telemetry']:`;
823
- var MAX_ERROR_SERVER_MESSAGE_LENGTH = 500;
824
- var TelemetryClient = class {
825
- constructor({ opts }) {
826
- this.redactedValue = "[REDACTED]";
827
- this.noValueToTriggerPrompt = "[TRIGGER_PROMPT]";
828
- this.redactedArgumentsLength = (args) => {
829
- if (args && args.length === 1) {
830
- return "ONE";
831
- }
832
- if (args.length > 1) {
833
- return "MANY";
834
- }
835
- return "NONE";
836
- };
837
- this.redactedTargetName = (target) => {
838
- if (import_constants.PROJECT_ENV_TARGET.includes(target)) {
839
- return target;
840
- }
841
- return this.redactedValue;
842
- };
843
- this.isDebug = opts.isDebug || false;
844
- this.store = opts.store;
845
- }
846
- track(eventData) {
847
- if (this.isDebug) {
848
- output_manager_default.debug(`${LogLabel} ${eventData.key}:${eventData.value}`);
849
- }
850
- const event = {
851
- id: randomUUID2(),
852
- eventTime: Date.now(),
853
- ...eventData
854
- };
855
- this.store.add(event);
856
- }
857
- trackCliCommand(eventData) {
858
- this.track({
859
- key: `command:${eventData.command}`,
860
- value: eventData.value
861
- });
862
- }
863
- trackCliSubcommand(eventData) {
864
- this.track({
865
- key: `subcommand:${eventData.subcommand}`,
866
- value: eventData.value
867
- });
868
- }
869
- trackCliArgument(eventData) {
870
- if (eventData.value) {
871
- this.track({
872
- key: `argument:${eventData.arg}`,
873
- value: eventData.value
874
- });
875
- }
876
- }
877
- trackCliOption(eventData) {
878
- this.track({
879
- key: `option:${eventData.option}`,
880
- value: eventData.value
881
- });
882
- }
883
- trackTargetEnvironment(targetEnvironment) {
884
- this.track({
885
- key: "target_environment",
886
- value: targetEnvironment
887
- });
888
- }
889
- trackCommandOutput(eventData) {
890
- this.track({
891
- key: `output:${eventData.key}`,
892
- value: eventData.value
893
- });
894
- }
895
- trackCliFlag(flag) {
896
- this.track({
897
- key: `flag:${flag}`,
898
- value: "TRUE"
899
- });
900
- }
901
- trackOidcTokenRefresh(count) {
902
- this.track({
903
- key: "oidc-token-refresh",
904
- value: `${count}`
905
- });
906
- }
907
- trackCPUs() {
908
- this.track({
909
- key: "cpu_count",
910
- value: String(os.cpus().length)
911
- });
912
- }
913
- trackAgenticUse(agent) {
914
- if (agent) {
915
- this.track({
916
- key: "agent",
917
- value: agent
918
- });
919
- }
920
- }
921
- trackPlatform() {
922
- this.track({
923
- key: "platform",
924
- value: os.platform()
925
- });
926
- }
927
- trackArch() {
928
- this.track({
929
- key: "arch",
930
- value: os.arch()
931
- });
932
- }
933
- trackCI(ciVendorName) {
934
- if (ciVendorName) {
935
- this.track({
936
- key: "ci",
937
- value: ciVendorName
938
- });
939
- }
940
- }
941
- trackStdinIsTTY(isTTY) {
942
- this.track({
943
- key: "stdin_is_tty",
944
- value: isTTY ? "true" : "false"
945
- });
946
- }
947
- trackVersion(version) {
948
- if (version) {
949
- this.track({
950
- key: "version",
951
- value: version
952
- });
953
- }
954
- }
955
- trackDefaultDeploy() {
956
- this.track({
957
- key: "default-deploy",
958
- value: "TRUE"
959
- });
960
- }
961
- trackProjectId(projectId) {
962
- if (projectId) {
963
- this.track({
964
- key: "project_id",
965
- value: projectId
966
- });
967
- }
968
- }
969
- trackInvocationId(invocationId) {
970
- if (invocationId) {
971
- this.track({
972
- key: "invocation_id",
973
- value: invocationId
974
- });
975
- }
976
- }
977
- trackDeviceId(deviceId) {
978
- if (deviceId) {
979
- this.track({
980
- key: "device_id",
981
- value: deviceId
982
- });
983
- }
984
- }
985
- trackVercelPluginActiveSession() {
986
- this.track({
987
- key: "vercel_plugin_active_session",
988
- value: "TRUE"
989
- });
990
- }
991
- trackVercelPluginVersion(version) {
992
- if (version) {
993
- this.track({
994
- key: "vercel_plugin_version",
995
- value: version
996
- });
997
- }
998
- }
999
- trackErrorStatus(status) {
1000
- if (typeof status !== "undefined") {
1001
- this.track({
1002
- key: "error_status",
1003
- value: String(status)
1004
- });
1005
- }
1006
- }
1007
- trackErrorCode(code) {
1008
- if (code) {
1009
- this.track({
1010
- key: "error_code",
1011
- value: code
1012
- });
1013
- }
1014
- }
1015
- trackErrorSlug(slug) {
1016
- if (slug) {
1017
- this.track({
1018
- key: "error_slug",
1019
- value: slug
1020
- });
1021
- }
1022
- }
1023
- trackErrorAction(action) {
1024
- if (action) {
1025
- this.track({
1026
- key: "error_action",
1027
- value: action
1028
- });
1029
- }
1030
- }
1031
- trackErrorServerMessage(serverMessage) {
1032
- if (serverMessage) {
1033
- const normalizedServerMessage = serverMessage.trim().replace(/\s+/g, " ");
1034
- this.track({
1035
- key: "error_server_message",
1036
- value: normalizedServerMessage.slice(
1037
- 0,
1038
- MAX_ERROR_SERVER_MESSAGE_LENGTH
1039
- )
1040
- });
1041
- }
1042
- }
1043
- trackExtension() {
1044
- this.track({
1045
- key: "extension",
1046
- value: this.redactedValue
1047
- });
1048
- }
1049
- trackLoginState(state) {
1050
- if (state === "started")
1051
- this.loginAttempt = randomUUID2();
1052
- if (this.loginAttempt) {
1053
- this.track({ key: `login:attempt:${this.loginAttempt}`, value: state });
1054
- }
1055
- if (state !== "started")
1056
- this.loginAttempt = void 0;
1057
- }
1058
- trackCliFlagHelp(command, subcommands) {
1059
- let subcommand;
1060
- if (subcommands) {
1061
- subcommand = Array.isArray(subcommands) ? subcommands[0] : subcommands;
1062
- }
1063
- this.track({
1064
- key: "flag:help",
1065
- value: subcommand ? `${command}:${subcommand}` : command
1066
- });
1067
- }
1068
- /**
1069
- * Tracks the --format option for JSON output.
1070
- * This is a common option across many commands, so it's defined in the base class.
1071
- */
1072
- trackCliOptionFormat(format) {
1073
- if (format) {
1074
- const allowedFormat = ["json"].includes(format) ? format : this.redactedValue;
1075
- this.trackCliOption({
1076
- option: "format",
1077
- value: allowedFormat
1078
- });
1079
- }
1080
- }
1081
- /**
1082
- * Tracks the --project option. Value is redacted because project names/IDs
1083
- * may be sensitive. Accepts `string | string[]` so commands with a repeatable
1084
- * `--project` can override. Not all commands support repeated `--project` flags
1085
- */
1086
- trackCliOptionProject(value) {
1087
- if (!value)
1088
- return;
1089
- if (Array.isArray(value) && value.length === 0)
1090
- return;
1091
- this.trackCliOption({
1092
- option: "project",
1093
- value: this.redactedValue
1094
- });
1095
- }
1096
- };
1097
- var TelemetryEventStore = class {
1098
- constructor(opts) {
1099
- this.teamId = "NO_TEAM_ID";
1100
- this.userId = "NO_USER_ID";
1101
- this.projectId = "NO_PROJECT_ID";
1102
- this.isDebug = opts?.isDebug || false;
1103
- this.events = [];
1104
- this.config = opts?.config;
1105
- this.cliDeviceOptions = opts?.cliDevice;
1106
- this.cliSessionOptions = opts?.cliSession;
1107
- this.invocationId = randomUUID2();
1108
- this.deviceId = randomUUID2();
1109
- if (this.cliDeviceOptions) {
1110
- this.cliDevice = getOrCreatePersistedCliDevice(this.cliDeviceOptions);
1111
- this.deviceId = this.cliDevice.id;
1112
- }
1113
- if (this.cliSessionOptions) {
1114
- this.cliSession = getOrCreatePersistedCliSession(this.cliSessionOptions);
1115
- this.sessionId = this.cliSession.id;
1116
- } else {
1117
- this.sessionId = randomUUID2();
1118
- }
1119
- }
1120
- add(event) {
1121
- event.sessionId = this.sessionId;
1122
- event.teamId = this.teamId;
1123
- event.userId = this.userId;
1124
- event.projectId = this.projectId;
1125
- this.events.push(event);
1126
- }
1127
- updateTeamId(teamId) {
1128
- if (teamId) {
1129
- this.teamId = teamId;
1130
- }
1131
- }
1132
- updateUserId(userId) {
1133
- if (userId) {
1134
- this.userId = userId;
1135
- }
1136
- }
1137
- updateProjectId(projectId) {
1138
- if (projectId) {
1139
- this.projectId = projectId;
1140
- }
1141
- }
1142
- get hasUserId() {
1143
- return this.userId !== "NO_USER_ID";
1144
- }
1145
- get currentProjectId() {
1146
- return this.projectId;
1147
- }
1148
- get currentInvocationId() {
1149
- return this.invocationId;
1150
- }
1151
- get currentDeviceId() {
1152
- return this.deviceId;
1153
- }
1154
- get currentSessionId() {
1155
- return this.sessionId;
1156
- }
1157
- get readonlyEvents() {
1158
- return Array.from(this.events);
1159
- }
1160
- reset() {
1161
- this.events = [];
1162
- }
1163
- get enabled() {
1164
- if (process.env.VERCEL_TELEMETRY_DISABLED) {
1165
- return false;
1166
- }
1167
- return this.config?.enabled ?? true;
1168
- }
1169
- async save() {
1170
- if (this.cliSession && this.cliSessionOptions) {
1171
- this.cliSession = touchPersistedCliSession(
1172
- this.cliSessionOptions,
1173
- this.cliSession
1174
- );
1175
- }
1176
- if (this.isDebug) {
1177
- output_manager_default.log(`${LogLabel} Flushing Events`);
1178
- for (const event of this.events) {
1179
- event.teamId = this.teamId;
1180
- event.userId = this.userId;
1181
- event.projectId = this.projectId;
1182
- output_manager_default.log(JSON.stringify(event));
1183
- }
1184
- return;
1185
- }
1186
- if (this.enabled) {
1187
- const sessionId = this.events[0].sessionId;
1188
- if (!sessionId) {
1189
- output_manager_default.debug("Unable to send metrics: no session ID");
1190
- return;
1191
- }
1192
- const events = this.events.map((event) => {
1193
- delete event.sessionId;
1194
- delete event.teamId;
1195
- delete event.userId;
1196
- delete event.projectId;
1197
- const { eventTime, ...rest } = event;
1198
- return {
1199
- event_time: eventTime,
1200
- team_id: this.teamId,
1201
- user_id: this.userId,
1202
- project_id: this.projectId,
1203
- ...rest
1204
- };
1205
- });
1206
- const payload = {
1207
- headers: {
1208
- "Client-id": "vercel-cli",
1209
- "x-vercel-cli-topic-id": "generic",
1210
- "x-vercel-cli-session-id": sessionId
1211
- },
1212
- body: events
1213
- };
1214
- await this.sendToSubprocess(payload, output_manager_default.debugEnabled);
1215
- }
1216
- }
1217
- /**
1218
- * Send the telemetry events to a subprocess, this invokes the `telemetry flush` command
1219
- * and passes a stringified payload to the subprocess, there's a risk that if the event payload
1220
- * increases in size, it may exceed the maximum buffer size for the subprocess, in which case the
1221
- * child process will error and not send anything.
1222
- * FIXME: handle max buffer size
1223
- */
1224
- async sendToSubprocess(payload, outputDebugEnabled) {
1225
- const flushArgs = ["telemetry", "flush", JSON.stringify(payload)];
1226
- let nodeBinaryPath;
1227
- let script;
1228
- if (isNativeBinaryInstall()) {
1229
- nodeBinaryPath = process.execPath;
1230
- script = flushArgs;
1231
- } else {
1232
- const args = [process.execPath, process.argv[0], process.argv[1]];
1233
- if (args[0] === args[1]) {
1234
- args.shift();
1235
- }
1236
- nodeBinaryPath = args[0];
1237
- script = [...args.slice(1), ...flushArgs];
1238
- }
1239
- const env = cloneEnv(process.env, {
1240
- VERCEL_TELEMETRY_DISABLED: "1"
1241
- });
1242
- if (outputDebugEnabled) {
1243
- return new Promise((resolve) => {
1244
- const childProcess = spawn(nodeBinaryPath, script, {
1245
- env,
1246
- stdio: ["ignore", "pipe", "pipe"]
1247
- });
1248
- childProcess.stderr.on("data", (data) => output_manager_default.debug(data.toString()));
1249
- childProcess.stdout.on("data", (data) => output_manager_default.debug(data.toString()));
1250
- childProcess.on("error", (d) => {
1251
- output_manager_default.debug(d);
1252
- });
1253
- const timeout = setTimeout(() => {
1254
- output_manager_default.debug("Telemetry subprocess killed due to timeout");
1255
- childProcess.kill();
1256
- }, 2e3);
1257
- childProcess.on("exit", (code) => {
1258
- output_manager_default.debug(`Telemetry subprocess exited with code ${code}`);
1259
- childProcess.unref();
1260
- timeout.unref();
1261
- resolve();
1262
- });
1263
- });
1264
- } else {
1265
- const childProcess = spawn(nodeBinaryPath, script, {
1266
- stdio: "ignore",
1267
- env,
1268
- windowsHide: true,
1269
- detached: true
1270
- });
1271
- childProcess.unref();
1272
- }
1273
- }
1274
- };
1275
-
1276
- export {
1277
- require_dist,
1278
- TelemetryClient,
1279
- TelemetryEventStore
1280
- };
1281
- /*! Bundled license information:
1282
-
1283
- imurmurhash/imurmurhash.js:
1284
- (**
1285
- * @preserve
1286
- * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
1287
- *
1288
- * @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
1289
- * @see http://github.com/homebrewing/brauhaus-diff
1290
- * @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
1291
- * @see http://github.com/garycourt/murmurhash-js
1292
- * @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
1293
- * @see http://sites.google.com/site/murmurhash/
1294
- *)
1295
- */