// Initialize Multi-LLM Architecture const kernel = new SecureCognitiveKernel(); // Initialize Security Orchestrator first (for protection) let securityOrchestrator = null; if (window.securityOrchestrator) { securityOrchestrator = window.securityOrchestrator; } const orchestrator = new LLMOrchestrator(kernel, securityOrchestrator); const commandHandler = new CommandHandler(kernel, orchestrator); // Initialize AEGIS-5 Bridge (Java/C++/Python hybrid engine) let aegis5Bridge = null; window.initAegis5 = async function() { aegis5Bridge = new Aegis5Bridge(kernel, securityOrchestrator); await aegis5Bridge.initialize('hybrid'); // Mise à jour UI document.getElementById('aegis5-status').textContent = 'ONLINE'; document.getElementById('aegis5-status').classList.remove('bg-orange-900/50', 'text-orange-700'); document.getElementById('aegis5-status').classList.add('bg-green-900/50', 'text-green-400', 'border-green-700'); updateAegis5UI(); logAgent('AEGIS-5: Bridge connected - 3 layers active (Java/C++/Python)'); // Démarrer monitoring automatique setInterval(updateAegis5UI, 2000); // Event listeners AEGIS-5 window.addEventListener('aegis5:blocked', (e) => { const detail = e.detail || {}; logAgent(`AEGIS-5: THREAT BLOCKED - ${detail.reason || 'Unknown'} (severity: ${detail.severity || '?'})`); updateAegis5UI(); }); window.addEventListener('aegis5:panic', (e) => { logAgent('AEGIS-5: EMERGENCY MODE ACTIVATED'); document.getElementById('aegis5-status').textContent = 'PANIC'; document.getElementById('aegis5-status').classList.remove('bg-green-900/50', 'text-green-400'); document.getElementById('aegis5-status').classList.add('bg-red-900/50', 'text-red-400', 'animate-pulse'); }); }; function updateAegis5UI() { if (!aegis5Bridge) return; const status = aegis5Bridge.getStatus(); // Mise à jour statuts couches const javaStatus = status.layers.java.status; document.getElementById('aegis-java-status').textContent = javaStatus.toUpperCase(); document.getElementById('aegis-java-ping').textContent = status.layers.java.latency + 'ms'; const cppStatus = status.layers.cpp.status; document.getElementById('aegis-cpp-status').textContent = cppStatus.toUpperCase(); document.getElementById('aegis-cpp-fps').textContent = status.layers.cpp.fps + ' FPS'; const pyStatus = status.layers.python.status; document.getElementById('aegis-py-status').textContent = pyStatus.toUpperCase(); document.getElementById('aegis-py-mem').textContent = status.layers.python.predictionsTotal + ' pred'; // Compteurs document.getElementById('aegis-events').textContent = status.stats.eventsProcessed; document.getElementById('aegis-threats').textContent = status.stats.threatsBlocked; // Log récent if (status.threats && status.threats.length > 0) { const log = document.getElementById('aegis-log'); const lastThreats = status.threats.slice(-3); log.innerHTML = lastThreats.map(t => `
Neural Architecture for AI/ML Systems