@prom.codes/memory-mcp 0.9.0 → 0.9.1

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.
Files changed (2) hide show
  1. package/dist/bin.js +5 -0
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -1599,6 +1599,7 @@ var SqliteMemoryBackend = class {
1599
1599
  }
1600
1600
  this.db = new Database(dbPath);
1601
1601
  this.db.pragma("journal_mode = WAL");
1602
+ this.db.pragma("synchronous = NORMAL");
1602
1603
  this.db.exec(SCHEMA);
1603
1604
  this.db.exec(FTS_SCHEMA);
1604
1605
  this.db.exec(VEC_SCHEMA);
@@ -2033,6 +2034,10 @@ ${h.record.value}`
2033
2034
  if (this.closed)
2034
2035
  return;
2035
2036
  this.closed = true;
2037
+ try {
2038
+ this.db.pragma("wal_checkpoint(TRUNCATE)");
2039
+ } catch {
2040
+ }
2036
2041
  this.db.close();
2037
2042
  }
2038
2043
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prom.codes/memory-mcp",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "prom.codes Memory — persistent, local-first agent memory as an MCP server.",
5
5
  "type": "module",
6
6
  "bin": {