natureco-cli 1.0.32 → 1.0.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natureco-cli",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "NatureCo AI Bot Terminal Interface",
5
5
  "main": "bin/natureco.js",
6
6
  "bin": {
@@ -100,13 +100,14 @@ async function startGateway() {
100
100
  }
101
101
 
102
102
  // Open log file for stdio redirection
103
- const logFile = fs.openSync(LOG_FILE, 'a');
103
+ const logFd = fs.openSync(LOG_FILE, 'a');
104
104
 
105
105
  // Start as detached background process
106
- const child = spawn(process.execPath, [__filename, '--gateway-worker'], {
106
+ const child = spawn(process.execPath, [require.resolve('./gateway-server'), '--gateway-worker'], {
107
107
  detached: true,
108
- stdio: ['ignore', logFile, logFile],
108
+ stdio: ['ignore', logFd, logFd],
109
109
  windowsHide: true,
110
+ cwd: os.homedir(),
110
111
  });
111
112
 
112
113
  child.unref();