engine7 7.1.3 → 7.1.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/cli.mjs CHANGED
@@ -579,7 +579,8 @@ engine7 start \u2014 \u542F\u52A8 Engine
579
579
  process.exit(1);
580
580
  }
581
581
  const cliPath = path.resolve(process.argv[1]);
582
- const enginePath = path.join(path.dirname(cliPath), "main.mjs");
582
+ const distDir = path.dirname(cliPath);
583
+ const enginePath = fs.existsSync(path.join(distDir, "main.mjs")) ? path.join(distDir, "main.mjs") : path.join(path.dirname(path.dirname(cliPath)), "lib", "node_modules", "engine7", "dist", "main.mjs");
583
584
  console.log(` config: ${configPath2}`);
584
585
  console.log(` engine: ${enginePath}`);
585
586
  console.log("");
@@ -29633,6 +29633,9 @@ function isNodeEngineAlive(pid) {
29633
29633
  stdio: ["ignore", "pipe", "ignore"]
29634
29634
  });
29635
29635
  return /node\.exe/i.test(out);
29636
+ } else if (process.platform === "darwin") {
29637
+ const out = execSync(`ps -p ${pid} -o comm=`, { encoding: "utf-8", timeout: 3e3, stdio: ["ignore", "pipe", "ignore"] });
29638
+ return /node/.test(out);
29636
29639
  }
29637
29640
  return /node/.test(fs.readFileSync(`/proc/${pid}/cmdline`, "utf-8"));
29638
29641
  } catch {
package/dist/main.mjs CHANGED
@@ -29991,6 +29991,9 @@ function isNodeEngineAlive(pid) {
29991
29991
  stdio: ["ignore", "pipe", "ignore"]
29992
29992
  });
29993
29993
  return /node\.exe/i.test(out);
29994
+ } else if (process.platform === "darwin") {
29995
+ const out = execSync(`ps -p ${pid} -o comm=`, { encoding: "utf-8", timeout: 3e3, stdio: ["ignore", "pipe", "ignore"] });
29996
+ return /node/.test(out);
29994
29997
  }
29995
29998
  return /node/.test(fs2.readFileSync(`/proc/${pid}/cmdline`, "utf-8"));
29996
29999
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "engine7",
3
- "version": "7.1.3",
3
+ "version": "7.1.5",
4
4
  "type": "module",
5
5
  "description": "Engine 7 — Self-hosted AI agent engine",
6
6
  "main": "dist/main.mjs",