vercel 43.2.0 → 43.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +563 -543
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -34341,7 +34341,16 @@ var init_command32 = __esm({
34341
34341
  copySubcommand,
34342
34342
  storeSubcommand
34343
34343
  ],
34344
- options: [],
34344
+ options: [
34345
+ {
34346
+ name: "rw-token",
34347
+ shorthand: null,
34348
+ type: String,
34349
+ deprecated: false,
34350
+ description: "Read_Write_Token for the Blob store",
34351
+ argument: "String"
34352
+ }
34353
+ ],
34345
34354
  examples: []
34346
34355
  };
34347
34356
  }
@@ -100419,127 +100428,6 @@ var init_get_invalid_subcommand = __esm({
100419
100428
  }
100420
100429
  });
100421
100430
 
100422
- // src/util/parse-env.ts
100423
- var parseEnv;
100424
- var init_parse_env = __esm({
100425
- "src/util/parse-env.ts"() {
100426
- "use strict";
100427
- parseEnv = (env) => {
100428
- if (!env) {
100429
- return {};
100430
- }
100431
- if (typeof env === "string") {
100432
- env = [env];
100433
- }
100434
- if (Array.isArray(env)) {
100435
- const startingDict = {};
100436
- return env.reduce((o, e2) => {
100437
- let key;
100438
- let value;
100439
- const equalsSign = e2.indexOf("=");
100440
- if (equalsSign === -1) {
100441
- key = e2;
100442
- } else {
100443
- key = e2.slice(0, equalsSign);
100444
- value = e2.slice(equalsSign + 1);
100445
- }
100446
- o[key] = value;
100447
- return o;
100448
- }, startingDict);
100449
- }
100450
- return env;
100451
- };
100452
- }
100453
- });
100454
-
100455
- // src/util/env/diff-env-files.ts
100456
- async function createEnvObject(envPath) {
100457
- const envArr = (await (0, import_fs_extra4.readFile)(envPath, "utf-8")).replace(/"/g, "").split(/\r?\n|\r/).filter((line) => /^[^#]/.test(line)).filter((line) => /=/i.test(line));
100458
- const parsedEnv = parseEnv(envArr);
100459
- if (Object.keys(parsedEnv).length === 0) {
100460
- output_manager_default.debug("Failed to parse env file.");
100461
- return;
100462
- }
100463
- return parsedEnv;
100464
- }
100465
- function findChanges(oldEnv, newEnv) {
100466
- const added = [];
100467
- const changed = [];
100468
- for (const key of Object.keys(newEnv)) {
100469
- if (oldEnv[key] === void 0) {
100470
- added.push(key);
100471
- } else if (oldEnv[key] !== newEnv[key]) {
100472
- changed.push(key);
100473
- }
100474
- delete oldEnv[key];
100475
- }
100476
- const removed = Object.keys(oldEnv);
100477
- return {
100478
- added,
100479
- changed,
100480
- removed
100481
- };
100482
- }
100483
- function buildDeltaString(oldEnv, newEnv) {
100484
- const { added, changed, removed } = findChanges(oldEnv, newEnv);
100485
- let deltaString = "";
100486
- deltaString += import_chalk34.default.green(addDeltaSection("+", changed, true));
100487
- deltaString += import_chalk34.default.green(addDeltaSection("+", added));
100488
- deltaString += import_chalk34.default.red(addDeltaSection("-", removed));
100489
- return deltaString ? import_chalk34.default.gray("Changes:\n") + deltaString + "\n" : deltaString;
100490
- }
100491
- function addDeltaSection(prefix, arr, changed = false) {
100492
- if (arr.length === 0)
100493
- return "";
100494
- return arr.sort().map((item) => `${prefix} ${item}${changed ? " (Updated)" : ""}`).join("\n") + "\n";
100495
- }
100496
- var import_fs_extra4, import_chalk34;
100497
- var init_diff_env_files = __esm({
100498
- "src/util/env/diff-env-files.ts"() {
100499
- "use strict";
100500
- import_fs_extra4 = __toESM3(require_lib());
100501
- init_parse_env();
100502
- import_chalk34 = __toESM3(require_source());
100503
- init_output_manager();
100504
- }
100505
- });
100506
-
100507
- // src/util/blob/token.ts
100508
- async function getBlobRWToken(client2) {
100509
- const filename = ".env.local";
100510
- const fullPath = (0, import_node_path.resolve)(client2.cwd, filename);
100511
- let env;
100512
- try {
100513
- env = await createEnvObject(fullPath);
100514
- } catch (error3) {
100515
- return {
100516
- error: "Couldn't read .env.local file. Please check if it exists.",
100517
- success: false
100518
- };
100519
- }
100520
- if (!env) {
100521
- return {
100522
- error: `No environment variables found in ${filename}`,
100523
- success: false
100524
- };
100525
- }
100526
- if (!env.BLOB_READ_WRITE_TOKEN) {
100527
- return {
100528
- error: `No BLOB_READ_WRITE_TOKEN found in ${filename}`,
100529
- success: false
100530
- };
100531
- }
100532
- return { token: env.BLOB_READ_WRITE_TOKEN, success: true };
100533
- }
100534
- var import_node_path;
100535
- var init_token = __esm({
100536
- "src/util/blob/token.ts"() {
100537
- "use strict";
100538
- import_node_path = require("path");
100539
- init_diff_env_files();
100540
- }
100541
- });
100542
-
100543
100431
  // src/util/telemetry/commands/blob/list.ts
100544
100432
  var BlobListTelemetryClient;
100545
100433
  var init_list3 = __esm({
@@ -100587,7 +100475,7 @@ var init_list3 = __esm({
100587
100475
  function isMode(mode) {
100588
100476
  return mode === "folded" || mode === "expanded";
100589
100477
  }
100590
- async function list3(client2, argv) {
100478
+ async function list3(client2, argv, rwToken) {
100591
100479
  const telemetryClient = new BlobListTelemetryClient({
100592
100480
  opts: {
100593
100481
  store: client2.telemetryEventStore
@@ -100612,11 +100500,6 @@ async function list3(client2, argv) {
100612
100500
  telemetryClient.trackCliOptionCursor(cursor);
100613
100501
  telemetryClient.trackCliOptionPrefix(prefix);
100614
100502
  telemetryClient.trackCliOptionMode(modeFlag);
100615
- const token = await getBlobRWToken(client2);
100616
- if (!token.success) {
100617
- printError(token.error);
100618
- return 1;
100619
- }
100620
100503
  const mode = modeFlag ?? "expanded";
100621
100504
  if (!isMode(mode)) {
100622
100505
  output_manager_default.error(
@@ -100629,7 +100512,7 @@ async function list3(client2, argv) {
100629
100512
  output_manager_default.debug("Fetching blobs");
100630
100513
  output_manager_default.spinner("Fetching blobs");
100631
100514
  list9 = await blob.list({
100632
- token: token.token,
100515
+ token: rwToken,
100633
100516
  limit: limit ?? 10,
100634
100517
  cursor,
100635
100518
  mode,
@@ -100644,7 +100527,7 @@ async function list3(client2, argv) {
100644
100527
  const urls = [];
100645
100528
  const tablePrint = table(
100646
100529
  [
100647
- headers.map((header) => import_chalk35.default.dim(header)),
100530
+ headers.map((header) => import_chalk34.default.dim(header)),
100648
100531
  ...list9.blobs.map((blob5) => {
100649
100532
  urls.push(blob5.url);
100650
100533
  const uploadedAt = (0, import_ms7.default)(Date.now() - new Date(blob5.uploadedAt).getTime());
@@ -100671,21 +100554,20 @@ ${tablePrint}
100671
100554
  }
100672
100555
  return 0;
100673
100556
  }
100674
- var blob, import_chalk35, import_ms7;
100557
+ var blob, import_chalk34, import_ms7;
100675
100558
  var init_list4 = __esm({
100676
100559
  "src/commands/blob/list.ts"() {
100677
100560
  "use strict";
100678
100561
  init_output_manager();
100679
100562
  blob = __toESM3(require("@vercel/blob"));
100680
100563
  init_table();
100681
- import_chalk35 = __toESM3(require_source());
100564
+ import_chalk34 = __toESM3(require_source());
100682
100565
  import_ms7 = __toESM3(require_ms());
100683
100566
  init_get_command_flags();
100684
100567
  init_get_args();
100685
100568
  init_get_flags_specification();
100686
100569
  init_command32();
100687
100570
  init_pkg_name();
100688
- init_token();
100689
100571
  init_list3();
100690
100572
  init_error2();
100691
100573
  }
@@ -100728,6 +100610,12 @@ var init_blob = __esm({
100728
100610
  value: actual
100729
100611
  });
100730
100612
  }
100613
+ trackCliOptionRwToken() {
100614
+ this.trackCliOption({
100615
+ option: "--rw-token",
100616
+ value: this.redactedValue
100617
+ });
100618
+ }
100731
100619
  };
100732
100620
  }
100733
100621
  });
@@ -100791,7 +100679,7 @@ var init_put = __esm({
100791
100679
  });
100792
100680
 
100793
100681
  // src/commands/blob/put.ts
100794
- async function put2(client2, argv) {
100682
+ async function put2(client2, argv, rwToken) {
100795
100683
  const telemetryClient = new BlobPutTelemetryClient({
100796
100684
  opts: {
100797
100685
  store: client2.telemetryEventStore
@@ -100830,11 +100718,6 @@ async function put2(client2, argv) {
100830
100718
  telemetryClient.trackCliOptionContentType(contentType2);
100831
100719
  telemetryClient.trackCliOptionCacheControlMaxAge(cacheControlMaxAge);
100832
100720
  telemetryClient.trackCliFlagForce(force);
100833
- const token = await getBlobRWToken(client2);
100834
- if (!token.success) {
100835
- printError(token.error);
100836
- return 1;
100837
- }
100838
100721
  let putBody;
100839
100722
  let pathname;
100840
100723
  try {
@@ -100842,7 +100725,7 @@ async function put2(client2, argv) {
100842
100725
  const isFile2 = stats.isFile();
100843
100726
  if (isFile2) {
100844
100727
  putBody = (0, import_node_fs.readFileSync)(filePath);
100845
- pathname = pathnameFlag ?? (0, import_node_path2.basename)(filePath);
100728
+ pathname = pathnameFlag ?? (0, import_node_path.basename)(filePath);
100846
100729
  } else {
100847
100730
  output_manager_default.error("Path to upload is not a file");
100848
100731
  return 1;
@@ -100858,7 +100741,7 @@ async function put2(client2, argv) {
100858
100741
  }
100859
100742
  if (!pathname || !putBody) {
100860
100743
  output_manager_default.error(
100861
- `Missing pathname or file. Usage: ${import_chalk36.default.cyan(
100744
+ `Missing pathname or file. Usage: ${import_chalk35.default.cyan(
100862
100745
  `${getCommandName("blob put <file> [--pathname <pathname>]")}`
100863
100746
  )}`
100864
100747
  );
@@ -100869,7 +100752,7 @@ async function put2(client2, argv) {
100869
100752
  output_manager_default.debug("Uploading blob");
100870
100753
  output_manager_default.spinner("Uploading blob");
100871
100754
  result = await blob2.put(pathname, putBody, {
100872
- token: token.token,
100755
+ token: rwToken,
100873
100756
  access: "public",
100874
100757
  addRandomSuffix: addRandomSuffix ?? false,
100875
100758
  multipart: multipart ?? true,
@@ -100885,7 +100768,7 @@ async function put2(client2, argv) {
100885
100768
  output_manager_default.success(result.url);
100886
100769
  return 0;
100887
100770
  }
100888
- var blob2, import_node_fs, import_error_utils12, import_node_path2, import_chalk36;
100771
+ var blob2, import_node_fs, import_error_utils12, import_node_path, import_chalk35;
100889
100772
  var init_put2 = __esm({
100890
100773
  "src/commands/blob/put.ts"() {
100891
100774
  "use strict";
@@ -100894,12 +100777,11 @@ var init_put2 = __esm({
100894
100777
  init_get_args();
100895
100778
  init_get_flags_specification();
100896
100779
  init_command32();
100897
- init_token();
100898
100780
  import_node_fs = require("fs");
100899
100781
  import_error_utils12 = __toESM3(require_dist2());
100900
- import_node_path2 = require("path");
100782
+ import_node_path = require("path");
100901
100783
  init_pkg_name();
100902
- import_chalk36 = __toESM3(require_source());
100784
+ import_chalk35 = __toESM3(require_source());
100903
100785
  init_put();
100904
100786
  init_error2();
100905
100787
  }
@@ -100925,7 +100807,7 @@ var init_del = __esm({
100925
100807
  });
100926
100808
 
100927
100809
  // src/commands/blob/del.ts
100928
- async function del2(client2, argv) {
100810
+ async function del2(client2, argv, rwToken) {
100929
100811
  const telemetryClient = new BlobDelTelemetryClient({
100930
100812
  opts: {
100931
100813
  store: client2.telemetryEventStore
@@ -100947,15 +100829,10 @@ async function del2(client2, argv) {
100947
100829
  }
100948
100830
  const { args: args2 } = parsedArgs;
100949
100831
  telemetryClient.trackCliArgumentUrlsOrPathnames(args2[0]);
100950
- const token = await getBlobRWToken(client2);
100951
- if (!token.success) {
100952
- printError(token.error);
100953
- return 1;
100954
- }
100955
100832
  try {
100956
100833
  output_manager_default.debug("Deleting blob");
100957
100834
  output_manager_default.spinner("Deleting blob");
100958
- await blob3.del(args2, { token: token.token });
100835
+ await blob3.del(args2, { token: rwToken });
100959
100836
  } catch (err) {
100960
100837
  output_manager_default.error(`Error deleting blob: ${err}`);
100961
100838
  return 1;
@@ -100973,7 +100850,6 @@ var init_del2 = __esm({
100973
100850
  init_get_args();
100974
100851
  init_get_flags_specification();
100975
100852
  init_command32();
100976
- init_token();
100977
100853
  init_del();
100978
100854
  init_error2();
100979
100855
  init_pkg_name();
@@ -101029,7 +100905,7 @@ var init_copy = __esm({
101029
100905
  });
101030
100906
 
101031
100907
  // src/commands/blob/copy.ts
101032
- async function copy2(client2, argv) {
100908
+ async function copy2(client2, argv, rwToken) {
101033
100909
  const telemetryClient = new BlobCopyTelemetryClient({
101034
100910
  opts: {
101035
100911
  store: client2.telemetryEventStore
@@ -101043,7 +100919,7 @@ async function copy2(client2, argv) {
101043
100919
  printError(err);
101044
100920
  return 1;
101045
100921
  }
101046
- if (!parsedArgs.args.length) {
100922
+ if (!parsedArgs.args || parsedArgs.args.length < 2) {
101047
100923
  printError(
101048
100924
  `Missing required arguments: ${getCommandName(
101049
100925
  "blob copy fromUrlOrPathname toPathname"
@@ -101064,17 +100940,12 @@ async function copy2(client2, argv) {
101064
100940
  telemetryClient.trackCliFlagAddRandomSuffix(addRandomSuffix);
101065
100941
  telemetryClient.trackCliOptionContentType(contentType2);
101066
100942
  telemetryClient.trackCliOptionCacheControlMaxAge(cacheControlMaxAge);
101067
- const token = await getBlobRWToken(client2);
101068
- if (!token.success) {
101069
- printError(token.error);
101070
- return 1;
101071
- }
101072
100943
  let result;
101073
100944
  try {
101074
100945
  output_manager_default.debug("Copying blob");
101075
100946
  output_manager_default.spinner("Copying blob");
101076
100947
  result = await blob4.copy(fromUrl, toPathname, {
101077
- token: token.token,
100948
+ token: rwToken,
101078
100949
  access: "public",
101079
100950
  addRandomSuffix: addRandomSuffix ?? false,
101080
100951
  contentType: contentType2,
@@ -101098,7 +100969,6 @@ var init_copy2 = __esm({
101098
100969
  init_get_args();
101099
100970
  init_get_flags_specification();
101100
100971
  init_command32();
101101
- init_token();
101102
100972
  init_copy();
101103
100973
  init_pkg_name();
101104
100974
  }
@@ -108961,7 +108831,7 @@ function isDirty(directory) {
108961
108831
  }
108962
108832
  async function parseGitConfig(configPath) {
108963
108833
  try {
108964
- return import_ini.default.parse(await import_fs_extra5.default.readFile(configPath, "utf-8"));
108834
+ return import_ini.default.parse(await import_fs_extra4.default.readFile(configPath, "utf-8"));
108965
108835
  } catch (err) {
108966
108836
  output_manager_default.debug(`Error while parsing repo data: ${(0, import_error_utils13.errorToString)(err)}`);
108967
108837
  }
@@ -109004,11 +108874,11 @@ async function getOriginUrl(configPath) {
109004
108874
  }
109005
108875
  return null;
109006
108876
  }
109007
- var import_fs_extra5, import_path11, import_ini, import_git_last_commit, import_child_process2, import_error_utils13;
108877
+ var import_fs_extra4, import_path11, import_ini, import_git_last_commit, import_child_process2, import_error_utils13;
109008
108878
  var init_create_git_meta = __esm({
109009
108879
  "src/util/create-git-meta.ts"() {
109010
108880
  "use strict";
109011
- import_fs_extra5 = __toESM3(require_lib());
108881
+ import_fs_extra4 = __toESM3(require_lib());
109012
108882
  import_path11 = require("path");
109013
108883
  import_ini = __toESM3(require_ini());
109014
108884
  import_git_last_commit = __toESM3(require_source3());
@@ -109071,7 +108941,7 @@ async function addToGitIgnore(path11, ignore = VERCEL_DIR2) {
109071
108941
  let isGitIgnoreUpdated = false;
109072
108942
  try {
109073
108943
  const gitIgnorePath = (0, import_path12.join)(path11, ".gitignore");
109074
- let gitIgnore = await (0, import_fs_extra6.readFile)(gitIgnorePath, "utf8").catch(() => null) ?? "";
108944
+ let gitIgnore = await (0, import_fs_extra5.readFile)(gitIgnorePath, "utf8").catch(() => null) ?? "";
109075
108945
  const EOL = gitIgnore.includes("\r\n") ? "\r\n" : import_os6.default.EOL;
109076
108946
  let contentModified = false;
109077
108947
  if (!gitIgnore.split(EOL).includes(ignore)) {
@@ -109079,20 +108949,20 @@ async function addToGitIgnore(path11, ignore = VERCEL_DIR2) {
109079
108949
  contentModified = true;
109080
108950
  }
109081
108951
  if (contentModified) {
109082
- await (0, import_fs_extra6.writeFile)(gitIgnorePath, gitIgnore);
108952
+ await (0, import_fs_extra5.writeFile)(gitIgnorePath, gitIgnore);
109083
108953
  isGitIgnoreUpdated = true;
109084
108954
  }
109085
108955
  } catch (error3) {
109086
108956
  }
109087
108957
  return isGitIgnoreUpdated;
109088
108958
  }
109089
- var import_os6, import_path12, import_fs_extra6;
108959
+ var import_os6, import_path12, import_fs_extra5;
109090
108960
  var init_add_to_gitignore = __esm({
109091
108961
  "src/util/link/add-to-gitignore.ts"() {
109092
108962
  "use strict";
109093
108963
  import_os6 = __toESM3(require("os"));
109094
108964
  import_path12 = require("path");
109095
- import_fs_extra6 = __toESM3(require_lib());
108965
+ import_fs_extra5 = __toESM3(require_lib());
109096
108966
  init_link2();
109097
108967
  }
109098
108968
  });
@@ -126109,13 +125979,13 @@ async function connectGitProvider(client2, projectId, type, repo) {
126109
125979
  const apiError = isAPIError(err);
126110
125980
  if (apiError && (err.action === "Install GitHub App" || err.code === "repo_not_found")) {
126111
125981
  output_manager_default.error(
126112
- `Failed to connect ${import_chalk37.default.cyan(
125982
+ `Failed to connect ${import_chalk36.default.cyan(
126113
125983
  repo
126114
125984
  )} to project. Make sure there aren't any typos and that you have access to the repository if it's private.`
126115
125985
  );
126116
125986
  } else if (apiError && err.action === "Add a Login Connection") {
126117
125987
  output_manager_default.error(
126118
- err.message.replace(repo, import_chalk37.default.cyan(repo)) + `
125988
+ err.message.replace(repo, import_chalk36.default.cyan(repo)) + `
126119
125989
  Visit ${link_default(err.link)} for more information.`
126120
125990
  );
126121
125991
  } else {
@@ -126174,16 +126044,16 @@ function parseRepoUrl(originUrl) {
126174
126044
  }
126175
126045
  function printRemoteUrls(remoteUrls) {
126176
126046
  for (const [name, url3] of Object.entries(remoteUrls)) {
126177
- output_manager_default.print(` \u2022 ${name}: ${import_chalk37.default.cyan(url3)}
126047
+ output_manager_default.print(` \u2022 ${name}: ${import_chalk36.default.cyan(url3)}
126178
126048
  `);
126179
126049
  }
126180
126050
  }
126181
- var import_url10, import_chalk37;
126051
+ var import_url10, import_chalk36;
126182
126052
  var init_connect_git_provider = __esm({
126183
126053
  "src/util/git/connect-git-provider.ts"() {
126184
126054
  "use strict";
126185
126055
  import_url10 = require("url");
126186
- import_chalk37 = __toESM3(require_source());
126056
+ import_chalk36 = __toESM3(require_source());
126187
126057
  init_link();
126188
126058
  init_errors_ts();
126189
126059
  init_output_manager();
@@ -126233,7 +126103,7 @@ async function getRepoLink(client2, cwd) {
126233
126103
  if (!rootPath)
126234
126104
  return void 0;
126235
126105
  const repoConfigPath = (0, import_path14.join)(rootPath, VERCEL_DIR2, VERCEL_DIR_REPO);
126236
- const repoConfig = await (0, import_fs_extra7.readJSON)(repoConfigPath).catch(
126106
+ const repoConfig = await (0, import_fs_extra6.readJSON)(repoConfigPath).catch(
126237
126107
  (err) => {
126238
126108
  if (err.code !== "ENOENT")
126239
126109
  throw err;
@@ -126255,7 +126125,7 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
126255
126125
  return /* @__PURE__ */ new Map();
126256
126126
  });
126257
126127
  const shouldLink = yes || await client2.input.confirm(
126258
- `Link Git repository at ${import_chalk38.default.cyan(
126128
+ `Link Git repository at ${import_chalk37.default.cyan(
126259
126129
  `\u201C${humanizePath(rootPath)}\u201D`
126260
126130
  )} to your Project(s)?`,
126261
126131
  true
@@ -126302,7 +126172,7 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
126302
126172
  fallback: () => link_default(repoUrl)
126303
126173
  });
126304
126174
  output_manager_default.spinner(
126305
- `Fetching Projects for ${repoUrlLink} under ${import_chalk38.default.bold(org.slug)}\u2026`
126175
+ `Fetching Projects for ${repoUrlLink} under ${import_chalk37.default.bold(org.slug)}\u2026`
126306
126176
  );
126307
126177
  let projects = [];
126308
126178
  const query = new URLSearchParams({ repoUrl });
@@ -126311,12 +126181,12 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
126311
126181
  for await (const chunk of projectsIterator) {
126312
126182
  projects = projects.concat(chunk.projects);
126313
126183
  if (chunk.pagination.next) {
126314
- output_manager_default.spinner(`Found ${import_chalk38.default.bold(projects.length)} Projects\u2026`, 0);
126184
+ output_manager_default.spinner(`Found ${import_chalk37.default.bold(projects.length)} Projects\u2026`, 0);
126315
126185
  }
126316
126186
  }
126317
126187
  if (projects.length === 0) {
126318
126188
  output_manager_default.log(
126319
- `No Projects are linked to ${repoUrlLink} under ${import_chalk38.default.bold(
126189
+ `No Projects are linked to ${repoUrlLink} under ${import_chalk37.default.bold(
126320
126190
  org.slug
126321
126191
  )}.`
126322
126192
  );
@@ -126326,7 +126196,7 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
126326
126196
  "Project",
126327
126197
  projects.length,
126328
126198
  true
126329
- )} linked to ${repoUrlLink} under ${import_chalk38.default.bold(org.slug)}`
126199
+ )} linked to ${repoUrlLink} under ${import_chalk37.default.bold(org.slug)}`
126330
126200
  );
126331
126201
  }
126332
126202
  for (const project of projects) {
@@ -126433,7 +126303,7 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
126433
126303
  };
126434
126304
  })
126435
126305
  };
126436
- await (0, import_fs_extra7.outputJSON)(repoConfigPath, repoConfig, { spaces: 2 });
126306
+ await (0, import_fs_extra6.outputJSON)(repoConfigPath, repoConfig, { spaces: 2 });
126437
126307
  await writeReadme(rootPath);
126438
126308
  const isGitIgnoreUpdated = await addToGitIgnore(rootPath);
126439
126309
  output_manager_default.print(
@@ -126442,7 +126312,7 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
126442
126312
  "Project",
126443
126313
  selected.length,
126444
126314
  true
126445
- )} under ${import_chalk38.default.bold(org.slug)} (created ${VERCEL_DIR2}${isGitIgnoreUpdated ? " and added it to .gitignore" : ""})`,
126315
+ )} under ${import_chalk37.default.bold(org.slug)} (created ${VERCEL_DIR2}${isGitIgnoreUpdated ? " and added it to .gitignore" : ""})`,
126446
126316
  emoji("link")
126447
126317
  ) + "\n"
126448
126318
  );
@@ -126463,7 +126333,7 @@ async function findRepoRoot(client2, start) {
126463
126333
  break;
126464
126334
  }
126465
126335
  const repoConfigPath = (0, import_path14.join)(current, REPO_JSON_PATH);
126466
- let stat2 = await (0, import_fs_extra7.lstat)(repoConfigPath).catch((err) => {
126336
+ let stat2 = await (0, import_fs_extra6.lstat)(repoConfigPath).catch((err) => {
126467
126337
  if (err.code !== "ENOENT")
126468
126338
  throw err;
126469
126339
  });
@@ -126472,7 +126342,7 @@ async function findRepoRoot(client2, start) {
126472
126342
  return current;
126473
126343
  }
126474
126344
  const gitConfigPath = (0, import_path14.join)(current, GIT_PATH);
126475
- stat2 = await (0, import_fs_extra7.lstat)(gitConfigPath).catch((err) => {
126345
+ stat2 = await (0, import_fs_extra6.lstat)(gitConfigPath).catch((err) => {
126476
126346
  if (err.code !== "ENOENT")
126477
126347
  throw err;
126478
126348
  });
@@ -126499,18 +126369,18 @@ function findProjectsFromPath(projects, path11) {
126499
126369
  const firstMatch = matches[0];
126500
126370
  return matches.filter((match) => match.directory === firstMatch.directory);
126501
126371
  }
126502
- var import_chalk38, import_pluralize3, import_os7, import_slugify, import_path14, import_build_utils5, import_fs_extra7, home;
126372
+ var import_chalk37, import_pluralize3, import_os7, import_slugify, import_path14, import_build_utils5, import_fs_extra6, home;
126503
126373
  var init_repo = __esm({
126504
126374
  "src/util/link/repo.ts"() {
126505
126375
  "use strict";
126506
- import_chalk38 = __toESM3(require_source());
126376
+ import_chalk37 = __toESM3(require_source());
126507
126377
  init_esm4();
126508
126378
  import_pluralize3 = __toESM3(require_pluralize());
126509
126379
  import_os7 = require("os");
126510
126380
  import_slugify = __toESM3(require_slugify());
126511
126381
  import_path14 = require("path");
126512
126382
  import_build_utils5 = require("@vercel/build-utils");
126513
- import_fs_extra7 = __toESM3(require_lib());
126383
+ import_fs_extra6 = __toESM3(require_lib());
126514
126384
  init_humanize_path();
126515
126385
  init_link2();
126516
126386
  init_create_git_meta();
@@ -126578,7 +126448,7 @@ async function getProjectLinkFromRepoLink(client2, path11) {
126578
126448
  }
126579
126449
  async function getLinkFromDir(dir) {
126580
126450
  try {
126581
- const json = await readFile4((0, import_path15.join)(dir, VERCEL_DIR_PROJECT), "utf8");
126451
+ const json = await readFile3((0, import_path15.join)(dir, VERCEL_DIR_PROJECT), "utf8");
126582
126452
  const ajv2 = new import_ajv.default();
126583
126453
  const link4 = JSON.parse(json);
126584
126454
  if (!ajv2.validate(linkSchema, link4)) {
@@ -126693,7 +126563,7 @@ async function getLinkedProject(client2, path11 = client2.cwd) {
126693
126563
  async function writeReadme(path11) {
126694
126564
  await writeFile2(
126695
126565
  (0, import_path15.join)(path11, VERCEL_DIR2, VERCEL_DIR_README),
126696
- await readFile4((0, import_path15.join)(__dirname, "VERCEL_DIR_README.txt"), "utf8")
126566
+ await readFile3((0, import_path15.join)(__dirname, "VERCEL_DIR_README.txt"), "utf8")
126697
126567
  );
126698
126568
  }
126699
126569
  async function linkFolderToProject(client2, path11, projectLink, projectName, orgSlug, successEmoji = "link") {
@@ -126701,7 +126571,7 @@ async function linkFolderToProject(client2, path11, projectLink, projectName, or
126701
126571
  return;
126702
126572
  }
126703
126573
  try {
126704
- await (0, import_fs_extra8.ensureDir)((0, import_path15.join)(path11, VERCEL_DIR2));
126574
+ await (0, import_fs_extra7.ensureDir)((0, import_path15.join)(path11, VERCEL_DIR2));
126705
126575
  } catch (err) {
126706
126576
  if ((0, import_error_utils14.isErrnoException)(err) && err.code === "ENOTDIR") {
126707
126577
  return;
@@ -126716,22 +126586,22 @@ async function linkFolderToProject(client2, path11, projectLink, projectName, or
126716
126586
  const isGitIgnoreUpdated = await addToGitIgnore(path11);
126717
126587
  output_manager_default.print(
126718
126588
  prependEmoji(
126719
- `Linked to ${import_chalk39.default.bold(
126589
+ `Linked to ${import_chalk38.default.bold(
126720
126590
  `${orgSlug}/${projectName}`
126721
126591
  )} (created ${VERCEL_DIR2}${isGitIgnoreUpdated ? " and added it to .gitignore" : ""})`,
126722
126592
  emoji(successEmoji)
126723
126593
  ) + "\n"
126724
126594
  );
126725
126595
  }
126726
- var import_fs4, import_ajv, import_chalk39, import_path15, import_fs_extra8, import_util2, import_build_utils6, import_error_utils14, readFile4, writeFile2, VERCEL_DIR2, VERCEL_DIR_FALLBACK, VERCEL_DIR_README, VERCEL_DIR_PROJECT, VERCEL_DIR_REPO, linkSchema;
126596
+ var import_fs4, import_ajv, import_chalk38, import_path15, import_fs_extra7, import_util2, import_build_utils6, import_error_utils14, readFile3, writeFile2, VERCEL_DIR2, VERCEL_DIR_FALLBACK, VERCEL_DIR_README, VERCEL_DIR_PROJECT, VERCEL_DIR_REPO, linkSchema;
126727
126597
  var init_link2 = __esm({
126728
126598
  "src/util/projects/link.ts"() {
126729
126599
  "use strict";
126730
126600
  import_fs4 = __toESM3(require("fs"));
126731
126601
  import_ajv = __toESM3(require_ajv());
126732
- import_chalk39 = __toESM3(require_source());
126602
+ import_chalk38 = __toESM3(require_source());
126733
126603
  import_path15 = require("path");
126734
- import_fs_extra8 = __toESM3(require_lib());
126604
+ import_fs_extra7 = __toESM3(require_lib());
126735
126605
  import_util2 = require("util");
126736
126606
  init_get_project_by_id_or_name();
126737
126607
  init_errors_ts();
@@ -126745,7 +126615,7 @@ var init_link2 = __esm({
126745
126615
  init_repo();
126746
126616
  init_add_to_gitignore();
126747
126617
  init_output_manager();
126748
- readFile4 = (0, import_util2.promisify)(import_fs4.default.readFile);
126618
+ readFile3 = (0, import_util2.promisify)(import_fs4.default.readFile);
126749
126619
  writeFile2 = (0, import_util2.promisify)(import_fs4.default.writeFile);
126750
126620
  VERCEL_DIR2 = ".vercel";
126751
126621
  VERCEL_DIR_FALLBACK = ".now";
@@ -126873,7 +126743,7 @@ async function addStore(client2, argv) {
126873
126743
  ]
126874
126744
  });
126875
126745
  output_manager_default.spinner(
126876
- `Connecting ${import_chalk40.default.bold(name)} to ${import_chalk40.default.bold(link4.project.name)}...`
126746
+ `Connecting ${import_chalk39.default.bold(name)} to ${import_chalk39.default.bold(link4.project.name)}...`
126877
126747
  );
126878
126748
  await connectResourceToProject(
126879
126749
  client2,
@@ -126883,7 +126753,7 @@ async function addStore(client2, argv) {
126883
126753
  link4.org.id
126884
126754
  );
126885
126755
  output_manager_default.success(
126886
- `Blob store ${import_chalk40.default.bold(name)} linked to ${import_chalk40.default.bold(
126756
+ `Blob store ${import_chalk39.default.bold(name)} linked to ${import_chalk39.default.bold(
126887
126757
  link4.project.name
126888
126758
  )}. Make sure to pull the new environment variables using ${getCommandName("env pull")}`
126889
126759
  );
@@ -126891,14 +126761,14 @@ async function addStore(client2, argv) {
126891
126761
  }
126892
126762
  return 0;
126893
126763
  }
126894
- var import_chalk40;
126764
+ var import_chalk39;
126895
126765
  var init_store_add2 = __esm({
126896
126766
  "src/commands/blob/store-add.ts"() {
126897
126767
  "use strict";
126898
126768
  init_output_manager();
126899
126769
  init_link2();
126900
126770
  init_connect_resource_to_project();
126901
- import_chalk40 = __toESM3(require_source());
126771
+ import_chalk39 = __toESM3(require_source());
126902
126772
  init_pkg_name();
126903
126773
  init_get_flags_specification();
126904
126774
  init_get_args();
@@ -126909,7 +126779,7 @@ var init_store_add2 = __esm({
126909
126779
  });
126910
126780
 
126911
126781
  // src/commands/blob/store-remove.ts
126912
- async function removeStore(client2, argv) {
126782
+ async function removeStore(client2, argv, rwToken) {
126913
126783
  const flagsSpecification = getFlagsSpecification(
126914
126784
  removeStoreSubcommand.options
126915
126785
  );
@@ -126923,9 +126793,8 @@ async function removeStore(client2, argv) {
126923
126793
  let {
126924
126794
  args: [storeId]
126925
126795
  } = parsedArgs;
126926
- const token = await getBlobRWToken(client2);
126927
- if (!storeId && token.success) {
126928
- const [, , , id] = token.token.split("_");
126796
+ if (!storeId && rwToken.success) {
126797
+ const [, , , id] = rwToken.token.split("_");
126929
126798
  storeId = `store_${id}`;
126930
126799
  }
126931
126800
  if (!storeId) {
@@ -126982,7 +126851,6 @@ var init_store_remove = __esm({
126982
126851
  init_command32();
126983
126852
  init_get_args();
126984
126853
  init_link2();
126985
- init_token();
126986
126854
  }
126987
126855
  });
126988
126856
 
@@ -129334,7 +129202,7 @@ var init_store_get = __esm({
129334
129202
  });
129335
129203
 
129336
129204
  // src/commands/blob/store-get.ts
129337
- async function getStore2(client2, argv) {
129205
+ async function getStore2(client2, argv, rwToken) {
129338
129206
  const telemetryClient = new BlobGetStoreTelemetryClient({
129339
129207
  opts: {
129340
129208
  store: client2.telemetryEventStore
@@ -129351,9 +129219,8 @@ async function getStore2(client2, argv) {
129351
129219
  let {
129352
129220
  args: [storeId]
129353
129221
  } = parsedArgs;
129354
- const token = await getBlobRWToken(client2);
129355
- if (!storeId && token.success) {
129356
- const [, , , id] = token.token.split("_");
129222
+ if (!storeId && rwToken.success) {
129223
+ const [, , , id] = rwToken.token.split("_");
129357
129224
  storeId = `store_${id}`;
129358
129225
  }
129359
129226
  if (!storeId) {
@@ -129378,8 +129245,8 @@ async function getStore2(client2, argv) {
129378
129245
  });
129379
129246
  const dateTimeFormat3 = "MM/DD/YYYY HH:mm:ss.SS";
129380
129247
  output_manager_default.print(
129381
- `Blob Store: ${import_chalk41.default.bold(store2.store.name)} (${import_chalk41.default.dim(store2.store.id)})
129382
- Billing State: ${store2.store.billingState === "active" ? import_chalk41.default.green("Active") : import_chalk41.default.red("Inactive")}
129248
+ `Blob Store: ${import_chalk40.default.bold(store2.store.name)} (${import_chalk40.default.dim(store2.store.id)})
129249
+ Billing State: ${store2.store.billingState === "active" ? import_chalk40.default.green("Active") : import_chalk40.default.red("Inactive")}
129383
129250
  Size: ${(0, import_bytes3.default)(store2.store.size)}
129384
129251
  Created At: ${(0, import_date_fns.format)(new Date(store2.store.createdAt), dateTimeFormat3)}
129385
129252
  Updated At: ${(0, import_date_fns.format)(new Date(store2.store.updatedAt), dateTimeFormat3)}
@@ -129392,26 +129259,25 @@ Updated At: ${(0, import_date_fns.format)(new Date(store2.store.updatedAt), date
129392
129259
  output_manager_default.stopSpinner();
129393
129260
  return 0;
129394
129261
  }
129395
- var import_bytes3, import_date_fns, import_chalk41;
129262
+ var import_bytes3, import_date_fns, import_chalk40;
129396
129263
  var init_store_get2 = __esm({
129397
129264
  "src/commands/blob/store-get.ts"() {
129398
129265
  "use strict";
129399
129266
  import_bytes3 = __toESM3(require_bytes());
129400
129267
  init_output_manager();
129401
- init_token();
129402
129268
  init_error2();
129403
129269
  init_get_args();
129404
129270
  init_get_flags_specification();
129405
129271
  init_link2();
129406
129272
  init_command32();
129407
129273
  import_date_fns = __toESM3(require_date_fns());
129408
- import_chalk41 = __toESM3(require_source());
129274
+ import_chalk40 = __toESM3(require_source());
129409
129275
  init_store_get();
129410
129276
  }
129411
129277
  });
129412
129278
 
129413
129279
  // src/commands/blob/store.ts
129414
- async function store(client2) {
129280
+ async function store(client2, rwToken) {
129415
129281
  const telemetry2 = new BlobStoreTelemetryClient({
129416
129282
  opts: {
129417
129283
  store: client2.telemetryEventStore
@@ -129459,7 +129325,7 @@ async function store(client2) {
129459
129325
  return 2;
129460
129326
  }
129461
129327
  telemetry2.trackCliSubcommandRemove(subcommandOriginal);
129462
- return removeStore(client2, args2);
129328
+ return removeStore(client2, args2, rwToken);
129463
129329
  case "get":
129464
129330
  if (needHelp) {
129465
129331
  telemetry2.trackCliFlagHelp("blob store", subcommandOriginal);
@@ -129467,7 +129333,7 @@ async function store(client2) {
129467
129333
  return 2;
129468
129334
  }
129469
129335
  telemetry2.trackCliSubcommandGet(subcommandOriginal);
129470
- return getStore2(client2, args2);
129336
+ return getStore2(client2, args2, rwToken);
129471
129337
  default:
129472
129338
  output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG2));
129473
129339
  output_manager_default.print(help2(storeSubcommand, { columns: client2.stderr.columns }));
@@ -129499,6 +129365,159 @@ var init_store2 = __esm({
129499
129365
  }
129500
129366
  });
129501
129367
 
129368
+ // src/util/parse-env.ts
129369
+ var parseEnv;
129370
+ var init_parse_env = __esm({
129371
+ "src/util/parse-env.ts"() {
129372
+ "use strict";
129373
+ parseEnv = (env) => {
129374
+ if (!env) {
129375
+ return {};
129376
+ }
129377
+ if (typeof env === "string") {
129378
+ env = [env];
129379
+ }
129380
+ if (Array.isArray(env)) {
129381
+ const startingDict = {};
129382
+ return env.reduce((o, e2) => {
129383
+ let key;
129384
+ let value;
129385
+ const equalsSign = e2.indexOf("=");
129386
+ if (equalsSign === -1) {
129387
+ key = e2;
129388
+ } else {
129389
+ key = e2.slice(0, equalsSign);
129390
+ value = e2.slice(equalsSign + 1);
129391
+ }
129392
+ o[key] = value;
129393
+ return o;
129394
+ }, startingDict);
129395
+ }
129396
+ return env;
129397
+ };
129398
+ }
129399
+ });
129400
+
129401
+ // src/util/env/diff-env-files.ts
129402
+ async function createEnvObject(envPath) {
129403
+ const envArr = (await (0, import_fs_extra8.readFile)(envPath, "utf-8")).replace(/"/g, "").split(/\r?\n|\r/).filter((line) => /^[^#]/.test(line)).filter((line) => /=/i.test(line));
129404
+ const parsedEnv = parseEnv(envArr);
129405
+ if (Object.keys(parsedEnv).length === 0) {
129406
+ output_manager_default.debug("Failed to parse env file.");
129407
+ return;
129408
+ }
129409
+ return parsedEnv;
129410
+ }
129411
+ function findChanges(oldEnv, newEnv) {
129412
+ const added = [];
129413
+ const changed = [];
129414
+ for (const key of Object.keys(newEnv)) {
129415
+ if (oldEnv[key] === void 0) {
129416
+ added.push(key);
129417
+ } else if (oldEnv[key] !== newEnv[key]) {
129418
+ changed.push(key);
129419
+ }
129420
+ delete oldEnv[key];
129421
+ }
129422
+ const removed = Object.keys(oldEnv);
129423
+ return {
129424
+ added,
129425
+ changed,
129426
+ removed
129427
+ };
129428
+ }
129429
+ function buildDeltaString(oldEnv, newEnv) {
129430
+ const { added, changed, removed } = findChanges(oldEnv, newEnv);
129431
+ let deltaString = "";
129432
+ deltaString += import_chalk41.default.green(addDeltaSection("+", changed, true));
129433
+ deltaString += import_chalk41.default.green(addDeltaSection("+", added));
129434
+ deltaString += import_chalk41.default.red(addDeltaSection("-", removed));
129435
+ return deltaString ? import_chalk41.default.gray("Changes:\n") + deltaString + "\n" : deltaString;
129436
+ }
129437
+ function addDeltaSection(prefix, arr, changed = false) {
129438
+ if (arr.length === 0)
129439
+ return "";
129440
+ return arr.sort().map((item) => `${prefix} ${item}${changed ? " (Updated)" : ""}`).join("\n") + "\n";
129441
+ }
129442
+ var import_fs_extra8, import_chalk41;
129443
+ var init_diff_env_files = __esm({
129444
+ "src/util/env/diff-env-files.ts"() {
129445
+ "use strict";
129446
+ import_fs_extra8 = __toESM3(require_lib());
129447
+ init_parse_env();
129448
+ import_chalk41 = __toESM3(require_source());
129449
+ init_output_manager();
129450
+ }
129451
+ });
129452
+
129453
+ // src/util/output/list-item.ts
129454
+ var import_chalk42, listItem, list_item_default;
129455
+ var init_list_item = __esm({
129456
+ "src/util/output/list-item.ts"() {
129457
+ "use strict";
129458
+ import_chalk42 = __toESM3(require_source());
129459
+ listItem = (msg, n) => {
129460
+ if (!n) {
129461
+ n = "-";
129462
+ }
129463
+ if (Number(n)) {
129464
+ n += ".";
129465
+ }
129466
+ return `${(0, import_chalk42.default)(n.toString())} ${msg}`;
129467
+ };
129468
+ list_item_default = listItem;
129469
+ }
129470
+ });
129471
+
129472
+ // src/util/blob/token.ts
129473
+ async function getBlobRWToken(client2, argv) {
129474
+ const flagsSpecification = getFlagsSpecification(blobCommand.options);
129475
+ try {
129476
+ const parsedArgs = parseArguments(argv, flagsSpecification);
129477
+ const {
129478
+ flags: { "--rw-token": rwToken }
129479
+ } = parsedArgs;
129480
+ if (rwToken) {
129481
+ return { token: rwToken, success: true };
129482
+ }
129483
+ } catch (err) {
129484
+ }
129485
+ if (process.env.BLOB_READ_WRITE_TOKEN) {
129486
+ return { token: process.env.BLOB_READ_WRITE_TOKEN, success: true };
129487
+ }
129488
+ const filename = ".env.local";
129489
+ const fullPath = (0, import_node_path2.resolve)(client2.cwd, filename);
129490
+ try {
129491
+ const env = await createEnvObject(fullPath);
129492
+ if (env?.BLOB_READ_WRITE_TOKEN) {
129493
+ return { token: env.BLOB_READ_WRITE_TOKEN, success: true };
129494
+ }
129495
+ } catch (error3) {
129496
+ }
129497
+ return {
129498
+ error: ErrorMessage,
129499
+ success: false
129500
+ };
129501
+ }
129502
+ var import_node_path2, ErrorMessage;
129503
+ var init_token = __esm({
129504
+ "src/util/blob/token.ts"() {
129505
+ "use strict";
129506
+ import_node_path2 = require("path");
129507
+ init_diff_env_files();
129508
+ init_get_flags_specification();
129509
+ init_command32();
129510
+ init_get_args();
129511
+ init_pkg_name();
129512
+ init_cmd();
129513
+ init_list_item();
129514
+ ErrorMessage = `No Vercel Blob token found. To fix this issue, choose one of the following options:
129515
+ ${list_item_default(`Pass the token directly as an option: ${getCommandName("blob list --rw-token BLOB_TOKEN")}`, 1)}
129516
+ ${list_item_default(`Set the Token as an environment variable: ${cmd(`VERCEL_BLOB_READ_WRITE_TOKEN=BLOB_TOKEN ${packageName} blob list`)}`, 2)}
129517
+ ${list_item_default("Link your current folder to a Vercel Project that has a Vercel Blob store connected", 3)}`;
129518
+ }
129519
+ });
129520
+
129502
129521
  // src/commands/blob/index.ts
129503
129522
  var blob_exports = {};
129504
129523
  __export3(blob_exports, {
@@ -129536,6 +129555,8 @@ async function main(client2) {
129536
129555
  help2(command, { parent: blobCommand, columns: client2.stderr.columns })
129537
129556
  );
129538
129557
  }
129558
+ const token = await getBlobRWToken(client2, client2.argv);
129559
+ telemetry2.trackCliOptionRwToken();
129539
129560
  switch (subcommand) {
129540
129561
  case "list":
129541
129562
  if (needHelp) {
@@ -129544,7 +129565,11 @@ async function main(client2) {
129544
129565
  return 2;
129545
129566
  }
129546
129567
  telemetry2.trackCliSubcommandList(subcommandOriginal);
129547
- return list3(client2, args2);
129568
+ if (!token.success) {
129569
+ printError(token.error);
129570
+ return 1;
129571
+ }
129572
+ return list3(client2, args2, token.token);
129548
129573
  case "put":
129549
129574
  if (needHelp) {
129550
129575
  telemetry2.trackCliFlagHelp("blob", subcommandOriginal);
@@ -129552,14 +129577,23 @@ async function main(client2) {
129552
129577
  return 2;
129553
129578
  }
129554
129579
  telemetry2.trackCliSubcommandPut(subcommandOriginal);
129555
- return put2(client2, args2);
129580
+ if (!token.success) {
129581
+ printError(token.error);
129582
+ return 1;
129583
+ }
129584
+ return put2(client2, args2, token.token);
129556
129585
  case "del":
129557
129586
  if (needHelp) {
129558
129587
  telemetry2.trackCliFlagHelp("blob", subcommandOriginal);
129559
129588
  printHelp(delSubcommand);
129560
129589
  return 2;
129561
129590
  }
129562
- return del2(client2, args2);
129591
+ telemetry2.trackCliSubcommandDel(subcommandOriginal);
129592
+ if (!token.success) {
129593
+ printError(token.error);
129594
+ return 1;
129595
+ }
129596
+ return del2(client2, args2, token.token);
129563
129597
  case "copy":
129564
129598
  if (needHelp) {
129565
129599
  telemetry2.trackCliFlagHelp("blob", subcommandOriginal);
@@ -129567,10 +129601,14 @@ async function main(client2) {
129567
129601
  return 2;
129568
129602
  }
129569
129603
  telemetry2.trackCliSubcommandCopy(subcommandOriginal);
129570
- return copy2(client2, args2);
129604
+ if (!token.success) {
129605
+ printError(token.error);
129606
+ return 1;
129607
+ }
129608
+ return copy2(client2, args2, token.token);
129571
129609
  case "store":
129572
129610
  telemetry2.trackCliSubcommandStore(subcommandOriginal);
129573
- return store(client2);
129611
+ return store(client2, token);
129574
129612
  default:
129575
129613
  output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG3));
129576
129614
  output_manager_default.print(help2(blobCommand, { columns: client2.stderr.columns }));
@@ -129596,6 +129634,7 @@ var init_blob2 = __esm({
129596
129634
  init_copy2();
129597
129635
  init_store2();
129598
129636
  init_error2();
129637
+ init_token();
129599
129638
  COMMAND_CONFIG3 = {
129600
129639
  list: getCommandAliases(listSubcommand10),
129601
129640
  put: getCommandAliases(putSubcommand),
@@ -144014,18 +144053,18 @@ var init_get_env_records = __esm({
144014
144053
  function formatProject(orgSlug, projectSlug, options) {
144015
144054
  const orgProjectSlug = `${orgSlug}/${projectSlug}`;
144016
144055
  const projectUrl = `https://vercel.com/${orgProjectSlug}`;
144017
- const projectSlugLink = output_manager_default.link(import_chalk42.default.bold(orgProjectSlug), projectUrl, {
144018
- fallback: () => import_chalk42.default.bold(orgProjectSlug),
144056
+ const projectSlugLink = output_manager_default.link(import_chalk43.default.bold(orgProjectSlug), projectUrl, {
144057
+ fallback: () => import_chalk43.default.bold(orgProjectSlug),
144019
144058
  color: false,
144020
144059
  ...options
144021
144060
  });
144022
144061
  return projectSlugLink;
144023
144062
  }
144024
- var import_chalk42;
144063
+ var import_chalk43;
144025
144064
  var init_format_project = __esm({
144026
144065
  "src/util/projects/format-project.ts"() {
144027
144066
  "use strict";
144028
- import_chalk42 = __toESM3(require_source());
144067
+ import_chalk43 = __toESM3(require_source());
144029
144068
  init_output_manager();
144030
144069
  }
144031
144070
  });
@@ -144168,7 +144207,7 @@ async function envPullCommandLogic(client2, filename, skipConfirmation, environm
144168
144207
  const head = tryReadHeadSync(fullPath, Buffer.byteLength(CONTENTS_PREFIX));
144169
144208
  const exists = typeof head !== "undefined";
144170
144209
  if (head === CONTENTS_PREFIX) {
144171
- output_manager_default.log(`Overwriting existing ${import_chalk43.default.bold(filename)} file`);
144210
+ output_manager_default.log(`Overwriting existing ${import_chalk44.default.bold(filename)} file`);
144172
144211
  } else if (exists && !skipConfirmation && !await client2.input.confirm(
144173
144212
  `Found existing file ${param(filename)}. Do you want to overwrite?`,
144174
144213
  false
@@ -144178,7 +144217,7 @@ async function envPullCommandLogic(client2, filename, skipConfirmation, environm
144178
144217
  }
144179
144218
  const projectSlugLink = formatProject(link4.org.slug, link4.project.name);
144180
144219
  output_manager_default.log(
144181
- `Downloading \`${import_chalk43.default.cyan(
144220
+ `Downloading \`${import_chalk44.default.cyan(
144182
144221
  environment
144183
144222
  )}\` Environment Variables for ${projectSlugLink}`
144184
144223
  );
@@ -144211,7 +144250,7 @@ async function envPullCommandLogic(client2, filename, skipConfirmation, environm
144211
144250
  }
144212
144251
  output_manager_default.print(
144213
144252
  `${prependEmoji(
144214
- `${exists ? "Updated" : "Created"} ${import_chalk43.default.bold(filename)} file ${isGitIgnoreUpdated ? "and added it to .gitignore" : ""} ${import_chalk43.default.gray(pullStamp())}`,
144253
+ `${exists ? "Updated" : "Created"} ${import_chalk44.default.bold(filename)} file ${isGitIgnoreUpdated ? "and added it to .gitignore" : ""} ${import_chalk44.default.gray(pullStamp())}`,
144215
144254
  emoji("success")
144216
144255
  )}
144217
144256
  `
@@ -144220,11 +144259,11 @@ async function envPullCommandLogic(client2, filename, skipConfirmation, environm
144220
144259
  function escapeValue(value) {
144221
144260
  return value ? value.replace(new RegExp("\n", "g"), "\\n").replace(new RegExp("\r", "g"), "\\r") : "";
144222
144261
  }
144223
- var import_chalk43, import_fs_extra15, import_fs5, import_path24, import_error_utils18, import_json_parse_better_errors2, CONTENTS_PREFIX, VARIABLES_TO_IGNORE;
144262
+ var import_chalk44, import_fs_extra15, import_fs5, import_path24, import_error_utils18, import_json_parse_better_errors2, CONTENTS_PREFIX, VARIABLES_TO_IGNORE;
144224
144263
  var init_pull2 = __esm({
144225
144264
  "src/commands/env/pull.ts"() {
144226
144265
  "use strict";
144227
- import_chalk43 = __toESM3(require_source());
144266
+ import_chalk44 = __toESM3(require_source());
144228
144267
  import_fs_extra15 = __toESM3(require_lib());
144229
144268
  import_fs5 = require("fs");
144230
144269
  import_path24 = require("path");
@@ -144280,7 +144319,7 @@ async function inputProject(client2, org, detectedProjectName, autoConfirm = fal
144280
144319
  );
144281
144320
  } else {
144282
144321
  if (await client2.input.confirm(
144283
- `Found project ${import_chalk44.default.cyan(
144322
+ `Found project ${import_chalk45.default.cyan(
144284
144323
  `\u201C${org.slug}/${detectedProject.name}\u201D`
144285
144324
  )}. Link to it?`,
144286
144325
  true
@@ -144325,12 +144364,12 @@ async function inputProject(client2, org, detectedProjectName, autoConfirm = fal
144325
144364
  }
144326
144365
  });
144327
144366
  }
144328
- var import_chalk44, import_slugify2;
144367
+ var import_chalk45, import_slugify2;
144329
144368
  var init_input_project = __esm({
144330
144369
  "src/util/input/input-project.ts"() {
144331
144370
  "use strict";
144332
144371
  init_get_project_by_id_or_name();
144333
- import_chalk44 = __toESM3(require_source());
144372
+ import_chalk45 = __toESM3(require_source());
144334
144373
  init_errors_ts();
144335
144374
  import_slugify2 = __toESM3(require_slugify());
144336
144375
  init_output_manager();
@@ -144343,7 +144382,7 @@ async function validateRootDirectory(cwd, path11, errorSuffix = "") {
144343
144382
  const suffix = errorSuffix ? ` ${errorSuffix}` : "";
144344
144383
  if (!pathStat) {
144345
144384
  output_manager_default.error(
144346
- `The provided path ${import_chalk45.default.cyan(
144385
+ `The provided path ${import_chalk46.default.cyan(
144347
144386
  `\u201C${humanizePath(path11)}\u201D`
144348
144387
  )} does not exist.${suffix}`
144349
144388
  );
@@ -144351,7 +144390,7 @@ async function validateRootDirectory(cwd, path11, errorSuffix = "") {
144351
144390
  }
144352
144391
  if (!pathStat.isDirectory()) {
144353
144392
  output_manager_default.error(
144354
- `The provided path ${import_chalk45.default.cyan(
144393
+ `The provided path ${import_chalk46.default.cyan(
144355
144394
  `\u201C${humanizePath(path11)}\u201D`
144356
144395
  )} is a file, but expected a directory.${suffix}`
144357
144396
  );
@@ -144359,7 +144398,7 @@ async function validateRootDirectory(cwd, path11, errorSuffix = "") {
144359
144398
  }
144360
144399
  if (!path11.startsWith(cwd)) {
144361
144400
  output_manager_default.error(
144362
- `The provided path ${import_chalk45.default.cyan(
144401
+ `The provided path ${import_chalk46.default.cyan(
144363
144402
  `\u201C${humanizePath(path11)}\u201D`
144364
144403
  )} is outside of the project.${suffix}`
144365
144404
  );
@@ -144375,7 +144414,7 @@ async function validatePaths(client2, paths) {
144375
144414
  const path11 = paths[0];
144376
144415
  const pathStat = await (0, import_fs_extra16.lstat)(path11).catch(() => null);
144377
144416
  if (!pathStat) {
144378
- output_manager_default.error(`Could not find ${import_chalk45.default.cyan(`\u201C${humanizePath(path11)}\u201D`)}`);
144417
+ output_manager_default.error(`Could not find ${import_chalk46.default.cyan(`\u201C${humanizePath(path11)}\u201D`)}`);
144379
144418
  return { valid: false, exitCode: 1 };
144380
144419
  }
144381
144420
  if (!pathStat.isDirectory()) {
@@ -144398,12 +144437,12 @@ async function validatePaths(client2, paths) {
144398
144437
  }
144399
144438
  return { valid: true, path: path11 };
144400
144439
  }
144401
- var import_fs_extra16, import_chalk45, import_os8;
144440
+ var import_fs_extra16, import_chalk46, import_os8;
144402
144441
  var init_validate_paths = __esm({
144403
144442
  "src/util/validate-paths.ts"() {
144404
144443
  "use strict";
144405
144444
  import_fs_extra16 = __toESM3(require_lib());
144406
- import_chalk45 = __toESM3(require_source());
144445
+ import_chalk46 = __toESM3(require_source());
144407
144446
  import_os8 = require("os");
144408
144447
  init_humanize_path();
144409
144448
  init_output_manager();
@@ -144419,7 +144458,7 @@ async function inputRootDirectory(client2, cwd, autoConfirm = false) {
144419
144458
  const rootDirectory = await client2.input.text({
144420
144459
  message: `In which directory is your code located?`,
144421
144460
  transformer: (input) => {
144422
- return `${import_chalk46.default.dim(`./`)}${input}`;
144461
+ return `${import_chalk47.default.dim(`./`)}${input}`;
144423
144462
  }
144424
144463
  });
144425
144464
  if (!rootDirectory) {
@@ -144440,12 +144479,12 @@ async function inputRootDirectory(client2, cwd, autoConfirm = false) {
144440
144479
  return normal;
144441
144480
  }
144442
144481
  }
144443
- var import_path25, import_chalk46;
144482
+ var import_path25, import_chalk47;
144444
144483
  var init_input_root_directory = __esm({
144445
144484
  "src/util/input/input-root-directory.ts"() {
144446
144485
  "use strict";
144447
144486
  import_path25 = __toESM3(require("path"));
144448
- import_chalk46 = __toESM3(require_source());
144487
+ import_chalk47 = __toESM3(require_source());
144449
144488
  init_validate_paths();
144450
144489
  }
144451
144490
  });
@@ -144484,8 +144523,8 @@ async function editProjectSettings(client2, projectSettings, framework, autoConf
144484
144523
  const override = localConfigurationOverrides[setting];
144485
144524
  if (override) {
144486
144525
  output_manager_default.print(
144487
- `${import_chalk47.default.dim(
144488
- `- ${import_chalk47.default.bold(`${settingMap[setting]}:`)} ${override}`
144526
+ `${import_chalk48.default.dim(
144527
+ `- ${import_chalk48.default.bold(`${settingMap[setting]}:`)} ${override}`
144489
144528
  )}
144490
144529
  `
144491
144530
  );
@@ -144510,7 +144549,7 @@ async function editProjectSettings(client2, projectSettings, framework, autoConf
144510
144549
  }
144511
144550
  output_manager_default.print(
144512
144551
  !framework.slug ? `No framework detected. Default Project Settings:
144513
- ` : `Auto-detected Project Settings (${import_chalk47.default.bold(framework.name)}):
144552
+ ` : `Auto-detected Project Settings (${import_chalk48.default.bold(framework.name)}):
144514
144553
  `
144515
144554
  );
144516
144555
  settings.framework = framework.slug;
@@ -144522,8 +144561,8 @@ async function editProjectSettings(client2, projectSettings, framework, autoConf
144522
144561
  const override = localConfigurationOverrides?.[setting];
144523
144562
  if (!override && defaultSetting) {
144524
144563
  output_manager_default.print(
144525
- `${import_chalk47.default.dim(
144526
- `- ${import_chalk47.default.bold(`${settingMap[setting]}:`)} ${isSettingValue(defaultSetting) ? defaultSetting.value : import_chalk47.default.italic(`${defaultSetting.placeholder}`)}`
144564
+ `${import_chalk48.default.dim(
144565
+ `- ${import_chalk48.default.bold(`${settingMap[setting]}:`)} ${isSettingValue(defaultSetting) ? defaultSetting.value : import_chalk48.default.italic(`${defaultSetting.placeholder}`)}`
144527
144566
  )}
144528
144567
  `
144529
144568
  );
@@ -144548,16 +144587,16 @@ async function editProjectSettings(client2, projectSettings, framework, autoConf
144548
144587
  for (const setting of settingFields) {
144549
144588
  const field = settingMap[setting];
144550
144589
  settings[setting] = await client2.input.text({
144551
- message: `What's your ${import_chalk47.default.bold(field)}?`
144590
+ message: `What's your ${import_chalk48.default.bold(field)}?`
144552
144591
  });
144553
144592
  }
144554
144593
  return settings;
144555
144594
  }
144556
- var import_chalk47, import_frameworks3, settingMap, settingKeys;
144595
+ var import_chalk48, import_frameworks3, settingMap, settingKeys;
144557
144596
  var init_edit_project_settings = __esm({
144558
144597
  "src/util/input/edit-project-settings.ts"() {
144559
144598
  "use strict";
144560
- import_chalk47 = __toESM3(require_source());
144599
+ import_chalk48 = __toESM3(require_source());
144561
144600
  import_frameworks3 = __toESM3(require_frameworks());
144562
144601
  init_is_setting_value();
144563
144602
  init_output_manager();
@@ -144627,7 +144666,7 @@ async function setupAndLink(client2, path11, {
144627
144666
  return { status: "error", exitCode: 1, reason: "HEADLESS" };
144628
144667
  }
144629
144668
  const shouldStartSetup = autoConfirm || await client2.input.confirm(
144630
- `${setupMsg} ${import_chalk48.default.cyan(`\u201C${humanizePath(path11)}\u201D`)}?`,
144669
+ `${setupMsg} ${import_chalk49.default.cyan(`\u201C${humanizePath(path11)}\u201D`)}?`,
144631
144670
  true
144632
144671
  );
144633
144672
  if (!shouldStartSetup) {
@@ -144741,11 +144780,11 @@ async function setupAndLink(client2, path11, {
144741
144780
  return { status: "error", exitCode: 1 };
144742
144781
  }
144743
144782
  }
144744
- var import_chalk48, import_fs_extra17, import_path26, import_frameworks4;
144783
+ var import_chalk49, import_fs_extra17, import_path26, import_frameworks4;
144745
144784
  var init_setup_and_link = __esm({
144746
144785
  "src/util/link/setup-and-link.ts"() {
144747
144786
  "use strict";
144748
- import_chalk48 = __toESM3(require_source());
144787
+ import_chalk49 = __toESM3(require_source());
144749
144788
  import_fs_extra17 = __toESM3(require_lib());
144750
144789
  import_path26 = require("path");
144751
144790
  init_link2();
@@ -144946,20 +144985,20 @@ async function pullCommandLogic(client2, cwd, autoConfirm, environment, flags) {
144946
144985
  const settingsStamp = stamp_default();
144947
144986
  output_manager_default.print(
144948
144987
  `${prependEmoji(
144949
- `Downloaded project settings to ${import_chalk49.default.bold(
144988
+ `Downloaded project settings to ${import_chalk50.default.bold(
144950
144989
  humanizePath((0, import_node_path3.join)(currentDirectory, VERCEL_DIR2, VERCEL_DIR_PROJECT))
144951
- )} ${import_chalk49.default.gray(settingsStamp())}`,
144990
+ )} ${import_chalk50.default.gray(settingsStamp())}`,
144952
144991
  emoji("success")
144953
144992
  )}
144954
144993
  `
144955
144994
  );
144956
144995
  return 0;
144957
144996
  }
144958
- var import_chalk49, import_node_path3;
144997
+ var import_chalk50, import_node_path3;
144959
144998
  var init_pull4 = __esm({
144960
144999
  "src/commands/pull/index.ts"() {
144961
145000
  "use strict";
144962
- import_chalk49 = __toESM3(require_source());
145001
+ import_chalk50 = __toESM3(require_source());
144963
145002
  import_node_path3 = require("path");
144964
145003
  init_emoji();
144965
145004
  init_get_args();
@@ -145518,9 +145557,9 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span) {
145518
145557
  const relOutputDir = (0, import_path27.relative)(cwd, outputDir);
145519
145558
  output_manager_default.print(
145520
145559
  `${prependEmoji(
145521
- `Build Completed in ${import_chalk50.default.bold(
145560
+ `Build Completed in ${import_chalk51.default.bold(
145522
145561
  relOutputDir.startsWith("..") ? outputDir : relOutputDir
145523
- )} ${import_chalk50.default.gray(buildStamp())}`,
145562
+ )} ${import_chalk51.default.gray(buildStamp())}`,
145524
145563
  emoji("success")
145525
145564
  )}
145526
145565
  `
@@ -145653,11 +145692,11 @@ async function getFrameworkRoutes(framework, dirPrefix) {
145653
145692
  }
145654
145693
  return routes2;
145655
145694
  }
145656
- var import_chalk50, import_dotenv, import_fs_extra18, import_minimatch2, import_path27, import_semver3, import_build_utils13, import_client6, import_frameworks5, import_fs_detectors4, import_routing_utils2, import_promises, InMemoryReporter;
145695
+ var import_chalk51, import_dotenv, import_fs_extra18, import_minimatch2, import_path27, import_semver3, import_build_utils13, import_client6, import_frameworks5, import_fs_detectors4, import_routing_utils2, import_promises, InMemoryReporter;
145657
145696
  var init_build2 = __esm({
145658
145697
  "src/commands/build/index.ts"() {
145659
145698
  "use strict";
145660
- import_chalk50 = __toESM3(require_source());
145699
+ import_chalk51 = __toESM3(require_source());
145661
145700
  import_dotenv = __toESM3(require_main3());
145662
145701
  import_fs_extra18 = __toESM3(require_lib());
145663
145702
  import_minimatch2 = __toESM3(require_minimatch2());
@@ -145823,7 +145862,7 @@ async function add(client2, argv) {
145823
145862
  `Invalid number of arguments to create a custom certificate entry. Usage:`
145824
145863
  );
145825
145864
  output_manager_default.print(
145826
- ` ${import_chalk51.default.cyan(
145865
+ ` ${import_chalk52.default.cyan(
145827
145866
  `${getCommandName(
145828
145867
  "certs add --crt <domain.crt> --key <domain.key> --ca <ca.crt>"
145829
145868
  )}`
@@ -145835,9 +145874,9 @@ async function add(client2, argv) {
145835
145874
  cert = await createCertFromFile(client2, keyPath, crtPath, caPath);
145836
145875
  } else {
145837
145876
  output_manager_default.warn(
145838
- `${import_chalk51.default.cyan(
145877
+ `${import_chalk52.default.cyan(
145839
145878
  getCommandName("certs add")
145840
- )} will be soon deprecated. Please use ${import_chalk51.default.cyan(
145879
+ )} will be soon deprecated. Please use ${import_chalk52.default.cyan(
145841
145880
  getCommandName("certs issue <cn> <cns>")
145842
145881
  )} instead`
145843
145882
  );
@@ -145846,7 +145885,7 @@ async function add(client2, argv) {
145846
145885
  `Invalid number of arguments to create a custom certificate entry. Usage:`
145847
145886
  );
145848
145887
  output_manager_default.print(
145849
- ` ${import_chalk51.default.cyan(getCommandName("certs add <cn>[, <cn>]"))}
145888
+ ` ${import_chalk52.default.cyan(getCommandName("certs add <cn>[, <cn>]"))}
145850
145889
  `
145851
145890
  );
145852
145891
  return 1;
@@ -145856,7 +145895,7 @@ async function add(client2, argv) {
145856
145895
  []
145857
145896
  );
145858
145897
  output_manager_default.spinner(
145859
- `Generating a certificate for ${import_chalk51.default.bold(cns.join(", "))}`
145898
+ `Generating a certificate for ${import_chalk52.default.bold(cns.join(", "))}`
145860
145899
  );
145861
145900
  const { contextName } = await getScope(client2);
145862
145901
  cert = await createCertForCns(client2, cns, contextName);
@@ -145867,18 +145906,18 @@ async function add(client2, argv) {
145867
145906
  return 1;
145868
145907
  } else {
145869
145908
  output_manager_default.success(
145870
- `Certificate entry for ${import_chalk51.default.bold(
145909
+ `Certificate entry for ${import_chalk52.default.bold(
145871
145910
  cert.cns.join(", ")
145872
145911
  )} created ${addStamp()}`
145873
145912
  );
145874
145913
  }
145875
145914
  return 0;
145876
145915
  }
145877
- var import_chalk51, add_default;
145916
+ var import_chalk52, add_default;
145878
145917
  var init_add2 = __esm({
145879
145918
  "src/commands/certs/add.ts"() {
145880
145919
  "use strict";
145881
- import_chalk51 = __toESM3(require_source());
145920
+ import_chalk52 = __toESM3(require_source());
145882
145921
  init_get_scope();
145883
145922
  init_stamp();
145884
145923
  init_output_manager();
@@ -145896,7 +145935,7 @@ var init_add2 = __esm({
145896
145935
 
145897
145936
  // src/util/certs/finish-cert-order.ts
145898
145937
  async function startCertOrder(client2, cns, context) {
145899
- output_manager_default.spinner(`Issuing a certificate for ${import_chalk52.default.bold(cns.join(", "))}`);
145938
+ output_manager_default.spinner(`Issuing a certificate for ${import_chalk53.default.bold(cns.join(", "))}`);
145900
145939
  try {
145901
145940
  const cert = await client2.fetch("/v3/certs", {
145902
145941
  method: "PATCH",
@@ -145919,11 +145958,11 @@ async function startCertOrder(client2, cns, context) {
145919
145958
  throw err;
145920
145959
  }
145921
145960
  }
145922
- var import_chalk52;
145961
+ var import_chalk53;
145923
145962
  var init_finish_cert_order = __esm({
145924
145963
  "src/util/certs/finish-cert-order.ts"() {
145925
145964
  "use strict";
145926
- import_chalk52 = __toESM3(require_source());
145965
+ import_chalk53 = __toESM3(require_source());
145927
145966
  init_errors_ts();
145928
145967
  init_map_cert_error();
145929
145968
  init_output_manager();
@@ -145943,9 +145982,9 @@ var init_get_cns_from_args = __esm({
145943
145982
  // src/util/certs/start-cert-order.ts
145944
145983
  async function startCertOrder2(client2, cns, contextName) {
145945
145984
  output_manager_default.spinner(
145946
- `Starting certificate issuance for ${import_chalk53.default.bold(
145985
+ `Starting certificate issuance for ${import_chalk54.default.bold(
145947
145986
  cns.join(", ")
145948
- )} under ${import_chalk53.default.bold(contextName)}`
145987
+ )} under ${import_chalk54.default.bold(contextName)}`
145949
145988
  );
145950
145989
  const order = await client2.fetch("/v3/certs", {
145951
145990
  method: "PATCH",
@@ -145956,11 +145995,11 @@ async function startCertOrder2(client2, cns, contextName) {
145956
145995
  });
145957
145996
  return order;
145958
145997
  }
145959
- var import_chalk53;
145998
+ var import_chalk54;
145960
145999
  var init_start_cert_order = __esm({
145961
146000
  "src/util/certs/start-cert-order.ts"() {
145962
146001
  "use strict";
145963
- import_chalk53 = __toESM3(require_source());
146002
+ import_chalk54 = __toESM3(require_source());
145964
146003
  init_output_manager();
145965
146004
  }
145966
146005
  });
@@ -146030,7 +146069,7 @@ async function issue(client2, argv) {
146030
146069
  `Invalid number of arguments to create a custom certificate entry. Usage:`
146031
146070
  );
146032
146071
  output_manager_default.print(
146033
- ` ${import_chalk54.default.cyan(
146072
+ ` ${import_chalk55.default.cyan(
146034
146073
  getCommandName(
146035
146074
  "certs issue --crt <domain.crt> --key <domain.key> --ca <ca.crt>"
146036
146075
  )
@@ -146045,7 +146084,7 @@ async function issue(client2, argv) {
146045
146084
  return 1;
146046
146085
  }
146047
146086
  output_manager_default.success(
146048
- `Certificate entry for ${import_chalk54.default.bold(
146087
+ `Certificate entry for ${import_chalk55.default.bold(
146049
146088
  cert.cns.join(", ")
146050
146089
  )} created ${addStamp()}`
146051
146090
  );
@@ -146056,7 +146095,7 @@ async function issue(client2, argv) {
146056
146095
  `Invalid number of arguments to create a custom certificate entry. Usage:`
146057
146096
  );
146058
146097
  output_manager_default.print(
146059
- ` ${import_chalk54.default.cyan(getCommandName("certs issue <cn>[, <cn>]"))}
146098
+ ` ${import_chalk55.default.cyan(getCommandName("certs issue <cn>[, <cn>]"))}
146060
146099
  `
146061
146100
  );
146062
146101
  return 1;
@@ -146084,14 +146123,14 @@ async function issue(client2, argv) {
146084
146123
  }
146085
146124
  if (handledResult instanceof DomainPermissionDenied) {
146086
146125
  output_manager_default.error(
146087
- `You do not have permissions over domain ${import_chalk54.default.underline(
146126
+ `You do not have permissions over domain ${import_chalk55.default.underline(
146088
146127
  handledResult.meta.domain
146089
- )} under ${import_chalk54.default.bold(handledResult.meta.context)}.`
146128
+ )} under ${import_chalk55.default.bold(handledResult.meta.context)}.`
146090
146129
  );
146091
146130
  return 1;
146092
146131
  }
146093
146132
  output_manager_default.success(
146094
- `Certificate entry for ${import_chalk54.default.bold(
146133
+ `Certificate entry for ${import_chalk55.default.bold(
146095
146134
  handledResult.cns.join(", ")
146096
146135
  )} created ${addStamp()}`
146097
146136
  );
@@ -146113,7 +146152,7 @@ async function runStartOrder(client2, cns, contextName, stamp, { fallingBack = f
146113
146152
  }
146114
146153
  if (pendingChallenges.length === 0) {
146115
146154
  output_manager_default.log(
146116
- `A certificate issuance for ${import_chalk54.default.bold(
146155
+ `A certificate issuance for ${import_chalk55.default.bold(
146117
146156
  cns.join(", ")
146118
146157
  )} has been started ${stamp()}`
146119
146158
  );
@@ -146122,13 +146161,13 @@ async function runStartOrder(client2, cns, contextName, stamp, { fallingBack = f
146122
146161
  `
146123
146162
  );
146124
146163
  output_manager_default.print(
146125
- ` ${import_chalk54.default.cyan(getCommandName(`certs issue ${cns.join(" ")}`))}
146164
+ ` ${import_chalk55.default.cyan(getCommandName(`certs issue ${cns.join(" ")}`))}
146126
146165
  `
146127
146166
  );
146128
146167
  return 0;
146129
146168
  }
146130
146169
  output_manager_default.log(
146131
- `A certificate issuance for ${import_chalk54.default.bold(
146170
+ `A certificate issuance for ${import_chalk55.default.bold(
146132
146171
  cns.join(", ")
146133
146172
  )} has been started ${stamp()}`
146134
146173
  );
@@ -146157,7 +146196,7 @@ async function runStartOrder(client2, cns, contextName, stamp, { fallingBack = f
146157
146196
  `);
146158
146197
  output_manager_default.log(`To issue the certificate once the records are added, run:`);
146159
146198
  output_manager_default.print(
146160
- ` ${import_chalk54.default.cyan(getCommandName(`certs issue ${cns.join(" ")}`))}
146199
+ ` ${import_chalk55.default.cyan(getCommandName(`certs issue ${cns.join(" ")}`))}
146161
146200
  `
146162
146201
  );
146163
146202
  output_manager_default.print(
@@ -146165,11 +146204,11 @@ async function runStartOrder(client2, cns, contextName, stamp, { fallingBack = f
146165
146204
  );
146166
146205
  return 0;
146167
146206
  }
146168
- var import_chalk54, import_tldts4;
146207
+ var import_chalk55, import_tldts4;
146169
146208
  var init_issue2 = __esm({
146170
146209
  "src/commands/certs/issue.ts"() {
146171
146210
  "use strict";
146172
- import_chalk54 = __toESM3(require_source());
146211
+ import_chalk55 = __toESM3(require_source());
146173
146212
  import_tldts4 = __toESM3(require_cjs7());
146174
146213
  init_errors_ts();
146175
146214
  init_create_cert_for_cns();
@@ -146261,7 +146300,7 @@ async function ls2(client2, argv) {
146261
146300
  const lsStamp = stamp_default();
146262
146301
  if (args2.length !== 0) {
146263
146302
  output_manager_default.error(
146264
- `Invalid number of arguments. Usage: ${import_chalk55.default.cyan(
146303
+ `Invalid number of arguments. Usage: ${import_chalk56.default.cyan(
146265
146304
  `${getCommandName("certs ls")}`
146266
146305
  )}`
146267
146306
  );
@@ -146270,7 +146309,7 @@ async function ls2(client2, argv) {
146270
146309
  const { certs, pagination } = await getCerts(client2, ...paginationOptions);
146271
146310
  const { contextName } = await getScope(client2);
146272
146311
  output_manager_default.log(
146273
- `${certs.length > 0 ? "Certificates" : "No certificates"} found under ${import_chalk55.default.bold(contextName)} ${lsStamp()}`
146312
+ `${certs.length > 0 ? "Certificates" : "No certificates"} found under ${import_chalk56.default.bold(contextName)} ${lsStamp()}`
146274
146313
  );
146275
146314
  if (certs.length > 0) {
146276
146315
  client2.stdout.write(formatCertsTable(certs));
@@ -146294,11 +146333,11 @@ function formatCertsTable(certsList) {
146294
146333
  }
146295
146334
  function formatCertsTableHead() {
146296
146335
  return [
146297
- import_chalk55.default.dim("id"),
146298
- import_chalk55.default.dim("cns"),
146299
- import_chalk55.default.dim("expiration"),
146300
- import_chalk55.default.dim("renew"),
146301
- import_chalk55.default.dim("age")
146336
+ import_chalk56.default.dim("id"),
146337
+ import_chalk56.default.dim("cns"),
146338
+ import_chalk56.default.dim("expiration"),
146339
+ import_chalk56.default.dim("renew"),
146340
+ import_chalk56.default.dim("age")
146302
146341
  ];
146303
146342
  }
146304
146343
  function formatCertsTableBody(certsList) {
@@ -146317,7 +146356,7 @@ function formatCertNonFirstCn(cn, multiple) {
146317
146356
  return ["", formatCertCn(cn, multiple), "", "", ""];
146318
146357
  }
146319
146358
  function formatCertCn(cn, multiple) {
146320
- return multiple ? `${import_chalk55.default.gray("-")} ${import_chalk55.default.bold(cn)}` : import_chalk55.default.bold(cn);
146359
+ return multiple ? `${import_chalk56.default.gray("-")} ${import_chalk56.default.bold(cn)}` : import_chalk56.default.bold(cn);
146321
146360
  }
146322
146361
  function formatCertFirstCn(time, cert, cn, multiple) {
146323
146362
  return [
@@ -146325,18 +146364,18 @@ function formatCertFirstCn(time, cert, cn, multiple) {
146325
146364
  formatCertCn(cn, multiple),
146326
146365
  formatExpirationDate(new Date(cert.expiration)),
146327
146366
  cert.autoRenew ? "yes" : "no",
146328
- import_chalk55.default.gray((0, import_ms8.default)(time.getTime() - new Date(cert.created).getTime()))
146367
+ import_chalk56.default.gray((0, import_ms8.default)(time.getTime() - new Date(cert.created).getTime()))
146329
146368
  ];
146330
146369
  }
146331
146370
  function formatExpirationDate(date) {
146332
146371
  const diff = date.getTime() - Date.now();
146333
- return diff < 0 ? import_chalk55.default.gray(`${(0, import_ms8.default)(-diff)} ago`) : import_chalk55.default.gray(`in ${(0, import_ms8.default)(diff)}`);
146372
+ return diff < 0 ? import_chalk56.default.gray(`${(0, import_ms8.default)(-diff)} ago`) : import_chalk56.default.gray(`in ${(0, import_ms8.default)(diff)}`);
146334
146373
  }
146335
- var import_chalk55, import_ms8, ls_default;
146374
+ var import_chalk56, import_ms8, ls_default;
146336
146375
  var init_ls3 = __esm({
146337
146376
  "src/commands/certs/ls.ts"() {
146338
146377
  "use strict";
146339
- import_chalk55 = __toESM3(require_source());
146378
+ import_chalk56 = __toESM3(require_source());
146340
146379
  import_ms8 = __toESM3(require_ms());
146341
146380
  init_table();
146342
146381
  init_get_scope();
@@ -146449,7 +146488,7 @@ async function rm2(client2, argv) {
146449
146488
  telemetry2.trackCliArgumentId(id);
146450
146489
  if (args2.length !== 1) {
146451
146490
  output_manager_default.error(
146452
- `Invalid number of arguments. Usage: ${import_chalk56.default.cyan(
146491
+ `Invalid number of arguments. Usage: ${import_chalk57.default.cyan(
146453
146492
  `${getCommandName("certs rm <id or cn>")}`
146454
146493
  )}`
146455
146494
  );
@@ -146466,13 +146505,13 @@ async function rm2(client2, argv) {
146466
146505
  if (certs.length === 0) {
146467
146506
  if (id.includes(".")) {
146468
146507
  output_manager_default.error(
146469
- `No custom certificates found for "${id}" under ${import_chalk56.default.bold(
146508
+ `No custom certificates found for "${id}" under ${import_chalk57.default.bold(
146470
146509
  contextName
146471
146510
  )}`
146472
146511
  );
146473
146512
  } else {
146474
146513
  output_manager_default.error(
146475
- `No certificates found by id "${id}" under ${import_chalk56.default.bold(contextName)}`
146514
+ `No certificates found by id "${id}" under ${import_chalk57.default.bold(contextName)}`
146476
146515
  );
146477
146516
  }
146478
146517
  return 1;
@@ -146487,7 +146526,7 @@ async function rm2(client2, argv) {
146487
146526
  }
146488
146527
  await Promise.all(certs.map((cert) => deleteCertById(client2, cert.uid)));
146489
146528
  output_manager_default.success(
146490
- `${import_chalk56.default.bold(
146529
+ `${import_chalk57.default.bold(
146491
146530
  (0, import_pluralize5.default)("Certificate", certs.length, true)
146492
146531
  )} removed ${rmStamp()}`
146493
146532
  );
@@ -146515,7 +146554,7 @@ function readConfirmation(client2, msg, certs) {
146515
146554
  `
146516
146555
  );
146517
146556
  output_manager_default.print(
146518
- `${import_chalk56.default.bold.red("> Are you sure?")} ${import_chalk56.default.gray("(y/N) ")}`
146557
+ `${import_chalk57.default.bold.red("> Are you sure?")} ${import_chalk57.default.gray("(y/N) ")}`
146519
146558
  );
146520
146559
  client2.stdin.on("data", (d) => {
146521
146560
  process.stdin.pause();
@@ -146526,15 +146565,15 @@ function readConfirmation(client2, msg, certs) {
146526
146565
  function formatCertRow(cert) {
146527
146566
  return [
146528
146567
  cert.uid,
146529
- import_chalk56.default.bold(cert.cns ? cert.cns.join(", ") : "\u2013"),
146530
- ...cert.created ? [import_chalk56.default.gray(`${(0, import_ms9.default)(Date.now() - new Date(cert.created).getTime())} ago`)] : []
146568
+ import_chalk57.default.bold(cert.cns ? cert.cns.join(", ") : "\u2013"),
146569
+ ...cert.created ? [import_chalk57.default.gray(`${(0, import_ms9.default)(Date.now() - new Date(cert.created).getTime())} ago`)] : []
146531
146570
  ];
146532
146571
  }
146533
- var import_chalk56, import_ms9, import_pluralize5, rm_default;
146572
+ var import_chalk57, import_ms9, import_pluralize5, rm_default;
146534
146573
  var init_rm2 = __esm({
146535
146574
  "src/commands/certs/rm.ts"() {
146536
146575
  "use strict";
146537
- import_chalk56 = __toESM3(require_source());
146576
+ import_chalk57 = __toESM3(require_source());
146538
146577
  import_ms9 = __toESM3(require_ms());
146539
146578
  import_pluralize5 = __toESM3(require_pluralize());
146540
146579
  init_table();
@@ -147072,7 +147111,7 @@ async function displayRuntimeLogs(client2, options, abortController) {
147072
147111
  const timeout = setTimeout(() => {
147073
147112
  abortController.abort();
147074
147113
  warn(
147075
- `${import_chalk57.default.bold(
147114
+ `${import_chalk58.default.bold(
147076
147115
  `Command automatically interrupted after ${CommandTimeout}.`
147077
147116
  )}
147078
147117
  `
@@ -147114,7 +147153,7 @@ async function displayRuntimeLogs(client2, options, abortController) {
147114
147153
  stopSpinner();
147115
147154
  if (isRuntimeLimitDelimiter(log3)) {
147116
147155
  abortController.abort();
147117
- warn(`${import_chalk57.default.bold(log3.message)}
147156
+ warn(`${import_chalk58.default.bold(log3.message)}
147118
147157
  `);
147119
147158
  return;
147120
147159
  }
@@ -147151,7 +147190,7 @@ function printBuildLog(log2, print) {
147151
147190
  return;
147152
147191
  const date = new Date(log2.created).toISOString();
147153
147192
  for (const line of colorize(sanitize(log2), log2).split("\n")) {
147154
- print(`${import_chalk57.default.dim(date)} ${line.replace("[now-builder-debug] ", "")}
147193
+ print(`${import_chalk58.default.dim(date)} ${line.replace("[now-builder-debug] ", "")}
147155
147194
  `);
147156
147195
  }
147157
147196
  }
@@ -147176,9 +147215,9 @@ function prettyPrintLogline({
147176
147215
  const date = (0, import_date_fns2.format)(timestampInMs, dateTimeFormat);
147177
147216
  const levelIcon = getLevelIcon(level);
147178
147217
  const sourceIcon = getSourceIcon(source);
147179
- const detailsLine = `${import_chalk57.default.dim(date)} ${levelIcon} ${import_chalk57.default.bold(
147218
+ const detailsLine = `${import_chalk58.default.dim(date)} ${levelIcon} ${import_chalk58.default.bold(
147180
147219
  method
147181
- )} ${import_chalk57.default.grey(status2 <= 0 ? "---" : status2)} ${import_chalk57.default.dim(
147220
+ )} ${import_chalk58.default.grey(status2 <= 0 ? "---" : status2)} ${import_chalk58.default.dim(
147182
147221
  domain
147183
147222
  )} ${sourceIcon} ${path11}`;
147184
147223
  print(
@@ -147219,17 +147258,17 @@ function sanitize(log2) {
147219
147258
  }
147220
147259
  function colorize(text, log2) {
147221
147260
  if (log2.level === "error") {
147222
- return import_chalk57.default.red(text);
147261
+ return import_chalk58.default.red(text);
147223
147262
  } else if (log2.level === "warning") {
147224
- return import_chalk57.default.yellow(text);
147263
+ return import_chalk58.default.yellow(text);
147225
147264
  }
147226
147265
  return text;
147227
147266
  }
147228
- var import_chalk57, import_date_fns2, import_ms10, import_jsonlines2, import_split2, import_url14, runtimeLogSpinnerMessage, dateTimeFormat, moreSymbol, statusWidth;
147267
+ var import_chalk58, import_date_fns2, import_ms10, import_jsonlines2, import_split2, import_url14, runtimeLogSpinnerMessage, dateTimeFormat, moreSymbol, statusWidth;
147229
147268
  var init_logs = __esm({
147230
147269
  "src/util/logs.ts"() {
147231
147270
  "use strict";
147232
- import_chalk57 = __toESM3(require_source());
147271
+ import_chalk58 = __toESM3(require_source());
147233
147272
  import_date_fns2 = __toESM3(require_date_fns());
147234
147273
  import_ms10 = __toESM3(require_ms());
147235
147274
  import_jsonlines2 = __toESM3(require_jsonlines());
@@ -147268,7 +147307,7 @@ function printInspectUrl(inspectorUrl, deployStamp) {
147268
147307
  }
147269
147308
  output_manager_default.print(
147270
147309
  prependEmoji(
147271
- `Inspect: ${import_chalk58.default.bold(inspectorUrl)} ${deployStamp()}`,
147310
+ `Inspect: ${import_chalk59.default.bold(inspectorUrl)} ${deployStamp()}`,
147272
147311
  emoji("inspect")
147273
147312
  ) + `
147274
147313
  `
@@ -147320,7 +147359,7 @@ async function processDeployment({
147320
147359
  agent,
147321
147360
  projectName
147322
147361
  };
147323
- const deployingSpinnerVal = isSettingUpProject ? "Setting up project" : `Deploying ${import_chalk58.default.bold(`${org.slug}/${projectName}`)}`;
147362
+ const deployingSpinnerVal = isSettingUpProject ? "Setting up project" : `Deploying ${import_chalk59.default.bold(`${org.slug}/${projectName}`)}`;
147324
147363
  output_manager_default.spinner(deployingSpinnerVal, 0);
147325
147364
  const indications = [];
147326
147365
  let abortController;
@@ -147355,7 +147394,7 @@ async function processDeployment({
147355
147394
  const percent = uploadedBytes / missingSize;
147356
147395
  if (percent >= nextStep) {
147357
147396
  output_manager_default.spinner(
147358
- `Uploading ${import_chalk58.default.reset(
147397
+ `Uploading ${import_chalk59.default.reset(
147359
147398
  `[${bar}] (${uploadedHuman}/${totalSizeHuman})`
147360
147399
  )}`,
147361
147400
  0
@@ -147383,7 +147422,7 @@ async function processDeployment({
147383
147422
  const previewUrl = `https://${deployment.url}`;
147384
147423
  output_manager_default.print(
147385
147424
  prependEmoji(
147386
- `${isProdDeployment ? "Production" : "Preview"}: ${import_chalk58.default.bold(
147425
+ `${isProdDeployment ? "Production" : "Preview"}: ${import_chalk59.default.bold(
147387
147426
  previewUrl
147388
147427
  )} ${deployStamp()}`,
147389
147428
  emoji("success")
@@ -147471,14 +147510,14 @@ ${archiveSuggestionText}`
147471
147510
  }
147472
147511
  }
147473
147512
  }
147474
- var import_client7, import_error_utils20, import_bytes4, import_chalk58, archiveSuggestionText, UploadErrorMissingArchive;
147513
+ var import_client7, import_error_utils20, import_bytes4, import_chalk59, archiveSuggestionText, UploadErrorMissingArchive;
147475
147514
  var init_process_deployment = __esm({
147476
147515
  "src/util/deploy/process-deployment.ts"() {
147477
147516
  "use strict";
147478
147517
  import_client7 = __toESM3(require_dist7());
147479
147518
  import_error_utils20 = __toESM3(require_dist2());
147480
147519
  import_bytes4 = __toESM3(require_bytes());
147481
- import_chalk58 = __toESM3(require_source());
147520
+ import_chalk59 = __toESM3(require_source());
147482
147521
  init_emoji();
147483
147522
  init_logs();
147484
147523
  init_progress();
@@ -147495,7 +147534,7 @@ var init_process_deployment = __esm({
147495
147534
  });
147496
147535
 
147497
147536
  // src/util/index.ts
147498
- var import_querystring4, import_url15, import_async_retry5, import_ms11, import_node_fetch4, import_bytes5, import_chalk59, Now;
147537
+ var import_querystring4, import_url15, import_async_retry5, import_ms11, import_node_fetch4, import_bytes5, import_chalk60, Now;
147499
147538
  var init_util = __esm({
147500
147539
  "src/util/index.ts"() {
147501
147540
  "use strict";
@@ -147505,7 +147544,7 @@ var init_util = __esm({
147505
147544
  import_ms11 = __toESM3(require_ms());
147506
147545
  import_node_fetch4 = __toESM3(require_lib7());
147507
147546
  import_bytes5 = __toESM3(require_bytes());
147508
- import_chalk59 = __toESM3(require_source());
147547
+ import_chalk60 = __toESM3(require_source());
147509
147548
  init_ua();
147510
147549
  init_process_deployment();
147511
147550
  init_error2();
@@ -147618,7 +147657,7 @@ var init_util = __esm({
147618
147657
  if (sizeExceeded > 0) {
147619
147658
  warn(`${sizeExceeded} of the files exceeded the limit for your plan.`);
147620
147659
  log2(
147621
- `Please upgrade your plan here: ${import_chalk59.default.cyan(
147660
+ `Please upgrade your plan here: ${import_chalk60.default.cyan(
147622
147661
  "https://vercel.com/account/plan"
147623
147662
  )}`
147624
147663
  );
@@ -147994,21 +148033,21 @@ async function printDeploymentStatus({
147994
148033
  }
147995
148034
  const newline = "\n";
147996
148035
  for (const indication of indications) {
147997
- const message2 = prependEmoji(import_chalk60.default.dim(indication.payload), emoji(indication.type)) + newline;
148036
+ const message2 = prependEmoji(import_chalk61.default.dim(indication.payload), emoji(indication.type)) + newline;
147998
148037
  let link4 = "";
147999
148038
  if (indication.link)
148000
- link4 = import_chalk60.default.dim(
148039
+ link4 = import_chalk61.default.dim(
148001
148040
  `${indication.action || "Learn More"}: ${link_default(indication.link)}`
148002
148041
  ) + newline;
148003
148042
  output_manager_default.print(message2 + link4);
148004
148043
  }
148005
148044
  return 0;
148006
148045
  }
148007
- var import_chalk60;
148046
+ var import_chalk61;
148008
148047
  var init_print_deployment_status = __esm({
148009
148048
  "src/util/deploy/print-deployment-status.ts"() {
148010
148049
  "use strict";
148011
- import_chalk60 = __toESM3(require_source());
148050
+ import_chalk61 = __toESM3(require_source());
148012
148051
  init_is_deploying();
148013
148052
  init_link();
148014
148053
  init_emoji();
@@ -148221,7 +148260,7 @@ function handleCreateDeployError(error3, localConfig) {
148221
148260
  }
148222
148261
  if (error3 instanceof DomainVerificationFailed) {
148223
148262
  output_manager_default.error(
148224
- `The domain used as a suffix ${import_chalk61.default.underline(
148263
+ `The domain used as a suffix ${import_chalk62.default.underline(
148225
148264
  error3.meta.domain
148226
148265
  )} is not verified and can't be used as custom suffix.`
148227
148266
  );
@@ -148229,7 +148268,7 @@ function handleCreateDeployError(error3, localConfig) {
148229
148268
  }
148230
148269
  if (error3 instanceof DomainPermissionDenied) {
148231
148270
  output_manager_default.error(
148232
- `You don't have permissions to access the domain used as a suffix ${import_chalk61.default.underline(
148271
+ `You don't have permissions to access the domain used as a suffix ${import_chalk62.default.underline(
148233
148272
  error3.meta.domain
148234
148273
  )}.`
148235
148274
  );
@@ -148255,7 +148294,7 @@ function handleCreateDeployError(error3, localConfig) {
148255
148294
  }
148256
148295
  if (error3 instanceof DomainNotVerified) {
148257
148296
  output_manager_default.error(
148258
- `The domain used as an alias ${import_chalk61.default.underline(
148297
+ `The domain used as an alias ${import_chalk62.default.underline(
148259
148298
  error3.meta.domain
148260
148299
  )} is not verified yet. Please verify it.`
148261
148300
  );
@@ -148274,7 +148313,7 @@ function handleCreateDeployError(error3, localConfig) {
148274
148313
  }
148275
148314
  return error3;
148276
148315
  }
148277
- var import_build_utils14, import_client11, import_error_utils21, import_bytes6, import_chalk61, import_fs_extra20, import_ms12, import_path31, deploy_default, addProcessEnv;
148316
+ var import_build_utils14, import_client11, import_error_utils21, import_bytes6, import_chalk62, import_fs_extra20, import_ms12, import_path31, deploy_default, addProcessEnv;
148278
148317
  var init_deploy2 = __esm({
148279
148318
  "src/commands/deploy/index.ts"() {
148280
148319
  "use strict";
@@ -148282,7 +148321,7 @@ var init_deploy2 = __esm({
148282
148321
  import_client11 = __toESM3(require_dist7());
148283
148322
  import_error_utils21 = __toESM3(require_dist2());
148284
148323
  import_bytes6 = __toESM3(require_bytes());
148285
- import_chalk61 = __toESM3(require_source());
148324
+ import_chalk62 = __toESM3(require_source());
148286
148325
  import_fs_extra20 = __toESM3(require_lib());
148287
148326
  import_ms12 = __toESM3(require_ms());
148288
148327
  import_path31 = require("path");
@@ -148785,15 +148824,15 @@ ${err.stack}`);
148785
148824
  val = process.env[key];
148786
148825
  if (typeof val === "string") {
148787
148826
  log2(
148788
- `Reading ${import_chalk61.default.bold(
148789
- `"${import_chalk61.default.bold(key)}"`
148827
+ `Reading ${import_chalk62.default.bold(
148828
+ `"${import_chalk62.default.bold(key)}"`
148790
148829
  )} from your env (as no value was specified)`
148791
148830
  );
148792
148831
  env[key] = val.replace(/^@/, "\\@");
148793
148832
  } else {
148794
148833
  throw new Error(
148795
- `No value specified for env variable ${import_chalk61.default.bold(
148796
- `"${import_chalk61.default.bold(key)}"`
148834
+ `No value specified for env variable ${import_chalk62.default.bold(
148835
+ `"${import_chalk62.default.bold(key)}"`
148797
148836
  )} and it was not found in your env. If you meant to specify an environment to deploy to, use ${param("--target")}`
148798
148837
  );
148799
148838
  }
@@ -166528,7 +166567,7 @@ function buildMatchEquals(a, b) {
166528
166567
  return false;
166529
166568
  return true;
166530
166569
  }
166531
- var import_url18, import_http3, import_fs_extra21, import_ms14, import_chalk62, import_node_fetch6, import_pluralize7, import_raw_body, import_async_listen3, import_minimatch4, import_http_proxy, import_crypto2, import_serve_handler, import_chokidar, import_dotenv2, import_path35, import_once, import_directory, import_get_port, import_is_port_reachable, import_fast_deep_equal, import_npm_package_arg2, import_json_parse_better_errors3, import_client12, import_routing_utils5, import_build_utils17, import_fs_detectors6, import_frameworks6, import_error_utils22, frontendRuntimeSet, DEV_SERVER_PORT_BIND_TIMEOUT, DevServer;
166570
+ var import_url18, import_http3, import_fs_extra21, import_ms14, import_chalk63, import_node_fetch6, import_pluralize7, import_raw_body, import_async_listen3, import_minimatch4, import_http_proxy, import_crypto2, import_serve_handler, import_chokidar, import_dotenv2, import_path35, import_once, import_directory, import_get_port, import_is_port_reachable, import_fast_deep_equal, import_npm_package_arg2, import_json_parse_better_errors3, import_client12, import_routing_utils5, import_build_utils17, import_fs_detectors6, import_frameworks6, import_error_utils22, frontendRuntimeSet, DEV_SERVER_PORT_BIND_TIMEOUT, DevServer;
166532
166571
  var init_server = __esm({
166533
166572
  "src/util/dev/server.ts"() {
166534
166573
  "use strict";
@@ -166536,7 +166575,7 @@ var init_server = __esm({
166536
166575
  import_http3 = __toESM3(require("http"));
166537
166576
  import_fs_extra21 = __toESM3(require_lib());
166538
166577
  import_ms14 = __toESM3(require_ms());
166539
- import_chalk62 = __toESM3(require_source());
166578
+ import_chalk63 = __toESM3(require_source());
166540
166579
  import_node_fetch6 = __toESM3(require_lib7());
166541
166580
  import_pluralize7 = __toESM3(require_pluralize());
166542
166581
  import_raw_body = __toESM3(require_raw_body());
@@ -166614,7 +166653,7 @@ var init_server = __esm({
166614
166653
  return;
166615
166654
  }
166616
166655
  const method = req.method || "GET";
166617
- output_manager_default.debug(`${import_chalk62.default.bold(method)} ${req.url}`);
166656
+ output_manager_default.debug(`${import_chalk63.default.bold(method)} ${req.url}`);
166618
166657
  try {
166619
166658
  const vercelConfig = await this.getVercelConfig();
166620
166659
  await this.serveProjectAsNowV2(req, res, requestId, vercelConfig);
@@ -166816,7 +166855,7 @@ var init_server = __esm({
166816
166855
  }
166817
166856
  } catch (err) {
166818
166857
  if ((0, import_error_utils22.isSpawnError)(err) && err.code === "ENOENT") {
166819
- err.message = `Command not found: ${import_chalk62.default.cyan(
166858
+ err.message = `Command not found: ${import_chalk63.default.cyan(
166820
166859
  err.path,
166821
166860
  ...err.spawnargs
166822
166861
  )}
@@ -167073,7 +167112,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
167073
167112
  });
167074
167113
  } catch (err) {
167075
167114
  if ((0, import_error_utils22.isSpawnError)(err) && err.code === "ENOENT") {
167076
- err.message = `Command not found: ${import_chalk62.default.cyan(
167115
+ err.message = `Command not found: ${import_chalk63.default.cyan(
167077
167116
  err.path,
167078
167117
  ...err.spawnargs
167079
167118
  )}
@@ -167773,10 +167812,10 @@ Please ensure that ${cmd(err.path)} is properly installed`;
167773
167812
  */
167774
167813
  async _start(...listenSpec) {
167775
167814
  if (!import_fs_extra21.default.existsSync(this.cwd)) {
167776
- throw new Error(`${import_chalk62.default.bold(this.cwd)} doesn't exist`);
167815
+ throw new Error(`${import_chalk63.default.bold(this.cwd)} doesn't exist`);
167777
167816
  }
167778
167817
  if (!import_fs_extra21.default.lstatSync(this.cwd).isDirectory()) {
167779
- throw new Error(`${import_chalk62.default.bold(this.cwd)} is not a directory`);
167818
+ throw new Error(`${import_chalk63.default.bold(this.cwd)} is not a directory`);
167780
167819
  }
167781
167820
  const { ig } = await (0, import_client12.getVercelIgnore)(this.cwd);
167782
167821
  this.filter = ig.createFilter();
@@ -167790,14 +167829,14 @@ Please ensure that ${cmd(err.path)} is properly installed`;
167790
167829
  if (err.code === "EADDRINUSE") {
167791
167830
  if (typeof listenSpec[0] === "number") {
167792
167831
  output_manager_default.note(
167793
- `Requested port ${import_chalk62.default.yellow(
167832
+ `Requested port ${import_chalk63.default.yellow(
167794
167833
  String(listenSpec[0])
167795
167834
  )} is already in use`
167796
167835
  );
167797
167836
  listenSpec[0]++;
167798
167837
  } else {
167799
167838
  output_manager_default.error(
167800
- `Requested socket ${import_chalk62.default.cyan(
167839
+ `Requested socket ${import_chalk63.default.cyan(
167801
167840
  listenSpec[0]
167802
167841
  )} is already in use`
167803
167842
  );
@@ -168189,7 +168228,7 @@ ${error_code}
168189
168228
  if (this.devProcess) {
168190
168229
  await treeKill(this.devProcess.pid);
168191
168230
  }
168192
- output_manager_default.log(`Running Dev Command ${import_chalk62.default.cyan.bold(`\u201C${devCommand2}\u201D`)}`);
168231
+ output_manager_default.log(`Running Dev Command ${import_chalk63.default.cyan.bold(`\u201C${devCommand2}\u201D`)}`);
168193
168232
  const port = await (0, import_get_port.default)();
168194
168233
  const env = (0, import_build_utils17.cloneEnv)(
168195
168234
  {
@@ -168428,7 +168467,7 @@ async function dev(client2, opts, args2, telemetry2) {
168428
168467
  envValues,
168429
168468
  "vercel-cli:dev"
168430
168469
  )) {
168431
- output_manager_default.debug(`Refreshing ${import_chalk63.default.green(VERCEL_OIDC_TOKEN)}`);
168470
+ output_manager_default.debug(`Refreshing ${import_chalk64.default.green(VERCEL_OIDC_TOKEN)}`);
168432
168471
  envValues[VERCEL_OIDC_TOKEN] = token;
168433
168472
  await devServer.runDevCommand(true);
168434
168473
  telemetry2.trackOidcTokenRefresh(++refreshCount);
@@ -168459,11 +168498,11 @@ async function dev(client2, opts, args2, telemetry2) {
168459
168498
  controller.abort();
168460
168499
  }
168461
168500
  }
168462
- var import_chalk63, import_path36, import_fs_extra22;
168501
+ var import_chalk64, import_path36, import_fs_extra22;
168463
168502
  var init_dev = __esm({
168464
168503
  "src/commands/dev/dev.ts"() {
168465
168504
  "use strict";
168466
- import_chalk63 = __toESM3(require_source());
168505
+ import_chalk64 = __toESM3(require_source());
168467
168506
  import_path36 = require("path");
168468
168507
  import_fs_extra22 = __toESM3(require_lib());
168469
168508
  init_server();
@@ -168636,17 +168675,17 @@ async function main5(client2) {
168636
168675
  function stringifyError(err) {
168637
168676
  if (err instanceof NowError) {
168638
168677
  const errMeta = JSON.stringify(err.meta, null, 2).replace(/\\n/g, "\n");
168639
- return `${import_chalk64.default.red(err.code)} ${err.message}
168678
+ return `${import_chalk65.default.red(err.code)} ${err.message}
168640
168679
  ${errMeta}`;
168641
168680
  }
168642
168681
  return err.stack;
168643
168682
  }
168644
- var import_path37, import_chalk64, import_error_utils23, COMMAND_CONFIG5;
168683
+ var import_path37, import_chalk65, import_error_utils23, COMMAND_CONFIG5;
168645
168684
  var init_dev3 = __esm({
168646
168685
  "src/commands/dev/index.ts"() {
168647
168686
  "use strict";
168648
168687
  import_path37 = __toESM3(require("path"));
168649
- import_chalk64 = __toESM3(require_source());
168688
+ import_chalk65 = __toESM3(require_source());
168650
168689
  init_get_args();
168651
168690
  init_get_subcommand();
168652
168691
  init_now_error();
@@ -168788,9 +168827,9 @@ async function getDNSData(client2, data) {
168788
168827
  const port = await getNumber(client2, `- ${type} port: `);
168789
168828
  const target = await getTrimmedString(client2, `- ${type} target: `);
168790
168829
  output_manager_default.log(
168791
- `${import_chalk65.default.cyan(name)} ${import_chalk65.default.bold(type)} ${import_chalk65.default.cyan(
168830
+ `${import_chalk66.default.cyan(name)} ${import_chalk66.default.bold(type)} ${import_chalk66.default.cyan(
168792
168831
  `${priority}`
168793
- )} ${import_chalk65.default.cyan(`${weight}`)} ${import_chalk65.default.cyan(`${port}`)} ${import_chalk65.default.cyan(
168832
+ )} ${import_chalk66.default.cyan(`${weight}`)} ${import_chalk66.default.cyan(`${port}`)} ${import_chalk66.default.cyan(
168794
168833
  target
168795
168834
  )}.`
168796
168835
  );
@@ -168809,9 +168848,9 @@ async function getDNSData(client2, data) {
168809
168848
  const mxPriority = await getNumber(client2, `- ${type} priority: `);
168810
168849
  const value2 = await getTrimmedString(client2, `- ${type} host: `);
168811
168850
  output_manager_default.log(
168812
- `${import_chalk65.default.cyan(name)} ${import_chalk65.default.bold(type)} ${import_chalk65.default.cyan(
168851
+ `${import_chalk66.default.cyan(name)} ${import_chalk66.default.bold(type)} ${import_chalk66.default.cyan(
168813
168852
  `${mxPriority}`
168814
- )} ${import_chalk65.default.cyan(value2)}`
168853
+ )} ${import_chalk66.default.cyan(value2)}`
168815
168854
  );
168816
168855
  return await verifyData(client2) ? {
168817
168856
  name,
@@ -168821,7 +168860,7 @@ async function getDNSData(client2, data) {
168821
168860
  } : null;
168822
168861
  }
168823
168862
  const value = await getTrimmedString(client2, `- ${type} value: `);
168824
- output_manager_default.log(`${import_chalk65.default.cyan(name)} ${import_chalk65.default.bold(type)} ${import_chalk65.default.cyan(value)}`);
168863
+ output_manager_default.log(`${import_chalk66.default.cyan(name)} ${import_chalk66.default.bold(type)} ${import_chalk66.default.cyan(value)}`);
168825
168864
  return await verifyData(client2) ? {
168826
168865
  name,
168827
168866
  type,
@@ -168855,11 +168894,11 @@ async function getTrimmedString(client2, label) {
168855
168894
  });
168856
168895
  return res.trim();
168857
168896
  }
168858
- var import_chalk65, RECORD_TYPES;
168897
+ var import_chalk66, RECORD_TYPES;
168859
168898
  var init_get_dns_data = __esm({
168860
168899
  "src/util/dns/get-dns-data.ts"() {
168861
168900
  "use strict";
168862
- import_chalk65 = __toESM3(require_source());
168901
+ import_chalk66 = __toESM3(require_source());
168863
168902
  init_output_manager();
168864
168903
  RECORD_TYPES = ["A", "AAAA", "ALIAS", "CAA", "CNAME", "MX", "SRV", "TXT"];
168865
168904
  }
@@ -168932,7 +168971,7 @@ async function add2(client2, argv) {
168932
168971
  const parsedParams = parseAddArgs(args2);
168933
168972
  if (!parsedParams) {
168934
168973
  output_manager_default.error(
168935
- `Invalid number of arguments. See: ${import_chalk66.default.cyan(
168974
+ `Invalid number of arguments. See: ${import_chalk67.default.cyan(
168936
168975
  `${getCommandName("dns --help")}`
168937
168976
  )} for usage.`
168938
168977
  );
@@ -168959,23 +168998,23 @@ async function add2(client2, argv) {
168959
168998
  const record = await addDNSRecord(client2, domain, data);
168960
168999
  if (record instanceof DomainNotFound) {
168961
169000
  output_manager_default.error(
168962
- `The domain ${domain} can't be found under ${import_chalk66.default.bold(
169001
+ `The domain ${domain} can't be found under ${import_chalk67.default.bold(
168963
169002
  contextName
168964
- )} ${import_chalk66.default.gray(addStamp())}`
169003
+ )} ${import_chalk67.default.gray(addStamp())}`
168965
169004
  );
168966
169005
  return 1;
168967
169006
  }
168968
169007
  if (record instanceof DNSPermissionDenied) {
168969
169008
  output_manager_default.error(
168970
- `You don't have permissions to add records to domain ${domain} under ${import_chalk66.default.bold(
169009
+ `You don't have permissions to add records to domain ${domain} under ${import_chalk67.default.bold(
168971
169010
  contextName
168972
- )} ${import_chalk66.default.gray(addStamp())}`
169011
+ )} ${import_chalk67.default.gray(addStamp())}`
168973
169012
  );
168974
169013
  return 1;
168975
169014
  }
168976
169015
  if (record instanceof DNSInvalidPort) {
168977
169016
  output_manager_default.error(
168978
- `Invalid <port> parameter. A number was expected ${import_chalk66.default.gray(
169017
+ `Invalid <port> parameter. A number was expected ${import_chalk67.default.gray(
168979
169018
  addStamp()
168980
169019
  )}`
168981
169020
  );
@@ -168983,7 +169022,7 @@ async function add2(client2, argv) {
168983
169022
  }
168984
169023
  if (record instanceof DNSInvalidType) {
168985
169024
  output_manager_default.error(
168986
- `Invalid <type> parameter "${record.meta.type}". Expected one of A, AAAA, ALIAS, CAA, CNAME, MX, SRV, TXT ${import_chalk66.default.gray(
169025
+ `Invalid <type> parameter "${record.meta.type}". Expected one of A, AAAA, ALIAS, CAA, CNAME, MX, SRV, TXT ${import_chalk67.default.gray(
168987
169026
  addStamp()
168988
169027
  )}`
168989
169028
  );
@@ -168994,17 +169033,17 @@ async function add2(client2, argv) {
168994
169033
  return 1;
168995
169034
  }
168996
169035
  output_manager_default.success(
168997
- `DNS record for domain ${import_chalk66.default.bold(domain)} ${import_chalk66.default.gray(
169036
+ `DNS record for domain ${import_chalk67.default.bold(domain)} ${import_chalk67.default.gray(
168998
169037
  `(${record.uid})`
168999
- )} created under ${import_chalk66.default.bold(contextName)} ${import_chalk66.default.gray(addStamp())}`
169038
+ )} created under ${import_chalk67.default.bold(contextName)} ${import_chalk67.default.gray(addStamp())}`
169000
169039
  );
169001
169040
  return 0;
169002
169041
  }
169003
- var import_chalk66;
169042
+ var import_chalk67;
169004
169043
  var init_add4 = __esm({
169005
169044
  "src/commands/dns/add.ts"() {
169006
169045
  "use strict";
169007
- import_chalk66 = __toESM3(require_source());
169046
+ import_chalk67 = __toESM3(require_source());
169008
169047
  init_errors_ts();
169009
169048
  init_add_dns_record();
169010
169049
  init_get_scope();
@@ -169024,7 +169063,7 @@ var init_add4 = __esm({
169024
169063
  // src/util/dns/import-zonefile.ts
169025
169064
  async function importZonefile(client2, contextName, domain, zonefilePath) {
169026
169065
  output_manager_default.spinner(
169027
- `Importing Zone file for domain ${domain} under ${import_chalk67.default.bold(contextName)}`
169066
+ `Importing Zone file for domain ${domain} under ${import_chalk68.default.bold(contextName)}`
169028
169067
  );
169029
169068
  const zonefile = (0, import_fs7.readFileSync)((0, import_path38.resolve)(zonefilePath), "utf8");
169030
169069
  try {
@@ -169051,11 +169090,11 @@ async function importZonefile(client2, contextName, domain, zonefilePath) {
169051
169090
  throw err;
169052
169091
  }
169053
169092
  }
169054
- var import_chalk67, import_fs7, import_path38;
169093
+ var import_chalk68, import_fs7, import_path38;
169055
169094
  var init_import_zonefile = __esm({
169056
169095
  "src/util/dns/import-zonefile.ts"() {
169057
169096
  "use strict";
169058
- import_chalk67 = __toESM3(require_source());
169097
+ import_chalk68 = __toESM3(require_source());
169059
169098
  import_fs7 = require("fs");
169060
169099
  import_path38 = require("path");
169061
169100
  init_errors_ts();
@@ -169110,7 +169149,7 @@ async function importZone(client2, argv) {
169110
169149
  });
169111
169150
  if (args2.length !== 2) {
169112
169151
  output_manager_default.error(
169113
- `Invalid number of arguments. Usage: ${import_chalk68.default.cyan(
169152
+ `Invalid number of arguments. Usage: ${import_chalk69.default.cyan(
169114
169153
  `${getCommandName("dns import <domain> <zonefile>")}`
169115
169154
  )}`
169116
169155
  );
@@ -169128,32 +169167,32 @@ async function importZone(client2, argv) {
169128
169167
  );
169129
169168
  if (recordIds instanceof DomainNotFound) {
169130
169169
  output_manager_default.error(
169131
- `The domain ${domain} can't be found under ${import_chalk68.default.bold(
169170
+ `The domain ${domain} can't be found under ${import_chalk69.default.bold(
169132
169171
  contextName
169133
- )} ${import_chalk68.default.gray(addStamp())}`
169172
+ )} ${import_chalk69.default.gray(addStamp())}`
169134
169173
  );
169135
169174
  return 1;
169136
169175
  }
169137
169176
  if (recordIds instanceof InvalidDomain) {
169138
169177
  output_manager_default.error(
169139
- `The domain ${domain} doesn't match with the one found in the Zone file ${import_chalk68.default.gray(
169178
+ `The domain ${domain} doesn't match with the one found in the Zone file ${import_chalk69.default.gray(
169140
169179
  addStamp()
169141
169180
  )}`
169142
169181
  );
169143
169182
  return 1;
169144
169183
  }
169145
169184
  output_manager_default.success(
169146
- `${recordIds.length} DNS records for domain ${import_chalk68.default.bold(
169185
+ `${recordIds.length} DNS records for domain ${import_chalk69.default.bold(
169147
169186
  domain
169148
- )} created under ${import_chalk68.default.bold(contextName)} ${import_chalk68.default.gray(addStamp())}`
169187
+ )} created under ${import_chalk69.default.bold(contextName)} ${import_chalk69.default.gray(addStamp())}`
169149
169188
  );
169150
169189
  return 0;
169151
169190
  }
169152
- var import_chalk68;
169191
+ var import_chalk69;
169153
169192
  var init_import2 = __esm({
169154
169193
  "src/commands/dns/import.ts"() {
169155
169194
  "use strict";
169156
- import_chalk68 = __toESM3(require_source());
169195
+ import_chalk69 = __toESM3(require_source());
169157
169196
  init_get_scope();
169158
169197
  init_errors_ts();
169159
169198
  init_stamp();
@@ -169196,7 +169235,7 @@ function formatTable(header, align, blocks) {
169196
169235
  out += `${block.name}
169197
169236
  `;
169198
169237
  }
169199
- const rows = [header.map((s) => import_chalk69.default.dim(s))].concat(block.rows);
169238
+ const rows = [header.map((s) => import_chalk70.default.dim(s))].concat(block.rows);
169200
169239
  if (rows.length > 0) {
169201
169240
  rows[0][0] = ` ${rows[0][0]}`;
169202
169241
  for (let i = 1; i < rows.length; i++) {
@@ -169216,11 +169255,11 @@ function formatTable(header, align, blocks) {
169216
169255
  }
169217
169256
  return out.slice(0, -1);
169218
169257
  }
169219
- var import_chalk69;
169258
+ var import_chalk70;
169220
169259
  var init_format_table = __esm({
169221
169260
  "src/util/format-table.ts"() {
169222
169261
  "use strict";
169223
- import_chalk69 = __toESM3(require_source());
169262
+ import_chalk70 = __toESM3(require_source());
169224
169263
  init_table();
169225
169264
  init_strlen();
169226
169265
  }
@@ -169304,18 +169343,18 @@ function getAddDomainName(domainNames) {
169304
169343
  ];
169305
169344
  }
169306
169345
  async function getDomainNames(client2, contextName, next) {
169307
- output_manager_default.spinner(`Fetching domains under ${import_chalk70.default.bold(contextName)}`);
169346
+ output_manager_default.spinner(`Fetching domains under ${import_chalk71.default.bold(contextName)}`);
169308
169347
  const { domains: domains2, pagination } = await getDomains(client2, next);
169309
169348
  return { domainNames: domains2.map((domain) => domain.name), pagination };
169310
169349
  }
169311
- var import_chalk70;
169350
+ var import_chalk71;
169312
169351
  var init_get_dns_records = __esm({
169313
169352
  "src/util/dns/get-dns-records.ts"() {
169314
169353
  "use strict";
169315
169354
  init_errors_ts();
169316
169355
  init_get_domain_dns_records();
169317
169356
  init_get_domains();
169318
- import_chalk70 = __toESM3(require_source());
169357
+ import_chalk71 = __toESM3(require_source());
169319
169358
  init_output_manager();
169320
169359
  }
169321
169360
  });
@@ -169380,7 +169419,7 @@ async function ls3(client2, argv) {
169380
169419
  telemetry2.trackCliOptionNext(opts["--next"]);
169381
169420
  if (args2.length > 1) {
169382
169421
  output_manager_default.error(
169383
- `Invalid number of arguments. Usage: ${import_chalk71.default.cyan(
169422
+ `Invalid number of arguments. Usage: ${import_chalk72.default.cyan(
169384
169423
  `${getCommandName("dns ls [domain]")}`
169385
169424
  )}`
169386
169425
  );
@@ -169402,15 +169441,15 @@ async function ls3(client2, argv) {
169402
169441
  );
169403
169442
  if (data instanceof DomainNotFound) {
169404
169443
  output_manager_default.error(
169405
- `The domain ${domainName} can't be found under ${import_chalk71.default.bold(
169444
+ `The domain ${domainName} can't be found under ${import_chalk72.default.bold(
169406
169445
  contextName
169407
- )} ${import_chalk71.default.gray(lsStamp())}`
169446
+ )} ${import_chalk72.default.gray(lsStamp())}`
169408
169447
  );
169409
169448
  return 1;
169410
169449
  }
169411
169450
  const { records, pagination: pagination2 } = data;
169412
169451
  output_manager_default.log(
169413
- `${records.length > 0 ? "Records" : "No records"} found under ${import_chalk71.default.bold(contextName)} ${import_chalk71.default.gray(lsStamp())}`
169452
+ `${records.length > 0 ? "Records" : "No records"} found under ${import_chalk72.default.bold(contextName)} ${import_chalk72.default.gray(lsStamp())}`
169414
169453
  );
169415
169454
  client2.stdout.write(getDNSRecordsTable([{ domainName, records }]));
169416
169455
  if (pagination2 && pagination2.count === 20) {
@@ -169430,9 +169469,9 @@ async function ls3(client2, argv) {
169430
169469
  );
169431
169470
  const nRecords = dnsRecords.reduce((p, r) => r.records.length + p, 0);
169432
169471
  output_manager_default.log(
169433
- `${nRecords > 0 ? "Records" : "No records"} found under ${import_chalk71.default.bold(
169472
+ `${nRecords > 0 ? "Records" : "No records"} found under ${import_chalk72.default.bold(
169434
169473
  contextName
169435
- )} ${import_chalk71.default.gray(lsStamp())}`
169474
+ )} ${import_chalk72.default.gray(lsStamp())}`
169436
169475
  );
169437
169476
  output_manager_default.log(getDNSRecordsTable(dnsRecords));
169438
169477
  if (pagination && pagination.count === 20) {
@@ -169450,7 +169489,7 @@ function getDNSRecordsTable(dnsRecords) {
169450
169489
  ["", "id", "name", "type", "value", "created"],
169451
169490
  ["l", "r", "l", "l", "l", "l"],
169452
169491
  dnsRecords.map(({ domainName, records }) => ({
169453
- name: import_chalk71.default.bold(domainName),
169492
+ name: import_chalk72.default.bold(domainName),
169454
169493
  rows: records.map(getDNSRecordRow)
169455
169494
  }))
169456
169495
  );
@@ -169467,14 +169506,14 @@ function getDNSRecordRow(record) {
169467
169506
  record.name,
169468
169507
  record.type,
169469
169508
  priority ? `${priority} ${record.value}` : record.value,
169470
- import_chalk71.default.gray(isSystemRecord ? "default" : createdAt)
169509
+ import_chalk72.default.gray(isSystemRecord ? "default" : createdAt)
169471
169510
  ];
169472
169511
  }
169473
- var import_chalk71, import_ms16;
169512
+ var import_chalk72, import_ms16;
169474
169513
  var init_ls5 = __esm({
169475
169514
  "src/commands/dns/ls.ts"() {
169476
169515
  "use strict";
169477
- import_chalk71 = __toESM3(require_source());
169516
+ import_chalk72 = __toESM3(require_source());
169478
169517
  import_ms16 = __toESM3(require_ms());
169479
169518
  init_errors_ts();
169480
169519
  init_format_table();
@@ -169559,7 +169598,7 @@ async function rm3(client2, argv) {
169559
169598
  const [recordId] = args2;
169560
169599
  if (args2.length !== 1) {
169561
169600
  output_manager_default.error(
169562
- `Invalid number of arguments. Usage: ${import_chalk72.default.cyan(
169601
+ `Invalid number of arguments. Usage: ${import_chalk73.default.cyan(
169563
169602
  `${getCommandName("dns rm <id>")}`
169564
169603
  )}`
169565
169604
  );
@@ -169585,7 +169624,7 @@ async function rm3(client2, argv) {
169585
169624
  const rmStamp = stamp_default();
169586
169625
  await deleteDNSRecordById(client2, domainName, record.id);
169587
169626
  output_manager_default.success(
169588
- `Record ${import_chalk72.default.gray(`${record.id}`)} removed ${import_chalk72.default.gray(rmStamp())}`
169627
+ `Record ${import_chalk73.default.gray(`${record.id}`)} removed ${import_chalk73.default.gray(rmStamp())}`
169589
169628
  );
169590
169629
  return 0;
169591
169630
  }
@@ -169600,7 +169639,7 @@ function readConfirmation2(client2, msg, domainName, record) {
169600
169639
  `
169601
169640
  );
169602
169641
  output_manager_default.print(
169603
- `${import_chalk72.default.bold.red("> Are you sure?")} ${import_chalk72.default.gray("(y/N) ")}`
169642
+ `${import_chalk73.default.bold.red("> Are you sure?")} ${import_chalk73.default.gray("(y/N) ")}`
169604
169643
  );
169605
169644
  client2.stdin.on("data", (d) => {
169606
169645
  process.stdin.pause();
@@ -169612,19 +169651,19 @@ function getDeleteTableRow(domainName, record) {
169612
169651
  const recordName = `${record.name.length > 0 ? `${record.name}.` : ""}${domainName}`;
169613
169652
  return [
169614
169653
  record.id,
169615
- import_chalk72.default.bold(
169654
+ import_chalk73.default.bold(
169616
169655
  `${recordName} ${record.type} ${record.value} ${record.mxPriority || ""}`
169617
169656
  ),
169618
- import_chalk72.default.gray(
169657
+ import_chalk73.default.gray(
169619
169658
  `${(0, import_ms17.default)(Date.now() - new Date(Number(record.createdAt)).getTime())} ago`
169620
169659
  )
169621
169660
  ];
169622
169661
  }
169623
- var import_chalk72, import_ms17;
169662
+ var import_chalk73, import_ms17;
169624
169663
  var init_rm4 = __esm({
169625
169664
  "src/commands/dns/rm.ts"() {
169626
169665
  "use strict";
169627
- import_chalk72 = __toESM3(require_source());
169666
+ import_chalk73 = __toESM3(require_source());
169628
169667
  import_ms17 = __toESM3(require_ms());
169629
169668
  init_table();
169630
169669
  init_delete_dns_record_by_id();
@@ -169798,16 +169837,16 @@ function formatNSTable(intendedNameservers, currentNameservers, { extraSpace = "
169798
169837
  const rows = [];
169799
169838
  for (let i = 0; i < maxLength; i++) {
169800
169839
  rows.push([
169801
- sortedIntended[i] || import_chalk73.default.gray("-"),
169802
- sortedCurrent[i] || import_chalk73.default.gray("-"),
169803
- sortedIntended[i] === sortedCurrent[i] ? import_chalk73.default.green(chars_default.tick) : import_chalk73.default.red(chars_default.cross)
169840
+ sortedIntended[i] || import_chalk74.default.gray("-"),
169841
+ sortedCurrent[i] || import_chalk74.default.gray("-"),
169842
+ sortedIntended[i] === sortedCurrent[i] ? import_chalk74.default.green(chars_default.tick) : import_chalk74.default.red(chars_default.cross)
169804
169843
  ]);
169805
169844
  }
169806
169845
  return table(
169807
169846
  [
169808
169847
  [
169809
- import_chalk73.default.gray("Intended Nameservers"),
169810
- import_chalk73.default.gray("Current Nameservers"),
169848
+ import_chalk74.default.gray("Intended Nameservers"),
169849
+ import_chalk74.default.gray("Current Nameservers"),
169811
169850
  ""
169812
169851
  ],
169813
169852
  ...rows
@@ -169815,11 +169854,11 @@ function formatNSTable(intendedNameservers, currentNameservers, { extraSpace = "
169815
169854
  { hsep: 4 }
169816
169855
  ).replace(/^(.*)/gm, `${extraSpace}$1`);
169817
169856
  }
169818
- var import_chalk73;
169857
+ var import_chalk74;
169819
169858
  var init_format_ns_table = __esm({
169820
169859
  "src/util/format-ns-table.ts"() {
169821
169860
  "use strict";
169822
- import_chalk73 = __toESM3(require_source());
169861
+ import_chalk74 = __toESM3(require_source());
169823
169862
  init_table();
169824
169863
  init_chars();
169825
169864
  }
@@ -169828,7 +169867,7 @@ var init_format_ns_table = __esm({
169828
169867
  // src/util/domains/get-domain.ts
169829
169868
  async function getDomain(client2, contextName, domainName) {
169830
169869
  output_manager_default.spinner(
169831
- `Fetching domain ${domainName} under ${import_chalk74.default.bold(contextName)}`
169870
+ `Fetching domain ${domainName} under ${import_chalk75.default.bold(contextName)}`
169832
169871
  );
169833
169872
  try {
169834
169873
  const { domain } = await client2.fetch(
@@ -169842,11 +169881,11 @@ async function getDomain(client2, contextName, domainName) {
169842
169881
  throw err;
169843
169882
  }
169844
169883
  }
169845
- var import_chalk74;
169884
+ var import_chalk75;
169846
169885
  var init_get_domain = __esm({
169847
169886
  "src/util/domains/get-domain.ts"() {
169848
169887
  "use strict";
169849
- import_chalk74 = __toESM3(require_source());
169888
+ import_chalk75 = __toESM3(require_source());
169850
169889
  init_errors_ts();
169851
169890
  init_output_manager();
169852
169891
  }
@@ -169886,7 +169925,7 @@ var init_get_domain_config = __esm({
169886
169925
  // src/util/projects/add-domain-to-project.ts
169887
169926
  async function addDomainToProject(client2, projectNameOrId, domain) {
169888
169927
  output_manager_default.spinner(
169889
- `Adding domain ${domain} to project ${import_chalk75.default.bold(projectNameOrId)}`
169928
+ `Adding domain ${domain} to project ${import_chalk76.default.bold(projectNameOrId)}`
169890
169929
  );
169891
169930
  try {
169892
169931
  const response = await client2.fetch(
@@ -169915,11 +169954,11 @@ async function addDomainToProject(client2, projectNameOrId, domain) {
169915
169954
  throw err;
169916
169955
  }
169917
169956
  }
169918
- var import_chalk75;
169957
+ var import_chalk76;
169919
169958
  var init_add_domain_to_project = __esm({
169920
169959
  "src/util/projects/add-domain-to-project.ts"() {
169921
169960
  "use strict";
169922
- import_chalk75 = __toESM3(require_source());
169961
+ import_chalk76 = __toESM3(require_source());
169923
169962
  init_errors_ts();
169924
169963
  init_output_manager();
169925
169964
  }
@@ -169928,7 +169967,7 @@ var init_add_domain_to_project = __esm({
169928
169967
  // src/util/projects/remove-domain-from-project.ts
169929
169968
  async function removeDomainFromProject(client2, projectNameOrId, domain) {
169930
169969
  output_manager_default.spinner(
169931
- `Removing domain ${domain} from project ${import_chalk76.default.bold(projectNameOrId)}`
169970
+ `Removing domain ${domain} from project ${import_chalk77.default.bold(projectNameOrId)}`
169932
169971
  );
169933
169972
  try {
169934
169973
  const response = await client2.fetch(
@@ -169947,11 +169986,11 @@ async function removeDomainFromProject(client2, projectNameOrId, domain) {
169947
169986
  throw err;
169948
169987
  }
169949
169988
  }
169950
- var import_chalk76;
169989
+ var import_chalk77;
169951
169990
  var init_remove_domain_from_project = __esm({
169952
169991
  "src/util/projects/remove-domain-from-project.ts"() {
169953
169992
  "use strict";
169954
- import_chalk76 = __toESM3(require_source());
169993
+ import_chalk77 = __toESM3(require_source());
169955
169994
  init_errors_ts();
169956
169995
  init_output_manager();
169957
169996
  }
@@ -170055,7 +170094,7 @@ async function add3(client2, argv) {
170055
170094
  }
170056
170095
  }
170057
170096
  output_manager_default.success(
170058
- `Domain ${import_chalk77.default.bold(domainName)} added to project ${import_chalk77.default.bold(
170097
+ `Domain ${import_chalk78.default.bold(domainName)} added to project ${import_chalk78.default.bold(
170059
170098
  projectName
170060
170099
  )}. ${addStamp()}`
170061
170100
  );
@@ -170076,11 +170115,11 @@ async function add3(client2, argv) {
170076
170115
  "This domain is not configured properly. To configure it you should either:"
170077
170116
  );
170078
170117
  output_manager_default.print(
170079
- ` ${import_chalk77.default.grey("a)")} Set the following record on your DNS provider to continue: ${code(`A ${domainName} 76.76.21.21`)} ${import_chalk77.default.grey("[recommended]")}
170118
+ ` ${import_chalk78.default.grey("a)")} Set the following record on your DNS provider to continue: ${code(`A ${domainName} 76.76.21.21`)} ${import_chalk78.default.grey("[recommended]")}
170080
170119
  `
170081
170120
  );
170082
170121
  output_manager_default.print(
170083
- ` ${import_chalk77.default.grey("b)")} Change your Domains's nameservers to the intended set`
170122
+ ` ${import_chalk78.default.grey("b)")} Change your Domains's nameservers to the intended set`
170084
170123
  );
170085
170124
  output_manager_default.print(
170086
170125
  `
@@ -170103,11 +170142,11 @@ ${formatNSTable(
170103
170142
  }
170104
170143
  return 0;
170105
170144
  }
170106
- var import_chalk77;
170145
+ var import_chalk78;
170107
170146
  var init_add6 = __esm({
170108
170147
  "src/commands/domains/add.ts"() {
170109
170148
  "use strict";
170110
- import_chalk77 = __toESM3(require_source());
170149
+ import_chalk78 = __toESM3(require_source());
170111
170150
  init_errors_ts();
170112
170151
  init_format_ns_table();
170113
170152
  init_get_scope();
@@ -170199,7 +170238,7 @@ async function buy(client2, argv) {
170199
170238
  }
170200
170239
  if (!(await getDomainStatus(client2, domainName)).available) {
170201
170240
  output_manager_default.error(
170202
- `The domain ${param(domainName)} is ${import_chalk78.default.underline(
170241
+ `The domain ${param(domainName)} is ${import_chalk79.default.underline(
170203
170242
  "unavailable"
170204
170243
  )}! ${availableStamp()}`
170205
170244
  );
@@ -170207,22 +170246,22 @@ async function buy(client2, argv) {
170207
170246
  }
170208
170247
  const { period, price } = domainPrice;
170209
170248
  output_manager_default.log(
170210
- `The domain ${param(domainName)} is ${import_chalk78.default.underline(
170249
+ `The domain ${param(domainName)} is ${import_chalk79.default.underline(
170211
170250
  "available"
170212
- )} to buy under ${import_chalk78.default.bold(contextName)}! ${availableStamp()}`
170251
+ )} to buy under ${import_chalk79.default.bold(contextName)}! ${availableStamp()}`
170213
170252
  );
170214
170253
  let autoRenew;
170215
170254
  if (skipConfirmation) {
170216
170255
  autoRenew = true;
170217
170256
  } else {
170218
170257
  if (!await client2.input.confirm(
170219
- `Buy now for ${import_chalk78.default.bold(`$${price}`)} (${`${period}yr${period > 1 ? "s" : ""}`})?`,
170258
+ `Buy now for ${import_chalk79.default.bold(`$${price}`)} (${`${period}yr${period > 1 ? "s" : ""}`})?`,
170220
170259
  false
170221
170260
  )) {
170222
170261
  return 0;
170223
170262
  }
170224
170263
  autoRenew = await client2.input.confirm(
170225
- renewalPrice.period === 1 ? `Auto renew yearly for ${import_chalk78.default.bold(`$${price}`)}?` : `Auto renew every ${renewalPrice.period} years for ${import_chalk78.default.bold(
170264
+ renewalPrice.period === 1 ? `Auto renew yearly for ${import_chalk79.default.bold(`$${price}`)}?` : `Auto renew every ${renewalPrice.period} years for ${import_chalk79.default.bold(
170226
170265
  `$${price}`
170227
170266
  )}?`,
170228
170267
  true
@@ -170306,11 +170345,11 @@ async function buy(client2, argv) {
170306
170345
  }
170307
170346
  return 0;
170308
170347
  }
170309
- var import_chalk78, import_tldts6, import_error_utils24;
170348
+ var import_chalk79, import_tldts6, import_error_utils24;
170310
170349
  var init_buy2 = __esm({
170311
170350
  "src/commands/domains/buy.ts"() {
170312
170351
  "use strict";
170313
- import_chalk78 = __toESM3(require_source());
170352
+ import_chalk79 = __toESM3(require_source());
170314
170353
  import_tldts6 = __toESM3(require_cjs7());
170315
170354
  import_error_utils24 = __toESM3(require_dist2());
170316
170355
  init_errors_ts();
@@ -170491,13 +170530,13 @@ async function transferIn(client2, argv) {
170491
170530
  const { price } = domainPrice;
170492
170531
  const { contextName } = await getScope(client2);
170493
170532
  output_manager_default.log(
170494
- `The domain ${param(domainName)} is ${import_chalk79.default.underline(
170533
+ `The domain ${param(domainName)} is ${import_chalk80.default.underline(
170495
170534
  "available"
170496
- )} to transfer under ${import_chalk79.default.bold(contextName)}! ${availableStamp()}`
170535
+ )} to transfer under ${import_chalk80.default.bold(contextName)}! ${availableStamp()}`
170497
170536
  );
170498
170537
  const authCode = await getAuthCode(client2, opts["--code"]);
170499
170538
  const shouldTransfer = await client2.input.confirm(
170500
- transferPolicy === "no-change" ? `Transfer now for ${import_chalk79.default.bold(`$${price}`)}?` : `Transfer now with 1yr renewal for ${import_chalk79.default.bold(`$${price}`)}?`,
170539
+ transferPolicy === "no-change" ? `Transfer now for ${import_chalk80.default.bold(`$${price}`)}?` : `Transfer now with 1yr renewal for ${import_chalk80.default.bold(`$${price}`)}?`,
170501
170540
  false
170502
170541
  );
170503
170542
  if (!shouldTransfer) {
@@ -170565,11 +170604,11 @@ async function transferIn(client2, argv) {
170565
170604
  );
170566
170605
  return 0;
170567
170606
  }
170568
- var import_chalk79;
170607
+ var import_chalk80;
170569
170608
  var init_transfer_in2 = __esm({
170570
170609
  "src/commands/domains/transfer-in.ts"() {
170571
170610
  "use strict";
170572
- import_chalk79 = __toESM3(require_source());
170611
+ import_chalk80 = __toESM3(require_source());
170573
170612
  init_errors_ts();
170574
170613
  init_get_scope();
170575
170614
  init_param();
@@ -170681,7 +170720,7 @@ async function inspect2(client2, argv) {
170681
170720
  telemetry2.trackCliArgumentDomain(domainName);
170682
170721
  if (args2.length !== 1) {
170683
170722
  output_manager_default.error(
170684
- `Invalid number of arguments. Usage: ${import_chalk80.default.cyan(
170723
+ `Invalid number of arguments. Usage: ${import_chalk81.default.cyan(
170685
170724
  `${getCommandName("domains inspect <domain>")}`
170686
170725
  )}`
170687
170726
  );
@@ -170690,7 +170729,7 @@ async function inspect2(client2, argv) {
170690
170729
  output_manager_default.debug(`Fetching domain info`);
170691
170730
  const { contextName } = await getScope(client2);
170692
170731
  output_manager_default.spinner(
170693
- `Fetching Domain ${domainName} under ${import_chalk80.default.bold(contextName)}`
170732
+ `Fetching Domain ${domainName} under ${import_chalk81.default.bold(contextName)}`
170694
170733
  );
170695
170734
  const information = await fetchInformation({
170696
170735
  client: client2,
@@ -170702,38 +170741,38 @@ async function inspect2(client2, argv) {
170702
170741
  }
170703
170742
  const { domain, projects, renewalPrice, domainConfig } = information;
170704
170743
  output_manager_default.log(
170705
- `Domain ${domainName} found under ${import_chalk80.default.bold(contextName)} ${import_chalk80.default.gray(
170744
+ `Domain ${domainName} found under ${import_chalk81.default.bold(contextName)} ${import_chalk81.default.gray(
170706
170745
  inspectStamp()
170707
170746
  )}`
170708
170747
  );
170709
170748
  output_manager_default.print("\n");
170710
- output_manager_default.print(import_chalk80.default.bold(" General\n\n"));
170711
- output_manager_default.print(` ${import_chalk80.default.cyan("Name")} ${domain.name}
170749
+ output_manager_default.print(import_chalk81.default.bold(" General\n\n"));
170750
+ output_manager_default.print(` ${import_chalk81.default.cyan("Name")} ${domain.name}
170712
170751
  `);
170713
170752
  output_manager_default.print(
170714
- ` ${import_chalk80.default.cyan("Registrar")} ${getDomainRegistrar(domain)}
170753
+ ` ${import_chalk81.default.cyan("Registrar")} ${getDomainRegistrar(domain)}
170715
170754
  `
170716
170755
  );
170717
170756
  output_manager_default.print(
170718
- ` ${import_chalk80.default.cyan("Expiration Date")} ${formatDate(domain.expiresAt)}
170757
+ ` ${import_chalk81.default.cyan("Expiration Date")} ${formatDate(domain.expiresAt)}
170719
170758
  `
170720
170759
  );
170721
170760
  output_manager_default.print(
170722
- ` ${import_chalk80.default.cyan("Creator")} ${domain.creator.username}
170761
+ ` ${import_chalk81.default.cyan("Creator")} ${domain.creator.username}
170723
170762
  `
170724
170763
  );
170725
170764
  output_manager_default.print(
170726
- ` ${import_chalk80.default.cyan("Created At")} ${formatDate(domain.createdAt)}
170765
+ ` ${import_chalk81.default.cyan("Created At")} ${formatDate(domain.createdAt)}
170727
170766
  `
170728
170767
  );
170729
- output_manager_default.print(` ${import_chalk80.default.cyan("Edge Network")} yes
170768
+ output_manager_default.print(` ${import_chalk81.default.cyan("Edge Network")} yes
170730
170769
  `);
170731
170770
  output_manager_default.print(
170732
- ` ${import_chalk80.default.cyan("Renewal Price")} ${domain.boughtAt && renewalPrice ? `$${renewalPrice} USD` : import_chalk80.default.gray("-")}
170771
+ ` ${import_chalk81.default.cyan("Renewal Price")} ${domain.boughtAt && renewalPrice ? `$${renewalPrice} USD` : import_chalk81.default.gray("-")}
170733
170772
  `
170734
170773
  );
170735
170774
  output_manager_default.print("\n");
170736
- output_manager_default.print(import_chalk80.default.bold(" Nameservers\n\n"));
170775
+ output_manager_default.print(import_chalk81.default.bold(" Nameservers\n\n"));
170737
170776
  output_manager_default.print(
170738
170777
  `${formatNSTable(domain.intendedNameservers, domain.nameservers, {
170739
170778
  extraSpace: " "
@@ -170742,7 +170781,7 @@ async function inspect2(client2, argv) {
170742
170781
  );
170743
170782
  output_manager_default.print("\n");
170744
170783
  if (Array.isArray(projects) && projects.length > 0) {
170745
- output_manager_default.print(import_chalk80.default.bold(" Projects\n"));
170784
+ output_manager_default.print(import_chalk81.default.bold(" Projects\n"));
170746
170785
  const table2 = formatTable(
170747
170786
  ["Project", "Domains"],
170748
170787
  ["l", "l"],
@@ -170772,11 +170811,11 @@ async function inspect2(client2, argv) {
170772
170811
  null
170773
170812
  );
170774
170813
  output_manager_default.print(
170775
- ` ${import_chalk80.default.grey("a)")} Set the following record on your DNS provider to continue: ${code(`A ${domainName} 76.76.21.21`)} ${import_chalk80.default.grey("[recommended]")}
170814
+ ` ${import_chalk81.default.grey("a)")} Set the following record on your DNS provider to continue: ${code(`A ${domainName} 76.76.21.21`)} ${import_chalk81.default.grey("[recommended]")}
170776
170815
  `
170777
170816
  );
170778
170817
  output_manager_default.print(
170779
- ` ${import_chalk80.default.grey("b)")} Change your Domains's nameservers to the intended set detailed above.
170818
+ ` ${import_chalk81.default.grey("b)")} Change your Domains's nameservers to the intended set detailed above.
170780
170819
 
170781
170820
  `
170782
170821
  );
@@ -170835,11 +170874,11 @@ async function fetchInformation({
170835
170874
  domainConfig
170836
170875
  };
170837
170876
  }
170838
- var import_chalk80;
170877
+ var import_chalk81;
170839
170878
  var init_inspect2 = __esm({
170840
170879
  "src/commands/domains/inspect.ts"() {
170841
170880
  "use strict";
170842
- import_chalk80 = __toESM3(require_source());
170881
+ import_chalk81 = __toESM3(require_source());
170843
170882
  init_errors_ts();
170844
170883
  init_stamp();
170845
170884
  init_format_date();
@@ -170918,21 +170957,21 @@ async function ls4(client2, argv) {
170918
170957
  const lsStamp = stamp_default();
170919
170958
  if (args2.length !== 0) {
170920
170959
  output_manager_default.error(
170921
- `Invalid number of arguments. Usage: ${import_chalk81.default.cyan(
170960
+ `Invalid number of arguments. Usage: ${import_chalk82.default.cyan(
170922
170961
  `${getCommandName("domains ls")}`
170923
170962
  )}`
170924
170963
  );
170925
170964
  return 1;
170926
170965
  }
170927
- output_manager_default.spinner(`Fetching Domains under ${import_chalk81.default.bold(contextName)}`);
170966
+ output_manager_default.spinner(`Fetching Domains under ${import_chalk82.default.bold(contextName)}`);
170928
170967
  const { domains: domains2, pagination } = await getDomains(
170929
170968
  client2,
170930
170969
  ...paginationOptions
170931
170970
  );
170932
170971
  output_manager_default.log(
170933
- `${(0, import_pluralize8.default)("Domain", domains2.length, true)} found under ${import_chalk81.default.bold(
170972
+ `${(0, import_pluralize8.default)("Domain", domains2.length, true)} found under ${import_chalk82.default.bold(
170934
170973
  contextName
170935
- )} ${import_chalk81.default.gray(lsStamp())}`
170974
+ )} ${import_chalk82.default.gray(lsStamp())}`
170936
170975
  );
170937
170976
  if (domains2.length > 0) {
170938
170977
  output_manager_default.print(
@@ -170961,7 +171000,7 @@ function formatDomainsTable(domains2) {
170961
171000
  isDomainExternal(domain) ? "Third Party" : "Vercel",
170962
171001
  expiration,
170963
171002
  domain.creator.username,
170964
- import_chalk81.default.gray(age)
171003
+ import_chalk82.default.gray(age)
170965
171004
  ];
170966
171005
  });
170967
171006
  return formatTable(
@@ -170970,12 +171009,12 @@ function formatDomainsTable(domains2) {
170970
171009
  [{ rows }]
170971
171010
  );
170972
171011
  }
170973
- var import_ms18, import_chalk81, import_pluralize8;
171012
+ var import_ms18, import_chalk82, import_pluralize8;
170974
171013
  var init_ls7 = __esm({
170975
171014
  "src/commands/domains/ls.ts"() {
170976
171015
  "use strict";
170977
171016
  import_ms18 = __toESM3(require_ms());
170978
- import_chalk81 = __toESM3(require_source());
171017
+ import_chalk82 = __toESM3(require_source());
170979
171018
  import_pluralize8 = __toESM3(require_pluralize());
170980
171019
  init_get_domains();
170981
171020
  init_get_scope();
@@ -171124,7 +171163,7 @@ async function rm4(client2, argv) {
171124
171163
  const { contextName } = await getScope(client2);
171125
171164
  if (args2.length !== 1) {
171126
171165
  output_manager_default.error(
171127
- `Invalid number of arguments. Usage: ${import_chalk82.default.cyan(
171166
+ `Invalid number of arguments. Usage: ${import_chalk83.default.cyan(
171128
171167
  `${getCommandName("domains rm <domain>")}`
171129
171168
  )}`
171130
171169
  );
@@ -171133,14 +171172,14 @@ async function rm4(client2, argv) {
171133
171172
  const domain = await getDomainByName(client2, contextName, domainName);
171134
171173
  if (domain instanceof DomainNotFound || domain.name !== domainName) {
171135
171174
  output_manager_default.error(
171136
- `Domain not found by "${domainName}" under ${import_chalk82.default.bold(contextName)}`
171175
+ `Domain not found by "${domainName}" under ${import_chalk83.default.bold(contextName)}`
171137
171176
  );
171138
171177
  output_manager_default.log(`Run ${getCommandName(`domains ls`)} to see your domains.`);
171139
171178
  return 1;
171140
171179
  }
171141
171180
  if (domain instanceof DomainPermissionDenied) {
171142
171181
  output_manager_default.error(
171143
- `You don't have access to the domain ${domainName} under ${import_chalk82.default.bold(
171182
+ `You don't have access to the domain ${domainName} under ${import_chalk83.default.bold(
171144
171183
  contextName
171145
171184
  )}`
171146
171185
  );
@@ -171200,15 +171239,15 @@ async function removeDomain(client2, contextName, skipConfirmation, domain, alia
171200
171239
  domain.name
171201
171240
  );
171202
171241
  if (removeResult instanceof DomainNotFound) {
171203
- output_manager_default.error(`Domain not found under ${import_chalk82.default.bold(contextName)}`);
171242
+ output_manager_default.error(`Domain not found under ${import_chalk83.default.bold(contextName)}`);
171204
171243
  output_manager_default.log(`Run ${getCommandName(`domains ls`)} to see your domains.`);
171205
171244
  return 1;
171206
171245
  }
171207
171246
  if (removeResult instanceof DomainPermissionDenied) {
171208
171247
  output_manager_default.error(
171209
- `You don't have permissions over domain ${import_chalk82.default.underline(
171248
+ `You don't have permissions over domain ${import_chalk83.default.underline(
171210
171249
  removeResult.meta.domain
171211
- )} under ${import_chalk82.default.bold(removeResult.meta.context)}.`
171250
+ )} under ${import_chalk83.default.bold(removeResult.meta.context)}.`
171212
171251
  );
171213
171252
  return 1;
171214
171253
  }
@@ -171250,21 +171289,21 @@ async function removeDomain(client2, contextName, skipConfirmation, domain, alia
171250
171289
  );
171251
171290
  if (aliases.length > 0) {
171252
171291
  output_manager_default.warn(
171253
- `This domain's ${import_chalk82.default.bold(
171292
+ `This domain's ${import_chalk83.default.bold(
171254
171293
  (0, import_pluralize9.default)("alias", aliases.length, true)
171255
171294
  )} will be removed. Run ${getCommandName(`alias ls`)} to list them.`
171256
171295
  );
171257
171296
  }
171258
171297
  if (certs.length > 0) {
171259
171298
  output_manager_default.warn(
171260
- `This domain's ${import_chalk82.default.bold(
171299
+ `This domain's ${import_chalk83.default.bold(
171261
171300
  (0, import_pluralize9.default)("certificate", certs.length, true)
171262
171301
  )} will be removed. Run ${getCommandName(`cert ls`)} to list them.`
171263
171302
  );
171264
171303
  }
171265
171304
  if (suffix2) {
171266
171305
  output_manager_default.warn(
171267
- `The ${import_chalk82.default.bold(`custom suffix`)} associated with this domain.`
171306
+ `The ${import_chalk83.default.bold(`custom suffix`)} associated with this domain.`
171268
171307
  );
171269
171308
  }
171270
171309
  if (!skipConfirmation && !await client2.input.confirm(
@@ -171285,14 +171324,14 @@ async function removeDomain(client2, contextName, skipConfirmation, domain, alia
171285
171324
  attempt + 1
171286
171325
  );
171287
171326
  }
171288
- output_manager_default.success(`Domain ${import_chalk82.default.bold(domain.name)} removed ${removeStamp()}`);
171327
+ output_manager_default.success(`Domain ${import_chalk83.default.bold(domain.name)} removed ${removeStamp()}`);
171289
171328
  return 0;
171290
171329
  }
171291
- var import_chalk82, import_pluralize9;
171330
+ var import_chalk83, import_pluralize9;
171292
171331
  var init_rm6 = __esm({
171293
171332
  "src/commands/domains/rm.ts"() {
171294
171333
  "use strict";
171295
- import_chalk82 = __toESM3(require_source());
171334
+ import_chalk83 = __toESM3(require_source());
171296
171335
  import_pluralize9 = __toESM3(require_pluralize());
171297
171336
  init_errors_ts();
171298
171337
  init_delete_cert_by_id();
@@ -171431,15 +171470,15 @@ async function move2(client2, argv) {
171431
171470
  }
171432
171471
  const domain = await getDomainByName(client2, contextName, domainName);
171433
171472
  if (domain instanceof DomainNotFound) {
171434
- output_manager_default.error(`Domain not found under ${import_chalk83.default.bold(contextName)}`);
171473
+ output_manager_default.error(`Domain not found under ${import_chalk84.default.bold(contextName)}`);
171435
171474
  output_manager_default.log(`Run ${getCommandName(`domains ls`)} to see your domains.`);
171436
171475
  return 1;
171437
171476
  }
171438
171477
  if (domain instanceof DomainPermissionDenied) {
171439
171478
  output_manager_default.error(
171440
- `You don't have permissions over domain ${import_chalk83.default.underline(
171479
+ `You don't have permissions over domain ${import_chalk84.default.underline(
171441
171480
  domain.meta.domain
171442
- )} under ${import_chalk83.default.bold(domain.meta.context)}.`
171481
+ )} under ${import_chalk84.default.bold(domain.meta.context)}.`
171443
171482
  );
171444
171483
  return 1;
171445
171484
  }
@@ -171469,7 +171508,7 @@ async function move2(client2, argv) {
171469
171508
  const aliases = await getDomainAliases(client2, domainName);
171470
171509
  if (aliases.length > 0) {
171471
171510
  output_manager_default.warn(
171472
- `This domain's ${import_chalk83.default.bold(
171511
+ `This domain's ${import_chalk84.default.bold(
171473
171512
  (0, import_pluralize10.default)("alias", aliases.length, true)
171474
171513
  )} will be removed. Run ${getCommandName(`alias ls`)} to list them.`
171475
171514
  );
@@ -171510,21 +171549,21 @@ async function move2(client2, argv) {
171510
171549
  return 1;
171511
171550
  }
171512
171551
  if (moveTokenResult instanceof DomainNotFound) {
171513
- output_manager_default.error(`Domain not found under ${import_chalk83.default.bold(contextName)}`);
171552
+ output_manager_default.error(`Domain not found under ${import_chalk84.default.bold(contextName)}`);
171514
171553
  output_manager_default.log(`Run ${getCommandName(`domains ls`)} to see your domains.`);
171515
171554
  return 1;
171516
171555
  }
171517
171556
  if (moveTokenResult instanceof DomainPermissionDenied) {
171518
171557
  output_manager_default.error(
171519
- `You don't have permissions over domain ${import_chalk83.default.underline(
171558
+ `You don't have permissions over domain ${import_chalk84.default.underline(
171520
171559
  moveTokenResult.meta.domain
171521
- )} under ${import_chalk83.default.bold(moveTokenResult.meta.context)}.`
171560
+ )} under ${import_chalk84.default.bold(moveTokenResult.meta.context)}.`
171522
171561
  );
171523
171562
  return 1;
171524
171563
  }
171525
171564
  if (moveTokenResult instanceof InvalidMoveDestination) {
171526
171565
  output_manager_default.error(
171527
- `Destination ${import_chalk83.default.bold(
171566
+ `Destination ${import_chalk84.default.bold(
171528
171567
  destination
171529
171568
  )} is invalid. Please supply a valid username, email, team slug, user id, or team id.`
171530
171569
  );
@@ -171569,11 +171608,11 @@ async function findDestinationMatch(destination, user, teams2) {
171569
171608
  }
171570
171609
  return null;
171571
171610
  }
171572
- var import_chalk83, import_pluralize10;
171611
+ var import_chalk84, import_pluralize10;
171573
171612
  var init_move2 = __esm({
171574
171613
  "src/commands/domains/move.ts"() {
171575
171614
  "use strict";
171576
- import_chalk83 = __toESM3(require_source());
171615
+ import_chalk84 = __toESM3(require_source());
171577
171616
  import_pluralize10 = __toESM3(require_pluralize());
171578
171617
  init_errors_ts();
171579
171618
  init_get_scope();
@@ -172087,20 +172126,20 @@ async function add4(client2, argv) {
172087
172126
  }
172088
172127
  output_manager_default.print(
172089
172128
  `${prependEmoji(
172090
- `${opts["--force"] ? "Overrode" : "Added"} Environment Variable ${import_chalk84.default.bold(envName)} to Project ${import_chalk84.default.bold(
172129
+ `${opts["--force"] ? "Overrode" : "Added"} Environment Variable ${import_chalk85.default.bold(envName)} to Project ${import_chalk85.default.bold(
172091
172130
  project.name
172092
- )} ${import_chalk84.default.gray(addStamp())}`,
172131
+ )} ${import_chalk85.default.gray(addStamp())}`,
172093
172132
  emoji("success")
172094
172133
  )}
172095
172134
  `
172096
172135
  );
172097
172136
  return 0;
172098
172137
  }
172099
- var import_chalk84;
172138
+ var import_chalk85;
172100
172139
  var init_add8 = __esm({
172101
172140
  "src/commands/env/add.ts"() {
172102
172141
  "use strict";
172103
- import_chalk84 = __toESM3(require_source());
172142
+ import_chalk85 = __toESM3(require_source());
172104
172143
  init_stamp();
172105
172144
  init_add_env_record();
172106
172145
  init_get_env_records();
@@ -172135,7 +172174,7 @@ var init_ellipsis = __esm({
172135
172174
  // src/util/target/format-environment.ts
172136
172175
  function formatEnvironment(orgSlug, projectSlug, environment) {
172137
172176
  const projectUrl = `https://vercel.com/${orgSlug}/${projectSlug}`;
172138
- const boldName = import_chalk85.default.bold(
172177
+ const boldName = import_chalk86.default.bold(
172139
172178
  STANDARD_ENVIRONMENTS.includes(environment.slug) ? (0, import_title4.default)(environment.slug) : environment.slug
172140
172179
  );
172141
172180
  return output_manager_default.link(
@@ -172144,11 +172183,11 @@ function formatEnvironment(orgSlug, projectSlug, environment) {
172144
172183
  { fallback: () => boldName, color: false }
172145
172184
  );
172146
172185
  }
172147
- var import_chalk85, import_title4;
172186
+ var import_chalk86, import_title4;
172148
172187
  var init_format_environment = __esm({
172149
172188
  "src/util/target/format-environment.ts"() {
172150
172189
  "use strict";
172151
- import_chalk85 = __toESM3(require_source());
172190
+ import_chalk86 = __toESM3(require_source());
172152
172191
  init_output_manager();
172153
172192
  init_standard_environments();
172154
172193
  import_title4 = __toESM3(require_lib4());
@@ -172258,11 +172297,11 @@ async function ls5(client2, argv) {
172258
172297
  const projectSlugLink = formatProject(org.slug, project.name);
172259
172298
  if (envs.length === 0) {
172260
172299
  output_manager_default.log(
172261
- `No Environment Variables found for ${projectSlugLink} ${import_chalk86.default.gray(lsStamp())}`
172300
+ `No Environment Variables found for ${projectSlugLink} ${import_chalk87.default.gray(lsStamp())}`
172262
172301
  );
172263
172302
  } else {
172264
172303
  output_manager_default.log(
172265
- `Environment Variables found for ${projectSlugLink} ${import_chalk86.default.gray(lsStamp())}`
172304
+ `Environment Variables found for ${projectSlugLink} ${import_chalk87.default.gray(lsStamp())}`
172266
172305
  );
172267
172306
  client2.stdout.write(`${getTable(link4, envs, customEnvs)}
172268
172307
  `);
@@ -172286,25 +172325,25 @@ function getRow(link4, env, customEnvironments) {
172286
172325
  let value;
172287
172326
  if (env.type === "plain") {
172288
172327
  const singleLineValue = env.value.replace(/\s/g, " ");
172289
- value = import_chalk86.default.gray(ellipsis(singleLineValue, 19));
172328
+ value = import_chalk87.default.gray(ellipsis(singleLineValue, 19));
172290
172329
  } else if (env.type === "system") {
172291
- value = import_chalk86.default.gray.italic(env.value);
172330
+ value = import_chalk87.default.gray.italic(env.value);
172292
172331
  } else {
172293
- value = import_chalk86.default.gray.italic("Encrypted");
172332
+ value = import_chalk87.default.gray.italic("Encrypted");
172294
172333
  }
172295
172334
  const now = Date.now();
172296
172335
  return [
172297
- import_chalk86.default.bold(env.key),
172336
+ import_chalk87.default.bold(env.key),
172298
172337
  value,
172299
172338
  formatEnvironments(link4, env, customEnvironments),
172300
172339
  env.createdAt ? `${(0, import_ms19.default)(now - env.createdAt)} ago` : ""
172301
172340
  ];
172302
172341
  }
172303
- var import_chalk86, import_ms19;
172342
+ var import_chalk87, import_ms19;
172304
172343
  var init_ls9 = __esm({
172305
172344
  "src/commands/env/ls.ts"() {
172306
172345
  "use strict";
172307
- import_chalk86 = __toESM3(require_source());
172346
+ import_chalk87 = __toESM3(require_source());
172308
172347
  import_ms19 = __toESM3(require_ms());
172309
172348
  init_format_table();
172310
172349
  init_get_env_records();
@@ -172464,7 +172503,7 @@ async function rm5(client2, argv) {
172464
172503
  link4,
172465
172504
  env,
172466
172505
  customEnvironments
172467
- )} in Project ${import_chalk87.default.bold(project.name)}. Are you sure?`,
172506
+ )} in Project ${import_chalk88.default.bold(project.name)}. Are you sure?`,
172468
172507
  false
172469
172508
  )) {
172470
172509
  output_manager_default.log("Canceled");
@@ -172483,18 +172522,18 @@ async function rm5(client2, argv) {
172483
172522
  }
172484
172523
  output_manager_default.print(
172485
172524
  `${prependEmoji(
172486
- `Removed Environment Variable ${import_chalk87.default.gray(rmStamp())}`,
172525
+ `Removed Environment Variable ${import_chalk88.default.gray(rmStamp())}`,
172487
172526
  emoji("success")
172488
172527
  )}
172489
172528
  `
172490
172529
  );
172491
172530
  return 0;
172492
172531
  }
172493
- var import_chalk87;
172532
+ var import_chalk88;
172494
172533
  var init_rm8 = __esm({
172495
172534
  "src/commands/env/rm.ts"() {
172496
172535
  "use strict";
172497
- import_chalk87 = __toESM3(require_source());
172536
+ import_chalk88 = __toESM3(require_source());
172498
172537
  init_remove_env_record();
172499
172538
  init_get_env_records();
172500
172539
  init_format_environments();
@@ -172709,7 +172748,7 @@ async function connect(client2, argv) {
172709
172748
  const confirm = Boolean(opts["--yes"]);
172710
172749
  if (args2.length > 1) {
172711
172750
  output_manager_default.error(
172712
- `Invalid number of arguments. Usage: ${import_chalk88.default.cyan(
172751
+ `Invalid number of arguments. Usage: ${import_chalk89.default.cyan(
172713
172752
  `${getCommandName("project connect")}`
172714
172753
  )}`
172715
172754
  );
@@ -172756,7 +172795,7 @@ async function connect(client2, argv) {
172756
172795
  }
172757
172796
  if (!gitConfig) {
172758
172797
  output_manager_default.error(
172759
- `No local Git repository found. Run ${import_chalk88.default.cyan(
172798
+ `No local Git repository found. Run ${import_chalk89.default.cyan(
172760
172799
  "`git clone <url>`"
172761
172800
  )} to clone a remote Git repository first.`
172762
172801
  );
@@ -172765,7 +172804,7 @@ async function connect(client2, argv) {
172765
172804
  const remoteUrls = pluckRemoteUrls(gitConfig);
172766
172805
  if (!remoteUrls) {
172767
172806
  output_manager_default.error(
172768
- `No remote URLs found in your Git config. Make sure you've configured a remote repo in your local Git config. Run ${import_chalk88.default.cyan(
172807
+ `No remote URLs found in your Git config. Make sure you've configured a remote repo in your local Git config. Run ${import_chalk89.default.cyan(
172769
172808
  "`git remote --help`"
172770
172809
  )} for more details.`
172771
172810
  );
@@ -172809,7 +172848,7 @@ async function connect(client2, argv) {
172809
172848
  return checkAndConnect;
172810
172849
  }
172811
172850
  output_manager_default.log(
172812
- `Connected ${formatProvider(provider)} repository ${import_chalk88.default.cyan(repoPath)}!`
172851
+ `Connected ${formatProvider(provider)} repository ${import_chalk89.default.cyan(repoPath)}!`
172813
172852
  );
172814
172853
  return 0;
172815
172854
  }
@@ -172846,7 +172885,7 @@ async function connectArg({
172846
172885
  return connect2;
172847
172886
  }
172848
172887
  output_manager_default.log(
172849
- `Connected ${formatProvider(provider)} repository ${import_chalk88.default.cyan(repoPath)}!`
172888
+ `Connected ${formatProvider(provider)} repository ${import_chalk89.default.cyan(repoPath)}!`
172850
172889
  );
172851
172890
  return 0;
172852
172891
  }
@@ -172888,7 +172927,7 @@ async function connectArgWithLocalGit({
172888
172927
  return connect2;
172889
172928
  }
172890
172929
  output_manager_default.log(
172891
- `Connected ${formatProvider(provider)} repository ${import_chalk88.default.cyan(
172930
+ `Connected ${formatProvider(provider)} repository ${import_chalk89.default.cyan(
172892
172931
  repoPath
172893
172932
  )}!`
172894
172933
  );
@@ -172919,7 +172958,7 @@ async function promptConnectArg({
172919
172958
  return true;
172920
172959
  }
172921
172960
  output_manager_default.log(
172922
- `Found a repository in your local Git Config: ${import_chalk88.default.cyan(
172961
+ `Found a repository in your local Git Config: ${import_chalk89.default.cyan(
172923
172962
  Object.values(remoteUrls)[0]
172924
172963
  )}`
172925
172964
  );
@@ -172966,7 +173005,7 @@ async function checkExistsAndConnect({
172966
173005
  const isSameRepo = connectedProvider === provider && connectedOrg === gitOrg && connectedRepo === repo;
172967
173006
  if (isSameRepo) {
172968
173007
  output_manager_default.log(
172969
- `${import_chalk88.default.cyan(connectedRepoPath)} is already connected to your project.`
173008
+ `${import_chalk89.default.cyan(connectedRepoPath)} is already connected to your project.`
172970
173009
  );
172971
173010
  return 1;
172972
173011
  }
@@ -172997,7 +173036,7 @@ async function confirmRepoConnect(client2, yes, connectedProvider, connectedRepo
172997
173036
  shouldReplaceProject = await client2.input.confirm(
172998
173037
  `Looks like you already have a ${formatProvider(
172999
173038
  connectedProvider
173000
- )} repository connected: ${import_chalk88.default.cyan(
173039
+ )} repository connected: ${import_chalk89.default.cyan(
173001
173040
  connectedRepoPath
173002
173041
  )}. Do you want to replace it?`,
173003
173042
  true
@@ -173012,7 +173051,7 @@ async function selectRemoteUrl(client2, remoteUrls) {
173012
173051
  const choices = [];
173013
173052
  for (const [urlKey, urlValue] of Object.entries(remoteUrls)) {
173014
173053
  choices.push({
173015
- name: `${urlValue} ${import_chalk88.default.gray(`(${urlKey})`)}`,
173054
+ name: `${urlValue} ${import_chalk89.default.gray(`(${urlKey})`)}`,
173016
173055
  value: urlValue,
173017
173056
  short: urlKey
173018
173057
  });
@@ -173022,11 +173061,11 @@ async function selectRemoteUrl(client2, remoteUrls) {
173022
173061
  choices
173023
173062
  });
173024
173063
  }
173025
- var import_chalk88, import_path39;
173064
+ var import_chalk89, import_path39;
173026
173065
  var init_connect2 = __esm({
173027
173066
  "src/commands/git/connect.ts"() {
173028
173067
  "use strict";
173029
- import_chalk88 = __toESM3(require_source());
173068
+ import_chalk89 = __toESM3(require_source());
173030
173069
  import_path39 = require("path");
173031
173070
  init_create_git_meta();
173032
173071
  init_list();
@@ -173090,7 +173129,7 @@ async function disconnect(client2, argv) {
173090
173129
  }
173091
173130
  if (args2.length !== 0) {
173092
173131
  output_manager_default.error(
173093
- `Invalid number of arguments. Usage: ${import_chalk89.default.cyan(
173132
+ `Invalid number of arguments. Usage: ${import_chalk90.default.cyan(
173094
173133
  `${getCommandName("project disconnect")}`
173095
173134
  )}`
173096
173135
  );
@@ -173112,14 +173151,14 @@ async function disconnect(client2, argv) {
173112
173151
  `
173113
173152
  );
173114
173153
  const confirmDisconnect = autoConfirm || await client2.input.confirm(
173115
- `Are you sure you want to disconnect ${import_chalk89.default.cyan(
173154
+ `Are you sure you want to disconnect ${import_chalk90.default.cyan(
173116
173155
  `${linkOrg}/${repo}`
173117
173156
  )} from your project?`,
173118
173157
  false
173119
173158
  );
173120
173159
  if (confirmDisconnect) {
173121
173160
  await disconnectGitProvider(client2, org, project.id);
173122
- output_manager_default.log(`Disconnected ${import_chalk89.default.cyan(`${linkOrg}/${repo}`)}.`);
173161
+ output_manager_default.log(`Disconnected ${import_chalk90.default.cyan(`${linkOrg}/${repo}`)}.`);
173123
173162
  } else {
173124
173163
  output_manager_default.log("Canceled");
173125
173164
  }
@@ -173133,11 +173172,11 @@ async function disconnect(client2, argv) {
173133
173172
  }
173134
173173
  return 0;
173135
173174
  }
173136
- var import_chalk89;
173175
+ var import_chalk90;
173137
173176
  var init_disconnect2 = __esm({
173138
173177
  "src/commands/git/disconnect.ts"() {
173139
173178
  "use strict";
173140
- import_chalk89 = __toESM3(require_source());
173179
+ import_chalk90 = __toESM3(require_source());
173141
173180
  init_pkg_name();
173142
173181
  init_connect_git_provider();
173143
173182
  init_output_manager();
@@ -173238,25 +173277,6 @@ var init_git2 = __esm({
173238
173277
  }
173239
173278
  });
173240
173279
 
173241
- // src/util/output/list-item.ts
173242
- var import_chalk90, listItem, list_item_default;
173243
- var init_list_item = __esm({
173244
- "src/util/output/list-item.ts"() {
173245
- "use strict";
173246
- import_chalk90 = __toESM3(require_source());
173247
- listItem = (msg, n) => {
173248
- if (!n) {
173249
- n = "-";
173250
- }
173251
- if (Number(n)) {
173252
- n += ".";
173253
- }
173254
- return `${(0, import_chalk90.default)(n.toString())} ${msg}`;
173255
- };
173256
- list_item_default = listItem;
173257
- }
173258
- });
173259
-
173260
173280
  // ../../node_modules/.pnpm/jaro-winkler@0.2.8/node_modules/jaro-winkler/index.js
173261
173281
  var require_jaro_winkler = __commonJS2({
173262
173282
  "../../node_modules/.pnpm/jaro-winkler@0.2.8/node_modules/jaro-winkler/index.js"(exports2, module2) {