vercel 56.2.0 → 56.3.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 (88) hide show
  1. package/dist/chunks/{add-YQRDKWJH.js → add-CF5SQESQ.js} +11 -14
  2. package/dist/chunks/{add-T6ZTAEU2.js → add-DMRGZN3Z.js} +10 -13
  3. package/dist/chunks/{chunk-LSPZHWWP.js → chunk-22G26AIX.js} +99 -74
  4. package/dist/chunks/{chunk-HMMPJ3VD.js → chunk-2C2JJTAM.js} +6 -10
  5. package/dist/chunks/{chunk-YGSTSVXS.js → chunk-2MXGTALG.js} +1076 -3627
  6. package/dist/chunks/{chunk-5AJNUXWP.js → chunk-3PKFXNJZ.js} +2 -4
  7. package/dist/chunks/{chunk-5OT26JZN.js → chunk-3VS4DTAU.js} +4 -6
  8. package/dist/chunks/{chunk-JJWESW5Y.js → chunk-4G6QZSBL.js} +2 -4
  9. package/dist/chunks/{chunk-HR6VI6UV.js → chunk-4YOCOUDN.js} +5 -6
  10. package/dist/chunks/{chunk-GXBDQRHJ.js → chunk-4Z5LC2CI.js} +1 -1
  11. package/dist/chunks/{chunk-2RVK3DDN.js → chunk-52QYYTM5.js} +4 -0
  12. package/dist/chunks/{chunk-CMJMYVQM.js → chunk-6OMC3HOW.js} +1 -1
  13. package/dist/chunks/{chunk-SRJTYE5U.js → chunk-A6LE5VAN.js} +1 -1
  14. package/dist/chunks/{chunk-QY63UKTP.js → chunk-DMSLNAVH.js} +2 -2
  15. package/dist/chunks/{chunk-PN2GJKM5.js → chunk-DZHRFBKE.js} +2 -2
  16. package/dist/chunks/{chunk-SHT5IY3Q.js → chunk-ERPZJ4SX.js} +14 -4
  17. package/dist/chunks/{chunk-K2THP63Z.js → chunk-EYNXG3FO.js} +3 -5
  18. package/dist/chunks/{chunk-RLJA2KI7.js → chunk-FYQPTH5C.js} +2 -4
  19. package/dist/chunks/{chunk-RLXBXRU2.js → chunk-G4PG5HVE.js} +6 -10
  20. package/dist/chunks/{chunk-7PZWVZN6.js → chunk-G75NFPIT.js} +1 -1
  21. package/dist/chunks/{chunk-7C7MMT4J.js → chunk-GIL3VAUR.js} +2 -4
  22. package/dist/chunks/{chunk-EKIKD7RS.js → chunk-HUKYQKVQ.js} +9 -7
  23. package/dist/chunks/{chunk-AVLGVZJ5.js → chunk-I2IICWBW.js} +190 -29
  24. package/dist/chunks/{chunk-E3Y4SDXF.js → chunk-ICSIFPXG.js} +3 -5
  25. package/dist/chunks/{chunk-P6AK7SVK.js → chunk-KSSNLCL4.js} +360 -25
  26. package/dist/chunks/{chunk-WOA4Z45Z.js → chunk-KXKQQIUS.js} +18 -12
  27. package/dist/chunks/{chunk-HA7C7SDO.js → chunk-LHFNIZ2P.js} +2 -4
  28. package/dist/chunks/{chunk-B6SCQUDV.js → chunk-NP32PAKT.js} +2 -2
  29. package/dist/chunks/{chunk-QEEGXNFK.js → chunk-NZRWTCRM.js} +1 -1
  30. package/dist/chunks/{chunk-IDMKFYEA.js → chunk-OGG6UBXK.js} +2 -4
  31. package/dist/chunks/{chunk-XFMTSTYT.js → chunk-PRO4S2KV.js} +8 -68
  32. package/dist/chunks/{chunk-NQEAHRBI.js → chunk-Q5ADSH7D.js} +11 -16
  33. package/dist/chunks/{chunk-AEENIITE.js → chunk-QP3C5YS5.js} +8 -8
  34. package/dist/chunks/{chunk-24FCBXI4.js → chunk-R6IGDGX3.js} +1 -1
  35. package/dist/chunks/{chunk-PQK4YU22.js → chunk-SDK7R4WO.js} +1 -1
  36. package/dist/chunks/{chunk-22GUZ5KG.js → chunk-STJJ3DFO.js} +2 -4
  37. package/dist/chunks/{chunk-EHTPDXTS.js → chunk-SZXT3PDQ.js} +3 -294
  38. package/dist/chunks/{chunk-CB3I3QIT.js → chunk-UDWRZXIT.js} +193 -85
  39. package/dist/chunks/{chunk-DREO3DFB.js → chunk-VZSZBD4V.js} +16 -6
  40. package/dist/chunks/{chunk-7S3QUMIG.js → chunk-YS6EDZHB.js} +3 -5
  41. package/dist/chunks/{chunk-EI555LUJ.js → chunk-ZDCS54ZZ.js} +3 -3
  42. package/dist/chunks/{chunk-4RGSUV5C.js → chunk-ZVLPUREX.js} +2 -2
  43. package/dist/chunks/{compile-vercel-config-3AG4VKHZ.js → compile-vercel-config-RPPL7W56.js} +5 -5
  44. package/dist/chunks/{delete-JLJ753B4.js → delete-QBVZ5X6B.js} +15 -15
  45. package/dist/chunks/{disable-AXFGDOYN.js → disable-YYGXPXBI.js} +15 -14
  46. package/dist/chunks/{discard-557SDKVO.js → discard-X2MSUFGI.js} +14 -13
  47. package/dist/chunks/{edit-ITGNF7S5.js → edit-3ABZQYUU.js} +18 -19
  48. package/dist/chunks/{enable-6RMJPNW5.js → enable-HUMYCGKA.js} +15 -14
  49. package/dist/chunks/{exec-G4AUF3KG.js → exec-CNBOV577.js} +3 -3
  50. package/dist/chunks/{export-3NC3DPRR.js → export-KGHH4WAT.js} +16 -15
  51. package/dist/chunks/{image-FGP5UVA5.js → image-OO3WWKZV.js} +6 -8
  52. package/dist/chunks/{inspect-FDF5WZMM.js → inspect-5TNHHD2M.js} +11 -13
  53. package/dist/chunks/{inspect-N5DHCKLZ.js → inspect-FNUCB7Y3.js} +9 -11
  54. package/dist/chunks/{inspect-AF5J3QDV.js → inspect-KSSQEAW7.js} +12 -16
  55. package/dist/chunks/{inspect-56OMR6RC.js → inspect-Z6SSD2SR.js} +9 -11
  56. package/dist/chunks/{list-PLG2ZHBA.js → list-TXNYRVJG.js} +9 -11
  57. package/dist/chunks/{list-F2AW7L3D.js → list-X2AD3HCX.js} +11 -14
  58. package/dist/chunks/{login-LQRR64K7.js → login-SLPCZ2OF.js} +14 -17
  59. package/dist/chunks/{ls-FWPYY7GH.js → ls-2YSINRJ3.js} +11 -14
  60. package/dist/chunks/{ls-EKNQN3V4.js → ls-4QMJLQQL.js} +11 -14
  61. package/dist/chunks/{ls-HZDBJLMG.js → ls-C7MNQ4IK.js} +13 -16
  62. package/dist/chunks/{ls-E7FYH3DW.js → ls-QLTOY23G.js} +10 -13
  63. package/dist/chunks/{publish-PDGTM3M7.js → publish-GV4LLLXP.js} +14 -13
  64. package/dist/chunks/{query-MUQKKYXI.js → query-3AHRMAPA.js} +11 -13
  65. package/dist/chunks/{reorder-B76HXU6D.js → reorder-VSVOPNM4.js} +18 -17
  66. package/dist/chunks/{restore-2PYXS4NP.js → restore-FKYCF73P.js} +20 -19
  67. package/dist/chunks/{rm-GZW2IDWX.js → rm-4QCXZRC2.js} +11 -14
  68. package/dist/chunks/{rm-SD3EJRXY.js → rm-UTFG42FN.js} +9 -12
  69. package/dist/chunks/{rm-SFC67P5U.js → rm-YV5WQKQM.js} +10 -13
  70. package/dist/chunks/{rule-inspect-MSPP3V4O.js → rule-inspect-IONN4MTP.js} +10 -13
  71. package/dist/chunks/{rules-AN32QRP7.js → rules-S2KPV7HY.js} +9 -11
  72. package/dist/chunks/{schema-2GYFHMCN.js → schema-3LX3V2HE.js} +12 -13
  73. package/dist/chunks/{tags-ULDC3YLP.js → tags-CQ4FRIJ4.js} +5 -7
  74. package/dist/chunks/{types-2TPA6J4G.js → types-QKLIFDDP.js} +5 -5
  75. package/dist/chunks/{update-NE62WKTZ.js → update-U7OGHCP5.js} +10 -13
  76. package/dist/commands/build/index.js +43 -38
  77. package/dist/commands/deploy/index.js +58 -75
  78. package/dist/commands/dev/index.js +206 -163
  79. package/dist/commands/env/index.js +77 -44
  80. package/dist/commands/link/index.js +26 -29
  81. package/dist/commands/list/index.js +15 -19
  82. package/dist/commands-bulk.js +3103 -1872
  83. package/dist/index.js +30 -33
  84. package/dist/version.mjs +1 -1
  85. package/package.json +22 -23
  86. package/dist/chunks/chunk-IC4YEIGW.js +0 -101
  87. package/dist/chunks/chunk-LXF3AXHM.js +0 -158
  88. package/dist/chunks/chunk-SGL3NMOP.js +0 -86
