/**
 * Linux pre-flight setup for ShortcutXL.
 *
 * Steps: uv download → Python install → pip packages → Chrome detect → sheet engine → smoke test.
 * Nearly identical to macOS — only the uv download target and Chrome paths differ.
 *
 * Shared uv/Python/sheet-engine logic lives in shared.ts — this module
 * provides the Linux uv download target and Chrome detection.
 */
import { existsSync } from 'fs';
import { ensureNewSheet, ensureUvPackages, ensureUvPython, ensureUv as ensureUvShared, smokeTestSheetEngine } from './shared.js';
import { header, log, ok } from './utils.js';
// Re-export shared functions so index.ts can call linux.ensureUvPython() etc.
export { ensureNewSheet, ensureUvPackages, ensureUvPython, smokeTestSheetEngine };
// ── uv download (Linux target) ──────────────────────────────────────────
export async function ensureUv() {
    return ensureUvShared('unknown-linux-gnu');
}
// ── Chrome ──────────────────────────────────────────────────────────────
const LINUX_CHROME_PATHS = [
    '/usr/bin/google-chrome',
    '/usr/bin/google-chrome-stable',
    '/usr/bin/chromium-browser',
    '/usr/bin/chromium'
];
export function ensureChromeLinux() {
    header('Chrome');
    const found = LINUX_CHROME_PATHS.find((p) => existsSync(p));
    if (found) {
        ok('Chrome found — SEC filing support ready.');
    }
    else {
        log('Chrome not installed — Shortcut agent can set this up for SEC filing support.');
    }
}
//# sourceMappingURL=linux.js.map