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:402–406  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

400}
401
402fn hooks_file_has_atomic_hooks(path: &Path) -> bool {
403 std::fs::read_to_string(path)
404 .map(|content| content.contains(ATOMIC_HOOK_PREFIX))
405 .unwrap_or(false)
406}
407
408fn add_hook(
409 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