@depup/vercel 57.0.0-depup.0 → 58.4.4-depup.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 (114) hide show
  1. package/README.md +5 -5
  2. package/changes.json +4 -4
  3. package/dist/chunks/{add-YRZTDNXX.js → add-245XOFJO.js} +14 -9
  4. package/dist/chunks/{add-7M577U56.js → add-P7WBQMBW.js} +10 -8
  5. package/dist/chunks/add-XH24V5VU.js +187 -0
  6. package/dist/chunks/build-M7NJYJPE.js +243 -0
  7. package/dist/chunks/{chunk-HD7B425F.js → chunk-2FMPLU44.js} +4 -4
  8. package/dist/chunks/{chunk-LMHT3QR3.js → chunk-2LBVX2H3.js} +3 -3
  9. package/dist/chunks/{chunk-YOZCJHLZ.js → chunk-2MAPZXVV.js} +10 -8
  10. package/dist/chunks/{chunk-DWMH5M4Q.js → chunk-2SFMOCWR.js} +1 -1
  11. package/dist/chunks/{chunk-F5PQWDOC.js → chunk-2WILSD7J.js} +1 -1
  12. package/dist/chunks/{chunk-3PKFXNJZ.js → chunk-3KNPVXJ3.js} +7 -5
  13. package/dist/chunks/{chunk-A2TYQBX2.js → chunk-3QAUXPIR.js} +927 -518
  14. package/dist/chunks/chunk-3ZE5CFVM.js +346 -0
  15. package/dist/chunks/{chunk-555WJSO5.js → chunk-4BUPRO5B.js} +7 -5
  16. package/dist/chunks/{chunk-TBR2Q37Y.js → chunk-4CCY5OPH.js} +1232 -1216
  17. package/dist/chunks/{chunk-FHEMFAHB.js → chunk-4LDQIDRM.js} +15 -9
  18. package/dist/chunks/{chunk-R5FOIIHT.js → chunk-4N7XLXM2.js} +2 -2
  19. package/dist/chunks/{chunk-KCF6S3XF.js → chunk-4UYKSYKQ.js} +10 -6
  20. package/dist/chunks/{chunk-GP5VCTEU.js → chunk-62MH5KPX.js} +207 -4
  21. package/dist/chunks/{chunk-OGG6UBXK.js → chunk-7QVJTI5H.js} +1 -1
  22. package/dist/chunks/{chunk-FYQPTH5C.js → chunk-A5KP5HAI.js} +7 -5
  23. package/dist/chunks/{chunk-2EDWKVNP.js → chunk-AQDWMAPM.js} +32 -16
  24. package/dist/chunks/{chunk-3VS4DTAU.js → chunk-AW5YINX6.js} +106 -12
  25. package/dist/chunks/{chunk-GIL3VAUR.js → chunk-B3JTF4CF.js} +5 -3
  26. package/dist/chunks/{chunk-4QVAYRYH.js → chunk-BEQV3X2L.js} +16 -1
  27. package/dist/chunks/chunk-CPFNFVCL.js +85 -0
  28. package/dist/chunks/{chunk-4G6QZSBL.js → chunk-CSJBZKC5.js} +6 -4
  29. package/dist/chunks/{chunk-3PGXYIKC.js → chunk-EBLH23AQ.js} +2 -2
  30. package/dist/chunks/{chunk-YA3WQFLY.js → chunk-GFG6QDIE.js} +1 -1
  31. package/dist/chunks/{chunk-IOAZNR6Z.js → chunk-HSYF5SI3.js} +1 -1
  32. package/dist/chunks/{chunk-F7X55TOY.js → chunk-IEDUCUDV.js} +6 -5
  33. package/dist/chunks/chunk-J6LK45HT.js +163 -0
  34. package/dist/chunks/{chunk-ZVLPUREX.js → chunk-JLWQWYKO.js} +2 -2
  35. package/dist/chunks/{chunk-SZXT3PDQ.js → chunk-KBEX5MYS.js} +1 -136
  36. package/dist/chunks/{chunk-NZRWTCRM.js → chunk-KT4XXKJK.js} +1 -1
  37. package/dist/chunks/{chunk-VZSZBD4V.js → chunk-M22O6CYY.js} +1 -1
  38. package/dist/chunks/{chunk-3242RXCN.js → chunk-M5NOLAJ4.js} +1 -1
  39. package/dist/chunks/{chunk-2MJROFVC.js → chunk-MAHXF73X.js} +8 -5
  40. package/dist/chunks/{chunk-RYO6FJFB.js → chunk-NJ6QXKQD.js} +2 -2
  41. package/dist/chunks/{chunk-LHFNIZ2P.js → chunk-O5GNPPTU.js} +4 -2
  42. package/dist/chunks/chunk-RBIFXFZX.js +52 -0
  43. package/dist/chunks/{chunk-OF2GNB42.js → chunk-RQ7H43CJ.js} +1 -1
  44. package/dist/chunks/{chunk-4PGF367U.js → chunk-SJYAUEZR.js} +232 -50
  45. package/dist/chunks/{chunk-KSSNLCL4.js → chunk-SOFC4MLS.js} +2 -2
  46. package/dist/chunks/{chunk-UDWRZXIT.js → chunk-TJJ562C5.js} +18 -14
  47. package/dist/chunks/{chunk-NRNMT43R.js → chunk-UE3JUVUZ.js} +7 -13
  48. package/dist/chunks/chunk-V5P25P7F.js +22 -0
  49. package/dist/chunks/{chunk-MIFDRYTN.js → chunk-XE5VSQ25.js} +2 -2
  50. package/dist/chunks/{chunk-QZD5DKUR.js → chunk-XIG4GH62.js} +2 -2
  51. package/dist/chunks/chunk-XLKFJPMT.js +150 -0
  52. package/dist/chunks/{chunk-MAHINYBW.js → chunk-Y5GTPWXB.js} +2 -2
  53. package/dist/chunks/{chunk-NH43BFJ3.js → chunk-YCPUAG77.js} +2 -2
  54. package/dist/chunks/{chunk-T4NODP6Y.js → chunk-YDUINEII.js} +3 -3
  55. package/dist/chunks/{chunk-RAFH25WW.js → chunk-ZGBBPJ6B.js} +10 -6
  56. package/dist/chunks/{chunk-DMSLNAVH.js → chunk-ZX2FSPWV.js} +2 -2
  57. package/dist/chunks/clear-HWIKQ4NC.js +132 -0
  58. package/dist/chunks/{compile-vercel-config-3OHO3TJA.js → compile-vercel-config-U5NRIMZ2.js} +5 -4
  59. package/dist/chunks/config-validator.mjs +1 -1
  60. package/dist/chunks/{delete-3DZOCWCC.js → delete-FZCOUFGN.js} +7 -6
  61. package/dist/chunks/{delete-VOSJLNEA.js → delete-NVMGVD5Z.js} +7 -6
  62. package/dist/chunks/{disable-LQDEVRQF.js → disable-ERM2BWEQ.js} +7 -6
  63. package/dist/chunks/{discard-RGV4JKXQ.js → discard-KM5OLEN4.js} +7 -6
  64. package/dist/chunks/{edit-SFIEOQ24.js → edit-HT3UTATZ.js} +8 -7
  65. package/dist/chunks/{edit-UPZPI54L.js → edit-TOSB2EMI.js} +7 -6
  66. package/dist/chunks/{enable-6UVH35WC.js → enable-BQL6AOQV.js} +7 -6
  67. package/dist/chunks/{export-6CEG3CK7.js → export-UOWQHOG3.js} +7 -6
  68. package/dist/chunks/{image-CQRCD2OE.js → image-F5SC6Q7Y.js} +5 -5
  69. package/dist/chunks/{inspect-ZFRY3X3H.js → inspect-35FU5R62.js} +16 -13
  70. package/dist/chunks/{inspect-UM3LDRPV.js → inspect-5J5GSTOB.js} +14 -12
  71. package/dist/chunks/{inspect-K5ZMQG7X.js → inspect-GKJ6T5H4.js} +14 -12
  72. package/dist/chunks/{inspect-4ZAH3RFT.js → inspect-LGKOLH2O.js} +8 -7
  73. package/dist/chunks/{inspect-EXQBIAFF.js → inspect-PZJM2CWT.js} +13 -11
  74. package/dist/chunks/{list-KCUHD4OA.js → list-2IIE7CAP.js} +8 -7
  75. package/dist/chunks/{list-4DRVM7Q4.js → list-ITFJYYQ2.js} +13 -11
  76. package/dist/chunks/{list-FJCBOCCA.js → list-KZETH3ZE.js} +8 -6
  77. package/dist/chunks/{login-DFGYNU3K.js → login-BQPJCJEZ.js} +22 -51
  78. package/dist/chunks/{ls-RHEQ6YQB.js → ls-7GHDK4MD.js} +13 -11
  79. package/dist/chunks/{ls-CG6A7UXF.js → ls-DL2LA35C.js} +15 -13
  80. package/dist/chunks/{ls-34NCZKBE.js → ls-UXUEP54B.js} +15 -13
  81. package/dist/chunks/ls-YSFWSM6J.js +178 -0
  82. package/dist/chunks/{ls-4QHHVXXD.js → ls-ZZFLH7PK.js} +17 -14
  83. package/dist/chunks/{open-E3XADEMX.js → open-ADNJQN5E.js} +7 -6
  84. package/dist/chunks/permissions-72SZCBIY.js +95 -0
  85. package/dist/chunks/{publish-Z3AQRUCS.js → publish-OOAGSEBM.js} +7 -6
  86. package/dist/chunks/push-B6TZDXNF.js +183 -0
  87. package/dist/chunks/{query-3EV66DO3.js → query-LZWS5TDH.js} +12 -10
  88. package/dist/chunks/{reorder-VA5E5ZJT.js → reorder-MRHFKPMK.js} +7 -6
  89. package/dist/chunks/{reply-SNSCNKAW.js → reply-BKTJXO3B.js} +7 -6
  90. package/dist/chunks/{resolve-6ZX4RTXX.js → resolve-BKVGSGPN.js} +7 -6
  91. package/dist/chunks/{restore-NEHI5B5P.js → restore-USR7SKWV.js} +7 -6
  92. package/dist/chunks/{rm-FR6KE744.js → rm-2UO6BT3A.js} +10 -8
  93. package/dist/chunks/rm-37MKKV3I.js +186 -0
  94. package/dist/chunks/{rm-E5ZVLAKO.js → rm-KUWPNZIS.js} +15 -10
  95. package/dist/chunks/{rm-22B22E47.js → rm-VY3OHKFH.js} +12 -8
  96. package/dist/chunks/{rule-inspect-DMP2CKJQ.js → rule-inspect-JVDOOTWK.js} +13 -11
  97. package/dist/chunks/{rules-EYGXEI2Z.js → rules-NTBFZBIF.js} +8 -8
  98. package/dist/chunks/{schema-2IIWOBSQ.js → schema-6EZ72OVH.js} +11 -9
  99. package/dist/chunks/{tags-ZDVYRHAY.js → tags-HNPC63QA.js} +4 -4
  100. package/dist/chunks/{types-QKLIFDDP.js → types-QTOA2BTQ.js} +7 -5
  101. package/dist/chunks/{update-QH4DQMZV.js → update-LUYWNZP3.js} +10 -8
  102. package/dist/commands/build/index.js +16 -20
  103. package/dist/commands/deploy/index.js +39 -28
  104. package/dist/commands/dev/index.js +112 -20
  105. package/dist/commands/env/index.js +308 -36
  106. package/dist/commands/link/index.js +26 -23
  107. package/dist/commands/list/index.js +16 -9
  108. package/dist/commands-bulk.js +5414 -2654
  109. package/dist/help.js +1 -1
  110. package/dist/index.js +50 -44
  111. package/dist/version.mjs +1 -1
  112. package/package.json +47 -105
  113. package/dist/chunks/chunk-6OMC3HOW.js +0 -73
  114. package/dist/chunks/chunk-V4RMJKQP.js +0 -36
