MCPcopy Create free account
hub / github.com/AI45Lab/Code / map_event

Method map_event

core/src/ahp/executor.rs:745–753  ·  view source on GitHub ↗

Map A3S Code hook event to AHP event

(&self, event: &HookEvent)

Source from the content-addressed store, hash-verified

743
744 /// Map A3S Code hook event to AHP event
745 fn map_event(&self, event: &HookEvent) -> Option<AhpEvent> {
746 super::event_mapping::map_hook_event(
747 event,
748 &self.agent_id,
749 self.depth,
750 read_or_recover(&self.workspace).clone(),
751 self.build_context(),
752 )
753 }
754
755 /// Build EventContext with runtime state and client-exposed capabilities.
756 ///

Callers 2

fireMethod · 0.80
test_map_pre_tool_useFunction · 0.80

Calls 4

map_hook_eventFunction · 0.85
read_or_recoverFunction · 0.85
build_contextMethod · 0.80
cloneMethod · 0.45

Tested by 1

test_map_pre_tool_useFunction · 0.64