Versions in this module Expand all Collapse all v0 v0.1.1 Oct 18, 2026 v0.1.0 Oct 18, 2026 Changes in this version + type Action string + const ActionAllow + const ActionAsk + const ActionDeny + const ActionNoop + func ParseAction(s string) (Action, error) + type Agent string + const AgentClaude + const AgentCodex + const AgentCursor + const AgentOpenCode + func AllAgents() []Agent + func ParseAgent(s string) (Agent, error) + func (a Agent) Valid() bool + type Decision struct + Action Action + AdditionalContext string + Reason string + UpdatedInput json.RawMessage + UserMessage string + func Allow() Decision + func Ask(reason string) Decision + func Deny(reason string) Decision + func Noop() Decision + func (d Decision) Blocks() bool + func (d Decision) Effective() Action + func (d Decision) WithContext(ctx string) Decision + func (d Decision) WithUserMessage(msg string) Decision + type Event string + const EventPostToolUse + const EventPreCompact + const EventPreToolUse + const EventSessionStart + const EventStop + const EventSubagentStart + func AllEvents() []Event + func ParseEvent(s string) (Event, error) + func (e Event) IsToolEvent() bool + func (e Event) Valid() bool + type HookEvent struct + Agent Agent + AgentID string + AgentType string + CWD string + Command string + Event Event + Glob string + Paths []string + Pattern string + Raw json.RawMessage + SessionID string + Tool Tool + ToolUseID string + func (e HookEvent) IsSubagent() bool + func (e HookEvent) Validate() error + type Tool string + const ToolEdit + const ToolGlob + const ToolGrep + const ToolMCP + const ToolOther + const ToolPatch + const ToolRead + const ToolShell + const ToolWrite + func (t Tool) IsMutation() bool + func (t Tool) IsSearch() bool + func (t Tool) Valid() bool