Versions in this module Expand all Collapse all v0 v0.13.0 Jul 3, 2026 Changes in this version + const DefaultHookTimeout + const DefaultKontextBinary + var ErrFeaturesNotEditable = errors.New("codex config.toml uses a [features] form that cannot be edited automatically") + var SupportedEvents = []hook.EventAlias + func BackupHooks(path, label string) error + func EnsureHooksEnabled(path, backupLabel string) (changed bool, err error) + func IsManagedHookCommand(command string) bool + func MergeManagedHooks(settings map[string]any, kontextBinary string) error + func ReadHooks(path string) (map[string]any, error) + func RemoveManagedHooks(settings map[string]any) error + func TemplateJSON(kontextBinary string) ([]byte, error) + func UserConfigPath() (string, error) + func UserConfigPathNoCreate() (string, error) + func UserHooksPath() (string, error) + func UserHooksPathNoCreate() (string, error) + func Validate(data []byte, kontextBinary string) error + func WriteHooks(path string, settings map[string]any) error + type Handler struct + Args []string + Async *bool + Command string + Timeout int + Type string + type MatcherGroup struct + Hooks []Handler + Matcher string + type Settings struct + Hooks map[string][]MatcherGroup + func Template(kontextBinary string) Settings