Skip to main content

Module normalize

Module normalize 

Source
Expand description

Map HookEvent → core Event + derive SessionStatus.

Functions§

hook_to_event
Map HookEvent → Event. seq caller-supplied.
hook_to_status
Derive target SessionStatus from hook kind. PreToolUse → Waiting, PostToolUse → Running, Stop → Done, SessionStart → Running, Unknown → None.