import { RoadmapChunk } from '@rigstate/shared'; export interface NexusAlert { id: string; severity: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW'; title: string; message: string; created_at: string; } export interface SystemInsight { id: string; insight_type: string; severity: 'critical' | 'warning' | 'info'; title: string; message: string; created_at: string; } export interface MonitorState { projectId: string; apiUrl: string; activeTask: RoadmapChunk | null; roadmap: RoadmapChunk[]; daemonOnline: boolean; logs: LogEntry[]; stats: { total: number; completed: number; active: number; blocked: number }; hiveStats?: { total_antidotes: number; fortress_rules: number; pending_quarantine: number; average_trust_score: number }; nexusAlerts?: NexusAlert[]; systemInsights?: SystemInsight[]; loading: boolean; time: string; } export interface LogEntry { id: number; timestamp: string; level: 'info' | 'warn' | 'error' | 'command' | 'frank' | 'guardian' | 'hive'; message: string; } export type NlCommand = | { type: 'navigate'; target: string } | { type: 'status' } | { type: 'refresh' } | { type: 'antidote_stats' } | { type: 'antidote_query'; query: string } | { type: 'confirm_destructive'; original: string } | { type: 'unknown'; raw: string };