myagent-ai 1.23.10 → 1.23.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myagent-ai",
3
- "version": "1.23.10",
3
+ "version": "1.23.12",
4
4
  "description": "本地桌面端执行型AI助手 - Open Interpreter 风格 | Local Desktop Execution-Oriented AI Assistant",
5
5
  "main": "main.py",
6
6
  "bin": {
package/scripts/cli.py CHANGED
@@ -204,13 +204,13 @@ async def cmd_search(args):
204
204
  """网络搜索"""
205
205
  import argparse
206
206
  p = argparse.ArgumentParser(prog="myagent-ai search", description="网络搜索 — 搜索互联网信息")
207
- p.add_argument("query", help="搜索关键词")
207
+ p.add_argument("query", nargs="+", help="搜索关键词")
208
208
  p.add_argument("-n", "--num", type=int, default=10, help="返回结果数量 (默认10, 最大20)")
209
209
  a = p.parse_args(args)
210
210
 
211
211
  from skills.search_skill import WebSearchSkill
212
212
  skill = WebSearchSkill()
213
- result = await skill.execute(query=a.query, num=a.num)
213
+ result = await skill.execute(query=" ".join(a.query), num=a.num)
214
214
  _print_result({"success": result.success, "message": result.message,
215
215
  "data": result.data, "error": result.error})
216
216
 
package/web/api_server.py CHANGED
@@ -1135,11 +1135,13 @@ try {{
1135
1135
  }} catch (localErr) {{
1136
1136
  loadError = localErr.message;
1137
1137
  console.warn('[VNC] 本地加载失败,尝试 CDN:', localErr.message);
1138
- // 本地加载失败,尝试 CDN 回退(含国内镜像)
1138
+ // 本地加载失败,尝试 CDN 回退(多源容错)
1139
1139
  const CDN_SOURCES = [
1140
1140
  'https://cdn.jsdelivr.net/npm/@novnc/novnc@1.5.0/core/rfb.js',
1141
+ 'https://fastly.jsdelivr.net/npm/@novnc/novnc@1.5.0/core/rfb.js',
1141
1142
  'https://unpkg.com/@novnc/novnc@1.5.0/core/rfb.js',
1142
1143
  'https://registry.npmmirror.com/@novnc/novnc/1.5.0/files/core/rfb.js',
1144
+ 'https://cdn.staticfile.net/novnc/novnc/1.5.0/files/core/rfb.js',
1143
1145
  ];
1144
1146
  for (const src of CDN_SOURCES) {{
1145
1147
  try {{