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,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
+ formatBytes,
9
+ formatImageStatus,
10
+ formatRelativeTime,
11
+ formatTagReference
12
+ } from "./chunk-I3HGCZ4E.js";
13
+ import {
14
+ repositoryPath,
15
+ repositoryTagPath
16
+ } from "./chunk-4QVAYRYH.js";
17
+ import {
18
+ emitVcrArgParseError,
19
+ handleVcrApiError,
20
+ requireVcrRepositoryAndTag,
21
+ resolveVcrScope,
22
+ validateVcrJsonOutput
23
+ } from "./chunk-JHQOIGTY.js";
24
+ import "./chunk-BUZRVER7.js";
25
+ import "./chunk-XPKWKPWA.js";
26
+ import {
27
+ tagsInspectSubcommand
28
+ } from "./chunk-RY3AVR6E.js";
29
+ import "./chunk-QH7WYDEP.js";
30
+ import "./chunk-P726GMBL.js";
31
+ import "./chunk-RB7WQKNC.js";
32
+ import "./chunk-IZOHLD5D.js";
33
+ import "./chunk-ECCWJHC6.js";
34
+ import {
35
+ getFlagsSpecification,
36
+ parseArguments,
37
+ printError
38
+ } from "./chunk-EJ6GQI6F.js";
39
+ import {
40
+ isAPIError
41
+ } from "./chunk-P6AK7SVK.js";
42
+ import "./chunk-P4QNYOFB.js";
43
+ import "./chunk-2RVK3DDN.js";
44
+ import {
45
+ output_manager_default
46
+ } from "./chunk-OX7KI3LF.js";
47
+ import "./chunk-GGP5R3FU.js";
48
+ import {
49
+ require_source
50
+ } from "./chunk-S7KYDPEM.js";
51
+ import {
52
+ __toESM
53
+ } from "./chunk-TZ2YI2VH.js";
54
+
55
+ // src/commands/vcr/tags/inspect.ts
56
+ var import_chalk = __toESM(require_source(), 1);
57
+ function printTag(tag, scope, repository) {
58
+ output_manager_default.print("\n");
59
+ output_manager_default.print(` ${import_chalk.default.cyan("ID")} ${tag.imageId}
60
+ `);
61
+ output_manager_default.print(` ${import_chalk.default.cyan("Digest")} ${tag.manifestDigest}
62
+ `);
63
+ output_manager_default.print(
64
+ ` ${import_chalk.default.cyan("Image")} ${formatTagReference(
65
+ scope.teamSlug,
66
+ scope.projectName,
67
+ repository.name,
68
+ tag.tag
69
+ )}
70
+ `
71
+ );
72
+ output_manager_default.print(` ${import_chalk.default.cyan("Type")} ${tag.kind}
73
+ `);
74
+ output_manager_default.print(` ${import_chalk.default.cyan("Arch")} ${tag.arch ?? "-"}
75
+ `);
76
+ output_manager_default.print(` ${import_chalk.default.cyan("Platform")} ${tag.platform ?? "-"}
77
+ `);
78
+ output_manager_default.print(
79
+ ` ${import_chalk.default.cyan("Size")} ${formatBytes(tag.sizeInBytes)}
80
+ `
81
+ );
82
+ output_manager_default.print(
83
+ ` ${import_chalk.default.cyan("Status")} ${formatImageStatus(tag.status)}
84
+ `
85
+ );
86
+ output_manager_default.print(
87
+ ` ${import_chalk.default.cyan("Created")} ${formatRelativeTime(tag.createdAt)}
88
+ `
89
+ );
90
+ output_manager_default.print("\n");
91
+ }
92
+ async function inspect(client, argv, telemetry) {
93
+ let parsedArgs;
94
+ try {
95
+ parsedArgs = parseArguments(
96
+ argv,
97
+ getFlagsSpecification(tagsInspectSubcommand.options)
98
+ );
99
+ } catch (err) {
100
+ emitVcrArgParseError(
101
+ client,
102
+ err,
103
+ "vcr tag inspect <repository> <tag> --project <name-or-id>"
104
+ );
105
+ printError(err);
106
+ return 1;
107
+ }
108
+ const fr = validateVcrJsonOutput(client, parsedArgs.flags);
109
+ if (typeof fr === "number") {
110
+ return fr;
111
+ }
112
+ const repository = parsedArgs.args[0];
113
+ const tag = parsedArgs.args[1];
114
+ const project = parsedArgs.flags["--project"];
115
+ telemetry.trackCliOptionProject(project);
116
+ telemetry.trackCliOptionFormat(parsedArgs.flags["--format"]);
117
+ const missingArgs = requireVcrRepositoryAndTag(
118
+ client,
119
+ repository,
120
+ tag,
121
+ fr.jsonOutput,
122
+ "vcr tag inspect <repository> <tag>"
123
+ );
124
+ if (typeof missingArgs === "number") {
125
+ return missingArgs;
126
+ }
127
+ const scope = await resolveVcrScope(client, {
128
+ project,
129
+ jsonOutput: fr.jsonOutput
130
+ });
131
+ if (typeof scope === "number") {
132
+ return scope;
133
+ }
134
+ const path = repositoryTagPath(scope, repository, tag);
135
+ output_manager_default.spinner("Fetching tag...");
136
+ try {
137
+ if (fr.jsonOutput) {
138
+ const result = await client.fetch(path);
139
+ client.stdout.write(`${JSON.stringify(result.tag, null, 2)}
140
+ `);
141
+ } else {
142
+ const [tagResult, repositoryResult] = await Promise.all([
143
+ client.fetch(path),
144
+ client.fetch(
145
+ repositoryPath(scope, repository)
146
+ )
147
+ ]);
148
+ output_manager_default.log(`${import_chalk.default.bold("Tag")} ${import_chalk.default.cyan(tag)}`);
149
+ printTag(tagResult.tag, scope, repositoryResult.repository);
150
+ }
151
+ return 0;
152
+ } catch (err) {
153
+ if (isAPIError(err)) {
154
+ return handleVcrApiError(client, err, fr.jsonOutput);
155
+ }
156
+ throw err;
157
+ } finally {
158
+ output_manager_default.stopSpinner();
159
+ }
160
+ }
161
+ export {
162
+ inspect as default
163
+ };
@@ -0,0 +1,136 @@
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
+ formatRelativeTime
9
+ } from "./chunk-I3HGCZ4E.js";
10
+ import {
11
+ repositoryPath
12
+ } from "./chunk-4QVAYRYH.js";
13
+ import {
14
+ emitVcrArgParseError,
15
+ handleVcrApiError,
16
+ requireVcrRepository,
17
+ resolveVcrScope,
18
+ validateVcrJsonOutput
19
+ } from "./chunk-JHQOIGTY.js";
20
+ import "./chunk-BUZRVER7.js";
21
+ import "./chunk-XPKWKPWA.js";
22
+ import {
23
+ inspectSubcommand
24
+ } from "./chunk-KXGWAWRV.js";
25
+ import "./chunk-RY3AVR6E.js";
26
+ import "./chunk-AUECDTMX.js";
27
+ import "./chunk-QH7WYDEP.js";
28
+ import "./chunk-P726GMBL.js";
29
+ import "./chunk-RB7WQKNC.js";
30
+ import "./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
+ } from "./chunk-P6AK7SVK.js";
40
+ import "./chunk-P4QNYOFB.js";
41
+ import "./chunk-2RVK3DDN.js";
42
+ import {
43
+ output_manager_default
44
+ } from "./chunk-OX7KI3LF.js";
45
+ import "./chunk-GGP5R3FU.js";
46
+ import {
47
+ require_source
48
+ } from "./chunk-S7KYDPEM.js";
49
+ import {
50
+ __toESM
51
+ } from "./chunk-TZ2YI2VH.js";
52
+
53
+ // src/commands/vcr/inspect.ts
54
+ var import_chalk = __toESM(require_source(), 1);
55
+ function printRepository(repository) {
56
+ output_manager_default.print("\n");
57
+ output_manager_default.print(` ${import_chalk.default.cyan("Name")} ${repository.name}
58
+ `);
59
+ output_manager_default.print(` ${import_chalk.default.cyan("ID")} ${repository.id}
60
+ `);
61
+ output_manager_default.print(` ${import_chalk.default.cyan("Project ID")} ${repository.projectId}
62
+ `);
63
+ output_manager_default.print(
64
+ ` ${import_chalk.default.cyan("Created")} ${formatRelativeTime(repository.createdAt)}
65
+ `
66
+ );
67
+ output_manager_default.print(
68
+ ` ${import_chalk.default.cyan("Updated")} ${formatRelativeTime(repository.updatedAt)}
69
+ `
70
+ );
71
+ output_manager_default.print("\n");
72
+ }
73
+ async function inspect(client, argv, telemetry) {
74
+ let parsedArgs;
75
+ try {
76
+ parsedArgs = parseArguments(
77
+ argv,
78
+ getFlagsSpecification(inspectSubcommand.options)
79
+ );
80
+ } catch (err) {
81
+ emitVcrArgParseError(
82
+ client,
83
+ err,
84
+ "vcr inspect <repository> --project <name-or-id>"
85
+ );
86
+ printError(err);
87
+ return 1;
88
+ }
89
+ const fr = validateVcrJsonOutput(client, parsedArgs.flags);
90
+ if (typeof fr === "number") {
91
+ return fr;
92
+ }
93
+ const repository = parsedArgs.args[0];
94
+ const project = parsedArgs.flags["--project"];
95
+ telemetry.trackCliOptionProject(project);
96
+ telemetry.trackCliOptionFormat(parsedArgs.flags["--format"]);
97
+ const missingRepository = requireVcrRepository(
98
+ client,
99
+ repository,
100
+ fr.jsonOutput,
101
+ "vcr inspect <repository>"
102
+ );
103
+ if (typeof missingRepository === "number") {
104
+ return missingRepository;
105
+ }
106
+ const scope = await resolveVcrScope(client, {
107
+ project,
108
+ jsonOutput: fr.jsonOutput
109
+ });
110
+ if (typeof scope === "number") {
111
+ return scope;
112
+ }
113
+ const path = repositoryPath(scope, repository);
114
+ output_manager_default.spinner("Fetching repository...");
115
+ try {
116
+ const result = await client.fetch(path);
117
+ if (fr.jsonOutput) {
118
+ client.stdout.write(`${JSON.stringify(result.repository, null, 2)}
119
+ `);
120
+ } else {
121
+ output_manager_default.log(`${import_chalk.default.bold("Repository")} ${import_chalk.default.cyan(repository)}`);
122
+ printRepository(result.repository);
123
+ }
124
+ return 0;
125
+ } catch (err) {
126
+ if (isAPIError(err)) {
127
+ return handleVcrApiError(client, err, fr.jsonOutput);
128
+ }
129
+ throw err;
130
+ } finally {
131
+ output_manager_default.stopSpinner();
132
+ }
133
+ }
134
+ export {
135
+ inspect as default
136
+ };
@@ -6,12 +6,12 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  emitAlertsScopeError
9
- } from "./chunk-L6QLQSJE.js";
9
+ } from "./chunk-GDAO4PGA.js";
10
10
  import {
11
11
  handleValidationError,
12
12
  outputError,
13
13
  validateAllProjectMutualExclusivity
14
- } from "./chunk-E2ENQE2W.js";
14
+ } from "./chunk-BUZRVER7.js";
15
15
  import {
16
16
  validateJsonOutput
17
17
  } from "./chunk-XPKWKPWA.js";
