vercel 51.4.0 → 51.5.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.
- package/dist/chunks/{chunk-PBGN54ZH.js → chunk-6CWW4JIG.js} +1 -1
- package/dist/chunks/{chunk-4RBF6ZDU.js → chunk-BHDZCUTT.js} +13 -31
- package/dist/chunks/{chunk-3GDNTBCE.js → chunk-FBY3IEDZ.js} +1 -1
- package/dist/chunks/{chunk-ELUNQCFN.js → chunk-QIHIANBF.js} +5 -3
- package/dist/chunks/{chunk-UJ4JXXED.js → chunk-SG4QOQTF.js} +216 -77
- package/dist/chunks/{query-VNBKOI65.js → query-X6Q4ZSZO.js} +6 -4
- package/dist/chunks/{schema-FUOKCZTW.js → schema-IMD4VV73.js} +49 -19
- package/dist/commands/deploy/index.js +16 -16
- package/dist/commands/env/index.js +2 -2
- package/dist/commands/link/index.js +2 -2
- package/dist/commands-bulk.js +2297 -1379
- package/dist/help.js +1 -1
- package/dist/index.js +33 -12
- package/dist/version.mjs +1 -1
- package/package.json +12 -12
|
@@ -16,18 +16,8 @@ var schemaSubcommand = {
|
|
|
16
16
|
name: "schema",
|
|
17
17
|
aliases: [],
|
|
18
18
|
description: "List available metrics or inspect a specific metric.",
|
|
19
|
-
arguments: [],
|
|
20
|
-
options: [
|
|
21
|
-
{
|
|
22
|
-
name: "metric",
|
|
23
|
-
shorthand: "m",
|
|
24
|
-
type: String,
|
|
25
|
-
deprecated: false,
|
|
26
|
-
description: "Show details for a specific metric",
|
|
27
|
-
argument: "NAME"
|
|
28
|
-
},
|
|
29
|
-
formatOption
|
|
30
|
-
],
|
|
19
|
+
arguments: [{ name: "metric-or-prefix", required: false }],
|
|
20
|
+
options: [formatOption],
|
|
31
21
|
examples: [
|
|
32
22
|
{
|
|
33
23
|
name: "List all metrics",
|
|
@@ -35,11 +25,11 @@ var schemaSubcommand = {
|
|
|
35
25
|
},
|
|
36
26
|
{
|
|
37
27
|
name: "Show metric details",
|
|
38
|
-
value: `${packageName} metrics schema
|
|
28
|
+
value: `${packageName} metrics schema vercel.function_invocation`
|
|
39
29
|
},
|
|
40
30
|
{
|
|
41
31
|
name: "Schema as JSON for agents",
|
|
42
|
-
value: `${packageName} metrics schema
|
|
32
|
+
value: `${packageName} metrics schema vercel.request.count --format=json`
|
|
43
33
|
}
|
|
44
34
|
]
|
|
45
35
|
};
|
|
@@ -47,7 +37,7 @@ var metricsCommand = {
|
|
|
47
37
|
name: "metrics",
|
|
48
38
|
aliases: [],
|
|
49
39
|
description: "Query observability metrics for your Vercel project or team.",
|
|
50
|
-
arguments: [],
|
|
40
|
+
arguments: [{ name: "metric-id", required: false }],
|
|
51
41
|
subcommands: [
|
|
52
42
|
// Hidden placeholder so the help synopsis renders [command] as optional
|
|
53
43
|
// (help.ts treats `command` as required unless a subcommand has `default: true`)
|
|
@@ -64,14 +54,6 @@ var metricsCommand = {
|
|
|
64
54
|
schemaSubcommand
|
|
65
55
|
],
|
|
66
56
|
options: [
|
|
67
|
-
{
|
|
68
|
-
name: "metric",
|
|
69
|
-
shorthand: "m",
|
|
70
|
-
type: String,
|
|
71
|
-
deprecated: false,
|
|
72
|
-
description: "Metric id to query (e.g., vercel.edge_requests.count)",
|
|
73
|
-
argument: "NAME"
|
|
74
|
-
},
|
|
75
57
|
{
|
|
76
58
|
name: "aggregation",
|
|
77
59
|
shorthand: "a",
|
|
@@ -148,23 +130,23 @@ var metricsCommand = {
|
|
|
148
130
|
examples: [
|
|
149
131
|
{
|
|
150
132
|
name: "5xx errors by error code in the last hour",
|
|
151
|
-
value: `${packageName} metrics
|
|
133
|
+
value: `${packageName} metrics vercel.function_invocation.count -f "http_status ge 500" --group-by error_code --since 1h`
|
|
152
134
|
},
|
|
153
135
|
{
|
|
154
136
|
name: "Function invocations by HTTP status code",
|
|
155
|
-
value: `${packageName} metrics
|
|
137
|
+
value: `${packageName} metrics vercel.function_invocation.count --group-by http_status --since 6h`
|
|
156
138
|
},
|
|
157
139
|
{
|
|
158
140
|
name: "Function duration by route",
|
|
159
|
-
value: `${packageName} metrics
|
|
141
|
+
value: `${packageName} metrics vercel.function_invocation.request_duration_ms -a avg --group-by route --since 1h`
|
|
160
142
|
},
|
|
161
143
|
{
|
|
162
144
|
name: "AI Gateway costs by provider",
|
|
163
|
-
value: `${packageName} metrics
|
|
145
|
+
value: `${packageName} metrics vercel.ai_gateway_request.cost -a sum --group-by ai_provider --since 7d`
|
|
164
146
|
},
|
|
165
147
|
{
|
|
166
148
|
name: "Core Web Vitals (LCP) by route",
|
|
167
|
-
value: `${packageName} metrics
|
|
149
|
+
value: `${packageName} metrics vercel.speed_insights_metric.lcp -a p75 --group-by route --since 7d`
|
|
168
150
|
},
|
|
169
151
|
{
|
|
170
152
|
name: "List available metrics",
|
|
@@ -172,15 +154,15 @@ var metricsCommand = {
|
|
|
172
154
|
},
|
|
173
155
|
{
|
|
174
156
|
name: "Function executions matching a path pattern",
|
|
175
|
-
value: `${packageName} metrics
|
|
157
|
+
value: `${packageName} metrics vercel.function_invocation.count -f "contains(request_path, '/api')" --group-by route --since 1h`
|
|
176
158
|
},
|
|
177
159
|
{
|
|
178
160
|
name: "Show schema for a metric prefix",
|
|
179
|
-
value: `${packageName} metrics schema
|
|
161
|
+
value: `${packageName} metrics schema vercel.request`
|
|
180
162
|
},
|
|
181
163
|
{
|
|
182
164
|
name: "Team-wide function executions by project",
|
|
183
|
-
value: `${packageName} metrics --all
|
|
165
|
+
value: `${packageName} metrics --all vercel.function_invocation.count --group-by project_id --since 24h`
|
|
184
166
|
}
|
|
185
167
|
]
|
|
186
168
|
};
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
var import_chalk = __toESM(require_source(), 1);
|
|
16
16
|
var packageName = "vercel";
|
|
17
17
|
var logo = "\u25B2";
|
|
18
|
-
var
|
|
18
|
+
var connexLine = process.env.FF_CONNEX_ENABLED ? "\n connex [cmd] Manage Vercel Connect OAuth clients" : "";
|
|
19
19
|
var help = () => `
|
|
20
20
|
${import_chalk.default.bold(`${logo} ${packageName}`)} [options] <command | path>
|
|
21
21
|
|
|
@@ -60,14 +60,16 @@ var help = () => `
|
|
|
60
60
|
bisect Use binary search to find the deployment that introduced a bug
|
|
61
61
|
blob [cmd] Manages your Blob stores and files
|
|
62
62
|
buy [cmd] Purchase Vercel products for your team
|
|
63
|
-
certs [cmd] Manages your SSL certificates
|
|
63
|
+
certs [cmd] Manages your SSL certificates${connexLine}
|
|
64
64
|
contract Show contract information for billing periods
|
|
65
65
|
cron | crons [cmd] Manage cron jobs for a project [beta]
|
|
66
66
|
curl [path] cURL requests to your linked project's deployment [beta]
|
|
67
|
+
deploy-hooks [cmd] Manage deploy hooks for Git-triggered builds
|
|
67
68
|
dns [name] Manages your DNS records
|
|
68
69
|
domains [name] Manages your domain names
|
|
69
70
|
httpstat path Visualize HTTP timing statistics for deployments
|
|
70
|
-
logs [url] Displays the logs for a deployment
|
|
71
|
+
logs [url] Displays the logs for a deployment
|
|
72
|
+
metrics <metric> Queries observability metrics for your project or team
|
|
71
73
|
mcp Set up MCP agents and configuration
|
|
72
74
|
microfrontends Manages your microfrontends
|
|
73
75
|
projects Manages your Projects
|