fn capabilities_for(os: &str, wayland: bool) -> PlatformCapabilitiesExpand description
Derive the capability flags for a given target-OS string and whether
the session is Wayland. Kept pure and parameterised so every branch
is unit-testable on a single host; the #[tauri::command] wrapper
feeds it the real target and session type.