pub fn compute_preflight_summary_with_runner<R: CommandRunner>(
items: &[PackageItem],
action: PreflightAction,
runner: &R,
) -> PreflightSummaryOutcomeExpand description
What: Compute preflight summary data using a custom command runner.
Inputs:
items: Packages to analyse.action: Install vs. remove context.runner: Command execution abstraction (mockable).
Output:
PreflightSummaryOutcomewith fully materialised Summary data and header chip metrics.
Details:
- Fetches installed versions/sizes via
pacmanwhen possible. - Applies the initial risk heuristic outlined in the specification.
- Gracefully degrades metrics when metadata is unavailable.