package
Version:
v0.10.2
Opens a new window with list of versions in this module.
Published: Jul 9, 2026
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
PreToolUse []Rule `json:"preToolUse,omitempty"`
PostToolUse []Rule `json:"postToolUse,omitempty"`
}
Gate defers a yes/no decision (e.g. "trust this workspace's hooks?") until
the first hook actually fires, then remembers it for the session.
type Rule struct {
Matcher string `json:"matcher,omitempty"`
Command string `json:"command"`
Timeout int `json:"timeout,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.