@echo off
rem =========================================================
rem Rithmic Bridge Windows Launcher
rem Called from WSL2. Uses pushd to avoid UNC path issues.
rem =========================================================

rem Move to the project root directory (assigns temporary drive letter)
pushd "%~dp0\.."

echo [INFO] Working Directory: %CD%
echo [INFO] Setting up Environment...

rem Use Windows-specific virtual environment
set UV_PROJECT_ENVIRONMENT=.venv-win

rem Port configuration is expected to be passed via environment variables
rem from the caller (PowerShell/WSL2).

echo "[INFO] Starting Publisher (Mode: R|API+)..."
.\.venv-win\Scripts\python.exe -m rithmic_bridge.publisher --mode rapi

popd
