pub fn health_report(ctx: &AppContext) -> Result<HealthReport>Expand description
Build a full health report for the current application context.
The function snapshots the current paths, collects installed packages, scans package directories, journal recovery data, and MSI inventory, then sorts the resulting diagnostics and computes a final error count. The returned report is intentionally pre-rendered with display-friendly paths so the caller can present it directly.