myagent-ai 1.26.2 → 1.26.3

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 +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myagent-ai",
3
- "version": "1.26.2",
3
+ "version": "1.26.3",
4
4
  "description": "本地桌面端执行型AI助手 - Open Interpreter 风格 | Local Desktop Execution-Oriented AI Assistant",
5
5
  "main": "main.py",
6
6
  "bin": {
package/start.js CHANGED
@@ -855,8 +855,9 @@ function main() {
855
855
  }
856
856
 
857
857
  // [v1.26.1] 未知命令 → 透传 shell 执行(避免 myagent-ai ls -la 被误传给 main.py)
858
- // 仅当无参数或以 -- 开头时才启动 myagent 服务
859
- if (cmd && !cmd.startsWith("-")) {
858
+ // 仅当无参数、以 -- 开头、或服务模式(web/cli/tray/server/setup)时才启动 myagent 服务
859
+ const SERVICE_MODES = ["web", "cli", "tray", "server", "setup"];
860
+ if (cmd && !cmd.startsWith("-") && !SERVICE_MODES.includes(cmd)) {
860
861
  const cmdStr = args.join(" ");
861
862
  const result = spawnSync(
862
863
  process.platform === "win32" ? "cmd.exe" : "bash",