dave-code 1.0.0 → 1.0.2

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/bin/cliMenu.js +7 -13
  2. package/package.json +3 -1
package/bin/cliMenu.js CHANGED
@@ -8,6 +8,7 @@
8
8
  */
9
9
 
10
10
  import readline from 'readline';
11
+ import ora from 'ora';
11
12
 
12
13
  export function selectMenu(title, description, options, defaultIndex = 0) {
13
14
  return new Promise((resolve) => {
@@ -302,21 +303,14 @@ export function waitForEnter(promptText) {
302
303
  }
303
304
 
304
305
  export function startSpinner(prefixText) {
305
- const frames = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
306
- let i = 0;
307
-
308
- process.stdout.write('\x1b[?25l');
309
- process.stdout.write(`\r\x1b[K\x1b[36m${prefixText} ${frames[i]}\x1b[0m`);
310
-
311
- const interval = setInterval(() => {
312
- i = (i + 1) % frames.length;
313
- process.stdout.write(`\r\x1b[K\x1b[36m${prefixText} ${frames[i]}\x1b[0m`);
314
- }, 80);
306
+ const spinner = ora({
307
+ text: prefixText,
308
+ color: 'cyan',
309
+ spinner: 'dots'
310
+ }).start();
315
311
 
316
312
  return () => {
317
- clearInterval(interval);
318
- process.stdout.write('\r\x1b[K');
319
- process.stdout.write('\x1b[?25h');
313
+ spinner.stop();
320
314
  };
321
315
  }
322
316
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dave-code",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A terminal-based AI coding assistant CLI similar to Claude Code",
5
5
  "type": "module",
6
6
  "main": "bin/index.js",
@@ -23,6 +23,8 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "https-proxy-agent": "^9.1.0",
26
+ "lodash": "^4.18.1",
27
+ "ora": "^9.4.1",
26
28
  "pngjs": "^7.0.0",
27
29
  "undici": "^8.5.0"
28
30
  }