import React, { useState, useEffect } from 'react'; import { Lightbulb, Scale, TrendingUp, ShieldAlert, Search, MessageSquare, CheckCircle, AlertTriangle, ExternalLink, RefreshCw, Clock, ThumbsUp, ThumbsDown, ChevronDown, ChevronUp, FileText, Zap, Target, Users, BarChart3, Globe, AlertCircle, Hash, Eye, Shield, Database, Wallet, Bot, Cpu, Activity, Server, Lock, Radio, Satellite, Crosshair, Network, Terminal, Key, Fingerprint, Scan, LayoutDashboard, Settings, Bell, Flag, Map, Binoculars, Brain, Sparkles, ChevronRight, Pause, Play, Power, AlertOctagon, FileCode, GitBranch, Box, Layers } from 'lucide-react'; // ============================================ // TYPES // ============================================ interface Advisor { id: string; name: string; codename: string; icon: React.ReactNode; description: string; lastUpdated: string; insights: Insight[]; actions: Action[]; clearanceLevel: number; } interface Insight { id: string; type: 'suggestion' | 'alert' | 'opportunity' | 'warning' | 'trend' | 'intel' | 'threat'; title: string; description: string; priority: 'critical' | 'high' | 'medium' | 'low'; timestamp: string; source?: string; evidence?: string[]; impact?: string; classified?: boolean; } interface Action { id: string; label: string; status: 'pending' | 'in_progress' | 'completed' | 'dismissed' | 'requires_approval'; handler: () => void; requiresAuth?: boolean; } interface DailyBriefing { date: string; threatLevel: 'green' | 'yellow' | 'orange' | 'red'; totalActiveOperations: number; newIntel: number; requiresDecision: number; chiefRecommendations: Recommendation[]; } interface Recommendation { id: string; priority: 'critical' | 'high' | 'medium' | 'low'; category: 'operations' | 'legal' | 'technical' | 'financial' | 'security'; title: string; description: string; estimatedTime: string; potentialImpact: string; reasoning: string[]; } interface BotStatus { id: string; name: string; role: string; status: 'active' | 'standby' | 'maintenance' | 'offline'; lastActivity: string; messagesHandled: number; swarmsAllocated: number; } interface WalletData { address: string; purpose: string; balance: string; network: string; lastTx: string; requiresApproval: boolean; } interface DomainStatus { domain: string; status: 'active' | 'pending' | 'expiring' | 'expired'; expiresAt: string; traffic24h: number; sslStatus: 'valid' | 'expiring' | 'expired'; dnsHealth: 'healthy' | 'issues' | 'critical'; } interface DataUsageMetric { category: string; source: string; recordsProcessed: number; storageUsed: string; lastUpdated: string; humanVerified: boolean; } // ============================================ // MOCK DATA // ============================================ const dailyBriefing: DailyBriefing = { date: new Date().toISOString(), threatLevel: 'orange', totalActiveOperations: 23, newIntel: 47, requiresDecision: 5, chiefRecommendations: [ { id: 'r1', priority: 'critical', category: 'security', title: 'Address Active Phishing Campaign', description: 'Fake RMI airdrop site detected. 23 wallets compromised. Immediate response required.', estimatedTime: '30 minutes', potentialImpact: 'Prevent $100K+ additional losses, protect brand reputation', reasoning: [ 'Active scam using RMI branding detected 10 minutes ago', 'User losses already at $45K and increasing', 'Social media mentions spreading rapidly', 'Waiting >1 hour risks mainstream crypto news pickup' ] }, { id: 'r2', priority: 'high', category: 'technical', title: 'Optimize Database Query Performance', description: 'API latency degraded 275% over past week. Investigation table queries need indexing.', estimatedTime: '2 hours', potentialImpact: 'Restore 120ms response times, prevent user churn', reasoning: [ 'Response times increased from 120ms to 450ms', 'User complaints in Discord increasing', 'Competitor platforms average 150ms - we are 3x slower', 'Database optimization scheduled, needs execution' ] }, { id: 'r3', priority: 'high', category: 'operations', title: 'Publish Preemptive Scam Alert', description: 'Intelligence suggests "MegaLaunch" presale is coordinated scam. 3 days to launch.', estimatedTime: '1 hour', potentialImpact: 'Save community $2M+, establish RMI as protective leader', reasoning: [ 'Multiple OSINT indicators confirm scam pattern', '52K Telegram members at risk (80% are real users)', 'High-profile target will generate media attention', 'First-mover advantage on this intelligence' ] }, { id: 'r4', priority: 'medium', category: 'financial', title: 'Review Q2 Tax Estimation', description: 'Quarterly tax payment due June 15. Current estimate may be insufficient.', estimatedTime: '45 minutes', potentialImpact: 'Avoid penalties, ensure compliance', reasoning: [ 'Q2 revenue exceeded projections by 15%', 'Safe harbor requires 110% of prior year payments', 'Current estimate may underpay by ~$8K', 'CFO review recommended before payment' ] }, { id: 'r5', priority: 'medium', category: 'operations', title: 'Create Base Chain Scanner Landing Page', description: '72% of new launches on Base but only 45% scanner coverage. Users searching but bouncing.', estimatedTime: '3 hours', potentialImpact: 'Capture 500+ daily searches, improve conversion 25%', reasoning: [ 'Search analytics show high intent Base queries', '62% bounce rate on current landing pages', 'No direct "Base token scanner" content exists', 'Technical foundation ready, needs frontend' ] } ] }; const botStatuses: BotStatus[] = [ { id: 'b1', name: '@rugmunchbot', role: 'Primary Scanner', status: 'active', lastActivity: '2s ago', messagesHandled: 45230, swarmsAllocated: 4 }, { id: 'b2', name: '@rmi_alerts_bot', role: 'Alert Distribution', status: 'active', lastActivity: '5s ago', messagesHandled: 128450, swarmsAllocated: 2 }, { id: 'b3', name: '@rmi_alpha_bot', role: 'Premium Alpha', status: 'active', lastActivity: '1m ago', messagesHandled: 8930, swarmsAllocated: 3 }, { id: 'b4', name: '@rmi_snitch_bot', role: 'Tip Collection', status: 'active', lastActivity: '12s ago', messagesHandled: 3420, swarmsAllocated: 1 }, { id: 'b5', name: '@rmi_rehab_bot', role: 'Education', status: 'standby', lastActivity: '5m ago', messagesHandled: 12340, swarmsAllocated: 1 }, { id: 'b6', name: '@rmi_whale_bot', role: 'Whale Tracking', status: 'maintenance', lastActivity: '2h ago', messagesHandled: 56700, swarmsAllocated: 0 }, ]; const walletData: WalletData[] = [ { address: '0x742d...8f3a', purpose: 'Treasury Primary', balance: '245.5 ETH', network: 'Ethereum', lastTx: '2h ago', requiresApproval: false }, { address: '0x91ab...2e4c', purpose: 'Operations', balance: '42.8 ETH', network: 'Ethereum', lastTx: '15m ago', requiresApproval: true }, { address: '0x3f9c...7b1d', purpose: 'Staking Rewards', balance: '18.2 ETH', network: 'Base', lastTx: '1d ago', requiresApproval: false }, { address: '0x8a2e...9f5b', purpose: 'Emergency Reserve', balance: '500.0 ETH', network: 'Ethereum', lastTx: '7d ago', requiresApproval: true }, ]; const domainStatuses: DomainStatus[] = [ { domain: 'cryptorugmunch.com', status: 'active', expiresAt: '2027-04-14', traffic24h: 45200, sslStatus: 'valid', dnsHealth: 'healthy' }, { domain: 'rugmunch.io', status: 'active', expiresAt: '2027-08-22', traffic24h: 12800, sslStatus: 'valid', dnsHealth: 'healthy' }, { domain: 'rmintel.net', status: 'expiring', expiresAt: '2026-05-01', traffic24h: 3200, sslStatus: 'expiring', dnsHealth: 'issues' }, { domain: 'munchmaps.io', status: 'pending', expiresAt: 'N/A', traffic24h: 0, sslStatus: 'valid', dnsHealth: 'healthy' }, ]; const dataUsageMetrics: DataUsageMetric[] = [ { category: 'Contract Analysis', source: 'AI Swarm + User Scans', recordsProcessed: 2450000, storageUsed: '45.2 GB', lastUpdated: 'Just now', humanVerified: true }, { category: 'Wallet Tracking', source: 'Blockchain Indexers', recordsProcessed: 89000000, storageUsed: '128.5 GB', lastUpdated: '2m ago', humanVerified: true }, { category: 'Community Intel', source: 'Snitch Reports + Tips', recordsProcessed: 12500, storageUsed: '8.3 GB', lastUpdated: '5m ago', humanVerified: false }, { category: 'Social Signals', source: 'X/Telegram Monitoring', recordsProcessed: 45000000, storageUsed: '156.2 GB', lastUpdated: '1m ago', humanVerified: true }, { category: 'User Analytics', source: 'Frontend + API Logs', recordsProcessed: 890000, storageUsed: '23.1 GB', lastUpdated: '15m ago', humanVerified: true }, ]; const swarmStatus = { totalAgents: 18, activeAgents: 15, tasksInQueue: 23, avgProcessingTime: '1.2s', lastDeployment: '4h ago', healthScore: 94, }; // ============================================ // COMPONENT // ============================================ const AdvisorPanel: React.FC = () => { const [activeTab, setActiveTab] = useState('briefing'); const [activeAdvisor, setActiveAdvisor] = useState('project'); const [expandedInsight, setExpandedInsight] = useState(null); const [expandedRec, setExpandedRec] = useState('r1'); const [refreshing, setRefreshing] = useState(false); const [humanOverride, setHumanOverride] = useState(false); const [terminalOpen, setTerminalOpen] = useState(false); const [lastGlobalUpdate, setLastGlobalUpdate] = useState(new Date().toISOString()); // Chief of Staff Advisor Data const chiefAdvisor: Advisor = { id: 'chief', name: 'Chief of Staff', codename: 'DIRECTOR', icon: , description: 'Daily strategic briefing and prioritized recommendations', lastUpdated: 'Just now', clearanceLevel: 5, insights: [], actions: [] }; // Project Advisor const projectAdvisor: Advisor = { id: 'project', name: 'Operations Intelligence', codename: 'WATCHDOG', icon: , description: 'Platform performance, user analytics, and growth opportunities', clearanceLevel: 4, lastUpdated: '2 minutes ago', insights: [ { id: 'p1', type: 'intel', title: 'Real-Time Wallet Notifications Requested', description: '67% of ELITE tier users requested push notifications for tracked wallet movements. WebSocket infrastructure ready for deployment.', priority: 'high', timestamp: '15 minutes ago', source: 'SIGINT-USERFEEDBACK', evidence: ['Survey: 450 responses', 'Support tickets: 89 related', 'Discord requests: 156'], impact: '23% retention increase, $45K additional ARR', classified: false }, { id: 'p2', type: 'opportunity', title: 'MetaMask Partnership Opportunity', description: 'MetaMask Snap integration could expose RMI to 30M+ users. No direct competitor in security Snap category.', priority: 'high', timestamp: '1 hour ago', source: 'OSINT-MARKET', evidence: ['MetaMask Snaps API released Q4 2024', 'User survey: 78% use MetaMask', 'No security competitor exists'], impact: '10K-50K new users, $150K partnership revenue', classified: false }, { id: 'p4', type: 'threat', title: 'API Response Times Degrading', description: 'Average response time increased from 120ms to 450ms over past week. Database queries on investigation_cases table are bottleneck.', priority: 'critical', timestamp: '30 minutes ago', source: 'SIGINT-PERFORMANCE', evidence: ['Avg latency: 450ms (was 120ms)', 'Slow query log: investigation_cases', 'Error rate: 0.3% increase'], impact: 'User experience degradation, potential churn', classified: false } ], actions: [ { id: 'pa1', label: 'Deploy WebSocket Notifications', status: 'requires_approval', requiresAuth: true, handler: () => {} }, { id: 'pa2', label: 'Research MetaMask Partnership', status: 'in_progress', handler: () => {} }, { id: 'pa3', label: 'Emergency Database Optimization', status: 'requires_approval', requiresAuth: true, handler: () => {} } ] }; // Legal & Tax Advisor const legalAdvisor: Advisor = { id: 'legal', name: 'Legal & Compliance', codename: 'COUNSEL', icon: , description: 'Wyoming DAO LLC compliance, tax obligations, regulatory monitoring', clearanceLevel: 5, lastUpdated: '1 hour ago', insights: [ { id: 'l1', type: 'alert', title: 'Wyoming Annual Report Due: 45 Days', description: 'Annual report and $60 fee due by June 1st. Late filing penalty: $200 + loss of good standing.', priority: 'high', timestamp: 'Today, 9:00 AM', source: 'COMPLIANCE-CALENDAR', evidence: ['Filing deadline: June 1, 2026', 'Current status: Good standing', 'Fee: $60'], impact: 'Avoid $200 penalty, maintain legal protection' }, { id: 'l2', type: 'threat', title: 'SEC Increased Token Scrutiny', description: 'SEC announced increased enforcement on DeFi tokens. Review $CRM V2 tokenomics for Howey Test compliance.', priority: 'critical', timestamp: '2 days ago', source: 'OSINT-REGULATORY', evidence: ['SEC statement: April 10, 2026', 'Focus: "utility" token classification', 'Recent enforcement: 3 similar projects'], impact: 'Potential regulatory action, legal review needed immediately' }, { id: 'l5', type: 'alert', title: 'Q2 Estimated Tax Payment Due June 15', description: 'Projected Q2 revenue: $125K. Estimated tax obligation: ~$31K. Safe harbor requires 110% of prior year.', priority: 'high', timestamp: 'Yesterday', source: 'FINANCE-TAX', evidence: ['Q1 actual: $118K', 'Q2 projected: $125K', 'Tax rate: ~25% effective'], impact: 'Avoid underpayment penalties (0.5%/month)' } ], actions: [ { id: 'la1', label: 'File Wyoming Annual Report', status: 'pending', handler: () => {} }, { id: 'la2', label: 'Emergency Legal Review: Token Compliance', status: 'requires_approval', requiresAuth: true, handler: () => {} }, { id: 'la3', label: 'Prepare Q2 Tax Payment', status: 'pending', handler: () => {} } ] }; // X/Twitter Trends Advisor const trendsAdvisor: Advisor = { id: 'trends', name: 'Social Intelligence', codename: 'ECHO', icon: , description: 'Real-time crypto Twitter sentiment, trending narratives, viral opportunities', clearanceLevel: 3, lastUpdated: '5 minutes ago', insights: [ { id: 't1', type: 'trend', title: '#RugPull Viral Surge: +340%', description: 'Mentions of "rug pull" increased 340% in past 24h. Related to Base chain launchpad incident. Opportunity for RMI expertise positioning.', priority: 'high', timestamp: '20 minutes ago', source: 'SIGINT-SOCIAL', evidence: ['Mentions: 12,450 (24h)', 'Sentiment: 65% fearful', 'Top influencers: 15 discussing'], impact: 'Thread opportunity: 500K+ impressions possible' }, { id: 't2', type: 'opportunity', title: 'AI Agent Token Narrative Exploding', description: '$AI and $AGENT tokens trending with $500M+ volume. RMI could position AI Swarm as security-focused alternative.', priority: 'high', timestamp: '2 hours ago', source: 'OSINT-MARKET', evidence: ['$AI volume: $230M (24h)', '$AGENT volume: $180M (24h)', 'Related keywords: +800%'], impact: 'Positioning: "AI for good - security not speculation"' }, { id: 't4', type: 'intel', title: 'Base Chain Dominating Launches: 72%', description: '72% of new token launches now on Base. RMI scanner traffic shows only 45% Base coverage - intelligence gap identified.', priority: 'high', timestamp: '6 hours ago', source: 'SIGINT-CHAIN', evidence: ['New launches: 72% Base', 'RMI scans: 45% Base', 'Trend accelerating: +15% WoW'], impact: 'Technical priority: Enhance Base chain detection' } ], actions: [ { id: 'ta1', label: 'Draft #RugPull Educational Thread', status: 'pending', handler: () => {} }, { id: 'ta2', label: 'Create AI Security Positioning Content', status: 'in_progress', handler: () => {} } ] }; // Scam Watch Advisor const scamAdvisor: Advisor = { id: 'scam', name: 'Threat Intelligence', codename: 'SENTINEL', icon: , description: 'Emerging threats, active scams, preemptive community alerts', clearanceLevel: 5, lastUpdated: 'Just now', insights: [ { id: 's1', type: 'threat', title: 'ACTIVE: Fake RMI Token Airdrop', description: 'Scammers impersonating RMI announcing fake $CRM V2 airdrop. Phishing site at rmi-airdrop[.]xyz stealing credentials.', priority: 'critical', timestamp: '10 minutes ago', source: 'HUMINT-SNICHT + SIGINT-PHISHING', evidence: ['Domain: rmi-airdrop.xyz', 'Wallets drained: 23 confirmed', 'Est. losses: $45K', 'Social posts: 8 fake accounts'], impact: 'Immediate action required: Issue warning, report domain, track funds' }, { id: 's2', type: 'threat', title: 'New "Sleep Minting" Attack Vector', description: 'Novel honeypot: tokens appear tradable for 24h then become unsellable. 6 contracts deployed in past 48h.', priority: 'high', timestamp: '1 hour ago', source: 'SIGINT-CONTRACTS', evidence: ['Contracts flagged: 6', 'Pattern: Sell function disabled after block height', 'Est. victims: 180+ wallets'], impact: 'Update scanner: Add sleep minting detection' }, { id: 's3', type: 'threat', title: 'Coordinated Presale Scam: "MegaLaunch"', description: 'Coordinated scam targeting 50K+ users. Fake team credentials, copied whitepaper, bot-filled social proof. Launch in 3 days.', priority: 'critical', timestamp: '3 hours ago', source: 'HUMINT-SNICHT + OSINT-INVESTIGATION', evidence: ['Telegram: 52K members (80% bots)', 'Team photos: AI-generated', 'Contract: Ownership not renounced', 'Soft cap: $2M target'], impact: 'Preemptive alert: Save potential $2M in losses' } ], actions: [ { id: 'sa1', label: 'Issue Emergency Airdrop Warning', status: 'requires_approval', requiresAuth: true, handler: () => {} }, { id: 'sa2', label: 'Report Phishing Domain to Registrars', status: 'pending', handler: () => {} }, { id: 'sa3', label: 'Deploy Sleep Minting Detection', status: 'requires_approval', requiresAuth: true, handler: () => {} }, { id: 'sa4', label: 'Publish MegaLaunch Investigation', status: 'in_progress', handler: () => {} } ] }; // Community Search Analytics Advisor const searchAdvisor: Advisor = { id: 'search', name: 'Search Intelligence', codename: 'SPECTER', icon: , description: 'User search patterns, knowledge gaps, content opportunities', clearanceLevel: 2, lastUpdated: '15 minutes ago', insights: [ { id: 'cs1', type: 'intel', title: '"Recover rugged funds" +450%', description: 'Top search query this week. Users looking for recovery options after Base chain incidents.', priority: 'high', timestamp: '1 hour ago', source: 'SIGINT-SEARCH', evidence: ['Search volume: +450%', 'Support tickets: 78 related', 'Referral: Reddit/r/cryptorecovery'], impact: 'Create recovery guide, promote 1-1 Reimbursement Program' }, { id: 'cs4', type: 'warning', title: 'High Bounce Rate: "Token Scanner"', description: '62% bounce rate for "token scanner" searches. Landing page not matching intent. Users expect instant scan tool.', priority: 'high', timestamp: '12 hours ago', source: 'SIGINT-ANALYTICS', evidence: ['Bounce rate: 62% (vs 35% avg)', 'Time on page: 8 seconds', 'Exit: /features, /pricing'], impact: 'UX fix: Create dedicated scanner landing page' } ], actions: [ { id: 'csa1', label: 'Create Fund Recovery Content', status: 'pending', handler: () => {} }, { id: 'csa2', label: 'Build Scanner Landing Page', status: 'pending', handler: () => {} } ] }; const advisors = [chiefAdvisor, projectAdvisor, legalAdvisor, trendsAdvisor, scamAdvisor, searchAdvisor]; const currentAdvisor = advisors.find(a => a.id === activeAdvisor) || projectAdvisor; const handleRefresh = () => { setRefreshing(true); setTimeout(() => { setRefreshing(false); setLastGlobalUpdate(new Date().toISOString()); }, 2000); }; const getInsightIcon = (type: string) => { switch (type) { case 'suggestion': return ; case 'alert': return ; case 'opportunity': return ; case 'warning': return ; case 'trend': return ; case 'intel': return ; case 'threat': return ; default: return ; } }; const getPriorityColor = (priority: string) => { switch (priority) { case 'critical': return 'bg-red-600/30 text-red-400 border-red-500/50 animate-pulse'; case 'high': return 'bg-orange-500/20 text-orange-400 border-orange-500/30'; case 'medium': return 'bg-yellow-500/20 text-yellow-400 border-yellow-500/30'; case 'low': return 'bg-green-500/20 text-green-400 border-green-500/30'; default: return 'bg-gray-500/20 text-gray-400'; } }; const getThreatLevelColor = (level: string) => { switch (level) { case 'green': return 'bg-green-500 shadow-[0_0_10px_rgba(34,197,94,0.5)]'; case 'yellow': return 'bg-yellow-500 shadow-[0_0_10px_rgba(234,179,8,0.5)]'; case 'orange': return 'bg-orange-500 shadow-[0_0_10px_rgba(249,115,22,0.5)]'; case 'red': return 'bg-red-600 shadow-[0_0_15px_rgba(220,38,38,0.7)] animate-pulse'; default: return 'bg-gray-500'; } }; return (
{/* Top Bar - Classified Header */}
{/* Logo */}

