Skip to content

Conversation

@ollie-anthropic
Copy link
Collaborator

@ollie-anthropic ollie-anthropic commented Jan 22, 2026

Summary

Simplifies the sandbox dependency checking API to a single cross-platform function that returns structured results. This allows us to display to the user information about seccomp availability.

Changes

  • Rename DependencyCheckSandboxDependencyCheck
  • checkDependencies() now returns { errors: string[], warnings: string[] } instead of boolean
    • errors: Required deps missing (bwrap/socat on Linux, unsupported platform)
    • warnings: Optional deps missing (seccomp filter)
  • Mac: Always returns { errors: [], warnings: [] } — uses built-in sandbox-exec
  • Linux: bwrap/socat missing → errors, seccomp missing → warnings
  • Remove from public API: checkLinuxDependencies, getLinuxDependencyStatus
  • Add tests: Comprehensive tests for all dependency combinations with proper mocking

- Rename DependencyCheck -> SandboxDependencyCheck
- checkDependencies() now returns { errors, warnings } instead of boolean
- Mac: always returns { errors: [], warnings: [] } (no system deps)
- Linux: bwrap/socat missing -> errors, seccomp missing -> warnings
- Unsupported platform: returns errors
- Remove checkLinuxDependencies and getLinuxDependencyStatus from public API
- Remove ripgrep check from checkDependencies (bundled, not a system dep)
- Add comprehensive tests for dependency checking
@ollie-anthropic ollie-anthropic force-pushed the ollie/unified-dependency-check branch from a63b33c to ad5d35c Compare January 22, 2026 20:31
…rrect arch values

- Replace hasLinuxSandboxDependenciesSync with checkLinuxDependencies
- Fix process.arch comparisons: x86_64 -> x64, aarch64 -> arm64
- Remove duplicate arch conditions
@ollie-anthropic ollie-anthropic merged commit 824777d into main Jan 23, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants