@echo off
setlocal
cd /d "%~dp0"
echo.
echo ============================================================
echo  TONGA R2 BACKFILL - LE WAND + b-VIBE
echo ============================================================
echo.
echo This will write the approved backfill scope to R2.
echo Existing image/asset targets will NOT be overwritten.
echo Existing JSON metadata is merged with backups.
echo.
set /p CONFIRM=Type APPLY to continue: 
if /I not "%CONFIRM%"=="APPLY" (
  echo Cancelled.
  pause
  exit /b 1
)
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0Backfill-LeWand-BVibe.ps1" -Mode Apply
set EC=%ERRORLEVEL%
echo.
echo PowerShell exit code: %EC%
pause
exit /b %EC%
