hermes-agent/plugins/platforms
teknium1 11647ec269
feat(plugins): generalize native platform handler registration to every gateway platform
ctx.register_platform_handler(platform, factory) — the generic surface for
plugins to wire native handlers into any platform adapter at connect()
time. Factories receive (native, adapter): the platform's client/app
object (PTB Application, discord.py Bot, slack_bolt AsyncApp, Teams App,
DingTalkStreamClient, aiohttp web.Application) or None for adapters with
no separate native object.

- BasePlatformAdapter._wire_plugin_handlers(native): shared, isolated
  invocation helper — a raising plugin cannot block a platform connect.
- All 27 connectable adapters call it: telegram/slack/teams/line/
  api_server/msgraph_webhook wire before their dispatch tables freeze;
  the rest hook at connect success.
- register_telegram_handler and get_telegram_handler_factories retained
  as thin back-compat aliases over the telegram bucket.
- Source-invariant test guarantees every adapter with connect() keeps
  calling the hook.
2026-07-05 15:17:18 -07:00
..
dingtalk feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
discord feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
email feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
feishu feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
google_chat feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
homeassistant feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
irc feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
line feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
matrix feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
mattermost feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
ntfy feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
photon feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
raft feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
simplex feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
slack feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
sms feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
teams feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
telegram feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
wecom feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00
whatsapp feat(plugins): generalize native platform handler registration to every gateway platform 2026-07-05 15:17:18 -07:00