vercel 56.2.1 → 56.3.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 (86) hide show
  1. package/dist/chunks/{add-YIAPBLSF.js → add-CF5SQESQ.js} +10 -13
  2. package/dist/chunks/{add-ZAQLTF5W.js → add-DMRGZN3Z.js} +9 -12
  3. package/dist/chunks/{chunk-75PKWYOS.js → chunk-22G26AIX.js} +99 -74
  4. package/dist/chunks/{chunk-7OJJKCSW.js → chunk-2C2JJTAM.js} +6 -10
  5. package/dist/chunks/{chunk-DDEPCAGE.js → chunk-2MXGTALG.js} +529 -164
  6. package/dist/chunks/{chunk-5AJNUXWP.js → chunk-3PKFXNJZ.js} +2 -4
  7. package/dist/chunks/{chunk-5OT26JZN.js → chunk-3VS4DTAU.js} +4 -6
  8. package/dist/chunks/{chunk-JJWESW5Y.js → chunk-4G6QZSBL.js} +2 -4
  9. package/dist/chunks/{chunk-NULWLKT7.js → chunk-4YOCOUDN.js} +4 -4
  10. package/dist/chunks/{chunk-GXBDQRHJ.js → chunk-4Z5LC2CI.js} +1 -1
  11. package/dist/chunks/{chunk-CMJMYVQM.js → chunk-6OMC3HOW.js} +1 -1
  12. package/dist/chunks/{chunk-JF7LPEBD.js → chunk-A6LE5VAN.js} +1 -1
  13. package/dist/chunks/{chunk-QY63UKTP.js → chunk-DMSLNAVH.js} +2 -2
  14. package/dist/chunks/{chunk-52V5NDUN.js → chunk-DZHRFBKE.js} +2 -2
  15. package/dist/chunks/{chunk-MYD7N6MH.js → chunk-ERPZJ4SX.js} +13 -3
  16. package/dist/chunks/{chunk-YKJA5TVC.js → chunk-EYNXG3FO.js} +3 -5
  17. package/dist/chunks/{chunk-RLJA2KI7.js → chunk-FYQPTH5C.js} +2 -4
  18. package/dist/chunks/{chunk-7TJLLZPN.js → chunk-G4PG5HVE.js} +6 -10
  19. package/dist/chunks/{chunk-7C7MMT4J.js → chunk-GIL3VAUR.js} +2 -4
  20. package/dist/chunks/{chunk-GPVU6JRS.js → chunk-HUKYQKVQ.js} +9 -7
  21. package/dist/chunks/{chunk-EPBUWIAO.js → chunk-I2IICWBW.js} +48 -24
  22. package/dist/chunks/{chunk-KXVQEPTA.js → chunk-ICSIFPXG.js} +3 -5
  23. package/dist/chunks/{chunk-P6AK7SVK.js → chunk-KSSNLCL4.js} +360 -25
  24. package/dist/chunks/{chunk-HIO4M75R.js → chunk-KXKQQIUS.js} +6 -10
  25. package/dist/chunks/{chunk-HA7C7SDO.js → chunk-LHFNIZ2P.js} +2 -4
  26. package/dist/chunks/{chunk-2I34TRQZ.js → chunk-NP32PAKT.js} +2 -2
  27. package/dist/chunks/{chunk-QEEGXNFK.js → chunk-NZRWTCRM.js} +1 -1
  28. package/dist/chunks/{chunk-IDMKFYEA.js → chunk-OGG6UBXK.js} +2 -4
  29. package/dist/chunks/{chunk-PASZMRTZ.js → chunk-PRO4S2KV.js} +5 -5
  30. package/dist/chunks/{chunk-DD6D5J7E.js → chunk-Q5ADSH7D.js} +8 -12
  31. package/dist/chunks/{chunk-6ZVIC6FL.js → chunk-QP3C5YS5.js} +8 -8
  32. package/dist/chunks/{chunk-5HNYJHOB.js → chunk-SDK7R4WO.js} +1 -1
  33. package/dist/chunks/{chunk-22GUZ5KG.js → chunk-STJJ3DFO.js} +2 -4
  34. package/dist/chunks/{chunk-EHTPDXTS.js → chunk-SZXT3PDQ.js} +3 -294
  35. package/dist/chunks/{chunk-CB3I3QIT.js → chunk-UDWRZXIT.js} +193 -85
  36. package/dist/chunks/{chunk-DREO3DFB.js → chunk-VZSZBD4V.js} +16 -6
  37. package/dist/chunks/{chunk-VOBBH2SB.js → chunk-W346YNDN.js} +0 -49
  38. package/dist/chunks/{chunk-7S3QUMIG.js → chunk-YS6EDZHB.js} +3 -5
  39. package/dist/chunks/{chunk-UESEGACQ.js → chunk-ZDCS54ZZ.js} +3 -3
  40. package/dist/chunks/{chunk-4RGSUV5C.js → chunk-ZVLPUREX.js} +2 -2
  41. package/dist/chunks/{compile-vercel-config-4NKPN3EG.js → compile-vercel-config-RPPL7W56.js} +4 -4
  42. package/dist/chunks/{delete-NCMDC3IU.js → delete-QBVZ5X6B.js} +14 -14
  43. package/dist/chunks/{disable-Z7DXY4AY.js → disable-YYGXPXBI.js} +14 -13
  44. package/dist/chunks/{discard-4ILK3ULP.js → discard-X2MSUFGI.js} +13 -12
  45. package/dist/chunks/{edit-ROJQCTWR.js → edit-3ABZQYUU.js} +17 -18
  46. package/dist/chunks/{enable-TAVCLAEC.js → enable-HUMYCGKA.js} +14 -13
  47. package/dist/chunks/{export-YTSIGJFX.js → export-KGHH4WAT.js} +15 -14
  48. package/dist/chunks/{image-LORSHERP.js → image-OO3WWKZV.js} +6 -8
  49. package/dist/chunks/{inspect-5C4UHSCT.js → inspect-5TNHHD2M.js} +10 -12
  50. package/dist/chunks/{inspect-OHDU2SVS.js → inspect-FNUCB7Y3.js} +8 -10
  51. package/dist/chunks/{inspect-L4UIWOXO.js → inspect-KSSQEAW7.js} +11 -15
  52. package/dist/chunks/{inspect-A2X7RTP4.js → inspect-Z6SSD2SR.js} +8 -10
  53. package/dist/chunks/{list-FGVDMSFN.js → list-TXNYRVJG.js} +8 -10
  54. package/dist/chunks/{list-P2B5MHON.js → list-X2AD3HCX.js} +10 -13
  55. package/dist/chunks/{login-4BK3VGII.js → login-SLPCZ2OF.js} +11 -14
  56. package/dist/chunks/{ls-YXKRRYTL.js → ls-2YSINRJ3.js} +10 -13
  57. package/dist/chunks/{ls-NU4D6TLG.js → ls-4QMJLQQL.js} +10 -13
  58. package/dist/chunks/{ls-WDRFGE2J.js → ls-C7MNQ4IK.js} +12 -15
  59. package/dist/chunks/{ls-RAC5LMTR.js → ls-QLTOY23G.js} +9 -12
  60. package/dist/chunks/{publish-DGF2TQCQ.js → publish-GV4LLLXP.js} +13 -12
  61. package/dist/chunks/{query-NWW6RDHK.js → query-3AHRMAPA.js} +10 -12
  62. package/dist/chunks/{reorder-TTZBKCEB.js → reorder-VSVOPNM4.js} +17 -16
  63. package/dist/chunks/{restore-DG3LZMHQ.js → restore-FKYCF73P.js} +19 -18
  64. package/dist/chunks/{rm-7WXXLTXF.js → rm-4QCXZRC2.js} +10 -13
  65. package/dist/chunks/{rm-U2DFRDKE.js → rm-UTFG42FN.js} +8 -11
  66. package/dist/chunks/{rm-2VBE4C2V.js → rm-YV5WQKQM.js} +9 -12
  67. package/dist/chunks/{rule-inspect-4NL3GGDB.js → rule-inspect-IONN4MTP.js} +9 -12
  68. package/dist/chunks/{rules-DABNOUNG.js → rules-S2KPV7HY.js} +9 -11
  69. package/dist/chunks/{schema-4RRRUUOO.js → schema-3LX3V2HE.js} +11 -12
  70. package/dist/chunks/{tags-MLX3AHHK.js → tags-CQ4FRIJ4.js} +5 -7
  71. package/dist/chunks/{types-2TPA6J4G.js → types-QKLIFDDP.js} +5 -5
  72. package/dist/chunks/{update-YXH7WWTN.js → update-U7OGHCP5.js} +9 -12
  73. package/dist/commands/build/index.js +26 -31
  74. package/dist/commands/deploy/index.js +57 -75
  75. package/dist/commands/dev/index.js +193 -159
  76. package/dist/commands/env/index.js +70 -47
  77. package/dist/commands/link/index.js +25 -29
  78. package/dist/commands/list/index.js +13 -17
  79. package/dist/commands-bulk.js +637 -620
  80. package/dist/index.js +23 -25
  81. package/dist/version.mjs +1 -1
  82. package/package.json +20 -20
  83. package/dist/chunks/chunk-DWU7JOO6.js +0 -158
  84. package/dist/chunks/chunk-IC4YEIGW.js +0 -101
  85. package/dist/chunks/chunk-IMUF5MGV.js +0 -81
  86. package/dist/chunks/chunk-SGL3NMOP.js +0 -86
