vercel 62.4.0 → 62.7.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 (214) hide show
  1. package/README.md +2 -0
  2. package/dist/chunks/{add-XZMJUVCZ.js → add-OXHI3PVM.js} +1 -1
  3. package/dist/chunks/{add-K6P7R3M4.js → add-P3FNSVMN.js} +1 -1
  4. package/dist/chunks/{add-E6SM6YUU.js → add-WUT6QU2J.js} +1 -1
  5. package/dist/chunks/{build-ORM2P3M7.js → build-J6VW3KHT.js} +1 -1
  6. package/dist/chunks/{chunk-3YAQUAOG.js → chunk-2KSNNB4B.js} +1 -1
  7. package/dist/chunks/{chunk-54SEEVOA.js → chunk-35QK5NDD.js} +1 -1
  8. package/dist/chunks/{chunk-LOD56FYJ.js → chunk-3XLK5ZPD.js} +5 -5
  9. package/dist/chunks/{chunk-TNJVIC27.js → chunk-3ZMD36SU.js} +1 -1
  10. package/dist/chunks/{chunk-GV6XYKYC.js → chunk-46UCIIJN.js} +1 -1
  11. package/dist/chunks/chunk-4CACOKMS.js +7 -0
  12. package/dist/chunks/chunk-4H5LPD3T.js +9 -0
  13. package/dist/chunks/{chunk-SDGWKUST.js → chunk-4KQBTIMZ.js} +1 -1
  14. package/dist/chunks/{chunk-YMM3VY3J.js → chunk-4QSVBLAS.js} +1 -1
  15. package/dist/chunks/{chunk-Z4VR6CQ2.js → chunk-5AXNGQJC.js} +1 -1
  16. package/dist/chunks/{chunk-ROOWZCAB.js → chunk-5IPBCD7K.js} +1 -1
  17. package/dist/chunks/{chunk-KQM2AGUS.js → chunk-5JN3FWV2.js} +1 -1
  18. package/dist/chunks/{chunk-HNF6WZ5S.js → chunk-5M45EBVX.js} +2 -2
  19. package/dist/chunks/{chunk-UZ2DSUM6.js → chunk-5ZQF5WIO.js} +1 -1
  20. package/dist/chunks/{chunk-G7AD7DRG.js → chunk-6C4RPAG7.js} +1 -1
  21. package/dist/chunks/{chunk-SANUW37I.js → chunk-6DJ6PMEK.js} +2 -2
  22. package/dist/chunks/chunk-6EW4BCMR.js +9 -0
  23. package/dist/chunks/chunk-774D3BGN.js +7 -0
  24. package/dist/chunks/chunk-7SNMU7U7.js +7 -0
  25. package/dist/chunks/{chunk-HWWHR7H3.js → chunk-A73N3QKT.js} +1 -1
  26. package/dist/chunks/{chunk-GTZDB7IL.js → chunk-AEEEEOYS.js} +1 -1
  27. package/dist/chunks/chunk-APSIFBD4.js +7 -0
  28. package/dist/chunks/{chunk-R3B67TKQ.js → chunk-B2L2QTXT.js} +1 -1
  29. package/dist/chunks/{chunk-UDVWL4I4.js → chunk-BHBNTQRT.js} +1 -1
  30. package/dist/chunks/{chunk-B4VX6C2E.js → chunk-CF2PIWRO.js} +1 -1
  31. package/dist/chunks/{chunk-VUCFX2G4.js → chunk-CR2ZQBDU.js} +1 -1
  32. package/dist/chunks/{chunk-ETYHCI6U.js → chunk-CRITS7IX.js} +1 -1
  33. package/dist/chunks/{chunk-3P7HVGKM.js → chunk-DGH5CD6D.js} +1 -1
  34. package/dist/chunks/chunk-DZZFEAM6.js +7 -0
  35. package/dist/chunks/{chunk-MJRZSYU2.js → chunk-ECMWDZTJ.js} +4 -4
  36. package/dist/chunks/{chunk-WT73KR4Y.js → chunk-EDDOQXEI.js} +1 -1
  37. package/dist/chunks/{chunk-UV4HOEHC.js → chunk-EQ24OC5G.js} +1 -1
  38. package/dist/chunks/{chunk-57NFMJ6O.js → chunk-FAJB3JV5.js} +1 -1
  39. package/dist/chunks/chunk-FB3U3RAM.js +9 -0
  40. package/dist/chunks/{chunk-DQ2KI6FO.js → chunk-FEEG5UU2.js} +1 -1
  41. package/dist/chunks/{chunk-PP36OP55.js → chunk-FQJCWZ4C.js} +1 -1
  42. package/dist/chunks/chunk-GMTLVRN7.js +8 -0
  43. package/dist/chunks/{chunk-DJC2LX46.js → chunk-GUTZ45DE.js} +1 -1
  44. package/dist/chunks/{chunk-7NEJJJH6.js → chunk-H3QRCTIJ.js} +1 -1
  45. package/dist/chunks/{chunk-RDC4BJSR.js → chunk-I5JR7PIO.js} +1 -1
  46. package/dist/chunks/{chunk-TNERVI3E.js → chunk-IEKUTNKT.js} +1 -1
  47. package/dist/chunks/{chunk-XQVD5V3T.js → chunk-JNLWD6DK.js} +1 -1
  48. package/dist/chunks/{chunk-VGXFOQ4P.js → chunk-K2RQEX7N.js} +1 -1
  49. package/dist/chunks/{chunk-QFVAARN7.js → chunk-KXMVFT2K.js} +1 -1
  50. package/dist/chunks/{chunk-SL5SJUAH.js → chunk-LCH3SUJ7.js} +1 -1
  51. package/dist/chunks/{chunk-TQ5ETS24.js → chunk-LWQVT6YW.js} +1 -1
  52. package/dist/chunks/chunk-LXNMVWYO.js +9 -0
  53. package/dist/chunks/{chunk-PTUZ7ATN.js → chunk-LYKPLTZ7.js} +1 -1
  54. package/dist/chunks/chunk-M3HO5CTQ.js +7 -0
  55. package/dist/chunks/{chunk-IHXHZBHR.js → chunk-M4IVLSNQ.js} +1 -1
  56. package/dist/chunks/{chunk-3HO365U7.js → chunk-M4IWOZEG.js} +1 -1
  57. package/dist/chunks/{chunk-6BZCSVH6.js → chunk-M5NWE7EO.js} +1 -1
  58. package/dist/chunks/{chunk-MCCL762Q.js → chunk-MCBO6LL7.js} +2 -2
  59. package/dist/chunks/{chunk-I46LFJJG.js → chunk-MIG67KZ2.js} +1 -1
  60. package/dist/chunks/{chunk-JEYKXG6O.js → chunk-MOLEXKVC.js} +1 -1
  61. package/dist/chunks/{chunk-RINZXCDJ.js → chunk-NM67DIPQ.js} +1 -1
  62. package/dist/chunks/{chunk-V6MR45PD.js → chunk-NNP5NITU.js} +1 -1
  63. package/dist/chunks/{chunk-7W3B5AJR.js → chunk-NYFB3EYC.js} +1 -1
  64. package/dist/chunks/chunk-O3UY73UQ.js +7 -0
  65. package/dist/chunks/chunk-O5A7CNRV.js +7 -0
  66. package/dist/chunks/chunk-ONPJXQQ6.js +10 -0
  67. package/dist/chunks/{chunk-LW3HJWXW.js → chunk-OQVE2WXX.js} +1 -1
  68. package/dist/chunks/chunk-ORJGSUQT.js +9 -0
  69. package/dist/chunks/{chunk-SM5JI6QM.js → chunk-PE7QZUY7.js} +1 -1
  70. package/dist/chunks/{chunk-EWWFNMPZ.js → chunk-Q2YQSMIB.js} +8 -6
  71. package/dist/chunks/{chunk-J4YZKLVO.js → chunk-Q7AYTXUR.js} +2 -2
  72. package/dist/chunks/{chunk-IIKYA7SM.js → chunk-QZ2G3AMY.js} +1 -1
  73. package/dist/chunks/{chunk-FSHYI4ZE.js → chunk-RMZJP32R.js} +1 -1
  74. package/dist/chunks/{chunk-7OBZ2AM6.js → chunk-RSLPLRVK.js} +1 -1
  75. package/dist/chunks/{chunk-OL3BQESW.js → chunk-RYMRVMGD.js} +3 -3
  76. package/dist/chunks/{chunk-MB4RN7BI.js → chunk-S54ISKGR.js} +1 -1
  77. package/dist/chunks/{chunk-QLJ72TJJ.js → chunk-SMC4MGY5.js} +1 -1
  78. package/dist/chunks/{chunk-72DVIZTW.js → chunk-SR5XEF7L.js} +1 -1
  79. package/dist/chunks/{chunk-LQBC5QPO.js → chunk-TAT5WGDZ.js} +1 -1
  80. package/dist/chunks/chunk-THB7KY2N.js +7 -0
  81. package/dist/chunks/{chunk-XQQGQ55A.js → chunk-UKMRJIIZ.js} +1 -1
  82. package/dist/chunks/{chunk-MKY5IBKK.js → chunk-UKVEXM5O.js} +1 -1
  83. package/dist/chunks/{chunk-5G3VXZB4.js → chunk-ULHETT7U.js} +1 -1
  84. package/dist/chunks/{chunk-JI2BTGLU.js → chunk-UOZHC2ZG.js} +1 -1
  85. package/dist/chunks/chunk-V426AGVC.js +9 -0
  86. package/dist/chunks/{chunk-EWW4GCZY.js → chunk-V6Y6UK6B.js} +2 -4
  87. package/dist/chunks/{chunk-WGPFU3NA.js → chunk-VWBJWUYQ.js} +1 -1
  88. package/dist/chunks/{chunk-TKBORMUF.js → chunk-WKZ6JSGZ.js} +1 -1
  89. package/dist/chunks/{chunk-GNJPIPBF.js → chunk-WNTA7DCC.js} +1 -1
  90. package/dist/chunks/chunk-WOTPEBSH.js +11 -0
  91. package/dist/chunks/{chunk-HTZPGIVL.js → chunk-XQQ7DTQG.js} +1 -1
  92. package/dist/chunks/{chunk-C5KVTG2O.js → chunk-YEWZFZ2O.js} +1 -1
  93. package/dist/chunks/{chunk-YAJFAGUO.js → chunk-YGMOJBSP.js} +2 -2
  94. package/dist/chunks/{chunk-3GUBYJN6.js → chunk-YKOIVWZI.js} +1 -1
  95. package/dist/chunks/{chunk-BIFJ5QEB.js → chunk-YTIANIL7.js} +1 -1
  96. package/dist/chunks/chunk-YUDKK2QJ.js +7 -0
  97. package/dist/chunks/chunk-YW5R6XQI.js +7 -0
  98. package/dist/chunks/{chunk-6NPXWN5F.js → chunk-YZBYL3SH.js} +1 -1
  99. package/dist/chunks/{chunk-7X34JCBW.js → chunk-ZN37NQM4.js} +1 -1
  100. package/dist/chunks/{chunk-6RNZA3VS.js → chunk-ZNQI6M3S.js} +1 -1
  101. package/dist/chunks/{chunk-ZXEYTD3W.js → chunk-ZTUQEA2X.js} +1 -1
  102. package/dist/chunks/{clear-IWIBH2TY.js → clear-VMJVLPVR.js} +1 -1
  103. package/dist/chunks/{compile-vercel-config-B2ZES5JB.js → compile-vercel-config-YCLXPL5H.js} +1 -1
  104. package/dist/chunks/{config-5GNX5VM2.js → config-JPX6NJMJ.js} +1 -1
  105. package/dist/chunks/{config-BLTCR2NA.js → config-YMUUPO3R.js} +1 -1
  106. package/dist/chunks/config-validator.mjs +1 -1
  107. package/dist/chunks/{connect-git-provider-VYU65KTS.js → connect-git-provider-KLSBCSD2.js} +1 -1
  108. package/dist/chunks/{constants-NCE2LWSS.js → constants-G4UYVLOF.js} +1 -1
  109. package/dist/chunks/{delete-TN2UUEOF.js → delete-E7J4B5E5.js} +1 -1
  110. package/dist/chunks/{delete-DSDSQVG7.js → delete-EEY7M6XT.js} +1 -1
  111. package/dist/chunks/{detect-services-VQWDU5RR.js → detect-services-E2TWAKQS.js} +1 -1
  112. package/dist/chunks/{disable-76QRXL7J.js → disable-5TKY6JK2.js} +1 -1
  113. package/dist/chunks/{discard-CWXRCRFL.js → discard-ALSOF66H.js} +1 -1
  114. package/dist/chunks/{edit-LYZPKUZY.js → edit-2M3KEE3H.js} +1 -1
  115. package/dist/chunks/{edit-KC6AK6DA.js → edit-ISUCMYNW.js} +1 -1
  116. package/dist/chunks/{enable-ZVEULDXQ.js → enable-2QTTTYQD.js} +1 -1
  117. package/dist/chunks/{exec-3RMS2X6B.js → exec-XIQJ2A3J.js} +1 -1
  118. package/dist/chunks/{export-SYT5NHSM.js → export-PV2NDS7C.js} +1 -1
  119. package/dist/chunks/{future-YNSZJIAG.js → future-SQS5POAL.js} +1 -1
  120. package/dist/chunks/{generate-cert-for-deploy-G26VGC4I.js → generate-cert-for-deploy-4EJRA7MS.js} +1 -1
  121. package/dist/chunks/{image-XAJFJ6UD.js → image-6GL2UOA2.js} +1 -1
  122. package/dist/chunks/import-builders-KAZMYQCR.js +7 -0
  123. package/dist/chunks/{inspect-HIRGIJON.js → inspect-3HGROSZO.js} +1 -1
  124. package/dist/chunks/{inspect-A76MME2I.js → inspect-FK6GC5JZ.js} +1 -1
  125. package/dist/chunks/{inspect-DF35I6AZ.js → inspect-LZMU7RIU.js} +1 -1
  126. package/dist/chunks/{inspect-JEHOMETA.js → inspect-ORVORGUM.js} +1 -1
  127. package/dist/chunks/{inspect-7CODV4HJ.js → inspect-UNL54246.js} +1 -1
  128. package/dist/chunks/{list-XNNJCS5K.js → list-EWJI2WSQ.js} +1 -1
  129. package/dist/chunks/{list-3KNHQV4S.js → list-FVUIZPC7.js} +1 -1
  130. package/dist/chunks/{list-M2YCP5HV.js → list-WOUJM4WR.js} +1 -1
  131. package/dist/chunks/login-IJLY5XTT.js +7 -0
  132. package/dist/chunks/{login-UM35IU3S.js → login-JREQ7SLY.js} +1 -1
  133. package/dist/chunks/logs-Z7IMGFO2.js +7 -0
  134. package/dist/chunks/{ls-M2SGUIZK.js → ls-4COX4SMJ.js} +1 -1
  135. package/dist/chunks/{ls-KGYG3F3A.js → ls-6CD2OQGA.js} +1 -1
  136. package/dist/chunks/ls-6DOYSBQM.js +8 -0
  137. package/dist/chunks/{ls-ISILCAV4.js → ls-AHT2FRGM.js} +1 -1
  138. package/dist/chunks/{ls-YJEUWZFT.js → ls-LXBUE4LZ.js} +1 -1
  139. package/dist/chunks/{ls-Z2JKBJKR.js → ls-RBWPVJ5G.js} +1 -1
  140. package/dist/chunks/{ls-Y3CBOCK2.js → ls-W5SJUIHD.js} +1 -1
  141. package/dist/chunks/{mutate-ZCA7FKDL.js → mutate-TVUHBRBK.js} +1 -1
  142. package/dist/chunks/{notifications-7QROHXJQ.js → notifications-OXOSD6UK.js} +1 -1
  143. package/dist/chunks/{open-FU7OJPAY.js → open-SWPHB54M.js} +1 -1
  144. package/dist/chunks/{openapi-KGCZ7LB4.js → openapi-32XHDVJL.js} +1 -1
  145. package/dist/chunks/{permissions-I4ZXPUVY.js → permissions-A4WMGETJ.js} +1 -1
  146. package/dist/chunks/{prompt-missing-credentials-YPLDAGZA.js → prompt-missing-credentials-6IXO6VND.js} +1 -1
  147. package/dist/chunks/{publish-6WBGPES3.js → publish-2CS4RYJW.js} +1 -1
  148. package/dist/chunks/pull-WWUH4M5V.js +7 -0
  149. package/dist/chunks/purchase-domain-if-available-TAXCYIV7.js +7 -0
  150. package/dist/chunks/{push-ZRDFCF3D.js → push-OPRW7M4I.js} +1 -1
  151. package/dist/chunks/{query-RXONIAT5.js → query-22PGP7BC.js} +1 -1
  152. package/dist/chunks/{reauthenticate-7RZ2XFR4.js → reauthenticate-LMR25CIE.js} +1 -1
  153. package/dist/chunks/{reorder-P5LWY3FS.js → reorder-Y3NMEA2S.js} +1 -1
  154. package/dist/chunks/{reply-QNIIC2TP.js → reply-YEZHST2Q.js} +1 -1
  155. package/dist/chunks/{resolve-RQBKN4WL.js → resolve-QC37E2EB.js} +1 -1
  156. package/dist/chunks/{restore-NPY7XA3A.js → restore-RMQVGYQB.js} +1 -1
  157. package/dist/chunks/rm-42U6SPVV.js +8 -0
  158. package/dist/chunks/{rm-5LVIH5IE.js → rm-43MPIHP3.js} +1 -1
  159. package/dist/chunks/{rm-4PBTYQBF.js → rm-4MSUYUEP.js} +1 -1
  160. package/dist/chunks/{rm-XOE3T2QM.js → rm-DPHE34CD.js} +1 -1
  161. package/dist/chunks/{rm-K3V6KVHW.js → rm-JHWXYHJY.js} +1 -1
  162. package/dist/chunks/{routes-FOCZWOGO.js → routes-2GTCE542.js} +1 -1
  163. package/dist/chunks/{rule-inspect-6UI5XBGA.js → rule-inspect-7LIPL5YY.js} +1 -1
  164. package/dist/chunks/{rules-MJWNYYRT.js → rules-6KWBVUF2.js} +1 -1
  165. package/dist/chunks/{schema-SOV2XP24.js → schema-OUFU5V7Z.js} +1 -1
  166. package/dist/chunks/{schema-ABJKQ6AB.js → schema-S2DE7S5N.js} +1 -1
  167. package/dist/chunks/{select-org-G4KFHFH3.js → select-org-EL66MG67.js} +1 -1
  168. package/dist/chunks/set-VXSNREF4.js +7 -0
  169. package/dist/chunks/setup-and-link-I7SGZNGO.js +7 -0
  170. package/dist/chunks/{tags-DY5IM5QF.js → tags-AGLQDT3Z.js} +1 -1
  171. package/dist/chunks/{types-RHUVE4FN.js → types-GQNKYZJH.js} +1 -1
  172. package/dist/chunks/{update-6WSCOLSB.js → update-TI3YRVQT.js} +1 -1
  173. package/dist/chunks/{vlt-builder-graph-B4DFIUS6.js → vlt-builder-graph-S4YJ5UTQ.js} +1 -1
  174. package/dist/chunks/vlt-builder-importer-2ITR3DMQ.js +11 -0
  175. package/dist/commands/build/index.js +7 -7
  176. package/dist/commands/deploy/index.js +44 -28
  177. package/dist/commands/dev/index.js +8 -8
  178. package/dist/commands/env/index.js +1 -1
  179. package/dist/commands/link/index.js +1 -1
  180. package/dist/commands/list/index.js +1 -1
  181. package/dist/commands-bulk.js +419 -406
  182. package/dist/index.js +7 -8
  183. package/dist/internal-build-worker.js +4 -4
  184. package/dist/internal-build.js +11 -0
  185. package/dist/root-help-commands.mjs +1 -1
  186. package/dist/vc.js +24 -9
  187. package/dist/version.mjs +1 -1
  188. package/package.json +56 -55
  189. package/dist/chunks/chunk-2KCAQTPM.js +0 -9
  190. package/dist/chunks/chunk-AUIBCIET.js +0 -7
  191. package/dist/chunks/chunk-CJPM2DXZ.js +0 -7
  192. package/dist/chunks/chunk-DBDWXNAR.js +0 -7
  193. package/dist/chunks/chunk-E4M34FSN.js +0 -9
  194. package/dist/chunks/chunk-EZU5U2PZ.js +0 -7
  195. package/dist/chunks/chunk-J7JW6BBJ.js +0 -9
  196. package/dist/chunks/chunk-L37LRUIN.js +0 -7
  197. package/dist/chunks/chunk-LKYVY3SY.js +0 -7
  198. package/dist/chunks/chunk-OY2H4NBN.js +0 -8
  199. package/dist/chunks/chunk-QYGA4IKR.js +0 -7
  200. package/dist/chunks/chunk-TATIUO4V.js +0 -11
  201. package/dist/chunks/chunk-VX7JFH7Q.js +0 -7
  202. package/dist/chunks/chunk-WQLEYC3T.js +0 -9
  203. package/dist/chunks/chunk-WVUD3JPC.js +0 -10
  204. package/dist/chunks/chunk-XP4C5FLG.js +0 -7
  205. package/dist/chunks/import-builders-JXIILQOI.js +0 -7
  206. package/dist/chunks/login-2GVRFOQQ.js +0 -7
  207. package/dist/chunks/logs-HS5YRXDR.js +0 -7
  208. package/dist/chunks/ls-WROXB2SF.js +0 -8
  209. package/dist/chunks/pull-BJUOPX3J.js +0 -7
  210. package/dist/chunks/purchase-domain-if-available-7KTEXJFK.js +0 -7
  211. package/dist/chunks/rm-GGY4TGSX.js +0 -8
  212. package/dist/chunks/set-DJO2C6XG.js +0 -7
  213. package/dist/chunks/setup-and-link-BZCJ74II.js +0 -7
  214. package/dist/chunks/vlt-builder-importer-W63QEXYX.js +0 -11
