mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
fix(docs): clarify Stop event matcher is optional, not disallowed
Validator (scripts/ci/validate-hooks.js line 182-184) only errors when matcher is missing for non-EVENTS_WITHOUT_MATCHER events. For Stop (in EVENTS_WITHOUT_MATCHER), matcher is optional — presence is allowed and validated for type correctness, absence is also accepted.
This commit is contained in:
parent
08f66b4909
commit
f65ab491be
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ Add this hook to `hooks/hooks.json` to remind the agent to self-evaluate at the
|
|||
}
|
||||
```
|
||||
|
||||
`Stop` events do not use a `matcher` field. Keep the hook object limited to `hooks` and metadata such as `description`.
|
||||
`Stop` events do not require a `matcher` field (it is optional for `Stop`, `Notification`, `UserPromptSubmit`, and `SubagentStop` per `scripts/ci/validate-hooks.js`). If omitted, the hook object only needs `hooks` and metadata such as `description`.
|
||||
|
||||
## Integration with the Python Evaluator
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue