MCPcopy Index your code
hub / github.com/AI45Lab/Code / register

Method register

core/src/hooks/engine.rs:252–255  ·  view source on GitHub ↗

Register a hook

(&self, hook: Hook)

Source from the content-addressed store, hash-verified

250
251 /// Register a hook
252 pub fn register(&self, hook: Hook) {
253 let mut hooks = write_or_recover(&self.hooks);
254 hooks.insert(hook.id.clone(), hook);
255 }
256
257 /// Unregister a hook
258 pub fn unregister(&self, hook_id: &str) -> Option<Hook> {

Callers 15

register_agent_dirMethod · 0.45
register_task_capabilityFunction · 0.45
register_hookMethod · 0.45
registerFunction · 0.45
test_all_hooksFunction · 0.45

Calls 3

write_or_recoverFunction · 0.85
insertMethod · 0.45
cloneMethod · 0.45