remem-mcp 0.6.4 → 0.6.5

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/dist/index.js CHANGED
@@ -14387,7 +14387,10 @@ ${sorted.length} unique tag(s).`);
14387
14387
  return;
14388
14388
  }
14389
14389
  const db = openDbWithSchema(defaultDbPath3());
14390
- const syms = searchSymbols(db, query, { teamId, limit, repoPath });
14390
+ let syms = searchSymbols(db, query, { teamId, limit, repoPath });
14391
+ if (syms.length === 0) {
14392
+ syms = searchSymbols(db, query, { teamId, limit });
14393
+ }
14391
14394
  if (syms.length === 0) {
14392
14395
  console.log("No symbols found.");
14393
14396
  db.close();
@@ -14474,7 +14477,10 @@ ${sorted.length} unique tag(s).`);
14474
14477
  return;
14475
14478
  }
14476
14479
  const db = openDbWithSchema(defaultDbPath3());
14477
- const syms = listSymbols(db, filePath, { repoPath });
14480
+ let syms = listSymbols(db, filePath, { repoPath });
14481
+ if (syms.length === 0) {
14482
+ syms = listSymbols(db, filePath, {});
14483
+ }
14478
14484
  if (syms.length === 0) {
14479
14485
  console.log("No symbols found.");
14480
14486
  db.close();