vercel 54.20.1 → 54.21.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.
Files changed (78) hide show
  1. package/dist/chunks/{add-TF5VZLCY.js → add-NKDLTZ3B.js} +7 -7
  2. package/dist/chunks/{add-IB7HE5S5.js → add-UMB55BRR.js} +8 -8
  3. package/dist/chunks/{chunk-OGJB2GHI.js → chunk-22GUZ5KG.js} +1 -1
  4. package/dist/chunks/{chunk-IZOHLD5D.js → chunk-2QBF3ZL3.js} +54 -4
  5. package/dist/chunks/{chunk-JHQOIGTY.js → chunk-2ZXLLEEZ.js} +3 -3
  6. package/dist/chunks/{chunk-KXGWAWRV.js → chunk-3EMRC44D.js} +3 -3
  7. package/dist/chunks/{chunk-O2QNLUYX.js → chunk-43I5EAPY.js} +2 -2
  8. package/dist/chunks/{chunk-ULKM3ZD4.js → chunk-4RGSUV5C.js} +2 -2
  9. package/dist/chunks/{chunk-FNRZFHFO.js → chunk-4UZF3U4N.js} +1 -1
  10. package/dist/chunks/{chunk-UJ5UEAMC.js → chunk-5AJNUXWP.js} +1 -1
  11. package/dist/chunks/{chunk-RY3AVR6E.js → chunk-7C7MMT4J.js} +1 -1
  12. package/dist/chunks/{chunk-D2M77YVC.js → chunk-7S3QUMIG.js} +2 -2
  13. package/dist/chunks/{chunk-T63I6OUR.js → chunk-ADTCIFMD.js} +5 -5
  14. package/dist/chunks/{chunk-4BEUS7AL.js → chunk-AUYY7RD3.js} +127 -15
  15. package/dist/chunks/{chunk-YWLVPKNT.js → chunk-DKE73NGN.js} +2 -2
  16. package/dist/chunks/{chunk-EJ6GQI6F.js → chunk-EHTPDXTS.js} +1 -0
  17. package/dist/chunks/{chunk-ITU4COOO.js → chunk-GAJ2ESDD.js} +9 -44
  18. package/dist/chunks/{chunk-GDAO4PGA.js → chunk-H3KWN2KA.js} +3 -3
  19. package/dist/chunks/{chunk-P726GMBL.js → chunk-HMFUXSD7.js} +1 -1
  20. package/dist/chunks/{chunk-RB7WQKNC.js → chunk-I4NRKN2Z.js} +7 -4
  21. package/dist/chunks/{chunk-DFEUWDGM.js → chunk-IDMKFYEA.js} +1 -1
  22. package/dist/chunks/{chunk-JDO6BSKN.js → chunk-IMTOXXTF.js} +6 -6
  23. package/dist/chunks/{chunk-MAJWH2PD.js → chunk-JJWESW5Y.js} +1 -1
  24. package/dist/chunks/{chunk-FVI6UYNL.js → chunk-KNSDQCVQ.js} +1 -1
  25. package/dist/chunks/{chunk-Q4A2Q46Z.js → chunk-MLY3KGVY.js} +6 -6
  26. package/dist/chunks/{chunk-5MVXR7B7.js → chunk-MV65GD4L.js} +1 -1
  27. package/dist/chunks/{chunk-TV7GKFSY.js → chunk-OVE2GAHC.js} +3 -3
  28. package/dist/chunks/{chunk-VKBYAWTL.js → chunk-QEEGXNFK.js} +1 -1
  29. package/dist/chunks/{chunk-EFUR47FZ.js → chunk-QKR7GNAK.js} +1 -1
  30. package/dist/chunks/{chunk-6ISLGUMI.js → chunk-QMZO4CEP.js} +6 -6
  31. package/dist/chunks/{chunk-YSIZGIDP.js → chunk-QY63UKTP.js} +2 -2
  32. package/dist/chunks/{chunk-AUECDTMX.js → chunk-RLJA2KI7.js} +1 -1
  33. package/dist/chunks/{chunk-7PAKWBN4.js → chunk-RO5JIUOI.js} +2 -2
  34. package/dist/chunks/{chunk-U3FBUYRS.js → chunk-TLKTTWDA.js} +1 -1
  35. package/dist/chunks/{chunk-FZZWTDNQ.js → chunk-TRQJQXKD.js} +3 -3
  36. package/dist/chunks/{chunk-Q7GZMMHB.js → chunk-XCL7I6W5.js} +3 -3
  37. package/dist/chunks/{chunk-3S2QGKYZ.js → chunk-XMJAKLQQ.js} +1 -1
  38. package/dist/chunks/{compile-vercel-config-XEZ2TPQ4.js → compile-vercel-config-OKONVGZI.js} +3 -3
  39. package/dist/chunks/{delete-O3F4EP2W.js → delete-L7TN5GNZ.js} +5 -5
  40. package/dist/chunks/{disable-SJWGUQKZ.js → disable-7NVU4H2N.js} +5 -5
  41. package/dist/chunks/{discard-EQD6ENC3.js → discard-SJ2TDPS2.js} +5 -5
  42. package/dist/chunks/{edit-NAIWNSXE.js → edit-SW4MF4Q3.js} +6 -6
  43. package/dist/chunks/{enable-LXO62HU5.js → enable-FOKEO6J2.js} +5 -5
  44. package/dist/chunks/{export-EHVTYAAP.js → export-3DSHT2FD.js} +5 -5
  45. package/dist/chunks/{image-2DL7JEWW.js → image-T6I7BZSC.js} +4 -4
  46. package/dist/chunks/{inspect-EGXHWKY3.js → inspect-2MY25CMN.js} +6 -6
  47. package/dist/chunks/{inspect-PL3PE5IJ.js → inspect-DJ7OGHBK.js} +8 -8
  48. package/dist/chunks/{inspect-6IHZTLFA.js → inspect-EP24WN4I.js} +6 -6
  49. package/dist/chunks/{inspect-Z3QJOMNP.js → inspect-RV444SBC.js} +7 -7
  50. package/dist/chunks/{list-KNRPDNQF.js → list-CCG2NVLL.js} +8 -8
  51. package/dist/chunks/{list-BB4T4KT5.js → list-OMJ7EDKA.js} +5 -5
  52. package/dist/chunks/{ls-MUS72LBS.js → ls-33Z3R2KY.js} +7 -7
  53. package/dist/chunks/{ls-IQKMDRUB.js → ls-5KN5FKAQ.js} +9 -9
  54. package/dist/chunks/{ls-EP4Q6VF4.js → ls-VCTHIVI7.js} +7 -7
  55. package/dist/chunks/{ls-FTQGK4R6.js → ls-VXZGEJJD.js} +7 -7
  56. package/dist/chunks/{publish-27V2MMFS.js → publish-RZ2DIYRU.js} +5 -5
  57. package/dist/chunks/{query-C6FEOG5R.js → query-2MIBB7C5.js} +6 -6
  58. package/dist/chunks/{reorder-DCSIJX72.js → reorder-FEZIPHNW.js} +5 -5
  59. package/dist/chunks/{restore-NRUBGNSK.js → restore-JHH6CW2S.js} +5 -5
  60. package/dist/chunks/{rm-EZFCCZFT.js → rm-3KAXICHP.js} +6 -6
  61. package/dist/chunks/{rm-NMSG2WG6.js → rm-EKPVQYGH.js} +8 -8
  62. package/dist/chunks/{rm-GWW57H2V.js → rm-ULQHII4K.js} +7 -7
  63. package/dist/chunks/{rule-inspect-XPZJO3Y4.js → rule-inspect-FOZOCOUO.js} +7 -7
  64. package/dist/chunks/{rules-C6SB24UO.js → rules-RJD4S7JA.js} +7 -7
  65. package/dist/chunks/{schema-Z6L3EN6F.js → schema-CDXFJU72.js} +7 -7
  66. package/dist/chunks/{tags-5PFVWGLK.js → tags-BLBAPEWV.js} +3 -3
  67. package/dist/chunks/{types-EQD5UZOH.js → types-2TPA6J4G.js} +3 -3
  68. package/dist/chunks/{update-BCLMLJM7.js → update-2NW6NKG6.js} +7 -7
  69. package/dist/commands/build/index.js +3281 -211
  70. package/dist/commands/deploy/index.js +24 -24
  71. package/dist/commands/dev/index.js +13 -13
  72. package/dist/commands/env/index.js +19 -19
  73. package/dist/commands/link/index.js +21 -21
  74. package/dist/commands/list/index.js +14 -8
  75. package/dist/commands-bulk.js +788 -199
  76. package/dist/index.js +22 -22
  77. package/dist/version.mjs +1 -1
  78. package/package.json +18 -16
