@depup/vercel 58.4.4-depup.0 → 59.1.3-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 (119) hide show
  1. package/README.md +8 -9
  2. package/changes.json +7 -11
  3. package/dist/chunks/{add-245XOFJO.js → add-CUGPQYFW.js} +11 -11
  4. package/dist/chunks/{add-XH24V5VU.js → add-PP3PJPJV.js} +8 -8
  5. package/dist/chunks/{add-P7WBQMBW.js → add-PRG4KKYH.js} +45 -12
  6. package/dist/chunks/{build-M7NJYJPE.js → build-T22GMLY6.js} +11 -11
  7. package/dist/chunks/{chunk-AW5YINX6.js → chunk-2MF3ZAVW.js} +48 -6
  8. package/dist/chunks/{chunk-WR7JTCGL.js → chunk-3BU2UCGV.js} +1 -1
  9. package/dist/chunks/{chunk-MAHXF73X.js → chunk-3L2YLLHC.js} +1 -1
  10. package/dist/chunks/{chunk-ZGBBPJ6B.js → chunk-43DD2KNM.js} +254 -1539
  11. package/dist/chunks/{chunk-M5NOLAJ4.js → chunk-4HI7G6KG.js} +1 -1
  12. package/dist/chunks/chunk-4JKZ7SRX.js +559 -0
  13. package/dist/chunks/{chunk-Y5GTPWXB.js → chunk-57G6HBJ4.js} +3 -3
  14. package/dist/chunks/{chunk-2LBVX2H3.js → chunk-5DVMXOFT.js} +3 -3
  15. package/dist/chunks/{chunk-YCPUAG77.js → chunk-7NQLRE5V.js} +1 -1
  16. package/dist/chunks/{chunk-JLWQWYKO.js → chunk-BBSS3XIW.js} +2 -4
  17. package/dist/chunks/{chunk-IEDUCUDV.js → chunk-BCZFZETZ.js} +92 -46
  18. package/dist/chunks/{chunk-SJYAUEZR.js → chunk-DAWJOQF6.js} +52 -79
  19. package/dist/chunks/chunk-DEB45ND4.js +61 -0
  20. package/dist/chunks/{chunk-AQDWMAPM.js → chunk-DOMLWKKZ.js} +795 -516
  21. package/dist/chunks/{chunk-EBLH23AQ.js → chunk-F7OXZLY2.js} +6 -9
  22. package/dist/chunks/{chunk-J6LK45HT.js → chunk-GFCTRJI5.js} +16 -2
  23. package/dist/chunks/{chunk-V5P25P7F.js → chunk-GGPE5377.js} +5 -12
  24. package/dist/chunks/{chunk-4LDQIDRM.js → chunk-GMWRTZVZ.js} +9 -1
  25. package/dist/chunks/{chunk-NJUPUGOE.js → chunk-HT2XWSAJ.js} +1 -1
  26. package/dist/chunks/chunk-IKKUCZE7.js +96 -0
  27. package/dist/chunks/chunk-JKQWQA2T.js +39 -0
  28. package/dist/chunks/{chunk-XIG4GH62.js → chunk-JYEO6OJS.js} +188 -102
  29. package/dist/chunks/{chunk-HSYF5SI3.js → chunk-KTLFN5FV.js} +1 -1
  30. package/dist/chunks/{chunk-XPKWKPWA.js → chunk-KXDWXXJH.js} +27 -1
  31. package/dist/chunks/chunk-LNVZ3T7X.js +2908 -0
  32. package/dist/chunks/{chunk-NJ6QXKQD.js → chunk-M34ZRNDQ.js} +1 -1
  33. package/dist/chunks/chunk-MXLA3VQS.js +20 -0
  34. package/dist/chunks/{chunk-2SFMOCWR.js → chunk-PD7ZUXE7.js} +1 -1
  35. package/dist/chunks/chunk-QCVKGY2A.js +151 -0
  36. package/dist/chunks/{chunk-XE5VSQ25.js → chunk-QD5NX7RG.js} +1 -1
  37. package/dist/chunks/{chunk-4N7XLXM2.js → chunk-QQ6PH4RY.js} +1 -0
  38. package/dist/chunks/{chunk-A5KP5HAI.js → chunk-RIB4S2IB.js} +10 -1
  39. package/dist/chunks/{chunk-ZX2FSPWV.js → chunk-SJQEGGH7.js} +4 -4
  40. package/dist/chunks/{chunk-3QAUXPIR.js → chunk-SOKQBFF7.js} +1128 -162
  41. package/dist/chunks/chunk-SQGMTRZD.js +1385 -0
  42. package/dist/chunks/{chunk-TJJ562C5.js → chunk-TJLBCLEX.js} +15 -0
  43. package/dist/chunks/{chunk-62MH5KPX.js → chunk-TM3F7PLR.js} +7 -7
  44. package/dist/chunks/{chunk-2WILSD7J.js → chunk-TNKRSTMB.js} +1 -1
  45. package/dist/chunks/{chunk-4UYKSYKQ.js → chunk-UMA66MKW.js} +66 -2
  46. package/dist/chunks/{chunk-KT4XXKJK.js → chunk-VAFU7DXZ.js} +195 -3
  47. package/dist/chunks/{chunk-RQ7H43CJ.js → chunk-VDJN4WKH.js} +1 -1
  48. package/dist/chunks/{chunk-4CCY5OPH.js → chunk-VE545BR3.js} +5039 -3119
  49. package/dist/chunks/{chunk-B3JTF4CF.js → chunk-WC7IINFV.js} +10 -1
  50. package/dist/chunks/{chunk-YDUINEII.js → chunk-XZLI27ES.js} +7 -5
  51. package/dist/chunks/{chunk-4BUPRO5B.js → chunk-ZUVJISHS.js} +3 -3
  52. package/dist/chunks/{clear-HWIKQ4NC.js → clear-Z4IKUIN7.js} +8 -8
  53. package/dist/chunks/{compile-vercel-config-U5NRIMZ2.js → compile-vercel-config-PSVXFAZW.js} +4 -4
  54. package/dist/chunks/config-M5GMZ2X5.js +159 -0
  55. package/dist/chunks/{constants-3FSSR6E7.js → constants-YMCRE6IG.js} +5 -3
  56. package/dist/chunks/{delete-NVMGVD5Z.js → delete-5GRRDJSF.js} +5 -5
  57. package/dist/chunks/{delete-FZCOUFGN.js → delete-P4XIBY7T.js} +8 -8
  58. package/dist/chunks/{disable-ERM2BWEQ.js → disable-NT5NYVO7.js} +5 -5
  59. package/dist/chunks/{discard-KM5OLEN4.js → discard-TBNIEAJZ.js} +5 -5
  60. package/dist/chunks/{edit-HT3UTATZ.js → edit-DJ6MT6HA.js} +6 -6
  61. package/dist/chunks/{edit-TOSB2EMI.js → edit-UF3D2CCH.js} +9 -9
  62. package/dist/chunks/{enable-BQL6AOQV.js → enable-JTQBQMBO.js} +5 -5
  63. package/dist/chunks/{export-UOWQHOG3.js → export-OKMRGRVM.js} +5 -5
  64. package/dist/chunks/{image-F5SC6Q7Y.js → image-ARUJH4H5.js} +4 -4
  65. package/dist/chunks/import-builders-3NTMZM64.js +30 -0
  66. package/dist/chunks/{inspect-PZJM2CWT.js → inspect-5NETOGAI.js} +11 -12
  67. package/dist/chunks/{inspect-GKJ6T5H4.js → inspect-CHFKZKKP.js} +8 -8
  68. package/dist/chunks/{inspect-LGKOLH2O.js → inspect-FXZTQY62.js} +9 -9
  69. package/dist/chunks/{inspect-35FU5R62.js → inspect-PTXIBSYW.js} +11 -11
  70. package/dist/chunks/{inspect-5J5GSTOB.js → inspect-UXP2HDES.js} +8 -8
  71. package/dist/chunks/{list-2IIE7CAP.js → list-2WMIVJ2R.js} +31 -15
  72. package/dist/chunks/{list-ITFJYYQ2.js → list-ADI55WKW.js} +13 -14
  73. package/dist/chunks/{list-KZETH3ZE.js → list-DYCZA2VX.js} +6 -6
  74. package/dist/chunks/{login-BQPJCJEZ.js → login-YCSIQG6B.js} +11 -11
  75. package/dist/chunks/{ls-UXUEP54B.js → ls-2TKUIUK4.js} +14 -15
  76. package/dist/chunks/{ls-YSFWSM6J.js → ls-EOMIQLRH.js} +14 -15
  77. package/dist/chunks/{ls-7GHDK4MD.js → ls-PQFDGOJL.js} +17 -18
  78. package/dist/chunks/{ls-DL2LA35C.js → ls-RZVTIP5U.js} +14 -15
  79. package/dist/chunks/{ls-ZZFLH7PK.js → ls-VIOMDUGW.js} +17 -18
  80. package/dist/chunks/{open-ADNJQN5E.js → open-JYPWOXQD.js} +7 -7
  81. package/dist/chunks/{permissions-72SZCBIY.js → permissions-SGJWGEVD.js} +6 -6
  82. package/dist/chunks/{publish-OOAGSEBM.js → publish-ZUQHJAXL.js} +5 -5
  83. package/dist/chunks/{push-B6TZDXNF.js → push-XMVKG5A5.js} +11 -11
  84. package/dist/chunks/{query-LZWS5TDH.js → query-ZLJZEGZB.js} +240 -52
  85. package/dist/chunks/{reorder-MRHFKPMK.js → reorder-NVHDWMRU.js} +5 -5
  86. package/dist/chunks/{reply-BKTJXO3B.js → reply-PUUPUQ3V.js} +9 -9
  87. package/dist/chunks/{resolve-BKVGSGPN.js → resolve-5U2LJVE6.js} +8 -8
  88. package/dist/chunks/{restore-USR7SKWV.js → restore-OXIUY2UI.js} +5 -5
  89. package/dist/chunks/{rm-2UO6BT3A.js → rm-3IOCBNPE.js} +9 -9
  90. package/dist/chunks/{rm-37MKKV3I.js → rm-BZNKJRXU.js} +8 -8
  91. package/dist/chunks/{rm-VY3OHKFH.js → rm-OUI4ZB5R.js} +8 -8
  92. package/dist/chunks/{rm-KUWPNZIS.js → rm-Z2KYJ7XT.js} +11 -11
  93. package/dist/chunks/{rule-inspect-JVDOOTWK.js → rule-inspect-ZBJJCDQV.js} +17 -25
  94. package/dist/chunks/{rules-NTBFZBIF.js → rules-HEGAXXUN.js} +10 -7
  95. package/dist/chunks/{schema-6EZ72OVH.js → schema-7GVL3BNP.js} +65 -33
  96. package/dist/chunks/schema-ZYIJYA2E.js +425 -0
  97. package/dist/chunks/{tags-HNPC63QA.js → tags-3SCWCMNQ.js} +3 -3
  98. package/dist/chunks/{types-QTOA2BTQ.js → types-AJHILHO5.js} +3 -5
  99. package/dist/chunks/{update-LUYWNZP3.js → update-YR2GCCJN.js} +40 -9
  100. package/dist/commands/build/index.js +282 -2932
  101. package/dist/commands/deploy/index.js +397 -84
  102. package/dist/commands/dev/index.js +339 -194
  103. package/dist/commands/env/index.js +101 -163
  104. package/dist/commands/link/index.js +17 -23
  105. package/dist/commands/list/index.js +11 -13
  106. package/dist/commands-bulk.js +10189 -4062
  107. package/dist/help.js +1 -1
  108. package/dist/index.js +141 -114
  109. package/dist/vc.js +18 -17
  110. package/dist/version.mjs +2 -1
  111. package/package.json +80 -77
  112. package/dist/chunks/chunk-2FMPLU44.js +0 -106
  113. package/dist/chunks/chunk-2MAPZXVV.js +0 -206
  114. package/dist/chunks/chunk-CPFNFVCL.js +0 -85
  115. package/dist/chunks/chunk-GFG6QDIE.js +0 -101
  116. package/dist/chunks/chunk-KBEX5MYS.js +0 -208
  117. package/dist/chunks/chunk-UE3JUVUZ.js +0 -1474
  118. package/dist/chunks/{chunk-BUZRVER7.js → chunk-P65EEFTR.js} +3 -3
  119. /package/dist/{commands/dev/next-dev-websocket-shim-preload.cjs → runtime-assets/node-preloads/next-dev-websocket.cjs} +0 -0
