Versions in this module Expand all Collapse all v0 v0.3.0 May 30, 2026 Changes in this version + func Dispatch[C any, R any](ctx context.Context, d *Dispatcher, cmd C) (R, error) + func Register[C any, R any](d *Dispatcher, h Handler[C, R]) + func ValidateDefaultRegistry(d *Dispatcher) error + type Dispatcher struct + func BuildDefault(deps KernelDeps) *Dispatcher + func NewDispatcher() *Dispatcher + type Handler interface + Handle func(ctx context.Context, cmd C) (R, error) + type HandlerTypeMismatchError struct + ActualHandlerType reflect.Type + CommandType reflect.Type + ResultType reflect.Type + func (e *HandlerTypeMismatchError) Error() string + type KernelDeps struct + AgentRegistry agent.RuntimeRegistry + EventBus *events.Bus[events.Event] + Logger *slog.Logger + OpenRunScopeOptions model.OpenRunScopeOptions + Workspace workspace.Context + type UnregisteredHandlerError struct + CommandType reflect.Type + func (e *UnregisteredHandlerError) Error() string