vercel 57.0.0 → 58.1.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 (100) hide show
  1. package/dist/chunks/{add-7M577U56.js → add-QKP6ZCHQ.js} +7 -7
  2. package/dist/chunks/{add-YRZTDNXX.js → add-WKV7KU4Y.js} +10 -8
  3. package/dist/chunks/build-ZXEK6YEA.js +240 -0
  4. package/dist/chunks/{chunk-4PGF367U.js → chunk-2D22CMQ7.js} +21 -3
  5. package/dist/chunks/{chunk-YA3WQFLY.js → chunk-32IPC6RB.js} +1 -1
  6. package/dist/chunks/{chunk-HD7B425F.js → chunk-3YARBN7P.js} +4 -4
  7. package/dist/chunks/{chunk-QZD5DKUR.js → chunk-4I7DTZAJ.js} +2 -2
  8. package/dist/chunks/{chunk-555WJSO5.js → chunk-4LSERVQQ.js} +4 -4
  9. package/dist/chunks/{chunk-2EDWKVNP.js → chunk-552YY6QY.js} +25 -11
  10. package/dist/chunks/{chunk-LMHT3QR3.js → chunk-5AG7MR7W.js} +3 -3
  11. package/dist/chunks/{chunk-A2TYQBX2.js → chunk-6QUKJKFX.js} +509 -242
  12. package/dist/chunks/{chunk-KCF6S3XF.js → chunk-75MDJ6TK.js} +10 -6
  13. package/dist/chunks/{chunk-FHEMFAHB.js → chunk-AX3N4MO2.js} +15 -9
  14. package/dist/chunks/{chunk-NRNMT43R.js → chunk-BAUVB2VF.js} +5 -11
  15. package/dist/chunks/{chunk-F7X55TOY.js → chunk-C267R2FA.js} +6 -5
  16. package/dist/chunks/{chunk-RAFH25WW.js → chunk-CSI7GEDD.js} +4 -4
  17. package/dist/chunks/{chunk-T4NODP6Y.js → chunk-CXICXWXJ.js} +3 -3
  18. package/dist/chunks/{chunk-TBR2Q37Y.js → chunk-DKS4XDVC.js} +248 -47
  19. package/dist/chunks/{chunk-DWMH5M4Q.js → chunk-E4LXCO7U.js} +1 -1
  20. package/dist/chunks/{chunk-ZVLPUREX.js → chunk-FBPCJV72.js} +2 -2
  21. package/dist/chunks/{chunk-VZSZBD4V.js → chunk-FR352QKR.js} +1 -1
  22. package/dist/chunks/{chunk-MAHINYBW.js → chunk-HXTQVMJZ.js} +2 -2
  23. package/dist/chunks/{chunk-NH43BFJ3.js → chunk-JA3QX2H6.js} +2 -2
  24. package/dist/chunks/{chunk-IOAZNR6Z.js → chunk-JNP3FQR3.js} +1 -1
  25. package/dist/chunks/{chunk-YOZCJHLZ.js → chunk-KLNWR2JI.js} +7 -7
  26. package/dist/chunks/{chunk-LHFNIZ2P.js → chunk-KY3ZOYJW.js} +4 -2
  27. package/dist/chunks/{chunk-NZRWTCRM.js → chunk-LA3BQQQK.js} +1 -1
  28. package/dist/chunks/{chunk-R5FOIIHT.js → chunk-LXA2GZ7U.js} +1 -1
  29. package/dist/chunks/{chunk-GIL3VAUR.js → chunk-NGYOR3MN.js} +5 -3
  30. package/dist/chunks/{chunk-3PKFXNJZ.js → chunk-NYURBHZJ.js} +7 -5
  31. package/dist/chunks/{chunk-F5PQWDOC.js → chunk-OG7DIS52.js} +1 -1
  32. package/dist/chunks/{chunk-3242RXCN.js → chunk-OVW5WUCR.js} +1 -1
  33. package/dist/chunks/{chunk-DMSLNAVH.js → chunk-P7IO46BQ.js} +2 -2
  34. package/dist/chunks/{chunk-MIFDRYTN.js → chunk-QCB22TQG.js} +2 -2
  35. package/dist/chunks/chunk-RBIFXFZX.js +52 -0
  36. package/dist/chunks/{chunk-SZXT3PDQ.js → chunk-RL7X7JGK.js} +1 -1
  37. package/dist/chunks/{chunk-UDWRZXIT.js → chunk-S7LXRKLD.js} +2 -1
  38. package/dist/chunks/{chunk-FYQPTH5C.js → chunk-TCBOCSWF.js} +7 -5
  39. package/dist/chunks/{chunk-OF2GNB42.js → chunk-TF627KEI.js} +1 -1
  40. package/dist/chunks/{chunk-4G6QZSBL.js → chunk-TPB4F5XN.js} +6 -4
  41. package/dist/chunks/{chunk-KSSNLCL4.js → chunk-U6PPDPR5.js} +2 -3
  42. package/dist/chunks/{chunk-3VS4DTAU.js → chunk-V6WHZAPP.js} +101 -11
  43. package/dist/chunks/{chunk-OGG6UBXK.js → chunk-VSMCQSGH.js} +1 -1
  44. package/dist/chunks/{chunk-3PGXYIKC.js → chunk-XAWGGWSG.js} +2 -2
  45. package/dist/chunks/{chunk-2MJROFVC.js → chunk-XTLNPNWY.js} +8 -5
  46. package/dist/chunks/{chunk-GP5VCTEU.js → chunk-XTQADJ6S.js} +207 -4
  47. package/dist/chunks/{chunk-RYO6FJFB.js → chunk-YITWM37U.js} +2 -2
  48. package/dist/chunks/{compile-vercel-config-3OHO3TJA.js → compile-vercel-config-AFGCQEYG.js} +4 -4
  49. package/dist/chunks/config-validator.mjs +1 -1
  50. package/dist/chunks/{delete-VOSJLNEA.js → delete-UGSJQBE7.js} +6 -6
  51. package/dist/chunks/{delete-3DZOCWCC.js → delete-Y5LNEZXI.js} +6 -6
  52. package/dist/chunks/{disable-LQDEVRQF.js → disable-IF3AHKJD.js} +6 -6
  53. package/dist/chunks/{discard-RGV4JKXQ.js → discard-Y6GZBIHJ.js} +6 -6
  54. package/dist/chunks/{edit-SFIEOQ24.js → edit-6TGJKUI5.js} +7 -7
  55. package/dist/chunks/{edit-UPZPI54L.js → edit-HNMKZ3YT.js} +6 -6
  56. package/dist/chunks/{enable-6UVH35WC.js → enable-SE4QM4X3.js} +6 -6
  57. package/dist/chunks/{export-6CEG3CK7.js → export-5AYL7HCJ.js} +6 -6
  58. package/dist/chunks/{image-CQRCD2OE.js → image-6BYNQVGW.js} +5 -5
  59. package/dist/chunks/{inspect-ZFRY3X3H.js → inspect-3KCFHDWA.js} +11 -11
  60. package/dist/chunks/{inspect-4ZAH3RFT.js → inspect-DPTRYDFH.js} +7 -7
  61. package/dist/chunks/{inspect-EXQBIAFF.js → inspect-FGYXO4K5.js} +10 -10
  62. package/dist/chunks/{inspect-K5ZMQG7X.js → inspect-LTHZUXA2.js} +10 -10
  63. package/dist/chunks/{inspect-UM3LDRPV.js → inspect-MA36GG73.js} +10 -10
  64. package/dist/chunks/{list-4DRVM7Q4.js → list-BTOXZBQK.js} +10 -10
  65. package/dist/chunks/{list-KCUHD4OA.js → list-OCW34SRV.js} +7 -7
  66. package/dist/chunks/{list-FJCBOCCA.js → list-VTQZSIIT.js} +5 -5
  67. package/dist/chunks/{login-DFGYNU3K.js → login-VSXLK5ZU.js} +18 -50
  68. package/dist/chunks/{ls-RHEQ6YQB.js → ls-3UA57DZZ.js} +10 -10
  69. package/dist/chunks/{ls-CG6A7UXF.js → ls-76YTWNKD.js} +11 -11
  70. package/dist/chunks/{ls-4QHHVXXD.js → ls-DRI2AOFB.js} +12 -12
  71. package/dist/chunks/{ls-34NCZKBE.js → ls-ZBLTJ5RE.js} +11 -11
  72. package/dist/chunks/{open-E3XADEMX.js → open-DVKAE5HP.js} +6 -6
  73. package/dist/chunks/{publish-Z3AQRUCS.js → publish-F5C4ZA7M.js} +6 -6
  74. package/dist/chunks/push-PKJFQTLO.js +180 -0
  75. package/dist/chunks/{query-3EV66DO3.js → query-GT5LCT45.js} +9 -9
  76. package/dist/chunks/{reorder-VA5E5ZJT.js → reorder-AQW4XFDS.js} +6 -6
  77. package/dist/chunks/{reply-SNSCNKAW.js → reply-FI7SADGU.js} +6 -6
  78. package/dist/chunks/{resolve-6ZX4RTXX.js → resolve-C5G7JJZJ.js} +6 -6
  79. package/dist/chunks/{restore-NEHI5B5P.js → restore-5TLSHQOS.js} +6 -6
  80. package/dist/chunks/{rm-22B22E47.js → rm-2EN66OYO.js} +8 -6
  81. package/dist/chunks/{rm-FR6KE744.js → rm-C37BHGQI.js} +7 -7
  82. package/dist/chunks/{rm-E5ZVLAKO.js → rm-L7OQPCIE.js} +10 -8
  83. package/dist/chunks/{rule-inspect-DMP2CKJQ.js → rule-inspect-V5DRHOTZ.js} +10 -10
  84. package/dist/chunks/{rules-EYGXEI2Z.js → rules-5XEMLN5G.js} +8 -8
  85. package/dist/chunks/{schema-2IIWOBSQ.js → schema-UEOZVBY5.js} +8 -8
  86. package/dist/chunks/{tags-ZDVYRHAY.js → tags-ZGANV4YD.js} +4 -4
  87. package/dist/chunks/{types-QKLIFDDP.js → types-IKWGLSDF.js} +4 -4
  88. package/dist/chunks/{update-QH4DQMZV.js → update-DHWSMSMS.js} +7 -7
  89. package/dist/commands/build/index.js +12 -16
  90. package/dist/commands/deploy/index.js +29 -24
  91. package/dist/commands/dev/index.js +25 -12
  92. package/dist/commands/env/index.js +28 -23
  93. package/dist/commands/link/index.js +21 -21
  94. package/dist/commands/list/index.js +13 -8
  95. package/dist/commands-bulk.js +3659 -2183
  96. package/dist/help.js +1 -1
  97. package/dist/index.js +24 -23
  98. package/dist/version.mjs +1 -1
  99. package/package.json +34 -92
  100. package/dist/chunks/chunk-6OMC3HOW.js +0 -73