@@ -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-4CCY5OPH.js";
9
+ } from "./chunk-VE545BR3.js";
10
10
  import {
11
11
  isNativeBinaryInstall
12
12
  } from "./chunk-ECCWJHC6.js";
@@ -0,0 +1,20 @@
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
+
8
+ // src/commands/alerts/rules/schema-help.ts
9
+ var CUSTOM_ALERT_EVENT_HELP = [
10
+ "Run `vercel metrics schema <metric-or-prefix>` to discover available metrics, aggregations, and dimensions. Metric IDs use the `vercel.` namespace, for example `vercel.request.count`.",
11
+ "Custom alert queries use query-engine event and measure names instead of the public metric ID.",
12
+ '`vercel.request.count` maps to `event: "incomingRequest"` and `measure: "count"`.',
13
+ '`vercel.function_invocation.count` maps to `event: "serverlessFunctionInvocation"` and `measure: "count"`.',
14
+ '`vercel.external_api_request.count` maps to `event: "outgoingRequest"` and `measure: "count"`.',
15
+ '`vercel.sandbox.cpu_total_time_ms` maps to `event: "sandboxUsage"` and `measure: "cpuTotalTimeMs"`.'
16
+ ];
17
+
18
+ export {
19
+ CUSTOM_ALERT_EVENT_HELP
20
+ };
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  truncateEnd
9
- } from "./chunk-RQ7H43CJ.js";
9
+ } from "./chunk-VDJN4WKH.js";
10
10
  import {
11
11
  require_dist
12
12
  } from "./chunk-OX7KI3LF.js";
