vercel 59.13.1 → 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-A3NYPUKZ.js → chunk-BRK4OB4B.js} +1 -11
- 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-O26N2UPI.js → chunk-CZSOZKHX.js} +1 -9
- 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-WEQVJSYS.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-QR7QPUFN.js +7 -0
- 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/{pkg-56KRLZ5K.js → chunk-T3GQAMBJ.js} +1 -7
- package/dist/chunks/chunk-T52FMXWC.js +7 -0
- package/dist/chunks/{chunk-2473DUBR.js → chunk-TG2RCYTH.js} +1 -9
- 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/{update-route-version-E3V47KNI.js → chunk-XD2LZRBS.js} +1 -7
- package/dist/chunks/{chunk-64IF634X.js → chunk-XFVGX5HG.js} +1 -12
- package/dist/chunks/chunk-XHOGOH6N.js +7 -0
- package/dist/chunks/chunk-XPXOV5UO.js +7 -0
- 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 -4918
- 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 +1204 -86657
- package/dist/help.js +1 -8
- package/dist/index.js +19 -2591
- package/dist/version.mjs +1 -1
- package/package.json +48 -49
- package/dist/chunks/add-7OX6PBFD.js +0 -145
- package/dist/chunks/add-7RYUFBZ3.js +0 -221
- package/dist/chunks/add-FX5WWUXU.js +0 -196
- package/dist/chunks/build-Q3TR46K4.js +0 -251
- package/dist/chunks/chunk-26CU4Q3C.js +0 -598
- package/dist/chunks/chunk-2GXA4NGG.js +0 -163
- package/dist/chunks/chunk-2HSQ7YUK.js +0 -93
- package/dist/chunks/chunk-2JIX6UMI.js +0 -4626
- package/dist/chunks/chunk-2QFYCMKN.js +0 -3495
- package/dist/chunks/chunk-332LMJLZ.js +0 -16014
- package/dist/chunks/chunk-3FIEWWMM.js +0 -59
- 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-57RHXXXG.js +0 -150
- package/dist/chunks/chunk-5AJPMLDV.js +0 -28
- package/dist/chunks/chunk-5JDX6XOS.js +0 -1536
- package/dist/chunks/chunk-5NF5HOBJ.js +0 -1854
- package/dist/chunks/chunk-5ORMFNXL.js +0 -13413
- package/dist/chunks/chunk-66LPM47Z.js +0 -137
- package/dist/chunks/chunk-6E6KPBXY.js +0 -43
- package/dist/chunks/chunk-76CB3CF2.js +0 -522
- package/dist/chunks/chunk-7F5RNOTP.js +0 -14059
- 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-AKLTIZCU.js +0 -46
- package/dist/chunks/chunk-B5XLQKHI.js +0 -849
- package/dist/chunks/chunk-BEQV3X2L.js +0 -86
- package/dist/chunks/chunk-CJV7J7B5.js +0 -314
- package/dist/chunks/chunk-CV5YC2EN.js +0 -867
- package/dist/chunks/chunk-DQ23J2KG.js +0 -305
- package/dist/chunks/chunk-E336ZXPP.js +0 -43
- package/dist/chunks/chunk-EDMW7SBH.js +0 -246
- package/dist/chunks/chunk-EEV2LKFC.js +0 -58
- package/dist/chunks/chunk-EFYMIIER.js +0 -40
- package/dist/chunks/chunk-EIBH6FCR.js +0 -253
- package/dist/chunks/chunk-EKPSCRJZ.js +0 -26
- package/dist/chunks/chunk-EOZFDJSY.js +0 -18
- package/dist/chunks/chunk-EZKW5YJ2.js +0 -177
- package/dist/chunks/chunk-F4S6Q4OY.js +0 -79
- package/dist/chunks/chunk-FGDKMNEN.js +0 -21
- package/dist/chunks/chunk-FRVG4OW3.js +0 -7438
- 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-GQRG7VFK.js +0 -257
- 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-IK6PC2JA.js +0 -1288
- package/dist/chunks/chunk-IUC3TR3S.js +0 -92
- package/dist/chunks/chunk-JIK2FUMT.js +0 -1892
- package/dist/chunks/chunk-JSD4EZL3.js +0 -34
- package/dist/chunks/chunk-K3RED3VO.js +0 -566
- package/dist/chunks/chunk-KFWQ3EFH.js +0 -151
- package/dist/chunks/chunk-KU2WCB6G.js +0 -1708
- package/dist/chunks/chunk-KW7BS25T.js +0 -466
- package/dist/chunks/chunk-KXDWXXJH.js +0 -70
- package/dist/chunks/chunk-KXTXGYG7.js +0 -577
- package/dist/chunks/chunk-L4H3DP65.js +0 -417
- package/dist/chunks/chunk-LE5V7G2U.js +0 -559
- package/dist/chunks/chunk-LVCCV2YJ.js +0 -324
- package/dist/chunks/chunk-MUGF3SGQ.js +0 -49
- 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-NSGRICJ2.js +0 -506
- package/dist/chunks/chunk-NW34PW6V.js +0 -1772
- package/dist/chunks/chunk-OAMU5QO6.js +0 -18
- 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-QRFRS2JH.js +0 -242
- package/dist/chunks/chunk-QSJ6Q5QP.js +0 -255
- package/dist/chunks/chunk-RBIFXFZX.js +0 -52
- package/dist/chunks/chunk-RN6V5ODW.js +0 -114
- package/dist/chunks/chunk-RVBZ64EQ.js +0 -52
- package/dist/chunks/chunk-S3HYE6ZE.js +0 -61
- package/dist/chunks/chunk-S7KYDPEM.js +0 -1564
- package/dist/chunks/chunk-SLPSPYVR.js +0 -334
- package/dist/chunks/chunk-SPRQ4IBQ.js +0 -11441
- package/dist/chunks/chunk-T3NB7VQG.js +0 -2399
- package/dist/chunks/chunk-TLPHZ7M4.js +0 -81
- package/dist/chunks/chunk-TO7QZGYK.js +0 -105
- package/dist/chunks/chunk-TOXZAP5I.js +0 -90
- package/dist/chunks/chunk-TZ2YI2VH.js +0 -87
- package/dist/chunks/chunk-U4ZLWJQD.js +0 -2914
- package/dist/chunks/chunk-UG2WOB5L.js +0 -150
- package/dist/chunks/chunk-UXKNSAP2.js +0 -233
- package/dist/chunks/chunk-V4RMJKQP.js +0 -36
- package/dist/chunks/chunk-VGIMO3ZK.js +0 -17
- package/dist/chunks/chunk-VP5Y3SZG.js +0 -106
- package/dist/chunks/chunk-VUS2JQB2.js +0 -121
- package/dist/chunks/chunk-VXYGCOKL.js +0 -28
- package/dist/chunks/chunk-WGGABYO5.js +0 -31
- package/dist/chunks/chunk-XDGOOW3K.js +0 -60
- package/dist/chunks/chunk-XEVKGAVI.js +0 -2099
- 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-Z6YZMXVN.js +0 -233
- 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-GIAFWC5X.js +0 -141
- package/dist/chunks/compile-vercel-config-QJGEQKK4.js +0 -33
- package/dist/chunks/config-AOA2HS4R.js +0 -168
- package/dist/chunks/config-HYBSW733.js +0 -127
- package/dist/chunks/delete-BBFI75A2.js +0 -226
- package/dist/chunks/delete-DJ7RI2NX.js +0 -159
- package/dist/chunks/detect-projects-ODNU4PK2.js +0 -18
- package/dist/chunks/detect-services-Q2DVXVMH.js +0 -40
- package/dist/chunks/disable-P7X2V5LS.js +0 -198
- package/dist/chunks/discard-JNQBH4XU.js +0 -145
- package/dist/chunks/edit-AXQEMBQC.js +0 -162
- package/dist/chunks/edit-BO3GXEKA.js +0 -647
- package/dist/chunks/enable-NC4BN7EQ.js +0 -204
- package/dist/chunks/exec-4IPHZ55G.js +0 -1291
- package/dist/chunks/export-HQ42UNYD.js +0 -177
- package/dist/chunks/fetch-proxy-R3JZNXBZ.js +0 -99
- package/dist/chunks/image-UM4FQYOA.js +0 -75
- package/dist/chunks/import-builders-F6SWNCHK.js +0 -39
- package/dist/chunks/inspect-EXEA57MP.js +0 -145
- package/dist/chunks/inspect-H3M3XJNB.js +0 -596
- package/dist/chunks/inspect-MTNQOLNM.js +0 -175
- package/dist/chunks/inspect-PYFF2K4X.js +0 -171
- package/dist/chunks/inspect-XF324IQ2.js +0 -216
- package/dist/chunks/list-4JHZJUBS.js +0 -426
- package/dist/chunks/list-YEN54SGY.js +0 -387
- package/dist/chunks/list-ZKD2O4D2.js +0 -404
- package/dist/chunks/login-56KGZQI2.js +0 -233
- package/dist/chunks/ls-ELYVF6EU.js +0 -223
- package/dist/chunks/ls-HZEMZY2R.js +0 -188
- package/dist/chunks/ls-IJW74NG3.js +0 -175
- package/dist/chunks/ls-OAGYLILX.js +0 -210
- package/dist/chunks/ls-QNTHMTIH.js +0 -183
- package/dist/chunks/ls-WW5UFH5B.js +0 -204
- package/dist/chunks/open-D2E5TEKN.js +0 -116
- package/dist/chunks/permissions-CFUXWXSK.js +0 -99
- package/dist/chunks/publish-BP4IUYNM.js +0 -155
- package/dist/chunks/pull-DL72B6RW.js +0 -45
- package/dist/chunks/push-6YCS4YQW.js +0 -191
- package/dist/chunks/query-7N3YB4LE.js +0 -725
- package/dist/chunks/reorder-YJN36TPT.js +0 -412
- package/dist/chunks/reply-3U3O7LNG.js +0 -176
- package/dist/chunks/resolve-TT75WCWT.js +0 -237
- package/dist/chunks/resolve-deployment-framework-preset-NPE6RLV3.js +0 -36
- package/dist/chunks/restore-6UF6W23A.js +0 -252
- package/dist/chunks/rm-3QIDFPVA.js +0 -162
- package/dist/chunks/rm-6MJ7ZPXQ.js +0 -148
- package/dist/chunks/rm-JZRS2NBH.js +0 -147
- package/dist/chunks/rm-KI4W2HYP.js +0 -322
- package/dist/chunks/rm-QCQXVB54.js +0 -195
- package/dist/chunks/routes-QVMBXOSX.js +0 -24
- package/dist/chunks/rule-inspect-PX73J52Q.js +0 -123
- package/dist/chunks/rules-Q334NBUC.js +0 -89
- package/dist/chunks/schema-GRTOHAZO.js +0 -381
- package/dist/chunks/schema-YV3XYL3A.js +0 -237
- package/dist/chunks/set-J3AQKL6V.js +0 -250
- package/dist/chunks/setup-and-link-R5N7WJ46.js +0 -65
- package/dist/chunks/stamp-AA7R3MZS.js +0 -16
- package/dist/chunks/tags-2VLJ4VIH.js +0 -69
- package/dist/chunks/types-4GAJ7XQQ.js +0 -116
- package/dist/chunks/update-VMS45VF2.js +0 -224
- package/dist/chunks/vlt-builder-importer-USCFHWPL.js +0 -322
|
@@ -1,242 +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
|
-
ellipsis
|
|
9
|
-
} from "./chunk-OAMU5QO6.js";
|
|
10
|
-
import {
|
|
11
|
-
require_ms
|
|
12
|
-
} from "./chunk-GGP5R3FU.js";
|
|
13
|
-
import {
|
|
14
|
-
ALIGNED_LABEL_WIDTH
|
|
15
|
-
} from "./chunk-7F5RNOTP.js";
|
|
16
|
-
import {
|
|
17
|
-
require_source
|
|
18
|
-
} from "./chunk-S7KYDPEM.js";
|
|
19
|
-
import {
|
|
20
|
-
__toESM
|
|
21
|
-
} from "./chunk-TZ2YI2VH.js";
|
|
22
|
-
|
|
23
|
-
// src/commands/comments/format.ts
|
|
24
|
-
var import_chalk = __toESM(require_source(), 1);
|
|
25
|
-
var import_ms = __toESM(require_ms(), 1);
|
|
26
|
-
function alignedRow(label, value) {
|
|
27
|
-
return ` ${import_chalk.default.bold(label.padEnd(ALIGNED_LABEL_WIDTH))}${value}`;
|
|
28
|
-
}
|
|
29
|
-
function actorLabel(actor) {
|
|
30
|
-
if (!actor) {
|
|
31
|
-
return "-";
|
|
32
|
-
}
|
|
33
|
-
const base = actor.name || actor.username || actor.id;
|
|
34
|
-
return actor.type === "app" ? `${base} (app)` : base;
|
|
35
|
-
}
|
|
36
|
-
function relativeAge(timestamp) {
|
|
37
|
-
if (!timestamp || !Number.isFinite(timestamp)) {
|
|
38
|
-
return "-";
|
|
39
|
-
}
|
|
40
|
-
const delta = Date.now() - timestamp;
|
|
41
|
-
if (delta < 1e3) {
|
|
42
|
-
return "now";
|
|
43
|
-
}
|
|
44
|
-
return (0, import_ms.default)(delta);
|
|
45
|
-
}
|
|
46
|
-
function displayPath(thread) {
|
|
47
|
-
const href = thread.context?.href;
|
|
48
|
-
if (href) {
|
|
49
|
-
try {
|
|
50
|
-
return new URL(href).pathname;
|
|
51
|
-
} catch {
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return thread.context?.path || "/";
|
|
55
|
-
}
|
|
56
|
-
function truncate(text, max) {
|
|
57
|
-
return ellipsis(text.replace(/\s+/g, " ").trim(), max);
|
|
58
|
-
}
|
|
59
|
-
function firstMessageText(thread) {
|
|
60
|
-
return thread.messages[0]?.text ?? "";
|
|
61
|
-
}
|
|
62
|
-
function threadAge(thread) {
|
|
63
|
-
return relativeAge(thread.messages[0]?.timestamp);
|
|
64
|
-
}
|
|
65
|
-
function renderThreadSummary(thread, complete) {
|
|
66
|
-
const replies = thread.messageCount - 1;
|
|
67
|
-
const rootAuthorId = complete ? thread.messages[0]?.author.id : void 0;
|
|
68
|
-
const names = [];
|
|
69
|
-
const seen = /* @__PURE__ */ new Set();
|
|
70
|
-
for (const message of thread.messages) {
|
|
71
|
-
const { author } = message;
|
|
72
|
-
if (author.id === rootAuthorId || seen.has(author.id)) {
|
|
73
|
-
continue;
|
|
74
|
-
}
|
|
75
|
-
seen.add(author.id);
|
|
76
|
-
names.push(actorLabel(author));
|
|
77
|
-
}
|
|
78
|
-
const shown = names.slice(0, 3);
|
|
79
|
-
const overflow = names.length - shown.length;
|
|
80
|
-
const participants = shown.length > 0 ? `${shown.join(", ")}${overflow > 0 ? ` +${overflow} more` : ""}` : void 0;
|
|
81
|
-
const lastTimestamp = thread.messages[thread.messages.length - 1]?.timestamp;
|
|
82
|
-
const parts = [`\u2192 ${replies} ${replies === 1 ? "reply" : "replies"}`];
|
|
83
|
-
if (participants) {
|
|
84
|
-
parts.push(participants);
|
|
85
|
-
}
|
|
86
|
-
parts.push(`last ${relativeAge(lastTimestamp)} ago`);
|
|
87
|
-
return parts.join(" \xB7 ");
|
|
88
|
-
}
|
|
89
|
-
function renderThreadRow(thread, opts) {
|
|
90
|
-
const complete = thread.messageCount <= thread.messages.length;
|
|
91
|
-
const dot = thread.resolved ? import_chalk.default.dim("\u25CB") : "\u25CF";
|
|
92
|
-
const author = complete ? actorLabel(thread.messages[0]?.author) : "\u2026";
|
|
93
|
-
const columns = [
|
|
94
|
-
dot,
|
|
95
|
-
thread.id,
|
|
96
|
-
import_chalk.default.dim(threadAge(thread)),
|
|
97
|
-
author,
|
|
98
|
-
displayPath(thread)
|
|
99
|
-
];
|
|
100
|
-
if (opts.showBranch && thread.branch) {
|
|
101
|
-
columns.push(import_chalk.default.dim(thread.branch));
|
|
102
|
-
}
|
|
103
|
-
if (thread.isLocalhost) {
|
|
104
|
-
columns.push(import_chalk.default.dim("localhost"));
|
|
105
|
-
}
|
|
106
|
-
const lines = [` ${columns.join(" ")}`];
|
|
107
|
-
if (complete) {
|
|
108
|
-
const excerpt = truncate(firstMessageText(thread), 80);
|
|
109
|
-
if (excerpt) {
|
|
110
|
-
lines.push(` \u201C${excerpt}\u201D`);
|
|
111
|
-
}
|
|
112
|
-
} else {
|
|
113
|
-
lines.push(
|
|
114
|
-
import_chalk.default.dim(" (long thread \u2014 inspect for the full conversation)")
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
const selection = thread.context?.selection;
|
|
118
|
-
if (selection) {
|
|
119
|
-
lines.push(import_chalk.default.dim(` \u2192 selected: \u201C${truncate(selection, 60)}\u201D`));
|
|
120
|
-
}
|
|
121
|
-
if (thread.messageCount > 1) {
|
|
122
|
-
lines.push(import_chalk.default.dim(` ${renderThreadSummary(thread, complete)}`));
|
|
123
|
-
}
|
|
124
|
-
const meta = [];
|
|
125
|
-
const reactionCount = thread.messages.reduce(
|
|
126
|
-
(acc, message) => acc + (message.reactions?.length ?? 0),
|
|
127
|
-
0
|
|
128
|
-
);
|
|
129
|
-
if (reactionCount > 0) {
|
|
130
|
-
meta.push(
|
|
131
|
-
`${reactionCount} ${reactionCount === 1 ? "reaction" : "reactions"}`
|
|
132
|
-
);
|
|
133
|
-
}
|
|
134
|
-
const attachmentCount = thread.messages.reduce(
|
|
135
|
-
(acc, message) => acc + (message.attachments?.length ?? 0),
|
|
136
|
-
0
|
|
137
|
-
);
|
|
138
|
-
if (attachmentCount > 0) {
|
|
139
|
-
meta.push(
|
|
140
|
-
`${attachmentCount} ${attachmentCount === 1 ? "attachment" : "attachments"}`
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
if (thread.resolved) {
|
|
144
|
-
meta.push(`resolved by ${actorLabel(thread.resolvedBy)}`);
|
|
145
|
-
}
|
|
146
|
-
if (meta.length > 0) {
|
|
147
|
-
lines.push(import_chalk.default.dim(` ${meta.join(" \xB7 ")}`));
|
|
148
|
-
}
|
|
149
|
-
return lines.join("\n");
|
|
150
|
-
}
|
|
151
|
-
function renderReactions(message) {
|
|
152
|
-
if (!message.reactions || message.reactions.length === 0) {
|
|
153
|
-
return void 0;
|
|
154
|
-
}
|
|
155
|
-
return message.reactions.map((r) => `${r.emoji} ${r.name} \xB7 ${r.users.length}`).join(" ");
|
|
156
|
-
}
|
|
157
|
-
function renderMessage(message) {
|
|
158
|
-
const lines = [
|
|
159
|
-
`${import_chalk.default.bold(actorLabel(message.author))} \xB7 ${relativeAge(message.timestamp)} ago \xB7 ${import_chalk.default.dim(message.id)}`
|
|
160
|
-
];
|
|
161
|
-
for (const textLine of message.text.split("\n")) {
|
|
162
|
-
lines.push(` ${textLine}`);
|
|
163
|
-
}
|
|
164
|
-
for (const attachment of message.attachments ?? []) {
|
|
165
|
-
const dimensions = attachment.width && attachment.height ? ` (${attachment.width}\xD7${attachment.height})` : "";
|
|
166
|
-
lines.push(
|
|
167
|
-
`${import_chalk.default.dim(` \u2192 attachment ${attachment.filename}${dimensions}`)} ${import_chalk.default.cyan(attachment.url)}`
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
const reactions = renderReactions(message);
|
|
171
|
-
if (reactions) {
|
|
172
|
-
lines.push(` ${reactions}`);
|
|
173
|
-
}
|
|
174
|
-
return lines.join("\n");
|
|
175
|
-
}
|
|
176
|
-
function renderThreadDetail(thread, messages, opts) {
|
|
177
|
-
const sections = [];
|
|
178
|
-
const status = thread.resolved ? import_chalk.default.dim(`resolved by ${actorLabel(thread.resolvedBy)}`) : "unresolved";
|
|
179
|
-
const headline = [import_chalk.default.bold(thread.id), status];
|
|
180
|
-
if (thread.branch) {
|
|
181
|
-
headline.push(import_chalk.default.dim(thread.branch));
|
|
182
|
-
}
|
|
183
|
-
if (thread.isLocalhost) {
|
|
184
|
-
headline.push(import_chalk.default.dim("localhost"));
|
|
185
|
-
}
|
|
186
|
-
sections.push(headline.join(" \xB7 "));
|
|
187
|
-
const headerLines = [];
|
|
188
|
-
const path = displayPath(thread);
|
|
189
|
-
const pageTitle = thread.context?.pageTitle;
|
|
190
|
-
headerLines.push(pageTitle ? `${path} \u2014 \u201C${pageTitle}\u201D` : path);
|
|
191
|
-
if (thread.context?.href) {
|
|
192
|
-
headerLines.push(import_chalk.default.cyan(thread.context.href));
|
|
193
|
-
}
|
|
194
|
-
sections.push(headerLines.join("\n"));
|
|
195
|
-
const contextLines = [];
|
|
196
|
-
if (thread.context?.selection) {
|
|
197
|
-
contextLines.push(alignedRow("Selected", `\u201C${thread.context.selection}\u201D`));
|
|
198
|
-
}
|
|
199
|
-
if (thread.context?.selector) {
|
|
200
|
-
contextLines.push(alignedRow("Element", thread.context.selector));
|
|
201
|
-
}
|
|
202
|
-
for (const link of thread.links ?? []) {
|
|
203
|
-
contextLines.push(
|
|
204
|
-
alignedRow("Linked", `${link.label} \u2014 ${import_chalk.default.cyan(link.link)}`)
|
|
205
|
-
);
|
|
206
|
-
}
|
|
207
|
-
if (contextLines.length > 0) {
|
|
208
|
-
sections.push(contextLines.join("\n"));
|
|
209
|
-
}
|
|
210
|
-
sections.push(messages.map(renderMessage).join("\n\n"));
|
|
211
|
-
if (opts.showContext) {
|
|
212
|
-
const extra = [];
|
|
213
|
-
if (thread.context?.frameworkContext) {
|
|
214
|
-
extra.push(
|
|
215
|
-
`${import_chalk.default.bold("Framework context")}
|
|
216
|
-
${thread.context.frameworkContext}`
|
|
217
|
-
);
|
|
218
|
-
}
|
|
219
|
-
if (thread.context?.device) {
|
|
220
|
-
extra.push(
|
|
221
|
-
`${import_chalk.default.bold("Device")}
|
|
222
|
-
${JSON.stringify(thread.context.device, null, 2)}`
|
|
223
|
-
);
|
|
224
|
-
}
|
|
225
|
-
if (extra.length > 0) {
|
|
226
|
-
sections.push(extra.join("\n\n"));
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
if (thread.webUrl) {
|
|
230
|
-
sections.push(`Open in Vercel \u2192 ${import_chalk.default.cyan(thread.webUrl)}`);
|
|
231
|
-
}
|
|
232
|
-
return sections.join("\n\n");
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
export {
|
|
236
|
-
actorLabel,
|
|
237
|
-
displayPath,
|
|
238
|
-
truncate,
|
|
239
|
-
threadAge,
|
|
240
|
-
renderThreadRow,
|
|
241
|
-
renderThreadDetail
|
|
242
|
-
};
|
|
@@ -1,255 +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
|
-
outputError,
|
|
9
|
-
writeJsonError
|
|
10
|
-
} from "./chunk-KFWQ3EFH.js";
|
|
11
|
-
import {
|
|
12
|
-
resolveProjectContext
|
|
13
|
-
} from "./chunk-3FIEWWMM.js";
|
|
14
|
-
import {
|
|
15
|
-
detectExplicitScope,
|
|
16
|
-
getScope
|
|
17
|
-
} from "./chunk-76CB3CF2.js";
|
|
18
|
-
import {
|
|
19
|
-
printError
|
|
20
|
-
} from "./chunk-3VM7HWF6.js";
|
|
21
|
-
import {
|
|
22
|
-
getLinkedProject
|
|
23
|
-
} from "./chunk-7F5RNOTP.js";
|
|
24
|
-
import {
|
|
25
|
-
isAPIError
|
|
26
|
-
} from "./chunk-CV5YC2EN.js";
|
|
27
|
-
import {
|
|
28
|
-
getCommandName
|
|
29
|
-
} from "./chunk-Q2DGFCO7.js";
|
|
30
|
-
import {
|
|
31
|
-
output_manager_default
|
|
32
|
-
} from "./chunk-2JIX6UMI.js";
|
|
33
|
-
|
|
34
|
-
// src/commands/comments/errors.ts
|
|
35
|
-
function handleCommentsParseError(err, subcommandName) {
|
|
36
|
-
printError(err);
|
|
37
|
-
if (err instanceof Error && /unknown or unexpected option: -[^-]/.test(err.message)) {
|
|
38
|
-
output_manager_default.log(
|
|
39
|
-
`An argument starting with "-"? Put it after \`--\`: ${getCommandName(`comments ${subcommandName} -- <arg>`)}`
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
output_manager_default.log(
|
|
43
|
-
`Run ${getCommandName(`comments ${subcommandName} --help`)} for usage.`
|
|
44
|
-
);
|
|
45
|
-
return 1;
|
|
46
|
-
}
|
|
47
|
-
function threadNotFoundMessage(threadId, scope) {
|
|
48
|
-
return `Comment not found: ${threadId} in team ${scope.teamSlug ?? scope.teamId}. If it belongs to another team, pass --scope <team>.`;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// src/commands/comments/api.ts
|
|
52
|
-
function query(teamId, params = {}) {
|
|
53
|
-
const search = new URLSearchParams({ teamId });
|
|
54
|
-
for (const [key, value] of Object.entries(params)) {
|
|
55
|
-
if (value === void 0) {
|
|
56
|
-
continue;
|
|
57
|
-
}
|
|
58
|
-
if (Array.isArray(value)) {
|
|
59
|
-
for (const entry of value) {
|
|
60
|
-
search.append(key, entry);
|
|
61
|
-
}
|
|
62
|
-
} else {
|
|
63
|
-
search.set(key, String(value));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return search.toString();
|
|
67
|
-
}
|
|
68
|
-
var fetchOpts = { useCurrentTeam: false };
|
|
69
|
-
function listThreads(client, teamId, params) {
|
|
70
|
-
return client.fetch(
|
|
71
|
-
`/toolbar/threads?${query(teamId, { ...params })}`,
|
|
72
|
-
fetchOpts
|
|
73
|
-
);
|
|
74
|
-
}
|
|
75
|
-
function getThread(client, teamId, threadId) {
|
|
76
|
-
return client.fetch(
|
|
77
|
-
`/toolbar/threads/${encodeURIComponent(threadId)}?${query(teamId)}`,
|
|
78
|
-
fetchOpts
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
function updateThread(client, teamId, threadId, resolved) {
|
|
82
|
-
return client.fetch(
|
|
83
|
-
`/toolbar/threads/${encodeURIComponent(threadId)}?${query(teamId)}`,
|
|
84
|
-
{ ...fetchOpts, method: "PATCH", body: { resolved } }
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
function listMessages(client, teamId, threadId, opts = {}) {
|
|
88
|
-
return client.fetch(
|
|
89
|
-
`/toolbar/threads/${encodeURIComponent(threadId)}/messages?${query(teamId, { ...opts })}`,
|
|
90
|
-
fetchOpts
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
function addMessage(client, teamId, threadId, body) {
|
|
94
|
-
return client.fetch(
|
|
95
|
-
`/toolbar/threads/${encodeURIComponent(threadId)}/messages?${query(teamId)}`,
|
|
96
|
-
{ ...fetchOpts, method: "POST", body }
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
function updateMessage(client, teamId, threadId, messageId, body) {
|
|
100
|
-
return client.fetch(
|
|
101
|
-
`/toolbar/threads/${encodeURIComponent(threadId)}/messages/${encodeURIComponent(messageId)}?${query(teamId)}`,
|
|
102
|
-
{ ...fetchOpts, method: "PATCH", body }
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
function deleteMessage(client, teamId, threadId, messageId) {
|
|
106
|
-
return client.fetch(
|
|
107
|
-
`/toolbar/threads/${encodeURIComponent(threadId)}/messages/${encodeURIComponent(messageId)}?${query(teamId)}`,
|
|
108
|
-
{ ...fetchOpts, method: "DELETE" }
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
function toApiErrorParts(err) {
|
|
112
|
-
const apiErr = err;
|
|
113
|
-
return {
|
|
114
|
-
code: apiErr.code || "API_ERROR",
|
|
115
|
-
message: apiErr.serverMessage || `API error (${apiErr.status ?? "unknown"}).`
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// src/commands/comments/scope.ts
|
|
120
|
-
import { spawnSync } from "child_process";
|
|
121
|
-
async function resolveCommentsScope(client, opts) {
|
|
122
|
-
if (opts.urlTeamSlug && !opts.project && !detectExplicitScope(client)) {
|
|
123
|
-
return { teamId: opts.urlTeamSlug, teamSlug: opts.urlTeamSlug };
|
|
124
|
-
}
|
|
125
|
-
if (opts.project) {
|
|
126
|
-
let context;
|
|
127
|
-
try {
|
|
128
|
-
context = await resolveProjectContext({
|
|
129
|
-
client,
|
|
130
|
-
projectNameOrId: opts.project,
|
|
131
|
-
projectNotFoundHandling: opts.jsonOutput ? "return" : "report"
|
|
132
|
-
});
|
|
133
|
-
} catch (err) {
|
|
134
|
-
if (isAPIError(err)) {
|
|
135
|
-
return outputError(
|
|
136
|
-
client,
|
|
137
|
-
opts.jsonOutput,
|
|
138
|
-
err.code || "API_ERROR",
|
|
139
|
-
err.serverMessage || `API error (${err.status}).`
|
|
140
|
-
);
|
|
141
|
-
}
|
|
142
|
-
throw err;
|
|
143
|
-
}
|
|
144
|
-
if (context.status === "error") {
|
|
145
|
-
if (opts.jsonOutput) {
|
|
146
|
-
writeJsonError(
|
|
147
|
-
client,
|
|
148
|
-
"PROJECT_CONTEXT_ERROR",
|
|
149
|
-
"Could not resolve the project context."
|
|
150
|
-
);
|
|
151
|
-
}
|
|
152
|
-
return context.exitCode;
|
|
153
|
-
}
|
|
154
|
-
if (context.status === "not_linked") {
|
|
155
|
-
return outputError(
|
|
156
|
-
client,
|
|
157
|
-
opts.jsonOutput,
|
|
158
|
-
"PROJECT_NOT_FOUND",
|
|
159
|
-
`Project "${opts.project}" was not found in the current scope.`
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
return {
|
|
163
|
-
teamId: context.org.id,
|
|
164
|
-
teamSlug: context.org.slug,
|
|
165
|
-
projectId: context.project.id,
|
|
166
|
-
projectName: context.project.name,
|
|
167
|
-
linked: Boolean(context.repoRoot)
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
const linked = await getLinkedProject(client);
|
|
171
|
-
if (linked.status === "error") {
|
|
172
|
-
return linked.exitCode;
|
|
173
|
-
}
|
|
174
|
-
if (linked.status === "linked") {
|
|
175
|
-
if (detectExplicitScope(client)) {
|
|
176
|
-
const { team: team2 } = await getScope(client);
|
|
177
|
-
if (!team2) {
|
|
178
|
-
return outputError(
|
|
179
|
-
client,
|
|
180
|
-
opts.jsonOutput,
|
|
181
|
-
"NO_TEAM",
|
|
182
|
-
"No team context found for --scope."
|
|
183
|
-
);
|
|
184
|
-
}
|
|
185
|
-
if (team2.id !== linked.org.id) {
|
|
186
|
-
if (opts.requireProject) {
|
|
187
|
-
return outputError(
|
|
188
|
-
client,
|
|
189
|
-
opts.jsonOutput,
|
|
190
|
-
"SCOPE_PROJECT_MISMATCH",
|
|
191
|
-
`--scope ${team2.slug} does not match the linked project's team (${linked.org.slug}). Pass --project <name-or-id> for a project in ${team2.slug}.`
|
|
192
|
-
);
|
|
193
|
-
}
|
|
194
|
-
return { teamId: team2.id, teamSlug: team2.slug };
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
return {
|
|
198
|
-
teamId: linked.org.id,
|
|
199
|
-
teamSlug: linked.org.slug,
|
|
200
|
-
projectId: linked.project.id,
|
|
201
|
-
projectName: linked.project.name,
|
|
202
|
-
linked: true
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
if (opts.requireProject) {
|
|
206
|
-
return outputError(
|
|
207
|
-
client,
|
|
208
|
-
opts.jsonOutput,
|
|
209
|
-
"NOT_LINKED",
|
|
210
|
-
"No linked project found. Run `vercel link` to link a project, or pass --project <name-or-id>."
|
|
211
|
-
);
|
|
212
|
-
}
|
|
213
|
-
const { team } = await getScope(client);
|
|
214
|
-
if (!team) {
|
|
215
|
-
return outputError(
|
|
216
|
-
client,
|
|
217
|
-
opts.jsonOutput,
|
|
218
|
-
"NO_TEAM",
|
|
219
|
-
"No team context found. Run `vercel switch` to select a team, or run `vercel link` in a project directory."
|
|
220
|
-
);
|
|
221
|
-
}
|
|
222
|
-
return { teamId: team.id, teamSlug: team.slug };
|
|
223
|
-
}
|
|
224
|
-
function inferBranch(cwd) {
|
|
225
|
-
const result = spawnSync("git", ["rev-parse", "--abbrev-ref", "HEAD"], {
|
|
226
|
-
cwd,
|
|
227
|
-
encoding: "utf8"
|
|
228
|
-
});
|
|
229
|
-
if (result.status === 0) {
|
|
230
|
-
const branch = result.stdout.trim();
|
|
231
|
-
if (branch && branch !== "HEAD") {
|
|
232
|
-
return { value: branch, source: "git" };
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
const ciRef = process.env.VERCEL_GIT_COMMIT_REF || process.env.GITHUB_HEAD_REF || process.env.GITHUB_REF_NAME;
|
|
236
|
-
if (ciRef) {
|
|
237
|
-
return { value: ciRef, source: "ci" };
|
|
238
|
-
}
|
|
239
|
-
return void 0;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
export {
|
|
243
|
-
handleCommentsParseError,
|
|
244
|
-
threadNotFoundMessage,
|
|
245
|
-
listThreads,
|
|
246
|
-
getThread,
|
|
247
|
-
updateThread,
|
|
248
|
-
listMessages,
|
|
249
|
-
addMessage,
|
|
250
|
-
updateMessage,
|
|
251
|
-
deleteMessage,
|
|
252
|
-
toApiErrorParts,
|
|
253
|
-
resolveCommentsScope,
|
|
254
|
-
inferBranch
|
|
255
|
-
};
|
|
@@ -1,52 +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
|
-
|
|
8
|
-
// src/commands/vcr/utils/image-ref.ts
|
|
9
|
-
var REPOSITORY_PATTERN = /^[a-z0-9]+(?:(?:\.|_|__|-+)[a-z0-9]+)*$/;
|
|
10
|
-
var TAG_PATTERN = /^[a-zA-Z0-9_][a-zA-Z0-9._-]{0,127}$/;
|
|
11
|
-
var DEFAULT_TAG = "latest";
|
|
12
|
-
function parseNameArg(nameArg, defaultRepo) {
|
|
13
|
-
if (!nameArg) {
|
|
14
|
-
return { repository: defaultRepo, tag: void 0 };
|
|
15
|
-
}
|
|
16
|
-
if (nameArg.includes("/")) {
|
|
17
|
-
return {
|
|
18
|
-
error: `Invalid image name "${nameArg}". Provide only a repository name (optionally with :tag); the registry, team, and project are added automatically.`
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
const colon = nameArg.lastIndexOf(":");
|
|
22
|
-
if (colon === -1) {
|
|
23
|
-
return { repository: nameArg, tag: void 0 };
|
|
24
|
-
}
|
|
25
|
-
const repository = nameArg.slice(0, colon);
|
|
26
|
-
const tag = nameArg.slice(colon + 1);
|
|
27
|
-
if (!repository) {
|
|
28
|
-
return {
|
|
29
|
-
error: `Invalid image name "${nameArg}". Missing repository name before ":".`
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
return { repository, tag };
|
|
33
|
-
}
|
|
34
|
-
function validateImageParts(parts) {
|
|
35
|
-
if (!REPOSITORY_PATTERN.test(parts.repository)) {
|
|
36
|
-
return `Invalid repository name "${parts.repository}". Use lowercase letters, digits, and separators (\`.\` \`_\` \`-\`), for example "my-app". Pass a valid name explicitly, e.g. \`... my-app\`.`;
|
|
37
|
-
}
|
|
38
|
-
if (parts.tag !== void 0 && !TAG_PATTERN.test(parts.tag)) {
|
|
39
|
-
return `Invalid tag "${parts.tag}". Tags may contain letters, digits, "_", ".", "-" and be up to 128 characters.`;
|
|
40
|
-
}
|
|
41
|
-
return void 0;
|
|
42
|
-
}
|
|
43
|
-
function buildRepositoryReference(parts) {
|
|
44
|
-
return `${parts.registry}/${parts.teamSlug}/${parts.projectName}/${parts.repository}`;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export {
|
|
48
|
-
DEFAULT_TAG,
|
|
49
|
-
parseNameArg,
|
|
50
|
-
validateImageParts,
|
|
51
|
-
buildRepositoryReference
|
|
52
|
-
};
|
|
@@ -1,114 +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
|
-
CertConfigurationError,
|
|
9
|
-
CertError,
|
|
10
|
-
DeploymentNotFound,
|
|
11
|
-
DeploymentPermissionDenied,
|
|
12
|
-
DomainNotFound,
|
|
13
|
-
InvalidDeploymentId,
|
|
14
|
-
TooManyRequests,
|
|
15
|
-
isAPIError
|
|
16
|
-
} from "./chunk-CV5YC2EN.js";
|
|
17
|
-
import {
|
|
18
|
-
output_manager_default
|
|
19
|
-
} from "./chunk-2JIX6UMI.js";
|
|
20
|
-
|
|
21
|
-
// src/util/parse-target.ts
|
|
22
|
-
function parseTarget({
|
|
23
|
-
flagName,
|
|
24
|
-
flags
|
|
25
|
-
}) {
|
|
26
|
-
const targetFlagName = `--${flagName}`;
|
|
27
|
-
const targetFlagValue = flags[targetFlagName];
|
|
28
|
-
const prodFlagValue = flags["--prod"];
|
|
29
|
-
if (prodFlagValue && targetFlagValue) {
|
|
30
|
-
output_manager_default.warn(
|
|
31
|
-
`Both \`--prod\` and \`${targetFlagName}\` detected. Ignoring \`--prod\`.`
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
if (typeof targetFlagValue === "string") {
|
|
35
|
-
output_manager_default.debug(`Setting target to ${targetFlagValue}`);
|
|
36
|
-
return targetFlagValue;
|
|
37
|
-
}
|
|
38
|
-
if (prodFlagValue) {
|
|
39
|
-
output_manager_default.debug("Setting target to production");
|
|
40
|
-
return "production";
|
|
41
|
-
}
|
|
42
|
-
return void 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// src/util/to-host.ts
|
|
46
|
-
function toHost(url) {
|
|
47
|
-
return url.replace(/^(?:.*?\/\/)?([^/]+).*/, "$1");
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// src/util/certs/map-cert-error.ts
|
|
51
|
-
function mapCertError(error, cns) {
|
|
52
|
-
const errorCode = error.code;
|
|
53
|
-
if (errorCode === "too_many_requests") {
|
|
54
|
-
const retryAfter = typeof error.retryAfterMs === "number" ? error.retryAfterMs : 0;
|
|
55
|
-
return new TooManyRequests("certificates", retryAfter);
|
|
56
|
-
}
|
|
57
|
-
if (errorCode === "not_found") {
|
|
58
|
-
return new DomainNotFound(error.domain);
|
|
59
|
-
}
|
|
60
|
-
if (errorCode === "configuration_error") {
|
|
61
|
-
return new CertConfigurationError({
|
|
62
|
-
cns: cns || error.cns || [],
|
|
63
|
-
message: error.message,
|
|
64
|
-
external: error.external,
|
|
65
|
-
helpUrl: error.helpUrl,
|
|
66
|
-
type: error.statusCode === 449 ? "http-01" : "dns-01"
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
if (errorCode === "bad_domains" || errorCode === "challenge_still_pending" || errorCode === "common_name_domain_name_mismatch" || errorCode === "conflicting_caa_record" || errorCode === "domain_not_verified" || errorCode === "invalid_cn" || errorCode === "invalid_domain" || errorCode === "rate_limited" || errorCode === "should_share_root_domain" || errorCode === "unauthorized_request_error" || errorCode === "unsupported_challenge_priority" || errorCode === "wildcard_not_allowed" || errorCode === "validation_running" || errorCode === "dns_error" || errorCode === "challenge_error" || errorCode === "txt_record_not_found") {
|
|
70
|
-
return new CertError({
|
|
71
|
-
cns: cns || error.cns || [],
|
|
72
|
-
code: errorCode,
|
|
73
|
-
message: error.message,
|
|
74
|
-
helpUrl: error.helpUrl
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return null;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// src/util/get-deployment.ts
|
|
81
|
-
async function getDeployment(client, contextName, hostOrId) {
|
|
82
|
-
if (hostOrId.includes(".")) {
|
|
83
|
-
hostOrId = toHost(hostOrId);
|
|
84
|
-
}
|
|
85
|
-
try {
|
|
86
|
-
return await client.fetch(
|
|
87
|
-
`/v13/deployments/${encodeURIComponent(hostOrId)}`
|
|
88
|
-
);
|
|
89
|
-
} catch (err) {
|
|
90
|
-
if (isAPIError(err)) {
|
|
91
|
-
if (err.status === 404) {
|
|
92
|
-
throw new DeploymentNotFound({ id: hostOrId, context: contextName });
|
|
93
|
-
}
|
|
94
|
-
if (err.status === 403) {
|
|
95
|
-
throw new DeploymentPermissionDenied(hostOrId, contextName);
|
|
96
|
-
}
|
|
97
|
-
if (err.status === 400 && err.message.includes("`id`")) {
|
|
98
|
-
throw new InvalidDeploymentId(hostOrId);
|
|
99
|
-
}
|
|
100
|
-
const certError = mapCertError(err);
|
|
101
|
-
if (certError) {
|
|
102
|
-
throw certError;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
throw err;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export {
|
|
110
|
-
parseTarget,
|
|
111
|
-
mapCertError,
|
|
112
|
-
toHost,
|
|
113
|
-
getDeployment
|
|
114
|
-
};
|