vercel 44.2.5 → 44.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1001 -717
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -4071,14 +4071,14 @@ var require_templates = __commonJS2({
4071
4071
  }
4072
4072
  return results;
4073
4073
  }
4074
- function buildStyle(chalk124, styles) {
4074
+ function buildStyle(chalk125, 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 = chalk124;
4081
+ let current = chalk125;
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 = (chalk124, temporary) => {
4093
+ module2.exports = (chalk125, 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(chalk124, styles)(string));
4103
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk125, 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(chalk124, styles)(chunk.join("")));
4109
+ chunks.push(buildStyle(chalk125, 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 chalk125 = {};
4158
- applyOptions(chalk125, options);
4159
- chalk125.template = (...arguments_) => chalkTag(chalk125.template, ...arguments_);
4160
- Object.setPrototypeOf(chalk125, Chalk.prototype);
4161
- Object.setPrototypeOf(chalk125.template, chalk125);
4162
- chalk125.template.constructor = () => {
4157
+ const chalk126 = {};
4158
+ applyOptions(chalk126, options);
4159
+ chalk126.template = (...arguments_) => chalkTag(chalk126.template, ...arguments_);
4160
+ Object.setPrototypeOf(chalk126, Chalk.prototype);
4161
+ Object.setPrototypeOf(chalk126.template, chalk126);
4162
+ chalk126.template.constructor = () => {
4163
4163
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
4164
4164
  };
4165
- chalk125.template.Instance = ChalkClass;
4166
- return chalk125.template;
4165
+ chalk126.template.Instance = ChalkClass;
4166
+ return chalk126.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 = (chalk125, ...strings) => {
4277
+ var chalkTag = (chalk126, ...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(chalk125, parts.join(""));
4293
+ return template(chalk126, parts.join(""));
4294
4294
  };
4295
4295
  Object.defineProperties(Chalk.prototype, styles);
4296
- var chalk124 = Chalk();
4297
- chalk124.supportsColor = stdoutColor;
4298
- chalk124.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
4299
- chalk124.stderr.supportsColor = stderrColor;
4300
- module2.exports = chalk124;
4296
+ var chalk125 = Chalk();
4297
+ chalk125.supportsColor = stdoutColor;
4298
+ chalk125.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
4299
+ chalk125.stderr.supportsColor = stderrColor;
4300
+ module2.exports = chalk125;
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(chalk124, styles) {
7211
+ function buildStyle(chalk125, 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 = chalk124;
7218
+ let current = chalk125;
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 = (chalk124, tmp) => {
7233
+ module2.exports = (chalk125, 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(chalk124, styles)(str));
7243
+ chunks.push(styles.length === 0 ? str : buildStyle(chalk125, 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(chalk124, styles)(chunk.join("")));
7249
+ chunks.push(buildStyle(chalk125, 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 chalk124 = {};
7287
- applyOptions(chalk124, options);
7288
- chalk124.template = function() {
7286
+ const chalk125 = {};
7287
+ applyOptions(chalk125, options);
7288
+ chalk125.template = function() {
7289
7289
  const args2 = [].slice.call(arguments);
7290
- return chalkTag.apply(null, [chalk124.template].concat(args2));
7290
+ return chalkTag.apply(null, [chalk125.template].concat(args2));
7291
7291
  };
7292
- Object.setPrototypeOf(chalk124, Chalk.prototype);
7293
- Object.setPrototypeOf(chalk124.template, chalk124);
7294
- chalk124.template.constructor = Chalk;
7295
- return chalk124.template;
7292
+ Object.setPrototypeOf(chalk125, Chalk.prototype);
7293
+ Object.setPrototypeOf(chalk125.template, chalk125);
7294
+ chalk125.template.constructor = Chalk;
7295
+ return chalk125.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(chalk124, strings) {
7414
+ function chalkTag(chalk125, 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(chalk124, parts.join(""));
7424
+ return template(chalk125, 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 chalk124 = require_chalk();
9375
+ var chalk125 = require_chalk();
9376
9376
  var isSupported = process.platform !== "win32" || process.env.CI || process.env.TERM === "xterm-256color";
9377
9377
  var main17 = {
9378
- info: chalk124.blue("\u2139"),
9379
- success: chalk124.green("\u2714"),
9380
- warning: chalk124.yellow("\u26A0"),
9381
- error: chalk124.red("\u2716")
9378
+ info: chalk125.blue("\u2139"),
9379
+ success: chalk125.green("\u2714"),
9380
+ warning: chalk125.yellow("\u26A0"),
9381
+ error: chalk125.red("\u2716")
9382
9382
  };
9383
9383
  var fallbacks = {
9384
- info: chalk124.blue("i"),
9385
- success: chalk124.green("\u221A"),
9386
- warning: chalk124.yellow("\u203C"),
9387
- error: chalk124.red("\xD7")
9384
+ info: chalk125.blue("i"),
9385
+ success: chalk125.green("\u221A"),
9386
+ warning: chalk125.yellow("\u203C"),
9387
+ error: chalk125.red("\xD7")
9388
9388
  };
9389
9389
  module2.exports = isSupported ? main17 : 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 chalk124 = require_chalk();
9783
+ var chalk125 = 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 = chalk124[this.color](frame);
9872
+ frame = chalk125[this.color](frame);
9873
9873
  }
9874
9874
  this.frameIndex = ++this.frameIndex % frames.length;
9875
9875
  const fullPrefixText = typeof this.prefixText === "string" ? this.prefixText + " " : "";
@@ -14258,10 +14258,10 @@ var require_session = __commonJS2({
14258
14258
  session.status = context.status;
14259
14259
  }
14260
14260
  }
14261
- function closeSession(session, status2) {
14261
+ function closeSession(session, status3) {
14262
14262
  let context = {};
14263
- if (status2) {
14264
- context = { status: status2 };
14263
+ if (status3) {
14264
+ context = { status: status3 };
14265
14265
  } else if (session.status === "ok") {
14266
14266
  context = { status: "exited" };
14267
14267
  }
@@ -14302,13 +14302,13 @@ var require_spanUtils = __commonJS2({
14302
14302
  var TRACE_FLAG_SAMPLED = 1;
14303
14303
  function spanToTraceContext(span) {
14304
14304
  const { spanId: span_id, traceId: trace_id } = span.spanContext();
14305
- const { data, op, parent_span_id, status: status2, tags, origin } = spanToJSON(span);
14305
+ const { data, op, parent_span_id, status: status3, tags, origin } = spanToJSON(span);
14306
14306
  return utils.dropUndefinedKeys({
14307
14307
  data,
14308
14308
  op,
14309
14309
  parent_span_id,
14310
14310
  span_id,
14311
- status: status2,
14311
+ status: status3,
14312
14312
  tags,
14313
14313
  trace_id,
14314
14314
  origin
@@ -14698,8 +14698,8 @@ var require_exports = __commonJS2({
14698
14698
  function withMonitor(monitorSlug, callback, upsertMonitorConfig) {
14699
14699
  const checkInId = captureCheckIn({ monitorSlug, status: "in_progress" }, upsertMonitorConfig);
14700
14700
  const now = utils.timestampInSeconds();
14701
- function finishCheckIn(status2) {
14702
- captureCheckIn({ monitorSlug, status: status2, checkInId, duration: utils.timestampInSeconds() - now });
14701
+ function finishCheckIn(status3) {
14702
+ captureCheckIn({ monitorSlug, status: status3, checkInId, duration: utils.timestampInSeconds() - now });
14703
14703
  }
14704
14704
  let maybePromiseResult;
14705
14705
  try {
@@ -16211,9 +16211,9 @@ var require_errors = __commonJS2({
16211
16211
  function errorCallback() {
16212
16212
  const activeTransaction = utils$1.getActiveTransaction();
16213
16213
  if (activeTransaction) {
16214
- const status2 = "internal_error";
16215
- debugBuild.DEBUG_BUILD && utils.logger.log(`[Tracing] Transaction: ${status2} -> Global error occured`);
16216
- activeTransaction.setStatus(status2);
16214
+ const status3 = "internal_error";
16215
+ debugBuild.DEBUG_BUILD && utils.logger.log(`[Tracing] Transaction: ${status3} -> Global error occured`);
16216
+ activeTransaction.setStatus(status3);
16217
16217
  }
16218
16218
  }
16219
16219
  errorCallback.tag = "sentry_tracingErrorCallback";
@@ -16426,8 +16426,8 @@ var require_trace = __commonJS2({
16426
16426
  () => callback(activeSpan),
16427
16427
  () => {
16428
16428
  if (activeSpan) {
16429
- const { status: status2 } = spanUtils.spanToJSON(activeSpan);
16430
- if (!status2 || status2 === "ok") {
16429
+ const { status: status3 } = spanUtils.spanToJSON(activeSpan);
16430
+ if (!status3 || status3 === "ok") {
16431
16431
  activeSpan.setStatus("internal_error");
16432
16432
  }
16433
16433
  }
@@ -16458,8 +16458,8 @@ var require_trace = __commonJS2({
16458
16458
  () => callback(activeSpan, finishAndSetSpan),
16459
16459
  () => {
16460
16460
  if (activeSpan && activeSpan.isRecording()) {
16461
- const { status: status2 } = spanUtils.spanToJSON(activeSpan);
16462
- if (!status2 || status2 === "ok") {
16461
+ const { status: status3 } = spanUtils.spanToJSON(activeSpan);
16462
+ if (!status3 || status3 === "ok") {
16463
16463
  activeSpan.setStatus("internal_error");
16464
16464
  }
16465
16465
  }
@@ -16930,8 +16930,8 @@ var require_span = __commonJS2({
16930
16930
  *
16931
16931
  * @deprecated Use `.setStatus()` instead to set or update the status.
16932
16932
  */
16933
- set status(status2) {
16934
- this._status = status2;
16933
+ set status(status3) {
16934
+ this._status = status3;
16935
16935
  }
16936
16936
  /**
16937
16937
  * Operation of the span
@@ -18102,14 +18102,14 @@ var require_sessionflusher = __commonJS2({
18102
18102
  * Increments status bucket in pendingAggregates buffer (internal state) corresponding to status of
18103
18103
  * the session received
18104
18104
  */
18105
- _incrementSessionStatusCount(status2, date) {
18105
+ _incrementSessionStatusCount(status3, date) {
18106
18106
  const sessionStartedTrunc = new Date(date).setSeconds(0, 0);
18107
18107
  this._pendingAggregates[sessionStartedTrunc] = this._pendingAggregates[sessionStartedTrunc] || {};
18108
18108
  const aggregationCounts = this._pendingAggregates[sessionStartedTrunc];
18109
18109
  if (!aggregationCounts.started) {
18110
18110
  aggregationCounts.started = new Date(sessionStartedTrunc).toISOString();
18111
18111
  }
18112
- switch (status2) {
18112
+ switch (status3) {
18113
18113
  case "errored":
18114
18114
  aggregationCounts.errored = (aggregationCounts.errored || 0) + 1;
18115
18115
  return aggregationCounts.errored;
@@ -21906,9 +21906,9 @@ var require_backgroundtab = __commonJS2({
21906
21906
  const activeTransaction = core.getActiveTransaction();
21907
21907
  if (types.WINDOW.document.hidden && activeTransaction) {
21908
21908
  const statusType = "cancelled";
21909
- const { op, status: status2 } = core.spanToJSON(activeTransaction);
21909
+ const { op, status: status3 } = core.spanToJSON(activeTransaction);
21910
21910
  debugBuild.DEBUG_BUILD && utils.logger.log(`[Tracing] Transaction: ${statusType} -> since tab moved to the background, op: ${op}`);
21911
- if (!status2) {
21911
+ if (!status3) {
21912
21912
  activeTransaction.setStatus(statusType);
21913
21913
  }
21914
21914
  activeTransaction.setTag("visibilitychange", "document.hidden");
@@ -25670,7 +25670,7 @@ var require_http3 = __commonJS2({
25670
25670
  var require_common = __commonJS2({
25671
25671
  "../../node_modules/.pnpm/@sentry+node@7.120.1/node_modules/@sentry/node/cjs/integrations/local-variables/common.js"(exports2) {
25672
25672
  Object.defineProperty(exports2, "__esModule", { value: true });
25673
- function createRateLimiter(maxPerSecond, enable2, disable2) {
25673
+ function createRateLimiter(maxPerSecond, enable3, disable3) {
25674
25674
  let count = 0;
25675
25675
  let retrySeconds = 5;
25676
25676
  let disabledTimeout = 0;
@@ -25678,7 +25678,7 @@ var require_common = __commonJS2({
25678
25678
  if (disabledTimeout === 0) {
25679
25679
  if (count > maxPerSecond) {
25680
25680
  retrySeconds *= 2;
25681
- disable2(retrySeconds);
25681
+ disable3(retrySeconds);
25682
25682
  if (retrySeconds > 86400) {
25683
25683
  retrySeconds = 86400;
25684
25684
  }
@@ -25687,7 +25687,7 @@ var require_common = __commonJS2({
25687
25687
  } else {
25688
25688
  disabledTimeout -= 1;
25689
25689
  if (disabledTimeout === 0) {
25690
- enable2();
25690
+ enable3();
25691
25691
  }
25692
25692
  }
25693
25693
  count = 0;
@@ -27242,8 +27242,8 @@ var require_handlers2 = __commonJS2({
27242
27242
  return statusCode ? parseInt(statusCode, 10) : 500;
27243
27243
  }
27244
27244
  function defaultShouldHandleError(error3) {
27245
- const status2 = getStatusCodeFromResponse(error3);
27246
- return status2 >= 500;
27245
+ const status3 = getStatusCodeFromResponse(error3);
27246
+ return status3 >= 500;
27247
27247
  }
27248
27248
  function errorHandler(options) {
27249
27249
  return function sentryErrorMiddleware(error3, _req, res, next) {
@@ -30442,12 +30442,12 @@ var require_httpclient = __commonJS2({
30442
30442
  return givenRequestTarget.test(target);
30443
30443
  });
30444
30444
  }
30445
- function _isInGivenStatusRanges(failedRequestStatusCodes, status2) {
30445
+ function _isInGivenStatusRanges(failedRequestStatusCodes, status3) {
30446
30446
  return failedRequestStatusCodes.some((range) => {
30447
30447
  if (typeof range === "number") {
30448
- return range === status2;
30448
+ return range === status3;
30449
30449
  }
30450
- return status2 >= range[0] && status2 <= range[1];
30450
+ return status3 >= range[0] && status3 <= range[1];
30451
30451
  });
30452
30452
  }
30453
30453
  function _wrapFetch(client2, options) {
@@ -30487,8 +30487,8 @@ var require_httpclient = __commonJS2({
30487
30487
  }
30488
30488
  });
30489
30489
  }
30490
- function _shouldCaptureResponse(options, status2, url3) {
30491
- return _isInGivenStatusRanges(options.failedRequestStatusCodes, status2) && _isInGivenRequestTargets(options.failedRequestTargets, url3) && !core.isSentryRequestUrl(url3, core.getClient());
30490
+ function _shouldCaptureResponse(options, status3, url3) {
30491
+ return _isInGivenStatusRanges(options.failedRequestStatusCodes, status3) && _isInGivenRequestTargets(options.failedRequestTargets, url3) && !core.isSentryRequestUrl(url3, core.getClient());
30492
30492
  }
30493
30493
  function _createEvent(data) {
30494
30494
  const message2 = `HTTP Client Error with status code: ${data.status}`;
@@ -32629,9 +32629,50 @@ var init_command11 = __esm({
32629
32629
  }
32630
32630
  });
32631
32631
 
32632
+ // src/commands/guidance/command.ts
32633
+ var statusSubcommand, enableSubcommand, disableSubcommand, guidanceCommand;
32634
+ var init_command12 = __esm({
32635
+ "src/commands/guidance/command.ts"() {
32636
+ "use strict";
32637
+ statusSubcommand = {
32638
+ name: "status",
32639
+ aliases: [],
32640
+ description: "Shows whether guidance messages are enabled or disabled",
32641
+ arguments: [],
32642
+ options: [],
32643
+ examples: []
32644
+ };
32645
+ enableSubcommand = {
32646
+ name: "enable",
32647
+ aliases: [],
32648
+ description: "Enables guidance messages",
32649
+ arguments: [],
32650
+ options: [],
32651
+ examples: []
32652
+ };
32653
+ disableSubcommand = {
32654
+ name: "disable",
32655
+ aliases: [],
32656
+ description: "Disables guidance messages",
32657
+ arguments: [],
32658
+ options: [],
32659
+ examples: []
32660
+ };
32661
+ guidanceCommand = {
32662
+ name: "guidance",
32663
+ aliases: [],
32664
+ description: "Allows you to enable or disable guidance messages",
32665
+ arguments: [],
32666
+ subcommands: [enableSubcommand, disableSubcommand, statusSubcommand],
32667
+ options: [],
32668
+ examples: []
32669
+ };
32670
+ }
32671
+ });
32672
+
32632
32673
  // src/commands/init/command.ts
32633
32674
  var initCommand;
32634
- var init_command12 = __esm({
32675
+ var init_command13 = __esm({
32635
32676
  "src/commands/init/command.ts"() {
32636
32677
  "use strict";
32637
32678
  init_pkg_name();
@@ -32681,7 +32722,7 @@ var init_command12 = __esm({
32681
32722
 
32682
32723
  // src/commands/inspect/command.ts
32683
32724
  var inspectCommand;
32684
- var init_command13 = __esm({
32725
+ var init_command14 = __esm({
32685
32726
  "src/commands/inspect/command.ts"() {
32686
32727
  "use strict";
32687
32728
  init_pkg_name();
@@ -32747,7 +32788,7 @@ var init_command13 = __esm({
32747
32788
 
32748
32789
  // src/commands/install/command.ts
32749
32790
  var installCommand;
32750
- var init_command14 = __esm({
32791
+ var init_command15 = __esm({
32751
32792
  "src/commands/install/command.ts"() {
32752
32793
  "use strict";
32753
32794
  init_pkg_name();
@@ -32774,7 +32815,7 @@ var init_command14 = __esm({
32774
32815
 
32775
32816
  // src/commands/integration-resource/command.ts
32776
32817
  var removeSubcommand6, disconnectSubcommand2, createThresholdSubcommand, integrationResourceCommand;
32777
- var init_command15 = __esm({
32818
+ var init_command16 = __esm({
32778
32819
  "src/commands/integration-resource/command.ts"() {
32779
32820
  "use strict";
32780
32821
  init_arg_common();
@@ -32925,7 +32966,7 @@ var init_command15 = __esm({
32925
32966
 
32926
32967
  // src/commands/integration/command.ts
32927
32968
  var addSubcommand5, openSubcommand, listSubcommand6, balanceSubcommand, removeSubcommand7, integrationCommand;
32928
- var init_command16 = __esm({
32969
+ var init_command17 = __esm({
32929
32970
  "src/commands/integration/command.ts"() {
32930
32971
  "use strict";
32931
32972
  init_arg_common();
@@ -33087,7 +33128,7 @@ var init_command16 = __esm({
33087
33128
 
33088
33129
  // src/commands/link/command.ts
33089
33130
  var linkCommand;
33090
- var init_command17 = __esm({
33131
+ var init_command18 = __esm({
33091
33132
  "src/commands/link/command.ts"() {
33092
33133
  "use strict";
33093
33134
  init_pkg_name();
@@ -33143,7 +33184,7 @@ var init_command17 = __esm({
33143
33184
 
33144
33185
  // src/commands/list/command.ts
33145
33186
  var listCommand;
33146
- var init_command18 = __esm({
33187
+ var init_command19 = __esm({
33147
33188
  "src/commands/list/command.ts"() {
33148
33189
  "use strict";
33149
33190
  init_pkg_name();
@@ -33213,7 +33254,7 @@ var init_command18 = __esm({
33213
33254
 
33214
33255
  // src/commands/login/command.ts
33215
33256
  var loginCommand;
33216
- var init_command19 = __esm({
33257
+ var init_command20 = __esm({
33217
33258
  "src/commands/login/command.ts"() {
33218
33259
  "use strict";
33219
33260
  init_pkg_name();
@@ -33276,7 +33317,7 @@ var init_command19 = __esm({
33276
33317
 
33277
33318
  // src/commands/logout/command.ts
33278
33319
  var logoutCommand;
33279
- var init_command20 = __esm({
33320
+ var init_command21 = __esm({
33280
33321
  "src/commands/logout/command.ts"() {
33281
33322
  "use strict";
33282
33323
  init_pkg_name();
@@ -33306,7 +33347,7 @@ var init_command20 = __esm({
33306
33347
 
33307
33348
  // src/commands/logs/command.ts
33308
33349
  var CommandTimeout, logsCommand;
33309
- var init_command21 = __esm({
33350
+ var init_command22 = __esm({
33310
33351
  "src/commands/logs/command.ts"() {
33311
33352
  "use strict";
33312
33353
  init_pkg_name();
@@ -33380,7 +33421,7 @@ var init_command21 = __esm({
33380
33421
 
33381
33422
  // src/commands/microfrontends/command.ts
33382
33423
  var pullSubcommand2, microfrontendsCommand;
33383
- var init_command22 = __esm({
33424
+ var init_command23 = __esm({
33384
33425
  "src/commands/microfrontends/command.ts"() {
33385
33426
  "use strict";
33386
33427
  init_pkg_name();
@@ -33423,7 +33464,7 @@ var init_command22 = __esm({
33423
33464
 
33424
33465
  // src/commands/project/command.ts
33425
33466
  var addSubcommand6, inspectSubcommand2, listSubcommand7, removeSubcommand8, projectCommand;
33426
- var init_command23 = __esm({
33467
+ var init_command24 = __esm({
33427
33468
  "src/commands/project/command.ts"() {
33428
33469
  "use strict";
33429
33470
  init_pkg_name();
@@ -33522,13 +33563,13 @@ var init_command23 = __esm({
33522
33563
  });
33523
33564
 
33524
33565
  // src/commands/promote/command.ts
33525
- var statusSubcommand, promoteCommand;
33526
- var init_command24 = __esm({
33566
+ var statusSubcommand2, promoteCommand;
33567
+ var init_command25 = __esm({
33527
33568
  "src/commands/promote/command.ts"() {
33528
33569
  "use strict";
33529
33570
  init_pkg_name();
33530
33571
  init_arg_common();
33531
- statusSubcommand = {
33572
+ statusSubcommand2 = {
33532
33573
  name: "status",
33533
33574
  aliases: [],
33534
33575
  description: "Show the status of any current pending promotions",
@@ -33565,7 +33606,7 @@ var init_command24 = __esm({
33565
33606
  required: true
33566
33607
  }
33567
33608
  ],
33568
- subcommands: [statusSubcommand],
33609
+ subcommands: [statusSubcommand2],
33569
33610
  options: [
33570
33611
  {
33571
33612
  name: "timeout",
@@ -33592,7 +33633,7 @@ var init_command24 = __esm({
33592
33633
 
33593
33634
  // src/commands/pull/command.ts
33594
33635
  var pullCommand;
33595
- var init_command25 = __esm({
33636
+ var init_command26 = __esm({
33596
33637
  "src/commands/pull/command.ts"() {
33597
33638
  "use strict";
33598
33639
  init_pkg_name();
@@ -33664,7 +33705,7 @@ var init_command25 = __esm({
33664
33705
 
33665
33706
  // src/commands/redeploy/command.ts
33666
33707
  var redeployCommand;
33667
- var init_command26 = __esm({
33708
+ var init_command27 = __esm({
33668
33709
  "src/commands/redeploy/command.ts"() {
33669
33710
  "use strict";
33670
33711
  init_pkg_name();
@@ -33715,7 +33756,7 @@ var init_command26 = __esm({
33715
33756
 
33716
33757
  // src/commands/remove/command.ts
33717
33758
  var removeCommand;
33718
- var init_command27 = __esm({
33759
+ var init_command28 = __esm({
33719
33760
  "src/commands/remove/command.ts"() {
33720
33761
  "use strict";
33721
33762
  init_pkg_name();
@@ -33764,13 +33805,13 @@ var init_command27 = __esm({
33764
33805
  });
33765
33806
 
33766
33807
  // src/commands/rollback/command.ts
33767
- var statusSubcommand2, rollbackCommand;
33768
- var init_command28 = __esm({
33808
+ var statusSubcommand3, rollbackCommand;
33809
+ var init_command29 = __esm({
33769
33810
  "src/commands/rollback/command.ts"() {
33770
33811
  "use strict";
33771
33812
  init_pkg_name();
33772
33813
  init_arg_common();
33773
- statusSubcommand2 = {
33814
+ statusSubcommand3 = {
33774
33815
  name: "status",
33775
33816
  aliases: [],
33776
33817
  description: "Show the status of any current pending rollbacks",
@@ -33802,7 +33843,7 @@ var init_command28 = __esm({
33802
33843
  required: true
33803
33844
  }
33804
33845
  ],
33805
- subcommands: [statusSubcommand2],
33846
+ subcommands: [statusSubcommand3],
33806
33847
  options: [
33807
33848
  {
33808
33849
  name: "timeout",
@@ -33826,7 +33867,7 @@ var init_command28 = __esm({
33826
33867
 
33827
33868
  // src/commands/rolling-release/command.ts
33828
33869
  var configureSubcommand, startSubcommand, approveSubcommand, abortSubcommand, completeSubcommand, fetchSubcommand, rollingReleaseCommand;
33829
- var init_command29 = __esm({
33870
+ var init_command30 = __esm({
33830
33871
  "src/commands/rolling-release/command.ts"() {
33831
33872
  "use strict";
33832
33873
  init_arg_common();
@@ -34020,7 +34061,7 @@ var init_command29 = __esm({
34020
34061
 
34021
34062
  // src/commands/target/command.ts
34022
34063
  var listSubcommand8, targetCommand;
34023
- var init_command30 = __esm({
34064
+ var init_command31 = __esm({
34024
34065
  "src/commands/target/command.ts"() {
34025
34066
  "use strict";
34026
34067
  init_pkg_name();
@@ -34051,7 +34092,7 @@ var init_command30 = __esm({
34051
34092
 
34052
34093
  // src/commands/teams/command.ts
34053
34094
  var addSubcommand7, listSubcommand9, switchSubcommand, inviteSubcommand, teamsCommand;
34054
- var init_command31 = __esm({
34095
+ var init_command32 = __esm({
34055
34096
  "src/commands/teams/command.ts"() {
34056
34097
  "use strict";
34057
34098
  init_pkg_name();
@@ -34141,11 +34182,11 @@ var init_command31 = __esm({
34141
34182
  });
34142
34183
 
34143
34184
  // src/commands/telemetry/command.ts
34144
- var statusSubcommand3, enableSubcommand, flushSubcommand, disableSubcommand, telemetryCommand;
34145
- var init_command32 = __esm({
34185
+ var statusSubcommand4, enableSubcommand2, flushSubcommand, disableSubcommand2, telemetryCommand;
34186
+ var init_command33 = __esm({
34146
34187
  "src/commands/telemetry/command.ts"() {
34147
34188
  "use strict";
34148
- statusSubcommand3 = {
34189
+ statusSubcommand4 = {
34149
34190
  name: "status",
34150
34191
  aliases: [],
34151
34192
  description: "Shows whether telemetry collection is enabled or disabled",
@@ -34153,7 +34194,7 @@ var init_command32 = __esm({
34153
34194
  options: [],
34154
34195
  examples: []
34155
34196
  };
34156
- enableSubcommand = {
34197
+ enableSubcommand2 = {
34157
34198
  name: "enable",
34158
34199
  aliases: [],
34159
34200
  description: "Enables telemetry collection",
@@ -34170,7 +34211,7 @@ var init_command32 = __esm({
34170
34211
  options: [],
34171
34212
  examples: []
34172
34213
  };
34173
- disableSubcommand = {
34214
+ disableSubcommand2 = {
34174
34215
  name: "disable",
34175
34216
  aliases: [],
34176
34217
  description: "Disables telemetry collection",
@@ -34184,9 +34225,9 @@ var init_command32 = __esm({
34184
34225
  description: "Allows you to enable or disable telemetry collection",
34185
34226
  arguments: [],
34186
34227
  subcommands: [
34187
- enableSubcommand,
34188
- disableSubcommand,
34189
- statusSubcommand3,
34228
+ enableSubcommand2,
34229
+ disableSubcommand2,
34230
+ statusSubcommand4,
34190
34231
  flushSubcommand
34191
34232
  ],
34192
34233
  options: [],
@@ -34197,7 +34238,7 @@ var init_command32 = __esm({
34197
34238
 
34198
34239
  // src/commands/whoami/command.ts
34199
34240
  var whoamiCommand;
34200
- var init_command33 = __esm({
34241
+ var init_command34 = __esm({
34201
34242
  "src/commands/whoami/command.ts"() {
34202
34243
  "use strict";
34203
34244
  init_pkg_name();
@@ -34219,7 +34260,7 @@ var init_command33 = __esm({
34219
34260
 
34220
34261
  // src/commands/blob/command.ts
34221
34262
  var listSubcommand10, putSubcommand, delSubcommand, copySubcommand, addStoreSubcommand, removeStoreSubcommand, getStoreSubcommand, storeSubcommand, blobCommand;
34222
- var init_command34 = __esm({
34263
+ var init_command35 = __esm({
34223
34264
  "src/commands/blob/command.ts"() {
34224
34265
  "use strict";
34225
34266
  listSubcommand10 = {
@@ -34498,6 +34539,7 @@ var init_commands = __esm({
34498
34539
  init_command32();
34499
34540
  init_command33();
34500
34541
  init_command34();
34542
+ init_command35();
34501
34543
  init_output_manager();
34502
34544
  commandsStructs = [
34503
34545
  aliasCommand,
@@ -34537,6 +34579,9 @@ var init_commands = __esm({
34537
34579
  // added because we don't have a full help command
34538
34580
  { name: "help", aliases: [] }
34539
34581
  ];
34582
+ if (process.env.FF_GUIDANCE_MODE) {
34583
+ commandsStructs.push(guidanceCommand);
34584
+ }
34540
34585
  commands = /* @__PURE__ */ new Map();
34541
34586
  for (const command of commandsStructs) {
34542
34587
  const aliases = getCommandAliases(command);
@@ -35846,14 +35891,14 @@ var require_templates3 = __commonJS2({
35846
35891
  }
35847
35892
  return results;
35848
35893
  }
35849
- function buildStyle(chalk124, styles) {
35894
+ function buildStyle(chalk125, styles) {
35850
35895
  const enabled = {};
35851
35896
  for (const layer of styles) {
35852
35897
  for (const style of layer.styles) {
35853
35898
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
35854
35899
  }
35855
35900
  }
35856
- let current = chalk124;
35901
+ let current = chalk125;
35857
35902
  for (const [styleName, styles2] of Object.entries(enabled)) {
35858
35903
  if (!Array.isArray(styles2)) {
35859
35904
  continue;
@@ -35865,7 +35910,7 @@ var require_templates3 = __commonJS2({
35865
35910
  }
35866
35911
  return current;
35867
35912
  }
35868
- module2.exports = (chalk124, temporary) => {
35913
+ module2.exports = (chalk125, temporary) => {
35869
35914
  const styles = [];
35870
35915
  const chunks = [];
35871
35916
  let chunk = [];
@@ -35875,13 +35920,13 @@ var require_templates3 = __commonJS2({
35875
35920
  } else if (style) {
35876
35921
  const string = chunk.join("");
35877
35922
  chunk = [];
35878
- chunks.push(styles.length === 0 ? string : buildStyle(chalk124, styles)(string));
35923
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk125, styles)(string));
35879
35924
  styles.push({ inverse, styles: parseStyle(style) });
35880
35925
  } else if (close2) {
35881
35926
  if (styles.length === 0) {
35882
35927
  throw new Error("Found extraneous } in Chalk template literal");
35883
35928
  }
35884
- chunks.push(buildStyle(chalk124, styles)(chunk.join("")));
35929
+ chunks.push(buildStyle(chalk125, styles)(chunk.join("")));
35885
35930
  chunk = [];
35886
35931
  styles.pop();
35887
35932
  } else {
@@ -35929,16 +35974,16 @@ var require_source2 = __commonJS2({
35929
35974
  }
35930
35975
  };
35931
35976
  var chalkFactory = (options) => {
35932
- const chalk125 = {};
35933
- applyOptions(chalk125, options);
35934
- chalk125.template = (...arguments_) => chalkTag(chalk125.template, ...arguments_);
35935
- Object.setPrototypeOf(chalk125, Chalk.prototype);
35936
- Object.setPrototypeOf(chalk125.template, chalk125);
35937
- chalk125.template.constructor = () => {
35977
+ const chalk126 = {};
35978
+ applyOptions(chalk126, options);
35979
+ chalk126.template = (...arguments_) => chalkTag(chalk126.template, ...arguments_);
35980
+ Object.setPrototypeOf(chalk126, Chalk.prototype);
35981
+ Object.setPrototypeOf(chalk126.template, chalk126);
35982
+ chalk126.template.constructor = () => {
35938
35983
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
35939
35984
  };
35940
- chalk125.template.Instance = ChalkClass;
35941
- return chalk125.template;
35985
+ chalk126.template.Instance = ChalkClass;
35986
+ return chalk126.template;
35942
35987
  };
35943
35988
  function Chalk(options) {
35944
35989
  return chalkFactory(options);
@@ -36049,7 +36094,7 @@ var require_source2 = __commonJS2({
36049
36094
  return openAll + string + closeAll;
36050
36095
  };
36051
36096
  var template;
36052
- var chalkTag = (chalk125, ...strings) => {
36097
+ var chalkTag = (chalk126, ...strings) => {
36053
36098
  const [firstString] = strings;
36054
36099
  if (!isArray(firstString) || !isArray(firstString.raw)) {
36055
36100
  return strings.join(" ");
@@ -36065,14 +36110,14 @@ var require_source2 = __commonJS2({
36065
36110
  if (template === void 0) {
36066
36111
  template = require_templates3();
36067
36112
  }
36068
- return template(chalk125, parts.join(""));
36113
+ return template(chalk126, parts.join(""));
36069
36114
  };
36070
36115
  Object.defineProperties(Chalk.prototype, styles);
36071
- var chalk124 = Chalk();
36072
- chalk124.supportsColor = stdoutColor;
36073
- chalk124.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
36074
- chalk124.stderr.supportsColor = stderrColor;
36075
- module2.exports = chalk124;
36116
+ var chalk125 = Chalk();
36117
+ chalk125.supportsColor = stdoutColor;
36118
+ chalk125.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
36119
+ chalk125.stderr.supportsColor = stderrColor;
36120
+ module2.exports = chalk125;
36076
36121
  }
36077
36122
  });
36078
36123
 
@@ -37728,7 +37773,7 @@ var init_esm4 = __esm({
37728
37773
  const { instructions, pageSize = 7, loop = true, choices, required, validate: validate2 = () => true } = config2;
37729
37774
  const theme = makeTheme(checkboxTheme, config2.theme);
37730
37775
  const prefix = usePrefix({ theme });
37731
- const [status2, setStatus] = useState("pending");
37776
+ const [status3, setStatus] = useState("pending");
37732
37777
  const [items, setItems] = useState(choices.map((choice) => ({ ...choice })));
37733
37778
  const bounds = useMemo(() => {
37734
37779
  const first = items.findIndex(isSelectable);
@@ -37802,7 +37847,7 @@ var init_esm4 = __esm({
37802
37847
  loop,
37803
37848
  theme
37804
37849
  });
37805
- if (status2 === "done") {
37850
+ if (status3 === "done") {
37806
37851
  const selection = items.filter(isChecked);
37807
37852
  const answer = theme.style.answer(theme.style.renderSelectedChoices(selection, items));
37808
37853
  return `${prefix} ${message2} ${answer}`;
@@ -37839,7 +37884,7 @@ var init_esm5 = __esm({
37839
37884
  init_esm3();
37840
37885
  esm_default3 = createPrompt((config2, done) => {
37841
37886
  const { transformer = (answer) => answer ? "yes" : "no" } = config2;
37842
- const [status2, setStatus] = useState("pending");
37887
+ const [status3, setStatus] = useState("pending");
37843
37888
  const [value, setValue] = useState("");
37844
37889
  const theme = makeTheme(config2.theme);
37845
37890
  const prefix = usePrefix({ theme });
@@ -37859,7 +37904,7 @@ var init_esm5 = __esm({
37859
37904
  });
37860
37905
  let formattedValue = value;
37861
37906
  let defaultValue = "";
37862
- if (status2 === "done") {
37907
+ if (status3 === "done") {
37863
37908
  formattedValue = theme.style.answer(value);
37864
37909
  } else {
37865
37910
  defaultValue = ` ${theme.style.defaultAnswer(config2.default === false ? "y/N" : "Y/n")}`;
@@ -37893,7 +37938,7 @@ var init_esm6 = __esm({
37893
37938
  };
37894
37939
  esm_default4 = createPrompt((config2, done) => {
37895
37940
  const { choices, default: defaultKey = "h", expanded: defaultExpandState = false } = config2;
37896
- const [status2, setStatus] = useState("pending");
37941
+ const [status3, setStatus] = useState("pending");
37897
37942
  const [value, setValue] = useState("");
37898
37943
  const [expanded, setExpanded] = useState(defaultExpandState);
37899
37944
  const [errorMsg, setError] = useState(void 0);
@@ -37923,7 +37968,7 @@ var init_esm6 = __esm({
37923
37968
  }
37924
37969
  });
37925
37970
  const message2 = theme.style.message(config2.message);
37926
- if (status2 === "done") {
37971
+ if (status3 === "done") {
37927
37972
  return `${prefix} ${message2} ${theme.style.answer(value)}`;
37928
37973
  }
37929
37974
  const allChoices = expanded ? choices : [...choices, helpChoice];
@@ -37970,14 +38015,14 @@ var init_esm7 = __esm({
37970
38015
  esm_default5 = createPrompt((config2, done) => {
37971
38016
  const { validate: validate2 = () => true } = config2;
37972
38017
  const theme = makeTheme(config2.theme);
37973
- const [status2, setStatus] = useState("pending");
38018
+ const [status3, setStatus] = useState("pending");
37974
38019
  const [defaultValue = "", setDefaultValue] = useState(config2.default);
37975
38020
  const [errorMsg, setError] = useState(void 0);
37976
38021
  const [value, setValue] = useState("");
37977
- const isLoading = status2 === "loading";
38022
+ const isLoading = status3 === "loading";
37978
38023
  const prefix = usePrefix({ isLoading, theme });
37979
38024
  useKeypress(async (key, rl) => {
37980
- if (status2 !== "pending") {
38025
+ if (status3 !== "pending") {
37981
38026
  return;
37982
38027
  }
37983
38028
  if (isEnterKey(key)) {
@@ -38008,12 +38053,12 @@ var init_esm7 = __esm({
38008
38053
  const message2 = theme.style.message(config2.message);
38009
38054
  let formattedValue = value;
38010
38055
  if (typeof config2.transformer === "function") {
38011
- formattedValue = config2.transformer(value, { isFinal: status2 === "done" });
38012
- } else if (status2 === "done") {
38056
+ formattedValue = config2.transformer(value, { isFinal: status3 === "done" });
38057
+ } else if (status3 === "done") {
38013
38058
  formattedValue = theme.style.answer(value);
38014
38059
  }
38015
38060
  let defaultStr;
38016
- if (defaultValue && status2 !== "done" && !value) {
38061
+ if (defaultValue && status3 !== "done" && !value) {
38017
38062
  defaultStr = theme.style.defaultAnswer(defaultValue);
38018
38063
  }
38019
38064
  let error3 = "";
@@ -38048,7 +38093,7 @@ var init_esm8 = __esm({
38048
38093
  const firstRender = useRef(true);
38049
38094
  const theme = makeTheme(selectTheme, config2.theme);
38050
38095
  const prefix = usePrefix({ theme });
38051
- const [status2, setStatus] = useState("pending");
38096
+ const [status3, setStatus] = useState("pending");
38052
38097
  const searchTimeoutRef = useRef(void 0);
38053
38098
  const bounds = useMemo(() => {
38054
38099
  const first = items.findIndex(isSelectable2);
@@ -38129,7 +38174,7 @@ var init_esm8 = __esm({
38129
38174
  loop,
38130
38175
  theme
38131
38176
  });
38132
- if (status2 === "done") {
38177
+ if (status3 === "done") {
38133
38178
  const answer = selectedChoice.name || // TODO: Could we enforce that at the type level? Name should be defined for non-string values.
38134
38179
  String(selectedChoice.value);
38135
38180
  return `${prefix} ${message2} ${theme.style.answer(answer)}`;
@@ -38614,8 +38659,8 @@ var require_tr46 = __commonJS2({
38614
38659
  var len = countSymbols(domain_name);
38615
38660
  for (var i = 0; i < len; ++i) {
38616
38661
  var codePoint = domain_name.codePointAt(i);
38617
- var status2 = findStatus(codePoint);
38618
- switch (status2[1]) {
38662
+ var status3 = findStatus(codePoint);
38663
+ switch (status3[1]) {
38619
38664
  case "disallowed":
38620
38665
  hasError = true;
38621
38666
  processed += String.fromCodePoint(codePoint);
@@ -38623,11 +38668,11 @@ var require_tr46 = __commonJS2({
38623
38668
  case "ignored":
38624
38669
  break;
38625
38670
  case "mapped":
38626
- processed += String.fromCodePoint.apply(String, status2[2]);
38671
+ processed += String.fromCodePoint.apply(String, status3[2]);
38627
38672
  break;
38628
38673
  case "deviation":
38629
38674
  if (processing_option === PROCESSING_OPTIONS.TRANSITIONAL) {
38630
- processed += String.fromCodePoint.apply(String, status2[2]);
38675
+ processed += String.fromCodePoint.apply(String, status3[2]);
38631
38676
  } else {
38632
38677
  processed += String.fromCodePoint(codePoint);
38633
38678
  }
@@ -38640,7 +38685,7 @@ var require_tr46 = __commonJS2({
38640
38685
  hasError = true;
38641
38686
  processed += String.fromCodePoint(codePoint);
38642
38687
  } else {
38643
- processed += String.fromCodePoint.apply(String, status2[2]);
38688
+ processed += String.fromCodePoint.apply(String, status3[2]);
38644
38689
  }
38645
38690
  break;
38646
38691
  case "disallowed_STD3_valid":
@@ -38668,8 +38713,8 @@ var require_tr46 = __commonJS2({
38668
38713
  }
38669
38714
  var len = countSymbols(label);
38670
38715
  for (var i = 0; i < len; ++i) {
38671
- var status2 = findStatus(label.codePointAt(i));
38672
- if (processing === PROCESSING_OPTIONS.TRANSITIONAL && status2[1] !== "valid" || processing === PROCESSING_OPTIONS.NONTRANSITIONAL && status2[1] !== "valid" && status2[1] !== "deviation") {
38716
+ var status3 = findStatus(label.codePointAt(i));
38717
+ if (processing === PROCESSING_OPTIONS.TRANSITIONAL && status3[1] !== "valid" || processing === PROCESSING_OPTIONS.NONTRANSITIONAL && status3[1] !== "valid" && status3[1] !== "deviation") {
38673
38718
  error3 = true;
38674
38719
  break;
38675
38720
  }
@@ -40922,7 +40967,7 @@ var require_lib7 = __commonJS2({
40922
40967
  let body = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
40923
40968
  let opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
40924
40969
  Body.call(this, body, opts);
40925
- const status2 = opts.status || 200;
40970
+ const status3 = opts.status || 200;
40926
40971
  const headers = new Headers6(opts.headers);
40927
40972
  if (body != null && !headers.has("Content-Type")) {
40928
40973
  const contentType2 = extractContentType(body);
@@ -40932,8 +40977,8 @@ var require_lib7 = __commonJS2({
40932
40977
  }
40933
40978
  this[INTERNALS$1] = {
40934
40979
  url: opts.url,
40935
- status: status2,
40936
- statusText: opts.statusText || STATUS_CODES[status2],
40980
+ status: status3,
40981
+ statusText: opts.statusText || STATUS_CODES[status3],
40937
40982
  headers,
40938
40983
  counter: opts.counter
40939
40984
  };
@@ -61394,22 +61439,22 @@ function printError(error3) {
61394
61439
  error3 = new Error(error3);
61395
61440
  }
61396
61441
  const apiError = error3;
61397
- const { message: message2, stack: stack2, status: status2, code: code2, sizeLimit } = apiError;
61442
+ const { message: message2, stack: stack2, status: status3, code: code2, sizeLimit } = apiError;
61398
61443
  output_manager_default.debug(`handling error: ${stack2}`);
61399
61444
  if (message2 === "User force closed the prompt with 0 null") {
61400
61445
  return;
61401
61446
  }
61402
- if (status2 === 403) {
61447
+ if (status3 === 403) {
61403
61448
  output_manager_default.error(
61404
61449
  message2 || `Authentication error. Run ${getCommandName("login")} to log-in again.`
61405
61450
  );
61406
- } else if (status2 === 429) {
61451
+ } else if (status3 === 429) {
61407
61452
  output_manager_default.error(message2);
61408
61453
  } else if (code2 === "size_limit_exceeded") {
61409
61454
  output_manager_default.error(`File size limit exceeded (${(0, import_bytes2.default)(sizeLimit)})`);
61410
61455
  } else if (message2) {
61411
61456
  output_manager_default.prettyError(apiError);
61412
- } else if (status2 === 500) {
61457
+ } else if (status3 === 500) {
61413
61458
  output_manager_default.error("Unexpected server error. Please retry.");
61414
61459
  } else if (code2 === "USER_ABORT") {
61415
61460
  output_manager_default.log("Canceled");
@@ -61872,12 +61917,12 @@ var require_lru_cache = __commonJS2({
61872
61917
  this.updateItemAge = (index) => {
61873
61918
  this.starts[index] = this.ttls[index] !== 0 ? perf.now() : 0;
61874
61919
  };
61875
- this.statusTTL = (status2, index) => {
61876
- if (status2) {
61877
- status2.ttl = this.ttls[index];
61878
- status2.start = this.starts[index];
61879
- status2.now = cachedNow || getNow();
61880
- status2.remainingTTL = status2.now + status2.ttl - status2.start;
61920
+ this.statusTTL = (status3, index) => {
61921
+ if (status3) {
61922
+ status3.ttl = this.ttls[index];
61923
+ status3.start = this.starts[index];
61924
+ status3.now = cachedNow || getNow();
61925
+ status3.remainingTTL = status3.now + status3.ttl - status3.start;
61881
61926
  }
61882
61927
  };
61883
61928
  let cachedNow = 0;
@@ -61945,7 +61990,7 @@ var require_lru_cache = __commonJS2({
61945
61990
  }
61946
61991
  return size;
61947
61992
  };
61948
- this.addItemSize = (index, size, status2) => {
61993
+ this.addItemSize = (index, size, status3) => {
61949
61994
  this.sizes[index] = size;
61950
61995
  if (this.maxSize) {
61951
61996
  const maxSize = this.maxSize - this.sizes[index];
@@ -61954,9 +61999,9 @@ var require_lru_cache = __commonJS2({
61954
61999
  }
61955
62000
  }
61956
62001
  this.calculatedSize += this.sizes[index];
61957
- if (status2) {
61958
- status2.entrySize = size;
61959
- status2.totalCalculatedSize = this.calculatedSize;
62002
+ if (status3) {
62003
+ status3.entrySize = size;
62004
+ status3.totalCalculatedSize = this.calculatedSize;
61960
62005
  }
61961
62006
  };
61962
62007
  }
@@ -62136,13 +62181,13 @@ var require_lru_cache = __commonJS2({
62136
62181
  size = 0,
62137
62182
  sizeCalculation = this.sizeCalculation,
62138
62183
  noUpdateTTL = this.noUpdateTTL,
62139
- status: status2
62184
+ status: status3
62140
62185
  } = {}) {
62141
62186
  size = this.requireSize(k, v, size, sizeCalculation);
62142
62187
  if (this.maxEntrySize && size > this.maxEntrySize) {
62143
- if (status2) {
62144
- status2.set = "miss";
62145
- status2.maxEntrySizeExceeded = true;
62188
+ if (status3) {
62189
+ status3.set = "miss";
62190
+ status3.maxEntrySizeExceeded = true;
62146
62191
  }
62147
62192
  this.delete(k);
62148
62193
  return this;
@@ -62157,9 +62202,9 @@ var require_lru_cache = __commonJS2({
62157
62202
  this.prev[index] = this.tail;
62158
62203
  this.tail = index;
62159
62204
  this.size++;
62160
- this.addItemSize(index, size, status2);
62161
- if (status2) {
62162
- status2.set = "add";
62205
+ this.addItemSize(index, size, status3);
62206
+ if (status3) {
62207
+ status3.set = "add";
62163
62208
  }
62164
62209
  noUpdateTTL = false;
62165
62210
  } else {
@@ -62178,15 +62223,15 @@ var require_lru_cache = __commonJS2({
62178
62223
  }
62179
62224
  this.removeItemSize(index);
62180
62225
  this.valList[index] = v;
62181
- this.addItemSize(index, size, status2);
62182
- if (status2) {
62183
- status2.set = "replace";
62226
+ this.addItemSize(index, size, status3);
62227
+ if (status3) {
62228
+ status3.set = "replace";
62184
62229
  const oldValue = oldVal && this.isBackgroundFetch(oldVal) ? oldVal.__staleWhileFetching : oldVal;
62185
62230
  if (oldValue !== void 0)
62186
- status2.oldValue = oldValue;
62231
+ status3.oldValue = oldValue;
62187
62232
  }
62188
- } else if (status2) {
62189
- status2.set = "update";
62233
+ } else if (status3) {
62234
+ status3.set = "update";
62190
62235
  }
62191
62236
  }
62192
62237
  if (ttl !== 0 && this.ttl === 0 && !this.ttls) {
@@ -62195,7 +62240,7 @@ var require_lru_cache = __commonJS2({
62195
62240
  if (!noUpdateTTL) {
62196
62241
  this.setItemTTL(index, ttl, start);
62197
62242
  }
62198
- this.statusTTL(status2, index);
62243
+ this.statusTTL(status3, index);
62199
62244
  if (this.disposeAfter) {
62200
62245
  while (this.disposed.length) {
62201
62246
  this.disposeAfter(...this.disposed.shift());
@@ -62245,23 +62290,23 @@ var require_lru_cache = __commonJS2({
62245
62290
  this.size--;
62246
62291
  return head;
62247
62292
  }
62248
- has(k, { updateAgeOnHas = this.updateAgeOnHas, status: status2 } = {}) {
62293
+ has(k, { updateAgeOnHas = this.updateAgeOnHas, status: status3 } = {}) {
62249
62294
  const index = this.keyMap.get(k);
62250
62295
  if (index !== void 0) {
62251
62296
  if (!this.isStale(index)) {
62252
62297
  if (updateAgeOnHas) {
62253
62298
  this.updateItemAge(index);
62254
62299
  }
62255
- if (status2)
62256
- status2.has = "hit";
62257
- this.statusTTL(status2, index);
62300
+ if (status3)
62301
+ status3.has = "hit";
62302
+ this.statusTTL(status3, index);
62258
62303
  return true;
62259
- } else if (status2) {
62260
- status2.has = "stale";
62261
- this.statusTTL(status2, index);
62304
+ } else if (status3) {
62305
+ status3.has = "stale";
62306
+ this.statusTTL(status3, index);
62262
62307
  }
62263
- } else if (status2) {
62264
- status2.has = "miss";
62308
+ } else if (status3) {
62309
+ status3.has = "miss";
62265
62310
  }
62266
62311
  return false;
62267
62312
  }
@@ -62400,17 +62445,17 @@ var require_lru_cache = __commonJS2({
62400
62445
  allowStaleOnFetchAbort = this.allowStaleOnFetchAbort,
62401
62446
  fetchContext = this.fetchContext,
62402
62447
  forceRefresh = false,
62403
- status: status2,
62448
+ status: status3,
62404
62449
  signal
62405
62450
  } = {}) {
62406
62451
  if (!this.fetchMethod) {
62407
- if (status2)
62408
- status2.fetch = "get";
62452
+ if (status3)
62453
+ status3.fetch = "get";
62409
62454
  return this.get(k, {
62410
62455
  allowStale,
62411
62456
  updateAgeOnGet,
62412
62457
  noDeleteOnStaleGet,
62413
- status: status2
62458
+ status: status3
62414
62459
  });
62415
62460
  }
62416
62461
  const options = {
@@ -62426,44 +62471,44 @@ var require_lru_cache = __commonJS2({
62426
62471
  allowStaleOnFetchRejection,
62427
62472
  allowStaleOnFetchAbort,
62428
62473
  ignoreFetchAbort,
62429
- status: status2,
62474
+ status: status3,
62430
62475
  signal
62431
62476
  };
62432
62477
  let index = this.keyMap.get(k);
62433
62478
  if (index === void 0) {
62434
- if (status2)
62435
- status2.fetch = "miss";
62479
+ if (status3)
62480
+ status3.fetch = "miss";
62436
62481
  const p = this.backgroundFetch(k, index, options, fetchContext);
62437
62482
  return p.__returned = p;
62438
62483
  } else {
62439
62484
  const v = this.valList[index];
62440
62485
  if (this.isBackgroundFetch(v)) {
62441
62486
  const stale = allowStale && v.__staleWhileFetching !== void 0;
62442
- if (status2) {
62443
- status2.fetch = "inflight";
62487
+ if (status3) {
62488
+ status3.fetch = "inflight";
62444
62489
  if (stale)
62445
- status2.returnedStale = true;
62490
+ status3.returnedStale = true;
62446
62491
  }
62447
62492
  return stale ? v.__staleWhileFetching : v.__returned = v;
62448
62493
  }
62449
62494
  const isStale = this.isStale(index);
62450
62495
  if (!forceRefresh && !isStale) {
62451
- if (status2)
62452
- status2.fetch = "hit";
62496
+ if (status3)
62497
+ status3.fetch = "hit";
62453
62498
  this.moveToTail(index);
62454
62499
  if (updateAgeOnGet) {
62455
62500
  this.updateItemAge(index);
62456
62501
  }
62457
- this.statusTTL(status2, index);
62502
+ this.statusTTL(status3, index);
62458
62503
  return v;
62459
62504
  }
62460
62505
  const p = this.backgroundFetch(k, index, options, fetchContext);
62461
62506
  const hasStale = p.__staleWhileFetching !== void 0;
62462
62507
  const staleVal = hasStale && allowStale;
62463
- if (status2) {
62464
- status2.fetch = hasStale && isStale ? "stale" : "refresh";
62508
+ if (status3) {
62509
+ status3.fetch = hasStale && isStale ? "stale" : "refresh";
62465
62510
  if (staleVal && isStale)
62466
- status2.returnedStale = true;
62511
+ status3.returnedStale = true;
62467
62512
  }
62468
62513
  return staleVal ? p.__staleWhileFetching : p.__returned = p;
62469
62514
  }
@@ -62472,32 +62517,32 @@ var require_lru_cache = __commonJS2({
62472
62517
  allowStale = this.allowStale,
62473
62518
  updateAgeOnGet = this.updateAgeOnGet,
62474
62519
  noDeleteOnStaleGet = this.noDeleteOnStaleGet,
62475
- status: status2
62520
+ status: status3
62476
62521
  } = {}) {
62477
62522
  const index = this.keyMap.get(k);
62478
62523
  if (index !== void 0) {
62479
62524
  const value = this.valList[index];
62480
62525
  const fetching = this.isBackgroundFetch(value);
62481
- this.statusTTL(status2, index);
62526
+ this.statusTTL(status3, index);
62482
62527
  if (this.isStale(index)) {
62483
- if (status2)
62484
- status2.get = "stale";
62528
+ if (status3)
62529
+ status3.get = "stale";
62485
62530
  if (!fetching) {
62486
62531
  if (!noDeleteOnStaleGet) {
62487
62532
  this.delete(k);
62488
62533
  }
62489
- if (status2)
62490
- status2.returnedStale = allowStale;
62534
+ if (status3)
62535
+ status3.returnedStale = allowStale;
62491
62536
  return allowStale ? value : void 0;
62492
62537
  } else {
62493
- if (status2) {
62494
- status2.returnedStale = allowStale && value.__staleWhileFetching !== void 0;
62538
+ if (status3) {
62539
+ status3.returnedStale = allowStale && value.__staleWhileFetching !== void 0;
62495
62540
  }
62496
62541
  return allowStale ? value.__staleWhileFetching : void 0;
62497
62542
  }
62498
62543
  } else {
62499
- if (status2)
62500
- status2.get = "hit";
62544
+ if (status3)
62545
+ status3.get = "hit";
62501
62546
  if (fetching) {
62502
62547
  return value.__staleWhileFetching;
62503
62548
  }
@@ -62507,8 +62552,8 @@ var require_lru_cache = __commonJS2({
62507
62552
  }
62508
62553
  return value;
62509
62554
  }
62510
- } else if (status2) {
62511
- status2.get = "miss";
62555
+ } else if (status3) {
62556
+ status3.get = "miss";
62512
62557
  }
62513
62558
  }
62514
62559
  connect(p, n) {
@@ -62987,8 +63032,8 @@ var require_common5 = __commonJS2({
62987
63032
  createDebug.debug = createDebug;
62988
63033
  createDebug.default = createDebug;
62989
63034
  createDebug.coerce = coerce;
62990
- createDebug.disable = disable2;
62991
- createDebug.enable = enable2;
63035
+ createDebug.disable = disable3;
63036
+ createDebug.enable = enable3;
62992
63037
  createDebug.enabled = enabled;
62993
63038
  createDebug.humanize = require_ms2();
62994
63039
  createDebug.destroy = destroy;
@@ -63078,7 +63123,7 @@ var require_common5 = __commonJS2({
63078
63123
  newDebug.log = this.log;
63079
63124
  return newDebug;
63080
63125
  }
63081
- function enable2(namespaces) {
63126
+ function enable3(namespaces) {
63082
63127
  createDebug.save(namespaces);
63083
63128
  createDebug.namespaces = namespaces;
63084
63129
  createDebug.names = [];
@@ -63120,7 +63165,7 @@ var require_common5 = __commonJS2({
63120
63165
  }
63121
63166
  return templateIndex === template.length;
63122
63167
  }
63123
- function disable2() {
63168
+ function disable3() {
63124
63169
  const namespaces = [
63125
63170
  ...createDebug.names,
63126
63171
  ...createDebug.skips.map((namespace) => "-" + namespace)
@@ -91575,14 +91620,14 @@ var require_enoent = __commonJS2({
91575
91620
  return originalEmit.apply(cp, arguments);
91576
91621
  };
91577
91622
  }
91578
- function verifyENOENT(status2, parsed) {
91579
- if (isWin && status2 === 1 && !parsed.file) {
91623
+ function verifyENOENT(status3, parsed) {
91624
+ if (isWin && status3 === 1 && !parsed.file) {
91580
91625
  return notFoundError(parsed.original, "spawn");
91581
91626
  }
91582
91627
  return null;
91583
91628
  }
91584
- function verifyENOENTSync(status2, parsed) {
91585
- if (isWin && status2 === 1 && !parsed.file) {
91629
+ function verifyENOENTSync(status3, parsed) {
91630
+ if (isWin && status3 === 1 && !parsed.file) {
91586
91631
  return notFoundError(parsed.original, "spawnSync");
91587
91632
  }
91588
91633
  return null;
@@ -100670,7 +100715,7 @@ var init_list4 = __esm({
100670
100715
  init_get_command_flags();
100671
100716
  init_get_args();
100672
100717
  init_get_flags_specification();
100673
- init_command34();
100718
+ init_command35();
100674
100719
  init_pkg_name();
100675
100720
  init_list3();
100676
100721
  init_error2();
@@ -100880,7 +100925,7 @@ var init_put2 = __esm({
100880
100925
  blob2 = __toESM3(require("@vercel/blob"));
100881
100926
  init_get_args();
100882
100927
  init_get_flags_specification();
100883
- init_command34();
100928
+ init_command35();
100884
100929
  import_node_fs = require("fs");
100885
100930
  import_error_utils12 = __toESM3(require_dist2());
100886
100931
  import_node_path = require("path");
@@ -100953,7 +100998,7 @@ var init_del2 = __esm({
100953
100998
  blob3 = __toESM3(require("@vercel/blob"));
100954
100999
  init_get_args();
100955
101000
  init_get_flags_specification();
100956
- init_command34();
101001
+ init_command35();
100957
101002
  init_del();
100958
101003
  init_error2();
100959
101004
  init_pkg_name();
@@ -101072,7 +101117,7 @@ var init_copy2 = __esm({
101072
101117
  blob4 = __toESM3(require("@vercel/blob"));
101073
101118
  init_get_args();
101074
101119
  init_get_flags_specification();
101075
- init_command34();
101120
+ init_command35();
101076
101121
  init_copy();
101077
101122
  init_pkg_name();
101078
101123
  }
@@ -119019,7 +119064,7 @@ var require_detect_file_system_api = __commonJS2({
119019
119064
  });
119020
119065
  module2.exports = __toCommonJS4(detect_file_system_api_exports);
119021
119066
  var import_semver4 = __toESM4(require_semver2());
119022
- var import__96 = require_dist20();
119067
+ var import__98 = require_dist20();
119023
119068
  async function detectFileSystemAPI2({
119024
119069
  files,
119025
119070
  projectSettings,
@@ -119085,7 +119130,7 @@ var require_detect_file_system_api = __commonJS2({
119085
119130
  };
119086
119131
  }
119087
119132
  const invalidBuilder = builders.find(({ use }) => {
119088
- const valid = (0, import__96.isOfficialRuntime)("go", use) || (0, import__96.isOfficialRuntime)("python", use) || (0, import__96.isOfficialRuntime)("ruby", use) || (0, import__96.isOfficialRuntime)("node", use) || (0, import__96.isOfficialRuntime)("next", use) || (0, import__96.isOfficialRuntime)("static", use) || (0, import__96.isOfficialRuntime)("static-build", use);
119133
+ const valid = (0, import__98.isOfficialRuntime)("go", use) || (0, import__98.isOfficialRuntime)("python", use) || (0, import__98.isOfficialRuntime)("ruby", use) || (0, import__98.isOfficialRuntime)("node", use) || (0, import__98.isOfficialRuntime)("next", use) || (0, import__98.isOfficialRuntime)("static", use) || (0, import__98.isOfficialRuntime)("static-build", use);
119089
119134
  return !valid;
119090
119135
  });
119091
119136
  if (invalidBuilder) {
@@ -119098,7 +119143,7 @@ var require_detect_file_system_api = __commonJS2({
119098
119143
  for (const lang of ["go", "python", "ruby"]) {
119099
119144
  for (const { use } of builders) {
119100
119145
  const plugin = "vercel-plugin-" + lang;
119101
- if ((0, import__96.isOfficialRuntime)(lang, use) && !deps[plugin]) {
119146
+ if ((0, import__98.isOfficialRuntime)(lang, use) && !deps[plugin]) {
119102
119147
  return {
119103
119148
  metadata,
119104
119149
  fsApiBuilder: null,
@@ -119155,7 +119200,7 @@ var require_detect_file_system_api = __commonJS2({
119155
119200
  }
119156
119201
  }
119157
119202
  const frontendBuilder = builders.find(
119158
- ({ use }) => (0, import__96.isOfficialRuntime)("next", use) || (0, import__96.isOfficialRuntime)("static", use) || (0, import__96.isOfficialRuntime)("static-build", use)
119203
+ ({ use }) => (0, import__98.isOfficialRuntime)("next", use) || (0, import__98.isOfficialRuntime)("static", use) || (0, import__98.isOfficialRuntime)("static-build", use)
119159
119204
  );
119160
119205
  const config2 = frontendBuilder?.config || {};
119161
119206
  const withTag = tag ? `@${tag}` : "";
@@ -126906,7 +126951,7 @@ var init_store_add2 = __esm({
126906
126951
  init_pkg_name();
126907
126952
  init_get_flags_specification();
126908
126953
  init_get_args();
126909
- init_command34();
126954
+ init_command35();
126910
126955
  init_store_add();
126911
126956
  init_error2();
126912
126957
  }
@@ -126982,7 +127027,7 @@ var init_store_remove = __esm({
126982
127027
  init_error2();
126983
127028
  init_output_manager();
126984
127029
  init_get_flags_specification();
126985
- init_command34();
127030
+ init_command35();
126986
127031
  init_get_args();
126987
127032
  init_link2();
126988
127033
  }
@@ -129403,7 +129448,7 @@ var init_store_get2 = __esm({
129403
129448
  init_get_args();
129404
129449
  init_get_flags_specification();
129405
129450
  init_link2();
129406
- init_command34();
129451
+ init_command35();
129407
129452
  import_date_fns = __toESM3(require_date_fns());
129408
129453
  import_chalk40 = __toESM3(require_source());
129409
129454
  init_store_get();
@@ -129482,7 +129527,7 @@ var init_store2 = __esm({
129482
129527
  init_get_invalid_subcommand();
129483
129528
  init_get_subcommand();
129484
129529
  init_help();
129485
- init_command34();
129530
+ init_command35();
129486
129531
  init_get_flags_specification();
129487
129532
  init_output_manager();
129488
129533
  init_commands();
@@ -129640,7 +129685,7 @@ var init_token = __esm({
129640
129685
  import_node_path2 = require("path");
129641
129686
  init_diff_env_files();
129642
129687
  init_get_flags_specification();
129643
- init_command34();
129688
+ init_command35();
129644
129689
  init_get_args();
129645
129690
  init_pkg_name();
129646
129691
  init_cmd();
@@ -129758,7 +129803,7 @@ var init_blob2 = __esm({
129758
129803
  init_get_subcommand();
129759
129804
  init_help();
129760
129805
  init_list4();
129761
- init_command34();
129806
+ init_command35();
129762
129807
  init_get_flags_specification();
129763
129808
  init_output_manager();
129764
129809
  init_commands();
@@ -130678,19 +130723,19 @@ var require_superstatic = __commonJS2({
130678
130723
  }));
130679
130724
  return htmlFiles;
130680
130725
  }
130681
- function convertCleanUrls(cleanUrls, trailingSlash, status2 = 308) {
130726
+ function convertCleanUrls(cleanUrls, trailingSlash, status3 = 308) {
130682
130727
  const routes2 = [];
130683
130728
  if (cleanUrls) {
130684
130729
  const loc = trailingSlash ? "/$1/" : "/$1";
130685
130730
  routes2.push({
130686
130731
  src: "^/(?:(.+)/)?index(?:\\.html)?/?$",
130687
130732
  headers: { Location: loc },
130688
- status: status2
130733
+ status: status3
130689
130734
  });
130690
130735
  routes2.push({
130691
130736
  src: "^/(.*)\\.html/?$",
130692
130737
  headers: { Location: loc },
130693
- status: status2
130738
+ status: status3
130694
130739
  });
130695
130740
  }
130696
130741
  return routes2;
@@ -130703,18 +130748,18 @@ var require_superstatic = __commonJS2({
130703
130748
  normalizeHasKeys(r.missing);
130704
130749
  try {
130705
130750
  const loc = replaceSegments(segments, hasSegments, r.destination, true);
130706
- let status2;
130751
+ let status3;
130707
130752
  if (typeof r.permanent === "boolean") {
130708
- status2 = r.permanent ? 308 : 307;
130753
+ status3 = r.permanent ? 308 : 307;
130709
130754
  } else if (r.statusCode) {
130710
- status2 = r.statusCode;
130755
+ status3 = r.statusCode;
130711
130756
  } else {
130712
- status2 = defaultStatus;
130757
+ status3 = defaultStatus;
130713
130758
  }
130714
130759
  const route = {
130715
130760
  src,
130716
130761
  headers: { Location: loc },
130717
- status: status2
130762
+ status: status3
130718
130763
  };
130719
130764
  if (r.has) {
130720
130765
  route.has = r.has;
@@ -130798,27 +130843,27 @@ var require_superstatic = __commonJS2({
130798
130843
  return route;
130799
130844
  });
130800
130845
  }
130801
- function convertTrailingSlash(enable2, status2 = 308) {
130846
+ function convertTrailingSlash(enable3, status3 = 308) {
130802
130847
  const routes2 = [];
130803
- if (enable2) {
130848
+ if (enable3) {
130804
130849
  routes2.push({
130805
130850
  src: "^/\\.well-known(?:/.*)?$"
130806
130851
  });
130807
130852
  routes2.push({
130808
130853
  src: "^/((?:[^/]+/)*[^/\\.]+)$",
130809
130854
  headers: { Location: "/$1/" },
130810
- status: status2
130855
+ status: status3
130811
130856
  });
130812
130857
  routes2.push({
130813
130858
  src: "^/((?:[^/]+/)*[^/]+\\.\\w+)/$",
130814
130859
  headers: { Location: "/$1" },
130815
- status: status2
130860
+ status: status3
130816
130861
  });
130817
130862
  } else {
130818
130863
  routes2.push({
130819
130864
  src: "^/(.*)\\/$",
130820
130865
  headers: { Location: "/$1" },
130821
- status: status2
130866
+ status: status3
130822
130867
  });
130823
130868
  }
130824
130869
  return routes2;
@@ -145334,7 +145379,7 @@ var init_pull4 = __esm({
145334
145379
  init_ensure_link();
145335
145380
  init_humanize_path();
145336
145381
  init_help();
145337
- init_command25();
145382
+ init_command26();
145338
145383
  init_parse_target();
145339
145384
  init_get_flags_specification();
145340
145385
  init_error2();
@@ -147746,7 +147791,7 @@ function prettyPrintLogline({
147746
147791
  level,
147747
147792
  domain,
147748
147793
  requestPath: path11,
147749
- responseStatusCode: status2,
147794
+ responseStatusCode: status3,
147750
147795
  requestMethod: method,
147751
147796
  message: message2,
147752
147797
  messageTruncated,
@@ -147758,7 +147803,7 @@ function prettyPrintLogline({
147758
147803
  const sourceIcon = getSourceIcon(source);
147759
147804
  const detailsLine = `${import_chalk58.default.dim(date)} ${levelIcon} ${import_chalk58.default.bold(
147760
147805
  method
147761
- )} ${import_chalk58.default.grey(status2 <= 0 ? "---" : status2)} ${import_chalk58.default.dim(
147806
+ )} ${import_chalk58.default.grey(status3 <= 0 ? "---" : status3)} ${import_chalk58.default.dim(
147762
147807
  domain
147763
147808
  )} ${sourceIcon} ${path11}`;
147764
147809
  print(
@@ -147816,7 +147861,7 @@ var init_logs = __esm({
147816
147861
  import_split2 = __toESM3(require_split2());
147817
147862
  import_url14 = require("url");
147818
147863
  init_events();
147819
- init_command21();
147864
+ init_command22();
147820
147865
  init_output_manager();
147821
147866
  runtimeLogSpinnerMessage = `waiting for new logs...`;
147822
147867
  dateTimeFormat = "HH:mm:ss.SS";
@@ -147909,6 +147954,7 @@ async function processDeployment({
147909
147954
  output_manager_default.stopSpinner();
147910
147955
  }
147911
147956
  let rollingRelease2;
147957
+ let project;
147912
147958
  try {
147913
147959
  for await (const event of (0, import_client7.createDeployment)(clientOptions, requestBody)) {
147914
147960
  if (["tip", "notice", "warning"].includes(event.type)) {
@@ -148000,7 +148046,6 @@ async function processDeployment({
148000
148046
  stopSpinner();
148001
148047
  return event.payload;
148002
148048
  }
148003
- let project;
148004
148049
  if (project === void 0) {
148005
148050
  project = await getProjectByNameOrId(client2, projectName);
148006
148051
  rollingRelease2 = project?.rollingRelease;
@@ -149360,11 +149405,13 @@ ${err.stack}`);
149360
149405
  }
149361
149406
  if (err instanceof BuildError) {
149362
149407
  output_manager_default.error(err.message || "Build failed");
149363
- output_manager_default.error(
149364
- `Check your logs at https://${now.url}/_logs or run ${getCommandName(
149365
- `logs ${now.url}`
149408
+ output_manager_default.log("\n");
149409
+ output_manager_default.log(
149410
+ `To check build logs run: ${getCommandName(
149411
+ `inspect ${now.url} --logs`
149366
149412
  )}`
149367
149413
  );
149414
+ output_manager_default.log(`Or inspect them in your browser at https://${now.url}/_logs`);
149368
149415
  return 1;
149369
149416
  }
149370
149417
  if (isAPIError(err) && err.code === "size_limit_exceeded") {
@@ -150011,10 +150058,10 @@ var require_statuses = __commonJS2({
150011
150058
  "../../node_modules/.pnpm/statuses@1.5.0/node_modules/statuses/index.js"(exports2, module2) {
150012
150059
  "use strict";
150013
150060
  var codes = require_codes();
150014
- module2.exports = status2;
150015
- status2.STATUS_CODES = codes;
150016
- status2.codes = populateStatusesMap(status2, codes);
150017
- status2.redirect = {
150061
+ module2.exports = status3;
150062
+ status3.STATUS_CODES = codes;
150063
+ status3.codes = populateStatusesMap(status3, codes);
150064
+ status3.redirect = {
150018
150065
  300: true,
150019
150066
  301: true,
150020
150067
  302: true,
@@ -150023,12 +150070,12 @@ var require_statuses = __commonJS2({
150023
150070
  307: true,
150024
150071
  308: true
150025
150072
  };
150026
- status2.empty = {
150073
+ status3.empty = {
150027
150074
  204: true,
150028
150075
  205: true,
150029
150076
  304: true
150030
150077
  };
150031
- status2.retry = {
150078
+ status3.retry = {
150032
150079
  502: true,
150033
150080
  503: true,
150034
150081
  504: true
@@ -150037,17 +150084,17 @@ var require_statuses = __commonJS2({
150037
150084
  var arr = [];
150038
150085
  Object.keys(codes2).forEach(function forEachCode(code2) {
150039
150086
  var message2 = codes2[code2];
150040
- var status3 = Number(code2);
150041
- statuses[status3] = message2;
150042
- statuses[message2] = status3;
150043
- statuses[message2.toLowerCase()] = status3;
150044
- arr.push(status3);
150087
+ var status4 = Number(code2);
150088
+ statuses[status4] = message2;
150089
+ statuses[message2] = status4;
150090
+ statuses[message2.toLowerCase()] = status4;
150091
+ arr.push(status4);
150045
150092
  });
150046
150093
  return arr;
150047
150094
  }
150048
- function status2(code2) {
150095
+ function status3(code2) {
150049
150096
  if (typeof code2 === "number") {
150050
- if (!status2[code2])
150097
+ if (!status3[code2])
150051
150098
  throw new Error("invalid status code: " + code2);
150052
150099
  return code2;
150053
150100
  }
@@ -150056,11 +150103,11 @@ var require_statuses = __commonJS2({
150056
150103
  }
150057
150104
  var n = parseInt(code2, 10);
150058
150105
  if (!isNaN(n)) {
150059
- if (!status2[n])
150106
+ if (!status3[n])
150060
150107
  throw new Error("invalid status code: " + n);
150061
150108
  return n;
150062
150109
  }
150063
- n = status2[code2.toLowerCase()];
150110
+ n = status3[code2.toLowerCase()];
150064
150111
  if (!n)
150065
150112
  throw new Error('invalid status message: "' + code2 + '"');
150066
150113
  return n;
@@ -150092,19 +150139,19 @@ var require_http_errors = __commonJS2({
150092
150139
  module2.exports = createError;
150093
150140
  module2.exports.HttpError = createHttpErrorConstructor();
150094
150141
  populateConstructorExports(module2.exports, statuses.codes, module2.exports.HttpError);
150095
- function codeClass(status2) {
150096
- return Number(String(status2).charAt(0) + "00");
150142
+ function codeClass(status3) {
150143
+ return Number(String(status3).charAt(0) + "00");
150097
150144
  }
150098
150145
  function createError() {
150099
150146
  var err;
150100
150147
  var msg;
150101
- var status2 = 500;
150148
+ var status3 = 500;
150102
150149
  var props = {};
150103
150150
  for (var i = 0; i < arguments.length; i++) {
150104
150151
  var arg2 = arguments[i];
150105
150152
  if (arg2 instanceof Error) {
150106
150153
  err = arg2;
150107
- status2 = err.status || err.statusCode || status2;
150154
+ status3 = err.status || err.statusCode || status3;
150108
150155
  continue;
150109
150156
  }
150110
150157
  switch (typeof arg2) {
@@ -150112,7 +150159,7 @@ var require_http_errors = __commonJS2({
150112
150159
  msg = arg2;
150113
150160
  break;
150114
150161
  case "number":
150115
- status2 = arg2;
150162
+ status3 = arg2;
150116
150163
  if (i !== 0) {
150117
150164
  deprecate2("non-first-argument status code; replace with createError(" + arg2 + ", ...)");
150118
150165
  }
@@ -150122,20 +150169,20 @@ var require_http_errors = __commonJS2({
150122
150169
  break;
150123
150170
  }
150124
150171
  }
150125
- if (typeof status2 === "number" && (status2 < 400 || status2 >= 600)) {
150172
+ if (typeof status3 === "number" && (status3 < 400 || status3 >= 600)) {
150126
150173
  deprecate2("non-error status code; use only 4xx or 5xx status codes");
150127
150174
  }
150128
- if (typeof status2 !== "number" || !statuses[status2] && (status2 < 400 || status2 >= 600)) {
150129
- status2 = 500;
150175
+ if (typeof status3 !== "number" || !statuses[status3] && (status3 < 400 || status3 >= 600)) {
150176
+ status3 = 500;
150130
150177
  }
150131
- var HttpError = createError[status2] || createError[codeClass(status2)];
150178
+ var HttpError = createError[status3] || createError[codeClass(status3)];
150132
150179
  if (!err) {
150133
- err = HttpError ? new HttpError(msg) : new Error(msg || statuses[status2]);
150180
+ err = HttpError ? new HttpError(msg) : new Error(msg || statuses[status3]);
150134
150181
  Error.captureStackTrace(err, createError);
150135
150182
  }
150136
- if (!HttpError || !(err instanceof HttpError) || err.status !== status2) {
150137
- err.expose = status2 < 500;
150138
- err.status = err.statusCode = status2;
150183
+ if (!HttpError || !(err instanceof HttpError) || err.status !== status3) {
150184
+ err.expose = status3 < 500;
150185
+ err.status = err.statusCode = status3;
150139
150186
  }
150140
150187
  for (var key in props) {
150141
150188
  if (key !== "status" && key !== "statusCode") {
@@ -154443,8 +154490,8 @@ var require_debug4 = __commonJS2({
154443
154490
  "../../node_modules/.pnpm/debug@3.1.0/node_modules/debug/src/debug.js"(exports2, module2) {
154444
154491
  exports2 = module2.exports = createDebug.debug = createDebug["default"] = createDebug;
154445
154492
  exports2.coerce = coerce;
154446
- exports2.disable = disable2;
154447
- exports2.enable = enable2;
154493
+ exports2.disable = disable3;
154494
+ exports2.enable = enable3;
154448
154495
  exports2.enabled = enabled;
154449
154496
  exports2.humanize = require_ms3();
154450
154497
  exports2.instances = [];
@@ -154517,7 +154564,7 @@ var require_debug4 = __commonJS2({
154517
154564
  return false;
154518
154565
  }
154519
154566
  }
154520
- function enable2(namespaces) {
154567
+ function enable3(namespaces) {
154521
154568
  exports2.save(namespaces);
154522
154569
  exports2.names = [];
154523
154570
  exports2.skips = [];
@@ -154539,7 +154586,7 @@ var require_debug4 = __commonJS2({
154539
154586
  instance.enabled = exports2.enabled(instance.namespace);
154540
154587
  }
154541
154588
  }
154542
- function disable2() {
154589
+ function disable3() {
154543
154590
  exports2.enable("");
154544
154591
  }
154545
154592
  function enabled(name) {
@@ -165953,7 +166000,7 @@ async function devRouter(reqUrl = "/", reqMethod, routes2, devServer, vercelConf
165953
166000
  reqPathname = reqPathname || "/";
165954
166001
  const reqQuery = parseQueryString(reqSearch);
165955
166002
  const combinedHeaders = { ...previousHeaders };
165956
- let status2;
166003
+ let status3;
165957
166004
  let isContinue = false;
165958
166005
  if (routes2) {
165959
166006
  let idx = -1;
@@ -165989,7 +166036,7 @@ async function devRouter(reqUrl = "/", reqMethod, routes2, devServer, vercelConf
165989
166036
  }
165990
166037
  if (routeConfig.continue) {
165991
166038
  if (routeConfig.status) {
165992
- status2 = routeConfig.status;
166039
+ status3 = routeConfig.status;
165993
166040
  }
165994
166041
  reqPathname = destPath;
165995
166042
  isContinue = true;
@@ -166024,7 +166071,7 @@ async function devRouter(reqUrl = "/", reqMethod, routes2, devServer, vercelConf
166024
166071
  }
166025
166072
  } else {
166026
166073
  if (routeConfig.status && phase === "miss") {
166027
- status2 = routeConfig.status;
166074
+ status3 = routeConfig.status;
166028
166075
  }
166029
166076
  reqPathname = destPath;
166030
166077
  continue;
@@ -166038,7 +166085,7 @@ async function devRouter(reqUrl = "/", reqMethod, routes2, devServer, vercelConf
166038
166085
  continue: isContinue,
166039
166086
  userDest: false,
166040
166087
  isDestUrl,
166041
- status: routeConfig.status || status2,
166088
+ status: routeConfig.status || status3,
166042
166089
  headers: combinedHeaders,
166043
166090
  query: reqQuery,
166044
166091
  matched_route: routeConfig,
@@ -166060,7 +166107,7 @@ async function devRouter(reqUrl = "/", reqMethod, routes2, devServer, vercelConf
166060
166107
  continue: isContinue,
166061
166108
  userDest: Boolean(routeConfig.dest),
166062
166109
  isDestUrl,
166063
- status: routeConfig.status || status2,
166110
+ status: routeConfig.status || status3,
166064
166111
  headers: combinedHeaders,
166065
166112
  query: destQuery,
166066
166113
  matched_route: routeConfig,
@@ -166077,7 +166124,7 @@ async function devRouter(reqUrl = "/", reqMethod, routes2, devServer, vercelConf
166077
166124
  found: false,
166078
166125
  dest: reqPathname,
166079
166126
  continue: isContinue,
166080
- status: status2,
166127
+ status: status3,
166081
166128
  isDestUrl: false,
166082
166129
  query: reqQuery,
166083
166130
  headers: combinedHeaders,
@@ -167235,19 +167282,19 @@ var init_server = __esm({
167235
167282
  * This is the equivalent to now-proxy exit_with_status() function.
167236
167283
  */
167237
167284
  this.exitWithStatus = async (match, routeResult, phase, req, res, requestId) => {
167238
- const { status: status2, headers, dest } = routeResult;
167285
+ const { status: status3, headers, dest } = routeResult;
167239
167286
  const location = headers["location"] || dest;
167240
- if (status2 && location && 300 <= status2 && status2 <= 399) {
167241
- output_manager_default.debug(`Route found with redirect status code ${status2}`);
167242
- await this.sendRedirect(req, res, requestId, location, status2);
167287
+ if (status3 && location && 300 <= status3 && status3 <= 399) {
167288
+ output_manager_default.debug(`Route found with redirect status code ${status3}`);
167289
+ await this.sendRedirect(req, res, requestId, location, status3);
167243
167290
  return true;
167244
167291
  }
167245
- if (!match && status2 && phase !== "miss") {
167292
+ if (!match && status3 && phase !== "miss") {
167246
167293
  if (routeResult.userDest) {
167247
167294
  return false;
167248
167295
  }
167249
- output_manager_default.debug(`Route found with with status code ${status2}`);
167250
- await this.sendError(req, res, requestId, "", status2, headers);
167296
+ output_manager_default.debug(`Route found with with status code ${status3}`);
167297
+ await this.sendError(req, res, requestId, "", status3, headers);
167251
167298
  return true;
167252
167299
  }
167253
167300
  return false;
@@ -173840,6 +173887,190 @@ var init_git2 = __esm({
173840
173887
  }
173841
173888
  });
173842
173889
 
173890
+ // src/commands/guidance/status.ts
173891
+ async function status(client2) {
173892
+ const enabled = client2.config.guidance?.enabled !== false;
173893
+ const status3 = enabled ? import_chalk91.default.green("Enabled") : import_chalk91.default.red("Disabled");
173894
+ output_manager_default.print("\n");
173895
+ output_manager_default.log(`${import_chalk91.default.bold("Guidance status")}: ${status3}`);
173896
+ output_manager_default.print("\n");
173897
+ return 0;
173898
+ }
173899
+ var import_chalk91;
173900
+ var init_status = __esm({
173901
+ "src/commands/guidance/status.ts"() {
173902
+ "use strict";
173903
+ import_chalk91 = __toESM3(require_source());
173904
+ init_output_manager();
173905
+ }
173906
+ });
173907
+
173908
+ // src/commands/guidance/enable.ts
173909
+ async function enable(client2) {
173910
+ client2.config = {
173911
+ ...client2.config,
173912
+ guidance: {
173913
+ ...client2.config.guidance,
173914
+ enabled: true
173915
+ }
173916
+ };
173917
+ writeToConfigFile(client2.config);
173918
+ await status(client2);
173919
+ return 0;
173920
+ }
173921
+ var init_enable = __esm({
173922
+ "src/commands/guidance/enable.ts"() {
173923
+ "use strict";
173924
+ init_files();
173925
+ init_status();
173926
+ }
173927
+ });
173928
+
173929
+ // src/commands/guidance/disable.ts
173930
+ async function disable(client2) {
173931
+ client2.config = {
173932
+ ...client2.config,
173933
+ guidance: {
173934
+ ...client2.config.guidance,
173935
+ enabled: false
173936
+ }
173937
+ };
173938
+ writeToConfigFile(client2.config);
173939
+ await status(client2);
173940
+ return 0;
173941
+ }
173942
+ var init_disable = __esm({
173943
+ "src/commands/guidance/disable.ts"() {
173944
+ "use strict";
173945
+ init_files();
173946
+ init_status();
173947
+ }
173948
+ });
173949
+
173950
+ // src/util/telemetry/commands/guidance/index.ts
173951
+ var GuidanceTelemetryClient;
173952
+ var init_guidance = __esm({
173953
+ "src/util/telemetry/commands/guidance/index.ts"() {
173954
+ "use strict";
173955
+ init_telemetry();
173956
+ GuidanceTelemetryClient = class extends TelemetryClient {
173957
+ trackCliSubcommandStatus(actual) {
173958
+ this.trackCliSubcommand({
173959
+ subcommand: "status",
173960
+ value: actual
173961
+ });
173962
+ }
173963
+ trackCliSubcommandEnable(actual) {
173964
+ this.trackCliSubcommand({
173965
+ subcommand: "enable",
173966
+ value: actual
173967
+ });
173968
+ }
173969
+ trackCliSubcommandDisable(actual) {
173970
+ this.trackCliSubcommand({
173971
+ subcommand: "disable",
173972
+ value: actual
173973
+ });
173974
+ }
173975
+ };
173976
+ }
173977
+ });
173978
+
173979
+ // src/commands/guidance/index.ts
173980
+ var guidance_exports = {};
173981
+ __export3(guidance_exports, {
173982
+ default: () => guidance
173983
+ });
173984
+ async function guidance(client2) {
173985
+ if (!process.env.FF_GUIDANCE_MODE) {
173986
+ output_manager_default.error("The guidance subcommand does not exist");
173987
+ return 1;
173988
+ }
173989
+ const telemetryClient = new GuidanceTelemetryClient({
173990
+ opts: {
173991
+ store: client2.telemetryEventStore
173992
+ }
173993
+ });
173994
+ let parsedArguments;
173995
+ const flagsSpecification = getFlagsSpecification(guidanceCommand.options);
173996
+ try {
173997
+ parsedArguments = parseArguments(client2.argv.slice(2), flagsSpecification);
173998
+ } catch (err) {
173999
+ printError(err);
174000
+ return 1;
174001
+ }
174002
+ const { subcommand, subcommandOriginal } = getSubcommand(
174003
+ parsedArguments.args.slice(1),
174004
+ COMMAND_CONFIG11
174005
+ );
174006
+ const needHelp = parsedArguments.flags["--help"];
174007
+ function printHelp(command) {
174008
+ output_manager_default.print(
174009
+ help2(command, {
174010
+ columns: client2.stderr.columns,
174011
+ parent: guidanceCommand
174012
+ })
174013
+ );
174014
+ }
174015
+ if (!subcommand && needHelp) {
174016
+ telemetryClient.trackCliFlagHelp("guidance", subcommand);
174017
+ output_manager_default.print(help2(guidanceCommand, { columns: client2.stderr.columns }));
174018
+ return 2;
174019
+ }
174020
+ switch (subcommand) {
174021
+ case "status":
174022
+ if (needHelp) {
174023
+ telemetryClient.trackCliFlagHelp("guidance", subcommandOriginal);
174024
+ printHelp(statusSubcommand);
174025
+ return 2;
174026
+ }
174027
+ telemetryClient.trackCliSubcommandStatus(subcommandOriginal);
174028
+ return status(client2);
174029
+ case "enable":
174030
+ if (needHelp) {
174031
+ telemetryClient.trackCliFlagHelp("guidance", subcommandOriginal);
174032
+ printHelp(enableSubcommand);
174033
+ return 2;
174034
+ }
174035
+ telemetryClient.trackCliSubcommandEnable(subcommandOriginal);
174036
+ return enable(client2);
174037
+ case "disable":
174038
+ if (needHelp) {
174039
+ telemetryClient.trackCliFlagHelp("guidance", subcommandOriginal);
174040
+ printHelp(disableSubcommand);
174041
+ return 2;
174042
+ }
174043
+ return disable(client2);
174044
+ default: {
174045
+ output_manager_default.print(help2(guidanceCommand, { columns: client2.stderr.columns }));
174046
+ return 2;
174047
+ }
174048
+ }
174049
+ }
174050
+ var COMMAND_CONFIG11;
174051
+ var init_guidance2 = __esm({
174052
+ "src/commands/guidance/index.ts"() {
174053
+ "use strict";
174054
+ init_error2();
174055
+ init_get_args();
174056
+ init_get_subcommand();
174057
+ init_help();
174058
+ init_status();
174059
+ init_enable();
174060
+ init_disable();
174061
+ init_command12();
174062
+ init_get_flags_specification();
174063
+ init_guidance();
174064
+ init_output_manager();
174065
+ init_commands();
174066
+ COMMAND_CONFIG11 = {
174067
+ status: getCommandAliases(statusSubcommand),
174068
+ enable: getCommandAliases(enableSubcommand),
174069
+ disable: getCommandAliases(disableSubcommand)
174070
+ };
174071
+ }
174072
+ });
174073
+
173843
174074
  // ../../node_modules/.pnpm/jaro-winkler@0.2.8/node_modules/jaro-winkler/index.js
173844
174075
  var require_jaro_winkler = __commonJS2({
173845
174076
  "../../node_modules/.pnpm/jaro-winkler@0.2.8/node_modules/jaro-winkler/index.js"(exports2, module2) {
@@ -174027,9 +174258,9 @@ async function extractExample(client2, name, dir, force, ver = "v2") {
174027
174258
  extractor.on("finish", resolve13);
174028
174259
  res.body.pipe(extractor);
174029
174260
  });
174030
- const successLog = `Initialized "${import_chalk91.default.bold(
174261
+ const successLog = `Initialized "${import_chalk92.default.bold(
174031
174262
  name
174032
- )}" example in ${import_chalk91.default.bold(humanizePath(folder))}.`;
174263
+ )}" example in ${import_chalk92.default.bold(humanizePath(folder))}.`;
174033
174264
  const folderRel = import_node_path4.default.relative(client2.cwd, folder);
174034
174265
  const deployHint = folderRel === "" ? list_item_default(`To deploy, run ${getCommandName()}.`) : list_item_default(
174035
174266
  `To deploy, ${cmd(
@@ -174049,14 +174280,14 @@ function prepareFolder(cwd, folder, force) {
174049
174280
  if (import_node_fs2.default.existsSync(dest)) {
174050
174281
  if (!import_node_fs2.default.lstatSync(dest).isDirectory()) {
174051
174282
  throw new Error(
174052
- `Destination path "${import_chalk91.default.bold(
174283
+ `Destination path "${import_chalk92.default.bold(
174053
174284
  folder
174054
174285
  )}" already exists and is not a directory.`
174055
174286
  );
174056
174287
  }
174057
174288
  if (!force && import_node_fs2.default.readdirSync(dest).length !== 0) {
174058
174289
  throw new Error(
174059
- `Destination path "${import_chalk91.default.bold(
174290
+ `Destination path "${import_chalk92.default.bold(
174060
174291
  folder
174061
174292
  )}" already exists and is not an empty directory. You may use ${cmd(
174062
174293
  "--force"
@@ -174067,14 +174298,14 @@ function prepareFolder(cwd, folder, force) {
174067
174298
  try {
174068
174299
  import_node_fs2.default.mkdirSync(dest);
174069
174300
  } catch (e2) {
174070
- throw new Error(`Could not create directory "${import_chalk91.default.bold(folder)}".`);
174301
+ throw new Error(`Could not create directory "${import_chalk92.default.bold(folder)}".`);
174071
174302
  }
174072
174303
  }
174073
174304
  return dest;
174074
174305
  }
174075
174306
  async function guess(client2, exampleList, name) {
174076
174307
  const GuessError = new Error(
174077
- `No example found for ${import_chalk91.default.bold(name)}, run ${getCommandName(
174308
+ `No example found for ${import_chalk92.default.bold(name)}, run ${getCommandName(
174078
174309
  "init"
174079
174310
  )} to see the list of available examples.`
174080
174311
  );
@@ -174083,21 +174314,21 @@ async function guess(client2, exampleList, name) {
174083
174314
  }
174084
174315
  const found = did_you_mean_default(name, exampleList, 0.7);
174085
174316
  if (typeof found === "string") {
174086
- if (await client2.input.confirm(`Did you mean ${import_chalk91.default.bold(found)}?`, false)) {
174317
+ if (await client2.input.confirm(`Did you mean ${import_chalk92.default.bold(found)}?`, false)) {
174087
174318
  return found;
174088
174319
  }
174089
174320
  } else {
174090
174321
  throw GuessError;
174091
174322
  }
174092
174323
  }
174093
- var import_node_fs2, import_node_path4, import_tar_fs, import_chalk91, EXAMPLE_API;
174324
+ var import_node_fs2, import_node_path4, import_tar_fs, import_chalk92, EXAMPLE_API;
174094
174325
  var init_init = __esm({
174095
174326
  "src/commands/init/init.ts"() {
174096
174327
  "use strict";
174097
174328
  import_node_fs2 = __toESM3(require("fs"));
174098
174329
  import_node_path4 = __toESM3(require("path"));
174099
174330
  import_tar_fs = __toESM3(require_tar_fs());
174100
- import_chalk91 = __toESM3(require_source());
174331
+ import_chalk92 = __toESM3(require_source());
174101
174332
  init_list();
174102
174333
  init_list_item();
174103
174334
  init_humanize_path();
@@ -174165,7 +174396,7 @@ async function main10(client2) {
174165
174396
  output_manager_default.print(help2(initCommand, { columns: client2.stderr.columns }));
174166
174397
  return 2;
174167
174398
  }
174168
- const args2 = getSubcommand(parsedArgs.args.slice(1), COMMAND_CONFIG11).args;
174399
+ const args2 = getSubcommand(parsedArgs.args.slice(1), COMMAND_CONFIG12).args;
174169
174400
  if (parsedArgs.args.length > 3) {
174170
174401
  output_manager_default.error("Too many arguments.");
174171
174402
  return 1;
@@ -174182,7 +174413,7 @@ async function main10(client2) {
174182
174413
  return 1;
174183
174414
  }
174184
174415
  }
174185
- var import_error_utils27, COMMAND_CONFIG11;
174416
+ var import_error_utils27, COMMAND_CONFIG12;
174186
174417
  var init_init3 = __esm({
174187
174418
  "src/commands/init/index.ts"() {
174188
174419
  "use strict";
@@ -174192,11 +174423,11 @@ var init_init3 = __esm({
174192
174423
  init_init();
174193
174424
  import_error_utils27 = __toESM3(require_dist2());
174194
174425
  init_help();
174195
- init_command12();
174426
+ init_command13();
174196
174427
  init_get_flags_specification();
174197
174428
  init_output_manager();
174198
174429
  init_init2();
174199
- COMMAND_CONFIG11 = {
174430
+ COMMAND_CONFIG12 = {
174200
174431
  init: ["init"]
174201
174432
  };
174202
174433
  }
@@ -174213,11 +174444,11 @@ var init_build_state = __esm({
174213
174444
  });
174214
174445
 
174215
174446
  // src/util/output/builds.ts
174216
- var import_chalk92, import_bytes8, padding, MAX_BUILD_GROUPS, MAX_OUTPUTS_PER_GROUP, hasOutput, getCommonPath, styleBuild, styleHiddenBuilds, styleOutput, getDirPath, sortByEntrypoint, groupBuilds, builds_default;
174447
+ var import_chalk93, import_bytes8, padding, MAX_BUILD_GROUPS, MAX_OUTPUTS_PER_GROUP, hasOutput, getCommonPath, styleBuild, styleHiddenBuilds, styleOutput, getDirPath, sortByEntrypoint, groupBuilds, builds_default;
174217
174448
  var init_builds = __esm({
174218
174449
  "src/util/output/builds.ts"() {
174219
174450
  "use strict";
174220
- import_chalk92 = __toESM3(require_source());
174451
+ import_chalk93 = __toESM3(require_source());
174221
174452
  import_bytes8 = __toESM3(require_bytes());
174222
174453
  init_build_state();
174223
174454
  padding = 8;
@@ -174246,48 +174477,48 @@ var init_builds = __esm({
174246
174477
  styleBuild = (build2, times, longestSource) => {
174247
174478
  const { entrypoint, id } = build2;
174248
174479
  const time = typeof times[id] === "string" ? times[id] : "";
174249
- let pathColor = import_chalk92.default.cyan;
174480
+ let pathColor = import_chalk93.default.cyan;
174250
174481
  if (isFailed(build2)) {
174251
- pathColor = import_chalk92.default.red;
174482
+ pathColor = import_chalk93.default.red;
174252
174483
  }
174253
174484
  const entry = entrypoint.padEnd(longestSource + padding);
174254
174485
  const prefix = hasOutput(build2) ? "\u250C" : "\u2576";
174255
- return `${import_chalk92.default.grey(prefix)} ${pathColor(entry)}${time}`;
174486
+ return `${import_chalk93.default.grey(prefix)} ${pathColor(entry)}${time}`;
174256
174487
  };
174257
174488
  styleHiddenBuilds = (commonPath, buildGroup, times, longestSource, isHidden2 = false) => {
174258
174489
  const { id } = buildGroup[0];
174259
174490
  const entry = commonPath.padEnd(longestSource + padding);
174260
174491
  const time = typeof times[id] === "string" ? times[id] : "";
174261
174492
  const prefix = isHidden2 === false && buildGroup.some(hasOutput) ? "\u250C" : "\u2576";
174262
- let pathColor = import_chalk92.default.cyan;
174493
+ let pathColor = import_chalk93.default.cyan;
174263
174494
  if (buildGroup.every(isFailed)) {
174264
- pathColor = import_chalk92.default.red;
174495
+ pathColor = import_chalk93.default.red;
174265
174496
  }
174266
174497
  if (isHidden2) {
174267
- pathColor = import_chalk92.default.grey;
174498
+ pathColor = import_chalk93.default.grey;
174268
174499
  }
174269
- return `${import_chalk92.default.grey(prefix)} ${pathColor(entry)}${time}`;
174500
+ return `${import_chalk93.default.grey(prefix)} ${pathColor(entry)}${time}`;
174270
174501
  };
174271
174502
  styleOutput = (output2, readyState, isLast) => {
174272
174503
  const { type, path: path11, size, lambda } = output2;
174273
174504
  const prefix = type === "lambda" ? "\u03BB " : "";
174274
- const finalSize = size ? ` ${import_chalk92.default.grey(`(${(0, import_bytes8.default)(size)})`)}` : "";
174275
- let color = import_chalk92.default.grey;
174505
+ const finalSize = size ? ` ${import_chalk93.default.grey(`(${(0, import_bytes8.default)(size)})`)}` : "";
174506
+ let color = import_chalk93.default.grey;
174276
174507
  let finalRegion = "";
174277
174508
  if (isReady({ readyState })) {
174278
- color = import_chalk92.default;
174509
+ color = import_chalk93.default;
174279
174510
  } else if (isFailed({ readyState })) {
174280
- color = import_chalk92.default.red;
174511
+ color = import_chalk93.default.red;
174281
174512
  }
174282
174513
  if (lambda) {
174283
174514
  const { deployedTo } = lambda;
174284
174515
  if (deployedTo && deployedTo.length > 0) {
174285
- finalRegion = ` ${import_chalk92.default.grey(`[${deployedTo.join(", ")}]`)}`;
174516
+ finalRegion = ` ${import_chalk93.default.grey(`[${deployedTo.join(", ")}]`)}`;
174286
174517
  }
174287
174518
  }
174288
174519
  const corner = isLast ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500";
174289
174520
  const main17 = prefix + path11 + finalSize + finalRegion;
174290
- return `${import_chalk92.default.grey(corner)} ${color(main17)}`;
174521
+ return `${import_chalk93.default.grey(corner)} ${color(main17)}`;
174291
174522
  };
174292
174523
  getDirPath = (path11, level = 0, highestLevel = null) => {
174293
174524
  const parts = path11.split("/").slice(0, -1);
@@ -174419,7 +174650,7 @@ var init_builds = __esm({
174419
174650
  );
174420
174651
  if (outputs.length > MAX_OUTPUTS_PER_GROUP) {
174421
174652
  final.push(
174422
- import_chalk92.default.grey(
174653
+ import_chalk93.default.grey(
174423
174654
  `\u2514\u2500\u2500 ${outputs.length - MAX_OUTPUTS_PER_GROUP} output items hidden
174424
174655
  `
174425
174656
  )
@@ -174467,19 +174698,19 @@ function routes(routes2) {
174467
174698
  const padding2 = 6;
174468
174699
  const space = " ".repeat(padding2);
174469
174700
  const destSpace = " ".repeat(longestDest || 10);
174470
- const arrow = import_chalk93.default.grey("->");
174701
+ const arrow = import_chalk94.default.grey("->");
174471
174702
  for (const item of routes2) {
174472
174703
  if ("handle" in item) {
174473
- toPrint += `${import_chalk93.default.grey("\u2576")} ${import_chalk93.default.cyan(item.handle)}`;
174704
+ toPrint += `${import_chalk94.default.grey("\u2576")} ${import_chalk94.default.cyan(item.handle)}`;
174474
174705
  continue;
174475
174706
  }
174476
- const { src, dest, status: status2, headers } = item;
174707
+ const { src, dest, status: status3, headers } = item;
174477
174708
  const last = routes2.indexOf(item) === routes2.length - 1;
174478
174709
  const suffix = last ? "" : `
174479
174710
  `;
174480
- const finalSrc = import_chalk93.default.cyan(src.padEnd(longestSrc + padding2));
174711
+ const finalSrc = import_chalk94.default.cyan(src.padEnd(longestSrc + padding2));
174481
174712
  const finalDest = dest ? `${arrow}${space}${dest}` : ` ${space}${destSpace}`;
174482
- const finalStatus = status2 ? import_chalk93.default.grey(`[${status2}]`) : "";
174713
+ const finalStatus = status3 ? import_chalk94.default.grey(`[${status3}]`) : "";
174483
174714
  let finalHeaders = null;
174484
174715
  if (headers) {
174485
174716
  finalHeaders = `
@@ -174490,21 +174721,21 @@ function routes(routes2) {
174490
174721
  const last2 = headerKeys.indexOf(header) === headerKeys.length - 1;
174491
174722
  const suffix2 = last2 ? "" : `
174492
174723
  `;
174493
- const prefix2 = import_chalk93.default.grey(last2 ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500");
174724
+ const prefix2 = import_chalk94.default.grey(last2 ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500");
174494
174725
  finalHeaders += `${prefix2} ${header}: ${value}${suffix2}`;
174495
174726
  }
174496
174727
  }
174497
- const prefix = import_chalk93.default.grey(finalHeaders ? "\u250C" : "\u2576");
174728
+ const prefix = import_chalk94.default.grey(finalHeaders ? "\u250C" : "\u2576");
174498
174729
  const fill = `${finalSrc}${finalDest}${space}${finalStatus}`;
174499
174730
  toPrint += `${prefix} ${fill}${finalHeaders || ""}${suffix}`;
174500
174731
  }
174501
174732
  return toPrint;
174502
174733
  }
174503
- var import_chalk93, longestProperty;
174734
+ var import_chalk94, longestProperty;
174504
174735
  var init_routes = __esm({
174505
174736
  "src/util/output/routes.ts"() {
174506
174737
  "use strict";
174507
- import_chalk93 = __toESM3(require_source());
174738
+ import_chalk94 = __toESM3(require_source());
174508
174739
  longestProperty = (routes2, name) => {
174509
174740
  const longestItem = routes2.sort((a, b) => {
174510
174741
  const aName = a[name];
@@ -174624,7 +174855,7 @@ async function inspect3(client2) {
174624
174855
  } catch {
174625
174856
  }
174626
174857
  output_manager_default.spinner(
174627
- `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk94.default.bold(contextName)}`
174858
+ `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk95.default.bold(contextName)}`
174628
174859
  );
174629
174860
  let deployment = await getDeployment(client2, contextName, deploymentIdOrHost);
174630
174861
  let abortController;
@@ -174651,7 +174882,7 @@ async function inspect3(client2) {
174651
174882
  }
174652
174883
  }
174653
174884
  if (withLogs) {
174654
- print(`${import_chalk94.default.cyan("status")} ${stateString(deployment.readyState)}
174885
+ print(`${import_chalk95.default.cyan("status")} ${stateString(deployment.readyState)}
174655
174886
  `);
174656
174887
  } else {
174657
174888
  await printDetails({ deployment, contextName, client: client2, startTimestamp });
@@ -174664,17 +174895,17 @@ function stateString(s) {
174664
174895
  switch (s) {
174665
174896
  case "INITIALIZING":
174666
174897
  case "BUILDING":
174667
- return import_chalk94.default.yellow(CIRCLE) + sTitle;
174898
+ return import_chalk95.default.yellow(CIRCLE) + sTitle;
174668
174899
  case "ERROR":
174669
- return import_chalk94.default.red(CIRCLE) + sTitle;
174900
+ return import_chalk95.default.red(CIRCLE) + sTitle;
174670
174901
  case "READY":
174671
- return import_chalk94.default.green(CIRCLE) + sTitle;
174902
+ return import_chalk95.default.green(CIRCLE) + sTitle;
174672
174903
  case "QUEUED":
174673
- return import_chalk94.default.gray(CIRCLE) + sTitle;
174904
+ return import_chalk95.default.gray(CIRCLE) + sTitle;
174674
174905
  case "CANCELED":
174675
- return import_chalk94.default.gray(CIRCLE) + sTitle;
174906
+ return import_chalk95.default.gray(CIRCLE) + sTitle;
174676
174907
  default:
174677
- return import_chalk94.default.gray("UNKNOWN");
174908
+ return import_chalk95.default.gray("UNKNOWN");
174678
174909
  }
174679
174910
  }
174680
174911
  async function printDetails({
@@ -174684,7 +174915,7 @@ async function printDetails({
174684
174915
  startTimestamp
174685
174916
  }) {
174686
174917
  output_manager_default.log(
174687
- `Fetched deployment "${import_chalk94.default.bold(deployment.url)}" in ${import_chalk94.default.bold(
174918
+ `Fetched deployment "${import_chalk95.default.bold(deployment.url)}" in ${import_chalk95.default.bold(
174688
174919
  contextName
174689
174920
  )} ${elapsed(Date.now() - startTimestamp)}`
174690
174921
  );
@@ -174700,14 +174931,14 @@ async function printDetails({
174700
174931
  const { print, link: link4 } = output_manager_default;
174701
174932
  const { builds } = deployment.version === 2 ? await client2.fetch(`/v11/deployments/${id}/builds`) : { builds: [] };
174702
174933
  print("\n");
174703
- print(import_chalk94.default.bold(" General\n\n"));
174704
- print(` ${import_chalk94.default.cyan("id")} ${id}
174934
+ print(import_chalk95.default.bold(" General\n\n"));
174935
+ print(` ${import_chalk95.default.cyan("id")} ${id}
174705
174936
  `);
174706
- print(` ${import_chalk94.default.cyan("name")} ${name}
174937
+ print(` ${import_chalk95.default.cyan("name")} ${name}
174707
174938
  `);
174708
174939
  const customEnvironmentSlug = deployment.customEnvironment?.slug;
174709
174940
  const target = customEnvironmentSlug ?? deployment.target ?? "preview";
174710
- print(` ${import_chalk94.default.cyan("target")} `);
174941
+ print(` ${import_chalk95.default.cyan("target")} `);
174711
174942
  print(
174712
174943
  deployment.customEnvironment && deployment.team?.slug ? `${link4(
174713
174944
  `${target}`,
@@ -174717,13 +174948,13 @@ async function printDetails({
174717
174948
  ` : `${target}
174718
174949
  `
174719
174950
  );
174720
- print(` ${import_chalk94.default.cyan("status")} ${stateString(readyState)}
174951
+ print(` ${import_chalk95.default.cyan("status")} ${stateString(readyState)}
174721
174952
  `);
174722
- print(` ${import_chalk94.default.cyan("url")} https://${url3}
174953
+ print(` ${import_chalk95.default.cyan("url")} https://${url3}
174723
174954
  `);
174724
174955
  if (createdAt) {
174725
174956
  print(
174726
- ` ${import_chalk94.default.cyan("created")} ${new Date(createdAt)} ${elapsed(
174957
+ ` ${import_chalk95.default.cyan("created")} ${new Date(createdAt)} ${elapsed(
174727
174958
  Date.now() - createdAt,
174728
174959
  true
174729
174960
  )}
@@ -174732,10 +174963,10 @@ async function printDetails({
174732
174963
  }
174733
174964
  print("\n\n");
174734
174965
  if (aliases !== void 0 && aliases.length > 0) {
174735
- print(import_chalk94.default.bold(" Aliases\n\n"));
174966
+ print(import_chalk95.default.bold(" Aliases\n\n"));
174736
174967
  let aliasList = "";
174737
174968
  for (const alias2 of aliases) {
174738
- aliasList += `${import_chalk94.default.gray("\u2576")} https://${alias2}
174969
+ aliasList += `${import_chalk95.default.gray("\u2576")} https://${alias2}
174739
174970
  `;
174740
174971
  }
174741
174972
  print(indent_default(aliasList, 4));
@@ -174747,12 +174978,12 @@ async function printDetails({
174747
174978
  const { id: id2, createdAt: createdAt2, readyStateAt } = build2;
174748
174979
  times[id2] = createdAt2 && readyStateAt ? elapsed(readyStateAt - createdAt2) : null;
174749
174980
  }
174750
- print(import_chalk94.default.bold(" Builds\n\n"));
174981
+ print(import_chalk95.default.bold(" Builds\n\n"));
174751
174982
  print(indent_default(builds_default(builds, times).toPrint, 4));
174752
174983
  print("\n\n");
174753
174984
  }
174754
174985
  if (Array.isArray(routes2) && routes2.length > 0) {
174755
- print(import_chalk94.default.bold(" Routes\n\n"));
174986
+ print(import_chalk95.default.bold(" Routes\n\n"));
174756
174987
  print(indent_default(routes(routes2), 4));
174757
174988
  print(`
174758
174989
 
@@ -174765,12 +174996,12 @@ function exitCode(state) {
174765
174996
  }
174766
174997
  return 0;
174767
174998
  }
174768
- var import_error_utils28, import_chalk94, import_ms20, import_title6, import_url19;
174999
+ var import_error_utils28, import_chalk95, import_ms20, import_title6, import_url19;
174769
175000
  var init_inspect4 = __esm({
174770
175001
  "src/commands/inspect/index.ts"() {
174771
175002
  "use strict";
174772
175003
  import_error_utils28 = __toESM3(require_dist2());
174773
- import_chalk94 = __toESM3(require_source());
175004
+ import_chalk95 = __toESM3(require_source());
174774
175005
  import_ms20 = __toESM3(require_ms());
174775
175006
  import_title6 = __toESM3(require_lib4());
174776
175007
  import_url19 = require("url");
@@ -174789,7 +175020,7 @@ var init_inspect4 = __esm({
174789
175020
  init_pkg_name();
174790
175021
  init_sleep();
174791
175022
  init_help();
174792
- init_command13();
175023
+ init_command14();
174793
175024
  init_output_manager();
174794
175025
  init_inspect3();
174795
175026
  }
@@ -175206,7 +175437,7 @@ async function add5(client2, args2) {
175206
175437
  }
175207
175438
  const installation = teamInstallations[0];
175208
175439
  output_manager_default.log(
175209
- `Installing ${import_chalk95.default.bold(product.name)} by ${import_chalk95.default.bold(integration.name)} under ${import_chalk95.default.bold(contextName)}`
175440
+ `Installing ${import_chalk96.default.bold(product.name)} by ${import_chalk96.default.bold(integration.name)} under ${import_chalk96.default.bold(contextName)}`
175210
175441
  );
175211
175442
  const metadataSchema = product.metadataSchema;
175212
175443
  const metadataWizard = createMetadataWizard(metadataSchema);
@@ -175426,16 +175657,16 @@ async function selectBillingPlan(client2, billingPlans) {
175426
175657
  }
175427
175658
  async function confirmProductSelection(client2, product, name, metadata, billingPlan) {
175428
175659
  output_manager_default.print("Selected product:\n");
175429
- output_manager_default.print(`${import_chalk95.default.dim(`- ${import_chalk95.default.bold("Name:")} ${name}`)}
175660
+ output_manager_default.print(`${import_chalk96.default.dim(`- ${import_chalk96.default.bold("Name:")} ${name}`)}
175430
175661
  `);
175431
175662
  for (const [key, value] of Object.entries(metadata)) {
175432
175663
  output_manager_default.print(
175433
- `${import_chalk95.default.dim(`- ${import_chalk95.default.bold(`${product.metadataSchema.properties[key]["ui:label"]}:`)} ${value}`)}
175664
+ `${import_chalk96.default.dim(`- ${import_chalk96.default.bold(`${product.metadataSchema.properties[key]["ui:label"]}:`)} ${value}`)}
175434
175665
  `
175435
175666
  );
175436
175667
  }
175437
175668
  output_manager_default.print(
175438
- `${import_chalk95.default.dim(`- ${import_chalk95.default.bold("Plan:")} ${billingPlan.name}`)}
175669
+ `${import_chalk96.default.dim(`- ${import_chalk96.default.bold("Plan:")} ${billingPlan.name}`)}
175439
175670
  `
175440
175671
  );
175441
175672
  return client2.input.confirm("Confirm selection?", true);
@@ -175545,7 +175776,7 @@ async function provisionStorageProduct(client2, product, installation, name, met
175545
175776
  ]
175546
175777
  });
175547
175778
  output_manager_default.spinner(
175548
- `Connecting ${import_chalk95.default.bold(name)} to ${import_chalk95.default.bold(project.name)}...`
175779
+ `Connecting ${import_chalk96.default.bold(name)} to ${import_chalk96.default.bold(project.name)}...`
175549
175780
  );
175550
175781
  try {
175551
175782
  await connectResourceToProject(
@@ -175563,17 +175794,17 @@ async function provisionStorageProduct(client2, product, installation, name, met
175563
175794
  output_manager_default.stopSpinner();
175564
175795
  }
175565
175796
  output_manager_default.log(
175566
- `${import_chalk95.default.bold(name)} successfully connected to ${import_chalk95.default.bold(project.name)}
175797
+ `${import_chalk96.default.bold(name)} successfully connected to ${import_chalk96.default.bold(project.name)}
175567
175798
 
175568
175799
  ${indent_default(`Run ${cmd(`${packageName} env pull`)} to update the environment variables`, 4)}`
175569
175800
  );
175570
175801
  return 0;
175571
175802
  }
175572
- var import_chalk95, import_open3;
175803
+ var import_chalk96, import_open3;
175573
175804
  var init_add10 = __esm({
175574
175805
  "src/commands/integration/add.ts"() {
175575
175806
  "use strict";
175576
- import_chalk95 = __toESM3(require_source());
175807
+ import_chalk96 = __toESM3(require_source());
175577
175808
  import_open3 = __toESM3(require_open());
175578
175809
  init_format_table();
175579
175810
  init_pkg_name();
@@ -175632,7 +175863,7 @@ var init_install2 = __esm({
175632
175863
  init_get_args();
175633
175864
  init_help();
175634
175865
  init_add10();
175635
- init_command14();
175866
+ init_command15();
175636
175867
  init_output_manager();
175637
175868
  init_install();
175638
175869
  }
@@ -175893,7 +176124,7 @@ function outputBalanceInformation(prepaymentInfo, resources, integrationSlug) {
175893
176124
  }
175894
176125
  }
175895
176126
  output_manager_default.log(
175896
- `${import_chalk96.default.bold(`Balances and thresholds for ${integrationSlug}`)}:`
176127
+ `${import_chalk97.default.bold(`Balances and thresholds for ${integrationSlug}`)}:`
175897
176128
  );
175898
176129
  for (const key in mappings) {
175899
176130
  const mapping = mappings[key];
@@ -175919,11 +176150,11 @@ function formattedCurrency(amountInCents) {
175919
176150
  currency: "USD"
175920
176151
  }).format(amountInCents / 100);
175921
176152
  }
175922
- var import_chalk96;
176153
+ var import_chalk97;
175923
176154
  var init_balance2 = __esm({
175924
176155
  "src/commands/integration/balance.ts"() {
175925
176156
  "use strict";
175926
- import_chalk96 = __toESM3(require_source());
176157
+ import_chalk97 = __toESM3(require_source());
175927
176158
  init_output_manager();
175928
176159
  init_get_scope();
175929
176160
  init_fetch_installation_prepayment_info();
@@ -176077,18 +176308,18 @@ async function list4(client2) {
176077
176308
  return 0;
176078
176309
  }
176079
176310
  output_manager_default.log(
176080
- `Integrations in ${import_chalk97.default.bold(contextName)}:
176311
+ `Integrations in ${import_chalk98.default.bold(contextName)}:
176081
176312
  ${table(
176082
176313
  [
176083
176314
  ["Name", "Status", "Product", "Integration", "Projects"].map(
176084
- (header) => import_chalk97.default.bold(import_chalk97.default.cyan(header))
176315
+ (header) => import_chalk98.default.bold(import_chalk98.default.cyan(header))
176085
176316
  ),
176086
176317
  ...results.map((result) => [
176087
- resourceLink(contextName, result) ?? import_chalk97.default.gray("\u2013"),
176318
+ resourceLink(contextName, result) ?? import_chalk98.default.gray("\u2013"),
176088
176319
  resourceStatus(result.status ?? "\u2013"),
176089
- result.product ?? import_chalk97.default.gray("\u2013"),
176090
- integrationLink(result, team) ?? import_chalk97.default.gray("\u2013"),
176091
- import_chalk97.default.grey(result.projects ? result.projects : "\u2013")
176320
+ result.product ?? import_chalk98.default.gray("\u2013"),
176321
+ integrationLink(result, team) ?? import_chalk98.default.gray("\u2013"),
176322
+ import_chalk98.default.grey(result.projects ? result.projects : "\u2013")
176092
176323
  ])
176093
176324
  ],
176094
176325
  { hsep: 8 }
@@ -176096,22 +176327,22 @@ ${table(
176096
176327
  );
176097
176328
  return 0;
176098
176329
  }
176099
- function resourceStatus(status2) {
176330
+ function resourceStatus(status3) {
176100
176331
  const CIRCLE = "\u25CF ";
176101
- const statusTitleCase = (0, import_title7.default)(status2);
176102
- switch (status2) {
176332
+ const statusTitleCase = (0, import_title7.default)(status3);
176333
+ switch (status3) {
176103
176334
  case "initializing":
176104
- return import_chalk97.default.yellow(CIRCLE) + statusTitleCase;
176335
+ return import_chalk98.default.yellow(CIRCLE) + statusTitleCase;
176105
176336
  case "error":
176106
- return import_chalk97.default.red(CIRCLE) + statusTitleCase;
176337
+ return import_chalk98.default.red(CIRCLE) + statusTitleCase;
176107
176338
  case "available":
176108
- return import_chalk97.default.green(CIRCLE) + statusTitleCase;
176339
+ return import_chalk98.default.green(CIRCLE) + statusTitleCase;
176109
176340
  case "suspended":
176110
- return import_chalk97.default.white(CIRCLE) + statusTitleCase;
176341
+ return import_chalk98.default.white(CIRCLE) + statusTitleCase;
176111
176342
  case "limits-exceeded-suspended":
176112
- return `${import_chalk97.default.white(CIRCLE)}Limits exceeded`;
176343
+ return `${import_chalk98.default.white(CIRCLE)}Limits exceeded`;
176113
176344
  default:
176114
- return import_chalk97.default.gray(statusTitleCase);
176345
+ return import_chalk98.default.gray(statusTitleCase);
176115
176346
  }
176116
176347
  }
176117
176348
  function resourceLink(orgSlug, resource) {
@@ -176132,22 +176363,22 @@ function integrationLink(integration, team) {
176132
176363
  if (!integration.configurationId) {
176133
176364
  return integration.integration;
176134
176365
  }
176135
- const boldName = import_chalk97.default.bold(integration.integration);
176366
+ const boldName = import_chalk98.default.bold(integration.integration);
176136
176367
  const integrationDeepLink = buildSSOLink(team, integration.configurationId);
176137
176368
  return output_manager_default.link(boldName, integrationDeepLink, {
176138
176369
  fallback: () => boldName,
176139
176370
  color: false
176140
176371
  });
176141
176372
  }
176142
- var import_chalk97, import_title7;
176373
+ var import_chalk98, import_title7;
176143
176374
  var init_list6 = __esm({
176144
176375
  "src/commands/integration/list.ts"() {
176145
176376
  "use strict";
176146
- import_chalk97 = __toESM3(require_source());
176377
+ import_chalk98 = __toESM3(require_source());
176147
176378
  init_get_scope();
176148
176379
  init_link2();
176149
176380
  init_get_resources();
176150
- init_command16();
176381
+ init_command17();
176151
176382
  init_get_flags_specification();
176152
176383
  init_get_args();
176153
176384
  init_error2();
@@ -176204,7 +176435,7 @@ async function openIntegration(client2, args2) {
176204
176435
  knownIntegrationSlug = !!configuration;
176205
176436
  } catch (error3) {
176206
176437
  output_manager_default.error(
176207
- `Failed to fetch configuration for ${import_chalk98.default.bold(`"${integrationSlug}"`)}: ${error3.message}`
176438
+ `Failed to fetch configuration for ${import_chalk99.default.bold(`"${integrationSlug}"`)}: ${error3.message}`
176208
176439
  );
176209
176440
  return 1;
176210
176441
  } finally {
@@ -176212,19 +176443,19 @@ async function openIntegration(client2, args2) {
176212
176443
  }
176213
176444
  if (!configuration) {
176214
176445
  output_manager_default.error(
176215
- `No configuration found for ${import_chalk98.default.bold(`"${integrationSlug}"`)}.`
176446
+ `No configuration found for ${import_chalk99.default.bold(`"${integrationSlug}"`)}.`
176216
176447
  );
176217
176448
  return 1;
176218
176449
  }
176219
- output_manager_default.print(`Opening the ${import_chalk98.default.bold(integrationSlug)} dashboard...`);
176450
+ output_manager_default.print(`Opening the ${import_chalk99.default.bold(integrationSlug)} dashboard...`);
176220
176451
  (0, import_open4.default)(buildSSOLink(team, configuration.id));
176221
176452
  return 0;
176222
176453
  }
176223
- var import_chalk98, import_open4;
176454
+ var import_chalk99, import_open4;
176224
176455
  var init_open_integration = __esm({
176225
176456
  "src/commands/integration/open-integration.ts"() {
176226
176457
  "use strict";
176227
- import_chalk98 = __toESM3(require_source());
176458
+ import_chalk99 = __toESM3(require_source());
176228
176459
  import_open4 = __toESM3(require_open());
176229
176460
  init_get_scope();
176230
176461
  init_fetch_marketplace_integrations();
@@ -176317,7 +176548,7 @@ async function remove3(client2) {
176317
176548
  );
176318
176549
  output_manager_default.stopSpinner();
176319
176550
  if (!integrationConfiguration) {
176320
- output_manager_default.error(`No integration ${import_chalk99.default.bold(integrationName)} found.`);
176551
+ output_manager_default.error(`No integration ${import_chalk100.default.bold(integrationName)} found.`);
176321
176552
  telemetry2.trackCliArgumentIntegration(integrationName, false);
176322
176553
  return 0;
176323
176554
  }
@@ -176336,26 +176567,26 @@ async function remove3(client2) {
176336
176567
  await removeIntegration(client2, integrationConfiguration, team);
176337
176568
  } catch (error3) {
176338
176569
  output_manager_default.error(
176339
- import_chalk99.default.red(
176340
- `Failed to remove ${import_chalk99.default.bold(integrationName)}: ${error3.message}`
176570
+ import_chalk100.default.red(
176571
+ `Failed to remove ${import_chalk100.default.bold(integrationName)}: ${error3.message}`
176341
176572
  )
176342
176573
  );
176343
176574
  return 1;
176344
176575
  }
176345
- output_manager_default.success(`${import_chalk99.default.bold(integrationName)} successfully removed.`);
176576
+ output_manager_default.success(`${import_chalk100.default.bold(integrationName)} successfully removed.`);
176346
176577
  return 0;
176347
176578
  }
176348
176579
  async function confirmIntegrationRemoval(client2, integration, team) {
176349
176580
  output_manager_default.log(
176350
- `The ${import_chalk99.default.bold(integration)} integration will be removed permanently from team ${import_chalk99.default.bold(team.name)}.`
176581
+ `The ${import_chalk100.default.bold(integration)} integration will be removed permanently from team ${import_chalk100.default.bold(team.name)}.`
176351
176582
  );
176352
- return client2.input.confirm(`${import_chalk99.default.red("Are you sure?")}`, false);
176583
+ return client2.input.confirm(`${import_chalk100.default.red("Are you sure?")}`, false);
176353
176584
  }
176354
- var import_chalk99;
176585
+ var import_chalk100;
176355
176586
  var init_remove_integration2 = __esm({
176356
176587
  "src/commands/integration/remove-integration.ts"() {
176357
176588
  "use strict";
176358
- import_chalk99 = __toESM3(require_source());
176589
+ import_chalk100 = __toESM3(require_source());
176359
176590
  init_output_manager();
176360
176591
  init_get_args();
176361
176592
  init_get_flags_specification();
@@ -176363,7 +176594,7 @@ var init_remove_integration2 = __esm({
176363
176594
  init_error2();
176364
176595
  init_fetch_marketplace_integrations();
176365
176596
  init_remove_integration();
176366
- init_command16();
176597
+ init_command17();
176367
176598
  init_remove3();
176368
176599
  }
176369
176600
  });
@@ -176388,7 +176619,7 @@ async function main11(client2) {
176388
176619
  subcommand,
176389
176620
  subcommandOriginal,
176390
176621
  args: subArgs
176391
- } = getSubcommand(args2.slice(1), COMMAND_CONFIG12);
176622
+ } = getSubcommand(args2.slice(1), COMMAND_CONFIG13);
176392
176623
  const needHelp = flags["--help"];
176393
176624
  function printHelp(command) {
176394
176625
  output_manager_default.print(
@@ -176454,12 +176685,12 @@ async function main11(client2) {
176454
176685
  return remove3(client2);
176455
176686
  }
176456
176687
  default: {
176457
- output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG12));
176688
+ output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG13));
176458
176689
  return 2;
176459
176690
  }
176460
176691
  }
176461
176692
  }
176462
- var COMMAND_CONFIG12;
176693
+ var COMMAND_CONFIG13;
176463
176694
  var init_integration2 = __esm({
176464
176695
  "src/commands/integration/index.ts"() {
176465
176696
  "use strict";
@@ -176473,11 +176704,11 @@ var init_integration2 = __esm({
176473
176704
  init_help();
176474
176705
  init_add10();
176475
176706
  init_balance2();
176476
- init_command16();
176707
+ init_command17();
176477
176708
  init_list6();
176478
176709
  init_open_integration();
176479
176710
  init_remove_integration2();
176480
- COMMAND_CONFIG12 = {
176711
+ COMMAND_CONFIG13 = {
176481
176712
  add: getCommandAliases(addSubcommand5),
176482
176713
  open: getCommandAliases(openSubcommand),
176483
176714
  list: getCommandAliases(listSubcommand6),
@@ -176653,18 +176884,18 @@ async function createThreshold(client2) {
176653
176884
  );
176654
176885
  output_manager_default.stopSpinner();
176655
176886
  if (!targetedResource) {
176656
- output_manager_default.log(`The resource ${import_chalk100.default.bold(resourceName)} was not found.`);
176887
+ output_manager_default.log(`The resource ${import_chalk101.default.bold(resourceName)} was not found.`);
176657
176888
  return 0;
176658
176889
  }
176659
176890
  if (!targetedResource.product?.integrationConfigurationId) {
176660
176891
  output_manager_default.error(
176661
- `The resource ${import_chalk100.default.bold(resourceName)} does not have an integration configuration.`
176892
+ `The resource ${import_chalk101.default.bold(resourceName)} does not have an integration configuration.`
176662
176893
  );
176663
176894
  return 1;
176664
176895
  }
176665
176896
  if (targetedResource.billingPlan?.type !== "prepayment") {
176666
176897
  output_manager_default.error(
176667
- `The resource ${import_chalk100.default.bold(resourceName)} is not a prepayment-based resource.`
176898
+ `The resource ${import_chalk101.default.bold(resourceName)} is not a prepayment-based resource.`
176668
176899
  );
176669
176900
  return 1;
176670
176901
  }
@@ -176692,7 +176923,7 @@ async function createThreshold(client2) {
176692
176923
  }
176693
176924
  if (targetedResource.billingPlan.scope !== "resource") {
176694
176925
  output_manager_default.log(
176695
- `The resource ${import_chalk100.default.bold(resourceName)} uses an installation-level balance.`
176926
+ `The resource ${import_chalk101.default.bold(resourceName)} uses an installation-level balance.`
176696
176927
  );
176697
176928
  return await updateThresholdForInstallation({
176698
176929
  client: client2,
@@ -176806,17 +177037,17 @@ async function updateThresholdForInstallation(props) {
176806
177037
  async function handleUpdateThreshold(props) {
176807
177038
  if (props.resource.billingPlan?.type !== "prepayment") {
176808
177039
  output_manager_default.log(
176809
- `The resource ${import_chalk100.default.bold(props.resource.name)} is not a prepayment-based resource.`
177040
+ `The resource ${import_chalk101.default.bold(props.resource.name)} is not a prepayment-based resource.`
176810
177041
  );
176811
177042
  return 0;
176812
177043
  }
176813
177044
  if (!props.resource.product?.integrationConfigurationId) {
176814
177045
  output_manager_default.log(
176815
- `The resource ${import_chalk100.default.bold(props.resource.name)} does not have an integration configuration.`
177046
+ `The resource ${import_chalk101.default.bold(props.resource.name)} does not have an integration configuration.`
176816
177047
  );
176817
177048
  return 0;
176818
177049
  }
176819
- const entityTextReference = props.isInstallationLevel ? `installation ${import_chalk100.default.bold(props.resource.product?.name)}` : `resource ${import_chalk100.default.bold(props.resource.name)}`;
177050
+ const entityTextReference = props.isInstallationLevel ? `installation ${import_chalk101.default.bold(props.resource.product?.name)}` : `resource ${import_chalk101.default.bold(props.resource.name)}`;
176820
177051
  if (props.existingThreshold) {
176821
177052
  const shouldOverwriteThreshold = props.skipConfirmWithYes || await props.client.input.confirm(
176822
177053
  `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?`,
@@ -176873,18 +177104,18 @@ async function handleUpdateThreshold(props) {
176873
177104
  output_manager_default.success(`Threshold for ${entityTextReference} created successfully.`);
176874
177105
  return 0;
176875
177106
  }
176876
- var import_chalk100;
177107
+ var import_chalk101;
176877
177108
  var init_create_threshold2 = __esm({
176878
177109
  "src/commands/integration-resource/create-threshold.ts"() {
176879
177110
  "use strict";
176880
- import_chalk100 = __toESM3(require_source());
177111
+ import_chalk101 = __toESM3(require_source());
176881
177112
  init_output_manager();
176882
177113
  init_error2();
176883
177114
  init_get_args();
176884
177115
  init_get_flags_specification();
176885
177116
  init_get_resources();
176886
177117
  init_create_threshold();
176887
- init_command15();
177118
+ init_command16();
176888
177119
  init_get_scope();
176889
177120
  init_fetch_installation_prepayment_info();
176890
177121
  init_update_threshold();
@@ -177020,7 +177251,7 @@ async function disconnect2(client2) {
177020
177251
  );
177021
177252
  output_manager_default.stopSpinner();
177022
177253
  if (!targetedResource) {
177023
- output_manager_default.error(`No resource ${import_chalk101.default.bold(resourceName)} found.`);
177254
+ output_manager_default.error(`No resource ${import_chalk102.default.bold(resourceName)} found.`);
177024
177255
  return 0;
177025
177256
  }
177026
177257
  if (parsedArguments.flags["--all"]) {
@@ -177070,7 +177301,7 @@ async function handleDisconnectProject(client2, resource, projectName, skipConfi
177070
177301
  );
177071
177302
  if (!project) {
177072
177303
  output_manager_default.log(
177073
- `Could not find project ${import_chalk101.default.bold(projectName)} connected to resource ${import_chalk101.default.bold(resource.name)}.`
177304
+ `Could not find project ${import_chalk102.default.bold(projectName)} connected to resource ${import_chalk102.default.bold(resource.name)}.`
177074
177305
  );
177075
177306
  return 0;
177076
177307
  }
@@ -177082,7 +177313,7 @@ async function handleDisconnectProject(client2, resource, projectName, skipConfi
177082
177313
  output_manager_default.spinner("Disconnecting resource\u2026", 500);
177083
177314
  await disconnectResourceFromProject(client2, resource, project);
177084
177315
  output_manager_default.success(
177085
- `Disconnected ${import_chalk101.default.bold(project.name)} from ${import_chalk101.default.bold(resource.name)}`
177316
+ `Disconnected ${import_chalk102.default.bold(project.name)} from ${import_chalk102.default.bold(resource.name)}`
177086
177317
  );
177087
177318
  } catch (error3) {
177088
177319
  output_manager_default.error(
@@ -177094,7 +177325,7 @@ async function handleDisconnectProject(client2, resource, projectName, skipConfi
177094
177325
  }
177095
177326
  async function handleDisconnectAllProjects(client2, resource, skipConfirmation) {
177096
177327
  if (resource.projectsMetadata?.length === 0) {
177097
- output_manager_default.log(`${import_chalk101.default.bold(resource.name)} has no projects to disconnect.`);
177328
+ output_manager_default.log(`${import_chalk102.default.bold(resource.name)} has no projects to disconnect.`);
177098
177329
  return;
177099
177330
  }
177100
177331
  if (!skipConfirmation && !await confirmDisconnectAllProjects(client2, resource)) {
@@ -177104,7 +177335,7 @@ async function handleDisconnectAllProjects(client2, resource, skipConfirmation)
177104
177335
  output_manager_default.spinner("Disconnecting projects from resource\u2026", 500);
177105
177336
  await disconnectResourceFromAllProjects(client2, resource);
177106
177337
  output_manager_default.success(
177107
- `Disconnected all projects from ${import_chalk101.default.bold(resource.name)}`
177338
+ `Disconnected all projects from ${import_chalk102.default.bold(resource.name)}`
177108
177339
  );
177109
177340
  } catch (error3) {
177110
177341
  throw new FailedError(
@@ -177115,9 +177346,9 @@ async function handleDisconnectAllProjects(client2, resource, skipConfirmation)
177115
177346
  }
177116
177347
  async function confirmDisconnectProject(client2, resource, project) {
177117
177348
  output_manager_default.log(
177118
- `The resource ${import_chalk101.default.bold(resource.name)} will be disconnected from project ${import_chalk101.default.bold(project.name)}.`
177349
+ `The resource ${import_chalk102.default.bold(resource.name)} will be disconnected from project ${import_chalk102.default.bold(project.name)}.`
177119
177350
  );
177120
- return client2.input.confirm(`${import_chalk101.default.red("Are you sure?")}`, false);
177351
+ return client2.input.confirm(`${import_chalk102.default.red("Are you sure?")}`, false);
177121
177352
  }
177122
177353
  async function confirmDisconnectAllProjects(client2, resource) {
177123
177354
  output_manager_default.log("The following projects will be disconnected:");
@@ -177128,13 +177359,13 @@ async function confirmDisconnectAllProjects(client2, resource) {
177128
177359
  output_manager_default.print(` ${project.name}
177129
177360
  `);
177130
177361
  }
177131
- return client2.input.confirm(import_chalk101.default.red("Are you sure?"), false);
177362
+ return client2.input.confirm(import_chalk102.default.red("Are you sure?"), false);
177132
177363
  }
177133
- var import_chalk101;
177364
+ var import_chalk102;
177134
177365
  var init_disconnect4 = __esm({
177135
177366
  "src/commands/integration-resource/disconnect.ts"() {
177136
177367
  "use strict";
177137
- import_chalk101 = __toESM3(require_source());
177368
+ import_chalk102 = __toESM3(require_source());
177138
177369
  init_output_manager();
177139
177370
  init_get_args();
177140
177371
  init_get_flags_specification();
@@ -177145,7 +177376,7 @@ var init_disconnect4 = __esm({
177145
177376
  init_link2();
177146
177377
  init_disconnect3();
177147
177378
  init_types();
177148
- init_command15();
177379
+ init_command16();
177149
177380
  }
177150
177381
  });
177151
177382
 
@@ -177239,7 +177470,7 @@ async function remove4(client2) {
177239
177470
  );
177240
177471
  output_manager_default.stopSpinner();
177241
177472
  if (!targetedResource) {
177242
- output_manager_default.error(`No resource ${import_chalk102.default.bold(resourceName)} found.`);
177473
+ output_manager_default.error(`No resource ${import_chalk103.default.bold(resourceName)} found.`);
177243
177474
  return 0;
177244
177475
  }
177245
177476
  if (disconnectAll) {
@@ -177270,7 +177501,7 @@ async function handleDeleteResource(client2, team, resource, options) {
177270
177501
  const hasProjects = resource.projectsMetadata && resource.projectsMetadata?.length > 0;
177271
177502
  if (!options?.skipProjectCheck && hasProjects) {
177272
177503
  output_manager_default.error(
177273
- `Cannot delete resource ${import_chalk102.default.bold(resource.name)} while it has connected projects. Please disconnect any projects using this resource first or use the \`--disconnect-all\` flag.`
177504
+ `Cannot delete resource ${import_chalk103.default.bold(resource.name)} while it has connected projects. Please disconnect any projects using this resource first or use the \`--disconnect-all\` flag.`
177274
177505
  );
177275
177506
  return 1;
177276
177507
  }
@@ -177281,24 +177512,24 @@ async function handleDeleteResource(client2, team, resource, options) {
177281
177512
  try {
177282
177513
  output_manager_default.spinner("Deleting resource\u2026", 500);
177283
177514
  await deleteResource(client2, resource, team);
177284
- output_manager_default.success(`${import_chalk102.default.bold(resource.name)} successfully deleted.`);
177515
+ output_manager_default.success(`${import_chalk103.default.bold(resource.name)} successfully deleted.`);
177285
177516
  } catch (error3) {
177286
177517
  output_manager_default.error(
177287
- `A problem occurred when attempting to delete ${import_chalk102.default.bold(resource.name)}: ${error3.message}`
177518
+ `A problem occurred when attempting to delete ${import_chalk103.default.bold(resource.name)}: ${error3.message}`
177288
177519
  );
177289
177520
  return 1;
177290
177521
  }
177291
177522
  return 0;
177292
177523
  }
177293
177524
  async function confirmDeleteResource(client2, resource) {
177294
- output_manager_default.log(`${import_chalk102.default.bold(resource.name)} will be deleted permanently.`);
177295
- return client2.input.confirm(`${import_chalk102.default.red("Are you sure?")}`, false);
177525
+ output_manager_default.log(`${import_chalk103.default.bold(resource.name)} will be deleted permanently.`);
177526
+ return client2.input.confirm(`${import_chalk103.default.red("Are you sure?")}`, false);
177296
177527
  }
177297
- var import_chalk102;
177528
+ var import_chalk103;
177298
177529
  var init_remove_resource = __esm({
177299
177530
  "src/commands/integration-resource/remove-resource.ts"() {
177300
177531
  "use strict";
177301
- import_chalk102 = __toESM3(require_source());
177532
+ import_chalk103 = __toESM3(require_source());
177302
177533
  init_output_manager();
177303
177534
  init_get_args();
177304
177535
  init_get_flags_specification();
@@ -177308,7 +177539,7 @@ var init_remove_resource = __esm({
177308
177539
  init_get_resources();
177309
177540
  init_types();
177310
177541
  init_remove4();
177311
- init_command15();
177542
+ init_command16();
177312
177543
  init_disconnect4();
177313
177544
  }
177314
177545
  });
@@ -177331,7 +177562,7 @@ async function main12(client2) {
177331
177562
  );
177332
177563
  const { subcommand, subcommandOriginal } = getSubcommand(
177333
177564
  args2.slice(1),
177334
- COMMAND_CONFIG13
177565
+ COMMAND_CONFIG14
177335
177566
  );
177336
177567
  const needHelp = flags["--help"];
177337
177568
  if (!subcommand && needHelp) {
@@ -177377,12 +177608,12 @@ async function main12(client2) {
177377
177608
  return disconnect2(client2);
177378
177609
  }
177379
177610
  default: {
177380
- output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG13));
177611
+ output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG14));
177381
177612
  return 2;
177382
177613
  }
177383
177614
  }
177384
177615
  }
177385
- var COMMAND_CONFIG13;
177616
+ var COMMAND_CONFIG14;
177386
177617
  var init_integration_resource2 = __esm({
177387
177618
  "src/commands/integration-resource/index.ts"() {
177388
177619
  "use strict";
@@ -177394,11 +177625,11 @@ var init_integration_resource2 = __esm({
177394
177625
  init_get_subcommand();
177395
177626
  init_integration_resource();
177396
177627
  init_help();
177397
- init_command15();
177628
+ init_command16();
177398
177629
  init_create_threshold2();
177399
177630
  init_disconnect4();
177400
177631
  init_remove_resource();
177401
- COMMAND_CONFIG13 = {
177632
+ COMMAND_CONFIG14 = {
177402
177633
  remove: getCommandAliases(removeSubcommand6),
177403
177634
  disconnect: getCommandAliases(disconnectSubcommand2),
177404
177635
  "create-threshold": getCommandAliases(createThresholdSubcommand)
@@ -177519,7 +177750,7 @@ var init_link4 = __esm({
177519
177750
  init_ensure_link();
177520
177751
  init_repo();
177521
177752
  init_help();
177522
- init_command17();
177753
+ init_command18();
177523
177754
  init_get_flags_specification();
177524
177755
  init_error2();
177525
177756
  init_output_manager();
@@ -177744,7 +177975,7 @@ async function list5(client2) {
177744
177975
  }
177745
177976
  const projectSlugLink = formatProject(contextName, project.name);
177746
177977
  if (!singleDeployment) {
177747
- spinner(`Fetching deployments in ${import_chalk103.default.bold(contextName)}`);
177978
+ spinner(`Fetching deployments in ${import_chalk104.default.bold(contextName)}`);
177748
177979
  const start = Date.now();
177749
177980
  debug2("Fetching deployments");
177750
177981
  const query = new URLSearchParams({ limit: "20", projectId: project.id });
@@ -177784,7 +178015,7 @@ async function list5(client2) {
177784
178015
  const urls = [];
177785
178016
  const tablePrint = table(
177786
178017
  [
177787
- headers.map((header) => import_chalk103.default.bold(import_chalk103.default.cyan(header))),
178018
+ headers.map((header) => import_chalk104.default.bold(import_chalk104.default.cyan(header))),
177788
178019
  ...deployments.sort(sortByCreatedAt).map((dep) => {
177789
178020
  urls.push(`https://${dep.url}`);
177790
178021
  const proposedExp = dep.proposedExpiration ? toDate(Math.min(Date.now(), dep.proposedExpiration)) : "No expiration";
@@ -177794,16 +178025,16 @@ async function list5(client2) {
177794
178025
  const targetName = dep.customEnvironment?.slug || (dep.target === "production" ? "Production" : "Preview");
177795
178026
  const targetSlug = dep.customEnvironment?.id || dep.target || "preview";
177796
178027
  return [
177797
- import_chalk103.default.gray(createdAt),
178028
+ import_chalk104.default.gray(createdAt),
177798
178029
  `https://${dep.url}`,
177799
178030
  stateString2(dep.readyState || ""),
177800
178031
  formatEnvironment(contextName, project.name, {
177801
178032
  id: targetSlug,
177802
178033
  slug: targetName
177803
178034
  }),
177804
- ...!showPolicy ? [import_chalk103.default.gray(getDeploymentDuration(dep))] : [],
177805
- ...!showPolicy ? [import_chalk103.default.gray(dep.creator?.username)] : [],
177806
- ...showPolicy ? [import_chalk103.default.gray(proposedExp)] : []
178035
+ ...!showPolicy ? [import_chalk104.default.gray(getDeploymentDuration(dep))] : [],
178036
+ ...!showPolicy ? [import_chalk104.default.gray(dep.creator?.username)] : [],
178037
+ ...showPolicy ? [import_chalk104.default.gray(proposedExp)] : []
177807
178038
  ];
177808
178039
  }).filter(
177809
178040
  (app2) => (
@@ -177850,17 +178081,17 @@ function stateString2(s) {
177850
178081
  case "BUILDING":
177851
178082
  case "DEPLOYING":
177852
178083
  case "ANALYZING":
177853
- return import_chalk103.default.yellow(CIRCLE) + sTitle;
178084
+ return import_chalk104.default.yellow(CIRCLE) + sTitle;
177854
178085
  case "ERROR":
177855
- return import_chalk103.default.red(CIRCLE) + sTitle;
178086
+ return import_chalk104.default.red(CIRCLE) + sTitle;
177856
178087
  case "READY":
177857
- return import_chalk103.default.green(CIRCLE) + sTitle;
178088
+ return import_chalk104.default.green(CIRCLE) + sTitle;
177858
178089
  case "QUEUED":
177859
- return import_chalk103.default.white(CIRCLE) + sTitle;
178090
+ return import_chalk104.default.white(CIRCLE) + sTitle;
177860
178091
  case "CANCELED":
177861
- return import_chalk103.default.gray(sTitle);
178092
+ return import_chalk104.default.gray(sTitle);
177862
178093
  default:
177863
- return import_chalk103.default.gray("UNKNOWN");
178094
+ return import_chalk104.default.gray("UNKNOWN");
177864
178095
  }
177865
178096
  }
177866
178097
  function sortByCreatedAt(a, b) {
@@ -177876,12 +178107,12 @@ function filterUniqueApps() {
177876
178107
  return true;
177877
178108
  };
177878
178109
  }
177879
- var import_ms21, import_chalk103, import_title8, import_error_utils29;
178110
+ var import_ms21, import_chalk104, import_title8, import_error_utils29;
177880
178111
  var init_list8 = __esm({
177881
178112
  "src/commands/list/index.ts"() {
177882
178113
  "use strict";
177883
178114
  import_ms21 = __toESM3(require_ms());
177884
- import_chalk103 = __toESM3(require_source());
178115
+ import_chalk104 = __toESM3(require_source());
177885
178116
  import_title8 = __toESM3(require_lib4());
177886
178117
  init_table();
177887
178118
  init_get_args();
@@ -177898,7 +178129,7 @@ var init_list8 = __esm({
177898
178129
  init_errors_ts();
177899
178130
  import_error_utils29 = __toESM3(require_dist2());
177900
178131
  init_help();
177901
- init_command18();
178132
+ init_command19();
177902
178133
  init_parse_target();
177903
178134
  init_get_flags_specification();
177904
178135
  init_get_deployment();
@@ -178045,7 +178276,7 @@ async function logs(client2) {
178045
178276
  } catch {
178046
178277
  }
178047
178278
  spinner(
178048
- `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk104.default.bold(contextName)}`
178279
+ `Fetching deployment "${deploymentIdOrHost}" in ${import_chalk105.default.bold(contextName)}`
178049
178280
  );
178050
178281
  let deployment;
178051
178282
  try {
@@ -178081,19 +178312,19 @@ function printDisclaimer(deployment) {
178081
178312
  `This command now displays runtime logs. To access your build logs, run \`vercel inspect --logs ${deployment.url}\``
178082
178313
  );
178083
178314
  output_manager_default.print(
178084
- `Displaying runtime logs for deployment ${deployment.url} (${import_chalk104.default.dim(
178315
+ `Displaying runtime logs for deployment ${deployment.url} (${import_chalk105.default.dim(
178085
178316
  deployment.id
178086
- )}) starting from ${import_chalk104.default.bold((0, import_format3.default)(Date.now(), dateTimeFormat2))}
178317
+ )}) starting from ${import_chalk105.default.bold((0, import_format3.default)(Date.now(), dateTimeFormat2))}
178087
178318
 
178088
178319
  `
178089
178320
  );
178090
178321
  }
178091
- var import_error_utils30, import_chalk104, import_format3, deprecatedFlags, dateTimeFormat2;
178322
+ var import_error_utils30, import_chalk105, import_format3, deprecatedFlags, dateTimeFormat2;
178092
178323
  var init_logs3 = __esm({
178093
178324
  "src/commands/logs/index.ts"() {
178094
178325
  "use strict";
178095
178326
  import_error_utils30 = __toESM3(require_dist2());
178096
- import_chalk104 = __toESM3(require_source());
178327
+ import_chalk105 = __toESM3(require_source());
178097
178328
  import_format3 = __toESM3(require_format());
178098
178329
  init_build_state();
178099
178330
  init_is_deploying();
@@ -178109,7 +178340,7 @@ var init_logs3 = __esm({
178109
178340
  init_logs2();
178110
178341
  init_help();
178111
178342
  init_list8();
178112
- init_command21();
178343
+ init_command22();
178113
178344
  init_output_manager();
178114
178345
  deprecatedFlags = [
178115
178346
  "--follow",
@@ -178184,14 +178415,14 @@ async function login2(client2) {
178184
178415
  }).on("SIGINT", () => process.exit(0));
178185
178416
  rl.question(
178186
178417
  `
178187
- Visit ${import_chalk105.default.bold(
178418
+ Visit ${import_chalk106.default.bold(
178188
178419
  output_manager_default.link(
178189
178420
  verification_uri.replace("https://", ""),
178190
178421
  verification_uri_complete,
178191
178422
  { color: false, fallback: () => verification_uri_complete }
178192
178423
  )
178193
- )}${output_manager_default.supportsHyperlink ? ` and enter ${import_chalk105.default.bold(user_code)}` : ""}
178194
- ${import_chalk105.default.grey("Press [ENTER] to open the browser")}
178424
+ )}${output_manager_default.supportsHyperlink ? ` and enter ${import_chalk106.default.bold(user_code)}` : ""}
178425
+ ${import_chalk106.default.grey("Press [ENTER] to open the browser")}
178195
178426
  `,
178196
178427
  () => {
178197
178428
  open5.default(verification_uri_complete);
@@ -178267,12 +178498,12 @@ async function login2(client2) {
178267
178498
  client2.writeToConfigFile();
178268
178499
  output_manager_default.debug(`Saved credentials in "${humanizePath(global_path_default())}"`);
178269
178500
  output_manager_default.print(`
178270
- ${import_chalk105.default.cyan("Congratulations!")} You are now signed in.
178501
+ ${import_chalk106.default.cyan("Congratulations!")} You are now signed in.
178271
178502
 
178272
178503
  To deploy something, run ${getCommandName()}.
178273
178504
 
178274
178505
  ${emoji("tip")} To deploy every commit automatically,
178275
- connect a Git Repository (${import_chalk105.default.bold(output_manager_default.link("vercel.link/git", "https://vercel.link/git", { color: false }))}).
178506
+ connect a Git Repository (${import_chalk106.default.bold(output_manager_default.link("vercel.link/git", "https://vercel.link/git", { color: false }))}).
178276
178507
  `);
178277
178508
  return;
178278
178509
  }
@@ -178285,12 +178516,12 @@ async function login2(client2) {
178285
178516
  printError(error3);
178286
178517
  return 1;
178287
178518
  }
178288
- var import_node_readline, import_chalk105, open5, import_ansi_escapes6;
178519
+ var import_node_readline, import_chalk106, open5, import_ansi_escapes6;
178289
178520
  var init_future = __esm({
178290
178521
  "src/commands/login/future.ts"() {
178291
178522
  "use strict";
178292
178523
  import_node_readline = __toESM3(require("readline"));
178293
- import_chalk105 = __toESM3(require_source());
178524
+ import_chalk106 = __toESM3(require_source());
178294
178525
  open5 = __toESM3(require_open());
178295
178526
  import_ansi_escapes6 = __toESM3(require_ansi_escapes());
178296
178527
  init_error2();
@@ -178370,7 +178601,7 @@ async function login3(client2) {
178370
178601
  writeToConfigFile(client2.config);
178371
178602
  output_manager_default.debug(`Saved credentials in "${humanizePath(global_path_default())}"`);
178372
178603
  output_manager_default.print(
178373
- `${import_chalk106.default.cyan("Congratulations!")} You are now logged in. In order to deploy something, run ${getCommandName()}.
178604
+ `${import_chalk107.default.cyan("Congratulations!")} You are now logged in. In order to deploy something, run ${getCommandName()}.
178374
178605
  `
178375
178606
  );
178376
178607
  output_manager_default.print(
@@ -178382,12 +178613,12 @@ async function login3(client2) {
178382
178613
  );
178383
178614
  return 0;
178384
178615
  }
178385
- var import_email_validator, import_chalk106;
178616
+ var import_email_validator, import_chalk107;
178386
178617
  var init_login3 = __esm({
178387
178618
  "src/commands/login/index.ts"() {
178388
178619
  "use strict";
178389
178620
  import_email_validator = __toESM3(require_email_validator());
178390
- import_chalk106 = __toESM3(require_source());
178621
+ import_chalk107 = __toESM3(require_source());
178391
178622
  init_humanize_path();
178392
178623
  init_get_args();
178393
178624
  init_prompt();
@@ -178401,7 +178632,7 @@ var init_login3 = __esm({
178401
178632
  init_global_path();
178402
178633
  init_files();
178403
178634
  init_help();
178404
- init_command19();
178635
+ init_command20();
178405
178636
  init_update_current_team_after_login();
178406
178637
  init_get_flags_specification();
178407
178638
  init_error2();
@@ -178550,7 +178781,7 @@ var init_logout2 = __esm({
178550
178781
  init_errors_ts();
178551
178782
  import_error_utils32 = __toESM3(require_dist2());
178552
178783
  init_help();
178553
- init_command20();
178784
+ init_command21();
178554
178785
  init_get_flags_specification();
178555
178786
  init_output_manager();
178556
178787
  init_logout();
@@ -178574,7 +178805,7 @@ async function pull2(client2) {
178574
178805
  client2.config.currentTeam = org.type === "team" ? org.id : void 0;
178575
178806
  const { contextName } = await getScope(client2);
178576
178807
  output_manager_default.spinner(
178577
- `Fetching microfrontends configuration in ${import_chalk107.default.bold(contextName)}`
178808
+ `Fetching microfrontends configuration in ${import_chalk108.default.bold(contextName)}`
178578
178809
  );
178579
178810
  let parsedArgs;
178580
178811
  const flagsSpecification = getFlagsSpecification(pullSubcommand2.options);
@@ -178622,11 +178853,11 @@ async function pull2(client2) {
178622
178853
  const microfrontendsStamp = stamp_default();
178623
178854
  output_manager_default.print(
178624
178855
  `${prependEmoji(
178625
- `Downloaded microfrontends configuration to ${import_chalk107.default.bold(
178856
+ `Downloaded microfrontends configuration to ${import_chalk108.default.bold(
178626
178857
  humanizePath(
178627
178858
  (0, import_node_path5.join)(currentDirectory, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS)
178628
178859
  )
178629
- )} ${import_chalk107.default.gray(microfrontendsStamp())}`,
178860
+ )} ${import_chalk108.default.gray(microfrontendsStamp())}`,
178630
178861
  emoji("success")
178631
178862
  )}
178632
178863
  `
@@ -178638,11 +178869,11 @@ async function pull2(client2) {
178638
178869
  return 1;
178639
178870
  }
178640
178871
  }
178641
- var import_chalk107, import_node_path5, import_fs_extra23, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS;
178872
+ var import_chalk108, import_node_path5, import_fs_extra23, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS;
178642
178873
  var init_pull5 = __esm({
178643
178874
  "src/commands/microfrontends/pull.ts"() {
178644
178875
  "use strict";
178645
- import_chalk107 = __toESM3(require_source());
178876
+ import_chalk108 = __toESM3(require_source());
178646
178877
  import_node_path5 = require("path");
178647
178878
  init_output_manager();
178648
178879
  init_get_scope();
@@ -178651,7 +178882,7 @@ var init_pull5 = __esm({
178651
178882
  init_humanize_path();
178652
178883
  init_stamp();
178653
178884
  import_fs_extra23 = __toESM3(require_lib());
178654
- init_command22();
178885
+ init_command23();
178655
178886
  init_get_flags_specification();
178656
178887
  init_get_args();
178657
178888
  init_error2();
@@ -178702,7 +178933,7 @@ async function main13(client2) {
178702
178933
  }
178703
178934
  let { subcommand, subcommandOriginal } = getSubcommand(
178704
178935
  parsedArgs.args.slice(1),
178705
- COMMAND_CONFIG14
178936
+ COMMAND_CONFIG15
178706
178937
  );
178707
178938
  const needHelp = parsedArgs.flags["--help"];
178708
178939
  if (!subcommand && needHelp) {
@@ -178730,14 +178961,14 @@ async function main13(client2) {
178730
178961
  telemetry2.trackCliSubcommandPull(subcommandOriginal);
178731
178962
  return pull2(client2);
178732
178963
  default:
178733
- output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG14));
178964
+ output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG15));
178734
178965
  output_manager_default.print(
178735
178966
  help2(microfrontendsCommand, { columns: client2.stderr.columns })
178736
178967
  );
178737
178968
  return 2;
178738
178969
  }
178739
178970
  }
178740
- var COMMAND_CONFIG14;
178971
+ var COMMAND_CONFIG15;
178741
178972
  var init_microfrontends2 = __esm({
178742
178973
  "src/commands/microfrontends/index.ts"() {
178743
178974
  "use strict";
@@ -178746,13 +178977,13 @@ var init_microfrontends2 = __esm({
178746
178977
  init_error2();
178747
178978
  init_help();
178748
178979
  init_pull5();
178749
- init_command22();
178980
+ init_command23();
178750
178981
  init_get_flags_specification();
178751
178982
  init_output_manager();
178752
178983
  init_commands();
178753
178984
  init_get_subcommand();
178754
178985
  init_microfrontends();
178755
- COMMAND_CONFIG14 = {
178986
+ COMMAND_CONFIG15 = {
178756
178987
  pull: getCommandAliases(pullSubcommand2)
178757
178988
  };
178758
178989
  }
@@ -178795,12 +179026,12 @@ async function add6(client2, argv) {
178795
179026
  const { args: args2 } = parsedArgs;
178796
179027
  if (args2.length !== 1) {
178797
179028
  output_manager_default.error(
178798
- `Invalid number of arguments. Usage: ${import_chalk108.default.cyan(
179029
+ `Invalid number of arguments. Usage: ${import_chalk109.default.cyan(
178799
179030
  `${getCommandName("project add <name>")}`
178800
179031
  )}`
178801
179032
  );
178802
179033
  if (args2.length > 1) {
178803
- const example = import_chalk108.default.cyan(
179034
+ const example = import_chalk109.default.cyan(
178804
179035
  `${getCommandName(`project add "${args2.join(" ")}"`)}`
178805
179036
  );
178806
179037
  output_manager_default.log(
@@ -178828,24 +179059,24 @@ async function add6(client2, argv) {
178828
179059
  const elapsed2 = (0, import_ms22.default)(Date.now() - start);
178829
179060
  const { contextName } = await getScope(client2);
178830
179061
  output_manager_default.log(
178831
- `${import_chalk108.default.cyan("Success!")} Project ${import_chalk108.default.bold(
179062
+ `${import_chalk109.default.cyan("Success!")} Project ${import_chalk109.default.bold(
178832
179063
  name.toLowerCase()
178833
- )} added (${import_chalk108.default.bold(contextName)}) ${import_chalk108.default.gray(`[${elapsed2}]`)}`
179064
+ )} added (${import_chalk109.default.bold(contextName)}) ${import_chalk109.default.gray(`[${elapsed2}]`)}`
178834
179065
  );
178835
179066
  return 0;
178836
179067
  }
178837
- var import_chalk108, import_ms22;
179068
+ var import_chalk109, import_ms22;
178838
179069
  var init_add12 = __esm({
178839
179070
  "src/commands/project/add.ts"() {
178840
179071
  "use strict";
178841
- import_chalk108 = __toESM3(require_source());
179072
+ import_chalk109 = __toESM3(require_source());
178842
179073
  import_ms22 = __toESM3(require_ms());
178843
179074
  init_errors_ts();
178844
179075
  init_pkg_name();
178845
179076
  init_create_project();
178846
179077
  init_output_manager();
178847
179078
  init_add11();
178848
- init_command23();
179079
+ init_command24();
178849
179080
  init_get_args();
178850
179081
  init_get_flags_specification();
178851
179082
  init_error2();
@@ -178937,7 +179168,7 @@ async function inspect4(client2, argv) {
178937
179168
  telemetry2.trackCliFlagYes(parsedArgs.flags["--yes"]);
178938
179169
  if (args2.length !== 0 && args2.length !== 1) {
178939
179170
  output_manager_default.error(
178940
- `Invalid number of arguments. Usage: ${import_chalk109.default.cyan(
179171
+ `Invalid number of arguments. Usage: ${import_chalk110.default.cyan(
178941
179172
  `${getCommandName("project inspect <name>")}`
178942
179173
  )}`
178943
179174
  );
@@ -178952,57 +179183,57 @@ async function inspect4(client2, argv) {
178952
179183
  });
178953
179184
  const org = await getTeamById(client2, project.accountId);
178954
179185
  const projectSlugLink = formatProject(org.slug, project.name);
178955
- output_manager_default.log(`Found Project ${projectSlugLink} ${import_chalk109.default.gray(inspectStamp())}`);
179186
+ output_manager_default.log(`Found Project ${projectSlugLink} ${import_chalk110.default.gray(inspectStamp())}`);
178956
179187
  output_manager_default.print("\n");
178957
- output_manager_default.print(import_chalk109.default.bold(" General\n\n"));
178958
- output_manager_default.print(` ${import_chalk109.default.cyan("ID")} ${project.id}
179188
+ output_manager_default.print(import_chalk110.default.bold(" General\n\n"));
179189
+ output_manager_default.print(` ${import_chalk110.default.cyan("ID")} ${project.id}
178959
179190
  `);
178960
- output_manager_default.print(` ${import_chalk109.default.cyan("Name")} ${project.name}
179191
+ output_manager_default.print(` ${import_chalk110.default.cyan("Name")} ${project.name}
178961
179192
  `);
178962
- output_manager_default.print(` ${import_chalk109.default.cyan("Owner")} ${org.name}
179193
+ output_manager_default.print(` ${import_chalk110.default.cyan("Owner")} ${org.name}
178963
179194
  `);
178964
179195
  output_manager_default.print(
178965
- ` ${import_chalk109.default.cyan("Created At")} ${formatDate(project.createdAt)}
179196
+ ` ${import_chalk110.default.cyan("Created At")} ${formatDate(project.createdAt)}
178966
179197
  `
178967
179198
  );
178968
179199
  output_manager_default.print(
178969
- ` ${import_chalk109.default.cyan("Root Directory")} ${project.rootDirectory ?? "."}
179200
+ ` ${import_chalk110.default.cyan("Root Directory")} ${project.rootDirectory ?? "."}
178970
179201
  `
178971
179202
  );
178972
179203
  output_manager_default.print(
178973
- ` ${import_chalk109.default.cyan("Node.js Version")} ${project.nodeVersion}
179204
+ ` ${import_chalk110.default.cyan("Node.js Version")} ${project.nodeVersion}
178974
179205
  `
178975
179206
  );
178976
179207
  const framework = import_frameworks7.frameworkList.find((f) => f.slug === project.framework);
178977
179208
  output_manager_default.print("\n");
178978
- output_manager_default.print(import_chalk109.default.bold(" Framework Settings\n\n"));
178979
- output_manager_default.print(` ${import_chalk109.default.cyan("Framework Preset")} ${framework?.name}
179209
+ output_manager_default.print(import_chalk110.default.bold(" Framework Settings\n\n"));
179210
+ output_manager_default.print(` ${import_chalk110.default.cyan("Framework Preset")} ${framework?.name}
178980
179211
  `);
178981
179212
  output_manager_default.print(
178982
- ` ${import_chalk109.default.cyan("Build Command")} ${project.buildCommand ?? import_chalk109.default.dim(framework?.settings?.buildCommand.placeholder ?? "None")}
179213
+ ` ${import_chalk110.default.cyan("Build Command")} ${project.buildCommand ?? import_chalk110.default.dim(framework?.settings?.buildCommand.placeholder ?? "None")}
178983
179214
  `
178984
179215
  );
178985
179216
  output_manager_default.print(
178986
- ` ${import_chalk109.default.cyan("Output Directory")} ${project.outputDirectory ?? import_chalk109.default.dim(framework?.settings?.outputDirectory.placeholder ?? "None")}
179217
+ ` ${import_chalk110.default.cyan("Output Directory")} ${project.outputDirectory ?? import_chalk110.default.dim(framework?.settings?.outputDirectory.placeholder ?? "None")}
178987
179218
  `
178988
179219
  );
178989
179220
  output_manager_default.print(
178990
- ` ${import_chalk109.default.cyan("Install Command")} ${project.installCommand ?? import_chalk109.default.dim(framework?.settings?.installCommand.placeholder ?? "None")}
179221
+ ` ${import_chalk110.default.cyan("Install Command")} ${project.installCommand ?? import_chalk110.default.dim(framework?.settings?.installCommand.placeholder ?? "None")}
178991
179222
  `
178992
179223
  );
178993
179224
  output_manager_default.print("\n");
178994
179225
  return 0;
178995
179226
  }
178996
- var import_chalk109, import_frameworks7;
179227
+ var import_chalk110, import_frameworks7;
178997
179228
  var init_inspect6 = __esm({
178998
179229
  "src/commands/project/inspect.ts"() {
178999
179230
  "use strict";
179000
- import_chalk109 = __toESM3(require_source());
179231
+ import_chalk110 = __toESM3(require_source());
179001
179232
  import_frameworks7 = __toESM3(require_frameworks());
179002
179233
  init_pkg_name();
179003
179234
  init_inspect5();
179004
179235
  init_output_manager();
179005
- init_command23();
179236
+ init_command24();
179006
179237
  init_get_args();
179007
179238
  init_get_flags_specification();
179008
179239
  init_error2();
@@ -179056,7 +179287,7 @@ async function list6(client2, argv) {
179056
179287
  const { args: args2, flags: opts } = parsedArgs;
179057
179288
  if (args2.length !== 0) {
179058
179289
  output_manager_default.error(
179059
- `Invalid number of arguments. Usage: ${import_chalk110.default.cyan(
179290
+ `Invalid number of arguments. Usage: ${import_chalk111.default.cyan(
179060
179291
  `${getCommandName("project ls")}`
179061
179292
  )}`
179062
179293
  );
@@ -179064,7 +179295,7 @@ async function list6(client2, argv) {
179064
179295
  }
179065
179296
  const start = Date.now();
179066
179297
  const { contextName } = await getScope(client2);
179067
- output_manager_default.spinner(`Fetching projects in ${import_chalk110.default.bold(contextName)}`);
179298
+ output_manager_default.spinner(`Fetching projects in ${import_chalk111.default.bold(contextName)}`);
179068
179299
  let projectsUrl = "/v9/projects?limit=20";
179069
179300
  const deprecated = opts["--update-required"] || false;
179070
179301
  telemetryClient.trackCliFlagUpdateRequired(deprecated);
@@ -179085,7 +179316,7 @@ async function list6(client2, argv) {
179085
179316
  output_manager_default.stopSpinner();
179086
179317
  const elapsed2 = (0, import_ms23.default)(Date.now() - start);
179087
179318
  output_manager_default.log(
179088
- `${projectList.length > 0 ? "Projects" : "No projects"} found under ${import_chalk110.default.bold(contextName)} ${deprecated ? "that are using a deprecated Node.js version" : "\b"} ${import_chalk110.default.gray(`[${elapsed2}]`)}`
179319
+ `${projectList.length > 0 ? "Projects" : "No projects"} found under ${import_chalk111.default.bold(contextName)} ${deprecated ? "that are using a deprecated Node.js version" : "\b"} ${import_chalk111.default.gray(`[${elapsed2}]`)}`
179089
179320
  );
179090
179321
  if (projectList.length > 0) {
179091
179322
  const tablePrint = table(
@@ -179095,12 +179326,12 @@ async function list6(client2, argv) {
179095
179326
  "Latest Production URL",
179096
179327
  "Updated",
179097
179328
  "Node Version"
179098
- ].map((header) => import_chalk110.default.bold(import_chalk110.default.cyan(header))),
179329
+ ].map((header) => import_chalk111.default.bold(import_chalk111.default.cyan(header))),
179099
179330
  ...projectList.flatMap((project) => [
179100
179331
  [
179101
- import_chalk110.default.bold(project.name),
179332
+ import_chalk111.default.bold(project.name),
179102
179333
  getLatestProdUrl(project),
179103
- import_chalk110.default.gray((0, import_ms23.default)(Date.now() - project.updatedAt)),
179334
+ import_chalk111.default.gray((0, import_ms23.default)(Date.now() - project.updatedAt)),
179104
179335
  project.nodeVersion ?? ""
179105
179336
  ]
179106
179337
  ])
@@ -179125,18 +179356,18 @@ function getLatestProdUrl(project) {
179125
179356
  return `https://${alias2}`;
179126
179357
  return "--";
179127
179358
  }
179128
- var import_ms23, import_chalk110;
179359
+ var import_ms23, import_chalk111;
179129
179360
  var init_list10 = __esm({
179130
179361
  "src/commands/project/list.ts"() {
179131
179362
  "use strict";
179132
179363
  import_ms23 = __toESM3(require_ms());
179133
- import_chalk110 = __toESM3(require_source());
179364
+ import_chalk111 = __toESM3(require_source());
179134
179365
  init_table();
179135
179366
  init_get_command_flags();
179136
179367
  init_pkg_name();
179137
179368
  init_list9();
179138
179369
  init_output_manager();
179139
- init_command23();
179370
+ init_command24();
179140
179371
  init_get_args();
179141
179372
  init_get_flags_specification();
179142
179373
  init_error2();
@@ -179181,7 +179412,7 @@ async function rm6(client2, argv) {
179181
179412
  const { args: args2 } = parsedArgs;
179182
179413
  if (args2.length !== 1) {
179183
179414
  output_manager_default.error(
179184
- `Invalid number of arguments. Usage: ${import_chalk111.default.cyan(
179415
+ `Invalid number of arguments. Usage: ${import_chalk112.default.cyan(
179185
179416
  `${getCommandName("project rm <name>")}`
179186
179417
  )}`
179187
179418
  );
@@ -179211,7 +179442,7 @@ async function rm6(client2, argv) {
179211
179442
  }
179212
179443
  const elapsed2 = (0, import_ms24.default)(Date.now() - start);
179213
179444
  output_manager_default.log(
179214
- `${import_chalk111.default.cyan("Success!")} Project ${import_chalk111.default.bold(name)} removed ${import_chalk111.default.gray(
179445
+ `${import_chalk112.default.cyan("Success!")} Project ${import_chalk112.default.bold(name)} removed ${import_chalk112.default.gray(
179215
179446
  `[${elapsed2}]`
179216
179447
  )}`
179217
179448
  );
@@ -179220,22 +179451,22 @@ async function rm6(client2, argv) {
179220
179451
  async function readConfirmation3(client2, projectName) {
179221
179452
  output_manager_default.print(
179222
179453
  prependEmoji(
179223
- `The project ${import_chalk111.default.bold(projectName)} will be removed permanently.
179454
+ `The project ${import_chalk112.default.bold(projectName)} will be removed permanently.
179224
179455
  It will also delete everything under the project including deployments.
179225
179456
  `,
179226
179457
  emoji("warning")
179227
179458
  )
179228
179459
  );
179229
179460
  return await client2.input.confirm(
179230
- `${import_chalk111.default.bold.red("Are you sure?")}`,
179461
+ `${import_chalk112.default.bold.red("Are you sure?")}`,
179231
179462
  false
179232
179463
  );
179233
179464
  }
179234
- var import_chalk111, import_ms24, e;
179465
+ var import_chalk112, import_ms24, e;
179235
179466
  var init_rm10 = __esm({
179236
179467
  "src/commands/project/rm.ts"() {
179237
179468
  "use strict";
179238
- import_chalk111 = __toESM3(require_source());
179469
+ import_chalk112 = __toESM3(require_source());
179239
179470
  import_ms24 = __toESM3(require_ms());
179240
179471
  init_emoji();
179241
179472
  init_errors_ts();
@@ -179245,7 +179476,7 @@ var init_rm10 = __esm({
179245
179476
  init_get_args();
179246
179477
  init_get_flags_specification();
179247
179478
  init_error2();
179248
- init_command23();
179479
+ init_command24();
179249
179480
  e = encodeURIComponent;
179250
179481
  }
179251
179482
  });
@@ -179308,7 +179539,7 @@ async function main14(client2) {
179308
179539
  }
179309
179540
  let { subcommand, args: args2, subcommandOriginal } = getSubcommand(
179310
179541
  parsedArgs.args.slice(1),
179311
- COMMAND_CONFIG15
179542
+ COMMAND_CONFIG16
179312
179543
  );
179313
179544
  const needHelp = parsedArgs.flags["--help"];
179314
179545
  if (!subcommand && needHelp) {
@@ -179355,12 +179586,12 @@ async function main14(client2) {
179355
179586
  telemetry2.trackCliSubcommandRemove(subcommandOriginal);
179356
179587
  return rm6(client2, args2);
179357
179588
  default:
179358
- output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG15));
179589
+ output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG16));
179359
179590
  output_manager_default.print(help2(projectCommand, { columns: client2.stderr.columns }));
179360
179591
  return 2;
179361
179592
  }
179362
179593
  }
179363
- var COMMAND_CONFIG15;
179594
+ var COMMAND_CONFIG16;
179364
179595
  var init_project2 = __esm({
179365
179596
  "src/commands/project/index.ts"() {
179366
179597
  "use strict";
@@ -179372,13 +179603,13 @@ var init_project2 = __esm({
179372
179603
  init_inspect6();
179373
179604
  init_list10();
179374
179605
  init_rm10();
179375
- init_command23();
179606
+ init_command24();
179376
179607
  init_get_flags_specification();
179377
179608
  init_project();
179378
179609
  init_output_manager();
179379
179610
  init_commands();
179380
179611
  init_get_subcommand();
179381
- COMMAND_CONFIG15 = {
179612
+ COMMAND_CONFIG16 = {
179382
179613
  inspect: getCommandAliases(inspectSubcommand2),
179383
179614
  list: getCommandAliases(listSubcommand7),
179384
179615
  add: getCommandAliases(addSubcommand6),
@@ -179403,7 +179634,7 @@ async function getProjectByDeployment({
179403
179634
  let team;
179404
179635
  try {
179405
179636
  output_manager_default?.spinner(
179406
- `Fetching deployment "${deployId}" in ${import_chalk112.default.bold(contextName)}\u2026`
179637
+ `Fetching deployment "${deployId}" in ${import_chalk113.default.bold(contextName)}\u2026`
179407
179638
  );
179408
179639
  const [teamResult, deploymentResult] = await Promise.allSettled([
179409
179640
  config2.currentTeam ? getTeamById(client2, config2.currentTeam) : void 0,
@@ -179420,12 +179651,12 @@ async function getProjectByDeployment({
179420
179651
  team = teamResult.value;
179421
179652
  deployment = deploymentResult.value;
179422
179653
  output_manager_default?.log(
179423
- `Fetching deployment "${deployId}" in ${import_chalk112.default.bold(contextName)}\u2026`
179654
+ `Fetching deployment "${deployId}" in ${import_chalk113.default.bold(contextName)}\u2026`
179424
179655
  );
179425
179656
  if (deployment.team?.id) {
179426
179657
  if (!team || deployment.team.id !== team.id) {
179427
179658
  const err = new Error(
179428
- team ? `Deployment doesn't belong to current team ${import_chalk112.default.bold(
179659
+ team ? `Deployment doesn't belong to current team ${import_chalk113.default.bold(
179429
179660
  contextName
179430
179661
  )}` : `Deployment belongs to a different team`
179431
179662
  );
@@ -179434,7 +179665,7 @@ async function getProjectByDeployment({
179434
179665
  }
179435
179666
  } else if (team) {
179436
179667
  const err = new Error(
179437
- `Deployment doesn't belong to current team ${import_chalk112.default.bold(contextName)}`
179668
+ `Deployment doesn't belong to current team ${import_chalk113.default.bold(contextName)}`
179438
179669
  );
179439
179670
  err.code = "ERR_INVALID_TEAM";
179440
179671
  throw err;
@@ -179455,11 +179686,11 @@ async function getProjectByDeployment({
179455
179686
  output_manager_default?.stopSpinner();
179456
179687
  }
179457
179688
  }
179458
- var import_chalk112;
179689
+ var import_chalk113;
179459
179690
  var init_get_project_by_deployment = __esm({
179460
179691
  "src/util/projects/get-project-by-deployment.ts"() {
179461
179692
  "use strict";
179462
- import_chalk112 = __toESM3(require_source());
179693
+ import_chalk113 = __toESM3(require_source());
179463
179694
  init_get_deployment();
179464
179695
  init_get_project_by_id_or_name();
179465
179696
  init_get_scope();
@@ -179471,23 +179702,23 @@ var init_get_project_by_deployment = __esm({
179471
179702
  });
179472
179703
 
179473
179704
  // src/util/alias/render-alias-status.ts
179474
- function renderAliasStatus(status2) {
179475
- if (status2 === "completed") {
179476
- return import_chalk113.default.green(status2);
179705
+ function renderAliasStatus(status3) {
179706
+ if (status3 === "completed") {
179707
+ return import_chalk114.default.green(status3);
179477
179708
  }
179478
- if (status2 === "failed") {
179479
- return import_chalk113.default.red(status2);
179709
+ if (status3 === "failed") {
179710
+ return import_chalk114.default.red(status3);
179480
179711
  }
179481
- if (status2 === "skipped") {
179482
- return import_chalk113.default.gray(status2);
179712
+ if (status3 === "skipped") {
179713
+ return import_chalk114.default.gray(status3);
179483
179714
  }
179484
- return import_chalk113.default.yellow(status2);
179715
+ return import_chalk114.default.yellow(status3);
179485
179716
  }
179486
- var import_chalk113;
179717
+ var import_chalk114;
179487
179718
  var init_render_alias_status = __esm({
179488
179719
  "src/util/alias/render-alias-status.ts"() {
179489
179720
  "use strict";
179490
- import_chalk113 = __toESM3(require_source());
179721
+ import_chalk114 = __toESM3(require_source());
179491
179722
  }
179492
179723
  });
179493
179724
 
@@ -179594,7 +179825,7 @@ async function promoteStatus({
179594
179825
  }
179595
179826
  if (requestedAt < recentThreshold || Date.now() >= promoteTimeout) {
179596
179827
  output_manager_default.log(
179597
- `The promotion exceeded its deadline - rerun ${import_chalk114.default.bold(
179828
+ `The promotion exceeded its deadline - rerun ${import_chalk115.default.bold(
179598
179829
  `${packageName} promote ${toDeploymentId}`
179599
179830
  )} to try again`
179600
179831
  );
@@ -179634,9 +179865,9 @@ async function renderJobFailed({
179634
179865
  url3 += `&until=${nextTimestamp}`;
179635
179866
  }
179636
179867
  const { aliases, pagination } = await client2.fetch(url3);
179637
- for (const { alias: alias2, status: status2 } of aliases) {
179868
+ for (const { alias: alias2, status: status3 } of aliases) {
179638
179869
  output_manager_default.log(
179639
- ` ${renderAliasStatus(status2).padEnd(11)} ${alias2.alias} (${alias2.deploymentId})`
179870
+ ` ${renderAliasStatus(status3).padEnd(11)} ${alias2.alias} (${alias2.deploymentId})`
179640
179871
  );
179641
179872
  }
179642
179873
  if (pagination?.next) {
@@ -179658,26 +179889,26 @@ async function renderJobSucceeded({
179658
179889
  let deploymentInfo = "";
179659
179890
  try {
179660
179891
  const deployment = await getDeployment(client2, contextName, toDeploymentId);
179661
- deploymentInfo = `${import_chalk114.default.bold(deployment.url)} (${toDeploymentId})`;
179892
+ deploymentInfo = `${import_chalk115.default.bold(deployment.url)} (${toDeploymentId})`;
179662
179893
  } catch (err) {
179663
179894
  output_manager_default.debug(
179664
179895
  `Failed to get deployment url for ${toDeploymentId}: ${err?.toString() || err}`
179665
179896
  );
179666
- deploymentInfo = import_chalk114.default.bold(toDeploymentId);
179897
+ deploymentInfo = import_chalk115.default.bold(toDeploymentId);
179667
179898
  }
179668
179899
  const duration = performingPromote ? elapsed(Date.now() - requestedAt) : "";
179669
179900
  output_manager_default.log(
179670
- `Success! ${import_chalk114.default.bold(
179901
+ `Success! ${import_chalk115.default.bold(
179671
179902
  project.name
179672
179903
  )} was promoted to ${deploymentInfo} ${duration}`
179673
179904
  );
179674
179905
  return 0;
179675
179906
  }
179676
- var import_chalk114, import_ms25;
179677
- var init_status = __esm({
179907
+ var import_chalk115, import_ms25;
179908
+ var init_status2 = __esm({
179678
179909
  "src/commands/promote/status.ts"() {
179679
179910
  "use strict";
179680
- import_chalk114 = __toESM3(require_source());
179911
+ import_chalk115 = __toESM3(require_source());
179681
179912
  init_elapsed();
179682
179913
  init_format_date();
179683
179914
  init_get_deployment();
@@ -179734,7 +179965,7 @@ async function requestPromote({
179734
179965
  }
179735
179966
  );
179736
179967
  output_manager_default.log(
179737
- `Successfully created new deployment of ${import_chalk115.default.bold(project.name)} at ${newDeployment.inspectorUrl}`
179968
+ `Successfully created new deployment of ${import_chalk116.default.bold(project.name)} at ${newDeployment.inspectorUrl}`
179738
179969
  );
179739
179970
  return 0;
179740
179971
  }
@@ -179755,7 +179986,7 @@ async function requestPromote({
179755
179986
  }
179756
179987
  if (timeout !== void 0 && (0, import_ms26.default)(timeout) === 0) {
179757
179988
  output_manager_default.log(
179758
- `Successfully requested promote of ${import_chalk115.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
179989
+ `Successfully requested promote of ${import_chalk116.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
179759
179990
  );
179760
179991
  output_manager_default.log(`To check promote status, run ${getCommandName("promote")}.`);
179761
179992
  return 0;
@@ -179768,15 +179999,15 @@ async function requestPromote({
179768
179999
  timeout
179769
180000
  });
179770
180001
  }
179771
- var import_chalk115, import_ms26;
180002
+ var import_chalk116, import_ms26;
179772
180003
  var init_request_promote = __esm({
179773
180004
  "src/commands/promote/request-promote.ts"() {
179774
180005
  "use strict";
179775
- import_chalk115 = __toESM3(require_source());
180006
+ import_chalk116 = __toESM3(require_source());
179776
180007
  init_pkg_name();
179777
180008
  init_get_project_by_deployment();
179778
180009
  import_ms26 = __toESM3(require_ms());
179779
- init_status();
180010
+ init_status2();
179780
180011
  init_output_manager();
179781
180012
  }
179782
180013
  });
@@ -179834,8 +180065,8 @@ var init_promote2 = __esm({
179834
180065
  init_error2();
179835
180066
  import_error_utils33 = __toESM3(require_dist2());
179836
180067
  init_request_promote();
179837
- init_status();
179838
- init_command24();
180068
+ init_status2();
180069
+ init_command25();
179839
180070
  init_help();
179840
180071
  init_get_flags_specification();
179841
180072
  init_promote();
@@ -179874,7 +180105,7 @@ var init_promote2 = __esm({
179874
180105
  if (needHelp) {
179875
180106
  telemetry2.trackCliFlagHelp("promote", "status");
179876
180107
  output_manager_default.print(
179877
- help2(statusSubcommand, {
180108
+ help2(statusSubcommand2, {
179878
180109
  columns: client2.stderr.columns,
179879
180110
  parent: promoteCommand
179880
180111
  })
@@ -179933,7 +180164,7 @@ async function getDeploymentByIdOrURL({
179933
180164
  let team;
179934
180165
  try {
179935
180166
  output_manager_default.spinner(
179936
- `Fetching deployment "${deployIdOrUrl}" in ${import_chalk116.default.bold(contextName)}\u2026`
180167
+ `Fetching deployment "${deployIdOrUrl}" in ${import_chalk117.default.bold(contextName)}\u2026`
179937
180168
  );
179938
180169
  const [teamResult, deploymentResult] = await Promise.allSettled([
179939
180170
  config2.currentTeam ? getTeamById(client2, config2.currentTeam) : void 0,
@@ -179950,7 +180181,7 @@ async function getDeploymentByIdOrURL({
179950
180181
  team = teamResult.value;
179951
180182
  deployment = deploymentResult.value;
179952
180183
  output_manager_default.log(
179953
- `Fetching deployment "${deployIdOrUrl}" in ${import_chalk116.default.bold(contextName)}\u2026`
180184
+ `Fetching deployment "${deployIdOrUrl}" in ${import_chalk117.default.bold(contextName)}\u2026`
179954
180185
  );
179955
180186
  } finally {
179956
180187
  output_manager_default.stopSpinner();
@@ -179958,7 +180189,7 @@ async function getDeploymentByIdOrURL({
179958
180189
  if (deployment.team?.id) {
179959
180190
  if (!team || deployment.team.id !== team.id) {
179960
180191
  const err = new Error(
179961
- team ? `Deployment doesn't belong to current team ${import_chalk116.default.bold(
180192
+ team ? `Deployment doesn't belong to current team ${import_chalk117.default.bold(
179962
180193
  contextName
179963
180194
  )}` : `Deployment belongs to a different team`
179964
180195
  );
@@ -179967,18 +180198,18 @@ async function getDeploymentByIdOrURL({
179967
180198
  }
179968
180199
  } else if (team) {
179969
180200
  const err = new Error(
179970
- `Deployment doesn't belong to current team ${import_chalk116.default.bold(contextName)}`
180201
+ `Deployment doesn't belong to current team ${import_chalk117.default.bold(contextName)}`
179971
180202
  );
179972
180203
  err.code = "ERR_INVALID_TEAM";
179973
180204
  throw err;
179974
180205
  }
179975
180206
  return deployment;
179976
180207
  }
179977
- var import_chalk116;
180208
+ var import_chalk117;
179978
180209
  var init_get_deployment_by_id_or_url = __esm({
179979
180210
  "src/util/deploy/get-deployment-by-id-or-url.ts"() {
179980
180211
  "use strict";
179981
- import_chalk116 = __toESM3(require_source());
180212
+ import_chalk117 = __toESM3(require_source());
179982
180213
  init_get_deployment();
179983
180214
  init_get_team_by_id();
179984
180215
  init_is_valid_name();
@@ -180117,14 +180348,14 @@ async function redeploy(client2) {
180117
180348
  }
180118
180349
  output_manager_default.print(
180119
180350
  `${prependEmoji(
180120
- `Inspect: ${import_chalk117.default.bold(deployment.inspectorUrl)} ${deployStamp()}`,
180351
+ `Inspect: ${import_chalk118.default.bold(deployment.inspectorUrl)} ${deployStamp()}`,
180121
180352
  emoji("inspect")
180122
180353
  )}
180123
180354
  `
180124
180355
  );
180125
180356
  output_manager_default.print(
180126
180357
  prependEmoji(
180127
- `${isProdDeployment ? "Production" : "Preview"}: ${import_chalk117.default.bold(
180358
+ `${isProdDeployment ? "Production" : "Preview"}: ${import_chalk118.default.bold(
180128
180359
  previewUrl
180129
180360
  )} ${deployStamp()}`,
180130
180361
  emoji("success")
@@ -180205,17 +180436,17 @@ async function redeploy(client2) {
180205
180436
  output_manager_default.prettyError(err);
180206
180437
  if ((0, import_error_utils34.isErrnoException)(err) && err.code === "ERR_INVALID_TEAM") {
180207
180438
  output_manager_default.error(
180208
- `Use ${import_chalk117.default.bold("vc switch")} to change your current team`
180439
+ `Use ${import_chalk118.default.bold("vc switch")} to change your current team`
180209
180440
  );
180210
180441
  }
180211
180442
  return 1;
180212
180443
  }
180213
180444
  }
180214
- var import_chalk117, import_client13, import_error_utils34;
180445
+ var import_chalk118, import_client13, import_error_utils34;
180215
180446
  var init_redeploy2 = __esm({
180216
180447
  "src/commands/redeploy/index.ts"() {
180217
180448
  "use strict";
180218
- import_chalk117 = __toESM3(require_source());
180449
+ import_chalk118 = __toESM3(require_source());
180219
180450
  import_client13 = __toESM3(require_dist7());
180220
180451
  init_emoji();
180221
180452
  init_get_args();
@@ -180229,7 +180460,7 @@ var init_redeploy2 = __esm({
180229
180460
  init_stamp();
180230
180461
  init_ua();
180231
180462
  init_help();
180232
- init_command26();
180463
+ init_command27();
180233
180464
  init_get_flags_specification();
180234
180465
  init_output_manager();
180235
180466
  init_redeploy();
@@ -180423,7 +180654,7 @@ async function remove5(client2) {
180423
180654
  }
180424
180655
  const { contextName } = await getScope(client2);
180425
180656
  output_manager_default.spinner(
180426
- `Fetching deployment(s) ${ids.map((id) => `"${id}"`).join(" ")} in ${import_chalk118.default.bold(contextName)}`
180657
+ `Fetching deployment(s) ${ids.map((id) => `"${id}"`).join(" ")} in ${import_chalk119.default.bold(contextName)}`
180427
180658
  );
180428
180659
  let aliases;
180429
180660
  let projects;
@@ -180489,7 +180720,7 @@ async function remove5(client2) {
180489
180720
  });
180490
180721
  if (deployments.length === 0 && projects.length === 0) {
180491
180722
  const safeUnaliased = parsedArgs.flags["--safe"] ? "unaliased" : "any";
180492
- const stylizedIds = ids.map((id) => import_chalk118.default.bold(`"${id}"`)).join(", ");
180723
+ const stylizedIds = ids.map((id) => import_chalk119.default.bold(`"${id}"`)).join(", ");
180493
180724
  const commandName = getCommandName("projects ls");
180494
180725
  log2(
180495
180726
  `Could not find ${safeUnaliased} deployments or projects matching ${stylizedIds}. Run ${commandName} to list.`
@@ -180497,7 +180728,7 @@ async function remove5(client2) {
180497
180728
  return 1;
180498
180729
  }
180499
180730
  log2(
180500
- `Found ${deploymentsAndProjects(deployments, projects)} for removal in ${import_chalk118.default.bold(contextName)} ${elapsed(Date.now() - findStart)}`
180731
+ `Found ${deploymentsAndProjects(deployments, projects)} for removal in ${import_chalk119.default.bold(contextName)} ${elapsed(Date.now() - findStart)}`
180501
180732
  );
180502
180733
  if (deployments.length > 200) {
180503
180734
  output_manager_default.warn(
@@ -180524,11 +180755,11 @@ async function remove5(client2) {
180524
180755
  `Removed ${deploymentsAndProjects(deployments, projects)} ${elapsed(Date.now() - start)}`
180525
180756
  );
180526
180757
  deployments.forEach((depl) => {
180527
- output_manager_default.print(`${import_chalk118.default.gray("-")} ${import_chalk118.default.bold(depl.url)}
180758
+ output_manager_default.print(`${import_chalk119.default.gray("-")} ${import_chalk119.default.bold(depl.url)}
180528
180759
  `);
180529
180760
  });
180530
180761
  projects.forEach((project) => {
180531
- output_manager_default.print(`${import_chalk118.default.gray("-")} ${import_chalk118.default.bold(project.name)}
180762
+ output_manager_default.print(`${import_chalk119.default.gray("-")} ${import_chalk119.default.bold(project.name)}
180532
180763
  `);
180533
180764
  });
180534
180765
  return 0;
@@ -180545,8 +180776,8 @@ function readConfirmation4(deployments, projects) {
180545
180776
  );
180546
180777
  const deploymentTable = table(
180547
180778
  deployments.map((depl) => {
180548
- const time = import_chalk118.default.gray(`${(0, import_ms28.default)(Date.now() - depl.createdAt)} ago`);
180549
- const url3 = depl.url ? import_chalk118.default.underline(`https://${depl.url}`) : "";
180779
+ const time = import_chalk119.default.gray(`${(0, import_ms28.default)(Date.now() - depl.createdAt)} ago`);
180780
+ const url3 = depl.url ? import_chalk119.default.underline(`https://${depl.url}`) : "";
180550
180781
  return [` ${depl.id}`, url3, time];
180551
180782
  }),
180552
180783
  { align: ["l", "r", "l"], hsep: 6 }
@@ -180557,7 +180788,7 @@ function readConfirmation4(deployments, projects) {
180557
180788
  for (const depl of deployments) {
180558
180789
  for (const { alias: alias2 } of depl.aliases) {
180559
180790
  output_manager_default.warn(
180560
- `${import_chalk118.default.underline(`https://${alias2}`)} is an alias for ${import_chalk118.default.bold(depl.url)} and will be removed`
180791
+ `${import_chalk119.default.underline(`https://${alias2}`)} is an alias for ${import_chalk119.default.bold(depl.url)} and will be removed`
180561
180792
  );
180562
180793
  }
180563
180794
  }
@@ -180571,12 +180802,12 @@ function readConfirmation4(deployments, projects) {
180571
180802
  `
180572
180803
  );
180573
180804
  for (const project of projects) {
180574
- output_manager_default.print(`${import_chalk118.default.gray("-")} ${import_chalk118.default.bold(project.name)}
180805
+ output_manager_default.print(`${import_chalk119.default.gray("-")} ${import_chalk119.default.bold(project.name)}
180575
180806
  `);
180576
180807
  }
180577
180808
  }
180578
180809
  output_manager_default.print(
180579
- `${import_chalk118.default.bold.red("> Are you sure?")} ${import_chalk118.default.gray("(y/N) ")}`
180810
+ `${import_chalk119.default.bold.red("> Are you sure?")} ${import_chalk119.default.gray("(y/N) ")}`
180580
180811
  );
180581
180812
  process.stdin.on("data", (d) => {
180582
180813
  process.stdin.pause();
@@ -180593,11 +180824,11 @@ function deploymentsAndProjects(deployments, projects, conjunction = "and") {
180593
180824
  }
180594
180825
  return `${(0, import_pluralize11.default)("deployment", deployments.length, true)} ${conjunction} ${(0, import_pluralize11.default)("project", projects.length, true)}`;
180595
180826
  }
180596
- var import_chalk118, import_ms28, import_pluralize11;
180827
+ var import_chalk119, import_ms28, import_pluralize11;
180597
180828
  var init_remove6 = __esm({
180598
180829
  "src/commands/remove/index.ts"() {
180599
180830
  "use strict";
180600
- import_chalk118 = __toESM3(require_source());
180831
+ import_chalk119 = __toESM3(require_source());
180601
180832
  import_ms28 = __toESM3(require_ms());
180602
180833
  import_pluralize11 = __toESM3(require_pluralize());
180603
180834
  init_table();
@@ -180616,7 +180847,7 @@ var init_remove6 = __esm({
180616
180847
  init_error2();
180617
180848
  init_now_error();
180618
180849
  init_help();
180619
- init_command27();
180850
+ init_command28();
180620
180851
  init_get_flags_specification();
180621
180852
  init_remove5();
180622
180853
  init_output_manager();
@@ -180693,7 +180924,7 @@ async function rollbackStatus({
180693
180924
  }
180694
180925
  if (requestedAt < recentThreshold || Date.now() >= rollbackTimeout) {
180695
180926
  output_manager_default.log(
180696
- `The rollback exceeded its deadline - rerun ${import_chalk119.default.bold(
180927
+ `The rollback exceeded its deadline - rerun ${import_chalk120.default.bold(
180697
180928
  `${packageName} rollback ${toDeploymentId}`
180698
180929
  )} to try again`
180699
180930
  );
@@ -180733,9 +180964,9 @@ async function renderJobFailed2({
180733
180964
  url3 += `&until=${nextTimestamp}`;
180734
180965
  }
180735
180966
  const { aliases, pagination } = await client2.fetch(url3);
180736
- for (const { alias: alias2, status: status2 } of aliases) {
180967
+ for (const { alias: alias2, status: status3 } of aliases) {
180737
180968
  output_manager_default.log(
180738
- ` ${renderAliasStatus(status2).padEnd(11)} ${alias2.alias} (${alias2.deploymentId})`
180969
+ ` ${renderAliasStatus(status3).padEnd(11)} ${alias2.alias} (${alias2.deploymentId})`
180739
180970
  );
180740
180971
  }
180741
180972
  if (pagination?.next) {
@@ -180757,26 +180988,26 @@ async function renderJobSucceeded2({
180757
180988
  let deploymentInfo = "";
180758
180989
  try {
180759
180990
  const deployment = await getDeployment(client2, contextName, toDeploymentId);
180760
- deploymentInfo = `${import_chalk119.default.bold(deployment.url)} (${toDeploymentId})`;
180991
+ deploymentInfo = `${import_chalk120.default.bold(deployment.url)} (${toDeploymentId})`;
180761
180992
  } catch (err) {
180762
180993
  output_manager_default.debug(
180763
180994
  `Failed to get deployment url for ${toDeploymentId}: ${err?.toString() || err}`
180764
180995
  );
180765
- deploymentInfo = import_chalk119.default.bold(toDeploymentId);
180996
+ deploymentInfo = import_chalk120.default.bold(toDeploymentId);
180766
180997
  }
180767
180998
  const duration = performingRollback ? elapsed(Date.now() - requestedAt) : "";
180768
180999
  output_manager_default.log(
180769
- `Success! ${import_chalk119.default.bold(
181000
+ `Success! ${import_chalk120.default.bold(
180770
181001
  project.name
180771
181002
  )} was rolled back to ${deploymentInfo} ${duration}`
180772
181003
  );
180773
181004
  return 0;
180774
181005
  }
180775
- var import_chalk119, import_ms29;
180776
- var init_status2 = __esm({
181006
+ var import_chalk120, import_ms29;
181007
+ var init_status3 = __esm({
180777
181008
  "src/commands/rollback/status.ts"() {
180778
181009
  "use strict";
180779
- import_chalk119 = __toESM3(require_source());
181010
+ import_chalk120 = __toESM3(require_source());
180780
181011
  init_elapsed();
180781
181012
  init_format_date();
180782
181013
  init_get_deployment();
@@ -180808,7 +181039,7 @@ async function requestRollback({
180808
181039
  });
180809
181040
  if (timeout !== void 0 && (0, import_ms30.default)(timeout) === 0) {
180810
181041
  output_manager_default.log(
180811
- `Successfully requested rollback of ${import_chalk120.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
181042
+ `Successfully requested rollback of ${import_chalk121.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
180812
181043
  );
180813
181044
  output_manager_default.log(`To check rollback status, run ${getCommandName("rollback")}.`);
180814
181045
  return 0;
@@ -180821,15 +181052,15 @@ async function requestRollback({
180821
181052
  timeout
180822
181053
  });
180823
181054
  }
180824
- var import_chalk120, import_ms30;
181055
+ var import_chalk121, import_ms30;
180825
181056
  var init_request_rollback = __esm({
180826
181057
  "src/commands/rollback/request-rollback.ts"() {
180827
181058
  "use strict";
180828
- import_chalk120 = __toESM3(require_source());
181059
+ import_chalk121 = __toESM3(require_source());
180829
181060
  init_pkg_name();
180830
181061
  init_get_project_by_deployment();
180831
181062
  import_ms30 = __toESM3(require_ms());
180832
- init_status2();
181063
+ init_status3();
180833
181064
  init_output_manager();
180834
181065
  }
180835
181066
  });
@@ -180887,9 +181118,9 @@ var init_rollback2 = __esm({
180887
181118
  import_error_utils35 = __toESM3(require_dist2());
180888
181119
  import_ms31 = __toESM3(require_ms());
180889
181120
  init_request_rollback();
180890
- init_status2();
181121
+ init_status3();
180891
181122
  init_help();
180892
- init_command28();
181123
+ init_command29();
180893
181124
  init_get_flags_specification();
180894
181125
  init_rollback();
180895
181126
  init_output_manager();
@@ -180926,7 +181157,7 @@ var init_rollback2 = __esm({
180926
181157
  if (needHelp) {
180927
181158
  telemetry2.trackCliFlagHelp("promote", "status");
180928
181159
  output_manager_default.print(
180929
- help2(statusSubcommand2, {
181160
+ help2(statusSubcommand3, {
180930
181161
  columns: client2.stderr.columns,
180931
181162
  parent: rollbackCommand
180932
181163
  })
@@ -181256,7 +181487,7 @@ async function rollingRelease(client2) {
181256
181487
  subcommand,
181257
181488
  args: subcommandArgs,
181258
181489
  subcommandOriginal
181259
- } = getSubcommand(client2.argv.slice(3), COMMAND_CONFIG16);
181490
+ } = getSubcommand(client2.argv.slice(3), COMMAND_CONFIG17);
181260
181491
  const needHelp = client2.argv.includes("--help") || client2.argv.includes("-h");
181261
181492
  if (!subcommand && needHelp) {
181262
181493
  telemetry2.trackCliFlagHelp("rolling-release");
@@ -181445,7 +181676,7 @@ async function rollingRelease(client2) {
181445
181676
  }
181446
181677
  default: {
181447
181678
  output_manager_default.debug(`Invalid subcommand: ${subcommand}`);
181448
- output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG16));
181679
+ output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG17));
181449
181680
  output_manager_default.print(
181450
181681
  help2(rollingReleaseCommand, { columns: client2.stderr.columns })
181451
181682
  );
@@ -181458,14 +181689,14 @@ async function rollingRelease(client2) {
181458
181689
  return 1;
181459
181690
  }
181460
181691
  }
181461
- var COMMAND_CONFIG16;
181692
+ var COMMAND_CONFIG17;
181462
181693
  var init_rolling_release2 = __esm({
181463
181694
  "src/commands/rolling-release/index.ts"() {
181464
181695
  "use strict";
181465
181696
  init_get_args();
181466
181697
  init_get_flags_specification();
181467
181698
  init_help();
181468
- init_command29();
181699
+ init_command30();
181469
181700
  init_request_rolling_release();
181470
181701
  init_start_rolling_release();
181471
181702
  init_configure_rolling_release();
@@ -181479,7 +181710,7 @@ var init_rolling_release2 = __esm({
181479
181710
  init_get_subcommand();
181480
181711
  init_commands();
181481
181712
  init_get_invalid_subcommand();
181482
- COMMAND_CONFIG16 = {
181713
+ COMMAND_CONFIG17 = {
181483
181714
  configure: getCommandAliases(configureSubcommand),
181484
181715
  start: getCommandAliases(startSubcommand),
181485
181716
  approve: getCommandAliases(approveSubcommand),
@@ -181495,17 +181726,17 @@ function formatBranchMatcher(branchMatcher) {
181495
181726
  if (branchMatcher?.type === "equals") {
181496
181727
  return branchMatcher.pattern;
181497
181728
  } else if (branchMatcher?.type === "startsWith") {
181498
- return `${branchMatcher.pattern}${import_chalk121.default.dim("*")}`;
181729
+ return `${branchMatcher.pattern}${import_chalk122.default.dim("*")}`;
181499
181730
  } else if (branchMatcher?.type === "endsWith") {
181500
- return `${import_chalk121.default.dim("*")}${branchMatcher.pattern}`;
181731
+ return `${import_chalk122.default.dim("*")}${branchMatcher.pattern}`;
181501
181732
  }
181502
- return import_chalk121.default.dim("No branch configuration");
181733
+ return import_chalk122.default.dim("No branch configuration");
181503
181734
  }
181504
181735
  async function list7(client2, argv) {
181505
181736
  const { cwd } = client2;
181506
181737
  if (argv.length !== 0) {
181507
181738
  output_manager_default.error(
181508
- `Invalid number of arguments. Usage: ${import_chalk121.default.cyan(
181739
+ `Invalid number of arguments. Usage: ${import_chalk122.default.cyan(
181509
181740
  `${getCommandName("target ls")}`
181510
181741
  )}`
181511
181742
  );
@@ -181529,12 +181760,12 @@ async function list7(client2, argv) {
181529
181760
  const elapsed2 = (0, import_ms32.default)(Date.now() - start);
181530
181761
  result = withDefaultEnvironmentsIncluded(result);
181531
181762
  output_manager_default.log(
181532
- `${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${import_chalk121.default.gray(`[${elapsed2}]`)}`
181763
+ `${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${import_chalk122.default.gray(`[${elapsed2}]`)}`
181533
181764
  );
181534
181765
  const tablePrint = table(
181535
181766
  [
181536
181767
  ["Target Name", "Branch Tracking", "Type", "Updated"].map(
181537
- (header) => import_chalk121.default.bold(import_chalk121.default.cyan(header))
181768
+ (header) => import_chalk122.default.bold(import_chalk122.default.cyan(header))
181538
181769
  ),
181539
181770
  ...result.flatMap((target) => {
181540
181771
  return [
@@ -181542,7 +181773,7 @@ async function list7(client2, argv) {
181542
181773
  formatEnvironment(link4.org.slug, link4.project.name, target),
181543
181774
  BRANCH_TRACKING_MAP[target.type](link4.project, target),
181544
181775
  TYPE_MAP[target.type],
181545
- import_chalk121.default.gray(
181776
+ import_chalk122.default.gray(
181546
181777
  target.updatedAt > 0 ? (0, import_ms32.default)(Date.now() - target.updatedAt) : "-"
181547
181778
  )
181548
181779
  ]
@@ -181589,15 +181820,15 @@ function withDefaultEnvironmentsIncluded(environments) {
181589
181820
  ...environments.slice().sort((a, b) => a.slug.localeCompare(b.slug))
181590
181821
  ];
181591
181822
  }
181592
- var import_ms32, import_chalk121, TYPE_MAP, BRANCH_TRACKING_MAP;
181823
+ var import_ms32, import_chalk122, TYPE_MAP, BRANCH_TRACKING_MAP;
181593
181824
  var init_list11 = __esm({
181594
181825
  "src/commands/target/list.ts"() {
181595
181826
  "use strict";
181596
181827
  import_ms32 = __toESM3(require_ms());
181597
- import_chalk121 = __toESM3(require_source());
181828
+ import_chalk122 = __toESM3(require_source());
181598
181829
  init_table();
181599
181830
  init_output_manager();
181600
- init_command30();
181831
+ init_command31();
181601
181832
  init_pkg_name();
181602
181833
  init_ensure_link();
181603
181834
  init_format_project();
@@ -181609,8 +181840,8 @@ var init_list11 = __esm({
181609
181840
  };
181610
181841
  BRANCH_TRACKING_MAP = {
181611
181842
  production: (project) => project.link?.productionBranch ?? "main",
181612
- preview: (_, env) => env.slug === "preview" ? import_chalk121.default.dim("All unassigned git branches") : formatBranchMatcher(env.branchMatcher),
181613
- development: () => import_chalk121.default.dim("Accessible via CLI")
181843
+ preview: (_, env) => env.slug === "preview" ? import_chalk122.default.dim("All unassigned git branches") : formatBranchMatcher(env.branchMatcher),
181844
+ development: () => import_chalk122.default.dim("Accessible via CLI")
181614
181845
  };
181615
181846
  }
181616
181847
  });
@@ -181677,12 +181908,12 @@ async function main15(client2) {
181677
181908
  telemetry2.trackCliSubcommandList(subcommand);
181678
181909
  return await list7(client2, args2);
181679
181910
  default:
181680
- output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG17));
181911
+ output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG18));
181681
181912
  output_manager_default.print(help2(targetCommand, { columns: client2.stderr.columns }));
181682
181913
  return 2;
181683
181914
  }
181684
181915
  }
181685
- var COMMAND_CONFIG17;
181916
+ var COMMAND_CONFIG18;
181686
181917
  var init_target2 = __esm({
181687
181918
  "src/commands/target/index.ts"() {
181688
181919
  "use strict";
@@ -181690,13 +181921,13 @@ var init_target2 = __esm({
181690
181921
  init_get_invalid_subcommand();
181691
181922
  init_help();
181692
181923
  init_list11();
181693
- init_command30();
181924
+ init_command31();
181694
181925
  init_get_flags_specification();
181695
181926
  init_error2();
181696
181927
  init_output_manager();
181697
181928
  init_target();
181698
181929
  init_commands();
181699
- COMMAND_CONFIG17 = {
181930
+ COMMAND_CONFIG18 = {
181700
181931
  ls: getCommandAliases(listSubcommand8)
181701
181932
  };
181702
181933
  }
@@ -181805,7 +182036,7 @@ async function list8(client2, argv) {
181805
182036
  client2.stdout.write("\n");
181806
182037
  const teamTable = table(
181807
182038
  [
181808
- ["id", "email / name"].map((str) => (0, import_chalk122.gray)(str)),
182039
+ ["id", "email / name"].map((str) => (0, import_chalk123.gray)(str)),
181809
182040
  ...teamList.map((team) => [team.value, team.name])
181810
182041
  ],
181811
182042
  { hsep: 5 }
@@ -181822,13 +182053,13 @@ async function list8(client2, argv) {
181822
182053
  }
181823
182054
  return 0;
181824
182055
  }
181825
- var import_chalk122;
182056
+ var import_chalk123;
181826
182057
  var init_list13 = __esm({
181827
182058
  "src/commands/teams/list.ts"() {
181828
182059
  "use strict";
181829
182060
  init_chars();
181830
182061
  init_table();
181831
- import_chalk122 = __toESM3(require_source());
182062
+ import_chalk123 = __toESM3(require_source());
181832
182063
  init_get_user();
181833
182064
  init_get_teams();
181834
182065
  init_pkg_name();
@@ -181837,7 +182068,7 @@ var init_list13 = __esm({
181837
182068
  init_get_args();
181838
182069
  init_error2();
181839
182070
  init_get_flags_specification();
181840
- init_command31();
182071
+ init_command32();
181841
182072
  init_output_manager();
181842
182073
  init_list12();
181843
182074
  }
@@ -181923,7 +182154,7 @@ Please select a team scope using ${getCommandName(
181923
182154
  return 1;
181924
182155
  }
181925
182156
  output_manager_default.log(
181926
- introMsg || `Inviting team members to ${import_chalk123.default.bold(currentTeam.name)}`
182157
+ introMsg || `Inviting team members to ${import_chalk124.default.bold(currentTeam.name)}`
181927
182158
  );
181928
182159
  telemetry2.trackCliArgumentEmail(emails);
181929
182160
  if (emails.length > 0) {
@@ -181943,10 +182174,10 @@ Please select a team scope using ${getCommandName(
181943
182174
  throw err;
181944
182175
  }
181945
182176
  output_manager_default.log(
181946
- `${import_chalk123.default.cyan(chars_default.tick)} ${email3}${userInfo ? ` (${userInfo})` : ""} ${elapsed2()}`
182177
+ `${import_chalk124.default.cyan(chars_default.tick)} ${email3}${userInfo ? ` (${userInfo})` : ""} ${elapsed2()}`
181947
182178
  );
181948
182179
  } else {
181949
- output_manager_default.log(`${import_chalk123.default.red(`\u2716 ${email3}`)} ${import_chalk123.default.gray("[invalid]")}`);
182180
+ output_manager_default.log(`${import_chalk124.default.red(`\u2716 ${email3}`)} ${import_chalk124.default.gray("[invalid]")}`);
181950
182181
  }
181951
182182
  }
181952
182183
  return 0;
@@ -181979,15 +182210,15 @@ Please select a team scope using ${getCommandName(
181979
182210
  );
181980
182211
  email2 = `${email2}${username ? ` (${username})` : ""} ${elapsed2()}`;
181981
182212
  emails.push(email2);
181982
- output_manager_default.log(`${import_chalk123.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email2}`);
182213
+ output_manager_default.log(`${import_chalk124.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email2}`);
181983
182214
  if (hasError) {
181984
182215
  hasError = false;
181985
182216
  process.stderr.write(eraseLines(emails.length + 2));
181986
182217
  output_manager_default.log(
181987
- introMsg || `Inviting team members to ${import_chalk123.default.bold(currentTeam.name)}`
182218
+ introMsg || `Inviting team members to ${import_chalk124.default.bold(currentTeam.name)}`
181988
182219
  );
181989
182220
  for (const email3 of emails) {
181990
- output_manager_default.log(`${import_chalk123.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
182221
+ output_manager_default.log(`${import_chalk124.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
181991
182222
  }
181992
182223
  }
181993
182224
  } catch (err) {
@@ -181996,7 +182227,7 @@ Please select a team scope using ${getCommandName(
181996
182227
  output_manager_default.error((0, import_error_utils36.errorToString)(err));
181997
182228
  hasError = true;
181998
182229
  for (const email3 of emails) {
181999
- output_manager_default.log(`${import_chalk123.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email3}`);
182230
+ output_manager_default.log(`${import_chalk124.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email3}`);
182000
182231
  }
182001
182232
  }
182002
182233
  }
@@ -182009,16 +182240,16 @@ Please select a team scope using ${getCommandName(
182009
182240
  } else {
182010
182241
  output_manager_default.success(`Invited ${n} teammate${n > 1 ? "s" : ""}`);
182011
182242
  for (const email3 of emails) {
182012
- output_manager_default.log(`${import_chalk123.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
182243
+ output_manager_default.log(`${import_chalk124.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
182013
182244
  }
182014
182245
  }
182015
182246
  return 0;
182016
182247
  }
182017
- var import_chalk123, import_error_utils36, validateEmail2, domains;
182248
+ var import_chalk124, import_error_utils36, validateEmail2, domains;
182018
182249
  var init_invite2 = __esm({
182019
182250
  "src/commands/teams/invite.ts"() {
182020
182251
  "use strict";
182021
- import_chalk123 = __toESM3(require_source());
182252
+ import_chalk124 = __toESM3(require_source());
182022
182253
  init_cmd();
182023
182254
  init_stamp();
182024
182255
  init_param();
@@ -182036,7 +182267,7 @@ var init_invite2 = __esm({
182036
182267
  init_get_args();
182037
182268
  init_get_flags_specification();
182038
182269
  init_error2();
182039
- init_command31();
182270
+ init_command32();
182040
182271
  validateEmail2 = (data) => email.test(data.trim()) || data.length === 0;
182041
182272
  domains = Array.from(
182042
182273
  /* @__PURE__ */ new Set([
@@ -182094,7 +182325,7 @@ async function add7(client2) {
182094
182325
  let team;
182095
182326
  let elapsed2;
182096
182327
  output_manager_default.log(
182097
- `Pick a team identifier for its URL (e.g.: ${import_chalk124.default.cyan(
182328
+ `Pick a team identifier for its URL (e.g.: ${import_chalk125.default.cyan(
182098
182329
  "`vercel.com/acme`"
182099
182330
  )})`
182100
182331
  );
@@ -182125,7 +182356,7 @@ async function add7(client2) {
182125
182356
  output_manager_default.stopSpinner();
182126
182357
  process.stdout.write(eraseLines(2));
182127
182358
  output_manager_default.success(`Team created ${elapsed2()}`);
182128
- output_manager_default.log(`${import_chalk124.default.cyan(`${chars_default.tick} `) + teamUrlPrefix + slug}
182359
+ output_manager_default.log(`${import_chalk125.default.cyan(`${chars_default.tick} `) + teamUrlPrefix + slug}
182129
182360
  `);
182130
182361
  output_manager_default.log("Pick a display name for your team");
182131
182362
  let name;
@@ -182148,7 +182379,7 @@ async function add7(client2) {
182148
182379
  process.stdout.write(eraseLines(2));
182149
182380
  team = Object.assign(team, res);
182150
182381
  output_manager_default.success(`Team name saved ${elapsed2()}`);
182151
- output_manager_default.log(`${import_chalk124.default.cyan(`${chars_default.tick} `) + teamNamePrefix + team.name}
182382
+ output_manager_default.log(`${import_chalk125.default.cyan(`${chars_default.tick} `) + teamNamePrefix + team.name}
182152
182383
  `);
182153
182384
  output_manager_default.spinner("Saving");
182154
182385
  client2.config.currentTeam = team.id;
@@ -182162,11 +182393,11 @@ async function add7(client2) {
182162
182393
  });
182163
182394
  return 0;
182164
182395
  }
182165
- var import_chalk124, import_error_utils37, validateSlug, validateName, teamUrlPrefix, teamNamePrefix;
182396
+ var import_chalk125, import_error_utils37, validateSlug, validateName, teamUrlPrefix, teamNamePrefix;
182166
182397
  var init_add13 = __esm({
182167
182398
  "src/commands/teams/add.ts"() {
182168
182399
  "use strict";
182169
- import_chalk124 = __toESM3(require_source());
182400
+ import_chalk125 = __toESM3(require_source());
182170
182401
  init_stamp();
182171
182402
  init_erase_lines();
182172
182403
  init_chars();
@@ -182179,7 +182410,7 @@ var init_add13 = __esm({
182179
182410
  init_output_manager();
182180
182411
  validateSlug = (value) => /^[a-z]+[a-z0-9_-]*$/.test(value);
182181
182412
  validateName = (value) => /^[ a-zA-Z0-9_-]+$/.test(value);
182182
- teamUrlPrefix = "Team URL".padEnd(14) + import_chalk124.default.gray("vercel.com/");
182413
+ teamUrlPrefix = "Team URL".padEnd(14) + import_chalk125.default.gray("vercel.com/");
182183
182414
  teamNamePrefix = "Team Name".padEnd(14);
182184
182415
  }
182185
182416
  });
@@ -182238,7 +182469,7 @@ async function change(client2, argv) {
182238
182469
  let title9 = `${team.name} (${team.slug})`;
182239
182470
  const selected = team.id === currentTeam?.id;
182240
182471
  if (selected) {
182241
- title9 += ` ${import_chalk125.default.bold("(current)")}`;
182472
+ title9 += ` ${import_chalk126.default.bold("(current)")}`;
182242
182473
  }
182243
182474
  if (team.limited) {
182244
182475
  title9 += ` ${emoji("locked")}`;
@@ -182250,7 +182481,7 @@ async function change(client2, argv) {
182250
182481
  selected
182251
182482
  };
182252
182483
  });
182253
- let suffix = personalScopeSelected ? ` ${import_chalk125.default.bold("(current)")}` : "";
182484
+ let suffix = personalScopeSelected ? ` ${import_chalk126.default.bold("(current)")}` : "";
182254
182485
  if (user.limited) {
182255
182486
  suffix += ` ${emoji("locked")}`;
182256
182487
  }
@@ -182296,14 +182527,14 @@ async function change(client2, argv) {
182296
182527
  }
182297
182528
  updateCurrentTeam(config2);
182298
182529
  output_manager_default.success(
182299
- `Your account (${import_chalk125.default.bold(user.username)}) is now active!`
182530
+ `Your account (${import_chalk126.default.bold(user.username)}) is now active!`
182300
182531
  );
182301
182532
  return 0;
182302
182533
  }
182303
182534
  const newTeam = teams2.find((team) => team.slug === desiredSlug);
182304
182535
  if (!newTeam) {
182305
182536
  output_manager_default.error(
182306
- `You do not have permission to access scope ${import_chalk125.default.bold(desiredSlug)}.`
182537
+ `You do not have permission to access scope ${import_chalk126.default.bold(desiredSlug)}.`
182307
182538
  );
182308
182539
  return 1;
182309
182540
  }
@@ -182321,15 +182552,15 @@ async function change(client2, argv) {
182321
182552
  }
182322
182553
  updateCurrentTeam(config2, newTeam);
182323
182554
  output_manager_default.success(
182324
- `The team ${import_chalk125.default.bold(newTeam.name)} (${newTeam.slug}) is now active!`
182555
+ `The team ${import_chalk126.default.bold(newTeam.name)} (${newTeam.slug}) is now active!`
182325
182556
  );
182326
182557
  return 0;
182327
182558
  }
182328
- var import_chalk125, updateCurrentTeam;
182559
+ var import_chalk126, updateCurrentTeam;
182329
182560
  var init_switch2 = __esm({
182330
182561
  "src/commands/teams/switch.ts"() {
182331
182562
  "use strict";
182332
- import_chalk125 = __toESM3(require_source());
182563
+ import_chalk126 = __toESM3(require_source());
182333
182564
  init_emoji();
182334
182565
  init_get_user();
182335
182566
  init_get_teams();
@@ -182337,7 +182568,7 @@ var init_switch2 = __esm({
182337
182568
  init_files();
182338
182569
  init_output_manager();
182339
182570
  init_switch();
182340
- init_command31();
182571
+ init_command32();
182341
182572
  init_get_args();
182342
182573
  init_get_flags_specification();
182343
182574
  init_error2();
@@ -182421,7 +182652,7 @@ async function teams(client2) {
182421
182652
  }
182422
182653
  const { subcommand, args: args2, subcommandOriginal } = getSubcommand(
182423
182654
  parsedArgs.args.slice(1),
182424
- COMMAND_CONFIG18
182655
+ COMMAND_CONFIG19
182425
182656
  );
182426
182657
  const needHelp = parsedArgs.flags["--help"];
182427
182658
  if (!subcommand && needHelp) {
@@ -182480,7 +182711,7 @@ async function teams(client2) {
182480
182711
  }
182481
182712
  }
182482
182713
  }
182483
- var COMMAND_CONFIG18;
182714
+ var COMMAND_CONFIG19;
182484
182715
  var init_teams2 = __esm({
182485
182716
  "src/commands/teams/index.ts"() {
182486
182717
  "use strict";
@@ -182489,14 +182720,14 @@ var init_teams2 = __esm({
182489
182720
  init_switch2();
182490
182721
  init_invite2();
182491
182722
  init_get_args();
182492
- init_command31();
182723
+ init_command32();
182493
182724
  init_help();
182494
182725
  init_get_flags_specification();
182495
182726
  init_error2();
182496
182727
  init_teams();
182497
182728
  init_output_manager();
182498
182729
  init_get_subcommand();
182499
- COMMAND_CONFIG18 = {
182730
+ COMMAND_CONFIG19 = {
182500
182731
  list: ["ls", "list"],
182501
182732
  switch: ["switch", "change"],
182502
182733
  add: ["create", "add"],
@@ -182506,15 +182737,15 @@ var init_teams2 = __esm({
182506
182737
  });
182507
182738
 
182508
182739
  // src/commands/telemetry/status.ts
182509
- async function status(client2) {
182740
+ async function status2(client2) {
182510
182741
  const enabled = client2.config.telemetry?.enabled !== false;
182511
- const status2 = enabled ? import_chalk126.default.green("Enabled") : import_chalk126.default.red("Disabled");
182742
+ const status3 = enabled ? import_chalk127.default.green("Enabled") : import_chalk127.default.red("Disabled");
182512
182743
  output_manager_default.print("\n");
182513
- output_manager_default.log(`${import_chalk126.default.bold("Telemetry status")}: ${status2}
182744
+ output_manager_default.log(`${import_chalk127.default.bold("Telemetry status")}: ${status3}
182514
182745
  `);
182515
182746
  const learnMoreMessage = `
182516
182747
 
182517
- Learn more: ${import_chalk126.default.cyan("https://vercel.com/docs/cli/about-telemetry")}`;
182748
+ Learn more: ${import_chalk127.default.cyan("https://vercel.com/docs/cli/about-telemetry")}`;
182518
182749
  if (enabled) {
182519
182750
  output_manager_default.log(`You have opted in to Vercel CLI telemetry${learnMoreMessage}`);
182520
182751
  } else {
@@ -182525,17 +182756,17 @@ Learn more: ${import_chalk126.default.cyan("https://vercel.com/docs/cli/about-te
182525
182756
  }
182526
182757
  return 0;
182527
182758
  }
182528
- var import_chalk126;
182529
- var init_status3 = __esm({
182759
+ var import_chalk127;
182760
+ var init_status4 = __esm({
182530
182761
  "src/commands/telemetry/status.ts"() {
182531
182762
  "use strict";
182532
- import_chalk126 = __toESM3(require_source());
182763
+ import_chalk127 = __toESM3(require_source());
182533
182764
  init_output_manager();
182534
182765
  }
182535
182766
  });
182536
182767
 
182537
182768
  // src/commands/telemetry/enable.ts
182538
- async function enable(client2) {
182769
+ async function enable2(client2) {
182539
182770
  client2.config = {
182540
182771
  ...client2.config,
182541
182772
  telemetry: {
@@ -182544,19 +182775,19 @@ async function enable(client2) {
182544
182775
  }
182545
182776
  };
182546
182777
  writeToConfigFile(client2.config);
182547
- await status(client2);
182778
+ await status2(client2);
182548
182779
  return 0;
182549
182780
  }
182550
- var init_enable = __esm({
182781
+ var init_enable2 = __esm({
182551
182782
  "src/commands/telemetry/enable.ts"() {
182552
182783
  "use strict";
182553
182784
  init_files();
182554
- init_status3();
182785
+ init_status4();
182555
182786
  }
182556
182787
  });
182557
182788
 
182558
182789
  // src/commands/telemetry/disable.ts
182559
- async function disable(client2) {
182790
+ async function disable2(client2) {
182560
182791
  client2.config = {
182561
182792
  ...client2.config,
182562
182793
  telemetry: {
@@ -182565,14 +182796,14 @@ async function disable(client2) {
182565
182796
  }
182566
182797
  };
182567
182798
  writeToConfigFile(client2.config);
182568
- await status(client2);
182799
+ await status2(client2);
182569
182800
  return 0;
182570
182801
  }
182571
- var init_disable = __esm({
182802
+ var init_disable2 = __esm({
182572
182803
  "src/commands/telemetry/disable.ts"() {
182573
182804
  "use strict";
182574
182805
  init_files();
182575
- init_status3();
182806
+ init_status4();
182576
182807
  }
182577
182808
  });
182578
182809
 
@@ -182587,10 +182818,10 @@ async function flush(client2, args2) {
182587
182818
  body: JSON.stringify(body),
182588
182819
  json: false
182589
182820
  });
182590
- const status2 = res.status;
182821
+ const status3 = res.status;
182591
182822
  const cliTracked = res.headers.get("x-vercel-cli-tracked") || "";
182592
182823
  const wasRecorded = cliTracked === "1";
182593
- if (status2 === 204) {
182824
+ if (status3 === 204) {
182594
182825
  if (wasRecorded) {
182595
182826
  process.stderr.write("Telemetry event tracked");
182596
182827
  } else {
@@ -182598,7 +182829,7 @@ async function flush(client2, args2) {
182598
182829
  }
182599
182830
  } else {
182600
182831
  process.stderr.write(
182601
- `Failed to send telemetry events. Unexpected response from telemetry server: ${status2}`
182832
+ `Failed to send telemetry events. Unexpected response from telemetry server: ${status3}`
182602
182833
  );
182603
182834
  }
182604
182835
  return 0;
@@ -182665,7 +182896,7 @@ async function telemetry(client2) {
182665
182896
  }
182666
182897
  const { subcommand, args: args2, subcommandOriginal } = getSubcommand(
182667
182898
  parsedArguments.args.slice(1),
182668
- COMMAND_CONFIG19
182899
+ COMMAND_CONFIG20
182669
182900
  );
182670
182901
  const needHelp = parsedArguments.flags["--help"];
182671
182902
  function printHelp(command) {
@@ -182685,32 +182916,32 @@ async function telemetry(client2) {
182685
182916
  case "status":
182686
182917
  if (needHelp) {
182687
182918
  telemetryClient.trackCliFlagHelp("telemetry", subcommandOriginal);
182688
- printHelp(statusSubcommand3);
182919
+ printHelp(statusSubcommand4);
182689
182920
  return 2;
182690
182921
  }
182691
182922
  telemetryClient.trackCliSubcommandStatus(subcommandOriginal);
182692
- return status(client2);
182923
+ return status2(client2);
182693
182924
  case "flush":
182694
182925
  return flush(client2, args2);
182695
182926
  case "enable":
182696
182927
  if (needHelp) {
182697
182928
  telemetryClient.trackCliFlagHelp("telemetry", subcommandOriginal);
182698
- printHelp(enableSubcommand);
182929
+ printHelp(enableSubcommand2);
182699
182930
  return 2;
182700
182931
  }
182701
182932
  telemetryClient.trackCliSubcommandEnable(subcommandOriginal);
182702
- return enable(client2);
182933
+ return enable2(client2);
182703
182934
  case "disable":
182704
182935
  if (needHelp) {
182705
182936
  telemetryClient.trackCliFlagHelp("telemetry", subcommandOriginal);
182706
- printHelp(disableSubcommand);
182937
+ printHelp(disableSubcommand2);
182707
182938
  return 2;
182708
182939
  }
182709
- return disable(client2);
182940
+ return disable2(client2);
182710
182941
  default: {
182711
182942
  const errorMessage = parsedArguments.args.length !== 2 ? "Invalid number of arguments" : "Invalid subcommand";
182712
182943
  output_manager_default.print(
182713
- `${import_chalk127.default.red("Error")}: ${errorMessage}. See help instructions for usage:
182944
+ `${import_chalk128.default.red("Error")}: ${errorMessage}. See help instructions for usage:
182714
182945
  `
182715
182946
  );
182716
182947
  output_manager_default.print(help2(telemetryCommand, { columns: client2.stderr.columns }));
@@ -182718,7 +182949,7 @@ async function telemetry(client2) {
182718
182949
  }
182719
182950
  }
182720
182951
  }
182721
- var import_chalk127, COMMAND_CONFIG19;
182952
+ var import_chalk128, COMMAND_CONFIG20;
182722
182953
  var init_telemetry3 = __esm({
182723
182954
  "src/commands/telemetry/index.ts"() {
182724
182955
  "use strict";
@@ -182726,20 +182957,20 @@ var init_telemetry3 = __esm({
182726
182957
  init_get_args();
182727
182958
  init_get_subcommand();
182728
182959
  init_help();
182729
- init_status3();
182730
- init_enable();
182731
- init_disable();
182960
+ init_status4();
182961
+ init_enable2();
182962
+ init_disable2();
182732
182963
  init_flush();
182733
- init_command32();
182964
+ init_command33();
182734
182965
  init_get_flags_specification();
182735
182966
  init_telemetry2();
182736
- import_chalk127 = __toESM3(require_source());
182967
+ import_chalk128 = __toESM3(require_source());
182737
182968
  init_output_manager();
182738
182969
  init_commands();
182739
- COMMAND_CONFIG19 = {
182740
- status: getCommandAliases(statusSubcommand3),
182741
- enable: getCommandAliases(enableSubcommand),
182742
- disable: getCommandAliases(disableSubcommand),
182970
+ COMMAND_CONFIG20 = {
182971
+ status: getCommandAliases(statusSubcommand4),
182972
+ enable: getCommandAliases(enableSubcommand2),
182973
+ disable: getCommandAliases(disableSubcommand2),
182743
182974
  flush: getCommandAliases(flushSubcommand)
182744
182975
  };
182745
182976
  }
@@ -182793,7 +183024,7 @@ var init_whoami2 = __esm({
182793
183024
  "src/commands/whoami/index.ts"() {
182794
183025
  "use strict";
182795
183026
  init_help();
182796
- init_command33();
183027
+ init_command34();
182797
183028
  init_get_scope();
182798
183029
  init_get_args();
182799
183030
  init_get_flags_specification();
@@ -182808,7 +183039,7 @@ var import_error_utils38 = __toESM3(require_dist2());
182808
183039
  var import_path40 = require("path");
182809
183040
  var import_fs8 = require("fs");
182810
183041
  var import_fs_extra24 = __toESM3(require_lib());
182811
- var import_chalk128 = __toESM3(require_source());
183042
+ var import_chalk129 = __toESM3(require_source());
182812
183043
  var import_epipebomb = __toESM3(require_epipebomb());
182813
183044
 
182814
183045
  // src/util/get-latest-version/index.ts
@@ -183282,6 +183513,12 @@ var RootTelemetryClient = class extends TelemetryClient {
183282
183513
  value: actual
183283
183514
  });
183284
183515
  }
183516
+ trackCliCommandGuidance(actual) {
183517
+ this.trackCliCommand({
183518
+ command: "guidance",
183519
+ value: actual
183520
+ });
183521
+ }
183285
183522
  trackCliCommandHelp(actual) {
183286
183523
  this.trackCliCommand({
183287
183524
  command: "help",
@@ -183620,6 +183857,36 @@ function checkTelemetryStatus({ config: config2 }) {
183620
183857
 
183621
183858
  // src/index.ts
183622
183859
  init_output_manager();
183860
+
183861
+ // src/util/guidance/check-status.ts
183862
+ init_files();
183863
+ init_output_manager();
183864
+ function checkGuidanceStatus({ config: config2 }) {
183865
+ if (!process.env.FF_GUIDANCE_MODE) {
183866
+ return;
183867
+ }
183868
+ if (process.env.CI) {
183869
+ return;
183870
+ }
183871
+ if (process.env.VERCEL_GUIDANCE_DISABLED) {
183872
+ return;
183873
+ }
183874
+ if (config2.guidance) {
183875
+ return;
183876
+ }
183877
+ output_manager_default.note(
183878
+ "The Vercel CLI can suggest common follow-up commands and steps to help guide new users."
183879
+ );
183880
+ output_manager_default.log("You can disable this feature by running:");
183881
+ output_manager_default.log("vercel guidance disable");
183882
+ output_manager_default.log("or by setting VERCEL_GUIDANCE_DISABLED=1");
183883
+ config2.guidance = {
183884
+ enabled: true
183885
+ };
183886
+ writeToConfigFile(config2);
183887
+ }
183888
+
183889
+ // src/index.ts
183623
183890
  try {
183624
183891
  process.cwd();
183625
183892
  } catch (err) {
@@ -183707,13 +183974,13 @@ var main16 = async () => {
183707
183974
  const betaCommands = [];
183708
183975
  if (betaCommands.includes(targetOrSubcommand)) {
183709
183976
  output_manager_default.print(
183710
- `${import_chalk128.default.grey(
183977
+ `${import_chalk129.default.grey(
183711
183978
  `${getTitleName()} CLI ${pkg_default.version} ${targetOrSubcommand} (beta) \u2014 https://vercel.com/feedback`
183712
183979
  )}
183713
183980
  `
183714
183981
  );
183715
183982
  } else {
183716
- output_manager_default.print(`${import_chalk128.default.grey(`${getTitleName()} CLI ${pkg_default.version}`)}
183983
+ output_manager_default.print(`${import_chalk129.default.grey(`${getTitleName()} CLI ${pkg_default.version}`)}
183717
183984
  `);
183718
183985
  }
183719
183986
  if (!targetOrSubcommand && parsedArgs.flags["--version"]) {
@@ -183793,6 +184060,11 @@ var main16 = async () => {
183793
184060
  checkTelemetryStatus({
183794
184061
  config: config2
183795
184062
  });
184063
+ if (process.env.FF_GUIDANCE_MODE) {
184064
+ checkGuidanceStatus({
184065
+ config: config2
184066
+ });
184067
+ }
183796
184068
  const telemetry2 = new RootTelemetryClient({
183797
184069
  opts: {
183798
184070
  store: telemetryEventStore
@@ -183879,6 +184151,9 @@ var main16 = async () => {
183879
184151
  "build",
183880
184152
  "telemetry"
183881
184153
  ];
184154
+ if (process.env.FF_GUIDANCE_MODE) {
184155
+ subcommandsWithoutToken.push("guidance");
184156
+ }
183882
184157
  if ((!authConfig || !authConfig.token) && !client.argv.includes("-h") && !client.argv.includes("--help") && !parsedArgs.flags["--token"] && subcommand && !subcommandsWithoutToken.includes(subcommand)) {
183883
184158
  if (isTTY2) {
183884
184159
  output_manager_default.log(`No existing credentials found. Please log in:`);
@@ -184075,6 +184350,15 @@ var main16 = async () => {
184075
184350
  telemetry2.trackCliCommandGit(userSuppliedSubCommand);
184076
184351
  func = (init_git2(), __toCommonJS3(git_exports)).default;
184077
184352
  break;
184353
+ case "guidance":
184354
+ if (process.env.FF_GUIDANCE_MODE) {
184355
+ telemetry2.trackCliCommandGuidance(userSuppliedSubCommand);
184356
+ func = (init_guidance2(), __toCommonJS3(guidance_exports)).default;
184357
+ break;
184358
+ } else {
184359
+ func = null;
184360
+ break;
184361
+ }
184078
184362
  case "init":
184079
184363
  telemetry2.trackCliCommandInit(userSuppliedSubCommand);
184080
184364
  func = (init_init3(), __toCommonJS3(init_exports)).default;
@@ -184265,20 +184549,20 @@ main16().then(async (exitCode2) => {
184265
184549
  });
184266
184550
  if (latest) {
184267
184551
  const changelog = "https://github.com/vercel/vercel/releases";
184268
- const errorMsg = exitCode2 && exitCode2 !== 2 ? import_chalk128.default.magenta(
184552
+ const errorMsg = exitCode2 && exitCode2 !== 2 ? import_chalk129.default.magenta(
184269
184553
  `
184270
184554
 
184271
- The latest update ${import_chalk128.default.italic(
184555
+ The latest update ${import_chalk129.default.italic(
184272
184556
  "may"
184273
184557
  )} fix any errors that occurred.`
184274
184558
  ) : "";
184275
184559
  output_manager_default.print(
184276
184560
  box(
184277
- `Update available! ${import_chalk128.default.gray(`v${pkg_default.version}`)} \u226B ${import_chalk128.default.green(
184561
+ `Update available! ${import_chalk129.default.gray(`v${pkg_default.version}`)} \u226B ${import_chalk129.default.green(
184278
184562
  `v${latest}`
184279
184563
  )}
184280
184564
  Changelog: ${output_manager_default.link(changelog, changelog, { fallback: false })}
184281
- Run ${import_chalk128.default.cyan(cmd(await getUpdateCommand()))} to update.${errorMsg}`
184565
+ Run ${import_chalk129.default.cyan(cmd(await getUpdateCommand()))} to update.${errorMsg}`
184282
184566
  )
184283
184567
  );
184284
184568
  output_manager_default.print("\n\n");