opencode-rag-plugin 2.6.0 → 2.8.0
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/ReadMe.md +7 -4
- package/dist/cli/commands/eval-tuner.d.ts +15 -0
- package/dist/cli/commands/eval-tuner.js +285 -0
- package/dist/cli/commands/index.d.ts +1 -0
- package/dist/cli/commands/index.js +1 -0
- package/dist/cli/commands/status.js +20 -0
- package/dist/cli/index.js +2 -1
- package/dist/core/config.d.ts +14 -2
- package/dist/core/config.js +6 -1
- package/dist/core/interfaces.d.ts +8 -0
- package/dist/eval/tuner.d.ts +219 -0
- package/dist/eval/tuner.js +293 -0
- package/dist/indexer/keyword-rehydration.d.ts +48 -0
- package/dist/indexer/keyword-rehydration.js +113 -0
- package/dist/indexer/pipeline.js +27 -0
- package/dist/plugin.js +90 -3
- package/dist/quirks/quirk-store.d.ts +14 -1
- package/dist/quirks/quirk-store.js +27 -0
- package/dist/quirks/tool-error-create.d.ts +79 -7
- package/dist/quirks/tool-error-create.js +135 -16
- package/dist/quirks/types.d.ts +8 -0
- package/dist/quirks/types.js +8 -1
- package/dist/retriever/keyword-index.d.ts +10 -0
- package/dist/retriever/keyword-index.js +12 -0
- package/package.json +1 -1
|
@@ -276,6 +276,18 @@ export class KeywordIndex {
|
|
|
276
276
|
hasChunk(id) {
|
|
277
277
|
return this.chunkMap.has(id);
|
|
278
278
|
}
|
|
279
|
+
/**
|
|
280
|
+
* Normalized file paths that currently have at least one indexed chunk.
|
|
281
|
+
*
|
|
282
|
+
* The keyword index and the vector store are two independent stores of the
|
|
283
|
+
* same corpus, and nothing keeps them in sync by construction: an
|
|
284
|
+
* incremental index pass only calls {@link addChunks} for the files it
|
|
285
|
+
* reprocessed, so a once-partial index stays partial forever. Comparing
|
|
286
|
+
* this list with the store's file list is how that drift is detected.
|
|
287
|
+
*/
|
|
288
|
+
getIndexedFilePaths() {
|
|
289
|
+
return [...this.fileToIds.keys()];
|
|
290
|
+
}
|
|
279
291
|
async save(storePath) {
|
|
280
292
|
const effectiveStorePath = storePath ?? this.storePath;
|
|
281
293
|
if (!effectiveStorePath)
|