vercel 56.2.1 → 56.3.1
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-YIAPBLSF.js → add-ANWCBEDB.js} +10 -13
- package/dist/chunks/{add-ZAQLTF5W.js → add-FWXAFWCU.js} +9 -12
- package/dist/chunks/{chunk-52V5NDUN.js → chunk-26VWIAO5.js} +2 -2
- package/dist/chunks/{chunk-2I34TRQZ.js → chunk-2E3ZC3JA.js} +2 -2
- package/dist/chunks/{chunk-5AJNUXWP.js → chunk-3PKFXNJZ.js} +2 -4
- package/dist/chunks/{chunk-5OT26JZN.js → chunk-3VS4DTAU.js} +4 -6
- package/dist/chunks/{chunk-JJWESW5Y.js → chunk-4G6QZSBL.js} +2 -4
- package/dist/chunks/{chunk-GXBDQRHJ.js → chunk-4Z5LC2CI.js} +1 -1
- package/dist/chunks/{chunk-5HNYJHOB.js → chunk-5R5FS7WB.js} +1 -1
- package/dist/chunks/{chunk-CMJMYVQM.js → chunk-6OMC3HOW.js} +1 -1
- package/dist/chunks/{chunk-HIO4M75R.js → chunk-74TJ5D35.js} +8 -11
- package/dist/chunks/{chunk-EPBUWIAO.js → chunk-7ZECC3BE.js} +48 -24
- package/dist/chunks/{chunk-JF7LPEBD.js → chunk-AHSE4X6V.js} +1 -1
- package/dist/chunks/{chunk-7OJJKCSW.js → chunk-D7SLHLED.js} +6 -10
- package/dist/chunks/{chunk-QY63UKTP.js → chunk-DMSLNAVH.js} +2 -2
- package/dist/chunks/{chunk-75PKWYOS.js → chunk-ETWY3HX7.js} +99 -74
- package/dist/chunks/{chunk-MYD7N6MH.js → chunk-F3B65VPT.js} +13 -3
- package/dist/chunks/{chunk-RLJA2KI7.js → chunk-FYQPTH5C.js} +2 -4
- package/dist/chunks/{chunk-7C7MMT4J.js → chunk-GIL3VAUR.js} +2 -4
- package/dist/chunks/{chunk-6ZVIC6FL.js → chunk-IAEXF3FY.js} +8 -8
- package/dist/chunks/{chunk-DD6D5J7E.js → chunk-JAY74MG2.js} +9 -13
- package/dist/chunks/{chunk-KXVQEPTA.js → chunk-JEWA7HG3.js} +3 -5
- package/dist/chunks/{chunk-P6AK7SVK.js → chunk-KSSNLCL4.js} +360 -25
- package/dist/chunks/{chunk-HA7C7SDO.js → chunk-LHFNIZ2P.js} +2 -4
- package/dist/chunks/{chunk-YKJA5TVC.js → chunk-M5LOXLMK.js} +3 -5
- package/dist/chunks/{chunk-GPVU6JRS.js → chunk-NMAHBCNK.js} +9 -7
- package/dist/chunks/{chunk-QEEGXNFK.js → chunk-NZRWTCRM.js} +1 -1
- package/dist/chunks/{chunk-IDMKFYEA.js → chunk-OGG6UBXK.js} +2 -4
- package/dist/chunks/{chunk-DDEPCAGE.js → chunk-RGOP4OYL.js} +558 -164
- package/dist/chunks/{chunk-NULWLKT7.js → chunk-SAEAR237.js} +4 -4
- package/dist/chunks/{chunk-22GUZ5KG.js → chunk-STJJ3DFO.js} +2 -4
- package/dist/chunks/{chunk-EHTPDXTS.js → chunk-SZXT3PDQ.js} +3 -294
- package/dist/chunks/{chunk-CB3I3QIT.js → chunk-UDWRZXIT.js} +193 -85
- package/dist/chunks/{chunk-PASZMRTZ.js → chunk-UOB64NBX.js} +5 -5
- package/dist/chunks/{chunk-7TJLLZPN.js → chunk-VO6PK3ZA.js} +6 -10
- package/dist/chunks/{chunk-DREO3DFB.js → chunk-VZSZBD4V.js} +16 -6
- package/dist/chunks/{chunk-VOBBH2SB.js → chunk-W346YNDN.js} +0 -49
- package/dist/chunks/{chunk-UESEGACQ.js → chunk-XOED7Y6Z.js} +3 -3
- package/dist/chunks/{chunk-7S3QUMIG.js → chunk-YS6EDZHB.js} +3 -5
- package/dist/chunks/{chunk-4RGSUV5C.js → chunk-ZVLPUREX.js} +2 -2
- package/dist/chunks/{compile-vercel-config-4NKPN3EG.js → compile-vercel-config-ELXMKFUY.js} +4 -4
- package/dist/chunks/{delete-NCMDC3IU.js → delete-BO3RQ3F6.js} +14 -14
- package/dist/chunks/{disable-Z7DXY4AY.js → disable-WRXXRGYR.js} +14 -13
- package/dist/chunks/{discard-4ILK3ULP.js → discard-5XOTKSVP.js} +13 -12
- package/dist/chunks/{edit-ROJQCTWR.js → edit-ML2P3MKK.js} +17 -18
- package/dist/chunks/{enable-TAVCLAEC.js → enable-E5YCEICZ.js} +14 -13
- package/dist/chunks/{export-YTSIGJFX.js → export-EUFPKG5T.js} +15 -14
- package/dist/chunks/{image-LORSHERP.js → image-5WOBJQFO.js} +6 -8
- package/dist/chunks/{inspect-OHDU2SVS.js → inspect-7PJE37AJ.js} +8 -10
- package/dist/chunks/{inspect-L4UIWOXO.js → inspect-BX26XAK2.js} +11 -15
- package/dist/chunks/{inspect-A2X7RTP4.js → inspect-I3ZNL35B.js} +8 -10
- package/dist/chunks/{inspect-5C4UHSCT.js → inspect-W4SOI7QI.js} +10 -12
- package/dist/chunks/{list-FGVDMSFN.js → list-44G7AUFR.js} +8 -10
- package/dist/chunks/{list-P2B5MHON.js → list-VLFAOPR5.js} +10 -13
- package/dist/chunks/{login-4BK3VGII.js → login-CL57KXDR.js} +11 -14
- package/dist/chunks/{ls-WDRFGE2J.js → ls-42JFBIDV.js} +12 -15
- package/dist/chunks/{ls-YXKRRYTL.js → ls-EZRL6SGP.js} +10 -13
- package/dist/chunks/{ls-NU4D6TLG.js → ls-KIAXSLDB.js} +10 -13
- package/dist/chunks/{ls-RAC5LMTR.js → ls-VD2DNABR.js} +9 -12
- package/dist/chunks/{publish-DGF2TQCQ.js → publish-C3QAGQJ7.js} +13 -12
- package/dist/chunks/{query-NWW6RDHK.js → query-XC3Y3EBD.js} +10 -12
- package/dist/chunks/{reorder-TTZBKCEB.js → reorder-L56M5KP3.js} +17 -16
- package/dist/chunks/{restore-DG3LZMHQ.js → restore-E5LGXKS3.js} +19 -18
- package/dist/chunks/{rm-7WXXLTXF.js → rm-AG3FDPTQ.js} +10 -13
- package/dist/chunks/{rm-2VBE4C2V.js → rm-EF4HUVO2.js} +9 -12
- package/dist/chunks/{rm-U2DFRDKE.js → rm-KGRSF2OY.js} +8 -11
- package/dist/chunks/{rule-inspect-4NL3GGDB.js → rule-inspect-FRDI2PJF.js} +9 -12
- package/dist/chunks/{rules-DABNOUNG.js → rules-OEOYTZ6U.js} +9 -11
- package/dist/chunks/{schema-4RRRUUOO.js → schema-OEWP27BI.js} +11 -12
- package/dist/chunks/{tags-MLX3AHHK.js → tags-RUHWH6XO.js} +5 -7
- package/dist/chunks/{types-2TPA6J4G.js → types-QKLIFDDP.js} +5 -5
- package/dist/chunks/{update-YXH7WWTN.js → update-BEXGZY7H.js} +9 -12
- package/dist/commands/build/index.js +26 -31
- package/dist/commands/deploy/index.js +61 -77
- package/dist/commands/dev/index.js +193 -159
- package/dist/commands/env/index.js +70 -47
- package/dist/commands/link/index.js +25 -29
- package/dist/commands/list/index.js +13 -17
- package/dist/commands-bulk.js +637 -620
- package/dist/index.js +23 -25
- package/dist/version.mjs +1 -1
- package/package.json +21 -21
- package/dist/chunks/chunk-DWU7JOO6.js +0 -158
- package/dist/chunks/chunk-IC4YEIGW.js +0 -101
- package/dist/chunks/chunk-IMUF5MGV.js +0 -81
- package/dist/chunks/chunk-SGL3NMOP.js +0 -86
|
@@ -5,26 +5,25 @@ const require = __createRequire(import.meta.url);
|
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./chunk-IC4YEIGW.js";
|
|
11
|
-
import {
|
|
12
|
-
getLinkedProject
|
|
13
|
-
} from "./chunk-DDEPCAGE.js";
|
|
8
|
+
resolveProjectContext
|
|
9
|
+
} from "./chunk-RGOP4OYL.js";
|
|
14
10
|
import {
|
|
11
|
+
AGENT_REASON,
|
|
12
|
+
AGENT_STATUS,
|
|
15
13
|
buildCommandWithYes,
|
|
16
|
-
outputAgentError
|
|
17
|
-
|
|
14
|
+
outputAgentError,
|
|
15
|
+
withGlobalFlags
|
|
16
|
+
} from "./chunk-UDWRZXIT.js";
|
|
18
17
|
import {
|
|
19
|
-
getFlagsSpecification,
|
|
20
|
-
getGlobalFlagsOnlyFromArgs,
|
|
21
18
|
parseArguments,
|
|
22
19
|
printError
|
|
23
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SZXT3PDQ.js";
|
|
24
21
|
import {
|
|
25
22
|
getCommandName,
|
|
26
|
-
getCommandNamePlain
|
|
27
|
-
|
|
23
|
+
getCommandNamePlain,
|
|
24
|
+
getFlagsSpecification,
|
|
25
|
+
getGlobalFlagsFromArgs
|
|
26
|
+
} from "./chunk-KSSNLCL4.js";
|
|
28
27
|
import {
|
|
29
28
|
output_manager_default
|
|
30
29
|
} from "./chunk-OX7KI3LF.js";
|
|
@@ -35,6 +34,73 @@ import {
|
|
|
35
34
|
__toESM
|
|
36
35
|
} from "./chunk-TZ2YI2VH.js";
|
|
37
36
|
|
|
37
|
+
// src/util/projects/require-project-context.ts
|
|
38
|
+
async function requireProjectContext(client, command, projectName) {
|
|
39
|
+
const link = await resolveProjectContext({
|
|
40
|
+
client,
|
|
41
|
+
projectNameOrId: projectName
|
|
42
|
+
});
|
|
43
|
+
if (link.status === "error") {
|
|
44
|
+
return link.exitCode;
|
|
45
|
+
} else if (link.status === "not_linked") {
|
|
46
|
+
if (client.nonInteractive) {
|
|
47
|
+
if (command === "redirects") {
|
|
48
|
+
const linkCmd = getCommandNamePlain("link");
|
|
49
|
+
outputAgentError(
|
|
50
|
+
client,
|
|
51
|
+
{
|
|
52
|
+
status: AGENT_STATUS.ERROR,
|
|
53
|
+
reason: AGENT_REASON.NOT_LINKED,
|
|
54
|
+
message: `Your codebase isn't linked to a project on Vercel. Run ${linkCmd} to begin.`,
|
|
55
|
+
next: [{ command: linkCmd }]
|
|
56
|
+
},
|
|
57
|
+
1
|
|
58
|
+
);
|
|
59
|
+
} else {
|
|
60
|
+
const flags = getGlobalFlagsFromArgs(client.argv.slice(2));
|
|
61
|
+
const cmd = getCommandNamePlain(`link ${flags.join(" ")}`.trim());
|
|
62
|
+
outputAgentError(
|
|
63
|
+
client,
|
|
64
|
+
{
|
|
65
|
+
status: AGENT_STATUS.ERROR,
|
|
66
|
+
reason: AGENT_REASON.NOT_LINKED,
|
|
67
|
+
userActionRequired: true,
|
|
68
|
+
message: `Your codebase is not linked to a Vercel project. Run link first, then retry ${command} commands.`,
|
|
69
|
+
next: [
|
|
70
|
+
{
|
|
71
|
+
command: cmd,
|
|
72
|
+
when: "to link this directory to a project"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
1
|
|
77
|
+
);
|
|
78
|
+
return 1;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
output_manager_default.error(
|
|
82
|
+
`Your codebase isn't linked to a project on Vercel. Run ${getCommandName("link")} to begin.`
|
|
83
|
+
);
|
|
84
|
+
return 1;
|
|
85
|
+
}
|
|
86
|
+
client.config.currentTeam = link.org.type === "team" ? link.org.id : void 0;
|
|
87
|
+
return link;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// src/util/command-arguments.ts
|
|
91
|
+
function parseSubcommandArguments(argv, command) {
|
|
92
|
+
const flagsSpecification = getFlagsSpecification(command.options);
|
|
93
|
+
return parseArguments(argv, flagsSpecification);
|
|
94
|
+
}
|
|
95
|
+
function validateRequiredArguments(args, required) {
|
|
96
|
+
for (let i = 0; i < required.length; i++) {
|
|
97
|
+
if (!args[i]) {
|
|
98
|
+
return `Missing required argument: ${required[i]}`;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
|
|
38
104
|
// src/util/routes/types.ts
|
|
39
105
|
var ROUTE_TYPE_LABELS = {
|
|
40
106
|
rewrite: "Rewrite",
|
|
@@ -62,9 +128,10 @@ function isTargetTransform(transform) {
|
|
|
62
128
|
|
|
63
129
|
// src/commands/routes/shared.ts
|
|
64
130
|
var import_chalk = __toESM(require_source(), 1);
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
-
|
|
131
|
+
function withGlobalFlags2(client, commandTemplate) {
|
|
132
|
+
return withGlobalFlags(client, commandTemplate, {
|
|
133
|
+
preserveProject: true
|
|
134
|
+
});
|
|
68
135
|
}
|
|
69
136
|
function shellQuoteRouteIdentifierForSuggestion(identifier) {
|
|
70
137
|
if (!identifier.includes(" ")) {
|
|
@@ -80,13 +147,14 @@ function shellQuoteRouteIdentifierForSuggestion(identifier) {
|
|
|
80
147
|
}
|
|
81
148
|
async function parseSubcommandArgs(argv, command, client) {
|
|
82
149
|
let parsedArgs;
|
|
83
|
-
const flagsSpecification = getFlagsSpecification(command.options);
|
|
84
150
|
try {
|
|
85
|
-
parsedArgs =
|
|
151
|
+
parsedArgs = parseSubcommandArguments(argv, command);
|
|
86
152
|
} catch (err) {
|
|
87
153
|
if (client?.nonInteractive) {
|
|
88
154
|
const rawMessage = err instanceof Error ? err.message : String(err);
|
|
89
|
-
const flags =
|
|
155
|
+
const flags = getGlobalFlagsFromArgs(client.argv.slice(2), {
|
|
156
|
+
preserveProject: true
|
|
157
|
+
});
|
|
90
158
|
let message = rawMessage;
|
|
91
159
|
let next = [
|
|
92
160
|
{
|
|
@@ -105,7 +173,7 @@ async function parseSubcommandArgs(argv, command, client) {
|
|
|
105
173
|
message = command.name === "add" ? '--ai requires a description. Example: routes add --ai <description> --yes --non-interactive. Replace <description> with your text; use shell quotes if it contains spaces (e.g. --ai "Redirect /old to /new").' : "--ai requires a description. Example: routes edit <name-or-id> --ai <description> --yes --non-interactive. Replace placeholders; use shell quotes for <description> if it contains spaces.";
|
|
106
174
|
next = [
|
|
107
175
|
{
|
|
108
|
-
command:
|
|
176
|
+
command: withGlobalFlags2(
|
|
109
177
|
client,
|
|
110
178
|
command.name === "add" ? `routes add --ai <description> --yes` : `routes edit <name-or-id> --ai <description> --yes`
|
|
111
179
|
),
|
|
@@ -136,40 +204,6 @@ async function parseSubcommandArgs(argv, command, client) {
|
|
|
136
204
|
}
|
|
137
205
|
return parsedArgs;
|
|
138
206
|
}
|
|
139
|
-
async function ensureProjectLink(client) {
|
|
140
|
-
const link = await getLinkedProject(client);
|
|
141
|
-
if (link.status === "error") {
|
|
142
|
-
return link.exitCode;
|
|
143
|
-
} else if (link.status === "not_linked") {
|
|
144
|
-
if (client.nonInteractive) {
|
|
145
|
-
const flags = getGlobalFlagsOnlyFromArgs(client.argv.slice(2));
|
|
146
|
-
const cmd = getCommandNamePlain(`link ${flags.join(" ")}`.trim());
|
|
147
|
-
outputAgentError(
|
|
148
|
-
client,
|
|
149
|
-
{
|
|
150
|
-
status: AGENT_STATUS.ERROR,
|
|
151
|
-
reason: AGENT_REASON.NOT_LINKED,
|
|
152
|
-
userActionRequired: true,
|
|
153
|
-
message: "Your codebase is not linked to a Vercel project. Run link first, then retry routes commands.",
|
|
154
|
-
next: [
|
|
155
|
-
{
|
|
156
|
-
command: cmd,
|
|
157
|
-
when: "to link this directory to a project"
|
|
158
|
-
}
|
|
159
|
-
]
|
|
160
|
-
},
|
|
161
|
-
1
|
|
162
|
-
);
|
|
163
|
-
return 1;
|
|
164
|
-
}
|
|
165
|
-
output_manager_default.error(
|
|
166
|
-
`Your codebase isn't linked to a project on Vercel. Run ${getCommandName("link")} to begin.`
|
|
167
|
-
);
|
|
168
|
-
return 1;
|
|
169
|
-
}
|
|
170
|
-
client.config.currentTeam = link.org.type === "team" ? link.org.id : void 0;
|
|
171
|
-
return link;
|
|
172
|
-
}
|
|
173
207
|
async function confirmAction(client, skipConfirmation, message, details) {
|
|
174
208
|
if (skipConfirmation)
|
|
175
209
|
return true;
|
|
@@ -194,14 +228,6 @@ async function confirmAction(client, skipConfirmation, message, details) {
|
|
|
194
228
|
}
|
|
195
229
|
return await client.input.confirm(message, false);
|
|
196
230
|
}
|
|
197
|
-
function validateRequiredArgs(args, required) {
|
|
198
|
-
for (let i = 0; i < required.length; i++) {
|
|
199
|
-
if (!args[i]) {
|
|
200
|
-
return `Missing required argument: ${required[i]}`;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
return null;
|
|
204
|
-
}
|
|
205
231
|
function formatCondition(condition) {
|
|
206
232
|
const parts = [import_chalk.default.gray(`[${condition.type}]`)];
|
|
207
233
|
if (condition.key) {
|
|
@@ -269,7 +295,7 @@ async function offerAutoPromote(client, projectId, version, hadExistingStagingVe
|
|
|
269
295
|
const { default: stamp } = await import("./stamp-AA7R3MZS.js");
|
|
270
296
|
output_manager_default.print(
|
|
271
297
|
`
|
|
272
|
-
${import_chalk.default.gray(`This change is staged. Run ${import_chalk.default.cyan(
|
|
298
|
+
${import_chalk.default.gray(`This change is staged. Run ${import_chalk.default.cyan(withGlobalFlags2(client, "routes publish"))} to make it live, or ${import_chalk.default.cyan(withGlobalFlags2(client, "routes discard-staging"))} to undo.`)}
|
|
273
299
|
`
|
|
274
300
|
);
|
|
275
301
|
if (!hadExistingStagingVersion && !opts.skipPrompts) {
|
|
@@ -297,7 +323,7 @@ async function offerAutoPromote(client, projectId, version, hadExistingStagingVe
|
|
|
297
323
|
}
|
|
298
324
|
} else if (hadExistingStagingVersion) {
|
|
299
325
|
output_manager_default.warn(
|
|
300
|
-
`There are other staged changes. Review with ${import_chalk.default.cyan(
|
|
326
|
+
`There are other staged changes. Review with ${import_chalk.default.cyan(withGlobalFlags2(client, "routes list --diff"))} before promoting.`
|
|
301
327
|
);
|
|
302
328
|
}
|
|
303
329
|
}
|
|
@@ -364,7 +390,7 @@ async function resolveRoute(client, routes, identifier) {
|
|
|
364
390
|
message: `Multiple routes match "${identifier}" (${matches.length} matches). Pass an exact route name or ID.`,
|
|
365
391
|
next: [
|
|
366
392
|
{
|
|
367
|
-
command:
|
|
393
|
+
command: withGlobalFlags2(client, "routes list"),
|
|
368
394
|
when: "list routes to get exact id"
|
|
369
395
|
}
|
|
370
396
|
]
|
|
@@ -396,7 +422,7 @@ async function resolveRoutes(client, routes, identifiers) {
|
|
|
396
422
|
message: `No route found matching "${identifier}".`,
|
|
397
423
|
next: [
|
|
398
424
|
{
|
|
399
|
-
command:
|
|
425
|
+
command: withGlobalFlags2(client, "routes list"),
|
|
400
426
|
when: "list routes"
|
|
401
427
|
}
|
|
402
428
|
]
|
|
@@ -406,9 +432,7 @@ async function resolveRoutes(client, routes, identifiers) {
|
|
|
406
432
|
return null;
|
|
407
433
|
}
|
|
408
434
|
output_manager_default.error(
|
|
409
|
-
`No route found matching "${identifier}". Run ${import_chalk.default.cyan(
|
|
410
|
-
getCommandName("routes list")
|
|
411
|
-
)} to see all routes.`
|
|
435
|
+
`No route found matching "${identifier}". Run ${import_chalk.default.cyan(withGlobalFlags2(client, "routes list"))} to see all routes.`
|
|
412
436
|
);
|
|
413
437
|
return null;
|
|
414
438
|
}
|
|
@@ -416,12 +440,12 @@ async function resolveRoutes(client, routes, identifiers) {
|
|
|
416
440
|
}
|
|
417
441
|
return Array.from(resolved.values());
|
|
418
442
|
}
|
|
419
|
-
function findVersionById(versions, identifier) {
|
|
443
|
+
function findVersionById(client, versions, identifier) {
|
|
420
444
|
const matchingVersions = versions.filter((v) => v.id.startsWith(identifier));
|
|
421
445
|
if (matchingVersions.length === 0) {
|
|
422
446
|
return {
|
|
423
447
|
error: `Version "${identifier}" not found. Run ${import_chalk.default.cyan(
|
|
424
|
-
|
|
448
|
+
withGlobalFlags2(client, "routes list-versions")
|
|
425
449
|
)} to see available versions.`
|
|
426
450
|
};
|
|
427
451
|
}
|
|
@@ -455,15 +479,16 @@ async function getRoutes(client, projectId, options = {}) {
|
|
|
455
479
|
}
|
|
456
480
|
|
|
457
481
|
export {
|
|
482
|
+
requireProjectContext,
|
|
483
|
+
parseSubcommandArguments,
|
|
484
|
+
validateRequiredArguments,
|
|
458
485
|
getRouteTypeLabel,
|
|
459
486
|
getSrcSyntaxLabel,
|
|
460
487
|
isTargetTransform,
|
|
461
|
-
withGlobalFlags,
|
|
488
|
+
withGlobalFlags2 as withGlobalFlags,
|
|
462
489
|
shellQuoteRouteIdentifierForSuggestion,
|
|
463
490
|
parseSubcommandArgs,
|
|
464
|
-
ensureProjectLink,
|
|
465
491
|
confirmAction,
|
|
466
|
-
validateRequiredArgs,
|
|
467
492
|
formatCondition,
|
|
468
493
|
TRANSFORM_TYPE_LABELS,
|
|
469
494
|
formatTransform,
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
require_lib,
|
|
20
20
|
require_minimatch,
|
|
21
21
|
require_pluralize
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RGOP4OYL.js";
|
|
23
23
|
import {
|
|
24
24
|
CantParseJSONFile,
|
|
25
25
|
cmd,
|
|
26
26
|
code
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-KSSNLCL4.js";
|
|
28
28
|
import {
|
|
29
29
|
output_manager_default,
|
|
30
30
|
require_dist
|
|
@@ -10873,7 +10873,17 @@ async function explode(paths, { accepts }) {
|
|
|
10873
10873
|
}
|
|
10874
10874
|
}
|
|
10875
10875
|
if (s.isDirectory()) {
|
|
10876
|
-
|
|
10876
|
+
let all;
|
|
10877
|
+
try {
|
|
10878
|
+
all = await import_fs_extra.default.readdir(file);
|
|
10879
|
+
} catch (err) {
|
|
10880
|
+
const code2 = err instanceof Error && "code" in err ? err.code : void 0;
|
|
10881
|
+
if (code2 === "ENOENT" || code2 === "ENOTDIR") {
|
|
10882
|
+
debug(`Ignoring directory that has since been removed ${file}`);
|
|
10883
|
+
return null;
|
|
10884
|
+
}
|
|
10885
|
+
throw err;
|
|
10886
|
+
}
|
|
10877
10887
|
const recursive = many(all.map((subdir) => asAbsolute(subdir, file)));
|
|
10878
10888
|
return recursive;
|
|
10879
10889
|
}
|
|
@@ -7,12 +7,10 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
formatOption,
|
|
9
9
|
limitOption,
|
|
10
|
+
packageName,
|
|
10
11
|
projectOption,
|
|
11
12
|
yesOption
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
packageName
|
|
15
|
-
} from "./chunk-P6AK7SVK.js";
|
|
13
|
+
} from "./chunk-KSSNLCL4.js";
|
|
16
14
|
|
|
17
15
|
// src/commands/vcr/image/command.ts
|
|
18
16
|
var projectScopeOption = {
|
|
@@ -7,11 +7,9 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
formatOption,
|
|
9
9
|
limitOption,
|
|
10
|
+
packageName,
|
|
10
11
|
projectOption
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import {
|
|
13
|
-
packageName
|
|
14
|
-
} from "./chunk-P6AK7SVK.js";
|
|
12
|
+
} from "./chunk-KSSNLCL4.js";
|
|
15
13
|
|
|
16
14
|
// src/commands/vcr/tags/command.ts
|
|
17
15
|
var projectScopeOption = {
|
|
@@ -7,39 +7,39 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommandInfo,
|
|
9
9
|
isGlobal
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-26VWIAO5.js";
|
|
11
11
|
import {
|
|
12
12
|
getGlobalPathConfig,
|
|
13
13
|
progress,
|
|
14
14
|
writeToConfigFile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SAEAR237.js";
|
|
16
16
|
import {
|
|
17
17
|
apiCommand,
|
|
18
18
|
listSubcommand3 as listSubcommand,
|
|
19
19
|
loginCommand
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7ZECC3BE.js";
|
|
21
21
|
import {
|
|
22
22
|
require_semver
|
|
23
23
|
} from "./chunk-IB5L4LKZ.js";
|
|
24
24
|
import {
|
|
25
25
|
help
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DMSLNAVH.js";
|
|
27
27
|
import {
|
|
28
28
|
login
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-RGOP4OYL.js";
|
|
30
30
|
import {
|
|
31
31
|
TelemetryClient,
|
|
32
32
|
isNativeBinaryInstall
|
|
33
33
|
} from "./chunk-ECCWJHC6.js";
|
|
34
34
|
import {
|
|
35
|
-
getFlagsSpecification,
|
|
36
35
|
parseArguments,
|
|
37
36
|
printError,
|
|
38
37
|
require_strip_ansi
|
|
39
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SZXT3PDQ.js";
|
|
40
39
|
import {
|
|
40
|
+
getFlagsSpecification,
|
|
41
41
|
packageName
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-KSSNLCL4.js";
|
|
43
43
|
import {
|
|
44
44
|
pkg_default
|
|
45
45
|
} from "./chunk-P4QNYOFB.js";
|
|
@@ -10,17 +10,13 @@ import {
|
|
|
10
10
|
progress,
|
|
11
11
|
require_dist as require_dist2,
|
|
12
12
|
sleep
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SAEAR237.js";
|
|
14
14
|
import {
|
|
15
15
|
suggestNextCommands
|
|
16
16
|
} from "./chunk-XBN2O34P.js";
|
|
17
|
-
import {
|
|
18
|
-
getDeployment,
|
|
19
|
-
mapCertError
|
|
20
|
-
} from "./chunk-SGL3NMOP.js";
|
|
21
17
|
import {
|
|
22
18
|
CommandTimeout
|
|
23
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7ZECC3BE.js";
|
|
24
20
|
import {
|
|
25
21
|
showPluginTipIfNeeded
|
|
26
22
|
} from "./chunk-NJUPUGOE.js";
|
|
@@ -28,20 +24,20 @@ import {
|
|
|
28
24
|
stamp_default
|
|
29
25
|
} from "./chunk-64IF634X.js";
|
|
30
26
|
import {
|
|
31
|
-
|
|
32
|
-
} from "./chunk-DWU7JOO6.js";
|
|
33
|
-
import {
|
|
27
|
+
getDeployment,
|
|
34
28
|
getProjectByNameOrId,
|
|
29
|
+
getScope,
|
|
30
|
+
mapCertError,
|
|
35
31
|
param,
|
|
36
32
|
printAlignedLabel,
|
|
37
33
|
require_dist as require_dist3,
|
|
38
34
|
require_pluralize,
|
|
39
35
|
ua_default
|
|
40
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-RGOP4OYL.js";
|
|
41
37
|
import {
|
|
42
38
|
require_strip_ansi,
|
|
43
39
|
responseError
|
|
44
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-SZXT3PDQ.js";
|
|
45
41
|
import {
|
|
46
42
|
APIError,
|
|
47
43
|
BuildError,
|
|
@@ -59,7 +55,7 @@ import {
|
|
|
59
55
|
getCommandName,
|
|
60
56
|
isAPIError,
|
|
61
57
|
require_bytes
|
|
62
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-KSSNLCL4.js";
|
|
63
59
|
import {
|
|
64
60
|
Headers,
|
|
65
61
|
fetch,
|
|
@@ -2031,7 +2027,7 @@ async function processDeployment({
|
|
|
2031
2027
|
aliasAssignedController.abort(event);
|
|
2032
2028
|
};
|
|
2033
2029
|
const clientOptions = {
|
|
2034
|
-
teamId:
|
|
2030
|
+
teamId: now.currentTeam ?? void 0,
|
|
2035
2031
|
apiUrl: now._apiUrl,
|
|
2036
2032
|
token,
|
|
2037
2033
|
debug: output_manager_default.isDebugEnabled(),
|
|
@@ -6,19 +6,17 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveAlertsScope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D7SLHLED.js";
|
|
10
10
|
import {
|
|
11
11
|
handleValidationError,
|
|
12
12
|
outputError,
|
|
13
13
|
validateAllProjectMutualExclusivity
|
|
14
14
|
} from "./chunk-BUZRVER7.js";
|
|
15
15
|
import {
|
|
16
|
-
AGENT_REASON
|
|
17
|
-
} from "./chunk-IC4YEIGW.js";
|
|
18
|
-
import {
|
|
16
|
+
AGENT_REASON,
|
|
19
17
|
buildCommandWithGlobalFlags,
|
|
20
18
|
outputAgentError
|
|
21
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UDWRZXIT.js";
|
|
22
20
|
|
|
23
21
|
// src/commands/alerts/rules/parse-scope.ts
|
|
24
22
|
async function parseRulesFlagsAndScope(client, flags, jsonOutput) {
|