/**
 * Installation mode agent definition — first-time setup flow.
 *
 * Delegates to platform-specific prompts (macOS vs Windows) that guide the
 * user through prerequisites, XLL registration, and smoke testing.
 * Accepts optional preflight log entries to communicate what the deterministic
 * preflight script already accomplished before the agent took over.
 */
import { MODE } from '../../../mode-names.js';
import { BASH, EDIT, EXECUTE_CODE, GREP, INSTALLATION_SWITCH_MODE, READ, WRITE } from '../../../tool-names.js';
import { buildMacInstallationPrompt } from './prompt-mac.js';
import { buildWindowsInstallationPrompt } from './prompt-windows.js';
function buildInstallationPrompt(preflightLog) {
    if (process.platform === 'darwin') {
        return buildMacInstallationPrompt(preflightLog);
    }
    return buildWindowsInstallationPrompt(preflightLog);
}
const DESCRIPTION = 'First-time setup for ShortcutXL.';
const TOOLS = [READ, BASH, EDIT, WRITE, GREP, EXECUTE_CODE, INSTALLATION_SWITCH_MODE];
export function installationAgent(preflightLog) {
    return {
        name: MODE.INSTALLATION,
        description: DESCRIPTION,
        systemPrompt: buildInstallationPrompt(preflightLog),
        tools: TOOLS,
        switchTo: [MODE.ACTION]
    };
}
//# sourceMappingURL=agent.js.map