towerops/lib/towerops_web/live/agent_live
Graham McIntire fbce65070a
Add agent restart and self-update commands
Add server-initiated restart and self-update capabilities for remote
agents. Restart broadcasts on the lifecycle PubSub topic causing the
agent to exit cleanly for Docker to restart. Self-update fetches the
latest release from GitHub, finds the matching binary for the agent's
architecture, and sends the download URL with SHA256 checksum.

- Add restart_agent/1 and update_agent/3 to Agents context
- Handle :restart_requested and :update_requested in AgentChannel
- Add superuser-only Restart and Update buttons on agent show page
- Add ReleaseChecker module for GitHub Releases API with 5-min cache
- Add arch field to AgentHeartbeat protobuf for architecture detection
- Store arch in agent metadata from heartbeat
2026-02-10 13:06:10 -06:00
..
edit.ex Allow superadmins to view and edit any agent regardless of org 2026-02-10 12:19:20 -06:00
edit.html.heex enable agent debugging 2026-01-27 13:25:04 -06:00
helpers.ex remove date helper 2026-02-10 09:15:41 -06:00
index.ex Live-ticking relative timestamps on agents page 2026-02-10 10:24:21 -06:00
index.html.heex Live-ticking relative timestamps on agents page 2026-02-10 10:24:21 -06:00
show.ex Add agent restart and self-update commands 2026-02-10 13:06:10 -06:00
show.html.heex Add agent restart and self-update commands 2026-02-10 13:06:10 -06:00