d0dc9729fd
Add the public 'Where are my components?' answer: hemx maps framework component jobs to hemplate partials, generated helpers, app-owned state, IntoEffect composition, and explicit leaf islands. The pre-commit guard now only blocks commits that change REQUIREMENTS.md without an AGENTS.md review, so unrelated follow-up commits are not trapped by old history. req: canonical_authoring/002 req: canonical_authoring/003
10 lines
454 B
Bash
Executable File
10 lines
454 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
changed=$(git diff --cached --name-only)
|
|
# fail only when this commit changes REQs without reviewing AGENTS.md;
|
|
# do not block unrelated commits just because an earlier commit changed REQs.
|
|
if echo "$changed" | grep -q '^REQUIREMENTS.md$' && ! echo "$changed" | grep -q '^AGENTS.md$'; then
|
|
echo "error: REQUIREMENTS.md changed without AGENTS.md — review AGENTS.md or run: redgate agents > AGENTS.md"
|
|
exit 1
|
|
fi
|