import { Button } from '@/components/ui/button'; import { Terminal, CheckCircle2, AlertCircle, RefreshCw, XCircle } from 'lucide-react'; import { cn } from '@/lib/utils'; interface CursorStatus { installed: boolean; version?: string; authenticated: boolean; method?: string; } interface CursorCliStatusProps { status: CursorStatus | null; isChecking: boolean; onRefresh: () => void; } function SkeletonPulse({ className }: { className?: string }) { return
; } export function CursorCliStatusSkeleton() { return (
{/* Installation status skeleton */}
{/* Auth status skeleton */}
); } export function CursorPermissionsSkeleton() { return (
{/* Security Warning skeleton */}
{/* Permission Profiles skeleton */}
{[1, 2].map((i) => (
))}
{/* Config File Locations skeleton */}
); } export function ModelConfigSkeleton() { return (
{/* Default Model skeleton */}
{/* Available Models skeleton */}
{[1, 2, 3, 4].map((i) => (
))}
); } export function CursorCliStatus({ status, isChecking, onRefresh }: CursorCliStatusProps) { if (!status) return ; return (

Cursor CLI

Cursor CLI enables AI-powered code editing using Cursor's models.

{status.installed ? (
{/* Installation Status - Success */}

Cursor CLI Installed

{status.version && (

Version: {status.version}

)}
{/* Authentication Status */} {status.authenticated ? (

Authenticated

Method:{' '} {status.method === 'api_key' ? 'API Key' : 'Browser Login'}

) : (

Not Authenticated

Run cursor auth{' '} to authenticate with Cursor.

)}
) : (

Cursor CLI Not Detected

Install Cursor CLI to use Cursor models in AutoMaker.

)}
); }