opencode-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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/dist/cli.cjs +9 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +9 -0
- package/dist/cli.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.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
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()) {
|