blun-king-cli 2.4.0 → 2.4.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/bin/blun.js +16 -7
- package/package.json +1 -1
package/bin/blun.js
CHANGED
|
@@ -106,16 +106,25 @@ var chatHistory = [];
|
|
|
106
106
|
// ── Print Helpers ──
|
|
107
107
|
function printHeader() {
|
|
108
108
|
var w = Math.min(process.stdout.columns || 60, 60);
|
|
109
|
-
var
|
|
109
|
+
var inner = w - 4; // inner width between │ and │
|
|
110
|
+
var line = BOX.h.repeat(inner);
|
|
111
|
+
// Helper: pad text to exact inner width
|
|
112
|
+
function row(text, visLen) { return C.brightBlue + " " + BOX.v + C.reset + text + " ".repeat(Math.max(0, inner - visLen)) + C.brightBlue + BOX.v + C.reset; }
|
|
113
|
+
var modelStr = typeof config.model === "string" ? config.model : (config.model && config.model.name ? config.model.name : "default");
|
|
114
|
+
var wdShort = config.workdir.length > inner - 10 ? "..." + config.workdir.slice(-(inner - 13)) : config.workdir;
|
|
115
|
+
var titleText = " " + BOX.bot + " BLUN KING CLI v" + PKG_VERSION;
|
|
116
|
+
var subText = " Premium KI \u2014 Local First \u2014 Autonom";
|
|
110
117
|
console.log("");
|
|
111
118
|
console.log(C.brightBlue + " " + BOX.tl + line + BOX.tr + C.reset);
|
|
112
|
-
console.log(C.
|
|
113
|
-
console.log(C.
|
|
119
|
+
console.log(row(C.bold + C.brightWhite + titleText + C.reset, titleText.length));
|
|
120
|
+
console.log(row(C.gray + subText + C.reset, subText.length));
|
|
114
121
|
console.log(C.brightBlue + " " + BOX.v + line + BOX.v + C.reset);
|
|
115
|
-
|
|
116
|
-
console.log(C.
|
|
117
|
-
var
|
|
118
|
-
console.log(C.
|
|
122
|
+
var apiText = " API " + config.api.base_url;
|
|
123
|
+
console.log(row(C.gray + " API " + C.brightCyan + config.api.base_url + C.reset, apiText.length));
|
|
124
|
+
var modelText = " Model " + modelStr;
|
|
125
|
+
console.log(row(C.gray + " Model " + C.brightCyan + modelStr + C.reset, modelText.length));
|
|
126
|
+
var dirText = " Dir " + wdShort;
|
|
127
|
+
console.log(row(C.gray + " Dir " + C.brightCyan + wdShort + C.reset, dirText.length));
|
|
119
128
|
console.log(C.brightBlue + " " + BOX.bl + line + BOX.br + C.reset);
|
|
120
129
|
console.log("");
|
|
121
130
|
console.log(C.gray + " /help " + C.dim + "for commands " + C.gray + BOX.dot + " just type to chat" + C.reset);
|