$ErrorActionPreference = 'Stop' $root = Split-Path -Parent $PSScriptRoot $componentPath = Join-Path $root 'components/ModulePage.vue' if (-not (Test-Path -LiteralPath $componentPath)) { throw 'Missing shared module page component' } $component = Get-Content -LiteralPath $componentPath -Raw -Encoding utf8 foreach ($anchor in @( "const moduleState = ref('ready')", 'module-state--ready', 'module-state--empty', 'module-state--success', 'module-state--error', 'g03-create-flow-panel.png', 'g06-search-input-wide.png', 'application-status-card.png', '