$ErrorActionPreference = "Stop"

$Python = "C:\Users\50536\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe"
$Node = "C:\Users\50536\.cache\codex-runtimes\codex-primary-runtime\dependencies\node\bin\node.exe"

Write-Host "Checking FastAPI service Python syntax..."
& $Python -m compileall ai-services\vision-inference\app ai-services\pointcloud-analysis\app

Write-Host "Checking frontend JSON files..."
& $Node -e "const fs=require('fs'); for (const f of ['frontend/package.json','frontend/tsconfig.json']) JSON.parse(fs.readFileSync(f,'utf8')); console.log('frontend json files ok')"

Write-Host "Checking Docker Compose configuration..."
docker compose -f infra/docker-compose.yml config | Out-Null

Write-Host "Static checks completed."
