vercel 59.4.0 → 59.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.
Files changed (122) hide show
  1. package/dist/chunks/{add-73X2SKBH.js → add-MH3WV6PV.js} +12 -8
  2. package/dist/chunks/{add-FQMB3XPM.js → add-W3FFMTX4.js} +15 -11
  3. package/dist/chunks/{add-QJ3WT4FW.js → add-Z5FM6TFI.js} +18 -14
  4. package/dist/chunks/{build-YUYCLCXD.js → build-VYYFBJL7.js} +13 -10
  5. package/dist/chunks/{chunk-F7OXZLY2.js → chunk-26XDDLXM.js} +2 -2
  6. package/dist/chunks/{chunk-RIB4S2IB.js → chunk-3HZLXCVL.js} +1 -1
  7. package/dist/chunks/{chunk-UV2ZMFVG.js → chunk-47VQ6H2S.js} +1 -1
  8. package/dist/chunks/{chunk-O5DLWLT7.js → chunk-4JTF6RD7.js} +7 -7
  9. package/dist/chunks/{chunk-3KNPVXJ3.js → chunk-4KD5BYHB.js} +1 -1
  10. package/dist/chunks/{chunk-XLKFJPMT.js → chunk-57RHXXXG.js} +1 -1
  11. package/dist/chunks/chunk-5GGUB4EO.js +31 -0
  12. package/dist/chunks/chunk-5LX2JDZP.js +34 -0
  13. package/dist/chunks/chunk-7Q45OKWR.js +149 -0
  14. package/dist/chunks/{chunk-Y3J4VU2H.js → chunk-7XX4ZEOV.js} +2 -2
  15. package/dist/chunks/{chunk-JKQWQA2T.js → chunk-AINIBIP4.js} +1 -1
  16. package/dist/chunks/{chunk-SOFC4MLS.js → chunk-AWCID36T.js} +8 -568
  17. package/dist/chunks/{chunk-KAYSW4CJ.js → chunk-AWSLWAOC.js} +1 -1
  18. package/dist/chunks/{chunk-KDYRLN6H.js → chunk-C5HKWXRR.js} +1 -1
  19. package/dist/chunks/{chunk-2MF3ZAVW.js → chunk-CJV7J7B5.js} +6 -6
  20. package/dist/chunks/chunk-CQJRLNTX.js +104 -0
  21. package/dist/chunks/{chunk-PD4DYNSB.js → chunk-CSCSGSQG.js} +4 -4
  22. package/dist/chunks/{chunk-3L2YLLHC.js → chunk-DWIC7MRV.js} +2 -2
  23. package/dist/chunks/{chunk-HMJVUXE6.js → chunk-E6LFKMI2.js} +82 -509
  24. package/dist/chunks/{chunk-GFCTRJI5.js → chunk-EZKW5YJ2.js} +1 -1
  25. package/dist/chunks/{chunk-DDIZGOCK.js → chunk-FA3MO56Q.js} +6 -4
  26. package/dist/chunks/{chunk-Y42SPI2H.js → chunk-GUWPUX2Y.js} +5 -5
  27. package/dist/chunks/chunk-GY5I4AYD.js +122 -0
  28. package/dist/chunks/chunk-HGRWPPYB.js +18 -0
  29. package/dist/chunks/{chunk-NP6BQPCN.js → chunk-JJQP3PYM.js} +5 -3
  30. package/dist/chunks/{chunk-X6O6XJEA.js → chunk-JNU3DTEV.js} +14 -12
  31. package/dist/chunks/{chunk-TH2XUVDP.js → chunk-L7CEMAJG.js} +4 -2
  32. package/dist/chunks/{chunk-EB7NJKPL.js → chunk-LLM3ZNXJ.js} +2 -2
  33. package/dist/chunks/{chunk-ZFWNMVNR.js → chunk-M3OSDZPY.js} +6 -4
  34. package/dist/chunks/{chunk-LKTQR5JE.js → chunk-MRMNMFMD.js} +2 -2
  35. package/dist/chunks/{chunk-EG5BSAXD.js → chunk-MTWHQEXI.js} +1 -1
  36. package/dist/chunks/{chunk-WC7IINFV.js → chunk-NFU4XJIR.js} +1 -1
  37. package/dist/chunks/{chunk-VCE6QKFE.js → chunk-NSU2BTRS.js} +3 -3
  38. package/dist/chunks/chunk-OHER4DGX.js +451 -0
  39. package/dist/chunks/{chunk-BBSS3XIW.js → chunk-OQ3C5VXZ.js} +1 -1
  40. package/dist/chunks/{chunk-CHEZBD7H.js → chunk-PBHBX6UL.js} +2 -2
  41. package/dist/chunks/{chunk-M22O6CYY.js → chunk-POOO7W47.js} +1 -1
  42. package/dist/chunks/{chunk-BLYBHFIE.js → chunk-PPUWG2UB.js} +12 -8
  43. package/dist/chunks/chunk-Q2DGFCO7.js +579 -0
  44. package/dist/chunks/{chunk-HURL5EBN.js → chunk-QG4PCM45.js} +24 -148
  45. package/dist/chunks/{chunk-VAFU7DXZ.js → chunk-RKDCNQ4S.js} +1 -91
  46. package/dist/chunks/{chunk-XI6NJLI4.js → chunk-RZ5NP6HN.js} +2 -2
  47. package/dist/chunks/{chunk-GMWRTZVZ.js → chunk-SLPSPYVR.js} +1 -1
  48. package/dist/chunks/{chunk-J5Y2QGGU.js → chunk-TAZ5ZAKG.js} +1 -1
  49. package/dist/chunks/{chunk-KSZ4MNHO.js → chunk-TDXNNIZ6.js} +1 -1
  50. package/dist/chunks/{chunk-EB5NBVTV.js → chunk-TIWAL2YU.js} +6 -6
  51. package/dist/chunks/{chunk-HJVTLJHO.js → chunk-UUVMIXT4.js} +5 -5
  52. package/dist/chunks/{chunk-RI7KKKII.js → chunk-V4YLY44R.js} +3 -17
  53. package/dist/chunks/{chunk-O5GNPPTU.js → chunk-VP5Y3SZG.js} +1 -1
  54. package/dist/chunks/{chunk-2PX6N4FE.js → chunk-VWYNSJXI.js} +7 -7
  55. package/dist/chunks/{chunk-7QVJTI5H.js → chunk-XDGOOW3K.js} +1 -1
  56. package/dist/chunks/{chunk-UMA66MKW.js → chunk-XM3LOQIX.js} +1 -1
  57. package/dist/chunks/{chunk-VDJN4WKH.js → chunk-XRWOTCDO.js} +1 -1
  58. package/dist/chunks/{chunk-MWYQ24FO.js → chunk-YIHOS3ZF.js} +2 -2
  59. package/dist/chunks/{chunk-STPH4Y62.js → chunk-YJUO3EKH.js} +1 -1
  60. package/dist/chunks/chunk-ZKUHCL6O.js +249 -0
  61. package/dist/chunks/{clear-USQM5VW5.js → clear-TNGRDA7D.js} +12 -8
  62. package/dist/chunks/{compile-vercel-config-2JNYMI6W.js → compile-vercel-config-ERLXKKWW.js} +8 -5
  63. package/dist/chunks/config-7EDKML5Q.js +122 -0
  64. package/dist/chunks/{config-VTRIDLY4.js → config-H22EE765.js} +15 -11
  65. package/dist/chunks/{delete-VTPHK3EB.js → delete-LORYIZHY.js} +10 -7
  66. package/dist/chunks/{delete-ILLSBCVQ.js → delete-Q4S5F2AI.js} +12 -8
  67. package/dist/chunks/{disable-VTOMO64V.js → disable-HKWCBDJC.js} +10 -7
  68. package/dist/chunks/{discard-ZIOZ34ZI.js → discard-UCCRF2JQ.js} +10 -7
  69. package/dist/chunks/{edit-JMZ5XWVW.js → edit-6IM6VRBR.js} +12 -8
  70. package/dist/chunks/{edit-E3AMR4KM.js → edit-AWL35PYQ.js} +11 -8
  71. package/dist/chunks/{enable-A4PMZ7QZ.js → enable-GN3D3L3V.js} +10 -7
  72. package/dist/chunks/{export-Y6AJ3WRZ.js → export-HHRVFALV.js} +10 -7
  73. package/dist/chunks/{image-26BKPAUB.js → image-4DCU4VPP.js} +6 -5
  74. package/dist/chunks/{import-builders-3H7J2SEK.js → import-builders-DVG3HOTF.js} +9 -6
  75. package/dist/chunks/{inspect-ZW5N6O5P.js → inspect-B3OWUFLH.js} +12 -8
  76. package/dist/chunks/{inspect-OEY4DJRI.js → inspect-TGOJDKIT.js} +15 -11
  77. package/dist/chunks/{inspect-7DGKYHKW.js → inspect-TUW67CFZ.js} +15 -11
  78. package/dist/chunks/{inspect-N3E2PO6K.js → inspect-VLGKNHJW.js} +12 -8
  79. package/dist/chunks/{inspect-GJFVAZIJ.js → inspect-VPME6UC7.js} +15 -11
  80. package/dist/chunks/{list-DTJBW7OQ.js → list-2DPKDHRV.js} +15 -11
  81. package/dist/chunks/{list-MIQ5D6PM.js → list-K552ITMK.js} +15 -11
  82. package/dist/chunks/{list-2VTCNQEB.js → list-TK2JO7BK.js} +12 -8
  83. package/dist/chunks/{login-L34UHAU5.js → login-HRWEKW5P.js} +15 -11
  84. package/dist/chunks/{ls-OKO4IHWB.js → ls-IOXGXEY4.js} +15 -11
  85. package/dist/chunks/{ls-VDYUFSSC.js → ls-JSV2WZVF.js} +15 -10
  86. package/dist/chunks/{ls-OBUDC4SB.js → ls-M5TYGFP5.js} +15 -10
  87. package/dist/chunks/{ls-NCPQY4FV.js → ls-O2WYF5UL.js} +18 -13
  88. package/dist/chunks/ls-TM6NTZEB.js +176 -0
  89. package/dist/chunks/{ls-SXJFBLUT.js → ls-YIF3KLF3.js} +15 -10
  90. package/dist/chunks/{open-V5JDGXUP.js → open-FWAVEWGU.js} +12 -8
  91. package/dist/chunks/{permissions-6CPRPPBY.js → permissions-DPFYL47Z.js} +9 -8
  92. package/dist/chunks/{publish-R27DPHFO.js → publish-63CGFKQR.js} +10 -7
  93. package/dist/chunks/{push-VLVTBS42.js → push-T5ZTBW3P.js} +13 -10
  94. package/dist/chunks/{query-IVVRYMJN.js → query-B6O3EMEV.js} +14 -10
  95. package/dist/chunks/{reorder-LJ2RBZM2.js → reorder-ANV4NMKH.js} +10 -7
  96. package/dist/chunks/{reply-USAISZYC.js → reply-C73KGOCG.js} +12 -8
  97. package/dist/chunks/{resolve-CRCJYVS5.js → resolve-IHSIVPEE.js} +12 -8
  98. package/dist/chunks/{restore-6PBPEAMU.js → restore-GSUNXP2O.js} +10 -7
  99. package/dist/chunks/{rm-HHELZB7R.js → rm-4O74PS4Q.js} +12 -8
  100. package/dist/chunks/{rm-TWU3JR6Z.js → rm-M7IJC2WZ.js} +12 -8
  101. package/dist/chunks/{rm-EOD7RDSO.js → rm-PRINF4OU.js} +15 -11
  102. package/dist/chunks/rm-RV5SQFQA.js +317 -0
  103. package/dist/chunks/{rm-KGOEOWVK.js → rm-YDTK5ESZ.js} +13 -9
  104. package/dist/chunks/{rule-inspect-WFTVRK6B.js → rule-inspect-ZZC53FLP.js} +15 -11
  105. package/dist/chunks/{rules-AQYTFJI6.js → rules-SAOSSGFI.js} +10 -9
  106. package/dist/chunks/{schema-LUVFYPWN.js → schema-23ZFAKDU.js} +7 -5
  107. package/dist/chunks/{schema-ZCDCJC7E.js → schema-2Q3QRMRO.js} +11 -8
  108. package/dist/chunks/set-L47ZCZBJ.js +243 -0
  109. package/dist/chunks/{tags-RCNRFX7U.js → tags-2TWLM77N.js} +5 -4
  110. package/dist/chunks/{types-AJHILHO5.js → types-G3PEUIJH.js} +11 -7
  111. package/dist/chunks/{update-I7QGAOYF.js → update-SZH2VBD6.js} +16 -12
  112. package/dist/commands/build/index.js +16 -12
  113. package/dist/commands/deploy/index.js +41 -32
  114. package/dist/commands/dev/index.js +19 -15
  115. package/dist/commands/env/index.js +44 -35
  116. package/dist/commands/link/index.js +25 -20
  117. package/dist/commands/list/index.js +19 -12
  118. package/dist/commands-bulk.js +132 -125
  119. package/dist/help.js +1 -1
  120. package/dist/index.js +34 -28
  121. package/dist/version.mjs +1 -1
  122. package/package.json +47 -47
