blun-king-cli 7.0.3 → 7.0.5

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 +23 -3
  2. package/lib/ui.js +2 -2
  3. package/package.json +1 -1
package/lib/chat.js CHANGED
@@ -69,15 +69,34 @@ function startChat() {
69
69
  var username = (creds ? creds.name : null) || "local";
70
70
  var model = settings.model || "auto";
71
71
 
72
- // Show permission line
73
- ui.renderPermissionLine(permissionMode);
74
72
  console.log();
75
73
 
74
+ var SLASH_COMMANDS = [
75
+ ["/help", "Show all commands"],
76
+ ["/model", "Switch AI model"],
77
+ ["/settings", "Show/change settings"],
78
+ ["/perm", "Cycle permission mode (safe/normal/god)"],
79
+ ["/status", "Token usage & uptime"],
80
+ ["/whoami", "Current user info"],
81
+ ["/keys", "List API keys"],
82
+ ["/login", "Login from chat"],
83
+ ["/clear", "Clear screen"],
84
+ ["/exit", "Exit chat"],
85
+ ];
86
+ var slashNames = SLASH_COMMANDS.map(function (c) { return c[0]; });
87
+
76
88
  var rl = readline.createInterface({
77
89
  input: process.stdin,
78
90
  output: process.stdout,
79
91
  prompt: ui.renderPrompt(),
80
92
  terminal: true,
93
+ completer: function (line) {
94
+ if (line.startsWith("/")) {
95
+ var hits = slashNames.filter(function (c) { return c.startsWith(line); });
96
+ return [hits.length ? hits : slashNames, line];
97
+ }
98
+ return [[], line];
99
+ },
81
100
  });
82
101
 
83
102
  showPrompt(rl, username, model);
@@ -85,13 +104,14 @@ function startChat() {
85
104
  return new Promise(function (resolveChat) {
86
105
  rl.on("line", function (line) {
87
106
  var input = line.trim();
88
- ui.renderInputBoxClose();
89
107
 
90
108
  if (!input) {
91
109
  showPrompt(rl, username, model);
92
110
  return;
93
111
  }
94
112
 
113
+ ui.renderInputBoxClose();
114
+
95
115
  // Commands
96
116
  if (input === "/exit" || input === "/quit") {
97
117
  ui.renderResponse("Goodbye!", "system");
package/lib/ui.js CHANGED
@@ -114,10 +114,10 @@ function renderResponse(text, type) {
114
114
  var rendered = renderMarkdown(text);
115
115
 
116
116
  if (type === "agent") {
117
- // Claude Code style - plain text with green prefix, no box
117
+ // Claude Code style - plain white text, no box, no color
118
118
  var lines = rendered.split("\n");
119
119
  lines.forEach(function (line) {
120
- console.log(" " + chalk.green(line));
120
+ console.log(" " + line);
121
121
  });
122
122
  console.log();
123
123
  } else if (type === "error") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "7.0.3",
3
+ "version": "7.0.5",
4
4
  "description": "BLUN AI Assistant - Command Line Interface",
5
5
  "bin": {
6
6
  "blun": "./bin/blun.js"