@echo off
setlocal
set "HERE=%~dp0"
set "NODE=%HERE%node\node.exe"
set "ENTRY=%HERE%app\node_modules\@deepseek-ai\dsh\lib\bin.js"
if not exist "%NODE%" (
  echo [ERROR] node.exe not found at %NODE%
  pause
  exit /b 1
)
rem dsh requires a profile; with no arguments default to the Web UI profile.
if "%~1"=="" (
  "%NODE%" "%ENTRY%" web
) else (
  "%NODE%" "%ENTRY%" %*
)
