pub fn module() -> ModuleDescriptorExpand description
The observatory module: three read-only capabilities, none cached, because each is read
to learn what is true now: the capture of this process’s mesh, the recording the
repository carries, and the journal’s events above a cursor.
use majordomus_cli::capability::builtin::observatory::module;
use majordomus_cli::capability::Effect;
let m = module();
let ids: Vec<&str> = m.capabilities.iter().map(|e| e.capability.id.as_str()).collect();
assert_eq!(ids, ["observatory.capture", "observatory.replay", "observatory.events"]);
assert!(m.capabilities.iter().all(|e| e.capability.execution.effect == Effect::Read));