Expand description
Hook configuration management for AGPM
This module handles Claude Code hook configurations, including:
- Directly merging hook JSON into
settings.local.json
(no staging directory) - Converting them to Claude Code format
- Managing hook lifecycle and dependencies
Structs§
- Agpm
Hook Metadata - Metadata for AGPM-managed hooks
- Hook
Command - A single hook command within a matcher group
- Hook
Config - Hook configuration as stored in JSON files
- Matcher
Group - A matcher group containing multiple hooks with the same regex pattern.
Enums§
- Hook
Event - Hook event types supported by Claude Code
Functions§
- install_
hooks - Configure hooks from source files into .claude/settings.local.json
- load_
hook_ configs - Load hook configurations from a directory containing JSON files.
- validate_
hook_ config - Validate a hook configuration for correctness and safety.