open-codebase-index 0.22.0 → 0.22.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.
package/dist/cli.js CHANGED
@@ -4149,7 +4149,7 @@ var identity_catalog_default = {
4149
4149
  current: {
4150
4150
  productName: "opencode-codebase-index",
4151
4151
  packageName: "opencode-codebase-index",
4152
- repository: "https://github.com/Helweg/opencode-codebase-index",
4152
+ repository: "https://github.com/Helweg/open-codebase-index",
4153
4153
  mcpBinary: "opencode-codebase-index-mcp",
4154
4154
  mcpServerName: "opencode-codebase-index"
4155
4155
  },
@@ -16500,6 +16500,15 @@ async function runEvaluation(options) {
16500
16500
  const indexer = new Indexer(options.projectRoot, effectiveConfig, "opencode");
16501
16501
  try {
16502
16502
  await indexer.index();
16503
+ if (options.ciMode) {
16504
+ const indexStatus = await indexer.getStatus();
16505
+ if (!indexStatus.indexed || indexStatus.vectorCount === 0) {
16506
+ const failedBatchDetails = indexStatus.failedBatchesCount > 0 ? ` ${indexStatus.failedBatchesCount} embedding batch(es) failed; diagnostics: ${indexStatus.failedBatchesPath ?? "unavailable"}.` : "";
16507
+ throw new Error(
16508
+ `Evaluation reindex produced no searchable vectors.${failedBatchDetails} Check the embedding provider and indexing diagnostics before evaluating retrieval quality.`
16509
+ );
16510
+ }
16511
+ }
16503
16512
  const perQuery = [];
16504
16513
  for (const query of dataset.queries) {
16505
16514
  if (query.expected.branch && query.expected.branch !== indexer.getCurrentBranch()) {