vercel 54.18.7 → 54.20.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 (45) hide show
  1. package/dist/chunks/add-IB7HE5S5.js +134 -0
  2. package/dist/chunks/{add-P6CBTAGK.js → add-TF5VZLCY.js} +3 -3
  3. package/dist/chunks/{chunk-AXFSALI3.js → chunk-4BEUS7AL.js} +293 -71
  4. package/dist/chunks/chunk-4QVAYRYH.js +71 -0
  5. package/dist/chunks/{chunk-RKLBPBRM.js → chunk-7PAKWBN4.js} +2 -2
  6. package/dist/chunks/chunk-AUECDTMX.js +128 -0
  7. package/dist/chunks/{chunk-E2ENQE2W.js → chunk-BUZRVER7.js} +1 -0
  8. package/dist/chunks/{chunk-L6QLQSJE.js → chunk-GDAO4PGA.js} +1 -1
  9. package/dist/chunks/chunk-I3HGCZ4E.js +72 -0
  10. package/dist/chunks/{chunk-DXL7EPOQ.js → chunk-JDO6BSKN.js} +2 -2
  11. package/dist/chunks/chunk-JHQOIGTY.js +363 -0
  12. package/dist/chunks/chunk-KXGWAWRV.js +148 -0
  13. package/dist/chunks/{chunk-XQQXV6ZZ.js → chunk-LFODAB54.js} +1 -0
  14. package/dist/chunks/chunk-RY3AVR6E.js +111 -0
  15. package/dist/chunks/{chunk-JREEV2EL.js → chunk-T63I6OUR.js} +1 -1
  16. package/dist/chunks/chunk-VGIMO3ZK.js +17 -0
  17. package/dist/chunks/{chunk-VTE7W5ZP.js → chunk-ZZIAWRCX.js} +0 -8
  18. package/dist/chunks/image-2DL7JEWW.js +73 -0
  19. package/dist/chunks/inspect-6IHZTLFA.js +167 -0
  20. package/dist/chunks/inspect-EGXHWKY3.js +163 -0
  21. package/dist/chunks/inspect-PL3PE5IJ.js +136 -0
  22. package/dist/chunks/{inspect-KYVZQL56.js → inspect-Z3QJOMNP.js} +2 -2
  23. package/dist/chunks/{list-MUFZTUZA.js → list-BB4T4KT5.js} +1 -1
  24. package/dist/chunks/{list-BYTNF7D7.js → list-KNRPDNQF.js} +2 -2
  25. package/dist/chunks/ls-EP4Q6VF4.js +214 -0
  26. package/dist/chunks/{ls-PDILBRUL.js → ls-FTQGK4R6.js} +3 -3
  27. package/dist/chunks/ls-IQKMDRUB.js +165 -0
  28. package/dist/chunks/ls-MUS72LBS.js +201 -0
  29. package/dist/chunks/{query-75PT24SH.js → query-C6FEOG5R.js} +1 -1
  30. package/dist/chunks/rm-EZFCCZFT.js +137 -0
  31. package/dist/chunks/{rm-BJSTNUIJ.js → rm-GWW57H2V.js} +3 -3
  32. package/dist/chunks/rm-NMSG2WG6.js +137 -0
  33. package/dist/chunks/{rule-inspect-WTU3MGMH.js → rule-inspect-XPZJO3Y4.js} +3 -3
  34. package/dist/chunks/{rules-6PXGKHFH.js → rules-C6SB24UO.js} +6 -6
  35. package/dist/chunks/tags-5PFVWGLK.js +67 -0
  36. package/dist/chunks/{update-TTPNV44H.js → update-BCLMLJM7.js} +3 -3
  37. package/dist/commands/build/index.js +5 -1
  38. package/dist/commands/deploy/index.js +5 -2
  39. package/dist/commands/env/index.js +8 -3
  40. package/dist/commands/link/index.js +4 -1
  41. package/dist/commands-bulk.js +3304 -1952
  42. package/dist/help.js +1 -1
  43. package/dist/index.js +28 -5
  44. package/dist/version.mjs +1 -1
  45. package/package.json +16 -16
