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

Function hooks_file_has_atomic_hooks

atomic-agent/src/hooks/codex.rs:406–410  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

404}
405
406fn hooks_file_has_atomic_hooks(path: &Path) -> bool {
407 std::fs::read_to_string(path)
408 .map(|content| content.contains(ATOMIC_HOOK_PREFIX))
409 .unwrap_or(false)
410}
411
412fn add_hook(
413 hooks: &mut Map<String, Value>,

Callers 2

is_installed_globalMethod · 0.85
is_installedMethod · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected