claude-mem-lite 3.27.0 → 3.28.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.
@@ -10,7 +10,7 @@
10
10
  "plugins": [
11
11
  {
12
12
  "name": "claude-mem-lite",
13
- "version": "3.27.0",
13
+ "version": "3.28.0",
14
14
  "source": "./",
15
15
  "description": "Persistent long-term memory for Claude Code via MCP — captures coding decisions, bugfixes, and context across sessions. Hybrid FTS5 + TF-IDF search with episode batching. Single SQLite DB, no external services. A lighter, lower-cost alternative to claude-mem (episode batching + a smaller model; cost savings are an internal estimate, not a measured benchmark)."
16
16
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-mem-lite",
3
- "version": "3.27.0",
3
+ "version": "3.28.0",
4
4
  "description": "Persistent long-term memory for Claude Code via MCP — captures coding decisions, bugfixes, and context across sessions. Hybrid FTS5 + TF-IDF search with episode batching. Single SQLite DB, no external services. A lighter, lower-cost alternative to claude-mem (episode batching + a smaller model; cost savings are an internal estimate, not a measured benchmark).",
5
5
  "author": {
6
6
  "name": "sdsrss"
@@ -441,9 +441,13 @@ export async function coreRunSearchPipeline(ctx, opts) {
441
441
  const hasObs = results.some((r) => r.source === 'obs');
442
442
  const rerankGate = rerankPolicy === 'mcp' ? ((ftsQuery || isDeep) && hasObs) : hasObs;
443
443
  if (rerankGate) {
444
- const obsResults = results.filter((r) => r.source === 'obs');
445
444
  const doReRank = rerankPolicy === 'mcp' ? (ftsQuery && !deepReranked) : !deepReranked;
446
- if (doReRank) reRankWithContext(db, obsResults, rerankProject);
445
+ if (doReRank) {
446
+ // obsResults is only consumed by reRankWithContext — build it inside the gate so
447
+ // the no-rerank path (deepReranked / MCP isDeep+!ftsQuery) skips the wasted filter.
448
+ const obsResults = results.filter((r) => r.source === 'obs');
449
+ reRankWithContext(db, obsResults, rerankProject);
450
+ }
447
451
  // CLI single-source path must also re-sort when a context re-rank actually ran,
448
452
  // else reRankWithContext's score boost mutates scores but never reorders output
449
453
  // (audit #9). MCP branch unchanged. doReRank already implies a rerank happened.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-mem-lite",
3
- "version": "3.27.0",
3
+ "version": "3.28.0",
4
4
  "description": "Persistent long-term memory for Claude Code via MCP — captures coding decisions, bugfixes, and context across sessions. Hybrid FTS5 + TF-IDF search with episode batching. Single SQLite DB, no external services. A lighter, lower-cost alternative to claude-mem (episode batching + a smaller model; cost savings are an internal estimate, not a measured benchmark).",
5
5
  "type": "module",
6
6
  "packageManager": "npm@10.9.2",