@@ -0,0 +1,134 @@
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
+ emitVcrArgParseError,
9
+ handleVcrApiError,
10
+ resolveVcrScope,
11
+ validateVcrJsonOutput
12
+ } from "./chunk-JHQOIGTY.js";
13
+ import {
14
+ outputError
15
+ } from "./chunk-BUZRVER7.js";
16
+ import "./chunk-XPKWKPWA.js";
17
+ import {
18
+ addSubcommand
19
+ } from "./chunk-KXGWAWRV.js";
20
+ import "./chunk-RY3AVR6E.js";
21
+ import "./chunk-AUECDTMX.js";
22
+ import {
23
+ AGENT_REASON
24
+ } from "./chunk-QH7WYDEP.js";
25
+ import "./chunk-P726GMBL.js";
26
+ import "./chunk-RB7WQKNC.js";
27
+ import {
28
+ buildCommandWithGlobalFlags,
29
+ outputAgentError
30
+ } from "./chunk-IZOHLD5D.js";
31
+ import "./chunk-ECCWJHC6.js";
32
+ import {
33
+ getFlagsSpecification,
34
+ parseArguments,
35
+ printError
36
+ } from "./chunk-EJ6GQI6F.js";
37
+ import {
38
+ isAPIError,
39
+ packageName
40
+ } from "./chunk-P6AK7SVK.js";
41
+ import "./chunk-P4QNYOFB.js";
42
+ import "./chunk-2RVK3DDN.js";
43
+ import {
44
+ output_manager_default
45
+ } from "./chunk-OX7KI3LF.js";
46
+ import "./chunk-GGP5R3FU.js";
47
+ import "./chunk-S7KYDPEM.js";
48
+ import "./chunk-TZ2YI2VH.js";
49
+
50
+ // src/commands/vcr/add.ts
51
+ async function add(client, argv, telemetry) {
52
+ let parsedArgs;
53
+ try {
54
+ parsedArgs = parseArguments(
55
+ argv,
56
+ getFlagsSpecification(addSubcommand.options)
57
+ );
58
+ } catch (err) {
59
+ emitVcrArgParseError(client, err, "vcr add <name> --project <name-or-id>");
60
+ printError(err);
61
+ return 1;
62
+ }
63
+ const fr = validateVcrJsonOutput(client, parsedArgs.flags);
64
+ if (typeof fr === "number") {
65
+ return fr;
66
+ }
67
+ const name = parsedArgs.args[0];
68
+ const project = parsedArgs.flags["--project"];
69
+ telemetry.trackCliOptionProject(project);
70
+ telemetry.trackCliOptionFormat(parsedArgs.flags["--format"]);
71
+ if (!name) {
72
+ outputAgentError(
73
+ client,
74
+ {
75
+ status: "error",
76
+ reason: AGENT_REASON.MISSING_ARGUMENTS,
77
+ message: `Missing repository name. Example: ${packageName} vcr add <name>`,
78
+ next: [
79
+ {
80
+ command: buildCommandWithGlobalFlags(client.argv, "vcr add <name>"),
81
+ when: "Replace <name> with the repository name to create"
82
+ }
83
+ ]
84
+ },
85
+ 1
86
+ );
87
+ return outputError(
88
+ client,
89
+ fr.jsonOutput,
90
+ "MISSING_ARGUMENTS",
91
+ "Usage: `vercel vcr add <name>`"
92
+ );
93
+ }
94
+ const scope = await resolveVcrScope(client, {
95
+ project,
96
+ jsonOutput: fr.jsonOutput
97
+ });
98
+ if (typeof scope === "number") {
99
+ return scope;
100
+ }
101
+ const path = `/v1/vcr/repository?teamId=${encodeURIComponent(scope.teamId)}`;
102
+ output_manager_default.spinner("Creating repository...");
103
+ try {
104
+ const created = await client.fetch(
105
+ path,
106
+ {
107
+ method: "POST",
108
+ body: { projectId: scope.projectId, name }
109
+ }
110
+ );
111
+ if (fr.jsonOutput) {
112
+ client.stdout.write(`${JSON.stringify(created, null, 2)}
113
+ `);
114
+ } else {
115
+ output_manager_default.success(`Created repository ${created.repository?.name ?? name}`);
116
+ }
117
+ return 0;
118
+ } catch (err) {
119
+ if (isAPIError(err)) {
120
+ return handleVcrApiError(client, err, fr.jsonOutput, {
121
+ retry: {
122
+ command: buildCommandWithGlobalFlags(client.argv, "vcr ls"),
123
+ when: "List existing repositories (a name conflict means it already exists)"
124
+ }
125
+ });
126
+ }
127
+ throw err;
128
+ } finally {
129
+ output_manager_default.stopSpinner();
130
+ }
131
+ }
132
+ export {
133
+ add as default
134
+ };
@@ -9,9 +9,9 @@ import {
9
9
  handleRulesApiError,
10
10
  parseRulesFlagsAndScope,
11
11
  rulesCollectionPath
12
- } from "./chunk-RKLBPBRM.js";
13
- import "./chunk-L6QLQSJE.js";
14
- import "./chunk-E2ENQE2W.js";
12
+ } from "./chunk-7PAKWBN4.js";
13
+ import "./chunk-GDAO4PGA.js";
14
+ import "./chunk-BUZRVER7.js";
15
15
  import {
16
16
  validateJsonOutput
17
17
  } from "./chunk-XPKWKPWA.js";