词元之母TOK.MOM - 平台充值汇率 1:1 即 1 人民币充值到账 1 美元,支持一个 Key 调用近 600+ 海内外模型,限时特价模型低至 1 折,欢迎上岸!
main 拉取最新代码、更新依赖项,并提示你配置自上次更新以来新增的选项。main 上的每次提交。检查更新并升级:hermes update 会自动检测新的配置选项并提示你添加。如果跳过了该提示,可手动运行 hermes config check 查看缺失的选项,再运行 hermes config migrate 以交互方式添加。hermes update 时,将依次执行以下步骤:~/.hermes/pairing/、飞书评论规则及其他运行时修改的状态文件)。可通过 快照与回滚 中描述的快照恢复流程进行恢复,或从 Hermes 写入 ~/.hermes/ 目录旁的最新快速快照 zip 文件中提取。main 分支拉取最新代码并更新子模块uv pip install -e ".[all]" 以获取新增或变更的依赖项hermes update --checkhermes update --check — 对于 Git 安装方式,它会获取并与 origin/main 比较提交;对于 pip 安装方式,它会查询 PyPI 上的最新版本。不修改任何文件,不重启 gateway。适合在以"是否有更新"为条件的脚本和 cron 任务中使用。--backupHERMES_HOME(配置、认证、会话、技能、配对数据)进行完整备份:--backup 在早期版本中是始终开启的行为,但在大型 home 目录上会给每次更新增加数分钟时间,因此现已改为按需启用。上述轻量级配对数据快照仍会无条件执行。hermes.exe 正在运行hermes update 检测到另一个 hermes.exe 进程持有 venv 入口点可执行文件的句柄,它将拒绝运行 — 最常见的情况是 Hermes Desktop 应用启动的后端进程、另一个终端中打开的 hermes REPL,或正在运行的 gateway:$ hermes update
✗ Another hermes.exe is running:
PID 12345 hermes.exe
Updating now would fail to overwrite ...\venv\Scripts\hermes.exe because
Windows blocks REPLACE on a running executable.
Close Hermes Desktop, exit any open `hermes` REPLs, and
stop the gateway (`hermes gateway stop`) before retrying.
Override with `hermes update --force` if you've already
confirmed those processes will not write to the venv.--force 跳过检查。此时更新程序仍会以指数退避方式重试 .exe 重命名操作,对于顽固的文件锁,会通过 MoveFileEx(MOVEFILE_DELAY_UNTIL_REBOOT) 将替换操作安排在下次重启时执行,以确保更新能够完成。$ hermes update
Updating Hermes Agent...
📥 Pulling latest code...
Already up to date. (or: Updating abc1234..def5678)
📦 Updating dependencies...
✅ Dependencies updated
🔍 Checking for new config options...
✅ Config is up to date (or: Found 2 new options — running migration...)
🔄 Restarting gateways...
✅ Gateway restarted
✅ Hermes Agent updated successfully!hermes update 处理主要的更新流程,但快速验证可确认一切正常落地:git status --short — 若工作树出现意外的脏状态,请在继续前检查hermes doctor — 检查配置、依赖项和服务健康状态hermes --version — 确认版本已按预期更新hermes gateway statusdoctor 报告 npm audit 问题:在标记的目录中运行 npm audit fixhermes update 后 git status --short 显示意外变更,请在继续前停下来检查。这通常意味着本地修改被重新应用到了更新后的代码之上,或依赖步骤刷新了锁文件。hermes update 针对意外终端断开进行了保护:SIGHUP,因此关闭 SSH 会话或终端窗口不再会在安装中途终止它。pip 和 git 子进程继承此保护,因此 Python 环境不会因连接断开而处于半安装状态。~/.hermes/logs/update.log。如果终端消失,重新连接后检查日志,确认更新是否完成以及 gateway 重启是否成功:Ctrl-C(SIGINT)和系统关机(SIGTERM)仍会被响应 — 这些是主动取消操作,而非意外中断。hermes update 包裹在 screen 或 tmux 中来应对终端断开。/updatehermes config check,如果遇到错误,请从 config.yaml 中删除无法识别的选项。~/.hermes/)以便将来重新安装。