#!/bin/zsh
# cg-events — Send mouse/keyboard events to a specific macOS pid via
# CGEventPostToPid.  Thin CLI over components/macos/browser-automation/cg_events.py.
set -euo pipefail

BIN_DIR=${0:A:h}
ROOT_DIR=${BIN_DIR:h}
COMPONENT="$ROOT_DIR/components/macos/browser-automation/cg_events.py"

exec /usr/bin/env python3 "$COMPONENT" "$@"