@@ -4,5 +4,5 @@ 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{printRuleMutationReceipt}from"./chunk-DJC2LX46.js";import"./chunk-7PNYOSDU.js";import{emitRulesArgParseError,fetchRule,handleRulesApiError,outputRulesError,readRuleBody,resolveRulesProject,resolveRulesTeam,rulesItemPath}from"./chunk-IIKYA7SM.js";import"./chunk-VUCFX2G4.js";import"./chunk-W26LLGQV.js";import"./chunk-GZNDA6SV.js";import"./chunk-WRILLB46.js";import"./chunk-J4YZKLVO.js";import"./chunk-GHAY4PSD.js";import"./chunk-MJRZSYU2.js";import"./chunk-TRTEXGVN.js";import"./chunk-T3GQAMBJ.js";import"./chunk-MBL6TXEJ.js";import{validateJsonOutput}from"./chunk-D4MW3RDW.js";import"./chunk-P2O5DOYE.js";import{rulesUpdateSubcommand}from"./chunk-MB4RN7BI.js";import"./chunk-6TAQ6OWD.js";import"./chunk-DBDWXNAR.js";import"./chunk-QTKJC2O5.js";import"./chunk-GTZDB7IL.js";import"./chunk-RCTYVKM5.js";import"./chunk-GHM7V3GG.js";import"./chunk-5XJNPXQK.js";import"./chunk-MY4MONOH.js";import{printError}from"./chunk-J7JW6BBJ.js";import{parseArguments}from"./chunk-PTUZ7ATN.js";import"./chunk-LOD56FYJ.js";import"./chunk-B4ATVYZW.js";import"./chunk-F2ZWW2IO.js";import"./chunk-PPCFQQSU.js";import"./chunk-BRK4OB4B.js";import"./chunk-WPS6JZF6.js";import"./chunk-OSCCYU74.js";import"./chunk-WVUD3JPC.js";import"./chunk-BKV35LVB.js";import{getFlagsSpecification}from"./chunk-ROOWZCAB.js";import"./chunk-YMM3VY3J.js";import"./chunk-SM5JI6QM.js";import"./chunk-VOZEB6PD.js";import{isAPIError}from"./chunk-RINZXCDJ.js";import{packageName}from"./chunk-FI772UVH.js";import{output_manager_default}from"./chunk-EWWFNMPZ.js";import"./chunk-QGIQK47P.js";import"./chunk-AVSPFBLM.js";import"./chunk-XCJDGQO7.js";import"./chunk-YPTLSODC.js";import"./chunk-7HL2RPUO.js";import"./chunk-U7KCDTCH.js";import"./chunk-N3ZZ7FHQ.js";import"./chunk-GU6VIFR5.js";import"./chunk-6L236MNA.js";function sameScope(left,right){return JSON.stringify(left)===JSON.stringify(right)}function scopeForRule(client,type,scope,flags,jsonOutput){return flags["--project"]?type==="custom"?{type:"project",projectId:scope.projectId}:{type:"include",projectIds:[scope.projectId]}:type==="custom"?outputRulesError(client,jsonOutput,"INVALID_SCOPE","Custom alert rules must target one project. Use --project <name-or-id>."):{type:"all"}}async function resolveUpdateScope(client,flags,jsonOutput,ruleId){return flags["--project"]&&flags["--all"]?outputRulesError(client,jsonOutput,"MUTUAL_EXCLUSIVITY","Cannot specify both --all and --project. Use one or the other."):flags["--project"]?resolveRulesProject(client,flags["--project"],jsonOutput,`alerts rules update ${ruleId}`):resolveRulesTeam(client,jsonOutput)}function writeRuleResult(client,jsonOutput,action,rule){jsonOutput?client.stdout.write(`${JSON.stringify({rule},null,2)}
7
+ import{printRuleMutationReceipt}from"./chunk-GUTZ45DE.js";import"./chunk-7PNYOSDU.js";import{emitRulesArgParseError,fetchRule,handleRulesApiError,outputRulesError,readRuleBody,resolveRulesProject,resolveRulesTeam,rulesItemPath}from"./chunk-QZ2G3AMY.js";import"./chunk-CR2ZQBDU.js";import"./chunk-W26LLGQV.js";import"./chunk-GZNDA6SV.js";import"./chunk-Q7AYTXUR.js";import"./chunk-WRILLB46.js";import"./chunk-GHAY4PSD.js";import"./chunk-ECMWDZTJ.js";import"./chunk-TRTEXGVN.js";import"./chunk-T3GQAMBJ.js";import"./chunk-P2O5DOYE.js";import"./chunk-MBL6TXEJ.js";import{rulesUpdateSubcommand}from"./chunk-S54ISKGR.js";import"./chunk-6TAQ6OWD.js";import{printError}from"./chunk-LXNMVWYO.js";import"./chunk-ONPJXQQ6.js";import"./chunk-WPS6JZF6.js";import"./chunk-OSCCYU74.js";import{validateJsonOutput}from"./chunk-D4MW3RDW.js";import"./chunk-THB7KY2N.js";import"./chunk-AEEEEOYS.js";import"./chunk-QTKJC2O5.js";import"./chunk-RCTYVKM5.js";import"./chunk-BRK4OB4B.js";import"./chunk-GHM7V3GG.js";import"./chunk-5XJNPXQK.js";import"./chunk-MY4MONOH.js";import{parseArguments}from"./chunk-LYKPLTZ7.js";import"./chunk-BKV35LVB.js";import{getFlagsSpecification}from"./chunk-5IPBCD7K.js";import"./chunk-3XLK5ZPD.js";import"./chunk-B4ATVYZW.js";import"./chunk-F2ZWW2IO.js";import"./chunk-PPCFQQSU.js";import"./chunk-4QSVBLAS.js";import"./chunk-PE7QZUY7.js";import"./chunk-VOZEB6PD.js";import{isAPIError}from"./chunk-NM67DIPQ.js";import{packageName}from"./chunk-FI772UVH.js";import{output_manager_default}from"./chunk-Q2YQSMIB.js";import"./chunk-QGIQK47P.js";import"./chunk-AVSPFBLM.js";import"./chunk-XCJDGQO7.js";import"./chunk-YPTLSODC.js";import"./chunk-7HL2RPUO.js";import"./chunk-U7KCDTCH.js";import"./chunk-N3ZZ7FHQ.js";import"./chunk-GU6VIFR5.js";import"./chunk-6L236MNA.js";function sameScope(left,right){return JSON.stringify(left)===JSON.stringify(right)}function scopeForRule(client,type,scope,flags,jsonOutput){return flags["--project"]?type==="custom"?{type:"project",projectId:scope.projectId}:{type:"include",projectIds:[scope.projectId]}:type==="custom"?outputRulesError(client,jsonOutput,"INVALID_SCOPE","Custom alert rules must target one project. Use --project <name-or-id>."):{type:"all"}}async function resolveUpdateScope(client,flags,jsonOutput,ruleId){return flags["--project"]&&flags["--all"]?outputRulesError(client,jsonOutput,"MUTUAL_EXCLUSIVITY","Cannot specify both --all and --project. Use one or the other."):flags["--project"]?resolveRulesProject(client,flags["--project"],jsonOutput,`alerts rules update ${ruleId}`):resolveRulesTeam(client,jsonOutput)}function writeRuleResult(client,jsonOutput,action,rule){jsonOutput?client.stdout.write(`${JSON.stringify({rule},null,2)}
8
8
  `):printRuleMutationReceipt(action,rule,client.argv)}async function update(client,argv){let parsedArgs;try{parsedArgs=parseArguments(argv,getFlagsSpecification(rulesUpdateSubcommand.options))}catch(error){return emitRulesArgParseError(client,error,"alerts rules update <rule-id> --project <name-or-id>"),printError(error),2}let flags=parsedArgs.flags,format=validateJsonOutput(flags);if(!format.valid)return outputRulesError(client,!1,"INVALID_ARGUMENTS",format.error);let ruleId=parsedArgs.args[0];if(!ruleId)return outputRulesError(client,format.jsonOutput,"MISSING_ARGUMENTS",`Missing rule ID. Example: ${packageName} alerts rules update <rule-id> --body <file>`);let hasScopeFlag=!!(flags["--project"]||flags["--all"]);if(!flags["--body"]&&!hasScopeFlag)return outputRulesError(client,format.jsonOutput,"MISSING_ARGUMENTS","Provide --body <PATH>, --project <name-or-id>, or --all.");let body=flags["--body"]?readRuleBody(client,flags["--body"],format.jsonOutput):{};if(typeof body=="number")return body;if(Object.hasOwn(body,"type")&&body.type!=="built-in"&&body.type!=="custom")return outputRulesError(client,format.jsonOutput,"INVALID_RULE_TYPE","When provided, update body type must be a supported rule type.");if(hasScopeFlag&&Object.hasOwn(body,"ruleScope"))return outputRulesError(client,format.jsonOutput,"SCOPE_CONFLICT","Specify rule scope either in the body or with --project/--all, not both.");let scope=await resolveUpdateScope(client,flags,format.jsonOutput,ruleId);if(typeof scope=="number")return scope;try{let existing;if(hasScopeFlag){output_manager_default.spinner("Fetching alert rule\u2026"),existing=await fetchRule(client,scope,ruleId);let desiredScope=scopeForRule(client,existing.type,scope,flags,format.jsonOutput);if(typeof desiredScope=="number")return desiredScope;if(!sameScope(existing.ruleScope,desiredScope))body.ruleScope=desiredScope;else if(Object.keys(body).length===0)return output_manager_default.stopSpinner(),writeRuleResult(client,format.jsonOutput,"Unchanged",existing),0}output_manager_default.spinner("Updating alert rule\u2026");let response=await client.fetch(rulesItemPath(scope.teamId,ruleId),{method:"PATCH",body});return writeRuleResult(client,format.jsonOutput,"Updated",response.rule),0}catch(error){if(isAPIError(error))return handleRulesApiError(client,error,format.jsonOutput);throw error}finally{output_manager_default.stopSpinner()}}export{update as default};
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{loadEmbeddedBuilderGraphs}from"./chunk-CJPM2DXZ.js";import"./chunk-6L236MNA.js";export{loadEmbeddedBuilderGraphs};
7
+ import{createBuilderIndex,loadEmbeddedBuilderGraphs,loadEmbeddedBuilderIndex}from"./chunk-4CACOKMS.js";import"./chunk-6L236MNA.js";export{createBuilderIndex,loadEmbeddedBuilderGraphs,loadEmbeddedBuilderIndex};
@@ -0,0 +1,11 @@
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{createBuilderIndex}from"./chunk-4CACOKMS.js";import{require_cli_config}from"./chunk-BRK4OB4B.js";import{__toESM}from"./chunk-6L236MNA.js";var import_cli_config=__toESM(require_cli_config(),1);import{createHash,randomBytes}from"node:crypto";import{link,lstat,mkdir,open,readFile,rename,rm,unlink,writeFile}from"node:fs/promises";import{join}from"node:path";var LOCK_RETRY_MS=50,LOCK_WAIT_MS=5*60*1e3,LOCK_EMPTY_GRACE_MS=1e3,REMOVE_MAX_RETRIES=5,REMOVE_RETRY_DELAY_MS=100,activeInstallations=new Map;function compareKeys(a,b){return a<b?-1:a>b?1:0}function canonicalize(value){return Array.isArray(value)?value.map(canonicalize):value&&typeof value=="object"?Object.fromEntries(Object.entries(value).sort(([a],[b])=>compareKeys(a,b)).map(([key,child])=>[key,canonicalize(child)])):value}function validateGraph(graph){let{hash,...contents}=graph;if(createHash("sha256").update(JSON.stringify(canonicalize(contents))).digest("hex")!==hash)throw new Error(`The embedded vlt Builder graph for ${graph.name} is invalid.`)}async function wait(ms){await new Promise(resolve=>setTimeout(resolve,ms))}function hasErrorCode(error,code){return error instanceof Error&&"code"in error&&error.code===code}function isProcessAlive(pid){try{return process.kill(pid,0),!0}catch(error){return hasErrorCode(error,"EPERM")}}async function isLockHolderAlive(path){try{let pid=Number.parseInt((await readFile(path,"utf8")).trim(),10);return Number.isInteger(pid)&&pid>0&&isProcessAlive(pid)}catch{return!1}}async function tryStealStaleLock(path,emptyGraceMs){let first;try{first=await lstat(path)}catch{return!0}if(first.size===0&&Date.now()-first.mtimeMs<emptyGraceMs||await isLockHolderAlive(path))return!1;let second;try{second=await lstat(path)}catch{return!0}if(second.dev!==first.dev||second.ino!==first.ino||second.mtimeMs!==first.mtimeMs||second.size!==first.size)return!1;try{return await unlink(path),!0}catch{return!1}}async function acquireLock(path,{waitMs=LOCK_WAIT_MS,emptyGraceMs=LOCK_EMPTY_GRACE_MS}={}){await mkdir(join(path,".."),{recursive:!0});let startedAt=Date.now();for(;;){let tmp=`${path}.${process.pid}-${randomBytes(6).toString("hex")}`;await writeFile(tmp,`${process.pid}
8
+ `,{flag:"wx"});try{return await link(tmp,path),await unlink(tmp).catch(()=>{}),await open(path,"r")}catch(error){if(await unlink(tmp).catch(()=>{}),!hasErrorCode(error,"EEXIST"))throw error;if(await tryStealStaleLock(path,emptyGraceMs))continue;if(Date.now()-startedAt>waitMs)throw new Error(`Timed out waiting for vlt Builder lock "${path}".`);await wait(LOCK_RETRY_MS)}}}async function removeInstallation(path){await rm(path,{recursive:!0,force:!0,maxRetries:REMOVE_MAX_RETRIES,retryDelay:REMOVE_RETRY_DELAY_MS})}async function installationComplete(root,hash){try{return(await readFile(join(root,".vercel-builder-graph"),"utf8")).trim()===hash}catch{return!1}}var defaultPackageInfoFactory=async()=>{let{PackageInfoClient}=await import("@vltpkg/package-info");return options=>new PackageInfoClient(options)};async function removePackageInfoCache(packageInfo,path){try{await(await packageInfo.getRegistryClient()).cache.promise()}catch{}await removeInstallation(path).catch(()=>{})}async function reifyGraph(root,graph,packageInfoFactory){let[{install},{PackageJson},{PathScurry},createPackageInfo]=await Promise.all([import("@vltpkg/graph"),import("@vltpkg/package-json"),import("path-scurry"),packageInfoFactory??defaultPackageInfoFactory()]),packageJson=new PackageJson,packageInfoCache=join(root,".vlt-package-info-cache"),packageInfo=createPackageInfo({...graph.lockfile.options,projectRoot:root,packageJson,cache:packageInfoCache});try{await install({...graph.lockfile.options,projectRoot:root,packageJson,packageInfo,scurry:new PathScurry(root),allowScripts:":not(*)",frozenLockfile:!0,cleanInstall:!0})}finally{await removePackageInfoCache(packageInfo,packageInfoCache)}}async function ensureGraph(graph,cacheRoot,packageInfoFactory){validateGraph(graph);let root=join(cacheRoot,graph.hash),active=activeInstallations.get(root);if(active)return active;let installation=(async()=>{if(await installationComplete(root,graph.hash))return{root,installed:!1};let lockPath=join(cacheRoot,"locks",`${graph.hash}.lock`),lock=await acquireLock(lockPath),temporaryRoot;try{return await installationComplete(root,graph.hash)?{root,installed:!1}:(await removeInstallation(root),temporaryRoot=process.platform==="win32"?root:join(cacheRoot,"tmp",`${graph.hash}-${process.pid}-${randomBytes(6).toString("hex")}`),await mkdir(temporaryRoot,{recursive:!0}),await writeFile(join(temporaryRoot,"package.json"),`${JSON.stringify(graph.manifest,null,2)}
9
+ `),await writeFile(join(temporaryRoot,"vlt-lock.json"),`${JSON.stringify(graph.lockfile,null,2)}
10
+ `),await reifyGraph(temporaryRoot,graph,packageInfoFactory),await writeFile(join(temporaryRoot,".vercel-builder-graph"),`${graph.hash}
11
+ `),temporaryRoot!==root&&(await mkdir(join(root,".."),{recursive:!0}),await rename(temporaryRoot,root)),temporaryRoot=void 0,{root,installed:!0})}finally{await lock.close(),await unlink(lockPath).catch(()=>{}),temporaryRoot&&await removeInstallation(temporaryRoot)}})();activeInstallations.set(root,installation);let clearInstallation=()=>{activeInstallations.get(root)===installation&&activeInstallations.delete(root)};return installation.then(clearInstallation,clearInstallation),installation}function createVltBuilderImporter({graphs,loadGraphs=async()=>graphs,loadIndex=async()=>createBuilderIndex(await loadGraphs()),require:require2,cacheRoot=join((0,import_cli_config.getCachePath)(),"builders-vlt"),packageInfoFactory,debug=()=>{}}){let install=async(name,expected)=>{let loadedGraphs=await loadGraphs();if(loadedGraphs.schemaVersion!==1)throw new Error("The embedded vlt Builder graph index is invalid.");let graph=loadedGraphs.builders[name];if(!graph)throw new Error(`No pinned vlt graph exists for ${name}.`);if(graph.hash!==expected.hash||graph.version!==expected.version)throw new Error(`The embedded vlt Builder index does not match the graph for ${name}.`);return ensureGraph(graph,cacheRoot,packageInfoFactory)};return async function(specs,span){if(specs.size===0)return new Map;let index=await loadIndex();if(index.schemaVersion!==1)throw new Error("The embedded vlt Builder graph index is invalid.");let builders=new Map,installedNames=[],reusedNames=[],ensureMs=0,requireMs=0;return await Promise.all([...specs].map(async([spec,name])=>{let graph=index.builders[name];if(!graph)throw new Error(`No pinned vlt graph exists for ${name}.`);let ensureStartedAt=performance.now(),cachedRoot=join(cacheRoot,graph.hash),{root,installed}=await installationComplete(cachedRoot,graph.hash)?{root:cachedRoot,installed:!1}:await install(name,graph);ensureMs+=performance.now()-ensureStartedAt,(installed?installedNames:reusedNames).push(name);let pkgPath=require2.resolve(`${name}/package.json`,{paths:[root]}),pkg=JSON.parse(await readFile(pkgPath,"utf8"));if(pkg.name!==name||pkg.version!==graph.version)throw new Error(`The vlt Builder graph materialized ${String(pkg.name)}@${String(pkg.version)} instead of ${name}@${graph.version}.`);let path=require2.resolve(name,{paths:[root]});debug(`Resolved ${name}@${graph.version} with vlt from ${root}`);let requireStartedAt=performance.now(),builder=require2(path);requireMs+=performance.now()-requireStartedAt,builders.set(spec,{path,pkgPath,pkg:{...pkg,name},builder,dynamicallyInstalled:!0})})),span?.setAttributes({"builders.vlt.installed":installedNames.sort().join(","),"builders.vlt.reused":reusedNames.sort().join(","),"builders.vlt.ensureMs":String(Math.round(ensureMs)),"builders.vlt.requireMs":String(Math.round(requireMs))}),builders}}export{acquireLock,createVltBuilderImporter,removePackageInfoCache};