claude-mem-lite 2.83.1 → 2.83.2

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": "2.83.1",
13
+ "version": "2.83.2",
14
14
  "source": "./",
15
15
  "description": "Lightweight persistent memory system for Claude Code — FTS5 search, episode batching, error-triggered recall"
16
16
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-mem-lite",
3
- "version": "2.83.1",
3
+ "version": "2.83.2",
4
4
  "description": "Lightweight persistent memory system for Claude Code — FTS5 search, episode batching, error-triggered recall",
5
5
  "author": {
6
6
  "name": "sdsrss"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-mem-lite",
3
- "version": "2.83.1",
3
+ "version": "2.83.2",
4
4
  "description": "Lightweight persistent memory system for Claude Code",
5
5
  "type": "module",
6
6
  "packageManager": "npm@10.9.2",
@@ -9,6 +9,7 @@ import { basename, join } from 'path';
9
9
  import { homedir } from 'os';
10
10
  import { buildNotLowSignalSql } from '../lib/low-signal-patterns.mjs';
11
11
  import { recordHookError } from '../lib/hook-telemetry.mjs';
12
+ import { citeFactorClause } from '../scoring-sql.mjs';
12
13
 
13
14
  // CLAUDE_MEM_DIR matches schema.mjs / main CLI — one env var sandboxes the
14
15
  // whole system. CLAUDE_MEM_DB_PATH / CLAUDE_MEM_RUNTIME_DIR remain as
@@ -232,6 +233,11 @@ try {
232
233
  OR (o.type IN ('bugfix', 'decision') AND ${notLowSignalSql})
233
234
  )`;
234
235
  const obsLimit = isRead ? 1 : 2;
236
+ // A1.5 (v2.83.2): cite_factor as a tertiary sort key. When multiple file-
237
+ // matching lessons exist, the one with proven cite history outranks the
238
+ // merely-most-recent one. Single-match files unchanged (obsLimit=1 Read /
239
+ // 2 Edit). Composes with v2.83.0 A1 to extend the citation-decay feedback
240
+ // loop to the 85%-recall PreToolUse:Read/Edit path.
235
241
  const rows = db.prepare(`
236
242
  SELECT DISTINCT o.id, o.type, o.title, o.lesson_learned
237
243
  FROM observations o
@@ -245,6 +251,7 @@ try {
245
251
  ${typeFallback}
246
252
  ORDER BY
247
253
  CASE WHEN o.lesson_learned IS NOT NULL AND o.lesson_learned != '' THEN 0 ELSE 1 END,
254
+ ${citeFactorClause('o')} DESC,
248
255
  o.created_at_epoch DESC
249
256
  LIMIT ${obsLimit}
250
257
  `).all(project, cutoff, filePath, likePattern);