myagent-ai 1.15.86 → 1.15.87

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/package.json +1 -1
  2. package/start.js +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myagent-ai",
3
- "version": "1.15.86",
3
+ "version": "1.15.87",
4
4
  "description": "本地桌面端执行型AI助手 - Open Interpreter 风格 | Local Desktop Execution-Oriented AI Assistant",
5
5
  "main": "main.py",
6
6
  "bin": {
package/start.js CHANGED
@@ -420,10 +420,11 @@ function cmdUpdate(pkgDir) {
420
420
  if (fs.existsSync(newStartJs)) {
421
421
  console.log(` 已下载 v${newVer},正在切换到新版本...`);
422
422
  console.log("");
423
- const { execSync } = require("child_process");
424
- execSync(process.execPath + ' "' + newStartJs + '" update', {
425
- stdio: "inherit", windowsHide: true, timeout: 30000,
423
+ const { spawn } = require("child_process");
424
+ const webChild = spawn(process.execPath, [newStartJs, "web"], {
425
+ stdio: "inherit", windowsHide: true, detached: !IS_WIN,
426
426
  });
427
+ webChild.unref();
427
428
  return;
428
429
  }
429
430
  }