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.
@@ -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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-rag-plugin",
3
- "version": "2.6.0",
3
+ "version": "2.8.0",
4
4
  "description": "OpenCode plugin for local-first RAG-based semantic code search",
5
5
  "type": "module",
6
6
  "main": "./dist/plugin-entry.js",