@@ -4,37 +4,40 @@ 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
+ tracesCommand
9
+ } from "./chunk-7Q45OKWR.js";
7
10
  import {
8
11
  vcrCommand
9
- } from "./chunk-2MF3ZAVW.js";
12
+ } from "./chunk-CJV7J7B5.js";
10
13
  import {
11
14
  metricsCommand
12
- } from "./chunk-EG5BSAXD.js";
15
+ } from "./chunk-MTWHQEXI.js";
13
16
  import {
14
17
  routesCommand
15
- } from "./chunk-M22O6CYY.js";
18
+ } from "./chunk-POOO7W47.js";
16
19
  import {
17
20
  commentsCommand
18
- } from "./chunk-GMWRTZVZ.js";
21
+ } from "./chunk-SLPSPYVR.js";
19
22
  import {
20
23
  activityCommand
21
- } from "./chunk-3KNPVXJ3.js";
24
+ } from "./chunk-4KD5BYHB.js";
22
25
  import {
23
26
  alertsCommand
24
- } from "./chunk-3L2YLLHC.js";
27
+ } from "./chunk-DWIC7MRV.js";
25
28
  import {
26
29
  devCommand
27
- } from "./chunk-7QVJTI5H.js";
30
+ } from "./chunk-XDGOOW3K.js";
28
31
  import {
29
32
  listCommand
30
- } from "./chunk-O5GNPPTU.js";
33
+ } from "./chunk-VP5Y3SZG.js";
31
34
  import {
32
35
  buildCommand,
33
36
  pullCommand
34
- } from "./chunk-Y3J4VU2H.js";
37
+ } from "./chunk-7XX4ZEOV.js";
35
38
  import {
36
39
  envCommand
37
- } from "./chunk-HMJVUXE6.js";
40
+ } from "./chunk-OHER4DGX.js";
38
41
  import {
39
42
  confirmOption,
40
43
  deploymentOption,
@@ -47,7 +50,7 @@ import {
47
50
  projectOption,
48
51
  protectionBypassOption,
49
52
  yesOption
50
- } from "./chunk-SOFC4MLS.js";
53
+ } from "./chunk-Q2DGFCO7.js";
51
54
  import {
52
55
  output_manager_default
53
56
  } from "./chunk-OX7KI3LF.js";
