Documentation
¶
Index ¶
- type Config
- func (c *Config) CompactHooks(workDir string, gate *Gate) []hook.PreCompact
- func (c *Config) EndHooks(workDir string, gate *Gate) []hook.SessionEnd
- func (c *Config) PostHooks(workDir string, gate *Gate) []hook.PostToolUse
- func (c *Config) PreHooks(workDir string, gate *Gate) []hook.PreToolUse
- func (c *Config) PromptHooks(workDir string, gate *Gate) []hook.UserPromptSubmit
- func (c *Config) RuleCount() int
- func (c *Config) StartHooks(workDir string, gate *Gate) []hook.SessionStart
- func (c *Config) SubagentHooks(workDir string, gate *Gate) []hook.SubagentStop
- type Gate
- type Rule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
PreToolUse []Rule `json:"preToolUse,omitempty"`
PostToolUse []Rule `json:"postToolUse,omitempty"`
UserPromptSubmit []Rule `json:"userPromptSubmit,omitempty"`
SessionStart []Rule `json:"sessionStart,omitempty"`
SessionEnd []Rule `json:"sessionEnd,omitempty"`
SubagentStop []Rule `json:"subagentStop,omitempty"`
PreCompact []Rule `json:"preCompact,omitempty"`
}
func (*Config) CompactHooks ¶ added in v0.11.2
func (c *Config) CompactHooks(workDir string, gate *Gate) []hook.PreCompact
func (*Config) EndHooks ¶ added in v0.11.2
func (c *Config) EndHooks(workDir string, gate *Gate) []hook.SessionEnd
func (*Config) PostHooks ¶
func (c *Config) PostHooks(workDir string, gate *Gate) []hook.PostToolUse
func (*Config) PromptHooks ¶ added in v0.11.2
func (c *Config) PromptHooks(workDir string, gate *Gate) []hook.UserPromptSubmit
func (*Config) RuleCount ¶ added in v0.11.2
RuleCount reports how many hook rules the config carries, used for the workspace trust prompt.
func (*Config) StartHooks ¶ added in v0.11.2
func (c *Config) StartHooks(workDir string, gate *Gate) []hook.SessionStart
func (*Config) SubagentHooks ¶ added in v0.11.2
func (c *Config) SubagentHooks(workDir string, gate *Gate) []hook.SubagentStop
Click to show internal directories.
Click to hide internal directories.