@baton-dx/cli 0.4.2 → 0.4.4
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-DdbrKid3.mjs → context-detection-Ddu0mj_K.mjs} +17 -17
- package/dist/context-detection-Ddu0mj_K.mjs.map +1 -0
- package/dist/{create-W7AYGROv.mjs → create-DEZA3dPb.mjs} +3 -3
- package/dist/{create-W7AYGROv.mjs.map → create-DEZA3dPb.mjs.map} +1 -1
- package/dist/index.mjs +92 -10
- package/dist/index.mjs.map +1 -1
- package/dist/{list-D5O_m1e5.mjs → list-BT2zFAVc.mjs} +3 -3
- package/dist/{list-D5O_m1e5.mjs.map → list-BT2zFAVc.mjs.map} +1 -1
- package/dist/{prompt-B0zuVo8N.mjs → prompt-DtgNNhRW.mjs} +8 -8
- package/dist/{prompt-B0zuVo8N.mjs.map → prompt-DtgNNhRW.mjs.map} +1 -1
- package/dist/{remove-iaf_gkie.mjs → remove-BBFBYUPy.mjs} +2 -2
- package/dist/{remove-iaf_gkie.mjs.map → remove-BBFBYUPy.mjs.map} +1 -1
- package/dist/{src-BPYdPWlV.mjs → src-dY02psbw.mjs} +129 -30
- package/dist/src-dY02psbw.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/context-detection-DdbrKid3.mjs.map +0 -1
- package/dist/src-BPYdPWlV.mjs.map +0 -1
- package/dist/templates/profile/minimal/ai/memory/CLAUDE.md +0 -3
- package/dist/templates/profile/team/ai/memory/CLAUDE.md +0 -9
|
@@ -3,11 +3,11 @@ 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
|
|
6
|
+
import g$1, { 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";
|
|
10
|
-
import
|
|
10
|
+
import ot from "node:readline";
|
|
11
11
|
import { existsSync, lstatSync, readdirSync } from "node:fs";
|
|
12
12
|
|
|
13
13
|
//#region ../../node_modules/.bun/consola@3.4.2/node_modules/consola/dist/core.mjs
|
|
@@ -666,7 +666,7 @@ const r = Object.create(null), i = (e) => globalThis.process?.env || import.meta
|
|
|
666
666
|
const e = i(true);
|
|
667
667
|
return Object.keys(e);
|
|
668
668
|
}
|
|
669
|
-
}), t = typeof process < "u" && process.env && process.env.NODE_ENV || "", f
|
|
669
|
+
}), t = typeof process < "u" && process.env && process.env.NODE_ENV || "", f = [
|
|
670
670
|
["APPVEYOR"],
|
|
671
671
|
[
|
|
672
672
|
"AWS_AMPLIFY",
|
|
@@ -758,7 +758,7 @@ const r = Object.create(null), i = (e) => globalThis.process?.env || import.meta
|
|
|
758
758
|
]
|
|
759
759
|
];
|
|
760
760
|
function b() {
|
|
761
|
-
if (globalThis.process?.env) for (const e of f
|
|
761
|
+
if (globalThis.process?.env) for (const e of f) {
|
|
762
762
|
const s = e[1] || e[0];
|
|
763
763
|
if (globalThis.process?.env[s]) return {
|
|
764
764
|
name: e[0].toLowerCase(),
|
|
@@ -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$
|
|
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 = [
|
|
794
794
|
[S$1, "netlify"],
|
|
795
795
|
[u, "edge-light"],
|
|
796
|
-
[N$
|
|
796
|
+
[N$1, "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 } =
|
|
862
|
+
const { env } = g$1;
|
|
863
863
|
const { TERM, TERM_PROGRAM } = env;
|
|
864
|
-
if (
|
|
864
|
+
if (g$1.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-
|
|
951
|
+
prompt: (...args) => import("./prompt-DtgNNhRW.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
|
});
|
|
@@ -8360,7 +8360,7 @@ var x$1 = class {
|
|
|
8360
8360
|
this.state = "cancel", this.close();
|
|
8361
8361
|
}, { once: !0 });
|
|
8362
8362
|
}
|
|
8363
|
-
this.rl =
|
|
8363
|
+
this.rl = ot.createInterface({
|
|
8364
8364
|
input: this.input,
|
|
8365
8365
|
tabSize: 2,
|
|
8366
8366
|
prompt: "",
|
|
@@ -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
|
|
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";
|
|
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) {
|
|
@@ -8822,7 +8822,7 @@ const et = me(), ct = () => process.env.CI === "true", Mt = (t) => t.isTTY === !
|
|
|
8822
8822
|
limit: Infinity,
|
|
8823
8823
|
ellipsis: "",
|
|
8824
8824
|
ellipsisWidth: 0
|
|
8825
|
-
}, M = (t, r = {}) => jt(t, Ee, r).width, ot = "\x1B", Gt = "", ve = 39, Ct = "\x07", kt = "[", Ae = "]", Vt = "m", St = `${Ae}8;;`, Ht = new RegExp(`(?:\\${kt}(?<code>\\d+)m|\\${St}(?<uri>.*)${Ct})`, "y"), we = (t) => {
|
|
8825
|
+
}, M = (t, r = {}) => jt(t, Ee, r).width, ot$1 = "\x1B", Gt = "", ve = 39, Ct = "\x07", kt = "[", Ae = "]", Vt = "m", St = `${Ae}8;;`, Ht = new RegExp(`(?:\\${kt}(?<code>\\d+)m|\\${St}(?<uri>.*)${Ct})`, "y"), we = (t) => {
|
|
8826
8826
|
if (t >= 30 && t <= 37 || t >= 90 && t <= 97) return 39;
|
|
8827
8827
|
if (t >= 40 && t <= 47 || t >= 100 && t <= 107) return 49;
|
|
8828
8828
|
if (t === 1 || t === 2) return 22;
|
|
@@ -8832,12 +8832,12 @@ const et = me(), ct = () => process.env.CI === "true", Mt = (t) => t.isTTY === !
|
|
|
8832
8832
|
if (t === 8) return 28;
|
|
8833
8833
|
if (t === 9) return 29;
|
|
8834
8834
|
if (t === 0) return 0;
|
|
8835
|
-
}, Ut = (t) => `${ot}${kt}${t}${Vt}`, Kt = (t) => `${ot}${St}${t}${Ct}`, Ce = (t) => t.map((r) => M(r)), It = (t, r, s) => {
|
|
8835
|
+
}, Ut = (t) => `${ot$1}${kt}${t}${Vt}`, Kt = (t) => `${ot$1}${St}${t}${Ct}`, Ce = (t) => t.map((r) => M(r)), It = (t, r, s) => {
|
|
8836
8836
|
const i = r[Symbol.iterator]();
|
|
8837
8837
|
let a = !1, o = !1, u = t.at(-1), l = u === void 0 ? 0 : M(u), n = i.next(), c = i.next(), g = 0;
|
|
8838
8838
|
for (; !n.done;) {
|
|
8839
8839
|
const F = n.value, p = M(F);
|
|
8840
|
-
l + p <= s ? t[t.length - 1] += F : (t.push(F), l = 0), (F === ot || F === Gt) && (a = !0, o = r.startsWith(St, g + 1)), a ? o ? F === Ct && (a = !1, o = !1) : F === Vt && (a = !1) : (l += p, l === s && !c.done && (t.push(""), l = 0)), n = c, c = i.next(), g += F.length;
|
|
8840
|
+
l + p <= s ? t[t.length - 1] += F : (t.push(F), l = 0), (F === ot$1 || F === Gt) && (a = !0, o = r.startsWith(St, g + 1)), a ? o ? F === Ct && (a = !1, o = !1) : F === Vt && (a = !1) : (l += p, l === s && !c.done && (t.push(""), l = 0)), n = c, c = i.next(), g += F.length;
|
|
8841
8841
|
}
|
|
8842
8842
|
u = t.at(-1), !l && u !== void 0 && u.length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
|
|
8843
8843
|
}, Se = (t) => {
|
|
@@ -8877,7 +8877,7 @@ const et = me(), ct = () => process.env.CI === "true", Mt = (t) => t.isTTY === !
|
|
|
8877
8877
|
let F = g.next(), p = g.next(), E = 0;
|
|
8878
8878
|
for (; !F.done;) {
|
|
8879
8879
|
const $ = F.value, m = p.value;
|
|
8880
|
-
if (i += $, $ === ot || $ === Gt) {
|
|
8880
|
+
if (i += $, $ === ot$1 || $ === Gt) {
|
|
8881
8881
|
Ht.lastIndex = E + 1;
|
|
8882
8882
|
const f = Ht.exec(c)?.groups;
|
|
8883
8883
|
if (f?.code !== void 0) {
|
|
@@ -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 ??
|
|
9374
|
+
const i = s?.output ?? g$1.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-
|
|
9841
|
+
//# sourceMappingURL=context-detection-Ddu0mj_K.mjs.map
|