fix(build): skip Codex schema check for Claude-only installs

Install and update always build every client package, so a Claude-only
run warned that the Codex CLI was missing even though no Codex package is
installed. Add -SkipCodexSchema / --skip-codex-schema to the builds and
pass it from install and update when only Claude is selected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Julian LechnerandClaude Opus 5.5 committed 2026-11-16 09:37:14 +01:00
1 parent adc4745d10
commit 3fcd7bcbfd
9 files changed
+34 -6

No files matched your search

+9
View File
@@ -43,6 +43,15 @@ $actualFiles = @(Get-ChildItem $baselineGenerated -File -Recurse | ForEach-Objec
if (Compare-Object $expectedFiles $actualFiles) { throw 'generated/ is incomplete after two parallel builds.' }
if (@(Get-ChildItem $baseline -Force | Where-Object Name -like 'generated.*').Count) { throw 'Parallel builds left a build directory, retired tree, or lock behind.' }
# A Codex CLI that rejects every config proves the schema check runs by default and is skipped on request.
function codex { $global:LASTEXITCODE = 1; 'unsupported setting' }
try {
& (Join-Path $baseline 'scripts/commands/build.ps1') -Summary -SkipCodexSchema 3>&1 | Out-Null
$schemaChecked = $false
try { & (Join-Path $baseline 'scripts/commands/build.ps1') -Summary 2>&1 | Out-Null } catch { $schemaChecked = $_.Exception.Message -match 'Codex schema validation failed' }
if (-not $schemaChecked) { throw 'The build must run the Codex schema check unless it is skipped.' }
} finally { Remove-Item function:codex -ErrorAction SilentlyContinue }
Test-BuildFails 'invalid Claude settings.json' {
param($copy)
Add-Content (Join-Path $copy 'adapters/claude/config/settings.json') '} this is not json {'