@@ -3068,7 +3071,7 @@ var detachSubcommand = {
3068
3071
  var connexCommand = {
3069
3072
  name: "connect",
3070
3073
  aliases: [],
3071
- description: "Manage connectors (Beta).\n\nVercel Connect is currently in beta. Behavior, commands, and output may change before general availability.",
3074
+ description: "Manage connectors",
3072
3075
  arguments: [],
3073
3076
  options: [],
3074
3077
  subcommands: [
@@ -11105,130 +11108,6 @@ var telemetryCommand = {
11105
11108
  examples: []
11106
11109
  };
11107
11110
 
11108
- // src/commands/traces/command.ts
11109
- var getSubcommand2 = {
11110
- name: "get",
11111
- aliases: [],
11112
- default: true,
11113
- description: "Fetch a captured trace by request id.",
11114
- arguments: [{ name: "requestId", required: false }],
11115
- options: [
11116
- {
11117
- name: "json",
11118
- shorthand: null,
11119
- type: Boolean,
11120
- deprecated: false,
11121
- description: "Print the raw trace JSON to stdout instead of the markdown summary."
11122
- },
11123
- {
11124
- name: "project",
11125
- shorthand: null,
11126
- type: String,
11127
- argument: "NAME|ID",
11128
- deprecated: false,
11129
- description: "Project name or id to fetch the trace from (overrides the linked project)."
11130
- },
11131
- {
11132
- name: "open",
11133
- shorthand: null,
11134
- type: Boolean,
11135
- deprecated: false,
11136
- description: "Open the trace in the Vercel Dashboard instead of printing it."
11137
- },
11138
- {
11139
- name: "view",
11140
- shorthand: null,
11141
- type: String,
11142
- argument: "timeline|tree|waterfall",
11143
- deprecated: false,
11144
- description: "Dashboard view to open. Only valid with --open. Defaults to timeline."
11145
- }
11146
- ],
11147
- examples: [
11148
- {
11149
- name: "Fetch a trace by request id",
11150
- value: `${packageName} traces get req_1234567890`
11151
- },
11152
- {
11153
- name: "Print the raw trace JSON",
11154
- value: `${packageName} traces get req_1234567890 --json`
11155
- },
11156
- {
11157
- name: "`get` is the default \u2014 this is equivalent to the above",
11158
- value: `${packageName} traces req_1234567890`
11159
- },
11160
- {
11161
- name: "Fetch a trace from a specific team and project",
11162
- value: `${packageName} traces get req_1234567890 --scope my-team --project my-app`
11163
- },
11164
- {
11165
- name: "Open the trace in the Vercel Dashboard",
11166
- value: `${packageName} traces get req_1234567890 --open`
11167
- },
11168
- {
11169
- name: "Open the trace in the Vercel Dashboard with the waterfall view",
11170
- value: `${packageName} traces get req_1234567890 --open --view waterfall`
11171
- }
11172
- ]
11173
- };
11174
- var createSubcommand5 = {
11175
- name: "create",
11176
- aliases: [],
11177
- description: "Capture a session trace for a request (alias for `vercel curl --trace`).",
11178
- arguments: [{ name: "path", required: true }],
11179
- options: [
11180
- deploymentOption,
11181
- protectionBypassOption,
11182
- {
11183
- name: "json",
11184
- shorthand: null,
11185
- type: Boolean,
11186
- deprecated: false,
11187
- description: "Emit { response, requestId } as JSON on stdout"
11188
- },
11189
- {
11190
- ...yesOption,
11191
- description: "Skip the production confirmation prompt (e.g. in non-interactive mode)"
11192
- }
11193
- ],
11194
- examples: [
11195
- {
11196
- name: "Capture a session trace for a request",
11197
- value: `${packageName} traces create /api/hello`
11198
- },
11199
- {
11200
- name: "Target a specific deployment",
11201
- value: `${packageName} traces create /api/status --deployment https://your-project-abc123.vercel.app`
11202
- },
11203
- {
11204
- name: "Pass curl flags after the separator",
11205
- value: `${packageName} traces create /api/test -- --request POST --data '{"name": "John"}'`
11206
- }
11207
- ]
11208
- };
11209
- var tracesCommand = {
11210
- name: "traces",
11211
- aliases: [],
11212
- description: "Fetch traces captured for a Vercel project.",
11213
- arguments: [{ name: "requestId", required: false }],
11214
- subcommands: [getSubcommand2, createSubcommand5],
11215
- options: [],
11216
- examples: [
11217
- {
11218
- name: "Fetch a trace by request id",
11219
- value: `${packageName} traces get req_1234567890`
11220
- },
11221
- {
11222
- name: "Print the raw trace JSON",
11223
- value: `${packageName} traces get req_1234567890 --json`
11224
- },
11225
- {
11226
- name: "Capture a session trace for a request",
11227
- value: `${packageName} traces create /api/hello`
11228
- }
11229
- ]
11230
- };
11231
-
11232
11111
  // src/commands/upgrade/command.ts
11233
11112
  var upgradeCommand = {
11234
11113
  name: "upgrade",
@@ -11686,7 +11565,7 @@ var copySubcommand = {
11686
11565
  ],
11687
11566
  examples: []
11688
11567
  };
11689
- var getSubcommand3 = {
11568
+ var getSubcommand2 = {
11690
11569
  name: "get",
11691
11570
  aliases: [],
11692
11571
  description: "Download a blob by URL or pathname",
@@ -12114,7 +11993,7 @@ var blobCommand = {
12114
11993
  listSubcommand21,
12115
11994
  putSubcommand,
12116
11995
  putImageSubcommand,
12117
- getSubcommand3,
11996
+ getSubcommand2,
12118
11997
  delSubcommand,
12119
11998
  copySubcommand,
12120
11999
  signedTokenSubcommand,
@@ -12169,7 +12048,7 @@ var listSubcommand22 = {
12169
12048
  }
12170
12049
  ]
12171
12050
  };
12172
- var getSubcommand4 = {
12051
+ var getSubcommand3 = {
12173
12052
  name: "get",
12174
12053
  aliases: ["inspect"],
12175
12054
  description: "Displays information related to a webhook",
@@ -12182,7 +12061,7 @@ var getSubcommand4 = {
12182
12061
  options: [formatOption, jsonOption],
12183
12062
  examples: []
12184
12063
  };
12185
- var createSubcommand6 = {
12064
+ var createSubcommand5 = {
12186
12065
  name: "create",
12187
12066
  aliases: ["add"],
12188
12067
  description: "Create a new webhook",
@@ -12242,8 +12121,8 @@ var webhooksCommand = {
12242
12121
  arguments: [],
12243
12122
  subcommands: [
12244
12123
  listSubcommand22,
12245
- getSubcommand4,
12246
- createSubcommand6,
12124
+ getSubcommand3,
12125
+ createSubcommand5,
12247
12126
  removeSubcommand16
12248
12127
  ],
12249
12128
  options: [],
@@ -12665,9 +12544,6 @@ export {
12665
12544
  flushSubcommand,
12666
12545
  disableSubcommand3,
12667
12546
  telemetryCommand,
12668
- getSubcommand2,
12669
- createSubcommand5,
12670
- tracesCommand,
12671
12547
  upgradeCommand,
12672
12548
  usageCommand,
12673
12549
  listSubcommand20,
@@ -12681,7 +12557,7 @@ export {
12681
12557
  putSubcommand,
12682
12558
  delSubcommand,
12683
12559
  copySubcommand,
12684
- getSubcommand3,
12560
+ getSubcommand2,
12685
12561
  putImageSubcommand,
12686
12562
  signedTokenSubcommand,
12687
12563
  presignSubcommand,
@@ -12692,8 +12568,8 @@ export {
12692
12568
  listStoresSubcommand,
12693
12569
  blobCommand,
12694
12570
  listSubcommand22,
12695
- getSubcommand4,
12696
- createSubcommand6,
12571
+ getSubcommand3,
12572
+ createSubcommand5,
12697
12573
  removeSubcommand16,
12698
12574
  webhooksCommand,
12699
12575
  getCommandAliases,
@@ -4,17 +4,6 @@ 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
- getCommandName,
9
- parseRetryAfterHeaderAsMillis,
10
- require_bytes
11
- } from "./chunk-SOFC4MLS.js";
12
- import {
13
- output_manager_default
14
- } from "./chunk-OX7KI3LF.js";
15
- import {
16
- require_source
17
- } from "./chunk-S7KYDPEM.js";
18
7
  import {
19
8
  __commonJS,
20
9
  __require,
@@ -1876,89 +1865,10 @@ function table(rows, opts) {
1876
1865
  return table2.toString();
1877
1866
  }
1878
1867
 
1879
- // src/util/output/error.ts
1880
- var import_chalk = __toESM(require_source(), 1);
1881
-
1882
- // src/util/error.ts
1883
- var import_bytes = __toESM(require_bytes(), 1);
1884
- async function responseError(res, fallbackMessage = null, parsedBody = {}) {
1885
- let message = "";
1886
- let bodyError;
1887
- if (res.status >= 400 && res.status < 500) {
1888
- let body;
1889
- try {
1890
- body = await res.json();
1891
- } catch (_err) {
1892
- body = parsedBody;
1893
- }
1894
- bodyError = body.error || body.err || {};
1895
- message = bodyError.message;
1896
- }
1897
- if (!message) {
1898
- message = fallbackMessage === null ? "Response Error" : fallbackMessage;
1899
- }
1900
- const err = new Error(`${message} (${res.status})`);
1901
- err.status = res.status;
1902
- err.serverMessage = message;
1903
- if (bodyError) {
1904
- for (const field of Object.keys(bodyError)) {
1905
- if (field !== "message") {
1906
- err[field] = bodyError[field];
1907
- }
1908
- }
1909
- }
1910
- if (res.status === 429 || res.status === 503) {
1911
- const parsed = parseRetryAfterHeaderAsMillis(
1912
- res.headers.get("Retry-After")
1913
- );
1914
- err.retryAfterMs = parsed ?? (res.status === 429 ? 0 : void 0);
1915
- }
1916
- return err;
1917
- }
1918
- function toEnumerableError(err) {
1919
- const enumerable = {};
1920
- enumerable.name = err.name;
1921
- for (const key of Object.getOwnPropertyNames(err)) {
1922
- enumerable[key] = err[key];
1923
- }
1924
- return enumerable;
1925
- }
1926
- function printError(error2) {
1927
- if (typeof error2 === "string") {
1928
- error2 = new Error(error2);
1929
- }
1930
- const apiError = error2;
1931
- const { message, stack, status, code, sizeLimit } = apiError;
1932
- output_manager_default.debug(`handling error: ${stack}`);
1933
- if (message === "User force closed the prompt with 0 null") {
1934
- return;
1935
- }
1936
- if (status === 403) {
1937
- output_manager_default.error(
1938
- message || `Authentication error. Run ${getCommandName("login")} to log-in again.`
1939
- );
1940
- } else if (status === 429) {
1941
- output_manager_default.error(message);
1942
- } else if (code === "size_limit_exceeded") {
1943
- output_manager_default.error(`File size limit exceeded (${(0, import_bytes.default)(sizeLimit)})`);
1944
- } else if (message) {
1945
- output_manager_default.prettyError(apiError);
1946
- } else if (status === 500) {
1947
- output_manager_default.error("Unexpected server error. Please retry.");
1948
- } else if (code === "USER_ABORT") {
1949
- output_manager_default.log("Canceled");
1950
- } else {
1951
- output_manager_default.error(`Unexpected error. Please try again later. (${message})`);
1952
- }
1953
- }
1954
-
1955
1868
  export {
1956
1869
  require_strip_ansi,
1957
1870
  require_string_width,
1958
1871
  require_cli_table3,
1959
1872
  noBorderChars,
1960
- table,
1961
- responseError,
1962
- toEnumerableError,
1963
- printError
1873
+ table
1964
1874
  };
@@ -10,10 +10,10 @@ import {
10
10
  import {
11
11
  noBorderChars,
12
12
  require_cli_table3
13
- } from "./chunk-VAFU7DXZ.js";
13
+ } from "./chunk-RKDCNQ4S.js";
14
14
  import {
15
15
  globalCommandOptions
16
- } from "./chunk-SOFC4MLS.js";
16
+ } from "./chunk-Q2DGFCO7.js";
17
17
  import {
18
18
  require_source
19
19
  } from "./chunk-S7KYDPEM.js";
@@ -11,7 +11,7 @@ import {
11
11
  packageName,
12
12
  projectOption,
13
13
  yesOption
14
- } from "./chunk-SOFC4MLS.js";
14
+ } from "./chunk-Q2DGFCO7.js";
15
15
 
16
16
  // src/commands/comments/command.ts
17
17
  var commentsProjectOption = {
@@ -9,7 +9,7 @@ import {
9
9
  require_dist2 as require_dist3,
10
10
  require_dist4,
11
11
  require_lib
12
- } from "./chunk-HMJVUXE6.js";
12
+ } from "./chunk-E6LFKMI2.js";
13
13
  import {
14
14
  output_manager_default,
15
15
  require_dist
@@ -8,7 +8,7 @@ import {
8
8
  VERCEL_DIR,
9
9
  VERCEL_DIR_PROJECT,
10
10
  require_lib
11
- } from "./chunk-HMJVUXE6.js";
11
+ } from "./chunk-E6LFKMI2.js";
12
12
  import {
13
13
  require_dist
14
14
  } from "./chunk-OX7KI3LF.js";
@@ -6,25 +6,25 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  loginCommand
9
- } from "./chunk-HURL5EBN.js";
9
+ } from "./chunk-QG4PCM45.js";
10
10
  import {
11
11
  help
12
- } from "./chunk-XI6NJLI4.js";
12
+ } from "./chunk-RZ5NP6HN.js";
13
13
  import {
14
14
  login
15
- } from "./chunk-HMJVUXE6.js";
15
+ } from "./chunk-E6LFKMI2.js";
16
16
  import {
17
17
  TelemetryClient
18
18
  } from "./chunk-CYNB6LL4.js";
19
19
  import {
20
20
  printError
21
- } from "./chunk-VAFU7DXZ.js";
21
+ } from "./chunk-CQJRLNTX.js";
22
22
  import {
23
23
  parseArguments
24
- } from "./chunk-XLKFJPMT.js";
24
+ } from "./chunk-57RHXXXG.js";
25
25
  import {
26
26
  getFlagsSpecification
27
- } from "./chunk-SOFC4MLS.js";
27
+ } from "./chunk-Q2DGFCO7.js";
28
28
  import {
29
29
  output_manager_default
30
30
  } from "./chunk-OX7KI3LF.js";
@@ -6,26 +6,26 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  resolveProjectContext
9
- } from "./chunk-HMJVUXE6.js";
9
+ } from "./chunk-E6LFKMI2.js";
10
10
  import {
11
11
  AGENT_REASON,
12
12
  AGENT_STATUS,
13
13
  buildCommandWithYes,
14
14
  outputAgentError,
15
15
  withGlobalFlags
16
- } from "./chunk-TH2XUVDP.js";
16
+ } from "./chunk-L7CEMAJG.js";
17
17
  import {
18
18
  printError
19
- } from "./chunk-VAFU7DXZ.js";
19
+ } from "./chunk-CQJRLNTX.js";
20
20
  import {
21
21
  parseArguments
22
- } from "./chunk-XLKFJPMT.js";
22
+ } from "./chunk-57RHXXXG.js";
23
23
  import {
24
24
  getCommandName,
25
25
  getCommandNamePlain,
26
26
  getFlagsSpecification,
27
27
  getGlobalFlagsFromArgs
28
- } from "./chunk-SOFC4MLS.js";
28
+ } from "./chunk-Q2DGFCO7.js";
29
29
  import {
30
30
  output_manager_default
31
31
  } from "./chunk-OX7KI3LF.js";
