vercel 51.2.1 → 51.4.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 (69) hide show
  1. package/dist/chunks/add-RNQLGEYS.js +180 -0
  2. package/dist/chunks/{chunk-XAVGWINL.js → chunk-3GDNTBCE.js} +44 -13
  3. package/dist/chunks/{chunk-SSOWPEZT.js → chunk-4DR2FV6O.js} +2 -2
  4. package/dist/chunks/{chunk-Q6BEDVOU.js → chunk-4PQA6H63.js} +1 -1
  5. package/dist/chunks/{chunk-IS2HEMF4.js → chunk-4RBF6ZDU.js} +4 -2
  6. package/dist/chunks/{chunk-7S7GE4BN.js → chunk-537JTK2U.js} +216 -523
  7. package/dist/chunks/{chunk-K5XJCQQO.js → chunk-5NTBJ33M.js} +1 -1
  8. package/dist/chunks/{chunk-5YQCJTZI.js → chunk-5VKKTHMP.js} +6 -6
  9. package/dist/chunks/{chunk-W6FW7CCT.js → chunk-6C33Y3DC.js} +13 -8
  10. package/dist/chunks/{chunk-5WHDQH2U.js → chunk-7MF47FW3.js} +1 -1
  11. package/dist/chunks/chunk-7ZDERWUW.js +167 -0
  12. package/dist/chunks/{chunk-RK4TKB3D.js → chunk-AUSDBXUD.js} +7 -5
  13. package/dist/chunks/{chunk-BUBUVE23.js → chunk-BJQTGP42.js} +4 -2
  14. package/dist/chunks/{chunk-57RLFBKC.js → chunk-BRQBLRFB.js} +1 -1
  15. package/dist/chunks/chunk-CGTXAXZ4.js +484 -0
  16. package/dist/chunks/{chunk-BQUQ5F7R.js → chunk-CRZM5WM2.js} +4 -2
  17. package/dist/chunks/{chunk-VTQNSCUG.js → chunk-D2D4FJ6S.js} +8 -6
  18. package/dist/chunks/{chunk-G6MVEB4W.js → chunk-DKFFXOHJ.js} +3 -3
  19. package/dist/chunks/chunk-DVQ4SIWF.js +183 -0
  20. package/dist/chunks/{chunk-A4NVECX5.js → chunk-ECRBC4HL.js} +4 -581
  21. package/dist/chunks/{chunk-L2BKVTHL.js → chunk-G6RXZLQ2.js} +2 -2
  22. package/dist/chunks/{chunk-4YZKA4FN.js → chunk-GE6G37P4.js} +1 -1
  23. package/dist/chunks/{chunk-NELCIT4M.js → chunk-GLDQ23LD.js} +1 -1
  24. package/dist/chunks/{chunk-QQTF2FEY.js → chunk-HNU5CXW4.js} +9 -5
  25. package/dist/chunks/chunk-HQXVCOH6.js +139 -0
  26. package/dist/chunks/{chunk-3FMFPD7F.js → chunk-L2JUC7NX.js} +2 -2
  27. package/dist/chunks/{chunk-Y5YCSB6X.js → chunk-LDXYSGPZ.js} +2 -2
  28. package/dist/chunks/{chunk-U5J73OA3.js → chunk-N45K6NXC.js} +1 -1
  29. package/dist/chunks/{chunk-5DLMAFQU.js → chunk-NKJC5SI4.js} +6 -4
  30. package/dist/chunks/{chunk-FSOFFJDV.js → chunk-O7SQKNIT.js} +1 -1
  31. package/dist/chunks/{chunk-XRR5HDB3.js → chunk-P56KWLXY.js} +2 -2
  32. package/dist/chunks/{chunk-EHZKWVK2.js → chunk-PBGN54ZH.js} +5 -5
  33. package/dist/chunks/chunk-RFMC2QXQ.js +602 -0
  34. package/dist/chunks/{chunk-W5K4YCTI.js → chunk-RJD5NYGF.js} +5 -3
  35. package/dist/chunks/{chunk-WXNT7WJO.js → chunk-TAOVG4PS.js} +49 -4
  36. package/dist/chunks/{chunk-4EGCWWSR.js → chunk-UJ4JXXED.js} +143 -16
  37. package/dist/chunks/{chunk-2IAZZEVQ.js → chunk-UWKTUK3W.js} +4 -2
  38. package/dist/chunks/{chunk-VE7MY76H.js → chunk-VGWGLBUC.js} +4 -2
  39. package/dist/chunks/{compile-vercel-config-2GV46IDP.js → compile-vercel-config-ZVY7LBE3.js} +4 -2
  40. package/dist/chunks/{delete-PXMYSQGR.js → delete-SKTJMJNP.js} +7 -5
  41. package/dist/chunks/{disable-2ZQ4OG4A.js → disable-AG7I6DPV.js} +7 -5
  42. package/dist/chunks/{discard-FQZTZ5HK.js → discard-LUK6LBLT.js} +7 -5
  43. package/dist/chunks/{edit-F3J7Q5SZ.js → edit-3BR5HP3U.js} +8 -6
  44. package/dist/chunks/{enable-ZW4W33H5.js → enable-4JNLOKSM.js} +7 -5
  45. package/dist/chunks/{export-ZZV6ESIW.js → export-YLZ6QSHG.js} +7 -5
  46. package/dist/chunks/inspect-HUJLUQAV.js +353 -0
  47. package/dist/chunks/{list-SSIMVNNN.js → list-EPU4SB3E.js} +10 -7
  48. package/dist/chunks/{list-VFPV4TUW.js → list-RMA56KYZ.js} +115 -85
  49. package/dist/chunks/ls-7HHDYE6F.js +114 -0
  50. package/dist/chunks/{publish-3K76MNS3.js → publish-6YE4OUDI.js} +7 -5
  51. package/dist/chunks/{query-CY7JJSSX.js → query-VNBKOI65.js} +15 -12
  52. package/dist/chunks/{reorder-6L7MENN5.js → reorder-VFM23ESC.js} +7 -5
  53. package/dist/chunks/{restore-XUYXOJQ2.js → restore-VX34SXVF.js} +7 -5
  54. package/dist/chunks/rm-5KXF2PY3.js +164 -0
  55. package/dist/chunks/rule-inspect-JG7AE5TI.js +142 -0
  56. package/dist/chunks/rules-XRJBT22L.js +83 -0
  57. package/dist/chunks/{schema-G5FSLZVA.js → schema-FUOKCZTW.js} +9 -7
  58. package/dist/chunks/{types-A4EAQ6F6.js → types-QNN5CDCB.js} +6 -4
  59. package/dist/chunks/update-4FMWTIJK.js +196 -0
  60. package/dist/commands/build/index.js +36 -43
  61. package/dist/commands/deploy/index.js +171 -32
  62. package/dist/commands/dev/index.js +36 -31
  63. package/dist/commands/env/index.js +32 -27
  64. package/dist/commands/link/index.js +21 -17
  65. package/dist/commands/list/index.js +14 -11
  66. package/dist/commands-bulk.js +1640 -884
  67. package/dist/index.js +28 -24
  68. package/dist/version.mjs +1 -1
  69. package/package.json +17 -17
