feat: implement full-stack TaskPilot scheduler

This commit is contained in:
2026-10-18 22:05:45 +08:00
parent d88c21753d
commit 8ce02af13a
72 changed files with 17812 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
$ErrorActionPreference = 'Stop'
$projectRoot = Split-Path -Parent $PSScriptRoot
$contractPath = Join-Path $projectRoot 'contracts\openapi.json'
function Assert-ExitCode {
param([string]$Step)
if ($LASTEXITCODE -ne 0) {
throw "$Step failed with exit code $LASTEXITCODE"
}
}
Push-Location $projectRoot
try {
cargo run --quiet --manifest-path backend\Cargo.toml --bin export-openapi -- $contractPath
Assert-ExitCode 'OpenAPI export'
pnpm --dir frontend exec openapi-typescript ..\contracts\openapi.json -o src\api\generated.ts
Assert-ExitCode 'TypeScript API generation'
}
finally {
Pop-Location
}