#!/usr/bin/env bash
# Thin stub — logic lives in the zero-employee package (`zeo hooks pre-commit`).
# Installed by: zeo hooks install
set -uo pipefail
ZEO=""
for c in "$(command -v zeo 2>/dev/null || true)" \
         "$HOME/.local/bin/zeo" \
         "$HOME/.local/share/uv/tools/zeo/bin/zeo" \
         "$HOME/.local/share/uv/tools/zero-employee/bin/zeo"; do
  if [ -n "$c" ] && [ -x "$c" ]; then ZEO="$c"; break; fi
done
if [ -z "$ZEO" ]; then
  echo "COMMIT BLOCKED: zeo not found; the gate cannot run. Install it, or 'git commit --no-verify' to bypass deliberately." >&2
  exit 1
fi
exec "$ZEO" hooks pre-commit "$@"
