mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-21 10:22:18 +00:00
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).
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
name: email-platform
|
|
label: Email
|
|
kind: platform
|
|
version: 1.0.0
|
|
description: >
|
|
Email gateway adapter for Hermes Agent. Polls an IMAP mailbox for inbound
|
|
messages and replies over SMTP, relaying email threads to and from the
|
|
Hermes agent.
|
|
author: NousResearch
|
|
requires_env:
|
|
- name: EMAIL_ADDRESS
|
|
description: "Email account address"
|
|
prompt: "Email address"
|
|
password: false
|
|
- name: EMAIL_PASSWORD
|
|
description: "Email account password / app password"
|
|
prompt: "Email password"
|
|
password: true
|
|
- name: EMAIL_SMTP_HOST
|
|
description: "SMTP host (e.g. smtp.gmail.com)"
|
|
prompt: "SMTP host"
|
|
password: false
|
|
optional_env:
|
|
- name: EMAIL_SMTP_PORT
|
|
description: "SMTP port (default 587)"
|
|
prompt: "SMTP port"
|
|
password: false
|
|
- name: EMAIL_IMAP_HOST
|
|
description: "IMAP host for inbound polling (e.g. imap.gmail.com)"
|
|
prompt: "IMAP host"
|
|
password: false
|
|
- name: EMAIL_ALLOWED_USERS
|
|
description: "Comma-separated email addresses allowed to talk to the bot"
|
|
prompt: "Allowed users (comma-separated)"
|
|
password: false
|
|
- name: EMAIL_HOME_ADDRESS
|
|
description: "Default address for cron / notification delivery"
|
|
prompt: "Home address"
|
|
password: false
|