Skip to content

v0.6.0 — Agent Auto-Recovery

Choose a tag to compare

@gcmsg gcmsg released this 15 Mar 03:08
· 12 commits to main since this release

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

  • 361c617 feat: add auto re-register on heartbeat 404 and server re_register notification
  • cdc5db5 feat: add HealthCheck callback for dynamic heartbeat status
  • e560747 feat: add periodic heartbeat loop to keep agents online