neuronlayer 0.2.3 → 0.2.5
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/index.js +6 -8
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39247,10 +39247,8 @@ function configureMCPClient(clientName, configPath, serverName, projectPath) {
|
|
|
39247
39247
|
if (!config2.mcpServers) {
|
|
39248
39248
|
config2.mcpServers = {};
|
|
39249
39249
|
}
|
|
39250
|
-
|
|
39251
|
-
|
|
39252
|
-
args: ["-y", "neuronlayer", "--project", projectPath]
|
|
39253
|
-
};
|
|
39250
|
+
const isWindows = process.platform === "win32";
|
|
39251
|
+
config2.mcpServers[serverName] = isWindows ? { command: "cmd", args: ["/c", "npx", "-y", "neuronlayer", "--project", projectPath] } : { command: "npx", args: ["-y", "neuronlayer", "--project", projectPath] };
|
|
39254
39252
|
try {
|
|
39255
39253
|
writeFileSync6(configPath, JSON.stringify(config2, null, 2));
|
|
39256
39254
|
return { success: true, message: `${clientName}: ${configPath}` };
|
|
@@ -39270,11 +39268,10 @@ function configureProjectMCP(configPath, projectPath) {
|
|
|
39270
39268
|
if (!config2.mcpServers) {
|
|
39271
39269
|
config2.mcpServers = {};
|
|
39272
39270
|
}
|
|
39271
|
+
delete config2.mcpServers["memorylayer"];
|
|
39273
39272
|
const absoluteProjectPath = resolve3(projectPath);
|
|
39274
|
-
|
|
39275
|
-
|
|
39276
|
-
args: ["-y", "neuronlayer", "--project", absoluteProjectPath]
|
|
39277
|
-
};
|
|
39273
|
+
const isWindows = process.platform === "win32";
|
|
39274
|
+
config2.mcpServers["neuronlayer"] = isWindows ? { command: "cmd", args: ["/c", "npx", "-y", "neuronlayer", "--project", absoluteProjectPath] } : { command: "npx", args: ["-y", "neuronlayer", "--project", absoluteProjectPath] };
|
|
39278
39275
|
try {
|
|
39279
39276
|
writeFileSync6(configPath, JSON.stringify(config2, null, 2));
|
|
39280
39277
|
return { success: true, message: `Claude Code / OpenCode: ${configPath} (project-local)` };
|
|
@@ -39295,6 +39292,7 @@ function configureOpenCode(projectPath) {
|
|
|
39295
39292
|
if (!config2.mcp || typeof config2.mcp !== "object") {
|
|
39296
39293
|
config2.mcp = {};
|
|
39297
39294
|
}
|
|
39295
|
+
delete config2.mcp["memorylayer"];
|
|
39298
39296
|
const absoluteProjectPath = resolve3(projectPath);
|
|
39299
39297
|
config2.mcp["neuronlayer"] = {
|
|
39300
39298
|
type: "local",
|