vercel 56.5.0 → 58.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.
Files changed (90) hide show
  1. package/dist/chunks/{add-KNK5E2YT.js → add-7PPD4ZUJ.js} +2 -2
  2. package/dist/chunks/{add-6GRH6G2M.js → add-E4KH6P4A.js} +6 -5
  3. package/dist/chunks/{chunk-YS6EDZHB.js → chunk-2MJROFVC.js} +5 -1
  4. package/dist/chunks/chunk-3PGXYIKC.js +147 -0
  5. package/dist/chunks/chunk-5AJPMLDV.js +28 -0
  6. package/dist/chunks/{chunk-V5P25P7F.js → chunk-A3NYPUKZ.js} +7 -12
  7. package/dist/chunks/{chunk-JQG5EDRD.js → chunk-AZTV7WPZ.js} +1 -1
  8. package/dist/chunks/{chunk-3BHSS5E2.js → chunk-B2MTCHPO.js} +65 -210
  9. package/dist/chunks/{chunk-GAOAGU5K.js → chunk-BYQQLGCT.js} +1 -1
  10. package/dist/chunks/{chunk-ARKHETJP.js → chunk-DGFASMSE.js} +1 -1
  11. package/dist/chunks/{chunk-W346YNDN.js → chunk-DWMH5M4Q.js} +4 -1
  12. package/dist/chunks/{chunk-PRYNIKBZ.js → chunk-EA22NMFU.js} +1 -1
  13. package/dist/chunks/{chunk-26TEKOBZ.js → chunk-FB4UFWEC.js} +8 -1
  14. package/dist/chunks/chunk-FGDKMNEN.js +21 -0
  15. package/dist/chunks/{chunk-23U6FANO.js → chunk-FYR7WEUJ.js} +11 -18
  16. package/dist/chunks/chunk-GZLPFESR.js +48 -0
  17. package/dist/chunks/{chunk-STJJ3DFO.js → chunk-KCF6S3XF.js} +16 -1
  18. package/dist/chunks/{chunk-PPEQUJ7T.js → chunk-KGVT2RSG.js} +3 -3
  19. package/dist/chunks/{chunk-4MK452Y5.js → chunk-L4WYMJB3.js} +8 -8
  20. package/dist/chunks/{chunk-BM36UWE2.js → chunk-MDQJLTGN.js} +1 -1
  21. package/dist/chunks/{chunk-Z7NPYIZ6.js → chunk-NM43FFV6.js} +0 -8
  22. package/dist/chunks/chunk-OF2GNB42.js +53 -0
  23. package/dist/chunks/{chunk-YTFJGKRG.js → chunk-OQGN4TEC.js} +1 -1
  24. package/dist/chunks/chunk-PRWJUY5U.js +848 -0
  25. package/dist/chunks/{chunk-F5OMERHI.js → chunk-QZD5DKUR.js} +10 -23
  26. package/dist/chunks/{chunk-SWEPOMSA.js → chunk-R54DAHCL.js} +4 -3
  27. package/dist/chunks/{chunk-DOF6CJLL.js → chunk-RSCSALZH.js} +15 -839
  28. package/dist/chunks/{chunk-G4MTGCZ5.js → chunk-TEWJ7TIW.js} +1 -1
  29. package/dist/chunks/{chunk-TMK6RSYW.js → chunk-TPX7RZBM.js} +1433 -979
  30. package/dist/chunks/chunk-V4RMJKQP.js +36 -0
  31. package/dist/chunks/{chunk-DI3HR3K6.js → chunk-VUESC3YO.js} +1 -1
  32. package/dist/chunks/{chunk-IBP2XAUH.js → chunk-WANVKOVB.js} +39 -5
  33. package/dist/chunks/{chunk-X43U65TH.js → chunk-WDE2EDYX.js} +2 -2
  34. package/dist/chunks/{chunk-6RTK6BWX.js → chunk-YA3WQFLY.js} +1 -1
  35. package/dist/chunks/{chunk-EYICIM2K.js → chunk-YZMZCQP3.js} +4 -4
  36. package/dist/chunks/{chunk-CM3DLBDY.js → chunk-ZMVFTCQF.js} +1 -1
  37. package/dist/chunks/{compile-vercel-config-IFET4E6H.js → compile-vercel-config-G2IVBXEI.js} +1 -1
  38. package/dist/chunks/config-validator.mjs +1 -1
  39. package/dist/chunks/{delete-PXB5WRH7.js → delete-2EIVGM6P.js} +2 -2
  40. package/dist/chunks/{delete-X2MUMONI.js → delete-E6ZQNE5X.js} +2 -2
  41. package/dist/chunks/{disable-GBL3SHJL.js → disable-M3Q6BBB7.js} +2 -2
  42. package/dist/chunks/{discard-XVVSRGDR.js → discard-3R6ETBPS.js} +2 -2
  43. package/dist/chunks/{edit-EIHRP6XT.js → edit-7JUDPVXD.js} +3 -3
  44. package/dist/chunks/{edit-K5Y2BDJO.js → edit-ICVMGRRU.js} +2 -2
  45. package/dist/chunks/{enable-W7AMJWKH.js → enable-HLTA35QL.js} +2 -2
  46. package/dist/chunks/{export-N3AZ2KOO.js → export-E6XZUFW3.js} +2 -2
  47. package/dist/chunks/{image-DRTGVPVJ.js → image-SIRPPQZT.js} +3 -3
  48. package/dist/chunks/{inspect-DYXTX6P4.js → inspect-4FYBOOM5.js} +2 -2
  49. package/dist/chunks/{inspect-AAIVWSJI.js → inspect-65YX7L3O.js} +2 -2
  50. package/dist/chunks/inspect-6TQWDIBG.js +587 -0
  51. package/dist/chunks/{inspect-IPSAYR2C.js → inspect-NFOURIGN.js} +2 -2
  52. package/dist/chunks/{inspect-SLZLI6ZC.js → inspect-OEWWGAHZ.js} +3 -3
  53. package/dist/chunks/{list-IF2YW73F.js → list-27DCGMBI.js} +1 -1
  54. package/dist/chunks/{list-V7VTXVK4.js → list-APFMKZJO.js} +41 -54
  55. package/dist/chunks/{list-K2HLGUXV.js → list-XQCZVLES.js} +3 -3
  56. package/dist/chunks/{login-7C6HQEOG.js → login-FMU4CQOV.js} +2 -2
  57. package/dist/chunks/{ls-2NU353QP.js → ls-24BRCAZR.js} +2 -2
  58. package/dist/chunks/ls-3L6EN4YU.js +188 -0
  59. package/dist/chunks/{ls-NKECPPOR.js → ls-BFACWH6C.js} +2 -2
  60. package/dist/chunks/{ls-QQQHOJBE.js → ls-T5RGDBCV.js} +2 -2
  61. package/dist/chunks/{open-2FAPZA6V.js → open-AG3VYJZM.js} +2 -2
  62. package/dist/chunks/{publish-G7PB64LJ.js → publish-5OVCPS4J.js} +2 -2
  63. package/dist/chunks/{query-D4QBT4WR.js → query-QS4VKBXJ.js} +8 -8
  64. package/dist/chunks/{reorder-3Z7YIPAX.js → reorder-B5V2P7YM.js} +2 -2
  65. package/dist/chunks/{reply-7QQBXL5H.js → reply-JBLWE6RS.js} +2 -2
  66. package/dist/chunks/{resolve-UYKTDZEX.js → resolve-2I6XH2G3.js} +2 -2
  67. package/dist/chunks/{restore-Q2DR7SMW.js → restore-O63FZXCL.js} +2 -2
  68. package/dist/chunks/{rm-OCLUTM57.js → rm-HUED5R3Q.js} +6 -5
  69. package/dist/chunks/{rm-O4M4GFSK.js → rm-N7W3QYWZ.js} +2 -2
  70. package/dist/chunks/{rm-PCWMEHQ2.js → rm-P3NJSCMY.js} +2 -2
  71. package/dist/chunks/rule-inspect-M3QUSPU2.js +283 -0
  72. package/dist/chunks/{rules-LIH5FLPJ.js → rules-NSSWPJ2B.js} +7 -7
  73. package/dist/chunks/{schema-OFALTXXM.js → schema-G2PAXPVA.js} +6 -4
  74. package/dist/chunks/{tags-P4HIAI6D.js → tags-JFMO63D4.js} +2 -2
  75. package/dist/chunks/{update-E3ZQAFBS.js → update-VJCKD6YG.js} +6 -5
  76. package/dist/commands/build/index.js +42 -10
  77. package/dist/commands/deploy/index.js +34 -24
  78. package/dist/commands/dev/index.js +23 -13
  79. package/dist/commands/env/index.js +8 -7
  80. package/dist/commands/link/index.js +8 -8
  81. package/dist/commands/list/index.js +2 -2
  82. package/dist/commands-bulk.js +1959 -1816
  83. package/dist/index.js +19 -20
  84. package/dist/vc.js +54 -18
  85. package/dist/version.mjs +1 -1
  86. package/package.json +35 -35
  87. package/dist/chunks/chunk-GNV7547O.js +0 -86
  88. package/dist/chunks/inspect-5YUAEI3L.js +0 -351
  89. package/dist/chunks/ls-RH6Y4XBS.js +0 -113
  90. package/dist/chunks/rule-inspect-XJ47UEG7.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
