v23: React + TypeScript SPA migration
Complete frontend rewrite from vanilla HTML/CSS/JS to React 19 + TypeScript + Tailwind CSS v4. Frontend (frontend/commander-ai-lab-ui/): - Vite + React 19 + TypeScript + Tailwind CSS v4 + React Router - 7 pages: BatchSim, Collection, Decks, AutoGen, Simulator, Coach, Training - Reusable components: Spinner, StatusBadge, CardImage, ManaSymbols, EmptyState - Full typed API client layer (8 modules matching all backend endpoints) - Recharts for mana curves, win rate charts, progress bars - Lucide icons throughout - Custom dark theme with MTG mana color tokens - Code splitting (recharts + react in separate chunks) Backend (lab_api.py): - SPA-aware static file serving with catch-all for client-side routing - Fallback to legacy ui/ folder if React dist not built - Updated startup log with SPA route list Build system: - .gitignore added (was missing - removes pyc, db, node_modules, etc.) - build-full-installer-v2.py: v23 with Node.js check + React build step - Vite build config with manual chunks for optimal loading Also includes: V3 deck generator fixes, coach improvements, DeepSeek sim modules
This commit is contained in:
1 parent
e6b5e0cedb
commit
a5fe8cb3fa
376 files changed
+18367
-22656
No files matched your search
@@ -0,0 +1,54 @@
|
||||
@echo off
|
||||
REM ═══════════════════════════════════════════════════════════
|
||||
REM Commander AI Lab — Overnight AFK Runner
|
||||
REM ═══════════════════════════════════════════════════════════
|
||||
REM
|
||||
REM Runs batch simulations for ~11.5 hours, then auto-trains
|
||||
REM the ML policy network. Designed to run while you sleep.
|
||||
REM
|
||||
REM PREREQUISITES:
|
||||
REM 1. Lab server must already be running (start-lab.bat)
|
||||
REM 2. LM Studio must be running with DeepSeek loaded
|
||||
REM 3. At least 1 deck available in the lab
|
||||
REM
|
||||
REM USAGE:
|
||||
REM Double-click this file, or run from command prompt:
|
||||
REM overnight-run.bat
|
||||
REM
|
||||
REM To customize, edit the settings below or pass arguments:
|
||||
REM overnight-run.bat --games 50 --hours 8 --epochs 200
|
||||
REM ═══════════════════════════════════════════════════════════
|
||||
|
||||
echo.
|
||||
echo ╔══════════════════════════════════════════════════╗
|
||||
echo ║ Commander AI Lab — Overnight AFK Runner ║
|
||||
echo ╠══════════════════════════════════════════════════╣
|
||||
echo ║ ║
|
||||
echo ║ This will run batch simulations for ~11.5h ║
|
||||
echo ║ then auto-train the ML policy network. ║
|
||||
echo ║ ║
|
||||
echo ║ Make sure: ║
|
||||
echo ║ - Lab server is running (start-lab.bat) ║
|
||||
echo ║ - LM Studio has DeepSeek loaded ║
|
||||
echo ║ - Power settings: prevent sleep ║
|
||||
echo ║ ║
|
||||
echo ║ Press Ctrl+C at any time to stop early. ║
|
||||
echo ║ ║
|
||||
echo ╚══════════════════════════════════════════════════╝
|
||||
echo.
|
||||
|
||||
REM ── Pause to let user read the message ─────────────────
|
||||
timeout /t 5 /nobreak >nul
|
||||
|
||||
REM ── Run the Python overnight script ────────────────────
|
||||
python "%~dp0overnight-run.py" %*
|
||||
|
||||
if %ERRORLEVEL% neq 0 (
|
||||
echo.
|
||||
echo Overnight run ended with errors. Check the output above.
|
||||
echo.
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Overnight run complete. Press any key to close.
|
||||
pause >nul
|
||||
Reference in new issue
Block a user