blun-king-cli 5.0.3 → 5.0.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.
Files changed (2) hide show
  1. package/blun-cli.js +21 -18
  2. package/package.json +1 -1
package/blun-cli.js CHANGED
@@ -536,6 +536,23 @@ async function main() {
536
536
  });
537
537
  }
538
538
 
539
+ // ── Header ──
540
+ console.log("");
541
+ console.log(" \x1b[36m\x1b[1m╔══════════════════════════════════════╗\x1b[0m");
542
+ console.log(" \x1b[36m\x1b[1m║ BLUN KING CLI v5.0.4 ║\x1b[0m");
543
+ console.log(" \x1b[36m\x1b[1m║ Your Local AI Assistant ║\x1b[0m");
544
+ console.log(" \x1b[36m\x1b[1m╚══════════════════════════════════════╝\x1b[0m");
545
+ console.log("");
546
+
547
+ // ── API Connection ──
548
+ try {
549
+ const health = await fetch(`${cfg.apiUrl}/health`).then((resp) => resp.json());
550
+ console.log(` \x1b[32m\u2713\x1b[0m Connected to BLUN King API (\x1b[97m${health.model}\x1b[0m)`);
551
+ } catch (error) {
552
+ console.error(` \x1b[31m\u2717\x1b[0m API connection failed: ${error.message}`);
553
+ }
554
+ console.log("");
555
+
539
556
  // ── Trust Prompt ──
540
557
  const TRUST_FILE = path.join(HOME, "trusted.json");
541
558
  let trustedDirs = [];
@@ -544,7 +561,6 @@ async function main() {
544
561
 
545
562
  const isTTY = process.stdin.isTTY || process.stdout.isTTY || process.platform === "win32";
546
563
  if (!isTrusted && isTTY) {
547
- console.log("");
548
564
  console.log(` \x1b[33m\u{1F4C1} Working in: \x1b[97m${workdir}\x1b[0m`);
549
565
  console.log(" \x1b[90mDo you trust this folder? BLUN King will read/write files here.\x1b[0m");
550
566
  console.log("");
@@ -571,9 +587,12 @@ async function main() {
571
587
  }
572
588
  }
573
589
  console.log("");
590
+ } else if (isTTY) {
591
+ console.log(` \x1b[32m\u2713\x1b[0m Workspace: \x1b[97m${workdir}\x1b[0m (trusted)`);
592
+ console.log("");
574
593
  }
575
594
 
576
- // ── Mode Selection ──
595
+ // ── Mode Selection (ALWAYS shown) ──
577
596
  if (!process.argv.includes("--agent") && !process.argv.includes("--chat") && isTTY) {
578
597
  console.log(" \x1b[97m\x1b[1mHow do you want to work?\x1b[0m");
579
598
  console.log("");
@@ -586,22 +605,6 @@ async function main() {
586
605
  console.log("");
587
606
  }
588
607
  if (process.argv.includes("--chat")) mode = "chat";
589
-
590
- // ── Startup ──
591
- try {
592
- const health = await fetch(`${cfg.apiUrl}/health`).then((resp) => resp.json());
593
- console.log(` Connected to BLUN King API (${health.model})`);
594
- } catch (error) {
595
- console.error(` API connection failed: ${error.message}`);
596
- }
597
-
598
- console.log("");
599
- console.log(" BLUN KING CLI v5.0.3");
600
- console.log(` API: ${cfg.apiUrl}`);
601
- console.log(` Dir: ${workdir}`);
602
- console.log(" Chat input stays available while jobs run.");
603
- console.log(" Normal input goes into pending. /btw uses an immediate side lane.");
604
- console.log("");
605
608
  renderPrompt();
606
609
 
607
610
  rl.on("close", () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "5.0.3",
3
+ "version": "5.0.4",
4
4
  "description": "BLUN King CLI — Your local AI assistant powered by Gemma4",
5
5
  "type": "commonjs",
6
6
  "bin": {