@fern-api/fern-api-dev 3.52.0-40-g0bd25791343 → 3.52.0-61-g25c914de7fa

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/cli.cjs +958 -945
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -55369,15 +55369,15 @@ var require_tmp = __commonJS({
55369
55369
  "../../../node_modules/.pnpm/tmp@0.2.5/node_modules/tmp/lib/tmp.js"(exports2, module4) {
55370
55370
  "use strict";
55371
55371
  var fs33 = require("fs");
55372
- var os19 = require("os");
55372
+ var os18 = require("os");
55373
55373
  var path86 = require("path");
55374
55374
  var crypto5 = require("crypto");
55375
- var _c4 = { fs: fs33.constants, os: os19.constants };
55375
+ var _c4 = { fs: fs33.constants, os: os18.constants };
55376
55376
  var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
55377
55377
  var TEMPLATE_PATTERN = /XXXXXX/;
55378
55378
  var DEFAULT_TRIES = 3;
55379
55379
  var CREATE_FLAGS = (_c4.O_CREAT || _c4.fs.O_CREAT) | (_c4.O_EXCL || _c4.fs.O_EXCL) | (_c4.O_RDWR || _c4.fs.O_RDWR);
55380
- var IS_WIN32 = os19.platform() === "win32";
55380
+ var IS_WIN32 = os18.platform() === "win32";
55381
55381
  var EBADF = _c4.EBADF || _c4.os.errno.EBADF;
55382
55382
  var ENOENT2 = _c4.ENOENT || _c4.os.errno.ENOENT;
55383
55383
  var DIR_MODE = 448;
@@ -55700,10 +55700,10 @@ var require_tmp = __commonJS({
55700
55700
  _gracefulCleanup = true;
55701
55701
  }
55702
55702
  function _getTmpDir(options2, cb2) {
55703
- return fs33.realpath(options2 && options2.tmpdir || os19.tmpdir(), cb2);
55703
+ return fs33.realpath(options2 && options2.tmpdir || os18.tmpdir(), cb2);
55704
55704
  }
55705
55705
  function _getTmpDirSync(options2) {
55706
- return fs33.realpathSync(options2 && options2.tmpdir || os19.tmpdir());
55706
+ return fs33.realpathSync(options2 && options2.tmpdir || os18.tmpdir());
55707
55707
  }
55708
55708
  process.addListener(EXIT3, _garbageCollector);
55709
55709
  Object.defineProperty(module4.exports, "tmpdir", {
@@ -58097,7 +58097,7 @@ var require_has_flag = __commonJS({
58097
58097
  var require_supports_color = __commonJS({
58098
58098
  "../../../node_modules/.pnpm/supports-color@4.5.0/node_modules/supports-color/index.js"(exports2, module4) {
58099
58099
  "use strict";
58100
- var os19 = require("os");
58100
+ var os18 = require("os");
58101
58101
  var hasFlag3 = require_has_flag();
58102
58102
  var env6 = process.env;
58103
58103
  var support = (level) => {
@@ -58128,7 +58128,7 @@ var require_supports_color = __commonJS({
58128
58128
  return 0;
58129
58129
  }
58130
58130
  if (process.platform === "win32") {
58131
- const osRelease = os19.release().split(".");
58131
+ const osRelease = os18.release().split(".");
58132
58132
  if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
58133
58133
  return 2;
58134
58134
  }
@@ -79228,7 +79228,7 @@ var require_stdio = __commonJS({
79228
79228
  var require_kill = __commonJS({
79229
79229
  "../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports2, module4) {
79230
79230
  "use strict";
79231
- var os19 = require("os");
79231
+ var os18 = require("os");
79232
79232
  var onExit2 = require_signal_exit();
79233
79233
  var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
79234
79234
  var spawnedKill = (kill, signal = "SIGTERM", options2 = {}) => {
@@ -79252,7 +79252,7 @@ var require_kill = __commonJS({
79252
79252
  return isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
79253
79253
  };
79254
79254
  var isSigterm = (signal) => {
79255
- return signal === os19.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
79255
+ return signal === os18.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
79256
79256
  };
79257
79257
  var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
79258
79258
  if (forceKillAfterTimeout === true) {
@@ -82170,9 +82170,9 @@ var require_conf = __commonJS({
82170
82170
  var require_defaults2 = __commonJS({
82171
82171
  "../../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/defaults.js"(exports2) {
82172
82172
  "use strict";
82173
- var os19 = require("os");
82173
+ var os18 = require("os");
82174
82174
  var path86 = require("path");
82175
- var temp = os19.tmpdir();
82175
+ var temp = os18.tmpdir();
82176
82176
  var uidOrPid = process.getuid ? process.getuid() : process.pid;
82177
82177
  var hasUnicode2 = () => true;
82178
82178
  var isWindows4 = process.platform === "win32";
@@ -82183,7 +82183,7 @@ var require_defaults2 = __commonJS({
82183
82183
  var umask = {
82184
82184
  fromString: () => process.umask()
82185
82185
  };
82186
- var home = os19.homedir();
82186
+ var home = os18.homedir();
82187
82187
  if (home) {
82188
82188
  process.env.HOME = home;
82189
82189
  } else {
@@ -1166302,7 +1166302,7 @@ var require_has_flag2 = __commonJS({
1166302
1166302
  var require_supports_color2 = __commonJS({
1166303
1166303
  "../../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports2, module4) {
1166304
1166304
  "use strict";
1166305
- var os19 = require("os");
1166305
+ var os18 = require("os");
1166306
1166306
  var tty3 = require("tty");
1166307
1166307
  var hasFlag3 = require_has_flag2();
1166308
1166308
  var { env: env6 } = process;
@@ -1166350,7 +1166350,7 @@ var require_supports_color2 = __commonJS({
1166350
1166350
  return min;
1166351
1166351
  }
1166352
1166352
  if (process.platform === "win32") {
1166353
- const osRelease = os19.release().split(".");
1166353
+ const osRelease = os18.release().split(".");
1166354
1166354
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
1166355
1166355
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
1166356
1166356
  }
@@ -1198237,14 +1198237,14 @@ var require_is_docker = __commonJS({
1198237
1198237
  var require_is_wsl = __commonJS({
1198238
1198238
  "../../../node_modules/.pnpm/is-wsl@2.2.0/node_modules/is-wsl/index.js"(exports2, module4) {
1198239
1198239
  "use strict";
1198240
- var os19 = require("os");
1198240
+ var os18 = require("os");
1198241
1198241
  var fs33 = require("fs");
1198242
1198242
  var isDocker = require_is_docker();
1198243
1198243
  var isWsl = () => {
1198244
1198244
  if (process.platform !== "linux") {
1198245
1198245
  return false;
1198246
1198246
  }
1198247
- if (os19.release().toLowerCase().includes("microsoft")) {
1198247
+ if (os18.release().toLowerCase().includes("microsoft")) {
1198248
1198248
  if (isDocker()) {
1198249
1198249
  return false;
1198250
1198250
  }
@@ -1260387,9 +1260387,9 @@ var require_env_paths = __commonJS({
1260387
1260387
  "../../../node_modules/.pnpm/env-paths@2.2.1/node_modules/env-paths/index.js"(exports2, module4) {
1260388
1260388
  "use strict";
1260389
1260389
  var path86 = require("path");
1260390
- var os19 = require("os");
1260391
- var homedir9 = os19.homedir();
1260392
- var tmpdir3 = os19.tmpdir();
1260390
+ var os18 = require("os");
1260391
+ var homedir9 = os18.homedir();
1260392
+ var tmpdir3 = os18.tmpdir();
1260393
1260393
  var { env: env6 } = process;
1260394
1260394
  var macos = (name3) => {
1260395
1260395
  const library = path86.join(homedir9, "Library");
@@ -1314554,6 +1314554,495 @@ function visitDiscriminatedUnion(item, discriminant8 = "type") {
1314554
1314554
  };
1314555
1314555
  }
1314556
1314556
 
1314557
+ // ../../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/ansi-styles/index.js
1314558
+ var ANSI_BACKGROUND_OFFSET = 10;
1314559
+ var wrapAnsi16 = (offset2 = 0) => (code6) => `\x1B[${code6 + offset2}m`;
1314560
+ var wrapAnsi256 = (offset2 = 0) => (code6) => `\x1B[${38 + offset2};5;${code6}m`;
1314561
+ var wrapAnsi16m = (offset2 = 0) => (red, green, blue) => `\x1B[${38 + offset2};2;${red};${green};${blue}m`;
1314562
+ var styles = {
1314563
+ modifier: {
1314564
+ reset: [0, 0],
1314565
+ // 21 isn't widely supported and 22 does the same thing
1314566
+ bold: [1, 22],
1314567
+ dim: [2, 22],
1314568
+ italic: [3, 23],
1314569
+ underline: [4, 24],
1314570
+ overline: [53, 55],
1314571
+ inverse: [7, 27],
1314572
+ hidden: [8, 28],
1314573
+ strikethrough: [9, 29]
1314574
+ },
1314575
+ color: {
1314576
+ black: [30, 39],
1314577
+ red: [31, 39],
1314578
+ green: [32, 39],
1314579
+ yellow: [33, 39],
1314580
+ blue: [34, 39],
1314581
+ magenta: [35, 39],
1314582
+ cyan: [36, 39],
1314583
+ white: [37, 39],
1314584
+ // Bright color
1314585
+ blackBright: [90, 39],
1314586
+ gray: [90, 39],
1314587
+ // Alias of `blackBright`
1314588
+ grey: [90, 39],
1314589
+ // Alias of `blackBright`
1314590
+ redBright: [91, 39],
1314591
+ greenBright: [92, 39],
1314592
+ yellowBright: [93, 39],
1314593
+ blueBright: [94, 39],
1314594
+ magentaBright: [95, 39],
1314595
+ cyanBright: [96, 39],
1314596
+ whiteBright: [97, 39]
1314597
+ },
1314598
+ bgColor: {
1314599
+ bgBlack: [40, 49],
1314600
+ bgRed: [41, 49],
1314601
+ bgGreen: [42, 49],
1314602
+ bgYellow: [43, 49],
1314603
+ bgBlue: [44, 49],
1314604
+ bgMagenta: [45, 49],
1314605
+ bgCyan: [46, 49],
1314606
+ bgWhite: [47, 49],
1314607
+ // Bright color
1314608
+ bgBlackBright: [100, 49],
1314609
+ bgGray: [100, 49],
1314610
+ // Alias of `bgBlackBright`
1314611
+ bgGrey: [100, 49],
1314612
+ // Alias of `bgBlackBright`
1314613
+ bgRedBright: [101, 49],
1314614
+ bgGreenBright: [102, 49],
1314615
+ bgYellowBright: [103, 49],
1314616
+ bgBlueBright: [104, 49],
1314617
+ bgMagentaBright: [105, 49],
1314618
+ bgCyanBright: [106, 49],
1314619
+ bgWhiteBright: [107, 49]
1314620
+ }
1314621
+ };
1314622
+ var modifierNames = Object.keys(styles.modifier);
1314623
+ var foregroundColorNames = Object.keys(styles.color);
1314624
+ var backgroundColorNames = Object.keys(styles.bgColor);
1314625
+ var colorNames = [...foregroundColorNames, ...backgroundColorNames];
1314626
+ function assembleStyles() {
1314627
+ const codes = /* @__PURE__ */ new Map();
1314628
+ for (const [groupName, group] of Object.entries(styles)) {
1314629
+ for (const [styleName, style2] of Object.entries(group)) {
1314630
+ styles[styleName] = {
1314631
+ open: `\x1B[${style2[0]}m`,
1314632
+ close: `\x1B[${style2[1]}m`
1314633
+ };
1314634
+ group[styleName] = styles[styleName];
1314635
+ codes.set(style2[0], style2[1]);
1314636
+ }
1314637
+ Object.defineProperty(styles, groupName, {
1314638
+ value: group,
1314639
+ enumerable: false
1314640
+ });
1314641
+ }
1314642
+ Object.defineProperty(styles, "codes", {
1314643
+ value: codes,
1314644
+ enumerable: false
1314645
+ });
1314646
+ styles.color.close = "\x1B[39m";
1314647
+ styles.bgColor.close = "\x1B[49m";
1314648
+ styles.color.ansi = wrapAnsi16();
1314649
+ styles.color.ansi256 = wrapAnsi256();
1314650
+ styles.color.ansi16m = wrapAnsi16m();
1314651
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
1314652
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
1314653
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
1314654
+ Object.defineProperties(styles, {
1314655
+ rgbToAnsi256: {
1314656
+ value(red, green, blue) {
1314657
+ if (red === green && green === blue) {
1314658
+ if (red < 8) {
1314659
+ return 16;
1314660
+ }
1314661
+ if (red > 248) {
1314662
+ return 231;
1314663
+ }
1314664
+ return Math.round((red - 8) / 247 * 24) + 232;
1314665
+ }
1314666
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
1314667
+ },
1314668
+ enumerable: false
1314669
+ },
1314670
+ hexToRgb: {
1314671
+ value(hex3) {
1314672
+ const matches2 = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex3.toString(16));
1314673
+ if (!matches2) {
1314674
+ return [0, 0, 0];
1314675
+ }
1314676
+ let [colorString] = matches2;
1314677
+ if (colorString.length === 3) {
1314678
+ colorString = [...colorString].map((character) => character + character).join("");
1314679
+ }
1314680
+ const integer2 = Number.parseInt(colorString, 16);
1314681
+ return [
1314682
+ /* eslint-disable no-bitwise */
1314683
+ integer2 >> 16 & 255,
1314684
+ integer2 >> 8 & 255,
1314685
+ integer2 & 255
1314686
+ /* eslint-enable no-bitwise */
1314687
+ ];
1314688
+ },
1314689
+ enumerable: false
1314690
+ },
1314691
+ hexToAnsi256: {
1314692
+ value: (hex3) => styles.rgbToAnsi256(...styles.hexToRgb(hex3)),
1314693
+ enumerable: false
1314694
+ },
1314695
+ ansi256ToAnsi: {
1314696
+ value(code6) {
1314697
+ if (code6 < 8) {
1314698
+ return 30 + code6;
1314699
+ }
1314700
+ if (code6 < 16) {
1314701
+ return 90 + (code6 - 8);
1314702
+ }
1314703
+ let red;
1314704
+ let green;
1314705
+ let blue;
1314706
+ if (code6 >= 232) {
1314707
+ red = ((code6 - 232) * 10 + 8) / 255;
1314708
+ green = red;
1314709
+ blue = red;
1314710
+ } else {
1314711
+ code6 -= 16;
1314712
+ const remainder = code6 % 36;
1314713
+ red = Math.floor(code6 / 36) / 5;
1314714
+ green = Math.floor(remainder / 6) / 5;
1314715
+ blue = remainder % 6 / 5;
1314716
+ }
1314717
+ const value = Math.max(red, green, blue) * 2;
1314718
+ if (value === 0) {
1314719
+ return 30;
1314720
+ }
1314721
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
1314722
+ if (value === 2) {
1314723
+ result += 60;
1314724
+ }
1314725
+ return result;
1314726
+ },
1314727
+ enumerable: false
1314728
+ },
1314729
+ rgbToAnsi: {
1314730
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
1314731
+ enumerable: false
1314732
+ },
1314733
+ hexToAnsi: {
1314734
+ value: (hex3) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex3)),
1314735
+ enumerable: false
1314736
+ }
1314737
+ });
1314738
+ return styles;
1314739
+ }
1314740
+ var ansiStyles = assembleStyles();
1314741
+ var ansi_styles_default = ansiStyles;
1314742
+
1314743
+ // ../../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/supports-color/index.js
1314744
+ var import_node_process = __toESM(require("process"), 1);
1314745
+ var import_node_os = __toESM(require("os"), 1);
1314746
+ var import_node_tty = __toESM(require("tty"), 1);
1314747
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
1314748
+ const prefix2 = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
1314749
+ const position4 = argv.indexOf(prefix2 + flag);
1314750
+ const terminatorPosition = argv.indexOf("--");
1314751
+ return position4 !== -1 && (terminatorPosition === -1 || position4 < terminatorPosition);
1314752
+ }
1314753
+ var { env: env2 } = import_node_process.default;
1314754
+ var flagForceColor;
1314755
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
1314756
+ flagForceColor = 0;
1314757
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
1314758
+ flagForceColor = 1;
1314759
+ }
1314760
+ function envForceColor() {
1314761
+ if ("FORCE_COLOR" in env2) {
1314762
+ if (env2.FORCE_COLOR === "true") {
1314763
+ return 1;
1314764
+ }
1314765
+ if (env2.FORCE_COLOR === "false") {
1314766
+ return 0;
1314767
+ }
1314768
+ return env2.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
1314769
+ }
1314770
+ }
1314771
+ function translateLevel(level) {
1314772
+ if (level === 0) {
1314773
+ return false;
1314774
+ }
1314775
+ return {
1314776
+ level,
1314777
+ hasBasic: true,
1314778
+ has256: level >= 2,
1314779
+ has16m: level >= 3
1314780
+ };
1314781
+ }
1314782
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
1314783
+ const noFlagForceColor = envForceColor();
1314784
+ if (noFlagForceColor !== void 0) {
1314785
+ flagForceColor = noFlagForceColor;
1314786
+ }
1314787
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
1314788
+ if (forceColor === 0) {
1314789
+ return 0;
1314790
+ }
1314791
+ if (sniffFlags) {
1314792
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
1314793
+ return 3;
1314794
+ }
1314795
+ if (hasFlag("color=256")) {
1314796
+ return 2;
1314797
+ }
1314798
+ }
1314799
+ if ("TF_BUILD" in env2 && "AGENT_NAME" in env2) {
1314800
+ return 1;
1314801
+ }
1314802
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
1314803
+ return 0;
1314804
+ }
1314805
+ const min = forceColor || 0;
1314806
+ if (env2.TERM === "dumb") {
1314807
+ return min;
1314808
+ }
1314809
+ if (import_node_process.default.platform === "win32") {
1314810
+ const osRelease = import_node_os.default.release().split(".");
1314811
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
1314812
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
1314813
+ }
1314814
+ return 1;
1314815
+ }
1314816
+ if ("CI" in env2) {
1314817
+ if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key2) => key2 in env2)) {
1314818
+ return 3;
1314819
+ }
1314820
+ if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign2) => sign2 in env2) || env2.CI_NAME === "codeship") {
1314821
+ return 1;
1314822
+ }
1314823
+ return min;
1314824
+ }
1314825
+ if ("TEAMCITY_VERSION" in env2) {
1314826
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
1314827
+ }
1314828
+ if (env2.COLORTERM === "truecolor") {
1314829
+ return 3;
1314830
+ }
1314831
+ if (env2.TERM === "xterm-kitty") {
1314832
+ return 3;
1314833
+ }
1314834
+ if ("TERM_PROGRAM" in env2) {
1314835
+ const version7 = Number.parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1314836
+ switch (env2.TERM_PROGRAM) {
1314837
+ case "iTerm.app": {
1314838
+ return version7 >= 3 ? 3 : 2;
1314839
+ }
1314840
+ case "Apple_Terminal": {
1314841
+ return 2;
1314842
+ }
1314843
+ }
1314844
+ }
1314845
+ if (/-256(color)?$/i.test(env2.TERM)) {
1314846
+ return 2;
1314847
+ }
1314848
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
1314849
+ return 1;
1314850
+ }
1314851
+ if ("COLORTERM" in env2) {
1314852
+ return 1;
1314853
+ }
1314854
+ return min;
1314855
+ }
1314856
+ function createSupportsColor(stream5, options2 = {}) {
1314857
+ const level = _supportsColor(stream5, {
1314858
+ streamIsTTY: stream5 && stream5.isTTY,
1314859
+ ...options2
1314860
+ });
1314861
+ return translateLevel(level);
1314862
+ }
1314863
+ var supportsColor = {
1314864
+ stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
1314865
+ stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
1314866
+ };
1314867
+ var supports_color_default = supportsColor;
1314868
+
1314869
+ // ../../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/utilities.js
1314870
+ function stringReplaceAll(string14, substring, replacer) {
1314871
+ let index3 = string14.indexOf(substring);
1314872
+ if (index3 === -1) {
1314873
+ return string14;
1314874
+ }
1314875
+ const substringLength = substring.length;
1314876
+ let endIndex = 0;
1314877
+ let returnValue = "";
1314878
+ do {
1314879
+ returnValue += string14.slice(endIndex, index3) + substring + replacer;
1314880
+ endIndex = index3 + substringLength;
1314881
+ index3 = string14.indexOf(substring, endIndex);
1314882
+ } while (index3 !== -1);
1314883
+ returnValue += string14.slice(endIndex);
1314884
+ return returnValue;
1314885
+ }
1314886
+ function stringEncaseCRLFWithFirstIndex(string14, prefix2, postfix, index3) {
1314887
+ let endIndex = 0;
1314888
+ let returnValue = "";
1314889
+ do {
1314890
+ const gotCR = string14[index3 - 1] === "\r";
1314891
+ returnValue += string14.slice(endIndex, gotCR ? index3 - 1 : index3) + prefix2 + (gotCR ? "\r\n" : "\n") + postfix;
1314892
+ endIndex = index3 + 1;
1314893
+ index3 = string14.indexOf("\n", endIndex);
1314894
+ } while (index3 !== -1);
1314895
+ returnValue += string14.slice(endIndex);
1314896
+ return returnValue;
1314897
+ }
1314898
+
1314899
+ // ../../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/index.js
1314900
+ var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
1314901
+ var GENERATOR = Symbol("GENERATOR");
1314902
+ var STYLER = Symbol("STYLER");
1314903
+ var IS_EMPTY = Symbol("IS_EMPTY");
1314904
+ var levelMapping = [
1314905
+ "ansi",
1314906
+ "ansi",
1314907
+ "ansi256",
1314908
+ "ansi16m"
1314909
+ ];
1314910
+ var styles2 = /* @__PURE__ */ Object.create(null);
1314911
+ var applyOptions = (object9, options2 = {}) => {
1314912
+ if (options2.level && !(Number.isInteger(options2.level) && options2.level >= 0 && options2.level <= 3)) {
1314913
+ throw new Error("The `level` option should be an integer from 0 to 3");
1314914
+ }
1314915
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
1314916
+ object9.level = options2.level === void 0 ? colorLevel : options2.level;
1314917
+ };
1314918
+ var chalkFactory = (options2) => {
1314919
+ const chalk3 = (...strings) => strings.join(" ");
1314920
+ applyOptions(chalk3, options2);
1314921
+ Object.setPrototypeOf(chalk3, createChalk.prototype);
1314922
+ return chalk3;
1314923
+ };
1314924
+ function createChalk(options2) {
1314925
+ return chalkFactory(options2);
1314926
+ }
1314927
+ Object.setPrototypeOf(createChalk.prototype, Function.prototype);
1314928
+ for (const [styleName, style2] of Object.entries(ansi_styles_default)) {
1314929
+ styles2[styleName] = {
1314930
+ get() {
1314931
+ const builder = createBuilder(this, createStyler(style2.open, style2.close, this[STYLER]), this[IS_EMPTY]);
1314932
+ Object.defineProperty(this, styleName, { value: builder });
1314933
+ return builder;
1314934
+ }
1314935
+ };
1314936
+ }
1314937
+ styles2.visible = {
1314938
+ get() {
1314939
+ const builder = createBuilder(this, this[STYLER], true);
1314940
+ Object.defineProperty(this, "visible", { value: builder });
1314941
+ return builder;
1314942
+ }
1314943
+ };
1314944
+ var getModelAnsi = (model, level, type8, ...arguments_) => {
1314945
+ if (model === "rgb") {
1314946
+ if (level === "ansi16m") {
1314947
+ return ansi_styles_default[type8].ansi16m(...arguments_);
1314948
+ }
1314949
+ if (level === "ansi256") {
1314950
+ return ansi_styles_default[type8].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
1314951
+ }
1314952
+ return ansi_styles_default[type8].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
1314953
+ }
1314954
+ if (model === "hex") {
1314955
+ return getModelAnsi("rgb", level, type8, ...ansi_styles_default.hexToRgb(...arguments_));
1314956
+ }
1314957
+ return ansi_styles_default[type8][model](...arguments_);
1314958
+ };
1314959
+ var usedModels = ["rgb", "hex", "ansi256"];
1314960
+ for (const model of usedModels) {
1314961
+ styles2[model] = {
1314962
+ get() {
1314963
+ const { level } = this;
1314964
+ return function(...arguments_) {
1314965
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
1314966
+ return createBuilder(this, styler, this[IS_EMPTY]);
1314967
+ };
1314968
+ }
1314969
+ };
1314970
+ const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
1314971
+ styles2[bgModel] = {
1314972
+ get() {
1314973
+ const { level } = this;
1314974
+ return function(...arguments_) {
1314975
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
1314976
+ return createBuilder(this, styler, this[IS_EMPTY]);
1314977
+ };
1314978
+ }
1314979
+ };
1314980
+ }
1314981
+ var proto = Object.defineProperties(() => {
1314982
+ }, {
1314983
+ ...styles2,
1314984
+ level: {
1314985
+ enumerable: true,
1314986
+ get() {
1314987
+ return this[GENERATOR].level;
1314988
+ },
1314989
+ set(level) {
1314990
+ this[GENERATOR].level = level;
1314991
+ }
1314992
+ }
1314993
+ });
1314994
+ var createStyler = (open5, close2, parent) => {
1314995
+ let openAll;
1314996
+ let closeAll;
1314997
+ if (parent === void 0) {
1314998
+ openAll = open5;
1314999
+ closeAll = close2;
1315000
+ } else {
1315001
+ openAll = parent.openAll + open5;
1315002
+ closeAll = close2 + parent.closeAll;
1315003
+ }
1315004
+ return {
1315005
+ open: open5,
1315006
+ close: close2,
1315007
+ openAll,
1315008
+ closeAll,
1315009
+ parent
1315010
+ };
1315011
+ };
1315012
+ var createBuilder = (self2, _styler, _isEmpty) => {
1315013
+ const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
1315014
+ Object.setPrototypeOf(builder, proto);
1315015
+ builder[GENERATOR] = self2;
1315016
+ builder[STYLER] = _styler;
1315017
+ builder[IS_EMPTY] = _isEmpty;
1315018
+ return builder;
1315019
+ };
1315020
+ var applyStyle = (self2, string14) => {
1315021
+ if (self2.level <= 0 || !string14) {
1315022
+ return self2[IS_EMPTY] ? "" : string14;
1315023
+ }
1315024
+ let styler = self2[STYLER];
1315025
+ if (styler === void 0) {
1315026
+ return string14;
1315027
+ }
1315028
+ const { openAll, closeAll } = styler;
1315029
+ if (string14.includes("\x1B")) {
1315030
+ while (styler !== void 0) {
1315031
+ string14 = stringReplaceAll(string14, styler.close, styler.open);
1315032
+ styler = styler.parent;
1315033
+ }
1315034
+ }
1315035
+ const lfIndex = string14.indexOf("\n");
1315036
+ if (lfIndex !== -1) {
1315037
+ string14 = stringEncaseCRLFWithFirstIndex(string14, closeAll, openAll, lfIndex);
1315038
+ }
1315039
+ return openAll + string14 + closeAll;
1315040
+ };
1315041
+ Object.defineProperties(createChalk.prototype, styles2);
1315042
+ var chalk = createChalk();
1315043
+ var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
1315044
+ var source_default = chalk;
1315045
+
1314557
1315046
  // ../cli-v2/lib/errors/CliError.js
1314558
1315047
  var CliError = class _CliError extends Error {
1314559
1315048
  code;
@@ -1321721,7 +1322210,7 @@ var ERROR = 7;
1321721
1322210
  var BIGINT = 8;
1321722
1322211
 
1321723
1322212
  // ../../../node_modules/.pnpm/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.js
1321724
- var env2 = typeof self === "object" ? self : globalThis;
1322213
+ var env3 = typeof self === "object" ? self : globalThis;
1321725
1322214
  var deserializer = ($19, _15) => {
1321726
1322215
  const as7 = (out, index3) => {
1321727
1322216
  $19.set(index3, out);
@@ -1321767,7 +1322256,7 @@ var deserializer = ($19, _15) => {
1321767
1322256
  }
1321768
1322257
  case ERROR: {
1321769
1322258
  const { name: name3, message } = value;
1321770
- return as7(new env2[name3](message), index3);
1322259
+ return as7(new env3[name3](message), index3);
1321771
1322260
  }
1321772
1322261
  case BIGINT:
1321773
1322262
  return as7(BigInt(value), index3);
@@ -1321780,7 +1322269,7 @@ var deserializer = ($19, _15) => {
1321780
1322269
  return as7(new DataView(buffer), value);
1321781
1322270
  }
1321782
1322271
  }
1321783
- return as7(new env2[type8](value), index3);
1322272
+ return as7(new env3[type8](value), index3);
1321784
1322273
  };
1321785
1322274
  return unpair;
1321786
1322275
  };
@@ -1346059,12 +1346548,12 @@ function ns2(e6) {
1346059
1346548
  }
1346060
1346549
  }
1346061
1346550
  }
1346062
- function os() {
1346551
+ function os2() {
1346063
1346552
  !tr6 || !G6 || (tr6 = false, G6.length ? R5 = G6.concat(R5) : Gr5 = -1, R5.length && qo2());
1346064
1346553
  }
1346065
1346554
  function qo2() {
1346066
1346555
  if (!tr6) {
1346067
- var e6 = Oo(os);
1346556
+ var e6 = Oo(os2);
1346068
1346557
  tr6 = true;
1346069
1346558
  for (var r23 = R5.length; r23; ) {
1346070
1346559
  for (G6 = R5, R5 = []; ++Gr5 < r23; ) G6 && G6[Gr5].run();
@@ -1348284,9 +1348773,9 @@ function rs2(r23) {
1348284
1348773
  var kr6 = rs2;
1348285
1348774
  n22();
1348286
1348775
  a5();
1348287
- var os2 = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
1348776
+ var os22 = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
1348288
1348777
  function is3(r23) {
1348289
- return os2.test(r23);
1348778
+ return os22.test(r23);
1348290
1348779
  }
1348291
1348780
  var Dr5 = is3;
1348292
1348781
  n22();
@@ -1401195,11 +1401684,11 @@ async function isLoggedIn() {
1401195
1401684
  }
1401196
1401685
 
1401197
1401686
  // ../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
1401198
- var ANSI_BACKGROUND_OFFSET = 10;
1401199
- var wrapAnsi16 = (offset2 = 0) => (code6) => `\x1B[${code6 + offset2}m`;
1401200
- var wrapAnsi256 = (offset2 = 0) => (code6) => `\x1B[${38 + offset2};5;${code6}m`;
1401201
- var wrapAnsi16m = (offset2 = 0) => (red, green, blue) => `\x1B[${38 + offset2};2;${red};${green};${blue}m`;
1401202
- var styles = {
1401687
+ var ANSI_BACKGROUND_OFFSET2 = 10;
1401688
+ var wrapAnsi162 = (offset2 = 0) => (code6) => `\x1B[${code6 + offset2}m`;
1401689
+ var wrapAnsi2562 = (offset2 = 0) => (code6) => `\x1B[${38 + offset2};5;${code6}m`;
1401690
+ var wrapAnsi16m2 = (offset2 = 0) => (red, green, blue) => `\x1B[${38 + offset2};2;${red};${green};${blue}m`;
1401691
+ var styles3 = {
1401203
1401692
  modifier: {
1401204
1401693
  reset: [0, 0],
1401205
1401694
  // 21 isn't widely supported and 22 does the same thing
@@ -1401259,39 +1401748,39 @@ var styles = {
1401259
1401748
  bgWhiteBright: [107, 49]
1401260
1401749
  }
1401261
1401750
  };
1401262
- var modifierNames = Object.keys(styles.modifier);
1401263
- var foregroundColorNames = Object.keys(styles.color);
1401264
- var backgroundColorNames = Object.keys(styles.bgColor);
1401265
- var colorNames = [...foregroundColorNames, ...backgroundColorNames];
1401266
- function assembleStyles() {
1401751
+ var modifierNames2 = Object.keys(styles3.modifier);
1401752
+ var foregroundColorNames2 = Object.keys(styles3.color);
1401753
+ var backgroundColorNames2 = Object.keys(styles3.bgColor);
1401754
+ var colorNames2 = [...foregroundColorNames2, ...backgroundColorNames2];
1401755
+ function assembleStyles2() {
1401267
1401756
  const codes = /* @__PURE__ */ new Map();
1401268
- for (const [groupName, group] of Object.entries(styles)) {
1401757
+ for (const [groupName, group] of Object.entries(styles3)) {
1401269
1401758
  for (const [styleName, style2] of Object.entries(group)) {
1401270
- styles[styleName] = {
1401759
+ styles3[styleName] = {
1401271
1401760
  open: `\x1B[${style2[0]}m`,
1401272
1401761
  close: `\x1B[${style2[1]}m`
1401273
1401762
  };
1401274
- group[styleName] = styles[styleName];
1401763
+ group[styleName] = styles3[styleName];
1401275
1401764
  codes.set(style2[0], style2[1]);
1401276
1401765
  }
1401277
- Object.defineProperty(styles, groupName, {
1401766
+ Object.defineProperty(styles3, groupName, {
1401278
1401767
  value: group,
1401279
1401768
  enumerable: false
1401280
1401769
  });
1401281
1401770
  }
1401282
- Object.defineProperty(styles, "codes", {
1401771
+ Object.defineProperty(styles3, "codes", {
1401283
1401772
  value: codes,
1401284
1401773
  enumerable: false
1401285
1401774
  });
1401286
- styles.color.close = "\x1B[39m";
1401287
- styles.bgColor.close = "\x1B[49m";
1401288
- styles.color.ansi = wrapAnsi16();
1401289
- styles.color.ansi256 = wrapAnsi256();
1401290
- styles.color.ansi16m = wrapAnsi16m();
1401291
- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
1401292
- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
1401293
- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
1401294
- Object.defineProperties(styles, {
1401775
+ styles3.color.close = "\x1B[39m";
1401776
+ styles3.bgColor.close = "\x1B[49m";
1401777
+ styles3.color.ansi = wrapAnsi162();
1401778
+ styles3.color.ansi256 = wrapAnsi2562();
1401779
+ styles3.color.ansi16m = wrapAnsi16m2();
1401780
+ styles3.bgColor.ansi = wrapAnsi162(ANSI_BACKGROUND_OFFSET2);
1401781
+ styles3.bgColor.ansi256 = wrapAnsi2562(ANSI_BACKGROUND_OFFSET2);
1401782
+ styles3.bgColor.ansi16m = wrapAnsi16m2(ANSI_BACKGROUND_OFFSET2);
1401783
+ Object.defineProperties(styles3, {
1401295
1401784
  rgbToAnsi256: {
1401296
1401785
  value(red, green, blue) {
1401297
1401786
  if (red === green && green === blue) {
@@ -1401329,7 +1401818,7 @@ function assembleStyles() {
1401329
1401818
  enumerable: false
1401330
1401819
  },
1401331
1401820
  hexToAnsi256: {
1401332
- value: (hex3) => styles.rgbToAnsi256(...styles.hexToRgb(hex3)),
1401821
+ value: (hex3) => styles3.rgbToAnsi256(...styles3.hexToRgb(hex3)),
1401333
1401822
  enumerable: false
1401334
1401823
  },
1401335
1401824
  ansi256ToAnsi: {
@@ -1401367,48 +1401856,48 @@ function assembleStyles() {
1401367
1401856
  enumerable: false
1401368
1401857
  },
1401369
1401858
  rgbToAnsi: {
1401370
- value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
1401859
+ value: (red, green, blue) => styles3.ansi256ToAnsi(styles3.rgbToAnsi256(red, green, blue)),
1401371
1401860
  enumerable: false
1401372
1401861
  },
1401373
1401862
  hexToAnsi: {
1401374
- value: (hex3) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex3)),
1401863
+ value: (hex3) => styles3.ansi256ToAnsi(styles3.hexToAnsi256(hex3)),
1401375
1401864
  enumerable: false
1401376
1401865
  }
1401377
1401866
  });
1401378
- return styles;
1401867
+ return styles3;
1401379
1401868
  }
1401380
- var ansiStyles = assembleStyles();
1401381
- var ansi_styles_default = ansiStyles;
1401869
+ var ansiStyles2 = assembleStyles2();
1401870
+ var ansi_styles_default2 = ansiStyles2;
1401382
1401871
 
1401383
1401872
  // ../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
1401384
- var import_node_process = __toESM(require("process"), 1);
1401385
- var import_node_os = __toESM(require("os"), 1);
1401386
- var import_node_tty = __toESM(require("tty"), 1);
1401387
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
1401873
+ var import_node_process2 = __toESM(require("process"), 1);
1401874
+ var import_node_os2 = __toESM(require("os"), 1);
1401875
+ var import_node_tty2 = __toESM(require("tty"), 1);
1401876
+ function hasFlag2(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process2.default.argv) {
1401388
1401877
  const prefix2 = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
1401389
1401878
  const position4 = argv.indexOf(prefix2 + flag);
1401390
1401879
  const terminatorPosition = argv.indexOf("--");
1401391
1401880
  return position4 !== -1 && (terminatorPosition === -1 || position4 < terminatorPosition);
1401392
1401881
  }
1401393
- var { env: env3 } = import_node_process.default;
1401394
- var flagForceColor;
1401395
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
1401396
- flagForceColor = 0;
1401397
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
1401398
- flagForceColor = 1;
1401882
+ var { env: env4 } = import_node_process2.default;
1401883
+ var flagForceColor2;
1401884
+ if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
1401885
+ flagForceColor2 = 0;
1401886
+ } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
1401887
+ flagForceColor2 = 1;
1401399
1401888
  }
1401400
- function envForceColor() {
1401401
- if ("FORCE_COLOR" in env3) {
1401402
- if (env3.FORCE_COLOR === "true") {
1401889
+ function envForceColor2() {
1401890
+ if ("FORCE_COLOR" in env4) {
1401891
+ if (env4.FORCE_COLOR === "true") {
1401403
1401892
  return 1;
1401404
1401893
  }
1401405
- if (env3.FORCE_COLOR === "false") {
1401894
+ if (env4.FORCE_COLOR === "false") {
1401406
1401895
  return 0;
1401407
1401896
  }
1401408
- return env3.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env3.FORCE_COLOR, 10), 3);
1401897
+ return env4.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env4.FORCE_COLOR, 10), 3);
1401409
1401898
  }
1401410
1401899
  }
1401411
- function translateLevel(level) {
1401900
+ function translateLevel2(level) {
1401412
1401901
  if (level === 0) {
1401413
1401902
  return false;
1401414
1401903
  }
@@ -1401419,67 +1401908,67 @@ function translateLevel(level) {
1401419
1401908
  has16m: level >= 3
1401420
1401909
  };
1401421
1401910
  }
1401422
- function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
1401423
- const noFlagForceColor = envForceColor();
1401911
+ function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
1401912
+ const noFlagForceColor = envForceColor2();
1401424
1401913
  if (noFlagForceColor !== void 0) {
1401425
- flagForceColor = noFlagForceColor;
1401914
+ flagForceColor2 = noFlagForceColor;
1401426
1401915
  }
1401427
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
1401916
+ const forceColor = sniffFlags ? flagForceColor2 : noFlagForceColor;
1401428
1401917
  if (forceColor === 0) {
1401429
1401918
  return 0;
1401430
1401919
  }
1401431
1401920
  if (sniffFlags) {
1401432
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
1401921
+ if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
1401433
1401922
  return 3;
1401434
1401923
  }
1401435
- if (hasFlag("color=256")) {
1401924
+ if (hasFlag2("color=256")) {
1401436
1401925
  return 2;
1401437
1401926
  }
1401438
1401927
  }
1401439
- if ("TF_BUILD" in env3 && "AGENT_NAME" in env3) {
1401928
+ if ("TF_BUILD" in env4 && "AGENT_NAME" in env4) {
1401440
1401929
  return 1;
1401441
1401930
  }
1401442
1401931
  if (haveStream && !streamIsTTY && forceColor === void 0) {
1401443
1401932
  return 0;
1401444
1401933
  }
1401445
1401934
  const min = forceColor || 0;
1401446
- if (env3.TERM === "dumb") {
1401935
+ if (env4.TERM === "dumb") {
1401447
1401936
  return min;
1401448
1401937
  }
1401449
- if (import_node_process.default.platform === "win32") {
1401450
- const osRelease = import_node_os.default.release().split(".");
1401938
+ if (import_node_process2.default.platform === "win32") {
1401939
+ const osRelease = import_node_os2.default.release().split(".");
1401451
1401940
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
1401452
1401941
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
1401453
1401942
  }
1401454
1401943
  return 1;
1401455
1401944
  }
1401456
- if ("CI" in env3) {
1401457
- if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key2) => key2 in env3)) {
1401945
+ if ("CI" in env4) {
1401946
+ if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key2) => key2 in env4)) {
1401458
1401947
  return 3;
1401459
1401948
  }
1401460
- if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign2) => sign2 in env3) || env3.CI_NAME === "codeship") {
1401949
+ if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign2) => sign2 in env4) || env4.CI_NAME === "codeship") {
1401461
1401950
  return 1;
1401462
1401951
  }
1401463
1401952
  return min;
1401464
1401953
  }
1401465
- if ("TEAMCITY_VERSION" in env3) {
1401466
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
1401954
+ if ("TEAMCITY_VERSION" in env4) {
1401955
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env4.TEAMCITY_VERSION) ? 1 : 0;
1401467
1401956
  }
1401468
- if (env3.COLORTERM === "truecolor") {
1401957
+ if (env4.COLORTERM === "truecolor") {
1401469
1401958
  return 3;
1401470
1401959
  }
1401471
- if (env3.TERM === "xterm-kitty") {
1401960
+ if (env4.TERM === "xterm-kitty") {
1401472
1401961
  return 3;
1401473
1401962
  }
1401474
- if (env3.TERM === "xterm-ghostty") {
1401963
+ if (env4.TERM === "xterm-ghostty") {
1401475
1401964
  return 3;
1401476
1401965
  }
1401477
- if (env3.TERM === "wezterm") {
1401966
+ if (env4.TERM === "wezterm") {
1401478
1401967
  return 3;
1401479
1401968
  }
1401480
- if ("TERM_PROGRAM" in env3) {
1401481
- const version7 = Number.parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1401482
- switch (env3.TERM_PROGRAM) {
1401969
+ if ("TERM_PROGRAM" in env4) {
1401970
+ const version7 = Number.parseInt((env4.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1401971
+ switch (env4.TERM_PROGRAM) {
1401483
1401972
  case "iTerm.app": {
1401484
1401973
  return version7 >= 3 ? 3 : 2;
1401485
1401974
  }
@@ -1401488,32 +1401977,32 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
1401488
1401977
  }
1401489
1401978
  }
1401490
1401979
  }
1401491
- if (/-256(color)?$/i.test(env3.TERM)) {
1401980
+ if (/-256(color)?$/i.test(env4.TERM)) {
1401492
1401981
  return 2;
1401493
1401982
  }
1401494
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM)) {
1401983
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env4.TERM)) {
1401495
1401984
  return 1;
1401496
1401985
  }
1401497
- if ("COLORTERM" in env3) {
1401986
+ if ("COLORTERM" in env4) {
1401498
1401987
  return 1;
1401499
1401988
  }
1401500
1401989
  return min;
1401501
1401990
  }
1401502
- function createSupportsColor(stream5, options2 = {}) {
1401503
- const level = _supportsColor(stream5, {
1401991
+ function createSupportsColor2(stream5, options2 = {}) {
1401992
+ const level = _supportsColor2(stream5, {
1401504
1401993
  streamIsTTY: stream5 && stream5.isTTY,
1401505
1401994
  ...options2
1401506
1401995
  });
1401507
- return translateLevel(level);
1401996
+ return translateLevel2(level);
1401508
1401997
  }
1401509
- var supportsColor = {
1401510
- stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
1401511
- stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
1401998
+ var supportsColor2 = {
1401999
+ stdout: createSupportsColor2({ isTTY: import_node_tty2.default.isatty(1) }),
1402000
+ stderr: createSupportsColor2({ isTTY: import_node_tty2.default.isatty(2) })
1401512
1402001
  };
1401513
- var supports_color_default = supportsColor;
1402002
+ var supports_color_default2 = supportsColor2;
1401514
1402003
 
1401515
1402004
  // ../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
1401516
- function stringReplaceAll(string14, substring, replacer) {
1402005
+ function stringReplaceAll2(string14, substring, replacer) {
1401517
1402006
  let index3 = string14.indexOf(substring);
1401518
1402007
  if (index3 === -1) {
1401519
1402008
  return string14;
@@ -1401529,7 +1402018,7 @@ function stringReplaceAll(string14, substring, replacer) {
1401529
1402018
  returnValue += string14.slice(endIndex);
1401530
1402019
  return returnValue;
1401531
1402020
  }
1401532
- function stringEncaseCRLFWithFirstIndex(string14, prefix2, postfix, index3) {
1402021
+ function stringEncaseCRLFWithFirstIndex2(string14, prefix2, postfix, index3) {
1401533
1402022
  let endIndex = 0;
1401534
1402023
  let returnValue = "";
1401535
1402024
  do {
@@ -1401543,101 +1402032,101 @@ function stringEncaseCRLFWithFirstIndex(string14, prefix2, postfix, index3) {
1401543
1402032
  }
1401544
1402033
 
1401545
1402034
  // ../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
1401546
- var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
1401547
- var GENERATOR = Symbol("GENERATOR");
1401548
- var STYLER = Symbol("STYLER");
1401549
- var IS_EMPTY = Symbol("IS_EMPTY");
1401550
- var levelMapping = [
1402035
+ var { stdout: stdoutColor2, stderr: stderrColor2 } = supports_color_default2;
1402036
+ var GENERATOR2 = Symbol("GENERATOR");
1402037
+ var STYLER2 = Symbol("STYLER");
1402038
+ var IS_EMPTY2 = Symbol("IS_EMPTY");
1402039
+ var levelMapping2 = [
1401551
1402040
  "ansi",
1401552
1402041
  "ansi",
1401553
1402042
  "ansi256",
1401554
1402043
  "ansi16m"
1401555
1402044
  ];
1401556
- var styles2 = /* @__PURE__ */ Object.create(null);
1401557
- var applyOptions = (object9, options2 = {}) => {
1402045
+ var styles4 = /* @__PURE__ */ Object.create(null);
1402046
+ var applyOptions2 = (object9, options2 = {}) => {
1401558
1402047
  if (options2.level && !(Number.isInteger(options2.level) && options2.level >= 0 && options2.level <= 3)) {
1401559
1402048
  throw new Error("The `level` option should be an integer from 0 to 3");
1401560
1402049
  }
1401561
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
1402050
+ const colorLevel = stdoutColor2 ? stdoutColor2.level : 0;
1401562
1402051
  object9.level = options2.level === void 0 ? colorLevel : options2.level;
1401563
1402052
  };
1401564
- var chalkFactory = (options2) => {
1402053
+ var chalkFactory2 = (options2) => {
1401565
1402054
  const chalk3 = (...strings) => strings.join(" ");
1401566
- applyOptions(chalk3, options2);
1401567
- Object.setPrototypeOf(chalk3, createChalk.prototype);
1402055
+ applyOptions2(chalk3, options2);
1402056
+ Object.setPrototypeOf(chalk3, createChalk2.prototype);
1401568
1402057
  return chalk3;
1401569
1402058
  };
1401570
- function createChalk(options2) {
1401571
- return chalkFactory(options2);
1402059
+ function createChalk2(options2) {
1402060
+ return chalkFactory2(options2);
1401572
1402061
  }
1401573
- Object.setPrototypeOf(createChalk.prototype, Function.prototype);
1401574
- for (const [styleName, style2] of Object.entries(ansi_styles_default)) {
1401575
- styles2[styleName] = {
1402062
+ Object.setPrototypeOf(createChalk2.prototype, Function.prototype);
1402063
+ for (const [styleName, style2] of Object.entries(ansi_styles_default2)) {
1402064
+ styles4[styleName] = {
1401576
1402065
  get() {
1401577
- const builder = createBuilder(this, createStyler(style2.open, style2.close, this[STYLER]), this[IS_EMPTY]);
1402066
+ const builder = createBuilder2(this, createStyler2(style2.open, style2.close, this[STYLER2]), this[IS_EMPTY2]);
1401578
1402067
  Object.defineProperty(this, styleName, { value: builder });
1401579
1402068
  return builder;
1401580
1402069
  }
1401581
1402070
  };
1401582
1402071
  }
1401583
- styles2.visible = {
1402072
+ styles4.visible = {
1401584
1402073
  get() {
1401585
- const builder = createBuilder(this, this[STYLER], true);
1402074
+ const builder = createBuilder2(this, this[STYLER2], true);
1401586
1402075
  Object.defineProperty(this, "visible", { value: builder });
1401587
1402076
  return builder;
1401588
1402077
  }
1401589
1402078
  };
1401590
- var getModelAnsi = (model, level, type8, ...arguments_) => {
1402079
+ var getModelAnsi2 = (model, level, type8, ...arguments_) => {
1401591
1402080
  if (model === "rgb") {
1401592
1402081
  if (level === "ansi16m") {
1401593
- return ansi_styles_default[type8].ansi16m(...arguments_);
1402082
+ return ansi_styles_default2[type8].ansi16m(...arguments_);
1401594
1402083
  }
1401595
1402084
  if (level === "ansi256") {
1401596
- return ansi_styles_default[type8].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
1402085
+ return ansi_styles_default2[type8].ansi256(ansi_styles_default2.rgbToAnsi256(...arguments_));
1401597
1402086
  }
1401598
- return ansi_styles_default[type8].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
1402087
+ return ansi_styles_default2[type8].ansi(ansi_styles_default2.rgbToAnsi(...arguments_));
1401599
1402088
  }
1401600
1402089
  if (model === "hex") {
1401601
- return getModelAnsi("rgb", level, type8, ...ansi_styles_default.hexToRgb(...arguments_));
1402090
+ return getModelAnsi2("rgb", level, type8, ...ansi_styles_default2.hexToRgb(...arguments_));
1401602
1402091
  }
1401603
- return ansi_styles_default[type8][model](...arguments_);
1402092
+ return ansi_styles_default2[type8][model](...arguments_);
1401604
1402093
  };
1401605
- var usedModels = ["rgb", "hex", "ansi256"];
1401606
- for (const model of usedModels) {
1401607
- styles2[model] = {
1402094
+ var usedModels2 = ["rgb", "hex", "ansi256"];
1402095
+ for (const model of usedModels2) {
1402096
+ styles4[model] = {
1401608
1402097
  get() {
1401609
1402098
  const { level } = this;
1401610
1402099
  return function(...arguments_) {
1401611
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
1401612
- return createBuilder(this, styler, this[IS_EMPTY]);
1402100
+ const styler = createStyler2(getModelAnsi2(model, levelMapping2[level], "color", ...arguments_), ansi_styles_default2.color.close, this[STYLER2]);
1402101
+ return createBuilder2(this, styler, this[IS_EMPTY2]);
1401613
1402102
  };
1401614
1402103
  }
1401615
1402104
  };
1401616
1402105
  const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
1401617
- styles2[bgModel] = {
1402106
+ styles4[bgModel] = {
1401618
1402107
  get() {
1401619
1402108
  const { level } = this;
1401620
1402109
  return function(...arguments_) {
1401621
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
1401622
- return createBuilder(this, styler, this[IS_EMPTY]);
1402110
+ const styler = createStyler2(getModelAnsi2(model, levelMapping2[level], "bgColor", ...arguments_), ansi_styles_default2.bgColor.close, this[STYLER2]);
1402111
+ return createBuilder2(this, styler, this[IS_EMPTY2]);
1401623
1402112
  };
1401624
1402113
  }
1401625
1402114
  };
1401626
1402115
  }
1401627
- var proto = Object.defineProperties(() => {
1402116
+ var proto2 = Object.defineProperties(() => {
1401628
1402117
  }, {
1401629
- ...styles2,
1402118
+ ...styles4,
1401630
1402119
  level: {
1401631
1402120
  enumerable: true,
1401632
1402121
  get() {
1401633
- return this[GENERATOR].level;
1402122
+ return this[GENERATOR2].level;
1401634
1402123
  },
1401635
1402124
  set(level) {
1401636
- this[GENERATOR].level = level;
1402125
+ this[GENERATOR2].level = level;
1401637
1402126
  }
1401638
1402127
  }
1401639
1402128
  });
1401640
- var createStyler = (open5, close2, parent) => {
1402129
+ var createStyler2 = (open5, close2, parent) => {
1401641
1402130
  let openAll;
1401642
1402131
  let closeAll;
1401643
1402132
  if (parent === void 0) {
@@ -1401655,49 +1402144,49 @@ var createStyler = (open5, close2, parent) => {
1401655
1402144
  parent
1401656
1402145
  };
1401657
1402146
  };
1401658
- var createBuilder = (self2, _styler, _isEmpty) => {
1401659
- const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
1401660
- Object.setPrototypeOf(builder, proto);
1401661
- builder[GENERATOR] = self2;
1401662
- builder[STYLER] = _styler;
1401663
- builder[IS_EMPTY] = _isEmpty;
1402147
+ var createBuilder2 = (self2, _styler, _isEmpty) => {
1402148
+ const builder = (...arguments_) => applyStyle2(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
1402149
+ Object.setPrototypeOf(builder, proto2);
1402150
+ builder[GENERATOR2] = self2;
1402151
+ builder[STYLER2] = _styler;
1402152
+ builder[IS_EMPTY2] = _isEmpty;
1401664
1402153
  return builder;
1401665
1402154
  };
1401666
- var applyStyle = (self2, string14) => {
1402155
+ var applyStyle2 = (self2, string14) => {
1401667
1402156
  if (self2.level <= 0 || !string14) {
1401668
- return self2[IS_EMPTY] ? "" : string14;
1402157
+ return self2[IS_EMPTY2] ? "" : string14;
1401669
1402158
  }
1401670
- let styler = self2[STYLER];
1402159
+ let styler = self2[STYLER2];
1401671
1402160
  if (styler === void 0) {
1401672
1402161
  return string14;
1401673
1402162
  }
1401674
1402163
  const { openAll, closeAll } = styler;
1401675
1402164
  if (string14.includes("\x1B")) {
1401676
1402165
  while (styler !== void 0) {
1401677
- string14 = stringReplaceAll(string14, styler.close, styler.open);
1402166
+ string14 = stringReplaceAll2(string14, styler.close, styler.open);
1401678
1402167
  styler = styler.parent;
1401679
1402168
  }
1401680
1402169
  }
1401681
1402170
  const lfIndex = string14.indexOf("\n");
1401682
1402171
  if (lfIndex !== -1) {
1401683
- string14 = stringEncaseCRLFWithFirstIndex(string14, closeAll, openAll, lfIndex);
1402172
+ string14 = stringEncaseCRLFWithFirstIndex2(string14, closeAll, openAll, lfIndex);
1401684
1402173
  }
1401685
1402174
  return openAll + string14 + closeAll;
1401686
1402175
  };
1401687
- Object.defineProperties(createChalk.prototype, styles2);
1401688
- var chalk = createChalk();
1401689
- var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
1401690
- var source_default = chalk;
1402176
+ Object.defineProperties(createChalk2.prototype, styles4);
1402177
+ var chalk2 = createChalk2();
1402178
+ var chalkStderr2 = createChalk2({ level: stderrColor2 ? stderrColor2.level : 0 });
1402179
+ var source_default2 = chalk2;
1401691
1402180
 
1401692
1402181
  // ../cli-logger/lib/formatLog.js
1401693
1402182
  function formatLog({ breadcrumbs = [], title: title5, subtitle }) {
1401694
1402183
  const lines = [];
1401695
1402184
  if (breadcrumbs.length > 0) {
1401696
- lines.push(source_default.blue(breadcrumbs.join(" -> ")));
1402185
+ lines.push(source_default2.blue(breadcrumbs.join(" -> ")));
1401697
1402186
  }
1401698
1402187
  lines.push(title5);
1401699
1402188
  if (subtitle != null) {
1401700
- lines.push(source_default.dim(subtitle));
1402189
+ lines.push(source_default2.dim(subtitle));
1401701
1402190
  }
1401702
1402191
  return lines.join("\n");
1401703
1402192
  }
@@ -1401782,7 +1402271,7 @@ function logErrorMessage({ message, error: error49, logger, logLevel = LogLevel.
1401782
1402271
  }
1401783
1402272
  const stack = error49 instanceof Error ? error49.stack : new Error(JSON.stringify(error49)).stack;
1401784
1402273
  if (stack != null) {
1401785
- logger.debug(source_default.red(stack));
1402274
+ logger.debug(source_default2.red(stack));
1401786
1402275
  }
1401787
1402276
  }
1401788
1402277
  function convertErrorToString(error49) {
@@ -1401921,18 +1402410,18 @@ var ansi_escapes_default = ansiEscapes;
1401921
1402410
  var import_is_ci = __toESM(require_is_ci(), 1);
1401922
1402411
 
1401923
1402412
  // ../../../node_modules/.pnpm/ora@7.0.1/node_modules/ora/index.js
1401924
- var import_node_process6 = __toESM(require("process"), 1);
1402413
+ var import_node_process7 = __toESM(require("process"), 1);
1401925
1402414
 
1401926
1402415
  // ../../../node_modules/.pnpm/cli-cursor@4.0.0/node_modules/cli-cursor/index.js
1401927
- var import_node_process3 = __toESM(require("process"), 1);
1402416
+ var import_node_process4 = __toESM(require("process"), 1);
1401928
1402417
 
1401929
1402418
  // ../../../node_modules/.pnpm/restore-cursor@4.0.0/node_modules/restore-cursor/index.js
1401930
- var import_node_process2 = __toESM(require("process"), 1);
1402419
+ var import_node_process3 = __toESM(require("process"), 1);
1401931
1402420
  var import_onetime = __toESM(require_onetime(), 1);
1401932
1402421
  var import_signal_exit = __toESM(require_signal_exit(), 1);
1401933
1402422
  var restoreCursor = (0, import_onetime.default)(() => {
1401934
1402423
  (0, import_signal_exit.default)(() => {
1401935
- import_node_process2.default.stderr.write("\x1B[?25h");
1402424
+ import_node_process3.default.stderr.write("\x1B[?25h");
1401936
1402425
  }, { alwaysLast: true });
1401937
1402426
  });
1401938
1402427
  var restore_cursor_default = restoreCursor;
@@ -1401940,14 +1402429,14 @@ var restore_cursor_default = restoreCursor;
1401940
1402429
  // ../../../node_modules/.pnpm/cli-cursor@4.0.0/node_modules/cli-cursor/index.js
1401941
1402430
  var isHidden = false;
1401942
1402431
  var cliCursor = {};
1401943
- cliCursor.show = (writableStream = import_node_process3.default.stderr) => {
1402432
+ cliCursor.show = (writableStream = import_node_process4.default.stderr) => {
1401944
1402433
  if (!writableStream.isTTY) {
1401945
1402434
  return;
1401946
1402435
  }
1401947
1402436
  isHidden = false;
1401948
1402437
  writableStream.write("\x1B[?25h");
1401949
1402438
  };
1401950
- cliCursor.hide = (writableStream = import_node_process3.default.stderr) => {
1402439
+ cliCursor.hide = (writableStream = import_node_process4.default.stderr) => {
1401951
1402440
  if (!writableStream.isTTY) {
1401952
1402441
  return;
1401953
1402442
  }
@@ -1401971,26 +1402460,26 @@ var cli_cursor_default = cliCursor;
1401971
1402460
  var import_cli_spinners = __toESM(require_cli_spinners(), 1);
1401972
1402461
 
1401973
1402462
  // ../../../node_modules/.pnpm/is-unicode-supported@1.3.0/node_modules/is-unicode-supported/index.js
1401974
- var import_node_process4 = __toESM(require("process"), 1);
1402463
+ var import_node_process5 = __toESM(require("process"), 1);
1401975
1402464
  function isUnicodeSupported() {
1401976
- if (import_node_process4.default.platform !== "win32") {
1401977
- return import_node_process4.default.env.TERM !== "linux";
1402465
+ if (import_node_process5.default.platform !== "win32") {
1402466
+ return import_node_process5.default.env.TERM !== "linux";
1401978
1402467
  }
1401979
- return Boolean(import_node_process4.default.env.CI) || Boolean(import_node_process4.default.env.WT_SESSION) || Boolean(import_node_process4.default.env.TERMINUS_SUBLIME) || import_node_process4.default.env.ConEmuTask === "{cmd::Cmder}" || import_node_process4.default.env.TERM_PROGRAM === "Terminus-Sublime" || import_node_process4.default.env.TERM_PROGRAM === "vscode" || import_node_process4.default.env.TERM === "xterm-256color" || import_node_process4.default.env.TERM === "alacritty" || import_node_process4.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
1402468
+ return Boolean(import_node_process5.default.env.CI) || Boolean(import_node_process5.default.env.WT_SESSION) || Boolean(import_node_process5.default.env.TERMINUS_SUBLIME) || import_node_process5.default.env.ConEmuTask === "{cmd::Cmder}" || import_node_process5.default.env.TERM_PROGRAM === "Terminus-Sublime" || import_node_process5.default.env.TERM_PROGRAM === "vscode" || import_node_process5.default.env.TERM === "xterm-256color" || import_node_process5.default.env.TERM === "alacritty" || import_node_process5.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
1401980
1402469
  }
1401981
1402470
 
1401982
1402471
  // ../../../node_modules/.pnpm/log-symbols@5.1.0/node_modules/log-symbols/index.js
1401983
1402472
  var main = {
1401984
- info: source_default.blue("\u2139"),
1401985
- success: source_default.green("\u2714"),
1401986
- warning: source_default.yellow("\u26A0"),
1401987
- error: source_default.red("\u2716")
1402473
+ info: source_default2.blue("\u2139"),
1402474
+ success: source_default2.green("\u2714"),
1402475
+ warning: source_default2.yellow("\u26A0"),
1402476
+ error: source_default2.red("\u2716")
1401988
1402477
  };
1401989
1402478
  var fallback = {
1401990
- info: source_default.blue("i"),
1401991
- success: source_default.green("\u221A"),
1401992
- warning: source_default.yellow("\u203C"),
1401993
- error: source_default.red("\xD7")
1402479
+ info: source_default2.blue("i"),
1402480
+ success: source_default2.green("\u221A"),
1402481
+ warning: source_default2.yellow("\u203C"),
1402482
+ error: source_default2.red("\xD7")
1401994
1402483
  };
1401995
1402484
  var logSymbols = isUnicodeSupported() ? main : fallback;
1401996
1402485
  var log_symbols_default = logSymbols;
@@ -1402060,7 +1402549,7 @@ function isInteractive({ stream: stream5 = process.stdout } = {}) {
1402060
1402549
  }
1402061
1402550
 
1402062
1402551
  // ../../../node_modules/.pnpm/stdin-discarder@0.1.0/node_modules/stdin-discarder/index.js
1402063
- var import_node_process5 = __toESM(require("process"), 1);
1402552
+ var import_node_process6 = __toESM(require("process"), 1);
1402064
1402553
  var import_node_readline = __toESM(require("readline"), 1);
1402065
1402554
  var import_bl = __toESM(require_bl(), 1);
1402066
1402555
  var ASCII_ETX_CODE = 3;
@@ -1402070,20 +1402559,20 @@ var StdinDiscarder = class {
1402070
1402559
  #ourEmit;
1402071
1402560
  #rl;
1402072
1402561
  constructor() {
1402073
- this.#mutedStream.pipe(import_node_process5.default.stdout);
1402562
+ this.#mutedStream.pipe(import_node_process6.default.stdout);
1402074
1402563
  const self2 = this;
1402075
1402564
  this.#ourEmit = function(event, data2, ...arguments_) {
1402076
- const { stdin } = import_node_process5.default;
1402565
+ const { stdin } = import_node_process6.default;
1402077
1402566
  if (self2.#requests > 0 || stdin.emit === self2.#ourEmit) {
1402078
1402567
  if (event === "keypress") {
1402079
1402568
  return;
1402080
1402569
  }
1402081
1402570
  if (event === "data" && data2.includes(ASCII_ETX_CODE)) {
1402082
- import_node_process5.default.emit("SIGINT");
1402571
+ import_node_process6.default.emit("SIGINT");
1402083
1402572
  }
1402084
1402573
  Reflect.apply(self2.#ourEmit, this, [event, data2, ...arguments_]);
1402085
1402574
  } else {
1402086
- Reflect.apply(import_node_process5.default.stdin.emit, this, [event, data2, ...arguments_]);
1402575
+ Reflect.apply(import_node_process6.default.stdin.emit, this, [event, data2, ...arguments_]);
1402087
1402576
  }
1402088
1402577
  };
1402089
1402578
  }
@@ -1402104,24 +1402593,24 @@ var StdinDiscarder = class {
1402104
1402593
  }
1402105
1402594
  // TODO: Use private methods when targeting Node.js 14.
1402106
1402595
  _realStart() {
1402107
- if (import_node_process5.default.platform === "win32") {
1402596
+ if (import_node_process6.default.platform === "win32") {
1402108
1402597
  return;
1402109
1402598
  }
1402110
1402599
  this.#rl = import_node_readline.default.createInterface({
1402111
- input: import_node_process5.default.stdin,
1402600
+ input: import_node_process6.default.stdin,
1402112
1402601
  output: this.#mutedStream
1402113
1402602
  });
1402114
1402603
  this.#rl.on("SIGINT", () => {
1402115
- if (import_node_process5.default.listenerCount("SIGINT") === 0) {
1402116
- import_node_process5.default.emit("SIGINT");
1402604
+ if (import_node_process6.default.listenerCount("SIGINT") === 0) {
1402605
+ import_node_process6.default.emit("SIGINT");
1402117
1402606
  } else {
1402118
1402607
  this.#rl.close();
1402119
- import_node_process5.default.kill(import_node_process5.default.pid, "SIGINT");
1402608
+ import_node_process6.default.kill(import_node_process6.default.pid, "SIGINT");
1402120
1402609
  }
1402121
1402610
  });
1402122
1402611
  }
1402123
1402612
  _realStop() {
1402124
- if (import_node_process5.default.platform === "win32") {
1402613
+ if (import_node_process6.default.platform === "win32") {
1402125
1402614
  return;
1402126
1402615
  }
1402127
1402616
  this.#rl.close();
@@ -1402158,7 +1402647,7 @@ var Ora = class {
1402158
1402647
  }
1402159
1402648
  this.#options = {
1402160
1402649
  color: "cyan",
1402161
- stream: import_node_process6.default.stderr,
1402650
+ stream: import_node_process7.default.stderr,
1402162
1402651
  discardStdin: true,
1402163
1402652
  hideCursor: true,
1402164
1402653
  ...options2
@@ -1402173,7 +1402662,7 @@ var Ora = class {
1402173
1402662
  this.prefixText = this.#options.prefixText;
1402174
1402663
  this.suffixText = this.#options.suffixText;
1402175
1402664
  this.indent = this.#options.indent;
1402176
- if (import_node_process6.default.env.NODE_ENV === "test") {
1402665
+ if (import_node_process7.default.env.NODE_ENV === "test") {
1402177
1402666
  this._stream = this.#stream;
1402178
1402667
  this._isEnabled = this.#isEnabled;
1402179
1402668
  Object.defineProperty(this, "_linesToClear", {
@@ -1402304,7 +1402793,7 @@ var Ora = class {
1402304
1402793
  const { frames } = this.#spinner;
1402305
1402794
  let frame = frames[this.#frameIndex];
1402306
1402795
  if (this.color) {
1402307
- frame = source_default[this.color](frame);
1402796
+ frame = source_default2[this.color](frame);
1402308
1402797
  }
1402309
1402798
  this.#frameIndex = ++this.#frameIndex % frames.length;
1402310
1402799
  const fullPrefixText = typeof this.#prefixText === "string" && this.#prefixText !== "" ? this.#prefixText + " " : "";
@@ -1402359,7 +1402848,7 @@ var Ora = class {
1402359
1402848
  if (this.#options.hideCursor) {
1402360
1402849
  cli_cursor_default.hide(this.#stream);
1402361
1402850
  }
1402362
- if (this.#options.discardStdin && import_node_process6.default.stdin.isTTY) {
1402851
+ if (this.#options.discardStdin && import_node_process7.default.stdin.isTTY) {
1402363
1402852
  this.#isDiscardingStdin = true;
1402364
1402853
  stdin_discarder_default.start();
1402365
1402854
  }
@@ -1402378,7 +1402867,7 @@ var Ora = class {
1402378
1402867
  if (this.#options.hideCursor) {
1402379
1402868
  cli_cursor_default.show(this.#stream);
1402380
1402869
  }
1402381
- if (this.#options.discardStdin && import_node_process6.default.stdin.isTTY && this.#isDiscardingStdin) {
1402870
+ if (this.#options.discardStdin && import_node_process7.default.stdin.isTTY && this.#isDiscardingStdin) {
1402382
1402871
  stdin_discarder_default.stop();
1402383
1402872
  this.#isDiscardingStdin = false;
1402384
1402873
  }
@@ -1402560,16 +1403049,16 @@ function formatLog2(log2, { includeDebugInfo }) {
1402560
1403049
  }
1402561
1403050
  if (includeDebugInfo) {
1402562
1403051
  content5 = addPrefixToString({
1402563
- prefix: source_default.dim(getDebugPrefix(log2)),
1403052
+ prefix: source_default2.dim(getDebugPrefix(log2)),
1402564
1403053
  content: content5
1402565
1403054
  });
1402566
1403055
  }
1402567
1403056
  content5 += "\n";
1402568
1403057
  switch (log2.level) {
1402569
1403058
  case LogLevel.Error:
1402570
- return source_default.red(content5);
1403059
+ return source_default2.red(content5);
1402571
1403060
  case LogLevel.Warn:
1402572
- return source_default.hex("FFA500")(content5);
1403061
+ return source_default2.hex("FFA500")(content5);
1402573
1403062
  case LogLevel.Trace:
1402574
1403063
  case LogLevel.Debug:
1402575
1403064
  case LogLevel.Info:
@@ -1402778,24 +1403267,29 @@ function createContext(options2) {
1402778
1403267
  function handleError(context2, error49) {
1402779
1403268
  if (error49 instanceof ValidationError) {
1402780
1403269
  for (const issue2 of error49.issues) {
1402781
- context2.stderr.info(issue2.toString());
1403270
+ process.stderr.write(`${source_default.red(issue2.toString())}
1403271
+ `);
1402782
1403272
  }
1402783
1403273
  return;
1402784
1403274
  }
1402785
1403275
  if (error49 instanceof CliError) {
1402786
1403276
  if (error49.message.length > 0) {
1402787
- context2.stderr.error(error49.message);
1403277
+ process.stderr.write(`${source_default.red(error49.message)}
1403278
+ `);
1402788
1403279
  }
1402789
1403280
  return;
1402790
1403281
  }
1402791
1403282
  if (error49 instanceof Error) {
1402792
- context2.stderr.error(error49.message);
1402793
- if (error49.stack != null) {
1402794
- context2.stderr.debug(error49.stack);
1403283
+ process.stderr.write(`${source_default.red(error49.message)}
1403284
+ `);
1403285
+ if (error49.stack != null && context2.logLevel === LogLevel.Debug) {
1403286
+ process.stderr.write(`${source_default.dim(error49.stack)}
1403287
+ `);
1402795
1403288
  }
1402796
1403289
  return;
1402797
1403290
  }
1402798
- context2.stderr.error(String(error49));
1403291
+ process.stderr.write(`${source_default.red(String(error49))}
1403292
+ `);
1402799
1403293
  }
1402800
1403294
  function parseLogLevel(level) {
1402801
1403295
  switch (level.toLowerCase()) {
@@ -1403400,7 +1403894,7 @@ __export(core_exports4, {
1403400
1403894
  parse: () => parse2,
1403401
1403895
  parseAsync: () => parseAsync,
1403402
1403896
  prettifyError: () => prettifyError,
1403403
- process: () => process8,
1403897
+ process: () => process9,
1403404
1403898
  regexes: () => regexes_exports,
1403405
1403899
  registry: () => registry,
1403406
1403900
  safeDecode: () => safeDecode,
@@ -1413801,7 +1414295,7 @@ function initializeContext(params2) {
1413801
1414295
  external: params2?.external ?? void 0
1413802
1414296
  };
1413803
1414297
  }
1413804
- function process8(schema2, ctx, _params = { path: [], schemaPath: [] }) {
1414298
+ function process9(schema2, ctx, _params = { path: [], schemaPath: [] }) {
1413805
1414299
  var _a10;
1413806
1414300
  const def = schema2._zod.def;
1413807
1414301
  const seen = ctx.seen.get(schema2);
@@ -1413838,7 +1414332,7 @@ function process8(schema2, ctx, _params = { path: [], schemaPath: [] }) {
1413838
1414332
  if (parent) {
1413839
1414333
  if (!result.ref)
1413840
1414334
  result.ref = parent;
1413841
- process8(parent, ctx, params2);
1414335
+ process9(parent, ctx, params2);
1413842
1414336
  ctx.seen.get(parent).isParent = true;
1413843
1414337
  }
1413844
1414338
  }
@@ -1414119,14 +1414613,14 @@ function isTransforming(_schema, _ctx) {
1414119
1414613
  }
1414120
1414614
  var createToJSONSchemaMethod = (schema2, processors = {}) => (params2) => {
1414121
1414615
  const ctx = initializeContext({ ...params2, processors });
1414122
- process8(schema2, ctx);
1414616
+ process9(schema2, ctx);
1414123
1414617
  extractDefs(ctx, schema2);
1414124
1414618
  return finalize(ctx, schema2);
1414125
1414619
  };
1414126
1414620
  var createStandardJSONSchemaMethod = (schema2, io3, processors = {}) => (params2) => {
1414127
1414621
  const { libraryOptions, target } = params2 ?? {};
1414128
1414622
  const ctx = initializeContext({ ...libraryOptions ?? {}, target, io: io3, processors });
1414129
- process8(schema2, ctx);
1414623
+ process9(schema2, ctx);
1414130
1414624
  extractDefs(ctx, schema2);
1414131
1414625
  return finalize(ctx, schema2);
1414132
1414626
  };
@@ -1414383,7 +1414877,7 @@ var arrayProcessor = (schema2, ctx, _json, params2) => {
1414383
1414877
  if (typeof maximum === "number")
1414384
1414878
  json3.maxItems = maximum;
1414385
1414879
  json3.type = "array";
1414386
- json3.items = process8(def.element, ctx, { ...params2, path: [...params2.path, "items"] });
1414880
+ json3.items = process9(def.element, ctx, { ...params2, path: [...params2.path, "items"] });
1414387
1414881
  };
1414388
1414882
  var objectProcessor = (schema2, ctx, _json, params2) => {
1414389
1414883
  const json3 = _json;
@@ -1414392,7 +1414886,7 @@ var objectProcessor = (schema2, ctx, _json, params2) => {
1414392
1414886
  json3.properties = {};
1414393
1414887
  const shape = def.shape;
1414394
1414888
  for (const key2 in shape) {
1414395
- json3.properties[key2] = process8(shape[key2], ctx, {
1414889
+ json3.properties[key2] = process9(shape[key2], ctx, {
1414396
1414890
  ...params2,
1414397
1414891
  path: [...params2.path, "properties", key2]
1414398
1414892
  });
@@ -1414415,7 +1414909,7 @@ var objectProcessor = (schema2, ctx, _json, params2) => {
1414415
1414909
  if (ctx.io === "output")
1414416
1414910
  json3.additionalProperties = false;
1414417
1414911
  } else if (def.catchall) {
1414418
- json3.additionalProperties = process8(def.catchall, ctx, {
1414912
+ json3.additionalProperties = process9(def.catchall, ctx, {
1414419
1414913
  ...params2,
1414420
1414914
  path: [...params2.path, "additionalProperties"]
1414421
1414915
  });
@@ -1414424,7 +1414918,7 @@ var objectProcessor = (schema2, ctx, _json, params2) => {
1414424
1414918
  var unionProcessor = (schema2, ctx, json3, params2) => {
1414425
1414919
  const def = schema2._zod.def;
1414426
1414920
  const isExclusive = def.inclusive === false;
1414427
- const options2 = def.options.map((x15, i11) => process8(x15, ctx, {
1414921
+ const options2 = def.options.map((x15, i11) => process9(x15, ctx, {
1414428
1414922
  ...params2,
1414429
1414923
  path: [...params2.path, isExclusive ? "oneOf" : "anyOf", i11]
1414430
1414924
  }));
@@ -1414436,11 +1414930,11 @@ var unionProcessor = (schema2, ctx, json3, params2) => {
1414436
1414930
  };
1414437
1414931
  var intersectionProcessor = (schema2, ctx, json3, params2) => {
1414438
1414932
  const def = schema2._zod.def;
1414439
- const a10 = process8(def.left, ctx, {
1414933
+ const a10 = process9(def.left, ctx, {
1414440
1414934
  ...params2,
1414441
1414935
  path: [...params2.path, "allOf", 0]
1414442
1414936
  });
1414443
- const b18 = process8(def.right, ctx, {
1414937
+ const b18 = process9(def.right, ctx, {
1414444
1414938
  ...params2,
1414445
1414939
  path: [...params2.path, "allOf", 1]
1414446
1414940
  });
@@ -1414457,11 +1414951,11 @@ var tupleProcessor = (schema2, ctx, _json, params2) => {
1414457
1414951
  json3.type = "array";
1414458
1414952
  const prefixPath2 = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
1414459
1414953
  const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
1414460
- const prefixItems = def.items.map((x15, i11) => process8(x15, ctx, {
1414954
+ const prefixItems = def.items.map((x15, i11) => process9(x15, ctx, {
1414461
1414955
  ...params2,
1414462
1414956
  path: [...params2.path, prefixPath2, i11]
1414463
1414957
  }));
1414464
- const rest = def.rest ? process8(def.rest, ctx, {
1414958
+ const rest = def.rest ? process9(def.rest, ctx, {
1414465
1414959
  ...params2,
1414466
1414960
  path: [...params2.path, restPath, ...ctx.target === "openapi-3.0" ? [def.items.length] : []]
1414467
1414961
  }) : null;
@@ -1414501,7 +1414995,7 @@ var recordProcessor = (schema2, ctx, _json, params2) => {
1414501
1414995
  const keyBag = keyType._zod.bag;
1414502
1414996
  const patterns = keyBag?.patterns;
1414503
1414997
  if (def.mode === "loose" && patterns && patterns.size > 0) {
1414504
- const valueSchema = process8(def.valueType, ctx, {
1414998
+ const valueSchema = process9(def.valueType, ctx, {
1414505
1414999
  ...params2,
1414506
1415000
  path: [...params2.path, "patternProperties", "*"]
1414507
1415001
  });
@@ -1414511,12 +1415005,12 @@ var recordProcessor = (schema2, ctx, _json, params2) => {
1414511
1415005
  }
1414512
1415006
  } else {
1414513
1415007
  if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") {
1414514
- json3.propertyNames = process8(def.keyType, ctx, {
1415008
+ json3.propertyNames = process9(def.keyType, ctx, {
1414515
1415009
  ...params2,
1414516
1415010
  path: [...params2.path, "propertyNames"]
1414517
1415011
  });
1414518
1415012
  }
1414519
- json3.additionalProperties = process8(def.valueType, ctx, {
1415013
+ json3.additionalProperties = process9(def.valueType, ctx, {
1414520
1415014
  ...params2,
1414521
1415015
  path: [...params2.path, "additionalProperties"]
1414522
1415016
  });
@@ -1414531,7 +1415025,7 @@ var recordProcessor = (schema2, ctx, _json, params2) => {
1414531
1415025
  };
1414532
1415026
  var nullableProcessor = (schema2, ctx, json3, params2) => {
1414533
1415027
  const def = schema2._zod.def;
1414534
- const inner2 = process8(def.innerType, ctx, params2);
1415028
+ const inner2 = process9(def.innerType, ctx, params2);
1414535
1415029
  const seen = ctx.seen.get(schema2);
1414536
1415030
  if (ctx.target === "openapi-3.0") {
1414537
1415031
  seen.ref = def.innerType;
@@ -1414542,20 +1415036,20 @@ var nullableProcessor = (schema2, ctx, json3, params2) => {
1414542
1415036
  };
1414543
1415037
  var nonoptionalProcessor = (schema2, ctx, _json, params2) => {
1414544
1415038
  const def = schema2._zod.def;
1414545
- process8(def.innerType, ctx, params2);
1415039
+ process9(def.innerType, ctx, params2);
1414546
1415040
  const seen = ctx.seen.get(schema2);
1414547
1415041
  seen.ref = def.innerType;
1414548
1415042
  };
1414549
1415043
  var defaultProcessor = (schema2, ctx, json3, params2) => {
1414550
1415044
  const def = schema2._zod.def;
1414551
- process8(def.innerType, ctx, params2);
1415045
+ process9(def.innerType, ctx, params2);
1414552
1415046
  const seen = ctx.seen.get(schema2);
1414553
1415047
  seen.ref = def.innerType;
1414554
1415048
  json3.default = JSON.parse(JSON.stringify(def.defaultValue));
1414555
1415049
  };
1414556
1415050
  var prefaultProcessor = (schema2, ctx, json3, params2) => {
1414557
1415051
  const def = schema2._zod.def;
1414558
- process8(def.innerType, ctx, params2);
1415052
+ process9(def.innerType, ctx, params2);
1414559
1415053
  const seen = ctx.seen.get(schema2);
1414560
1415054
  seen.ref = def.innerType;
1414561
1415055
  if (ctx.io === "input")
@@ -1414563,7 +1415057,7 @@ var prefaultProcessor = (schema2, ctx, json3, params2) => {
1414563
1415057
  };
1414564
1415058
  var catchProcessor = (schema2, ctx, json3, params2) => {
1414565
1415059
  const def = schema2._zod.def;
1414566
- process8(def.innerType, ctx, params2);
1415060
+ process9(def.innerType, ctx, params2);
1414567
1415061
  const seen = ctx.seen.get(schema2);
1414568
1415062
  seen.ref = def.innerType;
1414569
1415063
  let catchValue;
@@ -1414577,32 +1415071,32 @@ var catchProcessor = (schema2, ctx, json3, params2) => {
1414577
1415071
  var pipeProcessor = (schema2, ctx, _json, params2) => {
1414578
1415072
  const def = schema2._zod.def;
1414579
1415073
  const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
1414580
- process8(innerType, ctx, params2);
1415074
+ process9(innerType, ctx, params2);
1414581
1415075
  const seen = ctx.seen.get(schema2);
1414582
1415076
  seen.ref = innerType;
1414583
1415077
  };
1414584
1415078
  var readonlyProcessor = (schema2, ctx, json3, params2) => {
1414585
1415079
  const def = schema2._zod.def;
1414586
- process8(def.innerType, ctx, params2);
1415080
+ process9(def.innerType, ctx, params2);
1414587
1415081
  const seen = ctx.seen.get(schema2);
1414588
1415082
  seen.ref = def.innerType;
1414589
1415083
  json3.readOnly = true;
1414590
1415084
  };
1414591
1415085
  var promiseProcessor = (schema2, ctx, _json, params2) => {
1414592
1415086
  const def = schema2._zod.def;
1414593
- process8(def.innerType, ctx, params2);
1415087
+ process9(def.innerType, ctx, params2);
1414594
1415088
  const seen = ctx.seen.get(schema2);
1414595
1415089
  seen.ref = def.innerType;
1414596
1415090
  };
1414597
1415091
  var optionalProcessor = (schema2, ctx, _json, params2) => {
1414598
1415092
  const def = schema2._zod.def;
1414599
- process8(def.innerType, ctx, params2);
1415093
+ process9(def.innerType, ctx, params2);
1414600
1415094
  const seen = ctx.seen.get(schema2);
1414601
1415095
  seen.ref = def.innerType;
1414602
1415096
  };
1414603
1415097
  var lazyProcessor = (schema2, ctx, _json, params2) => {
1414604
1415098
  const innerType = schema2._zod.innerType;
1414605
- process8(innerType, ctx, params2);
1415099
+ process9(innerType, ctx, params2);
1414606
1415100
  const seen = ctx.seen.get(schema2);
1414607
1415101
  seen.ref = innerType;
1414608
1415102
  };
@@ -1414654,7 +1415148,7 @@ function toJSONSchema(input3, params2) {
1414654
1415148
  const defs = {};
1414655
1415149
  for (const entry of registry2._idmap.entries()) {
1414656
1415150
  const [_15, schema2] = entry;
1414657
- process8(schema2, ctx2);
1415151
+ process9(schema2, ctx2);
1414658
1415152
  }
1414659
1415153
  const schemas = {};
1414660
1415154
  const external = {
@@ -1414677,7 +1415171,7 @@ function toJSONSchema(input3, params2) {
1414677
1415171
  return { schemas };
1414678
1415172
  }
1414679
1415173
  const ctx = initializeContext({ ...params2, processors: allProcessors });
1414680
- process8(input3, ctx);
1415174
+ process9(input3, ctx);
1414681
1415175
  extractDefs(ctx, input3);
1414682
1415176
  return finalize(ctx, input3);
1414683
1415177
  }
@@ -1414735,7 +1415229,7 @@ var JSONSchemaGenerator = class {
1414735
1415229
  * This must be called before emit().
1414736
1415230
  */
1414737
1415231
  process(schema2, _params = { path: [], schemaPath: [] }) {
1414738
- return process8(schema2, this.ctx, _params);
1415232
+ return process9(schema2, this.ctx, _params);
1414739
1415233
  }
1414740
1415234
  /**
1414741
1415235
  * Emit the final JSON Schema after processing.
@@ -1417815,7 +1418309,7 @@ var import_node_path3 = __toESM(require("path"), 1);
1417815
1418309
  var import_node_url4 = require("url");
1417816
1418310
 
1417817
1418311
  // ../../../node_modules/.pnpm/locate-path@7.2.0/node_modules/locate-path/index.js
1417818
- var import_node_process7 = __toESM(require("process"), 1);
1418312
+ var import_node_process8 = __toESM(require("process"), 1);
1417819
1418313
  var import_node_path2 = __toESM(require("path"), 1);
1417820
1418314
  var import_node_fs = __toESM(require("fs"), 1);
1417821
1418315
  var import_node_url3 = require("url");
@@ -1417980,7 +1418474,7 @@ function checkType(type8) {
1417980
1418474
  var matchType = (type8, stat3) => stat3[typeMappings[type8]]();
1417981
1418475
  var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url3.fileURLToPath)(urlOrPath) : urlOrPath;
1417982
1418476
  async function locatePath(paths, {
1417983
- cwd: cwd2 = import_node_process7.default.cwd(),
1418477
+ cwd: cwd2 = import_node_process8.default.cwd(),
1417984
1418478
  type: type8 = "file",
1417985
1418479
  allowSymlinks = true,
1417986
1418480
  concurrency,
@@ -1418058,10 +1418552,10 @@ var FileFinder = class {
1418058
1418552
  * @returns The absolute path to the file if found, undefined otherwise.
1418059
1418553
  * @throws Error if the file is not found.
1418060
1418554
  */
1418061
- async findOrThrow(filename) {
1418062
- const filepath = await this.find(filename);
1418555
+ async findOrThrow({ filename, remediationMessage }) {
1418556
+ const filepath = await this.find({ filename });
1418063
1418557
  if (filepath == null) {
1418064
- throw new Error(`File ${filename} not found in any parent directory from ${this.from}`);
1418558
+ throw new Error(`${filename} file not found in any parent directory from ${this.from}`);
1418065
1418559
  }
1418066
1418560
  return filepath;
1418067
1418561
  }
@@ -1418072,7 +1418566,7 @@ var FileFinder = class {
1418072
1418566
  * @param filename - The name of the file to find (e.g., "fern.yml")
1418073
1418567
  * @returns The absolute path to the file if found, undefined otherwise.
1418074
1418568
  */
1418075
- async find(filename) {
1418569
+ async find({ filename }) {
1418076
1418570
  const filepath = await findUp(filename, { cwd: this.from, type: "file" });
1418077
1418571
  if (filepath == null) {
1418078
1418572
  return void 0;
@@ -1418104,7 +1418598,10 @@ var FernYmlSchemaLoader = class {
1418104
1418598
  * @throws Error if fern.yml is not found.
1418105
1418599
  */
1418106
1418600
  async load() {
1418107
- const absoluteFilePath = await this.finder.findOrThrow(FILENAME);
1418601
+ const absoluteFilePath = await this.finder.find({ filename: FILENAME });
1418602
+ if (absoluteFilePath == null) {
1418603
+ throw new Error(`${FILENAME} file not found in any parent directory; did you forget to run \`fern init\`?`);
1418604
+ }
1418108
1418605
  return await this.loader.load({
1418109
1418606
  absoluteFilePath,
1418110
1418607
  schema: FernYmlSchema
@@ -1547524,8 +1548021,8 @@ var getBamlFiles = () => {
1547524
1548021
  };
1547525
1548022
 
1547526
1548023
  // ../ai/lib/baml_client/globals.js
1547527
- var env4 = { ...process.env };
1547528
- var DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_RUNTIME = import_baml3.BamlRuntime.fromFiles("baml_src", getBamlFiles(), env4);
1548024
+ var env5 = { ...process.env };
1548025
+ var DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_RUNTIME = import_baml3.BamlRuntime.fromFiles("baml_src", getBamlFiles(), env5);
1547529
1548026
  var DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX = new import_baml3.BamlCtxManager(DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_RUNTIME);
1547530
1548027
 
1547531
1548028
  // ../ai/lib/baml_client/async_client.js
@@ -1550176,19 +1550673,19 @@ function parseZodIssue(issue2) {
1550176
1550673
  return [
1550177
1550674
  {
1550178
1550675
  title: "Incorrect type",
1550179
- subtitle: `Expected ${source_default.underline(issue2.expected)} but received ${source_default.underline(issue2.received)}`
1550676
+ subtitle: `Expected ${source_default2.underline(issue2.expected)} but received ${source_default2.underline(issue2.received)}`
1550180
1550677
  }
1550181
1550678
  ];
1550182
1550679
  case ZodIssueCode2.unrecognized_keys:
1550183
1550680
  return issue2.keys.map((key2) => ({
1550184
1550681
  title: "Unexpected key",
1550185
- subtitle: `Encountered unexpected key ${source_default.underline(key2)}`
1550682
+ subtitle: `Encountered unexpected key ${source_default2.underline(key2)}`
1550186
1550683
  }));
1550187
1550684
  case ZodIssueCode2.invalid_enum_value:
1550188
1550685
  return [
1550189
1550686
  {
1550190
1550687
  title: "Unrecognized value",
1550191
- subtitle: `Allowed values: ${issue2.options.map((option) => source_default.underline(option)).join(", ")}`
1550688
+ subtitle: `Allowed values: ${issue2.options.map((option) => source_default2.underline(option)).join(", ")}`
1550192
1550689
  }
1550193
1550690
  ];
1550194
1550691
  case ZodIssueCode2.invalid_union:
@@ -1580329,19 +1580826,19 @@ function parseIssue(issue2) {
1580329
1580826
  return [
1580330
1580827
  {
1580331
1580828
  title: "Incorrect type",
1580332
- subtitle: `Expected ${source_default.underline(issue2.expected)} but received ${source_default.underline(issue2.received)}`
1580829
+ subtitle: `Expected ${source_default2.underline(issue2.expected)} but received ${source_default2.underline(issue2.received)}`
1580333
1580830
  }
1580334
1580831
  ];
1580335
1580832
  case ZodIssueCode2.unrecognized_keys:
1580336
1580833
  return issue2.keys.map((key2) => ({
1580337
1580834
  title: "Unexpected key",
1580338
- subtitle: `Encountered unexpected key ${source_default.underline(key2)}`
1580835
+ subtitle: `Encountered unexpected key ${source_default2.underline(key2)}`
1580339
1580836
  }));
1580340
1580837
  case ZodIssueCode2.invalid_enum_value:
1580341
1580838
  return [
1580342
1580839
  {
1580343
1580840
  title: "Unrecognized value",
1580344
- subtitle: `Allowed values: ${issue2.options.map((option) => source_default.underline(option)).join(", ")}`
1580841
+ subtitle: `Allowed values: ${issue2.options.map((option) => source_default2.underline(option)).join(", ")}`
1580345
1580842
  }
1580346
1580843
  ];
1580347
1580844
  case ZodIssueCode2.invalid_union:
@@ -1585846,9 +1586343,9 @@ async function downloadSnippetsForTask({ snippetsS3PreSignedReadUrl, absolutePat
1585846
1586343
  s3PreSignedReadUrl: snippetsS3PreSignedReadUrl,
1585847
1586344
  absolutePathToLocalOutput: absolutePathToLocalSnippetJSON
1585848
1586345
  });
1585849
- context2.logger.info(source_default.green(`Downloaded to ${absolutePathToLocalSnippetJSON}`));
1586346
+ context2.logger.info(source_default2.green(`Downloaded to ${absolutePathToLocalSnippetJSON}`));
1585850
1586347
  } catch (e6) {
1585851
- context2.logger.debug(source_default.yellow("Failed to download snippet.json from output."));
1586348
+ context2.logger.debug(source_default2.yellow("Failed to download snippet.json from output."));
1585852
1586349
  }
1585853
1586350
  }
1585854
1586351
  async function downloadFileForTask({ s3PreSignedReadUrl, absolutePathToLocalOutput }) {
@@ -1590025,7 +1590522,7 @@ async function downloadFilesForTask({ s3PreSignedReadUrl, absolutePathToLocalOut
1590025
1590522
  absolutePathToLocalOutput
1590026
1590523
  });
1590027
1590524
  }
1590028
- context2.logger.info(source_default.green(`Downloaded to ${absolutePathToLocalOutput}`));
1590525
+ context2.logger.info(source_default2.green(`Downloaded to ${absolutePathToLocalOutput}`));
1590029
1590526
  } catch (e6) {
1590030
1590527
  context2.failAndThrow("Failed to download files", e6);
1590031
1590528
  }
@@ -1603597,40 +1604094,40 @@ var Style2 = class {
1603597
1604094
  * Get the style of a superscript given a base in the current style.
1603598
1604095
  */
1603599
1604096
  sup() {
1603600
- return styles3[sup[this.id]];
1604097
+ return styles5[sup[this.id]];
1603601
1604098
  }
1603602
1604099
  /**
1603603
1604100
  * Get the style of a subscript given a base in the current style.
1603604
1604101
  */
1603605
1604102
  sub() {
1603606
- return styles3[sub[this.id]];
1604103
+ return styles5[sub[this.id]];
1603607
1604104
  }
1603608
1604105
  /**
1603609
1604106
  * Get the style of a fraction numerator given the fraction in the current
1603610
1604107
  * style.
1603611
1604108
  */
1603612
1604109
  fracNum() {
1603613
- return styles3[fracNum[this.id]];
1604110
+ return styles5[fracNum[this.id]];
1603614
1604111
  }
1603615
1604112
  /**
1603616
1604113
  * Get the style of a fraction denominator given the fraction in the current
1603617
1604114
  * style.
1603618
1604115
  */
1603619
1604116
  fracDen() {
1603620
- return styles3[fracDen[this.id]];
1604117
+ return styles5[fracDen[this.id]];
1603621
1604118
  }
1603622
1604119
  /**
1603623
1604120
  * Get the cramped version of a style (in particular, cramping a cramped style
1603624
1604121
  * doesn't change the style).
1603625
1604122
  */
1603626
1604123
  cramp() {
1603627
- return styles3[cramp[this.id]];
1604124
+ return styles5[cramp[this.id]];
1603628
1604125
  }
1603629
1604126
  /**
1603630
1604127
  * Get a text or display version of this style.
1603631
1604128
  */
1603632
1604129
  text() {
1603633
- return styles3[text$1[this.id]];
1604130
+ return styles5[text$1[this.id]];
1603634
1604131
  }
1603635
1604132
  /**
1603636
1604133
  * Return true if this style is tightly spaced (scriptstyle/scriptscriptstyle)
@@ -1603647,7 +1604144,7 @@ var S12 = 4;
1603647
1604144
  var Sc2 = 5;
1603648
1604145
  var SS = 6;
1603649
1604146
  var SSc = 7;
1603650
- var styles3 = [new Style2(D13, 0, false), new Style2(Dc2, 0, true), new Style2(T17, 1, false), new Style2(Tc2, 1, true), new Style2(S12, 2, false), new Style2(Sc2, 2, true), new Style2(SS, 3, false), new Style2(SSc, 3, true)];
1604147
+ var styles5 = [new Style2(D13, 0, false), new Style2(Dc2, 0, true), new Style2(T17, 1, false), new Style2(Tc2, 1, true), new Style2(S12, 2, false), new Style2(Sc2, 2, true), new Style2(SS, 3, false), new Style2(SSc, 3, true)];
1603651
1604148
  var sup = [S12, Sc2, S12, Sc2, SS, SSc, SS, SSc];
1603652
1604149
  var sub = [Sc2, Sc2, Sc2, Sc2, SSc, SSc, SSc, SSc];
1603653
1604150
  var fracNum = [T17, Tc2, S12, Sc2, SS, SSc, SS, SSc];
@@ -1603655,10 +1604152,10 @@ var fracDen = [Tc2, Tc2, Sc2, Sc2, SSc, SSc, SSc, SSc];
1603655
1604152
  var cramp = [Dc2, Dc2, Tc2, Tc2, Sc2, Sc2, SSc, SSc];
1603656
1604153
  var text$1 = [D13, Dc2, T17, Tc2, T17, Tc2, T17, Tc2];
1603657
1604154
  var Style$1 = {
1603658
- DISPLAY: styles3[D13],
1603659
- TEXT: styles3[T17],
1603660
- SCRIPT: styles3[S12],
1603661
- SCRIPTSCRIPT: styles3[SS]
1604155
+ DISPLAY: styles5[D13],
1604156
+ TEXT: styles5[T17],
1604157
+ SCRIPT: styles5[S12],
1604158
+ SCRIPTSCRIPT: styles5[SS]
1603662
1604159
  };
1603663
1604160
  var scriptData = [{
1603664
1604161
  // Latin characters beyond the Latin-1 characters we have metrics for.
@@ -1638087,7 +1638584,7 @@ ${JSON.stringify(errorDetails, void 0, 2)}`);
1638087
1638584
  context: context2
1638088
1638585
  });
1638089
1638586
  const link3 = terminalLink(url3, url3);
1638090
- context2.logger.info(source_default.green(`Published docs to ${link3}`));
1638587
+ context2.logger.info(source_default2.green(`Published docs to ${link3}`));
1638091
1638588
  } else {
1638092
1638589
  switch (registerDocsResponse.error.error) {
1638093
1638590
  case "UnauthorizedError":
@@ -1638535,7 +1639032,7 @@ async function updateAiChatFromDocsDefinition({ docsDefinition, isPreview, conte
1638535
1639032
  if (docsDefinition.config.aiChatConfig == null || isPreview) {
1638536
1639033
  return;
1638537
1639034
  }
1638538
- context2.logger.warn(source_default.yellow("Enabling Ask Fern from docs.yml is deprecated. Please enable it from the Fern dashboard instead."));
1639035
+ context2.logger.warn(source_default2.yellow("Enabling Ask Fern from docs.yml is deprecated. Please enable it from the Fern dashboard instead."));
1638539
1639036
  }
1638540
1639037
  function getAIEnhancerConfig(withAiExamples, styleInstructions) {
1638541
1639038
  if (!withAiExamples) {
@@ -1642166,7 +1642663,7 @@ generators:
1642166
1642663
  runner,
1642167
1642664
  ai: ai6
1642168
1642665
  });
1642169
- interactiveTaskContext.logger.info(source_default.green("Wrote files to " + absolutePathToLocalOutput));
1642666
+ interactiveTaskContext.logger.info(source_default2.green("Wrote files to " + absolutePathToLocalOutput));
1642170
1642667
  if (selfhostedGithubConfig != null && shouldCommit) {
1642171
1642668
  await postProcessGithubSelfHosted(interactiveTaskContext, selfhostedGithubConfig, absolutePathToLocalOutput, autoVersioningCommitMessage);
1642172
1642669
  }
@@ -1642491,7 +1642988,7 @@ var GenerationRunner = class {
1642491
1642988
  absolutePathToFernConfig,
1642492
1642989
  inspect: inspect4
1642493
1642990
  });
1642494
- interactiveTaskContext.logger.info(source_default.green("Wrote files to " + generatorInvocation.absolutePathToLocalOutput));
1642991
+ interactiveTaskContext.logger.info(source_default2.green("Wrote files to " + generatorInvocation.absolutePathToLocalOutput));
1642495
1642992
  if (shouldGenerateDynamicSnippetTests && generatorInvocation.language != null) {
1642496
1642993
  interactiveTaskContext.logger.info(`Generating dynamic snippet tests for ${generatorInvocation.language}...`);
1642497
1642994
  await generateDynamicSnippetTests({
@@ -1643359,495 +1643856,6 @@ var GeneratorPipeline = class {
1643359
1643856
  }
1643360
1643857
  };
1643361
1643858
 
1643362
- // ../../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/ansi-styles/index.js
1643363
- var ANSI_BACKGROUND_OFFSET2 = 10;
1643364
- var wrapAnsi162 = (offset2 = 0) => (code6) => `\x1B[${code6 + offset2}m`;
1643365
- var wrapAnsi2562 = (offset2 = 0) => (code6) => `\x1B[${38 + offset2};5;${code6}m`;
1643366
- var wrapAnsi16m2 = (offset2 = 0) => (red, green, blue) => `\x1B[${38 + offset2};2;${red};${green};${blue}m`;
1643367
- var styles4 = {
1643368
- modifier: {
1643369
- reset: [0, 0],
1643370
- // 21 isn't widely supported and 22 does the same thing
1643371
- bold: [1, 22],
1643372
- dim: [2, 22],
1643373
- italic: [3, 23],
1643374
- underline: [4, 24],
1643375
- overline: [53, 55],
1643376
- inverse: [7, 27],
1643377
- hidden: [8, 28],
1643378
- strikethrough: [9, 29]
1643379
- },
1643380
- color: {
1643381
- black: [30, 39],
1643382
- red: [31, 39],
1643383
- green: [32, 39],
1643384
- yellow: [33, 39],
1643385
- blue: [34, 39],
1643386
- magenta: [35, 39],
1643387
- cyan: [36, 39],
1643388
- white: [37, 39],
1643389
- // Bright color
1643390
- blackBright: [90, 39],
1643391
- gray: [90, 39],
1643392
- // Alias of `blackBright`
1643393
- grey: [90, 39],
1643394
- // Alias of `blackBright`
1643395
- redBright: [91, 39],
1643396
- greenBright: [92, 39],
1643397
- yellowBright: [93, 39],
1643398
- blueBright: [94, 39],
1643399
- magentaBright: [95, 39],
1643400
- cyanBright: [96, 39],
1643401
- whiteBright: [97, 39]
1643402
- },
1643403
- bgColor: {
1643404
- bgBlack: [40, 49],
1643405
- bgRed: [41, 49],
1643406
- bgGreen: [42, 49],
1643407
- bgYellow: [43, 49],
1643408
- bgBlue: [44, 49],
1643409
- bgMagenta: [45, 49],
1643410
- bgCyan: [46, 49],
1643411
- bgWhite: [47, 49],
1643412
- // Bright color
1643413
- bgBlackBright: [100, 49],
1643414
- bgGray: [100, 49],
1643415
- // Alias of `bgBlackBright`
1643416
- bgGrey: [100, 49],
1643417
- // Alias of `bgBlackBright`
1643418
- bgRedBright: [101, 49],
1643419
- bgGreenBright: [102, 49],
1643420
- bgYellowBright: [103, 49],
1643421
- bgBlueBright: [104, 49],
1643422
- bgMagentaBright: [105, 49],
1643423
- bgCyanBright: [106, 49],
1643424
- bgWhiteBright: [107, 49]
1643425
- }
1643426
- };
1643427
- var modifierNames2 = Object.keys(styles4.modifier);
1643428
- var foregroundColorNames2 = Object.keys(styles4.color);
1643429
- var backgroundColorNames2 = Object.keys(styles4.bgColor);
1643430
- var colorNames2 = [...foregroundColorNames2, ...backgroundColorNames2];
1643431
- function assembleStyles2() {
1643432
- const codes = /* @__PURE__ */ new Map();
1643433
- for (const [groupName, group] of Object.entries(styles4)) {
1643434
- for (const [styleName, style2] of Object.entries(group)) {
1643435
- styles4[styleName] = {
1643436
- open: `\x1B[${style2[0]}m`,
1643437
- close: `\x1B[${style2[1]}m`
1643438
- };
1643439
- group[styleName] = styles4[styleName];
1643440
- codes.set(style2[0], style2[1]);
1643441
- }
1643442
- Object.defineProperty(styles4, groupName, {
1643443
- value: group,
1643444
- enumerable: false
1643445
- });
1643446
- }
1643447
- Object.defineProperty(styles4, "codes", {
1643448
- value: codes,
1643449
- enumerable: false
1643450
- });
1643451
- styles4.color.close = "\x1B[39m";
1643452
- styles4.bgColor.close = "\x1B[49m";
1643453
- styles4.color.ansi = wrapAnsi162();
1643454
- styles4.color.ansi256 = wrapAnsi2562();
1643455
- styles4.color.ansi16m = wrapAnsi16m2();
1643456
- styles4.bgColor.ansi = wrapAnsi162(ANSI_BACKGROUND_OFFSET2);
1643457
- styles4.bgColor.ansi256 = wrapAnsi2562(ANSI_BACKGROUND_OFFSET2);
1643458
- styles4.bgColor.ansi16m = wrapAnsi16m2(ANSI_BACKGROUND_OFFSET2);
1643459
- Object.defineProperties(styles4, {
1643460
- rgbToAnsi256: {
1643461
- value(red, green, blue) {
1643462
- if (red === green && green === blue) {
1643463
- if (red < 8) {
1643464
- return 16;
1643465
- }
1643466
- if (red > 248) {
1643467
- return 231;
1643468
- }
1643469
- return Math.round((red - 8) / 247 * 24) + 232;
1643470
- }
1643471
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
1643472
- },
1643473
- enumerable: false
1643474
- },
1643475
- hexToRgb: {
1643476
- value(hex3) {
1643477
- const matches2 = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex3.toString(16));
1643478
- if (!matches2) {
1643479
- return [0, 0, 0];
1643480
- }
1643481
- let [colorString] = matches2;
1643482
- if (colorString.length === 3) {
1643483
- colorString = [...colorString].map((character) => character + character).join("");
1643484
- }
1643485
- const integer2 = Number.parseInt(colorString, 16);
1643486
- return [
1643487
- /* eslint-disable no-bitwise */
1643488
- integer2 >> 16 & 255,
1643489
- integer2 >> 8 & 255,
1643490
- integer2 & 255
1643491
- /* eslint-enable no-bitwise */
1643492
- ];
1643493
- },
1643494
- enumerable: false
1643495
- },
1643496
- hexToAnsi256: {
1643497
- value: (hex3) => styles4.rgbToAnsi256(...styles4.hexToRgb(hex3)),
1643498
- enumerable: false
1643499
- },
1643500
- ansi256ToAnsi: {
1643501
- value(code6) {
1643502
- if (code6 < 8) {
1643503
- return 30 + code6;
1643504
- }
1643505
- if (code6 < 16) {
1643506
- return 90 + (code6 - 8);
1643507
- }
1643508
- let red;
1643509
- let green;
1643510
- let blue;
1643511
- if (code6 >= 232) {
1643512
- red = ((code6 - 232) * 10 + 8) / 255;
1643513
- green = red;
1643514
- blue = red;
1643515
- } else {
1643516
- code6 -= 16;
1643517
- const remainder = code6 % 36;
1643518
- red = Math.floor(code6 / 36) / 5;
1643519
- green = Math.floor(remainder / 6) / 5;
1643520
- blue = remainder % 6 / 5;
1643521
- }
1643522
- const value = Math.max(red, green, blue) * 2;
1643523
- if (value === 0) {
1643524
- return 30;
1643525
- }
1643526
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
1643527
- if (value === 2) {
1643528
- result += 60;
1643529
- }
1643530
- return result;
1643531
- },
1643532
- enumerable: false
1643533
- },
1643534
- rgbToAnsi: {
1643535
- value: (red, green, blue) => styles4.ansi256ToAnsi(styles4.rgbToAnsi256(red, green, blue)),
1643536
- enumerable: false
1643537
- },
1643538
- hexToAnsi: {
1643539
- value: (hex3) => styles4.ansi256ToAnsi(styles4.hexToAnsi256(hex3)),
1643540
- enumerable: false
1643541
- }
1643542
- });
1643543
- return styles4;
1643544
- }
1643545
- var ansiStyles2 = assembleStyles2();
1643546
- var ansi_styles_default2 = ansiStyles2;
1643547
-
1643548
- // ../../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/supports-color/index.js
1643549
- var import_node_process8 = __toESM(require("process"), 1);
1643550
- var import_node_os2 = __toESM(require("os"), 1);
1643551
- var import_node_tty2 = __toESM(require("tty"), 1);
1643552
- function hasFlag2(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process8.default.argv) {
1643553
- const prefix2 = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
1643554
- const position4 = argv.indexOf(prefix2 + flag);
1643555
- const terminatorPosition = argv.indexOf("--");
1643556
- return position4 !== -1 && (terminatorPosition === -1 || position4 < terminatorPosition);
1643557
- }
1643558
- var { env: env5 } = import_node_process8.default;
1643559
- var flagForceColor2;
1643560
- if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
1643561
- flagForceColor2 = 0;
1643562
- } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
1643563
- flagForceColor2 = 1;
1643564
- }
1643565
- function envForceColor2() {
1643566
- if ("FORCE_COLOR" in env5) {
1643567
- if (env5.FORCE_COLOR === "true") {
1643568
- return 1;
1643569
- }
1643570
- if (env5.FORCE_COLOR === "false") {
1643571
- return 0;
1643572
- }
1643573
- return env5.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env5.FORCE_COLOR, 10), 3);
1643574
- }
1643575
- }
1643576
- function translateLevel2(level) {
1643577
- if (level === 0) {
1643578
- return false;
1643579
- }
1643580
- return {
1643581
- level,
1643582
- hasBasic: true,
1643583
- has256: level >= 2,
1643584
- has16m: level >= 3
1643585
- };
1643586
- }
1643587
- function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
1643588
- const noFlagForceColor = envForceColor2();
1643589
- if (noFlagForceColor !== void 0) {
1643590
- flagForceColor2 = noFlagForceColor;
1643591
- }
1643592
- const forceColor = sniffFlags ? flagForceColor2 : noFlagForceColor;
1643593
- if (forceColor === 0) {
1643594
- return 0;
1643595
- }
1643596
- if (sniffFlags) {
1643597
- if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
1643598
- return 3;
1643599
- }
1643600
- if (hasFlag2("color=256")) {
1643601
- return 2;
1643602
- }
1643603
- }
1643604
- if ("TF_BUILD" in env5 && "AGENT_NAME" in env5) {
1643605
- return 1;
1643606
- }
1643607
- if (haveStream && !streamIsTTY && forceColor === void 0) {
1643608
- return 0;
1643609
- }
1643610
- const min = forceColor || 0;
1643611
- if (env5.TERM === "dumb") {
1643612
- return min;
1643613
- }
1643614
- if (import_node_process8.default.platform === "win32") {
1643615
- const osRelease = import_node_os2.default.release().split(".");
1643616
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
1643617
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
1643618
- }
1643619
- return 1;
1643620
- }
1643621
- if ("CI" in env5) {
1643622
- if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key2) => key2 in env5)) {
1643623
- return 3;
1643624
- }
1643625
- if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign2) => sign2 in env5) || env5.CI_NAME === "codeship") {
1643626
- return 1;
1643627
- }
1643628
- return min;
1643629
- }
1643630
- if ("TEAMCITY_VERSION" in env5) {
1643631
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env5.TEAMCITY_VERSION) ? 1 : 0;
1643632
- }
1643633
- if (env5.COLORTERM === "truecolor") {
1643634
- return 3;
1643635
- }
1643636
- if (env5.TERM === "xterm-kitty") {
1643637
- return 3;
1643638
- }
1643639
- if ("TERM_PROGRAM" in env5) {
1643640
- const version7 = Number.parseInt((env5.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1643641
- switch (env5.TERM_PROGRAM) {
1643642
- case "iTerm.app": {
1643643
- return version7 >= 3 ? 3 : 2;
1643644
- }
1643645
- case "Apple_Terminal": {
1643646
- return 2;
1643647
- }
1643648
- }
1643649
- }
1643650
- if (/-256(color)?$/i.test(env5.TERM)) {
1643651
- return 2;
1643652
- }
1643653
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env5.TERM)) {
1643654
- return 1;
1643655
- }
1643656
- if ("COLORTERM" in env5) {
1643657
- return 1;
1643658
- }
1643659
- return min;
1643660
- }
1643661
- function createSupportsColor2(stream5, options2 = {}) {
1643662
- const level = _supportsColor2(stream5, {
1643663
- streamIsTTY: stream5 && stream5.isTTY,
1643664
- ...options2
1643665
- });
1643666
- return translateLevel2(level);
1643667
- }
1643668
- var supportsColor2 = {
1643669
- stdout: createSupportsColor2({ isTTY: import_node_tty2.default.isatty(1) }),
1643670
- stderr: createSupportsColor2({ isTTY: import_node_tty2.default.isatty(2) })
1643671
- };
1643672
- var supports_color_default2 = supportsColor2;
1643673
-
1643674
- // ../../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/utilities.js
1643675
- function stringReplaceAll2(string14, substring, replacer) {
1643676
- let index3 = string14.indexOf(substring);
1643677
- if (index3 === -1) {
1643678
- return string14;
1643679
- }
1643680
- const substringLength = substring.length;
1643681
- let endIndex = 0;
1643682
- let returnValue = "";
1643683
- do {
1643684
- returnValue += string14.slice(endIndex, index3) + substring + replacer;
1643685
- endIndex = index3 + substringLength;
1643686
- index3 = string14.indexOf(substring, endIndex);
1643687
- } while (index3 !== -1);
1643688
- returnValue += string14.slice(endIndex);
1643689
- return returnValue;
1643690
- }
1643691
- function stringEncaseCRLFWithFirstIndex2(string14, prefix2, postfix, index3) {
1643692
- let endIndex = 0;
1643693
- let returnValue = "";
1643694
- do {
1643695
- const gotCR = string14[index3 - 1] === "\r";
1643696
- returnValue += string14.slice(endIndex, gotCR ? index3 - 1 : index3) + prefix2 + (gotCR ? "\r\n" : "\n") + postfix;
1643697
- endIndex = index3 + 1;
1643698
- index3 = string14.indexOf("\n", endIndex);
1643699
- } while (index3 !== -1);
1643700
- returnValue += string14.slice(endIndex);
1643701
- return returnValue;
1643702
- }
1643703
-
1643704
- // ../../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/index.js
1643705
- var { stdout: stdoutColor2, stderr: stderrColor2 } = supports_color_default2;
1643706
- var GENERATOR2 = Symbol("GENERATOR");
1643707
- var STYLER2 = Symbol("STYLER");
1643708
- var IS_EMPTY2 = Symbol("IS_EMPTY");
1643709
- var levelMapping2 = [
1643710
- "ansi",
1643711
- "ansi",
1643712
- "ansi256",
1643713
- "ansi16m"
1643714
- ];
1643715
- var styles5 = /* @__PURE__ */ Object.create(null);
1643716
- var applyOptions2 = (object9, options2 = {}) => {
1643717
- if (options2.level && !(Number.isInteger(options2.level) && options2.level >= 0 && options2.level <= 3)) {
1643718
- throw new Error("The `level` option should be an integer from 0 to 3");
1643719
- }
1643720
- const colorLevel = stdoutColor2 ? stdoutColor2.level : 0;
1643721
- object9.level = options2.level === void 0 ? colorLevel : options2.level;
1643722
- };
1643723
- var chalkFactory2 = (options2) => {
1643724
- const chalk3 = (...strings) => strings.join(" ");
1643725
- applyOptions2(chalk3, options2);
1643726
- Object.setPrototypeOf(chalk3, createChalk2.prototype);
1643727
- return chalk3;
1643728
- };
1643729
- function createChalk2(options2) {
1643730
- return chalkFactory2(options2);
1643731
- }
1643732
- Object.setPrototypeOf(createChalk2.prototype, Function.prototype);
1643733
- for (const [styleName, style2] of Object.entries(ansi_styles_default2)) {
1643734
- styles5[styleName] = {
1643735
- get() {
1643736
- const builder = createBuilder2(this, createStyler2(style2.open, style2.close, this[STYLER2]), this[IS_EMPTY2]);
1643737
- Object.defineProperty(this, styleName, { value: builder });
1643738
- return builder;
1643739
- }
1643740
- };
1643741
- }
1643742
- styles5.visible = {
1643743
- get() {
1643744
- const builder = createBuilder2(this, this[STYLER2], true);
1643745
- Object.defineProperty(this, "visible", { value: builder });
1643746
- return builder;
1643747
- }
1643748
- };
1643749
- var getModelAnsi2 = (model, level, type8, ...arguments_) => {
1643750
- if (model === "rgb") {
1643751
- if (level === "ansi16m") {
1643752
- return ansi_styles_default2[type8].ansi16m(...arguments_);
1643753
- }
1643754
- if (level === "ansi256") {
1643755
- return ansi_styles_default2[type8].ansi256(ansi_styles_default2.rgbToAnsi256(...arguments_));
1643756
- }
1643757
- return ansi_styles_default2[type8].ansi(ansi_styles_default2.rgbToAnsi(...arguments_));
1643758
- }
1643759
- if (model === "hex") {
1643760
- return getModelAnsi2("rgb", level, type8, ...ansi_styles_default2.hexToRgb(...arguments_));
1643761
- }
1643762
- return ansi_styles_default2[type8][model](...arguments_);
1643763
- };
1643764
- var usedModels2 = ["rgb", "hex", "ansi256"];
1643765
- for (const model of usedModels2) {
1643766
- styles5[model] = {
1643767
- get() {
1643768
- const { level } = this;
1643769
- return function(...arguments_) {
1643770
- const styler = createStyler2(getModelAnsi2(model, levelMapping2[level], "color", ...arguments_), ansi_styles_default2.color.close, this[STYLER2]);
1643771
- return createBuilder2(this, styler, this[IS_EMPTY2]);
1643772
- };
1643773
- }
1643774
- };
1643775
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
1643776
- styles5[bgModel] = {
1643777
- get() {
1643778
- const { level } = this;
1643779
- return function(...arguments_) {
1643780
- const styler = createStyler2(getModelAnsi2(model, levelMapping2[level], "bgColor", ...arguments_), ansi_styles_default2.bgColor.close, this[STYLER2]);
1643781
- return createBuilder2(this, styler, this[IS_EMPTY2]);
1643782
- };
1643783
- }
1643784
- };
1643785
- }
1643786
- var proto2 = Object.defineProperties(() => {
1643787
- }, {
1643788
- ...styles5,
1643789
- level: {
1643790
- enumerable: true,
1643791
- get() {
1643792
- return this[GENERATOR2].level;
1643793
- },
1643794
- set(level) {
1643795
- this[GENERATOR2].level = level;
1643796
- }
1643797
- }
1643798
- });
1643799
- var createStyler2 = (open5, close2, parent) => {
1643800
- let openAll;
1643801
- let closeAll;
1643802
- if (parent === void 0) {
1643803
- openAll = open5;
1643804
- closeAll = close2;
1643805
- } else {
1643806
- openAll = parent.openAll + open5;
1643807
- closeAll = close2 + parent.closeAll;
1643808
- }
1643809
- return {
1643810
- open: open5,
1643811
- close: close2,
1643812
- openAll,
1643813
- closeAll,
1643814
- parent
1643815
- };
1643816
- };
1643817
- var createBuilder2 = (self2, _styler, _isEmpty) => {
1643818
- const builder = (...arguments_) => applyStyle2(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
1643819
- Object.setPrototypeOf(builder, proto2);
1643820
- builder[GENERATOR2] = self2;
1643821
- builder[STYLER2] = _styler;
1643822
- builder[IS_EMPTY2] = _isEmpty;
1643823
- return builder;
1643824
- };
1643825
- var applyStyle2 = (self2, string14) => {
1643826
- if (self2.level <= 0 || !string14) {
1643827
- return self2[IS_EMPTY2] ? "" : string14;
1643828
- }
1643829
- let styler = self2[STYLER2];
1643830
- if (styler === void 0) {
1643831
- return string14;
1643832
- }
1643833
- const { openAll, closeAll } = styler;
1643834
- if (string14.includes("\x1B")) {
1643835
- while (styler !== void 0) {
1643836
- string14 = stringReplaceAll2(string14, styler.close, styler.open);
1643837
- styler = styler.parent;
1643838
- }
1643839
- }
1643840
- const lfIndex = string14.indexOf("\n");
1643841
- if (lfIndex !== -1) {
1643842
- string14 = stringEncaseCRLFWithFirstIndex2(string14, closeAll, openAll, lfIndex);
1643843
- }
1643844
- return openAll + string14 + closeAll;
1643845
- };
1643846
- Object.defineProperties(createChalk2.prototype, styles5);
1643847
- var chalk2 = createChalk2();
1643848
- var chalkStderr2 = createChalk2({ level: stderrColor2 ? stderrColor2.level : 0 });
1643849
- var source_default2 = chalk2;
1643850
-
1643851
1643859
  // ../cli-v2/lib/ui/TaskGroup.js
1643852
1643860
  var TaskGroup = class _TaskGroup {
1643853
1643861
  context;
@@ -1643883,10 +1643891,10 @@ var TaskGroup = class _TaskGroup {
1643883
1643891
  if (header != null) {
1643884
1643892
  await this.ttyAwareLogger.takeOverTerminal(() => {
1643885
1643893
  this.stream.write("\n");
1643886
- this.stream.write(`${source_default2.cyan("\u25C6")} ${source_default2.bold(header.title)}
1643894
+ this.stream.write(`${source_default.cyan("\u25C6")} ${source_default.bold(header.title)}
1643887
1643895
  `);
1643888
1643896
  if (header.subtitle != null) {
1643889
- this.stream.write(` ${source_default2.dim(header.subtitle)}
1643897
+ this.stream.write(` ${source_default.dim(header.subtitle)}
1643890
1643898
  `);
1643891
1643899
  }
1643892
1643900
  this.stream.write("\n");
@@ -1643974,82 +1643982,78 @@ var TaskGroup = class _TaskGroup {
1643974
1643982
  const duration3 = this.startTime != null ? this.formatDuration(Date.now() - this.startTime) : "0s";
1643975
1643983
  this.stream.write("\n");
1643976
1643984
  if (failedCount === 0) {
1643977
- this.stream.write(`${source_default2.green("\u2713")} ${successMessage} ${source_default2.dim(`in ${duration3}`)}
1643985
+ this.stream.write(`${source_default.green("\u2713")} ${successMessage} ${source_default.dim(`in ${duration3}`)}
1643978
1643986
  `);
1643979
1643987
  } else {
1643980
- this.stream.write(`${source_default2.red("\u2715")} ${errorMessage} ${source_default2.dim(`in ${duration3}`)}
1643988
+ this.stream.write(`${source_default.red("\u2715")} ${errorMessage} ${source_default.dim(`in ${duration3}`)}
1643981
1643989
  `);
1643982
1643990
  }
1643983
1643991
  const logFilePath = this.context.getLogFilePath();
1643984
1643992
  if (logFilePath != null) {
1643985
1643993
  this.stream.write(`
1643986
- ${source_default2.dim(`Logs written to: ${logFilePath}`)}
1643994
+ ${source_default.dim(`Logs written to: ${logFilePath}`)}
1643987
1643995
  `);
1643988
1643996
  }
1643989
1643997
  this.stream.write("\n");
1643990
1643998
  return { successCount, failedCount, duration: duration3 };
1643991
1643999
  }
1643992
1644000
  formatTaskLine(task, spinnerFrame) {
1643993
- const name3 = source_default2.bold(task.name);
1644001
+ const name3 = source_default.bold(task.name);
1643994
1644002
  const logLines = this.formatTaskLogs(task.logs);
1643995
1644003
  switch (task.status) {
1643996
1644004
  case "pending":
1643997
1644005
  return void 0;
1643998
1644006
  case "running": {
1643999
- const step = task.currentStep != null ? ` ${source_default2.dim(task.currentStep)}` : "";
1644007
+ const step = task.currentStep != null ? ` ${source_default.dim(task.currentStep)}` : "";
1644000
1644008
  return `${spinnerFrame} ${name3}${step}${logLines}`;
1644001
1644009
  }
1644002
1644010
  case "success": {
1644003
1644011
  const duration3 = this.formatTaskDuration(task);
1644004
1644012
  const outputLines = task.output != null && task.output.length > 0 ? task.output.map((output2) => `
1644005
- ${source_default2.dim("\u2192")} ${source_default2.cyan(output2)}`).join("") : "";
1644006
- return `${source_default2.green("\u2713")} ${name3}${duration3}${logLines}${outputLines}`;
1644013
+ ${source_default.dim("\u2192")} ${source_default.cyan(output2)}`).join("") : "";
1644014
+ return `${source_default.green("\u2713")} ${name3}${duration3}${logLines}${outputLines}`;
1644007
1644015
  }
1644008
1644016
  case "error": {
1644009
1644017
  const duration3 = this.formatTaskDuration(task);
1644010
- const errorLines = this.formatMultilineError(task.error);
1644011
- return `${source_default2.red("x")} ${name3}${duration3}${logLines}${errorLines}`;
1644018
+ const errorLines = this.formatMultilineText(task.error, source_default.red.bind(source_default));
1644019
+ return `${source_default.red("x")} ${name3}${duration3}${logLines}${errorLines}`;
1644012
1644020
  }
1644013
1644021
  case "skipped":
1644014
- return `${source_default2.dim("\u25CB")} ${source_default2.dim(name3)} ${source_default2.dim("(skipped)")}`;
1644022
+ return `${source_default.dim("\u25CB")} ${source_default.dim(name3)} ${source_default.dim("(skipped)")}`;
1644015
1644023
  default:
1644016
1644024
  assertNever(task.status);
1644017
1644025
  }
1644018
1644026
  }
1644019
1644027
  static MAX_DISPLAYED_LOGS_TTY = 10;
1644028
+ static URL_PATTERN = /https?:\/\//i;
1644020
1644029
  formatTaskLogs(logs) {
1644021
1644030
  if (logs == null || logs.length === 0) {
1644022
1644031
  return "";
1644023
1644032
  }
1644024
1644033
  const shouldLimit = this.context.isTTY;
1644025
- const logsToShow = shouldLimit && logs.length > _TaskGroup.MAX_DISPLAYED_LOGS_TTY ? logs.slice(-_TaskGroup.MAX_DISPLAYED_LOGS_TTY) : logs;
1644034
+ const filteredLogs = shouldLimit ? logs.filter((log2) => log2.level !== "debug" || !_TaskGroup.URL_PATTERN.test(log2.message)) : logs;
1644035
+ const logsToShow = shouldLimit && filteredLogs.length > _TaskGroup.MAX_DISPLAYED_LOGS_TTY ? filteredLogs.slice(-_TaskGroup.MAX_DISPLAYED_LOGS_TTY) : filteredLogs;
1644026
1644036
  const hiddenCount = logs.length - logsToShow.length;
1644027
- const maxMessageLength = shouldLimit ? this.getMaxLogMessageLength() : Infinity;
1644028
1644037
  const formattedLogs = logsToShow.map((log2) => {
1644029
- const message = shouldLimit ? this.truncateMessage(log2.message, maxMessageLength) : log2.message;
1644030
1644038
  switch (log2.level) {
1644031
1644039
  case "debug": {
1644032
- const icon = source_default2.dim("\u2022");
1644040
+ const maxMessageLength = shouldLimit ? this.getMaxLogMessageLength() : Infinity;
1644041
+ const message = shouldLimit ? this.truncateMessage(log2.message, maxMessageLength) : log2.message;
1644042
+ const icon = source_default.dim("\u2022");
1644033
1644043
  return `
1644034
- ${icon} ${source_default2.dim(message)}`;
1644035
- }
1644036
- case "warn": {
1644037
- const icon = source_default2.yellow("\u26A0");
1644038
- return `
1644039
- ${icon} ${source_default2.yellow(message)}`;
1644040
- }
1644041
- case "error": {
1644042
- const icon = source_default2.red("\u2717");
1644043
- return `
1644044
- ${icon} ${source_default2.red(message)}`;
1644044
+ ${icon} ${source_default.dim(message)}`;
1644045
1644045
  }
1644046
+ case "warn":
1644047
+ return this.formatMultilineText(log2.message, source_default.yellow.bind(source_default), source_default.yellow("\u26A0"));
1644048
+ case "error":
1644049
+ return this.formatMultilineText(log2.message, source_default.red.bind(source_default), source_default.red("\u2717"));
1644046
1644050
  default:
1644047
1644051
  assertNever(log2.level);
1644048
1644052
  }
1644049
1644053
  }).join("");
1644050
1644054
  if (hiddenCount > 0) {
1644051
1644055
  return `
1644052
- ${source_default2.dim(`... ${hiddenCount} earlier logs hidden ...`)}${formattedLogs}`;
1644056
+ ${source_default.dim(`... ${hiddenCount} earlier logs hidden ...`)}${formattedLogs}`;
1644053
1644057
  }
1644054
1644058
  return formattedLogs;
1644055
1644059
  }
@@ -1644073,17 +1644077,25 @@ ${source_default2.dim(`Logs written to: ${logFilePath}`)}
1644073
1644077
  }
1644074
1644078
  formatTaskDuration(task) {
1644075
1644079
  if (task.startTime != null && task.endTime != null) {
1644076
- return source_default2.dim(` ${this.formatDuration(task.endTime - task.startTime)}`);
1644080
+ return source_default.dim(` ${this.formatDuration(task.endTime - task.startTime)}`);
1644077
1644081
  }
1644078
1644082
  return "";
1644079
1644083
  }
1644080
- formatMultilineError(error49) {
1644081
- if (error49 == null) {
1644084
+ formatMultilineText(text9, colorFn, icon) {
1644085
+ if (text9 == null) {
1644082
1644086
  return "";
1644083
1644087
  }
1644084
- const lines = error49.split("\n").filter((line) => line.trim().length > 0);
1644088
+ const lines = text9.split("\n").filter((line) => line.trim().length > 0);
1644089
+ if (icon != null) {
1644090
+ const [first3, ...rest] = lines;
1644091
+ const firstLine = `
1644092
+ ${icon} ${colorFn(first3 ?? "")}`;
1644093
+ const restLines = rest.map((line) => `
1644094
+ ${colorFn(line)}`).join("");
1644095
+ return firstLine + restLines;
1644096
+ }
1644085
1644097
  return lines.map((line) => `
1644086
- ${source_default2.red(line)}`).join("");
1644098
+ ${colorFn(line)}`).join("");
1644087
1644099
  }
1644088
1644100
  formatDuration(ms6) {
1644089
1644101
  if (ms6 < 1e3) {
@@ -1644990,7 +1645002,8 @@ async function runCliV2(argv) {
1644990
1645002
  await cli.parse();
1644991
1645003
  }
1644992
1645004
  function createCliV2(argv) {
1644993
- const cli = yargs_default(argv ?? hideBin(process.argv)).scriptName("fern").version(Version2).option("log-level", {
1645005
+ const terminalWidth = process.stdout.columns ?? 80;
1645006
+ const cli = yargs_default(argv ?? hideBin(process.argv)).scriptName("fern").version(Version2).wrap(Math.min(120, terminalWidth)).option("log-level", {
1644994
1645007
  type: "string",
1644995
1645008
  description: "Set log level",
1644996
1645009
  choices: ["debug", "info", "warn", "error"],
@@ -1650939,7 +1650952,7 @@ var AccessTokenPosthogManager = class {
1650939
1650952
  properties: {
1650940
1650953
  ...event,
1650941
1650954
  ...event.properties,
1650942
- version: "3.52.0-40-g0bd25791343",
1650955
+ version: "3.52.0-61-g25c914de7fa",
1650943
1650956
  usingAccessToken: true
1650944
1650957
  }
1650945
1650958
  });
@@ -1650989,7 +1651002,7 @@ var UserPosthogManager = class {
1650989
1651002
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
1650990
1651003
  event: "CLI",
1650991
1651004
  properties: {
1650992
- version: "3.52.0-40-g0bd25791343",
1651005
+ version: "3.52.0-61-g25c914de7fa",
1650993
1651006
  ...event,
1650994
1651007
  ...event.properties,
1650995
1651008
  usingAccessToken: false,
@@ -1651716,7 +1651729,7 @@ var makeContentText = (text9, { padding, width, textAlignment, height: height3 }
1651716
1651729
  var boxContent = (content5, contentWidth, options2) => {
1651717
1651730
  const colorizeBorder = (border) => {
1651718
1651731
  const newBorder = options2.borderColor ? getColorFn(options2.borderColor)(border) : border;
1651719
- return options2.dimBorder ? source_default.dim(newBorder) : newBorder;
1651732
+ return options2.dimBorder ? source_default2.dim(newBorder) : newBorder;
1651720
1651733
  };
1651721
1651734
  const colorizeContent = (content6) => options2.backgroundColor ? getBGColorFn(options2.backgroundColor)(content6) : content6;
1651722
1651735
  const chars = getBorderChars(options2.borderStyle);
@@ -1651810,9 +1651823,9 @@ var determineDimensions = (text9, options2) => {
1651810
1651823
  return options2;
1651811
1651824
  };
1651812
1651825
  var isHex = (color3) => color3.match(/^#(?:[0-f]{3}){1,2}$/i);
1651813
- var isColorValid = (color3) => typeof color3 === "string" && (source_default[color3] ?? isHex(color3));
1651814
- var getColorFn = (color3) => isHex(color3) ? source_default.hex(color3) : source_default[color3];
1651815
- var getBGColorFn = (color3) => isHex(color3) ? source_default.bgHex(color3) : source_default[camelCase6(["bg", color3])];
1651826
+ var isColorValid = (color3) => typeof color3 === "string" && (source_default2[color3] ?? isHex(color3));
1651827
+ var getColorFn = (color3) => isHex(color3) ? source_default2.hex(color3) : source_default2[color3];
1651828
+ var getBGColorFn = (color3) => isHex(color3) ? source_default2.bgHex(color3) : source_default2[camelCase6(["bg", color3])];
1651816
1651829
  function boxen(text9, options2) {
1651817
1651830
  options2 = {
1651818
1651831
  padding: 0,
@@ -1652019,7 +1652032,7 @@ async function login(context2, { useDeviceCodeFlow = false } = {}) {
1652019
1652032
  });
1652020
1652033
  const token = await getTokenFromAuth0(context2, { useDeviceCodeFlow });
1652021
1652034
  await storeToken(token);
1652022
- context2.logger.info(source_default.green("Logged in!"));
1652035
+ context2.logger.info(source_default2.green("Logged in!"));
1652023
1652036
  (await getPosthogManager()).identify();
1652024
1652037
  return {
1652025
1652038
  type: "user",
@@ -1652086,17 +1652099,17 @@ async function logout(context2) {
1652086
1652099
  });
1652087
1652100
  const wasLoggedIn = await isLoggedIn();
1652088
1652101
  if (!wasLoggedIn) {
1652089
- context2.logger.info(source_default.yellow("You are not currently logged in."));
1652102
+ context2.logger.info(source_default2.yellow("You are not currently logged in."));
1652090
1652103
  return;
1652091
1652104
  }
1652092
1652105
  await removeToken();
1652093
1652106
  const logoutUrl = constructAuth0LogoutUrl();
1652094
- context2.logger.info(source_default.blue("Opening browser to complete logout..."));
1652107
+ context2.logger.info(source_default2.blue("Opening browser to complete logout..."));
1652095
1652108
  try {
1652096
1652109
  await (0, import_open3.default)(logoutUrl);
1652097
- context2.logger.info(source_default.green("Successfully logged out! You can close the browser window."));
1652110
+ context2.logger.info(source_default2.green("Successfully logged out! You can close the browser window."));
1652098
1652111
  } catch (error49) {
1652099
- context2.logger.warn(source_default.yellow("Could not open browser automatically. Please visit this URL to complete logout:\n" + logoutUrl));
1652112
+ context2.logger.warn(source_default2.yellow("Could not open browser automatically. Please visit this URL to complete logout:\n" + logoutUrl));
1652100
1652113
  }
1652101
1652114
  await context2.instrumentPostHogEvent({
1652102
1652115
  command: "Logout successful"
@@ -1652126,7 +1652139,7 @@ async function createFernDirectoryAndWorkspace({ organization, taskContext, vers
1652126
1652139
  context: taskContext
1652127
1652140
  });
1652128
1652141
  if (didCreateOrganization) {
1652129
- taskContext.logger.info(`${source_default.green(`Created organization ${source_default.bold(organization)}`)}`);
1652142
+ taskContext.logger.info(`${source_default2.green(`Created organization ${source_default2.bold(organization)}`)}`);
1652130
1652143
  }
1652131
1652144
  } else {
1652132
1652145
  const venus = createVenusService({ token: token.value });
@@ -1652360,9 +1652373,9 @@ async function formatFernWorkspace({ workspace, context: context2, shouldFix })
1652360
1652373
  if (formatted !== file4.rawContents) {
1652361
1652374
  if (shouldFix) {
1652362
1652375
  await (0, import_promises66.writeFile)(file4.absoluteFilePath, formatted);
1652363
- context2.logger.info(source_default.green(`Formatted ${source_default.bold(relativeFilepath)}`));
1652376
+ context2.logger.info(source_default2.green(`Formatted ${source_default2.bold(relativeFilepath)}`));
1652364
1652377
  } else {
1652365
- context2.logger.info(source_default.red(`Invalid formatting: ${source_default.bold(relativeFilepath)}`));
1652378
+ context2.logger.info(source_default2.red(`Invalid formatting: ${source_default2.bold(relativeFilepath)}`));
1652366
1652379
  context2.failWithoutThrowing();
1652367
1652380
  }
1652368
1652381
  }
@@ -1652543,10 +1652556,10 @@ async function initializeAPI({ organization, versionOfCli, openApiPath, context:
1652543
1652556
  cliVersion: versionOfCli,
1652544
1652557
  context: context2
1652545
1652558
  });
1652546
- context2.logger.info(source_default.green("Created new API: ./" + import_path50.default.relative(process.cwd(), directoryOfWorkspace)));
1652559
+ context2.logger.info(source_default2.green("Created new API: ./" + import_path50.default.relative(process.cwd(), directoryOfWorkspace)));
1652547
1652560
  } else {
1652548
1652561
  await createFernWorkspace({ directoryOfWorkspace, cliVersion: versionOfCli, context: context2 });
1652549
- context2.logger.info(source_default.green("Created new fern folder"));
1652562
+ context2.logger.info(source_default2.green("Created new fern folder"));
1652550
1652563
  }
1652551
1652564
  }
1652552
1652565
  async function getDirectoryOfNewAPIWorkspace({ absolutePathToFernDirectory, taskContext }) {
@@ -1652998,18 +1653011,18 @@ async function initializeDocs({ organization, taskContext, versionOfCli }) {
1652998
1653011
  if (createDirectoryResponse.absolutePathToFernDirectory) {
1652999
1653012
  const docsYmlPath = join4(createDirectoryResponse.absolutePathToFernDirectory, RelativeFilePath2.of(DOCS_CONFIGURATION_FILENAME));
1653000
1653013
  if (await doesPathExist(docsYmlPath)) {
1653001
- taskContext.logger.info(source_default.yellow(`Docs configuration already exists at: ${docsYmlPath}`));
1653014
+ taskContext.logger.info(source_default2.yellow(`Docs configuration already exists at: ${docsYmlPath}`));
1653002
1653015
  return;
1653003
1653016
  } else {
1653004
1653017
  try {
1653005
1653018
  const docsConfig = getDocsConfig(createDirectoryResponse.organization);
1653006
1653019
  await (0, import_promises69.writeFile)(docsYmlPath, jsYaml.dump(docsConfig));
1653007
- taskContext.logger.info(source_default.green("Created docs configuration"));
1653020
+ taskContext.logger.info(source_default2.green("Created docs configuration"));
1653008
1653021
  return;
1653009
1653022
  } catch (writeError) {
1653010
1653023
  const errorMessage = writeError instanceof Error ? writeError.message : String(writeError);
1653011
1653024
  taskContext.logger.debug(`Encountered an error while writing docs configuration: ${errorMessage}`);
1653012
- taskContext.logger.error(source_default.red("Failed to write docs configuration"));
1653025
+ taskContext.logger.error(source_default2.red("Failed to write docs configuration"));
1653013
1653026
  throw writeError;
1653014
1653027
  }
1653015
1653028
  }
@@ -1683737,7 +1683750,7 @@ var TaskContextImpl = class {
1683737
1683750
  name: name3,
1683738
1683751
  subtitle,
1683739
1683752
  logImmediately: (content5) => this.logImmediately(content5),
1683740
- logPrefix: `${this.logPrefix}${source_default.blackBright(name3)} `,
1683753
+ logPrefix: `${this.logPrefix}${source_default2.blackBright(name3)} `,
1683741
1683754
  takeOverTerminal: this.takeOverTerminal,
1683742
1683755
  onResult: this.onResult,
1683743
1683756
  shouldBufferLogs: this.shouldBufferLogs,
@@ -1683798,7 +1683811,7 @@ var InteractiveTaskContextImpl = class extends TaskContextImpl {
1683798
1683811
  print({ spinner }) {
1683799
1683812
  const lines = [this.name];
1683800
1683813
  if (this.subtitle != null) {
1683801
- lines.push(source_default.dim(this.subtitle));
1683814
+ lines.push(source_default2.dim(this.subtitle));
1683802
1683815
  }
1683803
1683816
  lines.push(...this.subtasks.map((subtask) => subtask.print({ spinner })));
1683804
1683817
  return addPrefixToString({
@@ -1683812,15 +1683825,15 @@ var InteractiveTaskContextImpl = class extends TaskContextImpl {
1683812
1683825
  getIcon({ spinner }) {
1683813
1683826
  switch (this.status) {
1683814
1683827
  case "notStarted":
1683815
- return source_default.dim("\u25E6");
1683828
+ return source_default2.dim("\u25E6");
1683816
1683829
  case "running":
1683817
1683830
  return spinner;
1683818
1683831
  case "finished":
1683819
1683832
  switch (this.getResult()) {
1683820
1683833
  case TaskResult.Success:
1683821
- return source_default.green("\u2713");
1683834
+ return source_default2.green("\u2713");
1683822
1683835
  case TaskResult.Failure:
1683823
- return source_default.red("x");
1683836
+ return source_default2.red("x");
1683824
1683837
  }
1683825
1683838
  }
1683826
1683839
  }
@@ -1683852,11 +1683865,11 @@ async function getFernUpgradeMessage({
1683852
1683865
  if (!hasUpgrade(upgradeInfo) || cliEnvironment.packageVersion == upgradeInfo.cliUpgradeInfo?.latestVersion) {
1683853
1683866
  return;
1683854
1683867
  }
1683855
- let message = `${source_default.underline("Upgrades available")}
1683868
+ let message = `${source_default2.underline("Upgrades available")}
1683856
1683869
 
1683857
1683870
  `;
1683858
1683871
  if (upgradeInfo.cliUpgradeInfo?.isUpgradeAvailable) {
1683859
- message += "Fern " + source_default.dim(cliEnvironment.packageVersion) + source_default.reset(" \u2192 ") + source_default.green(upgradeInfo.cliUpgradeInfo.latestVersion) + " \n(Run " + source_default.cyan(`${cliEnvironment.cliName} upgrade`) + " to update)";
1683872
+ message += "Fern " + source_default2.dim(cliEnvironment.packageVersion) + source_default2.reset(" \u2192 ") + source_default2.green(upgradeInfo.cliUpgradeInfo.latestVersion) + " \n(Run " + source_default2.cyan(`${cliEnvironment.cliName} upgrade`) + " to update)";
1683860
1683873
  }
1683861
1683874
  const generatorUpgradeMessage = await getGeneratorUpgradeMessage({
1683862
1683875
  generatorUpgradeInfo: upgradeInfo.generatorUpgradeInfo,
@@ -1683869,11 +1683882,11 @@ async function getFernUpgradeMessage({
1683869
1683882
  const generatorsNeedingUpgrades = upgradeInfo.generatorUpgradeInfo.filter((gui) => gui.isUpgradeAvailable);
1683870
1683883
  if (generatorsNeedingUpgrades.length > 0) {
1683871
1683884
  message += `
1683872
- Run ${source_default.cyan("fern generator upgrade")} to upgrade your generators.`;
1683885
+ Run ${source_default2.cyan("fern generator upgrade")} to upgrade your generators.`;
1683873
1683886
  }
1683874
1683887
  if (generatorsNeedingUpgrades.length > 2) {
1683875
1683888
  message += `
1683876
- Run ${source_default.cyan("fern generator upgrade --list")} to see the full list of generator upgrades available.`;
1683889
+ Run ${source_default2.cyan("fern generator upgrade --list")} to see the full list of generator upgrades available.`;
1683877
1683890
  }
1683878
1683891
  return boxen(message, {
1683879
1683892
  padding: 1,
@@ -1683902,7 +1683915,7 @@ async function getGeneratorUpgradeMessage({
1683902
1683915
  );
1683903
1683916
  for (const generatorUpgrade of sortedUpgrades) {
1683904
1683917
  message += `
1683905
- ${await normalizeGeneratorName2(generatorUpgrade.generatorName)} (${generatorUpgrade.apiName != null ? "API: " + generatorUpgrade.apiName + ", " : ""}Group: ${generatorUpgrade.generatorGroup}) ` + source_default.dim(generatorUpgrade.currentVersion) + source_default.reset(" \u2192 ") + source_default.green(generatorUpgrade.latestVersion);
1683918
+ ${await normalizeGeneratorName2(generatorUpgrade.generatorName)} (${generatorUpgrade.apiName != null ? "API: " + generatorUpgrade.apiName + ", " : ""}Group: ${generatorUpgrade.generatorGroup}) ` + source_default2.dim(generatorUpgrade.currentVersion) + source_default2.reset(" \u2192 ") + source_default2.green(generatorUpgrade.latestVersion);
1683906
1683919
  }
1683907
1683920
  message += "\n";
1683908
1683921
  return includeBoxen ? boxen(message, {
@@ -1684131,7 +1684144,7 @@ var CliContext = class {
1684131
1684144
  if (false) {
1684132
1684145
  this.logger.error("CLI_VERSION is not defined");
1684133
1684146
  }
1684134
- return "3.52.0-40-g0bd25791343";
1684147
+ return "3.52.0-61-g25c914de7fa";
1684135
1684148
  }
1684136
1684149
  getCliName() {
1684137
1684150
  if (false) {
@@ -1684144,7 +1684157,7 @@ var CliContext = class {
1684144
1684157
  }
1684145
1684158
  logFernVersionDebug() {
1684146
1684159
  this.logger.debug(
1684147
- `Running ${source_default.bold(`${this.environment.cliName}`)} (${this.environment.packageName}@${this.environment.packageVersion})`
1684160
+ `Running ${source_default2.bold(`${this.environment.cliName}`)} (${this.environment.packageName}@${this.environment.packageVersion})`
1684148
1684161
  );
1684149
1684162
  }
1684150
1684163
  failAndThrow(message, error49) {
@@ -1684252,7 +1684265,7 @@ var CliContext = class {
1684252
1684265
  const minLengthForPrefix = 1 + (this.longestWorkspaceName != null ? wrapWorkspaceNameForPrefix(this.longestWorkspaceName) : prefixWithoutPadding).length;
1684253
1684266
  const prefix2 = prefixWithoutPadding.padEnd(minLengthForPrefix);
1684254
1684267
  const colorForWorkspace = WORKSPACE_NAME_COLORS[this.numTasks++ % WORKSPACE_NAME_COLORS.length];
1684255
- const prefixWithColor = source_default.hex(colorForWorkspace)(prefix2);
1684268
+ const prefixWithColor = source_default2.hex(colorForWorkspace)(prefix2);
1684256
1684269
  return {
1684257
1684270
  ...this.constructTaskInit(),
1684258
1684271
  logPrefix: prefixWithColor
@@ -1684353,11 +1684366,11 @@ var CliContext = class {
1684353
1684366
  ],
1684354
1684367
  default: defaultValue,
1684355
1684368
  theme: {
1684356
- prefix: source_default.yellow("?"),
1684369
+ prefix: source_default2.yellow("?"),
1684357
1684370
  style: {
1684358
- answer: (text9) => source_default.cyan(text9),
1684359
- message: (text9) => source_default.bold(text9),
1684360
- highlight: (text9) => source_default.cyan(text9)
1684371
+ answer: (text9) => source_default2.cyan(text9),
1684372
+ message: (text9) => source_default2.bold(text9),
1684373
+ highlight: (text9) => source_default2.cyan(text9)
1684361
1684374
  }
1684362
1684375
  }
1684363
1684376
  });
@@ -1684458,7 +1684471,7 @@ async function loadApis({ cliName, fernDirectory, context: context2, cliVersion,
1684458
1684471
  const longestWorkspaceName = Math.max(...apiWorkspaceDirectoryNames.map((workspaceName) => workspaceName.length));
1684459
1684472
  message += apiWorkspaceDirectoryNames.map((workspaceName) => {
1684460
1684473
  const suggestedCommand = `${cliName} ${process.argv.slice(2).join(" ")} --api ${workspaceName}`;
1684461
- return ` \u203A ${source_default.bold(workspaceName.padEnd(longestWorkspaceName))} ${source_default.dim(suggestedCommand)}`;
1684474
+ return ` \u203A ${source_default2.bold(workspaceName.padEnd(longestWorkspaceName))} ${source_default2.dim(suggestedCommand)}`;
1684462
1684475
  }).join("\n");
1684463
1684476
  return context2.failAndThrow(message);
1684464
1684477
  }
@@ -1684911,7 +1684924,7 @@ async function loadAndUpdateGenerators({
1684911
1684924
  if (latestVersion2 != null) {
1684912
1684925
  if (latestVersion2 !== currentGeneratorVersion) {
1684913
1684926
  context2.logger.debug(
1684914
- source_default.green(`Upgrading ${generatorName} from ${currentGeneratorVersion} to ${latestVersion2}`)
1684927
+ source_default2.green(`Upgrading ${generatorName} from ${currentGeneratorVersion} to ${latestVersion2}`)
1684915
1684928
  );
1684916
1684929
  generator.set("version", latestVersion2);
1684917
1684930
  let migrationsApplied = 0;
@@ -1684938,7 +1684951,7 @@ async function loadAndUpdateGenerators({
1684938
1684951
  generator.set(key2, value);
1684939
1684952
  }
1684940
1684953
  context2.logger.debug(
1684941
- source_default.dim(`Applied ${migrationsApplied} migration(s): ${migrationVersions.join(", ")}`)
1684954
+ source_default2.dim(`Applied ${migrationsApplied} migration(s): ${migrationVersions.join(", ")}`)
1684942
1684955
  );
1684943
1684956
  }
1684944
1684957
  appliedUpgrades.push({
@@ -1684951,7 +1684964,7 @@ async function loadAndUpdateGenerators({
1684951
1684964
  });
1684952
1684965
  } else {
1684953
1684966
  context2.logger.debug(
1684954
- source_default.gray(`${generatorName} is already on the latest version: ${currentGeneratorVersion}`)
1684967
+ source_default2.gray(`${generatorName} is already on the latest version: ${currentGeneratorVersion}`)
1684955
1684968
  );
1684956
1684969
  alreadyUpToDate.push({
1684957
1684970
  generatorName,
@@ -1685047,7 +1685060,7 @@ async function upgradeGenerator({
1685047
1685060
  );
1685048
1685061
  if (allAppliedUpgrades.length > 0) {
1685049
1685062
  cliContext.logger.info("");
1685050
- cliContext.logger.info(source_default.green("Successfully upgraded generators:"));
1685063
+ cliContext.logger.info(source_default2.green("Successfully upgraded generators:"));
1685051
1685064
  for (const { workspace, upgrades } of allAppliedUpgrades) {
1685052
1685065
  const upgradesByGroup = /* @__PURE__ */ new Map();
1685053
1685066
  for (const upgrade2 of upgrades) {
@@ -1685057,23 +1685070,23 @@ async function upgradeGenerator({
1685057
1685070
  }
1685058
1685071
  for (const [groupName, groupUpgrades] of upgradesByGroup) {
1685059
1685072
  const workspacePrefix = workspace != null ? `[${workspace}] ` : "";
1685060
- cliContext.logger.info(source_default.green(`${workspacePrefix}Group ${groupName}:`));
1685073
+ cliContext.logger.info(source_default2.green(`${workspacePrefix}Group ${groupName}:`));
1685061
1685074
  for (const upgrade2 of groupUpgrades) {
1685062
1685075
  cliContext.logger.info(
1685063
- source_default.green(
1685064
- ` - ${upgrade2.generatorName}: ${source_default.dim(upgrade2.previousVersion)} \u2192 ${upgrade2.newVersion}`
1685076
+ source_default2.green(
1685077
+ ` - ${upgrade2.generatorName}: ${source_default2.dim(upgrade2.previousVersion)} \u2192 ${upgrade2.newVersion}`
1685065
1685078
  )
1685066
1685079
  );
1685067
1685080
  if (upgrade2.migrationsApplied != null && upgrade2.migrationsApplied > 0) {
1685068
1685081
  cliContext.logger.info(
1685069
- source_default.dim(
1685082
+ source_default2.dim(
1685070
1685083
  ` Applied ${upgrade2.migrationsApplied} migration(s): ${upgrade2.migrationVersions?.join(", ") ?? ""}`
1685071
1685084
  )
1685072
1685085
  );
1685073
1685086
  }
1685074
1685087
  const changelogUrl = getChangelogUrl(addDefaultDockerOrgIfNotPresent(upgrade2.generatorName));
1685075
1685088
  if (changelogUrl != null) {
1685076
- cliContext.logger.info(source_default.dim(` Changelog: ${changelogUrl}`));
1685089
+ cliContext.logger.info(source_default2.dim(` Changelog: ${changelogUrl}`));
1685077
1685090
  }
1685078
1685091
  }
1685079
1685092
  }
@@ -1685081,7 +1685094,7 @@ async function upgradeGenerator({
1685081
1685094
  }
1685082
1685095
  if (allAlreadyUpToDate.length > 0) {
1685083
1685096
  cliContext.logger.info("");
1685084
- cliContext.logger.info(source_default.dim("Generators already on latest version:"));
1685097
+ cliContext.logger.info(source_default2.dim("Generators already on latest version:"));
1685085
1685098
  for (const { workspace, upToDate } of allAlreadyUpToDate) {
1685086
1685099
  const upToDateByGroup = /* @__PURE__ */ new Map();
1685087
1685100
  for (const item of upToDate) {
@@ -1685091,9 +1685104,9 @@ async function upgradeGenerator({
1685091
1685104
  }
1685092
1685105
  for (const [groupName, groupItems] of upToDateByGroup) {
1685093
1685106
  const workspacePrefix = workspace != null ? `[${workspace}] ` : "";
1685094
- cliContext.logger.info(source_default.dim(`${workspacePrefix}Group ${groupName}:`));
1685107
+ cliContext.logger.info(source_default2.dim(`${workspacePrefix}Group ${groupName}:`));
1685095
1685108
  for (const item of groupItems) {
1685096
- cliContext.logger.info(source_default.dim(` - ${item.generatorName}: ${item.version} (latest)`));
1685109
+ cliContext.logger.info(source_default2.dim(` - ${item.generatorName}: ${item.version} (latest)`));
1685097
1685110
  }
1685098
1685111
  }
1685099
1685112
  }
@@ -1685101,20 +1685114,20 @@ async function upgradeGenerator({
1685101
1685114
  if (allAppliedUpgrades.length === 0 && allAlreadyUpToDate.length === 0) {
1685102
1685115
  const filterMessage = group != null ? ` for group ${group}` : generator != null ? ` for generator ${generator}` : "";
1685103
1685116
  cliContext.logger.info("");
1685104
- cliContext.logger.info(source_default.gray(`No generators found${filterMessage}.`));
1685117
+ cliContext.logger.info(source_default2.gray(`No generators found${filterMessage}.`));
1685105
1685118
  }
1685106
1685119
  if (allSkippedMajorUpgrades.length > 0) {
1685107
1685120
  cliContext.logger.info("");
1685108
- cliContext.logger.info(source_default.yellow("Major version upgrades available:"));
1685121
+ cliContext.logger.info(source_default2.yellow("Major version upgrades available:"));
1685109
1685122
  for (const upgrade2 of allSkippedMajorUpgrades) {
1685110
1685123
  cliContext.logger.info(
1685111
- source_default.yellow(` - ${upgrade2.generatorName}: ${upgrade2.currentVersion} \u2192 ${upgrade2.latestMajorVersion}`)
1685124
+ source_default2.yellow(` - ${upgrade2.generatorName}: ${upgrade2.currentVersion} \u2192 ${upgrade2.latestMajorVersion}`)
1685112
1685125
  );
1685113
1685126
  const upgradeCommand = generator != null ? `fern generator upgrade --generator ${upgrade2.generatorName} --include-major` : `fern generator upgrade --include-major`;
1685114
- cliContext.logger.info(source_default.yellow(` Run: ${upgradeCommand}`));
1685127
+ cliContext.logger.info(source_default2.yellow(` Run: ${upgradeCommand}`));
1685115
1685128
  const changelogUrl = getChangelogUrl(addDefaultDockerOrgIfNotPresent(upgrade2.generatorName));
1685116
1685129
  if (changelogUrl != null) {
1685117
- cliContext.logger.info(source_default.yellow(` Changelog: ${changelogUrl}`));
1685130
+ cliContext.logger.info(source_default2.yellow(` Changelog: ${changelogUrl}`));
1685118
1685131
  }
1685119
1685132
  }
1685120
1685133
  }
@@ -1685426,7 +1685439,7 @@ async function addGeneratorToWorkspaces({
1685426
1685439
  absolutePathToGeneratorsConfiguration,
1685427
1685440
  "# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json\n" + jsYaml.dump(newConfiguration)
1685428
1685441
  );
1685429
- context2.logger.info(source_default.green(`Added ${generatorName} generator`));
1685442
+ context2.logger.info(source_default2.green(`Added ${generatorName} generator`));
1685430
1685443
  });
1685431
1685444
  })
1685432
1685445
  );
@@ -1687244,7 +1687257,7 @@ var import_path54 = __toESM(require("path"), 1);
1687244
1687257
  var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
1687245
1687258
  var LOGS_FOLDER_NAME = "logs";
1687246
1687259
  function getCliSource() {
1687247
- const version7 = "3.52.0-40-g0bd25791343";
1687260
+ const version7 = "3.52.0-61-g25c914de7fa";
1687248
1687261
  return `cli@${version7}`;
1687249
1687262
  }
1687250
1687263
  var DebugLogger = class {
@@ -1687424,7 +1687437,7 @@ var import_os8 = require("os");
1687424
1687437
  var import_tmp_promise16 = __toESM(require_tmp_promise(), 1);
1687425
1687438
  var import_xml2js = __toESM(require_xml2js(), 1);
1687426
1687439
  var PLATFORM_IS_WINDOWS = process.platform === "win32";
1687427
- var DOCS_PREFIX = source_default.cyan("[docs]:");
1687440
+ var DOCS_PREFIX = source_default2.cyan("[docs]:");
1687428
1687441
  var ETAG_FILENAME = "etag";
1687429
1687442
  var PROGRESS_LABEL_WIDTH = "Downloading docs bundle".length;
1687430
1687443
  var formatProgressLabel = (label) => label.padEnd(PROGRESS_LABEL_WIDTH, " ");
@@ -1689482,7 +1689495,7 @@ async function runAppPreviewServer({ initialProject, reloadProject, validateProj
1689482
1689495
  await debugLogger.initialize();
1689483
1689496
  const debugLogPath = debugLogger.getLogFilePath();
1689484
1689497
  if (debugLogPath) {
1689485
- context2.logger.info(source_default.dim(`Debug log: ${debugLogPath}`));
1689498
+ context2.logger.info(source_default2.dim(`Debug log: ${debugLogPath}`));
1689486
1689499
  }
1689487
1689500
  const app = (0, import_express.default)();
1689488
1689501
  const httpServer = import_http6.default.createServer(app);
@@ -1689674,7 +1689687,7 @@ ${err.stack}`);
1689674
1689687
  });
1689675
1689688
  await new Promise((resolve10) => {
1689676
1689689
  httpServer.listen(backendPort, () => {
1689677
- context2.logger.info(source_default.dim(`Backend server running on http://localhost:${backendPort}`));
1689690
+ context2.logger.info(source_default2.dim(`Backend server running on http://localhost:${backendPort}`));
1689678
1689691
  resolve10();
1689679
1689692
  });
1689680
1689693
  });
@@ -1689762,7 +1689775,7 @@ ${err.stack}`);
1689762
1689775
  if (targetPath.includes(".fern/logs/") || targetPath.includes(".fern\\logs\\")) {
1689763
1689776
  return;
1689764
1689777
  }
1689765
- context2.logger.info(source_default.dim(`[${event}] ${targetPath}`));
1689778
+ context2.logger.info(source_default2.dim(`[${event}] ${targetPath}`));
1689766
1689779
  if (isReloading) {
1689767
1689780
  return;
1689768
1689781
  }
@@ -1690006,7 +1690019,7 @@ ${err.stack}`);
1690006
1690019
  });
1690007
1690020
  const editedAbsoluteFilepaths = [];
1690008
1690021
  watcher.on("all", async (event, targetPath, _targetPathNext) => {
1690009
- context2.logger.info(source_default.dim(`[${event}] ${targetPath}`));
1690022
+ context2.logger.info(source_default2.dim(`[${event}] ${targetPath}`));
1690010
1690023
  if (isReloading) {
1690011
1690024
  return;
1690012
1690025
  }
@@ -1703122,12 +1703135,12 @@ var ValidMarkdownLinks = {
1703122
1703135
  }
1703123
1703136
  };
1703124
1703137
  function createLinkViolationMessage({ pathnameToCheck, targetPathname, absoluteFilepathToWorkspace }) {
1703125
- let msg = `${targetPathname} links to non-existent page ${source_default.bold(pathnameToCheck.pathname)}`;
1703138
+ let msg = `${targetPathname} links to non-existent page ${source_default2.bold(pathnameToCheck.pathname)}`;
1703126
1703139
  const { position: position4, sourceFilepath } = pathnameToCheck;
1703127
1703140
  if (sourceFilepath == null || position4 == null) {
1703128
1703141
  return [msg, RelativeFilePath2.of("")];
1703129
1703142
  }
1703130
- msg = `broken link to ${source_default.bold(pathnameToCheck.pathname)}`;
1703143
+ msg = `broken link to ${source_default2.bold(pathnameToCheck.pathname)}`;
1703131
1703144
  if (pathnameToCheck.pathname.length > 0 && !import_path59.default.isAbsolute(pathnameToCheck.pathname)) {
1703132
1703145
  msg += ` (resolved path: ${import_path59.default.join(targetPathname, pathnameToCheck.pathname)})`;
1703133
1703146
  }
@@ -1703961,11 +1703974,11 @@ function getLogLevelForSeverity(severity) {
1703961
1703974
  function getSeverityLabel(severity) {
1703962
1703975
  switch (severity) {
1703963
1703976
  case "fatal":
1703964
- return source_default.red("[error]");
1703977
+ return source_default2.red("[error]");
1703965
1703978
  case "error":
1703966
- return source_default.red("[error]");
1703979
+ return source_default2.red("[error]");
1703967
1703980
  case "warning":
1703968
- return source_default.yellow("[warning]");
1703981
+ return source_default2.yellow("[warning]");
1703969
1703982
  default:
1703970
1703983
  assertNever(severity);
1703971
1703984
  }
@@ -1703987,7 +1704000,7 @@ function logViolationsSummary({
1703987
1704000
  } else if (numWarnings > 0) {
1703988
1704001
  context2.logger.warn(message);
1703989
1704002
  } else {
1703990
- context2.logger.info(source_default.green("\u2713 All checks passed"));
1704003
+ context2.logger.info(source_default2.green("\u2713 All checks passed"));
1703991
1704004
  }
1703992
1704005
  }
1703993
1704006
  function getViolationStats(violations) {
@@ -1704264,7 +1704277,7 @@ Example: acme-preview-abc123.docs.buildwithfern.com`
1704264
1704277
  url: previewUrl
1704265
1704278
  });
1704266
1704279
  if (deleteResponse.ok) {
1704267
- context2.logger.info(source_default.green(`Successfully deleted preview site: ${previewUrl}`));
1704280
+ context2.logger.info(source_default2.green(`Successfully deleted preview site: ${previewUrl}`));
1704268
1704281
  } else {
1704269
1704282
  switch (deleteResponse.error.error) {
1704270
1704283
  case "UnauthorizedError":
@@ -1704313,12 +1704326,12 @@ async function listDocsPreview({
1704313
1704326
  context2.logger.info("No preview deployments found.");
1704314
1704327
  return;
1704315
1704328
  }
1704316
- context2.logger.info(source_default.bold(`
1704329
+ context2.logger.info(source_default2.bold(`
1704317
1704330
  Found ${previewDeployments.length} preview deployment(s):
1704318
1704331
  `));
1704319
1704332
  for (const deployment of previewDeployments) {
1704320
1704333
  const updatedDate = new Date(deployment.updatedAt).toLocaleString();
1704321
- context2.logger.info(` ${source_default.cyan(deployment.url)}`);
1704334
+ context2.logger.info(` ${source_default2.cyan(deployment.url)}`);
1704322
1704335
  context2.logger.info(` Organization: ${deployment.organizationId}`);
1704323
1704336
  context2.logger.info(` Updated: ${updatedDate}
1704324
1704337
  `);
@@ -1707658,7 +1707671,7 @@ var ImportFileExistsRule = {
1707658
1707671
  if (!isDefinitionFilePresent) {
1707659
1707672
  violations.push({
1707660
1707673
  severity: "fatal",
1707661
- message: `Import ${source_default.bold(importedAs)} points to non-existent path ${source_default.bold(importPath)}.`
1707674
+ message: `Import ${source_default2.bold(importedAs)} points to non-existent path ${source_default2.bold(importPath)}.`
1707662
1707675
  });
1707663
1707676
  }
1707664
1707677
  return violations;
@@ -1707700,7 +1707713,7 @@ var MatchingEnvironmentUrlsRule = {
1707700
1707713
  const addViolationForUrlId = (urlId) => {
1707701
1707714
  violations.push({
1707702
1707715
  severity: "fatal",
1707703
- message: `Environment ${environmentId} is missing URL for ${source_default.bold(urlId)}`
1707716
+ message: `Environment ${environmentId} is missing URL for ${source_default2.bold(urlId)}`
1707704
1707717
  });
1707705
1707718
  };
1707706
1707719
  visitRawEnvironmentDeclaration(environment2, {
@@ -1708009,7 +1708022,7 @@ var NoConflictingEndpointParametersRule = {
1708009
1708022
  return [
1708010
1708023
  {
1708011
1708024
  severity: "fatal",
1708012
- message: `Path parameter ${source_default.bold(pathParameterKey)} is not suitable for code generation, because it can conflict with the request body parameter.`
1708025
+ message: `Path parameter ${source_default2.bold(pathParameterKey)} is not suitable for code generation, because it can conflict with the request body parameter.`
1708013
1708026
  }
1708014
1708027
  ];
1708015
1708028
  } else {
@@ -1708119,7 +1708132,7 @@ var NoConflictingEndpointPathsRule = {
1708119
1708132
  service,
1708120
1708133
  endpoint: endpoint3
1708121
1708134
  })} conflicts with other endpoints:`,
1708122
- ...conflictingEndpoints.map((conflictingEndpoint) => ` - ${conflictingEndpoint.relativeFilepath} -> ${conflictingEndpoint.endpointId} ${source_default.dim(getFullEndpointPath({
1708135
+ ...conflictingEndpoints.map((conflictingEndpoint) => ` - ${conflictingEndpoint.relativeFilepath} -> ${conflictingEndpoint.endpointId} ${source_default2.dim(getFullEndpointPath({
1708123
1708136
  service: conflictingEndpoint.service,
1708124
1708137
  endpoint: conflictingEndpoint.endpoint
1708125
1708138
  }))}`)
@@ -1708153,7 +1708166,7 @@ var NoConflictingRequestWrapperPropertiesRule = {
1708153
1708166
  }
1708154
1708167
  violations.push({
1708155
1708168
  severity: "fatal",
1708156
- message: `Multiple request properties have the name ${source_default.bold(name3)}. This is not suitable for code generation. Use the "name" property to deconflict.
1708169
+ message: `Multiple request properties have the name ${source_default2.bold(name3)}. This is not suitable for code generation. Use the "name" property to deconflict.
1708157
1708170
  ` + propertiesWithName.map((property11) => ` - ${convertRequestWrapperPropertyToString(property11)}`).join("\n")
1708158
1708171
  });
1708159
1708172
  }
@@ -1708352,7 +1708365,7 @@ var NoDuplicateEnumValuesRule = {
1708352
1708365
  const duplicatedValues = getDuplicates2(declaration.enum.map((enumValue) => typeof enumValue === "string" ? enumValue : enumValue.value));
1708353
1708366
  return duplicatedValues.map((duplicatedValue) => ({
1708354
1708367
  severity: "fatal",
1708355
- message: `Duplicated enum value: ${source_default.bold(duplicatedValue)}.`
1708368
+ message: `Duplicated enum value: ${source_default2.bold(duplicatedValue)}.`
1708356
1708369
  }));
1708357
1708370
  }
1708358
1708371
  }
@@ -1708959,7 +1708972,7 @@ var NoUndefinedExampleReferenceRule = {
1708959
1708972
  return [
1708960
1708973
  {
1708961
1708974
  severity: "fatal",
1708962
- message: `Example ${source_default.bold(exampleReference)} is malformed. Examples should be formatted like ${source_default.bold("$YourType.ExampleName")}`
1708975
+ message: `Example ${source_default2.bold(exampleReference)} is malformed. Examples should be formatted like ${source_default2.bold("$YourType.ExampleName")}`
1708963
1708976
  }
1708964
1708977
  ];
1708965
1708978
  }
@@ -1708978,7 +1708991,7 @@ var NoUndefinedExampleReferenceRule = {
1708978
1708991
  return [
1708979
1708992
  {
1708980
1708993
  severity: "fatal",
1708981
- message: `Example ${source_default.bold(exampleReference)} is not defined.`
1708994
+ message: `Example ${source_default2.bold(exampleReference)} is not defined.`
1708982
1708995
  }
1708983
1708996
  ];
1708984
1708997
  }
@@ -1709033,7 +1709046,7 @@ function getPathParameterRuleViolations({ path: path86, pathParameters, pathType
1709033
1709046
  if (urlPathParameters.has(part.pathParameter)) {
1709034
1709047
  errors4.push({
1709035
1709048
  severity: "fatal",
1709036
- message: `${capitalize_default(pathType)} has duplicate path parameter: ${source_default.bold(part.pathParameter)}.`
1709049
+ message: `${capitalize_default(pathType)} has duplicate path parameter: ${source_default2.bold(part.pathParameter)}.`
1709037
1709050
  });
1709038
1709051
  }
1709039
1709052
  urlPathParameters.add(part.pathParameter);
@@ -1709043,14 +1709056,14 @@ function getPathParameterRuleViolations({ path: path86, pathParameters, pathType
1709043
1709056
  undefinedPathParameters.forEach((pathParameter) => {
1709044
1709057
  errors4.push({
1709045
1709058
  severity: "fatal",
1709046
- message: `${capitalize_default(pathType)} has missing path-parameter: ${source_default.bold(pathParameter)}.`
1709059
+ message: `${capitalize_default(pathType)} has missing path-parameter: ${source_default2.bold(pathParameter)}.`
1709047
1709060
  });
1709048
1709061
  });
1709049
1709062
  const missingUrlPathParameters = getDifference(definedPathParameters, urlPathParameters);
1709050
1709063
  missingUrlPathParameters.forEach((pathParameter) => {
1709051
1709064
  errors4.push({
1709052
1709065
  severity: "fatal",
1709053
- message: `Path parameter is unreferenced in ${pathType}: ${source_default.bold(pathParameter)}.`
1709066
+ message: `Path parameter is unreferenced in ${pathType}: ${source_default2.bold(pathParameter)}.`
1709054
1709067
  });
1709055
1709068
  });
1709056
1709069
  return errors4;
@@ -1709158,7 +1709171,7 @@ var NoUndefinedTypeReferenceRule = {
1709158
1709171
  } else if (!doesTypeExist(namedType) && !checkGenericType(namedType, nodePath)) {
1709159
1709172
  violations.push({
1709160
1709173
  severity: "fatal",
1709161
- message: `Type ${source_default.bold(namedType.parsed?.typeName ?? namedType.fullyQualifiedName)} is not defined.`
1709174
+ message: `Type ${source_default2.bold(namedType.parsed?.typeName ?? namedType.fullyQualifiedName)} is not defined.`
1709162
1709175
  });
1709163
1709176
  }
1709164
1709177
  return violations;
@@ -1709604,7 +1709617,7 @@ function validateBodyResponse({ example, endpoint: endpoint3, typeResolver, exam
1709604
1709617
  if (!endpointAllowsForError) {
1709605
1709618
  violations.push({
1709606
1709619
  severity: "fatal",
1709607
- message: `${source_default.bold(example.error)} is not specified as an allowed error for this endpoint. Add ${source_default.bold(example.error)} to the endpoint's "errors" list.`
1709620
+ message: `${source_default2.bold(example.error)} is not specified as an allowed error for this endpoint. Add ${source_default2.bold(example.error)} to the endpoint's "errors" list.`
1709608
1709621
  });
1709609
1709622
  }
1709610
1709623
  if (errorDeclaration.declaration.type != null) {
@@ -1709623,7 +1709636,7 @@ function validateBodyResponse({ example, endpoint: endpoint3, typeResolver, exam
1709623
1709636
  } else if (example.body != null) {
1709624
1709637
  violations.push({
1709625
1709638
  severity: "fatal",
1709626
- message: `Unexpected response in example. ${source_default.bold(example.error)} does not have a body.`
1709639
+ message: `Unexpected response in example. ${source_default2.bold(example.error)} does not have a body.`
1709627
1709640
  });
1709628
1709641
  }
1709629
1709642
  }
@@ -1709910,12 +1709923,12 @@ function validateEnumNames(declaration, options2 = { hasOpenAPISource: false })
1709910
1709923
  if (enumName.wasExplicitlySet) {
1709911
1709924
  violations.push({
1709912
1709925
  severity: "fatal",
1709913
- message: `Enum name ${source_default.bold(enumName.name)} for value ${source_default.bold(wireValue)} is not suitable for code generation. It must start with a letter and only contain letters, numbers, and underscores.${openApiGuidance}`
1709926
+ message: `Enum name ${source_default2.bold(enumName.name)} for value ${source_default2.bold(wireValue)} is not suitable for code generation. It must start with a letter and only contain letters, numbers, and underscores.${openApiGuidance}`
1709914
1709927
  });
1709915
1709928
  } else {
1709916
1709929
  violations.push({
1709917
1709930
  severity: "fatal",
1709918
- message: `Enum value ${source_default.bold(enumName.name)} is not suitable for code generation. Add a "name" property that starts with a letter and contains only letters, numbers, and underscores.${openApiGuidance}`
1709931
+ message: `Enum value ${source_default2.bold(enumName.name)} is not suitable for code generation. Add a "name" property that starts with a letter and contains only letters, numbers, and underscores.${openApiGuidance}`
1709919
1709932
  });
1709920
1709933
  }
1709921
1709934
  });
@@ -1709932,12 +1709945,12 @@ function validateUnionNames(declaration) {
1709932
1709945
  if (discriminantName.wasExplicitlySet) {
1709933
1709946
  violations.push({
1709934
1709947
  severity: "fatal",
1709935
- message: `Discriminant name ${source_default.bold(discriminantName.name)} is not suitable for code generation. It must start with a letter and only contain letters, numbers, and underscores.`
1709948
+ message: `Discriminant name ${source_default2.bold(discriminantName.name)} is not suitable for code generation. It must start with a letter and only contain letters, numbers, and underscores.`
1709936
1709949
  });
1709937
1709950
  } else {
1709938
1709951
  violations.push({
1709939
1709952
  severity: "fatal",
1709940
- message: `Discriminant value ${source_default.bold(discriminantName.name)} is not suitable for code generation. Add a "name" property that starts with a letter and contains only letters, numbers, and underscores.`
1709953
+ message: `Discriminant value ${source_default2.bold(discriminantName.name)} is not suitable for code generation. Add a "name" property that starts with a letter and contains only letters, numbers, and underscores.`
1709941
1709954
  });
1709942
1709955
  }
1709943
1709956
  return violations;
@@ -1710571,14 +1710584,14 @@ function validateRequestProperty({ endpointId, endpoint: endpoint3, typeResolver
1710571
1710584
  if (requestPropertyComponents == null) {
1710572
1710585
  violations.push({
1710573
1710586
  severity: "fatal",
1710574
- message: `OAuth configuration for endpoint ${source_default.bold(endpointId)} must define a dot-delimited '${propertyValidator.propertyID}' property starting with $request (e.g. $request.${propertyValidator.propertyID}).`
1710587
+ message: `OAuth configuration for endpoint ${source_default2.bold(endpointId)} must define a dot-delimited '${propertyValidator.propertyID}' property starting with $request (e.g. $request.${propertyValidator.propertyID}).`
1710575
1710588
  });
1710576
1710589
  return violations;
1710577
1710590
  }
1710578
1710591
  if (requestPropertyComponents.length > 1) {
1710579
1710592
  violations.push({
1710580
1710593
  severity: "fatal",
1710581
- message: `OAuth configuration for endpoint ${source_default.bold(endpointId)} cannot reference nested $request properties like '${requestProperty}'; expected '$request.${propertyValidator.propertyID}' instead.`
1710594
+ message: `OAuth configuration for endpoint ${source_default2.bold(endpointId)} cannot reference nested $request properties like '${requestProperty}'; expected '$request.${propertyValidator.propertyID}' instead.`
1710582
1710595
  });
1710583
1710596
  return violations;
1710584
1710597
  }
@@ -1710591,7 +1710604,7 @@ function validateRequestProperty({ endpointId, endpoint: endpoint3, typeResolver
1710591
1710604
  })) {
1710592
1710605
  violations.push({
1710593
1710606
  severity: "fatal",
1710594
- message: `OAuth configuration for endpoint ${source_default.bold(endpointId)} specifies '${propertyValidator.propertyID}' ${requestProperty}, which is not a valid '${propertyValidator.propertyID}' type.`
1710607
+ message: `OAuth configuration for endpoint ${source_default2.bold(endpointId)} specifies '${propertyValidator.propertyID}' ${requestProperty}, which is not a valid '${propertyValidator.propertyID}' type.`
1710595
1710608
  });
1710596
1710609
  }
1710597
1710610
  return violations;
@@ -1710602,7 +1710615,7 @@ function validateResponseProperty({ endpointId, typeResolver, file: file4, resol
1710602
1710615
  if (responsePropertyComponents == null) {
1710603
1710616
  violations.push({
1710604
1710617
  severity: "fatal",
1710605
- message: `OAuth configuration for endpoint ${source_default.bold(endpointId)} must define a dot-delimited '${propertyValidator.propertyID}' property starting with $response (e.g. $response.${propertyValidator.propertyID}).`
1710618
+ message: `OAuth configuration for endpoint ${source_default2.bold(endpointId)} must define a dot-delimited '${propertyValidator.propertyID}' property starting with $response (e.g. $response.${propertyValidator.propertyID}).`
1710606
1710619
  });
1710607
1710620
  }
1710608
1710621
  if (responsePropertyComponents != null && !propertyValidator.validate({
@@ -1710613,7 +1710626,7 @@ function validateResponseProperty({ endpointId, typeResolver, file: file4, resol
1710613
1710626
  })) {
1710614
1710627
  violations.push({
1710615
1710628
  severity: "fatal",
1710616
- message: `OAuth configuration for endpoint ${source_default.bold(endpointId)} specifies '${propertyValidator.propertyID}' ${responseProperty}, which is not a valid '${propertyValidator.propertyID}' type.`
1710629
+ message: `OAuth configuration for endpoint ${source_default2.bold(endpointId)} specifies '${propertyValidator.propertyID}' ${responseProperty}, which is not a valid '${propertyValidator.propertyID}' type.`
1710617
1710630
  });
1710618
1710631
  }
1710619
1710632
  return violations;
@@ -1710648,7 +1710661,7 @@ function validateRefreshTokenEndpoint({ endpointId, endpoint: endpoint3, typeRes
1710648
1710661
  if (refreshTokenViolations.length > 0) {
1710649
1710662
  violations.push({
1710650
1710663
  severity: "fatal",
1710651
- message: `OAuth configuration for endpoint ${source_default.bold(endpointId)} is missing a valid refresh-token, such as '${DEFAULT_REFRESH_TOKEN}'.`
1710664
+ message: `OAuth configuration for endpoint ${source_default2.bold(endpointId)} is missing a valid refresh-token, such as '${DEFAULT_REFRESH_TOKEN}'.`
1710652
1710665
  });
1710653
1710666
  }
1710654
1710667
  }
@@ -1710656,7 +1710669,7 @@ function validateRefreshTokenEndpoint({ endpointId, endpoint: endpoint3, typeRes
1710656
1710669
  if (resolvedResponseType == null) {
1710657
1710670
  violations.push({
1710658
1710671
  severity: "fatal",
1710659
- message: `OAuth configuration for endpoint ${source_default.bold(endpointId)} must define a response type.`
1710672
+ message: `OAuth configuration for endpoint ${source_default2.bold(endpointId)} must define a response type.`
1710660
1710673
  });
1710661
1710674
  return violations;
1710662
1710675
  }
@@ -1710680,7 +1710693,7 @@ function validateRefreshTokenEndpoint({ endpointId, endpoint: endpoint3, typeRes
1710680
1710693
  if (accessTokenViolations.length > 0) {
1710681
1710694
  violations.push({
1710682
1710695
  severity: "fatal",
1710683
- message: `OAuth configuration for endpoint ${source_default.bold(endpointId)} is missing a valid access-token, such as '${DEFAULT_ACCESS_TOKEN}'.`
1710696
+ message: `OAuth configuration for endpoint ${source_default2.bold(endpointId)} is missing a valid access-token, such as '${DEFAULT_ACCESS_TOKEN}'.`
1710684
1710697
  });
1710685
1710698
  }
1710686
1710699
  }
@@ -1710730,7 +1710743,7 @@ function validateTokenEndpoint({ endpointId, endpoint: endpoint3, typeResolver,
1710730
1710743
  if (clientIdViolations.length > 0) {
1710731
1710744
  violations.push({
1710732
1710745
  severity: "fatal",
1710733
- message: `OAuth configuration for endpoint ${source_default.bold(endpointId)} is missing a valid client-id, such as '${DEFAULT_CLIENT_ID}'.`
1710746
+ message: `OAuth configuration for endpoint ${source_default2.bold(endpointId)} is missing a valid client-id, such as '${DEFAULT_CLIENT_ID}'.`
1710734
1710747
  });
1710735
1710748
  }
1710736
1710749
  }
@@ -1710754,7 +1710767,7 @@ function validateTokenEndpoint({ endpointId, endpoint: endpoint3, typeResolver,
1710754
1710767
  if (clientSecretViolations.length > 0) {
1710755
1710768
  violations.push({
1710756
1710769
  severity: "fatal",
1710757
- message: `OAuth configuration for endpoint ${source_default.bold(endpointId)} is missing a valid client-secret, such as '${DEFAULT_CLIENT_SECRET}'.`
1710770
+ message: `OAuth configuration for endpoint ${source_default2.bold(endpointId)} is missing a valid client-secret, such as '${DEFAULT_CLIENT_SECRET}'.`
1710758
1710771
  });
1710759
1710772
  }
1710760
1710773
  }
@@ -1710772,7 +1710785,7 @@ function validateTokenEndpoint({ endpointId, endpoint: endpoint3, typeResolver,
1710772
1710785
  if (resolvedResponseType == null) {
1710773
1710786
  violations.push({
1710774
1710787
  severity: "fatal",
1710775
- message: `OAuth configuration for endpoint ${source_default.bold(endpointId)} must define a response type.`
1710788
+ message: `OAuth configuration for endpoint ${source_default2.bold(endpointId)} must define a response type.`
1710776
1710789
  });
1710777
1710790
  return violations;
1710778
1710791
  }
@@ -1710796,7 +1710809,7 @@ function validateTokenEndpoint({ endpointId, endpoint: endpoint3, typeResolver,
1710796
1710809
  if (accessTokenViolations.length > 0) {
1710797
1710810
  violations.push({
1710798
1710811
  severity: "fatal",
1710799
- message: `OAuth configuration for endpoint ${source_default.bold(endpointId)} is missing a valid access-token, such as '${DEFAULT_ACCESS_TOKEN}'.`
1710812
+ message: `OAuth configuration for endpoint ${source_default2.bold(endpointId)} is missing a valid access-token, such as '${DEFAULT_ACCESS_TOKEN}'.`
1710800
1710813
  });
1710801
1710814
  }
1710802
1710815
  }
@@ -1710904,7 +1710917,7 @@ function validateRequestProperty2({ endpointId, endpoint: endpoint3, typeResolve
1710904
1710917
  if (requestPropertyComponents == null) {
1710905
1710918
  violations.push({
1710906
1710919
  severity: "fatal",
1710907
- message: `Pagination configuration for endpoint ${source_default.bold(endpointId)} must define a dot-delimited '${propertyValidator.propertyID}' property starting with $request (e.g. $request.${propertyValidator.propertyID}).`
1710920
+ message: `Pagination configuration for endpoint ${source_default2.bold(endpointId)} must define a dot-delimited '${propertyValidator.propertyID}' property starting with $request (e.g. $request.${propertyValidator.propertyID}).`
1710908
1710921
  });
1710909
1710922
  return violations;
1710910
1710923
  }
@@ -1710917,7 +1710930,7 @@ function validateRequestProperty2({ endpointId, endpoint: endpoint3, typeResolve
1710917
1710930
  })) {
1710918
1710931
  violations.push({
1710919
1710932
  severity: "fatal",
1710920
- message: `Pagination configuration for endpoint ${source_default.bold(endpointId)} specifies '${propertyValidator.propertyID}' ${requestProperty}, which is not a valid '${propertyValidator.propertyID}' type.`
1710933
+ message: `Pagination configuration for endpoint ${source_default2.bold(endpointId)} specifies '${propertyValidator.propertyID}' ${requestProperty}, which is not a valid '${propertyValidator.propertyID}' type.`
1710921
1710934
  });
1710922
1710935
  }
1710923
1710936
  return violations;
@@ -1710928,7 +1710941,7 @@ function validateResponseProperty2({ endpointId, typeResolver, file: file4, reso
1710928
1710941
  if (responsePropertyComponents == null) {
1710929
1710942
  violations.push({
1710930
1710943
  severity: "fatal",
1710931
- message: `Pagination configuration for endpoint ${source_default.bold(endpointId)} must define a dot-delimited '${propertyValidator.propertyID}' property starting with $response (e.g. $response.${propertyValidator.propertyID}).`
1710944
+ message: `Pagination configuration for endpoint ${source_default2.bold(endpointId)} must define a dot-delimited '${propertyValidator.propertyID}' property starting with $response (e.g. $response.${propertyValidator.propertyID}).`
1710932
1710945
  });
1710933
1710946
  }
1710934
1710947
  if (responsePropertyComponents != null && !propertyValidator.validate({
@@ -1710939,7 +1710952,7 @@ function validateResponseProperty2({ endpointId, typeResolver, file: file4, reso
1710939
1710952
  })) {
1710940
1710953
  violations.push({
1710941
1710954
  severity: "fatal",
1710942
- message: `Pagination configuration for endpoint ${source_default.bold(endpointId)} specifies '${propertyValidator.propertyID}' ${responseProperty}, which is not a valid '${propertyValidator.propertyID}' type.`
1710955
+ message: `Pagination configuration for endpoint ${source_default2.bold(endpointId)} specifies '${propertyValidator.propertyID}' ${responseProperty}, which is not a valid '${propertyValidator.propertyID}' type.`
1710943
1710956
  });
1710944
1710957
  }
1710945
1710958
  return violations;
@@ -1710971,7 +1710984,7 @@ function validateCursorPagination({ endpointId, endpoint: endpoint3, typeResolve
1710971
1710984
  if (resolvedResponseType == null) {
1710972
1710985
  violations.push({
1710973
1710986
  severity: "fatal",
1710974
- message: `Pagination configuration for endpoint ${source_default.bold(endpointId)} must define a response type.`
1710987
+ message: `Pagination configuration for endpoint ${source_default2.bold(endpointId)} must define a response type.`
1710975
1710988
  });
1710976
1710989
  return violations;
1710977
1710990
  }
@@ -1711041,7 +1711054,7 @@ function validateCustomPagination({ endpointId, endpoint: endpoint3, typeResolve
1711041
1711054
  if (resolvedResponseType == null) {
1711042
1711055
  violations.push({
1711043
1711056
  severity: "fatal",
1711044
- message: `Pagination configuration for endpoint ${source_default.bold(endpointId)} must define a response type.`
1711057
+ message: `Pagination configuration for endpoint ${source_default2.bold(endpointId)} must define a response type.`
1711045
1711058
  });
1711046
1711059
  return violations;
1711047
1711060
  }
@@ -1711172,7 +1711185,7 @@ function validateOffsetPagination({ endpointId, endpoint: endpoint3, typeResolve
1711172
1711185
  if (resolvedResponseType == null) {
1711173
1711186
  violations.push({
1711174
1711187
  severity: "fatal",
1711175
- message: `Pagination configuration for endpoint ${source_default.bold(endpointId)} must define a response type.`
1711188
+ message: `Pagination configuration for endpoint ${source_default2.bold(endpointId)} must define a response type.`
1711176
1711189
  });
1711177
1711190
  return violations;
1711178
1711191
  }
@@ -1711358,7 +1711371,7 @@ var ValidServiceUrlsRule = {
1711358
1711371
  {
1711359
1711372
  severity: "fatal",
1711360
1711373
  message: [
1711361
- `URL ${source_default.bold(url3)} is not recognized. Please add it to your environments in ${ROOT_API_FILENAME} or specify one of the configured environment URLs:`,
1711374
+ `URL ${source_default2.bold(url3)} is not recognized. Please add it to your environments in ${ROOT_API_FILENAME} or specify one of the configured environment URLs:`,
1711362
1711375
  ...urlIds.map((urlId) => ` - ${urlId}`)
1711363
1711376
  ].join("\n")
1711364
1711377
  }
@@ -1712597,10 +1712610,10 @@ async function generateDocsWorkspace({
1712597
1712610
  const isRunningOnSelfHosted = process.env["FERN_SELF_HOSTED"] === "true";
1712598
1712611
  if (!preview && !isCI2() && !noPrompt) {
1712599
1712612
  const productionUrl = instance ?? docsWorkspace.config.instances[0]?.url;
1712600
- const urlDisplay = productionUrl ? ` (${source_default.cyan(`https://${productionUrl}`)})` : "";
1712613
+ const urlDisplay = productionUrl ? ` (${source_default2.cyan(`https://${productionUrl}`)})` : "";
1712601
1712614
  const shouldContinue = await cliContext.confirmPrompt(
1712602
1712615
  `This will affect a production site${urlDisplay}. Run with --preview to generate docs for a preview instance.
1712603
- ${source_default.yellow("?")} Are you sure you want to continue?`,
1712616
+ ${source_default2.yellow("?")} Are you sure you want to continue?`,
1712604
1712617
  false
1712605
1712618
  );
1712606
1712619
  if (!shouldContinue) {
@@ -1713591,7 +1713604,7 @@ async function generateJsonschemaForWorkspaces({
1713591
1713604
  await (0, import_promises114.mkdir)(dirname4(jsonschemaFilepath), { recursive: true });
1713592
1713605
  }
1713593
1713606
  await (0, import_promises114.writeFile)(jsonschemaFilepath, JSON.stringify(jsonSchema, null, 2));
1713594
- context2.logger.info(source_default.green(`Wrote JSON Schema to ${jsonschemaFilepath}`));
1713607
+ context2.logger.info(source_default2.green(`Wrote JSON Schema to ${jsonschemaFilepath}`));
1713595
1713608
  });
1713596
1713609
  })
1713597
1713610
  );
@@ -1714034,7 +1714047,7 @@ async function registerWorkspacesV2({
1714034
1714047
  },
1714035
1714048
  aiEnhancerConfig
1714036
1714049
  });
1714037
- context2.logger.info(source_default.green("Registered API"));
1714050
+ context2.logger.info(source_default2.green("Registered API"));
1714038
1714051
  });
1714039
1714052
  })
1714040
1714053
  );
@@ -1714321,7 +1714334,7 @@ Resolved to: ${installationMethod.resolvedPath}`;
1714321
1714334
  errorMessage += "\nFor more diagnostic information, run with: FERN_LOG_LEVEL=debug fern self-update";
1714322
1714335
  return cliContext.failAndThrow(errorMessage);
1714323
1714336
  }
1714324
- cliContext.logger.info(`Detected installation method: ${source_default.cyan(installationMethod.type)}`);
1714337
+ cliContext.logger.info(`Detected installation method: ${source_default2.cyan(installationMethod.type)}`);
1714325
1714338
  if (installationMethod.detectedPath != null) {
1714326
1714339
  cliContext.logger.debug(`Found fern at: ${installationMethod.detectedPath}`);
1714327
1714340
  }
@@ -1714336,18 +1714349,18 @@ Resolved to: ${installationMethod.resolvedPath}`;
1714336
1714349
  }
1714337
1714350
  if (installationMethod.type === "brew" && version7 != null) {
1714338
1714351
  cliContext.logger.warn(
1714339
- source_default.yellow(
1714352
+ source_default2.yellow(
1714340
1714353
  `Warning: Homebrew does not support versioned upgrades. Upgrading to the latest version instead.`
1714341
1714354
  )
1714342
1714355
  );
1714343
1714356
  }
1714344
1714357
  const commandString = updateCommand.join(" ");
1714345
1714358
  if (dryRun === true) {
1714346
- cliContext.logger.info(source_default.yellow("Dry run mode - no changes will be made"));
1714347
- cliContext.logger.info(`Would run: ${source_default.cyan(commandString)}`);
1714359
+ cliContext.logger.info(source_default2.yellow("Dry run mode - no changes will be made"));
1714360
+ cliContext.logger.info(`Would run: ${source_default2.cyan(commandString)}`);
1714348
1714361
  return;
1714349
1714362
  }
1714350
- cliContext.logger.info(`Running: ${source_default.dim(commandString)}`);
1714363
+ cliContext.logger.info(`Running: ${source_default2.dim(commandString)}`);
1714351
1714364
  const [command3, ...args] = updateCommand;
1714352
1714365
  if (command3 == null) {
1714353
1714366
  return cliContext.failAndThrow("Invalid update command");
@@ -1714360,7 +1714373,7 @@ Resolved to: ${installationMethod.resolvedPath}`;
1714360
1714373
  cliContext.logger.error(`Failed to update Fern CLI: ${stderr}`);
1714361
1714374
  return cliContext.failAndThrow("Update failed. Please try updating manually.");
1714362
1714375
  }
1714363
- cliContext.logger.info(source_default.green("\u2713 Fern CLI updated successfully!"));
1714376
+ cliContext.logger.info(source_default2.green("\u2713 Fern CLI updated successfully!"));
1714364
1714377
  }
1714365
1714378
 
1714366
1714379
  // src/commands/test/testOutput.ts
@@ -1714445,7 +1714458,7 @@ async function generateToken({
1714445
1714458
  organizationId: api_exports4.OrganizationId(orgId)
1714446
1714459
  });
1714447
1714460
  if (response.ok) {
1714448
- taskContext.logger.info(source_default.green(`Generated a FERN_TOKEN for ${orgId}: ${response.body.npm.token}`));
1714461
+ taskContext.logger.info(source_default2.green(`Generated a FERN_TOKEN for ${orgId}: ${response.body.npm.token}`));
1714449
1714462
  return;
1714450
1714463
  }
1714451
1714464
  response.error._visit({
@@ -1716280,7 +1716293,7 @@ async function addApiConfigurationToSingleWorkspace({ absolutePathToFernDirector
1716280
1716293
  path: join4(relativize(absolutePathToFernDirectory, absoluteFilepathToWorkspace), RelativeFilePath2.of(openapiDirectory.name), RelativeFilePath2.of(openapiDirectory.contents[0]?.name))
1716281
1716294
  }
1716282
1716295
  }));
1716283
- context2.logger.info(source_default.green(`Wrote ${absolutePathToGeneratorsYml}`));
1716296
+ context2.logger.info(source_default2.green(`Wrote ${absolutePathToGeneratorsYml}`));
1716284
1716297
  }
1716285
1716298
  } else {
1716286
1716299
  const generatorsYmlContents = jsYaml.load(existingGeneratorsYml.contents);
@@ -1716291,7 +1716304,7 @@ async function addApiConfigurationToSingleWorkspace({ absolutePathToFernDirector
1716291
1716304
  path: join4(relativize(absolutePathToFernDirectory, absoluteFilepathToWorkspace), RelativeFilePath2.of(openapiDirectory.name), RelativeFilePath2.of(openapiDirectory.contents[0]?.name))
1716292
1716305
  });
1716293
1716306
  await (0, import_promises139.writeFile)(existingGeneratorsYml.absolutePath, parsedDocument.toString());
1716294
- context2.logger.info(source_default.green(`Updated ${existingGeneratorsYml.absolutePath}`));
1716307
+ context2.logger.info(source_default2.green(`Updated ${existingGeneratorsYml.absolutePath}`));
1716295
1716308
  }
1716296
1716309
  }
1716297
1716310
  }
@@ -1716498,7 +1716511,7 @@ async function addApiConfigurationToSingleWorkspace2({ absoluteFilepathToWorkspa
1716498
1716511
  documentToWrite = `${schemaComment}${documentToWrite}`;
1716499
1716512
  }
1716500
1716513
  await (0, import_promises140.writeFile)(generatorsYmlFile.absolutePath, documentToWrite);
1716501
- context2.logger.info(source_default.green(`Updated ${generatorsYmlFile.absolutePath}`));
1716514
+ context2.logger.info(source_default2.green(`Updated ${generatorsYmlFile.absolutePath}`));
1716502
1716515
  }
1716503
1716516
  async function parseApiSpec({ oldSpec, absoluteFilepathToWorkspace, files, directories, context: context2, namespace }) {
1716504
1716517
  if (oldSpec == null) {
@@ -1716736,7 +1716749,7 @@ async function updateGeneratorsYml({ context: context2, files }) {
1716736
1716749
  ${documentToWrite}`;
1716737
1716750
  }
1716738
1716751
  await (0, import_promises141.writeFile)(generatorsYmlFile.absolutePath, documentToWrite);
1716739
- context2.logger.info(source_default.green(`Updated ${generatorsYmlFile.absolutePath}`));
1716752
+ context2.logger.info(source_default2.green(`Updated ${generatorsYmlFile.absolutePath}`));
1716740
1716753
  }
1716741
1716754
  async function getFilesAndDirectories3(absoluteFilepath) {
1716742
1716755
  const contents = await getDirectoryContents(absoluteFilepath);
@@ -1716947,7 +1716960,7 @@ async function updateGeneratorsYml2({ context: context2, files }) {
1716947
1716960
  ${documentToWrite}`;
1716948
1716961
  }
1716949
1716962
  await (0, import_promises142.writeFile)(generatorsYmlFile.absolutePath, documentToWrite);
1716950
- context2.logger.info(source_default.green(`Updated ${generatorsYmlFile.absolutePath}`));
1716963
+ context2.logger.info(source_default2.green(`Updated ${generatorsYmlFile.absolutePath}`));
1716951
1716964
  }
1716952
1716965
  async function getFilesAndDirectories4(absoluteFilepath) {
1716953
1716966
  const contents = await getDirectoryContents(absoluteFilepath);
@@ -1717191,7 +1717204,7 @@ async function updateGeneratorsYml3({ context: context2, files }) {
1717191
1717204
  ${documentToWrite}`;
1717192
1717205
  }
1717193
1717206
  await (0, import_promises143.writeFile)(generatorsYmlFile.absolutePath, documentToWrite);
1717194
- context2.logger.info(source_default.green(`Updated ${generatorsYmlFile.absolutePath}`));
1717207
+ context2.logger.info(source_default2.green(`Updated ${generatorsYmlFile.absolutePath}`));
1717195
1717208
  }
1717196
1717209
  async function getFilesAndDirectories5(absoluteFilepath) {
1717197
1717210
  const contents = await getDirectoryContents(absoluteFilepath);
@@ -1717328,7 +1717341,7 @@ async function updateGeneratorsYml4({ context: context2, files }) {
1717328
1717341
  ${documentToWrite}`;
1717329
1717342
  }
1717330
1717343
  await (0, import_promises144.writeFile)(generatorsYmlFile.absolutePath, documentToWrite);
1717331
- context2.logger.info(source_default.green(`Updated ${generatorsYmlFile.absolutePath}`));
1717344
+ context2.logger.info(source_default2.green(`Updated ${generatorsYmlFile.absolutePath}`));
1717332
1717345
  }
1717333
1717346
  function migrateDeprecatedSettings(settings, context2) {
1717334
1717347
  let modified = false;
@@ -1717458,7 +1717471,7 @@ async function updateGeneratorsYml5({ context: context2, files }) {
1717458
1717471
  ${documentToWrite}`;
1717459
1717472
  }
1717460
1717473
  await (0, import_promises145.writeFile)(generatorsYmlFile.absolutePath, documentToWrite);
1717461
- context2.logger.info(source_default.green(`Updated ${generatorsYmlFile.absolutePath}`));
1717474
+ context2.logger.info(source_default2.green(`Updated ${generatorsYmlFile.absolutePath}`));
1717462
1717475
  }
1717463
1717476
  function setSmartCasingFalseIfNotConfigured(generator, context2) {
1717464
1717477
  if ("smart-casing" in generator) {
@@ -1717584,7 +1717597,7 @@ async function askForConfirmation2(migrationsToRun) {
1717584
1717597
  lines.push(addPrefixToString({
1717585
1717598
  prefix: " \u25E6 ",
1717586
1717599
  content: `${migration23.name}
1717587
- ${source_default.dim(migration23.summary)}`
1717600
+ ${source_default2.dim(migration23.summary)}`
1717588
1717601
  }));
1717589
1717602
  }
1717590
1717603
  }
@@ -1717633,7 +1717646,7 @@ async function rerunFernCliAtVersion({
1717633
1717646
  cliContext.logger.debug(
1717634
1717647
  [
1717635
1717648
  `Re-running CLI at version ${version7}.`,
1717636
- `${source_default.dim(`+ npx ${commandLineArgs.map((arg) => `"${arg}"`).join(" ")}`)}`
1717649
+ `${source_default2.dim(`+ npx ${commandLineArgs.map((arg) => `"${arg}"`).join(" ")}`)}`
1717637
1717650
  ].join("\n")
1717638
1717651
  );
1717639
1717652
  const { failed, stdout, stderr } = await loggingExeca(cliContext.logger, "npx", commandLineArgs, {
@@ -1717901,7 +1717914,7 @@ async function upgrade({
1717901
1717914
  isLocalDev
1717902
1717915
  });
1717903
1717916
  cliContext.logger.info(
1717904
- `Running migrations from ${source_default.dim(resolvedFromVersion2)} \u2192 ${source_default.green(resolvedTargetVersion)}`
1717917
+ `Running migrations from ${source_default2.dim(resolvedFromVersion2)} \u2192 ${source_default2.green(resolvedTargetVersion)}`
1717905
1717918
  );
1717906
1717919
  await cliContext.runTask(async (context2) => {
1717907
1717920
  await runMigrations2({
@@ -1717919,7 +1717932,7 @@ async function upgrade({
1717919
1717932
  projectConfig2._absolutePath,
1717920
1717933
  ensureFinalNewline2(JSON.stringify(newProjectConfig, void 0, 2))
1717921
1717934
  );
1717922
- cliContext.logger.info(`Updated fern.config.json to version ${source_default.green(resolvedTargetVersion)}`);
1717935
+ cliContext.logger.info(`Updated fern.config.json to version ${source_default2.green(resolvedTargetVersion)}`);
1717923
1717936
  return;
1717924
1717937
  }
1717925
1717938
  validateVersionAhead({
@@ -1717943,7 +1717956,7 @@ async function upgrade({
1717943
1717956
  isLocalDev
1717944
1717957
  });
1717945
1717958
  cliContext.logger.info(
1717946
- `Upgrading from ${source_default.dim(cliContext.environment.packageVersion)} \u2192 ${source_default.green(resolvedTargetVersion)}`
1717959
+ `Upgrading from ${source_default2.dim(cliContext.environment.packageVersion)} \u2192 ${source_default2.green(resolvedTargetVersion)}`
1717947
1717960
  );
1717948
1717961
  const otherArgs = filterUpgradeFlags(process.argv.slice(2));
1717949
1717962
  const rerunArgs = ["upgrade", "--from", resolvedFromVersion, "--to", resolvedTargetVersion, ...otherArgs];
@@ -1718024,7 +1718037,7 @@ function printCheckReport({ apiResults, docsResult, logWarnings, context: contex
1718024
1718037
  const totalSdkStats = getTotalStats(apiResults.map((r23) => r23.violations).flat());
1718025
1718038
  const showApiNesting = apiResults.length > 1;
1718026
1718039
  if (showApiNesting) {
1718027
- context2.logger.info(source_default.cyan(source_default.bold("[sdk]")));
1718040
+ context2.logger.info(source_default2.cyan(source_default2.bold("[sdk]")));
1718028
1718041
  for (const apiResult of apiResults) {
1718029
1718042
  const stats = getViolationStats2(apiResult.violations);
1718030
1718043
  if (stats.numErrors > 0 || logWarnings && stats.numWarnings > 0) {
@@ -1718079,7 +1718092,7 @@ function printSdkSectionFlat({
1718079
1718092
  context: context2
1718080
1718093
  }) {
1718081
1718094
  const statsStr = formatStats(stats, logWarnings);
1718082
- context2.logger.info(source_default.cyan(source_default.bold(`[sdk]`)) + ` ${statsStr}`);
1718095
+ context2.logger.info(source_default2.cyan(source_default2.bold(`[sdk]`)) + ` ${statsStr}`);
1718083
1718096
  printViolationsByType({
1718084
1718097
  violations,
1718085
1718098
  logWarnings,
@@ -1718096,7 +1718109,7 @@ function printApiSection({
1718096
1718109
  indent: indent3
1718097
1718110
  }) {
1718098
1718111
  const statsStr = formatStats(stats, logWarnings);
1718099
- context2.logger.info(`${indent3}${source_default.bold(`[${apiName}]`)} ${statsStr}`);
1718112
+ context2.logger.info(`${indent3}${source_default2.bold(`[${apiName}]`)} ${statsStr}`);
1718100
1718113
  printViolationsByType({
1718101
1718114
  violations,
1718102
1718115
  logWarnings,
@@ -1718111,7 +1718124,7 @@ function printDocsSection({
1718111
1718124
  context: context2
1718112
1718125
  }) {
1718113
1718126
  const statsStr = formatStats(stats, logWarnings);
1718114
- context2.logger.info(source_default.magenta(source_default.bold(`[docs]`)) + ` ${statsStr}`);
1718127
+ context2.logger.info(source_default2.magenta(source_default2.bold(`[docs]`)) + ` ${statsStr}`);
1718115
1718128
  printViolationsByType({
1718116
1718129
  violations,
1718117
1718130
  logWarnings,
@@ -1718147,7 +1718160,7 @@ function printViolation({
1718147
1718160
  context2.logger.info(`${indent3}${severityLabel} ${violation.message}`);
1718148
1718161
  } else {
1718149
1718162
  context2.logger.info(`${indent3}${severityLabel}`);
1718150
- context2.logger.info(`${indent3} path: ${source_default.blue(path86)}`);
1718163
+ context2.logger.info(`${indent3} path: ${source_default2.blue(path86)}`);
1718151
1718164
  context2.logger.info(`${indent3} issue: ${violation.message}`);
1718152
1718165
  }
1718153
1718166
  context2.logger.info("");
@@ -1718169,11 +1718182,11 @@ function formatViolationPath(violation) {
1718169
1718182
  function getSeverityLabel2(severity) {
1718170
1718183
  switch (severity) {
1718171
1718184
  case "fatal":
1718172
- return source_default.red("[error]");
1718185
+ return source_default2.red("[error]");
1718173
1718186
  case "error":
1718174
- return source_default.red("[error]");
1718187
+ return source_default2.red("[error]");
1718175
1718188
  case "warning":
1718176
- return source_default.yellow("[warning]");
1718189
+ return source_default2.yellow("[warning]");
1718177
1718190
  default:
1718178
1718191
  assertNever(severity);
1718179
1718192
  }
@@ -1718232,7 +1718245,7 @@ function printSummary({
1718232
1718245
  } else if (stats.numWarnings > 0) {
1718233
1718246
  context2.logger.warn(message);
1718234
1718247
  } else {
1718235
- context2.logger.info(source_default.green("All checks passed"));
1718248
+ context2.logger.info(source_default2.green("All checks passed"));
1718236
1718249
  }
1718237
1718250
  }
1718238
1718251
 
@@ -1718380,7 +1718393,7 @@ async function writeDefinitionForFernWorkspace({
1718380
1718393
  absolutePathToOutputDirectory
1718381
1718394
  });
1718382
1718395
  context2.logger.info(
1718383
- source_default.green(`Wrote imported definition at ${import_path70.default.relative(process.cwd(), absolutePathToOutputDirectory)}`)
1718396
+ source_default2.green(`Wrote imported definition at ${import_path70.default.relative(process.cwd(), absolutePathToOutputDirectory)}`)
1718384
1718397
  );
1718385
1718398
  }
1718386
1718399
  }
@@ -1718397,7 +1718410,7 @@ async function writeDefinitionForNonFernWorkspace({
1718397
1718410
  absolutePathToOutputDirectory
1718398
1718411
  });
1718399
1718412
  context2.logger.info(
1718400
- source_default.green(`Wrote definition to ${import_path70.default.relative(process.cwd(), absolutePathToOutputDirectory)}`)
1718413
+ source_default2.green(`Wrote definition to ${import_path70.default.relative(process.cwd(), absolutePathToOutputDirectory)}`)
1718401
1718414
  );
1718402
1718415
  }
1718403
1718416
  async function writeFernDefinition({
@@ -1718475,7 +1718488,7 @@ async function writeDocsDefinitionForProject({
1718475
1718488
  });
1718476
1718489
  const docsDefinition = await docsResolver.resolve();
1718477
1718490
  await (0, import_promises148.writeFile)(AbsoluteFilePath2.of(outputPath), JSON.stringify(docsDefinition, null, 2));
1718478
- context2.logger.info(source_default.green(`Docs definition written to ${outputPath}`));
1718491
+ context2.logger.info(source_default2.green(`Docs definition written to ${outputPath}`));
1718479
1718492
  });
1718480
1718493
  }
1718481
1718494
 
@@ -1719349,7 +1719362,7 @@ async function writeTranslationForProject({
1719349
1719362
  changedFileIndex++;
1719350
1719363
  if (!useProgressBar) {
1719351
1719364
  context2.logger.info(
1719352
- source_default.gray(
1719365
+ source_default2.gray(
1719353
1719366
  `[${changedFileIndex}/${totalFilesToProcess + 1}] Processing: ${DOCS_CONFIGURATION_FILENAME} (docs config) for language: ${language}`
1719354
1719367
  )
1719355
1719368
  );
@@ -1719440,7 +1719453,7 @@ async function writeTranslationForProject({
1719440
1719453
  processedFileIndex++;
1719441
1719454
  if (!useProgressBar) {
1719442
1719455
  context2.logger.info(
1719443
- source_default.gray(`[${changedFileIndex}/${totalFilesToProcess}] Processing: ${relativePath}`)
1719456
+ source_default2.gray(`[${changedFileIndex}/${totalFilesToProcess}] Processing: ${relativePath}`)
1719444
1719457
  );
1719445
1719458
  }
1719446
1719459
  const languageDirectory = join4(
@@ -1719482,7 +1719495,7 @@ async function writeTranslationForProject({
1719482
1719495
  cliContext.logger.info();
1719483
1719496
  }
1719484
1719497
  }
1719485
- context2.logger.info(source_default.cyan("Copying asset files..."));
1719498
+ context2.logger.info(source_default2.cyan("Copying asset files..."));
1719486
1719499
  let assetsCopied = 0;
1719487
1719500
  for (const [filePath, relativePath] of allFilesEntries) {
1719488
1719501
  if (isAssetFile(filePath)) {
@@ -1719504,7 +1719517,7 @@ async function writeTranslationForProject({
1719504
1719517
  }
1719505
1719518
  }
1719506
1719519
  if (assetsCopied > 0) {
1719507
- context2.logger.info(source_default.green(`\u2713 Copied ${assetsCopied} asset files to translation directories`));
1719520
+ context2.logger.info(source_default2.green(`\u2713 Copied ${assetsCopied} asset files to translation directories`));
1719508
1719521
  }
1719509
1719522
  for (const language of languages) {
1719510
1719523
  const stats = languageStats[language];
@@ -1719516,21 +1719529,21 @@ async function writeTranslationForProject({
1719516
1719529
  const totalFiles = stats.filesProcessed + stats.filesSkipped;
1719517
1719530
  if (language === sourceLanguage) {
1719518
1719531
  context2.logger.info(
1719519
- source_default.blue(
1719532
+ source_default2.blue(
1719520
1719533
  `${language} (source) hash tracking summary: ${stats.filesProcessed} processed, ${stats.filesSkipped} skipped (${totalFiles} total)`
1719521
1719534
  )
1719522
1719535
  );
1719523
1719536
  context2.logger.info(
1719524
- source_default.green(`\u2713 Successfully tracked ${language} source language hashes (no directory created)`)
1719537
+ source_default2.green(`\u2713 Successfully tracked ${language} source language hashes (no directory created)`)
1719525
1719538
  );
1719526
1719539
  } else {
1719527
1719540
  context2.logger.info(
1719528
- source_default.blue(
1719541
+ source_default2.blue(
1719529
1719542
  `${language} translation summary: ${stats.filesProcessed} processed, ${stats.filesSkipped} skipped (${totalFiles} total)`
1719530
1719543
  )
1719531
1719544
  );
1719532
1719545
  context2.logger.info(
1719533
- source_default.green(`\u2713 Successfully created ${language} translation with content processing`)
1719546
+ source_default2.green(`\u2713 Successfully created ${language} translation with content processing`)
1719534
1719547
  );
1719535
1719548
  }
1719536
1719549
  }
@@ -1719543,16 +1719556,16 @@ async function writeTranslationForProject({
1719543
1719556
  }
1719544
1719557
  const aggregateTotalFiles = aggregateStats.filesProcessed + aggregateStats.filesSkipped;
1719545
1719558
  context2.logger.info(
1719546
- source_default.cyan(
1719559
+ source_default2.cyan(
1719547
1719560
  `Overall summary: ${aggregateStats.filesProcessed} files processed, ${aggregateStats.filesSkipped} files skipped across ${languages.length} languages (${aggregateTotalFiles} total operations)`
1719548
1719561
  )
1719549
1719562
  );
1719550
- context2.logger.info(source_default.green(`Translations created successfully in: ${translationsDirectory}`));
1719563
+ context2.logger.info(source_default2.green(`Translations created successfully in: ${translationsDirectory}`));
1719551
1719564
  if (targetLanguages.length > 0) {
1719552
1719565
  context2.logger.info(`You can now modify the content in each language directory:`);
1719553
1719566
  for (const language of targetLanguages) {
1719554
1719567
  context2.logger.info(
1719555
- source_default.blue(` - ${language}: ${join4(translationsDirectory, RelativeFilePath2.of(language))}`)
1719568
+ source_default2.blue(` - ${language}: ${join4(translationsDirectory, RelativeFilePath2.of(language))}`)
1719556
1719569
  );
1719557
1719570
  }
1719558
1719571
  }