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