import type { CliConfig } from "./config.js"; export interface PreflightResult { ok: boolean; errors: string[]; } /** * Check that all required environment variables are present. */ export function checkEnvironment(config: CliConfig): PreflightResult { if (config.missing.length === 0) { return { ok: true, errors: [] }; } return { ok: false, errors: config.missing }; }