@@ -10,17 +10,13 @@ import {
10
10
  progress,
11
11
  require_dist as require_dist2,
12
12
  sleep
13
- } from "./chunk-HR6VI6UV.js";
13
+ } from "./chunk-4YOCOUDN.js";
14
14
  import {
15
15
  suggestNextCommands
16
16
  } from "./chunk-XBN2O34P.js";
17
- import {
18
- getDeployment,
19
- mapCertError
20
- } from "./chunk-SGL3NMOP.js";
21
17
  import {
22
18
  CommandTimeout
23
- } from "./chunk-AVLGVZJ5.js";
19
+ } from "./chunk-I2IICWBW.js";
24
20
  import {
25
21
  showPluginTipIfNeeded
26
22
  } from "./chunk-NJUPUGOE.js";
@@ -28,20 +24,20 @@ import {
28
24
  stamp_default
29
25
  } from "./chunk-64IF634X.js";
30
26
  import {
31
- getScope
32
- } from "./chunk-LXF3AXHM.js";
33
- import {
27
+ getDeployment,
34
28
  getProjectByNameOrId,
29
+ getScope,
30
+ mapCertError,
35
31
  param,
36
32
  printAlignedLabel,
37
33
  require_dist as require_dist3,
38
34
  require_pluralize,
39
35
  ua_default
40
- } from "./chunk-YGSTSVXS.js";
36
+ } from "./chunk-2MXGTALG.js";
41
37
  import {
42
38
  require_strip_ansi,
43
39
  responseError
44
- } from "./chunk-EHTPDXTS.js";
40
+ } from "./chunk-SZXT3PDQ.js";
45
41
  import {
46
42
  APIError,
47
43
  BuildError,
@@ -59,12 +55,13 @@ import {
59
55
  getCommandName,
60
56
  isAPIError,
61
57
  require_bytes
62
- } from "./chunk-P6AK7SVK.js";
58
+ } from "./chunk-KSSNLCL4.js";
63
59
  import {
64
60
  Headers,
65
61
  fetch,
62
+ getFetchDispatcher,
66
63
  toNodeReadable
67
- } from "./chunk-2RVK3DDN.js";
64
+ } from "./chunk-52QYYTM5.js";
68
65
  import {
69
66
  emoji,
70
67
  eraseLines,
@@ -2001,7 +1998,6 @@ async function processDeployment({
2001
1998
  skipAutoDetectionConfirmation,
2002
1999
  noWait,
2003
2000
  withFullLogs,
2004
- agent,
2005
2001
  manual,
2006
2002
  jsonOutput,
2007
2003
  linkedProject,
@@ -2044,7 +2040,7 @@ async function processDeployment({
2044
2040
  rootDirectory,
2045
2041
  skipAutoDetectionConfirmation,
2046
2042
  archive,
2047
- agent,
2043
+ dispatcher: getFetchDispatcher(),
2048
2044
  projectName,
2049
2045
  bulkRedirectsPath,
2050
2046
  manual,
@@ -2349,7 +2345,6 @@ var Now = class {
2349
2345
  delete requestBody.public;
2350
2346
  const deployment = await processDeployment({
2351
2347
  now: this,
2352
- agent: this._client.agent,
2353
2348
  path,
2354
2349
  requestBody,
2355
2350
  quiet,
@@ -7,39 +7,39 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getUpdateCommandInfo,
9
9
  isGlobal
10
- } from "./chunk-PN2GJKM5.js";
10
+ } from "./chunk-DZHRFBKE.js";
11
11
  import {
12
12
  getGlobalPathConfig,
13
13
  progress,
14
14
  writeToConfigFile
15
- } from "./chunk-HR6VI6UV.js";
15
+ } from "./chunk-4YOCOUDN.js";
16
16
  import {
17
17
  apiCommand,
18
18
  listSubcommand3 as listSubcommand,
19
19
  loginCommand
20
- } from "./chunk-AVLGVZJ5.js";
20
+ } from "./chunk-I2IICWBW.js";
21
21
  import {
22
22
  require_semver
23
23
  } from "./chunk-IB5L4LKZ.js";
24
24
  import {
25
25
  help
26
- } from "./chunk-QY63UKTP.js";
26
+ } from "./chunk-DMSLNAVH.js";
27
27
  import {
28
28
  login
29
- } from "./chunk-YGSTSVXS.js";
29
+ } from "./chunk-2MXGTALG.js";
30
30
  import {
31
31
  TelemetryClient,
32
32
  isNativeBinaryInstall
33
33
  } from "./chunk-ECCWJHC6.js";
34
34
  import {
35
- getFlagsSpecification,
36
35
  parseArguments,
37
36
  printError,
38
37
  require_strip_ansi
39
- } from "./chunk-EHTPDXTS.js";
38
+ } from "./chunk-SZXT3PDQ.js";
40
39
  import {
40
+ getFlagsSpecification,
41
41
  packageName
42
- } from "./chunk-P6AK7SVK.js";
42
+ } from "./chunk-KSSNLCL4.js";
43
43
  import {
44
44
  pkg_default
45
45
  } from "./chunk-P4QNYOFB.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-2RVK3DDN.js";