@@ -9,30 +9,30 @@ import {
9
9
  handleRulesApiError,
10
10
  parseRulesFlagsAndScope,
11
11
  rulesCollectionPath
12
- } from "./chunk-7PAKWBN4.js";
13
- import "./chunk-GDAO4PGA.js";
12
+ } from "./chunk-RO5JIUOI.js";
13
+ import "./chunk-H3KWN2KA.js";
14
14
  import "./chunk-BUZRVER7.js";
15
15
  import {
16
16
  validateJsonOutput
17
17
  } from "./chunk-XPKWKPWA.js";
18
18
  import {
19
19
  rulesAddSubcommand
20
- } from "./chunk-OGJB2GHI.js";
20
+ } from "./chunk-22GUZ5KG.js";
21
21
  import {
22
22
  AGENT_REASON
23
23
  } from "./chunk-QH7WYDEP.js";
24
- import "./chunk-P726GMBL.js";
25
- import "./chunk-RB7WQKNC.js";
24
+ import "./chunk-HMFUXSD7.js";
25
+ import "./chunk-I4NRKN2Z.js";
26
26
  import {
27
27
  buildCommandWithGlobalFlags,
28
28
  outputAgentError
29
- } from "./chunk-IZOHLD5D.js";
29
+ } from "./chunk-2QBF3ZL3.js";
30
30
  import "./chunk-ECCWJHC6.js";