@@ -8,11 +8,9 @@ import {
8
8
  formatOption,
9
9
  limitOption,
10
10
  nextOption,
11
+ packageName,
11
12
  projectOption
12
- } from "./chunk-EHTPDXTS.js";
13
- import {
14
- packageName
15
- } from "./chunk-P6AK7SVK.js";
13
+ } from "./chunk-KSSNLCL4.js";
16
14
 
17
15
  // src/commands/activity/command.ts
18
16
  var typesSubcommand = {
@@ -6,19 +6,17 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  tagsAggregateCommand
9
- } from "./chunk-7C7MMT4J.js";
9
+ } from "./chunk-GIL3VAUR.js";
10
10
  import {
11
11
  imageAggregateCommand
12
- } from "./chunk-RLJA2KI7.js";
12
+ } from "./chunk-FYQPTH5C.js";
13
13
  import {
14
14
  formatOption,
15
15
  limitOption,
16
+ packageName,
16
17
  projectOption,
17
18
  yesOption
18
- } from "./chunk-EHTPDXTS.js";
19
- import {
20
- packageName
21
- } from "./chunk-P6AK7SVK.js";
19
+ } from "./chunk-KSSNLCL4.js";
22
20
 
23
21
  // src/commands/vcr/command.ts
24
22
  var projectScopeOption = {
@@ -6,11 +6,9 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  formatOption,
9
+ packageName,
9
10
  projectOption
10
- } from "./chunk-EHTPDXTS.js";
11
- import {
12
- packageName
13
- } from "./chunk-P6AK7SVK.js";
11
+ } from "./chunk-KSSNLCL4.js";
14
12
 
