vercel 65.0.0 → 65.2.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.
- package/dist/chunks/add-6XE2EK66.js +8 -0
- package/dist/chunks/add-WITOGFYA.js +8 -0
- package/dist/chunks/add-YSIECJTJ.js +8 -0
- package/dist/chunks/build-DNYYPGF2.js +7 -0
- package/dist/chunks/{chunk-VO36D4U4.js → chunk-22FDWPWY.js} +1 -1
- package/dist/chunks/chunk-2NABMKFV.js +29 -0
- package/dist/chunks/chunk-2PKEEQ5W.js +25 -0
- package/dist/chunks/{chunk-VAZQS475.js → chunk-3ADDGPEN.js} +1 -1
- package/dist/chunks/{chunk-LJIQZ3LU.js → chunk-3AYYFYZG.js} +1 -1
- package/dist/chunks/{chunk-27QCVNMI.js → chunk-3LIKVGFT.js} +1 -1
- package/dist/chunks/chunk-3XCXKOBR.js +7 -0
- package/dist/chunks/{chunk-RRWEIG6B.js → chunk-3XW7N4W3.js} +1 -1
- package/dist/chunks/{chunk-XD2FF2PZ.js → chunk-4MTD47Y2.js} +1 -1
- package/dist/chunks/{detect-projects-CHMBPFSE.js → chunk-4VFYJU37.js} +1 -1
- package/dist/chunks/chunk-5IASAERQ.js +7 -0
- package/dist/chunks/chunk-5RMIM4S2.js +7 -0
- package/dist/chunks/chunk-65TGOMRK.js +8 -0
- package/dist/chunks/chunk-6IDNVZZR.js +7 -0
- package/dist/chunks/{chunk-DBNQ45J5.js → chunk-6OVX3PWM.js} +1 -1
- package/dist/chunks/chunk-6URZLHEK.js +7 -0
- package/dist/chunks/{chunk-AZ5OUZPP.js → chunk-6VH56CX2.js} +1 -1
- package/dist/chunks/chunk-6Y2ZL5XJ.js +98 -0
- package/dist/chunks/{chunk-KUGFILF5.js → chunk-76KGQU2G.js} +1 -1
- package/dist/chunks/{chunk-F4ZFLPMT.js → chunk-7EC6KLFJ.js} +1 -1
- package/dist/chunks/chunk-7N67TEDX.js +10 -0
- package/dist/chunks/{chunk-43T3YKNH.js → chunk-7SYW5HXA.js} +1 -1
- package/dist/chunks/chunk-7YKFF6CE.js +7 -0
- package/dist/chunks/chunk-7Z3WUAO5.js +10 -0
- package/dist/chunks/chunk-ABZEMNDR.js +7 -0
- package/dist/chunks/{chunk-WDWYKX2I.js → chunk-ADLBLGT3.js} +1 -1
- package/dist/chunks/{chunk-BFJC3UDU.js → chunk-AGBNDJBH.js} +1 -1
- package/dist/chunks/chunk-AJCM43E4.js +7 -0
- package/dist/chunks/chunk-ANMDN3EG.js +9 -0
- package/dist/chunks/chunk-AWMQGOS2.js +7 -0
- package/dist/chunks/{chunk-JDVUKDX3.js → chunk-BBKEP7RO.js} +1 -1
- package/dist/chunks/{chunk-X5J7LOJK.js → chunk-BL3GEBL6.js} +1 -1
- package/dist/chunks/chunk-BLUPZPAS.js +7 -0
- package/dist/chunks/chunk-BNQXEQWO.js +7 -0
- package/dist/chunks/chunk-BTI5TG6Q.js +7 -0
- package/dist/chunks/chunk-BUJITHGZ.js +8 -0
- package/dist/chunks/chunk-BZXSCHI7.js +7 -0
- package/dist/chunks/chunk-C6GY2G73.js +7 -0
- package/dist/chunks/chunk-CEMPU323.js +7 -0
- package/dist/chunks/{chunk-Z6JDXW4A.js → chunk-CF2FOU7X.js} +1 -1
- package/dist/chunks/{chunk-EKMQNUO4.js → chunk-CLFCR4UZ.js} +1 -1
- package/dist/chunks/{chunk-WFSQ3OSN.js → chunk-CVDK3IYT.js} +6 -9
- package/dist/chunks/{chunk-VF2WX27D.js → chunk-DA37HMCW.js} +2 -2
- package/dist/chunks/{chunk-YPX7BXJ6.js → chunk-DGG3YML4.js} +2 -2
- package/dist/chunks/chunk-DGYHWXD2.js +10 -0
- package/dist/chunks/{chunk-RTWGDRYT.js → chunk-DHSOA6LP.js} +1 -1
- package/dist/chunks/chunk-DWZBL4NK.js +7 -0
- package/dist/chunks/chunk-E2SADN6I.js +7 -0
- package/dist/chunks/chunk-ECQIO5K3.js +7 -0
- package/dist/chunks/{chunk-7OMWRRY4.js → chunk-EEEYN6B4.js} +1 -1
- package/dist/chunks/{chunk-T5LBVZWY.js → chunk-F6FTWDLS.js} +1 -1
- package/dist/chunks/chunk-F7AVGV4Y.js +7 -0
- package/dist/chunks/{chunk-FN7TTXXY.js → chunk-FDNYYENK.js} +1 -1
- package/dist/chunks/chunk-FEI6O5QD.js +7 -0
- package/dist/chunks/{chunk-FPC5LINQ.js → chunk-FGFLTLEA.js} +1 -1
- package/dist/chunks/{chunk-JT273F22.js → chunk-FI4SNRSM.js} +1 -1
- package/dist/chunks/chunk-FUX6LKNP.js +7 -0
- package/dist/chunks/{chunk-OVV5MV5M.js → chunk-G4T7VBGN.js} +1 -1
- package/dist/chunks/{chunk-L5ANBZTX.js → chunk-GA277JFB.js} +1 -1
- package/dist/chunks/chunk-GD7AV7BO.js +9 -0
- package/dist/chunks/{chunk-W7J5HTTY.js → chunk-GENZ5QV5.js} +1 -1
- package/dist/chunks/chunk-GG5RME4X.js +7 -0
- package/dist/chunks/{chunk-PXU645V7.js → chunk-GGSM5AHN.js} +1 -1
- package/dist/chunks/{chunk-7G72V52B.js → chunk-GVTXA6HG.js} +1 -1
- package/dist/chunks/{chunk-ZIWS57E4.js → chunk-H2HV2IWG.js} +1 -1
- package/dist/chunks/{chunk-EJINOHL3.js → chunk-HCRD3JFL.js} +1 -1
- package/dist/chunks/chunk-HRR57QNP.js +7 -0
- package/dist/chunks/chunk-IA3MXJRC.js +8 -0
- package/dist/chunks/chunk-IEPW2YRH.js +7 -0
- package/dist/chunks/{chunk-HBPSZHXX.js → chunk-IGDG5CWT.js} +1 -1
- package/dist/chunks/chunk-IKQTP764.js +7 -0
- package/dist/chunks/{chunk-WTBGMDQ7.js → chunk-IQKGQ2Y2.js} +1 -1
- package/dist/chunks/chunk-IUXSJWL3.js +7 -0
- package/dist/chunks/{chunk-6CXHR2ND.js → chunk-JELLVPCM.js} +2 -2
- package/dist/chunks/{chunk-CTKJQTC5.js → chunk-JLEJB6KM.js} +1 -1
- package/dist/chunks/chunk-JNVVIU6L.js +9 -0
- package/dist/chunks/{chunk-SSKMT5SL.js → chunk-JVKIWEPJ.js} +1 -1
- package/dist/chunks/{chunk-WFEEUZ6B.js → chunk-K3FFPKIV.js} +1 -1
- package/dist/chunks/{chunk-66ODHUGV.js → chunk-KECUEAMH.js} +1 -1
- package/dist/chunks/{chunk-PNUH3XXW.js → chunk-KH6565YH.js} +2 -2
- package/dist/chunks/chunk-KRPY5FHJ.js +7 -0
- package/dist/chunks/chunk-KTNBXM43.js +7 -0
- package/dist/chunks/{chunk-YXZGKFF3.js → chunk-KW6GSQXV.js} +1 -1
- package/dist/chunks/{chunk-KDABXEHF.js → chunk-L7AHFYDS.js} +1 -1
- package/dist/chunks/{chunk-HNF2BEOE.js → chunk-LBNOOFB6.js} +1 -1
- package/dist/chunks/chunk-LC6D6S24.js +7 -0
- package/dist/chunks/chunk-LCHECISY.js +7 -0
- package/dist/chunks/{chunk-KXHUMVXD.js → chunk-LH7X2ZJQ.js} +1 -1
- package/dist/chunks/chunk-LJBUJ23M.js +7 -0
- package/dist/chunks/{chunk-IYM5GO57.js → chunk-LKLH6DZP.js} +1 -1
- package/dist/chunks/{chunk-WYJGP5QW.js → chunk-LUBUI5GF.js} +1 -1
- package/dist/chunks/chunk-LZWQBY2I.js +17 -0
- package/dist/chunks/{chunk-IKSZMJKB.js → chunk-MBDXRSHX.js} +2 -2
- package/dist/chunks/{chunk-VO2XAQFF.js → chunk-MX3RY7HH.js} +8 -9
- package/dist/chunks/chunk-N4HJGVRB.js +10 -0
- package/dist/chunks/{chunk-4T22AQTB.js → chunk-NQWGRKF4.js} +1 -1
- package/dist/chunks/{chunk-52JGR5SZ.js → chunk-NTZ5WWYV.js} +1 -1
- package/dist/chunks/chunk-OAM5NJCU.js +9 -0
- package/dist/chunks/chunk-OCR5CRTH.js +10 -0
- package/dist/chunks/chunk-OFDTADPQ.js +7 -0
- package/dist/chunks/chunk-OKEBIUKZ.js +7 -0
- package/dist/chunks/{chunk-X7CLBXWL.js → chunk-OPORM35X.js} +1 -1
- package/dist/chunks/{chunk-MTETAZA4.js → chunk-P6ZHH3HQ.js} +1 -1
- package/dist/chunks/chunk-PFD7LETF.js +7 -0
- package/dist/chunks/chunk-PFNYWWLI.js +7 -0
- package/dist/chunks/chunk-PFPJLIFF.js +33 -0
- package/dist/chunks/chunk-PSOVLGHP.js +7 -0
- package/dist/chunks/{chunk-B6U5434D.js → chunk-Q5ODLDCU.js} +1 -1
- package/dist/chunks/{chunk-2BAAJZBZ.js → chunk-QEAQNRWM.js} +1 -1
- package/dist/chunks/{chunk-DGDNI76L.js → chunk-QMCHGGDX.js} +2 -2
- package/dist/chunks/{chunk-X3VSVBXT.js → chunk-QMGXVTLQ.js} +2 -2
- package/dist/chunks/chunk-QOCZPYRV.js +12 -0
- package/dist/chunks/chunk-QQVGXIFM.js +7 -0
- package/dist/chunks/chunk-QYCGL36Q.js +7 -0
- package/dist/chunks/{chunk-AGDMSAYW.js → chunk-QZX7VG2V.js} +1 -1
- package/dist/chunks/chunk-R5B5ISRX.js +15 -0
- package/dist/chunks/{chunk-CZ2KEML2.js → chunk-R6BEOVTU.js} +1 -1
- package/dist/chunks/chunk-RLKS5G6C.js +12 -0
- package/dist/chunks/chunk-RTQ6ERZF.js +10 -0
- package/dist/chunks/{chunk-JWX2YZVC.js → chunk-RUA6EEAJ.js} +1 -1
- package/dist/chunks/{chunk-NYKEU7DQ.js → chunk-RW3X523R.js} +1 -1
- package/dist/chunks/chunk-S3L2OHPO.js +7 -0
- package/dist/chunks/{chunk-VY63XWWU.js → chunk-S5IWVPYT.js} +1 -1
- package/dist/chunks/{chunk-JETQEZ24.js → chunk-SQE63XFX.js} +2 -2
- package/dist/chunks/{chunk-UDMEPP3K.js → chunk-SXOSF4O6.js} +1 -1
- package/dist/chunks/chunk-TAAWMNNL.js +7 -0
- package/dist/chunks/chunk-TO5PJDEN.js +7 -0
- package/dist/chunks/{chunk-66262IYI.js → chunk-TZFDVQ72.js} +1 -1
- package/dist/chunks/chunk-U4Z2MMOF.js +301 -0
- package/dist/chunks/chunk-UC2SUUL2.js +7 -0
- package/dist/chunks/{chunk-VCV3H73W.js → chunk-UNEGQPD3.js} +1 -1
- package/dist/chunks/chunk-UVHKXCR5.js +11 -0
- package/dist/chunks/{chunk-3XDTQFBL.js → chunk-VBWQRK3O.js} +7 -7
- package/dist/chunks/chunk-VOCZ34ON.js +7 -0
- package/dist/chunks/chunk-VT6RIZJH.js +7 -0
- package/dist/chunks/{chunk-KCVCGYAR.js → chunk-WBF36MYT.js} +2 -2
- package/dist/chunks/{chunk-GRVLQZFQ.js → chunk-WGXKX24Q.js} +1 -1
- package/dist/chunks/chunk-WUORIKOE.js +7 -0
- package/dist/chunks/{chunk-7C5JHTHO.js → chunk-X4762EE4.js} +1 -1
- package/dist/chunks/chunk-XGTKHQTT.js +7 -0
- package/dist/chunks/chunk-XK6SNITB.js +21 -0
- package/dist/chunks/{chunk-UGZ3HFHI.js → chunk-XP3FT56R.js} +3 -3
- package/dist/chunks/chunk-XR6QY7RR.js +7 -0
- package/dist/chunks/{chunk-2UBZCG4F.js → chunk-XSE75NFU.js} +1 -1
- package/dist/chunks/chunk-XXXRTHTP.js +8 -0
- package/dist/chunks/{chunk-ENWROHWX.js → chunk-Y54GKXGG.js} +1 -1
- package/dist/chunks/chunk-YHQ7PPXP.js +7 -0
- package/dist/chunks/chunk-ZF27J6FQ.js +7 -0
- package/dist/chunks/chunk-ZFRNVIHI.js +7 -0
- package/dist/chunks/clear-KLE7JYWS.js +8 -0
- package/dist/chunks/compile-vercel-config-QHWJCKJV.js +7 -0
- package/dist/chunks/{config-XH532PP3.js → config-3ZSKJULZ.js} +1 -1
- package/dist/chunks/config-F5QZ5IGE.js +8 -0
- package/dist/chunks/config-validator.mjs +1 -1
- package/dist/chunks/connect-git-provider-FS5Q2HO4.js +7 -0
- package/dist/chunks/delete-GKUCUSHP.js +9 -0
- package/dist/chunks/delete-TLC65SZD.js +10 -0
- package/dist/chunks/detect-projects-NLAYKNQX.js +7 -0
- package/dist/chunks/detect-services-D6HLLAI4.js +7 -0
- package/dist/chunks/disable-ORTTESHC.js +7 -0
- package/dist/chunks/discard-TGWEOYRT.js +14 -0
- package/dist/chunks/dist-33WTJLVQ.js +7 -0
- package/dist/chunks/dist-RXYNZPEA.js +7 -0
- package/dist/chunks/edit-3XLIA7OG.js +8 -0
- package/dist/chunks/edit-IE2X5ZQD.js +9 -0
- package/dist/chunks/enable-DK3YZA4V.js +7 -0
- package/dist/chunks/{exec-5ZWP5NC6.js → exec-OZSY46V6.js} +1 -1
- package/dist/chunks/{export-3OE2RWU7.js → export-XOMKFSVY.js} +1 -1
- package/dist/chunks/fetch-proxy-45DGILKR.js +67 -0
- package/dist/chunks/future-XGH5EADE.js +7 -0
- package/dist/chunks/generate-cert-for-deploy-RGFAQHRI.js +7 -0
- package/dist/chunks/image-J2SIGGGB.js +7 -0
- package/dist/chunks/import-builders-MBKD4ERV.js +7 -0
- package/dist/chunks/inspect-CPXTLLSJ.js +13 -0
- package/dist/chunks/{inspect-JWDH7C6F.js → inspect-MR3XFJSZ.js} +1 -1
- package/dist/chunks/{inspect-HYJULYCV.js → inspect-MY3WMAQO.js} +1 -1
- package/dist/chunks/inspect-Q7D2TTXV.js +9 -0
- package/dist/chunks/{inspect-GD6JJPWG.js → inspect-SNN4G5IH.js} +1 -1
- package/dist/chunks/{list-4SZS2TB7.js → list-5HYYTOOF.js} +1 -1
- package/dist/chunks/list-6WEW57IO.js +12 -0
- package/dist/chunks/{list-AGS47O5P.js → list-7LMA6KKH.js} +1 -1
- package/dist/chunks/login-PFJ4ZSUI.js +9 -0
- package/dist/chunks/login-TVTT7VFC.js +7 -0
- package/dist/chunks/logs-WAOHH4MP.js +7 -0
- package/dist/chunks/{ls-ZPUNJ7ND.js → ls-6NO2RHSW.js} +1 -1
- package/dist/chunks/{ls-WQX2DS4X.js → ls-BHP75R3B.js} +1 -1
- package/dist/chunks/{ls-Y2JQYSVO.js → ls-NBMLWOON.js} +1 -1
- package/dist/chunks/{ls-KNRG7G5K.js → ls-QPOCM5P2.js} +1 -1
- package/dist/chunks/ls-VDMCJ53V.js +11 -0
- package/dist/chunks/{ls-LGL5ZKEJ.js → ls-WHEKRXAT.js} +1 -1
- package/dist/chunks/ls-ZL4DBDXR.js +8 -0
- package/dist/chunks/mutate-C6FYX2DM.js +9 -0
- package/dist/chunks/{notifications-557GW5KI.js → notifications-F7GGQGPQ.js} +1 -1
- package/dist/chunks/open-EX4PGTAE.js +7 -0
- package/dist/chunks/{openapi-IVXUCJPM.js → openapi-JGYEFJJV.js} +1 -1
- package/dist/chunks/{permissions-2XHSDRNE.js → permissions-KSPXNTFT.js} +1 -1
- package/dist/chunks/plugin-offer-4U77LNYA.js +9 -0
- package/dist/chunks/prompt-missing-credentials-JJP6AV5V.js +7 -0
- package/dist/chunks/publish-UZES2VJC.js +15 -0
- package/dist/chunks/pull-WUTJTCOT.js +7 -0
- package/dist/chunks/purchase-domain-if-available-XMNJGSPL.js +7 -0
- package/dist/chunks/push-ST6KQ2OK.js +7 -0
- package/dist/chunks/{query-JA5OWDSP.js → query-XCRX43SR.js} +1 -1
- package/dist/chunks/reauthenticate-LRJ5APNU.js +7 -0
- package/dist/chunks/reorder-QSZPOIBU.js +10 -0
- package/dist/chunks/reply-CAWLLEJ6.js +9 -0
- package/dist/chunks/resolve-GO4RFRQY.js +12 -0
- package/dist/chunks/resolve-agent-team-OGT4SLRJ.js +7 -0
- package/dist/chunks/{resolve-deployment-framework-preset-JPT2MRPA.js → resolve-deployment-framework-preset-AXXYBFCL.js} +1 -1
- package/dist/chunks/restore-NHHAVT4H.js +16 -0
- package/dist/chunks/rm-5FFPHHK6.js +8 -0
- package/dist/chunks/rm-7WHWMHAY.js +8 -0
- package/dist/chunks/rm-IFTLVW4R.js +8 -0
- package/dist/chunks/rm-TDUKZY7D.js +8 -0
- package/dist/chunks/rm-XIN5CPXB.js +8 -0
- package/dist/chunks/routes-P6LKQCWH.js +7 -0
- package/dist/chunks/rule-inspect-4EIDKQL6.js +8 -0
- package/dist/chunks/{schema-OV4SUO52.js → schema-NSGCBPHF.js} +1 -1
- package/dist/chunks/schema-NYKJCOCR.js +14 -0
- package/dist/chunks/select-org-AZVHP7AQ.js +7 -0
- package/dist/chunks/set-OC6KN3G4.js +7 -0
- package/dist/chunks/setup-and-link-WEXKJDAQ.js +7 -0
- package/dist/chunks/{skills-6EFE7KH7.js → skills-4J2NC2QI.js} +2 -2
- package/dist/chunks/tags-CCM7IGNC.js +7 -0
- package/dist/chunks/token-W6P2KNI5.js +7 -0
- package/dist/chunks/token-util-JDQI37VN.js +7 -0
- package/dist/chunks/{types-2DDQTYAO.js → types-SK6J2HFE.js} +1 -1
- package/dist/chunks/{update-XUMH6CAJ.js → update-TFDQQXYZ.js} +1 -1
- package/dist/chunks/zod-2C2SXNIK.js +7 -0
- package/dist/commands/build/index.js +1 -1
- package/dist/commands/deploy/index.js +7 -7
- package/dist/commands/dev/index.js +17 -15
- package/dist/commands/env/index.js +8 -8
- package/dist/commands/link/index.js +1 -1
- package/dist/commands/list/index.js +1 -1
- package/dist/commands/project/index.js +113 -0
- package/dist/commands-account.js +209 -0
- package/dist/commands-ai.js +200 -0
- package/dist/commands-blob.js +107 -0
- package/dist/commands-core.js +222 -0
- package/dist/commands-deployments.js +84 -0
- package/dist/commands-flags.js +377 -0
- package/dist/commands-integrations.js +143 -0
- package/dist/commands-observability.js +93 -0
- package/dist/commands-routing.js +273 -0
- package/dist/index.js +5 -5
- package/dist/internal-build-worker.js +1 -1
- package/dist/internal-build.js +2 -2
- package/dist/root-help-commands.mjs +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +61 -59
- package/dist/chunks/add-2HOGPYWC.js +0 -8
- package/dist/chunks/add-2RYLJ442.js +0 -8
- package/dist/chunks/add-PAQE7CT2.js +0 -8
- package/dist/chunks/build-77Q2YPHO.js +0 -7
- package/dist/chunks/chunk-36N6VMW4.js +0 -7
- package/dist/chunks/chunk-3GXZPT7T.js +0 -7
- package/dist/chunks/chunk-3L4MAGRI.js +0 -31
- package/dist/chunks/chunk-732WJANV.js +0 -15
- package/dist/chunks/chunk-AW7DEWIM.js +0 -7
- package/dist/chunks/chunk-BHWEIKSP.js +0 -10
- package/dist/chunks/chunk-BJ5APZ6X.js +0 -7
- package/dist/chunks/chunk-BZQ7YWSB.js +0 -10
- package/dist/chunks/chunk-CLKHGKJA.js +0 -7
- package/dist/chunks/chunk-FRSHC2HN.js +0 -7
- package/dist/chunks/chunk-IMMMID5G.js +0 -7
- package/dist/chunks/chunk-INDGZ3JK.js +0 -30
- package/dist/chunks/chunk-KNTBWMVA.js +0 -7
- package/dist/chunks/chunk-MIKNK3B6.js +0 -7
- package/dist/chunks/chunk-MVCAUS4F.js +0 -36
- package/dist/chunks/chunk-O3AL3QFA.js +0 -7
- package/dist/chunks/chunk-ODB7LEAO.js +0 -7
- package/dist/chunks/chunk-PS3KKHSI.js +0 -7
- package/dist/chunks/chunk-R3MRIQMO.js +0 -7
- package/dist/chunks/chunk-RAN5LUZY.js +0 -7
- package/dist/chunks/chunk-RH2SQQWH.js +0 -10
- package/dist/chunks/chunk-RUOOZ574.js +0 -7
- package/dist/chunks/chunk-UMUPJDWU.js +0 -7
- package/dist/chunks/chunk-VWK26HHN.js +0 -7
- package/dist/chunks/chunk-WKC7S5IW.js +0 -9
- package/dist/chunks/chunk-XBTLXKOI.js +0 -7
- package/dist/chunks/chunk-XDKCDGJF.js +0 -25
- package/dist/chunks/chunk-YNOLLMOG.js +0 -9
- package/dist/chunks/chunk-YTDK6AHS.js +0 -7
- package/dist/chunks/chunk-ZVRKM3UD.js +0 -12
- package/dist/chunks/clear-HPHGW2CD.js +0 -8
- package/dist/chunks/compile-vercel-config-YG2E5LXN.js +0 -7
- package/dist/chunks/config-PZ7HFZQZ.js +0 -8
- package/dist/chunks/connect-git-provider-WEFO2ESM.js +0 -7
- package/dist/chunks/delete-UPHMMYEJ.js +0 -10
- package/dist/chunks/delete-Z7PXYHTL.js +0 -9
- package/dist/chunks/detect-services-ZYHOOBMO.js +0 -7
- package/dist/chunks/disable-34LCZPFL.js +0 -7
- package/dist/chunks/discard-HDUCYAHG.js +0 -14
- package/dist/chunks/edit-4F7DADVN.js +0 -9
- package/dist/chunks/edit-5WKAHKCW.js +0 -8
- package/dist/chunks/enable-YV6I32W6.js +0 -7
- package/dist/chunks/fetch-proxy-OC6B22AW.js +0 -7
- package/dist/chunks/future-N2ZTDYVW.js +0 -7
- package/dist/chunks/generate-cert-for-deploy-ORS7XL64.js +0 -7
- package/dist/chunks/image-WTWQT7A4.js +0 -7
- package/dist/chunks/import-builders-XBGAW4MC.js +0 -7
- package/dist/chunks/inspect-ISRYYL7L.js +0 -13
- package/dist/chunks/inspect-MEYRAEVT.js +0 -9
- package/dist/chunks/list-O7FAMXMT.js +0 -12
- package/dist/chunks/login-KNE2BGUB.js +0 -9
- package/dist/chunks/login-NCAGHBZD.js +0 -7
- package/dist/chunks/logs-7H5XDI44.js +0 -7
- package/dist/chunks/ls-RI6BNJO7.js +0 -8
- package/dist/chunks/ls-UJHETSDA.js +0 -11
- package/dist/chunks/mutate-QHSLJCQU.js +0 -9
- package/dist/chunks/open-IYLA5OZF.js +0 -7
- package/dist/chunks/prompt-missing-credentials-BLT57RIR.js +0 -7
- package/dist/chunks/publish-MQ56IB4K.js +0 -15
- package/dist/chunks/pull-K3JVXGZM.js +0 -7
- package/dist/chunks/purchase-domain-if-available-VDMLT3J2.js +0 -7
- package/dist/chunks/push-YXUJGMP4.js +0 -7
- package/dist/chunks/reauthenticate-YZXHWSEC.js +0 -7
- package/dist/chunks/reorder-UNU63VF3.js +0 -10
- package/dist/chunks/reply-CTLC5KAK.js +0 -9
- package/dist/chunks/resolve-HTKF4MMV.js +0 -12
- package/dist/chunks/resolve-agent-team-DLIROIXX.js +0 -7
- package/dist/chunks/restore-CSZYM5WU.js +0 -16
- package/dist/chunks/rm-BGLDOP4N.js +0 -8
- package/dist/chunks/rm-O2XVUZOW.js +0 -8
- package/dist/chunks/rm-OSMI52XV.js +0 -8
- package/dist/chunks/rm-SZIT75ZY.js +0 -8
- package/dist/chunks/rm-WJERY4WM.js +0 -8
- package/dist/chunks/routes-ZNPZJERJ.js +0 -7
- package/dist/chunks/rule-inspect-NGI6XURL.js +0 -8
- package/dist/chunks/schema-JLQ7SNYR.js +0 -14
- package/dist/chunks/select-org-URO7GRAY.js +0 -7
- package/dist/chunks/set-RU227EQQ.js +0 -7
- package/dist/chunks/setup-and-link-WX6IEZZO.js +0 -7
- package/dist/chunks/tags-KJINDQSV.js +0 -7
- package/dist/commands-bulk.js +0 -1673
|
@@ -0,0 +1,8 @@
|
|
|
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{parseTeamRefs,teamRefBody}from"./chunk-LSF7FY6X.js";import{repositoryPermissionsPath}from"./chunk-DFVNL5ML.js";import{emitVcrArgParseError,resolveVcrScope,validateVcrJsonOutput}from"./chunk-4MTD47Y2.js";import{outputError}from"./chunk-RW3X523R.js";import{require_async_sema}from"./chunk-NZ2TFADV.js";import"./chunk-BUJITHGZ.js";import"./chunk-FBYA6LLM.js";import"./chunk-GD7AV7BO.js";import"./chunk-SCV7XEEO.js";import{permissionsAddSubcommand}from"./chunk-3AYYFYZG.js";import{printError}from"./chunk-G4T7VBGN.js";import"./chunk-F6FTWDLS.js";import"./chunk-MXTC4ZAQ.js";import"./chunk-FGFLTLEA.js";import{AGENT_REASON,buildCommandWithGlobalFlags,outputAgentError}from"./chunk-DGYHWXD2.js";import"./chunk-IUXSJWL3.js";import"./chunk-VBWQRK3O.js";import"./chunk-ADLBLGT3.js";import"./chunk-BBKEP7RO.js";import"./chunk-4NTBYNFR.js";import{parseArguments}from"./chunk-VOCZ34ON.js";import"./chunk-F53OKXYI.js";import{getFlagsSpecification}from"./chunk-AWMQGOS2.js";import"./chunk-FUX6LKNP.js";import"./chunk-OPORM35X.js";import"./chunk-4SAVH3H7.js";import{isAPIError}from"./chunk-6VH56CX2.js";import{packageName}from"./chunk-JESNVRVR.js";import{output_manager_default}from"./chunk-XP3FT56R.js";import"./chunk-BLUPZPAS.js";import"./chunk-RM3ZDRYE.js";import"./chunk-OO572JUC.js";import"./chunk-D3AHZ5LI.js";import"./chunk-2GHZGOWT.js";import"./chunk-YHPPP3SF.js";import"./chunk-NB2WLB3J.js";import"./chunk-ISWW3DKF.js";import"./chunk-BRQUZ5NC.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_async_sema=__toESM(require_async_sema(),1);var USAGE="vcr permissions <repository> add <team>[,<team>...]";async function add(client,argv,telemetry){let parsedArgs;try{parsedArgs=parseArguments(argv,getFlagsSpecification(permissionsAddSubcommand.options))}catch(err){return emitVcrArgParseError(client,err,USAGE),printError(err),2}let fr=validateVcrJsonOutput(client,parsedArgs.flags);if(typeof fr=="number")return fr;let repository=parsedArgs.args[0],teamRefs=parseTeamRefs(parsedArgs.args.slice(2)),project=parsedArgs.flags["--project"];if(telemetry.trackCliOptionProject(project),telemetry.trackCliOptionFormat(parsedArgs.flags["--format"]),teamRefs.length===0)return outputAgentError(client,{status:"error",reason:AGENT_REASON.MISSING_ARGUMENTS,message:`Missing team. Example: ${packageName} vcr permissions ${repository} add team_1a2b3c4d`,next:[{command:buildCommandWithGlobalFlags(client.argv,USAGE),when:"Replace <team> with a team id or slug (comma-separate multiple teams)"}]},2),outputError(client,fr.jsonOutput,"MISSING_ARGUMENTS",`Usage: \`vercel ${USAGE}\``);let scope=await resolveVcrScope(client,{project,jsonOutput:fr.jsonOutput});if(typeof scope=="number")return scope;let path=repositoryPermissionsPath(scope,repository),added=[],failed=[];output_manager_default.spinner(`Sharing ${repository} with ${teamRefs.length===1?teamRefs[0]:`${teamRefs.length} teams`}...`);let sema=new import_async_sema.default(10),results;try{results=await Promise.all(teamRefs.map(async team=>{await sema.acquire();try{let result=await client.fetch(path,{method:"POST",body:teamRefBody(team)});return{ok:!0,team,permission:result.permission}}catch(err){if(!isAPIError(err))throw err;let message=err.serverMessage||`API error (${err.status}).`;return{ok:!1,team,failure:{team,code:err.code||"API_ERROR",message}}}finally{sema.release()}}))}finally{output_manager_default.stopSpinner()}for(let result of results)result.ok?(added.push(result.permission),fr.jsonOutput||output_manager_default.success(`Shared ${repository} with ${result.permission?.teamSlug??result.team}`)):(failed.push(result.failure),fr.jsonOutput||output_manager_default.error(`Failed to share ${repository} with ${result.team}: ${result.failure.message}`));return failed.length>0&&outputAgentError(client,{status:"error",reason:AGENT_REASON.API_ERROR,message:`Failed to share ${repository} with ${failed.map(f=>`${f.team} (${f.message})`).join(", ")}`},1),fr.jsonOutput&&client.stdout.write(`${JSON.stringify({permissions:added,failed},null,2)}
|
|
8
|
+
`),failed.length>0?1:0}export{add as default};
|
|
@@ -0,0 +1,8 @@
|
|
|
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{emitVcrArgParseError,handleVcrApiError,resolveVcrScope,validateVcrJsonOutput}from"./chunk-4MTD47Y2.js";import{outputError}from"./chunk-RW3X523R.js";import"./chunk-BUJITHGZ.js";import"./chunk-FBYA6LLM.js";import"./chunk-GD7AV7BO.js";import"./chunk-SCV7XEEO.js";import{addSubcommand}from"./chunk-ABZEMNDR.js";import"./chunk-3AYYFYZG.js";import"./chunk-76KGQU2G.js";import"./chunk-UNEGQPD3.js";import{printError}from"./chunk-G4T7VBGN.js";import"./chunk-F6FTWDLS.js";import"./chunk-MXTC4ZAQ.js";import"./chunk-FGFLTLEA.js";import{AGENT_REASON,buildCommandWithGlobalFlags,outputAgentError}from"./chunk-DGYHWXD2.js";import"./chunk-IUXSJWL3.js";import"./chunk-VBWQRK3O.js";import"./chunk-ADLBLGT3.js";import"./chunk-BBKEP7RO.js";import"./chunk-4NTBYNFR.js";import{parseArguments}from"./chunk-VOCZ34ON.js";import"./chunk-F53OKXYI.js";import{getFlagsSpecification}from"./chunk-AWMQGOS2.js";import"./chunk-FUX6LKNP.js";import"./chunk-OPORM35X.js";import"./chunk-4SAVH3H7.js";import{isAPIError}from"./chunk-6VH56CX2.js";import{packageName}from"./chunk-JESNVRVR.js";import{output_manager_default}from"./chunk-XP3FT56R.js";import"./chunk-BLUPZPAS.js";import"./chunk-RM3ZDRYE.js";import"./chunk-OO572JUC.js";import"./chunk-D3AHZ5LI.js";import"./chunk-2GHZGOWT.js";import"./chunk-YHPPP3SF.js";import"./chunk-NB2WLB3J.js";import"./chunk-ISWW3DKF.js";import"./chunk-BRQUZ5NC.js";import"./chunk-BZENIQ7N.js";async function add(client,argv,telemetry){let parsedArgs;try{parsedArgs=parseArguments(argv,getFlagsSpecification(addSubcommand.options))}catch(err){return emitVcrArgParseError(client,err,"vcr create <name> --project <name-or-id>"),printError(err),2}let fr=validateVcrJsonOutput(client,parsedArgs.flags);if(typeof fr=="number")return fr;let name=parsedArgs.args[0],project=parsedArgs.flags["--project"];if(telemetry.trackCliOptionProject(project),telemetry.trackCliOptionFormat(parsedArgs.flags["--format"]),!name)return outputAgentError(client,{status:"error",reason:AGENT_REASON.MISSING_ARGUMENTS,message:`Missing repository name. Example: ${packageName} vcr create <name>`,next:[{command:buildCommandWithGlobalFlags(client.argv,"vcr create <name>"),when:"Replace <name> with the repository name to create"}]},2),outputError(client,fr.jsonOutput,"MISSING_ARGUMENTS","Usage: `vercel vcr create <name>`");let scope=await resolveVcrScope(client,{project,jsonOutput:fr.jsonOutput});if(typeof scope=="number")return scope;let path=`/v1/vcr/repository?teamId=${encodeURIComponent(scope.teamId)}`;output_manager_default.spinner("Creating repository...");try{let created=await client.fetch(path,{method:"POST",body:{projectId:scope.projectId,name}});return fr.jsonOutput?client.stdout.write(`${JSON.stringify(created,null,2)}
|
|
8
|
+
`):output_manager_default.success(`Created repository ${created.repository?.name??name}`),0}catch(err){if(isAPIError(err))return handleVcrApiError(client,err,fr.jsonOutput,{retry:{command:buildCommandWithGlobalFlags(client.argv,"vcr ls"),when:"List existing repositories (a name conflict means it already exists)"}});throw err}finally{output_manager_default.stopSpinner()}}export{add as default};
|
|
@@ -0,0 +1,8 @@
|
|
|
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{printRuleMutationReceipt}from"./chunk-SXOSF4O6.js";import"./chunk-3XW7N4W3.js";import{resolveRulesProject,resolveRulesTeam}from"./chunk-JVKIWEPJ.js";import"./chunk-LH7X2ZJQ.js";import{emitRulesArgParseError,getBodyType,handleRulesApiError,outputRulesError,readRuleBody,rulesCollectionPath}from"./chunk-EEEYN6B4.js";import"./chunk-GHAY4PSD.js";import"./chunk-RW3X523R.js";import"./chunk-ID663OJ7.js";import"./chunk-HRR57QNP.js";import"./chunk-GZNDA6SV.js";import"./chunk-PFD7LETF.js";import{monitorsAddSubcommand}from"./chunk-QZX7VG2V.js";import"./chunk-773GOZIR.js";import{printError}from"./chunk-G4T7VBGN.js";import"./chunk-67GZ5REA.js";import"./chunk-BS32OUOC.js";import"./chunk-F6FTWDLS.js";import"./chunk-MXTC4ZAQ.js";import"./chunk-FGFLTLEA.js";import"./chunk-DGYHWXD2.js";import"./chunk-IUXSJWL3.js";import"./chunk-VBWQRK3O.js";import"./chunk-ADLBLGT3.js";import"./chunk-BBKEP7RO.js";import"./chunk-4NTBYNFR.js";import{parseArguments}from"./chunk-VOCZ34ON.js";import"./chunk-F53OKXYI.js";import{getFlagsSpecification,validateJsonOutput}from"./chunk-AWMQGOS2.js";import"./chunk-FUX6LKNP.js";import"./chunk-OPORM35X.js";import"./chunk-4SAVH3H7.js";import{isAPIError}from"./chunk-6VH56CX2.js";import"./chunk-JESNVRVR.js";import{output_manager_default}from"./chunk-XP3FT56R.js";import"./chunk-BLUPZPAS.js";import"./chunk-RM3ZDRYE.js";import"./chunk-OO572JUC.js";import"./chunk-D3AHZ5LI.js";import"./chunk-2GHZGOWT.js";import"./chunk-YHPPP3SF.js";import"./chunk-NB2WLB3J.js";import"./chunk-ISWW3DKF.js";import"./chunk-BRQUZ5NC.js";import"./chunk-BZENIQ7N.js";function applyScopeFlag(client,body,type,scope,flags,jsonOutput){if(Object.hasOwn(body,"ruleScope"))return flags["--project"]||flags["--all"]?outputRulesError(client,jsonOutput,"SCOPE_CONFLICT","Specify monitor scope either in the body or with --project/--all, not both."):void 0;if(flags["--project"]){body.ruleScope=type==="custom"?{type:"project",projectId:scope.projectId}:{type:"include",projectIds:[scope.projectId]};return}if(flags["--all"]){if(type==="custom")return outputRulesError(client,jsonOutput,"INVALID_SCOPE","Custom monitors must target one project. Use --project <name-or-id>.");body.ruleScope={type:"all"};return}return outputRulesError(client,jsonOutput,"MISSING_SCOPE","Missing monitor scope. Add ruleScope to the body, or pass --project or --all.")}async function resolveCreateScope(client,flags,jsonOutput){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,"monitors add"):resolveRulesTeam(client,jsonOutput)}async function add(client,argv,api){let parsedArgs;try{parsedArgs=parseArguments(argv,getFlagsSpecification(monitorsAddSubcommand.options))}catch(error){return emitRulesArgParseError(client,error,"monitors add --project <name-or-id> --body <path>"),printError(error),2}let flags=parsedArgs.flags,format=validateJsonOutput(flags);if(!format.valid)return outputRulesError(client,!1,"INVALID_ARGUMENTS",format.error);if(!flags["--body"])return outputRulesError(client,format.jsonOutput,"MISSING_ARGUMENTS","Missing required flag: --body <PATH>.");let body=readRuleBody(client,flags["--body"],format.jsonOutput);if(typeof body=="number")return body;let type=getBodyType(body);if(!type)return outputRulesError(client,format.jsonOutput,"INVALID_RULE_TYPE","Create body must set a supported monitor type.");if(Object.hasOwn(body,"ruleScope")&&(flags["--project"]||flags["--all"]))return outputRulesError(client,format.jsonOutput,"SCOPE_CONFLICT","Specify monitor scope either in the body or with --project/--all, not both.");if(type==="custom"&&flags["--all"])return outputRulesError(client,format.jsonOutput,"INVALID_SCOPE","Custom monitors must target one project. Use --project <name-or-id>.");let scope=await resolveCreateScope(client,flags,format.jsonOutput);if(typeof scope=="number")return scope;let scopeError=applyScopeFlag(client,body,type,scope,flags,format.jsonOutput);if(scopeError!==void 0)return scopeError;output_manager_default.spinner("Creating monitor\u2026");try{let response=await client.fetch(rulesCollectionPath(api,scope.teamId),{method:"POST",body});return format.jsonOutput?client.stdout.write(`${JSON.stringify(response,null,2)}
|
|
8
|
+
`):printRuleMutationReceipt("Created",response[api.itemKey],client.argv),0}catch(error){if(isAPIError(error))return handleRulesApiError(client,error,format.jsonOutput);throw error}finally{output_manager_default.stopSpinner()}}export{add as default};
|
|
@@ -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{DEFAULT_TAG,buildRepositoryReference,parseNameArg,validateImageParts}from"./chunk-HEGJZJO7.js";import{VCR_ENGINES,emitVcrArgParseError,isBuildxAvailable,isEngineInstalled,pushCompressionArgs,reportEngineCommandFailure,reportEnginePushFailure,resolveRegistry,resolveVcrScope,runEngine,splitPassthrough,validateVcrChoice}from"./chunk-4MTD47Y2.js";import{outputError}from"./chunk-RW3X523R.js";import"./chunk-BUJITHGZ.js";import"./chunk-FBYA6LLM.js";import"./chunk-GD7AV7BO.js";import"./chunk-SCV7XEEO.js";import{buildSubcommand}from"./chunk-ABZEMNDR.js";import"./chunk-3AYYFYZG.js";import"./chunk-76KGQU2G.js";import"./chunk-UNEGQPD3.js";import{printError}from"./chunk-G4T7VBGN.js";import"./chunk-F6FTWDLS.js";import"./chunk-MXTC4ZAQ.js";import"./chunk-FGFLTLEA.js";import{AGENT_REASON,buildCommandWithGlobalFlags,outputAgentError}from"./chunk-DGYHWXD2.js";import"./chunk-IUXSJWL3.js";import"./chunk-VBWQRK3O.js";import"./chunk-ADLBLGT3.js";import"./chunk-BBKEP7RO.js";import"./chunk-4NTBYNFR.js";import{parseArguments}from"./chunk-VOCZ34ON.js";import"./chunk-F53OKXYI.js";import{getFlagsSpecification}from"./chunk-AWMQGOS2.js";import"./chunk-FUX6LKNP.js";import"./chunk-OPORM35X.js";import"./chunk-4SAVH3H7.js";import"./chunk-6VH56CX2.js";import"./chunk-JESNVRVR.js";import{output_manager_default}from"./chunk-XP3FT56R.js";import"./chunk-BLUPZPAS.js";import"./chunk-RM3ZDRYE.js";import"./chunk-OO572JUC.js";import"./chunk-D3AHZ5LI.js";import"./chunk-2GHZGOWT.js";import"./chunk-YHPPP3SF.js";import"./chunk-NB2WLB3J.js";import"./chunk-ISWW3DKF.js";import"./chunk-BRQUZ5NC.js";import"./chunk-BZENIQ7N.js";var DEFAULT_PLATFORM="linux/amd64";async function build(client,telemetry){let{own,passthrough}=splitPassthrough(client.argv),parsedArgs;try{parsedArgs=parseArguments(own,getFlagsSpecification(buildSubcommand.options))}catch(err){return emitVcrArgParseError(client,err,"vcr build <engine> [path] [name[:tag]]"),printError(err),2}let[engineArg,pathArg,nameArg]=parsedArgs.args.slice(2),project=parsedArgs.flags["--project"],platform=parsedArgs.flags["--platform"],push=!!parsedArgs.flags["--push"];if(telemetry.trackCliArgumentEngine(engineArg),telemetry.trackCliArgumentPath(pathArg),telemetry.trackCliArgumentName(nameArg),telemetry.trackCliOptionProject(project),telemetry.trackCliOptionPlatform(platform),telemetry.trackCliFlagPush(push),!engineArg){let message=`Missing engine. Choose one of: ${VCR_ENGINES.join(", ")}.`;return outputAgentError(client,{status:"error",reason:AGENT_REASON.MISSING_ARGUMENTS,message,next:[{command:buildCommandWithGlobalFlags(client.argv,"vcr build docker"),when:"Replace docker with the container tool you use"}]},2),outputError(client,!1,"MISSING_ARGUMENTS",message)}let choiceError=validateVcrChoice(client,"engine",engineArg,VCR_ENGINES,!1);if(typeof choiceError=="number")return choiceError;let engine=engineArg;if(!isEngineInstalled(engine)){let message=`\`${engine}\` is not installed or not on your PATH. Install it and try again.`;return outputAgentError(client,{status:"error",reason:"engine_not_found",message},1),outputError(client,!1,"ENGINE_NOT_FOUND",message)}let scope=await resolveVcrScope(client,{project,jsonOutput:!1});if(typeof scope=="number")return scope;let parsed=parseNameArg(nameArg,scope.projectName);if("error"in parsed)return outputAgentError(client,{status:"error",reason:AGENT_REASON.INVALID_ARGUMENTS,message:parsed.error},2),outputError(client,!1,"INVALID_ARGUMENTS",parsed.error);let validationError=validateImageParts(parsed);if(validationError)return outputAgentError(client,{status:"error",reason:AGENT_REASON.INVALID_ARGUMENTS,message:validationError},2),outputError(client,!1,"INVALID_ARGUMENTS",validationError);let ref=`${buildRepositoryReference({registry:resolveRegistry(),teamSlug:scope.teamSlug,projectName:scope.projectName,repository:parsed.repository})}:${parsed.tag??DEFAULT_TAG}`,contextPath=pathArg??".",buildPlatform=platform??DEFAULT_PLATFORM;if(push&&engine==="docker"&&await isBuildxAvailable()){let outputSpec=`type=image,name=${ref},push=true,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true`,engineArgs2=["buildx","build","--platform",buildPlatform,"--output",outputSpec,...passthrough,contextPath];output_manager_default.log(`Running: ${engine} ${engineArgs2.join(" ")}`);let result2=await runEngine(engine,engineArgs2,{cwd:client.cwd,captureStderr:!0});return result2.exitCode!==0?reportEnginePushFailure(client,engine,"buildx build",result2):(output_manager_default.success(`Built and pushed ${ref} (zstd compression)`),0)}push&&engine==="docker"&&output_manager_default.warn("Docker Buildx is not available; building and pushing without zstd compression. Install Buildx for smaller, faster image pushes.");let engineArgs=["build","--platform",buildPlatform,"--tag",ref,...passthrough,contextPath];output_manager_default.log(`Running: ${engine} ${engineArgs.join(" ")}`);let result=await runEngine(engine,engineArgs,{cwd:client.cwd});if(result.exitCode!==0)return reportEngineCommandFailure(client,engine,"build",result);if(!push)return output_manager_default.success(`Built ${ref}`),output_manager_default.log(`Push it with \`${buildCommandWithGlobalFlags(client.argv,`vcr push ${engine}${nameArg?` ${nameArg}`:""}`)}\`.`),0;let pushArgs=["push",...pushCompressionArgs(engine),ref];output_manager_default.log(`Running: ${engine} ${pushArgs.join(" ")}`);let pushResult=await runEngine(engine,pushArgs,{cwd:client.cwd,captureStderr:!0});if(pushResult.exitCode!==0)return reportEnginePushFailure(client,engine,"push",pushResult);let compressed=engine!=="docker";return output_manager_default.success(`Built and pushed ${ref}${compressed?" (zstd compression)":""}`),0}export{build 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{getGlobalPathConfig}from"./chunk-
|
|
7
|
+
import{getGlobalPathConfig}from"./chunk-BBKEP7RO.js";import{output_manager_default}from"./chunk-XP3FT56R.js";var OPENAPI_URL="https://openapi.vercel.sh/",SSO_API_URL="https://vercel.com/sso-api",CACHE_FILE="openapi-spec.json",CACHE_TTL_MS=864e5,FETCH_TIMEOUT_MS=1e4,MAX_OPENAPI_SPEC_BYTES=52428800,VERCEL_CLI_ROOT_DISPLAY_KEY="__root__";async function readSpecResponse(response,url,maxBytes=52428800){let contentLength=response.headers.get("content-length");if(contentLength){let bytes=Number(contentLength);if(Number.isFinite(bytes)&&bytes>maxBytes)throw new Error(`OpenAPI spec from ${url} exceeds the ${maxBytes} byte limit.`)}if(!response.body)throw new Error(`OpenAPI spec from ${url} returned an empty response.`);let reader=response.body.getReader(),chunks=[],totalBytes=0;for(;;){let{done,value}=await reader.read();if(done)break;if(value){if(totalBytes+=value.byteLength,totalBytes>maxBytes)throw await reader.cancel(),new Error(`OpenAPI spec from ${url} exceeds the ${maxBytes} byte limit.`);chunks.push(value)}}let buffer=new Uint8Array(totalBytes),offset=0;for(let chunk of chunks)buffer.set(chunk,offset),offset+=chunk.byteLength;return JSON.parse(new TextDecoder().decode(buffer))}var ALLOWED_SPEC_HOSTS=["vercel.sh","vercel.tools"];function assertAllowedSpecUrl(specUrl){let parsedUrl=new URL(specUrl);if(parsedUrl.protocol!=="https:")throw new Error("OpenAPI spec URL must use https");if(!ALLOWED_SPEC_HOSTS.some(host=>isHostOrSubdomain(parsedUrl,host)))throw new Error("OpenAPI spec URL must be on an allowed origin.");return parsedUrl}function isHostOrSubdomain(url,host){return url.hostname===host||url.hostname.endsWith(`.${host}`)}import{join}from"path";import{readFile,writeFile,mkdir}from"fs/promises";var OpenApiCache=class{constructor(options){this.spec=null;this.error=null;this.cachePath=join(getGlobalPathConfig(),CACHE_FILE),this.specUrl=options?.specUrl,this.fetchSpecUrl=options?.fetchSpecUrl}get isLoaded(){return this.spec!==null}get loadError(){return this.error}async load(forceRefresh=!1){return this.loadSpec(forceRefresh)}async loadSpec(forceRefresh=!1){if(this.error=null,this.specUrl)return this.loadCustomSpec(this.specUrl);if(!forceRefresh){let cached=await this.readCache(this.cachePath);if(cached&&!this.isExpired(cached.fetchedAt))return output_manager_default.debug("Using cached OpenAPI spec"),this.spec=cached.spec,!0}try{return output_manager_default.debug("Fetching OpenAPI spec from "+OPENAPI_URL),this.spec=await this.fetchSpec(OPENAPI_URL),await this.saveCache(this.cachePath,this.spec),!0}catch(err){output_manager_default.debug(`Failed to fetch OpenAPI spec: ${err}`);let stale=await this.readCache(this.cachePath);return stale?(output_manager_default.debug("Using stale cached OpenAPI spec"),this.spec=stale.spec,!0):!1}}async loadCustomSpec(specUrl){try{assertAllowedSpecUrl(specUrl),output_manager_default.debug("Fetching OpenAPI spec from "+specUrl);let spec=this.fetchSpecUrl?await this.fetchSpecUrl(specUrl):await this.fetchSpec(specUrl);return spec?(this.validateSpec(spec,specUrl),this.spec=spec,!!this.spec):(this.error=`Could not load OpenAPI spec from ${specUrl}.`,!1)}catch(err){let message=err instanceof Error?err.message:String(err);return this.error=message,output_manager_default.debug(`Failed to fetch OpenAPI spec from ${specUrl}: ${message}`),!1}}async loadWithSpinner(forceRefresh=!1){output_manager_default.spinner(forceRefresh?"Refreshing API endpoints...":"Loading API endpoints...");let success=await this.load(forceRefresh);return output_manager_default.stopSpinner(),success}getEndpoints(){this.ensureLoaded();let endpoints=this.extractEndpoints();return this.sortEndpoints(endpoints)}getBodyFields(endpoint){if(this.ensureLoaded(),!endpoint.requestBody?.content)return[];let jsonContent=endpoint.requestBody.content["application/json"];if(!jsonContent?.schema)return[];let schema=this.resolveSchemaRef(jsonContent.schema);if(!schema?.properties)return[];let requiredFields=new Set(schema.required||[]),fields=[];for(let[name,propSchema]of Object.entries(schema.properties)){let resolvedProp=this.resolveSchemaRef(propSchema),enumValues=resolvedProp?.enum||propSchema.enum;if(!enumValues&&(resolvedProp?.type==="array"||propSchema.type==="array")){let items=resolvedProp?.items||propSchema.items;items&&(enumValues=this.resolveSchemaRef(items)?.enum||items.enum)}fields.push({name,required:requiredFields.has(name),description:resolvedProp?.description||propSchema.description,type:resolvedProp?.type||propSchema.type,enumValues})}return fields.sort((a,b)=>a.required!==b.required?a.required?-1:1:a.name.localeCompare(b.name)),fields}getDisplayColumns(endpoint){this.ensureLoaded();let pathItem=this.spec.paths[endpoint.path];if(!pathItem)return null;let operation=pathItem[endpoint.method.toLowerCase()];if(!operation?.responses)return null;let ok=operation.responses[200]||operation.responses[201];if(!ok)return null;let jsonContent=ok.content?.["application/json"];return jsonContent?.schema?this.findDisplayColumns(jsonContent.schema):null}findDisplayColumns(schema){let xCli=schema["x-vercel-cli"];if(xCli?.displayColumns)return xCli.displayColumns;for(let key of["oneOf","allOf","anyOf"]){let variants=schema[key];if(variants)for(let sub of variants){let found=this.findDisplayColumns(sub);if(found)return found}}return null}ensureLoaded(){if(!this.spec)throw new Error("OpenAPI spec not loaded. Call load() or loadWithSpinner() first.")}async readCache(cachePath){try{let content=await readFile(cachePath,"utf-8");return JSON.parse(content)}catch{return null}}async saveCache(cachePath,spec){let cached={fetchedAt:Date.now(),spec},dir=join(cachePath,"..");await mkdir(dir,{recursive:!0}),await writeFile(cachePath,JSON.stringify(cached)),output_manager_default.debug("Saved OpenAPI spec to cache")}async fetchSpec(url){let controller=new AbortController,timeoutId=setTimeout(()=>controller.abort(),1e4);try{let response=await fetch(url,{signal:controller.signal});if(!response.ok)throw new Error(`Failed to fetch OpenAPI spec: ${response.status}`);let spec=await readSpecResponse(response,url);return this.validateSpec(spec,url),spec}finally{clearTimeout(timeoutId)}}validateSpec(spec,url){if(!spec||typeof spec!="object")throw new Error(`Invalid OpenAPI spec from ${url}: expected a JSON object.`);if(typeof spec.openapi!="string"||!spec.openapi.startsWith("3."))throw new Error(`Invalid OpenAPI spec from ${url}: expected an OpenAPI 3.x document with an "openapi" field.`);if(!spec.paths||typeof spec.paths!="object")throw new Error(`Invalid OpenAPI spec from ${url}: expected a "paths" object.`);for(let path of Object.keys(spec.paths))if(!path.startsWith("/")||path.startsWith("//"))throw new Error(`Invalid OpenAPI spec from ${url}: path "${path}" must be a relative API path.`)}isExpired(fetchedAt){return Date.now()-fetchedAt>864e5}sortEndpoints(endpoints){return endpoints.sort((a,b)=>{let pathCompare=a.path.localeCompare(b.path);return pathCompare!==0?pathCompare:a.method.localeCompare(b.method)})}extractEndpoints(){let endpoints=[];for(let[path,pathItem]of Object.entries(this.spec.paths)){let methods=["get","post","put","patch","delete"];for(let method of methods){let operation=pathItem[method];if(operation){let pathParams=pathItem.parameters||[],opParams=operation.parameters||[],allParams=[...pathParams,...opParams];endpoints.push({path,method:method.toUpperCase(),summary:operation.summary||pathItem.summary||"",description:operation.description||pathItem.description||"",operationId:operation.operationId||"",tags:operation.tags||[],parameters:allParams,requestBody:operation.requestBody})}}}return endpoints}resolveSchemaRef(schema,spec=this.spec){if(schema){if(schema.$ref){let match=schema.$ref.match(/^#\/components\/schemas\/(.+)$/);if(match&&spec.components?.schemas){let resolved=spec.components.schemas[match[1]];return this.resolveSchemaRef(resolved,spec)}return}if(schema.allOf&&schema.allOf.length>0){let merged={type:"object",properties:{},required:[]};for(let subSchema of schema.allOf){let resolved=this.resolveSchemaRef(subSchema,spec);resolved&&(resolved.properties&&(merged.properties={...merged.properties,...resolved.properties}),resolved.required&&(merged.required=[...merged.required||[],...resolved.required]))}return merged}return schema}}};async function matchesCliApiTag(tagHint){if(!tagHint||tagHint.startsWith("-")||tagHint.includes("/"))return!1;let cache=new OpenApiCache;if(!await cache.load())return!1;let endpoints=cache.getEndpoints(),lower=tagHint.toLowerCase();return endpoints.some(ep=>ep.tags.some(t=>t.toLowerCase()===lower))}async function resolveOpenApiTagForProjectsCli(){return await matchesCliApiTag("projects")?"projects":await matchesCliApiTag("project")?"project":null}async function resolveOpenApiTagForTeamsCli(){return await matchesCliApiTag("teams")?"teams":await matchesCliApiTag("team")?"team":null}export{OPENAPI_URL,SSO_API_URL,CACHE_FILE,CACHE_TTL_MS,FETCH_TIMEOUT_MS,MAX_OPENAPI_SPEC_BYTES,VERCEL_CLI_ROOT_DISPLAY_KEY,readSpecResponse,assertAllowedSpecUrl,OpenApiCache,matchesCliApiTag,resolveOpenApiTagForProjectsCli,resolveOpenApiTagForTeamsCli};
|