[agent/claude:sonnet] Implement the plan at docs/plans/2026-03-18-absorb-sail-prog... #3

Merged
Virgil merged 1 commit from agent/implement-the-plan-at-docs-plans-2026-03 into main 2026-03-18 15:07:18 +00:00

1 commit

Author SHA1 Message Date
Snider
87b16ca41c feat(process): add Program struct with Find, Run, RunDir
Add Program to the process package as a lightweight tool-finder and runner.
Find() resolves a binary via exec.LookPath (wrapping ErrProgramNotFound),
Run() and RunDir() execute the binary and return trimmed combined output.
Includes 7 tests covering happy paths, error paths, and the errors.Is contract.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-18 15:07:03 +00:00