+ };
@@ -14,7 +14,7 @@ import {
14
14
  getLinkedProject,
15
15
  getProjectByNameOrId,
16
16
  getScope
17
- } from "./chunk-TMK6RSYW.js";
17
+ } from "./chunk-TPX7RZBM.js";
18
18
  import {
19
19
  AGENT_REASON,
20
20
  buildCommandWithGlobalFlags,
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-3PKFXNJZ.js";
22
22
  import {
23
23
  alertsCommand
24
- } from "./chunk-YS6EDZHB.js";
24
+ } from "./chunk-2MJROFVC.js";
25
25
  import {
26
26
  devCommand
27
27
  } from "./chunk-OGG6UBXK.js";
@@ -31,10 +31,10 @@ import {
31
31
  import {
32
32
  buildCommand,
33
33
  pullCommand
34
- } from "./chunk-PRYNIKBZ.js";
34
+ } from "./chunk-EA22NMFU.js";
35
35
  import {
36
36
  envCommand
37
- } from "./chunk-TMK6RSYW.js";
37
+ } from "./chunk-TPX7RZBM.js";
38
38
  import {
39
39
  confirmOption,
40
40
  deploymentOption,
@@ -2440,7 +2440,7 @@ var attachSubcommand = {
2440
2440
  type: [String],
2441
2441
  argument: "ENV",
2442
2442
  deprecated: false,
2443
- description: "Environments to enable. Repeatable and comma-separated (e.g. -e production -e preview, or -e production,preview). Defaults to all environments."
2443
+ description: "Environments to enable by system name, custom slug, or custom ID. Repeatable and comma-separated. Defaults to production, preview, and development."
2444
2444
  },
2445
2445
  {
2446
2446
  ...projectOption,
@@ -2462,6 +2462,14 @@ var attachSubcommand = {
2462
2462
  deprecated: false,
2463
2463
  description: "Target a specific git branch for the trigger destination (default: production). Only valid with --triggers."
2464
2464
  },
2465
+ {
2466
+ name: "trigger-environment",
2467
+ shorthand: null,
2468
+ type: String,
2469
+ argument: "ENV",
2470
+ deprecated: false,
2471
+ description: "Target a custom environment by slug or stable ID. Mutually exclusive with --trigger-branch and only valid with --triggers."
2472
+ },
2465
2473
  {
2466
2474
  name: "trigger-path",
2467
2475
  shorthand: null,
@@ -2478,13 +2486,21 @@ var attachSubcommand = {
2478
2486
  ],
2479
2487
  examples: [
2480
2488
  {
2481
- name: "Attach the current project to a connector for all environments",
2489
+ name: "Attach the current project for all system environments",
2482
2490
  value: `${packageName} connect attach scl_abc123`
2483
2491
  },
2484
2492
  {
2485
2493
  name: "Restrict to specific environments",
2486
2494
  value: `${packageName} connect attach scl_abc123 -e production -e preview`
2487
2495
  },
2496
+ {
2497
+ name: "Attach to a custom environment by slug",
2498
+ value: `${packageName} connect attach scl_abc123 -e qa`
2499
+ },
2500
+ {
2501
+ name: "Attach to a custom environment by stable ID",
2502
+ value: `${packageName} connect attach scl_abc123 -e env_qa123`
2503
+ },
2488
2504
  {
2489
2505
  name: "Attach a different project by name",
2490
2506
  value: `${packageName} connect attach slack/my-bot --project my-app`
@@ -2497,6 +2513,10 @@ var attachSubcommand = {
2497
2513
  name: "Attach and register a preview-branch trigger destination",
2498
2514
  value: `${packageName} connect attach scl_abc123 --triggers --trigger-branch staging --trigger-path /slack`
2499
2515
  },
2516
+ {
2517
+ name: "Attach and register a custom-environment trigger destination",
2518
+ value: `${packageName} connect attach scl_abc123 --triggers --trigger-environment qa --trigger-path /slack`
2519
+ },
2500
2520
  {
2501
2521
  name: "Non-interactive output as JSON",
2502
2522
  value: `${packageName} connect attach scl_abc123 --yes --format=json`
@@ -9646,6 +9666,20 @@ var upgradeCommand = {
9646
9666
  deprecated: false,
9647
9667
  description: "Disable automatic CLI updates"
9648
9668
  },
9669
+ {
9670
+ // Internal: opt in/out of the native CLI binary. Undocumented (no
9671
+ // `description`) so it is omitted from `--help`.
9672
+ name: "enable-binary",
9673
+ shorthand: null,
9674
+ type: Boolean,
9675
+ deprecated: false
9676
+ },
9677
+ {
9678
+ name: "disable-binary",
9679
+ shorthand: null,
9680
+ type: Boolean,
9681
+ deprecated: false
9682
+ },
9649
9683
  {
9650
9684
  ...formatOption,
9651
9685
  description: "Specify the output format (json) - implies --dry-run"
@@ -6,14 +6,14 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  setupAndLink
9
- } from "./chunk-PPEQUJ7T.js";
9
+ } from "./chunk-KGVT2RSG.js";
10
10
  import {
11
11
  detectExplicitScope,
12
12
  getLinkedProject,
13
13
  param,
14
14
  printProjectNotFoundError,
15
15
  resolveProjectCwd
16
- } from "./chunk-TMK6RSYW.js";
16
+ } from "./chunk-TPX7RZBM.js";
17
17
  import {
18
18
  buildCommandWithYes,
19
19
  outputActionRequired
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  formatErrorJson,
9
9
  handleApiError
10
- } from "./chunk-Z7NPYIZ6.js";
10
+ } from "./chunk-NM43FFV6.js";
11
11
  import {
12
12
  isAPIError
13
13
  } from "./chunk-KSSNLCL4.js";
@@ -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-JQG5EDRD.js";
9
+ } from "./chunk-AZTV7WPZ.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-X43U65TH.js";
18
+ } from "./chunk-WDE2EDYX.js";
19
19
  import {
20
20
  pullCommand
21
- } from "./chunk-PRYNIKBZ.js";
21
+ } from "./chunk-EA22NMFU.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-TMK6RSYW.js";
31
+ } from "./chunk-TPX7RZBM.js";
32
32
  import {
33
33
  TelemetryClient
34
34
  } from "./chunk-ECCWJHC6.js";
@@ -8,7 +8,7 @@ import {
8
8
  formatCondition,
9
9
  formatTransform,
10
10
  isTargetTransform
11
- } from "./chunk-ARKHETJP.js";
11
+ } from "./chunk-DGFASMSE.js";
12
12
  import {
13
13
  output_manager_default
14
14
  } from "./chunk-OX7KI3LF.js";
@@ -11,7 +11,7 @@ import {
11
11
  findSourceVercelConfigFile,
12
12
  getVercelConfigPath,
13
13
  normalizeConfig
14
- } from "./chunk-TMK6RSYW.js";
14
+ } from "./chunk-TPX7RZBM.js";
15
15
  import "./chunk-ECCWJHC6.js";
16
16
  import "./chunk-UDWRZXIT.js";
17
17
  import "./chunk-SZXT3PDQ.js";