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

Function group_has_atomic_commands

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

Returns `true` if any event list in the group contains an Atomic hook.

(group: &Value)

Source from the content-addressed store, hash-verified

1273
1274/// Returns `true` if any event list in the group contains an Atomic hook.
1275fn group_has_atomic_commands(group: &Value) -> bool {
1276 match group.as_object() {
1277 Some(obj) => obj
1278 .values()
1279 .filter_map(Value::as_array)
1280 .any(|list| event_list_has_atomic(list)),
1281 None => false,
1282 }
1283}
1284
1285// Tests
1286

Callers

nothing calls this directly

Calls 1

event_list_has_atomicFunction · 0.85

Tested by

no test coverage detected