@@ -0,0 +1,151 @@
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
+ formatErrorJson,
9
+ handleApiError
10
+ } from "./chunk-NM43FFV6.js";
11
+ import {
12
+ isAPIError
13
+ } from "./chunk-SOFC4MLS.js";
14
+ import {
15
+ output_manager_default
16
+ } from "./chunk-OX7KI3LF.js";
17
+
18
+ // src/commands/metrics/schema-api.ts
19
+ var OBSERVABILITY_METRICS_PATH = "/metrics/v1";
20
+ var METRIC_CATALOG_PAGE_SIZE = 250;
21
+ function toMetricDetail(metric) {
22
+ return {
23
+ id: metric.id,
24
+ description: metric.description,
25
+ dimensions: metric.dimensions,
26
+ unit: metric.unit,
27
+ aggregations: metric.aggregations,
28
+ defaultAggregation: metric.defaultAggregation
29
+ };
30
+ }
31
+ function getDefaultAggregation(detail, metricId) {
32
+ return detail.find((metric) => metric.id === metricId)?.defaultAggregation;
33
+ }
34
+ async function fetchMetricList(client, accountId) {
35
+ const { metrics } = await client.fetch(
36
+ "/v2/observability/schema",
37
+ { accountId }
38
+ );
39
+ return metrics;
40
+ }
41
+ async function fetchCustomMetricCatalog(client, accountId, search, activeSince) {
42
+ const metrics = [];
43
+ let cursor = null;
44
+ do {
45
+ const searchParams = new URLSearchParams({
46
+ limit: String(METRIC_CATALOG_PAGE_SIZE),
47
+ kind: "custom"
48
+ });
49
+ if (search) {
50
+ searchParams.set("search", search);
51
+ }
52
+ if (activeSince) {
53
+ searchParams.set("activeSince", activeSince);
54
+ }
55
+ if (cursor) {
56
+ searchParams.set("cursor", cursor);
57
+ }
58
+ const response = await client.fetch(
59
+ `${OBSERVABILITY_METRICS_PATH}?${searchParams}`,
60
+ { accountId }
61
+ );
62
+ metrics.push(
63
+ ...response.metrics.map((metric) => ({
64
+ id: metric.id,
65
+ description: metric.description,
66
+ dimensions: metric.dimensions,
67
+ unit: metric.unit,
68
+ aggregations: metric.aggregations
69
+ }))
70
+ );
71
+ cursor = response.pagination.hasMore ? response.pagination.nextCursor : null;
72
+ } while (cursor);
73
+ return metrics.filter(
74
+ (metric) => !metric.id.startsWith("vercel.") && (!search || metric.id.startsWith(search))
75
+ ).sort((left, right) => left.id.localeCompare(right.id));
76
+ }
77
+ async function fetchCustomMetricDetail(client, accountId, metricId) {
78
+ const metrics = await fetchCustomMetricCatalog(client, accountId, metricId);
79
+ const exactMetric = metrics.find((metric) => metric.id === metricId);
80
+ if (!exactMetric) {
81
+ return metrics;
82
+ }
83
+ return [exactMetric];
84
+ }
85
+ async function fetchMetricDetail(client, accountId, metricId) {
86
+ const detail = await client.fetch(
87
+ `/v2/observability/schema/${encodeURIComponent(metricId)}`,
88
+ { accountId }
89
+ );
90
+ return detail.map(toMetricDetail);
91
+ }
92
+ async function fetchSchemaOrExit(client, jsonOutput, operation) {
93
+ try {
94
+ return await operation();
95
+ } catch (err) {
96
+ if (isAPIError(err)) {
97
+ return handleApiError(err, jsonOutput, client, {
98
+ 401: {
99
+ code: "SCHEMA_UNAUTHORIZED",
100
+ message: "The metrics schema API request was not authorized. Run `vercel login` to authenticate and `vercel switch` to select a team, then try again."
101
+ },
102
+ 403: {
103
+ code: "SCHEMA_UNAUTHORIZED",
104
+ message: "The metrics schema API request was not authorized. Run `vercel login` to authenticate and `vercel switch` to select a team, then try again."
105
+ }
106
+ });
107
+ }
108
+ const message = err instanceof Error ? `Failed to fetch metrics schema: ${err.message}` : `Failed to fetch metrics schema: ${String(err)}`;
109
+ if (jsonOutput) {
110
+ client.stdout.write(formatErrorJson("SCHEMA_FETCH_FAILED", message));
111
+ } else {
112
+ output_manager_default.error(message);
113
+ }
114
+ return 1;
115
+ }
116
+ }
117
+ function fetchCustomMetricDetailOrExit(client, accountId, jsonOutput, metricId) {
118
+ return fetchSchemaOrExit(
119
+ client,
120
+ jsonOutput,
121
+ () => fetchCustomMetricDetail(client, accountId, metricId)
122
+ );
123
+ }
124
+ function fetchCombinedMetricListOrExit(client, accountId, jsonOutput) {
125
+ return fetchSchemaOrExit(client, jsonOutput, async () => {
126
+ const [platformMetrics, customMetrics] = await Promise.all([
127
+ fetchMetricList(client, accountId),
128
+ fetchCustomMetricCatalog(client, accountId).catch(() => [])
129
+ ]);
130
+ return [
131
+ ...platformMetrics.filter((metric) => metric.id.startsWith("vercel.")),
132
+ ...customMetrics.map(({ id, description }) => ({ id, description }))
133
+ ].sort((left, right) => left.id.localeCompare(right.id));
134
+ });
135
+ }
136
+ async function fetchMetricDetailOrExit(client, accountId, metricId, jsonOutput) {
137
+ return fetchSchemaOrExit(
138
+ client,
139
+ jsonOutput,
140
+ () => fetchMetricDetail(client, accountId, metricId)
141
+ );
142
+ }
143
+
144
+ export {
145
+ OBSERVABILITY_METRICS_PATH,
146
+ getDefaultAggregation,
147
+ fetchCustomMetricCatalog,
148
+ fetchCustomMetricDetailOrExit,
149
+ fetchCombinedMetricListOrExit,
150
+ fetchMetricDetailOrExit
151
+ };
@@ -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-4CCY5OPH.js";
9
+ } from "./chunk-VE545BR3.js";
10
10
  import {
11
11
  getCommandName,
12
12
  require_lib
@@ -73,6 +73,7 @@ var help = () => `
73
73
  flags [cmd] Manage feature flags for a Vercel project
74
74
  global-config [cmd] Manage Global Config stores
75
75
  httpstat path Visualize HTTP timing statistics for deployments
76
+ kms [cmd] Manage KMS issuers, signing keys, and project grants [beta]
76
77
  logs [url] Displays the logs for a deployment
77
78
  metrics <metric> Queries observability metrics for your project or team
78
79
  mcp Set up MCP agents and configuration
@@ -19,11 +19,19 @@ var projectScopeOption = {
19
19
  shorthand: "p",
20
20
  description: "Project name or ID (defaults to the linked project)."
21
21
  };
22
+ var nextOption = {
23
+ name: "next",
24
+ shorthand: null,
25
+ type: String,
26
+ deprecated: false,
27
+ description: "Continue from a previous response",
28
+ argument: "CURSOR"
29
+ };
22
30
  var cursorOption = {
23
31
  name: "cursor",
24
32
  shorthand: "c",
25
33
  type: String,
26
- deprecated: false,
34
+ deprecated: true,
27
35
  description: "Cursor from a previous page to continue listing from",
28
36
  argument: "STRING"
29
37
  };
@@ -47,6 +55,7 @@ var imageLsSubcommand = {
47
55
  description: "Only list images that have no tags"
48
56
  },
49
57
  limitOption,
58
+ nextOption,
50
59
  cursorOption,
51
60
  formatOption,
52
61
  jsonOption
@@ -4,13 +4,13 @@ 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
- noBorderChars,
9
- require_cli_table3
10
- } from "./chunk-KT4XXKJK.js";
11
7
  import {
12
8
  require_dist
13
9
  } from "./chunk-ECCWJHC6.js";
10
+ import {
11
+ noBorderChars,
12
+ require_cli_table3
13
+ } from "./chunk-VAFU7DXZ.js";
14
14
  import {
15
15
  globalCommandOptions
16
16
  } from "./chunk-SOFC4MLS.js";