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

Method is_plugin_installed

atomic-agent/src/hooks/opencode.rs:372–376  ·  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

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
379impl Default for OpenCodeHook {

Callers

nothing calls this directly

Calls 2

global_config_dirFunction · 0.85
existsMethod · 0.45

Tested by

no test coverage detected