$ErrorActionPreference = "Stop"

Write-Host "RepoKey Vivado AI environment check"

if (Test-Path -LiteralPath ".\bin\repokey\repokey.exe") {
    Write-Host "[OK] bin/repokey/repokey.exe"
} else {
    Write-Host "[MISSING] bin/repokey/repokey.exe"
    exit 1
}

& ".\bin\repokey\repokey.exe" check-env
