feat: store PicoClaw memory in SQLite

Store session history, preferences, and dated records in one database per home.
Commit complete turns, checkpoint tool batches, and compact history by prefix.
Add memory search and writes, with previews for ambiguous corrections.
Review conversations in the background and support SQLite backup and restore.
This commit is contained in:
loveuer committed 2026-11-25 11:36:10 +08:00
1 parent cd4a95934a
commit b8b11d452f
112 files changed
+8117 -6310

No files matched your search

-13
View File
@@ -207,13 +207,6 @@ func TestMtimeAutoInvalidation(t *testing.T) {
contentV2: "# Updated Agent",
checkField: "Updated Agent",
},
{
name: "memory file change",
file: "memory/MEMORY.md",
contentV1: "# Memory\nUser likes Go.",
contentV2: "# Memory\nUser likes Rust.",
checkField: "User likes Rust",
},
}
for _, tt := range tests {
@@ -347,12 +340,6 @@ func TestNewFileCreationInvalidatesCache(t *testing.T) {
content: "# Soul\nBe kind and helpful.",
checkField: "Be kind and helpful",
},
{
name: "new memory file",
file: "memory/MEMORY.md",
content: "# Memory\nUser prefers dark mode.",
checkField: "User prefers dark mode",
},
}
for _, tt := range tests {