hermes-agent/plugins/platforms/matrix/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

41 lines
1.5 KiB
YAML

name: matrix-platform
label: Matrix
kind: platform
version: 1.0.0
description: >
Matrix gateway adapter for Hermes Agent.
Connects to a Matrix homeserver via mautrix (with optional E2EE) and relays
messages between Matrix rooms/DMs and the Hermes agent. Supports threads,
HTML/markdown rendering, native media uploads, mention gating, free-response
rooms, and per-room allowlists.
author: NousResearch
requires_env:
- name: MATRIX_HOMESERVER
description: "Matrix homeserver URL (e.g. https://matrix.org)"
prompt: "Matrix homeserver URL"
password: false
- name: MATRIX_ACCESS_TOKEN
description: "Matrix access token (or use MATRIX_PASSWORD for password login)"
prompt: "Matrix access token"
password: true
optional_env:
- name: MATRIX_PASSWORD
description: "Matrix account password (alternative to MATRIX_ACCESS_TOKEN)"
prompt: "Matrix password"
password: true
- name: MATRIX_ALLOWED_USERS
description: "Comma-separated Matrix user IDs allowed to talk to the bot"
prompt: "Allowed users (comma-separated)"
password: false
- name: MATRIX_ALLOW_ALL_USERS
description: "Allow any Matrix user to trigger the bot (dev only)"
prompt: "Allow all users? (true/false)"
password: false
- name: MATRIX_HOME_CHANNEL
description: "Default room ID for cron / notification delivery"
prompt: "Home room ID"
password: false
- name: MATRIX_HOME_CHANNEL_NAME
description: "Display name for the Matrix home room"
prompt: "Home room display name"
password: false