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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +4 -4
- package/.codex-plugin/plugin.json +7 -7
- package/README.md +1 -1
- package/dist/cli.cjs +10 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +10 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/pi-extension.cjs +1 -1
- package/dist/pi-extension.cjs.map +1 -1
- package/dist/pi-extension.js +1 -1
- package/dist/pi-extension.js.map +1 -1
- package/native/codebase-index-native.darwin-arm64.node +0 -0
- package/native/codebase-index-native.darwin-x64.node +0 -0
- package/native/codebase-index-native.linux-arm64-gnu.node +0 -0
- package/native/codebase-index-native.linux-x64-gnu.node +0 -0
- package/native/codebase-index-native.win32-x64-msvc.node +0 -0
- package/package.json +2 -2
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/
|
|
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()) {
|