Check whether the `atomic-opencode` plugin is installed globally. Returns `true` if `~/.config/opencode/plugins/atomic-hooks.ts` exists (as a file or valid symlink).
()
| 370 | /// Returns `true` if `~/.config/opencode/plugins/atomic-hooks.ts` exists |
| 371 | /// (as a file or valid symlink). |
| 372 | fn is_plugin_installed() -> bool { |
| 373 | Self::global_config_dir() |
| 374 | .map(|d| d.join("plugins").join("atomic-hooks.ts").exists()) |
| 375 | .unwrap_or(false) |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | impl Default for OpenCodeHook { |
nothing calls this directly
no test coverage detected