fn pi_lists_models(success: bool, stdout: &str, stderr: &str) -> bool
pi --list-models exits 0 either way; it is signed in when it lists models rather than “No models available”.
pi --list-models