Skip to main content

check_ai_command_prerequisites

Function check_ai_command_prerequisites 

Source
pub fn check_ai_command_prerequisites(
    model_override: Option<&str>,
    repo_root: &Path,
) -> Result<AiCredentialInfo>
Expand description

Performs combined preflight check for AI commands.

Validates:

  • Git repository access
  • AI credentials

Returns information about the AI provider that will be used.

repo_root anchors the git-repository check to the injected repository rather than the process current working directory.