RMI COMMAND

ADVISOR PANEL // CLASSIFIED

{/* Classification Badge */}
TOP SECRET//SCI
{/* Threat Level */}
Threat Level
{dailyBriefing.threatLevel}
{/* Time */}
{new Date().toUTCString()}
{/* Terminal Toggle */} {/* Human Override */} {/* Refresh */}
{/* Secondary Navigation */}
{[ { id: 'briefing', label: 'DAILY BRIEFING', icon: }, { id: 'intelligence', label: 'INTELLIGENCE', icon: }, { id: 'operations', label: 'OPERATIONS', icon: }, { id: 'assets', label: 'ASSETS & WALLETS', icon: }, { id: 'domains', label: 'DOMAIN CONTROL', icon: }, { id: 'data', label: 'DATA TRANSPARENCY', icon: }, ].map((tab) => ( ))}
{/* Main Content */}
{/* ============================================ */} {/* DAILY BRIEFING TAB */} {/* ============================================ */} {activeTab === 'briefing' && (
{/* Chief Recommendations */}

CHIEF OF STAFF DIRECTIVE

{dailyBriefing.chiefRecommendations.length} PRIORITY ACTIONS
{dailyBriefing.chiefRecommendations.map((rec, idx) => (
setExpandedRec(expandedRec === rec.id ? null : rec.id)} >
{String(idx + 1).padStart(2, '0')}
{rec.priority} {rec.category} ~{rec.estimatedTime}

{rec.title}

{rec.description}

Impact: {rec.potentialImpact}
{expandedRec === rec.id && (

Chief's Reasoning:

    {rec.reasoning.map((reason, ridx) => (
  • {reason}
  • ))}
)}
))}
{/* Briefing Stats */}

Situation Summary

{dailyBriefing.totalActiveOperations}
Active Operations
{dailyBriefing.newIntel}
New Intel Items
{dailyBriefing.requiresDecision}
Pending Decisions
15/18
Swarm Online
{/* Critical Alerts */}

Critical Alerts

Fake RMI Airdrop Active
10m ago • 23 wallets compromised
SEC Scrutiny Increase
2d ago • Token compliance review needed
{/* System Health */}

System Health

API Response Time 450ms ⚠️
Swarm Efficiency 94% ✅
Bot Uptime 99.2% ✅
)} {/* ============================================ */} {/* INTELLIGENCE TAB */} {/* ============================================ */} {activeTab === 'intelligence' && (
{/* Advisor Selection */}
{advisors.filter(a => a.id !== 'chief').map((advisor) => ( ))}
{/* Intelligence Feed */}

{currentAdvisor.icon} {currentAdvisor.name}

{currentAdvisor.description}

CLEARANCE L-{currentAdvisor.clearanceLevel} Updated {currentAdvisor.lastUpdated}
{currentAdvisor.insights.map((insight) => (
setExpandedInsight(expandedInsight === insight.id ? null : insight.id)} >
{getInsightIcon(insight.type)}

{insight.title}

{insight.source} • {insight.timestamp}
{insight.classified && ( Classified )} {insight.priority.toUpperCase()}

{insight.description}

{insight.impact && (
Impact: {insight.impact}
)}
{expandedInsight === insight.id && insight.evidence && (

Evidence:

    {insight.evidence.map((item, idx) => (
  • {item}
  • ))}
)}
))}
{/* Action Queue */}

Action Queue

{currentAdvisor.actions.map((action) => (
{action.label}
{action.status.replace('_', ' ').toUpperCase()} {action.requiresAuth && ( )}
{action.status === 'requires_approval' && humanOverride && ( )}
))}
)} {/* ============================================ */} {/* OPERATIONS TAB */} {/* ============================================ */} {activeTab === 'operations' && (
{/* Swarm Status */}
AI Swarm
{swarmStatus.activeAgents}/{swarmStatus.totalAgents}
Agents Online
Queue
{swarmStatus.tasksInQueue}
Tasks Pending
Avg Process
{swarmStatus.avgProcessingTime}
Per Task
Health
{swarmStatus.healthScore}%
Optimal
{/* Bot Management */}

Bot Fleet Management

Human Control: {humanOverride ? 'ENABLED' : 'AUTONOMOUS'}
{botStatuses.map((bot) => (
{bot.name}
{bot.role}
Msgs: {bot.messagesHandled.toLocaleString()}
Swarms: {bot.swarmsAllocated}
Last: {bot.lastActivity}
{humanOverride && (
{bot.status === 'active' ? ( ) : ( )}
)}
))}
)} {/* ============================================ */} {/* ASSETS & WALLETS TAB */} {/* ============================================ */} {activeTab === 'assets' && (

Treasury Management

Human-in-the-Loop: {humanOverride ? 'APPROVAL REQUIRED' : 'AUTONOMOUS'}
{walletData.map((wallet) => (
{wallet.purpose}
{wallet.address}
{wallet.requiresApproval ? 'MULTISIG' : 'OPERATIONAL'}
{wallet.balance}
Balance
{wallet.network}
Network
{wallet.lastTx}
Last Activity
{humanOverride && (
)}
))}
{/* Transaction History */}

Recent Transactions (Human-Approved)

Timestamp Type Amount From → To Purpose Status
2026-04-14 08:23:15 UTC IN +12.5 ETH 0x...a1b2 → Treasury Subscription Revenue ✓ Confirmed
2026-04-13 14:45:22 UTC OUT -5.2 ETH Operations → 0x...c3d4 Server Infrastructure ✓ Approved
2026-04-13 09:12:08 UTC OUT -2.0 ETH Treasury → 0x...e5f6 Staking Rewards Distribution ✓ Approved
)} {/* ============================================ */} {/* DOMAIN CONTROL TAB */} {/* ============================================ */} {activeTab === 'domains' && (

Domain Portfolio Control

{domainStatuses.map((domain) => (
{domain.domain}
{domain.status.toUpperCase()}
{domain.traffic24h.toLocaleString()}
24h Visits
{domain.expiresAt}
Expires
{domain.sslStatus === 'valid' ? '✓' : '✗'}
SSL
{domain.dnsHealth === 'healthy' ? '✓' : domain.dnsHealth === 'issues' ? '!' : '✗'}
DNS
))}
{/* Traffic Analytics */}

Network Traffic Analysis

Traffic visualization loaded from Plausible/Analytics API

Total: 145.2K visits (24h) • Peak: 8,420 (14:00 UTC)

)} {/* ============================================ */} {/* DATA TRANSPARENCY TAB */} {/* ============================================ */} {activeTab === 'data' && (

Data Usage Transparency

Human Verification Active

Data Processing Pipeline

{dataUsageMetrics.map((metric, idx) => ( ))}
Category Source Records Processed Storage Last Updated Human Verified
{metric.category} {metric.source} {metric.recordsProcessed.toLocaleString()} {metric.storageUsed} {metric.lastUpdated} {metric.humanVerified ? ( Verified ) : ( Pending )}

Privacy & Retention

Wallet addresses anonymized
PII purged after 90 days
Contract data retained indefinitely
Public blockchain data
Snitch reports encrypted

AI Decision Audit Log

AUTO-APPROVED 2m ago
Low-risk contract scan (score: 23/100)
No human intervention required
HUMAN REVIEW REQUESTED 15m ago
High-value transfer (50+ ETH)
Awaiting authorization
HUMAN OVERRULED 1h ago
Auto-blocked contract marked safe by admin
Transaction hash: 0x...a1b2
)}
{/* Terminal Overlay */} {terminalOpen && (
Secure Terminal // Root Access
# RMI Command Interface v2.0
# Type 'help' for available commands
root@rmi-command:~$ _
)} {/* Footer */}
RMI COMMAND v2.0 SECURITY CLASSIFICATION: TOP SECRET//SCI Authorized Personnel Only All Activity Logged
); }; // Additional icon component needed const HeartPulse = ({ className }: { className?: string }) => ( ); export default AdvisorPanel;