Documentation
¶
Overview ¶
Package hooks is the public façade over the internal lifecycle hooks runner. Hosts build a *Runner, register Go callbacks against lifecycle events (PreToolUse, PostToolUse, UserPromptSubmit, PreCompact, PostCompact, Stop), and hand the runner to the conversation loop / generation engine.
See the internal hooks package for design rationale: zero-cost when nil, sequential first-decision-wins dispatch, panic recovery.
Index ¶
Constants ¶
View Source
const ( PreToolUse = intl.PreToolUse PostToolUse = intl.PostToolUse PostToolUseFailure = intl.PostToolUseFailure UserPromptSubmit = intl.UserPromptSubmit PreCompact = intl.PreCompact PostCompact = intl.PostCompact Stop = intl.Stop )
View Source
const ( ActionContinue = intl.ActionContinue ActionModify = intl.ActionModify ActionBlock = intl.ActionBlock )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionKind ¶
type ActionKind = intl.ActionKind
type Option ¶
func WithLogger ¶
WithLogger sets the writer used to log handler errors. Default: os.Stderr. Pass io.Discard to silence the runner.
Click to show internal directories.
Click to hide internal directories.