-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
54 lines (47 loc) · 1.38 KB
/
setup.bat
File metadata and controls
54 lines (47 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@echo off
REM AI Harness - One-time setup
REM Run this once to install everything
echo.
echo ========================================
echo AI Harness - Setup
echo ========================================
echo.
REM Check Python
python --version >nul 2>&1
IF %ERRORLEVEL% NEQ 0 (
echo ERROR: Python is not installed or not in PATH.
echo Please install Python 3.11+ from python.org
pause
exit /b 1
)
echo [1/4] Creating virtual environment...
cd /d "%~dp0"
python -m venv .venv
call .venv\Scripts\activate.bat
echo [2/4] Installing dependencies...
pip install --upgrade pip >nul 2>&1
pip install -e ".[dev]"
echo [3/4] Installing Playwright browsers...
python -m playwright install chromium
echo [4/4] Creating data directories...
python -c "from ai_harness.config import load_config; load_config()"
echo.
echo ========================================
echo Setup complete!
echo ========================================
echo.
echo Next steps:
echo.
echo 1. Load the Edge extension:
echo - Open Edge and go to edge://extensions
echo - Enable "Developer mode" (toggle in bottom-left)
echo - Click "Load unpacked"
echo - Select the folder: %~dp0edge_extension
echo.
echo 2. Launch the harness:
echo - Double-click launch_harness.bat
echo - Or run: python -m ai_harness.main
echo.
echo That's it! The harness will connect to Edge automatically.
echo.
pause