export function toolRunEventToHookEvent(event) {
    if (event.phase === "start")
        return "PreToolUse";
    return event.result?.status === "succeeded" ? "PostToolUse" : "PostToolUseFailure";
}
export function toolRunEventPayload(event) {
    return {
        tool_name: event.action.type,
        action: event.action,
        result: event.result,
    };
}
