neuronlayer 0.2.5 → 0.2.6

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 CHANGED
@@ -39248,7 +39248,11 @@ function configureMCPClient(clientName, configPath, serverName, projectPath) {
39248
39248
  config2.mcpServers = {};
39249
39249
  }
39250
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] };
39251
+ const binName = isWindows ? "neuronlayer.cmd" : "neuronlayer";
39252
+ config2.mcpServers[serverName] = {
39253
+ command: binName,
39254
+ args: ["--project", projectPath]
39255
+ };
39252
39256
  try {
39253
39257
  writeFileSync6(configPath, JSON.stringify(config2, null, 2));
39254
39258
  return { success: true, message: `${clientName}: ${configPath}` };
@@ -39271,7 +39275,11 @@ function configureProjectMCP(configPath, projectPath) {
39271
39275
  delete config2.mcpServers["memorylayer"];
39272
39276
  const absoluteProjectPath = resolve3(projectPath);
39273
39277
  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
+ const binName = isWindows ? "neuronlayer.cmd" : "neuronlayer";
39279
+ config2.mcpServers["neuronlayer"] = {
39280
+ command: binName,
39281
+ args: ["--project", absoluteProjectPath]
39282
+ };
39275
39283
  try {
39276
39284
  writeFileSync6(configPath, JSON.stringify(config2, null, 2));
39277
39285
  return { success: true, message: `Claude Code / OpenCode: ${configPath} (project-local)` };
@@ -39294,9 +39302,11 @@ function configureOpenCode(projectPath) {
39294
39302
  }
39295
39303
  delete config2.mcp["memorylayer"];
39296
39304
  const absoluteProjectPath = resolve3(projectPath);
39305
+ const isWindows = process.platform === "win32";
39306
+ const binName = isWindows ? "neuronlayer.cmd" : "neuronlayer";
39297
39307
  config2.mcp["neuronlayer"] = {
39298
39308
  type: "local",
39299
- command: ["npx", "-y", "neuronlayer", "--project", absoluteProjectPath],
39309
+ command: [binName, "--project", absoluteProjectPath],
39300
39310
  enabled: true
39301
39311
  };
39302
39312
  try {
@@ -39585,6 +39595,10 @@ async function main() {
39585
39595
  console.error("NeuronLayer starting...");
39586
39596
  console.error(`Project: ${config2.projectPath}`);
39587
39597
  console.error(`Data directory: ${config2.dataDir}`);
39598
+ const originalConsoleLog = console.log;
39599
+ console.log = function() {
39600
+ console.error.apply(console, arguments);
39601
+ };
39588
39602
  const server = new MCPServer(config2);
39589
39603
  try {
39590
39604
  await server.start();