(&self)
| 596 | } |
| 597 | |
| 598 | fn supported_hooks(&self) -> Vec<HookType> { |
| 599 | vec![ |
| 600 | HookType::SessionStart, |
| 601 | HookType::SessionEnd, |
| 602 | HookType::TurnStart, |
| 603 | HookType::TurnEnd, |
| 604 | HookType::PreToolUse, |
| 605 | HookType::PostToolUse, |
| 606 | ] |
| 607 | } |
| 608 | |
| 609 | fn detect_presence(&self, repo_root: &Path) -> bool { |
| 610 | // OpenCode is present if the repo has a .opencode directory OR if |
no outgoing calls