Skip to content

mapEvent

mapEvent(hostEvent, toolName?): "session-start" | "user-prompt" | "pre-tool-edit" | "post-tool-edit" | "session-stop" | "subagent-result" | "subagent-start" | "skill-invoke" | null

Defined in: host-toolkit/dist/routing.d.ts:10

Map a host hook event name to its cadence abstract event. toolName disambiguates PostToolUse between the edit-tool flow (post-tool-edit) and the Skill-tool flow (skill-invoke, Phase 23.4).

string

string

"session-start" | "user-prompt" | "pre-tool-edit" | "post-tool-edit" | "session-stop" | "subagent-result" | "subagent-start" | "skill-invoke" | null