vercel 37.7.1 → 37.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +740 -448
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -4073,14 +4073,14 @@ var require_templates = __commonJS2({
4073
4073
  }
4074
4074
  return results;
4075
4075
  }
4076
- function buildStyle(chalk111, styles) {
4076
+ function buildStyle(chalk112, 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 = chalk111;
4083
+ let current = chalk112;
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 = (chalk111, temporary) => {
4095
+ module2.exports = (chalk112, 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(chalk111, styles)(string));
4105
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk112, 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(chalk111, styles)(chunk.join("")));
4111
+ chunks.push(buildStyle(chalk112, 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 chalk112 = {};
4160
- applyOptions(chalk112, options);
4161
- chalk112.template = (...arguments_) => chalkTag(chalk112.template, ...arguments_);
4162
- Object.setPrototypeOf(chalk112, Chalk3.prototype);
4163
- Object.setPrototypeOf(chalk112.template, chalk112);
4164
- chalk112.template.constructor = () => {
4159
+ const chalk113 = {};
4160
+ applyOptions(chalk113, options);
4161
+ chalk113.template = (...arguments_) => chalkTag(chalk113.template, ...arguments_);
4162
+ Object.setPrototypeOf(chalk113, Chalk3.prototype);
4163
+ Object.setPrototypeOf(chalk113.template, chalk113);
4164
+ chalk113.template.constructor = () => {
4165
4165
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
4166
4166
  };
4167
- chalk112.template.Instance = ChalkClass;
4168
- return chalk112.template;
4167
+ chalk113.template.Instance = ChalkClass;
4168
+ return chalk113.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 = (chalk112, ...strings) => {
4279
+ var chalkTag = (chalk113, ...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(chalk112, parts.join(""));
4295
+ return template(chalk113, parts.join(""));
4296
4296
  };
4297
4297
  Object.defineProperties(Chalk3.prototype, styles);
4298
- var chalk111 = Chalk3();
4299
- chalk111.supportsColor = stdoutColor;
4300
- chalk111.stderr = Chalk3({ level: stderrColor ? stderrColor.level : 0 });
4301
- chalk111.stderr.supportsColor = stderrColor;
4302
- module2.exports = chalk111;
4298
+ var chalk112 = Chalk3();
4299
+ chalk112.supportsColor = stdoutColor;
4300
+ chalk112.stderr = Chalk3({ level: stderrColor ? stderrColor.level : 0 });
4301
+ chalk112.stderr.supportsColor = stderrColor;
4302
+ module2.exports = chalk112;
4303
4303
  }
4304
4304
  });
4305
4305
 
@@ -4755,14 +4755,14 @@ var require_semver = __commonJS2({
4755
4755
  return compare(b, a, loose);
4756
4756
  }
4757
4757
  exports2.sort = sort;
4758
- function sort(list6, loose) {
4759
- return list6.sort(function(a, b) {
4758
+ function sort(list7, loose) {
4759
+ return list7.sort(function(a, b) {
4760
4760
  return exports2.compare(a, b, loose);
4761
4761
  });
4762
4762
  }
4763
4763
  exports2.rsort = rsort;
4764
- function rsort(list6, loose) {
4765
- return list6.sort(function(a, b) {
4764
+ function rsort(list7, loose) {
4765
+ return list7.sort(function(a, b) {
4766
4766
  return exports2.rcompare(a, b, loose);
4767
4767
  });
4768
4768
  }
@@ -13478,14 +13478,14 @@ var require_templates2 = __commonJS2({
13478
13478
  }
13479
13479
  return results;
13480
13480
  }
13481
- function buildStyle(chalk111, styles) {
13481
+ function buildStyle(chalk112, 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 = chalk111;
13488
+ let current = chalk112;
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 = (chalk111, tmp) => {
13503
+ module2.exports = (chalk112, 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(chalk111, styles)(str));
13513
+ chunks.push(styles.length === 0 ? str : buildStyle(chalk112, 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(chalk111, styles)(chunk.join("")));
13519
+ chunks.push(buildStyle(chalk112, 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 chalk111 = {};
13557
- applyOptions(chalk111, options);
13558
- chalk111.template = function() {
13556
+ const chalk112 = {};
13557
+ applyOptions(chalk112, options);
13558
+ chalk112.template = function() {
13559
13559
  const args2 = [].slice.call(arguments);
13560
- return chalkTag.apply(null, [chalk111.template].concat(args2));
13560
+ return chalkTag.apply(null, [chalk112.template].concat(args2));
13561
13561
  };
13562
- Object.setPrototypeOf(chalk111, Chalk3.prototype);
13563
- Object.setPrototypeOf(chalk111.template, chalk111);
13564
- chalk111.template.constructor = Chalk3;
13565
- return chalk111.template;
13562
+ Object.setPrototypeOf(chalk112, Chalk3.prototype);
13563
+ Object.setPrototypeOf(chalk112.template, chalk112);
13564
+ chalk112.template.constructor = Chalk3;
13565
+ return chalk112.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(chalk111, strings) {
13684
+ function chalkTag(chalk112, 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(chalk111, parts.join(""));
13694
+ return template(chalk112, 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 chalk111 = require_chalk();
15491
+ var chalk112 = require_chalk();
15492
15492
  var isSupported = process.platform !== "win32" || process.env.CI || process.env.TERM === "xterm-256color";
15493
15493
  var main15 = {
15494
- info: chalk111.blue("\u2139"),
15495
- success: chalk111.green("\u2714"),
15496
- warning: chalk111.yellow("\u26A0"),
15497
- error: chalk111.red("\u2716")
15494
+ info: chalk112.blue("\u2139"),
15495
+ success: chalk112.green("\u2714"),
15496
+ warning: chalk112.yellow("\u26A0"),
15497
+ error: chalk112.red("\u2716")
15498
15498
  };
15499
15499
  var fallbacks = {
15500
- info: chalk111.blue("i"),
15501
- success: chalk111.green("\u221A"),
15502
- warning: chalk111.yellow("\u203C"),
15503
- error: chalk111.red("\xD7")
15500
+ info: chalk112.blue("i"),
15501
+ success: chalk112.green("\u221A"),
15502
+ warning: chalk112.yellow("\u203C"),
15503
+ error: chalk112.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 chalk111 = require_chalk();
15899
+ var chalk112 = 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 = chalk111[this.color](frame);
15988
+ frame = chalk112[this.color](frame);
15989
15989
  }
15990
15990
  this.frameIndex = ++this.frameIndex % frames.length;
15991
15991
  const fullPrefixText = typeof this.prefixText === "string" ? this.prefixText + " " : "";
@@ -17743,14 +17743,14 @@ var require_templates3 = __commonJS2({
17743
17743
  }
17744
17744
  return results;
17745
17745
  }
17746
- function buildStyle(chalk111, styles) {
17746
+ function buildStyle(chalk112, styles) {
17747
17747
  const enabled = {};
17748
17748
  for (const layer of styles) {
17749
17749
  for (const style of layer.styles) {
17750
17750
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
17751
17751
  }
17752
17752
  }
17753
- let current = chalk111;
17753
+ let current = chalk112;
17754
17754
  for (const [styleName, styles2] of Object.entries(enabled)) {
17755
17755
  if (!Array.isArray(styles2)) {
17756
17756
  continue;
@@ -17762,7 +17762,7 @@ var require_templates3 = __commonJS2({
17762
17762
  }
17763
17763
  return current;
17764
17764
  }
17765
- module2.exports = (chalk111, temporary) => {
17765
+ module2.exports = (chalk112, temporary) => {
17766
17766
  const styles = [];
17767
17767
  const chunks = [];
17768
17768
  let chunk = [];
@@ -17772,13 +17772,13 @@ var require_templates3 = __commonJS2({
17772
17772
  } else if (style) {
17773
17773
  const string = chunk.join("");
17774
17774
  chunk = [];
17775
- chunks.push(styles.length === 0 ? string : buildStyle(chalk111, styles)(string));
17775
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk112, styles)(string));
17776
17776
  styles.push({ inverse, styles: parseStyle(style) });
17777
17777
  } else if (close2) {
17778
17778
  if (styles.length === 0) {
17779
17779
  throw new Error("Found extraneous } in Chalk template literal");
17780
17780
  }
17781
- chunks.push(buildStyle(chalk111, styles)(chunk.join("")));
17781
+ chunks.push(buildStyle(chalk112, styles)(chunk.join("")));
17782
17782
  chunk = [];
17783
17783
  styles.pop();
17784
17784
  } else {
@@ -17826,16 +17826,16 @@ var require_source2 = __commonJS2({
17826
17826
  }
17827
17827
  };
17828
17828
  var chalkFactory = (options) => {
17829
- const chalk112 = {};
17830
- applyOptions(chalk112, options);
17831
- chalk112.template = (...arguments_) => chalkTag(chalk112.template, ...arguments_);
17832
- Object.setPrototypeOf(chalk112, Chalk3.prototype);
17833
- Object.setPrototypeOf(chalk112.template, chalk112);
17834
- chalk112.template.constructor = () => {
17829
+ const chalk113 = {};
17830
+ applyOptions(chalk113, options);
17831
+ chalk113.template = (...arguments_) => chalkTag(chalk113.template, ...arguments_);
17832
+ Object.setPrototypeOf(chalk113, Chalk3.prototype);
17833
+ Object.setPrototypeOf(chalk113.template, chalk113);
17834
+ chalk113.template.constructor = () => {
17835
17835
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
17836
17836
  };
17837
- chalk112.template.Instance = ChalkClass;
17838
- return chalk112.template;
17837
+ chalk113.template.Instance = ChalkClass;
17838
+ return chalk113.template;
17839
17839
  };
17840
17840
  function Chalk3(options) {
17841
17841
  return chalkFactory(options);
@@ -17946,7 +17946,7 @@ var require_source2 = __commonJS2({
17946
17946
  return openAll + string + closeAll;
17947
17947
  };
17948
17948
  var template;
17949
- var chalkTag = (chalk112, ...strings) => {
17949
+ var chalkTag = (chalk113, ...strings) => {
17950
17950
  const [firstString] = strings;
17951
17951
  if (!isArray(firstString) || !isArray(firstString.raw)) {
17952
17952
  return strings.join(" ");
@@ -17962,14 +17962,14 @@ var require_source2 = __commonJS2({
17962
17962
  if (template === void 0) {
17963
17963
  template = require_templates3();
17964
17964
  }
17965
- return template(chalk112, parts.join(""));
17965
+ return template(chalk113, parts.join(""));
17966
17966
  };
17967
17967
  Object.defineProperties(Chalk3.prototype, styles);
17968
- var chalk111 = Chalk3();
17969
- chalk111.supportsColor = stdoutColor;
17970
- chalk111.stderr = Chalk3({ level: stderrColor ? stderrColor.level : 0 });
17971
- chalk111.stderr.supportsColor = stderrColor;
17972
- module2.exports = chalk111;
17968
+ var chalk112 = Chalk3();
17969
+ chalk112.supportsColor = stdoutColor;
17970
+ chalk112.stderr = Chalk3({ level: stderrColor ? stderrColor.level : 0 });
17971
+ chalk112.stderr.supportsColor = stderrColor;
17972
+ module2.exports = chalk112;
17973
17973
  }
17974
17974
  });
17975
17975
 
@@ -20346,15 +20346,15 @@ var init_mjs = __esm({
20346
20346
  this.listeners[ev].push(fn2);
20347
20347
  }
20348
20348
  removeListener(ev, fn2) {
20349
- const list6 = this.listeners[ev];
20350
- const i = list6.indexOf(fn2);
20349
+ const list7 = this.listeners[ev];
20350
+ const i = list7.indexOf(fn2);
20351
20351
  if (i === -1) {
20352
20352
  return;
20353
20353
  }
20354
- if (i === 0 && list6.length === 1) {
20355
- list6.length = 0;
20354
+ if (i === 0 && list7.length === 1) {
20355
+ list7.length = 0;
20356
20356
  } else {
20357
- list6.splice(i, 1);
20357
+ list7.splice(i, 1);
20358
20358
  }
20359
20359
  }
20360
20360
  emit(ev, code2, signal) {
@@ -30857,7 +30857,7 @@ var require_package = __commonJS2({
30857
30857
  "../client/package.json"(exports2, module2) {
30858
30858
  module2.exports = {
30859
30859
  name: "@vercel/client",
30860
- version: "13.4.14",
30860
+ version: "13.4.15",
30861
30861
  main: "dist/index.js",
30862
30862
  typings: "dist/index.d.ts",
30863
30863
  homepage: "https://vercel.com",
@@ -30894,7 +30894,7 @@ var require_package = __commonJS2({
30894
30894
  typescript: "4.9.5"
30895
30895
  },
30896
30896
  dependencies: {
30897
- "@vercel/build-utils": "8.4.10",
30897
+ "@vercel/build-utils": "8.4.11",
30898
30898
  "@vercel/error-utils": "2.0.2",
30899
30899
  "@vercel/routing-utils": "3.1.0",
30900
30900
  "async-retry": "1.2.3",
@@ -31196,7 +31196,7 @@ var require_minimatch = __commonJS2({
31196
31196
  var reSpecials = charSet("().*{}+?[]^$\\!");
31197
31197
  var addPatternStartSet = charSet("[.(");
31198
31198
  var slashSplit = /\/+/;
31199
- minimatch5.filter = (pattern, options = {}) => (p, i, list6) => minimatch5(p, pattern, options);
31199
+ minimatch5.filter = (pattern, options = {}) => (p, i, list7) => minimatch5(p, pattern, options);
31200
31200
  var ext = (a, b = {}) => {
31201
31201
  const t = {};
31202
31202
  Object.keys(a).forEach((k) => t[k] = a[k]);
@@ -31219,7 +31219,7 @@ var require_minimatch = __commonJS2({
31219
31219
  m.defaults = (options) => orig.defaults(ext(def, options));
31220
31220
  m.makeRe = (pattern, options) => orig.makeRe(pattern, ext(def, options));
31221
31221
  m.braceExpand = (pattern, options) => orig.braceExpand(pattern, ext(def, options));
31222
- m.match = (list6, pattern, options) => orig.match(list6, pattern, ext(def, options));
31222
+ m.match = (list7, pattern, options) => orig.match(list7, pattern, ext(def, options));
31223
31223
  return m;
31224
31224
  };
31225
31225
  minimatch5.braceExpand = (pattern, options) => braceExpand(pattern, options);
@@ -31241,13 +31241,13 @@ var require_minimatch = __commonJS2({
31241
31241
  };
31242
31242
  var SUBPARSE = Symbol("subparse");
31243
31243
  minimatch5.makeRe = (pattern, options) => new Minimatch(pattern, options || {}).makeRe();
31244
- minimatch5.match = (list6, pattern, options = {}) => {
31244
+ minimatch5.match = (list7, pattern, options = {}) => {
31245
31245
  const mm = new Minimatch(pattern, options);
31246
- list6 = list6.filter((f) => mm.match(f));
31247
- if (mm.options.nonull && !list6.length) {
31248
- list6.push(pattern);
31246
+ list7 = list7.filter((f) => mm.match(f));
31247
+ if (mm.options.nonull && !list7.length) {
31248
+ list7.push(pattern);
31249
31249
  }
31250
- return list6;
31250
+ return list7;
31251
31251
  };
31252
31252
  var globUnescape = (s) => s.replace(/\\(.)/g, "$1");
31253
31253
  var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
@@ -31759,7 +31759,7 @@ var require_readdir_recursive = __commonJS2({
31759
31759
  }
31760
31760
  function readdir2(path11, ignores) {
31761
31761
  ignores = ignores.map(toMatcherFunction);
31762
- let list6 = [];
31762
+ let list7 = [];
31763
31763
  return new Promise(function(resolve12, reject) {
31764
31764
  import_fs10.default.readdir(path11, function(err, files) {
31765
31765
  if (err) {
@@ -31767,7 +31767,7 @@ var require_readdir_recursive = __commonJS2({
31767
31767
  }
31768
31768
  let pending = files.length;
31769
31769
  if (!pending) {
31770
- return resolve12(list6);
31770
+ return resolve12(list7);
31771
31771
  }
31772
31772
  files.forEach(function(file) {
31773
31773
  const filePath = import_path44.default.join(path11, file);
@@ -31779,26 +31779,26 @@ var require_readdir_recursive = __commonJS2({
31779
31779
  if (matches) {
31780
31780
  pending -= 1;
31781
31781
  if (!pending) {
31782
- return resolve12(list6);
31782
+ return resolve12(list7);
31783
31783
  }
31784
31784
  return null;
31785
31785
  }
31786
31786
  if (stats.isDirectory()) {
31787
31787
  readdir2(filePath, ignores).then(function(res) {
31788
31788
  if (res.length === 0) {
31789
- list6.push(filePath);
31789
+ list7.push(filePath);
31790
31790
  }
31791
- list6 = list6.concat(res);
31791
+ list7 = list7.concat(res);
31792
31792
  pending -= 1;
31793
31793
  if (!pending) {
31794
- return resolve12(list6);
31794
+ return resolve12(list7);
31795
31795
  }
31796
31796
  }).catch(reject);
31797
31797
  } else {
31798
- list6.push(filePath);
31798
+ list7.push(filePath);
31799
31799
  pending -= 1;
31800
31800
  if (!pending) {
31801
- return resolve12(list6);
31801
+ return resolve12(list7);
31802
31802
  }
31803
31803
  }
31804
31804
  });
@@ -34843,20 +34843,20 @@ var require_stream_readable = __commonJS2({
34843
34843
  }
34844
34844
  return ret;
34845
34845
  }
34846
- function fromListPartial(n, list6, hasStrings) {
34846
+ function fromListPartial(n, list7, hasStrings) {
34847
34847
  var ret;
34848
- if (n < list6.head.data.length) {
34849
- ret = list6.head.data.slice(0, n);
34850
- list6.head.data = list6.head.data.slice(n);
34851
- } else if (n === list6.head.data.length) {
34852
- ret = list6.shift();
34848
+ if (n < list7.head.data.length) {
34849
+ ret = list7.head.data.slice(0, n);
34850
+ list7.head.data = list7.head.data.slice(n);
34851
+ } else if (n === list7.head.data.length) {
34852
+ ret = list7.shift();
34853
34853
  } else {
34854
- ret = hasStrings ? copyFromBufferString(n, list6) : copyFromBuffer(n, list6);
34854
+ ret = hasStrings ? copyFromBufferString(n, list7) : copyFromBuffer(n, list7);
34855
34855
  }
34856
34856
  return ret;
34857
34857
  }
34858
- function copyFromBufferString(n, list6) {
34859
- var p = list6.head;
34858
+ function copyFromBufferString(n, list7) {
34859
+ var p = list7.head;
34860
34860
  var c = 1;
34861
34861
  var ret = p.data;
34862
34862
  n -= ret.length;
@@ -34872,23 +34872,23 @@ var require_stream_readable = __commonJS2({
34872
34872
  if (nb === str.length) {
34873
34873
  ++c;
34874
34874
  if (p.next)
34875
- list6.head = p.next;
34875
+ list7.head = p.next;
34876
34876
  else
34877
- list6.head = list6.tail = null;
34877
+ list7.head = list7.tail = null;
34878
34878
  } else {
34879
- list6.head = p;
34879
+ list7.head = p;
34880
34880
  p.data = str.slice(nb);
34881
34881
  }
34882
34882
  break;
34883
34883
  }
34884
34884
  ++c;
34885
34885
  }
34886
- list6.length -= c;
34886
+ list7.length -= c;
34887
34887
  return ret;
34888
34888
  }
34889
- function copyFromBuffer(n, list6) {
34889
+ function copyFromBuffer(n, list7) {
34890
34890
  var ret = Buffer2.allocUnsafe(n);
34891
- var p = list6.head;
34891
+ var p = list7.head;
34892
34892
  var c = 1;
34893
34893
  p.data.copy(ret);
34894
34894
  n -= p.data.length;
@@ -34901,18 +34901,18 @@ var require_stream_readable = __commonJS2({
34901
34901
  if (nb === buf.length) {
34902
34902
  ++c;
34903
34903
  if (p.next)
34904
- list6.head = p.next;
34904
+ list7.head = p.next;
34905
34905
  else
34906
- list6.head = list6.tail = null;
34906
+ list7.head = list7.tail = null;
34907
34907
  } else {
34908
- list6.head = p;
34908
+ list7.head = p;
34909
34909
  p.data = buf.slice(nb);
34910
34910
  }
34911
34911
  break;
34912
34912
  }
34913
34913
  ++c;
34914
34914
  }
34915
- list6.length -= c;
34915
+ list7.length -= c;
34916
34916
  return ret;
34917
34917
  }
34918
34918
  function endReadable(stream) {
@@ -36789,8 +36789,8 @@ var require_tar_fs = __commonJS2({
36789
36789
  onnextentry();
36790
36790
  return pack;
36791
36791
  };
36792
- var head = function(list6) {
36793
- return list6.length ? list6[list6.length - 1] : null;
36792
+ var head = function(list7) {
36793
+ return list7.length ? list7[list7.length - 1] : null;
36794
36794
  };
36795
36795
  var processGetuid = function() {
36796
36796
  return process.getuid ? process.getuid() : -1;
@@ -47137,9 +47137,9 @@ var require_ftp = __commonJS2({
47137
47137
  }
47138
47138
  }
47139
47139
  if (!lastModified) {
47140
- const list6 = await client2.list((0, path_1.dirname)(filepath));
47140
+ const list7 = await client2.list((0, path_1.dirname)(filepath));
47141
47141
  const name = (0, path_1.basename)(filepath);
47142
- const entry = list6.find((e2) => e2.name === name);
47142
+ const entry = list7.find((e2) => e2.name === name);
47143
47143
  if (entry) {
47144
47144
  lastModified = entry.modifiedAt;
47145
47145
  }
@@ -55303,15 +55303,15 @@ var require_esprima = __commonJS2({
55303
55303
  this.context.isAssignmentTarget = false;
55304
55304
  this.context.isBindingElement = false;
55305
55305
  var isAsync = expr.async;
55306
- var list6 = this.reinterpretAsCoverFormalsList(expr);
55307
- if (list6) {
55306
+ var list7 = this.reinterpretAsCoverFormalsList(expr);
55307
+ if (list7) {
55308
55308
  if (this.hasLineTerminator) {
55309
55309
  this.tolerateUnexpectedToken(this.lookahead);
55310
55310
  }
55311
55311
  this.context.firstCoverInitializedNameError = null;
55312
55312
  var previousStrict = this.context.strict;
55313
55313
  var previousAllowStrictDirective = this.context.allowStrictDirective;
55314
- this.context.allowStrictDirective = list6.simple;
55314
+ this.context.allowStrictDirective = list7.simple;
55315
55315
  var previousAllowYield = this.context.allowYield;
55316
55316
  var previousAwait = this.context.await;
55317
55317
  this.context.allowYield = true;
@@ -55328,13 +55328,13 @@ var require_esprima = __commonJS2({
55328
55328
  body = this.isolateCoverGrammar(this.parseAssignmentExpression);
55329
55329
  }
55330
55330
  var expression = body.type !== syntax_1.Syntax.BlockStatement;
55331
- if (this.context.strict && list6.firstRestricted) {
55332
- this.throwUnexpectedToken(list6.firstRestricted, list6.message);
55331
+ if (this.context.strict && list7.firstRestricted) {
55332
+ this.throwUnexpectedToken(list7.firstRestricted, list7.message);
55333
55333
  }
55334
- if (this.context.strict && list6.stricted) {
55335
- this.tolerateUnexpectedToken(list6.stricted, list6.message);
55334
+ if (this.context.strict && list7.stricted) {
55335
+ this.tolerateUnexpectedToken(list7.stricted, list7.message);
55336
55336
  }
55337
- expr = isAsync ? this.finalize(node, new Node.AsyncArrowFunctionExpression(list6.params, body, expression)) : this.finalize(node, new Node.ArrowFunctionExpression(list6.params, body, expression));
55337
+ expr = isAsync ? this.finalize(node, new Node.AsyncArrowFunctionExpression(list7.params, body, expression)) : this.finalize(node, new Node.ArrowFunctionExpression(list7.params, body, expression));
55338
55338
  this.context.strict = previousStrict;
55339
55339
  this.context.allowStrictDirective = previousAllowStrictDirective;
55340
55340
  this.context.allowYield = previousAllowYield;
@@ -55465,12 +55465,12 @@ var require_esprima = __commonJS2({
55465
55465
  return this.finalize(node, new Node.VariableDeclarator(id, init3));
55466
55466
  };
55467
55467
  Parser2.prototype.parseBindingList = function(kind, options) {
55468
- var list6 = [this.parseLexicalBinding(kind, options)];
55468
+ var list7 = [this.parseLexicalBinding(kind, options)];
55469
55469
  while (this.match(",")) {
55470
55470
  this.nextToken();
55471
- list6.push(this.parseLexicalBinding(kind, options));
55471
+ list7.push(this.parseLexicalBinding(kind, options));
55472
55472
  }
55473
- return list6;
55473
+ return list7;
55474
55474
  };
55475
55475
  Parser2.prototype.isLexicalDeclaration = function() {
55476
55476
  var state = this.scanner.saveState();
@@ -55632,13 +55632,13 @@ var require_esprima = __commonJS2({
55632
55632
  };
55633
55633
  Parser2.prototype.parseVariableDeclarationList = function(options) {
55634
55634
  var opt = { inFor: options.inFor };
55635
- var list6 = [];
55636
- list6.push(this.parseVariableDeclaration(opt));
55635
+ var list7 = [];
55636
+ list7.push(this.parseVariableDeclaration(opt));
55637
55637
  while (this.match(",")) {
55638
55638
  this.nextToken();
55639
- list6.push(this.parseVariableDeclaration(opt));
55639
+ list7.push(this.parseVariableDeclaration(opt));
55640
55640
  }
55641
- return list6;
55641
+ return list7;
55642
55642
  };
55643
55643
  Parser2.prototype.parseVariableStatement = function() {
55644
55644
  var node = this.createNode();
@@ -59712,28 +59712,28 @@ var require_types2 = __commonJS2({
59712
59712
  };
59713
59713
  builders[wrapperName] = builder;
59714
59714
  }
59715
- function populateSupertypeList(typeName, list6) {
59716
- list6.length = 0;
59717
- list6.push(typeName);
59715
+ function populateSupertypeList(typeName, list7) {
59716
+ list7.length = 0;
59717
+ list7.push(typeName);
59718
59718
  var lastSeen = /* @__PURE__ */ Object.create(null);
59719
- for (var pos = 0; pos < list6.length; ++pos) {
59720
- typeName = list6[pos];
59719
+ for (var pos = 0; pos < list7.length; ++pos) {
59720
+ typeName = list7[pos];
59721
59721
  var d = defCache[typeName];
59722
59722
  if (d.finalized !== true) {
59723
59723
  throw new Error("");
59724
59724
  }
59725
59725
  if (hasOwn.call(lastSeen, typeName)) {
59726
- delete list6[lastSeen[typeName]];
59726
+ delete list7[lastSeen[typeName]];
59727
59727
  }
59728
59728
  lastSeen[typeName] = pos;
59729
- list6.push.apply(list6, d.baseNames);
59729
+ list7.push.apply(list7, d.baseNames);
59730
59730
  }
59731
- for (var to = 0, from = to, len = list6.length; from < len; ++from) {
59732
- if (hasOwn.call(list6, from)) {
59733
- list6[to++] = list6[from];
59731
+ for (var to = 0, from = to, len = list7.length; from < len; ++from) {
59732
+ if (hasOwn.call(list7, from)) {
59733
+ list7[to++] = list7[from];
59734
59734
  }
59735
59735
  }
59736
- list6.length = to;
59736
+ list7.length = to;
59737
59737
  }
59738
59738
  function extend(into, from) {
59739
59739
  Object.keys(from).forEach(function(name) {
@@ -75745,7 +75745,7 @@ var require_minimatch2 = __commonJS2({
75745
75745
  minimatch5.filter = filter;
75746
75746
  function filter(pattern, options) {
75747
75747
  options = options || {};
75748
- return function(p, i, list6) {
75748
+ return function(p, i, list7) {
75749
75749
  return minimatch5(p, pattern, options);
75750
75750
  };
75751
75751
  }
@@ -75786,8 +75786,8 @@ var require_minimatch2 = __commonJS2({
75786
75786
  m.braceExpand = function braceExpand2(pattern, options) {
75787
75787
  return orig.braceExpand(pattern, ext(def, options));
75788
75788
  };
75789
- m.match = function(list6, pattern, options) {
75790
- return orig.match(list6, pattern, ext(def, options));
75789
+ m.match = function(list7, pattern, options) {
75790
+ return orig.match(list7, pattern, ext(def, options));
75791
75791
  };
75792
75792
  return m;
75793
75793
  };
@@ -76167,16 +76167,16 @@ var require_minimatch2 = __commonJS2({
76167
76167
  }
76168
76168
  return this.regexp;
76169
76169
  }
76170
- minimatch5.match = function(list6, pattern, options) {
76170
+ minimatch5.match = function(list7, pattern, options) {
76171
76171
  options = options || {};
76172
76172
  var mm = new Minimatch(pattern, options);
76173
- list6 = list6.filter(function(f) {
76173
+ list7 = list7.filter(function(f) {
76174
76174
  return mm.match(f);
76175
76175
  });
76176
- if (mm.options.nonull && !list6.length) {
76177
- list6.push(pattern);
76176
+ if (mm.options.nonull && !list7.length) {
76177
+ list7.push(pattern);
76178
76178
  }
76179
- return list6;
76179
+ return list7;
76180
76180
  };
76181
76181
  Minimatch.prototype.match = function match(f, partial) {
76182
76182
  if (typeof partial === "undefined")
@@ -83860,14 +83860,14 @@ var require_semver2 = __commonJS2({
83860
83860
  return compare(b, a, loose);
83861
83861
  }
83862
83862
  exports2.sort = sort;
83863
- function sort(list6, loose) {
83864
- return list6.sort(function(a, b) {
83863
+ function sort(list7, loose) {
83864
+ return list7.sort(function(a, b) {
83865
83865
  return exports2.compareBuild(a, b, loose);
83866
83866
  });
83867
83867
  }
83868
83868
  exports2.rsort = rsort;
83869
- function rsort(list6, loose) {
83870
- return list6.sort(function(a, b) {
83869
+ function rsort(list7, loose) {
83870
+ return list7.sort(function(a, b) {
83871
83871
  return exports2.compareBuild(b, a, loose);
83872
83872
  });
83873
83873
  }
@@ -89412,7 +89412,7 @@ var require_minimatch3 = __commonJS2({
89412
89412
  var reSpecials = charSet("().*{}+?[]^$\\!");
89413
89413
  var addPatternStartSet = charSet("[.(");
89414
89414
  var slashSplit = /\/+/;
89415
- minimatch5.filter = (pattern, options = {}) => (p, i, list6) => minimatch5(p, pattern, options);
89415
+ minimatch5.filter = (pattern, options = {}) => (p, i, list7) => minimatch5(p, pattern, options);
89416
89416
  var ext = (a, b = {}) => {
89417
89417
  const t = {};
89418
89418
  Object.keys(a).forEach((k) => t[k] = a[k]);
@@ -89435,7 +89435,7 @@ var require_minimatch3 = __commonJS2({
89435
89435
  m.defaults = (options) => orig.defaults(ext(def, options));
89436
89436
  m.makeRe = (pattern, options) => orig.makeRe(pattern, ext(def, options));
89437
89437
  m.braceExpand = (pattern, options) => orig.braceExpand(pattern, ext(def, options));
89438
- m.match = (list6, pattern, options) => orig.match(list6, pattern, ext(def, options));
89438
+ m.match = (list7, pattern, options) => orig.match(list7, pattern, ext(def, options));
89439
89439
  return m;
89440
89440
  };
89441
89441
  minimatch5.braceExpand = (pattern, options) => braceExpand(pattern, options);
@@ -89457,13 +89457,13 @@ var require_minimatch3 = __commonJS2({
89457
89457
  };
89458
89458
  var SUBPARSE = Symbol("subparse");
89459
89459
  minimatch5.makeRe = (pattern, options) => new Minimatch(pattern, options || {}).makeRe();
89460
- minimatch5.match = (list6, pattern, options = {}) => {
89460
+ minimatch5.match = (list7, pattern, options = {}) => {
89461
89461
  const mm = new Minimatch(pattern, options);
89462
- list6 = list6.filter((f) => mm.match(f));
89463
- if (mm.options.nonull && !list6.length) {
89464
- list6.push(pattern);
89462
+ list7 = list7.filter((f) => mm.match(f));
89463
+ if (mm.options.nonull && !list7.length) {
89464
+ list7.push(pattern);
89465
89465
  }
89466
- return list6;
89466
+ return list7;
89467
89467
  };
89468
89468
  var globUnescape = (s) => s.replace(/\\(.)/g, "$1");
89469
89469
  var charUnescape = (s) => s.replace(/\\([^-\]])/g, "$1");
@@ -106517,22 +106517,22 @@ var require_split2 = __commonJS2({
106517
106517
  var kLast = Symbol("last");
106518
106518
  var kDecoder = Symbol("decoder");
106519
106519
  function transform(chunk, enc, cb) {
106520
- let list6;
106520
+ let list7;
106521
106521
  if (this.overflow) {
106522
106522
  const buf = this[kDecoder].write(chunk);
106523
- list6 = buf.split(this.matcher);
106524
- if (list6.length === 1)
106523
+ list7 = buf.split(this.matcher);
106524
+ if (list7.length === 1)
106525
106525
  return cb();
106526
- list6.shift();
106526
+ list7.shift();
106527
106527
  this.overflow = false;
106528
106528
  } else {
106529
106529
  this[kLast] += this[kDecoder].write(chunk);
106530
- list6 = this[kLast].split(this.matcher);
106530
+ list7 = this[kLast].split(this.matcher);
106531
106531
  }
106532
- this[kLast] = list6.pop();
106533
- for (let i = 0; i < list6.length; i++) {
106532
+ this[kLast] = list7.pop();
106533
+ for (let i = 0; i < list7.length; i++) {
106534
106534
  try {
106535
- push(this, this.mapper(list6[i]));
106535
+ push(this, this.mapper(list7[i]));
106536
106536
  } catch (error3) {
106537
106537
  return cb(error3);
106538
106538
  }
@@ -108083,7 +108083,7 @@ async function staticFiles(path11, { output: output2, src }) {
108083
108083
  }
108084
108084
  async function explode(paths, { accepts, output: output2 }) {
108085
108085
  const { debug: debug3 } = output2;
108086
- const list6 = async (file) => {
108086
+ const list7 = async (file) => {
108087
108087
  let path11 = file;
108088
108088
  let s;
108089
108089
  if (!accepts(file)) {
@@ -108111,7 +108111,7 @@ async function explode(paths, { accepts, output: output2 }) {
108111
108111
  }
108112
108112
  return path11;
108113
108113
  };
108114
- const many = (all) => Promise.all(all.map((file) => list6(file)));
108114
+ const many = (all) => Promise.all(all.map((file) => list7(file)));
108115
108115
  const arrayOfArrays = await many(paths);
108116
108116
  return flatten(arrayOfArrays).filter(notNull);
108117
108117
  }
@@ -117590,18 +117590,18 @@ var require_events_intercept = __commonJS2({
117590
117590
  return ret;
117591
117591
  }
117592
117592
  function removeInterceptor(type, interceptor) {
117593
- var list6, position, length, i;
117593
+ var list7, position, length, i;
117594
117594
  if (typeof interceptor !== "function") {
117595
117595
  throw new TypeError("interceptor must be a function");
117596
117596
  }
117597
117597
  if (!this._interceptors || !this._interceptors[type]) {
117598
117598
  return this;
117599
117599
  }
117600
- list6 = this._interceptors[type];
117601
- length = list6.length;
117600
+ list7 = this._interceptors[type];
117601
+ length = list7.length;
117602
117602
  position = -1;
117603
117603
  for (i = length - 1; i >= 0; i--) {
117604
- if (list6[i] === interceptor) {
117604
+ if (list7[i] === interceptor) {
117605
117605
  position = i;
117606
117606
  break;
117607
117607
  }
@@ -117612,7 +117612,7 @@ var require_events_intercept = __commonJS2({
117612
117612
  if (length === 1) {
117613
117613
  delete this._interceptors[type];
117614
117614
  } else {
117615
- list6.splice(position, 1);
117615
+ list7.splice(position, 1);
117616
117616
  }
117617
117617
  this.emit("removeInterceptor", type, interceptor);
117618
117618
  return this;
@@ -129193,7 +129193,7 @@ var require_minimatch4 = __commonJS2({
129193
129193
  minimatch5.filter = filter;
129194
129194
  function filter(pattern, options) {
129195
129195
  options = options || {};
129196
- return function(p, i, list6) {
129196
+ return function(p, i, list7) {
129197
129197
  return minimatch5(p, pattern, options);
129198
129198
  };
129199
129199
  }
@@ -129596,16 +129596,16 @@ var require_minimatch4 = __commonJS2({
129596
129596
  }
129597
129597
  return this.regexp;
129598
129598
  }
129599
- minimatch5.match = function(list6, pattern, options) {
129599
+ minimatch5.match = function(list7, pattern, options) {
129600
129600
  options = options || {};
129601
129601
  var mm = new Minimatch(pattern, options);
129602
- list6 = list6.filter(function(f) {
129602
+ list7 = list7.filter(function(f) {
129603
129603
  return mm.match(f);
129604
129604
  });
129605
- if (mm.options.nonull && !list6.length) {
129606
- list6.push(pattern);
129605
+ if (mm.options.nonull && !list7.length) {
129606
+ list7.push(pattern);
129607
129607
  }
129608
- return list6;
129608
+ return list7;
129609
129609
  };
129610
129610
  Minimatch.prototype.match = match;
129611
129611
  function match(f, partial) {
@@ -145747,8 +145747,8 @@ var require_jaro_winkler = __commonJS2({
145747
145747
  });
145748
145748
 
145749
145749
  // src/util/init/did-you-mean.ts
145750
- function didYouMean(input, list6, threshold = 0.5) {
145751
- const rated = list6.map((item) => [dashAwareDistance(input, item), item]);
145750
+ function didYouMean(input, list7, threshold = 0.5) {
145751
+ const rated = list7.map((item) => [dashAwareDistance(input, item), item]);
145752
145752
  const found = rated.filter((item) => item[0] > threshold);
145753
145753
  if (found.length) {
145754
145754
  const highestRated = found.reduce((accu, curr) => {
@@ -146665,7 +146665,7 @@ function createInputStep(key, schema) {
146665
146665
  default: schema.default,
146666
146666
  validate: (value2) => {
146667
146667
  const number = Number(value2);
146668
- if (isNaN(number)) {
146668
+ if (Number.isNaN(number)) {
146669
146669
  return `Value "${value2}" must be a number.`;
146670
146670
  }
146671
146671
  if (schema.minimum !== void 0 && schema.minimum > number) {
@@ -146810,27 +146810,65 @@ var init_wizard = __esm({
146810
146810
  }
146811
146811
  });
146812
146812
 
146813
- // src/commands/integration/client.ts
146814
- async function fetchIntegration(client2, slug) {
146815
- return client2.fetch(
146816
- `/v1/integrations/integration/${slug}?public=1`,
146813
+ // src/util/integration/provision-store-resource.ts
146814
+ async function provisionStoreResource(client2, installationId, productId, billingPlanId, name, metadata) {
146815
+ return await client2.fetch(
146816
+ "/v1/storage/stores/integration",
146817
146817
  {
146818
- json: true
146818
+ method: "POST",
146819
+ json: true,
146820
+ body: {
146821
+ billingPlanId,
146822
+ integrationConfigurationId: installationId,
146823
+ integrationProductIdOrSlug: productId,
146824
+ metadata,
146825
+ name
146826
+ }
146819
146827
  }
146820
146828
  );
146821
146829
  }
146822
- async function fetchMarketplaceIntegrations(client2, slug) {
146830
+ var init_provision_store_resource = __esm({
146831
+ "src/util/integration/provision-store-resource.ts"() {
146832
+ "use strict";
146833
+ }
146834
+ });
146835
+
146836
+ // src/util/integration/connect-resource-to-project.ts
146837
+ async function connectResourceToProject(client2, projectId, storeId, environments) {
146838
+ return client2.fetch(`/v1/storage/stores/${storeId}/connections`, {
146839
+ json: true,
146840
+ method: "POST",
146841
+ body: {
146842
+ envVarEnvironments: environments,
146843
+ projectId,
146844
+ type: "integration"
146845
+ }
146846
+ });
146847
+ }
146848
+ var init_connect_resource_to_project = __esm({
146849
+ "src/util/integration/connect-resource-to-project.ts"() {
146850
+ "use strict";
146851
+ }
146852
+ });
146853
+
146854
+ // src/util/integration/fetch-billing-plans.ts
146855
+ async function fetchBillingPlans(client2, integration, product, metadata) {
146823
146856
  const searchParams = new URLSearchParams();
146824
- searchParams.set("view", "account");
146825
- searchParams.set("installationType", "marketplace");
146826
- searchParams.set("integrationIdOrSlug", slug);
146827
- return await client2.fetch(
146828
- `/v1/integrations/configurations?${searchParams}`,
146857
+ searchParams.set("metadata", JSON.stringify(metadata));
146858
+ return client2.fetch(
146859
+ `/v1/integrations/integration/${integration.id}/products/${product.id}/plans?${searchParams}`,
146829
146860
  {
146830
146861
  json: true
146831
146862
  }
146832
146863
  );
146833
146864
  }
146865
+ var init_fetch_billing_plans = __esm({
146866
+ "src/util/integration/fetch-billing-plans.ts"() {
146867
+ "use strict";
146868
+ }
146869
+ });
146870
+
146871
+ // src/util/integration/fetch-installations.ts
146834
146872
  async function fetchInstallations(client2, integration) {
146835
146873
  return client2.fetch(
146836
146874
  `/v1/integrations/integration/${integration.id}/installed?source=marketplace`,
@@ -146839,45 +146877,23 @@ async function fetchInstallations(client2, integration) {
146839
146877
  }
146840
146878
  );
146841
146879
  }
146842
- async function fetchBillingPlans(client2, integration, product, metadata) {
146843
- const searchParams = new URLSearchParams();
146844
- searchParams.set("metadata", JSON.stringify(metadata));
146880
+ var init_fetch_installations = __esm({
146881
+ "src/util/integration/fetch-installations.ts"() {
146882
+ "use strict";
146883
+ }
146884
+ });
146885
+
146886
+ // src/util/integration/fetch-integration.ts
146887
+ async function fetchIntegration(client2, slug) {
146845
146888
  return client2.fetch(
146846
- `/v1/integrations/integration/${integration.id}/products/${product.id}/plans?${searchParams}`,
146889
+ `/v1/integrations/integration/${slug}?public=1`,
146847
146890
  {
146848
146891
  json: true
146849
146892
  }
146850
146893
  );
146851
146894
  }
146852
- async function connectStoreToProject(client2, projectId, storeId, environments) {
146853
- return client2.fetch(`/v1/storage/stores/${storeId}/connections`, {
146854
- json: true,
146855
- method: "POST",
146856
- body: {
146857
- envVarEnvironments: environments,
146858
- projectId,
146859
- type: "integration"
146860
- }
146861
- });
146862
- }
146863
- async function provisionStoreResource(client2, installationId, productId, billingPlanId, name, metadata) {
146864
- return await client2.fetch(
146865
- "/v1/storage/stores/integration",
146866
- {
146867
- method: "POST",
146868
- json: true,
146869
- body: {
146870
- billingPlanId,
146871
- integrationConfigurationId: installationId,
146872
- integrationProductIdOrSlug: productId,
146873
- metadata,
146874
- name
146875
- }
146876
- }
146877
- );
146878
- }
146879
- var init_client2 = __esm({
146880
- "src/commands/integration/client.ts"() {
146895
+ var init_fetch_integration = __esm({
146896
+ "src/util/integration/fetch-integration.ts"() {
146881
146897
  "use strict";
146882
146898
  }
146883
146899
  });
@@ -146990,7 +147006,7 @@ async function getOptionalLinkedProject(client2) {
146990
147006
  return { status: "success", project: linkedProject.project };
146991
147007
  }
146992
147008
  function privisionResourceViaWebUI(client2, teamId, integrationId, productId, projectId) {
146993
- const url3 = new URL(`/api/marketplace/cli`, "https://vercel.com");
147009
+ const url3 = new URL("/api/marketplace/cli", "https://vercel.com");
146994
147010
  url3.searchParams.set("teamId", teamId);
146995
147011
  url3.searchParams.set("integrationId", integrationId);
146996
147012
  url3.searchParams.set("productId", productId);
@@ -146999,7 +147015,7 @@ function privisionResourceViaWebUI(client2, teamId, integrationId, productId, pr
146999
147015
  }
147000
147016
  url3.searchParams.set("cmd", "add");
147001
147017
  client2.output.print(
147002
- `Opening the Vercel Dashboard to continue the installation...`
147018
+ "Opening the Vercel Dashboard to continue the installation..."
147003
147019
  );
147004
147020
  (0, import_open3.default)(url3.href);
147005
147021
  }
@@ -147125,7 +147141,7 @@ async function selectBillingPlan(client2, billingPlans) {
147125
147141
  }
147126
147142
  async function confirmProductSelection(client2, product, name, metadata, billingPlan) {
147127
147143
  client2.output.print("Selected product:\n");
147128
- client2.output.print(`${import_chalk91.default.dim(`- ${import_chalk91.default.bold(`Name:`)} ${name}`)}
147144
+ client2.output.print(`${import_chalk91.default.dim(`- ${import_chalk91.default.bold("Name:")} ${name}`)}
147129
147145
  `);
147130
147146
  for (const [key, value] of Object.entries(metadata)) {
147131
147147
  client2.output.print(
@@ -147134,7 +147150,7 @@ async function confirmProductSelection(client2, product, name, metadata, billing
147134
147150
  );
147135
147151
  }
147136
147152
  client2.output.print(
147137
- `${import_chalk91.default.dim(`- ${import_chalk91.default.bold(`Plan:`)} ${billingPlan.name}`)}
147153
+ `${import_chalk91.default.dim(`- ${import_chalk91.default.bold("Plan:")} ${billingPlan.name}`)}
147138
147154
  `
147139
147155
  );
147140
147156
  return client2.input.confirm({
@@ -147183,7 +147199,7 @@ async function provisionStorageProduct(client2, product, installation, name, met
147183
147199
  `Connecting ${import_chalk91.default.bold(name)} to ${import_chalk91.default.bold(project.name)}...`
147184
147200
  );
147185
147201
  try {
147186
- await connectStoreToProject(
147202
+ await connectResourceToProject(
147187
147203
  client2,
147188
147204
  projectLink.project.id,
147189
147205
  storeId,
@@ -147218,7 +147234,11 @@ var init_add5 = __esm({
147218
147234
  init_indent();
147219
147235
  init_link2();
147220
147236
  init_wizard();
147221
- init_client2();
147237
+ init_provision_store_resource();
147238
+ init_connect_resource_to_project();
147239
+ init_fetch_billing_plans();
147240
+ init_fetch_installations();
147241
+ init_fetch_integration();
147222
147242
  }
147223
147243
  });
147224
147244
 
@@ -147274,64 +147294,328 @@ var init_install = __esm({
147274
147294
  });
147275
147295
 
147276
147296
  // src/commands/integration/command.ts
147277
- var integrationCommand;
147297
+ var addSubCommand, openSubCommand, listSubcommand, integrationCommand;
147278
147298
  var init_command16 = __esm({
147279
147299
  "src/commands/integration/command.ts"() {
147280
147300
  "use strict";
147281
147301
  init_pkg_name();
147282
- integrationCommand = {
147283
- name: "integration",
147284
- description: "Manage marketplace integrations",
147302
+ addSubCommand = {
147303
+ name: "add",
147304
+ description: "Installs a marketplace integration",
147305
+ arguments: [
147306
+ {
147307
+ name: "name",
147308
+ required: true
147309
+ }
147310
+ ],
147285
147311
  options: [],
147312
+ examples: [
147313
+ {
147314
+ name: "Install a marketplace integration",
147315
+ value: [
147316
+ `${packageName} integration add <integration-name>`,
147317
+ `${packageName} integration add acme`
147318
+ ]
147319
+ }
147320
+ ]
147321
+ };
147322
+ openSubCommand = {
147323
+ name: "open",
147324
+ description: "Opens a marketplace integration's dashboard",
147286
147325
  arguments: [
147287
147326
  {
147288
- name: "command",
147327
+ name: "name",
147289
147328
  required: true
147290
147329
  }
147291
147330
  ],
147292
- subcommands: [
147331
+ options: [],
147332
+ examples: [
147293
147333
  {
147294
- name: "add",
147295
- description: "Installs a marketplace integration",
147296
- arguments: [
147297
- {
147298
- name: "name",
147299
- required: true
147300
- }
147301
- ],
147302
- options: [],
147303
- examples: []
147334
+ name: "Open a marketplace integration's dashboard",
147335
+ value: [
147336
+ `${packageName} integration open <integration-name>`,
147337
+ `${packageName} integration open acme`
147338
+ ]
147339
+ }
147340
+ ]
147341
+ };
147342
+ listSubcommand = {
147343
+ name: "list",
147344
+ description: "Lists all resources from marketplace integrations",
147345
+ arguments: [
147346
+ {
147347
+ name: "project",
147348
+ required: false
147349
+ }
147350
+ ],
147351
+ options: [
147352
+ {
147353
+ name: "integration",
147354
+ description: "limits the resources listed to a designated integration",
147355
+ shorthand: "i",
147356
+ type: String,
147357
+ deprecated: false,
147358
+ argument: "NAME"
147304
147359
  },
147305
147360
  {
147306
- name: "open",
147307
- description: "Opens a marketplace integration's dashboard",
147308
- arguments: [
147309
- {
147310
- name: "name",
147311
- required: true
147312
- }
147313
- ],
147314
- options: [],
147315
- examples: []
147361
+ name: "all",
147362
+ description: "lists all resources regardless of project",
147363
+ shorthand: "a",
147364
+ type: Boolean,
147365
+ deprecated: false
147316
147366
  }
147317
147367
  ],
147318
147368
  examples: [
147319
147369
  {
147320
- name: "Install a marketplace integration",
147370
+ name: "List all resources",
147371
+ value: [`${packageName} integrations list`]
147372
+ },
147373
+ {
147374
+ name: "Filter the resources to a single integration",
147321
147375
  value: [
147322
- `${packageName} integration add <integration-name>`,
147323
- `${packageName} integration add acme`
147376
+ `${packageName} integrations list --integration <integration>`,
147377
+ `${packageName} integrations list --integration acme`,
147378
+ `${packageName} integrations list -i acme`
147324
147379
  ]
147325
147380
  },
147326
147381
  {
147327
- name: "Open a marketplace integration's dashboard",
147382
+ name: "List all marketplace resources for the current team",
147328
147383
  value: [
147329
- `${packageName} integration open <integration-name>`,
147330
- `${packageName} integration open acme`
147384
+ `${packageName} integrations list --all`,
147385
+ `${packageName} integrations list -a`
147331
147386
  ]
147332
147387
  }
147333
147388
  ]
147334
147389
  };
147390
+ integrationCommand = {
147391
+ name: "integration",
147392
+ description: "Manage marketplace integrations",
147393
+ options: [],
147394
+ arguments: [
147395
+ {
147396
+ name: "command",
147397
+ required: true
147398
+ }
147399
+ ],
147400
+ subcommands: [addSubCommand, openSubCommand, listSubcommand],
147401
+ examples: []
147402
+ };
147403
+ }
147404
+ });
147405
+
147406
+ // src/util/integration/get-resources.ts
147407
+ async function getResources(client2, teamId) {
147408
+ const searchParams = new URLSearchParams();
147409
+ searchParams.set("teamId", teamId);
147410
+ const storesResponse = await client2.fetch(
147411
+ `/v1/storage/stores?teamId=${searchParams}`,
147412
+ {
147413
+ json: true
147414
+ }
147415
+ );
147416
+ return storesResponse.stores;
147417
+ }
147418
+ var init_get_resources = __esm({
147419
+ "src/util/integration/get-resources.ts"() {
147420
+ "use strict";
147421
+ }
147422
+ });
147423
+
147424
+ // src/util/integration/build-sso-link.ts
147425
+ function buildSSOLink(team, configurationId) {
147426
+ const url3 = new URL("/api/marketplace/sso", "https://vercel.com");
147427
+ url3.searchParams.set("teamId", team.id);
147428
+ url3.searchParams.set("integrationConfigurationId", configurationId);
147429
+ return url3.href;
147430
+ }
147431
+ var init_build_sso_link = __esm({
147432
+ "src/util/integration/build-sso-link.ts"() {
147433
+ "use strict";
147434
+ }
147435
+ });
147436
+
147437
+ // src/commands/integration/list.ts
147438
+ async function list2(client2) {
147439
+ let parsedArguments = null;
147440
+ const flagsSpecification = getFlagsSpecification(listSubcommand.options);
147441
+ try {
147442
+ parsedArguments = parseArguments(client2.argv.slice(3), flagsSpecification);
147443
+ } catch (error3) {
147444
+ handleError(error3);
147445
+ return 1;
147446
+ }
147447
+ const { contextName, team } = await getScope(client2);
147448
+ let project;
147449
+ if (!team) {
147450
+ client2.output.error("Team not found.");
147451
+ return 1;
147452
+ }
147453
+ if (parsedArguments.args.length > 2) {
147454
+ client2.output.error(
147455
+ "Cannot specify more than one project at a time. Use `--all` to show all resources."
147456
+ );
147457
+ return 1;
147458
+ }
147459
+ if (parsedArguments.args.length === 2) {
147460
+ if (parsedArguments.flags["--all"]) {
147461
+ client2.output.error(
147462
+ "Cannot specify a project when using the `--all` flag."
147463
+ );
147464
+ return 1;
147465
+ }
147466
+ project = { name: parsedArguments.args[1] };
147467
+ }
147468
+ if (!parsedArguments.flags["--all"]) {
147469
+ project = await getLinkedProject(client2).then((result) => {
147470
+ if (result.status === "linked") {
147471
+ return result.project;
147472
+ }
147473
+ return;
147474
+ });
147475
+ if (!project) {
147476
+ client2.output.error(
147477
+ "No project linked. Either use `vc link` to link a project, or the `--all` flag to list all resources."
147478
+ );
147479
+ return 1;
147480
+ }
147481
+ }
147482
+ let resources;
147483
+ try {
147484
+ client2.output.spinner("Retrieving resources\u2026", 500);
147485
+ resources = await getResources(client2, team.id);
147486
+ } catch (error3) {
147487
+ client2.output.error(
147488
+ `Failed to fetch resources: ${error3.message}`
147489
+ );
147490
+ return 1;
147491
+ }
147492
+ const filterIntegration = parsedArguments.flags["--integration"]?.toLocaleLowerCase();
147493
+ function resourceIsFromMarketplace(resource) {
147494
+ return resource.type === "integration";
147495
+ }
147496
+ function filterOnIntegration(resource) {
147497
+ return !filterIntegration || filterIntegration === resource.product?.slug;
147498
+ }
147499
+ function filterOnProject(resource) {
147500
+ return !project || !!resource.projectsMetadata?.find(
147501
+ (metadata) => metadata.projectId === project?.id || metadata.name === project?.name
147502
+ );
147503
+ }
147504
+ function filterOnFlags(resource) {
147505
+ return filterOnIntegration(resource) && filterOnProject(resource);
147506
+ }
147507
+ const results = resources.filter(resourceIsFromMarketplace).filter(filterOnFlags).map((resource) => {
147508
+ return {
147509
+ id: resource.id,
147510
+ name: resource.name,
147511
+ status: resource.status,
147512
+ product: resource.product?.name,
147513
+ integration: resource.product?.slug,
147514
+ configurationId: resource.product?.integrationConfigurationId,
147515
+ projects: resource.projectsMetadata?.map((metadata) => metadata.name).join(", ")
147516
+ };
147517
+ });
147518
+ if (results.length === 0) {
147519
+ client2.output.log("No resources found.");
147520
+ return 0;
147521
+ }
147522
+ client2.output.log(
147523
+ `Integrations in ${import_chalk92.default.bold(contextName)}:
147524
+ ${table(
147525
+ [
147526
+ ["Name", "Status", "Product", "Integration", "Projects"].map(
147527
+ (header) => import_chalk92.default.bold(import_chalk92.default.cyan(header))
147528
+ ),
147529
+ ...results.map((result) => [
147530
+ resourceLink(client2.output, contextName, result) ?? import_chalk92.default.gray("\u2013"),
147531
+ resourceStatus(result.status ?? "\u2013"),
147532
+ result.product ?? import_chalk92.default.gray("\u2013"),
147533
+ integrationLink(client2.output, result, team) ?? import_chalk92.default.gray("\u2013"),
147534
+ import_chalk92.default.grey(result.projects ? result.projects : "\u2013")
147535
+ ])
147536
+ ],
147537
+ { hsep: 8 }
147538
+ )}`
147539
+ );
147540
+ return 0;
147541
+ }
147542
+ function resourceStatus(status2) {
147543
+ const CIRCLE = "\u25CF ";
147544
+ const statusTitleCase = (0, import_title6.default)(status2);
147545
+ switch (status2) {
147546
+ case "initializing":
147547
+ return import_chalk92.default.yellow(CIRCLE) + statusTitleCase;
147548
+ case "error":
147549
+ return import_chalk92.default.red(CIRCLE) + statusTitleCase;
147550
+ case "available":
147551
+ return import_chalk92.default.green(CIRCLE) + statusTitleCase;
147552
+ case "suspended":
147553
+ return import_chalk92.default.white(CIRCLE) + statusTitleCase;
147554
+ case "limits-exceeded-suspended":
147555
+ return `${import_chalk92.default.white(CIRCLE)}Limits exceeded`;
147556
+ default:
147557
+ return import_chalk92.default.gray(statusTitleCase);
147558
+ }
147559
+ }
147560
+ function resourceLink(output2, orgSlug, resource) {
147561
+ if (!resource.name) {
147562
+ return;
147563
+ }
147564
+ const projectUrl = `https://vercel.com/${orgSlug}/~`;
147565
+ return output2.link(
147566
+ resource.name,
147567
+ `${projectUrl}/stores/integration/${resource.id}`,
147568
+ { fallback: () => resource.name ?? "\u2013", color: false }
147569
+ );
147570
+ }
147571
+ function integrationLink(output2, integration, team) {
147572
+ if (!integration.integration) {
147573
+ return;
147574
+ }
147575
+ if (!integration.configurationId) {
147576
+ return integration.integration;
147577
+ }
147578
+ const boldName = import_chalk92.default.bold(integration.integration);
147579
+ const integrationDeepLink = buildSSOLink(team, integration.configurationId);
147580
+ return output2.link(boldName, integrationDeepLink, {
147581
+ fallback: () => boldName,
147582
+ color: false
147583
+ });
147584
+ }
147585
+ var import_chalk92, import_title6;
147586
+ var init_list2 = __esm({
147587
+ "src/commands/integration/list.ts"() {
147588
+ "use strict";
147589
+ import_chalk92 = __toESM3(require_source());
147590
+ init_get_scope();
147591
+ init_link2();
147592
+ init_get_resources();
147593
+ init_command16();
147594
+ init_get_flags_specification();
147595
+ init_get_args();
147596
+ init_handle_error();
147597
+ init_table();
147598
+ import_title6 = __toESM3(require_lib4());
147599
+ init_build_sso_link();
147600
+ }
147601
+ });
147602
+
147603
+ // src/util/integration/fetch-marketplace-integrations.ts
147604
+ async function fetchMarketplaceIntegrations(client2, slug) {
147605
+ const searchParams = new URLSearchParams();
147606
+ searchParams.set("view", "account");
147607
+ searchParams.set("installationType", "marketplace");
147608
+ searchParams.set("integrationIdOrSlug", slug);
147609
+ return await client2.fetch(
147610
+ `/v1/integrations/configurations?${searchParams}`,
147611
+ {
147612
+ json: true
147613
+ }
147614
+ );
147615
+ }
147616
+ var init_fetch_marketplace_integrations = __esm({
147617
+ "src/util/integration/fetch-marketplace-integrations.ts"() {
147618
+ "use strict";
147335
147619
  }
147336
147620
  });
147337
147621
 
@@ -147356,23 +147640,20 @@ async function openIntegration(client2, args2) {
147356
147640
  configuration = await getFirstConfiguration(client2, integrationSlug);
147357
147641
  } catch (error3) {
147358
147642
  client2.output.error(
147359
- `Failed to fetch configuration for ${import_chalk92.default.bold(`"${integrationSlug}"`)}: ${error3.message}`
147643
+ `Failed to fetch configuration for ${import_chalk93.default.bold(`"${integrationSlug}"`)}: ${error3.message}`
147360
147644
  );
147361
147645
  return 1;
147362
147646
  }
147363
147647
  if (!configuration) {
147364
147648
  client2.output.error(
147365
- `No configuration found for ${import_chalk92.default.bold(`"${integrationSlug}"`)}.`
147649
+ `No configuration found for ${import_chalk93.default.bold(`"${integrationSlug}"`)}.`
147366
147650
  );
147367
147651
  return 1;
147368
147652
  }
147369
147653
  client2.output.print(
147370
- `Opening the ${import_chalk92.default.bold(integrationSlug)} dashboard...`
147654
+ `Opening the ${import_chalk93.default.bold(integrationSlug)} dashboard...`
147371
147655
  );
147372
- const url3 = new URL("/api/marketplace/sso", "https://vercel.com");
147373
- url3.searchParams.set("teamId", team.id);
147374
- url3.searchParams.set("integrationConfigurationId", configuration.id);
147375
- (0, import_open4.default)(url3.href);
147656
+ (0, import_open4.default)(buildSSOLink(team, configuration.id));
147376
147657
  return 0;
147377
147658
  }
147378
147659
  async function getFirstConfiguration(client2, integrationSlug) {
@@ -147382,14 +147663,15 @@ async function getFirstConfiguration(client2, integrationSlug) {
147382
147663
  );
147383
147664
  return configurations.length > 0 ? configurations[0] : void 0;
147384
147665
  }
147385
- var import_chalk92, import_open4;
147666
+ var import_chalk93, import_open4;
147386
147667
  var init_open_integration = __esm({
147387
147668
  "src/commands/integration/open-integration.ts"() {
147388
147669
  "use strict";
147389
- import_chalk92 = __toESM3(require_source());
147670
+ import_chalk93 = __toESM3(require_source());
147390
147671
  import_open4 = __toESM3(require_open());
147391
147672
  init_get_scope();
147392
- init_client2();
147673
+ init_fetch_marketplace_integrations();
147674
+ init_build_sso_link();
147393
147675
  }
147394
147676
  });
147395
147677
 
@@ -147399,7 +147681,11 @@ __export3(integration_exports, {
147399
147681
  default: () => main9
147400
147682
  });
147401
147683
  async function main9(client2) {
147402
- const { args: args2, flags } = parseArguments(client2.argv.slice(2));
147684
+ const { args: args2, flags } = parseArguments(
147685
+ client2.argv.slice(2),
147686
+ getFlagsSpecification(integrationCommand.options),
147687
+ { permissive: true }
147688
+ );
147403
147689
  const { subcommand, args: subArgs } = getSubcommand(
147404
147690
  args2.slice(1),
147405
147691
  COMMAND_CONFIG9
@@ -147414,6 +147700,9 @@ async function main9(client2) {
147414
147700
  case "add": {
147415
147701
  return add6(client2, subArgs);
147416
147702
  }
147703
+ case "list": {
147704
+ return list2(client2);
147705
+ }
147417
147706
  case "open": {
147418
147707
  return openIntegration(client2, subArgs);
147419
147708
  }
@@ -147428,15 +147717,18 @@ var init_integration = __esm({
147428
147717
  "src/commands/integration/index.ts"() {
147429
147718
  "use strict";
147430
147719
  init_get_args();
147720
+ init_get_flags_specification();
147431
147721
  init_get_invalid_subcommand();
147432
147722
  init_get_subcommand();
147433
147723
  init_help();
147434
147724
  init_add5();
147435
147725
  init_command16();
147726
+ init_list2();
147436
147727
  init_open_integration();
147437
147728
  COMMAND_CONFIG9 = {
147438
147729
  add: ["add"],
147439
- open: ["open"]
147730
+ open: ["open"],
147731
+ list: ["list", "ls"]
147440
147732
  };
147441
147733
  }
147442
147734
  });
@@ -147659,7 +147951,7 @@ var init_command18 = __esm({
147659
147951
  // src/commands/list/index.ts
147660
147952
  var list_exports = {};
147661
147953
  __export3(list_exports, {
147662
- default: () => list2,
147954
+ default: () => list3,
147663
147955
  getDeploymentDuration: () => getDeploymentDuration,
147664
147956
  stateString: () => stateString2
147665
147957
  });
@@ -147672,7 +147964,7 @@ function toDate(timestamp) {
147672
147964
  };
147673
147965
  return date.toLocaleDateString("en-US", options);
147674
147966
  }
147675
- async function list2(client2) {
147967
+ async function list3(client2) {
147676
147968
  const { print, log: log2, warn, error: error3, note, debug: debug3, spinner } = client2.output;
147677
147969
  let parsedArgs = null;
147678
147970
  const flagsSpecification = getFlagsSpecification(listCommand.options);
@@ -147773,7 +148065,7 @@ async function list2(client2) {
147773
148065
  }
147774
148066
  const projectSlugLink = formatProject(client2, contextName, project.name);
147775
148067
  if (!singleDeployment) {
147776
- spinner(`Fetching deployments in ${import_chalk93.default.bold(contextName)}`);
148068
+ spinner(`Fetching deployments in ${import_chalk94.default.bold(contextName)}`);
147777
148069
  const start = Date.now();
147778
148070
  debug3("Fetching deployments");
147779
148071
  const query = new URLSearchParams({ limit: "20", projectId: project.id });
@@ -147813,7 +148105,7 @@ async function list2(client2) {
147813
148105
  const urls = [];
147814
148106
  const tablePrint = table(
147815
148107
  [
147816
- headers.map((header) => import_chalk93.default.bold(import_chalk93.default.cyan(header))),
148108
+ headers.map((header) => import_chalk94.default.bold(import_chalk94.default.cyan(header))),
147817
148109
  ...deployments.sort(sortByCreatedAt).map((dep) => {
147818
148110
  urls.push(`https://${dep.url}`);
147819
148111
  const proposedExp = dep.proposedExpiration ? toDate(Math.min(Date.now(), dep.proposedExpiration)) : "No expiration";
@@ -147823,16 +148115,16 @@ async function list2(client2) {
147823
148115
  const targetName = dep.customEnvironment?.name || (dep.target === "production" ? "Production" : "Preview");
147824
148116
  const targetSlug = dep.customEnvironment?.id || dep.target || "preview";
147825
148117
  return [
147826
- import_chalk93.default.gray(createdAt),
148118
+ import_chalk94.default.gray(createdAt),
147827
148119
  `https://${dep.url}`,
147828
148120
  stateString2(dep.readyState || ""),
147829
148121
  formatEnvironment(client2, contextName, project.name, {
147830
148122
  id: targetSlug,
147831
148123
  name: targetName
147832
148124
  }),
147833
- ...!showPolicy ? [import_chalk93.default.gray(getDeploymentDuration(dep))] : [],
147834
- ...!showPolicy ? [import_chalk93.default.gray(dep.creator?.username)] : [],
147835
- ...showPolicy ? [import_chalk93.default.gray(proposedExp)] : []
148125
+ ...!showPolicy ? [import_chalk94.default.gray(getDeploymentDuration(dep))] : [],
148126
+ ...!showPolicy ? [import_chalk94.default.gray(dep.creator?.username)] : [],
148127
+ ...showPolicy ? [import_chalk94.default.gray(proposedExp)] : []
147836
148128
  ];
147837
148129
  }).filter(
147838
148130
  (app2) => (
@@ -147873,23 +148165,23 @@ function getDeploymentDuration(dep) {
147873
148165
  }
147874
148166
  function stateString2(s) {
147875
148167
  const CIRCLE = "\u25CF ";
147876
- const sTitle = (0, import_title6.default)(s);
148168
+ const sTitle = (0, import_title7.default)(s);
147877
148169
  switch (s) {
147878
148170
  case "INITIALIZING":
147879
148171
  case "BUILDING":
147880
148172
  case "DEPLOYING":
147881
148173
  case "ANALYZING":
147882
- return import_chalk93.default.yellow(CIRCLE) + sTitle;
148174
+ return import_chalk94.default.yellow(CIRCLE) + sTitle;
147883
148175
  case "ERROR":
147884
- return import_chalk93.default.red(CIRCLE) + sTitle;
148176
+ return import_chalk94.default.red(CIRCLE) + sTitle;
147885
148177
  case "READY":
147886
- return import_chalk93.default.green(CIRCLE) + sTitle;
148178
+ return import_chalk94.default.green(CIRCLE) + sTitle;
147887
148179
  case "QUEUED":
147888
- return import_chalk93.default.white(CIRCLE) + sTitle;
148180
+ return import_chalk94.default.white(CIRCLE) + sTitle;
147889
148181
  case "CANCELED":
147890
- return import_chalk93.default.gray(sTitle);
148182
+ return import_chalk94.default.gray(sTitle);
147891
148183
  default:
147892
- return import_chalk93.default.gray("UNKNOWN");
148184
+ return import_chalk94.default.gray("UNKNOWN");
147893
148185
  }
147894
148186
  }
147895
148187
  function sortByCreatedAt(a, b) {
@@ -147905,13 +148197,13 @@ function filterUniqueApps() {
147905
148197
  return true;
147906
148198
  };
147907
148199
  }
147908
- var import_ms19, import_chalk93, import_title6, import_error_utils26;
147909
- var init_list2 = __esm({
148200
+ var import_ms19, import_chalk94, import_title7, import_error_utils26;
148201
+ var init_list3 = __esm({
147910
148202
  "src/commands/list/index.ts"() {
147911
148203
  "use strict";
147912
148204
  import_ms19 = __toESM3(require_ms2());
147913
- import_chalk93 = __toESM3(require_source());
147914
- import_title6 = __toESM3(require_lib4());
148205
+ import_chalk94 = __toESM3(require_source());
148206
+ import_title7 = __toESM3(require_lib4());
147915
148207
  init_table();
147916
148208
  init_get_args();
147917
148209
  init_error2();
@@ -147996,7 +148288,7 @@ async function logs(client2) {
147996
148288
  } catch {
147997
148289
  }
147998
148290
  spinner(
147999
- `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk94.default.bold(contextName)}`
148291
+ `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk95.default.bold(contextName)}`
148000
148292
  );
148001
148293
  let deployment;
148002
148294
  try {
@@ -148032,19 +148324,19 @@ function printDisclaimer(deployment, { print, warn }) {
148032
148324
  `This command now displays runtime logs. To access your build logs, run \`vercel inspect --logs ${deployment.url}\``
148033
148325
  );
148034
148326
  print(
148035
- `Displaying runtime logs for deployment ${deployment.url} (${import_chalk94.default.dim(
148327
+ `Displaying runtime logs for deployment ${deployment.url} (${import_chalk95.default.dim(
148036
148328
  deployment.id
148037
- )}) starting from ${import_chalk94.default.bold((0, import_format2.default)(Date.now(), dateTimeFormat2))}
148329
+ )}) starting from ${import_chalk95.default.bold((0, import_format2.default)(Date.now(), dateTimeFormat2))}
148038
148330
 
148039
148331
  `
148040
148332
  );
148041
148333
  }
148042
- var import_error_utils27, import_chalk94, import_format2, deprecatedFlags, dateTimeFormat2;
148334
+ var import_error_utils27, import_chalk95, import_format2, deprecatedFlags, dateTimeFormat2;
148043
148335
  var init_logs2 = __esm({
148044
148336
  "src/commands/logs/index.ts"() {
148045
148337
  "use strict";
148046
148338
  import_error_utils27 = __toESM3(require_dist2());
148047
- import_chalk94 = __toESM3(require_source());
148339
+ import_chalk95 = __toESM3(require_source());
148048
148340
  import_format2 = __toESM3(require_format());
148049
148341
  init_build_state();
148050
148342
  init_is_deploying();
@@ -148058,7 +148350,7 @@ var init_logs2 = __esm({
148058
148350
  init_param();
148059
148351
  init_pkg_name();
148060
148352
  init_help();
148061
- init_list2();
148353
+ init_list3();
148062
148354
  init_command3();
148063
148355
  deprecatedFlags = [
148064
148356
  "--follow",
@@ -148213,7 +148505,7 @@ async function login2(client2) {
148213
148505
  writeToConfigFile(output2, client2.config);
148214
148506
  output2.debug(`Saved credentials in "${humanizePath(global_path_default())}"`);
148215
148507
  output2.print(
148216
- `${import_chalk95.default.cyan("Congratulations!")} You are now logged in. In order to deploy something, run ${getCommandName()}.
148508
+ `${import_chalk96.default.cyan("Congratulations!")} You are now logged in. In order to deploy something, run ${getCommandName()}.
148217
148509
  `
148218
148510
  );
148219
148511
  output2.print(
@@ -148225,12 +148517,12 @@ async function login2(client2) {
148225
148517
  );
148226
148518
  return 0;
148227
148519
  }
148228
- var import_email_validator, import_chalk95;
148520
+ var import_email_validator, import_chalk96;
148229
148521
  var init_login2 = __esm({
148230
148522
  "src/commands/login/index.ts"() {
148231
148523
  "use strict";
148232
148524
  import_email_validator = __toESM3(require_email_validator());
148233
- import_chalk95 = __toESM3(require_source());
148525
+ import_chalk96 = __toESM3(require_source());
148234
148526
  init_humanize_path();
148235
148527
  init_get_args();
148236
148528
  init_prompt();
@@ -148355,12 +148647,12 @@ async function add7(client2, args2, contextName) {
148355
148647
  const { output: output2 } = client2;
148356
148648
  if (args2.length !== 1) {
148357
148649
  output2.error(
148358
- `Invalid number of arguments. Usage: ${import_chalk96.default.cyan(
148650
+ `Invalid number of arguments. Usage: ${import_chalk97.default.cyan(
148359
148651
  `${getCommandName("project add <name>")}`
148360
148652
  )}`
148361
148653
  );
148362
148654
  if (args2.length > 1) {
148363
- const example = import_chalk96.default.cyan(
148655
+ const example = import_chalk97.default.cyan(
148364
148656
  `${getCommandName(`project add "${args2.join(" ")}"`)}`
148365
148657
  );
148366
148658
  output2.log(
@@ -148386,17 +148678,17 @@ async function add7(client2, args2, contextName) {
148386
148678
  }
148387
148679
  const elapsed2 = (0, import_ms20.default)(Date.now() - start);
148388
148680
  output2.log(
148389
- `${import_chalk96.default.cyan("Success!")} Project ${import_chalk96.default.bold(
148681
+ `${import_chalk97.default.cyan("Success!")} Project ${import_chalk97.default.bold(
148390
148682
  name.toLowerCase()
148391
- )} added (${import_chalk96.default.bold(contextName)}) ${import_chalk96.default.gray(`[${elapsed2}]`)}`
148683
+ )} added (${import_chalk97.default.bold(contextName)}) ${import_chalk97.default.gray(`[${elapsed2}]`)}`
148392
148684
  );
148393
148685
  return;
148394
148686
  }
148395
- var import_chalk96, import_ms20;
148687
+ var import_chalk97, import_ms20;
148396
148688
  var init_add6 = __esm({
148397
148689
  "src/commands/project/add.ts"() {
148398
148690
  "use strict";
148399
- import_chalk96 = __toESM3(require_source());
148691
+ import_chalk97 = __toESM3(require_source());
148400
148692
  import_ms20 = __toESM3(require_ms2());
148401
148693
  init_errors_ts();
148402
148694
  init_pkg_name();
@@ -148405,18 +148697,18 @@ var init_add6 = __esm({
148405
148697
  });
148406
148698
 
148407
148699
  // src/commands/project/list.ts
148408
- async function list3(client2, argv, args2, contextName) {
148700
+ async function list4(client2, argv, args2, contextName) {
148409
148701
  const { output: output2 } = client2;
148410
148702
  if (args2.length !== 0) {
148411
148703
  output2.error(
148412
- `Invalid number of arguments. Usage: ${import_chalk97.default.cyan(
148704
+ `Invalid number of arguments. Usage: ${import_chalk98.default.cyan(
148413
148705
  `${getCommandName("project ls")}`
148414
148706
  )}`
148415
148707
  );
148416
148708
  return 2;
148417
148709
  }
148418
148710
  const start = Date.now();
148419
- output2.spinner(`Fetching projects in ${import_chalk97.default.bold(contextName)}`);
148711
+ output2.spinner(`Fetching projects in ${import_chalk98.default.bold(contextName)}`);
148420
148712
  let projectsUrl = `/v9/projects?limit=20`;
148421
148713
  const deprecated = argv["--update-required"] || false;
148422
148714
  if (deprecated) {
@@ -148451,19 +148743,19 @@ async function list3(client2, argv, args2, contextName) {
148451
148743
  );
148452
148744
  }
148453
148745
  output2.log(
148454
- `${projectList.length > 0 ? "Projects" : "No projects"} found under ${import_chalk97.default.bold(contextName)} ${deprecated ? "that are using a deprecated Node.js version" : "\b"} ${import_chalk97.default.gray(`[${elapsed2}]`)}`
148746
+ `${projectList.length > 0 ? "Projects" : "No projects"} found under ${import_chalk98.default.bold(contextName)} ${deprecated ? "that are using a deprecated Node.js version" : "\b"} ${import_chalk98.default.gray(`[${elapsed2}]`)}`
148455
148747
  );
148456
148748
  if (projectList.length > 0) {
148457
148749
  const tablePrint = table(
148458
148750
  [
148459
148751
  ["Project Name", "Latest Production URL", "Updated"].map(
148460
- (header) => import_chalk97.default.bold(import_chalk97.default.cyan(header))
148752
+ (header) => import_chalk98.default.bold(import_chalk98.default.cyan(header))
148461
148753
  ),
148462
148754
  ...projectList.map((project) => [
148463
148755
  [
148464
- import_chalk97.default.bold(project.name),
148756
+ import_chalk98.default.bold(project.name),
148465
148757
  getLatestProdUrl(project),
148466
- import_chalk97.default.gray((0, import_ms21.default)(Date.now() - project.updatedAt))
148758
+ import_chalk98.default.gray((0, import_ms21.default)(Date.now() - project.updatedAt))
148467
148759
  ]
148468
148760
  ]).flat()
148469
148761
  ],
@@ -148487,11 +148779,11 @@ function getLatestProdUrl(project) {
148487
148779
  return "https://" + alias2;
148488
148780
  return "--";
148489
148781
  }
148490
- var import_chalk97, import_ms21, import_build_utils17;
148491
- var init_list3 = __esm({
148782
+ var import_chalk98, import_ms21, import_build_utils17;
148783
+ var init_list4 = __esm({
148492
148784
  "src/commands/project/list.ts"() {
148493
148785
  "use strict";
148494
- import_chalk97 = __toESM3(require_source());
148786
+ import_chalk98 = __toESM3(require_source());
148495
148787
  import_ms21 = __toESM3(require_ms2());
148496
148788
  init_table();
148497
148789
  init_get_command_flags();
@@ -148504,7 +148796,7 @@ var init_list3 = __esm({
148504
148796
  async function rm6(client2, args2) {
148505
148797
  if (args2.length !== 1) {
148506
148798
  client2.output.error(
148507
- `Invalid number of arguments. Usage: ${import_chalk98.default.cyan(
148799
+ `Invalid number of arguments. Usage: ${import_chalk99.default.cyan(
148508
148800
  `${getCommandName("project rm <name>")}`
148509
148801
  )}`
148510
148802
  );
@@ -148533,7 +148825,7 @@ async function rm6(client2, args2) {
148533
148825
  }
148534
148826
  const elapsed2 = (0, import_ms22.default)(Date.now() - start);
148535
148827
  client2.output.log(
148536
- `${import_chalk98.default.cyan("Success!")} Project ${import_chalk98.default.bold(name)} removed ${import_chalk98.default.gray(
148828
+ `${import_chalk99.default.cyan("Success!")} Project ${import_chalk99.default.bold(name)} removed ${import_chalk99.default.gray(
148537
148829
  `[${elapsed2}]`
148538
148830
  )}`
148539
148831
  );
@@ -148542,19 +148834,19 @@ async function rm6(client2, args2) {
148542
148834
  async function readConfirmation3(client2, projectName) {
148543
148835
  client2.output.print(
148544
148836
  prependEmoji(
148545
- `The project ${import_chalk98.default.bold(projectName)} will be removed permanently.
148837
+ `The project ${import_chalk99.default.bold(projectName)} will be removed permanently.
148546
148838
  It will also delete everything under the project including deployments.
148547
148839
  `,
148548
148840
  emoji("warning")
148549
148841
  )
148550
148842
  );
148551
- return await confirm(client2, `${import_chalk98.default.bold.red("Are you sure?")}`, false);
148843
+ return await confirm(client2, `${import_chalk99.default.bold.red("Are you sure?")}`, false);
148552
148844
  }
148553
- var import_chalk98, import_ms22, e;
148845
+ var import_chalk99, import_ms22, e;
148554
148846
  var init_rm6 = __esm({
148555
148847
  "src/commands/project/rm.ts"() {
148556
148848
  "use strict";
148557
- import_chalk98 = __toESM3(require_source());
148849
+ import_chalk99 = __toESM3(require_source());
148558
148850
  import_ms22 = __toESM3(require_ms2());
148559
148851
  init_emoji();
148560
148852
  init_errors_ts();
@@ -148676,7 +148968,7 @@ async function main11(client2) {
148676
148968
  switch (subcommand) {
148677
148969
  case "ls":
148678
148970
  case "list":
148679
- return await list3(client2, parsedArgs.flags, args2, contextName);
148971
+ return await list4(client2, parsedArgs.flags, args2, contextName);
148680
148972
  case "add":
148681
148973
  return await add7(client2, args2, contextName);
148682
148974
  case "rm":
@@ -148700,7 +148992,7 @@ var init_project = __esm({
148700
148992
  init_handle_error();
148701
148993
  init_help();
148702
148994
  init_add6();
148703
- init_list3();
148995
+ init_list4();
148704
148996
  init_rm6();
148705
148997
  init_command21();
148706
148998
  init_get_flags_specification();
@@ -148763,7 +149055,7 @@ async function getProjectByDeployment({
148763
149055
  let team;
148764
149056
  try {
148765
149057
  output2?.spinner(
148766
- `Fetching deployment "${deployId}" in ${import_chalk99.default.bold(contextName)}\u2026`
149058
+ `Fetching deployment "${deployId}" in ${import_chalk100.default.bold(contextName)}\u2026`
148767
149059
  );
148768
149060
  const [teamResult, deploymentResult] = await Promise.allSettled([
148769
149061
  config2.currentTeam ? getTeamById(client2, config2.currentTeam) : void 0,
@@ -148780,12 +149072,12 @@ async function getProjectByDeployment({
148780
149072
  team = teamResult.value;
148781
149073
  deployment = deploymentResult.value;
148782
149074
  output2?.log(
148783
- `Fetching deployment "${deployId}" in ${import_chalk99.default.bold(contextName)}\u2026`
149075
+ `Fetching deployment "${deployId}" in ${import_chalk100.default.bold(contextName)}\u2026`
148784
149076
  );
148785
149077
  if (deployment.team?.id) {
148786
149078
  if (!team || deployment.team.id !== team.id) {
148787
149079
  const err = new Error(
148788
- team ? `Deployment doesn't belong to current team ${import_chalk99.default.bold(
149080
+ team ? `Deployment doesn't belong to current team ${import_chalk100.default.bold(
148789
149081
  contextName
148790
149082
  )}` : `Deployment belongs to a different team`
148791
149083
  );
@@ -148794,7 +149086,7 @@ async function getProjectByDeployment({
148794
149086
  }
148795
149087
  } else if (team) {
148796
149088
  const err = new Error(
148797
- `Deployment doesn't belong to current team ${import_chalk99.default.bold(contextName)}`
149089
+ `Deployment doesn't belong to current team ${import_chalk100.default.bold(contextName)}`
148798
149090
  );
148799
149091
  err.code = "ERR_INVALID_TEAM";
148800
149092
  throw err;
@@ -148815,11 +149107,11 @@ async function getProjectByDeployment({
148815
149107
  output2?.stopSpinner();
148816
149108
  }
148817
149109
  }
148818
- var import_chalk99;
149110
+ var import_chalk100;
148819
149111
  var init_get_project_by_deployment = __esm({
148820
149112
  "src/util/projects/get-project-by-deployment.ts"() {
148821
149113
  "use strict";
148822
- import_chalk99 = __toESM3(require_source());
149114
+ import_chalk100 = __toESM3(require_source());
148823
149115
  init_get_deployment();
148824
149116
  init_get_project_by_id_or_name();
148825
149117
  init_get_scope();
@@ -148832,21 +149124,21 @@ var init_get_project_by_deployment = __esm({
148832
149124
  // src/util/alias/render-alias-status.ts
148833
149125
  function renderAliasStatus(status2) {
148834
149126
  if (status2 === "completed") {
148835
- return import_chalk100.default.green(status2);
149127
+ return import_chalk101.default.green(status2);
148836
149128
  }
148837
149129
  if (status2 === "failed") {
148838
- return import_chalk100.default.red(status2);
149130
+ return import_chalk101.default.red(status2);
148839
149131
  }
148840
149132
  if (status2 === "skipped") {
148841
- return import_chalk100.default.gray(status2);
149133
+ return import_chalk101.default.gray(status2);
148842
149134
  }
148843
- return import_chalk100.default.yellow(status2);
149135
+ return import_chalk101.default.yellow(status2);
148844
149136
  }
148845
- var import_chalk100;
149137
+ var import_chalk101;
148846
149138
  var init_render_alias_status = __esm({
148847
149139
  "src/util/alias/render-alias-status.ts"() {
148848
149140
  "use strict";
148849
- import_chalk100 = __toESM3(require_source());
149141
+ import_chalk101 = __toESM3(require_source());
148850
149142
  }
148851
149143
  });
148852
149144
 
@@ -148921,7 +149213,7 @@ async function promoteStatus({
148921
149213
  }
148922
149214
  if (requestedAt < recentThreshold || Date.now() >= promoteTimeout) {
148923
149215
  output2.log(
148924
- `The promotion exceeded its deadline - rerun ${import_chalk101.default.bold(
149216
+ `The promotion exceeded its deadline - rerun ${import_chalk102.default.bold(
148925
149217
  `${packageName} promote ${toDeploymentId}`
148926
149218
  )} to try again`
148927
149219
  );
@@ -148987,26 +149279,26 @@ async function renderJobSucceeded({
148987
149279
  let deploymentInfo = "";
148988
149280
  try {
148989
149281
  const deployment = await getDeployment(client2, contextName, toDeploymentId);
148990
- deploymentInfo = `${import_chalk101.default.bold(deployment.url)} (${toDeploymentId})`;
149282
+ deploymentInfo = `${import_chalk102.default.bold(deployment.url)} (${toDeploymentId})`;
148991
149283
  } catch (err) {
148992
149284
  output2.debug(
148993
149285
  `Failed to get deployment url for ${toDeploymentId}: ${err?.toString() || err}`
148994
149286
  );
148995
- deploymentInfo = import_chalk101.default.bold(toDeploymentId);
149287
+ deploymentInfo = import_chalk102.default.bold(toDeploymentId);
148996
149288
  }
148997
149289
  const duration = performingPromote ? elapsed(Date.now() - requestedAt) : "";
148998
149290
  output2.log(
148999
- `Success! ${import_chalk101.default.bold(
149291
+ `Success! ${import_chalk102.default.bold(
149000
149292
  project.name
149001
149293
  )} was promoted to ${deploymentInfo} ${duration}`
149002
149294
  );
149003
149295
  return 0;
149004
149296
  }
149005
- var import_chalk101, import_ms23;
149297
+ var import_chalk102, import_ms23;
149006
149298
  var init_status = __esm({
149007
149299
  "src/commands/promote/status.ts"() {
149008
149300
  "use strict";
149009
- import_chalk101 = __toESM3(require_source());
149301
+ import_chalk102 = __toESM3(require_source());
149010
149302
  init_elapsed();
149011
149303
  init_format_date();
149012
149304
  init_get_deployment();
@@ -149063,7 +149355,7 @@ async function requestPromote({
149063
149355
  }
149064
149356
  );
149065
149357
  output2.log(
149066
- `Successfully created new deployment of ${import_chalk102.default.bold(project.name)} at ${newDeployment.inspectorUrl}`
149358
+ `Successfully created new deployment of ${import_chalk103.default.bold(project.name)} at ${newDeployment.inspectorUrl}`
149067
149359
  );
149068
149360
  return 0;
149069
149361
  } else {
@@ -149076,7 +149368,7 @@ async function requestPromote({
149076
149368
  }
149077
149369
  if (timeout !== void 0 && (0, import_ms24.default)(timeout) === 0) {
149078
149370
  output2.log(
149079
- `Successfully requested promote of ${import_chalk102.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
149371
+ `Successfully requested promote of ${import_chalk103.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
149080
149372
  );
149081
149373
  output2.log(`To check promote status, run ${getCommandName("promote")}.`);
149082
149374
  return 0;
@@ -149089,11 +149381,11 @@ async function requestPromote({
149089
149381
  timeout
149090
149382
  });
149091
149383
  }
149092
- var import_chalk102, import_ms24;
149384
+ var import_chalk103, import_ms24;
149093
149385
  var init_request_promote = __esm({
149094
149386
  "src/commands/promote/request-promote.ts"() {
149095
149387
  "use strict";
149096
- import_chalk102 = __toESM3(require_source());
149388
+ import_chalk103 = __toESM3(require_source());
149097
149389
  init_pkg_name();
149098
149390
  init_get_project_by_deployment();
149099
149391
  import_ms24 = __toESM3(require_ms2());
@@ -149255,7 +149547,7 @@ async function getDeploymentByIdOrURL({
149255
149547
  let team;
149256
149548
  try {
149257
149549
  output2.spinner(
149258
- `Fetching deployment "${deployIdOrUrl}" in ${import_chalk103.default.bold(contextName)}\u2026`
149550
+ `Fetching deployment "${deployIdOrUrl}" in ${import_chalk104.default.bold(contextName)}\u2026`
149259
149551
  );
149260
149552
  const [teamResult, deploymentResult] = await Promise.allSettled([
149261
149553
  config2.currentTeam ? getTeamById(client2, config2.currentTeam) : void 0,
@@ -149272,7 +149564,7 @@ async function getDeploymentByIdOrURL({
149272
149564
  team = teamResult.value;
149273
149565
  deployment = deploymentResult.value;
149274
149566
  output2.log(
149275
- `Fetching deployment "${deployIdOrUrl}" in ${import_chalk103.default.bold(contextName)}\u2026`
149567
+ `Fetching deployment "${deployIdOrUrl}" in ${import_chalk104.default.bold(contextName)}\u2026`
149276
149568
  );
149277
149569
  } finally {
149278
149570
  output2.stopSpinner();
@@ -149280,7 +149572,7 @@ async function getDeploymentByIdOrURL({
149280
149572
  if (deployment.team?.id) {
149281
149573
  if (!team || deployment.team.id !== team.id) {
149282
149574
  const err = new Error(
149283
- team ? `Deployment doesn't belong to current team ${import_chalk103.default.bold(
149575
+ team ? `Deployment doesn't belong to current team ${import_chalk104.default.bold(
149284
149576
  contextName
149285
149577
  )}` : `Deployment belongs to a different team`
149286
149578
  );
@@ -149289,18 +149581,18 @@ async function getDeploymentByIdOrURL({
149289
149581
  }
149290
149582
  } else if (team) {
149291
149583
  const err = new Error(
149292
- `Deployment doesn't belong to current team ${import_chalk103.default.bold(contextName)}`
149584
+ `Deployment doesn't belong to current team ${import_chalk104.default.bold(contextName)}`
149293
149585
  );
149294
149586
  err.code = "ERR_INVALID_TEAM";
149295
149587
  throw err;
149296
149588
  }
149297
149589
  return deployment;
149298
149590
  }
149299
- var import_chalk103;
149591
+ var import_chalk104;
149300
149592
  var init_get_deployment_by_id_or_url = __esm({
149301
149593
  "src/util/deploy/get-deployment-by-id-or-url.ts"() {
149302
149594
  "use strict";
149303
- import_chalk103 = __toESM3(require_source());
149595
+ import_chalk104 = __toESM3(require_source());
149304
149596
  init_get_deployment();
149305
149597
  init_get_team_by_id();
149306
149598
  init_is_valid_name();
@@ -149399,14 +149691,14 @@ async function redeploy(client2) {
149399
149691
  const previewUrl = `https://${deployment.url}`;
149400
149692
  output2.print(
149401
149693
  `${prependEmoji(
149402
- `Inspect: ${import_chalk104.default.bold(deployment.inspectorUrl)} ${deployStamp()}`,
149694
+ `Inspect: ${import_chalk105.default.bold(deployment.inspectorUrl)} ${deployStamp()}`,
149403
149695
  emoji("inspect")
149404
149696
  )}
149405
149697
  `
149406
149698
  );
149407
149699
  output2.print(
149408
149700
  prependEmoji(
149409
- `${isProdDeployment ? "Production" : "Preview"}: ${import_chalk104.default.bold(
149701
+ `${isProdDeployment ? "Production" : "Preview"}: ${import_chalk105.default.bold(
149410
149702
  previewUrl
149411
149703
  )} ${deployStamp()}`,
149412
149704
  emoji("success")
@@ -149435,7 +149727,7 @@ async function redeploy(client2) {
149435
149727
  token: client2.authConfig.token,
149436
149728
  userAgent: ua_default
149437
149729
  };
149438
- for await (const event of (0, import_client14.checkDeploymentStatus)(
149730
+ for await (const event of (0, import_client12.checkDeploymentStatus)(
149439
149731
  deployment,
149440
149732
  clientOptions
149441
149733
  )) {
@@ -149476,18 +149768,18 @@ async function redeploy(client2) {
149476
149768
  output2.prettyError(err);
149477
149769
  if ((0, import_error_utils30.isErrnoException)(err) && err.code === "ERR_INVALID_TEAM") {
149478
149770
  output2.error(
149479
- `Use ${import_chalk104.default.bold("vc switch")} to change your current team`
149771
+ `Use ${import_chalk105.default.bold("vc switch")} to change your current team`
149480
149772
  );
149481
149773
  }
149482
149774
  return 1;
149483
149775
  }
149484
149776
  }
149485
- var import_chalk104, import_client14, import_error_utils30;
149777
+ var import_chalk105, import_client12, import_error_utils30;
149486
149778
  var init_redeploy = __esm({
149487
149779
  "src/commands/redeploy/index.ts"() {
149488
149780
  "use strict";
149489
- import_chalk104 = __toESM3(require_source());
149490
- import_client14 = __toESM3(require_dist12());
149781
+ import_chalk105 = __toESM3(require_source());
149782
+ import_client12 = __toESM3(require_dist12());
149491
149783
  init_emoji();
149492
149784
  init_get_args();
149493
149785
  init_pkg_name();
@@ -149696,7 +149988,7 @@ async function remove3(client2) {
149696
149988
  }
149697
149989
  const { contextName } = await getScope(client2);
149698
149990
  output2.spinner(
149699
- `Fetching deployment(s) ${ids.map((id) => `"${id}"`).join(" ")} in ${import_chalk105.default.bold(contextName)}`
149991
+ `Fetching deployment(s) ${ids.map((id) => `"${id}"`).join(" ")} in ${import_chalk106.default.bold(contextName)}`
149700
149992
  );
149701
149993
  let aliases;
149702
149994
  let projects;
@@ -149762,12 +150054,12 @@ async function remove3(client2) {
149762
150054
  });
149763
150055
  if (deployments.length === 0 && projects.length === 0) {
149764
150056
  log2(
149765
- `Could not find ${parsedArgs.flags["--safe"] ? "unaliased" : "any"} deployments or projects matching ${ids.map((id) => import_chalk105.default.bold(`"${id}"`)).join(", ")}. Run ${getCommandName("projects ls")} to list.`
150057
+ `Could not find ${parsedArgs.flags["--safe"] ? "unaliased" : "any"} deployments or projects matching ${ids.map((id) => import_chalk106.default.bold(`"${id}"`)).join(", ")}. Run ${getCommandName("projects ls")} to list.`
149766
150058
  );
149767
150059
  return 1;
149768
150060
  }
149769
150061
  log2(
149770
- `Found ${deploymentsAndProjects(deployments, projects)} for removal in ${import_chalk105.default.bold(contextName)} ${elapsed(Date.now() - findStart)}`
150062
+ `Found ${deploymentsAndProjects(deployments, projects)} for removal in ${import_chalk106.default.bold(contextName)} ${elapsed(Date.now() - findStart)}`
149771
150063
  );
149772
150064
  if (deployments.length > 200) {
149773
150065
  output2.warn(
@@ -149794,11 +150086,11 @@ async function remove3(client2) {
149794
150086
  `Removed ${deploymentsAndProjects(deployments, projects)} ${elapsed(Date.now() - start)}`
149795
150087
  );
149796
150088
  deployments.forEach((depl) => {
149797
- output2.print(`${import_chalk105.default.gray("-")} ${import_chalk105.default.bold(depl.url)}
150089
+ output2.print(`${import_chalk106.default.gray("-")} ${import_chalk106.default.bold(depl.url)}
149798
150090
  `);
149799
150091
  });
149800
150092
  projects.forEach((project) => {
149801
- output2.print(`${import_chalk105.default.gray("-")} ${import_chalk105.default.bold(project.name)}
150093
+ output2.print(`${import_chalk106.default.gray("-")} ${import_chalk106.default.bold(project.name)}
149802
150094
  `);
149803
150095
  });
149804
150096
  return 0;
@@ -149815,8 +150107,8 @@ function readConfirmation4(deployments, projects, output2) {
149815
150107
  );
149816
150108
  const deploymentTable = table(
149817
150109
  deployments.map((depl) => {
149818
- const time = import_chalk105.default.gray(`${(0, import_ms26.default)(Date.now() - depl.createdAt)} ago`);
149819
- const url3 = depl.url ? import_chalk105.default.underline(`https://${depl.url}`) : "";
150110
+ const time = import_chalk106.default.gray(`${(0, import_ms26.default)(Date.now() - depl.createdAt)} ago`);
150111
+ const url3 = depl.url ? import_chalk106.default.underline(`https://${depl.url}`) : "";
149820
150112
  return [` ${depl.id}`, url3, time];
149821
150113
  }),
149822
150114
  { align: ["l", "r", "l"], hsep: 6 }
@@ -149827,7 +150119,7 @@ function readConfirmation4(deployments, projects, output2) {
149827
150119
  for (const depl of deployments) {
149828
150120
  for (const { alias: alias2 } of depl.aliases) {
149829
150121
  output2.warn(
149830
- `${import_chalk105.default.underline(`https://${alias2}`)} is an alias for ${import_chalk105.default.bold(depl.url)} and will be removed`
150122
+ `${import_chalk106.default.underline(`https://${alias2}`)} is an alias for ${import_chalk106.default.bold(depl.url)} and will be removed`
149831
150123
  );
149832
150124
  }
149833
150125
  }
@@ -149841,12 +150133,12 @@ function readConfirmation4(deployments, projects, output2) {
149841
150133
  `
149842
150134
  );
149843
150135
  for (const project of projects) {
149844
- output2.print(`${import_chalk105.default.gray("-")} ${import_chalk105.default.bold(project.name)}
150136
+ output2.print(`${import_chalk106.default.gray("-")} ${import_chalk106.default.bold(project.name)}
149845
150137
  `);
149846
150138
  }
149847
150139
  }
149848
150140
  output2.print(
149849
- `${import_chalk105.default.bold.red("> Are you sure?")} ${import_chalk105.default.gray("(y/N) ")}`
150141
+ `${import_chalk106.default.bold.red("> Are you sure?")} ${import_chalk106.default.gray("(y/N) ")}`
149850
150142
  );
149851
150143
  process.stdin.on("data", (d) => {
149852
150144
  process.stdin.pause();
@@ -149863,11 +150155,11 @@ function deploymentsAndProjects(deployments, projects, conjunction = "and") {
149863
150155
  }
149864
150156
  return `${(0, import_pluralize11.default)("deployment", deployments.length, true)} ${conjunction} ${(0, import_pluralize11.default)("project", projects.length, true)}`;
149865
150157
  }
149866
- var import_chalk105, import_ms26, import_pluralize11;
150158
+ var import_chalk106, import_ms26, import_pluralize11;
149867
150159
  var init_remove = __esm({
149868
150160
  "src/commands/remove/index.ts"() {
149869
150161
  "use strict";
149870
- import_chalk105 = __toESM3(require_source());
150162
+ import_chalk106 = __toESM3(require_source());
149871
150163
  import_ms26 = __toESM3(require_ms2());
149872
150164
  import_pluralize11 = __toESM3(require_pluralize());
149873
150165
  init_table();
@@ -149962,7 +150254,7 @@ async function rollbackStatus({
149962
150254
  }
149963
150255
  if (requestedAt < recentThreshold || Date.now() >= rollbackTimeout) {
149964
150256
  output2.log(
149965
- `The rollback exceeded its deadline - rerun ${import_chalk106.default.bold(
150257
+ `The rollback exceeded its deadline - rerun ${import_chalk107.default.bold(
149966
150258
  `${packageName} rollback ${toDeploymentId}`
149967
150259
  )} to try again`
149968
150260
  );
@@ -150028,26 +150320,26 @@ async function renderJobSucceeded2({
150028
150320
  let deploymentInfo = "";
150029
150321
  try {
150030
150322
  const deployment = await getDeployment(client2, contextName, toDeploymentId);
150031
- deploymentInfo = `${import_chalk106.default.bold(deployment.url)} (${toDeploymentId})`;
150323
+ deploymentInfo = `${import_chalk107.default.bold(deployment.url)} (${toDeploymentId})`;
150032
150324
  } catch (err) {
150033
150325
  output2.debug(
150034
150326
  `Failed to get deployment url for ${toDeploymentId}: ${err?.toString() || err}`
150035
150327
  );
150036
- deploymentInfo = import_chalk106.default.bold(toDeploymentId);
150328
+ deploymentInfo = import_chalk107.default.bold(toDeploymentId);
150037
150329
  }
150038
150330
  const duration = performingRollback ? elapsed(Date.now() - requestedAt) : "";
150039
150331
  output2.log(
150040
- `Success! ${import_chalk106.default.bold(
150332
+ `Success! ${import_chalk107.default.bold(
150041
150333
  project.name
150042
150334
  )} was rolled back to ${deploymentInfo} ${duration}`
150043
150335
  );
150044
150336
  return 0;
150045
150337
  }
150046
- var import_chalk106, import_ms27;
150338
+ var import_chalk107, import_ms27;
150047
150339
  var init_status2 = __esm({
150048
150340
  "src/commands/rollback/status.ts"() {
150049
150341
  "use strict";
150050
- import_chalk106 = __toESM3(require_source());
150342
+ import_chalk107 = __toESM3(require_source());
150051
150343
  init_elapsed();
150052
150344
  init_format_date();
150053
150345
  init_get_deployment();
@@ -150080,7 +150372,7 @@ async function requestRollback({
150080
150372
  });
150081
150373
  if (timeout !== void 0 && (0, import_ms28.default)(timeout) === 0) {
150082
150374
  output2.log(
150083
- `Successfully requested rollback of ${import_chalk107.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
150375
+ `Successfully requested rollback of ${import_chalk108.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
150084
150376
  );
150085
150377
  output2.log(`To check rollback status, run ${getCommandName("rollback")}.`);
150086
150378
  return 0;
@@ -150093,11 +150385,11 @@ async function requestRollback({
150093
150385
  timeout
150094
150386
  });
150095
150387
  }
150096
- var import_chalk107, import_ms28;
150388
+ var import_chalk108, import_ms28;
150097
150389
  var init_request_rollback = __esm({
150098
150390
  "src/commands/rollback/request-rollback.ts"() {
150099
150391
  "use strict";
150100
- import_chalk107 = __toESM3(require_source());
150392
+ import_chalk108 = __toESM3(require_source());
150101
150393
  init_pkg_name();
150102
150394
  init_get_project_by_deployment();
150103
150395
  import_ms28 = __toESM3(require_ms2());
@@ -150241,11 +150533,11 @@ var init_rollback = __esm({
150241
150533
  });
150242
150534
 
150243
150535
  // src/commands/target/list.ts
150244
- async function list4(client2, argv, args2, link4) {
150536
+ async function list5(client2, argv, args2, link4) {
150245
150537
  const { output: output2 } = client2;
150246
150538
  if (args2.length !== 0) {
150247
150539
  output2.error(
150248
- `Invalid number of arguments. Usage: ${import_chalk108.default.cyan(
150540
+ `Invalid number of arguments. Usage: ${import_chalk109.default.cyan(
150249
150541
  `${getCommandName("target ls")}`
150250
150542
  )}`
150251
150543
  );
@@ -150269,12 +150561,12 @@ async function list4(client2, argv, args2, link4) {
150269
150561
  const elapsed2 = (0, import_ms30.default)(Date.now() - start);
150270
150562
  result = withDefaultEnvironmentsIncluded(result);
150271
150563
  output2.log(
150272
- `${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${import_chalk108.default.gray(`[${elapsed2}]`)}`
150564
+ `${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${import_chalk109.default.gray(`[${elapsed2}]`)}`
150273
150565
  );
150274
150566
  const tablePrint = table(
150275
150567
  [
150276
150568
  ["Target Name", "Target Slug", "Target ID", "Type", "Updated"].map(
150277
- (header) => import_chalk108.default.bold(import_chalk108.default.cyan(header))
150569
+ (header) => import_chalk109.default.bold(import_chalk109.default.cyan(header))
150278
150570
  ),
150279
150571
  ...result.map((target) => {
150280
150572
  const type = target.type === "production" ? "Production" : target.type === "development" ? "Development" : "Preview";
@@ -150289,7 +150581,7 @@ async function list4(client2, argv, args2, link4) {
150289
150581
  target.slug,
150290
150582
  target.id,
150291
150583
  type,
150292
- import_chalk108.default.gray(
150584
+ import_chalk109.default.gray(
150293
150585
  target.updatedAt > 0 ? (0, import_ms30.default)(Date.now() - target.updatedAt) : "-"
150294
150586
  )
150295
150587
  ]
@@ -150339,12 +150631,12 @@ function withDefaultEnvironmentsIncluded(environments) {
150339
150631
  }
150340
150632
  ];
150341
150633
  }
150342
- var import_ms30, import_chalk108;
150343
- var init_list4 = __esm({
150634
+ var import_ms30, import_chalk109;
150635
+ var init_list5 = __esm({
150344
150636
  "src/commands/target/list.ts"() {
150345
150637
  "use strict";
150346
150638
  import_ms30 = __toESM3(require_ms2());
150347
- import_chalk108 = __toESM3(require_source());
150639
+ import_chalk109 = __toESM3(require_source());
150348
150640
  init_table();
150349
150641
  init_pkg_name();
150350
150642
  init_format_project();
@@ -150418,7 +150710,7 @@ async function main12(client2) {
150418
150710
  switch (subcommand) {
150419
150711
  case "ls":
150420
150712
  case "list":
150421
- return await list4(client2, parsedArgs.flags, args2, linkedProject);
150713
+ return await list5(client2, parsedArgs.flags, args2, linkedProject);
150422
150714
  default:
150423
150715
  output2.error(getInvalidSubcommand(COMMAND_CONFIG11));
150424
150716
  client2.output.print(
@@ -150434,7 +150726,7 @@ var init_target = __esm({
150434
150726
  init_get_args();
150435
150727
  init_get_invalid_subcommand();
150436
150728
  init_help();
150437
- init_list4();
150729
+ init_list5();
150438
150730
  init_command26();
150439
150731
  init_ensure_link();
150440
150732
  init_get_flags_specification();
@@ -150446,13 +150738,13 @@ var init_target = __esm({
150446
150738
  });
150447
150739
 
150448
150740
  // src/commands/teams/command.ts
150449
- var listSubcommand, teamsCommand;
150741
+ var listSubcommand2, teamsCommand;
150450
150742
  var init_command27 = __esm({
150451
150743
  "src/commands/teams/command.ts"() {
150452
150744
  "use strict";
150453
150745
  init_pkg_name();
150454
150746
  init_arg_common();
150455
- listSubcommand = {
150747
+ listSubcommand2 = {
150456
150748
  name: "ls",
150457
150749
  description: "Show all teams you're a part of",
150458
150750
  arguments: [],
@@ -150476,7 +150768,7 @@ var init_command27 = __esm({
150476
150768
  options: [],
150477
150769
  examples: []
150478
150770
  },
150479
- listSubcommand,
150771
+ listSubcommand2,
150480
150772
  {
150481
150773
  name: "switch",
150482
150774
  description: "Switch to a different team",
@@ -150535,10 +150827,10 @@ var init_command27 = __esm({
150535
150827
  });
150536
150828
 
150537
150829
  // src/commands/teams/list.ts
150538
- async function list5(client2) {
150830
+ async function list6(client2) {
150539
150831
  const { config: config2, output: output2 } = client2;
150540
150832
  let parsedArgs = null;
150541
- const flagsSpecification = getFlagsSpecification(listSubcommand.options);
150833
+ const flagsSpecification = getFlagsSpecification(listSubcommand2.options);
150542
150834
  try {
150543
150835
  parsedArgs = parseArguments(client2.argv.slice(2), flagsSpecification);
150544
150836
  } catch (error3) {
@@ -150590,7 +150882,7 @@ async function list5(client2) {
150590
150882
  client2.stdout.write("\n");
150591
150883
  const teamTable = table(
150592
150884
  [
150593
- ["id", "email / name"].map((str) => (0, import_chalk109.gray)(str)),
150885
+ ["id", "email / name"].map((str) => (0, import_chalk110.gray)(str)),
150594
150886
  ...teamList.map((team) => [team.value, team.name])
150595
150887
  ],
150596
150888
  { hsep: 5 }
@@ -150607,13 +150899,13 @@ async function list5(client2) {
150607
150899
  }
150608
150900
  return 0;
150609
150901
  }
150610
- var import_chalk109;
150611
- var init_list5 = __esm({
150902
+ var import_chalk110;
150903
+ var init_list6 = __esm({
150612
150904
  "src/commands/teams/list.ts"() {
150613
150905
  "use strict";
150614
150906
  init_chars();
150615
150907
  init_table();
150616
- import_chalk109 = __toESM3(require_source());
150908
+ import_chalk110 = __toESM3(require_source());
150617
150909
  init_get_user();
150618
150910
  init_get_teams();
150619
150911
  init_pkg_name();
@@ -150673,7 +150965,7 @@ Please select a team scope using ${getCommandName(
150673
150965
  return 1;
150674
150966
  }
150675
150967
  output2.log(
150676
- introMsg || `Inviting team members to ${import_chalk110.default.bold(currentTeam.name)}`
150968
+ introMsg || `Inviting team members to ${import_chalk111.default.bold(currentTeam.name)}`
150677
150969
  );
150678
150970
  if (emails.length > 0) {
150679
150971
  for (const email3 of emails) {
@@ -150692,10 +150984,10 @@ Please select a team scope using ${getCommandName(
150692
150984
  throw err;
150693
150985
  }
150694
150986
  output2.log(
150695
- `${import_chalk110.default.cyan(chars_default.tick)} ${email3}${userInfo ? ` (${userInfo})` : ""} ${elapsed2()}`
150987
+ `${import_chalk111.default.cyan(chars_default.tick)} ${email3}${userInfo ? ` (${userInfo})` : ""} ${elapsed2()}`
150696
150988
  );
150697
150989
  } else {
150698
- output2.log(`${import_chalk110.default.red(`\u2716 ${email3}`)} ${import_chalk110.default.gray("[invalid]")}`);
150990
+ output2.log(`${import_chalk111.default.red(`\u2716 ${email3}`)} ${import_chalk111.default.gray("[invalid]")}`);
150699
150991
  }
150700
150992
  }
150701
150993
  return 0;
@@ -150728,15 +151020,15 @@ Please select a team scope using ${getCommandName(
150728
151020
  );
150729
151021
  email2 = `${email2}${username ? ` (${username})` : ""} ${elapsed2()}`;
150730
151022
  emails.push(email2);
150731
- output2.log(`${import_chalk110.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email2}`);
151023
+ output2.log(`${import_chalk111.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email2}`);
150732
151024
  if (hasError) {
150733
151025
  hasError = false;
150734
151026
  process.stderr.write(eraseLines(emails.length + 2));
150735
151027
  output2.log(
150736
- introMsg || `Inviting team members to ${import_chalk110.default.bold(currentTeam.name)}`
151028
+ introMsg || `Inviting team members to ${import_chalk111.default.bold(currentTeam.name)}`
150737
151029
  );
150738
151030
  for (const email3 of emails) {
150739
- output2.log(`${import_chalk110.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
151031
+ output2.log(`${import_chalk111.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
150740
151032
  }
150741
151033
  }
150742
151034
  } catch (err) {
@@ -150745,7 +151037,7 @@ Please select a team scope using ${getCommandName(
150745
151037
  output2.error((0, import_error_utils32.errorToString)(err));
150746
151038
  hasError = true;
150747
151039
  for (const email3 of emails) {
150748
- output2.log(`${import_chalk110.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email3}`);
151040
+ output2.log(`${import_chalk111.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email3}`);
150749
151041
  }
150750
151042
  }
150751
151043
  }
@@ -150758,16 +151050,16 @@ Please select a team scope using ${getCommandName(
150758
151050
  } else {
150759
151051
  output2.success(`Invited ${n} teammate${n > 1 ? "s" : ""}`);
150760
151052
  for (const email3 of emails) {
150761
- output2.log(`${import_chalk110.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
151053
+ output2.log(`${import_chalk111.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
150762
151054
  }
150763
151055
  }
150764
151056
  return 0;
150765
151057
  }
150766
- var import_chalk110, import_error_utils32, validateEmail2, domains;
151058
+ var import_chalk111, import_error_utils32, validateEmail2, domains;
150767
151059
  var init_invite = __esm({
150768
151060
  "src/commands/teams/invite.ts"() {
150769
151061
  "use strict";
150770
- import_chalk110 = __toESM3(require_source());
151062
+ import_chalk111 = __toESM3(require_source());
150771
151063
  init_cmd();
150772
151064
  init_stamp();
150773
151065
  init_param();
@@ -150838,7 +151130,7 @@ async function add8(client2) {
150838
151130
  let elapsed2;
150839
151131
  const { output: output2 } = client2;
150840
151132
  output2.log(
150841
- `Pick a team identifier for its URL (e.g.: ${import_chalk111.default.cyan(
151133
+ `Pick a team identifier for its URL (e.g.: ${import_chalk112.default.cyan(
150842
151134
  "`vercel.com/acme`"
150843
151135
  )})`
150844
151136
  );
@@ -150869,7 +151161,7 @@ async function add8(client2) {
150869
151161
  output2.stopSpinner();
150870
151162
  process.stdout.write(eraseLines(2));
150871
151163
  output2.success(`Team created ${elapsed2()}`);
150872
- output2.log(`${import_chalk111.default.cyan(`${chars_default.tick} `) + teamUrlPrefix + slug}
151164
+ output2.log(`${import_chalk112.default.cyan(`${chars_default.tick} `) + teamUrlPrefix + slug}
150873
151165
  `);
150874
151166
  output2.log("Pick a display name for your team");
150875
151167
  let name;
@@ -150892,7 +151184,7 @@ async function add8(client2) {
150892
151184
  process.stdout.write(eraseLines(2));
150893
151185
  team = Object.assign(team, res);
150894
151186
  output2.success(`Team name saved ${elapsed2()}`);
150895
- output2.log(`${import_chalk111.default.cyan(`${chars_default.tick} `) + teamNamePrefix + team.name}
151187
+ output2.log(`${import_chalk112.default.cyan(`${chars_default.tick} `) + teamNamePrefix + team.name}
150896
151188
  `);
150897
151189
  output2.spinner("Saving");
150898
151190
  client2.config.currentTeam = team.id;
@@ -150906,11 +151198,11 @@ async function add8(client2) {
150906
151198
  });
150907
151199
  return 0;
150908
151200
  }
150909
- var import_chalk111, import_error_utils33, validateSlug, validateName, teamUrlPrefix, teamNamePrefix;
151201
+ var import_chalk112, import_error_utils33, validateSlug, validateName, teamUrlPrefix, teamNamePrefix;
150910
151202
  var init_add7 = __esm({
150911
151203
  "src/commands/teams/add.ts"() {
150912
151204
  "use strict";
150913
- import_chalk111 = __toESM3(require_source());
151205
+ import_chalk112 = __toESM3(require_source());
150914
151206
  init_stamp();
150915
151207
  init_erase_lines();
150916
151208
  init_chars();
@@ -150922,7 +151214,7 @@ var init_add7 = __esm({
150922
151214
  import_error_utils33 = __toESM3(require_dist2());
150923
151215
  validateSlug = (value) => /^[a-z]+[a-z0-9_-]*$/.test(value);
150924
151216
  validateName = (value) => /^[ a-zA-Z0-9_-]+$/.test(value);
150925
- teamUrlPrefix = "Team URL".padEnd(14) + import_chalk111.default.gray("vercel.com/");
151217
+ teamUrlPrefix = "Team URL".padEnd(14) + import_chalk112.default.gray("vercel.com/");
150926
151218
  teamNamePrefix = "Team Name".padEnd(14);
150927
151219
  }
150928
151220
  });
@@ -150942,22 +151234,22 @@ async function main13(client2, desiredSlug) {
150942
151234
  const teamChoices = teams.slice(0).sort((a, b) => {
150943
151235
  return a.name.toLowerCase().localeCompare(b.name.toLowerCase());
150944
151236
  }).map((team) => {
150945
- let title7 = `${team.name} (${team.slug})`;
151237
+ let title8 = `${team.name} (${team.slug})`;
150946
151238
  const selected = team.id === currentTeam?.id;
150947
151239
  if (selected) {
150948
- title7 += ` ${import_chalk112.default.bold("(current)")}`;
151240
+ title8 += ` ${import_chalk113.default.bold("(current)")}`;
150949
151241
  }
150950
151242
  if (team.limited) {
150951
- title7 += ` ${emoji("locked")}`;
151243
+ title8 += ` ${emoji("locked")}`;
150952
151244
  }
150953
151245
  return {
150954
- name: title7,
151246
+ name: title8,
150955
151247
  value: team.slug,
150956
151248
  short: team.slug,
150957
151249
  selected
150958
151250
  };
150959
151251
  });
150960
- let suffix = personalScopeSelected ? ` ${import_chalk112.default.bold("(current)")}` : "";
151252
+ let suffix = personalScopeSelected ? ` ${import_chalk113.default.bold("(current)")}` : "";
150961
151253
  if (user.limited) {
150962
151254
  suffix += ` ${emoji("locked")}`;
150963
151255
  }
@@ -151003,14 +151295,14 @@ async function main13(client2, desiredSlug) {
151003
151295
  }
151004
151296
  updateCurrentTeam(output2, config2);
151005
151297
  output2.success(
151006
- `Your account (${import_chalk112.default.bold(user.username)}) is now active!`
151298
+ `Your account (${import_chalk113.default.bold(user.username)}) is now active!`
151007
151299
  );
151008
151300
  return 0;
151009
151301
  }
151010
151302
  const newTeam = teams.find((team) => team.slug === desiredSlug);
151011
151303
  if (!newTeam) {
151012
151304
  output2.error(
151013
- `You do not have permission to access scope ${import_chalk112.default.bold(desiredSlug)}.`
151305
+ `You do not have permission to access scope ${import_chalk113.default.bold(desiredSlug)}.`
151014
151306
  );
151015
151307
  return 1;
151016
151308
  }
@@ -151028,15 +151320,15 @@ async function main13(client2, desiredSlug) {
151028
151320
  }
151029
151321
  updateCurrentTeam(output2, config2, newTeam);
151030
151322
  output2.success(
151031
- `The team ${import_chalk112.default.bold(newTeam.name)} (${newTeam.slug}) is now active!`
151323
+ `The team ${import_chalk113.default.bold(newTeam.name)} (${newTeam.slug}) is now active!`
151032
151324
  );
151033
151325
  return 0;
151034
151326
  }
151035
- var import_chalk112, updateCurrentTeam;
151327
+ var import_chalk113, updateCurrentTeam;
151036
151328
  var init_switch = __esm({
151037
151329
  "src/commands/teams/switch.ts"() {
151038
151330
  "use strict";
151039
- import_chalk112 = __toESM3(require_source());
151331
+ import_chalk113 = __toESM3(require_source());
151040
151332
  init_emoji();
151041
151333
  init_get_user();
151042
151334
  init_get_teams();
@@ -151062,7 +151354,7 @@ var teams_default;
151062
151354
  var init_teams = __esm({
151063
151355
  "src/commands/teams/index.ts"() {
151064
151356
  "use strict";
151065
- init_list5();
151357
+ init_list6();
151066
151358
  init_add7();
151067
151359
  init_switch();
151068
151360
  init_invite();
@@ -151099,7 +151391,7 @@ var init_teams = __esm({
151099
151391
  switch (subcommand) {
151100
151392
  case "list":
151101
151393
  case "ls": {
151102
- exitCode2 = await list5(client2);
151394
+ exitCode2 = await list6(client2);
151103
151395
  break;
151104
151396
  }
151105
151397
  case "switch":
@@ -151136,10 +151428,10 @@ var init_teams = __esm({
151136
151428
  // src/commands/telemetry/status.ts
151137
151429
  async function status(client2) {
151138
151430
  const status2 = client2.config.telemetry?.enabled === false ? "disabled" : "enabled";
151139
- const message2 = status2 === "disabled" ? import_chalk113.default.red("Disabled") : import_chalk113.default.green("Enabled");
151431
+ const message2 = status2 === "disabled" ? import_chalk114.default.red("Disabled") : import_chalk114.default.green("Enabled");
151140
151432
  await client2.output.print(
151141
151433
  `
151142
- ${import_chalk113.default.bold("Telemetry status")}: ${message2}
151434
+ ${import_chalk114.default.bold("Telemetry status")}: ${message2}
151143
151435
 
151144
151436
  `
151145
151437
  );
@@ -151151,11 +151443,11 @@ No data will be collected from your machine${learnMoreMessage}`;
151151
151443
  await client2.output.print(optedInorOutMessage);
151152
151444
  return 0;
151153
151445
  }
151154
- var import_chalk113;
151446
+ var import_chalk114;
151155
151447
  var init_status3 = __esm({
151156
151448
  "src/commands/telemetry/status.ts"() {
151157
151449
  "use strict";
151158
- import_chalk113 = __toESM3(require_source());
151450
+ import_chalk114 = __toESM3(require_source());
151159
151451
  }
151160
151452
  });
151161
151453
 
@@ -151277,7 +151569,7 @@ async function telemetry(client2) {
151277
151569
  default: {
151278
151570
  const errorMessage = parsedArguments.args.length !== 2 ? `Invalid number of arguments` : `Invalid subcommand`;
151279
151571
  client2.output.print(
151280
- `${import_chalk114.default.red("Error")}: ${errorMessage}. See help instructions for usage:
151572
+ `${import_chalk115.default.red("Error")}: ${errorMessage}. See help instructions for usage:
151281
151573
  `
151282
151574
  );
151283
151575
  client2.output.print(
@@ -151287,7 +151579,7 @@ async function telemetry(client2) {
151287
151579
  }
151288
151580
  }
151289
151581
  }
151290
- var import_chalk114, COMMAND_CONFIG12;
151582
+ var import_chalk115, COMMAND_CONFIG12;
151291
151583
  var init_telemetry2 = __esm({
151292
151584
  "src/commands/telemetry/index.ts"() {
151293
151585
  "use strict";
@@ -151300,7 +151592,7 @@ var init_telemetry2 = __esm({
151300
151592
  init_disable();
151301
151593
  init_command28();
151302
151594
  init_get_flags_specification();
151303
- import_chalk114 = __toESM3(require_source());
151595
+ import_chalk115 = __toESM3(require_source());
151304
151596
  COMMAND_CONFIG12 = {
151305
151597
  status: ["status"],
151306
151598
  enable: ["enable"],
@@ -151375,7 +151667,7 @@ var import_error_utils34 = __toESM3(require_dist2());
151375
151667
  var import_path43 = require("path");
151376
151668
  var import_fs9 = require("fs");
151377
151669
  var import_fs_extra23 = __toESM3(require_lib());
151378
- var import_chalk115 = __toESM3(require_source());
151670
+ var import_chalk116 = __toESM3(require_source());
151379
151671
  var import_epipebomb = __toESM3(require_epipebomb());
151380
151672
 
151381
151673
  // src/util/get-latest-version/index.ts
@@ -152595,13 +152887,13 @@ var main14 = async () => {
152595
152887
  const betaCommands = [];
152596
152888
  if (betaCommands.includes(targetOrSubcommand)) {
152597
152889
  output.print(
152598
- `${import_chalk115.default.grey(
152890
+ `${import_chalk116.default.grey(
152599
152891
  `${getTitleName()} CLI ${pkg_default.version} ${targetOrSubcommand} (beta) \u2014 https://vercel.com/feedback`
152600
152892
  )}
152601
152893
  `
152602
152894
  );
152603
152895
  } else {
152604
- output.print(`${import_chalk115.default.grey(`${getTitleName()} CLI ${pkg_default.version}`)}
152896
+ output.print(`${import_chalk116.default.grey(`${getTitleName()} CLI ${pkg_default.version}`)}
152605
152897
  `);
152606
152898
  }
152607
152899
  if (!targetOrSubcommand && parsedArgs.flags["--version"]) {
@@ -152935,7 +153227,7 @@ var main14 = async () => {
152935
153227
  func = (init_link3(), __toCommonJS3(link_exports)).default;
152936
153228
  break;
152937
153229
  case "list":
152938
- func = (init_list2(), __toCommonJS3(list_exports)).default;
153230
+ func = (init_list3(), __toCommonJS3(list_exports)).default;
152939
153231
  break;
152940
153232
  case "logs":
152941
153233
  func = (init_logs2(), __toCommonJS3(logs_exports)).default;
@@ -153077,20 +153369,20 @@ main14().then(async (exitCode2) => {
153077
153369
  });
153078
153370
  if (latest) {
153079
153371
  const changelog = "https://github.com/vercel/vercel/releases";
153080
- const errorMsg = exitCode2 && exitCode2 !== 2 ? import_chalk115.default.magenta(
153372
+ const errorMsg = exitCode2 && exitCode2 !== 2 ? import_chalk116.default.magenta(
153081
153373
  `
153082
153374
 
153083
- The latest update ${import_chalk115.default.italic(
153375
+ The latest update ${import_chalk116.default.italic(
153084
153376
  "may"
153085
153377
  )} fix any errors that occurred.`
153086
153378
  ) : "";
153087
153379
  output.print(
153088
153380
  box(
153089
- `Update available! ${import_chalk115.default.gray(`v${pkg_default.version}`)} \u226B ${import_chalk115.default.green(
153381
+ `Update available! ${import_chalk116.default.gray(`v${pkg_default.version}`)} \u226B ${import_chalk116.default.green(
153090
153382
  `v${latest}`
153091
153383
  )}
153092
153384
  Changelog: ${output.link(changelog, changelog, { fallback: false })}
153093
- Run ${import_chalk115.default.cyan(cmd(await getUpdateCommand()))} to update.${errorMsg}`
153385
+ Run ${import_chalk116.default.cyan(cmd(await getUpdateCommand()))} to update.${errorMsg}`
153094
153386
  )
153095
153387
  );
153096
153388
  output.print("\n\n");