15
13
  // src/commands/metrics/command.ts
16
14
  var schemaSubcommand = {
@@ -11,7 +11,7 @@ import {
11
11
  PromptBackError,
12
12
  PromptCanceledError,
13
13
  getLocalPathConfig
14
- } from "./chunk-UESEGACQ.js";
14
+ } from "./chunk-ZDCS54ZZ.js";
15
15
  import {
16
16
  DEFAULT_VERCEL_CONFIG_FILENAME,
17
17
  VERCEL_CONFIG_EXTENSIONS,
@@ -38,18 +38,18 @@ import {
38
38
  useKeypress,
39
39
  usePrefix,
40
40
  useState
41
- } from "./chunk-DDEPCAGE.js";
41
+ } from "./chunk-2MXGTALG.js";
42
42
  import {
43
43
  require_load_json_file
44
44
  } from "./chunk-ECCWJHC6.js";
45
45
  import {
46
46
  parseArguments,
47
47
  require_strip_ansi
48
- } from "./chunk-EHTPDXTS.js";
48
+ } from "./chunk-SZXT3PDQ.js";
49
49
  import {
50
50
  APIError,
51
51
  NowError
52
- } from "./chunk-P6AK7SVK.js";
52
+ } from "./chunk-KSSNLCL4.js";
53
53
  import {
54
54
  pkg_default
55
55
  } from "./chunk-P4QNYOFB.js";
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  isAPIError
9
- } from "./chunk-P6AK7SVK.js";
9
+ } from "./chunk-KSSNLCL4.js";
10
10
  import {
11
11
  output_manager_default
12
12
  } from "./chunk-OX7KI3LF.js";
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_bytes
9
- } from "./chunk-P6AK7SVK.js";
9
+ } from "./chunk-KSSNLCL4.js";
10
10
  import {
11
11
  require_ms
12
12
  } from "./chunk-GGP5R3FU.js";
@@ -8,7 +8,7 @@ import {
8
8
  VERCEL_DIR,
9
9
  VERCEL_DIR_PROJECT,
10
10
  require_lib
11
- } from "./chunk-DDEPCAGE.js";
11
+ } from "./chunk-2MXGTALG.js";
12
12
  import {
13
13
  require_dist
14
14
  } from "./chunk-OX7KI3LF.js";
@@ -7,13 +7,13 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  noBorderChars,
9
9
  require_cli_table3
10
- } from "./chunk-QEEGXNFK.js";
10
+ } from "./chunk-NZRWTCRM.js";
11
11
  import {
12
12
  require_dist
13
13
  } from "./chunk-ECCWJHC6.js";
14
14
  import {
15
15
  globalCommandOptions
16
- } from "./chunk-EHTPDXTS.js";
16
+ } from "./chunk-KSSNLCL4.js";
17
17
  import {
18
18
  require_source
19
19
  } from "./chunk-S7KYDPEM.js";
