import { useMemo } from "react";
export function useAgentSettingsSelectOptions(input) {
    const { agent, agentStub, activeProfile, profiles } = input;
    const modeOptions = useMemo(() => [
        {
            value: "supervised",
            label: "Supervised",
            className: "text-feedback-orange dark:text-feedback-orange",
            description: "Ask before performing sensitive actions.",
        },
        {
            value: "autonomous",
            label: "Autonomous",
            className: "text-feedback-red dark:text-feedback-red",
            description: "Run allowed actions without confirmation.",
        },
        {
            value: "read-only",
            label: "Read-only",
            className: "text-feedback-green dark:text-feedback-green",
            description: "Inspect and explain without changing content.",
        },
    ], []);
    const profileOptions = useMemo(() => {
        const currentProfileId = (agent?.profileId || agentStub.profileId)?.toLowerCase();
        const visibleProfiles = profiles.filter((profile) => !profile.hiddenFromOverview ||
            profile.id.toLowerCase() === currentProfileId);
        return visibleProfiles.map((profile) => ({
            value: profile.id,
            label: profile.name,
        }));
    }, [agent?.profileId, agentStub.profileId, profiles]);
    const modelOptions = useMemo(() => (activeProfile?.models || [])
        .map((model) => ({
        value: model.id,
        label: model.name,
    }))
        .sort((a, b) => a.label.localeCompare(b.label)), [activeProfile?.models]);
    return {
        modeOptions,
        profileOptions,
        modelOptions,
    };
}
//# sourceMappingURL=useAgentSettingsSelectOptions.js.map