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.
@@ -3,14 +3,14 @@
3
3
  "owner": {
4
4
  "name": "Kenneth",
5
5
  "email": "kenneth@example.com",
6
- "url": "https://github.com/Helweg/opencode-codebase-index"
6
+ "url": "https://github.com/Helweg/open-codebase-index"
7
7
  },
8
8
  "plugins": [
9
9
  {
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.2"
14
14
  }
15
15
  ]
16
16
  }
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "codebase-index",
3
- "version": "0.22.0",
3
+ "version": "0.22.2",
4
4
  "description": "Semantic code search and codebase graph tools for Claude Code",
5
5
  "displayName": "Codebase Index",
6
6
  "author": {
7
7
  "name": "Kenneth",
8
8
  "email": "kenneth@example.com",
9
- "url": "https://github.com/Helweg/opencode-codebase-index"
9
+ "url": "https://github.com/Helweg/open-codebase-index"
10
10
  },
11
- "homepage": "https://github.com/Helweg/opencode-codebase-index",
12
- "repository": "https://github.com/Helweg/opencode-codebase-index",
11
+ "homepage": "https://github.com/Helweg/open-codebase-index",
12
+ "repository": "https://github.com/Helweg/open-codebase-index",
13
13
  "license": "MIT",
14
14
  "keywords": [
15
15
  "codebase-index",
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "codebase-index",
3
- "version": "0.22.0",
3
+ "version": "0.22.2",
4
4
  "description": "Semantic code search and codebase graph tools for Codex",
5
5
  "author": {
6
6
  "name": "Kenneth",
7
7
  "email": "kenneth@example.com",
8
- "url": "https://github.com/Helweg/opencode-codebase-index"
8
+ "url": "https://github.com/Helweg/open-codebase-index"
9
9
  },
10
- "homepage": "https://github.com/Helweg/opencode-codebase-index",
11
- "repository": "https://github.com/Helweg/opencode-codebase-index",
10
+ "homepage": "https://github.com/Helweg/open-codebase-index",
11
+ "repository": "https://github.com/Helweg/open-codebase-index",
12
12
  "license": "MIT",
13
13
  "keywords": [
14
14
  "codebase-index",
@@ -32,9 +32,9 @@
32
32
  "MCP Tools",
33
33
  "Search"
34
34
  ],
35
- "websiteURL": "https://github.com/Helweg/opencode-codebase-index",
36
- "privacyPolicyURL": "https://github.com/Helweg/opencode-codebase-index/blob/main/SECURITY.md",
37
- "termsOfServiceURL": "https://github.com/Helweg/opencode-codebase-index/blob/main/LICENSE",
35
+ "websiteURL": "https://github.com/Helweg/open-codebase-index",
36
+ "privacyPolicyURL": "https://github.com/Helweg/open-codebase-index/blob/main/SECURITY.md",
37
+ "termsOfServiceURL": "https://github.com/Helweg/open-codebase-index/blob/main/LICENSE",
38
38
  "brandColor": "#3B82F6",
39
39
  "defaultPrompt": [
40
40
  "For repository questions, use index_status when readiness is unknown, then call codebase_context before shell search or broad file reads."
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![npm version](https://img.shields.io/npm/v/open-codebase-index.svg)](https://www.npmjs.com/package/open-codebase-index)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
5
  [![Downloads](https://img.shields.io/npm/dm/open-codebase-index.svg)](https://www.npmjs.com/package/open-codebase-index)
6
- [![Build Status](https://img.shields.io/github/actions/workflow/status/Helweg/opencode-codebase-index/ci.yml?branch=main)](https://github.com/Helweg/opencode-codebase-index/actions)
6
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/Helweg/open-codebase-index/ci.yml?branch=main)](https://github.com/Helweg/open-codebase-index/actions)
7
7
  [![Node.js](https://img.shields.io/badge/node-%3E%3D20-brightgreen.svg)](https://nodejs.org/)
8
8
 
9
9
  > Search a codebase by meaning, then follow the result into definitions, callers, and dependency paths.
package/dist/cli.cjs CHANGED
@@ -4163,7 +4163,7 @@ var identity_catalog_default = {
4163
4163
  current: {
4164
4164
  productName: "opencode-codebase-index",
4165
4165
  packageName: "opencode-codebase-index",
4166
- repository: "https://github.com/Helweg/opencode-codebase-index",
4166
+ repository: "https://github.com/Helweg/open-codebase-index",
4167
4167
  mcpBinary: "opencode-codebase-index-mcp",
4168
4168
  mcpServerName: "opencode-codebase-index"
4169
4169
  },
@@ -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()) {