@@ -6,13 +6,13 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_lib
9
- } from "./chunk-DDEPCAGE.js";
9
+ } from "./chunk-2MXGTALG.js";
10
10
  import {
11
11
  isNativeBinaryInstall
12
12
  } from "./chunk-ECCWJHC6.js";
13
13
  import {
14
14
  packageName
15
- } from "./chunk-P6AK7SVK.js";
15
+ } from "./chunk-KSSNLCL4.js";
16
16
  import {
17
17
  __toESM
18
18
  } from "./chunk-TZ2YI2VH.js";
@@ -19,12 +19,12 @@ import {
19
19
  require_lib,
20
20
  require_minimatch,
21
21
  require_pluralize
22
- } from "./chunk-DDEPCAGE.js";
22
+ } from "./chunk-2MXGTALG.js";
23
23
  import {
24
24
  CantParseJSONFile,
25
25
  cmd,
26
26
  code
27
- } from "./chunk-P6AK7SVK.js";
27
+ } from "./chunk-KSSNLCL4.js";
28
28
  import {
29
29
  output_manager_default,
30
30
  require_dist
@@ -10873,7 +10873,17 @@ async function explode(paths, { accepts }) {
10873
10873
  }
10874
10874
  }
10875
10875
  if (s.isDirectory()) {
10876
- const all = await import_fs_extra.default.readdir(file);
10876
+ let all;
10877
+ try {
10878
+ all = await import_fs_extra.default.readdir(file);
10879
+ } catch (err) {
10880
+ const code2 = err instanceof Error && "code" in err ? err.code : void 0;
10881
+ if (code2 === "ENOENT" || code2 === "ENOTDIR") {
10882
+ debug(`Ignoring directory that has since been removed ${file}`);
10883
+ return null;
10884
+ }
10885
+ throw err;
10886
+ }
10877
10887
  const recursive = many(all.map((subdir) => asAbsolute(subdir, file)));
10878
10888
  return recursive;
10879
10889
  }
@@ -6,14 +6,12 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getEnvTargetPlaceholder
9
- } from "./chunk-DDEPCAGE.js";
9
+ } from "./chunk-2MXGTALG.js";
10
10
  import {
11
+ packageName,
11
12
  projectOption,
12
13
  yesOption
13
- } from "./chunk-EHTPDXTS.js";
14
- import {
15
- packageName
16
- } from "./chunk-P6AK7SVK.js";
14
+ } from "./chunk-KSSNLCL4.js";
17
15
 
18
16
  // src/commands/build/command.ts
19
17
  var buildCommand = {
@@ -7,12 +7,10 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  formatOption,
9
9
  limitOption,
10
+ packageName,
10
11
  projectOption,
11
12
  yesOption
12
- } from "./chunk-EHTPDXTS.js";
13
- import {
14
- packageName
15
- } from "./chunk-P6AK7SVK.js";
13
+ } from "./chunk-KSSNLCL4.js";
16
14
 
17
15
  // src/commands/vcr/image/command.ts
18
16
  var projectScopeOption = {
@@ -10,25 +10,21 @@ import {
10
10
  import {
11
11
  validateJsonOutput
12
12
  } from "./chunk-XPKWKPWA.js";
13
- import {
14
- AGENT_REASON
15
- } from "./chunk-IC4YEIGW.js";
16
- import {
17
- getScope
18
- } from "./chunk-DWU7JOO6.js";
19
13
  import {
20
14
  getLinkedProject,
21
- getProjectByNameOrId
22
- } from "./chunk-DDEPCAGE.js";
15
+ getProjectByNameOrId,
16
+ getScope
17
+ } from "./chunk-2MXGTALG.js";
23
18
  import {
19
+ AGENT_REASON,
24
20
  buildCommandWithGlobalFlags,
25
21
  outputAgentError
26
- } from "./chunk-CB3I3QIT.js";
22
+ } from "./chunk-UDWRZXIT.js";
27
23
  import {
28
24
  ProjectNotFound,
29
25
  isAPIError,
30
26
  packageName
31
- } from "./chunk-P6AK7SVK.js";
27
+ } from "./chunk-KSSNLCL4.js";
32
28
  import {
33
29
  output_manager_default
34
30
  } from "./chunk-OX7KI3LF.js";
@@ -7,11 +7,9 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  formatOption,
9
9
  limitOption,
10
+ packageName,
10
11
  projectOption
11
- } from "./chunk-EHTPDXTS.js";
12
- import {
13
- packageName
14
- } from "./chunk-P6AK7SVK.js";
12
+ } from "./chunk-KSSNLCL4.js";
15
13
 
16
14
  // src/commands/vcr/tags/command.ts
17
15
  var projectScopeOption = {
@@ -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-JF7LPEBD.js";
9
+ } from "./chunk-A6LE5VAN.js";
10
10
  import {
11
11
  autoInstallVercelPlugin
12
12
  } from "./chunk-NJUPUGOE.js";
