Skip to main content

Module preflight

Module preflight 

Source
Expand description

Preflight validation checks for early failure detection.

This module provides functions to validate required services and credentials before starting expensive operations. Commands should call these checks early to fail fast with clear error messages.

Structs§

AiCredentialInfo
Result of AI credential validation.

Enums§

AiProvider
AI provider types.

Functions§

check_ai_command_prerequisites
Performs combined preflight check for AI commands.
check_ai_credentials
Validates that AI credentials are available before processing.
check_git_repository_at
Validates that repo_root is a valid git repository.
check_github_cli
Validates that GitHub CLI is available and authenticated.
check_pr_command_prerequisites
Performs combined preflight check for PR creation.
check_working_directory_clean_at
Validates that the working directory at repo_root is clean — no uncommitted changes (staged, unstaged, or untracked non-ignored files).