hermes-agent/docs
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
..
agents.md Moved "architecture" dir to "docs" for clarity 2026-01-30 07:54:51 +00:00
cli.md docs: update README and CLI documentation for new commands 2026-03-01 00:28:07 -08:00
hooks.md feat(hooks): introduce event hooks system for lifecycle management 2026-02-28 17:09:26 -08:00
llm_client.md Moved "architecture" dir to "docs" for clarity 2026-01-30 07:54:51 +00:00
mcp.md docs: add comprehensive MCP documentation and examples 2026-03-02 18:52:33 -08:00
message_graph.md Moved "architecture" dir to "docs" for clarity 2026-01-30 07:54:51 +00:00
messaging.md feat: add /update slash command for gateway platforms 2026-03-05 01:20:58 -08:00
skills_hub_design.md fix(docs): standardize terminology and CLI formatting 2026-02-28 02:03:39 +01:00
slash-commands.md feat: add /update slash command for gateway platforms 2026-03-05 01:20:58 -08:00
tools.md docs: add comprehensive MCP documentation and examples 2026-03-02 18:52:33 -08:00