blun-king-cli 6.4.0 → 6.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/lib/chat.js +1 -0
- package/lib/ui.js +10 -1
- package/package.json +1 -1
package/lib/chat.js
CHANGED
package/lib/ui.js
CHANGED
|
@@ -70,10 +70,18 @@ function renderInputBoxClose() {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
function renderPrompt(username, model) {
|
|
73
|
-
// Called by readline as the prompt string
|
|
73
|
+
// Called by readline as the prompt string
|
|
74
|
+
// Show left border + cursor arrow
|
|
74
75
|
return chalk.dim("\u2502") + " " + chalk.green.bold("\u276f") + " ";
|
|
75
76
|
}
|
|
76
77
|
|
|
78
|
+
function renderWelcomeInfo() {
|
|
79
|
+
var w = getInputBoxWidth();
|
|
80
|
+
console.log(chalk.dim("\u2502"));
|
|
81
|
+
console.log(chalk.dim("\u2502") + chalk.dim(" Tip: Type a message and press Enter. Use /help for all commands."));
|
|
82
|
+
console.log(chalk.dim("\u2570" + "\u2500".repeat(w) + "\u256f"));
|
|
83
|
+
}
|
|
84
|
+
|
|
77
85
|
function renderResponse(text, type) {
|
|
78
86
|
var colorFn = colors[type] || colors.agent;
|
|
79
87
|
var labels = { user: "YOU", agent: "BLUN", system: "SYS", error: "ERR" };
|
|
@@ -262,6 +270,7 @@ module.exports = {
|
|
|
262
270
|
renderPrompt: renderPrompt,
|
|
263
271
|
renderInputBox: renderInputBox,
|
|
264
272
|
renderInputBoxClose: renderInputBoxClose,
|
|
273
|
+
renderWelcomeInfo: renderWelcomeInfo,
|
|
265
274
|
renderMiniStatus: renderMiniStatus,
|
|
266
275
|
renderResponse: renderResponse,
|
|
267
276
|
renderSpinner: renderSpinner,
|