Write-Host "========================================="
Write-Host "YaoAI Video - Environment Setup Script"
Write-Host "========================================="
Write-Host ""
Write-Host "This script will install Node.js, Java 17, and Docker Desktop."
Write-Host "It may take several minutes to download and install."
Write-Host ""

Write-Host "[1/3] Installing Node.js LTS..."
winget install OpenJS.NodeJS.LTS --silent --accept-package-agreements --accept-source-agreements

Write-Host "[2/3] Installing Java 17 (Microsoft OpenJDK 17)..."
winget install Microsoft.OpenJDK.17 --silent --accept-package-agreements --accept-source-agreements

Write-Host "[3/3] Installing Docker Desktop..."
winget install Docker.DockerDesktop --silent --accept-package-agreements --accept-source-agreements

Write-Host ""
Write-Host "========================================="
Write-Host "Installation process finished."
Write-Host "IMPORTANT: You may need to RESTART your computer to complete Docker Desktop setup."
Write-Host "After restarting, please reopen Trae to continue."
Write-Host "========================================="
Write-Host "Press any key to close this window..."
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
