import { Label } from '@/components/ui/label'; import { Checkbox } from '@/components/ui/checkbox'; import { FileCode, Globe, ImageIcon } from 'lucide-react'; import { cn } from '@/lib/utils'; import { OpenAIIcon } from '@/components/ui/provider-icon'; interface CodexSettingsProps { autoLoadCodexAgents: boolean; codexEnableWebSearch: boolean; codexEnableImages: boolean; onAutoLoadCodexAgentsChange: (enabled: boolean) => void; onCodexEnableWebSearchChange: (enabled: boolean) => void; onCodexEnableImagesChange: (enabled: boolean) => void; } const CARD_TITLE = 'Codex CLI Settings'; const CARD_SUBTITLE = 'Configure Codex instructions and capabilities.'; const AGENTS_TITLE = 'Auto-load AGENTS.md Instructions'; const AGENTS_DESCRIPTION = 'Automatically inject project instructions from'; const AGENTS_PATH = '.codex/AGENTS.md'; const AGENTS_SUFFIX = 'on each Codex run.'; const WEB_SEARCH_TITLE = 'Enable Web Search'; const WEB_SEARCH_DESCRIPTION = 'Allow Codex to search the web for current information.'; const IMAGES_TITLE = 'Enable Image Support'; const IMAGES_DESCRIPTION = 'Allow Codex to process images attached to prompts.'; export function CodexSettings({ autoLoadCodexAgents, codexEnableWebSearch, codexEnableImages, onAutoLoadCodexAgentsChange, onCodexEnableWebSearchChange, onCodexEnableImagesChange, }: CodexSettingsProps) { return (
{CARD_SUBTITLE}
{AGENTS_DESCRIPTION}{' '}
{AGENTS_PATH}{' '}
{AGENTS_SUFFIX}
{WEB_SEARCH_DESCRIPTION}
{IMAGES_DESCRIPTION}