vercel 54.14.0 → 54.14.2
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-PVEKZBHH.js → add-PKT6ULVJ.js} +9 -9
- package/dist/chunks/{chunk-Y76J3TGD.js → chunk-2HN6DLIY.js} +1 -1
- package/dist/chunks/{chunk-FPRA7U2P.js → chunk-2XEEOHHH.js} +1 -1
- package/dist/chunks/{chunk-TH555JND.js → chunk-2ZSXQQXI.js} +15 -42
- package/dist/chunks/{chunk-6D6CSOSK.js → chunk-372SHB43.js} +86 -62
- package/dist/chunks/{chunk-4KAFHBYE.js → chunk-3BR246Y6.js} +1 -1
- package/dist/chunks/{chunk-V2WFM23D.js → chunk-4BFK3C7V.js} +2 -2
- package/dist/chunks/{chunk-FMN3NXRC.js → chunk-56AJHIQC.js} +1 -1
- package/dist/chunks/chunk-64IF634X.js +18 -0
- package/dist/chunks/{chunk-VNUNCNPE.js → chunk-AWD3IGXU.js} +3 -3
- package/dist/chunks/{chunk-5SYDEK2N.js → chunk-D7MGZH35.js} +1 -1
- package/dist/chunks/{chunk-IQQJHYW4.js → chunk-DPS62LHL.js} +2 -2
- package/dist/chunks/{chunk-RWJORLQP.js → chunk-FEYVO2US.js} +59 -17
- package/dist/chunks/{chunk-ABOX5TXU.js → chunk-FLW73SZ3.js} +3 -3
- package/dist/chunks/{chunk-Z7KOKD2G.js → chunk-G3NXHUFT.js} +1 -1
- package/dist/chunks/{chunk-CO5D46AG.js → chunk-GGP5R3FU.js} +18 -38
- package/dist/chunks/{chunk-J5273CSE.js → chunk-HIYWSGI7.js} +19 -10
- package/dist/chunks/{chunk-WFRHKZFI.js → chunk-IB56QKCM.js} +1 -1
- package/dist/chunks/{chunk-ZTPOJE63.js → chunk-IJJOI63T.js} +1 -1
- package/dist/chunks/{chunk-DAASB6YQ.js → chunk-ILJH44MK.js} +23 -3
- package/dist/chunks/{chunk-V4GROAUJ.js → chunk-IPWWE7PB.js} +4 -7
- package/dist/chunks/{chunk-G7QWUIGS.js → chunk-J7BMPRCU.js} +3 -3
- package/dist/chunks/{chunk-7OZWGXPA.js → chunk-JISJDGJF.js} +2 -2
- package/dist/chunks/{chunk-5UCWXYNH.js → chunk-LQR3CHMH.js} +88 -46
- package/dist/chunks/{chunk-4NDOMD3E.js → chunk-LYCSVJIX.js} +1 -1
- package/dist/chunks/{chunk-6IQZVQV6.js → chunk-MYWLF3BZ.js} +18 -0
- package/dist/chunks/{chunk-6K3WJDFA.js → chunk-O4V7CMVO.js} +10 -10
- package/dist/chunks/{chunk-KJ5O7JQQ.js → chunk-O7RJHL34.js} +81 -86
- package/dist/chunks/{chunk-C3VH3X5Y.js → chunk-OHIZ4SVU.js} +4 -4
- package/dist/chunks/{chunk-JFWE5ORG.js → chunk-P4KQ3FJ4.js} +1 -0
- package/dist/chunks/{chunk-PV533MBH.js → chunk-PMUUPCDL.js} +1 -1
- package/dist/chunks/{chunk-OEM7RB3X.js → chunk-SDZ5ICZL.js} +2 -2
- package/dist/chunks/{chunk-NGRSQRSN.js → chunk-SGPBULVT.js} +1 -1
- package/dist/chunks/{chunk-RM4XGGZO.js → chunk-TSENBD7C.js} +2 -2
- package/dist/chunks/{chunk-O4C4A7HM.js → chunk-VKRW77HH.js} +1 -1
- package/dist/chunks/chunk-VXYGCOKL.js +28 -0
- package/dist/chunks/{chunk-7CJZCFLW.js → chunk-YLGMXYFG.js} +2 -2
- package/dist/chunks/{chunk-B6C7NMT3.js → chunk-Z2MBXYZZ.js} +1 -1
- package/dist/chunks/{chunk-S4VHXL2Y.js → chunk-Z3X747P6.js} +1 -1
- package/dist/chunks/{compile-vercel-config-MD37D2F7.js → compile-vercel-config-3LV7J3IZ.js} +4 -4
- package/dist/chunks/{delete-6EMDCXSA.js → delete-GFW6Y6TZ.js} +10 -8
- package/dist/chunks/{disable-FLJ27NHG.js → disable-PGRAS2ZL.js} +10 -8
- package/dist/chunks/{discard-KEIII6RM.js → discard-S6N5Q4G5.js} +10 -8
- package/dist/chunks/{edit-DOL2ZJPG.js → edit-TICKX4ZV.js} +12 -10
- package/dist/chunks/{enable-PZWZIETT.js → enable-L3BYWN6S.js} +10 -8
- package/dist/chunks/{export-2PFHAELC.js → export-NXS33U5T.js} +6 -6
- package/dist/chunks/{inspect-WPWOZJ2K.js → inspect-OOI5JN3Y.js} +9 -9
- package/dist/chunks/{list-4R5DCLTB.js → list-6EHRL2D4.js} +7 -7
- package/dist/chunks/{list-ZT7QK2H7.js → list-77WL6463.js} +11 -11
- package/dist/chunks/{ls-4JTXQXMQ.js → ls-PBSOEXFG.js} +9 -9
- package/dist/chunks/{publish-JV4J3SOA.js → publish-CU2THVYW.js} +10 -8
- package/dist/chunks/{query-N22EYSZZ.js → query-HEATRYAK.js} +99 -43
- package/dist/chunks/{reorder-TG53BKW4.js → reorder-IQVKSM3H.js} +10 -8
- package/dist/chunks/{restore-U7O4VESA.js → restore-RDEOBGAS.js} +10 -8
- package/dist/chunks/{rm-XA4LYZXI.js → rm-MCSGTU4J.js} +9 -9
- package/dist/chunks/{routes-EAMQVFU2.js → routes-YEU33SON.js} +2 -2
- package/dist/chunks/{rule-inspect-HC745CYT.js → rule-inspect-3YK2XSL3.js} +9 -9
- package/dist/chunks/{rules-RMN72YHN.js → rules-F4MRDDHM.js} +6 -6
- package/dist/chunks/{schema-CZVKUXM6.js → schema-65C5EBJ7.js} +9 -9
- package/dist/chunks/{stamp-ENIXDCRO.js → stamp-AA7R3MZS.js} +3 -1
- package/dist/chunks/{types-P6JKZFEY.js → types-3R7HKP57.js} +3 -3
- package/dist/chunks/{update-PU3WLIA7.js → update-XB4WSRGY.js} +9 -9
- package/dist/commands/build/index.js +18 -16
- package/dist/commands/deploy/index.js +30 -171
- package/dist/commands/dev/index.js +187 -133
- package/dist/commands/dev/next-dev-websocket-shim-preload.cjs +190 -0
- package/dist/commands/env/index.js +162 -101
- package/dist/commands/link/index.js +19 -19
- package/dist/commands/list/index.js +13 -11
- package/dist/commands-bulk.js +258 -104
- package/dist/help.js +1 -1
- package/dist/index.js +27 -27
- package/dist/version.mjs +1 -1
- package/package.json +11 -11
|
@@ -8,23 +8,22 @@ import {
|
|
|
8
8
|
TelemetryClient,
|
|
9
9
|
require_dist as require_dist2,
|
|
10
10
|
require_graceful_fs
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HIYWSGI7.js";
|
|
12
12
|
import {
|
|
13
13
|
buildCommandWithYes,
|
|
14
14
|
getPreservedArgsForEnvPull,
|
|
15
15
|
outputActionRequired,
|
|
16
16
|
outputAgentError
|
|
17
17
|
} from "./chunk-NHGCQRK5.js";
|
|
18
|
-
import {
|
|
19
|
-
require_ms,
|
|
20
|
-
stamp_default
|
|
21
|
-
} from "./chunk-CO5D46AG.js";
|
|
22
18
|
import {
|
|
23
19
|
require_end_of_stream,
|
|
24
20
|
require_lib as require_lib2,
|
|
25
21
|
require_once,
|
|
26
22
|
require_wrappy
|
|
27
23
|
} from "./chunk-N2T234LO.js";
|
|
24
|
+
import {
|
|
25
|
+
require_ms
|
|
26
|
+
} from "./chunk-GGP5R3FU.js";
|
|
28
27
|
import {
|
|
29
28
|
forceOption,
|
|
30
29
|
formatOption,
|
|
@@ -34,7 +33,7 @@ import {
|
|
|
34
33
|
require_string_width,
|
|
35
34
|
require_strip_ansi,
|
|
36
35
|
yesOption
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-MYWLF3BZ.js";
|
|
38
37
|
import {
|
|
39
38
|
APIError,
|
|
40
39
|
CantParseJSONFile,
|
|
@@ -37409,7 +37408,7 @@ var require_package = __commonJS({
|
|
|
37409
37408
|
"../client/package.json"(exports, module) {
|
|
37410
37409
|
module.exports = {
|
|
37411
37410
|
name: "@vercel/client",
|
|
37412
|
-
version: "17.5.
|
|
37411
|
+
version: "17.5.16",
|
|
37413
37412
|
main: "dist/index.js",
|
|
37414
37413
|
typings: "dist/index.d.ts",
|
|
37415
37414
|
homepage: "https://vercel.com",
|
|
@@ -54729,9 +54728,10 @@ function getGitConfigPath(opts) {
|
|
|
54729
54728
|
|
|
54730
54729
|
// src/util/output/print-aligned-label.ts
|
|
54731
54730
|
var import_chalk6 = __toESM(require_source(), 1);
|
|
54732
|
-
var ALIGNED_LABEL_WIDTH =
|
|
54731
|
+
var ALIGNED_LABEL_WIDTH = 16;
|
|
54733
54732
|
function printAlignedLabel(label, value, options = {}) {
|
|
54734
|
-
const
|
|
54733
|
+
const gutter = options.gutter === "\u2713" ? import_chalk6.default.green("\u2713") : options.gutter;
|
|
54734
|
+
const prefix = gutter ? `${gutter} ` : " ";
|
|
54735
54735
|
output_manager_default.print(
|
|
54736
54736
|
`${prefix}${import_chalk6.default.bold(label.padEnd(ALIGNED_LABEL_WIDTH))}${import_chalk6.default.bold(value)}
|
|
54737
54737
|
`
|
|
@@ -54829,7 +54829,8 @@ async function linkRepoProject(client, cwd, {
|
|
|
54829
54829
|
await (0, import_fs_extra3.outputJSON)(repoLink.repoConfigPath, repoConfig, { spaces: 2 });
|
|
54830
54830
|
await writeReadme(repoLink.rootPath);
|
|
54831
54831
|
await addToGitIgnore(repoLink.rootPath);
|
|
54832
|
-
|
|
54832
|
+
output_manager_default.print("\n");
|
|
54833
|
+
printAlignedLabel("Linked", `${orgSlug}/${project.name}`, { gutter: "\u2713" });
|
|
54833
54834
|
return {
|
|
54834
54835
|
repoConfig,
|
|
54835
54836
|
repoConfigPath: repoLink.repoConfigPath,
|
|
@@ -55036,7 +55037,8 @@ async function ensureRepoLink(client, cwd, { yes, overwrite }) {
|
|
|
55036
55037
|
await addToGitIgnore(rootPath);
|
|
55037
55038
|
printAlignedLabel(
|
|
55038
55039
|
"Linked",
|
|
55039
|
-
`${(0, import_pluralize.default)("Project", result.projects.length, true)} under ${result.orgSlug}
|
|
55040
|
+
`${(0, import_pluralize.default)("Project", result.projects.length, true)} under ${result.orgSlug}`,
|
|
55041
|
+
{ gutter: "\u2713" }
|
|
55040
55042
|
);
|
|
55041
55043
|
}
|
|
55042
55044
|
return {
|
|
@@ -55088,7 +55090,8 @@ async function addRepoLink(client, cwd, { yes }) {
|
|
|
55088
55090
|
await (0, import_fs_extra3.outputJSON)(repoConfigPath, updatedConfig, { spaces: 2 });
|
|
55089
55091
|
printAlignedLabel(
|
|
55090
55092
|
"Added",
|
|
55091
|
-
`${(0, import_pluralize.default)("Project", result.projects.length, true)} under ${result.orgSlug}
|
|
55093
|
+
`${(0, import_pluralize.default)("Project", result.projects.length, true)} under ${result.orgSlug}`,
|
|
55094
|
+
{ gutter: "\u2713" }
|
|
55092
55095
|
);
|
|
55093
55096
|
return {
|
|
55094
55097
|
repoConfig: updatedConfig,
|
|
@@ -55288,12 +55291,12 @@ function buildDeltaString(oldEnv, newEnv) {
|
|
|
55288
55291
|
deltaString += import_chalk9.default.green(addDeltaSection("+", changed, true));
|
|
55289
55292
|
deltaString += import_chalk9.default.green(addDeltaSection("+", added));
|
|
55290
55293
|
deltaString += import_chalk9.default.red(addDeltaSection("-", removed));
|
|
55291
|
-
return deltaString ? import_chalk9.default.gray("Changes:\n") + deltaString + "\n" : deltaString;
|
|
55294
|
+
return deltaString ? import_chalk9.default.gray(" Changes:\n") + deltaString + "\n" : deltaString;
|
|
55292
55295
|
}
|
|
55293
55296
|
function addDeltaSection(prefix, arr, changed = false) {
|
|
55294
55297
|
if (arr.length === 0)
|
|
55295
55298
|
return "";
|
|
55296
|
-
return arr.sort().map((item) =>
|
|
55299
|
+
return arr.sort().map((item) => ` ${prefix} ${item}${changed ? " (Updated)" : ""}`).join("\n") + "\n";
|
|
55297
55300
|
}
|
|
55298
55301
|
|
|
55299
55302
|
// src/commands/env/pull.ts
|
|
@@ -55408,7 +55411,7 @@ var listSubcommand = {
|
|
|
55408
55411
|
var addSubcommand = {
|
|
55409
55412
|
name: "add",
|
|
55410
55413
|
aliases: [],
|
|
55411
|
-
description: "Add an Environment Variable
|
|
55414
|
+
description: "Add an Environment Variable",
|
|
55412
55415
|
arguments: [
|
|
55413
55416
|
{
|
|
55414
55417
|
name: "name",
|
|
@@ -55426,21 +55429,21 @@ var addSubcommand = {
|
|
|
55426
55429
|
options: [
|
|
55427
55430
|
{
|
|
55428
55431
|
name: "sensitive",
|
|
55429
|
-
description: "
|
|
55432
|
+
description: "Store the value as sensitive for Production or Preview",
|
|
55430
55433
|
shorthand: null,
|
|
55431
55434
|
type: Boolean,
|
|
55432
55435
|
deprecated: false
|
|
55433
55436
|
},
|
|
55434
55437
|
{
|
|
55435
55438
|
name: "no-sensitive",
|
|
55436
|
-
description: "
|
|
55439
|
+
description: "Store the value as non-sensitive when policy allows",
|
|
55437
55440
|
shorthand: null,
|
|
55438
55441
|
type: Boolean,
|
|
55439
55442
|
deprecated: false
|
|
55440
55443
|
},
|
|
55441
55444
|
{
|
|
55442
55445
|
...forceOption,
|
|
55443
|
-
description: "
|
|
55446
|
+
description: "Overwrite an existing variable for the same target",
|
|
55444
55447
|
shorthand: null
|
|
55445
55448
|
},
|
|
55446
55449
|
{
|
|
@@ -55449,14 +55452,14 @@ var addSubcommand = {
|
|
|
55449
55452
|
},
|
|
55450
55453
|
{
|
|
55451
55454
|
name: "guidance",
|
|
55452
|
-
description: "
|
|
55455
|
+
description: "Show command suggestions after completion",
|
|
55453
55456
|
shorthand: null,
|
|
55454
55457
|
type: Boolean,
|
|
55455
55458
|
deprecated: false
|
|
55456
55459
|
},
|
|
55457
55460
|
{
|
|
55458
55461
|
name: "value",
|
|
55459
|
-
description: "
|
|
55462
|
+
description: "Set the variable value for non-interactive use; otherwise use stdin or the prompt",
|
|
55460
55463
|
shorthand: null,
|
|
55461
55464
|
type: String,
|
|
55462
55465
|
argument: "VALUE",
|
|
@@ -55502,8 +55505,8 @@ var addSubcommand = {
|
|
|
55502
55505
|
]
|
|
55503
55506
|
},
|
|
55504
55507
|
{
|
|
55505
|
-
name: "Add with value
|
|
55506
|
-
value: `${packageName} env add API_TOKEN production --value "
|
|
55508
|
+
name: "Add with --value for non-interactive use",
|
|
55509
|
+
value: `${packageName} env add API_TOKEN production --value "<value>" --yes`
|
|
55507
55510
|
}
|
|
55508
55511
|
]
|
|
55509
55512
|
};
|
|
@@ -55801,7 +55804,10 @@ var promptedAtSchema = z.codec(
|
|
|
55801
55804
|
);
|
|
55802
55805
|
var agentPreferencesSchema = z.object({
|
|
55803
55806
|
pluginDeclined: z.boolean().optional(),
|
|
55804
|
-
|
|
55807
|
+
pluginAutoUpdate: z.boolean().optional(),
|
|
55808
|
+
lastPromptedAt: promptedAtSchema.optional(),
|
|
55809
|
+
lastPluginAutoUpdateAttemptedAt: promptedAtSchema.optional(),
|
|
55810
|
+
lastPluginAutoUpdateAttemptedKey: z.string().optional()
|
|
55805
55811
|
});
|
|
55806
55812
|
async function fileExists(filePath) {
|
|
55807
55813
|
try {
|
|
@@ -55932,10 +55938,19 @@ function isSameDay(left, right) {
|
|
|
55932
55938
|
function wasPromptedToday(prefs) {
|
|
55933
55939
|
return prefs.lastPromptedAt ? isSameDay(prefs.lastPromptedAt, /* @__PURE__ */ new Date()) : false;
|
|
55934
55940
|
}
|
|
55941
|
+
function wasPluginAutoUpdateAttemptedToday(prefs, attemptKey) {
|
|
55942
|
+
return prefs.lastPluginAutoUpdateAttemptedKey === attemptKey && !!prefs.lastPluginAutoUpdateAttemptedAt && isSameDay(prefs.lastPluginAutoUpdateAttemptedAt, /* @__PURE__ */ new Date());
|
|
55943
|
+
}
|
|
55935
55944
|
async function markPromptedToday(client, prefs) {
|
|
55936
55945
|
prefs.lastPromptedAt = /* @__PURE__ */ new Date();
|
|
55937
55946
|
await writePrefs(client, prefs);
|
|
55938
55947
|
}
|
|
55948
|
+
function markPluginAutoUpdateAttempted(prefs, attemptKey) {
|
|
55949
|
+
if (!attemptKey)
|
|
55950
|
+
return;
|
|
55951
|
+
prefs.lastPluginAutoUpdateAttemptedAt = /* @__PURE__ */ new Date();
|
|
55952
|
+
prefs.lastPluginAutoUpdateAttemptedKey = attemptKey;
|
|
55953
|
+
}
|
|
55939
55954
|
async function runCommand(command, args) {
|
|
55940
55955
|
return await new Promise((resolve5) => {
|
|
55941
55956
|
const child = spawn(command, args, { stdio: "pipe" });
|
|
@@ -56064,31 +56079,44 @@ function buildClaudePluginMigrationPlan(status) {
|
|
|
56064
56079
|
function hasClaudeMigrationActions(plan) {
|
|
56065
56080
|
return plan.installOfficial || plan.updateOfficial || plan.removeLegacy || plan.removeLegacyMarketplace;
|
|
56066
56081
|
}
|
|
56082
|
+
function getClaudeAutoUpdateAttemptKey(status, plan) {
|
|
56083
|
+
return [
|
|
56084
|
+
status.state,
|
|
56085
|
+
status.legacy?.version ?? "none",
|
|
56086
|
+
status.official?.version ?? "none",
|
|
56087
|
+
status.latestVersion ?? "unknown",
|
|
56088
|
+
plan.installOfficial ? "install" : "",
|
|
56089
|
+
plan.updateOfficial ? "update" : "",
|
|
56090
|
+
plan.removeLegacy ? "remove-legacy" : "",
|
|
56091
|
+
plan.removeLegacyMarketplace ? "remove-marketplace" : ""
|
|
56092
|
+
].join(":");
|
|
56093
|
+
}
|
|
56067
56094
|
function buildClaudePromptCopy(status, plan) {
|
|
56068
56095
|
if (plan.installOfficial && status.state === "none") {
|
|
56069
56096
|
return {
|
|
56070
|
-
message: "",
|
|
56071
|
-
confirm: "
|
|
56097
|
+
message: "Vercel Plugin for Claude Code is not installed.",
|
|
56098
|
+
confirm: "Would you like to install it now?"
|
|
56072
56099
|
};
|
|
56073
56100
|
}
|
|
56074
56101
|
if (plan.installOfficial && status.state === "legacy-only") {
|
|
56075
56102
|
return {
|
|
56076
|
-
message: "",
|
|
56077
|
-
confirm: "
|
|
56103
|
+
message: "Update available for Vercel Plugin for Claude Code (legacy -> official).",
|
|
56104
|
+
confirm: "Would you like to update now?"
|
|
56078
56105
|
};
|
|
56079
56106
|
}
|
|
56080
56107
|
if (status.state === "both" && plan.removeLegacy) {
|
|
56081
56108
|
return {
|
|
56082
|
-
message: "",
|
|
56083
|
-
confirm: "
|
|
56109
|
+
message: "Vercel Plugin for Claude Code has a legacy install to clean up.",
|
|
56110
|
+
confirm: "Would you like to update now?"
|
|
56084
56111
|
};
|
|
56085
56112
|
}
|
|
56086
56113
|
if (plan.updateOfficial) {
|
|
56087
|
-
const fromVersion = status.official?.version
|
|
56088
|
-
const toVersion = status.latestVersion
|
|
56114
|
+
const fromVersion = status.official?.version;
|
|
56115
|
+
const toVersion = status.latestVersion;
|
|
56116
|
+
const versionRange = fromVersion && toVersion ? ` (v${fromVersion} -> v${toVersion})` : "";
|
|
56089
56117
|
return {
|
|
56090
|
-
message:
|
|
56091
|
-
confirm:
|
|
56118
|
+
message: `Update available for Vercel Plugin for Claude Code${versionRange}.`,
|
|
56119
|
+
confirm: "Would you like to update now?"
|
|
56092
56120
|
};
|
|
56093
56121
|
}
|
|
56094
56122
|
return {
|
|
@@ -56226,11 +56254,12 @@ async function autoInstallVercelPlugin(client, options) {
|
|
|
56226
56254
|
try {
|
|
56227
56255
|
const prefs = await readPrefs(client);
|
|
56228
56256
|
const applyMode = options?.mode === "apply";
|
|
56229
|
-
if (!prefs.pluginDeclined || applyMode) {
|
|
56257
|
+
if (!prefs.pluginDeclined || prefs.pluginAutoUpdate || applyMode) {
|
|
56230
56258
|
const targets = await getPluginTargets(client.agentName, client.cwd);
|
|
56231
56259
|
const uninstalledTargets = [];
|
|
56232
56260
|
const claudeStatus = targets.includes("claude-code") ? await getClaudePluginStatus() : void 0;
|
|
56233
56261
|
const claudePlan = claudeStatus ? buildClaudePluginMigrationPlan(claudeStatus) : void 0;
|
|
56262
|
+
const claudeAutoUpdateAttemptKey = claudeStatus && claudePlan ? getClaudeAutoUpdateAttemptKey(claudeStatus, claudePlan) : void 0;
|
|
56234
56263
|
for (const target of targets) {
|
|
56235
56264
|
if (target === "claude-code") {
|
|
56236
56265
|
if (claudePlan && hasClaudeMigrationActions(claudePlan)) {
|
|
@@ -56243,11 +56272,22 @@ async function autoInstallVercelPlugin(client, options) {
|
|
|
56243
56272
|
}
|
|
56244
56273
|
}
|
|
56245
56274
|
if (uninstalledTargets.length > 0) {
|
|
56275
|
+
if (prefs.pluginAutoUpdate) {
|
|
56276
|
+
if (claudeAutoUpdateAttemptKey && wasPluginAutoUpdateAttemptedToday(prefs, claudeAutoUpdateAttemptKey)) {
|
|
56277
|
+
return;
|
|
56278
|
+
}
|
|
56279
|
+
prefs.pluginDeclined = false;
|
|
56280
|
+
markPluginAutoUpdateAttempted(prefs, claudeAutoUpdateAttemptKey);
|
|
56281
|
+
await writePrefs(client, prefs);
|
|
56282
|
+
await applyPluginActions(uninstalledTargets, claudePlan);
|
|
56283
|
+
return;
|
|
56284
|
+
}
|
|
56246
56285
|
if (!applyMode && wasPromptedToday(prefs)) {
|
|
56247
56286
|
return;
|
|
56248
56287
|
}
|
|
56249
56288
|
if (applyMode) {
|
|
56250
56289
|
prefs.pluginDeclined = false;
|
|
56290
|
+
prefs.pluginAutoUpdate = true;
|
|
56251
56291
|
await writePrefs(client, prefs);
|
|
56252
56292
|
await applyPluginActions(uninstalledTargets, claudePlan);
|
|
56253
56293
|
return;
|
|
@@ -56267,10 +56307,12 @@ async function autoInstallVercelPlugin(client, options) {
|
|
|
56267
56307
|
await markPromptedToday(client, prefs);
|
|
56268
56308
|
if (accepted) {
|
|
56269
56309
|
prefs.pluginDeclined = false;
|
|
56310
|
+
prefs.pluginAutoUpdate = true;
|
|
56270
56311
|
await writePrefs(client, prefs);
|
|
56271
56312
|
await applyPluginActions(uninstalledTargets, claudePlan);
|
|
56272
56313
|
} else {
|
|
56273
56314
|
prefs.pluginDeclined = true;
|
|
56315
|
+
prefs.pluginAutoUpdate = false;
|
|
56274
56316
|
await writePrefs(client, prefs);
|
|
56275
56317
|
}
|
|
56276
56318
|
}
|
|
@@ -56865,13 +56907,12 @@ async function envPullCommandLogic(client, filename, skipConfirmation, environme
|
|
|
56865
56907
|
const projectSlugLink = formatProject(link.org.slug, link.project.name);
|
|
56866
56908
|
const downloadMessage = gitBranch ? `Downloading \`${import_chalk13.default.cyan(
|
|
56867
56909
|
environment
|
|
56868
|
-
)}\`
|
|
56910
|
+
)}\` environment variables for ${projectSlugLink} and any overrides for branch ${import_chalk13.default.cyan(
|
|
56869
56911
|
gitBranch
|
|
56870
56912
|
)}` : `Downloading \`${import_chalk13.default.cyan(
|
|
56871
56913
|
environment
|
|
56872
|
-
)}\`
|
|
56914
|
+
)}\` environment variables for ${projectSlugLink}`;
|
|
56873
56915
|
output_manager_default.log(downloadMessage);
|
|
56874
|
-
const pullStamp = stamp_default();
|
|
56875
56916
|
output_manager_default.spinner("Downloading");
|
|
56876
56917
|
const pullId = deploymentId || link.project.id;
|
|
56877
56918
|
const pullResult = await pullEnvRecordsForEnvPull(client, pullId, source, {
|
|
@@ -56900,12 +56941,11 @@ async function envPullCommandLogic(client, filename, skipConfirmation, environme
|
|
|
56900
56941
|
const rootPath = link.repoRoot ?? cwd;
|
|
56901
56942
|
isGitIgnoreUpdated = await addToGitIgnore(rootPath, ".env*");
|
|
56902
56943
|
}
|
|
56903
|
-
output_manager_default.print(
|
|
56904
|
-
|
|
56905
|
-
|
|
56906
|
-
|
|
56907
|
-
|
|
56908
|
-
`
|
|
56944
|
+
output_manager_default.print("\n");
|
|
56945
|
+
printAlignedLabel(
|
|
56946
|
+
exists ? "Updated" : "Created",
|
|
56947
|
+
`${filename} file${isGitIgnoreUpdated ? " and added it to .gitignore" : ""}`,
|
|
56948
|
+
{ gutter: "\u2713" }
|
|
56909
56949
|
);
|
|
56910
56950
|
}
|
|
56911
56951
|
async function pullEnvRecordsForEnvPull(client, pullId, source, options) {
|
|
@@ -58140,7 +58180,7 @@ async function writeReadme(path) {
|
|
|
58140
58180
|
VERCEL_DIR_README_CONTENT
|
|
58141
58181
|
);
|
|
58142
58182
|
}
|
|
58143
|
-
async function linkFolderToProject(client, path, projectLink, projectName, orgSlug, successEmoji = "link", autoConfirm = false, pullEnv = true) {
|
|
58183
|
+
async function linkFolderToProject(client, path, projectLink, projectName, orgSlug, successEmoji = "link", autoConfirm = false, pullEnv = true, resultLabel = "Linked") {
|
|
58144
58184
|
if (await hasProjectLink(client, projectLink, path)) {
|
|
58145
58185
|
return;
|
|
58146
58186
|
}
|
|
@@ -58161,15 +58201,17 @@ async function linkFolderToProject(client, path, projectLink, projectName, orgSl
|
|
|
58161
58201
|
);
|
|
58162
58202
|
await writeReadme(path);
|
|
58163
58203
|
await addToGitIgnore(path);
|
|
58164
|
-
|
|
58204
|
+
output_manager_default.print("\n");
|
|
58205
|
+
printAlignedLabel(resultLabel, `${orgSlug}/${projectName}`, { gutter: "\u2713" });
|
|
58165
58206
|
if (!pullEnv) {
|
|
58166
58207
|
return;
|
|
58167
58208
|
}
|
|
58168
58209
|
if (!client.stdin.isTTY || client.nonInteractive) {
|
|
58169
58210
|
return;
|
|
58170
58211
|
}
|
|
58212
|
+
output_manager_default.print("\n");
|
|
58171
58213
|
const pullEnvConfirmed = autoConfirm || await client.input.confirm(
|
|
58172
|
-
"
|
|
58214
|
+
"Pull development environment variables into .env.local?",
|
|
58173
58215
|
true
|
|
58174
58216
|
);
|
|
58175
58217
|
if (pullEnvConfirmed) {
|
|
@@ -453,6 +453,22 @@ var projectOption = {
|
|
|
453
453
|
description: "Project name or ID (defaults to the linked project)",
|
|
454
454
|
deprecated: false
|
|
455
455
|
};
|
|
456
|
+
var deploymentOption = {
|
|
457
|
+
name: "deployment",
|
|
458
|
+
shorthand: null,
|
|
459
|
+
type: String,
|
|
460
|
+
deprecated: false,
|
|
461
|
+
description: "The deployment ID or URL to target",
|
|
462
|
+
argument: "ID|URL"
|
|
463
|
+
};
|
|
464
|
+
var protectionBypassOption = {
|
|
465
|
+
name: "protection-bypass",
|
|
466
|
+
shorthand: null,
|
|
467
|
+
type: String,
|
|
468
|
+
deprecated: false,
|
|
469
|
+
description: "Protection bypass secret for accessing protected deployments",
|
|
470
|
+
argument: "SECRET"
|
|
471
|
+
};
|
|
456
472
|
var GLOBAL_LONG_TO_OPT = /* @__PURE__ */ new Map();
|
|
457
473
|
var GLOBAL_SHORT_TO_OPT = /* @__PURE__ */ new Map();
|
|
458
474
|
for (const opt of globalCommandOptions) {
|
|
@@ -603,6 +619,8 @@ export {
|
|
|
603
619
|
jsonOption,
|
|
604
620
|
allOption,
|
|
605
621
|
projectOption,
|
|
622
|
+
deploymentOption,
|
|
623
|
+
protectionBypassOption,
|
|
606
624
|
getGlobalFlagsOnlyFromArgs,
|
|
607
625
|
getCommandNameWithGlobalFlags,
|
|
608
626
|
getArgs,
|
|
@@ -6,16 +6,19 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
writeProjectSettings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2XEEOHHH.js";
|
|
10
|
+
import {
|
|
11
|
+
stamp_default
|
|
12
|
+
} from "./chunk-64IF634X.js";
|
|
10
13
|
import {
|
|
11
14
|
ensureLink
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YLGMXYFG.js";
|
|
13
16
|
import {
|
|
14
17
|
pullCommand
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SDZ5ICZL.js";
|
|
16
19
|
import {
|
|
17
20
|
help
|
|
18
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AWD3IGXU.js";
|
|
19
22
|
import {
|
|
20
23
|
VERCEL_DIR,
|
|
21
24
|
VERCEL_DIR_PROJECT,
|
|
@@ -23,18 +26,15 @@ import {
|
|
|
23
26
|
envPullCommandLogic,
|
|
24
27
|
humanizePath,
|
|
25
28
|
parseTarget
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-LQR3CHMH.js";
|
|
27
30
|
import {
|
|
28
31
|
TelemetryClient
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import {
|
|
31
|
-
stamp_default
|
|
32
|
-
} from "./chunk-CO5D46AG.js";
|
|
32
|
+
} from "./chunk-HIYWSGI7.js";
|
|
33
33
|
import {
|
|
34
34
|
getFlagsSpecification,
|
|
35
35
|
parseArguments,
|
|
36
36
|
printError
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-MYWLF3BZ.js";
|
|
38
38
|
import {
|
|
39
39
|
emoji,
|
|
40
40
|
output_manager_default,
|