@@ -15,28 +15,30 @@ import {
15
15
  } from "./chunk-64IF634X.js";
16
16
  import {
17
17
  ensureLink
18
- } from "./chunk-HIO4M75R.js";
18
+ } from "./chunk-KXKQQIUS.js";
19
19
  import {
20
20
  pullCommand
21
- } from "./chunk-YKJA5TVC.js";
21
+ } from "./chunk-EYNXG3FO.js";
22
22
  import {
23
23
  help
24
- } from "./chunk-QY63UKTP.js";
24
+ } from "./chunk-DMSLNAVH.js";
25
25
  import {
26
26
  VERCEL_DIR,
27
27
  VERCEL_DIR_PROJECT,
28
28
  envPullCommandLogic,
29
29
  humanizePath,
30
30
  parseTarget
31
- } from "./chunk-DDEPCAGE.js";
31
+ } from "./chunk-2MXGTALG.js";
32
32
  import {
33
33
  TelemetryClient
34
34
  } from "./chunk-ECCWJHC6.js";
35
35
  import {
36
- getFlagsSpecification,
37
36
  parseArguments,
38
37
  printError
39
- } from "./chunk-EHTPDXTS.js";
38
+ } from "./chunk-SZXT3PDQ.js";
39
+ import {
40
+ getFlagsSpecification
41
+ } from "./chunk-KSSNLCL4.js";
40
42
  import {
41
43
  emoji,
42
44
  output_manager_default,
@@ -6,32 +6,32 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  vcrCommand
9
- } from "./chunk-5OT26JZN.js";
9
+ } from "./chunk-3VS4DTAU.js";
10
10
  import {
11
11
  metricsCommand
12
- } from "./chunk-JJWESW5Y.js";
12
+ } from "./chunk-4G6QZSBL.js";
13
13
  import {
14
14
  routesCommand
15
- } from "./chunk-DREO3DFB.js";
15
+ } from "./chunk-VZSZBD4V.js";
16
16
  import {
17
17
  activityCommand
18
- } from "./chunk-5AJNUXWP.js";
18
+ } from "./chunk-3PKFXNJZ.js";
19
19
  import {
20
20
  alertsCommand
21
- } from "./chunk-7S3QUMIG.js";
21
+ } from "./chunk-YS6EDZHB.js";
22
22
  import {
23
23
  devCommand
24
- } from "./chunk-IDMKFYEA.js";
24
+ } from "./chunk-OGG6UBXK.js";
25
25
  import {
26
26
  listCommand
27
- } from "./chunk-HA7C7SDO.js";
27
+ } from "./chunk-LHFNIZ2P.js";
28
28
  import {
29
29
  buildCommand,
30
30
  pullCommand
31
- } from "./chunk-YKJA5TVC.js";
31
+ } from "./chunk-EYNXG3FO.js";
32
32
  import {
33
33
  envCommand
34
- } from "./chunk-DDEPCAGE.js";
34
+ } from "./chunk-2MXGTALG.js";
35
35
  import {
36
36
  confirmOption,
37
37
  deploymentOption,
@@ -40,13 +40,11 @@ import {
40
40
  jsonOption,
41
41
  limitOption,
42
42
  nextOption,
43
+ packageName,
43
44
  projectOption,
44
45
  protectionBypassOption,
45
46
  yesOption
46
- } from "./chunk-EHTPDXTS.js";
47
- import {
48
- packageName
49
- } from "./chunk-P6AK7SVK.js";
47
+ } from "./chunk-KSSNLCL4.js";
50
48
  import {
51
49
  output_manager_default
52
50
  } from "./chunk-OX7KI3LF.js";
