/** * AlgorithmPress Modules Integration * Initializes and connects all modules with the dock */ document.addEventListener('DOMContentLoaded', function() { console.log('Initializing AlgorithmPress modules...'); // Initialize Module Framework if available if (window.ModuleFramework) { window.ModuleFramework.initialize(); } // Initialize API Gateway if available if (window.ApiGateway) { window.ApiGateway.initialize(); } // Initialize plugin system if available if (window.PluginSystem) { window.PluginSystem.initialize(); } // Ensure dock is created ensureDockExists(); // Initialize modules initializeModules(); // Add module panels to DOM if they don't exist ensureModulePanelsExist(); console.log('AlgorithmPress modules initialized'); /** * Ensure dock exists */ function ensureDockExists() { if (document.getElementById('algorithm-press-dock')) { console.log('Dock already exists'); return; } console.log('Creating dock...'); // Create dock element const dock = document.createElement('div'); dock.id = 'algorithm-press-dock'; dock.className = 'algorithm-press-dock'; dock.innerHTML = `
Enable voice commands for the builder
Decentralized application platform
Demo application generator
Visual feedback for operations
Decentralized storage integration