@echo off
rem ---- Config (edit if your sproutclaw path differs) ----
set SPROUTCLAW_DIR=D:\SmyProjects\AI\sproutclaw
set BACKEND_PORT=19133
rem -------------------------------------------------------

cd /d "%~dp0backend"
echo Starting Go backend on port %BACKEND_PORT%...
go run ./cmd/server --port %BACKEND_PORT% --agent-dir "%SPROUTCLAW_DIR%\.sproutclaw\agent" --repo-root "%SPROUTCLAW_DIR%" --pi-cmd "node %SPROUTCLAW_DIR%\packages\coding-agent\dist\cli.js"

echo.
pause >nul
