vercel 35.1.0 → 35.2.1

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 (2) hide show
  1. package/dist/index.js +467 -380
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -96,7 +96,7 @@ var require_dist2 = __commonJS2({
96
96
  __export4(src_exports2, {
97
97
  errorToString: () => errorToString13,
98
98
  isErrnoException: () => isErrnoException21,
99
- isError: () => isError14,
99
+ isError: () => isError15,
100
100
  isErrorLike: () => isErrorLike,
101
101
  isObject: () => isObject,
102
102
  isSpawnError: () => isSpawnError2,
@@ -105,22 +105,22 @@ var require_dist2 = __commonJS2({
105
105
  module2.exports = __toCommonJS4(src_exports2);
106
106
  var import_node_util = __toESM4(require("util"));
107
107
  var isObject = (obj) => typeof obj === "object" && obj !== null;
108
- var isError14 = (error4) => {
108
+ var isError15 = (error4) => {
109
109
  return import_node_util.default.types.isNativeError(error4);
110
110
  };
111
111
  var isErrnoException21 = (error4) => {
112
- return isError14(error4) && "code" in error4;
112
+ return isError15(error4) && "code" in error4;
113
113
  };
114
114
  var isErrorLike = (error4) => isObject(error4) && "message" in error4;
115
115
  var errorToString13 = (error4, fallback) => {
116
- if (isError14(error4) || isErrorLike(error4))
116
+ if (isError15(error4) || isErrorLike(error4))
117
117
  return error4.message;
118
118
  if (typeof error4 === "string")
119
119
  return error4;
120
120
  return fallback ?? "An unknown error has ocurred.";
121
121
  };
122
122
  var normalizeError3 = (error4) => {
123
- if (isError14(error4))
123
+ if (isError15(error4))
124
124
  return error4;
125
125
  const errorMessage = errorToString13(error4);
126
126
  return isErrorLike(error4) ? Object.assign(new Error(errorMessage), error4) : new Error(errorMessage);
@@ -4073,14 +4073,14 @@ var require_templates = __commonJS2({
4073
4073
  }
4074
4074
  return results;
4075
4075
  }
4076
- function buildStyle(chalk108, styles) {
4076
+ function buildStyle(chalk107, styles) {
4077
4077
  const enabled = {};
4078
4078
  for (const layer of styles) {
4079
4079
  for (const style of layer.styles) {
4080
4080
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
4081
4081
  }
4082
4082
  }
4083
- let current = chalk108;
4083
+ let current = chalk107;
4084
4084
  for (const [styleName, styles2] of Object.entries(enabled)) {
4085
4085
  if (!Array.isArray(styles2)) {
4086
4086
  continue;
@@ -4092,7 +4092,7 @@ var require_templates = __commonJS2({
4092
4092
  }
4093
4093
  return current;
4094
4094
  }
4095
- module2.exports = (chalk108, temporary) => {
4095
+ module2.exports = (chalk107, temporary) => {
4096
4096
  const styles = [];
4097
4097
  const chunks = [];
4098
4098
  let chunk = [];
@@ -4102,13 +4102,13 @@ var require_templates = __commonJS2({
4102
4102
  } else if (style) {
4103
4103
  const string = chunk.join("");
4104
4104
  chunk = [];
4105
- chunks.push(styles.length === 0 ? string : buildStyle(chalk108, styles)(string));
4105
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk107, styles)(string));
4106
4106
  styles.push({ inverse, styles: parseStyle(style) });
4107
4107
  } else if (close2) {
4108
4108
  if (styles.length === 0) {
4109
4109
  throw new Error("Found extraneous } in Chalk template literal");
4110
4110
  }
4111
- chunks.push(buildStyle(chalk108, styles)(chunk.join("")));
4111
+ chunks.push(buildStyle(chalk107, styles)(chunk.join("")));
4112
4112
  chunk = [];
4113
4113
  styles.pop();
4114
4114
  } else {
@@ -4156,16 +4156,16 @@ var require_source = __commonJS2({
4156
4156
  }
4157
4157
  };
4158
4158
  var chalkFactory = (options) => {
4159
- const chalk109 = {};
4160
- applyOptions(chalk109, options);
4161
- chalk109.template = (...arguments_) => chalkTag(chalk109.template, ...arguments_);
4162
- Object.setPrototypeOf(chalk109, Chalk3.prototype);
4163
- Object.setPrototypeOf(chalk109.template, chalk109);
4164
- chalk109.template.constructor = () => {
4159
+ const chalk108 = {};
4160
+ applyOptions(chalk108, options);
4161
+ chalk108.template = (...arguments_) => chalkTag(chalk108.template, ...arguments_);
4162
+ Object.setPrototypeOf(chalk108, Chalk3.prototype);
4163
+ Object.setPrototypeOf(chalk108.template, chalk108);
4164
+ chalk108.template.constructor = () => {
4165
4165
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
4166
4166
  };
4167
- chalk109.template.Instance = ChalkClass;
4168
- return chalk109.template;
4167
+ chalk108.template.Instance = ChalkClass;
4168
+ return chalk108.template;
4169
4169
  };
4170
4170
  function Chalk3(options) {
4171
4171
  return chalkFactory(options);
@@ -4276,7 +4276,7 @@ var require_source = __commonJS2({
4276
4276
  return openAll + string + closeAll;
4277
4277
  };
4278
4278
  var template;
4279
- var chalkTag = (chalk109, ...strings) => {
4279
+ var chalkTag = (chalk108, ...strings) => {
4280
4280
  const [firstString] = strings;
4281
4281
  if (!isArray(firstString) || !isArray(firstString.raw)) {
4282
4282
  return strings.join(" ");
@@ -4292,14 +4292,14 @@ var require_source = __commonJS2({
4292
4292
  if (template === void 0) {
4293
4293
  template = require_templates();
4294
4294
  }
4295
- return template(chalk109, parts.join(""));
4295
+ return template(chalk108, parts.join(""));
4296
4296
  };
4297
4297
  Object.defineProperties(Chalk3.prototype, styles);
4298
- var chalk108 = Chalk3();
4299
- chalk108.supportsColor = stdoutColor;
4300
- chalk108.stderr = Chalk3({ level: stderrColor ? stderrColor.level : 0 });
4301
- chalk108.stderr.supportsColor = stderrColor;
4302
- module2.exports = chalk108;
4298
+ var chalk107 = Chalk3();
4299
+ chalk107.supportsColor = stdoutColor;
4300
+ chalk107.stderr = Chalk3({ level: stderrColor ? stderrColor.level : 0 });
4301
+ chalk107.stderr.supportsColor = stderrColor;
4302
+ module2.exports = chalk107;
4303
4303
  }
4304
4304
  });
4305
4305
 
@@ -6204,7 +6204,7 @@ var require_error = __commonJS2({
6204
6204
  var require_is = __commonJS2({
6205
6205
  "../../node_modules/.pnpm/@sentry+utils@5.5.0/node_modules/@sentry/utils/dist/is.js"(exports2) {
6206
6206
  Object.defineProperty(exports2, "__esModule", { value: true });
6207
- function isError14(wat) {
6207
+ function isError15(wat) {
6208
6208
  switch (Object.prototype.toString.call(wat)) {
6209
6209
  case "[object Error]":
6210
6210
  return true;
@@ -6216,7 +6216,7 @@ var require_is = __commonJS2({
6216
6216
  return wat instanceof Error;
6217
6217
  }
6218
6218
  }
6219
- exports2.isError = isError14;
6219
+ exports2.isError = isError15;
6220
6220
  function isErrorEvent(wat) {
6221
6221
  return Object.prototype.toString.call(wat) === "[object ErrorEvent]";
6222
6222
  }
@@ -13478,14 +13478,14 @@ var require_templates2 = __commonJS2({
13478
13478
  }
13479
13479
  return results;
13480
13480
  }
13481
- function buildStyle(chalk108, styles) {
13481
+ function buildStyle(chalk107, styles) {
13482
13482
  const enabled = {};
13483
13483
  for (const layer of styles) {
13484
13484
  for (const style of layer.styles) {
13485
13485
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
13486
13486
  }
13487
13487
  }
13488
- let current = chalk108;
13488
+ let current = chalk107;
13489
13489
  for (const styleName of Object.keys(enabled)) {
13490
13490
  if (Array.isArray(enabled[styleName])) {
13491
13491
  if (!(styleName in current)) {
@@ -13500,7 +13500,7 @@ var require_templates2 = __commonJS2({
13500
13500
  }
13501
13501
  return current;
13502
13502
  }
13503
- module2.exports = (chalk108, tmp) => {
13503
+ module2.exports = (chalk107, tmp) => {
13504
13504
  const styles = [];
13505
13505
  const chunks = [];
13506
13506
  let chunk = [];
@@ -13510,13 +13510,13 @@ var require_templates2 = __commonJS2({
13510
13510
  } else if (style) {
13511
13511
  const str = chunk.join("");
13512
13512
  chunk = [];
13513
- chunks.push(styles.length === 0 ? str : buildStyle(chalk108, styles)(str));
13513
+ chunks.push(styles.length === 0 ? str : buildStyle(chalk107, styles)(str));
13514
13514
  styles.push({ inverse, styles: parseStyle(style) });
13515
13515
  } else if (close2) {
13516
13516
  if (styles.length === 0) {
13517
13517
  throw new Error("Found extraneous } in Chalk template literal");
13518
13518
  }
13519
- chunks.push(buildStyle(chalk108, styles)(chunk.join("")));
13519
+ chunks.push(buildStyle(chalk107, styles)(chunk.join("")));
13520
13520
  chunk = [];
13521
13521
  styles.pop();
13522
13522
  } else {
@@ -13553,16 +13553,16 @@ var require_chalk = __commonJS2({
13553
13553
  }
13554
13554
  function Chalk3(options) {
13555
13555
  if (!this || !(this instanceof Chalk3) || this.template) {
13556
- const chalk108 = {};
13557
- applyOptions(chalk108, options);
13558
- chalk108.template = function() {
13556
+ const chalk107 = {};
13557
+ applyOptions(chalk107, options);
13558
+ chalk107.template = function() {
13559
13559
  const args2 = [].slice.call(arguments);
13560
- return chalkTag.apply(null, [chalk108.template].concat(args2));
13560
+ return chalkTag.apply(null, [chalk107.template].concat(args2));
13561
13561
  };
13562
- Object.setPrototypeOf(chalk108, Chalk3.prototype);
13563
- Object.setPrototypeOf(chalk108.template, chalk108);
13564
- chalk108.template.constructor = Chalk3;
13565
- return chalk108.template;
13562
+ Object.setPrototypeOf(chalk107, Chalk3.prototype);
13563
+ Object.setPrototypeOf(chalk107.template, chalk107);
13564
+ chalk107.template.constructor = Chalk3;
13565
+ return chalk107.template;
13566
13566
  }
13567
13567
  applyOptions(this, options);
13568
13568
  }
@@ -13681,7 +13681,7 @@ var require_chalk = __commonJS2({
13681
13681
  ansiStyles.dim.open = originalDim;
13682
13682
  return str;
13683
13683
  }
13684
- function chalkTag(chalk108, strings) {
13684
+ function chalkTag(chalk107, strings) {
13685
13685
  if (!Array.isArray(strings)) {
13686
13686
  return [].slice.call(arguments, 1).join(" ");
13687
13687
  }
@@ -13691,7 +13691,7 @@ var require_chalk = __commonJS2({
13691
13691
  parts.push(String(args2[i - 1]).replace(/[{}\\]/g, "\\$&"));
13692
13692
  parts.push(String(strings.raw[i]));
13693
13693
  }
13694
- return template(chalk108, parts.join(""));
13694
+ return template(chalk107, parts.join(""));
13695
13695
  }
13696
13696
  Object.defineProperties(Chalk3.prototype, styles);
13697
13697
  module2.exports = Chalk3();
@@ -15488,19 +15488,19 @@ var require_cli_spinners = __commonJS2({
15488
15488
  var require_log_symbols = __commonJS2({
15489
15489
  "../../node_modules/.pnpm/log-symbols@2.2.0/node_modules/log-symbols/index.js"(exports2, module2) {
15490
15490
  "use strict";
15491
- var chalk108 = require_chalk();
15491
+ var chalk107 = require_chalk();
15492
15492
  var isSupported = process.platform !== "win32" || process.env.CI || process.env.TERM === "xterm-256color";
15493
15493
  var main15 = {
15494
- info: chalk108.blue("\u2139"),
15495
- success: chalk108.green("\u2714"),
15496
- warning: chalk108.yellow("\u26A0"),
15497
- error: chalk108.red("\u2716")
15494
+ info: chalk107.blue("\u2139"),
15495
+ success: chalk107.green("\u2714"),
15496
+ warning: chalk107.yellow("\u26A0"),
15497
+ error: chalk107.red("\u2716")
15498
15498
  };
15499
15499
  var fallbacks = {
15500
- info: chalk108.blue("i"),
15501
- success: chalk108.green("\u221A"),
15502
- warning: chalk108.yellow("\u203C"),
15503
- error: chalk108.red("\xD7")
15500
+ info: chalk107.blue("i"),
15501
+ success: chalk107.green("\u221A"),
15502
+ warning: chalk107.yellow("\u203C"),
15503
+ error: chalk107.red("\xD7")
15504
15504
  };
15505
15505
  module2.exports = isSupported ? main15 : fallbacks;
15506
15506
  }
@@ -15896,7 +15896,7 @@ var require_wcwidth = __commonJS2({
15896
15896
  var require_ora = __commonJS2({
15897
15897
  "../../node_modules/.pnpm/ora@3.4.0/node_modules/ora/index.js"(exports2, module2) {
15898
15898
  "use strict";
15899
- var chalk108 = require_chalk();
15899
+ var chalk107 = require_chalk();
15900
15900
  var cliCursor = require_cli_cursor();
15901
15901
  var cliSpinners = require_cli_spinners();
15902
15902
  var logSymbols = require_log_symbols();
@@ -15985,7 +15985,7 @@ var require_ora = __commonJS2({
15985
15985
  const { frames } = this.spinner;
15986
15986
  let frame = frames[this.frameIndex];
15987
15987
  if (this.color) {
15988
- frame = chalk108[this.color](frame);
15988
+ frame = chalk107[this.color](frame);
15989
15989
  }
15990
15990
  this.frameIndex = ++this.frameIndex % frames.length;
15991
15991
  const fullPrefixText = typeof this.prefixText === "string" ? this.prefixText + " " : "";
@@ -30929,10 +30929,10 @@ var require_util2 = __commonJS2({
30929
30929
  return objectToString(d) === "[object Date]";
30930
30930
  }
30931
30931
  exports2.isDate = isDate;
30932
- function isError14(e2) {
30932
+ function isError15(e2) {
30933
30933
  return objectToString(e2) === "[object Error]" || e2 instanceof Error;
30934
30934
  }
30935
- exports2.isError = isError14;
30935
+ exports2.isError = isError15;
30936
30936
  function isFunction(arg2) {
30937
30937
  return typeof arg2 === "function";
30938
30938
  }
@@ -64828,10 +64828,10 @@ var require_util4 = __commonJS2({
64828
64828
  return objectToString(d) === "[object Date]";
64829
64829
  }
64830
64830
  exports2.isDate = isDate;
64831
- function isError14(e2) {
64831
+ function isError15(e2) {
64832
64832
  return objectToString(e2) === "[object Error]" || e2 instanceof Error;
64833
64833
  }
64834
- exports2.isError = isError14;
64834
+ exports2.isError = isError15;
64835
64835
  function isFunction(arg2) {
64836
64836
  return typeof arg2 === "function";
64837
64837
  }
@@ -70629,14 +70629,14 @@ var require_templates3 = __commonJS2({
70629
70629
  }
70630
70630
  return results;
70631
70631
  }
70632
- function buildStyle(chalk108, styles) {
70632
+ function buildStyle(chalk107, styles) {
70633
70633
  const enabled = {};
70634
70634
  for (const layer of styles) {
70635
70635
  for (const style of layer.styles) {
70636
70636
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
70637
70637
  }
70638
70638
  }
70639
- let current = chalk108;
70639
+ let current = chalk107;
70640
70640
  for (const [styleName, styles2] of Object.entries(enabled)) {
70641
70641
  if (!Array.isArray(styles2)) {
70642
70642
  continue;
@@ -70648,7 +70648,7 @@ var require_templates3 = __commonJS2({
70648
70648
  }
70649
70649
  return current;
70650
70650
  }
70651
- module2.exports = (chalk108, temporary) => {
70651
+ module2.exports = (chalk107, temporary) => {
70652
70652
  const styles = [];
70653
70653
  const chunks = [];
70654
70654
  let chunk = [];
@@ -70658,13 +70658,13 @@ var require_templates3 = __commonJS2({
70658
70658
  } else if (style) {
70659
70659
  const string = chunk.join("");
70660
70660
  chunk = [];
70661
- chunks.push(styles.length === 0 ? string : buildStyle(chalk108, styles)(string));
70661
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk107, styles)(string));
70662
70662
  styles.push({ inverse, styles: parseStyle(style) });
70663
70663
  } else if (close2) {
70664
70664
  if (styles.length === 0) {
70665
70665
  throw new Error("Found extraneous } in Chalk template literal");
70666
70666
  }
70667
- chunks.push(buildStyle(chalk108, styles)(chunk.join("")));
70667
+ chunks.push(buildStyle(chalk107, styles)(chunk.join("")));
70668
70668
  chunk = [];
70669
70669
  styles.pop();
70670
70670
  } else {
@@ -70712,16 +70712,16 @@ var require_source2 = __commonJS2({
70712
70712
  }
70713
70713
  };
70714
70714
  var chalkFactory = (options) => {
70715
- const chalk109 = {};
70716
- applyOptions(chalk109, options);
70717
- chalk109.template = (...arguments_) => chalkTag(chalk109.template, ...arguments_);
70718
- Object.setPrototypeOf(chalk109, Chalk3.prototype);
70719
- Object.setPrototypeOf(chalk109.template, chalk109);
70720
- chalk109.template.constructor = () => {
70715
+ const chalk108 = {};
70716
+ applyOptions(chalk108, options);
70717
+ chalk108.template = (...arguments_) => chalkTag(chalk108.template, ...arguments_);
70718
+ Object.setPrototypeOf(chalk108, Chalk3.prototype);
70719
+ Object.setPrototypeOf(chalk108.template, chalk108);
70720
+ chalk108.template.constructor = () => {
70721
70721
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
70722
70722
  };
70723
- chalk109.template.Instance = ChalkClass;
70724
- return chalk109.template;
70723
+ chalk108.template.Instance = ChalkClass;
70724
+ return chalk108.template;
70725
70725
  };
70726
70726
  function Chalk3(options) {
70727
70727
  return chalkFactory(options);
@@ -70832,7 +70832,7 @@ var require_source2 = __commonJS2({
70832
70832
  return openAll + string + closeAll;
70833
70833
  };
70834
70834
  var template;
70835
- var chalkTag = (chalk109, ...strings) => {
70835
+ var chalkTag = (chalk108, ...strings) => {
70836
70836
  const [firstString] = strings;
70837
70837
  if (!isArray(firstString) || !isArray(firstString.raw)) {
70838
70838
  return strings.join(" ");
@@ -70848,14 +70848,14 @@ var require_source2 = __commonJS2({
70848
70848
  if (template === void 0) {
70849
70849
  template = require_templates3();
70850
70850
  }
70851
- return template(chalk109, parts.join(""));
70851
+ return template(chalk108, parts.join(""));
70852
70852
  };
70853
70853
  Object.defineProperties(Chalk3.prototype, styles);
70854
- var chalk108 = Chalk3();
70855
- chalk108.supportsColor = stdoutColor;
70856
- chalk108.stderr = Chalk3({ level: stderrColor ? stderrColor.level : 0 });
70857
- chalk108.stderr.supportsColor = stderrColor;
70858
- module2.exports = chalk108;
70854
+ var chalk107 = Chalk3();
70855
+ chalk107.supportsColor = stdoutColor;
70856
+ chalk107.stderr = Chalk3({ level: stderrColor ? stderrColor.level : 0 });
70857
+ chalk107.stderr.supportsColor = stderrColor;
70858
+ module2.exports = chalk107;
70859
70859
  }
70860
70860
  });
70861
70861
 
@@ -120569,6 +120569,49 @@ var require_frameworks = __commonJS2({
120569
120569
  }
120570
120570
  ]
120571
120571
  },
120572
+ {
120573
+ name: "FastHTML (Experimental)",
120574
+ slug: "fasthtml",
120575
+ demo: "https://fasthtml-template.vercel.app",
120576
+ logo: "https://api-frameworks.vercel.sh/framework-logos/fasthtml.png",
120577
+ darkModeLogo: "https://api-frameworks.vercel.sh/framework-logos/fasthtml-dark.png",
120578
+ tagline: "The fastest way to create an HTML app",
120579
+ description: "A library for writing fast and scalable Starlette-powered web applications",
120580
+ website: "https://fastht.ml",
120581
+ useRuntime: { src: "main.py", use: "@vercel/python" },
120582
+ detectors: {
120583
+ every: [
120584
+ {
120585
+ path: "main.py"
120586
+ }
120587
+ ]
120588
+ },
120589
+ settings: {
120590
+ installCommand: {
120591
+ placeholder: "`pip install`"
120592
+ },
120593
+ buildCommand: {
120594
+ placeholder: "None",
120595
+ value: null
120596
+ },
120597
+ devCommand: {
120598
+ value: "uvicorn main:app --reload"
120599
+ },
120600
+ outputDirectory: {
120601
+ value: "N/A"
120602
+ }
120603
+ },
120604
+ getOutputDirName: async () => "",
120605
+ defaultRoutes: [
120606
+ {
120607
+ handle: "filesystem"
120608
+ },
120609
+ {
120610
+ src: "/(.*)",
120611
+ dest: "/main"
120612
+ }
120613
+ ]
120614
+ },
120572
120615
  {
120573
120616
  name: "Sanity",
120574
120617
  slug: "sanity",
@@ -142934,6 +142977,7 @@ async function displayRuntimeLogs(client2, options, abortController) {
142934
142977
  }
142935
142978
  const handleData = (data) => {
142936
142979
  let log3 = parse5 ? data : JSON.parse(data);
142980
+ stopSpinner();
142937
142981
  if (isRuntimeLimitDelimiter(log3)) {
142938
142982
  abortController.abort();
142939
142983
  warn(`${import_chalk44.default.bold(log3.message)}
@@ -142971,18 +143015,11 @@ async function displayRuntimeLogs(client2, options, abortController) {
142971
143015
  function printBuildLog(log2, print) {
142972
143016
  if (!log2.created)
142973
143017
  return;
142974
- let data;
142975
- data = (log2.text || "").replace(/\n$/, "").replace(/^\n/, "").replace(/\x1b\[1000D/g, "").replace(/\x1b\[0K/g, "").replace(/\x1b\[1A/g, "");
142976
- if (/warning/i.test(data)) {
142977
- data = import_chalk44.default.yellow(data);
142978
- } else if (log2.type === "stderr") {
142979
- data = import_chalk44.default.red(data);
142980
- }
142981
143018
  const date = new Date(log2.created).toISOString();
142982
- data.split("\n").forEach((line) => {
143019
+ for (const line of colorize(sanitize(log2)).split("\n")) {
142983
143020
  print(`${import_chalk44.default.dim(date)} ${line.replace("[now-builder-debug] ", "")}
142984
143021
  `);
142985
- });
143022
+ }
142986
143023
  }
142987
143024
  function isRuntimeLimitDelimiter(log2) {
142988
143025
  return log2.rowId === "" && log2.level === "error" && log2.source === "delimiter";
@@ -143043,6 +143080,25 @@ function getSourceIcon(source) {
143043
143080
  return "\u0192";
143044
143081
  return " ";
143045
143082
  }
143083
+ function sanitize(log2) {
143084
+ return (log2.text || "").replace(/\n$/, "").replace(/^\n/, "").replace(/\x1b\[1000D/g, "").replace(/\x1b\[0K/g, "").replace(/\x1b\[1A/g, "");
143085
+ }
143086
+ function colorize(text2) {
143087
+ if (isError7(text2)) {
143088
+ return import_chalk44.default.red(text2);
143089
+ }
143090
+ return isWarning(text2) ? import_chalk44.default.yellow(text2) : text2;
143091
+ }
143092
+ function isError7(text2) {
143093
+ return /^(\s+⨯\s+|\s+at\s+|npm err!)/i.test(text2) || /(^| |\[|eval|internal|range|reference|syntax|type|uri|fetch)err(or)?( |:)/i.test(
143094
+ text2
143095
+ ) || /(command not found|module not found|failed to compile|cannot open shared object file|err_pnpm_|please contact vercel.com\/help|exit code 1|elifecycle|exited)/i.test(
143096
+ text2
143097
+ );
143098
+ }
143099
+ function isWarning(text2) {
143100
+ return /^warn(ing)?(:|!)/i.test(text2) && !text2.includes("deprecationwarning");
143101
+ }
143046
143102
  var import_chalk44, import_date_fns, import_ms7, import_jsonlines2, import_split2, import_url13, runtimeLogSpinnerMessage, dateTimeFormat, moreSymbol, statusWidth;
143047
143103
  var init_logs = __esm({
143048
143104
  "src/util/logs.ts"() {
@@ -144039,6 +144095,35 @@ var init_command4 = __esm({
144039
144095
  }
144040
144096
  });
144041
144097
 
144098
+ // src/util/parse-target.ts
144099
+ function parseTarget({
144100
+ output: output2,
144101
+ targetFlagName,
144102
+ targetFlagValue,
144103
+ prodFlagValue
144104
+ }) {
144105
+ if (prodFlagValue && targetFlagValue) {
144106
+ output2.warn(
144107
+ `Both \`--prod\` and \`--${targetFlagName}\` detected. Ignoring \`--prod\`.`
144108
+ );
144109
+ }
144110
+ if (targetFlagValue) {
144111
+ const lowerCaseTarget = targetFlagValue.toLowerCase();
144112
+ output2.debug(`Setting target to ${lowerCaseTarget}`);
144113
+ return lowerCaseTarget;
144114
+ }
144115
+ if (prodFlagValue) {
144116
+ output2.debug("Setting target to production");
144117
+ return "production";
144118
+ }
144119
+ return void 0;
144120
+ }
144121
+ var init_parse_target = __esm({
144122
+ "src/util/parse-target.ts"() {
144123
+ "use strict";
144124
+ }
144125
+ });
144126
+
144042
144127
  // src/commands/pull/index.ts
144043
144128
  var pull_exports = {};
144044
144129
  __export3(pull_exports, {
@@ -144092,7 +144177,11 @@ async function main(client2) {
144092
144177
  }
144093
144178
  let cwd = argv2._[1] || client2.cwd;
144094
144179
  const autoConfirm = Boolean(argv2["--yes"]);
144095
- const environment = parseEnvironment(argv2["--environment"] || void 0);
144180
+ const environment = parseTarget({
144181
+ output: client2.output,
144182
+ targetFlagName: "environment",
144183
+ targetFlagValue: argv2["--environment"]
144184
+ }) || "development";
144096
144185
  const link4 = await ensureLink("pull", client2, cwd, { autoConfirm });
144097
144186
  if (typeof link4 === "number") {
144098
144187
  return link4;
@@ -144146,6 +144235,7 @@ var init_pull2 = __esm({
144146
144235
  init_humanize_path();
144147
144236
  init_help();
144148
144237
  init_command4();
144238
+ init_parse_target();
144149
144239
  }
144150
144240
  });
144151
144241
 
@@ -147921,7 +148011,8 @@ function sortBuilders(builds) {
147921
148011
  const frontendRuntimeSet2 = new Set(
147922
148012
  import_frameworks3.frameworkList.map((f) => f.useRuntime?.use || "@vercel/static-build")
147923
148013
  );
147924
- const toNumber = (build2) => frontendRuntimeSet2.has(build2.use) ? 0 : 1;
148014
+ frontendRuntimeSet2.delete("@vercel/python");
148015
+ const toNumber = (build2) => build2.use === "@vercel/python" ? 1 : frontendRuntimeSet2.has(build2.use) ? 0 : 2;
147925
148016
  return builds.sort((build1, build2) => {
147926
148017
  return toNumber(build1) - toNumber(build2);
147927
148018
  });
@@ -148255,7 +148346,12 @@ async function main2(client2) {
148255
148346
  output2.print(help2(buildCommand, { columns: client2.stderr.columns }));
148256
148347
  return 2;
148257
148348
  }
148258
- const target = parsedArgs.flags["--prod"] ? "production" : typeof parsedArgs.flags["--target"] === "string" ? String(parsedArgs.flags["--target"]).toLowerCase() : "preview";
148349
+ const target = parseTarget({
148350
+ output: output2,
148351
+ targetFlagName: "target",
148352
+ targetFlagValue: parsedArgs.flags["--target"],
148353
+ prodFlagValue: parsedArgs.flags["--prod"]
148354
+ }) || "preview";
148259
148355
  const yes = Boolean(parsedArgs.flags["--yes"]);
148260
148356
  try {
148261
148357
  await (0, import_build_utils13.validateNpmrc)(cwd);
@@ -148545,6 +148641,15 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir) {
148545
148641
  let buildResult;
148546
148642
  try {
148547
148643
  buildResult = await builder.build(buildOptions);
148644
+ if (buildConfig.zeroConfig && buildConfig.framework && "output" in buildResult && !buildResult.routes) {
148645
+ const framework2 = import_frameworks4.frameworkList.find(
148646
+ (f) => f.slug === buildConfig.framework
148647
+ );
148648
+ if (framework2) {
148649
+ const defaultRoutes = await getFrameworkRoutes(framework2, workPath);
148650
+ buildResult.routes = defaultRoutes;
148651
+ }
148652
+ }
148548
148653
  } finally {
148549
148654
  try {
148550
148655
  Object.assign(diagnostics, await builder.diagnostics?.(buildOptions));
@@ -148811,6 +148916,15 @@ async function writeFlagsJSON({ output: output2 }, buildResults, outputDir) {
148811
148916
  async function writeBuildJson(buildsJson, outputDir) {
148812
148917
  await import_fs_extra18.default.writeJSON((0, import_path28.join)(outputDir, "builds.json"), buildsJson, { spaces: 2 });
148813
148918
  }
148919
+ async function getFrameworkRoutes(framework, dirPrefix) {
148920
+ let routes2 = [];
148921
+ if (typeof framework.defaultRoutes === "function") {
148922
+ routes2 = await framework.defaultRoutes(dirPrefix);
148923
+ } else if (Array.isArray(framework.defaultRoutes)) {
148924
+ routes2 = framework.defaultRoutes;
148925
+ }
148926
+ return routes2;
148927
+ }
148814
148928
  var import_fs_extra18, import_chalk49, import_dotenv, import_semver3, import_minimatch2, import_path28, import_frameworks4, import_build_utils13, import_fs_detectors4, import_routing_utils2, import_client8;
148815
148929
  var init_build = __esm({
148816
148930
  "src/commands/build/index.ts"() {
@@ -148850,6 +148964,7 @@ var init_build = __esm({
148850
148964
  init_command5();
148851
148965
  init_scrub_argv();
148852
148966
  init_get_flags_specification();
148967
+ init_parse_target();
148853
148968
  }
148854
148969
  });
148855
148970
 
@@ -149717,29 +149832,6 @@ var init_get_prebuilt_json = __esm({
149717
149832
  }
149718
149833
  });
149719
149834
 
149720
- // src/util/deploy/parse-target.ts
149721
- function parseTarget(output2, targetArg, prodArg) {
149722
- if (targetArg) {
149723
- if (targetArg === "production") {
149724
- output2.warn(
149725
- "We recommend using the much shorter `--prod` option instead of `--target production` (deprecated)"
149726
- );
149727
- }
149728
- output2.debug(`Setting target to ${targetArg}`);
149729
- return targetArg;
149730
- }
149731
- if (prodArg) {
149732
- output2.debug("Setting target to production");
149733
- return "production";
149734
- }
149735
- return void 0;
149736
- }
149737
- var init_parse_target = __esm({
149738
- "src/util/deploy/parse-target.ts"() {
149739
- "use strict";
149740
- }
149741
- });
149742
-
149743
149835
  // src/util/deploy/is-deploying.ts
149744
149836
  function isDeploying(readyState) {
149745
149837
  return deploymentInProgressStates.includes(readyState);
@@ -150130,7 +150222,6 @@ var init_deploy = __esm({
150130
150222
  init_create_deploy();
150131
150223
  init_get_deployment_checks();
150132
150224
  init_get_prebuilt_json();
150133
- init_parse_target();
150134
150225
  init_print_deployment_status();
150135
150226
  init_validate_archive_format();
150136
150227
  init_purchase_domain_if_available();
@@ -150160,6 +150251,7 @@ var init_deploy = __esm({
150160
150251
  init_validate_paths();
150161
150252
  init_help();
150162
150253
  init_command7();
150254
+ init_parse_target();
150163
150255
  deploy_default = async (client2) => {
150164
150256
  const { output: output2 } = client2;
150165
150257
  let parsedArguments = null;
@@ -150239,14 +150331,12 @@ var init_deploy = __esm({
150239
150331
  `
150240
150332
  );
150241
150333
  }
150242
- const target = parseTarget(
150243
- output2,
150244
- parsedArguments.flags["--target"],
150245
- parsedArguments.flags["--prod"]
150246
- );
150247
- if (typeof target === "number") {
150248
- return target;
150249
- }
150334
+ const target = parseTarget({
150335
+ output: output2,
150336
+ targetFlagName: "target",
150337
+ targetFlagValue: parsedArguments.flags["--target"],
150338
+ prodFlagValue: parsedArguments.flags["--prod"]
150339
+ });
150250
150340
  const archive = parsedArguments.flags["--archive"];
150251
150341
  if (typeof archive === "string" && !isValidArchive(archive)) {
150252
150342
  output2.error(`Format must be one of: ${import_client10.VALID_ARCHIVE_FORMATS.join(", ")}`);
@@ -173307,15 +173397,11 @@ async function main6(client2) {
173307
173397
  const subArgs = argv2._.slice(1);
173308
173398
  const { subcommand: subcommand2, args: args2 } = getSubcommand(subArgs, COMMAND_CONFIG6);
173309
173399
  const { cwd, output: output2, config: config3 } = client2;
173310
- const target = argv2["--environment"]?.toLowerCase() || "development";
173311
- if (!isValidEnvTarget(target)) {
173312
- output2.error(
173313
- `Invalid environment \`${import_chalk83.default.cyan(
173314
- target
173315
- )}\`. Valid options: ${getEnvTargetPlaceholder()}`
173316
- );
173317
- return 1;
173318
- }
173400
+ const target = parseTarget({
173401
+ output: output2,
173402
+ targetFlagName: "environment",
173403
+ targetFlagValue: argv2["--environment"]
173404
+ }) || "development";
173319
173405
  const link4 = await getLinkedProject(client2, cwd);
173320
173406
  if (link4.status === "error") {
173321
173407
  return link4.exitCode;
@@ -173357,12 +173443,10 @@ async function main6(client2) {
173357
173443
  }
173358
173444
  }
173359
173445
  }
173360
- var import_chalk83, COMMAND_CONFIG6;
173446
+ var COMMAND_CONFIG6;
173361
173447
  var init_env = __esm({
173362
173448
  "src/commands/env/index.ts"() {
173363
173449
  "use strict";
173364
- import_chalk83 = __toESM3(require_source());
173365
- init_env_target();
173366
173450
  init_get_args();
173367
173451
  init_get_invalid_subcommand();
173368
173452
  init_get_subcommand();
@@ -173375,6 +173459,7 @@ var init_env = __esm({
173375
173459
  init_pull();
173376
173460
  init_rm5();
173377
173461
  init_command11();
173462
+ init_parse_target();
173378
173463
  COMMAND_CONFIG6 = {
173379
173464
  ls: ["ls", "list"],
173380
173465
  add: ["add"],
@@ -173391,7 +173476,7 @@ async function connect(client2, argv2, args2, project, org) {
173391
173476
  const repoArg = argv2._[1];
173392
173477
  if (args2.length > 1) {
173393
173478
  output2.error(
173394
- `Invalid number of arguments. Usage: ${import_chalk84.default.cyan(
173479
+ `Invalid number of arguments. Usage: ${import_chalk83.default.cyan(
173395
173480
  `${getCommandName("project connect")}`
173396
173481
  )}`
173397
173482
  );
@@ -173437,7 +173522,7 @@ async function connect(client2, argv2, args2, project, org) {
173437
173522
  }
173438
173523
  if (!gitConfig) {
173439
173524
  output2.error(
173440
- `No local Git repository found. Run ${import_chalk84.default.cyan(
173525
+ `No local Git repository found. Run ${import_chalk83.default.cyan(
173441
173526
  "`git clone <url>`"
173442
173527
  )} to clone a remote Git repository first.`
173443
173528
  );
@@ -173446,7 +173531,7 @@ async function connect(client2, argv2, args2, project, org) {
173446
173531
  const remoteUrls = pluckRemoteUrls(gitConfig);
173447
173532
  if (!remoteUrls) {
173448
173533
  output2.error(
173449
- `No remote URLs found in your Git config. Make sure you've configured a remote repo in your local Git config. Run ${import_chalk84.default.cyan(
173534
+ `No remote URLs found in your Git config. Make sure you've configured a remote repo in your local Git config. Run ${import_chalk83.default.cyan(
173450
173535
  "`git remote --help`"
173451
173536
  )} for more details.`
173452
173537
  );
@@ -173490,7 +173575,7 @@ async function connect(client2, argv2, args2, project, org) {
173490
173575
  return checkAndConnect;
173491
173576
  }
173492
173577
  output2.log(
173493
- `Connected ${formatProvider(provider)} repository ${import_chalk84.default.cyan(repoPath)}!`
173578
+ `Connected ${formatProvider(provider)} repository ${import_chalk83.default.cyan(repoPath)}!`
173494
173579
  );
173495
173580
  return 0;
173496
173581
  }
@@ -173527,7 +173612,7 @@ async function connectArg({
173527
173612
  return connect2;
173528
173613
  }
173529
173614
  client2.output.log(
173530
- `Connected ${formatProvider(provider)} repository ${import_chalk84.default.cyan(repoPath)}!`
173615
+ `Connected ${formatProvider(provider)} repository ${import_chalk83.default.cyan(repoPath)}!`
173531
173616
  );
173532
173617
  return 0;
173533
173618
  }
@@ -173569,7 +173654,7 @@ async function connectArgWithLocalGit({
173569
173654
  return connect2;
173570
173655
  }
173571
173656
  client2.output.log(
173572
- `Connected ${formatProvider(provider)} repository ${import_chalk84.default.cyan(
173657
+ `Connected ${formatProvider(provider)} repository ${import_chalk83.default.cyan(
173573
173658
  repoPath
173574
173659
  )}!`
173575
173660
  );
@@ -173602,7 +173687,7 @@ async function promptConnectArg({
173602
173687
  return true;
173603
173688
  }
173604
173689
  client2.output.log(
173605
- `Found a repository in your local Git Config: ${import_chalk84.default.cyan(
173690
+ `Found a repository in your local Git Config: ${import_chalk83.default.cyan(
173606
173691
  Object.values(remoteUrls)[0]
173607
173692
  )}`
173608
173693
  );
@@ -173651,7 +173736,7 @@ async function checkExistsAndConnect({
173651
173736
  const isSameRepo = connectedProvider === provider && connectedOrg === gitOrg && connectedRepo === repo;
173652
173737
  if (isSameRepo) {
173653
173738
  client2.output.log(
173654
- `${import_chalk84.default.cyan(connectedRepoPath)} is already connected to your project.`
173739
+ `${import_chalk83.default.cyan(connectedRepoPath)} is already connected to your project.`
173655
173740
  );
173656
173741
  return 1;
173657
173742
  }
@@ -173684,7 +173769,7 @@ async function confirmRepoConnect(client2, yes, connectedProvider, connectedRepo
173684
173769
  client2,
173685
173770
  `Looks like you already have a ${formatProvider(
173686
173771
  connectedProvider
173687
- )} repository connected: ${import_chalk84.default.cyan(
173772
+ )} repository connected: ${import_chalk83.default.cyan(
173688
173773
  connectedRepoPath
173689
173774
  )}. Do you want to replace it?`,
173690
173775
  true
@@ -173699,7 +173784,7 @@ async function selectRemoteUrl(client2, remoteUrls) {
173699
173784
  let choices = [];
173700
173785
  for (const [urlKey, urlValue] of Object.entries(remoteUrls)) {
173701
173786
  choices.push({
173702
- name: `${urlValue} ${import_chalk84.default.gray(`(${urlKey})`)}`,
173787
+ name: `${urlValue} ${import_chalk83.default.gray(`(${urlKey})`)}`,
173703
173788
  value: urlValue,
173704
173789
  short: urlKey
173705
173790
  });
@@ -173709,11 +173794,11 @@ async function selectRemoteUrl(client2, remoteUrls) {
173709
173794
  choices
173710
173795
  });
173711
173796
  }
173712
- var import_chalk84, import_path41;
173797
+ var import_chalk83, import_path41;
173713
173798
  var init_connect = __esm({
173714
173799
  "src/commands/git/connect.ts"() {
173715
173800
  "use strict";
173716
- import_chalk84 = __toESM3(require_source());
173801
+ import_chalk83 = __toESM3(require_source());
173717
173802
  import_path41 = require("path");
173718
173803
  init_create_git_meta();
173719
173804
  init_confirm();
@@ -173729,7 +173814,7 @@ async function disconnect(client2, args2, project, org) {
173729
173814
  const { output: output2 } = client2;
173730
173815
  if (args2.length !== 0) {
173731
173816
  output2.error(
173732
- `Invalid number of arguments. Usage: ${import_chalk85.default.cyan(
173817
+ `Invalid number of arguments. Usage: ${import_chalk84.default.cyan(
173733
173818
  `${getCommandName("project disconnect")}`
173734
173819
  )}`
173735
173820
  );
@@ -173747,14 +173832,14 @@ async function disconnect(client2, args2, project, org) {
173747
173832
  );
173748
173833
  const confirmDisconnect = await confirm(
173749
173834
  client2,
173750
- `Are you sure you want to disconnect ${import_chalk85.default.cyan(
173835
+ `Are you sure you want to disconnect ${import_chalk84.default.cyan(
173751
173836
  `${linkOrg}/${repo}`
173752
173837
  )} from your project?`,
173753
173838
  false
173754
173839
  );
173755
173840
  if (confirmDisconnect) {
173756
173841
  await disconnectGitProvider(client2, org, project.id);
173757
- output2.log(`Disconnected ${import_chalk85.default.cyan(`${linkOrg}/${repo}`)}.`);
173842
+ output2.log(`Disconnected ${import_chalk84.default.cyan(`${linkOrg}/${repo}`)}.`);
173758
173843
  } else {
173759
173844
  output2.log("Canceled");
173760
173845
  }
@@ -173768,11 +173853,11 @@ async function disconnect(client2, args2, project, org) {
173768
173853
  }
173769
173854
  return 0;
173770
173855
  }
173771
- var import_chalk85;
173856
+ var import_chalk84;
173772
173857
  var init_disconnect = __esm({
173773
173858
  "src/commands/git/disconnect.ts"() {
173774
173859
  "use strict";
173775
- import_chalk85 = __toESM3(require_source());
173860
+ import_chalk84 = __toESM3(require_source());
173776
173861
  init_confirm();
173777
173862
  init_pkg_name();
173778
173863
  init_connect_git_provider();
@@ -173900,11 +173985,11 @@ var init_git = __esm({
173900
173985
  });
173901
173986
 
173902
173987
  // src/util/output/list-item.ts
173903
- var import_chalk86, listItem, list_item_default;
173988
+ var import_chalk85, listItem, list_item_default;
173904
173989
  var init_list_item = __esm({
173905
173990
  "src/util/output/list-item.ts"() {
173906
173991
  "use strict";
173907
- import_chalk86 = __toESM3(require_source());
173992
+ import_chalk85 = __toESM3(require_source());
173908
173993
  listItem = (msg, n) => {
173909
173994
  if (!n) {
173910
173995
  n = "-";
@@ -173912,7 +173997,7 @@ var init_list_item = __esm({
173912
173997
  if (Number(n)) {
173913
173998
  n += ".";
173914
173999
  }
173915
- return `${(0, import_chalk86.default)(n.toString())} ${msg}`;
174000
+ return `${(0, import_chalk85.default)(n.toString())} ${msg}`;
173916
174001
  };
173917
174002
  list_item_default = listItem;
173918
174003
  }
@@ -174104,9 +174189,9 @@ async function extractExample(client2, name, dir, force, ver = "v2") {
174104
174189
  extractor.on("finish", resolve12);
174105
174190
  res.body.pipe(extractor);
174106
174191
  });
174107
- const successLog = `Initialized "${import_chalk87.default.bold(
174192
+ const successLog = `Initialized "${import_chalk86.default.bold(
174108
174193
  name
174109
- )}" example in ${import_chalk87.default.bold(humanizePath(folder))}.`;
174194
+ )}" example in ${import_chalk86.default.bold(humanizePath(folder))}.`;
174110
174195
  const folderRel = import_path42.default.relative(client2.cwd, folder);
174111
174196
  const deployHint = folderRel === "" ? list_item_default(`To deploy, run ${getCommandName()}.`) : list_item_default(
174112
174197
  `To deploy, ${cmd(
@@ -174126,14 +174211,14 @@ function prepareFolder(cwd, folder, force) {
174126
174211
  if (import_fs8.default.existsSync(dest)) {
174127
174212
  if (!import_fs8.default.lstatSync(dest).isDirectory()) {
174128
174213
  throw new Error(
174129
- `Destination path "${import_chalk87.default.bold(
174214
+ `Destination path "${import_chalk86.default.bold(
174130
174215
  folder
174131
174216
  )}" already exists and is not a directory.`
174132
174217
  );
174133
174218
  }
174134
174219
  if (!force && import_fs8.default.readdirSync(dest).length !== 0) {
174135
174220
  throw new Error(
174136
- `Destination path "${import_chalk87.default.bold(
174221
+ `Destination path "${import_chalk86.default.bold(
174137
174222
  folder
174138
174223
  )}" already exists and is not an empty directory. You may use ${cmd(
174139
174224
  "--force"
@@ -174144,14 +174229,14 @@ function prepareFolder(cwd, folder, force) {
174144
174229
  try {
174145
174230
  import_fs8.default.mkdirSync(dest);
174146
174231
  } catch (e2) {
174147
- throw new Error(`Could not create directory "${import_chalk87.default.bold(folder)}".`);
174232
+ throw new Error(`Could not create directory "${import_chalk86.default.bold(folder)}".`);
174148
174233
  }
174149
174234
  }
174150
174235
  return dest;
174151
174236
  }
174152
174237
  async function guess(client2, exampleList, name) {
174153
174238
  const GuessError = new Error(
174154
- `No example found for ${import_chalk87.default.bold(name)}, run ${getCommandName(
174239
+ `No example found for ${import_chalk86.default.bold(name)}, run ${getCommandName(
174155
174240
  `init`
174156
174241
  )} to see the list of available examples.`
174157
174242
  );
@@ -174160,21 +174245,21 @@ async function guess(client2, exampleList, name) {
174160
174245
  }
174161
174246
  const found = did_you_mean_default(name, exampleList, 0.7);
174162
174247
  if (typeof found === "string") {
174163
- if (await confirm(client2, `Did you mean ${import_chalk87.default.bold(found)}?`, false)) {
174248
+ if (await confirm(client2, `Did you mean ${import_chalk86.default.bold(found)}?`, false)) {
174164
174249
  return found;
174165
174250
  }
174166
174251
  } else {
174167
174252
  throw GuessError;
174168
174253
  }
174169
174254
  }
174170
- var import_fs8, import_path42, import_tar_fs, import_chalk87, EXAMPLE_API;
174255
+ var import_fs8, import_path42, import_tar_fs, import_chalk86, EXAMPLE_API;
174171
174256
  var init_init = __esm({
174172
174257
  "src/commands/init/init.ts"() {
174173
174258
  "use strict";
174174
174259
  import_fs8 = __toESM3(require("fs"));
174175
174260
  import_path42 = __toESM3(require("path"));
174176
174261
  import_tar_fs = __toESM3(require_tar_fs());
174177
- import_chalk87 = __toESM3(require_source());
174262
+ import_chalk86 = __toESM3(require_source());
174178
174263
  init_list();
174179
174264
  init_list_item();
174180
174265
  init_confirm();
@@ -174304,11 +174389,11 @@ var init_build_state = __esm({
174304
174389
  });
174305
174390
 
174306
174391
  // src/util/output/builds.ts
174307
- var import_chalk88, import_bytes7, padding, MAX_BUILD_GROUPS, MAX_OUTPUTS_PER_GROUP, hasOutput, getCommonPath, styleBuild, styleHiddenBuilds, styleOutput, getDirPath, sortByEntrypoint, groupBuilds, builds_default;
174392
+ var import_chalk87, import_bytes7, padding, MAX_BUILD_GROUPS, MAX_OUTPUTS_PER_GROUP, hasOutput, getCommonPath, styleBuild, styleHiddenBuilds, styleOutput, getDirPath, sortByEntrypoint, groupBuilds, builds_default;
174308
174393
  var init_builds = __esm({
174309
174394
  "src/util/output/builds.ts"() {
174310
174395
  "use strict";
174311
- import_chalk88 = __toESM3(require_source());
174396
+ import_chalk87 = __toESM3(require_source());
174312
174397
  import_bytes7 = __toESM3(require_bytes());
174313
174398
  init_build_state();
174314
174399
  padding = 8;
@@ -174337,48 +174422,48 @@ var init_builds = __esm({
174337
174422
  styleBuild = (build2, times, longestSource) => {
174338
174423
  const { entrypoint, id } = build2;
174339
174424
  const time = typeof times[id] === "string" ? times[id] : "";
174340
- let pathColor = import_chalk88.default.cyan;
174425
+ let pathColor = import_chalk87.default.cyan;
174341
174426
  if (isFailed(build2)) {
174342
- pathColor = import_chalk88.default.red;
174427
+ pathColor = import_chalk87.default.red;
174343
174428
  }
174344
174429
  const entry = entrypoint.padEnd(longestSource + padding);
174345
174430
  const prefix = hasOutput(build2) ? "\u250C" : "\u2576";
174346
- return `${import_chalk88.default.grey(prefix)} ${pathColor(entry)}${time}`;
174431
+ return `${import_chalk87.default.grey(prefix)} ${pathColor(entry)}${time}`;
174347
174432
  };
174348
174433
  styleHiddenBuilds = (commonPath, buildGroup, times, longestSource, isHidden = false) => {
174349
174434
  const { id } = buildGroup[0];
174350
174435
  const entry = commonPath.padEnd(longestSource + padding);
174351
174436
  const time = typeof times[id] === "string" ? times[id] : "";
174352
174437
  const prefix = isHidden === false && buildGroup.some(hasOutput) ? "\u250C" : "\u2576";
174353
- let pathColor = import_chalk88.default.cyan;
174438
+ let pathColor = import_chalk87.default.cyan;
174354
174439
  if (buildGroup.every(isFailed)) {
174355
- pathColor = import_chalk88.default.red;
174440
+ pathColor = import_chalk87.default.red;
174356
174441
  }
174357
174442
  if (isHidden) {
174358
- pathColor = import_chalk88.default.grey;
174443
+ pathColor = import_chalk87.default.grey;
174359
174444
  }
174360
- return `${import_chalk88.default.grey(prefix)} ${pathColor(entry)}${time}`;
174445
+ return `${import_chalk87.default.grey(prefix)} ${pathColor(entry)}${time}`;
174361
174446
  };
174362
174447
  styleOutput = (output2, readyState, isLast) => {
174363
174448
  const { type, path: path11, size, lambda } = output2;
174364
174449
  const prefix = type === "lambda" ? "\u03BB " : "";
174365
- const finalSize = size ? ` ${import_chalk88.default.grey(`(${(0, import_bytes7.default)(size)})`)}` : "";
174366
- let color = import_chalk88.default.grey;
174450
+ const finalSize = size ? ` ${import_chalk87.default.grey(`(${(0, import_bytes7.default)(size)})`)}` : "";
174451
+ let color = import_chalk87.default.grey;
174367
174452
  let finalRegion = "";
174368
174453
  if (isReady({ readyState })) {
174369
- color = import_chalk88.default;
174454
+ color = import_chalk87.default;
174370
174455
  } else if (isFailed({ readyState })) {
174371
- color = import_chalk88.default.red;
174456
+ color = import_chalk87.default.red;
174372
174457
  }
174373
174458
  if (lambda) {
174374
174459
  const { deployedTo } = lambda;
174375
174460
  if (deployedTo && deployedTo.length > 0) {
174376
- finalRegion = ` ${import_chalk88.default.grey(`[${deployedTo.join(", ")}]`)}`;
174461
+ finalRegion = ` ${import_chalk87.default.grey(`[${deployedTo.join(", ")}]`)}`;
174377
174462
  }
174378
174463
  }
174379
174464
  const corner = isLast ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500";
174380
174465
  const main15 = prefix + path11 + finalSize + finalRegion;
174381
- return `${import_chalk88.default.grey(corner)} ${color(main15)}`;
174466
+ return `${import_chalk87.default.grey(corner)} ${color(main15)}`;
174382
174467
  };
174383
174468
  getDirPath = (path11, level = 0, highestLevel = null) => {
174384
174469
  const parts = path11.split("/").slice(0, -1);
@@ -174510,7 +174595,7 @@ var init_builds = __esm({
174510
174595
  );
174511
174596
  if (outputs.length > MAX_OUTPUTS_PER_GROUP) {
174512
174597
  final.push(
174513
- import_chalk88.default.grey(
174598
+ import_chalk87.default.grey(
174514
174599
  `\u2514\u2500\u2500 ${outputs.length - MAX_OUTPUTS_PER_GROUP} output items hidden
174515
174600
  `
174516
174601
  )
@@ -174558,19 +174643,19 @@ function routes(routes2) {
174558
174643
  const padding2 = 6;
174559
174644
  const space = " ".repeat(padding2);
174560
174645
  const destSpace = " ".repeat(longestDest || 10);
174561
- const arrow = import_chalk89.default.grey("->");
174646
+ const arrow = import_chalk88.default.grey("->");
174562
174647
  for (const item of routes2) {
174563
174648
  if ("handle" in item) {
174564
- toPrint += `${import_chalk89.default.grey("\u2576")} ${import_chalk89.default.cyan(item.handle)}`;
174649
+ toPrint += `${import_chalk88.default.grey("\u2576")} ${import_chalk88.default.cyan(item.handle)}`;
174565
174650
  continue;
174566
174651
  }
174567
174652
  const { src, dest, status, headers } = item;
174568
174653
  const last = routes2.indexOf(item) === routes2.length - 1;
174569
174654
  const suffix = last ? "" : `
174570
174655
  `;
174571
- const finalSrc = import_chalk89.default.cyan(src.padEnd(longestSrc + padding2));
174656
+ const finalSrc = import_chalk88.default.cyan(src.padEnd(longestSrc + padding2));
174572
174657
  const finalDest = dest ? `${arrow}${space}${dest}` : ` ${space}${destSpace}`;
174573
- const finalStatus = status ? import_chalk89.default.grey(`[${status}]`) : "";
174658
+ const finalStatus = status ? import_chalk88.default.grey(`[${status}]`) : "";
174574
174659
  let finalHeaders = null;
174575
174660
  if (headers) {
174576
174661
  finalHeaders = `
@@ -174581,21 +174666,21 @@ function routes(routes2) {
174581
174666
  const last2 = headerKeys.indexOf(header) === headerKeys.length - 1;
174582
174667
  const suffix2 = last2 ? "" : `
174583
174668
  `;
174584
- const prefix2 = import_chalk89.default.grey(last2 ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500");
174669
+ const prefix2 = import_chalk88.default.grey(last2 ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500");
174585
174670
  finalHeaders += `${prefix2} ${header}: ${value}${suffix2}`;
174586
174671
  }
174587
174672
  }
174588
- const prefix = import_chalk89.default.grey(finalHeaders ? "\u250C" : "\u2576");
174673
+ const prefix = import_chalk88.default.grey(finalHeaders ? "\u250C" : "\u2576");
174589
174674
  const fill = `${finalSrc}${finalDest}${space}${finalStatus}`;
174590
174675
  toPrint += `${prefix} ${fill}${finalHeaders || ""}${suffix}`;
174591
174676
  }
174592
174677
  return toPrint;
174593
174678
  }
174594
- var import_chalk89, longestProperty;
174679
+ var import_chalk88, longestProperty;
174595
174680
  var init_routes = __esm({
174596
174681
  "src/util/output/routes.ts"() {
174597
174682
  "use strict";
174598
- import_chalk89 = __toESM3(require_source());
174683
+ import_chalk88 = __toESM3(require_source());
174599
174684
  longestProperty = (routes2, name) => {
174600
174685
  const longestItem = routes2.sort((a, b) => {
174601
174686
  const aName = a[name];
@@ -174733,7 +174818,7 @@ async function inspect3(client2) {
174733
174818
  } catch {
174734
174819
  }
174735
174820
  client2.output.spinner(
174736
- `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk90.default.bold(contextName)}`
174821
+ `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk89.default.bold(contextName)}`
174737
174822
  );
174738
174823
  let deployment = await getDeployment(client2, contextName, deploymentIdOrHost);
174739
174824
  let abortController;
@@ -174760,7 +174845,7 @@ async function inspect3(client2) {
174760
174845
  }
174761
174846
  }
174762
174847
  if (withLogs) {
174763
- print(`${import_chalk90.default.cyan("status")} ${stateString(deployment.readyState)}
174848
+ print(`${import_chalk89.default.cyan("status")} ${stateString(deployment.readyState)}
174764
174849
  `);
174765
174850
  } else {
174766
174851
  await printDetails({ deployment, contextName, client: client2, startTimestamp });
@@ -174773,17 +174858,17 @@ function stateString(s) {
174773
174858
  switch (s) {
174774
174859
  case "INITIALIZING":
174775
174860
  case "BUILDING":
174776
- return import_chalk90.default.yellow(CIRCLE) + sTitle;
174861
+ return import_chalk89.default.yellow(CIRCLE) + sTitle;
174777
174862
  case "ERROR":
174778
- return import_chalk90.default.red(CIRCLE) + sTitle;
174863
+ return import_chalk89.default.red(CIRCLE) + sTitle;
174779
174864
  case "READY":
174780
- return import_chalk90.default.green(CIRCLE) + sTitle;
174865
+ return import_chalk89.default.green(CIRCLE) + sTitle;
174781
174866
  case "QUEUED":
174782
- return import_chalk90.default.gray(CIRCLE) + sTitle;
174867
+ return import_chalk89.default.gray(CIRCLE) + sTitle;
174783
174868
  case "CANCELED":
174784
- return import_chalk90.default.gray(CIRCLE) + sTitle;
174869
+ return import_chalk89.default.gray(CIRCLE) + sTitle;
174785
174870
  default:
174786
- return import_chalk90.default.gray("UNKNOWN");
174871
+ return import_chalk89.default.gray("UNKNOWN");
174787
174872
  }
174788
174873
  }
174789
174874
  async function printDetails({
@@ -174793,7 +174878,7 @@ async function printDetails({
174793
174878
  startTimestamp
174794
174879
  }) {
174795
174880
  client2.output.log(
174796
- `Fetched deployment "${import_chalk90.default.bold(deployment.url)}" in ${import_chalk90.default.bold(
174881
+ `Fetched deployment "${import_chalk89.default.bold(deployment.url)}" in ${import_chalk89.default.bold(
174797
174882
  contextName
174798
174883
  )} ${elapsed(Date.now() - startTimestamp)}`
174799
174884
  );
@@ -174809,14 +174894,14 @@ async function printDetails({
174809
174894
  const { print, link: link4 } = client2.output;
174810
174895
  const { builds } = deployment.version === 2 ? await client2.fetch(`/v11/deployments/${id}/builds`) : { builds: [] };
174811
174896
  print("\n");
174812
- print(import_chalk90.default.bold(" General\n\n"));
174813
- print(` ${import_chalk90.default.cyan("id")} ${id}
174897
+ print(import_chalk89.default.bold(" General\n\n"));
174898
+ print(` ${import_chalk89.default.cyan("id")} ${id}
174814
174899
  `);
174815
- print(` ${import_chalk90.default.cyan("name")} ${name}
174900
+ print(` ${import_chalk89.default.cyan("name")} ${name}
174816
174901
  `);
174817
174902
  const customEnvironmentName = deployment.customEnvironment?.name;
174818
174903
  const target = customEnvironmentName ?? deployment.target ?? "preview";
174819
- print(` ${import_chalk90.default.cyan("target")} `);
174904
+ print(` ${import_chalk89.default.cyan("target")} `);
174820
174905
  print(
174821
174906
  deployment.customEnvironment && deployment.team?.slug ? `${link4(
174822
174907
  `${target}`,
@@ -174826,13 +174911,13 @@ async function printDetails({
174826
174911
  ` : `${target}
174827
174912
  `
174828
174913
  );
174829
- print(` ${import_chalk90.default.cyan("status")} ${stateString(readyState)}
174914
+ print(` ${import_chalk89.default.cyan("status")} ${stateString(readyState)}
174830
174915
  `);
174831
- print(` ${import_chalk90.default.cyan("url")} https://${url3}
174916
+ print(` ${import_chalk89.default.cyan("url")} https://${url3}
174832
174917
  `);
174833
174918
  if (createdAt) {
174834
174919
  print(
174835
- ` ${import_chalk90.default.cyan("created")} ${new Date(createdAt)} ${elapsed(
174920
+ ` ${import_chalk89.default.cyan("created")} ${new Date(createdAt)} ${elapsed(
174836
174921
  Date.now() - createdAt,
174837
174922
  true
174838
174923
  )}
@@ -174841,10 +174926,10 @@ async function printDetails({
174841
174926
  }
174842
174927
  print("\n\n");
174843
174928
  if (aliases !== void 0 && aliases.length > 0) {
174844
- print(import_chalk90.default.bold(" Aliases\n\n"));
174929
+ print(import_chalk89.default.bold(" Aliases\n\n"));
174845
174930
  let aliasList = "";
174846
174931
  for (const alias2 of aliases) {
174847
- aliasList += `${import_chalk90.default.gray("\u2576")} https://${alias2}
174932
+ aliasList += `${import_chalk89.default.gray("\u2576")} https://${alias2}
174848
174933
  `;
174849
174934
  }
174850
174935
  print(indent_default(aliasList, 4));
@@ -174856,12 +174941,12 @@ async function printDetails({
174856
174941
  const { id: id2, createdAt: createdAt2, readyStateAt } = build2;
174857
174942
  times[id2] = createdAt2 && readyStateAt ? elapsed(readyStateAt - createdAt2) : null;
174858
174943
  }
174859
- print(import_chalk90.default.bold(" Builds\n\n"));
174944
+ print(import_chalk89.default.bold(" Builds\n\n"));
174860
174945
  print(indent_default(builds_default(builds, times).toPrint, 4));
174861
174946
  print("\n\n");
174862
174947
  }
174863
174948
  if (Array.isArray(routes2) && routes2.length > 0) {
174864
- print(import_chalk90.default.bold(" Routes\n\n"));
174949
+ print(import_chalk89.default.bold(" Routes\n\n"));
174865
174950
  print(indent_default(routes(routes2), 4));
174866
174951
  print(`
174867
174952
 
@@ -174874,12 +174959,12 @@ function exitCode(state) {
174874
174959
  }
174875
174960
  return 0;
174876
174961
  }
174877
- var import_error_utils24, import_chalk90, import_ms17, import_title5, import_url20;
174962
+ var import_error_utils24, import_chalk89, import_ms17, import_title5, import_url20;
174878
174963
  var init_inspect2 = __esm({
174879
174964
  "src/commands/inspect/index.ts"() {
174880
174965
  "use strict";
174881
174966
  import_error_utils24 = __toESM3(require_dist2());
174882
- import_chalk90 = __toESM3(require_source());
174967
+ import_chalk89 = __toESM3(require_source());
174883
174968
  import_ms17 = __toESM3(require_ms2());
174884
174969
  import_title5 = __toESM3(require_lib17());
174885
174970
  import_url20 = require("url");
@@ -175131,7 +175216,12 @@ async function list2(client2) {
175131
175216
  }
175132
175217
  const autoConfirm = !!argv2["--yes"];
175133
175218
  const meta = parseMeta(argv2["--meta"]);
175134
- const target = argv2["--prod"] ? "production" : typeof argv2["--environment"] === "string" ? argv2["--environment"].toLowerCase() : void 0;
175219
+ const target = parseTarget({
175220
+ output: output2,
175221
+ targetFlagName: "environment",
175222
+ targetFlagValue: argv2["--environment"],
175223
+ prodFlagValue: argv2["--prod"]
175224
+ });
175135
175225
  let link4 = await getLinkedProject(client2, cwd);
175136
175226
  if (link4.status === "error") {
175137
175227
  return link4.exitCode;
@@ -175182,7 +175272,7 @@ async function list2(client2) {
175182
175272
  error4("Please provide a number for flag `--next`");
175183
175273
  return 1;
175184
175274
  }
175185
- spinner(`Fetching deployments in ${import_chalk91.default.bold(contextName)}`);
175275
+ spinner(`Fetching deployments in ${import_chalk90.default.bold(contextName)}`);
175186
175276
  const now = new Now({
175187
175277
  client: client2,
175188
175278
  currentTeam
@@ -175253,7 +175343,7 @@ async function list2(client2) {
175253
175343
  return 0;
175254
175344
  }
175255
175345
  log2(
175256
- `${target === "production" ? `Production deployments` : `Deployments`} for ${import_chalk91.default.bold(app)} under ${import_chalk91.default.bold(contextName)} ${elapsed(
175346
+ `${target === "production" ? `Production deployments` : `Deployments`} for ${import_chalk90.default.bold(app)} under ${import_chalk90.default.bold(contextName)} ${elapsed(
175257
175347
  Date.now() - start
175258
175348
  )}`
175259
175349
  );
@@ -175268,16 +175358,16 @@ async function list2(client2) {
175268
175358
  client2.output.print(
175269
175359
  `${table(
175270
175360
  [
175271
- headers.map((header) => import_chalk91.default.bold(import_chalk91.default.cyan(header))),
175361
+ headers.map((header) => import_chalk90.default.bold(import_chalk90.default.cyan(header))),
175272
175362
  ...deployments.sort(sortRecent()).map((dep) => {
175273
175363
  urls.push(`https://${dep.url}`);
175274
175364
  return [
175275
- import_chalk91.default.gray((0, import_ms18.default)(Date.now() - dep.createdAt)),
175365
+ import_chalk90.default.gray((0, import_ms18.default)(Date.now() - dep.createdAt)),
175276
175366
  `https://${dep.url}`,
175277
175367
  stateString2(dep.state || ""),
175278
175368
  dep.target === "production" ? "Production" : "Preview",
175279
- import_chalk91.default.gray(getDeploymentDuration(dep)),
175280
- showUsername ? import_chalk91.default.gray(dep.creator?.username) : ""
175369
+ import_chalk90.default.gray(getDeploymentDuration(dep)),
175370
+ showUsername ? import_chalk90.default.gray(dep.creator?.username) : ""
175281
175371
  ];
175282
175372
  }).filter(
175283
175373
  (app2) => (
@@ -175323,17 +175413,17 @@ function stateString2(s) {
175323
175413
  case "BUILDING":
175324
175414
  case "DEPLOYING":
175325
175415
  case "ANALYZING":
175326
- return import_chalk91.default.yellow(CIRCLE) + sTitle;
175416
+ return import_chalk90.default.yellow(CIRCLE) + sTitle;
175327
175417
  case "ERROR":
175328
- return import_chalk91.default.red(CIRCLE) + sTitle;
175418
+ return import_chalk90.default.red(CIRCLE) + sTitle;
175329
175419
  case "READY":
175330
- return import_chalk91.default.green(CIRCLE) + sTitle;
175420
+ return import_chalk90.default.green(CIRCLE) + sTitle;
175331
175421
  case "QUEUED":
175332
- return import_chalk91.default.white(CIRCLE) + sTitle;
175422
+ return import_chalk90.default.white(CIRCLE) + sTitle;
175333
175423
  case "CANCELED":
175334
- return import_chalk91.default.gray(sTitle);
175424
+ return import_chalk90.default.gray(sTitle);
175335
175425
  default:
175336
- return import_chalk91.default.gray("UNKNOWN");
175426
+ return import_chalk90.default.gray("UNKNOWN");
175337
175427
  }
175338
175428
  }
175339
175429
  function sortRecent() {
@@ -175351,11 +175441,11 @@ function filterUniqueApps() {
175351
175441
  return true;
175352
175442
  };
175353
175443
  }
175354
- var import_chalk91, import_ms18, import_title6, import_error_utils25;
175444
+ var import_chalk90, import_ms18, import_title6, import_error_utils25;
175355
175445
  var init_list2 = __esm({
175356
175446
  "src/commands/list/index.ts"() {
175357
175447
  "use strict";
175358
- import_chalk91 = __toESM3(require_source());
175448
+ import_chalk90 = __toESM3(require_source());
175359
175449
  import_ms18 = __toESM3(require_ms2());
175360
175450
  init_table();
175361
175451
  import_title6 = __toESM3(require_lib17());
@@ -175375,6 +175465,7 @@ var init_list2 = __esm({
175375
175465
  import_error_utils25 = __toESM3(require_dist2());
175376
175466
  init_help();
175377
175467
  init_command16();
175468
+ init_parse_target();
175378
175469
  }
175379
175470
  });
175380
175471
 
@@ -175437,7 +175528,7 @@ async function logs(client2) {
175437
175528
  } catch {
175438
175529
  }
175439
175530
  spinner(
175440
- `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk92.default.bold(contextName)}`
175531
+ `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk91.default.bold(contextName)}`
175441
175532
  );
175442
175533
  let deployment;
175443
175534
  try {
@@ -175473,19 +175564,19 @@ function printDisclaimer(deployment, { print, warn }) {
175473
175564
  `This command now displays runtime logs. To access your build logs, run \`vercel inspect --logs ${deployment.url}\``
175474
175565
  );
175475
175566
  print(
175476
- `Displaying runtime logs for deployment ${deployment.url} (${import_chalk92.default.dim(
175567
+ `Displaying runtime logs for deployment ${deployment.url} (${import_chalk91.default.dim(
175477
175568
  deployment.id
175478
- )}) starting from ${import_chalk92.default.bold((0, import_format2.default)(Date.now(), dateTimeFormat2))}
175569
+ )}) starting from ${import_chalk91.default.bold((0, import_format2.default)(Date.now(), dateTimeFormat2))}
175479
175570
 
175480
175571
  `
175481
175572
  );
175482
175573
  }
175483
- var import_error_utils26, import_chalk92, import_format2, deprecatedFlags, dateTimeFormat2;
175574
+ var import_error_utils26, import_chalk91, import_format2, deprecatedFlags, dateTimeFormat2;
175484
175575
  var init_logs2 = __esm({
175485
175576
  "src/commands/logs/index.ts"() {
175486
175577
  "use strict";
175487
175578
  import_error_utils26 = __toESM3(require_dist2());
175488
- import_chalk92 = __toESM3(require_source());
175579
+ import_chalk91 = __toESM3(require_source());
175489
175580
  import_format2 = __toESM3(require_format2());
175490
175581
  init_build_state();
175491
175582
  init_is_deploying();
@@ -175650,7 +175741,7 @@ async function login2(client2) {
175650
175741
  writeToConfigFile(client2.config);
175651
175742
  output2.debug(`Saved credentials in "${humanizePath(global_path_default())}"`);
175652
175743
  output2.print(
175653
- `${import_chalk93.default.cyan("Congratulations!")} You are now logged in. In order to deploy something, run ${getCommandName()}.
175744
+ `${import_chalk92.default.cyan("Congratulations!")} You are now logged in. In order to deploy something, run ${getCommandName()}.
175654
175745
  `
175655
175746
  );
175656
175747
  output2.print(
@@ -175662,12 +175753,12 @@ async function login2(client2) {
175662
175753
  );
175663
175754
  return 0;
175664
175755
  }
175665
- var import_email_validator, import_chalk93;
175756
+ var import_email_validator, import_chalk92;
175666
175757
  var init_login2 = __esm({
175667
175758
  "src/commands/login/index.ts"() {
175668
175759
  "use strict";
175669
175760
  import_email_validator = __toESM3(require_email_validator());
175670
- import_chalk93 = __toESM3(require_source());
175761
+ import_chalk92 = __toESM3(require_source());
175671
175762
  init_humanize_path();
175672
175763
  init_get_args();
175673
175764
  init_prompt();
@@ -175791,12 +175882,12 @@ async function add6(client2, args2, contextName) {
175791
175882
  const { output: output2 } = client2;
175792
175883
  if (args2.length !== 1) {
175793
175884
  output2.error(
175794
- `Invalid number of arguments. Usage: ${import_chalk94.default.cyan(
175885
+ `Invalid number of arguments. Usage: ${import_chalk93.default.cyan(
175795
175886
  `${getCommandName("project add <name>")}`
175796
175887
  )}`
175797
175888
  );
175798
175889
  if (args2.length > 1) {
175799
- const example = import_chalk94.default.cyan(
175890
+ const example = import_chalk93.default.cyan(
175800
175891
  `${getCommandName(`project add "${args2.join(" ")}"`)}`
175801
175892
  );
175802
175893
  output2.log(
@@ -175822,17 +175913,17 @@ async function add6(client2, args2, contextName) {
175822
175913
  }
175823
175914
  const elapsed2 = (0, import_ms19.default)(Date.now() - start);
175824
175915
  output2.log(
175825
- `${import_chalk94.default.cyan("Success!")} Project ${import_chalk94.default.bold(
175916
+ `${import_chalk93.default.cyan("Success!")} Project ${import_chalk93.default.bold(
175826
175917
  name.toLowerCase()
175827
- )} added (${import_chalk94.default.bold(contextName)}) ${import_chalk94.default.gray(`[${elapsed2}]`)}`
175918
+ )} added (${import_chalk93.default.bold(contextName)}) ${import_chalk93.default.gray(`[${elapsed2}]`)}`
175828
175919
  );
175829
175920
  return;
175830
175921
  }
175831
- var import_chalk94, import_ms19;
175922
+ var import_chalk93, import_ms19;
175832
175923
  var init_add5 = __esm({
175833
175924
  "src/commands/project/add.ts"() {
175834
175925
  "use strict";
175835
- import_chalk94 = __toESM3(require_source());
175926
+ import_chalk93 = __toESM3(require_source());
175836
175927
  import_ms19 = __toESM3(require_ms2());
175837
175928
  init_errors_ts();
175838
175929
  init_pkg_name();
@@ -175845,14 +175936,14 @@ async function list3(client2, argv2, args2, contextName) {
175845
175936
  const { output: output2 } = client2;
175846
175937
  if (args2.length !== 0) {
175847
175938
  output2.error(
175848
- `Invalid number of arguments. Usage: ${import_chalk95.default.cyan(
175939
+ `Invalid number of arguments. Usage: ${import_chalk94.default.cyan(
175849
175940
  `${getCommandName("project ls")}`
175850
175941
  )}`
175851
175942
  );
175852
175943
  return 2;
175853
175944
  }
175854
175945
  const start = Date.now();
175855
- output2.spinner(`Fetching projects in ${import_chalk95.default.bold(contextName)}`);
175946
+ output2.spinner(`Fetching projects in ${import_chalk94.default.bold(contextName)}`);
175856
175947
  let projectsUrl = `/v9/projects?limit=20`;
175857
175948
  const deprecated = argv2["--update-required"] || false;
175858
175949
  if (deprecated) {
@@ -175887,19 +175978,19 @@ async function list3(client2, argv2, args2, contextName) {
175887
175978
  );
175888
175979
  }
175889
175980
  output2.log(
175890
- `${projectList.length > 0 ? "Projects" : "No projects"} found under ${import_chalk95.default.bold(contextName)} ${deprecated ? "that are using a deprecated Node.js version" : "\b"} ${import_chalk95.default.gray(`[${elapsed2}]`)}`
175981
+ `${projectList.length > 0 ? "Projects" : "No projects"} found under ${import_chalk94.default.bold(contextName)} ${deprecated ? "that are using a deprecated Node.js version" : "\b"} ${import_chalk94.default.gray(`[${elapsed2}]`)}`
175891
175982
  );
175892
175983
  if (projectList.length > 0) {
175893
175984
  const tablePrint = table(
175894
175985
  [
175895
175986
  ["Project Name", "Latest Production URL", "Updated"].map(
175896
- (header) => import_chalk95.default.bold(import_chalk95.default.cyan(header))
175987
+ (header) => import_chalk94.default.bold(import_chalk94.default.cyan(header))
175897
175988
  ),
175898
175989
  ...projectList.map((project) => [
175899
175990
  [
175900
- import_chalk95.default.bold(project.name),
175991
+ import_chalk94.default.bold(project.name),
175901
175992
  getLatestProdUrl(project),
175902
- import_chalk95.default.gray((0, import_ms20.default)(Date.now() - project.updatedAt))
175993
+ import_chalk94.default.gray((0, import_ms20.default)(Date.now() - project.updatedAt))
175903
175994
  ]
175904
175995
  ]).flat()
175905
175996
  ],
@@ -175923,11 +176014,11 @@ function getLatestProdUrl(project) {
175923
176014
  return "https://" + alias2;
175924
176015
  return "--";
175925
176016
  }
175926
- var import_chalk95, import_ms20, import_build_utils18;
176017
+ var import_chalk94, import_ms20, import_build_utils18;
175927
176018
  var init_list3 = __esm({
175928
176019
  "src/commands/project/list.ts"() {
175929
176020
  "use strict";
175930
- import_chalk95 = __toESM3(require_source());
176021
+ import_chalk94 = __toESM3(require_source());
175931
176022
  import_ms20 = __toESM3(require_ms2());
175932
176023
  init_table();
175933
176024
  init_get_command_flags();
@@ -175940,7 +176031,7 @@ var init_list3 = __esm({
175940
176031
  async function rm6(client2, args2) {
175941
176032
  if (args2.length !== 1) {
175942
176033
  client2.output.error(
175943
- `Invalid number of arguments. Usage: ${import_chalk96.default.cyan(
176034
+ `Invalid number of arguments. Usage: ${import_chalk95.default.cyan(
175944
176035
  `${getCommandName("project rm <name>")}`
175945
176036
  )}`
175946
176037
  );
@@ -175969,7 +176060,7 @@ async function rm6(client2, args2) {
175969
176060
  }
175970
176061
  const elapsed2 = (0, import_ms21.default)(Date.now() - start);
175971
176062
  client2.output.log(
175972
- `${import_chalk96.default.cyan("Success!")} Project ${import_chalk96.default.bold(name)} removed ${import_chalk96.default.gray(
176063
+ `${import_chalk95.default.cyan("Success!")} Project ${import_chalk95.default.bold(name)} removed ${import_chalk95.default.gray(
175973
176064
  `[${elapsed2}]`
175974
176065
  )}`
175975
176066
  );
@@ -175978,19 +176069,19 @@ async function rm6(client2, args2) {
175978
176069
  async function readConfirmation3(client2, projectName) {
175979
176070
  client2.output.print(
175980
176071
  prependEmoji(
175981
- `The project ${import_chalk96.default.bold(projectName)} will be removed permanently.
176072
+ `The project ${import_chalk95.default.bold(projectName)} will be removed permanently.
175982
176073
  It will also delete everything under the project including deployments.
175983
176074
  `,
175984
176075
  emoji("warning")
175985
176076
  )
175986
176077
  );
175987
- return await confirm(client2, `${import_chalk96.default.bold.red("Are you sure?")}`, false);
176078
+ return await confirm(client2, `${import_chalk95.default.bold.red("Are you sure?")}`, false);
175988
176079
  }
175989
- var import_chalk96, import_ms21, e;
176080
+ var import_chalk95, import_ms21, e;
175990
176081
  var init_rm6 = __esm({
175991
176082
  "src/commands/project/rm.ts"() {
175992
176083
  "use strict";
175993
- import_chalk96 = __toESM3(require_source());
176084
+ import_chalk95 = __toESM3(require_source());
175994
176085
  import_ms21 = __toESM3(require_ms2());
175995
176086
  init_emoji();
175996
176087
  init_errors_ts();
@@ -176199,7 +176290,7 @@ async function getProjectByDeployment({
176199
176290
  let team;
176200
176291
  try {
176201
176292
  output2?.spinner(
176202
- `Fetching deployment "${deployId}" in ${import_chalk97.default.bold(contextName)}\u2026`
176293
+ `Fetching deployment "${deployId}" in ${import_chalk96.default.bold(contextName)}\u2026`
176203
176294
  );
176204
176295
  const [teamResult, deploymentResult] = await Promise.allSettled([
176205
176296
  config3.currentTeam ? getTeamById(client2, config3.currentTeam) : void 0,
@@ -176216,12 +176307,12 @@ async function getProjectByDeployment({
176216
176307
  team = teamResult.value;
176217
176308
  deployment = deploymentResult.value;
176218
176309
  output2?.log(
176219
- `Fetching deployment "${deployId}" in ${import_chalk97.default.bold(contextName)}\u2026`
176310
+ `Fetching deployment "${deployId}" in ${import_chalk96.default.bold(contextName)}\u2026`
176220
176311
  );
176221
176312
  if (deployment.team?.id) {
176222
176313
  if (!team || deployment.team.id !== team.id) {
176223
176314
  const err = new Error(
176224
- team ? `Deployment doesn't belong to current team ${import_chalk97.default.bold(
176315
+ team ? `Deployment doesn't belong to current team ${import_chalk96.default.bold(
176225
176316
  contextName
176226
176317
  )}` : `Deployment belongs to a different team`
176227
176318
  );
@@ -176230,7 +176321,7 @@ async function getProjectByDeployment({
176230
176321
  }
176231
176322
  } else if (team) {
176232
176323
  const err = new Error(
176233
- `Deployment doesn't belong to current team ${import_chalk97.default.bold(contextName)}`
176324
+ `Deployment doesn't belong to current team ${import_chalk96.default.bold(contextName)}`
176234
176325
  );
176235
176326
  err.code = "ERR_INVALID_TEAM";
176236
176327
  throw err;
@@ -176251,11 +176342,11 @@ async function getProjectByDeployment({
176251
176342
  output2?.stopSpinner();
176252
176343
  }
176253
176344
  }
176254
- var import_chalk97;
176345
+ var import_chalk96;
176255
176346
  var init_get_project_by_deployment = __esm({
176256
176347
  "src/util/projects/get-project-by-deployment.ts"() {
176257
176348
  "use strict";
176258
- import_chalk97 = __toESM3(require_source());
176349
+ import_chalk96 = __toESM3(require_source());
176259
176350
  init_get_deployment();
176260
176351
  init_get_project_by_id_or_name();
176261
176352
  init_get_scope();
@@ -176268,21 +176359,21 @@ var init_get_project_by_deployment = __esm({
176268
176359
  // src/util/alias/render-alias-status.ts
176269
176360
  function renderAliasStatus(status) {
176270
176361
  if (status === "completed") {
176271
- return import_chalk98.default.green(status);
176362
+ return import_chalk97.default.green(status);
176272
176363
  }
176273
176364
  if (status === "failed") {
176274
- return import_chalk98.default.red(status);
176365
+ return import_chalk97.default.red(status);
176275
176366
  }
176276
176367
  if (status === "skipped") {
176277
- return import_chalk98.default.gray(status);
176368
+ return import_chalk97.default.gray(status);
176278
176369
  }
176279
- return import_chalk98.default.yellow(status);
176370
+ return import_chalk97.default.yellow(status);
176280
176371
  }
176281
- var import_chalk98;
176372
+ var import_chalk97;
176282
176373
  var init_render_alias_status = __esm({
176283
176374
  "src/util/alias/render-alias-status.ts"() {
176284
176375
  "use strict";
176285
- import_chalk98 = __toESM3(require_source());
176376
+ import_chalk97 = __toESM3(require_source());
176286
176377
  }
176287
176378
  });
176288
176379
 
@@ -176357,7 +176448,7 @@ async function promoteStatus({
176357
176448
  }
176358
176449
  if (requestedAt < recentThreshold || Date.now() >= promoteTimeout) {
176359
176450
  output2.log(
176360
- `The promotion exceeded its deadline - rerun ${import_chalk99.default.bold(
176451
+ `The promotion exceeded its deadline - rerun ${import_chalk98.default.bold(
176361
176452
  `${packageName} promote ${toDeploymentId}`
176362
176453
  )} to try again`
176363
176454
  );
@@ -176423,26 +176514,26 @@ async function renderJobSucceeded({
176423
176514
  let deploymentInfo = "";
176424
176515
  try {
176425
176516
  const deployment = await getDeployment(client2, contextName, toDeploymentId);
176426
- deploymentInfo = `${import_chalk99.default.bold(deployment.url)} (${toDeploymentId})`;
176517
+ deploymentInfo = `${import_chalk98.default.bold(deployment.url)} (${toDeploymentId})`;
176427
176518
  } catch (err) {
176428
176519
  output2.debug(
176429
176520
  `Failed to get deployment url for ${toDeploymentId}: ${err?.toString() || err}`
176430
176521
  );
176431
- deploymentInfo = import_chalk99.default.bold(toDeploymentId);
176522
+ deploymentInfo = import_chalk98.default.bold(toDeploymentId);
176432
176523
  }
176433
176524
  const duration = performingPromote ? elapsed(Date.now() - requestedAt) : "";
176434
176525
  output2.log(
176435
- `Success! ${import_chalk99.default.bold(
176526
+ `Success! ${import_chalk98.default.bold(
176436
176527
  project.name
176437
176528
  )} was promoted to ${deploymentInfo} ${duration}`
176438
176529
  );
176439
176530
  return 0;
176440
176531
  }
176441
- var import_chalk99, import_ms22;
176532
+ var import_chalk98, import_ms22;
176442
176533
  var init_status = __esm({
176443
176534
  "src/commands/promote/status.ts"() {
176444
176535
  "use strict";
176445
- import_chalk99 = __toESM3(require_source());
176536
+ import_chalk98 = __toESM3(require_source());
176446
176537
  init_elapsed();
176447
176538
  init_format_date();
176448
176539
  init_get_deployment();
@@ -176485,7 +176576,7 @@ async function requestPromote({
176485
176576
  });
176486
176577
  if (timeout !== void 0 && (0, import_ms23.default)(timeout) === 0) {
176487
176578
  output2.log(
176488
- `Successfully requested promote of ${import_chalk100.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
176579
+ `Successfully requested promote of ${import_chalk99.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
176489
176580
  );
176490
176581
  output2.log(`To check promote status, run ${getCommandName("promote")}.`);
176491
176582
  return 0;
@@ -176498,11 +176589,11 @@ async function requestPromote({
176498
176589
  timeout
176499
176590
  });
176500
176591
  }
176501
- var import_chalk100, import_ms23;
176592
+ var import_chalk99, import_ms23;
176502
176593
  var init_request_promote = __esm({
176503
176594
  "src/commands/promote/request-promote.ts"() {
176504
176595
  "use strict";
176505
- import_chalk100 = __toESM3(require_source());
176596
+ import_chalk99 = __toESM3(require_source());
176506
176597
  init_pkg_name();
176507
176598
  init_get_project_by_deployment();
176508
176599
  import_ms23 = __toESM3(require_ms2());
@@ -176665,7 +176756,7 @@ async function getDeploymentByIdOrURL({
176665
176756
  let team;
176666
176757
  try {
176667
176758
  output2.spinner(
176668
- `Fetching deployment "${deployIdOrUrl}" in ${import_chalk101.default.bold(contextName)}\u2026`
176759
+ `Fetching deployment "${deployIdOrUrl}" in ${import_chalk100.default.bold(contextName)}\u2026`
176669
176760
  );
176670
176761
  const [teamResult, deploymentResult] = await Promise.allSettled([
176671
176762
  config3.currentTeam ? getTeamById(client2, config3.currentTeam) : void 0,
@@ -176682,7 +176773,7 @@ async function getDeploymentByIdOrURL({
176682
176773
  team = teamResult.value;
176683
176774
  deployment = deploymentResult.value;
176684
176775
  output2.log(
176685
- `Fetching deployment "${deployIdOrUrl}" in ${import_chalk101.default.bold(contextName)}\u2026`
176776
+ `Fetching deployment "${deployIdOrUrl}" in ${import_chalk100.default.bold(contextName)}\u2026`
176686
176777
  );
176687
176778
  } finally {
176688
176779
  output2.stopSpinner();
@@ -176690,7 +176781,7 @@ async function getDeploymentByIdOrURL({
176690
176781
  if (deployment.team?.id) {
176691
176782
  if (!team || deployment.team.id !== team.id) {
176692
176783
  const err = new Error(
176693
- team ? `Deployment doesn't belong to current team ${import_chalk101.default.bold(
176784
+ team ? `Deployment doesn't belong to current team ${import_chalk100.default.bold(
176694
176785
  contextName
176695
176786
  )}` : `Deployment belongs to a different team`
176696
176787
  );
@@ -176699,18 +176790,18 @@ async function getDeploymentByIdOrURL({
176699
176790
  }
176700
176791
  } else if (team) {
176701
176792
  const err = new Error(
176702
- `Deployment doesn't belong to current team ${import_chalk101.default.bold(contextName)}`
176793
+ `Deployment doesn't belong to current team ${import_chalk100.default.bold(contextName)}`
176703
176794
  );
176704
176795
  err.code = "ERR_INVALID_TEAM";
176705
176796
  throw err;
176706
176797
  }
176707
176798
  return deployment;
176708
176799
  }
176709
- var import_chalk101;
176800
+ var import_chalk100;
176710
176801
  var init_get_deployment_by_id_or_url = __esm({
176711
176802
  "src/util/deploy/get-deployment-by-id-or-url.ts"() {
176712
176803
  "use strict";
176713
- import_chalk101 = __toESM3(require_source());
176804
+ import_chalk100 = __toESM3(require_source());
176714
176805
  init_get_deployment();
176715
176806
  init_get_team_by_id();
176716
176807
  init_is_valid_name();
@@ -176812,14 +176903,14 @@ async function redeploy(client2) {
176812
176903
  const previewUrl = `https://${deployment.url}`;
176813
176904
  output2.print(
176814
176905
  `${prependEmoji(
176815
- `Inspect: ${import_chalk102.default.bold(deployment.inspectorUrl)} ${deployStamp()}`,
176906
+ `Inspect: ${import_chalk101.default.bold(deployment.inspectorUrl)} ${deployStamp()}`,
176816
176907
  emoji("inspect")
176817
176908
  )}
176818
176909
  `
176819
176910
  );
176820
176911
  output2.print(
176821
176912
  prependEmoji(
176822
- `${isProdDeployment ? "Production" : "Preview"}: ${import_chalk102.default.bold(
176913
+ `${isProdDeployment ? "Production" : "Preview"}: ${import_chalk101.default.bold(
176823
176914
  previewUrl
176824
176915
  )} ${deployStamp()}`,
176825
176916
  emoji("success")
@@ -176889,17 +176980,17 @@ async function redeploy(client2) {
176889
176980
  output2.prettyError(err);
176890
176981
  if ((0, import_error_utils29.isErrnoException)(err) && err.code === "ERR_INVALID_TEAM") {
176891
176982
  output2.error(
176892
- `Use ${import_chalk102.default.bold("vc switch")} to change your current team`
176983
+ `Use ${import_chalk101.default.bold("vc switch")} to change your current team`
176893
176984
  );
176894
176985
  }
176895
176986
  return 1;
176896
176987
  }
176897
176988
  }
176898
- var import_chalk102, import_client12, import_error_utils29;
176989
+ var import_chalk101, import_client12, import_error_utils29;
176899
176990
  var init_redeploy = __esm({
176900
176991
  "src/commands/redeploy/index.ts"() {
176901
176992
  "use strict";
176902
- import_chalk102 = __toESM3(require_source());
176993
+ import_chalk101 = __toESM3(require_source());
176903
176994
  import_client12 = __toESM3(require_dist10());
176904
176995
  init_emoji();
176905
176996
  init_get_args();
@@ -177114,7 +177205,7 @@ async function remove3(client2) {
177114
177205
  }
177115
177206
  const { contextName } = await getScope(client2);
177116
177207
  output2.spinner(
177117
- `Fetching deployment(s) ${ids.map((id) => `"${id}"`).join(" ")} in ${import_chalk103.default.bold(contextName)}`
177208
+ `Fetching deployment(s) ${ids.map((id) => `"${id}"`).join(" ")} in ${import_chalk102.default.bold(contextName)}`
177118
177209
  );
177119
177210
  let aliases;
177120
177211
  let projects;
@@ -177180,12 +177271,12 @@ async function remove3(client2) {
177180
177271
  });
177181
177272
  if (deployments.length === 0 && projects.length === 0) {
177182
177273
  log2(
177183
- `Could not find ${argv2["--safe"] ? "unaliased" : "any"} deployments or projects matching ${ids.map((id) => import_chalk103.default.bold(`"${id}"`)).join(", ")}. Run ${getCommandName("projects ls")} to list.`
177274
+ `Could not find ${argv2["--safe"] ? "unaliased" : "any"} deployments or projects matching ${ids.map((id) => import_chalk102.default.bold(`"${id}"`)).join(", ")}. Run ${getCommandName("projects ls")} to list.`
177184
177275
  );
177185
177276
  return 1;
177186
177277
  }
177187
177278
  log2(
177188
- `Found ${deploymentsAndProjects(deployments, projects)} for removal in ${import_chalk103.default.bold(contextName)} ${elapsed(Date.now() - findStart)}`
177279
+ `Found ${deploymentsAndProjects(deployments, projects)} for removal in ${import_chalk102.default.bold(contextName)} ${elapsed(Date.now() - findStart)}`
177189
177280
  );
177190
177281
  if (deployments.length > 200) {
177191
177282
  output2.warn(
@@ -177212,11 +177303,11 @@ async function remove3(client2) {
177212
177303
  `Removed ${deploymentsAndProjects(deployments, projects)} ${elapsed(Date.now() - start)}`
177213
177304
  );
177214
177305
  deployments.forEach((depl) => {
177215
- output2.print(`${import_chalk103.default.gray("-")} ${import_chalk103.default.bold(depl.url)}
177306
+ output2.print(`${import_chalk102.default.gray("-")} ${import_chalk102.default.bold(depl.url)}
177216
177307
  `);
177217
177308
  });
177218
177309
  projects.forEach((project) => {
177219
- output2.print(`${import_chalk103.default.gray("-")} ${import_chalk103.default.bold(project.name)}
177310
+ output2.print(`${import_chalk102.default.gray("-")} ${import_chalk102.default.bold(project.name)}
177220
177311
  `);
177221
177312
  });
177222
177313
  return 0;
@@ -177233,8 +177324,8 @@ function readConfirmation4(deployments, projects, output2) {
177233
177324
  );
177234
177325
  const deploymentTable = table(
177235
177326
  deployments.map((depl) => {
177236
- const time = import_chalk103.default.gray(`${(0, import_ms25.default)(Date.now() - depl.createdAt)} ago`);
177237
- const url3 = depl.url ? import_chalk103.default.underline(`https://${depl.url}`) : "";
177327
+ const time = import_chalk102.default.gray(`${(0, import_ms25.default)(Date.now() - depl.createdAt)} ago`);
177328
+ const url3 = depl.url ? import_chalk102.default.underline(`https://${depl.url}`) : "";
177238
177329
  return [` ${depl.id}`, url3, time];
177239
177330
  }),
177240
177331
  { align: ["l", "r", "l"], hsep: 6 }
@@ -177245,7 +177336,7 @@ function readConfirmation4(deployments, projects, output2) {
177245
177336
  for (const depl of deployments) {
177246
177337
  for (const { alias: alias2 } of depl.aliases) {
177247
177338
  output2.warn(
177248
- `${import_chalk103.default.underline(`https://${alias2}`)} is an alias for ${import_chalk103.default.bold(depl.url)} and will be removed`
177339
+ `${import_chalk102.default.underline(`https://${alias2}`)} is an alias for ${import_chalk102.default.bold(depl.url)} and will be removed`
177249
177340
  );
177250
177341
  }
177251
177342
  }
@@ -177259,12 +177350,12 @@ function readConfirmation4(deployments, projects, output2) {
177259
177350
  `
177260
177351
  );
177261
177352
  for (const project of projects) {
177262
- output2.print(`${import_chalk103.default.gray("-")} ${import_chalk103.default.bold(project.name)}
177353
+ output2.print(`${import_chalk102.default.gray("-")} ${import_chalk102.default.bold(project.name)}
177263
177354
  `);
177264
177355
  }
177265
177356
  }
177266
177357
  output2.print(
177267
- `${import_chalk103.default.bold.red("> Are you sure?")} ${import_chalk103.default.gray("(y/N) ")}`
177358
+ `${import_chalk102.default.bold.red("> Are you sure?")} ${import_chalk102.default.gray("(y/N) ")}`
177268
177359
  );
177269
177360
  process.stdin.on("data", (d) => {
177270
177361
  process.stdin.pause();
@@ -177281,11 +177372,11 @@ function deploymentsAndProjects(deployments, projects, conjunction = "and") {
177281
177372
  }
177282
177373
  return `${(0, import_pluralize11.default)("deployment", deployments.length, true)} ${conjunction} ${(0, import_pluralize11.default)("project", projects.length, true)}`;
177283
177374
  }
177284
- var import_chalk103, import_ms25, import_pluralize11;
177375
+ var import_chalk102, import_ms25, import_pluralize11;
177285
177376
  var init_remove = __esm({
177286
177377
  "src/commands/remove/index.ts"() {
177287
177378
  "use strict";
177288
- import_chalk103 = __toESM3(require_source());
177379
+ import_chalk102 = __toESM3(require_source());
177289
177380
  import_ms25 = __toESM3(require_ms2());
177290
177381
  import_pluralize11 = __toESM3(require_pluralize());
177291
177382
  init_table();
@@ -177379,7 +177470,7 @@ async function rollbackStatus({
177379
177470
  }
177380
177471
  if (requestedAt < recentThreshold || Date.now() >= rollbackTimeout) {
177381
177472
  output2.log(
177382
- `The rollback exceeded its deadline - rerun ${import_chalk104.default.bold(
177473
+ `The rollback exceeded its deadline - rerun ${import_chalk103.default.bold(
177383
177474
  `${packageName} rollback ${toDeploymentId}`
177384
177475
  )} to try again`
177385
177476
  );
@@ -177447,26 +177538,26 @@ async function renderJobSucceeded2({
177447
177538
  let deploymentInfo = "";
177448
177539
  try {
177449
177540
  const deployment = await getDeployment(client2, contextName, toDeploymentId);
177450
- deploymentInfo = `${import_chalk104.default.bold(deployment.url)} (${toDeploymentId})`;
177541
+ deploymentInfo = `${import_chalk103.default.bold(deployment.url)} (${toDeploymentId})`;
177451
177542
  } catch (err) {
177452
177543
  output2.debug(
177453
177544
  `Failed to get deployment url for ${toDeploymentId}: ${err?.toString() || err}`
177454
177545
  );
177455
- deploymentInfo = import_chalk104.default.bold(toDeploymentId);
177546
+ deploymentInfo = import_chalk103.default.bold(toDeploymentId);
177456
177547
  }
177457
177548
  const duration = performingRollback ? elapsed(Date.now() - requestedAt) : "";
177458
177549
  output2.log(
177459
- `Success! ${import_chalk104.default.bold(
177550
+ `Success! ${import_chalk103.default.bold(
177460
177551
  project.name
177461
177552
  )} was rolled back to ${deploymentInfo} ${duration}`
177462
177553
  );
177463
177554
  return 0;
177464
177555
  }
177465
- var import_chalk104, import_ms26;
177556
+ var import_chalk103, import_ms26;
177466
177557
  var init_status2 = __esm({
177467
177558
  "src/commands/rollback/status.ts"() {
177468
177559
  "use strict";
177469
- import_chalk104 = __toESM3(require_source());
177560
+ import_chalk103 = __toESM3(require_source());
177470
177561
  init_elapsed();
177471
177562
  init_format_date();
177472
177563
  init_get_deployment();
@@ -177499,7 +177590,7 @@ async function requestRollback({
177499
177590
  });
177500
177591
  if (timeout !== void 0 && (0, import_ms27.default)(timeout) === 0) {
177501
177592
  output2.log(
177502
- `Successfully requested rollback of ${import_chalk105.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
177593
+ `Successfully requested rollback of ${import_chalk104.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
177503
177594
  );
177504
177595
  output2.log(`To check rollback status, run ${getCommandName("rollback")}.`);
177505
177596
  return 0;
@@ -177512,11 +177603,11 @@ async function requestRollback({
177512
177603
  timeout
177513
177604
  });
177514
177605
  }
177515
- var import_chalk105, import_ms27;
177606
+ var import_chalk104, import_ms27;
177516
177607
  var init_request_rollback = __esm({
177517
177608
  "src/commands/rollback/request-rollback.ts"() {
177518
177609
  "use strict";
177519
- import_chalk105 = __toESM3(require_source());
177610
+ import_chalk104 = __toESM3(require_source());
177520
177611
  init_pkg_name();
177521
177612
  init_get_project_by_deployment();
177522
177613
  import_ms27 = __toESM3(require_ms2());
@@ -177902,7 +177993,7 @@ async function run({ output: output2, contextName, currentTeam, client: client2
177902
177993
  if (args2.length > 1) {
177903
177994
  console.error(
177904
177995
  error2(
177905
- `Invalid number of arguments. Usage: ${import_chalk106.default.cyan(
177996
+ `Invalid number of arguments. Usage: ${import_chalk105.default.cyan(
177906
177997
  `${getCommandName("secret ls")}`
177907
177998
  )}`
177908
177999
  )
@@ -177915,20 +178006,20 @@ async function run({ output: output2, contextName, currentTeam, client: client2
177915
178006
  );
177916
178007
  const elapsed2 = (0, import_ms29.default)(Date.now() - start);
177917
178008
  output2.print(
177918
- `${list6.length > 0 ? "Secrets" : "No secrets"} found under ${import_chalk106.default.bold(
178009
+ `${list6.length > 0 ? "Secrets" : "No secrets"} found under ${import_chalk105.default.bold(
177919
178010
  contextName
177920
- )} ${import_chalk106.default.gray(`[${elapsed2}]`)}
178011
+ )} ${import_chalk105.default.gray(`[${elapsed2}]`)}
177921
178012
  `
177922
178013
  );
177923
178014
  if (list6.length > 0) {
177924
178015
  const cur = Date.now();
177925
- const header = [["", "name", "created"].map((s) => import_chalk106.default.dim(s))];
178016
+ const header = [["", "name", "created"].map((s) => import_chalk105.default.dim(s))];
177926
178017
  const out = table(
177927
178018
  header.concat(
177928
178019
  list6.map((secret) => [
177929
178020
  "",
177930
- import_chalk106.default.bold(secret.name),
177931
- import_chalk106.default.gray(`${(0, import_ms29.default)(cur - new Date(secret.created))} ago`)
178021
+ import_chalk105.default.bold(secret.name),
178022
+ import_chalk105.default.gray(`${(0, import_ms29.default)(cur - new Date(secret.created))} ago`)
177932
178023
  ])
177933
178024
  ),
177934
178025
  { hsep: 2 }
@@ -177956,7 +178047,7 @@ ${out}
177956
178047
  if (args2.length !== 1) {
177957
178048
  console.error(
177958
178049
  error2(
177959
- `Invalid number of arguments. Usage: ${import_chalk106.default.cyan(
178050
+ `Invalid number of arguments. Usage: ${import_chalk105.default.cyan(
177960
178051
  `${getCommandName("secret rm <name>")}`
177961
178052
  )}`
177962
178053
  )
@@ -177974,7 +178065,7 @@ ${out}
177974
178065
  } else {
177975
178066
  console.error(
177976
178067
  error2(
177977
- `No secret found by name "${args2[0]}" under ${import_chalk106.default.bold(
178068
+ `No secret found by name "${args2[0]}" under ${import_chalk105.default.bold(
177978
178069
  contextName
177979
178070
  )}`
177980
178071
  )
@@ -177984,9 +178075,9 @@ ${out}
177984
178075
  const secret = await secrets.rm(args2[0]);
177985
178076
  const elapsed2 = (0, import_ms29.default)(/* @__PURE__ */ new Date() - start);
177986
178077
  output2.success(
177987
- `Secret ${import_chalk106.default.bold(secret.name)} under ${import_chalk106.default.bold(
178078
+ `Secret ${import_chalk105.default.bold(secret.name)} under ${import_chalk105.default.bold(
177988
178079
  contextName
177989
- )} removed ${import_chalk106.default.gray(`[${elapsed2}]`)}`
178080
+ )} removed ${import_chalk105.default.gray(`[${elapsed2}]`)}`
177990
178081
  );
177991
178082
  return secrets.close();
177992
178083
  }
@@ -178000,7 +178091,7 @@ ${out}
178000
178091
  if (args2.length !== 2) {
178001
178092
  console.error(
178002
178093
  error2(
178003
- `Invalid number of arguments. Usage: ${import_chalk106.default.cyan(
178094
+ `Invalid number of arguments. Usage: ${import_chalk105.default.cyan(
178004
178095
  `${getCommandName("secret rename <old-name> <new-name>")}`
178005
178096
  )}`
178006
178097
  )
@@ -178010,9 +178101,9 @@ ${out}
178010
178101
  const secret = await secrets.rename(args2[0], args2[1]);
178011
178102
  const elapsed2 = (0, import_ms29.default)(/* @__PURE__ */ new Date() - start);
178012
178103
  output2.success(
178013
- `Secret ${import_chalk106.default.bold(secret.oldName)} renamed to ${import_chalk106.default.bold(
178104
+ `Secret ${import_chalk105.default.bold(secret.oldName)} renamed to ${import_chalk105.default.bold(
178014
178105
  args2[1]
178015
- )} under ${import_chalk106.default.bold(contextName)} ${import_chalk106.default.gray(`[${elapsed2}]`)}`
178106
+ )} under ${import_chalk105.default.bold(contextName)} ${import_chalk105.default.gray(`[${elapsed2}]`)}`
178016
178107
  );
178017
178108
  return secrets.close();
178018
178109
  }
@@ -178026,13 +178117,13 @@ ${out}
178026
178117
  if (args2.length !== 2) {
178027
178118
  console.error(
178028
178119
  error2(
178029
- `Invalid number of arguments. Usage: ${import_chalk106.default.cyan(
178120
+ `Invalid number of arguments. Usage: ${import_chalk105.default.cyan(
178030
178121
  `${getCommandName("secret add <name> <value>")}`
178031
178122
  )}`
178032
178123
  )
178033
178124
  );
178034
178125
  if (args2.length > 2) {
178035
- const example = import_chalk106.default.cyan(
178126
+ const example = import_chalk105.default.cyan(
178036
178127
  `$ ${getCommandName('secret add -- "${args[0]}"')}`
178037
178128
  );
178038
178129
  output2.log(
@@ -178044,7 +178135,7 @@ ${out}
178044
178135
  }
178045
178136
  const [name, value] = args2;
178046
178137
  if (typeof value === "boolean") {
178047
- const example = import_chalk106.default.cyan(
178138
+ const example = import_chalk105.default.cyan(
178048
178139
  `$ ${getCommandName('secret add -- "${name}"')}`
178049
178140
  );
178050
178141
  output2.log(
@@ -178059,9 +178150,9 @@ ${out}
178059
178150
  output2.warn(`Your secret name was converted to lower-case`);
178060
178151
  }
178061
178152
  output2.success(
178062
- `Secret ${import_chalk106.default.bold(name.toLowerCase())} added under ${import_chalk106.default.bold(
178153
+ `Secret ${import_chalk105.default.bold(name.toLowerCase())} added under ${import_chalk105.default.bold(
178063
178154
  contextName
178064
- )} ${import_chalk106.default.gray(`[${elapsed2}]`)}`
178155
+ )} ${import_chalk105.default.gray(`[${elapsed2}]`)}`
178065
178156
  );
178066
178157
  return secrets.close();
178067
178158
  }
@@ -178072,27 +178163,27 @@ ${out}
178072
178163
  return 2;
178073
178164
  }
178074
178165
  async function readConfirmation5(client2, output2, secret, contextName) {
178075
- const time = import_chalk106.default.gray(`${(0, import_ms29.default)(/* @__PURE__ */ new Date() - new Date(secret.created))} ago`);
178076
- const tbl = table([[import_chalk106.default.bold(secret.name), time]], {
178166
+ const time = import_chalk105.default.gray(`${(0, import_ms29.default)(/* @__PURE__ */ new Date() - new Date(secret.created))} ago`);
178167
+ const tbl = table([[import_chalk105.default.bold(secret.name), time]], {
178077
178168
  align: ["r", "l"],
178078
178169
  hsep: 6
178079
178170
  });
178080
178171
  output2.print(
178081
- `The following secret will be removed permanently from ${import_chalk106.default.bold(
178172
+ `The following secret will be removed permanently from ${import_chalk105.default.bold(
178082
178173
  contextName
178083
178174
  )}
178084
178175
  `
178085
178176
  );
178086
178177
  output2.print(` ${tbl}
178087
178178
  `);
178088
- return confirm(client2, `${import_chalk106.default.bold.red("Are you sure?")}`, false);
178179
+ return confirm(client2, `${import_chalk105.default.bold.red("Are you sure?")}`, false);
178089
178180
  }
178090
- var import_error_utils31, import_chalk106, import_ms29, argv, subcommand, nextTimestamp, main11, secrets_default;
178181
+ var import_error_utils31, import_chalk105, import_ms29, argv, subcommand, nextTimestamp, main11, secrets_default;
178091
178182
  var init_secrets2 = __esm({
178092
178183
  "src/commands/secrets/index.js"() {
178093
178184
  "use strict";
178094
178185
  import_error_utils31 = __toESM3(require_dist2());
178095
- import_chalk106 = __toESM3(require_source());
178186
+ import_chalk105 = __toESM3(require_source());
178096
178187
  init_table();
178097
178188
  import_ms29 = __toESM3(require_ms2());
178098
178189
  init_error2();
@@ -178155,7 +178246,7 @@ async function list4(client2, argv2, args2, link4) {
178155
178246
  const { output: output2 } = client2;
178156
178247
  if (args2.length !== 0) {
178157
178248
  output2.error(
178158
- `Invalid number of arguments. Usage: ${import_chalk107.default.cyan(
178249
+ `Invalid number of arguments. Usage: ${import_chalk106.default.cyan(
178159
178250
  `${getCommandName("target ls")}`
178160
178251
  )}`
178161
178252
  );
@@ -178164,10 +178255,10 @@ async function list4(client2, argv2, args2, link4) {
178164
178255
  const start = Date.now();
178165
178256
  const projectUrl = `https://vercel.com/${link4.org.slug}/${link4.project.name}`;
178166
178257
  const projectSlugLink = output2.link(
178167
- import_chalk107.default.bold(`${link4.org.slug}/${link4.project.name}`),
178258
+ import_chalk106.default.bold(`${link4.org.slug}/${link4.project.name}`),
178168
178259
  projectUrl,
178169
178260
  {
178170
- fallback: () => import_chalk107.default.bold(`${link4.org.slug}/${link4.project.name}`),
178261
+ fallback: () => import_chalk106.default.bold(`${link4.org.slug}/${link4.project.name}`),
178171
178262
  color: false
178172
178263
  }
178173
178264
  );
@@ -178183,15 +178274,15 @@ async function list4(client2, argv2, args2, link4) {
178183
178274
  const elapsed2 = (0, import_ms30.default)(Date.now() - start);
178184
178275
  result = withDefaultEnvironmentsIncluded(result);
178185
178276
  output2.log(
178186
- `${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${import_chalk107.default.gray(`[${elapsed2}]`)}`
178277
+ `${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${import_chalk106.default.gray(`[${elapsed2}]`)}`
178187
178278
  );
178188
178279
  const tablePrint = table(
178189
178280
  [
178190
178281
  ["Target Name", "Target Slug", "Target ID", "Type", "Updated"].map(
178191
- (header) => import_chalk107.default.bold(import_chalk107.default.cyan(header))
178282
+ (header) => import_chalk106.default.bold(import_chalk106.default.cyan(header))
178192
178283
  ),
178193
178284
  ...result.map((target) => {
178194
- const boldName = import_chalk107.default.bold(target.name);
178285
+ const boldName = import_chalk106.default.bold(target.name);
178195
178286
  const type = target.type === "production" ? "Production" : target.type === "development" ? "Development" : "Preview";
178196
178287
  return [
178197
178288
  [
@@ -178203,7 +178294,7 @@ async function list4(client2, argv2, args2, link4) {
178203
178294
  target.slug,
178204
178295
  target.id,
178205
178296
  type,
178206
- import_chalk107.default.gray(
178297
+ import_chalk106.default.gray(
178207
178298
  target.updatedAt > 0 ? (0, import_ms30.default)(Date.now() - target.updatedAt) : "-"
178208
178299
  )
178209
178300
  ]
@@ -178253,11 +178344,11 @@ function withDefaultEnvironmentsIncluded(environments) {
178253
178344
  }
178254
178345
  ];
178255
178346
  }
178256
- var import_chalk107, import_ms30;
178347
+ var import_chalk106, import_ms30;
178257
178348
  var init_list4 = __esm({
178258
178349
  "src/commands/target/list.ts"() {
178259
178350
  "use strict";
178260
- import_chalk107 = __toESM3(require_source());
178351
+ import_chalk106 = __toESM3(require_source());
178261
178352
  import_ms30 = __toESM3(require_ms2());
178262
178353
  init_table();
178263
178354
  init_pkg_name();
@@ -178271,7 +178362,7 @@ var init_command25 = __esm({
178271
178362
  "use strict";
178272
178363
  init_pkg_name();
178273
178364
  targetCommand = {
178274
- name: "targets",
178365
+ name: "target",
178275
178366
  description: `Manage your Vercel Project's "targets" (custom environments).`,
178276
178367
  arguments: [
178277
178368
  {
@@ -178320,18 +178411,14 @@ async function main12(client2) {
178320
178411
  subcommand2 = argv2._[0] || "list";
178321
178412
  const args2 = argv2._.slice(1);
178322
178413
  const { cwd, output: output2 } = client2;
178323
- const link4 = await getLinkedProject(client2, cwd);
178324
- if (link4.status === "error") {
178325
- return link4.exitCode;
178326
- }
178327
- if (link4.status === "not_linked") {
178328
- output2.error("Project not linked");
178329
- return 1;
178414
+ const linkedProject = await ensureLink(targetCommand.name, client2, cwd);
178415
+ if (typeof linkedProject === "number") {
178416
+ return linkedProject;
178330
178417
  }
178331
178418
  switch (subcommand2) {
178332
178419
  case "ls":
178333
178420
  case "list":
178334
- return await list4(client2, argv2, args2, link4);
178421
+ return await list4(client2, argv2, args2, linkedProject);
178335
178422
  default:
178336
178423
  output2.error(getInvalidSubcommand(COMMAND_CONFIG10));
178337
178424
  client2.output.print(
@@ -178349,7 +178436,7 @@ var init_target = __esm({
178349
178436
  init_help();
178350
178437
  init_list4();
178351
178438
  init_command25();
178352
- init_link2();
178439
+ init_ensure_link();
178353
178440
  COMMAND_CONFIG10 = {
178354
178441
  ls: ["ls", "list"]
178355
178442
  };
@@ -178412,7 +178499,7 @@ async function list5(client2) {
178412
178499
  client2.stdout.write("\n");
178413
178500
  const teamTable = table(
178414
178501
  [
178415
- ["id", "email / name"].map((str) => (0, import_chalk108.gray)(str)),
178502
+ ["id", "email / name"].map((str) => (0, import_chalk107.gray)(str)),
178416
178503
  ...teamList.map((team) => [team.value, team.name])
178417
178504
  ],
178418
178505
  { hsep: 5 }
@@ -178429,13 +178516,13 @@ async function list5(client2) {
178429
178516
  }
178430
178517
  return 0;
178431
178518
  }
178432
- var import_chalk108;
178519
+ var import_chalk107;
178433
178520
  var init_list5 = __esm({
178434
178521
  "src/commands/teams/list.ts"() {
178435
178522
  "use strict";
178436
178523
  init_chars();
178437
178524
  init_table();
178438
- import_chalk108 = __toESM3(require_source());
178525
+ import_chalk107 = __toESM3(require_source());
178439
178526
  init_get_user();
178440
178527
  init_get_teams();
178441
178528
  init_pkg_name();
@@ -178492,7 +178579,7 @@ Please select a team scope using ${getCommandName(
178492
178579
  return 1;
178493
178580
  }
178494
178581
  output2.log(
178495
- introMsg || `Inviting team members to ${import_chalk109.default.bold(currentTeam.name)}`
178582
+ introMsg || `Inviting team members to ${import_chalk108.default.bold(currentTeam.name)}`
178496
178583
  );
178497
178584
  if (emails.length > 0) {
178498
178585
  for (const email3 of emails) {
@@ -178511,10 +178598,10 @@ Please select a team scope using ${getCommandName(
178511
178598
  throw err;
178512
178599
  }
178513
178600
  output2.log(
178514
- `${import_chalk109.default.cyan(chars_default.tick)} ${email3}${userInfo ? ` (${userInfo})` : ""} ${elapsed2()}`
178601
+ `${import_chalk108.default.cyan(chars_default.tick)} ${email3}${userInfo ? ` (${userInfo})` : ""} ${elapsed2()}`
178515
178602
  );
178516
178603
  } else {
178517
- output2.log(`${import_chalk109.default.red(`\u2716 ${email3}`)} ${import_chalk109.default.gray("[invalid]")}`);
178604
+ output2.log(`${import_chalk108.default.red(`\u2716 ${email3}`)} ${import_chalk108.default.gray("[invalid]")}`);
178518
178605
  }
178519
178606
  }
178520
178607
  return 0;
@@ -178548,15 +178635,15 @@ Please select a team scope using ${getCommandName(
178548
178635
  );
178549
178636
  email2 = `${email2}${username ? ` (${username})` : ""} ${elapsed2()}`;
178550
178637
  emails.push(email2);
178551
- output2.log(`${import_chalk109.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email2}`);
178638
+ output2.log(`${import_chalk108.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email2}`);
178552
178639
  if (hasError) {
178553
178640
  hasError = false;
178554
178641
  process.stderr.write(eraseLines(emails.length + 2));
178555
178642
  output2.log(
178556
- introMsg || `Inviting team members to ${import_chalk109.default.bold(currentTeam.name)}`
178643
+ introMsg || `Inviting team members to ${import_chalk108.default.bold(currentTeam.name)}`
178557
178644
  );
178558
178645
  for (const email3 of emails) {
178559
- output2.log(`${import_chalk109.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
178646
+ output2.log(`${import_chalk108.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
178560
178647
  }
178561
178648
  }
178562
178649
  } catch (err) {
@@ -178565,7 +178652,7 @@ Please select a team scope using ${getCommandName(
178565
178652
  output2.error((0, import_error_utils32.errorToString)(err));
178566
178653
  hasError = true;
178567
178654
  for (const email3 of emails) {
178568
- output2.log(`${import_chalk109.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email3}`);
178655
+ output2.log(`${import_chalk108.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email3}`);
178569
178656
  }
178570
178657
  }
178571
178658
  }
@@ -178578,16 +178665,16 @@ Please select a team scope using ${getCommandName(
178578
178665
  } else {
178579
178666
  output2.success(`Invited ${n} teammate${n > 1 ? "s" : ""}`);
178580
178667
  for (const email3 of emails) {
178581
- output2.log(`${import_chalk109.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
178668
+ output2.log(`${import_chalk108.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
178582
178669
  }
178583
178670
  }
178584
178671
  return 0;
178585
178672
  }
178586
- var import_chalk109, import_error_utils32, validateEmail2, domains, emailAutoComplete;
178673
+ var import_chalk108, import_error_utils32, validateEmail2, domains, emailAutoComplete;
178587
178674
  var init_invite = __esm({
178588
178675
  "src/commands/teams/invite.ts"() {
178589
178676
  "use strict";
178590
- import_chalk109 = __toESM3(require_source());
178677
+ import_chalk108 = __toESM3(require_source());
178591
178678
  init_cmd();
178592
178679
  init_stamp();
178593
178680
  init_param();
@@ -178676,7 +178763,7 @@ async function add7(client2) {
178676
178763
  let elapsed2;
178677
178764
  const { output: output2 } = client2;
178678
178765
  output2.log(
178679
- `Pick a team identifier for its URL (e.g.: ${import_chalk110.default.cyan(
178766
+ `Pick a team identifier for its URL (e.g.: ${import_chalk109.default.cyan(
178680
178767
  "`vercel.com/acme`"
178681
178768
  )})`
178682
178769
  );
@@ -178709,7 +178796,7 @@ async function add7(client2) {
178709
178796
  output2.stopSpinner();
178710
178797
  process.stdout.write(eraseLines(2));
178711
178798
  output2.success(`Team created ${elapsed2()}`);
178712
- output2.log(`${import_chalk110.default.cyan(`${chars_default.tick} `) + teamUrlPrefix + slug}
178799
+ output2.log(`${import_chalk109.default.cyan(`${chars_default.tick} `) + teamUrlPrefix + slug}
178713
178800
  `);
178714
178801
  output2.log("Pick a display name for your team");
178715
178802
  let name;
@@ -178732,7 +178819,7 @@ async function add7(client2) {
178732
178819
  process.stdout.write(eraseLines(2));
178733
178820
  team = Object.assign(team, res);
178734
178821
  output2.success(`Team name saved ${elapsed2()}`);
178735
- output2.log(`${import_chalk110.default.cyan(`${chars_default.tick} `) + teamNamePrefix + team.name}
178822
+ output2.log(`${import_chalk109.default.cyan(`${chars_default.tick} `) + teamNamePrefix + team.name}
178736
178823
  `);
178737
178824
  output2.spinner("Saving");
178738
178825
  client2.config.currentTeam = team.id;
@@ -178746,11 +178833,11 @@ async function add7(client2) {
178746
178833
  });
178747
178834
  return 0;
178748
178835
  }
178749
- var import_chalk110, import_error_utils33, validateSlugKeypress, validateNameKeypress, teamUrlPrefix, teamNamePrefix;
178836
+ var import_chalk109, import_error_utils33, validateSlugKeypress, validateNameKeypress, teamUrlPrefix, teamNamePrefix;
178750
178837
  var init_add6 = __esm({
178751
178838
  "src/commands/teams/add.ts"() {
178752
178839
  "use strict";
178753
- import_chalk110 = __toESM3(require_source());
178840
+ import_chalk109 = __toESM3(require_source());
178754
178841
  init_stamp();
178755
178842
  init_erase_lines();
178756
178843
  init_chars();
@@ -178771,7 +178858,7 @@ var init_add6 = __esm({
178771
178858
  // should be fixed on utils/input/text.js
178772
178859
  /^[ a-zA-Z0-9_-]+$/.test(value + data)
178773
178860
  );
178774
- teamUrlPrefix = "Team URL".padEnd(14) + import_chalk110.default.gray("vercel.com/");
178861
+ teamUrlPrefix = "Team URL".padEnd(14) + import_chalk109.default.gray("vercel.com/");
178775
178862
  teamNamePrefix = "Team Name".padEnd(14);
178776
178863
  }
178777
178864
  });
@@ -178794,7 +178881,7 @@ async function main13(client2, desiredSlug) {
178794
178881
  let title7 = `${team.name} (${team.slug})`;
178795
178882
  const selected = team.id === currentTeam?.id;
178796
178883
  if (selected) {
178797
- title7 += ` ${import_chalk111.default.bold("(current)")}`;
178884
+ title7 += ` ${import_chalk110.default.bold("(current)")}`;
178798
178885
  }
178799
178886
  if (team.limited) {
178800
178887
  title7 += ` ${emoji("locked")}`;
@@ -178806,7 +178893,7 @@ async function main13(client2, desiredSlug) {
178806
178893
  selected
178807
178894
  };
178808
178895
  });
178809
- let suffix = personalScopeSelected ? ` ${import_chalk111.default.bold("(current)")}` : "";
178896
+ let suffix = personalScopeSelected ? ` ${import_chalk110.default.bold("(current)")}` : "";
178810
178897
  if (user.limited) {
178811
178898
  suffix += ` ${emoji("locked")}`;
178812
178899
  }
@@ -178852,14 +178939,14 @@ async function main13(client2, desiredSlug) {
178852
178939
  }
178853
178940
  updateCurrentTeam(config3);
178854
178941
  output2.success(
178855
- `Your account (${import_chalk111.default.bold(user.username)}) is now active!`
178942
+ `Your account (${import_chalk110.default.bold(user.username)}) is now active!`
178856
178943
  );
178857
178944
  return 0;
178858
178945
  }
178859
178946
  const newTeam = teams.find((team) => team.slug === desiredSlug);
178860
178947
  if (!newTeam) {
178861
178948
  output2.error(
178862
- `You do not have permission to access scope ${import_chalk111.default.bold(desiredSlug)}.`
178949
+ `You do not have permission to access scope ${import_chalk110.default.bold(desiredSlug)}.`
178863
178950
  );
178864
178951
  return 1;
178865
178952
  }
@@ -178877,15 +178964,15 @@ async function main13(client2, desiredSlug) {
178877
178964
  }
178878
178965
  updateCurrentTeam(config3, newTeam);
178879
178966
  output2.success(
178880
- `The team ${import_chalk111.default.bold(newTeam.name)} (${newTeam.slug}) is now active!`
178967
+ `The team ${import_chalk110.default.bold(newTeam.name)} (${newTeam.slug}) is now active!`
178881
178968
  );
178882
178969
  return 0;
178883
178970
  }
178884
- var import_chalk111, updateCurrentTeam;
178971
+ var import_chalk110, updateCurrentTeam;
178885
178972
  var init_switch = __esm({
178886
178973
  "src/commands/teams/switch.ts"() {
178887
178974
  "use strict";
178888
- import_chalk111 = __toESM3(require_source());
178975
+ import_chalk110 = __toESM3(require_source());
178889
178976
  init_emoji();
178890
178977
  init_get_user();
178891
178978
  init_get_teams();
@@ -179111,7 +179198,7 @@ var import_error_utils34 = __toESM3(require_dist2());
179111
179198
  var import_path43 = require("path");
179112
179199
  var import_fs9 = require("fs");
179113
179200
  var import_fs_extra23 = __toESM3(require_lib());
179114
- var import_chalk112 = __toESM3(require_source());
179201
+ var import_chalk111 = __toESM3(require_source());
179115
179202
  var import_epipebomb = __toESM3(require_epipebomb());
179116
179203
 
179117
179204
  // src/util/get-latest-version/index.ts
@@ -179912,13 +179999,13 @@ var main14 = async () => {
179912
179999
  const betaCommands = [];
179913
180000
  if (betaCommands.includes(targetOrSubcommand)) {
179914
180001
  output.print(
179915
- `${import_chalk112.default.grey(
180002
+ `${import_chalk111.default.grey(
179916
180003
  `${getTitleName()} CLI ${pkg_default.version} ${targetOrSubcommand} (beta) \u2014 https://vercel.com/feedback`
179917
180004
  )}
179918
180005
  `
179919
180006
  );
179920
180007
  } else {
179921
- output.print(`${import_chalk112.default.grey(`${getTitleName()} CLI ${pkg_default.version}`)}
180008
+ output.print(`${import_chalk111.default.grey(`${getTitleName()} CLI ${pkg_default.version}`)}
179922
180009
  `);
179923
180010
  }
179924
180011
  if (!targetOrSubcommand && argv2["--version"]) {
@@ -180386,20 +180473,20 @@ main14().then(async (exitCode2) => {
180386
180473
  });
180387
180474
  if (latest) {
180388
180475
  const changelog = "https://github.com/vercel/vercel/releases";
180389
- const errorMsg = exitCode2 && exitCode2 !== 2 ? import_chalk112.default.magenta(
180476
+ const errorMsg = exitCode2 && exitCode2 !== 2 ? import_chalk111.default.magenta(
180390
180477
  `
180391
180478
 
180392
- The latest update ${import_chalk112.default.italic(
180479
+ The latest update ${import_chalk111.default.italic(
180393
180480
  "may"
180394
180481
  )} fix any errors that occurred.`
180395
180482
  ) : "";
180396
180483
  output.print(
180397
180484
  box(
180398
- `Update available! ${import_chalk112.default.gray(`v${pkg_default.version}`)} \u226B ${import_chalk112.default.green(
180485
+ `Update available! ${import_chalk111.default.gray(`v${pkg_default.version}`)} \u226B ${import_chalk111.default.green(
180399
180486
  `v${latest}`
180400
180487
  )}
180401
180488
  Changelog: ${output.link(changelog, changelog, { fallback: false })}
180402
- Run ${import_chalk112.default.cyan(cmd(await getUpdateCommand()))} to update.${errorMsg}`
180489
+ Run ${import_chalk111.default.cyan(cmd(await getUpdateCommand()))} to update.${errorMsg}`
180403
180490
  )
180404
180491
  );
180405
180492
  output.print("\n\n");