blun-king-cli 7.2.0 → 7.2.1
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 +4 -9
- package/package.json +1 -1
package/lib/chat.js
CHANGED
|
@@ -103,7 +103,7 @@ function startChat() {
|
|
|
103
103
|
var cols = getCols();
|
|
104
104
|
var t = ui.getTheme();
|
|
105
105
|
var panelTop = rows - INPUT_PANEL_HEIGHT + 1;
|
|
106
|
-
var inner =
|
|
106
|
+
var inner = cols - 2;
|
|
107
107
|
|
|
108
108
|
// Permission label
|
|
109
109
|
var perm = settings.permissionMode || "normal";
|
|
@@ -144,9 +144,10 @@ function startChat() {
|
|
|
144
144
|
process.stdout.write(cursorTo(panelTop + 2, 1) + clearLine());
|
|
145
145
|
process.stdout.write(t.frame("│") + " ".repeat(inner) + t.frame("│"));
|
|
146
146
|
|
|
147
|
-
// Row 4: Status line
|
|
147
|
+
// Row 4: Status line — pad to right border
|
|
148
148
|
process.stdout.write(cursorTo(panelTop + 3, 1) + clearLine());
|
|
149
149
|
process.stdout.write(t.frame("│ ") + statusLine);
|
|
150
|
+
process.stdout.write(cursorTo(panelTop + 3, cols) + t.frame("│"));
|
|
150
151
|
|
|
151
152
|
// Row 5: Bottom frame
|
|
152
153
|
process.stdout.write(cursorTo(panelTop + 4, 1) + clearLine());
|
|
@@ -387,13 +388,7 @@ function startChat() {
|
|
|
387
388
|
output.push(" " + lines[i]);
|
|
388
389
|
}
|
|
389
390
|
|
|
390
|
-
|
|
391
|
-
var metaParts = [];
|
|
392
|
-
metaParts.push(chalk.bgCyan.black(" " + (settings.model || "auto") + " "));
|
|
393
|
-
if (tokTotal) metaParts.push(chalk.dim("tokens:" + ui.formatNumber(tokTotal)));
|
|
394
|
-
metaParts.push(chalk.dim("total:" + ui.formatNumber(ui.getStats().tokens)));
|
|
395
|
-
if (settings.costVisibility !== false) metaParts.push(chalk.dim(ui.estimateCost(ui.getStats().tokens, settings.model)));
|
|
396
|
-
output.push(" " + metaParts.join(chalk.dim(" │ ")));
|
|
391
|
+
output.push("");
|
|
397
392
|
output.push("");
|
|
398
393
|
|
|
399
394
|
printToScrollArea(output.join("\n"));
|