@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%\.pi\agent" --pi-cmd "node %SPROUTCLAW_DIR%\packages\coding-agent\src\cli.ts"

echo.
pause >nul