31
31
  import {
32
32
  getFlagsSpecification,
33
33
  parseArguments,
34
34
  printError
35
- } from "./chunk-EJ6GQI6F.js";
35
+ } from "./chunk-EHTPDXTS.js";
36
36
  import {
37
37
  isAPIError,
38
38
  packageName
@@ -9,31 +9,31 @@ import {
9
9
  handleVcrApiError,
10
10
  resolveVcrScope,
11
11
  validateVcrJsonOutput
12
- } from "./chunk-JHQOIGTY.js";
12
+ } from "./chunk-2ZXLLEEZ.js";
13
13
  import {
14
14
  outputError
15
15
  } from "./chunk-BUZRVER7.js";
16
16
  import "./chunk-XPKWKPWA.js";
17
17
  import {
18
18
  addSubcommand
19
- } from "./chunk-KXGWAWRV.js";
20
- import "./chunk-RY3AVR6E.js";
21
- import "./chunk-AUECDTMX.js";
19
+ } from "./chunk-3EMRC44D.js";
20
+ import "./chunk-7C7MMT4J.js";
21
+ import "./chunk-RLJA2KI7.js";
22
22
  import {
23
23
  AGENT_REASON
24
24
  } from "./chunk-QH7WYDEP.js";
25
- import "./chunk-P726GMBL.js";
26
- import "./chunk-RB7WQKNC.js";
25
+ import "./chunk-HMFUXSD7.js";
26
+ import "./chunk-I4NRKN2Z.js";
27
27
  import {
28
28
  buildCommandWithGlobalFlags,
29
29
  outputAgentError
30
- } from "./chunk-IZOHLD5D.js";
30
+ } from "./chunk-2QBF3ZL3.js";
31
31
  import "./chunk-ECCWJHC6.js";