@@ -12,7 +12,7 @@ import {
12
12
  validateIntegerRangeWithDefault,
13
13
  validateTimeBound,
14
14
  validateTimeOrder
15
- } from "./chunk-E2ENQE2W.js";
15
+ } from "./chunk-BUZRVER7.js";
16
16
  import {
17
17
  getCommandFlags
18
18
  } from "./chunk-EOZFDJSY.js";
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  resolveAlertsScope
9
- } from "./chunk-L6QLQSJE.js";
9
+ } from "./chunk-GDAO4PGA.js";
10
10
  import {
11
11
  handleValidationError,
12
12
  normalizeRepeatableStringFilters,
@@ -15,7 +15,7 @@ import {
15
15
  validateOptionalIntegerRange,
16
16
  validateTimeBound,
17
17
  validateTimeOrder
18
- } from "./chunk-E2ENQE2W.js";
18
+ } from "./chunk-BUZRVER7.js";
19
19
  import {
20
20
  validateJsonOutput
21
21
  } from "./chunk-XPKWKPWA.js";
@@ -0,0 +1,214 @@
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
+ formatBytes,
9
+ formatDigest,
10
+ formatRelativeTime
11
+ } from "./chunk-I3HGCZ4E.js";
12
+ import {
13
+ repositoryTagsPath
14
+ } from "./chunk-4QVAYRYH.js";
15
+ import {
16
+ emitVcrArgParseError,
17
+ handleVcrApiError,
18
+ requireVcrRepository,
19
+ resolveVcrScope,
20
+ validateVcrChoice,
21
+ validateVcrJsonOutput
22
+ } from "./chunk-JHQOIGTY.js";
23
+ import {
24
+ outputError,
25
+ validateOptionalIntegerRange
26
+ } from "./chunk-BUZRVER7.js";
27
+ import "./chunk-XPKWKPWA.js";
28
+ import {
29
+ TAGS_SORT_BY_CHOICES,
30
+ TAGS_SORT_ORDER_CHOICES,
31
+ tagsLsSubcommand
32
+ } from "./chunk-RY3AVR6E.js";
33
+ import {
34
+ AGENT_REASON
35
+ } from "./chunk-QH7WYDEP.js";
36
+ import "./chunk-P726GMBL.js";
37
+ import {
38
+ table
39
+ } from "./chunk-VKBYAWTL.js";
40
+ import "./chunk-RB7WQKNC.js";
41
+ import {
42
+ outputAgentError
43
+ } from "./chunk-IZOHLD5D.js";
44
+ import "./chunk-ECCWJHC6.js";
45
+ import {
46
+ getFlagsSpecification,
47
+ parseArguments,
48
+ printError
49
+ } from "./chunk-EJ6GQI6F.js";
50
+ import {
51
+ isAPIError
52
+ } from "./chunk-P6AK7SVK.js";
53
+ import "./chunk-P4QNYOFB.js";
54
+ import "./chunk-2RVK3DDN.js";
55
+ import {
56
+ output_manager_default
57
+ } from "./chunk-OX7KI3LF.js";
58
+ import "./chunk-GGP5R3FU.js";
59
+ import {
60
+ require_source
61
+ } from "./chunk-S7KYDPEM.js";
62
+ import {
63
+ __toESM
64
+ } from "./chunk-TZ2YI2VH.js";
65
+
66
+ // src/commands/vcr/tags/ls.ts
67
+ var import_chalk = __toESM(require_source(), 1);
68
+ function printTags(list) {
69
+ if (list.tags.length === 0) {
70
+ output_manager_default.log("No tags found.");
71
+ return;
72
+ }
73
+ const headers = ["Tag", "Image ID", "Digest", "Arch", "Size", "Created"].map(
74
+ (h) => import_chalk.default.cyan(h)
75
+ );
76
+ const rows = [
77
+ headers,
78
+ ...list.tags.map((tag) => [
79
+ import_chalk.default.bold(tag.tag),
80
+ import_chalk.default.dim(tag.imageId),
81
+ import_chalk.default.dim(formatDigest(tag.manifestDigest)),
82
+ tag.arch ?? "-",
83
+ formatBytes(tag.sizeInBytes),
84
+ formatRelativeTime(tag.createdAt)
85
+ ])
86
+ ];
87
+ const tableOutput = table(rows, { hsep: 3 }).split("\n").map((line) => line.trimEnd()).join("\n").replace(/^/gm, " ");
88
+ output_manager_default.print(`
89
+ ${tableOutput}
90
+ `);
91
+ if (list.nextCursor) {
92
+ output_manager_default.log(
93
+ `More results available. Re-run with \`--cursor ${list.nextCursor}\`.`
94
+ );
95
+ }
96
+ }
97
+ async function ls(client, argv, telemetry) {
98
+ let parsedArgs;
99
+ try {
100
+ parsedArgs = parseArguments(
101
+ argv,
102
+ getFlagsSpecification(tagsLsSubcommand.options)
103
+ );
104
+ } catch (err) {
105
+ emitVcrArgParseError(
106
+ client,
107
+ err,
108
+ "vcr tag ls <repository> --project <name-or-id>"
109
+ );
110
+ printError(err);
111
+ return 1;
112
+ }
113
+ const fr = validateVcrJsonOutput(client, parsedArgs.flags);
114
+ if (typeof fr === "number") {
115
+ return fr;
116
+ }
117
+ const repository = parsedArgs.args[0];
118
+ const project = parsedArgs.flags["--project"];
119
+ const cursor = parsedArgs.flags["--cursor"];
120
+ const limitFlag = parsedArgs.flags["--limit"];
121
+ const sortBy = parsedArgs.flags["--sort-by"];
122
+ const sortOrder = parsedArgs.flags["--sort-order"];
123
+ telemetry.trackCliOptionProject(project);
124
+ telemetry.trackCliOptionLimit(limitFlag);
125
+ telemetry.trackCliOptionCursor(cursor);
126
+ telemetry.trackCliOptionSortBy(sortBy);
127
+ telemetry.trackCliOptionSortOrder(sortOrder);
128
+ telemetry.trackCliOptionFormat(parsedArgs.flags["--format"]);
129
+ const missingRepository = requireVcrRepository(
130
+ client,
131
+ repository,
132
+ fr.jsonOutput,
133
+ "vcr tag ls <repository>"
134
+ );
135
+ if (typeof missingRepository === "number") {
136
+ return missingRepository;
137
+ }
138
+ const limitResult = validateOptionalIntegerRange(limitFlag, {
139
+ flag: "--limit",
140
+ min: 1,
141
+ max: 100
142
+ });
143
+ if (!limitResult.valid) {
144
+ outputAgentError(
145
+ client,
146
+ {
147
+ status: "error",
148
+ reason: AGENT_REASON.INVALID_ARGUMENTS,
149
+ message: limitResult.message
150
+ },
151
+ 1
152
+ );
153
+ return outputError(
154
+ client,
155
+ fr.jsonOutput,
156
+ limitResult.code,
157
+ limitResult.message
158
+ );
159
+ }
160
+ const sortByError = validateVcrChoice(
161
+ client,
162
+ "--sort-by",
163
+ sortBy,
164
+ TAGS_SORT_BY_CHOICES,
165
+ fr.jsonOutput
166
+ );
167
+ if (typeof sortByError === "number") {
168
+ return sortByError;
169
+ }
170
+ const sortOrderError = validateVcrChoice(
171
+ client,
172
+ "--sort-order",
173
+ sortOrder,
174
+ TAGS_SORT_ORDER_CHOICES,
175
+ fr.jsonOutput
176
+ );
177
+ if (typeof sortOrderError === "number") {
178
+ return sortOrderError;
179
+ }
180
+ const scope = await resolveVcrScope(client, {
181
+ project,
182
+ jsonOutput: fr.jsonOutput
183
+ });
184
+ if (typeof scope === "number") {
185
+ return scope;
186
+ }
187
+ const path = repositoryTagsPath(scope, repository, {
188
+ limit: limitResult.value,
189
+ cursor,
190
+ sortBy,
191
+ sortOrder
192
+ });
193
+ output_manager_default.spinner("Fetching tags...");
194
+ try {
195
+ const list = await client.fetch(path);
196
+ if (fr.jsonOutput) {
197
+ client.stdout.write(`${JSON.stringify(list, null, 2)}
198
+ `);
199
+ } else {
200
+ printTags(list);
201
+ }
202
+ return 0;
203
+ } catch (err) {
204
+ if (isAPIError(err)) {
205
+ return handleVcrApiError(client, err, fr.jsonOutput);
206
+ }
207
+ throw err;
208
+ } finally {
209
+ output_manager_default.stopSpinner();
210
+ }
211
+ }
212
+ export {
213
+ ls as default
214
+ };
@@ -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";