@stevederico/dotbot 0.20.2 → 0.21.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.21
2
+
3
+ Fix spinner overlap bug
4
+
1
5
  0.20.2
2
6
 
3
7
  Add spinner for thinking/tools
package/bin/dotbot.js CHANGED
@@ -64,6 +64,7 @@ const DEFAULT_DB = './dotbot.db';
64
64
  let spinnerInterval = null;
65
65
 
66
66
  function startSpinner() {
67
+ if (spinnerInterval) clearInterval(spinnerInterval);
67
68
  spinnerInterval = setInterval(() => {
68
69
  process.stdout.write('.');
69
70
  }, 300);
@@ -256,7 +257,8 @@ async function runChat(message, options) {
256
257
  process.stdout.write(event.text);
257
258
  break;
258
259
  case 'tool_start':
259
- process.stdout.write(`\n[${event.name}] `);
260
+ stopSpinner(''); // Stop thinking spinner silently
261
+ process.stdout.write(`[${event.name}] `);
260
262
  startSpinner();
261
263
  break;
262
264
  case 'tool_result':
@@ -348,7 +350,8 @@ async function runRepl(options) {
348
350
  assistantContent += event.text;
349
351
  break;
350
352
  case 'tool_start':
351
- process.stdout.write(`\n[${event.name}] `);
353
+ stopSpinner(''); // Stop thinking spinner silently
354
+ process.stdout.write(`[${event.name}] `);
352
355
  startSpinner();
353
356
  break;
354
357
  case 'tool_result':
package/dotbot.db CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stevederico/dotbot",
3
- "version": "0.20.2",
3
+ "version": "0.21.0",
4
4
  "description": "AI agent CLI and library for Node.js — streaming, multi-provider, tool execution, autonomous tasks",
5
5
  "type": "module",
6
6
  "main": "index.js",