Documentation
¶
Index ¶
- type Input
- type Manager
- func (m *Manager) HandleBusy(input Input, rawInput []byte) error
- func (m *Manager) HandleIdle(input Input, rawInput []byte) error
- func (m *Manager) HandleNotification(input Input, rawInput []byte) error
- func (m *Manager) HandlePermissionRequest(input Input, rawInput []byte) error
- func (m *Manager) HandlePostToolUse(input Input, rawInput []byte) error
- func (m *Manager) HandlePreCompact(input Input, rawInput []byte) error
- func (m *Manager) HandlePreToolUse(input Input, rawInput []byte) error
- func (m *Manager) HandleSessionEnd(input Input, rawInput []byte) error
- func (m *Manager) HandleSessionStart(input Input, rawInput []byte) error
- func (m *Manager) HandleSetup(input Input, rawInput []byte) error
- func (m *Manager) HandleSubagentStop(input Input, rawInput []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct {
SessionID string `json:"session_id"`
AgentType string `json:"agent_type"` // Populated if --agent was specified (Claude Code 2.1.14+)
}
Input represents the JSON input from Claude Code hooks
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles hook execution
func (*Manager) HandleBusy ¶
HandleBusy processes the busy hook (called when user submits prompt)
func (*Manager) HandleIdle ¶
HandleIdle processes the idle hook (called when Claude stops responding)
func (*Manager) HandleNotification ¶ added in v0.5.0
HandleNotification processes the notification hook
func (*Manager) HandlePermissionRequest ¶ added in v0.5.0
HandlePermissionRequest processes the permission-request hook
func (*Manager) HandlePostToolUse ¶ added in v0.5.0
HandlePostToolUse processes the post-tool-use hook (after tool calls)
func (*Manager) HandlePreCompact ¶
HandlePreCompact processes the pre-compact hook
func (*Manager) HandlePreToolUse ¶ added in v0.5.0
HandlePreToolUse processes the pre-tool-use hook (before tool calls)
func (*Manager) HandleSessionEnd ¶
HandleSessionEnd processes the session end hook
func (*Manager) HandleSessionStart ¶
HandleSessionStart processes the session start hook
func (*Manager) HandleSetup ¶ added in v0.5.0
HandleSetup processes the setup hook (triggered by --init, --init-only, --maintenance)