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

Function event_list_has_atomic

atomic-agent/src/hooks/agy.rs:1143–1145  ·  view source on GitHub ↗

Check whether the given event list (direct or matcher-wrapped) already contains an Atomic hook command.

(list: &[Value])

Source from the content-addressed store, hash-verified

1141/// Check whether the given event list (direct or matcher-wrapped) already
1142/// contains an Atomic hook command.
1143fn event_list_has_atomic(list: &[Value]) -> bool {
1144 direct_list_has_atomic(list) || matcher_list_has_atomic(list)
1145}
1146
1147/// Add a handler to a direct handler list (`PreInvocation`, `Stop`, ...).
1148///

Callers 3

add_direct_handlerFunction · 0.85
add_matcher_handlerFunction · 0.85

Calls 2

direct_list_has_atomicFunction · 0.85
matcher_list_has_atomicFunction · 0.85

Tested by

no test coverage detected