#!/bin/bash # sessionEnd: log session end HOOKS_DIR="$(cd "$(dirname "$0")" && pwd)" # shellcheck source=lib.sh . "${HOOKS_DIR}/lib.sh" input=$(cat) log_event "sessionEnd" "conversation_id=$(echo "$input" | jq -r '.conversation_id // "?"')" exit 0