Commit 864ac55
committed
fix: wire up enforcement hooks in plugin hooks.json
The plugin ships three enforcement scripts in scripts/ but hooks.json
was empty, meaning marketplace-only installs got zero hook enforcement.
Users who installed via 'plugin install' received agents, commands, and
CLAUDE.md but not the edit-gate that blocks UI file changes without
accessibility-lead review.
Add all three hooks to hooks.json:
- UserPromptSubmit: a11y-team-eval.sh (web project detection)
- PreToolUse (Edit|Write): a11y-enforce-edit.sh (UI file gate)
- PostToolUse (Agent): a11y-mark-reviewed.sh (session marker)
All paths use ${CLAUDE_PLUGIN_ROOT} per the official plugin hooks spec.
Bump plugin version from 1.0.0 to 3.0.1 to align with the published
3.0.0 release and indicate a patch fix.1 parent df68078 commit 864ac55
2 files changed
Lines changed: 38 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
3 | 39 | | |
0 commit comments