claude-mem-lite 6.30.2 → 6.30.3

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.
@@ -9,7 +9,7 @@
9
9
  "plugins": [
10
10
  {
11
11
  "name": "claude-mem-lite",
12
- "version": "6.30.2",
12
+ "version": "6.30.3",
13
13
  "source": "./",
14
14
  "homepage": "https://github.com/sdsrss/claude-mem-lite",
15
15
  "description": "Persistent long-term memory for Claude Code via MCP — captures coding decisions, bugfixes, and context across sessions. FTS5 BM25 keyword 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)."
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-mem-lite",
3
- "version": "6.30.2",
3
+ "version": "6.30.3",
4
4
  "description": "Persistent long-term memory for Claude Code via MCP — captures coding decisions, bugfixes, and context across sessions. FTS5 BM25 keyword 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"
package/install.mjs CHANGED
@@ -478,16 +478,19 @@ export async function dbCheckRemedy(dbPath, err) {
478
478
  const remedy = dbUnusableRemedy(dbPath, err);
479
479
  if (remedy.kind === 'unknown') return remedy.note;
480
480
  if (remedy.kind === 'schema') return `SQLite cannot read the database's schema. ${remedy.note}`;
481
+ // Both commands start by deleting the -wal and -shm and then replace or move the database file,
482
+ // under any session still holding the store (D#534). The SessionStart notice says the same before
483
+ // its copy of the command.
481
484
  if (remedy.kind === 'set-aside') {
482
485
  return (
483
- `No backup snapshot exists beside the database. Set the broken file aside so a fresh ` +
484
- `store is created on the next session: ${remedy.command} ` +
486
+ `No backup snapshot exists beside the database. Once every Claude Code session is closed, ` +
487
+ `set the broken file aside so a fresh store is created on the next session: ${remedy.command} ` +
485
488
  `— memories in that file are not recoverable without a backup.`
486
489
  );
487
490
  }
488
491
  return (
489
- `Restore the newest of ${remedy.snapshotCount} backup snapshot(s): ${remedy.command} ` +
490
- `— move the broken file aside first if you want to keep it for inspection.`
492
+ `Restore the newest of ${remedy.snapshotCount} backup snapshot(s) once every Claude Code session ` +
493
+ `is closed: ${remedy.command} — move the broken file aside first if you want to keep it for inspection.`
491
494
  );
492
495
  }
493
496
 
@@ -229,7 +229,12 @@ export function formatDbUnusableNotice({ dbPath, remedy }) {
229
229
  ? ` ${dbPath} exists but SQLite cannot read its schema.`
230
230
  : ` ${dbPath} exists but SQLite does not recognise it as a database.`,
231
231
  ];
232
- if (remedy.command) lines.push(` ${remedy.command}`);
232
+ if (remedy.command) {
233
+ // Before the command: it deletes the -wal and -shm, then replaces or moves the database file,
234
+ // under any session still holding the store (D#534). doctor says the same.
235
+ lines.push(' Once every Claude Code session is closed, this one included, run:');
236
+ lines.push(` ${remedy.command}`);
237
+ }
233
238
  if (remedy.note) lines.push(` ${remedy.note}`);
234
239
  lines.push(` Saves and recall are disabled. \`${CLI_INVOKE} doctor\` re-checks.`);
235
240
  return lines.join('\n');
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "claude-mem-lite",
3
- "version": "6.30.2",
3
+ "version": "6.30.3",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "claude-mem-lite",
9
- "version": "6.30.2",
9
+ "version": "6.30.3",
10
10
  "os": [
11
11
  "darwin",
12
12
  "linux",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-mem-lite",
3
- "version": "6.30.2",
3
+ "version": "6.30.3",
4
4
  "description": "Persistent long-term memory for Claude Code via MCP — captures coding decisions, bugfixes, and context across sessions. FTS5 BM25 keyword 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",