@comfanion/usethis_search 3.0.0-dev.10 → 3.0.0-dev.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfanion/usethis_search",
3
- "version": "3.0.0-dev.10",
3
+ "version": "3.0.0-dev.12",
4
4
  "description": "OpenCode plugin: semantic search with graph-based context (v3: graph relations, 1-hop context, LSP + regex analyzers)",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
@@ -327,7 +327,7 @@ Available indexes:
327
327
  if (tables.includes("chunks")) {
328
328
  const table = await db.openTable("chunks")
329
329
  try {
330
- const rows = await table.search([0]).limit(100000).execute()
330
+ const rows = await table.filter("").limit(100000).execute()
331
331
  for (const row of rows) {
332
332
  if (row.chunk_id) knownChunkIds.add(row.chunk_id)
333
333
  }
@@ -605,7 +605,7 @@ class CodebaseIndexer {
605
605
  const table = await this.db.openTable(tableName);
606
606
  let allRows;
607
607
  try {
608
- allRows = await table.search([0]).limit(100000).execute();
608
+ allRows = await table.filter("").limit(100000).execute();
609
609
  } catch (e) {
610
610
  if (DEBUG) console.log("[vectorizer] BM25 index build failed (corrupted table?):", e.message);
611
611
  return null;
@@ -848,7 +848,7 @@ class CodebaseIndexer {
848
848
  const table = await this.db.openTable(tableName);
849
849
  let rows;
850
850
  try {
851
- rows = await table.search([0]).limit(100000).execute();
851
+ rows = await table.filter("").limit(100000).execute();
852
852
  } catch (e) {
853
853
  if (DEBUG) console.log("[vectorizer] Chunk cache build failed (corrupted table?):", e.message);
854
854
  return null;
@@ -986,7 +986,7 @@ class CodebaseIndexer {
986
986
  const tables = await this.db.tableNames();
987
987
  if (tables.includes(tableName)) {
988
988
  const table = await this.db.openTable(tableName);
989
- const allRows = await table.search([0]).limit(100000).execute();
989
+ const allRows = await table.filter("").limit(100000).execute();
990
990
  const chunkData = allRows
991
991
  .filter(r => r.chunk_id && r.vector)
992
992
  .map(r => ({ chunk_id: r.chunk_id, vector: Array.from(r.vector), file: r.file }));