@baton-dx/cli 0.6.0 → 0.6.1
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.
- package/dist/{context-detection-D9yccWot.mjs → context-detection-CGh_5f6N.mjs} +9 -9
- package/dist/context-detection-CGh_5f6N.mjs.map +1 -0
- package/dist/{create-Y2IeW_fK.mjs → create-Cq7dvT9C.mjs} +3 -3
- package/dist/{create-Y2IeW_fK.mjs.map → create-Cq7dvT9C.mjs.map} +1 -1
- package/dist/index.mjs +9 -6
- package/dist/index.mjs.map +1 -1
- package/dist/{list-D3woEF2B.mjs → list-xZTyCWwl.mjs} +3 -3
- package/dist/{list-D3woEF2B.mjs.map → list-xZTyCWwl.mjs.map} +1 -1
- package/dist/{prompt-CLnET8eQ.mjs → prompt-JYaE4U2w.mjs} +5 -5
- package/dist/prompt-JYaE4U2w.mjs.map +1 -0
- package/dist/{remove-CsxkkNiu.mjs → remove-DSBMNbtP.mjs} +2 -2
- package/dist/{remove-CsxkkNiu.mjs.map → remove-DSBMNbtP.mjs.map} +1 -1
- package/dist/{src-BVo3M5-4.mjs → src-B-Z49jsg.mjs} +2 -2
- package/dist/{src-BVo3M5-4.mjs.map → src-B-Z49jsg.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/context-detection-D9yccWot.mjs.map +0 -1
- package/dist/prompt-CLnET8eQ.mjs.map +0 -1
|
@@ -3,7 +3,7 @@ import { createRequire } from "node:module";
|
|
|
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
|
|
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";
|
|
@@ -819,10 +819,10 @@ new Proxy(y$1, { get(e, s) {
|
|
|
819
819
|
if (s in e) return e[s];
|
|
820
820
|
if (s in _$1) return _$1[s];
|
|
821
821
|
} });
|
|
822
|
-
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$
|
|
822
|
+
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 = [
|
|
823
823
|
[S$1, "netlify"],
|
|
824
824
|
[u, "edge-light"],
|
|
825
|
-
[N$
|
|
825
|
+
[N$2, "workerd"],
|
|
826
826
|
[L$1, "fastly"],
|
|
827
827
|
[D$1, "deno"],
|
|
828
828
|
[O$1, "bun"],
|
|
@@ -888,9 +888,9 @@ function stringWidth$1(string, options = {}) {
|
|
|
888
888
|
return width;
|
|
889
889
|
}
|
|
890
890
|
function isUnicodeSupported() {
|
|
891
|
-
const { env } =
|
|
891
|
+
const { env } = N;
|
|
892
892
|
const { TERM, TERM_PROGRAM } = env;
|
|
893
|
-
if (
|
|
893
|
+
if (N.platform !== "win32") return TERM !== "linux";
|
|
894
894
|
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";
|
|
895
895
|
}
|
|
896
896
|
const TYPE_COLOR_MAP = {
|
|
@@ -977,7 +977,7 @@ function createConsola(options = {}) {
|
|
|
977
977
|
defaults: { level },
|
|
978
978
|
stdout: process.stdout,
|
|
979
979
|
stderr: process.stderr,
|
|
980
|
-
prompt: (...args) => import("./prompt-
|
|
980
|
+
prompt: (...args) => import("./prompt-JYaE4U2w.mjs").then((m) => m.prompt(...args)),
|
|
981
981
|
reporters: options.reporters || [options.fancy ?? !(T$1 || R$1) ? new FancyReporter() : new BasicReporter()],
|
|
982
982
|
...options
|
|
983
983
|
});
|
|
@@ -8760,7 +8760,7 @@ var $t$1 = class extends x$1 {
|
|
|
8760
8760
|
//#endregion
|
|
8761
8761
|
//#region ../../node_modules/.bun/@clack+prompts@1.0.1/node_modules/@clack/prompts/dist/index.mjs
|
|
8762
8762
|
function me() {
|
|
8763
|
-
return
|
|
8763
|
+
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";
|
|
8764
8764
|
}
|
|
8765
8765
|
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) => {
|
|
8766
8766
|
switch (t) {
|
|
@@ -9400,7 +9400,7 @@ ${import_picocolors.default.cyan(x)}
|
|
|
9400
9400
|
`), o = a.reduce((n, c) => Math.max(M(c), n), 0);
|
|
9401
9401
|
return J(t, r - (a.map(s).reduce((n, c) => Math.max(M(c), n), 0) - o), i);
|
|
9402
9402
|
}, Ve = (t = "", r = "", s) => {
|
|
9403
|
-
const i = s?.output ??
|
|
9403
|
+
const i = s?.output ?? N.stdout, a = s?.withGuide ?? _.withGuide, o = s?.format ?? Ge, u = [
|
|
9404
9404
|
"",
|
|
9405
9405
|
...ke(t, rt$1(i) - 6, o).split(`
|
|
9406
9406
|
`).map(o),
|
|
@@ -9867,4 +9867,4 @@ async function findSourceRoot(cwd = process.cwd(), options) {
|
|
|
9867
9867
|
|
|
9868
9868
|
//#endregion
|
|
9869
9869
|
export { __commonJSMin as _, 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, __require as v, __toESM as y };
|
|
9870
|
-
//# sourceMappingURL=context-detection-
|
|
9870
|
+
//# sourceMappingURL=context-detection-CGh_5f6N.mjs.map
|