<# .SYNOPSIS Print the proposed spec (Markdown) for the user to approve before generation. .DESCRIPTION Interview step 4. Works on a draft once every stage except "review" is complete. Shows scope, assumptions, target and toolchain, the first milestone, acceptance checks and the destination folder (and whether it is free). Exit 1 if the brief is not complete enough. .EXAMPLE pwsh -File tools/Show-FoundrySpec.ps1 drafts/my-game.json #> [CmdletBinding()] param([Parameter(Mandatory, Position = 0)][string]$Path) Import-Module (Join-Path $PSScriptRoot 'Foundry.psm1') -Force try { $full = (Resolve-Path -LiteralPath $Path).ProviderPath Format-FoundrySpecPreview -Brief (Read-FoundryJson $full) -BriefPath $full } catch { Write-Host $_.Exception.Message -ForegroundColor Yellow exit 1 }