@vercel/cli-support 68.2.0 → 68.3.0-snapshot-4bb5562899c1

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 (207) hide show
  1. package/dist/chunks/{add-S7U4ZFBS.js → add-JGXB7TKO.js} +1 -1
  2. package/dist/chunks/{add-4BFJ2SAR.js → add-OVCKUCKJ.js} +1 -1
  3. package/dist/chunks/{add-5BQ3RSZQ.js → add-WXYF62BV.js} +1 -1
  4. package/dist/chunks/{alerts-GIT77GJG.js → alerts-XC3HSFNS.js} +1 -1
  5. package/dist/chunks/{build-RQ4ABN6Z.js → build-EOC2F5EB.js} +1 -1
  6. package/dist/chunks/{chunk-R5KBPWWS.js → chunk-237WN2MK.js} +1 -1
  7. package/dist/chunks/{chunk-42RUDD27.js → chunk-2YE7HO7L.js} +1 -1
  8. package/dist/chunks/{chunk-E6VQXHBD.js → chunk-3QTP26QS.js} +1 -1
  9. package/dist/chunks/{chunk-GPVXJI6X.js → chunk-46DSHEHL.js} +1 -1
  10. package/dist/chunks/chunk-4IJ6MNTE.js +27 -0
  11. package/dist/chunks/{chunk-HDKEES7E.js → chunk-4YGSXM2T.js} +6 -6
  12. package/dist/chunks/{chunk-4KHVAEGO.js → chunk-577HHXC7.js} +1 -1
  13. package/dist/chunks/{chunk-B7LM2BNN.js → chunk-62IAZJKT.js} +1 -1
  14. package/dist/chunks/{chunk-V2J5U5KQ.js → chunk-6E6TYIDT.js} +1 -1
  15. package/dist/chunks/{chunk-IZOKMWU5.js → chunk-6SK6TOSJ.js} +1 -1
  16. package/dist/chunks/{chunk-YIKXLWSR.js → chunk-75GXMKCF.js} +1 -1
  17. package/dist/chunks/{chunk-WRTBYD4I.js → chunk-7KWH24QW.js} +1 -1
  18. package/dist/chunks/{chunk-V7VHLSYL.js → chunk-A5JWEPUR.js} +1 -1
  19. package/dist/chunks/{chunk-ZWPASRC2.js → chunk-B6G3V7C7.js} +1 -1
  20. package/dist/chunks/{chunk-WWEUGL6W.js → chunk-BV456GI7.js} +1 -1
  21. package/dist/chunks/{chunk-TL4AEZXF.js → chunk-CVGKZ2YC.js} +1 -1
  22. package/dist/chunks/{chunk-RXHW3T4H.js → chunk-CYEMSHQ4.js} +1 -1
  23. package/dist/chunks/{chunk-N4FZIVIS.js → chunk-CZC5QGI5.js} +1 -1
  24. package/dist/chunks/{chunk-IKVQLMEI.js → chunk-DKDYIUCY.js} +1 -1
  25. package/dist/chunks/{chunk-Y45NZT7C.js → chunk-DWE2A6BG.js} +1 -1
  26. package/dist/chunks/{chunk-6O2LDFGJ.js → chunk-DXFQOBXB.js} +1 -1
  27. package/dist/chunks/{chunk-LA3VRJX7.js → chunk-DXG5ITSX.js} +1 -1
  28. package/dist/chunks/{chunk-MEF5BUJ5.js → chunk-EHA24PIE.js} +1 -1
  29. package/dist/chunks/{chunk-FSM7YM4W.js → chunk-EQQJB7MI.js} +2 -2
  30. package/dist/chunks/{chunk-76XUBFXI.js → chunk-F5HOZBY3.js} +1 -1
  31. package/dist/chunks/{chunk-EGXRQ73P.js → chunk-FA7WAHGX.js} +1 -1
  32. package/dist/chunks/{chunk-XPWLEGWA.js → chunk-FKX3DSV3.js} +1 -1
  33. package/dist/chunks/{chunk-WQBNOQUT.js → chunk-FSKAAYPW.js} +1 -1
  34. package/dist/chunks/{chunk-CRPZYLIL.js → chunk-GTZ6ASHD.js} +1 -1
  35. package/dist/chunks/{chunk-UFE4RBZV.js → chunk-HFX56MAE.js} +1 -1
  36. package/dist/chunks/{chunk-JRUL67UC.js → chunk-HPAGXT6E.js} +2 -2
  37. package/dist/chunks/{chunk-GILTW5RJ.js → chunk-HPXRESOF.js} +1 -1
  38. package/dist/chunks/{chunk-MMMX3KE2.js → chunk-I3QZSYRK.js} +1 -1
  39. package/dist/chunks/{chunk-2TUJJIYU.js → chunk-IGUBYNVC.js} +1 -1
  40. package/dist/chunks/{chunk-EPCRR72R.js → chunk-IZL4EP7R.js} +1 -1
  41. package/dist/chunks/{chunk-FMLRVSWK.js → chunk-JATIYY4H.js} +1 -1
  42. package/dist/chunks/{chunk-KNKGJD5J.js → chunk-JOKL5GT4.js} +1 -1
  43. package/dist/chunks/{chunk-LHK6B4ER.js → chunk-JOV747QS.js} +1 -1
  44. package/dist/chunks/{chunk-KDIICSD5.js → chunk-JW522BFH.js} +1 -1
  45. package/dist/chunks/{chunk-TXROE436.js → chunk-JZIVQAEF.js} +1 -1
  46. package/dist/chunks/{chunk-IKOVY76G.js → chunk-KI2DDO2M.js} +1 -1
  47. package/dist/chunks/{chunk-IMZD7QEB.js → chunk-KW7G66ZY.js} +2 -2
  48. package/dist/chunks/{chunk-Z3Z5GBKO.js → chunk-L52TWK6B.js} +1 -1
  49. package/dist/chunks/{chunk-BCOUDSOR.js → chunk-L6QX3T3V.js} +1 -1
  50. package/dist/chunks/{chunk-Q3R4HAAA.js → chunk-LM3VCTGL.js} +1 -1
  51. package/dist/chunks/chunk-LUK3POIP.js +7 -0
  52. package/dist/chunks/{chunk-3JYREVOI.js → chunk-LYWMEQRT.js} +1 -1
  53. package/dist/chunks/{chunk-XY2GGCHC.js → chunk-MECG6WLF.js} +1 -1
  54. package/dist/chunks/{chunk-ZG7A4P5U.js → chunk-MQAI6NJ5.js} +1 -1
  55. package/dist/chunks/{chunk-AGFG7WHE.js → chunk-MX66ZGZL.js} +1 -1
  56. package/dist/chunks/{chunk-Z62G57GC.js → chunk-NKACWBO3.js} +1 -1
  57. package/dist/chunks/{chunk-WA4CPW3H.js → chunk-NX4KI56H.js} +1 -1
  58. package/dist/chunks/{chunk-2XQO6C7Q.js → chunk-O2CAD56C.js} +1 -1
  59. package/dist/chunks/{chunk-Q4W3R6U2.js → chunk-O45CPVEL.js} +1 -1
  60. package/dist/chunks/{chunk-H43XHICL.js → chunk-O5SIUXE6.js} +1 -1
  61. package/dist/chunks/{chunk-4R7ICESH.js → chunk-OIHLZ4IA.js} +1 -1
  62. package/dist/chunks/chunk-OWO23BQ5.js +7 -0
  63. package/dist/chunks/{chunk-JM7KUCBM.js → chunk-OZLK3WML.js} +1 -1
  64. package/dist/chunks/{chunk-Y3ETQZSK.js → chunk-P5TIDWPF.js} +1 -1
  65. package/dist/chunks/{chunk-JK3NTR7T.js → chunk-P7QYBTLJ.js} +1 -1
  66. package/dist/chunks/{chunk-USCJFJD4.js → chunk-PB6T5FH2.js} +1 -1
  67. package/dist/chunks/{chunk-RJB5Y7M4.js → chunk-PIK7YTVD.js} +1 -1
  68. package/dist/chunks/{chunk-PG5BHJVH.js → chunk-PL2KOT4Q.js} +1 -1
  69. package/dist/chunks/{chunk-XL6PE4AA.js → chunk-Q4B2ICJM.js} +1 -1
  70. package/dist/chunks/{chunk-7EI554V5.js → chunk-QI7BWXRV.js} +1 -1
  71. package/dist/chunks/{chunk-FVMRKUWL.js → chunk-QIVM5MTP.js} +1 -1
  72. package/dist/chunks/{chunk-54W7S4EV.js → chunk-QUE6QJJL.js} +1 -1
  73. package/dist/chunks/{chunk-K4J43D5J.js → chunk-QV2PDKZY.js} +1 -1
  74. package/dist/chunks/{chunk-DRNUHJ6I.js → chunk-R2UVL57S.js} +1 -1
  75. package/dist/chunks/{chunk-YU33PPKX.js → chunk-R5GFF2NL.js} +1 -1
  76. package/dist/chunks/{chunk-Z2NPMUPM.js → chunk-RRRXKACI.js} +1 -1
  77. package/dist/chunks/{chunk-VTAH7VMY.js → chunk-S3HHQBZN.js} +1 -1
  78. package/dist/chunks/{chunk-7CLATJZX.js → chunk-S5IZAQDU.js} +1 -1
  79. package/dist/chunks/{chunk-4HHDAGMC.js → chunk-STMC2M6P.js} +1 -1
  80. package/dist/chunks/{chunk-HT3CQEAF.js → chunk-UGHEH4LA.js} +1 -1
  81. package/dist/chunks/{chunk-MTPHHAPR.js → chunk-UNAQQ5DF.js} +1 -1
  82. package/dist/chunks/{chunk-6KI5LJIB.js → chunk-USTT3CON.js} +1 -1
  83. package/dist/chunks/chunk-VL2DQ4JF.js +7 -0
  84. package/dist/chunks/{chunk-UGVOMXYR.js → chunk-VO5M6G7M.js} +1 -1
  85. package/dist/chunks/chunk-VSWANERN.js +7 -0
  86. package/dist/chunks/{chunk-SWABNAKZ.js → chunk-VSXHIE2L.js} +1 -1
  87. package/dist/chunks/chunk-X24LA5TL.js +13 -0
  88. package/dist/chunks/{chunk-A7XRIU6Z.js → chunk-XBMLLP4J.js} +1 -1
  89. package/dist/chunks/{chunk-PIGJVJNM.js → chunk-Y3VTP4NX.js} +1 -1
  90. package/dist/chunks/{chunk-EDXNAXEZ.js → chunk-YM52B2ZV.js} +1 -1
  91. package/dist/chunks/{chunk-QYAXCGZA.js → chunk-ZD3CDFPZ.js} +1 -1
  92. package/dist/chunks/{chunk-BB27VKHS.js → chunk-ZJNJZSJA.js} +1 -1
  93. package/dist/chunks/{chunk-33ETNP4M.js → chunk-ZNKDVMRD.js} +1 -1
  94. package/dist/chunks/{chunk-HJPZOKEB.js → chunk-ZTTGEYEE.js} +1 -1
  95. package/dist/chunks/{chunk-HAAKXJ4V.js → chunk-ZUCLG4ML.js} +1 -1
  96. package/dist/chunks/{chunk-KDCLHZYL.js → chunk-ZUWIJMH2.js} +1 -1
  97. package/dist/chunks/{clear-PQBUHQMO.js → clear-XM6U2LZG.js} +1 -1
  98. package/dist/chunks/{compile-vercel-config-A2DMFB2R.js → compile-vercel-config-7HTV3XDT.js} +1 -1
  99. package/dist/chunks/{config-6CSTGEZQ.js → config-H7B62N7P.js} +1 -1
  100. package/dist/chunks/{config-QQY3G5PG.js → config-WAYNH5FH.js} +1 -1
  101. package/dist/chunks/config-validator.mjs +1 -1
  102. package/dist/chunks/{connect-git-provider-MPYSAOTH.js → connect-git-provider-JZ6PATUW.js} +1 -1
  103. package/dist/chunks/{delete-CELW3NLN.js → delete-3GLZUBWG.js} +1 -1
  104. package/dist/chunks/{delete-YRATGP5Y.js → delete-HNJEM6SL.js} +1 -1
  105. package/dist/chunks/describe-L7HZBSWX.js +25 -0
  106. package/dist/chunks/{detect-projects-DHS2E3N4.js → detect-projects-FIGBZP42.js} +1 -1
  107. package/dist/chunks/{detect-services-VBKVN4A2.js → detect-services-QQWDDXR4.js} +1 -1
  108. package/dist/chunks/{disable-CG3R2VAL.js → disable-7NRBTCQH.js} +1 -1
  109. package/dist/chunks/{discard-REGFZXFU.js → discard-F7N2DAVD.js} +1 -1
  110. package/dist/chunks/{edit-YAYZEQRX.js → edit-ILM7AU2K.js} +1 -1
  111. package/dist/chunks/{edit-HHLQDVOP.js → edit-WTJMNCAV.js} +1 -1
  112. package/dist/chunks/{enable-BV3N6GEL.js → enable-3QT356KG.js} +1 -1
  113. package/dist/chunks/{export-WUPMMHSX.js → export-EUDVMKNC.js} +1 -1
  114. package/dist/chunks/{future-DJOUGRV4.js → future-VI6GFQ5S.js} +1 -1
  115. package/dist/chunks/{generate-cert-for-deploy-PZHDFX3W.js → generate-cert-for-deploy-B5SEDLVP.js} +1 -1
  116. package/dist/chunks/{group-actions-UOMO2WB2.js → group-actions-RKKQ4N3U.js} +1 -1
  117. package/dist/chunks/{image-DXZ4FKTV.js → image-4LT5EYSE.js} +1 -1
  118. package/dist/chunks/{import-builders-IUEC2WN2.js → import-builders-6RQ33NP7.js} +1 -1
  119. package/dist/chunks/{inspect-TDDHNNQS.js → inspect-4KPVCIE6.js} +1 -1
  120. package/dist/chunks/{inspect-YBEV7TZS.js → inspect-6QOQ34XR.js} +1 -1
  121. package/dist/chunks/{inspect-TAR6RBRU.js → inspect-FK3DKMSD.js} +1 -1
  122. package/dist/chunks/{inspect-YPATSOEP.js → inspect-IFCFRG5Q.js} +1 -1
  123. package/dist/chunks/{inspect-BZKFXH45.js → inspect-O7ACMOY7.js} +1 -1
  124. package/dist/chunks/{inspect-YGVXE4HR.js → inspect-YQHS73JH.js} +1 -1
  125. package/dist/chunks/{list-27R4USBV.js → list-CXRL7UNF.js} +1 -1
  126. package/dist/chunks/{list-6JXV7U6T.js → list-USYKOYNK.js} +1 -1
  127. package/dist/chunks/{list-KJGICUN5.js → list-XP5PWPPV.js} +1 -1
  128. package/dist/chunks/{list-JB32VTAB.js → list-YFYMW3PF.js} +1 -1
  129. package/dist/chunks/{login-NXBKDSGN.js → login-N6NXJVOY.js} +1 -1
  130. package/dist/chunks/{login-YCOZROC2.js → login-WJMEDLYY.js} +1 -1
  131. package/dist/chunks/{logs-W4GZLDHE.js → logs-K224ET3X.js} +1 -1
  132. package/dist/chunks/{ls-TBZHWZVO.js → ls-CZQQSAWN.js} +1 -1
  133. package/dist/chunks/{ls-KSFP2X45.js → ls-D5BBVUGJ.js} +1 -1
  134. package/dist/chunks/{ls-BPD6GAEF.js → ls-DTQQXLRH.js} +1 -1
  135. package/dist/chunks/{ls-A576SCRN.js → ls-IVDRION6.js} +1 -1
  136. package/dist/chunks/{ls-TDYTE4HM.js → ls-N7WA56X3.js} +1 -1
  137. package/dist/chunks/{ls-SSLCXR4A.js → ls-UJYVIGPU.js} +1 -1
  138. package/dist/chunks/{ls-5UEICZHX.js → ls-V5NG5442.js} +1 -1
  139. package/dist/chunks/{migrate-experimental-services-556MHJWK.js → migrate-experimental-services-NVNIIL5I.js} +1 -1
  140. package/dist/chunks/{mutate-IQQTYNNF.js → mutate-F35S2QC7.js} +1 -1
  141. package/dist/chunks/{notifications-BC2UCLDC.js → notifications-VIH6IT6O.js} +1 -1
  142. package/dist/chunks/{open-JS5WAG77.js → open-XCUBKH5P.js} +1 -1
  143. package/dist/chunks/{openapi-S6F32ZQD.js → openapi-GW2NXVYL.js} +1 -1
  144. package/dist/chunks/{permissions-3CD6EL4U.js → permissions-3JSUIIVW.js} +1 -1
  145. package/dist/chunks/{plugin-offer-RZADKNYF.js → plugin-offer-IGID5HXG.js} +1 -1
  146. package/dist/chunks/{prompt-missing-credentials-OSAV5B7N.js → prompt-missing-credentials-6XVEA3P5.js} +1 -1
  147. package/dist/chunks/{publish-ZB2Q2YSB.js → publish-GWDTWIM6.js} +1 -1
  148. package/dist/chunks/{pull-WUFIVXEG.js → pull-4TPB2B5E.js} +1 -1
  149. package/dist/chunks/{purchase-domain-if-available-YVVGT7MZ.js → purchase-domain-if-available-2A5QEP5U.js} +1 -1
  150. package/dist/chunks/{push-TO7G2R7N.js → push-OKQJWOA5.js} +1 -1
  151. package/dist/chunks/{query-EVW5T2PI.js → query-7XT3JVXP.js} +1 -1
  152. package/dist/chunks/{raw-query-7GAKEK2P.js → raw-query-K3NOPCB2.js} +1 -1
  153. package/dist/chunks/{reauthenticate-WQZ5HISG.js → reauthenticate-UNE3JLFT.js} +1 -1
  154. package/dist/chunks/{remove-AAFJR4EN.js → remove-3ZHQO7AX.js} +1 -1
  155. package/dist/chunks/{reorder-QVSTUVEQ.js → reorder-YLJYY5ZS.js} +1 -1
  156. package/dist/chunks/{reply-QSTMHPP5.js → reply-2MPQ4RQW.js} +1 -1
  157. package/dist/chunks/{resolve-MITWQMP7.js → resolve-MKHP5X4E.js} +1 -1
  158. package/dist/chunks/{resolve-agent-team-NQCRA6ER.js → resolve-agent-team-JCV6SHFD.js} +1 -1
  159. package/dist/chunks/{restore-5RLBSVYQ.js → restore-OYFENAAK.js} +1 -1
  160. package/dist/chunks/{rm-6KTCXHBG.js → rm-2QUJ4MTD.js} +1 -1
  161. package/dist/chunks/{rm-M7QVN2N6.js → rm-4YDKARD4.js} +1 -1
  162. package/dist/chunks/{rm-GXDLM3SA.js → rm-63TJ62IW.js} +1 -1
  163. package/dist/chunks/{rm-HXJWSOE4.js → rm-HBL4R7OM.js} +1 -1
  164. package/dist/chunks/{rm-P6AGSBXP.js → rm-VKTDKTBV.js} +1 -1
  165. package/dist/chunks/{rule-inspect-D3BVZZRN.js → rule-inspect-ZD4EP6N4.js} +1 -1
  166. package/dist/chunks/{schema-AJAHECZG.js → schema-6FBKE5HK.js} +1 -1
  167. package/dist/chunks/{schema-T5BO3RBL.js → schema-XS3JIJUY.js} +1 -1
  168. package/dist/chunks/{select-org-JBKKKZSN.js → select-org-33F2CJEO.js} +1 -1
  169. package/dist/chunks/{set-774P7GEL.js → set-D5IT5H2E.js} +1 -1
  170. package/dist/chunks/{set-OWNTI5SM.js → set-ZSJYTLHB.js} +1 -1
  171. package/dist/chunks/{setup-and-link-3LD4LQGE.js → setup-and-link-JACRSC6H.js} +1 -1
  172. package/dist/chunks/{skills-W45E2EWS.js → skills-VLGGLIV3.js} +1 -1
  173. package/dist/chunks/{tags-KBCTII3M.js → tags-IYGDEHIO.js} +1 -1
  174. package/dist/chunks/{types-SYUZH46V.js → types-Z5UQ5OMJ.js} +1 -1
  175. package/dist/chunks/{update-FZESOZEW.js → update-GBXFXO7R.js} +1 -1
  176. package/dist/chunks/{usage-NF6S3DAZ.js → usage-P3LBOYE7.js} +1 -1
  177. package/dist/chunks/{validate-config-MJQI5EMD.js → validate-config-CKVP2P4B.js} +1 -1
  178. package/dist/chunks/{views-YXAMSKLM.js → views-HCN2WBW7.js} +1 -1
  179. package/dist/commands/build/index.js +1 -1
  180. package/dist/commands/deploy/index.js +5 -5
  181. package/dist/commands/dev/index.js +2 -2
  182. package/dist/commands/env/index.js +1 -1
  183. package/dist/commands/link/index.js +1 -1
  184. package/dist/commands/list/index.js +4 -4
  185. package/dist/commands/project/index.js +1 -1
  186. package/dist/commands/tunnel/index.js +1 -1
  187. package/dist/commands-account.js +2 -2
  188. package/dist/commands-ai.js +98 -98
  189. package/dist/commands-blob.js +1 -1
  190. package/dist/commands-core.js +30 -24
  191. package/dist/commands-deployments.js +1 -1
  192. package/dist/commands-flags.js +7 -7
  193. package/dist/commands-integrations.js +69 -56
  194. package/dist/commands-observability.js +8 -8
  195. package/dist/commands-routing.js +5 -7
  196. package/dist/index.js +4 -4
  197. package/dist/internal-build.js +1 -1
  198. package/dist/package.json +40 -40
  199. package/dist/version.mjs +1 -1
  200. package/package.json +42 -42
  201. package/dist/chunks/chunk-ECQW2R5M.js +0 -7
  202. package/dist/chunks/chunk-JJTAADC5.js +0 -7
  203. package/dist/chunks/chunk-NFBFXM6X.js +0 -7
  204. package/dist/chunks/chunk-R6LM3MBK.js +0 -13
  205. package/dist/chunks/chunk-RBM4KOQ2.js +0 -27
  206. package/dist/chunks/chunk-ZSJU5MJP.js +0 -7
  207. package/dist/chunks/describe-Q5D5GYVG.js +0 -25