@@ -6,11 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  STANDARD_ENVIRONMENTS
9
- } from "./chunk-HMJVUXE6.js";
9
+ } from "./chunk-E6LFKMI2.js";
10
10
  import {
11
- getCommandName,
12
11
  require_lib
13
- } from "./chunk-SOFC4MLS.js";
12
+ } from "./chunk-Q2DGFCO7.js";
14
13
  import {
15
14
  output_manager_default
16
15
  } from "./chunk-OX7KI3LF.js";
@@ -36,19 +35,6 @@ function formatEnvironment(orgSlug, projectSlug, environment) {
36
35
  );
37
36
  }
38
37
 
39
- // src/util/validate-ls-args.ts
40
- var import_chalk2 = __toESM(require_source(), 1);
41
- function validateLsArgs(options) {
42
- const { commandName, args, maxArgs = 0, exitCode = 1, usageString } = options;
43
- if (args.length > maxArgs) {
44
- const usage = usageString || getCommandName(commandName);
45
- output_manager_default.error(`Invalid number of arguments. Usage: ${import_chalk2.default.cyan(usage)}`);
46
- return exitCode;
47
- }
48
- return 0;
49
- }
50
-
51
38
  export {
52
- formatEnvironment,
53
- validateLsArgs
39
+ formatEnvironment
54
40
  };
