engine7 7.1.4 → 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.
Files changed (2) hide show
  1. package/dist/cli.mjs +2 -1
  2. package/package.json +1 -1
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("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "engine7",
3
- "version": "7.1.4",
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",