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§
- AiCredential
Info - 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_rootis 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_rootis clean — no uncommitted changes (staged, unstaged, or untracked non-ignored files).