@@ -5,7 +5,6 @@ const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
- output_manager_default,
9
8
  require_dist
10
9
  } from "./chunk-ZQKJVHXY.js";
11
10
  import {
@@ -279,124 +278,11 @@ var require_lib = __commonJS({
279
278
  }
280
279
  });
281
280
 
282
- // ../../node_modules/.pnpm/arg@5.0.0/node_modules/arg/index.js
283
- var require_arg = __commonJS({
284
- "../../node_modules/.pnpm/arg@5.0.0/node_modules/arg/index.js"(exports, module) {
285
- var flagSymbol = Symbol("arg flag");
286
- var ArgError = class _ArgError extends Error {
287
- constructor(msg, code2) {
288
- super(msg);
289
- this.name = "ArgError";
290
- this.code = code2;
291
- Object.setPrototypeOf(this, _ArgError.prototype);
292
- }
293
- };
294
- function arg2(opts, { argv = process.argv.slice(2), permissive = false, stopAtPositional = false } = {}) {
295
- if (!opts) {
296
- throw new ArgError("argument specification object is required", "ARG_CONFIG_NO_SPEC");
297
- }
298
- const result = { _: [] };
299
- const aliases = {};
300
- const handlers = {};
301
- for (const key of Object.keys(opts)) {
302
- if (!key) {
303
- throw new ArgError("argument key cannot be an empty string", "ARG_CONFIG_EMPTY_KEY");
304
- }
305
- if (key[0] !== "-") {
306
- throw new ArgError(`argument key must start with '-' but found: '${key}'`, "ARG_CONFIG_NONOPT_KEY");
307
- }
308
- if (key.length === 1) {
309
- throw new ArgError(`argument key must have a name; singular '-' keys are not allowed: ${key}`, "ARG_CONFIG_NONAME_KEY");
310
- }
311
- if (typeof opts[key] === "string") {
312
- aliases[key] = opts[key];
313
- continue;
314
- }
315
- let type = opts[key];
316
- let isFlag = false;
317
- if (Array.isArray(type) && type.length === 1 && typeof type[0] === "function") {
318
- const [fn] = type;
319
- type = (value, name, prev = []) => {
320
- prev.push(fn(value, name, prev[prev.length - 1]));
321
- return prev;
322
- };
323
- isFlag = fn === Boolean || fn[flagSymbol] === true;
324
- } else if (typeof type === "function") {
325
- isFlag = type === Boolean || type[flagSymbol] === true;
326
- } else {
327
- throw new ArgError(`type missing or not a function or valid array type: ${key}`, "ARG_CONFIG_VAD_TYPE");
328
- }
329
- if (key[1] !== "-" && key.length > 2) {
330
- throw new ArgError(`short argument keys (with a single hyphen) must have only one character: ${key}`, "ARG_CONFIG_SHORTOPT_TOOLONG");
331
- }
332
- handlers[key] = [type, isFlag];
333
- }
334
- for (let i = 0, len = argv.length; i < len; i++) {
335
- const wholeArg = argv[i];
336
- if (stopAtPositional && result._.length > 0) {
337
- result._ = result._.concat(argv.slice(i));
338
- break;
339
- }
340
- if (wholeArg === "--") {
341
- result._ = result._.concat(argv.slice(i + 1));
342
- break;
343
- }
344
- if (wholeArg.length > 1 && wholeArg[0] === "-") {
345
- const separatedArguments = wholeArg[1] === "-" || wholeArg.length === 2 ? [wholeArg] : wholeArg.slice(1).split("").map((a) => `-${a}`);
346
- for (let j = 0; j < separatedArguments.length; j++) {
347
- const arg3 = separatedArguments[j];
348
- const [originalArgName, argStr] = arg3[1] === "-" ? arg3.split(/=(.*)/, 2) : [arg3, void 0];
349
- let argName = originalArgName;
350
- while (argName in aliases) {
351
- argName = aliases[argName];
352
- }
353
- if (!(argName in handlers)) {
354
- if (permissive) {
355
- result._.push(arg3);
356
- continue;
357
- } else {
358
- throw new ArgError(`unknown or unexpected option: ${originalArgName}`, "ARG_UNKNOWN_OPTION");
359
- }
360
- }
361
- const [type, isFlag] = handlers[argName];
362
- if (!isFlag && j + 1 < separatedArguments.length) {
363
- throw new ArgError(`option requires argument (but was followed by another short argument): ${originalArgName}`, "ARG_MISSING_REQUIRED_SHORTARG");
364
- }
365
- if (isFlag) {
366
- result[argName] = type(true, argName, result[argName]);
367
- } else if (argStr === void 0) {
368
- if (argv.length < i + 2 || argv[i + 1].length > 1 && argv[i + 1][0] === "-" && !(argv[i + 1].match(/^-?\d*(\.(?=\d))?\d*$/) && (type === Number || // eslint-disable-next-line no-undef
369
- typeof BigInt !== "undefined" && type === BigInt))) {
370
- const extended = originalArgName === argName ? "" : ` (alias for ${argName})`;
371
- throw new ArgError(`option requires argument: ${originalArgName}${extended}`, "ARG_MISSING_REQUIRED_LONGARG");
372
- }
373
- result[argName] = type(argv[i + 1], argName, result[argName]);
374
- ++i;
375
- } else {
376
- result[argName] = type(argStr, argName, result[argName]);
377
- }
378
- }
379
- } else {
380
- result._.push(wholeArg);
381
- }
382
- }
383
- return result;
384
- }
385
- arg2.flag = (fn) => {
386
- fn[flagSymbol] = true;
387
- return fn;
388
- };
389
- arg2.COUNT = arg2.flag((v, name, existingCount) => (existingCount || 0) + 1);
390
- arg2.ArgError = ArgError;
391
- module.exports = arg2;
392
- }
393
- });
394
-
395
281
  // ../../node_modules/.pnpm/bytes@3.0.0/node_modules/bytes/index.js
