#!/usr/bin/env bash
# Pre-commit feedback — runs both gates in report-only mode.
# Never blocks the commit; the push-time hook is the actual enforcer.
set -e

REPO_ROOT="$(git rev-parse --show-toplevel)"
export MODE=report
export DIFF_MODE=staged

"$REPO_ROOT/scripts/size-check.sh"
exec "$REPO_ROOT/scripts/coverage-check.sh"
