@lotargo/memory_plugin 1.5.1 → 1.5.2
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.
package/mcp-server/index.js
CHANGED
|
@@ -33,7 +33,7 @@ export function registerIdentityTools(server) {
|
|
|
33
33
|
if (!factText || !docId) {
|
|
34
34
|
throw new Error("factText and docId are required parameters for link action");
|
|
35
35
|
}
|
|
36
|
-
const res = linkFactToDocument({
|
|
36
|
+
const res = await linkFactToDocument({
|
|
37
37
|
factKey: key,
|
|
38
38
|
factText,
|
|
39
39
|
docId,
|
|
@@ -48,14 +48,14 @@ export function registerIdentityTools(server) {
|
|
|
48
48
|
|
|
49
49
|
if (action === "get_doc_links") {
|
|
50
50
|
if (!docId) throw new Error("docId parameter is required for get_doc_links action");
|
|
51
|
-
const links = getLinksForDoc(docId);
|
|
51
|
+
const links = await getLinksForDoc(docId);
|
|
52
52
|
return {
|
|
53
53
|
content: [{ type: "text", text: JSON.stringify(links, null, 2) }],
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
if (action === "list_links") {
|
|
58
|
-
const links = listAllLinks(key);
|
|
58
|
+
const links = await listAllLinks(key);
|
|
59
59
|
return {
|
|
60
60
|
content: [{ type: "text", text: JSON.stringify(links, null, 2) }],
|
|
61
61
|
};
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lotargo/memory_plugin",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "100% local hybrid RAG memory for AI coding agents (OpenCode, Claude Code, Codex, Antigravity). MCP server + plugin: persistent user facts, document ingestion, vector + SQLite FTS5 retrieval across sessions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "opencode-plugin/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"preinstall": "node mcp-server/preinstall.js || true",
|
|
9
|
-
"test": "node
|
|
9
|
+
"test": "node tests/run_all.js",
|
|
10
10
|
"benchmark": "node mcp-server/benchmarks/run_benchmarks.js"
|
|
11
11
|
},
|
|
12
12
|
"bin": {
|