Documentation
¶
Overview ¶
Package events defines the shared contracts for hook configuration and execution.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Contract ¶
type Contract struct {
Name string
ToolMatched bool
CanBlock bool
FailClosed bool
Rewrite Rewrite
Decision bool
PermissionApproval bool
Metadata bool
Context bool
Instructions bool
Summary bool
}
Contract describes an event's configuration shape and runtime capabilities.
func (Contract) Permission ¶
Permission reports whether permission_decision is meaningful on this event.
func (Contract) Sequential ¶
Sequential reports whether each hook must receive the preceding rewrite.
Click to show internal directories.
Click to hide internal directories.