Skip to content

HarnessMate 插件 v0.5.4

Choose a tag to compare

@liaosiliangCodeLife liaosiliangCodeLife released this 08 Oct 03:00
· 73 commits to main since this release

修复内容

修掉 v0.5.3 在新版 Hermes 上的「插件加载超时」问题。

_patch_harness_mate_thread_metadata() 里原实现直接 from gateway.run import GatewayRunner,
在部分 Hermes 进程(gateway 启动/重载窗口)会触发 bootstrap relaunch 并长时间阻塞插件加载线程 ——
现象是日志出现 load timed out ... import + register() never returned,平台注册被丢弃
(Channels 页拿不到 required_env 输入框)。

现改为仅在宿主进程已加载 gateway.run 时打补丁:gateway 进程本身必然已加载 gateway.run,
补丁照常生效;其他场景直接跳过,不再阻塞注册。顺带移除已无用的 except SystemExit 分支。

变更文件:plugin/adapter.py、plugin/plugin.yaml(0.5.3 → 0.5.4)

安装 / 升级

新装(推荐,一条命令)

hermes plugins install liaosiliangCodeLife/harness-mate-plat/plugin --yes-deps --enable

用本包离线安装

unzip HarnessMate-plugin-v0.5.4.zip -d ~/.hermes/plugins/
hermes plugins enable HarnessMate

从旧版升级

hermes plugins update HarnessMate     # 或解开本包覆盖 ~/.hermes/plugins/HarnessMate/ 后重启 gateway

装完记得:依赖(websockets / PyJWT)、bot_id+bot_key、以及 adapter.py 第 62 行改成你自己的网关地址 —— 详见包内 INSTALL.md。

  • 文件:HarnessMate-plugin-v0.5.4.zip
  • 大小:35850 字节
  • SHA256:48a82b87d7e2c912323268da08b357b4ac1fc0c9049f1f4ce9f58c882c21e2de