Skip to content

Support selector-based hook matchers#439

Merged
ericdallo merged 1 commit into
masterfrom
hook-matcher-args-selectors
Apr 30, 2026
Merged

Support selector-based hook matchers#439
ericdallo merged 1 commit into
masterfrom
hook-matcher-args-selectors

Conversation

@zikajk
Copy link
Copy Markdown
Member

@zikajk zikajk commented Apr 30, 2026

Add object-form hook matchers keyed by tool selectors, with optional per-tool argsMatchers for preToolCall and postToolCall hooks. Keep legacy string regex matchers working for backwards compatibility.

Preserve hook matcher selector and argument keys during config normalization, share selector matching with tool approval, and update docs/schema/tests for the new matcher shape.

  • I added a entry in changelog under unreleased section.
  • This is not an AI slop.

Add object-form hook matchers keyed by tool selectors, with optional
per-tool argsMatchers for preToolCall and postToolCall hooks. Keep legacy
string regex matchers working for backwards compatibility.

Preserve hook matcher selector and argument keys during config normalization,
share selector matching with tool approval, and update docs/schema/tests for
the new matcher shape.
@ericdallo ericdallo merged commit 7e4e4c7 into master Apr 30, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants