@vercel/cli-support 65.15.0 → 65.16.0-snapshot-579f9b2619d8
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-WGP6UVQN.js → add-7QN52B57.js} +1 -1
- package/dist/chunks/{add-6T3KGMEH.js → add-F6E3N6EL.js} +1 -1
- package/dist/chunks/{add-LULORXI7.js → add-MC6ZRFQX.js} +1 -1
- package/dist/chunks/{alerts-IFUWVZU4.js → alerts-LVINUFWK.js} +1 -1
- package/dist/chunks/{build-H5WTYJH4.js → build-IU3F645C.js} +1 -1
- package/dist/chunks/{chunk-X5LOHZT5.js → chunk-26NZS3ME.js} +1 -1
- package/dist/chunks/{chunk-HFVCKK5P.js → chunk-2DP7BD4A.js} +1 -1
- package/dist/chunks/{chunk-6737KAJP.js → chunk-2GBU6ULJ.js} +1 -1
- package/dist/chunks/{chunk-QEZ6KFSY.js → chunk-2QAXUK5X.js} +1 -1
- package/dist/chunks/{chunk-DETGGKXT.js → chunk-2R3K7FYA.js} +1 -1
- package/dist/chunks/{chunk-UZXQY5X5.js → chunk-2Y5X7IPM.js} +1 -1
- package/dist/chunks/{chunk-5DEAFZBT.js → chunk-33P2H5LU.js} +1 -1
- package/dist/chunks/{chunk-KVDSSSSF.js → chunk-34RN7PH7.js} +1 -1
- package/dist/chunks/{chunk-PL6TMRQZ.js → chunk-3FXGAG5H.js} +1 -1
- package/dist/chunks/{chunk-XDBRJ7H3.js → chunk-4K2IT6C4.js} +1 -1
- package/dist/chunks/{chunk-P333Z5AT.js → chunk-5MZ7JZY7.js} +1 -1
- package/dist/chunks/{chunk-3JFPC5MK.js → chunk-5S6VTCXQ.js} +1 -1
- package/dist/chunks/{chunk-W25UARQV.js → chunk-5ZCSFPWG.js} +1 -1
- package/dist/chunks/{chunk-6MFLATDD.js → chunk-5ZJ6UU6P.js} +1 -1
- package/dist/chunks/{chunk-ODM3YKPR.js → chunk-62EY3VOP.js} +1 -1
- package/dist/chunks/{chunk-4TD2KH46.js → chunk-63FPHKCJ.js} +1 -1
- package/dist/chunks/{chunk-SP6E7PHW.js → chunk-6CJFPT4F.js} +1 -1
- package/dist/chunks/{chunk-2LOA3LC6.js → chunk-6FYPSSL4.js} +1 -1
- package/dist/chunks/{chunk-BYJQPGPK.js → chunk-6IT3XN6I.js} +1 -1
- package/dist/chunks/chunk-6IZ2TU4N.js +12 -0
- package/dist/chunks/{chunk-2OQD274E.js → chunk-6UI3ZNHM.js} +7 -7
- package/dist/chunks/{chunk-UXRRYYSD.js → chunk-7HLAWGY2.js} +1 -1
- package/dist/chunks/{chunk-6C5KUHQP.js → chunk-7KCRYDGK.js} +1 -1
- package/dist/chunks/{chunk-SQ76HIB6.js → chunk-AB4WXRCO.js} +1 -1
- package/dist/chunks/{chunk-HVZ5OOOP.js → chunk-AFQLIDZC.js} +1 -1
- package/dist/chunks/{chunk-HVQEYQWF.js → chunk-AXKC5J52.js} +1 -1
- package/dist/chunks/{chunk-3EHJOZJB.js → chunk-BBQ4XOTI.js} +1 -1
- package/dist/chunks/{chunk-HVBSYQDN.js → chunk-BKHJUBCA.js} +1 -1
- package/dist/chunks/{chunk-JVGENO2R.js → chunk-BMIYC2MH.js} +1 -1
- package/dist/chunks/{chunk-26EJ4FM6.js → chunk-BPIGFKNN.js} +1 -1
- package/dist/chunks/{chunk-VBGL7MZR.js → chunk-BPM6HU7K.js} +1 -1
- package/dist/chunks/{chunk-CJ6XPDSS.js → chunk-BPQUJWX5.js} +1 -1
- package/dist/chunks/{chunk-YE245S4O.js → chunk-C35SG42R.js} +1 -1
- package/dist/chunks/{chunk-XHPIQGUS.js → chunk-CBEMES2R.js} +1 -1
- package/dist/chunks/{chunk-JZ4NMX3Z.js → chunk-CC36LXTT.js} +1 -1
- package/dist/chunks/chunk-CFJBDBYH.js +7 -0
- package/dist/chunks/{chunk-JQHS743O.js → chunk-CM7I3U5I.js} +1 -1
- package/dist/chunks/{chunk-MSJA64LL.js → chunk-D44WCAOX.js} +1 -1
- package/dist/chunks/chunk-D66BF5UU.js +7 -0
- package/dist/chunks/{chunk-2V6UURUN.js → chunk-DDPH26ZO.js} +1 -1
- package/dist/chunks/{chunk-PRNTZKYB.js → chunk-DJIBJVEQ.js} +1 -1
- package/dist/chunks/{chunk-T7XSLFZ6.js → chunk-DMPINPWB.js} +1 -1
- package/dist/chunks/{chunk-Z5FNUSWW.js → chunk-DOBV3XLO.js} +1 -1
- package/dist/chunks/{chunk-7GSB5AQE.js → chunk-DSHWUXYY.js} +1 -1
- package/dist/chunks/{chunk-OFZUWHZW.js → chunk-DTUEHPME.js} +1 -1
- package/dist/chunks/{chunk-WKSXBH7X.js → chunk-DY643UZ7.js} +2 -1
- package/dist/chunks/{chunk-O3DAPRJ3.js → chunk-EJLYDHT7.js} +1 -1
- package/dist/chunks/{chunk-4OO6TXBM.js → chunk-ELM2KPYX.js} +1 -1
- package/dist/chunks/{chunk-7OJMANDL.js → chunk-EVZCOEPD.js} +1 -1
- package/dist/chunks/{chunk-XEISEISC.js → chunk-FBLGDSCA.js} +6 -6
- package/dist/chunks/{chunk-U3J3SJJ5.js → chunk-FZ5XTMGO.js} +2 -2
- package/dist/chunks/{chunk-AR3ADTVY.js → chunk-GDOKUFG3.js} +1 -1
- package/dist/chunks/chunk-GLCSWIB4.js +7 -0
- package/dist/chunks/{chunk-RWK4YZLO.js → chunk-GV4XVRPN.js} +1 -1
- package/dist/chunks/{chunk-MTJLZGL5.js → chunk-HQGD4PEO.js} +1 -1
- package/dist/chunks/{chunk-UDKIA6WN.js → chunk-HXEXHXD4.js} +1 -1
- package/dist/chunks/{chunk-KAYGNWHX.js → chunk-I4QLOG2Z.js} +1 -1
- package/dist/chunks/{chunk-W45KFKUW.js → chunk-IG5ACFU6.js} +1 -1
- package/dist/chunks/{chunk-5L566FZB.js → chunk-IIK6GUVI.js} +1 -1
- package/dist/chunks/chunk-IJHT5BPS.js +12 -0
- package/dist/chunks/{chunk-3JM374FP.js → chunk-INICCBM4.js} +1 -1
- package/dist/chunks/{chunk-O3I6OKIE.js → chunk-IOQZ7HZM.js} +1 -1
- package/dist/chunks/chunk-IVZF2PMV.js +11 -0
- package/dist/chunks/chunk-JNA6LHLT.js +24 -0
- package/dist/chunks/{chunk-ATUJAOUR.js → chunk-JNXPL4Y4.js} +1 -1
- package/dist/chunks/{chunk-XF3327G6.js → chunk-JP2TYFG4.js} +1 -1
- package/dist/chunks/chunk-JWKFVECK.js +7 -0
- package/dist/chunks/{chunk-7O2W7ILO.js → chunk-K2IVJE2G.js} +1 -1
- package/dist/chunks/{chunk-X5I33MJS.js → chunk-K7ZPHS55.js} +1 -1
- package/dist/chunks/{chunk-ONXOTUO6.js → chunk-KBON4ISC.js} +1 -1
- package/dist/chunks/{chunk-2W4ND5DH.js → chunk-KEGZOZE5.js} +1 -1
- package/dist/chunks/{chunk-PSPPENIK.js → chunk-KLII7LME.js} +1 -1
- package/dist/chunks/{chunk-Z2HYNJLC.js → chunk-KNVMEDGC.js} +1 -1
- package/dist/chunks/{chunk-GTOSMVDY.js → chunk-L7MSHLII.js} +1 -1
- package/dist/chunks/{chunk-VTZH5DW3.js → chunk-LAFP5A4S.js} +1 -1
- package/dist/chunks/{chunk-NHB43235.js → chunk-LYL26S3N.js} +1 -1
- package/dist/chunks/{chunk-IDHH6QTJ.js → chunk-LYRSA2EI.js} +13 -3
- package/dist/chunks/{chunk-554TYJKV.js → chunk-M2J4MIKF.js} +1 -1
- package/dist/chunks/{chunk-4TAAEP5J.js → chunk-MCKKADC2.js} +1 -1
- package/dist/chunks/{chunk-TDHFWPK5.js → chunk-MKXE2IE4.js} +1 -1
- package/dist/chunks/{chunk-SPV6M2GS.js → chunk-MNRHYWPJ.js} +1 -1
- package/dist/chunks/{chunk-6TYBUUO4.js → chunk-MXAXD5DQ.js} +1 -1
- package/dist/chunks/{chunk-A7YTYTWM.js → chunk-MXN736AL.js} +1 -1
- package/dist/chunks/{chunk-EZ7CJF5G.js → chunk-N5MSOEHD.js} +1 -1
- package/dist/chunks/{chunk-5THEFDOZ.js → chunk-NJFTAKDY.js} +1 -1
- package/dist/chunks/{chunk-7RAGU3PA.js → chunk-NPROMJAU.js} +1 -1
- package/dist/chunks/{chunk-O47OWLP7.js → chunk-OKRQ2XLR.js} +1 -1
- package/dist/chunks/chunk-PDPX7546.js +12 -0
- package/dist/chunks/{chunk-VHRQW57O.js → chunk-PDUIYEMP.js} +1 -1
- package/dist/chunks/{chunk-OKKG2FUS.js → chunk-PIDEH4SJ.js} +1 -1
- package/dist/chunks/{chunk-QFCYM4RS.js → chunk-PY4WWD6Z.js} +1 -1
- package/dist/chunks/{chunk-B6WYIUOW.js → chunk-Q2PXJ55R.js} +1 -1
- package/dist/chunks/{chunk-LT3Z7YQX.js → chunk-QM2VCL36.js} +1 -1
- package/dist/chunks/{chunk-UZQJQXGJ.js → chunk-QOLGACFD.js} +1 -1
- package/dist/chunks/{chunk-N7NTAYBS.js → chunk-R5EPF72H.js} +1 -1
- package/dist/chunks/{chunk-KRZBZ7PB.js → chunk-RDO7G5LL.js} +1 -1
- package/dist/chunks/{chunk-U6P3UM3Z.js → chunk-RUGX7ONC.js} +1 -1
- package/dist/chunks/{chunk-YVIAN4VL.js → chunk-SCXMZVZ4.js} +1 -1
- package/dist/chunks/{chunk-A3C67PNC.js → chunk-SKYIWHB5.js} +1 -1
- package/dist/chunks/{chunk-HR66URIC.js → chunk-SYJXONEV.js} +1 -1
- package/dist/chunks/chunk-T3SXUNB7.js +21 -0
- package/dist/chunks/{chunk-TA4HB2ZR.js → chunk-TKF4SYCC.js} +1 -1
- package/dist/chunks/{chunk-YEQ7BBOS.js → chunk-TWHV3M4I.js} +1 -1
- package/dist/chunks/{chunk-ABSFPYM4.js → chunk-UDZJCD5W.js} +1 -1
- package/dist/chunks/{chunk-C35XH6YM.js → chunk-UJKEX77T.js} +1 -1
- package/dist/chunks/chunk-UQZZX2J7.js +7 -0
- package/dist/chunks/{chunk-6Q2XEYCJ.js → chunk-VHSAI6FS.js} +1 -1
- package/dist/chunks/chunk-VRYJNBOR.js +7 -0
- package/dist/chunks/chunk-WJX5PGNN.js +7 -0
- package/dist/chunks/chunk-WZCLCG4J.js +7 -0
- package/dist/chunks/{chunk-GUSOYIW6.js → chunk-XDYVJWGX.js} +1 -1
- package/dist/chunks/{chunk-E7CEQ2PO.js → chunk-XECELSF5.js} +1 -1
- package/dist/chunks/chunk-XKPB27SC.js +8 -0
- package/dist/chunks/{chunk-2QYOZU6E.js → chunk-XPFVO6C6.js} +1 -1
- package/dist/chunks/{chunk-DCUWC7WP.js → chunk-XTLEX3PJ.js} +1 -1
- package/dist/chunks/chunk-Y3F3TOOX.js +10 -0
- package/dist/chunks/{chunk-6VUD3LZP.js → chunk-ZKQ47ZXI.js} +1 -1
- package/dist/chunks/chunk-ZRA5BQXP.js +27 -0
- package/dist/chunks/{chunk-MCLT57FD.js → chunk-ZTLBMY3L.js} +1 -1
- package/dist/chunks/{chunk-HIK5CJTT.js → chunk-ZUDCZSDX.js} +1 -1
- package/dist/chunks/{chunk-OFOZ5DBA.js → chunk-ZZD5W5KT.js} +1 -1
- package/dist/chunks/{clear-L4HSULAA.js → clear-GJJUFB2T.js} +1 -1
- package/dist/chunks/{cli-embedded-NCWN74UF.js → cli-embedded-6SKYFUXJ.js} +2 -3
- package/dist/chunks/{compile-vercel-config-3AD57TKS.js → compile-vercel-config-6X6PGKDP.js} +1 -1
- package/dist/chunks/{config-N4SB5PPU.js → config-PJG22P4Z.js} +1 -1
- package/dist/chunks/{config-E7OJDF2P.js → config-S5V6CZRI.js} +1 -1
- package/dist/chunks/config-validator.mjs +1 -1
- package/dist/chunks/{contract-EULMKZS4.js → contract-R7ZFR2S3.js} +1 -1
- package/dist/chunks/{delete-33WIMH3P.js → delete-K4E77OOH.js} +1 -1
- package/dist/chunks/{delete-45EEPRWI.js → delete-NPYVDIFP.js} +1 -1
- package/dist/chunks/{describe-QAF4MI7I.js → describe-P4GM6EO2.js} +1 -1
- package/dist/chunks/{detect-projects-XGIE3YBG.js → detect-projects-4GK5I7QF.js} +1 -1
- package/dist/chunks/{detect-services-AAVP4EBS.js → detect-services-RPRW33BU.js} +1 -1
- package/dist/chunks/{disable-H3Z7OJJE.js → disable-OVOL3LWV.js} +1 -1
- package/dist/chunks/{discard-KIEAG7NI.js → discard-WOXNVSDS.js} +1 -1
- package/dist/chunks/{edit-YQJNSZTX.js → edit-G4DQQ4RV.js} +1 -1
- package/dist/chunks/{edit-3Q36ZYIA.js → edit-TSHEL2Y4.js} +1 -1
- package/dist/chunks/{enable-BMB5D7AO.js → enable-TDASZXQQ.js} +1 -1
- package/dist/chunks/{engine-DkdkXQEy-FDYYIXY7.js → engine-DkdkXQEy-VKQPUSSO.js} +1 -1
- package/dist/chunks/{export-QQAZAQOU.js → export-3EX2GKDG.js} +1 -1
- package/dist/chunks/{future-TZACZMSV.js → future-JZGOH3V2.js} +1 -1
- package/dist/chunks/{generate-cert-for-deploy-EZM5MW2G.js → generate-cert-for-deploy-C7O33LOJ.js} +1 -1
- package/dist/chunks/{image-YAMHIRFF.js → image-OVUBWPST.js} +1 -1
- package/dist/chunks/{import-builders-DE7NPR7N.js → import-builders-FKD73NYP.js} +1 -1
- package/dist/chunks/{inspect-MFVWIQT4.js → inspect-AJR3QIH5.js} +1 -1
- package/dist/chunks/{inspect-QNZWH5O3.js → inspect-AV5FVCCK.js} +1 -1
- package/dist/chunks/{inspect-OHNQUBKI.js → inspect-SEXVZS4G.js} +1 -1
- package/dist/chunks/{inspect-DIH47SML.js → inspect-TBSVBZUN.js} +1 -1
- package/dist/chunks/{inspect-VCJDESUJ.js → inspect-V4SPH2NB.js} +1 -1
- package/dist/chunks/{inspect-Y5LG6JUC.js → inspect-ZJD2MJWC.js} +1 -1
- package/dist/chunks/{list-AYUHH7TO.js → list-C6FS72S5.js} +1 -1
- package/dist/chunks/{list-KB6YGNJZ.js → list-EBCMDKJS.js} +1 -1
- package/dist/chunks/{list-C7GYUVSJ.js → list-M77FQQFX.js} +1 -1
- package/dist/chunks/{list-YJSC2ST6.js → list-QJZEUHZD.js} +1 -1
- package/dist/chunks/{login-T2VKRCUS.js → login-6PBI6PM2.js} +1 -1
- package/dist/chunks/{login-E47LQVJN.js → login-XYSPQU6N.js} +1 -1
- package/dist/chunks/{logs-BLMH6Y45.js → logs-ANETOSUR.js} +1 -1
- package/dist/chunks/{ls-V6KTI55Z.js → ls-26I7XZBC.js} +1 -1
- package/dist/chunks/{ls-BPRVNFEB.js → ls-2YN4PHE6.js} +1 -1
- package/dist/chunks/{ls-CBV4C474.js → ls-AXYPC5JY.js} +1 -1
- package/dist/chunks/{ls-JOOH2AF2.js → ls-DK6563EC.js} +1 -1
- package/dist/chunks/{ls-GI4HMBK6.js → ls-OUPL2GET.js} +1 -1
- package/dist/chunks/{ls-EBJTSOO7.js → ls-W7P3L76L.js} +1 -1
- package/dist/chunks/{ls-5KNEE66N.js → ls-XXK4CXFN.js} +1 -1
- package/dist/chunks/{migrate-experimental-services-ZMZITRD4.js → migrate-experimental-services-MSGNPCL7.js} +1 -1
- package/dist/chunks/{mutate-5AQS53DH.js → mutate-IBPZFKJ5.js} +1 -1
- package/dist/chunks/{notifications-T74YEQUZ.js → notifications-D2EQYROT.js} +1 -1
- package/dist/chunks/{open-GUNAPG6S.js → open-CXDBD72L.js} +1 -1
- package/dist/chunks/openapi-XZOI5Q7B.js +7 -0
- package/dist/chunks/{permissions-BISSYSWA.js → permissions-BPXSQD6I.js} +1 -1
- package/dist/chunks/{plugin-offer-NIDPSYYJ.js → plugin-offer-SQNMTIYE.js} +1 -1
- package/dist/chunks/{prompt-missing-credentials-YR5RBSGW.js → prompt-missing-credentials-QM4NGCZD.js} +1 -1
- package/dist/chunks/{publish-D7EXNS3C.js → publish-5BKJUDF2.js} +1 -1
- package/dist/chunks/{pull-NQ2FQBCM.js → pull-L7VY77Y4.js} +1 -1
- package/dist/chunks/{purchase-domain-if-available-YG3AOXZ7.js → purchase-domain-if-available-P66IAKLA.js} +1 -1
- package/dist/chunks/{push-OCU3RUHV.js → push-ZDALENLW.js} +1 -1
- package/dist/chunks/query-N4C5TD22.js +7 -0
- package/dist/chunks/raw-query-A7U4PTQZ.js +8 -0
- package/dist/chunks/{reauthenticate-S7ZZYONP.js → reauthenticate-ZX6AMGZ6.js} +1 -1
- package/dist/chunks/{remove-LZTO47IA.js → remove-TRI7VSFC.js} +1 -1
- package/dist/chunks/{reorder-TMBGWMPR.js → reorder-BCRI7RUZ.js} +1 -1
- package/dist/chunks/{reply-55HPMB6K.js → reply-SFW3HYUS.js} +1 -1
- package/dist/chunks/{resolve-BTBTAK33.js → resolve-QK4KE7FE.js} +1 -1
- package/dist/chunks/{resolve-agent-team-3QXPCCT7.js → resolve-agent-team-Z7ZHCMLX.js} +1 -1
- package/dist/chunks/{restore-K6LCLHTG.js → restore-LWBDMFH2.js} +1 -1
- package/dist/chunks/{rm-CEUCQRIX.js → rm-7CDYQOBQ.js} +1 -1
- package/dist/chunks/{rm-I5PRDQHP.js → rm-KIPL54AA.js} +1 -1
- package/dist/chunks/{rm-UOP7BPBQ.js → rm-OWZAM6LM.js} +1 -1
- package/dist/chunks/{rm-LL6X65SS.js → rm-PMS5WEEL.js} +1 -1
- package/dist/chunks/{rm-4PSIPJUA.js → rm-WBSH2FU4.js} +1 -1
- package/dist/chunks/{rule-inspect-DKODR7X2.js → rule-inspect-O544YVJS.js} +1 -1
- package/dist/chunks/{schema-L3YB2LQE.js → schema-UYWLZVGF.js} +1 -1
- package/dist/chunks/{schema-LRVPWIYU.js → schema-XKG4E3TS.js} +1 -1
- package/dist/chunks/{select-org-JQBD5NDP.js → select-org-SGAC2GQ5.js} +1 -1
- package/dist/chunks/{serving-DKny38LK-UNINNTL5.js → serving-DKny38LK-WG5QDDEJ.js} +1 -1
- package/dist/chunks/{set-YBCB2ZLD.js → set-J4UEV5IF.js} +1 -1
- package/dist/chunks/{set-UMNUZAGG.js → set-NRTRIRMB.js} +1 -1
- package/dist/chunks/{setup-and-link-JRQ5DLOI.js → setup-and-link-ZXJW6CB4.js} +1 -1
- package/dist/chunks/{skills-DDFYTBGG.js → skills-GICDAOI2.js} +3 -1
- package/dist/chunks/{tags-WRH47Z4W.js → tags-5BLLDHDY.js} +1 -1
- package/dist/chunks/token-MYYNOUIT.js +7 -0
- package/dist/chunks/{token-util-KL35LHLQ.js → token-util-OJHS52JP.js} +1 -1
- package/dist/chunks/{types-NQECZN4K.js → types-HBXTZZAC.js} +1 -1
- package/dist/chunks/{update-FAMBH7PW.js → update-NXJ7PC5H.js} +1 -1
- package/dist/chunks/{usage-YACGLTPY.js → usage-6U2JZOPE.js} +1 -1
- package/dist/chunks/{validate-config-X6DF35VG.js → validate-config-6RVSBIWX.js} +1 -1
- package/dist/commands/build/index.js +1 -1
- package/dist/commands/deploy/index.js +11 -10
- package/dist/commands/dev/index.js +5 -5
- package/dist/commands/env/index.js +3 -3
- package/dist/commands/link/index.js +1 -1
- package/dist/commands/list/index.js +1 -1
- package/dist/commands/project/index.js +31 -29
- package/dist/commands/tunnel/index.js +1 -1
- package/dist/commands-account.js +18 -18
- package/dist/commands-ai.js +130 -80
- package/dist/commands-blob.js +16 -16
- package/dist/commands-core.js +9 -9
- package/dist/commands-deployments.js +1 -1
- package/dist/commands-flags.js +165 -142
- package/dist/commands-integrations.js +6 -6
- package/dist/commands-observability.js +3 -3
- package/dist/commands-routing.js +7 -7
- package/dist/help.js +1 -1
- package/dist/index.js +4 -4
- package/dist/internal-build.js +1 -1
- package/dist/package.json +41 -41
- package/dist/version.mjs +1 -1
- package/package.json +43 -43
- package/dist/chunks/chunk-3S7H6NCV.js +0 -20
- package/dist/chunks/chunk-5PAMKYPV.js +0 -14
- package/dist/chunks/chunk-AY523IYR.js +0 -7
- package/dist/chunks/chunk-DIHB5BUY.js +0 -8
- package/dist/chunks/chunk-EB7744O7.js +0 -24
- package/dist/chunks/chunk-EI4CUIVA.js +0 -7
- package/dist/chunks/chunk-EZVNGJN5.js +0 -7
- package/dist/chunks/chunk-HOGVBY6Q.js +0 -11
- package/dist/chunks/chunk-HSCWCGL7.js +0 -7
- package/dist/chunks/chunk-IIMHD3FA.js +0 -7
- package/dist/chunks/chunk-KRVZKKJV.js +0 -12
- package/dist/chunks/chunk-LNQAOLNW.js +0 -10
- package/dist/chunks/chunk-MZ7ITRVR.js +0 -12
- package/dist/chunks/chunk-SEHERY6U.js +0 -7
- package/dist/chunks/chunk-U2ZNF6HN.js +0 -8
- package/dist/chunks/chunk-UIGZMWS6.js +0 -16
- package/dist/chunks/chunk-YANOBY2G.js +0 -7
- package/dist/chunks/openapi-5WTF7EXK.js +0 -7
- package/dist/chunks/query-FM6SRTQP.js +0 -12
- package/dist/chunks/token-3ILJZPAZ.js +0 -7
- package/dist/chunks/token-JJLQVXPI.js +0 -7
- package/dist/chunks/token-util-A4BSB3KP.js +0 -7
- /package/dist/chunks/{chunk-WFS3XBAA.js → chunk-MRCM5VF5.js} +0 -0
- /package/dist/chunks/{chunk-SNGM6NSO.js → chunk-TK7K6GCG.js} +0 -0
|
@@ -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{tracesConfigCommand}from"./chunk-
|
|
7
|
+
import{tracesConfigCommand}from"./chunk-PIDEH4SJ.js";import{packageName}from"./chunk-B4KA3ZH2.js";import{deploymentOption,nextCursorOption,projectOption,protectionBypassOption,sinceOption,untilOption,yesOption}from"./chunk-CFJBDBYH.js";var spanQueryOptions=[{...projectOption,shorthand:"p",description:"Filter spans to one project (default: all team projects)"},{name:"environment",shorthand:"e",type:String,argument:"ENVIRONMENT",deprecated:!1,description:"Environment: production or preview (case-insensitive)"},{name:"service",shorthand:null,type:String,deprecated:!1,description:"Filter by service name"},{name:"name",shorthand:null,type:String,deprecated:!1,description:"Filter by span name"},{name:"kind",shorthand:null,type:String,deprecated:!1,description:"Filter by span kind: unspecified (0), internal (1), server (2), client (3), producer (4), consumer (5)"},{name:"status",shorthand:null,type:String,deprecated:!1,description:"Status: error, ok, or unset (case-insensitive)"},{...deploymentOption,description:"Filter by deployment ID"},{name:"deployment-id",shorthand:null,type:String,deprecated:!0},{name:"request-id",shorthand:null,type:String,deprecated:!1,description:"Filter by request ID. Some IDs return 404 in traces inspect. Reuse --scope and --project. See traces inspect --help."},{name:"trace",shorthand:null,type:String,argument:"TRACE",deprecated:!1,description:"Filter by trace ID"},{name:"trace-id",shorthand:null,type:String,deprecated:!0},{name:"span",shorthand:null,type:String,argument:"SPAN",deprecated:!1,description:"Filter by span ID"},{name:"span-id",shorthand:null,type:String,deprecated:!0},{name:"root",shorthand:null,type:Boolean,deprecated:!1,description:"Show root spans only"},{...sinceOption,description:`${sinceOption.description} (default: 1h ago)`},untilOption];var requestIdLookupHelp={title:"Request-ID lookup",body:["A request ID in search results does not guarantee traces inspect can retrieve the trace. Lookup requires a matching root span in the same project within 30 minutes after the request-ID timestamp.","","If no matching root is found, lookup returns 404. Use the same --scope and --project for search and inspect."]},getSubcommand={name:"inspect",aliases:["get"],default:!0,description:"Show a captured trace by trace ID or request ID",helpSections:[{title:"Trace-ID lookup",body:["A 32-character hexadecimal ID selects trace-ID lookup. Other IDs select request-ID lookup.","Trace-ID lookup retrieves the trace directly within the trace retention window. Use the same --scope and --project as search."]},requestIdLookupHelp],arguments:[{name:"id",required:!0}],options:[{name:"json",shorthand:null,type:Boolean,deprecated:!1,description:"Print the raw trace JSON to stdout"},{name:"project",shorthand:"p",type:String,argument:"NAME|ID",deprecated:!1,description:"Project that owns the trace (default: linked project)"},{name:"open",shorthand:null,type:Boolean,deprecated:!1,description:"Open the trace in the Vercel Dashboard instead of printing it."},{name:"view",shorthand:null,type:String,argument:"timeline|tree|waterfall",deprecated:!1,description:"Dashboard view to open (default: timeline). Only valid with --open."}],examples:[{name:"Inspect a trace by trace ID",value:`${packageName} traces inspect e5c0d1efb3904155472b01692c7f2d00`},{name:"Inspect a trace by request ID",value:`${packageName} traces inspect qb46r-1790847620933-1145d2891a3e`},{name:"Print the raw trace JSON",value:`${packageName} traces inspect e5c0d1efb3904155472b01692c7f2d00 --json`},{name:"Inspect a trace without typing the default inspect subcommand",value:`${packageName} traces e5c0d1efb3904155472b01692c7f2d00`},{name:"Inspect a trace from a specific team and project",value:`${packageName} traces inspect e5c0d1efb3904155472b01692c7f2d00 --scope my-team --project my-app`},{name:"Open the trace in the Vercel Dashboard",value:`${packageName} traces inspect e5c0d1efb3904155472b01692c7f2d00 --open`},{name:"Open the trace in the Vercel Dashboard with the waterfall view",value:`${packageName} traces inspect e5c0d1efb3904155472b01692c7f2d00 --open --view waterfall`}]},createSubcommand={name:"create",aliases:[],description:"Capture a session trace for a request (alias for `vercel curl --trace`).",arguments:[{name:"path",required:!0}],forwardsUnknownOptions:!0,options:[deploymentOption,protectionBypassOption,{name:"json",shorthand:null,type:Boolean,deprecated:!1,description:"Emit { response, requestId } as JSON on stdout"},{...yesOption,description:"Skip the production confirmation prompt (e.g. in non-interactive mode)"}],examples:[{name:"Capture a session trace for a request",value:`${packageName} traces create /api/hello`},{name:"Target a specific deployment",value:`${packageName} traces create /api/status --deployment https://your-project-abc123.vercel.app`},{name:"Pass curl options after the separator",value:`${packageName} traces create /api/test -- --request POST --data '{"name": "John"}'`}]},searchSubcommand={name:"search",aliases:[],description:"Search team spans. Use --project to filter one project. Results are newest first. Duration filters do not sort results.",helpSections:[{title:"Table columns",body:["Available: span.startTime, span.duration, span.name, span.status.code, service.name, environment, request.id, trace.id, span.id, parent.id, span.kind","Default: all except environment, request.id, and span.kind."]},{title:"KQL filters",body:["Fields: project.id, environment, service.name, deployment.id, request.id, user.id, session.id","Span fields: span.name, span.kind, span.id, parent.id, span.isRoot, span.status.code, span.duration","Trace fields: trace.id, trace.state","","Other fields search span attributes first, then resource attributes.","","span.duration uses milliseconds.","span.kind uses the numeric values shown under --kind.","span.status.code uses Error, Ok, or Unset.","Use field:value filters. Plain text search is not supported.","Use NOT to exclude values. End a value with * to match a prefix.","Wrap values with spaces in double quotes. Keep the full query in single quotes."]},{title:"Paging",body:["When more spans match, a Next page command is printed on stderr.","--json prints one span line per record and ends with a summary line; --non-interactive implies --json.","--next continues from the summary's pagination.next value. It keeps the original team, project, filters, and time window, so it can't be combined with them. --limit can change."]}],arguments:[],options:[...spanQueryOptions,{name:"limit",shorthand:"n",type:Number,deprecated:!1,description:"Maximum number of spans (default: 100, max: 1000)"},{name:"query",shorthand:"q",type:String,deprecated:!1,description:"Filter spans using KQL"},{name:"columns",shorthand:null,argument:"LIST",type:String,deprecated:!1,description:"Columns to show, in order. Separate names with commas. Cannot be used with --json or --non-interactive."},{...nextCursorOption,description:"Continue a previous search from its summary's next value"},{name:"json",shorthand:null,type:Boolean,deprecated:!1,description:"Output JSON Lines ending with a summary line"}],examples:[{name:"Find production errors for one service",value:`${packageName} traces search --environment production --service checkout-api --status error --since 1h`},{name:"Use KQL and output JSON Lines",value:`${packageName} traces search --query 'http.route:"/api/checkout"' --kind server --json`},{name:"Exclude span names starting with app/lib/fetch-api",value:`${packageName} traces search --query 'NOT span.name:app/lib/fetch-api*'`},{name:"Exclude exact span names",value:`${packageName} traces search --query 'NOT span.name:("GET /screenshot/v2" OR "middleware GET")'`},{name:"Find spans longer than 2 seconds",value:`${packageName} traces search --query 'span.duration > 2000' --columns span.startTime,span.duration,span.name,span.kind,span.status.code`},{name:"Continue from the summary's next value",placeholders:["<CURSOR>"],value:`${packageName} traces search --next <CURSOR> --json`}]},tracesCommand={name:"traces",aliases:[],description:"Inspect project traces and search spans across a Vercel team.",arguments:[{name:"id",required:!1}],subcommands:[getSubcommand,searchSubcommand,createSubcommand,tracesConfigCommand],options:[],examples:[{name:"Inspect a trace by trace ID",value:`${packageName} traces inspect e5c0d1efb3904155472b01692c7f2d00`},{name:"Inspect a trace by request ID",value:`${packageName} traces inspect qb46r-1790847620933-1145d2891a3e`},{name:"Print the raw trace JSON",value:`${packageName} traces inspect e5c0d1efb3904155472b01692c7f2d00 --json`},{name:"Capture a session trace for a request",value:`${packageName} traces create /api/hello`},{name:"Search recent spans",value:`${packageName} traces search --status error`},{name:"List the trace sampling rules for a project",value:`${packageName} traces config ls`}]};export{getSubcommand,createSubcommand,searchSubcommand,tracesCommand};
|
|
@@ -4,5 +4,5 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{LoginTelemetryClient,login}from"./chunk-
|
|
7
|
+
import{LoginTelemetryClient,login}from"./chunk-K2IVJE2G.js";import{loginCommand}from"./chunk-F7L5SXJM.js";import{printError}from"./chunk-PDUIYEMP.js";import{help}from"./chunk-7KCRYDGK.js";import{parseArguments}from"./chunk-LYL26S3N.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import{getFlagsSpecification}from"./chunk-CFJBDBYH.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1);async function login2(client,options){let parsedArgs=null,flagsSpecification=getFlagsSpecification(loginCommand.options),telemetry=new LoginTelemetryClient({opts:{store:client.telemetryEventStore}});try{options.shouldParseArgs&&(parsedArgs=parseArguments(client.argv.slice(2),flagsSpecification))}catch(error){return printError(error),2}if(parsedArgs?.flags["--help"])return telemetry.trackCliFlagHelp("login"),output_manager_default.print(help(loginCommand,{stream:client.stderr,columns:client.stderr.columns})),0;if(parsedArgs?.flags["--token"])return output_manager_default.error('`--token` may not be used with the "login" command'),2;if(options.shouldParseArgs&&parsedArgs){let obsoleteFlags=Object.keys(parsedArgs.flags).filter(flag=>{let flagKey=flag.replace("--",""),option=loginCommand.options.find(o=>o.name===flagKey);if(!(!option||typeof option=="number"))return"deprecated"in option&&option.deprecated});if(obsoleteFlags.length){let flags=obsoleteFlags.map(f=>import_chalk.default.bold(f)).join(", ");output_manager_default.warn(`The following options are deprecated: ${flags}`)}let obsoleteArguments=parsedArgs.args.slice(1);if(obsoleteArguments.length){let args=obsoleteArguments.map(a=>import_chalk.default.bold(a)).join(", ");output_manager_default.warn(`The following arguments are deprecated: ${args}`)}(obsoleteArguments.length||obsoleteFlags.length)&&output_manager_default.print(`Read more in our ${output_manager_default.link("changelog","https://vercel.com/changelog/new-vercel-cli-login-flow")}.
|
|
8
8
|
`)}telemetry.trackState("started");let scope=parsedArgs?.flags["--scope"]||parsedArgs?.flags["--team"];return await login(client,telemetry,options.shouldParseArgs,scope)}export{login2 as login};
|
|
@@ -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{sleep}from"./chunk-
|
|
7
|
+
import{sleep}from"./chunk-6UI3ZNHM.js";import{fetch}from"./chunk-MY4MONOH.js";import{getCommandNamePlain}from"./chunk-B4KA3ZH2.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1);var BYPASS_READY_DELAYS_MS=[250,500,1e3,2e3,2e3,2e3,2e3,2e3],BYPASS_READY_TIMEOUT_MS=12e3,BYPASS_READY_REQUEST_TIMEOUT_MS=3e3,PROTECTION_BODY_MAX_BYTES=16*1024;async function createDeploymentProtectionToken(client,projectId,orgId){if(!client.authConfig.token)throw output_manager_default.debug("No auth token available, skipping deployment protection token"),new Error("Authentication required to create protection bypass token");try{let response=await client.fetch(`/v1/projects/${projectId}/protection-bypass`,{method:"PATCH",body:"{}",headers:{"Content-Type":"application/json"},accountId:orgId}),{protectionBypass}=response,token=getAutomationBypassToken(protectionBypass);return output_manager_default.log(`Added a Protection Bypass for Automation secret to project ${import_chalk.default.bold(projectId)}. It stays on the project until you revoke it.`),output_manager_default.print(` To revoke it, open Deployment Protection in the project settings, or run:
|
|
8
8
|
${getCommandNamePlain(`project protection disable ${projectId} --protection-bypass --protection-bypass-secret <secret>`)}
|
|
9
9
|
|
|
10
10
|
`),token}catch(error){throw output_manager_default.debug(`Failed to generate deployment protection bypass token: ${error}`),output_manager_default.note('To bypass deployment protection, create a "Protection Bypass for Automation" secret in your project settings:'),output_manager_default.log(` 1. Visit ${import_chalk.default.cyan("https://vercel.com/dashboard")}`),output_manager_default.log(" 2. Go to your project settings \u2192 Deployment Protection"),output_manager_default.log(' 3. Generate a "Protection Bypass for Automation" secret'),output_manager_default.log(` 4. Use it with ${import_chalk.default.cyan("--protection-bypass")} option or set ${import_chalk.default.cyan("VERCEL_AUTOMATION_BYPASS_SECRET")} env var`),output_manager_default.log(""),new Error("Failed to create deployment protection bypass token")}}function getAutomationBypassToken(protectionBypass){if(!protectionBypass)throw new Error("No protection bypass tokens found");let token=Object.keys(protectionBypass).find(key=>protectionBypass[key].scope==="automation-bypass");if(!token)throw new Error("No automation bypass token found in protection bypass settings");return token}async function getOrCreateDeploymentProtectionToken(client,{project,org},{createIfMissing=!0,readinessUrl}={}){if(process.env.VERCEL_AUTOMATION_BYPASS_SECRET)return output_manager_default.debug("Using protection bypass secret from environment variable"),process.env.VERCEL_AUTOMATION_BYPASS_SECRET;if(project.protectionBypass&&Object.values(project.protectionBypass).length){let protectionBypass;try{protectionBypass=getAutomationBypassToken(project.protectionBypass)}catch(error){if(!createIfMissing)return output_manager_default.debug(`No existing automation bypass token found for project ${project.id}`),null;throw error}if(protectionBypass)return output_manager_default.debug("Using existing protection bypass token from project settings"),protectionBypass}if(!createIfMissing)return output_manager_default.debug(`Not creating an automation bypass token for project ${project.id}`),null;let token=await createDeploymentProtectionToken(client,project.id,org.id);return readinessUrl?(await waitForProtectionBypass(readinessUrl,token)||output_manager_default.warning("The new bypass secret is not active yet, so this request can return the Deployment Protection page. If it does, run the command again in a few seconds."),token):(await sleep(1e3),token)}async function waitForProtectionBypass(url,token){let origin=new URL(url).origin,deadline=Date.now()+BYPASS_READY_TIMEOUT_MS;output_manager_default.spinner("Waiting for the new bypass secret to become active\u2026");try{for(let attempt=0;;attempt++){let remaining=deadline-Date.now(),protectedResponse;try{protectedResponse=await isProtected(origin,token,Math.max(1,Math.min(BYPASS_READY_REQUEST_TIMEOUT_MS,remaining)))}catch(err){return output_manager_default.debug(`Could not check the new bypass secret: ${err}`),!0}if(!protectedResponse)return output_manager_default.debug(`The new bypass secret works after ${attempt+1} checks`),!0;let delay=BYPASS_READY_DELAYS_MS[attempt];if(delay===void 0||Date.now()+delay>=deadline)return output_manager_default.debug(`The new bypass secret did not work after ${attempt+1} checks`),!1;await sleep(delay)}}finally{output_manager_default.stopSpinner()}}async function isProtected(origin,token,timeoutMs){let res=await fetch(`${origin}/`,{headers:{accept:"application/json","x-vercel-protection-bypass":token},redirect:"manual",signal:AbortSignal.timeout(timeoutMs)});try{return await isProtectionResponse(res,origin)}finally{await res.body?.cancel().catch(()=>{})}}async function isProtectionResponse(res,origin){let location=res.headers.get("location");if(res.status>=300&&res.status<400&&location){let target=new URL(location,origin);return target.host==="vercel.com"&&target.pathname==="/sso-api"}let contentType=res.headers.get("content-type")??"";if(res.status!==401||!contentType.includes("application/json"))return!1;try{let text=await readBodyUpTo(res,PROTECTION_BODY_MAX_BYTES);return text===null?!1:JSON.parse(text)?.error?.message==="Protected deployment"}catch{return!1}}async function readBodyUpTo(res,maxBytes){let reader=res.body?.getReader();if(!reader)return"";let chunks=[],size=0;try{for(;;){let{done,value}=await reader.read();if(done)break;if(size+=value.byteLength,size>maxBytes)return await reader.cancel(),null;chunks.push(value)}}finally{reader.releaseLock()}return Buffer.concat(chunks).toString("utf8")}export{getOrCreateDeploymentProtectionToken};
|
|
@@ -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{confirmOption,deploymentOption,environmentOption,forceOption,formatOption,jsonOption,projectOption,targetOption,yesOption}from"./chunk-
|
|
7
|
+
import{confirmOption,deploymentOption,environmentOption,forceOption,formatOption,jsonOption,projectOption,targetOption,yesOption}from"./chunk-CFJBDBYH.js";var deprecatedArchiveSplitTgz="split-tgz",initSubcommand={name:"init",aliases:[],description:"Create a manual deployment that can be continued later",hidden:!0,arguments:[],options:[{...forceOption,deprecatedShorthand:"f",description:"Force a new deployment even if nothing has changed"},{name:"with-cache",shorthand:null,type:Boolean,deprecated:!1,description:'Retain build cache when using "--force"'},{name:"env",shorthand:null,type:[String],argument:"KEY=VALUE",deprecated:!1,description:"Specify environment variables during run-time (e.g. `--env KEY1=value1 --env KEY2=value2`)"},{name:"build-env",shorthand:null,type:[String],argument:"KEY=VALUE",deprecated:!1,description:"Specify environment variables during build-time (e.g. `--build-env KEY1=value1 --build-env KEY2=value2`)"},{name:"meta",shorthand:null,deprecatedShorthand:"m",type:[String],argument:"KEY=VALUE",deprecated:!1,description:"Specify metadata for the deployment (e.g. `--meta KEY1=value1 --meta KEY2=value2`)"},{name:"regions",shorthand:null,type:String,argument:"REGION",deprecated:!1,description:"Set default regions to enable the deployment on"},{name:"prod",shorthand:null,type:Boolean,deprecated:!1,description:"Create a production deployment (shorthand for `--environment production`)"},{name:"archive",shorthand:null,type:String,argument:"FORMAT",deprecated:!1,description:"Compress the deployment code into an archive before uploading it"},{name:"skip-domain",shorthand:null,type:Boolean,deprecated:!1,description:"Disable the automatic promotion (aliasing) of the relevant domains to a new production deployment. You can use `vc promote` to complete the domain-assignment process later"},{...yesOption,description:"Use default options to skip all prompts"},{...environmentOption,shorthand:null,description:"Environment to deploy to: production, preview, or a custom environment"},targetOption,formatOption,jsonOption,confirmOption,projectOption],examples:[{name:"Create a manual deployment",value:"vercel deploy init"},{name:"Create a manual production deployment",value:"vercel deploy init --prod"}]},continueSubcommand={name:"continue",aliases:[],description:"Continue a manual deployment by uploading build outputs",hidden:!0,arguments:[],options:[{...deploymentOption,description:"The deployment ID to continue (e.g. dpl_xxx)"},{name:"id",shorthand:null,type:String,deprecated:!0},{name:"archive",shorthand:null,type:String,argument:"FORMAT",deprecated:!1,description:"Compress the deployment code into an archive before uploading it"},{name:"error",shorthand:null,type:String,argument:"MESSAGE",deprecated:!1,description:"Mark the deployment as errored with a message"}],examples:[{name:"Continue a deployment by ID",value:"vercel deploy continue --deployment dpl_xxx"}]},describeSubcommand={name:"describe",aliases:[],description:"Prepare deployment functions for provisioning in your AWS account",hidden:!0,arguments:[],options:[{...deploymentOption,description:"Deployment ID used with vercel build --deployment (required)"},{name:"id",shorthand:null,type:String,deprecated:!0},{name:"aws-account-id",shorthand:null,type:String,argument:"AWS_ACCOUNT",deprecated:!1,description:"12-digit AWS account ID for provisioning (required)"},jsonOption],examples:[{name:"Prepare a deployment for provisioning",value:"vercel deploy describe --deployment dpl_xxx --aws-account-id 123456789012"},{name:"Return artifact paths as JSON",value:"vercel deploy describe --deployment dpl_xxx --aws-account-id 123456789012 --json"}],helpSections:[{title:"Notes",body:["Uses the team in .vercel/project.json. Run vercel build --deployment first.","Writes descriptor.json, function ZIPs, and runtime layers to .vercel/<DEPLOYMENT>/. Keep these artifacts private.","Preserves the original build in .vercel/<DEPLOYMENT>/build/ and replaces .vercel/output with a code-free continuation.","Does not create AWS resources. Provision the described functions before running vercel deploy continue --deployment <DEPLOYMENT>.","Edge Functions and service outputs are not supported."]}]},deployCommand={name:"deploy",aliases:[],description:"Deploy your project to Vercel. Use `--temporary` to create a temporary deployment without logging in. The `deploy` command is the default command for the Vercel CLI, and can be omitted (`vc deploy my-app` equals `vc my-app`). Use `--dry` to inspect the detected framework preset and source files without deploying.",arguments:[{name:"project-path",required:!1}],subcommands:[initSubcommand,continueSubcommand,describeSubcommand],options:[{...forceOption,deprecatedShorthand:"f",description:"Force a new deployment even if nothing has changed"},{name:"with-cache",shorthand:null,type:Boolean,deprecated:!1,description:'Retain build cache when using "--force"'},{name:"env",shorthand:null,type:[String],argument:"KEY=VALUE",deprecated:!1,description:"Specify environment variables during run-time (e.g. `--env KEY1=value1 --env KEY2=value2`)"},{name:"build-env",shorthand:null,type:[String],argument:"KEY=VALUE",deprecated:!1,description:"Specify environment variables during build-time (e.g. `--build-env KEY1=value1 --build-env KEY2=value2`)"},{name:"turbo",shorthand:null,type:Boolean,deprecated:!1,description:"Use a Turbo build machine for this deployment"},{name:"meta",shorthand:null,deprecatedShorthand:"m",type:[String],argument:"KEY=VALUE",deprecated:!1,description:"Specify metadata for the deployment (e.g. `--meta KEY1=value1 --meta KEY2=value2`)"},{name:"regions",shorthand:null,type:String,argument:"REGION",deprecated:!1,description:"Set default regions to enable the deployment on"},{name:"prebuilt",shorthand:null,type:Boolean,deprecated:!1,description:"Use in combination with `vc build`. Deploy an existing build"},{name:"prod",shorthand:null,type:Boolean,deprecated:!1,description:"Create a production deployment (shorthand for `--environment production`)"},{name:"temporary",shorthand:null,type:Boolean,deprecated:!1,description:"Create a temporary deployment without logging in. When logged in, use `--delete-project-after` instead"},{name:"delete-project-after",shorthand:null,type:String,argument:"DURATION",deprecated:!1,description:"Create a temporary project that is deleted automatically after 1h, 1d, 1w, 2w, or 30d. Only applies when the deploy creates the project"},{name:"archive",shorthand:null,type:String,argument:"FORMAT",deprecated:!1,description:"Compress the deployment code into an archive before uploading it"},{name:"no-wait",shorthand:null,type:Boolean,deprecated:!1,description:"Don't wait for the deployment to finish"},{name:"verify",shorthand:null,type:Boolean,deprecated:!1,description:"Load the deployment URL once it is ready and report the status code, size, and page title, even with Deployment Protection on (creates the project's Protection Bypass for Automation secret if missing). Exits 1 if the load fails. Can't be used with --no-wait or --dry"},{name:"dry",shorthand:null,type:Boolean,deprecated:!1,description:"Inspect the detected framework preset and source files without uploading or creating a deployment. Non-TTY output includes every file as JSON"},{name:"create-if-missing",shorthand:null,type:Boolean,deprecated:!1,description:"Create the --project if it doesn't exist yet. Needed only when --project names a new project with --yes or in non-interactive mode. Can't be used with --dry"},{name:"skip-domain",shorthand:null,type:Boolean,deprecated:!1,description:"Disable the automatic promotion (aliasing) of the relevant domains to a new production deployment. You can use `vc promote` to complete the domain-assignment process later"},{...yesOption,description:"Use default options to skip all prompts"},{name:"logs",shorthand:null,deprecatedShorthand:"l",type:Boolean,deprecated:!1,description:"Print the build logs"},{name:"guidance",shorthand:null,type:Boolean,deprecated:!1,description:"Receive command suggestions once deployment is complete"},{name:"no-logs",shorthand:null,type:Boolean,deprecated:!0,description:"Do not print the build logs"},{name:"name",shorthand:"n",type:String,deprecated:!0},{name:"no-clipboard",shorthand:null,type:Boolean,deprecated:!0},{...environmentOption,shorthand:null,description:"Environment to deploy to: production, preview, or a custom environment"},targetOption,formatOption,jsonOption,confirmOption,{...projectOption,description:"Project name or ID to deploy to, without linking this directory (default: linked project). A missing name is created; with --yes or in non-interactive mode, add --create-if-missing"}],examples:[{name:"Deploy the current directory",value:"vercel"},{name:"Deploy a single HTML file",value:"vercel ./index.html"},{name:"Deploy a custom path",value:"vercel /usr/src/project"},{name:"Deploy to production and check that the URL loads",value:"vercel deploy --prod --verify"},{name:"Deploy with run-time Environment Variables",value:"vercel --env NODE_ENV=production"},{name:"Deploy with prebuilt outputs",value:["vercel build","vercel deploy --prebuilt"]},{name:"Deploy using a Turbo build machine",value:"vercel deploy --turbo"},{name:"Inspect deployment inputs without deploying",value:"vercel deploy --dry"},{name:"Get every deployment file as JSON",value:"vercel deploy --dry --json"},{name:"Write Deployment URL to a file",value:"vercel > deployment-url.txt"}]};export{deprecatedArchiveSplitTgz,initSubcommand,continueSubcommand,describeSubcommand,deployCommand};
|
|
@@ -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{createDetectEntrypoint,getServicesConfigWriteBlocker,writeServicesConfig}from"./chunk-
|
|
7
|
+
import{createDetectEntrypoint,getServicesConfigWriteBlocker,writeServicesConfig}from"./chunk-JNXPL4Y4.js";import{detectProjects}from"./chunk-2Y5X7IPM.js";import{require_dist as require_dist2}from"./chunk-INICCBM4.js";import{validateRootDirectory}from"./chunk-34RN7PH7.js";import{require_slugify}from"./chunk-COD3WAUI.js";import{createProject}from"./chunk-ANIA2G6F.js";import{compileVercelConfig,findSourceVercelConfigFile}from"./chunk-RDO7G5LL.js";import{readJSONFile}from"./chunk-BKHJUBCA.js";import{checkExistsAndConnect,parseRepoUrl,selectAndParseRemoteUrl}from"./chunk-L75A5BMY.js";import{Separator}from"./chunk-YTRKHRL3.js";import{selectOrg}from"./chunk-5MZ7JZY7.js";import{require_dist}from"./chunk-HQGD4PEO.js";import{pull}from"./chunk-5S6VTCXQ.js";import{require_frameworks}from"./chunk-ZKNEIE44.js";import{table}from"./chunk-CJZE7647.js";import{printError}from"./chunk-PDUIYEMP.js";import{VERCEL_DIR_PROJECT,VERCEL_DIR_README,fetchProjectsForRepoUrl,findProjectsFromPath,findRepoRoot,getGitConfigPath,getLinkedProject,getLocalPathConfig,getRemoteUrls,getVercelDirectory,humanizePath,isDirectory,isPromptBackError,isPromptCanceledError,linkFolderToProject,linkRepoProject,localConfigFlagPath,parseGitConfig,pluckRemoteUrls,require_lib,resolveGitRemote}from"./chunk-6UI3ZNHM.js";import{getProjectByNameOrId}from"./chunk-LOA7SZWH.js";import{printAlignedLabel}from"./chunk-M7FED5YP.js";import{CantParseJSONFile,ProjectNotFound,isAPIError}from"./chunk-GOI2VVI7.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import{require_build_utils}from"./chunk-5MDNVAE6.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_fs_extra=__toESM(require_lib(),1),import_build_utils4=__toESM(require_build_utils(),1),import_fs_detectors2=__toESM(require_dist(),1);import{join as join4,basename}from"path";var import_chalk=__toESM(require_source(),1);var import_slugify=__toESM(require_slugify(),1);var SEARCH_ALL_PROJECTS="search-all-projects",CREATE_NEW_PROJECT="create-new-project",BACK_TO_PROJECT_SELECTION=Symbol("back-to-project-selection"),BACK_TO_TEAM_SELECTION=Symbol("back-to-team-selection"),SWITCH_GIT_REMOTE=Symbol("switch-git-remote"),NO_EXISTING_PROJECTS=Symbol("no-existing-projects");async function inputProjectDecision(client,defaultDecision){let createChoice={name:"Create new project",value:"create"},existingChoice={name:"Link existing project",value:"existing"};return await client.input.select({message:"Project?",choices:defaultDecision==="existing"?[existingChoice,createChoice]:[createChoice,existingChoice]})}function randomNameSuffix(){return Math.random().toString(36).slice(2,6).padEnd(4,"0")}async function suggestNewProjectName(client,org,slugifiedName,knownTaken){let taken=knownTaken;if(!taken)try{taken=!(await getProjectByNameOrId(client,slugifiedName,org.id)instanceof ProjectNotFound)}catch{taken=!1}return taken?`${slugifiedName}-${randomNameSuffix()}`:slugifiedName}function promptForProjectName(client,org,defaultName,message="Name?"){return client.input.text({message,default:defaultName,validate:async val=>val?await getProjectByNameOrId(client,val,org.id)instanceof ProjectNotFound?!0:"Project already exists":"Project name cannot be empty"})}async function promptForProjectNameWithBack(client,org,defaultName){try{return await client.withPromptBackNavigation(()=>promptForProjectName(client,org,defaultName,`Name? ${import_chalk.default.dim("Press \u2191 to return to project options")}`))}catch(error){if(isPromptBackError(error))return BACK_TO_PROJECT_SELECTION;throw error}}async function searchExistingProjects(client,org,allowBack){let firstPage=await client.fetch("/v9/projects?limit=100",{accountId:org.id}),projects=firstPage.projects,hasMoreProjects=firstPage.pagination.next!=null;if(projects.length===0)return output_manager_default.log(`No existing projects found under ${import_chalk.default.bold(org.slug)}. Creating new project.`),NO_EXISTING_PROJECTS;let pageSize=15,countHint=projects.length>pageSize?` ${import_chalk.default.dim(`(${hasMoreProjects?"100+":projects.length} projects)`)}`:"";return await client.input.search({message:`Which project?${countHint}`,pageSize,source:async(term,{signal})=>{let searchTerm=term?.trim(),matchingProjects=projects;if(searchTerm)if(hasMoreProjects)matchingProjects=(await client.fetch(`/v9/projects?search=${encodeURIComponent(searchTerm)}&limit=20`,{accountId:org.id,signal})).projects;else{let normalizedSearchTerm=searchTerm.toLowerCase();matchingProjects=projects.filter(project=>project.name.toLowerCase().includes(normalizedSearchTerm)||project.id===searchTerm)}let choices=matchingProjects.slice().sort((a,b)=>b.updatedAt-a.updatedAt).map(project=>({name:project.name,value:project}));if(!allowBack)return choices;let backChoice={name:"Back to project options",value:BACK_TO_PROJECT_SELECTION};return choices.length===0?[backChoice]:searchTerm?choices:[...choices,new Separator,backChoice]}})}async function inputProject(client,org,detectedProjectName,autoConfirm=!1,skipAutoDetect=!1,showProjectSuggestions=!1,allowTeamSelectionBack=!1,repoMatches=[],gitRemoteOptions){let slugifiedName=(0,import_slugify.default)(detectedProjectName),canSwitchGitRemote=(gitRemoteOptions?.remoteNames.length??0)>1,detectedProject=null;if(!skipAutoDetect&&repoMatches.length===0){output_manager_default.spinner("Searching for existing projects\u2026",1e3);let[project,slugifiedProject]=await Promise.all([getProjectByNameOrId(client,detectedProjectName,org.id),slugifiedName!==detectedProjectName?getProjectByNameOrId(client,slugifiedName,org.id):null]);if(detectedProject=project instanceof ProjectNotFound?slugifiedProject instanceof ProjectNotFound?null:slugifiedProject:project,detectedProject&&!detectedProject.id)throw new Error('Detected linked project does not have "id".');output_manager_default.stopSpinner()}if(autoConfirm)return repoMatches.length===1?repoMatches[0]:detectedProject||detectedProjectName;if(client.nonInteractive){if(detectedProject)return detectedProject;let err=new Error("Confirmation required");throw err.code="HEADLESS",err}let slugifiedNameKnownFree=!skipAutoDetect&&repoMatches.length===0&&!detectedProject,memoizedDefaultName;async function defaultNewProjectName(){return memoizedDefaultName===void 0&&(memoizedDefaultName=slugifiedNameKnownFree?slugifiedName:await suggestNewProjectName(client,org,slugifiedName,detectedProject?.name===slugifiedName)),memoizedDefaultName}let shouldLinkProject;if(showProjectSuggestions&&!skipAutoDetect)for(;;){let choices=[];if(repoMatches.length>0?choices.push(...repoMatches.map(match=>({name:`${match.project.name} ${import_chalk.default.gray("(linked by git)")}`,value:match})),new Separator):detectedProject&&choices.push({name:`${detectedProject.name} ${import_chalk.default.gray("(folder name)")}`,value:detectedProject},new Separator),choices.push({name:"Search all projects",value:SEARCH_ALL_PROJECTS,description:"Browse or search every project in this team"},{name:"Create a new project",value:CREATE_NEW_PROJECT,description:`Create it under ${org.slug}`}),canSwitchGitRemote){let current=gitRemoteOptions?.currentRemoteName;choices.push({name:"Switch Git remote",value:SWITCH_GIT_REMOTE,description:current?`Suggestions are from ${current}`:"Search projects linked to a different remote"})}allowTeamSelectionBack&&choices.push({name:"Choose a different team",value:BACK_TO_TEAM_SELECTION,description:"Return to team selection"});let selected=await client.input.select({message:"Which project?",choices});if(selected===BACK_TO_TEAM_SELECTION)return BACK_TO_TEAM_SELECTION;if(selected===SWITCH_GIT_REMOTE)return SWITCH_GIT_REMOTE;if(selected===CREATE_NEW_PROJECT){let projectName=await promptForProjectNameWithBack(client,org,await defaultNewProjectName());if(projectName===BACK_TO_PROJECT_SELECTION)continue;return projectName}if(selected!==SEARCH_ALL_PROJECTS)return selected;let existingProject=await searchExistingProjects(client,org,!0);if(existingProject!==BACK_TO_PROJECT_SELECTION){if(existingProject===NO_EXISTING_PROJECTS){let projectName=await promptForProjectNameWithBack(client,org,slugifiedName);if(projectName===BACK_TO_PROJECT_SELECTION)continue;return projectName}return existingProject}}else if(!detectedProject)shouldLinkProject=await inputProjectDecision(client,skipAutoDetect?"existing":"create")==="existing";else{if(output_manager_default.print(` ${import_chalk.default.bold("Found existing project")}
|
|
8
8
|
`),printAlignedLabel("Project",`${org.slug}/${detectedProject.name}`),await client.input.confirm("Link directory to project?",!0))return detectedProject;shouldLinkProject=await inputProjectDecision(client,"existing")==="existing"}if(shouldLinkProject){let existingProject=await searchExistingProjects(client,org,!1);if(existingProject!==NO_EXISTING_PROJECTS&&existingProject!==BACK_TO_PROJECT_SELECTION)return existingProject}return await promptForProjectName(client,org,await defaultNewProjectName())}var import_build_utils=__toESM(require_build_utils(),1),import_chalk2=__toESM(require_source(),1);import path from"path";async function inputRootDirectory(client,cwd,autoConfirm=!1){if(autoConfirm)return null;for(;;){let rootDirectory=await client.input.text({message:"Code directory?",transformer:input=>`${import_chalk2.default.dim("./")}${input}`});if(!rootDirectory)return null;let normal=path.normalize(rootDirectory);if(normal==="."||normal==="./")return null;let fullPath=path.join(cwd,normal);if(await validateRootDirectory(cwd,fullPath,"Please choose a different one.")!==!1)return(0,import_build_utils.normalizePath)(normal)}}var import_chalk3=__toESM(require_source(),1),import_frameworks=__toESM(require_frameworks(),1);function isSettingValue(setting){return setting&&typeof setting.value=="string"}var settingMap={buildCommand:"Build Command",devCommand:"Development Command",commandForIgnoringBuildStep:"Ignore Command",installCommand:"Install Command",outputDirectory:"Output Directory",framework:"Framework"},settingKeys=Object.keys(settingMap).sort();async function editProjectSettings(client,projectSettings,framework,autoConfirm,localConfigurationOverrides,configFileName="vercel.json",staticSite=null){let settings=Object.assign({buildCommand:null,devCommand:null,framework:null,commandForIgnoringBuildStep:null,installCommand:null,outputDirectory:null},projectSettings);if(localConfigurationOverrides&&Object.values(localConfigurationOverrides??{}).some(Boolean)){for(let setting of settingKeys){let localConfigValue=localConfigurationOverrides[setting];localConfigValue&&(settings[setting]=localConfigValue)}output_manager_default.print(` Local settings detected in ${configFileName}:
|
|
9
9
|
`);for(let setting of settingKeys){let override=localConfigurationOverrides[setting];override&&output_manager_default.print(` ${import_chalk3.default.dim(`${import_chalk3.default.bold(`${settingMap[setting]}:`)} ${override}`)}
|
|
10
10
|
`)}if(localConfigurationOverrides.framework){let overrideFramework=import_frameworks.frameworkList.find(f=>f.slug===localConfigurationOverrides.framework);overrideFramework&&(framework=overrideFramework,output_manager_default.print(` Merging default Project Settings for ${framework.name}. Previously listed overrides are prioritized.
|
|
@@ -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-B4KA3ZH2.js";import{confirmOption,jsonOption,projectOption,yesOption}from"./chunk-
|
|
7
|
+
import{packageName}from"./chunk-B4KA3ZH2.js";import{confirmOption,jsonOption,projectOption,yesOption}from"./chunk-CFJBDBYH.js";var addSubcommand={name:"add",aliases:[],description:"Add projects to an existing repository link created by link --repo",arguments:[],options:[{...yesOption,description:"Skip questions when adding projects with default team and settings"}],examples:[{name:"Add projects to an existing repository link",value:`${packageName} link add`}]},linkCommand={name:"link",aliases:[],description:"Link a local directory to a Vercel project",runsWithoutSubcommand:!0,arguments:[],subcommands:[addSubcommand],options:[{name:"repo",description:"Link multiple projects from the Git repository (alpha; per-directory project links take precedence)",shorthand:null,deprecatedShorthand:"r",type:Boolean,deprecated:!1},{...projectOption,shorthand:"p",description:"Set the project name or ID to link; required for non-interactive existing-project links"},{name:"team",description:"Deprecated alias for `--scope`",shorthand:null,argument:"TEAM_ID_OR_SLUG",type:String,deprecated:!0},{...yesOption,description:"Skip questions when setting up with default team and settings"},confirmOption,jsonOption],examples:[{name:"Link current directory to a Vercel project",value:`${packageName} link`},{name:"Link current directory with default options and skip questions",value:`${packageName} link --yes`},{name:"Link to an existing project in CI or agent mode",placeholders:["<TEAM>","<project-name-or-id>"],value:`${packageName} link --yes --scope <TEAM> --project <project-name-or-id>`},{name:"Link a specific directory to a Vercel project",value:`${packageName} link --cwd /path/to/project`},{name:"Link multiple projects from the current Git repository",value:`${packageName} link --repo`},{name:"Add additional projects to an existing repository link",value:`${packageName} link add`}]};export{addSubcommand,linkCommand};
|
|
@@ -7,4 +7,5 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import{require_cross_spawn,require_is_stream,require_merge_stream,require_npm_run_path,require_onetime,require_strip_final_newline}from"./chunk-GD7AV7BO.js";import{require_signal_exit}from"./chunk-BLUPZPAS.js";import{__commonJS,__require}from"./chunk-BZENIQ7N.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()}});export{require_dist};
|
|
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};
|
|
@@ -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-B4KA3ZH2.js";import{formatOption,jsonOption}from"./chunk-
|
|
7
|
+
import{packageName}from"./chunk-B4KA3ZH2.js";import{formatOption,jsonOption}from"./chunk-CFJBDBYH.js";var contractCommand={name:"contract",aliases:[],description:"Show contract information for all billing periods",arguments:[],options:[formatOption,jsonOption],examples:[{name:"Show contract information for all billing periods",value:`${packageName} billing contract`},{name:"Show contract information for all billing periods as JSON",value:`${packageName} billing contract --json`}]};export{contractCommand};
|
|
@@ -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{getShortFlags,globalCommandOptions}from"./chunk-
|
|
7
|
+
import{getShortFlags,globalCommandOptions}from"./chunk-CFJBDBYH.js";var COMMAND_SHORTHANDS=new Set(["-d"]);function walkCommandArgs(commands,args,start,visit){let command={name:"",aliases:[],subcommands:commands},options=[...globalCommandOptions],argumentCount=0;for(let i=start;i<args.length;i++){let token=args[i];if(token==="--")return;if(token.length>1&&token.startsWith("-")){(visit(i,command,argumentCount)||!token.includes("=")&&takesValue(token,options))&&i++;continue}let subcommand=argumentCount===0?command.subcommands?.find(candidate=>candidate.name===token||candidate.aliases.includes(token)):void 0;subcommand?(command=subcommand,options.push(...subcommand.options??[])):argumentCount++}}function takesValue(token,options){let flag=/^-[A-Za-z]{2,}$/.test(token)?`-${token.slice(-1)}`:token,option=options.find(candidate=>`--${candidate.name}`===flag||getShortFlags(candidate).includes(flag));return option!==void 0&&option.type!==Boolean}function findHiddenOption(command,flag){return command.options?.find(option=>`-${option.deprecatedShorthand}`===flag)}function findCommandShorthands(commands,args,start=0){let found=new Set;return walkCommandArgs(commands,args,start,(index,command,argumentCount)=>{let next=args[index+1],required=(command.arguments??[]).filter(argument=>argument.required).length;return!COMMAND_SHORTHANDS.has(args[index])||!findHiddenOption(command,args[index])||argumentCount<required||next===void 0||next.startsWith("-")?!1:(found.add(index),!0)}),found}function findHiddenShorthandOption(commands,args,flag,start=0){let found;return walkCommandArgs(commands,args,start,(index,command)=>(args[index]===flag&&(found??=findHiddenOption(command,flag)),!1)),found}export{findCommandShorthands,findHiddenShorthandOption};
|
|
@@ -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{resolveProjectContext}from"./chunk-
|
|
7
|
+
import{resolveProjectContext}from"./chunk-M2J4MIKF.js";function getProjectNameFromFlags(flags){return flags["--project"]}function getLinkedFlagsProject(client,projectName,options){return resolveProjectContext({client,projectNameOrId:projectName,projectNotFoundHandling:options?.projectNotFoundHandling})}export{getProjectNameFromFlags,getLinkedFlagsProject};
|