@@ -13,7 +13,7 @@ import {
13
13
  nextOption,
14
14
  packageName,
15
15
  yesOption
16
- } from "./chunk-SOFC4MLS.js";
16
+ } from "./chunk-Q2DGFCO7.js";
17
17
 
18
18
  // src/commands/list/command.ts
19
19
  var listCommand = {
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  writeProjectSettings
9
- } from "./chunk-KSZ4MNHO.js";
9
+ } from "./chunk-TDXNNIZ6.js";
10
10
  import {
11
11
  autoInstallVercelPlugin
12
12
  } from "./chunk-HT2XWSAJ.js";
@@ -15,10 +15,10 @@ import {
15
15
  } from "./chunk-64IF634X.js";
16
16
  import {
17
17
  pullCommand
18
- } from "./chunk-Y3J4VU2H.js";
18
+ } from "./chunk-7XX4ZEOV.js";
19
19
  import {
20
20
  help
21
- } from "./chunk-XI6NJLI4.js";
21
+ } from "./chunk-RZ5NP6HN.js";
22
22
  import {
23
23
  VERCEL_DIR,
24
24
  VERCEL_DIR_PROJECT,
@@ -26,19 +26,19 @@ import {
26
26
  envPullCommandLogic,
27
27
  humanizePath,
28
28
  parseTarget
29
- } from "./chunk-HMJVUXE6.js";
29
+ } from "./chunk-E6LFKMI2.js";
30
30
  import {
31
31
  TelemetryClient
32
32
  } from "./chunk-CYNB6LL4.js";
