Expand description
Sandboxed command execution with timeouts and environment isolation.
Structs§
- Lint
Issue - Parsed lint issue from an external tool.
- Test
Result - Parse pytest output to extract pass/fail counts.
- Tool
Result - Result of running an external tool.
Functions§
- parse_
pytest_ output - parse_
ruff_ output - Parse ruff output into structured lint issues.
- run_
tool - Run a command in a sandboxed environment.
- run_
tool_ sandboxed - Run a tool with network access denied (macOS sandbox-exec). Falls back to normal execution on non-macOS or if sandbox-exec unavailable.
- run_
tool_ with_ timeout - tool_
exists - Check if a tool is available (in PATH or as absolute path).
Cross-platform: uses
whichon Unix,whereon Windows. - validate_
path_ within - Validate that a relative path stays within
root.