Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AJHooks ¶
func AJHooks() map[string][]MatcherGroup
AJHooks returns the hook configuration for all AJ hook events.
func InstallHooks ¶
InstallHooks merges AJ hooks into the given Claude Code settings file. Creates the file if it doesn't exist. Preserves existing hooks and settings. Idempotent -- replaces any existing AJ/legacy hooks with current versions.
func UninstallHooks ¶
UninstallHooks removes AJ hooks from the given Claude Code settings file. Preserves all non-AJ hooks and settings.
Types ¶
type HookHandler ¶
type HookHandler struct {
Type string `json:"type"`
Command string `json:"command"`
Async bool `json:"async,omitempty"`
}
HookHandler represents a single hook handler in Claude Code settings.
type MatcherGroup ¶
type MatcherGroup struct {
Matcher string `json:"matcher,omitempty"`
Hooks []HookHandler `json:"hooks"`
}
MatcherGroup represents a matcher group containing handlers.
Click to show internal directories.
Click to hide internal directories.