MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_plugin_installed

Method is_plugin_installed

atomic-agent/src/hooks/opencode.rs:377–381  ·  view source on GitHub ↗

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).

()

Source from the content-addressed store, hash-verified

375 /// Returns `true` if `~/.config/opencode/plugins/atomic-hooks.ts` exists
376 /// (as a file or valid symlink).
377 fn is_plugin_installed() -> bool {
378 Self::global_config_dir()
379 .map(|d| d.join("plugins").join("atomic-hooks.ts").exists())
380 .unwrap_or(false)
381 }
382}
383
384impl Default for OpenCodeHook {

Callers

nothing calls this directly

Calls 2

global_config_dirFunction · 0.85
existsMethod · 0.45

Tested by

no test coverage detected