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