vercel 50.41.0 → 50.43.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 (53) hide show
  1. package/dist/chunks/{chunk-JZW2NDIU.js → chunk-4YCYEG2P.js} +1 -1
  2. package/dist/chunks/{chunk-URLOPZNH.js → chunk-6LZPRERB.js} +1 -1
  3. package/dist/chunks/{chunk-J7HJHD6D.js → chunk-6N76O7HL.js} +1 -1
  4. package/dist/chunks/{chunk-WTAJBCJ3.js → chunk-IS2HEMF4.js} +20 -28
  5. package/dist/chunks/{chunk-YJBNM26E.js → chunk-JJXA2DQW.js} +1 -1
  6. package/dist/chunks/{chunk-6TZS66I4.js → chunk-LPOJODAE.js} +14 -4
  7. package/dist/chunks/{chunk-V34CVZ57.js → chunk-LRL5LVRW.js} +2 -2
  8. package/dist/chunks/{chunk-UWKGNLZB.js → chunk-MRMGEHWD.js} +1 -1
  9. package/dist/chunks/{chunk-S5GAFVRR.js → chunk-N3CPHW7G.js} +1 -1
  10. package/dist/chunks/chunk-NELCIT4M.js +178 -0
  11. package/dist/chunks/{chunk-I2XIZ2I5.js → chunk-NWDCZ56X.js} +1 -1
  12. package/dist/chunks/{chunk-RXNZNJ37.js → chunk-PGAXAJ3S.js} +17 -7
  13. package/dist/chunks/{chunk-K3GPD72H.js → chunk-POULUT5C.js} +1 -1
  14. package/dist/chunks/{chunk-HH4JLNPA.js → chunk-QGF2WOTI.js} +1 -1
  15. package/dist/chunks/{chunk-7UXVJVY7.js → chunk-RLQ4HYV2.js} +243 -1781
  16. package/dist/chunks/{chunk-CZDMSM5L.js → chunk-S4YIOKSN.js} +3 -3
  17. package/dist/chunks/{chunk-E6MNDN35.js → chunk-T6NT6N57.js} +5 -5
  18. package/dist/chunks/{chunk-U6QYLIN2.js → chunk-TWZWQGBN.js} +4 -0
  19. package/dist/chunks/chunk-U3WLEFHU.js +2886 -0
  20. package/dist/chunks/{chunk-TEJWXSIW.js → chunk-UJ4HWFC7.js} +2 -2
  21. package/dist/chunks/{chunk-YNTDMBOE.js → chunk-XDEOTUO6.js} +17 -1533
  22. package/dist/chunks/{chunk-5DS2KQFQ.js → chunk-XRINPEC5.js} +2 -2
  23. package/dist/chunks/{chunk-M3WH7C2Z.js → chunk-XVL4TIJL.js} +6 -6
  24. package/dist/chunks/{chunk-5Y7GSP7F.js → chunk-Y5YCSB6X.js} +1 -1
  25. package/dist/chunks/{chunk-JLG2G4QX.js → chunk-Z6BYDVNY.js} +886 -4
  26. package/dist/chunks/{compile-vercel-config-GNWLETKI.js → compile-vercel-config-EIX3WUIU.js} +2 -2
  27. package/dist/chunks/{delete-4EE2EJ2L.js → delete-IVGKISJP.js} +4 -4
  28. package/dist/chunks/{disable-XZXZTU2J.js → disable-W4IDVFE2.js} +4 -4
  29. package/dist/chunks/{discard-MVYVGMNG.js → discard-O3Z5KEKS.js} +4 -4
  30. package/dist/chunks/{edit-J67G7FQQ.js → edit-VCKXJ5PI.js} +6 -6
  31. package/dist/chunks/{enable-NZLPSH32.js → enable-W6LITRKZ.js} +4 -4
  32. package/dist/chunks/{export-ONEPEKIE.js → export-6NAP7EMV.js} +4 -4
  33. package/dist/chunks/{list-XTMDLJ6T.js → list-7HDEUZMZ.js} +3 -3
  34. package/dist/chunks/{list-LHL5Z2LJ.js → list-W33KGD4I.js} +3 -3
  35. package/dist/chunks/{publish-WDOMVWUC.js → publish-RI3FRWUA.js} +4 -4
  36. package/dist/chunks/{query-A2TQSSDJ.js → query-5YQQ62WD.js} +53 -107
  37. package/dist/chunks/{reorder-4XDBBJNP.js → reorder-7GWG5VLG.js} +4 -4
  38. package/dist/chunks/{restore-GDXNZJ3X.js → restore-AOSI5KWX.js} +4 -4
  39. package/dist/chunks/{routes-HQB42MQG.js → routes-OFD6HJOW.js} +2 -2
  40. package/dist/chunks/schema-QL4EUCYG.js +153 -0
  41. package/dist/commands/build/index.js +12 -12
  42. package/dist/commands/deploy/index.js +83 -15
  43. package/dist/commands/dev/index.js +183 -55
  44. package/dist/commands/env/index.js +8 -8
  45. package/dist/commands/link/index.js +10 -10
  46. package/dist/commands/list/index.js +5 -5
  47. package/dist/commands-bulk.js +6716 -2820
  48. package/dist/index.js +194 -84
  49. package/dist/version.mjs +1 -1
  50. package/package.json +23 -21
  51. package/dist/chunks/chunk-5C5NREZ5.js +0 -252
  52. package/dist/chunks/chunk-TUP5ROJJ.js +0 -358
  53. package/dist/chunks/schema-BSCWPTKY.js +0 -192
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_lib
9
- } from "./chunk-7UXVJVY7.js";
9
+ } from "./chunk-RLQ4HYV2.js";
10
10
  import {
11
11
  packageName
12
12
  } from "./chunk-A4NVECX5.js";
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_end_of_stream,
9
9
  require_once
