hermes-agent/gateway/platforms
teknium1 d400fb8b23 feat: add /update slash command for gateway platforms
Adds a /update command to Telegram, Discord, and other gateway platforms
that runs `hermes update` to pull the latest code, update dependencies,
sync skills, and restart the gateway.

Implementation:
- Spawns `hermes update` in a separate systemd scope (systemd-run --user
  --scope) so the process survives the gateway restart that hermes update
  triggers at the end. Falls back to nohup if systemd-run is unavailable.
- Writes a marker file (.update_pending.json) with the originating
  platform and chat_id before spawning the update.
- On gateway startup, _send_update_notification() checks for the marker,
  reads the captured update output, sends the results back to the user,
  and cleans up.

Also:
- Registers /update as a Discord slash command
- Updates README.md, docs/messaging.md, docs/slash-commands.md
- Adds 18 tests covering handler, notification, and edge cases
2026-03-05 01:20:58 -08:00
..
__init__.py Enhance CLI with multi-platform messaging integration and configuration management 2026-02-02 19:01:51 -08:00
base.py Merge PR #200: fix extract_images and truncate_message bugs in platform base 2026-03-04 19:37:58 -08:00
discord.py feat: add /update slash command for gateway platforms 2026-03-05 01:20:58 -08:00
homeassistant.py feat: enhance Home Assistant integration with service discovery and setup 2026-03-03 05:16:53 -08:00
slack.py refactor: enhance API interaction and message handling in AIAgent 2026-02-21 04:17:27 -08:00
telegram.py Merge PR #204: fix Telegram italic regex newline bug 2026-03-04 19:52:03 -08:00
whatsapp.py fix(whatsapp): initialize data variable and close log handle on error paths 2026-03-04 19:11:48 +03:00