@lotargo/memory_plugin 1.1.8 → 1.1.9
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/setup.js +12 -6
- package/package.json +1 -1
package/mcp-server/setup.js
CHANGED
|
@@ -32,12 +32,18 @@ export async function runSetup() {
|
|
|
32
32
|
} catch (e) {}
|
|
33
33
|
}
|
|
34
34
|
if (!Array.isArray(config.plugin)) config.plugin = [];
|
|
35
|
-
// Clean up legacy /
|
|
36
|
-
const obsoleteNames = ["opencode-memory-plugin", "memory_plugin", "memory-plugin"];
|
|
37
|
-
config.plugin = config.plugin.filter((p) =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
// Clean up legacy / obsolete / duplicate entries of OUR plugin only
|
|
36
|
+
const obsoleteNames = ["opencode-memory-plugin", "memory_plugin", "memory-plugin", "@lotargo/memory_plugin"];
|
|
37
|
+
config.plugin = config.plugin.filter((p) => {
|
|
38
|
+
if (typeof p !== "string") return true;
|
|
39
|
+
if (obsoleteNames.includes(p)) return false;
|
|
40
|
+
const normalized = p.replace(/\\/g, "/").toLowerCase();
|
|
41
|
+
if (normalized.endsWith("/memory") || normalized.endsWith("/memory_plugin") || normalized.endsWith("/memory-plugin")) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
return true;
|
|
45
|
+
});
|
|
46
|
+
config.plugin.push("@lotargo/memory_plugin");
|
|
41
47
|
// Clean up legacy mcp-helper.js standalone file plugin if present
|
|
42
48
|
const legacyPluginFile = join(opencodeDir, "plugins", "mcp-helper.js");
|
|
43
49
|
if (existsSync(legacyPluginFile)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lotargo/memory_plugin",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "Persistent memory agent for coding AI tools — remembers user preferences and project context across sessions. Works with Antigravity, OpenCode, Claude Code, and Codex.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "opencode-plugin/index.js",
|