blun-king-cli 7.2.8 → 7.2.9
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/lib/chat.js +13 -4
- package/package.json +1 -1
package/lib/chat.js
CHANGED
|
@@ -40,7 +40,7 @@ var SLASH_COMMANDS = [
|
|
|
40
40
|
var slashNames = SLASH_COMMANDS.map(function (c) { return c[0]; });
|
|
41
41
|
|
|
42
42
|
// ── Layout Constants ─────────────────────────────────────
|
|
43
|
-
var INPUT_PANEL_HEIGHT =
|
|
43
|
+
var INPUT_PANEL_HEIGHT = 8; // 3 gap + top-frame + input + blank + status + bottom-frame
|
|
44
44
|
|
|
45
45
|
function getRows() { return process.stdout.rows || 24; }
|
|
46
46
|
function getCols() { return process.stdout.columns || 80; }
|
|
@@ -102,7 +102,7 @@ function startChat() {
|
|
|
102
102
|
var rows = getRows();
|
|
103
103
|
var cols = getCols();
|
|
104
104
|
var t = ui.getTheme();
|
|
105
|
-
var panelTop = rows - INPUT_PANEL_HEIGHT + 1; // panel
|
|
105
|
+
var panelTop = rows - INPUT_PANEL_HEIGHT + 1; // panel starts here, 3 empty rows below
|
|
106
106
|
var inner = cols - 2;
|
|
107
107
|
|
|
108
108
|
// Permission label
|
|
@@ -597,12 +597,21 @@ function startChat() {
|
|
|
597
597
|
}
|
|
598
598
|
|
|
599
599
|
// ── Initialize TUI ───────────────────────────────────
|
|
600
|
-
console.log(chalk.dim("\n Type your message or / for commands. Tab for autocomplete.\n"));
|
|
601
|
-
|
|
602
600
|
// Wait a tick for all console.log output to flush, then enter TUI mode
|
|
603
601
|
return new Promise(function (resolveChat) {
|
|
604
602
|
setTimeout(function () {
|
|
603
|
+
// Clear screen and redraw essential info in scroll area
|
|
604
|
+
console.clear();
|
|
605
605
|
setupLayout();
|
|
606
|
+
|
|
607
|
+
// Print banner + info into scroll region
|
|
608
|
+
var creds2 = auth.getStoredCredentials();
|
|
609
|
+
printToScrollArea(chalk.cyan.bold(" BLUN King CLI") + chalk.dim(" │ ") + chalk.green("v" + require("../package.json").version) + chalk.dim(" │ ") + chalk.yellow("Multi-KI Engine"));
|
|
610
|
+
if (creds2) {
|
|
611
|
+
printToScrollArea(chalk.yellow(" [SYS] Connected as " + (creds2.name || creds2.email || "user") + " | Plan: " + (creds2.plan || "free")));
|
|
612
|
+
}
|
|
613
|
+
printToScrollArea(chalk.dim(" Type your message or / for commands. Tab for autocomplete.\n"));
|
|
614
|
+
|
|
606
615
|
drawInputPanel();
|
|
607
616
|
startRawInput();
|
|
608
617
|
}, 100);
|