#!/bin/bash

# Gemini CLI BeforeTool hook
# Called before a tool is executed.
#
# Actual approval prompts are handled via the Notification/ToolPermission hook,
# which fires only when Gemini CLI's permission mode requires user approval.
# This hook simply allows all tools to proceed.
#
# Output (JSON to stdout):
# {"decision": "allow"}

# Read stdin to consume it (Gemini CLI expects it to be read)
cat > /dev/null

echo '{"decision":"allow"}'
exit 0
