Documentation
¶
Overview ¶
Package hooks implements the hook registry (project.md §2.4). CONTRACT file — agents consume, do not modify.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) Run ¶
func (r *Registry) Run(ctx context.Context, p ports.HookPoint, payload map[string]any) (map[string]any, error)
Run executes hooks in registration order. A returned error aborts the chain (fail-closed; validating hook points rely on this). A non-nil returned map replaces the payload for subsequent hooks and the caller (mutating hooks).