@vercel/cli-support 66.4.0 → 66.5.0-snapshot-f10b9946b10d
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-563RV6JX.js +8 -0
- package/dist/chunks/add-HRB6XY33.js +8 -0
- package/dist/chunks/add-IUTGTBA4.js +8 -0
- package/dist/chunks/alerts-CIQQJC4S.js +8 -0
- package/dist/chunks/build-OMIYCGMR.js +7 -0
- package/dist/chunks/{chunk-FHMMYUAF.js → chunk-2AU6O6Z5.js} +1 -1
- package/dist/chunks/{chunk-VNY6WA2E.js → chunk-2D5PTFAY.js} +1 -1
- package/dist/chunks/{chunk-AJGLWQWP.js → chunk-2G2SALNN.js} +1 -1
- package/dist/chunks/{chunk-XRPGN3XZ.js → chunk-2OMI3IUW.js} +1 -1
- package/dist/chunks/{chunk-4ZIJL4U6.js → chunk-2RRZCRWX.js} +1 -1
- package/dist/chunks/{chunk-TPMBWSAM.js → chunk-33HVDSWP.js} +1 -1
- package/dist/chunks/{chunk-E3FOLLEC.js → chunk-3A3GU62R.js} +1 -1
- package/dist/chunks/{chunk-CFQPIYKY.js → chunk-3OZCZF4N.js} +1 -1
- package/dist/chunks/chunk-4SS6W6JK.js +11 -0
- package/dist/chunks/{chunk-6PAJ6GJK.js → chunk-5J4E2W4F.js} +1 -1
- package/dist/chunks/{chunk-AZZLV7WI.js → chunk-5O4AXCN7.js} +1 -1
- package/dist/chunks/{chunk-K5AHCH2B.js → chunk-6GE4V7MW.js} +1 -1
- package/dist/chunks/{chunk-J4ET2U4J.js → chunk-6PDKIOAO.js} +1 -1
- package/dist/chunks/{chunk-A7E3EGDM.js → chunk-76DSBD4X.js} +1 -1
- package/dist/chunks/{chunk-LKQACPVL.js → chunk-7AVHDJSP.js} +4 -4
- package/dist/chunks/{chunk-LD7EQJRG.js → chunk-7W565DJB.js} +1 -1
- package/dist/chunks/{chunk-5NLEENEL.js → chunk-ACN6DBTC.js} +1 -1
- package/dist/chunks/{chunk-CMHY2UFZ.js → chunk-AFHZC47H.js} +1 -1
- package/dist/chunks/{chunk-6JJ6MZW2.js → chunk-AIXEVICT.js} +1 -1
- package/dist/chunks/{chunk-O42P2UDX.js → chunk-BCAI7MED.js} +1 -1
- package/dist/chunks/{chunk-NKWA7NQP.js → chunk-C335SWOB.js} +1 -1
- package/dist/chunks/{chunk-LYL26S3N.js → chunk-CINNNQDJ.js} +1 -1
- package/dist/chunks/{chunk-TBWFT22U.js → chunk-CSCUVSJM.js} +1 -1
- package/dist/chunks/{chunk-ZKQ47ZXI.js → chunk-D2E4COIY.js} +1 -1
- package/dist/chunks/{chunk-OMG2DOCL.js → chunk-D2TVI7KK.js} +1 -1
- package/dist/chunks/{chunk-QHICDCEC.js → chunk-DEM66DOY.js} +1 -1
- package/dist/chunks/{chunk-JWKFVECK.js → chunk-DHKWTBF6.js} +1 -1
- package/dist/chunks/{chunk-Y2FVJ7YO.js → chunk-DOMBKOLJ.js} +1 -1
- package/dist/chunks/{chunk-BKVGBXIF.js → chunk-DZ77BIEV.js} +1 -1
- package/dist/chunks/{chunk-YSZREQZD.js → chunk-E4VPDMRQ.js} +1 -1
- package/dist/chunks/{chunk-5NMD7U2W.js → chunk-EAQAV7UZ.js} +1 -1
- package/dist/chunks/{chunk-YVL744ZH.js → chunk-EFFJUYYS.js} +2 -2
- package/dist/chunks/chunk-EFP3LK4G.js +8 -0
- package/dist/chunks/{chunk-IG5ACFU6.js → chunk-F4UEGELU.js} +1 -1
- package/dist/chunks/chunk-FEJD7MRH.js +7 -0
- package/dist/chunks/{chunk-I27PMO5P.js → chunk-FFN3EGSF.js} +1 -1
- package/dist/chunks/{chunk-OA27OSXW.js → chunk-FOFX7LHS.js} +1 -1
- package/dist/chunks/{chunk-JVSU3BY3.js → chunk-GB2ZWZQU.js} +1 -1
- package/dist/chunks/{chunk-WYD4BH6D.js → chunk-GUGP6OY2.js} +1 -1
- package/dist/chunks/{chunk-W4IW6A54.js → chunk-GYUNOFDD.js} +2 -2
- package/dist/chunks/{chunk-NMCZ5PDO.js → chunk-H2KNSYPR.js} +1 -1
- package/dist/chunks/{chunk-6LXXO6WG.js → chunk-IF6GA273.js} +1 -1
- package/dist/chunks/{chunk-L5APBYTA.js → chunk-JBYROCAC.js} +1 -1
- package/dist/chunks/chunk-K3MGQQEP.js +7 -0
- package/dist/chunks/{chunk-QXM4CNRK.js → chunk-KLYFOXYH.js} +1 -1
- package/dist/chunks/{chunk-MUTGN6EZ.js → chunk-KQ6X77WP.js} +1 -1
- package/dist/chunks/{chunk-2RCMLZIT.js → chunk-KRP4EMD2.js} +1 -1
- package/dist/chunks/{chunk-DMZLFZBX.js → chunk-KSGN5OCV.js} +1 -1
- package/dist/chunks/{chunk-6YGECVLI.js → chunk-L5PIUIUM.js} +1 -1
- package/dist/chunks/{chunk-HAGBKLAS.js → chunk-LNZEYUEC.js} +1 -1
- package/dist/chunks/chunk-MINTHN6C.js +7 -0
- package/dist/chunks/chunk-N6JHFCWC.js +7 -0
- package/dist/chunks/chunk-NLK7NGVP.js +7 -0
- package/dist/chunks/{chunk-SSNOY4RM.js → chunk-O7GNYVVM.js} +1 -1
- package/dist/chunks/{chunk-25B7DCD6.js → chunk-OE26EQSH.js} +1 -1
- package/dist/chunks/{chunk-S3RJKATD.js → chunk-OF32Z3UP.js} +1 -1
- package/dist/chunks/{chunk-4F2PK7MV.js → chunk-OISNKAC6.js} +1 -1
- package/dist/chunks/{chunk-Y3AAO2UW.js → chunk-OXS5VO4X.js} +1 -1
- package/dist/chunks/{chunk-D44WCAOX.js → chunk-PFOOPXTN.js} +2 -2
- package/dist/chunks/{chunk-YIL6OD24.js → chunk-PKR32I2N.js} +1 -1
- package/dist/chunks/{chunk-CO3S5MFZ.js → chunk-QGHAD5A5.js} +1 -1
- package/dist/chunks/{chunk-CYCIBBJ3.js → chunk-QRG24GJG.js} +1 -1
- package/dist/chunks/{chunk-VVSRVQJQ.js → chunk-QZJOKECY.js} +1 -1
- package/dist/chunks/{chunk-4222KNIU.js → chunk-QZKRVE44.js} +2 -2
- package/dist/chunks/{chunk-DT5HQUJV.js → chunk-R33HJGYA.js} +1 -1
- package/dist/chunks/{chunk-GVW4NA3F.js → chunk-RBW62SOU.js} +1 -1
- package/dist/chunks/chunk-RDDIWY3O.js +10 -0
- package/dist/chunks/{chunk-PY4WWD6Z.js → chunk-RVIJRFVD.js} +1 -1
- package/dist/chunks/{chunk-22XQ3FQJ.js → chunk-S4AANAHX.js} +1 -1
- package/dist/chunks/{chunk-M3Y63BLW.js → chunk-SPVOJ3HW.js} +1 -1
- package/dist/chunks/{chunk-JCCDHR3I.js → chunk-SQCVI2EG.js} +1 -1
- package/dist/chunks/{chunk-GAS6EYQH.js → chunk-SXW2G4WD.js} +2 -2
- package/dist/chunks/{chunk-7CAXN2PV.js → chunk-SYVWRGFQ.js} +1 -1
- package/dist/chunks/{chunk-D7FX3KQX.js → chunk-TC4E2TFA.js} +1 -1
- package/dist/chunks/chunk-TNQUCTJH.js +24 -0
- package/dist/chunks/{chunk-SZO73QV5.js → chunk-TSNRTRIM.js} +1 -1
- package/dist/chunks/{chunk-7HLAWGY2.js → chunk-UG3FZ5Q7.js} +1 -1
- package/dist/chunks/chunk-VF7XWPXA.js +7 -0
- package/dist/chunks/{chunk-AMOI3EAW.js → chunk-VPSR2O55.js} +4 -4
- package/dist/chunks/{chunk-7RPBEXKZ.js → chunk-VUUU4KDL.js} +1 -1
- package/dist/chunks/{chunk-BPIGFKNN.js → chunk-VZ4URN3U.js} +1 -1
- package/dist/chunks/{chunk-IF644EL7.js → chunk-W2L24GM7.js} +1 -1
- package/dist/chunks/{chunk-XUTUL2RN.js → chunk-WAFBTC45.js} +1 -1
- package/dist/chunks/{chunk-ZK4NRNJ2.js → chunk-WIF4VGYZ.js} +1 -1
- package/dist/chunks/{chunk-AG3KGTVM.js → chunk-X47GV5HM.js} +1 -1
- package/dist/chunks/{chunk-UE3YVFFX.js → chunk-X7KKWUPS.js} +1 -1
- package/dist/chunks/{chunk-CJXPUSBO.js → chunk-XAGG5BJT.js} +1 -1
- package/dist/chunks/{chunk-ZD4H7IUH.js → chunk-XBHAU2M3.js} +1 -1
- package/dist/chunks/{chunk-NWFONVGV.js → chunk-XDWAUOFO.js} +1 -1
- package/dist/chunks/{chunk-WW44HSPU.js → chunk-Y4J4STZV.js} +1 -1
- package/dist/chunks/{chunk-TCHR65QZ.js → chunk-Y77DXGGN.js} +1 -1
- package/dist/chunks/{chunk-26ZLTV7O.js → chunk-YI7NKOCU.js} +2 -2
- package/dist/chunks/{chunk-FLFZVZBL.js → chunk-YLLFLPNA.js} +1 -1
- package/dist/chunks/{chunk-TUTCJ7CX.js → chunk-YOAQNRBN.js} +1 -1
- package/dist/chunks/{chunk-IBZJP22D.js → chunk-Z2KANBOU.js} +34 -34
- package/dist/chunks/{chunk-U4J3IR2U.js → chunk-Z7WZVEPP.js} +1 -1
- package/dist/chunks/{chunk-B4PBNKLU.js → chunk-ZA5O22ZY.js} +1 -1
- package/dist/chunks/{chunk-LYBSCCZL.js → chunk-ZSGNLAAJ.js} +1 -1
- package/dist/chunks/clear-TH6G33QK.js +8 -0
- package/dist/chunks/{compile-vercel-config-TW77XH2J.js → compile-vercel-config-24IXPM4W.js} +1 -1
- package/dist/chunks/config-2SBML7OY.js +8 -0
- package/dist/chunks/config-ZSE26DSM.js +7 -0
- package/dist/chunks/{contract-3IQOORDY.js → contract-BLCQGFZK.js} +1 -1
- package/dist/chunks/delete-RGHXL4JH.js +9 -0
- package/dist/chunks/delete-ZV4SHUTR.js +10 -0
- package/dist/chunks/{describe-RRUINYLN.js → describe-442UUQIF.js} +1 -1
- package/dist/chunks/{detect-projects-WO6GTQRY.js → detect-projects-NBZSMQ5C.js} +1 -1
- package/dist/chunks/{detect-services-GQO6QEXB.js → detect-services-CRZW6FKM.js} +1 -1
- package/dist/chunks/disable-MYGA6HVS.js +7 -0
- package/dist/chunks/discard-I5TKYCDJ.js +14 -0
- package/dist/chunks/edit-KGCUTTOZ.js +8 -0
- package/dist/chunks/edit-ZRNGGRVL.js +9 -0
- package/dist/chunks/enable-NODSFDKF.js +7 -0
- package/dist/chunks/{export-JVDQWEFD.js → export-TOSUN6JO.js} +1 -1
- package/dist/chunks/future-RXI2OW2C.js +7 -0
- package/dist/chunks/generate-cert-for-deploy-7BX47IPD.js +7 -0
- package/dist/chunks/image-WKBQLUTQ.js +7 -0
- package/dist/chunks/{import-builders-3YIV3R7T.js → import-builders-I4JB6BA6.js} +1 -1
- package/dist/chunks/inspect-4Y2OD5MI.js +8 -0
- package/dist/chunks/{inspect-HUN7IHGP.js → inspect-DFYVVIJW.js} +1 -1
- package/dist/chunks/{inspect-PBHPRQKN.js → inspect-GBH7FAW6.js} +1 -1
- package/dist/chunks/inspect-STKCC3MC.js +9 -0
- package/dist/chunks/{inspect-6BOUR7QC.js → inspect-SX3QQUEQ.js} +1 -1
- package/dist/chunks/inspect-VFUV7BDM.js +13 -0
- package/dist/chunks/{list-WZIJ4LS3.js → list-4RRL326Z.js} +1 -1
- package/dist/chunks/list-6ENV2ZGG.js +12 -0
- package/dist/chunks/{list-TJTP6VMY.js → list-HD6KXAIG.js} +1 -1
- package/dist/chunks/list-MW2FV253.js +8 -0
- package/dist/chunks/login-O6NLJ42W.js +7 -0
- package/dist/chunks/login-U5VDJURN.js +9 -0
- package/dist/chunks/logs-X3KGHA3J.js +7 -0
- package/dist/chunks/ls-HRSD6VNW.js +8 -0
- package/dist/chunks/{ls-MRZ46D4E.js → ls-I767MTW4.js} +1 -1
- package/dist/chunks/ls-OLJMGFTV.js +11 -0
- package/dist/chunks/{ls-AH4LDLZK.js → ls-Q4WGEEBZ.js} +1 -1
- package/dist/chunks/{ls-FWCHBGLF.js → ls-RKOM46KV.js} +1 -1
- package/dist/chunks/{ls-7KTKLNDE.js → ls-TLEAYYXQ.js} +1 -1
- package/dist/chunks/{ls-LKOYAWGO.js → ls-VFE7PE25.js} +1 -1
- package/dist/chunks/{migrate-experimental-services-QUJ3Y5KW.js → migrate-experimental-services-7ZYHE5WA.js} +1 -1
- package/dist/chunks/mutate-BJXJON5E.js +9 -0
- package/dist/chunks/notifications-F3NRNUHQ.js +7 -0
- package/dist/chunks/open-JK42ZTLB.js +7 -0
- package/dist/chunks/openapi-NEYEIRF2.js +7 -0
- package/dist/chunks/permissions-3AQO3DCH.js +7 -0
- package/dist/chunks/{plugin-offer-5PC2WVPP.js → plugin-offer-NPJAEILN.js} +1 -1
- package/dist/chunks/prompt-missing-credentials-AHAH27TZ.js +7 -0
- package/dist/chunks/publish-7SCXBVZR.js +15 -0
- package/dist/chunks/pull-LAPD5XJG.js +7 -0
- package/dist/chunks/purchase-domain-if-available-7MI52MFD.js +7 -0
- package/dist/chunks/push-BCSGQBAM.js +7 -0
- package/dist/chunks/query-U72BDMAK.js +7 -0
- package/dist/chunks/raw-query-4UAW7M5Q.js +8 -0
- package/dist/chunks/reauthenticate-HGOLSK2M.js +7 -0
- package/dist/chunks/remove-IEEZGRB2.js +9 -0
- package/dist/chunks/reorder-YL6L6IWC.js +10 -0
- package/dist/chunks/reply-7Y5TN5UV.js +9 -0
- package/dist/chunks/resolve-C62436YM.js +12 -0
- package/dist/chunks/resolve-agent-team-SR3ALPCH.js +7 -0
- package/dist/chunks/restore-Z63JM5CN.js +16 -0
- package/dist/chunks/rm-C6QSHEA2.js +8 -0
- package/dist/chunks/rm-DDKE62T7.js +8 -0
- package/dist/chunks/rm-IUB55CCM.js +8 -0
- package/dist/chunks/rm-NZX43GMQ.js +8 -0
- package/dist/chunks/rm-UBUI7JNY.js +8 -0
- package/dist/chunks/rule-inspect-KF4BLH4K.js +8 -0
- package/dist/chunks/{schema-R5JG4UPM.js → schema-L5VCG6FJ.js} +1 -1
- package/dist/chunks/schema-P7DFLXCG.js +14 -0
- package/dist/chunks/select-org-MBBMOUK2.js +7 -0
- package/dist/chunks/set-6U4QIX7A.js +8 -0
- package/dist/chunks/set-SCKMJ7LZ.js +7 -0
- package/dist/chunks/setup-and-link-5TPDTJIN.js +7 -0
- package/dist/chunks/{skills-OA43DLRD.js → skills-ZMFZGPQL.js} +1 -1
- package/dist/chunks/tags-7M2EW6LU.js +7 -0
- package/dist/chunks/{types-CHIVX5JL.js → types-CVLZCTL2.js} +1 -1
- package/dist/chunks/{update-72MKFJ43.js → update-A727QN7H.js} +1 -1
- package/dist/chunks/usage-AL4CA45F.js +13 -0
- package/dist/chunks/{validate-config-DODT2AQL.js → validate-config-Q77XESW5.js} +1 -1
- package/dist/chunks/vercel-cli-3UQLDU2S.js +29 -0
- package/dist/commands/build/index.js +1 -1
- package/dist/commands/deploy/index.js +4 -4
- package/dist/commands/dev/index.js +4 -4
- package/dist/commands/env/index.js +12 -12
- package/dist/commands/link/index.js +1 -1
- package/dist/commands/list/index.js +1 -1
- package/dist/commands/project/index.js +14 -9
- package/dist/commands/tunnel/index.js +1 -1
- package/dist/commands-account.js +6 -6
- package/dist/commands-ai.js +18 -10
- package/dist/commands-blob.js +1 -1
- package/dist/commands-core.js +10 -10
- package/dist/commands-deployments.js +1 -1
- package/dist/commands-flags.js +1 -1
- package/dist/commands-integrations.js +1 -1
- package/dist/commands-observability.js +2 -2
- package/dist/commands-routing.js +4 -4
- package/dist/index.js +6 -6
- package/dist/internal-build.js +3 -3
- package/dist/package.json +3 -3
- package/dist/vc.js +22 -1
- package/dist/version.mjs +1 -1
- package/package.json +12 -12
- package/dist/chunks/add-5NWELDHY.js +0 -8
- package/dist/chunks/add-SIXKFK7V.js +0 -8
- package/dist/chunks/add-Y5EDLFGD.js +0 -8
- package/dist/chunks/alerts-Q2GDU27W.js +0 -8
- package/dist/chunks/build-CYUKYXMV.js +0 -7
- package/dist/chunks/chunk-2VBFQZ72.js +0 -7
- package/dist/chunks/chunk-4NV7UPZE.js +0 -7
- package/dist/chunks/chunk-6GKP6VUF.js +0 -7
- package/dist/chunks/chunk-6VFNKB5V.js +0 -24
- package/dist/chunks/chunk-DTUEHPME.js +0 -7
- package/dist/chunks/chunk-HSGWG46B.js +0 -7
- package/dist/chunks/chunk-M2GHHK7B.js +0 -11
- package/dist/chunks/chunk-PIPRXGDM.js +0 -8
- package/dist/chunks/chunk-QK5HTPNC.js +0 -10
- package/dist/chunks/chunk-QOLGACFD.js +0 -7
- package/dist/chunks/chunk-SNKYDS4V.js +0 -7
- package/dist/chunks/chunk-YFMEZ4SZ.js +0 -7
- package/dist/chunks/clear-5PKM3HQU.js +0 -8
- package/dist/chunks/config-6GAZ64VS.js +0 -7
- package/dist/chunks/config-Y77DO6JM.js +0 -8
- package/dist/chunks/delete-S5WYOZG7.js +0 -10
- package/dist/chunks/delete-WWNN35PK.js +0 -9
- package/dist/chunks/disable-LSU7JSDS.js +0 -7
- package/dist/chunks/discard-DN4GAN6A.js +0 -14
- package/dist/chunks/edit-NUFYISN6.js +0 -9
- package/dist/chunks/edit-WQCT2BTX.js +0 -8
- package/dist/chunks/enable-ILXOI3I6.js +0 -7
- package/dist/chunks/future-5BCEXRHZ.js +0 -7
- package/dist/chunks/generate-cert-for-deploy-SXTI35ZG.js +0 -7
- package/dist/chunks/image-6OR56EZV.js +0 -7
- package/dist/chunks/inspect-OWDUGXCY.js +0 -8
- package/dist/chunks/inspect-RU7PVRWQ.js +0 -9
- package/dist/chunks/inspect-WJ2A2UKB.js +0 -13
- package/dist/chunks/list-CYVRTOUA.js +0 -12
- package/dist/chunks/list-JODDYSVR.js +0 -8
- package/dist/chunks/login-4L35OD6Y.js +0 -9
- package/dist/chunks/login-W5AW34VX.js +0 -7
- package/dist/chunks/logs-M3LRI4WS.js +0 -7
- package/dist/chunks/ls-QUC3XJDN.js +0 -11
- package/dist/chunks/ls-UY36HOHA.js +0 -8
- package/dist/chunks/mutate-ETSJAFK6.js +0 -9
- package/dist/chunks/notifications-XFMP6MBZ.js +0 -7
- package/dist/chunks/open-EOOHIAZV.js +0 -7
- package/dist/chunks/openapi-H4PBISI7.js +0 -7
- package/dist/chunks/permissions-KOZS3LUK.js +0 -7
- package/dist/chunks/prompt-missing-credentials-IV5LGNNZ.js +0 -7
- package/dist/chunks/publish-E55JDFF7.js +0 -15
- package/dist/chunks/pull-TUTGA5JK.js +0 -7
- package/dist/chunks/purchase-domain-if-available-6SARYPIK.js +0 -7
- package/dist/chunks/push-UBTJMO6Q.js +0 -7
- package/dist/chunks/query-KTJNUSFP.js +0 -7
- package/dist/chunks/raw-query-D3KKMGEJ.js +0 -8
- package/dist/chunks/reauthenticate-HYQL6JW7.js +0 -7
- package/dist/chunks/remove-QERLIR4R.js +0 -9
- package/dist/chunks/reorder-UCGI2FFJ.js +0 -10
- package/dist/chunks/reply-FRHAEVBD.js +0 -9
- package/dist/chunks/resolve-Z33ONVMR.js +0 -12
- package/dist/chunks/resolve-agent-team-ER4RZEJT.js +0 -7
- package/dist/chunks/restore-LQFGPBOB.js +0 -16
- package/dist/chunks/rm-4Z5TWVJJ.js +0 -8
- package/dist/chunks/rm-AOOIB5ZS.js +0 -8
- package/dist/chunks/rm-HCFBMSNJ.js +0 -8
- package/dist/chunks/rm-PAHHUTML.js +0 -8
- package/dist/chunks/rm-QVKGQ4UB.js +0 -8
- package/dist/chunks/rule-inspect-5VM4YF7A.js +0 -8
- package/dist/chunks/schema-MUBIHAGZ.js +0 -14
- package/dist/chunks/select-org-SGALVKOW.js +0 -7
- package/dist/chunks/set-NFLZFD7O.js +0 -7
- package/dist/chunks/set-SVOTRX7Z.js +0 -8
- package/dist/chunks/setup-and-link-7SPTSXXZ.js +0 -7
- package/dist/chunks/tags-BIX4YRL3.js +0 -7
- package/dist/chunks/usage-24PRDBPS.js +0 -13
|
@@ -4,7 +4,7 @@ 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{did_you_mean_default}from"./chunk-DWZBL4NK.js";import{param}from"./chunk-3G3FQYMW.js";import{
|
|
7
|
+
import{did_you_mean_default}from"./chunk-DWZBL4NK.js";import{param}from"./chunk-3G3FQYMW.js";import{buildCorrectedCommand,suggestCorrection}from"./chunk-CINNNQDJ.js";import{shouldEmitNonInteractiveCommandError,writeAgentError}from"./chunk-4SS6W6JK.js";import{getCommandNamePlain}from"./chunk-B4KA3ZH2.js";import{output_manager_default,recordCliError}from"./chunk-AP6DZGTK.js";import{getFlagsSpecification}from"./chunk-CFJBDBYH.js";function handleCommandTypo({command,availableCommands,threshold=.7,helpCommand="--help",client}){if(!command||command.startsWith("-"))return!1;let visibleCommands=availableCommands.filter(command2=>!command2.hidden),commandNames=visibleCommands.flatMap(({name,aliases})=>[name,...aliases]),correction=suggestCorrection(command,commandNames),suggestion=correction??did_you_mean_default(command,commandNames,threshold);if(suggestion){if(client){let definition=visibleCommands.find(candidate=>candidate.name===correction||candidate.aliases.some(alias=>alias===correction)),corrected=correction?buildCorrectedCommand(client.argv,command,correction,getFlagsSpecification(definition?.options??[])):void 0,payload={status:"error",reason:"unknown_command",message:`Unknown command "${command}". Did you mean "${suggestion}"?`,hint:corrected?"Use the suggested command after replacing any placeholders with the intended values.":`Accepted commands: ${commandNames.join(", ")}.`,...corrected&&{next:[{command:corrected,when:"Run the corrected command; replace any placeholders first"}]}};return shouldEmitNonInteractiveCommandError(client)?writeAgentError(client,payload):(recordCliError({code:payload.reason}),output_manager_default.fatal(payload.message),corrected&&output_manager_default.print(` ${corrected}
|
|
8
8
|
`),output_manager_default.print(`
|
|
9
9
|
See all commands:
|
|
10
10
|
${getCommandNamePlain(helpCommand)}
|
|
@@ -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{ensureLink}from"./chunk-
|
|
7
|
+
import{ensureLink}from"./chunk-SXW2G4WD.js";import{getScope}from"./chunk-NLK7NGVP.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";async function ensureMicrofrontendsContext(client,options){let link=await ensureLink("microfrontends",client,client.cwd,{autoConfirm:options?.autoConfirm});if(typeof link=="number")return link;let{project,org,repoRoot}=link;if(org.type!=="team")return output_manager_default.error("Microfrontends are only available for teams."),1;client.config.currentTeam=org.id;let{team}=await getScope(client);return team?{project,org,team,repoRoot}:(output_manager_default.error("Microfrontends are only available for teams."),1)}async function fetchMicrofrontendsGroups(client,teamId){output_manager_default.spinner("Fetching microfrontends groups\u2026");let response=await client.fetch(`/v1/microfrontends/groups?teamId=${teamId}`,{method:"GET"});return output_manager_default.stopSpinner(),response}function validateDefaultRoute(path){if(!path||!path.startsWith("/"))return"Route must start with /";if(/\s/.test(path))return"Route must not contain spaces";if(path.includes("?")||path.includes("#"))return"Route must not contain query strings or fragments";try{new URL(path,"http://n")}catch{return"Route is not a valid URL path"}return!0}function validateRoutingPath(path){return!path||!path.startsWith("/")?"Path must start with /. See https://vercel.com/docs/microfrontends/path-routing for supported syntax.":/\s/.test(path)?"Path must not contain spaces. See https://vercel.com/docs/microfrontends/path-routing for supported syntax.":!0}export{ensureMicrofrontendsContext,fetchMicrofrontendsGroups,validateDefaultRoute,validateRoutingPath};
|
|
@@ -0,0 +1,10 @@
|
|
|
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{outputError}from"./chunk-ZJNDLFZ7.js";import{require_execa}from"./chunk-M32HBBPK.js";import{getContextName}from"./chunk-NLK7NGVP.js";import{getLinkedProject,getOrgSlug,isOwnerLookupUnavailableError}from"./chunk-Z2KANBOU.js";import{getProjectByNameOrId}from"./chunk-DJZBJC2A.js";import{require_lib}from"./chunk-LUX4PBJL.js";import{require_ms}from"./chunk-MXTC4ZAQ.js";import{AGENT_REASON,buildCommandWithGlobalFlags,getTeamByIdOrSlug,outputAgentError}from"./chunk-4SS6W6JK.js";import{validateJsonOutput}from"./chunk-FEJD7MRH.js";import{ProjectNotFound,isAPIError,require_bytes}from"./chunk-GOI2VVI7.js";import{packageName}from"./chunk-B4KA3ZH2.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import{__toESM}from"./chunk-BZENIQ7N.js";function emitVcrScopeError(client,jsonOutput,code,message,agent){return outputAgentError(client,{status:"error",reason:agent.reason,message,hint:agent.hint,next:agent.next},1),outputError(client,jsonOutput,code,message)}async function resolveVcrScope(client,opts){if(opts.project){let contextName=await getContextName(client,{allowOwnerLookupFallback:!0}),teamId=client.config.currentTeam;if(!teamId){let msg="No team context found. Run `vercel switch` to select a team, or use `vercel link` in a project directory.";return emitVcrScopeError(client,opts.jsonOutput,"NO_TEAM",msg,{reason:AGENT_REASON.MISSING_SCOPE,hint:"Select a team scope before using --project with vcr.",next:[{command:buildCommandWithGlobalFlags(client.argv,"whoami"),when:"See current user and team"},{command:buildCommandWithGlobalFlags(client.argv,"teams switch"),when:"Switch to a team that owns the project"}]})}let teamSlug;try{teamSlug=(await getTeamByIdOrSlug(client,teamId)).slug}catch(err){if(!isOwnerLookupUnavailableError(err))throw err;teamSlug=contextName}let projectResult;try{projectResult=await getProjectByNameOrId(client,opts.project,teamId)}catch(err){if(isAPIError(err)){let msg=err.serverMessage||(err.status===403?`You do not have permission to access project "${opts.project}" in team "${teamSlug}".`:`API error (${err.status}).`),reason=err.status===401?"not_authorized":err.status===403?"forbidden":AGENT_REASON.API_ERROR;return emitVcrScopeError(client,opts.jsonOutput,err.code||"API_ERROR",msg,{reason,next:[{command:buildCommandWithGlobalFlags(client.argv,"vcr ls --project <name_or_id>"),when:"Retry with a project you can access (replace <name_or_id>)"}]})}throw err}if(projectResult instanceof ProjectNotFound){let msg=`Project "${opts.project}" was not found in team "${teamSlug}".`;return emitVcrScopeError(client,opts.jsonOutput,"PROJECT_NOT_FOUND",msg,{reason:AGENT_REASON.NOT_FOUND,next:[{command:buildCommandWithGlobalFlags(client.argv,"project ls"),when:"List projects in the current team to pick a name"}]})}return{teamId,teamSlug,projectId:projectResult.id,projectName:projectResult.name}}let linkedProject=await getLinkedProject(client,{allowOwnerLookupFallback:!0,allowProjectLookupFallback:!0,fallbackRequiresProjectName:!0});if(linkedProject.status==="error")return linkedProject.exitCode;if(linkedProject.status==="not_linked"){let msg="No linked project found. Run `vercel link` to link a project, or pass --project <name>.";return emitVcrScopeError(client,opts.jsonOutput,"NOT_LINKED",msg,{reason:AGENT_REASON.NOT_LINKED,hint:"Agents should pass --project when no .vercel link exists in --cwd.",next:[{command:buildCommandWithGlobalFlags(client.argv,"link"),when:"Link this directory to a Vercel project"},{command:buildCommandWithGlobalFlags(client.argv,"vcr ls --project <name_or_id>"),when:"List repositories for a project without linking (replace <name_or_id>)"}]})}return{teamId:linkedProject.org.id,teamSlug:await getOrgSlug(client,linkedProject.org),projectId:linkedProject.project.id,projectName:linkedProject.project.name}}var import_ms=__toESM(require_ms(),1),import_bytes=__toESM(require_bytes(),1);function formatBytes(size){return typeof size!="number"||Number.isNaN(size)?"-":import_bytes.default.format(size,{decimalPlaces:1})??"-"}function formatRelativeTime(iso){let time=new Date(iso).getTime();return Number.isNaN(time)?"-":`${(0,import_ms.default)(Date.now()-time)} ago`}function formatDigest(digest){return digest?digest.replace(/^sha256:/,"").slice(0,12):"-"}function formatImageStatus(status){switch(status){case"ready":return"Ready";case"preparing":return"Preparing";case"unoptimized":return"Ready (unoptimized)";default:return"-"}}var VCR_REGISTRY="vcr.vercel.com";function formatImageReference(teamSlug,projectName,repositoryName,digest){return digest?`${VCR_REGISTRY}/${teamSlug}/${projectName}/${repositoryName}@${digest}`:"-"}function formatTagReference(teamSlug,projectName,repositoryName,tag){return tag?`${VCR_REGISTRY}/${teamSlug}/${projectName}/${repositoryName}:${tag}`:"-"}function validateVcrJsonOutput(client,flags){let fr=validateJsonOutput(flags);return fr.valid?{jsonOutput:fr.jsonOutput}:(outputAgentError(client,{status:"error",reason:AGENT_REASON.INVALID_ARGUMENTS,message:fr.error},2),output_manager_default.error(fr.error),2)}function validateVcrChoice(client,flag,value,choices,jsonOutput){if(value===void 0||choices.includes(value))return;let message=`Invalid value for ${flag}: "${value}". Must be one of: ${choices.join(", ")}.`;return outputAgentError(client,{status:"error",reason:AGENT_REASON.INVALID_ARGUMENTS,message},2),outputError(client,jsonOutput,"INVALID_ARGUMENTS",message)}function requireVcrRepository(client,repository,jsonOutput,usage){if(!repository)return outputAgentError(client,{status:"error",reason:AGENT_REASON.MISSING_ARGUMENTS,message:`Missing repository. Example: ${packageName} ${usage}`,next:[{command:buildCommandWithGlobalFlags(client.argv,"vcr ls"),when:"List repositories to pick a name or id"}]},2),outputError(client,jsonOutput,"MISSING_ARGUMENTS",`Usage: \`vercel ${usage}\``)}function requireVcrRepositoryAndTag(client,repository,tag,jsonOutput,usage){if(!(repository&&tag))return outputAgentError(client,{status:"error",reason:AGENT_REASON.MISSING_ARGUMENTS,message:`Missing arguments. Example: ${packageName} ${usage}`,next:[{command:buildCommandWithGlobalFlags(client.argv,"vcr tag ls <repository>"),when:"List tags to pick a tag (replace <repository>)"}]},2),outputError(client,jsonOutput,"MISSING_ARGUMENTS",`Usage: \`vercel ${usage}\``)}function requireVcrRepositoryAndImageId(client,repository,imageId,jsonOutput,usage){if(!(repository&&imageId))return outputAgentError(client,{status:"error",reason:AGENT_REASON.MISSING_ARGUMENTS,message:`Missing arguments. Example: ${packageName} ${usage}`,next:[{command:buildCommandWithGlobalFlags(client.argv,"vcr image ls <repository>"),when:"List images to pick an image id (replace <repository>)"}]},2),outputError(client,jsonOutput,"MISSING_ARGUMENTS",`Usage: \`vercel ${usage}\``)}var import_which=__toESM(require_lib(),1),import_execa=__toESM(require_execa(),1);var VCR_ENGINES=["docker","podman","buildah"],VCR_LOGIN_USERNAME="oidc";function resolveRegistry(){return process.env.VERCEL_VCR_REGISTRY||VCR_REGISTRY}function isEngineInstalled(engine){return import_which.default.sync(engine,{nothrow:!0})!==null}function splitPassthrough(argv){let idx=argv.indexOf("--");return idx===-1?{own:argv.slice(2),passthrough:[]}:{own:argv.slice(2,idx),passthrough:argv.slice(idx+1)}}async function isBuildxAvailable(){let result=await(0,import_execa.default)("docker",["buildx","version"],{reject:!1,stdio:"ignore"});return result instanceof Error?!1:result.exitCode===0}function pushCompressionArgs(engine){return engine==="docker"?[]:["--compression-format","zstd","--compression-level","3"]}var AUTH_FAILURE=/\b(?:unauthorized|denied|forbidden)\b\s*:|authentication required|access to the resource is denied|\b(?:401 unauthorized|403 forbidden)\b/i,CREDENTIAL_STORE_CONFLICT=/already exists in the keychain|errSecDuplicateItem/i;function stderrTail(stderr){return stderr.trim().split(`
|
|
8
|
+
`).slice(-5).join(`
|
|
9
|
+
`)}async function engineLogin(engine,registry,token){let result=await(0,import_execa.default)(engine,["login",registry,"--username",VCR_LOGIN_USERNAME,"--password-stdin"],{input:token,reject:!1});return result instanceof Error&&typeof result.exitCode!="number"?{exitCode:1,stderr:result.message}:{exitCode:typeof result.exitCode=="number"?result.exitCode:1,stderr:result.stderr??""}}async function engineLogout(engine,registry){await(0,import_execa.default)(engine,["logout",registry],{reject:!1,stdio:"ignore"})}async function runEngine(engine,args,opts){if(opts.captureStderr){let subprocess=(0,import_execa.default)(engine,args,{cwd:opts.cwd,stdio:["inherit","inherit","pipe"],reject:!1});subprocess.stderr?.pipe(process.stderr);let result2=await subprocess;return result2 instanceof Error&&typeof result2.exitCode!="number"?{exitCode:1,stderr:result2.message}:{exitCode:typeof result2.exitCode=="number"?result2.exitCode:1,stderr:result2.stderr??""}}let result=await(0,import_execa.default)(engine,args,{cwd:opts.cwd,stdio:"inherit",reject:!1});return result instanceof Error&&typeof result.exitCode!="number"?{exitCode:1,stderr:result.message}:{exitCode:typeof result.exitCode=="number"?result.exitCode:1,stderr:""}}var NOT_AUTHORIZED_MESSAGE="You do not have access to the container registry in this scope. Ensure your role can manage the project, or pass --token and --scope.",NOT_AUTHORIZED_HINT="Confirm team scope with whoami; use --scope <team-slug> if the repository lives under another team.",genericMessage=err=>err.serverMessage||`API error (${err.status}).`,STATUS_INFO={401:{reason:"not_authorized",message:()=>NOT_AUTHORIZED_MESSAGE,hint:NOT_AUTHORIZED_HINT,suggestWhoami:!0},403:{reason:"forbidden",message:()=>NOT_AUTHORIZED_MESSAGE,hint:NOT_AUTHORIZED_HINT,suggestWhoami:!0},404:{reason:AGENT_REASON.NOT_FOUND,message:genericMessage},409:{reason:"conflict",message:genericMessage},429:{reason:"rate_limited",message:genericMessage}};function resolveStatusInfo(err){return STATUS_INFO[err.status]?STATUS_INFO[err.status]:err.status>=500?{reason:AGENT_REASON.API_ERROR,message:()=>`The container registry endpoint failed (${err.status}). Re-run with --debug and share the x-vercel-id from the failed request.`}:{reason:AGENT_REASON.API_ERROR,message:genericMessage}}function handleVcrApiError(client,err,jsonOutput,opts={}){let info=resolveStatusInfo(err),message=info.message(err),next=[];return info.suggestWhoami&&next.push({command:buildCommandWithGlobalFlags(client.argv,"whoami"),when:"See current user and team"}),opts.retry&&next.push(opts.retry),outputAgentError(client,{status:"error",reason:info.reason,message,...info.hint?{hint:info.hint}:{},...next.length>0?{next}:{}},1),outputError(client,jsonOutput,err.code||"API_ERROR",message)}function reportEngineCommandFailure(client,engine,verb,result){let tail=stderrTail(result.stderr),message=`\`${engine} ${verb}\` failed (exit code ${result.exitCode}).${tail?`
|
|
10
|
+
${tail}`:""}`;return outputAgentError(client,{status:"error",reason:"command_failed",message},1),outputError(client,!1,"COMMAND_FAILED",message)}function reportEnginePushFailure(client,engine,verb,result){if(AUTH_FAILURE.test(result.stderr)){let message=`Push to ${resolveRegistry()} was rejected. Your registry credentials may be missing or expired.`;return outputAgentError(client,{status:"error",reason:"not_authorized",message,next:[{command:buildCommandWithGlobalFlags(client.argv,`vcr login ${engine}`),when:"Refresh registry credentials (valid ~12 hours)"}]},1),outputError(client,!1,"NOT_AUTHORIZED",message)}return reportEngineCommandFailure(client,engine,verb,result)}function emitVcrArgParseError(client,err,recoverTemplate){let msg=err instanceof Error?err.message:String(err),projectFlagMissingArg=msg.includes("--project")&&msg.includes("requires argument");outputAgentError(client,{status:"error",reason:AGENT_REASON.INVALID_ARGUMENTS,message:projectFlagMissingArg?"`--project` requires a project name or id (for example `--project my-app`).":msg,next:[{command:buildCommandWithGlobalFlags(client.argv,recoverTemplate),when:projectFlagMissingArg?"Re-run with a project name or id (replace placeholder)":"See valid usage"}]},2)}export{resolveVcrScope,formatBytes,formatRelativeTime,formatDigest,formatImageStatus,formatImageReference,formatTagReference,validateVcrJsonOutput,validateVcrChoice,requireVcrRepository,requireVcrRepositoryAndTag,requireVcrRepositoryAndImageId,VCR_ENGINES,VCR_LOGIN_USERNAME,resolveRegistry,isEngineInstalled,splitPassthrough,isBuildxAvailable,pushCompressionArgs,AUTH_FAILURE,CREDENTIAL_STORE_CONFLICT,stderrTail,engineLogin,engineLogout,runEngine,handleVcrApiError,reportEngineCommandFailure,reportEnginePushFailure,emitVcrArgParseError};
|
|
@@ -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{getEnvTargetPlaceholder}from"./chunk-
|
|
7
|
+
import{getEnvTargetPlaceholder}from"./chunk-VZ4URN3U.js";import{packageName}from"./chunk-B4KA3ZH2.js";import{deploymentOption,environmentOption,gitBranchOption,jsonOption,projectOption,targetOption,yesOption}from"./chunk-CFJBDBYH.js";var buildCommand={name:"build",aliases:[],description:"Build the project.",arguments:[],options:[{name:"prod",description:"Build a production deployment",shorthand:null,type:Boolean,deprecated:!1},{...environmentOption,description:"Environment to build for: production, preview, or a custom environment (default: preview)"},targetOption,{name:"output",description:"Directory where built assets will be written to",shorthand:"o",argument:"DIR",type:String,deprecated:!1},{...yesOption,description:"Skip the confirmation prompt about pulling environment variables and project settings when not found locally"},{name:"standalone",description:"Create a standalone build with all dependencies inlined into function output folders",shorthand:null,type:Boolean,deprecated:!1},{...deploymentOption,description:"Deployment ID to pull environment variables from (e.g. dpl_xxx)"},{name:"id",shorthand:null,type:String,deprecated:!0},projectOption],examples:[{name:"Build the project",value:`${packageName} build`},{name:"Build the project in a specific directory",value:`${packageName} build --cwd ./path-to-project`},{name:"Build with deployment-scoped environment variables",value:`${packageName} build --deployment dpl_xxx`}]};var pullCommand={name:"pull",aliases:[],description:"Pull Environment Variables and project settings into .vercel",arguments:[{name:"project-path",required:!1}],options:[{name:"environment",description:"Deployment environment (default: development)",argument:"ENVIRONMENT",shorthand:"e",type:String,deprecated:!1},{...gitBranchOption,description:"Specify the Git branch to pull specific Environment Variables for"},{name:"prod",shorthand:null,type:Boolean,deprecated:!0},{...yesOption,description:"Skip questions when setting up new project using default scope and settings"},projectOption,jsonOption],examples:[{name:"Pull the latest Environment Variables and Project Settings from the cloud",value:`${packageName} pull`},{name:"Pull the latest Environment Variables and Project Settings from the cloud targeting a directory",value:`${packageName} pull ./path-to-project`},{name:"Pull for a specific environment",placeholders:[getEnvTargetPlaceholder()],value:`${packageName} pull --environment=${getEnvTargetPlaceholder()}`},{name:"Pull for a preview feature branch",value:`${packageName} pull --environment=preview --git-branch=feature-branch`},{name:"Pull Environment Variables into an application env file with `vercel env pull`",value:`${packageName} env pull`}]};export{buildCommand,pullCommand};
|
|
@@ -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{getConfigFilePath}from"./chunk-
|
|
7
|
+
import{getConfigFilePath}from"./chunk-Z2KANBOU.js";import{require_cli_config}from"./chunk-4SAVH3H7.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_cli_config=__toESM(require_cli_config(),1);function markOnboardingSeen(client,key){client.config[key]=!0;try{let path=getConfigFilePath();(0,import_cli_config.writeGlobalConfigFile)(path,{...(0,import_cli_config.readGlobalConfigFile)(path),[key]:!0})}catch{output_manager_default.debug(`Could not save ${key}.`)}}export{markOnboardingSeen};
|
|
@@ -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{pull}from"./chunk-
|
|
7
|
+
import{pull}from"./chunk-YI7NKOCU.js";import{indent_default}from"./chunk-GZNDA6SV.js";import{getLinkedProject}from"./chunk-Z2KANBOU.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";async function createBlobStore(client,input,accountId,requestOptions){let result=await client.fetch("/v1/storage/stores/blob",{...requestOptions,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(input),accountId});if(!result.store?.id)throw new Error("Blob creation returned no store ID.");return{id:result.store.id,region:result.store.region}}async function connectResourceToProject(client,projectId,storeId,environments,options){let path=`/v1/storage/stores/${encodeURIComponent(storeId)}/connections`;return client.fetch(path,{retry:options?.retry,bailOn429:options?.bailOn429,signal:options?.signal,json:!0,method:"POST",body:{envVarEnvironments:environments,projectId,type:"integration",...options?.envVarPrefix!==void 0?{envVarPrefix:options.envVarPrefix}:{}},accountId:options?.accountId})}var import_chalk=__toESM(require_source(),1);var VALID_ENVIRONMENTS=["production","preview","development"],ENV_PULL_FAILED_MESSAGE="Failed to pull environment variables. You can run `vercel env pull` manually.";function validateEnvironments(environments){let invalid=environments.filter(env=>!VALID_ENVIRONMENTS.includes(env));return invalid.length>0?{valid:!1,invalid}:{valid:!0}}async function postProvisionSetup(client,resourceName,resourceId,contextName,options={}){let dashboardUrl=options.integrationSlug&&options.installationId?`https://vercel.com/d/dashboard/integrations/${options.integrationSlug}/${options.installationId}/resources/${resourceId}`:`https://vercel.com/${contextName}/~/stores/integration/${resourceId}`;output_manager_default.log(indent_default(`Dashboard: ${output_manager_default.link(dashboardUrl,dashboardUrl,{fallback:!1})}`,4));let baseResult={exitCode:0,dashboardUrl,connected:!1,environments:[],envPulled:!1};if(options.noConnect)return baseResult;let linkedProject=await getLinkedProject(client);if(linkedProject.status==="error")return{...baseResult,exitCode:linkedProject.exitCode};if(linkedProject.status==="not_linked")return baseResult;let{project}=linkedProject,environments=[...new Set(options.environments&&options.environments.length>0?options.environments:[...VALID_ENVIRONMENTS])];output_manager_default.debug(`Selected environments: ${JSON.stringify(environments)}`),output_manager_default.spinner(`Connecting ${import_chalk.default.bold(resourceName)} to ${import_chalk.default.bold(project.name)}...`),output_manager_default.debug(`Connecting resource ${resourceId} to project ${project.id}`);try{await connectResourceToProject(client,project.id,resourceId,environments,options.prefix?{envVarPrefix:options.prefix}:void 0)}catch(error){return output_manager_default.stopSpinner(),options.onProjectConnectFailed?.(project.id,error),output_manager_default.error(`Failed to connect: ${error.message}`),{...baseResult,exitCode:1,project:{id:project.id,name:project.name},environments,connectError:error.message}}output_manager_default.stopSpinner(),output_manager_default.log(`${import_chalk.default.bold(resourceName)} successfully connected to ${import_chalk.default.bold(project.name)}`),options.onProjectConnected?.(project.id);let envPulled=!1;return options.noEnvPull||(await pull(client,["--yes"],"vercel-cli:integration:add")!==0?output_manager_default.warn(ENV_PULL_FAILED_MESSAGE):envPulled=!0),{...baseResult,project:{id:project.id,name:project.name},connected:!0,environments,envPulled}}async function getLinkedProjectField(client,noConnect,field="name"){if(noConnect)return{value:void 0};let linkedProject=await getLinkedProject(client);return linkedProject.status==="error"?{value:void 0,exitCode:linkedProject.exitCode}:linkedProject.status==="linked"?{value:linkedProject.project[field]}:{value:void 0}}export{createBlobStore,connectResourceToProject,VALID_ENVIRONMENTS,ENV_PULL_FAILED_MESSAGE,validateEnvironments,postProvisionSetup,getLinkedProjectField};
|
|
@@ -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{outputError,writeJsonError}from"./chunk-ZJNDLFZ7.js";import{resolveProjectContext}from"./chunk-
|
|
7
|
+
import{outputError,writeJsonError}from"./chunk-ZJNDLFZ7.js";import{resolveProjectContext}from"./chunk-VF7XWPXA.js";import{printError}from"./chunk-33HVDSWP.js";import{detectExplicitScope,getScope}from"./chunk-NLK7NGVP.js";import{getLinkedProject}from"./chunk-Z2KANBOU.js";import{isAPIError}from"./chunk-GOI2VVI7.js";import{getCommandName}from"./chunk-B4KA3ZH2.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";function handleCommentsParseError(err,subcommandName){return printError(err),err instanceof Error&&/unknown or unexpected option: -[^-]/.test(err.message)&&output_manager_default.log(`An argument starting with "-"? Put it after \`--\`: ${getCommandName(`comments ${subcommandName} -- <arg>`)}`),output_manager_default.log(`Run ${getCommandName(`comments ${subcommandName} --help`)} for usage.`),2}function threadNotFoundMessage(threadId,scope){return`Comment not found: ${threadId} in team ${scope.teamSlug??scope.teamId}. If it belongs to another team, pass --scope <team>.`}function query(teamId,params={}){let search=new URLSearchParams({teamId});for(let[key,value]of Object.entries(params))if(value!==void 0)if(Array.isArray(value))for(let entry of value)search.append(key,entry);else search.set(key,String(value));return search.toString()}var fetchOpts={useCurrentTeam:!1};function listThreads(client,teamId,params){return client.fetch(`/toolbar/threads?${query(teamId,{...params})}`,fetchOpts)}function getThread(client,teamId,threadId){return client.fetch(`/toolbar/threads/${encodeURIComponent(threadId)}?${query(teamId)}`,fetchOpts)}function updateThread(client,teamId,threadId,resolved){return client.fetch(`/toolbar/threads/${encodeURIComponent(threadId)}?${query(teamId)}`,{...fetchOpts,method:"PATCH",body:{resolved}})}function listMessages(client,teamId,threadId,opts={}){return client.fetch(`/toolbar/threads/${encodeURIComponent(threadId)}/messages?${query(teamId,{...opts})}`,fetchOpts)}function addMessage(client,teamId,threadId,body){return client.fetch(`/toolbar/threads/${encodeURIComponent(threadId)}/messages?${query(teamId)}`,{...fetchOpts,method:"POST",body})}function updateMessage(client,teamId,threadId,messageId,body){return client.fetch(`/toolbar/threads/${encodeURIComponent(threadId)}/messages/${encodeURIComponent(messageId)}?${query(teamId)}`,{...fetchOpts,method:"PATCH",body})}function deleteMessage(client,teamId,threadId,messageId){return client.fetch(`/toolbar/threads/${encodeURIComponent(threadId)}/messages/${encodeURIComponent(messageId)}?${query(teamId)}`,{...fetchOpts,method:"DELETE"})}function toApiErrorParts(err){let apiErr=err;return{code:apiErr.code||"API_ERROR",message:apiErr.serverMessage||`API error (${apiErr.status??"unknown"}).`}}import{spawnSync}from"node:child_process";async function resolveCommentsScope(client,opts){if(opts.urlTeamSlug&&!opts.project&&!detectExplicitScope(client))return{teamId:opts.urlTeamSlug,teamSlug:opts.urlTeamSlug};if(opts.project){let context;try{context=await resolveProjectContext({client,projectNameOrId:opts.project,projectNotFoundHandling:opts.jsonOutput?"return":"report"})}catch(err){if(isAPIError(err))return outputError(client,opts.jsonOutput,err.code||"API_ERROR",err.serverMessage||`API error (${err.status}).`);throw err}return context.status==="error"?(opts.jsonOutput&&writeJsonError(client,"PROJECT_CONTEXT_ERROR","Could not resolve the project context."),context.exitCode):context.status==="not_linked"?outputError(client,opts.jsonOutput,"PROJECT_NOT_FOUND",`Project "${opts.project}" was not found in the current scope.`):{teamId:context.org.id,teamSlug:context.org.slug,projectId:context.project.id,projectName:context.project.name,linked:!!context.repoRoot}}let linked=await getLinkedProject(client);if(linked.status==="error")return linked.exitCode;if(linked.status==="linked"){if(detectExplicitScope(client)){let{team:team2}=await getScope(client);if(!team2)return outputError(client,opts.jsonOutput,"NO_TEAM","No team context found for --scope.");if(team2.id!==linked.org.id)return opts.requireProject?outputError(client,opts.jsonOutput,"SCOPE_PROJECT_MISMATCH",`--scope ${team2.slug} does not match the linked project's team (${linked.org.slug}). Pass --project <name-or-id> for a project in ${team2.slug}.`):{teamId:team2.id,teamSlug:team2.slug}}return{teamId:linked.org.id,teamSlug:linked.org.slug,projectId:linked.project.id,projectName:linked.project.name,linked:!0}}if(opts.requireProject)return outputError(client,opts.jsonOutput,"NOT_LINKED","No linked project found. Run `vercel link` to link a project, or pass --project <name-or-id>.");let{team}=await getScope(client);return team?{teamId:team.id,teamSlug:team.slug}:outputError(client,opts.jsonOutput,"NO_TEAM","No team context found. Run `vercel switch` to select a team, or run `vercel link` in a project directory.")}function inferBranch(cwd){let result=spawnSync("git",["rev-parse","--abbrev-ref","HEAD"],{cwd,encoding:"utf8"});if(result.status===0){let branch=result.stdout.trim();if(branch&&branch!=="HEAD")return{value:branch,source:"git"}}let ciRef=process.env.VERCEL_GIT_COMMIT_REF||process.env.GITHUB_HEAD_REF||process.env.GITHUB_REF_NAME;if(ciRef)return{value:ciRef,source:"ci"}}export{handleCommentsParseError,threadNotFoundMessage,listThreads,getThread,updateThread,listMessages,addMessage,updateMessage,deleteMessage,toApiErrorParts,resolveCommentsScope,inferBranch};
|
|
@@ -4,7 +4,7 @@ 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{printProjectNotFoundError}from"./chunk-
|
|
7
|
+
import{printProjectNotFoundError}from"./chunk-QGHAD5A5.js";import{param}from"./chunk-3G3FQYMW.js";import{detectExplicitScope}from"./chunk-NLK7NGVP.js";import{getLinkedProject,resolveProjectCwd}from"./chunk-Z2KANBOU.js";import{AGENT_REASON,AGENT_STATUS,buildCommandWithYes,outputActionRequired,outputAgentError}from"./chunk-4SS6W6JK.js";import{getCommandName,getCommandNamePlain}from"./chunk-B4KA3ZH2.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import{require_build_utils}from"./chunk-5MDNVAE6.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_build_utils=__toESM(require_build_utils(),1);async function ensureLink(commandName,client,cwd,opts={}){cwd=await resolveProjectCwd(cwd);let link=opts.link,nonInteractive=opts.nonInteractive??client.nonInteractive??!1;if(opts.nonInteractive=nonInteractive,link||(opts.forceDelete?link={status:"not_linked",org:null,project:null}:link=await getLinkedProject(client,{cwd,projectName:opts.projectName,projectNameIsExplicit:!!(opts.projectName&&opts.failIfNotFound),scopeIsExplicit:detectExplicitScope(client),allowOwnerLookupFallback:opts.allowOwnerLookupFallback,skipOwnerLookup:opts.skipOwnerLookup,skipRemoteLookup:opts.skipRemoteLookup}),opts.link=link),link.status==="linked"&&opts.forceDelete||link.status==="not_linked"){if(link.status==="not_linked"&&opts.failIfNotFound&&opts.projectName){let pinnedProjectId=(0,import_build_utils.getPlatformEnv)("PROJECT_ID"),creatable=!opts.projectName.startsWith("prj_")&&!pinnedProjectId;if(!opts.createIfNotFound||opts.projectName.startsWith("prj_")||pinnedProjectId===opts.projectName)return await printProjectNotFoundError(client,opts.projectName,commandName,link.orgId,{createCommand:creatable?opts.createCommand:void 0}),1;if(pinnedProjectId){let message=`Can't use --project with VERCEL_PROJECT_ID. --project is "${opts.projectName}" and VERCEL_PROJECT_ID is "${pinnedProjectId}". Remove one of them.`,helpCommand=getCommandNamePlain(`${commandName} --help`);return output_manager_default.error(`${message}
|
|
8
8
|
|
|
9
9
|
See all options:
|
|
10
|
-
${helpCommand}`),outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:AGENT_REASON.INVALID_ARGUMENTS,message,next:[{command:helpCommand,when:"see all options"}]}),2}}if(link.status==="not_linked"&&opts.requireExistingLink)return output_manager_default.error(opts.notLinkedMessage??`Project is not linked. Run ${getCommandName("link")} first.`),1;let{default:setupAndLink}=await import("./setup-and-link-
|
|
10
|
+
${helpCommand}`),outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:AGENT_REASON.INVALID_ARGUMENTS,message,next:[{command:helpCommand,when:"see all options"}]}),2}}if(link.status==="not_linked"&&opts.requireExistingLink)return output_manager_default.error(opts.notLinkedMessage??`Project is not linked. Run ${getCommandName("link")} first.`),1;let{default:setupAndLink}=await import("./setup-and-link-5TPDTJIN.js");if(link=await setupAndLink(client,cwd,opts),link.status==="not_linked")return 0}return link.status==="error"?(link.reason==="HEADLESS"&&(nonInteractive?outputActionRequired(client,{status:"action_required",reason:"confirmation_required",message:`Command ${getCommandNamePlain(commandName)} requires confirmation. Use option --yes to confirm.`,next:[{command:buildCommandWithYes(client.argv),when:"Confirm and run"}]},link.exitCode):output_manager_default.error(`Command ${getCommandName(commandName)} requires confirmation. Use option ${param("--yes")} to confirm.`)),nonInteractive&&!client.jsonMode&&process.exit(link.exitCode),link.exitCode):link}export{ensureLink};
|
|
@@ -4,7 +4,7 @@ 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{formatUsd}from"./chunk-
|
|
7
|
+
import{formatUsd}from"./chunk-F4UEGELU.js";import{DEFAULT_ORDER_WAIT,DEFAULT_ORDER_WAIT_MS}from"./chunk-XDWAUOFO.js";import{canPrompt}from"./chunk-IQ7FPAI4.js";import{quoteShellArg}from"./chunk-PFOOPXTN.js";import{getTeams}from"./chunk-DOMBKOLJ.js";import{scopeFlagPassed}from"./chunk-NLK7NGVP.js";import{printAlignedLabel}from"./chunk-M7FED5YP.js";import{require_ms}from"./chunk-MXTC4ZAQ.js";import{parseArguments}from"./chunk-CINNNQDJ.js";import{AGENT_ACTION,AGENT_REASON,AGENT_STATUS,buildCommandWithGlobalFlags,getExitCodeForReason,outputActionRequired,outputAgentError,shouldEmitNonInteractiveCommandError,writeActionRequired,writeAgentError}from"./chunk-4SS6W6JK.js";import{wantsMachineReadableOutput}from"./chunk-FEJD7MRH.js";import{packageName}from"./chunk-B4KA3ZH2.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import{require_build_utils}from"./chunk-5MDNVAE6.js";import{stripSensitiveAuthArgs}from"./chunk-CFJBDBYH.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_build_utils2=__toESM(require_build_utils(),1);import{createHash,randomUUID}from"node:crypto";var import_build_utils=__toESM(require_build_utils(),1),import_ms=__toESM(require_ms(),1);var AMOUNT_PATTERN=/^\d+(\.\d{1,2})?$/,REASON_BY_CODE={UNSUPPORTED_TLD:AGENT_REASON.TLD_NOT_SUPPORTED,UNSUPPORTED_TLD_VIA_CLI:AGENT_REASON.TLD_NOT_SUPPORTED,INVALID_DOMAIN:AGENT_REASON.INVALID_DOMAIN,DOMAIN_NOT_AVAILABLE:AGENT_REASON.DOMAIN_NOT_AVAILABLE,DOMAIN_PAYMENT_ERROR:AGENT_REASON.PAYMENT_FAILED};function chargeFailureReason(err){let code=err.code;return typeof code=="string"&&REASON_BY_CODE[code]||AGENT_REASON.API_ERROR}function parseAmount(raw){if(raw===void 0)return;let value=raw.trim();return!AMOUNT_PATTERN.test(value)||Number(value)<=0?new Error(`Invalid --amount "${raw}". Use the price in USD, such as 20.00.`):Number(value)}function amountMatchesPrice(amount,price){return Math.round(amount*100)===Math.round(price*100)}function formatAmountArg(price){return price.toFixed(2)}function formatTerm(years){return`${years} ${years===1?"year":"years"}`}function canPromptForCharge(client,json){return canPrompt(client)&&!process.env.CI&&!json}function chargeFlagWithValue(argv,flags){for(let arg of argv){if(arg==="--")break;let name=arg.split("=")[0];if(arg.includes("=")&&flags.includes(name))return`${name} doesn't take a value. Pass it on its own, or leave it out${name==="--auto-renew"?" and pass --no-auto-renew":""}.`}}function chargeTeamStatus(client,teamId){let orgId=(0,import_build_utils.getPlatformEnv)("ORG_ID");return orgId&&orgId!==teamId?"conflict":scopeFlagPassed(client.argv)||orgId===teamId?"named":"unnamed"}function printChargeRecovery(headline,instruction,command){output_manager_default.fatal(`${headline}
|
|
8
8
|
|
|
9
9
|
${instruction}:
|
|
10
10
|
${command}`)}function writeChargeAction(client,json,payload){outputActionRequired(client,payload,1),json&&client.stdout.write(`${JSON.stringify(payload,null,2)}
|
|
@@ -4,5 +4,5 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{external_exports}from"./chunk-2AMO2VMV.js";import{recordLine}from"./chunk-
|
|
7
|
+
import{external_exports}from"./chunk-2AMO2VMV.js";import{recordLine}from"./chunk-KRP4EMD2.js";import{isAPIError}from"./chunk-GOI2VVI7.js";import{require_strip_ansi}from"./chunk-BULSRTQE.js";import{__toESM}from"./chunk-BZENIQ7N.js";var MAX_PAGE_SIZE=1e3,QUERY_REASON_HEADER="x-vercel-observability-query-reason",responseSchema=external_exports.object({events:external_exports.array(external_exports.record(external_exports.string(),external_exports.unknown())),pagination:external_exports.object({hasMore:external_exports.boolean(),nextCursor:external_exports.string().nullable()}),meta:external_exports.object({excludedIntervals:external_exports.array(external_exports.object({start:external_exports.string(),end:external_exports.string()})).optional()}).passthrough().optional()}),InvalidEventsResponseError=class extends Error{constructor(){super("The Observability API returned an invalid events response."),this.name="InvalidEventsResponseError"}},RecordTooLargeError=class extends Error{constructor(){super("A single record exceeds the API response size limit and cannot be returned."),this.name="RecordTooLargeError"}};function isResultTooLarge(err){return isAPIError(err)&&err.status===413&&err.code==="result_too_large"}async function fetchEventsPage(client,request,limit,cursor){let body={event:request.event,scope:{ownerId:request.ownerId,...request.projectIds?{projectIds:[...request.projectIds]}:{}},timeRange:{start:request.timeRange.start,end:request.timeRange.end},select:[...request.select],order:"desc",limit};request.filter&&(body.filter=request.filter),cursor&&(body.cursor=cursor);let params=new URLSearchParams({teamId:request.ownerId}),response=await client.fetch(`/v1/observability/events?${params}`,{method:"POST",headers:{[QUERY_REASON_HEADER]:request.queryReason},body,useCurrentTeam:!1,...request.bailOn429?{bailOn429:!0}:{},...request.gatewayTimeoutRetries!==void 0?{gatewayTimeoutRetries:request.gatewayTimeoutRetries}:{}}),parsed=responseSchema.safeParse(response);if(!parsed.success)throw new InvalidEventsResponseError;return parsed.data}async function*fetchEventPages(client,request,limit,startCursor){let remaining=limit,maxPageSize=MAX_PAGE_SIZE,cursor=startCursor,lastNextCursor=null;for(;remaining>0;){let pageSize=Math.min(remaining,maxPageSize),response;for(;;)try{response=await fetchEventsPage(client,request,pageSize,cursor);break}catch(err){if(!isResultTooLarge(err))throw err;if(pageSize===1)throw new RecordTooLargeError;pageSize=Math.max(1,Math.floor(pageSize/2)),maxPageSize=pageSize}let events=response.events.slice(0,remaining);remaining-=events.length;let{hasMore,nextCursor}=response.pagination,continues=hasMore&&!!nextCursor&&nextCursor!==cursor;if(lastNextCursor=continues?nextCursor:null,yield{events,excludedIntervals:response.meta?.excludedIntervals??[],nextCursor:lastNextCursor},!continues)return{hasMore,nextCursor:null};cursor=nextCursor??void 0}return{hasMore:!0,nextCursor:lastNextCursor}}function sortIntervals(intervals){return[...intervals].sort((a,b)=>Date.parse(a.start)-Date.parse(b.start)||Date.parse(a.end)-Date.parse(b.end))}var import_strip_ansi=__toESM(require_strip_ansi(),1);function recordLine2(type,event){return recordLine(type,event)}function warningLine(warning){let line={type:"warning",reason:warning.reason,message:(0,import_strip_ansi.default)(warning.message),...warning.data?{data:warning.data}:{}};return`${JSON.stringify(line)}
|
|
8
8
|
`}function serializeTimeRange(range){return{start:range.start.toISOString(),end:range.end.toISOString()}}var CONTINUATION_VERSION=1,continuationSchema=external_exports.object({v:external_exports.literal(CONTINUATION_VERSION),event:external_exports.string().min(1),ownerId:external_exports.string().min(1),projectIds:external_exports.array(external_exports.string().min(1)).optional(),timeRange:external_exports.object({start:external_exports.string().min(1),end:external_exports.string().min(1)}),filter:external_exports.string().optional(),order:external_exports.enum(["asc","desc"]),cursor:external_exports.string().min(1)});function encodeContinuation(continuation){let payload={v:CONTINUATION_VERSION,event:continuation.event,ownerId:continuation.ownerId,...continuation.projectIds?{projectIds:[...continuation.projectIds]}:{},timeRange:{start:continuation.timeRange.start,end:continuation.timeRange.end},...continuation.filter!==void 0?{filter:continuation.filter}:{},order:continuation.order,cursor:continuation.cursor};return Buffer.from(JSON.stringify(payload),"utf8").toString("base64url")}function decodeContinuation(token){if(!/^[A-Za-z0-9_-]+$/.test(token))return;let raw;try{raw=JSON.parse(Buffer.from(token,"base64url").toString("utf8"))}catch{return}let parsed=continuationSchema.safeParse(raw);if(!parsed.success)return;let{v:_version,...continuation}=parsed.data;return continuation}export{InvalidEventsResponseError,RecordTooLargeError,fetchEventPages,sortIntervals,recordLine2 as recordLine,warningLine,serializeTimeRange,encodeContinuation,decodeContinuation};
|