@echo off
setlocal
cd /d "%~dp0"
set "PY=C:\Users\13636\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe"
set "LOG=%~dp0send-summary.log"

echo Sending Feishu summary...
echo Sending Feishu summary... > "%LOG%"
echo Project: %CD% >> "%LOG%"
echo Python: %PY% >> "%LOG%"
echo. >> "%LOG%"

if not exist "%PY%" (
  echo Python not found: %PY%
  echo Python not found: %PY% >> "%LOG%"
  goto END
)

"%PY%" -m daily_report.scheduled summary >> "%LOG%" 2>&1
type "%LOG%"

:END
echo.
echo Log file: %LOG%
echo Please check the Feishu group. If there is an error, send Codex a screenshot.
pause
