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.
Files changed (2) hide show
  1. package/blun-cli.js +4 -3
  2. 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
- if (!isTrusted && process.stdin.isTTY) {
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") && process.stdin.isTTY) {
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.1");
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.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "5.0.2",
3
+ "version": "5.0.3",
4
4
  "description": "BLUN King CLI — Your local AI assistant powered by Gemma4",
5
5
  "type": "commonjs",
6
6
  "bin": {