blun-king-cli 3.0.6 → 3.0.7

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/bin/blun.js +8 -30
  2. package/package.json +1 -1
package/bin/blun.js CHANGED
@@ -27,7 +27,7 @@ if (!fs.existsSync(SKILLS_DIR)) fs.mkdirSync(SKILLS_DIR, { recursive: true });
27
27
  function loadConfig() {
28
28
  var defaults = {
29
29
  auth: { type: "api_key", api_key: "", oauth_token: "", oauth_expires: null },
30
- api: { base_url: "http://176.9.158.30:3200", timeout: 60000, key: "" },
30
+ api: { base_url: "http://176.9.158.30:3200", timeout: 300000, key: "" },
31
31
  telegram: { enabled: false, bot_token: "", chat_id: "" },
32
32
  model: "blun-king-v100",
33
33
  workdir: process.cwd(),
@@ -585,23 +585,12 @@ async function sendChat(message) {
585
585
  try {
586
586
  printUserMessage(message);
587
587
 
588
- // Show thinking status line
588
+ // Show thinking status on a single line (no input box during thinking — simpler, more reliable)
589
589
  var dots = 0;
590
590
  var thinkFrames = ["thinking", "thinking.", "thinking..", "thinking..."];
591
- var thinkText = C.dim + " " + BOX.bot + " thinking " + C.reset;
592
- process.stdout.write("\n" + thinkText + "\n");
593
-
594
- // Draw input box below thinking — user can type ahead
595
- if (_globalDrawPrompt) { processing = false; _globalDrawPrompt(); processing = true; }
596
-
597
- // Animate thinking: move up to thinking line, update, move back down
591
+ console.log("");
598
592
  var thinkTimer = setInterval(function() {
599
- process.stdout.write("\x1b[s"); // save cursor position
600
- // Move up past the input box to the thinking line
601
- var uiLines = _globalDrawPrompt ? (_globalUILines || 4) + 1 : 1;
602
- process.stdout.write("\x1b[" + uiLines + "A"); // move up
603
593
  process.stdout.write("\r\x1b[2K" + C.dim + " " + BOX.bot + " " + thinkFrames[dots % 4] + " " + C.reset);
604
- process.stdout.write("\x1b[u"); // restore cursor position
605
594
  dots++;
606
595
  }, 300);
607
596
 
@@ -611,10 +600,7 @@ async function sendChat(message) {
611
600
  });
612
601
 
613
602
  clearInterval(thinkTimer);
614
- // Erase the input box drawn during thinking
615
- if (_globalEraseUI) _globalEraseUI();
616
- // Clear thinking line: move up 1 from current pos, clear, move back
617
- process.stdout.write("\x1b[1A\r\x1b[2K\x1b[1B");
603
+ process.stdout.write("\r\x1b[2K");
618
604
 
619
605
  if (resp.status !== 200) {
620
606
  printError(resp.data.error || "API Error " + resp.status);
@@ -1534,17 +1520,11 @@ async function cmdAgent(args) {
1534
1520
  var context = [];
1535
1521
  var workdir = config.workdir;
1536
1522
 
1537
- // Show thinking status + input box below
1538
- process.stdout.write("\n" + C.dim + " " + BOX.bot + " [planning] working..." + C.reset + "\n");
1539
- if (_globalDrawPrompt) { processing = false; _globalDrawPrompt(); processing = true; }
1540
-
1523
+ // Show thinking status on single line
1524
+ console.log("");
1541
1525
  var thinkTimer = setInterval(function() {
1542
1526
  var phase = loop === 0 ? "planning" : "step " + loop + "/" + maxLoops;
1543
- process.stdout.write("\x1b[s");
1544
- var uiLines = _globalDrawPrompt ? (_globalUILines || 4) + 1 : 1;
1545
- process.stdout.write("\x1b[" + uiLines + "A");
1546
1527
  process.stdout.write("\r\x1b[2K" + C.dim + " " + BOX.bot + " [" + phase + "] working..." + C.reset);
1547
- process.stdout.write("\x1b[u");
1548
1528
  }, 300);
1549
1529
 
1550
1530
  while (loop < maxLoops) {
@@ -1559,8 +1539,7 @@ async function cmdAgent(args) {
1559
1539
 
1560
1540
  if (resp.status !== 200) {
1561
1541
  clearInterval(thinkTimer);
1562
- if (_globalEraseUI) _globalEraseUI();
1563
- process.stdout.write("\x1b[1A\r\x1b[2K\x1b[1B");
1542
+ process.stdout.write("\r\x1b[2K");
1564
1543
  printError("Step " + loop + " failed: " + (resp.data.error || "Error"));
1565
1544
  break;
1566
1545
  }
@@ -1639,8 +1618,7 @@ async function cmdAgent(args) {
1639
1618
  }
1640
1619
 
1641
1620
  clearInterval(thinkTimer);
1642
- if (_globalEraseUI) _globalEraseUI();
1643
- process.stdout.write("\x1b[1A\r\x1b[2K\x1b[1B");
1621
+ process.stdout.write("\r\x1b[2K");
1644
1622
 
1645
1623
  // Final summary
1646
1624
  console.log("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "BLUN King CLI — Premium KI Console",
5
5
  "bin": {
6
6
  "blun": "./bin/blun.js"