fix(ci): accept QMD sandbox exclusion and satisfy ruff E731
CI / CI configuration security checks (push) Successful in 3s
CI / Capabilities and shell quality (push) Successful in 13s
CI / Python tests and compilation (push) Successful in 26s
CI / QMD unit tests (push) Successful in 5s
CI / Build and inspect generated packages (push) Successful in 18s
CI / PowerShell tests on Ubuntu (push) Failing after 51s
CI / Installed client configuration smoke tests (push) Canceled after 54s
CI / Bash integration and installation guards (push) Canceled after 55s
CI / CI configuration security checks (push) Successful in 3s
CI / Capabilities and shell quality (push) Successful in 13s
CI / Python tests and compilation (push) Successful in 26s
CI / QMD unit tests (push) Successful in 5s
CI / Build and inspect generated packages (push) Successful in 18s
CI / PowerShell tests on Ubuntu (push) Failing after 51s
CI / Installed client configuration smoke tests (push) Canceled after 54s
CI / Bash integration and installation guards (push) Canceled after 55s
- validate-config: allow sandbox.excludedCommands only with the exact QMD search command, keeping the sandbox fail-closed - shell package tests: expect the excludedCommands entry - tests: replace assigned lambdas with functions (ruff E731) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
09e8e832ed
commit
49636323f0
5 files changed
+15
-7
No files matched your search
@@ -72,7 +72,7 @@ foreach ($shell in @('powershell','bash')) {
|
||||
throw "Claude auto permission mode is missing in $package"
|
||||
} elseif ($settings.env.CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS -ne '5' -or $settings.env.CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH -ne '1') {
|
||||
throw "Claude subagent limits are missing in $package"
|
||||
} elseif ($sandboxSupported -and ($settings.sandbox.enabled -ne $true -or $settings.sandbox.allowUnsandboxedCommands -ne $false -or $settings.sandbox.failIfUnavailable -ne $true -or (@($settings.sandbox.network.allowedDomains) -join ',') -ne 'mcp.context7.com' -or @($settings.sandbox.PSObject.Properties).Count -ne 4)) {
|
||||
} elseif ($sandboxSupported -and ($settings.sandbox.enabled -ne $true -or $settings.sandbox.allowUnsandboxedCommands -ne $false -or $settings.sandbox.failIfUnavailable -ne $true -or (@($settings.sandbox.network.allowedDomains) -join ',') -ne 'mcp.context7.com' -or (@($settings.sandbox.excludedCommands) -join ',') -ne 'node "$HOME/.my-ai-configuration/qmd/qmd-search.mjs" *' -or @($settings.sandbox.PSObject.Properties).Count -ne 5)) {
|
||||
throw "Claude strict sandbox is missing in $package"
|
||||
} elseif (-not $sandboxSupported -and ($settings.sandbox.enabled -ne $false -or @($settings.sandbox.PSObject.Properties).Count -ne 1)) {
|
||||
throw "Claude sandbox must be disabled in $package"
|
||||
|
||||
Reference in new issue
Block a user