32
32
  import {
33
33
  getFlagsSpecification,
34
34
  parseArguments,
35
35
  printError
36
- } from "./chunk-EJ6GQI6F.js";
36
+ } from "./chunk-EHTPDXTS.js";
37
37
  import {
38
38
  isAPIError,
39
39
  packageName
@@ -8,7 +8,7 @@ import {
8
8
  formatOption,
9
9
  projectOption,
10
10
  yesOption
11
- } from "./chunk-EJ6GQI6F.js";
11
+ } from "./chunk-EHTPDXTS.js";
12
12
  import {
13
13
  packageName
14
14
  } from "./chunk-P6AK7SVK.js";
@@ -39,6 +39,14 @@ var GLOBAL_FLAG_NAMES = /* @__PURE__ */ new Set([
39
39
  // --token/-t are intentionally excluded and stripped via stripSensitiveAuthArgs.
40
40
  ]);
41
41
  var BOOLEAN_GLOBAL_FLAG_NAMES = /* @__PURE__ */ new Set(["--yes", "-y", "--non-interactive"]);
42
+ var GLOBAL_FLAG_SHORTHANDS = {
43
+ "-y": "--yes",
44
+ "-S": "--scope",
45
+ "-T": "--team"
46
+ };
47
+ function canonicalGlobalFlagName(name) {
48
+ return GLOBAL_FLAG_SHORTHANDS[name] ?? name;
49
+ }
42
50
  function getGlobalFlagsFromArgv(argv) {
43
51
  const args = stripSensitiveAuthArgs(argv.slice(2));
44
52
  const out = [];
@@ -83,13 +91,18 @@ function buildIntegrationCommandTailFromArgv(argv) {
83
91
  }
84
92
  function buildCommandWithGlobalFlags(argv, commandTemplate, pkgName = packageName, options) {
85
93
  let preserved = getGlobalFlagsFromArgv(argv);
86
- if (options?.excludeFlags?.length) {
87
- const exclude = new Set(options.excludeFlags);
94
+ const exclude = new Set(
95
+ commandTemplate.split(/\s+/).filter((token) => token.startsWith("-")).map((token) => canonicalGlobalFlagName(token.split("=")[0]))
96
+ );
97
+ for (const flag of options?.excludeFlags ?? []) {
98
+ exclude.add(canonicalGlobalFlagName(flag));
99
+ }
100
+ if (exclude.size) {
88
101
  const out = [];
89
102
  for (let i = 0; i < preserved.length; i++) {
90
103
  const arg = preserved[i];
91
104
  const name = arg.startsWith("--") ? arg.split("=")[0] : arg;
92
- if (exclude.has(name)) {
105
+ if (exclude.has(canonicalGlobalFlagName(name))) {
93
106
  if (!arg.includes("=") && i + 1 < preserved.length && !preserved[i + 1].startsWith("-")) {
94
107
  i++;
95
108
  }
@@ -317,6 +330,32 @@ function buildNextStepsForEdgeConfig(client) {
317
330
  ];
318
331
  }
319
332
  var EDGE_CONFIG_NON_INTERACTIVE_HINT = "Edge Config commands use your current team scope. Pass --scope or run `vercel teams switch` if the store is missing.";
333
+ var LIST_ERROR_HINT = "Project names are team-scoped. Use --scope when the project belongs to another team, or `list --all` to list deployments across all projects.";
334
+ function buildNextStepsForList(client, projectName) {
335
+ return [
336
+ projectName ? {
337
+ command: buildCommandWithGlobalFlags(
338
+ client.argv,
339
+ `project ls --filter ${projectName}`
340
+ ),
341
+ when: "Search projects matching the attempted name to find the right one"
342
+ } : {
343
+ command: buildCommandWithGlobalFlags(
344
+ client.argv,
345
+ "project ls --filter <name>"
346
+ ),
347
+ when: "Search projects by name substring to find the right one (replace <name>)"
348
+ },
349
+ {
350
+ command: buildCommandWithGlobalFlags(client.argv, "list --all"),
351
+ when: "List deployments across all projects in the current scope"
352
+ },
353
+ {
354
+ command: buildCommandWithGlobalFlags(client.argv, "link"),
355
+ when: "Re-link this directory to the correct Vercel project"
356
+ }
357
+ ];
358
+ }
320
359
  function buildNextStepsForProjectSubcommands(client, variant) {
321
360
  const byName = variant === "access-groups" ? {
322
361
  template: "project access-groups <name>",
@@ -327,6 +366,9 @@ function buildNextStepsForProjectSubcommands(client, variant) {
327
366
  } : variant === "protection" ? {
328
367
  template: "project protection <name>",
329
368
  when: "Show deployment protection by project name (replace <name>)"
369
+ } : variant === "update" ? {
370
+ template: "project update <name> --framework <slug>",
371
+ when: "Update a framework preset by project name (replace <name> and <slug>)"
330
372
  } : variant === "speed-insights" ? {
331
373
  template: "project speed-insights <name>",
332
374
  when: "Enable Speed Insights by project name (replace <name>)"
@@ -363,6 +405,12 @@ function resolveNonInteractiveDefaults(client, variant) {
363
405
  hint: EDGE_CONFIG_NON_INTERACTIVE_HINT
364
406
  };
365
407
  }
408
+ if (variant === "list") {
409
+ return {
410
+ next: buildNextStepsForList(client),
411
+ hint: LIST_ERROR_HINT
412
+ };
413
+ }
366
414
  return {
367
415
  next: buildNextStepsForProjectSubcommands(client, variant),
368
416
  hint: PROJECT_SUBCOMMAND_ERROR_HINT
@@ -435,7 +483,8 @@ function exitWithNonInteractiveError(client, err, exitCode = 1, options = {
435
483
  {
436
484
  status: "error",
437
485
  reason: "project_not_found",
438
- message: err instanceof Error ? err.message : String(err)
486
+ message: err instanceof Error ? err.message : String(err),
487
+ ...variant === "list" && options.projectName ? { next: buildNextStepsForList(client, options.projectName) } : {}
439
488
  },
440
489
  exitCode,
441
490
  variant
@@ -481,6 +530,7 @@ function openUrlInBrowserCommand(url) {
481
530
  export {
482
531
  buildCommandWithYes,
483
532
  getGlobalFlagsFromArgv,
533
+ omitGlobalFlagsFromArgs,
484
534
  buildIntegrationCommandTailFromArgv,
485
535
  buildCommandWithGlobalFlags,
486
536
  getPreservedArgsForEnvAdd,
@@ -15,15 +15,15 @@ import {
15
15
  } from "./chunk-QH7WYDEP.js";
16
16
  import {
17
17
  getScope
18
- } from "./chunk-P726GMBL.js";
18
+ } from "./chunk-HMFUXSD7.js";
19
19
  import {
20
20
  getLinkedProject,
21
21
  getProjectByNameOrId
22
- } from "./chunk-RB7WQKNC.js";
22
+ } from "./chunk-I4NRKN2Z.js";
23
23
  import {
24
24
  buildCommandWithGlobalFlags,
25
25
  outputAgentError
26
- } from "./chunk-IZOHLD5D.js";
26
+ } from "./chunk-2QBF3ZL3.js";
27
27
  import {
28
28
  ProjectNotFound,
29
29
  isAPIError,
@@ -6,16 +6,16 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  tagsAggregateCommand
9
- } from "./chunk-RY3AVR6E.js";
9
+ } from "./chunk-7C7MMT4J.js";
10
10
  import {
11
11
  imageAggregateCommand
12
- } from "./chunk-AUECDTMX.js";
12
+ } from "./chunk-RLJA2KI7.js";
13
13
  import {
14
14
  formatOption,
15
15
  limitOption,
16
16
  projectOption,
17
17
  yesOption
18
- } from "./chunk-EJ6GQI6F.js";
18
+ } from "./chunk-EHTPDXTS.js";
19
19
  import {
20
20
  packageName
21
21
  } from "./chunk-P6AK7SVK.js";
@@ -6,11 +6,11 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getEnvTargetPlaceholder
9
- } from "./chunk-RB7WQKNC.js";
9
+ } from "./chunk-I4NRKN2Z.js";
10
10
  import {
11
11
  projectOption,
12
12
  yesOption
13
- } from "./chunk-EJ6GQI6F.js";
13
+ } from "./chunk-EHTPDXTS.js";
14
14
  import {
15
15
  packageName
16
16
  } from "./chunk-P6AK7SVK.js";
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  table
9
- } from "./chunk-VKBYAWTL.js";
9
+ } from "./chunk-QEEGXNFK.js";
10
10
  import {
11
11
  require_strip_ansi
12
- } from "./chunk-EJ6GQI6F.js";
12
+ } from "./chunk-EHTPDXTS.js";
13
13
  import {
14
14
  require_source
15
15
  } from "./chunk-S7KYDPEM.js";
@@ -10,7 +10,7 @@ import {
10
10
  formatOption,
11
11
  nextOption,
12
12
  yesOption
13
- } from "./chunk-EJ6GQI6F.js";
13
+ } from "./chunk-EHTPDXTS.js";
14
14
  import {
15
15
  packageName
16
16
  } from "./chunk-P6AK7SVK.js";
