@baton-dx/cli 0.4.1 → 0.4.3

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.
@@ -3,7 +3,7 @@ import { n as __require, r as __toESM, t as __commonJSMin } from "./chunk-BbwQpW
3
3
  import { access } from "node:fs/promises";
4
4
  import { dirname, join, sep } from "node:path";
5
5
  import { formatWithOptions, stripVTControlCharacters } from "node:util";
6
- import g$1, { stdin, stdout } from "node:process";
6
+ import N, { stdin, stdout } from "node:process";
7
7
  import * as tty from "node:tty";
8
8
  import { ReadStream } from "node:tty";
9
9
  import * as k from "node:readline";
@@ -790,10 +790,10 @@ new Proxy(y$1, { get(e, s) {
790
790
  if (s in e) return e[s];
791
791
  if (s in _$1) return _$1[s];
792
792
  } });
793
- const c = globalThis.process?.release?.name === "node", O$1 = !!globalThis.Bun || !!globalThis.process?.versions?.bun, D$1 = !!globalThis.Deno, L$1 = !!globalThis.fastly, S$1 = !!globalThis.Netlify, u = !!globalThis.EdgeRuntime, N$1 = globalThis.navigator?.userAgent === "Cloudflare-Workers", F = [
793
+ const c = globalThis.process?.release?.name === "node", O$1 = !!globalThis.Bun || !!globalThis.process?.versions?.bun, D$1 = !!globalThis.Deno, L$1 = !!globalThis.fastly, S$1 = !!globalThis.Netlify, u = !!globalThis.EdgeRuntime, N$2 = globalThis.navigator?.userAgent === "Cloudflare-Workers", F = [
794
794
  [S$1, "netlify"],
795
795
  [u, "edge-light"],
796
- [N$1, "workerd"],
796
+ [N$2, "workerd"],
797
797
  [L$1, "fastly"],
798
798
  [D$1, "deno"],
799
799
  [O$1, "bun"],
@@ -859,9 +859,9 @@ function stringWidth$1(string, options = {}) {
859
859
  return width;
860
860
  }
861
861
  function isUnicodeSupported() {
862
- const { env } = g$1;
862
+ const { env } = N;
863
863
  const { TERM, TERM_PROGRAM } = env;
864
- if (g$1.platform !== "win32") return TERM !== "linux";
864
+ if (N.platform !== "win32") return TERM !== "linux";
865
865
  return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
866
866
  }
867
867
  const TYPE_COLOR_MAP = {
@@ -948,7 +948,7 @@ function createConsola(options = {}) {
948
948
  defaults: { level },
949
949
  stdout: process.stdout,
950
950
  stderr: process.stderr,
951
- prompt: (...args) => import("./prompt-CPT4cDau.mjs").then((m) => m.prompt(...args)),
951
+ prompt: (...args) => import("./prompt-B0zuVo8N.mjs").then((m) => m.prompt(...args)),
952
952
  reporters: options.reporters || [options.fancy ?? !(T$1 || R$1) ? new FancyReporter() : new BasicReporter()],
953
953
  ...options
954
954
  });
@@ -8731,7 +8731,7 @@ var $t$1 = class extends x$1 {
8731
8731
  //#endregion
8732
8732
  //#region ../../node_modules/.bun/@clack+prompts@1.0.1/node_modules/@clack/prompts/dist/index.mjs
8733
8733
  function me() {
8734
- return g$1.platform !== "win32" ? g$1.env.TERM !== "linux" : !!g$1.env.CI || !!g$1.env.WT_SESSION || !!g$1.env.TERMINUS_SUBLIME || g$1.env.ConEmuTask === "{cmd::Cmder}" || g$1.env.TERM_PROGRAM === "Terminus-Sublime" || g$1.env.TERM_PROGRAM === "vscode" || g$1.env.TERM === "xterm-256color" || g$1.env.TERM === "alacritty" || g$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
8734
+ return N.platform !== "win32" ? N.env.TERM !== "linux" : !!N.env.CI || !!N.env.WT_SESSION || !!N.env.TERMINUS_SUBLIME || N.env.ConEmuTask === "{cmd::Cmder}" || N.env.TERM_PROGRAM === "Terminus-Sublime" || N.env.TERM_PROGRAM === "vscode" || N.env.TERM === "xterm-256color" || N.env.TERM === "alacritty" || N.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
8735
8735
  }
8736
8736
  const et = me(), ct = () => process.env.CI === "true", Mt = (t) => t.isTTY === !0, C = (t, r) => et ? t : r, Rt = C("◆", "*"), dt = C("■", "x"), $t = C("▲", "x"), V = C("◇", "o"), ht = C("┌", "T"), d = C("│", "|"), x = C("└", "—"), Ot = C("┐", "T"), Pt = C("┘", "—"), Q = C("●", ">"), H = C("○", " "), st = C("◻", "[•]"), U = C("◼", "[+]"), q = C("◻", "[ ]"), Nt = C("▪", "•"), rt = C("─", "-"), mt = C("╮", "+"), Wt = C("├", "+"), pt = C("╯", "+"), gt = C("╰", "+"), Lt = C("╭", "+"), ft = C("●", "•"), Ft = C("◆", "*"), yt = C("▲", "!"), Et = C("■", "x"), W = (t) => {
8737
8737
  switch (t) {
@@ -9371,7 +9371,7 @@ ${import_picocolors.default.cyan(x)}
9371
9371
  `), o = a.reduce((n, c) => Math.max(M(c), n), 0);
9372
9372
  return J(t, r - (a.map(s).reduce((n, c) => Math.max(M(c), n), 0) - o), i);
9373
9373
  }, Ve = (t = "", r = "", s) => {
9374
- const i = s?.output ?? g$1.stdout, a = s?.withGuide ?? _.withGuide, o = s?.format ?? Ge, u = [
9374
+ const i = s?.output ?? N.stdout, a = s?.withGuide ?? _.withGuide, o = s?.format ?? Ge, u = [
9375
9375
  "",
9376
9376
  ...ke(t, rt$1(i) - 6, o).split(`
9377
9377
  `).map(o),
@@ -9838,4 +9838,4 @@ async function findSourceRoot(cwd = process.cwd(), options) {
9838
9838
 
9839
9839
  //#endregion
9840
9840
  export { Ne as a, Ve as c, bt as d, je as f, runMain as g, defineCommand as h, Le as i, We as l, require_dist as m, isInSourceRepo as n, R as o, Ct$1 as p, Je as r, Re as s, findSourceRoot as t, Ze as u };
9841
- //# sourceMappingURL=context-detection-DqOTnD6_.mjs.map
9841
+ //# sourceMappingURL=context-detection-DdbrKid3.mjs.map