vercel 59.14.0 → 59.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/add-7XFD2OHW.js +8 -0
- package/dist/chunks/add-HZC7AUBY.js +8 -0
- package/dist/chunks/add-PYUNJZ6K.js +8 -0
- package/dist/chunks/build-EFKQ6BND.js +7 -0
- package/dist/chunks/chunk-2B2MN3U5.js +8 -0
- package/dist/chunks/chunk-2H77IRPI.js +9 -0
- package/dist/chunks/chunk-2I64AYHG.js +7 -0
- package/dist/chunks/chunk-2PPXY24N.js +20 -0
- package/dist/chunks/chunk-2S6PE6GB.js +7 -0
- package/dist/chunks/{chunk-PIMIVJYK.js → chunk-3FMJYJUR.js} +7 -32
- package/dist/chunks/chunk-3IAQUNQH.js +7 -0
- package/dist/chunks/chunk-3QHJYVCY.js +7 -0
- package/dist/chunks/chunk-3QT7VOE3.js +7 -0
- package/dist/chunks/chunk-3TXEXPUW.js +7 -0
- package/dist/chunks/chunk-4MZK6JT6.js +7 -0
- package/dist/chunks/chunk-4NE5IQ25.js +7 -0
- package/dist/chunks/chunk-4PNSSS3L.js +7 -0
- package/dist/chunks/chunk-4QX77CP7.js +7 -0
- package/dist/chunks/chunk-57GHYR4Y.js +25 -0
- package/dist/chunks/chunk-5QQNYN4N.js +7 -0
- package/dist/chunks/chunk-5XJNPXQK.js +7 -0
- package/dist/chunks/chunk-6L236MNA.js +7 -0
- package/dist/chunks/chunk-6PFC3KWQ.js +7 -0
- package/dist/chunks/chunk-6QKS6QK7.js +7 -0
- package/dist/chunks/chunk-6RIQPTJA.js +8 -0
- package/dist/chunks/chunk-6TAQ6OWD.js +13 -0
- package/dist/chunks/chunk-6YAADRQB.js +9 -0
- package/dist/chunks/chunk-75CPY75D.js +15 -0
- package/dist/chunks/chunk-7HL2RPUO.js +7 -0
- package/dist/chunks/chunk-7PNYOSDU.js +9 -0
- package/dist/chunks/chunk-7R5FEXZ5.js +7 -0
- package/dist/chunks/chunk-7RMCBXBB.js +62 -0
- package/dist/chunks/chunk-7RR7MIMT.js +7 -0
- package/dist/chunks/chunk-7T6TL3GQ.js +7 -0
- package/dist/chunks/chunk-ADUYPK2G.js +13 -0
- package/dist/chunks/chunk-AFPOIDM5.js +7 -0
- package/dist/chunks/chunk-AM46JVVN.js +7 -0
- package/dist/chunks/chunk-AVSPFBLM.js +7 -0
- package/dist/chunks/chunk-B4ATVYZW.js +7 -0
- package/dist/chunks/chunk-BATE73HA.js +9 -0
- package/dist/chunks/{chunk-64IF634X.js → chunk-BRK4OB4B.js} +1 -12
- package/dist/chunks/chunk-BVH2AEFE.js +7 -0
- package/dist/chunks/chunk-CN2QZO4U.js +7 -0
- package/dist/chunks/chunk-COQGD2EI.js +8 -0
- package/dist/chunks/chunk-CUAIEGNE.js +7 -0
- package/dist/chunks/chunk-CVKB54WW.js +7 -0
- package/dist/chunks/{chunk-A3NYPUKZ.js → chunk-CZSOZKHX.js} +1 -11
- package/dist/chunks/chunk-D4MW3RDW.js +7 -0
- package/dist/chunks/chunk-DFVNL5ML.js +7 -0
- package/dist/chunks/chunk-EE3FVJLV.js +16 -0
- package/dist/chunks/chunk-EGMJRU5P.js +28 -0
- package/dist/chunks/chunk-ENBTTYJR.js +7 -0
- package/dist/chunks/chunk-ENS6KX2F.js +7 -0
- package/dist/chunks/chunk-EOBD4ZEG.js +8 -0
- package/dist/chunks/chunk-EOCTK4EA.js +7 -0
- package/dist/chunks/chunk-EQ52F4LH.js +7 -0
- package/dist/chunks/chunk-ETV3C2CV.js +7 -0
- package/dist/chunks/chunk-EVZRQGNK.js +7 -0
- package/dist/chunks/chunk-F2ZWW2IO.js +8 -0
- package/dist/chunks/chunk-FAW6NBLQ.js +7 -0
- package/dist/chunks/chunk-FI772UVH.js +7 -0
- package/dist/chunks/chunk-FKCOBJFH.js +7 -0
- package/dist/chunks/chunk-FVGESGJI.js +45 -0
- package/dist/chunks/chunk-G5FC5ZCO.js +9 -0
- package/dist/chunks/chunk-G6CTAHKY.js +39 -0
- package/dist/chunks/chunk-G7Y77DFH.js +7 -0
- package/dist/chunks/chunk-GHAY4PSD.js +7 -0
- package/dist/chunks/chunk-GHM7V3GG.js +7 -0
- package/dist/chunks/chunk-GRNTLNC7.js +7 -0
- package/dist/chunks/chunk-GTRGQIY2.js +10 -0
- package/dist/chunks/chunk-GU6VIFR5.js +7 -0
- package/dist/chunks/{constants-YMCRE6IG.js → chunk-GZNDA6SV.js} +2 -9
- package/dist/chunks/chunk-HBFPLBTX.js +10 -0
- package/dist/chunks/chunk-HEGJZJO7.js +7 -0
- package/dist/chunks/chunk-HSJ6AHWG.js +12 -0
- package/dist/chunks/chunk-HTC6KO2B.js +7 -0
- package/dist/chunks/chunk-HVUHCRZB.js +18 -0
- package/dist/chunks/chunk-HZZ5L472.js +7 -0
- package/dist/chunks/chunk-IVSSTHB6.js +7 -0
- package/dist/chunks/chunk-IVWPQYIH.js +7 -0
- package/dist/chunks/chunk-J3U3L45Y.js +7 -0
- package/dist/chunks/chunk-JAJW3P42.js +7 -0
- package/dist/chunks/chunk-JEIMW3CO.js +7 -0
- package/dist/chunks/chunk-JIYY3B4C.js +7 -0
- package/dist/chunks/chunk-JKTQV2QJ.js +7 -0
- package/dist/chunks/chunk-JTVVBRW7.js +7 -0
- package/dist/chunks/chunk-JYAUUIR4.js +7 -0
- package/dist/chunks/chunk-JZRMH5UA.js +7 -0
- package/dist/chunks/chunk-K2RAW5DI.js +10 -0
- package/dist/chunks/chunk-K3KJZLBD.js +7 -0
- package/dist/chunks/chunk-KK4AJES5.js +36 -0
- package/dist/chunks/chunk-KKS7XWEX.js +7 -0
- package/dist/chunks/chunk-KNEWCUWF.js +14 -0
- package/dist/chunks/chunk-KO733OJG.js +9 -0
- package/dist/chunks/chunk-L243RUIR.js +19 -0
- package/dist/chunks/chunk-L3JDEHCQ.js +7 -0
- package/dist/chunks/chunk-LDM3SQAU.js +13 -0
- package/dist/chunks/chunk-LNPMDXBJ.js +7 -0
- package/dist/chunks/chunk-M2W3HKV3.js +23 -0
- package/dist/chunks/chunk-M2XARQBF.js +9 -0
- package/dist/chunks/chunk-M5AV545M.js +7 -0
- package/dist/chunks/chunk-MAVRGZQP.js +7 -0
- package/dist/chunks/chunk-MBL6TXEJ.js +7 -0
- package/dist/chunks/chunk-MEAY2K5Z.js +11 -0
- package/dist/chunks/chunk-MY4MONOH.js +7 -0
- package/dist/chunks/chunk-N3N5UHIL.js +7 -0
- package/dist/chunks/chunk-N3ZZ7FHQ.js +7 -0
- package/dist/chunks/chunk-N6CNMMSZ.js +7 -0
- package/dist/chunks/chunk-NBVY237X.js +7 -0
- package/dist/chunks/chunk-NGNOUPWS.js +25 -0
- package/dist/chunks/chunk-NHTF332K.js +7 -0
- package/dist/chunks/chunk-NNP5NITU.js +15 -0
- package/dist/chunks/chunk-NS4FH2TY.js +11 -0
- package/dist/chunks/chunk-NUGLE4QY.js +11 -0
- package/dist/chunks/chunk-NWFHHUKZ.js +7 -0
- package/dist/chunks/chunk-O7G3CZ42.js +7 -0
- package/dist/chunks/chunk-OD6RZ3XZ.js +8 -0
- package/dist/chunks/chunk-OHDEHZLX.js +7 -0
- package/dist/chunks/chunk-OK3S6KFX.js +16 -0
- package/dist/chunks/chunk-OKZDOANA.js +23 -0
- package/dist/chunks/chunk-OSCCYU74.js +7 -0
- package/dist/chunks/chunk-OUHPDA7Q.js +7 -0
- package/dist/chunks/chunk-P2O5DOYE.js +7 -0
- package/dist/chunks/chunk-PHW54NU5.js +13 -0
- package/dist/chunks/chunk-PPCFQQSU.js +7 -0
- package/dist/chunks/chunk-QGIGNMII.js +8 -0
- package/dist/chunks/chunk-QGIQK47P.js +7 -0
- package/dist/chunks/chunk-QHJLRTVY.js +7 -0
- package/dist/chunks/{chunk-2473DUBR.js → chunk-QR7QPUFN.js} +1 -9
- package/dist/chunks/chunk-QTKJC2O5.js +7 -0
- package/dist/chunks/chunk-R2TGGVCT.js +19 -0
- package/dist/chunks/chunk-RAIBQIKB.js +7 -0
- package/dist/chunks/chunk-RCTYVKM5.js +16 -0
- package/dist/chunks/chunk-RKAUVPOQ.js +86 -0
- package/dist/chunks/chunk-S5CEIACD.js +7 -0
- package/dist/chunks/chunk-SGWVKRSR.js +8 -0
- package/dist/chunks/chunk-SOJCELXH.js +7 -0
- package/dist/chunks/chunk-SXUEGVWB.js +7 -0
- package/dist/chunks/{chunk-GGPE5377.js → chunk-T3GQAMBJ.js} +1 -9
- package/dist/chunks/chunk-T52FMXWC.js +7 -0
- package/dist/chunks/chunk-TG2RCYTH.js +7 -0
- package/dist/chunks/chunk-TJCIHDPZ.js +9 -0
- package/dist/chunks/chunk-TKBXN4H3.js +9 -0
- package/dist/chunks/chunk-TRTEXGVN.js +7 -0
- package/dist/chunks/chunk-TXELFFNK.js +15 -0
- package/dist/chunks/chunk-U56NHYAH.js +7 -0
- package/dist/chunks/chunk-U7KCDTCH.js +12 -0
- package/dist/chunks/chunk-UETTIYUQ.js +8 -0
- package/dist/chunks/chunk-UGMZQZJE.js +24 -0
- package/dist/chunks/chunk-ULLWCOYC.js +7 -0
- package/dist/chunks/chunk-UXTHEQVJ.js +21 -0
- package/dist/chunks/chunk-VLZ47RWM.js +44 -0
- package/dist/chunks/chunk-WKZ6JSGZ.js +7 -0
- package/dist/chunks/chunk-WPS6JZF6.js +7 -0
- package/dist/chunks/chunk-WRILLB46.js +7 -0
- package/dist/chunks/chunk-WUZD4KBL.js +7 -0
- package/dist/chunks/chunk-XCJDGQO7.js +7 -0
- package/dist/chunks/{pkg-56KRLZ5K.js → chunk-XD2LZRBS.js} +1 -7
- package/dist/chunks/chunk-XFVGX5HG.js +7 -0
- package/dist/chunks/chunk-XHOGOH6N.js +7 -0
- package/dist/chunks/{update-route-version-E3V47KNI.js → chunk-XPXOV5UO.js} +1 -7
- package/dist/chunks/chunk-XQ73QIQ3.js +7 -0
- package/dist/chunks/chunk-XSVBYDYI.js +8 -0
- package/dist/chunks/chunk-YKZLKOOD.js +12 -0
- package/dist/chunks/chunk-YMVDWVMO.js +7 -0
- package/dist/chunks/chunk-YPTLSODC.js +7 -0
- package/dist/chunks/chunk-YV6CTDHR.js +7 -0
- package/dist/chunks/chunk-Z6Y55QJW.js +23 -0
- package/dist/chunks/chunk-ZDX75YNZ.js +7 -0
- package/dist/chunks/chunk-ZIPVX7LD.js +7 -0
- package/dist/chunks/chunk-ZKYS7EAB.js +7 -0
- package/dist/chunks/chunk-ZT6KDLLY.js +20 -0
- package/dist/chunks/chunk-ZXE4XYIV.js +7 -0
- package/dist/chunks/chunk-ZZQRMRWD.js +20 -0
- package/dist/chunks/cjs-GOQHXIHX.js +54 -0
- package/dist/chunks/clear-5NQAVWIF.js +8 -0
- package/dist/chunks/compile-vercel-config-6J2XUFRK.js +7 -0
- package/dist/chunks/config-CKYRXZXL.js +7 -0
- package/dist/chunks/config-VNUY4RJ4.js +8 -0
- package/dist/chunks/connect-git-provider-GIU5WZ52.js +7 -0
- package/dist/chunks/constants-G4UYVLOF.js +7 -0
- package/dist/chunks/create-project-SRQGD4JY.js +7 -0
- package/dist/chunks/delete-GTXXCSKQ.js +10 -0
- package/dist/chunks/delete-HRJEO4MI.js +9 -0
- package/dist/chunks/detect-projects-2GNCZ4CS.js +7 -0
- package/dist/chunks/detect-services-GHILEGNU.js +7 -0
- package/dist/chunks/disable-RWCRVG5O.js +7 -0
- package/dist/chunks/discard-SHFIYCJU.js +14 -0
- package/dist/chunks/edit-DMO3NSO2.js +9 -0
- package/dist/chunks/edit-EVQI2RSS.js +8 -0
- package/dist/chunks/enable-AWDU6STD.js +7 -0
- package/dist/chunks/esm-7HVUFWMN.js +7 -0
- package/dist/chunks/esm-BZBEM7YA.js +7 -0
- package/dist/chunks/esm-CXICLFA3.js +9 -0
- package/dist/chunks/esm-HDEHVK7I.js +9 -0
- package/dist/chunks/esm-NQRLKALI.js +20 -0
- package/dist/chunks/esm-SZZI53W7.js +7 -0
- package/dist/chunks/esm-WGJFGCLK.js +7 -0
- package/dist/chunks/exec-4AISDHUV.js +16372 -0
- package/dist/chunks/export-IQKTA4RS.js +19 -0
- package/dist/chunks/fetch-proxy-AEAWC6MD.js +7 -0
- package/dist/chunks/future-E2FHKPJN.js +7 -0
- package/dist/chunks/generate-cert-for-deploy-VKOWC4PZ.js +7 -0
- package/dist/chunks/image-LDFYNOCA.js +7 -0
- package/dist/chunks/import-builders-P7CXSX2D.js +7 -0
- package/dist/chunks/inspect-3N47ODIH.js +15 -0
- package/dist/chunks/inspect-53SGDDAH.js +20 -0
- package/dist/chunks/inspect-5INZDUQS.js +19 -0
- package/dist/chunks/inspect-WMT2M335.js +9 -0
- package/dist/chunks/inspect-Y6BUCOUV.js +13 -0
- package/dist/chunks/list-BIAPHKFM.js +11 -0
- package/dist/chunks/list-DMOCRRSE.js +16 -0
- package/dist/chunks/list-K5J7OULR.js +10 -0
- package/dist/chunks/login-DEAEVUHM.js +7 -0
- package/dist/chunks/login-SRVNHI4Y.js +9 -0
- package/dist/chunks/logs-GK7CJBYY.js +7 -0
- package/dist/chunks/ls-7ZX6DCJW.js +12 -0
- package/dist/chunks/ls-AJWN5ZR4.js +12 -0
- package/dist/chunks/ls-BFJWCRLZ.js +12 -0
- package/dist/chunks/ls-KGIE6HCO.js +12 -0
- package/dist/chunks/ls-UVKTHBTE.js +8 -0
- package/dist/chunks/ls-WEG45IOC.js +8 -0
- package/dist/chunks/native-self-update-KOJVRMHR.js +7 -0
- package/dist/chunks/open-OEWPI5G6.js +7 -0
- package/dist/chunks/openapi-MO5HYMHR.js +7 -0
- package/dist/chunks/permissions-EPQBQFE3.js +7 -0
- package/dist/chunks/pkg-YFU67U7I.js +7 -0
- package/dist/chunks/prompt-missing-credentials-IUHLYSQU.js +7 -0
- package/dist/chunks/publish-JG7MEPWT.js +15 -0
- package/dist/chunks/pull-MRKXG6TO.js +7 -0
- package/dist/chunks/purchase-domain-if-available-O5ARXEZ5.js +7 -0
- package/dist/chunks/push-XOXJDFYO.js +7 -0
- package/dist/chunks/query-AL7C6WV2.js +12 -0
- package/dist/chunks/reauthenticate-SH4XR7NH.js +7 -0
- package/dist/chunks/reorder-5DMRFDBY.js +10 -0
- package/dist/chunks/reply-WSRNZWFD.js +9 -0
- package/dist/chunks/repo-info-to-url-SK3VX6UL.js +7 -0
- package/dist/chunks/resolve-YJUXQVOZ.js +12 -0
- package/dist/chunks/resolve-deployment-framework-preset-XF3NJIDS.js +7 -0
- package/dist/chunks/restore-QT3DBGKU.js +16 -0
- package/dist/chunks/rm-MHPIUEZ5.js +8 -0
- package/dist/chunks/rm-MVZFU6RG.js +8 -0
- package/dist/chunks/rm-PXR4J2US.js +8 -0
- package/dist/chunks/rm-WB2AIP3N.js +8 -0
- package/dist/chunks/rm-XRP6MRUT.js +8 -0
- package/dist/chunks/routes-5DERZV5M.js +7 -0
- package/dist/chunks/rule-inspect-TT3DRGCS.js +8 -0
- package/dist/chunks/rules-B5GW4KJH.js +7 -0
- package/dist/chunks/schema-JY5QTZOG.js +14 -0
- package/dist/chunks/schema-KCNKVFT3.js +44 -0
- package/dist/chunks/select-org-KSCYSESV.js +7 -0
- package/dist/chunks/set-7BANEWEL.js +7 -0
- package/dist/chunks/setup-and-link-ZAV3EFGC.js +7 -0
- package/dist/chunks/slugify-O5DBATYT.js +7 -0
- package/dist/chunks/stamp-OX4YO3KY.js +7 -0
- package/dist/chunks/tags-VZR66NUC.js +7 -0
- package/dist/chunks/types-LRXQEDYI.js +14 -0
- package/dist/chunks/update-RBFNNSWE.js +8 -0
- package/dist/chunks/update-route-version-XZAFPQJC.js +7 -0
- package/dist/chunks/utils-B5ZTMQKY.js +58 -0
- package/dist/chunks/vlt-builder-importer-YVCYYRVV.js +11 -0
- package/dist/commands/build/index.js +24 -4925
- package/dist/commands/deploy/index.js +43 -2875
- package/dist/commands/dev/index.js +56 -23857
- package/dist/commands/env/index.js +26 -3411
- package/dist/commands/link/index.js +4 -284
- package/dist/commands/list/index.js +6 -566
- package/dist/commands-bulk.js +1187 -87691
- package/dist/help.js +1 -8
- package/dist/index.js +19 -2591
- package/dist/version.mjs +1 -1
- package/package.json +50 -51
- package/dist/chunks/add-EQZRT4XL.js +0 -221
- package/dist/chunks/add-KMDROZC3.js +0 -196
- package/dist/chunks/add-QPJ3XMBV.js +0 -145
- package/dist/chunks/build-W4HPTAOB.js +0 -251
- package/dist/chunks/chunk-26CU4Q3C.js +0 -598
- package/dist/chunks/chunk-2HSQ7YUK.js +0 -93
- package/dist/chunks/chunk-2JIX6UMI.js +0 -4626
- package/dist/chunks/chunk-2LCFOK66.js +0 -1536
- package/dist/chunks/chunk-332LMJLZ.js +0 -16014
- package/dist/chunks/chunk-3HZLXCVL.js +0 -137
- package/dist/chunks/chunk-3VM7HWF6.js +0 -104
- package/dist/chunks/chunk-3ZE5CFVM.js +0 -346
- package/dist/chunks/chunk-4IALDGB7.js +0 -22
- package/dist/chunks/chunk-4KD5BYHB.js +0 -127
- package/dist/chunks/chunk-4TUMNBEE.js +0 -231
- package/dist/chunks/chunk-4WG2MYCI.js +0 -163
- package/dist/chunks/chunk-57RHXXXG.js +0 -150
- package/dist/chunks/chunk-5AJPMLDV.js +0 -28
- package/dist/chunks/chunk-5EIV6LPQ.js +0 -305
- package/dist/chunks/chunk-5NF5HOBJ.js +0 -1854
- package/dist/chunks/chunk-653QRQAD.js +0 -417
- package/dist/chunks/chunk-67CRVWDF.js +0 -81
- package/dist/chunks/chunk-6E6KPBXY.js +0 -43
- package/dist/chunks/chunk-75VENWDN.js +0 -1892
- package/dist/chunks/chunk-7MRDIPJY.js +0 -107
- package/dist/chunks/chunk-7NRNFV77.js +0 -875
- package/dist/chunks/chunk-7Q45OKWR.js +0 -149
- package/dist/chunks/chunk-AHU7WNL2.js +0 -24
- package/dist/chunks/chunk-AINIBIP4.js +0 -39
- package/dist/chunks/chunk-AJ5HUOWB.js +0 -14059
- package/dist/chunks/chunk-AKLTIZCU.js +0 -46
- package/dist/chunks/chunk-AQ6P3IGG.js +0 -49
- package/dist/chunks/chunk-B5NH7SLK.js +0 -324
- package/dist/chunks/chunk-B5XLQKHI.js +0 -849
- package/dist/chunks/chunk-BEQV3X2L.js +0 -86
- package/dist/chunks/chunk-CAHP7UGE.js +0 -79
- package/dist/chunks/chunk-CFDDM4TX.js +0 -13618
- package/dist/chunks/chunk-CJV7J7B5.js +0 -314
- package/dist/chunks/chunk-CV5YC2EN.js +0 -867
- package/dist/chunks/chunk-CXFY6A6W.js +0 -255
- package/dist/chunks/chunk-D5SMZXVO.js +0 -233
- package/dist/chunks/chunk-E336ZXPP.js +0 -43
- package/dist/chunks/chunk-EDMW7SBH.js +0 -246
- package/dist/chunks/chunk-EFYMIIER.js +0 -40
- package/dist/chunks/chunk-EKPSCRJZ.js +0 -26
- package/dist/chunks/chunk-EOZFDJSY.js +0 -18
- package/dist/chunks/chunk-EWBCSDTM.js +0 -1708
- package/dist/chunks/chunk-EZKW5YJ2.js +0 -177
- package/dist/chunks/chunk-F2QLCXCF.js +0 -2399
- package/dist/chunks/chunk-FGDKMNEN.js +0 -21
- package/dist/chunks/chunk-FRVG4OW3.js +0 -7438
- package/dist/chunks/chunk-FVF4UHDM.js +0 -1288
- package/dist/chunks/chunk-G5FBSUL4.js +0 -822
- package/dist/chunks/chunk-GDOUDU6O.js +0 -74
- package/dist/chunks/chunk-GGP5R3FU.js +0 -129
- package/dist/chunks/chunk-GVNCVKCI.js +0 -68
- package/dist/chunks/chunk-GY5I4AYD.js +0 -122
- package/dist/chunks/chunk-GZLPFESR.js +0 -48
- package/dist/chunks/chunk-HB4UKFDO.js +0 -1295
- package/dist/chunks/chunk-HD4DR3DA.js +0 -818
- package/dist/chunks/chunk-HKHXKSXQ.js +0 -152
- package/dist/chunks/chunk-HM24ZWQL.js +0 -174
- package/dist/chunks/chunk-HRXRELD3.js +0 -338
- package/dist/chunks/chunk-IB5L4LKZ.js +0 -1082
- package/dist/chunks/chunk-IIMSID24.js +0 -104
- package/dist/chunks/chunk-J7JKZM4T.js +0 -58
- package/dist/chunks/chunk-JC2O346E.js +0 -137
- package/dist/chunks/chunk-JSD4EZL3.js +0 -34
- package/dist/chunks/chunk-JZXJZX7O.js +0 -257
- package/dist/chunks/chunk-K3RED3VO.js +0 -566
- package/dist/chunks/chunk-KFWQ3EFH.js +0 -151
- package/dist/chunks/chunk-KW7BS25T.js +0 -466
- package/dist/chunks/chunk-KXDWXXJH.js +0 -70
- package/dist/chunks/chunk-LERVNZTD.js +0 -90
- package/dist/chunks/chunk-LYAAQDNS.js +0 -242
- package/dist/chunks/chunk-M5I6INNF.js +0 -61
- package/dist/chunks/chunk-N6HP5BLI.js +0 -18190
- package/dist/chunks/chunk-ND5CF2H3.js +0 -53
- package/dist/chunks/chunk-NFU4XJIR.js +0 -120
- package/dist/chunks/chunk-NW34PW6V.js +0 -1772
- package/dist/chunks/chunk-OAMU5QO6.js +0 -18
- package/dist/chunks/chunk-OCIZ6ZYA.js +0 -253
- package/dist/chunks/chunk-ORQZKIIB.js +0 -2914
- package/dist/chunks/chunk-P3SKP5WM.js +0 -27
- package/dist/chunks/chunk-P4QNYOFB.js +0 -96
- package/dist/chunks/chunk-P7VSBDR4.js +0 -827
- package/dist/chunks/chunk-PEC3CQSK.js +0 -90
- package/dist/chunks/chunk-PMSMUMUO.js +0 -30
- package/dist/chunks/chunk-PNGVSHR3.js +0 -40
- package/dist/chunks/chunk-POOO7W47.js +0 -916
- package/dist/chunks/chunk-PRWJUY5U.js +0 -848
- package/dist/chunks/chunk-Q2DGFCO7.js +0 -579
- package/dist/chunks/chunk-RBF2NPUP.js +0 -577
- package/dist/chunks/chunk-RBIFXFZX.js +0 -52
- package/dist/chunks/chunk-RDTRWLWB.js +0 -11441
- package/dist/chunks/chunk-RN6V5ODW.js +0 -114
- package/dist/chunks/chunk-RNSMTWA6.js +0 -122
- package/dist/chunks/chunk-RTJASENB.js +0 -59
- package/dist/chunks/chunk-RVBZ64EQ.js +0 -52
- package/dist/chunks/chunk-S7KYDPEM.js +0 -1564
- package/dist/chunks/chunk-SLPSPYVR.js +0 -334
- package/dist/chunks/chunk-SM3F3PYJ.js +0 -522
- package/dist/chunks/chunk-TO7QZGYK.js +0 -105
- package/dist/chunks/chunk-TSBUHSN7.js +0 -3495
- package/dist/chunks/chunk-TSFWMUCY.js +0 -506
- package/dist/chunks/chunk-TZ2YI2VH.js +0 -87
- package/dist/chunks/chunk-UG2WOB5L.js +0 -150
- package/dist/chunks/chunk-UNKHOYMF.js +0 -559
- package/dist/chunks/chunk-UOVWUSLG.js +0 -2099
- package/dist/chunks/chunk-V4RMJKQP.js +0 -36
- package/dist/chunks/chunk-VGIMO3ZK.js +0 -17
- package/dist/chunks/chunk-VGKSIKCC.js +0 -92
- package/dist/chunks/chunk-VP5Y3SZG.js +0 -106
- package/dist/chunks/chunk-VXYGCOKL.js +0 -28
- package/dist/chunks/chunk-W7FGI2GZ.js +0 -233
- package/dist/chunks/chunk-WGGABYO5.js +0 -31
- package/dist/chunks/chunk-XDGOOW3K.js +0 -60
- package/dist/chunks/chunk-XFF5TGRA.js +0 -303
- package/dist/chunks/chunk-XNIZGCN5.js +0 -58
- package/dist/chunks/chunk-XPJLPUKO.js +0 -117
- package/dist/chunks/chunk-XUAWTW4W.js +0 -467
- package/dist/chunks/chunk-YPQSDAEW.js +0 -29
- package/dist/chunks/chunk-YS76T533.js +0 -270
- package/dist/chunks/chunk-ZDU2NODC.js +0 -104
- package/dist/chunks/chunk-ZW6HETRE.js +0 -97
- package/dist/chunks/cjs-DV4RM7XU.js +0 -20743
- package/dist/chunks/clear-4IACMLFU.js +0 -141
- package/dist/chunks/compile-vercel-config-PQQ3OCLV.js +0 -33
- package/dist/chunks/config-BQQKMQBP.js +0 -168
- package/dist/chunks/config-OCPNHXQL.js +0 -127
- package/dist/chunks/delete-HRKIYPCO.js +0 -159
- package/dist/chunks/delete-P2UL3KTU.js +0 -226
- package/dist/chunks/detect-projects-ODNU4PK2.js +0 -18
- package/dist/chunks/detect-services-U7QGT7VO.js +0 -40
- package/dist/chunks/disable-3NYMICQ3.js +0 -198
- package/dist/chunks/discard-RNVEJUK3.js +0 -145
- package/dist/chunks/edit-63S2RQHR.js +0 -162
- package/dist/chunks/edit-CTENFZ7H.js +0 -647
- package/dist/chunks/enable-WILWXAHV.js +0 -204
- package/dist/chunks/exec-4IPHZ55G.js +0 -1291
- package/dist/chunks/export-YHGV3EPK.js +0 -177
- package/dist/chunks/fetch-proxy-R3JZNXBZ.js +0 -99
- package/dist/chunks/image-MWKS2YMB.js +0 -75
- package/dist/chunks/import-builders-H55X5VYD.js +0 -39
- package/dist/chunks/inspect-JTJMK6TO.js +0 -596
- package/dist/chunks/inspect-KBIPLMGR.js +0 -216
- package/dist/chunks/inspect-OP26FDBY.js +0 -171
- package/dist/chunks/inspect-SW4UMWTB.js +0 -175
- package/dist/chunks/inspect-WPLZPVBO.js +0 -145
- package/dist/chunks/list-HE7DWAWH.js +0 -387
- package/dist/chunks/list-OUG7WCT7.js +0 -404
- package/dist/chunks/list-QUSEURJZ.js +0 -426
- package/dist/chunks/login-MIIQJVF3.js +0 -233
- package/dist/chunks/ls-24N3DUK4.js +0 -183
- package/dist/chunks/ls-3Y7KEFKT.js +0 -175
- package/dist/chunks/ls-75F5HIJ5.js +0 -188
- package/dist/chunks/ls-REN6X2X5.js +0 -204
- package/dist/chunks/ls-W4STUDXK.js +0 -223
- package/dist/chunks/ls-Z4CTSD6C.js +0 -210
- package/dist/chunks/open-ARMCLPBK.js +0 -116
- package/dist/chunks/permissions-JKI67F62.js +0 -99
- package/dist/chunks/publish-SMSQ7OX2.js +0 -155
- package/dist/chunks/pull-4QZJZELD.js +0 -45
- package/dist/chunks/push-T6IYQY2J.js +0 -191
- package/dist/chunks/query-CP3JK5LW.js +0 -725
- package/dist/chunks/reorder-RAWKFGLV.js +0 -412
- package/dist/chunks/reply-235UHUD4.js +0 -176
- package/dist/chunks/resolve-5KCLN7QV.js +0 -237
- package/dist/chunks/resolve-deployment-framework-preset-NPE6RLV3.js +0 -36
- package/dist/chunks/restore-D24WAUAN.js +0 -252
- package/dist/chunks/rm-DBQDXSOC.js +0 -162
- package/dist/chunks/rm-G5INO77R.js +0 -148
- package/dist/chunks/rm-NLKSEKZ5.js +0 -195
- package/dist/chunks/rm-QV76CJA4.js +0 -322
- package/dist/chunks/rm-TZ4PDDUK.js +0 -147
- package/dist/chunks/routes-QVMBXOSX.js +0 -24
- package/dist/chunks/rule-inspect-76MC7I2D.js +0 -123
- package/dist/chunks/rules-IDUXVTPG.js +0 -89
- package/dist/chunks/schema-AV6BHGKY.js +0 -237
- package/dist/chunks/schema-QJVQTNB4.js +0 -381
- package/dist/chunks/set-L5NFQSCF.js +0 -250
- package/dist/chunks/setup-and-link-USSVDKCM.js +0 -65
- package/dist/chunks/stamp-AA7R3MZS.js +0 -16
- package/dist/chunks/tags-2NLUU4EC.js +0 -69
- package/dist/chunks/types-4GAJ7XQQ.js +0 -116
- package/dist/chunks/update-WGLBB65M.js +0 -224
- package/dist/chunks/vlt-builder-importer-USCFHWPL.js +0 -322
|
@@ -1,506 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirname_(__filename);
|
|
7
|
-
import {
|
|
8
|
-
resolveProjectContext
|
|
9
|
-
} from "./chunk-RTJASENB.js";
|
|
10
|
-
import {
|
|
11
|
-
AGENT_REASON,
|
|
12
|
-
AGENT_STATUS
|
|
13
|
-
} from "./chunk-RNSMTWA6.js";
|
|
14
|
-
import {
|
|
15
|
-
printError
|
|
16
|
-
} from "./chunk-3VM7HWF6.js";
|
|
17
|
-
import {
|
|
18
|
-
parseArguments
|
|
19
|
-
} from "./chunk-57RHXXXG.js";
|
|
20
|
-
import {
|
|
21
|
-
buildCommandWithYes,
|
|
22
|
-
outputAgentError,
|
|
23
|
-
withGlobalFlags
|
|
24
|
-
} from "./chunk-26CU4Q3C.js";
|
|
25
|
-
import {
|
|
26
|
-
getCommandName,
|
|
27
|
-
getCommandNamePlain,
|
|
28
|
-
getFlagsSpecification,
|
|
29
|
-
getGlobalFlagsFromArgs
|
|
30
|
-
} from "./chunk-Q2DGFCO7.js";
|
|
31
|
-
import {
|
|
32
|
-
output_manager_default
|
|
33
|
-
} from "./chunk-2JIX6UMI.js";
|
|
34
|
-
import {
|
|
35
|
-
require_source
|
|
36
|
-
} from "./chunk-S7KYDPEM.js";
|
|
37
|
-
import {
|
|
38
|
-
__toESM
|
|
39
|
-
} from "./chunk-TZ2YI2VH.js";
|
|
40
|
-
|
|
41
|
-
// src/util/projects/require-project-context.ts
|
|
42
|
-
async function requireProjectContext(client, command, projectName) {
|
|
43
|
-
const link = await resolveProjectContext({
|
|
44
|
-
client,
|
|
45
|
-
projectNameOrId: projectName
|
|
46
|
-
});
|
|
47
|
-
if (link.status === "error") {
|
|
48
|
-
return link.exitCode;
|
|
49
|
-
} else if (link.status === "not_linked") {
|
|
50
|
-
if (client.nonInteractive) {
|
|
51
|
-
if (command === "redirects") {
|
|
52
|
-
const linkCmd = getCommandNamePlain("link");
|
|
53
|
-
outputAgentError(
|
|
54
|
-
client,
|
|
55
|
-
{
|
|
56
|
-
status: AGENT_STATUS.ERROR,
|
|
57
|
-
reason: AGENT_REASON.NOT_LINKED,
|
|
58
|
-
message: `Your codebase isn't linked to a project on Vercel. Run ${linkCmd} to begin.`,
|
|
59
|
-
next: [{ command: linkCmd }]
|
|
60
|
-
},
|
|
61
|
-
1
|
|
62
|
-
);
|
|
63
|
-
} else {
|
|
64
|
-
const flags = getGlobalFlagsFromArgs(client.argv.slice(2));
|
|
65
|
-
const cmd = getCommandNamePlain(`link ${flags.join(" ")}`.trim());
|
|
66
|
-
outputAgentError(
|
|
67
|
-
client,
|
|
68
|
-
{
|
|
69
|
-
status: AGENT_STATUS.ERROR,
|
|
70
|
-
reason: AGENT_REASON.NOT_LINKED,
|
|
71
|
-
userActionRequired: true,
|
|
72
|
-
message: `Your codebase is not linked to a Vercel project. Run link first, then retry ${command} commands.`,
|
|
73
|
-
next: [
|
|
74
|
-
{
|
|
75
|
-
command: cmd,
|
|
76
|
-
when: "to link this directory to a project"
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
1
|
|
81
|
-
);
|
|
82
|
-
return 1;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
output_manager_default.error(
|
|
86
|
-
`Your codebase isn't linked to a project on Vercel. Run ${getCommandName("link")} to begin.`
|
|
87
|
-
);
|
|
88
|
-
return 1;
|
|
89
|
-
}
|
|
90
|
-
client.config.currentTeam = link.org.type === "team" ? link.org.id : void 0;
|
|
91
|
-
return link;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// src/util/command-arguments.ts
|
|
95
|
-
function parseSubcommandArguments(argv, command) {
|
|
96
|
-
const flagsSpecification = getFlagsSpecification(command.options);
|
|
97
|
-
return parseArguments(argv, flagsSpecification);
|
|
98
|
-
}
|
|
99
|
-
function validateRequiredArguments(args, required) {
|
|
100
|
-
for (let i = 0; i < required.length; i++) {
|
|
101
|
-
if (!args[i]) {
|
|
102
|
-
return `Missing required argument: ${required[i]}`;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
return null;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// src/util/routes/types.ts
|
|
109
|
-
var ROUTE_TYPE_LABELS = {
|
|
110
|
-
rewrite: "Rewrite",
|
|
111
|
-
redirect: "Redirect",
|
|
112
|
-
set_status: "Set Status",
|
|
113
|
-
transform: "Transform"
|
|
114
|
-
};
|
|
115
|
-
function getRouteTypeLabel(rule) {
|
|
116
|
-
if (!rule.routeType)
|
|
117
|
-
return "-";
|
|
118
|
-
return ROUTE_TYPE_LABELS[rule.routeType] ?? "-";
|
|
119
|
-
}
|
|
120
|
-
var SRC_SYNTAX_LABELS = {
|
|
121
|
-
equals: "Exact Match",
|
|
122
|
-
"path-to-regexp": "Pattern",
|
|
123
|
-
regex: "Regex"
|
|
124
|
-
};
|
|
125
|
-
function getSrcSyntaxLabel(rule) {
|
|
126
|
-
const syntax = rule.srcSyntax ?? "regex";
|
|
127
|
-
return SRC_SYNTAX_LABELS[syntax];
|
|
128
|
-
}
|
|
129
|
-
function isTargetTransform(transform) {
|
|
130
|
-
return "target" in transform;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
// src/commands/routes/shared.ts
|
|
134
|
-
var import_chalk = __toESM(require_source(), 1);
|
|
135
|
-
function withGlobalFlags2(client, commandTemplate) {
|
|
136
|
-
return withGlobalFlags(client, commandTemplate, {
|
|
137
|
-
preserveProject: true
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
function shellQuoteRouteIdentifierForSuggestion(identifier) {
|
|
141
|
-
if (!identifier.includes(" ")) {
|
|
142
|
-
return identifier;
|
|
143
|
-
}
|
|
144
|
-
if (!identifier.includes("'")) {
|
|
145
|
-
return `'${identifier}'`;
|
|
146
|
-
}
|
|
147
|
-
if (!identifier.includes('"')) {
|
|
148
|
-
return `"${identifier}"`;
|
|
149
|
-
}
|
|
150
|
-
return `"${identifier.replace(/"/g, '\\"')}"`;
|
|
151
|
-
}
|
|
152
|
-
async function parseSubcommandArgs(argv, command, client) {
|
|
153
|
-
let parsedArgs;
|
|
154
|
-
try {
|
|
155
|
-
parsedArgs = parseSubcommandArguments(argv, command);
|
|
156
|
-
} catch (err) {
|
|
157
|
-
if (client?.nonInteractive) {
|
|
158
|
-
const rawMessage = err instanceof Error ? err.message : String(err);
|
|
159
|
-
const flags = getGlobalFlagsFromArgs(client.argv.slice(2), {
|
|
160
|
-
preserveProject: true
|
|
161
|
-
});
|
|
162
|
-
let message = rawMessage;
|
|
163
|
-
let next = [
|
|
164
|
-
{
|
|
165
|
-
command: getCommandNamePlain(
|
|
166
|
-
`routes ${command.name} ${flags.join(" ")}`.trim()
|
|
167
|
-
),
|
|
168
|
-
when: "fix flags and retry"
|
|
169
|
-
}
|
|
170
|
-
];
|
|
171
|
-
const aiIdx = argv.indexOf("--ai");
|
|
172
|
-
const aiMissingValue = aiIdx !== -1 && (aiIdx === argv.length - 1 || argv[aiIdx + 1] !== void 0 && argv[aiIdx + 1].startsWith("-"));
|
|
173
|
-
const isAiArgError = aiMissingValue || /option requires argument.*--ai|--ai.*requires argument/i.test(
|
|
174
|
-
rawMessage
|
|
175
|
-
);
|
|
176
|
-
if (isAiArgError && (command.name === "add" || command.name === "edit")) {
|
|
177
|
-
message = command.name === "add" ? '--ai requires a description. Example: routes add --ai <description> --yes --non-interactive. Replace <description> with your text; use shell quotes if it contains spaces (e.g. --ai "Redirect /old to /new").' : "--ai requires a description. Example: routes edit <name-or-id> --ai <description> --yes --non-interactive. Replace placeholders; use shell quotes for <description> if it contains spaces.";
|
|
178
|
-
next = [
|
|
179
|
-
{
|
|
180
|
-
command: withGlobalFlags2(
|
|
181
|
-
client,
|
|
182
|
-
command.name === "add" ? `routes add --ai <description> --yes` : `routes edit <name-or-id> --ai <description> --yes`
|
|
183
|
-
),
|
|
184
|
-
when: "replace <description> with your text (quote it in the shell if it contains spaces), then run"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
command: getCommandNamePlain(
|
|
188
|
-
`routes ${command.name} --help ${flags.join(" ")}`.trim()
|
|
189
|
-
),
|
|
190
|
-
when: "see all flags"
|
|
191
|
-
}
|
|
192
|
-
];
|
|
193
|
-
}
|
|
194
|
-
outputAgentError(
|
|
195
|
-
client,
|
|
196
|
-
{
|
|
197
|
-
status: AGENT_STATUS.ERROR,
|
|
198
|
-
reason: AGENT_REASON.INVALID_ARGUMENTS,
|
|
199
|
-
message,
|
|
200
|
-
next
|
|
201
|
-
},
|
|
202
|
-
1
|
|
203
|
-
);
|
|
204
|
-
return 1;
|
|
205
|
-
}
|
|
206
|
-
printError(err);
|
|
207
|
-
return 1;
|
|
208
|
-
}
|
|
209
|
-
return parsedArgs;
|
|
210
|
-
}
|
|
211
|
-
async function confirmAction(client, skipConfirmation, message, details) {
|
|
212
|
-
if (skipConfirmation)
|
|
213
|
-
return true;
|
|
214
|
-
if (client.nonInteractive) {
|
|
215
|
-
outputAgentError(client, {
|
|
216
|
-
status: AGENT_STATUS.ERROR,
|
|
217
|
-
reason: AGENT_REASON.CONFIRMATION_REQUIRED,
|
|
218
|
-
message: `${message} Re-run with --yes to confirm.`,
|
|
219
|
-
next: [
|
|
220
|
-
{
|
|
221
|
-
command: buildCommandWithYes(client.argv),
|
|
222
|
-
when: "re-run with --yes to confirm"
|
|
223
|
-
}
|
|
224
|
-
]
|
|
225
|
-
});
|
|
226
|
-
process.exit(1);
|
|
227
|
-
return false;
|
|
228
|
-
}
|
|
229
|
-
if (details) {
|
|
230
|
-
output_manager_default.print(` ${details}
|
|
231
|
-
`);
|
|
232
|
-
}
|
|
233
|
-
return await client.input.confirm(message, false);
|
|
234
|
-
}
|
|
235
|
-
function formatCondition(condition) {
|
|
236
|
-
const parts = [import_chalk.default.gray(`[${condition.type}]`)];
|
|
237
|
-
if (condition.key) {
|
|
238
|
-
parts.push(import_chalk.default.cyan(condition.key));
|
|
239
|
-
}
|
|
240
|
-
if (condition.value !== void 0) {
|
|
241
|
-
const formatted = typeof condition.value === "string" ? condition.value : JSON.stringify(condition.value);
|
|
242
|
-
parts.push(condition.key ? `= ${formatted}` : formatted);
|
|
243
|
-
}
|
|
244
|
-
return parts.join(" ");
|
|
245
|
-
}
|
|
246
|
-
var TRANSFORM_TYPE_LABELS = {
|
|
247
|
-
"request.headers": "Request Header",
|
|
248
|
-
"request.query": "Request Query",
|
|
249
|
-
"response.headers": "Response Header",
|
|
250
|
-
"request.path": "Request Path"
|
|
251
|
-
};
|
|
252
|
-
var TRANSFORM_OP_LABELS = {
|
|
253
|
-
set: "set",
|
|
254
|
-
append: "append",
|
|
255
|
-
delete: "delete"
|
|
256
|
-
};
|
|
257
|
-
function formatTransform(transform, includeType = true) {
|
|
258
|
-
const opLabel = TRANSFORM_OP_LABELS[transform.op] ?? transform.op;
|
|
259
|
-
const key = isTargetTransform(transform) ? typeof transform.target.key === "string" ? transform.target.key : JSON.stringify(transform.target.key) : "path";
|
|
260
|
-
const parts = [];
|
|
261
|
-
if (includeType) {
|
|
262
|
-
const typeLabel = TRANSFORM_TYPE_LABELS[transform.type] ?? transform.type;
|
|
263
|
-
parts.push(import_chalk.default.gray(`[${typeLabel}]`));
|
|
264
|
-
}
|
|
265
|
-
parts.push(import_chalk.default.yellow(opLabel), import_chalk.default.cyan(key));
|
|
266
|
-
if (transform.args !== void 0 && transform.op !== "delete") {
|
|
267
|
-
const argsStr = Array.isArray(transform.args) ? transform.args.join(", ") : transform.args;
|
|
268
|
-
parts.push(`= ${argsStr}`);
|
|
269
|
-
}
|
|
270
|
-
return parts.join(" ");
|
|
271
|
-
}
|
|
272
|
-
function parsePosition(position) {
|
|
273
|
-
if (position === "start") {
|
|
274
|
-
return { placement: "start" };
|
|
275
|
-
}
|
|
276
|
-
if (position === "end") {
|
|
277
|
-
return { placement: "end" };
|
|
278
|
-
}
|
|
279
|
-
if (position.startsWith("after:")) {
|
|
280
|
-
const referenceId = position.slice(6);
|
|
281
|
-
if (!referenceId) {
|
|
282
|
-
throw new Error('Position "after:" requires a route ID');
|
|
283
|
-
}
|
|
284
|
-
return { placement: "after", referenceId };
|
|
285
|
-
}
|
|
286
|
-
if (position.startsWith("before:")) {
|
|
287
|
-
const referenceId = position.slice(7);
|
|
288
|
-
if (!referenceId) {
|
|
289
|
-
throw new Error('Position "before:" requires a route ID');
|
|
290
|
-
}
|
|
291
|
-
return { placement: "before", referenceId };
|
|
292
|
-
}
|
|
293
|
-
throw new Error(
|
|
294
|
-
`Invalid position: "${position}". Use: start, end, after:<id>, or before:<id>`
|
|
295
|
-
);
|
|
296
|
-
}
|
|
297
|
-
async function offerAutoPromote(client, projectId, version, hadExistingStagingVersion, opts) {
|
|
298
|
-
const { default: updateRouteVersion } = await import("./update-route-version-E3V47KNI.js");
|
|
299
|
-
const { default: stamp } = await import("./stamp-AA7R3MZS.js");
|
|
300
|
-
output_manager_default.print(
|
|
301
|
-
`
|
|
302
|
-
${import_chalk.default.gray(`This change is staged. Run ${import_chalk.default.cyan(withGlobalFlags2(client, "routes publish"))} to make it live, or ${import_chalk.default.cyan(withGlobalFlags2(client, "routes discard-staging"))} to undo.`)}
|
|
303
|
-
`
|
|
304
|
-
);
|
|
305
|
-
if (!hadExistingStagingVersion && !opts.skipPrompts) {
|
|
306
|
-
output_manager_default.print("\n");
|
|
307
|
-
const shouldPromote = await client.input.confirm(
|
|
308
|
-
"This is the only staged change. Promote to production now?",
|
|
309
|
-
false
|
|
310
|
-
);
|
|
311
|
-
if (shouldPromote) {
|
|
312
|
-
const promoteStamp = stamp();
|
|
313
|
-
output_manager_default.spinner("Promoting to production");
|
|
314
|
-
try {
|
|
315
|
-
await updateRouteVersion(client, projectId, version.id, "promote", {
|
|
316
|
-
teamId: opts.teamId
|
|
317
|
-
});
|
|
318
|
-
output_manager_default.log(
|
|
319
|
-
`${import_chalk.default.cyan("Promoted")} to production ${import_chalk.default.gray(promoteStamp())}`
|
|
320
|
-
);
|
|
321
|
-
} catch (e) {
|
|
322
|
-
const err = e;
|
|
323
|
-
output_manager_default.error(
|
|
324
|
-
`Failed to promote to production: ${err.message || "Unknown error"}`
|
|
325
|
-
);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
} else if (hadExistingStagingVersion) {
|
|
329
|
-
output_manager_default.warn(
|
|
330
|
-
`There are other staged changes. Review with ${import_chalk.default.cyan(withGlobalFlags2(client, "routes list --diff"))} before promoting.`
|
|
331
|
-
);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
function printDiffSummary(routes, maxDisplay = 10) {
|
|
335
|
-
const displayRoutes = routes.slice(0, maxDisplay);
|
|
336
|
-
for (const route of displayRoutes) {
|
|
337
|
-
const symbol = getDiffSymbol(route);
|
|
338
|
-
const label = getDiffLabel(route);
|
|
339
|
-
const routeType = getRouteTypeLabel(route);
|
|
340
|
-
output_manager_default.print(
|
|
341
|
-
` ${symbol} ${route.name}${routeType !== "-" ? ` ${import_chalk.default.gray(`(${routeType})`)}` : ""} ${import_chalk.default.gray(`- ${label}`)}
|
|
342
|
-
`
|
|
343
|
-
);
|
|
344
|
-
}
|
|
345
|
-
if (routes.length > maxDisplay) {
|
|
346
|
-
output_manager_default.print(
|
|
347
|
-
import_chalk.default.gray(`
|
|
348
|
-
... and ${routes.length - maxDisplay} more changes
|
|
349
|
-
`)
|
|
350
|
-
);
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
function getDiffSymbol(route) {
|
|
354
|
-
if (route.action === "+")
|
|
355
|
-
return import_chalk.default.green("+");
|
|
356
|
-
if (route.action === "-")
|
|
357
|
-
return import_chalk.default.red("-");
|
|
358
|
-
return import_chalk.default.yellow("~");
|
|
359
|
-
}
|
|
360
|
-
function getDiffLabel(route) {
|
|
361
|
-
if (route.action === "+")
|
|
362
|
-
return "Added";
|
|
363
|
-
if (route.action === "-")
|
|
364
|
-
return "Deleted";
|
|
365
|
-
const isReordered = route.previousIndex !== void 0 && route.newIndex !== void 0;
|
|
366
|
-
if (isReordered) {
|
|
367
|
-
return `Reordered (${route.previousIndex + 1} \u2192 ${route.newIndex + 1})`;
|
|
368
|
-
}
|
|
369
|
-
if (route.previousEnabled !== void 0) {
|
|
370
|
-
return route.enabled === false ? "Disabled" : "Enabled";
|
|
371
|
-
}
|
|
372
|
-
return "Modified";
|
|
373
|
-
}
|
|
374
|
-
async function resolveRoute(client, routes, identifier) {
|
|
375
|
-
const byId = routes.find((r) => r.id === identifier);
|
|
376
|
-
if (byId)
|
|
377
|
-
return byId;
|
|
378
|
-
const query = identifier.toLowerCase();
|
|
379
|
-
const matches = routes.filter(
|
|
380
|
-
(r) => r.name.toLowerCase() === query || r.name.toLowerCase().includes(query) || r.id.toLowerCase().includes(query)
|
|
381
|
-
);
|
|
382
|
-
if (matches.length === 0) {
|
|
383
|
-
return null;
|
|
384
|
-
}
|
|
385
|
-
if (matches.length === 1) {
|
|
386
|
-
return matches[0];
|
|
387
|
-
}
|
|
388
|
-
if (client.nonInteractive) {
|
|
389
|
-
outputAgentError(
|
|
390
|
-
client,
|
|
391
|
-
{
|
|
392
|
-
status: AGENT_STATUS.ERROR,
|
|
393
|
-
reason: AGENT_REASON.AMBIGUOUS_ROUTE,
|
|
394
|
-
message: `Multiple routes match "${identifier}" (${matches.length} matches). Pass an exact route name or ID.`,
|
|
395
|
-
next: [
|
|
396
|
-
{
|
|
397
|
-
command: withGlobalFlags2(client, "routes list"),
|
|
398
|
-
when: "list routes to get exact id"
|
|
399
|
-
}
|
|
400
|
-
]
|
|
401
|
-
},
|
|
402
|
-
1
|
|
403
|
-
);
|
|
404
|
-
return null;
|
|
405
|
-
}
|
|
406
|
-
const selectedId = await client.input.select({
|
|
407
|
-
message: `Multiple routes match "${identifier}". Select one:`,
|
|
408
|
-
choices: matches.map((route) => ({
|
|
409
|
-
value: route.id,
|
|
410
|
-
name: `${route.name} ${import_chalk.default.gray(`(${route.route.src})`)}`
|
|
411
|
-
}))
|
|
412
|
-
});
|
|
413
|
-
return matches.find((r) => r.id === selectedId) ?? null;
|
|
414
|
-
}
|
|
415
|
-
async function resolveRoutes(client, routes, identifiers) {
|
|
416
|
-
const resolved = /* @__PURE__ */ new Map();
|
|
417
|
-
for (const identifier of identifiers) {
|
|
418
|
-
const route = await resolveRoute(client, routes, identifier);
|
|
419
|
-
if (!route) {
|
|
420
|
-
if (client.nonInteractive) {
|
|
421
|
-
outputAgentError(
|
|
422
|
-
client,
|
|
423
|
-
{
|
|
424
|
-
status: AGENT_STATUS.ERROR,
|
|
425
|
-
reason: AGENT_REASON.NOT_FOUND,
|
|
426
|
-
message: `No route found matching "${identifier}".`,
|
|
427
|
-
next: [
|
|
428
|
-
{
|
|
429
|
-
command: withGlobalFlags2(client, "routes list"),
|
|
430
|
-
when: "list routes"
|
|
431
|
-
}
|
|
432
|
-
]
|
|
433
|
-
},
|
|
434
|
-
1
|
|
435
|
-
);
|
|
436
|
-
return null;
|
|
437
|
-
}
|
|
438
|
-
output_manager_default.error(
|
|
439
|
-
`No route found matching "${identifier}". Run ${import_chalk.default.cyan(withGlobalFlags2(client, "routes list"))} to see all routes.`
|
|
440
|
-
);
|
|
441
|
-
return null;
|
|
442
|
-
}
|
|
443
|
-
resolved.set(route.id, route);
|
|
444
|
-
}
|
|
445
|
-
return Array.from(resolved.values());
|
|
446
|
-
}
|
|
447
|
-
function findVersionById(client, versions, identifier) {
|
|
448
|
-
const matchingVersions = versions.filter((v) => v.id.startsWith(identifier));
|
|
449
|
-
if (matchingVersions.length === 0) {
|
|
450
|
-
return {
|
|
451
|
-
error: `Version "${identifier}" not found. Run ${import_chalk.default.cyan(
|
|
452
|
-
withGlobalFlags2(client, "routes list-versions")
|
|
453
|
-
)} to see available versions.`
|
|
454
|
-
};
|
|
455
|
-
}
|
|
456
|
-
if (matchingVersions.length > 1) {
|
|
457
|
-
return {
|
|
458
|
-
error: `Multiple versions match "${identifier}". Please provide a more specific ID:
|
|
459
|
-
${matchingVersions.map((v) => ` ${v.id}`).join("\n")}`
|
|
460
|
-
};
|
|
461
|
-
}
|
|
462
|
-
return { version: matchingVersions[0] };
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
// src/util/routes/get-routes.ts
|
|
466
|
-
async function getRoutes(client, projectId, options = {}) {
|
|
467
|
-
const { teamId, search, filter, versionId, diff } = options;
|
|
468
|
-
const query = new URLSearchParams();
|
|
469
|
-
if (teamId)
|
|
470
|
-
query.set("teamId", teamId);
|
|
471
|
-
if (search)
|
|
472
|
-
query.set("q", search);
|
|
473
|
-
if (filter)
|
|
474
|
-
query.set("filter", filter);
|
|
475
|
-
if (versionId)
|
|
476
|
-
query.set("versionId", versionId);
|
|
477
|
-
if (diff)
|
|
478
|
-
query.set("diff", "true");
|
|
479
|
-
const queryString = query.toString();
|
|
480
|
-
const url = `/v1/projects/${projectId}/routes${queryString ? `?${queryString}` : ""}`;
|
|
481
|
-
const response = await client.fetch(url);
|
|
482
|
-
return response;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
export {
|
|
486
|
-
requireProjectContext,
|
|
487
|
-
parseSubcommandArguments,
|
|
488
|
-
validateRequiredArguments,
|
|
489
|
-
getRouteTypeLabel,
|
|
490
|
-
getSrcSyntaxLabel,
|
|
491
|
-
isTargetTransform,
|
|
492
|
-
withGlobalFlags2 as withGlobalFlags,
|
|
493
|
-
shellQuoteRouteIdentifierForSuggestion,
|
|
494
|
-
parseSubcommandArgs,
|
|
495
|
-
confirmAction,
|
|
496
|
-
formatCondition,
|
|
497
|
-
TRANSFORM_TYPE_LABELS,
|
|
498
|
-
formatTransform,
|
|
499
|
-
parsePosition,
|
|
500
|
-
offerAutoPromote,
|
|
501
|
-
printDiffSummary,
|
|
502
|
-
resolveRoute,
|
|
503
|
-
resolveRoutes,
|
|
504
|
-
findVersionById,
|
|
505
|
-
getRoutes
|
|
506
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirname_(__filename);
|
|
7
|
-
var __create = Object.create;
|
|
8
|
-
var __defProp = Object.defineProperty;
|
|
9
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
11
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
12
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
13
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
14
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
15
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
16
|
-
}) : x)(function(x) {
|
|
17
|
-
if (typeof require !== "undefined")
|
|
18
|
-
return require.apply(this, arguments);
|
|
19
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
20
|
-
});
|
|
21
|
-
var __esm = (fn, res) => function __init() {
|
|
22
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
23
|
-
};
|
|
24
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
25
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
26
|
-
};
|
|
27
|
-
var __export = (target, all) => {
|
|
28
|
-
for (var name in all)
|
|
29
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
30
|
-
};
|
|
31
|
-
var __copyProps = (to, from, except, desc) => {
|
|
32
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
33
|
-
for (let key of __getOwnPropNames(from))
|
|
34
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
35
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
36
|
-
}
|
|
37
|
-
return to;
|
|
38
|
-
};
|
|
39
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
40
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
41
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
42
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
43
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
44
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
45
|
-
mod
|
|
46
|
-
));
|
|
47
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
|
-
var __publicField = (obj, key, value) => {
|
|
49
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
50
|
-
return value;
|
|
51
|
-
};
|
|
52
|
-
var __accessCheck = (obj, member, msg) => {
|
|
53
|
-
if (!member.has(obj))
|
|
54
|
-
throw TypeError("Cannot " + msg);
|
|
55
|
-
};
|
|
56
|
-
var __privateGet = (obj, member, getter) => {
|
|
57
|
-
__accessCheck(obj, member, "read from private field");
|
|
58
|
-
return getter ? getter.call(obj) : member.get(obj);
|
|
59
|
-
};
|
|
60
|
-
var __privateAdd = (obj, member, value) => {
|
|
61
|
-
if (member.has(obj))
|
|
62
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
63
|
-
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
64
|
-
};
|
|
65
|
-
var __privateSet = (obj, member, value, setter) => {
|
|
66
|
-
__accessCheck(obj, member, "write to private field");
|
|
67
|
-
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
68
|
-
return value;
|
|
69
|
-
};
|
|
70
|
-
var __privateMethod = (obj, member, method) => {
|
|
71
|
-
__accessCheck(obj, member, "access private method");
|
|
72
|
-
return method;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export {
|
|
76
|
-
__require,
|
|
77
|
-
__esm,
|
|
78
|
-
__commonJS,
|
|
79
|
-
__export,
|
|
80
|
-
__toESM,
|
|
81
|
-
__toCommonJS,
|
|
82
|
-
__publicField,
|
|
83
|
-
__privateGet,
|
|
84
|
-
__privateAdd,
|
|
85
|
-
__privateSet,
|
|
86
|
-
__privateMethod
|
|
87
|
-
};
|