vercel-cli 47.0.5__py3-none-any.whl → 47.1.3__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(chalk126, styles) {
4074
+ function buildStyle(chalk127, 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 = chalk126;
4081
+ let current = chalk127;
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 = (chalk126, temporary) => {
4093
+ module2.exports = (chalk127, 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(chalk126, styles)(string));
4103
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk127, 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(chalk126, styles)(chunk.join("")));
4109
+ chunks.push(buildStyle(chalk127, 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 chalk127 = {};
4158
- applyOptions(chalk127, options);
4159
- chalk127.template = (...arguments_) => chalkTag(chalk127.template, ...arguments_);
4160
- Object.setPrototypeOf(chalk127, Chalk.prototype);
4161
- Object.setPrototypeOf(chalk127.template, chalk127);
4162
- chalk127.template.constructor = () => {
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 = () => {
4163
4163
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
4164
4164
  };
4165
- chalk127.template.Instance = ChalkClass;
4166
- return chalk127.template;
4165
+ chalk128.template.Instance = ChalkClass;
4166
+ return chalk128.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 = (chalk127, ...strings) => {
4277
+ var chalkTag = (chalk128, ...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(chalk127, parts.join(""));
4293
+ return template(chalk128, parts.join(""));
4294
4294
  };
4295
4295
  Object.defineProperties(Chalk.prototype, styles);
4296
- var chalk126 = Chalk();
4297
- chalk126.supportsColor = stdoutColor;
4298
- chalk126.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
4299
- chalk126.stderr.supportsColor = stderrColor;
4300
- module2.exports = chalk126;
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;
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(chalk126, styles) {
7211
+ function buildStyle(chalk127, 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 = chalk126;
7218
+ let current = chalk127;
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 = (chalk126, tmp) => {
7233
+ module2.exports = (chalk127, 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(chalk126, styles)(str));
7243
+ chunks.push(styles.length === 0 ? str : buildStyle(chalk127, 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(chalk126, styles)(chunk.join("")));
7249
+ chunks.push(buildStyle(chalk127, 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 chalk126 = {};
7287
- applyOptions(chalk126, options);
7288
- chalk126.template = function() {
7286
+ const chalk127 = {};
7287
+ applyOptions(chalk127, options);
7288
+ chalk127.template = function() {
7289
7289
  const args2 = [].slice.call(arguments);
7290
- return chalkTag.apply(null, [chalk126.template].concat(args2));
7290
+ return chalkTag.apply(null, [chalk127.template].concat(args2));
7291
7291
  };
7292
- Object.setPrototypeOf(chalk126, Chalk.prototype);
7293
- Object.setPrototypeOf(chalk126.template, chalk126);
7294
- chalk126.template.constructor = Chalk;
7295
- return chalk126.template;
7292
+ Object.setPrototypeOf(chalk127, Chalk.prototype);
7293
+ Object.setPrototypeOf(chalk127.template, chalk127);
7294
+ chalk127.template.constructor = Chalk;
7295
+ return chalk127.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(chalk126, strings) {
7414
+ function chalkTag(chalk127, 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(chalk126, parts.join(""));
7424
+ return template(chalk127, 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 chalk126 = require_chalk();
9375
+ var chalk127 = require_chalk();
9376
9376
  var isSupported = process.platform !== "win32" || process.env.CI || process.env.TERM === "xterm-256color";
9377
9377
  var main18 = {
9378
- info: chalk126.blue("\u2139"),
9379
- success: chalk126.green("\u2714"),
9380
- warning: chalk126.yellow("\u26A0"),
9381
- error: chalk126.red("\u2716")
9378
+ info: chalk127.blue("\u2139"),
9379
+ success: chalk127.green("\u2714"),
9380
+ warning: chalk127.yellow("\u26A0"),
9381
+ error: chalk127.red("\u2716")
9382
9382
  };
9383
9383
  var fallbacks = {
9384
- info: chalk126.blue("i"),
9385
- success: chalk126.green("\u221A"),
9386
- warning: chalk126.yellow("\u203C"),
9387
- error: chalk126.red("\xD7")
9384
+ info: chalk127.blue("i"),
9385
+ success: chalk127.green("\u221A"),
9386
+ warning: chalk127.yellow("\u203C"),
9387
+ error: chalk127.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 chalk126 = require_chalk();
9783
+ var chalk127 = 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 = chalk126[this.color](frame);
9872
+ frame = chalk127[this.color](frame);
9873
9873
  }
9874
9874
  this.frameIndex = ++this.frameIndex % frames.length;
9875
9875
  const fullPrefixText = typeof this.prefixText === "string" ? this.prefixText + " " : "";
@@ -31954,6 +31954,13 @@ var init_command6 = __esm({
31954
31954
  deprecated: false,
31955
31955
  description: "Print the build logs"
31956
31956
  },
31957
+ {
31958
+ name: "guidance",
31959
+ shorthand: null,
31960
+ type: Boolean,
31961
+ deprecated: false,
31962
+ description: "Receive command suggestions once deployment is complete"
31963
+ },
31957
31964
  {
31958
31965
  name: "no-logs",
31959
31966
  shorthand: null,
@@ -32401,7 +32408,15 @@ var init_command10 = __esm({
32401
32408
  required: false
32402
32409
  }
32403
32410
  ],
32404
- options: [],
32411
+ options: [
32412
+ {
32413
+ name: "guidance",
32414
+ description: "Receive command suggestions once command is complete",
32415
+ shorthand: null,
32416
+ type: Boolean,
32417
+ deprecated: false
32418
+ }
32419
+ ],
32405
32420
  examples: []
32406
32421
  };
32407
32422
  addSubcommand4 = {
@@ -32430,6 +32445,13 @@ var init_command10 = __esm({
32430
32445
  ...forceOption,
32431
32446
  description: "Force overwrites when a command would normally fail",
32432
32447
  shorthand: null
32448
+ },
32449
+ {
32450
+ name: "guidance",
32451
+ description: "Receive command suggestions once command is complete",
32452
+ shorthand: null,
32453
+ type: Boolean,
32454
+ deprecated: false
32433
32455
  }
32434
32456
  ],
32435
32457
  examples: [
@@ -35956,14 +35978,14 @@ var require_templates3 = __commonJS2({
35956
35978
  }
35957
35979
  return results;
35958
35980
  }
35959
- function buildStyle(chalk126, styles) {
35981
+ function buildStyle(chalk127, styles) {
35960
35982
  const enabled = {};
35961
35983
  for (const layer of styles) {
35962
35984
  for (const style of layer.styles) {
35963
35985
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
35964
35986
  }
35965
35987
  }
35966
- let current = chalk126;
35988
+ let current = chalk127;
35967
35989
  for (const [styleName, styles2] of Object.entries(enabled)) {
35968
35990
  if (!Array.isArray(styles2)) {
35969
35991
  continue;
@@ -35975,7 +35997,7 @@ var require_templates3 = __commonJS2({
35975
35997
  }
35976
35998
  return current;
35977
35999
  }
35978
- module2.exports = (chalk126, temporary) => {
36000
+ module2.exports = (chalk127, temporary) => {
35979
36001
  const styles = [];
35980
36002
  const chunks = [];
35981
36003
  let chunk = [];
@@ -35985,13 +36007,13 @@ var require_templates3 = __commonJS2({
35985
36007
  } else if (style) {
35986
36008
  const string = chunk.join("");
35987
36009
  chunk = [];
35988
- chunks.push(styles.length === 0 ? string : buildStyle(chalk126, styles)(string));
36010
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk127, styles)(string));
35989
36011
  styles.push({ inverse, styles: parseStyle(style) });
35990
36012
  } else if (close2) {
35991
36013
  if (styles.length === 0) {
35992
36014
  throw new Error("Found extraneous } in Chalk template literal");
35993
36015
  }
35994
- chunks.push(buildStyle(chalk126, styles)(chunk.join("")));
36016
+ chunks.push(buildStyle(chalk127, styles)(chunk.join("")));
35995
36017
  chunk = [];
35996
36018
  styles.pop();
35997
36019
  } else {
@@ -36039,16 +36061,16 @@ var require_source2 = __commonJS2({
36039
36061
  }
36040
36062
  };
36041
36063
  var chalkFactory = (options) => {
36042
- const chalk127 = {};
36043
- applyOptions(chalk127, options);
36044
- chalk127.template = (...arguments_) => chalkTag(chalk127.template, ...arguments_);
36045
- Object.setPrototypeOf(chalk127, Chalk.prototype);
36046
- Object.setPrototypeOf(chalk127.template, chalk127);
36047
- chalk127.template.constructor = () => {
36064
+ const chalk128 = {};
36065
+ applyOptions(chalk128, options);
36066
+ chalk128.template = (...arguments_) => chalkTag(chalk128.template, ...arguments_);
36067
+ Object.setPrototypeOf(chalk128, Chalk.prototype);
36068
+ Object.setPrototypeOf(chalk128.template, chalk128);
36069
+ chalk128.template.constructor = () => {
36048
36070
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
36049
36071
  };
36050
- chalk127.template.Instance = ChalkClass;
36051
- return chalk127.template;
36072
+ chalk128.template.Instance = ChalkClass;
36073
+ return chalk128.template;
36052
36074
  };
36053
36075
  function Chalk(options) {
36054
36076
  return chalkFactory(options);
@@ -36159,7 +36181,7 @@ var require_source2 = __commonJS2({
36159
36181
  return openAll + string + closeAll;
36160
36182
  };
36161
36183
  var template;
36162
- var chalkTag = (chalk127, ...strings) => {
36184
+ var chalkTag = (chalk128, ...strings) => {
36163
36185
  const [firstString] = strings;
36164
36186
  if (!isArray(firstString) || !isArray(firstString.raw)) {
36165
36187
  return strings.join(" ");
@@ -36175,14 +36197,14 @@ var require_source2 = __commonJS2({
36175
36197
  if (template === void 0) {
36176
36198
  template = require_templates3();
36177
36199
  }
36178
- return template(chalk127, parts.join(""));
36200
+ return template(chalk128, parts.join(""));
36179
36201
  };
36180
36202
  Object.defineProperties(Chalk.prototype, styles);
36181
- var chalk126 = Chalk();
36182
- chalk126.supportsColor = stdoutColor;
36183
- chalk126.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
36184
- chalk126.stderr.supportsColor = stderrColor;
36185
- module2.exports = chalk126;
36203
+ var chalk127 = Chalk();
36204
+ chalk127.supportsColor = stdoutColor;
36205
+ chalk127.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
36206
+ chalk127.stderr.supportsColor = stderrColor;
36207
+ module2.exports = chalk127;
36186
36208
  }
36187
36209
  });
36188
36210
 
@@ -61278,7 +61300,8 @@ function isOAuthAuth(authConfig) {
61278
61300
  return authConfig.type === "oauth";
61279
61301
  }
61280
61302
  function isValidAccessToken(authConfig) {
61281
- return "token" in authConfig && (authConfig.expiresAt ?? 0) >= Date.now();
61303
+ const nowInSeconds = Math.floor(Date.now() / 1e3);
61304
+ return "token" in authConfig && (authConfig.expiresAt ?? 0) >= nowInSeconds;
61282
61305
  }
61283
61306
  function hasRefreshToken(authConfig) {
61284
61307
  return "refreshToken" in authConfig;
@@ -94419,6 +94442,15 @@ var init_telemetry = __esm({
94419
94442
  value: this.redactedValue
94420
94443
  });
94421
94444
  }
94445
+ trackLoginState(state) {
94446
+ if (state === "started")
94447
+ this.loginAttempt = (0, import_node_crypto.randomUUID)();
94448
+ if (this.loginAttempt) {
94449
+ this.track({ key: `login:attempt:${this.loginAttempt}`, value: state });
94450
+ }
94451
+ if (state !== "started")
94452
+ this.loginAttempt = void 0;
94453
+ }
94422
94454
  trackCliFlagHelp(command, subcommands) {
94423
94455
  let subcommand;
94424
94456
  if (subcommands) {
@@ -115762,14 +115794,14 @@ var require_frameworks = __commonJS2({
115762
115794
  ]
115763
115795
  },
115764
115796
  {
115765
- name: "Nuxt.js",
115797
+ name: "Nuxt",
115766
115798
  slug: "nuxtjs",
115767
115799
  demo: "https://nuxtjs-template.vercel.app",
115768
115800
  logo: "https://api-frameworks.vercel.sh/framework-logos/nuxt.svg",
115769
115801
  screenshot: "https://assets.vercel.com/image/upload/v1647366075/front/import/nuxtjs.png",
115770
- tagline: "Nuxt.js is the web comprehensive framework that lets you dream big with Vue.js.",
115771
- description: "A Nuxt.js app, bootstrapped with create-nuxt-app.",
115772
- website: "https://nuxtjs.org",
115802
+ tagline: "Nuxt is the open source framework that makes full-stack development with Vue.js intuitive.",
115803
+ description: "A Nuxt app, bootstrapped with create-nuxt-app.",
115804
+ website: "https://nuxt.com",
115773
115805
  sort: 2,
115774
115806
  envPrefix: "NUXT_ENV_",
115775
115807
  supersedes: ["nitro"],
@@ -115783,6 +115815,9 @@ var require_frameworks = __commonJS2({
115783
115815
  },
115784
115816
  {
115785
115817
  matchPackage: "nuxt-edge"
115818
+ },
115819
+ {
115820
+ matchPackage: "nuxt-nightly"
115786
115821
  }
115787
115822
  ]
115788
115823
  },
@@ -115795,7 +115830,7 @@ var require_frameworks = __commonJS2({
115795
115830
  value: "nuxt build"
115796
115831
  },
115797
115832
  devCommand: {
115798
- value: "nuxt"
115833
+ value: "nuxt dev"
115799
115834
  },
115800
115835
  outputDirectory: {
115801
115836
  value: "dist"
@@ -116241,6 +116276,49 @@ var require_frameworks = __commonJS2({
116241
116276
  }
116242
116277
  ]
116243
116278
  },
116279
+ {
116280
+ name: "FastAPI (Experimental)",
116281
+ slug: "fastapi",
116282
+ logo: "https://api-frameworks.vercel.sh/framework-logos/fastapi.svg",
116283
+ darkModeLogo: "https://api-frameworks.vercel.sh/framework-logos/fastapi.svg",
116284
+ tagline: "FastAPI framework, high performance, easy to learn, fast to code, ready for production",
116285
+ description: "FastAPI framework, high performance, easy to learn, fast to code, ready for production",
116286
+ website: "https://fastapi.tiangolo.com",
116287
+ useRuntime: { src: "main.py", use: "@vercel/python" },
116288
+ detectors: {
116289
+ every: [
116290
+ {
116291
+ path: "requirements.txt",
116292
+ matchContent: "fastapi"
116293
+ }
116294
+ ]
116295
+ },
116296
+ settings: {
116297
+ installCommand: {
116298
+ placeholder: "`pip install -r requirements.txt`"
116299
+ },
116300
+ buildCommand: {
116301
+ placeholder: "None",
116302
+ value: null
116303
+ },
116304
+ devCommand: {
116305
+ value: "uvicorn main:app --reload --port $PORT"
116306
+ },
116307
+ outputDirectory: {
116308
+ value: "N/A"
116309
+ }
116310
+ },
116311
+ getOutputDirName: async () => "",
116312
+ defaultRoutes: [
116313
+ {
116314
+ handle: "filesystem"
116315
+ },
116316
+ {
116317
+ src: "/(.*)",
116318
+ dest: "/main"
116319
+ }
116320
+ ]
116321
+ },
116244
116322
  {
116245
116323
  name: "FastHTML (Experimental)",
116246
116324
  slug: "fasthtml",
@@ -148397,6 +148475,25 @@ function displayBuildLogs(client2, deployment, follow = true) {
148397
148475
  );
148398
148476
  return { promise, abortController };
148399
148477
  }
148478
+ async function displayBuildLogsUntilFinalError(client2, deployment, error3) {
148479
+ const abortController = new AbortController();
148480
+ return events_default(
148481
+ client2,
148482
+ deployment.id,
148483
+ {
148484
+ mode: "logs",
148485
+ onEvent: (event) => {
148486
+ printBuildLog(event, output_manager_default.print);
148487
+ if (event.level === "error" && event.text?.includes(error3)) {
148488
+ abortController.abort();
148489
+ }
148490
+ },
148491
+ quiet: false,
148492
+ findOpts: { direction: "forward", follow: true }
148493
+ },
148494
+ abortController
148495
+ );
148496
+ }
148400
148497
  async function displayRuntimeLogs(client2, options, abortController) {
148401
148498
  const { log: log2, debug: debug2, print, spinner, stopSpinner, warn } = output_manager_default;
148402
148499
  const { projectId, deploymentId, parse: parse11 } = options;
@@ -149299,13 +149396,36 @@ var init_is_deploying = __esm({
149299
149396
  }
149300
149397
  });
149301
149398
 
149399
+ // src/util/suggest-next-commands.ts
149400
+ function suggestNextCommands(commands2) {
149401
+ output_manager_default.print(
149402
+ import_chalk62.default.dim(
149403
+ [
149404
+ `Common next commands:`,
149405
+ ...commands2.map((command) => `- ${command}`)
149406
+ ].join("\n")
149407
+ )
149408
+ );
149409
+ output_manager_default.print("\n");
149410
+ }
149411
+ var import_chalk62;
149412
+ var init_suggest_next_commands = __esm({
149413
+ "src/util/suggest-next-commands.ts"() {
149414
+ "use strict";
149415
+ init_output_manager();
149416
+ import_chalk62 = __toESM3(require_source());
149417
+ }
149418
+ });
149419
+
149302
149420
  // src/util/deploy/print-deployment-status.ts
149303
149421
  async function printDeploymentStatus({
149304
149422
  readyState,
149305
149423
  aliasError,
149306
149424
  indications,
149307
- aliasWarning
149308
- }, deployStamp, noWait) {
149425
+ aliasWarning,
149426
+ url: url3,
149427
+ target
149428
+ }, deployStamp, noWait, guidanceMode) {
149309
149429
  indications = indications || [];
149310
149430
  let isStillBuilding = false;
149311
149431
  if (noWait) {
@@ -149340,25 +149460,37 @@ async function printDeploymentStatus({
149340
149460
  }
149341
149461
  const newline = "\n";
149342
149462
  for (const indication of indications) {
149343
- const message2 = prependEmoji(import_chalk62.default.dim(indication.payload), emoji(indication.type)) + newline;
149463
+ const message2 = prependEmoji(import_chalk63.default.dim(indication.payload), emoji(indication.type)) + newline;
149344
149464
  let link4 = "";
149345
149465
  if (indication.link)
149346
- link4 = import_chalk62.default.dim(
149466
+ link4 = import_chalk63.default.dim(
149347
149467
  `${indication.action || "Learn More"}: ${link_default(indication.link)}`
149348
149468
  ) + newline;
149349
149469
  output_manager_default.print(message2 + link4);
149350
149470
  }
149471
+ if (guidanceMode) {
149472
+ output_manager_default.print("\n");
149473
+ suggestNextCommands(
149474
+ [
149475
+ getCommandName(`inspect ${url3} --logs`),
149476
+ getCommandName(`redeploy ${url3}`),
149477
+ target !== "production" ? getCommandName(`deploy --prod`) : false
149478
+ ].filter(Boolean)
149479
+ );
149480
+ }
149351
149481
  return 0;
149352
149482
  }
149353
- var import_chalk62;
149483
+ var import_chalk63;
149354
149484
  var init_print_deployment_status = __esm({
149355
149485
  "src/util/deploy/print-deployment-status.ts"() {
149356
149486
  "use strict";
149357
- import_chalk62 = __toESM3(require_source());
149487
+ import_chalk63 = __toESM3(require_source());
149358
149488
  init_is_deploying();
149359
149489
  init_link();
149360
149490
  init_emoji();
149361
149491
  init_output_manager();
149492
+ init_pkg_name();
149493
+ init_suggest_next_commands();
149362
149494
  }
149363
149495
  });
149364
149496
 
@@ -149516,6 +149648,11 @@ var init_deploy = __esm({
149516
149648
  this.trackCliFlag("no-logs");
149517
149649
  }
149518
149650
  }
149651
+ trackCliFlagGuidance(flag) {
149652
+ if (flag) {
149653
+ this.trackCliFlag("guidance");
149654
+ }
149655
+ }
149519
149656
  trackCliFlagNoClipboard(flag) {
149520
149657
  if (flag) {
149521
149658
  this.trackCliFlag("no-clipboard");
@@ -149572,7 +149709,7 @@ function handleCreateDeployError(error3, localConfig) {
149572
149709
  }
149573
149710
  if (error3 instanceof DomainVerificationFailed) {
149574
149711
  output_manager_default.error(
149575
- `The domain used as a suffix ${import_chalk63.default.underline(
149712
+ `The domain used as a suffix ${import_chalk64.default.underline(
149576
149713
  error3.meta.domain
149577
149714
  )} is not verified and can't be used as custom suffix.`
149578
149715
  );
@@ -149580,7 +149717,7 @@ function handleCreateDeployError(error3, localConfig) {
149580
149717
  }
149581
149718
  if (error3 instanceof DomainPermissionDenied) {
149582
149719
  output_manager_default.error(
149583
- `You don't have permissions to access the domain used as a suffix ${import_chalk63.default.underline(
149720
+ `You don't have permissions to access the domain used as a suffix ${import_chalk64.default.underline(
149584
149721
  error3.meta.domain
149585
149722
  )}.`
149586
149723
  );
@@ -149606,7 +149743,7 @@ function handleCreateDeployError(error3, localConfig) {
149606
149743
  }
149607
149744
  if (error3 instanceof DomainNotVerified) {
149608
149745
  output_manager_default.error(
149609
- `The domain used as an alias ${import_chalk63.default.underline(
149746
+ `The domain used as an alias ${import_chalk64.default.underline(
149610
149747
  error3.meta.domain
149611
149748
  )} is not verified yet. Please verify it.`
149612
149749
  );
@@ -149625,7 +149762,7 @@ function handleCreateDeployError(error3, localConfig) {
149625
149762
  }
149626
149763
  return error3;
149627
149764
  }
149628
- var import_build_utils14, import_client11, import_error_utils21, import_bytes6, import_chalk63, import_fs_extra20, import_ms12, import_path31, deploy_default, addProcessEnv;
149765
+ var import_build_utils14, import_client11, import_error_utils21, import_bytes6, import_chalk64, import_fs_extra20, import_ms12, import_path31, import_detect_agent, deploy_default, addProcessEnv;
149629
149766
  var init_deploy2 = __esm({
149630
149767
  "src/commands/deploy/index.ts"() {
149631
149768
  "use strict";
@@ -149633,7 +149770,7 @@ var init_deploy2 = __esm({
149633
149770
  import_client11 = __toESM3(require_dist7());
149634
149771
  import_error_utils21 = __toESM3(require_dist2());
149635
149772
  import_bytes6 = __toESM3(require_bytes());
149636
- import_chalk63 = __toESM3(require_source());
149773
+ import_chalk64 = __toESM3(require_source());
149637
149774
  import_fs_extra20 = __toESM3(require_lib());
149638
149775
  import_ms12 = __toESM3(require_ms());
149639
149776
  import_path31 = require("path");
@@ -149671,6 +149808,7 @@ var init_deploy2 = __esm({
149671
149808
  init_ensure_link();
149672
149809
  init_process_deployment();
149673
149810
  init_logs();
149811
+ import_detect_agent = require("@vercel/detect-agent");
149674
149812
  deploy_default = async (client2) => {
149675
149813
  const telemetryClient = new DeployTelemetryClient({
149676
149814
  opts: {
@@ -149699,6 +149837,7 @@ var init_deploy2 = __esm({
149699
149837
  telemetryClient.trackCliFlagPublic(parsedArguments.flags["--public"]);
149700
149838
  telemetryClient.trackCliFlagLogs(parsedArguments.flags["--logs"]);
149701
149839
  telemetryClient.trackCliFlagNoLogs(parsedArguments.flags["--no-logs"]);
149840
+ telemetryClient.trackCliFlagGuidance(parsedArguments.flags["--guidance"]);
149702
149841
  telemetryClient.trackCliFlagForce(parsedArguments.flags["--force"]);
149703
149842
  telemetryClient.trackCliFlagWithCache(
149704
149843
  parsedArguments.flags["--with-cache"]
@@ -150114,8 +150253,6 @@ ${err.stack}`);
150114
150253
  return 1;
150115
150254
  }
150116
150255
  if (err instanceof BuildError) {
150117
- output_manager_default.error(err.message || "Build failed");
150118
- output_manager_default.print("\n");
150119
150256
  if (withLogs === false) {
150120
150257
  try {
150121
150258
  if (now.url) {
@@ -150124,12 +150261,11 @@ ${err.stack}`);
150124
150261
  contextName,
150125
150262
  now.url
150126
150263
  );
150127
- const { promise } = displayBuildLogs(
150264
+ await displayBuildLogsUntilFinalError(
150128
150265
  client2,
150129
150266
  failedDeployment,
150130
- false
150267
+ err.message
150131
150268
  );
150132
- await promise;
150133
150269
  }
150134
150270
  } catch (_) {
150135
150271
  output_manager_default.log(
@@ -150153,7 +150289,8 @@ ${err.stack}`);
150153
150289
  printError(err);
150154
150290
  return 1;
150155
150291
  }
150156
- return printDeploymentStatus(deployment, deployStamp, noWait);
150292
+ const guidanceMode = parsedArguments.flags["--guidance"] ?? await (0, import_detect_agent.determineAgent)() !== false;
150293
+ return printDeploymentStatus(deployment, deployStamp, noWait, guidanceMode);
150157
150294
  };
150158
150295
  addProcessEnv = async (log2, env) => {
150159
150296
  let val;
@@ -150164,15 +150301,15 @@ ${err.stack}`);
150164
150301
  val = process.env[key];
150165
150302
  if (typeof val === "string") {
150166
150303
  log2(
150167
- `Reading ${import_chalk63.default.bold(
150168
- `"${import_chalk63.default.bold(key)}"`
150304
+ `Reading ${import_chalk64.default.bold(
150305
+ `"${import_chalk64.default.bold(key)}"`
150169
150306
  )} from your env (as no value was specified)`
150170
150307
  );
150171
150308
  env[key] = val.replace(/^@/, "\\@");
150172
150309
  } else {
150173
150310
  throw new Error(
150174
- `No value specified for env variable ${import_chalk63.default.bold(
150175
- `"${import_chalk63.default.bold(key)}"`
150311
+ `No value specified for env variable ${import_chalk64.default.bold(
150312
+ `"${import_chalk64.default.bold(key)}"`
150176
150313
  )} and it was not found in your env. If you meant to specify an environment to deploy to, use ${param("--target")}`
150177
150314
  );
150178
150315
  }
@@ -167912,7 +168049,7 @@ function buildMatchEquals(a, b) {
167912
168049
  return false;
167913
168050
  return true;
167914
168051
  }
167915
- var import_url19, import_http3, import_fs_extra21, import_ms14, import_chalk64, import_node_fetch6, import_pluralize7, import_raw_body, import_async_listen3, import_minimatch4, import_http_proxy, import_crypto2, import_serve_handler, import_chokidar, import_dotenv2, import_path35, import_once, import_directory, import_get_port, import_is_port_reachable, import_fast_deep_equal, import_npm_package_arg2, import_json_parse_better_errors3, import_client12, import_routing_utils5, import_build_utils17, import_fs_detectors6, import_frameworks6, import_error_utils22, frontendRuntimeSet, DEV_SERVER_PORT_BIND_TIMEOUT, DevServer;
168052
+ var import_url19, import_http3, import_fs_extra21, import_ms14, import_chalk65, import_node_fetch6, import_pluralize7, import_raw_body, import_async_listen3, import_minimatch4, import_http_proxy, import_crypto2, import_serve_handler, import_chokidar, import_dotenv2, import_path35, import_once, import_directory, import_get_port, import_is_port_reachable, import_fast_deep_equal, import_npm_package_arg2, import_json_parse_better_errors3, import_client12, import_routing_utils5, import_build_utils17, import_fs_detectors6, import_frameworks6, import_error_utils22, frontendRuntimeSet, DEV_SERVER_PORT_BIND_TIMEOUT, DevServer;
167916
168053
  var init_server = __esm({
167917
168054
  "src/util/dev/server.ts"() {
167918
168055
  "use strict";
@@ -167920,7 +168057,7 @@ var init_server = __esm({
167920
168057
  import_http3 = __toESM3(require("http"));
167921
168058
  import_fs_extra21 = __toESM3(require_lib());
167922
168059
  import_ms14 = __toESM3(require_ms());
167923
- import_chalk64 = __toESM3(require_source());
168060
+ import_chalk65 = __toESM3(require_source());
167924
168061
  import_node_fetch6 = __toESM3(require_lib7());
167925
168062
  import_pluralize7 = __toESM3(require_pluralize());
167926
168063
  import_raw_body = __toESM3(require_raw_body());
@@ -167998,7 +168135,7 @@ var init_server = __esm({
167998
168135
  return;
167999
168136
  }
168000
168137
  const method = req.method || "GET";
168001
- output_manager_default.debug(`${import_chalk64.default.bold(method)} ${req.url}`);
168138
+ output_manager_default.debug(`${import_chalk65.default.bold(method)} ${req.url}`);
168002
168139
  try {
168003
168140
  const vercelConfig = await this.getVercelConfig();
168004
168141
  await this.serveProjectAsNowV2(req, res, requestId, vercelConfig);
@@ -168200,7 +168337,7 @@ var init_server = __esm({
168200
168337
  }
168201
168338
  } catch (err) {
168202
168339
  if ((0, import_error_utils22.isSpawnError)(err) && err.code === "ENOENT") {
168203
- err.message = `Command not found: ${import_chalk64.default.cyan(
168340
+ err.message = `Command not found: ${import_chalk65.default.cyan(
168204
168341
  err.path,
168205
168342
  ...err.spawnargs
168206
168343
  )}
@@ -168457,7 +168594,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
168457
168594
  });
168458
168595
  } catch (err) {
168459
168596
  if ((0, import_error_utils22.isSpawnError)(err) && err.code === "ENOENT") {
168460
- err.message = `Command not found: ${import_chalk64.default.cyan(
168597
+ err.message = `Command not found: ${import_chalk65.default.cyan(
168461
168598
  err.path,
168462
168599
  ...err.spawnargs
168463
168600
  )}
@@ -169157,10 +169294,10 @@ Please ensure that ${cmd(err.path)} is properly installed`;
169157
169294
  */
169158
169295
  async _start(...listenSpec) {
169159
169296
  if (!import_fs_extra21.default.existsSync(this.cwd)) {
169160
- throw new Error(`${import_chalk64.default.bold(this.cwd)} doesn't exist`);
169297
+ throw new Error(`${import_chalk65.default.bold(this.cwd)} doesn't exist`);
169161
169298
  }
169162
169299
  if (!import_fs_extra21.default.lstatSync(this.cwd).isDirectory()) {
169163
- throw new Error(`${import_chalk64.default.bold(this.cwd)} is not a directory`);
169300
+ throw new Error(`${import_chalk65.default.bold(this.cwd)} is not a directory`);
169164
169301
  }
169165
169302
  const { ig } = await (0, import_client12.getVercelIgnore)(this.cwd);
169166
169303
  this.filter = ig.createFilter();
@@ -169174,14 +169311,14 @@ Please ensure that ${cmd(err.path)} is properly installed`;
169174
169311
  if (err.code === "EADDRINUSE") {
169175
169312
  if (typeof listenSpec[0] === "number") {
169176
169313
  output_manager_default.note(
169177
- `Requested port ${import_chalk64.default.yellow(
169314
+ `Requested port ${import_chalk65.default.yellow(
169178
169315
  String(listenSpec[0])
169179
169316
  )} is already in use`
169180
169317
  );
169181
169318
  listenSpec[0]++;
169182
169319
  } else {
169183
169320
  output_manager_default.error(
169184
- `Requested socket ${import_chalk64.default.cyan(
169321
+ `Requested socket ${import_chalk65.default.cyan(
169185
169322
  listenSpec[0]
169186
169323
  )} is already in use`
169187
169324
  );
@@ -169573,7 +169710,7 @@ ${error_code}
169573
169710
  if (this.devProcess) {
169574
169711
  await treeKill(this.devProcess.pid);
169575
169712
  }
169576
- output_manager_default.log(`Running Dev Command ${import_chalk64.default.cyan.bold(`\u201C${devCommand2}\u201D`)}`);
169713
+ output_manager_default.log(`Running Dev Command ${import_chalk65.default.cyan.bold(`\u201C${devCommand2}\u201D`)}`);
169577
169714
  const port = await (0, import_get_port.default)();
169578
169715
  const env = (0, import_build_utils17.cloneEnv)(
169579
169716
  {
@@ -169812,7 +169949,7 @@ async function dev(client2, opts, args2, telemetry2) {
169812
169949
  envValues,
169813
169950
  "vercel-cli:dev"
169814
169951
  )) {
169815
- output_manager_default.debug(`Refreshing ${import_chalk65.default.green(VERCEL_OIDC_TOKEN)}`);
169952
+ output_manager_default.debug(`Refreshing ${import_chalk66.default.green(VERCEL_OIDC_TOKEN)}`);
169816
169953
  envValues[VERCEL_OIDC_TOKEN] = token;
169817
169954
  await devServer.runDevCommand(true);
169818
169955
  telemetry2.trackOidcTokenRefresh(++refreshCount);
@@ -169843,11 +169980,11 @@ async function dev(client2, opts, args2, telemetry2) {
169843
169980
  controller.abort();
169844
169981
  }
169845
169982
  }
169846
- var import_chalk65, import_path36, import_fs_extra22;
169983
+ var import_chalk66, import_path36, import_fs_extra22;
169847
169984
  var init_dev = __esm({
169848
169985
  "src/commands/dev/dev.ts"() {
169849
169986
  "use strict";
169850
- import_chalk65 = __toESM3(require_source());
169987
+ import_chalk66 = __toESM3(require_source());
169851
169988
  import_path36 = require("path");
169852
169989
  import_fs_extra22 = __toESM3(require_lib());
169853
169990
  init_server();
@@ -170020,17 +170157,17 @@ async function main6(client2) {
170020
170157
  function stringifyError(err) {
170021
170158
  if (err instanceof NowError) {
170022
170159
  const errMeta = JSON.stringify(err.meta, null, 2).replace(/\\n/g, "\n");
170023
- return `${import_chalk66.default.red(err.code)} ${err.message}
170160
+ return `${import_chalk67.default.red(err.code)} ${err.message}
170024
170161
  ${errMeta}`;
170025
170162
  }
170026
170163
  return err.stack;
170027
170164
  }
170028
- var import_path37, import_chalk66, import_error_utils23, COMMAND_CONFIG6;
170165
+ var import_path37, import_chalk67, import_error_utils23, COMMAND_CONFIG6;
170029
170166
  var init_dev3 = __esm({
170030
170167
  "src/commands/dev/index.ts"() {
170031
170168
  "use strict";
170032
170169
  import_path37 = __toESM3(require("path"));
170033
- import_chalk66 = __toESM3(require_source());
170170
+ import_chalk67 = __toESM3(require_source());
170034
170171
  init_get_args();
170035
170172
  init_get_subcommand();
170036
170173
  init_now_error();
@@ -170172,9 +170309,9 @@ async function getDNSData(client2, data) {
170172
170309
  const port = await getNumber(client2, `- ${type} port: `);
170173
170310
  const target = await getTrimmedString(client2, `- ${type} target: `);
170174
170311
  output_manager_default.log(
170175
- `${import_chalk67.default.cyan(name)} ${import_chalk67.default.bold(type)} ${import_chalk67.default.cyan(
170312
+ `${import_chalk68.default.cyan(name)} ${import_chalk68.default.bold(type)} ${import_chalk68.default.cyan(
170176
170313
  `${priority}`
170177
- )} ${import_chalk67.default.cyan(`${weight}`)} ${import_chalk67.default.cyan(`${port}`)} ${import_chalk67.default.cyan(
170314
+ )} ${import_chalk68.default.cyan(`${weight}`)} ${import_chalk68.default.cyan(`${port}`)} ${import_chalk68.default.cyan(
170178
170315
  target
170179
170316
  )}.`
170180
170317
  );
@@ -170193,9 +170330,9 @@ async function getDNSData(client2, data) {
170193
170330
  const mxPriority = await getNumber(client2, `- ${type} priority: `);
170194
170331
  const value2 = await getTrimmedString(client2, `- ${type} host: `);
170195
170332
  output_manager_default.log(
170196
- `${import_chalk67.default.cyan(name)} ${import_chalk67.default.bold(type)} ${import_chalk67.default.cyan(
170333
+ `${import_chalk68.default.cyan(name)} ${import_chalk68.default.bold(type)} ${import_chalk68.default.cyan(
170197
170334
  `${mxPriority}`
170198
- )} ${import_chalk67.default.cyan(value2)}`
170335
+ )} ${import_chalk68.default.cyan(value2)}`
170199
170336
  );
170200
170337
  return await verifyData(client2) ? {
170201
170338
  name,
@@ -170205,7 +170342,7 @@ async function getDNSData(client2, data) {
170205
170342
  } : null;
170206
170343
  }
170207
170344
  const value = await getTrimmedString(client2, `- ${type} value: `);
170208
- output_manager_default.log(`${import_chalk67.default.cyan(name)} ${import_chalk67.default.bold(type)} ${import_chalk67.default.cyan(value)}`);
170345
+ output_manager_default.log(`${import_chalk68.default.cyan(name)} ${import_chalk68.default.bold(type)} ${import_chalk68.default.cyan(value)}`);
170209
170346
  return await verifyData(client2) ? {
170210
170347
  name,
170211
170348
  type,
@@ -170239,11 +170376,11 @@ async function getTrimmedString(client2, label) {
170239
170376
  });
170240
170377
  return res.trim();
170241
170378
  }
170242
- var import_chalk67, RECORD_TYPES;
170379
+ var import_chalk68, RECORD_TYPES;
170243
170380
  var init_get_dns_data = __esm({
170244
170381
  "src/util/dns/get-dns-data.ts"() {
170245
170382
  "use strict";
170246
- import_chalk67 = __toESM3(require_source());
170383
+ import_chalk68 = __toESM3(require_source());
170247
170384
  init_output_manager();
170248
170385
  RECORD_TYPES = ["A", "AAAA", "ALIAS", "CAA", "CNAME", "MX", "SRV", "TXT"];
170249
170386
  }
@@ -170316,7 +170453,7 @@ async function add2(client2, argv) {
170316
170453
  const parsedParams = parseAddArgs(args2);
170317
170454
  if (!parsedParams) {
170318
170455
  output_manager_default.error(
170319
- `Invalid number of arguments. See: ${import_chalk68.default.cyan(
170456
+ `Invalid number of arguments. See: ${import_chalk69.default.cyan(
170320
170457
  `${getCommandName("dns --help")}`
170321
170458
  )} for usage.`
170322
170459
  );
@@ -170343,23 +170480,23 @@ async function add2(client2, argv) {
170343
170480
  const record = await addDNSRecord(client2, domain, data);
170344
170481
  if (record instanceof DomainNotFound) {
170345
170482
  output_manager_default.error(
170346
- `The domain ${domain} can't be found under ${import_chalk68.default.bold(
170483
+ `The domain ${domain} can't be found under ${import_chalk69.default.bold(
170347
170484
  contextName
170348
- )} ${import_chalk68.default.gray(addStamp())}`
170485
+ )} ${import_chalk69.default.gray(addStamp())}`
170349
170486
  );
170350
170487
  return 1;
170351
170488
  }
170352
170489
  if (record instanceof DNSPermissionDenied) {
170353
170490
  output_manager_default.error(
170354
- `You don't have permissions to add records to domain ${domain} under ${import_chalk68.default.bold(
170491
+ `You don't have permissions to add records to domain ${domain} under ${import_chalk69.default.bold(
170355
170492
  contextName
170356
- )} ${import_chalk68.default.gray(addStamp())}`
170493
+ )} ${import_chalk69.default.gray(addStamp())}`
170357
170494
  );
170358
170495
  return 1;
170359
170496
  }
170360
170497
  if (record instanceof DNSInvalidPort) {
170361
170498
  output_manager_default.error(
170362
- `Invalid <port> parameter. A number was expected ${import_chalk68.default.gray(
170499
+ `Invalid <port> parameter. A number was expected ${import_chalk69.default.gray(
170363
170500
  addStamp()
170364
170501
  )}`
170365
170502
  );
@@ -170367,7 +170504,7 @@ async function add2(client2, argv) {
170367
170504
  }
170368
170505
  if (record instanceof DNSInvalidType) {
170369
170506
  output_manager_default.error(
170370
- `Invalid <type> parameter "${record.meta.type}". Expected one of A, AAAA, ALIAS, CAA, CNAME, MX, SRV, TXT ${import_chalk68.default.gray(
170507
+ `Invalid <type> parameter "${record.meta.type}". Expected one of A, AAAA, ALIAS, CAA, CNAME, MX, SRV, TXT ${import_chalk69.default.gray(
170371
170508
  addStamp()
170372
170509
  )}`
170373
170510
  );
@@ -170378,17 +170515,17 @@ async function add2(client2, argv) {
170378
170515
  return 1;
170379
170516
  }
170380
170517
  output_manager_default.success(
170381
- `DNS record for domain ${import_chalk68.default.bold(domain)} ${import_chalk68.default.gray(
170518
+ `DNS record for domain ${import_chalk69.default.bold(domain)} ${import_chalk69.default.gray(
170382
170519
  `(${record.uid})`
170383
- )} created under ${import_chalk68.default.bold(contextName)} ${import_chalk68.default.gray(addStamp())}`
170520
+ )} created under ${import_chalk69.default.bold(contextName)} ${import_chalk69.default.gray(addStamp())}`
170384
170521
  );
170385
170522
  return 0;
170386
170523
  }
170387
- var import_chalk68;
170524
+ var import_chalk69;
170388
170525
  var init_add4 = __esm({
170389
170526
  "src/commands/dns/add.ts"() {
170390
170527
  "use strict";
170391
- import_chalk68 = __toESM3(require_source());
170528
+ import_chalk69 = __toESM3(require_source());
170392
170529
  init_errors_ts();
170393
170530
  init_add_dns_record();
170394
170531
  init_get_scope();
@@ -170408,7 +170545,7 @@ var init_add4 = __esm({
170408
170545
  // src/util/dns/import-zonefile.ts
170409
170546
  async function importZonefile(client2, contextName, domain, zonefilePath) {
170410
170547
  output_manager_default.spinner(
170411
- `Importing Zone file for domain ${domain} under ${import_chalk69.default.bold(contextName)}`
170548
+ `Importing Zone file for domain ${domain} under ${import_chalk70.default.bold(contextName)}`
170412
170549
  );
170413
170550
  const zonefile = (0, import_fs7.readFileSync)((0, import_path38.resolve)(zonefilePath), "utf8");
170414
170551
  try {
@@ -170435,11 +170572,11 @@ async function importZonefile(client2, contextName, domain, zonefilePath) {
170435
170572
  throw err;
170436
170573
  }
170437
170574
  }
170438
- var import_chalk69, import_fs7, import_path38;
170575
+ var import_chalk70, import_fs7, import_path38;
170439
170576
  var init_import_zonefile = __esm({
170440
170577
  "src/util/dns/import-zonefile.ts"() {
170441
170578
  "use strict";
170442
- import_chalk69 = __toESM3(require_source());
170579
+ import_chalk70 = __toESM3(require_source());
170443
170580
  import_fs7 = require("fs");
170444
170581
  import_path38 = require("path");
170445
170582
  init_errors_ts();
@@ -170494,7 +170631,7 @@ async function importZone(client2, argv) {
170494
170631
  });
170495
170632
  if (args2.length !== 2) {
170496
170633
  output_manager_default.error(
170497
- `Invalid number of arguments. Usage: ${import_chalk70.default.cyan(
170634
+ `Invalid number of arguments. Usage: ${import_chalk71.default.cyan(
170498
170635
  `${getCommandName("dns import <domain> <zonefile>")}`
170499
170636
  )}`
170500
170637
  );
@@ -170512,32 +170649,32 @@ async function importZone(client2, argv) {
170512
170649
  );
170513
170650
  if (recordIds instanceof DomainNotFound) {
170514
170651
  output_manager_default.error(
170515
- `The domain ${domain} can't be found under ${import_chalk70.default.bold(
170652
+ `The domain ${domain} can't be found under ${import_chalk71.default.bold(
170516
170653
  contextName
170517
- )} ${import_chalk70.default.gray(addStamp())}`
170654
+ )} ${import_chalk71.default.gray(addStamp())}`
170518
170655
  );
170519
170656
  return 1;
170520
170657
  }
170521
170658
  if (recordIds instanceof InvalidDomain) {
170522
170659
  output_manager_default.error(
170523
- `The domain ${domain} doesn't match with the one found in the Zone file ${import_chalk70.default.gray(
170660
+ `The domain ${domain} doesn't match with the one found in the Zone file ${import_chalk71.default.gray(
170524
170661
  addStamp()
170525
170662
  )}`
170526
170663
  );
170527
170664
  return 1;
170528
170665
  }
170529
170666
  output_manager_default.success(
170530
- `${recordIds.length} DNS records for domain ${import_chalk70.default.bold(
170667
+ `${recordIds.length} DNS records for domain ${import_chalk71.default.bold(
170531
170668
  domain
170532
- )} created under ${import_chalk70.default.bold(contextName)} ${import_chalk70.default.gray(addStamp())}`
170669
+ )} created under ${import_chalk71.default.bold(contextName)} ${import_chalk71.default.gray(addStamp())}`
170533
170670
  );
170534
170671
  return 0;
170535
170672
  }
170536
- var import_chalk70;
170673
+ var import_chalk71;
170537
170674
  var init_import2 = __esm({
170538
170675
  "src/commands/dns/import.ts"() {
170539
170676
  "use strict";
170540
- import_chalk70 = __toESM3(require_source());
170677
+ import_chalk71 = __toESM3(require_source());
170541
170678
  init_get_scope();
170542
170679
  init_errors_ts();
170543
170680
  init_stamp();
@@ -170580,7 +170717,7 @@ function formatTable(header, align, blocks) {
170580
170717
  out += `${block.name}
170581
170718
  `;
170582
170719
  }
170583
- const rows = [header.map((s) => import_chalk71.default.dim(s))].concat(block.rows);
170720
+ const rows = [header.map((s) => import_chalk72.default.dim(s))].concat(block.rows);
170584
170721
  if (rows.length > 0) {
170585
170722
  rows[0][0] = ` ${rows[0][0]}`;
170586
170723
  for (let i = 1; i < rows.length; i++) {
@@ -170600,11 +170737,11 @@ function formatTable(header, align, blocks) {
170600
170737
  }
170601
170738
  return out.slice(0, -1);
170602
170739
  }
170603
- var import_chalk71;
170740
+ var import_chalk72;
170604
170741
  var init_format_table = __esm({
170605
170742
  "src/util/format-table.ts"() {
170606
170743
  "use strict";
170607
- import_chalk71 = __toESM3(require_source());
170744
+ import_chalk72 = __toESM3(require_source());
170608
170745
  init_table();
170609
170746
  init_strlen();
170610
170747
  }
@@ -170688,18 +170825,18 @@ function getAddDomainName(domainNames) {
170688
170825
  ];
170689
170826
  }
170690
170827
  async function getDomainNames(client2, contextName, next) {
170691
- output_manager_default.spinner(`Fetching domains under ${import_chalk72.default.bold(contextName)}`);
170828
+ output_manager_default.spinner(`Fetching domains under ${import_chalk73.default.bold(contextName)}`);
170692
170829
  const { domains: domains2, pagination } = await getDomains(client2, next);
170693
170830
  return { domainNames: domains2.map((domain) => domain.name), pagination };
170694
170831
  }
170695
- var import_chalk72;
170832
+ var import_chalk73;
170696
170833
  var init_get_dns_records = __esm({
170697
170834
  "src/util/dns/get-dns-records.ts"() {
170698
170835
  "use strict";
170699
170836
  init_errors_ts();
170700
170837
  init_get_domain_dns_records();
170701
170838
  init_get_domains();
170702
- import_chalk72 = __toESM3(require_source());
170839
+ import_chalk73 = __toESM3(require_source());
170703
170840
  init_output_manager();
170704
170841
  }
170705
170842
  });
@@ -170764,7 +170901,7 @@ async function ls3(client2, argv) {
170764
170901
  telemetry2.trackCliOptionNext(opts["--next"]);
170765
170902
  if (args2.length > 1) {
170766
170903
  output_manager_default.error(
170767
- `Invalid number of arguments. Usage: ${import_chalk73.default.cyan(
170904
+ `Invalid number of arguments. Usage: ${import_chalk74.default.cyan(
170768
170905
  `${getCommandName("dns ls [domain]")}`
170769
170906
  )}`
170770
170907
  );
@@ -170786,15 +170923,15 @@ async function ls3(client2, argv) {
170786
170923
  );
170787
170924
  if (data instanceof DomainNotFound) {
170788
170925
  output_manager_default.error(
170789
- `The domain ${domainName} can't be found under ${import_chalk73.default.bold(
170926
+ `The domain ${domainName} can't be found under ${import_chalk74.default.bold(
170790
170927
  contextName
170791
- )} ${import_chalk73.default.gray(lsStamp())}`
170928
+ )} ${import_chalk74.default.gray(lsStamp())}`
170792
170929
  );
170793
170930
  return 1;
170794
170931
  }
170795
170932
  const { records, pagination: pagination2 } = data;
170796
170933
  output_manager_default.log(
170797
- `${records.length > 0 ? "Records" : "No records"} found under ${import_chalk73.default.bold(contextName)} ${import_chalk73.default.gray(lsStamp())}`
170934
+ `${records.length > 0 ? "Records" : "No records"} found under ${import_chalk74.default.bold(contextName)} ${import_chalk74.default.gray(lsStamp())}`
170798
170935
  );
170799
170936
  client2.stdout.write(getDNSRecordsTable([{ domainName, records }]));
170800
170937
  if (pagination2 && pagination2.count === 20) {
@@ -170814,9 +170951,9 @@ async function ls3(client2, argv) {
170814
170951
  );
170815
170952
  const nRecords = dnsRecords.reduce((p, r) => r.records.length + p, 0);
170816
170953
  output_manager_default.log(
170817
- `${nRecords > 0 ? "Records" : "No records"} found under ${import_chalk73.default.bold(
170954
+ `${nRecords > 0 ? "Records" : "No records"} found under ${import_chalk74.default.bold(
170818
170955
  contextName
170819
- )} ${import_chalk73.default.gray(lsStamp())}`
170956
+ )} ${import_chalk74.default.gray(lsStamp())}`
170820
170957
  );
170821
170958
  output_manager_default.log(getDNSRecordsTable(dnsRecords));
170822
170959
  if (pagination && pagination.count === 20) {
@@ -170834,7 +170971,7 @@ function getDNSRecordsTable(dnsRecords) {
170834
170971
  ["", "id", "name", "type", "value", "created"],
170835
170972
  ["l", "r", "l", "l", "l", "l"],
170836
170973
  dnsRecords.map(({ domainName, records }) => ({
170837
- name: import_chalk73.default.bold(domainName),
170974
+ name: import_chalk74.default.bold(domainName),
170838
170975
  rows: records.map(getDNSRecordRow)
170839
170976
  }))
170840
170977
  );
@@ -170851,14 +170988,14 @@ function getDNSRecordRow(record) {
170851
170988
  record.name,
170852
170989
  record.type,
170853
170990
  priority ? `${priority} ${record.value}` : record.value,
170854
- import_chalk73.default.gray(isSystemRecord ? "default" : createdAt)
170991
+ import_chalk74.default.gray(isSystemRecord ? "default" : createdAt)
170855
170992
  ];
170856
170993
  }
170857
- var import_chalk73, import_ms16;
170994
+ var import_chalk74, import_ms16;
170858
170995
  var init_ls5 = __esm({
170859
170996
  "src/commands/dns/ls.ts"() {
170860
170997
  "use strict";
170861
- import_chalk73 = __toESM3(require_source());
170998
+ import_chalk74 = __toESM3(require_source());
170862
170999
  import_ms16 = __toESM3(require_ms());
170863
171000
  init_errors_ts();
170864
171001
  init_format_table();
@@ -170943,7 +171080,7 @@ async function rm3(client2, argv) {
170943
171080
  const [recordId] = args2;
170944
171081
  if (args2.length !== 1) {
170945
171082
  output_manager_default.error(
170946
- `Invalid number of arguments. Usage: ${import_chalk74.default.cyan(
171083
+ `Invalid number of arguments. Usage: ${import_chalk75.default.cyan(
170947
171084
  `${getCommandName("dns rm <id>")}`
170948
171085
  )}`
170949
171086
  );
@@ -170969,7 +171106,7 @@ async function rm3(client2, argv) {
170969
171106
  const rmStamp = stamp_default();
170970
171107
  await deleteDNSRecordById(client2, domainName, record.id);
170971
171108
  output_manager_default.success(
170972
- `Record ${import_chalk74.default.gray(`${record.id}`)} removed ${import_chalk74.default.gray(rmStamp())}`
171109
+ `Record ${import_chalk75.default.gray(`${record.id}`)} removed ${import_chalk75.default.gray(rmStamp())}`
170973
171110
  );
170974
171111
  return 0;
170975
171112
  }
@@ -170984,7 +171121,7 @@ function readConfirmation2(client2, msg, domainName, record) {
170984
171121
  `
170985
171122
  );
170986
171123
  output_manager_default.print(
170987
- `${import_chalk74.default.bold.red("> Are you sure?")} ${import_chalk74.default.gray("(y/N) ")}`
171124
+ `${import_chalk75.default.bold.red("> Are you sure?")} ${import_chalk75.default.gray("(y/N) ")}`
170988
171125
  );
170989
171126
  client2.stdin.on("data", (d) => {
170990
171127
  process.stdin.pause();
@@ -170996,19 +171133,19 @@ function getDeleteTableRow(domainName, record) {
170996
171133
  const recordName = `${record.name.length > 0 ? `${record.name}.` : ""}${domainName}`;
170997
171134
  return [
170998
171135
  record.id,
170999
- import_chalk74.default.bold(
171136
+ import_chalk75.default.bold(
171000
171137
  `${recordName} ${record.type} ${record.value} ${record.mxPriority || ""}`
171001
171138
  ),
171002
- import_chalk74.default.gray(
171139
+ import_chalk75.default.gray(
171003
171140
  `${(0, import_ms17.default)(Date.now() - new Date(Number(record.createdAt)).getTime())} ago`
171004
171141
  )
171005
171142
  ];
171006
171143
  }
171007
- var import_chalk74, import_ms17;
171144
+ var import_chalk75, import_ms17;
171008
171145
  var init_rm4 = __esm({
171009
171146
  "src/commands/dns/rm.ts"() {
171010
171147
  "use strict";
171011
- import_chalk74 = __toESM3(require_source());
171148
+ import_chalk75 = __toESM3(require_source());
171012
171149
  import_ms17 = __toESM3(require_ms());
171013
171150
  init_table();
171014
171151
  init_delete_dns_record_by_id();
@@ -171182,16 +171319,16 @@ function formatNSTable(intendedNameservers, currentNameservers, { extraSpace = "
171182
171319
  const rows = [];
171183
171320
  for (let i = 0; i < maxLength; i++) {
171184
171321
  rows.push([
171185
- sortedIntended[i] || import_chalk75.default.gray("-"),
171186
- sortedCurrent[i] || import_chalk75.default.gray("-"),
171187
- sortedIntended[i] === sortedCurrent[i] ? import_chalk75.default.green(chars_default.tick) : import_chalk75.default.red(chars_default.cross)
171322
+ sortedIntended[i] || import_chalk76.default.gray("-"),
171323
+ sortedCurrent[i] || import_chalk76.default.gray("-"),
171324
+ sortedIntended[i] === sortedCurrent[i] ? import_chalk76.default.green(chars_default.tick) : import_chalk76.default.red(chars_default.cross)
171188
171325
  ]);
171189
171326
  }
171190
171327
  return table(
171191
171328
  [
171192
171329
  [
171193
- import_chalk75.default.gray("Intended Nameservers"),
171194
- import_chalk75.default.gray("Current Nameservers"),
171330
+ import_chalk76.default.gray("Intended Nameservers"),
171331
+ import_chalk76.default.gray("Current Nameservers"),
171195
171332
  ""
171196
171333
  ],
171197
171334
  ...rows
@@ -171199,11 +171336,11 @@ function formatNSTable(intendedNameservers, currentNameservers, { extraSpace = "
171199
171336
  { hsep: 4 }
171200
171337
  ).replace(/^(.*)/gm, `${extraSpace}$1`);
171201
171338
  }
171202
- var import_chalk75;
171339
+ var import_chalk76;
171203
171340
  var init_format_ns_table = __esm({
171204
171341
  "src/util/format-ns-table.ts"() {
171205
171342
  "use strict";
171206
- import_chalk75 = __toESM3(require_source());
171343
+ import_chalk76 = __toESM3(require_source());
171207
171344
  init_table();
171208
171345
  init_chars();
171209
171346
  }
@@ -171212,7 +171349,7 @@ var init_format_ns_table = __esm({
171212
171349
  // src/util/domains/get-domain.ts
171213
171350
  async function getDomain(client2, contextName, domainName) {
171214
171351
  output_manager_default.spinner(
171215
- `Fetching domain ${domainName} under ${import_chalk76.default.bold(contextName)}`
171352
+ `Fetching domain ${domainName} under ${import_chalk77.default.bold(contextName)}`
171216
171353
  );
171217
171354
  try {
171218
171355
  const { domain } = await client2.fetch(
@@ -171226,11 +171363,11 @@ async function getDomain(client2, contextName, domainName) {
171226
171363
  throw err;
171227
171364
  }
171228
171365
  }
171229
- var import_chalk76;
171366
+ var import_chalk77;
171230
171367
  var init_get_domain = __esm({
171231
171368
  "src/util/domains/get-domain.ts"() {
171232
171369
  "use strict";
171233
- import_chalk76 = __toESM3(require_source());
171370
+ import_chalk77 = __toESM3(require_source());
171234
171371
  init_errors_ts();
171235
171372
  init_output_manager();
171236
171373
  }
@@ -171270,7 +171407,7 @@ var init_get_domain_config = __esm({
171270
171407
  // src/util/projects/add-domain-to-project.ts
171271
171408
  async function addDomainToProject(client2, projectNameOrId, domain) {
171272
171409
  output_manager_default.spinner(
171273
- `Adding domain ${domain} to project ${import_chalk77.default.bold(projectNameOrId)}`
171410
+ `Adding domain ${domain} to project ${import_chalk78.default.bold(projectNameOrId)}`
171274
171411
  );
171275
171412
  try {
171276
171413
  const response = await client2.fetch(
@@ -171299,11 +171436,11 @@ async function addDomainToProject(client2, projectNameOrId, domain) {
171299
171436
  throw err;
171300
171437
  }
171301
171438
  }
171302
- var import_chalk77;
171439
+ var import_chalk78;
171303
171440
  var init_add_domain_to_project = __esm({
171304
171441
  "src/util/projects/add-domain-to-project.ts"() {
171305
171442
  "use strict";
171306
- import_chalk77 = __toESM3(require_source());
171443
+ import_chalk78 = __toESM3(require_source());
171307
171444
  init_errors_ts();
171308
171445
  init_output_manager();
171309
171446
  }
@@ -171312,7 +171449,7 @@ var init_add_domain_to_project = __esm({
171312
171449
  // src/util/projects/remove-domain-from-project.ts
171313
171450
  async function removeDomainFromProject(client2, projectNameOrId, domain) {
171314
171451
  output_manager_default.spinner(
171315
- `Removing domain ${domain} from project ${import_chalk78.default.bold(projectNameOrId)}`
171452
+ `Removing domain ${domain} from project ${import_chalk79.default.bold(projectNameOrId)}`
171316
171453
  );
171317
171454
  try {
171318
171455
  const response = await client2.fetch(
@@ -171331,11 +171468,11 @@ async function removeDomainFromProject(client2, projectNameOrId, domain) {
171331
171468
  throw err;
171332
171469
  }
171333
171470
  }
171334
- var import_chalk78;
171471
+ var import_chalk79;
171335
171472
  var init_remove_domain_from_project = __esm({
171336
171473
  "src/util/projects/remove-domain-from-project.ts"() {
171337
171474
  "use strict";
171338
- import_chalk78 = __toESM3(require_source());
171475
+ import_chalk79 = __toESM3(require_source());
171339
171476
  init_errors_ts();
171340
171477
  init_output_manager();
171341
171478
  }
@@ -171439,7 +171576,7 @@ async function add3(client2, argv) {
171439
171576
  }
171440
171577
  }
171441
171578
  output_manager_default.success(
171442
- `Domain ${import_chalk79.default.bold(domainName)} added to project ${import_chalk79.default.bold(
171579
+ `Domain ${import_chalk80.default.bold(domainName)} added to project ${import_chalk80.default.bold(
171443
171580
  projectName
171444
171581
  )}. ${addStamp()}`
171445
171582
  );
@@ -171460,11 +171597,11 @@ async function add3(client2, argv) {
171460
171597
  "This domain is not configured properly. To configure it you should either:"
171461
171598
  );
171462
171599
  output_manager_default.print(
171463
- ` ${import_chalk79.default.grey("a)")} Set the following record on your DNS provider to continue: ${code(`A ${domainName} 76.76.21.21`)} ${import_chalk79.default.grey("[recommended]")}
171600
+ ` ${import_chalk80.default.grey("a)")} Set the following record on your DNS provider to continue: ${code(`A ${domainName} 76.76.21.21`)} ${import_chalk80.default.grey("[recommended]")}
171464
171601
  `
171465
171602
  );
171466
171603
  output_manager_default.print(
171467
- ` ${import_chalk79.default.grey("b)")} Change your Domains's nameservers to the intended set`
171604
+ ` ${import_chalk80.default.grey("b)")} Change your Domains's nameservers to the intended set`
171468
171605
  );
171469
171606
  output_manager_default.print(
171470
171607
  `
@@ -171487,11 +171624,11 @@ ${formatNSTable(
171487
171624
  }
171488
171625
  return 0;
171489
171626
  }
171490
- var import_chalk79;
171627
+ var import_chalk80;
171491
171628
  var init_add6 = __esm({
171492
171629
  "src/commands/domains/add.ts"() {
171493
171630
  "use strict";
171494
- import_chalk79 = __toESM3(require_source());
171631
+ import_chalk80 = __toESM3(require_source());
171495
171632
  init_errors_ts();
171496
171633
  init_format_ns_table();
171497
171634
  init_get_scope();
@@ -171583,7 +171720,7 @@ async function buy(client2, argv) {
171583
171720
  }
171584
171721
  if (!(await getDomainStatus(client2, domainName)).available) {
171585
171722
  output_manager_default.error(
171586
- `The domain ${param(domainName)} is ${import_chalk80.default.underline(
171723
+ `The domain ${param(domainName)} is ${import_chalk81.default.underline(
171587
171724
  "unavailable"
171588
171725
  )}! ${availableStamp()}`
171589
171726
  );
@@ -171591,22 +171728,22 @@ async function buy(client2, argv) {
171591
171728
  }
171592
171729
  const { period, price } = domainPrice;
171593
171730
  output_manager_default.log(
171594
- `The domain ${param(domainName)} is ${import_chalk80.default.underline(
171731
+ `The domain ${param(domainName)} is ${import_chalk81.default.underline(
171595
171732
  "available"
171596
- )} to buy under ${import_chalk80.default.bold(contextName)}! ${availableStamp()}`
171733
+ )} to buy under ${import_chalk81.default.bold(contextName)}! ${availableStamp()}`
171597
171734
  );
171598
171735
  let autoRenew;
171599
171736
  if (skipConfirmation) {
171600
171737
  autoRenew = true;
171601
171738
  } else {
171602
171739
  if (!await client2.input.confirm(
171603
- `Buy now for ${import_chalk80.default.bold(`$${price}`)} (${`${period}yr${period > 1 ? "s" : ""}`})?`,
171740
+ `Buy now for ${import_chalk81.default.bold(`$${price}`)} (${`${period}yr${period > 1 ? "s" : ""}`})?`,
171604
171741
  false
171605
171742
  )) {
171606
171743
  return 0;
171607
171744
  }
171608
171745
  autoRenew = await client2.input.confirm(
171609
- renewalPrice.period === 1 ? `Auto renew yearly for ${import_chalk80.default.bold(`$${price}`)}?` : `Auto renew every ${renewalPrice.period} years for ${import_chalk80.default.bold(
171746
+ renewalPrice.period === 1 ? `Auto renew yearly for ${import_chalk81.default.bold(`$${price}`)}?` : `Auto renew every ${renewalPrice.period} years for ${import_chalk81.default.bold(
171610
171747
  `$${price}`
171611
171748
  )}?`,
171612
171749
  true
@@ -171690,11 +171827,11 @@ async function buy(client2, argv) {
171690
171827
  }
171691
171828
  return 0;
171692
171829
  }
171693
- var import_chalk80, import_tldts6, import_error_utils24;
171830
+ var import_chalk81, import_tldts6, import_error_utils24;
171694
171831
  var init_buy2 = __esm({
171695
171832
  "src/commands/domains/buy.ts"() {
171696
171833
  "use strict";
171697
- import_chalk80 = __toESM3(require_source());
171834
+ import_chalk81 = __toESM3(require_source());
171698
171835
  import_tldts6 = __toESM3(require_cjs7());
171699
171836
  import_error_utils24 = __toESM3(require_dist2());
171700
171837
  init_errors_ts();
@@ -171875,13 +172012,13 @@ async function transferIn(client2, argv) {
171875
172012
  const { price } = domainPrice;
171876
172013
  const { contextName } = await getScope(client2);
171877
172014
  output_manager_default.log(
171878
- `The domain ${param(domainName)} is ${import_chalk81.default.underline(
172015
+ `The domain ${param(domainName)} is ${import_chalk82.default.underline(
171879
172016
  "available"
171880
- )} to transfer under ${import_chalk81.default.bold(contextName)}! ${availableStamp()}`
172017
+ )} to transfer under ${import_chalk82.default.bold(contextName)}! ${availableStamp()}`
171881
172018
  );
171882
172019
  const authCode = await getAuthCode(client2, opts["--code"]);
171883
172020
  const shouldTransfer = await client2.input.confirm(
171884
- transferPolicy === "no-change" ? `Transfer now for ${import_chalk81.default.bold(`$${price}`)}?` : `Transfer now with 1yr renewal for ${import_chalk81.default.bold(`$${price}`)}?`,
172021
+ transferPolicy === "no-change" ? `Transfer now for ${import_chalk82.default.bold(`$${price}`)}?` : `Transfer now with 1yr renewal for ${import_chalk82.default.bold(`$${price}`)}?`,
171885
172022
  false
171886
172023
  );
171887
172024
  if (!shouldTransfer) {
@@ -171949,11 +172086,11 @@ async function transferIn(client2, argv) {
171949
172086
  );
171950
172087
  return 0;
171951
172088
  }
171952
- var import_chalk81;
172089
+ var import_chalk82;
171953
172090
  var init_transfer_in2 = __esm({
171954
172091
  "src/commands/domains/transfer-in.ts"() {
171955
172092
  "use strict";
171956
- import_chalk81 = __toESM3(require_source());
172093
+ import_chalk82 = __toESM3(require_source());
171957
172094
  init_errors_ts();
171958
172095
  init_get_scope();
171959
172096
  init_param();
@@ -172065,7 +172202,7 @@ async function inspect2(client2, argv) {
172065
172202
  telemetry2.trackCliArgumentDomain(domainName);
172066
172203
  if (args2.length !== 1) {
172067
172204
  output_manager_default.error(
172068
- `Invalid number of arguments. Usage: ${import_chalk82.default.cyan(
172205
+ `Invalid number of arguments. Usage: ${import_chalk83.default.cyan(
172069
172206
  `${getCommandName("domains inspect <domain>")}`
172070
172207
  )}`
172071
172208
  );
@@ -172074,7 +172211,7 @@ async function inspect2(client2, argv) {
172074
172211
  output_manager_default.debug(`Fetching domain info`);
172075
172212
  const { contextName } = await getScope(client2);
172076
172213
  output_manager_default.spinner(
172077
- `Fetching Domain ${domainName} under ${import_chalk82.default.bold(contextName)}`
172214
+ `Fetching Domain ${domainName} under ${import_chalk83.default.bold(contextName)}`
172078
172215
  );
172079
172216
  const information = await fetchInformation({
172080
172217
  client: client2,
@@ -172086,38 +172223,38 @@ async function inspect2(client2, argv) {
172086
172223
  }
172087
172224
  const { domain, projects, renewalPrice, domainConfig } = information;
172088
172225
  output_manager_default.log(
172089
- `Domain ${domainName} found under ${import_chalk82.default.bold(contextName)} ${import_chalk82.default.gray(
172226
+ `Domain ${domainName} found under ${import_chalk83.default.bold(contextName)} ${import_chalk83.default.gray(
172090
172227
  inspectStamp()
172091
172228
  )}`
172092
172229
  );
172093
172230
  output_manager_default.print("\n");
172094
- output_manager_default.print(import_chalk82.default.bold(" General\n\n"));
172095
- output_manager_default.print(` ${import_chalk82.default.cyan("Name")} ${domain.name}
172231
+ output_manager_default.print(import_chalk83.default.bold(" General\n\n"));
172232
+ output_manager_default.print(` ${import_chalk83.default.cyan("Name")} ${domain.name}
172096
172233
  `);
172097
172234
  output_manager_default.print(
172098
- ` ${import_chalk82.default.cyan("Registrar")} ${getDomainRegistrar(domain)}
172235
+ ` ${import_chalk83.default.cyan("Registrar")} ${getDomainRegistrar(domain)}
172099
172236
  `
172100
172237
  );
172101
172238
  output_manager_default.print(
172102
- ` ${import_chalk82.default.cyan("Expiration Date")} ${formatDate(domain.expiresAt)}
172239
+ ` ${import_chalk83.default.cyan("Expiration Date")} ${formatDate(domain.expiresAt)}
172103
172240
  `
172104
172241
  );
172105
172242
  output_manager_default.print(
172106
- ` ${import_chalk82.default.cyan("Creator")} ${domain.creator.username}
172243
+ ` ${import_chalk83.default.cyan("Creator")} ${domain.creator.username}
172107
172244
  `
172108
172245
  );
172109
172246
  output_manager_default.print(
172110
- ` ${import_chalk82.default.cyan("Created At")} ${formatDate(domain.createdAt)}
172247
+ ` ${import_chalk83.default.cyan("Created At")} ${formatDate(domain.createdAt)}
172111
172248
  `
172112
172249
  );
172113
- output_manager_default.print(` ${import_chalk82.default.cyan("Edge Network")} yes
172250
+ output_manager_default.print(` ${import_chalk83.default.cyan("Edge Network")} yes
172114
172251
  `);
172115
172252
  output_manager_default.print(
172116
- ` ${import_chalk82.default.cyan("Renewal Price")} ${domain.boughtAt && renewalPrice ? `$${renewalPrice} USD` : import_chalk82.default.gray("-")}
172253
+ ` ${import_chalk83.default.cyan("Renewal Price")} ${domain.boughtAt && renewalPrice ? `$${renewalPrice} USD` : import_chalk83.default.gray("-")}
172117
172254
  `
172118
172255
  );
172119
172256
  output_manager_default.print("\n");
172120
- output_manager_default.print(import_chalk82.default.bold(" Nameservers\n\n"));
172257
+ output_manager_default.print(import_chalk83.default.bold(" Nameservers\n\n"));
172121
172258
  output_manager_default.print(
172122
172259
  `${formatNSTable(domain.intendedNameservers, domain.nameservers, {
172123
172260
  extraSpace: " "
@@ -172126,7 +172263,7 @@ async function inspect2(client2, argv) {
172126
172263
  );
172127
172264
  output_manager_default.print("\n");
172128
172265
  if (Array.isArray(projects) && projects.length > 0) {
172129
- output_manager_default.print(import_chalk82.default.bold(" Projects\n"));
172266
+ output_manager_default.print(import_chalk83.default.bold(" Projects\n"));
172130
172267
  const table2 = formatTable(
172131
172268
  ["Project", "Domains"],
172132
172269
  ["l", "l"],
@@ -172156,11 +172293,11 @@ async function inspect2(client2, argv) {
172156
172293
  null
172157
172294
  );
172158
172295
  output_manager_default.print(
172159
- ` ${import_chalk82.default.grey("a)")} Set the following record on your DNS provider to continue: ${code(`A ${domainName} 76.76.21.21`)} ${import_chalk82.default.grey("[recommended]")}
172296
+ ` ${import_chalk83.default.grey("a)")} Set the following record on your DNS provider to continue: ${code(`A ${domainName} 76.76.21.21`)} ${import_chalk83.default.grey("[recommended]")}
172160
172297
  `
172161
172298
  );
172162
172299
  output_manager_default.print(
172163
- ` ${import_chalk82.default.grey("b)")} Change your Domains's nameservers to the intended set detailed above.
172300
+ ` ${import_chalk83.default.grey("b)")} Change your Domains's nameservers to the intended set detailed above.
172164
172301
 
172165
172302
  `
172166
172303
  );
@@ -172219,11 +172356,11 @@ async function fetchInformation({
172219
172356
  domainConfig
172220
172357
  };
172221
172358
  }
172222
- var import_chalk82;
172359
+ var import_chalk83;
172223
172360
  var init_inspect2 = __esm({
172224
172361
  "src/commands/domains/inspect.ts"() {
172225
172362
  "use strict";
172226
- import_chalk82 = __toESM3(require_source());
172363
+ import_chalk83 = __toESM3(require_source());
172227
172364
  init_errors_ts();
172228
172365
  init_stamp();
172229
172366
  init_format_date();
@@ -172302,21 +172439,21 @@ async function ls4(client2, argv) {
172302
172439
  const lsStamp = stamp_default();
172303
172440
  if (args2.length !== 0) {
172304
172441
  output_manager_default.error(
172305
- `Invalid number of arguments. Usage: ${import_chalk83.default.cyan(
172442
+ `Invalid number of arguments. Usage: ${import_chalk84.default.cyan(
172306
172443
  `${getCommandName("domains ls")}`
172307
172444
  )}`
172308
172445
  );
172309
172446
  return 1;
172310
172447
  }
172311
- output_manager_default.spinner(`Fetching Domains under ${import_chalk83.default.bold(contextName)}`);
172448
+ output_manager_default.spinner(`Fetching Domains under ${import_chalk84.default.bold(contextName)}`);
172312
172449
  const { domains: domains2, pagination } = await getDomains(
172313
172450
  client2,
172314
172451
  ...paginationOptions
172315
172452
  );
172316
172453
  output_manager_default.log(
172317
- `${(0, import_pluralize8.default)("Domain", domains2.length, true)} found under ${import_chalk83.default.bold(
172454
+ `${(0, import_pluralize8.default)("Domain", domains2.length, true)} found under ${import_chalk84.default.bold(
172318
172455
  contextName
172319
- )} ${import_chalk83.default.gray(lsStamp())}`
172456
+ )} ${import_chalk84.default.gray(lsStamp())}`
172320
172457
  );
172321
172458
  if (domains2.length > 0) {
172322
172459
  output_manager_default.print(
@@ -172345,7 +172482,7 @@ function formatDomainsTable(domains2) {
172345
172482
  isDomainExternal(domain) ? "Third Party" : "Vercel",
172346
172483
  expiration,
172347
172484
  domain.creator.username,
172348
- import_chalk83.default.gray(age)
172485
+ import_chalk84.default.gray(age)
172349
172486
  ];
172350
172487
  });
172351
172488
  return formatTable(
@@ -172354,12 +172491,12 @@ function formatDomainsTable(domains2) {
172354
172491
  [{ rows }]
172355
172492
  );
172356
172493
  }
172357
- var import_ms18, import_chalk83, import_pluralize8;
172494
+ var import_ms18, import_chalk84, import_pluralize8;
172358
172495
  var init_ls7 = __esm({
172359
172496
  "src/commands/domains/ls.ts"() {
172360
172497
  "use strict";
172361
172498
  import_ms18 = __toESM3(require_ms());
172362
- import_chalk83 = __toESM3(require_source());
172499
+ import_chalk84 = __toESM3(require_source());
172363
172500
  import_pluralize8 = __toESM3(require_pluralize());
172364
172501
  init_get_domains();
172365
172502
  init_get_scope();
@@ -172508,7 +172645,7 @@ async function rm4(client2, argv) {
172508
172645
  const { contextName } = await getScope(client2);
172509
172646
  if (args2.length !== 1) {
172510
172647
  output_manager_default.error(
172511
- `Invalid number of arguments. Usage: ${import_chalk84.default.cyan(
172648
+ `Invalid number of arguments. Usage: ${import_chalk85.default.cyan(
172512
172649
  `${getCommandName("domains rm <domain>")}`
172513
172650
  )}`
172514
172651
  );
@@ -172517,14 +172654,14 @@ async function rm4(client2, argv) {
172517
172654
  const domain = await getDomainByName(client2, contextName, domainName);
172518
172655
  if (domain instanceof DomainNotFound || domain.name !== domainName) {
172519
172656
  output_manager_default.error(
172520
- `Domain not found by "${domainName}" under ${import_chalk84.default.bold(contextName)}`
172657
+ `Domain not found by "${domainName}" under ${import_chalk85.default.bold(contextName)}`
172521
172658
  );
172522
172659
  output_manager_default.log(`Run ${getCommandName(`domains ls`)} to see your domains.`);
172523
172660
  return 1;
172524
172661
  }
172525
172662
  if (domain instanceof DomainPermissionDenied) {
172526
172663
  output_manager_default.error(
172527
- `You don't have access to the domain ${domainName} under ${import_chalk84.default.bold(
172664
+ `You don't have access to the domain ${domainName} under ${import_chalk85.default.bold(
172528
172665
  contextName
172529
172666
  )}`
172530
172667
  );
@@ -172584,15 +172721,15 @@ async function removeDomain(client2, contextName, skipConfirmation, domain, alia
172584
172721
  domain.name
172585
172722
  );
172586
172723
  if (removeResult instanceof DomainNotFound) {
172587
- output_manager_default.error(`Domain not found under ${import_chalk84.default.bold(contextName)}`);
172724
+ output_manager_default.error(`Domain not found under ${import_chalk85.default.bold(contextName)}`);
172588
172725
  output_manager_default.log(`Run ${getCommandName(`domains ls`)} to see your domains.`);
172589
172726
  return 1;
172590
172727
  }
172591
172728
  if (removeResult instanceof DomainPermissionDenied) {
172592
172729
  output_manager_default.error(
172593
- `You don't have permissions over domain ${import_chalk84.default.underline(
172730
+ `You don't have permissions over domain ${import_chalk85.default.underline(
172594
172731
  removeResult.meta.domain
172595
- )} under ${import_chalk84.default.bold(removeResult.meta.context)}.`
172732
+ )} under ${import_chalk85.default.bold(removeResult.meta.context)}.`
172596
172733
  );
172597
172734
  return 1;
172598
172735
  }
@@ -172634,21 +172771,21 @@ async function removeDomain(client2, contextName, skipConfirmation, domain, alia
172634
172771
  );
172635
172772
  if (aliases.length > 0) {
172636
172773
  output_manager_default.warn(
172637
- `This domain's ${import_chalk84.default.bold(
172774
+ `This domain's ${import_chalk85.default.bold(
172638
172775
  (0, import_pluralize9.default)("alias", aliases.length, true)
172639
172776
  )} will be removed. Run ${getCommandName(`alias ls`)} to list them.`
172640
172777
  );
172641
172778
  }
172642
172779
  if (certs.length > 0) {
172643
172780
  output_manager_default.warn(
172644
- `This domain's ${import_chalk84.default.bold(
172781
+ `This domain's ${import_chalk85.default.bold(
172645
172782
  (0, import_pluralize9.default)("certificate", certs.length, true)
172646
172783
  )} will be removed. Run ${getCommandName(`cert ls`)} to list them.`
172647
172784
  );
172648
172785
  }
172649
172786
  if (suffix2) {
172650
172787
  output_manager_default.warn(
172651
- `The ${import_chalk84.default.bold(`custom suffix`)} associated with this domain.`
172788
+ `The ${import_chalk85.default.bold(`custom suffix`)} associated with this domain.`
172652
172789
  );
172653
172790
  }
172654
172791
  if (!skipConfirmation && !await client2.input.confirm(
@@ -172669,14 +172806,14 @@ async function removeDomain(client2, contextName, skipConfirmation, domain, alia
172669
172806
  attempt + 1
172670
172807
  );
172671
172808
  }
172672
- output_manager_default.success(`Domain ${import_chalk84.default.bold(domain.name)} removed ${removeStamp()}`);
172809
+ output_manager_default.success(`Domain ${import_chalk85.default.bold(domain.name)} removed ${removeStamp()}`);
172673
172810
  return 0;
172674
172811
  }
172675
- var import_chalk84, import_pluralize9;
172812
+ var import_chalk85, import_pluralize9;
172676
172813
  var init_rm6 = __esm({
172677
172814
  "src/commands/domains/rm.ts"() {
172678
172815
  "use strict";
172679
- import_chalk84 = __toESM3(require_source());
172816
+ import_chalk85 = __toESM3(require_source());
172680
172817
  import_pluralize9 = __toESM3(require_pluralize());
172681
172818
  init_errors_ts();
172682
172819
  init_delete_cert_by_id();
@@ -172815,15 +172952,15 @@ async function move2(client2, argv) {
172815
172952
  }
172816
172953
  const domain = await getDomainByName(client2, contextName, domainName);
172817
172954
  if (domain instanceof DomainNotFound) {
172818
- output_manager_default.error(`Domain not found under ${import_chalk85.default.bold(contextName)}`);
172955
+ output_manager_default.error(`Domain not found under ${import_chalk86.default.bold(contextName)}`);
172819
172956
  output_manager_default.log(`Run ${getCommandName(`domains ls`)} to see your domains.`);
172820
172957
  return 1;
172821
172958
  }
172822
172959
  if (domain instanceof DomainPermissionDenied) {
172823
172960
  output_manager_default.error(
172824
- `You don't have permissions over domain ${import_chalk85.default.underline(
172961
+ `You don't have permissions over domain ${import_chalk86.default.underline(
172825
172962
  domain.meta.domain
172826
- )} under ${import_chalk85.default.bold(domain.meta.context)}.`
172963
+ )} under ${import_chalk86.default.bold(domain.meta.context)}.`
172827
172964
  );
172828
172965
  return 1;
172829
172966
  }
@@ -172853,7 +172990,7 @@ async function move2(client2, argv) {
172853
172990
  const aliases = await getDomainAliases(client2, domainName);
172854
172991
  if (aliases.length > 0) {
172855
172992
  output_manager_default.warn(
172856
- `This domain's ${import_chalk85.default.bold(
172993
+ `This domain's ${import_chalk86.default.bold(
172857
172994
  (0, import_pluralize10.default)("alias", aliases.length, true)
172858
172995
  )} will be removed. Run ${getCommandName(`alias ls`)} to list them.`
172859
172996
  );
@@ -172894,21 +173031,21 @@ async function move2(client2, argv) {
172894
173031
  return 1;
172895
173032
  }
172896
173033
  if (moveTokenResult instanceof DomainNotFound) {
172897
- output_manager_default.error(`Domain not found under ${import_chalk85.default.bold(contextName)}`);
173034
+ output_manager_default.error(`Domain not found under ${import_chalk86.default.bold(contextName)}`);
172898
173035
  output_manager_default.log(`Run ${getCommandName(`domains ls`)} to see your domains.`);
172899
173036
  return 1;
172900
173037
  }
172901
173038
  if (moveTokenResult instanceof DomainPermissionDenied) {
172902
173039
  output_manager_default.error(
172903
- `You don't have permissions over domain ${import_chalk85.default.underline(
173040
+ `You don't have permissions over domain ${import_chalk86.default.underline(
172904
173041
  moveTokenResult.meta.domain
172905
- )} under ${import_chalk85.default.bold(moveTokenResult.meta.context)}.`
173042
+ )} under ${import_chalk86.default.bold(moveTokenResult.meta.context)}.`
172906
173043
  );
172907
173044
  return 1;
172908
173045
  }
172909
173046
  if (moveTokenResult instanceof InvalidMoveDestination) {
172910
173047
  output_manager_default.error(
172911
- `Destination ${import_chalk85.default.bold(
173048
+ `Destination ${import_chalk86.default.bold(
172912
173049
  destination
172913
173050
  )} is invalid. Please supply a valid username, email, team slug, user id, or team id.`
172914
173051
  );
@@ -172953,11 +173090,11 @@ async function findDestinationMatch(destination, user, teams2) {
172953
173090
  }
172954
173091
  return null;
172955
173092
  }
172956
- var import_chalk85, import_pluralize10;
173093
+ var import_chalk86, import_pluralize10;
172957
173094
  var init_move2 = __esm({
172958
173095
  "src/commands/domains/move.ts"() {
172959
173096
  "use strict";
172960
- import_chalk85 = __toESM3(require_source());
173097
+ import_chalk86 = __toESM3(require_source());
172961
173098
  import_pluralize10 = __toESM3(require_pluralize());
172962
173099
  init_errors_ts();
172963
173100
  init_get_scope();
@@ -173321,6 +173458,11 @@ var init_add7 = __esm({
173321
173458
  this.trackCliFlag("force");
173322
173459
  }
173323
173460
  }
173461
+ trackCliFlagGuidance(guidance2) {
173462
+ if (guidance2) {
173463
+ this.trackCliFlag("guidance");
173464
+ }
173465
+ }
173324
173466
  };
173325
173467
  }
173326
173468
  });
@@ -173348,6 +173490,7 @@ async function add4(client2, argv) {
173348
173490
  telemetryClient.trackCliArgumentGitBranch(envGitBranch);
173349
173491
  telemetryClient.trackCliFlagSensitive(opts["--sensitive"]);
173350
173492
  telemetryClient.trackCliFlagForce(opts["--force"]);
173493
+ telemetryClient.trackCliFlagGuidance(opts["--guidance"]);
173351
173494
  if (args2.length > 3) {
173352
173495
  output_manager_default.error(
173353
173496
  `Invalid number of arguments. Usage: ${getCommandName(
@@ -173471,20 +173614,24 @@ async function add4(client2, argv) {
173471
173614
  }
173472
173615
  output_manager_default.print(
173473
173616
  `${prependEmoji(
173474
- `${opts["--force"] ? "Overrode" : "Added"} Environment Variable ${import_chalk86.default.bold(envName)} to Project ${import_chalk86.default.bold(
173617
+ `${opts["--force"] ? "Overrode" : "Added"} Environment Variable ${import_chalk87.default.bold(envName)} to Project ${import_chalk87.default.bold(
173475
173618
  project.name
173476
- )} ${import_chalk86.default.gray(addStamp())}`,
173619
+ )} ${import_chalk87.default.gray(addStamp())}`,
173477
173620
  emoji("success")
173478
173621
  )}
173479
173622
  `
173480
173623
  );
173624
+ const guidanceMode = parsedArgs.flags["--guidance"] ?? await (0, import_detect_agent2.determineAgent)() !== false;
173625
+ if (guidanceMode) {
173626
+ suggestNextCommands([getCommandName(`env ls`), getCommandName(`env pull`)]);
173627
+ }
173481
173628
  return 0;
173482
173629
  }
173483
- var import_chalk86;
173630
+ var import_chalk87, import_detect_agent2;
173484
173631
  var init_add8 = __esm({
173485
173632
  "src/commands/env/add.ts"() {
173486
173633
  "use strict";
173487
- import_chalk86 = __toESM3(require_source());
173634
+ import_chalk87 = __toESM3(require_source());
173488
173635
  init_stamp();
173489
173636
  init_add_env_record();
173490
173637
  init_get_env_records();
@@ -173503,6 +173650,8 @@ var init_add8 = __esm({
173503
173650
  init_error2();
173504
173651
  init_command10();
173505
173652
  init_link2();
173653
+ import_detect_agent2 = require("@vercel/detect-agent");
173654
+ init_suggest_next_commands();
173506
173655
  }
173507
173656
  });
173508
173657
 
@@ -173519,7 +173668,7 @@ var init_ellipsis = __esm({
173519
173668
  // src/util/target/format-environment.ts
173520
173669
  function formatEnvironment(orgSlug, projectSlug, environment) {
173521
173670
  const projectUrl = `https://vercel.com/${orgSlug}/${projectSlug}`;
173522
- const boldName = import_chalk87.default.bold(
173671
+ const boldName = import_chalk88.default.bold(
173523
173672
  STANDARD_ENVIRONMENTS.includes(environment.slug) ? (0, import_title4.default)(environment.slug) : environment.slug
173524
173673
  );
173525
173674
  return output_manager_default.link(
@@ -173528,11 +173677,11 @@ function formatEnvironment(orgSlug, projectSlug, environment) {
173528
173677
  { fallback: () => boldName, color: false }
173529
173678
  );
173530
173679
  }
173531
- var import_chalk87, import_title4;
173680
+ var import_chalk88, import_title4;
173532
173681
  var init_format_environment = __esm({
173533
173682
  "src/util/target/format-environment.ts"() {
173534
173683
  "use strict";
173535
- import_chalk87 = __toESM3(require_source());
173684
+ import_chalk88 = __toESM3(require_source());
173536
173685
  init_output_manager();
173537
173686
  init_standard_environments();
173538
173687
  import_title4 = __toESM3(require_lib4());
@@ -173586,6 +173735,11 @@ var init_ls8 = __esm({
173586
173735
  });
173587
173736
  }
173588
173737
  }
173738
+ trackCliFlagGuidance(guidance2) {
173739
+ if (guidance2) {
173740
+ this.trackCliFlag("guidance");
173741
+ }
173742
+ }
173589
173743
  };
173590
173744
  }
173591
173745
  });
@@ -173605,7 +173759,7 @@ async function ls5(client2, argv) {
173605
173759
  printError(err);
173606
173760
  return 1;
173607
173761
  }
173608
- const { args: args2 } = parsedArgs;
173762
+ const { args: args2, flags } = parsedArgs;
173609
173763
  if (args2.length > 2) {
173610
173764
  output_manager_default.error(
173611
173765
  `Invalid number of arguments. Usage: ${getCommandName(
@@ -173617,6 +173771,7 @@ async function ls5(client2, argv) {
173617
173771
  const [envTarget, envGitBranch] = args2;
173618
173772
  telemetryClient.trackCliArgumentEnvironment(envTarget);
173619
173773
  telemetryClient.trackCliArgumentGitBranch(envGitBranch);
173774
+ telemetryClient.trackCliFlagGuidance(flags["--guidance"]);
173620
173775
  const link4 = await getLinkedProject(client2);
173621
173776
  if (link4.status === "error") {
173622
173777
  return link4.exitCode;
@@ -173642,15 +173797,23 @@ async function ls5(client2, argv) {
173642
173797
  const projectSlugLink = formatProject(org.slug, project.name);
173643
173798
  if (envs.length === 0) {
173644
173799
  output_manager_default.log(
173645
- `No Environment Variables found for ${projectSlugLink} ${import_chalk88.default.gray(lsStamp())}`
173800
+ `No Environment Variables found for ${projectSlugLink} ${import_chalk89.default.gray(lsStamp())}`
173646
173801
  );
173647
173802
  } else {
173648
173803
  output_manager_default.log(
173649
- `Environment Variables found for ${projectSlugLink} ${import_chalk88.default.gray(lsStamp())}`
173804
+ `Environment Variables found for ${projectSlugLink} ${import_chalk89.default.gray(lsStamp())}`
173650
173805
  );
173651
173806
  client2.stdout.write(`${getTable(link4, envs, customEnvs)}
173652
173807
  `);
173653
173808
  }
173809
+ const guidanceMode = parsedArgs.flags["--guidance"] ?? await (0, import_detect_agent3.determineAgent)() !== false;
173810
+ if (guidanceMode) {
173811
+ suggestNextCommands([
173812
+ getCommandName(`env add`),
173813
+ getCommandName("env rm"),
173814
+ getCommandName(`env pull`)
173815
+ ]);
173816
+ }
173654
173817
  return 0;
173655
173818
  }
173656
173819
  function getTable(link4, records, customEnvironments) {
@@ -173670,25 +173833,25 @@ function getRow(link4, env, customEnvironments) {
173670
173833
  let value;
173671
173834
  if (env.type === "plain") {
173672
173835
  const singleLineValue = env.value.replace(/\s/g, " ");
173673
- value = import_chalk88.default.gray(ellipsis(singleLineValue, 19));
173836
+ value = import_chalk89.default.gray(ellipsis(singleLineValue, 19));
173674
173837
  } else if (env.type === "system") {
173675
- value = import_chalk88.default.gray.italic(env.value);
173838
+ value = import_chalk89.default.gray.italic(env.value);
173676
173839
  } else {
173677
- value = import_chalk88.default.gray.italic("Encrypted");
173840
+ value = import_chalk89.default.gray.italic("Encrypted");
173678
173841
  }
173679
173842
  const now = Date.now();
173680
173843
  return [
173681
- import_chalk88.default.bold(env.key),
173844
+ import_chalk89.default.bold(env.key),
173682
173845
  value,
173683
173846
  formatEnvironments(link4, env, customEnvironments),
173684
173847
  env.createdAt ? `${(0, import_ms19.default)(now - env.createdAt)} ago` : ""
173685
173848
  ];
173686
173849
  }
173687
- var import_chalk88, import_ms19;
173850
+ var import_chalk89, import_ms19, import_detect_agent3;
173688
173851
  var init_ls9 = __esm({
173689
173852
  "src/commands/env/ls.ts"() {
173690
173853
  "use strict";
173691
- import_chalk88 = __toESM3(require_source());
173854
+ import_chalk89 = __toESM3(require_source());
173692
173855
  import_ms19 = __toESM3(require_ms());
173693
173856
  init_format_table();
173694
173857
  init_get_env_records();
@@ -173706,6 +173869,8 @@ var init_ls9 = __esm({
173706
173869
  init_get_flags_specification();
173707
173870
  init_error2();
173708
173871
  init_link2();
173872
+ import_detect_agent3 = require("@vercel/detect-agent");
173873
+ init_suggest_next_commands();
173709
173874
  }
173710
173875
  });
173711
173876
 
@@ -173848,7 +174013,7 @@ async function rm5(client2, argv) {
173848
174013
  link4,
173849
174014
  env,
173850
174015
  customEnvironments
173851
- )} in Project ${import_chalk89.default.bold(project.name)}. Are you sure?`,
174016
+ )} in Project ${import_chalk90.default.bold(project.name)}. Are you sure?`,
173852
174017
  false
173853
174018
  )) {
173854
174019
  output_manager_default.log("Canceled");
@@ -173867,18 +174032,18 @@ async function rm5(client2, argv) {
173867
174032
  }
173868
174033
  output_manager_default.print(
173869
174034
  `${prependEmoji(
173870
- `Removed Environment Variable ${import_chalk89.default.gray(rmStamp())}`,
174035
+ `Removed Environment Variable ${import_chalk90.default.gray(rmStamp())}`,
173871
174036
  emoji("success")
173872
174037
  )}
173873
174038
  `
173874
174039
  );
173875
174040
  return 0;
173876
174041
  }
173877
- var import_chalk89;
174042
+ var import_chalk90;
173878
174043
  var init_rm8 = __esm({
173879
174044
  "src/commands/env/rm.ts"() {
173880
174045
  "use strict";
173881
- import_chalk89 = __toESM3(require_source());
174046
+ import_chalk90 = __toESM3(require_source());
173882
174047
  init_remove_env_record();
173883
174048
  init_get_env_records();
173884
174049
  init_format_environments();
@@ -174093,7 +174258,7 @@ async function connect(client2, argv) {
174093
174258
  const confirm = Boolean(opts["--yes"]);
174094
174259
  if (args2.length > 1) {
174095
174260
  output_manager_default.error(
174096
- `Invalid number of arguments. Usage: ${import_chalk90.default.cyan(
174261
+ `Invalid number of arguments. Usage: ${import_chalk91.default.cyan(
174097
174262
  `${getCommandName("project connect")}`
174098
174263
  )}`
174099
174264
  );
@@ -174140,7 +174305,7 @@ async function connect(client2, argv) {
174140
174305
  }
174141
174306
  if (!gitConfig) {
174142
174307
  output_manager_default.error(
174143
- `No local Git repository found. Run ${import_chalk90.default.cyan(
174308
+ `No local Git repository found. Run ${import_chalk91.default.cyan(
174144
174309
  "`git clone <url>`"
174145
174310
  )} to clone a remote Git repository first.`
174146
174311
  );
@@ -174149,7 +174314,7 @@ async function connect(client2, argv) {
174149
174314
  const remoteUrls = pluckRemoteUrls(gitConfig);
174150
174315
  if (!remoteUrls) {
174151
174316
  output_manager_default.error(
174152
- `No remote URLs found in your Git config. Make sure you've configured a remote repo in your local Git config. Run ${import_chalk90.default.cyan(
174317
+ `No remote URLs found in your Git config. Make sure you've configured a remote repo in your local Git config. Run ${import_chalk91.default.cyan(
174153
174318
  "`git remote --help`"
174154
174319
  )} for more details.`
174155
174320
  );
@@ -174193,7 +174358,7 @@ async function connect(client2, argv) {
174193
174358
  return checkAndConnect;
174194
174359
  }
174195
174360
  output_manager_default.log(
174196
- `Connected ${formatProvider(provider)} repository ${import_chalk90.default.cyan(repoPath)}!`
174361
+ `Connected ${formatProvider(provider)} repository ${import_chalk91.default.cyan(repoPath)}!`
174197
174362
  );
174198
174363
  return 0;
174199
174364
  }
@@ -174230,7 +174395,7 @@ async function connectArg({
174230
174395
  return connect2;
174231
174396
  }
174232
174397
  output_manager_default.log(
174233
- `Connected ${formatProvider(provider)} repository ${import_chalk90.default.cyan(repoPath)}!`
174398
+ `Connected ${formatProvider(provider)} repository ${import_chalk91.default.cyan(repoPath)}!`
174234
174399
  );
174235
174400
  return 0;
174236
174401
  }
@@ -174272,7 +174437,7 @@ async function connectArgWithLocalGit({
174272
174437
  return connect2;
174273
174438
  }
174274
174439
  output_manager_default.log(
174275
- `Connected ${formatProvider(provider)} repository ${import_chalk90.default.cyan(
174440
+ `Connected ${formatProvider(provider)} repository ${import_chalk91.default.cyan(
174276
174441
  repoPath
174277
174442
  )}!`
174278
174443
  );
@@ -174303,7 +174468,7 @@ async function promptConnectArg({
174303
174468
  return true;
174304
174469
  }
174305
174470
  output_manager_default.log(
174306
- `Found a repository in your local Git Config: ${import_chalk90.default.cyan(
174471
+ `Found a repository in your local Git Config: ${import_chalk91.default.cyan(
174307
174472
  Object.values(remoteUrls)[0]
174308
174473
  )}`
174309
174474
  );
@@ -174350,7 +174515,7 @@ async function checkExistsAndConnect({
174350
174515
  const isSameRepo = connectedProvider === provider && connectedOrg === gitOrg && connectedRepo === repo;
174351
174516
  if (isSameRepo) {
174352
174517
  output_manager_default.log(
174353
- `${import_chalk90.default.cyan(connectedRepoPath)} is already connected to your project.`
174518
+ `${import_chalk91.default.cyan(connectedRepoPath)} is already connected to your project.`
174354
174519
  );
174355
174520
  return 1;
174356
174521
  }
@@ -174381,7 +174546,7 @@ async function confirmRepoConnect(client2, yes, connectedProvider, connectedRepo
174381
174546
  shouldReplaceProject = await client2.input.confirm(
174382
174547
  `Looks like you already have a ${formatProvider(
174383
174548
  connectedProvider
174384
- )} repository connected: ${import_chalk90.default.cyan(
174549
+ )} repository connected: ${import_chalk91.default.cyan(
174385
174550
  connectedRepoPath
174386
174551
  )}. Do you want to replace it?`,
174387
174552
  true
@@ -174396,7 +174561,7 @@ async function selectRemoteUrl(client2, remoteUrls) {
174396
174561
  const choices = [];
174397
174562
  for (const [urlKey, urlValue] of Object.entries(remoteUrls)) {
174398
174563
  choices.push({
174399
- name: `${urlValue} ${import_chalk90.default.gray(`(${urlKey})`)}`,
174564
+ name: `${urlValue} ${import_chalk91.default.gray(`(${urlKey})`)}`,
174400
174565
  value: urlValue,
174401
174566
  short: urlKey
174402
174567
  });
@@ -174406,11 +174571,11 @@ async function selectRemoteUrl(client2, remoteUrls) {
174406
174571
  choices
174407
174572
  });
174408
174573
  }
174409
- var import_chalk90, import_path39;
174574
+ var import_chalk91, import_path39;
174410
174575
  var init_connect2 = __esm({
174411
174576
  "src/commands/git/connect.ts"() {
174412
174577
  "use strict";
174413
- import_chalk90 = __toESM3(require_source());
174578
+ import_chalk91 = __toESM3(require_source());
174414
174579
  import_path39 = require("path");
174415
174580
  init_create_git_meta();
174416
174581
  init_list();
@@ -174474,7 +174639,7 @@ async function disconnect(client2, argv) {
174474
174639
  }
174475
174640
  if (args2.length !== 0) {
174476
174641
  output_manager_default.error(
174477
- `Invalid number of arguments. Usage: ${import_chalk91.default.cyan(
174642
+ `Invalid number of arguments. Usage: ${import_chalk92.default.cyan(
174478
174643
  `${getCommandName("project disconnect")}`
174479
174644
  )}`
174480
174645
  );
@@ -174496,14 +174661,14 @@ async function disconnect(client2, argv) {
174496
174661
  `
174497
174662
  );
174498
174663
  const confirmDisconnect = autoConfirm || await client2.input.confirm(
174499
- `Are you sure you want to disconnect ${import_chalk91.default.cyan(
174664
+ `Are you sure you want to disconnect ${import_chalk92.default.cyan(
174500
174665
  `${linkOrg}/${repo}`
174501
174666
  )} from your project?`,
174502
174667
  false
174503
174668
  );
174504
174669
  if (confirmDisconnect) {
174505
174670
  await disconnectGitProvider(client2, org, project.id);
174506
- output_manager_default.log(`Disconnected ${import_chalk91.default.cyan(`${linkOrg}/${repo}`)}.`);
174671
+ output_manager_default.log(`Disconnected ${import_chalk92.default.cyan(`${linkOrg}/${repo}`)}.`);
174507
174672
  } else {
174508
174673
  output_manager_default.log("Canceled");
174509
174674
  }
@@ -174517,11 +174682,11 @@ async function disconnect(client2, argv) {
174517
174682
  }
174518
174683
  return 0;
174519
174684
  }
174520
- var import_chalk91;
174685
+ var import_chalk92;
174521
174686
  var init_disconnect2 = __esm({
174522
174687
  "src/commands/git/disconnect.ts"() {
174523
174688
  "use strict";
174524
- import_chalk91 = __toESM3(require_source());
174689
+ import_chalk92 = __toESM3(require_source());
174525
174690
  init_pkg_name();
174526
174691
  init_connect_git_provider();
174527
174692
  init_output_manager();
@@ -174625,17 +174790,17 @@ var init_git2 = __esm({
174625
174790
  // src/commands/guidance/status.ts
174626
174791
  async function status(client2) {
174627
174792
  const enabled = client2.config.guidance?.enabled !== false;
174628
- const status3 = enabled ? import_chalk92.default.green("Enabled") : import_chalk92.default.red("Disabled");
174793
+ const status3 = enabled ? import_chalk93.default.green("Enabled") : import_chalk93.default.red("Disabled");
174629
174794
  output_manager_default.print("\n");
174630
- output_manager_default.log(`${import_chalk92.default.bold("Guidance status")}: ${status3}`);
174795
+ output_manager_default.log(`${import_chalk93.default.bold("Guidance status")}: ${status3}`);
174631
174796
  output_manager_default.print("\n");
174632
174797
  return 0;
174633
174798
  }
174634
- var import_chalk92;
174799
+ var import_chalk93;
174635
174800
  var init_status = __esm({
174636
174801
  "src/commands/guidance/status.ts"() {
174637
174802
  "use strict";
174638
- import_chalk92 = __toESM3(require_source());
174803
+ import_chalk93 = __toESM3(require_source());
174639
174804
  init_output_manager();
174640
174805
  }
174641
174806
  });
@@ -174993,9 +175158,9 @@ async function extractExample(client2, name, dir, force, ver = "v2") {
174993
175158
  extractor.on("finish", resolve13);
174994
175159
  res.body.pipe(extractor);
174995
175160
  });
174996
- const successLog = `Initialized "${import_chalk93.default.bold(
175161
+ const successLog = `Initialized "${import_chalk94.default.bold(
174997
175162
  name
174998
- )}" example in ${import_chalk93.default.bold(humanizePath(folder))}.`;
175163
+ )}" example in ${import_chalk94.default.bold(humanizePath(folder))}.`;
174999
175164
  const folderRel = import_node_path4.default.relative(client2.cwd, folder);
175000
175165
  const deployHint = folderRel === "" ? list_item_default(`To deploy, run ${getCommandName()}.`) : list_item_default(
175001
175166
  `To deploy, ${cmd(
@@ -175015,14 +175180,14 @@ function prepareFolder(cwd, folder, force) {
175015
175180
  if (import_node_fs2.default.existsSync(dest)) {
175016
175181
  if (!import_node_fs2.default.lstatSync(dest).isDirectory()) {
175017
175182
  throw new Error(
175018
- `Destination path "${import_chalk93.default.bold(
175183
+ `Destination path "${import_chalk94.default.bold(
175019
175184
  folder
175020
175185
  )}" already exists and is not a directory.`
175021
175186
  );
175022
175187
  }
175023
175188
  if (!force && import_node_fs2.default.readdirSync(dest).length !== 0) {
175024
175189
  throw new Error(
175025
- `Destination path "${import_chalk93.default.bold(
175190
+ `Destination path "${import_chalk94.default.bold(
175026
175191
  folder
175027
175192
  )}" already exists and is not an empty directory. You may use ${cmd(
175028
175193
  "--force"
@@ -175033,14 +175198,14 @@ function prepareFolder(cwd, folder, force) {
175033
175198
  try {
175034
175199
  import_node_fs2.default.mkdirSync(dest);
175035
175200
  } catch (e2) {
175036
- throw new Error(`Could not create directory "${import_chalk93.default.bold(folder)}".`);
175201
+ throw new Error(`Could not create directory "${import_chalk94.default.bold(folder)}".`);
175037
175202
  }
175038
175203
  }
175039
175204
  return dest;
175040
175205
  }
175041
175206
  async function guess(client2, exampleList, name) {
175042
175207
  const GuessError = new Error(
175043
- `No example found for ${import_chalk93.default.bold(name)}, run ${getCommandName(
175208
+ `No example found for ${import_chalk94.default.bold(name)}, run ${getCommandName(
175044
175209
  "init"
175045
175210
  )} to see the list of available examples.`
175046
175211
  );
@@ -175049,21 +175214,21 @@ async function guess(client2, exampleList, name) {
175049
175214
  }
175050
175215
  const found = did_you_mean_default(name, exampleList, 0.7);
175051
175216
  if (typeof found === "string") {
175052
- if (await client2.input.confirm(`Did you mean ${import_chalk93.default.bold(found)}?`, false)) {
175217
+ if (await client2.input.confirm(`Did you mean ${import_chalk94.default.bold(found)}?`, false)) {
175053
175218
  return found;
175054
175219
  }
175055
175220
  } else {
175056
175221
  throw GuessError;
175057
175222
  }
175058
175223
  }
175059
- var import_node_fs2, import_node_path4, import_tar_fs, import_chalk93, EXAMPLE_API;
175224
+ var import_node_fs2, import_node_path4, import_tar_fs, import_chalk94, EXAMPLE_API;
175060
175225
  var init_init = __esm({
175061
175226
  "src/commands/init/init.ts"() {
175062
175227
  "use strict";
175063
175228
  import_node_fs2 = __toESM3(require("fs"));
175064
175229
  import_node_path4 = __toESM3(require("path"));
175065
175230
  import_tar_fs = __toESM3(require_tar_fs());
175066
- import_chalk93 = __toESM3(require_source());
175231
+ import_chalk94 = __toESM3(require_source());
175067
175232
  init_list();
175068
175233
  init_list_item();
175069
175234
  init_humanize_path();
@@ -175179,11 +175344,11 @@ var init_build_state = __esm({
175179
175344
  });
175180
175345
 
175181
175346
  // src/util/output/builds.ts
175182
- var import_chalk94, import_bytes8, padding, MAX_BUILD_GROUPS, MAX_OUTPUTS_PER_GROUP, hasOutput, getCommonPath, styleBuild, styleHiddenBuilds, styleOutput, getDirPath, sortByEntrypoint, groupBuilds, builds_default;
175347
+ var import_chalk95, import_bytes8, padding, MAX_BUILD_GROUPS, MAX_OUTPUTS_PER_GROUP, hasOutput, getCommonPath, styleBuild, styleHiddenBuilds, styleOutput, getDirPath, sortByEntrypoint, groupBuilds, builds_default;
175183
175348
  var init_builds = __esm({
175184
175349
  "src/util/output/builds.ts"() {
175185
175350
  "use strict";
175186
- import_chalk94 = __toESM3(require_source());
175351
+ import_chalk95 = __toESM3(require_source());
175187
175352
  import_bytes8 = __toESM3(require_bytes());
175188
175353
  init_build_state();
175189
175354
  padding = 8;
@@ -175212,48 +175377,48 @@ var init_builds = __esm({
175212
175377
  styleBuild = (build2, times, longestSource) => {
175213
175378
  const { entrypoint, id } = build2;
175214
175379
  const time = typeof times[id] === "string" ? times[id] : "";
175215
- let pathColor = import_chalk94.default.cyan;
175380
+ let pathColor = import_chalk95.default.cyan;
175216
175381
  if (isFailed(build2)) {
175217
- pathColor = import_chalk94.default.red;
175382
+ pathColor = import_chalk95.default.red;
175218
175383
  }
175219
175384
  const entry = entrypoint.padEnd(longestSource + padding);
175220
175385
  const prefix = hasOutput(build2) ? "\u250C" : "\u2576";
175221
- return `${import_chalk94.default.grey(prefix)} ${pathColor(entry)}${time}`;
175386
+ return `${import_chalk95.default.grey(prefix)} ${pathColor(entry)}${time}`;
175222
175387
  };
175223
175388
  styleHiddenBuilds = (commonPath, buildGroup, times, longestSource, isHidden2 = false) => {
175224
175389
  const { id } = buildGroup[0];
175225
175390
  const entry = commonPath.padEnd(longestSource + padding);
175226
175391
  const time = typeof times[id] === "string" ? times[id] : "";
175227
175392
  const prefix = isHidden2 === false && buildGroup.some(hasOutput) ? "\u250C" : "\u2576";
175228
- let pathColor = import_chalk94.default.cyan;
175393
+ let pathColor = import_chalk95.default.cyan;
175229
175394
  if (buildGroup.every(isFailed)) {
175230
- pathColor = import_chalk94.default.red;
175395
+ pathColor = import_chalk95.default.red;
175231
175396
  }
175232
175397
  if (isHidden2) {
175233
- pathColor = import_chalk94.default.grey;
175398
+ pathColor = import_chalk95.default.grey;
175234
175399
  }
175235
- return `${import_chalk94.default.grey(prefix)} ${pathColor(entry)}${time}`;
175400
+ return `${import_chalk95.default.grey(prefix)} ${pathColor(entry)}${time}`;
175236
175401
  };
175237
175402
  styleOutput = (output2, readyState, isLast) => {
175238
175403
  const { type, path: path11, size, lambda } = output2;
175239
175404
  const prefix = type === "lambda" ? "\u03BB " : "";
175240
- const finalSize = size ? ` ${import_chalk94.default.grey(`(${(0, import_bytes8.default)(size)})`)}` : "";
175241
- let color = import_chalk94.default.grey;
175405
+ const finalSize = size ? ` ${import_chalk95.default.grey(`(${(0, import_bytes8.default)(size)})`)}` : "";
175406
+ let color = import_chalk95.default.grey;
175242
175407
  let finalRegion = "";
175243
175408
  if (isReady({ readyState })) {
175244
- color = import_chalk94.default;
175409
+ color = import_chalk95.default;
175245
175410
  } else if (isFailed({ readyState })) {
175246
- color = import_chalk94.default.red;
175411
+ color = import_chalk95.default.red;
175247
175412
  }
175248
175413
  if (lambda) {
175249
175414
  const { deployedTo } = lambda;
175250
175415
  if (deployedTo && deployedTo.length > 0) {
175251
- finalRegion = ` ${import_chalk94.default.grey(`[${deployedTo.join(", ")}]`)}`;
175416
+ finalRegion = ` ${import_chalk95.default.grey(`[${deployedTo.join(", ")}]`)}`;
175252
175417
  }
175253
175418
  }
175254
175419
  const corner = isLast ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500";
175255
175420
  const main18 = prefix + path11 + finalSize + finalRegion;
175256
- return `${import_chalk94.default.grey(corner)} ${color(main18)}`;
175421
+ return `${import_chalk95.default.grey(corner)} ${color(main18)}`;
175257
175422
  };
175258
175423
  getDirPath = (path11, level = 0, highestLevel = null) => {
175259
175424
  const parts = path11.split("/").slice(0, -1);
@@ -175385,7 +175550,7 @@ var init_builds = __esm({
175385
175550
  );
175386
175551
  if (outputs.length > MAX_OUTPUTS_PER_GROUP) {
175387
175552
  final.push(
175388
- import_chalk94.default.grey(
175553
+ import_chalk95.default.grey(
175389
175554
  `\u2514\u2500\u2500 ${outputs.length - MAX_OUTPUTS_PER_GROUP} output items hidden
175390
175555
  `
175391
175556
  )
@@ -175433,19 +175598,19 @@ function routes(routes2) {
175433
175598
  const padding2 = 6;
175434
175599
  const space = " ".repeat(padding2);
175435
175600
  const destSpace = " ".repeat(longestDest || 10);
175436
- const arrow = import_chalk95.default.grey("->");
175601
+ const arrow = import_chalk96.default.grey("->");
175437
175602
  for (const item of routes2) {
175438
175603
  if ("handle" in item) {
175439
- toPrint += `${import_chalk95.default.grey("\u2576")} ${import_chalk95.default.cyan(item.handle)}`;
175604
+ toPrint += `${import_chalk96.default.grey("\u2576")} ${import_chalk96.default.cyan(item.handle)}`;
175440
175605
  continue;
175441
175606
  }
175442
175607
  const { src, dest, status: status3, headers } = item;
175443
175608
  const last = routes2.indexOf(item) === routes2.length - 1;
175444
175609
  const suffix = last ? "" : `
175445
175610
  `;
175446
- const finalSrc = import_chalk95.default.cyan(src.padEnd(longestSrc + padding2));
175611
+ const finalSrc = import_chalk96.default.cyan(src.padEnd(longestSrc + padding2));
175447
175612
  const finalDest = dest ? `${arrow}${space}${dest}` : ` ${space}${destSpace}`;
175448
- const finalStatus = status3 ? import_chalk95.default.grey(`[${status3}]`) : "";
175613
+ const finalStatus = status3 ? import_chalk96.default.grey(`[${status3}]`) : "";
175449
175614
  let finalHeaders = null;
175450
175615
  if (headers) {
175451
175616
  finalHeaders = `
@@ -175456,21 +175621,21 @@ function routes(routes2) {
175456
175621
  const last2 = headerKeys.indexOf(header) === headerKeys.length - 1;
175457
175622
  const suffix2 = last2 ? "" : `
175458
175623
  `;
175459
- const prefix2 = import_chalk95.default.grey(last2 ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500");
175624
+ const prefix2 = import_chalk96.default.grey(last2 ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500");
175460
175625
  finalHeaders += `${prefix2} ${header}: ${value}${suffix2}`;
175461
175626
  }
175462
175627
  }
175463
- const prefix = import_chalk95.default.grey(finalHeaders ? "\u250C" : "\u2576");
175628
+ const prefix = import_chalk96.default.grey(finalHeaders ? "\u250C" : "\u2576");
175464
175629
  const fill = `${finalSrc}${finalDest}${space}${finalStatus}`;
175465
175630
  toPrint += `${prefix} ${fill}${finalHeaders || ""}${suffix}`;
175466
175631
  }
175467
175632
  return toPrint;
175468
175633
  }
175469
- var import_chalk95, longestProperty;
175634
+ var import_chalk96, longestProperty;
175470
175635
  var init_routes = __esm({
175471
175636
  "src/util/output/routes.ts"() {
175472
175637
  "use strict";
175473
- import_chalk95 = __toESM3(require_source());
175638
+ import_chalk96 = __toESM3(require_source());
175474
175639
  longestProperty = (routes2, name) => {
175475
175640
  const longestItem = routes2.sort((a, b) => {
175476
175641
  const aName = a[name];
@@ -175590,7 +175755,7 @@ async function inspect3(client2) {
175590
175755
  } catch {
175591
175756
  }
175592
175757
  output_manager_default.spinner(
175593
- `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk96.default.bold(contextName)}`
175758
+ `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk97.default.bold(contextName)}`
175594
175759
  );
175595
175760
  let deployment = await getDeployment(client2, contextName, deploymentIdOrHost);
175596
175761
  let abortController;
@@ -175617,7 +175782,7 @@ async function inspect3(client2) {
175617
175782
  }
175618
175783
  }
175619
175784
  if (withLogs) {
175620
- print(`${import_chalk96.default.cyan("status")} ${stateString(deployment.readyState)}
175785
+ print(`${import_chalk97.default.cyan("status")} ${stateString(deployment.readyState)}
175621
175786
  `);
175622
175787
  } else {
175623
175788
  await printDetails({ deployment, contextName, client: client2, startTimestamp });
@@ -175630,17 +175795,17 @@ function stateString(s) {
175630
175795
  switch (s) {
175631
175796
  case "INITIALIZING":
175632
175797
  case "BUILDING":
175633
- return import_chalk96.default.yellow(CIRCLE) + sTitle;
175798
+ return import_chalk97.default.yellow(CIRCLE) + sTitle;
175634
175799
  case "ERROR":
175635
- return import_chalk96.default.red(CIRCLE) + sTitle;
175800
+ return import_chalk97.default.red(CIRCLE) + sTitle;
175636
175801
  case "READY":
175637
- return import_chalk96.default.green(CIRCLE) + sTitle;
175802
+ return import_chalk97.default.green(CIRCLE) + sTitle;
175638
175803
  case "QUEUED":
175639
- return import_chalk96.default.gray(CIRCLE) + sTitle;
175804
+ return import_chalk97.default.gray(CIRCLE) + sTitle;
175640
175805
  case "CANCELED":
175641
- return import_chalk96.default.gray(CIRCLE) + sTitle;
175806
+ return import_chalk97.default.gray(CIRCLE) + sTitle;
175642
175807
  default:
175643
- return import_chalk96.default.gray("UNKNOWN");
175808
+ return import_chalk97.default.gray("UNKNOWN");
175644
175809
  }
175645
175810
  }
175646
175811
  async function printDetails({
@@ -175650,7 +175815,7 @@ async function printDetails({
175650
175815
  startTimestamp
175651
175816
  }) {
175652
175817
  output_manager_default.log(
175653
- `Fetched deployment "${import_chalk96.default.bold(deployment.url)}" in ${import_chalk96.default.bold(
175818
+ `Fetched deployment "${import_chalk97.default.bold(deployment.url)}" in ${import_chalk97.default.bold(
175654
175819
  contextName
175655
175820
  )} ${elapsed(Date.now() - startTimestamp)}`
175656
175821
  );
@@ -175666,14 +175831,14 @@ async function printDetails({
175666
175831
  const { print, link: link4 } = output_manager_default;
175667
175832
  const { builds } = deployment.version === 2 ? await client2.fetch(`/v11/deployments/${id}/builds`) : { builds: [] };
175668
175833
  print("\n");
175669
- print(import_chalk96.default.bold(" General\n\n"));
175670
- print(` ${import_chalk96.default.cyan("id")} ${id}
175834
+ print(import_chalk97.default.bold(" General\n\n"));
175835
+ print(` ${import_chalk97.default.cyan("id")} ${id}
175671
175836
  `);
175672
- print(` ${import_chalk96.default.cyan("name")} ${name}
175837
+ print(` ${import_chalk97.default.cyan("name")} ${name}
175673
175838
  `);
175674
175839
  const customEnvironmentSlug = deployment.customEnvironment?.slug;
175675
175840
  const target = customEnvironmentSlug ?? deployment.target ?? "preview";
175676
- print(` ${import_chalk96.default.cyan("target")} `);
175841
+ print(` ${import_chalk97.default.cyan("target")} `);
175677
175842
  print(
175678
175843
  deployment.customEnvironment && deployment.team?.slug ? `${link4(
175679
175844
  `${target}`,
@@ -175683,13 +175848,13 @@ async function printDetails({
175683
175848
  ` : `${target}
175684
175849
  `
175685
175850
  );
175686
- print(` ${import_chalk96.default.cyan("status")} ${stateString(readyState)}
175851
+ print(` ${import_chalk97.default.cyan("status")} ${stateString(readyState)}
175687
175852
  `);
175688
- print(` ${import_chalk96.default.cyan("url")} https://${url3}
175853
+ print(` ${import_chalk97.default.cyan("url")} https://${url3}
175689
175854
  `);
175690
175855
  if (createdAt) {
175691
175856
  print(
175692
- ` ${import_chalk96.default.cyan("created")} ${new Date(createdAt)} ${elapsed(
175857
+ ` ${import_chalk97.default.cyan("created")} ${new Date(createdAt)} ${elapsed(
175693
175858
  Date.now() - createdAt,
175694
175859
  true
175695
175860
  )}
@@ -175698,10 +175863,10 @@ async function printDetails({
175698
175863
  }
175699
175864
  print("\n\n");
175700
175865
  if (aliases !== void 0 && aliases.length > 0) {
175701
- print(import_chalk96.default.bold(" Aliases\n\n"));
175866
+ print(import_chalk97.default.bold(" Aliases\n\n"));
175702
175867
  let aliasList = "";
175703
175868
  for (const alias2 of aliases) {
175704
- aliasList += `${import_chalk96.default.gray("\u2576")} https://${alias2}
175869
+ aliasList += `${import_chalk97.default.gray("\u2576")} https://${alias2}
175705
175870
  `;
175706
175871
  }
175707
175872
  print(indent_default(aliasList, 4));
@@ -175713,12 +175878,12 @@ async function printDetails({
175713
175878
  const { id: id2, createdAt: createdAt2, readyStateAt } = build2;
175714
175879
  times[id2] = createdAt2 && readyStateAt ? elapsed(readyStateAt - createdAt2) : null;
175715
175880
  }
175716
- print(import_chalk96.default.bold(" Builds\n\n"));
175881
+ print(import_chalk97.default.bold(" Builds\n\n"));
175717
175882
  print(indent_default(builds_default(builds, times).toPrint, 4));
175718
175883
  print("\n\n");
175719
175884
  }
175720
175885
  if (Array.isArray(routes2) && routes2.length > 0) {
175721
- print(import_chalk96.default.bold(" Routes\n\n"));
175886
+ print(import_chalk97.default.bold(" Routes\n\n"));
175722
175887
  print(indent_default(routes(routes2), 4));
175723
175888
  print(`
175724
175889
 
@@ -175731,12 +175896,12 @@ function exitCode(state) {
175731
175896
  }
175732
175897
  return 0;
175733
175898
  }
175734
- var import_error_utils28, import_chalk96, import_ms20, import_title6, import_url20;
175899
+ var import_error_utils28, import_chalk97, import_ms20, import_title6, import_url20;
175735
175900
  var init_inspect4 = __esm({
175736
175901
  "src/commands/inspect/index.ts"() {
175737
175902
  "use strict";
175738
175903
  import_error_utils28 = __toESM3(require_dist2());
175739
- import_chalk96 = __toESM3(require_source());
175904
+ import_chalk97 = __toESM3(require_source());
175740
175905
  import_ms20 = __toESM3(require_ms());
175741
175906
  import_title6 = __toESM3(require_lib4());
175742
175907
  import_url20 = require("url");
@@ -176172,7 +176337,7 @@ async function add5(client2, args2) {
176172
176337
  }
176173
176338
  const installation = teamInstallations[0];
176174
176339
  output_manager_default.log(
176175
- `Installing ${import_chalk97.default.bold(product.name)} by ${import_chalk97.default.bold(integration.name)} under ${import_chalk97.default.bold(contextName)}`
176340
+ `Installing ${import_chalk98.default.bold(product.name)} by ${import_chalk98.default.bold(integration.name)} under ${import_chalk98.default.bold(contextName)}`
176176
176341
  );
176177
176342
  const metadataSchema = product.metadataSchema;
176178
176343
  const metadataWizard = createMetadataWizard(metadataSchema);
@@ -176392,16 +176557,16 @@ async function selectBillingPlan(client2, billingPlans) {
176392
176557
  }
176393
176558
  async function confirmProductSelection(client2, product, name, metadata, billingPlan) {
176394
176559
  output_manager_default.print("Selected product:\n");
176395
- output_manager_default.print(`${import_chalk97.default.dim(`- ${import_chalk97.default.bold("Name:")} ${name}`)}
176560
+ output_manager_default.print(`${import_chalk98.default.dim(`- ${import_chalk98.default.bold("Name:")} ${name}`)}
176396
176561
  `);
176397
176562
  for (const [key, value] of Object.entries(metadata)) {
176398
176563
  output_manager_default.print(
176399
- `${import_chalk97.default.dim(`- ${import_chalk97.default.bold(`${product.metadataSchema.properties[key]["ui:label"]}:`)} ${value}`)}
176564
+ `${import_chalk98.default.dim(`- ${import_chalk98.default.bold(`${product.metadataSchema.properties[key]["ui:label"]}:`)} ${value}`)}
176400
176565
  `
176401
176566
  );
176402
176567
  }
176403
176568
  output_manager_default.print(
176404
- `${import_chalk97.default.dim(`- ${import_chalk97.default.bold("Plan:")} ${billingPlan.name}`)}
176569
+ `${import_chalk98.default.dim(`- ${import_chalk98.default.bold("Plan:")} ${billingPlan.name}`)}
176405
176570
  `
176406
176571
  );
176407
176572
  return client2.input.confirm("Confirm selection?", true);
@@ -176511,7 +176676,7 @@ async function provisionStorageProduct(client2, product, installation, name, met
176511
176676
  ]
176512
176677
  });
176513
176678
  output_manager_default.spinner(
176514
- `Connecting ${import_chalk97.default.bold(name)} to ${import_chalk97.default.bold(project.name)}...`
176679
+ `Connecting ${import_chalk98.default.bold(name)} to ${import_chalk98.default.bold(project.name)}...`
176515
176680
  );
176516
176681
  try {
176517
176682
  await connectResourceToProject(
@@ -176529,17 +176694,17 @@ async function provisionStorageProduct(client2, product, installation, name, met
176529
176694
  output_manager_default.stopSpinner();
176530
176695
  }
176531
176696
  output_manager_default.log(
176532
- `${import_chalk97.default.bold(name)} successfully connected to ${import_chalk97.default.bold(project.name)}
176697
+ `${import_chalk98.default.bold(name)} successfully connected to ${import_chalk98.default.bold(project.name)}
176533
176698
 
176534
176699
  ${indent_default(`Run ${cmd(`${packageName} env pull`)} to update the environment variables`, 4)}`
176535
176700
  );
176536
176701
  return 0;
176537
176702
  }
176538
- var import_chalk97, import_open3;
176703
+ var import_chalk98, import_open3;
176539
176704
  var init_add10 = __esm({
176540
176705
  "src/commands/integration/add.ts"() {
176541
176706
  "use strict";
176542
- import_chalk97 = __toESM3(require_source());
176707
+ import_chalk98 = __toESM3(require_source());
176543
176708
  import_open3 = __toESM3(require_open());
176544
176709
  init_format_table();
176545
176710
  init_pkg_name();
@@ -176859,7 +177024,7 @@ function outputBalanceInformation(prepaymentInfo, resources, integrationSlug) {
176859
177024
  }
176860
177025
  }
176861
177026
  output_manager_default.log(
176862
- `${import_chalk98.default.bold(`Balances and thresholds for ${integrationSlug}`)}:`
177027
+ `${import_chalk99.default.bold(`Balances and thresholds for ${integrationSlug}`)}:`
176863
177028
  );
176864
177029
  for (const key in mappings) {
176865
177030
  const mapping = mappings[key];
@@ -176885,11 +177050,11 @@ function formattedCurrency(amountInCents) {
176885
177050
  currency: "USD"
176886
177051
  }).format(amountInCents / 100);
176887
177052
  }
176888
- var import_chalk98;
177053
+ var import_chalk99;
176889
177054
  var init_balance2 = __esm({
176890
177055
  "src/commands/integration/balance.ts"() {
176891
177056
  "use strict";
176892
- import_chalk98 = __toESM3(require_source());
177057
+ import_chalk99 = __toESM3(require_source());
176893
177058
  init_output_manager();
176894
177059
  init_get_scope();
176895
177060
  init_fetch_installation_prepayment_info();
@@ -177043,18 +177208,18 @@ async function list4(client2) {
177043
177208
  return 0;
177044
177209
  }
177045
177210
  output_manager_default.log(
177046
- `Integrations in ${import_chalk99.default.bold(contextName)}:
177211
+ `Integrations in ${import_chalk100.default.bold(contextName)}:
177047
177212
  ${table(
177048
177213
  [
177049
177214
  ["Name", "Status", "Product", "Integration", "Projects"].map(
177050
- (header) => import_chalk99.default.bold(import_chalk99.default.cyan(header))
177215
+ (header) => import_chalk100.default.bold(import_chalk100.default.cyan(header))
177051
177216
  ),
177052
177217
  ...results.map((result) => [
177053
- resourceLink(contextName, result) ?? import_chalk99.default.gray("\u2013"),
177218
+ resourceLink(contextName, result) ?? import_chalk100.default.gray("\u2013"),
177054
177219
  resourceStatus(result.status ?? "\u2013"),
177055
- result.product ?? import_chalk99.default.gray("\u2013"),
177056
- integrationLink(result, team) ?? import_chalk99.default.gray("\u2013"),
177057
- import_chalk99.default.grey(result.projects ? result.projects : "\u2013")
177220
+ result.product ?? import_chalk100.default.gray("\u2013"),
177221
+ integrationLink(result, team) ?? import_chalk100.default.gray("\u2013"),
177222
+ import_chalk100.default.grey(result.projects ? result.projects : "\u2013")
177058
177223
  ])
177059
177224
  ],
177060
177225
  { hsep: 8 }
@@ -177067,17 +177232,17 @@ function resourceStatus(status3) {
177067
177232
  const statusTitleCase = (0, import_title7.default)(status3);
177068
177233
  switch (status3) {
177069
177234
  case "initializing":
177070
- return import_chalk99.default.yellow(CIRCLE) + statusTitleCase;
177235
+ return import_chalk100.default.yellow(CIRCLE) + statusTitleCase;
177071
177236
  case "error":
177072
- return import_chalk99.default.red(CIRCLE) + statusTitleCase;
177237
+ return import_chalk100.default.red(CIRCLE) + statusTitleCase;
177073
177238
  case "available":
177074
- return import_chalk99.default.green(CIRCLE) + statusTitleCase;
177239
+ return import_chalk100.default.green(CIRCLE) + statusTitleCase;
177075
177240
  case "suspended":
177076
- return import_chalk99.default.white(CIRCLE) + statusTitleCase;
177241
+ return import_chalk100.default.white(CIRCLE) + statusTitleCase;
177077
177242
  case "limits-exceeded-suspended":
177078
- return `${import_chalk99.default.white(CIRCLE)}Limits exceeded`;
177243
+ return `${import_chalk100.default.white(CIRCLE)}Limits exceeded`;
177079
177244
  default:
177080
- return import_chalk99.default.gray(statusTitleCase);
177245
+ return import_chalk100.default.gray(statusTitleCase);
177081
177246
  }
177082
177247
  }
177083
177248
  function resourceLink(orgSlug, resource) {
@@ -177098,18 +177263,18 @@ function integrationLink(integration, team) {
177098
177263
  if (!integration.configurationId) {
177099
177264
  return integration.integration;
177100
177265
  }
177101
- const boldName = import_chalk99.default.bold(integration.integration);
177266
+ const boldName = import_chalk100.default.bold(integration.integration);
177102
177267
  const integrationDeepLink = buildSSOLink(team, integration.configurationId);
177103
177268
  return output_manager_default.link(boldName, integrationDeepLink, {
177104
177269
  fallback: () => boldName,
177105
177270
  color: false
177106
177271
  });
177107
177272
  }
177108
- var import_chalk99, import_title7;
177273
+ var import_chalk100, import_title7;
177109
177274
  var init_list6 = __esm({
177110
177275
  "src/commands/integration/list.ts"() {
177111
177276
  "use strict";
177112
- import_chalk99 = __toESM3(require_source());
177277
+ import_chalk100 = __toESM3(require_source());
177113
177278
  init_get_scope();
177114
177279
  init_link2();
177115
177280
  init_get_resources();
@@ -177170,7 +177335,7 @@ async function openIntegration(client2, args2) {
177170
177335
  knownIntegrationSlug = !!configuration;
177171
177336
  } catch (error3) {
177172
177337
  output_manager_default.error(
177173
- `Failed to fetch configuration for ${import_chalk100.default.bold(`"${integrationSlug}"`)}: ${error3.message}`
177338
+ `Failed to fetch configuration for ${import_chalk101.default.bold(`"${integrationSlug}"`)}: ${error3.message}`
177174
177339
  );
177175
177340
  return 1;
177176
177341
  } finally {
@@ -177178,19 +177343,19 @@ async function openIntegration(client2, args2) {
177178
177343
  }
177179
177344
  if (!configuration) {
177180
177345
  output_manager_default.error(
177181
- `No configuration found for ${import_chalk100.default.bold(`"${integrationSlug}"`)}.`
177346
+ `No configuration found for ${import_chalk101.default.bold(`"${integrationSlug}"`)}.`
177182
177347
  );
177183
177348
  return 1;
177184
177349
  }
177185
- output_manager_default.print(`Opening the ${import_chalk100.default.bold(integrationSlug)} dashboard...`);
177350
+ output_manager_default.print(`Opening the ${import_chalk101.default.bold(integrationSlug)} dashboard...`);
177186
177351
  (0, import_open4.default)(buildSSOLink(team, configuration.id));
177187
177352
  return 0;
177188
177353
  }
177189
- var import_chalk100, import_open4;
177354
+ var import_chalk101, import_open4;
177190
177355
  var init_open_integration = __esm({
177191
177356
  "src/commands/integration/open-integration.ts"() {
177192
177357
  "use strict";
177193
- import_chalk100 = __toESM3(require_source());
177358
+ import_chalk101 = __toESM3(require_source());
177194
177359
  import_open4 = __toESM3(require_open());
177195
177360
  init_get_scope();
177196
177361
  init_fetch_marketplace_integrations();
@@ -177283,7 +177448,7 @@ async function remove3(client2) {
177283
177448
  );
177284
177449
  output_manager_default.stopSpinner();
177285
177450
  if (!integrationConfiguration) {
177286
- output_manager_default.error(`No integration ${import_chalk101.default.bold(integrationName)} found.`);
177451
+ output_manager_default.error(`No integration ${import_chalk102.default.bold(integrationName)} found.`);
177287
177452
  telemetry2.trackCliArgumentIntegration(integrationName, false);
177288
177453
  return 0;
177289
177454
  }
@@ -177302,26 +177467,26 @@ async function remove3(client2) {
177302
177467
  await removeIntegration(client2, integrationConfiguration, team);
177303
177468
  } catch (error3) {
177304
177469
  output_manager_default.error(
177305
- import_chalk101.default.red(
177306
- `Failed to remove ${import_chalk101.default.bold(integrationName)}: ${error3.message}`
177470
+ import_chalk102.default.red(
177471
+ `Failed to remove ${import_chalk102.default.bold(integrationName)}: ${error3.message}`
177307
177472
  )
177308
177473
  );
177309
177474
  return 1;
177310
177475
  }
177311
- output_manager_default.success(`${import_chalk101.default.bold(integrationName)} successfully removed.`);
177476
+ output_manager_default.success(`${import_chalk102.default.bold(integrationName)} successfully removed.`);
177312
177477
  return 0;
177313
177478
  }
177314
177479
  async function confirmIntegrationRemoval(client2, integration, team) {
177315
177480
  output_manager_default.log(
177316
- `The ${import_chalk101.default.bold(integration)} integration will be removed permanently from team ${import_chalk101.default.bold(team.name)}.`
177481
+ `The ${import_chalk102.default.bold(integration)} integration will be removed permanently from team ${import_chalk102.default.bold(team.name)}.`
177317
177482
  );
177318
- return client2.input.confirm(`${import_chalk101.default.red("Are you sure?")}`, false);
177483
+ return client2.input.confirm(`${import_chalk102.default.red("Are you sure?")}`, false);
177319
177484
  }
177320
- var import_chalk101;
177485
+ var import_chalk102;
177321
177486
  var init_remove_integration2 = __esm({
177322
177487
  "src/commands/integration/remove-integration.ts"() {
177323
177488
  "use strict";
177324
- import_chalk101 = __toESM3(require_source());
177489
+ import_chalk102 = __toESM3(require_source());
177325
177490
  init_output_manager();
177326
177491
  init_get_args();
177327
177492
  init_get_flags_specification();
@@ -177619,18 +177784,18 @@ async function createThreshold(client2) {
177619
177784
  );
177620
177785
  output_manager_default.stopSpinner();
177621
177786
  if (!targetedResource) {
177622
- output_manager_default.log(`The resource ${import_chalk102.default.bold(resourceName)} was not found.`);
177787
+ output_manager_default.log(`The resource ${import_chalk103.default.bold(resourceName)} was not found.`);
177623
177788
  return 0;
177624
177789
  }
177625
177790
  if (!targetedResource.product?.integrationConfigurationId) {
177626
177791
  output_manager_default.error(
177627
- `The resource ${import_chalk102.default.bold(resourceName)} does not have an integration configuration.`
177792
+ `The resource ${import_chalk103.default.bold(resourceName)} does not have an integration configuration.`
177628
177793
  );
177629
177794
  return 1;
177630
177795
  }
177631
177796
  if (targetedResource.billingPlan?.type !== "prepayment") {
177632
177797
  output_manager_default.error(
177633
- `The resource ${import_chalk102.default.bold(resourceName)} is not a prepayment-based resource.`
177798
+ `The resource ${import_chalk103.default.bold(resourceName)} is not a prepayment-based resource.`
177634
177799
  );
177635
177800
  return 1;
177636
177801
  }
@@ -177658,7 +177823,7 @@ async function createThreshold(client2) {
177658
177823
  }
177659
177824
  if (targetedResource.billingPlan.scope !== "resource") {
177660
177825
  output_manager_default.log(
177661
- `The resource ${import_chalk102.default.bold(resourceName)} uses an installation-level balance.`
177826
+ `The resource ${import_chalk103.default.bold(resourceName)} uses an installation-level balance.`
177662
177827
  );
177663
177828
  return await updateThresholdForInstallation({
177664
177829
  client: client2,
@@ -177772,17 +177937,17 @@ async function updateThresholdForInstallation(props) {
177772
177937
  async function handleUpdateThreshold(props) {
177773
177938
  if (props.resource.billingPlan?.type !== "prepayment") {
177774
177939
  output_manager_default.log(
177775
- `The resource ${import_chalk102.default.bold(props.resource.name)} is not a prepayment-based resource.`
177940
+ `The resource ${import_chalk103.default.bold(props.resource.name)} is not a prepayment-based resource.`
177776
177941
  );
177777
177942
  return 0;
177778
177943
  }
177779
177944
  if (!props.resource.product?.integrationConfigurationId) {
177780
177945
  output_manager_default.log(
177781
- `The resource ${import_chalk102.default.bold(props.resource.name)} does not have an integration configuration.`
177946
+ `The resource ${import_chalk103.default.bold(props.resource.name)} does not have an integration configuration.`
177782
177947
  );
177783
177948
  return 0;
177784
177949
  }
177785
- const entityTextReference = props.isInstallationLevel ? `installation ${import_chalk102.default.bold(props.resource.product?.name)}` : `resource ${import_chalk102.default.bold(props.resource.name)}`;
177950
+ const entityTextReference = props.isInstallationLevel ? `installation ${import_chalk103.default.bold(props.resource.product?.name)}` : `resource ${import_chalk103.default.bold(props.resource.name)}`;
177786
177951
  if (props.existingThreshold) {
177787
177952
  const shouldOverwriteThreshold = props.skipConfirmWithYes || await props.client.input.confirm(
177788
177953
  `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?`,
@@ -177839,11 +178004,11 @@ async function handleUpdateThreshold(props) {
177839
178004
  output_manager_default.success(`Threshold for ${entityTextReference} created successfully.`);
177840
178005
  return 0;
177841
178006
  }
177842
- var import_chalk102;
178007
+ var import_chalk103;
177843
178008
  var init_create_threshold2 = __esm({
177844
178009
  "src/commands/integration-resource/create-threshold.ts"() {
177845
178010
  "use strict";
177846
- import_chalk102 = __toESM3(require_source());
178011
+ import_chalk103 = __toESM3(require_source());
177847
178012
  init_output_manager();
177848
178013
  init_error2();
177849
178014
  init_get_args();
@@ -177986,7 +178151,7 @@ async function disconnect2(client2) {
177986
178151
  );
177987
178152
  output_manager_default.stopSpinner();
177988
178153
  if (!targetedResource) {
177989
- output_manager_default.error(`No resource ${import_chalk103.default.bold(resourceName)} found.`);
178154
+ output_manager_default.error(`No resource ${import_chalk104.default.bold(resourceName)} found.`);
177990
178155
  return 0;
177991
178156
  }
177992
178157
  if (parsedArguments.flags["--all"]) {
@@ -178036,7 +178201,7 @@ async function handleDisconnectProject(client2, resource, projectName, skipConfi
178036
178201
  );
178037
178202
  if (!project) {
178038
178203
  output_manager_default.log(
178039
- `Could not find project ${import_chalk103.default.bold(projectName)} connected to resource ${import_chalk103.default.bold(resource.name)}.`
178204
+ `Could not find project ${import_chalk104.default.bold(projectName)} connected to resource ${import_chalk104.default.bold(resource.name)}.`
178040
178205
  );
178041
178206
  return 0;
178042
178207
  }
@@ -178048,7 +178213,7 @@ async function handleDisconnectProject(client2, resource, projectName, skipConfi
178048
178213
  output_manager_default.spinner("Disconnecting resource\u2026", 500);
178049
178214
  await disconnectResourceFromProject(client2, resource, project);
178050
178215
  output_manager_default.success(
178051
- `Disconnected ${import_chalk103.default.bold(project.name)} from ${import_chalk103.default.bold(resource.name)}`
178216
+ `Disconnected ${import_chalk104.default.bold(project.name)} from ${import_chalk104.default.bold(resource.name)}`
178052
178217
  );
178053
178218
  } catch (error3) {
178054
178219
  output_manager_default.error(
@@ -178060,7 +178225,7 @@ async function handleDisconnectProject(client2, resource, projectName, skipConfi
178060
178225
  }
178061
178226
  async function handleDisconnectAllProjects(client2, resource, skipConfirmation) {
178062
178227
  if (resource.projectsMetadata?.length === 0) {
178063
- output_manager_default.log(`${import_chalk103.default.bold(resource.name)} has no projects to disconnect.`);
178228
+ output_manager_default.log(`${import_chalk104.default.bold(resource.name)} has no projects to disconnect.`);
178064
178229
  return;
178065
178230
  }
178066
178231
  if (!skipConfirmation && !await confirmDisconnectAllProjects(client2, resource)) {
@@ -178070,7 +178235,7 @@ async function handleDisconnectAllProjects(client2, resource, skipConfirmation)
178070
178235
  output_manager_default.spinner("Disconnecting projects from resource\u2026", 500);
178071
178236
  await disconnectResourceFromAllProjects(client2, resource);
178072
178237
  output_manager_default.success(
178073
- `Disconnected all projects from ${import_chalk103.default.bold(resource.name)}`
178238
+ `Disconnected all projects from ${import_chalk104.default.bold(resource.name)}`
178074
178239
  );
178075
178240
  } catch (error3) {
178076
178241
  throw new FailedError(
@@ -178081,9 +178246,9 @@ async function handleDisconnectAllProjects(client2, resource, skipConfirmation)
178081
178246
  }
178082
178247
  async function confirmDisconnectProject(client2, resource, project) {
178083
178248
  output_manager_default.log(
178084
- `The resource ${import_chalk103.default.bold(resource.name)} will be disconnected from project ${import_chalk103.default.bold(project.name)}.`
178249
+ `The resource ${import_chalk104.default.bold(resource.name)} will be disconnected from project ${import_chalk104.default.bold(project.name)}.`
178085
178250
  );
178086
- return client2.input.confirm(`${import_chalk103.default.red("Are you sure?")}`, false);
178251
+ return client2.input.confirm(`${import_chalk104.default.red("Are you sure?")}`, false);
178087
178252
  }
178088
178253
  async function confirmDisconnectAllProjects(client2, resource) {
178089
178254
  output_manager_default.log("The following projects will be disconnected:");
@@ -178094,13 +178259,13 @@ async function confirmDisconnectAllProjects(client2, resource) {
178094
178259
  output_manager_default.print(` ${project.name}
178095
178260
  `);
178096
178261
  }
178097
- return client2.input.confirm(import_chalk103.default.red("Are you sure?"), false);
178262
+ return client2.input.confirm(import_chalk104.default.red("Are you sure?"), false);
178098
178263
  }
178099
- var import_chalk103;
178264
+ var import_chalk104;
178100
178265
  var init_disconnect4 = __esm({
178101
178266
  "src/commands/integration-resource/disconnect.ts"() {
178102
178267
  "use strict";
178103
- import_chalk103 = __toESM3(require_source());
178268
+ import_chalk104 = __toESM3(require_source());
178104
178269
  init_output_manager();
178105
178270
  init_get_args();
178106
178271
  init_get_flags_specification();
@@ -178205,7 +178370,7 @@ async function remove4(client2) {
178205
178370
  );
178206
178371
  output_manager_default.stopSpinner();
178207
178372
  if (!targetedResource) {
178208
- output_manager_default.error(`No resource ${import_chalk104.default.bold(resourceName)} found.`);
178373
+ output_manager_default.error(`No resource ${import_chalk105.default.bold(resourceName)} found.`);
178209
178374
  return 0;
178210
178375
  }
178211
178376
  if (disconnectAll) {
@@ -178236,7 +178401,7 @@ async function handleDeleteResource(client2, team, resource, options) {
178236
178401
  const hasProjects = resource.projectsMetadata && resource.projectsMetadata?.length > 0;
178237
178402
  if (!options?.skipProjectCheck && hasProjects) {
178238
178403
  output_manager_default.error(
178239
- `Cannot delete resource ${import_chalk104.default.bold(resource.name)} while it has connected projects. Please disconnect any projects using this resource first or use the \`--disconnect-all\` flag.`
178404
+ `Cannot delete resource ${import_chalk105.default.bold(resource.name)} while it has connected projects. Please disconnect any projects using this resource first or use the \`--disconnect-all\` flag.`
178240
178405
  );
178241
178406
  return 1;
178242
178407
  }
@@ -178247,24 +178412,24 @@ async function handleDeleteResource(client2, team, resource, options) {
178247
178412
  try {
178248
178413
  output_manager_default.spinner("Deleting resource\u2026", 500);
178249
178414
  await deleteResource(client2, resource, team);
178250
- output_manager_default.success(`${import_chalk104.default.bold(resource.name)} successfully deleted.`);
178415
+ output_manager_default.success(`${import_chalk105.default.bold(resource.name)} successfully deleted.`);
178251
178416
  } catch (error3) {
178252
178417
  output_manager_default.error(
178253
- `A problem occurred when attempting to delete ${import_chalk104.default.bold(resource.name)}: ${error3.message}`
178418
+ `A problem occurred when attempting to delete ${import_chalk105.default.bold(resource.name)}: ${error3.message}`
178254
178419
  );
178255
178420
  return 1;
178256
178421
  }
178257
178422
  return 0;
178258
178423
  }
178259
178424
  async function confirmDeleteResource(client2, resource) {
178260
- output_manager_default.log(`${import_chalk104.default.bold(resource.name)} will be deleted permanently.`);
178261
- return client2.input.confirm(`${import_chalk104.default.red("Are you sure?")}`, false);
178425
+ output_manager_default.log(`${import_chalk105.default.bold(resource.name)} will be deleted permanently.`);
178426
+ return client2.input.confirm(`${import_chalk105.default.red("Are you sure?")}`, false);
178262
178427
  }
178263
- var import_chalk104;
178428
+ var import_chalk105;
178264
178429
  var init_remove_resource = __esm({
178265
178430
  "src/commands/integration-resource/remove-resource.ts"() {
178266
178431
  "use strict";
178267
- import_chalk104 = __toESM3(require_source());
178432
+ import_chalk105 = __toESM3(require_source());
178268
178433
  init_output_manager();
178269
178434
  init_get_args();
178270
178435
  init_get_flags_specification();
@@ -178710,7 +178875,7 @@ async function list5(client2) {
178710
178875
  }
178711
178876
  const projectSlugLink = formatProject(contextName, project.name);
178712
178877
  if (!singleDeployment) {
178713
- spinner(`Fetching deployments in ${import_chalk105.default.bold(contextName)}`);
178878
+ spinner(`Fetching deployments in ${import_chalk106.default.bold(contextName)}`);
178714
178879
  const start = Date.now();
178715
178880
  debug2("Fetching deployments");
178716
178881
  const query = new URLSearchParams({ limit: "20", projectId: project.id });
@@ -178750,7 +178915,7 @@ async function list5(client2) {
178750
178915
  const urls = [];
178751
178916
  const tablePrint = table(
178752
178917
  [
178753
- headers.map((header) => import_chalk105.default.bold(import_chalk105.default.cyan(header))),
178918
+ headers.map((header) => import_chalk106.default.bold(import_chalk106.default.cyan(header))),
178754
178919
  ...deployments.sort(sortByCreatedAt).map((dep) => {
178755
178920
  urls.push(`https://${dep.url}`);
178756
178921
  const proposedExp = dep.proposedExpiration ? toDate(Math.min(Date.now(), dep.proposedExpiration)) : "No expiration";
@@ -178760,16 +178925,16 @@ async function list5(client2) {
178760
178925
  const targetName = dep.customEnvironment?.slug || (dep.target === "production" ? "Production" : "Preview");
178761
178926
  const targetSlug = dep.customEnvironment?.id || dep.target || "preview";
178762
178927
  return [
178763
- import_chalk105.default.gray(createdAt),
178928
+ import_chalk106.default.gray(createdAt),
178764
178929
  `https://${dep.url}`,
178765
178930
  stateString2(dep.readyState || ""),
178766
178931
  formatEnvironment(contextName, project.name, {
178767
178932
  id: targetSlug,
178768
178933
  slug: targetName
178769
178934
  }),
178770
- ...!showPolicy ? [import_chalk105.default.gray(getDeploymentDuration(dep))] : [],
178771
- ...!showPolicy ? [import_chalk105.default.gray(dep.creator?.username)] : [],
178772
- ...showPolicy ? [import_chalk105.default.gray(proposedExp)] : []
178935
+ ...!showPolicy ? [import_chalk106.default.gray(getDeploymentDuration(dep))] : [],
178936
+ ...!showPolicy ? [import_chalk106.default.gray(dep.creator?.username)] : [],
178937
+ ...showPolicy ? [import_chalk106.default.gray(proposedExp)] : []
178773
178938
  ];
178774
178939
  }).filter(
178775
178940
  (app2) => (
@@ -178816,17 +178981,17 @@ function stateString2(s) {
178816
178981
  case "BUILDING":
178817
178982
  case "DEPLOYING":
178818
178983
  case "ANALYZING":
178819
- return import_chalk105.default.yellow(CIRCLE) + sTitle;
178984
+ return import_chalk106.default.yellow(CIRCLE) + sTitle;
178820
178985
  case "ERROR":
178821
- return import_chalk105.default.red(CIRCLE) + sTitle;
178986
+ return import_chalk106.default.red(CIRCLE) + sTitle;
178822
178987
  case "READY":
178823
- return import_chalk105.default.green(CIRCLE) + sTitle;
178988
+ return import_chalk106.default.green(CIRCLE) + sTitle;
178824
178989
  case "QUEUED":
178825
- return import_chalk105.default.white(CIRCLE) + sTitle;
178990
+ return import_chalk106.default.white(CIRCLE) + sTitle;
178826
178991
  case "CANCELED":
178827
- return import_chalk105.default.gray(sTitle);
178992
+ return import_chalk106.default.gray(sTitle);
178828
178993
  default:
178829
- return import_chalk105.default.gray("UNKNOWN");
178994
+ return import_chalk106.default.gray("UNKNOWN");
178830
178995
  }
178831
178996
  }
178832
178997
  function sortByCreatedAt(a, b) {
@@ -178842,12 +179007,12 @@ function filterUniqueApps() {
178842
179007
  return true;
178843
179008
  };
178844
179009
  }
178845
- var import_ms21, import_chalk105, import_title8, import_error_utils29;
179010
+ var import_ms21, import_chalk106, import_title8, import_error_utils29;
178846
179011
  var init_list8 = __esm({
178847
179012
  "src/commands/list/index.ts"() {
178848
179013
  "use strict";
178849
179014
  import_ms21 = __toESM3(require_ms());
178850
- import_chalk105 = __toESM3(require_source());
179015
+ import_chalk106 = __toESM3(require_source());
178851
179016
  import_title8 = __toESM3(require_lib4());
178852
179017
  init_table();
178853
179018
  init_get_args();
@@ -179011,7 +179176,7 @@ async function logs(client2) {
179011
179176
  } catch {
179012
179177
  }
179013
179178
  spinner(
179014
- `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk106.default.bold(contextName)}`
179179
+ `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk107.default.bold(contextName)}`
179015
179180
  );
179016
179181
  let deployment;
179017
179182
  try {
@@ -179031,9 +179196,9 @@ async function logs(client2) {
179031
179196
  return 1;
179032
179197
  }
179033
179198
  output_manager_default.print(
179034
- `Displaying runtime logs for deployment ${deployment.url} (${import_chalk106.default.dim(
179199
+ `Displaying runtime logs for deployment ${deployment.url} (${import_chalk107.default.dim(
179035
179200
  deployment.id
179036
- )}) starting from ${import_chalk106.default.bold((0, import_format3.default)(Date.now(), DATE_TIME_FORMAT))}
179201
+ )}) starting from ${import_chalk107.default.bold((0, import_format3.default)(Date.now(), DATE_TIME_FORMAT))}
179037
179202
 
179038
179203
  `
179039
179204
  );
@@ -179048,12 +179213,12 @@ async function logs(client2) {
179048
179213
  abortController
179049
179214
  );
179050
179215
  }
179051
- var import_error_utils30, import_chalk106, import_format3, deprecatedFlags, DATE_TIME_FORMAT;
179216
+ var import_error_utils30, import_chalk107, import_format3, deprecatedFlags, DATE_TIME_FORMAT;
179052
179217
  var init_logs3 = __esm({
179053
179218
  "src/commands/logs/index.ts"() {
179054
179219
  "use strict";
179055
179220
  import_error_utils30 = __toESM3(require_dist2());
179056
- import_chalk106 = __toESM3(require_source());
179221
+ import_chalk107 = __toESM3(require_source());
179057
179222
  import_format3 = __toESM3(require_format());
179058
179223
  init_build_state();
179059
179224
  init_is_deploying();
@@ -179466,12 +179631,22 @@ var init_login2 = __esm({
179466
179631
  "use strict";
179467
179632
  init_telemetry();
179468
179633
  LoginTelemetryClient = class extends TelemetryClient {
179634
+ /**
179635
+ * Tracks the state of the login process.
179636
+ * - `started` when the user initiates the login process.
179637
+ * - `canceled` when the user cancels the login process.
179638
+ * - `error` when the user encounters an error during the login process.
179639
+ * - `success` when the user successfully logs in.
179640
+ */
179641
+ trackState(...args2) {
179642
+ this.trackLoginState(...args2);
179643
+ }
179469
179644
  };
179470
179645
  }
179471
179646
  });
179472
179647
 
179473
179648
  // src/commands/login/future.ts
179474
- async function login2(client2) {
179649
+ async function login2(client2, telemetry2) {
179475
179650
  const deviceAuthorizationResponse = await deviceAuthorizationRequest();
179476
179651
  output_manager_default.debug(
179477
179652
  `'Device Authorization response:', ${await deviceAuthorizationResponse.clone().text()}`
@@ -179479,6 +179654,7 @@ async function login2(client2) {
179479
179654
  const [deviceAuthorizationError, deviceAuthorization] = await processDeviceAuthorizationResponse(deviceAuthorizationResponse);
179480
179655
  if (deviceAuthorizationError) {
179481
179656
  printError(deviceAuthorizationError);
179657
+ telemetry2.trackState("error");
179482
179658
  return 1;
179483
179659
  }
179484
179660
  const {
@@ -179492,17 +179668,20 @@ async function login2(client2) {
179492
179668
  const rl = import_node_readline.default.createInterface({
179493
179669
  input: process.stdin,
179494
179670
  output: process.stdout
179495
- }).on("SIGINT", () => process.exit(0));
179671
+ }).on("SIGINT", () => {
179672
+ telemetry2.trackState("canceled");
179673
+ process.exit(0);
179674
+ });
179496
179675
  rl.question(
179497
179676
  `
179498
- Visit ${import_chalk107.default.bold(
179677
+ Visit ${import_chalk108.default.bold(
179499
179678
  output_manager_default.link(
179500
179679
  verification_uri.replace("https://", ""),
179501
179680
  verification_uri_complete,
179502
179681
  { color: false, fallback: () => verification_uri_complete }
179503
179682
  )
179504
- )}${output_manager_default.supportsHyperlink ? ` and enter ${import_chalk107.default.bold(user_code)}` : ""}
179505
- ${import_chalk107.default.grey("Press [ENTER] to open the browser")}
179683
+ )}${output_manager_default.supportsHyperlink ? ` and enter ${import_chalk108.default.bold(user_code)}` : ""}
179684
+ ${import_chalk108.default.grey("Press [ENTER] to open the browser")}
179506
179685
  `,
179507
179686
  () => {
179508
179687
  open6.default(verification_uri_complete);
@@ -179568,12 +179747,12 @@ async function login2(client2) {
179568
179747
  client2.writeToConfigFile();
179569
179748
  output_manager_default.debug(`Saved credentials in "${humanizePath(global_path_default())}"`);
179570
179749
  output_manager_default.print(`
179571
- ${import_chalk107.default.cyan("Congratulations!")} You are now signed in.
179750
+ ${import_chalk108.default.cyan("Congratulations!")} You are now signed in.
179572
179751
 
179573
179752
  To deploy something, run ${getCommandName()}.
179574
179753
 
179575
179754
  ${emoji("tip")} To deploy every commit automatically,
179576
- connect a Git Repository (${import_chalk107.default.bold(output_manager_default.link("vercel.link/git", "https://vercel.link/git", { color: false }))}).
179755
+ connect a Git Repository (${import_chalk108.default.bold(output_manager_default.link("vercel.link/git", "https://vercel.link/git", { color: false }))}).
179577
179756
  `);
179578
179757
  return;
179579
179758
  }
@@ -179581,17 +179760,20 @@ async function login2(client2) {
179581
179760
  error3 = await pollForToken();
179582
179761
  output_manager_default.stopSpinner();
179583
179762
  rl.close();
179584
- if (!error3)
179763
+ if (!error3) {
179764
+ telemetry2.trackState("success");
179585
179765
  return 0;
179766
+ }
179586
179767
  printError(error3);
179768
+ telemetry2.trackState("error");
179587
179769
  return 1;
179588
179770
  }
179589
- var import_node_readline, import_chalk107, open6, import_ansi_escapes6;
179771
+ var import_node_readline, import_chalk108, open6, import_ansi_escapes6;
179590
179772
  var init_future = __esm({
179591
179773
  "src/commands/login/future.ts"() {
179592
179774
  "use strict";
179593
179775
  import_node_readline = __toESM3(require("readline"));
179594
- import_chalk107 = __toESM3(require_source());
179776
+ import_chalk108 = __toESM3(require_source());
179595
179777
  open6 = __toESM3(require_open());
179596
179778
  import_ansi_escapes6 = __toESM3(require_ansi_escapes());
179597
179779
  init_error2();
@@ -179627,7 +179809,8 @@ async function login3(client2) {
179627
179809
  }
179628
179810
  if (parsedArgs.flags["--future"]) {
179629
179811
  telemetry2.trackCliFlagFuture("login");
179630
- return await login2(client2);
179812
+ telemetry2.trackState("started");
179813
+ return await login2(client2, telemetry2);
179631
179814
  }
179632
179815
  if (parsedArgs.flags["--help"]) {
179633
179816
  telemetry2.trackCliFlagHelp("login");
@@ -179671,7 +179854,7 @@ async function login3(client2) {
179671
179854
  writeToConfigFile(client2.config);
179672
179855
  output_manager_default.debug(`Saved credentials in "${humanizePath(global_path_default())}"`);
179673
179856
  output_manager_default.print(
179674
- `${import_chalk108.default.cyan("Congratulations!")} You are now logged in. In order to deploy something, run ${getCommandName()}.
179857
+ `${import_chalk109.default.cyan("Congratulations!")} You are now logged in. In order to deploy something, run ${getCommandName()}.
179675
179858
  `
179676
179859
  );
179677
179860
  output_manager_default.print(
@@ -179683,12 +179866,12 @@ async function login3(client2) {
179683
179866
  );
179684
179867
  return 0;
179685
179868
  }
179686
- var import_email_validator, import_chalk108;
179869
+ var import_email_validator, import_chalk109;
179687
179870
  var init_login3 = __esm({
179688
179871
  "src/commands/login/index.ts"() {
179689
179872
  "use strict";
179690
179873
  import_email_validator = __toESM3(require_email_validator());
179691
- import_chalk108 = __toESM3(require_source());
179874
+ import_chalk109 = __toESM3(require_source());
179692
179875
  init_humanize_path();
179693
179876
  init_get_args();
179694
179877
  init_prompt();
@@ -179875,7 +180058,7 @@ async function pull2(client2) {
179875
180058
  client2.config.currentTeam = org.type === "team" ? org.id : void 0;
179876
180059
  const { contextName } = await getScope(client2);
179877
180060
  output_manager_default.spinner(
179878
- `Fetching microfrontends configuration in ${import_chalk109.default.bold(contextName)}`
180061
+ `Fetching microfrontends configuration in ${import_chalk110.default.bold(contextName)}`
179879
180062
  );
179880
180063
  let parsedArgs;
179881
180064
  const flagsSpecification = getFlagsSpecification(pullSubcommand2.options);
@@ -179923,11 +180106,11 @@ async function pull2(client2) {
179923
180106
  const microfrontendsStamp = stamp_default();
179924
180107
  output_manager_default.print(
179925
180108
  `${prependEmoji(
179926
- `Downloaded microfrontends configuration to ${import_chalk109.default.bold(
180109
+ `Downloaded microfrontends configuration to ${import_chalk110.default.bold(
179927
180110
  humanizePath(
179928
180111
  (0, import_node_path5.join)(currentDirectory, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS)
179929
180112
  )
179930
- )} ${import_chalk109.default.gray(microfrontendsStamp())}`,
180113
+ )} ${import_chalk110.default.gray(microfrontendsStamp())}`,
179931
180114
  emoji("success")
179932
180115
  )}
179933
180116
  `
@@ -179939,11 +180122,11 @@ async function pull2(client2) {
179939
180122
  return 1;
179940
180123
  }
179941
180124
  }
179942
- var import_chalk109, import_node_path5, import_fs_extra23, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS;
180125
+ var import_chalk110, import_node_path5, import_fs_extra23, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS;
179943
180126
  var init_pull5 = __esm({
179944
180127
  "src/commands/microfrontends/pull.ts"() {
179945
180128
  "use strict";
179946
- import_chalk109 = __toESM3(require_source());
180129
+ import_chalk110 = __toESM3(require_source());
179947
180130
  import_node_path5 = require("path");
179948
180131
  init_output_manager();
179949
180132
  init_get_scope();
@@ -180096,12 +180279,12 @@ async function add6(client2, argv) {
180096
180279
  const { args: args2 } = parsedArgs;
180097
180280
  if (args2.length !== 1) {
180098
180281
  output_manager_default.error(
180099
- `Invalid number of arguments. Usage: ${import_chalk110.default.cyan(
180282
+ `Invalid number of arguments. Usage: ${import_chalk111.default.cyan(
180100
180283
  `${getCommandName("project add <name>")}`
180101
180284
  )}`
180102
180285
  );
180103
180286
  if (args2.length > 1) {
180104
- const example = import_chalk110.default.cyan(
180287
+ const example = import_chalk111.default.cyan(
180105
180288
  `${getCommandName(`project add "${args2.join(" ")}"`)}`
180106
180289
  );
180107
180290
  output_manager_default.log(
@@ -180129,17 +180312,17 @@ async function add6(client2, argv) {
180129
180312
  const elapsed2 = (0, import_ms22.default)(Date.now() - start);
180130
180313
  const { contextName } = await getScope(client2);
180131
180314
  output_manager_default.log(
180132
- `${import_chalk110.default.cyan("Success!")} Project ${import_chalk110.default.bold(
180315
+ `${import_chalk111.default.cyan("Success!")} Project ${import_chalk111.default.bold(
180133
180316
  name.toLowerCase()
180134
- )} added (${import_chalk110.default.bold(contextName)}) ${import_chalk110.default.gray(`[${elapsed2}]`)}`
180317
+ )} added (${import_chalk111.default.bold(contextName)}) ${import_chalk111.default.gray(`[${elapsed2}]`)}`
180135
180318
  );
180136
180319
  return 0;
180137
180320
  }
180138
- var import_chalk110, import_ms22;
180321
+ var import_chalk111, import_ms22;
180139
180322
  var init_add12 = __esm({
180140
180323
  "src/commands/project/add.ts"() {
180141
180324
  "use strict";
180142
- import_chalk110 = __toESM3(require_source());
180325
+ import_chalk111 = __toESM3(require_source());
180143
180326
  import_ms22 = __toESM3(require_ms());
180144
180327
  init_errors_ts();
180145
180328
  init_pkg_name();
@@ -180238,7 +180421,7 @@ async function inspect4(client2, argv) {
180238
180421
  telemetry2.trackCliFlagYes(parsedArgs.flags["--yes"]);
180239
180422
  if (args2.length !== 0 && args2.length !== 1) {
180240
180423
  output_manager_default.error(
180241
- `Invalid number of arguments. Usage: ${import_chalk111.default.cyan(
180424
+ `Invalid number of arguments. Usage: ${import_chalk112.default.cyan(
180242
180425
  `${getCommandName("project inspect <name>")}`
180243
180426
  )}`
180244
180427
  );
@@ -180253,52 +180436,52 @@ async function inspect4(client2, argv) {
180253
180436
  });
180254
180437
  const org = await getTeamById(client2, project.accountId);
180255
180438
  const projectSlugLink = formatProject(org.slug, project.name);
180256
- output_manager_default.log(`Found Project ${projectSlugLink} ${import_chalk111.default.gray(inspectStamp())}`);
180439
+ output_manager_default.log(`Found Project ${projectSlugLink} ${import_chalk112.default.gray(inspectStamp())}`);
180257
180440
  output_manager_default.print("\n");
180258
- output_manager_default.print(import_chalk111.default.bold(" General\n\n"));
180259
- output_manager_default.print(` ${import_chalk111.default.cyan("ID")} ${project.id}
180441
+ output_manager_default.print(import_chalk112.default.bold(" General\n\n"));
180442
+ output_manager_default.print(` ${import_chalk112.default.cyan("ID")} ${project.id}
180260
180443
  `);
180261
- output_manager_default.print(` ${import_chalk111.default.cyan("Name")} ${project.name}
180444
+ output_manager_default.print(` ${import_chalk112.default.cyan("Name")} ${project.name}
180262
180445
  `);
180263
- output_manager_default.print(` ${import_chalk111.default.cyan("Owner")} ${org.name}
180446
+ output_manager_default.print(` ${import_chalk112.default.cyan("Owner")} ${org.name}
180264
180447
  `);
180265
180448
  output_manager_default.print(
180266
- ` ${import_chalk111.default.cyan("Created At")} ${formatDate(project.createdAt)}
180449
+ ` ${import_chalk112.default.cyan("Created At")} ${formatDate(project.createdAt)}
180267
180450
  `
180268
180451
  );
180269
180452
  output_manager_default.print(
180270
- ` ${import_chalk111.default.cyan("Root Directory")} ${project.rootDirectory ?? "."}
180453
+ ` ${import_chalk112.default.cyan("Root Directory")} ${project.rootDirectory ?? "."}
180271
180454
  `
180272
180455
  );
180273
180456
  output_manager_default.print(
180274
- ` ${import_chalk111.default.cyan("Node.js Version")} ${project.nodeVersion}
180457
+ ` ${import_chalk112.default.cyan("Node.js Version")} ${project.nodeVersion}
180275
180458
  `
180276
180459
  );
180277
180460
  const framework = import_frameworks7.frameworkList.find((f) => f.slug === project.framework);
180278
180461
  output_manager_default.print("\n");
180279
- output_manager_default.print(import_chalk111.default.bold(" Framework Settings\n\n"));
180280
- output_manager_default.print(` ${import_chalk111.default.cyan("Framework Preset")} ${framework?.name}
180462
+ output_manager_default.print(import_chalk112.default.bold(" Framework Settings\n\n"));
180463
+ output_manager_default.print(` ${import_chalk112.default.cyan("Framework Preset")} ${framework?.name}
180281
180464
  `);
180282
180465
  output_manager_default.print(
180283
- ` ${import_chalk111.default.cyan("Build Command")} ${project.buildCommand ?? import_chalk111.default.dim(framework?.settings?.buildCommand.placeholder ?? "None")}
180466
+ ` ${import_chalk112.default.cyan("Build Command")} ${project.buildCommand ?? import_chalk112.default.dim(framework?.settings?.buildCommand.placeholder ?? "None")}
180284
180467
  `
180285
180468
  );
180286
180469
  output_manager_default.print(
180287
- ` ${import_chalk111.default.cyan("Output Directory")} ${project.outputDirectory ?? import_chalk111.default.dim(framework?.settings?.outputDirectory.placeholder ?? "None")}
180470
+ ` ${import_chalk112.default.cyan("Output Directory")} ${project.outputDirectory ?? import_chalk112.default.dim(framework?.settings?.outputDirectory.placeholder ?? "None")}
180288
180471
  `
180289
180472
  );
180290
180473
  output_manager_default.print(
180291
- ` ${import_chalk111.default.cyan("Install Command")} ${project.installCommand ?? import_chalk111.default.dim(framework?.settings?.installCommand.placeholder ?? "None")}
180474
+ ` ${import_chalk112.default.cyan("Install Command")} ${project.installCommand ?? import_chalk112.default.dim(framework?.settings?.installCommand.placeholder ?? "None")}
180292
180475
  `
180293
180476
  );
180294
180477
  output_manager_default.print("\n");
180295
180478
  return 0;
180296
180479
  }
180297
- var import_chalk111, import_frameworks7;
180480
+ var import_chalk112, import_frameworks7;
180298
180481
  var init_inspect6 = __esm({
180299
180482
  "src/commands/project/inspect.ts"() {
180300
180483
  "use strict";
180301
- import_chalk111 = __toESM3(require_source());
180484
+ import_chalk112 = __toESM3(require_source());
180302
180485
  import_frameworks7 = __toESM3(require_frameworks());
180303
180486
  init_pkg_name();
180304
180487
  init_inspect5();
@@ -180362,7 +180545,7 @@ async function list6(client2, argv) {
180362
180545
  const { args: args2, flags: opts } = parsedArgs;
180363
180546
  if (args2.length !== 0) {
180364
180547
  output_manager_default.error(
180365
- `Invalid number of arguments. Usage: ${import_chalk112.default.cyan(
180548
+ `Invalid number of arguments. Usage: ${import_chalk113.default.cyan(
180366
180549
  `${getCommandName("project ls")}`
180367
180550
  )}`
180368
180551
  );
@@ -180370,7 +180553,7 @@ async function list6(client2, argv) {
180370
180553
  }
180371
180554
  const start = Date.now();
180372
180555
  const { contextName } = await getScope(client2);
180373
- output_manager_default.spinner(`Fetching projects in ${import_chalk112.default.bold(contextName)}`);
180556
+ output_manager_default.spinner(`Fetching projects in ${import_chalk113.default.bold(contextName)}`);
180374
180557
  const flags = processFlags(opts, telemetryClient);
180375
180558
  const projectsUrl = buildProjectsUrl(flags);
180376
180559
  const {
@@ -180443,7 +180626,7 @@ function outputJson(client2, projectList, metadata) {
180443
180626
  function outputTable(projectList, options) {
180444
180627
  const { contextName, elapsed: elapsed2, deprecated, opts, pagination } = options;
180445
180628
  output_manager_default.log(
180446
- `${projectList.length > 0 ? "Projects" : "No projects"} found under ${import_chalk112.default.bold(contextName)} ${deprecated ? "that are using a deprecated Node.js version" : "\b"} ${import_chalk112.default.gray(`[${elapsed2}]`)}`
180629
+ `${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}]`)}`
180447
180630
  );
180448
180631
  if (projectList.length > 0) {
180449
180632
  printProjectsTable(projectList);
@@ -180453,12 +180636,12 @@ function outputTable(projectList, options) {
180453
180636
  function printProjectsTable(projectList) {
180454
180637
  const tablePrint = table(
180455
180638
  [
180456
- TABLE_HEADERS.map((header) => import_chalk112.default.bold(import_chalk112.default.cyan(header))),
180639
+ TABLE_HEADERS.map((header) => import_chalk113.default.bold(import_chalk113.default.cyan(header))),
180457
180640
  ...projectList.flatMap((project) => [
180458
180641
  [
180459
- import_chalk112.default.bold(project.name),
180642
+ import_chalk113.default.bold(project.name),
180460
180643
  getLatestProdUrl(project),
180461
- import_chalk112.default.gray((0, import_ms23.default)(Date.now() - project.updatedAt)),
180644
+ import_chalk113.default.gray((0, import_ms23.default)(Date.now() - project.updatedAt)),
180462
180645
  project.nodeVersion ?? ""
180463
180646
  ]
180464
180647
  ])
@@ -180483,12 +180666,12 @@ function getLatestProdUrl(project) {
180483
180666
  return `https://${alias2}`;
180484
180667
  return "--";
180485
180668
  }
180486
- var import_ms23, import_chalk112, TABLE_HEADERS, PAGINATION_FLAGS_TO_EXCLUDE, BASE_PROJECTS_URL;
180669
+ var import_ms23, import_chalk113, TABLE_HEADERS, PAGINATION_FLAGS_TO_EXCLUDE, BASE_PROJECTS_URL;
180487
180670
  var init_list10 = __esm({
180488
180671
  "src/commands/project/list.ts"() {
180489
180672
  "use strict";
180490
180673
  import_ms23 = __toESM3(require_ms());
180491
- import_chalk112 = __toESM3(require_source());
180674
+ import_chalk113 = __toESM3(require_source());
180492
180675
  init_table();
180493
180676
  init_get_command_flags();
180494
180677
  init_pkg_name();
@@ -180547,7 +180730,7 @@ async function rm6(client2, argv) {
180547
180730
  const { args: args2 } = parsedArgs;
180548
180731
  if (args2.length !== 1) {
180549
180732
  output_manager_default.error(
180550
- `Invalid number of arguments. Usage: ${import_chalk113.default.cyan(
180733
+ `Invalid number of arguments. Usage: ${import_chalk114.default.cyan(
180551
180734
  `${getCommandName("project rm <name>")}`
180552
180735
  )}`
180553
180736
  );
@@ -180577,7 +180760,7 @@ async function rm6(client2, argv) {
180577
180760
  }
180578
180761
  const elapsed2 = (0, import_ms24.default)(Date.now() - start);
180579
180762
  output_manager_default.log(
180580
- `${import_chalk113.default.cyan("Success!")} Project ${import_chalk113.default.bold(name)} removed ${import_chalk113.default.gray(
180763
+ `${import_chalk114.default.cyan("Success!")} Project ${import_chalk114.default.bold(name)} removed ${import_chalk114.default.gray(
180581
180764
  `[${elapsed2}]`
180582
180765
  )}`
180583
180766
  );
@@ -180586,22 +180769,22 @@ async function rm6(client2, argv) {
180586
180769
  async function readConfirmation3(client2, projectName) {
180587
180770
  output_manager_default.print(
180588
180771
  prependEmoji(
180589
- `The project ${import_chalk113.default.bold(projectName)} will be removed permanently.
180772
+ `The project ${import_chalk114.default.bold(projectName)} will be removed permanently.
180590
180773
  It will also delete everything under the project including deployments.
180591
180774
  `,
180592
180775
  emoji("warning")
180593
180776
  )
180594
180777
  );
180595
180778
  return await client2.input.confirm(
180596
- `${import_chalk113.default.bold.red("Are you sure?")}`,
180779
+ `${import_chalk114.default.bold.red("Are you sure?")}`,
180597
180780
  false
180598
180781
  );
180599
180782
  }
180600
- var import_chalk113, import_ms24, e;
180783
+ var import_chalk114, import_ms24, e;
180601
180784
  var init_rm10 = __esm({
180602
180785
  "src/commands/project/rm.ts"() {
180603
180786
  "use strict";
180604
- import_chalk113 = __toESM3(require_source());
180787
+ import_chalk114 = __toESM3(require_source());
180605
180788
  import_ms24 = __toESM3(require_ms());
180606
180789
  init_emoji();
180607
180790
  init_errors_ts();
@@ -180769,7 +180952,7 @@ async function getProjectByDeployment({
180769
180952
  let team;
180770
180953
  try {
180771
180954
  output_manager_default?.spinner(
180772
- `Fetching deployment "${deployId}" in ${import_chalk114.default.bold(contextName)}\u2026`
180955
+ `Fetching deployment "${deployId}" in ${import_chalk115.default.bold(contextName)}\u2026`
180773
180956
  );
180774
180957
  const [teamResult, deploymentResult] = await Promise.allSettled([
180775
180958
  config2.currentTeam ? getTeamById(client2, config2.currentTeam) : void 0,
@@ -180786,12 +180969,12 @@ async function getProjectByDeployment({
180786
180969
  team = teamResult.value;
180787
180970
  deployment = deploymentResult.value;
180788
180971
  output_manager_default?.log(
180789
- `Fetching deployment "${deployId}" in ${import_chalk114.default.bold(contextName)}\u2026`
180972
+ `Fetching deployment "${deployId}" in ${import_chalk115.default.bold(contextName)}\u2026`
180790
180973
  );
180791
180974
  if (deployment.team?.id) {
180792
180975
  if (!team || deployment.team.id !== team.id) {
180793
180976
  const err = new Error(
180794
- team ? `Deployment doesn't belong to current team ${import_chalk114.default.bold(
180977
+ team ? `Deployment doesn't belong to current team ${import_chalk115.default.bold(
180795
180978
  contextName
180796
180979
  )}` : `Deployment belongs to a different team`
180797
180980
  );
@@ -180800,7 +180983,7 @@ async function getProjectByDeployment({
180800
180983
  }
180801
180984
  } else if (team) {
180802
180985
  const err = new Error(
180803
- `Deployment doesn't belong to current team ${import_chalk114.default.bold(contextName)}`
180986
+ `Deployment doesn't belong to current team ${import_chalk115.default.bold(contextName)}`
180804
180987
  );
180805
180988
  err.code = "ERR_INVALID_TEAM";
180806
180989
  throw err;
@@ -180821,11 +181004,11 @@ async function getProjectByDeployment({
180821
181004
  output_manager_default?.stopSpinner();
180822
181005
  }
180823
181006
  }
180824
- var import_chalk114;
181007
+ var import_chalk115;
180825
181008
  var init_get_project_by_deployment = __esm({
180826
181009
  "src/util/projects/get-project-by-deployment.ts"() {
180827
181010
  "use strict";
180828
- import_chalk114 = __toESM3(require_source());
181011
+ import_chalk115 = __toESM3(require_source());
180829
181012
  init_get_deployment();
180830
181013
  init_get_project_by_id_or_name();
180831
181014
  init_get_scope();
@@ -180839,21 +181022,21 @@ var init_get_project_by_deployment = __esm({
180839
181022
  // src/util/alias/render-alias-status.ts
180840
181023
  function renderAliasStatus(status3) {
180841
181024
  if (status3 === "completed") {
180842
- return import_chalk115.default.green(status3);
181025
+ return import_chalk116.default.green(status3);
180843
181026
  }
180844
181027
  if (status3 === "failed") {
180845
- return import_chalk115.default.red(status3);
181028
+ return import_chalk116.default.red(status3);
180846
181029
  }
180847
181030
  if (status3 === "skipped") {
180848
- return import_chalk115.default.gray(status3);
181031
+ return import_chalk116.default.gray(status3);
180849
181032
  }
180850
- return import_chalk115.default.yellow(status3);
181033
+ return import_chalk116.default.yellow(status3);
180851
181034
  }
180852
- var import_chalk115;
181035
+ var import_chalk116;
180853
181036
  var init_render_alias_status = __esm({
180854
181037
  "src/util/alias/render-alias-status.ts"() {
180855
181038
  "use strict";
180856
- import_chalk115 = __toESM3(require_source());
181039
+ import_chalk116 = __toESM3(require_source());
180857
181040
  }
180858
181041
  });
180859
181042
 
@@ -180960,7 +181143,7 @@ async function promoteStatus({
180960
181143
  }
180961
181144
  if (requestedAt < recentThreshold || Date.now() >= promoteTimeout) {
180962
181145
  output_manager_default.log(
180963
- `The promotion exceeded its deadline - rerun ${import_chalk116.default.bold(
181146
+ `The promotion exceeded its deadline - rerun ${import_chalk117.default.bold(
180964
181147
  `${packageName} promote ${toDeploymentId}`
180965
181148
  )} to try again`
180966
181149
  );
@@ -181024,26 +181207,26 @@ async function renderJobSucceeded({
181024
181207
  let deploymentInfo = "";
181025
181208
  try {
181026
181209
  const deployment = await getDeployment(client2, contextName, toDeploymentId);
181027
- deploymentInfo = `${import_chalk116.default.bold(deployment.url)} (${toDeploymentId})`;
181210
+ deploymentInfo = `${import_chalk117.default.bold(deployment.url)} (${toDeploymentId})`;
181028
181211
  } catch (err) {
181029
181212
  output_manager_default.debug(
181030
181213
  `Failed to get deployment url for ${toDeploymentId}: ${err?.toString() || err}`
181031
181214
  );
181032
- deploymentInfo = import_chalk116.default.bold(toDeploymentId);
181215
+ deploymentInfo = import_chalk117.default.bold(toDeploymentId);
181033
181216
  }
181034
181217
  const duration = performingPromote ? elapsed(Date.now() - requestedAt) : "";
181035
181218
  output_manager_default.log(
181036
- `Success! ${import_chalk116.default.bold(
181219
+ `Success! ${import_chalk117.default.bold(
181037
181220
  project.name
181038
181221
  )} was promoted to ${deploymentInfo} ${duration}`
181039
181222
  );
181040
181223
  return 0;
181041
181224
  }
181042
- var import_chalk116, import_ms25;
181225
+ var import_chalk117, import_ms25;
181043
181226
  var init_status2 = __esm({
181044
181227
  "src/commands/promote/status.ts"() {
181045
181228
  "use strict";
181046
- import_chalk116 = __toESM3(require_source());
181229
+ import_chalk117 = __toESM3(require_source());
181047
181230
  init_elapsed();
181048
181231
  init_format_date();
181049
181232
  init_get_deployment();
@@ -181100,7 +181283,7 @@ async function requestPromote({
181100
181283
  }
181101
181284
  );
181102
181285
  output_manager_default.log(
181103
- `Successfully created new deployment of ${import_chalk117.default.bold(project.name)} at ${newDeployment.inspectorUrl}`
181286
+ `Successfully created new deployment of ${import_chalk118.default.bold(project.name)} at ${newDeployment.inspectorUrl}`
181104
181287
  );
181105
181288
  return 0;
181106
181289
  }
@@ -181121,7 +181304,7 @@ async function requestPromote({
181121
181304
  }
181122
181305
  if (timeout !== void 0 && (0, import_ms26.default)(timeout) === 0) {
181123
181306
  output_manager_default.log(
181124
- `Successfully requested promote of ${import_chalk117.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
181307
+ `Successfully requested promote of ${import_chalk118.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
181125
181308
  );
181126
181309
  output_manager_default.log(`To check promote status, run ${getCommandName("promote")}.`);
181127
181310
  return 0;
@@ -181134,11 +181317,11 @@ async function requestPromote({
181134
181317
  timeout
181135
181318
  });
181136
181319
  }
181137
- var import_chalk117, import_ms26;
181320
+ var import_chalk118, import_ms26;
181138
181321
  var init_request_promote = __esm({
181139
181322
  "src/commands/promote/request-promote.ts"() {
181140
181323
  "use strict";
181141
- import_chalk117 = __toESM3(require_source());
181324
+ import_chalk118 = __toESM3(require_source());
181142
181325
  init_pkg_name();
181143
181326
  init_get_project_by_deployment();
181144
181327
  import_ms26 = __toESM3(require_ms());
@@ -181299,7 +181482,7 @@ async function getDeploymentByIdOrURL({
181299
181482
  let team;
181300
181483
  try {
181301
181484
  output_manager_default.spinner(
181302
- `Fetching deployment "${deployIdOrUrl}" in ${import_chalk118.default.bold(contextName)}\u2026`
181485
+ `Fetching deployment "${deployIdOrUrl}" in ${import_chalk119.default.bold(contextName)}\u2026`
181303
181486
  );
181304
181487
  const [teamResult, deploymentResult] = await Promise.allSettled([
181305
181488
  config2.currentTeam ? getTeamById(client2, config2.currentTeam) : void 0,
@@ -181316,7 +181499,7 @@ async function getDeploymentByIdOrURL({
181316
181499
  team = teamResult.value;
181317
181500
  deployment = deploymentResult.value;
181318
181501
  output_manager_default.log(
181319
- `Fetching deployment "${deployIdOrUrl}" in ${import_chalk118.default.bold(contextName)}\u2026`
181502
+ `Fetching deployment "${deployIdOrUrl}" in ${import_chalk119.default.bold(contextName)}\u2026`
181320
181503
  );
181321
181504
  } finally {
181322
181505
  output_manager_default.stopSpinner();
@@ -181324,7 +181507,7 @@ async function getDeploymentByIdOrURL({
181324
181507
  if (deployment.team?.id) {
181325
181508
  if (!team || deployment.team.id !== team.id) {
181326
181509
  const err = new Error(
181327
- team ? `Deployment doesn't belong to current team ${import_chalk118.default.bold(
181510
+ team ? `Deployment doesn't belong to current team ${import_chalk119.default.bold(
181328
181511
  contextName
181329
181512
  )}` : `Deployment belongs to a different team`
181330
181513
  );
@@ -181333,18 +181516,18 @@ async function getDeploymentByIdOrURL({
181333
181516
  }
181334
181517
  } else if (team) {
181335
181518
  const err = new Error(
181336
- `Deployment doesn't belong to current team ${import_chalk118.default.bold(contextName)}`
181519
+ `Deployment doesn't belong to current team ${import_chalk119.default.bold(contextName)}`
181337
181520
  );
181338
181521
  err.code = "ERR_INVALID_TEAM";
181339
181522
  throw err;
181340
181523
  }
181341
181524
  return deployment;
181342
181525
  }
181343
- var import_chalk118;
181526
+ var import_chalk119;
181344
181527
  var init_get_deployment_by_id_or_url = __esm({
181345
181528
  "src/util/deploy/get-deployment-by-id-or-url.ts"() {
181346
181529
  "use strict";
181347
- import_chalk118 = __toESM3(require_source());
181530
+ import_chalk119 = __toESM3(require_source());
181348
181531
  init_get_deployment();
181349
181532
  init_get_team_by_id();
181350
181533
  init_is_valid_name();
@@ -181483,14 +181666,14 @@ async function redeploy(client2) {
181483
181666
  }
181484
181667
  output_manager_default.print(
181485
181668
  `${prependEmoji(
181486
- `Inspect: ${import_chalk119.default.bold(deployment.inspectorUrl)} ${deployStamp()}`,
181669
+ `Inspect: ${import_chalk120.default.bold(deployment.inspectorUrl)} ${deployStamp()}`,
181487
181670
  emoji("inspect")
181488
181671
  )}
181489
181672
  `
181490
181673
  );
181491
181674
  output_manager_default.print(
181492
181675
  prependEmoji(
181493
- `${isProdDeployment ? "Production" : "Preview"}: ${import_chalk119.default.bold(
181676
+ `${isProdDeployment ? "Production" : "Preview"}: ${import_chalk120.default.bold(
181494
181677
  previewUrl
181495
181678
  )} ${deployStamp()}`,
181496
181679
  emoji("success")
@@ -181566,22 +181749,22 @@ async function redeploy(client2) {
181566
181749
  }
181567
181750
  }
181568
181751
  }
181569
- return printDeploymentStatus(deployment, deployStamp, noWait);
181752
+ return printDeploymentStatus(deployment, deployStamp, noWait, false);
181570
181753
  } catch (err) {
181571
181754
  output_manager_default.prettyError(err);
181572
181755
  if ((0, import_error_utils34.isErrnoException)(err) && err.code === "ERR_INVALID_TEAM") {
181573
181756
  output_manager_default.error(
181574
- `Use ${import_chalk119.default.bold("vc switch")} to change your current team`
181757
+ `Use ${import_chalk120.default.bold("vc switch")} to change your current team`
181575
181758
  );
181576
181759
  }
181577
181760
  return 1;
181578
181761
  }
181579
181762
  }
181580
- var import_chalk119, import_client13, import_error_utils34;
181763
+ var import_chalk120, import_client13, import_error_utils34;
181581
181764
  var init_redeploy2 = __esm({
181582
181765
  "src/commands/redeploy/index.ts"() {
181583
181766
  "use strict";
181584
- import_chalk119 = __toESM3(require_source());
181767
+ import_chalk120 = __toESM3(require_source());
181585
181768
  import_client13 = __toESM3(require_dist7());
181586
181769
  init_emoji();
181587
181770
  init_get_args();
@@ -181789,7 +181972,7 @@ async function remove5(client2) {
181789
181972
  }
181790
181973
  const { contextName } = await getScope(client2);
181791
181974
  output_manager_default.spinner(
181792
- `Fetching deployment(s) ${ids.map((id) => `"${id}"`).join(" ")} in ${import_chalk120.default.bold(contextName)}`
181975
+ `Fetching deployment(s) ${ids.map((id) => `"${id}"`).join(" ")} in ${import_chalk121.default.bold(contextName)}`
181793
181976
  );
181794
181977
  let aliases;
181795
181978
  let projects;
@@ -181855,7 +182038,7 @@ async function remove5(client2) {
181855
182038
  });
181856
182039
  if (deployments.length === 0 && projects.length === 0) {
181857
182040
  const safeUnaliased = parsedArgs.flags["--safe"] ? "unaliased" : "any";
181858
- const stylizedIds = ids.map((id) => import_chalk120.default.bold(`"${id}"`)).join(", ");
182041
+ const stylizedIds = ids.map((id) => import_chalk121.default.bold(`"${id}"`)).join(", ");
181859
182042
  const commandName = getCommandName("projects ls");
181860
182043
  log2(
181861
182044
  `Could not find ${safeUnaliased} deployments or projects matching ${stylizedIds}. Run ${commandName} to list.`
@@ -181863,7 +182046,7 @@ async function remove5(client2) {
181863
182046
  return 1;
181864
182047
  }
181865
182048
  log2(
181866
- `Found ${deploymentsAndProjects(deployments, projects)} for removal in ${import_chalk120.default.bold(contextName)} ${elapsed(Date.now() - findStart)}`
182049
+ `Found ${deploymentsAndProjects(deployments, projects)} for removal in ${import_chalk121.default.bold(contextName)} ${elapsed(Date.now() - findStart)}`
181867
182050
  );
181868
182051
  if (deployments.length > 200) {
181869
182052
  output_manager_default.warn(
@@ -181890,11 +182073,11 @@ async function remove5(client2) {
181890
182073
  `Removed ${deploymentsAndProjects(deployments, projects)} ${elapsed(Date.now() - start)}`
181891
182074
  );
181892
182075
  deployments.forEach((depl) => {
181893
- output_manager_default.print(`${import_chalk120.default.gray("-")} ${import_chalk120.default.bold(depl.url)}
182076
+ output_manager_default.print(`${import_chalk121.default.gray("-")} ${import_chalk121.default.bold(depl.url)}
181894
182077
  `);
181895
182078
  });
181896
182079
  projects.forEach((project) => {
181897
- output_manager_default.print(`${import_chalk120.default.gray("-")} ${import_chalk120.default.bold(project.name)}
182080
+ output_manager_default.print(`${import_chalk121.default.gray("-")} ${import_chalk121.default.bold(project.name)}
181898
182081
  `);
181899
182082
  });
181900
182083
  return 0;
@@ -181911,8 +182094,8 @@ function readConfirmation4(deployments, projects) {
181911
182094
  );
181912
182095
  const deploymentTable = table(
181913
182096
  deployments.map((depl) => {
181914
- const time = import_chalk120.default.gray(`${(0, import_ms28.default)(Date.now() - depl.createdAt)} ago`);
181915
- const url3 = depl.url ? import_chalk120.default.underline(`https://${depl.url}`) : "";
182097
+ const time = import_chalk121.default.gray(`${(0, import_ms28.default)(Date.now() - depl.createdAt)} ago`);
182098
+ const url3 = depl.url ? import_chalk121.default.underline(`https://${depl.url}`) : "";
181916
182099
  return [` ${depl.id}`, url3, time];
181917
182100
  }),
181918
182101
  { align: ["l", "r", "l"], hsep: 6 }
@@ -181923,7 +182106,7 @@ function readConfirmation4(deployments, projects) {
181923
182106
  for (const depl of deployments) {
181924
182107
  for (const { alias: alias2 } of depl.aliases) {
181925
182108
  output_manager_default.warn(
181926
- `${import_chalk120.default.underline(`https://${alias2}`)} is an alias for ${import_chalk120.default.bold(depl.url)} and will be removed`
182109
+ `${import_chalk121.default.underline(`https://${alias2}`)} is an alias for ${import_chalk121.default.bold(depl.url)} and will be removed`
181927
182110
  );
181928
182111
  }
181929
182112
  }
@@ -181937,12 +182120,12 @@ function readConfirmation4(deployments, projects) {
181937
182120
  `
181938
182121
  );
181939
182122
  for (const project of projects) {
181940
- output_manager_default.print(`${import_chalk120.default.gray("-")} ${import_chalk120.default.bold(project.name)}
182123
+ output_manager_default.print(`${import_chalk121.default.gray("-")} ${import_chalk121.default.bold(project.name)}
181941
182124
  `);
181942
182125
  }
181943
182126
  }
181944
182127
  output_manager_default.print(
181945
- `${import_chalk120.default.bold.red("> Are you sure?")} ${import_chalk120.default.gray("(y/N) ")}`
182128
+ `${import_chalk121.default.bold.red("> Are you sure?")} ${import_chalk121.default.gray("(y/N) ")}`
181946
182129
  );
181947
182130
  process.stdin.on("data", (d) => {
181948
182131
  process.stdin.pause();
@@ -181959,11 +182142,11 @@ function deploymentsAndProjects(deployments, projects, conjunction = "and") {
181959
182142
  }
181960
182143
  return `${(0, import_pluralize11.default)("deployment", deployments.length, true)} ${conjunction} ${(0, import_pluralize11.default)("project", projects.length, true)}`;
181961
182144
  }
181962
- var import_chalk120, import_ms28, import_pluralize11;
182145
+ var import_chalk121, import_ms28, import_pluralize11;
181963
182146
  var init_remove6 = __esm({
181964
182147
  "src/commands/remove/index.ts"() {
181965
182148
  "use strict";
181966
- import_chalk120 = __toESM3(require_source());
182149
+ import_chalk121 = __toESM3(require_source());
181967
182150
  import_ms28 = __toESM3(require_ms());
181968
182151
  import_pluralize11 = __toESM3(require_pluralize());
181969
182152
  init_table();
@@ -182059,7 +182242,7 @@ async function rollbackStatus({
182059
182242
  }
182060
182243
  if (requestedAt < recentThreshold || Date.now() >= rollbackTimeout) {
182061
182244
  output_manager_default.log(
182062
- `The rollback exceeded its deadline - rerun ${import_chalk121.default.bold(
182245
+ `The rollback exceeded its deadline - rerun ${import_chalk122.default.bold(
182063
182246
  `${packageName} rollback ${toDeploymentId}`
182064
182247
  )} to try again`
182065
182248
  );
@@ -182123,26 +182306,26 @@ async function renderJobSucceeded2({
182123
182306
  let deploymentInfo = "";
182124
182307
  try {
182125
182308
  const deployment = await getDeployment(client2, contextName, toDeploymentId);
182126
- deploymentInfo = `${import_chalk121.default.bold(deployment.url)} (${toDeploymentId})`;
182309
+ deploymentInfo = `${import_chalk122.default.bold(deployment.url)} (${toDeploymentId})`;
182127
182310
  } catch (err) {
182128
182311
  output_manager_default.debug(
182129
182312
  `Failed to get deployment url for ${toDeploymentId}: ${err?.toString() || err}`
182130
182313
  );
182131
- deploymentInfo = import_chalk121.default.bold(toDeploymentId);
182314
+ deploymentInfo = import_chalk122.default.bold(toDeploymentId);
182132
182315
  }
182133
182316
  const duration = performingRollback ? elapsed(Date.now() - requestedAt) : "";
182134
182317
  output_manager_default.log(
182135
- `Success! ${import_chalk121.default.bold(
182318
+ `Success! ${import_chalk122.default.bold(
182136
182319
  project.name
182137
182320
  )} was rolled back to ${deploymentInfo} ${duration}`
182138
182321
  );
182139
182322
  return 0;
182140
182323
  }
182141
- var import_chalk121, import_ms29;
182324
+ var import_chalk122, import_ms29;
182142
182325
  var init_status3 = __esm({
182143
182326
  "src/commands/rollback/status.ts"() {
182144
182327
  "use strict";
182145
- import_chalk121 = __toESM3(require_source());
182328
+ import_chalk122 = __toESM3(require_source());
182146
182329
  init_elapsed();
182147
182330
  init_format_date();
182148
182331
  init_get_deployment();
@@ -182174,7 +182357,7 @@ async function requestRollback({
182174
182357
  });
182175
182358
  if (timeout !== void 0 && (0, import_ms30.default)(timeout) === 0) {
182176
182359
  output_manager_default.log(
182177
- `Successfully requested rollback of ${import_chalk122.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
182360
+ `Successfully requested rollback of ${import_chalk123.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
182178
182361
  );
182179
182362
  output_manager_default.log(`To check rollback status, run ${getCommandName("rollback")}.`);
182180
182363
  return 0;
@@ -182187,11 +182370,11 @@ async function requestRollback({
182187
182370
  timeout
182188
182371
  });
182189
182372
  }
182190
- var import_chalk122, import_ms30;
182373
+ var import_chalk123, import_ms30;
182191
182374
  var init_request_rollback = __esm({
182192
182375
  "src/commands/rollback/request-rollback.ts"() {
182193
182376
  "use strict";
182194
- import_chalk122 = __toESM3(require_source());
182377
+ import_chalk123 = __toESM3(require_source());
182195
182378
  init_pkg_name();
182196
182379
  init_get_project_by_deployment();
182197
182380
  import_ms30 = __toESM3(require_ms());
@@ -182861,17 +183044,17 @@ function formatBranchMatcher(branchMatcher) {
182861
183044
  if (branchMatcher?.type === "equals") {
182862
183045
  return branchMatcher.pattern;
182863
183046
  } else if (branchMatcher?.type === "startsWith") {
182864
- return `${branchMatcher.pattern}${import_chalk123.default.dim("*")}`;
183047
+ return `${branchMatcher.pattern}${import_chalk124.default.dim("*")}`;
182865
183048
  } else if (branchMatcher?.type === "endsWith") {
182866
- return `${import_chalk123.default.dim("*")}${branchMatcher.pattern}`;
183049
+ return `${import_chalk124.default.dim("*")}${branchMatcher.pattern}`;
182867
183050
  }
182868
- return import_chalk123.default.dim("No branch configuration");
183051
+ return import_chalk124.default.dim("No branch configuration");
182869
183052
  }
182870
183053
  async function list7(client2, argv) {
182871
183054
  const { cwd } = client2;
182872
183055
  if (argv.length !== 0) {
182873
183056
  output_manager_default.error(
182874
- `Invalid number of arguments. Usage: ${import_chalk123.default.cyan(
183057
+ `Invalid number of arguments. Usage: ${import_chalk124.default.cyan(
182875
183058
  `${getCommandName("target ls")}`
182876
183059
  )}`
182877
183060
  );
@@ -182895,12 +183078,12 @@ async function list7(client2, argv) {
182895
183078
  const elapsed2 = (0, import_ms32.default)(Date.now() - start);
182896
183079
  result = withDefaultEnvironmentsIncluded(result);
182897
183080
  output_manager_default.log(
182898
- `${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${import_chalk123.default.gray(`[${elapsed2}]`)}`
183081
+ `${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${import_chalk124.default.gray(`[${elapsed2}]`)}`
182899
183082
  );
182900
183083
  const tablePrint = table(
182901
183084
  [
182902
183085
  ["Target Name", "Branch Tracking", "Type", "Updated"].map(
182903
- (header) => import_chalk123.default.bold(import_chalk123.default.cyan(header))
183086
+ (header) => import_chalk124.default.bold(import_chalk124.default.cyan(header))
182904
183087
  ),
182905
183088
  ...result.flatMap((target) => {
182906
183089
  return [
@@ -182908,7 +183091,7 @@ async function list7(client2, argv) {
182908
183091
  formatEnvironment(link4.org.slug, link4.project.name, target),
182909
183092
  BRANCH_TRACKING_MAP[target.type](link4.project, target),
182910
183093
  TYPE_MAP[target.type],
182911
- import_chalk123.default.gray(
183094
+ import_chalk124.default.gray(
182912
183095
  target.updatedAt > 0 ? (0, import_ms32.default)(Date.now() - target.updatedAt) : "-"
182913
183096
  )
182914
183097
  ]
@@ -182955,12 +183138,12 @@ function withDefaultEnvironmentsIncluded(environments) {
182955
183138
  ...environments.slice().sort((a, b) => a.slug.localeCompare(b.slug))
182956
183139
  ];
182957
183140
  }
182958
- var import_ms32, import_chalk123, TYPE_MAP, BRANCH_TRACKING_MAP;
183141
+ var import_ms32, import_chalk124, TYPE_MAP, BRANCH_TRACKING_MAP;
182959
183142
  var init_list11 = __esm({
182960
183143
  "src/commands/target/list.ts"() {
182961
183144
  "use strict";
182962
183145
  import_ms32 = __toESM3(require_ms());
182963
- import_chalk123 = __toESM3(require_source());
183146
+ import_chalk124 = __toESM3(require_source());
182964
183147
  init_table();
182965
183148
  init_output_manager();
182966
183149
  init_command32();
@@ -182975,8 +183158,8 @@ var init_list11 = __esm({
182975
183158
  };
182976
183159
  BRANCH_TRACKING_MAP = {
182977
183160
  production: (project) => project.link?.productionBranch ?? "main",
182978
- preview: (_, env) => env.slug === "preview" ? import_chalk123.default.dim("All unassigned git branches") : formatBranchMatcher(env.branchMatcher),
182979
- development: () => import_chalk123.default.dim("Accessible via CLI")
183161
+ preview: (_, env) => env.slug === "preview" ? import_chalk124.default.dim("All unassigned git branches") : formatBranchMatcher(env.branchMatcher),
183162
+ development: () => import_chalk124.default.dim("Accessible via CLI")
182980
183163
  };
182981
183164
  }
182982
183165
  });
@@ -183171,7 +183354,7 @@ async function list8(client2, argv) {
183171
183354
  client2.stdout.write("\n");
183172
183355
  const teamTable = table(
183173
183356
  [
183174
- ["id", "Team name"].map((str) => (0, import_chalk124.gray)(str)),
183357
+ ["id", "Team name"].map((str) => (0, import_chalk125.gray)(str)),
183175
183358
  ...teamList.map((team) => [team.value, team.name])
183176
183359
  ],
183177
183360
  { hsep: 5 }
@@ -183188,13 +183371,13 @@ async function list8(client2, argv) {
183188
183371
  }
183189
183372
  return 0;
183190
183373
  }
183191
- var import_chalk124;
183374
+ var import_chalk125;
183192
183375
  var init_list13 = __esm({
183193
183376
  "src/commands/teams/list.ts"() {
183194
183377
  "use strict";
183195
183378
  init_chars();
183196
183379
  init_table();
183197
- import_chalk124 = __toESM3(require_source());
183380
+ import_chalk125 = __toESM3(require_source());
183198
183381
  init_get_user();
183199
183382
  init_get_teams();
183200
183383
  init_pkg_name();
@@ -183289,7 +183472,7 @@ Please select a team scope using ${getCommandName(
183289
183472
  return 1;
183290
183473
  }
183291
183474
  output_manager_default.log(
183292
- introMsg || `Inviting team members to ${import_chalk125.default.bold(currentTeam.name)}`
183475
+ introMsg || `Inviting team members to ${import_chalk126.default.bold(currentTeam.name)}`
183293
183476
  );
183294
183477
  telemetry2.trackCliArgumentEmail(emails);
183295
183478
  if (emails.length > 0) {
@@ -183309,10 +183492,10 @@ Please select a team scope using ${getCommandName(
183309
183492
  throw err;
183310
183493
  }
183311
183494
  output_manager_default.log(
183312
- `${import_chalk125.default.cyan(chars_default.tick)} ${email3}${userInfo ? ` (${userInfo})` : ""} ${elapsed2()}`
183495
+ `${import_chalk126.default.cyan(chars_default.tick)} ${email3}${userInfo ? ` (${userInfo})` : ""} ${elapsed2()}`
183313
183496
  );
183314
183497
  } else {
183315
- output_manager_default.log(`${import_chalk125.default.red(`\u2716 ${email3}`)} ${import_chalk125.default.gray("[invalid]")}`);
183498
+ output_manager_default.log(`${import_chalk126.default.red(`\u2716 ${email3}`)} ${import_chalk126.default.gray("[invalid]")}`);
183316
183499
  }
183317
183500
  }
183318
183501
  return 0;
@@ -183345,15 +183528,15 @@ Please select a team scope using ${getCommandName(
183345
183528
  );
183346
183529
  email2 = `${email2}${username ? ` (${username})` : ""} ${elapsed2()}`;
183347
183530
  emails.push(email2);
183348
- output_manager_default.log(`${import_chalk125.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email2}`);
183531
+ output_manager_default.log(`${import_chalk126.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email2}`);
183349
183532
  if (hasError) {
183350
183533
  hasError = false;
183351
183534
  process.stderr.write(eraseLines(emails.length + 2));
183352
183535
  output_manager_default.log(
183353
- introMsg || `Inviting team members to ${import_chalk125.default.bold(currentTeam.name)}`
183536
+ introMsg || `Inviting team members to ${import_chalk126.default.bold(currentTeam.name)}`
183354
183537
  );
183355
183538
  for (const email3 of emails) {
183356
- output_manager_default.log(`${import_chalk125.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
183539
+ output_manager_default.log(`${import_chalk126.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
183357
183540
  }
183358
183541
  }
183359
183542
  } catch (err) {
@@ -183362,7 +183545,7 @@ Please select a team scope using ${getCommandName(
183362
183545
  output_manager_default.error((0, import_error_utils36.errorToString)(err));
183363
183546
  hasError = true;
183364
183547
  for (const email3 of emails) {
183365
- output_manager_default.log(`${import_chalk125.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email3}`);
183548
+ output_manager_default.log(`${import_chalk126.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email3}`);
183366
183549
  }
183367
183550
  }
183368
183551
  }
@@ -183375,16 +183558,16 @@ Please select a team scope using ${getCommandName(
183375
183558
  } else {
183376
183559
  output_manager_default.success(`Invited ${n} teammate${n > 1 ? "s" : ""}`);
183377
183560
  for (const email3 of emails) {
183378
- output_manager_default.log(`${import_chalk125.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
183561
+ output_manager_default.log(`${import_chalk126.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
183379
183562
  }
183380
183563
  }
183381
183564
  return 0;
183382
183565
  }
183383
- var import_chalk125, import_error_utils36, validateEmail2, domains;
183566
+ var import_chalk126, import_error_utils36, validateEmail2, domains;
183384
183567
  var init_invite2 = __esm({
183385
183568
  "src/commands/teams/invite.ts"() {
183386
183569
  "use strict";
183387
- import_chalk125 = __toESM3(require_source());
183570
+ import_chalk126 = __toESM3(require_source());
183388
183571
  init_cmd();
183389
183572
  init_stamp();
183390
183573
  init_param();
@@ -183460,7 +183643,7 @@ async function add7(client2) {
183460
183643
  let team;
183461
183644
  let elapsed2;
183462
183645
  output_manager_default.log(
183463
- `Pick a team identifier for its URL (e.g.: ${import_chalk126.default.cyan(
183646
+ `Pick a team identifier for its URL (e.g.: ${import_chalk127.default.cyan(
183464
183647
  "`vercel.com/acme`"
183465
183648
  )})`
183466
183649
  );
@@ -183491,7 +183674,7 @@ async function add7(client2) {
183491
183674
  output_manager_default.stopSpinner();
183492
183675
  process.stdout.write(eraseLines(2));
183493
183676
  output_manager_default.success(`Team created ${elapsed2()}`);
183494
- output_manager_default.log(`${import_chalk126.default.cyan(`${chars_default.tick} `) + teamUrlPrefix + slug}
183677
+ output_manager_default.log(`${import_chalk127.default.cyan(`${chars_default.tick} `) + teamUrlPrefix + slug}
183495
183678
  `);
183496
183679
  output_manager_default.log("Pick a display name for your team");
183497
183680
  let name;
@@ -183514,7 +183697,7 @@ async function add7(client2) {
183514
183697
  process.stdout.write(eraseLines(2));
183515
183698
  team = Object.assign(team, res);
183516
183699
  output_manager_default.success(`Team name saved ${elapsed2()}`);
183517
- output_manager_default.log(`${import_chalk126.default.cyan(`${chars_default.tick} `) + teamNamePrefix + team.name}
183700
+ output_manager_default.log(`${import_chalk127.default.cyan(`${chars_default.tick} `) + teamNamePrefix + team.name}
183518
183701
  `);
183519
183702
  output_manager_default.spinner("Saving");
183520
183703
  client2.config.currentTeam = team.id;
@@ -183528,11 +183711,11 @@ async function add7(client2) {
183528
183711
  });
183529
183712
  return 0;
183530
183713
  }
183531
- var import_chalk126, import_error_utils37, validateSlug, validateName, teamUrlPrefix, teamNamePrefix;
183714
+ var import_chalk127, import_error_utils37, validateSlug, validateName, teamUrlPrefix, teamNamePrefix;
183532
183715
  var init_add13 = __esm({
183533
183716
  "src/commands/teams/add.ts"() {
183534
183717
  "use strict";
183535
- import_chalk126 = __toESM3(require_source());
183718
+ import_chalk127 = __toESM3(require_source());
183536
183719
  init_stamp();
183537
183720
  init_erase_lines();
183538
183721
  init_chars();
@@ -183545,7 +183728,7 @@ var init_add13 = __esm({
183545
183728
  init_output_manager();
183546
183729
  validateSlug = (value) => /^[a-z]+[a-z0-9_-]*$/.test(value);
183547
183730
  validateName = (value) => /^[ a-zA-Z0-9_-]+$/.test(value);
183548
- teamUrlPrefix = "Team URL".padEnd(14) + import_chalk126.default.gray("vercel.com/");
183731
+ teamUrlPrefix = "Team URL".padEnd(14) + import_chalk127.default.gray("vercel.com/");
183549
183732
  teamNamePrefix = "Team Name".padEnd(14);
183550
183733
  }
183551
183734
  });
@@ -183604,7 +183787,7 @@ async function change(client2, argv) {
183604
183787
  let title9 = `${team.name} (${team.slug})`;
183605
183788
  const selected = team.id === currentTeam?.id;
183606
183789
  if (selected) {
183607
- title9 += ` ${import_chalk127.default.bold("(current)")}`;
183790
+ title9 += ` ${import_chalk128.default.bold("(current)")}`;
183608
183791
  }
183609
183792
  if (team.limited) {
183610
183793
  title9 += ` ${emoji("locked")}`;
@@ -183616,7 +183799,7 @@ async function change(client2, argv) {
183616
183799
  selected
183617
183800
  };
183618
183801
  });
183619
- let suffix = personalScopeSelected ? ` ${import_chalk127.default.bold("(current)")}` : "";
183802
+ let suffix = personalScopeSelected ? ` ${import_chalk128.default.bold("(current)")}` : "";
183620
183803
  if (user.limited) {
183621
183804
  suffix += ` ${emoji("locked")}`;
183622
183805
  }
@@ -183662,14 +183845,14 @@ async function change(client2, argv) {
183662
183845
  }
183663
183846
  updateCurrentTeam(config2);
183664
183847
  output_manager_default.success(
183665
- `Your account (${import_chalk127.default.bold(user.username)}) is now active!`
183848
+ `Your account (${import_chalk128.default.bold(user.username)}) is now active!`
183666
183849
  );
183667
183850
  return 0;
183668
183851
  }
183669
183852
  const newTeam = teams2.find((team) => team.slug === desiredSlug);
183670
183853
  if (!newTeam) {
183671
183854
  output_manager_default.error(
183672
- `You do not have permission to access scope ${import_chalk127.default.bold(desiredSlug)}.`
183855
+ `You do not have permission to access scope ${import_chalk128.default.bold(desiredSlug)}.`
183673
183856
  );
183674
183857
  return 1;
183675
183858
  }
@@ -183687,15 +183870,15 @@ async function change(client2, argv) {
183687
183870
  }
183688
183871
  updateCurrentTeam(config2, newTeam);
183689
183872
  output_manager_default.success(
183690
- `The team ${import_chalk127.default.bold(newTeam.name)} (${newTeam.slug}) is now active!`
183873
+ `The team ${import_chalk128.default.bold(newTeam.name)} (${newTeam.slug}) is now active!`
183691
183874
  );
183692
183875
  return 0;
183693
183876
  }
183694
- var import_chalk127, updateCurrentTeam;
183877
+ var import_chalk128, updateCurrentTeam;
183695
183878
  var init_switch2 = __esm({
183696
183879
  "src/commands/teams/switch.ts"() {
183697
183880
  "use strict";
183698
- import_chalk127 = __toESM3(require_source());
183881
+ import_chalk128 = __toESM3(require_source());
183699
183882
  init_emoji();
183700
183883
  init_get_user();
183701
183884
  init_get_teams();
@@ -183874,13 +184057,13 @@ var init_teams2 = __esm({
183874
184057
  // src/commands/telemetry/status.ts
183875
184058
  async function status2(client2) {
183876
184059
  const enabled = client2.config.telemetry?.enabled !== false;
183877
- const status3 = enabled ? import_chalk128.default.green("Enabled") : import_chalk128.default.red("Disabled");
184060
+ const status3 = enabled ? import_chalk129.default.green("Enabled") : import_chalk129.default.red("Disabled");
183878
184061
  output_manager_default.print("\n");
183879
- output_manager_default.log(`${import_chalk128.default.bold("Telemetry status")}: ${status3}
184062
+ output_manager_default.log(`${import_chalk129.default.bold("Telemetry status")}: ${status3}
183880
184063
  `);
183881
184064
  const learnMoreMessage = `
183882
184065
 
183883
- Learn more: ${import_chalk128.default.cyan("https://vercel.com/docs/cli/about-telemetry")}`;
184066
+ Learn more: ${import_chalk129.default.cyan("https://vercel.com/docs/cli/about-telemetry")}`;
183884
184067
  if (enabled) {
183885
184068
  output_manager_default.log(`You have opted in to Vercel CLI telemetry${learnMoreMessage}`);
183886
184069
  } else {
@@ -183891,11 +184074,11 @@ Learn more: ${import_chalk128.default.cyan("https://vercel.com/docs/cli/about-te
183891
184074
  }
183892
184075
  return 0;
183893
184076
  }
183894
- var import_chalk128;
184077
+ var import_chalk129;
183895
184078
  var init_status4 = __esm({
183896
184079
  "src/commands/telemetry/status.ts"() {
183897
184080
  "use strict";
183898
- import_chalk128 = __toESM3(require_source());
184081
+ import_chalk129 = __toESM3(require_source());
183899
184082
  init_output_manager();
183900
184083
  }
183901
184084
  });
@@ -184076,7 +184259,7 @@ async function telemetry(client2) {
184076
184259
  default: {
184077
184260
  const errorMessage = parsedArguments.args.length !== 2 ? "Invalid number of arguments" : "Invalid subcommand";
184078
184261
  output_manager_default.print(
184079
- `${import_chalk129.default.red("Error")}: ${errorMessage}. See help instructions for usage:
184262
+ `${import_chalk130.default.red("Error")}: ${errorMessage}. See help instructions for usage:
184080
184263
  `
184081
184264
  );
184082
184265
  output_manager_default.print(help2(telemetryCommand, { columns: client2.stderr.columns }));
@@ -184084,7 +184267,7 @@ async function telemetry(client2) {
184084
184267
  }
184085
184268
  }
184086
184269
  }
184087
- var import_chalk129, COMMAND_CONFIG20;
184270
+ var import_chalk130, COMMAND_CONFIG20;
184088
184271
  var init_telemetry3 = __esm({
184089
184272
  "src/commands/telemetry/index.ts"() {
184090
184273
  "use strict";
@@ -184099,7 +184282,7 @@ var init_telemetry3 = __esm({
184099
184282
  init_command34();
184100
184283
  init_get_flags_specification();
184101
184284
  init_telemetry2();
184102
- import_chalk129 = __toESM3(require_source());
184285
+ import_chalk130 = __toESM3(require_source());
184103
184286
  init_output_manager();
184104
184287
  init_commands();
184105
184288
  COMMAND_CONFIG20 = {
@@ -184174,7 +184357,7 @@ var import_error_utils38 = __toESM3(require_dist2());
184174
184357
  var import_path40 = require("path");
184175
184358
  var import_fs8 = require("fs");
184176
184359
  var import_fs_extra24 = __toESM3(require_lib());
184177
- var import_chalk130 = __toESM3(require_source());
184360
+ var import_chalk131 = __toESM3(require_source());
184178
184361
  var import_epipebomb = __toESM3(require_epipebomb());
184179
184362
 
184180
184363
  // src/util/get-latest-version/index.ts
@@ -185025,7 +185208,7 @@ function checkGuidanceStatus({ config: config2 }) {
185025
185208
  }
185026
185209
 
185027
185210
  // src/index.ts
185028
- var import_detect_agent = require("@vercel/detect-agent");
185211
+ var import_detect_agent4 = require("@vercel/detect-agent");
185029
185212
  try {
185030
185213
  process.cwd();
185031
185214
  } catch (err) {
@@ -185113,13 +185296,13 @@ var main17 = async () => {
185113
185296
  const betaCommands = [];
185114
185297
  if (betaCommands.includes(targetOrSubcommand)) {
185115
185298
  output_manager_default.print(
185116
- `${import_chalk130.default.grey(
185299
+ `${import_chalk131.default.grey(
185117
185300
  `${getTitleName()} CLI ${pkg_default.version} ${targetOrSubcommand} (beta) \u2014 https://vercel.com/feedback`
185118
185301
  )}
185119
185302
  `
185120
185303
  );
185121
185304
  } else {
185122
- output_manager_default.print(`${import_chalk130.default.grey(`${getTitleName()} CLI ${pkg_default.version}`)}
185305
+ output_manager_default.print(`${import_chalk131.default.grey(`${getTitleName()} CLI ${pkg_default.version}`)}
185123
185306
  `);
185124
185307
  }
185125
185308
  if (!targetOrSubcommand && parsedArgs.flags["--version"]) {
@@ -185209,7 +185392,7 @@ var main17 = async () => {
185209
185392
  store: telemetryEventStore
185210
185393
  }
185211
185394
  });
185212
- const agent = await (0, import_detect_agent.determineAgent)();
185395
+ const agent = await (0, import_detect_agent4.determineAgent)();
185213
185396
  telemetry2.trackAgenticUse(agent);
185214
185397
  telemetry2.trackCPUs();
185215
185398
  telemetry2.trackPlatform();
@@ -185695,20 +185878,20 @@ main17().then(async (exitCode2) => {
185695
185878
  });
185696
185879
  if (latest) {
185697
185880
  const changelog = "https://github.com/vercel/vercel/releases";
185698
- const errorMsg = exitCode2 && exitCode2 !== 2 ? import_chalk130.default.magenta(
185881
+ const errorMsg = exitCode2 && exitCode2 !== 2 ? import_chalk131.default.magenta(
185699
185882
  `
185700
185883
 
185701
- The latest update ${import_chalk130.default.italic(
185884
+ The latest update ${import_chalk131.default.italic(
185702
185885
  "may"
185703
185886
  )} fix any errors that occurred.`
185704
185887
  ) : "";
185705
185888
  output_manager_default.print(
185706
185889
  box(
185707
- `Update available! ${import_chalk130.default.gray(`v${pkg_default.version}`)} \u226B ${import_chalk130.default.green(
185890
+ `Update available! ${import_chalk131.default.gray(`v${pkg_default.version}`)} \u226B ${import_chalk131.default.green(
185708
185891
  `v${latest}`
185709
185892
  )}
185710
185893
  Changelog: ${output_manager_default.link(changelog, changelog, { fallback: false })}
185711
- Run ${import_chalk130.default.cyan(cmd(await getUpdateCommand()))} to update.${errorMsg}`
185894
+ Run ${import_chalk131.default.cyan(cmd(await getUpdateCommand()))} to update.${errorMsg}`
185712
185895
  )
185713
185896
  );
185714
185897
  output_manager_default.print("\n\n");