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.
Files changed (3) hide show
  1. package/lib/chat.js +1 -0
  2. package/lib/ui.js +10 -1
  3. package/package.json +1 -1
package/lib/chat.js CHANGED
@@ -5,6 +5,7 @@ const auth = require('./auth');
5
5
  const client = require('./client');
6
6
 
7
7
  let localMode = false;
8
+ let firstPrompt = true;
8
9
 
9
10
  function showPrompt(rl, username, model) {
10
11
  ui.renderInputBox(username, model);
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 - keep it simple
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "6.4.0",
3
+ "version": "6.4.1",
4
4
  "description": "BLUN AI Assistant - Command Line Interface",
5
5
  "bin": {
6
6
  "blun": "./bin/blun.js"