#!/bin/sh
set -eu
here=$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd)
if command -v node >/dev/null 2>&1; then exec node "$here/cli.mjs" "$@"; fi
for binary in /opt/homebrew/bin/node /usr/local/bin/node; do
  if [ -x "$binary" ]; then exec "$binary" "$here/cli.mjs" "$@"; fi
done
echo 'This runner needs Node.js 22.13 or newer.' >&2
exit 1