@@ -3416,6 +3414,7 @@ var overviewSubcommand = {
3416
3414
  description: "Show a summary of your project's firewall configuration, including active rules, IP blocks, bypasses, and any unpublished draft changes",
3417
3415
  arguments: [],
3418
3416
  options: [
3417
+ projectOption,
3419
3418
  {
3420
3419
  name: "json",
3421
3420
  shorthand: null,
@@ -3437,6 +3436,7 @@ var diffSubcommand = {
3437
3436
  description: "Show draft changes that have been made but are not yet published to production",
3438
3437
  arguments: [],
3439
3438
  options: [
3439
+ projectOption,
3440
3440
  {
3441
3441
  name: "json",
3442
3442
  shorthand: null,
@@ -3457,7 +3457,7 @@ var publishSubcommand = {
3457
3457
  aliases: [],
3458
3458
  description: "Publish all draft firewall changes to production, making them live immediately",
3459
3459
  arguments: [],
3460
- options: [yesOption],
3460
+ options: [projectOption, yesOption],
3461
3461
  examples: [
3462
3462
  {
3463
3463
  name: "Publish draft changes",
@@ -3474,7 +3474,7 @@ var discardSubcommand = {
3474
3474
  aliases: [],
3475
3475
  description: "Permanently discard all unpublished draft changes, reverting to the current production configuration",
3476
3476
  arguments: [],
3477
- options: [yesOption],
3477
+ options: [projectOption, yesOption],
3478
3478
  examples: [
3479
3479
  {
3480
3480
  name: "Discard draft changes",
@@ -3492,6 +3492,7 @@ var systemBypassListSubcommand = {
3492
3492
  description: "List all system bypass rules that allow specific IPs to skip firewall checks",
3493
3493
  arguments: [],
3494
3494
  options: [
3495
+ projectOption,
3495
3496
  {
3496
3497
  name: "json",
3497
3498
  shorthand: null,
@@ -3513,6 +3514,7 @@ var systemBypassAddSubcommand = {
3513
3514
  description: "Add a system bypass rule to allow a specific IP address to skip firewall checks. Takes effect immediately (no publish required)",
3514
3515
  arguments: [{ name: "ip", required: true }],
3515
3516
  options: [
3517
+ projectOption,
3516
3518
  {
3517
3519
  name: "domain",
3518
3520
  shorthand: null,
@@ -3546,6 +3548,7 @@ var systemBypassRemoveSubcommand = {
3546
3548
  description: "Remove a system bypass rule so the IP is no longer exempt from firewall checks. Takes effect immediately (no publish required)",
3547
3549
  arguments: [{ name: "ip", required: true }],
3548
3550
  options: [
3551
+ projectOption,
3549
3552
  {
3550
3553
  name: "domain",
3551
3554
  shorthand: null,
@@ -3594,6 +3597,7 @@ var ipBlocksListSubcommand = {
3594
3597
  description: "List all IP blocking rules, including any unpublished draft changes",
3595
3598
  arguments: [],
3596
3599
  options: [
3600
+ projectOption,
3597
3601
  {
3598
3602
  name: "json",
3599
3603
  shorthand: null,
@@ -3615,6 +3619,7 @@ var ipBlocksBlockSubcommand = {
3615
3619
  description: "Block an IP address or CIDR range from accessing your project. Stages a draft change \u2014 run `publish` to make it live",
3616
3620
  arguments: [{ name: "ip", required: true }],
3617
3621
  options: [
3622
+ projectOption,
3618
3623
  {
3619
3624
  name: "hostname",
3620
3625
  shorthand: null,
@@ -3652,6 +3657,7 @@ var ipBlocksUnblockSubcommand = {
3652
3657
  description: "Remove an IP blocking rule to allow the address to access your project again. Stages a draft change \u2014 run `publish` to make it live",
3653
3658
  arguments: [{ name: "id-or-ip", required: true }],
3654
3659
  options: [
3660
+ projectOption,
3655
3661
  {
3656
3662
  name: "hostname",
3657
3663
  shorthand: null,
@@ -3708,6 +3714,7 @@ var rulesListSubcommand2 = {
3708
3714
  description: "List all custom firewall rules, including any unpublished draft changes",
3709
3715
  arguments: [],
3710
3716
  options: [
3717
+ projectOption,
3711
3718
  {
3712
3719
  name: "expand",
3713
3720
  shorthand: "e",
@@ -3740,6 +3747,7 @@ var rulesInspectSubcommand = {
3740
3747
  description: "Show the full configuration of a custom firewall rule, including conditions, action, and rate limit settings",
3741
3748
  arguments: [{ name: "name-or-id", required: true }],
3742
3749
  options: [
3750
+ projectOption,
3743
3751
  {
3744
3752
  name: "json",
3745
3753
  shorthand: null,
@@ -3765,6 +3773,7 @@ var rulesAddSubcommand2 = {
3765
3773
  description: "Create a new custom firewall rule using AI, an interactive builder, JSON, or command-line flags. Stages a draft change \u2014 run `publish` to make it live",
3766
3774
  arguments: [{ name: "name", required: false }],
3767
3775
  options: [
3776
+ projectOption,
3768
3777
  {
3769
3778
  name: "ai",
3770
3779
  shorthand: null,
@@ -3901,6 +3910,7 @@ var rulesEditSubcommand2 = {
3901
3910
  description: "Edit an existing custom firewall rule using AI, an interactive editor, JSON, or command-line flags. Stages a draft change \u2014 run `publish` to make it live",
3902
3911
  arguments: [{ name: "name-or-id", required: true }],
3903
3912
  options: [
3913
+ projectOption,
3904
3914
  {
3905
3915
  name: "ai",
3906
3916
  shorthand: null,
@@ -4050,7 +4060,7 @@ var rulesEnableSubcommand = {
4050
4060
  aliases: [],
4051
4061
  description: "Enable a disabled custom firewall rule. Stages a draft change \u2014 run `publish` to make it live",
4052
4062
  arguments: [{ name: "name-or-id", required: true }],
4053
- options: [yesOption],
4063
+ options: [projectOption, yesOption],
4054
4064
  examples: [
4055
4065
  {
4056
4066
  name: "Enable a rule",
@@ -4063,7 +4073,7 @@ var rulesDisableSubcommand = {
4063
4073
  aliases: [],
4064
4074
  description: "Disable a custom firewall rule without removing it. Stages a draft change \u2014 run `publish` to make it live",
4065
4075
  arguments: [{ name: "name-or-id", required: true }],
4066
- options: [yesOption],
4076
+ options: [projectOption, yesOption],
4067
4077
  examples: [
4068
4078
  {
4069
4079
  name: "Disable a rule",
@@ -4076,7 +4086,7 @@ var rulesRemoveSubcommand2 = {
4076
4086
  aliases: ["rm", "delete"],
4077
4087
  description: "Remove a custom firewall rule. Stages a draft change \u2014 run `publish` to make it live",
4078
4088
  arguments: [{ name: "name-or-id", required: true }],
4079
- options: [yesOption],
4089
+ options: [projectOption, yesOption],
4080
4090
  examples: [
4081
4091
  {
4082
4092
  name: "Remove a rule",
@@ -4090,6 +4100,7 @@ var rulesReorderSubcommand = {
4090
4100
  description: "Change the priority order of a custom firewall rule. Stages a draft change \u2014 run `publish` to make it live",
4091
4101
  arguments: [{ name: "name-or-id", required: true }],
4092
4102
  options: [
4103
+ projectOption,
4093
4104
  {
4094
4105
  name: "position",
4095
4106
  shorthand: null,
@@ -4165,6 +4176,7 @@ var attackModeEnableSubcommand = {
4165
4176
  description: "Enable attack mode \u2014 all visitors will be shown a verification challenge before accessing your site. Takes effect immediately (no publish required)",
4166
4177
  arguments: [],
4167
4178
  options: [
4179
+ projectOption,
4168
4180
  {
4169
4181
  name: "duration",
4170
4182
  shorthand: null,
@@ -4190,7 +4202,7 @@ var attackModeDisableSubcommand = {
4190
4202
  aliases: [],
4191
4203
  description: "Disable attack mode \u2014 visitors will no longer be challenged. Takes effect immediately (no publish required)",
4192
4204
  arguments: [],
4193
- options: [yesOption],
4205
+ options: [projectOption, yesOption],
4194
4206
  examples: [
4195
4207
  {
4196
4208
  name: "Disable attack mode",
@@ -4221,7 +4233,7 @@ var systemMitigationsPauseSubcommand = {
4221
4233
  aliases: [],
4222
4234
  description: "Pause automatic DDoS protection and system-level traffic filtering for 24 hours. Takes effect immediately (no publish required)",
4223
4235
  arguments: [],
4224
- options: [yesOption],
4236
+ options: [projectOption, yesOption],
4225
4237
  examples: [
4226
4238
  {
4227
4239
  name: "Pause system mitigations",
@@ -4234,7 +4246,7 @@ var systemMitigationsResumeSubcommand = {
4234
4246
  aliases: [],
4235
4247
  description: "Resume automatic DDoS protection and system-level traffic filtering. Takes effect immediately (no publish required)",
4236
4248
  arguments: [],
4237
- options: [yesOption],
4249
+ options: [projectOption, yesOption],
4238
4250
  examples: [
4239
4251
  {
4240
4252
  name: "Resume system mitigations",
@@ -5028,6 +5040,7 @@ var rulesListSubcommand3 = {
5028
5040
  }
5029
5041
  ],
5030
5042
  options: [
5043
+ projectOption,
5031
5044
  {
5032
5045
  name: "environment",
5033
5046
  shorthand: "e",
@@ -5066,6 +5079,7 @@ var rulesAddSubcommand3 = {
5066
5079
  }
5067
5080
  ],
5068
5081
  options: [
5082
+ projectOption,
5069
5083
  {
5070
5084
  name: "environment",
5071
5085
  shorthand: "e",
@@ -5123,6 +5137,7 @@ var rulesUpdateSubcommand = {
5123
5137
  }
5124
5138
  ],
5125
5139
  options: [
5140
+ projectOption,
5126
5141
  {
5127
5142
  name: "environment",
5128
5143
  shorthand: "e",
@@ -5168,6 +5183,7 @@ var rulesRemoveSubcommand3 = {
5168
5183
  }
5169
5184
  ],
5170
5185
  options: [
5186
+ projectOption,
5171
5187
  {
5172
5188
  name: "environment",
5173
5189
  shorthand: "e",
@@ -5200,6 +5216,7 @@ var rulesMoveSubcommand = {
5200
5216
  }
5201
5217
  ],
5202
5218
  options: [
5219
+ projectOption,
5203
5220
  {
5204
5221
  name: "environment",
5205
5222
  shorthand: "e",
@@ -5848,7 +5865,7 @@ var connectSubcommand = {
5848
5865
  required: false
5849
5866
  }
5850
5867
  ],
5851
- options: [yesOption, confirmOption],
5868
+ options: [projectOption, yesOption, confirmOption],
5852
5869
  examples: [
5853
5870
  {
5854
5871
  name: "Connect your Vercel Project to your Git repository defined in your local `.git` config",
@@ -5865,7 +5882,7 @@ var disconnectSubcommand = {
5865
5882
  aliases: [],
5866
5883
  description: "Disconnect the Git repository from your Vercel Project",
5867
5884
  arguments: [],
5868
- options: [yesOption, confirmOption],
5885
+ options: [projectOption, yesOption, confirmOption],
5869
5886
  examples: [
5870
5887
  {
5871
5888
  name: "Disconnect the Git repository",
@@ -8317,6 +8334,7 @@ var listSubcommand14 = {
8317
8334
  description: "List all redirects for the current project. These redirects apply to all deployments and environments. There may also be redirects defined in a deployment that are not listed here.",
8318
8335
  arguments: [],
8319
8336
  options: [
8337
+ projectOption,
8320
8338
  {
8321
8339
  name: "search",
8322
8340
  description: "Search for redirects by source or destination",
@@ -8381,7 +8399,7 @@ var listVersionsSubcommand = {
8381
8399
  aliases: ["ls-versions"],
8382
8400
  description: "List all versions of redirects",
8383
8401
  arguments: [],
8384
- options: [],
8402
+ options: [projectOption],
8385
8403
  examples: [
8386
8404
  {
8387
8405
  name: "List all redirect versions",
@@ -8404,6 +8422,7 @@ var addSubcommand9 = {
8404
8422
  }
8405
8423
  ],
8406
8424
  options: [
8425
+ projectOption,
8407
8426
  {
8408
8427
  name: "status",
8409
8428
  description: "HTTP status code (301, 302, 307, or 308)",
@@ -8469,6 +8488,7 @@ var uploadSubcommand = {
8469
8488
  }
8470
8489
  ],
8471
8490
  options: [
8491
+ projectOption,
8472
8492
  {
8473
8493
  ...yesOption,
8474
8494
  description: "Skip confirmation prompt"
@@ -8511,6 +8531,7 @@ var removeSubcommand12 = {
8511
8531
  }
8512
8532
  ],
8513
8533
  options: [
8534
+ projectOption,
8514
8535
  {
8515
8536
  ...yesOption,
8516
8537
  description: "Skip the confirmation prompt when removing a redirect"
@@ -8534,6 +8555,7 @@ var promoteSubcommand = {
8534
8555
  }
8535
8556
  ],
8536
8557
  options: [
8558
+ projectOption,
8537
8559
  {
8538
8560
  ...yesOption,
8539
8561
  description: "Skip the confirmation prompt when promoting"
@@ -8557,6 +8579,7 @@ var restoreSubcommand = {
8557
8579
  }
8558
8580
  ],
8559
8581
  options: [
8582
+ projectOption,
8560
8583
  {
8561
8584
  ...yesOption,
8562
8585
  description: "Skip the confirmation prompt when restoring"
@@ -8972,6 +8995,7 @@ var listSubcommand15 = {
8972
8995
  arguments: [],
8973
8996
  options: [
8974
8997
  formatOption,
8998
+ projectOption,
8975
8999
  {
8976
9000
  ...yesOption,
8977
9001
  description: "Skip confirmation when linking is required (e.g. in non-interactive mode)"
@@ -6,19 +6,17 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  resolveAlertsScope
9
- } from "./chunk-7OJJKCSW.js";
9
+ } from "./chunk-2C2JJTAM.js";
10
10
  import {
11
11
  handleValidationError,
12
12
  outputError,
13
13
  validateAllProjectMutualExclusivity
14
14
  } from "./chunk-BUZRVER7.js";
15
15
  import {
16
- AGENT_REASON
17
- } from "./chunk-IC4YEIGW.js";
18
- import {
16
+ AGENT_REASON,
19
17
  buildCommandWithGlobalFlags,
20
18
  outputAgentError
21
- } from "./chunk-CB3I3QIT.js";
19
+ } from "./chunk-UDWRZXIT.js";
22
20
 
23
21
  // src/commands/alerts/rules/parse-scope.ts
24
22
  async function parseRulesFlagsAndScope(client, flags, jsonOutput) {