396
282
  var require_bytes = __commonJS({
397
283
  "../../node_modules/.pnpm/bytes@3.0.0/node_modules/bytes/index.js"(exports, module) {
398
284
  "use strict";
399
- module.exports = bytes3;
285
+ module.exports = bytes2;
400
286
  module.exports.format = format;
401
287
  module.exports.parse = parse;
402
288
  var formatThousandsRegExp = /\B(?=(\d{3})+(?!\d))/g;
@@ -409,7 +295,7 @@ var require_bytes = __commonJS({
409
295
  tb: (1 << 30) * 1024
410
296
  };
411
297
  var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb)$/i;
412
- function bytes3(value, options) {
298
+ function bytes2(value, options) {
413
299
  if (typeof value === "string") {
414
300
  return parse(value);
415
301
  }
@@ -473,109 +359,6 @@ var require_bytes = __commonJS({
473
359
  }
474
360
  });
475
361
 
476
- // ../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
477
- var require_ansi_regex = __commonJS({
478
- "../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports, module) {
479
- "use strict";
480
- module.exports = ({ onlyFirst = false } = {}) => {
481
- const pattern = [
482
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
483
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
484
- ].join("|");
485
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
486
- };
487
- }
488
- });
489
-
490
- // ../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
491
- var require_strip_ansi = __commonJS({
492
- "../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports, module) {
493
- "use strict";
494
- var ansiRegex = require_ansi_regex();
495
- module.exports = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string;
496
- }
497
- });
498
-
499
- // ../../node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js
500
- var require_is_fullwidth_code_point = __commonJS({
501
- "../../node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js"(exports, module) {
502
- "use strict";
503
- var isFullwidthCodePoint = (codePoint) => {
504
- if (Number.isNaN(codePoint)) {
505
- return false;
506
- }
507
- if (codePoint >= 4352 && (codePoint <= 4447 || // Hangul Jamo
508
- codePoint === 9001 || // LEFT-POINTING ANGLE BRACKET
509
- codePoint === 9002 || // RIGHT-POINTING ANGLE BRACKET
510
- // CJK Radicals Supplement .. Enclosed CJK Letters and Months
511
- 11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
512
- 12880 <= codePoint && codePoint <= 19903 || // CJK Unified Ideographs .. Yi Radicals
513
- 19968 <= codePoint && codePoint <= 42182 || // Hangul Jamo Extended-A
514
- 43360 <= codePoint && codePoint <= 43388 || // Hangul Syllables
515
- 44032 <= codePoint && codePoint <= 55203 || // CJK Compatibility Ideographs
516
- 63744 <= codePoint && codePoint <= 64255 || // Vertical Forms
517
- 65040 <= codePoint && codePoint <= 65049 || // CJK Compatibility Forms .. Small Form Variants
518
- 65072 <= codePoint && codePoint <= 65131 || // Halfwidth and Fullwidth Forms
519
- 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || // Kana Supplement
520
- 110592 <= codePoint && codePoint <= 110593 || // Enclosed Ideographic Supplement
521
- 127488 <= codePoint && codePoint <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
522
- 131072 <= codePoint && codePoint <= 262141)) {
523
- return true;
524
- }
525
- return false;
526
- };
527
- module.exports = isFullwidthCodePoint;
528
- module.exports.default = isFullwidthCodePoint;
529
- }
530
- });
531
-
532
- // ../../node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js
533
- var require_emoji_regex = __commonJS({
534
- "../../node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js"(exports, module) {
535
- "use strict";
536
- module.exports = function() {
537
- return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
538
- };
539
- }
540
- });
541
-
542
- // ../../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js
543
- var require_string_width = __commonJS({
544
- "../../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports, module) {
545
- "use strict";
546
- var stripAnsi = require_strip_ansi();
547
- var isFullwidthCodePoint = require_is_fullwidth_code_point();
548
- var emojiRegex = require_emoji_regex();
549
- var stringWidth = (string) => {
550
- if (typeof string !== "string" || string.length === 0) {
551
- return 0;
552
- }
553
- string = stripAnsi(string);
554
- if (string.length === 0) {
555
- return 0;
556
- }
557
- string = string.replace(emojiRegex(), " ");
558
- let width = 0;
559
- for (let i = 0; i < string.length; i++) {
560
- const code2 = string.codePointAt(i);
561
- if (code2 <= 31 || code2 >= 127 && code2 <= 159) {
562
- continue;
563
- }
564
- if (code2 >= 768 && code2 <= 879) {
565
- continue;
566
- }
567
- if (code2 > 65535) {
568
- i++;
569
- }
570
- width += isFullwidthCodePoint(code2) ? 2 : 1;
571
- }
572
- return width;
573
- };
574
- module.exports = stringWidth;
575
- module.exports.default = stringWidth;
576
- }
577
- });
578
-
579
362
  // src/util/output/cmd.ts
580
363
  var import_chalk = __toESM(require_source(), 1);
581
364
  function cmd(text) {
@@ -601,269 +384,6 @@ function getCommandNamePlain(subcommands) {
601
384
  return subcommands ? `${packageName} ${subcommands}` : packageName;
602
385
  }
603
386
 
604
- // src/util/get-flags-specification.ts
605
- function getFlagsSpecification(options) {
606
- const flagsSpecification = {};
607
- for (const option of options) {
608
- flagsSpecification[`--${option.name}`] = option.type;
609
- if (option.shorthand) {
610
- flagsSpecification[`-${option.shorthand}`] = `--${option.name}`;
611
- }
612
- }
613
- return flagsSpecification;
614
- }
615
-
616
- // src/util/arg-common.ts
617
- var globalCommandOptions = [
618
- {
619
- name: "help",
620
- shorthand: "h",
621
- type: Boolean,
622
- description: "Output usage information",
623
- deprecated: false
624
- },
625
- {
626
- name: "version",
627
- shorthand: "v",
628
- type: Boolean,
629
- description: "Output the version number",
630
- deprecated: false
631
- },
632
- {
633
- name: "cwd",
634
- shorthand: null,
635
- type: String,
636
- argument: "DIR",
637
- description: "Sets the current working directory for a single run of a command",
638
- deprecated: false
639
- },
640
- {
641
- name: "local-config",
642
- shorthand: "A",
643
- type: String,
644
- argument: "FILE",
645
- description: "Path to the local `vercel.json` file",
646
- deprecated: false
647
- },
648
- {
649
- name: "global-config",
650
- shorthand: "Q",
651
- type: String,
652
- argument: "DIR",
653
- description: "Path to the global `.vercel` directory",
654
- deprecated: false
655
- },
656
- {
657
- name: "debug",
658
- shorthand: "d",
659
- type: Boolean,
660
- description: "Debug mode (default off)",
661
- deprecated: false
662
- },
663
- {
664
- name: "no-color",
665
- shorthand: null,
666
- type: Boolean,
667
- description: "No color mode (default off)",
668
- deprecated: false
669
- },
670
- {
671
- name: "non-interactive",
672
- shorthand: null,
673
- type: Boolean,
674
- description: "Run without interactive prompts; when an agent is detected this is the default",
675
- deprecated: false
676
- },
677
- {
678
- name: "scope",
679
- shorthand: "S",
680
- type: String,
681
- description: "Set a custom scope",
682
- deprecated: false
683
- },
684
- {
685
- name: "token",
686
- shorthand: "t",
687
- type: String,
688
- argument: "TOKEN",
689
- description: "Login token",
690
- deprecated: false
691
- },
692
- { name: "team", shorthand: "T", type: String, deprecated: false },
693
- { name: "api", shorthand: null, type: String, deprecated: false }
694
- ];
695
- var GLOBAL_CLI_FLAG_NAMES = (() => {
696
- const set = /* @__PURE__ */ new Set();
697
- for (const opt of globalCommandOptions) {
698
- set.add(`--${opt.name}`);
699
- if (opt.shorthand) {
700
- set.add(`-${opt.shorthand}`);
701
- }
702
- }
703
- return set;
704
- })();
705
- function globalCliFlagTakesValue(flagName) {
706
- const normalized = flagName.includes("=") ? flagName.slice(0, flagName.indexOf("=")) : flagName;
707
- for (const opt of globalCommandOptions) {
708
- if (`--${opt.name}` === normalized) {
709
- return opt.type === String;
710
- }
711
- if (opt.shorthand && `-${opt.shorthand}` === normalized) {
712
- return opt.type === String;
713
- }
714
- }
715
- return false;
716
- }
717
- var SUBCOMMAND_FLAG_TAKES_VALUE = /* @__PURE__ */ new Set([
718
- "--status",
719
- "--name",
720
- "--slug",
721
- "--version",
722
- // redirects list --version
723
- "--search",
724
- "--format",
725
- "--page",
726
- "--per-page"
727
- ]);
728
- function suggestionFlagTakesSeparateValue(flagName) {
729
- const name = flagName.includes("=") ? flagName.slice(0, flagName.indexOf("=")) : flagName;
730
- if (globalCliFlagTakesValue(name))
731
- return true;
732
- return SUBCOMMAND_FLAG_TAKES_VALUE.has(name);
733
- }
734
- function getSameSubcommandSuggestionFlags(args) {
735
- const out = [];
736
- for (let i = 0; i < args.length; i++) {
737
- const a = args[i];
738
- if (!a.startsWith("-"))
739
- continue;
740
- out.push(a);
741
- if (a.includes("="))
742
- continue;
743
- const name = a;
744
- if (suggestionFlagTakesSeparateValue(name) && i + 1 < args.length && !args[i + 1].startsWith("-")) {
745
- out.push(args[++i]);
746
- }
747
- }
748
- return out;
749
- }
750
- var GLOBAL_OPTIONS = getFlagsSpecification(globalCommandOptions);
751
- var arg_common_default = () => GLOBAL_OPTIONS;
752
- var yesOption = {
753
- name: "yes",
754
- shorthand: "y",
755
- type: Boolean,
756
- deprecated: false,
757
- description: "Accept default value for all prompts"
758
- };
759
- var nextOption = {
760
- name: "next",
761
- shorthand: "N",
762
- type: Number,
763
- deprecated: false,
764
- description: "Show next page of results",
765
- argument: "MS"
766
- };
767
- var confirmOption = {
768
- name: "confirm",
769
- shorthand: "c",
770
- type: Boolean,
771
- deprecated: true
772
- };
773
- var limitOption = {
774
- name: "limit",
775
- shorthand: null,
776
- type: Number,
777
- deprecated: false,
778
- description: "Number of results to return per page (default: 20, max: 100)",
779
- argument: "NUMBER"
780
- };
781
- var forceOption = {
782
- name: "force",
783
- shorthand: "f",
784
- type: Boolean,
785
- deprecated: false
786
- };
787
- var formatOption = {
788
- name: "format",
789
- shorthand: "F",
790
- type: String,
791
- argument: "FORMAT",
792
- description: "Specify the output format (json)",
793
- deprecated: false
794
- };
795
- var jsonOption = {
796
- name: "json",
797
- shorthand: null,
798
- type: Boolean,
799
- deprecated: true,
800
- description: "DEPRECATED: Use --format=json instead"
801
- };
802
- var allOption = {
803
- name: "all",
804
- shorthand: "a",
805
- type: Boolean,
806
- deprecated: false,
807
- description: "List resources across all projects"
808
- };
809
- var GLOBAL_LONG_TO_OPT = /* @__PURE__ */ new Map();
810
- var GLOBAL_SHORT_TO_OPT = /* @__PURE__ */ new Map();
811
- for (const opt of globalCommandOptions) {
812
- GLOBAL_LONG_TO_OPT.set(`--${opt.name}`, opt);
813
- if (opt.shorthand) {
814
- GLOBAL_SHORT_TO_OPT.set(`-${opt.shorthand}`, opt);
815
- }
816
- }
817
- function getGlobalFlagsOnlyFromArgs(args) {
818
- const out = [];
819
- for (let i = 0; i < args.length; i++) {
820
- const a = args[i];
821
- let opt;
822
- if (a.startsWith("--") && a.includes("=")) {
823
- const name = a.slice(2).split("=")[0];
824
- opt = GLOBAL_LONG_TO_OPT.get(`--${name}`);
825
- if (opt)
826
- out.push(a);
827
- continue;
828
- }
829
- opt = GLOBAL_LONG_TO_OPT.get(a) || GLOBAL_SHORT_TO_OPT.get(a);
830
- if (!opt)
831
- continue;
832
- out.push(a);
833
- if (opt.type === String && !a.includes("=")) {
834
- const next = args[i + 1];
835
- if (next && !next.startsWith("-")) {
836
- out.push(next);
837
- i++;
838
- }
839
- }
840
- }
841
- return out;
842
- }
843
- function getCommandNameWithGlobalFlags(commandTemplate, argv) {
844
- const flags = getGlobalFlagsOnlyFromArgs(argv.slice(2));
845
- return getCommandNamePlain(`${commandTemplate} ${flags.join(" ")}`.trim());
846
- }
847
-
848
- // src/util/get-args.ts
849
- var import_arg = __toESM(require_arg(), 1);
850
- function getArgs(argv, argsOptions, argOptions = {}) {
851
- return (0, import_arg.default)(Object.assign({}, arg_common_default(), argsOptions), {
852
- ...argOptions,
853
- argv
854
- });
855
- }
856
- function parseArguments(args, flagsSpecification, parserOptions = {}) {
857
- const { _: positional, ...rest } = (0, import_arg.default)(
858
- Object.assign({}, arg_common_default(), flagsSpecification),
859
- {
860
- ...parserOptions,
861
- argv: args
862
- }
863
- );
864
- return { args: positional, flags: rest };
865
- }
866
-
867
387
  // src/util/now-error.ts
868
388
  var NowError = class extends Error {
869
389
  constructor({
@@ -1541,82 +1061,6 @@ var InvalidLocalConfig = class extends NowError {
1541
1061
  }
1542
1062
  };
1543
1063
 
1544
- // src/util/output/error.ts
1545
- var import_chalk4 = __toESM(require_source(), 1);
1546
-
1547
- // src/util/error.ts
1548
- var import_bytes2 = __toESM(require_bytes(), 1);
1549
- async function responseError(res, fallbackMessage = null, parsedBody = {}) {
1550
- let message = "";
1551
- let bodyError;
1552
- if (res.status >= 400 && res.status < 500) {
1553
- let body;
1554
- try {
1555
- body = await res.json();
1556
- } catch (_err) {
1557
- body = parsedBody;
1558
- }
1559
- bodyError = body.error || body.err || {};
1560
- message = bodyError.message;
1561
- }
1562
- if (!message) {
1563
- message = fallbackMessage === null ? "Response Error" : fallbackMessage;
1564
- }
1565
- const err = new Error(`${message} (${res.status})`);
1566
- err.status = res.status;
1567
- err.serverMessage = message;
1568
- if (bodyError) {
1569
- for (const field of Object.keys(bodyError)) {
1570
- if (field !== "message") {
1571
- err[field] = bodyError[field];
1572
- }
1573
- }
1574
- }
1575
- if (res.status === 429 || res.status === 503) {
1576
- const parsed = parseRetryAfterHeaderAsMillis(
1577
- res.headers.get("Retry-After")
1578
- );
1579
- err.retryAfterMs = parsed ?? (res.status === 429 ? 0 : void 0);
1580
- }
1581
- return err;
1582
- }
1583
- function toEnumerableError(err) {
1584
- const enumerable = {};
1585
- enumerable.name = err.name;
1586
- for (const key of Object.getOwnPropertyNames(err)) {
1587
- enumerable[key] = err[key];
1588
- }
1589
- return enumerable;
1590
- }
1591
- function printError(error2) {
1592
- if (typeof error2 === "string") {
1593
- error2 = new Error(error2);
1594
- }
1595
- const apiError = error2;
1596
- const { message, stack, status, code: code2, sizeLimit } = apiError;
1597
- output_manager_default.debug(`handling error: ${stack}`);
1598
- if (message === "User force closed the prompt with 0 null") {
1599
- return;
1600
- }
1601
- if (status === 403) {
1602
- output_manager_default.error(
1603
- message || `Authentication error. Run ${getCommandName("login")} to log-in again.`
1604
- );
1605
- } else if (status === 429) {
1606
- output_manager_default.error(message);
1607
- } else if (code2 === "size_limit_exceeded") {
1608
- output_manager_default.error(`File size limit exceeded (${(0, import_bytes2.default)(sizeLimit)})`);
1609
- } else if (message) {
1610
- output_manager_default.prettyError(apiError);
1611
- } else if (status === 500) {
1612
- output_manager_default.error("Unexpected server error. Please retry.");
1613
- } else if (code2 === "USER_ABORT") {
1614
- output_manager_default.log("Canceled");
1615
- } else {
1616
- output_manager_default.error(`Unexpected error. Please try again later. (${message})`);
1617
- }
1618
- }
1619
-
1620
1064
  export {
1621
1065
  pkg_default,
1622
1066
  pkg_exports,
@@ -1627,27 +1071,11 @@ export {
1627
1071
  getTitleName,
1628
1072
  getCommandName,
1629
1073
  getCommandNamePlain,
1630
- getFlagsSpecification,
1631
- globalCommandOptions,
1632
- GLOBAL_CLI_FLAG_NAMES,
1633
- globalCliFlagTakesValue,
1634
- getSameSubcommandSuggestionFlags,
1635
- yesOption,
1636
- nextOption,
1637
- confirmOption,
1638
- limitOption,
1639
- forceOption,
1640
- formatOption,
1641
- jsonOption,
1642
- allOption,
1643
- getGlobalFlagsOnlyFromArgs,
1644
- getCommandNameWithGlobalFlags,
1645
- getArgs,
1646
- parseArguments,
1647
1074
  require_bytes,
1648
1075
  NowError,
1649
1076
  code,
1650
1077
  APIError,
1078
+ parseRetryAfterHeaderAsMillis,
1651
1079
  isAPIError,
1652
1080
  TeamDeleted,
1653
1081
  InvalidToken,
@@ -1708,12 +1136,7 @@ export {
1708
1136
  ConflictingPathSegment,
1709
1137
  BuildError,
1710
1138
  SchemaValidationFailed,
1711
- InvalidLocalConfig,
1712
- require_strip_ansi,
1713
- require_string_width,
1714
- responseError,
1715
- toEnumerableError,
1716
- printError
1139
+ InvalidLocalConfig
1717
1140
  };
1718
1141
  /*! Bundled license information:
1719
1142
 
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  table
9
- } from "./chunk-4YZKA4FN.js";
9
+ } from "./chunk-GE6G37P4.js";
10
10
  import {
11
11
  require_strip_ansi
12
- } from "./chunk-A4NVECX5.js";
12
+ } from "./chunk-RFMC2QXQ.js";
13
13
  import {
14
14
  require_source
15
15
  } from "./chunk-S7KYDPEM.js";
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_string_width
9
- } from "./chunk-A4NVECX5.js";
9
+ } from "./chunk-RFMC2QXQ.js";
10
10
  import {
11
11
  __commonJS,
12
12
  __require,
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  isAPIError
9
- } from "./chunk-A4NVECX5.js";
9
+ } from "./chunk-ECRBC4HL.js";
10
10
  import {
11
11
  output_manager_default
12
12
  } from "./chunk-ZQKJVHXY.js";