memorix 0.9.31 → 0.9.32

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/dist/cli/index.js CHANGED
@@ -38699,8 +38699,11 @@ var init_antigravity2 = __esm({
38699
38699
  }
38700
38700
  return JSON.stringify({ mcpServers }, null, 2);
38701
38701
  }
38702
- getConfigPath(_projectRoot) {
38703
- return join6(homedir6(), ".gemini", "antigravity", "mcp_config.json");
38702
+ getConfigPath(projectRoot) {
38703
+ if (projectRoot) {
38704
+ return join6(projectRoot, ".gemini", "settings.json");
38705
+ }
38706
+ return join6(homedir6(), ".gemini", "settings.json");
38704
38707
  }
38705
38708
  };
38706
38709
  }
@@ -39104,8 +39107,20 @@ var init_engine2 = __esm({
39104
39107
  result.mcpServers.scanned = Array.from(allServers.values());
39105
39108
  if (result.mcpServers.scanned.length > 0) {
39106
39109
  const adapter = this.adapters.get(target);
39107
- const configContent = adapter.generate(result.mcpServers.scanned);
39108
39110
  const configPath = adapter.getConfigPath(this.projectRoot);
39111
+ let configContent;
39112
+ if (target === "antigravity" && existsSync3(configPath)) {
39113
+ try {
39114
+ const existing = JSON.parse(readFileSync2(configPath, "utf-8"));
39115
+ const generated = JSON.parse(adapter.generate(result.mcpServers.scanned));
39116
+ existing.mcpServers = { ...existing.mcpServers ?? {}, ...generated.mcpServers };
39117
+ configContent = JSON.stringify(existing, null, 2);
39118
+ } catch {
39119
+ configContent = adapter.generate(result.mcpServers.scanned);
39120
+ }
39121
+ } else {
39122
+ configContent = adapter.generate(result.mcpServers.scanned);
39123
+ }
39109
39124
  result.mcpServers.generated.push({
39110
39125
  filePath: configPath,
39111
39126
  content: sanitize(configContent)