@vercel/cli-support 68.0.0 → 68.1.0-snapshot-f8c293166d1f
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-RH3RQPGP.js → add-56T4ON6W.js} +1 -1
- package/dist/chunks/{add-4ZXS4RRN.js → add-CDHMIDYR.js} +1 -1
- package/dist/chunks/{add-G2LGF4HL.js → add-JC2KSFHX.js} +1 -1
- package/dist/chunks/{alerts-3352VWDL.js → alerts-TMFON3SU.js} +1 -1
- package/dist/chunks/{api-endpoints-2IYXPLEG.js → api-endpoints-EY2DO75S.js} +1 -1
- package/dist/chunks/auth-4A5CXZOA.js +7 -0
- package/dist/chunks/auth-ZJV6OHMS.js +7 -0
- package/dist/chunks/{build-3UFKTTS5.js → build-ALEGEJFV.js} +1 -1
- package/dist/chunks/{chunk-JDDPCL3K.js → chunk-245QYIHU.js} +1 -1
- package/dist/chunks/{chunk-SGNDE4YS.js → chunk-2ACABADL.js} +1 -1
- package/dist/chunks/{chunk-D6REP5QQ.js → chunk-2GXP676X.js} +1 -1
- package/dist/chunks/{chunk-MXTC4ZAQ.js → chunk-2ILZM77F.js} +1 -1
- package/dist/chunks/{chunk-OFDTADPQ.js → chunk-2K7U64CN.js} +1 -1
- package/dist/chunks/{chunk-DTCQWGHE.js → chunk-2KJIWBJQ.js} +2 -2
- package/dist/chunks/{chunk-T4DOV5S4.js → chunk-2V5IP6A5.js} +1 -1
- package/dist/chunks/{chunk-L46V6VL3.js → chunk-37SWAKIV.js} +1 -1
- package/dist/chunks/{chunk-ZXSZH7N5.js → chunk-3GKXXGSO.js} +1 -1
- package/dist/chunks/{chunk-QSL6AG2B.js → chunk-3HP6FOOL.js} +1 -1
- package/dist/chunks/{chunk-M32HBBPK.js → chunk-3WXQHKSS.js} +1 -1
- package/dist/chunks/{chunk-JELLVPCM.js → chunk-3XMKTJ5T.js} +1 -1
- package/dist/chunks/{chunk-KLBSCTLL.js → chunk-3YD5WA5R.js} +1 -1
- package/dist/chunks/{chunk-KIDGOY4F.js → chunk-3YNMC7FF.js} +1 -1
- package/dist/chunks/{chunk-YLXXGQQQ.js → chunk-42D3CPWB.js} +1 -1
- package/dist/chunks/{chunk-HRR57QNP.js → chunk-46R47IE5.js} +1 -1
- package/dist/chunks/{chunk-ZRFDZO7Y.js → chunk-4D4IP557.js} +1 -1
- package/dist/chunks/{chunk-OOPF73RV.js → chunk-4FPYV37P.js} +1 -1
- package/dist/chunks/{chunk-HR4ID3MU.js → chunk-4HNNFJLO.js} +1 -1
- package/dist/chunks/{chunk-5WYJSLCF.js → chunk-4HYZZASG.js} +1 -1
- package/dist/chunks/{chunk-AMZ7AUYX.js → chunk-4JPDCF2O.js} +1 -1
- package/dist/chunks/{chunk-CAJ2OUSR.js → chunk-4L7AKIX7.js} +1 -1
- package/dist/chunks/chunk-4SI66IFC.js +7 -0
- package/dist/chunks/{chunk-MCYG7CCE.js → chunk-4SIQE2W4.js} +1 -1
- package/dist/chunks/chunk-4WEKKDOL.js +8 -0
- package/dist/chunks/{chunk-Q6YPC3GK.js → chunk-57H5KQGN.js} +1 -1
- package/dist/chunks/{chunk-NWGBDBZI.js → chunk-5F4RJ32E.js} +1 -1
- package/dist/chunks/{chunk-GXWBL6YV.js → chunk-5KGALAC2.js} +1 -1
- package/dist/chunks/{chunk-KRPY5FHJ.js → chunk-5QC4IKRZ.js} +1 -1
- package/dist/chunks/{chunk-VBANKZWM.js → chunk-5RRSLENO.js} +1 -1
- package/dist/chunks/{chunk-2AMO2VMV.js → chunk-64GNDWWX.js} +1 -1
- package/dist/chunks/{chunk-J24BABG4.js → chunk-6G2AZBW5.js} +1 -1
- package/dist/chunks/{chunk-DY643UZ7.js → chunk-6JBKQ5LR.js} +2 -3
- package/dist/chunks/{chunk-X755TPX6.js → chunk-6O2LDFGJ.js} +1 -1
- package/dist/chunks/chunk-6OOJFAF5.js +20 -0
- package/dist/chunks/{chunk-T44RB754.js → chunk-6SX4TE7Y.js} +1 -1
- package/dist/chunks/{chunk-AW5KOUD7.js → chunk-6SYKGWTJ.js} +1 -1
- package/dist/chunks/chunk-6ZD6IARJ.js +33 -0
- package/dist/chunks/{chunk-O3YZLVC6.js → chunk-72CSJCJX.js} +3 -3
- package/dist/chunks/chunk-75TGTOZQ.js +8 -0
- package/dist/chunks/{chunk-GRRVPFSB.js → chunk-7JQBC2HB.js} +1 -1
- package/dist/chunks/{chunk-Y3V4JYK6.js → chunk-7MBJ4YIK.js} +1 -1
- package/dist/chunks/{chunk-PSOVLGHP.js → chunk-7O3D3XED.js} +1 -1
- package/dist/chunks/{chunk-FXLZM6Q7.js → chunk-7PK2JFEH.js} +1 -1
- package/dist/chunks/chunk-7Q5I3L37.js +68 -0
- package/dist/chunks/{chunk-24SIHFEW.js → chunk-7QHUMMBA.js} +1 -1
- package/dist/chunks/{chunk-4HR3I3ML.js → chunk-7TRHPXCG.js} +1 -1
- package/dist/chunks/{chunk-BLUPZPAS.js → chunk-7Y572CPZ.js} +1 -1
- package/dist/chunks/{chunk-ATSAMHUZ.js → chunk-A3WRF4AB.js} +1 -1
- package/dist/chunks/{chunk-6DBLXAJI.js → chunk-AGFG7WHE.js} +1 -1
- package/dist/chunks/{chunk-YFOBGEOW.js → chunk-AI32LWRL.js} +1 -1
- package/dist/chunks/chunk-AJ3KPZLM.js +18 -0
- package/dist/chunks/{chunk-MYVALJ4D.js → chunk-AJJIPBAG.js} +1 -1
- package/dist/chunks/{chunk-TGIIE2L3.js → chunk-AP2JY545.js} +1 -1
- package/dist/chunks/{chunk-Z73UJVGD.js → chunk-AU54JBLF.js} +1 -1
- package/dist/chunks/{chunk-SQ62IODX.js → chunk-AUCQKYL2.js} +1 -1
- package/dist/chunks/{chunk-ZBOTJT5S.js → chunk-AULX6RDR.js} +1 -1
- package/dist/chunks/{chunk-37P7O3AQ.js → chunk-AWB4IKVC.js} +1 -1
- package/dist/chunks/{chunk-SCV7XEEO.js → chunk-AX6UCTOC.js} +1 -1
- package/dist/chunks/{chunk-MDXG7T7M.js → chunk-B4IOZL3K.js} +1 -1
- package/dist/chunks/{chunk-Y4YBQUQM.js → chunk-B6QW2OXJ.js} +1 -1
- package/dist/chunks/{chunk-YBAGKQXC.js → chunk-BCD4TRQF.js} +1 -1
- package/dist/chunks/{chunk-OQXHBPPS.js → chunk-BCRZI5IM.js} +1 -1
- package/dist/chunks/chunk-BFS4K2RF.js +7 -0
- package/dist/chunks/chunk-BKJ4H6KK.js +8 -0
- package/dist/chunks/{chunk-O3GQG2ML.js → chunk-BLA6V5UN.js} +2 -2
- package/dist/chunks/{chunk-COD3WAUI.js → chunk-BNWEJZAC.js} +1 -1
- package/dist/chunks/{chunk-5MDNVAE6.js → chunk-BVFFSUG3.js} +1 -1
- package/dist/chunks/{chunk-X6JQI64G.js → chunk-C6AOL5RF.js} +1 -1
- package/dist/chunks/{chunk-F7L5SXJM.js → chunk-CDO5IECP.js} +1 -1
- package/dist/chunks/{chunk-XOETL6DB.js → chunk-CHY2NJU4.js} +1 -1
- package/dist/chunks/{chunk-H24KFNPB.js → chunk-CKPY7TAQ.js} +1 -1
- package/dist/chunks/chunk-COOA33HY.js +7 -0
- package/dist/chunks/{chunk-PVASGBEF.js → chunk-CSU46B7Q.js} +1 -1
- package/dist/chunks/{chunk-DDZEKNQR.js → chunk-CX4WJVNY.js} +1 -1
- package/dist/chunks/{chunk-AVCLYJNC.js → chunk-CX6QYE3Y.js} +1 -1
- package/dist/chunks/{chunk-4SAVH3H7.js → chunk-DCFCPAFQ.js} +1 -1
- package/dist/chunks/{chunk-2FUGD6J7.js → chunk-DTEWQLNP.js} +1 -1
- package/dist/chunks/chunk-DXFFWNK4.js +8 -0
- package/dist/chunks/{chunk-F4KY2TOK.js → chunk-EAQLOKZX.js} +1 -1
- package/dist/chunks/{chunk-ZGM4K3B5.js → chunk-ECQW2R5M.js} +1 -1
- package/dist/chunks/{chunk-B4KA3ZH2.js → chunk-EFGZK6OY.js} +1 -1
- package/dist/chunks/{chunk-N3ZNAMGR.js → chunk-EFQCGYZF.js} +1 -1
- package/dist/chunks/{chunk-ID663OJ7.js → chunk-EL65DTVZ.js} +1 -1
- package/dist/chunks/{chunk-PAHYNO73.js → chunk-ELQO7254.js} +1 -1
- package/dist/chunks/{chunk-3G3FQYMW.js → chunk-ERMHTPO4.js} +1 -1
- package/dist/chunks/chunk-EV2VKG2V.js +8 -0
- package/dist/chunks/{chunk-LDDXXDN5.js → chunk-EYCKXHL4.js} +1 -1
- package/dist/chunks/{chunk-5727HGA6.js → chunk-F2VXECRT.js} +1 -1
- package/dist/chunks/{chunk-NMY2YZ6M.js → chunk-F5FBLRH3.js} +1 -1
- package/dist/chunks/{chunk-TU54LHNW.js → chunk-F6BUBFV2.js} +1 -1
- package/dist/chunks/{chunk-VWKA6RKB.js → chunk-FHNHVEOX.js} +1 -1
- package/dist/chunks/{chunk-D3M2JG5C.js → chunk-FIICEEXO.js} +1 -1
- package/dist/chunks/{chunk-QPNTR3PA.js → chunk-FVMRKUWL.js} +1 -1
- package/dist/chunks/{chunk-H3ZSF2P3.js → chunk-FWYKEEQK.js} +1 -1
- package/dist/chunks/{chunk-ZHGKJCQ2.js → chunk-G7RQVFID.js} +5 -5
- package/dist/chunks/chunk-GB77JTTX.js +8 -0
- package/dist/chunks/{chunk-FTNLCQC6.js → chunk-GHZ4YQCI.js} +1 -1
- package/dist/chunks/{chunk-7RABG6HV.js → chunk-GOH7QCG3.js} +1 -1
- package/dist/chunks/{chunk-4NTBYNFR.js → chunk-GOXGA37R.js} +1 -1
- package/dist/chunks/{chunk-23FY4PR3.js → chunk-GTBPHJRJ.js} +1 -1
- package/dist/chunks/{chunk-YTSGFU5T.js → chunk-GUFRGEM5.js} +1 -1
- package/dist/chunks/{chunk-U43WXZBP.js → chunk-H2O53DAZ.js} +1 -1
- package/dist/chunks/chunk-HAM7ZPEC.js +7 -0
- package/dist/chunks/{chunk-4SWS7RKX.js → chunk-HG7NRFC5.js} +1 -1
- package/dist/chunks/{chunk-BTI5TG6Q.js → chunk-HGXM4UBQ.js} +1 -1
- package/dist/chunks/{chunk-PX3V7X3Q.js → chunk-HI5PLVKM.js} +1 -1
- package/dist/chunks/chunk-HIEFNLLO.js +7 -0
- package/dist/chunks/{chunk-NMIB4JYP.js → chunk-HJCMNBDK.js} +1 -1
- package/dist/chunks/{chunk-6WBEU34Y.js → chunk-HLJ2UIG6.js} +1 -1
- package/dist/chunks/{chunk-DH4A4QMD.js → chunk-HMNIFPU2.js} +1 -1
- package/dist/chunks/{chunk-2KXLL3DX.js → chunk-HSQPQ5RV.js} +1 -1
- package/dist/chunks/{chunk-6NC2JFUQ.js → chunk-I254SHTL.js} +1 -1
- package/dist/chunks/{chunk-YN3HZJXW.js → chunk-I3NEZRVW.js} +1 -1
- package/dist/chunks/{chunk-WHEA5VLX.js → chunk-ICPRMAKB.js} +1 -1
- package/dist/chunks/{chunk-OPORM35X.js → chunk-IFMPBA4K.js} +1 -1
- package/dist/chunks/{chunk-MCRKBVZA.js → chunk-IMLHRJ4K.js} +1 -1
- package/dist/chunks/{chunk-KA2KG3SY.js → chunk-IR3E37HD.js} +1 -1
- package/dist/chunks/chunk-IVJEYHF5.js +8 -0
- package/dist/chunks/{chunk-BPUANOGW.js → chunk-IZV6K7RR.js} +1 -1
- package/dist/chunks/{chunk-OZKP3WKT.js → chunk-J4WXRM2Y.js} +1 -1
- package/dist/chunks/chunk-J5MGMWRV.js +9 -0
- package/dist/chunks/{chunk-4FBOQLPZ.js → chunk-J7DIPT7M.js} +1 -1
- package/dist/chunks/{chunk-BOJDM3O7.js → chunk-JCDPMWKO.js} +1 -1
- package/dist/chunks/{chunk-FB37TFVF.js → chunk-JEACGNHI.js} +1 -1
- package/dist/chunks/{chunk-MGKNSTU4.js → chunk-JJNTYM7J.js} +1 -1
- package/dist/chunks/{chunk-76NL3ZRJ.js → chunk-K45TGFUJ.js} +1 -1
- package/dist/chunks/{chunk-LUX4PBJL.js → chunk-K5GE24PG.js} +1 -1
- package/dist/chunks/{chunk-25565AGS.js → chunk-K7YK4PZP.js} +1 -1
- package/dist/chunks/{chunk-D6NVKMRP.js → chunk-KEFF3BL3.js} +1 -1
- package/dist/chunks/{chunk-FBYA6LLM.js → chunk-KHJWQ4WP.js} +1 -1
- package/dist/chunks/{chunk-EHAS6SQB.js → chunk-KMTQYFJF.js} +1 -1
- package/dist/chunks/{chunk-JCHZRW4N.js → chunk-KVZR24QI.js} +1 -1
- package/dist/chunks/{chunk-BRQUZ5NC.js → chunk-L4CSJDG7.js} +1 -1
- package/dist/chunks/{chunk-ISWW3DKF.js → chunk-L6MWUMWZ.js} +1 -1
- package/dist/chunks/{chunk-KKYNEEM7.js → chunk-LKXPJLOP.js} +1 -1
- package/dist/chunks/{chunk-Q7D7RGXM.js → chunk-LLHXL3SV.js} +1 -1
- package/dist/chunks/{chunk-EYRBV6RM.js → chunk-LNRKGW7S.js} +1 -1
- package/dist/chunks/{chunk-BS32OUOC.js → chunk-LPYHYTYI.js} +1 -1
- package/dist/chunks/{chunk-A2RZZQEP.js → chunk-LY3EY2VG.js} +1 -1
- package/dist/chunks/chunk-M2XLLWK7.js +7 -0
- package/dist/chunks/{chunk-7WDSOKOY.js → chunk-MAAJGMXM.js} +1 -1
- package/dist/chunks/{chunk-DWZBL4NK.js → chunk-MAIZY5BV.js} +1 -1
- package/dist/chunks/{chunk-BUBVZ6SQ.js → chunk-MDWUJ7TA.js} +1 -1
- package/dist/chunks/{chunk-YHPPP3SF.js → chunk-MF43WTDT.js} +1 -1
- package/dist/chunks/{chunk-V3YNYCRV.js → chunk-MHVM4VKT.js} +2 -2
- package/dist/chunks/chunk-MJ2HLVVL.js +13 -0
- package/dist/chunks/{chunk-6Z5REGCM.js → chunk-MMMX3KE2.js} +1 -1
- package/dist/chunks/{chunk-ISSNEDG5.js → chunk-MN2F4NPH.js} +1 -1
- package/dist/chunks/{chunk-QFE3RPMA.js → chunk-MTPHHAPR.js} +1 -1
- package/dist/chunks/{slugify-NMMUASYK.js → chunk-N3COHC7T.js} +1 -1
- package/dist/chunks/{chunk-27FVSW45.js → chunk-N7IBUNFY.js} +1 -1
- package/dist/chunks/{chunk-BZENIQ7N.js → chunk-NBPLUP7C.js} +1 -1
- package/dist/chunks/chunk-NE5RTEMC.js +7 -0
- package/dist/chunks/{chunk-CTBSRTJW.js → chunk-NFPO75IP.js} +1 -1
- package/dist/chunks/{chunk-XE4SLG5H.js → chunk-NNPXYFMY.js} +1 -1
- package/dist/chunks/{chunk-D6O5O3CW.js → chunk-NQPQRYHS.js} +1 -1
- package/dist/chunks/{chunk-3SF3ILIT.js → chunk-NUS3WWST.js} +1 -1
- package/dist/chunks/chunk-NVU7XTNI.js +11 -0
- package/dist/chunks/{chunk-ZBZQEDZY.js → chunk-NXFYKZVZ.js} +1 -1
- package/dist/chunks/chunk-NXUDP37D.js +7 -0
- package/dist/chunks/chunk-O7AF7CLE.js +8 -0
- package/dist/chunks/{chunk-MWFHS4HV.js → chunk-O7FAYZU6.js} +1 -1
- package/dist/chunks/{chunk-MDRI27KN.js → chunk-OCX4QZ3X.js} +1 -1
- package/dist/chunks/{chunk-YOKTRWQX.js → chunk-OD4RCBDD.js} +1 -1
- package/dist/chunks/{chunk-OAM5NJCU.js → chunk-OK52DDU5.js} +1 -1
- package/dist/chunks/{chunk-PFD7LETF.js → chunk-OM6NML7C.js} +1 -1
- package/dist/chunks/{chunk-HYAIA5YC.js → chunk-OVIWCH3S.js} +2 -2
- package/dist/chunks/chunk-OVVHONX7.js +8 -0
- package/dist/chunks/{chunk-J5SINMVO.js → chunk-P5IKPNRJ.js} +1 -1
- package/dist/chunks/chunk-PG3WQGEK.js +181 -0
- package/dist/chunks/{chunk-AW33SRYY.js → chunk-PH2MLBQO.js} +1 -1
- package/dist/chunks/{chunk-XHBZITV4.js → chunk-PKECY4JZ.js} +1 -1
- package/dist/chunks/{chunk-DGLE44KA.js → chunk-PKWSWWVW.js} +1 -1
- package/dist/chunks/{chunk-RHFNVIFD.js → chunk-PNN2Y2ZQ.js} +1 -1
- package/dist/chunks/{chunk-5A3DDLQR.js → chunk-PNTKMD3A.js} +1 -1
- package/dist/chunks/{chunk-XC25DYA7.js → chunk-PQQRSUUG.js} +2 -2
- package/dist/chunks/{chunk-BKFRN6C2.js → chunk-PR4NNS3O.js} +1 -1
- package/dist/chunks/{chunk-QHGPFYWQ.js → chunk-PROENC6V.js} +1 -1
- package/dist/chunks/chunk-PW67ZNDU.js +8 -0
- package/dist/chunks/{chunk-Z436ZYLV.js → chunk-Q2FGBONA.js} +1 -1
- package/dist/chunks/{chunk-U5SZQUYO.js → chunk-QCYCLWNG.js} +1 -1
- package/dist/chunks/{chunk-6TEYSBCT.js → chunk-QDSDYOMV.js} +1 -1
- package/dist/chunks/{chunk-S3L2OHPO.js → chunk-QNMWYJQW.js} +1 -1
- package/dist/chunks/{chunk-MMMJO2M3.js → chunk-QOIG2FJP.js} +1 -1
- package/dist/chunks/{chunk-MTZYPCZ7.js → chunk-QRPBDCDH.js} +1 -1
- package/dist/chunks/{chunk-INIZJZ3O.js → chunk-RDTWDVFO.js} +1 -1
- package/dist/chunks/{chunk-GD7AV7BO.js → chunk-RFD7CEL6.js} +1 -1
- package/dist/chunks/{chunk-TSIKSHYG.js → chunk-RIVRPVTH.js} +1 -1
- package/dist/chunks/{chunk-RYSO5U3E.js → chunk-RIXTYUYN.js} +1 -1
- package/dist/chunks/{chunk-7HQZRU25.js → chunk-RRX2AMWY.js} +1 -1
- package/dist/chunks/{chunk-CEA5NDJC.js → chunk-RTIVLPN7.js} +1 -1
- package/dist/chunks/chunk-RWVYBRVF.js +13 -0
- package/dist/chunks/chunk-S4ARHJGW.js +9 -0
- package/dist/chunks/chunk-S7FMMAST.js +7 -0
- package/dist/chunks/{chunk-Q4R34AVE.js → chunk-SHLKM7EZ.js} +1 -1
- package/dist/chunks/chunk-SIWT2MBT.js +8 -0
- package/dist/chunks/{chunk-7SLMNM55.js → chunk-SPPOQ54P.js} +1 -1
- package/dist/chunks/{chunk-BIABM3FB.js → chunk-SSOWIDKG.js} +1 -1
- package/dist/chunks/{chunk-AZVSMIPP.js → chunk-STDRVWDW.js} +1 -1
- package/dist/chunks/{chunk-M2Q2DUHO.js → chunk-SUD5V67L.js} +1 -1
- package/dist/chunks/{chunk-7EJQLVWX.js → chunk-SUT2PTL3.js} +1 -1
- package/dist/chunks/chunk-SWWLPWX7.js +17 -0
- package/dist/chunks/chunk-SX2JJDHM.js +17 -0
- package/dist/chunks/{chunk-3RFQ2NXZ.js → chunk-T4257EDB.js} +1 -1
- package/dist/chunks/{chunk-G24EKATW.js → chunk-T5DQCNBC.js} +1 -1
- package/dist/chunks/chunk-TASNZYJU.js +14 -0
- package/dist/chunks/{chunk-YTSUDTAK.js → chunk-TNNCGRBK.js} +1 -1
- package/dist/chunks/{chunk-D5JQZXL7.js → chunk-TR3M42DX.js} +1 -1
- package/dist/chunks/chunk-TTM4VQ4T.js +7 -0
- package/dist/chunks/{chunk-BYBELFCP.js → chunk-UAPEASRH.js} +1 -1
- package/dist/chunks/{chunk-DXFP22OK.js → chunk-UE6M2VKP.js} +1 -1
- package/dist/chunks/chunk-UGJRAFRA.js +8 -0
- package/dist/chunks/{chunk-3AFEVHHY.js → chunk-UGVOMXYR.js} +1 -1
- package/dist/chunks/{chunk-NB2WLB3J.js → chunk-UJ7YUIEJ.js} +1 -1
- package/dist/chunks/{chunk-7OZ7OKPS.js → chunk-UJINL7VK.js} +1 -1
- package/dist/chunks/{chunk-6KNWKZR4.js → chunk-UVBRWYYJ.js} +1 -1
- package/dist/chunks/{chunk-KNNIA3PS.js → chunk-UXAPG6IX.js} +1 -1
- package/dist/chunks/{chunk-6FEMU5YF.js → chunk-V45KKYNK.js} +1 -1
- package/dist/chunks/{chunk-A6CMQOL7.js → chunk-V7EJ7O6E.js} +1 -1
- package/dist/chunks/chunk-VB6SQWSB.js +9 -0
- package/dist/chunks/{chunk-E5A7E7X6.js → chunk-VBCWRNS4.js} +1 -1
- package/dist/chunks/{chunk-5U2YLD56.js → chunk-VG44VJB5.js} +1 -1
- package/dist/chunks/{chunk-DOOBZO4W.js → chunk-VJM3WCEC.js} +1 -1
- package/dist/chunks/{chunk-BYYNR34Q.js → chunk-VNS4Z72T.js} +1 -1
- package/dist/chunks/{chunk-CTMTO2W4.js → chunk-VQAIH2X5.js} +1 -1
- package/dist/chunks/{chunk-D2JNI6UB.js → chunk-VSDLCOK3.js} +1 -1
- package/dist/chunks/chunk-VUB4NBD4.js +15 -0
- package/dist/chunks/{chunk-KXMFGDO4.js → chunk-VV5TYUAT.js} +1 -1
- package/dist/chunks/chunk-W2YAOE3Z.js +7 -0
- package/dist/chunks/{chunk-JALVF3C2.js → chunk-WMIZ6Y4E.js} +1 -1
- package/dist/chunks/{chunk-R43H4T4L.js → chunk-WPWGH5CA.js} +1 -1
- package/dist/chunks/{chunk-22ZRVWYP.js → chunk-WU22X5RO.js} +2 -2
- package/dist/chunks/{chunk-TLKBGAOL.js → chunk-WWEUGL6W.js} +1 -1
- package/dist/chunks/{chunk-S6TAO4MD.js → chunk-X3A324UF.js} +1 -1
- package/dist/chunks/{chunk-JUAHDOL6.js → chunk-X5YKQ2RJ.js} +1 -1
- package/dist/chunks/{chunk-VJNTVPUV.js → chunk-X5ZBXCCY.js} +1 -1
- package/dist/chunks/{chunk-J3U2QD2L.js → chunk-X72FHJ6W.js} +1 -1
- package/dist/chunks/{chunk-E3AML3VR.js → chunk-XBT7X2Q4.js} +1 -1
- package/dist/chunks/{chunk-CDJ25IKC.js → chunk-XGCCTSBW.js} +1 -1
- package/dist/chunks/chunk-XHXWUAJE.js +32 -0
- package/dist/chunks/{chunk-U4Z2MMOF.js → chunk-XKVKG7CW.js} +1 -1
- package/dist/chunks/{chunk-4F73GVJZ.js → chunk-XO2CZXGA.js} +1 -1
- package/dist/chunks/{chunk-E3WP42P2.js → chunk-XPEWDJV6.js} +1 -1
- package/dist/chunks/{chunk-DNONVY2L.js → chunk-XXPUBGJZ.js} +2 -2
- package/dist/chunks/{chunk-UPDIZCP3.js → chunk-Y2J2ESAE.js} +1 -1
- package/dist/chunks/chunk-Y2KAVMM4.js +10 -0
- package/dist/chunks/{chunk-46ISU3XI.js → chunk-Y3ETQZSK.js} +2 -2
- package/dist/chunks/{chunk-5RMIM4S2.js → chunk-Y7SZI3JV.js} +1 -1
- package/dist/chunks/chunk-YBWLW6SW.js +7 -0
- package/dist/chunks/{chunk-B7IUFV5P.js → chunk-YDCILYRC.js} +1 -1
- package/dist/chunks/{chunk-67GZ5REA.js → chunk-YHZXIBS7.js} +1 -1
- package/dist/chunks/{chunk-5CVEW3HD.js → chunk-YLQCB6XY.js} +1 -1
- package/dist/chunks/{chunk-47E5IB3C.js → chunk-YNNU3GPR.js} +1 -1
- package/dist/chunks/{chunk-IVZNPSHU.js → chunk-YTBNOSND.js} +1 -1
- package/dist/chunks/{chunk-WAOS5OCB.js → chunk-YU33PPKX.js} +1 -1
- package/dist/chunks/{chunk-7JU5RJ3H.js → chunk-ZEBOIM34.js} +1 -1
- package/dist/chunks/{chunk-E7IN2DGU.js → chunk-ZEGUFI44.js} +1 -1
- package/dist/chunks/{chunk-NZ2TFADV.js → chunk-ZOJI7HYA.js} +1 -1
- package/dist/chunks/{clear-GL4SZ2XR.js → clear-FQ4L2ACT.js} +1 -1
- package/dist/chunks/{cli-embedded-NR5F35LW.js → cli-embedded-CZYKFQ6U.js} +2 -2
- package/dist/chunks/cli-truncate-CylqKOGj-WE5OLB6Q.js +7 -0
- package/dist/chunks/commands-Bx-lrmie-KJI5MSFW.js +10 -0
- package/dist/chunks/compile-vercel-config-GUTXMJOP.js +7 -0
- package/dist/chunks/{config-U4GLPYDY.js → config-4KECSIYK.js} +1 -1
- package/dist/chunks/{config-KSQQQMQQ.js → config-EEYAOPDR.js} +1 -1
- package/dist/chunks/config-HiWLfXRQ-G4JC3PIR.js +43 -0
- package/dist/chunks/connect-U3yG4EtI-KWEUMGCU.js +7 -0
- package/dist/chunks/connect-git-provider-MPYSAOTH.js +7 -0
- package/dist/chunks/cp-aFe-HVrK-JGQPCT5R.js +12 -0
- package/dist/chunks/create-ilHWvzSk-MPW7HE43.js +7 -0
- package/dist/chunks/create-project-FMUOSSNP.js +7 -0
- package/dist/chunks/{delete-D2WLQHVB.js → delete-JRMGVHFJ.js} +1 -1
- package/dist/chunks/{delete-O2VWRQC3.js → delete-LP4N4BXX.js} +1 -1
- package/dist/chunks/{describe-N36SISDN.js → describe-5M3XKRMV.js} +1 -1
- package/dist/chunks/detect-projects-DHS2E3N4.js +7 -0
- package/dist/chunks/detect-services-HCUFI3RJ.js +7 -0
- package/dist/chunks/{disable-EHRVY24G.js → disable-ZFDARZAF.js} +1 -1
- package/dist/chunks/{discard-QW5TMTXX.js → discard-PE5SSIDJ.js} +1 -1
- package/dist/chunks/dist-BGUQ47VG.js +7 -0
- package/dist/chunks/{dist-33WTJLVQ.js → dist-E4BMK7BO.js} +1 -1
- package/dist/chunks/{dist-RXYNZPEA.js → dist-S7GEJ656.js} +1 -1
- package/dist/chunks/domain-DGvr_U55-AZYOJW3J.js +8 -0
- package/dist/chunks/drives-Bi-Mnt2z-JAGBYE6W.js +14 -0
- package/dist/chunks/{edit-WM6KJPSI.js → edit-7S67WBSE.js} +1 -1
- package/dist/chunks/{edit-IZR537PS.js → edit-BATH6ETJ.js} +1 -1
- package/dist/chunks/{enable-5Z72O3NI.js → enable-JWLWXAZP.js} +1 -1
- package/dist/chunks/{engine-C8wCzkw--PYVABGU4.js → engine-C8wCzkw--72P7UD6T.js} +1 -1
- package/dist/chunks/{esm-IYH32MTQ.js → esm-B3P7PUFJ.js} +1 -1
- package/dist/chunks/{esm-5GQXHN7C.js → esm-CMSQLK7G.js} +1 -1
- package/dist/chunks/{esm-LEQXRLFV.js → esm-KWMRMP74.js} +1 -1
- package/dist/chunks/{esm-NHCCFW7Z.js → esm-LRBNA4QO.js} +1 -1
- package/dist/chunks/{esm-FJCIOBBV.js → esm-NVIK2MSG.js} +1 -1
- package/dist/chunks/{esm-T655CG6O.js → esm-RAS56M3I.js} +1 -1
- package/dist/chunks/{esm-QQ3MUOW4.js → esm-WU2ZS2IW.js} +1 -1
- package/dist/chunks/{exec-PCSP64LR.js → exec-6WGVP2E2.js} +1 -1
- package/dist/chunks/exec-Bwv4MDyN-SMCC4JHS.js +7 -0
- package/dist/chunks/{export-IWVMWM2H.js → export-DASZMUUD.js} +1 -1
- package/dist/chunks/extend-D9tq9Cot-Z4ORB3B2.js +8 -0
- package/dist/chunks/{fetch-proxy-MOKBS56A.js → fetch-proxy-ZIHXTNFP.js} +1 -1
- package/dist/chunks/fork-DQ6qfKqB-AJCZOGQR.js +9 -0
- package/dist/chunks/future-CNLTCF2D.js +7 -0
- package/dist/chunks/generate-cert-for-deploy-TCH3OY6G.js +7 -0
- package/dist/chunks/groups-B8JVEeKk-J5CCQYWU.js +10 -0
- package/dist/chunks/image-CDRXKTJG.js +7 -0
- package/dist/chunks/import-builders-XI6CYID6.js +7 -0
- package/dist/chunks/{inspect-6Y672OQ3.js → inspect-DSTHAT43.js} +1 -1
- package/dist/chunks/{inspect-SW2I7D6E.js → inspect-FCJC7XCN.js} +1 -1
- package/dist/chunks/{inspect-QT3QEFBW.js → inspect-FODCPYHT.js} +1 -1
- package/dist/chunks/{inspect-6J5DGZZ4.js → inspect-I7NZH44Z.js} +1 -1
- package/dist/chunks/{inspect-ALC2J4BF.js → inspect-JFRSCAAW.js} +1 -1
- package/dist/chunks/{inspect-47FM3OWG.js → inspect-RSSQ5YKF.js} +1 -1
- package/dist/chunks/{list-CXXDI5UV.js → list-7K3LEJXV.js} +1 -1
- package/dist/chunks/{list-BIFH4KO5.js → list-HWDVPR4V.js} +1 -1
- package/dist/chunks/{list-TGDHJKDT.js → list-NT2RHNIB.js} +1 -1
- package/dist/chunks/{list-2CMCXXP4.js → list-QDBAXYKL.js} +1 -1
- package/dist/chunks/list-iqQFvOHx-EWWTMITV.js +7 -0
- package/dist/chunks/log-update-DsqoChS1-DG7F5XJ4.js +11 -0
- package/dist/chunks/login-DGxA9ez--ZRIJ24TS.js +13 -0
- package/dist/chunks/login-RWXYD2CO.js +7 -0
- package/dist/chunks/{login-IUQDG334.js → login-WHXNCPDU.js} +1 -1
- package/dist/chunks/logout-OEbPJLu2-7NPM6ALK.js +8 -0
- package/dist/chunks/logs-RDOQVAER.js +7 -0
- package/dist/chunks/{ls-YTKJRKD3.js → ls-2OYMFZIB.js} +1 -1
- package/dist/chunks/{ls-7D73WVOF.js → ls-2PCKZKR7.js} +1 -1
- package/dist/chunks/{ls-GC5MX2HZ.js → ls-7DUE3OKC.js} +1 -1
- package/dist/chunks/{ls-C75Z5FBX.js → ls-ASWAYYAI.js} +1 -1
- package/dist/chunks/{ls-ERDQLUT2.js → ls-PEFQHSG3.js} +1 -1
- package/dist/chunks/{ls-4DNFF35I.js → ls-UQZB42CA.js} +1 -1
- package/dist/chunks/{ls-IQUZ6GWG.js → ls-XJZFHHWA.js} +1 -1
- package/dist/chunks/migrate-experimental-services-2E5TRQU6.js +7 -0
- package/dist/chunks/{mutate-YJNE2733.js → mutate-QXTPOGVD.js} +1 -1
- package/dist/chunks/{native-self-update-Q3EN6NZK.js → native-self-update-T75AUBHJ.js} +1 -1
- package/dist/chunks/{notifications-2HU4L7WA.js → notifications-F2BUWHH4.js} +1 -1
- package/dist/chunks/{open-MA7QGJKO.js → open-5FUW57NF.js} +1 -1
- package/dist/chunks/{openapi-POBVCXS3.js → openapi-NZLMBOMR.js} +1 -1
- package/dist/chunks/{permissions-AU5M5A6G.js → permissions-ABXSL4I4.js} +1 -1
- package/dist/chunks/{plugin-offer-E53UQXXX.js → plugin-offer-IMTYE365.js} +1 -1
- package/dist/chunks/prompt-missing-credentials-3MKVB7HN.js +7 -0
- package/dist/chunks/{publish-G7NQESCE.js → publish-5AE7VXIO.js} +1 -1
- package/dist/chunks/pull-MGQ2TMA3.js +7 -0
- package/dist/chunks/purchase-domain-if-available-MU5TGXLG.js +7 -0
- package/dist/chunks/{push-BG7UEIKY.js → push-SBTMPRZE.js} +1 -1
- package/dist/chunks/query-5Q6ZV2TP.js +7 -0
- package/dist/chunks/{raw-query-QHFSKN55.js → raw-query-OAYC3OTN.js} +1 -1
- package/dist/chunks/read-BTA5slYO-TGRGDUB5.js +8 -0
- package/dist/chunks/{reauthenticate-U2LOFDFP.js → reauthenticate-PXEYMV7G.js} +1 -1
- package/dist/chunks/remove-CCa99nz9-52C5X3OV.js +7 -0
- package/dist/chunks/{remove-IB7C6LII.js → remove-WSK5OYNV.js} +1 -1
- package/dist/chunks/{reorder-E5UYNMML.js → reorder-DT32UBAI.js} +1 -1
- package/dist/chunks/{reply-DSDFBUAX.js → reply-AMZ3Y3U5.js} +1 -1
- package/dist/chunks/{repo-info-to-url-XQSULSEO.js → repo-info-to-url-S2YOQIRM.js} +1 -1
- package/dist/chunks/{repo-root-DZ6WFHMP.js → repo-root-STNOAHCH.js} +1 -1
- package/dist/chunks/{resolve-VK5QTUII.js → resolve-NPE5HKCT.js} +1 -1
- package/dist/chunks/{resolve-agent-team-D7RFR6WL.js → resolve-agent-team-75WZ2VDR.js} +1 -1
- package/dist/chunks/{resolve-deployment-framework-preset-BLMQLCIN.js → resolve-deployment-framework-preset-SCQCWANF.js} +1 -1
- package/dist/chunks/{restore-IVNZOVU3.js → restore-IZHGW3NV.js} +1 -1
- package/dist/chunks/{rm-LWEITUDD.js → rm-G4U54YJT.js} +1 -1
- package/dist/chunks/{rm-GYS4DS2Z.js → rm-HVDZJXME.js} +1 -1
- package/dist/chunks/{rm-L2KCHMLS.js → rm-ILDCA66K.js} +1 -1
- package/dist/chunks/{rm-PDJE63VV.js → rm-JWMYMOKD.js} +1 -1
- package/dist/chunks/{rm-PAI3WZXJ.js → rm-MBWOLQZJ.js} +1 -1
- package/dist/chunks/routes-GTTTHCOL.js +7 -0
- package/dist/chunks/rule-inspect-KZ7FNV26.js +8 -0
- package/dist/chunks/run-D8obqfKw-VBME5UHC.js +7 -0
- package/dist/chunks/{schema-ZIK2W4AX.js → schema-5FNNQEU5.js} +1 -1
- package/dist/chunks/{schema-ZOPJJLJC.js → schema-SKHPOMD7.js} +1 -1
- package/dist/chunks/select-org-YRCPH5Z5.js +7 -0
- package/dist/chunks/{serving-C1mhZQqH-73TMEGEB.js → serving-C1mhZQqH-XEQUVQZK.js} +1 -1
- package/dist/chunks/sessions-cvWvPgzc-XIYLOGFI.js +7 -0
- package/dist/chunks/{set-MC2CLSA2.js → set-V6QX5AZQ.js} +1 -1
- package/dist/chunks/{set-B5MPNYXG.js → set-WWREM57F.js} +1 -1
- package/dist/chunks/setup-and-link-STBOP67J.js +7 -0
- package/dist/chunks/sh-7olsIyJh-PKP4FF4F.js +7 -0
- package/dist/chunks/{skills-X5MN3OH2.js → skills-5TXXGKN5.js} +1 -1
- package/dist/chunks/slugify-OEOEYGDL.js +7 -0
- package/dist/chunks/snapshot-D9MAspub-SROFKNVE.js +9 -0
- package/dist/chunks/snapshots-DQjvm6St-4DTYO2IQ.js +9 -0
- package/dist/chunks/stamp-THWCZ5IQ.js +7 -0
- package/dist/chunks/{statuspage-K5SC7KAQ.js → statuspage-NCYXH7DR.js} +1 -1
- package/dist/chunks/stop-SQX-uC-Q-MCMKSJVQ.js +10 -0
- package/dist/chunks/table-3DCL552W.js +7 -0
- package/dist/chunks/{tags-WRVKKRN7.js → tags-SVOY7QEN.js} +1 -1
- package/dist/chunks/telemetry-KLbte3YE-OAFHJTWE.js +13 -0
- package/dist/chunks/token-DGNBXqnR-37H4S563.js +7 -0
- package/dist/chunks/token-EYEJQ7AP.js +7 -0
- package/dist/chunks/token-LNLX4V5J.js +7 -0
- package/dist/chunks/token-MZBD3R2S.js +7 -0
- package/dist/chunks/token-util-4P4GUSTT.js +7 -0
- package/dist/chunks/token-util-DAhLJ1X4-NJBLJROT.js +7 -0
- package/dist/chunks/token-util-XC5K3DNT.js +7 -0
- package/dist/chunks/token-util-XO4H5VLL.js +7 -0
- package/dist/chunks/{types-PC3JIYPX.js → types-NX7G6YBW.js} +1 -1
- package/dist/chunks/{update-QDIZFM4T.js → update-AVWVPYK5.js} +1 -1
- package/dist/chunks/{update-route-version-KWK5S4UW.js → update-route-version-MKFTZPKQ.js} +1 -1
- package/dist/chunks/{usage-JUP36KHN.js → usage-RUCM3AMF.js} +1 -1
- package/dist/chunks/users-CGEsQ4G8-BEKXN56N.js +9 -0
- package/dist/chunks/{utils-IQZEE4DT.js → utils-XXR7KIRB.js} +1 -1
- package/dist/chunks/validate-config-MJQI5EMD.js +7 -0
- package/dist/chunks/{vercel-cli-3UQLDU2S.js → vercel-cli-RW4WHHOS.js} +1 -1
- package/dist/chunks/{vlt-builder-graph-XL2XRO4V.js → vlt-builder-graph-EU5EX7KY.js} +1 -1
- package/dist/chunks/{vlt-builder-importer-RBUPAB6J.js → vlt-builder-importer-2YSRGPFC.js} +1 -1
- package/dist/chunks/wrap-ansi-CaN_P_HT-MAPHF26X.js +7 -0
- package/dist/chunks/write-DixEhGqz-D34NI34B.js +10 -0
- package/dist/chunks/{zod-Y3ZBY67C.js → zod-H7KW2D5Z.js} +1 -1
- package/dist/commands/build/index.js +1 -1
- package/dist/commands/deploy/index.js +11 -11
- package/dist/commands/dev/index.js +5 -9
- package/dist/commands/env/index.js +1 -1
- package/dist/commands/link/index.js +1 -1
- package/dist/commands/list/index.js +1 -1
- package/dist/commands/project/index.js +102 -80
- package/dist/commands/tunnel/index.js +1 -1
- package/dist/commands-account.js +5 -5
- package/dist/commands-ai.js +6 -6
- package/dist/commands-blob.js +3 -3
- package/dist/commands-core.js +9 -9
- package/dist/commands-deployments.js +1 -1
- package/dist/commands-flags.js +1 -1
- package/dist/commands-integrations.js +11 -11
- package/dist/commands-observability.js +2 -2
- package/dist/commands-routing.js +9 -9
- package/dist/help.js +1 -1
- package/dist/index.js +5 -5
- package/dist/internal-build-worker.js +1 -1
- package/dist/internal-build.js +2 -2
- package/dist/package.json +8 -8
- package/dist/version.mjs +1 -1
- package/package.json +16 -16
- package/dist/chunks/chunk-3ARTWVQV.js +0 -11
- package/dist/chunks/chunk-6UJIJLQC.js +0 -13
- package/dist/chunks/chunk-EMTZZXMH.js +0 -13
- package/dist/chunks/chunk-XKPB27SC.js +0 -8
- package/dist/chunks/chunk-Z3XKNZDP.js +0 -9
- package/dist/chunks/compile-vercel-config-HMKEDWC4.js +0 -7
- package/dist/chunks/connect-git-provider-WGKVFXW2.js +0 -7
- package/dist/chunks/create-project-BTOHPKZB.js +0 -7
- package/dist/chunks/detect-projects-I7NEHWSM.js +0 -7
- package/dist/chunks/detect-services-4ONC2DH3.js +0 -7
- package/dist/chunks/future-3AUPMPY7.js +0 -7
- package/dist/chunks/generate-cert-for-deploy-OZWVIWOO.js +0 -7
- package/dist/chunks/image-EFBQXTAP.js +0 -7
- package/dist/chunks/import-builders-2G4KVI4T.js +0 -7
- package/dist/chunks/login-WYDX5KZN.js +0 -7
- package/dist/chunks/logs-E3RZLAT2.js +0 -7
- package/dist/chunks/migrate-experimental-services-GPGYPN66.js +0 -7
- package/dist/chunks/prompt-missing-credentials-7F7MUAWK.js +0 -7
- package/dist/chunks/pull-4LISUHDN.js +0 -7
- package/dist/chunks/purchase-domain-if-available-QH2OHRLZ.js +0 -7
- package/dist/chunks/query-QCIU5IB4.js +0 -7
- package/dist/chunks/routes-SBMN6SDF.js +0 -7
- package/dist/chunks/rule-inspect-LQISNCBT.js +0 -8
- package/dist/chunks/select-org-EKDOS2CQ.js +0 -7
- package/dist/chunks/setup-and-link-FHHZAU65.js +0 -7
- package/dist/chunks/stamp-TKONNIJ5.js +0 -7
- package/dist/chunks/table-SCLK33K7.js +0 -7
- package/dist/chunks/token-MYYNOUIT.js +0 -7
- package/dist/chunks/token-util-OJHS52JP.js +0 -7
- package/dist/chunks/validate-config-K42CVRCZ.js +0 -7
|
@@ -4,8 +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{require_cross_spawn,require_is_stream,require_merge_stream,require_npm_run_path,require_onetime,require_strip_final_newline}from"./chunk-
|
|
7
|
+
import{require_cross_spawn,require_is_stream,require_merge_stream,require_npm_run_path,require_onetime,require_strip_final_newline}from"./chunk-RFD7CEL6.js";import{require_signal_exit}from"./chunk-7Y572CPZ.js";import{__commonJS,__require}from"./chunk-NBPLUP7C.js";var require_errors=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/errors.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),errors_exports={};__export(errors_exports,{VercelCliError:()=>VercelCliError2,assertValidCwd:()=>assertValidCwd,getCliNotFoundMessage:()=>getCliNotFoundMessage,toVercelCliError:()=>toVercelCliError});module.exports=__toCommonJS(errors_exports);var import_promises=__require("node:fs/promises"),VercelCliError2=class extends Error{constructor(options){super(options.message),this.name="VercelCliError",this.code=options.code,this.invocation=options.invocation,this.stdout=options.stdout,this.stderr=options.stderr,this.exitCode=options.exitCode,options.cause!==void 0&&(this.cause=options.cause)}};function getCliNotFoundMessage(diagnostics){let details=[],{localBinSearch}=diagnostics;localBinSearch.stopReason==="project-root-marker"?details.push(`Local bin lookup stopped at ${JSON.stringify(localBinSearch.stoppedAt)} (${JSON.stringify(localBinSearch.markerPath)}).`):localBinSearch.stopReason==="filesystem-root"&&details.push(`No project root marker was found from ${JSON.stringify(localBinSearch.searchRoot)}; local bin lookup reached the filesystem root.`);for(let skippedNodeModules of localBinSearch.skippedNodeModules)details.push(`Skipped ${JSON.stringify(skippedNodeModules.directory)}: ${skippedNodeModules.reason}.`);for(let skippedLocalBin of diagnostics.skippedLocalBins)details.push(`Skipped ${JSON.stringify(skippedLocalBin.candidate)}: ${skippedLocalBin.reason}.`);return details.length===0?"Unable to find a usable Vercel CLI installation.":["Unable to find a usable Vercel CLI installation.",...details].join(`
|
|
8
8
|
`)}async function assertValidCwd(cwd){try{if(!(await(0,import_promises.stat)(cwd)).isDirectory())throw new Error("not a directory")}catch{throw new VercelCliError2({code:"VERCEL_CLI_INVALID_CWD",message:`Working directory ${JSON.stringify(cwd)} does not exist or is not a directory.`})}}function toVercelCliError(invocation,error){if(typeof error=="object"&&error!==null){let execaError=error;if(execaError.code==="ENOENT")return new VercelCliError2({code:"VERCEL_CLI_NOT_FOUND",message:`Unable to find Vercel CLI command ${JSON.stringify(invocation.command)}.`,invocation,cause:error});if(execaError.code==="EACCES"||execaError.code==="EPERM")return new VercelCliError2({code:"VERCEL_CLI_PERMISSION_DENIED",message:`Permission denied while executing Vercel CLI command ${JSON.stringify(invocation.command)}.`,invocation,cause:error});if(execaError.timedOut)return new VercelCliError2({code:"VERCEL_CLI_TIMED_OUT",message:`Timed out while executing Vercel CLI command ${JSON.stringify(invocation.command)}.`,invocation,stdout:execaError.stdout,stderr:execaError.stderr,cause:error});if(execaError.isCanceled)return new VercelCliError2({code:"VERCEL_CLI_CANCELED",message:`Canceled while executing Vercel CLI command ${JSON.stringify(invocation.command)}.`,invocation,stdout:execaError.stdout,stderr:execaError.stderr,cause:error});if(execaError.signal)return new VercelCliError2({code:"VERCEL_CLI_SIGNALED",message:`Vercel CLI command ${JSON.stringify(invocation.command)} exited due to signal ${execaError.signal}.`,invocation,stdout:execaError.stdout,stderr:execaError.stderr,cause:error});if(typeof execaError.exitCode=="number")return new VercelCliError2({code:"VERCEL_CLI_ERRORED",message:execaError.shortMessage??execaError.message??`Vercel CLI command ${JSON.stringify(invocation.command)} exited with code ${execaError.exitCode}.`,invocation,stdout:execaError.stdout,stderr:execaError.stderr,exitCode:execaError.exitCode,cause:error})}return new VercelCliError2({code:"VERCEL_CLI_EXEC_FAILED",message:`Could not execute Vercel CLI command ${JSON.stringify(invocation.command)}.`,invocation,cause:error})}}});var require_core=__commonJS({"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/core.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.SIGNALS=void 0;var SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];exports.SIGNALS=SIGNALS}});var require_realtime=__commonJS({"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/realtime.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.SIGRTMAX=exports.getRealtimeSignals=void 0;var getRealtimeSignals=function(){let length=SIGRTMAX-SIGRTMIN+1;return Array.from({length},getRealtimeSignal)};exports.getRealtimeSignals=getRealtimeSignals;var getRealtimeSignal=function(value,index){return{name:`SIGRT${index+1}`,number:SIGRTMIN+index,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},SIGRTMIN=34,SIGRTMAX=64;exports.SIGRTMAX=SIGRTMAX}});var require_signals=__commonJS({"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/signals.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.getSignals=void 0;var _os=__require("os"),_core=require_core(),_realtime=require_realtime(),getSignals=function(){let realtimeSignals=(0,_realtime.getRealtimeSignals)();return[..._core.SIGNALS,...realtimeSignals].map(normalizeSignal)};exports.getSignals=getSignals;var normalizeSignal=function({name,number:defaultNumber,description,action,forced=!1,standard}){let{signals:{[name]:constantSignal}}=_os.constants,supported=constantSignal!==void 0;return{name,number:supported?constantSignal:defaultNumber,description,supported,action,forced,standard}}}});var require_main=__commonJS({"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/main.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.signalsByNumber=exports.signalsByName=void 0;var _os=__require("os"),_signals=require_signals(),_realtime=require_realtime(),getSignalsByName=function(){return(0,_signals.getSignals)().reduce(getSignalByName,{})},getSignalByName=function(signalByNameMemo,{name,number,description,supported,action,forced,standard}){return{...signalByNameMemo,[name]:{name,number,description,supported,action,forced,standard}}},signalsByName=getSignalsByName();exports.signalsByName=signalsByName;var getSignalsByNumber=function(){let signals=(0,_signals.getSignals)(),length=_realtime.SIGRTMAX+1,signalsA=Array.from({length},(value,number)=>getSignalByNumber(number,signals));return Object.assign({},...signalsA)},getSignalByNumber=function(number,signals){let signal=findSignalByNumber(number,signals);if(signal===void 0)return{};let{name,description,supported,action,forced,standard}=signal;return{[number]:{name,number,description,supported,action,forced,standard}}},findSignalByNumber=function(number,signals){let signal=signals.find(({name})=>_os.constants.signals[name]===number);return signal!==void 0?signal:signals.find(signalA=>signalA.number===number)},signalsByNumber=getSignalsByNumber();exports.signalsByNumber=signalsByNumber}});var require_error=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js"(exports,module){"use strict";var{signalsByName}=require_main(),getErrorPrefix=({timedOut,timeout,errorCode,signal,signalDescription,exitCode,isCanceled})=>timedOut?`timed out after ${timeout} milliseconds`:isCanceled?"was canceled":errorCode!==void 0?`failed with ${errorCode}`:signal!==void 0?`was killed with ${signal} (${signalDescription})`:exitCode!==void 0?`failed with exit code ${exitCode}`:"failed",makeError=({stdout,stderr,all,error,signal,exitCode,command,escapedCommand,timedOut,isCanceled,killed,parsed:{options:{timeout}}})=>{exitCode=exitCode===null?void 0:exitCode,signal=signal===null?void 0:signal;let signalDescription=signal===void 0?void 0:signalsByName[signal].description,errorCode=error&&error.code,execaMessage=`Command ${getErrorPrefix({timedOut,timeout,errorCode,signal,signalDescription,exitCode,isCanceled})}: ${command}`,isError=Object.prototype.toString.call(error)==="[object Error]",shortMessage=isError?`${execaMessage}
|
|
9
9
|
${error.message}`:execaMessage,message=[shortMessage,stderr,stdout].filter(Boolean).join(`
|
|
10
|
-
`);return isError?(error.originalMessage=error.message,error.message=message):error=new Error(message),error.shortMessage=shortMessage,error.command=command,error.escapedCommand=escapedCommand,error.exitCode=exitCode,error.signal=signal,error.signalDescription=signalDescription,error.stdout=stdout,error.stderr=stderr,all!==void 0&&(error.all=all),"bufferedData"in error&&delete error.bufferedData,error.failed=!0,error.timedOut=!!timedOut,error.isCanceled=isCanceled,error.killed=killed&&!timedOut,error};module.exports=makeError}});var require_stdio=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js"(exports,module){"use strict";var aliases=["stdin","stdout","stderr"],hasAlias=options=>aliases.some(alias=>options[alias]!==void 0),normalizeStdio=options=>{if(!options)return;let{stdio}=options;if(stdio===void 0)return aliases.map(alias=>options[alias]);if(hasAlias(options))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map(alias=>`\`${alias}\``).join(", ")}`);if(typeof stdio=="string")return stdio;if(!Array.isArray(stdio))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);let length=Math.max(stdio.length,aliases.length);return Array.from({length},(value,index)=>stdio[index])};module.exports=normalizeStdio;module.exports.node=options=>{let stdio=normalizeStdio(options);return stdio==="ipc"?"ipc":stdio===void 0||typeof stdio=="string"?[stdio,stdio,stdio,"ipc"]:stdio.includes("ipc")?stdio:[...stdio,"ipc"]}}});var require_kill=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports,module){"use strict";var os=__require("os"),onExit=require_signal_exit(),DEFAULT_FORCE_KILL_TIMEOUT=1e3*5,spawnedKill=(kill,signal="SIGTERM",options={})=>{let killResult=kill(signal);return setKillTimeout(kill,signal,options,killResult),killResult},setKillTimeout=(kill,signal,options,killResult)=>{if(!shouldForceKill(signal,options,killResult))return;let timeout=getForceKillAfterTimeout(options),t=setTimeout(()=>{kill("SIGKILL")},timeout);t.unref&&t.unref()},shouldForceKill=(signal,{forceKillAfterTimeout},killResult)=>isSigterm(signal)&&forceKillAfterTimeout!==!1&&killResult,isSigterm=signal=>signal===os.constants.signals.SIGTERM||typeof signal=="string"&&signal.toUpperCase()==="SIGTERM",getForceKillAfterTimeout=({forceKillAfterTimeout=!0})=>{if(forceKillAfterTimeout===!0)return DEFAULT_FORCE_KILL_TIMEOUT;if(!Number.isFinite(forceKillAfterTimeout)||forceKillAfterTimeout<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);return forceKillAfterTimeout},spawnedCancel=(spawned,context)=>{spawned.kill()&&(context.isCanceled=!0)},timeoutKill=(spawned,signal,reject)=>{spawned.kill(signal),reject(Object.assign(new Error("Timed out"),{timedOut:!0,signal}))},setupTimeout=(spawned,{timeout,killSignal="SIGTERM"},spawnedPromise)=>{if(timeout===0||timeout===void 0)return spawnedPromise;let timeoutId,timeoutPromise=new Promise((resolve,reject)=>{timeoutId=setTimeout(()=>{timeoutKill(spawned,killSignal,reject)},timeout)}),safeSpawnedPromise=spawnedPromise.finally(()=>{clearTimeout(timeoutId)});return Promise.race([timeoutPromise,safeSpawnedPromise])},validateTimeout=({timeout})=>{if(timeout!==void 0&&(!Number.isFinite(timeout)||timeout<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`)},setExitHandler=async(spawned,{cleanup,detached},timedPromise)=>{if(!cleanup||detached)return timedPromise;let removeExitHandler=onExit(()=>{spawned.kill()});return timedPromise.finally(()=>{removeExitHandler()})};module.exports={spawnedKill,spawnedCancel,setupTimeout,validateTimeout,setExitHandler}}});var require_buffer_stream=__commonJS({"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(exports,module){"use strict";var{PassThrough:PassThroughStream}=__require("stream");module.exports=options=>{options={...options};let{array}=options,{encoding}=options,isBuffer=encoding==="buffer",objectMode=!1;array?objectMode=!(encoding||isBuffer):encoding=encoding||"utf8",isBuffer&&(encoding=null);let stream=new PassThroughStream({objectMode});encoding&&stream.setEncoding(encoding);let length=0,chunks=[];return stream.on("data",chunk=>{chunks.push(chunk),objectMode?length=chunks.length:length+=chunk.length}),stream.getBufferedValue=()=>array?chunks:isBuffer?Buffer.concat(chunks,length):chunks.join(""),stream.getBufferedLength=()=>length,stream}}});var require_get_stream=__commonJS({"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js"(exports,module){"use strict";var{constants:BufferConstants}=__require("buffer"),stream=__require("stream"),{promisify}=__require("util"),bufferStream=require_buffer_stream(),streamPipelinePromisified=promisify(stream.pipeline),MaxBufferError=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function getStream(inputStream,options){if(!inputStream)throw new Error("Expected a stream");options={maxBuffer:1/0,...options};let{maxBuffer}=options,stream2=bufferStream(options);return await new Promise((resolve,reject)=>{let rejectPromise=error=>{error&&stream2.getBufferedLength()<=BufferConstants.MAX_LENGTH&&(error.bufferedData=stream2.getBufferedValue()),reject(error)};(async()=>{try{await streamPipelinePromisified(inputStream,stream2),resolve()}catch(error){rejectPromise(error)}})(),stream2.on("data",()=>{stream2.getBufferedLength()>maxBuffer&&rejectPromise(new MaxBufferError)})}),stream2.getBufferedValue()}module.exports=getStream;module.exports.buffer=(stream2,options)=>getStream(stream2,{...options,encoding:"buffer"});module.exports.array=(stream2,options)=>getStream(stream2,{...options,array:!0});module.exports.MaxBufferError=MaxBufferError}});var require_stream=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js"(exports,module){"use strict";var isStream=require_is_stream(),getStream=require_get_stream(),mergeStream=require_merge_stream(),handleInput=(spawned,input)=>{input===void 0||spawned.stdin===void 0||(isStream(input)?input.pipe(spawned.stdin):spawned.stdin.end(input))},makeAllStream=(spawned,{all})=>{if(!all||!spawned.stdout&&!spawned.stderr)return;let mixed=mergeStream();return spawned.stdout&&mixed.add(spawned.stdout),spawned.stderr&&mixed.add(spawned.stderr),mixed},getBufferedData=async(stream,streamPromise)=>{if(stream){stream.destroy();try{return await streamPromise}catch(error){return error.bufferedData}}},getStreamPromise=(stream,{encoding,buffer,maxBuffer})=>{if(!(!stream||!buffer))return encoding?getStream(stream,{encoding,maxBuffer}):getStream.buffer(stream,{maxBuffer})},getSpawnedResult=async({stdout,stderr,all},{encoding,buffer,maxBuffer},processDone)=>{let stdoutPromise=getStreamPromise(stdout,{encoding,buffer,maxBuffer}),stderrPromise=getStreamPromise(stderr,{encoding,buffer,maxBuffer}),allPromise=getStreamPromise(all,{encoding,buffer,maxBuffer:maxBuffer*2});try{return await Promise.all([processDone,stdoutPromise,stderrPromise,allPromise])}catch(error){return Promise.all([{error,signal:error.signal,timedOut:error.timedOut},getBufferedData(stdout,stdoutPromise),getBufferedData(stderr,stderrPromise),getBufferedData(all,allPromise)])}},validateInputSync=({input})=>{if(isStream(input))throw new TypeError("The `input` option cannot be a stream in sync mode")};module.exports={handleInput,makeAllStream,getSpawnedResult,validateInputSync}}});var require_promise=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js"(exports,module){"use strict";var nativePromisePrototype=(async()=>{})().constructor.prototype,descriptors=["then","catch","finally"].map(property=>[property,Reflect.getOwnPropertyDescriptor(nativePromisePrototype,property)]),mergePromise=(spawned,promise)=>{for(let[property,descriptor]of descriptors){let value=typeof promise=="function"?(...args)=>Reflect.apply(descriptor.value,promise(),args):descriptor.value.bind(promise);Reflect.defineProperty(spawned,property,{...descriptor,value})}return spawned},getSpawnedPromise=spawned=>new Promise((resolve,reject)=>{spawned.on("exit",(exitCode,signal)=>{resolve({exitCode,signal})}),spawned.on("error",error=>{reject(error)}),spawned.stdin&&spawned.stdin.on("error",error=>{reject(error)})});module.exports={mergePromise,getSpawnedPromise}}});var require_command=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js"(exports,module){"use strict";var normalizeArgs=(file,args=[])=>Array.isArray(args)?[file,...args]:[file],NO_ESCAPE_REGEXP=/^[\w.-]+$/,DOUBLE_QUOTES_REGEXP=/"/g,escapeArg=arg=>typeof arg!="string"||NO_ESCAPE_REGEXP.test(arg)?arg:`"${arg.replace(DOUBLE_QUOTES_REGEXP,'\\"')}"`,joinCommand=(file,args)=>normalizeArgs(file,args).join(" "),getEscapedCommand=(file,args)=>normalizeArgs(file,args).map(arg=>escapeArg(arg)).join(" "),SPACES_REGEXP=/ +/g,parseCommand=command=>{let tokens=[];for(let token of command.trim().split(SPACES_REGEXP)){let previousToken=tokens[tokens.length-1];previousToken&&previousToken.endsWith("\\")?tokens[tokens.length-1]=`${previousToken.slice(0,-1)} ${token}`:tokens.push(token)}return tokens};module.exports={joinCommand,getEscapedCommand,parseCommand}}});var require_execa=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(exports,module){"use strict";var path=__require("path"),childProcess=__require("child_process"),crossSpawn=require_cross_spawn(),stripFinalNewline=require_strip_final_newline(),npmRunPath=require_npm_run_path(),onetime=require_onetime(),makeError=require_error(),normalizeStdio=require_stdio(),{spawnedKill,spawnedCancel,setupTimeout,validateTimeout,setExitHandler}=require_kill(),{handleInput,getSpawnedResult,makeAllStream,validateInputSync}=require_stream(),{mergePromise,getSpawnedPromise}=require_promise(),{joinCommand,parseCommand,getEscapedCommand}=require_command(),DEFAULT_MAX_BUFFER=1e3*1e3*100,getEnv=({env:envOption,extendEnv,preferLocal,localDir,execPath})=>{let env=extendEnv?{...process.env,...envOption}:envOption;return preferLocal?npmRunPath.env({env,cwd:localDir,execPath}):env},handleArguments=(file,args,options={})=>{let parsed=crossSpawn._parse(file,args,options);return file=parsed.command,args=parsed.args,options=parsed.options,options={maxBuffer:DEFAULT_MAX_BUFFER,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:options.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...options},options.env=getEnv(options),options.stdio=normalizeStdio(options),process.platform==="win32"&&path.basename(file,".exe")==="cmd"&&args.unshift("/q"),{file,args,options,parsed}},handleOutput=(options,value,error)=>typeof value!="string"&&!Buffer.isBuffer(value)?error===void 0?void 0:"":options.stripFinalNewline?stripFinalNewline(value):value,execa=(file,args,options)=>{let parsed=handleArguments(file,args,options),command=joinCommand(file,args),escapedCommand=getEscapedCommand(file,args);validateTimeout(parsed.options);let spawned;try{spawned=childProcess.spawn(parsed.file,parsed.args,parsed.options)}catch(error){let dummySpawned=new childProcess.ChildProcess,errorPromise=Promise.reject(makeError({error,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1}));return mergePromise(dummySpawned,errorPromise)}let spawnedPromise=getSpawnedPromise(spawned),timedPromise=setupTimeout(spawned,parsed.options,spawnedPromise),processDone=setExitHandler(spawned,parsed.options,timedPromise),context={isCanceled:!1};spawned.kill=spawnedKill.bind(null,spawned.kill.bind(spawned)),spawned.cancel=spawnedCancel.bind(null,spawned,context);let handlePromiseOnce=onetime(async()=>{let[{error,exitCode,signal,timedOut},stdoutResult,stderrResult,allResult]=await getSpawnedResult(spawned,parsed.options,processDone),stdout=handleOutput(parsed.options,stdoutResult),stderr=handleOutput(parsed.options,stderrResult),all=handleOutput(parsed.options,allResult);if(error||exitCode!==0||signal!==null){let returnedError=makeError({error,exitCode,signal,stdout,stderr,all,command,escapedCommand,parsed,timedOut,isCanceled:context.isCanceled,killed:spawned.killed});if(!parsed.options.reject)return returnedError;throw returnedError}return{command,escapedCommand,exitCode:0,stdout,stderr,all,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return handleInput(spawned,parsed.options.input),spawned.all=makeAllStream(spawned,parsed.options),mergePromise(spawned,handlePromiseOnce)};module.exports=execa;module.exports.sync=(file,args,options)=>{let parsed=handleArguments(file,args,options),command=joinCommand(file,args),escapedCommand=getEscapedCommand(file,args);validateInputSync(parsed.options);let result;try{result=childProcess.spawnSync(parsed.file,parsed.args,parsed.options)}catch(error){throw makeError({error,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1})}let stdout=handleOutput(parsed.options,result.stdout,result.error),stderr=handleOutput(parsed.options,result.stderr,result.error);if(result.error||result.status!==0||result.signal!==null){let error=makeError({stdout,stderr,error:result.error,signal:result.signal,exitCode:result.status,command,escapedCommand,parsed,timedOut:result.error&&result.error.code==="ETIMEDOUT",isCanceled:!1,killed:result.signal!==null});if(!parsed.options.reject)return error;throw error}return{command,escapedCommand,exitCode:0,stdout,stderr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};module.exports.command=(command,options)=>{let[file,...args]=parseCommand(command);return execa(file,args,options)};module.exports.commandSync=(command,options)=>{let[file,...args]=parseCommand(command);return execa.sync(file,args,options)};module.exports.node=(scriptPath,args,options={})=>{args&&!Array.isArray(args)&&typeof args=="object"&&(options=args,args=[]);let stdio=normalizeStdio.node(options),defaultExecArgv=process.execArgv.filter(arg=>!arg.startsWith("--inspect")),{nodePath=process.execPath,nodeOptions=defaultExecArgv}=options;return execa(nodePath,[...nodeOptions,scriptPath,...Array.isArray(args)?args:[]],{...options,stdin:void 0,stdout:void 0,stderr:void 0,stdio,shell:!1})}}});var require_envpath=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/envpath.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),envpath_exports={};__export(envpath_exports,{getEnvPath:()=>getEnvPath,prependPathEntries:()=>prependPathEntries,setEnvPath:()=>setEnvPath,splitPath:()=>splitPath});module.exports=__toCommonJS(envpath_exports);var import_node_path=__toESM(__require("node:path"));function prependPathEntries(pathValue,directories){let pathParts=pathValue.split(import_node_path.default.delimiter).filter(Boolean),prepended=[];for(let directory of directories)!pathParts.includes(directory)&&!prepended.includes(directory)&&prepended.push(directory);return prepended.length===0?pathValue:pathValue===""||pathValue===import_node_path.default.delimiter?`${prepended.join(import_node_path.default.delimiter)}${pathValue}`:[...prepended,pathValue].join(import_node_path.default.delimiter)}function splitPath(pathValue){return pathValue.split(import_node_path.default.delimiter).filter(Boolean)}function getEnvPath(env=process.env){if(process.platform!=="win32")return env.PATH??"";let pathKeys=Object.keys(env).filter(key=>key.toLowerCase()==="path");for(let index=pathKeys.length-1;index>=0;index--){let value=env[pathKeys[index]];if(value!==void 0)return value}return""}function setEnvPath(env=process.env,pathValue){if(process.platform!=="win32")return{...env,PATH:pathValue};let normalizedEnv={...env};for(let key of Object.keys(normalizedEnv))key!=="PATH"&&key.toLowerCase()==="path"&&delete normalizedEnv[key];return normalizedEnv.PATH=pathValue,normalizedEnv}}});var require_errutils=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/errutils.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),errutils_exports={};__export(errutils_exports,{getErrorMessage:()=>getErrorMessage,isMissingPathError:()=>isMissingPathError});module.exports=__toCommonJS(errutils_exports);function getErrorMessage(error){return error instanceof Error?error.message:String(error)}function isMissingPathError(error){return typeof error=="object"&&error!==null&&"code"in error&&(error.code==="ENOENT"||error.code==="ENOTDIR")}}});var require_fsutils=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/fsutils.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),fsutils_exports={};__export(fsutils_exports,{getCanonicalPath:()=>getCanonicalPath,getCommandBase:()=>getCommandBase,getDirectoriesBetween:()=>getDirectoriesBetween,isNodeScript:()=>isNodeScript,isSubpath:()=>isSubpath,statIfExists:()=>statIfExists});module.exports=__toCommonJS(fsutils_exports);var import_promises=__require("node:fs/promises"),import_node_path=__toESM(__require("node:path")),import_errutils=require_errutils();async function getCanonicalPath(filePath){try{return await(0,import_promises.realpath)(filePath)}catch{return filePath}}function getDirectoriesBetween(parent,child){let directories=[],current=import_node_path.default.resolve(child),resolvedParent=import_node_path.default.resolve(parent);for(;;){if(directories.push(current),current===resolvedParent)return directories.reverse();let next=import_node_path.default.dirname(current);if(next===current)return[];current=next}}async function statIfExists(filePath){try{return{stats:await(0,import_promises.stat)(filePath)}}catch(error){return(0,import_errutils.isMissingPathError)(error)?{missing:!0}:{reason:`could not inspect: ${(0,import_errutils.getErrorMessage)(error)}`}}}function isNodeScript(filePath){return[".js",".cjs",".mjs"].includes(import_node_path.default.extname(filePath))}function isSubpath(parent,child){let relativePath=import_node_path.default.relative(parent,child);return relativePath===""||relativePath!==""&&!relativePath.startsWith("..")&&!import_node_path.default.isAbsolute(relativePath)}function getCommandBase(command){let extension=import_node_path.default.extname(command).toLowerCase();return process.platform==="win32"&&[".cmd",".exe"].includes(extension)?import_node_path.default.basename(command,extension):import_node_path.default.basename(command)}}});var require_safety=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/safety.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),safety_exports={};__export(safety_exports,{getSkippedNodeModulesReason:()=>getSkippedNodeModulesReason,getUnsafeDirectoryReason:()=>getUnsafeDirectoryReason,getUnsafePackageBinReason:()=>getUnsafePackageBinReason,getUnsafePackageDirectoryReason:()=>getUnsafePackageDirectoryReason,getUnsafePackageFileReason:()=>getUnsafePackageFileReason,getUnsafeStatsReason:()=>getUnsafeStatsReason});module.exports=__toCommonJS(safety_exports);var import_promises=__require("node:fs/promises"),import_node_path=__toESM(__require("node:path")),import_errutils=require_errutils(),import_fsutils=require_fsutils();async function getSkippedNodeModulesReason(nodeModulesDirectory,parentDirectories){let parentDirectory=import_node_path.default.dirname(nodeModulesDirectory);parentDirectories??=[parentDirectory];for(let directory of parentDirectories){let unsafeParentReason;try{unsafeParentReason=await getUnsafeDirectoryReason(directory)}catch(error){unsafeParentReason=`could not inspect: ${(0,import_errutils.getErrorMessage)(error)}`}if(unsafeParentReason)return`${directory} is ${unsafeParentReason}`}let result=await(0,import_fsutils.statIfExists)(nodeModulesDirectory);if("missing"in result)return null;if("reason"in result)return result.reason;if(!result.stats.isDirectory())return"not a directory";let unsafeNodeModulesReason=getUnsafeStatsReason(result.stats);return unsafeNodeModulesReason||await getSkippedLocalBinDirectoryReason(import_node_path.default.join(nodeModulesDirectory,".bin"))}async function getSkippedLocalBinDirectoryReason(localBinDirectory){let result=await(0,import_fsutils.statIfExists)(localBinDirectory);if("missing"in result)return null;if("reason"in result)return`${localBinDirectory} ${result.reason}`;if(!result.stats.isDirectory())return`${localBinDirectory} is not a directory`;let unsafeLocalBinReason=getUnsafeStatsReason(result.stats);return unsafeLocalBinReason?`${localBinDirectory} is ${unsafeLocalBinReason}`:null}async function getUnsafePackageBinReason(nodeModulesDirectory,packageDirectory,binPath){let unsafePackageDirectoryReason=await getUnsafePackageDirectoryReason(nodeModulesDirectory,packageDirectory);return unsafePackageDirectoryReason||await getUnsafePackageFileReason(packageDirectory,binPath)}async function getUnsafePackageDirectoryReason(nodeModulesDirectory,packageDirectory){let directoriesToCheck=(0,import_fsutils.getDirectoriesBetween)(nodeModulesDirectory,packageDirectory);if(directoriesToCheck.length===0)return`${packageDirectory} resolves outside local node_modules`;for(let directory of directoriesToCheck){let reason=await getUnsafeDirectoryReason(directory);if(reason)return`${directory} is ${reason}`}return null}async function getUnsafePackageFileReason(packageDirectory,filePath){let directoriesToCheck=(0,import_fsutils.getDirectoriesBetween)(packageDirectory,import_node_path.default.dirname(filePath));if(directoriesToCheck.length===0)return`${filePath} resolves outside package`;for(let directory of directoriesToCheck){let reason2=await getUnsafeDirectoryReason(directory);if(reason2)return`${directory} is ${reason2}`}let reason=await getUnsafeFileReason(filePath);return reason?`${filePath} is ${reason}`:null}async function getUnsafeDirectoryReason(directory){let stats=await(0,import_promises.stat)(directory);return stats.isDirectory()?getUnsafeStatsReason(stats):"not a directory"}async function getUnsafeFileReason(filePath){let stats=await(0,import_promises.stat)(filePath);return stats.isFile()?getUnsafeStatsReason(stats):"not a file"}function getUnsafeStatsReason(stats){let getuid=process.geteuid??process.getuid;if(typeof getuid!="function")return null;let uid=getuid();return stats.mode&18?stats.mode&2?"world-writable":"group-writable":stats.uid!==uid?`owned by uid ${stats.uid}, current uid is ${uid}`:null}}});var require_lookup=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/lookup.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),lookup_exports={};__export(lookup_exports,{clearCachedCliInvocation:()=>clearCachedCliInvocation,clearVercelCliLookupCache:()=>clearVercelCliLookupCache2,findVercelCli:()=>findVercelCli2,getLocalBinSearch:()=>getLocalBinSearch,resolveCachedCliInvocation:()=>resolveCachedCliInvocation,toVercelCliInvocation:()=>toVercelCliInvocation});module.exports=__toCommonJS(lookup_exports);var import_promises=__require("node:fs/promises"),import_node_path=__toESM(__require("node:path")),import_envpath=require_envpath(),import_errutils=require_errutils(),import_fsutils=require_fsutils(),import_safety=require_safety(),cliInvocationCache=new Map;async function findVercelCli2(options={}){let cwd=import_node_path.default.resolve(options.cwd??process.cwd()),pathValue=options.path??(0,import_envpath.getEnvPath)(process.env),resolution=await resolveCachedCliInvocation(cwd,pathValue);return resolution.found?toVercelCliInvocation(resolution):null}function resolveCachedCliInvocation(cwd,pathValue){let cacheKey=getCliInvocationCacheKey(cwd,pathValue);if(cliInvocationCache.has(cacheKey))return cliInvocationCache.get(cacheKey);let resolution=resolveCliInvocation(cwd,pathValue).catch(error=>{throw cliInvocationCache.delete(cacheKey),error});return cliInvocationCache.set(cacheKey,resolution),resolution}function toVercelCliInvocation(resolution){return{command:resolution.command,commandArgs:resolution.commandArgs,source:resolution.source}}function clearVercelCliLookupCache2(){cliInvocationCache.clear()}function clearCachedCliInvocation(cwd,pathValue){cliInvocationCache.delete(getCliInvocationCacheKey(cwd,pathValue))}async function resolveCliInvocation(cwd,pathValue){let localBinSearch=await getLocalBinSearch(cwd),diagnostics={localBinSearch:localBinSearch.diagnostics,skippedLocalBins:[]},resolvedPath=(0,import_envpath.prependPathEntries)(pathValue,localBinSearch.directories);for(let command of getVercelCommandNames()){let resolvedCommand=await findCommandInPath(command,resolvedPath,cwd,localBinSearch,diagnostics);if(resolvedCommand)return(0,import_fsutils.isNodeScript)(resolvedCommand.realPath)?{found:!0,command:process.execPath,commandArgs:[resolvedCommand.realPath],source:resolvedCommand.source,diagnostics}:{found:!0,command:resolvedCommand.realPath,commandArgs:[],source:resolvedCommand.source,diagnostics}}return{found:!1,diagnostics}}async function findCommandInPath(command,pathValue,cwd,localBinSearch,diagnostics){for(let directory of(0,import_envpath.splitPath)(pathValue)){let candidate=getPathCommandCandidate(directory,command,cwd);try{if(await canAccessCommandCandidate(candidate,localBinSearch,diagnostics)){let resolvedCommand=await resolveCommandCandidate(command,candidate,localBinSearch,diagnostics);if(resolvedCommand)return resolvedCommand}}catch{}}return null}function getPathCommandCandidate(directory,command,cwd){let candidateDirectory=import_node_path.default.isAbsolute(directory)?directory:import_node_path.default.resolve(cwd,directory);return import_node_path.default.join(candidateDirectory,command)}async function canAccessCommandCandidate(candidate,localBinSearch,diagnostics){try{return await(0,import_promises.access)(candidate,process.platform==="win32"?import_promises.constants.F_OK:import_promises.constants.F_OK|import_promises.constants.X_OK),!0}catch(error){return(0,import_errutils.isMissingPathError)(error)||await recordInaccessibleLocalBinCandidate(candidate,error,localBinSearch,diagnostics),!1}}async function recordInaccessibleLocalBinCandidate(candidate,error,localBinSearch,diagnostics){let localBinCandidate=await classifyPathLocalBinCandidate(candidate,localBinSearch.directories);localBinCandidate&&recordSkippedLocalBin(diagnostics,candidate,"reason"in localBinCandidate?localBinCandidate.reason:`local bin is not accessible: ${(0,import_errutils.getErrorMessage)(error)}`)}async function resolveCommandCandidate(command,candidate,localBinSearch,diagnostics){if(!(await(0,import_promises.stat)(candidate)).isFile())return null;let realPath=await(0,import_promises.realpath)(candidate),localBinCandidate=await classifyPathLocalBinCandidate(candidate,localBinSearch.directories);if(!localBinCandidate)return{realPath,source:"path"};if("reason"in localBinCandidate)return recordSkippedLocalBin(diagnostics,candidate,localBinCandidate.reason),null;let localPackageBinResult=await getLocalVercelPackageBin(command,localBinCandidate.directory);return"reason"in localPackageBinResult?(recordSkippedLocalBin(diagnostics,candidate,localPackageBinResult.reason),null):{realPath:localPackageBinResult.binPath,source:"local-bin"}}function recordSkippedLocalBin(diagnostics,candidate,reason){diagnostics.skippedLocalBins.push({candidate,reason})}function getVercelCommandNames(){let commandBases=["vercel"];if(process.platform!=="win32")return commandBases;let extensions=[".cmd",".exe",""];return commandBases.flatMap(command=>extensions.map(extension=>`${command}${extension}`))}async function getLocalBinSearch(cwd){let searchRoot=await(0,import_fsutils.getCanonicalPath)(import_node_path.default.resolve(cwd)),ancestorSearch=await getAncestorDirectorySearch(searchRoot),skippedNodeModules=[],directories=[];for(let directory of ancestorSearch.directories){let nodeModulesDirectory=import_node_path.default.join(directory,"node_modules"),parentDirectories=ancestorSearch.stopReason==="project-root-marker"?(0,import_fsutils.getDirectoriesBetween)(ancestorSearch.stoppedAt,directory):(0,import_fsutils.getDirectoriesBetween)(directory,searchRoot),skippedReason=await(0,import_safety.getSkippedNodeModulesReason)(nodeModulesDirectory,parentDirectories);if(skippedReason){skippedNodeModules.push({directory:nodeModulesDirectory,reason:skippedReason});continue}directories.push(import_node_path.default.join(nodeModulesDirectory,".bin"))}return{directories,diagnostics:{searchRoot,stoppedAt:ancestorSearch.stoppedAt,stopReason:ancestorSearch.stopReason,markerPath:ancestorSearch.markerPath,skippedNodeModules}}}async function getAncestorDirectorySearch(cwd){let directories=[],current=import_node_path.default.resolve(cwd);for(;;){directories.push(current);let marker=await getProjectRootMarker(current);if(marker)return{directories,stoppedAt:current,stopReason:"project-root-marker",markerPath:marker.path};let parent=import_node_path.default.dirname(current);if(parent===current)return{directories,stoppedAt:current,stopReason:"filesystem-root"};current=parent}}async function getProjectRootMarker(directory){let gitPath=import_node_path.default.join(directory,".git");try{return await(0,import_promises.stat)(gitPath),{path:gitPath}}catch{}return null}async function getLocalBinDirectory(filePath,localBinDirectories){let resolvedFilePath=import_node_path.default.resolve(filePath),canonicalFilePath=resolvedFilePath;try{canonicalFilePath=import_node_path.default.join(await(0,import_promises.realpath)(import_node_path.default.dirname(resolvedFilePath)),import_node_path.default.basename(resolvedFilePath))}catch{}for(let localBinDirectory of localBinDirectories){try{localBinDirectory=await(0,import_promises.realpath)(localBinDirectory)}catch{}if(canonicalFilePath.startsWith(`${localBinDirectory}${import_node_path.default.sep}`))return localBinDirectory}return null}async function getNodeModulesBinDirectory(filePath){let candidateDirectory=import_node_path.default.resolve(import_node_path.default.dirname(filePath)),directories=[candidateDirectory];try{let canonicalDirectory=await(0,import_promises.realpath)(candidateDirectory);directories.includes(canonicalDirectory)||directories.push(canonicalDirectory)}catch{}for(let directory of directories)if(import_node_path.default.basename(directory)===".bin"&&import_node_path.default.basename(import_node_path.default.dirname(directory))==="node_modules")return directory;return null}async function classifyPathLocalBinCandidate(filePath,localBinDirectories){let localBinDirectory=await getLocalBinDirectory(filePath,localBinDirectories);if(localBinDirectory)return{directory:localBinDirectory};let nodeModulesBinDirectory=await getNodeModulesBinDirectory(filePath);if(!nodeModulesBinDirectory)return null;let nodeModulesDirectory=import_node_path.default.dirname(nodeModulesBinDirectory),skippedReason=await(0,import_safety.getSkippedNodeModulesReason)(nodeModulesDirectory);return skippedReason?{reason:`local node_modules is ${skippedReason}`}:{reason:"local bin is outside project lookup boundary"}}async function getLocalVercelPackageBin(command,localBinDirectory){let commandBase=(0,import_fsutils.getCommandBase)(command),nodeModulesDirectory=import_node_path.default.dirname(localBinDirectory);if(commandBase!=="vercel"||import_node_path.default.basename(nodeModulesDirectory)!=="node_modules")return{reason:"not a local vercel bin"};try{let localPackage=await getLocalVercelPackage(nodeModulesDirectory);if("reason"in localPackage)return localPackage;let packageJsonResult=await readLocalVercelPackageJson(localPackage.realPackageDirectory);return"reason"in packageJsonResult?packageJsonResult:(localPackage.packageJson=packageJsonResult.packageJson,await getDeclaredLocalVercelPackageBin(localPackage,commandBase))}catch(error){return{reason:`could not validate local vercel package: ${(0,import_errutils.getErrorMessage)(error)}`}}}async function getLocalVercelPackage(nodeModulesDirectory){let packageDirectory=import_node_path.default.join(nodeModulesDirectory,"vercel"),realNodeModulesDirectory=await(0,import_promises.realpath)(nodeModulesDirectory),realPackageDirectory=await(0,import_promises.realpath)(packageDirectory);if(!(0,import_fsutils.isSubpath)(realNodeModulesDirectory,realPackageDirectory))return{reason:"local vercel package resolves outside local node_modules"};let unsafePackageDirectoryReason=await(0,import_safety.getUnsafePackageDirectoryReason)(realNodeModulesDirectory,realPackageDirectory);return unsafePackageDirectoryReason?{reason:`local vercel package is unsafe: ${unsafePackageDirectoryReason}`}:{realNodeModulesDirectory,realPackageDirectory,packageJson:{}}}async function readLocalVercelPackageJson(realPackageDirectory){let packageJsonPath=import_node_path.default.join(realPackageDirectory,"package.json"),realPackageJsonPath=await(0,import_promises.realpath)(packageJsonPath);if(!(0,import_fsutils.isSubpath)(realPackageDirectory,realPackageJsonPath))return{reason:"local vercel package.json resolves outside package"};let unsafePackageJsonReason=await(0,import_safety.getUnsafePackageFileReason)(realPackageDirectory,realPackageJsonPath);if(unsafePackageJsonReason)return{reason:`local vercel package.json is unsafe: ${unsafePackageJsonReason}`};let packageJson=JSON.parse(await(0,import_promises.readFile)(realPackageJsonPath,"utf8"));return packageJson.name!=="vercel"?{reason:'local vercel package.json does not have name "vercel"'}:{packageJson}}async function getDeclaredLocalVercelPackageBin(localPackage,commandBase){let{packageJson,realNodeModulesDirectory,realPackageDirectory}=localPackage,binTarget=getPackageBinTarget(packageJson,commandBase);if(!binTarget)return{reason:"local vercel package does not declare bin.vercel"};let declaredBinPath=import_node_path.default.resolve(realPackageDirectory,binTarget),realDeclaredBinPath=await(0,import_promises.realpath)(declaredBinPath);if(!(0,import_fsutils.isSubpath)(realPackageDirectory,realDeclaredBinPath))return{reason:"local vercel package bin resolves outside package"};let unsafePackageBinReason=await(0,import_safety.getUnsafePackageBinReason)(realNodeModulesDirectory,realPackageDirectory,realDeclaredBinPath);if(unsafePackageBinReason)return{reason:`local vercel package bin is unsafe: ${unsafePackageBinReason}`};if(process.platform!=="win32"&&!(0,import_fsutils.isNodeScript)(realDeclaredBinPath))try{await(0,import_promises.access)(realDeclaredBinPath,import_promises.constants.F_OK|import_promises.constants.X_OK)}catch(error){return{reason:`local vercel package bin is not executable: ${(0,import_errutils.getErrorMessage)(error)}`}}return{binPath:realDeclaredBinPath}}function getPackageBinTarget(packageJson,command){let bin=packageJson.bin;if(typeof bin=="string")return command==="vercel"?bin:null;if(bin&&typeof bin=="object"){let target=bin[command];if(typeof target=="string")return target}return null}function getCliInvocationCacheKey(cwd,pathValue){return`${cwd}\0${pathValue}`}}});var require_exec=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/exec.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),exec_exports={};__export(exec_exports,{execVercelCli:()=>execVercelCli2});module.exports=__toCommonJS(exec_exports);var import_node_path=__toESM(__require("node:path")),import_execa=__toESM(require_execa()),import_envpath=require_envpath(),import_errors=require_errors(),import_lookup=require_lookup();async function execVercelCli2(args,options={}){let cwd=import_node_path.default.resolve(options.cwd??process.cwd());await(0,import_errors.assertValidCwd)(cwd);let env=mergeExecEnv(options.env),pathValue=(0,import_envpath.getEnvPath)(env);try{return await execResolvedVercelCli(args,options,cwd,env,pathValue)}catch(error){if(error instanceof import_errors.VercelCliError&&error.code==="VERCEL_CLI_NOT_FOUND")return(0,import_lookup.clearCachedCliInvocation)(cwd,pathValue),await execResolvedVercelCli(args,options,cwd,env,pathValue);throw error}}async function execResolvedVercelCli(args,options,cwd,env,pathValue){let invocation=await resolveInvocationOrThrow(cwd,pathValue);try{let execaOptions={input:options.input,stdio:options.stdio,stdin:options.stdin,stdout:options.stdout,stderr:options.stderr,timeout:options.timeout,cwd,env:await prependLocalBinsToEnvPath(cwd,env),windowsHide:!0};options.signal&&(execaOptions.signal=options.signal);let{stdout,stderr}=await(0,import_execa.default)(invocation.command,[...invocation.commandArgs,...args],execaOptions);return{stdout,stderr,invocation}}catch(error){throw(0,import_errors.toVercelCliError)(invocation,error)}}async function resolveInvocationOrThrow(cwd,pathValue){let resolution=await(0,import_lookup.resolveCachedCliInvocation)(cwd,pathValue);if(!resolution.found)throw new import_errors.VercelCliError({code:"VERCEL_CLI_NOT_FOUND",message:(0,import_errors.getCliNotFoundMessage)(resolution.diagnostics)});return(0,import_lookup.toVercelCliInvocation)(resolution)}function mergeExecEnv(env){return env?{...process.env,...env}:process.env}async function prependLocalBinsToEnvPath(cwd,env=process.env){let localPath=await prependLocalBinsToPath(cwd,(0,import_envpath.getEnvPath)(env));return(0,import_envpath.setEnvPath)(env,(0,import_envpath.prependPathEntries)(localPath,[import_node_path.default.dirname(process.execPath)]))}async function prependLocalBinsToPath(cwd,pathValue=""){return(0,import_envpath.prependPathEntries)(pathValue,(await(0,import_lookup.getLocalBinSearch)(cwd)).directories)}}});var require_dist=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/index.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),src_exports={};__export(src_exports,{VercelCliError:()=>import_errors.VercelCliError,clearVercelCliLookupCache:()=>import_lookup.clearVercelCliLookupCache,execVercelCli:()=>import_exec.execVercelCli,findVercelCli:()=>import_lookup.findVercelCli});module.exports=__toCommonJS(src_exports);var import_errors=require_errors(),import_exec=require_exec(),import_lookup=require_lookup()}});var require_token_error=__commonJS({"../../node_modules/.pnpm/@vercel+oidc@3.8.10/node_modules/@vercel/oidc/dist/token-error.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),token_error_exports={};__export(token_error_exports,{VercelOidcTokenError:()=>VercelOidcTokenError});module.exports=__toCommonJS(token_error_exports);var VercelOidcTokenError=class extends Error{constructor(message,cause){super(message),this.name="VercelOidcTokenError",this.cause=cause}toString(){return this.cause?`${this.name}: ${this.message}: ${this.cause}`:`${this.name}: ${this.message}`}}}});var require_token_io=__commonJS({"../../node_modules/.pnpm/@vercel+oidc@3.8.10/node_modules/@vercel/oidc/dist/token-io.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),token_io_exports={};__export(token_io_exports,{findRootDir:()=>findRootDir,getUserDataDir:()=>getUserDataDir});module.exports=__toCommonJS(token_io_exports);var import_path=__toESM(__require("path")),import_fs=__toESM(__require("fs")),import_os=__toESM(__require("os")),import_token_error=require_token_error();function findRootDir(){try{let dir=process.cwd();for(;dir!==import_path.default.dirname(dir);){let pkgPath=import_path.default.join(dir,".vercel");if(import_fs.default.existsSync(pkgPath))return dir;dir=import_path.default.dirname(dir)}}catch{throw new import_token_error.VercelOidcTokenError("Token refresh only supported in node server environments")}return null}function getUserDataDir(){if(process.env.XDG_DATA_HOME)return process.env.XDG_DATA_HOME;switch(import_os.default.platform()){case"darwin":return import_path.default.join(import_os.default.homedir(),"Library/Application Support");case"linux":return import_path.default.join(import_os.default.homedir(),".local/share");case"win32":return process.env.LOCALAPPDATA?process.env.LOCALAPPDATA:null;default:return null}}}});var require_oauth=__commonJS({"../../node_modules/.pnpm/@vercel+oidc@3.8.10/node_modules/@vercel/oidc/dist/oauth.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),oauth_exports={};__export(oauth_exports,{processTokenResponse:()=>processTokenResponse,refreshTokenRequest:()=>refreshTokenRequest});module.exports=__toCommonJS(oauth_exports);var import_os=__require("os"),VERCEL_ISSUER="https://vercel.com",VERCEL_CLI_CLIENT_ID="cl_HYyOPBNtFMfHhaUn9L4QPfTZz6TP47bp",userAgent=`@vercel/oidc node-${process.version} ${(0,import_os.platform)()} (${(0,import_os.arch)()}) ${(0,import_os.hostname)()}`,_tokenEndpoint=null;async function getTokenEndpoint(){if(_tokenEndpoint)return _tokenEndpoint;let discoveryUrl=`${VERCEL_ISSUER}/.well-known/openid-configuration`,response=await fetch(discoveryUrl,{headers:{"user-agent":userAgent}});if(!response.ok)throw new Error("Failed to discover OAuth endpoints");let metadata=await response.json();if(!metadata||typeof metadata.token_endpoint!="string")throw new Error("Invalid OAuth discovery response");let endpoint=metadata.token_endpoint;return _tokenEndpoint=endpoint,endpoint}async function refreshTokenRequest(options){let tokenEndpoint=await getTokenEndpoint();return await fetch(tokenEndpoint,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","user-agent":userAgent},body:new URLSearchParams({client_id:VERCEL_CLI_CLIENT_ID,grant_type:"refresh_token",...options})})}async function processTokenResponse(response){let json=await response.json();if(!response.ok){let errorMsg=typeof json=="object"&&json&&"error"in json?String(json.error):"Token refresh failed";return[new Error(errorMsg)]}return typeof json!="object"||json===null?[new Error("Invalid token response")]:typeof json.access_token!="string"?[new Error("Missing access_token in response")]:json.token_type!=="Bearer"?[new Error("Invalid token_type in response")]:typeof json.expires_in!="number"?[new Error("Missing expires_in in response")]:[null,json]}}});var require_auth_errors=__commonJS({"../../node_modules/.pnpm/@vercel+oidc@3.8.10/node_modules/@vercel/oidc/dist/auth-errors.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),auth_errors_exports={};__export(auth_errors_exports,{AccessTokenMissingError:()=>AccessTokenMissingError,RefreshAccessTokenFailedError:()=>RefreshAccessTokenFailedError});module.exports=__toCommonJS(auth_errors_exports);var AccessTokenMissingError=class extends Error{constructor(){super("No authentication found. Please log in with the Vercel CLI (vercel login)."),this.name="AccessTokenMissingError"}},RefreshAccessTokenFailedError=class extends Error{constructor(cause){super("Failed to refresh authentication token."),this.name="RefreshAccessTokenFailedError",cause!==void 0&&(this.cause=cause)}}}});var require_token_util=__commonJS({"../../node_modules/.pnpm/@vercel+oidc@3.8.10/node_modules/@vercel/oidc/dist/token-util.js"(exports,module){var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),token_util_exports={};__export(token_util_exports,{assertVercelOidcTokenResponse:()=>assertVercelOidcTokenResponse,findProjectInfo:()=>findProjectInfo,getTokenPayload:()=>getTokenPayload,getVercelOidcToken:()=>getVercelOidcToken,getVercelOidcTokenFromCli:()=>getVercelOidcTokenFromCli,getVercelToken:()=>getVercelToken,isExpired:()=>isExpired,loadToken:()=>loadToken,saveToken:()=>saveToken});module.exports=__toCommonJS(token_util_exports);var path=__toESM(__require("path")),fs=__toESM(__require("fs")),import_cli_exec=require_dist(),import_cli_config=__require("@vercel/cli-config"),import_token_error=require_token_error(),import_token_io=require_token_io(),import_oauth=require_oauth(),import_auth_errors=require_auth_errors();async function getVercelToken(options){let configDir=(0,import_cli_config.getGlobalPathConfig)(),authConfig=(0,import_cli_config.tryReadAuthConfig)(configDir);if(!authConfig||!authConfig.token&&!authConfig.refreshToken)throw new import_auth_errors.AccessTokenMissingError;if(isValidAccessToken(authConfig,options?.expirationBufferMs))return authConfig.token;if(!authConfig.refreshToken)throw(0,import_cli_config.writeAuthConfig)(configDir,{}),new import_auth_errors.RefreshAccessTokenFailedError("No refresh token available");try{let tokenResponse=await(0,import_oauth.refreshTokenRequest)({refresh_token:authConfig.refreshToken}),[tokensError,tokens]=await(0,import_oauth.processTokenResponse)(tokenResponse);if(tokensError||!tokens)throw(0,import_cli_config.writeAuthConfig)(configDir,{}),new import_auth_errors.RefreshAccessTokenFailedError(tokensError);let updatedConfig={token:tokens.access_token,expiresAt:Math.floor(Date.now()/1e3)+tokens.expires_in,refreshToken:tokens.refresh_token};return(0,import_cli_config.writeAuthConfig)(configDir,updatedConfig),updatedConfig.token}catch(error){throw(0,import_cli_config.writeAuthConfig)(configDir,{}),error instanceof import_auth_errors.AccessTokenMissingError||error instanceof import_auth_errors.RefreshAccessTokenFailedError?error:new import_auth_errors.RefreshAccessTokenFailedError(error)}}function isValidAccessToken(authConfig,expirationBufferMs=0){if(!authConfig.token)return!1;if(typeof authConfig.expiresAt!="number")return!0;let nowInSeconds=Math.floor(Date.now()/1e3),bufferInSeconds=expirationBufferMs/1e3;return authConfig.expiresAt>=nowInSeconds+bufferInSeconds}async function getVercelOidcTokenFromCli(projectId,teamId){let args=["project","token",projectId,"--format=json"];teamId&&args.push("--scope",teamId);try{let{stdout}=await(0,import_cli_exec.execVercelCli)(args),parsedOutput;if(typeof stdout!="string")throw new import_token_error.VercelOidcTokenError("Failed to refresh OIDC token: `vercel project token` did not return stdout");try{parsedOutput=JSON.parse(stdout)}catch{throw new import_token_error.VercelOidcTokenError("Failed to refresh OIDC token: `vercel project token` returned invalid JSON: "+stdout)}return assertVercelOidcTokenResponse(parsedOutput),parsedOutput}catch(error){if(error instanceof import_token_error.VercelOidcTokenError)throw error;let message=error instanceof Error?error.message:"",stderr=error instanceof import_cli_exec.VercelCliError?error.stderr?.trim():void 0;throw stderr&&!message.includes(stderr)&&(message=`${message}
|
|
11
|
-
${stderr}`.trim()),new import_token_error.VercelOidcTokenError(message?`Failed to refresh OIDC token with the Vercel CLI: ${message}`:"Failed to refresh OIDC token with the Vercel CLI")}}async function getVercelOidcToken(authToken,projectId,teamId){let url=`https://api.vercel.com/v1/projects/${projectId}/token?source=vercel-oidc-refresh${teamId?`&teamId=${teamId}`:""}`,res=await fetch(url,{method:"POST",headers:{Authorization:`Bearer ${authToken}`}});if(!res.ok)throw new import_token_error.VercelOidcTokenError(`Failed to refresh OIDC token: ${res.statusText}`);let tokenRes=await res.json();return assertVercelOidcTokenResponse(tokenRes),tokenRes}function assertVercelOidcTokenResponse(res){if(!res||typeof res!="object")throw new TypeError("Vercel OIDC token is malformed. Expected an object.");if(!("token"in res)||typeof res.token!="string")throw new TypeError("Vercel OIDC token is malformed. Expected a string-valued token property.")}function findProjectInfo(){let dir=(0,import_token_io.findRootDir)();if(!dir)throw new import_token_error.VercelOidcTokenError("Unable to find project root directory. Have you linked your project with `vc link?`");let prjPath=path.join(dir,".vercel","project.json");if(!fs.existsSync(prjPath))throw new import_token_error.VercelOidcTokenError("project.json not found, have you linked your project with `vc link?`");let prj=JSON.parse(fs.readFileSync(prjPath,"utf8"));if(typeof prj.projectId!="string"&&typeof prj.orgId!="string")throw new TypeError("Expected a string-valued projectId property. Try running `vc link` to re-link your project.");return{projectId:prj.projectId,teamId:prj.orgId}}function saveToken(token,projectId){let dir=(0,import_token_io.getUserDataDir)();if(!dir)throw new import_token_error.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let tokenPath=path.join(dir,"com.vercel.token",`${projectId}.json`),tokenJson=JSON.stringify(token);fs.mkdirSync(path.dirname(tokenPath),{mode:504,recursive:!0}),fs.writeFileSync(tokenPath,tokenJson),fs.chmodSync(tokenPath,432)}function loadToken(projectId){let dir=(0,import_token_io.getUserDataDir)();if(!dir)throw new import_token_error.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let tokenPath=path.join(dir,"com.vercel.token",`${projectId}.json`);if(!fs.existsSync(tokenPath))return null;let token=JSON.parse(fs.readFileSync(tokenPath,"utf8"));return assertVercelOidcTokenResponse(token),token}function getTokenPayload(token){let tokenParts=token.split(".");if(tokenParts.length!==3)throw new import_token_error.VercelOidcTokenError("Invalid token.");let base64=tokenParts[1].replace(/-/g,"+").replace(/_/g,"/"),padded=base64.padEnd(base64.length+(4-base64.length%4)%4,"=");return JSON.parse(Buffer.from(padded,"base64").toString("utf8"))}function isExpired(token,bufferMs=0){return token.exp*1e3<Date.now()+bufferMs}}});export{require_token_error,require_auth_errors,require_token_util};
|
|
10
|
+
`);return isError?(error.originalMessage=error.message,error.message=message):error=new Error(message),error.shortMessage=shortMessage,error.command=command,error.escapedCommand=escapedCommand,error.exitCode=exitCode,error.signal=signal,error.signalDescription=signalDescription,error.stdout=stdout,error.stderr=stderr,all!==void 0&&(error.all=all),"bufferedData"in error&&delete error.bufferedData,error.failed=!0,error.timedOut=!!timedOut,error.isCanceled=isCanceled,error.killed=killed&&!timedOut,error};module.exports=makeError}});var require_stdio=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js"(exports,module){"use strict";var aliases=["stdin","stdout","stderr"],hasAlias=options=>aliases.some(alias=>options[alias]!==void 0),normalizeStdio=options=>{if(!options)return;let{stdio}=options;if(stdio===void 0)return aliases.map(alias=>options[alias]);if(hasAlias(options))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map(alias=>`\`${alias}\``).join(", ")}`);if(typeof stdio=="string")return stdio;if(!Array.isArray(stdio))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);let length=Math.max(stdio.length,aliases.length);return Array.from({length},(value,index)=>stdio[index])};module.exports=normalizeStdio;module.exports.node=options=>{let stdio=normalizeStdio(options);return stdio==="ipc"?"ipc":stdio===void 0||typeof stdio=="string"?[stdio,stdio,stdio,"ipc"]:stdio.includes("ipc")?stdio:[...stdio,"ipc"]}}});var require_kill=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports,module){"use strict";var os=__require("os"),onExit=require_signal_exit(),DEFAULT_FORCE_KILL_TIMEOUT=1e3*5,spawnedKill=(kill,signal="SIGTERM",options={})=>{let killResult=kill(signal);return setKillTimeout(kill,signal,options,killResult),killResult},setKillTimeout=(kill,signal,options,killResult)=>{if(!shouldForceKill(signal,options,killResult))return;let timeout=getForceKillAfterTimeout(options),t=setTimeout(()=>{kill("SIGKILL")},timeout);t.unref&&t.unref()},shouldForceKill=(signal,{forceKillAfterTimeout},killResult)=>isSigterm(signal)&&forceKillAfterTimeout!==!1&&killResult,isSigterm=signal=>signal===os.constants.signals.SIGTERM||typeof signal=="string"&&signal.toUpperCase()==="SIGTERM",getForceKillAfterTimeout=({forceKillAfterTimeout=!0})=>{if(forceKillAfterTimeout===!0)return DEFAULT_FORCE_KILL_TIMEOUT;if(!Number.isFinite(forceKillAfterTimeout)||forceKillAfterTimeout<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);return forceKillAfterTimeout},spawnedCancel=(spawned,context)=>{spawned.kill()&&(context.isCanceled=!0)},timeoutKill=(spawned,signal,reject)=>{spawned.kill(signal),reject(Object.assign(new Error("Timed out"),{timedOut:!0,signal}))},setupTimeout=(spawned,{timeout,killSignal="SIGTERM"},spawnedPromise)=>{if(timeout===0||timeout===void 0)return spawnedPromise;let timeoutId,timeoutPromise=new Promise((resolve,reject)=>{timeoutId=setTimeout(()=>{timeoutKill(spawned,killSignal,reject)},timeout)}),safeSpawnedPromise=spawnedPromise.finally(()=>{clearTimeout(timeoutId)});return Promise.race([timeoutPromise,safeSpawnedPromise])},validateTimeout=({timeout})=>{if(timeout!==void 0&&(!Number.isFinite(timeout)||timeout<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`)},setExitHandler=async(spawned,{cleanup,detached},timedPromise)=>{if(!cleanup||detached)return timedPromise;let removeExitHandler=onExit(()=>{spawned.kill()});return timedPromise.finally(()=>{removeExitHandler()})};module.exports={spawnedKill,spawnedCancel,setupTimeout,validateTimeout,setExitHandler}}});var require_buffer_stream=__commonJS({"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(exports,module){"use strict";var{PassThrough:PassThroughStream}=__require("stream");module.exports=options=>{options={...options};let{array}=options,{encoding}=options,isBuffer=encoding==="buffer",objectMode=!1;array?objectMode=!(encoding||isBuffer):encoding=encoding||"utf8",isBuffer&&(encoding=null);let stream=new PassThroughStream({objectMode});encoding&&stream.setEncoding(encoding);let length=0,chunks=[];return stream.on("data",chunk=>{chunks.push(chunk),objectMode?length=chunks.length:length+=chunk.length}),stream.getBufferedValue=()=>array?chunks:isBuffer?Buffer.concat(chunks,length):chunks.join(""),stream.getBufferedLength=()=>length,stream}}});var require_get_stream=__commonJS({"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js"(exports,module){"use strict";var{constants:BufferConstants}=__require("buffer"),stream=__require("stream"),{promisify}=__require("util"),bufferStream=require_buffer_stream(),streamPipelinePromisified=promisify(stream.pipeline),MaxBufferError=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function getStream(inputStream,options){if(!inputStream)throw new Error("Expected a stream");options={maxBuffer:1/0,...options};let{maxBuffer}=options,stream2=bufferStream(options);return await new Promise((resolve,reject)=>{let rejectPromise=error=>{error&&stream2.getBufferedLength()<=BufferConstants.MAX_LENGTH&&(error.bufferedData=stream2.getBufferedValue()),reject(error)};(async()=>{try{await streamPipelinePromisified(inputStream,stream2),resolve()}catch(error){rejectPromise(error)}})(),stream2.on("data",()=>{stream2.getBufferedLength()>maxBuffer&&rejectPromise(new MaxBufferError)})}),stream2.getBufferedValue()}module.exports=getStream;module.exports.buffer=(stream2,options)=>getStream(stream2,{...options,encoding:"buffer"});module.exports.array=(stream2,options)=>getStream(stream2,{...options,array:!0});module.exports.MaxBufferError=MaxBufferError}});var require_stream=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js"(exports,module){"use strict";var isStream=require_is_stream(),getStream=require_get_stream(),mergeStream=require_merge_stream(),handleInput=(spawned,input)=>{input===void 0||spawned.stdin===void 0||(isStream(input)?input.pipe(spawned.stdin):spawned.stdin.end(input))},makeAllStream=(spawned,{all})=>{if(!all||!spawned.stdout&&!spawned.stderr)return;let mixed=mergeStream();return spawned.stdout&&mixed.add(spawned.stdout),spawned.stderr&&mixed.add(spawned.stderr),mixed},getBufferedData=async(stream,streamPromise)=>{if(stream){stream.destroy();try{return await streamPromise}catch(error){return error.bufferedData}}},getStreamPromise=(stream,{encoding,buffer,maxBuffer})=>{if(!(!stream||!buffer))return encoding?getStream(stream,{encoding,maxBuffer}):getStream.buffer(stream,{maxBuffer})},getSpawnedResult=async({stdout,stderr,all},{encoding,buffer,maxBuffer},processDone)=>{let stdoutPromise=getStreamPromise(stdout,{encoding,buffer,maxBuffer}),stderrPromise=getStreamPromise(stderr,{encoding,buffer,maxBuffer}),allPromise=getStreamPromise(all,{encoding,buffer,maxBuffer:maxBuffer*2});try{return await Promise.all([processDone,stdoutPromise,stderrPromise,allPromise])}catch(error){return Promise.all([{error,signal:error.signal,timedOut:error.timedOut},getBufferedData(stdout,stdoutPromise),getBufferedData(stderr,stderrPromise),getBufferedData(all,allPromise)])}},validateInputSync=({input})=>{if(isStream(input))throw new TypeError("The `input` option cannot be a stream in sync mode")};module.exports={handleInput,makeAllStream,getSpawnedResult,validateInputSync}}});var require_promise=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js"(exports,module){"use strict";var nativePromisePrototype=(async()=>{})().constructor.prototype,descriptors=["then","catch","finally"].map(property=>[property,Reflect.getOwnPropertyDescriptor(nativePromisePrototype,property)]),mergePromise=(spawned,promise)=>{for(let[property,descriptor]of descriptors){let value=typeof promise=="function"?(...args)=>Reflect.apply(descriptor.value,promise(),args):descriptor.value.bind(promise);Reflect.defineProperty(spawned,property,{...descriptor,value})}return spawned},getSpawnedPromise=spawned=>new Promise((resolve,reject)=>{spawned.on("exit",(exitCode,signal)=>{resolve({exitCode,signal})}),spawned.on("error",error=>{reject(error)}),spawned.stdin&&spawned.stdin.on("error",error=>{reject(error)})});module.exports={mergePromise,getSpawnedPromise}}});var require_command=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js"(exports,module){"use strict";var normalizeArgs=(file,args=[])=>Array.isArray(args)?[file,...args]:[file],NO_ESCAPE_REGEXP=/^[\w.-]+$/,DOUBLE_QUOTES_REGEXP=/"/g,escapeArg=arg=>typeof arg!="string"||NO_ESCAPE_REGEXP.test(arg)?arg:`"${arg.replace(DOUBLE_QUOTES_REGEXP,'\\"')}"`,joinCommand=(file,args)=>normalizeArgs(file,args).join(" "),getEscapedCommand=(file,args)=>normalizeArgs(file,args).map(arg=>escapeArg(arg)).join(" "),SPACES_REGEXP=/ +/g,parseCommand=command=>{let tokens=[];for(let token of command.trim().split(SPACES_REGEXP)){let previousToken=tokens[tokens.length-1];previousToken&&previousToken.endsWith("\\")?tokens[tokens.length-1]=`${previousToken.slice(0,-1)} ${token}`:tokens.push(token)}return tokens};module.exports={joinCommand,getEscapedCommand,parseCommand}}});var require_execa=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(exports,module){"use strict";var path=__require("path"),childProcess=__require("child_process"),crossSpawn=require_cross_spawn(),stripFinalNewline=require_strip_final_newline(),npmRunPath=require_npm_run_path(),onetime=require_onetime(),makeError=require_error(),normalizeStdio=require_stdio(),{spawnedKill,spawnedCancel,setupTimeout,validateTimeout,setExitHandler}=require_kill(),{handleInput,getSpawnedResult,makeAllStream,validateInputSync}=require_stream(),{mergePromise,getSpawnedPromise}=require_promise(),{joinCommand,parseCommand,getEscapedCommand}=require_command(),DEFAULT_MAX_BUFFER=1e3*1e3*100,getEnv=({env:envOption,extendEnv,preferLocal,localDir,execPath})=>{let env=extendEnv?{...process.env,...envOption}:envOption;return preferLocal?npmRunPath.env({env,cwd:localDir,execPath}):env},handleArguments=(file,args,options={})=>{let parsed=crossSpawn._parse(file,args,options);return file=parsed.command,args=parsed.args,options=parsed.options,options={maxBuffer:DEFAULT_MAX_BUFFER,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:options.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...options},options.env=getEnv(options),options.stdio=normalizeStdio(options),process.platform==="win32"&&path.basename(file,".exe")==="cmd"&&args.unshift("/q"),{file,args,options,parsed}},handleOutput=(options,value,error)=>typeof value!="string"&&!Buffer.isBuffer(value)?error===void 0?void 0:"":options.stripFinalNewline?stripFinalNewline(value):value,execa=(file,args,options)=>{let parsed=handleArguments(file,args,options),command=joinCommand(file,args),escapedCommand=getEscapedCommand(file,args);validateTimeout(parsed.options);let spawned;try{spawned=childProcess.spawn(parsed.file,parsed.args,parsed.options)}catch(error){let dummySpawned=new childProcess.ChildProcess,errorPromise=Promise.reject(makeError({error,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1}));return mergePromise(dummySpawned,errorPromise)}let spawnedPromise=getSpawnedPromise(spawned),timedPromise=setupTimeout(spawned,parsed.options,spawnedPromise),processDone=setExitHandler(spawned,parsed.options,timedPromise),context={isCanceled:!1};spawned.kill=spawnedKill.bind(null,spawned.kill.bind(spawned)),spawned.cancel=spawnedCancel.bind(null,spawned,context);let handlePromiseOnce=onetime(async()=>{let[{error,exitCode,signal,timedOut},stdoutResult,stderrResult,allResult]=await getSpawnedResult(spawned,parsed.options,processDone),stdout=handleOutput(parsed.options,stdoutResult),stderr=handleOutput(parsed.options,stderrResult),all=handleOutput(parsed.options,allResult);if(error||exitCode!==0||signal!==null){let returnedError=makeError({error,exitCode,signal,stdout,stderr,all,command,escapedCommand,parsed,timedOut,isCanceled:context.isCanceled,killed:spawned.killed});if(!parsed.options.reject)return returnedError;throw returnedError}return{command,escapedCommand,exitCode:0,stdout,stderr,all,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return handleInput(spawned,parsed.options.input),spawned.all=makeAllStream(spawned,parsed.options),mergePromise(spawned,handlePromiseOnce)};module.exports=execa;module.exports.sync=(file,args,options)=>{let parsed=handleArguments(file,args,options),command=joinCommand(file,args),escapedCommand=getEscapedCommand(file,args);validateInputSync(parsed.options);let result;try{result=childProcess.spawnSync(parsed.file,parsed.args,parsed.options)}catch(error){throw makeError({error,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1})}let stdout=handleOutput(parsed.options,result.stdout,result.error),stderr=handleOutput(parsed.options,result.stderr,result.error);if(result.error||result.status!==0||result.signal!==null){let error=makeError({stdout,stderr,error:result.error,signal:result.signal,exitCode:result.status,command,escapedCommand,parsed,timedOut:result.error&&result.error.code==="ETIMEDOUT",isCanceled:!1,killed:result.signal!==null});if(!parsed.options.reject)return error;throw error}return{command,escapedCommand,exitCode:0,stdout,stderr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};module.exports.command=(command,options)=>{let[file,...args]=parseCommand(command);return execa(file,args,options)};module.exports.commandSync=(command,options)=>{let[file,...args]=parseCommand(command);return execa.sync(file,args,options)};module.exports.node=(scriptPath,args,options={})=>{args&&!Array.isArray(args)&&typeof args=="object"&&(options=args,args=[]);let stdio=normalizeStdio.node(options),defaultExecArgv=process.execArgv.filter(arg=>!arg.startsWith("--inspect")),{nodePath=process.execPath,nodeOptions=defaultExecArgv}=options;return execa(nodePath,[...nodeOptions,scriptPath,...Array.isArray(args)?args:[]],{...options,stdin:void 0,stdout:void 0,stderr:void 0,stdio,shell:!1})}}});var require_envpath=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/envpath.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),envpath_exports={};__export(envpath_exports,{getEnvPath:()=>getEnvPath,prependPathEntries:()=>prependPathEntries,setEnvPath:()=>setEnvPath,splitPath:()=>splitPath});module.exports=__toCommonJS(envpath_exports);var import_node_path=__toESM(__require("node:path"));function prependPathEntries(pathValue,directories){let pathParts=pathValue.split(import_node_path.default.delimiter).filter(Boolean),prepended=[];for(let directory of directories)!pathParts.includes(directory)&&!prepended.includes(directory)&&prepended.push(directory);return prepended.length===0?pathValue:pathValue===""||pathValue===import_node_path.default.delimiter?`${prepended.join(import_node_path.default.delimiter)}${pathValue}`:[...prepended,pathValue].join(import_node_path.default.delimiter)}function splitPath(pathValue){return pathValue.split(import_node_path.default.delimiter).filter(Boolean)}function getEnvPath(env=process.env){if(process.platform!=="win32")return env.PATH??"";let pathKeys=Object.keys(env).filter(key=>key.toLowerCase()==="path");for(let index=pathKeys.length-1;index>=0;index--){let value=env[pathKeys[index]];if(value!==void 0)return value}return""}function setEnvPath(env=process.env,pathValue){if(process.platform!=="win32")return{...env,PATH:pathValue};let normalizedEnv={...env};for(let key of Object.keys(normalizedEnv))key!=="PATH"&&key.toLowerCase()==="path"&&delete normalizedEnv[key];return normalizedEnv.PATH=pathValue,normalizedEnv}}});var require_errutils=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/errutils.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),errutils_exports={};__export(errutils_exports,{getErrorMessage:()=>getErrorMessage,isMissingPathError:()=>isMissingPathError});module.exports=__toCommonJS(errutils_exports);function getErrorMessage(error){return error instanceof Error?error.message:String(error)}function isMissingPathError(error){return typeof error=="object"&&error!==null&&"code"in error&&(error.code==="ENOENT"||error.code==="ENOTDIR")}}});var require_fsutils=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/fsutils.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),fsutils_exports={};__export(fsutils_exports,{getCanonicalPath:()=>getCanonicalPath,getCommandBase:()=>getCommandBase,getDirectoriesBetween:()=>getDirectoriesBetween,isNodeScript:()=>isNodeScript,isSubpath:()=>isSubpath,statIfExists:()=>statIfExists});module.exports=__toCommonJS(fsutils_exports);var import_promises=__require("node:fs/promises"),import_node_path=__toESM(__require("node:path")),import_errutils=require_errutils();async function getCanonicalPath(filePath){try{return await(0,import_promises.realpath)(filePath)}catch{return filePath}}function getDirectoriesBetween(parent,child){let directories=[],current=import_node_path.default.resolve(child),resolvedParent=import_node_path.default.resolve(parent);for(;;){if(directories.push(current),current===resolvedParent)return directories.reverse();let next=import_node_path.default.dirname(current);if(next===current)return[];current=next}}async function statIfExists(filePath){try{return{stats:await(0,import_promises.stat)(filePath)}}catch(error){return(0,import_errutils.isMissingPathError)(error)?{missing:!0}:{reason:`could not inspect: ${(0,import_errutils.getErrorMessage)(error)}`}}}function isNodeScript(filePath){return[".js",".cjs",".mjs"].includes(import_node_path.default.extname(filePath))}function isSubpath(parent,child){let relativePath=import_node_path.default.relative(parent,child);return relativePath===""||relativePath!==""&&!relativePath.startsWith("..")&&!import_node_path.default.isAbsolute(relativePath)}function getCommandBase(command){let extension=import_node_path.default.extname(command).toLowerCase();return process.platform==="win32"&&[".cmd",".exe"].includes(extension)?import_node_path.default.basename(command,extension):import_node_path.default.basename(command)}}});var require_safety=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/safety.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),safety_exports={};__export(safety_exports,{getSkippedNodeModulesReason:()=>getSkippedNodeModulesReason,getUnsafeDirectoryReason:()=>getUnsafeDirectoryReason,getUnsafePackageBinReason:()=>getUnsafePackageBinReason,getUnsafePackageDirectoryReason:()=>getUnsafePackageDirectoryReason,getUnsafePackageFileReason:()=>getUnsafePackageFileReason,getUnsafeStatsReason:()=>getUnsafeStatsReason});module.exports=__toCommonJS(safety_exports);var import_promises=__require("node:fs/promises"),import_node_path=__toESM(__require("node:path")),import_errutils=require_errutils(),import_fsutils=require_fsutils();async function getSkippedNodeModulesReason(nodeModulesDirectory,parentDirectories){let parentDirectory=import_node_path.default.dirname(nodeModulesDirectory);parentDirectories??=[parentDirectory];for(let directory of parentDirectories){let unsafeParentReason;try{unsafeParentReason=await getUnsafeDirectoryReason(directory)}catch(error){unsafeParentReason=`could not inspect: ${(0,import_errutils.getErrorMessage)(error)}`}if(unsafeParentReason)return`${directory} is ${unsafeParentReason}`}let result=await(0,import_fsutils.statIfExists)(nodeModulesDirectory);if("missing"in result)return null;if("reason"in result)return result.reason;if(!result.stats.isDirectory())return"not a directory";let unsafeNodeModulesReason=getUnsafeStatsReason(result.stats);return unsafeNodeModulesReason||await getSkippedLocalBinDirectoryReason(import_node_path.default.join(nodeModulesDirectory,".bin"))}async function getSkippedLocalBinDirectoryReason(localBinDirectory){let result=await(0,import_fsutils.statIfExists)(localBinDirectory);if("missing"in result)return null;if("reason"in result)return`${localBinDirectory} ${result.reason}`;if(!result.stats.isDirectory())return`${localBinDirectory} is not a directory`;let unsafeLocalBinReason=getUnsafeStatsReason(result.stats);return unsafeLocalBinReason?`${localBinDirectory} is ${unsafeLocalBinReason}`:null}async function getUnsafePackageBinReason(nodeModulesDirectory,packageDirectory,binPath){let unsafePackageDirectoryReason=await getUnsafePackageDirectoryReason(nodeModulesDirectory,packageDirectory);return unsafePackageDirectoryReason||await getUnsafePackageFileReason(packageDirectory,binPath)}async function getUnsafePackageDirectoryReason(nodeModulesDirectory,packageDirectory){let directoriesToCheck=(0,import_fsutils.getDirectoriesBetween)(nodeModulesDirectory,packageDirectory);if(directoriesToCheck.length===0)return`${packageDirectory} resolves outside local node_modules`;for(let directory of directoriesToCheck){let reason=await getUnsafeDirectoryReason(directory);if(reason)return`${directory} is ${reason}`}return null}async function getUnsafePackageFileReason(packageDirectory,filePath){let directoriesToCheck=(0,import_fsutils.getDirectoriesBetween)(packageDirectory,import_node_path.default.dirname(filePath));if(directoriesToCheck.length===0)return`${filePath} resolves outside package`;for(let directory of directoriesToCheck){let reason2=await getUnsafeDirectoryReason(directory);if(reason2)return`${directory} is ${reason2}`}let reason=await getUnsafeFileReason(filePath);return reason?`${filePath} is ${reason}`:null}async function getUnsafeDirectoryReason(directory){let stats=await(0,import_promises.stat)(directory);return stats.isDirectory()?getUnsafeStatsReason(stats):"not a directory"}async function getUnsafeFileReason(filePath){let stats=await(0,import_promises.stat)(filePath);return stats.isFile()?getUnsafeStatsReason(stats):"not a file"}function getUnsafeStatsReason(stats){let getuid=process.geteuid??process.getuid;if(typeof getuid!="function")return null;let uid=getuid();return stats.mode&18?stats.mode&2?"world-writable":"group-writable":stats.uid!==uid?`owned by uid ${stats.uid}, current uid is ${uid}`:null}}});var require_lookup=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/lookup.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),lookup_exports={};__export(lookup_exports,{clearCachedCliInvocation:()=>clearCachedCliInvocation,clearVercelCliLookupCache:()=>clearVercelCliLookupCache2,findVercelCli:()=>findVercelCli2,getLocalBinSearch:()=>getLocalBinSearch,resolveCachedCliInvocation:()=>resolveCachedCliInvocation,toVercelCliInvocation:()=>toVercelCliInvocation});module.exports=__toCommonJS(lookup_exports);var import_promises=__require("node:fs/promises"),import_node_path=__toESM(__require("node:path")),import_envpath=require_envpath(),import_errutils=require_errutils(),import_fsutils=require_fsutils(),import_safety=require_safety(),cliInvocationCache=new Map;async function findVercelCli2(options={}){let cwd=import_node_path.default.resolve(options.cwd??process.cwd()),pathValue=options.path??(0,import_envpath.getEnvPath)(process.env),resolution=await resolveCachedCliInvocation(cwd,pathValue);return resolution.found?toVercelCliInvocation(resolution):null}function resolveCachedCliInvocation(cwd,pathValue){let cacheKey=getCliInvocationCacheKey(cwd,pathValue);if(cliInvocationCache.has(cacheKey))return cliInvocationCache.get(cacheKey);let resolution=resolveCliInvocation(cwd,pathValue).catch(error=>{throw cliInvocationCache.delete(cacheKey),error});return cliInvocationCache.set(cacheKey,resolution),resolution}function toVercelCliInvocation(resolution){return{command:resolution.command,commandArgs:resolution.commandArgs,source:resolution.source}}function clearVercelCliLookupCache2(){cliInvocationCache.clear()}function clearCachedCliInvocation(cwd,pathValue){cliInvocationCache.delete(getCliInvocationCacheKey(cwd,pathValue))}async function resolveCliInvocation(cwd,pathValue){let localBinSearch=await getLocalBinSearch(cwd),diagnostics={localBinSearch:localBinSearch.diagnostics,skippedLocalBins:[]},resolvedPath=(0,import_envpath.prependPathEntries)(pathValue,localBinSearch.directories);for(let command of getVercelCommandNames()){let resolvedCommand=await findCommandInPath(command,resolvedPath,cwd,localBinSearch,diagnostics);if(resolvedCommand)return(0,import_fsutils.isNodeScript)(resolvedCommand.realPath)?{found:!0,command:process.execPath,commandArgs:[resolvedCommand.realPath],source:resolvedCommand.source,diagnostics}:{found:!0,command:resolvedCommand.realPath,commandArgs:[],source:resolvedCommand.source,diagnostics}}return{found:!1,diagnostics}}async function findCommandInPath(command,pathValue,cwd,localBinSearch,diagnostics){for(let directory of(0,import_envpath.splitPath)(pathValue)){let candidate=getPathCommandCandidate(directory,command,cwd);try{if(await canAccessCommandCandidate(candidate,localBinSearch,diagnostics)){let resolvedCommand=await resolveCommandCandidate(command,candidate,localBinSearch,diagnostics);if(resolvedCommand)return resolvedCommand}}catch{}}return null}function getPathCommandCandidate(directory,command,cwd){let candidateDirectory=import_node_path.default.isAbsolute(directory)?directory:import_node_path.default.resolve(cwd,directory);return import_node_path.default.join(candidateDirectory,command)}async function canAccessCommandCandidate(candidate,localBinSearch,diagnostics){try{return await(0,import_promises.access)(candidate,process.platform==="win32"?import_promises.constants.F_OK:import_promises.constants.F_OK|import_promises.constants.X_OK),!0}catch(error){return(0,import_errutils.isMissingPathError)(error)||await recordInaccessibleLocalBinCandidate(candidate,error,localBinSearch,diagnostics),!1}}async function recordInaccessibleLocalBinCandidate(candidate,error,localBinSearch,diagnostics){let localBinCandidate=await classifyPathLocalBinCandidate(candidate,localBinSearch.directories);localBinCandidate&&recordSkippedLocalBin(diagnostics,candidate,"reason"in localBinCandidate?localBinCandidate.reason:`local bin is not accessible: ${(0,import_errutils.getErrorMessage)(error)}`)}async function resolveCommandCandidate(command,candidate,localBinSearch,diagnostics){if(!(await(0,import_promises.stat)(candidate)).isFile())return null;let realPath=await(0,import_promises.realpath)(candidate),localBinCandidate=await classifyPathLocalBinCandidate(candidate,localBinSearch.directories);if(!localBinCandidate)return{realPath,source:"path"};if("reason"in localBinCandidate)return recordSkippedLocalBin(diagnostics,candidate,localBinCandidate.reason),null;let localPackageBinResult=await getLocalVercelPackageBin(command,localBinCandidate.directory);return"reason"in localPackageBinResult?(recordSkippedLocalBin(diagnostics,candidate,localPackageBinResult.reason),null):{realPath:localPackageBinResult.binPath,source:"local-bin"}}function recordSkippedLocalBin(diagnostics,candidate,reason){diagnostics.skippedLocalBins.push({candidate,reason})}function getVercelCommandNames(){let commandBases=["vercel"];if(process.platform!=="win32")return commandBases;let extensions=[".cmd",".exe",""];return commandBases.flatMap(command=>extensions.map(extension=>`${command}${extension}`))}async function getLocalBinSearch(cwd){let searchRoot=await(0,import_fsutils.getCanonicalPath)(import_node_path.default.resolve(cwd)),ancestorSearch=await getAncestorDirectorySearch(searchRoot),skippedNodeModules=[],directories=[];for(let directory of ancestorSearch.directories){let nodeModulesDirectory=import_node_path.default.join(directory,"node_modules"),parentDirectories=ancestorSearch.stopReason==="project-root-marker"?(0,import_fsutils.getDirectoriesBetween)(ancestorSearch.stoppedAt,directory):(0,import_fsutils.getDirectoriesBetween)(directory,searchRoot),skippedReason=await(0,import_safety.getSkippedNodeModulesReason)(nodeModulesDirectory,parentDirectories);if(skippedReason){skippedNodeModules.push({directory:nodeModulesDirectory,reason:skippedReason});continue}directories.push(import_node_path.default.join(nodeModulesDirectory,".bin"))}return{directories,diagnostics:{searchRoot,stoppedAt:ancestorSearch.stoppedAt,stopReason:ancestorSearch.stopReason,markerPath:ancestorSearch.markerPath,skippedNodeModules}}}async function getAncestorDirectorySearch(cwd){let directories=[],current=import_node_path.default.resolve(cwd);for(;;){directories.push(current);let marker=await getProjectRootMarker(current);if(marker)return{directories,stoppedAt:current,stopReason:"project-root-marker",markerPath:marker.path};let parent=import_node_path.default.dirname(current);if(parent===current)return{directories,stoppedAt:current,stopReason:"filesystem-root"};current=parent}}async function getProjectRootMarker(directory){let gitPath=import_node_path.default.join(directory,".git");try{return await(0,import_promises.stat)(gitPath),{path:gitPath}}catch{}return null}async function getLocalBinDirectory(filePath,localBinDirectories){let resolvedFilePath=import_node_path.default.resolve(filePath),canonicalFilePath=resolvedFilePath;try{canonicalFilePath=import_node_path.default.join(await(0,import_promises.realpath)(import_node_path.default.dirname(resolvedFilePath)),import_node_path.default.basename(resolvedFilePath))}catch{}for(let localBinDirectory of localBinDirectories){try{localBinDirectory=await(0,import_promises.realpath)(localBinDirectory)}catch{}if(canonicalFilePath.startsWith(`${localBinDirectory}${import_node_path.default.sep}`))return localBinDirectory}return null}async function getNodeModulesBinDirectory(filePath){let candidateDirectory=import_node_path.default.resolve(import_node_path.default.dirname(filePath)),directories=[candidateDirectory];try{let canonicalDirectory=await(0,import_promises.realpath)(candidateDirectory);directories.includes(canonicalDirectory)||directories.push(canonicalDirectory)}catch{}for(let directory of directories)if(import_node_path.default.basename(directory)===".bin"&&import_node_path.default.basename(import_node_path.default.dirname(directory))==="node_modules")return directory;return null}async function classifyPathLocalBinCandidate(filePath,localBinDirectories){let localBinDirectory=await getLocalBinDirectory(filePath,localBinDirectories);if(localBinDirectory)return{directory:localBinDirectory};let nodeModulesBinDirectory=await getNodeModulesBinDirectory(filePath);if(!nodeModulesBinDirectory)return null;let nodeModulesDirectory=import_node_path.default.dirname(nodeModulesBinDirectory),skippedReason=await(0,import_safety.getSkippedNodeModulesReason)(nodeModulesDirectory);return skippedReason?{reason:`local node_modules is ${skippedReason}`}:{reason:"local bin is outside project lookup boundary"}}async function getLocalVercelPackageBin(command,localBinDirectory){let commandBase=(0,import_fsutils.getCommandBase)(command),nodeModulesDirectory=import_node_path.default.dirname(localBinDirectory);if(commandBase!=="vercel"||import_node_path.default.basename(nodeModulesDirectory)!=="node_modules")return{reason:"not a local vercel bin"};try{let localPackage=await getLocalVercelPackage(nodeModulesDirectory);if("reason"in localPackage)return localPackage;let packageJsonResult=await readLocalVercelPackageJson(localPackage.realPackageDirectory);return"reason"in packageJsonResult?packageJsonResult:(localPackage.packageJson=packageJsonResult.packageJson,await getDeclaredLocalVercelPackageBin(localPackage,commandBase))}catch(error){return{reason:`could not validate local vercel package: ${(0,import_errutils.getErrorMessage)(error)}`}}}async function getLocalVercelPackage(nodeModulesDirectory){let packageDirectory=import_node_path.default.join(nodeModulesDirectory,"vercel"),realNodeModulesDirectory=await(0,import_promises.realpath)(nodeModulesDirectory),realPackageDirectory=await(0,import_promises.realpath)(packageDirectory);if(!(0,import_fsutils.isSubpath)(realNodeModulesDirectory,realPackageDirectory))return{reason:"local vercel package resolves outside local node_modules"};let unsafePackageDirectoryReason=await(0,import_safety.getUnsafePackageDirectoryReason)(realNodeModulesDirectory,realPackageDirectory);return unsafePackageDirectoryReason?{reason:`local vercel package is unsafe: ${unsafePackageDirectoryReason}`}:{realNodeModulesDirectory,realPackageDirectory,packageJson:{}}}async function readLocalVercelPackageJson(realPackageDirectory){let packageJsonPath=import_node_path.default.join(realPackageDirectory,"package.json"),realPackageJsonPath=await(0,import_promises.realpath)(packageJsonPath);if(!(0,import_fsutils.isSubpath)(realPackageDirectory,realPackageJsonPath))return{reason:"local vercel package.json resolves outside package"};let unsafePackageJsonReason=await(0,import_safety.getUnsafePackageFileReason)(realPackageDirectory,realPackageJsonPath);if(unsafePackageJsonReason)return{reason:`local vercel package.json is unsafe: ${unsafePackageJsonReason}`};let packageJson=JSON.parse(await(0,import_promises.readFile)(realPackageJsonPath,"utf8"));return packageJson.name!=="vercel"?{reason:'local vercel package.json does not have name "vercel"'}:{packageJson}}async function getDeclaredLocalVercelPackageBin(localPackage,commandBase){let{packageJson,realNodeModulesDirectory,realPackageDirectory}=localPackage,binTarget=getPackageBinTarget(packageJson,commandBase);if(!binTarget)return{reason:"local vercel package does not declare bin.vercel"};let declaredBinPath=import_node_path.default.resolve(realPackageDirectory,binTarget),realDeclaredBinPath=await(0,import_promises.realpath)(declaredBinPath);if(!(0,import_fsutils.isSubpath)(realPackageDirectory,realDeclaredBinPath))return{reason:"local vercel package bin resolves outside package"};let unsafePackageBinReason=await(0,import_safety.getUnsafePackageBinReason)(realNodeModulesDirectory,realPackageDirectory,realDeclaredBinPath);if(unsafePackageBinReason)return{reason:`local vercel package bin is unsafe: ${unsafePackageBinReason}`};if(process.platform!=="win32"&&!(0,import_fsutils.isNodeScript)(realDeclaredBinPath))try{await(0,import_promises.access)(realDeclaredBinPath,import_promises.constants.F_OK|import_promises.constants.X_OK)}catch(error){return{reason:`local vercel package bin is not executable: ${(0,import_errutils.getErrorMessage)(error)}`}}return{binPath:realDeclaredBinPath}}function getPackageBinTarget(packageJson,command){let bin=packageJson.bin;if(typeof bin=="string")return command==="vercel"?bin:null;if(bin&&typeof bin=="object"){let target=bin[command];if(typeof target=="string")return target}return null}function getCliInvocationCacheKey(cwd,pathValue){return`${cwd}\0${pathValue}`}}});var require_exec=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/exec.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),exec_exports={};__export(exec_exports,{execVercelCli:()=>execVercelCli2});module.exports=__toCommonJS(exec_exports);var import_node_path=__toESM(__require("node:path")),import_execa=__toESM(require_execa()),import_envpath=require_envpath(),import_errors=require_errors(),import_lookup=require_lookup();async function execVercelCli2(args,options={}){let cwd=import_node_path.default.resolve(options.cwd??process.cwd());await(0,import_errors.assertValidCwd)(cwd);let env=mergeExecEnv(options.env),pathValue=(0,import_envpath.getEnvPath)(env);try{return await execResolvedVercelCli(args,options,cwd,env,pathValue)}catch(error){if(error instanceof import_errors.VercelCliError&&error.code==="VERCEL_CLI_NOT_FOUND")return(0,import_lookup.clearCachedCliInvocation)(cwd,pathValue),await execResolvedVercelCli(args,options,cwd,env,pathValue);throw error}}async function execResolvedVercelCli(args,options,cwd,env,pathValue){let invocation=await resolveInvocationOrThrow(cwd,pathValue);try{let execaOptions={input:options.input,stdio:options.stdio,stdin:options.stdin,stdout:options.stdout,stderr:options.stderr,timeout:options.timeout,cwd,env:await prependLocalBinsToEnvPath(cwd,env),windowsHide:!0};options.signal&&(execaOptions.signal=options.signal);let{stdout,stderr}=await(0,import_execa.default)(invocation.command,[...invocation.commandArgs,...args],execaOptions);return{stdout,stderr,invocation}}catch(error){throw(0,import_errors.toVercelCliError)(invocation,error)}}async function resolveInvocationOrThrow(cwd,pathValue){let resolution=await(0,import_lookup.resolveCachedCliInvocation)(cwd,pathValue);if(!resolution.found)throw new import_errors.VercelCliError({code:"VERCEL_CLI_NOT_FOUND",message:(0,import_errors.getCliNotFoundMessage)(resolution.diagnostics)});return(0,import_lookup.toVercelCliInvocation)(resolution)}function mergeExecEnv(env){return env?{...process.env,...env}:process.env}async function prependLocalBinsToEnvPath(cwd,env=process.env){let localPath=await prependLocalBinsToPath(cwd,(0,import_envpath.getEnvPath)(env));return(0,import_envpath.setEnvPath)(env,(0,import_envpath.prependPathEntries)(localPath,[import_node_path.default.dirname(process.execPath)]))}async function prependLocalBinsToPath(cwd,pathValue=""){return(0,import_envpath.prependPathEntries)(pathValue,(await(0,import_lookup.getLocalBinSearch)(cwd)).directories)}}});var require_dist=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/index.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),src_exports={};__export(src_exports,{VercelCliError:()=>import_errors.VercelCliError,clearVercelCliLookupCache:()=>import_lookup.clearVercelCliLookupCache,execVercelCli:()=>import_exec.execVercelCli,findVercelCli:()=>import_lookup.findVercelCli});module.exports=__toCommonJS(src_exports);var import_errors=require_errors(),import_exec=require_exec(),import_lookup=require_lookup()}});export{require_dist};
|
|
@@ -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{Separator}from"./chunk-
|
|
7
|
+
import{Separator}from"./chunk-N7IBUNFY.js";import{isAPIError}from"./chunk-MTPHHAPR.js";import{eraseLines,link_default,output_manager_default}from"./chunk-RIXTYUYN.js";import{require_source}from"./chunk-UJ7YUIEJ.js";import{require_strip_ansi}from"./chunk-LPYHYTYI.js";import{__toESM}from"./chunk-NBPLUP7C.js";var import_chalk=__toESM(require_source(),1);import{URL}from"url";var import_strip_ansi=__toESM(require_strip_ansi(),1);function getLength(input){let biggestLength=0;for(let line of input.split(`
|
|
8
8
|
`)){let str=(0,import_strip_ansi.default)(line);str.length>biggestLength&&(biggestLength=str.length)}return biggestLength}async function list(client,{message="the question",choices:_choices=[{name:`something
|
|
9
9
|
description
|
|
10
10
|
details
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
import{i,s as s2}from"./chunk-NXUDP37D.js";import{c,f,l,m,s}from"./chunk-YBWLW6SW.js";import n from"node:process";import r from"node:os";import i2 from"node:tty";function a(){let e=new Map;for(let[t,n2]of Object.entries(u)){for(let[t2,r2]of Object.entries(n2))u[t2]={open:`\x1B[${r2[0]}m`,close:`\x1B[${r2[1]}m`},n2[t2]=u[t2],e.set(r2[0],r2[1]);Object.defineProperty(u,t,{value:n2,enumerable:!1})}return Object.defineProperty(u,"codes",{value:e,enumerable:!1}),u.color.close="\x1B[39m",u.bgColor.close="\x1B[49m",u.color.ansi=s3(),u.color.ansi256=c2(),u.color.ansi16m=l2(),u.bgColor.ansi=s3(o),u.bgColor.ansi256=c2(o),u.bgColor.ansi16m=l2(o),Object.defineProperties(u,{rgbToAnsi256:{value(e2,t,n2){return e2===t&&t===n2?e2<8?16:e2>248?231:Math.round((e2-8)/247*24)+232:16+36*Math.round(e2/255*5)+6*Math.round(t/255*5)+Math.round(n2/255*5)},enumerable:!1},hexToRgb:{value(e2){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e2.toString(16));if(!t)return[0,0,0];let[n2]=t;n2.length===3&&(n2=[...n2].map(e3=>e3+e3).join(""));let r2=Number.parseInt(n2,16);return[r2>>16&255,r2>>8&255,r2&255]},enumerable:!1},hexToAnsi256:{value:e2=>u.rgbToAnsi256(...u.hexToRgb(e2)),enumerable:!1},ansi256ToAnsi:{value(e2){if(e2<8)return 30+e2;if(e2<16)return 90+(e2-8);let t,n2,r2;if(e2>=232)t=((e2-232)*10+8)/255,n2=t,r2=t;else{e2-=16;let i4=e2%36;t=Math.floor(e2/36)/5,n2=Math.floor(i4/6)/5,r2=i4%6/5}let i3=Math.max(t,n2,r2)*2;if(i3===0)return 30;let a2=30+(Math.round(r2)<<2|Math.round(n2)<<1|Math.round(t));return i3===2&&(a2+=60),a2},enumerable:!1},rgbToAnsi:{value:(e2,t,n2)=>u.ansi256ToAnsi(u.rgbToAnsi256(e2,t,n2)),enumerable:!1},hexToAnsi:{value:e2=>u.ansi256ToAnsi(u.hexToAnsi256(e2)),enumerable:!1}}),u}var o,s3,c2,l2,u,d,f2,p,m2,h,g,_=s(()=>{o=10,s3=(e=0)=>t=>`\x1B[${t+e}m`,c2=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,l2=(e=0)=>(t,n2,r2)=>`\x1B[${38+e};2;${t};${n2};${r2}m`,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},d=Object.keys(u.modifier),f2=Object.keys(u.color),p=Object.keys(u.bgColor),m2=[...f2,...p],h=a(),g=h});function v(e,t=globalThis.Deno?globalThis.Deno.args:n.argv){let r2=e.startsWith("-")?"":e.length===1?"-":"--",i3=t.indexOf(r2+e),a2=t.indexOf("--");return i3!==-1&&(a2===-1||i3<a2)}function y(){if("FORCE_COLOR"in C)return C.FORCE_COLOR==="true"?1:C.FORCE_COLOR==="false"?0:C.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(C.FORCE_COLOR,10),3)}function b(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function x(e,{streamIsTTY:t,sniffFlags:i3=!0}={}){let a2=y();a2!==void 0&&(w=a2);let o2=i3?w:a2;if(o2===0)return 0;if(i3){if(v("color=16m")||v("color=full")||v("color=truecolor"))return 3;if(v("color=256"))return 2}if("TF_BUILD"in C&&"AGENT_NAME"in C)return 1;if(e&&!t&&o2===void 0)return 0;let s5=o2||0;if(C.TERM==="dumb")return s5;if(n.platform==="win32"){let e2=r.release().split(".");return Number(e2[0])>=10&&Number(e2[2])>=10586?Number(e2[2])>=14931?3:2:1}if("CI"in C)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(e2=>e2 in C)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(e2=>e2 in C)||C.CI_NAME==="codeship"?1:s5;if("TEAMCITY_VERSION"in C)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(C.TEAMCITY_VERSION)?1:0;if(C.COLORTERM==="truecolor"||C.TERM==="xterm-kitty"||C.TERM==="xterm-ghostty"||C.TERM==="wezterm")return 3;if("TERM_PROGRAM"in C){let e2=Number.parseInt((C.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(C.TERM_PROGRAM){case"iTerm.app":return e2>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(C.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(C.TERM)||"COLORTERM"in C?1:s5}function S(e,t={}){return b(x(e,{streamIsTTY:e&&e.isTTY,...t}))}var C,w,T,E,D=s(()=>{({env:C}=n),v("no-color")||v("no-colors")||v("color=false")||v("color=never")?w=0:(v("color")||v("colors")||v("color=true")||v("color=always"))&&(w=1),T={stdout:S({isTTY:i2.isatty(1)}),stderr:S({isTTY:i2.isatty(2)})},E=T});function O(e,t,n2){let r2=e.indexOf(t);if(r2===-1)return e;let i3=t.length,a2=0,o2="";do o2+=e.slice(a2,r2)+t+n2,a2=r2+i3,r2=e.indexOf(t,a2);while(r2!==-1);return o2+=e.slice(a2),o2}function k(e,t,n2,r2){let i3=0,a2="";do{let o2=e[r2-1]==="\r";a2+=e.slice(i3,o2?r2-1:r2)+t+(o2?`\r
|
|
8
|
+
`:`
|
|
9
|
+
`)+n2,i3=r2+1,r2=e.indexOf(`
|
|
10
|
+
`,i3)}while(r2!==-1);return a2+=e.slice(i3),a2}var A=s(()=>{}),j=l({Chalk:()=>V,backgroundColorNames:()=>p,backgroundColors:()=>p,chalkStderr:()=>Y,colorNames:()=>m2,colors:()=>m2,default:()=>X,foregroundColorNames:()=>f2,foregroundColors:()=>f2,modifierNames:()=>d,modifiers:()=>d,supportsColor:()=>N,supportsColorStderr:()=>P});function M(e){return H(e)}var N,P,F,I,L,R,z,B,V,H,U,W,G,K,q,J,Y,X,Z=s(()=>{_(),D(),A(),{stdout:N,stderr:P}=E,F=Symbol("GENERATOR"),I=Symbol("STYLER"),L=Symbol("IS_EMPTY"),R=["ansi","ansi","ansi256","ansi16m"],z=Object.create(null),B=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n2=N?N.level:0;e.level=t.level===void 0?n2:t.level},V=class{constructor(e){return H(e)}},H=e=>{let t=(...e2)=>e2.join(" ");return B(t,e),Object.setPrototypeOf(t,M.prototype),t},Object.setPrototypeOf(M.prototype,Function.prototype);for(let[e,t]of Object.entries(g))z[e]={get(){let n2=K(this,G(t.open,t.close,this[I]),this[L]);return Object.defineProperty(this,e,{value:n2}),n2}};z.visible={get(){let e=K(this,this[I],!0);return Object.defineProperty(this,"visible",{value:e}),e}},U=(e,t,n2,...r2)=>e==="rgb"?t==="ansi16m"?g[n2].ansi16m(...r2):t==="ansi256"?g[n2].ansi256(g.rgbToAnsi256(...r2)):g[n2].ansi(g.rgbToAnsi(...r2)):e==="hex"?U("rgb",t,n2,...g.hexToRgb(...r2)):g[n2][e](...r2);for(let e of["rgb","hex","ansi256"]){z[e]={get(){let{level:t2}=this;return function(...n2){let r2=G(U(e,R[t2],"color",...n2),g.color.close,this[I]);return K(this,r2,this[L])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);z[t]={get(){let{level:t2}=this;return function(...n2){let r2=G(U(e,R[t2],"bgColor",...n2),g.bgColor.close,this[I]);return K(this,r2,this[L])}}}}W=Object.defineProperties(()=>{},{...z,level:{enumerable:!0,get(){return this[F].level},set(e){this[F].level=e}}}),G=(e,t,n2)=>{let r2,i3;return n2===void 0?(r2=e,i3=t):(r2=n2.openAll+e,i3=t+n2.closeAll),{open:e,close:t,openAll:r2,closeAll:i3,parent:n2}},K=(e,t,n2)=>{let r2=(...e2)=>q(r2,e2.length===1?""+e2[0]:e2.join(" "));return Object.setPrototypeOf(r2,W),r2[F]=e,r2[I]=t,r2[L]=n2,r2},q=(e,t)=>{if(e.level<=0||!t)return e[L]?"":t;let n2=e[I];if(n2===void 0)return t;let{openAll:r2,closeAll:i3}=n2;if(t.includes("\x1B"))for(;n2!==void 0;)t=O(t,n2.close,n2.open),n2=n2.parent;let a2=t.indexOf(`
|
|
11
|
+
`);return a2!==-1&&(t=k(t,i3,r2,a2)),r2+t+i3},Object.defineProperties(M.prototype,z),J=M(),Y=M({level:P?P.level:0}),X=J});var s4=c((e,t)=>{(function(){function e2(t2,n3,i3){if(!t2)return null;e2.caseSensitive||(t2=t2.toLowerCase());var a2=e2.threshold===null?null:e2.threshold*t2.length,o2=e2.thresholdAbsolute,s5=a2!==null&&o2!==null?Math.min(a2,o2):a2===null?o2===null?null:o2:a2,c4,l4,u3,d3,f4,p3=n3.length;for(f4=0;f4<p3;f4++)if(l4=n3[f4],i3&&(l4=l4[i3]),l4&&(u3=e2.caseSensitive?l4:l4.toLowerCase(),d3=r2(t2,u3,s5),(s5===null||d3<s5)&&(s5=d3,c4=i3&&e2.returnWinningObject?n3[f4]:l4,e2.returnFirstMatch)))return c4;return c4||e2.nullResultValue}e2.threshold=.4,e2.thresholdAbsolute=20,e2.caseSensitive=!1,e2.nullResultValue=null,e2.returnWinningObject=null,e2.returnFirstMatch=!1,t!==void 0&&t.exports?t.exports=e2:window.didYouMean=e2;var n2=2**32-1;function r2(e3,t2,r3){r3=r3||r3===0?r3:n2;var i3=e3.length,a2=t2.length;if(i3===0)return Math.min(r3+1,a2);if(a2===0)return Math.min(r3+1,i3);if(Math.abs(i3-a2)>r3)return r3+1;var o2=[],s5,c4,l4,u3,d3;for(s5=0;s5<=a2;s5++)o2[s5]=[s5];for(c4=0;c4<=i3;c4++)o2[0][c4]=c4;for(s5=1;s5<=a2;s5++){for(l4=n2,u3=1,s5>r3&&(u3=s5-r3),d3=a2+1,d3>r3+s5&&(d3=r3+s5),c4=1;c4<=i3;c4++)c4<u3||c4>d3?o2[s5][c4]=r3+1:t2.charAt(s5-1)===e3.charAt(c4-1)?o2[s5][c4]=o2[s5-1][c4-1]:o2[s5][c4]=Math.min(o2[s5-1][c4-1]+1,Math.min(o2[s5][c4-1]+1,o2[s5-1][c4]+1)),o2[s5][c4]<l4&&(l4=o2[s5][c4]);if(l4>r3)return r3+1}return o2[a2][i3]}})()}),c3=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ok=t,e.err=n2,e.isOk=r2,e.isErr=i3,e.safeAsync=a2;function t(e2){return{_tag:"ok",value:e2}}function n2(e2){return{_tag:"error",error:e2}}function r2(e2){return e2._tag==="ok"}function i3(e2){return e2._tag==="error"}async function a2(e2){try{return t(await e2)}catch(e3){return n2(e3)}}}),l3=c(t=>{var n2=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Exit=void 0;let a2=n2((Z(),f(j)));t.Exit=class{constructor(e){this.config=e}run(){this.output()(this.config.message),process.exit(this.config.exitCode)}dryRun(){let{into:e,message:t2,exitCode:n3}=this.config;return`${t2}
|
|
12
|
+
|
|
13
|
+
${a2.default.dim(`process exited with status ${n3} (${e})`)}`}output(){return this.config.into==="stderr"?console.error:console.log}}}),u2=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.findOption=t;function t(e2,t2){let n2=[];for(let r2 of e2){if(r2.type==="longOption"&&t2.longNames.includes(r2.key)){n2.push(r2);continue}if(r2.type==="shortOptions"&&t2.shortNames.length)for(let e3 of r2.options)t2.shortNames.includes(e3.key)&&n2.push(e3)}return n2}}),d2=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.identity=t;function t(){return{async from(e2){return e2}}}}),f3=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.identity=void 0,e.typeDef=n2,e.fromFn=r2,e.extendType=i3;var t=d2();Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return t.identity}});function n2(e2){return typeof e2=="function"?{}:e2}function r2(e2){return typeof e2=="function"?e2:e2.from}function i3(e2,t2){let{defaultValue:i4,onMissing:a2,from:o2,...s5}=e2,c4=n2(t2),l4=r2(t2);return{...s5,...c4,async from(t3){return await l4(await e2.from(t3))}}}}),p2=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.boolean=e.string=e.number=void 0,e.optional=n2,e.array=r2;let t=f3();e.number={async from(e2){let t2=Number.parseFloat(e2);if(Number.isNaN(t2))throw Error("Not a number");return t2},displayName:"number",description:"a number"},e.string={...(0,t.identity)(),description:"a string",displayName:"str"},e.boolean={...(0,t.identity)(),description:"a boolean",displayName:"true/false",defaultValue(){return!1}};function n2(e2){return{...e2,defaultValue(){}}}function r2(e2){return{...e2,async from(t2){return Promise.all(t2.map(t3=>e2.from(t3)))}}}}),m3=c(t=>{var n2=t&&t.__createBinding||(Object.create?function(e,t2,n3,r2){r2===void 0&&(r2=n3);var i3=Object.getOwnPropertyDescriptor(t2,n3);(!i3||("get"in i3?!t2.__esModule:i3.writable||i3.configurable))&&(i3={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e,r2,i3)}:function(e,t2,n3,r2){r2===void 0&&(r2=n3),e[r2]=t2[n3]}),a2=t&&t.__setModuleDefault||(Object.create?function(e,t2){Object.defineProperty(e,"default",{enumerable:!0,value:t2})}:function(e,t2){e.default=t2}),o2=t&&t.__importStar||function(){var e=function(t2){return e=Object.getOwnPropertyNames||function(e2){var t3=[];for(var n3 in e2)Object.prototype.hasOwnProperty.call(e2,n3)&&(t3[t3.length]=n3);return t3},e(t2)};return function(t2){if(t2&&t2.__esModule)return t2;var r2={};if(t2!=null)for(var i3=e(t2),o3=0;o3<i3.length;o3++)i3[o3]!=="default"&&n2(r2,t2,i3[o3]);return a2(r2,t2),r2}}(),s5=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=void 0,t.fullFlag=_3,t.flag=v3;let l4=s5((Z(),f(j))),d3=o2(c3()),m4=u2(),h3=f3(),g3=p2();t.boolean={async from(e){if(e==="true")return!0;if(e==="false")return!1;throw Error(`expected value to be either "true" or "false". got: "${e}"`)},displayName:"true/false",defaultValue:()=>!1};function _3(e){let n3=(0,h3.extendType)(t.boolean,e.type);return{description:e.description??e.type.description,helpTopics(){let t2=`--${e.long}`;e.short&&(t2+=`, -${e.short}`);let n4=[];if(e.env){let t3=process.env[e.env]===void 0?"":`=${l4.default.italic(process.env[e.env])}`;n4.push(`env: ${e.env}${t3}`)}if(e.defaultValue)try{let t3=e.defaultValue();e.defaultValueIsSerializable?n4.push(`default: ${l4.default.italic(t3)}`):n4.push("optional")}catch{}else if(e.type.defaultValue)try{let t3=e.type.defaultValue();e.type.defaultValueIsSerializable?n4.push(`default: ${l4.default.italic(t3)}`):n4.push("optional")}catch{}else(e.onMissing||e.type.onMissing)&&n4.push("optional");return[{category:"flags",usage:t2,defaults:n4,description:e.description??e.type.description??"self explanatory"}]},register(t2){t2.forceFlagLongNames.add(e.long),e.short&&t2.forceFlagShortNames.add(e.short)},async parse({nodes:t2,visitedNodes:r2}){let i3=(0,m4.findOption)(t2,{longNames:[e.long],shortNames:e.short?[e.short]:[]}).filter(e2=>!r2.has(e2));if(i3.forEach(e2=>r2.add(e2)),i3.length>1)return d3.err({errors:[{nodes:i3,message:`Expected 1 occurence, got ${i3.length}`}]});let a3=e.env?process.env[e.env]:void 0,o3=e.onMissing||e.type.onMissing,s6,c4="";if(i3.length===0&&a3!==void 0)s6=a3,c4=`env[${l4.default.italic(e.env)}]: `;else if(i3.length===0&&e.defaultValue)try{let t3=e.defaultValue();return d3.ok(t3)}catch(t3){let n4=`Default value not found for '--${e.long}': ${t3.message}`;return d3.err({errors:[{message:n4,nodes:[]}]})}else if(i3.length===0&&o3)try{let e2=await o3();return d3.ok(e2)}catch(t3){let n4=`Failed to get missing value for '--${e.long}': ${t3.message}`;return d3.err({errors:[{message:n4,nodes:[]}]})}else if(i3.length===0&&e.type.defaultValue)try{let t3=e.type.defaultValue();return d3.ok(t3)}catch(t3){let n4=`Default value not found for '--${e.long}': ${t3.message}`;return d3.err({errors:[{message:n4,nodes:[]}]})}else if(i3.length===1)s6=i3[0].value?.node.raw??"true";else return d3.err({errors:[{nodes:[],message:`No value provided for --${e.long}`}]});let u3=await d3.safeAsync(n3.from(s6));return d3.isErr(u3)?d3.err({errors:[{nodes:i3,message:c4+u3.error.message}]}):u3}}}function v3(e){return _3({type:g3.boolean,...e})}}),h2=c(e=>{var t=e&&e.__createBinding||(Object.create?function(e2,t2,n3,r3){r3===void 0&&(r3=n3);var i4=Object.getOwnPropertyDescriptor(t2,n3);(!i4||("get"in i4?!t2.__esModule:i4.writable||i4.configurable))&&(i4={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e2,r3,i4)}:function(e2,t2,n3,r3){r3===void 0&&(r3=n3),e2[r3]=t2[n3]}),n2=e&&e.__setModuleDefault||(Object.create?function(e2,t2){Object.defineProperty(e2,"default",{enumerable:!0,value:t2})}:function(e2,t2){e2.default=t2}),r2=e&&e.__importStar||function(){var e2=function(t2){return e2=Object.getOwnPropertyNames||function(e3){var t3=[];for(var n3 in e3)Object.prototype.hasOwnProperty.call(e3,n3)&&(t3[t3.length]=n3);return t3},e2(t2)};return function(r3){if(r3&&r3.__esModule)return r3;var i4={};if(r3!=null)for(var a3=e2(r3),o3=0;o3<a3.length;o3++)a3[o3]!=="default"&&t(i4,r3,a3[o3]);return n2(i4,r3),i4}}();Object.defineProperty(e,"__esModule",{value:!0}),e.versionFlag=e.helpFlag=void 0,e.handleCircuitBreaker=u3,e.createCircuitBreaker=d3;let i3=r2(c3()),a2=l3(),o2=m3(),s5=p2();e.helpFlag=(0,o2.flag)({long:"help",short:"h",type:s5.boolean,description:"show help"}),e.versionFlag=(0,o2.flag)({long:"version",short:"v",type:s5.boolean,description:"print the version"});function u3(e2,t2,n3){if(!i3.isErr(n3)){if(n3.value==="help"){let n4=t2.printHelp(e2);throw new a2.Exit({exitCode:0,message:n4,into:"stdout"})}if(n3.value==="version"){let e3=t2.version||"0.0.0";throw new a2.Exit({exitCode:0,message:e3,into:"stdout"})}}}function d3(t2){return{register(n3){e.helpFlag.register(n3),t2&&e.versionFlag.register(n3)},helpTopics(){let n3=e.helpFlag.helpTopics();return t2&&n3.push(...e.versionFlag.helpTopics()),n3},async parse(n3){let r3=await e.helpFlag.parse(n3),a3=t2?await e.versionFlag.parse(n3):void 0;if(i3.isErr(r3)||a3&&i3.isErr(a3)){let e2=i3.isErr(r3)?r3.error.errors:[],t3=a3&&i3.isErr(a3)?a3.error.errors:[];return i3.err({errors:[...e2,...t3]})}return r3.value?i3.ok("help"):a3?.value?i3.ok("version"):i3.err({errors:[{nodes:[],message:"Neither help nor version"}]})}}}}),g2=c(t=>{var n2=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.padNoAnsi=i3,t.groupBy=s5,t.entries=c4,t.enumerate=l4,t.flatMap=u3,t.flatten=d3;let r2=n2((s2(),f(i)));function i3(e,t2,n3){let i4=(0,r2.default)(e);if(t2<i4.length)return e;let a2=Array(t2-i4.length+1).join(" ");return n3==="end"?e+a2:a2+e}function s5(e,t2){let n3={};for(let r3 of e){let e2=t2(r3);n3[e2]=n3[e2]??[],n3[e2].push(r3)}return n3}function c4(e){return Object.entries(e)}function*l4(e){for(let t2=0;t2<e.length;t2++)yield[t2,e[t2]]}function u3(e,t2){let n3=[];for(let r3 of e)n3.push(...t2(r3));return n3}function d3(e){let t2=[];for(let n3 of e)t2.push(...n3);return t2}}),_2=c(t=>{var n2=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHelpFormatter=void 0,t.setDefaultHelpFormatter=c4,t.resetHelpFormatter=l4,t.getHelpFormatter=u3;let a2=n2((Z(),f(j))),o2=g2(),s5=null;function c4(e){s5=e}function l4(){s5=null}function u3(){return s5??t.defaultHelpFormatter}t.defaultHelpFormatter={formatCommand(e,t2){let n3=[],r2=e.path.length>0?e.path.join(" "):e.name;r2=a2.default.bold(r2),e.version&&(r2+=` ${a2.default.dim(e.version)}`),n3.push(r2),e.description&&n3.push(a2.default.dim("> ")+e.description);let i3=(0,o2.groupBy)(e.helpTopics,e2=>e2.category);for(let[e2,t3]of(0,o2.entries)(i3)){n3.push(""),n3.push(`${e2.toUpperCase()}:`);let r3=t3.reduce((e3,t4)=>Math.max(e3,t4.usage.length),0);for(let e3 of t3){let t4="";t4+=` ${(0,o2.padNoAnsi)(e3.usage,r3,"end")}`,t4+=" - ",t4+=e3.description;for(let n4 of e3.defaults)t4+=a2.default.dim(` [${n4}]`);n3.push(t4)}}if(e.examples&&e.examples.length>0){n3.push(""),n3.push("EXAMPLES:");for(let t3 of e.examples)n3.push(""),n3.push(` ${t3.description}`),n3.push(a2.default.dim(` $ ${t3.command}`))}return n3.join(`
|
|
14
|
+
`)},formatSubcommands(e,t2){let n3=[],r2=e.path.length>0?e.path.join(" "):e.name;n3.push(a2.default.bold(r2+a2.default.italic(" <subcommand>"))),e.description&&n3.push(a2.default.dim("> ")+e.description),n3.push(""),n3.push(`where ${a2.default.italic("<subcommand>")} can be one of:`),n3.push("");for(let t3 of e.commands){let e2=t3.description??"";if(e2=e2&&` - ${e2} `,t3.aliases?.length){let n4=t3.aliases.length===1?"alias":"aliases",r4=t3.aliases.join(", ");e2+=a2.default.dim(`[${n4}: ${r4}]`)}let r3=a2.default.dim("- ")+t3.name+e2;n3.push(r3.trim())}let i3=a2.default.yellow(`${r2} <subcommand> --help`);if(n3.push(""),n3.push(a2.default.dim(`For more help, try running \`${i3}\``)),e.examples&&e.examples.length>0){n3.push(""),n3.push("EXAMPLES:");for(let t3 of e.examples)n3.push(""),n3.push(` ${t3.description}`),n3.push(a2.default.dim(` $ ${t3.command}`))}return n3.join(`
|
|
15
|
+
`)}}}),v2=c(t=>{var n2=t&&t.__createBinding||(Object.create?function(e,t2,n3,r2){r2===void 0&&(r2=n3);var i3=Object.getOwnPropertyDescriptor(t2,n3);(!i3||("get"in i3?!t2.__esModule:i3.writable||i3.configurable))&&(i3={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e,r2,i3)}:function(e,t2,n3,r2){r2===void 0&&(r2=n3),e[r2]=t2[n3]}),a2=t&&t.__setModuleDefault||(Object.create?function(e,t2){Object.defineProperty(e,"default",{enumerable:!0,value:t2})}:function(e,t2){e.default=t2}),o2=t&&t.__importStar||function(){var e=function(t2){return e=Object.getOwnPropertyNames||function(e2){var t3=[];for(var n3 in e2)Object.prototype.hasOwnProperty.call(e2,n3)&&(t3[t3.length]=n3);return t3},e(t2)};return function(t2){if(t2&&t2.__esModule)return t2;var r2={};if(t2!=null)for(var i3=e(t2),o3=0;o3<i3.length;o3++)i3[o3]!=="default"&&n2(r2,t2,i3[o3]);return a2(r2,t2),r2}}(),s5=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.positional=m4;let l4=s5((Z(),f(j))),u3=o2(c3()),d3=p2();function f4(e){let t2=e.displayName??e.type.displayName??"arg";return{description:e.description??e.type.description,helpTopics(){let n3=[],r2=e.defaultValue??e.type.defaultValue;if(r2)try{let t3=r2();e.defaultValueIsSerializable??e.type.defaultValueIsSerializable?n3.push(`default: ${l4.default.italic(t3)}`):n3.push("optional")}catch{}return[{category:"arguments",usage:n3.length>0?`[${t2}]`:`<${t2}>`,description:e.description??e.type.description??"self explanatory",defaults:n3}]},register(e2){},async parse({nodes:n3,visitedNodes:r2}){let i3=n3.filter(e2=>e2.type==="positionalArgument"&&!r2.has(e2)),a3=e.defaultValue??e.type.defaultValue,o3=i3[0];if(!o3)return a3?u3.ok(a3()):u3.err({errors:[{nodes:[],message:`No value provided for ${t2}`}]});r2.add(o3);let s6=await u3.safeAsync(e.type.from(o3.raw));return u3.isErr(s6)?u3.err({errors:[{nodes:[o3],message:s6.error.message}]}):u3.ok(s6.value)}}}function m4(e){return f4({type:d3.string,...e})}}),y2=c(t=>{var n2=t&&t.__createBinding||(Object.create?function(e,t2,n3,r2){r2===void 0&&(r2=n3);var i3=Object.getOwnPropertyDescriptor(t2,n3);(!i3||("get"in i3?!t2.__esModule:i3.writable||i3.configurable))&&(i3={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e,r2,i3)}:function(e,t2,n3,r2){r2===void 0&&(r2=n3),e[r2]=t2[n3]}),a2=t&&t.__setModuleDefault||(Object.create?function(e,t2){Object.defineProperty(e,"default",{enumerable:!0,value:t2})}:function(e,t2){e.default=t2}),o2=t&&t.__importStar||function(){var e=function(t2){return e=Object.getOwnPropertyNames||function(e2){var t3=[];for(var n3 in e2)Object.prototype.hasOwnProperty.call(e2,n3)&&(t3[t3.length]=n3);return t3},e(t2)};return function(t2){if(t2&&t2.__esModule)return t2;var r2={};if(t2!=null)for(var i3=e(t2),o3=0;o3<i3.length;o3++)i3[o3]!=="default"&&n2(r2,t2,i3[o3]);return a2(r2,t2),r2}}(),l4=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.subcommands=y3;let u3=l4((Z(),f(j))),d3=l4(s4()),f4=o2(c3()),p3=h2(),m4=_2(),g3=v2();function y3(e){let t2=(0,p3.createCircuitBreaker)(!!e.version),n3=(0,g3.positional)({displayName:"subcommand",description:`one of ${Object.keys(e.cmds).join(", ")}`,type:{async from(t3){let n4=Object.entries(e.cmds).map(([e2,t4])=>({cmdName:e2,names:[e2,...t4.aliases??[]]})),r3=n4.find(e2=>e2.names.includes(t3));if(r3)return r3.cmdName;let i3="Not a valid subcommand name",a3=(0,d3.default)(t3,b3(n4,e2=>e2.names));if(a3){let e2=Array.isArray(a3)?a3[0]:a3;i3+=`
|
|
16
|
+
Did you mean ${u3.default.italic(e2)}?`}throw Error(i3)}}});function r2(t3){t3.hotPath?.length===0&&t3.hotPath.push(e.name),t3.nodes.some(e2=>!t3.visitedNodes.has(e2))||t3.nodes.push({type:"longOption",index:0,key:"help",raw:"--help"})}return{version:e.version,description:e.description,name:e.name,handler:t3=>e.cmds[t3.command].handler(t3.args),register(n4){for(let t3 of Object.values(e.cmds))t3.register(n4);t2.register(n4)},printHelp(t3){let n4={name:e.name,path:t3.hotPath??[e.name],version:e.version,description:e.description,commands:Object.entries(e.cmds).map(([e2,t4])=>({name:e2,description:t4.description,aliases:t4.aliases,helpTopics:t4.helpTopics?.call(t4)??[]})),examples:e.examples};return(0,m4.getHelpFormatter)().formatSubcommands(n4,t3)},async parse(t3){var i3;r2(t3);let a3=await n3.parse(t3);if(f4.isErr(a3))return f4.err({errors:a3.error.errors,partialValue:{}});(i3=t3.hotPath)==null||i3.push(a3.value);let o3=await e.cmds[a3.value].parse(t3);return f4.isErr(o3)?f4.err({errors:o3.error.errors,partialValue:{command:a3.value,args:o3.error.partialValue}}):f4.ok({args:o3.value,command:a3.value})},async run(i3){var a3;r2(i3);let o3=await n3.parse(i3);if(f4.isErr(o3)){let e2=await t2.parse(i3);return(0,p3.handleCircuitBreaker)(i3,this,e2),f4.err({...o3.error,partialValue:{}})}(a3=i3.hotPath)==null||a3.push(o3.value);let s5=await e.cmds[o3.value].run(i3);return f4.isOk(s5)?f4.ok({command:o3.value,value:s5.value}):f4.err({...s5.error,partialValue:{command:o3.value,value:s5.error.partialValue}})}}}function b3(e,t2){let n3=[];for(let r2 of e)n3.push(...t2(r2));return n3}}),b2=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.binary=t;function t(e2){return{...e2,run(t2){var n2;let r2=e2.name||t2.nodes[1].raw;return(n2=t2.hotPath)==null||n2.push(r2),t2.nodes.splice(0,1),t2.nodes[0].raw=r2,t2.visitedNodes.add(t2.nodes[0]),e2.run(t2)}}}}),x2=c(e=>{var t=e&&e.__createBinding||(Object.create?function(e2,t2,n3,r3){r3===void 0&&(r3=n3);var i4=Object.getOwnPropertyDescriptor(t2,n3);(!i4||("get"in i4?!t2.__esModule:i4.writable||i4.configurable))&&(i4={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e2,r3,i4)}:function(e2,t2,n3,r3){r3===void 0&&(r3=n3),e2[r3]=t2[n3]}),n2=e&&e.__setModuleDefault||(Object.create?function(e2,t2){Object.defineProperty(e2,"default",{enumerable:!0,value:t2})}:function(e2,t2){e2.default=t2}),r2=e&&e.__importStar||function(){var e2=function(t2){return e2=Object.getOwnPropertyNames||function(e3){var t3=[];for(var n3 in e3)Object.prototype.hasOwnProperty.call(e3,n3)&&(t3[t3.length]=n3);return t3},e2(t2)};return function(r3){if(r3&&r3.__esModule)return r3;var i4={};if(r3!=null)for(var a3=e2(r3),o3=0;o3<a3.length;o3++)a3[o3]!=="default"&&t(i4,r3,a3[o3]);return n2(i4,r3),i4}}();Object.defineProperty(e,"__esModule",{value:!0}),e.command=l4;let i3=r2(c3()),a2=h2(),o2=_2(),s5=g2();function l4(e2){let t2=(0,s5.entries)(e2.args),n3=(0,a2.createCircuitBreaker)(!!e2.version);return{name:e2.name,aliases:e2.aliases,handler:e2.handler,description:e2.description,version:e2.version,helpTopics(){return(0,s5.flatMap)(Object.values(e2.args).concat([n3]),e3=>e3.helpTopics?.call(e3)??[])},printHelp(t3){let n4={name:e2.name,path:t3.hotPath??[e2.name],version:e2.version,description:e2.description,aliases:e2.aliases,helpTopics:this.helpTopics(),examples:e2.examples};return(0,o2.getHelpFormatter)().formatCommand(n4,t3)},register(e3){var n4;for(let[,r3]of t2)(n4=r3.register)==null||n4.call(r3,e3)},async parse(n4){n4.hotPath?.length===0&&n4.hotPath.push(e2.name);let r3={},a3=[];for(let[e3,o4]of t2){let t3=await o4.parse(n4);i3.isErr(t3)?a3.push(...t3.error.errors):r3[e3]=t3.value}let o3=[];for(let e3 of n4.nodes)if(!n4.visitedNodes.has(e3)&&e3.type!=="forcePositional")if(e3.type==="shortOptions")for(let t3 of e3.options)n4.visitedNodes.has(t3)||o3.push(t3);else o3.push(e3);return o3.length>0&&a3.push({message:"Unknown arguments",nodes:o3}),a3.length>0?i3.err({errors:a3,partialValue:r3}):i3.ok(r3)},async run(e3){let t3=await n3.parse(e3);(0,a2.handleCircuitBreaker)(e3,this,t3);let r3=await this.parse(e3);return i3.isErr(r3)?i3.err(r3.error):i3.ok(await this.handler(r3.value))}}}}),S2=c(t=>{var n2=t&&t.__createBinding||(Object.create?function(e,t2,n3,r2){r2===void 0&&(r2=n3);var i3=Object.getOwnPropertyDescriptor(t2,n3);(!i3||("get"in i3?!t2.__esModule:i3.writable||i3.configurable))&&(i3={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e,r2,i3)}:function(e,t2,n3,r2){r2===void 0&&(r2=n3),e[r2]=t2[n3]}),a2=t&&t.__setModuleDefault||(Object.create?function(e,t2){Object.defineProperty(e,"default",{enumerable:!0,value:t2})}:function(e,t2){e.default=t2}),o2=t&&t.__importStar||function(){var e=function(t2){return e=Object.getOwnPropertyNames||function(e2){var t3=[];for(var n3 in e2)Object.prototype.hasOwnProperty.call(e2,n3)&&(t3[t3.length]=n3);return t3},e(t2)};return function(t2){if(t2&&t2.__esModule)return t2;var r2={};if(t2!=null)for(var i3=e(t2),o3=0;o3<i3.length;o3++)i3[o3]!=="default"&&n2(r2,t2,i3[o3]);return a2(r2,t2),r2}}(),s5=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.option=g3;let l4=s5((Z(),f(j))),d3=o2(c3()),f4=u2(),m4=p2();function h3(e){return{description:e.description??e.type.description,helpTopics(){let t2=e.type.displayName??"value",n3=`--${e.long}`;e.short&&(n3+=`, -${e.short}`),n3+=` <${t2}>`;let r2=[];if(e.env){let t3=process.env[e.env]===void 0?"":`=${l4.default.italic(process.env[e.env])}`;r2.push(`env: ${e.env}${t3}`)}if(e.defaultValue)try{let t3=e.defaultValue();e.defaultValueIsSerializable?r2.push(`default: ${l4.default.italic(t3)}`):r2.push("optional")}catch{}else if(e.type.defaultValue)try{let t3=e.type.defaultValue();e.type.defaultValueIsSerializable?r2.push(`default: ${l4.default.italic(t3)}`):r2.push("optional")}catch{}else(e.onMissing||e.type.onMissing)&&r2.push("optional");return[{category:"options",usage:n3,defaults:r2,description:e.description??e.type.description??"self explanatory"}]},register(t2){t2.forceOptionLongNames.add(e.long),e.short&&t2.forceOptionShortNames.add(e.short)},async parse({nodes:t2,visitedNodes:n3}){let r2=(0,f4.findOption)(t2,{longNames:[e.long],shortNames:e.short?[e.short]:[]}).filter(e2=>!n3.has(e2));if(r2.forEach(e2=>n3.add(e2)),r2.length>1){let e2={message:`Too many times provided. Expected 1, got: ${r2.length}`,nodes:r2};return d3.err({errors:[e2]})}let i3=e.env?process.env[e.env]:void 0,a3=e.defaultValue||e.type.defaultValue,o3=e.onMissing||e.type.onMissing,s6=r2[0],c4,u3="";if(s6?.value)c4=s6.value.node.raw;else if(i3!==void 0)c4=i3,u3=`env[${l4.default.italic(e.env)}]: `;else if(a3)try{let e2=a3();return d3.ok(e2)}catch(t3){let n4=`Default value not found for '--${e.long}': ${t3.message}`;return d3.err({errors:[{nodes:[],message:n4}]})}else if(o3)try{let e2=await o3();return d3.ok(e2)}catch(t3){let n4=`Failed to get missing value for '--${e.long}': ${t3.message}`;return d3.err({errors:[{nodes:[],message:n4}]})}else{let t3=s6?.type==="shortOption"?`-${s6?.key}`:`--${e.long}`;return d3.err({errors:[{nodes:r2,message:`No value provided for ${t3}`}]})}let p3=await d3.safeAsync(e.type.from(c4));return d3.isErr(p3)?d3.err({errors:[{nodes:r2,message:u3+p3.error.message}]}):d3.ok(p3.value)}}}function g3(e){return h3({type:m4.string,...e})}}),C2=c(t=>{var n2=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.errorBox=d3;let s5=n2((Z(),f(j))),c4=n2((s2(),f(i))),l4=g2();function u3(e,t2){let n3=[],r2;function i3(){r2===void 0&&(r2=(0,c4.default)(n3.join(" ")).length)}if(t2.nodes.length!==0)return e.forEach(e2=>{if(t2.nodes.includes(e2))return i3(),n3.push(s5.default.red(e2.raw));if(e2.type==="shortOptions"){let r3=!1,a2="";for(let n4 of e2.options)t2.nodes.includes(n4)?(a2+=s5.default.red(n4.raw),r3=!0):a2+=s5.default.dim(n4.raw);let o2=r3?s5.default.red("-"):s5.default.dim("-");return r3&&i3(),n3.push(o2+a2)}return n3.push(s5.default.dim(e2.raw))}),{colorized:n3.join(" "),errorIndex:r2??0}}function d3(e,t2,n3){let r2=[],i3=[];for(let n4 of t2){let t3=u3(e,n4);r2.push({message:n4.message,highlighted:t3})}let a2=1,o2=String(r2.length).length;i3.push(`${s5.default.red.bold("error: ")}found ${s5.default.yellow(r2.length)} error${r2.length>1?"s":""}`),i3.push(""),r2.filter(e2=>e2.highlighted).forEach(e2=>{if(!e2.highlighted)throw Error("WELP");let t3="".padStart(e2.highlighted.errorIndex);i3.push(` ${e2.highlighted.colorized}`);for(let[n4,r3]of(0,l4.enumerate)(e2.message.split(`
|
|
17
|
+
`))){let e3=n4===0?s5.default.bold("^"):" ",a3=s5.default.red(` ${t3} ${e3} ${r3}`);i3.push(a3)}i3.push(""),a2++});let c5=r2.filter(e2=>!e2.highlighted);a2>1&&(c5.length===1?i3.push("Along with the following error:"):c5.length>1&&i3.push("Along with the following errors:")),c5.forEach(({message:e2})=>{let t3=s5.default.red.bold(`${(0,l4.padNoAnsi)(a2.toString(),o2,"start")}.`),n4=e2.split(`
|
|
18
|
+
`);i3.push(` ${t3} ${s5.default.red(n4[0]??"")}`);for(let e3 of n4.slice(1))i3.push(` ${"".padStart(o2+1)} ${s5.default.red(e3)}`);a2++});let d4=s5.default.yellow(`${n3.join(" ")} --help`);return i3.push(""),i3.push(`${s5.default.red.bold("hint: ")}for more information, try '${d4}'`),i3.join(`
|
|
19
|
+
`)}}),w2=c(e=>{var n2=e&&e.__importDefault||function(e2){return e2&&e2.__esModule?e2:{default:e2}};Object.defineProperty(e,"__esModule",{value:!0}),e.parse=i3;let r2=(0,n2(m("debug")).default)("cmd-ts:parser");function i3(e2,t){if(r2.enabled){let e3={shortFlags:[...t.forceFlagShortNames],longFlags:[...t.forceFlagLongNames],shortOptions:[...t.forceOptionShortNames],longOptions:[...t.forceOptionLongNames]};r2("Registered:",JSON.stringify(e3))}let n3=[],i4=0,o2=!1;function s5(){return e2[i4++]}function c4(){return e2[i4]}for(;i4<e2.length;){let e3=s5();if(!e3)break;if(e3.type!=="argumentDivider"){if(o2){let t2=e3.raw,r3=s5();for(;r3&&r3?.type!=="argumentDivider";)t2+=r3.raw,r3=s5();n3.push({type:"positionalArgument",index:e3.index,raw:t2});continue}if(e3.type==="char"){let t2=e3.raw,r3=s5();for(;r3&&r3?.type!=="argumentDivider";)t2+=r3.raw,r3=s5();n3.push({type:"positionalArgument",index:e3.index,raw:t2});continue}if(e3.type==="longPrefix"){let r3=s5();if(r3?.type==="argumentDivider"||!r3){n3.push({type:"forcePositional",index:e3.index,raw:"--"}),o2=!0;continue}let i5="";for(;r3&&r3?.raw!=="="&&r3?.type!=="argumentDivider";)i5+=r3.raw,r3=s5();let l4=a2({key:i5,delimiterToken:r3,forceFlag:t.forceFlagLongNames,getToken:s5,peekToken:c4,forceOption:t.forceOptionLongNames}),u3=`--${i5}`;l4&&(u3+=l4.raw),n3.push({type:"longOption",key:i5,index:e3.index,raw:u3,value:l4});continue}if(e3.type==="shortPrefix"){let r3=[],i5=s5();if(i5?.type==="argumentDivider"||!i5){n3.push({type:"positionalArgument",index:e3.index,raw:"-"});continue}for(;i5&&i5?.type!=="argumentDivider"&&i5?.raw!=="=";)r3.push(i5),i5=s5();let o3=r3.pop(),l4=a2({key:o3.raw,delimiterToken:i5,forceFlag:t.forceFlagShortNames,forceOption:t.forceOptionShortNames,getToken:s5,peekToken:c4}),u3=[];for(let e4 of r3)u3.push({type:"shortOption",index:e4.index,raw:e4.raw,key:e4.raw});let d3=o3.raw;l4&&(d3+=l4.raw),u3.push({type:"shortOption",index:o3.index,raw:d3,value:l4,key:o3.raw});let f4=`-${r3.map(e4=>e4.raw).join("")}${o3.raw}`;l4&&(f4+=l4.raw);let p3={type:"shortOptions",index:e3.index,raw:f4,options:u3};n3.push(p3);continue}i4++}}if(r2.enabled){let e3=n3.map(e4=>({[e4.type]:e4.raw}));r2("Parsed items:",JSON.stringify(e3))}return n3}function a2(e2){let{getToken:t,delimiterToken:n3,forceFlag:r3,key:i4,forceOption:a3}=e2,o2=!a3.has(i4)&&(r3.has(i4)||e2.peekToken()?.type!=="char");if(!n3||n3.raw!=="="&&o2)return;let s5=n3.raw==="="?"=":" ",c4=n3.index,l4=t();if(!l4)return;let u3="",d3=l4.index;for(;l4&&l4?.type!=="argumentDivider";)u3+=l4.raw,l4=t();return{type:"optionValue",index:n3.index,delimiter:{type:"delimiter",raw:s5,index:c4},node:{type:"value",raw:u3,index:d3},raw:`${s5}${u3}`}}}),T2=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.tokenize=n2;let t=g2();function n2(e2){let n3=[],r2=0,i3=e3=>{n3.push(e3),r2+=e3.raw.length};for(let[n4,a2]of(0,t.enumerate)(e2)){let t2=[...a2];for(let e3=0;e3<t2.length;e3++)t2[e3]==="-"&&t2[e3+1]==="-"?(i3({type:"longPrefix",raw:"--",index:r2}),e3++):t2[e3]==="-"?i3({type:"shortPrefix",raw:"-",index:r2}):i3({type:"char",raw:t2[e3],index:r2});n4+1!==e2.length&&i3({type:"argumentDivider",raw:" ",index:r2})}return n3}}),E2=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.run=o2,e.runSafely=s5,e.dryRun=u3,e.parse=d3;let t=c3(),n2=l3(),r2=C2(),i3=w2(),a2=T2();async function o2(e2,n3){let r3=await s5(e2,n3);return(0,t.isErr)(r3)?r3.error.run():r3.value}async function s5(e2,i4){let a3=[],o3=f4(e2,i4);try{let i5=await e2.run({nodes:o3,visitedNodes:new Set,hotPath:a3});if((0,t.isErr)(i5))throw new n2.Exit({message:(0,r2.errorBox)(o3,i5.error.errors,a3),exitCode:1,into:"stderr"});return(0,t.ok)(i5.value)}catch(e3){if(e3 instanceof n2.Exit)return(0,t.err)(e3);throw e3}}async function u3(e2,n3){let r3=await s5(e2,n3);return(0,t.isErr)(r3)?(0,t.err)(r3.error.dryRun()):r3}function d3(e2,t2){let n3=[],r3=f4(e2,t2);return e2.parse({nodes:r3,visitedNodes:new Set,hotPath:n3})}function f4(e2,t2){let n3=new Set,r3=new Set,o3=new Set,s6={forceFlagShortNames:r3,forceFlagLongNames:n3,forceOptionShortNames:new Set,forceOptionLongNames:o3};e2.register(s6);let c4=(0,a2.tokenize)(t2);return(0,i3.parse)(c4,s6)}}),D2=c(e=>{var t=e&&e.__createBinding||(Object.create?function(e2,t2,n3,r3){r3===void 0&&(r3=n3);var i4=Object.getOwnPropertyDescriptor(t2,n3);(!i4||("get"in i4?!t2.__esModule:i4.writable||i4.configurable))&&(i4={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e2,r3,i4)}:function(e2,t2,n3,r3){r3===void 0&&(r3=n3),e2[r3]=t2[n3]}),n2=e&&e.__setModuleDefault||(Object.create?function(e2,t2){Object.defineProperty(e2,"default",{enumerable:!0,value:t2})}:function(e2,t2){e2.default=t2}),r2=e&&e.__importStar||function(){var e2=function(t2){return e2=Object.getOwnPropertyNames||function(e3){var t3=[];for(var n3 in e3)Object.prototype.hasOwnProperty.call(e3,n3)&&(t3[t3.length]=n3);return t3},e2(t2)};return function(r3){if(r3&&r3.__esModule)return r3;var i4={};if(r3!=null)for(var a3=e2(r3),o3=0;o3<a3.length;o3++)a3[o3]!=="default"&&t(i4,r3,a3[o3]);return n2(i4,r3),i4}}();Object.defineProperty(e,"__esModule",{value:!0}),e.restPositionals=s5;let i3=r2(c3()),a2=p2();function o2(e2){return{helpTopics(){return[{usage:`[...${e2.displayName??e2.type.displayName??"arg"}]`,category:"arguments",defaults:[],description:e2.description??e2.type.description??""}]},register(e3){},async parse({nodes:t2,visitedNodes:n3}){let r3=t2.filter(e3=>e3.type==="positionalArgument"&&!n3.has(e3)),a3=[],o3=[];for(let t3 of r3){n3.add(t3);let r4=await i3.safeAsync(e2.type.from(t3.raw));i3.isOk(r4)?a3.push(r4.value):o3.push({nodes:[t3],message:r4.error.message})}return o3.length>0?i3.err({errors:o3}):i3.ok(a3)}}}function s5(e2){return o2({type:a2.string,...e2})}}),O2=c(e=>{var t=e&&e.__createBinding||(Object.create?function(e2,t2,n3,r3){r3===void 0&&(r3=n3);var i4=Object.getOwnPropertyDescriptor(t2,n3);(!i4||("get"in i4?!t2.__esModule:i4.writable||i4.configurable))&&(i4={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e2,r3,i4)}:function(e2,t2,n3,r3){r3===void 0&&(r3=n3),e2[r3]=t2[n3]}),n2=e&&e.__setModuleDefault||(Object.create?function(e2,t2){Object.defineProperty(e2,"default",{enumerable:!0,value:t2})}:function(e2,t2){e2.default=t2}),r2=e&&e.__importStar||function(){var e2=function(t2){return e2=Object.getOwnPropertyNames||function(e3){var t3=[];for(var n3 in e3)Object.prototype.hasOwnProperty.call(e3,n3)&&(t3[t3.length]=n3);return t3},e2(t2)};return function(r3){if(r3&&r3.__esModule)return r3;var i4={};if(r3!=null)for(var a3=e2(r3),o3=0;o3<a3.length;o3++)a3[o3]!=="default"&&t(i4,r3,a3[o3]);return n2(i4,r3),i4}}();Object.defineProperty(e,"__esModule",{value:!0}),e.multiflag=s5;let i3=r2(c3()),a2=m3(),o2=u2();function s5(e2){return{helpTopics(){let t2=`--${e2.long}`;return e2.short&&(t2+=`, -${e2.short}`),[{category:"flags",usage:t2,defaults:[],description:e2.description??"self explanatory"}]},register(t2){t2.forceFlagLongNames.add(e2.long),e2.short&&t2.forceFlagShortNames.add(e2.short)},async parse({nodes:t2,visitedNodes:n3}){let r3=(0,o2.findOption)(t2,{longNames:[e2.long],shortNames:e2.short?[e2.short]:[]}).filter(e3=>!n3.has(e3));for(let e3 of r3)n3.add(e3);let s6=[],c4=[];for(let e3 of r3){let t3=await i3.safeAsync(a2.boolean.from(e3.value?.node.raw??"true"));i3.isErr(t3)?c4.push({nodes:[e3],message:t3.error.message}):s6.push(t3.value)}if(c4.length>0)return i3.err({errors:c4});let l4=await i3.safeAsync(e2.type.from(s6));return i3.isErr(l4)?i3.err({errors:[{nodes:r3,message:l4.error.message}]}):l4}}}}),k2=c(t=>{var n2=t&&t.__createBinding||(Object.create?function(e,t2,n3,r2){r2===void 0&&(r2=n3);var i3=Object.getOwnPropertyDescriptor(t2,n3);(!i3||("get"in i3?!t2.__esModule:i3.writable||i3.configurable))&&(i3={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e,r2,i3)}:function(e,t2,n3,r2){r2===void 0&&(r2=n3),e[r2]=t2[n3]}),a2=t&&t.__setModuleDefault||(Object.create?function(e,t2){Object.defineProperty(e,"default",{enumerable:!0,value:t2})}:function(e,t2){e.default=t2}),o2=t&&t.__importStar||function(){var e=function(t2){return e=Object.getOwnPropertyNames||function(e2){var t3=[];for(var n3 in e2)Object.prototype.hasOwnProperty.call(e2,n3)&&(t3[t3.length]=n3);return t3},e(t2)};return function(t2){if(t2&&t2.__esModule)return t2;var r2={};if(t2!=null)for(var i3=e(t2),o3=0;o3<i3.length;o3++)i3[o3]!=="default"&&n2(r2,t2,i3[o3]);return a2(r2,t2),r2}}(),s5=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.multioption=p3;let l4=s5((Z(),f(j))),d3=o2(c3()),f4=u2();function p3(e){return{helpTopics(){let t2=e.type.displayName??"value",n3=`--${e.long} <${t2}>`;e.short&&(n3+=`, -${e.short}=<${t2}>`);let r2=[];if(e.defaultValue)try{let t3=e.defaultValue();e.defaultValueIsSerializable?r2.push(`default: ${l4.default.italic(t3)}`):r2.push("[...optional]")}catch{}else if(e.type.defaultValue)try{let t3=e.type.defaultValue();e.type.defaultValueIsSerializable?r2.push(`default: ${l4.default.italic(t3)}`):r2.push("[...optional]")}catch{}else(e.onMissing||e.type.onMissing)&&r2.push("[...optional]");return[{category:"options",usage:n3,defaults:r2,description:e.description??"self explanatory"}]},register(t2){t2.forceOptionLongNames.add(e.long),e.short&&t2.forceOptionShortNames.add(e.short)},async parse({nodes:t2,visitedNodes:n3}){let r2=(0,f4.findOption)(t2,{longNames:[e.long],shortNames:e.short?[e.short]:[]}).filter(e2=>!n3.has(e2)),i3=e.defaultValue||e.type.defaultValue,a3=e.onMissing||e.type.onMissing;if(r2.length===0&&i3)try{let e2=i3();return d3.ok(e2)}catch(t3){let n4=`Failed to resolve default value for '--${e.long}': ${t3.message}`;return d3.err({errors:[{nodes:[],message:n4}]})}else if(r2.length===0&&a3)try{let e2=await a3();return d3.ok(e2)}catch(t3){let n4=`Failed to get missing value for '--${e.long}': ${t3.message}`;return d3.err({errors:[{nodes:[],message:n4}]})}for(let e2 of r2)n3.add(e2);let o3=[],s6=[],c4=[];for(let e2 of r2){let t3=e2.value?.node.raw;if(t3===void 0){c4.push(e2);continue}o3.push(t3)}if(c4.length>0&&s6.push({nodes:c4,message:"Expected to get a value, found a flag"}),s6.length>0)return d3.err({errors:s6});let l5=await d3.safeAsync(e.type.from(o3));return d3.isErr(l5)?d3.err({errors:[{nodes:r2,message:l5.error.message}]}):l5}}}}),A2=c(e=>{var t=e&&e.__createBinding||(Object.create?function(e2,t2,n3,r3){r3===void 0&&(r3=n3);var i4=Object.getOwnPropertyDescriptor(t2,n3);(!i4||("get"in i4?!t2.__esModule:i4.writable||i4.configurable))&&(i4={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e2,r3,i4)}:function(e2,t2,n3,r3){r3===void 0&&(r3=n3),e2[r3]=t2[n3]}),n2=e&&e.__setModuleDefault||(Object.create?function(e2,t2){Object.defineProperty(e2,"default",{enumerable:!0,value:t2})}:function(e2,t2){e2.default=t2}),r2=e&&e.__importStar||function(){var e2=function(t2){return e2=Object.getOwnPropertyNames||function(e3){var t3=[];for(var n3 in e3)Object.prototype.hasOwnProperty.call(e3,n3)&&(t3[t3.length]=n3);return t3},e2(t2)};return function(r3){if(r3&&r3.__esModule)return r3;var i4={};if(r3!=null)for(var a3=e2(r3),o3=0;o3<a3.length;o3++)a3[o3]!=="default"&&t(i4,r3,a3[o3]);return n2(i4,r3),i4}}();Object.defineProperty(e,"__esModule",{value:!0}),e.union=o2;let i3=r2(c3()),a2=f3();function o2(e2,{combineErrors:t2=e3=>e3.join(`
|
|
20
|
+
`)}={}){return{...Object.assign({},...e2.map(e3=>(0,a2.typeDef)(e3))),async from(n3){let r3=[];for(let t3 of e2){let e3=await i3.safeAsync((0,a2.fromFn)(t3)(n3));if(i3.isOk(e3))return e3.value;r3.push(e3.error.message)}throw Error(t2(r3))}}}}),j2=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.oneOf=r2;let n2=m("node:util");function r2(e2){let t=e2.map(e3=>(0,n2.inspect)(e3)).join(", ");return{async from(n3){let r3=e2.find(e3=>e3===n3);if(!r3)throw Error(`Invalid value '${n3}'. Expected one of: ${t}`);return r3},description:`One of ${t}`}}}),M2=c(e=>{var t=e&&e.__createBinding||(Object.create?function(e2,t2,n3,r3){r3===void 0&&(r3=n3);var i4=Object.getOwnPropertyDescriptor(t2,n3);(!i4||("get"in i4?!t2.__esModule:i4.writable||i4.configurable))&&(i4={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e2,r3,i4)}:function(e2,t2,n3,r3){r3===void 0&&(r3=n3),e2[r3]=t2[n3]}),n2=e&&e.__setModuleDefault||(Object.create?function(e2,t2){Object.defineProperty(e2,"default",{enumerable:!0,value:t2})}:function(e2,t2){e2.default=t2}),r2=e&&e.__importStar||function(){var e2=function(t2){return e2=Object.getOwnPropertyNames||function(e3){var t3=[];for(var n3 in e3)Object.prototype.hasOwnProperty.call(e3,n3)&&(t3[t3.length]=n3);return t3},e2(t2)};return function(r3){if(r3&&r3.__esModule)return r3;var i4={};if(r3!=null)for(var a3=e2(r3),o3=0;o3<a3.length;o3++)a3[o3]!=="default"&&t(i4,r3,a3[o3]);return n2(i4,r3),i4}}();Object.defineProperty(e,"__esModule",{value:!0}),e.rest=a2;let i3=r2(c3());function a2(e2){return{helpTopics(){return[{usage:`[...${e2?.displayName??"arg"}]`,category:"arguments",defaults:[],description:e2?.description??"catches the rest of the values"}]},register(){},async parse(e3){let t2=[...e3.visitedNodes].map(t3=>e3.nodes.indexOf(t3)).filter(e4=>e4>-1),n3=[],r3=Math.max(-1,...t2),a3=e3.nodes.slice(r3+1);for(let t3 of a3)switch(t3.type){case"positionalArgument":n3.push(t3.raw),e3.visitedNodes.add(t3);break;case"longOption":n3.push(...o2(t3)),e3.visitedNodes.add(t3);break;case"shortOption":n3.push(...o2(t3)),e3.visitedNodes.add(t3);break;case"forcePositional":n3.push(t3.raw),e3.visitedNodes.add(t3);break;case"shortOptions":{let r4=t3.options.at(-1);e3.visitedNodes.add(t3),n3.push(...o2({...t3,value:r4?.value}));break}}return i3.ok(n3)}}}function o2(e2){return e2.value&&e2.value.delimiter.raw===" "?[e2.raw.slice(0,e2.value.index-e2.index),e2.value.node.raw]:[e2.raw]}}),N2=c(e=>{var t=e&&e.__createBinding||(Object.create?function(e2,t2,n3,r3){r3===void 0&&(r3=n3);var i4=Object.getOwnPropertyDescriptor(t2,n3);(!i4||("get"in i4?!t2.__esModule:i4.writable||i4.configurable))&&(i4={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e2,r3,i4)}:function(e2,t2,n3,r3){r3===void 0&&(r3=n3),e2[r3]=t2[n3]}),n2=e&&e.__exportStar||function(e2,n3){for(var r3 in e2)r3!=="default"&&!Object.prototype.hasOwnProperty.call(n3,r3)&&t(n3,e2,r3)};Object.defineProperty(e,"__esModule",{value:!0}),e.rest=e.oneOf=e.union=e.multioption=e.multiflag=e.restPositionals=e.parse=e.run=e.runSafely=e.dryRun=e.positional=e.option=e.defaultHelpFormatter=e.resetHelpFormatter=e.setDefaultHelpFormatter=e.flag=e.command=e.binary=e.extendType=e.subcommands=void 0;var r2=y2();Object.defineProperty(e,"subcommands",{enumerable:!0,get:function(){return r2.subcommands}});var i3=f3();Object.defineProperty(e,"extendType",{enumerable:!0,get:function(){return i3.extendType}}),n2(p2(),e);var a2=b2();Object.defineProperty(e,"binary",{enumerable:!0,get:function(){return a2.binary}});var o2=x2();Object.defineProperty(e,"command",{enumerable:!0,get:function(){return o2.command}});var s5=m3();Object.defineProperty(e,"flag",{enumerable:!0,get:function(){return s5.flag}});var c4=_2();Object.defineProperty(e,"setDefaultHelpFormatter",{enumerable:!0,get:function(){return c4.setDefaultHelpFormatter}}),Object.defineProperty(e,"resetHelpFormatter",{enumerable:!0,get:function(){return c4.resetHelpFormatter}}),Object.defineProperty(e,"defaultHelpFormatter",{enumerable:!0,get:function(){return c4.defaultHelpFormatter}});var l4=S2();Object.defineProperty(e,"option",{enumerable:!0,get:function(){return l4.option}});var u3=v2();Object.defineProperty(e,"positional",{enumerable:!0,get:function(){return u3.positional}});var d3=E2();Object.defineProperty(e,"dryRun",{enumerable:!0,get:function(){return d3.dryRun}}),Object.defineProperty(e,"runSafely",{enumerable:!0,get:function(){return d3.runSafely}}),Object.defineProperty(e,"run",{enumerable:!0,get:function(){return d3.run}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return d3.parse}});var h3=D2();Object.defineProperty(e,"restPositionals",{enumerable:!0,get:function(){return h3.restPositionals}});var g3=O2();Object.defineProperty(e,"multiflag",{enumerable:!0,get:function(){return g3.multiflag}});var C3=k2();Object.defineProperty(e,"multioption",{enumerable:!0,get:function(){return C3.multioption}});var w3=A2();Object.defineProperty(e,"union",{enumerable:!0,get:function(){return w3.union}});var T3=j2();Object.defineProperty(e,"oneOf",{enumerable:!0,get:function(){return T3.oneOf}});var N3=M2();Object.defineProperty(e,"rest",{enumerable:!0,get:function(){return N3.rest}})});export{X,Z,N2 as N};
|
|
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{packageName}from"./chunk-
|
|
7
|
+
import{packageName}from"./chunk-EFGZK6OY.js";import{environmentOption,formatOption,jsonOption,projectOption}from"./chunk-DORCX7UB.js";var RULE_ENVIRONMENTS=["any","preview","production"],ruleEnvironmentOption={...environmentOption,description:"Environment the rule applies to (required): production, preview, or any"},lsSubcommand={name:"ls",aliases:["list"],description:"List the Vercel tracing sampling rules for a project",arguments:[],options:[formatOption,jsonOption,projectOption],examples:[{name:"List the sampling rules for the linked project",value:`${packageName} traces config ls`},{name:"List the sampling rules as JSON",value:`${packageName} traces config ls --json`}]},setSubcommand={name:"set",aliases:[],description:"Enable Vercel tracing and add or replace one sampling rule. The rate is a whole percentage from 1 to 100.",arguments:[{name:"rate",required:!0},{name:"requestPath",required:!1}],options:[ruleEnvironmentOption,formatOption,jsonOption,projectOption],examples:[{name:"Trace a quarter of production traffic",value:`${packageName} traces config set 25 --environment production`},{name:"Trace every preview request to one path prefix",value:`${packageName} traces config set 100 /api --environment preview`},{name:"Trace one percent of traffic in every environment",value:`${packageName} traces config set 1 --environment any`}]},rmSubcommand={descriptionTone:"normal",name:"remove",aliases:["rm","delete"],description:"Remove Vercel tracing sampling rules. Without a path prefix, every rule for the environment is removed. Removing the final rule disables tracing.",arguments:[{name:"requestPath",required:!1}],options:[ruleEnvironmentOption,{name:"default",shorthand:null,type:Boolean,deprecated:!1,description:"Remove only the rule that has no path prefix, keeping the per-path rules"},formatOption,jsonOption,projectOption],examples:[{name:"Remove one rule by environment and path prefix",value:`${packageName} traces config remove /api --environment production`},{name:"Remove every rule for production",value:`${packageName} traces config remove --environment production`},{name:"Remove only the production rule that covers all paths",value:`${packageName} traces config remove --environment production --default`}]},tracesConfigCommand={name:"config",aliases:[],description:"Manage Vercel tracing sampling rules for a project.",arguments:[],subcommands:[lsSubcommand,setSubcommand,rmSubcommand],options:[],examples:[{name:"List the sampling rules for the linked project",value:`${packageName} traces config ls`},{name:"Trace a quarter of production traffic",value:`${packageName} traces config set 25 --environment production`},{name:"Remove every rule for production",value:`${packageName} traces config remove --environment production`}]};export{RULE_ENVIRONMENTS,lsSubcommand,setSubcommand,rmSubcommand,tracesConfigCommand};
|