# ============================================================================== # ChronoGrid P2P - Agent Verification Pipeline # Runs compilation and specification alignment checks # ============================================================================== $ErrorActionPreference = "Continue" Write-Host "--- RUNNING AGENT VERIFICATION PIPELINE ---" -ForegroundColor Cyan # 1. Check Rust Compilation for chronogrid_core Write-Host "1. Checking chronogrid_core..." -ForegroundColor Yellow Set-Location "$PSScriptRoot\..\crates\chronogrid_core" cargo check --quiet if ($LASTEXITCODE -ne 0) { Write-Host "FAILED: Rust compilation errors detected in chronogrid_core." -ForegroundColor Red Exit 1 } # 2. Check Rust Compilation for chronogrid_ffi Write-Host "2. Checking chronogrid_ffi..." -ForegroundColor Yellow Set-Location "$PSScriptRoot\..\crates\chronogrid_ffi" cargo check --quiet if ($LASTEXITCODE -ne 0) { Write-Host "FAILED: Rust compilation errors detected in chronogrid_ffi." -ForegroundColor Red Exit 1 } # 3. Check Flutter Code Formatting & Dependencies Write-Host "3. Checking Flutter Shell..." -ForegroundColor Yellow Set-Location "$PSScriptRoot\..\apps\chronogrid_flutter" flutter analyze if ($LASTEXITCODE -ne 0) { Write-Host "FAILED: Flutter analysis errors detected." -ForegroundColor Red Exit 1 } Write-Host "--- ALL VERIFICATION CHECKS PASSED SUCCESSFULLY ---" -ForegroundColor Green Exit 0