Module hooks

Module hooks 

Source
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§

AgpmHookMetadata
Metadata for AGPM-managed hooks
HookCommand
A single hook command within a matcher group
HookConfig
Hook configuration as stored in JSON files
MatcherGroup
A matcher group containing multiple hooks with the same regex pattern.

Enums§

HookEvent
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.