feat(companion): add manual heartbeat tick helper

This commit is contained in:
William Valentin
2026-02-16 18:46:48 -08:00
parent 985b7bf459
commit 873dc1ad5b
4 changed files with 30 additions and 3 deletions
+1 -1
View File
@@ -1198,7 +1198,7 @@ Companion runtime helper:
- shared `bootstrap()` helper (`register` + `getCapabilities`) for startup handshakes
- shared `publishHeartbeat()` helper for periodic `node.status.set` updates with safe defaults
- optional `defaultSessionId` for canvas helper calls so `sessionId` can be omitted per call
- `src/companion/heartbeatLoop.ts` provides `CompanionHeartbeatLoop` for periodic heartbeat scheduling (`publishHeartbeat`) with start/stop safety, error hooks, and optional auto-stop after repeated failures.
- `src/companion/heartbeatLoop.ts` provides `CompanionHeartbeatLoop` for periodic heartbeat scheduling (`publishHeartbeat`) with start/stop safety, `tickNow()` for manual sends, error hooks, and optional auto-stop after repeated failures.
## Canvas / A2UI Foundation