10
- } from "./chunk-7UXVJVY7.js";
10
+ } from "./chunk-RLQ4HYV2.js";
11
11
  import {
12
12
  require_signal_exit
13
13
  } from "./chunk-ZQKJVHXY.js";
@@ -8,7 +8,7 @@ import {
8
8
  VERCEL_DIR,
9
9
  VERCEL_DIR_PROJECT,
10
10
  require_lib
11
- } from "./chunk-7UXVJVY7.js";
11
+ } from "./chunk-RLQ4HYV2.js";
12
12
  import {
13
13
  require_dist
14
14
  } from "./chunk-ZQKJVHXY.js";
@@ -13,31 +13,31 @@ import {
13
13
  var schemaSubcommand = {
14
14
  name: "schema",
15
15
  aliases: [],
16
- description: "List available events, dimensions, and measures.",
16
+ description: "List available metrics or inspect a specific metric.",
17
17
  arguments: [],
18
18
  options: [
19
19
  {
20
- name: "event",
21
- shorthand: "e",
20
+ name: "metric",
21
+ shorthand: "m",
22
22
  type: String,
23
23
  deprecated: false,
24
- description: "Show details for a specific event",
24
+ description: "Show details for a specific metric",
25
25
  argument: "NAME"
26
26
  },
27
27
  formatOption
28
28
  ],
29
29
  examples: [
30
30
  {
31
- name: "List all events",
31
+ name: "List all metrics",
32
32
  value: `${packageName} metrics schema`
33
33
  },
34
34
  {
35
- name: "Show event details",
36
- value: `${packageName} metrics schema -e functionExecution`
35
+ name: "Show metric details",
36
+ value: `${packageName} metrics schema --metric vercel.function_execution`
37
37
  },
38
38
  {
39
39
  name: "Schema as JSON for agents",
40
- value: `${packageName} metrics schema -e edgeRequest --format=json`
40
+ value: `${packageName} metrics schema --metric vercel.edge_requests.count --format=json`
41
41
  }
42
42
  ]
43
43
  };
@@ -63,19 +63,11 @@ var metricsCommand = {
63
63
  ],
64
64
  options: [
65
65
  {
66
- name: "event",
67
- shorthand: "e",
68
- type: String,
69
- deprecated: false,
70
- description: "Event type to query (e.g., edgeRequest, functionExecution)",
71
- argument: "NAME"
72
- },
73
- {
74
- name: "measure",
66
+ name: "metric",
75
67
  shorthand: "m",
76
68
  type: String,
77
69
  deprecated: false,
78
- description: "Measurement to aggregate (default: count)",
70
+ description: "Metric id to query (e.g., vercel.edge_requests.count)",
79
71
  argument: "NAME"
80
72
  },
81
73
  {
@@ -154,39 +146,39 @@ var metricsCommand = {
154
146
  examples: [
155
147
  {
156
148
  name: "5xx errors by error code in the last hour",
157
- value: `${packageName} metrics -e functionExecution -f "httpStatus ge 500" --group-by errorCode --since 1h`
149
+ value: `${packageName} metrics --metric vercel.function_execution.count -f "http_status ge 500" --group-by error_code --since 1h`
158
150
  },
159
151
  {
160
152
  name: "Function invocations by HTTP status code",
161
- value: `${packageName} metrics -e functionExecution --group-by httpStatus --since 6h`
153
+ value: `${packageName} metrics --metric vercel.function_execution.count --group-by http_status --since 6h`
162
154
  },
163
155
  {
164
156
  name: "Function duration by route",
165
- value: `${packageName} metrics -e functionExecution -m functionDurationMs -a avg --group-by route --since 1h`
157
+ value: `${packageName} metrics --metric vercel.function_execution.request_duration_ms -a avg --group-by route --since 1h`
166
158
  },
167
159
  {
168
160
  name: "AI Gateway costs by provider",
169
- value: `${packageName} metrics -e aiGatewayRequest -m cost -a sum --group-by aiProvider --since 7d`
161
+ value: `${packageName} metrics --metric vercel.ai_gateway_request.cost -a sum --group-by ai_provider --since 7d`
170
162
  },
171
163
  {
172
164
  name: "Core Web Vitals (LCP) by route",
173
- value: `${packageName} metrics -e speedInsightsMetric -m lcp -a p75 --group-by route --since 7d`
165
+ value: `${packageName} metrics --metric vercel.speed_insights_metric.lcp -a p75 --group-by route --since 7d`
174
166
  },
175
167
  {
176
- name: "List available events",
168
+ name: "List available metrics",
177
169
  value: `${packageName} metrics schema`
178
170
  },
179
171
  {
180
172
  name: "Function executions matching a path pattern",
181
- value: `${packageName} metrics -e functionExecution -f "contains(requestPath, '/api')" --group-by route --since 1h`
173
+ value: `${packageName} metrics --metric vercel.function_execution.count -f "contains(request_path, '/api')" --group-by route --since 1h`
182
174
  },
183
175
  {
184
- name: "Show schema for an event",
185
- value: `${packageName} metrics schema -e edgeRequest`
176
+ name: "Show schema for a metric prefix",
177
+ value: `${packageName} metrics schema --metric vercel.edge_requests`
186
178
  },
187
179
  {
188
180
  name: "Team-wide function executions by project",
189
- value: `${packageName} metrics --all -e functionExecution --group-by projectId --since 24h`
181
+ value: `${packageName} metrics --all --metric vercel.function_execution.count --group-by project_id --since 24h`
190
182
  }
191
183
  ]
192
184
  };
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  TelemetryClient
9
- } from "./chunk-TUP5ROJJ.js";
9
+ } from "./chunk-U3WLEFHU.js";
10
10
 
11
11
  // src/util/telemetry/commands/routes/index.ts
12
12
  var RoutesTelemetryClient = class extends TelemetryClient {
@@ -5,8 +5,9 @@ const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
- VERCEL_DIR
9
- } from "./chunk-7UXVJVY7.js";
8
+ VERCEL_DIR,
9
+ isVercelTomlEnabled
10
+ } from "./chunk-RLQ4HYV2.js";
10
11
  import {
11
12
  ConflictingConfigFiles,
12
13
  InvalidLocalConfig,
@@ -26,11 +27,20 @@ function getLocalPathConfig(prefix) {
26
27
  return path.resolve(prefix, customPath);
27
28
  }
28
29
  const vercelConfigPath = path.join(prefix, "vercel.json");
30
+ const vercelTomlPath = path.join(prefix, "vercel.toml");
29
31
  const nowConfigPath = path.join(prefix, "now.json");
30
32
  const vercelConfigExists = existsSync(vercelConfigPath);
33
+ const vercelTomlExists = isVercelTomlEnabled() && existsSync(vercelTomlPath);
31
34
  const nowConfigExists = existsSync(nowConfigPath);
32
- if (nowConfigExists && vercelConfigExists) {
33
- throw new ConflictingConfigFiles([vercelConfigPath, nowConfigPath]);
35
+ const foundConfigs = [];
36
+ if (vercelConfigExists)
37
+ foundConfigs.push(vercelConfigPath);
38
+ if (vercelTomlExists)
39
+ foundConfigs.push(vercelTomlPath);
40
+ if (nowConfigExists)
41
+ foundConfigs.push(nowConfigPath);
42
+ if (foundConfigs.length > 1) {
43
+ throw new ConflictingConfigFiles(foundConfigs);
34
44
  }
35
45
  const compiledConfigPath = path.join(prefix, VERCEL_DIR, "vercel.json");
36
46
  const compiledConfigExists = existsSync(compiledConfigPath);
@@ -7,12 +7,12 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  AGENT_REASON,
9
9
  AGENT_STATUS
10
- } from "./chunk-U6QYLIN2.js";
10
+ } from "./chunk-TWZWQGBN.js";
11
11
  import {
12
12
  buildCommandWithYes,
13
13
  getLinkedProject,
14
14
  outputAgentError
15
- } from "./chunk-7UXVJVY7.js";
15
+ } from "./chunk-RLQ4HYV2.js";
16
16
  import {
17
17
  getCommandName,
18
18
  getCommandNamePlain,
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  global_path_default
9
- } from "./chunk-7UXVJVY7.js";
9
+ } from "./chunk-RLQ4HYV2.js";
10
10
  import {
11
11
  output_manager_default
12
12
  } from "./chunk-ZQKJVHXY.js";
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  STANDARD_ENVIRONMENTS
9
- } from "./chunk-7UXVJVY7.js";
9
+ } from "./chunk-RLQ4HYV2.js";
10
10
  import {
11
11
  getCommandName,
12
12
  require_lib
@@ -0,0 +1,178 @@
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
+ isAPIError
9
+ } from "./chunk-A4NVECX5.js";
10
+ import {
11
+ output_manager_default
12
+ } from "./chunk-ZQKJVHXY.js";
13
+
14
+ // src/commands/metrics/output.ts
15
+ function getRollupColumnName(metric, aggregation) {
16
+ return `${metric.replace(/\./g, "_")}_${aggregation}`;
17
+ }
18
+ function formatQueryJson(query, response) {
19
+ return JSON.stringify(
20
+ {
21
+ query,
22
+ summary: response.summary ?? [],
23
+ data: response.data ?? [],
24
+ statistics: response.statistics ?? {}
25
+ },
26
+ null,
27
+ 2
28
+ );
29
+ }
30
+ function formatErrorJson(code, message, allowedValues) {
31
+ const error = {
32
+ code,
33
+ message
34
+ };
35
+ if (allowedValues && allowedValues.length > 0) {
36
+ error.allowedValues = allowedValues;
37
+ }
38
+ return JSON.stringify({ error }, null, 2);
39
+ }
40
+ function handleApiError(err, jsonOutput, client, overrides = {}) {
41
+ let code;
42
+ let message;
43
+ const override = overrides[err.status];
44
+ if (override) {
45
+ code = override.code || err.code || "BAD_REQUEST";
46
+ message = override.message;
47
+ } else {
48
+ switch (err.status) {
49
+ case 402:
50
+ code = err.code || "PAYMENT_REQUIRED";
51
+ message = err.serverMessage || "This feature requires an Observability Plus subscription. Upgrade at https://vercel.com/dashboard/settings/billing";
52
+ break;
53
+ case 429:
54
+ code = err.code || "RATE_LIMITED";
55
+ message = err.serverMessage || "You have reached the metrics query rate limit. Please wait and try again. If you need a higher limit, request one from your Vercel account team.";
56
+ break;
57
+ case 403:
58
+ code = "FORBIDDEN";
59
+ message = "You do not have permission to query metrics for this project/team.";
60
+ break;
61
+ case 500:
62
+ code = "INTERNAL_ERROR";
63
+ message = "An internal error occurred. Please try again later.";
64
+ break;
65
+ case 504:
66
+ code = "TIMEOUT";
67
+ message = "The query timed out. Try a shorter time range or fewer groups.";
68
+ break;
69
+ case 400:
70
+ code = err.code || "BAD_REQUEST";
71
+ message = err.serverMessage || `API error (${err.status})`;
72
+ break;
73
+ default:
74
+ code = err.code || "BAD_REQUEST";
75
+ message = err.serverMessage || `API error (${err.status})`;
76
+ }
77
+ }
78
+ if (jsonOutput) {
79
+ client.stdout.write(formatErrorJson(code, message, err.allowedValues));
80
+ } else {
81
+ output_manager_default.error(message);
82
+ if (err.allowedValues && err.allowedValues.length > 0) {
83
+ output_manager_default.print(`
84
+ Available values: ${err.allowedValues.join(", ")}
85
+ `);
86
+ }
87
+ }
88
+ return 1;
89
+ }
90
+
91
+ // src/commands/metrics/schema-api.ts
92
+ function toMetricDetail(metric) {
93
+ return {
94
+ id: metric.id,
95
+ description: metric.description,
96
+ dimensions: metric.dimensions,
97
+ unit: metric.unit,
98
+ aggregations: metric.aggregations,
99
+ defaultAggregation: metric.defaultAggregation
100
+ };
101
+ }
102
+ function getDefaultAggregation(detail, metricId) {
103
+ return detail.find((metric) => metric.id === metricId)?.defaultAggregation;
104
+ }
105
+ async function fetchMetricList(client, accountId) {
106
+ const { metrics } = await client.fetch(
107
+ "/v2/observability/schema",
108
+ { accountId }
109
+ );
110
+ return metrics;
111
+ }
112
+ async function fetchMetricDetail(client, accountId, metricId) {
113
+ const detail = await client.fetch(
114
+ `/v2/observability/schema/${encodeURIComponent(metricId)}`,
115
+ { accountId }
116
+ );
117
+ return detail.map(toMetricDetail);
118
+ }
119
+ async function fetchMetricListOrExit(client, accountId, jsonOutput) {
120
+ try {
121
+ return await fetchMetricList(client, accountId);
122
+ } catch (err) {
123
+ if (isAPIError(err)) {
124
+ return handleApiError(err, jsonOutput, client, {
125
+ 401: {
126
+ code: "SCHEMA_UNAUTHORIZED",
127
+ message: "The metrics schema API request was not authorized. Run `vercel login` to authenticate and `vercel switch` to select a team, then try again."
128
+ },
129
+ 403: {
130
+ code: "SCHEMA_UNAUTHORIZED",
131
+ message: "The metrics schema API request was not authorized. Run `vercel login` to authenticate and `vercel switch` to select a team, then try again."
132
+ }
133
+ });
134
+ }
135
+ const message = err instanceof Error ? `Failed to fetch metrics schema: ${err.message}` : `Failed to fetch metrics schema: ${String(err)}`;
136
+ if (jsonOutput) {
137
+ client.stdout.write(formatErrorJson("SCHEMA_FETCH_FAILED", message));
138
+ } else {
139
+ output_manager_default.error(message);
140
+ }
141
+ return 1;
142
+ }
143
+ }
144
+ async function fetchMetricDetailOrExit(client, accountId, metricId, jsonOutput) {
145
+ try {
146
+ return await fetchMetricDetail(client, accountId, metricId);
147
+ } catch (err) {
148
+ if (isAPIError(err)) {
149
+ return handleApiError(err, jsonOutput, client, {
150
+ 401: {
151
+ code: "SCHEMA_UNAUTHORIZED",
152
+ message: "The metrics schema API request was not authorized. Run `vercel login` to authenticate and `vercel switch` to select a team, then try again."
153
+ },
154
+ 403: {
155
+ code: "SCHEMA_UNAUTHORIZED",
156
+ message: "The metrics schema API request was not authorized. Run `vercel login` to authenticate and `vercel switch` to select a team, then try again."
157
+ }
158
+ });
159
+ }
160
+ const message = err instanceof Error ? `Failed to fetch metrics schema: ${err.message}` : `Failed to fetch metrics schema: ${String(err)}`;
161
+ if (jsonOutput) {
162
+ client.stdout.write(formatErrorJson("SCHEMA_FETCH_FAILED", message));
163
+ } else {
164
+ output_manager_default.error(message);
165
+ }
166
+ return 1;
167
+ }
168
+ }
169
+
170
+ export {
171
+ getRollupColumnName,
172
+ formatQueryJson,
173
+ formatErrorJson,
174
+ handleApiError,
175
+ getDefaultAggregation,
176
+ fetchMetricListOrExit,
177
+ fetchMetricDetailOrExit
178
+ };
@@ -11,7 +11,7 @@ import {
11
11
  getTeamById,
12
12
  getUser,
13
13
  getVercelDirectory
14
- } from "./chunk-7UXVJVY7.js";
14
+ } from "./chunk-RLQ4HYV2.js";
15
15
  import {
16
16
  TeamDeleted
17
17
  } from "./chunk-A4NVECX5.js";
