vercel-cli 48.0.3__py3-none-any.whl → 48.1.0__py3-none-any.whl

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.

Potentially problematic release.


This version of vercel-cli might be problematic. Click here for more details.

@@ -4071,14 +4071,14 @@ var require_templates = __commonJS2({
4071
4071
  }
4072
4072
  return results;
4073
4073
  }
4074
- function buildStyle(chalk127, styles) {
4074
+ function buildStyle(chalk128, styles) {
4075
4075
  const enabled = {};
4076
4076
  for (const layer of styles) {
4077
4077
  for (const style of layer.styles) {
4078
4078
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
4079
4079
  }
4080
4080
  }
4081
- let current = chalk127;
4081
+ let current = chalk128;
4082
4082
  for (const [styleName, styles2] of Object.entries(enabled)) {
4083
4083
  if (!Array.isArray(styles2)) {
4084
4084
  continue;
@@ -4090,7 +4090,7 @@ var require_templates = __commonJS2({
4090
4090
  }
4091
4091
  return current;
4092
4092
  }
4093
- module2.exports = (chalk127, temporary) => {
4093
+ module2.exports = (chalk128, temporary) => {
4094
4094
  const styles = [];
4095
4095
  const chunks = [];
4096
4096
  let chunk = [];
@@ -4100,13 +4100,13 @@ var require_templates = __commonJS2({
4100
4100
  } else if (style) {
4101
4101
  const string = chunk.join("");
4102
4102
  chunk = [];
4103
- chunks.push(styles.length === 0 ? string : buildStyle(chalk127, styles)(string));
4103
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk128, styles)(string));
4104
4104
  styles.push({ inverse, styles: parseStyle(style) });
4105
4105
  } else if (close2) {
4106
4106
  if (styles.length === 0) {
4107
4107
  throw new Error("Found extraneous } in Chalk template literal");
4108
4108
  }
4109
- chunks.push(buildStyle(chalk127, styles)(chunk.join("")));
4109
+ chunks.push(buildStyle(chalk128, styles)(chunk.join("")));
4110
4110
  chunk = [];
4111
4111
  styles.pop();
4112
4112
  } else {
@@ -4154,16 +4154,16 @@ var require_source = __commonJS2({
4154
4154
  }
4155
4155
  };
4156
4156
  var chalkFactory = (options) => {
4157
- const chalk128 = {};
4158
- applyOptions(chalk128, options);
4159
- chalk128.template = (...arguments_) => chalkTag(chalk128.template, ...arguments_);
4160
- Object.setPrototypeOf(chalk128, Chalk.prototype);
4161
- Object.setPrototypeOf(chalk128.template, chalk128);
4162
- chalk128.template.constructor = () => {
4157
+ const chalk129 = {};
4158
+ applyOptions(chalk129, options);
4159
+ chalk129.template = (...arguments_) => chalkTag(chalk129.template, ...arguments_);
4160
+ Object.setPrototypeOf(chalk129, Chalk.prototype);
4161
+ Object.setPrototypeOf(chalk129.template, chalk129);
4162
+ chalk129.template.constructor = () => {
4163
4163
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
4164
4164
  };
4165
- chalk128.template.Instance = ChalkClass;
4166
- return chalk128.template;
4165
+ chalk129.template.Instance = ChalkClass;
4166
+ return chalk129.template;
4167
4167
  };
4168
4168
  function Chalk(options) {
4169
4169
  return chalkFactory(options);
@@ -4274,7 +4274,7 @@ var require_source = __commonJS2({
4274
4274
  return openAll + string + closeAll;
4275
4275
  };
4276
4276
  var template;
4277
- var chalkTag = (chalk128, ...strings) => {
4277
+ var chalkTag = (chalk129, ...strings) => {
4278
4278
  const [firstString] = strings;
4279
4279
  if (!isArray(firstString) || !isArray(firstString.raw)) {
4280
4280
  return strings.join(" ");
@@ -4290,14 +4290,14 @@ var require_source = __commonJS2({
4290
4290
  if (template === void 0) {
4291
4291
  template = require_templates();
4292
4292
  }
4293
- return template(chalk128, parts.join(""));
4293
+ return template(chalk129, parts.join(""));
4294
4294
  };
4295
4295
  Object.defineProperties(Chalk.prototype, styles);
4296
- var chalk127 = Chalk();
4297
- chalk127.supportsColor = stdoutColor;
4298
- chalk127.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
4299
- chalk127.stderr.supportsColor = stderrColor;
4300
- module2.exports = chalk127;
4296
+ var chalk128 = Chalk();
4297
+ chalk128.supportsColor = stdoutColor;
4298
+ chalk128.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
4299
+ chalk128.stderr.supportsColor = stderrColor;
4300
+ module2.exports = chalk128;
4301
4301
  }
4302
4302
  });
4303
4303
 
@@ -7208,14 +7208,14 @@ var require_templates2 = __commonJS2({
7208
7208
  }
7209
7209
  return results;
7210
7210
  }
7211
- function buildStyle(chalk127, styles) {
7211
+ function buildStyle(chalk128, styles) {
7212
7212
  const enabled = {};
7213
7213
  for (const layer of styles) {
7214
7214
  for (const style of layer.styles) {
7215
7215
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
7216
7216
  }
7217
7217
  }
7218
- let current = chalk127;
7218
+ let current = chalk128;
7219
7219
  for (const styleName of Object.keys(enabled)) {
7220
7220
  if (Array.isArray(enabled[styleName])) {
7221
7221
  if (!(styleName in current)) {
@@ -7230,7 +7230,7 @@ var require_templates2 = __commonJS2({
7230
7230
  }
7231
7231
  return current;
7232
7232
  }
7233
- module2.exports = (chalk127, tmp) => {
7233
+ module2.exports = (chalk128, tmp) => {
7234
7234
  const styles = [];
7235
7235
  const chunks = [];
7236
7236
  let chunk = [];
@@ -7240,13 +7240,13 @@ var require_templates2 = __commonJS2({
7240
7240
  } else if (style) {
7241
7241
  const str = chunk.join("");
7242
7242
  chunk = [];
7243
- chunks.push(styles.length === 0 ? str : buildStyle(chalk127, styles)(str));
7243
+ chunks.push(styles.length === 0 ? str : buildStyle(chalk128, styles)(str));
7244
7244
  styles.push({ inverse, styles: parseStyle(style) });
7245
7245
  } else if (close2) {
7246
7246
  if (styles.length === 0) {
7247
7247
  throw new Error("Found extraneous } in Chalk template literal");
7248
7248
  }
7249
- chunks.push(buildStyle(chalk127, styles)(chunk.join("")));
7249
+ chunks.push(buildStyle(chalk128, styles)(chunk.join("")));
7250
7250
  chunk = [];
7251
7251
  styles.pop();
7252
7252
  } else {
@@ -7283,16 +7283,16 @@ var require_chalk = __commonJS2({
7283
7283
  }
7284
7284
  function Chalk(options) {
7285
7285
  if (!this || !(this instanceof Chalk) || this.template) {
7286
- const chalk127 = {};
7287
- applyOptions(chalk127, options);
7288
- chalk127.template = function() {
7286
+ const chalk128 = {};
7287
+ applyOptions(chalk128, options);
7288
+ chalk128.template = function() {
7289
7289
  const args2 = [].slice.call(arguments);
7290
- return chalkTag.apply(null, [chalk127.template].concat(args2));
7290
+ return chalkTag.apply(null, [chalk128.template].concat(args2));
7291
7291
  };
7292
- Object.setPrototypeOf(chalk127, Chalk.prototype);
7293
- Object.setPrototypeOf(chalk127.template, chalk127);
7294
- chalk127.template.constructor = Chalk;
7295
- return chalk127.template;
7292
+ Object.setPrototypeOf(chalk128, Chalk.prototype);
7293
+ Object.setPrototypeOf(chalk128.template, chalk128);
7294
+ chalk128.template.constructor = Chalk;
7295
+ return chalk128.template;
7296
7296
  }
7297
7297
  applyOptions(this, options);
7298
7298
  }
@@ -7411,7 +7411,7 @@ var require_chalk = __commonJS2({
7411
7411
  ansiStyles.dim.open = originalDim;
7412
7412
  return str;
7413
7413
  }
7414
- function chalkTag(chalk127, strings) {
7414
+ function chalkTag(chalk128, strings) {
7415
7415
  if (!Array.isArray(strings)) {
7416
7416
  return [].slice.call(arguments, 1).join(" ");
7417
7417
  }
@@ -7421,7 +7421,7 @@ var require_chalk = __commonJS2({
7421
7421
  parts.push(String(args2[i - 1]).replace(/[{}\\]/g, "\\$&"));
7422
7422
  parts.push(String(strings.raw[i]));
7423
7423
  }
7424
- return template(chalk127, parts.join(""));
7424
+ return template(chalk128, parts.join(""));
7425
7425
  }
7426
7426
  Object.defineProperties(Chalk.prototype, styles);
7427
7427
  module2.exports = Chalk();
@@ -9372,19 +9372,19 @@ var require_cli_spinners = __commonJS2({
9372
9372
  var require_log_symbols = __commonJS2({
9373
9373
  "../../node_modules/.pnpm/log-symbols@2.2.0/node_modules/log-symbols/index.js"(exports2, module2) {
9374
9374
  "use strict";
9375
- var chalk127 = require_chalk();
9375
+ var chalk128 = require_chalk();
9376
9376
  var isSupported = process.platform !== "win32" || process.env.CI || process.env.TERM === "xterm-256color";
9377
9377
  var main18 = {
9378
- info: chalk127.blue("\u2139"),
9379
- success: chalk127.green("\u2714"),
9380
- warning: chalk127.yellow("\u26A0"),
9381
- error: chalk127.red("\u2716")
9378
+ info: chalk128.blue("\u2139"),
9379
+ success: chalk128.green("\u2714"),
9380
+ warning: chalk128.yellow("\u26A0"),
9381
+ error: chalk128.red("\u2716")
9382
9382
  };
9383
9383
  var fallbacks = {
9384
- info: chalk127.blue("i"),
9385
- success: chalk127.green("\u221A"),
9386
- warning: chalk127.yellow("\u203C"),
9387
- error: chalk127.red("\xD7")
9384
+ info: chalk128.blue("i"),
9385
+ success: chalk128.green("\u221A"),
9386
+ warning: chalk128.yellow("\u203C"),
9387
+ error: chalk128.red("\xD7")
9388
9388
  };
9389
9389
  module2.exports = isSupported ? main18 : fallbacks;
9390
9390
  }
@@ -9780,7 +9780,7 @@ var require_wcwidth = __commonJS2({
9780
9780
  var require_ora = __commonJS2({
9781
9781
  "../../node_modules/.pnpm/ora@3.4.0/node_modules/ora/index.js"(exports2, module2) {
9782
9782
  "use strict";
9783
- var chalk127 = require_chalk();
9783
+ var chalk128 = require_chalk();
9784
9784
  var cliCursor = require_cli_cursor();
9785
9785
  var cliSpinners = require_cli_spinners();
9786
9786
  var logSymbols = require_log_symbols();
@@ -9869,7 +9869,7 @@ var require_ora = __commonJS2({
9869
9869
  const { frames } = this.spinner;
9870
9870
  let frame = frames[this.frameIndex];
9871
9871
  if (this.color) {
9872
- frame = chalk127[this.color](frame);
9872
+ frame = chalk128[this.color](frame);
9873
9873
  }
9874
9874
  this.frameIndex = ++this.frameIndex % frames.length;
9875
9875
  const fullPrefixText = typeof this.prefixText === "string" ? this.prefixText + " " : "";
@@ -32452,7 +32452,7 @@ var init_env_target = __esm({
32452
32452
  });
32453
32453
 
32454
32454
  // src/commands/env/command.ts
32455
- var targetPlaceholder, listSubcommand5, addSubcommand4, removeSubcommand5, pullSubcommand, envCommand;
32455
+ var targetPlaceholder, listSubcommand5, addSubcommand4, removeSubcommand5, pullSubcommand, updateSubcommand, envCommand;
32456
32456
  var init_command10 = __esm({
32457
32457
  "src/commands/env/command.ts"() {
32458
32458
  "use strict";
@@ -32646,6 +32646,65 @@ var init_command10 = __esm({
32646
32646
  }
32647
32647
  ]
32648
32648
  };
32649
+ updateSubcommand = {
32650
+ name: "update",
32651
+ aliases: [],
32652
+ description: "Update the value of an existing Environment Variable (see examples below)",
32653
+ arguments: [
32654
+ {
32655
+ name: "name",
32656
+ required: true
32657
+ },
32658
+ {
32659
+ name: "environment",
32660
+ required: false
32661
+ }
32662
+ ],
32663
+ options: [
32664
+ {
32665
+ name: "sensitive",
32666
+ description: "Update to a sensitive Environment Variable",
32667
+ shorthand: null,
32668
+ type: Boolean,
32669
+ deprecated: false
32670
+ },
32671
+ {
32672
+ ...yesOption,
32673
+ description: "Skip the confirmation prompt when updating an Environment Variable"
32674
+ }
32675
+ ],
32676
+ examples: [
32677
+ {
32678
+ name: "Update a variable in all Environments",
32679
+ value: [
32680
+ `${packageName} env update <name>`,
32681
+ `${packageName} env update API_TOKEN`
32682
+ ]
32683
+ },
32684
+ {
32685
+ name: "Update a variable in a specific Environment",
32686
+ value: [
32687
+ `${packageName} env update <name> ${targetPlaceholder}`,
32688
+ `${packageName} env update DB_PASS production`
32689
+ ]
32690
+ },
32691
+ {
32692
+ name: "Update a variable for a specific Environment and Git Branch",
32693
+ value: [
32694
+ `${packageName} env update <name> ${targetPlaceholder} <gitbranch>`,
32695
+ `${packageName} env update NPM_RC preview feat1`
32696
+ ]
32697
+ },
32698
+ {
32699
+ name: "Update a variable from stdin",
32700
+ value: [
32701
+ `cat <file> | ${packageName} env update <name> ${targetPlaceholder}`,
32702
+ `cat ~/.npmrc | ${packageName} env update NPM_RC preview`,
32703
+ `${packageName} env update API_URL production < url.txt`
32704
+ ]
32705
+ }
32706
+ ]
32707
+ };
32649
32708
  envCommand = {
32650
32709
  name: "env",
32651
32710
  aliases: [],
@@ -32655,7 +32714,8 @@ var init_command10 = __esm({
32655
32714
  addSubcommand4,
32656
32715
  listSubcommand5,
32657
32716
  pullSubcommand,
32658
- removeSubcommand5
32717
+ removeSubcommand5,
32718
+ updateSubcommand
32659
32719
  ],
32660
32720
  options: [],
32661
32721
  examples: []
@@ -36006,14 +36066,14 @@ var require_templates3 = __commonJS2({
36006
36066
  }
36007
36067
  return results;
36008
36068
  }
36009
- function buildStyle(chalk127, styles) {
36069
+ function buildStyle(chalk128, styles) {
36010
36070
  const enabled = {};
36011
36071
  for (const layer of styles) {
36012
36072
  for (const style of layer.styles) {
36013
36073
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
36014
36074
  }
36015
36075
  }
36016
- let current = chalk127;
36076
+ let current = chalk128;
36017
36077
  for (const [styleName, styles2] of Object.entries(enabled)) {
36018
36078
  if (!Array.isArray(styles2)) {
36019
36079
  continue;
@@ -36025,7 +36085,7 @@ var require_templates3 = __commonJS2({
36025
36085
  }
36026
36086
  return current;
36027
36087
  }
36028
- module2.exports = (chalk127, temporary) => {
36088
+ module2.exports = (chalk128, temporary) => {
36029
36089
  const styles = [];
36030
36090
  const chunks = [];
36031
36091
  let chunk = [];
@@ -36035,13 +36095,13 @@ var require_templates3 = __commonJS2({
36035
36095
  } else if (style) {
36036
36096
  const string = chunk.join("");
36037
36097
  chunk = [];
36038
- chunks.push(styles.length === 0 ? string : buildStyle(chalk127, styles)(string));
36098
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk128, styles)(string));
36039
36099
  styles.push({ inverse, styles: parseStyle(style) });
36040
36100
  } else if (close2) {
36041
36101
  if (styles.length === 0) {
36042
36102
  throw new Error("Found extraneous } in Chalk template literal");
36043
36103
  }
36044
- chunks.push(buildStyle(chalk127, styles)(chunk.join("")));
36104
+ chunks.push(buildStyle(chalk128, styles)(chunk.join("")));
36045
36105
  chunk = [];
36046
36106
  styles.pop();
36047
36107
  } else {
@@ -36089,16 +36149,16 @@ var require_source2 = __commonJS2({
36089
36149
  }
36090
36150
  };
36091
36151
  var chalkFactory = (options) => {
36092
- const chalk128 = {};
36093
- applyOptions(chalk128, options);
36094
- chalk128.template = (...arguments_) => chalkTag(chalk128.template, ...arguments_);
36095
- Object.setPrototypeOf(chalk128, Chalk.prototype);
36096
- Object.setPrototypeOf(chalk128.template, chalk128);
36097
- chalk128.template.constructor = () => {
36152
+ const chalk129 = {};
36153
+ applyOptions(chalk129, options);
36154
+ chalk129.template = (...arguments_) => chalkTag(chalk129.template, ...arguments_);
36155
+ Object.setPrototypeOf(chalk129, Chalk.prototype);
36156
+ Object.setPrototypeOf(chalk129.template, chalk129);
36157
+ chalk129.template.constructor = () => {
36098
36158
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
36099
36159
  };
36100
- chalk128.template.Instance = ChalkClass;
36101
- return chalk128.template;
36160
+ chalk129.template.Instance = ChalkClass;
36161
+ return chalk129.template;
36102
36162
  };
36103
36163
  function Chalk(options) {
36104
36164
  return chalkFactory(options);
@@ -36209,7 +36269,7 @@ var require_source2 = __commonJS2({
36209
36269
  return openAll + string + closeAll;
36210
36270
  };
36211
36271
  var template;
36212
- var chalkTag = (chalk128, ...strings) => {
36272
+ var chalkTag = (chalk129, ...strings) => {
36213
36273
  const [firstString] = strings;
36214
36274
  if (!isArray(firstString) || !isArray(firstString.raw)) {
36215
36275
  return strings.join(" ");
@@ -36225,14 +36285,14 @@ var require_source2 = __commonJS2({
36225
36285
  if (template === void 0) {
36226
36286
  template = require_templates3();
36227
36287
  }
36228
- return template(chalk128, parts.join(""));
36288
+ return template(chalk129, parts.join(""));
36229
36289
  };
36230
36290
  Object.defineProperties(Chalk.prototype, styles);
36231
- var chalk127 = Chalk();
36232
- chalk127.supportsColor = stdoutColor;
36233
- chalk127.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
36234
- chalk127.stderr.supportsColor = stderrColor;
36235
- module2.exports = chalk127;
36291
+ var chalk128 = Chalk();
36292
+ chalk128.supportsColor = stdoutColor;
36293
+ chalk128.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
36294
+ chalk128.stderr.supportsColor = stderrColor;
36295
+ module2.exports = chalk128;
36236
36296
  }
36237
36297
  });
36238
36298
 
@@ -49485,7 +49545,7 @@ var require_package = __commonJS2({
49485
49545
  "../client/package.json"(exports2, module2) {
49486
49546
  module2.exports = {
49487
49547
  name: "@vercel/client",
49488
- version: "16.0.1",
49548
+ version: "17.0.0",
49489
49549
  main: "dist/index.js",
49490
49550
  typings: "dist/index.d.ts",
49491
49551
  homepage: "https://vercel.com",
@@ -58261,6 +58321,9 @@ var require_query_string = __commonJS2({
58261
58321
  if (clientOptions.skipAutoDetectionConfirmation) {
58262
58322
  options.set("skipAutoDetectionConfirmation", "1");
58263
58323
  }
58324
+ if (clientOptions.prebuilt) {
58325
+ options.set("prebuilt", "1");
58326
+ }
58264
58327
  return Array.from(options.entries()).length ? `?${options.toString()}` : "";
58265
58328
  }
58266
58329
  }
@@ -74708,11 +74771,11 @@ var require_esprima = __commonJS2({
74708
74771
  }();
74709
74772
  exports3.ForOfStatement = ForOfStatement;
74710
74773
  var ForStatement = function() {
74711
- function ForStatement2(init3, test, update, body) {
74774
+ function ForStatement2(init3, test, update2, body) {
74712
74775
  this.type = syntax_1.Syntax.ForStatement;
74713
74776
  this.init = init3;
74714
74777
  this.test = test;
74715
- this.update = update;
74778
+ this.update = update2;
74716
74779
  this.body = body;
74717
74780
  }
74718
74781
  return ForStatement2;
@@ -76816,7 +76879,7 @@ var require_esprima = __commonJS2({
76816
76879
  Parser2.prototype.parseForStatement = function() {
76817
76880
  var init3 = null;
76818
76881
  var test = null;
76819
- var update = null;
76882
+ var update2 = null;
76820
76883
  var forIn = true;
76821
76884
  var left, right;
76822
76885
  var node = this.createNode();
@@ -76929,7 +76992,7 @@ var require_esprima = __commonJS2({
76929
76992
  }
76930
76993
  this.expect(";");
76931
76994
  if (!this.match(")")) {
76932
- update = this.parseExpression();
76995
+ update2 = this.parseExpression();
76933
76996
  }
76934
76997
  }
76935
76998
  var body;
@@ -76943,7 +77006,7 @@ var require_esprima = __commonJS2({
76943
77006
  body = this.isolateCoverGrammar(this.parseStatement);
76944
77007
  this.context.inIteration = previousInIteration;
76945
77008
  }
76946
- return typeof left === "undefined" ? this.finalize(node, new Node.ForStatement(init3, test, update, body)) : forIn ? this.finalize(node, new Node.ForInStatement(left, right, body)) : this.finalize(node, new Node.ForOfStatement(left, right, body));
77009
+ return typeof left === "undefined" ? this.finalize(node, new Node.ForStatement(init3, test, update2, body)) : forIn ? this.finalize(node, new Node.ForInStatement(left, right, body)) : this.finalize(node, new Node.ForOfStatement(left, right, body));
76947
77010
  };
76948
77011
  Parser2.prototype.parseContinueStatement = function() {
76949
77012
  var node = this.createNode();
@@ -116222,8 +116285,9 @@ var require_frameworks = __commonJS2({
116222
116285
  ]
116223
116286
  },
116224
116287
  {
116225
- name: "FastAPI (Experimental)",
116288
+ name: "FastAPI",
116226
116289
  slug: "fastapi",
116290
+ demo: "https://vercel-fastapi-gamma-smoky.vercel.app/",
116227
116291
  logo: "https://api-frameworks.vercel.sh/framework-logos/fastapi.svg",
116228
116292
  darkModeLogo: "https://api-frameworks.vercel.sh/framework-logos/fastapi.svg",
116229
116293
  tagline: "FastAPI framework, high performance, easy to learn, fast to code, ready for production",
@@ -116273,7 +116337,7 @@ var require_frameworks = __commonJS2({
116273
116337
  ]
116274
116338
  },
116275
116339
  {
116276
- name: "FastHTML (Experimental)",
116340
+ name: "FastHTML",
116277
116341
  slug: "fasthtml",
116278
116342
  demo: "https://fasthtml-template.vercel.app",
116279
116343
  logo: "https://api-frameworks.vercel.sh/framework-logos/fasthtml.png",
@@ -119571,6 +119635,25 @@ var require_detect_builders = __commonJS2({
119571
119635
  }
119572
119636
  }
119573
119637
  }
119638
+ if (frontendBuilder && ((0, import_is_official_runtime.isOfficialRuntime)("express", frontendBuilder.use) || (0, import_is_official_runtime.isOfficialRuntime)("hono", frontendBuilder.use))) {
119639
+ const validFilenames = [
119640
+ "app",
119641
+ "index",
119642
+ "server",
119643
+ "src/app",
119644
+ "src/index",
119645
+ "src/server"
119646
+ ];
119647
+ const validExtensions = ["js", "cjs", "mjs", "ts", "cts", "mts"];
119648
+ const validEntrypoints = validFilenames.flatMap(
119649
+ (filename) => validExtensions.map((extension) => `${filename}.${extension}`)
119650
+ );
119651
+ for (const fnKey of unusedFunctions.values()) {
119652
+ if (validEntrypoints.includes(fnKey)) {
119653
+ unusedFunctions.delete(fnKey);
119654
+ }
119655
+ }
119656
+ }
119574
119657
  if (unusedFunctions.size) {
119575
119658
  const [fnKey] = Array.from(unusedFunctions);
119576
119659
  return {
@@ -119887,7 +119970,7 @@ var require_detect_file_system_api = __commonJS2({
119887
119970
  });
119888
119971
  module2.exports = __toCommonJS4(detect_file_system_api_exports);
119889
119972
  var import_semver4 = __toESM4(require_semver2());
119890
- var import__100 = require_dist20();
119973
+ var import__101 = require_dist20();
119891
119974
  async function detectFileSystemAPI2({
119892
119975
  files,
119893
119976
  projectSettings,
@@ -119953,7 +120036,7 @@ var require_detect_file_system_api = __commonJS2({
119953
120036
  };
119954
120037
  }
119955
120038
  const invalidBuilder = builders.find(({ use }) => {
119956
- const valid = (0, import__100.isOfficialRuntime)("go", use) || (0, import__100.isOfficialRuntime)("python", use) || (0, import__100.isOfficialRuntime)("ruby", use) || (0, import__100.isOfficialRuntime)("node", use) || (0, import__100.isOfficialRuntime)("next", use) || (0, import__100.isOfficialRuntime)("static", use) || (0, import__100.isOfficialRuntime)("static-build", use);
120039
+ const valid = (0, import__101.isOfficialRuntime)("go", use) || (0, import__101.isOfficialRuntime)("python", use) || (0, import__101.isOfficialRuntime)("ruby", use) || (0, import__101.isOfficialRuntime)("node", use) || (0, import__101.isOfficialRuntime)("next", use) || (0, import__101.isOfficialRuntime)("static", use) || (0, import__101.isOfficialRuntime)("static-build", use);
119957
120040
  return !valid;
119958
120041
  });
119959
120042
  if (invalidBuilder) {
@@ -119966,7 +120049,7 @@ var require_detect_file_system_api = __commonJS2({
119966
120049
  for (const lang of ["go", "python", "ruby"]) {
119967
120050
  for (const { use } of builders) {
119968
120051
  const plugin = "vercel-plugin-" + lang;
119969
- if ((0, import__100.isOfficialRuntime)(lang, use) && !deps[plugin]) {
120052
+ if ((0, import__101.isOfficialRuntime)(lang, use) && !deps[plugin]) {
119970
120053
  return {
119971
120054
  metadata,
119972
120055
  fsApiBuilder: null,
@@ -120023,7 +120106,7 @@ var require_detect_file_system_api = __commonJS2({
120023
120106
  }
120024
120107
  }
120025
120108
  const frontendBuilder = builders.find(
120026
- ({ use }) => (0, import__100.isOfficialRuntime)("next", use) || (0, import__100.isOfficialRuntime)("static", use) || (0, import__100.isOfficialRuntime)("static-build", use)
120109
+ ({ use }) => (0, import__101.isOfficialRuntime)("next", use) || (0, import__101.isOfficialRuntime)("static", use) || (0, import__101.isOfficialRuntime)("static-build", use)
120027
120110
  );
120028
120111
  const config2 = frontendBuilder?.config || {};
120029
120112
  const withTag = tag ? `@${tag}` : "";
@@ -174734,6 +174817,294 @@ var init_rm8 = __esm({
174734
174817
  }
174735
174818
  });
174736
174819
 
174820
+ // src/util/env/update-env-record.ts
174821
+ async function updateEnvRecord(client2, projectId, envId, type, key, value, targets, gitBranch) {
174822
+ output_manager_default.debug(
174823
+ `Updating ${type} Environment Variable ${key} in ${targets.length} targets`
174824
+ );
174825
+ const target = [];
174826
+ const customEnvironmentIds = [];
174827
+ for (const t of targets) {
174828
+ const arr = import_constants7.PROJECT_ENV_TARGET.includes(t) ? target : customEnvironmentIds;
174829
+ arr.push(t);
174830
+ }
174831
+ const body = {
174832
+ type,
174833
+ key,
174834
+ value,
174835
+ target,
174836
+ customEnvironmentIds: customEnvironmentIds.length > 0 ? customEnvironmentIds : void 0,
174837
+ gitBranch: gitBranch || void 0
174838
+ };
174839
+ const url3 = `/v10/projects/${projectId}/env/${envId}`;
174840
+ await client2.fetch(url3, {
174841
+ method: "PATCH",
174842
+ body
174843
+ });
174844
+ }
174845
+ var import_constants7;
174846
+ var init_update_env_record = __esm({
174847
+ "src/util/env/update-env-record.ts"() {
174848
+ "use strict";
174849
+ import_constants7 = __toESM3(require_dist4());
174850
+ init_output_manager();
174851
+ }
174852
+ });
174853
+
174854
+ // src/util/telemetry/commands/env/update.ts
174855
+ var EnvUpdateTelemetryClient;
174856
+ var init_update = __esm({
174857
+ "src/util/telemetry/commands/env/update.ts"() {
174858
+ "use strict";
174859
+ init_telemetry();
174860
+ init_standard_environments();
174861
+ EnvUpdateTelemetryClient = class extends TelemetryClient {
174862
+ trackCliArgumentName(name) {
174863
+ if (name) {
174864
+ this.trackCliArgument({
174865
+ arg: "name",
174866
+ value: this.redactedValue
174867
+ });
174868
+ }
174869
+ }
174870
+ trackCliArgumentEnvironment(environment) {
174871
+ if (environment) {
174872
+ this.trackCliArgument({
174873
+ arg: "environment",
174874
+ value: STANDARD_ENVIRONMENTS.includes(
174875
+ environment
174876
+ ) ? environment : this.redactedValue
174877
+ });
174878
+ }
174879
+ }
174880
+ trackCliArgumentGitBranch(gitBranch) {
174881
+ if (gitBranch) {
174882
+ this.trackCliArgument({
174883
+ arg: "git-branch",
174884
+ value: this.redactedValue
174885
+ });
174886
+ }
174887
+ }
174888
+ trackCliFlagSensitive(sensitive) {
174889
+ if (sensitive) {
174890
+ this.trackCliFlag("sensitive");
174891
+ }
174892
+ }
174893
+ trackCliFlagYes(yes) {
174894
+ if (yes) {
174895
+ this.trackCliFlag("yes");
174896
+ }
174897
+ }
174898
+ };
174899
+ }
174900
+ });
174901
+
174902
+ // src/commands/env/update.ts
174903
+ async function update(client2, argv) {
174904
+ let parsedArgs;
174905
+ const flagsSpecification = getFlagsSpecification(updateSubcommand.options);
174906
+ try {
174907
+ parsedArgs = parseArguments(argv, flagsSpecification);
174908
+ } catch (err) {
174909
+ printError(err);
174910
+ return 1;
174911
+ }
174912
+ const { args: args2, flags: opts } = parsedArgs;
174913
+ const stdInput = await readStandardInput(client2.stdin);
174914
+ let [envName, envTargetArg, envGitBranch] = args2;
174915
+ const telemetryClient = new EnvUpdateTelemetryClient({
174916
+ opts: {
174917
+ store: client2.telemetryEventStore
174918
+ }
174919
+ });
174920
+ telemetryClient.trackCliArgumentName(envName);
174921
+ telemetryClient.trackCliArgumentEnvironment(envTargetArg);
174922
+ telemetryClient.trackCliArgumentGitBranch(envGitBranch);
174923
+ telemetryClient.trackCliFlagSensitive(opts["--sensitive"]);
174924
+ telemetryClient.trackCliFlagYes(opts["--yes"]);
174925
+ if (args2.length > 3) {
174926
+ output_manager_default.error(
174927
+ `Invalid number of arguments. Usage: ${getCommandName(
174928
+ `env update <name> ${getEnvTargetPlaceholder()} <gitbranch>`
174929
+ )}`
174930
+ );
174931
+ return 1;
174932
+ }
174933
+ if (stdInput && (!envName || !envTargetArg)) {
174934
+ output_manager_default.error(
174935
+ `Invalid number of arguments. Usage: ${getCommandName(
174936
+ `env update <name> <target> <gitbranch> < <file>`
174937
+ )}`
174938
+ );
174939
+ return 1;
174940
+ }
174941
+ const envTargets = [];
174942
+ if (envTargetArg) {
174943
+ envTargets.push(envTargetArg);
174944
+ }
174945
+ if (!envName) {
174946
+ envName = await client2.input.text({
174947
+ message: `What's the name of the variable to update?`,
174948
+ validate: (val) => val ? true : "Name cannot be empty"
174949
+ });
174950
+ }
174951
+ const link4 = await getLinkedProject(client2);
174952
+ if (link4.status === "error") {
174953
+ return link4.exitCode;
174954
+ } else if (link4.status === "not_linked") {
174955
+ output_manager_default.error(
174956
+ `Your codebase isn't linked to a project on Vercel. Run ${getCommandName(
174957
+ "link"
174958
+ )} to begin.`
174959
+ );
174960
+ return 1;
174961
+ }
174962
+ client2.config.currentTeam = link4.org.type === "team" ? link4.org.id : void 0;
174963
+ const { project } = link4;
174964
+ const [{ envs }, customEnvironments] = await Promise.all([
174965
+ getEnvRecords(client2, project.id, "vercel-cli:env:update"),
174966
+ getCustomEnvironments(client2, project.id)
174967
+ ]);
174968
+ const matchingEnvs = envs.filter((r) => r.key === envName);
174969
+ if (matchingEnvs.length === 0) {
174970
+ output_manager_default.error(
174971
+ `The variable ${param(envName)} was not found. Run ${getCommandName(
174972
+ `env ls`
174973
+ )} to see all available Environment Variables.`
174974
+ );
174975
+ return 1;
174976
+ }
174977
+ let selectedEnv;
174978
+ if (envTargetArg || envGitBranch) {
174979
+ const filteredEnvs = matchingEnvs.filter((env) => {
174980
+ const matchesTarget = !envTargetArg || (Array.isArray(env.target) ? env.target.includes(envTargetArg) : env.target === envTargetArg) || env.customEnvironmentIds && env.customEnvironmentIds.includes(envTargetArg);
174981
+ const matchesGitBranch = !envGitBranch || env.gitBranch === envGitBranch;
174982
+ return matchesTarget && matchesGitBranch;
174983
+ });
174984
+ if (filteredEnvs.length === 0) {
174985
+ output_manager_default.error(
174986
+ `No Environment Variable ${param(envName)} found matching the specified criteria.`
174987
+ );
174988
+ return 1;
174989
+ }
174990
+ if (filteredEnvs.length === 1) {
174991
+ selectedEnv = filteredEnvs[0];
174992
+ } else {
174993
+ const choices = filteredEnvs.map((env, index) => {
174994
+ const targets2 = formatEnvironments(link4, env, customEnvironments);
174995
+ return {
174996
+ name: targets2,
174997
+ value: index
174998
+ };
174999
+ });
175000
+ const selectedIndex = await client2.input.select({
175001
+ message: `Multiple Environment Variables found for ${param(envName)}. Which one do you want to update?`,
175002
+ choices
175003
+ });
175004
+ selectedEnv = filteredEnvs[selectedIndex];
175005
+ }
175006
+ } else if (matchingEnvs.length === 1) {
175007
+ selectedEnv = matchingEnvs[0];
175008
+ } else {
175009
+ const choices = matchingEnvs.map((env, index) => {
175010
+ const targets2 = formatEnvironments(link4, env, customEnvironments);
175011
+ return {
175012
+ name: targets2,
175013
+ value: index
175014
+ };
175015
+ });
175016
+ const selectedIndex = await client2.input.select({
175017
+ message: `Multiple Environment Variables found for ${param(envName)}. Which one do you want to update?`,
175018
+ choices
175019
+ });
175020
+ selectedEnv = matchingEnvs[selectedIndex];
175021
+ }
175022
+ let envValue;
175023
+ if (stdInput) {
175024
+ envValue = stdInput;
175025
+ } else {
175026
+ envValue = await client2.input.text({
175027
+ message: `What's the new value of ${envName}?`
175028
+ });
175029
+ }
175030
+ if (!opts["--yes"]) {
175031
+ const currentTargets = formatEnvironments(
175032
+ link4,
175033
+ selectedEnv,
175034
+ customEnvironments
175035
+ );
175036
+ const confirmed = await client2.input.confirm(
175037
+ `Updating Environment Variable ${param(envName)} in ${currentTargets} in Project ${import_chalk93.default.bold(project.name)}. Are you sure?`,
175038
+ false
175039
+ );
175040
+ if (!confirmed) {
175041
+ output_manager_default.log("Canceled");
175042
+ return 0;
175043
+ }
175044
+ }
175045
+ const type = opts["--sensitive"] ? "sensitive" : selectedEnv.type;
175046
+ const targets = Array.isArray(selectedEnv.target) ? selectedEnv.target : [selectedEnv.target].filter(
175047
+ (r) => Boolean(r)
175048
+ );
175049
+ const allTargets = [...targets, ...selectedEnv.customEnvironmentIds || []];
175050
+ const updateStamp = stamp_default();
175051
+ try {
175052
+ output_manager_default.spinner("Updating");
175053
+ await updateEnvRecord(
175054
+ client2,
175055
+ project.id,
175056
+ selectedEnv.id,
175057
+ type,
175058
+ envName,
175059
+ envValue,
175060
+ allTargets,
175061
+ selectedEnv.gitBranch || ""
175062
+ );
175063
+ } catch (err) {
175064
+ if (isAPIError(err) && isKnownError(err)) {
175065
+ output_manager_default.error(err.serverMessage);
175066
+ return 1;
175067
+ }
175068
+ throw err;
175069
+ }
175070
+ output_manager_default.print(
175071
+ `${prependEmoji(
175072
+ `Updated Environment Variable ${import_chalk93.default.bold(envName)} in Project ${import_chalk93.default.bold(
175073
+ project.name
175074
+ )} ${import_chalk93.default.gray(updateStamp())}`,
175075
+ emoji("success")
175076
+ )}
175077
+ `
175078
+ );
175079
+ return 0;
175080
+ }
175081
+ var import_chalk93;
175082
+ var init_update2 = __esm({
175083
+ "src/commands/env/update.ts"() {
175084
+ "use strict";
175085
+ import_chalk93 = __toESM3(require_source());
175086
+ init_stamp();
175087
+ init_update_env_record();
175088
+ init_get_env_records();
175089
+ init_env_target();
175090
+ init_read_standard_input();
175091
+ init_param();
175092
+ init_emoji();
175093
+ init_known_error();
175094
+ init_format_environments();
175095
+ init_pkg_name();
175096
+ init_errors_ts();
175097
+ init_get_custom_environments();
175098
+ init_output_manager();
175099
+ init_update();
175100
+ init_get_args();
175101
+ init_get_flags_specification();
175102
+ init_error2();
175103
+ init_command10();
175104
+ init_link2();
175105
+ }
175106
+ });
175107
+
174737
175108
  // src/util/telemetry/commands/env/index.ts
174738
175109
  var EnvTelemetryClient;
174739
175110
  var init_env = __esm({
@@ -174765,6 +175136,12 @@ var init_env = __esm({
174765
175136
  value: actual
174766
175137
  });
174767
175138
  }
175139
+ trackCliSubcommandUpdate(actual) {
175140
+ this.trackCliSubcommand({
175141
+ subcommand: "update",
175142
+ value: actual
175143
+ });
175144
+ }
174768
175145
  };
174769
175146
  }
174770
175147
  });
@@ -174839,6 +175216,14 @@ async function main8(client2) {
174839
175216
  }
174840
175217
  telemetry2.trackCliSubcommandPull(subcommandOriginal);
174841
175218
  return pull(client2, args2);
175219
+ case "update":
175220
+ if (needHelp) {
175221
+ telemetry2.trackCliFlagHelp("env", subcommandOriginal);
175222
+ printHelp(updateSubcommand);
175223
+ return 2;
175224
+ }
175225
+ telemetry2.trackCliSubcommandUpdate(subcommandOriginal);
175226
+ return update(client2, args2);
174842
175227
  default:
174843
175228
  output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG9));
174844
175229
  output_manager_default.print(help(envCommand, { columns: client2.stderr.columns }));
@@ -174858,6 +175243,7 @@ var init_env2 = __esm({
174858
175243
  init_ls9();
174859
175244
  init_pull2();
174860
175245
  init_rm8();
175246
+ init_update2();
174861
175247
  init_command10();
174862
175248
  init_get_flags_specification();
174863
175249
  init_output_manager();
@@ -174867,7 +175253,8 @@ var init_env2 = __esm({
174867
175253
  ls: getCommandAliases(listSubcommand5),
174868
175254
  add: getCommandAliases(addSubcommand4),
174869
175255
  rm: getCommandAliases(removeSubcommand5),
174870
- pull: getCommandAliases(pullSubcommand)
175256
+ pull: getCommandAliases(pullSubcommand),
175257
+ update: getCommandAliases(updateSubcommand)
174871
175258
  };
174872
175259
  }
174873
175260
  });
@@ -174927,7 +175314,7 @@ async function connect(client2, argv) {
174927
175314
  const confirm = Boolean(opts["--yes"]);
174928
175315
  if (args2.length > 1) {
174929
175316
  output_manager_default.error(
174930
- `Invalid number of arguments. Usage: ${import_chalk93.default.cyan(
175317
+ `Invalid number of arguments. Usage: ${import_chalk94.default.cyan(
174931
175318
  `${getCommandName("project connect")}`
174932
175319
  )}`
174933
175320
  );
@@ -174974,7 +175361,7 @@ async function connect(client2, argv) {
174974
175361
  }
174975
175362
  if (!gitConfig) {
174976
175363
  output_manager_default.error(
174977
- `No local Git repository found. Run ${import_chalk93.default.cyan(
175364
+ `No local Git repository found. Run ${import_chalk94.default.cyan(
174978
175365
  "`git clone <url>`"
174979
175366
  )} to clone a remote Git repository first.`
174980
175367
  );
@@ -174983,7 +175370,7 @@ async function connect(client2, argv) {
174983
175370
  const remoteUrls = pluckRemoteUrls(gitConfig);
174984
175371
  if (!remoteUrls) {
174985
175372
  output_manager_default.error(
174986
- `No remote URLs found in your Git config. Make sure you've configured a remote repo in your local Git config. Run ${import_chalk93.default.cyan(
175373
+ `No remote URLs found in your Git config. Make sure you've configured a remote repo in your local Git config. Run ${import_chalk94.default.cyan(
174987
175374
  "`git remote --help`"
174988
175375
  )} for more details.`
174989
175376
  );
@@ -175101,7 +175488,7 @@ async function promptConnectArg({
175101
175488
  return true;
175102
175489
  }
175103
175490
  output_manager_default.log(
175104
- `Found a repository in your local Git Config: ${import_chalk93.default.cyan(
175491
+ `Found a repository in your local Git Config: ${import_chalk94.default.cyan(
175105
175492
  Object.values(remoteUrls)[0]
175106
175493
  )}`
175107
175494
  );
@@ -175119,11 +175506,11 @@ async function promptConnectArg({
175119
175506
  }
175120
175507
  return shouldConnect;
175121
175508
  }
175122
- var import_chalk93, import_path39;
175509
+ var import_chalk94, import_path39;
175123
175510
  var init_connect2 = __esm({
175124
175511
  "src/commands/git/connect.ts"() {
175125
175512
  "use strict";
175126
- import_chalk93 = __toESM3(require_source());
175513
+ import_chalk94 = __toESM3(require_source());
175127
175514
  import_path39 = require("path");
175128
175515
  init_create_git_meta();
175129
175516
  init_link();
@@ -175186,7 +175573,7 @@ async function disconnect(client2, argv) {
175186
175573
  }
175187
175574
  if (args2.length !== 0) {
175188
175575
  output_manager_default.error(
175189
- `Invalid number of arguments. Usage: ${import_chalk94.default.cyan(
175576
+ `Invalid number of arguments. Usage: ${import_chalk95.default.cyan(
175190
175577
  `${getCommandName("project disconnect")}`
175191
175578
  )}`
175192
175579
  );
@@ -175208,14 +175595,14 @@ async function disconnect(client2, argv) {
175208
175595
  `
175209
175596
  );
175210
175597
  const confirmDisconnect = autoConfirm || await client2.input.confirm(
175211
- `Are you sure you want to disconnect ${import_chalk94.default.cyan(
175598
+ `Are you sure you want to disconnect ${import_chalk95.default.cyan(
175212
175599
  `${linkOrg}/${repo}`
175213
175600
  )} from your project?`,
175214
175601
  false
175215
175602
  );
175216
175603
  if (confirmDisconnect) {
175217
175604
  await disconnectGitProvider(client2, org, project.id);
175218
- output_manager_default.log(`Disconnected ${import_chalk94.default.cyan(`${linkOrg}/${repo}`)}.`);
175605
+ output_manager_default.log(`Disconnected ${import_chalk95.default.cyan(`${linkOrg}/${repo}`)}.`);
175219
175606
  } else {
175220
175607
  output_manager_default.log("Canceled");
175221
175608
  }
@@ -175229,11 +175616,11 @@ async function disconnect(client2, argv) {
175229
175616
  }
175230
175617
  return 0;
175231
175618
  }
175232
- var import_chalk94;
175619
+ var import_chalk95;
175233
175620
  var init_disconnect2 = __esm({
175234
175621
  "src/commands/git/disconnect.ts"() {
175235
175622
  "use strict";
175236
- import_chalk94 = __toESM3(require_source());
175623
+ import_chalk95 = __toESM3(require_source());
175237
175624
  init_pkg_name();
175238
175625
  init_connect_git_provider();
175239
175626
  init_output_manager();
@@ -175337,17 +175724,17 @@ var init_git2 = __esm({
175337
175724
  // src/commands/guidance/status.ts
175338
175725
  async function status(client2) {
175339
175726
  const enabled = client2.config.guidance?.enabled !== false;
175340
- const status3 = enabled ? import_chalk95.default.green("Enabled") : import_chalk95.default.red("Disabled");
175727
+ const status3 = enabled ? import_chalk96.default.green("Enabled") : import_chalk96.default.red("Disabled");
175341
175728
  output_manager_default.print("\n");
175342
- output_manager_default.log(`${import_chalk95.default.bold("Guidance status")}: ${status3}`);
175729
+ output_manager_default.log(`${import_chalk96.default.bold("Guidance status")}: ${status3}`);
175343
175730
  output_manager_default.print("\n");
175344
175731
  return 0;
175345
175732
  }
175346
- var import_chalk95;
175733
+ var import_chalk96;
175347
175734
  var init_status = __esm({
175348
175735
  "src/commands/guidance/status.ts"() {
175349
175736
  "use strict";
175350
- import_chalk95 = __toESM3(require_source());
175737
+ import_chalk96 = __toESM3(require_source());
175351
175738
  init_output_manager();
175352
175739
  }
175353
175740
  });
@@ -175705,9 +176092,9 @@ async function extractExample(client2, name, dir, force, ver = "v2") {
175705
176092
  extractor.on("finish", resolve13);
175706
176093
  res.body.pipe(extractor);
175707
176094
  });
175708
- const successLog = `Initialized "${import_chalk96.default.bold(
176095
+ const successLog = `Initialized "${import_chalk97.default.bold(
175709
176096
  name
175710
- )}" example in ${import_chalk96.default.bold(humanizePath(folder))}.`;
176097
+ )}" example in ${import_chalk97.default.bold(humanizePath(folder))}.`;
175711
176098
  const folderRel = import_node_path4.default.relative(client2.cwd, folder);
175712
176099
  const deployHint = folderRel === "" ? list_item_default(`To deploy, run ${getCommandName()}.`) : list_item_default(
175713
176100
  `To deploy, ${cmd(
@@ -175727,14 +176114,14 @@ function prepareFolder(cwd, folder, force) {
175727
176114
  if (import_node_fs2.default.existsSync(dest)) {
175728
176115
  if (!import_node_fs2.default.lstatSync(dest).isDirectory()) {
175729
176116
  throw new Error(
175730
- `Destination path "${import_chalk96.default.bold(
176117
+ `Destination path "${import_chalk97.default.bold(
175731
176118
  folder
175732
176119
  )}" already exists and is not a directory.`
175733
176120
  );
175734
176121
  }
175735
176122
  if (!force && import_node_fs2.default.readdirSync(dest).length !== 0) {
175736
176123
  throw new Error(
175737
- `Destination path "${import_chalk96.default.bold(
176124
+ `Destination path "${import_chalk97.default.bold(
175738
176125
  folder
175739
176126
  )}" already exists and is not an empty directory. You may use ${cmd(
175740
176127
  "--force"
@@ -175745,14 +176132,14 @@ function prepareFolder(cwd, folder, force) {
175745
176132
  try {
175746
176133
  import_node_fs2.default.mkdirSync(dest);
175747
176134
  } catch (e2) {
175748
- throw new Error(`Could not create directory "${import_chalk96.default.bold(folder)}".`);
176135
+ throw new Error(`Could not create directory "${import_chalk97.default.bold(folder)}".`);
175749
176136
  }
175750
176137
  }
175751
176138
  return dest;
175752
176139
  }
175753
176140
  async function guess(client2, exampleList, name) {
175754
176141
  const GuessError = new Error(
175755
- `No example found for ${import_chalk96.default.bold(name)}, run ${getCommandName(
176142
+ `No example found for ${import_chalk97.default.bold(name)}, run ${getCommandName(
175756
176143
  "init"
175757
176144
  )} to see the list of available examples.`
175758
176145
  );
@@ -175761,21 +176148,21 @@ async function guess(client2, exampleList, name) {
175761
176148
  }
175762
176149
  const found = did_you_mean_default(name, exampleList, 0.7);
175763
176150
  if (typeof found === "string") {
175764
- if (await client2.input.confirm(`Did you mean ${import_chalk96.default.bold(found)}?`, false)) {
176151
+ if (await client2.input.confirm(`Did you mean ${import_chalk97.default.bold(found)}?`, false)) {
175765
176152
  return found;
175766
176153
  }
175767
176154
  } else {
175768
176155
  throw GuessError;
175769
176156
  }
175770
176157
  }
175771
- var import_node_fs2, import_node_path4, import_tar_fs, import_chalk96, EXAMPLE_API;
176158
+ var import_node_fs2, import_node_path4, import_tar_fs, import_chalk97, EXAMPLE_API;
175772
176159
  var init_init = __esm({
175773
176160
  "src/commands/init/init.ts"() {
175774
176161
  "use strict";
175775
176162
  import_node_fs2 = __toESM3(require("fs"));
175776
176163
  import_node_path4 = __toESM3(require("path"));
175777
176164
  import_tar_fs = __toESM3(require_tar_fs());
175778
- import_chalk96 = __toESM3(require_source());
176165
+ import_chalk97 = __toESM3(require_source());
175779
176166
  init_list4();
175780
176167
  init_list_item();
175781
176168
  init_humanize_path();
@@ -175891,11 +176278,11 @@ var init_build_state = __esm({
175891
176278
  });
175892
176279
 
175893
176280
  // src/util/output/builds.ts
175894
- var import_chalk97, import_bytes8, padding, MAX_BUILD_GROUPS, MAX_OUTPUTS_PER_GROUP, hasOutput, getCommonPath, styleBuild, styleHiddenBuilds, styleOutput, getDirPath, sortByEntrypoint, groupBuilds, builds_default;
176281
+ var import_chalk98, import_bytes8, padding, MAX_BUILD_GROUPS, MAX_OUTPUTS_PER_GROUP, hasOutput, getCommonPath, styleBuild, styleHiddenBuilds, styleOutput, getDirPath, sortByEntrypoint, groupBuilds, builds_default;
175895
176282
  var init_builds = __esm({
175896
176283
  "src/util/output/builds.ts"() {
175897
176284
  "use strict";
175898
- import_chalk97 = __toESM3(require_source());
176285
+ import_chalk98 = __toESM3(require_source());
175899
176286
  import_bytes8 = __toESM3(require_bytes());
175900
176287
  init_build_state();
175901
176288
  padding = 8;
@@ -175924,48 +176311,48 @@ var init_builds = __esm({
175924
176311
  styleBuild = (build2, times, longestSource) => {
175925
176312
  const { entrypoint, id } = build2;
175926
176313
  const time = typeof times[id] === "string" ? times[id] : "";
175927
- let pathColor = import_chalk97.default.cyan;
176314
+ let pathColor = import_chalk98.default.cyan;
175928
176315
  if (isFailed(build2)) {
175929
- pathColor = import_chalk97.default.red;
176316
+ pathColor = import_chalk98.default.red;
175930
176317
  }
175931
176318
  const entry = entrypoint.padEnd(longestSource + padding);
175932
176319
  const prefix = hasOutput(build2) ? "\u250C" : "\u2576";
175933
- return `${import_chalk97.default.grey(prefix)} ${pathColor(entry)}${time}`;
176320
+ return `${import_chalk98.default.grey(prefix)} ${pathColor(entry)}${time}`;
175934
176321
  };
175935
176322
  styleHiddenBuilds = (commonPath, buildGroup, times, longestSource, isHidden2 = false) => {
175936
176323
  const { id } = buildGroup[0];
175937
176324
  const entry = commonPath.padEnd(longestSource + padding);
175938
176325
  const time = typeof times[id] === "string" ? times[id] : "";
175939
176326
  const prefix = isHidden2 === false && buildGroup.some(hasOutput) ? "\u250C" : "\u2576";
175940
- let pathColor = import_chalk97.default.cyan;
176327
+ let pathColor = import_chalk98.default.cyan;
175941
176328
  if (buildGroup.every(isFailed)) {
175942
- pathColor = import_chalk97.default.red;
176329
+ pathColor = import_chalk98.default.red;
175943
176330
  }
175944
176331
  if (isHidden2) {
175945
- pathColor = import_chalk97.default.grey;
176332
+ pathColor = import_chalk98.default.grey;
175946
176333
  }
175947
- return `${import_chalk97.default.grey(prefix)} ${pathColor(entry)}${time}`;
176334
+ return `${import_chalk98.default.grey(prefix)} ${pathColor(entry)}${time}`;
175948
176335
  };
175949
176336
  styleOutput = (output2, readyState, isLast) => {
175950
176337
  const { type, path: path11, size, lambda } = output2;
175951
176338
  const prefix = type === "lambda" ? "\u03BB " : "";
175952
- const finalSize = size ? ` ${import_chalk97.default.grey(`(${(0, import_bytes8.default)(size)})`)}` : "";
175953
- let color = import_chalk97.default.grey;
176339
+ const finalSize = size ? ` ${import_chalk98.default.grey(`(${(0, import_bytes8.default)(size)})`)}` : "";
176340
+ let color = import_chalk98.default.grey;
175954
176341
  let finalRegion = "";
175955
176342
  if (isReady({ readyState })) {
175956
- color = import_chalk97.default;
176343
+ color = import_chalk98.default;
175957
176344
  } else if (isFailed({ readyState })) {
175958
- color = import_chalk97.default.red;
176345
+ color = import_chalk98.default.red;
175959
176346
  }
175960
176347
  if (lambda) {
175961
176348
  const { deployedTo } = lambda;
175962
176349
  if (deployedTo && deployedTo.length > 0) {
175963
- finalRegion = ` ${import_chalk97.default.grey(`[${deployedTo.join(", ")}]`)}`;
176350
+ finalRegion = ` ${import_chalk98.default.grey(`[${deployedTo.join(", ")}]`)}`;
175964
176351
  }
175965
176352
  }
175966
176353
  const corner = isLast ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500";
175967
176354
  const main18 = prefix + path11 + finalSize + finalRegion;
175968
- return `${import_chalk97.default.grey(corner)} ${color(main18)}`;
176355
+ return `${import_chalk98.default.grey(corner)} ${color(main18)}`;
175969
176356
  };
175970
176357
  getDirPath = (path11, level = 0, highestLevel = null) => {
175971
176358
  const parts = path11.split("/").slice(0, -1);
@@ -176097,7 +176484,7 @@ var init_builds = __esm({
176097
176484
  );
176098
176485
  if (outputs.length > MAX_OUTPUTS_PER_GROUP) {
176099
176486
  final.push(
176100
- import_chalk97.default.grey(
176487
+ import_chalk98.default.grey(
176101
176488
  `\u2514\u2500\u2500 ${outputs.length - MAX_OUTPUTS_PER_GROUP} output items hidden
176102
176489
  `
176103
176490
  )
@@ -176145,19 +176532,19 @@ function routes(routes2) {
176145
176532
  const padding2 = 6;
176146
176533
  const space = " ".repeat(padding2);
176147
176534
  const destSpace = " ".repeat(longestDest || 10);
176148
- const arrow = import_chalk98.default.grey("->");
176535
+ const arrow = import_chalk99.default.grey("->");
176149
176536
  for (const item of routes2) {
176150
176537
  if ("handle" in item) {
176151
- toPrint += `${import_chalk98.default.grey("\u2576")} ${import_chalk98.default.cyan(item.handle)}`;
176538
+ toPrint += `${import_chalk99.default.grey("\u2576")} ${import_chalk99.default.cyan(item.handle)}`;
176152
176539
  continue;
176153
176540
  }
176154
176541
  const { src, dest, status: status3, headers } = item;
176155
176542
  const last = routes2.indexOf(item) === routes2.length - 1;
176156
176543
  const suffix = last ? "" : `
176157
176544
  `;
176158
- const finalSrc = import_chalk98.default.cyan(src.padEnd(longestSrc + padding2));
176545
+ const finalSrc = import_chalk99.default.cyan(src.padEnd(longestSrc + padding2));
176159
176546
  const finalDest = dest ? `${arrow}${space}${dest}` : ` ${space}${destSpace}`;
176160
- const finalStatus = status3 ? import_chalk98.default.grey(`[${status3}]`) : "";
176547
+ const finalStatus = status3 ? import_chalk99.default.grey(`[${status3}]`) : "";
176161
176548
  let finalHeaders = null;
176162
176549
  if (headers) {
176163
176550
  finalHeaders = `
@@ -176168,21 +176555,21 @@ function routes(routes2) {
176168
176555
  const last2 = headerKeys.indexOf(header) === headerKeys.length - 1;
176169
176556
  const suffix2 = last2 ? "" : `
176170
176557
  `;
176171
- const prefix2 = import_chalk98.default.grey(last2 ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500");
176558
+ const prefix2 = import_chalk99.default.grey(last2 ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500");
176172
176559
  finalHeaders += `${prefix2} ${header}: ${value}${suffix2}`;
176173
176560
  }
176174
176561
  }
176175
- const prefix = import_chalk98.default.grey(finalHeaders ? "\u250C" : "\u2576");
176562
+ const prefix = import_chalk99.default.grey(finalHeaders ? "\u250C" : "\u2576");
176176
176563
  const fill = `${finalSrc}${finalDest}${space}${finalStatus}`;
176177
176564
  toPrint += `${prefix} ${fill}${finalHeaders || ""}${suffix}`;
176178
176565
  }
176179
176566
  return toPrint;
176180
176567
  }
176181
- var import_chalk98, longestProperty;
176568
+ var import_chalk99, longestProperty;
176182
176569
  var init_routes = __esm({
176183
176570
  "src/util/output/routes.ts"() {
176184
176571
  "use strict";
176185
- import_chalk98 = __toESM3(require_source());
176572
+ import_chalk99 = __toESM3(require_source());
176186
176573
  longestProperty = (routes2, name) => {
176187
176574
  const longestItem = routes2.sort((a, b) => {
176188
176575
  const aName = a[name];
@@ -176302,7 +176689,7 @@ async function inspect3(client2) {
176302
176689
  } catch {
176303
176690
  }
176304
176691
  output_manager_default.spinner(
176305
- `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk99.default.bold(contextName)}`
176692
+ `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk100.default.bold(contextName)}`
176306
176693
  );
176307
176694
  let deployment = await getDeployment(client2, contextName, deploymentIdOrHost);
176308
176695
  let abortController;
@@ -176329,7 +176716,7 @@ async function inspect3(client2) {
176329
176716
  }
176330
176717
  }
176331
176718
  if (withLogs) {
176332
- print(`${import_chalk99.default.cyan("status")} ${stateString(deployment.readyState)}
176719
+ print(`${import_chalk100.default.cyan("status")} ${stateString(deployment.readyState)}
176333
176720
  `);
176334
176721
  } else {
176335
176722
  await printDetails({ deployment, contextName, client: client2, startTimestamp });
@@ -176342,17 +176729,17 @@ function stateString(s) {
176342
176729
  switch (s) {
176343
176730
  case "INITIALIZING":
176344
176731
  case "BUILDING":
176345
- return import_chalk99.default.yellow(CIRCLE) + sTitle;
176732
+ return import_chalk100.default.yellow(CIRCLE) + sTitle;
176346
176733
  case "ERROR":
176347
- return import_chalk99.default.red(CIRCLE) + sTitle;
176734
+ return import_chalk100.default.red(CIRCLE) + sTitle;
176348
176735
  case "READY":
176349
- return import_chalk99.default.green(CIRCLE) + sTitle;
176736
+ return import_chalk100.default.green(CIRCLE) + sTitle;
176350
176737
  case "QUEUED":
176351
- return import_chalk99.default.gray(CIRCLE) + sTitle;
176738
+ return import_chalk100.default.gray(CIRCLE) + sTitle;
176352
176739
  case "CANCELED":
176353
- return import_chalk99.default.gray(CIRCLE) + sTitle;
176740
+ return import_chalk100.default.gray(CIRCLE) + sTitle;
176354
176741
  default:
176355
- return import_chalk99.default.gray("UNKNOWN");
176742
+ return import_chalk100.default.gray("UNKNOWN");
176356
176743
  }
176357
176744
  }
176358
176745
  async function printDetails({
@@ -176362,7 +176749,7 @@ async function printDetails({
176362
176749
  startTimestamp
176363
176750
  }) {
176364
176751
  output_manager_default.log(
176365
- `Fetched deployment "${import_chalk99.default.bold(deployment.url)}" in ${import_chalk99.default.bold(
176752
+ `Fetched deployment "${import_chalk100.default.bold(deployment.url)}" in ${import_chalk100.default.bold(
176366
176753
  contextName
176367
176754
  )} ${elapsed(Date.now() - startTimestamp)}`
176368
176755
  );
@@ -176378,14 +176765,14 @@ async function printDetails({
176378
176765
  const { print, link: link4 } = output_manager_default;
176379
176766
  const { builds } = deployment.version === 2 ? await client2.fetch(`/v11/deployments/${id}/builds`) : { builds: [] };
176380
176767
  print("\n");
176381
- print(import_chalk99.default.bold(" General\n\n"));
176382
- print(` ${import_chalk99.default.cyan("id")} ${id}
176768
+ print(import_chalk100.default.bold(" General\n\n"));
176769
+ print(` ${import_chalk100.default.cyan("id")} ${id}
176383
176770
  `);
176384
- print(` ${import_chalk99.default.cyan("name")} ${name}
176771
+ print(` ${import_chalk100.default.cyan("name")} ${name}
176385
176772
  `);
176386
176773
  const customEnvironmentSlug = deployment.customEnvironment?.slug;
176387
176774
  const target = customEnvironmentSlug ?? deployment.target ?? "preview";
176388
- print(` ${import_chalk99.default.cyan("target")} `);
176775
+ print(` ${import_chalk100.default.cyan("target")} `);
176389
176776
  print(
176390
176777
  deployment.customEnvironment && deployment.team?.slug ? `${link4(
176391
176778
  `${target}`,
@@ -176395,13 +176782,13 @@ async function printDetails({
176395
176782
  ` : `${target}
176396
176783
  `
176397
176784
  );
176398
- print(` ${import_chalk99.default.cyan("status")} ${stateString(readyState)}
176785
+ print(` ${import_chalk100.default.cyan("status")} ${stateString(readyState)}
176399
176786
  `);
176400
- print(` ${import_chalk99.default.cyan("url")} https://${url3}
176787
+ print(` ${import_chalk100.default.cyan("url")} https://${url3}
176401
176788
  `);
176402
176789
  if (createdAt) {
176403
176790
  print(
176404
- ` ${import_chalk99.default.cyan("created")} ${new Date(createdAt)} ${elapsed(
176791
+ ` ${import_chalk100.default.cyan("created")} ${new Date(createdAt)} ${elapsed(
176405
176792
  Date.now() - createdAt,
176406
176793
  true
176407
176794
  )}
@@ -176410,10 +176797,10 @@ async function printDetails({
176410
176797
  }
176411
176798
  print("\n\n");
176412
176799
  if (aliases !== void 0 && aliases.length > 0) {
176413
- print(import_chalk99.default.bold(" Aliases\n\n"));
176800
+ print(import_chalk100.default.bold(" Aliases\n\n"));
176414
176801
  let aliasList = "";
176415
176802
  for (const alias2 of aliases) {
176416
- aliasList += `${import_chalk99.default.gray("\u2576")} https://${alias2}
176803
+ aliasList += `${import_chalk100.default.gray("\u2576")} https://${alias2}
176417
176804
  `;
176418
176805
  }
176419
176806
  print(indent_default(aliasList, 4));
@@ -176425,12 +176812,12 @@ async function printDetails({
176425
176812
  const { id: id2, createdAt: createdAt2, readyStateAt } = build2;
176426
176813
  times[id2] = createdAt2 && readyStateAt ? elapsed(readyStateAt - createdAt2) : null;
176427
176814
  }
176428
- print(import_chalk99.default.bold(" Builds\n\n"));
176815
+ print(import_chalk100.default.bold(" Builds\n\n"));
176429
176816
  print(indent_default(builds_default(builds, times).toPrint, 4));
176430
176817
  print("\n\n");
176431
176818
  }
176432
176819
  if (Array.isArray(routes2) && routes2.length > 0) {
176433
- print(import_chalk99.default.bold(" Routes\n\n"));
176820
+ print(import_chalk100.default.bold(" Routes\n\n"));
176434
176821
  print(indent_default(routes(routes2), 4));
176435
176822
  print(`
176436
176823
 
@@ -176443,12 +176830,12 @@ function exitCode(state) {
176443
176830
  }
176444
176831
  return 0;
176445
176832
  }
176446
- var import_error_utils26, import_chalk99, import_ms19, import_title6, import_url16;
176833
+ var import_error_utils26, import_chalk100, import_ms19, import_title6, import_url16;
176447
176834
  var init_inspect4 = __esm({
176448
176835
  "src/commands/inspect/index.ts"() {
176449
176836
  "use strict";
176450
176837
  import_error_utils26 = __toESM3(require_dist2());
176451
- import_chalk99 = __toESM3(require_source());
176838
+ import_chalk100 = __toESM3(require_source());
176452
176839
  import_ms19 = __toESM3(require_ms());
176453
176840
  import_title6 = __toESM3(require_lib4());
176454
176841
  import_url16 = require("url");
@@ -176884,7 +177271,7 @@ async function add5(client2, args2) {
176884
177271
  }
176885
177272
  const installation = teamInstallations[0];
176886
177273
  output_manager_default.log(
176887
- `Installing ${import_chalk100.default.bold(product.name)} by ${import_chalk100.default.bold(integration.name)} under ${import_chalk100.default.bold(contextName)}`
177274
+ `Installing ${import_chalk101.default.bold(product.name)} by ${import_chalk101.default.bold(integration.name)} under ${import_chalk101.default.bold(contextName)}`
176888
177275
  );
176889
177276
  const metadataSchema = product.metadataSchema;
176890
177277
  const metadataWizard = createMetadataWizard(metadataSchema);
@@ -177104,16 +177491,16 @@ async function selectBillingPlan(client2, billingPlans) {
177104
177491
  }
177105
177492
  async function confirmProductSelection(client2, product, name, metadata, billingPlan) {
177106
177493
  output_manager_default.print("Selected product:\n");
177107
- output_manager_default.print(`${import_chalk100.default.dim(`- ${import_chalk100.default.bold("Name:")} ${name}`)}
177494
+ output_manager_default.print(`${import_chalk101.default.dim(`- ${import_chalk101.default.bold("Name:")} ${name}`)}
177108
177495
  `);
177109
177496
  for (const [key, value] of Object.entries(metadata)) {
177110
177497
  output_manager_default.print(
177111
- `${import_chalk100.default.dim(`- ${import_chalk100.default.bold(`${product.metadataSchema.properties[key]["ui:label"]}:`)} ${value}`)}
177498
+ `${import_chalk101.default.dim(`- ${import_chalk101.default.bold(`${product.metadataSchema.properties[key]["ui:label"]}:`)} ${value}`)}
177112
177499
  `
177113
177500
  );
177114
177501
  }
177115
177502
  output_manager_default.print(
177116
- `${import_chalk100.default.dim(`- ${import_chalk100.default.bold("Plan:")} ${billingPlan.name}`)}
177503
+ `${import_chalk101.default.dim(`- ${import_chalk101.default.bold("Plan:")} ${billingPlan.name}`)}
177117
177504
  `
177118
177505
  );
177119
177506
  return client2.input.confirm("Confirm selection?", true);
@@ -177223,7 +177610,7 @@ async function provisionStorageProduct(client2, product, installation, name, met
177223
177610
  ]
177224
177611
  });
177225
177612
  output_manager_default.spinner(
177226
- `Connecting ${import_chalk100.default.bold(name)} to ${import_chalk100.default.bold(project.name)}...`
177613
+ `Connecting ${import_chalk101.default.bold(name)} to ${import_chalk101.default.bold(project.name)}...`
177227
177614
  );
177228
177615
  try {
177229
177616
  await connectResourceToProject(
@@ -177241,17 +177628,17 @@ async function provisionStorageProduct(client2, product, installation, name, met
177241
177628
  output_manager_default.stopSpinner();
177242
177629
  }
177243
177630
  output_manager_default.log(
177244
- `${import_chalk100.default.bold(name)} successfully connected to ${import_chalk100.default.bold(project.name)}
177631
+ `${import_chalk101.default.bold(name)} successfully connected to ${import_chalk101.default.bold(project.name)}
177245
177632
 
177246
177633
  ${indent_default(`Run ${cmd(`${packageName} env pull`)} to update the environment variables`, 4)}`
177247
177634
  );
177248
177635
  return 0;
177249
177636
  }
177250
- var import_chalk100, import_open3;
177637
+ var import_chalk101, import_open3;
177251
177638
  var init_add10 = __esm({
177252
177639
  "src/commands/integration/add.ts"() {
177253
177640
  "use strict";
177254
- import_chalk100 = __toESM3(require_source());
177641
+ import_chalk101 = __toESM3(require_source());
177255
177642
  import_open3 = __toESM3(require_open());
177256
177643
  init_format_table();
177257
177644
  init_pkg_name();
@@ -177571,7 +177958,7 @@ function outputBalanceInformation(prepaymentInfo, resources, integrationSlug) {
177571
177958
  }
177572
177959
  }
177573
177960
  output_manager_default.log(
177574
- `${import_chalk101.default.bold(`Balances and thresholds for ${integrationSlug}`)}:`
177961
+ `${import_chalk102.default.bold(`Balances and thresholds for ${integrationSlug}`)}:`
177575
177962
  );
177576
177963
  for (const key in mappings) {
177577
177964
  const mapping = mappings[key];
@@ -177597,11 +177984,11 @@ function formattedCurrency(amountInCents) {
177597
177984
  currency: "USD"
177598
177985
  }).format(amountInCents / 100);
177599
177986
  }
177600
- var import_chalk101;
177987
+ var import_chalk102;
177601
177988
  var init_balance2 = __esm({
177602
177989
  "src/commands/integration/balance.ts"() {
177603
177990
  "use strict";
177604
- import_chalk101 = __toESM3(require_source());
177991
+ import_chalk102 = __toESM3(require_source());
177605
177992
  init_output_manager();
177606
177993
  init_get_scope();
177607
177994
  init_fetch_installation_prepayment_info();
@@ -177755,18 +178142,18 @@ async function list4(client2) {
177755
178142
  return 0;
177756
178143
  }
177757
178144
  output_manager_default.log(
177758
- `Integrations in ${import_chalk102.default.bold(contextName)}:
178145
+ `Integrations in ${import_chalk103.default.bold(contextName)}:
177759
178146
  ${table(
177760
178147
  [
177761
178148
  ["Name", "Status", "Product", "Integration", "Projects"].map(
177762
- (header) => import_chalk102.default.bold(import_chalk102.default.cyan(header))
178149
+ (header) => import_chalk103.default.bold(import_chalk103.default.cyan(header))
177763
178150
  ),
177764
178151
  ...results.map((result) => [
177765
- resourceLink(contextName, result) ?? import_chalk102.default.gray("\u2013"),
178152
+ resourceLink(contextName, result) ?? import_chalk103.default.gray("\u2013"),
177766
178153
  resourceStatus(result.status ?? "\u2013"),
177767
- result.product ?? import_chalk102.default.gray("\u2013"),
177768
- integrationLink(result, team) ?? import_chalk102.default.gray("\u2013"),
177769
- import_chalk102.default.grey(result.projects ? result.projects : "\u2013")
178154
+ result.product ?? import_chalk103.default.gray("\u2013"),
178155
+ integrationLink(result, team) ?? import_chalk103.default.gray("\u2013"),
178156
+ import_chalk103.default.grey(result.projects ? result.projects : "\u2013")
177770
178157
  ])
177771
178158
  ],
177772
178159
  { hsep: 8 }
@@ -177779,17 +178166,17 @@ function resourceStatus(status3) {
177779
178166
  const statusTitleCase = (0, import_title7.default)(status3);
177780
178167
  switch (status3) {
177781
178168
  case "initializing":
177782
- return import_chalk102.default.yellow(CIRCLE) + statusTitleCase;
178169
+ return import_chalk103.default.yellow(CIRCLE) + statusTitleCase;
177783
178170
  case "error":
177784
- return import_chalk102.default.red(CIRCLE) + statusTitleCase;
178171
+ return import_chalk103.default.red(CIRCLE) + statusTitleCase;
177785
178172
  case "available":
177786
- return import_chalk102.default.green(CIRCLE) + statusTitleCase;
178173
+ return import_chalk103.default.green(CIRCLE) + statusTitleCase;
177787
178174
  case "suspended":
177788
- return import_chalk102.default.white(CIRCLE) + statusTitleCase;
178175
+ return import_chalk103.default.white(CIRCLE) + statusTitleCase;
177789
178176
  case "limits-exceeded-suspended":
177790
- return `${import_chalk102.default.white(CIRCLE)}Limits exceeded`;
178177
+ return `${import_chalk103.default.white(CIRCLE)}Limits exceeded`;
177791
178178
  default:
177792
- return import_chalk102.default.gray(statusTitleCase);
178179
+ return import_chalk103.default.gray(statusTitleCase);
177793
178180
  }
177794
178181
  }
177795
178182
  function resourceLink(orgSlug, resource) {
@@ -177810,18 +178197,18 @@ function integrationLink(integration, team) {
177810
178197
  if (!integration.configurationId) {
177811
178198
  return integration.integration;
177812
178199
  }
177813
- const boldName = import_chalk102.default.bold(integration.integration);
178200
+ const boldName = import_chalk103.default.bold(integration.integration);
177814
178201
  const integrationDeepLink = buildSSOLink(team, integration.configurationId);
177815
178202
  return output_manager_default.link(boldName, integrationDeepLink, {
177816
178203
  fallback: () => boldName,
177817
178204
  color: false
177818
178205
  });
177819
178206
  }
177820
- var import_chalk102, import_title7;
178207
+ var import_chalk103, import_title7;
177821
178208
  var init_list6 = __esm({
177822
178209
  "src/commands/integration/list.ts"() {
177823
178210
  "use strict";
177824
- import_chalk102 = __toESM3(require_source());
178211
+ import_chalk103 = __toESM3(require_source());
177825
178212
  init_get_scope();
177826
178213
  init_link2();
177827
178214
  init_get_resources();
@@ -177882,7 +178269,7 @@ async function openIntegration(client2, args2) {
177882
178269
  knownIntegrationSlug = !!configuration;
177883
178270
  } catch (error3) {
177884
178271
  output_manager_default.error(
177885
- `Failed to fetch configuration for ${import_chalk103.default.bold(`"${integrationSlug}"`)}: ${error3.message}`
178272
+ `Failed to fetch configuration for ${import_chalk104.default.bold(`"${integrationSlug}"`)}: ${error3.message}`
177886
178273
  );
177887
178274
  return 1;
177888
178275
  } finally {
@@ -177890,19 +178277,19 @@ async function openIntegration(client2, args2) {
177890
178277
  }
177891
178278
  if (!configuration) {
177892
178279
  output_manager_default.error(
177893
- `No configuration found for ${import_chalk103.default.bold(`"${integrationSlug}"`)}.`
178280
+ `No configuration found for ${import_chalk104.default.bold(`"${integrationSlug}"`)}.`
177894
178281
  );
177895
178282
  return 1;
177896
178283
  }
177897
- output_manager_default.print(`Opening the ${import_chalk103.default.bold(integrationSlug)} dashboard...`);
178284
+ output_manager_default.print(`Opening the ${import_chalk104.default.bold(integrationSlug)} dashboard...`);
177898
178285
  (0, import_open4.default)(buildSSOLink(team, configuration.id));
177899
178286
  return 0;
177900
178287
  }
177901
- var import_chalk103, import_open4;
178288
+ var import_chalk104, import_open4;
177902
178289
  var init_open_integration = __esm({
177903
178290
  "src/commands/integration/open-integration.ts"() {
177904
178291
  "use strict";
177905
- import_chalk103 = __toESM3(require_source());
178292
+ import_chalk104 = __toESM3(require_source());
177906
178293
  import_open4 = __toESM3(require_open());
177907
178294
  init_get_scope();
177908
178295
  init_fetch_marketplace_integrations();
@@ -177995,7 +178382,7 @@ async function remove3(client2) {
177995
178382
  );
177996
178383
  output_manager_default.stopSpinner();
177997
178384
  if (!integrationConfiguration) {
177998
- output_manager_default.error(`No integration ${import_chalk104.default.bold(integrationName)} found.`);
178385
+ output_manager_default.error(`No integration ${import_chalk105.default.bold(integrationName)} found.`);
177999
178386
  telemetry2.trackCliArgumentIntegration(integrationName, false);
178000
178387
  return 0;
178001
178388
  }
@@ -178014,26 +178401,26 @@ async function remove3(client2) {
178014
178401
  await removeIntegration(client2, integrationConfiguration, team);
178015
178402
  } catch (error3) {
178016
178403
  output_manager_default.error(
178017
- import_chalk104.default.red(
178018
- `Failed to remove ${import_chalk104.default.bold(integrationName)}: ${error3.message}`
178404
+ import_chalk105.default.red(
178405
+ `Failed to remove ${import_chalk105.default.bold(integrationName)}: ${error3.message}`
178019
178406
  )
178020
178407
  );
178021
178408
  return 1;
178022
178409
  }
178023
- output_manager_default.success(`${import_chalk104.default.bold(integrationName)} successfully removed.`);
178410
+ output_manager_default.success(`${import_chalk105.default.bold(integrationName)} successfully removed.`);
178024
178411
  return 0;
178025
178412
  }
178026
178413
  async function confirmIntegrationRemoval(client2, integration, team) {
178027
178414
  output_manager_default.log(
178028
- `The ${import_chalk104.default.bold(integration)} integration will be removed permanently from team ${import_chalk104.default.bold(team.name)}.`
178415
+ `The ${import_chalk105.default.bold(integration)} integration will be removed permanently from team ${import_chalk105.default.bold(team.name)}.`
178029
178416
  );
178030
- return client2.input.confirm(`${import_chalk104.default.red("Are you sure?")}`, false);
178417
+ return client2.input.confirm(`${import_chalk105.default.red("Are you sure?")}`, false);
178031
178418
  }
178032
- var import_chalk104;
178419
+ var import_chalk105;
178033
178420
  var init_remove_integration2 = __esm({
178034
178421
  "src/commands/integration/remove-integration.ts"() {
178035
178422
  "use strict";
178036
- import_chalk104 = __toESM3(require_source());
178423
+ import_chalk105 = __toESM3(require_source());
178037
178424
  init_output_manager();
178038
178425
  init_get_args();
178039
178426
  init_get_flags_specification();
@@ -178331,18 +178718,18 @@ async function createThreshold(client2) {
178331
178718
  );
178332
178719
  output_manager_default.stopSpinner();
178333
178720
  if (!targetedResource) {
178334
- output_manager_default.log(`The resource ${import_chalk105.default.bold(resourceName)} was not found.`);
178721
+ output_manager_default.log(`The resource ${import_chalk106.default.bold(resourceName)} was not found.`);
178335
178722
  return 0;
178336
178723
  }
178337
178724
  if (!targetedResource.product?.integrationConfigurationId) {
178338
178725
  output_manager_default.error(
178339
- `The resource ${import_chalk105.default.bold(resourceName)} does not have an integration configuration.`
178726
+ `The resource ${import_chalk106.default.bold(resourceName)} does not have an integration configuration.`
178340
178727
  );
178341
178728
  return 1;
178342
178729
  }
178343
178730
  if (targetedResource.billingPlan?.type !== "prepayment") {
178344
178731
  output_manager_default.error(
178345
- `The resource ${import_chalk105.default.bold(resourceName)} is not a prepayment-based resource.`
178732
+ `The resource ${import_chalk106.default.bold(resourceName)} is not a prepayment-based resource.`
178346
178733
  );
178347
178734
  return 1;
178348
178735
  }
@@ -178370,7 +178757,7 @@ async function createThreshold(client2) {
178370
178757
  }
178371
178758
  if (targetedResource.billingPlan.scope !== "resource") {
178372
178759
  output_manager_default.log(
178373
- `The resource ${import_chalk105.default.bold(resourceName)} uses an installation-level balance.`
178760
+ `The resource ${import_chalk106.default.bold(resourceName)} uses an installation-level balance.`
178374
178761
  );
178375
178762
  return await updateThresholdForInstallation({
178376
178763
  client: client2,
@@ -178484,17 +178871,17 @@ async function updateThresholdForInstallation(props) {
178484
178871
  async function handleUpdateThreshold(props) {
178485
178872
  if (props.resource.billingPlan?.type !== "prepayment") {
178486
178873
  output_manager_default.log(
178487
- `The resource ${import_chalk105.default.bold(props.resource.name)} is not a prepayment-based resource.`
178874
+ `The resource ${import_chalk106.default.bold(props.resource.name)} is not a prepayment-based resource.`
178488
178875
  );
178489
178876
  return 0;
178490
178877
  }
178491
178878
  if (!props.resource.product?.integrationConfigurationId) {
178492
178879
  output_manager_default.log(
178493
- `The resource ${import_chalk105.default.bold(props.resource.name)} does not have an integration configuration.`
178880
+ `The resource ${import_chalk106.default.bold(props.resource.name)} does not have an integration configuration.`
178494
178881
  );
178495
178882
  return 0;
178496
178883
  }
178497
- const entityTextReference = props.isInstallationLevel ? `installation ${import_chalk105.default.bold(props.resource.product?.name)}` : `resource ${import_chalk105.default.bold(props.resource.name)}`;
178884
+ const entityTextReference = props.isInstallationLevel ? `installation ${import_chalk106.default.bold(props.resource.product?.name)}` : `resource ${import_chalk106.default.bold(props.resource.name)}`;
178498
178885
  if (props.existingThreshold) {
178499
178886
  const shouldOverwriteThreshold = props.skipConfirmWithYes || await props.client.input.confirm(
178500
178887
  `The ${entityTextReference} already has a threshold. (minimum: $${props.existingThreshold.minimumAmountInCents / 100}, spend: $${props.existingThreshold.purchaseAmountInCents / 100}, limit: ${props.existingThreshold.maximumAmountPerPeriodInCents ? `$${props.existingThreshold.maximumAmountPerPeriodInCents / 100}` : "none set"}). Do you want to overwrite it?`,
@@ -178551,11 +178938,11 @@ async function handleUpdateThreshold(props) {
178551
178938
  output_manager_default.success(`Threshold for ${entityTextReference} created successfully.`);
178552
178939
  return 0;
178553
178940
  }
178554
- var import_chalk105;
178941
+ var import_chalk106;
178555
178942
  var init_create_threshold2 = __esm({
178556
178943
  "src/commands/integration-resource/create-threshold.ts"() {
178557
178944
  "use strict";
178558
- import_chalk105 = __toESM3(require_source());
178945
+ import_chalk106 = __toESM3(require_source());
178559
178946
  init_output_manager();
178560
178947
  init_error2();
178561
178948
  init_get_args();
@@ -178698,7 +179085,7 @@ async function disconnect2(client2) {
178698
179085
  );
178699
179086
  output_manager_default.stopSpinner();
178700
179087
  if (!targetedResource) {
178701
- output_manager_default.error(`No resource ${import_chalk106.default.bold(resourceName)} found.`);
179088
+ output_manager_default.error(`No resource ${import_chalk107.default.bold(resourceName)} found.`);
178702
179089
  return 0;
178703
179090
  }
178704
179091
  if (parsedArguments.flags["--all"]) {
@@ -178748,7 +179135,7 @@ async function handleDisconnectProject(client2, resource, projectName, skipConfi
178748
179135
  );
178749
179136
  if (!project) {
178750
179137
  output_manager_default.log(
178751
- `Could not find project ${import_chalk106.default.bold(projectName)} connected to resource ${import_chalk106.default.bold(resource.name)}.`
179138
+ `Could not find project ${import_chalk107.default.bold(projectName)} connected to resource ${import_chalk107.default.bold(resource.name)}.`
178752
179139
  );
178753
179140
  return 0;
178754
179141
  }
@@ -178760,7 +179147,7 @@ async function handleDisconnectProject(client2, resource, projectName, skipConfi
178760
179147
  output_manager_default.spinner("Disconnecting resource\u2026", 500);
178761
179148
  await disconnectResourceFromProject(client2, resource, project);
178762
179149
  output_manager_default.success(
178763
- `Disconnected ${import_chalk106.default.bold(project.name)} from ${import_chalk106.default.bold(resource.name)}`
179150
+ `Disconnected ${import_chalk107.default.bold(project.name)} from ${import_chalk107.default.bold(resource.name)}`
178764
179151
  );
178765
179152
  } catch (error3) {
178766
179153
  output_manager_default.error(
@@ -178772,7 +179159,7 @@ async function handleDisconnectProject(client2, resource, projectName, skipConfi
178772
179159
  }
178773
179160
  async function handleDisconnectAllProjects(client2, resource, skipConfirmation) {
178774
179161
  if (resource.projectsMetadata?.length === 0) {
178775
- output_manager_default.log(`${import_chalk106.default.bold(resource.name)} has no projects to disconnect.`);
179162
+ output_manager_default.log(`${import_chalk107.default.bold(resource.name)} has no projects to disconnect.`);
178776
179163
  return;
178777
179164
  }
178778
179165
  if (!skipConfirmation && !await confirmDisconnectAllProjects(client2, resource)) {
@@ -178782,7 +179169,7 @@ async function handleDisconnectAllProjects(client2, resource, skipConfirmation)
178782
179169
  output_manager_default.spinner("Disconnecting projects from resource\u2026", 500);
178783
179170
  await disconnectResourceFromAllProjects(client2, resource);
178784
179171
  output_manager_default.success(
178785
- `Disconnected all projects from ${import_chalk106.default.bold(resource.name)}`
179172
+ `Disconnected all projects from ${import_chalk107.default.bold(resource.name)}`
178786
179173
  );
178787
179174
  } catch (error3) {
178788
179175
  throw new FailedError(
@@ -178793,9 +179180,9 @@ async function handleDisconnectAllProjects(client2, resource, skipConfirmation)
178793
179180
  }
178794
179181
  async function confirmDisconnectProject(client2, resource, project) {
178795
179182
  output_manager_default.log(
178796
- `The resource ${import_chalk106.default.bold(resource.name)} will be disconnected from project ${import_chalk106.default.bold(project.name)}.`
179183
+ `The resource ${import_chalk107.default.bold(resource.name)} will be disconnected from project ${import_chalk107.default.bold(project.name)}.`
178797
179184
  );
178798
- return client2.input.confirm(`${import_chalk106.default.red("Are you sure?")}`, false);
179185
+ return client2.input.confirm(`${import_chalk107.default.red("Are you sure?")}`, false);
178799
179186
  }
178800
179187
  async function confirmDisconnectAllProjects(client2, resource) {
178801
179188
  output_manager_default.log("The following projects will be disconnected:");
@@ -178806,13 +179193,13 @@ async function confirmDisconnectAllProjects(client2, resource) {
178806
179193
  output_manager_default.print(` ${project.name}
178807
179194
  `);
178808
179195
  }
178809
- return client2.input.confirm(import_chalk106.default.red("Are you sure?"), false);
179196
+ return client2.input.confirm(import_chalk107.default.red("Are you sure?"), false);
178810
179197
  }
178811
- var import_chalk106;
179198
+ var import_chalk107;
178812
179199
  var init_disconnect4 = __esm({
178813
179200
  "src/commands/integration-resource/disconnect.ts"() {
178814
179201
  "use strict";
178815
- import_chalk106 = __toESM3(require_source());
179202
+ import_chalk107 = __toESM3(require_source());
178816
179203
  init_output_manager();
178817
179204
  init_get_args();
178818
179205
  init_get_flags_specification();
@@ -178917,7 +179304,7 @@ async function remove4(client2) {
178917
179304
  );
178918
179305
  output_manager_default.stopSpinner();
178919
179306
  if (!targetedResource) {
178920
- output_manager_default.error(`No resource ${import_chalk107.default.bold(resourceName)} found.`);
179307
+ output_manager_default.error(`No resource ${import_chalk108.default.bold(resourceName)} found.`);
178921
179308
  return 0;
178922
179309
  }
178923
179310
  if (disconnectAll) {
@@ -178948,7 +179335,7 @@ async function handleDeleteResource(client2, team, resource, options) {
178948
179335
  const hasProjects = resource.projectsMetadata && resource.projectsMetadata?.length > 0;
178949
179336
  if (!options?.skipProjectCheck && hasProjects) {
178950
179337
  output_manager_default.error(
178951
- `Cannot delete resource ${import_chalk107.default.bold(resource.name)} while it has connected projects. Please disconnect any projects using this resource first or use the \`--disconnect-all\` flag.`
179338
+ `Cannot delete resource ${import_chalk108.default.bold(resource.name)} while it has connected projects. Please disconnect any projects using this resource first or use the \`--disconnect-all\` flag.`
178952
179339
  );
178953
179340
  return 1;
178954
179341
  }
@@ -178959,24 +179346,24 @@ async function handleDeleteResource(client2, team, resource, options) {
178959
179346
  try {
178960
179347
  output_manager_default.spinner("Deleting resource\u2026", 500);
178961
179348
  await deleteResource(client2, resource, team);
178962
- output_manager_default.success(`${import_chalk107.default.bold(resource.name)} successfully deleted.`);
179349
+ output_manager_default.success(`${import_chalk108.default.bold(resource.name)} successfully deleted.`);
178963
179350
  } catch (error3) {
178964
179351
  output_manager_default.error(
178965
- `A problem occurred when attempting to delete ${import_chalk107.default.bold(resource.name)}: ${error3.message}`
179352
+ `A problem occurred when attempting to delete ${import_chalk108.default.bold(resource.name)}: ${error3.message}`
178966
179353
  );
178967
179354
  return 1;
178968
179355
  }
178969
179356
  return 0;
178970
179357
  }
178971
179358
  async function confirmDeleteResource(client2, resource) {
178972
- output_manager_default.log(`${import_chalk107.default.bold(resource.name)} will be deleted permanently.`);
178973
- return client2.input.confirm(`${import_chalk107.default.red("Are you sure?")}`, false);
179359
+ output_manager_default.log(`${import_chalk108.default.bold(resource.name)} will be deleted permanently.`);
179360
+ return client2.input.confirm(`${import_chalk108.default.red("Are you sure?")}`, false);
178974
179361
  }
178975
- var import_chalk107;
179362
+ var import_chalk108;
178976
179363
  var init_remove_resource = __esm({
178977
179364
  "src/commands/integration-resource/remove-resource.ts"() {
178978
179365
  "use strict";
178979
- import_chalk107 = __toESM3(require_source());
179366
+ import_chalk108 = __toESM3(require_source());
178980
179367
  init_output_manager();
178981
179368
  init_get_args();
178982
179369
  init_get_flags_specification();
@@ -179422,7 +179809,7 @@ async function list5(client2) {
179422
179809
  }
179423
179810
  const projectSlugLink = formatProject(contextName, project.name);
179424
179811
  if (!singleDeployment) {
179425
- spinner(`Fetching deployments in ${import_chalk108.default.bold(contextName)}`);
179812
+ spinner(`Fetching deployments in ${import_chalk109.default.bold(contextName)}`);
179426
179813
  const start = Date.now();
179427
179814
  debug2("Fetching deployments");
179428
179815
  const query = new URLSearchParams({ limit: "20", projectId: project.id });
@@ -179462,7 +179849,7 @@ async function list5(client2) {
179462
179849
  const urls = [];
179463
179850
  const tablePrint = table(
179464
179851
  [
179465
- headers.map((header) => import_chalk108.default.bold(import_chalk108.default.cyan(header))),
179852
+ headers.map((header) => import_chalk109.default.bold(import_chalk109.default.cyan(header))),
179466
179853
  ...deployments.sort(sortByCreatedAt).map((dep) => {
179467
179854
  urls.push(`https://${dep.url}`);
179468
179855
  const proposedExp = dep.proposedExpiration ? toDate(Math.min(Date.now(), dep.proposedExpiration)) : "No expiration";
@@ -179472,16 +179859,16 @@ async function list5(client2) {
179472
179859
  const targetName = dep.customEnvironment?.slug || (dep.target === "production" ? "Production" : "Preview");
179473
179860
  const targetSlug = dep.customEnvironment?.id || dep.target || "preview";
179474
179861
  return [
179475
- import_chalk108.default.gray(createdAt),
179862
+ import_chalk109.default.gray(createdAt),
179476
179863
  `https://${dep.url}`,
179477
179864
  stateString2(dep.readyState || ""),
179478
179865
  formatEnvironment(contextName, project.name, {
179479
179866
  id: targetSlug,
179480
179867
  slug: targetName
179481
179868
  }),
179482
- ...!showPolicy ? [import_chalk108.default.gray(getDeploymentDuration(dep))] : [],
179483
- ...!showPolicy ? [import_chalk108.default.gray(dep.creator?.username)] : [],
179484
- ...showPolicy ? [import_chalk108.default.gray(proposedExp)] : []
179869
+ ...!showPolicy ? [import_chalk109.default.gray(getDeploymentDuration(dep))] : [],
179870
+ ...!showPolicy ? [import_chalk109.default.gray(dep.creator?.username)] : [],
179871
+ ...showPolicy ? [import_chalk109.default.gray(proposedExp)] : []
179485
179872
  ];
179486
179873
  }).filter(
179487
179874
  (app2) => (
@@ -179528,17 +179915,17 @@ function stateString2(s) {
179528
179915
  case "BUILDING":
179529
179916
  case "DEPLOYING":
179530
179917
  case "ANALYZING":
179531
- return import_chalk108.default.yellow(CIRCLE) + sTitle;
179918
+ return import_chalk109.default.yellow(CIRCLE) + sTitle;
179532
179919
  case "ERROR":
179533
- return import_chalk108.default.red(CIRCLE) + sTitle;
179920
+ return import_chalk109.default.red(CIRCLE) + sTitle;
179534
179921
  case "READY":
179535
- return import_chalk108.default.green(CIRCLE) + sTitle;
179922
+ return import_chalk109.default.green(CIRCLE) + sTitle;
179536
179923
  case "QUEUED":
179537
- return import_chalk108.default.white(CIRCLE) + sTitle;
179924
+ return import_chalk109.default.white(CIRCLE) + sTitle;
179538
179925
  case "CANCELED":
179539
- return import_chalk108.default.gray(sTitle);
179926
+ return import_chalk109.default.gray(sTitle);
179540
179927
  default:
179541
- return import_chalk108.default.gray("UNKNOWN");
179928
+ return import_chalk109.default.gray("UNKNOWN");
179542
179929
  }
179543
179930
  }
179544
179931
  function sortByCreatedAt(a, b) {
@@ -179554,12 +179941,12 @@ function filterUniqueApps() {
179554
179941
  return true;
179555
179942
  };
179556
179943
  }
179557
- var import_ms20, import_chalk108, import_title8, import_error_utils27;
179944
+ var import_ms20, import_chalk109, import_title8, import_error_utils27;
179558
179945
  var init_list8 = __esm({
179559
179946
  "src/commands/list/index.ts"() {
179560
179947
  "use strict";
179561
179948
  import_ms20 = __toESM3(require_ms());
179562
- import_chalk108 = __toESM3(require_source());
179949
+ import_chalk109 = __toESM3(require_source());
179563
179950
  import_title8 = __toESM3(require_lib4());
179564
179951
  init_table();
179565
179952
  init_get_args();
@@ -179723,7 +180110,7 @@ async function logs(client2) {
179723
180110
  } catch {
179724
180111
  }
179725
180112
  spinner(
179726
- `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk109.default.bold(contextName)}`
180113
+ `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk110.default.bold(contextName)}`
179727
180114
  );
179728
180115
  let deployment;
179729
180116
  try {
@@ -179743,9 +180130,9 @@ async function logs(client2) {
179743
180130
  return 1;
179744
180131
  }
179745
180132
  output_manager_default.print(
179746
- `Displaying runtime logs for deployment ${deployment.url} (${import_chalk109.default.dim(
180133
+ `Displaying runtime logs for deployment ${deployment.url} (${import_chalk110.default.dim(
179747
180134
  deployment.id
179748
- )}) starting from ${import_chalk109.default.bold((0, import_format3.default)(Date.now(), DATE_TIME_FORMAT))}
180135
+ )}) starting from ${import_chalk110.default.bold((0, import_format3.default)(Date.now(), DATE_TIME_FORMAT))}
179749
180136
 
179750
180137
  `
179751
180138
  );
@@ -179760,12 +180147,12 @@ async function logs(client2) {
179760
180147
  abortController
179761
180148
  );
179762
180149
  }
179763
- var import_error_utils28, import_chalk109, import_format3, deprecatedFlags, DATE_TIME_FORMAT;
180150
+ var import_error_utils28, import_chalk110, import_format3, deprecatedFlags, DATE_TIME_FORMAT;
179764
180151
  var init_logs3 = __esm({
179765
180152
  "src/commands/logs/index.ts"() {
179766
180153
  "use strict";
179767
180154
  import_error_utils28 = __toESM3(require_dist2());
179768
- import_chalk109 = __toESM3(require_source());
180155
+ import_chalk110 = __toESM3(require_source());
179769
180156
  import_format3 = __toESM3(require_format());
179770
180157
  init_build_state();
179771
180158
  init_is_deploying();
@@ -180309,7 +180696,7 @@ async function pull2(client2) {
180309
180696
  client2.config.currentTeam = org.type === "team" ? org.id : void 0;
180310
180697
  const { contextName } = await getScope(client2);
180311
180698
  output_manager_default.spinner(
180312
- `Fetching microfrontends configuration in ${import_chalk110.default.bold(contextName)}`
180699
+ `Fetching microfrontends configuration in ${import_chalk111.default.bold(contextName)}`
180313
180700
  );
180314
180701
  let parsedArgs;
180315
180702
  const flagsSpecification = getFlagsSpecification(pullSubcommand2.options);
@@ -180357,11 +180744,11 @@ async function pull2(client2) {
180357
180744
  const microfrontendsStamp = stamp_default();
180358
180745
  output_manager_default.print(
180359
180746
  `${prependEmoji(
180360
- `Downloaded microfrontends configuration to ${import_chalk110.default.bold(
180747
+ `Downloaded microfrontends configuration to ${import_chalk111.default.bold(
180361
180748
  humanizePath(
180362
180749
  (0, import_node_path5.join)(currentDirectory, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS)
180363
180750
  )
180364
- )} ${import_chalk110.default.gray(microfrontendsStamp())}`,
180751
+ )} ${import_chalk111.default.gray(microfrontendsStamp())}`,
180365
180752
  emoji("success")
180366
180753
  )}
180367
180754
  `
@@ -180373,11 +180760,11 @@ async function pull2(client2) {
180373
180760
  return 1;
180374
180761
  }
180375
180762
  }
180376
- var import_chalk110, import_node_path5, import_fs_extra23, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS;
180763
+ var import_chalk111, import_node_path5, import_fs_extra23, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS;
180377
180764
  var init_pull5 = __esm({
180378
180765
  "src/commands/microfrontends/pull.ts"() {
180379
180766
  "use strict";
180380
- import_chalk110 = __toESM3(require_source());
180767
+ import_chalk111 = __toESM3(require_source());
180381
180768
  import_node_path5 = require("path");
180382
180769
  init_output_manager();
180383
180770
  init_get_scope();
@@ -180530,12 +180917,12 @@ async function add6(client2, argv) {
180530
180917
  const { args: args2 } = parsedArgs;
180531
180918
  if (args2.length !== 1) {
180532
180919
  output_manager_default.error(
180533
- `Invalid number of arguments. Usage: ${import_chalk111.default.cyan(
180920
+ `Invalid number of arguments. Usage: ${import_chalk112.default.cyan(
180534
180921
  `${getCommandName("project add <name>")}`
180535
180922
  )}`
180536
180923
  );
180537
180924
  if (args2.length > 1) {
180538
- const example = import_chalk111.default.cyan(
180925
+ const example = import_chalk112.default.cyan(
180539
180926
  `${getCommandName(`project add "${args2.join(" ")}"`)}`
180540
180927
  );
180541
180928
  output_manager_default.log(
@@ -180563,17 +180950,17 @@ async function add6(client2, argv) {
180563
180950
  const elapsed2 = (0, import_ms21.default)(Date.now() - start);
180564
180951
  const { contextName } = await getScope(client2);
180565
180952
  output_manager_default.log(
180566
- `${import_chalk111.default.cyan("Success!")} Project ${import_chalk111.default.bold(
180953
+ `${import_chalk112.default.cyan("Success!")} Project ${import_chalk112.default.bold(
180567
180954
  name.toLowerCase()
180568
- )} added (${import_chalk111.default.bold(contextName)}) ${import_chalk111.default.gray(`[${elapsed2}]`)}`
180955
+ )} added (${import_chalk112.default.bold(contextName)}) ${import_chalk112.default.gray(`[${elapsed2}]`)}`
180569
180956
  );
180570
180957
  return 0;
180571
180958
  }
180572
- var import_chalk111, import_ms21;
180959
+ var import_chalk112, import_ms21;
180573
180960
  var init_add12 = __esm({
180574
180961
  "src/commands/project/add.ts"() {
180575
180962
  "use strict";
180576
- import_chalk111 = __toESM3(require_source());
180963
+ import_chalk112 = __toESM3(require_source());
180577
180964
  import_ms21 = __toESM3(require_ms());
180578
180965
  init_errors_ts();
180579
180966
  init_pkg_name();
@@ -180672,7 +181059,7 @@ async function inspect4(client2, argv) {
180672
181059
  telemetry2.trackCliFlagYes(parsedArgs.flags["--yes"]);
180673
181060
  if (args2.length !== 0 && args2.length !== 1) {
180674
181061
  output_manager_default.error(
180675
- `Invalid number of arguments. Usage: ${import_chalk112.default.cyan(
181062
+ `Invalid number of arguments. Usage: ${import_chalk113.default.cyan(
180676
181063
  `${getCommandName("project inspect <name>")}`
180677
181064
  )}`
180678
181065
  );
@@ -180687,52 +181074,52 @@ async function inspect4(client2, argv) {
180687
181074
  });
180688
181075
  const org = await getTeamById(client2, project.accountId);
180689
181076
  const projectSlugLink = formatProject(org.slug, project.name);
180690
- output_manager_default.log(`Found Project ${projectSlugLink} ${import_chalk112.default.gray(inspectStamp())}`);
181077
+ output_manager_default.log(`Found Project ${projectSlugLink} ${import_chalk113.default.gray(inspectStamp())}`);
180691
181078
  output_manager_default.print("\n");
180692
- output_manager_default.print(import_chalk112.default.bold(" General\n\n"));
180693
- output_manager_default.print(` ${import_chalk112.default.cyan("ID")} ${project.id}
181079
+ output_manager_default.print(import_chalk113.default.bold(" General\n\n"));
181080
+ output_manager_default.print(` ${import_chalk113.default.cyan("ID")} ${project.id}
180694
181081
  `);
180695
- output_manager_default.print(` ${import_chalk112.default.cyan("Name")} ${project.name}
181082
+ output_manager_default.print(` ${import_chalk113.default.cyan("Name")} ${project.name}
180696
181083
  `);
180697
- output_manager_default.print(` ${import_chalk112.default.cyan("Owner")} ${org.name}
181084
+ output_manager_default.print(` ${import_chalk113.default.cyan("Owner")} ${org.name}
180698
181085
  `);
180699
181086
  output_manager_default.print(
180700
- ` ${import_chalk112.default.cyan("Created At")} ${formatDate(project.createdAt)}
181087
+ ` ${import_chalk113.default.cyan("Created At")} ${formatDate(project.createdAt)}
180701
181088
  `
180702
181089
  );
180703
181090
  output_manager_default.print(
180704
- ` ${import_chalk112.default.cyan("Root Directory")} ${project.rootDirectory ?? "."}
181091
+ ` ${import_chalk113.default.cyan("Root Directory")} ${project.rootDirectory ?? "."}
180705
181092
  `
180706
181093
  );
180707
181094
  output_manager_default.print(
180708
- ` ${import_chalk112.default.cyan("Node.js Version")} ${project.nodeVersion}
181095
+ ` ${import_chalk113.default.cyan("Node.js Version")} ${project.nodeVersion}
180709
181096
  `
180710
181097
  );
180711
181098
  const framework = import_frameworks7.frameworkList.find((f) => f.slug === project.framework);
180712
181099
  output_manager_default.print("\n");
180713
- output_manager_default.print(import_chalk112.default.bold(" Framework Settings\n\n"));
180714
- output_manager_default.print(` ${import_chalk112.default.cyan("Framework Preset")} ${framework?.name}
181100
+ output_manager_default.print(import_chalk113.default.bold(" Framework Settings\n\n"));
181101
+ output_manager_default.print(` ${import_chalk113.default.cyan("Framework Preset")} ${framework?.name}
180715
181102
  `);
180716
181103
  output_manager_default.print(
180717
- ` ${import_chalk112.default.cyan("Build Command")} ${project.buildCommand ?? import_chalk112.default.dim(framework?.settings?.buildCommand.placeholder ?? "None")}
181104
+ ` ${import_chalk113.default.cyan("Build Command")} ${project.buildCommand ?? import_chalk113.default.dim(framework?.settings?.buildCommand.placeholder ?? "None")}
180718
181105
  `
180719
181106
  );
180720
181107
  output_manager_default.print(
180721
- ` ${import_chalk112.default.cyan("Output Directory")} ${project.outputDirectory ?? import_chalk112.default.dim(framework?.settings?.outputDirectory.placeholder ?? "None")}
181108
+ ` ${import_chalk113.default.cyan("Output Directory")} ${project.outputDirectory ?? import_chalk113.default.dim(framework?.settings?.outputDirectory.placeholder ?? "None")}
180722
181109
  `
180723
181110
  );
180724
181111
  output_manager_default.print(
180725
- ` ${import_chalk112.default.cyan("Install Command")} ${project.installCommand ?? import_chalk112.default.dim(framework?.settings?.installCommand.placeholder ?? "None")}
181112
+ ` ${import_chalk113.default.cyan("Install Command")} ${project.installCommand ?? import_chalk113.default.dim(framework?.settings?.installCommand.placeholder ?? "None")}
180726
181113
  `
180727
181114
  );
180728
181115
  output_manager_default.print("\n");
180729
181116
  return 0;
180730
181117
  }
180731
- var import_chalk112, import_frameworks7;
181118
+ var import_chalk113, import_frameworks7;
180732
181119
  var init_inspect6 = __esm({
180733
181120
  "src/commands/project/inspect.ts"() {
180734
181121
  "use strict";
180735
- import_chalk112 = __toESM3(require_source());
181122
+ import_chalk113 = __toESM3(require_source());
180736
181123
  import_frameworks7 = __toESM3(require_frameworks());
180737
181124
  init_pkg_name();
180738
181125
  init_inspect5();
@@ -180796,7 +181183,7 @@ async function list6(client2, argv) {
180796
181183
  const { args: args2, flags: opts } = parsedArgs;
180797
181184
  if (args2.length !== 0) {
180798
181185
  output_manager_default.error(
180799
- `Invalid number of arguments. Usage: ${import_chalk113.default.cyan(
181186
+ `Invalid number of arguments. Usage: ${import_chalk114.default.cyan(
180800
181187
  `${getCommandName("project ls")}`
180801
181188
  )}`
180802
181189
  );
@@ -180804,7 +181191,7 @@ async function list6(client2, argv) {
180804
181191
  }
180805
181192
  const start = Date.now();
180806
181193
  const { contextName } = await getScope(client2);
180807
- output_manager_default.spinner(`Fetching projects in ${import_chalk113.default.bold(contextName)}`);
181194
+ output_manager_default.spinner(`Fetching projects in ${import_chalk114.default.bold(contextName)}`);
180808
181195
  const flags = processFlags(opts, telemetryClient);
180809
181196
  const projectsUrl = buildProjectsUrl(flags);
180810
181197
  const {
@@ -180877,7 +181264,7 @@ function outputJson(client2, projectList, metadata) {
180877
181264
  function outputTable(projectList, options) {
180878
181265
  const { contextName, elapsed: elapsed2, deprecated, opts, pagination } = options;
180879
181266
  output_manager_default.log(
180880
- `${projectList.length > 0 ? "Projects" : "No projects"} found under ${import_chalk113.default.bold(contextName)} ${deprecated ? "that are using a deprecated Node.js version" : "\b"} ${import_chalk113.default.gray(`[${elapsed2}]`)}`
181267
+ `${projectList.length > 0 ? "Projects" : "No projects"} found under ${import_chalk114.default.bold(contextName)} ${deprecated ? "that are using a deprecated Node.js version" : "\b"} ${import_chalk114.default.gray(`[${elapsed2}]`)}`
180881
181268
  );
180882
181269
  if (projectList.length > 0) {
180883
181270
  printProjectsTable(projectList);
@@ -180887,12 +181274,12 @@ function outputTable(projectList, options) {
180887
181274
  function printProjectsTable(projectList) {
180888
181275
  const tablePrint = table(
180889
181276
  [
180890
- TABLE_HEADERS.map((header) => import_chalk113.default.bold(import_chalk113.default.cyan(header))),
181277
+ TABLE_HEADERS.map((header) => import_chalk114.default.bold(import_chalk114.default.cyan(header))),
180891
181278
  ...projectList.flatMap((project) => [
180892
181279
  [
180893
- import_chalk113.default.bold(project.name),
181280
+ import_chalk114.default.bold(project.name),
180894
181281
  getLatestProdUrl(project),
180895
- import_chalk113.default.gray((0, import_ms22.default)(Date.now() - project.updatedAt)),
181282
+ import_chalk114.default.gray((0, import_ms22.default)(Date.now() - project.updatedAt)),
180896
181283
  project.nodeVersion ?? ""
180897
181284
  ]
180898
181285
  ])
@@ -180917,12 +181304,12 @@ function getLatestProdUrl(project) {
180917
181304
  return `https://${alias2}`;
180918
181305
  return "--";
180919
181306
  }
180920
- var import_ms22, import_chalk113, TABLE_HEADERS, PAGINATION_FLAGS_TO_EXCLUDE, BASE_PROJECTS_URL;
181307
+ var import_ms22, import_chalk114, TABLE_HEADERS, PAGINATION_FLAGS_TO_EXCLUDE, BASE_PROJECTS_URL;
180921
181308
  var init_list10 = __esm({
180922
181309
  "src/commands/project/list.ts"() {
180923
181310
  "use strict";
180924
181311
  import_ms22 = __toESM3(require_ms());
180925
- import_chalk113 = __toESM3(require_source());
181312
+ import_chalk114 = __toESM3(require_source());
180926
181313
  init_table();
180927
181314
  init_get_command_flags();
180928
181315
  init_pkg_name();
@@ -180981,7 +181368,7 @@ async function rm6(client2, argv) {
180981
181368
  const { args: args2 } = parsedArgs;
180982
181369
  if (args2.length !== 1) {
180983
181370
  output_manager_default.error(
180984
- `Invalid number of arguments. Usage: ${import_chalk114.default.cyan(
181371
+ `Invalid number of arguments. Usage: ${import_chalk115.default.cyan(
180985
181372
  `${getCommandName("project rm <name>")}`
180986
181373
  )}`
180987
181374
  );
@@ -181011,7 +181398,7 @@ async function rm6(client2, argv) {
181011
181398
  }
181012
181399
  const elapsed2 = (0, import_ms23.default)(Date.now() - start);
181013
181400
  output_manager_default.log(
181014
- `${import_chalk114.default.cyan("Success!")} Project ${import_chalk114.default.bold(name)} removed ${import_chalk114.default.gray(
181401
+ `${import_chalk115.default.cyan("Success!")} Project ${import_chalk115.default.bold(name)} removed ${import_chalk115.default.gray(
181015
181402
  `[${elapsed2}]`
181016
181403
  )}`
181017
181404
  );
@@ -181020,22 +181407,22 @@ async function rm6(client2, argv) {
181020
181407
  async function readConfirmation3(client2, projectName) {
181021
181408
  output_manager_default.print(
181022
181409
  prependEmoji(
181023
- `The project ${import_chalk114.default.bold(projectName)} will be removed permanently.
181410
+ `The project ${import_chalk115.default.bold(projectName)} will be removed permanently.
181024
181411
  It will also delete everything under the project including deployments.
181025
181412
  `,
181026
181413
  emoji("warning")
181027
181414
  )
181028
181415
  );
181029
181416
  return await client2.input.confirm(
181030
- `${import_chalk114.default.bold.red("Are you sure?")}`,
181417
+ `${import_chalk115.default.bold.red("Are you sure?")}`,
181031
181418
  false
181032
181419
  );
181033
181420
  }
181034
- var import_chalk114, import_ms23, e;
181421
+ var import_chalk115, import_ms23, e;
181035
181422
  var init_rm10 = __esm({
181036
181423
  "src/commands/project/rm.ts"() {
181037
181424
  "use strict";
181038
- import_chalk114 = __toESM3(require_source());
181425
+ import_chalk115 = __toESM3(require_source());
181039
181426
  import_ms23 = __toESM3(require_ms());
181040
181427
  init_emoji();
181041
181428
  init_errors_ts();
@@ -181203,7 +181590,7 @@ async function getProjectByDeployment({
181203
181590
  let team;
181204
181591
  try {
181205
181592
  output_manager_default?.spinner(
181206
- `Fetching deployment "${deployId}" in ${import_chalk115.default.bold(contextName)}\u2026`
181593
+ `Fetching deployment "${deployId}" in ${import_chalk116.default.bold(contextName)}\u2026`
181207
181594
  );
181208
181595
  const [teamResult, deploymentResult] = await Promise.allSettled([
181209
181596
  config2.currentTeam ? getTeamById(client2, config2.currentTeam) : void 0,
@@ -181220,12 +181607,12 @@ async function getProjectByDeployment({
181220
181607
  team = teamResult.value;
181221
181608
  deployment = deploymentResult.value;
181222
181609
  output_manager_default?.log(
181223
- `Fetching deployment "${deployId}" in ${import_chalk115.default.bold(contextName)}\u2026`
181610
+ `Fetching deployment "${deployId}" in ${import_chalk116.default.bold(contextName)}\u2026`
181224
181611
  );
181225
181612
  if (deployment.team?.id) {
181226
181613
  if (!team || deployment.team.id !== team.id) {
181227
181614
  const err = new Error(
181228
- team ? `Deployment doesn't belong to current team ${import_chalk115.default.bold(
181615
+ team ? `Deployment doesn't belong to current team ${import_chalk116.default.bold(
181229
181616
  contextName
181230
181617
  )}` : `Deployment belongs to a different team`
181231
181618
  );
@@ -181234,7 +181621,7 @@ async function getProjectByDeployment({
181234
181621
  }
181235
181622
  } else if (team) {
181236
181623
  const err = new Error(
181237
- `Deployment doesn't belong to current team ${import_chalk115.default.bold(contextName)}`
181624
+ `Deployment doesn't belong to current team ${import_chalk116.default.bold(contextName)}`
181238
181625
  );
181239
181626
  err.code = "ERR_INVALID_TEAM";
181240
181627
  throw err;
@@ -181255,11 +181642,11 @@ async function getProjectByDeployment({
181255
181642
  output_manager_default?.stopSpinner();
181256
181643
  }
181257
181644
  }
181258
- var import_chalk115;
181645
+ var import_chalk116;
181259
181646
  var init_get_project_by_deployment = __esm({
181260
181647
  "src/util/projects/get-project-by-deployment.ts"() {
181261
181648
  "use strict";
181262
- import_chalk115 = __toESM3(require_source());
181649
+ import_chalk116 = __toESM3(require_source());
181263
181650
  init_get_deployment();
181264
181651
  init_get_project_by_id_or_name();
181265
181652
  init_get_scope();
@@ -181273,21 +181660,21 @@ var init_get_project_by_deployment = __esm({
181273
181660
  // src/util/alias/render-alias-status.ts
181274
181661
  function renderAliasStatus(status3) {
181275
181662
  if (status3 === "completed") {
181276
- return import_chalk116.default.green(status3);
181663
+ return import_chalk117.default.green(status3);
181277
181664
  }
181278
181665
  if (status3 === "failed") {
181279
- return import_chalk116.default.red(status3);
181666
+ return import_chalk117.default.red(status3);
181280
181667
  }
181281
181668
  if (status3 === "skipped") {
181282
- return import_chalk116.default.gray(status3);
181669
+ return import_chalk117.default.gray(status3);
181283
181670
  }
181284
- return import_chalk116.default.yellow(status3);
181671
+ return import_chalk117.default.yellow(status3);
181285
181672
  }
181286
- var import_chalk116;
181673
+ var import_chalk117;
181287
181674
  var init_render_alias_status = __esm({
181288
181675
  "src/util/alias/render-alias-status.ts"() {
181289
181676
  "use strict";
181290
- import_chalk116 = __toESM3(require_source());
181677
+ import_chalk117 = __toESM3(require_source());
181291
181678
  }
181292
181679
  });
181293
181680
 
@@ -181394,7 +181781,7 @@ async function promoteStatus({
181394
181781
  }
181395
181782
  if (requestedAt < recentThreshold || Date.now() >= promoteTimeout) {
181396
181783
  output_manager_default.log(
181397
- `The promotion exceeded its deadline - rerun ${import_chalk117.default.bold(
181784
+ `The promotion exceeded its deadline - rerun ${import_chalk118.default.bold(
181398
181785
  `${packageName} promote ${toDeploymentId}`
181399
181786
  )} to try again`
181400
181787
  );
@@ -181458,26 +181845,26 @@ async function renderJobSucceeded({
181458
181845
  let deploymentInfo = "";
181459
181846
  try {
181460
181847
  const deployment = await getDeployment(client2, contextName, toDeploymentId);
181461
- deploymentInfo = `${import_chalk117.default.bold(deployment.url)} (${toDeploymentId})`;
181848
+ deploymentInfo = `${import_chalk118.default.bold(deployment.url)} (${toDeploymentId})`;
181462
181849
  } catch (err) {
181463
181850
  output_manager_default.debug(
181464
181851
  `Failed to get deployment url for ${toDeploymentId}: ${err?.toString() || err}`
181465
181852
  );
181466
- deploymentInfo = import_chalk117.default.bold(toDeploymentId);
181853
+ deploymentInfo = import_chalk118.default.bold(toDeploymentId);
181467
181854
  }
181468
181855
  const duration = performingPromote ? elapsed(Date.now() - requestedAt) : "";
181469
181856
  output_manager_default.log(
181470
- `Success! ${import_chalk117.default.bold(
181857
+ `Success! ${import_chalk118.default.bold(
181471
181858
  project.name
181472
181859
  )} was promoted to ${deploymentInfo} ${duration}`
181473
181860
  );
181474
181861
  return 0;
181475
181862
  }
181476
- var import_chalk117, import_ms24;
181863
+ var import_chalk118, import_ms24;
181477
181864
  var init_status2 = __esm({
181478
181865
  "src/commands/promote/status.ts"() {
181479
181866
  "use strict";
181480
- import_chalk117 = __toESM3(require_source());
181867
+ import_chalk118 = __toESM3(require_source());
181481
181868
  init_elapsed();
181482
181869
  init_format_date();
181483
181870
  init_get_deployment();
@@ -181534,7 +181921,7 @@ async function requestPromote({
181534
181921
  }
181535
181922
  );
181536
181923
  output_manager_default.log(
181537
- `Successfully created new deployment of ${import_chalk118.default.bold(project.name)} at ${newDeployment.inspectorUrl}`
181924
+ `Successfully created new deployment of ${import_chalk119.default.bold(project.name)} at ${newDeployment.inspectorUrl}`
181538
181925
  );
181539
181926
  return 0;
181540
181927
  }
@@ -181555,7 +181942,7 @@ async function requestPromote({
181555
181942
  }
181556
181943
  if (timeout !== void 0 && (0, import_ms25.default)(timeout) === 0) {
181557
181944
  output_manager_default.log(
181558
- `Successfully requested promote of ${import_chalk118.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
181945
+ `Successfully requested promote of ${import_chalk119.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
181559
181946
  );
181560
181947
  output_manager_default.log(`To check promote status, run ${getCommandName("promote")}.`);
181561
181948
  return 0;
@@ -181568,11 +181955,11 @@ async function requestPromote({
181568
181955
  timeout
181569
181956
  });
181570
181957
  }
181571
- var import_chalk118, import_ms25;
181958
+ var import_chalk119, import_ms25;
181572
181959
  var init_request_promote = __esm({
181573
181960
  "src/commands/promote/request-promote.ts"() {
181574
181961
  "use strict";
181575
- import_chalk118 = __toESM3(require_source());
181962
+ import_chalk119 = __toESM3(require_source());
181576
181963
  init_pkg_name();
181577
181964
  init_get_project_by_deployment();
181578
181965
  import_ms25 = __toESM3(require_ms());
@@ -181733,7 +182120,7 @@ async function getDeploymentByIdOrURL({
181733
182120
  let team;
181734
182121
  try {
181735
182122
  output_manager_default.spinner(
181736
- `Fetching deployment "${deployIdOrUrl}" in ${import_chalk119.default.bold(contextName)}\u2026`
182123
+ `Fetching deployment "${deployIdOrUrl}" in ${import_chalk120.default.bold(contextName)}\u2026`
181737
182124
  );
181738
182125
  const [teamResult, deploymentResult] = await Promise.allSettled([
181739
182126
  config2.currentTeam ? getTeamById(client2, config2.currentTeam) : void 0,
@@ -181750,7 +182137,7 @@ async function getDeploymentByIdOrURL({
181750
182137
  team = teamResult.value;
181751
182138
  deployment = deploymentResult.value;
181752
182139
  output_manager_default.log(
181753
- `Fetching deployment "${deployIdOrUrl}" in ${import_chalk119.default.bold(contextName)}\u2026`
182140
+ `Fetching deployment "${deployIdOrUrl}" in ${import_chalk120.default.bold(contextName)}\u2026`
181754
182141
  );
181755
182142
  } finally {
181756
182143
  output_manager_default.stopSpinner();
@@ -181758,7 +182145,7 @@ async function getDeploymentByIdOrURL({
181758
182145
  if (deployment.team?.id) {
181759
182146
  if (!team || deployment.team.id !== team.id) {
181760
182147
  const err = new Error(
181761
- team ? `Deployment doesn't belong to current team ${import_chalk119.default.bold(
182148
+ team ? `Deployment doesn't belong to current team ${import_chalk120.default.bold(
181762
182149
  contextName
181763
182150
  )}` : `Deployment belongs to a different team`
181764
182151
  );
@@ -181767,18 +182154,18 @@ async function getDeploymentByIdOrURL({
181767
182154
  }
181768
182155
  } else if (team) {
181769
182156
  const err = new Error(
181770
- `Deployment doesn't belong to current team ${import_chalk119.default.bold(contextName)}`
182157
+ `Deployment doesn't belong to current team ${import_chalk120.default.bold(contextName)}`
181771
182158
  );
181772
182159
  err.code = "ERR_INVALID_TEAM";
181773
182160
  throw err;
181774
182161
  }
181775
182162
  return deployment;
181776
182163
  }
181777
- var import_chalk119;
182164
+ var import_chalk120;
181778
182165
  var init_get_deployment_by_id_or_url = __esm({
181779
182166
  "src/util/deploy/get-deployment-by-id-or-url.ts"() {
181780
182167
  "use strict";
181781
- import_chalk119 = __toESM3(require_source());
182168
+ import_chalk120 = __toESM3(require_source());
181782
182169
  init_get_deployment();
181783
182170
  init_get_team_by_id();
181784
182171
  init_is_valid_name();
@@ -181917,14 +182304,14 @@ async function redeploy(client2) {
181917
182304
  }
181918
182305
  output_manager_default.print(
181919
182306
  `${prependEmoji(
181920
- `Inspect: ${import_chalk120.default.bold(deployment.inspectorUrl)} ${deployStamp()}`,
182307
+ `Inspect: ${import_chalk121.default.bold(deployment.inspectorUrl)} ${deployStamp()}`,
181921
182308
  emoji("inspect")
181922
182309
  )}
181923
182310
  `
181924
182311
  );
181925
182312
  output_manager_default.print(
181926
182313
  prependEmoji(
181927
- `${isProdDeployment ? "Production" : "Preview"}: ${import_chalk120.default.bold(
182314
+ `${isProdDeployment ? "Production" : "Preview"}: ${import_chalk121.default.bold(
181928
182315
  previewUrl
181929
182316
  )} ${deployStamp()}`,
181930
182317
  emoji("success")
@@ -182005,17 +182392,17 @@ async function redeploy(client2) {
182005
182392
  output_manager_default.prettyError(err);
182006
182393
  if ((0, import_error_utils32.isErrnoException)(err) && err.code === "ERR_INVALID_TEAM") {
182007
182394
  output_manager_default.error(
182008
- `Use ${import_chalk120.default.bold("vc switch")} to change your current team`
182395
+ `Use ${import_chalk121.default.bold("vc switch")} to change your current team`
182009
182396
  );
182010
182397
  }
182011
182398
  return 1;
182012
182399
  }
182013
182400
  }
182014
- var import_chalk120, import_client13, import_error_utils32;
182401
+ var import_chalk121, import_client13, import_error_utils32;
182015
182402
  var init_redeploy2 = __esm({
182016
182403
  "src/commands/redeploy/index.ts"() {
182017
182404
  "use strict";
182018
- import_chalk120 = __toESM3(require_source());
182405
+ import_chalk121 = __toESM3(require_source());
182019
182406
  import_client13 = __toESM3(require_dist7());
182020
182407
  init_emoji();
182021
182408
  init_get_args();
@@ -182223,7 +182610,7 @@ async function remove5(client2) {
182223
182610
  }
182224
182611
  const { contextName } = await getScope(client2);
182225
182612
  output_manager_default.spinner(
182226
- `Fetching deployment(s) ${ids.map((id) => `"${id}"`).join(" ")} in ${import_chalk121.default.bold(contextName)}`
182613
+ `Fetching deployment(s) ${ids.map((id) => `"${id}"`).join(" ")} in ${import_chalk122.default.bold(contextName)}`
182227
182614
  );
182228
182615
  let aliases;
182229
182616
  let projects;
@@ -182289,7 +182676,7 @@ async function remove5(client2) {
182289
182676
  });
182290
182677
  if (deployments.length === 0 && projects.length === 0) {
182291
182678
  const safeUnaliased = parsedArgs.flags["--safe"] ? "unaliased" : "any";
182292
- const stylizedIds = ids.map((id) => import_chalk121.default.bold(`"${id}"`)).join(", ");
182679
+ const stylizedIds = ids.map((id) => import_chalk122.default.bold(`"${id}"`)).join(", ");
182293
182680
  const commandName = getCommandName("projects ls");
182294
182681
  log2(
182295
182682
  `Could not find ${safeUnaliased} deployments or projects matching ${stylizedIds}. Run ${commandName} to list.`
@@ -182297,7 +182684,7 @@ async function remove5(client2) {
182297
182684
  return 1;
182298
182685
  }
182299
182686
  log2(
182300
- `Found ${deploymentsAndProjects(deployments, projects)} for removal in ${import_chalk121.default.bold(contextName)} ${elapsed(Date.now() - findStart)}`
182687
+ `Found ${deploymentsAndProjects(deployments, projects)} for removal in ${import_chalk122.default.bold(contextName)} ${elapsed(Date.now() - findStart)}`
182301
182688
  );
182302
182689
  if (deployments.length > 200) {
182303
182690
  output_manager_default.warn(
@@ -182324,11 +182711,11 @@ async function remove5(client2) {
182324
182711
  `Removed ${deploymentsAndProjects(deployments, projects)} ${elapsed(Date.now() - start)}`
182325
182712
  );
182326
182713
  deployments.forEach((depl) => {
182327
- output_manager_default.print(`${import_chalk121.default.gray("-")} ${import_chalk121.default.bold(depl.url)}
182714
+ output_manager_default.print(`${import_chalk122.default.gray("-")} ${import_chalk122.default.bold(depl.url)}
182328
182715
  `);
182329
182716
  });
182330
182717
  projects.forEach((project) => {
182331
- output_manager_default.print(`${import_chalk121.default.gray("-")} ${import_chalk121.default.bold(project.name)}
182718
+ output_manager_default.print(`${import_chalk122.default.gray("-")} ${import_chalk122.default.bold(project.name)}
182332
182719
  `);
182333
182720
  });
182334
182721
  return 0;
@@ -182345,8 +182732,8 @@ function readConfirmation4(deployments, projects) {
182345
182732
  );
182346
182733
  const deploymentTable = table(
182347
182734
  deployments.map((depl) => {
182348
- const time = import_chalk121.default.gray(`${(0, import_ms27.default)(Date.now() - depl.createdAt)} ago`);
182349
- const url3 = depl.url ? import_chalk121.default.underline(`https://${depl.url}`) : "";
182735
+ const time = import_chalk122.default.gray(`${(0, import_ms27.default)(Date.now() - depl.createdAt)} ago`);
182736
+ const url3 = depl.url ? import_chalk122.default.underline(`https://${depl.url}`) : "";
182350
182737
  return [` ${depl.id}`, url3, time];
182351
182738
  }),
182352
182739
  { align: ["l", "r", "l"], hsep: 6 }
@@ -182357,7 +182744,7 @@ function readConfirmation4(deployments, projects) {
182357
182744
  for (const depl of deployments) {
182358
182745
  for (const { alias: alias2 } of depl.aliases) {
182359
182746
  output_manager_default.warn(
182360
- `${import_chalk121.default.underline(`https://${alias2}`)} is an alias for ${import_chalk121.default.bold(depl.url)} and will be removed`
182747
+ `${import_chalk122.default.underline(`https://${alias2}`)} is an alias for ${import_chalk122.default.bold(depl.url)} and will be removed`
182361
182748
  );
182362
182749
  }
182363
182750
  }
@@ -182371,12 +182758,12 @@ function readConfirmation4(deployments, projects) {
182371
182758
  `
182372
182759
  );
182373
182760
  for (const project of projects) {
182374
- output_manager_default.print(`${import_chalk121.default.gray("-")} ${import_chalk121.default.bold(project.name)}
182761
+ output_manager_default.print(`${import_chalk122.default.gray("-")} ${import_chalk122.default.bold(project.name)}
182375
182762
  `);
182376
182763
  }
182377
182764
  }
182378
182765
  output_manager_default.print(
182379
- `${import_chalk121.default.bold.red("> Are you sure?")} ${import_chalk121.default.gray("(y/N) ")}`
182766
+ `${import_chalk122.default.bold.red("> Are you sure?")} ${import_chalk122.default.gray("(y/N) ")}`
182380
182767
  );
182381
182768
  process.stdin.on("data", (d) => {
182382
182769
  process.stdin.pause();
@@ -182393,11 +182780,11 @@ function deploymentsAndProjects(deployments, projects, conjunction = "and") {
182393
182780
  }
182394
182781
  return `${(0, import_pluralize13.default)("deployment", deployments.length, true)} ${conjunction} ${(0, import_pluralize13.default)("project", projects.length, true)}`;
182395
182782
  }
182396
- var import_chalk121, import_ms27, import_pluralize13;
182783
+ var import_chalk122, import_ms27, import_pluralize13;
182397
182784
  var init_remove6 = __esm({
182398
182785
  "src/commands/remove/index.ts"() {
182399
182786
  "use strict";
182400
- import_chalk121 = __toESM3(require_source());
182787
+ import_chalk122 = __toESM3(require_source());
182401
182788
  import_ms27 = __toESM3(require_ms());
182402
182789
  import_pluralize13 = __toESM3(require_pluralize());
182403
182790
  init_table();
@@ -182493,7 +182880,7 @@ async function rollbackStatus({
182493
182880
  }
182494
182881
  if (requestedAt < recentThreshold || Date.now() >= rollbackTimeout) {
182495
182882
  output_manager_default.log(
182496
- `The rollback exceeded its deadline - rerun ${import_chalk122.default.bold(
182883
+ `The rollback exceeded its deadline - rerun ${import_chalk123.default.bold(
182497
182884
  `${packageName} rollback ${toDeploymentId}`
182498
182885
  )} to try again`
182499
182886
  );
@@ -182557,26 +182944,26 @@ async function renderJobSucceeded2({
182557
182944
  let deploymentInfo = "";
182558
182945
  try {
182559
182946
  const deployment = await getDeployment(client2, contextName, toDeploymentId);
182560
- deploymentInfo = `${import_chalk122.default.bold(deployment.url)} (${toDeploymentId})`;
182947
+ deploymentInfo = `${import_chalk123.default.bold(deployment.url)} (${toDeploymentId})`;
182561
182948
  } catch (err) {
182562
182949
  output_manager_default.debug(
182563
182950
  `Failed to get deployment url for ${toDeploymentId}: ${err?.toString() || err}`
182564
182951
  );
182565
- deploymentInfo = import_chalk122.default.bold(toDeploymentId);
182952
+ deploymentInfo = import_chalk123.default.bold(toDeploymentId);
182566
182953
  }
182567
182954
  const duration = performingRollback ? elapsed(Date.now() - requestedAt) : "";
182568
182955
  output_manager_default.log(
182569
- `Success! ${import_chalk122.default.bold(
182956
+ `Success! ${import_chalk123.default.bold(
182570
182957
  project.name
182571
182958
  )} was rolled back to ${deploymentInfo} ${duration}`
182572
182959
  );
182573
182960
  return 0;
182574
182961
  }
182575
- var import_chalk122, import_ms28;
182962
+ var import_chalk123, import_ms28;
182576
182963
  var init_status3 = __esm({
182577
182964
  "src/commands/rollback/status.ts"() {
182578
182965
  "use strict";
182579
- import_chalk122 = __toESM3(require_source());
182966
+ import_chalk123 = __toESM3(require_source());
182580
182967
  init_elapsed();
182581
182968
  init_format_date();
182582
182969
  init_get_deployment();
@@ -182608,7 +182995,7 @@ async function requestRollback({
182608
182995
  });
182609
182996
  if (timeout !== void 0 && (0, import_ms29.default)(timeout) === 0) {
182610
182997
  output_manager_default.log(
182611
- `Successfully requested rollback of ${import_chalk123.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
182998
+ `Successfully requested rollback of ${import_chalk124.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
182612
182999
  );
182613
183000
  output_manager_default.log(`To check rollback status, run ${getCommandName("rollback")}.`);
182614
183001
  return 0;
@@ -182621,11 +183008,11 @@ async function requestRollback({
182621
183008
  timeout
182622
183009
  });
182623
183010
  }
182624
- var import_chalk123, import_ms29;
183011
+ var import_chalk124, import_ms29;
182625
183012
  var init_request_rollback = __esm({
182626
183013
  "src/commands/rollback/request-rollback.ts"() {
182627
183014
  "use strict";
182628
- import_chalk123 = __toESM3(require_source());
183015
+ import_chalk124 = __toESM3(require_source());
182629
183016
  init_pkg_name();
182630
183017
  init_get_project_by_deployment();
182631
183018
  import_ms29 = __toESM3(require_ms());
@@ -183295,17 +183682,17 @@ function formatBranchMatcher(branchMatcher) {
183295
183682
  if (branchMatcher?.type === "equals") {
183296
183683
  return branchMatcher.pattern;
183297
183684
  } else if (branchMatcher?.type === "startsWith") {
183298
- return `${branchMatcher.pattern}${import_chalk124.default.dim("*")}`;
183685
+ return `${branchMatcher.pattern}${import_chalk125.default.dim("*")}`;
183299
183686
  } else if (branchMatcher?.type === "endsWith") {
183300
- return `${import_chalk124.default.dim("*")}${branchMatcher.pattern}`;
183687
+ return `${import_chalk125.default.dim("*")}${branchMatcher.pattern}`;
183301
183688
  }
183302
- return import_chalk124.default.dim("No branch configuration");
183689
+ return import_chalk125.default.dim("No branch configuration");
183303
183690
  }
183304
183691
  async function list7(client2, argv) {
183305
183692
  const { cwd } = client2;
183306
183693
  if (argv.length !== 0) {
183307
183694
  output_manager_default.error(
183308
- `Invalid number of arguments. Usage: ${import_chalk124.default.cyan(
183695
+ `Invalid number of arguments. Usage: ${import_chalk125.default.cyan(
183309
183696
  `${getCommandName("target ls")}`
183310
183697
  )}`
183311
183698
  );
@@ -183329,12 +183716,12 @@ async function list7(client2, argv) {
183329
183716
  const elapsed2 = (0, import_ms31.default)(Date.now() - start);
183330
183717
  result = withDefaultEnvironmentsIncluded(result);
183331
183718
  output_manager_default.log(
183332
- `${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${import_chalk124.default.gray(`[${elapsed2}]`)}`
183719
+ `${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${import_chalk125.default.gray(`[${elapsed2}]`)}`
183333
183720
  );
183334
183721
  const tablePrint = table(
183335
183722
  [
183336
183723
  ["Target Name", "Branch Tracking", "Type", "Updated"].map(
183337
- (header) => import_chalk124.default.bold(import_chalk124.default.cyan(header))
183724
+ (header) => import_chalk125.default.bold(import_chalk125.default.cyan(header))
183338
183725
  ),
183339
183726
  ...result.flatMap((target) => {
183340
183727
  return [
@@ -183342,7 +183729,7 @@ async function list7(client2, argv) {
183342
183729
  formatEnvironment(link4.org.slug, link4.project.name, target),
183343
183730
  BRANCH_TRACKING_MAP[target.type](link4.project, target),
183344
183731
  TYPE_MAP[target.type],
183345
- import_chalk124.default.gray(
183732
+ import_chalk125.default.gray(
183346
183733
  target.updatedAt > 0 ? (0, import_ms31.default)(Date.now() - target.updatedAt) : "-"
183347
183734
  )
183348
183735
  ]
@@ -183389,12 +183776,12 @@ function withDefaultEnvironmentsIncluded(environments) {
183389
183776
  ...environments.slice().sort((a, b) => a.slug.localeCompare(b.slug))
183390
183777
  ];
183391
183778
  }
183392
- var import_ms31, import_chalk124, TYPE_MAP, BRANCH_TRACKING_MAP;
183779
+ var import_ms31, import_chalk125, TYPE_MAP, BRANCH_TRACKING_MAP;
183393
183780
  var init_list11 = __esm({
183394
183781
  "src/commands/target/list.ts"() {
183395
183782
  "use strict";
183396
183783
  import_ms31 = __toESM3(require_ms());
183397
- import_chalk124 = __toESM3(require_source());
183784
+ import_chalk125 = __toESM3(require_source());
183398
183785
  init_table();
183399
183786
  init_output_manager();
183400
183787
  init_command32();
@@ -183409,8 +183796,8 @@ var init_list11 = __esm({
183409
183796
  };
183410
183797
  BRANCH_TRACKING_MAP = {
183411
183798
  production: (project) => project.link?.productionBranch ?? "main",
183412
- preview: (_, env) => env.slug === "preview" ? import_chalk124.default.dim("All unassigned git branches") : formatBranchMatcher(env.branchMatcher),
183413
- development: () => import_chalk124.default.dim("Accessible via CLI")
183799
+ preview: (_, env) => env.slug === "preview" ? import_chalk125.default.dim("All unassigned git branches") : formatBranchMatcher(env.branchMatcher),
183800
+ development: () => import_chalk125.default.dim("Accessible via CLI")
183414
183801
  };
183415
183802
  }
183416
183803
  });
@@ -183605,7 +183992,7 @@ async function list8(client2, argv) {
183605
183992
  client2.stdout.write("\n");
183606
183993
  const teamTable = table(
183607
183994
  [
183608
- ["id", "Team name"].map((str) => (0, import_chalk125.gray)(str)),
183995
+ ["id", "Team name"].map((str) => (0, import_chalk126.gray)(str)),
183609
183996
  ...teamList.map((team) => [team.value, team.name])
183610
183997
  ],
183611
183998
  { hsep: 5 }
@@ -183622,13 +184009,13 @@ async function list8(client2, argv) {
183622
184009
  }
183623
184010
  return 0;
183624
184011
  }
183625
- var import_chalk125;
184012
+ var import_chalk126;
183626
184013
  var init_list13 = __esm({
183627
184014
  "src/commands/teams/list.ts"() {
183628
184015
  "use strict";
183629
184016
  init_chars();
183630
184017
  init_table();
183631
- import_chalk125 = __toESM3(require_source());
184018
+ import_chalk126 = __toESM3(require_source());
183632
184019
  init_get_user();
183633
184020
  init_get_teams();
183634
184021
  init_pkg_name();
@@ -183723,7 +184110,7 @@ Please select a team scope using ${getCommandName(
183723
184110
  return 1;
183724
184111
  }
183725
184112
  output_manager_default.log(
183726
- introMsg || `Inviting team members to ${import_chalk126.default.bold(currentTeam.name)}`
184113
+ introMsg || `Inviting team members to ${import_chalk127.default.bold(currentTeam.name)}`
183727
184114
  );
183728
184115
  telemetry2.trackCliArgumentEmail(emails);
183729
184116
  if (emails.length > 0) {
@@ -183743,10 +184130,10 @@ Please select a team scope using ${getCommandName(
183743
184130
  throw err;
183744
184131
  }
183745
184132
  output_manager_default.log(
183746
- `${import_chalk126.default.cyan(chars_default.tick)} ${email3}${userInfo ? ` (${userInfo})` : ""} ${elapsed2()}`
184133
+ `${import_chalk127.default.cyan(chars_default.tick)} ${email3}${userInfo ? ` (${userInfo})` : ""} ${elapsed2()}`
183747
184134
  );
183748
184135
  } else {
183749
- output_manager_default.log(`${import_chalk126.default.red(`\u2716 ${email3}`)} ${import_chalk126.default.gray("[invalid]")}`);
184136
+ output_manager_default.log(`${import_chalk127.default.red(`\u2716 ${email3}`)} ${import_chalk127.default.gray("[invalid]")}`);
183750
184137
  }
183751
184138
  }
183752
184139
  return 0;
@@ -183779,15 +184166,15 @@ Please select a team scope using ${getCommandName(
183779
184166
  );
183780
184167
  email2 = `${email2}${username ? ` (${username})` : ""} ${elapsed2()}`;
183781
184168
  emails.push(email2);
183782
- output_manager_default.log(`${import_chalk126.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email2}`);
184169
+ output_manager_default.log(`${import_chalk127.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email2}`);
183783
184170
  if (hasError) {
183784
184171
  hasError = false;
183785
184172
  process.stderr.write(eraseLines(emails.length + 2));
183786
184173
  output_manager_default.log(
183787
- introMsg || `Inviting team members to ${import_chalk126.default.bold(currentTeam.name)}`
184174
+ introMsg || `Inviting team members to ${import_chalk127.default.bold(currentTeam.name)}`
183788
184175
  );
183789
184176
  for (const email3 of emails) {
183790
- output_manager_default.log(`${import_chalk126.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
184177
+ output_manager_default.log(`${import_chalk127.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
183791
184178
  }
183792
184179
  }
183793
184180
  } catch (err) {
@@ -183796,7 +184183,7 @@ Please select a team scope using ${getCommandName(
183796
184183
  output_manager_default.error((0, import_error_utils34.errorToString)(err));
183797
184184
  hasError = true;
183798
184185
  for (const email3 of emails) {
183799
- output_manager_default.log(`${import_chalk126.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email3}`);
184186
+ output_manager_default.log(`${import_chalk127.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email3}`);
183800
184187
  }
183801
184188
  }
183802
184189
  }
@@ -183809,16 +184196,16 @@ Please select a team scope using ${getCommandName(
183809
184196
  } else {
183810
184197
  output_manager_default.success(`Invited ${n} teammate${n > 1 ? "s" : ""}`);
183811
184198
  for (const email3 of emails) {
183812
- output_manager_default.log(`${import_chalk126.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
184199
+ output_manager_default.log(`${import_chalk127.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
183813
184200
  }
183814
184201
  }
183815
184202
  return 0;
183816
184203
  }
183817
- var import_chalk126, import_error_utils34, validateEmail, domains;
184204
+ var import_chalk127, import_error_utils34, validateEmail, domains;
183818
184205
  var init_invite2 = __esm({
183819
184206
  "src/commands/teams/invite.ts"() {
183820
184207
  "use strict";
183821
- import_chalk126 = __toESM3(require_source());
184208
+ import_chalk127 = __toESM3(require_source());
183822
184209
  init_cmd();
183823
184210
  init_stamp();
183824
184211
  init_param();
@@ -183894,7 +184281,7 @@ async function add7(client2) {
183894
184281
  let team;
183895
184282
  let elapsed2;
183896
184283
  output_manager_default.log(
183897
- `Pick a team identifier for its URL (e.g.: ${import_chalk127.default.cyan(
184284
+ `Pick a team identifier for its URL (e.g.: ${import_chalk128.default.cyan(
183898
184285
  "`vercel.com/acme`"
183899
184286
  )})`
183900
184287
  );
@@ -183925,7 +184312,7 @@ async function add7(client2) {
183925
184312
  output_manager_default.stopSpinner();
183926
184313
  process.stdout.write(eraseLines(2));
183927
184314
  output_manager_default.success(`Team created ${elapsed2()}`);
183928
- output_manager_default.log(`${import_chalk127.default.cyan(`${chars_default.tick} `) + teamUrlPrefix + slug}
184315
+ output_manager_default.log(`${import_chalk128.default.cyan(`${chars_default.tick} `) + teamUrlPrefix + slug}
183929
184316
  `);
183930
184317
  output_manager_default.log("Pick a display name for your team");
183931
184318
  let name;
@@ -183948,7 +184335,7 @@ async function add7(client2) {
183948
184335
  process.stdout.write(eraseLines(2));
183949
184336
  team = Object.assign(team, res);
183950
184337
  output_manager_default.success(`Team name saved ${elapsed2()}`);
183951
- output_manager_default.log(`${import_chalk127.default.cyan(`${chars_default.tick} `) + teamNamePrefix + team.name}
184338
+ output_manager_default.log(`${import_chalk128.default.cyan(`${chars_default.tick} `) + teamNamePrefix + team.name}
183952
184339
  `);
183953
184340
  output_manager_default.spinner("Saving");
183954
184341
  client2.config.currentTeam = team.id;
@@ -183962,11 +184349,11 @@ async function add7(client2) {
183962
184349
  });
183963
184350
  return 0;
183964
184351
  }
183965
- var import_chalk127, import_error_utils35, validateSlug, validateName, teamUrlPrefix, teamNamePrefix;
184352
+ var import_chalk128, import_error_utils35, validateSlug, validateName, teamUrlPrefix, teamNamePrefix;
183966
184353
  var init_add13 = __esm({
183967
184354
  "src/commands/teams/add.ts"() {
183968
184355
  "use strict";
183969
- import_chalk127 = __toESM3(require_source());
184356
+ import_chalk128 = __toESM3(require_source());
183970
184357
  init_stamp();
183971
184358
  init_erase_lines();
183972
184359
  init_chars();
@@ -183979,7 +184366,7 @@ var init_add13 = __esm({
183979
184366
  init_output_manager();
183980
184367
  validateSlug = (value) => /^[a-z]+[a-z0-9_-]*$/.test(value);
183981
184368
  validateName = (value) => /^[ a-zA-Z0-9_-]+$/.test(value);
183982
- teamUrlPrefix = "Team URL".padEnd(14) + import_chalk127.default.gray("vercel.com/");
184369
+ teamUrlPrefix = "Team URL".padEnd(14) + import_chalk128.default.gray("vercel.com/");
183983
184370
  teamNamePrefix = "Team Name".padEnd(14);
183984
184371
  }
183985
184372
  });
@@ -184038,7 +184425,7 @@ async function change(client2, argv) {
184038
184425
  let title9 = `${team.name} (${team.slug})`;
184039
184426
  const selected = team.id === currentTeam?.id;
184040
184427
  if (selected) {
184041
- title9 += ` ${import_chalk128.default.bold("(current)")}`;
184428
+ title9 += ` ${import_chalk129.default.bold("(current)")}`;
184042
184429
  }
184043
184430
  if (team.limited) {
184044
184431
  title9 += ` ${emoji("locked")}`;
@@ -184050,7 +184437,7 @@ async function change(client2, argv) {
184050
184437
  selected
184051
184438
  };
184052
184439
  });
184053
- let suffix = personalScopeSelected ? ` ${import_chalk128.default.bold("(current)")}` : "";
184440
+ let suffix = personalScopeSelected ? ` ${import_chalk129.default.bold("(current)")}` : "";
184054
184441
  if (user.limited) {
184055
184442
  suffix += ` ${emoji("locked")}`;
184056
184443
  }
@@ -184096,14 +184483,14 @@ async function change(client2, argv) {
184096
184483
  }
184097
184484
  updateCurrentTeam(config2);
184098
184485
  output_manager_default.success(
184099
- `Your account (${import_chalk128.default.bold(user.username)}) is now active!`
184486
+ `Your account (${import_chalk129.default.bold(user.username)}) is now active!`
184100
184487
  );
184101
184488
  return 0;
184102
184489
  }
184103
184490
  const newTeam = teams2.find((team) => team.slug === desiredSlug);
184104
184491
  if (!newTeam) {
184105
184492
  output_manager_default.error(
184106
- `You do not have permission to access scope ${import_chalk128.default.bold(desiredSlug)}.`
184493
+ `You do not have permission to access scope ${import_chalk129.default.bold(desiredSlug)}.`
184107
184494
  );
184108
184495
  return 1;
184109
184496
  }
@@ -184121,15 +184508,15 @@ async function change(client2, argv) {
184121
184508
  }
184122
184509
  updateCurrentTeam(config2, newTeam);
184123
184510
  output_manager_default.success(
184124
- `The team ${import_chalk128.default.bold(newTeam.name)} (${newTeam.slug}) is now active!`
184511
+ `The team ${import_chalk129.default.bold(newTeam.name)} (${newTeam.slug}) is now active!`
184125
184512
  );
184126
184513
  return 0;
184127
184514
  }
184128
- var import_chalk128, updateCurrentTeam;
184515
+ var import_chalk129, updateCurrentTeam;
184129
184516
  var init_switch2 = __esm({
184130
184517
  "src/commands/teams/switch.ts"() {
184131
184518
  "use strict";
184132
- import_chalk128 = __toESM3(require_source());
184519
+ import_chalk129 = __toESM3(require_source());
184133
184520
  init_emoji();
184134
184521
  init_get_user();
184135
184522
  init_get_teams();
@@ -184308,13 +184695,13 @@ var init_teams2 = __esm({
184308
184695
  // src/commands/telemetry/status.ts
184309
184696
  async function status2(client2) {
184310
184697
  const enabled = client2.config.telemetry?.enabled !== false;
184311
- const status3 = enabled ? import_chalk129.default.green("Enabled") : import_chalk129.default.red("Disabled");
184698
+ const status3 = enabled ? import_chalk130.default.green("Enabled") : import_chalk130.default.red("Disabled");
184312
184699
  output_manager_default.print("\n");
184313
- output_manager_default.log(`${import_chalk129.default.bold("Telemetry status")}: ${status3}
184700
+ output_manager_default.log(`${import_chalk130.default.bold("Telemetry status")}: ${status3}
184314
184701
  `);
184315
184702
  const learnMoreMessage = `
184316
184703
 
184317
- Learn more: ${import_chalk129.default.cyan("https://vercel.com/docs/cli/about-telemetry")}`;
184704
+ Learn more: ${import_chalk130.default.cyan("https://vercel.com/docs/cli/about-telemetry")}`;
184318
184705
  if (enabled) {
184319
184706
  output_manager_default.log(`You have opted in to Vercel CLI telemetry${learnMoreMessage}`);
184320
184707
  } else {
@@ -184325,11 +184712,11 @@ Learn more: ${import_chalk129.default.cyan("https://vercel.com/docs/cli/about-te
184325
184712
  }
184326
184713
  return 0;
184327
184714
  }
184328
- var import_chalk129;
184715
+ var import_chalk130;
184329
184716
  var init_status4 = __esm({
184330
184717
  "src/commands/telemetry/status.ts"() {
184331
184718
  "use strict";
184332
- import_chalk129 = __toESM3(require_source());
184719
+ import_chalk130 = __toESM3(require_source());
184333
184720
  init_output_manager();
184334
184721
  }
184335
184722
  });
@@ -184510,7 +184897,7 @@ async function telemetry(client2) {
184510
184897
  default: {
184511
184898
  const errorMessage = parsedArguments.args.length !== 2 ? "Invalid number of arguments" : "Invalid subcommand";
184512
184899
  output_manager_default.print(
184513
- `${import_chalk130.default.red("Error")}: ${errorMessage}. See help instructions for usage:
184900
+ `${import_chalk131.default.red("Error")}: ${errorMessage}. See help instructions for usage:
184514
184901
  `
184515
184902
  );
184516
184903
  output_manager_default.print(help(telemetryCommand, { columns: client2.stderr.columns }));
@@ -184518,7 +184905,7 @@ async function telemetry(client2) {
184518
184905
  }
184519
184906
  }
184520
184907
  }
184521
- var import_chalk130, COMMAND_CONFIG20;
184908
+ var import_chalk131, COMMAND_CONFIG20;
184522
184909
  var init_telemetry3 = __esm({
184523
184910
  "src/commands/telemetry/index.ts"() {
184524
184911
  "use strict";
@@ -184533,7 +184920,7 @@ var init_telemetry3 = __esm({
184533
184920
  init_command34();
184534
184921
  init_get_flags_specification();
184535
184922
  init_telemetry2();
184536
- import_chalk130 = __toESM3(require_source());
184923
+ import_chalk131 = __toESM3(require_source());
184537
184924
  init_output_manager();
184538
184925
  init_commands();
184539
184926
  COMMAND_CONFIG20 = {
@@ -184608,7 +184995,7 @@ var import_error_utils36 = __toESM3(require_dist2());
184608
184995
  var import_path40 = require("path");
184609
184996
  var import_fs8 = require("fs");
184610
184997
  var import_fs_extra24 = __toESM3(require_lib());
184611
- var import_chalk131 = __toESM3(require_source());
184998
+ var import_chalk132 = __toESM3(require_source());
184612
184999
  var import_epipebomb = __toESM3(require_epipebomb());
184613
185000
 
184614
185001
  // src/util/get-latest-version/index.ts
@@ -185544,13 +185931,13 @@ var main17 = async () => {
185544
185931
  const betaCommands = [];
185545
185932
  if (betaCommands.includes(targetOrSubcommand)) {
185546
185933
  output_manager_default.print(
185547
- `${import_chalk131.default.grey(
185934
+ `${import_chalk132.default.grey(
185548
185935
  `${getTitleName()} CLI ${pkg_default.version} ${targetOrSubcommand} (beta) \u2014 https://vercel.com/feedback`
185549
185936
  )}
185550
185937
  `
185551
185938
  );
185552
185939
  } else {
185553
- output_manager_default.print(`${import_chalk131.default.grey(`${getTitleName()} CLI ${pkg_default.version}`)}
185940
+ output_manager_default.print(`${import_chalk132.default.grey(`${getTitleName()} CLI ${pkg_default.version}`)}
185554
185941
  `);
185555
185942
  }
185556
185943
  if (!targetOrSubcommand && parsedArgs.flags["--version"]) {
@@ -186121,20 +186508,20 @@ main17().then(async (exitCode2) => {
186121
186508
  });
186122
186509
  if (latest) {
186123
186510
  const changelog = "https://github.com/vercel/vercel/releases";
186124
- const errorMsg = exitCode2 && exitCode2 !== 2 ? import_chalk131.default.magenta(
186511
+ const errorMsg = exitCode2 && exitCode2 !== 2 ? import_chalk132.default.magenta(
186125
186512
  `
186126
186513
 
186127
- The latest update ${import_chalk131.default.italic(
186514
+ The latest update ${import_chalk132.default.italic(
186128
186515
  "may"
186129
186516
  )} fix any errors that occurred.`
186130
186517
  ) : "";
186131
186518
  output_manager_default.print(
186132
186519
  box(
186133
- `Update available! ${import_chalk131.default.gray(`v${pkg_default.version}`)} \u226B ${import_chalk131.default.green(
186520
+ `Update available! ${import_chalk132.default.gray(`v${pkg_default.version}`)} \u226B ${import_chalk132.default.green(
186134
186521
  `v${latest}`
186135
186522
  )}
186136
186523
  Changelog: ${output_manager_default.link(changelog, changelog, { fallback: false })}
186137
- Run ${import_chalk131.default.cyan(cmd(await getUpdateCommand()))} to update.${errorMsg}`
186524
+ Run ${import_chalk132.default.cyan(cmd(await getUpdateCommand()))} to update.${errorMsg}`
186138
186525
  )
186139
186526
  );
186140
186527
  output_manager_default.print("\n\n");