@optiqcode/cli 2.1.5 → 2.1.6

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 +6 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ async function showBanner() {
32
32
  |_| |_|
33
33
  `));
34
34
  console.log(chalk.gray(' AI-powered code indexing & search'));
35
- console.log(chalk.gray(' v2.0.0\n'));
35
+ console.log(chalk.gray(' v2.1.6\n'));
36
36
  }
37
37
  function showHelp() {
38
38
  console.log(chalk.cyan.bold('Optiq CLI') + chalk.gray(' - AI-powered code indexing\n'));
@@ -341,13 +341,15 @@ async function indexOnce(targetPath, config) {
341
341
  catch (err) {
342
342
  lastError = err;
343
343
  retries--;
344
- // Always log which files failed
344
+ // Stop spinner to show error clearly
345
+ spinner.stop();
345
346
  console.log(chalk.red(`\n✗ Batch ${batchNum} failed: ${err.code || err.message}`));
346
- console.log(chalk.yellow(` Files in batch: ${batch.map(f => f.path).join(', ')}`));
347
+ console.log(chalk.yellow(` Files: ${batch.map(f => f.path).join(', ')}`));
347
348
  console.log(chalk.gray(` Sizes: ${batch.map(f => `${f.path}(${Math.round(f.content.length / 1024)}KB)`).join(', ')}`));
348
349
  if (retries > 0) {
349
- console.log(chalk.gray(` Retrying... (${retries} left)`));
350
+ console.log(chalk.gray(` Retrying... (${retries} left)\n`));
350
351
  await new Promise(r => setTimeout(r, 2000));
352
+ spinner.start(`Retrying batch ${batchNum}...`);
351
353
  }
352
354
  }
353
355
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optiqcode/cli",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "CLI tool for Optiq - automatic code indexing and context engine",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",