blun-king-cli 5.0.2 → 5.0.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.
- package/blun-cli.js +4 -3
- package/package.json +1 -1
package/blun-cli.js
CHANGED
|
@@ -542,7 +542,8 @@ async function main() {
|
|
|
542
542
|
try { if (fs.existsSync(TRUST_FILE)) trustedDirs = JSON.parse(fs.readFileSync(TRUST_FILE, "utf8")); } catch {}
|
|
543
543
|
const isTrusted = trustedDirs.includes(workdir) || process.argv.includes("--trust");
|
|
544
544
|
|
|
545
|
-
|
|
545
|
+
const isTTY = process.stdin.isTTY || process.stdout.isTTY || process.platform === "win32";
|
|
546
|
+
if (!isTrusted && isTTY) {
|
|
546
547
|
console.log("");
|
|
547
548
|
console.log(` \x1b[33m\u{1F4C1} Working in: \x1b[97m${workdir}\x1b[0m`);
|
|
548
549
|
console.log(" \x1b[90mDo you trust this folder? BLUN King will read/write files here.\x1b[0m");
|
|
@@ -573,7 +574,7 @@ async function main() {
|
|
|
573
574
|
}
|
|
574
575
|
|
|
575
576
|
// ── Mode Selection ──
|
|
576
|
-
if (!process.argv.includes("--agent") && !process.argv.includes("--chat") &&
|
|
577
|
+
if (!process.argv.includes("--agent") && !process.argv.includes("--chat") && isTTY) {
|
|
577
578
|
console.log(" \x1b[97m\x1b[1mHow do you want to work?\x1b[0m");
|
|
578
579
|
console.log("");
|
|
579
580
|
const modeChoice = await arrowMenu([
|
|
@@ -595,7 +596,7 @@ async function main() {
|
|
|
595
596
|
}
|
|
596
597
|
|
|
597
598
|
console.log("");
|
|
598
|
-
console.log(" BLUN KING CLI v5.0.
|
|
599
|
+
console.log(" BLUN KING CLI v5.0.3");
|
|
599
600
|
console.log(` API: ${cfg.apiUrl}`);
|
|
600
601
|
console.log(` Dir: ${workdir}`);
|
|
601
602
|
console.log(" Chat input stays available while jobs run.");
|