@vercel/cli-support 65.8.0-snapshot-c4f338842961 → 65.8.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-3MWFJH54.js +8 -0
- package/dist/chunks/add-CJWCA3MM.js +8 -0
- package/dist/chunks/add-GLCVYEEN.js +8 -0
- package/dist/chunks/build-6RK6VECG.js +7 -0
- package/dist/chunks/{chunk-UF7QYHFU.js → chunk-2B7U6BB5.js} +1 -1
- package/dist/chunks/{chunk-UMMQR6WI.js → chunk-2OET5FWH.js} +1 -1
- package/dist/chunks/chunk-2PYFJXKS.js +14 -0
- package/dist/chunks/{chunk-FVIVFDCB.js → chunk-2QSNFVB6.js} +1 -1
- package/dist/chunks/{chunk-SLDWAIO3.js → chunk-33U57CNE.js} +1 -1
- package/dist/chunks/{chunk-N5CXIFE2.js → chunk-37DIJCWK.js} +1 -1
- package/dist/chunks/{chunk-HMWDOAWO.js → chunk-3AXMZRAB.js} +1 -1
- package/dist/chunks/{chunk-4JE57EBL.js → chunk-3DDEBTCC.js} +1 -1
- package/dist/chunks/{chunk-O7COT3YB.js → chunk-3KSTUMR6.js} +1 -1
- package/dist/chunks/{chunk-26QK3I2S.js → chunk-3LQ2ADXO.js} +1 -1
- package/dist/chunks/{chunk-QFUCWOCL.js → chunk-3RXEJWYM.js} +1 -1
- package/dist/chunks/{chunk-FAELJM4F.js → chunk-44XDCARR.js} +1 -1
- package/dist/chunks/{chunk-M7LUSXMG.js → chunk-45UDRX4C.js} +1 -1
- package/dist/chunks/{chunk-EAUDC24V.js → chunk-4ELZOAQH.js} +1 -1
- package/dist/chunks/{chunk-CCD7E322.js → chunk-4MP4HVBG.js} +1 -1
- package/dist/chunks/{chunk-64VMAYM6.js → chunk-5GOQ3FBV.js} +1 -1
- package/dist/chunks/{chunk-OGSTNJJ5.js → chunk-5MHRCRIN.js} +1 -1
- package/dist/chunks/{chunk-JAOYF7AW.js → chunk-5SMV2PPI.js} +1 -1
- package/dist/chunks/{chunk-QAYWROXQ.js → chunk-62FZFXPJ.js} +1 -1
- package/dist/chunks/{chunk-WGPYUXIC.js → chunk-63DO6KMD.js} +2 -2
- package/dist/chunks/{chunk-OKNDHNH6.js → chunk-6KCYUYUM.js} +1 -1
- package/dist/chunks/{chunk-IUMJJFEP.js → chunk-6V67VZJD.js} +1 -1
- package/dist/chunks/{chunk-JYK7ZIZW.js → chunk-753RQ6WV.js} +1 -1
- package/dist/chunks/{chunk-EMORYAJQ.js → chunk-7A5WO5KA.js} +1 -1
- package/dist/chunks/chunk-7BML2OR6.js +33 -0
- package/dist/chunks/{chunk-FNA4MIOH.js → chunk-7E6UJXLR.js} +1 -1
- package/dist/chunks/{chunk-ET5ARPPO.js → chunk-7EJ3BZ67.js} +1 -1
- package/dist/chunks/{chunk-VWHIWUGJ.js → chunk-7V2PXIVW.js} +1 -1
- package/dist/chunks/{chunk-RKWPLZJX.js → chunk-A67TLHES.js} +1 -1
- package/dist/chunks/{chunk-OTYF3ZZW.js → chunk-A6F3EE2O.js} +1 -1
- package/dist/chunks/{chunk-V6NMCQUQ.js → chunk-AEOG4E5G.js} +1 -1
- package/dist/chunks/{chunk-F4KY2TOK.js → chunk-AKOYIH3A.js} +1 -1
- package/dist/chunks/{chunk-RMW2FDXS.js → chunk-APNR444T.js} +1 -1
- package/dist/chunks/{chunk-OCRNZT7G.js → chunk-AQA4JVKA.js} +1 -1
- package/dist/chunks/{chunk-KHADRPBJ.js → chunk-B3ETPBO4.js} +1 -1
- package/dist/chunks/{chunk-CS6E5XNQ.js → chunk-BHJLCFQ4.js} +1 -1
- package/dist/chunks/{chunk-RPWGUQSE.js → chunk-BLFPDEXE.js} +1 -1
- package/dist/chunks/chunk-BULSRTQE.js +7 -0
- package/dist/chunks/{chunk-SXRZZDON.js → chunk-C4XT3PG4.js} +1 -1
- package/dist/chunks/chunk-CJHVHB2F.js +8 -0
- package/dist/chunks/{chunk-DPZFKHW3.js → chunk-CJLRNGWY.js} +1 -1
- package/dist/chunks/chunk-D3GYYGSS.js +9 -0
- package/dist/chunks/{chunk-GVPVWHFK.js → chunk-DBV6AB6T.js} +1 -1
- package/dist/chunks/{chunk-APWCVJAG.js → chunk-EGPVNTKP.js} +1 -1
- package/dist/chunks/{chunk-RVXE4MXS.js → chunk-EKB2DYCQ.js} +1 -1
- package/dist/chunks/{chunk-JW57JYRO.js → chunk-ELQBQ2O5.js} +1 -1
- package/dist/chunks/{chunk-2FHZYQPY.js → chunk-EZL4AJXH.js} +1 -1
- package/dist/chunks/{chunk-QHM6OK76.js → chunk-F76MNMH3.js} +1 -1
- package/dist/chunks/{chunk-4K3O7QWS.js → chunk-FNOCIKAU.js} +1 -1
- package/dist/chunks/{chunk-QNL22LAW.js → chunk-FQVSBXRY.js} +1 -1
- package/dist/chunks/{chunk-YCJHUYBJ.js → chunk-FXEMEIST.js} +1 -1
- package/dist/chunks/{chunk-4NDWIUKJ.js → chunk-G7X2TVUO.js} +1 -1
- package/dist/chunks/{chunk-JQTSETXH.js → chunk-GJB72ITS.js} +1 -1
- package/dist/chunks/{chunk-K3TCWYVX.js → chunk-GKUHMS3A.js} +1 -1
- package/dist/chunks/{chunk-H73G2ROF.js → chunk-GP2FXUFE.js} +1 -1
- package/dist/chunks/{chunk-UWMPVTXG.js → chunk-GP5MFCGO.js} +1 -1
- package/dist/chunks/{chunk-TZT3VYZ3.js → chunk-GZWYJT4C.js} +1 -1
- package/dist/chunks/{chunk-XCKUJZUG.js → chunk-H3SJJO6S.js} +1 -1
- package/dist/chunks/{chunk-GSXTCMKC.js → chunk-H4DE2OFO.js} +1 -1
- package/dist/chunks/{chunk-CZINAGH6.js → chunk-HA2ICIB5.js} +1 -1
- package/dist/chunks/{chunk-SUMMI76H.js → chunk-HNOZM6D4.js} +1 -1
- package/dist/chunks/{chunk-UJQ6PBRF.js → chunk-HTFQFHPR.js} +1 -1
- package/dist/chunks/{chunk-AUY363W7.js → chunk-IECNFRTK.js} +1 -1
- package/dist/chunks/{chunk-2EYHCJQO.js → chunk-IHNEF3BG.js} +1 -1
- package/dist/chunks/{chunk-BGWS5R5R.js → chunk-IHRM7L23.js} +1 -1
- package/dist/chunks/{chunk-3IRPFJ2G.js → chunk-INH6RXBH.js} +1 -1
- package/dist/chunks/chunk-IU6PHFPQ.js +7 -0
- package/dist/chunks/{chunk-C6IITJ5S.js → chunk-J52UJYOK.js} +1 -1
- package/dist/chunks/{chunk-7SAEZ4NC.js → chunk-JRBPVMQO.js} +1 -1
- package/dist/chunks/chunk-JUAHDOL6.js +7 -0
- package/dist/chunks/{chunk-FJ5CNQDD.js → chunk-JULKMXVP.js} +1 -1
- package/dist/chunks/{chunk-3H36RI7C.js → chunk-K2R3QPOC.js} +1 -1
- package/dist/chunks/{chunk-QGGJ5VVZ.js → chunk-KARAZGCO.js} +1 -1
- package/dist/chunks/chunk-KAUKCHQF.js +10 -0
- package/dist/chunks/{chunk-F34TG2V3.js → chunk-KDRCBWRY.js} +1 -1
- package/dist/chunks/{chunk-F22QLVTX.js → chunk-KIMIK4SG.js} +1 -1
- package/dist/chunks/{chunk-BPR5CLQM.js → chunk-KL6HNOFN.js} +1 -1
- package/dist/chunks/{chunk-LBTMGBAK.js → chunk-KUNFE2M6.js} +1 -1
- package/dist/chunks/{chunk-XSQVCDSD.js → chunk-LD42X7ZH.js} +1 -1
- package/dist/chunks/{chunk-RLKS5G6C.js → chunk-LM3YPF3K.js} +1 -1
- package/dist/chunks/{chunk-J4OVLASZ.js → chunk-LOEU4R4Z.js} +1 -1
- package/dist/chunks/{chunk-DSY2S2YT.js → chunk-M4TIOVOP.js} +1 -1
- package/dist/chunks/{chunk-55H6G46X.js → chunk-MCP63EVQ.js} +1 -1
- package/dist/chunks/{chunk-CNOJCW2I.js → chunk-MDWYXLDB.js} +2 -2
- package/dist/chunks/{chunk-J6L5MDTX.js → chunk-NAXFG37F.js} +1 -1
- package/dist/chunks/{chunk-VM3R6MAM.js → chunk-NDWGYZRT.js} +2 -2
- package/dist/chunks/{chunk-C7D43G3N.js → chunk-O7IYJGOR.js} +1 -1
- package/dist/chunks/chunk-OLAG7Y3P.js +10 -0
- package/dist/chunks/{chunk-5SIC5273.js → chunk-OTJNOMRV.js} +2 -2
- package/dist/chunks/{chunk-RGQZXLV4.js → chunk-OV7G6RIQ.js} +1 -1
- package/dist/chunks/{chunk-MBJT3CNI.js → chunk-P2HBUDGR.js} +1 -1
- package/dist/chunks/{chunk-OER4YAWM.js → chunk-PY5A73YH.js} +1 -1
- package/dist/chunks/{chunk-VAWZZK3Y.js → chunk-QIPUFI6P.js} +1 -1
- package/dist/chunks/{chunk-EPO7P734.js → chunk-QLW5DCM4.js} +1 -1
- package/dist/chunks/{chunk-RUXABBNV.js → chunk-QR7PY5JS.js} +1 -1
- package/dist/chunks/{chunk-AA3JM33J.js → chunk-QTCS2HDX.js} +1 -1
- package/dist/chunks/{chunk-RHFPMM4R.js → chunk-QZEZCUUZ.js} +7 -7
- package/dist/chunks/{chunk-SOGL2HOD.js → chunk-RIAOB3RF.js} +1 -1
- package/dist/chunks/{chunk-4BIGNS67.js → chunk-SBBD2Q5A.js} +1 -1
- package/dist/chunks/{chunk-A3RU52F4.js → chunk-SKLRHAGH.js} +1 -1
- package/dist/chunks/{chunk-SKSOCUDZ.js → chunk-SOCGBVML.js} +1 -1
- package/dist/chunks/{chunk-XTKGBVSF.js → chunk-T2SRGJPU.js} +1 -1
- package/dist/chunks/{chunk-7VTPAXDC.js → chunk-T3S63EA3.js} +1 -1
- package/dist/chunks/{chunk-SJA2LZ4O.js → chunk-TCEEQLD4.js} +1 -1
- package/dist/chunks/{chunk-2NMEPXG3.js → chunk-TK2ILW2O.js} +1 -1
- package/dist/chunks/{chunk-ID663OJ7.js → chunk-TOTTVS5P.js} +1 -1
- package/dist/chunks/{chunk-KPO6VDR2.js → chunk-TSKFDJ77.js} +1 -1
- package/dist/chunks/{chunk-FOQK3VTY.js → chunk-UAUVCOGS.js} +1 -1
- package/dist/chunks/chunk-UI2H2EIM.js +23 -0
- package/dist/chunks/{chunk-5RMIM4S2.js → chunk-UUBPAYTG.js} +1 -1
- package/dist/chunks/{chunk-SACGQMVQ.js → chunk-UUDE44NV.js} +1 -1
- package/dist/chunks/{chunk-5CZNUB7Y.js → chunk-V5A4EBV3.js} +1 -1
- package/dist/chunks/{chunk-KY7LDQRX.js → chunk-VBKFCR5W.js} +1 -1
- package/dist/chunks/{chunk-EQT2VHL2.js → chunk-WRC5CTUD.js} +1 -1
- package/dist/chunks/chunk-X65XZSWS.js +10 -0
- package/dist/chunks/{chunk-LOO42IMZ.js → chunk-XBOGVOV5.js} +1 -1
- package/dist/chunks/{chunk-MFW6IJIK.js → chunk-XK3W6Q5I.js} +1 -1
- package/dist/chunks/{chunk-UKJAWDQX.js → chunk-XUJA3RZD.js} +1 -1
- package/dist/chunks/{chunk-6GSI4VMJ.js → chunk-Y55DGB3L.js} +1 -1
- package/dist/chunks/{chunk-P6ZTEDX2.js → chunk-YEPB52XE.js} +1 -1
- package/dist/chunks/{chunk-7CNJTFWP.js → chunk-YHFZIUXF.js} +1 -1
- package/dist/chunks/{chunk-P2SVNHTJ.js → chunk-YIOT5B5Z.js} +1 -1
- package/dist/chunks/{chunk-OETX5QG4.js → chunk-YKNHA3RN.js} +1 -1
- package/dist/chunks/chunk-YPPDRKVC.js +7 -0
- package/dist/chunks/{chunk-75JI2SZX.js → chunk-YRK2BCTJ.js} +1 -1
- package/dist/chunks/{chunk-EDLTSAD2.js → chunk-YTZPQVGF.js} +1 -1
- package/dist/chunks/{chunk-D2XEF6G4.js → chunk-ZBJ44DRL.js} +1 -1
- package/dist/chunks/chunk-ZRJKGAUT.js +25 -0
- package/dist/chunks/clear-375VKVXY.js +8 -0
- package/dist/chunks/compile-vercel-config-LNRUSKTH.js +7 -0
- package/dist/chunks/config-GOYBATSI.js +8 -0
- package/dist/chunks/config-VAW454ZH.js +7 -0
- package/dist/chunks/connect-git-provider-7KRYVDFS.js +7 -0
- package/dist/chunks/delete-3SN6XFOW.js +10 -0
- package/dist/chunks/delete-W6BZHLGP.js +9 -0
- package/dist/chunks/detect-services-6L57MV5F.js +7 -0
- package/dist/chunks/disable-UUV5MYYH.js +7 -0
- package/dist/chunks/discard-Y6ZITZ2P.js +14 -0
- package/dist/chunks/edit-CVMUITFG.js +9 -0
- package/dist/chunks/edit-LLRI57RF.js +8 -0
- package/dist/chunks/enable-TFA6XWAA.js +7 -0
- package/dist/chunks/esm-4ZHGYTUV.js +7 -0
- package/dist/chunks/esm-7FVTQHRH.js +9 -0
- package/dist/chunks/esm-GTSUYLKG.js +7 -0
- package/dist/chunks/{esm-DFFBNKNU.js → esm-IBY43SSX.js} +1 -1
- package/dist/chunks/esm-LNIAU767.js +7 -0
- package/dist/chunks/esm-TEM4KPXZ.js +7 -0
- package/dist/chunks/esm-TLAM7FSK.js +9 -0
- package/dist/chunks/{exec-R5BDGSGP.js → exec-7LB36K52.js} +1 -1
- package/dist/chunks/{export-FV6WM43O.js → export-AI2O22W5.js} +1 -1
- package/dist/chunks/future-EZEU2CBY.js +7 -0
- package/dist/chunks/generate-cert-for-deploy-QP5BUOJL.js +7 -0
- package/dist/chunks/image-YLUF7SHR.js +7 -0
- package/dist/chunks/import-builders-ANLKHIYK.js +7 -0
- package/dist/chunks/{inspect-DLADA2SX.js → inspect-3NMNI7GY.js} +1 -1
- package/dist/chunks/inspect-3TRAN3SP.js +9 -0
- package/dist/chunks/{inspect-W3RVFJLM.js → inspect-4A67JORH.js} +1 -1
- package/dist/chunks/{inspect-ZUHCIZFW.js → inspect-OM5S5YQ2.js} +1 -1
- package/dist/chunks/inspect-VEUY4QJ2.js +13 -0
- package/dist/chunks/list-DJKKVFUL.js +12 -0
- package/dist/chunks/{list-6EZHEJGK.js → list-NEV4FBTY.js} +1 -1
- package/dist/chunks/{list-L4ZCXNAN.js → list-TUJ7HCQK.js} +1 -1
- package/dist/chunks/login-4HCFKDKL.js +7 -0
- package/dist/chunks/login-EPBJQDEK.js +9 -0
- package/dist/chunks/logs-Q7XXVFR3.js +7 -0
- package/dist/chunks/ls-3TKRCF4T.js +8 -0
- package/dist/chunks/{ls-IGICS6HZ.js → ls-COOTTCRW.js} +1 -1
- package/dist/chunks/{ls-EIGVX2LB.js → ls-CVO4MCX5.js} +1 -1
- package/dist/chunks/ls-LS5J5ERG.js +11 -0
- package/dist/chunks/ls-OQQTUQFN.js +8 -0
- package/dist/chunks/{ls-36K3OMRV.js → ls-OVM2DZYL.js} +1 -1
- package/dist/chunks/{ls-GSMTVAMC.js → ls-UY3KCDSF.js} +1 -1
- package/dist/chunks/mutate-I6QWCURL.js +9 -0
- package/dist/chunks/notifications-UKC5Z6AH.js +7 -0
- package/dist/chunks/open-CYATUDTT.js +7 -0
- package/dist/chunks/openapi-B7WSK7AU.js +7 -0
- package/dist/chunks/permissions-4ZYPHPOZ.js +7 -0
- package/dist/chunks/plugin-offer-4YTKDZGS.js +9 -0
- package/dist/chunks/prompt-missing-credentials-4OKJMYW5.js +7 -0
- package/dist/chunks/publish-N6E7VTRK.js +15 -0
- package/dist/chunks/pull-LPIT3XUR.js +7 -0
- package/dist/chunks/purchase-domain-if-available-IS6UDPJT.js +7 -0
- package/dist/chunks/push-ETLU6OCC.js +7 -0
- package/dist/chunks/{query-CUU7RRG6.js → query-NIMDIFLO.js} +1 -1
- package/dist/chunks/reauthenticate-TESIUM6U.js +7 -0
- package/dist/chunks/reorder-PQU2BQEE.js +10 -0
- package/dist/chunks/reply-RKDDYV5I.js +9 -0
- package/dist/chunks/resolve-ZF7BFXIW.js +12 -0
- package/dist/chunks/resolve-agent-team-QSIJ665W.js +7 -0
- package/dist/chunks/restore-U5A3BEFQ.js +16 -0
- package/dist/chunks/rm-7H5O3T7G.js +8 -0
- package/dist/chunks/rm-EPPMQEAV.js +8 -0
- package/dist/chunks/rm-FNMW2FPM.js +8 -0
- package/dist/chunks/rm-OZIA3DFM.js +8 -0
- package/dist/chunks/rm-W3VOR2ED.js +8 -0
- package/dist/chunks/routes-BLE5XZJE.js +7 -0
- package/dist/chunks/rule-inspect-YAVRRGAP.js +8 -0
- package/dist/chunks/{schema-5G57LHUD.js → schema-44U7GOQE.js} +1 -1
- package/dist/chunks/schema-6SAZ7T2S.js +14 -0
- package/dist/chunks/select-org-L5FJVL5Q.js +7 -0
- package/dist/chunks/set-3NQXDGJV.js +7 -0
- package/dist/chunks/setup-and-link-H36NRP3A.js +7 -0
- package/dist/chunks/{skills-4WEJZT7E.js → skills-XOH4Q7KK.js} +1 -1
- package/dist/chunks/tags-CRG27GFL.js +7 -0
- package/dist/chunks/{types-EK3C4EHF.js → types-6W3KAE2A.js} +1 -1
- package/dist/chunks/{update-IKZXIUYB.js → update-YLFMSPQF.js} +1 -1
- package/dist/commands/build/index.js +1 -1
- package/dist/commands/deploy/index.js +10 -6
- package/dist/commands/dev/index.js +2 -2
- package/dist/commands/env/index.js +5 -3
- package/dist/commands/link/index.js +1 -1
- package/dist/commands/list/index.js +1 -1
- package/dist/commands/project/index.js +1 -1
- package/dist/commands-account.js +1 -1
- package/dist/commands-ai.js +2 -2
- package/dist/commands-blob.js +1 -1
- package/dist/commands-core.js +6 -6
- package/dist/commands-deployments.js +6 -9
- 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 +162 -153
- package/dist/help.js +1 -1
- package/dist/index.js +5 -5
- package/dist/internal-build.js +1 -1
- package/dist/package.json +57 -57
- package/dist/root-help-commands.mjs +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +50 -50
- package/dist/chunks/add-6R2L3B6P.js +0 -8
- package/dist/chunks/add-O4YI4D5H.js +0 -8
- package/dist/chunks/add-W7MDOZMC.js +0 -8
- package/dist/chunks/build-UOKGUTFN.js +0 -7
- package/dist/chunks/chunk-2GHZGOWT.js +0 -7
- package/dist/chunks/chunk-3UD4MZMH.js +0 -8
- package/dist/chunks/chunk-67GZ5REA.js +0 -7
- package/dist/chunks/chunk-A2UZ2O7H.js +0 -7
- package/dist/chunks/chunk-BS32OUOC.js +0 -7
- package/dist/chunks/chunk-D3AHZ5LI.js +0 -7
- package/dist/chunks/chunk-DWOJP4ST.js +0 -27
- package/dist/chunks/chunk-FXF3NEJM.js +0 -14
- package/dist/chunks/chunk-I7U2XP4X.js +0 -10
- package/dist/chunks/chunk-IEZKTS2C.js +0 -10
- package/dist/chunks/chunk-IFXMG2WQ.js +0 -7
- package/dist/chunks/chunk-LCMNJNSQ.js +0 -9
- package/dist/chunks/chunk-MVGTMPMI.js +0 -23
- package/dist/chunks/chunk-RRDNKB2X.js +0 -7
- package/dist/chunks/chunk-YEOOTTBB.js +0 -33
- package/dist/chunks/clear-P2GBQ7OM.js +0 -8
- package/dist/chunks/compile-vercel-config-SPFLKB2T.js +0 -7
- package/dist/chunks/config-BI7WYZWB.js +0 -7
- package/dist/chunks/config-PR2PEOA7.js +0 -8
- package/dist/chunks/connect-git-provider-IQ7N2NPY.js +0 -7
- package/dist/chunks/delete-BZ3NLCTU.js +0 -9
- package/dist/chunks/delete-PUEGS2CP.js +0 -10
- package/dist/chunks/detect-services-HHGBWOND.js +0 -7
- package/dist/chunks/disable-UYLN3HPM.js +0 -7
- package/dist/chunks/discard-NMRN5PS4.js +0 -14
- package/dist/chunks/edit-KA7OSMJA.js +0 -9
- package/dist/chunks/edit-UQ4J2OQ7.js +0 -8
- package/dist/chunks/enable-7FM67BEJ.js +0 -7
- package/dist/chunks/esm-33752ISR.js +0 -7
- package/dist/chunks/esm-4JKEE7PC.js +0 -7
- package/dist/chunks/esm-BYG5BWYH.js +0 -9
- package/dist/chunks/esm-IF453UWS.js +0 -7
- package/dist/chunks/esm-LABWDJ72.js +0 -7
- package/dist/chunks/esm-TG37FXTU.js +0 -9
- package/dist/chunks/future-3WF7CSGN.js +0 -7
- package/dist/chunks/generate-cert-for-deploy-3OBDQ2R3.js +0 -7
- package/dist/chunks/image-SYY2IBOV.js +0 -7
- package/dist/chunks/import-builders-IJYZSEBY.js +0 -7
- package/dist/chunks/inspect-3NZE4UWJ.js +0 -13
- package/dist/chunks/inspect-J4WU7N2Z.js +0 -9
- package/dist/chunks/list-GLYYBTWD.js +0 -12
- package/dist/chunks/login-4OUKTVIZ.js +0 -7
- package/dist/chunks/login-E6L7CG3P.js +0 -9
- package/dist/chunks/logs-XHJPPHQ7.js +0 -7
- package/dist/chunks/ls-E75T2PHD.js +0 -8
- package/dist/chunks/ls-PA4OVQ43.js +0 -11
- package/dist/chunks/ls-RKILAXZ4.js +0 -8
- package/dist/chunks/mutate-4L6XPD7X.js +0 -9
- package/dist/chunks/notifications-IAKFNMTC.js +0 -7
- package/dist/chunks/open-62S7LSPT.js +0 -7
- package/dist/chunks/openapi-SO34WDBK.js +0 -7
- package/dist/chunks/permissions-T2KL34JP.js +0 -7
- package/dist/chunks/plugin-offer-HMNGWYIC.js +0 -9
- package/dist/chunks/prompt-missing-credentials-WTRJREZF.js +0 -7
- package/dist/chunks/publish-EFZO7IO2.js +0 -15
- package/dist/chunks/pull-GVFCZAHC.js +0 -7
- package/dist/chunks/purchase-domain-if-available-PJMKV5BI.js +0 -7
- package/dist/chunks/push-PHTW37LC.js +0 -7
- package/dist/chunks/reauthenticate-7P3C7ASY.js +0 -7
- package/dist/chunks/reorder-EBYXIVUZ.js +0 -10
- package/dist/chunks/reply-CBBADKE5.js +0 -9
- package/dist/chunks/resolve-KKFBXTIX.js +0 -12
- package/dist/chunks/resolve-agent-team-BBBIQWFZ.js +0 -7
- package/dist/chunks/restore-D4JUHPJ7.js +0 -16
- package/dist/chunks/rm-CRDLGD4Y.js +0 -8
- package/dist/chunks/rm-DSAXELZD.js +0 -8
- package/dist/chunks/rm-HXDTYZ3G.js +0 -8
- package/dist/chunks/rm-TDI6GXCE.js +0 -8
- package/dist/chunks/rm-XAUKTN2C.js +0 -8
- package/dist/chunks/routes-RWILS4LA.js +0 -7
- package/dist/chunks/rule-inspect-RKUBC35D.js +0 -8
- package/dist/chunks/schema-WSHKYL5H.js +0 -14
- package/dist/chunks/select-org-OKHCDXNF.js +0 -7
- package/dist/chunks/set-PBM7ZMZ7.js +0 -7
- package/dist/chunks/setup-and-link-PVMEKIYD.js +0 -7
- package/dist/chunks/tags-WUAMDEUU.js +0 -7
|
@@ -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{parseMeta}from"../../chunks/chunk-CZSOZKHX.js";import{fetchDeploymentBuildEnv,resolvePerDirectoryLinkRoot}from"../../chunks/chunk-4NDWIUKJ.js";import{isIgnoredFile,singleFileConfig,singleFileProjectSettings,validatePaths,validateRootDirectory}from"../../chunks/chunk-BPR5CLQM.js";import{promptExperimentalServicesMigration}from"../../chunks/chunk-AA3JM33J.js";import"../../chunks/chunk-APWCVJAG.js";import"../../chunks/chunk-3P4Y46MS.js";import{getBuildMachineResourceConfig}from"../../chunks/chunk-ZF27J6FQ.js";import{pickOverrides}from"../../chunks/chunk-4K3O7QWS.js";import{DeployTelemetryClient,Now,UploadErrorMissingArchive,formatVerificationFailure,printDeploymentStatus,printPrebuiltFilePathMapIgnoreWarning,verifyDeployment}from"../../chunks/chunk-CNOJCW2I.js";import"../../chunks/chunk-ZFRNVIHI.js";import"../../chunks/chunk-JYK7ZIZW.js";import{parseEnv}from"../../chunks/chunk-OER4YAWM.js";import"../../chunks/chunk-6Y2ZL5XJ.js";import"../../chunks/chunk-MFW6IJIK.js";import{applyDeprecatedTargetFlag,parseTarget}from"../../chunks/chunk-EQT2VHL2.js";import{compileVercelConfig}from"../../chunks/chunk-CS6E5XNQ.js";import"../../chunks/chunk-J4OVLASZ.js";import{isGuidanceEnabled}from"../../chunks/chunk-TAAWMNNL.js";import"../../chunks/chunk-2EYHCJQO.js";import{require_semver}from"../../chunks/chunk-BPUANOGW.js";import"../../chunks/chunk-U56NHYAH.js";import{parseRepoUrl}from"../../chunks/chunk-J6L5MDTX.js";import"../../chunks/chunk-EAUDC24V.js";import"../../chunks/chunk-RRDNKB2X.js";import"../../chunks/chunk-MVGTMPMI.js";import"../../chunks/chunk-SACGQMVQ.js";import{getEnabledProtection,getProtectionForDeployment}from"../../chunks/chunk-V6NMCQUQ.js";import{getProductionUrl}from"../../chunks/chunk-VT6RIZJH.js";import{ensureLink}from"../../chunks/chunk-VM3R6MAM.js";import{getDeployment}from"../../chunks/chunk-VAWZZK3Y.js";import{mapCertError}from"../../chunks/chunk-OKNDHNH6.js";import"../../chunks/chunk-PVASGBEF.js";import"../../chunks/chunk-D2XEF6G4.js";import"../../chunks/chunk-V6Y6UK6B.js";import"../../chunks/chunk-J24BABG4.js";import"../../chunks/chunk-U4Z2MMOF.js";import{require_async_sema}from"../../chunks/chunk-NZ2TFADV.js";import"../../chunks/chunk-IQ7FPAI4.js";import{stamp_default}from"../../chunks/chunk-A2RZZQEP.js";import{table}from"../../chunks/chunk-5SIC5273.js";import{getRenamedOption,reportRenamedOptionError}from"../../chunks/chunk-FVIVFDCB.js";import"../../chunks/chunk-Q7D7RGXM.js";import{getSubcommand}from"../../chunks/chunk-ETV3C2CV.js";import"../../chunks/chunk-P6ZTEDX2.js";import{continueSubcommand,deployCommand,deprecatedArchiveSplitTgz,describeSubcommand,getCommandAliases,initSubcommand}from"../../chunks/chunk-FXF3NEJM.js";import"../../chunks/chunk-O7COT3YB.js";import"../../chunks/chunk-2FHZYQPY.js";import"../../chunks/chunk-M7LUSXMG.js";import"../../chunks/chunk-C6IITJ5S.js";import"../../chunks/chunk-TZT3VYZ3.js";import"../../chunks/chunk-HMWDOAWO.js";import"../../chunks/chunk-QNL22LAW.js";import"../../chunks/chunk-UWMPVTXG.js";import"../../chunks/chunk-5CZNUB7Y.js";import"../../chunks/chunk-AUY363W7.js";import"../../chunks/chunk-OTYF3ZZW.js";import"../../chunks/chunk-3H36RI7C.js";import"../../chunks/chunk-BGWS5R5R.js";import"../../chunks/chunk-UJQ6PBRF.js";import"../../chunks/chunk-LFOWP74R.js";import"../../chunks/chunk-GVPVWHFK.js";import"../../chunks/chunk-N5CXIFE2.js";import"../../chunks/chunk-FNA4MIOH.js";import"../../chunks/chunk-JALVF3C2.js";import"../../chunks/chunk-VWHIWUGJ.js";import{printError}from"../../chunks/chunk-LCMNJNSQ.js";import{help}from"../../chunks/chunk-SLDWAIO3.js";import"../../chunks/chunk-67GZ5REA.js";import"../../chunks/chunk-BS32OUOC.js";import{param}from"../../chunks/chunk-3G3FQYMW.js";import"../../chunks/chunk-IFXMG2WQ.js";import{TelemetryClient}from"../../chunks/chunk-4BIGNS67.js";import{require_ci_info}from"../../chunks/chunk-2EYYB6YN.js";import"../../chunks/chunk-NWGBDBZI.js";import{AGENT_REASON,AGENT_STATUS,argvHasNonInteractive,buildCommandWithYes,outputAgentError,withGlobalFlags,writeAgentError}from"../../chunks/chunk-I7U2XP4X.js";import"../../chunks/chunk-EPO7P734.js";import{VERCEL_DIR,VERCEL_DIR_PROJECT,addToGitIgnore,createGitMeta,findProjectsFromPath,getGitConfigPath,getGitExecutable,getLinkFromDir,getProjectLink,getRepoLink,getVercelDirectory,highlight,isOwnerLookupUnavailableLink,isRemoteLookupSkippedLink,linkFolderToProject,parseGitConfig,pluckRemoteUrls,readLocalConfig,require_dist2,require_ignore,require_lib,require_types,sleep,traceOperation}from"../../chunks/chunk-RHFPMM4R.js";import{printAlignedLabel}from"../../chunks/chunk-26QK3I2S.js";import"../../chunks/chunk-55H6G46X.js";import"../../chunks/chunk-4NTBYNFR.js";import{isArgumentError,parseArguments}from"../../chunks/chunk-F22QLVTX.js";import{quoteArg}from"../../chunks/chunk-F53OKXYI.js";import{validateJsonOutput,wantsMachineReadableOutput,warnDeprecatedInput}from"../../chunks/chunk-7SAEZ4NC.js";import"../../chunks/chunk-LUX4PBJL.js";import"../../chunks/chunk-OPORM35X.js";import{require_ms}from"../../chunks/chunk-MXTC4ZAQ.js";import"../../chunks/chunk-OCR5CRTH.js";import"../../chunks/chunk-4SAVH3H7.js";import{AliasDomainConfigured,BuildError,BuildsRateLimited,ConflictingConfigFiles,ConflictingFilePath,ConflictingPathSegment,DeploymentNotFound,DeploymentsRateLimited,DeprecatedNowJson,DomainNotFound,DomainNotVerified,DomainPermissionDenied,DomainVerificationFailed,InvalidDomain,InvalidToken,MissingBuildScript,NotDomainOwner,NowError,SchemaValidationFailed,TooManyRequests,UserAborted,code,isAPIError,parseRetryAfterHeaderAsMillis,require_bytes}from"../../chunks/chunk-YCJHUYBJ.js";import{getCommandName,getCommandNamePlain,packageName}from"../../chunks/chunk-JESNVRVR.js";import{cliErrorFromUnknown,emoji,link_default,output_manager_default,prependEmoji,recordCliError,require_build_utils}from"../../chunks/chunk-DWOJP4ST.js";import"../../chunks/chunk-BLUPZPAS.js";import{require_dist}from"../../chunks/chunk-RM3ZDRYE.js";import"../../chunks/chunk-D3AHZ5LI.js";import"../../chunks/chunk-2GHZGOWT.js";import"../../chunks/chunk-YHPPP3SF.js";import"../../chunks/chunk-OO572JUC.js";import"../../chunks/chunk-PUKYAALC.js";import{getFlagsSpecification}from"../../chunks/chunk-A2UZ2O7H.js";import"../../chunks/chunk-2BKALEOP.js";import{require_source}from"../../chunks/chunk-NB2WLB3J.js";import"../../chunks/chunk-ISWW3DKF.js";import"../../chunks/chunk-BRQUZ5NC.js";import"../../chunks/chunk-5O7CRJE5.js";import{fetch,getFetchDispatcher}from"../../chunks/chunk-U3J7VS56.js";import"../../chunks/chunk-7EJQLVWX.js";import"../../chunks/chunk-SCV7XEEO.js";import{__export,__toESM}from"../../chunks/chunk-BZENIQ7N.js";var import_build_utils11=__toESM(require_build_utils(),1),import_client=__toESM(require_dist2(),1),import_error_utils2=__toESM(require_dist(),1);var import_bytes=__toESM(require_bytes(),1),import_chalk=__toESM(require_source(),1),import_fs_extra4=__toESM(require_lib(),1),import_ms=__toESM(require_ms(),1);import{tmpdir}from"os";import{basename as basename3,dirname as dirname3,extname,join as join17,resolve as resolve3}from"path";async function createDeploy(client,now,contextName,path2,createArgs,org,isSettingUpProject,archive){try{return await now.create(path2,createArgs,org,isSettingUpProject,archive)}catch(err){if(isAPIError(err)){if(err.code==="rate_limited")throw new DeploymentsRateLimited(err.message);if(err.code==="domain_missing")throw new DomainNotFound(err.value);if(err.code==="domain_not_found"&&err.domain)throw new DomainNotFound(err.domain);if(err.code==="domain_not_verified"&&err.domain)throw new DomainNotVerified(err.domain);if(err.code==="domain_not_verified"&&err.value)throw new DomainVerificationFailed(err.value);if(err.code==="not_domain_owner")throw new NotDomainOwner(err.message);if(err.code==="builds_rate_limited")throw new BuildsRateLimited(err.message,{ctaLabel:err.ctaLabel,ctaUrl:err.ctaUrl,action:err.action,link:err.link});if(err.code==="forbidden")throw new DomainPermissionDenied(err.value,contextName);if(err.code==="bad_request"&&err.keyword)throw new SchemaValidationFailed(err.message,err.keyword,err.dataPath,err.params);if(err.code==="domain_configured")throw new AliasDomainConfigured(err);if(err.code==="missing_build_script")throw new MissingBuildScript(err);if(err.code==="conflicting_file_path")throw new ConflictingFilePath(err);if(err.code==="conflicting_path_segment")throw new ConflictingPathSegment(err);if(err.code==="cert_missing"){let{default:generateCertForDeploy}=await import("../../chunks/generate-cert-for-deploy-3OBDQ2R3.js"),result=await generateCertForDeploy(client,contextName,err.value);return result instanceof NowError?result:createDeploy(client,now,contextName,path2,createArgs,org,isSettingUpProject)}if(err.code==="not_found")throw new DeploymentNotFound({context:contextName});let certError=mapCertError(err);if(certError)return certError}throw err}}var ENV_PAIR_FLAGS=["--env","--build-env"],ENV_VALUE_PLACEHOLDER="<VALUE>",CANONICAL_FLAGS={"--token":null,"--confirm":"--yes","--target":"--environment","--team":"--scope","--name":null,"--no-clipboard":null,"--no-logs":null};function buildCreateIfMissingCommand(positionals,flags,argv){let out=["deploy",...positionals],seen=new Set,hasPlaceholder=!1;for(let[typedName,value]of Object.entries(flags)){let name=typedName in CANONICAL_FLAGS?CANONICAL_FLAGS[typedName]:typedName;if(!(!name||name==="--create-if-missing"||seen.has(name))){if(seen.add(name),name==="--non-interactive"){out.push(argvHasNonInteractive(argv)?"--non-interactive":"--non-interactive=false");continue}for(let item of Array.isArray(value)?value:[value])if(item===!0)out.push(name);else if(typeof item=="string"||typeof item=="number"){let text=String(item),shown=ENV_PAIR_FLAGS.includes(name)?withPlaceholder(text):text;hasPlaceholder||=shown!==text,out.push(name,shown)}}}out.push("--create-if-missing");let command=[packageName,...out.map(quoteToken)].join(" ");return hasPlaceholder?{command,note:`replace each ${ENV_VALUE_PLACEHOLDER} with the Environment Variable's value`}:{command}}function findEnvPlaceholder(flags){for(let flag of ENV_PAIR_FLAGS){let value=flags[flag];for(let pair of Array.isArray(value)?value:[value])if(typeof pair=="string"&&pair.endsWith(`=${ENV_VALUE_PLACEHOLDER}`))return{flag,key:pair.slice(0,pair.indexOf("="))}}}function withPlaceholder(pair){let equals=pair.indexOf("=");return equals>=0?`${pair.slice(0,equals)}=${ENV_VALUE_PLACEHOLDER}`:pair}function quoteToken(token){return/^[A-Za-z0-9_./@:=,+-]+$/.test(token)?token:quoteArg(token)}async function getDeploymentChecks(client,deploymentId){return await client.fetch(`/v1/deployments/${encodeURIComponent(deploymentId)}/checks`)}async function getDeploymentCheckRuns(client,deploymentId){return await client.fetch(`/v2/deployments/${encodeURIComponent(deploymentId)}/check-runs`)}function parseNdjson(text){let entries=[];for(let line of text.split(`
|
|
7
|
+
import{parseMeta}from"../../chunks/chunk-CZSOZKHX.js";import{fetchDeploymentBuildEnv,resolvePerDirectoryLinkRoot}from"../../chunks/chunk-G7X2TVUO.js";import{isIgnoredFile,singleFileConfig,singleFileProjectSettings,validatePaths,validateRootDirectory}from"../../chunks/chunk-KL6HNOFN.js";import{promptExperimentalServicesMigration}from"../../chunks/chunk-QTCS2HDX.js";import"../../chunks/chunk-EGPVNTKP.js";import"../../chunks/chunk-3P4Y46MS.js";import{getBuildMachineResourceConfig}from"../../chunks/chunk-ZF27J6FQ.js";import{pickOverrides}from"../../chunks/chunk-FNOCIKAU.js";import{DeployTelemetryClient,Now,UploadErrorMissingArchive,formatVerificationFailure,printDeploymentStatus,printPrebuiltFilePathMapIgnoreWarning,verifyDeployment}from"../../chunks/chunk-MDWYXLDB.js";import"../../chunks/chunk-ZFRNVIHI.js";import"../../chunks/chunk-753RQ6WV.js";import{parseEnv}from"../../chunks/chunk-PY5A73YH.js";import"../../chunks/chunk-6Y2ZL5XJ.js";import"../../chunks/chunk-XK3W6Q5I.js";import{applyDeprecatedTargetFlag,parseTarget}from"../../chunks/chunk-WRC5CTUD.js";import{compileVercelConfig}from"../../chunks/chunk-BHJLCFQ4.js";import"../../chunks/chunk-LOEU4R4Z.js";import{isGuidanceEnabled}from"../../chunks/chunk-TAAWMNNL.js";import"../../chunks/chunk-IHNEF3BG.js";import{require_semver}from"../../chunks/chunk-BPUANOGW.js";import"../../chunks/chunk-U56NHYAH.js";import{parseRepoUrl}from"../../chunks/chunk-NAXFG37F.js";import"../../chunks/chunk-4ELZOAQH.js";import"../../chunks/chunk-JUAHDOL6.js";import"../../chunks/chunk-UI2H2EIM.js";import"../../chunks/chunk-UUDE44NV.js";import{getEnabledProtection,getProtectionForDeployment}from"../../chunks/chunk-AEOG4E5G.js";import{getProductionUrl}from"../../chunks/chunk-VT6RIZJH.js";import{ensureLink}from"../../chunks/chunk-NDWGYZRT.js";import{getDeployment}from"../../chunks/chunk-QIPUFI6P.js";import{mapCertError}from"../../chunks/chunk-6KCYUYUM.js";import"../../chunks/chunk-PVASGBEF.js";import"../../chunks/chunk-ZBJ44DRL.js";import"../../chunks/chunk-V6Y6UK6B.js";import"../../chunks/chunk-J24BABG4.js";import"../../chunks/chunk-U4Z2MMOF.js";import{require_async_sema}from"../../chunks/chunk-NZ2TFADV.js";import"../../chunks/chunk-IQ7FPAI4.js";import{stamp_default}from"../../chunks/chunk-A2RZZQEP.js";import{table}from"../../chunks/chunk-OTJNOMRV.js";import{getRenamedOption,reportRenamedOptionError}from"../../chunks/chunk-2QSNFVB6.js";import"../../chunks/chunk-Q7D7RGXM.js";import{getSubcommand}from"../../chunks/chunk-ETV3C2CV.js";import"../../chunks/chunk-YEPB52XE.js";import{continueSubcommand,deployCommand,deprecatedArchiveSplitTgz,describeSubcommand,getCommandAliases,initSubcommand}from"../../chunks/chunk-2PYFJXKS.js";import"../../chunks/chunk-3KSTUMR6.js";import"../../chunks/chunk-EZL4AJXH.js";import"../../chunks/chunk-45UDRX4C.js";import"../../chunks/chunk-J52UJYOK.js";import"../../chunks/chunk-GZWYJT4C.js";import"../../chunks/chunk-3AXMZRAB.js";import"../../chunks/chunk-FQVSBXRY.js";import"../../chunks/chunk-GP5MFCGO.js";import"../../chunks/chunk-V5A4EBV3.js";import"../../chunks/chunk-IECNFRTK.js";import"../../chunks/chunk-A6F3EE2O.js";import"../../chunks/chunk-K2R3QPOC.js";import"../../chunks/chunk-IHRM7L23.js";import"../../chunks/chunk-HTFQFHPR.js";import"../../chunks/chunk-LFOWP74R.js";import"../../chunks/chunk-DBV6AB6T.js";import"../../chunks/chunk-37DIJCWK.js";import"../../chunks/chunk-7E6UJXLR.js";import"../../chunks/chunk-JALVF3C2.js";import"../../chunks/chunk-7V2PXIVW.js";import{printError}from"../../chunks/chunk-D3GYYGSS.js";import{help}from"../../chunks/chunk-33U57CNE.js";import{param}from"../../chunks/chunk-3G3FQYMW.js";import"../../chunks/chunk-IU6PHFPQ.js";import{TelemetryClient}from"../../chunks/chunk-SBBD2Q5A.js";import{require_ci_info}from"../../chunks/chunk-2EYYB6YN.js";import"../../chunks/chunk-NWGBDBZI.js";import{AGENT_REASON,AGENT_STATUS,argvHasNonInteractive,buildCommandWithYes,outputAgentError,withGlobalFlags,writeAgentError}from"../../chunks/chunk-KAUKCHQF.js";import"../../chunks/chunk-QLW5DCM4.js";import{VERCEL_DIR,VERCEL_DIR_PROJECT,addToGitIgnore,createGitMeta,findProjectsFromPath,getGitConfigPath,getGitExecutable,getLinkFromDir,getProjectLink,getRepoLink,getVercelDirectory,highlight,isOwnerLookupUnavailableLink,isRemoteLookupSkippedLink,linkFolderToProject,parseGitConfig,pluckRemoteUrls,readLocalConfig,require_dist2,require_ignore,require_lib,require_types,sleep,traceOperation}from"../../chunks/chunk-QZEZCUUZ.js";import{printAlignedLabel}from"../../chunks/chunk-3LQ2ADXO.js";import"../../chunks/chunk-MCP63EVQ.js";import"../../chunks/chunk-4NTBYNFR.js";import{isArgumentError,parseArguments}from"../../chunks/chunk-KIMIK4SG.js";import{quoteArg}from"../../chunks/chunk-F53OKXYI.js";import{validateJsonOutput,wantsMachineReadableOutput,warnDeprecatedInput}from"../../chunks/chunk-JRBPVMQO.js";import"../../chunks/chunk-LUX4PBJL.js";import"../../chunks/chunk-OPORM35X.js";import{require_ms}from"../../chunks/chunk-MXTC4ZAQ.js";import"../../chunks/chunk-OCR5CRTH.js";import"../../chunks/chunk-4SAVH3H7.js";import{AliasDomainConfigured,BuildError,BuildsRateLimited,ConflictingConfigFiles,ConflictingFilePath,ConflictingPathSegment,DeploymentNotFound,DeploymentsRateLimited,DeprecatedNowJson,DomainNotFound,DomainNotVerified,DomainPermissionDenied,DomainVerificationFailed,InvalidDomain,InvalidToken,MissingBuildScript,NotDomainOwner,NowError,SchemaValidationFailed,TooManyRequests,UserAborted,code,isAPIError,parseRetryAfterHeaderAsMillis,require_bytes}from"../../chunks/chunk-FXEMEIST.js";import{getCommandName,getCommandNamePlain,packageName}from"../../chunks/chunk-JESNVRVR.js";import{cliErrorFromUnknown,emoji,link_default,output_manager_default,prependEmoji,recordCliError,require_build_utils}from"../../chunks/chunk-ZRJKGAUT.js";import"../../chunks/chunk-BLUPZPAS.js";import{require_dist}from"../../chunks/chunk-RM3ZDRYE.js";import"../../chunks/chunk-YHPPP3SF.js";import"../../chunks/chunk-OO572JUC.js";import"../../chunks/chunk-PUKYAALC.js";import{getFlagsSpecification}from"../../chunks/chunk-YPPDRKVC.js";import"../../chunks/chunk-2BKALEOP.js";import{require_source}from"../../chunks/chunk-NB2WLB3J.js";import"../../chunks/chunk-ISWW3DKF.js";import"../../chunks/chunk-BULSRTQE.js";import"../../chunks/chunk-BRQUZ5NC.js";import"../../chunks/chunk-5O7CRJE5.js";import{fetch,getFetchDispatcher}from"../../chunks/chunk-U3J7VS56.js";import"../../chunks/chunk-7EJQLVWX.js";import"../../chunks/chunk-SCV7XEEO.js";import{__export,__toESM}from"../../chunks/chunk-BZENIQ7N.js";var import_build_utils11=__toESM(require_build_utils(),1),import_client=__toESM(require_dist2(),1),import_error_utils2=__toESM(require_dist(),1);var import_bytes=__toESM(require_bytes(),1),import_chalk=__toESM(require_source(),1),import_fs_extra4=__toESM(require_lib(),1),import_ms=__toESM(require_ms(),1);import{tmpdir}from"os";import{basename as basename3,dirname as dirname3,extname,join as join17,resolve as resolve3}from"path";async function createDeploy(client,now,contextName,path2,createArgs,org,isSettingUpProject,archive){try{return await now.create(path2,createArgs,org,isSettingUpProject,archive)}catch(err){if(isAPIError(err)){if(err.code==="rate_limited")throw new DeploymentsRateLimited(err.message);if(err.code==="domain_missing")throw new DomainNotFound(err.value);if(err.code==="domain_not_found"&&err.domain)throw new DomainNotFound(err.domain);if(err.code==="domain_not_verified"&&err.domain)throw new DomainNotVerified(err.domain);if(err.code==="domain_not_verified"&&err.value)throw new DomainVerificationFailed(err.value);if(err.code==="not_domain_owner")throw new NotDomainOwner(err.message);if(err.code==="builds_rate_limited")throw new BuildsRateLimited(err.message,{ctaLabel:err.ctaLabel,ctaUrl:err.ctaUrl,action:err.action,link:err.link});if(err.code==="forbidden")throw new DomainPermissionDenied(err.value,contextName);if(err.code==="bad_request"&&err.keyword)throw new SchemaValidationFailed(err.message,err.keyword,err.dataPath,err.params);if(err.code==="domain_configured")throw new AliasDomainConfigured(err);if(err.code==="missing_build_script")throw new MissingBuildScript(err);if(err.code==="conflicting_file_path")throw new ConflictingFilePath(err);if(err.code==="conflicting_path_segment")throw new ConflictingPathSegment(err);if(err.code==="cert_missing"){let{default:generateCertForDeploy}=await import("../../chunks/generate-cert-for-deploy-QP5BUOJL.js"),result=await generateCertForDeploy(client,contextName,err.value);return result instanceof NowError?result:createDeploy(client,now,contextName,path2,createArgs,org,isSettingUpProject)}if(err.code==="not_found")throw new DeploymentNotFound({context:contextName});let certError=mapCertError(err);if(certError)return certError}throw err}}var ENV_PAIR_FLAGS=["--env","--build-env"],ENV_VALUE_PLACEHOLDER="<VALUE>",PROJECT_PLACEHOLDER="<PROJECT>",CANONICAL_FLAGS={"--token":null,"--confirm":"--yes","--target":"--environment","--team":"--scope","--name":null,"--no-clipboard":null,"--no-logs":null};function buildCreateIfMissingCommand(positionals,flags,argv,{createIfMissing=!0,addProjectPlaceholder=!1}={}){let out=["deploy",...positionals],seen=new Set,hasPlaceholder=!1;for(let[typedName,value]of Object.entries(flags)){let name=typedName in CANONICAL_FLAGS?CANONICAL_FLAGS[typedName]:typedName;if(!(!name||name==="--create-if-missing"||seen.has(name))){if(seen.add(name),name==="--non-interactive"){out.push(argvHasNonInteractive(argv)?"--non-interactive":"--non-interactive=false");continue}for(let item of Array.isArray(value)?value:[value])if(item===!0)out.push(name);else if(typeof item=="string"||typeof item=="number"){let text=String(item),shown=ENV_PAIR_FLAGS.includes(name)?withPlaceholder(text):text;hasPlaceholder||=shown!==text,out.push(name,shown)}}}addProjectPlaceholder&&out.push("--project",PROJECT_PLACEHOLDER),createIfMissing&&out.push("--create-if-missing");let command=[packageName,...out.map(quoteToken)].join(" "),notes=[...addProjectPlaceholder?[`replace ${PROJECT_PLACEHOLDER} with the project name`]:[],...hasPlaceholder?[`replace each ${ENV_VALUE_PLACEHOLDER} with the Environment Variable's value`]:[]];return notes.length?{command,note:notes.join(", and ")}:{command}}function findEnvPlaceholder(flags){for(let flag of ENV_PAIR_FLAGS){let value=flags[flag];for(let pair of Array.isArray(value)?value:[value])if(typeof pair=="string"&&pair.endsWith(`=${ENV_VALUE_PLACEHOLDER}`))return{flag,key:pair.slice(0,pair.indexOf("="))}}}function withPlaceholder(pair){let equals=pair.indexOf("=");return equals>=0?`${pair.slice(0,equals)}=${ENV_VALUE_PLACEHOLDER}`:pair}function quoteToken(token){return token===PROJECT_PLACEHOLDER||/^[A-Za-z0-9_./@:=,+-]+$/.test(token)?token:quoteArg(token)}async function getDeploymentChecks(client,deploymentId){return await client.fetch(`/v1/deployments/${encodeURIComponent(deploymentId)}/checks`)}async function getDeploymentCheckRuns(client,deploymentId){return await client.fetch(`/v2/deployments/${encodeURIComponent(deploymentId)}/check-runs`)}function parseNdjson(text){let entries=[];for(let line of text.split(`
|
|
8
8
|
`))if(line.trim())try{entries.push(JSON.parse(line))}catch{}return entries}async function getDeploymentCheckRunLogs(client,deploymentId,checkRunId){let url=`/v2/deployments/${encodeURIComponent(deploymentId)}/check-runs/${encodeURIComponent(checkRunId)}/logs`;await new Promise(resolve4=>setTimeout(resolve4,1e3));for(let attempt=0;attempt<5;attempt++){attempt>0&&await new Promise(resolve4=>setTimeout(resolve4,2e3));let res=await client.fetch(url,{json:!1}),text=typeof res=="string"?res:await res.text(),entries=parseNdjson(text);if(entries.some(e=>e.level==="eof"))return entries.filter(e=>e.level!=="eof"&&e.level!=="debug").map(({level,timestamp,message})=>({level,timestamp,message}))}return[]}var import_fs_extra=__toESM(require_lib(),1);import{join}from"path";async function getPrebuiltJson(directory){try{return await import_fs_extra.default.readJSON(join(directory,"builds.json"))}catch{}return null}import{resolve}from"path";var SUPPORTED_PROVIDERS=new Set(["github","gitlab","bitbucket"]),defaultDeps={getGitConfigPath,parseGitConfig,fetchProject:(client,project)=>client.fetch(`/v9/projects/${encodeURIComponent(project.id)}`,{accountId:project.accountId}),buildCommand:(client,command)=>withGlobalFlags(client,command,{preserveProject:!0})};async function getGitConnectRecommendation(client,cwd,project,options={}){let{alreadyOffered=!1,deps=defaultDeps}=options;try{if(project.link||alreadyOffered)return;let gitConfigPath=deps.getGitConfigPath({cwd});if(!gitConfigPath)return;let gitConfig=await deps.parseGitConfig(gitConfigPath),remoteUrls=gitConfig&&pluckRemoteUrls(gitConfig);if(!remoteUrls)return;let remotes=Object.values(remoteUrls);if(!remotes.some(remoteUrl=>{let repo=parseRepoUrl(remoteUrl);return repo&&SUPPORTED_PROVIDERS.has(repo.provider)})||client.nonInteractive&&remotes.length!==1||(await deps.fetchProject(client,project)).link)return;let cwdFlag=resolve(cwd)===resolve(client.cwd)?"":` --cwd ${quoteArg(cwd)}`;return deps.buildCommand(client,`git connect${cwdFlag}`)}catch(error){output_manager_default.debug(`Failed to resolve Git connection guidance: ${error}`);return}}var import_types=__toESM(require_types(),1),validArchiveFormats=new Set(import_types.VALID_ARCHIVE_FORMATS);function isValidArchive(archive){return validArchiveFormats.has(archive)}var DEPRECATED_SHORTHANDS={"-e":"--env","-b":"--build-env"};function getDeployFlagsSpecification(options){return{...getFlagsSpecification(options),...DEPRECATED_SHORTHANDS}}function warnDeprecatedShorthands(client,options){let flags;try{({flags}=parseArguments(client.argv.slice(2),{...getFlagsSpecification(options),"-e":[String],"-b":[String]},{permissive:!0}))}catch{return}for(let[shorthand,name]of Object.entries(DEPRECATED_SHORTHANDS))flags[shorthand]!==void 0&&warnDeprecatedInput(client,shorthand,name)}function getErrorCta(source){if(typeof source.ctaLabel=="string"&&typeof source.ctaUrl=="string")return{label:source.ctaLabel,url:source.ctaUrl};if(typeof source.action=="string"&&typeof source.link=="string")return{label:source.action,url:source.link}}var DescribeError=class extends Error{constructor(reason,message){super(message);this.reason=reason}};var DescribeTelemetryClient=class extends TelemetryClient{trackCliOptionDeployment(value){value&&this.trackCliOption({option:"deployment",value:this.redactedValue})}trackCliOptionId(value){value&&this.trackCliOption({option:"id",value:this.redactedValue})}trackCliOptionAwsAccountId(value){value&&this.trackCliOption({option:"aws-account-id",value:this.redactedValue})}trackCliFlagJson(value){value&&this.trackCliFlag("json")}};var attempts=3;function downloadLayer(client,url){return client.retry((bail,attempt)=>client.withTrace("vc.cli.describe.layer_download",async trace=>{trace?.span.setAttributes({attempt:String(attempt),http_method:"GET"}),attempt>1&&await sleep(Math.random()*1e3);let response;try{let res=await fetch(url,{signal:AbortSignal.timeout(6e4)});if(response=res,trace?.span.setAttributes({http_status_code:String(res.status)}),res.ok)return new Uint8Array(await client.withTrace("vc.cli.describe.layer_body",()=>res.arrayBuffer()))}catch(error2){await response?.body?.cancel().catch(()=>{});let reason=error2 instanceof Error&&error2.name==="TimeoutError"?"timeout":"network_error";throw trace?.span.setAttributes({failure_reason:reason}),downloadError(attempt,reason)}await response.body?.cancel().catch(()=>{}),trace?.span.setAttributes({failure_reason:"http_error"});let error=downloadError(attempt,`HTTP ${response.status}`);if(response.status!==408&&response.status!==429&&response.status<500)return bail(error);let retryAfter=parseRetryAfterHeaderAsMillis(response.headers.get("retry-after"));if(retryAfter!==void 0&&retryAfter>6e4)return bail(error);throw attempt<attempts&&retryAfter&&await sleep(retryAfter),error}),{retries:attempts-1})}function downloadError(attempt,reason){return new DescribeError("layer_download_failed",`Could not download a required runtime layer.
|
|
9
9
|
Cause: ${reason}
|
|
10
10
|
Attempts: ${attempt}
|
|
@@ -23,7 +23,7 @@ exec "$USER_BOOTSTRAP" "$@"
|
|
|
23
23
|
`):output_manager_default.error(message),code2),parsed;try{parsed=parseArguments(client.argv.slice(2),getFlagsSpecification(describeSubcommand.options))}catch(error){return fail("invalid_arguments",`${isArgumentError(error)?error.message:"Invalid describe options"}. Run \`vercel deploy describe --help\` for usage.`,2)}asJson=parsed.flags["--json"]===!0;let deployment=getRenamedOption(parsed.flags,"--deployment","--id",{json:asJson});if("error"in deployment)return fail("invalid_arguments",deployment.error,2);deployment.warning&&(warnings=[deployment.warning]);let deploymentId=deployment.value,awsAccountId=parsed.flags["--aws-account-id"];if((parsed.args[0]==="deploy"?parsed.args.slice(1):parsed.args).length>1)return fail("invalid_arguments","Unexpected positional arguments. Run `vercel deploy describe --help` for usage.",2);if(!deploymentId||!/^dpl_[a-zA-Z0-9]+$/.test(deploymentId))return fail("invalid_arguments","Provide a deployment ID with --deployment, such as --deployment dpl_xxx.",2);if(!awsAccountId||!/^\d{12}$/.test(awsAccountId))return fail("invalid_arguments","Provide a 12-digit AWS account ID with --aws-account-id.",2);if(process.platform==="win32")return fail("unsupported_platform","vercel deploy describe is not supported on Windows yet. Run it on macOS or Linux.");let telemetry=new DescribeTelemetryClient({opts:{store:client.telemetryEventStore}});telemetry.trackCliOptionDeployment(parsed.flags["--deployment"]),telemetry.trackCliOptionId(parsed.flags["--id"]),telemetry.trackCliOptionAwsAccountId(awsAccountId),telemetry.trackCliFlagJson(parsed.flags["--json"]);try{let project=await resolveDescribeProject(client),explicitTeam=parsed.flags["--scope"]?client.config.currentTeam:process.env.VERCEL_ORG_ID;if(explicitTeam&&explicitTeam!==project.orgId)return fail("scope_mismatch","The selected team does not match the local project link. Use the linked team, or run `vercel pull --yes` with the intended VERCEL_ORG_ID and VERCEL_PROJECT_ID.");if(process.env.VERCEL_PROJECT_ID&&process.env.VERCEL_PROJECT_ID!==project.projectId)return fail("project_mismatch","VERCEL_PROJECT_ID differs from the linked project. Run `vercel pull --yes` to restore settings for the intended project.");client.config.currentTeam=project.orgId.startsWith("team_")?project.orgId:void 0,asJson||output_manager_default.log(`Preparing ${deploymentId} in team ${project.orgId} for AWS account ${awsAccountId}`);let directory=await describeDeployment(client,{directory:project.directory,repoRootPath:project.repoRootPath,deploymentId,awsAccountId,teamId:project.orgId,quiet:asJson}),descriptor=join14(directory,"descriptor.json");if(asJson)client.stdout.write(`${JSON.stringify({deployment:{id:deploymentId},awsAccountId,directory,descriptor,...warnings.length>0?{warnings}:{}})}
|
|
24
24
|
`);else{client.stdout.write(`${descriptor}
|
|
25
25
|
`),output_manager_default.log(`Prepared function packages in ${directory}`);let cwd=project.directory===client.cwd?"":` --cwd ${quoteArg(project.directory)}`;output_manager_default.log(`Provision the functions in descriptor.json, then run:
|
|
26
|
-
vercel deploy continue --deployment ${deploymentId}${cwd}`)}return 0}catch(error){return output_manager_default.debug(error instanceof Error?error.stack??error.message:String(error)),error instanceof DescribeError?fail(error.reason,error.message):error instanceof InvalidToken||isAPIError(error)&&error.status===401?fail("not_authorized","Could not authenticate with Vercel. Check VERCEL_TOKEN in CI, or run `vercel login`."):isAPIError(error)&&error.status===403?fail("not_authorized","Vercel denied access to this deployment. Check that your token has access to the linked project and team."):isAPIError(error)&&error.status===404?fail("not_found",`Deployment ${deploymentId} was not found, or manual provisioning is not enabled for this team.`):isAPIError(error)&&error.status<500&&error.serverMessage?fail("api_error",error.serverMessage):fail("describe_failed","Could not prepare deployment functions. Check the local build and deployment access, then rerun this command.")}}var import_fs_extra3=__toESM(require_lib(),1);import{join as join16}from"path";var import_fs_extra2=__toESM(require_lib(),1),import_ci_info=__toESM(require_ci_info(),1),import_build_utils10=__toESM(require_build_utils(),1),import_error_utils=__toESM(require_dist(),1);import{join as join15}from"path";var VERCEL_DIR_ANONYMOUS="anonymous.json";function anonymousStatePath(cwd){return join15(cwd,VERCEL_DIR,VERCEL_DIR_ANONYMOUS)}async function readAnonymousState(cwd){try{let state=await(0,import_fs_extra2.readJSON)(anonymousStatePath(cwd));if(typeof state?.projectId=="string"&&typeof state.token=="string"&&typeof state.claimUrl=="string"&&typeof state.expiresAt=="number")return state}catch{}return null}async function writeAnonymousState(cwd,state){let path2=anonymousStatePath(cwd);await(0,import_fs_extra2.outputJSON)(path2,state,{spaces:2,mode:384}),await(0,import_fs_extra2.chmod)(path2,384),await addToGitIgnore(cwd)}async function clearAnonymousState(cwd){await(0,import_fs_extra2.remove)(anonymousStatePath(cwd))}async function bootstrapAnonymousProject(client){let{projectId,token,claimUrl,expiresAt}=await client.fetch("/v1/anonymous/projects?surface=cli",{method:"POST",body:{},useCurrentTeam:!1,retry:{retries:0}});return{projectId,token,claimUrl,expiresAt}}async function ensureAnonymousLink(client,cwd,{requireExistingState=!1,confirmed=!0}={}){if(import_ci_info.default.isCI||!!((0,import_build_utils10.getPlatformEnv)("ORG_ID")&&(0,import_build_utils10.getPlatformEnv)("PROJECT_ID"))||!!await getLinkFromDir(getVercelDirectory(cwd))||!!(await getRepoLink(client,cwd))?.repoConfig)return"refused";let state=await readAnonymousState(cwd);if(state&&state.expiresAt<=Date.now())return output_manager_default.prettyError({message:`Your temporary deployment has expired. Run ${getCommandName("login")} to create an account and keep deploying this app.`}),"failed";if(!state&&requireExistingState)return"refused";if(!confirmed&&!state)return"confirmation-required";if(!state){try{state=await bootstrapAnonymousProject(client)}catch(err){return output_manager_default.debug(`Anonymous bootstrap failed: ${(0,import_error_utils.errorToString)(err)}`),"refused"}await writeAnonymousState(cwd,state),output_manager_default.log("Not authenticated. Deploying anonymously.")}return client.authConfig={token:state.token,skipWrite:!0},delete process.env.VERCEL_TEAM_ID,{status:"linked",anonymous:!0,expiresAt:state.expiresAt,claimUrl:state.claimUrl,org:{type:"user",id:"",slug:"anonymous"},project:{id:state.projectId,name:state.projectId}}}function validateAnonymousTarget(isAnonymous,target){return isAnonymous&&target&&target!=="production"?(output_manager_default.error(`Anonymous deployments always target production, so "${target}" is not available. Remove the ${param("--environment")} option, or run ${getCommandName("login")} to deploy to other environments.`),!1):!0}async function setupAnonymousDeployment(client,cwd,{isAnonymous,dryRun}){isAnonymous||await clearAnonymousState(cwd);let anonymousLink;if(isAnonymous){let anonymous=await ensureAnonymousLink(client,cwd,{requireExistingState:dryRun});if(anonymous==="refused"){output_manager_default.log("Temporary deployments aren't available for this attempt. Log in to continue.");let{default:promptMissingCredentials}=await import("../../chunks/prompt-missing-credentials-WTRJREZF.js"),loginExitCode=await promptMissingCredentials(client);if(loginExitCode!==0)return loginExitCode;isAnonymous=!1}else{if(anonymous==="failed")return 1;if(anonymous==="confirmation-required")return 1;anonymousLink=anonymous}}return{isAnonymous,anonymousLink}}async function handleAnonymousDeploymentError({client,cwd,error,link,isV0,retry}){if(!(!link||!isAPIError(error))){if(error.code==="anonymous_project_claimed"){if(client.nonInteractive||!client.stdin.isTTY)return output_manager_default.prettyError({message:`This project was claimed successfully. Run ${getCommandName("login")} to continue deploying it.`}),1;output_manager_default.log("This project was claimed successfully. Log in to continue deploying it.");let loginExitCode;try{let{default:login}=await import("../../chunks/login-4OUKTVIZ.js");loginExitCode=await login(client,{shouldParseArgs:!1})}catch(loginError){return printError(loginError),1}if(loginExitCode!==0)return loginExitCode;let claimedProjectLink=await ensureLink("deploy",client,cwd,{autoConfirm:!0,projectName:link.project.id,failIfNotFound:!0,allowOwnerLookupFallback:!0,v0:isV0});return typeof claimedProjectLink=="number"?claimedProjectLink:(await linkFolderToProject(client,cwd,{projectId:claimedProjectLink.project.id,orgId:claimedProjectLink.org.id},claimedProjectLink.project.name,claimedProjectLink.org.slug,"link",!0,!1),await clearAnonymousState(cwd),retry())}if(error.status===401||error.status===410)return await clearAnonymousState(cwd),output_manager_default.prettyError({message:`Your temporary deployment has expired. Run ${getCommandName("login")} to create an account and keep deploying this app.`}),1}}async function runImplicitBuild(client,cwd){let projectJsonPath=join16(cwd,VERCEL_DIR,VERCEL_DIR_PROJECT),projectJsonExists=await import_fs_extra3.default.pathExists(projectJsonPath);projectJsonExists||await import_fs_extra3.default.outputJSON(projectJsonPath,{settings:{}},{spaces:2}),await import_fs_extra3.default.pathExists(join16(cwd,"package.json"))&&output_manager_default.log("Building your project locally\u2026");let originalArgv=client.argv,originalCwd=client.cwd,originalStdout=client.stdout,previousVercelFirstDeployment=process.env.VERCEL_FIRST_DEPLOYMENT;client.cwd=cwd,client.setArgv([...originalArgv.slice(0,2),"build","--prod","--yes"]),process.env.VERCEL_FIRST_DEPLOYMENT="1",client.stdout=createSinkStream();try{let build=(await import("../build/index.js")).default;return await build(client)}finally{client.setArgv(originalArgv),client.cwd=originalCwd,client.stdout=originalStdout,previousVercelFirstDeployment===void 0?delete process.env.VERCEL_FIRST_DEPLOYMENT:process.env.VERCEL_FIRST_DEPLOYMENT=previousVercelFirstDeployment,projectJsonExists||await import_fs_extra3.default.remove(projectJsonPath)}}function createSinkStream(){return{isTTY:!1,write:()=>!0}}var COMMAND_CONFIG={init:getCommandAliases(initSubcommand),continue:getCommandAliases(continueSubcommand),describe:getCommandAliases(describeSubcommand)},deploy_default=async client=>{let telemetryClient=new DeployTelemetryClient({opts:{store:client.telemetryEventStore}}),parsedArguments=null,flagsSpecification=getDeployFlagsSpecification(deployCommand.options);try{parsedArguments=parseArguments(client.argv.slice(2),flagsSpecification,{permissive:!0})}catch(error){return printError(error),2}let subArgs=parsedArguments.args[0]===deployCommand.name?parsedArguments.args.slice(1):parsedArguments.args,{subcommand,subcommandOriginal}=getSubcommand(subArgs,COMMAND_CONFIG);function printSubcommandHelp(command){output_manager_default.print(help(command,{stream:client.stderr,parent:deployCommand,columns:client.stderr.columns}))}switch(subcommand){case"init":return parsedArguments.flags["--help"]?(telemetryClient.trackCliFlagHelp("deploy",subcommandOriginal),printSubcommandHelp(initSubcommand),0):(telemetryClient.trackCliSubcommandInit(subcommandOriginal),handleInitDeployment(client,telemetryClient));case"continue":return parsedArguments.flags["--help"]?(telemetryClient.trackCliFlagHelp("deploy",subcommandOriginal),printSubcommandHelp(continueSubcommand),0):(telemetryClient.trackCliSubcommandContinue(subcommandOriginal),handleContinueSubcommand(client,telemetryClient));case"describe":return parsedArguments.flags["--help"]?(telemetryClient.trackCliFlagHelp("deploy",subcommandOriginal),printSubcommandHelp(describeSubcommand),0):(telemetryClient.trackCliSubcommandDescribe(subcommandOriginal),describe(client));default:return parsedArguments.flags["--help"]?(telemetryClient.trackCliFlagHelp("deploy"),output_manager_default.print(help(deployCommand,{stream:client.stderr,columns:client.stderr.columns})),0):handleDefaultDeploy(client,telemetryClient)}};async function handleInitDeployment(client,telemetryClient){let flagsSpecification=getDeployFlagsSpecification(initSubcommand.options),parsedArguments;try{parsedArguments=parseArguments(client.argv.slice(2),flagsSpecification)}catch(error2){return printError(error2),2}warnDeprecatedShorthands(client,initSubcommand.options),telemetryClient.trackCliFlagJson(parsedArguments.flags["--json"]),telemetryClient.trackCliOptionFormat(parsedArguments.flags["--format"]),telemetryClient.trackCliOptionProject(parsedArguments.flags["--project"]);let projectNameOrId=parsedArguments.flags["--project"],formatResult=validateJsonOutput(parsedArguments.flags);if(!formatResult.valid)return output_manager_default.error(formatResult.error),2;let asJson=formatResult.jsonOutput||client.nonInteractive;if(!applyDeprecatedTargetFlag(client,parsedArguments.flags))return 2;let args=parsedArguments.args;args[0]==="deploy"&&(args=args.slice(1)),args[0]==="init"&&(args=args.slice(1));let paths;args.length>0?(paths=args.map(item=>resolve3(client.cwd,item)),telemetryClient.trackCliArgumentProjectPath(paths[0])):paths=[client.cwd];let pathValidation=await validatePaths(client,paths);if(!pathValidation.valid)return pathValidation.exitCode;await compileVercelConfig(paths[0]);let localConfig=paths[0]===client.cwd?client.localConfig||readLocalConfig(paths[0]):readLocalConfig(paths[0]);if(localConfig){client.localConfig=localConfig;let{version}=localConfig,file=highlight(localConfig[import_client.fileNameSymbol]),prop=code("version");if(version)if(typeof version=="number"){if(version!==2){let two=code(String(2));return output_manager_default.error(`The value of the ${prop} property within ${file} can only be ${two}.`),1}}else return output_manager_default.error(`The ${prop} property inside your ${file} file must be a number.`),1}let{log,debug,error}=output_manager_default,quiet=!client.stdout.isTTY,{path:cwd}=pathValidation,autoConfirm=parsedArguments.flags["--yes"],target=parseTarget({flagName:"environment",flags:parsedArguments.flags});telemetryClient.trackTargetEnvironment(target);let parsedArchive=parsedArguments.flags["--archive"];if(typeof parsedArchive=="string"&&!(isValidArchive(parsedArchive)||parsedArchive===deprecatedArchiveSplitTgz))return output_manager_default.error(`Format must be one of: ${import_client.VALID_ARCHIVE_FORMATS.join(", ")}`),2;parsedArchive===deprecatedArchiveSplitTgz&&output_manager_default.print(`${prependEmoji(`${param("--archive=tgz")} now has the same behavior as ${param("--archive=split-tgz")}. Please use ${param("--archive=tgz")} instead.`,emoji("warning"))}
|
|
26
|
+
vercel deploy continue --deployment ${deploymentId}${cwd}`)}return 0}catch(error){return output_manager_default.debug(error instanceof Error?error.stack??error.message:String(error)),error instanceof DescribeError?fail(error.reason,error.message):error instanceof InvalidToken||isAPIError(error)&&error.status===401?fail("not_authorized","Could not authenticate with Vercel. Check VERCEL_TOKEN in CI, or run `vercel login`."):isAPIError(error)&&error.status===403?fail("not_authorized","Vercel denied access to this deployment. Check that your token has access to the linked project and team."):isAPIError(error)&&error.status===404?fail("not_found",`Deployment ${deploymentId} was not found, or manual provisioning is not enabled for this team.`):isAPIError(error)&&error.status<500&&error.serverMessage?fail("api_error",error.serverMessage):fail("describe_failed","Could not prepare deployment functions. Check the local build and deployment access, then rerun this command.")}}var import_fs_extra3=__toESM(require_lib(),1);import{join as join16}from"path";var import_fs_extra2=__toESM(require_lib(),1),import_ci_info=__toESM(require_ci_info(),1),import_build_utils10=__toESM(require_build_utils(),1),import_error_utils=__toESM(require_dist(),1);import{join as join15}from"path";var VERCEL_DIR_ANONYMOUS="anonymous.json";function anonymousStatePath(cwd){return join15(cwd,VERCEL_DIR,VERCEL_DIR_ANONYMOUS)}async function readAnonymousState(cwd){try{let state=await(0,import_fs_extra2.readJSON)(anonymousStatePath(cwd));if(typeof state?.projectId=="string"&&typeof state.token=="string"&&typeof state.claimUrl=="string"&&typeof state.expiresAt=="number")return state}catch{}return null}async function writeAnonymousState(cwd,state){let path2=anonymousStatePath(cwd);await(0,import_fs_extra2.outputJSON)(path2,state,{spaces:2,mode:384}),await(0,import_fs_extra2.chmod)(path2,384),await addToGitIgnore(cwd)}async function clearAnonymousState(cwd){await(0,import_fs_extra2.remove)(anonymousStatePath(cwd))}async function bootstrapAnonymousProject(client){let{projectId,token,claimUrl,expiresAt}=await client.fetch("/v1/anonymous/projects?surface=cli",{method:"POST",body:{},useCurrentTeam:!1,retry:{retries:0}});return{projectId,token,claimUrl,expiresAt}}async function ensureAnonymousLink(client,cwd,{requireExistingState=!1,confirmed=!0}={}){if(import_ci_info.default.isCI||!!((0,import_build_utils10.getPlatformEnv)("ORG_ID")&&(0,import_build_utils10.getPlatformEnv)("PROJECT_ID"))||!!await getLinkFromDir(getVercelDirectory(cwd))||!!(await getRepoLink(client,cwd))?.repoConfig)return"refused";let state=await readAnonymousState(cwd);if(state&&state.expiresAt<=Date.now())return output_manager_default.prettyError({message:`Your temporary deployment has expired. Run ${getCommandName("login")} to create an account and keep deploying this app.`}),"failed";if(!state&&requireExistingState)return"refused";if(!confirmed&&!state)return"confirmation-required";if(!state){try{state=await bootstrapAnonymousProject(client)}catch(err){return output_manager_default.debug(`Anonymous bootstrap failed: ${(0,import_error_utils.errorToString)(err)}`),"refused"}await writeAnonymousState(cwd,state),output_manager_default.log("Not authenticated. Deploying anonymously.")}return client.authConfig={token:state.token,skipWrite:!0},delete process.env.VERCEL_TEAM_ID,{status:"linked",anonymous:!0,expiresAt:state.expiresAt,claimUrl:state.claimUrl,org:{type:"user",id:"",slug:"anonymous"},project:{id:state.projectId,name:state.projectId}}}function validateAnonymousTarget(isAnonymous,target){return isAnonymous&&target&&target!=="production"?(output_manager_default.error(`Anonymous deployments always target production, so "${target}" is not available. Remove the ${param("--environment")} option, or run ${getCommandName("login")} to deploy to other environments.`),!1):!0}async function setupAnonymousDeployment(client,cwd,{isAnonymous,dryRun}){isAnonymous||await clearAnonymousState(cwd);let anonymousLink;if(isAnonymous){let anonymous=await ensureAnonymousLink(client,cwd,{requireExistingState:dryRun});if(anonymous==="refused"){output_manager_default.log("Temporary deployments aren't available for this attempt. Log in to continue.");let{default:promptMissingCredentials}=await import("../../chunks/prompt-missing-credentials-4OKJMYW5.js"),loginExitCode=await promptMissingCredentials(client);if(loginExitCode!==0)return loginExitCode;isAnonymous=!1}else{if(anonymous==="failed")return 1;if(anonymous==="confirmation-required")return 1;anonymousLink=anonymous}}return{isAnonymous,anonymousLink}}async function handleAnonymousDeploymentError({client,cwd,error,link,isV0,retry}){if(!(!link||!isAPIError(error))){if(error.code==="anonymous_project_claimed"){if(client.nonInteractive||!client.stdin.isTTY)return output_manager_default.prettyError({message:`This project was claimed successfully. Run ${getCommandName("login")} to continue deploying it.`}),1;output_manager_default.log("This project was claimed successfully. Log in to continue deploying it.");let loginExitCode;try{let{default:login}=await import("../../chunks/login-4HCFKDKL.js");loginExitCode=await login(client,{shouldParseArgs:!1})}catch(loginError){return printError(loginError),1}if(loginExitCode!==0)return loginExitCode;let claimedProjectLink=await ensureLink("deploy",client,cwd,{autoConfirm:!0,projectName:link.project.id,failIfNotFound:!0,allowOwnerLookupFallback:!0,v0:isV0});return typeof claimedProjectLink=="number"?claimedProjectLink:(await linkFolderToProject(client,cwd,{projectId:claimedProjectLink.project.id,orgId:claimedProjectLink.org.id},claimedProjectLink.project.name,claimedProjectLink.org.slug,"link",!0,!1),await clearAnonymousState(cwd),retry())}if(error.status===401||error.status===410)return await clearAnonymousState(cwd),output_manager_default.prettyError({message:`Your temporary deployment has expired. Run ${getCommandName("login")} to create an account and keep deploying this app.`}),1}}async function runImplicitBuild(client,cwd){let projectJsonPath=join16(cwd,VERCEL_DIR,VERCEL_DIR_PROJECT),projectJsonExists=await import_fs_extra3.default.pathExists(projectJsonPath);projectJsonExists||await import_fs_extra3.default.outputJSON(projectJsonPath,{settings:{}},{spaces:2}),await import_fs_extra3.default.pathExists(join16(cwd,"package.json"))&&output_manager_default.log("Building your project locally\u2026");let originalArgv=client.argv,originalCwd=client.cwd,originalStdout=client.stdout,previousVercelFirstDeployment=process.env.VERCEL_FIRST_DEPLOYMENT;client.cwd=cwd,client.setArgv([...originalArgv.slice(0,2),"build","--prod","--yes"]),process.env.VERCEL_FIRST_DEPLOYMENT="1",client.stdout=createSinkStream();try{let build=(await import("../build/index.js")).default;return await build(client)}finally{client.setArgv(originalArgv),client.cwd=originalCwd,client.stdout=originalStdout,previousVercelFirstDeployment===void 0?delete process.env.VERCEL_FIRST_DEPLOYMENT:process.env.VERCEL_FIRST_DEPLOYMENT=previousVercelFirstDeployment,projectJsonExists||await import_fs_extra3.default.remove(projectJsonPath)}}function createSinkStream(){return{isTTY:!1,write:()=>!0}}var COMMAND_CONFIG={init:getCommandAliases(initSubcommand),continue:getCommandAliases(continueSubcommand),describe:getCommandAliases(describeSubcommand)},deploy_default=async client=>{let telemetryClient=new DeployTelemetryClient({opts:{store:client.telemetryEventStore}}),parsedArguments=null,flagsSpecification=getDeployFlagsSpecification(deployCommand.options);try{parsedArguments=parseArguments(client.argv.slice(2),flagsSpecification,{permissive:!0})}catch(error){return printError(error),2}let subArgs=parsedArguments.args[0]===deployCommand.name?parsedArguments.args.slice(1):parsedArguments.args,{subcommand,subcommandOriginal}=getSubcommand(subArgs,COMMAND_CONFIG);function printSubcommandHelp(command){output_manager_default.print(help(command,{stream:client.stderr,parent:deployCommand,columns:client.stderr.columns}))}switch(subcommand){case"init":return parsedArguments.flags["--help"]?(telemetryClient.trackCliFlagHelp("deploy",subcommandOriginal),printSubcommandHelp(initSubcommand),0):(telemetryClient.trackCliSubcommandInit(subcommandOriginal),handleInitDeployment(client,telemetryClient));case"continue":return parsedArguments.flags["--help"]?(telemetryClient.trackCliFlagHelp("deploy",subcommandOriginal),printSubcommandHelp(continueSubcommand),0):(telemetryClient.trackCliSubcommandContinue(subcommandOriginal),handleContinueSubcommand(client,telemetryClient));case"describe":return parsedArguments.flags["--help"]?(telemetryClient.trackCliFlagHelp("deploy",subcommandOriginal),printSubcommandHelp(describeSubcommand),0):(telemetryClient.trackCliSubcommandDescribe(subcommandOriginal),describe(client));default:return parsedArguments.flags["--help"]?(telemetryClient.trackCliFlagHelp("deploy"),output_manager_default.print(help(deployCommand,{stream:client.stderr,columns:client.stderr.columns})),0):handleDefaultDeploy(client,telemetryClient)}};async function handleInitDeployment(client,telemetryClient){let flagsSpecification=getDeployFlagsSpecification(initSubcommand.options),parsedArguments;try{parsedArguments=parseArguments(client.argv.slice(2),flagsSpecification)}catch(error2){return printError(error2),2}warnDeprecatedShorthands(client,initSubcommand.options),telemetryClient.trackCliFlagJson(parsedArguments.flags["--json"]),telemetryClient.trackCliOptionFormat(parsedArguments.flags["--format"]),telemetryClient.trackCliOptionProject(parsedArguments.flags["--project"]);let projectNameOrId=parsedArguments.flags["--project"],formatResult=validateJsonOutput(parsedArguments.flags);if(!formatResult.valid)return output_manager_default.error(formatResult.error),2;let asJson=formatResult.jsonOutput||client.nonInteractive;if(!applyDeprecatedTargetFlag(client,parsedArguments.flags))return 2;let args=parsedArguments.args;args[0]==="deploy"&&(args=args.slice(1)),args[0]==="init"&&(args=args.slice(1));let paths;args.length>0?(paths=args.map(item=>resolve3(client.cwd,item)),telemetryClient.trackCliArgumentProjectPath(paths[0])):paths=[client.cwd];let pathValidation=await validatePaths(client,paths);if(!pathValidation.valid)return pathValidation.exitCode;await compileVercelConfig(paths[0]);let localConfig=paths[0]===client.cwd?client.localConfig||readLocalConfig(paths[0]):readLocalConfig(paths[0]);if(localConfig){client.localConfig=localConfig;let{version}=localConfig,file=highlight(localConfig[import_client.fileNameSymbol]),prop=code("version");if(version)if(typeof version=="number"){if(version!==2){let two=code(String(2));return output_manager_default.error(`The value of the ${prop} property within ${file} can only be ${two}.`),1}}else return output_manager_default.error(`The ${prop} property inside your ${file} file must be a number.`),1}let{log,debug,error}=output_manager_default,quiet=!client.stdout.isTTY,{path:cwd}=pathValidation,autoConfirm=parsedArguments.flags["--yes"],target=parseTarget({flagName:"environment",flags:parsedArguments.flags});telemetryClient.trackTargetEnvironment(target);let parsedArchive=parsedArguments.flags["--archive"];if(typeof parsedArchive=="string"&&!(isValidArchive(parsedArchive)||parsedArchive===deprecatedArchiveSplitTgz))return output_manager_default.error(`Format must be one of: ${import_client.VALID_ARCHIVE_FORMATS.join(", ")}`),2;parsedArchive===deprecatedArchiveSplitTgz&&output_manager_default.print(`${prependEmoji(`${param("--archive=tgz")} now has the same behavior as ${param("--archive=split-tgz")}. Please use ${param("--archive=tgz")} instead.`,emoji("warning"))}
|
|
27
27
|
`);let cliMeta=parseMeta(parsedArguments.flags["--meta"]),isV0=cliMeta.v0==="true";getGitExecutable(cwd);let link=await ensureLink("deploy",client,cwd,{autoConfirm,projectName:projectNameOrId??localConfig?.name,failIfNotFound:!!projectNameOrId,v0:isV0});if(typeof link=="number")return link;let{org,project}=link,rootDirectory=project.rootDirectory,sourceFilesOutsideRootDirectory=project.sourceFilesOutsideRootDirectory??!0;link.repoRoot&&(cwd=link.repoRoot);let contextName=org.slug;if(client.config.currentTeam=org.type==="team"?org.id:void 0,rootDirectory&&await validateRootDirectory(cwd,join17(cwd,rootDirectory),project?`To change your Project Settings, go to https://vercel.com/${org?.slug}/${project.name}/settings`:"")===!1)return 1;if(await promptExperimentalServicesMigration({client,cwd:join17(cwd,rootDirectory||""),autoConfirm:!!parsedArguments.flags["--yes"],nonInteractive:client.nonInteractive})&&(localConfig=readLocalConfig(join17(cwd,rootDirectory||""))),rootDirectory){let rootDirectoryPath=join17(cwd,rootDirectory);await compileVercelConfig(rootDirectoryPath);let rootDirectoryConfig=readLocalConfig(rootDirectoryPath);rootDirectoryConfig?(debug(`Read local config from root directory (${rootDirectory})`),localConfig=rootDirectoryConfig):localConfig&&output_manager_default.print(`${prependEmoji(`The ${highlight(localConfig[import_client.fileNameSymbol])} file should be inside of the provided root directory.`,emoji("warning"))}
|
|
28
28
|
`)}localConfig=localConfig||{},localConfig.name&&output_manager_default.print(`${prependEmoji(`The ${code("name")} property in ${highlight(localConfig[import_client.fileNameSymbol])} is deprecated (https://vercel.link/name-prop)`,emoji("warning"))}
|
|
29
29
|
`);let isObject=item=>Object.prototype.toString.call(item)==="[object Object]";if(typeof localConfig.env<"u"&&!isObject(localConfig.env))return error(`The ${code("env")} property in ${highlight(localConfig[import_client.fileNameSymbol])} needs to be an object`),1;if(typeof localConfig.build<"u"){if(!isObject(localConfig.build))return error(`The ${code("build")} property in ${highlight(localConfig[import_client.fileNameSymbol])} needs to be an object`),1;if(typeof localConfig.build.env<"u"&&!isObject(localConfig.build.env))return error(`The ${code("build.env")} property in ${highlight(localConfig[import_client.fileNameSymbol])} needs to be an object`),1}let meta=Object.assign({},parseMeta(localConfig.meta),cliMeta),gitMetadata=client.withTrace("vc.cli.deploy.git_metadata",()=>createGitMeta(join17(cwd,project.rootDirectory||""),project));gitMetadata.catch(()=>{});let deploymentEnv=Object.assign({},parseEnv(localConfig.env),parseEnv(parsedArguments.flags["--env"])),deploymentBuildEnv=Object.assign({},parseEnv(localConfig.build&&localConfig.build.env),parseEnv(parsedArguments.flags["--build-env"]));try{await addProcessEnv(log,deploymentEnv),await addProcessEnv(log,deploymentBuildEnv)}catch(err){return error((0,import_error_utils2.errorToString)(err)),1}let regionFlag=(parsedArguments.flags["--regions"]||"").split(",").map(s=>s.trim()).filter(Boolean),regions=regionFlag.length>0?regionFlag:localConfig.regions,currentTeam=org.type==="team"?org.id:void 0,now=new Now({client,currentTeam}),deployStamp=stamp_default(),localConfigurationOverrides=pickOverrides(localConfig),name=project.name;if(!name)throw new Error("`name` not found on project or provided by existing project");let noWait=!0;try{let autoAssignCustomDomains=parsedArguments.flags["--skip-domain"]?!1:void 0,createArgs={name,env:deploymentEnv,build:{env:deploymentBuildEnv},forceNew:parsedArguments.flags["--force"],withCache:parsedArguments.flags["--with-cache"],prebuilt:!0,vercelOutputDir:void 0,rootDirectory,quiet,nowConfig:{...localConfig,images:void 0},regions,meta,gitMetadata,deployStamp,target,skipAutoDetectionConfirmation:autoConfirm,noWait,withFullLogs:!1,autoAssignCustomDomains,manual:!0,jsonOutput:asJson,linkedProject:project};(!localConfig.builds||localConfig.builds.length===0)&&(createArgs.projectSettings={sourceFilesOutsideRootDirectory,rootDirectory,...localConfigurationOverrides});let{packageJson}=await(0,import_build_utils11.findPackageJson)(join17(cwd,project?.rootDirectory??""),!0,cwd),nodeVersion;if(packageJson?.engines?.node)try{let{range}=await(0,import_build_utils11.getSupportedNodeVersion)(packageJson.engines.node);nodeVersion=range}catch(error2){error2 instanceof Error&&output_manager_default.warn(error2.message)}createArgs.projectSettings||(createArgs.projectSettings={}),createArgs.projectSettings.nodeVersion=nodeVersion;let deployment=await createDeploy(client,now,contextName,cwd,createArgs,org,!project,parsedArchive?"tgz":void 0);if(deployment instanceof NotDomainOwner)return recordCliError({code:"not_domain_owner"}),client.nonInteractive?(client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"not_domain_owner",message:deployment.message,next:[{command:withGlobalFlags(client,"deploy"),when:"retry deploy"}]},null,2)}
|
|
@@ -34,10 +34,14 @@ exec "$USER_BOOTSTRAP" "$@"
|
|
|
34
34
|
`)}else output_manager_default.error(`Running Checks: ${counterList}`);return 1}if(deployment===null)return recordCliError({code:"upload_failed"}),client.nonInteractive?(client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"upload_failed",message:"Uploading failed. Please try again.",next:[{command:withGlobalFlags(client,"deploy"),when:"retry deploy"}]},null,2)}
|
|
35
35
|
`),1):(error("Uploading failed. Please try again."),1);if(asJson){output_manager_default.stopSpinner();let deploymentJson=getDeploymentOutputJson(deployment,client.apiUrl),isImplicitProduction=deployment.target==="production"&&!target,payload=client.nonInteractive?{status:AGENT_STATUS.OK,deployment:deploymentJson,message:formatReadyMessage(deployment.url,deploymentJson.productionUrl),...isImplicitProduction?{hint:"This is the project\u2019s first deployment, so it was assigned to production. Future deployments will be preview deployments unless you use --prod."}:{},next:[{command:withGlobalFlags(client,`inspect ${deployment.url}`),when:"Inspect deployment"},...isImplicitProduction?[]:[{command:withGlobalFlags(client,"deploy --prod"),when:"Promote to production"}]]}:deploymentJson;return client.stdout.write(`${JSON.stringify(payload,null,2)}
|
|
36
36
|
`),0}return printDeploymentStatus(client,deployment,deployStamp,noWait,!1,!0)}catch(err){if(recordCliError(cliErrorFromUnknown(err)),(0,import_error_utils2.isError)(err)&&debug(`Error: ${err}
|
|
37
|
-
${err.stack}`),err instanceof UploadErrorMissingArchive)return output_manager_default.prettyError(err),1;if(err instanceof NotDomainOwner)return recordCliError({code:"not_domain_owner"},{override:!0}),output_manager_default.error(err.message),1;if(err instanceof DomainNotFound||err instanceof DomainNotVerified||err instanceof NotDomainOwner||err instanceof DomainPermissionDenied||err instanceof DomainVerificationFailed||err instanceof SchemaValidationFailed||err instanceof InvalidDomain||err instanceof DeploymentNotFound||err instanceof BuildsRateLimited||err instanceof DeploymentsRateLimited||err instanceof AliasDomainConfigured||err instanceof MissingBuildScript||err instanceof ConflictingFilePath||err instanceof ConflictingPathSegment||err instanceof ConflictingConfigFiles||err instanceof DeprecatedNowJson)return handleCreateDeployError(err,localConfig),1;if(isAPIError(err)&&err.code==="size_limit_exceeded"){let{sizeLimit=0}=err,message=`File size limit exceeded (${(0,import_bytes.default)(sizeLimit)})`;return error(message),1}return printError(err),1}}async function handleContinueSubcommand(client,telemetryClient){let flagsSpecification=getFlagsSpecification(continueSubcommand.options),parsedArguments;try{parsedArguments=parseArguments(client.argv.slice(2),flagsSpecification)}catch(error){return printError(error),2}telemetryClient.trackCliOptionDeployment(parsedArguments.flags["--deployment"]),telemetryClient.trackCliOptionId(parsedArguments.flags["--id"]);let deployment=getRenamedOption(parsedArguments.flags,"--deployment","--id");if("error"in deployment)return reportRenamedOptionError(client,deployment.error);let idFlag=deployment.value,parsedArchive=parsedArguments.flags["--archive"],errorMessage=parsedArguments.flags["--error"];if(typeof parsedArchive=="string"&&!isValidArchive(parsedArchive))return output_manager_default.error(`Format must be one of: ${import_client.VALID_ARCHIVE_FORMATS.join(", ")}`),2;if(telemetryClient.trackCliOptionArchive(parsedArchive),parsedArchive&&errorMessage!==void 0)return output_manager_default.error(`Cannot use ${param("--archive")} with ${param("--error")}`),2;if(errorMessage!==void 0&&errorMessage.trim()==="")return output_manager_default.error(`${param("--error")} requires an error message`),1;if(!idFlag)return client.nonInteractive?(outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:"missing_id",message:"Missing required --deployment option. Provide the deployment ID to continue.",next:[{command:withGlobalFlags(client,"deploy continue --deployment <DEPLOYMENT>"),when:"provide deployment ID"}]},2),2):(output_manager_default.error(`Missing required ${param("--deployment")} option. Usage: ${getCommandName("deploy continue --deployment <DEPLOYMENT>")}`),2);let paths=[client.cwd],pathValidation=await validatePaths(client,paths);if(!pathValidation.valid)return pathValidation.exitCode;await compileVercelConfig(paths[0]);let localConfig=client.localConfig||readLocalConfig(paths[0]);localConfig&&(client.localConfig=localConfig);let{path:cwd}=pathValidation,link=await ensureLink("deploy",client,cwd,{autoConfirm:!0,projectName:localConfig?.name});if(typeof link=="number")return link;let{org}=link;if(link.repoRoot&&(cwd=link.repoRoot),client.config.currentTeam=org.type==="team"?org.id:void 0,errorMessage!==void 0)try{return await client.fetch(`/deployments/${idFlag}/continue`,{method:"POST",body:{errorMessage}}),output_manager_default.success(`Marked deployment ${idFlag} as errored`),0}catch(error){return printError(error),1}let vercelOutputDir=join17(cwd,".vercel/output");if(link.repoRoot&&link.project.rootDirectory&&(vercelOutputDir=join17(cwd,link.project.rootDirectory,".vercel/output")),!await import_fs_extra4.default.pathExists(vercelOutputDir))return client.nonInteractive?(outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:"prebuilt_not_found",message:'No prebuilt output found in ".vercel/output". Run build first.',next:[{command:withGlobalFlags(client,"build"),when:"generate prebuilt output"},{command:withGlobalFlags(client,`deploy continue --deployment ${idFlag}`),when:"deploy prebuilt output"}]},1),1):(output_manager_default.error(`No prebuilt output found in ".vercel/output". Run ${getCommandName("build")} to generate a local build.`),1);let deployStamp=stamp_default();return handleContinueDeployment({client,telemetryClient,deploymentId:idFlag,cwd,deployStamp,noWait:!1,org,vercelOutputDir,archive:parsedArchive?"tgz":void 0})}async function handleDefaultDeploy(client,telemetryClient){let tempDirs=[];try{return await runDefaultDeploy(client,telemetryClient,tempDirs)}finally{await Promise.all(tempDirs.map(dir=>import_fs_extra4.default.remove(dir)))}}async function runDefaultDeploy(client,telemetryClient,tempDirs){let flagsSpecification=getDeployFlagsSpecification(deployCommand.options),parsedArguments;try{parsedArguments=parseArguments(client.argv.slice(2),flagsSpecification)}catch(error2){return printError(error2),2}warnDeprecatedShorthands(client,deployCommand.options);let buildMachine=parsedArguments.flags["--turbo"]?"turbo":void 0;telemetryClient.trackCliOptionArchive(parsedArguments.flags["--archive"]),telemetryClient.trackCliFlagTurbo(parsedArguments.flags["--turbo"]),telemetryClient.trackCliOptionEnv(parsedArguments.flags["--env"]),telemetryClient.trackCliOptionBuildEnv(parsedArguments.flags["--build-env"]),telemetryClient.trackCliOptionMeta(parsedArguments.flags["--meta"]),telemetryClient.trackCliFlagPrebuilt(parsedArguments.flags["--prebuilt"]),telemetryClient.trackCliOptionRegions(parsedArguments.flags["--regions"]),telemetryClient.trackCliFlagNoWait(parsedArguments.flags["--no-wait"]),telemetryClient.trackCliFlagDry(parsedArguments.flags["--dry"]),telemetryClient.trackCliFlagCreateIfMissing(parsedArguments.flags["--create-if-missing"]),telemetryClient.trackCliFlagVerify(parsedArguments.flags["--verify"]),telemetryClient.trackCliFlagYes(parsedArguments.flags["--yes"]),telemetryClient.trackCliOptionTarget(parsedArguments.flags["--target"]),telemetryClient.trackCliOptionEnvironment(parsedArguments.flags["--environment"]),telemetryClient.trackCliFlagProd(parsedArguments.flags["--prod"]),telemetryClient.trackCliFlagTemporary(parsedArguments.flags["--temporary"]),telemetryClient.trackCliFlagSkipDomain(parsedArguments.flags["--skip-domain"]),telemetryClient.trackCliFlagLogs(parsedArguments.flags["--logs"]),telemetryClient.trackCliFlagNoLogs(parsedArguments.flags["--no-logs"]),telemetryClient.trackCliFlagGuidance(parsedArguments.flags["--guidance"]),telemetryClient.trackCliFlagForce(parsedArguments.flags["--force"]),telemetryClient.trackCliFlagWithCache(parsedArguments.flags["--with-cache"]),telemetryClient.trackCliFlagJson(parsedArguments.flags["--json"]),telemetryClient.trackCliOptionFormat(parsedArguments.flags["--format"]),telemetryClient.trackCliOptionProject(parsedArguments.flags["--project"]);let projectNameOrId=parsedArguments.flags["--project"],formatResult=validateJsonOutput(parsedArguments.flags);if(!formatResult.valid)return output_manager_default.error(formatResult.error),2;let asJson=formatResult.jsonOutput||client.nonInteractive,createIfMissing=!!parsedArguments.flags["--create-if-missing"],envPlaceholder=findEnvPlaceholder(parsedArguments.flags);if(envPlaceholder
|
|
37
|
+
${err.stack}`),err instanceof UploadErrorMissingArchive)return output_manager_default.prettyError(err),1;if(err instanceof NotDomainOwner)return recordCliError({code:"not_domain_owner"},{override:!0}),output_manager_default.error(err.message),1;if(err instanceof DomainNotFound||err instanceof DomainNotVerified||err instanceof NotDomainOwner||err instanceof DomainPermissionDenied||err instanceof DomainVerificationFailed||err instanceof SchemaValidationFailed||err instanceof InvalidDomain||err instanceof DeploymentNotFound||err instanceof BuildsRateLimited||err instanceof DeploymentsRateLimited||err instanceof AliasDomainConfigured||err instanceof MissingBuildScript||err instanceof ConflictingFilePath||err instanceof ConflictingPathSegment||err instanceof ConflictingConfigFiles||err instanceof DeprecatedNowJson)return handleCreateDeployError(err,localConfig),1;if(isAPIError(err)&&err.code==="size_limit_exceeded"){let{sizeLimit=0}=err,message=`File size limit exceeded (${(0,import_bytes.default)(sizeLimit)})`;return error(message),1}return printError(err),1}}async function handleContinueSubcommand(client,telemetryClient){let flagsSpecification=getFlagsSpecification(continueSubcommand.options),parsedArguments;try{parsedArguments=parseArguments(client.argv.slice(2),flagsSpecification)}catch(error){return printError(error),2}telemetryClient.trackCliOptionDeployment(parsedArguments.flags["--deployment"]),telemetryClient.trackCliOptionId(parsedArguments.flags["--id"]);let deployment=getRenamedOption(parsedArguments.flags,"--deployment","--id");if("error"in deployment)return reportRenamedOptionError(client,deployment.error);let idFlag=deployment.value,parsedArchive=parsedArguments.flags["--archive"],errorMessage=parsedArguments.flags["--error"];if(typeof parsedArchive=="string"&&!isValidArchive(parsedArchive))return output_manager_default.error(`Format must be one of: ${import_client.VALID_ARCHIVE_FORMATS.join(", ")}`),2;if(telemetryClient.trackCliOptionArchive(parsedArchive),parsedArchive&&errorMessage!==void 0)return output_manager_default.error(`Cannot use ${param("--archive")} with ${param("--error")}`),2;if(errorMessage!==void 0&&errorMessage.trim()==="")return output_manager_default.error(`${param("--error")} requires an error message`),1;if(!idFlag)return client.nonInteractive?(outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:"missing_id",message:"Missing required --deployment option. Provide the deployment ID to continue.",next:[{command:withGlobalFlags(client,"deploy continue --deployment <DEPLOYMENT>"),when:"provide deployment ID"}]},2),2):(output_manager_default.error(`Missing required ${param("--deployment")} option. Usage: ${getCommandName("deploy continue --deployment <DEPLOYMENT>")}`),2);let paths=[client.cwd],pathValidation=await validatePaths(client,paths);if(!pathValidation.valid)return pathValidation.exitCode;await compileVercelConfig(paths[0]);let localConfig=client.localConfig||readLocalConfig(paths[0]);localConfig&&(client.localConfig=localConfig);let{path:cwd}=pathValidation,link=await ensureLink("deploy",client,cwd,{autoConfirm:!0,projectName:localConfig?.name});if(typeof link=="number")return link;let{org}=link;if(link.repoRoot&&(cwd=link.repoRoot),client.config.currentTeam=org.type==="team"?org.id:void 0,errorMessage!==void 0)try{return await client.fetch(`/deployments/${idFlag}/continue`,{method:"POST",body:{errorMessage}}),output_manager_default.success(`Marked deployment ${idFlag} as errored`),0}catch(error){return printError(error),1}let vercelOutputDir=join17(cwd,".vercel/output");if(link.repoRoot&&link.project.rootDirectory&&(vercelOutputDir=join17(cwd,link.project.rootDirectory,".vercel/output")),!await import_fs_extra4.default.pathExists(vercelOutputDir))return client.nonInteractive?(outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:"prebuilt_not_found",message:'No prebuilt output found in ".vercel/output". Run build first.',next:[{command:withGlobalFlags(client,"build"),when:"generate prebuilt output"},{command:withGlobalFlags(client,`deploy continue --deployment ${idFlag}`),when:"deploy prebuilt output"}]},1),1):(output_manager_default.error(`No prebuilt output found in ".vercel/output". Run ${getCommandName("build")} to generate a local build.`),1);let deployStamp=stamp_default();return handleContinueDeployment({client,telemetryClient,deploymentId:idFlag,cwd,deployStamp,noWait:!1,org,vercelOutputDir,archive:parsedArchive?"tgz":void 0})}async function handleDefaultDeploy(client,telemetryClient){let tempDirs=[];try{return await runDefaultDeploy(client,telemetryClient,tempDirs)}finally{await Promise.all(tempDirs.map(dir=>import_fs_extra4.default.remove(dir)))}}async function runDefaultDeploy(client,telemetryClient,tempDirs){let flagsSpecification=getDeployFlagsSpecification(deployCommand.options),parsedArguments;try{parsedArguments=parseArguments(client.argv.slice(2),flagsSpecification)}catch(error2){return printError(error2),2}warnDeprecatedShorthands(client,deployCommand.options);let buildMachine=parsedArguments.flags["--turbo"]?"turbo":void 0;telemetryClient.trackCliOptionArchive(parsedArguments.flags["--archive"]),telemetryClient.trackCliFlagTurbo(parsedArguments.flags["--turbo"]),telemetryClient.trackCliOptionEnv(parsedArguments.flags["--env"]),telemetryClient.trackCliOptionBuildEnv(parsedArguments.flags["--build-env"]),telemetryClient.trackCliOptionMeta(parsedArguments.flags["--meta"]),telemetryClient.trackCliFlagPrebuilt(parsedArguments.flags["--prebuilt"]),telemetryClient.trackCliOptionRegions(parsedArguments.flags["--regions"]),telemetryClient.trackCliFlagNoWait(parsedArguments.flags["--no-wait"]),telemetryClient.trackCliFlagDry(parsedArguments.flags["--dry"]),telemetryClient.trackCliFlagCreateIfMissing(parsedArguments.flags["--create-if-missing"]),telemetryClient.trackCliFlagVerify(parsedArguments.flags["--verify"]),telemetryClient.trackCliFlagYes(parsedArguments.flags["--yes"]),telemetryClient.trackCliOptionTarget(parsedArguments.flags["--target"]),telemetryClient.trackCliOptionEnvironment(parsedArguments.flags["--environment"]),telemetryClient.trackCliFlagProd(parsedArguments.flags["--prod"]),telemetryClient.trackCliFlagTemporary(parsedArguments.flags["--temporary"]),telemetryClient.trackCliFlagSkipDomain(parsedArguments.flags["--skip-domain"]),telemetryClient.trackCliFlagLogs(parsedArguments.flags["--logs"]),telemetryClient.trackCliFlagNoLogs(parsedArguments.flags["--no-logs"]),telemetryClient.trackCliFlagGuidance(parsedArguments.flags["--guidance"]),telemetryClient.trackCliFlagForce(parsedArguments.flags["--force"]),telemetryClient.trackCliFlagWithCache(parsedArguments.flags["--with-cache"]),telemetryClient.trackCliFlagJson(parsedArguments.flags["--json"]),telemetryClient.trackCliOptionFormat(parsedArguments.flags["--format"]),telemetryClient.trackCliOptionProject(parsedArguments.flags["--project"]);let projectNameOrId=parsedArguments.flags["--project"],formatResult=validateJsonOutput(parsedArguments.flags);if(!formatResult.valid)return output_manager_default.error(formatResult.error),2;let asJson=formatResult.jsonOutput||client.nonInteractive,createIfMissing=!!parsedArguments.flags["--create-if-missing"],envPlaceholder=findEnvPlaceholder(parsedArguments.flags);if(envPlaceholder){let message=`${envPlaceholder.flag} ${envPlaceholder.key} is still the placeholder ${ENV_VALUE_PLACEHOLDER}. Replace it with the Environment Variable's value.`,helpCommand=getCommandNamePlain("deploy --help");return output_manager_default.error(`${message}
|
|
38
38
|
|
|
39
39
|
See all options:
|
|
40
|
-
${helpCommand}`),outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:AGENT_REASON.INVALID_ARGUMENTS,message,next:[{command:helpCommand,when:"see all options"}]}),2}if(!
|
|
40
|
+
${helpCommand}`),outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:AGENT_REASON.INVALID_ARGUMENTS,message,next:[{command:helpCommand,when:"see all options"}]}),2}if(createIfMissing&&(!projectNameOrId||parsedArguments.flags["--dry"])){let typedPaths=parsedArguments.args[0]===deployCommand.name?parsedArguments.args.slice(1):parsedArguments.args,message,next;if(projectNameOrId){let dryRun=buildCreateIfMissingCommand(typedPaths,parsedArguments.flags,client.argv,{createIfMissing:!1});message="Can't use --create-if-missing with --dry. --dry never creates anything. Drop --create-if-missing to dry-run an existing project, or create the project first.",next=[{command:dryRun.command,when:`dry-run an existing project${dryRun.note?`; ${dryRun.note}`:""}`},{command:withGlobalFlags(client,`project create ${quoteArg(projectNameOrId)}`),when:"create the project, then run the dry run again"}]}else{let{"--dry":_dry,...createFlags}=parsedArguments.flags,create=buildCreateIfMissingCommand(typedPaths,createFlags,client.argv,{addProjectPlaceholder:!0});message=`--create-if-missing requires --project ${PROJECT_PLACEHOLDER}. To create a project and deploy to it, add --project with the new project's name. A linked directory deploys without --create-if-missing.`,next=[{command:create.command,when:`create the project and deploy to it; ${create.note}`},{command:withGlobalFlags(client,"link"),when:"link this directory to an existing project"}]}return output_manager_default.error(`${message}
|
|
41
|
+
|
|
42
|
+
${next.map(step=>`To ${step.when}:
|
|
43
|
+
${step.command}`).join(`
|
|
44
|
+
`)}`),outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:AGENT_REASON.INVALID_ARGUMENTS,message,next}),2}if(!applyDeprecatedTargetFlag(client,parsedArguments.flags))return 2;let verify=!!parsedArguments.flags["--verify"],verifyConflict=["--no-wait","--dry"].find(flag=>parsedArguments.flags[flag]);if(verify&&verifyConflict){let message=`Can't use --verify with ${verifyConflict}. --verify loads the deployment once it's ready.`;return client.nonInteractive&&writeAgentError(client,{status:AGENT_STATUS.ERROR,reason:AGENT_REASON.INVALID_ARGUMENTS,message}),output_manager_default.error(message),2}"--confirm"in parsedArguments.flags&&(telemetryClient.trackCliFlagConfirm(parsedArguments.flags["--confirm"]),output_manager_default.warn("`--confirm` is deprecated, please use `--yes` instead"),parsedArguments.flags["--yes"]=parsedArguments.flags["--confirm"]),"--no-logs"in parsedArguments.flags&&output_manager_default.warn("`--no-logs` is deprecated and now the default behavior."),parsedArguments.args[0]===deployCommand.name&&parsedArguments.args.shift();let paths;parsedArguments.args.length>0?(paths=parsedArguments.args.map(item=>resolve3(client.cwd,item)),telemetryClient.trackCliArgumentProjectPath(paths[0])):paths=[client.cwd];let pathValidation=await validatePaths(client,paths,{allowFiles:!0});if(!pathValidation.valid)return pathValidation.exitCode;let singleFile=pathValidation.isFile?pathValidation.path:void 0;if(singleFile){let incompatibleFlag=["--prebuilt","--archive","--local-config","--create-if-missing"].find(flag=>parsedArguments.flags[flag]),message=incompatibleFlag?`Single-file deployments don't support ${incompatibleFlag}. Deploy a directory to use this option.`:!client.authConfig.token&&parsedArguments.flags["--temporary"]&&extname(singleFile).toLowerCase()!==".html"?"Temporary single-file deployments support only `.html` files. Log in or deploy a directory to deploy other files.":await isIgnoredFile(singleFile,client.cwd)?`${basename3(singleFile)} matches \`.vercelignore\` or the default ignore list, so it can't be deployed.`:void 0;if(message)return asJson?client.stdout.write(`${JSON.stringify({status:"error",reason:"invalid_file_deployment_option",message})}
|
|
41
45
|
`):output_manager_default.fatal(message),1;if(basename3(singleFile).startsWith(".")&&!parsedArguments.flags["--yes"]&&!parsedArguments.flags["--dry"]){let warning=`${basename3(singleFile)} is a hidden file and will be publicly accessible once deployed.`;if(client.nonInteractive||!client.stdin.isTTY)return asJson?client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ACTION_REQUIRED,reason:AGENT_REASON.CONFIRMATION_REQUIRED,message:`${warning} Use option --yes to deploy it.`,next:[{command:buildCommandWithYes(client.argv),when:"Deploy the hidden file"}]},null,2)}
|
|
42
46
|
`):output_manager_default.error(`${warning} Use option ${param("--yes")} to deploy it.`),1;if(!await client.input.confirm(`${warning} Continue?`,!1))return output_manager_default.print(`Canceled
|
|
43
47
|
`),0}}try{singleFile||await compileVercelConfig(paths[0])}catch(err){if(err instanceof ConflictingConfigFiles||err instanceof DeprecatedNowJson)return output_manager_default.prettyError(err),1;throw err}let shouldUseEarlyLocalConfig=paths[0]===client.cwd,localConfig=singleFile?{...singleFileConfig}:shouldUseEarlyLocalConfig?client.localConfig||readLocalConfig(paths[0]):readLocalConfig(paths[0]);if(localConfig){client.localConfig=localConfig;let{version}=localConfig,file=highlight(localConfig[import_client.fileNameSymbol]),prop=code("version");if(version)if(typeof version=="number"){if(version!==2){let two=code(String(2));return output_manager_default.error(`The value of the ${prop} property within ${file} can only be ${two}.`),1}}else return output_manager_default.error(`The ${prop} property inside your ${file} file must be a number.`),1}let{log,debug,error,prettyError}=output_manager_default,quiet=!client.stdout.isTTY,cwd=singleFile?dirname3(singleFile):pathValidation.path,autoConfirm=parsedArguments.flags["--yes"]||client.nonInteractive;parsedArguments.flags["--name"]&&(output_manager_default.print(`${prependEmoji(`The ${param("--name")} option is deprecated (https://vercel.link/name-flag)`,emoji("warning"))}
|
|
@@ -55,9 +59,9 @@ See all options:
|
|
|
55
59
|
`),1):(error("Uploading failed. Please try again."),1)}catch(err){recordCliError(cliErrorFromUnknown(err)),(0,import_error_utils2.isError)(err)&&debug(`Error: ${err}
|
|
56
60
|
${err.stack}`);let anonymousExitCode=await handleAnonymousDeploymentError({client,cwd,error:err,link:anonymousLink,isV0,retry:()=>handleDefaultDeploy(client,telemetryClient)});if(anonymousExitCode!==void 0)return anonymousExitCode;if(err instanceof UploadErrorMissingArchive)return client.nonInteractive?(client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"missing_archive",message:err.message,next:[{command:redeployCommand,when:"retry deploy"}]},null,2)}
|
|
57
61
|
`),1):(output_manager_default.prettyError(err),1);if(err instanceof NotDomainOwner)return recordCliError({code:"not_domain_owner"},{override:!0}),client.nonInteractive?(client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"not_domain_owner",message:err.message,next:[{command:redeployCommand,when:"retry deploy"}]},null,2)}
|
|
58
|
-
`),1):(output_manager_default.error(err.message),1);if(err instanceof DomainNotFound&&err.meta&&err.meta.domain){output_manager_default.debug(`The domain ${err.meta.domain} was not found, trying to purchase it`);let{default:purchaseDomainIfAvailable}=await import("../../chunks/purchase-domain-if-available-
|
|
62
|
+
`),1):(output_manager_default.error(err.message),1);if(err instanceof DomainNotFound&&err.meta&&err.meta.domain){output_manager_default.debug(`The domain ${err.meta.domain} was not found, trying to purchase it`);let{default:purchaseDomainIfAvailable}=await import("../../chunks/purchase-domain-if-available-IS6UDPJT.js"),purchase=await purchaseDomainIfAvailable(client,err.meta.domain,contextName);return purchase===!0?(output_manager_default.success(`Successfully purchased the domain ${err.meta.domain}!`),0):purchase===!1||purchase instanceof UserAborted?(handleCreateDeployError(deployment,localConfig),1):(handleCreateDeployError(purchase,localConfig)!==1&&output_manager_default.error(purchase.message),1)}if(err instanceof DomainNotFound||err instanceof DomainNotVerified||err instanceof NotDomainOwner||err instanceof DomainPermissionDenied||err instanceof DomainVerificationFailed||err instanceof SchemaValidationFailed||err instanceof InvalidDomain||err instanceof DeploymentNotFound||err instanceof BuildsRateLimited||err instanceof DeploymentsRateLimited||err instanceof AliasDomainConfigured||err instanceof MissingBuildScript||err instanceof ConflictingFilePath||err instanceof ConflictingPathSegment||err instanceof ConflictingConfigFiles)return client.nonInteractive&&client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"deploy_failed",message:err instanceof Error?err.message:String(err),next:[{command:redeployCommand,when:"retry deploy"}]},null,2)}
|
|
59
63
|
`),handleCreateDeployError(err,localConfig),1;if(err instanceof BuildError){let buildFailedNext=[...now.url?[{command:withGlobalFlags(client,`inspect ${now.url} --logs`),when:"read build logs"}]:[],{command:redeployCommand,when:"retry deploy"}];if(now.url)try{let failedDeployment=await getDeployment(client,contextName,now.url);if(asJson){output_manager_default.stopSpinner();let deploymentJson=getDeploymentOutputJson(failedDeployment,client.apiUrl,{name:"BUILD_ERROR",message:err.message}),payload=client.nonInteractive?{status:AGENT_STATUS.ERROR,reason:"build_failed",message:err.message,deployment:deploymentJson,next:buildFailedNext}:deploymentJson;client.stdout.write(`${JSON.stringify(payload,null,2)}
|
|
60
|
-
`)}else if(withFullLogs===!1){let{displayBuildLogsUntilFinalError}=await import("../../chunks/logs-
|
|
64
|
+
`)}else if(withFullLogs===!1){let{displayBuildLogsUntilFinalError}=await import("../../chunks/logs-Q7XXVFR3.js");await displayBuildLogsUntilFinalError(client,failedDeployment,err.message)}}catch{if(asJson){output_manager_default.stopSpinner();let payload=client.nonInteractive?{status:AGENT_STATUS.ERROR,reason:"build_failed",message:err.message,url:`https://${now.url}`,next:buildFailedNext}:{error:{name:"BUILD_ERROR",message:err.message},url:`https://${now.url}`};client.stdout.write(`${JSON.stringify(payload,null,2)}
|
|
61
65
|
`)}else output_manager_default.log(`To check build logs run: ${getCommandName(`inspect ${now.url} --logs`)}`),output_manager_default.log(`Or inspect them in your browser at https://${now.url}/_logs`)}else client.nonInteractive&&(output_manager_default.stopSpinner(),client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"build_failed",message:err.message,next:buildFailedNext},null,2)}
|
|
62
66
|
`));return 1}if(isAPIError(err)&&err.code==="size_limit_exceeded"){let{sizeLimit=0}=err,message=`File size limit exceeded (${(0,import_bytes.default)(sizeLimit)})`;return client.nonInteractive&&client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"size_limit_exceeded",message,next:[{command:redeployCommand,when:"retry deploy"}]},null,2)}
|
|
63
67
|
`),error(message),1}return client.nonInteractive&&client.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:"deploy_failed",message:err instanceof Error?err.message:String(err),next:[{command:redeployCommand,when:"retry deploy"}]},null,2)}
|