vercel 43.2.0 → 44.0.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 +805 -548
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -31901,9 +31901,16 @@ var init_command5 = __esm({
31901
31901
  name: "logs",
31902
31902
  shorthand: "l",
31903
31903
  type: Boolean,
31904
- deprecated: false,
31904
+ deprecated: true,
31905
31905
  description: "Print the build logs"
31906
31906
  },
31907
+ {
31908
+ name: "no-logs",
31909
+ shorthand: null,
31910
+ type: Boolean,
31911
+ deprecated: false,
31912
+ description: "Do not print the build logs"
31913
+ },
31907
31914
  {
31908
31915
  name: "name",
31909
31916
  shorthand: "n",
@@ -34341,7 +34348,16 @@ var init_command32 = __esm({
34341
34348
  copySubcommand,
34342
34349
  storeSubcommand
34343
34350
  ],
34344
- options: [],
34351
+ options: [
34352
+ {
34353
+ name: "rw-token",
34354
+ shorthand: null,
34355
+ type: String,
34356
+ deprecated: false,
34357
+ description: "Read_Write_Token for the Blob store",
34358
+ argument: "String"
34359
+ }
34360
+ ],
34345
34361
  examples: []
34346
34362
  };
34347
34363
  }
@@ -46696,7 +46712,7 @@ var require_package = __commonJS2({
46696
46712
  "../client/package.json"(exports2, module2) {
46697
46713
  module2.exports = {
46698
46714
  name: "@vercel/client",
46699
- version: "15.3.5",
46715
+ version: "15.3.6",
46700
46716
  main: "dist/index.js",
46701
46717
  typings: "dist/index.d.ts",
46702
46718
  homepage: "https://vercel.com",
@@ -46738,7 +46754,7 @@ var require_package = __commonJS2({
46738
46754
  "@vercel/build-utils": "10.6.1",
46739
46755
  "@vercel/error-utils": "2.0.3",
46740
46756
  "@vercel/microfrontends": "1.2.2",
46741
- "@vercel/routing-utils": "5.0.7",
46757
+ "@vercel/routing-utils": "5.0.8",
46742
46758
  "async-retry": "1.2.3",
46743
46759
  "async-sema": "3.0.0",
46744
46760
  "fs-extra": "8.0.1",
@@ -100419,127 +100435,6 @@ var init_get_invalid_subcommand = __esm({
100419
100435
  }
100420
100436
  });
100421
100437
 
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
100438
  // src/util/telemetry/commands/blob/list.ts
100544
100439
  var BlobListTelemetryClient;
100545
100440
  var init_list3 = __esm({
@@ -100587,7 +100482,7 @@ var init_list3 = __esm({
100587
100482
  function isMode(mode) {
100588
100483
  return mode === "folded" || mode === "expanded";
100589
100484
  }
100590
- async function list3(client2, argv) {
100485
+ async function list3(client2, argv, rwToken) {
100591
100486
  const telemetryClient = new BlobListTelemetryClient({
100592
100487
  opts: {
100593
100488
  store: client2.telemetryEventStore
@@ -100612,11 +100507,6 @@ async function list3(client2, argv) {
100612
100507
  telemetryClient.trackCliOptionCursor(cursor);
100613
100508
  telemetryClient.trackCliOptionPrefix(prefix);
100614
100509
  telemetryClient.trackCliOptionMode(modeFlag);
100615
- const token = await getBlobRWToken(client2);
100616
- if (!token.success) {
100617
- printError(token.error);
100618
- return 1;
100619
- }
100620
100510
  const mode = modeFlag ?? "expanded";
100621
100511
  if (!isMode(mode)) {
100622
100512
  output_manager_default.error(
@@ -100629,7 +100519,7 @@ async function list3(client2, argv) {
100629
100519
  output_manager_default.debug("Fetching blobs");
100630
100520
  output_manager_default.spinner("Fetching blobs");
100631
100521
  list9 = await blob.list({
100632
- token: token.token,
100522
+ token: rwToken,
100633
100523
  limit: limit ?? 10,
100634
100524
  cursor,
100635
100525
  mode,
@@ -100644,7 +100534,7 @@ async function list3(client2, argv) {
100644
100534
  const urls = [];
100645
100535
  const tablePrint = table(
100646
100536
  [
100647
- headers.map((header) => import_chalk35.default.dim(header)),
100537
+ headers.map((header) => import_chalk34.default.dim(header)),
100648
100538
  ...list9.blobs.map((blob5) => {
100649
100539
  urls.push(blob5.url);
100650
100540
  const uploadedAt = (0, import_ms7.default)(Date.now() - new Date(blob5.uploadedAt).getTime());
@@ -100671,21 +100561,20 @@ ${tablePrint}
100671
100561
  }
100672
100562
  return 0;
100673
100563
  }
100674
- var blob, import_chalk35, import_ms7;
100564
+ var blob, import_chalk34, import_ms7;
100675
100565
  var init_list4 = __esm({
100676
100566
  "src/commands/blob/list.ts"() {
100677
100567
  "use strict";
100678
100568
  init_output_manager();
100679
100569
  blob = __toESM3(require("@vercel/blob"));
100680
100570
  init_table();
100681
- import_chalk35 = __toESM3(require_source());
100571
+ import_chalk34 = __toESM3(require_source());
100682
100572
  import_ms7 = __toESM3(require_ms());
100683
100573
  init_get_command_flags();
100684
100574
  init_get_args();
100685
100575
  init_get_flags_specification();
100686
100576
  init_command32();
100687
100577
  init_pkg_name();
100688
- init_token();
100689
100578
  init_list3();
100690
100579
  init_error2();
100691
100580
  }
@@ -100728,6 +100617,12 @@ var init_blob = __esm({
100728
100617
  value: actual
100729
100618
  });
100730
100619
  }
100620
+ trackCliOptionRwToken() {
100621
+ this.trackCliOption({
100622
+ option: "--rw-token",
100623
+ value: this.redactedValue
100624
+ });
100625
+ }
100731
100626
  };
100732
100627
  }
100733
100628
  });
@@ -100791,7 +100686,7 @@ var init_put = __esm({
100791
100686
  });
100792
100687
 
100793
100688
  // src/commands/blob/put.ts
100794
- async function put2(client2, argv) {
100689
+ async function put2(client2, argv, rwToken) {
100795
100690
  const telemetryClient = new BlobPutTelemetryClient({
100796
100691
  opts: {
100797
100692
  store: client2.telemetryEventStore
@@ -100830,11 +100725,6 @@ async function put2(client2, argv) {
100830
100725
  telemetryClient.trackCliOptionContentType(contentType2);
100831
100726
  telemetryClient.trackCliOptionCacheControlMaxAge(cacheControlMaxAge);
100832
100727
  telemetryClient.trackCliFlagForce(force);
100833
- const token = await getBlobRWToken(client2);
100834
- if (!token.success) {
100835
- printError(token.error);
100836
- return 1;
100837
- }
100838
100728
  let putBody;
100839
100729
  let pathname;
100840
100730
  try {
@@ -100842,7 +100732,7 @@ async function put2(client2, argv) {
100842
100732
  const isFile2 = stats.isFile();
100843
100733
  if (isFile2) {
100844
100734
  putBody = (0, import_node_fs.readFileSync)(filePath);
100845
- pathname = pathnameFlag ?? (0, import_node_path2.basename)(filePath);
100735
+ pathname = pathnameFlag ?? (0, import_node_path.basename)(filePath);
100846
100736
  } else {
100847
100737
  output_manager_default.error("Path to upload is not a file");
100848
100738
  return 1;
@@ -100858,7 +100748,7 @@ async function put2(client2, argv) {
100858
100748
  }
100859
100749
  if (!pathname || !putBody) {
100860
100750
  output_manager_default.error(
100861
- `Missing pathname or file. Usage: ${import_chalk36.default.cyan(
100751
+ `Missing pathname or file. Usage: ${import_chalk35.default.cyan(
100862
100752
  `${getCommandName("blob put <file> [--pathname <pathname>]")}`
100863
100753
  )}`
100864
100754
  );
@@ -100869,7 +100759,7 @@ async function put2(client2, argv) {
100869
100759
  output_manager_default.debug("Uploading blob");
100870
100760
  output_manager_default.spinner("Uploading blob");
100871
100761
  result = await blob2.put(pathname, putBody, {
100872
- token: token.token,
100762
+ token: rwToken,
100873
100763
  access: "public",
100874
100764
  addRandomSuffix: addRandomSuffix ?? false,
100875
100765
  multipart: multipart ?? true,
@@ -100885,7 +100775,7 @@ async function put2(client2, argv) {
100885
100775
  output_manager_default.success(result.url);
100886
100776
  return 0;
100887
100777
  }
100888
- var blob2, import_node_fs, import_error_utils12, import_node_path2, import_chalk36;
100778
+ var blob2, import_node_fs, import_error_utils12, import_node_path, import_chalk35;
100889
100779
  var init_put2 = __esm({
100890
100780
  "src/commands/blob/put.ts"() {
100891
100781
  "use strict";
@@ -100894,12 +100784,11 @@ var init_put2 = __esm({
100894
100784
  init_get_args();
100895
100785
  init_get_flags_specification();
100896
100786
  init_command32();
100897
- init_token();
100898
100787
  import_node_fs = require("fs");
100899
100788
  import_error_utils12 = __toESM3(require_dist2());
100900
- import_node_path2 = require("path");
100789
+ import_node_path = require("path");
100901
100790
  init_pkg_name();
100902
- import_chalk36 = __toESM3(require_source());
100791
+ import_chalk35 = __toESM3(require_source());
100903
100792
  init_put();
100904
100793
  init_error2();
100905
100794
  }
@@ -100925,7 +100814,7 @@ var init_del = __esm({
100925
100814
  });
100926
100815
 
100927
100816
  // src/commands/blob/del.ts
100928
- async function del2(client2, argv) {
100817
+ async function del2(client2, argv, rwToken) {
100929
100818
  const telemetryClient = new BlobDelTelemetryClient({
100930
100819
  opts: {
100931
100820
  store: client2.telemetryEventStore
@@ -100947,15 +100836,10 @@ async function del2(client2, argv) {
100947
100836
  }
100948
100837
  const { args: args2 } = parsedArgs;
100949
100838
  telemetryClient.trackCliArgumentUrlsOrPathnames(args2[0]);
100950
- const token = await getBlobRWToken(client2);
100951
- if (!token.success) {
100952
- printError(token.error);
100953
- return 1;
100954
- }
100955
100839
  try {
100956
100840
  output_manager_default.debug("Deleting blob");
100957
100841
  output_manager_default.spinner("Deleting blob");
100958
- await blob3.del(args2, { token: token.token });
100842
+ await blob3.del(args2, { token: rwToken });
100959
100843
  } catch (err) {
100960
100844
  output_manager_default.error(`Error deleting blob: ${err}`);
100961
100845
  return 1;
@@ -100973,7 +100857,6 @@ var init_del2 = __esm({
100973
100857
  init_get_args();
100974
100858
  init_get_flags_specification();
100975
100859
  init_command32();
100976
- init_token();
100977
100860
  init_del();
100978
100861
  init_error2();
100979
100862
  init_pkg_name();
@@ -101029,7 +100912,7 @@ var init_copy = __esm({
101029
100912
  });
101030
100913
 
101031
100914
  // src/commands/blob/copy.ts
101032
- async function copy2(client2, argv) {
100915
+ async function copy2(client2, argv, rwToken) {
101033
100916
  const telemetryClient = new BlobCopyTelemetryClient({
101034
100917
  opts: {
101035
100918
  store: client2.telemetryEventStore
@@ -101043,7 +100926,7 @@ async function copy2(client2, argv) {
101043
100926
  printError(err);
101044
100927
  return 1;
101045
100928
  }
101046
- if (!parsedArgs.args.length) {
100929
+ if (!parsedArgs.args || parsedArgs.args.length < 2) {
101047
100930
  printError(
101048
100931
  `Missing required arguments: ${getCommandName(
101049
100932
  "blob copy fromUrlOrPathname toPathname"
@@ -101064,17 +100947,12 @@ async function copy2(client2, argv) {
101064
100947
  telemetryClient.trackCliFlagAddRandomSuffix(addRandomSuffix);
101065
100948
  telemetryClient.trackCliOptionContentType(contentType2);
101066
100949
  telemetryClient.trackCliOptionCacheControlMaxAge(cacheControlMaxAge);
101067
- const token = await getBlobRWToken(client2);
101068
- if (!token.success) {
101069
- printError(token.error);
101070
- return 1;
101071
- }
101072
100950
  let result;
101073
100951
  try {
101074
100952
  output_manager_default.debug("Copying blob");
101075
100953
  output_manager_default.spinner("Copying blob");
101076
100954
  result = await blob4.copy(fromUrl, toPathname, {
101077
- token: token.token,
100955
+ token: rwToken,
101078
100956
  access: "public",
101079
100957
  addRandomSuffix: addRandomSuffix ?? false,
101080
100958
  contentType: contentType2,
@@ -101098,7 +100976,6 @@ var init_copy2 = __esm({
101098
100976
  init_get_args();
101099
100977
  init_get_flags_specification();
101100
100978
  init_command32();
101101
- init_token();
101102
100979
  init_copy();
101103
100980
  init_pkg_name();
101104
100981
  }
@@ -108961,7 +108838,7 @@ function isDirty(directory) {
108961
108838
  }
108962
108839
  async function parseGitConfig(configPath) {
108963
108840
  try {
108964
- return import_ini.default.parse(await import_fs_extra5.default.readFile(configPath, "utf-8"));
108841
+ return import_ini.default.parse(await import_fs_extra4.default.readFile(configPath, "utf-8"));
108965
108842
  } catch (err) {
108966
108843
  output_manager_default.debug(`Error while parsing repo data: ${(0, import_error_utils13.errorToString)(err)}`);
108967
108844
  }
@@ -109004,11 +108881,11 @@ async function getOriginUrl(configPath) {
109004
108881
  }
109005
108882
  return null;
109006
108883
  }
109007
- var import_fs_extra5, import_path11, import_ini, import_git_last_commit, import_child_process2, import_error_utils13;
108884
+ var import_fs_extra4, import_path11, import_ini, import_git_last_commit, import_child_process2, import_error_utils13;
109008
108885
  var init_create_git_meta = __esm({
109009
108886
  "src/util/create-git-meta.ts"() {
109010
108887
  "use strict";
109011
- import_fs_extra5 = __toESM3(require_lib());
108888
+ import_fs_extra4 = __toESM3(require_lib());
109012
108889
  import_path11 = require("path");
109013
108890
  import_ini = __toESM3(require_ini());
109014
108891
  import_git_last_commit = __toESM3(require_source3());
@@ -109071,7 +108948,7 @@ async function addToGitIgnore(path11, ignore = VERCEL_DIR2) {
109071
108948
  let isGitIgnoreUpdated = false;
109072
108949
  try {
109073
108950
  const gitIgnorePath = (0, import_path12.join)(path11, ".gitignore");
109074
- let gitIgnore = await (0, import_fs_extra6.readFile)(gitIgnorePath, "utf8").catch(() => null) ?? "";
108951
+ let gitIgnore = await (0, import_fs_extra5.readFile)(gitIgnorePath, "utf8").catch(() => null) ?? "";
109075
108952
  const EOL = gitIgnore.includes("\r\n") ? "\r\n" : import_os6.default.EOL;
109076
108953
  let contentModified = false;
109077
108954
  if (!gitIgnore.split(EOL).includes(ignore)) {
@@ -109079,20 +108956,20 @@ async function addToGitIgnore(path11, ignore = VERCEL_DIR2) {
109079
108956
  contentModified = true;
109080
108957
  }
109081
108958
  if (contentModified) {
109082
- await (0, import_fs_extra6.writeFile)(gitIgnorePath, gitIgnore);
108959
+ await (0, import_fs_extra5.writeFile)(gitIgnorePath, gitIgnore);
109083
108960
  isGitIgnoreUpdated = true;
109084
108961
  }
109085
108962
  } catch (error3) {
109086
108963
  }
109087
108964
  return isGitIgnoreUpdated;
109088
108965
  }
109089
- var import_os6, import_path12, import_fs_extra6;
108966
+ var import_os6, import_path12, import_fs_extra5;
109090
108967
  var init_add_to_gitignore = __esm({
109091
108968
  "src/util/link/add-to-gitignore.ts"() {
109092
108969
  "use strict";
109093
108970
  import_os6 = __toESM3(require("os"));
109094
108971
  import_path12 = require("path");
109095
- import_fs_extra6 = __toESM3(require_lib());
108972
+ import_fs_extra5 = __toESM3(require_lib());
109096
108973
  init_link2();
109097
108974
  }
109098
108975
  });
@@ -115568,6 +115445,7 @@ var require_frameworks = __commonJS2({
115568
115445
  website: "https://nuxtjs.org",
115569
115446
  sort: 2,
115570
115447
  envPrefix: "NUXT_ENV_",
115448
+ supersedes: ["nitro"],
115571
115449
  detectors: {
115572
115450
  some: [
115573
115451
  {
@@ -116228,6 +116106,35 @@ var require_frameworks = __commonJS2({
116228
116106
  },
116229
116107
  getOutputDirName: async () => "storybook-static"
116230
116108
  },
116109
+ {
116110
+ name: "Nitro",
116111
+ slug: "nitro",
116112
+ logo: "https://api-frameworks.vercel.sh/framework-logos/nitro.svg",
116113
+ demo: "https://nitro-template.vercel.app",
116114
+ tagline: "Nitro is a next generation server toolkit.",
116115
+ description: "Nitro lets you create web servers that run on multiple platforms.",
116116
+ website: "https://nitro.build/",
116117
+ detectors: {
116118
+ every: [{ matchPackage: "nitropack" }]
116119
+ },
116120
+ settings: {
116121
+ installCommand: {
116122
+ placeholder: "`yarn install`, `pnpm install`, `npm install`, or `bun install`"
116123
+ },
116124
+ buildCommand: {
116125
+ placeholder: "`npm run build` or `nitro build`",
116126
+ value: "nitro build"
116127
+ },
116128
+ devCommand: {
116129
+ value: "nitro dev"
116130
+ },
116131
+ outputDirectory: {
116132
+ value: "dist"
116133
+ }
116134
+ },
116135
+ dependency: "nitropack",
116136
+ getOutputDirName: () => Promise
116137
+ },
116231
116138
  {
116232
116139
  name: "Other",
116233
116140
  slug: null,
@@ -126109,13 +126016,13 @@ async function connectGitProvider(client2, projectId, type, repo) {
126109
126016
  const apiError = isAPIError(err);
126110
126017
  if (apiError && (err.action === "Install GitHub App" || err.code === "repo_not_found")) {
126111
126018
  output_manager_default.error(
126112
- `Failed to connect ${import_chalk37.default.cyan(
126019
+ `Failed to connect ${import_chalk36.default.cyan(
126113
126020
  repo
126114
126021
  )} to project. Make sure there aren't any typos and that you have access to the repository if it's private.`
126115
126022
  );
126116
126023
  } else if (apiError && err.action === "Add a Login Connection") {
126117
126024
  output_manager_default.error(
126118
- err.message.replace(repo, import_chalk37.default.cyan(repo)) + `
126025
+ err.message.replace(repo, import_chalk36.default.cyan(repo)) + `
126119
126026
  Visit ${link_default(err.link)} for more information.`
126120
126027
  );
126121
126028
  } else {
@@ -126174,16 +126081,16 @@ function parseRepoUrl(originUrl) {
126174
126081
  }
126175
126082
  function printRemoteUrls(remoteUrls) {
126176
126083
  for (const [name, url3] of Object.entries(remoteUrls)) {
126177
- output_manager_default.print(` \u2022 ${name}: ${import_chalk37.default.cyan(url3)}
126084
+ output_manager_default.print(` \u2022 ${name}: ${import_chalk36.default.cyan(url3)}
126178
126085
  `);
126179
126086
  }
126180
126087
  }
126181
- var import_url10, import_chalk37;
126088
+ var import_url10, import_chalk36;
126182
126089
  var init_connect_git_provider = __esm({
126183
126090
  "src/util/git/connect-git-provider.ts"() {
126184
126091
  "use strict";
126185
126092
  import_url10 = require("url");
126186
- import_chalk37 = __toESM3(require_source());
126093
+ import_chalk36 = __toESM3(require_source());
126187
126094
  init_link();
126188
126095
  init_errors_ts();
126189
126096
  init_output_manager();
@@ -126233,7 +126140,7 @@ async function getRepoLink(client2, cwd) {
126233
126140
  if (!rootPath)
126234
126141
  return void 0;
126235
126142
  const repoConfigPath = (0, import_path14.join)(rootPath, VERCEL_DIR2, VERCEL_DIR_REPO);
126236
- const repoConfig = await (0, import_fs_extra7.readJSON)(repoConfigPath).catch(
126143
+ const repoConfig = await (0, import_fs_extra6.readJSON)(repoConfigPath).catch(
126237
126144
  (err) => {
126238
126145
  if (err.code !== "ENOENT")
126239
126146
  throw err;
@@ -126255,7 +126162,7 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
126255
126162
  return /* @__PURE__ */ new Map();
126256
126163
  });
126257
126164
  const shouldLink = yes || await client2.input.confirm(
126258
- `Link Git repository at ${import_chalk38.default.cyan(
126165
+ `Link Git repository at ${import_chalk37.default.cyan(
126259
126166
  `\u201C${humanizePath(rootPath)}\u201D`
126260
126167
  )} to your Project(s)?`,
126261
126168
  true
@@ -126302,7 +126209,7 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
126302
126209
  fallback: () => link_default(repoUrl)
126303
126210
  });
126304
126211
  output_manager_default.spinner(
126305
- `Fetching Projects for ${repoUrlLink} under ${import_chalk38.default.bold(org.slug)}\u2026`
126212
+ `Fetching Projects for ${repoUrlLink} under ${import_chalk37.default.bold(org.slug)}\u2026`
126306
126213
  );
126307
126214
  let projects = [];
126308
126215
  const query = new URLSearchParams({ repoUrl });
@@ -126311,12 +126218,12 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
126311
126218
  for await (const chunk of projectsIterator) {
126312
126219
  projects = projects.concat(chunk.projects);
126313
126220
  if (chunk.pagination.next) {
126314
- output_manager_default.spinner(`Found ${import_chalk38.default.bold(projects.length)} Projects\u2026`, 0);
126221
+ output_manager_default.spinner(`Found ${import_chalk37.default.bold(projects.length)} Projects\u2026`, 0);
126315
126222
  }
126316
126223
  }
126317
126224
  if (projects.length === 0) {
126318
126225
  output_manager_default.log(
126319
- `No Projects are linked to ${repoUrlLink} under ${import_chalk38.default.bold(
126226
+ `No Projects are linked to ${repoUrlLink} under ${import_chalk37.default.bold(
126320
126227
  org.slug
126321
126228
  )}.`
126322
126229
  );
@@ -126326,7 +126233,7 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
126326
126233
  "Project",
126327
126234
  projects.length,
126328
126235
  true
126329
- )} linked to ${repoUrlLink} under ${import_chalk38.default.bold(org.slug)}`
126236
+ )} linked to ${repoUrlLink} under ${import_chalk37.default.bold(org.slug)}`
126330
126237
  );
126331
126238
  }
126332
126239
  for (const project of projects) {
@@ -126433,7 +126340,7 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
126433
126340
  };
126434
126341
  })
126435
126342
  };
126436
- await (0, import_fs_extra7.outputJSON)(repoConfigPath, repoConfig, { spaces: 2 });
126343
+ await (0, import_fs_extra6.outputJSON)(repoConfigPath, repoConfig, { spaces: 2 });
126437
126344
  await writeReadme(rootPath);
126438
126345
  const isGitIgnoreUpdated = await addToGitIgnore(rootPath);
126439
126346
  output_manager_default.print(
@@ -126442,7 +126349,7 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
126442
126349
  "Project",
126443
126350
  selected.length,
126444
126351
  true
126445
- )} under ${import_chalk38.default.bold(org.slug)} (created ${VERCEL_DIR2}${isGitIgnoreUpdated ? " and added it to .gitignore" : ""})`,
126352
+ )} under ${import_chalk37.default.bold(org.slug)} (created ${VERCEL_DIR2}${isGitIgnoreUpdated ? " and added it to .gitignore" : ""})`,
126446
126353
  emoji("link")
126447
126354
  ) + "\n"
126448
126355
  );
@@ -126463,7 +126370,7 @@ async function findRepoRoot(client2, start) {
126463
126370
  break;
126464
126371
  }
126465
126372
  const repoConfigPath = (0, import_path14.join)(current, REPO_JSON_PATH);
126466
- let stat2 = await (0, import_fs_extra7.lstat)(repoConfigPath).catch((err) => {
126373
+ let stat2 = await (0, import_fs_extra6.lstat)(repoConfigPath).catch((err) => {
126467
126374
  if (err.code !== "ENOENT")
126468
126375
  throw err;
126469
126376
  });
@@ -126472,7 +126379,7 @@ async function findRepoRoot(client2, start) {
126472
126379
  return current;
126473
126380
  }
126474
126381
  const gitConfigPath = (0, import_path14.join)(current, GIT_PATH);
126475
- stat2 = await (0, import_fs_extra7.lstat)(gitConfigPath).catch((err) => {
126382
+ stat2 = await (0, import_fs_extra6.lstat)(gitConfigPath).catch((err) => {
126476
126383
  if (err.code !== "ENOENT")
126477
126384
  throw err;
126478
126385
  });
@@ -126499,18 +126406,18 @@ function findProjectsFromPath(projects, path11) {
126499
126406
  const firstMatch = matches[0];
126500
126407
  return matches.filter((match) => match.directory === firstMatch.directory);
126501
126408
  }
126502
- var import_chalk38, import_pluralize3, import_os7, import_slugify, import_path14, import_build_utils5, import_fs_extra7, home;
126409
+ var import_chalk37, import_pluralize3, import_os7, import_slugify, import_path14, import_build_utils5, import_fs_extra6, home;
126503
126410
  var init_repo = __esm({
126504
126411
  "src/util/link/repo.ts"() {
126505
126412
  "use strict";
126506
- import_chalk38 = __toESM3(require_source());
126413
+ import_chalk37 = __toESM3(require_source());
126507
126414
  init_esm4();
126508
126415
  import_pluralize3 = __toESM3(require_pluralize());
126509
126416
  import_os7 = require("os");
126510
126417
  import_slugify = __toESM3(require_slugify());
126511
126418
  import_path14 = require("path");
126512
126419
  import_build_utils5 = require("@vercel/build-utils");
126513
- import_fs_extra7 = __toESM3(require_lib());
126420
+ import_fs_extra6 = __toESM3(require_lib());
126514
126421
  init_humanize_path();
126515
126422
  init_link2();
126516
126423
  init_create_git_meta();
@@ -126578,7 +126485,7 @@ async function getProjectLinkFromRepoLink(client2, path11) {
126578
126485
  }
126579
126486
  async function getLinkFromDir(dir) {
126580
126487
  try {
126581
- const json = await readFile4((0, import_path15.join)(dir, VERCEL_DIR_PROJECT), "utf8");
126488
+ const json = await readFile3((0, import_path15.join)(dir, VERCEL_DIR_PROJECT), "utf8");
126582
126489
  const ajv2 = new import_ajv.default();
126583
126490
  const link4 = JSON.parse(json);
126584
126491
  if (!ajv2.validate(linkSchema, link4)) {
@@ -126693,7 +126600,7 @@ async function getLinkedProject(client2, path11 = client2.cwd) {
126693
126600
  async function writeReadme(path11) {
126694
126601
  await writeFile2(
126695
126602
  (0, import_path15.join)(path11, VERCEL_DIR2, VERCEL_DIR_README),
126696
- await readFile4((0, import_path15.join)(__dirname, "VERCEL_DIR_README.txt"), "utf8")
126603
+ await readFile3((0, import_path15.join)(__dirname, "VERCEL_DIR_README.txt"), "utf8")
126697
126604
  );
126698
126605
  }
126699
126606
  async function linkFolderToProject(client2, path11, projectLink, projectName, orgSlug, successEmoji = "link") {
@@ -126701,7 +126608,7 @@ async function linkFolderToProject(client2, path11, projectLink, projectName, or
126701
126608
  return;
126702
126609
  }
126703
126610
  try {
126704
- await (0, import_fs_extra8.ensureDir)((0, import_path15.join)(path11, VERCEL_DIR2));
126611
+ await (0, import_fs_extra7.ensureDir)((0, import_path15.join)(path11, VERCEL_DIR2));
126705
126612
  } catch (err) {
126706
126613
  if ((0, import_error_utils14.isErrnoException)(err) && err.code === "ENOTDIR") {
126707
126614
  return;
@@ -126716,22 +126623,22 @@ async function linkFolderToProject(client2, path11, projectLink, projectName, or
126716
126623
  const isGitIgnoreUpdated = await addToGitIgnore(path11);
126717
126624
  output_manager_default.print(
126718
126625
  prependEmoji(
126719
- `Linked to ${import_chalk39.default.bold(
126626
+ `Linked to ${import_chalk38.default.bold(
126720
126627
  `${orgSlug}/${projectName}`
126721
126628
  )} (created ${VERCEL_DIR2}${isGitIgnoreUpdated ? " and added it to .gitignore" : ""})`,
126722
126629
  emoji(successEmoji)
126723
126630
  ) + "\n"
126724
126631
  );
126725
126632
  }
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;
126633
+ 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
126634
  var init_link2 = __esm({
126728
126635
  "src/util/projects/link.ts"() {
126729
126636
  "use strict";
126730
126637
  import_fs4 = __toESM3(require("fs"));
126731
126638
  import_ajv = __toESM3(require_ajv());
126732
- import_chalk39 = __toESM3(require_source());
126639
+ import_chalk38 = __toESM3(require_source());
126733
126640
  import_path15 = require("path");
126734
- import_fs_extra8 = __toESM3(require_lib());
126641
+ import_fs_extra7 = __toESM3(require_lib());
126735
126642
  import_util2 = require("util");
126736
126643
  init_get_project_by_id_or_name();
126737
126644
  init_errors_ts();
@@ -126745,7 +126652,7 @@ var init_link2 = __esm({
126745
126652
  init_repo();
126746
126653
  init_add_to_gitignore();
126747
126654
  init_output_manager();
126748
- readFile4 = (0, import_util2.promisify)(import_fs4.default.readFile);
126655
+ readFile3 = (0, import_util2.promisify)(import_fs4.default.readFile);
126749
126656
  writeFile2 = (0, import_util2.promisify)(import_fs4.default.writeFile);
126750
126657
  VERCEL_DIR2 = ".vercel";
126751
126658
  VERCEL_DIR_FALLBACK = ".now";
@@ -126873,7 +126780,7 @@ async function addStore(client2, argv) {
126873
126780
  ]
126874
126781
  });
126875
126782
  output_manager_default.spinner(
126876
- `Connecting ${import_chalk40.default.bold(name)} to ${import_chalk40.default.bold(link4.project.name)}...`
126783
+ `Connecting ${import_chalk39.default.bold(name)} to ${import_chalk39.default.bold(link4.project.name)}...`
126877
126784
  );
126878
126785
  await connectResourceToProject(
126879
126786
  client2,
@@ -126883,7 +126790,7 @@ async function addStore(client2, argv) {
126883
126790
  link4.org.id
126884
126791
  );
126885
126792
  output_manager_default.success(
126886
- `Blob store ${import_chalk40.default.bold(name)} linked to ${import_chalk40.default.bold(
126793
+ `Blob store ${import_chalk39.default.bold(name)} linked to ${import_chalk39.default.bold(
126887
126794
  link4.project.name
126888
126795
  )}. Make sure to pull the new environment variables using ${getCommandName("env pull")}`
126889
126796
  );
@@ -126891,14 +126798,14 @@ async function addStore(client2, argv) {
126891
126798
  }
126892
126799
  return 0;
126893
126800
  }
126894
- var import_chalk40;
126801
+ var import_chalk39;
126895
126802
  var init_store_add2 = __esm({
126896
126803
  "src/commands/blob/store-add.ts"() {
126897
126804
  "use strict";
126898
126805
  init_output_manager();
126899
126806
  init_link2();
126900
126807
  init_connect_resource_to_project();
126901
- import_chalk40 = __toESM3(require_source());
126808
+ import_chalk39 = __toESM3(require_source());
126902
126809
  init_pkg_name();
126903
126810
  init_get_flags_specification();
126904
126811
  init_get_args();
@@ -126909,7 +126816,7 @@ var init_store_add2 = __esm({
126909
126816
  });
126910
126817
 
126911
126818
  // src/commands/blob/store-remove.ts
126912
- async function removeStore(client2, argv) {
126819
+ async function removeStore(client2, argv, rwToken) {
126913
126820
  const flagsSpecification = getFlagsSpecification(
126914
126821
  removeStoreSubcommand.options
126915
126822
  );
@@ -126923,9 +126830,8 @@ async function removeStore(client2, argv) {
126923
126830
  let {
126924
126831
  args: [storeId]
126925
126832
  } = parsedArgs;
126926
- const token = await getBlobRWToken(client2);
126927
- if (!storeId && token.success) {
126928
- const [, , , id] = token.token.split("_");
126833
+ if (!storeId && rwToken.success) {
126834
+ const [, , , id] = rwToken.token.split("_");
126929
126835
  storeId = `store_${id}`;
126930
126836
  }
126931
126837
  if (!storeId) {
@@ -126982,7 +126888,6 @@ var init_store_remove = __esm({
126982
126888
  init_command32();
126983
126889
  init_get_args();
126984
126890
  init_link2();
126985
- init_token();
126986
126891
  }
126987
126892
  });
126988
126893
 
@@ -129334,7 +129239,7 @@ var init_store_get = __esm({
129334
129239
  });
129335
129240
 
129336
129241
  // src/commands/blob/store-get.ts
129337
- async function getStore2(client2, argv) {
129242
+ async function getStore2(client2, argv, rwToken) {
129338
129243
  const telemetryClient = new BlobGetStoreTelemetryClient({
129339
129244
  opts: {
129340
129245
  store: client2.telemetryEventStore
@@ -129351,9 +129256,8 @@ async function getStore2(client2, argv) {
129351
129256
  let {
129352
129257
  args: [storeId]
129353
129258
  } = parsedArgs;
129354
- const token = await getBlobRWToken(client2);
129355
- if (!storeId && token.success) {
129356
- const [, , , id] = token.token.split("_");
129259
+ if (!storeId && rwToken.success) {
129260
+ const [, , , id] = rwToken.token.split("_");
129357
129261
  storeId = `store_${id}`;
129358
129262
  }
129359
129263
  if (!storeId) {
@@ -129378,8 +129282,8 @@ async function getStore2(client2, argv) {
129378
129282
  });
129379
129283
  const dateTimeFormat3 = "MM/DD/YYYY HH:mm:ss.SS";
129380
129284
  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")}
129285
+ `Blob Store: ${import_chalk40.default.bold(store2.store.name)} (${import_chalk40.default.dim(store2.store.id)})
129286
+ Billing State: ${store2.store.billingState === "active" ? import_chalk40.default.green("Active") : import_chalk40.default.red("Inactive")}
129383
129287
  Size: ${(0, import_bytes3.default)(store2.store.size)}
129384
129288
  Created At: ${(0, import_date_fns.format)(new Date(store2.store.createdAt), dateTimeFormat3)}
129385
129289
  Updated At: ${(0, import_date_fns.format)(new Date(store2.store.updatedAt), dateTimeFormat3)}
@@ -129392,26 +129296,25 @@ Updated At: ${(0, import_date_fns.format)(new Date(store2.store.updatedAt), date
129392
129296
  output_manager_default.stopSpinner();
129393
129297
  return 0;
129394
129298
  }
129395
- var import_bytes3, import_date_fns, import_chalk41;
129299
+ var import_bytes3, import_date_fns, import_chalk40;
129396
129300
  var init_store_get2 = __esm({
129397
129301
  "src/commands/blob/store-get.ts"() {
129398
129302
  "use strict";
129399
129303
  import_bytes3 = __toESM3(require_bytes());
129400
129304
  init_output_manager();
129401
- init_token();
129402
129305
  init_error2();
129403
129306
  init_get_args();
129404
129307
  init_get_flags_specification();
129405
129308
  init_link2();
129406
129309
  init_command32();
129407
129310
  import_date_fns = __toESM3(require_date_fns());
129408
- import_chalk41 = __toESM3(require_source());
129311
+ import_chalk40 = __toESM3(require_source());
129409
129312
  init_store_get();
129410
129313
  }
129411
129314
  });
129412
129315
 
129413
129316
  // src/commands/blob/store.ts
129414
- async function store(client2) {
129317
+ async function store(client2, rwToken) {
129415
129318
  const telemetry2 = new BlobStoreTelemetryClient({
129416
129319
  opts: {
129417
129320
  store: client2.telemetryEventStore
@@ -129459,7 +129362,7 @@ async function store(client2) {
129459
129362
  return 2;
129460
129363
  }
129461
129364
  telemetry2.trackCliSubcommandRemove(subcommandOriginal);
129462
- return removeStore(client2, args2);
129365
+ return removeStore(client2, args2, rwToken);
129463
129366
  case "get":
129464
129367
  if (needHelp) {
129465
129368
  telemetry2.trackCliFlagHelp("blob store", subcommandOriginal);
@@ -129467,7 +129370,7 @@ async function store(client2) {
129467
129370
  return 2;
129468
129371
  }
129469
129372
  telemetry2.trackCliSubcommandGet(subcommandOriginal);
129470
- return getStore2(client2, args2);
129373
+ return getStore2(client2, args2, rwToken);
129471
129374
  default:
129472
129375
  output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG2));
129473
129376
  output_manager_default.print(help2(storeSubcommand, { columns: client2.stderr.columns }));
@@ -129499,6 +129402,159 @@ var init_store2 = __esm({
129499
129402
  }
129500
129403
  });
129501
129404
 
129405
+ // src/util/parse-env.ts
129406
+ var parseEnv;
129407
+ var init_parse_env = __esm({
129408
+ "src/util/parse-env.ts"() {
129409
+ "use strict";
129410
+ parseEnv = (env) => {
129411
+ if (!env) {
129412
+ return {};
129413
+ }
129414
+ if (typeof env === "string") {
129415
+ env = [env];
129416
+ }
129417
+ if (Array.isArray(env)) {
129418
+ const startingDict = {};
129419
+ return env.reduce((o, e2) => {
129420
+ let key;
129421
+ let value;
129422
+ const equalsSign = e2.indexOf("=");
129423
+ if (equalsSign === -1) {
129424
+ key = e2;
129425
+ } else {
129426
+ key = e2.slice(0, equalsSign);
129427
+ value = e2.slice(equalsSign + 1);
129428
+ }
129429
+ o[key] = value;
129430
+ return o;
129431
+ }, startingDict);
129432
+ }
129433
+ return env;
129434
+ };
129435
+ }
129436
+ });
129437
+
129438
+ // src/util/env/diff-env-files.ts
129439
+ async function createEnvObject(envPath) {
129440
+ 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));
129441
+ const parsedEnv = parseEnv(envArr);
129442
+ if (Object.keys(parsedEnv).length === 0) {
129443
+ output_manager_default.debug("Failed to parse env file.");
129444
+ return;
129445
+ }
129446
+ return parsedEnv;
129447
+ }
129448
+ function findChanges(oldEnv, newEnv) {
129449
+ const added = [];
129450
+ const changed = [];
129451
+ for (const key of Object.keys(newEnv)) {
129452
+ if (oldEnv[key] === void 0) {
129453
+ added.push(key);
129454
+ } else if (oldEnv[key] !== newEnv[key]) {
129455
+ changed.push(key);
129456
+ }
129457
+ delete oldEnv[key];
129458
+ }
129459
+ const removed = Object.keys(oldEnv);
129460
+ return {
129461
+ added,
129462
+ changed,
129463
+ removed
129464
+ };
129465
+ }
129466
+ function buildDeltaString(oldEnv, newEnv) {
129467
+ const { added, changed, removed } = findChanges(oldEnv, newEnv);
129468
+ let deltaString = "";
129469
+ deltaString += import_chalk41.default.green(addDeltaSection("+", changed, true));
129470
+ deltaString += import_chalk41.default.green(addDeltaSection("+", added));
129471
+ deltaString += import_chalk41.default.red(addDeltaSection("-", removed));
129472
+ return deltaString ? import_chalk41.default.gray("Changes:\n") + deltaString + "\n" : deltaString;
129473
+ }
129474
+ function addDeltaSection(prefix, arr, changed = false) {
129475
+ if (arr.length === 0)
129476
+ return "";
129477
+ return arr.sort().map((item) => `${prefix} ${item}${changed ? " (Updated)" : ""}`).join("\n") + "\n";
129478
+ }
129479
+ var import_fs_extra8, import_chalk41;
129480
+ var init_diff_env_files = __esm({
129481
+ "src/util/env/diff-env-files.ts"() {
129482
+ "use strict";
129483
+ import_fs_extra8 = __toESM3(require_lib());
129484
+ init_parse_env();
129485
+ import_chalk41 = __toESM3(require_source());
129486
+ init_output_manager();
129487
+ }
129488
+ });
129489
+
129490
+ // src/util/output/list-item.ts
129491
+ var import_chalk42, listItem, list_item_default;
129492
+ var init_list_item = __esm({
129493
+ "src/util/output/list-item.ts"() {
129494
+ "use strict";
129495
+ import_chalk42 = __toESM3(require_source());
129496
+ listItem = (msg, n) => {
129497
+ if (!n) {
129498
+ n = "-";
129499
+ }
129500
+ if (Number(n)) {
129501
+ n += ".";
129502
+ }
129503
+ return `${(0, import_chalk42.default)(n.toString())} ${msg}`;
129504
+ };
129505
+ list_item_default = listItem;
129506
+ }
129507
+ });
129508
+
129509
+ // src/util/blob/token.ts
129510
+ async function getBlobRWToken(client2, argv) {
129511
+ const flagsSpecification = getFlagsSpecification(blobCommand.options);
129512
+ try {
129513
+ const parsedArgs = parseArguments(argv, flagsSpecification);
129514
+ const {
129515
+ flags: { "--rw-token": rwToken }
129516
+ } = parsedArgs;
129517
+ if (rwToken) {
129518
+ return { token: rwToken, success: true };
129519
+ }
129520
+ } catch (err) {
129521
+ }
129522
+ if (process.env.BLOB_READ_WRITE_TOKEN) {
129523
+ return { token: process.env.BLOB_READ_WRITE_TOKEN, success: true };
129524
+ }
129525
+ const filename = ".env.local";
129526
+ const fullPath = (0, import_node_path2.resolve)(client2.cwd, filename);
129527
+ try {
129528
+ const env = await createEnvObject(fullPath);
129529
+ if (env?.BLOB_READ_WRITE_TOKEN) {
129530
+ return { token: env.BLOB_READ_WRITE_TOKEN, success: true };
129531
+ }
129532
+ } catch (error3) {
129533
+ }
129534
+ return {
129535
+ error: ErrorMessage,
129536
+ success: false
129537
+ };
129538
+ }
129539
+ var import_node_path2, ErrorMessage;
129540
+ var init_token = __esm({
129541
+ "src/util/blob/token.ts"() {
129542
+ "use strict";
129543
+ import_node_path2 = require("path");
129544
+ init_diff_env_files();
129545
+ init_get_flags_specification();
129546
+ init_command32();
129547
+ init_get_args();
129548
+ init_pkg_name();
129549
+ init_cmd();
129550
+ init_list_item();
129551
+ ErrorMessage = `No Vercel Blob token found. To fix this issue, choose one of the following options:
129552
+ ${list_item_default(`Pass the token directly as an option: ${getCommandName("blob list --rw-token BLOB_TOKEN")}`, 1)}
129553
+ ${list_item_default(`Set the Token as an environment variable: ${cmd(`VERCEL_BLOB_READ_WRITE_TOKEN=BLOB_TOKEN ${packageName} blob list`)}`, 2)}
129554
+ ${list_item_default("Link your current folder to a Vercel Project that has a Vercel Blob store connected", 3)}`;
129555
+ }
129556
+ });
129557
+
129502
129558
  // src/commands/blob/index.ts
129503
129559
  var blob_exports = {};
129504
129560
  __export3(blob_exports, {
@@ -129536,6 +129592,8 @@ async function main(client2) {
129536
129592
  help2(command, { parent: blobCommand, columns: client2.stderr.columns })
129537
129593
  );
129538
129594
  }
129595
+ const token = await getBlobRWToken(client2, client2.argv);
129596
+ telemetry2.trackCliOptionRwToken();
129539
129597
  switch (subcommand) {
129540
129598
  case "list":
129541
129599
  if (needHelp) {
@@ -129544,7 +129602,11 @@ async function main(client2) {
129544
129602
  return 2;
129545
129603
  }
129546
129604
  telemetry2.trackCliSubcommandList(subcommandOriginal);
129547
- return list3(client2, args2);
129605
+ if (!token.success) {
129606
+ printError(token.error);
129607
+ return 1;
129608
+ }
129609
+ return list3(client2, args2, token.token);
129548
129610
  case "put":
129549
129611
  if (needHelp) {
129550
129612
  telemetry2.trackCliFlagHelp("blob", subcommandOriginal);
@@ -129552,14 +129614,23 @@ async function main(client2) {
129552
129614
  return 2;
129553
129615
  }
129554
129616
  telemetry2.trackCliSubcommandPut(subcommandOriginal);
129555
- return put2(client2, args2);
129617
+ if (!token.success) {
129618
+ printError(token.error);
129619
+ return 1;
129620
+ }
129621
+ return put2(client2, args2, token.token);
129556
129622
  case "del":
129557
129623
  if (needHelp) {
129558
129624
  telemetry2.trackCliFlagHelp("blob", subcommandOriginal);
129559
129625
  printHelp(delSubcommand);
129560
129626
  return 2;
129561
129627
  }
129562
- return del2(client2, args2);
129628
+ telemetry2.trackCliSubcommandDel(subcommandOriginal);
129629
+ if (!token.success) {
129630
+ printError(token.error);
129631
+ return 1;
129632
+ }
129633
+ return del2(client2, args2, token.token);
129563
129634
  case "copy":
129564
129635
  if (needHelp) {
129565
129636
  telemetry2.trackCliFlagHelp("blob", subcommandOriginal);
@@ -129567,10 +129638,14 @@ async function main(client2) {
129567
129638
  return 2;
129568
129639
  }
129569
129640
  telemetry2.trackCliSubcommandCopy(subcommandOriginal);
129570
- return copy2(client2, args2);
129641
+ if (!token.success) {
129642
+ printError(token.error);
129643
+ return 1;
129644
+ }
129645
+ return copy2(client2, args2, token.token);
129571
129646
  case "store":
129572
129647
  telemetry2.trackCliSubcommandStore(subcommandOriginal);
129573
- return store(client2);
129648
+ return store(client2, token);
129574
129649
  default:
129575
129650
  output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG3));
129576
129651
  output_manager_default.print(help2(blobCommand, { columns: client2.stderr.columns }));
@@ -129596,6 +129671,7 @@ var init_blob2 = __esm({
129596
129671
  init_copy2();
129597
129672
  init_store2();
129598
129673
  init_error2();
129674
+ init_token();
129599
129675
  COMMAND_CONFIG3 = {
129600
129676
  list: getCommandAliases(listSubcommand10),
129601
129677
  put: getCommandAliases(putSubcommand),
@@ -131176,6 +131252,195 @@ var require_schemas = __commonJS2({
131176
131252
  ]
131177
131253
  }
131178
131254
  };
131255
+ var transformsSchema = {
131256
+ description: "A list of transform rules to adjust the query parameters of a request or HTTP headers of request or response",
131257
+ type: "array",
131258
+ minItems: 1,
131259
+ items: {
131260
+ type: "object",
131261
+ additionalProperties: false,
131262
+ required: ["type", "op", "target"],
131263
+ properties: {
131264
+ type: {
131265
+ description: "The scope of the transform to apply",
131266
+ type: "string",
131267
+ enum: ["request.headers", "request.query", "response.headers"]
131268
+ },
131269
+ op: {
131270
+ description: "The operation to perform on the target",
131271
+ type: "string",
131272
+ enum: ["append", "set", "delete"]
131273
+ },
131274
+ target: {
131275
+ description: "The target of the transform",
131276
+ type: "object",
131277
+ required: ["key"],
131278
+ properties: {
131279
+ // re is not supported for transforms. Once supported, replace target.key with matchableValueSchema
131280
+ key: {
131281
+ description: "A value to match against. Can be a string or a condition operation object (without regex support)",
131282
+ anyOf: [
131283
+ {
131284
+ description: "A valid header name (letters, numbers, hyphens, underscores)",
131285
+ type: "string",
131286
+ maxLength: 4096
131287
+ },
131288
+ {
131289
+ description: "A condition operation object",
131290
+ type: "object",
131291
+ additionalProperties: false,
131292
+ minProperties: 1,
131293
+ properties: {
131294
+ eq: {
131295
+ description: "Equal to",
131296
+ anyOf: [
131297
+ {
131298
+ type: "string",
131299
+ maxLength: 4096
131300
+ },
131301
+ {
131302
+ type: "number"
131303
+ }
131304
+ ]
131305
+ },
131306
+ neq: {
131307
+ description: "Not equal",
131308
+ type: "string",
131309
+ maxLength: 4096
131310
+ },
131311
+ inc: {
131312
+ description: "In array",
131313
+ type: "array",
131314
+ items: {
131315
+ type: "string",
131316
+ maxLength: 4096
131317
+ }
131318
+ },
131319
+ ninc: {
131320
+ description: "Not in array",
131321
+ type: "array",
131322
+ items: {
131323
+ type: "string",
131324
+ maxLength: 4096
131325
+ }
131326
+ },
131327
+ pre: {
131328
+ description: "Starts with",
131329
+ type: "string",
131330
+ maxLength: 4096
131331
+ },
131332
+ suf: {
131333
+ description: "Ends with",
131334
+ type: "string",
131335
+ maxLength: 4096
131336
+ },
131337
+ gt: {
131338
+ description: "Greater than",
131339
+ type: "number"
131340
+ },
131341
+ gte: {
131342
+ description: "Greater than or equal to",
131343
+ type: "number"
131344
+ },
131345
+ lt: {
131346
+ description: "Less than",
131347
+ type: "number"
131348
+ },
131349
+ lte: {
131350
+ description: "Less than or equal to",
131351
+ type: "number"
131352
+ }
131353
+ }
131354
+ }
131355
+ ]
131356
+ }
131357
+ }
131358
+ },
131359
+ args: {
131360
+ description: "The arguments to the operation",
131361
+ anyOf: [
131362
+ {
131363
+ type: "string",
131364
+ maxLength: 4096
131365
+ },
131366
+ {
131367
+ type: "array",
131368
+ minItems: 1,
131369
+ items: {
131370
+ type: "string",
131371
+ maxLength: 4096
131372
+ }
131373
+ }
131374
+ ]
131375
+ }
131376
+ },
131377
+ allOf: [
131378
+ {
131379
+ if: {
131380
+ properties: {
131381
+ op: {
131382
+ enum: ["append", "set"]
131383
+ }
131384
+ }
131385
+ },
131386
+ then: {
131387
+ required: ["args"]
131388
+ }
131389
+ },
131390
+ {
131391
+ if: {
131392
+ allOf: [
131393
+ {
131394
+ properties: {
131395
+ type: {
131396
+ enum: ["request.headers", "response.headers"]
131397
+ }
131398
+ }
131399
+ },
131400
+ {
131401
+ properties: {
131402
+ op: {
131403
+ enum: ["set", "append"]
131404
+ }
131405
+ }
131406
+ }
131407
+ ]
131408
+ },
131409
+ then: {
131410
+ properties: {
131411
+ target: {
131412
+ properties: {
131413
+ key: {
131414
+ if: {
131415
+ type: "string"
131416
+ },
131417
+ then: {
131418
+ pattern: "^[a-zA-Z0-9_-]+$"
131419
+ }
131420
+ }
131421
+ }
131422
+ },
131423
+ args: {
131424
+ anyOf: [
131425
+ {
131426
+ type: "string",
131427
+ pattern: "^[a-zA-Z0-9_ :;.,\"'?!(){}\\[\\]@<>=+*#$&`|~\\^%/-]+$"
131428
+ },
131429
+ {
131430
+ type: "array",
131431
+ items: {
131432
+ type: "string",
131433
+ pattern: "^[a-zA-Z0-9_ :;.,\"'?!(){}\\[\\]@<>=+*#$&`|~\\^%/-]+$"
131434
+ }
131435
+ }
131436
+ ]
131437
+ }
131438
+ }
131439
+ }
131440
+ }
131441
+ ]
131442
+ }
131443
+ };
131179
131444
  var routesSchema2 = {
131180
131445
  type: "array",
131181
131446
  maxItems: 2048,
@@ -131288,7 +131553,8 @@ var require_schemas = __commonJS2({
131288
131553
  },
131289
131554
  has: hasSchema,
131290
131555
  missing: hasSchema,
131291
- mitigate: mitigateSchema
131556
+ mitigate: mitigateSchema,
131557
+ transforms: transformsSchema
131292
131558
  }
131293
131559
  },
131294
131560
  {
@@ -144014,18 +144280,18 @@ var init_get_env_records = __esm({
144014
144280
  function formatProject(orgSlug, projectSlug, options) {
144015
144281
  const orgProjectSlug = `${orgSlug}/${projectSlug}`;
144016
144282
  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),
144283
+ const projectSlugLink = output_manager_default.link(import_chalk43.default.bold(orgProjectSlug), projectUrl, {
144284
+ fallback: () => import_chalk43.default.bold(orgProjectSlug),
144019
144285
  color: false,
144020
144286
  ...options
144021
144287
  });
144022
144288
  return projectSlugLink;
144023
144289
  }
144024
- var import_chalk42;
144290
+ var import_chalk43;
144025
144291
  var init_format_project = __esm({
144026
144292
  "src/util/projects/format-project.ts"() {
144027
144293
  "use strict";
144028
- import_chalk42 = __toESM3(require_source());
144294
+ import_chalk43 = __toESM3(require_source());
144029
144295
  init_output_manager();
144030
144296
  }
144031
144297
  });
@@ -144168,7 +144434,7 @@ async function envPullCommandLogic(client2, filename, skipConfirmation, environm
144168
144434
  const head = tryReadHeadSync(fullPath, Buffer.byteLength(CONTENTS_PREFIX));
144169
144435
  const exists = typeof head !== "undefined";
144170
144436
  if (head === CONTENTS_PREFIX) {
144171
- output_manager_default.log(`Overwriting existing ${import_chalk43.default.bold(filename)} file`);
144437
+ output_manager_default.log(`Overwriting existing ${import_chalk44.default.bold(filename)} file`);
144172
144438
  } else if (exists && !skipConfirmation && !await client2.input.confirm(
144173
144439
  `Found existing file ${param(filename)}. Do you want to overwrite?`,
144174
144440
  false
@@ -144178,7 +144444,7 @@ async function envPullCommandLogic(client2, filename, skipConfirmation, environm
144178
144444
  }
144179
144445
  const projectSlugLink = formatProject(link4.org.slug, link4.project.name);
144180
144446
  output_manager_default.log(
144181
- `Downloading \`${import_chalk43.default.cyan(
144447
+ `Downloading \`${import_chalk44.default.cyan(
144182
144448
  environment
144183
144449
  )}\` Environment Variables for ${projectSlugLink}`
144184
144450
  );
@@ -144211,7 +144477,7 @@ async function envPullCommandLogic(client2, filename, skipConfirmation, environm
144211
144477
  }
144212
144478
  output_manager_default.print(
144213
144479
  `${prependEmoji(
144214
- `${exists ? "Updated" : "Created"} ${import_chalk43.default.bold(filename)} file ${isGitIgnoreUpdated ? "and added it to .gitignore" : ""} ${import_chalk43.default.gray(pullStamp())}`,
144480
+ `${exists ? "Updated" : "Created"} ${import_chalk44.default.bold(filename)} file ${isGitIgnoreUpdated ? "and added it to .gitignore" : ""} ${import_chalk44.default.gray(pullStamp())}`,
144215
144481
  emoji("success")
144216
144482
  )}
144217
144483
  `
@@ -144220,11 +144486,11 @@ async function envPullCommandLogic(client2, filename, skipConfirmation, environm
144220
144486
  function escapeValue(value) {
144221
144487
  return value ? value.replace(new RegExp("\n", "g"), "\\n").replace(new RegExp("\r", "g"), "\\r") : "";
144222
144488
  }
144223
- var import_chalk43, import_fs_extra15, import_fs5, import_path24, import_error_utils18, import_json_parse_better_errors2, CONTENTS_PREFIX, VARIABLES_TO_IGNORE;
144489
+ var import_chalk44, import_fs_extra15, import_fs5, import_path24, import_error_utils18, import_json_parse_better_errors2, CONTENTS_PREFIX, VARIABLES_TO_IGNORE;
144224
144490
  var init_pull2 = __esm({
144225
144491
  "src/commands/env/pull.ts"() {
144226
144492
  "use strict";
144227
- import_chalk43 = __toESM3(require_source());
144493
+ import_chalk44 = __toESM3(require_source());
144228
144494
  import_fs_extra15 = __toESM3(require_lib());
144229
144495
  import_fs5 = require("fs");
144230
144496
  import_path24 = require("path");
@@ -144280,7 +144546,7 @@ async function inputProject(client2, org, detectedProjectName, autoConfirm = fal
144280
144546
  );
144281
144547
  } else {
144282
144548
  if (await client2.input.confirm(
144283
- `Found project ${import_chalk44.default.cyan(
144549
+ `Found project ${import_chalk45.default.cyan(
144284
144550
  `\u201C${org.slug}/${detectedProject.name}\u201D`
144285
144551
  )}. Link to it?`,
144286
144552
  true
@@ -144325,12 +144591,12 @@ async function inputProject(client2, org, detectedProjectName, autoConfirm = fal
144325
144591
  }
144326
144592
  });
144327
144593
  }
144328
- var import_chalk44, import_slugify2;
144594
+ var import_chalk45, import_slugify2;
144329
144595
  var init_input_project = __esm({
144330
144596
  "src/util/input/input-project.ts"() {
144331
144597
  "use strict";
144332
144598
  init_get_project_by_id_or_name();
144333
- import_chalk44 = __toESM3(require_source());
144599
+ import_chalk45 = __toESM3(require_source());
144334
144600
  init_errors_ts();
144335
144601
  import_slugify2 = __toESM3(require_slugify());
144336
144602
  init_output_manager();
@@ -144343,7 +144609,7 @@ async function validateRootDirectory(cwd, path11, errorSuffix = "") {
144343
144609
  const suffix = errorSuffix ? ` ${errorSuffix}` : "";
144344
144610
  if (!pathStat) {
144345
144611
  output_manager_default.error(
144346
- `The provided path ${import_chalk45.default.cyan(
144612
+ `The provided path ${import_chalk46.default.cyan(
144347
144613
  `\u201C${humanizePath(path11)}\u201D`
144348
144614
  )} does not exist.${suffix}`
144349
144615
  );
@@ -144351,7 +144617,7 @@ async function validateRootDirectory(cwd, path11, errorSuffix = "") {
144351
144617
  }
144352
144618
  if (!pathStat.isDirectory()) {
144353
144619
  output_manager_default.error(
144354
- `The provided path ${import_chalk45.default.cyan(
144620
+ `The provided path ${import_chalk46.default.cyan(
144355
144621
  `\u201C${humanizePath(path11)}\u201D`
144356
144622
  )} is a file, but expected a directory.${suffix}`
144357
144623
  );
@@ -144359,7 +144625,7 @@ async function validateRootDirectory(cwd, path11, errorSuffix = "") {
144359
144625
  }
144360
144626
  if (!path11.startsWith(cwd)) {
144361
144627
  output_manager_default.error(
144362
- `The provided path ${import_chalk45.default.cyan(
144628
+ `The provided path ${import_chalk46.default.cyan(
144363
144629
  `\u201C${humanizePath(path11)}\u201D`
144364
144630
  )} is outside of the project.${suffix}`
144365
144631
  );
@@ -144375,7 +144641,7 @@ async function validatePaths(client2, paths) {
144375
144641
  const path11 = paths[0];
144376
144642
  const pathStat = await (0, import_fs_extra16.lstat)(path11).catch(() => null);
144377
144643
  if (!pathStat) {
144378
- output_manager_default.error(`Could not find ${import_chalk45.default.cyan(`\u201C${humanizePath(path11)}\u201D`)}`);
144644
+ output_manager_default.error(`Could not find ${import_chalk46.default.cyan(`\u201C${humanizePath(path11)}\u201D`)}`);
144379
144645
  return { valid: false, exitCode: 1 };
144380
144646
  }
144381
144647
  if (!pathStat.isDirectory()) {
@@ -144398,12 +144664,12 @@ async function validatePaths(client2, paths) {
144398
144664
  }
144399
144665
  return { valid: true, path: path11 };
144400
144666
  }
144401
- var import_fs_extra16, import_chalk45, import_os8;
144667
+ var import_fs_extra16, import_chalk46, import_os8;
144402
144668
  var init_validate_paths = __esm({
144403
144669
  "src/util/validate-paths.ts"() {
144404
144670
  "use strict";
144405
144671
  import_fs_extra16 = __toESM3(require_lib());
144406
- import_chalk45 = __toESM3(require_source());
144672
+ import_chalk46 = __toESM3(require_source());
144407
144673
  import_os8 = require("os");
144408
144674
  init_humanize_path();
144409
144675
  init_output_manager();
@@ -144419,7 +144685,7 @@ async function inputRootDirectory(client2, cwd, autoConfirm = false) {
144419
144685
  const rootDirectory = await client2.input.text({
144420
144686
  message: `In which directory is your code located?`,
144421
144687
  transformer: (input) => {
144422
- return `${import_chalk46.default.dim(`./`)}${input}`;
144688
+ return `${import_chalk47.default.dim(`./`)}${input}`;
144423
144689
  }
144424
144690
  });
144425
144691
  if (!rootDirectory) {
@@ -144440,12 +144706,12 @@ async function inputRootDirectory(client2, cwd, autoConfirm = false) {
144440
144706
  return normal;
144441
144707
  }
144442
144708
  }
144443
- var import_path25, import_chalk46;
144709
+ var import_path25, import_chalk47;
144444
144710
  var init_input_root_directory = __esm({
144445
144711
  "src/util/input/input-root-directory.ts"() {
144446
144712
  "use strict";
144447
144713
  import_path25 = __toESM3(require("path"));
144448
- import_chalk46 = __toESM3(require_source());
144714
+ import_chalk47 = __toESM3(require_source());
144449
144715
  init_validate_paths();
144450
144716
  }
144451
144717
  });
@@ -144484,8 +144750,8 @@ async function editProjectSettings(client2, projectSettings, framework, autoConf
144484
144750
  const override = localConfigurationOverrides[setting];
144485
144751
  if (override) {
144486
144752
  output_manager_default.print(
144487
- `${import_chalk47.default.dim(
144488
- `- ${import_chalk47.default.bold(`${settingMap[setting]}:`)} ${override}`
144753
+ `${import_chalk48.default.dim(
144754
+ `- ${import_chalk48.default.bold(`${settingMap[setting]}:`)} ${override}`
144489
144755
  )}
144490
144756
  `
144491
144757
  );
@@ -144510,7 +144776,7 @@ async function editProjectSettings(client2, projectSettings, framework, autoConf
144510
144776
  }
144511
144777
  output_manager_default.print(
144512
144778
  !framework.slug ? `No framework detected. Default Project Settings:
144513
- ` : `Auto-detected Project Settings (${import_chalk47.default.bold(framework.name)}):
144779
+ ` : `Auto-detected Project Settings (${import_chalk48.default.bold(framework.name)}):
144514
144780
  `
144515
144781
  );
144516
144782
  settings.framework = framework.slug;
@@ -144522,8 +144788,8 @@ async function editProjectSettings(client2, projectSettings, framework, autoConf
144522
144788
  const override = localConfigurationOverrides?.[setting];
144523
144789
  if (!override && defaultSetting) {
144524
144790
  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}`)}`
144791
+ `${import_chalk48.default.dim(
144792
+ `- ${import_chalk48.default.bold(`${settingMap[setting]}:`)} ${isSettingValue(defaultSetting) ? defaultSetting.value : import_chalk48.default.italic(`${defaultSetting.placeholder}`)}`
144527
144793
  )}
144528
144794
  `
144529
144795
  );
@@ -144548,16 +144814,16 @@ async function editProjectSettings(client2, projectSettings, framework, autoConf
144548
144814
  for (const setting of settingFields) {
144549
144815
  const field = settingMap[setting];
144550
144816
  settings[setting] = await client2.input.text({
144551
- message: `What's your ${import_chalk47.default.bold(field)}?`
144817
+ message: `What's your ${import_chalk48.default.bold(field)}?`
144552
144818
  });
144553
144819
  }
144554
144820
  return settings;
144555
144821
  }
144556
- var import_chalk47, import_frameworks3, settingMap, settingKeys;
144822
+ var import_chalk48, import_frameworks3, settingMap, settingKeys;
144557
144823
  var init_edit_project_settings = __esm({
144558
144824
  "src/util/input/edit-project-settings.ts"() {
144559
144825
  "use strict";
144560
- import_chalk47 = __toESM3(require_source());
144826
+ import_chalk48 = __toESM3(require_source());
144561
144827
  import_frameworks3 = __toESM3(require_frameworks());
144562
144828
  init_is_setting_value();
144563
144829
  init_output_manager();
@@ -144627,7 +144893,7 @@ async function setupAndLink(client2, path11, {
144627
144893
  return { status: "error", exitCode: 1, reason: "HEADLESS" };
144628
144894
  }
144629
144895
  const shouldStartSetup = autoConfirm || await client2.input.confirm(
144630
- `${setupMsg} ${import_chalk48.default.cyan(`\u201C${humanizePath(path11)}\u201D`)}?`,
144896
+ `${setupMsg} ${import_chalk49.default.cyan(`\u201C${humanizePath(path11)}\u201D`)}?`,
144631
144897
  true
144632
144898
  );
144633
144899
  if (!shouldStartSetup) {
@@ -144741,11 +145007,11 @@ async function setupAndLink(client2, path11, {
144741
145007
  return { status: "error", exitCode: 1 };
144742
145008
  }
144743
145009
  }
144744
- var import_chalk48, import_fs_extra17, import_path26, import_frameworks4;
145010
+ var import_chalk49, import_fs_extra17, import_path26, import_frameworks4;
144745
145011
  var init_setup_and_link = __esm({
144746
145012
  "src/util/link/setup-and-link.ts"() {
144747
145013
  "use strict";
144748
- import_chalk48 = __toESM3(require_source());
145014
+ import_chalk49 = __toESM3(require_source());
144749
145015
  import_fs_extra17 = __toESM3(require_lib());
144750
145016
  import_path26 = require("path");
144751
145017
  init_link2();
@@ -144946,20 +145212,20 @@ async function pullCommandLogic(client2, cwd, autoConfirm, environment, flags) {
144946
145212
  const settingsStamp = stamp_default();
144947
145213
  output_manager_default.print(
144948
145214
  `${prependEmoji(
144949
- `Downloaded project settings to ${import_chalk49.default.bold(
145215
+ `Downloaded project settings to ${import_chalk50.default.bold(
144950
145216
  humanizePath((0, import_node_path3.join)(currentDirectory, VERCEL_DIR2, VERCEL_DIR_PROJECT))
144951
- )} ${import_chalk49.default.gray(settingsStamp())}`,
145217
+ )} ${import_chalk50.default.gray(settingsStamp())}`,
144952
145218
  emoji("success")
144953
145219
  )}
144954
145220
  `
144955
145221
  );
144956
145222
  return 0;
144957
145223
  }
144958
- var import_chalk49, import_node_path3;
145224
+ var import_chalk50, import_node_path3;
144959
145225
  var init_pull4 = __esm({
144960
145226
  "src/commands/pull/index.ts"() {
144961
145227
  "use strict";
144962
- import_chalk49 = __toESM3(require_source());
145228
+ import_chalk50 = __toESM3(require_source());
144963
145229
  import_node_path3 = require("path");
144964
145230
  init_emoji();
144965
145231
  init_get_args();
@@ -145518,9 +145784,9 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span) {
145518
145784
  const relOutputDir = (0, import_path27.relative)(cwd, outputDir);
145519
145785
  output_manager_default.print(
145520
145786
  `${prependEmoji(
145521
- `Build Completed in ${import_chalk50.default.bold(
145787
+ `Build Completed in ${import_chalk51.default.bold(
145522
145788
  relOutputDir.startsWith("..") ? outputDir : relOutputDir
145523
- )} ${import_chalk50.default.gray(buildStamp())}`,
145789
+ )} ${import_chalk51.default.gray(buildStamp())}`,
145524
145790
  emoji("success")
145525
145791
  )}
145526
145792
  `
@@ -145653,11 +145919,11 @@ async function getFrameworkRoutes(framework, dirPrefix) {
145653
145919
  }
145654
145920
  return routes2;
145655
145921
  }
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;
145922
+ 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
145923
  var init_build2 = __esm({
145658
145924
  "src/commands/build/index.ts"() {
145659
145925
  "use strict";
145660
- import_chalk50 = __toESM3(require_source());
145926
+ import_chalk51 = __toESM3(require_source());
145661
145927
  import_dotenv = __toESM3(require_main3());
145662
145928
  import_fs_extra18 = __toESM3(require_lib());
145663
145929
  import_minimatch2 = __toESM3(require_minimatch2());
@@ -145823,7 +146089,7 @@ async function add(client2, argv) {
145823
146089
  `Invalid number of arguments to create a custom certificate entry. Usage:`
145824
146090
  );
145825
146091
  output_manager_default.print(
145826
- ` ${import_chalk51.default.cyan(
146092
+ ` ${import_chalk52.default.cyan(
145827
146093
  `${getCommandName(
145828
146094
  "certs add --crt <domain.crt> --key <domain.key> --ca <ca.crt>"
145829
146095
  )}`
@@ -145835,9 +146101,9 @@ async function add(client2, argv) {
145835
146101
  cert = await createCertFromFile(client2, keyPath, crtPath, caPath);
145836
146102
  } else {
145837
146103
  output_manager_default.warn(
145838
- `${import_chalk51.default.cyan(
146104
+ `${import_chalk52.default.cyan(
145839
146105
  getCommandName("certs add")
145840
- )} will be soon deprecated. Please use ${import_chalk51.default.cyan(
146106
+ )} will be soon deprecated. Please use ${import_chalk52.default.cyan(
145841
146107
  getCommandName("certs issue <cn> <cns>")
145842
146108
  )} instead`
145843
146109
  );
@@ -145846,7 +146112,7 @@ async function add(client2, argv) {
145846
146112
  `Invalid number of arguments to create a custom certificate entry. Usage:`
145847
146113
  );
145848
146114
  output_manager_default.print(
145849
- ` ${import_chalk51.default.cyan(getCommandName("certs add <cn>[, <cn>]"))}
146115
+ ` ${import_chalk52.default.cyan(getCommandName("certs add <cn>[, <cn>]"))}
145850
146116
  `
145851
146117
  );
145852
146118
  return 1;
@@ -145856,7 +146122,7 @@ async function add(client2, argv) {
145856
146122
  []
145857
146123
  );
145858
146124
  output_manager_default.spinner(
145859
- `Generating a certificate for ${import_chalk51.default.bold(cns.join(", "))}`
146125
+ `Generating a certificate for ${import_chalk52.default.bold(cns.join(", "))}`
145860
146126
  );
145861
146127
  const { contextName } = await getScope(client2);
145862
146128
  cert = await createCertForCns(client2, cns, contextName);
@@ -145867,18 +146133,18 @@ async function add(client2, argv) {
145867
146133
  return 1;
145868
146134
  } else {
145869
146135
  output_manager_default.success(
145870
- `Certificate entry for ${import_chalk51.default.bold(
146136
+ `Certificate entry for ${import_chalk52.default.bold(
145871
146137
  cert.cns.join(", ")
145872
146138
  )} created ${addStamp()}`
145873
146139
  );
145874
146140
  }
145875
146141
  return 0;
145876
146142
  }
145877
- var import_chalk51, add_default;
146143
+ var import_chalk52, add_default;
145878
146144
  var init_add2 = __esm({
145879
146145
  "src/commands/certs/add.ts"() {
145880
146146
  "use strict";
145881
- import_chalk51 = __toESM3(require_source());
146147
+ import_chalk52 = __toESM3(require_source());
145882
146148
  init_get_scope();
145883
146149
  init_stamp();
145884
146150
  init_output_manager();
@@ -145896,7 +146162,7 @@ var init_add2 = __esm({
145896
146162
 
145897
146163
  // src/util/certs/finish-cert-order.ts
145898
146164
  async function startCertOrder(client2, cns, context) {
145899
- output_manager_default.spinner(`Issuing a certificate for ${import_chalk52.default.bold(cns.join(", "))}`);
146165
+ output_manager_default.spinner(`Issuing a certificate for ${import_chalk53.default.bold(cns.join(", "))}`);
145900
146166
  try {
145901
146167
  const cert = await client2.fetch("/v3/certs", {
145902
146168
  method: "PATCH",
@@ -145919,11 +146185,11 @@ async function startCertOrder(client2, cns, context) {
145919
146185
  throw err;
145920
146186
  }
145921
146187
  }
145922
- var import_chalk52;
146188
+ var import_chalk53;
145923
146189
  var init_finish_cert_order = __esm({
145924
146190
  "src/util/certs/finish-cert-order.ts"() {
145925
146191
  "use strict";
145926
- import_chalk52 = __toESM3(require_source());
146192
+ import_chalk53 = __toESM3(require_source());
145927
146193
  init_errors_ts();
145928
146194
  init_map_cert_error();
145929
146195
  init_output_manager();
@@ -145943,9 +146209,9 @@ var init_get_cns_from_args = __esm({
145943
146209
  // src/util/certs/start-cert-order.ts
145944
146210
  async function startCertOrder2(client2, cns, contextName) {
145945
146211
  output_manager_default.spinner(
145946
- `Starting certificate issuance for ${import_chalk53.default.bold(
146212
+ `Starting certificate issuance for ${import_chalk54.default.bold(
145947
146213
  cns.join(", ")
145948
- )} under ${import_chalk53.default.bold(contextName)}`
146214
+ )} under ${import_chalk54.default.bold(contextName)}`
145949
146215
  );
145950
146216
  const order = await client2.fetch("/v3/certs", {
145951
146217
  method: "PATCH",
@@ -145956,11 +146222,11 @@ async function startCertOrder2(client2, cns, contextName) {
145956
146222
  });
145957
146223
  return order;
145958
146224
  }
145959
- var import_chalk53;
146225
+ var import_chalk54;
145960
146226
  var init_start_cert_order = __esm({
145961
146227
  "src/util/certs/start-cert-order.ts"() {
145962
146228
  "use strict";
145963
- import_chalk53 = __toESM3(require_source());
146229
+ import_chalk54 = __toESM3(require_source());
145964
146230
  init_output_manager();
145965
146231
  }
145966
146232
  });
@@ -146030,7 +146296,7 @@ async function issue(client2, argv) {
146030
146296
  `Invalid number of arguments to create a custom certificate entry. Usage:`
146031
146297
  );
146032
146298
  output_manager_default.print(
146033
- ` ${import_chalk54.default.cyan(
146299
+ ` ${import_chalk55.default.cyan(
146034
146300
  getCommandName(
146035
146301
  "certs issue --crt <domain.crt> --key <domain.key> --ca <ca.crt>"
146036
146302
  )
@@ -146045,7 +146311,7 @@ async function issue(client2, argv) {
146045
146311
  return 1;
146046
146312
  }
146047
146313
  output_manager_default.success(
146048
- `Certificate entry for ${import_chalk54.default.bold(
146314
+ `Certificate entry for ${import_chalk55.default.bold(
146049
146315
  cert.cns.join(", ")
146050
146316
  )} created ${addStamp()}`
146051
146317
  );
@@ -146056,7 +146322,7 @@ async function issue(client2, argv) {
146056
146322
  `Invalid number of arguments to create a custom certificate entry. Usage:`
146057
146323
  );
146058
146324
  output_manager_default.print(
146059
- ` ${import_chalk54.default.cyan(getCommandName("certs issue <cn>[, <cn>]"))}
146325
+ ` ${import_chalk55.default.cyan(getCommandName("certs issue <cn>[, <cn>]"))}
146060
146326
  `
146061
146327
  );
146062
146328
  return 1;
@@ -146084,14 +146350,14 @@ async function issue(client2, argv) {
146084
146350
  }
146085
146351
  if (handledResult instanceof DomainPermissionDenied) {
146086
146352
  output_manager_default.error(
146087
- `You do not have permissions over domain ${import_chalk54.default.underline(
146353
+ `You do not have permissions over domain ${import_chalk55.default.underline(
146088
146354
  handledResult.meta.domain
146089
- )} under ${import_chalk54.default.bold(handledResult.meta.context)}.`
146355
+ )} under ${import_chalk55.default.bold(handledResult.meta.context)}.`
146090
146356
  );
146091
146357
  return 1;
146092
146358
  }
146093
146359
  output_manager_default.success(
146094
- `Certificate entry for ${import_chalk54.default.bold(
146360
+ `Certificate entry for ${import_chalk55.default.bold(
146095
146361
  handledResult.cns.join(", ")
146096
146362
  )} created ${addStamp()}`
146097
146363
  );
@@ -146113,7 +146379,7 @@ async function runStartOrder(client2, cns, contextName, stamp, { fallingBack = f
146113
146379
  }
146114
146380
  if (pendingChallenges.length === 0) {
146115
146381
  output_manager_default.log(
146116
- `A certificate issuance for ${import_chalk54.default.bold(
146382
+ `A certificate issuance for ${import_chalk55.default.bold(
146117
146383
  cns.join(", ")
146118
146384
  )} has been started ${stamp()}`
146119
146385
  );
@@ -146122,13 +146388,13 @@ async function runStartOrder(client2, cns, contextName, stamp, { fallingBack = f
146122
146388
  `
146123
146389
  );
146124
146390
  output_manager_default.print(
146125
- ` ${import_chalk54.default.cyan(getCommandName(`certs issue ${cns.join(" ")}`))}
146391
+ ` ${import_chalk55.default.cyan(getCommandName(`certs issue ${cns.join(" ")}`))}
146126
146392
  `
146127
146393
  );
146128
146394
  return 0;
146129
146395
  }
146130
146396
  output_manager_default.log(
146131
- `A certificate issuance for ${import_chalk54.default.bold(
146397
+ `A certificate issuance for ${import_chalk55.default.bold(
146132
146398
  cns.join(", ")
146133
146399
  )} has been started ${stamp()}`
146134
146400
  );
@@ -146157,7 +146423,7 @@ async function runStartOrder(client2, cns, contextName, stamp, { fallingBack = f
146157
146423
  `);
146158
146424
  output_manager_default.log(`To issue the certificate once the records are added, run:`);
146159
146425
  output_manager_default.print(
146160
- ` ${import_chalk54.default.cyan(getCommandName(`certs issue ${cns.join(" ")}`))}
146426
+ ` ${import_chalk55.default.cyan(getCommandName(`certs issue ${cns.join(" ")}`))}
146161
146427
  `
146162
146428
  );
146163
146429
  output_manager_default.print(
@@ -146165,11 +146431,11 @@ async function runStartOrder(client2, cns, contextName, stamp, { fallingBack = f
146165
146431
  );
146166
146432
  return 0;
146167
146433
  }
146168
- var import_chalk54, import_tldts4;
146434
+ var import_chalk55, import_tldts4;
146169
146435
  var init_issue2 = __esm({
146170
146436
  "src/commands/certs/issue.ts"() {
146171
146437
  "use strict";
146172
- import_chalk54 = __toESM3(require_source());
146438
+ import_chalk55 = __toESM3(require_source());
146173
146439
  import_tldts4 = __toESM3(require_cjs7());
146174
146440
  init_errors_ts();
146175
146441
  init_create_cert_for_cns();
@@ -146261,7 +146527,7 @@ async function ls2(client2, argv) {
146261
146527
  const lsStamp = stamp_default();
146262
146528
  if (args2.length !== 0) {
146263
146529
  output_manager_default.error(
146264
- `Invalid number of arguments. Usage: ${import_chalk55.default.cyan(
146530
+ `Invalid number of arguments. Usage: ${import_chalk56.default.cyan(
146265
146531
  `${getCommandName("certs ls")}`
146266
146532
  )}`
146267
146533
  );
@@ -146270,7 +146536,7 @@ async function ls2(client2, argv) {
146270
146536
  const { certs, pagination } = await getCerts(client2, ...paginationOptions);
146271
146537
  const { contextName } = await getScope(client2);
146272
146538
  output_manager_default.log(
146273
- `${certs.length > 0 ? "Certificates" : "No certificates"} found under ${import_chalk55.default.bold(contextName)} ${lsStamp()}`
146539
+ `${certs.length > 0 ? "Certificates" : "No certificates"} found under ${import_chalk56.default.bold(contextName)} ${lsStamp()}`
146274
146540
  );
146275
146541
  if (certs.length > 0) {
146276
146542
  client2.stdout.write(formatCertsTable(certs));
@@ -146294,11 +146560,11 @@ function formatCertsTable(certsList) {
146294
146560
  }
146295
146561
  function formatCertsTableHead() {
146296
146562
  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")
146563
+ import_chalk56.default.dim("id"),
146564
+ import_chalk56.default.dim("cns"),
146565
+ import_chalk56.default.dim("expiration"),
146566
+ import_chalk56.default.dim("renew"),
146567
+ import_chalk56.default.dim("age")
146302
146568
  ];
146303
146569
  }
146304
146570
  function formatCertsTableBody(certsList) {
@@ -146317,7 +146583,7 @@ function formatCertNonFirstCn(cn, multiple) {
146317
146583
  return ["", formatCertCn(cn, multiple), "", "", ""];
146318
146584
  }
146319
146585
  function formatCertCn(cn, multiple) {
146320
- return multiple ? `${import_chalk55.default.gray("-")} ${import_chalk55.default.bold(cn)}` : import_chalk55.default.bold(cn);
146586
+ return multiple ? `${import_chalk56.default.gray("-")} ${import_chalk56.default.bold(cn)}` : import_chalk56.default.bold(cn);
146321
146587
  }
146322
146588
  function formatCertFirstCn(time, cert, cn, multiple) {
146323
146589
  return [
@@ -146325,18 +146591,18 @@ function formatCertFirstCn(time, cert, cn, multiple) {
146325
146591
  formatCertCn(cn, multiple),
146326
146592
  formatExpirationDate(new Date(cert.expiration)),
146327
146593
  cert.autoRenew ? "yes" : "no",
146328
- import_chalk55.default.gray((0, import_ms8.default)(time.getTime() - new Date(cert.created).getTime()))
146594
+ import_chalk56.default.gray((0, import_ms8.default)(time.getTime() - new Date(cert.created).getTime()))
146329
146595
  ];
146330
146596
  }
146331
146597
  function formatExpirationDate(date) {
146332
146598
  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)}`);
146599
+ return diff < 0 ? import_chalk56.default.gray(`${(0, import_ms8.default)(-diff)} ago`) : import_chalk56.default.gray(`in ${(0, import_ms8.default)(diff)}`);
146334
146600
  }
146335
- var import_chalk55, import_ms8, ls_default;
146601
+ var import_chalk56, import_ms8, ls_default;
146336
146602
  var init_ls3 = __esm({
146337
146603
  "src/commands/certs/ls.ts"() {
146338
146604
  "use strict";
146339
- import_chalk55 = __toESM3(require_source());
146605
+ import_chalk56 = __toESM3(require_source());
146340
146606
  import_ms8 = __toESM3(require_ms());
146341
146607
  init_table();
146342
146608
  init_get_scope();
@@ -146449,7 +146715,7 @@ async function rm2(client2, argv) {
146449
146715
  telemetry2.trackCliArgumentId(id);
146450
146716
  if (args2.length !== 1) {
146451
146717
  output_manager_default.error(
146452
- `Invalid number of arguments. Usage: ${import_chalk56.default.cyan(
146718
+ `Invalid number of arguments. Usage: ${import_chalk57.default.cyan(
146453
146719
  `${getCommandName("certs rm <id or cn>")}`
146454
146720
  )}`
146455
146721
  );
@@ -146466,13 +146732,13 @@ async function rm2(client2, argv) {
146466
146732
  if (certs.length === 0) {
146467
146733
  if (id.includes(".")) {
146468
146734
  output_manager_default.error(
146469
- `No custom certificates found for "${id}" under ${import_chalk56.default.bold(
146735
+ `No custom certificates found for "${id}" under ${import_chalk57.default.bold(
146470
146736
  contextName
146471
146737
  )}`
146472
146738
  );
146473
146739
  } else {
146474
146740
  output_manager_default.error(
146475
- `No certificates found by id "${id}" under ${import_chalk56.default.bold(contextName)}`
146741
+ `No certificates found by id "${id}" under ${import_chalk57.default.bold(contextName)}`
146476
146742
  );
146477
146743
  }
146478
146744
  return 1;
@@ -146487,7 +146753,7 @@ async function rm2(client2, argv) {
146487
146753
  }
146488
146754
  await Promise.all(certs.map((cert) => deleteCertById(client2, cert.uid)));
146489
146755
  output_manager_default.success(
146490
- `${import_chalk56.default.bold(
146756
+ `${import_chalk57.default.bold(
146491
146757
  (0, import_pluralize5.default)("Certificate", certs.length, true)
146492
146758
  )} removed ${rmStamp()}`
146493
146759
  );
@@ -146515,7 +146781,7 @@ function readConfirmation(client2, msg, certs) {
146515
146781
  `
146516
146782
  );
146517
146783
  output_manager_default.print(
146518
- `${import_chalk56.default.bold.red("> Are you sure?")} ${import_chalk56.default.gray("(y/N) ")}`
146784
+ `${import_chalk57.default.bold.red("> Are you sure?")} ${import_chalk57.default.gray("(y/N) ")}`
146519
146785
  );
146520
146786
  client2.stdin.on("data", (d) => {
146521
146787
  process.stdin.pause();
@@ -146526,15 +146792,15 @@ function readConfirmation(client2, msg, certs) {
146526
146792
  function formatCertRow(cert) {
146527
146793
  return [
146528
146794
  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`)] : []
146795
+ import_chalk57.default.bold(cert.cns ? cert.cns.join(", ") : "\u2013"),
146796
+ ...cert.created ? [import_chalk57.default.gray(`${(0, import_ms9.default)(Date.now() - new Date(cert.created).getTime())} ago`)] : []
146531
146797
  ];
146532
146798
  }
146533
- var import_chalk56, import_ms9, import_pluralize5, rm_default;
146799
+ var import_chalk57, import_ms9, import_pluralize5, rm_default;
146534
146800
  var init_rm2 = __esm({
146535
146801
  "src/commands/certs/rm.ts"() {
146536
146802
  "use strict";
146537
- import_chalk56 = __toESM3(require_source());
146803
+ import_chalk57 = __toESM3(require_source());
146538
146804
  import_ms9 = __toESM3(require_ms());
146539
146805
  import_pluralize5 = __toESM3(require_pluralize());
146540
146806
  init_table();
@@ -147072,7 +147338,7 @@ async function displayRuntimeLogs(client2, options, abortController) {
147072
147338
  const timeout = setTimeout(() => {
147073
147339
  abortController.abort();
147074
147340
  warn(
147075
- `${import_chalk57.default.bold(
147341
+ `${import_chalk58.default.bold(
147076
147342
  `Command automatically interrupted after ${CommandTimeout}.`
147077
147343
  )}
147078
147344
  `
@@ -147114,7 +147380,7 @@ async function displayRuntimeLogs(client2, options, abortController) {
147114
147380
  stopSpinner();
147115
147381
  if (isRuntimeLimitDelimiter(log3)) {
147116
147382
  abortController.abort();
147117
- warn(`${import_chalk57.default.bold(log3.message)}
147383
+ warn(`${import_chalk58.default.bold(log3.message)}
147118
147384
  `);
147119
147385
  return;
147120
147386
  }
@@ -147151,7 +147417,7 @@ function printBuildLog(log2, print) {
147151
147417
  return;
147152
147418
  const date = new Date(log2.created).toISOString();
147153
147419
  for (const line of colorize(sanitize(log2), log2).split("\n")) {
147154
- print(`${import_chalk57.default.dim(date)} ${line.replace("[now-builder-debug] ", "")}
147420
+ print(`${import_chalk58.default.dim(date)} ${line.replace("[now-builder-debug] ", "")}
147155
147421
  `);
147156
147422
  }
147157
147423
  }
@@ -147176,9 +147442,9 @@ function prettyPrintLogline({
147176
147442
  const date = (0, import_date_fns2.format)(timestampInMs, dateTimeFormat);
147177
147443
  const levelIcon = getLevelIcon(level);
147178
147444
  const sourceIcon = getSourceIcon(source);
147179
- const detailsLine = `${import_chalk57.default.dim(date)} ${levelIcon} ${import_chalk57.default.bold(
147445
+ const detailsLine = `${import_chalk58.default.dim(date)} ${levelIcon} ${import_chalk58.default.bold(
147180
147446
  method
147181
- )} ${import_chalk57.default.grey(status2 <= 0 ? "---" : status2)} ${import_chalk57.default.dim(
147447
+ )} ${import_chalk58.default.grey(status2 <= 0 ? "---" : status2)} ${import_chalk58.default.dim(
147182
147448
  domain
147183
147449
  )} ${sourceIcon} ${path11}`;
147184
147450
  print(
@@ -147219,17 +147485,17 @@ function sanitize(log2) {
147219
147485
  }
147220
147486
  function colorize(text, log2) {
147221
147487
  if (log2.level === "error") {
147222
- return import_chalk57.default.red(text);
147488
+ return import_chalk58.default.red(text);
147223
147489
  } else if (log2.level === "warning") {
147224
- return import_chalk57.default.yellow(text);
147490
+ return import_chalk58.default.yellow(text);
147225
147491
  }
147226
147492
  return text;
147227
147493
  }
147228
- var import_chalk57, import_date_fns2, import_ms10, import_jsonlines2, import_split2, import_url14, runtimeLogSpinnerMessage, dateTimeFormat, moreSymbol, statusWidth;
147494
+ var import_chalk58, import_date_fns2, import_ms10, import_jsonlines2, import_split2, import_url14, runtimeLogSpinnerMessage, dateTimeFormat, moreSymbol, statusWidth;
147229
147495
  var init_logs = __esm({
147230
147496
  "src/util/logs.ts"() {
147231
147497
  "use strict";
147232
- import_chalk57 = __toESM3(require_source());
147498
+ import_chalk58 = __toESM3(require_source());
147233
147499
  import_date_fns2 = __toESM3(require_date_fns());
147234
147500
  import_ms10 = __toESM3(require_ms());
147235
147501
  import_jsonlines2 = __toESM3(require_jsonlines());
@@ -147268,7 +147534,7 @@ function printInspectUrl(inspectorUrl, deployStamp) {
147268
147534
  }
147269
147535
  output_manager_default.print(
147270
147536
  prependEmoji(
147271
- `Inspect: ${import_chalk58.default.bold(inspectorUrl)} ${deployStamp()}`,
147537
+ `Inspect: ${import_chalk59.default.bold(inspectorUrl)} ${deployStamp()}`,
147272
147538
  emoji("inspect")
147273
147539
  ) + `
147274
147540
  `
@@ -147320,7 +147586,7 @@ async function processDeployment({
147320
147586
  agent,
147321
147587
  projectName
147322
147588
  };
147323
- const deployingSpinnerVal = isSettingUpProject ? "Setting up project" : `Deploying ${import_chalk58.default.bold(`${org.slug}/${projectName}`)}`;
147589
+ const deployingSpinnerVal = isSettingUpProject ? "Setting up project" : `Deploying ${import_chalk59.default.bold(`${org.slug}/${projectName}`)}`;
147324
147590
  output_manager_default.spinner(deployingSpinnerVal, 0);
147325
147591
  const indications = [];
147326
147592
  let abortController;
@@ -147355,7 +147621,7 @@ async function processDeployment({
147355
147621
  const percent = uploadedBytes / missingSize;
147356
147622
  if (percent >= nextStep) {
147357
147623
  output_manager_default.spinner(
147358
- `Uploading ${import_chalk58.default.reset(
147624
+ `Uploading ${import_chalk59.default.reset(
147359
147625
  `[${bar}] (${uploadedHuman}/${totalSizeHuman})`
147360
147626
  )}`,
147361
147627
  0
@@ -147383,7 +147649,7 @@ async function processDeployment({
147383
147649
  const previewUrl = `https://${deployment.url}`;
147384
147650
  output_manager_default.print(
147385
147651
  prependEmoji(
147386
- `${isProdDeployment ? "Production" : "Preview"}: ${import_chalk58.default.bold(
147652
+ `${isProdDeployment ? "Production" : "Preview"}: ${import_chalk59.default.bold(
147387
147653
  previewUrl
147388
147654
  )} ${deployStamp()}`,
147389
147655
  emoji("success")
@@ -147471,14 +147737,14 @@ ${archiveSuggestionText}`
147471
147737
  }
147472
147738
  }
147473
147739
  }
147474
- var import_client7, import_error_utils20, import_bytes4, import_chalk58, archiveSuggestionText, UploadErrorMissingArchive;
147740
+ var import_client7, import_error_utils20, import_bytes4, import_chalk59, archiveSuggestionText, UploadErrorMissingArchive;
147475
147741
  var init_process_deployment = __esm({
147476
147742
  "src/util/deploy/process-deployment.ts"() {
147477
147743
  "use strict";
147478
147744
  import_client7 = __toESM3(require_dist7());
147479
147745
  import_error_utils20 = __toESM3(require_dist2());
147480
147746
  import_bytes4 = __toESM3(require_bytes());
147481
- import_chalk58 = __toESM3(require_source());
147747
+ import_chalk59 = __toESM3(require_source());
147482
147748
  init_emoji();
147483
147749
  init_logs();
147484
147750
  init_progress();
@@ -147495,7 +147761,7 @@ var init_process_deployment = __esm({
147495
147761
  });
147496
147762
 
147497
147763
  // src/util/index.ts
147498
- var import_querystring4, import_url15, import_async_retry5, import_ms11, import_node_fetch4, import_bytes5, import_chalk59, Now;
147764
+ var import_querystring4, import_url15, import_async_retry5, import_ms11, import_node_fetch4, import_bytes5, import_chalk60, Now;
147499
147765
  var init_util = __esm({
147500
147766
  "src/util/index.ts"() {
147501
147767
  "use strict";
@@ -147505,7 +147771,7 @@ var init_util = __esm({
147505
147771
  import_ms11 = __toESM3(require_ms());
147506
147772
  import_node_fetch4 = __toESM3(require_lib7());
147507
147773
  import_bytes5 = __toESM3(require_bytes());
147508
- import_chalk59 = __toESM3(require_source());
147774
+ import_chalk60 = __toESM3(require_source());
147509
147775
  init_ua();
147510
147776
  init_process_deployment();
147511
147777
  init_error2();
@@ -147618,7 +147884,7 @@ var init_util = __esm({
147618
147884
  if (sizeExceeded > 0) {
147619
147885
  warn(`${sizeExceeded} of the files exceeded the limit for your plan.`);
147620
147886
  log2(
147621
- `Please upgrade your plan here: ${import_chalk59.default.cyan(
147887
+ `Please upgrade your plan here: ${import_chalk60.default.cyan(
147622
147888
  "https://vercel.com/account/plan"
147623
147889
  )}`
147624
147890
  );
@@ -147994,21 +148260,21 @@ async function printDeploymentStatus({
147994
148260
  }
147995
148261
  const newline = "\n";
147996
148262
  for (const indication of indications) {
147997
- const message2 = prependEmoji(import_chalk60.default.dim(indication.payload), emoji(indication.type)) + newline;
148263
+ const message2 = prependEmoji(import_chalk61.default.dim(indication.payload), emoji(indication.type)) + newline;
147998
148264
  let link4 = "";
147999
148265
  if (indication.link)
148000
- link4 = import_chalk60.default.dim(
148266
+ link4 = import_chalk61.default.dim(
148001
148267
  `${indication.action || "Learn More"}: ${link_default(indication.link)}`
148002
148268
  ) + newline;
148003
148269
  output_manager_default.print(message2 + link4);
148004
148270
  }
148005
148271
  return 0;
148006
148272
  }
148007
- var import_chalk60;
148273
+ var import_chalk61;
148008
148274
  var init_print_deployment_status = __esm({
148009
148275
  "src/util/deploy/print-deployment-status.ts"() {
148010
148276
  "use strict";
148011
- import_chalk60 = __toESM3(require_source());
148277
+ import_chalk61 = __toESM3(require_source());
148012
148278
  init_is_deploying();
148013
148279
  init_link();
148014
148280
  init_emoji();
@@ -148165,6 +148431,11 @@ var init_deploy = __esm({
148165
148431
  this.trackCliFlag("logs");
148166
148432
  }
148167
148433
  }
148434
+ trackCliFlagNoLogs(flag) {
148435
+ if (flag) {
148436
+ this.trackCliFlag("no-logs");
148437
+ }
148438
+ }
148168
148439
  trackCliFlagNoClipboard(flag) {
148169
148440
  if (flag) {
148170
148441
  this.trackCliFlag("no-clipboard");
@@ -148221,7 +148492,7 @@ function handleCreateDeployError(error3, localConfig) {
148221
148492
  }
148222
148493
  if (error3 instanceof DomainVerificationFailed) {
148223
148494
  output_manager_default.error(
148224
- `The domain used as a suffix ${import_chalk61.default.underline(
148495
+ `The domain used as a suffix ${import_chalk62.default.underline(
148225
148496
  error3.meta.domain
148226
148497
  )} is not verified and can't be used as custom suffix.`
148227
148498
  );
@@ -148229,7 +148500,7 @@ function handleCreateDeployError(error3, localConfig) {
148229
148500
  }
148230
148501
  if (error3 instanceof DomainPermissionDenied) {
148231
148502
  output_manager_default.error(
148232
- `You don't have permissions to access the domain used as a suffix ${import_chalk61.default.underline(
148503
+ `You don't have permissions to access the domain used as a suffix ${import_chalk62.default.underline(
148233
148504
  error3.meta.domain
148234
148505
  )}.`
148235
148506
  );
@@ -148255,7 +148526,7 @@ function handleCreateDeployError(error3, localConfig) {
148255
148526
  }
148256
148527
  if (error3 instanceof DomainNotVerified) {
148257
148528
  output_manager_default.error(
148258
- `The domain used as an alias ${import_chalk61.default.underline(
148529
+ `The domain used as an alias ${import_chalk62.default.underline(
148259
148530
  error3.meta.domain
148260
148531
  )} is not verified yet. Please verify it.`
148261
148532
  );
@@ -148274,7 +148545,7 @@ function handleCreateDeployError(error3, localConfig) {
148274
148545
  }
148275
148546
  return error3;
148276
148547
  }
148277
- var import_build_utils14, import_client11, import_error_utils21, import_bytes6, import_chalk61, import_fs_extra20, import_ms12, import_path31, deploy_default, addProcessEnv;
148548
+ var import_build_utils14, import_client11, import_error_utils21, import_bytes6, import_chalk62, import_fs_extra20, import_ms12, import_path31, deploy_default, addProcessEnv;
148278
148549
  var init_deploy2 = __esm({
148279
148550
  "src/commands/deploy/index.ts"() {
148280
148551
  "use strict";
@@ -148282,7 +148553,7 @@ var init_deploy2 = __esm({
148282
148553
  import_client11 = __toESM3(require_dist7());
148283
148554
  import_error_utils21 = __toESM3(require_dist2());
148284
148555
  import_bytes6 = __toESM3(require_bytes());
148285
- import_chalk61 = __toESM3(require_source());
148556
+ import_chalk62 = __toESM3(require_source());
148286
148557
  import_fs_extra20 = __toESM3(require_lib());
148287
148558
  import_ms12 = __toESM3(require_ms());
148288
148559
  import_path31 = require("path");
@@ -148346,6 +148617,7 @@ var init_deploy2 = __esm({
148346
148617
  );
148347
148618
  telemetryClient.trackCliFlagPublic(parsedArguments.flags["--public"]);
148348
148619
  telemetryClient.trackCliFlagLogs(parsedArguments.flags["--logs"]);
148620
+ telemetryClient.trackCliFlagNoLogs(parsedArguments.flags["--no-logs"]);
148349
148621
  telemetryClient.trackCliFlagForce(parsedArguments.flags["--force"]);
148350
148622
  telemetryClient.trackCliFlagWithCache(
148351
148623
  parsedArguments.flags["--with-cache"]
@@ -148355,6 +148627,9 @@ var init_deploy2 = __esm({
148355
148627
  output_manager_default.warn("`--confirm` is deprecated, please use `--yes` instead");
148356
148628
  parsedArguments.flags["--yes"] = parsedArguments.flags["--confirm"];
148357
148629
  }
148630
+ if ("--logs" in parsedArguments.flags) {
148631
+ output_manager_default.warn("`--logs` is deprecated and now the default behavior.");
148632
+ }
148358
148633
  } catch (error4) {
148359
148634
  printError(error4);
148360
148635
  return 1;
@@ -148609,6 +148884,7 @@ var init_deploy2 = __esm({
148609
148884
  const deployStamp = stamp_default();
148610
148885
  let deployment = null;
148611
148886
  const noWait = !!parsedArguments.flags["--no-wait"];
148887
+ const withLogs = "--no-logs" in parsedArguments.flags ? false : true;
148612
148888
  const localConfigurationOverrides = pickOverrides(localConfig);
148613
148889
  const name = project.name;
148614
148890
  if (!name) {
@@ -148644,7 +148920,7 @@ var init_deploy2 = __esm({
148644
148920
  target,
148645
148921
  skipAutoDetectionConfirmation: autoConfirm,
148646
148922
  noWait,
148647
- withLogs: parsedArguments.flags["--logs"],
148923
+ withLogs,
148648
148924
  autoAssignCustomDomains
148649
148925
  };
148650
148926
  if (!localConfig.builds || localConfig.builds.length === 0) {
@@ -148785,15 +149061,15 @@ ${err.stack}`);
148785
149061
  val = process.env[key];
148786
149062
  if (typeof val === "string") {
148787
149063
  log2(
148788
- `Reading ${import_chalk61.default.bold(
148789
- `"${import_chalk61.default.bold(key)}"`
149064
+ `Reading ${import_chalk62.default.bold(
149065
+ `"${import_chalk62.default.bold(key)}"`
148790
149066
  )} from your env (as no value was specified)`
148791
149067
  );
148792
149068
  env[key] = val.replace(/^@/, "\\@");
148793
149069
  } else {
148794
149070
  throw new Error(
148795
- `No value specified for env variable ${import_chalk61.default.bold(
148796
- `"${import_chalk61.default.bold(key)}"`
149071
+ `No value specified for env variable ${import_chalk62.default.bold(
149072
+ `"${import_chalk62.default.bold(key)}"`
148797
149073
  )} and it was not found in your env. If you meant to specify an environment to deploy to, use ${param("--target")}`
148798
149074
  );
148799
149075
  }
@@ -166528,7 +166804,7 @@ function buildMatchEquals(a, b) {
166528
166804
  return false;
166529
166805
  return true;
166530
166806
  }
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;
166807
+ 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
166808
  var init_server = __esm({
166533
166809
  "src/util/dev/server.ts"() {
166534
166810
  "use strict";
@@ -166536,7 +166812,7 @@ var init_server = __esm({
166536
166812
  import_http3 = __toESM3(require("http"));
166537
166813
  import_fs_extra21 = __toESM3(require_lib());
166538
166814
  import_ms14 = __toESM3(require_ms());
166539
- import_chalk62 = __toESM3(require_source());
166815
+ import_chalk63 = __toESM3(require_source());
166540
166816
  import_node_fetch6 = __toESM3(require_lib7());
166541
166817
  import_pluralize7 = __toESM3(require_pluralize());
166542
166818
  import_raw_body = __toESM3(require_raw_body());
@@ -166614,7 +166890,7 @@ var init_server = __esm({
166614
166890
  return;
166615
166891
  }
166616
166892
  const method = req.method || "GET";
166617
- output_manager_default.debug(`${import_chalk62.default.bold(method)} ${req.url}`);
166893
+ output_manager_default.debug(`${import_chalk63.default.bold(method)} ${req.url}`);
166618
166894
  try {
166619
166895
  const vercelConfig = await this.getVercelConfig();
166620
166896
  await this.serveProjectAsNowV2(req, res, requestId, vercelConfig);
@@ -166816,7 +167092,7 @@ var init_server = __esm({
166816
167092
  }
166817
167093
  } catch (err) {
166818
167094
  if ((0, import_error_utils22.isSpawnError)(err) && err.code === "ENOENT") {
166819
- err.message = `Command not found: ${import_chalk62.default.cyan(
167095
+ err.message = `Command not found: ${import_chalk63.default.cyan(
166820
167096
  err.path,
166821
167097
  ...err.spawnargs
166822
167098
  )}
@@ -167073,7 +167349,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
167073
167349
  });
167074
167350
  } catch (err) {
167075
167351
  if ((0, import_error_utils22.isSpawnError)(err) && err.code === "ENOENT") {
167076
- err.message = `Command not found: ${import_chalk62.default.cyan(
167352
+ err.message = `Command not found: ${import_chalk63.default.cyan(
167077
167353
  err.path,
167078
167354
  ...err.spawnargs
167079
167355
  )}
@@ -167773,10 +168049,10 @@ Please ensure that ${cmd(err.path)} is properly installed`;
167773
168049
  */
167774
168050
  async _start(...listenSpec) {
167775
168051
  if (!import_fs_extra21.default.existsSync(this.cwd)) {
167776
- throw new Error(`${import_chalk62.default.bold(this.cwd)} doesn't exist`);
168052
+ throw new Error(`${import_chalk63.default.bold(this.cwd)} doesn't exist`);
167777
168053
  }
167778
168054
  if (!import_fs_extra21.default.lstatSync(this.cwd).isDirectory()) {
167779
- throw new Error(`${import_chalk62.default.bold(this.cwd)} is not a directory`);
168055
+ throw new Error(`${import_chalk63.default.bold(this.cwd)} is not a directory`);
167780
168056
  }
167781
168057
  const { ig } = await (0, import_client12.getVercelIgnore)(this.cwd);
167782
168058
  this.filter = ig.createFilter();
@@ -167790,14 +168066,14 @@ Please ensure that ${cmd(err.path)} is properly installed`;
167790
168066
  if (err.code === "EADDRINUSE") {
167791
168067
  if (typeof listenSpec[0] === "number") {
167792
168068
  output_manager_default.note(
167793
- `Requested port ${import_chalk62.default.yellow(
168069
+ `Requested port ${import_chalk63.default.yellow(
167794
168070
  String(listenSpec[0])
167795
168071
  )} is already in use`
167796
168072
  );
167797
168073
  listenSpec[0]++;
167798
168074
  } else {
167799
168075
  output_manager_default.error(
167800
- `Requested socket ${import_chalk62.default.cyan(
168076
+ `Requested socket ${import_chalk63.default.cyan(
167801
168077
  listenSpec[0]
167802
168078
  )} is already in use`
167803
168079
  );
@@ -168189,7 +168465,7 @@ ${error_code}
168189
168465
  if (this.devProcess) {
168190
168466
  await treeKill(this.devProcess.pid);
168191
168467
  }
168192
- output_manager_default.log(`Running Dev Command ${import_chalk62.default.cyan.bold(`\u201C${devCommand2}\u201D`)}`);
168468
+ output_manager_default.log(`Running Dev Command ${import_chalk63.default.cyan.bold(`\u201C${devCommand2}\u201D`)}`);
168193
168469
  const port = await (0, import_get_port.default)();
168194
168470
  const env = (0, import_build_utils17.cloneEnv)(
168195
168471
  {
@@ -168428,7 +168704,7 @@ async function dev(client2, opts, args2, telemetry2) {
168428
168704
  envValues,
168429
168705
  "vercel-cli:dev"
168430
168706
  )) {
168431
- output_manager_default.debug(`Refreshing ${import_chalk63.default.green(VERCEL_OIDC_TOKEN)}`);
168707
+ output_manager_default.debug(`Refreshing ${import_chalk64.default.green(VERCEL_OIDC_TOKEN)}`);
168432
168708
  envValues[VERCEL_OIDC_TOKEN] = token;
168433
168709
  await devServer.runDevCommand(true);
168434
168710
  telemetry2.trackOidcTokenRefresh(++refreshCount);
@@ -168459,11 +168735,11 @@ async function dev(client2, opts, args2, telemetry2) {
168459
168735
  controller.abort();
168460
168736
  }
168461
168737
  }
168462
- var import_chalk63, import_path36, import_fs_extra22;
168738
+ var import_chalk64, import_path36, import_fs_extra22;
168463
168739
  var init_dev = __esm({
168464
168740
  "src/commands/dev/dev.ts"() {
168465
168741
  "use strict";
168466
- import_chalk63 = __toESM3(require_source());
168742
+ import_chalk64 = __toESM3(require_source());
168467
168743
  import_path36 = require("path");
168468
168744
  import_fs_extra22 = __toESM3(require_lib());
168469
168745
  init_server();
@@ -168636,17 +168912,17 @@ async function main5(client2) {
168636
168912
  function stringifyError(err) {
168637
168913
  if (err instanceof NowError) {
168638
168914
  const errMeta = JSON.stringify(err.meta, null, 2).replace(/\\n/g, "\n");
168639
- return `${import_chalk64.default.red(err.code)} ${err.message}
168915
+ return `${import_chalk65.default.red(err.code)} ${err.message}
168640
168916
  ${errMeta}`;
168641
168917
  }
168642
168918
  return err.stack;
168643
168919
  }
168644
- var import_path37, import_chalk64, import_error_utils23, COMMAND_CONFIG5;
168920
+ var import_path37, import_chalk65, import_error_utils23, COMMAND_CONFIG5;
168645
168921
  var init_dev3 = __esm({
168646
168922
  "src/commands/dev/index.ts"() {
168647
168923
  "use strict";
168648
168924
  import_path37 = __toESM3(require("path"));
168649
- import_chalk64 = __toESM3(require_source());
168925
+ import_chalk65 = __toESM3(require_source());
168650
168926
  init_get_args();
168651
168927
  init_get_subcommand();
168652
168928
  init_now_error();
@@ -168788,9 +169064,9 @@ async function getDNSData(client2, data) {
168788
169064
  const port = await getNumber(client2, `- ${type} port: `);
168789
169065
  const target = await getTrimmedString(client2, `- ${type} target: `);
168790
169066
  output_manager_default.log(
168791
- `${import_chalk65.default.cyan(name)} ${import_chalk65.default.bold(type)} ${import_chalk65.default.cyan(
169067
+ `${import_chalk66.default.cyan(name)} ${import_chalk66.default.bold(type)} ${import_chalk66.default.cyan(
168792
169068
  `${priority}`
168793
- )} ${import_chalk65.default.cyan(`${weight}`)} ${import_chalk65.default.cyan(`${port}`)} ${import_chalk65.default.cyan(
169069
+ )} ${import_chalk66.default.cyan(`${weight}`)} ${import_chalk66.default.cyan(`${port}`)} ${import_chalk66.default.cyan(
168794
169070
  target
168795
169071
  )}.`
168796
169072
  );
@@ -168809,9 +169085,9 @@ async function getDNSData(client2, data) {
168809
169085
  const mxPriority = await getNumber(client2, `- ${type} priority: `);
168810
169086
  const value2 = await getTrimmedString(client2, `- ${type} host: `);
168811
169087
  output_manager_default.log(
168812
- `${import_chalk65.default.cyan(name)} ${import_chalk65.default.bold(type)} ${import_chalk65.default.cyan(
169088
+ `${import_chalk66.default.cyan(name)} ${import_chalk66.default.bold(type)} ${import_chalk66.default.cyan(
168813
169089
  `${mxPriority}`
168814
- )} ${import_chalk65.default.cyan(value2)}`
169090
+ )} ${import_chalk66.default.cyan(value2)}`
168815
169091
  );
168816
169092
  return await verifyData(client2) ? {
168817
169093
  name,
@@ -168821,7 +169097,7 @@ async function getDNSData(client2, data) {
168821
169097
  } : null;
168822
169098
  }
168823
169099
  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)}`);
169100
+ output_manager_default.log(`${import_chalk66.default.cyan(name)} ${import_chalk66.default.bold(type)} ${import_chalk66.default.cyan(value)}`);
168825
169101
  return await verifyData(client2) ? {
168826
169102
  name,
168827
169103
  type,
@@ -168855,11 +169131,11 @@ async function getTrimmedString(client2, label) {
168855
169131
  });
168856
169132
  return res.trim();
168857
169133
  }
168858
- var import_chalk65, RECORD_TYPES;
169134
+ var import_chalk66, RECORD_TYPES;
168859
169135
  var init_get_dns_data = __esm({
168860
169136
  "src/util/dns/get-dns-data.ts"() {
168861
169137
  "use strict";
168862
- import_chalk65 = __toESM3(require_source());
169138
+ import_chalk66 = __toESM3(require_source());
168863
169139
  init_output_manager();
168864
169140
  RECORD_TYPES = ["A", "AAAA", "ALIAS", "CAA", "CNAME", "MX", "SRV", "TXT"];
168865
169141
  }
@@ -168932,7 +169208,7 @@ async function add2(client2, argv) {
168932
169208
  const parsedParams = parseAddArgs(args2);
168933
169209
  if (!parsedParams) {
168934
169210
  output_manager_default.error(
168935
- `Invalid number of arguments. See: ${import_chalk66.default.cyan(
169211
+ `Invalid number of arguments. See: ${import_chalk67.default.cyan(
168936
169212
  `${getCommandName("dns --help")}`
168937
169213
  )} for usage.`
168938
169214
  );
@@ -168959,23 +169235,23 @@ async function add2(client2, argv) {
168959
169235
  const record = await addDNSRecord(client2, domain, data);
168960
169236
  if (record instanceof DomainNotFound) {
168961
169237
  output_manager_default.error(
168962
- `The domain ${domain} can't be found under ${import_chalk66.default.bold(
169238
+ `The domain ${domain} can't be found under ${import_chalk67.default.bold(
168963
169239
  contextName
168964
- )} ${import_chalk66.default.gray(addStamp())}`
169240
+ )} ${import_chalk67.default.gray(addStamp())}`
168965
169241
  );
168966
169242
  return 1;
168967
169243
  }
168968
169244
  if (record instanceof DNSPermissionDenied) {
168969
169245
  output_manager_default.error(
168970
- `You don't have permissions to add records to domain ${domain} under ${import_chalk66.default.bold(
169246
+ `You don't have permissions to add records to domain ${domain} under ${import_chalk67.default.bold(
168971
169247
  contextName
168972
- )} ${import_chalk66.default.gray(addStamp())}`
169248
+ )} ${import_chalk67.default.gray(addStamp())}`
168973
169249
  );
168974
169250
  return 1;
168975
169251
  }
168976
169252
  if (record instanceof DNSInvalidPort) {
168977
169253
  output_manager_default.error(
168978
- `Invalid <port> parameter. A number was expected ${import_chalk66.default.gray(
169254
+ `Invalid <port> parameter. A number was expected ${import_chalk67.default.gray(
168979
169255
  addStamp()
168980
169256
  )}`
168981
169257
  );
@@ -168983,7 +169259,7 @@ async function add2(client2, argv) {
168983
169259
  }
168984
169260
  if (record instanceof DNSInvalidType) {
168985
169261
  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(
169262
+ `Invalid <type> parameter "${record.meta.type}". Expected one of A, AAAA, ALIAS, CAA, CNAME, MX, SRV, TXT ${import_chalk67.default.gray(
168987
169263
  addStamp()
168988
169264
  )}`
168989
169265
  );
@@ -168994,17 +169270,17 @@ async function add2(client2, argv) {
168994
169270
  return 1;
168995
169271
  }
168996
169272
  output_manager_default.success(
168997
- `DNS record for domain ${import_chalk66.default.bold(domain)} ${import_chalk66.default.gray(
169273
+ `DNS record for domain ${import_chalk67.default.bold(domain)} ${import_chalk67.default.gray(
168998
169274
  `(${record.uid})`
168999
- )} created under ${import_chalk66.default.bold(contextName)} ${import_chalk66.default.gray(addStamp())}`
169275
+ )} created under ${import_chalk67.default.bold(contextName)} ${import_chalk67.default.gray(addStamp())}`
169000
169276
  );
169001
169277
  return 0;
169002
169278
  }
169003
- var import_chalk66;
169279
+ var import_chalk67;
169004
169280
  var init_add4 = __esm({
169005
169281
  "src/commands/dns/add.ts"() {
169006
169282
  "use strict";
169007
- import_chalk66 = __toESM3(require_source());
169283
+ import_chalk67 = __toESM3(require_source());
169008
169284
  init_errors_ts();
169009
169285
  init_add_dns_record();
169010
169286
  init_get_scope();
@@ -169024,7 +169300,7 @@ var init_add4 = __esm({
169024
169300
  // src/util/dns/import-zonefile.ts
169025
169301
  async function importZonefile(client2, contextName, domain, zonefilePath) {
169026
169302
  output_manager_default.spinner(
169027
- `Importing Zone file for domain ${domain} under ${import_chalk67.default.bold(contextName)}`
169303
+ `Importing Zone file for domain ${domain} under ${import_chalk68.default.bold(contextName)}`
169028
169304
  );
169029
169305
  const zonefile = (0, import_fs7.readFileSync)((0, import_path38.resolve)(zonefilePath), "utf8");
169030
169306
  try {
@@ -169051,11 +169327,11 @@ async function importZonefile(client2, contextName, domain, zonefilePath) {
169051
169327
  throw err;
169052
169328
  }
169053
169329
  }
169054
- var import_chalk67, import_fs7, import_path38;
169330
+ var import_chalk68, import_fs7, import_path38;
169055
169331
  var init_import_zonefile = __esm({
169056
169332
  "src/util/dns/import-zonefile.ts"() {
169057
169333
  "use strict";
169058
- import_chalk67 = __toESM3(require_source());
169334
+ import_chalk68 = __toESM3(require_source());
169059
169335
  import_fs7 = require("fs");
169060
169336
  import_path38 = require("path");
169061
169337
  init_errors_ts();
@@ -169110,7 +169386,7 @@ async function importZone(client2, argv) {
169110
169386
  });
169111
169387
  if (args2.length !== 2) {
169112
169388
  output_manager_default.error(
169113
- `Invalid number of arguments. Usage: ${import_chalk68.default.cyan(
169389
+ `Invalid number of arguments. Usage: ${import_chalk69.default.cyan(
169114
169390
  `${getCommandName("dns import <domain> <zonefile>")}`
169115
169391
  )}`
169116
169392
  );
@@ -169128,32 +169404,32 @@ async function importZone(client2, argv) {
169128
169404
  );
169129
169405
  if (recordIds instanceof DomainNotFound) {
169130
169406
  output_manager_default.error(
169131
- `The domain ${domain} can't be found under ${import_chalk68.default.bold(
169407
+ `The domain ${domain} can't be found under ${import_chalk69.default.bold(
169132
169408
  contextName
169133
- )} ${import_chalk68.default.gray(addStamp())}`
169409
+ )} ${import_chalk69.default.gray(addStamp())}`
169134
169410
  );
169135
169411
  return 1;
169136
169412
  }
169137
169413
  if (recordIds instanceof InvalidDomain) {
169138
169414
  output_manager_default.error(
169139
- `The domain ${domain} doesn't match with the one found in the Zone file ${import_chalk68.default.gray(
169415
+ `The domain ${domain} doesn't match with the one found in the Zone file ${import_chalk69.default.gray(
169140
169416
  addStamp()
169141
169417
  )}`
169142
169418
  );
169143
169419
  return 1;
169144
169420
  }
169145
169421
  output_manager_default.success(
169146
- `${recordIds.length} DNS records for domain ${import_chalk68.default.bold(
169422
+ `${recordIds.length} DNS records for domain ${import_chalk69.default.bold(
169147
169423
  domain
169148
- )} created under ${import_chalk68.default.bold(contextName)} ${import_chalk68.default.gray(addStamp())}`
169424
+ )} created under ${import_chalk69.default.bold(contextName)} ${import_chalk69.default.gray(addStamp())}`
169149
169425
  );
169150
169426
  return 0;
169151
169427
  }
169152
- var import_chalk68;
169428
+ var import_chalk69;
169153
169429
  var init_import2 = __esm({
169154
169430
  "src/commands/dns/import.ts"() {
169155
169431
  "use strict";
169156
- import_chalk68 = __toESM3(require_source());
169432
+ import_chalk69 = __toESM3(require_source());
169157
169433
  init_get_scope();
169158
169434
  init_errors_ts();
169159
169435
  init_stamp();
@@ -169196,7 +169472,7 @@ function formatTable(header, align, blocks) {
169196
169472
  out += `${block.name}
169197
169473
  `;
169198
169474
  }
169199
- const rows = [header.map((s) => import_chalk69.default.dim(s))].concat(block.rows);
169475
+ const rows = [header.map((s) => import_chalk70.default.dim(s))].concat(block.rows);
169200
169476
  if (rows.length > 0) {
169201
169477
  rows[0][0] = ` ${rows[0][0]}`;
169202
169478
  for (let i = 1; i < rows.length; i++) {
@@ -169216,11 +169492,11 @@ function formatTable(header, align, blocks) {
169216
169492
  }
169217
169493
  return out.slice(0, -1);
169218
169494
  }
169219
- var import_chalk69;
169495
+ var import_chalk70;
169220
169496
  var init_format_table = __esm({
169221
169497
  "src/util/format-table.ts"() {
169222
169498
  "use strict";
169223
- import_chalk69 = __toESM3(require_source());
169499
+ import_chalk70 = __toESM3(require_source());
169224
169500
  init_table();
169225
169501
  init_strlen();
169226
169502
  }
@@ -169304,18 +169580,18 @@ function getAddDomainName(domainNames) {
169304
169580
  ];
169305
169581
  }
169306
169582
  async function getDomainNames(client2, contextName, next) {
169307
- output_manager_default.spinner(`Fetching domains under ${import_chalk70.default.bold(contextName)}`);
169583
+ output_manager_default.spinner(`Fetching domains under ${import_chalk71.default.bold(contextName)}`);
169308
169584
  const { domains: domains2, pagination } = await getDomains(client2, next);
169309
169585
  return { domainNames: domains2.map((domain) => domain.name), pagination };
169310
169586
  }
169311
- var import_chalk70;
169587
+ var import_chalk71;
169312
169588
  var init_get_dns_records = __esm({
169313
169589
  "src/util/dns/get-dns-records.ts"() {
169314
169590
  "use strict";
169315
169591
  init_errors_ts();
169316
169592
  init_get_domain_dns_records();
169317
169593
  init_get_domains();
169318
- import_chalk70 = __toESM3(require_source());
169594
+ import_chalk71 = __toESM3(require_source());
169319
169595
  init_output_manager();
169320
169596
  }
169321
169597
  });
@@ -169380,7 +169656,7 @@ async function ls3(client2, argv) {
169380
169656
  telemetry2.trackCliOptionNext(opts["--next"]);
169381
169657
  if (args2.length > 1) {
169382
169658
  output_manager_default.error(
169383
- `Invalid number of arguments. Usage: ${import_chalk71.default.cyan(
169659
+ `Invalid number of arguments. Usage: ${import_chalk72.default.cyan(
169384
169660
  `${getCommandName("dns ls [domain]")}`
169385
169661
  )}`
169386
169662
  );
@@ -169402,15 +169678,15 @@ async function ls3(client2, argv) {
169402
169678
  );
169403
169679
  if (data instanceof DomainNotFound) {
169404
169680
  output_manager_default.error(
169405
- `The domain ${domainName} can't be found under ${import_chalk71.default.bold(
169681
+ `The domain ${domainName} can't be found under ${import_chalk72.default.bold(
169406
169682
  contextName
169407
- )} ${import_chalk71.default.gray(lsStamp())}`
169683
+ )} ${import_chalk72.default.gray(lsStamp())}`
169408
169684
  );
169409
169685
  return 1;
169410
169686
  }
169411
169687
  const { records, pagination: pagination2 } = data;
169412
169688
  output_manager_default.log(
169413
- `${records.length > 0 ? "Records" : "No records"} found under ${import_chalk71.default.bold(contextName)} ${import_chalk71.default.gray(lsStamp())}`
169689
+ `${records.length > 0 ? "Records" : "No records"} found under ${import_chalk72.default.bold(contextName)} ${import_chalk72.default.gray(lsStamp())}`
169414
169690
  );
169415
169691
  client2.stdout.write(getDNSRecordsTable([{ domainName, records }]));
169416
169692
  if (pagination2 && pagination2.count === 20) {
@@ -169430,9 +169706,9 @@ async function ls3(client2, argv) {
169430
169706
  );
169431
169707
  const nRecords = dnsRecords.reduce((p, r) => r.records.length + p, 0);
169432
169708
  output_manager_default.log(
169433
- `${nRecords > 0 ? "Records" : "No records"} found under ${import_chalk71.default.bold(
169709
+ `${nRecords > 0 ? "Records" : "No records"} found under ${import_chalk72.default.bold(
169434
169710
  contextName
169435
- )} ${import_chalk71.default.gray(lsStamp())}`
169711
+ )} ${import_chalk72.default.gray(lsStamp())}`
169436
169712
  );
169437
169713
  output_manager_default.log(getDNSRecordsTable(dnsRecords));
169438
169714
  if (pagination && pagination.count === 20) {
@@ -169450,7 +169726,7 @@ function getDNSRecordsTable(dnsRecords) {
169450
169726
  ["", "id", "name", "type", "value", "created"],
169451
169727
  ["l", "r", "l", "l", "l", "l"],
169452
169728
  dnsRecords.map(({ domainName, records }) => ({
169453
- name: import_chalk71.default.bold(domainName),
169729
+ name: import_chalk72.default.bold(domainName),
169454
169730
  rows: records.map(getDNSRecordRow)
169455
169731
  }))
169456
169732
  );
@@ -169467,14 +169743,14 @@ function getDNSRecordRow(record) {
169467
169743
  record.name,
169468
169744
  record.type,
169469
169745
  priority ? `${priority} ${record.value}` : record.value,
169470
- import_chalk71.default.gray(isSystemRecord ? "default" : createdAt)
169746
+ import_chalk72.default.gray(isSystemRecord ? "default" : createdAt)
169471
169747
  ];
169472
169748
  }
169473
- var import_chalk71, import_ms16;
169749
+ var import_chalk72, import_ms16;
169474
169750
  var init_ls5 = __esm({
169475
169751
  "src/commands/dns/ls.ts"() {
169476
169752
  "use strict";
169477
- import_chalk71 = __toESM3(require_source());
169753
+ import_chalk72 = __toESM3(require_source());
169478
169754
  import_ms16 = __toESM3(require_ms());
169479
169755
  init_errors_ts();
169480
169756
  init_format_table();
@@ -169559,7 +169835,7 @@ async function rm3(client2, argv) {
169559
169835
  const [recordId] = args2;
169560
169836
  if (args2.length !== 1) {
169561
169837
  output_manager_default.error(
169562
- `Invalid number of arguments. Usage: ${import_chalk72.default.cyan(
169838
+ `Invalid number of arguments. Usage: ${import_chalk73.default.cyan(
169563
169839
  `${getCommandName("dns rm <id>")}`
169564
169840
  )}`
169565
169841
  );
@@ -169585,7 +169861,7 @@ async function rm3(client2, argv) {
169585
169861
  const rmStamp = stamp_default();
169586
169862
  await deleteDNSRecordById(client2, domainName, record.id);
169587
169863
  output_manager_default.success(
169588
- `Record ${import_chalk72.default.gray(`${record.id}`)} removed ${import_chalk72.default.gray(rmStamp())}`
169864
+ `Record ${import_chalk73.default.gray(`${record.id}`)} removed ${import_chalk73.default.gray(rmStamp())}`
169589
169865
  );
169590
169866
  return 0;
169591
169867
  }
@@ -169600,7 +169876,7 @@ function readConfirmation2(client2, msg, domainName, record) {
169600
169876
  `
169601
169877
  );
169602
169878
  output_manager_default.print(
169603
- `${import_chalk72.default.bold.red("> Are you sure?")} ${import_chalk72.default.gray("(y/N) ")}`
169879
+ `${import_chalk73.default.bold.red("> Are you sure?")} ${import_chalk73.default.gray("(y/N) ")}`
169604
169880
  );
169605
169881
  client2.stdin.on("data", (d) => {
169606
169882
  process.stdin.pause();
@@ -169612,19 +169888,19 @@ function getDeleteTableRow(domainName, record) {
169612
169888
  const recordName = `${record.name.length > 0 ? `${record.name}.` : ""}${domainName}`;
169613
169889
  return [
169614
169890
  record.id,
169615
- import_chalk72.default.bold(
169891
+ import_chalk73.default.bold(
169616
169892
  `${recordName} ${record.type} ${record.value} ${record.mxPriority || ""}`
169617
169893
  ),
169618
- import_chalk72.default.gray(
169894
+ import_chalk73.default.gray(
169619
169895
  `${(0, import_ms17.default)(Date.now() - new Date(Number(record.createdAt)).getTime())} ago`
169620
169896
  )
169621
169897
  ];
169622
169898
  }
169623
- var import_chalk72, import_ms17;
169899
+ var import_chalk73, import_ms17;
169624
169900
  var init_rm4 = __esm({
169625
169901
  "src/commands/dns/rm.ts"() {
169626
169902
  "use strict";
169627
- import_chalk72 = __toESM3(require_source());
169903
+ import_chalk73 = __toESM3(require_source());
169628
169904
  import_ms17 = __toESM3(require_ms());
169629
169905
  init_table();
169630
169906
  init_delete_dns_record_by_id();
@@ -169798,16 +170074,16 @@ function formatNSTable(intendedNameservers, currentNameservers, { extraSpace = "
169798
170074
  const rows = [];
169799
170075
  for (let i = 0; i < maxLength; i++) {
169800
170076
  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)
170077
+ sortedIntended[i] || import_chalk74.default.gray("-"),
170078
+ sortedCurrent[i] || import_chalk74.default.gray("-"),
170079
+ sortedIntended[i] === sortedCurrent[i] ? import_chalk74.default.green(chars_default.tick) : import_chalk74.default.red(chars_default.cross)
169804
170080
  ]);
169805
170081
  }
169806
170082
  return table(
169807
170083
  [
169808
170084
  [
169809
- import_chalk73.default.gray("Intended Nameservers"),
169810
- import_chalk73.default.gray("Current Nameservers"),
170085
+ import_chalk74.default.gray("Intended Nameservers"),
170086
+ import_chalk74.default.gray("Current Nameservers"),
169811
170087
  ""
169812
170088
  ],
169813
170089
  ...rows
@@ -169815,11 +170091,11 @@ function formatNSTable(intendedNameservers, currentNameservers, { extraSpace = "
169815
170091
  { hsep: 4 }
169816
170092
  ).replace(/^(.*)/gm, `${extraSpace}$1`);
169817
170093
  }
169818
- var import_chalk73;
170094
+ var import_chalk74;
169819
170095
  var init_format_ns_table = __esm({
169820
170096
  "src/util/format-ns-table.ts"() {
169821
170097
  "use strict";
169822
- import_chalk73 = __toESM3(require_source());
170098
+ import_chalk74 = __toESM3(require_source());
169823
170099
  init_table();
169824
170100
  init_chars();
169825
170101
  }
@@ -169828,7 +170104,7 @@ var init_format_ns_table = __esm({
169828
170104
  // src/util/domains/get-domain.ts
169829
170105
  async function getDomain(client2, contextName, domainName) {
169830
170106
  output_manager_default.spinner(
169831
- `Fetching domain ${domainName} under ${import_chalk74.default.bold(contextName)}`
170107
+ `Fetching domain ${domainName} under ${import_chalk75.default.bold(contextName)}`
169832
170108
  );
169833
170109
  try {
169834
170110
  const { domain } = await client2.fetch(
@@ -169842,11 +170118,11 @@ async function getDomain(client2, contextName, domainName) {
169842
170118
  throw err;
169843
170119
  }
169844
170120
  }
169845
- var import_chalk74;
170121
+ var import_chalk75;
169846
170122
  var init_get_domain = __esm({
169847
170123
  "src/util/domains/get-domain.ts"() {
169848
170124
  "use strict";
169849
- import_chalk74 = __toESM3(require_source());
170125
+ import_chalk75 = __toESM3(require_source());
169850
170126
  init_errors_ts();
169851
170127
  init_output_manager();
169852
170128
  }
@@ -169886,7 +170162,7 @@ var init_get_domain_config = __esm({
169886
170162
  // src/util/projects/add-domain-to-project.ts
169887
170163
  async function addDomainToProject(client2, projectNameOrId, domain) {
169888
170164
  output_manager_default.spinner(
169889
- `Adding domain ${domain} to project ${import_chalk75.default.bold(projectNameOrId)}`
170165
+ `Adding domain ${domain} to project ${import_chalk76.default.bold(projectNameOrId)}`
169890
170166
  );
169891
170167
  try {
169892
170168
  const response = await client2.fetch(
@@ -169915,11 +170191,11 @@ async function addDomainToProject(client2, projectNameOrId, domain) {
169915
170191
  throw err;
169916
170192
  }
169917
170193
  }
169918
- var import_chalk75;
170194
+ var import_chalk76;
169919
170195
  var init_add_domain_to_project = __esm({
169920
170196
  "src/util/projects/add-domain-to-project.ts"() {
169921
170197
  "use strict";
169922
- import_chalk75 = __toESM3(require_source());
170198
+ import_chalk76 = __toESM3(require_source());
169923
170199
  init_errors_ts();
169924
170200
  init_output_manager();
169925
170201
  }
@@ -169928,7 +170204,7 @@ var init_add_domain_to_project = __esm({
169928
170204
  // src/util/projects/remove-domain-from-project.ts
169929
170205
  async function removeDomainFromProject(client2, projectNameOrId, domain) {
169930
170206
  output_manager_default.spinner(
169931
- `Removing domain ${domain} from project ${import_chalk76.default.bold(projectNameOrId)}`
170207
+ `Removing domain ${domain} from project ${import_chalk77.default.bold(projectNameOrId)}`
169932
170208
  );
169933
170209
  try {
169934
170210
  const response = await client2.fetch(
@@ -169947,11 +170223,11 @@ async function removeDomainFromProject(client2, projectNameOrId, domain) {
169947
170223
  throw err;
169948
170224
  }
169949
170225
  }
169950
- var import_chalk76;
170226
+ var import_chalk77;
169951
170227
  var init_remove_domain_from_project = __esm({
169952
170228
  "src/util/projects/remove-domain-from-project.ts"() {
169953
170229
  "use strict";
169954
- import_chalk76 = __toESM3(require_source());
170230
+ import_chalk77 = __toESM3(require_source());
169955
170231
  init_errors_ts();
169956
170232
  init_output_manager();
169957
170233
  }
@@ -170055,7 +170331,7 @@ async function add3(client2, argv) {
170055
170331
  }
170056
170332
  }
170057
170333
  output_manager_default.success(
170058
- `Domain ${import_chalk77.default.bold(domainName)} added to project ${import_chalk77.default.bold(
170334
+ `Domain ${import_chalk78.default.bold(domainName)} added to project ${import_chalk78.default.bold(
170059
170335
  projectName
170060
170336
  )}. ${addStamp()}`
170061
170337
  );
@@ -170076,11 +170352,11 @@ async function add3(client2, argv) {
170076
170352
  "This domain is not configured properly. To configure it you should either:"
170077
170353
  );
170078
170354
  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]")}
170355
+ ` ${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
170356
  `
170081
170357
  );
170082
170358
  output_manager_default.print(
170083
- ` ${import_chalk77.default.grey("b)")} Change your Domains's nameservers to the intended set`
170359
+ ` ${import_chalk78.default.grey("b)")} Change your Domains's nameservers to the intended set`
170084
170360
  );
170085
170361
  output_manager_default.print(
170086
170362
  `
@@ -170103,11 +170379,11 @@ ${formatNSTable(
170103
170379
  }
170104
170380
  return 0;
170105
170381
  }
170106
- var import_chalk77;
170382
+ var import_chalk78;
170107
170383
  var init_add6 = __esm({
170108
170384
  "src/commands/domains/add.ts"() {
170109
170385
  "use strict";
170110
- import_chalk77 = __toESM3(require_source());
170386
+ import_chalk78 = __toESM3(require_source());
170111
170387
  init_errors_ts();
170112
170388
  init_format_ns_table();
170113
170389
  init_get_scope();
@@ -170199,7 +170475,7 @@ async function buy(client2, argv) {
170199
170475
  }
170200
170476
  if (!(await getDomainStatus(client2, domainName)).available) {
170201
170477
  output_manager_default.error(
170202
- `The domain ${param(domainName)} is ${import_chalk78.default.underline(
170478
+ `The domain ${param(domainName)} is ${import_chalk79.default.underline(
170203
170479
  "unavailable"
170204
170480
  )}! ${availableStamp()}`
170205
170481
  );
@@ -170207,22 +170483,22 @@ async function buy(client2, argv) {
170207
170483
  }
170208
170484
  const { period, price } = domainPrice;
170209
170485
  output_manager_default.log(
170210
- `The domain ${param(domainName)} is ${import_chalk78.default.underline(
170486
+ `The domain ${param(domainName)} is ${import_chalk79.default.underline(
170211
170487
  "available"
170212
- )} to buy under ${import_chalk78.default.bold(contextName)}! ${availableStamp()}`
170488
+ )} to buy under ${import_chalk79.default.bold(contextName)}! ${availableStamp()}`
170213
170489
  );
170214
170490
  let autoRenew;
170215
170491
  if (skipConfirmation) {
170216
170492
  autoRenew = true;
170217
170493
  } else {
170218
170494
  if (!await client2.input.confirm(
170219
- `Buy now for ${import_chalk78.default.bold(`$${price}`)} (${`${period}yr${period > 1 ? "s" : ""}`})?`,
170495
+ `Buy now for ${import_chalk79.default.bold(`$${price}`)} (${`${period}yr${period > 1 ? "s" : ""}`})?`,
170220
170496
  false
170221
170497
  )) {
170222
170498
  return 0;
170223
170499
  }
170224
170500
  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(
170501
+ renewalPrice.period === 1 ? `Auto renew yearly for ${import_chalk79.default.bold(`$${price}`)}?` : `Auto renew every ${renewalPrice.period} years for ${import_chalk79.default.bold(
170226
170502
  `$${price}`
170227
170503
  )}?`,
170228
170504
  true
@@ -170306,11 +170582,11 @@ async function buy(client2, argv) {
170306
170582
  }
170307
170583
  return 0;
170308
170584
  }
170309
- var import_chalk78, import_tldts6, import_error_utils24;
170585
+ var import_chalk79, import_tldts6, import_error_utils24;
170310
170586
  var init_buy2 = __esm({
170311
170587
  "src/commands/domains/buy.ts"() {
170312
170588
  "use strict";
170313
- import_chalk78 = __toESM3(require_source());
170589
+ import_chalk79 = __toESM3(require_source());
170314
170590
  import_tldts6 = __toESM3(require_cjs7());
170315
170591
  import_error_utils24 = __toESM3(require_dist2());
170316
170592
  init_errors_ts();
@@ -170491,13 +170767,13 @@ async function transferIn(client2, argv) {
170491
170767
  const { price } = domainPrice;
170492
170768
  const { contextName } = await getScope(client2);
170493
170769
  output_manager_default.log(
170494
- `The domain ${param(domainName)} is ${import_chalk79.default.underline(
170770
+ `The domain ${param(domainName)} is ${import_chalk80.default.underline(
170495
170771
  "available"
170496
- )} to transfer under ${import_chalk79.default.bold(contextName)}! ${availableStamp()}`
170772
+ )} to transfer under ${import_chalk80.default.bold(contextName)}! ${availableStamp()}`
170497
170773
  );
170498
170774
  const authCode = await getAuthCode(client2, opts["--code"]);
170499
170775
  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}`)}?`,
170776
+ transferPolicy === "no-change" ? `Transfer now for ${import_chalk80.default.bold(`$${price}`)}?` : `Transfer now with 1yr renewal for ${import_chalk80.default.bold(`$${price}`)}?`,
170501
170777
  false
170502
170778
  );
170503
170779
  if (!shouldTransfer) {
@@ -170565,11 +170841,11 @@ async function transferIn(client2, argv) {
170565
170841
  );
170566
170842
  return 0;
170567
170843
  }
170568
- var import_chalk79;
170844
+ var import_chalk80;
170569
170845
  var init_transfer_in2 = __esm({
170570
170846
  "src/commands/domains/transfer-in.ts"() {
170571
170847
  "use strict";
170572
- import_chalk79 = __toESM3(require_source());
170848
+ import_chalk80 = __toESM3(require_source());
170573
170849
  init_errors_ts();
170574
170850
  init_get_scope();
170575
170851
  init_param();
@@ -170681,7 +170957,7 @@ async function inspect2(client2, argv) {
170681
170957
  telemetry2.trackCliArgumentDomain(domainName);
170682
170958
  if (args2.length !== 1) {
170683
170959
  output_manager_default.error(
170684
- `Invalid number of arguments. Usage: ${import_chalk80.default.cyan(
170960
+ `Invalid number of arguments. Usage: ${import_chalk81.default.cyan(
170685
170961
  `${getCommandName("domains inspect <domain>")}`
170686
170962
  )}`
170687
170963
  );
@@ -170690,7 +170966,7 @@ async function inspect2(client2, argv) {
170690
170966
  output_manager_default.debug(`Fetching domain info`);
170691
170967
  const { contextName } = await getScope(client2);
170692
170968
  output_manager_default.spinner(
170693
- `Fetching Domain ${domainName} under ${import_chalk80.default.bold(contextName)}`
170969
+ `Fetching Domain ${domainName} under ${import_chalk81.default.bold(contextName)}`
170694
170970
  );
170695
170971
  const information = await fetchInformation({
170696
170972
  client: client2,
@@ -170702,38 +170978,38 @@ async function inspect2(client2, argv) {
170702
170978
  }
170703
170979
  const { domain, projects, renewalPrice, domainConfig } = information;
170704
170980
  output_manager_default.log(
170705
- `Domain ${domainName} found under ${import_chalk80.default.bold(contextName)} ${import_chalk80.default.gray(
170981
+ `Domain ${domainName} found under ${import_chalk81.default.bold(contextName)} ${import_chalk81.default.gray(
170706
170982
  inspectStamp()
170707
170983
  )}`
170708
170984
  );
170709
170985
  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}
170986
+ output_manager_default.print(import_chalk81.default.bold(" General\n\n"));
170987
+ output_manager_default.print(` ${import_chalk81.default.cyan("Name")} ${domain.name}
170712
170988
  `);
170713
170989
  output_manager_default.print(
170714
- ` ${import_chalk80.default.cyan("Registrar")} ${getDomainRegistrar(domain)}
170990
+ ` ${import_chalk81.default.cyan("Registrar")} ${getDomainRegistrar(domain)}
170715
170991
  `
170716
170992
  );
170717
170993
  output_manager_default.print(
170718
- ` ${import_chalk80.default.cyan("Expiration Date")} ${formatDate(domain.expiresAt)}
170994
+ ` ${import_chalk81.default.cyan("Expiration Date")} ${formatDate(domain.expiresAt)}
170719
170995
  `
170720
170996
  );
170721
170997
  output_manager_default.print(
170722
- ` ${import_chalk80.default.cyan("Creator")} ${domain.creator.username}
170998
+ ` ${import_chalk81.default.cyan("Creator")} ${domain.creator.username}
170723
170999
  `
170724
171000
  );
170725
171001
  output_manager_default.print(
170726
- ` ${import_chalk80.default.cyan("Created At")} ${formatDate(domain.createdAt)}
171002
+ ` ${import_chalk81.default.cyan("Created At")} ${formatDate(domain.createdAt)}
170727
171003
  `
170728
171004
  );
170729
- output_manager_default.print(` ${import_chalk80.default.cyan("Edge Network")} yes
171005
+ output_manager_default.print(` ${import_chalk81.default.cyan("Edge Network")} yes
170730
171006
  `);
170731
171007
  output_manager_default.print(
170732
- ` ${import_chalk80.default.cyan("Renewal Price")} ${domain.boughtAt && renewalPrice ? `$${renewalPrice} USD` : import_chalk80.default.gray("-")}
171008
+ ` ${import_chalk81.default.cyan("Renewal Price")} ${domain.boughtAt && renewalPrice ? `$${renewalPrice} USD` : import_chalk81.default.gray("-")}
170733
171009
  `
170734
171010
  );
170735
171011
  output_manager_default.print("\n");
170736
- output_manager_default.print(import_chalk80.default.bold(" Nameservers\n\n"));
171012
+ output_manager_default.print(import_chalk81.default.bold(" Nameservers\n\n"));
170737
171013
  output_manager_default.print(
170738
171014
  `${formatNSTable(domain.intendedNameservers, domain.nameservers, {
170739
171015
  extraSpace: " "
@@ -170742,7 +171018,7 @@ async function inspect2(client2, argv) {
170742
171018
  );
170743
171019
  output_manager_default.print("\n");
170744
171020
  if (Array.isArray(projects) && projects.length > 0) {
170745
- output_manager_default.print(import_chalk80.default.bold(" Projects\n"));
171021
+ output_manager_default.print(import_chalk81.default.bold(" Projects\n"));
170746
171022
  const table2 = formatTable(
170747
171023
  ["Project", "Domains"],
170748
171024
  ["l", "l"],
@@ -170772,11 +171048,11 @@ async function inspect2(client2, argv) {
170772
171048
  null
170773
171049
  );
170774
171050
  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]")}
171051
+ ` ${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
171052
  `
170777
171053
  );
170778
171054
  output_manager_default.print(
170779
- ` ${import_chalk80.default.grey("b)")} Change your Domains's nameservers to the intended set detailed above.
171055
+ ` ${import_chalk81.default.grey("b)")} Change your Domains's nameservers to the intended set detailed above.
170780
171056
 
170781
171057
  `
170782
171058
  );
@@ -170835,11 +171111,11 @@ async function fetchInformation({
170835
171111
  domainConfig
170836
171112
  };
170837
171113
  }
170838
- var import_chalk80;
171114
+ var import_chalk81;
170839
171115
  var init_inspect2 = __esm({
170840
171116
  "src/commands/domains/inspect.ts"() {
170841
171117
  "use strict";
170842
- import_chalk80 = __toESM3(require_source());
171118
+ import_chalk81 = __toESM3(require_source());
170843
171119
  init_errors_ts();
170844
171120
  init_stamp();
170845
171121
  init_format_date();
@@ -170918,21 +171194,21 @@ async function ls4(client2, argv) {
170918
171194
  const lsStamp = stamp_default();
170919
171195
  if (args2.length !== 0) {
170920
171196
  output_manager_default.error(
170921
- `Invalid number of arguments. Usage: ${import_chalk81.default.cyan(
171197
+ `Invalid number of arguments. Usage: ${import_chalk82.default.cyan(
170922
171198
  `${getCommandName("domains ls")}`
170923
171199
  )}`
170924
171200
  );
170925
171201
  return 1;
170926
171202
  }
170927
- output_manager_default.spinner(`Fetching Domains under ${import_chalk81.default.bold(contextName)}`);
171203
+ output_manager_default.spinner(`Fetching Domains under ${import_chalk82.default.bold(contextName)}`);
170928
171204
  const { domains: domains2, pagination } = await getDomains(
170929
171205
  client2,
170930
171206
  ...paginationOptions
170931
171207
  );
170932
171208
  output_manager_default.log(
170933
- `${(0, import_pluralize8.default)("Domain", domains2.length, true)} found under ${import_chalk81.default.bold(
171209
+ `${(0, import_pluralize8.default)("Domain", domains2.length, true)} found under ${import_chalk82.default.bold(
170934
171210
  contextName
170935
- )} ${import_chalk81.default.gray(lsStamp())}`
171211
+ )} ${import_chalk82.default.gray(lsStamp())}`
170936
171212
  );
170937
171213
  if (domains2.length > 0) {
170938
171214
  output_manager_default.print(
@@ -170961,7 +171237,7 @@ function formatDomainsTable(domains2) {
170961
171237
  isDomainExternal(domain) ? "Third Party" : "Vercel",
170962
171238
  expiration,
170963
171239
  domain.creator.username,
170964
- import_chalk81.default.gray(age)
171240
+ import_chalk82.default.gray(age)
170965
171241
  ];
170966
171242
  });
170967
171243
  return formatTable(
@@ -170970,12 +171246,12 @@ function formatDomainsTable(domains2) {
170970
171246
  [{ rows }]
170971
171247
  );
170972
171248
  }
170973
- var import_ms18, import_chalk81, import_pluralize8;
171249
+ var import_ms18, import_chalk82, import_pluralize8;
170974
171250
  var init_ls7 = __esm({
170975
171251
  "src/commands/domains/ls.ts"() {
170976
171252
  "use strict";
170977
171253
  import_ms18 = __toESM3(require_ms());
170978
- import_chalk81 = __toESM3(require_source());
171254
+ import_chalk82 = __toESM3(require_source());
170979
171255
  import_pluralize8 = __toESM3(require_pluralize());
170980
171256
  init_get_domains();
170981
171257
  init_get_scope();
@@ -171124,7 +171400,7 @@ async function rm4(client2, argv) {
171124
171400
  const { contextName } = await getScope(client2);
171125
171401
  if (args2.length !== 1) {
171126
171402
  output_manager_default.error(
171127
- `Invalid number of arguments. Usage: ${import_chalk82.default.cyan(
171403
+ `Invalid number of arguments. Usage: ${import_chalk83.default.cyan(
171128
171404
  `${getCommandName("domains rm <domain>")}`
171129
171405
  )}`
171130
171406
  );
@@ -171133,14 +171409,14 @@ async function rm4(client2, argv) {
171133
171409
  const domain = await getDomainByName(client2, contextName, domainName);
171134
171410
  if (domain instanceof DomainNotFound || domain.name !== domainName) {
171135
171411
  output_manager_default.error(
171136
- `Domain not found by "${domainName}" under ${import_chalk82.default.bold(contextName)}`
171412
+ `Domain not found by "${domainName}" under ${import_chalk83.default.bold(contextName)}`
171137
171413
  );
171138
171414
  output_manager_default.log(`Run ${getCommandName(`domains ls`)} to see your domains.`);
171139
171415
  return 1;
171140
171416
  }
171141
171417
  if (domain instanceof DomainPermissionDenied) {
171142
171418
  output_manager_default.error(
171143
- `You don't have access to the domain ${domainName} under ${import_chalk82.default.bold(
171419
+ `You don't have access to the domain ${domainName} under ${import_chalk83.default.bold(
171144
171420
  contextName
171145
171421
  )}`
171146
171422
  );
@@ -171200,15 +171476,15 @@ async function removeDomain(client2, contextName, skipConfirmation, domain, alia
171200
171476
  domain.name
171201
171477
  );
171202
171478
  if (removeResult instanceof DomainNotFound) {
171203
- output_manager_default.error(`Domain not found under ${import_chalk82.default.bold(contextName)}`);
171479
+ output_manager_default.error(`Domain not found under ${import_chalk83.default.bold(contextName)}`);
171204
171480
  output_manager_default.log(`Run ${getCommandName(`domains ls`)} to see your domains.`);
171205
171481
  return 1;
171206
171482
  }
171207
171483
  if (removeResult instanceof DomainPermissionDenied) {
171208
171484
  output_manager_default.error(
171209
- `You don't have permissions over domain ${import_chalk82.default.underline(
171485
+ `You don't have permissions over domain ${import_chalk83.default.underline(
171210
171486
  removeResult.meta.domain
171211
- )} under ${import_chalk82.default.bold(removeResult.meta.context)}.`
171487
+ )} under ${import_chalk83.default.bold(removeResult.meta.context)}.`
171212
171488
  );
171213
171489
  return 1;
171214
171490
  }
@@ -171250,21 +171526,21 @@ async function removeDomain(client2, contextName, skipConfirmation, domain, alia
171250
171526
  );
171251
171527
  if (aliases.length > 0) {
171252
171528
  output_manager_default.warn(
171253
- `This domain's ${import_chalk82.default.bold(
171529
+ `This domain's ${import_chalk83.default.bold(
171254
171530
  (0, import_pluralize9.default)("alias", aliases.length, true)
171255
171531
  )} will be removed. Run ${getCommandName(`alias ls`)} to list them.`
171256
171532
  );
171257
171533
  }
171258
171534
  if (certs.length > 0) {
171259
171535
  output_manager_default.warn(
171260
- `This domain's ${import_chalk82.default.bold(
171536
+ `This domain's ${import_chalk83.default.bold(
171261
171537
  (0, import_pluralize9.default)("certificate", certs.length, true)
171262
171538
  )} will be removed. Run ${getCommandName(`cert ls`)} to list them.`
171263
171539
  );
171264
171540
  }
171265
171541
  if (suffix2) {
171266
171542
  output_manager_default.warn(
171267
- `The ${import_chalk82.default.bold(`custom suffix`)} associated with this domain.`
171543
+ `The ${import_chalk83.default.bold(`custom suffix`)} associated with this domain.`
171268
171544
  );
171269
171545
  }
171270
171546
  if (!skipConfirmation && !await client2.input.confirm(
@@ -171285,14 +171561,14 @@ async function removeDomain(client2, contextName, skipConfirmation, domain, alia
171285
171561
  attempt + 1
171286
171562
  );
171287
171563
  }
171288
- output_manager_default.success(`Domain ${import_chalk82.default.bold(domain.name)} removed ${removeStamp()}`);
171564
+ output_manager_default.success(`Domain ${import_chalk83.default.bold(domain.name)} removed ${removeStamp()}`);
171289
171565
  return 0;
171290
171566
  }
171291
- var import_chalk82, import_pluralize9;
171567
+ var import_chalk83, import_pluralize9;
171292
171568
  var init_rm6 = __esm({
171293
171569
  "src/commands/domains/rm.ts"() {
171294
171570
  "use strict";
171295
- import_chalk82 = __toESM3(require_source());
171571
+ import_chalk83 = __toESM3(require_source());
171296
171572
  import_pluralize9 = __toESM3(require_pluralize());
171297
171573
  init_errors_ts();
171298
171574
  init_delete_cert_by_id();
@@ -171431,15 +171707,15 @@ async function move2(client2, argv) {
171431
171707
  }
171432
171708
  const domain = await getDomainByName(client2, contextName, domainName);
171433
171709
  if (domain instanceof DomainNotFound) {
171434
- output_manager_default.error(`Domain not found under ${import_chalk83.default.bold(contextName)}`);
171710
+ output_manager_default.error(`Domain not found under ${import_chalk84.default.bold(contextName)}`);
171435
171711
  output_manager_default.log(`Run ${getCommandName(`domains ls`)} to see your domains.`);
171436
171712
  return 1;
171437
171713
  }
171438
171714
  if (domain instanceof DomainPermissionDenied) {
171439
171715
  output_manager_default.error(
171440
- `You don't have permissions over domain ${import_chalk83.default.underline(
171716
+ `You don't have permissions over domain ${import_chalk84.default.underline(
171441
171717
  domain.meta.domain
171442
- )} under ${import_chalk83.default.bold(domain.meta.context)}.`
171718
+ )} under ${import_chalk84.default.bold(domain.meta.context)}.`
171443
171719
  );
171444
171720
  return 1;
171445
171721
  }
@@ -171469,7 +171745,7 @@ async function move2(client2, argv) {
171469
171745
  const aliases = await getDomainAliases(client2, domainName);
171470
171746
  if (aliases.length > 0) {
171471
171747
  output_manager_default.warn(
171472
- `This domain's ${import_chalk83.default.bold(
171748
+ `This domain's ${import_chalk84.default.bold(
171473
171749
  (0, import_pluralize10.default)("alias", aliases.length, true)
171474
171750
  )} will be removed. Run ${getCommandName(`alias ls`)} to list them.`
171475
171751
  );
@@ -171510,21 +171786,21 @@ async function move2(client2, argv) {
171510
171786
  return 1;
171511
171787
  }
171512
171788
  if (moveTokenResult instanceof DomainNotFound) {
171513
- output_manager_default.error(`Domain not found under ${import_chalk83.default.bold(contextName)}`);
171789
+ output_manager_default.error(`Domain not found under ${import_chalk84.default.bold(contextName)}`);
171514
171790
  output_manager_default.log(`Run ${getCommandName(`domains ls`)} to see your domains.`);
171515
171791
  return 1;
171516
171792
  }
171517
171793
  if (moveTokenResult instanceof DomainPermissionDenied) {
171518
171794
  output_manager_default.error(
171519
- `You don't have permissions over domain ${import_chalk83.default.underline(
171795
+ `You don't have permissions over domain ${import_chalk84.default.underline(
171520
171796
  moveTokenResult.meta.domain
171521
- )} under ${import_chalk83.default.bold(moveTokenResult.meta.context)}.`
171797
+ )} under ${import_chalk84.default.bold(moveTokenResult.meta.context)}.`
171522
171798
  );
171523
171799
  return 1;
171524
171800
  }
171525
171801
  if (moveTokenResult instanceof InvalidMoveDestination) {
171526
171802
  output_manager_default.error(
171527
- `Destination ${import_chalk83.default.bold(
171803
+ `Destination ${import_chalk84.default.bold(
171528
171804
  destination
171529
171805
  )} is invalid. Please supply a valid username, email, team slug, user id, or team id.`
171530
171806
  );
@@ -171569,11 +171845,11 @@ async function findDestinationMatch(destination, user, teams2) {
171569
171845
  }
171570
171846
  return null;
171571
171847
  }
171572
- var import_chalk83, import_pluralize10;
171848
+ var import_chalk84, import_pluralize10;
171573
171849
  var init_move2 = __esm({
171574
171850
  "src/commands/domains/move.ts"() {
171575
171851
  "use strict";
171576
- import_chalk83 = __toESM3(require_source());
171852
+ import_chalk84 = __toESM3(require_source());
171577
171853
  import_pluralize10 = __toESM3(require_pluralize());
171578
171854
  init_errors_ts();
171579
171855
  init_get_scope();
@@ -172087,20 +172363,20 @@ async function add4(client2, argv) {
172087
172363
  }
172088
172364
  output_manager_default.print(
172089
172365
  `${prependEmoji(
172090
- `${opts["--force"] ? "Overrode" : "Added"} Environment Variable ${import_chalk84.default.bold(envName)} to Project ${import_chalk84.default.bold(
172366
+ `${opts["--force"] ? "Overrode" : "Added"} Environment Variable ${import_chalk85.default.bold(envName)} to Project ${import_chalk85.default.bold(
172091
172367
  project.name
172092
- )} ${import_chalk84.default.gray(addStamp())}`,
172368
+ )} ${import_chalk85.default.gray(addStamp())}`,
172093
172369
  emoji("success")
172094
172370
  )}
172095
172371
  `
172096
172372
  );
172097
172373
  return 0;
172098
172374
  }
172099
- var import_chalk84;
172375
+ var import_chalk85;
172100
172376
  var init_add8 = __esm({
172101
172377
  "src/commands/env/add.ts"() {
172102
172378
  "use strict";
172103
- import_chalk84 = __toESM3(require_source());
172379
+ import_chalk85 = __toESM3(require_source());
172104
172380
  init_stamp();
172105
172381
  init_add_env_record();
172106
172382
  init_get_env_records();
@@ -172135,7 +172411,7 @@ var init_ellipsis = __esm({
172135
172411
  // src/util/target/format-environment.ts
172136
172412
  function formatEnvironment(orgSlug, projectSlug, environment) {
172137
172413
  const projectUrl = `https://vercel.com/${orgSlug}/${projectSlug}`;
172138
- const boldName = import_chalk85.default.bold(
172414
+ const boldName = import_chalk86.default.bold(
172139
172415
  STANDARD_ENVIRONMENTS.includes(environment.slug) ? (0, import_title4.default)(environment.slug) : environment.slug
172140
172416
  );
172141
172417
  return output_manager_default.link(
@@ -172144,11 +172420,11 @@ function formatEnvironment(orgSlug, projectSlug, environment) {
172144
172420
  { fallback: () => boldName, color: false }
172145
172421
  );
172146
172422
  }
172147
- var import_chalk85, import_title4;
172423
+ var import_chalk86, import_title4;
172148
172424
  var init_format_environment = __esm({
172149
172425
  "src/util/target/format-environment.ts"() {
172150
172426
  "use strict";
172151
- import_chalk85 = __toESM3(require_source());
172427
+ import_chalk86 = __toESM3(require_source());
172152
172428
  init_output_manager();
172153
172429
  init_standard_environments();
172154
172430
  import_title4 = __toESM3(require_lib4());
@@ -172258,11 +172534,11 @@ async function ls5(client2, argv) {
172258
172534
  const projectSlugLink = formatProject(org.slug, project.name);
172259
172535
  if (envs.length === 0) {
172260
172536
  output_manager_default.log(
172261
- `No Environment Variables found for ${projectSlugLink} ${import_chalk86.default.gray(lsStamp())}`
172537
+ `No Environment Variables found for ${projectSlugLink} ${import_chalk87.default.gray(lsStamp())}`
172262
172538
  );
172263
172539
  } else {
172264
172540
  output_manager_default.log(
172265
- `Environment Variables found for ${projectSlugLink} ${import_chalk86.default.gray(lsStamp())}`
172541
+ `Environment Variables found for ${projectSlugLink} ${import_chalk87.default.gray(lsStamp())}`
172266
172542
  );
172267
172543
  client2.stdout.write(`${getTable(link4, envs, customEnvs)}
172268
172544
  `);
@@ -172286,25 +172562,25 @@ function getRow(link4, env, customEnvironments) {
172286
172562
  let value;
172287
172563
  if (env.type === "plain") {
172288
172564
  const singleLineValue = env.value.replace(/\s/g, " ");
172289
- value = import_chalk86.default.gray(ellipsis(singleLineValue, 19));
172565
+ value = import_chalk87.default.gray(ellipsis(singleLineValue, 19));
172290
172566
  } else if (env.type === "system") {
172291
- value = import_chalk86.default.gray.italic(env.value);
172567
+ value = import_chalk87.default.gray.italic(env.value);
172292
172568
  } else {
172293
- value = import_chalk86.default.gray.italic("Encrypted");
172569
+ value = import_chalk87.default.gray.italic("Encrypted");
172294
172570
  }
172295
172571
  const now = Date.now();
172296
172572
  return [
172297
- import_chalk86.default.bold(env.key),
172573
+ import_chalk87.default.bold(env.key),
172298
172574
  value,
172299
172575
  formatEnvironments(link4, env, customEnvironments),
172300
172576
  env.createdAt ? `${(0, import_ms19.default)(now - env.createdAt)} ago` : ""
172301
172577
  ];
172302
172578
  }
172303
- var import_chalk86, import_ms19;
172579
+ var import_chalk87, import_ms19;
172304
172580
  var init_ls9 = __esm({
172305
172581
  "src/commands/env/ls.ts"() {
172306
172582
  "use strict";
172307
- import_chalk86 = __toESM3(require_source());
172583
+ import_chalk87 = __toESM3(require_source());
172308
172584
  import_ms19 = __toESM3(require_ms());
172309
172585
  init_format_table();
172310
172586
  init_get_env_records();
@@ -172464,7 +172740,7 @@ async function rm5(client2, argv) {
172464
172740
  link4,
172465
172741
  env,
172466
172742
  customEnvironments
172467
- )} in Project ${import_chalk87.default.bold(project.name)}. Are you sure?`,
172743
+ )} in Project ${import_chalk88.default.bold(project.name)}. Are you sure?`,
172468
172744
  false
172469
172745
  )) {
172470
172746
  output_manager_default.log("Canceled");
@@ -172483,18 +172759,18 @@ async function rm5(client2, argv) {
172483
172759
  }
172484
172760
  output_manager_default.print(
172485
172761
  `${prependEmoji(
172486
- `Removed Environment Variable ${import_chalk87.default.gray(rmStamp())}`,
172762
+ `Removed Environment Variable ${import_chalk88.default.gray(rmStamp())}`,
172487
172763
  emoji("success")
172488
172764
  )}
172489
172765
  `
172490
172766
  );
172491
172767
  return 0;
172492
172768
  }
172493
- var import_chalk87;
172769
+ var import_chalk88;
172494
172770
  var init_rm8 = __esm({
172495
172771
  "src/commands/env/rm.ts"() {
172496
172772
  "use strict";
172497
- import_chalk87 = __toESM3(require_source());
172773
+ import_chalk88 = __toESM3(require_source());
172498
172774
  init_remove_env_record();
172499
172775
  init_get_env_records();
172500
172776
  init_format_environments();
@@ -172709,7 +172985,7 @@ async function connect(client2, argv) {
172709
172985
  const confirm = Boolean(opts["--yes"]);
172710
172986
  if (args2.length > 1) {
172711
172987
  output_manager_default.error(
172712
- `Invalid number of arguments. Usage: ${import_chalk88.default.cyan(
172988
+ `Invalid number of arguments. Usage: ${import_chalk89.default.cyan(
172713
172989
  `${getCommandName("project connect")}`
172714
172990
  )}`
172715
172991
  );
@@ -172756,7 +173032,7 @@ async function connect(client2, argv) {
172756
173032
  }
172757
173033
  if (!gitConfig) {
172758
173034
  output_manager_default.error(
172759
- `No local Git repository found. Run ${import_chalk88.default.cyan(
173035
+ `No local Git repository found. Run ${import_chalk89.default.cyan(
172760
173036
  "`git clone <url>`"
172761
173037
  )} to clone a remote Git repository first.`
172762
173038
  );
@@ -172765,7 +173041,7 @@ async function connect(client2, argv) {
172765
173041
  const remoteUrls = pluckRemoteUrls(gitConfig);
172766
173042
  if (!remoteUrls) {
172767
173043
  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(
173044
+ `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
173045
  "`git remote --help`"
172770
173046
  )} for more details.`
172771
173047
  );
@@ -172809,7 +173085,7 @@ async function connect(client2, argv) {
172809
173085
  return checkAndConnect;
172810
173086
  }
172811
173087
  output_manager_default.log(
172812
- `Connected ${formatProvider(provider)} repository ${import_chalk88.default.cyan(repoPath)}!`
173088
+ `Connected ${formatProvider(provider)} repository ${import_chalk89.default.cyan(repoPath)}!`
172813
173089
  );
172814
173090
  return 0;
172815
173091
  }
@@ -172846,7 +173122,7 @@ async function connectArg({
172846
173122
  return connect2;
172847
173123
  }
172848
173124
  output_manager_default.log(
172849
- `Connected ${formatProvider(provider)} repository ${import_chalk88.default.cyan(repoPath)}!`
173125
+ `Connected ${formatProvider(provider)} repository ${import_chalk89.default.cyan(repoPath)}!`
172850
173126
  );
172851
173127
  return 0;
172852
173128
  }
@@ -172888,7 +173164,7 @@ async function connectArgWithLocalGit({
172888
173164
  return connect2;
172889
173165
  }
172890
173166
  output_manager_default.log(
172891
- `Connected ${formatProvider(provider)} repository ${import_chalk88.default.cyan(
173167
+ `Connected ${formatProvider(provider)} repository ${import_chalk89.default.cyan(
172892
173168
  repoPath
172893
173169
  )}!`
172894
173170
  );
@@ -172919,7 +173195,7 @@ async function promptConnectArg({
172919
173195
  return true;
172920
173196
  }
172921
173197
  output_manager_default.log(
172922
- `Found a repository in your local Git Config: ${import_chalk88.default.cyan(
173198
+ `Found a repository in your local Git Config: ${import_chalk89.default.cyan(
172923
173199
  Object.values(remoteUrls)[0]
172924
173200
  )}`
172925
173201
  );
@@ -172966,7 +173242,7 @@ async function checkExistsAndConnect({
172966
173242
  const isSameRepo = connectedProvider === provider && connectedOrg === gitOrg && connectedRepo === repo;
172967
173243
  if (isSameRepo) {
172968
173244
  output_manager_default.log(
172969
- `${import_chalk88.default.cyan(connectedRepoPath)} is already connected to your project.`
173245
+ `${import_chalk89.default.cyan(connectedRepoPath)} is already connected to your project.`
172970
173246
  );
172971
173247
  return 1;
172972
173248
  }
@@ -172997,7 +173273,7 @@ async function confirmRepoConnect(client2, yes, connectedProvider, connectedRepo
172997
173273
  shouldReplaceProject = await client2.input.confirm(
172998
173274
  `Looks like you already have a ${formatProvider(
172999
173275
  connectedProvider
173000
- )} repository connected: ${import_chalk88.default.cyan(
173276
+ )} repository connected: ${import_chalk89.default.cyan(
173001
173277
  connectedRepoPath
173002
173278
  )}. Do you want to replace it?`,
173003
173279
  true
@@ -173012,7 +173288,7 @@ async function selectRemoteUrl(client2, remoteUrls) {
173012
173288
  const choices = [];
173013
173289
  for (const [urlKey, urlValue] of Object.entries(remoteUrls)) {
173014
173290
  choices.push({
173015
- name: `${urlValue} ${import_chalk88.default.gray(`(${urlKey})`)}`,
173291
+ name: `${urlValue} ${import_chalk89.default.gray(`(${urlKey})`)}`,
173016
173292
  value: urlValue,
173017
173293
  short: urlKey
173018
173294
  });
@@ -173022,11 +173298,11 @@ async function selectRemoteUrl(client2, remoteUrls) {
173022
173298
  choices
173023
173299
  });
173024
173300
  }
173025
- var import_chalk88, import_path39;
173301
+ var import_chalk89, import_path39;
173026
173302
  var init_connect2 = __esm({
173027
173303
  "src/commands/git/connect.ts"() {
173028
173304
  "use strict";
173029
- import_chalk88 = __toESM3(require_source());
173305
+ import_chalk89 = __toESM3(require_source());
173030
173306
  import_path39 = require("path");
173031
173307
  init_create_git_meta();
173032
173308
  init_list();
@@ -173090,7 +173366,7 @@ async function disconnect(client2, argv) {
173090
173366
  }
173091
173367
  if (args2.length !== 0) {
173092
173368
  output_manager_default.error(
173093
- `Invalid number of arguments. Usage: ${import_chalk89.default.cyan(
173369
+ `Invalid number of arguments. Usage: ${import_chalk90.default.cyan(
173094
173370
  `${getCommandName("project disconnect")}`
173095
173371
  )}`
173096
173372
  );
@@ -173112,14 +173388,14 @@ async function disconnect(client2, argv) {
173112
173388
  `
173113
173389
  );
173114
173390
  const confirmDisconnect = autoConfirm || await client2.input.confirm(
173115
- `Are you sure you want to disconnect ${import_chalk89.default.cyan(
173391
+ `Are you sure you want to disconnect ${import_chalk90.default.cyan(
173116
173392
  `${linkOrg}/${repo}`
173117
173393
  )} from your project?`,
173118
173394
  false
173119
173395
  );
173120
173396
  if (confirmDisconnect) {
173121
173397
  await disconnectGitProvider(client2, org, project.id);
173122
- output_manager_default.log(`Disconnected ${import_chalk89.default.cyan(`${linkOrg}/${repo}`)}.`);
173398
+ output_manager_default.log(`Disconnected ${import_chalk90.default.cyan(`${linkOrg}/${repo}`)}.`);
173123
173399
  } else {
173124
173400
  output_manager_default.log("Canceled");
173125
173401
  }
@@ -173133,11 +173409,11 @@ async function disconnect(client2, argv) {
173133
173409
  }
173134
173410
  return 0;
173135
173411
  }
173136
- var import_chalk89;
173412
+ var import_chalk90;
173137
173413
  var init_disconnect2 = __esm({
173138
173414
  "src/commands/git/disconnect.ts"() {
173139
173415
  "use strict";
173140
- import_chalk89 = __toESM3(require_source());
173416
+ import_chalk90 = __toESM3(require_source());
173141
173417
  init_pkg_name();
173142
173418
  init_connect_git_provider();
173143
173419
  init_output_manager();
@@ -173238,25 +173514,6 @@ var init_git2 = __esm({
173238
173514
  }
173239
173515
  });
173240
173516
 
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
173517
  // ../../node_modules/.pnpm/jaro-winkler@0.2.8/node_modules/jaro-winkler/index.js
173261
173518
  var require_jaro_winkler = __commonJS2({
173262
173519
  "../../node_modules/.pnpm/jaro-winkler@0.2.8/node_modules/jaro-winkler/index.js"(exports2, module2) {