myagent-ai 1.16.4 → 1.16.6

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/memory/manager.py CHANGED
@@ -536,7 +536,7 @@ class MemoryManager:
536
536
 
537
537
  where = " AND ".join(conditions)
538
538
  # 取最近的记忆候选进行比对
539
- sql = f"SELECT id, content, summary, created_at FROM memories WHERE {where} ORDER BY created_at DESC LIMIT 50"
539
+ sql = f"SELECT * FROM memories WHERE {where} ORDER BY created_at DESC LIMIT 50"
540
540
  rows = conn.execute(sql, params).fetchall()
541
541
 
542
542
  if not rows:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myagent-ai",
3
- "version": "1.16.4",
3
+ "version": "1.16.6",
4
4
  "description": "本地桌面端执行型AI助手 - Open Interpreter 风格 | Local Desktop Execution-Oriented AI Assistant",
5
5
  "main": "main.py",
6
6
  "bin": {
@@ -124,16 +124,18 @@ class MCPClient:
124
124
  if self._slim:
125
125
  args.append("--slim")
126
126
 
127
- # [v1.16.2] 自动检测可用的浏览器,支持 chromium 等替代方案
127
+ # [v1.16.4] 自动检测可用的浏览器,通过 --executablePath 传递给 MCP
128
128
  browser_path = self._detect_browser()
129
129
  env = {**os.environ, "NO_COLOR": "1"}
130
130
  if browser_path:
131
- # 优先使用 CHROME_PATH 环境变量传递给 chrome-devtools-mcp
132
- env["CHROME_PATH"] = browser_path
131
+ args.extend(["--executablePath", browser_path])
133
132
  logger.info(f"使用浏览器: {browser_path}")
134
133
  else:
135
134
  logger.warning("未找到 Chrome/Chromium 浏览器,尝试使用默认路径")
136
135
 
136
+ # 容器/Termux 环境需要 --no-sandbox
137
+ args.extend(["--chromeArg", "--no-sandbox", "--chromeArg", "--disable-setuid-sandbox"])
138
+
137
139
  logger.info(f"启动 chrome-devtools-mcp: {' '.join(args)}")
138
140
 
139
141
  try: