@optiqcode/cli 1.7.0 → 1.8.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.
Files changed (2) hide show
  1. package/dist/index.js +9 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ async function showBanner() {
21
21
  |_| |_|
22
22
  `));
23
23
  console.log(chalk.gray(' AI-powered code indexing & search'));
24
- console.log(chalk.gray(' v1.6.0\n'));
24
+ console.log(chalk.gray(' v1.7.0\n'));
25
25
  }
26
26
  function showHelp() {
27
27
  console.log(chalk.cyan.bold('Optiq CLI') + chalk.gray(' - AI-powered code indexing\n'));
@@ -461,7 +461,8 @@ async function watchDirectory(targetPath, config) {
461
461
  lines.push('');
462
462
  logUpdate(lines.join('\n'));
463
463
  };
464
- // Update dashboard every 5 seconds to show uptime
464
+ // Show dashboard immediately and update every 5 seconds
465
+ updateDashboard();
465
466
  setInterval(updateDashboard, 5000);
466
467
  const processChanges = async () => {
467
468
  if (pendingChanges.size === 0 || isProcessing)
@@ -532,13 +533,15 @@ async function watchDirectory(targetPath, config) {
532
533
  else {
533
534
  logUpdate.clear();
534
535
  console.log(chalk.red(`✗ Failed to index`));
535
- console.log(chalk.gray(` ${response.data.error}`));
536
+ console.log(chalk.gray(` ${response.data.error}\n`));
537
+ updateDashboard();
536
538
  }
537
539
  }
538
540
  catch (error) {
539
541
  logUpdate.clear();
540
542
  console.log(chalk.red(`✗ Failed to index`));
541
- console.log(chalk.gray(` ${error.response?.data?.error || error.message}`));
543
+ console.log(chalk.gray(` ${error.response?.data?.error || error.message}\n`));
544
+ updateDashboard();
542
545
  }
543
546
  isProcessing = false;
544
547
  // Check if there are more pending changes and process them
@@ -567,7 +570,8 @@ async function watchDirectory(targetPath, config) {
567
570
  })
568
571
  .on('error', (error) => {
569
572
  logUpdate.clear();
570
- console.log(chalk.red('✗ Watcher error:'), chalk.gray(error.message));
573
+ console.log(chalk.red('✗ Watcher error:'), chalk.gray(error.message + '\n'));
574
+ updateDashboard();
571
575
  });
572
576
  process.on('SIGINT', () => {
573
577
  logUpdate.clear();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optiqcode/cli",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "CLI tool for Optiq - automatic code indexing and context engine",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",