10
+ } from "./chunk-52QYYTM5.js";
11
11
  import {
12
12
  require_signal_exit
13
13
  } from "./chunk-OX7KI3LF.js";
@@ -8,7 +8,7 @@ import {
8
8
  formatCondition,
9
9
  formatTransform,
10
10
  isTargetTransform
11
- } from "./chunk-LSPZHWWP.js";
11
+ } from "./chunk-22G26AIX.js";
12
12
  import {
13
13
  output_manager_default
14
14
  } from "./chunk-OX7KI3LF.js";
@@ -6,12 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  formatOption,
9
+ packageName,
9
10
  projectOption,
10
11
  yesOption
11
- } from "./chunk-EHTPDXTS.js";
12
- import {
13
- packageName
14
- } from "./chunk-P6AK7SVK.js";
12
+ } from "./chunk-KSSNLCL4.js";
15
13
 
16
14
  // src/commands/alerts/rules/command.ts
17
15
  var scopeOptions = [
@@ -5,13 +5,11 @@ const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
+ arg_common_default,
8
9
  getCommandName,
9
- getCommandNamePlain,
10
- normalizeFlagName,
11
10
  parseRetryAfterHeaderAsMillis,
12
- require_bytes,
13
- stripSensitiveAuthArgs
14
- } from "./chunk-P6AK7SVK.js";
11
+ require_bytes
12
+ } from "./chunk-KSSNLCL4.js";
15
13
  import {
16
14
  output_manager_default
17
15
  } from "./chunk-OX7KI3LF.js";