@@ -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-3242RXCN.js";
9
+ } from "./chunk-OVW5WUCR.js";
10
10
  import {
11
11
  autoInstallVercelPlugin
12
12
  } from "./chunk-NJUPUGOE.js";
@@ -15,30 +15,30 @@ import {
15
15
  } from "./chunk-64IF634X.js";
16
16
  import {
17
17
  ensureLink
18
- } from "./chunk-HD7B425F.js";
18
+ } from "./chunk-3YARBN7P.js";
19
19
  import {
20
20
  pullCommand
21
- } from "./chunk-NH43BFJ3.js";
21
+ } from "./chunk-JA3QX2H6.js";
22
22
  import {
23
23
  help
24
- } from "./chunk-DMSLNAVH.js";
24
+ } from "./chunk-P7IO46BQ.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-TBR2Q37Y.js";
31
+ } from "./chunk-DKS4XDVC.js";
32
32
  import {
33
33
  TelemetryClient
34
34
  } from "./chunk-ECCWJHC6.js";
35
35
  import {
36
36
  parseArguments,
37
37
  printError
38
- } from "./chunk-SZXT3PDQ.js";
38
+ } from "./chunk-RL7X7JGK.js";
39
39
  import {
40
40
  getFlagsSpecification
41
- } from "./chunk-KSSNLCL4.js";
41
+ } from "./chunk-U6PPDPR5.js";
42
42
  import {
43
43
  emoji,
44
44
  output_manager_default,
@@ -8,11 +8,12 @@ import {
8
8
  allOption,
9
9
  confirmOption,
10
10
  formatOption,
11
+ jsonOption,
11
12
  limitOption,
12
13
  nextOption,
13
14
  packageName,
14
15
  yesOption
15
- } from "./chunk-KSSNLCL4.js";
16
+ } from "./chunk-U6PPDPR5.js";
16
17
 
