refactor: update memory skill loader, plugin config, and add privacy docs (#4905)

This commit is contained in:
Kartik
2026-04-22 17:15:19 +05:30
committed by GitHub
parent 32b74e18b7
commit f5dc825d47
21 changed files with 1734 additions and 189 deletions
+4 -3
View File
@@ -263,10 +263,11 @@ describe("memory_search execute", () => {
scope: "session",
});
// Should call buildSearchOptions with session ID
// Should call buildSearchOptions with session ID as 4th arg (sessionKey)
expect(ctx.buildSearchOptions).toHaveBeenCalledWith(
"testuser",
undefined,
undefined,
"session-abc",
);
expect(result.details.count).toBe(1);
@@ -446,8 +447,8 @@ describe("memory_add execute", () => {
await tool.execute("call-7", { text: "new fact" });
// Search should be called for dedup before add
expect(searchMock).toHaveBeenCalledOnce();
// Mem0 backend handles dedup internally — no separate search call
expect(searchMock).not.toHaveBeenCalled();
expect(addMock).toHaveBeenCalledOnce();
});
});