Repository navigation
v0.6.0 — Agent Auto-Recovery
What's New
Auto Re-Register on Heartbeat 404
When the server restarts and loses agent records, the SDK now automatically detects 404 from heartbeat and re-registers — zero manual intervention required.
Server Re-Register Notification
The SDK listens for re_register notifications broadcast by the server on startup, triggering immediate re-registration for all connected agents.
HealthCheck Callback
New HealthCheck option enables dynamic heartbeat status reporting. The callback runs before each heartbeat with a 5-second timeout, returning the actual agent health status (online, degraded, offline). Platform adapters implementing platform.HealthChecker are checked automatically.
Periodic Heartbeat Loop
Start() now automatically sends heartbeats on a configurable interval (default 3 minutes), keeping agents online without manual heartbeat management.
Structured Registry Errors
New RegistryError type and IsNotFound() helper enable programmatic error handling for registry API responses.
Commits
361c617feat: add auto re-register on heartbeat 404 and server re_register notificationcdc5db5feat: add HealthCheck callback for dynamic heartbeat statuse560747feat: add periodic heartbeat loop to keep agents online