@vercel/cli-support 68.2.0 → 68.3.0-snapshot-24d117b8c08a

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-4BFJ2SAR.js → add-K63YQ4KL.js} +1 -1
  2. package/dist/chunks/{add-5BQ3RSZQ.js → add-U4WWFW6A.js} +1 -1
  3. package/dist/chunks/{add-S7U4ZFBS.js → add-UC3PDROQ.js} +1 -1
  4. package/dist/chunks/{alerts-GIT77GJG.js → alerts-TCS56TZU.js} +1 -1
  5. package/dist/chunks/{build-RQ4ABN6Z.js → build-62AFJDRZ.js} +1 -1
  6. package/dist/chunks/{chunk-R5KBPWWS.js → chunk-237WN2MK.js} +1 -1
  7. package/dist/chunks/{chunk-FSM7YM4W.js → chunk-26HAXM56.js} +2 -2
  8. package/dist/chunks/{chunk-UFE4RBZV.js → chunk-2A7TTZJ4.js} +1 -1
  9. package/dist/chunks/{chunk-PIGJVJNM.js → chunk-2I4XYW65.js} +1 -1
  10. package/dist/chunks/{chunk-E6VQXHBD.js → chunk-3QTP26QS.js} +1 -1
  11. package/dist/chunks/{chunk-KNKGJD5J.js → chunk-3RPOSTE4.js} +1 -1
  12. package/dist/chunks/{chunk-GPVXJI6X.js → chunk-46DSHEHL.js} +1 -1
  13. package/dist/chunks/{chunk-3JYREVOI.js → chunk-4KEWLHYF.js} +1 -1
  14. package/dist/chunks/{chunk-KDIICSD5.js → chunk-4U2H6XBH.js} +1 -1
  15. package/dist/chunks/{chunk-K4J43D5J.js → chunk-55EEFTI7.js} +1 -1
  16. package/dist/chunks/{chunk-ZWPASRC2.js → chunk-5KTOBHJR.js} +1 -1
  17. package/dist/chunks/{chunk-IZOKMWU5.js → chunk-6SK6TOSJ.js} +1 -1
  18. package/dist/chunks/{chunk-7CLATJZX.js → chunk-7VFMF2X2.js} +1 -1
  19. package/dist/chunks/{chunk-V7VHLSYL.js → chunk-A5JWEPUR.js} +1 -1
  20. package/dist/chunks/{chunk-N4FZIVIS.js → chunk-AHAT5QYP.js} +1 -1
  21. package/dist/chunks/{chunk-JM7KUCBM.js → chunk-ALRMGYWE.js} +1 -1
  22. package/dist/chunks/{chunk-LHK6B4ER.js → chunk-BAHTCIMJ.js} +1 -1
  23. package/dist/chunks/{chunk-WWEUGL6W.js → chunk-BV456GI7.js} +1 -1
  24. package/dist/chunks/chunk-BVHXBPKR.js +7 -0
  25. package/dist/chunks/{chunk-B7LM2BNN.js → chunk-CEJO447T.js} +1 -1
  26. package/dist/chunks/{chunk-H43XHICL.js → chunk-CM2HJYDA.js} +1 -1
  27. package/dist/chunks/{chunk-54W7S4EV.js → chunk-CMAZDLNJ.js} +1 -1
  28. package/dist/chunks/{chunk-TL4AEZXF.js → chunk-CVGKZ2YC.js} +1 -1
  29. package/dist/chunks/{chunk-6KI5LJIB.js → chunk-CYBPBS37.js} +1 -1
  30. package/dist/chunks/chunk-DBPL6EVR.js +27 -0
  31. package/dist/chunks/chunk-DFZRZPCJ.js +13 -0
  32. package/dist/chunks/{chunk-Y45NZT7C.js → chunk-DWE2A6BG.js} +1 -1
  33. package/dist/chunks/{chunk-6O2LDFGJ.js → chunk-DXFQOBXB.js} +1 -1
  34. package/dist/chunks/{chunk-JRUL67UC.js → chunk-E7R5SQDA.js} +2 -2
  35. package/dist/chunks/{chunk-ZG7A4P5U.js → chunk-EEH7JGGG.js} +1 -1
  36. package/dist/chunks/{chunk-MEF5BUJ5.js → chunk-EHA24PIE.js} +1 -1
  37. package/dist/chunks/{chunk-76XUBFXI.js → chunk-EYSD2ULB.js} +1 -1
  38. package/dist/chunks/chunk-FJPYSIUV.js +7 -0
  39. package/dist/chunks/{chunk-HJPZOKEB.js → chunk-GEBGZ3EG.js} +1 -1
  40. package/dist/chunks/{chunk-WQBNOQUT.js → chunk-GGRFONYT.js} +1 -1
  41. package/dist/chunks/{chunk-CRPZYLIL.js → chunk-H3HSH5FW.js} +1 -1
  42. package/dist/chunks/{chunk-HDKEES7E.js → chunk-H4BQDKOU.js} +6 -6
  43. package/dist/chunks/{chunk-GILTW5RJ.js → chunk-HPXRESOF.js} +1 -1
  44. package/dist/chunks/{chunk-Q4W3R6U2.js → chunk-HPYP2LC3.js} +1 -1
  45. package/dist/chunks/{chunk-MMMX3KE2.js → chunk-I3QZSYRK.js} +1 -1
  46. package/dist/chunks/{chunk-Z3Z5GBKO.js → chunk-IFSD556O.js} +1 -1
  47. package/dist/chunks/{chunk-FMLRVSWK.js → chunk-ILX4D2PP.js} +1 -1
  48. package/dist/chunks/{chunk-SWABNAKZ.js → chunk-J3DYBDSK.js} +1 -1
  49. package/dist/chunks/{chunk-XL6PE4AA.js → chunk-JJ4DOHP4.js} +1 -1
  50. package/dist/chunks/{chunk-WRTBYD4I.js → chunk-JMJ2FVX3.js} +1 -1
  51. package/dist/chunks/{chunk-IKVQLMEI.js → chunk-KVX64ZHU.js} +1 -1
  52. package/dist/chunks/{chunk-Q3R4HAAA.js → chunk-M345GUX4.js} +1 -1
  53. package/dist/chunks/{chunk-RXHW3T4H.js → chunk-MADCVSMW.js} +1 -1
  54. package/dist/chunks/{chunk-BB27VKHS.js → chunk-MUCHLKSG.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-O5RWOOY4.js +7 -0
  59. package/dist/chunks/{chunk-2TUJJIYU.js → chunk-OBSOJQH7.js} +1 -1
  60. package/dist/chunks/{chunk-TXROE436.js → chunk-OIIOMP67.js} +1 -1
  61. package/dist/chunks/{chunk-Y3ETQZSK.js → chunk-P5TIDWPF.js} +1 -1
  62. package/dist/chunks/{chunk-JK3NTR7T.js → chunk-P7QYBTLJ.js} +1 -1
  63. package/dist/chunks/{chunk-PG5BHJVH.js → chunk-PL2KOT4Q.js} +1 -1
  64. package/dist/chunks/{chunk-A7XRIU6Z.js → chunk-PUNGYINC.js} +1 -1
  65. package/dist/chunks/{chunk-XPWLEGWA.js → chunk-PVXBOZ45.js} +1 -1
  66. package/dist/chunks/{chunk-XY2GGCHC.js → chunk-Q45WRPBA.js} +1 -1
  67. package/dist/chunks/{chunk-2XQO6C7Q.js → chunk-Q4WSTT5G.js} +1 -1
  68. package/dist/chunks/{chunk-7EI554V5.js → chunk-QI7BWXRV.js} +1 -1
  69. package/dist/chunks/{chunk-FVMRKUWL.js → chunk-QIVM5MTP.js} +1 -1
  70. package/dist/chunks/{chunk-HT3CQEAF.js → chunk-R3BZ4IDA.js} +1 -1
  71. package/dist/chunks/{chunk-YU33PPKX.js → chunk-R5GFF2NL.js} +1 -1
  72. package/dist/chunks/{chunk-Z2NPMUPM.js → chunk-RRRXKACI.js} +1 -1
  73. package/dist/chunks/{chunk-USCJFJD4.js → chunk-S5TWKTHV.js} +1 -1
  74. package/dist/chunks/{chunk-DRNUHJ6I.js → chunk-T2DXWRDM.js} +1 -1
  75. package/dist/chunks/{chunk-VTAH7VMY.js → chunk-T52PWZNS.js} +1 -1
  76. package/dist/chunks/{chunk-BCOUDSOR.js → chunk-TAIREW55.js} +1 -1
  77. package/dist/chunks/{chunk-IMZD7QEB.js → chunk-UITNWLE7.js} +2 -2
  78. package/dist/chunks/{chunk-MTPHHAPR.js → chunk-UNAQQ5DF.js} +1 -1
  79. package/dist/chunks/{chunk-EPCRR72R.js → chunk-VNTREJRW.js} +1 -1
  80. package/dist/chunks/{chunk-UGVOMXYR.js → chunk-VO5M6G7M.js} +1 -1
  81. package/dist/chunks/chunk-VSWANERN.js +7 -0
  82. package/dist/chunks/{chunk-4KHVAEGO.js → chunk-VTA5KIL5.js} +1 -1
  83. package/dist/chunks/{chunk-EGXRQ73P.js → chunk-VZX47KDU.js} +1 -1
  84. package/dist/chunks/{chunk-YIKXLWSR.js → chunk-WBYRQHSP.js} +1 -1
  85. package/dist/chunks/{chunk-V2J5U5KQ.js → chunk-WYSNAEMX.js} +1 -1
  86. package/dist/chunks/{chunk-RJB5Y7M4.js → chunk-XCEO6325.js} +1 -1
  87. package/dist/chunks/{chunk-LA3VRJX7.js → chunk-XRCHG3IF.js} +1 -1
  88. package/dist/chunks/{chunk-4R7ICESH.js → chunk-Y7JAJKAJ.js} +1 -1
  89. package/dist/chunks/{chunk-4HHDAGMC.js → chunk-YBE2G3LP.js} +1 -1
  90. package/dist/chunks/{chunk-EDXNAXEZ.js → chunk-YM52B2ZV.js} +1 -1
  91. package/dist/chunks/{chunk-42RUDD27.js → chunk-Z3QJKD32.js} +1 -1
  92. package/dist/chunks/{chunk-QYAXCGZA.js → chunk-ZD3CDFPZ.js} +1 -1
  93. package/dist/chunks/{chunk-IKOVY76G.js → chunk-ZJTN7U74.js} +1 -1
  94. package/dist/chunks/{chunk-33ETNP4M.js → chunk-ZNKDVMRD.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-JOCTJFHZ.js} +1 -1
  98. package/dist/chunks/{compile-vercel-config-A2DMFB2R.js → compile-vercel-config-H5MLKZB5.js} +1 -1
  99. package/dist/chunks/{config-QQY3G5PG.js → config-4IL23FDT.js} +1 -1
  100. package/dist/chunks/{config-6CSTGEZQ.js → config-WY56RPZJ.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-PWULSIJU.js} +1 -1
  104. package/dist/chunks/{delete-YRATGP5Y.js → delete-SN7E5MTV.js} +1 -1
  105. package/dist/chunks/describe-II22LJP3.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-VIJ4XLRR.js} +1 -1
  108. package/dist/chunks/{disable-CG3R2VAL.js → disable-7PWT4ILT.js} +1 -1
  109. package/dist/chunks/{discard-REGFZXFU.js → discard-GL42ZPA7.js} +1 -1
  110. package/dist/chunks/{edit-HHLQDVOP.js → edit-JCJDO73Y.js} +1 -1
  111. package/dist/chunks/{edit-YAYZEQRX.js → edit-SJH6BCRY.js} +1 -1
  112. package/dist/chunks/{enable-BV3N6GEL.js → enable-G7RZ5VV4.js} +1 -1
  113. package/dist/chunks/{export-WUPMMHSX.js → export-CUKYNL3C.js} +1 -1
  114. package/dist/chunks/{future-DJOUGRV4.js → future-PAAXGZTN.js} +1 -1
  115. package/dist/chunks/{generate-cert-for-deploy-PZHDFX3W.js → generate-cert-for-deploy-ZAMSUCFF.js} +1 -1
  116. package/dist/chunks/{group-actions-UOMO2WB2.js → group-actions-O76SXUUJ.js} +1 -1
  117. package/dist/chunks/{image-DXZ4FKTV.js → image-QDQO36EW.js} +1 -1
  118. package/dist/chunks/{import-builders-IUEC2WN2.js → import-builders-EFVZQWHA.js} +1 -1
  119. package/dist/chunks/{inspect-BZKFXH45.js → inspect-AGC7W3OS.js} +1 -1
  120. package/dist/chunks/{inspect-YBEV7TZS.js → inspect-BSLSCH4L.js} +1 -1
  121. package/dist/chunks/{inspect-YPATSOEP.js → inspect-KPAFRFZA.js} +1 -1
  122. package/dist/chunks/{inspect-TAR6RBRU.js → inspect-XXQ7X2W7.js} +1 -1
  123. package/dist/chunks/{inspect-TDDHNNQS.js → inspect-XYVW6J2E.js} +1 -1
  124. package/dist/chunks/{inspect-YGVXE4HR.js → inspect-YQHS73JH.js} +1 -1
  125. package/dist/chunks/{list-KJGICUN5.js → list-2KYHARKO.js} +1 -1
  126. package/dist/chunks/{list-27R4USBV.js → list-CXRL7UNF.js} +1 -1
  127. package/dist/chunks/{list-6JXV7U6T.js → list-RYYPFUX4.js} +1 -1
  128. package/dist/chunks/{list-JB32VTAB.js → list-X6EO34N6.js} +1 -1
  129. package/dist/chunks/{login-NXBKDSGN.js → login-6VVAMBOA.js} +1 -1
  130. package/dist/chunks/{login-YCOZROC2.js → login-IPMI6XEL.js} +1 -1
  131. package/dist/chunks/{logs-W4GZLDHE.js → logs-UQPPRXTB.js} +1 -1
  132. package/dist/chunks/{ls-TBZHWZVO.js → ls-5SH4HSZ5.js} +1 -1
  133. package/dist/chunks/{ls-SSLCXR4A.js → ls-6GPP7PTK.js} +1 -1
  134. package/dist/chunks/{ls-BPD6GAEF.js → ls-FR5KWP4I.js} +1 -1
  135. package/dist/chunks/{ls-KSFP2X45.js → ls-KAPV4POT.js} +1 -1
  136. package/dist/chunks/{ls-TDYTE4HM.js → ls-KITNPWDE.js} +1 -1
  137. package/dist/chunks/{ls-A576SCRN.js → ls-QQ3F6OJ3.js} +1 -1
  138. package/dist/chunks/{ls-5UEICZHX.js → ls-WRJ6GDUR.js} +1 -1
  139. package/dist/chunks/{migrate-experimental-services-556MHJWK.js → migrate-experimental-services-BORV5SUM.js} +1 -1
  140. package/dist/chunks/{mutate-IQQTYNNF.js → mutate-TER55VAA.js} +1 -1
  141. package/dist/chunks/{notifications-BC2UCLDC.js → notifications-SUB7P4EX.js} +1 -1
  142. package/dist/chunks/{open-JS5WAG77.js → open-GANU5JWA.js} +1 -1
  143. package/dist/chunks/{openapi-S6F32ZQD.js → openapi-GW2NXVYL.js} +1 -1
  144. package/dist/chunks/{permissions-3CD6EL4U.js → permissions-V4UHHOV2.js} +1 -1
  145. package/dist/chunks/{plugin-offer-RZADKNYF.js → plugin-offer-SFFLTT66.js} +1 -1
  146. package/dist/chunks/{prompt-missing-credentials-OSAV5B7N.js → prompt-missing-credentials-CVIIFJ6S.js} +1 -1
  147. package/dist/chunks/{publish-ZB2Q2YSB.js → publish-MV3RCHJM.js} +1 -1
  148. package/dist/chunks/{pull-WUFIVXEG.js → pull-JGTNLAF3.js} +1 -1
  149. package/dist/chunks/{purchase-domain-if-available-YVVGT7MZ.js → purchase-domain-if-available-OO533ARB.js} +1 -1
  150. package/dist/chunks/{push-TO7G2R7N.js → push-FJZEB3K2.js} +1 -1
  151. package/dist/chunks/{query-EVW5T2PI.js → query-3HB7DLVE.js} +1 -1
  152. package/dist/chunks/{raw-query-7GAKEK2P.js → raw-query-PNZO3D3S.js} +1 -1
  153. package/dist/chunks/{reauthenticate-WQZ5HISG.js → reauthenticate-6TPAZX5R.js} +1 -1
  154. package/dist/chunks/{remove-AAFJR4EN.js → remove-76ZLLEHO.js} +1 -1
  155. package/dist/chunks/{reorder-QVSTUVEQ.js → reorder-ZZRQMWQO.js} +1 -1
  156. package/dist/chunks/{reply-QSTMHPP5.js → reply-LWX3Q77Y.js} +1 -1
  157. package/dist/chunks/{resolve-MITWQMP7.js → resolve-K72DNP5D.js} +1 -1
  158. package/dist/chunks/{resolve-agent-team-NQCRA6ER.js → resolve-agent-team-75QSXK3C.js} +1 -1
  159. package/dist/chunks/{restore-5RLBSVYQ.js → restore-CMVVFIY3.js} +1 -1
  160. package/dist/chunks/{rm-P6AGSBXP.js → rm-4W2E3LPX.js} +1 -1
  161. package/dist/chunks/{rm-GXDLM3SA.js → rm-7Q6CRYDP.js} +1 -1
  162. package/dist/chunks/{rm-HXJWSOE4.js → rm-KGIBQFXK.js} +1 -1
  163. package/dist/chunks/{rm-6KTCXHBG.js → rm-MRH5RXBQ.js} +1 -1
  164. package/dist/chunks/{rm-M7QVN2N6.js → rm-TELAXNYE.js} +1 -1
  165. package/dist/chunks/{rule-inspect-D3BVZZRN.js → rule-inspect-2Z7XXWVB.js} +1 -1
  166. package/dist/chunks/{schema-T5BO3RBL.js → schema-5OJQWJJ6.js} +1 -1
  167. package/dist/chunks/{schema-AJAHECZG.js → schema-QAYQPSHG.js} +1 -1
  168. package/dist/chunks/{select-org-JBKKKZSN.js → select-org-CRZAHEXQ.js} +1 -1
  169. package/dist/chunks/{set-774P7GEL.js → set-AQP6ILFQ.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-EFNAHZR4.js} +1 -1
  172. package/dist/chunks/{skills-W45E2EWS.js → skills-MTZCIW44.js} +2 -2
  173. package/dist/chunks/{tags-KBCTII3M.js → tags-EHN3GJUF.js} +1 -1
  174. package/dist/chunks/{types-SYUZH46V.js → types-Z5UQ5OMJ.js} +1 -1
  175. package/dist/chunks/{update-FZESOZEW.js → update-2CVWFAVE.js} +1 -1
  176. package/dist/chunks/{usage-NF6S3DAZ.js → usage-LE5BHDUT.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-AKV4QHMO.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 +103 -103
  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 +44 -34
  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
@@ -1,7 +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{require_dist as require_dist2}from"./chunk-Y3ETQZSK.js";import{require_dist}from"./chunk-MN2F4NPH.js";import{require_types}from"./chunk-PH2MLBQO.js";import{require_build_utils}from"./chunk-BVFFSUG3.js";import{__commonJS,__require,__toESM}from"./chunk-NBPLUP7C.js";var require_constants=__commonJS({"../runtimes/dist/constants.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),constants_exports={};__export(constants_exports,{BUILDER_RUNTIMES:()=>BUILDER_RUNTIMES,CONTAINER_ENTRYPOINT_CANDIDATES:()=>CONTAINER_ENTRYPOINT_CANDIDATES,ENTRYPOINT_EXTENSIONS:()=>ENTRYPOINT_EXTENSIONS,ROUTE_OWNING_BUILDERS:()=>ROUTE_OWNING_BUILDERS,RUNTIME_BUILDERS:()=>RUNTIME_BUILDERS,RUNTIME_MANIFESTS:()=>RUNTIME_MANIFESTS,STATIC_BUILDERS:()=>STATIC_BUILDERS});module.exports=__toCommonJS(constants_exports);var RUNTIME_BUILDERS={node:"@vercel/backends",python:"@vercel/python",go:"@vercel/go",rust:"@vercel/rust",ruby:"@vercel/ruby",container:"@vercel/container"},RUNTIME_MANIFESTS={node:["package.json"],python:["pyproject.toml","requirements.txt","Pipfile","pylock.yml","uv.lock","setup.py"],go:["go.mod"],ruby:["Gemfile"],rust:["Cargo.toml"]},ENTRYPOINT_EXTENSIONS={".ts":"node",".mts":"node",".js":"node",".mjs":"node",".cjs":"node",".py":"python",".go":"go",".rs":"rust",".rb":"ruby",".ru":"ruby"},BUILDER_RUNTIMES={...Object.fromEntries(Object.entries(RUNTIME_BUILDERS).map(([runtime,builder])=>[builder,runtime])),"@vercel/node":"node","@vercel/next":"node","@vercel/remix-builder":"node","@vercel/redwood":"node","@vercel/hydrogen":"node","@vercel/express":"node","@vercel/hono":"node","@vercel/h3":"node","@vercel/koa":"node","@vercel/nestjs":"node","@vercel/fastify":"node","@vercel/elysia":"node"},STATIC_BUILDERS=new Set(["@vercel/static-build","@vercel/static"]),ROUTE_OWNING_BUILDERS=new Set(["@vercel/next","@vercel/backends"]),CONTAINER_ENTRYPOINT_CANDIDATES=["Dockerfile.vercel","Containerfile.vercel","Dockerfile","Containerfile"]}});var require_entrypoint=__commonJS({"../runtimes/dist/entrypoint.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),entrypoint_exports={};__export(entrypoint_exports,{isDockerfileEntrypoint:()=>isDockerfileEntrypoint,isNodeScheduleEntrypoint:()=>isNodeScheduleEntrypoint2,parsePyModuleAttrEntrypoint:()=>parsePyModuleAttrEntrypoint,parsePythonScheduleModule:()=>parsePythonScheduleModule2,stripTrailingSlash:()=>stripTrailingSlash});module.exports=__toCommonJS(entrypoint_exports);var import_path=__require("path"),import_constants=require_constants(),PYTHON_MODULE_ATTR_RE=/^([A-Za-z_][\w]*(?:\.[A-Za-z_][\w]*)*):([A-Za-z_][\w]*)$/,PYTHON_MODULE_RE=/^[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*$/,SOURCE_FILE_RE=/\.(?:py|[cm]?[jt]s)$/,NODE_SOURCE_FILE_RE=/\.(?:m?js|[cm]?ts)$/;function parsePyModuleAttrEntrypoint(entrypoint){let match=PYTHON_MODULE_ATTR_RE.exec(entrypoint);if(!match)return null;let[,modulePart,attrName]=match;return!modulePart||!attrName?null:{attrName,filePath:modulePart.replace(/\./g,"/")+".py",moduleName:modulePart}}function parsePythonScheduleModule2(entrypoint){if(!PYTHON_MODULE_RE.test(entrypoint)||SOURCE_FILE_RE.test(entrypoint))return null;let path=entrypoint.replace(/\./g,"/");return{moduleName:entrypoint,sourceFiles:[`${path}/__init__.py`,`${path}.py`]}}function isNodeScheduleEntrypoint2(entrypoint){return NODE_SOURCE_FILE_RE.test(entrypoint)}var CONTAINER_ENTRYPOINT_BASENAMES=new Set(import_constants.CONTAINER_ENTRYPOINT_CANDIDATES.map(name=>name.toLowerCase()));function isDockerfileEntrypoint(entrypoint){return CONTAINER_ENTRYPOINT_BASENAMES.has(import_path.posix.basename(entrypoint).toLowerCase())}function stripTrailingSlash(p){let stripped=p.replace(/\/+$/,"");return stripped===""?".":stripped}}});var import_routing_utils=__toESM(require_dist(),1),import_build_utils=__toESM(require_build_utils(),1),import_types=__toESM(require_types(),1),import_fs_detectors=__toESM(require_dist2(),1),import_entrypoint=__toESM(require_entrypoint(),1);import{getConfigValidator}from"./config-validator.mjs";var imagesSchema={type:"object",additionalProperties:!1,required:["sizes"],properties:{contentDispositionType:{enum:["inline","attachment"]},contentSecurityPolicy:{type:"string",minLength:1,maxLength:256},dangerouslyAllowSVG:{type:"boolean"},domains:{type:"array",minItems:0,maxItems:50,items:{type:"string",minLength:1,maxLength:256}},formats:{type:"array",minItems:1,maxItems:4,items:{enum:["image/avif","image/webp","image/jpeg","image/png"]}},localPatterns:{type:"array",minItems:0,maxItems:25,items:{type:"object",additionalProperties:!1,properties:{pathname:{type:"string",minLength:1,maxLength:256},search:{type:"string",minLength:0,maxLength:256}}}},minimumCacheTTL:{type:"integer",minimum:1,maximum:31536e4},qualities:{type:"array",minItems:1,maxItems:20,items:{type:"integer",minimum:1,maximum:100}},remotePatterns:{type:"array",minItems:0,maxItems:50,items:{type:"object",additionalProperties:!1,required:["hostname"],properties:{protocol:{enum:["http","https"]},hostname:{type:"string",minLength:1,maxLength:256},port:{type:"string",minLength:0,maxLength:5},pathname:{type:"string",minLength:1,maxLength:256},search:{type:"string",minLength:0,maxLength:256}}}},sizes:{type:"array",minItems:1,maxItems:50,items:{type:"number"}}}},cronsSchema={type:"array",minItems:0,items:{type:"object",additionalProperties:!1,required:["path","schedule"],properties:{path:{type:"string",minLength:1,maxLength:512,pattern:"^/.*"},schedule:{type:"string",minLength:9,maxLength:256}}}},envVarNamesSchema={pattern:"^[A-Za-z_][A-Za-z0-9_]*$",maxLength:256},servicesBindingSchema={type:"object",additionalProperties:!1,required:["service","format","env"],properties:{type:{description:"Optional binding type marker. Currently the only supported type is `service`. When present this must be `service`.",const:"service"},service:{type:"string",minLength:1,maxLength:64,pattern:import_build_utils.SERVICE_NAME_PATTERN},format:{const:"url"},env:{type:"string",...envVarNamesSchema}}},servicesBindingsSchema={type:"array",maxItems:100,items:servicesBindingSchema},typedBindingsSchema={...servicesBindingsSchema,items:{...servicesBindingSchema,required:["type",...servicesBindingSchema.required]}},scheduleNameSchema={type:"string",minLength:1,maxLength:256,pattern:"^[0-9A-Za-z][0-9A-Za-z._-]*$"},scheduleDefinitionSchema={type:"object",additionalProperties:!1,properties:{schedule:{type:"string",minLength:9,maxLength:256},timezone:{type:"string",minLength:1,maxLength:50,description:"IANA timezone for cron evaluation. Defaults to UTC."},jitter:{type:"integer",minimum:1,maximum:15},path:{description:"Deployment path to invoke over HTTP, like `crons[].path`. Must start with `/`.",type:"string",maxLength:512,pattern:"^/"},requestMethod:{description:"HTTP method used to invoke `path`. Only valid with `path`. Defaults to `POST`.",enum:["GET","POST"]},function:{type:"string",minLength:1},service:{description:"Service that owns `function`, from `services`. When set, `function` is the path within that service. Only valid with `function`.",type:"string",minLength:1,maxLength:64,pattern:"^[a-z]([a-z_-]*[a-z])?$"},topic:{type:"string",minLength:1,maxLength:256,pattern:"^[A-Za-z0-9_-]+$"},run:{description:"Command to run for each firing. Only valid with a Dockerfile or Containerfile entrypoint.",type:"array",minItems:1,items:[{type:"string",pattern:"\\S"}],additionalItems:{type:"string"}},root:{description:"Directory of the service that runs the schedule's `entrypoint`, which is relative to it. Required with `entrypoint`.",type:"string",minLength:1,maxLength:512},entrypoint:{type:"string",minLength:1,maxLength:512},runtime:{description:"Runtime of an `entrypoint` without `run`: `python` for a module path like `jobs.tasks`, or `node` for a JavaScript or TypeScript file.",enum:["python","node"]},bindings:typedBindingsSchema},dependencies:{requestMethod:["path"],service:["function"],run:["entrypoint"],entrypoint:["root"],root:["entrypoint"],bindings:["entrypoint"]},oneOf:[{required:["path"]},{required:["function"]},{required:["topic"]},{required:["entrypoint"]}]},maxSchedules=500,schedulesSchema={type:"object",maxProperties:maxSchedules,propertyNames:scheduleNameSchema,additionalProperties:scheduleDefinitionSchema},experimentalServicesMountSchema={oneOf:[{type:"string",minLength:1,maxLength:512},{type:"object",additionalProperties:!1,properties:{path:{type:"string",minLength:1,maxLength:512},subdomain:{type:"string",minLength:1,maxLength:63}},anyOf:[{required:["path"]},{required:["subdomain"]}]}]},staticExperimentalServiceScheduleSchema={type:"string",minLength:9,maxLength:256,not:{const:"<dynamic>"}},experimentalServiceScheduleSchema={oneOf:[{type:"string",minLength:9,maxLength:256},{type:"array",minItems:1,items:staticExperimentalServiceScheduleSchema}]},experimentalServiceQueueTopicSchema={type:"object",additionalProperties:!1,required:["topic"],properties:{topic:{type:"string",minLength:1,maxLength:256},retryAfterSeconds:{type:"integer",minimum:1,maximum:86400},initialDelaySeconds:{type:"integer",minimum:0,maximum:86400}}},experimentalServiceTopicsSchema={oneOf:[{type:"array",minItems:1,items:{type:"string",minLength:1,maxLength:256}},{type:"array",minItems:1,items:experimentalServiceQueueTopicSchema}]},getExperimentalServicesCommonProperties=()=>({entrypoint:{type:"string",minLength:1,maxLength:512},root:{type:"string",minLength:1,maxLength:512},workspace:{type:"string",minLength:1,maxLength:512},framework:{type:"string",minLength:1,maxLength:256},builder:{type:"string",minLength:1,maxLength:256},runtime:{type:"string",minLength:1,maxLength:256},buildCommand:{type:"string",minLength:1,maxLength:2048},installCommand:{type:"string",minLength:1,maxLength:2048},preDeployCommand:{type:"string",minLength:1,maxLength:2048},command:{oneOf:[{type:"string",minLength:1,maxLength:2048},{type:"array",minItems:1,items:{type:"string",minLength:1,maxLength:2048}}]},memory:{type:"integer",minimum:128,maximum:10240},maxDuration:(0,import_build_utils.getMaxDurationSchema)(),includeFiles:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1}}]},excludeFiles:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1}}]}}),experimentalServicesRoutableProperties={mount:experimentalServicesMountSchema,routePrefix:{type:"string",minLength:1,maxLength:512},subdomain:{type:"string",minLength:1,maxLength:63}},getExperimentalServicesServiceConfigSchema=()=>({oneOf:[{type:"object",additionalProperties:!1,properties:{...getExperimentalServicesCommonProperties(),...experimentalServicesRoutableProperties,type:{enum:["web"]}}},{type:"object",additionalProperties:!1,required:["type","trigger","schedule"],properties:{...getExperimentalServicesCommonProperties(),type:{const:"job"},trigger:{const:"schedule"},schedule:experimentalServiceScheduleSchema}},{type:"object",additionalProperties:!1,required:["type","trigger","topics"],properties:{...getExperimentalServicesCommonProperties(),type:{const:"job"},trigger:{const:"queue"},topics:experimentalServiceTopicsSchema,consumer:{type:"string",minLength:1,maxLength:256}}},{type:"object",additionalProperties:!1,required:["type","trigger","entrypoint"],properties:{...getExperimentalServicesCommonProperties(),type:{const:"job"},trigger:{const:"workflow"}}},{type:"object",additionalProperties:!1,required:["type"],properties:{...getExperimentalServicesCommonProperties(),type:{const:"worker"},topics:{type:"array",items:{type:"string",minLength:1,maxLength:256},minItems:1},consumer:{type:"string",minLength:1,maxLength:256}}},{type:"object",additionalProperties:!1,required:["type","schedule"],properties:{...getExperimentalServicesCommonProperties(),type:{const:"cron"},schedule:experimentalServiceScheduleSchema}}]}),getExperimentalServicesSchema=()=>({type:"object",propertyNames:{pattern:"^[a-zA-Z]([a-zA-Z0-9_-]*[a-zA-Z0-9])?$",maxLength:64},additionalProperties:getExperimentalServicesServiceConfigSchema()}),experimentalServiceGroupsSchema={type:"object",propertyNames:{pattern:"^[a-zA-Z]([a-zA-Z0-9_-]*[a-zA-Z0-9])?$",maxLength:64},additionalProperties:{type:"array",items:{type:"string",minLength:1,maxLength:256}}},servicesPathSchema={type:"string",minLength:1,maxLength:512},servicesCommandSchema={type:"string",minLength:1,maxLength:2048},containerImageSchema={type:"string",minLength:1,maxLength:1024},getServicesServiceConfigSchema=()=>({type:"object",additionalProperties:!1,anyOf:[{required:["root"]},{required:["image"]}],properties:{root:servicesPathSchema,framework:{type:"string",minLength:1,maxLength:256},runtime:{type:"string",minLength:1,maxLength:256},entrypoint:servicesPathSchema,image:containerImageSchema,command:{oneOf:[{type:"string",minLength:1,maxLength:4096},{type:"array",minItems:1,maxItems:128,items:{type:"string",minLength:1,maxLength:4096}}]},installCommand:servicesCommandSchema,buildCommand:servicesCommandSchema,devCommand:servicesCommandSchema,ignoreCommand:servicesCommandSchema,outputDirectory:servicesPathSchema,bindings:servicesBindingsSchema,functions:(0,import_build_utils.getFunctionsSchema)(),proxy:proxySchema,headers:import_routing_utils.headersSchema,redirects:import_routing_utils.redirectsSchema,rewrites:import_routing_utils.rewritesSchema,routes:import_routing_utils.routesSchema,cleanUrls:import_routing_utils.cleanUrlsSchema,trailingSlash:import_routing_utils.trailingSlashSchema}}),daemonConfigSchema={type:"object",additionalProperties:!1,anyOf:[{required:["instances"]},{required:["replicas"]}],properties:{root:servicesPathSchema,entrypoint:servicesPathSchema,image:containerImageSchema,command:{type:"array",minItems:1,maxItems:128,items:{type:"string",minLength:1,maxLength:4096}},instances:{type:"object",additionalProperties:{type:"integer",minimum:0}},replicas:{description:"Deprecated. Use `instances`. Ignored when `instances` is set.",deprecated:!0,type:"object",additionalProperties:{type:"integer",minimum:0}},resources:{type:"object",additionalProperties:!1,required:["requests"],properties:{requests:{type:"object",additionalProperties:!1,required:["memory"],properties:{memory:{enum:["1Gi","2Gi","4Gi","8Gi"]}}}}},terminationGracePeriodSeconds:{type:"integer",minimum:0},livenessProbe:{type:"object",additionalProperties:!1,required:["httpGet"],properties:{httpGet:{type:"object",additionalProperties:!1,required:["port"],properties:{path:{type:"string",minLength:1},port:{type:"integer",minimum:1,maximum:65535},host:{type:"string",minLength:1},scheme:{enum:["HTTP","HTTPS"]},httpHeaders:{type:"array",items:{type:"object",additionalProperties:!1,required:["name","value"],properties:{name:{type:"string",minLength:1},value:{type:"string"}}}}}},initialDelaySeconds:{type:"integer",minimum:0,maximum:86400},periodSeconds:{type:"integer",minimum:1,maximum:86400},timeoutSeconds:{type:"integer",minimum:1,maximum:86400},successThreshold:{type:"integer",minimum:1,maximum:10},failureThreshold:{type:"integer",minimum:1,maximum:10}}},bindings:typedBindingsSchema}},getServicesSchema=()=>({type:"object",propertyNames:{pattern:import_build_utils.SERVICE_NAME_PATTERN,maxLength:64},additionalProperties:getServicesServiceConfigSchema()}),maxDaemons=100,daemonsSchema={type:"object",maxProperties:maxDaemons,propertyNames:{pattern:import_build_utils.DAEMON_NAME_PATTERN,maxLength:64},additionalProperties:daemonConfigSchema},proxySchema={type:"object",additionalProperties:!1,required:["entrypoint"],properties:{entrypoint:{type:"string",minLength:1},matcher:{oneOf:[{type:"string",minLength:1},{type:"array",minItems:1,items:{type:"string",minLength:1}}]}}};function buildVercelConfigSchema(){return{type:"object",additionalProperties:!0,properties:{builds:import_build_utils.buildsSchema,routes:import_routing_utils.routesSchema,cleanUrls:import_routing_utils.cleanUrlsSchema,headers:import_routing_utils.headersSchema,redirects:import_routing_utils.redirectsSchema,rewrites:import_routing_utils.rewritesSchema,trailingSlash:import_routing_utils.trailingSlashSchema,functions:(0,import_build_utils.getFunctionsSchema)(),images:imagesSchema,crons:cronsSchema,schedules:schedulesSchema,bunVersion:{type:"string"},proxy:proxySchema,experimentalServices:getExperimentalServicesSchema(),experimentalServiceGroups:experimentalServiceGroupsSchema,services:getServicesSchema(),experimentalServicesV2:getServicesSchema(),daemons:daemonsSchema}}}var isDockerfilePath=entrypoint=>/(docker|container)file/i.test((0,import_build_utils.splitDockerfileEntrypoint)(entrypoint).path.split(/[\\/]/).pop()??""),toPythonModulePath=entrypoint=>entrypoint.replace(/\.py$/,"").replace(/[\\/]+/g,".").replace(/(^|\.)__init__$/,""),hasInvalidDockerfileStage=entrypoint=>{let{buildTarget}=(0,import_build_utils.splitDockerfileEntrypoint)(entrypoint);return buildTarget!==void 0&&!(0,import_build_utils.isValidDockerfileStage)(buildTarget)};function validateConfig(config){let validate=getConfigValidator(buildVercelConfigSchema);if(!validate(config)&&validate.errors&&validate.errors[0]){let error=validate.errors[0],fileName=config[import_types.fileNameSymbol]||"vercel.json",niceError=(0,import_build_utils.getPrettyError)(error);return niceError.message=`Invalid ${fileName} - ${niceError.message}`,niceError}let serviceNames=new Set([...Object.keys(config.services??{}),...Object.keys(config.daemons??{})]),scheduleServices=getScheduleServiceNames(config),destinationServices=new Set(getDestinationServices(config)),invalidSchedule=(code,message)=>new import_build_utils.NowBuildError({code,message:`Invalid ${config[import_types.fileNameSymbol]||"vercel.json"} - ${message}`}),invalidCommand=message=>invalidSchedule("INVALID_SCHEDULE_COMMAND",message),invalidEntrypoint=message=>invalidSchedule("INVALID_SCHEDULE_ENTRYPOINT",message);for(let[name,schedule]of Object.entries(config.schedules??{})){let path=`schedules.${name}`;if("runtime"in schedule&&("run"in schedule||!("entrypoint"in schedule)))return invalidEntrypoint(`\`${path}.runtime\` is only valid with an \`entrypoint\` and without \`run\`.`);if("entrypoint"in schedule&&!("run"in schedule)){let{entrypoint,runtime}=schedule;if(!runtime)return isDockerfilePath(entrypoint)?invalidEntrypoint(`\`${path}.entrypoint\` names a Dockerfile, so \`${path}\` must set \`run\`.`):invalidEntrypoint(`\`${path}\` must set \`runtime\` to run its \`entrypoint\`: "python" for a module path like "jobs.tasks", or "node" for a .js, .mjs, .ts, .mts or .cts file.`);if(runtime==="python"&&!(0,import_entrypoint.parsePythonScheduleModule)(entrypoint)){let suggestion=entrypoint.endsWith(".py")?toPythonModulePath(entrypoint):"";return invalidEntrypoint(`\`${path}.entrypoint\` "${entrypoint}" must be a Python module path like "${(0,import_entrypoint.parsePythonScheduleModule)(suggestion)?suggestion:"jobs.tasks"}", since \`${path}.runtime\` is "python".`)}if(runtime==="node"&&!(0,import_entrypoint.isNodeScheduleEntrypoint)(entrypoint))return invalidEntrypoint(`\`${path}.entrypoint\` "${entrypoint}" must be a .js, .mjs, .ts, .mts or .cts file, since \`${path}.runtime\` is "node".`);let configured=["schedule","timezone","jitter"].find(key=>key in schedule);if(configured)return invalidEntrypoint(runtime==="node"?`\`${path}\` runs "${entrypoint}", whose \`export const config\` sets its cron, timezone and jitter. Remove \`${path}.${configured}\`.`:`\`${path}\` runs the Python module "${entrypoint}", whose \`@schedule\` handlers set their own cron, timezone and jitter. Remove \`${path}.${configured}\`.`)}else if(!("schedule"in schedule))return invalidSchedule("INVALID_SCHEDULE_EXPRESSION",`\`${path}\` is missing required property \`schedule\`.`);if("run"in schedule){if(!isDockerfilePath(schedule.entrypoint))return invalidCommand(`\`${path}.run\` requires a Dockerfile or Containerfile \`entrypoint\`.`);if(hasInvalidDockerfileStage(schedule.entrypoint))return invalidCommand(`\`${path}.entrypoint\` "${schedule.entrypoint}" is invalid. ${import_build_utils.DOCKERFILE_STAGE_HINT}`)}if(scheduleServices.has(name)){if(name.length>64||!new RegExp(import_build_utils.SERVICE_NAME_PATTERN).test(name))return invalidScheduleService(config,`\`${path}\` runs as a service, so its name must be a valid service name: lowercase letters, \`-\` and \`_\`, at most 64 characters.`);if(serviceNames.has(name))return invalidScheduleService(config,`\`${path}\` runs as service "${name}", which is already the name of a service or daemon.`);if(destinationServices.has(name))return invalidScheduleService(config,`Rewrites and routes cannot target schedule "${name}" because schedules do not receive traffic.`)}if(!(!("timezone"in schedule)||schedule.timezone===void 0))try{if(!/^[A-Za-z][A-Za-z0-9_+/-]*$/.test(schedule.timezone))throw new RangeError("Expected a named timezone");new Intl.DateTimeFormat("en-US",{timeZone:schedule.timezone})}catch{return new import_build_utils.NowBuildError({code:"INVALID_SCHEDULE_TIMEZONE",message:`Invalid ${config[import_types.fileNameSymbol]||"vercel.json"} - \`schedules.${name}.timezone\` must be a valid IANA timezone, such as "America/New_York". Omit it to use UTC.`})}}let functionMaps=[config.functions,...Object.values(config.services??{}).map(service=>service.functions),...Object.values(config.experimentalServicesV2??{}).map(service=>service.functions)];for(let functions of functionMaps)for(let[pattern,fn]of Object.entries(functions??{})){let regions=[...new Set(fn.regions)];if(fn.affinity?.mode==="strict"&&(regions.includes("all")||regions.length>1))return new import_build_utils.NowBuildError({code:"INVALID_FUNCTION_AFFINITY_REGIONS",message:`Function affinity mode "strict" requires at most one statically configured region. Update \`functions[${JSON.stringify(pattern)}].regions\` to contain a single region.`,link:"https://vercel.com/docs/concepts/projects/project-configuration#functions"})}if(config.proxy){let proxyError=(0,import_fs_detectors.validateProxyConfig)(config.proxy,{field:"proxy",level:"project"});if(proxyError)return new import_build_utils.NowBuildError({code:proxyError.code.toUpperCase(),message:proxyError.message})}if(config.functions&&config.builds)return new import_build_utils.NowBuildError({code:"FUNCTIONS_AND_BUILDS",message:"The `functions` property cannot be used in conjunction with the `builds` property. Please remove one of them.",link:"https://vercel.link/functions-and-builds"});if(config.proxy&&config.builds)return new import_build_utils.NowBuildError({code:"PROXY_AND_BUILDS",message:"The `proxy` property cannot be used with the `builds` property. Remove `builds` to use an explicit proxy entrypoint."});let hasExperimentalServices=!!config.experimentalServices;if(hasExperimentalServices&&config.builds)return new import_build_utils.NowBuildError({code:"EXPERIMENTAL_SERVICES_AND_BUILDS",message:"The `experimentalServices` property cannot be used in conjunction with the `builds` property. Please remove one of them."});if(hasExperimentalServices&&config.functions)return new import_build_utils.NowBuildError({code:"EXPERIMENTAL_SERVICES_AND_FUNCTIONS",message:"The `experimentalServices` property cannot be used in conjunction with the `functions` property. Please remove one of them."});if(config.experimentalServiceGroups&&!config.experimentalServices)return new import_build_utils.NowBuildError({code:"SERVICE_GROUPS_WITHOUT_SERVICES",message:"The `experimentalServiceGroups` property requires `experimentalServices` to be defined. Service groups reference services by name."});let hasServices=config.services!=null,hasExperimentalServicesV2=config.experimentalServicesV2!=null;if(hasServices&&hasExperimentalServicesV2)return new import_build_utils.NowBuildError({code:"SERVICES_AND_EXPERIMENTAL_SERVICES_V2",message:"The `services` property cannot be used in conjunction with its deprecated alias `experimentalServicesV2`. Please use only `services`."});let servicesConfig=config.services??config.experimentalServicesV2,servicesConfigKey=hasServices?"services":"experimentalServicesV2",servicesErrorCodePrefix=hasServices?"SERVICES":"EXPERIMENTAL_SERVICES_V2";if(servicesConfig&&hasExperimentalServices)return new import_build_utils.NowBuildError({code:`${servicesErrorCodePrefix}_AND_EXPERIMENTAL_SERVICES`,message:`The \`${servicesConfigKey}\` property cannot be used in conjunction with the \`experimentalServices\` property. Please use only one services configuration.`});if(servicesConfig&&config.builds)return new import_build_utils.NowBuildError({code:`${servicesErrorCodePrefix}_AND_BUILDS`,message:`The \`${servicesConfigKey}\` property cannot be used in conjunction with the \`builds\` property. Please remove one of them.`});if(servicesConfig){let ambiguousTopLevel=[];if(config.functions!=null&&ambiguousTopLevel.push("functions"),config.installCommand!=null&&ambiguousTopLevel.push("installCommand"),config.buildCommand!=null&&ambiguousTopLevel.push("buildCommand"),config.devCommand!=null&&ambiguousTopLevel.push("devCommand"),config.ignoreCommand!=null&&ambiguousTopLevel.push("ignoreCommand"),config.outputDirectory!=null&&ambiguousTopLevel.push("outputDirectory"),config.framework!=null&&ambiguousTopLevel.push("framework"),ambiguousTopLevel.length>0){let count=ambiguousTopLevel.length,fields=ambiguousTopLevel.map(field=>`\`${field}\``).join(", ");return new import_build_utils.NowBuildError({code:`${servicesErrorCodePrefix}_AND_TOP_LEVEL_BUILD_SETTINGS`,message:`The top-level ${count>1?"properties":"property"} ${fields} cannot be used with \`${servicesConfigKey}\` because the owning service is ambiguous. Move ${count>1?"them":"it"} under the relevant service in \`${servicesConfigKey}\`.`})}}if(config.daemons){let daemonError=validateDaemons(config,config.daemons);if(daemonError)return daemonError}for(let[name,schedule]of Object.entries(config.schedules??{})){if(!("entrypoint"in schedule))continue;let bindingError=validateCallerBindings(config,`Schedule "${name}"`,schedule.bindings,message=>invalidScheduleService(config,message));if(bindingError)return bindingError}if(servicesConfig){let imageError=validateImageServices(config,servicesConfig,servicesConfigKey);if(imageError)return imageError;let serviceNames2=new Set(Object.keys(servicesConfig));for(let[serviceName,serviceConfig]of Object.entries(servicesConfig))for(let binding of serviceConfig.bindings??[])if(!serviceNames2.has(binding.service))return scheduleServices.has(binding.service)?scheduleBindingError(config,`Service "${serviceName}"`,binding.service):new import_build_utils.NowBuildError({code:`${servicesErrorCodePrefix}_BINDING_UNKNOWN_SERVICE`,message:`Service "${serviceName}" declares a binding to unknown service "${binding.service}". Add "${binding.service}" to \`${servicesConfigKey}\` or fix the binding.`})}return null}function validateDaemons(config,daemons){let invalid=message=>new import_build_utils.NowBuildError({code:"INVALID_DAEMON",message}),daemonNames=new Set(Object.keys(daemons));for(let[name,daemon]of Object.entries(daemons)){if(daemon.image!==void 0){let imageProblem=(0,import_build_utils.getVcrImageProblem)(daemon.image);if(imageProblem)return invalidImage(config,`daemons.${name}.image`,imageProblem);if(daemon.entrypoint!==void 0)return invalid(`Daemon "${name}" can set \`image\` or \`entrypoint\`, not both.`);continue}if(daemon.root===void 0||daemon.entrypoint===void 0)return invalid(`Daemon "${name}" must set \`image\`, or \`root\` and \`entrypoint\` to build one.`);if(!isDockerfilePath(daemon.entrypoint))return invalid(`Daemon "${name}" must set \`entrypoint\` to a Dockerfile or Containerfile.`);if(hasInvalidDockerfileStage(daemon.entrypoint))return invalid(`Daemon "${name}" has invalid \`entrypoint\` "${daemon.entrypoint}". ${import_build_utils.DOCKERFILE_STAGE_HINT}`)}let services={...config.experimentalServicesV2,...config.services},isDaemonTarget=name=>daemonNames.has(name)&&!Object.prototype.hasOwnProperty.call(services,name);for(let[name,service]of Object.entries(services)){let binding=service.bindings?.find(binding2=>isDaemonTarget(binding2.service));if(binding)return invalid(`Service "${name}" cannot bind to daemon "${binding.service}" because daemons do not receive traffic.`)}for(let[name,daemon]of Object.entries(daemons)){let bindingError=validateCallerBindings(config,`Daemon "${name}"`,daemon.bindings,invalid);if(bindingError)return bindingError}let daemonTarget=getDestinationServices(config).find(isDaemonTarget);return daemonTarget?invalid(`Rewrites and routes cannot target daemon "${daemonTarget}" because daemons do not receive traffic.`):null}function validateCallerBindings(config,caller,bindings,invalid){let services={...config.experimentalServicesV2,...config.services},scheduleServices=getScheduleServiceNames(config),envs=new Set;for(let binding of bindings??[]){if(!Object.prototype.hasOwnProperty.call(services,binding.service))return scheduleServices.has(binding.service)?scheduleBindingError(config,caller,binding.service):invalid(`${caller} declares a binding to unknown service "${binding.service}". Add "${binding.service}" to \`services\` or fix the binding.`);if(envs.has(binding.env))return invalid(`${caller} declares more than one binding for the environment variable "${binding.env}".`);envs.add(binding.env)}return null}function invalidImage(config,path,problem){return new import_build_utils.NowBuildError({code:"INVALID_CONTAINER_IMAGE",message:`Invalid ${config[import_types.fileNameSymbol]||"vercel.json"} - \`${path}\` ${problem}`})}function validateImageServices(config,services,servicesConfigKey){let fileName=config[import_types.fileNameSymbol]||"vercel.json";for(let[name,service]of Object.entries(services)){if(service.image===void 0)continue;let path=`${servicesConfigKey}.${name}`,imageProblem=(0,import_build_utils.getVcrImageProblem)(service.image);if(imageProblem)return invalidImage(config,`${path}.image`,imageProblem);let invalid=(code,problem)=>new import_build_utils.NowBuildError({code,message:`Invalid ${fileName} - \`${path}\` sets \`image\`, so ${problem}`}),buildSettings=import_build_utils.SERVICE_IMAGE_BUILD_SETTINGS.filter(field=>service[field]!==void 0);if(buildSettings.length>0){let fields=buildSettings.map(field=>`\`${field}\``).join(", ");return invalid("SERVICE_IMAGE_WITH_BUILD_SETTINGS",`it isn't built and can't set ${fields}.`)}if(service.runtime!==void 0&&service.runtime!=="container")return invalid("SERVICE_IMAGE_WITH_RUNTIME",'its `runtime` can only be "container".');if(service.functions!==void 0)return invalid("SERVICE_IMAGE_WITH_FUNCTIONS","it can't set `functions`. The functions configuration isn't supported for image services.")}return null}function getScheduleServiceNames(config){return new Set(Object.entries(config.schedules??{}).filter(([,schedule])=>"entrypoint"in schedule||"run"in schedule).map(([name])=>name))}function invalidScheduleService(config,message){return new import_build_utils.NowBuildError({code:"INVALID_SCHEDULE_SERVICE",message:`Invalid ${config[import_types.fileNameSymbol]||"vercel.json"} - ${message}`})}function scheduleBindingError(config,binder,schedule){return invalidScheduleService(config,`${binder} cannot bind to schedule "${schedule}" because schedules do not receive traffic.`)}function getDestinationServices(config){let services={...config.experimentalServicesV2,...config.services};return[...config.rewrites??[],...config.routes??[],...Object.values(services).flatMap(service=>[...service.rewrites??[],...service.routes??[]])].flatMap(entry=>{let destination="destination"in entry?entry.destination:void 0;return typeof destination=="object"&&destination!==null?[destination.service]:[]})}export{require_constants,require_entrypoint,buildVercelConfigSchema,validateConfig};
@@ -1,7 +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{printProjectNotFoundError}from"./chunk-Q4W3R6U2.js";import{detectExplicitScope}from"./chunk-CRPZYLIL.js";import{getLinkedProject}from"./chunk-HDKEES7E.js";import{omitGlobalFlagsFromArgs}from"./chunk-E6VQXHBD.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,commandName="",projectOptionName,projectNotFoundHandling="report",skipOwnerLookup,allowOwnerLookupFallback,allowProjectLookupFallback,quiet,allowConfigExecution}){let context=await getLinkedProject(client,{cwd,projectName:projectNameOrId,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};
@@ -1,7 +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{getScope}from"./chunk-CRPZYLIL.js";import{sleep}from"./chunk-HDKEES7E.js";import{require_ms}from"./chunk-2ILZM77F.js";import{isAPIError}from"./chunk-MTPHHAPR.js";import{__toESM}from"./chunk-NBPLUP7C.js";var import_ms=__toESM(require_ms(),1);var DEFAULT_ORDER_WAIT="1m",DEFAULT_ORDER_WAIT_MS=(0,import_ms.default)(DEFAULT_ORDER_WAIT);function getOrderOutcome(order,domain){let item=order.domains.find(d=>d.domainName===domain);return order.status==="completed"&&item?.status==="completed"?"completed":order.error?.code==="payment-failed"?order.error.details?.reason==="authentication-required"?"payment_authentication_required":"payment_failed":item?.status==="refund-failed"?"refund_failed":item?.status==="refunded"?"refunded":item?.status==="failed"?"failed":"unknown"}async function getOrder(client,orderId,{signal}={}){let{team}=await getScope(client),teamParam=team?`?teamId=${team.slug}`:"";try{return await client.fetch(`/v1/registrar/orders/${orderId}${teamParam}`,{retry:{retries:0},bailOn429:!0,signal})}catch(err){if(isAPIError(err)){if(err.status===404)return null;if(err.status<500)return err}throw err}}function remainingWait(waitMs,sentAt){return Math.max(waitMs-(Date.now()-sentAt),0)}var ORDER_READ_TIMING={minReadMs:5*1e3},pollForOrder=async(client,orderId,timeoutMs)=>{let intervalMs=500,lastStatus=null,startTime=Date.now();for(;;){let sleepMs=intervalMs,order;try{let leftMs2=timeoutMs-(Date.now()-startTime);order=await getOrder(client,orderId,{signal:AbortSignal.timeout(Math.max(leftMs2,ORDER_READ_TIMING.minReadMs))})}catch{order=null}if(order instanceof Error)if(order.status===429)typeof order.retryAfterMs=="number"&&(sleepMs=Math.max(sleepMs,order.retryAfterMs));else return{order:null,lastStatus,readError:{status:order.status,code:order.code}};else if(order!==null){let pending=order.domains.some(d=>d.status==="pending");if(order.status==="failed"||order.status==="completed"&&!pending)return{order};order.status!=="completed"&&(lastStatus=order.status)}let leftMs=timeoutMs-(Date.now()-startTime);if(leftMs<=0)break;await sleep(Math.min(sleepMs,leftMs)),intervalMs=Math.min(intervalMs*2,5e3)}return{order:null,lastStatus}};export{DEFAULT_ORDER_WAIT,DEFAULT_ORDER_WAIT_MS,getOrderOutcome,remainingWait,ORDER_READ_TIMING,pollForOrder};