33
33
  import {
34
34
  printError
35
- } from "./chunk-VAFU7DXZ.js";
35
+ } from "./chunk-CQJRLNTX.js";
36
36
  import {
37
37
  parseArguments
38
- } from "./chunk-XLKFJPMT.js";
38
+ } from "./chunk-57RHXXXG.js";
39
39
  import {
40
40
  getFlagsSpecification
41
- } from "./chunk-SOFC4MLS.js";
41
+ } from "./chunk-Q2DGFCO7.js";
42
42
  import {
43
43
  emoji,
44
44
  output_manager_default,
@@ -9,7 +9,7 @@ import {
9
9
  packageName,
10
10
  projectOption,
11
11
  yesOption
12
- } from "./chunk-SOFC4MLS.js";
12
+ } from "./chunk-Q2DGFCO7.js";
13
13
 
14
14
  // src/commands/dev/command.ts
15
15
  var devCommand = {
@@ -10,7 +10,7 @@ import {
10
10
  packageName,
11
11
  projectOption,
12
12
  yesOption
13
- } from "./chunk-SOFC4MLS.js";
13
+ } from "./chunk-Q2DGFCO7.js";
14
14
 
15
15
  // src/commands/alerts/rules/command.ts
16
16
  var scopeOptions = [
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_strip_ansi
9
- } from "./chunk-VAFU7DXZ.js";
9
+ } from "./chunk-RKDCNQ4S.js";
10
10
  import {
11
11
  __toESM
12
12
  } from "./chunk-TZ2YI2VH.js";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-A3NYPUKZ.js";
17
17
  import {
18
18
  ellipsizeMiddle
19
- } from "./chunk-VDJN4WKH.js";
19
+ } from "./chunk-XRWOTCDO.js";
20
20
  import {
21
21
  elapsed
22
22
  } from "./chunk-VXYGCOKL.js";
@@ -25,7 +25,7 @@ import {
25
25
  } from "./chunk-GGP5R3FU.js";
26
26
  import {
27
27
  table
28
- } from "./chunk-VAFU7DXZ.js";
28
+ } from "./chunk-RKDCNQ4S.js";
29
29
  import {
30
30
  require_source
31
31
  } from "./chunk-S7KYDPEM.js";
@@ -63,7 +63,7 @@ var help = () => `
63
63
  buy [cmd] Purchase Vercel products for your team
64
64
  certs [cmd] Manages your SSL certificates
65
65
  changelog [cmd] Show the latest Vercel product updates
66
- connect [cmd] Manage connectors [beta]
66
+ connect [cmd] Manage connectors
67
67
  contract Show contract information for billing periods
68
68
  cron | crons [cmd] Manage cron jobs for a project [beta]
69
69
  curl [url|path] cURL requests with automatic deployment protection bypass [beta]