Versions in this module Expand all Collapse all v0 v0.1.5 Mar 23, 2026 Changes in this version + func MatchesEvent(h Hook, event Event, toolName string) bool + func WithHooks(ctx context.Context, h []Hook) context.Context + type Env map[string]string + type Event string + const ContextCompact + const PostResponse + const PostToolUse + const PrePrompt + const PreToolUse + const SessionEnd + const SessionStart + type Hook struct + Command string + Enabled bool + Event Event + InjectOutput bool + Matcher string + Name string + Timeout time.Duration + func HooksFromContext(ctx context.Context) []Hook + type HookResult struct + Duration time.Duration + ExitCode int + Name string + Stderr string + Stdout string + TimedOut bool + func Run(ctx context.Context, hooks []Hook, event Event, toolName string, env Env) []HookResult v0.1.0 Mar 14, 2026