Review changes batch 4 of 6

This commit is contained in:
2026-07-20 06:52:24 +08:00
parent 3e3251a4fc
commit 0d0645a112
12 changed files with 314 additions and 74 deletions
+10
View File
@@ -0,0 +1,10 @@
$ErrorActionPreference = 'Stop'
$root = Split-Path -Parent $PSScriptRoot
$capture = Get-Content -LiteralPath (Join-Path $root 'scripts/capture-chrome-page.js') -Raw -Encoding utf8
foreach ($required in @('prepareG09State', 'g09-withdraw-dialog', 'g09-withdrawn')) {
if ($capture -notmatch [regex]::Escape($required)) { throw "G09 capture state missing: $required" }
}
if ($capture -notmatch 'await prepareG09State\(send, action\)') { throw 'Capture runner does not prepare G09 states' }
Write-Output 'CAPTURE-G09-STATES-CONTRACT PASS'