#!/usr/bin/env bash
set -euo pipefail

echo "Running local CI checks before push..."
uv run just ci

# Chain to bd hooks if available (beads sync)
if command -v bd >/dev/null 2>&1; then
    exec bd hooks run pre-push "$@"
fi
