vercel 54.18.6 → 54.19.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-DFHK2LCD.js → add-P6CBTAGK.js} +4 -4
- package/dist/chunks/add-WB6SXGXX.js +134 -0
- package/dist/chunks/{chunk-LQALVXRD.js → chunk-3S2QGKYZ.js} +1 -1
- package/dist/chunks/chunk-4QVAYRYH.js +71 -0
- package/dist/chunks/{chunk-22CQWS5E.js → chunk-5MVXR7B7.js} +1 -1
- package/dist/chunks/{chunk-VKGCONIM.js → chunk-6ISLGUMI.js} +3 -3
- package/dist/chunks/chunk-AUECDTMX.js +128 -0
- package/dist/chunks/{chunk-3WENOEKR.js → chunk-FM24W7ET.js} +4 -4
- package/dist/chunks/{chunk-GXAVQSHO.js → chunk-FVI6UYNL.js} +1 -1
- package/dist/chunks/{chunk-DHLDURNP.js → chunk-FZZWTDNQ.js} +2 -2
- package/dist/chunks/chunk-I3HGCZ4E.js +72 -0
- package/dist/chunks/{chunk-CXGDCPH4.js → chunk-ITU4COOO.js} +12 -3
- package/dist/chunks/chunk-KXGWAWRV.js +148 -0
- package/dist/chunks/{chunk-NN7E6Y4F.js → chunk-L6QLQSJE.js} +2 -2
- package/dist/chunks/{chunk-XQQXV6ZZ.js → chunk-LFODAB54.js} +1 -0
- package/dist/chunks/{chunk-I43WUYKE.js → chunk-O2QNLUYX.js} +1 -1
- package/dist/chunks/{chunk-BI2IN6RX.js → chunk-P726GMBL.js} +1 -1
- package/dist/chunks/{chunk-7273TMGI.js → chunk-Q4A2Q46Z.js} +4 -4
- package/dist/chunks/{chunk-ODVBO56J.js → chunk-Q7GZMMHB.js} +2 -2
- package/dist/chunks/{chunk-F6YGVA2L.js → chunk-RB7WQKNC.js} +3 -2
- package/dist/chunks/{chunk-URFSONFS.js → chunk-RKLBPBRM.js} +1 -1
- package/dist/chunks/chunk-RY3AVR6E.js +111 -0
- package/dist/chunks/{chunk-QPBO2QDL.js → chunk-SQYJEUZD.js} +4 -4
- package/dist/chunks/{chunk-ZAJ4OMXG.js → chunk-TV7GKFSY.js} +1 -1
- package/dist/chunks/{chunk-PPW2JATF.js → chunk-U3FBUYRS.js} +1 -1
- package/dist/chunks/chunk-VGIMO3ZK.js +17 -0
- package/dist/chunks/{chunk-BSSEGYXP.js → chunk-WFXGLPSI.js} +7 -3
- package/dist/chunks/{chunk-V7IBBQ2D.js → chunk-YWLVPKNT.js} +1 -1
- package/dist/chunks/chunk-ZVDYGXRA.js +363 -0
- package/dist/chunks/{chunk-VTE7W5ZP.js → chunk-ZZIAWRCX.js} +0 -8
- package/dist/chunks/{compile-vercel-config-WRCB2TG2.js → compile-vercel-config-XEZ2TPQ4.js} +1 -1
- package/dist/chunks/{delete-DIFVXSQA.js → delete-O3F4EP2W.js} +2 -2
- package/dist/chunks/{disable-623SZAWT.js → disable-SJWGUQKZ.js} +2 -2
- package/dist/chunks/{discard-R7YAQI6C.js → discard-EQD6ENC3.js} +2 -2
- package/dist/chunks/{edit-CY2RYSKD.js → edit-NAIWNSXE.js} +3 -3
- package/dist/chunks/{enable-HHOQLDPW.js → enable-LXO62HU5.js} +2 -2
- package/dist/chunks/{export-TNFZHJKM.js → export-EHVTYAAP.js} +2 -2
- package/dist/chunks/image-R4JG4NX4.js +73 -0
- package/dist/chunks/inspect-57BITHYZ.js +136 -0
- package/dist/chunks/{inspect-7JLYYYAR.js → inspect-KYVZQL56.js} +3 -3
- package/dist/chunks/inspect-RTJALSXC.js +167 -0
- package/dist/chunks/inspect-VXODLWNM.js +163 -0
- package/dist/chunks/{list-5LKLQBXP.js → list-BYTNF7D7.js} +3 -3
- package/dist/chunks/{list-K4F7WGQR.js → list-MUFZTUZA.js} +2 -2
- package/dist/chunks/ls-D7NWJACX.js +165 -0
- package/dist/chunks/ls-JPWOOVMW.js +214 -0
- package/dist/chunks/{ls-DUHNXBAL.js → ls-PDILBRUL.js} +4 -4
- package/dist/chunks/ls-ZDMXBOJF.js +201 -0
- package/dist/chunks/{publish-O5UJJQKF.js → publish-27V2MMFS.js} +2 -2
- package/dist/chunks/{query-FE6G54EI.js → query-75PT24SH.js} +2 -2
- package/dist/chunks/{reorder-YH47SCZC.js → reorder-DCSIJX72.js} +2 -2
- package/dist/chunks/{restore-TSR6PO3H.js → restore-NRUBGNSK.js} +2 -2
- package/dist/chunks/{rm-PQSDPXP2.js → rm-BJSTNUIJ.js} +4 -4
- package/dist/chunks/rm-OSIDD4VR.js +137 -0
- package/dist/chunks/rm-ZJQ5DOAW.js +137 -0
- package/dist/chunks/{rule-inspect-TNP2HULT.js → rule-inspect-WTU3MGMH.js} +4 -4
- package/dist/chunks/{rules-IO4KI6U7.js → rules-6PXGKHFH.js} +6 -6
- package/dist/chunks/{schema-QFN4XSPZ.js → schema-Z6L3EN6F.js} +2 -2
- package/dist/chunks/tags-HHNNZLC6.js +67 -0
- package/dist/chunks/{update-PGYIRCOQ.js → update-TTPNV44H.js} +4 -4
- package/dist/commands/build/index.js +148 -50
- package/dist/commands/deploy/index.js +13 -10
- package/dist/commands/dev/index.js +8 -8
- package/dist/commands/dev/next-dev-websocket-shim-preload.cjs +20 -0
- package/dist/commands/env/index.js +11 -6
- package/dist/commands/link/index.js +10 -7
- package/dist/commands/list/index.js +3 -3
- package/dist/commands-bulk.js +957 -723
- package/dist/help.js +1 -1
- package/dist/index.js +22 -9
- package/dist/version.mjs +1 -1
- package/package.json +15 -15
|
@@ -0,0 +1,137 @@
|
|
|
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
|
+
imagePath
|
|
9
|
+
} from "./chunk-4QVAYRYH.js";
|
|
10
|
+
import {
|
|
11
|
+
emitVcrArgParseError,
|
|
12
|
+
handleVcrApiError,
|
|
13
|
+
requireVcrRepositoryAndImageId,
|
|
14
|
+
resolveVcrScope,
|
|
15
|
+
validateVcrJsonOutput
|
|
16
|
+
} from "./chunk-ZVDYGXRA.js";
|
|
17
|
+
import "./chunk-E2ENQE2W.js";
|
|
18
|
+
import "./chunk-XPKWKPWA.js";
|
|
19
|
+
import {
|
|
20
|
+
imageRmSubcommand
|
|
21
|
+
} from "./chunk-AUECDTMX.js";
|
|
22
|
+
import {
|
|
23
|
+
AGENT_REASON
|
|
24
|
+
} from "./chunk-QH7WYDEP.js";
|
|
25
|
+
import "./chunk-P726GMBL.js";
|
|
26
|
+
import "./chunk-RB7WQKNC.js";
|
|
27
|
+
import {
|
|
28
|
+
buildCommandWithYes,
|
|
29
|
+
outputAgentError
|
|
30
|
+
} from "./chunk-IZOHLD5D.js";
|
|
31
|
+
import "./chunk-ECCWJHC6.js";
|
|
32
|
+
import {
|
|
33
|
+
getFlagsSpecification,
|
|
34
|
+
parseArguments,
|
|
35
|
+
printError
|
|
36
|
+
} from "./chunk-EJ6GQI6F.js";
|
|
37
|
+
import {
|
|
38
|
+
isAPIError
|
|
39
|
+
} from "./chunk-P6AK7SVK.js";
|
|
40
|
+
import "./chunk-P4QNYOFB.js";
|
|
41
|
+
import "./chunk-2RVK3DDN.js";
|
|
42
|
+
import {
|
|
43
|
+
output_manager_default
|
|
44
|
+
} from "./chunk-OX7KI3LF.js";
|
|
45
|
+
import "./chunk-GGP5R3FU.js";
|
|
46
|
+
import "./chunk-S7KYDPEM.js";
|
|
47
|
+
import "./chunk-TZ2YI2VH.js";
|
|
48
|
+
|
|
49
|
+
// src/commands/vcr/image/rm.ts
|
|
50
|
+
async function rm(client, argv, telemetry) {
|
|
51
|
+
let parsedArgs;
|
|
52
|
+
try {
|
|
53
|
+
parsedArgs = parseArguments(
|
|
54
|
+
argv,
|
|
55
|
+
getFlagsSpecification(imageRmSubcommand.options)
|
|
56
|
+
);
|
|
57
|
+
} catch (err) {
|
|
58
|
+
emitVcrArgParseError(
|
|
59
|
+
client,
|
|
60
|
+
err,
|
|
61
|
+
"vcr image rm <repository> <imageId> --project <name-or-id>"
|
|
62
|
+
);
|
|
63
|
+
printError(err);
|
|
64
|
+
return 1;
|
|
65
|
+
}
|
|
66
|
+
const fr = validateVcrJsonOutput(client, parsedArgs.flags);
|
|
67
|
+
if (typeof fr === "number") {
|
|
68
|
+
return fr;
|
|
69
|
+
}
|
|
70
|
+
const repository = parsedArgs.args[0];
|
|
71
|
+
const imageId = parsedArgs.args[1];
|
|
72
|
+
const project = parsedArgs.flags["--project"];
|
|
73
|
+
const skipConfirmation = Boolean(parsedArgs.flags["--yes"]);
|
|
74
|
+
telemetry.trackCliOptionProject(project);
|
|
75
|
+
telemetry.trackCliFlagYes(parsedArgs.flags["--yes"]);
|
|
76
|
+
telemetry.trackCliOptionFormat(parsedArgs.flags["--format"]);
|
|
77
|
+
const missingArgs = requireVcrRepositoryAndImageId(
|
|
78
|
+
client,
|
|
79
|
+
repository,
|
|
80
|
+
imageId,
|
|
81
|
+
fr.jsonOutput,
|
|
82
|
+
"vcr image rm <repository> <imageId>"
|
|
83
|
+
);
|
|
84
|
+
if (typeof missingArgs === "number") {
|
|
85
|
+
return missingArgs;
|
|
86
|
+
}
|
|
87
|
+
const scope = await resolveVcrScope(client, {
|
|
88
|
+
project,
|
|
89
|
+
jsonOutput: fr.jsonOutput
|
|
90
|
+
});
|
|
91
|
+
if (typeof scope === "number") {
|
|
92
|
+
return scope;
|
|
93
|
+
}
|
|
94
|
+
if (!skipConfirmation) {
|
|
95
|
+
outputAgentError(
|
|
96
|
+
client,
|
|
97
|
+
{
|
|
98
|
+
status: "error",
|
|
99
|
+
reason: AGENT_REASON.CONFIRMATION_REQUIRED,
|
|
100
|
+
message: "Deleting an image is permanent. Re-run with --yes.",
|
|
101
|
+
next: [{ command: buildCommandWithYes(client.argv) }]
|
|
102
|
+
},
|
|
103
|
+
1
|
|
104
|
+
);
|
|
105
|
+
if (!await client.input.confirm(
|
|
106
|
+
`Delete image ${imageId} from ${repository}? This cannot be undone.`,
|
|
107
|
+
false
|
|
108
|
+
)) {
|
|
109
|
+
output_manager_default.log("Canceled");
|
|
110
|
+
return 0;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
const path = imagePath(scope, repository, imageId);
|
|
114
|
+
output_manager_default.spinner("Deleting image...");
|
|
115
|
+
try {
|
|
116
|
+
await client.fetch(path, { method: "DELETE" });
|
|
117
|
+
if (fr.jsonOutput) {
|
|
118
|
+
client.stdout.write(
|
|
119
|
+
`${JSON.stringify({ imageId, repository, deleted: true }, null, 2)}
|
|
120
|
+
`
|
|
121
|
+
);
|
|
122
|
+
} else {
|
|
123
|
+
output_manager_default.success(`Image ${imageId} deleted`);
|
|
124
|
+
}
|
|
125
|
+
return 0;
|
|
126
|
+
} catch (err) {
|
|
127
|
+
if (isAPIError(err)) {
|
|
128
|
+
return handleVcrApiError(client, err, fr.jsonOutput);
|
|
129
|
+
}
|
|
130
|
+
throw err;
|
|
131
|
+
} finally {
|
|
132
|
+
output_manager_default.stopSpinner();
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
export {
|
|
136
|
+
rm as default
|
|
137
|
+
};
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesItemPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-RKLBPBRM.js";
|
|
13
|
+
import "./chunk-L6QLQSJE.js";
|
|
14
14
|
import "./chunk-E2ENQE2W.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
AGENT_REASON
|
|
23
23
|
} from "./chunk-QH7WYDEP.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-P726GMBL.js";
|
|
25
|
+
import "./chunk-RB7WQKNC.js";
|
|
26
26
|
import {
|
|
27
27
|
buildCommandWithGlobalFlags,
|
|
28
28
|
outputAgentError
|
|
@@ -32,7 +32,7 @@ var RULES_CONFIG = {
|
|
|
32
32
|
};
|
|
33
33
|
async function rules(client, argv) {
|
|
34
34
|
if (argv.length === 0) {
|
|
35
|
-
const lsFn = (await import("./ls-
|
|
35
|
+
const lsFn = (await import("./ls-PDILBRUL.js")).default;
|
|
36
36
|
return lsFn(client, []);
|
|
37
37
|
}
|
|
38
38
|
const { subcommand, args, subcommandOriginal } = getSubcommand(
|
|
@@ -65,15 +65,15 @@ async function rules(client, argv) {
|
|
|
65
65
|
}
|
|
66
66
|
switch (subcommand) {
|
|
67
67
|
case "ls":
|
|
68
|
-
return (await import("./ls-
|
|
68
|
+
return (await import("./ls-PDILBRUL.js")).default(client, args);
|
|
69
69
|
case "add":
|
|
70
|
-
return (await import("./add-
|
|
70
|
+
return (await import("./add-P6CBTAGK.js")).default(client, args);
|
|
71
71
|
case "inspect":
|
|
72
|
-
return (await import("./rule-inspect-
|
|
72
|
+
return (await import("./rule-inspect-WTU3MGMH.js")).default(client, args);
|
|
73
73
|
case "rm":
|
|
74
|
-
return (await import("./rm-
|
|
74
|
+
return (await import("./rm-BJSTNUIJ.js")).default(client, args);
|
|
75
75
|
case "update":
|
|
76
|
-
return (await import("./update-
|
|
76
|
+
return (await import("./update-TTPNV44H.js")).default(client, args);
|
|
77
77
|
default:
|
|
78
78
|
output_manager_default.error(`Unhandled rules subcommand: ${String(subcommandOriginal)}`);
|
|
79
79
|
return 1;
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
} from "./chunk-MAJWH2PD.js";
|
|
24
24
|
import {
|
|
25
25
|
getScope
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-P726GMBL.js";
|
|
27
27
|
import "./chunk-VKBYAWTL.js";
|
|
28
28
|
import {
|
|
29
29
|
require_pluralize
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-RB7WQKNC.js";
|
|
31
31
|
import "./chunk-IZOHLD5D.js";
|
|
32
32
|
import "./chunk-ECCWJHC6.js";
|
|
33
33
|
import {
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
getInvalidSubcommand
|
|
9
|
+
} from "./chunk-VGIMO3ZK.js";
|
|
10
|
+
import {
|
|
11
|
+
getSubcommand
|
|
12
|
+
} from "./chunk-YPQSDAEW.js";
|
|
13
|
+
import {
|
|
14
|
+
AGENT_REASON
|
|
15
|
+
} from "./chunk-QH7WYDEP.js";
|
|
16
|
+
import {
|
|
17
|
+
buildCommandWithGlobalFlags,
|
|
18
|
+
outputAgentError
|
|
19
|
+
} from "./chunk-IZOHLD5D.js";
|
|
20
|
+
import "./chunk-P6AK7SVK.js";
|
|
21
|
+
import "./chunk-P4QNYOFB.js";
|
|
22
|
+
import {
|
|
23
|
+
output_manager_default
|
|
24
|
+
} from "./chunk-OX7KI3LF.js";
|
|
25
|
+
import "./chunk-S7KYDPEM.js";
|
|
26
|
+
import "./chunk-TZ2YI2VH.js";
|
|
27
|
+
|
|
28
|
+
// src/commands/vcr/tags/index.ts
|
|
29
|
+
var TAGS_CONFIG = {
|
|
30
|
+
ls: ["ls", "list"],
|
|
31
|
+
inspect: ["inspect", "get"]
|
|
32
|
+
};
|
|
33
|
+
async function tags(client, argv, telemetry) {
|
|
34
|
+
const { subcommand, args } = getSubcommand(argv, TAGS_CONFIG);
|
|
35
|
+
if (subcommand == null) {
|
|
36
|
+
const message = argv.length === 0 ? getInvalidSubcommand(TAGS_CONFIG) : `Unknown "vcr tag" subcommand "${argv[0]}".`;
|
|
37
|
+
outputAgentError(
|
|
38
|
+
client,
|
|
39
|
+
{
|
|
40
|
+
status: "error",
|
|
41
|
+
reason: AGENT_REASON.INVALID_ARGUMENTS,
|
|
42
|
+
message,
|
|
43
|
+
next: [
|
|
44
|
+
{
|
|
45
|
+
command: buildCommandWithGlobalFlags(client.argv, "vcr tag --help"),
|
|
46
|
+
when: "Show valid tag subcommands"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
1
|
|
51
|
+
);
|
|
52
|
+
output_manager_default.error(`${message} Run \`vercel vcr tag --help\`.`);
|
|
53
|
+
return 1;
|
|
54
|
+
}
|
|
55
|
+
switch (subcommand) {
|
|
56
|
+
case "ls":
|
|
57
|
+
return (await import("./ls-JPWOOVMW.js")).default(client, args, telemetry);
|
|
58
|
+
case "inspect":
|
|
59
|
+
return (await import("./inspect-VXODLWNM.js")).default(client, args, telemetry);
|
|
60
|
+
default:
|
|
61
|
+
output_manager_default.error(`Unhandled tags subcommand: ${subcommand}`);
|
|
62
|
+
return 1;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
tags as default
|
|
67
|
+
};
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesItemPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-RKLBPBRM.js";
|
|
13
|
+
import "./chunk-L6QLQSJE.js";
|
|
14
14
|
import "./chunk-E2ENQE2W.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
AGENT_REASON
|
|
23
23
|
} from "./chunk-QH7WYDEP.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-P726GMBL.js";
|
|
25
|
+
import "./chunk-RB7WQKNC.js";
|
|
26
26
|
import {
|
|
27
27
|
buildCommandWithGlobalFlags,
|
|
28
28
|
outputAgentError
|