/** * health command - Verify SDK installation and environment health * * This command performs diagnostic checks to verify: * - SDK CLI is properly installed and version is accessible * - .a5c directory exists and is writable * - Node.js version is compatible (>=18) * - Package.json has babysitter-sdk dependency if in project context * - Environment variables are set correctly */ /** * Status of an individual health check */ export type CheckStatus = "pass" | "fail" | "warn"; /** * Result of a single health check */ export interface HealthCheck { /** Name of the check */ name: string; /** Human-readable description of what was checked */ description: string; /** Status of the check */ status: CheckStatus; /** Detailed message about the result */ message: string; /** Suggested next steps if the check failed or warned */ nextSteps?: string[]; /** Additional diagnostic details */ details?: Record; } /** * Options for running health checks */ export interface HealthCheckOptions { /** Output in JSON format for machine consumption */ json?: boolean; /** Include verbose diagnostic information */ verbose?: boolean; /** Working directory to check (defaults to cwd) */ cwd?: string; } /** * Overall health check result */ export interface HealthCheckResult { /** Overall health status */ status: "healthy" | "degraded" | "unhealthy"; /** Timestamp of the health check */ timestamp: string; /** Individual check results */ checks: HealthCheck[]; /** Summary counts */ summary: { total: number; passed: number; failed: number; warnings: number; }; /** Aggregated next steps from all failing checks */ nextSteps: string[]; } /** * Runs all health checks and returns aggregated results */ export declare function runHealthCheck(options: HealthCheckOptions): Promise; /** * CLI entry point for the health command * * @param options - Parsed CLI options * @returns Exit code (0 for healthy, 1 for unhealthy) */ export declare function handleHealthCommand(options: HealthCheckOptions): Promise; //# sourceMappingURL=health.d.ts.map