fix(memory): erase forgotten memories from mem0's history database

mem0's delete kept the deleted text in memory_history, and fact extraction
keeps the last messages of each scope in the same file. forget now purges
the memory's history rows, and forgetting a whole scope also drops the
conversation messages mem0 kept for it.
This commit is contained in:
shumeiko.it
2026-10-24 12:47:46 +02:00
parent 6688c1f027
commit 4a1c4c4c8e
4 changed files with 96 additions and 2 deletions

4
package-lock.json generated
View File

@@ -25182,6 +25182,10 @@
"dependencies": {
"@waggle/memory-contract": "*",
"mem0ai": "3.3.1"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.13",
"better-sqlite3": "^12.6.2"
}
},
"packages/memory-mem0/node_modules/@anthropic-ai/sdk": {