vercel 58.1.0 → 58.3.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-QKP6ZCHQ.js → add-3RKTVRL7.js} +10 -8
- package/dist/chunks/{add-WKV7KU4Y.js → add-X634O3US.js} +12 -9
- package/dist/chunks/add-YTFWON7N.js +187 -0
- package/dist/chunks/{build-ZXEK6YEA.js → build-DJIDUWYB.js} +12 -9
- package/dist/chunks/{chunk-E4LXCO7U.js → chunk-2SFMOCWR.js} +1 -1
- package/dist/chunks/{chunk-NYURBHZJ.js → chunk-3KNPVXJ3.js} +1 -1
- package/dist/chunks/chunk-3ZE5CFVM.js +346 -0
- package/dist/chunks/{chunk-AX3N4MO2.js → chunk-4LDQIDRM.js} +1 -1
- package/dist/chunks/{chunk-LXA2GZ7U.js → chunk-4N7XLXM2.js} +1 -1
- package/dist/chunks/{chunk-75MDJ6TK.js → chunk-4UYKSYKQ.js} +1 -1
- package/dist/chunks/{chunk-OVW5WUCR.js → chunk-5YXUTGSY.js} +1 -1
- package/dist/chunks/{chunk-OG7DIS52.js → chunk-752Z4JQP.js} +1 -1
- package/dist/chunks/{chunk-VSMCQSGH.js → chunk-7QVJTI5H.js} +1 -1
- package/dist/chunks/{chunk-TCBOCSWF.js → chunk-A5KP5HAI.js} +1 -1
- package/dist/chunks/{chunk-V6WHZAPP.js → chunk-AW5YINX6.js} +8 -4
- package/dist/chunks/{chunk-YITWM37U.js → chunk-AZNCOIGT.js} +2 -2
- package/dist/chunks/{chunk-NGYOR3MN.js → chunk-B3JTF4CF.js} +1 -1
- package/dist/chunks/{chunk-4QVAYRYH.js → chunk-BEQV3X2L.js} +16 -1
- package/dist/chunks/{chunk-DKS4XDVC.js → chunk-BM5FP7VW.js} +7 -5
- package/dist/chunks/{chunk-3YARBN7P.js → chunk-C33L5ZKY.js} +4 -4
- package/dist/chunks/{chunk-XTQADJ6S.js → chunk-C6BDHNNF.js} +3 -3
- package/dist/chunks/{chunk-TPB4F5XN.js → chunk-CSJBZKC5.js} +1 -1
- package/dist/chunks/{chunk-QCB22TQG.js → chunk-D3EEVTWR.js} +2 -2
- package/dist/chunks/{chunk-XAWGGWSG.js → chunk-EBLH23AQ.js} +2 -2
- package/dist/chunks/{chunk-32IPC6RB.js → chunk-GFG6QDIE.js} +1 -1
- package/dist/chunks/{chunk-CSI7GEDD.js → chunk-IH5JOYGQ.js} +2 -2
- package/dist/chunks/chunk-J6LK45HT.js +163 -0
- package/dist/chunks/{chunk-CXICXWXJ.js → chunk-JID5CRQL.js} +3 -3
- package/dist/chunks/{chunk-FBPCJV72.js → chunk-JLWQWYKO.js} +2 -2
- package/dist/chunks/{chunk-RL7X7JGK.js → chunk-KBEX5MYS.js} +1 -136
- package/dist/chunks/{chunk-LA3BQQQK.js → chunk-KT4XXKJK.js} +1 -1
- package/dist/chunks/{chunk-FR352QKR.js → chunk-M22O6CYY.js} +1 -1
- package/dist/chunks/{chunk-XTLNPNWY.js → chunk-MAHXF73X.js} +2 -2
- package/dist/chunks/{chunk-KLNWR2JI.js → chunk-MTW6MVY7.js} +10 -8
- package/dist/chunks/{chunk-JNP3FQR3.js → chunk-NVSQ6KXI.js} +1 -1
- package/dist/chunks/{chunk-KY3ZOYJW.js → chunk-O5GNPPTU.js} +1 -1
- package/dist/chunks/{chunk-BAUVB2VF.js → chunk-OTQD3MHJ.js} +4 -4
- package/dist/chunks/{chunk-C267R2FA.js → chunk-PNXQB4IO.js} +5 -5
- package/dist/chunks/{chunk-552YY6QY.js → chunk-QZV24TDR.js} +10 -8
- package/dist/chunks/{chunk-TF627KEI.js → chunk-RQ7H43CJ.js} +1 -1
- package/dist/chunks/{chunk-JA3QX2H6.js → chunk-RUOBMMEA.js} +2 -2
- package/dist/chunks/{chunk-U6PPDPR5.js → chunk-SOFC4MLS.js} +1 -0
- package/dist/chunks/{chunk-HXTQVMJZ.js → chunk-UDDCOV62.js} +2 -2
- package/dist/chunks/{chunk-5AG7MR7W.js → chunk-UJNNTGJY.js} +3 -3
- package/dist/chunks/{chunk-4LSERVQQ.js → chunk-UQJMDWCY.js} +7 -5
- package/dist/chunks/{chunk-2D22CMQ7.js → chunk-WXJ6E3MY.js} +6 -4
- package/dist/chunks/{chunk-4I7DTZAJ.js → chunk-XIG4GH62.js} +2 -2
- package/dist/chunks/chunk-XLKFJPMT.js +150 -0
- package/dist/chunks/{chunk-S7LXRKLD.js → chunk-Z5ZQJ5VJ.js} +14 -14
- package/dist/chunks/{chunk-6QUKJKFX.js → chunk-ZPH66MB6.js} +313 -290
- package/dist/chunks/{chunk-P7IO46BQ.js → chunk-ZX2FSPWV.js} +2 -2
- package/dist/chunks/clear-J3OCB2DQ.js +132 -0
- package/dist/chunks/{compile-vercel-config-AFGCQEYG.js → compile-vercel-config-G2WILJR4.js} +5 -4
- package/dist/chunks/{delete-UGSJQBE7.js → delete-3NQLU7PQ.js} +7 -6
- package/dist/chunks/{delete-Y5LNEZXI.js → delete-HKUZTZE7.js} +7 -6
- package/dist/chunks/{disable-IF3AHKJD.js → disable-7AIA4JV3.js} +7 -6
- package/dist/chunks/{discard-Y6GZBIHJ.js → discard-MIGUGPGO.js} +7 -6
- package/dist/chunks/{edit-6TGJKUI5.js → edit-3AU746TG.js} +8 -7
- package/dist/chunks/{edit-HNMKZ3YT.js → edit-MDQW3S4R.js} +7 -6
- package/dist/chunks/{enable-SE4QM4X3.js → enable-EGNWRQEI.js} +7 -6
- package/dist/chunks/{export-5AYL7HCJ.js → export-EMBHNUMU.js} +7 -6
- package/dist/chunks/{image-6BYNQVGW.js → image-XXZ5DRIW.js} +5 -5
- package/dist/chunks/{inspect-FGYXO4K5.js → inspect-7V5ZHBBB.js} +13 -11
- package/dist/chunks/{inspect-LTHZUXA2.js → inspect-MYUNZMLJ.js} +10 -8
- package/dist/chunks/{inspect-3KCFHDWA.js → inspect-O7SVDBHM.js} +13 -10
- package/dist/chunks/{inspect-DPTRYDFH.js → inspect-S5WJ47OH.js} +8 -7
- package/dist/chunks/{inspect-MA36GG73.js → inspect-TXVTHRAZ.js} +10 -8
- package/dist/chunks/{list-BTOXZBQK.js → list-BQLJJACX.js} +13 -11
- package/dist/chunks/{list-VTQZSIIT.js → list-LC2ON7OM.js} +8 -6
- package/dist/chunks/{list-OCW34SRV.js → list-NZ4ZOO6B.js} +8 -7
- package/dist/chunks/{login-VSXLK5ZU.js → login-4B7KPSUW.js} +12 -9
- package/dist/chunks/ls-4J2WGR7U.js +178 -0
- package/dist/chunks/{ls-DRI2AOFB.js → ls-7XMM4KCU.js} +14 -11
- package/dist/chunks/{ls-76YTWNKD.js → ls-FRSKR6K2.js} +11 -9
- package/dist/chunks/{ls-3UA57DZZ.js → ls-TWNQ7KZN.js} +13 -11
- package/dist/chunks/{ls-ZBLTJ5RE.js → ls-WCTLFAPI.js} +11 -9
- package/dist/chunks/{open-DVKAE5HP.js → open-J4SAVWUP.js} +7 -6
- package/dist/chunks/permissions-67T43WNH.js +95 -0
- package/dist/chunks/{publish-F5C4ZA7M.js → publish-CSXOTJLD.js} +7 -6
- package/dist/chunks/{push-PKJFQTLO.js → push-7KOVRV5N.js} +12 -9
- package/dist/chunks/{query-GT5LCT45.js → query-CTRPYYXR.js} +12 -10
- package/dist/chunks/{reorder-AQW4XFDS.js → reorder-E4PPJNEX.js} +7 -6
- package/dist/chunks/{reply-FI7SADGU.js → reply-Z742BMF3.js} +7 -6
- package/dist/chunks/{resolve-C5G7JJZJ.js → resolve-KPZJZ6IQ.js} +7 -6
- package/dist/chunks/{restore-5TLSHQOS.js → restore-ZTH2FY4I.js} +7 -6
- package/dist/chunks/{rm-2EN66OYO.js → rm-C4ODJDWP.js} +10 -8
- package/dist/chunks/{rm-L7OQPCIE.js → rm-DE37CFKU.js} +13 -10
- package/dist/chunks/{rm-C37BHGQI.js → rm-FVGLSIHP.js} +10 -8
- package/dist/chunks/rm-VOFJM4XW.js +186 -0
- package/dist/chunks/{rule-inspect-V5DRHOTZ.js → rule-inspect-6RLS3ZNB.js} +13 -11
- package/dist/chunks/{rules-5XEMLN5G.js → rules-VSXJT2QE.js} +8 -8
- package/dist/chunks/{schema-UEOZVBY5.js → schema-3E24G2AG.js} +11 -9
- package/dist/chunks/{tags-ZGANV4YD.js → tags-AIZLNITP.js} +4 -4
- package/dist/chunks/{types-IKWGLSDF.js → types-QTOA2BTQ.js} +7 -5
- package/dist/chunks/{update-DHWSMSMS.js → update-QHWT7YG4.js} +10 -8
- package/dist/commands/build/index.js +15 -15
- package/dist/commands/deploy/index.js +28 -25
- package/dist/commands/dev/index.js +85 -17
- package/dist/commands/env/index.js +27 -24
- package/dist/commands/link/index.js +25 -22
- package/dist/commands/list/index.js +11 -9
- package/dist/commands-bulk.js +2204 -1817
- package/dist/help.js +1 -1
- package/dist/index.js +37 -34
- package/dist/version.mjs +1 -1
- package/package.json +38 -31
|
@@ -6,14 +6,14 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
rulesAggregateCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4UYKSYKQ.js";
|
|
10
10
|
import {
|
|
11
11
|
formatOption,
|
|
12
12
|
jsonOption,
|
|
13
13
|
limitOption,
|
|
14
14
|
packageName,
|
|
15
15
|
projectOption
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SOFC4MLS.js";
|
|
17
17
|
|
|
18
18
|
// src/commands/alerts/command.ts
|
|
19
19
|
var listSubcommand = {
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
writeProjectSettings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5YXUTGSY.js";
|
|
10
10
|
import {
|
|
11
11
|
autoInstallVercelPlugin
|
|
12
12
|
} from "./chunk-NJUPUGOE.js";
|
|
@@ -15,30 +15,32 @@ import {
|
|
|
15
15
|
} from "./chunk-64IF634X.js";
|
|
16
16
|
import {
|
|
17
17
|
ensureLink
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-C33L5ZKY.js";
|
|
19
19
|
import {
|
|
20
20
|
pullCommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RUOBMMEA.js";
|
|
22
22
|
import {
|
|
23
23
|
help
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZX2FSPWV.js";
|
|
25
25
|
import {
|
|
26
26
|
VERCEL_DIR,
|
|
27
27
|
VERCEL_DIR_PROJECT,
|
|
28
28
|
envPullCommandLogic,
|
|
29
29
|
humanizePath,
|
|
30
30
|
parseTarget
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-BM5FP7VW.js";
|
|
32
32
|
import {
|
|
33
33
|
TelemetryClient
|
|
34
34
|
} from "./chunk-ECCWJHC6.js";
|
|
35
35
|
import {
|
|
36
|
-
parseArguments,
|
|
37
36
|
printError
|
|
38
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-KBEX5MYS.js";
|
|
38
|
+
import {
|
|
39
|
+
parseArguments
|
|
40
|
+
} from "./chunk-XLKFJPMT.js";
|
|
39
41
|
import {
|
|
40
42
|
getFlagsSpecification
|
|
41
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-SOFC4MLS.js";
|
|
42
44
|
import {
|
|
43
45
|
emoji,
|
|
44
46
|
output_manager_default,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-V4RMJKQP.js";
|
|
11
11
|
import {
|
|
12
12
|
table
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KT4XXKJK.js";
|
|
14
14
|
import {
|
|
15
15
|
Separator,
|
|
16
16
|
VERCEL_DIR_PROJECT,
|
|
@@ -46,15 +46,15 @@ import {
|
|
|
46
46
|
selectAndParseRemoteUrl,
|
|
47
47
|
selectOrg,
|
|
48
48
|
writeServicesConfig
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-BM5FP7VW.js";
|
|
50
50
|
import {
|
|
51
51
|
printError
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-KBEX5MYS.js";
|
|
53
53
|
import {
|
|
54
54
|
CantParseJSONFile,
|
|
55
55
|
ProjectNotFound,
|
|
56
56
|
isAPIError
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-SOFC4MLS.js";
|
|
58
58
|
import {
|
|
59
59
|
output_manager_default
|
|
60
60
|
} from "./chunk-OX7KI3LF.js";
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
progress,
|
|
14
14
|
require_dist as require_dist2,
|
|
15
15
|
sleep
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WXJ6E3MY.js";
|
|
17
17
|
import {
|
|
18
18
|
suggestNextCommands
|
|
19
19
|
} from "./chunk-XBN2O34P.js";
|
|
20
20
|
import {
|
|
21
21
|
CommandTimeout
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZPH66MB6.js";
|
|
23
23
|
import {
|
|
24
24
|
showPluginTipIfNeeded
|
|
25
25
|
} from "./chunk-NJUPUGOE.js";
|
|
@@ -36,11 +36,11 @@ import {
|
|
|
36
36
|
require_dist as require_dist3,
|
|
37
37
|
require_pluralize,
|
|
38
38
|
ua_default
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-BM5FP7VW.js";
|
|
40
40
|
import {
|
|
41
41
|
require_strip_ansi,
|
|
42
42
|
responseError
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-KBEX5MYS.js";
|
|
44
44
|
import {
|
|
45
45
|
APIError,
|
|
46
46
|
BuildError,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
getCommandName,
|
|
59
59
|
isAPIError,
|
|
60
60
|
require_bytes
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-SOFC4MLS.js";
|
|
62
62
|
import {
|
|
63
63
|
Headers,
|
|
64
64
|
fetch,
|
|
@@ -7,10 +7,10 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommandInfo,
|
|
9
9
|
isGlobal
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AZNCOIGT.js";
|
|
11
11
|
import {
|
|
12
12
|
progress
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WXJ6E3MY.js";
|
|
14
14
|
import {
|
|
15
15
|
validateJsonOutput
|
|
16
16
|
} from "./chunk-XPKWKPWA.js";
|
|
@@ -18,31 +18,33 @@ import {
|
|
|
18
18
|
apiCommand,
|
|
19
19
|
listSubcommand4 as listSubcommand,
|
|
20
20
|
loginCommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZPH66MB6.js";
|
|
22
22
|
import {
|
|
23
23
|
require_semver
|
|
24
24
|
} from "./chunk-IB5L4LKZ.js";
|
|
25
25
|
import {
|
|
26
26
|
help
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZX2FSPWV.js";
|
|
28
28
|
import {
|
|
29
29
|
getGlobalPathConfig,
|
|
30
30
|
login,
|
|
31
31
|
writeToConfigFile
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BM5FP7VW.js";
|
|
33
33
|
import {
|
|
34
34
|
TelemetryClient,
|
|
35
35
|
isNativeBinaryInstall
|
|
36
36
|
} from "./chunk-ECCWJHC6.js";
|
|
37
37
|
import {
|
|
38
|
-
parseArguments,
|
|
39
38
|
printError,
|
|
40
39
|
require_strip_ansi
|
|
41
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-KBEX5MYS.js";
|
|
41
|
+
import {
|
|
42
|
+
parseArguments
|
|
43
|
+
} from "./chunk-XLKFJPMT.js";
|
|
42
44
|
import {
|
|
43
45
|
getFlagsSpecification,
|
|
44
46
|
packageName
|
|
45
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-SOFC4MLS.js";
|
|
46
48
|
import {
|
|
47
49
|
pkg_default
|
|
48
50
|
} from "./chunk-P4QNYOFB.js";
|
|
@@ -6,12 +6,12 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getEnvTargetPlaceholder
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BM5FP7VW.js";
|
|
10
10
|
import {
|
|
11
11
|
packageName,
|
|
12
12
|
projectOption,
|
|
13
13
|
yesOption
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SOFC4MLS.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/build/command.ts
|
|
17
17
|
var buildCommand = {
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveAlertsScope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JID5CRQL.js";
|
|
10
10
|
import {
|
|
11
11
|
handleValidationError,
|
|
12
12
|
outputError,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
AGENT_REASON,
|
|
17
17
|
buildCommandWithGlobalFlags,
|
|
18
18
|
outputAgentError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Z5ZQJ5VJ.js";
|
|
20
20
|
|
|
21
21
|
// src/commands/alerts/rules/parse-scope.ts
|
|
22
22
|
async function parseRulesFlagsAndScope(client, flags, jsonOutput, command = "alerts rules ls") {
|
|
@@ -11,15 +11,15 @@ import {
|
|
|
11
11
|
getLinkedProject,
|
|
12
12
|
getProjectByNameOrId,
|
|
13
13
|
getScope
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BM5FP7VW.js";
|
|
15
15
|
import {
|
|
16
16
|
printError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KBEX5MYS.js";
|
|
18
18
|
import {
|
|
19
19
|
ProjectNotFound,
|
|
20
20
|
getCommandName,
|
|
21
21
|
isAPIError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SOFC4MLS.js";
|
|
23
23
|
import {
|
|
24
24
|
output_manager_default
|
|
25
25
|
} from "./chunk-OX7KI3LF.js";
|
|
@@ -6,24 +6,26 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProjectContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BM5FP7VW.js";
|
|
10
10
|
import {
|
|
11
11
|
AGENT_REASON,
|
|
12
12
|
AGENT_STATUS,
|
|
13
13
|
buildCommandWithYes,
|
|
14
14
|
outputAgentError,
|
|
15
15
|
withGlobalFlags
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-Z5ZQJ5VJ.js";
|
|
17
17
|
import {
|
|
18
|
-
parseArguments,
|
|
19
18
|
printError
|
|
20
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KBEX5MYS.js";
|
|
20
|
+
import {
|
|
21
|
+
parseArguments
|
|
22
|
+
} from "./chunk-XLKFJPMT.js";
|
|
21
23
|
import {
|
|
22
24
|
getCommandName,
|
|
23
25
|
getCommandNamePlain,
|
|
24
26
|
getFlagsSpecification,
|
|
25
27
|
getGlobalFlagsFromArgs
|
|
26
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-SOFC4MLS.js";
|
|
27
29
|
import {
|
|
28
30
|
output_manager_default
|
|
29
31
|
} from "./chunk-OX7KI3LF.js";
|
|
@@ -31,14 +31,16 @@ import {
|
|
|
31
31
|
usePrefix,
|
|
32
32
|
useState,
|
|
33
33
|
writeToConfigFile
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-BM5FP7VW.js";
|
|
35
35
|
import {
|
|
36
|
-
parseArguments,
|
|
37
36
|
require_strip_ansi
|
|
38
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-KBEX5MYS.js";
|
|
38
|
+
import {
|
|
39
|
+
parseArguments
|
|
40
|
+
} from "./chunk-XLKFJPMT.js";
|
|
39
41
|
import {
|
|
40
42
|
APIError
|
|
41
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-SOFC4MLS.js";
|
|
42
44
|
import {
|
|
43
45
|
pkg_default
|
|
44
46
|
} from "./chunk-P4QNYOFB.js";
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
} from "./chunk-A3NYPUKZ.js";
|
|
17
17
|
import {
|
|
18
18
|
ellipsizeMiddle
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RQ7H43CJ.js";
|
|
20
20
|
import {
|
|
21
21
|
elapsed
|
|
22
22
|
} from "./chunk-VXYGCOKL.js";
|
|
23
23
|
import {
|
|
24
24
|
table
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KT4XXKJK.js";
|
|
26
26
|
import {
|
|
27
27
|
require_ms
|
|
28
28
|
} from "./chunk-GGP5R3FU.js";
|
|
@@ -0,0 +1,150 @@
|
|
|
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
|
+
arg_common_default
|
|
9
|
+
} from "./chunk-SOFC4MLS.js";
|
|
10
|
+
import {
|
|
11
|
+
__commonJS,
|
|
12
|
+
__toESM
|
|
13
|
+
} from "./chunk-TZ2YI2VH.js";
|
|
14
|
+
|
|
15
|
+
// ../../node_modules/.pnpm/arg@5.0.0/node_modules/arg/index.js
|
|
16
|
+
var require_arg = __commonJS({
|
|
17
|
+
"../../node_modules/.pnpm/arg@5.0.0/node_modules/arg/index.js"(exports, module) {
|
|
18
|
+
var flagSymbol = Symbol("arg flag");
|
|
19
|
+
var ArgError = class _ArgError extends Error {
|
|
20
|
+
constructor(msg, code) {
|
|
21
|
+
super(msg);
|
|
22
|
+
this.name = "ArgError";
|
|
23
|
+
this.code = code;
|
|
24
|
+
Object.setPrototypeOf(this, _ArgError.prototype);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
function arg2(opts, { argv = process.argv.slice(2), permissive = false, stopAtPositional = false } = {}) {
|
|
28
|
+
if (!opts) {
|
|
29
|
+
throw new ArgError("argument specification object is required", "ARG_CONFIG_NO_SPEC");
|
|
30
|
+
}
|
|
31
|
+
const result = { _: [] };
|
|
32
|
+
const aliases = {};
|
|
33
|
+
const handlers = {};
|
|
34
|
+
for (const key of Object.keys(opts)) {
|
|
35
|
+
if (!key) {
|
|
36
|
+
throw new ArgError("argument key cannot be an empty string", "ARG_CONFIG_EMPTY_KEY");
|
|
37
|
+
}
|
|
38
|
+
if (key[0] !== "-") {
|
|
39
|
+
throw new ArgError(`argument key must start with '-' but found: '${key}'`, "ARG_CONFIG_NONOPT_KEY");
|
|
40
|
+
}
|
|
41
|
+
if (key.length === 1) {
|
|
42
|
+
throw new ArgError(`argument key must have a name; singular '-' keys are not allowed: ${key}`, "ARG_CONFIG_NONAME_KEY");
|
|
43
|
+
}
|
|
44
|
+
if (typeof opts[key] === "string") {
|
|
45
|
+
aliases[key] = opts[key];
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
let type = opts[key];
|
|
49
|
+
let isFlag = false;
|
|
50
|
+
if (Array.isArray(type) && type.length === 1 && typeof type[0] === "function") {
|
|
51
|
+
const [fn] = type;
|
|
52
|
+
type = (value, name, prev = []) => {
|
|
53
|
+
prev.push(fn(value, name, prev[prev.length - 1]));
|
|
54
|
+
return prev;
|
|
55
|
+
};
|
|
56
|
+
isFlag = fn === Boolean || fn[flagSymbol] === true;
|
|
57
|
+
} else if (typeof type === "function") {
|
|
58
|
+
isFlag = type === Boolean || type[flagSymbol] === true;
|
|
59
|
+
} else {
|
|
60
|
+
throw new ArgError(`type missing or not a function or valid array type: ${key}`, "ARG_CONFIG_VAD_TYPE");
|
|
61
|
+
}
|
|
62
|
+
if (key[1] !== "-" && key.length > 2) {
|
|
63
|
+
throw new ArgError(`short argument keys (with a single hyphen) must have only one character: ${key}`, "ARG_CONFIG_SHORTOPT_TOOLONG");
|
|
64
|
+
}
|
|
65
|
+
handlers[key] = [type, isFlag];
|
|
66
|
+
}
|
|
67
|
+
for (let i = 0, len = argv.length; i < len; i++) {
|
|
68
|
+
const wholeArg = argv[i];
|
|
69
|
+
if (stopAtPositional && result._.length > 0) {
|
|
70
|
+
result._ = result._.concat(argv.slice(i));
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
if (wholeArg === "--") {
|
|
74
|
+
result._ = result._.concat(argv.slice(i + 1));
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
if (wholeArg.length > 1 && wholeArg[0] === "-") {
|
|
78
|
+
const separatedArguments = wholeArg[1] === "-" || wholeArg.length === 2 ? [wholeArg] : wholeArg.slice(1).split("").map((a) => `-${a}`);
|
|
79
|
+
for (let j = 0; j < separatedArguments.length; j++) {
|
|
80
|
+
const arg3 = separatedArguments[j];
|
|
81
|
+
const [originalArgName, argStr] = arg3[1] === "-" ? arg3.split(/=(.*)/, 2) : [arg3, void 0];
|
|
82
|
+
let argName = originalArgName;
|
|
83
|
+
while (argName in aliases) {
|
|
84
|
+
argName = aliases[argName];
|
|
85
|
+
}
|
|
86
|
+
if (!(argName in handlers)) {
|
|
87
|
+
if (permissive) {
|
|
88
|
+
result._.push(arg3);
|
|
89
|
+
continue;
|
|
90
|
+
} else {
|
|
91
|
+
throw new ArgError(`unknown or unexpected option: ${originalArgName}`, "ARG_UNKNOWN_OPTION");
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const [type, isFlag] = handlers[argName];
|
|
95
|
+
if (!isFlag && j + 1 < separatedArguments.length) {
|
|
96
|
+
throw new ArgError(`option requires argument (but was followed by another short argument): ${originalArgName}`, "ARG_MISSING_REQUIRED_SHORTARG");
|
|
97
|
+
}
|
|
98
|
+
if (isFlag) {
|
|
99
|
+
result[argName] = type(true, argName, result[argName]);
|
|
100
|
+
} else if (argStr === void 0) {
|
|
101
|
+
if (argv.length < i + 2 || argv[i + 1].length > 1 && argv[i + 1][0] === "-" && !(argv[i + 1].match(/^-?\d*(\.(?=\d))?\d*$/) && (type === Number || // eslint-disable-next-line no-undef
|
|
102
|
+
typeof BigInt !== "undefined" && type === BigInt))) {
|
|
103
|
+
const extended = originalArgName === argName ? "" : ` (alias for ${argName})`;
|
|
104
|
+
throw new ArgError(`option requires argument: ${originalArgName}${extended}`, "ARG_MISSING_REQUIRED_LONGARG");
|
|
105
|
+
}
|
|
106
|
+
result[argName] = type(argv[i + 1], argName, result[argName]);
|
|
107
|
+
++i;
|
|
108
|
+
} else {
|
|
109
|
+
result[argName] = type(argStr, argName, result[argName]);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
} else {
|
|
113
|
+
result._.push(wholeArg);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return result;
|
|
117
|
+
}
|
|
118
|
+
arg2.flag = (fn) => {
|
|
119
|
+
fn[flagSymbol] = true;
|
|
120
|
+
return fn;
|
|
121
|
+
};
|
|
122
|
+
arg2.COUNT = arg2.flag((v, name, existingCount) => (existingCount || 0) + 1);
|
|
123
|
+
arg2.ArgError = ArgError;
|
|
124
|
+
module.exports = arg2;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
// src/util/get-args.ts
|
|
129
|
+
var import_arg = __toESM(require_arg(), 1);
|
|
130
|
+
function getArgs(argv, argsOptions, argOptions = {}) {
|
|
131
|
+
return (0, import_arg.default)(Object.assign({}, arg_common_default(), argsOptions), {
|
|
132
|
+
...argOptions,
|
|
133
|
+
argv
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
function parseArguments(args, flagsSpecification, parserOptions = {}) {
|
|
137
|
+
const { _: positional, ...rest } = (0, import_arg.default)(
|
|
138
|
+
Object.assign({}, arg_common_default(), flagsSpecification),
|
|
139
|
+
{
|
|
140
|
+
...parserOptions,
|
|
141
|
+
argv: args
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
return { args: positional, flags: rest };
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export {
|
|
148
|
+
getArgs,
|
|
149
|
+
parseArguments
|
|
150
|
+
};
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
packageName,
|
|
13
13
|
stripSensitiveAuthArgs,
|
|
14
14
|
suggestionFlagTakesSeparateValue
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SOFC4MLS.js";
|
|
16
16
|
import {
|
|
17
17
|
require_dist
|
|
18
18
|
} from "./chunk-OX7KI3LF.js";
|
|
@@ -328,15 +328,15 @@ function outputAgentSuccess(client, payload, exitCode = 0) {
|
|
|
328
328
|
`);
|
|
329
329
|
process.exit(exitCode);
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function buildNextStepsForGlobalConfig(client) {
|
|
332
332
|
return [
|
|
333
333
|
{
|
|
334
|
-
command: buildCommandWithGlobalFlags(client.argv, "
|
|
335
|
-
when: "List
|
|
334
|
+
command: buildCommandWithGlobalFlags(client.argv, "global-config list"),
|
|
335
|
+
when: "List Global Config stores in the current team scope"
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
command: buildCommandWithGlobalFlags(client.argv, "teams switch"),
|
|
339
|
-
when: "Switch to the team that owns the
|
|
339
|
+
when: "Switch to the team that owns the Global Config"
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
command: buildCommandWithGlobalFlags(client.argv, "whoami"),
|
|
@@ -344,7 +344,7 @@ function buildNextStepsForEdgeConfig(client) {
|
|
|
344
344
|
}
|
|
345
345
|
];
|
|
346
346
|
}
|
|
347
|
-
var
|
|
347
|
+
var GLOBAL_CONFIG_NON_INTERACTIVE_HINT = "Global Config commands use your current team scope. Pass --scope or run `vercel teams switch` if the store is missing.";
|
|
348
348
|
var LIST_ERROR_HINT = "Project names are team-scoped. Use --scope when the project belongs to another team, or `list --all` to list deployments across all projects.";
|
|
349
349
|
function buildNextStepsForList(client, projectName) {
|
|
350
350
|
return [
|
|
@@ -414,10 +414,10 @@ function buildNextStepsForProjectSubcommands(client, variant) {
|
|
|
414
414
|
}
|
|
415
415
|
var PROJECT_SUBCOMMAND_ERROR_HINT = "If you use --cwd, ensure that folder is linked to the right project, or pass an explicit project name. Use --scope when the project belongs to another team.";
|
|
416
416
|
function resolveNonInteractiveDefaults(client, variant) {
|
|
417
|
-
if (variant === "
|
|
417
|
+
if (variant === "global-config") {
|
|
418
418
|
return {
|
|
419
|
-
next:
|
|
420
|
-
hint:
|
|
419
|
+
next: buildNextStepsForGlobalConfig(client),
|
|
420
|
+
hint: GLOBAL_CONFIG_NON_INTERACTIVE_HINT
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
423
|
if (variant === "list") {
|
|
@@ -465,18 +465,18 @@ function exitWithNonInteractiveError(client, err, exitCode = 1, options = {
|
|
|
465
465
|
}
|
|
466
466
|
const { variant } = options;
|
|
467
467
|
if (isLinkRequiredLike(err)) {
|
|
468
|
-
if (variant === "
|
|
468
|
+
if (variant === "global-config") {
|
|
469
469
|
writeAgentErrorPayloadAndExit(
|
|
470
470
|
client,
|
|
471
471
|
{
|
|
472
472
|
status: "error",
|
|
473
473
|
reason: "link_required",
|
|
474
474
|
message: err instanceof Error ? err.message : String(err),
|
|
475
|
-
next:
|
|
476
|
-
hint:
|
|
475
|
+
next: buildNextStepsForGlobalConfig(client),
|
|
476
|
+
hint: GLOBAL_CONFIG_NON_INTERACTIVE_HINT
|
|
477
477
|
},
|
|
478
478
|
exitCode,
|
|
479
|
-
"
|
|
479
|
+
"global-config"
|
|
480
480
|
);
|
|
481
481
|
return;
|
|
482
482
|
}
|
|
@@ -509,7 +509,7 @@ function exitWithNonInteractiveError(client, err, exitCode = 1, options = {
|
|
|
509
509
|
if (isAPIError(err)) {
|
|
510
510
|
const rawMessage = err.serverMessage || err.message;
|
|
511
511
|
const message = normalizeApiErrorText(rawMessage);
|
|
512
|
-
const reason = err.status === 403 ? "forbidden" : err.status === 401 ? "not_authorized" : err.status === 404 ? variant === "
|
|
512
|
+
const reason = err.status === 403 ? "forbidden" : err.status === 401 ? "not_authorized" : err.status === 404 ? variant === "global-config" ? "not_found" : "project_not_found" : err.status === 429 ? "rate_limited" : "api_error";
|
|
513
513
|
writeAgentErrorPayloadAndExit(
|
|
514
514
|
client,
|
|
515
515
|
{
|