#!/usr/bin/env bash set -euo pipefail script_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)" repo_root="$(cd -- "$script_dir/../.." && pwd -P)" if command -v node >/dev/null 2>&1; then node_bin="$(command -v node)" elif command -v nodejs >/dev/null 2>&1; then node_bin="$(command -v nodejs)" else printf 'Node.js is required to run the Copilot audit workflow.\n' >&2 exit 1 fi exec "$node_bin" "$script_dir/audit-copilot-usage.mjs" --repo-root "$repo_root" "$@"