myagent-ai 1.15.64 → 1.15.65
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/core/deps_checker.py +1 -2
- package/package.json +1 -1
- package/requirements.txt +0 -1
- package/web/api_server.py +10 -1
package/core/deps_checker.py
CHANGED
|
@@ -12,7 +12,7 @@ core/deps_checker.py - 自动依赖检测与安装
|
|
|
12
12
|
|
|
13
13
|
依赖映射:
|
|
14
14
|
核心功能: openai, aiohttp, requests
|
|
15
|
-
搜索技能:
|
|
15
|
+
搜索技能: bs4
|
|
16
16
|
系统技能: psutil
|
|
17
17
|
托盘功能: pystray, PIL
|
|
18
18
|
语音合成: edge_tts
|
|
@@ -62,7 +62,6 @@ DEPENDENCIES: List[DepInfo] = [
|
|
|
62
62
|
DepInfo("requests", "requests", "2.31.0", "core", "all"),
|
|
63
63
|
|
|
64
64
|
# ── 搜索技能 ──
|
|
65
|
-
DepInfo("duckduckgo_search", "duckduckgo-search", "6.0.0", "search", "all"),
|
|
66
65
|
DepInfo("bs4", "beautifulsoup4", "4.12.0", "search", "all"),
|
|
67
66
|
|
|
68
67
|
# ── 系统技能 ──
|
package/package.json
CHANGED
package/requirements.txt
CHANGED
package/web/api_server.py
CHANGED
|
@@ -5559,7 +5559,16 @@ class ApiServer:
|
|
|
5559
5559
|
self._runner = web.AppRunner(self.app)
|
|
5560
5560
|
await self._runner.setup()
|
|
5561
5561
|
site = web.TCPSite(self._runner, host, port)
|
|
5562
|
-
|
|
5562
|
+
try:
|
|
5563
|
+
await site.start()
|
|
5564
|
+
except OSError as e:
|
|
5565
|
+
if e.errno == 98 or "address already in use" in str(e).lower():
|
|
5566
|
+
logger.error(f"端口 {port} 已被占用!")
|
|
5567
|
+
logger.error(f" 可能是上次的 MyAgent 还在运行,请先关闭后再启动")
|
|
5568
|
+
logger.error(f" 或者使用其他端口: myagent-ai web --port 8768")
|
|
5569
|
+
logger.error(f" 查看占用端口的进程: lsof -i :{port} 或 netstat -tlnp | grep {port}")
|
|
5570
|
+
raise SystemExit(1)
|
|
5571
|
+
raise
|
|
5563
5572
|
logger.info(f"管理后台: http://{host}:{port}/ui/")
|
|
5564
5573
|
|
|
5565
5574
|
async def stop(self):
|