Initial: multi-agent XMPP communication system with dashboard

- Platform-based architecture (Windows/Linux/Mac)
- Agent instance registry (agents.yaml)
- Management dashboard with cross-platform monitoring
- xmpp_bot with HTTP bridge + health endpoints
- wechat_agent with WeChat-Hermes bridging
- Platform services: ProcessGuardian, HealthProbe, APIRouter, ChannelBridge
- Deployment: systemd (Linux) + PowerShell (Windows)
- Monitoring: SSH+ejabberdctl for cross-platform presence
This commit is contained in:
hmo
2026-06-12 21:49:05 +08:00
commit 1b2b935832
76 changed files with 15943 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
# Linux 部署步骤(给 mohe 参考)
## 1. hermes-gateway@.service
```bash
# 复制模板
sudo cp /path/to/deploy/linux/hermes-gateway@.service /etc/systemd/system/
sudo systemctl daemon-reload
# 启用默认 gateway8642端口)
sudo systemctl enable --now hermes-gateway@default
# 验证
systemctl status hermes-gateway@default
```
## 2. state.db 清理
```bash
cd ~/.hermes/profiles/main
# 方案ACLI 清理(推荐)
hermes session prune --older-than 30d
# 方案B:手动清理
sqlite3 state.db "DELETE FROM sessions WHERE time_created < strftime('%s','now','-30 days'); VACUUM;"
```
## 3. Provider key 迁移
```yaml
# config.yaml 中用环境变量替换
providers:
volcengine:
api_key: ${VOLCENGINE_KEY} # 从 .env 读取
ocg-new:
api_key: ${OCG_NEW_KEY}
ocg-old:
api_key: ${OCG_OLD_KEY}
```
```bash
# .env 文件
echo "VOLCENGINE_KEY=xxx" >> ~/.hermes/.env
echo "OCG_NEW_KEY=xxx" >> ~/.hermes/.env
echo "OCG_OLD_KEY=xxx" >> ~/.hermes/.env
```