#!/bin/sh
# Generic agent stop hook: runs the gate and blocks completion on failure.
# Put it in scripts/ and call it from your agent's Stop hook configuration.
set -eu
root="$(git rev-parse --show-toplevel)"
cd "$root"
exec npx --no-install covgate run --json
