2026-04-14 07:22:10 +09:00
|
|
|
|
飞书 MCP 应用凭证(MoMix):
|
|
|
|
|
|
- App ID: cli_a9ba63e5efb81cee
|
|
|
|
|
|
- App Secret: ndz2SWe7njl6x9fsqlheAYFHgDV4BpWM
|
|
|
|
|
|
注意:这是 Feishu-MCP (cso1z/Feishu-MCP) 专用的应用凭证,不是对话 Bot 的凭证
|
|
|
|
|
|
§
|
|
|
|
|
|
Gitea 配置:
|
|
|
|
|
|
- URL: https://d.momix.cc
|
|
|
|
|
|
- 用户名: Mixer
|
|
|
|
|
|
- Email: moremix201@gmail.com
|
|
|
|
|
|
- API Token: 2815e3176978470a78a96dcb33af7d4b106ed03e
|
|
|
|
|
|
- 当前只有1个仓库: Mixer/LVDK-AI-WorkSpace
|
|
|
|
|
|
- 用户需要学习如何用git push上传项目到Gitea
|
|
|
|
|
|
§
|
|
|
|
|
|
Gitea 配置信息:
|
|
|
|
|
|
- URL: https://d.momix.cc
|
|
|
|
|
|
- 用户名: Mixer
|
|
|
|
|
|
- Email: moremix201@gmail.com
|
|
|
|
|
|
- API Token: 2815e3176978470a78a96dcb33af7d4b106ed03e
|
|
|
|
|
|
- 已有仓库: Mixer/LVDK-AI-WorkSpace
|
|
|
|
|
|
- 用户需要学习如何用git push上传项目到Gitea
|
|
|
|
|
|
§
|
|
|
|
|
|
RackNerd VPS (New Year Special):
|
|
|
|
|
|
- Label: racknerd-7f47f56
|
|
|
|
|
|
- IP: 107.172.100.22
|
|
|
|
|
|
- SSH Port: 22
|
|
|
|
|
|
- Username: root
|
|
|
|
|
|
- Root Password: Zg58Mb73C4ueHFYhq3
|
|
|
|
|
|
- 已安装 hermes agent
|
2026-04-14 14:00:35 +09:00
|
|
|
|
- 问题: Telegram 对话失联无响应
|
|
|
|
|
|
§
|
|
|
|
|
|
## Hermes Sync 架构 (2026-04-14 建成)
|
|
|
|
|
|
|
|
|
|
|
|
Gitea: https://d.momix.cc/Mixer/hermes-sync
|
|
|
|
|
|
|
|
|
|
|
|
三台机器:
|
|
|
|
|
|
- 本地 Linux (10-40-29-186): ~/.hermes-sync (symlink to ~/hermes-sync-tmp), ~/.hermes
|
|
|
|
|
|
- VPS RackNerd (soe219028): ~/.hermes-sync, ~/.hermes
|
|
|
|
|
|
- MacOS (MixdeMac-mini.local): /Users/moore/.hermes-sync, /Users/moore/.hermes
|
|
|
|
|
|
|
|
|
|
|
|
同步内容:memories/MEMORY.md, skills/, state.db(每机器一个 state_<hostname>.db)
|
|
|
|
|
|
不同步:config.yaml, .env, auth.json 等配置
|
|
|
|
|
|
|
|
|
|
|
|
sync.sh 已稳定:217行,无checkpoint,直接copy到temp dir再处理,避免SQLite WAL锁冲突
|
|
|
|
|
|
cron: 每2小时,VPS和MacOS用绝对路径 /Users/moore/.hermes-sync/sync.sh
|
|
|
|
|
|
本地: 软链 ~/hermes-sync-tmp -> ~/hermes-sync
|
|
|
|
|
|
|
|
|
|
|
|
MacOS hostname: MixdeMac-mini.local
|
|
|
|
|
|
|
|
|
|
|
|
## macOS Hermes 路径
|
|
|
|
|
|
- 数据目录: /Users/moore/.hermes/state.db
|
|
|
|
|
|
- Hermes CLI: /Users/moore/.local/bin/hermes
|
|
|
|
|
|
- 无systemd,用cron管理后台进程
|
|
|
|
|
|
|
|
|
|
|
|
## SQLite 多机同步关键经验
|
|
|
|
|
|
- WAL模式的db不能直接copy,会损坏。用temp dir中转。
|
|
|
|
|
|
- 不能对WAL模式的db做checkpoint(会造成malformed image),直接shutil.copy2即可,WAL会在下次连接时自动attach。
|
|
|
|
|
|
- merge时sessions用INSERT OR REPLACE(去重),messages用INSERT OR IGNORE(避免重复插入)
|
|
|
|
|
|
- 列数用PRAGMA table_info动态获取,不硬编码
|