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
+21
View File
@@ -0,0 +1,21 @@
import Quickshell
import Quickshell.Io
import QtQuick
import qs.services
ShellRoot {
// The production singleton still performs its delayed startup scan. The
// harness turns it off before its 2200 ms deadline so each fixture drives
// only the state transition it is asserting.
Component.onCompleted: Health.startupScanEnabled = false
IpcHandler {
target: "health-test"
function accept(text: string, generation: int): bool { return Health.consumeSnapshot(text, generation); }
function queue(): void { Health.refresh(); Health.refresh(); }
function status(): string { return JSON.stringify(Health.diagnostics()); }
function repair(id: string): bool { return Health.repair(id, false); }
}
}