secubox-openwrt/package/secubox/secubox-console/files/secubox-frontend
CyberMind-FR d1e713e282 feat(console): Add Linux host frontend with modern TUI
- secubox_frontend.py: Full-featured Textual TUI application
  - Multi-device dashboard with real-time status monitoring
  - Device discovery (network scan, mDNS, mesh API)
  - SSH-based remote command execution and backup orchestration
  - Tabbed interface: Dashboard, Alerts, Mesh, Settings
  - Graceful degradation: Textual → Rich → Simple CLI

- Support files:
  - install.sh: One-line installer with dependency handling
  - requirements.txt: Python dependencies (textual, paramiko, httpx, rich)
  - secubox-frontend: Launcher script with path detection

- Updated README.md: Documents both CLI console and TUI frontend

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 19:46:28 +01:00

26 lines
644 B
Python

#!/usr/bin/env python3
# SecuBox Frontend Launcher
# Install: pip install textual paramiko httpx rich
import sys
from pathlib import Path
# Add lib path
lib_path = Path(__file__).parent / "lib" / "secubox-console"
if lib_path.exists():
sys.path.insert(0, str(lib_path))
# Try local path
local_path = Path(__file__).parent / "secubox_frontend.py"
if local_path.exists():
sys.path.insert(0, str(local_path.parent))
try:
from secubox_frontend import main
main()
except ImportError as e:
print(f"Import error: {e}")
print("\nInstall dependencies:")
print(" pip install textual paramiko httpx rich")
sys.exit(1)