Files
hermes-sync/memories/MEMORY.md
2026-04-14 14:00:35 +09:00

58 lines
2.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
飞书 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
- 问题: 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动态获取不硬编码