test-syntax.ps1

try {
    Import-Module ./iFacto.AICodeReview.psd1 -Force -ErrorAction Stop
    Write-Host "✅ Module imported successfully"
} catch {
    Write-Host "❌ Error importing module:" -ForegroundColor Red
    Write-Host $_.Exception.Message -ForegroundColor Red
    if ($_.InvocationInfo) {
        Write-Host "At: $($_.InvocationInfo.ScriptName):$($_.InvocationInfo.ScriptLineNumber)" -ForegroundColor Yellow
    }
    exit 1
}