Versions in this module Expand all Collapse all v0 v0.31.0 Nov 11, 2026 Changes in this version + const DefaultMaxChars + type Engine struct + func New(hooks []Hook, r Runner) (*Engine, error) + func (e *Engine) Dispatch(ctx context.Context, p Payload) (Result, error) + type Hook struct + Args []string + Blocking bool + Command string + Event string + Name string + OnTimeout Verdict + Timeout time.Duration + ToolPrefix string + type Outcome struct + ExitCode int + Stderr string + Stdout string + type Payload struct + Args []string + Event string + Tool string + type Result struct + Notes []string + Ran []string + Reasons []string + Verdict Verdict + type Runner interface + Run func(ctx context.Context, h Hook, p Payload) (Outcome, error) + type Verdict string + const VerdictAllow + const VerdictDeny