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
This commit is contained in:
parent
2af2f148ab
commit
d400fb8b23
6 changed files with 623 additions and 1 deletions
|
|
@ -86,6 +86,8 @@ Send `/new` or `/reset` as a message to start fresh.
|
|||
|---------|-------------|
|
||||
| `/compress` | Manually compress conversation context (saves memories, then summarizes) |
|
||||
| `/usage` | Show token usage and context window status for the current session |
|
||||
| `/update` | Update Hermes Agent to the latest version (pulls code, updates deps, restarts gateway) |
|
||||
| `/reload-mcp` | Disconnect and reconnect all MCP servers from config |
|
||||
|
||||
### Per-Platform Overrides
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue