@echo off setlocal EnableExtensions rem Build the evidence-bounded Characterization working draft without LaTeX. rem This file must remain in the repository root. pushd "%~dp0" || ( echo ERROR: Cannot open the report repository folder. exit /b 1 ) where uv >nul 2>&1 if errorlevel 1 ( echo ERROR: uv was not found on PATH. echo Install uv from https://docs.astral.sh/uv/ and open a new Command Prompt. popd exit /b 1 ) rem Keep uv's cache within the authorized report-workflow folder. set "UV_CACHE_DIR=%CD%\Report\python_script\uv-cache" echo Building the Characterization working draft with uv... uv run --script "Report\python_script\build_characterization_report.py" --workbook "FAT_Checklist.xlsx" --agent-data "Report\python_script\Agent_Report_Data.json" --manifest "Report\python_script\Report_Input_Manifest.json" --output "Report\Linear_Stage_Characterization_Working_Draft.pdf" if errorlevel 1 ( echo. echo ERROR: Report build failed. Read the message above; do not use a partial PDF. set "BUILD_EXIT_CODE=1" ) else ( echo. echo PDF created: Report\Linear_Stage_Characterization_Working_Draft.pdf set "BUILD_EXIT_CODE=0" ) echo. echo This window will remain open. Close it when you have finished reviewing the output. popd cmd /k endlocal & exit /b %BUILD_EXIT_CODE%