/** * CLI Types * * Types for CLI command options and results. */ import type { Stage, Fix } from './plugin.js'; /** * Base options shared by most commands */ export interface BaseOptions { rootDir?: string; } /** * Options for the scan command */ export interface ScanOptions extends BaseOptions { dev?: boolean; staging?: boolean; prod?: boolean; stages?: Stage[]; commit?: string; silent?: boolean; /** * Target deployment stage (staging or prod) * Filters fixes by deployment target stage */ targetStage?: 'staging' | 'prod'; } /** * Problems found during scan, grouped by stage */ export interface ScanProblems { dev: Fix[]; staging: Fix[]; prod: Fix[]; } /** * Options for the deploy command */ export interface DeployOptions extends ScanOptions { environment?: string; branch?: string; token?: string; deploySecrets?: boolean; dryRun?: boolean; } /** * Options for the fix command */ export interface FixOptions extends ScanOptions { token?: string; continueOnError?: boolean; } /** * Result of running fixes */ export interface FixResult { fixed: number; manual: number; failed: number; fixes: { id: string; stage: Stage; status: 'fixed' | 'manual' | 'failed'; description?: string; manualFix?: string; error?: string; }[]; } /** * Options for the init command */ export interface InitOptions extends BaseOptions { force?: boolean; } /** * Options for the undeploy command */ export interface UndeployOptions extends BaseOptions { dev?: boolean; staging?: boolean; prod?: boolean; environment?: string; } /** * Options for the secrets command */ export interface SecretsOptions extends BaseOptions { value?: string; deploy?: boolean; token?: string; staging?: boolean; prod?: boolean; restart?: boolean; dryRun?: boolean; } /** * Options for the upgrade command */ export interface UpgradeOptions extends BaseOptions { check?: boolean; } /** * Options for the validate command (legacy) */ export interface ValidateOptions { config?: string; } /** * Options for the check-config command (legacy) */ export interface CheckConfigOptions { environment?: string; } /** * Options for generate-workflows command */ export interface GenerateWorkflowsOptions { output?: string; } /** * Options for the dev-sync command */ export interface DevSyncOptions extends BaseOptions { staging?: boolean; prod?: boolean; deploy?: boolean; } /** * Reachability info for display */ export interface ReachabilityInfo { reachable: boolean; reason?: string; via?: string; } /** * Reachability map by stage */ export type ReachabilityMap = Record; //# sourceMappingURL=cli.d.ts.map