@echo off
setlocal enabledelayedexpansion
title Zoth Studio v2.6.0 - Local-First AI Agent Powerhouse
echo ============================================================
echo   ZOTH STUDIO v2.6.0 (Windows Edition)
echo   Local-First AI Agent Powerhouse & WebGL Omniverse
echo ============================================================
echo.

where python >nul 2>nul
if %errorlevel% neq 0 (
    where py >nul 2>nul
    if %errorlevel% neq 0 (
        echo [ERROR] Python 3 was not found in your PATH.
        echo Please install Python 3.10+ from https://python.org/ or Microsoft Store.
        pause
        exit /b 1
    ) else (
        set PYTHON_CMD=py -3
    )
) else (
    set PYTHON_CMD=python
)

echo [INFO] Starting Zoth Studio Services...
echo [INFO] Operator Deck: http://127.0.0.1:8484/
echo [INFO] Public Hub:    http://127.0.0.1:8088/
echo.

set DIR=%~dp0
set PYTHONPATH=%DIR%orchestrator;%PYTHONPATH%

start "" http://127.0.0.1:8484/
%PYTHON_CMD% "%DIR%orchestrator\orchestrator.py" serve --host 127.0.0.1 --port 8484
pause