@@ -9,7 +9,7 @@ import {
9
9
  printIndications,
10
10
  require_dist as require_dist2,
11
11
  sleep
12
- } from "./chunk-YNTDMBOE.js";
12
+ } from "./chunk-XDEOTUO6.js";
13
13
  import {
14
14
  suggestNextCommands
15
15
  } from "./chunk-LOS7HHU3.js";
@@ -19,13 +19,13 @@ import {
19
19
  } from "./chunk-U5J73OA3.js";
20
20
  import {
21
21
  getScope
22
- } from "./chunk-I2XIZ2I5.js";
22
+ } from "./chunk-NWDCZ56X.js";
23
23
  import {
24
24
  showPluginTipIfNeeded
25
- } from "./chunk-UWKGNLZB.js";
25
+ } from "./chunk-MRMGEHWD.js";
26
26
  import {
27
27
  CommandTimeout
28
- } from "./chunk-JLG2G4QX.js";
28
+ } from "./chunk-Z6BYDVNY.js";
29
29
  import {
30
30
  ua_default
31
31
  } from "./chunk-Q6BEDVOU.js";
@@ -35,7 +35,7 @@ import {
35
35
  require_dist as require_dist3,
36
36
  require_lib3 as require_lib,
37
37
  require_pluralize
38
- } from "./chunk-7UXVJVY7.js";
38
+ } from "./chunk-RLQ4HYV2.js";
39
39
  import {
40
40
  require_ms,
41
41
  stamp_default
@@ -4444,7 +4444,9 @@ async function processDeployment({
4444
4444
  stopSpinner();
4445
4445
  return event.payload;
4446
4446
  }
4447
- if (event.type === "ready" && (event.payload.checksState ? event.payload.checksState === "completed" : true) && !withFullLogs) {
4447
+ if (event.type === "ready" && !withFullLogs) {
4448
+ const v1ChecksPending = event.payload.checksState && event.payload.checksState !== "completed";
4449
+ const v2ChecksPending = event.payload.checks?.["deployment-alias"]?.state === "pending";
4448
4450
  stopSpinner();
4449
4451
  process.stderr.write(eraseLines(2));
4450
4452
  const isProdDeployment = event.payload.target === "production";
@@ -4458,7 +4460,11 @@ async function processDeployment({
4458
4460
  ) + `
4459
4461
  `
4460
4462
  );
4461
- output_manager_default.spinner("Completing...", 0);
4463
+ if (v1ChecksPending || v2ChecksPending) {
4464
+ output_manager_default.spinner("Running Checks...", 0);
4465
+ } else {
4466
+ output_manager_default.spinner("Completing...", 0);
4467
+ }
4462
4468
  }
4463
4469
  if (event.type === "checks-running" && !withFullLogs) {
4464
4470
  output_manager_default.spinner("Running Checks...", 0);
@@ -4467,6 +4473,10 @@ async function processDeployment({
4467
4473
  stopSpinner();
4468
4474
  return event.payload;
4469
4475
  }
4476
+ if (event.type === "checks-v2-failed") {
4477
+ stopSpinner();
4478
+ return event.payload;
4479
+ }
4470
4480
  if (event.type === "error") {
4471
4481
  stopSpinner();
4472
4482
  if (!archive) {
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getEnvTargetPlaceholder
9
- } from "./chunk-7UXVJVY7.js";
9
+ } from "./chunk-RLQ4HYV2.js";
10
10
  import {
11
11
  packageName,
12
12
  yesOption
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  formatCondition,
9
9
  formatTransform
10
- } from "./chunk-V34CVZ57.js";
10
+ } from "./chunk-LRL5LVRW.js";
11
11
  import {
12
12
  output_manager_default
13
13
  } from "./chunk-ZQKJVHXY.js";