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

Method register_hook_handler

core/src/agent_api/hook_control.rs:26–32  ·  view source on GitHub ↗
(
        &self,
        hook_id: &str,
        handler: Arc<dyn crate::hooks::HookHandler>,
    )

Source from the content-addressed store, hash-verified

24 }
25
26 pub(super) fn register_hook_handler(
27 &self,
28 hook_id: &str,
29 handler: Arc<dyn crate::hooks::HookHandler>,
30 ) {
31 self.session.hook_engine.register_handler(hook_id, handler);
32 }
33
34 pub(super) fn unregister_hook_handler(&self, hook_id: &str) {
35 self.session.hook_engine.unregister_handler(hook_id);

Callers

nothing calls this directly

Calls 1

register_handlerMethod · 0.80

Tested by

no test coverage detected