Provider is the interface for an agent CLI (e.g. Claude, Codex). Implementations live in internal/agent to avoid import cycles.
| 8 | // Provider is the interface for an agent CLI (e.g. Claude, Codex). |
| 9 | // Implementations live in internal/agent to avoid import cycles. |
| 10 | type Provider interface { |
| 11 | Name() string |
| 12 | CLIPath() string |
| 13 | LoopCommand(ctx context.Context, prompt, workDir string) *exec.Cmd |
| 14 | InteractiveCommand(workDir, prompt string) *exec.Cmd |
| 15 | // CleanOutput extracts JSON from the provider's output format (e.g., NDJSON). |
| 16 | // Returns the original output if no cleaning needed. |
| 17 | CleanOutput(output string) string |
| 18 | ParseLine(line string) *Event |
| 19 | LogFileName() string |
| 20 | } |
no outgoing calls
no test coverage detected