@@ -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{getContextName}from"./chunk-CRPZYLIL.js";import{DeploymentNotFound,DeploymentPermissionDenied,InvalidDeploymentId,isAPIError}from"./chunk-MTPHHAPR.js";async function getAliases(client,deploymentId,next,limit=20){let aliasUrl=`/v3/now/aliases?limit=${limit}`;next&&(aliasUrl+=`&until=${next}`);let to=deploymentId?`/now/deployments/${deploymentId}/aliases`:aliasUrl;try{return await client.fetch(to)}catch(err){if(isAPIError(err)){let contextName=await getContextName(client,{allowOwnerLookupFallback:!0});if(err.status===404)throw new DeploymentNotFound({id:deploymentId,context:contextName});if(err.status===403&&deploymentId)throw new DeploymentPermissionDenied(deploymentId,contextName);if(err.status===400&&err.message.includes("`id`")&&deploymentId)throw new InvalidDeploymentId(deploymentId)}throw err}}export{getAliases};
7
+ import{getContextName}from"./chunk-GTZ6ASHD.js";import{DeploymentNotFound,DeploymentPermissionDenied,InvalidDeploymentId,isAPIError}from"./chunk-UNAQQ5DF.js";async function getAliases(client,deploymentId,next,limit=20){let aliasUrl=`/v3/now/aliases?limit=${limit}`;next&&(aliasUrl+=`&until=${next}`);let to=deploymentId?`/now/deployments/${deploymentId}/aliases`:aliasUrl;try{return await client.fetch(to)}catch(err){if(isAPIError(err)){let contextName=await getContextName(client,{allowOwnerLookupFallback:!0});if(err.status===404)throw new DeploymentNotFound({id:deploymentId,context:contextName});if(err.status===403&&deploymentId)throw new DeploymentPermissionDenied(deploymentId,contextName);if(err.status===400&&err.message.includes("`id`")&&deploymentId)throw new InvalidDeploymentId(deploymentId)}throw err}}export{getAliases};
@@ -0,0 +1,7 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __dirname_ } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __dirname_(__filename);
7
+ import{printProjectNotFoundError}from"./chunk-O45CPVEL.js";import{detectExplicitScope}from"./chunk-GTZ6ASHD.js";import{getLinkedProject}from"./chunk-4YGSXM2T.js";import{omitGlobalFlagsFromArgs}from"./chunk-3QTP26QS.js";function getInvokingCommandArgsFromArgv(argv){let args=omitGlobalFlagsFromArgs(argv.slice(2)),positionals=[];for(let arg of args){if(arg.startsWith("-"))break;positionals.push(arg)}return positionals}async function resolveProjectContext({client,cwd=client.cwd,projectNameOrId,projectAccountId,commandName="",projectOptionName,projectNotFoundHandling="report",skipOwnerLookup,allowOwnerLookupFallback,allowProjectLookupFallback,quiet,allowConfigExecution}){let context=await getLinkedProject(client,{cwd,projectName:projectNameOrId,projectAccountId,projectNameIsExplicit:!!projectNameOrId,scopeIsExplicit:detectExplicitScope(client),skipOwnerLookup,allowOwnerLookupFallback,allowProjectLookupFallback,quiet,allowConfigExecution});return context.status==="not_linked"&&projectNameOrId&&projectNotFoundHandling==="report"?(await printProjectNotFoundError(client,projectNameOrId,commandName||getInvokingCommandArgsFromArgv(client.argv),context.orgId,{projectOptionName}),{status:"error",exitCode:1,orgId:context.orgId}):context}export{resolveProjectContext};
@@ -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{canPrompt}from"./chunk-IQ7FPAI4.js";import{require_lib}from"./chunk-HDKEES7E.js";import{AGENT_REASON,AGENT_STATUS,outputActionRequired}from"./chunk-E6VQXHBD.js";import{humanizePath}from"./chunk-MTPHHAPR.js";import{output_manager_default}from"./chunk-RIXTYUYN.js";import{require_source}from"./chunk-UJ7YUIEJ.js";import{__toESM}from"./chunk-NBPLUP7C.js";var import_fs_extra=__toESM(require_lib(),1),import_chalk=__toESM(require_source(),1);import{homedir}from"os";import{resolve,sep}from"path";import{realpath as realpathCallback}from"node:fs";import*as fs from"node:fs/promises";import{promisify}from"node:util";var realpathInJavaScript=promisify(realpathCallback);async function validateRootDirectory(cwd,path,errorSuffix=""){let pathStat=await(0,import_fs_extra.lstat)(path).catch(()=>null),suffix=errorSuffix?` ${errorSuffix}`:"";return pathStat?pathStat.isDirectory()?await resolvesInside(cwd,path)?!0:(output_manager_default.error(`The provided path ${import_chalk.default.cyan(`\u201C${humanizePath(path)}\u201D`)} is outside of the project.${suffix}`),!1):(output_manager_default.error(`The provided path ${import_chalk.default.cyan(`\u201C${humanizePath(path)}\u201D`)} is a file, but expected a directory.${suffix}`),!1):(output_manager_default.error(`The provided path ${import_chalk.default.cyan(`\u201C${humanizePath(path)}\u201D`)} does not exist.${suffix}`),!1)}async function validatePaths(client,paths,{allowFiles=!1}={}){if(paths.length>1)return output_manager_default.error("Can't deploy more than one path."),{valid:!1,exitCode:1};let path=paths[0],pathStat=await(0,import_fs_extra.lstat)(path).catch(()=>null);if(!pathStat)return output_manager_default.error(`Could not find ${import_chalk.default.cyan(`\u201C${humanizePath(path)}\u201D`)}`),{valid:!1,exitCode:1};let isFile=pathStat.isFile();if(!pathStat.isDirectory()&&!(allowFiles&&isFile))return output_manager_default.fatal(allowFiles?"Deploy a regular file or directory. Symbolic links and special files are not supported as deployment paths.":"This command requires a directory. Use `vercel <file>` to deploy a single file."),{valid:!1,exitCode:1};let refusal=await confirmHomeDirectory(client,path);return refusal||{valid:!0,path,isFile}}async function validateUploadRoot(client,path,repoRoot){if(!repoRoot||repoRoot===path)return{valid:!0,path};let[resolvedRoot,resolvedPath]=await Promise.all([resolveLinks(repoRoot),resolveLinks(path)]);return resolvedRoot===resolvedPath?{valid:!0,path:repoRoot}:rootContains(repoRoot,path,resolvedRoot,resolvedPath)?await confirmHomeDirectory(client,repoRoot,`The repository link ${humanizePath(resolve(repoRoot,".vercel","repo.json"))} makes your home directory the directory to deploy.`)??{valid:!0,path:repoRoot}:(output_manager_default.error(repoRootOutsideMessage("deploy",path,repoRoot)),{valid:!1,exitCode:1})}async function repoRootContains(repoRoot,path){let[resolvedRoot,resolvedPath]=await Promise.all([resolveLinks(repoRoot),resolveLinks(path)]);return rootContains(repoRoot,path,resolvedRoot,resolvedPath)}function rootContains(repoRoot,path,resolvedRoot,resolvedPath){return isInside(repoRoot,path)||isInside(resolvedRoot,resolvedPath)}function repoRootOutsideMessage(action,path,repoRoot){return`Can't ${action} ${humanizePath(path)}. Git reports the repository root ${humanizePath(repoRoot)}, which does not contain this directory. Check \`core.worktree\` in the Git configuration and the \`GIT_WORK_TREE\` environment variable.`}async function resolvesInside(directory,path){let[base,target]=await Promise.all([resolveExisting(directory),resolveExisting(path)]);return base!==null&&target!==null&&isInside(base,target)}async function resolvesToDirectoryInside(directory,path){return!!(await fs.stat(path).catch(()=>null))?.isDirectory()&&await resolvesInside(directory,path)}async function resolveExisting(path){try{return await fs.realpath(path)}catch{return realpathInJavaScript(path).catch(()=>null)}}async function confirmHomeDirectory(client,path,cause){if(!await isHomeDirectory(path))return null;if(!canPrompt(client)){let message=`Can't deploy your home directory without interactive confirmation. ${cause?`${cause} Run`:"Run from your project directory, or run"} in a terminal to confirm deploying your home directory.`;return outputActionRequired(client,{status:AGENT_STATUS.ACTION_REQUIRED,reason:AGENT_REASON.INTERACTIVE_CONFIRMATION_REQUIRED,message,userActionRequired:!0},2),output_manager_default.error(message),{valid:!1,exitCode:2}}return cause&&output_manager_default.warning(cause),await client.input.confirm("You are deploying your home directory. Do you want to continue?",!1)?null:(output_manager_default.print(`Canceled
7
+ import{canPrompt}from"./chunk-IQ7FPAI4.js";import{require_lib}from"./chunk-4YGSXM2T.js";import{AGENT_REASON,AGENT_STATUS,outputActionRequired}from"./chunk-3QTP26QS.js";import{humanizePath}from"./chunk-UNAQQ5DF.js";import{output_manager_default}from"./chunk-RIXTYUYN.js";import{require_source}from"./chunk-UJ7YUIEJ.js";import{__toESM}from"./chunk-NBPLUP7C.js";var import_fs_extra=__toESM(require_lib(),1),import_chalk=__toESM(require_source(),1);import{homedir}from"os";import{resolve,sep}from"path";import{realpath as realpathCallback}from"node:fs";import*as fs from"node:fs/promises";import{promisify}from"node:util";var realpathInJavaScript=promisify(realpathCallback);async function validateRootDirectory(cwd,path,errorSuffix=""){let pathStat=await(0,import_fs_extra.lstat)(path).catch(()=>null),suffix=errorSuffix?` ${errorSuffix}`:"";return pathStat?pathStat.isDirectory()?await resolvesInside(cwd,path)?!0:(output_manager_default.error(`The provided path ${import_chalk.default.cyan(`\u201C${humanizePath(path)}\u201D`)} is outside of the project.${suffix}`),!1):(output_manager_default.error(`The provided path ${import_chalk.default.cyan(`\u201C${humanizePath(path)}\u201D`)} is a file, but expected a directory.${suffix}`),!1):(output_manager_default.error(`The provided path ${import_chalk.default.cyan(`\u201C${humanizePath(path)}\u201D`)} does not exist.${suffix}`),!1)}async function validatePaths(client,paths,{allowFiles=!1}={}){if(paths.length>1)return output_manager_default.error("Can't deploy more than one path."),{valid:!1,exitCode:1};let path=paths[0],pathStat=await(0,import_fs_extra.lstat)(path).catch(()=>null);if(!pathStat)return output_manager_default.error(`Could not find ${import_chalk.default.cyan(`\u201C${humanizePath(path)}\u201D`)}`),{valid:!1,exitCode:1};let isFile=pathStat.isFile();if(!pathStat.isDirectory()&&!(allowFiles&&isFile))return output_manager_default.fatal(allowFiles?"Deploy a regular file or directory. Symbolic links and special files are not supported as deployment paths.":"This command requires a directory. Use `vercel <file>` to deploy a single file."),{valid:!1,exitCode:1};let refusal=await confirmHomeDirectory(client,path);return refusal||{valid:!0,path,isFile}}async function validateUploadRoot(client,path,repoRoot){if(!repoRoot||repoRoot===path)return{valid:!0,path};let[resolvedRoot,resolvedPath]=await Promise.all([resolveLinks(repoRoot),resolveLinks(path)]);return resolvedRoot===resolvedPath?{valid:!0,path:repoRoot}:rootContains(repoRoot,path,resolvedRoot,resolvedPath)?await confirmHomeDirectory(client,repoRoot,`The repository link ${humanizePath(resolve(repoRoot,".vercel","repo.json"))} makes your home directory the directory to deploy.`)??{valid:!0,path:repoRoot}:(output_manager_default.error(repoRootOutsideMessage("deploy",path,repoRoot)),{valid:!1,exitCode:1})}async function repoRootContains(repoRoot,path){let[resolvedRoot,resolvedPath]=await Promise.all([resolveLinks(repoRoot),resolveLinks(path)]);return rootContains(repoRoot,path,resolvedRoot,resolvedPath)}function rootContains(repoRoot,path,resolvedRoot,resolvedPath){return isInside(repoRoot,path)||isInside(resolvedRoot,resolvedPath)}function repoRootOutsideMessage(action,path,repoRoot){return`Can't ${action} ${humanizePath(path)}. Git reports the repository root ${humanizePath(repoRoot)}, which does not contain this directory. Check \`core.worktree\` in the Git configuration and the \`GIT_WORK_TREE\` environment variable.`}async function resolvesInside(directory,path){let[base,target]=await Promise.all([resolveExisting(directory),resolveExisting(path)]);return base!==null&&target!==null&&isInside(base,target)}async function resolvesToDirectoryInside(directory,path){return!!(await fs.stat(path).catch(()=>null))?.isDirectory()&&await resolvesInside(directory,path)}async function resolveExisting(path){try{return await fs.realpath(path)}catch{return realpathInJavaScript(path).catch(()=>null)}}async function confirmHomeDirectory(client,path,cause){if(!await isHomeDirectory(path))return null;if(!canPrompt(client)){let message=`Can't deploy your home directory without interactive confirmation. ${cause?`${cause} Run`:"Run from your project directory, or run"} in a terminal to confirm deploying your home directory.`;return outputActionRequired(client,{status:AGENT_STATUS.ACTION_REQUIRED,reason:AGENT_REASON.INTERACTIVE_CONFIRMATION_REQUIRED,message,userActionRequired:!0},2),output_manager_default.error(message),{valid:!1,exitCode:2}}return cause&&output_manager_default.warning(cause),await client.input.confirm("You are deploying your home directory. Do you want to continue?",!1)?null:(output_manager_default.print(`Canceled
8
8
  `),{valid:!1,exitCode:0})}async function isHomeDirectory(path){let home=homedir();return path===home||await resolveLinks(path)===await resolveLinks(home)}function resolveLinks(path){return fs.realpath(path).catch(()=>path)}function isInside(directory,path){let base=resolve(directory),target=resolve(path);return target===base||target.startsWith(base.endsWith(sep)?base:base+sep)}export{validateRootDirectory,validatePaths,validateUploadRoot,repoRootContains,repoRootOutsideMessage,resolvesInside,resolvesToDirectoryInside};