From 9fc6c011debe3755fb1a2c58df12f1091da9505b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=BB=E5=BD=B9?= Date: Sat, 11 Apr 2026 18:59:56 +0800 Subject: [PATCH] fix: add DMWork to PLATFORMS registry in tools_config.py When hermes-channel-dmwork adapter is installed and DMWork is configured as a platform, the gateway crashes with KeyError: 'dmwork' because the PLATFORMS dict in tools_config.py has no 'dmwork' entry. This adds the missing registration so DMWork platform toolsets resolve correctly. --- hermes_cli/tools_config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hermes_cli/tools_config.py b/hermes_cli/tools_config.py index 9a50a2c5d5f..b91c0188b48 100644 --- a/hermes_cli/tools_config.py +++ b/hermes_cli/tools_config.py @@ -136,6 +136,7 @@ def _get_plugin_toolset_keys() -> set: "api_server": {"label": "🌐 API Server", "default_toolset": "hermes-api-server"}, "mattermost": {"label": "💬 Mattermost", "default_toolset": "hermes-mattermost"}, "webhook": {"label": "🔗 Webhook", "default_toolset": "hermes-webhook"}, + "dmwork": {"label": "💬 DMWork", "default_toolset": "hermes-dmwork"}, }