@@ -9,7 +9,7 @@ import {
9
9
  limitOption,
10
10
  nextOption,
11
11
  projectOption
12
- } from "./chunk-EJ6GQI6F.js";
12
+ } from "./chunk-EHTPDXTS.js";
13
13
  import {
14
14
  packageName
15
15
  } from "./chunk-P6AK7SVK.js";
@@ -8,7 +8,7 @@ import {
8
8
  formatOption,
9
9
  limitOption,
10
10
  projectOption
11
- } from "./chunk-EJ6GQI6F.js";
11
+ } from "./chunk-EHTPDXTS.js";
12
12
  import {
13
13
  packageName
14
14
  } from "./chunk-P6AK7SVK.js";
@@ -6,12 +6,12 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  rulesAggregateCommand
9
- } from "./chunk-OGJB2GHI.js";
9
+ } from "./chunk-22GUZ5KG.js";
10
10
  import {
11
11
  formatOption,
12
12
  limitOption,
13
13
  projectOption
14
- } from "./chunk-EJ6GQI6F.js";
14
+ } from "./chunk-EHTPDXTS.js";
15
15
  import {
16
16
  packageName
17
17
  } from "./chunk-P6AK7SVK.js";
@@ -10,7 +10,7 @@ import {
10
10
  progress,
11
11
  require_dist as require_dist2,
12
12
  sleep
13
- } from "./chunk-FZZWTDNQ.js";
13
+ } from "./chunk-TRQJQXKD.js";
14
14
  import {
15
15
  suggestNextCommands
16
16
  } from "./chunk-XBN2O34P.js";
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-SGL3NMOP.js";
21
21
  import {
22
22
  CommandTimeout
23
- } from "./chunk-4BEUS7AL.js";
23
+ } from "./chunk-AUYY7RD3.js";
24
24
  import {
25
25
  showPluginTipIfNeeded
26
26
  } from "./chunk-NJUPUGOE.js";
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-64IF634X.js";
30
30
  import {
31
31
  getScope
32
- } from "./chunk-P726GMBL.js";
32
+ } from "./chunk-HMFUXSD7.js";
33
33
  import {
34
34
  getProjectByNameOrId,
35
35
  param,
@@ -37,11 +37,11 @@ import {
37
37
  require_dist as require_dist3,
38
38
  require_pluralize,
39
39
  ua_default
40
- } from "./chunk-RB7WQKNC.js";
40
+ } from "./chunk-I4NRKN2Z.js";
41
41
  import {
42
42
  require_strip_ansi,
43
43
  responseError
44
- } from "./chunk-EJ6GQI6F.js";
44
+ } from "./chunk-EHTPDXTS.js";
45
45
  import {
46
46
  APIError,
47
47
  BuildError,