vercel 56.4.1 → 57.0.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-L3Z6PL54.js → add-7M577U56.js} +7 -6
- package/dist/chunks/{add-RFEJCIBM.js → add-YRZTDNXX.js} +3 -3
- package/dist/chunks/{chunk-V5P25P7F.js → chunk-2473DUBR.js} +4 -11
- package/dist/chunks/{chunk-5EXIJBLL.js → chunk-2EDWKVNP.js} +8 -8
- package/dist/chunks/{chunk-YS6EDZHB.js → chunk-2MJROFVC.js} +5 -1
- package/dist/chunks/{chunk-OOD67FAL.js → chunk-3242RXCN.js} +1 -1
- package/dist/chunks/chunk-3PGXYIKC.js +147 -0
- package/dist/chunks/{chunk-CHZBEMLF.js → chunk-4PGF367U.js} +47 -210
- package/dist/chunks/{chunk-GKVAAY2A.js → chunk-555WJSO5.js} +1 -1
- package/dist/chunks/chunk-5AJPMLDV.js +28 -0
- package/dist/chunks/{chunk-IHQ7DPQI.js → chunk-A2TYQBX2.js} +117 -3
- package/dist/chunks/chunk-A3NYPUKZ.js +17 -0
- package/dist/chunks/{chunk-W346YNDN.js → chunk-DWMH5M4Q.js} +4 -1
- package/dist/chunks/chunk-E336ZXPP.js +43 -0
- package/dist/chunks/chunk-F5PQWDOC.js +245 -0
- package/dist/chunks/{chunk-Y7TVKRRJ.js → chunk-F7X55TOY.js} +15 -839
- package/dist/chunks/chunk-FGDKMNEN.js +21 -0
- package/dist/chunks/chunk-FHEMFAHB.js +320 -0
- package/dist/chunks/{chunk-NLRIKNPX.js → chunk-GP5VCTEU.js} +1 -1
- package/dist/chunks/chunk-GZLPFESR.js +48 -0
- package/dist/chunks/{chunk-HZKJMZEQ.js → chunk-HD7B425F.js} +2 -2
- package/dist/chunks/{chunk-J6KTUJHV.js → chunk-IOAZNR6Z.js} +1 -1
- package/dist/chunks/{chunk-STJJ3DFO.js → chunk-KCF6S3XF.js} +16 -1
- package/dist/chunks/chunk-LMHT3QR3.js +247 -0
- package/dist/chunks/{chunk-A4XB42AB.js → chunk-MAHINYBW.js} +4 -3
- package/dist/chunks/{chunk-DXFSBJTA.js → chunk-MIFDRYTN.js} +1 -1
- package/dist/chunks/{chunk-VLTQJKP6.js → chunk-NH43BFJ3.js} +1 -1
- package/dist/chunks/{chunk-Z7NPYIZ6.js → chunk-NM43FFV6.js} +0 -8
- package/dist/chunks/{chunk-MQRHJEBS.js → chunk-NRNMT43R.js} +3 -3
- package/dist/chunks/chunk-OF2GNB42.js +53 -0
- package/dist/chunks/chunk-PRWJUY5U.js +848 -0
- package/dist/chunks/{chunk-F5OMERHI.js → chunk-QZD5DKUR.js} +10 -23
- package/dist/chunks/{chunk-4M3ZQCYN.js → chunk-RAFH25WW.js} +8 -1
- package/dist/chunks/{chunk-43B3LNUF.js → chunk-RYO6FJFB.js} +1 -1
- package/dist/chunks/{chunk-XFGY3JAX.js → chunk-T4NODP6Y.js} +11 -18
- package/dist/chunks/{chunk-GLAHGVBS.js → chunk-TBR2Q37Y.js} +2038 -1786
- package/dist/chunks/chunk-V4RMJKQP.js +36 -0
- package/dist/chunks/chunk-WR7JTCGL.js +104 -0
- package/dist/chunks/{chunk-6RTK6BWX.js → chunk-YA3WQFLY.js} +1 -1
- package/dist/chunks/{chunk-UHGAPG7O.js → chunk-YOZCJHLZ.js} +4 -4
- package/dist/chunks/{compile-vercel-config-J2X5OV6K.js → compile-vercel-config-3OHO3TJA.js} +2 -2
- package/dist/chunks/config-validator.mjs +1 -0
- package/dist/chunks/delete-3DZOCWCC.js +150 -0
- package/dist/chunks/{delete-57A44RN7.js → delete-VOSJLNEA.js} +3 -3
- package/dist/chunks/{disable-DNZ52MEO.js → disable-LQDEVRQF.js} +3 -3
- package/dist/chunks/{discard-HACSIZ74.js → discard-RGV4JKXQ.js} +3 -3
- package/dist/chunks/{edit-HJ47TQU3.js → edit-SFIEOQ24.js} +4 -4
- package/dist/chunks/edit-UPZPI54L.js +153 -0
- package/dist/chunks/{enable-BVLRVRYM.js → enable-6UVH35WC.js} +3 -3
- package/dist/chunks/{export-7MJFGMG7.js → export-6CEG3CK7.js} +3 -3
- package/dist/chunks/{image-4UMD7UZP.js → image-CQRCD2OE.js} +3 -3
- package/dist/chunks/inspect-4ZAH3RFT.js +205 -0
- package/dist/chunks/inspect-EXQBIAFF.js +587 -0
- package/dist/chunks/{inspect-WBHUZC3R.js → inspect-K5ZMQG7X.js} +3 -3
- package/dist/chunks/{inspect-4JD2QN67.js → inspect-UM3LDRPV.js} +3 -3
- package/dist/chunks/{inspect-XX3OXSHC.js → inspect-ZFRY3X3H.js} +3 -3
- package/dist/chunks/{list-AM6K2JCW.js → list-4DRVM7Q4.js} +42 -55
- package/dist/chunks/{list-5H57NTM4.js → list-FJCBOCCA.js} +2 -2
- package/dist/chunks/list-KCUHD4OA.js +360 -0
- package/dist/chunks/{login-YO34E4V5.js → login-DFGYNU3K.js} +3 -3
- package/dist/chunks/{ls-44NPIO2N.js → ls-34NCZKBE.js} +3 -3
- package/dist/chunks/{ls-P7ZLBWW2.js → ls-4QHHVXXD.js} +3 -3
- package/dist/chunks/{ls-YDUYTLXW.js → ls-CG6A7UXF.js} +3 -3
- package/dist/chunks/ls-RHEQ6YQB.js +188 -0
- package/dist/chunks/open-E3XADEMX.js +106 -0
- package/dist/chunks/{publish-RXFUYSW3.js → publish-Z3AQRUCS.js} +3 -3
- package/dist/chunks/{query-ILJJL3BZ.js → query-3EV66DO3.js} +9 -9
- package/dist/chunks/{reorder-GBCOPZT4.js → reorder-VA5E5ZJT.js} +3 -3
- package/dist/chunks/reply-SNSCNKAW.js +167 -0
- package/dist/chunks/resolve-6ZX4RTXX.js +228 -0
- package/dist/chunks/{restore-YK5DGGRX.js → restore-NEHI5B5P.js} +3 -3
- package/dist/chunks/{rm-O474MI5C.js → rm-22B22E47.js} +3 -3
- package/dist/chunks/{rm-LK6P7XTA.js → rm-E5ZVLAKO.js} +3 -3
- package/dist/chunks/{rm-FRZMXB2W.js → rm-FR6KE744.js} +7 -6
- package/dist/chunks/rule-inspect-DMP2CKJQ.js +283 -0
- package/dist/chunks/{rules-MZ2MP6KJ.js → rules-EYGXEI2Z.js} +7 -7
- package/dist/chunks/{schema-FR6CCQIZ.js → schema-2IIWOBSQ.js} +7 -5
- package/dist/chunks/{tags-AKRTKFRV.js → tags-ZDVYRHAY.js} +2 -2
- package/dist/chunks/{update-W3CWQB2F.js → update-QH4DQMZV.js} +7 -6
- package/dist/commands/build/index.js +45 -13
- package/dist/commands/deploy/index.js +38 -27
- package/dist/commands/dev/index.js +13 -16
- package/dist/commands/env/index.js +13 -11
- package/dist/commands/link/index.js +10 -9
- package/dist/commands/list/index.js +5 -5
- package/dist/commands-bulk.js +2981 -2179
- package/dist/index.js +31 -21
- package/dist/vc.js +54 -18
- package/dist/version.mjs +1 -1
- package/package.json +35 -35
- package/dist/chunks/chunk-F32B76CK.js +0 -86
- package/dist/chunks/inspect-5YZP7IWI.js +0 -351
- package/dist/chunks/ls-MB74DIQV.js +0 -113
- package/dist/chunks/rule-inspect-YEZGYINZ.js +0 -141
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
|
|
8
|
+
// src/util/input/prompt-cancellation.ts
|
|
9
|
+
var PromptCanceledError = class extends Error {
|
|
10
|
+
constructor() {
|
|
11
|
+
super("Prompt canceled");
|
|
12
|
+
this.name = "PromptCanceledError";
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
var PromptBackError = class extends Error {
|
|
16
|
+
constructor() {
|
|
17
|
+
super("Prompt back");
|
|
18
|
+
this.name = "PromptBackError";
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
function isPromptBackError(error) {
|
|
22
|
+
return error instanceof PromptBackError;
|
|
23
|
+
}
|
|
24
|
+
function isPromptCanceledError(error) {
|
|
25
|
+
if (error instanceof PromptCanceledError) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
return error instanceof Error && error.message.includes("User force closed the prompt");
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
PromptCanceledError,
|
|
33
|
+
PromptBackError,
|
|
34
|
+
isPromptBackError,
|
|
35
|
+
isPromptCanceledError
|
|
36
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
canPrompt
|
|
9
|
+
} from "./chunk-2473DUBR.js";
|
|
10
|
+
import {
|
|
11
|
+
outputError
|
|
12
|
+
} from "./chunk-BUZRVER7.js";
|
|
13
|
+
|
|
14
|
+
// src/commands/comments/content.ts
|
|
15
|
+
import { readFileSync } from "fs";
|
|
16
|
+
function readAllStandardInput(stdin) {
|
|
17
|
+
if (stdin.isTTY) {
|
|
18
|
+
return Promise.resolve("");
|
|
19
|
+
}
|
|
20
|
+
return new Promise((resolve) => {
|
|
21
|
+
const chunks = [];
|
|
22
|
+
const timer = setTimeout(() => {
|
|
23
|
+
if (chunks.length === 0) {
|
|
24
|
+
cleanup();
|
|
25
|
+
resolve("");
|
|
26
|
+
}
|
|
27
|
+
}, 500);
|
|
28
|
+
const onData = (chunk) => {
|
|
29
|
+
chunks.push(String(chunk));
|
|
30
|
+
};
|
|
31
|
+
const onEnd = () => {
|
|
32
|
+
cleanup();
|
|
33
|
+
resolve(chunks.join(""));
|
|
34
|
+
};
|
|
35
|
+
function cleanup() {
|
|
36
|
+
clearTimeout(timer);
|
|
37
|
+
stdin.off("data", onData);
|
|
38
|
+
stdin.off("end", onEnd);
|
|
39
|
+
}
|
|
40
|
+
stdin.setEncoding("utf8");
|
|
41
|
+
stdin.on("data", onData);
|
|
42
|
+
stdin.on("end", onEnd);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
async function resolveMessageContent(client, flags, jsonOutput) {
|
|
46
|
+
if (flags.message !== void 0 && flags.file !== void 0) {
|
|
47
|
+
return outputError(
|
|
48
|
+
client,
|
|
49
|
+
jsonOutput,
|
|
50
|
+
"CONFLICTING_CONTENT",
|
|
51
|
+
"Use either --message or --file, not both."
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
if (flags.message !== void 0) {
|
|
55
|
+
return flags.message;
|
|
56
|
+
}
|
|
57
|
+
if (flags.file !== void 0) {
|
|
58
|
+
if (flags.file === "-") {
|
|
59
|
+
const piped2 = await readAllStandardInput(client.stdin);
|
|
60
|
+
if (piped2) {
|
|
61
|
+
return piped2;
|
|
62
|
+
}
|
|
63
|
+
return outputError(
|
|
64
|
+
client,
|
|
65
|
+
jsonOutput,
|
|
66
|
+
"MISSING_CONTENT",
|
|
67
|
+
"No content received on stdin for `--file -`."
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
return readFileSync(flags.file, "utf8");
|
|
72
|
+
} catch (err) {
|
|
73
|
+
return outputError(
|
|
74
|
+
client,
|
|
75
|
+
jsonOutput,
|
|
76
|
+
"FILE_READ_ERROR",
|
|
77
|
+
`Could not read ${flags.file}: ${err instanceof Error ? err.message : String(err)}`
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
const piped = await readAllStandardInput(client.stdin);
|
|
82
|
+
if (piped) {
|
|
83
|
+
return piped;
|
|
84
|
+
}
|
|
85
|
+
if (flags.hasAttachments) {
|
|
86
|
+
return void 0;
|
|
87
|
+
}
|
|
88
|
+
if (canPrompt(client) && !jsonOutput) {
|
|
89
|
+
const text = await client.input.text({ message: "Comment message:" });
|
|
90
|
+
if (text) {
|
|
91
|
+
return text;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return outputError(
|
|
95
|
+
client,
|
|
96
|
+
jsonOutput,
|
|
97
|
+
"MISSING_CONTENT",
|
|
98
|
+
'No content provided. Pass -m <text>, --file <path>, or pipe stdin (e.g. `echo "LGTM" | vercel comments reply <thread>`).'
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export {
|
|
103
|
+
resolveMessageContent
|
|
104
|
+
};
|
|
@@ -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-3242RXCN.js";
|
|
10
10
|
import {
|
|
11
11
|
autoInstallVercelPlugin
|
|
12
12
|
} from "./chunk-NJUPUGOE.js";
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
} from "./chunk-64IF634X.js";
|
|
16
16
|
import {
|
|
17
17
|
ensureLink
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HD7B425F.js";
|
|
19
19
|
import {
|
|
20
20
|
pullCommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NH43BFJ3.js";
|
|
22
22
|
import {
|
|
23
23
|
help
|
|
24
24
|
} from "./chunk-DMSLNAVH.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
envPullCommandLogic,
|
|
29
29
|
humanizePath,
|
|
30
30
|
parseTarget
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-TBR2Q37Y.js";
|
|
32
32
|
import {
|
|
33
33
|
TelemetryClient
|
|
34
34
|
} from "./chunk-ECCWJHC6.js";
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
findSourceVercelConfigFile,
|
|
12
12
|
getVercelConfigPath,
|
|
13
13
|
normalizeConfig
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-UDWRZXIT.js";
|
|
14
|
+
} from "./chunk-TBR2Q37Y.js";
|
|
16
15
|
import "./chunk-ECCWJHC6.js";
|
|
16
|
+
import "./chunk-UDWRZXIT.js";
|
|
17
17
|
import "./chunk-SZXT3PDQ.js";
|
|
18
18
|
import "./chunk-KSSNLCL4.js";
|
|
19
19
|
import "./chunk-P4QNYOFB.js";
|