export const DEFAULT_TERMINAL_THEME = "deepseek-dark";
export const terminalThemes = [
    {
        name: "deepseek-dark",
        label: "DeepSeek Dark",
        description: "Cyan brand accents with familiar green/yellow/red status colors for dark terminals.",
        colors: {
            default: undefined,
            brand: "cyan",
            muted: "gray",
            success: "green",
            warning: "yellow",
            error: "red",
        },
    },
    {
        name: "warm-classic",
        label: "Warm Classic",
        description: "Warmer magenta brand accent for users who prefer a softer terminal palette.",
        colors: {
            default: undefined,
            brand: "magenta",
            muted: "gray",
            success: "green",
            warning: "yellow",
            error: "red",
        },
    },
    {
        name: "high-contrast",
        label: "High Contrast",
        description: "White primary accents and saturated status colors for difficult terminal themes.",
        colors: {
            default: undefined,
            brand: "white",
            muted: "gray",
            success: "green",
            warning: "yellow",
            error: "red",
        },
    },
    {
        name: "cache-green",
        label: "Cache Green",
        description: "Green brand accent for cache-first DeepSeek workflows and token-saving sessions.",
        colors: {
            default: undefined,
            brand: "green",
            muted: "gray",
            success: "green",
            warning: "yellow",
            error: "red",
        },
    },
];
export function normalizeTerminalThemeName(value) {
    if (typeof value !== "string")
        return null;
    const normalized = value.trim().toLowerCase();
    return terminalThemes.some((theme) => theme.name === normalized)
        ? normalized
        : null;
}
export function getTerminalTheme(name) {
    const normalized = normalizeTerminalThemeName(name) ?? DEFAULT_TERMINAL_THEME;
    return terminalThemes.find((theme) => theme.name === normalized) ?? terminalThemes[0];
}
