$ErrorActionPreference = "Stop"
$ProjectRoot = Split-Path -Parent $PSScriptRoot
Push-Location (Join-Path $ProjectRoot "backend")
try {
    uv run python -m zbt.commands.inherit_stage_one
    if ($LASTEXITCODE -ne 0) { throw "第一阶段数据继承失败。" }
}
finally {
    Pop-Location
}