@@ -239,277 +237,6 @@ var require_string_width = __commonJS({
239
237
  }
240
238
  });
241
239
 
242
- // src/util/get-flags-specification.ts
243
- function getFlagsSpecification(options) {
244
- const flagsSpecification = {};
245
- for (const option of options) {
246
- flagsSpecification[`--${option.name}`] = option.type;
247
- if (option.shorthand) {
248
- flagsSpecification[`-${option.shorthand}`] = `--${option.name}`;
249
- }
250
- }
251
- return flagsSpecification;
252
- }
253
-
254
- // src/util/arg-common.ts
255
- var globalCommandOptions = [
256
- {
257
- name: "help",
258
- shorthand: "h",
259
- type: Boolean,
260
- description: "Output usage information",
261
- deprecated: false
262
- },
263
- {
264
- name: "version",
265
- shorthand: "v",
266
- type: Boolean,
267
- description: "Output the version number",
268
- deprecated: false
269
- },
270
- {
271
- name: "cwd",
272
- shorthand: null,
273
- type: String,
274
- argument: "DIR",
275
- description: "Sets the current working directory for a single run of a command",
276
- deprecated: false
277
- },
278
- {
279
- name: "local-config",
280
- shorthand: "A",
281
- type: String,
282
- argument: "FILE",
283
- description: "Path to the local `vercel.json` file",
284
- deprecated: false
285
- },
286
- {
287
- name: "global-config",
288
- shorthand: "Q",
289
- type: String,
290
- argument: "DIR",
291
- description: "Path to the global `.vercel` directory",
292
- deprecated: false
293
- },
294
- {
295
- name: "debug",
296
- shorthand: "d",
297
- type: Boolean,
298
- description: "Debug mode (default off)",
299
- deprecated: false
300
- },
301
- {
302
- name: "no-color",
303
- shorthand: null,
304
- type: Boolean,
305
- description: "No color mode (default off)",
306
- deprecated: false
307
- },
308
- {
309
- name: "non-interactive",
310
- shorthand: null,
311
- type: Boolean,
312
- description: "Run without interactive prompts; when an agent is detected this is the default",
313
- deprecated: false
314
- },
315
- {
316
- name: "scope",
317
- shorthand: "S",
318
- type: String,
319
- description: "Set a custom scope",
320
- deprecated: false
321
- },
322
- {
323
- name: "token",
324
- shorthand: "t",
325
- type: String,
326
- argument: "TOKEN",
327
- description: "Login token",
328
- deprecated: false
329
- },
330
- { name: "team", shorthand: "T", type: String, deprecated: false },
331
- { name: "api", shorthand: null, type: String, deprecated: false }
332
- ];
333
- var GLOBAL_CLI_FLAG_NAMES = (() => {
334
- const set = /* @__PURE__ */ new Set();
335
- for (const opt of globalCommandOptions) {
336
- set.add(`--${opt.name}`);
337
- if (opt.shorthand) {
338
- set.add(`-${opt.shorthand}`);
339
- }
340
- }
341
- return set;
342
- })();
343
- function globalCliFlagTakesValue(flagName) {
344
- const normalized = normalizeFlagName(flagName);
345
- for (const opt of globalCommandOptions) {
346
- if (`--${opt.name}` === normalized) {
347
- return opt.type === String;
348
- }
349
- if (opt.shorthand && `-${opt.shorthand}` === normalized) {
350
- return opt.type === String;
351
- }
352
- }
353
- return false;
354
- }
355
- var SUBCOMMAND_FLAG_TAKES_VALUE = /* @__PURE__ */ new Set([
356
- "--status",
357
- "--name",
358
- "--slug",
359
- "--version",
360
- // redirects list --version
361
- "--search",
362
- "--format",
363
- "--project",
364
- "--page",
365
- "--per-page"
366
- ]);
367
- function suggestionFlagTakesSeparateValue(flagName) {
368
- const name = normalizeFlagName(flagName);
369
- if (globalCliFlagTakesValue(name))
370
- return true;
371
- return SUBCOMMAND_FLAG_TAKES_VALUE.has(name);
372
- }
373
- function getSameSubcommandSuggestionFlags(args) {
374
- const safeArgs = stripSensitiveAuthArgs(args);
375
- const out = [];
376
- for (let i = 0; i < safeArgs.length; i++) {
377
- const a = safeArgs[i];
378
- if (!a.startsWith("-"))
379
- continue;
380
- out.push(a);
381
- if (a.includes("="))
382
- continue;
383
- const name = a;
384
- if (suggestionFlagTakesSeparateValue(name) && i + 1 < safeArgs.length && !safeArgs[i + 1].startsWith("-")) {
385
- out.push(safeArgs[++i]);
386
- }
387
- }
388
- return out;
389
- }
390
- var GLOBAL_OPTIONS = getFlagsSpecification(globalCommandOptions);
391
- var arg_common_default = () => GLOBAL_OPTIONS;
392
- var yesOption = {
393
- name: "yes",
394
- shorthand: "y",
395
- type: Boolean,
396
- deprecated: false,
397
- description: "Accept default value for all prompts"
398
- };
399
- var nextOption = {
400
- name: "next",
401
- shorthand: "N",
402
- type: Number,
403
- deprecated: false,
404
- description: "Show next page of results",
405
- argument: "MS"
406
- };
407
- var confirmOption = {
408
- name: "confirm",
409
- shorthand: "c",
410
- type: Boolean,
411
- deprecated: true
412
- };
413
- var limitOption = {
414
- name: "limit",
415
- shorthand: null,
416
- type: Number,
417
- deprecated: false,
418
- description: "Number of results to return per page (default: 20, max: 100)",
419
- argument: "NUMBER"
420
- };
421
- var forceOption = {
422
- name: "force",
423
- shorthand: "f",
424
- type: Boolean,
425
- deprecated: false
426
- };
427
- var formatOption = {
428
- name: "format",
429
- shorthand: "F",
430
- type: String,
431
- argument: "FORMAT",
432
- description: "Specify the output format (json)",
433
- deprecated: false
434
- };
435
- var jsonOption = {
436
- name: "json",
437
- shorthand: null,
438
- type: Boolean,
439
- deprecated: true,
440
- description: "DEPRECATED: Use --format=json instead"
441
- };
442
- var allOption = {
443
- name: "all",
444
- shorthand: "a",
445
- type: Boolean,
446
- deprecated: false,
447
- description: "List resources across all projects"
448
- };
449
- var projectOption = {
450
- name: "project",
451
- shorthand: null,
452
- type: String,
453
- argument: "NAME_OR_ID",
454
- description: "Project name or ID (defaults to the linked project)",
455
- deprecated: false
456
- };
457
- var deploymentOption = {
458
- name: "deployment",
459
- shorthand: null,
460
- type: String,
461
- deprecated: false,
462
- description: "The deployment ID or URL to target",
463
- argument: "ID|URL"
464
- };
465
- var protectionBypassOption = {
466
- name: "protection-bypass",
467
- shorthand: null,
468
- type: String,
469
- deprecated: false,
470
- description: "Protection bypass secret for accessing protected deployments",
471
- argument: "SECRET"
472
- };
473
- var GLOBAL_LONG_TO_OPT = /* @__PURE__ */ new Map();
474
- var GLOBAL_SHORT_TO_OPT = /* @__PURE__ */ new Map();
475
- for (const opt of globalCommandOptions) {
476
- GLOBAL_LONG_TO_OPT.set(`--${opt.name}`, opt);
477
- if (opt.shorthand) {
478
- GLOBAL_SHORT_TO_OPT.set(`-${opt.shorthand}`, opt);
479
- }
480
- }
481
- function getGlobalFlagsOnlyFromArgs(args) {
482
- const safeArgs = stripSensitiveAuthArgs(args);
483
- const out = [];
484
- for (let i = 0; i < safeArgs.length; i++) {
485
- const a = safeArgs[i];
486
- let opt;
487
- if (a.startsWith("--") && a.includes("=")) {
488
- const name = a.slice(2).split("=")[0];
489
- opt = GLOBAL_LONG_TO_OPT.get(`--${name}`);
490
- if (opt)
491
- out.push(a);
492
- continue;
493
- }
494
- opt = GLOBAL_LONG_TO_OPT.get(a) || GLOBAL_SHORT_TO_OPT.get(a);
495
- if (!opt)
496
- continue;
497
- out.push(a);
498
- if (opt.type === String && !a.includes("=")) {
499
- const next = safeArgs[i + 1];
500
- if (next && !next.startsWith("-")) {
501
- out.push(next);
502
- i++;
503
- }
504
- }
505
- }
506
- return out;
507
- }
508
- function getCommandNameWithGlobalFlags(commandTemplate, argv) {
509
- const flags = getGlobalFlagsOnlyFromArgs(argv.slice(2));
510
- return getCommandNamePlain(`${commandTemplate} ${flags.join(" ")}`.trim());
511
- }
512
-
513
240
  // src/util/get-args.ts
514
241
  var import_arg = __toESM(require_arg(), 1);
515
242
  function getArgs(argv, argsOptions, argOptions = {}) {
@@ -606,24 +333,6 @@ function printError(error2) {
606
333
  }
607
334
 
608
335
  export {
609
- getFlagsSpecification,
610
- globalCommandOptions,
611
- GLOBAL_CLI_FLAG_NAMES,
612
- globalCliFlagTakesValue,
613
- getSameSubcommandSuggestionFlags,
614
- yesOption,
615
- nextOption,
616
- confirmOption,
617
- limitOption,
618
- forceOption,
619
- formatOption,
620
- jsonOption,
621
- allOption,
622
- projectOption,
623
- deploymentOption,
624
- protectionBypassOption,
625
- getGlobalFlagsOnlyFromArgs,
626
- getCommandNameWithGlobalFlags,
627
336
  getArgs,
628
337
  parseArguments,
629
338
  require_strip_ansi,