#!/bin/zsh
# run-with-app — Hold a target macOS app frontmost while running a sequence
# of clicks, keystrokes, and shell commands.  Thin shim around the component
# script so it shows up alongside the other HelperAI tools.
set -euo pipefail

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

exec "$COMPONENT" "$@"
