import fs from "node:fs";
import path from "node:path";
export function runSetupChecks(config) {
    return [
        {
            name: "project",
            ok: fs.existsSync(config.projectPath),
            detail: config.projectPath,
        },
        {
            name: "data_dir",
            ok: fs.existsSync(config.dataDir),
            detail: config.dataDir,
        },
        {
            name: "state_dir",
            ok: fs.existsSync(path.dirname(config.stateDbPath)),
            detail: path.dirname(config.stateDbPath),
        },
        {
            name: "provider",
            ok: Boolean(config.provider),
            detail: config.provider ? `${config.provider.name} ${config.provider.model}` : "missing DEEPSEEK_API_KEY",
        },
    ];
}
