vercel 54.15.1 → 54.16.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-BHCMFK52.js → add-ODBKI7EV.js} +5 -5
- package/dist/chunks/{chunk-AWD3IGXU.js → chunk-3NR6OYDV.js} +1 -1
- package/dist/chunks/{chunk-5X6ILMYI.js → chunk-76QQSALN.js} +3 -3
- package/dist/chunks/{chunk-CQ24PL4F.js → chunk-7CTLNKAS.js} +48 -9
- package/dist/chunks/{chunk-B5DP7FOH.js → chunk-BGQPLZFA.js} +6 -6
- package/dist/chunks/{chunk-4GQBO7KU.js → chunk-BIHRICRM.js} +2 -2
- package/dist/chunks/{chunk-4TL5EF3A.js → chunk-FBYYZKN3.js} +4 -1
- package/dist/chunks/{chunk-OOGTHUXU.js → chunk-HL5ZRVF2.js} +6 -6
- package/dist/chunks/{chunk-OEFNWW5M.js → chunk-HXAMK45D.js} +2 -2
- package/dist/chunks/{chunk-MABHXDYV.js → chunk-INFYZRHS.js} +286 -76
- package/dist/chunks/{chunk-PMUUPCDL.js → chunk-JFA4NUXP.js} +1 -1
- package/dist/chunks/{chunk-UEPXHHDN.js → chunk-KJMSI2CT.js} +1 -1
- package/dist/chunks/{chunk-CBMMVXLH.js → chunk-LJXYGWOY.js} +11 -3
- package/dist/chunks/{chunk-4OEXX4CB.js → chunk-MSWXRAHA.js} +1 -1
- package/dist/chunks/{chunk-D7U6YBVT.js → chunk-NVITPK2U.js} +1 -1
- package/dist/chunks/{chunk-RWRYDAUG.js → chunk-O6YJBWWC.js} +1 -1
- package/dist/chunks/{chunk-JNVCGTF2.js → chunk-Q4ZRBN2A.js} +1 -1
- package/dist/chunks/{chunk-HIYWSGI7.js → chunk-Q77ALSXR.js} +3 -0
- package/dist/chunks/{chunk-TDFUNPL7.js → chunk-RCUMYP4L.js} +4 -4
- package/dist/chunks/{chunk-UYC2Q5YZ.js → chunk-U2NYO6GP.js} +1 -1
- package/dist/chunks/{chunk-TAUAS27Y.js → chunk-UI2T3GI4.js} +2 -2
- package/dist/chunks/{chunk-UJZ4RUU6.js → chunk-ULNWA6GY.js} +1 -1
- package/dist/chunks/{chunk-AQWK7XXE.js → chunk-VLQBXXOQ.js} +2 -2
- package/dist/chunks/{compile-vercel-config-LUMMHFTD.js → compile-vercel-config-7THB6MTJ.js} +2 -2
- package/dist/chunks/{delete-X6VOLLCP.js → delete-USWDARFF.js} +3 -3
- package/dist/chunks/{disable-LFH5IOCZ.js → disable-K6B26MC2.js} +3 -3
- package/dist/chunks/{discard-EVD33PAE.js → discard-2T7HZCGR.js} +3 -3
- package/dist/chunks/{edit-FL3SRS2I.js → edit-2CC2WAO4.js} +5 -5
- package/dist/chunks/{enable-HTU7LQK5.js → enable-KEZA6F4T.js} +3 -3
- package/dist/chunks/{export-R222C6IH.js → export-PE2T4HYP.js} +3 -3
- package/dist/chunks/{inspect-YYTAQP3A.js → inspect-TQSHD4MH.js} +4 -4
- package/dist/chunks/{list-AOJMWKA7.js → list-AU6URG3E.js} +4 -4
- package/dist/chunks/{list-SWJFJSEE.js → list-IDTF5TWY.js} +3 -3
- package/dist/chunks/{ls-H7KDHFK6.js → ls-XOAWRTNQ.js} +5 -5
- package/dist/chunks/{publish-O5VKBFJ6.js → publish-G42C77TP.js} +3 -3
- package/dist/chunks/{query-7UDJEOOR.js → query-YTBD7YLX.js} +3 -3
- package/dist/chunks/{reorder-ZPI6Q7DQ.js → reorder-BDOOUURL.js} +3 -3
- package/dist/chunks/{restore-7FNMEG4A.js → restore-ENUHC25O.js} +3 -3
- package/dist/chunks/{rm-U37YHRNF.js → rm-ALWF3NBL.js} +5 -5
- package/dist/chunks/{routes-YEU33SON.js → routes-KUTLDFIF.js} +2 -2
- package/dist/chunks/{rule-inspect-CVI3TQHN.js → rule-inspect-BV6MC7PG.js} +5 -5
- package/dist/chunks/{rules-ZTL4JCZO.js → rules-IGG7M2AC.js} +6 -6
- package/dist/chunks/{schema-LZ6VDRGM.js → schema-ZYJOJIGL.js} +3 -3
- package/dist/chunks/{update-O6FSP627.js → update-I3WE3IQJ.js} +5 -5
- package/dist/commands/build/index.js +18 -18
- package/dist/commands/deploy/index.js +12 -12
- package/dist/commands/dev/index.js +623 -95
- package/dist/commands/env/index.js +6 -6
- package/dist/commands/link/index.js +47 -13
- package/dist/commands/list/index.js +5 -5
- package/dist/commands-bulk.js +44 -40
- package/dist/index.js +46 -42
- package/dist/version.mjs +1 -1
- package/package.json +20 -19
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
formatEnvironment,
|
|
22
22
|
validateLsArgs
|
|
23
|
-
} from "../../chunks/chunk-
|
|
23
|
+
} from "../../chunks/chunk-NVITPK2U.js";
|
|
24
24
|
import {
|
|
25
25
|
validateJsonOutput
|
|
26
26
|
} from "../../chunks/chunk-XPKWKPWA.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "../../chunks/chunk-YPQSDAEW.js";
|
|
30
30
|
import {
|
|
31
31
|
getCommandAliases
|
|
32
|
-
} from "../../chunks/chunk-
|
|
32
|
+
} from "../../chunks/chunk-VLQBXXOQ.js";
|
|
33
33
|
import "../../chunks/chunk-YE3C5CUX.js";
|
|
34
34
|
import "../../chunks/chunk-IB56QKCM.js";
|
|
35
35
|
import "../../chunks/chunk-DPS62LHL.js";
|
|
@@ -47,10 +47,10 @@ import {
|
|
|
47
47
|
stamp_default
|
|
48
48
|
} from "../../chunks/chunk-64IF634X.js";
|
|
49
49
|
import "../../chunks/chunk-VXYGCOKL.js";
|
|
50
|
-
import "../../chunks/chunk-
|
|
50
|
+
import "../../chunks/chunk-KJMSI2CT.js";
|
|
51
51
|
import {
|
|
52
52
|
help
|
|
53
|
-
} from "../../chunks/chunk-
|
|
53
|
+
} from "../../chunks/chunk-3NR6OYDV.js";
|
|
54
54
|
import {
|
|
55
55
|
STANDARD_ENVIRONMENTS,
|
|
56
56
|
addSubcommand,
|
|
@@ -72,11 +72,11 @@ import {
|
|
|
72
72
|
require_frameworks,
|
|
73
73
|
runSubcommand,
|
|
74
74
|
updateSubcommand
|
|
75
|
-
} from "../../chunks/chunk-
|
|
75
|
+
} from "../../chunks/chunk-INFYZRHS.js";
|
|
76
76
|
import {
|
|
77
77
|
TelemetryClient,
|
|
78
78
|
require_dist as require_dist2
|
|
79
|
-
} from "../../chunks/chunk-
|
|
79
|
+
} from "../../chunks/chunk-Q77ALSXR.js";
|
|
80
80
|
import {
|
|
81
81
|
buildCommandWithYes,
|
|
82
82
|
buildEnvAddCommandWithPreservedArgs,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
addSubcommand7 as addSubcommand,
|
|
12
12
|
getCommandAliases,
|
|
13
13
|
linkCommand
|
|
14
|
-
} from "../../chunks/chunk-
|
|
14
|
+
} from "../../chunks/chunk-VLQBXXOQ.js";
|
|
15
15
|
import "../../chunks/chunk-YE3C5CUX.js";
|
|
16
16
|
import "../../chunks/chunk-IB56QKCM.js";
|
|
17
17
|
import "../../chunks/chunk-DPS62LHL.js";
|
|
@@ -21,25 +21,27 @@ import "../../chunks/chunk-56AJHIQC.js";
|
|
|
21
21
|
import "../../chunks/chunk-IJJOI63T.js";
|
|
22
22
|
import {
|
|
23
23
|
ensureLink
|
|
24
|
-
} from "../../chunks/chunk-
|
|
25
|
-
import "../../chunks/chunk-
|
|
24
|
+
} from "../../chunks/chunk-BIHRICRM.js";
|
|
25
|
+
import "../../chunks/chunk-76QQSALN.js";
|
|
26
26
|
import "../../chunks/chunk-QH7WYDEP.js";
|
|
27
|
-
import "../../chunks/chunk-
|
|
28
|
-
import "../../chunks/chunk-
|
|
27
|
+
import "../../chunks/chunk-ULNWA6GY.js";
|
|
28
|
+
import "../../chunks/chunk-KJMSI2CT.js";
|
|
29
29
|
import {
|
|
30
30
|
detectExplicitScope,
|
|
31
31
|
getScope
|
|
32
|
-
} from "../../chunks/chunk-
|
|
32
|
+
} from "../../chunks/chunk-FBYYZKN3.js";
|
|
33
33
|
import {
|
|
34
34
|
help
|
|
35
|
-
} from "../../chunks/chunk-
|
|
35
|
+
} from "../../chunks/chunk-3NR6OYDV.js";
|
|
36
36
|
import {
|
|
37
37
|
addRepoLink,
|
|
38
|
-
ensureRepoLink
|
|
39
|
-
|
|
38
|
+
ensureRepoLink,
|
|
39
|
+
pull,
|
|
40
|
+
resolveProjectCwd
|
|
41
|
+
} from "../../chunks/chunk-INFYZRHS.js";
|
|
40
42
|
import {
|
|
41
43
|
TelemetryClient
|
|
42
|
-
} from "../../chunks/chunk-
|
|
44
|
+
} from "../../chunks/chunk-Q77ALSXR.js";
|
|
43
45
|
import "../../chunks/chunk-NHGCQRK5.js";
|
|
44
46
|
import "../../chunks/chunk-N2T234LO.js";
|
|
45
47
|
import "../../chunks/chunk-GGP5R3FU.js";
|
|
@@ -56,8 +58,15 @@ import "../../chunks/chunk-P4QNYOFB.js";
|
|
|
56
58
|
import {
|
|
57
59
|
output_manager_default
|
|
58
60
|
} from "../../chunks/chunk-Z5SBJH6L.js";
|
|
59
|
-
import
|
|
60
|
-
|
|
61
|
+
import {
|
|
62
|
+
require_source
|
|
63
|
+
} from "../../chunks/chunk-S7KYDPEM.js";
|
|
64
|
+
import {
|
|
65
|
+
__toESM
|
|
66
|
+
} from "../../chunks/chunk-TZ2YI2VH.js";
|
|
67
|
+
|
|
68
|
+
// src/commands/link/index.ts
|
|
69
|
+
var import_chalk = __toESM(require_source(), 1);
|
|
61
70
|
|
|
62
71
|
// src/util/telemetry/commands/link/index.ts
|
|
63
72
|
var LinkTelemetryClient = class extends TelemetryClient {
|
|
@@ -110,6 +119,29 @@ var LinkTelemetryClient = class extends TelemetryClient {
|
|
|
110
119
|
var COMMAND_CONFIG = {
|
|
111
120
|
add: getCommandAliases(addSubcommand)
|
|
112
121
|
};
|
|
122
|
+
function warnOidcRefreshFailed() {
|
|
123
|
+
output_manager_default.print(
|
|
124
|
+
`${import_chalk.default.yellow("!")} Linked project, but failed to refresh VERCEL_OIDC_TOKEN in .env.local. Rerun the link command to retry.
|
|
125
|
+
`
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
async function refreshOidcTokenAfterLink(client, cwd) {
|
|
129
|
+
const originalCwd = client.cwd;
|
|
130
|
+
try {
|
|
131
|
+
client.cwd = await resolveProjectCwd(cwd);
|
|
132
|
+
output_manager_default.print("\n");
|
|
133
|
+
const exitCode = await pull(client, ["--yes"], "vercel-cli:link", {
|
|
134
|
+
oidcTokenOnly: true
|
|
135
|
+
});
|
|
136
|
+
if (exitCode !== 0) {
|
|
137
|
+
warnOidcRefreshFailed();
|
|
138
|
+
}
|
|
139
|
+
} catch (_error) {
|
|
140
|
+
warnOidcRefreshFailed();
|
|
141
|
+
} finally {
|
|
142
|
+
client.cwd = originalCwd;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
113
145
|
async function link(client) {
|
|
114
146
|
let parsedArgs = null;
|
|
115
147
|
const flagsSpecification = getFlagsSpecification(linkCommand.options);
|
|
@@ -202,11 +234,13 @@ async function link(client) {
|
|
|
202
234
|
projectName: parsedArgs.flags["--project"],
|
|
203
235
|
successEmoji: "success",
|
|
204
236
|
nonInteractive: linkNonInteractive,
|
|
205
|
-
searchAcrossTeams: !explicitScopeProvided
|
|
237
|
+
searchAcrossTeams: !explicitScopeProvided,
|
|
238
|
+
pullEnv: false
|
|
206
239
|
});
|
|
207
240
|
if (typeof link2 === "number") {
|
|
208
241
|
return link2;
|
|
209
242
|
}
|
|
243
|
+
await refreshOidcTokenAfterLink(client, cwd);
|
|
210
244
|
}
|
|
211
245
|
return 0;
|
|
212
246
|
}
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
formatEnvironment,
|
|
22
22
|
validateLsArgs
|
|
23
|
-
} from "../../chunks/chunk-
|
|
23
|
+
} from "../../chunks/chunk-NVITPK2U.js";
|
|
24
24
|
import {
|
|
25
25
|
validateJsonOutput
|
|
26
26
|
} from "../../chunks/chunk-XPKWKPWA.js";
|
|
@@ -32,19 +32,19 @@ import {
|
|
|
32
32
|
} from "../../chunks/chunk-VXYGCOKL.js";
|
|
33
33
|
import {
|
|
34
34
|
getScope
|
|
35
|
-
} from "../../chunks/chunk-
|
|
35
|
+
} from "../../chunks/chunk-FBYYZKN3.js";
|
|
36
36
|
import {
|
|
37
37
|
help
|
|
38
|
-
} from "../../chunks/chunk-
|
|
38
|
+
} from "../../chunks/chunk-3NR6OYDV.js";
|
|
39
39
|
import {
|
|
40
40
|
formatProject,
|
|
41
41
|
getLinkedProject,
|
|
42
42
|
getProjectByNameOrId,
|
|
43
43
|
parseTarget
|
|
44
|
-
} from "../../chunks/chunk-
|
|
44
|
+
} from "../../chunks/chunk-INFYZRHS.js";
|
|
45
45
|
import {
|
|
46
46
|
TelemetryClient
|
|
47
|
-
} from "../../chunks/chunk-
|
|
47
|
+
} from "../../chunks/chunk-Q77ALSXR.js";
|
|
48
48
|
import "../../chunks/chunk-NHGCQRK5.js";
|
|
49
49
|
import "../../chunks/chunk-N2T234LO.js";
|
|
50
50
|
import {
|
package/dist/commands-bulk.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
RoutesAddTelemetryClient,
|
|
12
12
|
RoutesTelemetryClient
|
|
13
|
-
} from "./chunks/chunk-
|
|
13
|
+
} from "./chunks/chunk-JFA4NUXP.js";
|
|
14
14
|
import {
|
|
15
15
|
ALL_ACTION_CHOICES,
|
|
16
16
|
MAX_CONDITIONS,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
runInteractiveEditLoop,
|
|
32
32
|
stripQuotes,
|
|
33
33
|
validateActionFlags
|
|
34
|
-
} from "./chunks/chunk-
|
|
34
|
+
} from "./chunks/chunk-O6YJBWWC.js";
|
|
35
35
|
import {
|
|
36
36
|
getRouteVersions
|
|
37
37
|
} from "./chunks/chunk-AHU7WNL2.js";
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
parsePosition,
|
|
50
50
|
parseSubcommandArgs,
|
|
51
51
|
withGlobalFlags
|
|
52
|
-
} from "./chunks/chunk-
|
|
52
|
+
} from "./chunks/chunk-U2NYO6GP.js";
|
|
53
53
|
import {
|
|
54
54
|
normalizeRepeatableStringFilters
|
|
55
55
|
} from "./chunks/chunk-D7MGZH35.js";
|
|
@@ -65,11 +65,11 @@ import {
|
|
|
65
65
|
resolveOpenApiTagForTeamsCli,
|
|
66
66
|
setAutoUpdate,
|
|
67
67
|
tryOpenApiFallback
|
|
68
|
-
} from "./chunks/chunk-
|
|
68
|
+
} from "./chunks/chunk-HL5ZRVF2.js";
|
|
69
69
|
import {
|
|
70
70
|
getUpdateCommand,
|
|
71
71
|
isGlobal
|
|
72
|
-
} from "./chunks/chunk-
|
|
72
|
+
} from "./chunks/chunk-HXAMK45D.js";
|
|
73
73
|
import {
|
|
74
74
|
Now,
|
|
75
75
|
collectContactInformation,
|
|
@@ -90,14 +90,14 @@ import {
|
|
|
90
90
|
require_format,
|
|
91
91
|
require_jsonlines,
|
|
92
92
|
setupDomain
|
|
93
|
-
} from "./chunks/chunk-
|
|
93
|
+
} from "./chunks/chunk-RCUMYP4L.js";
|
|
94
94
|
import {
|
|
95
95
|
getGlobalPathConfig,
|
|
96
96
|
persistAuthConfig,
|
|
97
97
|
readLocalConfig,
|
|
98
98
|
sleep,
|
|
99
99
|
writeToConfigFile
|
|
100
|
-
} from "./chunks/chunk-
|
|
100
|
+
} from "./chunks/chunk-LJXYGWOY.js";
|
|
101
101
|
import "./chunks/chunk-V5P25P7F.js";
|
|
102
102
|
import {
|
|
103
103
|
ellipsis,
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
import {
|
|
126
126
|
formatEnvironment,
|
|
127
127
|
validateLsArgs
|
|
128
|
-
} from "./chunks/chunk-
|
|
128
|
+
} from "./chunks/chunk-NVITPK2U.js";
|
|
129
129
|
import {
|
|
130
130
|
validateJsonOutput
|
|
131
131
|
} from "./chunks/chunk-XPKWKPWA.js";
|
|
@@ -397,7 +397,7 @@ import {
|
|
|
397
397
|
webAnalyticsSubcommand,
|
|
398
398
|
webhooksCommand,
|
|
399
399
|
whoamiCommand
|
|
400
|
-
} from "./chunks/chunk-
|
|
400
|
+
} from "./chunks/chunk-VLQBXXOQ.js";
|
|
401
401
|
import {
|
|
402
402
|
metricsCommand,
|
|
403
403
|
schemaSubcommand
|
|
@@ -439,9 +439,9 @@ import {
|
|
|
439
439
|
import "./chunks/chunk-IJJOI63T.js";
|
|
440
440
|
import {
|
|
441
441
|
main
|
|
442
|
-
} from "./chunks/chunk-
|
|
442
|
+
} from "./chunks/chunk-BGQPLZFA.js";
|
|
443
443
|
import "./chunks/chunk-IB5L4LKZ.js";
|
|
444
|
-
import "./chunks/chunk-
|
|
444
|
+
import "./chunks/chunk-MSWXRAHA.js";
|
|
445
445
|
import {
|
|
446
446
|
require_execa
|
|
447
447
|
} from "./chunks/chunk-YI3JV6GM.js";
|
|
@@ -456,22 +456,22 @@ import {
|
|
|
456
456
|
} from "./chunks/chunk-VXYGCOKL.js";
|
|
457
457
|
import {
|
|
458
458
|
ensureLink
|
|
459
|
-
} from "./chunks/chunk-
|
|
460
|
-
import "./chunks/chunk-
|
|
459
|
+
} from "./chunks/chunk-BIHRICRM.js";
|
|
460
|
+
import "./chunks/chunk-76QQSALN.js";
|
|
461
461
|
import {
|
|
462
462
|
AGENT_ACTION,
|
|
463
463
|
AGENT_REASON,
|
|
464
464
|
AGENT_STATUS
|
|
465
465
|
} from "./chunks/chunk-QH7WYDEP.js";
|
|
466
|
-
import "./chunks/chunk-
|
|
467
|
-
import "./chunks/chunk-
|
|
466
|
+
import "./chunks/chunk-ULNWA6GY.js";
|
|
467
|
+
import "./chunks/chunk-KJMSI2CT.js";
|
|
468
468
|
import {
|
|
469
469
|
detectExplicitScope,
|
|
470
470
|
getScope
|
|
471
|
-
} from "./chunks/chunk-
|
|
471
|
+
} from "./chunks/chunk-FBYYZKN3.js";
|
|
472
472
|
import {
|
|
473
473
|
help
|
|
474
|
-
} from "./chunks/chunk-
|
|
474
|
+
} from "./chunks/chunk-3NR6OYDV.js";
|
|
475
475
|
import {
|
|
476
476
|
STANDARD_ENVIRONMENTS,
|
|
477
477
|
VERCEL_CONFIG_EXTENSIONS,
|
|
@@ -517,10 +517,10 @@ import {
|
|
|
517
517
|
selectAndParseRemoteUrl,
|
|
518
518
|
selectOrg,
|
|
519
519
|
ua_default
|
|
520
|
-
} from "./chunks/chunk-
|
|
520
|
+
} from "./chunks/chunk-INFYZRHS.js";
|
|
521
521
|
import {
|
|
522
522
|
TelemetryClient
|
|
523
|
-
} from "./chunks/chunk-
|
|
523
|
+
} from "./chunks/chunk-Q77ALSXR.js";
|
|
524
524
|
import {
|
|
525
525
|
argvHasNonInteractive,
|
|
526
526
|
buildCommandWithGlobalFlags,
|
|
@@ -898,7 +898,7 @@ async function activity(client) {
|
|
|
898
898
|
return 0;
|
|
899
899
|
}
|
|
900
900
|
telemetry2.trackCliSubcommandLs(subcommandOriginal);
|
|
901
|
-
const listFn = (await import("./chunks/list-
|
|
901
|
+
const listFn = (await import("./chunks/list-IDTF5TWY.js")).default;
|
|
902
902
|
return listFn(client, telemetry2);
|
|
903
903
|
}
|
|
904
904
|
}
|
|
@@ -2001,17 +2001,17 @@ async function alerts(client) {
|
|
|
2001
2001
|
switch (subcommand) {
|
|
2002
2002
|
case "inspect": {
|
|
2003
2003
|
telemetry2.trackCliSubcommandInspect(subcommandOriginal);
|
|
2004
|
-
const inspectFn = (await import("./chunks/inspect-
|
|
2004
|
+
const inspectFn = (await import("./chunks/inspect-TQSHD4MH.js")).default;
|
|
2005
2005
|
return inspectFn(client, args);
|
|
2006
2006
|
}
|
|
2007
2007
|
case "rules": {
|
|
2008
2008
|
telemetry2.trackCliSubcommandRules(args[0] ?? "ls");
|
|
2009
|
-
const rulesFn = (await import("./chunks/rules-
|
|
2009
|
+
const rulesFn = (await import("./chunks/rules-IGG7M2AC.js")).default;
|
|
2010
2010
|
return rulesFn(client, args);
|
|
2011
2011
|
}
|
|
2012
2012
|
default: {
|
|
2013
2013
|
telemetry2.trackCliSubcommandLs(subcommandOriginal);
|
|
2014
|
-
const listFn = (await import("./chunks/list-
|
|
2014
|
+
const listFn = (await import("./chunks/list-AU6URG3E.js")).default;
|
|
2015
2015
|
return listFn(client, telemetry2);
|
|
2016
2016
|
}
|
|
2017
2017
|
}
|
|
@@ -5859,11 +5859,15 @@ async function createPurchase(client, item) {
|
|
|
5859
5859
|
// src/util/buy/handle-purchase-error.ts
|
|
5860
5860
|
var import_open2 = __toESM(require_open(), 1);
|
|
5861
5861
|
var import_error_utils2 = __toESM(require_dist(), 1);
|
|
5862
|
-
|
|
5862
|
+
|
|
5863
|
+
// src/util/billing-url.ts
|
|
5864
|
+
var getTeamBillingUrl = (teamSlug) => `https://vercel.com/${teamSlug}/~/settings/billing`;
|
|
5865
|
+
|
|
5866
|
+
// src/util/buy/handle-purchase-error.ts
|
|
5863
5867
|
function tryOpenBillingPage(teamSlug, openBrowser) {
|
|
5864
5868
|
if (!openBrowser)
|
|
5865
5869
|
return;
|
|
5866
|
-
const billingUrl = teamSlug ?
|
|
5870
|
+
const billingUrl = teamSlug ? getTeamBillingUrl(teamSlug) : "https://vercel.com/dashboard";
|
|
5867
5871
|
void (0, import_open2.default)(billingUrl).catch((err) => {
|
|
5868
5872
|
output_manager_default.debug(`Failed to open browser: ${err}`);
|
|
5869
5873
|
});
|
|
@@ -5882,7 +5886,7 @@ function handlePurchaseError(err, teamSlug, opts) {
|
|
|
5882
5886
|
return 1;
|
|
5883
5887
|
}
|
|
5884
5888
|
if (err.code === "missing_stripe_customer") {
|
|
5885
|
-
const billingUrl = teamSlug ?
|
|
5889
|
+
const billingUrl = teamSlug ? getTeamBillingUrl(teamSlug) : "https://vercel.com/dashboard";
|
|
5886
5890
|
const dashboardHint = teamSlug ? ` Please add one: ${output_manager_default.link(billingUrl, billingUrl)}` : ` Please add one in the ${output_manager_default.link("Vercel dashboard", billingUrl)}.`;
|
|
5887
5891
|
output_manager_default.error(
|
|
5888
5892
|
`Your team does not have a payment method on file.${dashboardHint}`
|
|
@@ -40962,7 +40966,7 @@ async function metrics(client) {
|
|
|
40962
40966
|
return 0;
|
|
40963
40967
|
}
|
|
40964
40968
|
telemetry2.trackCliSubcommandSchema(subcommandOriginal);
|
|
40965
|
-
const schemaFn = (await import("./chunks/schema-
|
|
40969
|
+
const schemaFn = (await import("./chunks/schema-ZYJOJIGL.js")).default;
|
|
40966
40970
|
return schemaFn(client, telemetry2);
|
|
40967
40971
|
}
|
|
40968
40972
|
default: {
|
|
@@ -40975,7 +40979,7 @@ async function metrics(client) {
|
|
|
40975
40979
|
output_manager_default.print(help(metricsCommand, { columns: client.stderr.columns }));
|
|
40976
40980
|
return 2;
|
|
40977
40981
|
}
|
|
40978
|
-
const queryFn = (await import("./chunks/query-
|
|
40982
|
+
const queryFn = (await import("./chunks/query-YTBD7YLX.js")).default;
|
|
40979
40983
|
return queryFn(client, telemetry2);
|
|
40980
40984
|
}
|
|
40981
40985
|
}
|
|
@@ -41165,7 +41169,7 @@ async function createGroup(client) {
|
|
|
41165
41169
|
if (groups.length >= maxMicrofrontendsGroupsPerTeam) {
|
|
41166
41170
|
if (isLimitedPlan) {
|
|
41167
41171
|
const planName = isProTrialPlan ? "Pro Trial" : "Hobby";
|
|
41168
|
-
const url =
|
|
41172
|
+
const url = getTeamBillingUrl(teamSlug);
|
|
41169
41173
|
output_manager_default.log(
|
|
41170
41174
|
`You've reached the microfrontends group limit for ${planName}. Upgrade to Pro to create more groups.`
|
|
41171
41175
|
);
|
|
@@ -41666,7 +41670,7 @@ async function addToGroup(client) {
|
|
|
41666
41670
|
const isLimitedPlan = isProTrialPlan || plan === "hobby";
|
|
41667
41671
|
if (isLimitedPlan && totalAfter > freeProjects) {
|
|
41668
41672
|
const planName = isProTrialPlan ? "Pro Trial" : "Hobby";
|
|
41669
|
-
const url =
|
|
41673
|
+
const url = getTeamBillingUrl(teamSlug);
|
|
41670
41674
|
output_manager_default.log(
|
|
41671
41675
|
`You've reached the microfrontends project limit for ${planName}. Upgrade to Pro to add more projects.`
|
|
41672
41676
|
);
|
|
@@ -41734,7 +41738,7 @@ async function addToGroup(client) {
|
|
|
41734
41738
|
if (selectedGroup.projects.length >= maxMicrofrontendsPerGroup) {
|
|
41735
41739
|
if (isLimitedPlan) {
|
|
41736
41740
|
const planName = isProTrialPlan ? "Pro Trial" : "Hobby";
|
|
41737
|
-
const url =
|
|
41741
|
+
const url = getTeamBillingUrl(teamSlug);
|
|
41738
41742
|
output_manager_default.log(
|
|
41739
41743
|
`You've reached the microfrontends project limit for ${planName}. Upgrade to Pro to add more projects.`
|
|
41740
41744
|
);
|
|
@@ -51886,7 +51890,7 @@ async function main27(client) {
|
|
|
51886
51890
|
return 2;
|
|
51887
51891
|
}
|
|
51888
51892
|
telemetry2.trackCliSubcommandEdit(subcommandOriginal);
|
|
51889
|
-
return (await import("./chunks/edit-
|
|
51893
|
+
return (await import("./chunks/edit-2CC2WAO4.js")).default(client, args);
|
|
51890
51894
|
case "delete":
|
|
51891
51895
|
if (needHelp) {
|
|
51892
51896
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -51894,7 +51898,7 @@ async function main27(client) {
|
|
|
51894
51898
|
return 2;
|
|
51895
51899
|
}
|
|
51896
51900
|
telemetry2.trackCliSubcommandDelete(subcommandOriginal);
|
|
51897
|
-
return (await import("./chunks/delete-
|
|
51901
|
+
return (await import("./chunks/delete-USWDARFF.js")).default(client, args);
|
|
51898
51902
|
case "enable":
|
|
51899
51903
|
if (needHelp) {
|
|
51900
51904
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -51902,7 +51906,7 @@ async function main27(client) {
|
|
|
51902
51906
|
return 2;
|
|
51903
51907
|
}
|
|
51904
51908
|
telemetry2.trackCliSubcommandEnable(subcommandOriginal);
|
|
51905
|
-
return (await import("./chunks/enable-
|
|
51909
|
+
return (await import("./chunks/enable-KEZA6F4T.js")).default(client, args);
|
|
51906
51910
|
case "disable":
|
|
51907
51911
|
if (needHelp) {
|
|
51908
51912
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -51910,7 +51914,7 @@ async function main27(client) {
|
|
|
51910
51914
|
return 2;
|
|
51911
51915
|
}
|
|
51912
51916
|
telemetry2.trackCliSubcommandDisable(subcommandOriginal);
|
|
51913
|
-
return (await import("./chunks/disable-
|
|
51917
|
+
return (await import("./chunks/disable-K6B26MC2.js")).default(client, args);
|
|
51914
51918
|
case "reorder":
|
|
51915
51919
|
if (needHelp) {
|
|
51916
51920
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -51918,7 +51922,7 @@ async function main27(client) {
|
|
|
51918
51922
|
return 2;
|
|
51919
51923
|
}
|
|
51920
51924
|
telemetry2.trackCliSubcommandReorder(subcommandOriginal);
|
|
51921
|
-
return (await import("./chunks/reorder-
|
|
51925
|
+
return (await import("./chunks/reorder-BDOOUURL.js")).default(client, args);
|
|
51922
51926
|
case "export":
|
|
51923
51927
|
if (needHelp) {
|
|
51924
51928
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -51926,7 +51930,7 @@ async function main27(client) {
|
|
|
51926
51930
|
return 2;
|
|
51927
51931
|
}
|
|
51928
51932
|
telemetry2.trackCliSubcommandExport(subcommandOriginal);
|
|
51929
|
-
return (await import("./chunks/export-
|
|
51933
|
+
return (await import("./chunks/export-PE2T4HYP.js")).default(client, args);
|
|
51930
51934
|
case "publish":
|
|
51931
51935
|
if (needHelp) {
|
|
51932
51936
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -51934,7 +51938,7 @@ async function main27(client) {
|
|
|
51934
51938
|
return 2;
|
|
51935
51939
|
}
|
|
51936
51940
|
telemetry2.trackCliSubcommandPublish(subcommandOriginal);
|
|
51937
|
-
return (await import("./chunks/publish-
|
|
51941
|
+
return (await import("./chunks/publish-G42C77TP.js")).default(client, args);
|
|
51938
51942
|
case "restore":
|
|
51939
51943
|
if (needHelp) {
|
|
51940
51944
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -51942,7 +51946,7 @@ async function main27(client) {
|
|
|
51942
51946
|
return 2;
|
|
51943
51947
|
}
|
|
51944
51948
|
telemetry2.trackCliSubcommandRestore(subcommandOriginal);
|
|
51945
|
-
return (await import("./chunks/restore-
|
|
51949
|
+
return (await import("./chunks/restore-ENUHC25O.js")).default(client, args);
|
|
51946
51950
|
case "discard-staging":
|
|
51947
51951
|
if (needHelp) {
|
|
51948
51952
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -51950,7 +51954,7 @@ async function main27(client) {
|
|
|
51950
51954
|
return 2;
|
|
51951
51955
|
}
|
|
51952
51956
|
telemetry2.trackCliSubcommandDiscardStaging(subcommandOriginal);
|
|
51953
|
-
return (await import("./chunks/discard-
|
|
51957
|
+
return (await import("./chunks/discard-2T7HZCGR.js")).default(client, args);
|
|
51954
51958
|
default:
|
|
51955
51959
|
output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG37));
|
|
51956
51960
|
output_manager_default.print(help(routesCommand, { columns: client.stderr.columns }));
|
package/dist/index.js
CHANGED
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
require_ci_info,
|
|
19
19
|
setAutoUpdate,
|
|
20
20
|
tryOpenApiFallback
|
|
21
|
-
} from "./chunks/chunk-
|
|
21
|
+
} from "./chunks/chunk-HL5ZRVF2.js";
|
|
22
22
|
import {
|
|
23
23
|
getUpdateCommand
|
|
24
|
-
} from "./chunks/chunk-
|
|
24
|
+
} from "./chunks/chunk-HXAMK45D.js";
|
|
25
25
|
import {
|
|
26
26
|
Client,
|
|
27
27
|
getAuthConfigFilePath,
|
|
@@ -30,14 +30,14 @@ import {
|
|
|
30
30
|
readAuthConfigFile,
|
|
31
31
|
readConfigFile,
|
|
32
32
|
writeToConfigFile
|
|
33
|
-
} from "./chunks/chunk-
|
|
33
|
+
} from "./chunks/chunk-LJXYGWOY.js";
|
|
34
34
|
import {
|
|
35
35
|
highlight
|
|
36
36
|
} from "./chunks/chunk-V5P25P7F.js";
|
|
37
37
|
import {
|
|
38
38
|
commandNames,
|
|
39
39
|
commands
|
|
40
|
-
} from "./chunks/chunk-
|
|
40
|
+
} from "./chunks/chunk-VLQBXXOQ.js";
|
|
41
41
|
import "./chunks/chunk-YE3C5CUX.js";
|
|
42
42
|
import "./chunks/chunk-IB56QKCM.js";
|
|
43
43
|
import "./chunks/chunk-DPS62LHL.js";
|
|
@@ -48,12 +48,12 @@ import "./chunks/chunk-IJJOI63T.js";
|
|
|
48
48
|
import {
|
|
49
49
|
require_semver
|
|
50
50
|
} from "./chunks/chunk-IB5L4LKZ.js";
|
|
51
|
-
import "./chunks/chunk-
|
|
52
|
-
import "./chunks/chunk-
|
|
51
|
+
import "./chunks/chunk-ULNWA6GY.js";
|
|
52
|
+
import "./chunks/chunk-KJMSI2CT.js";
|
|
53
53
|
import {
|
|
54
54
|
getScope
|
|
55
|
-
} from "./chunks/chunk-
|
|
56
|
-
import "./chunks/chunk-
|
|
55
|
+
} from "./chunks/chunk-FBYYZKN3.js";
|
|
56
|
+
import "./chunks/chunk-3NR6OYDV.js";
|
|
57
57
|
import {
|
|
58
58
|
getLinkFromDir,
|
|
59
59
|
getTeams,
|
|
@@ -64,12 +64,12 @@ import {
|
|
|
64
64
|
readJSONFile,
|
|
65
65
|
require_dist as require_dist2,
|
|
66
66
|
require_lib
|
|
67
|
-
} from "./chunks/chunk-
|
|
67
|
+
} from "./chunks/chunk-INFYZRHS.js";
|
|
68
68
|
import {
|
|
69
69
|
TelemetryClient,
|
|
70
70
|
TelemetryEventStore,
|
|
71
71
|
isNativeBinaryInstall
|
|
72
|
-
} from "./chunks/chunk-
|
|
72
|
+
} from "./chunks/chunk-Q77ALSXR.js";
|
|
73
73
|
import "./chunks/chunk-NHGCQRK5.js";
|
|
74
74
|
import "./chunks/chunk-N2T234LO.js";
|
|
75
75
|
import "./chunks/chunk-GGP5R3FU.js";
|
|
@@ -1828,45 +1828,49 @@ var main = async () => {
|
|
|
1828
1828
|
trackAgenticErrorTelemetry(err);
|
|
1829
1829
|
return finishWithExitCode(1);
|
|
1830
1830
|
}
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
link: "https://err.sh/vercel/scope-not-accessible"
|
|
1846
|
-
});
|
|
1847
|
-
trackAgenticErrorTelemetry(err);
|
|
1848
|
-
return finishWithExitCode(1);
|
|
1849
|
-
}
|
|
1850
|
-
if ((0, import_error_utils3.isErrnoException)(err) && err.code === "rate_limited") {
|
|
1851
|
-
output_manager_default.prettyError({
|
|
1852
|
-
message: "Rate limited. Too many requests to the same endpoint: /teams"
|
|
1853
|
-
});
|
|
1854
|
-
trackAgenticErrorTelemetry(err);
|
|
1855
|
-
return finishWithExitCode(1);
|
|
1856
|
-
}
|
|
1857
|
-
output_manager_default.error("Not able to load teams");
|
|
1831
|
+
const scopeMatchesUserIdentity = user.id === scope || user.email === scope || user.username === scope;
|
|
1832
|
+
let teams = [];
|
|
1833
|
+
try {
|
|
1834
|
+
teams = await getTeams(client);
|
|
1835
|
+
} catch (err) {
|
|
1836
|
+
if (scopeMatchesUserIdentity) {
|
|
1837
|
+
output_manager_default.debug(
|
|
1838
|
+
`Ignoring failure to load teams; scope matches the current user's identity`
|
|
1839
|
+
);
|
|
1840
|
+
} else if ((0, import_error_utils3.isErrnoException)(err) && err.code === "not_authorized") {
|
|
1841
|
+
output_manager_default.prettyError({
|
|
1842
|
+
message: `You do not have access to the specified team`,
|
|
1843
|
+
link: "https://err.sh/vercel/scope-not-accessible"
|
|
1844
|
+
});
|
|
1858
1845
|
trackAgenticErrorTelemetry(err);
|
|
1859
1846
|
return finishWithExitCode(1);
|
|
1860
|
-
}
|
|
1861
|
-
const related = teams && teams.find((team) => team.id === scope || team.slug === scope);
|
|
1862
|
-
if (!related) {
|
|
1847
|
+
} else if ((0, import_error_utils3.isErrnoException)(err) && err.code === "rate_limited") {
|
|
1863
1848
|
output_manager_default.prettyError({
|
|
1864
|
-
message: "
|
|
1865
|
-
link: "https://err.sh/vercel/scope-not-existent"
|
|
1849
|
+
message: "Rate limited. Too many requests to the same endpoint: /teams"
|
|
1866
1850
|
});
|
|
1851
|
+
trackAgenticErrorTelemetry(err);
|
|
1852
|
+
return finishWithExitCode(1);
|
|
1853
|
+
} else {
|
|
1854
|
+
output_manager_default.error("Not able to load teams");
|
|
1855
|
+
trackAgenticErrorTelemetry(err);
|
|
1867
1856
|
return finishWithExitCode(1);
|
|
1868
1857
|
}
|
|
1858
|
+
}
|
|
1859
|
+
const related = teams && teams.find((team) => team.id === scope || team.slug === scope);
|
|
1860
|
+
if (related) {
|
|
1869
1861
|
client.config.currentTeam = related.id;
|
|
1862
|
+
} else if (scopeMatchesUserIdentity) {
|
|
1863
|
+
if (user.version === "northstar") {
|
|
1864
|
+
output_manager_default.error("You cannot set your Personal Account as the scope.");
|
|
1865
|
+
return finishWithExitCode(1);
|
|
1866
|
+
}
|
|
1867
|
+
delete client.config.currentTeam;
|
|
1868
|
+
} else {
|
|
1869
|
+
output_manager_default.prettyError({
|
|
1870
|
+
message: "The specified scope does not exist",
|
|
1871
|
+
link: "https://err.sh/vercel/scope-not-existent"
|
|
1872
|
+
});
|
|
1873
|
+
return finishWithExitCode(1);
|
|
1870
1874
|
}
|
|
1871
1875
|
}
|
|
1872
1876
|
let exitCode;
|
package/dist/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "54.
|
|
1
|
+
export const version = "54.16.0";
|