/*
* SysDeck - Integrity Panel (v0.0.10)
* Author: Jeremy Anderson (https://dcos.net)
*
* Calls lynis audit system via cockpit.spawn. Falls back gracefully
* when lynis is absent — the trust score becomes null and the panel
* shows an install hint.
*
* Uses the systemd dbus proxy to surface the integrity-scanner service
* state without polling. The proxy fires 'changed' when the unit state
* transitions; the panel re-fetches the trust score on that signal.
*/
export async function mount(panel, { bridge, EventBus }) {
panel.innerHTML = renderSkeleton();
const trust = await bridge.integrity.trustScore();
panel.innerHTML = `
Lynis system auditIntegrity Auditor
Lynis not installed.
'}