blun-king-cli 6.3.4 → 6.3.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 (2) hide show
  1. package/lib/chat.js +3 -1
  2. package/package.json +1 -1
package/lib/chat.js CHANGED
@@ -44,6 +44,7 @@ async function startChat() {
44
44
  console.log(' Type /help for commands, /exit to quit.\n');
45
45
  rl.prompt();
46
46
 
47
+ return new Promise((resolveChat) => {
47
48
  rl.on('line', async (line) => {
48
49
  const input = line.trim();
49
50
  if (!input) { rl.prompt(); return; }
@@ -144,7 +145,8 @@ async function startChat() {
144
145
  rl.prompt();
145
146
  });
146
147
 
147
- rl.on('close', () => { console.log(''); process.exit(0); });
148
+ rl.on('close', () => { console.log(''); resolveChat(); });
149
+ });
148
150
  }
149
151
 
150
152
  module.exports = { startChat };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "6.3.4",
3
+ "version": "6.3.5",
4
4
  "description": "BLUN AI Assistant - Command Line Interface",
5
5
  "bin": {
6
6
  "blun": "./bin/blun.js"