engine7 7.0.6 → 7.0.7

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 +6 -2
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -581,10 +581,14 @@ engine7 service \u2014 \u5F00\u673A\u81EA\u542F\u52A8\u7BA1\u7406
581
581
  if (action === "install") {
582
582
  if (process.platform === "win32") {
583
583
  const taskName = "Engine7";
584
- const cmd = `"${engine7Bin}" start --config "${path.resolve(configPath2)}"`;
584
+ const nodeExe = process.execPath;
585
+ const cliMjs = path.resolve(engine7Bin);
586
+ const tr = `"${nodeExe}" "${cliMjs}" start --config "${path.resolve(configPath2)}"`;
585
587
  try {
586
- execSync(`schtasks /create /tn "${taskName}" /tr "${cmd}" /sc onlogon /rl highest /f`, { stdio: "inherit", shell: true });
588
+ execSync(`schtasks /create /tn "${taskName}" /tr ${tr} /sc onlogon /rl highest /f`, { stdio: "inherit", shell: true });
587
589
  console.log(`\u2705 Windows \u8BA1\u5212\u4EFB\u52A1 "${taskName}" \u5DF2\u521B\u5EFA\uFF08\u5F00\u673A\u81EA\u542F\u52A8\uFF09`);
590
+ console.log(` node: ${nodeExe}`);
591
+ console.log(` cli: ${cliMjs}`);
588
592
  } catch {
589
593
  console.error("\u274C \u521B\u5EFA\u8BA1\u5212\u4EFB\u52A1\u5931\u8D25\uFF0C\u53EF\u80FD\u9700\u8981\u7BA1\u7406\u5458\u6743\u9650");
590
594
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "engine7",
3
- "version": "7.0.6",
3
+ "version": "7.0.7",
4
4
  "type": "module",
5
5
  "description": "Engine 7 — Self-hosted AI agent engine",
6
6
  "main": "dist/main.mjs",