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).
Parameters
Section titled “Parameters”hostEvent
Section titled “hostEvent”string
toolName?
Section titled “toolName?”string
Returns
Section titled “Returns”"session-start" | "user-prompt" | "pre-tool-edit" | "post-tool-edit" | "session-stop" | "subagent-result" | "subagent-start" | "skill-invoke" | null