Add Panama health state service

This commit is contained in:
Gabriel Brown
2026-08-18 09:20:16 -04:00
parent 0ca83f74c7
commit e2e03252e4
4 changed files with 455 additions and 0 deletions
+20
View File
@@ -145,6 +145,26 @@ ShellRoot {
}
}
IpcHandler {
target: "health"
function refresh(): bool { return Health.refresh(); }
function status(): string {
return JSON.stringify({
summary: Health.summary,
busy: Health.busy,
generation: Health.generation,
acceptedGeneration: Health.acceptedGeneration,
checks: Health.checks.map(check => ({ id: check.id, status: check.status }))
});
}
function open(): void {
ShellState.openSettings("services");
Health.refresh();
}
function repair(id: string): bool { return Health.repair(id, true); }
}
// A small diagnostics surface doubles as a deterministic contract harness.
// Real producers call StatusEvents.publish() directly; fixtures never run
// unless explicitly requested over IPC by the test suite.