@lotargo/memory_plugin 1.2.2 → 1.2.3
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 +8 -4
- package/package.json +1 -1
package/mcp-server/setup.js
CHANGED
|
@@ -115,9 +115,12 @@ export async function runSetup() {
|
|
|
115
115
|
};
|
|
116
116
|
await writeFile(geminiConfigFile, JSON.stringify(config, null, 2));
|
|
117
117
|
|
|
118
|
-
// Local workspace config (.agents/mcp_config.json) if
|
|
118
|
+
// Local workspace config (.agents/mcp_config.json) only if .agents exists or --local flag is set
|
|
119
119
|
const cwd = process.cwd();
|
|
120
|
-
|
|
120
|
+
const hasAgentsDir = existsSync(join(cwd, ".agents"));
|
|
121
|
+
const isLocalRequested = args.includes("--local");
|
|
122
|
+
|
|
123
|
+
if (hasAgentsDir || isLocalRequested) {
|
|
121
124
|
const localAgentsDir = join(cwd, ".agents");
|
|
122
125
|
await mkdir(localAgentsDir, { recursive: true });
|
|
123
126
|
const localMcpFile = join(localAgentsDir, "mcp_config.json");
|
|
@@ -133,9 +136,10 @@ export async function runSetup() {
|
|
|
133
136
|
args: ["-y", "@lotargo/memory_plugin"],
|
|
134
137
|
};
|
|
135
138
|
await writeFile(localMcpFile, JSON.stringify(localConfig, null, 2));
|
|
139
|
+
console.log(" [OK] Antigravity: configured MCP server in ~/.gemini/config/mcp_config.json and .agents/mcp_config.json");
|
|
140
|
+
} else {
|
|
141
|
+
console.log(" [OK] Antigravity: configured MCP server in ~/.gemini/config/mcp_config.json");
|
|
136
142
|
}
|
|
137
|
-
|
|
138
|
-
console.log(" [OK] Antigravity: configured MCP server in ~/.gemini/config/mcp_config.json and .agents/mcp_config.json");
|
|
139
143
|
configuredCount++;
|
|
140
144
|
} catch (err) {
|
|
141
145
|
console.log(" [SKIP] Antigravity setup skipped:", err.message);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lotargo/memory_plugin",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
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",
|