Single-commit clean baseline after security scrub of niche-tells, project codenames, internal jargon, and contributor-email leaks. Contents: - 100 Rust crates (_primitives/_rust/) - 37 agent manifests (_manifests/) + generated specs (_generated/) - 67 user-invocable skills (skills/) - 33 hooks (hooks/) - Composition blocks (_blocks/) - Documentation (docs/, README.md) - TS adapter packages (_ts_packages/) - Assembler (_assembler/) - Roles (_roles/) - Templates (_templates/) - Forgejo CI (.forgejo/) Author: Denis Parfionovich <info@greendragon.info> License: see LICENSE.
26 lines
628 B
Bash
Executable file
26 lines
628 B
Bash
Executable file
#!/bin/sh
|
|
# precommit-counts-check.sh — pre-commit gate for README count drift.
|
|
# Runs scripts/regen-counts.sh --check; exits non-zero on drift.
|
|
# Install: ln -s ../../scripts/precommit-counts-check.sh .git/hooks/pre-commit
|
|
# or add to your hook manager of choice.
|
|
|
|
set -eu
|
|
|
|
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
REGEN="$ROOT/scripts/regen-counts.sh"
|
|
|
|
[ -x "$REGEN" ] || {
|
|
printf 'precommit-counts-check: %s not executable\n' "$REGEN" >&2
|
|
exit 2
|
|
}
|
|
|
|
if "$REGEN" --check; then
|
|
exit 0
|
|
fi
|
|
|
|
cat >&2 <<'EOF'
|
|
|
|
Counts drift detected in README.md.
|
|
Run: ./scripts/regen-counts.sh && git add README.md
|
|
EOF
|
|
exit 1
|