- Renamed all AppState references to MainAppState for better naming consistency
- Fixed duplicate declaration error by consolidating state management
- Added null checks to prevent TypeError in DOM manipulation
- Added try-catch blocks for JSON parsing to handle malformed data
- Resolved JavaScript conflicts and improved error handling
- Maintained backward compatibility with window.AppState assignment
- Introduce /api/command/exec endpoint in webui-server.sh for executing a limited set of safe shell commands with JSON response.
- Implement security checks to restrict allowed commands and return appropriate HTTP status codes.
- Add HTTPClient in webroot/js/api.js to communicate with backend API, including execCommand method.
- Enhance ksu mock object to try HTTPClient execCommand first, then fallback to mock implementation.
- Add accessibility improvements in CSS with skip-link styles.
This enables secure remote command execution via the web UI and improves development mode API simulation.
Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
- Introduce analytics-engine.sh for system and module metrics, anomaly detection, and reporting
- Enhance backup-engine.sh with incremental backups, compression, encryption, and progress tracking
- Upgrade boot-monitor.sh with ML-based anomaly detection, adaptive timeouts, and predictive failure analysis
- Add security-framework.sh for advanced security, encryption, session management, and intrusion detection
- Improve service.sh with performance monitoring, job management, and optimized service startup
- Extend webroot/js/api.js with caching, rate limiting, performance metrics, and robust command execution
These changes provide comprehensive monitoring, security, and backup capabilities with improved reliability and performance.
Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>