open-codebase-index 0.22.0 → 0.22.1

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.
@@ -10,7 +10,7 @@
10
10
  "name": "codebase-index",
11
11
  "description": "Semantic code search and codebase graph tools for Claude Code",
12
12
  "source": "./",
13
- "version": "0.22.0"
13
+ "version": "0.22.1"
14
14
  }
15
15
  ]
16
16
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebase-index",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "Semantic code search and codebase graph tools for Claude Code",
5
5
  "displayName": "Codebase Index",
6
6
  "author": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebase-index",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "Semantic code search and codebase graph tools for Codex",
5
5
  "author": {
6
6
  "name": "Kenneth",
package/dist/cli.cjs CHANGED
@@ -16505,6 +16505,15 @@ async function runEvaluation(options) {
16505
16505
  const indexer = new Indexer(options.projectRoot, effectiveConfig, "opencode");
16506
16506
  try {
16507
16507
  await indexer.index();
16508
+ if (options.ciMode) {
16509
+ const indexStatus = await indexer.getStatus();
16510
+ if (!indexStatus.indexed || indexStatus.vectorCount === 0) {
16511
+ const failedBatchDetails = indexStatus.failedBatchesCount > 0 ? ` ${indexStatus.failedBatchesCount} embedding batch(es) failed; diagnostics: ${indexStatus.failedBatchesPath ?? "unavailable"}.` : "";
16512
+ throw new Error(
16513
+ `Evaluation reindex produced no searchable vectors.${failedBatchDetails} Check the embedding provider and indexing diagnostics before evaluating retrieval quality.`
16514
+ );
16515
+ }
16516
+ }
16508
16517
  const perQuery = [];
16509
16518
  for (const query of dataset.queries) {
16510
16519
  if (query.expected.branch && query.expected.branch !== indexer.getCurrentBranch()) {