17
18
  // src/commands/list/command.ts
18
19
  var listCommand = {
@@ -65,7 +66,8 @@ var listCommand = {
65
66
  { name: "prod", shorthand: null, type: Boolean, deprecated: false },
66
67
  yesOption,
67
68
  confirmOption,
68
- formatOption
69
+ formatOption,
70
+ jsonOption
69
71
  ],
70
72
  examples: [
71
73
  {
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_string_width
9
- } from "./chunk-SZXT3PDQ.js";
9
+ } from "./chunk-RL7X7JGK.js";
10
10
  import {
11
11
  __commonJS,
12
12
  __require,
@@ -65,7 +65,7 @@ var help = () => `
65
65
  connect [cmd] Manage connectors [beta]
66
66
  contract Show contract information for billing periods
67
67
  cron | crons [cmd] Manage cron jobs for a project [beta]
68
- curl [path] cURL requests to your linked project's deployment [beta]
68
+ curl [url|path] cURL requests with automatic deployment protection bypass [beta]
69
69
  deploy-hooks [cmd] Manage deploy hooks for Git-triggered builds
70
70
  dns [name] Manages your DNS records
71
71
  domains [name] Manages your domain names
@@ -6,10 +6,11 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  formatOption,
9
+ jsonOption,
9
10
  limitOption,
10
11
  packageName,
11
12
  projectOption
12
- } from "./chunk-KSSNLCL4.js";
13
+ } from "./chunk-U6PPDPR5.js";
13
14
 
14
15
  // src/commands/vcr/tags/command.ts
15
16
  var projectScopeOption = {
@@ -59,7 +60,8 @@ var tagsLsSubcommand = {
59
60
  },
60
61
  limitOption,
61
62
  cursorOption,
62
- formatOption
63
+ formatOption,
64
+ jsonOption
63
65
  ],
64
66
  examples: [
65
67
  {
@@ -82,7 +84,7 @@ var tagsInspectSubcommand = {
82
84
  required: true
83
85
  }
84
86
  ],
85
- options: [projectScopeOption, formatOption],
87
+ options: [projectScopeOption, formatOption, jsonOption],
86
88
  examples: [
87
89
  {
88
90
  name: "Inspect a tag by name",
@@ -6,11 +6,12 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  formatOption,
9
+ jsonOption,
9
10
  limitOption,
10
11
  nextOption,
11
12
  packageName,
12
13
  projectOption
13
- } from "./chunk-KSSNLCL4.js";
14
+ } from "./chunk-U6PPDPR5.js";
14
15
 
15
16
  // src/commands/activity/command.ts
16
17
  var typesSubcommand = {
@@ -18,7 +19,7 @@ var typesSubcommand = {
18
19
  aliases: [],
19
20
  description: "List available event types with descriptions.",
20
21
  arguments: [],
21
- options: [formatOption],
22
+ options: [formatOption, jsonOption],
22
23
  examples: [
23
24
  {
24
25
  name: "List all event types",
@@ -26,7 +27,7 @@ var typesSubcommand = {
26
27
  },
27
28
  {
28
29
  name: "Output JSON",
29
- value: `${packageName} activity types --format json`
30
+ value: `${packageName} activity types --json`
30
31
  }
31
32
  ]
32
33
  };
@@ -89,7 +90,8 @@ var activityCommand = {
89
90
  },
90
91
  limitOption,
91
92
  nextOption,
92
- formatOption
93
+ formatOption,
94
+ jsonOption
93
95
  ],
94
96
  examples: [
95
97
  {
@@ -110,7 +112,7 @@ var activityCommand = {
110
112
  },
111
113
  {
112
114
  name: "Output JSON",
113
- value: `${packageName} activity --format json | jq '.events[]'`
115
+ value: `${packageName} activity --json | jq '.events[]'`
114
116
  },
115
117
  {
116
118
  name: "List activity event types",
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  ALIGNED_LABEL_WIDTH
9
- } from "./chunk-TBR2Q37Y.js";
9
+ } from "./chunk-DKS4XDVC.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-TBR2Q37Y.js";
11
+ } from "./chunk-DKS4XDVC.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-NZRWTCRM.js";
10
+ } from "./chunk-LA3BQQQK.js";
11
11
  import {
12
12
  require_dist
13
13
  } from "./chunk-ECCWJHC6.js";
14
14
  import {
15
15
  globalCommandOptions
16
- } from "./chunk-KSSNLCL4.js";
16
+ } from "./chunk-U6PPDPR5.js";
17
17
  import {
18
18
  require_source
19
19
  } from "./chunk-S7KYDPEM.js";
@@ -6,11 +6,11 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  STANDARD_ENVIRONMENTS
9
- } from "./chunk-TBR2Q37Y.js";
9
+ } from "./chunk-DKS4XDVC.js";
10
10
  import {
11
11
  getCommandName,
12
12
  require_lib
13
- } from "./chunk-KSSNLCL4.js";
13
+ } from "./chunk-U6PPDPR5.js";
14
14
  import {
15
15
  output_manager_default
16
16
  } from "./chunk-OX7KI3LF.js";
@@ -0,0 +1,52 @@
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/commands/vcr/utils/image-ref.ts
9
+ var REPOSITORY_PATTERN = /^[a-z0-9]+(?:(?:\.|_|__|-+)[a-z0-9]+)*$/;
10
+ var TAG_PATTERN = /^[a-zA-Z0-9_][a-zA-Z0-9._-]{0,127}$/;
11
+ var DEFAULT_TAG = "latest";
12
+ function parseNameArg(nameArg, defaultRepo) {
13
+ if (!nameArg) {
14
+ return { repository: defaultRepo, tag: void 0 };
15
+ }
16
+ if (nameArg.includes("/")) {
17
+ return {
18
+ error: `Invalid image name "${nameArg}". Provide only a repository name (optionally with :tag); the registry, team, and project are added automatically.`
19
+ };
20
+ }
21
+ const colon = nameArg.lastIndexOf(":");
22
+ if (colon === -1) {
23
+ return { repository: nameArg, tag: void 0 };
24
+ }
25
+ const repository = nameArg.slice(0, colon);
26
+ const tag = nameArg.slice(colon + 1);
27
+ if (!repository) {
28
+ return {
29
+ error: `Invalid image name "${nameArg}". Missing repository name before ":".`
30
+ };
31
+ }
32
+ return { repository, tag };
33
+ }
34
+ function validateImageParts(parts) {
35
+ if (!REPOSITORY_PATTERN.test(parts.repository)) {
36
+ return `Invalid repository name "${parts.repository}". Use lowercase letters, digits, and separators (\`.\` \`_\` \`-\`), for example "my-app". Pass a valid name explicitly, e.g. \`... my-app\`.`;
37
+ }
38
+ if (parts.tag !== void 0 && !TAG_PATTERN.test(parts.tag)) {
39
+ return `Invalid tag "${parts.tag}". Tags may contain letters, digits, "_", ".", "-" and be up to 128 characters.`;
40
+ }
41
+ return void 0;
42
+ }
43
+ function buildRepositoryReference(parts) {
44
+ return `${parts.registry}/${parts.teamSlug}/${parts.projectName}/${parts.repository}`;
45
+ }
46
+
47
+ export {
48
+ DEFAULT_TAG,
49
+ parseNameArg,
50
+ validateImageParts,
51
+ buildRepositoryReference
52
+ };
@@ -9,7 +9,7 @@ import {
9
9
  getCommandName,
10
10
  parseRetryAfterHeaderAsMillis,
11
11
  require_bytes
12
- } from "./chunk-KSSNLCL4.js";
12
+ } from "./chunk-U6PPDPR5.js";
13
13
  import {
14
14
  output_manager_default
15
15
  } from "./chunk-OX7KI3LF.js";
