hermes-agent/plugins/platforms/wecom/plugin.yaml
Teknium 5600105478 refactor(gateway): migrate slack/dingtalk/whatsapp/matrix/feishu/telegram/wecom/email/sms adapters to bundled plugins
Salvage of PR #41284 onto current main. Relocates the last 9 inline messaging
adapters (+ satellites: telegram_network, feishu_comment/_rules/meeting_invite,
wecom_crypto, wecom_callback) from gateway/platforms/ into self-contained
bundled plugins under plugins/platforms/<x>/, discovered via the platform
registry. Strips the per-platform core touchpoints from gateway/run.py,
gateway/config.py, hermes_cli/gateway.py, hermes_cli/setup.py, and
tools/send_message_tool.py.

Carries forward the migration fixes (explicit enabled:false honored,
get_connected_platforms forces discovery, plugin is_connected via
gateway.get_env_value, logs --component gateway matches plugins.platforms.*,
matrix hidden on Windows).

Additionally ports config keys main added since the PR base: the matrix
plugin's _apply_yaml_config now also covers allowed_users,
ignore_user_patterns, process_notices, and session_scope (the inline
gateway/config.py matrix block gained these in the 1340 commits the PR sat
open; they would otherwise have been silently dropped on deletion).
2026-06-20 10:26:45 -07:00

52 lines
1.8 KiB
YAML

name: wecom-platform
label: WeCom (Enterprise WeChat)
kind: platform
version: 1.0.0
description: >
WeCom / Enterprise WeChat gateway adapter for Hermes Agent. Registers two
platforms: ``wecom`` (Smart Robot over WebSocket) and ``wecom_callback``
(self-built apps over an HTTP callback endpoint with AES message crypto).
Relays messages between WeCom chats and the Hermes agent.
author: NousResearch
requires_env:
- name: WECOM_BOT_ID
description: "WeCom Smart Robot bot ID"
prompt: "WeCom bot ID"
password: false
- name: WECOM_SECRET
description: "WeCom Smart Robot secret"
prompt: "WeCom secret"
password: true
optional_env:
- name: WECOM_WEBSOCKET_URL
description: "WeCom Smart Robot WebSocket URL"
prompt: "WeCom WebSocket URL"
password: false
- name: WECOM_HOME_CHANNEL
description: "Default chat ID for cron / notification delivery"
prompt: "Home channel ID"
password: false
- name: WECOM_ALLOWED_USERS
description: "Comma-separated WeCom user IDs allowed to talk to the bot"
prompt: "Allowed users (comma-separated)"
password: false
- name: WECOM_CALLBACK_CORP_ID
description: "WeCom callback-mode corp ID (self-built apps)"
prompt: "WeCom callback corp ID"
password: false
- name: WECOM_CALLBACK_CORP_SECRET
description: "WeCom callback-mode corp secret"
prompt: "WeCom callback corp secret"
password: true
- name: WECOM_CALLBACK_AGENT_ID
description: "WeCom callback-mode agent ID"
prompt: "WeCom callback agent ID"
password: false
- name: WECOM_CALLBACK_TOKEN
description: "WeCom callback verification token"
prompt: "WeCom callback token"
password: true
- name: WECOM_CALLBACK_ENCODING_AES_KEY
description: "WeCom callback EncodingAESKey for message crypto"
prompt: "WeCom callback EncodingAESKey"
password: true