feat(companion): add reusable heartbeat loop utility

This commit is contained in:
William Valentin
2026-02-16 18:39:34 -08:00
parent 017c5a6b0c
commit 56d06e4827
5 changed files with 208 additions and 0 deletions
+14
View File
@@ -257,6 +257,20 @@
],
"test_status": "pnpm test:run src/companion/platformClients.integration.test.ts src/companion/runtimeClient.test.ts src/companion/platformClients.test.ts + pnpm typecheck passing"
},
"companion-heartbeat-loop-utility": {
"status": "completed",
"date": "2026-02-17",
"updated": "2026-02-17",
"summary": "Added `CompanionHeartbeatLoop`, a reusable periodic heartbeat scheduler for companion runtimes that invokes `publishHeartbeat` with optional payload builders, idempotent start/stop behavior, and error hooks.",
"files_modified": [
"src/companion/heartbeatLoop.ts",
"src/companion/heartbeatLoop.test.ts",
"src/companion/index.ts",
"README.md",
"docs/plans/state.json"
],
"test_status": "pnpm test:run src/companion/heartbeatLoop.test.ts src/companion/platformClients.test.ts + pnpm typecheck passing"
},
"browser-tools-activation-clarity": {
"status": "completed",
"date": "2026-02-17",