(&self)
| 606 | } |
| 607 | |
| 608 | fn supported_hooks(&self) -> Vec<HookType> { |
| 609 | vec![ |
| 610 | HookType::SessionStart, |
| 611 | HookType::SessionEnd, |
| 612 | HookType::TurnStart, |
| 613 | HookType::TurnEnd, |
| 614 | HookType::PreToolUse, |
| 615 | HookType::PostToolUse, |
| 616 | ] |
| 617 | } |
| 618 | |
| 619 | fn detect_presence(&self, repo_root: &Path) -> bool { |
| 620 | // OpenCode is present if the repo has a .opencode directory OR if |
no outgoing calls