@@ -4,19 +4,23 @@ 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-A5KP5HAI.js";
10
+ import {
11
+ permissionsAggregateCommand
12
+ } from "./chunk-J6LK45HT.js";
13
+ import {
14
+ tagsAggregateCommand
15
+ } from "./chunk-B3JTF4CF.js";
13
16
  import {
14
17
  formatOption,
18
+ jsonOption,
15
19
  limitOption,
16
20
  packageName,
17
21
  projectOption,
18
22
  yesOption
19
- } from "./chunk-KSSNLCL4.js";
23
+ } from "./chunk-SOFC4MLS.js";
20
24
 
21
25
  // src/commands/vcr/command.ts
22
26
  var projectScopeOption = {
@@ -32,12 +36,33 @@ var cursorOption = {
32
36
  description: "Cursor from a previous page to continue listing from",
33
37
  argument: "STRING"
34
38
  };
39
+ var platformOption = {
40
+ name: "platform",
41
+ shorthand: null,
42
+ type: String,
43
+ deprecated: false,
44
+ description: "Target platform for the build (defaults to linux/amd64).",
45
+ argument: "PLATFORM"
46
+ };
47
+ var pushOption = {
48
+ name: "push",
49
+ shorthand: null,
50
+ type: Boolean,
51
+ deprecated: false,
52
+ 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."
53
+ };
35
54
  var listSubcommand = {
36
55
  name: "ls",
37
56
  aliases: ["list"],
38
57
  description: "List container registry repositories for a project",
39
58
  arguments: [],
40
- options: [projectScopeOption, limitOption, cursorOption, formatOption],
59
+ options: [
60
+ projectScopeOption,
61
+ limitOption,
62
+ cursorOption,
63
+ formatOption,
64
+ jsonOption
65
+ ],
41
66
  examples: [
42
67
  {
43
68
  name: "List repositories in the linked project",
@@ -45,7 +70,7 @@ var listSubcommand = {
45
70
  },
46
71
  {
47
72
  name: "List repositories for a specific project as JSON",
48
- value: `${packageName} vcr ls --project my-app --format json`
73
+ value: `${packageName} vcr ls --project my-app --json`
49
74
  }
50
75
  ]
51
76
  };
@@ -59,7 +84,7 @@ var inspectSubcommand = {
59
84
  required: true
60
85
  }
61
86
  ],
62
- options: [projectScopeOption, formatOption],
87
+ options: [projectScopeOption, formatOption, jsonOption],
63
88
  examples: [
64
89
  {
65
90
  name: "Inspect a repository by name",
@@ -77,7 +102,7 @@ var addSubcommand = {
77
102
  required: true
78
103
  }
79
104
  ],
80
- options: [projectScopeOption, formatOption],
105
+ options: [projectScopeOption, formatOption, jsonOption],
81
106
  examples: [
82
107
  {
83
108
  name: "Create a repository",
@@ -95,7 +120,7 @@ var removeSubcommand = {
95
120
  required: true
96
121
  }
97
122
  ],
98
- options: [projectScopeOption, yesOption, formatOption],
123
+ options: [projectScopeOption, yesOption, formatOption, jsonOption],
99
124
  examples: [
100
125
  {
101
126
  name: "Delete a repository",
@@ -117,7 +142,7 @@ var loginSubcommand = {
117
142
  required: true
118
143
  }
119
144
  ],
120
- options: [projectScopeOption, formatOption],
145
+ options: [projectScopeOption, formatOption, jsonOption],
121
146
  examples: [
122
147
  {
123
148
  name: "Log in with Docker",
@@ -137,6 +162,70 @@ var loginSubcommand = {
137
162
  }
138
163
  ]
139
164
  };
165
+ var buildSubcommand = {
166
+ name: "build",
167
+ aliases: [],
168
+ description: "Build a container image tagged for the Vercel Container Registry by shelling out to your container tool (docker, podman, or buildah)",
169
+ arguments: [
170
+ {
171
+ name: "engine",
172
+ required: true
173
+ },
174
+ {
175
+ name: "path",
176
+ required: false
177
+ },
178
+ {
179
+ name: "name",
180
+ required: false
181
+ }
182
+ ],
183
+ options: [projectScopeOption, platformOption, pushOption],
184
+ examples: [
185
+ {
186
+ name: "Build the current directory into the linked project (repository defaults to the project name, tag to latest)",
187
+ value: `${packageName} vcr build docker`
188
+ },
189
+ {
190
+ name: "Build and push in one step (Docker Buildx enables zstd compression)",
191
+ value: `${packageName} vcr build docker --push`
192
+ },
193
+ {
194
+ name: "Build a specific context path with a repository and tag",
195
+ value: `${packageName} vcr build docker ./app my-api:1.2.3`
196
+ },
197
+ {
198
+ name: "Pass extra flags through to the container tool",
199
+ value: `${packageName} vcr build docker . -- --no-cache --build-arg KEY=value`
200
+ }
201
+ ]
202
+ };
203
+ var pushSubcommand = {
204
+ name: "push",
205
+ aliases: [],
206
+ description: "Push a container image to the Vercel Container Registry by shelling out to your container tool (docker, podman, or buildah)",
207
+ arguments: [
208
+ {
209
+ name: "engine",
210
+ required: true
211
+ },
212
+ {
213
+ name: "name",
214
+ required: false
215
+ }
216
+ ],
217
+ options: [projectScopeOption],
218
+ examples: [
219
+ {
220
+ name: "Push the linked project image (repository defaults to the project name, tag to latest)",
221
+ value: `${packageName} vcr push docker`
222
+ },
223
+ {
224
+ name: "Push a specific repository and tag",
225
+ value: `${packageName} vcr push docker my-api:1.2.3`
226
+ }
227
+ ]
228
+ };
140
229
  var vcrCommand = {
141
230
  name: "vcr",
142
231
  aliases: [],
@@ -148,8 +237,11 @@ var vcrCommand = {
148
237
  addSubcommand,
149
238
  removeSubcommand,
150
239
  loginSubcommand,
240
+ buildSubcommand,
241
+ pushSubcommand,
151
242
  tagsAggregateCommand,
152
- imageAggregateCommand
243
+ imageAggregateCommand,
244
+ permissionsAggregateCommand
153
245
  ],
154
246
  options: [],
155
247
  examples: [
@@ -174,5 +266,7 @@ export {
174
266
  addSubcommand,
175
267
  removeSubcommand,
176
268
  loginSubcommand,
269
+ buildSubcommand,
270
+ pushSubcommand,
177
271
  vcrCommand
178
272
  };
@@ -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-SOFC4MLS.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",
@@ -60,6 +60,19 @@ function repositoryTagsPath(scope, idOrName, opts = {}) {
60
60
  function repositoryTagPath(scope, idOrName, tag) {
61
61
  return `/v1/vcr/repository/${encodeURIComponent(idOrName)}/tags/${encodeURIComponent(tag)}?${baseQuery(scope).toString()}`;
62
62
  }
63
+ function repositoryPermissionsPath(scope, idOrName, opts = {}) {
64
+ const query = baseQuery(scope);
65
+ if (opts.limit !== void 0) {
66
+ query.set("limit", String(opts.limit));
67
+ }
68
+ if (opts.cursor) {
69
+ query.set("cursor", opts.cursor);
70
+ }
71
+ return `/v1/vcr/repository/${encodeURIComponent(idOrName)}/permissions?${query.toString()}`;
72
+ }
73
+ function repositoryPermissionsClearPath(scope, idOrName) {
74
+ return `/v1/vcr/repository/${encodeURIComponent(idOrName)}/permissions/all?${baseQuery(scope).toString()}`;
75
+ }
63
76
 
64
77
  export {
65
78
  repositoriesPath,
@@ -67,5 +80,7 @@ export {
67
80
  repositoryImagesPath,
68
81
  imagePath,
69
82
  repositoryTagsPath,
70
- repositoryTagPath
83
+ repositoryTagPath,
84
+ repositoryPermissionsPath,
85
+ repositoryPermissionsClearPath
71
86
  };
@@ -0,0 +1,85 @@
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
+ import {
8
+ VERCEL_DIR
9
+ } from "./chunk-4CCY5OPH.js";
10
+ import {
11
+ parseArguments
12
+ } from "./chunk-XLKFJPMT.js";
13
+ import {
14
+ ConflictingConfigFiles,
15
+ DeprecatedNowJson,
16
+ InvalidLocalConfig
17
+ } from "./chunk-SOFC4MLS.js";
18
+
19
+ // src/util/input/prompt-cancellation.ts
20
+ var PromptCanceledError = class extends Error {
21
+ constructor() {
22
+ super("Prompt canceled");
23
+ this.name = "PromptCanceledError";
24
+ }
25
+ };
26
+ var PromptBackError = class extends Error {
27
+ constructor() {
28
+ super("Prompt back");
29
+ this.name = "PromptBackError";
30
+ }
31
+ };
32
+ function isPromptBackError(error) {
33
+ return error instanceof PromptBackError;
34
+ }
35
+ function isPromptCanceledError(error) {
36
+ if (error instanceof PromptCanceledError) {
37
+ return true;
38
+ }
39
+ return error instanceof Error && error.message.includes("User force closed the prompt");
40
+ }
41
+
42
+ // src/util/config/local-path.ts
43
+ import path from "path";
44
+ import { existsSync } from "fs";
45
+ function getLocalPathConfig(prefix) {
46
+ const argv = parseArguments(process.argv.slice(2), {}, { permissive: true });
47
+ const customPath = argv.flags["--local-config"];
48
+ if (customPath) {
49
+ if (typeof customPath !== "string") {
50
+ throw new InvalidLocalConfig(customPath);
51
+ }
52
+ return path.resolve(process.cwd(), customPath);
53
+ }
54
+ const vercelConfigPath = path.join(prefix, "vercel.json");
55
+ const vercelTomlPath = path.join(prefix, "vercel.toml");
56
+ const nowConfigPath = path.join(prefix, "now.json");
57
+ const vercelConfigExists = existsSync(vercelConfigPath);
58
+ const vercelTomlExists = existsSync(vercelTomlPath);
59
+ const nowConfigExists = existsSync(nowConfigPath);
60
+ const foundConfigs = [];
61
+ if (vercelConfigExists)
62
+ foundConfigs.push(vercelConfigPath);
63
+ if (vercelTomlExists)
64
+ foundConfigs.push(vercelTomlPath);
65
+ if (nowConfigExists) {
66
+ throw new DeprecatedNowJson(nowConfigPath);
67
+ }
68
+ if (foundConfigs.length > 1) {
69
+ throw new ConflictingConfigFiles(foundConfigs);
70
+ }
71
+ const compiledConfigPath = path.join(prefix, VERCEL_DIR, "vercel.json");
72
+ const compiledConfigExists = existsSync(compiledConfigPath);
73
+ if (compiledConfigExists) {
74
+ return compiledConfigPath;
75
+ }
76
+ return vercelConfigPath;
77
+ }
78
+
79
+ export {
80
+ getLocalPathConfig,
81
+ PromptCanceledError,
82
+ PromptBackError,
83
+ isPromptBackError,
84
+ isPromptCanceledError
85
+ };
@@ -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-SOFC4MLS.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
  {
@@ -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-RQ7H43CJ.js";
16
16
  import {
17
17
  table
18
- } from "./chunk-NZRWTCRM.js";
18
+ } from "./chunk-KT4XXKJK.js";
19
19
 
20
20
  // src/commands/alerts/format.ts
21
21
  function renderAlertTable(rows, hsep = 3) {
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-NM43FFV6.js";
11
11
  import {
12
12
  isAPIError
13
- } from "./chunk-KSSNLCL4.js";
13
+ } from "./chunk-SOFC4MLS.js";
14
14
  import {
15
15
  output_manager_default
16
16
  } from "./chunk-OX7KI3LF.js";
@@ -8,7 +8,7 @@ import {
8
8
  formatCondition,
9
9
  formatTransform,
10
10
  isTargetTransform
11
- } from "./chunk-555WJSO5.js";
11
+ } from "./chunk-4BUPRO5B.js";
12
12
  import {
13
13
  output_manager_default
14
14
  } from "./chunk-OX7KI3LF.js";
@@ -13,13 +13,13 @@ import {
13
13
  progress,
14
14
  require_dist as require_dist2,
15
15
  sleep
16
- } from "./chunk-4PGF367U.js";
16
+ } from "./chunk-SJYAUEZR.js";
17
17
  import {
18
18
  suggestNextCommands
19
19
  } from "./chunk-XBN2O34P.js";
20
20
  import {
21
21
  CommandTimeout
22
- } from "./chunk-A2TYQBX2.js";
22
+ } from "./chunk-3QAUXPIR.js";
23
23
  import {
24
24
  showPluginTipIfNeeded
25
25
  } from "./chunk-NJUPUGOE.js";
@@ -36,11 +36,11 @@ import {
36
36
  require_dist as require_dist3,
37
37
  require_pluralize,
38
38
  ua_default
39
- } from "./chunk-TBR2Q37Y.js";
39
+ } from "./chunk-4CCY5OPH.js";
40
40
  import {
41
41
  require_strip_ansi,
42
42
  responseError
43
- } from "./chunk-SZXT3PDQ.js";
43
+ } from "./chunk-KBEX5MYS.js";
44
44
  import {
45
45
  APIError,
46
46
  BuildError,
@@ -58,7 +58,7 @@ import {
58
58
  getCommandName,
59
59
  isAPIError,
60
60
  require_bytes
61
- } from "./chunk-KSSNLCL4.js";
61
+ } from "./chunk-SOFC4MLS.js";
62
62
  import {
63
63
  Headers,
64
64
  fetch,
@@ -2083,6 +2083,7 @@ ${import_chalk6.default.green("\u2713")} ${import_chalk6.default.bold("Ready")}
2083
2083
  output_manager_default.print("\n");
2084
2084
  suggestNextCommands(
2085
2085
  [
2086
+ readyState === "READY" ? getCommandName(`curl https://${url}`) : false,
2086
2087
  getCommandName(`inspect ${url} --logs`),
2087
2088
  getCommandName(`redeploy ${url}`),
2088
2089
  target !== "production" ? getCommandName(`deploy --prod`) : false
@@ -0,0 +1,163 @@
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
+ import {
8
+ formatOption,
9
+ limitOption,
10
+ packageName,
11
+ projectOption,
12
+ yesOption
13
+ } from "./chunk-SOFC4MLS.js";
14
+
15
+ // src/commands/vcr/permissions/command.ts
16
+ var PERMISSIONS_ACTIONS = {
17
+ ls: ["ls", "list"],
18
+ add: ["add"],
19
+ rm: ["rm", "remove"],
20
+ clear: ["clear"]
21
+ };
22
+ var projectScopeOption = {
23
+ ...projectOption,
24
+ shorthand: "p",
25
+ description: "Project name or ID (defaults to the linked project)."
26
+ };
27
+ var cursorOption = {
28
+ name: "cursor",
29
+ shorthand: "c",
30
+ type: String,
31
+ deprecated: false,
32
+ description: "Cursor from a previous page to continue listing from",
33
+ argument: "STRING"
34
+ };
35
+ var permissionsLsSubcommand = {
36
+ name: "ls",
37
+ aliases: ["list"],
38
+ description: "List teams with access to a repository",
39
+ arguments: [],
40
+ options: [projectScopeOption, limitOption, cursorOption, formatOption],
41
+ examples: [
42
+ {
43
+ name: "List teams with access to a repository",
44
+ value: `${packageName} vcr permissions my-app ls`
45
+ },
46
+ {
47
+ name: "List teams with access as JSON",
48
+ value: `${packageName} vcr permissions my-app ls --format json`
49
+ }
50
+ ]
51
+ };
52
+ var permissionsAddSubcommand = {
53
+ name: "add",
54
+ aliases: [],
55
+ description: "Give one or more teams access to pull images from a repository",
56
+ arguments: [
57
+ {
58
+ name: "team",
59
+ required: true,
60
+ multiple: true
61
+ }
62
+ ],
63
+ options: [projectScopeOption, formatOption],
64
+ examples: [
65
+ {
66
+ name: "Share a repository with a team by id",
67
+ value: `${packageName} vcr permissions my-app add team_1a2b3c4d`
68
+ },
69
+ {
70
+ name: "Share a repository with a team by slug",
71
+ value: `${packageName} vcr permissions my-app add my-team`
72
+ },
73
+ {
74
+ name: "Share a repository with multiple teams",
75
+ value: `${packageName} vcr permissions my-app add team_1a2b3c4d,other-team`
76
+ }
77
+ ]
78
+ };
79
+ var permissionsRmSubcommand = {
80
+ name: "rm",
81
+ aliases: ["remove"],
82
+ description: "Remove one or more teams' access to a repository",
83
+ arguments: [
84
+ {
85
+ name: "team",
86
+ required: true,
87
+ multiple: true
88
+ }
89
+ ],
90
+ options: [projectScopeOption, formatOption],
91
+ examples: [
92
+ {
93
+ name: "Remove a team's access by id",
94
+ value: `${packageName} vcr permissions my-app rm team_1a2b3c4d`
95
+ },
96
+ {
97
+ name: "Remove multiple teams' access",
98
+ value: `${packageName} vcr permissions my-app rm team_1a2b3c4d,other-team`
99
+ }
100
+ ]
101
+ };
102
+ var permissionsClearSubcommand = {
103
+ name: "clear",
104
+ aliases: [],
105
+ description: "Remove access to a repository for every team",
106
+ arguments: [],
107
+ options: [projectScopeOption, yesOption, formatOption],
108
+ examples: [
109
+ {
110
+ name: "Clear all repository permissions",
111
+ value: `${packageName} vcr permissions my-app clear`
112
+ },
113
+ {
114
+ name: "Clear all repository permissions without the confirmation prompt",
115
+ value: `${packageName} vcr permissions my-app clear --yes`
116
+ }
117
+ ]
118
+ };
119
+ var permissionsAggregateCommand = {
120
+ name: "permissions",
121
+ aliases: ["permission"],
122
+ description: "Manage which teams can pull images from a container registry repository",
123
+ arguments: [
124
+ {
125
+ name: "repository",
126
+ required: true
127
+ }
128
+ ],
129
+ subcommands: [
130
+ permissionsLsSubcommand,
131
+ permissionsAddSubcommand,
132
+ permissionsRmSubcommand,
133
+ permissionsClearSubcommand
134
+ ],
135
+ options: [],
136
+ examples: [
137
+ {
138
+ name: "List teams with access to a repository",
139
+ value: `${packageName} vcr permissions my-app ls`
140
+ },
141
+ {
142
+ name: "Share a repository with a team",
143
+ value: `${packageName} vcr permissions my-app add team_1a2b3c4d`
144
+ },
145
+ {
146
+ name: "Remove a team's access to a repository",
147
+ value: `${packageName} vcr permissions my-app rm team_1a2b3c4d`
148
+ },
149
+ {
150
+ name: "Clear all repository permissions",
151
+ value: `${packageName} vcr permissions my-app clear`
152
+ }
153
+ ]
154
+ };
155
+
156
+ export {
157
+ PERMISSIONS_ACTIONS,
158
+ permissionsLsSubcommand,
159
+ permissionsAddSubcommand,
160
+ permissionsRmSubcommand,
161
+ permissionsClearSubcommand,
162
+ permissionsAggregateCommand
163
+ };
@@ -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-NZRWTCRM.js";
9
+ } from "./chunk-KT4XXKJK.js";
10
10
  import {
11
11
  require_strip_ansi
12
- } from "./chunk-SZXT3PDQ.js";
12
+ } from "./chunk-KBEX5MYS.js";
13
13
  import {
14
14
  require_source
15
15
  } from "./chunk-S7KYDPEM.js";