@@ -12,7 +12,7 @@ import {
12
12
  packageName,
13
13
  stripSensitiveAuthArgs,
14
14
  suggestionFlagTakesSeparateValue
15
- } from "./chunk-KSSNLCL4.js";
15
+ } from "./chunk-U6PPDPR5.js";
16
16
  import {
17
17
  require_dist
18
18
  } from "./chunk-OX7KI3LF.js";
@@ -613,6 +613,7 @@ var AGENT_REASON = {
613
613
  INVALID_BUDGET: "invalid_budget",
614
614
  INVALID_REFRESH_PERIOD: "invalid_refresh_period",
615
615
  INVALID_EXPIRATION: "invalid_expiration",
616
+ INVALID_ALERT_THRESHOLDS: "invalid_alert_thresholds",
616
617
  /**
617
618
  * Every selected agent needs explicit `--agent`/`--all` consent (see the
618
619
  * payload's skipped[]). `--yes` does not grant it, so this is deliberately
@@ -6,11 +6,12 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  formatOption,
9
+ jsonOption,
9
10
  limitOption,
10
11
  packageName,
11
12
  projectOption,
12
13
  yesOption
13
- } from "./chunk-KSSNLCL4.js";
14
+ } from "./chunk-U6PPDPR5.js";
14
15
 
15
16
  // src/commands/vcr/image/command.ts
16
17
  var projectScopeOption = {
@@ -47,7 +48,8 @@ var imageLsSubcommand = {
47
48
  },
48
49
  limitOption,
49
50
  cursorOption,
50
- formatOption
51
+ formatOption,
52
+ jsonOption
51
53
  ],
52
54
  examples: [
53
55
  {
@@ -56,7 +58,7 @@ var imageLsSubcommand = {
56
58
  },
57
59
  {
58
60
  name: "List untagged images as JSON",
59
- value: `${packageName} vcr image ls my-app --untagged --format json`
61
+ value: `${packageName} vcr image ls my-app --untagged --json`
60
62
  }
61
63
  ]
62
64
  };
@@ -74,7 +76,7 @@ var imageInspectSubcommand = {
74
76
  required: true
75
77
  }
76
78
  ],
77
- options: [projectScopeOption, formatOption],
79
+ options: [projectScopeOption, formatOption, jsonOption],
78
80
  examples: [
79
81
  {
80
82
  name: "Inspect an image by id",
@@ -96,7 +98,7 @@ var imageRmSubcommand = {
96
98
  required: true
97
99
  }
98
100
  ],
99
- options: [projectScopeOption, yesOption, formatOption],
101
+ options: [projectScopeOption, yesOption, formatOption, jsonOption],
100
102
  examples: [
101
103
  {
102
104
  name: "Delete an image by id",
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_strip_ansi
9
- } from "./chunk-SZXT3PDQ.js";
9
+ } from "./chunk-RL7X7JGK.js";
10
10
  import {
11
11
  __toESM
12
12
  } from "./chunk-TZ2YI2VH.js";
@@ -6,9 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  formatOption,
9
+ jsonOption,
9
10
  packageName,
10
11
  projectOption
11
- } from "./chunk-KSSNLCL4.js";
12
+ } from "./chunk-U6PPDPR5.js";
12
13
 
13
14
  // src/commands/metrics/command.ts
14
15
  var schemaSubcommand = {
@@ -16,7 +17,7 @@ var schemaSubcommand = {
16
17
  aliases: [],
17
18
  description: "List available metrics or inspect a specific metric.",
18
19
  arguments: [{ name: "metric-or-prefix", required: false }],
19
- options: [formatOption],
20
+ options: [formatOption, jsonOption],
20
21
  examples: [
21
22
  {
22
23
  name: "List all metrics",
@@ -28,7 +29,7 @@ var schemaSubcommand = {
28
29
  },
29
30
  {
30
31
  name: "Schema as JSON for agents",
31
- value: `${packageName} metrics schema vercel.request.count --format=json`
32
+ value: `${packageName} metrics schema vercel.request.count --json`
32
33
  }
33
34
  ]
34
35
  };
@@ -151,7 +152,8 @@ var metricsCommand = {
151
152
  deprecated: false,
152
153
  description: "Query across all projects for the team"
153
154
  },
154
- formatOption
155
+ formatOption,
156
+ jsonOption
155
157
  ],
156
158
  examples: [
157
159
  {
@@ -511,15 +511,14 @@ var formatOption = {
511
511
  shorthand: "F",
512
512
  type: String,
513
513
  argument: "FORMAT",
514
- description: "Specify the output format (json)",
515
514
  deprecated: false
516
515
  };
517
516
  var jsonOption = {
518
517
  name: "json",
519
518
  shorthand: null,
520
519
  type: Boolean,
521
- deprecated: true,
522
- description: "DEPRECATED: Use --format=json instead"
520
+ deprecated: false,
521
+ description: "Output as JSON"
523
522
  };
524
523
  var allOption = {
525
524
  name: "all",
@@ -4,19 +4,20 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import {
8
- tagsAggregateCommand
9
- } from "./chunk-GIL3VAUR.js";
10
7
  import {
11
8
  imageAggregateCommand
12
- } from "./chunk-FYQPTH5C.js";
9
+ } from "./chunk-TCBOCSWF.js";
10
+ import {
11
+ tagsAggregateCommand
12
+ } from "./chunk-NGYOR3MN.js";
13
13
  import {
14
14
  formatOption,
15
+ jsonOption,
15
16
  limitOption,
16
17
  packageName,
17
18
  projectOption,
18
19
  yesOption
19
- } from "./chunk-KSSNLCL4.js";
20
+ } from "./chunk-U6PPDPR5.js";
20
21
 
21
22
  // src/commands/vcr/command.ts
22
23
  var projectScopeOption = {
@@ -32,12 +33,33 @@ var cursorOption = {
32
33
  description: "Cursor from a previous page to continue listing from",
33
34
  argument: "STRING"
34
35
  };
36
+ var platformOption = {
37
+ name: "platform",
38
+ shorthand: null,
39
+ type: String,
40
+ deprecated: false,
41
+ description: "Target platform for the build (defaults to linux/amd64).",
42
+ argument: "PLATFORM"
43
+ };
44
+ var pushOption = {
45
+ name: "push",
46
+ shorthand: null,
47
+ type: Boolean,
48
+ deprecated: false,
49
+ description: "Push the image after building. With Docker this builds and pushes in one step (Buildx enables zstd compression); Podman and Buildah build, then push with zstd compression."
50
+ };
35
51
  var listSubcommand = {
36
52
  name: "ls",
37
53
  aliases: ["list"],
38
54
  description: "List container registry repositories for a project",
39
55
  arguments: [],
40
- options: [projectScopeOption, limitOption, cursorOption, formatOption],
56
+ options: [
57
+ projectScopeOption,
58
+ limitOption,
59
+ cursorOption,
60
+ formatOption,
61
+ jsonOption
62
+ ],
41
63
  examples: [
42
64
  {
43
65
  name: "List repositories in the linked project",
@@ -45,7 +67,7 @@ var listSubcommand = {
45
67
  },
46
68
  {
47
69
  name: "List repositories for a specific project as JSON",
48
- value: `${packageName} vcr ls --project my-app --format json`
70
+ value: `${packageName} vcr ls --project my-app --json`
49
71
  }
50
72
  ]
51
73
  };
@@ -59,7 +81,7 @@ var inspectSubcommand = {
59
81
  required: true
60
82
  }
61
83
  ],
62
- options: [projectScopeOption, formatOption],
84
+ options: [projectScopeOption, formatOption, jsonOption],
63
85
  examples: [
64
86
  {
65
87
  name: "Inspect a repository by name",
@@ -77,7 +99,7 @@ var addSubcommand = {
77
99
  required: true
78
100
  }
79
101
  ],
80
- options: [projectScopeOption, formatOption],
102
+ options: [projectScopeOption, formatOption, jsonOption],
81
103
  examples: [
82
104
  {
83
105
  name: "Create a repository",
@@ -95,7 +117,7 @@ var removeSubcommand = {
95
117
  required: true
96
118
  }
97
119
  ],
98
- options: [projectScopeOption, yesOption, formatOption],
120
+ options: [projectScopeOption, yesOption, formatOption, jsonOption],
99
121
  examples: [
100
122
  {
101
123
  name: "Delete a repository",
@@ -117,7 +139,7 @@ var loginSubcommand = {
117
139
  required: true
118
140
  }
119
141
  ],
120
- options: [projectScopeOption, formatOption],
142
+ options: [projectScopeOption, formatOption, jsonOption],
121
143
  examples: [
122
144
  {
123
145
  name: "Log in with Docker",
@@ -137,6 +159,70 @@ var loginSubcommand = {
137
159
  }
138
160
  ]
139
161
  };
162
+ var buildSubcommand = {
163
+ name: "build",
164
+ aliases: [],
165
+ description: "Build a container image tagged for the Vercel Container Registry by shelling out to your container tool (docker, podman, or buildah)",
166
+ arguments: [
167
+ {
168
+ name: "engine",
169
+ required: true
170
+ },
171
+ {
172
+ name: "path",
173
+ required: false
174
+ },
175
+ {
176
+ name: "name",
177
+ required: false
178
+ }
179
+ ],
180
+ options: [projectScopeOption, platformOption, pushOption],
181
+ examples: [
182
+ {
183
+ name: "Build the current directory into the linked project (repository defaults to the project name, tag to latest)",
184
+ value: `${packageName} vcr build docker`
185
+ },
186
+ {
187
+ name: "Build and push in one step (Docker Buildx enables zstd compression)",
188
+ value: `${packageName} vcr build docker --push`
189
+ },
190
+ {
191
+ name: "Build a specific context path with a repository and tag",
192
+ value: `${packageName} vcr build docker ./app my-api:1.2.3`
193
+ },
194
+ {
195
+ name: "Pass extra flags through to the container tool",
196
+ value: `${packageName} vcr build docker . -- --no-cache --build-arg KEY=value`
197
+ }
198
+ ]
199
+ };
200
+ var pushSubcommand = {
201
+ name: "push",
202
+ aliases: [],
203
+ description: "Push a container image to the Vercel Container Registry by shelling out to your container tool (docker, podman, or buildah)",
204
+ arguments: [
205
+ {
206
+ name: "engine",
207
+ required: true
208
+ },
209
+ {
210
+ name: "name",
211
+ required: false
212
+ }
213
+ ],
214
+ options: [projectScopeOption],
215
+ examples: [
216
+ {
217
+ name: "Push the linked project image (repository defaults to the project name, tag to latest)",
218
+ value: `${packageName} vcr push docker`
219
+ },
220
+ {
221
+ name: "Push a specific repository and tag",
222
+ value: `${packageName} vcr push docker my-api:1.2.3`
223
+ }
224
+ ]
225
+ };
140
226
  var vcrCommand = {
141
227
  name: "vcr",
142
228
  aliases: [],
@@ -148,6 +234,8 @@ var vcrCommand = {
148
234
  addSubcommand,
149
235
  removeSubcommand,
150
236
  loginSubcommand,
237
+ buildSubcommand,
238
+ pushSubcommand,
151
239
  tagsAggregateCommand,
152
240
  imageAggregateCommand
153
241
  ],
@@ -174,5 +262,7 @@ export {
174
262
  addSubcommand,
175
263
  removeSubcommand,
176
264
  loginSubcommand,
265
+ buildSubcommand,
266
+ pushSubcommand,
177
267
  vcrCommand
178
268
  };
@@ -9,7 +9,7 @@ import {
9
9
  packageName,
10
10
  projectOption,
11
11
  yesOption
12
- } from "./chunk-KSSNLCL4.js";
12
+ } from "./chunk-U6PPDPR5.js";
13
13
 
14
14
  // src/commands/dev/command.ts
15
15
  var devCommand = {
@@ -12,10 +12,10 @@ import {
12
12
  } from "./chunk-FGDKMNEN.js";
13
13
  import {
14
14
  truncateMiddle
15
- } from "./chunk-OF2GNB42.js";
15
+ } from "./chunk-TF627KEI.js";
16
16
  import {
17
17
  table
18
- } from "./chunk-NZRWTCRM.js";
18
+ } from "./chunk-LA3BQQQK.js";
19
19
 
20
20
  // src/commands/alerts/format.ts
21
21
  function renderAlertTable(rows, hsep = 3) {