Versions in this module Expand all Collapse all v0 v0.8.1 Nov 27, 2026 v0.8.0 Nov 21, 2026 Changes in this version + const BufferSize + const MustDeliverTimeout + const TypeAgentEvent + const TypeMessage + const TypePermissionModeChanged + const TypePermissionNotification + const TypePermissionRequest + const TypeRunComplete + const TypeSession + func PublishPermissionModeChanged(ctx context.Context, b *Broker[PermissionModeChanged], ...) + func PublishPermissionNotification(ctx context.Context, b *Broker[PermissionNotification], ...) + func PublishPermissionRequest(ctx context.Context, b *Broker[PermissionRequest], req PermissionRequest) + func SubscribeWithOverflow[T any](b *Broker[T]) (<-chan Event[T], <-chan struct{}, func()) + func Subscribe[T any](b *Broker[T]) (<-chan Event[T], func()) + type Broker struct + func NewBrokerWithBufferSize[T any](size int) *Broker[T] + func NewBroker[T any]() *Broker[T] + func (b *Broker[T]) Close() + func (b *Broker[T]) DropCount() int64 + func (b *Broker[T]) MustDeliverDropCount() int64 + func (b *Broker[T]) Publish(ev Event[T]) + func (b *Broker[T]) PublishMustDeliver(ctx context.Context, ev Event[T]) + func (b *Broker[T]) Subscribe() (<-chan Event[T], func()) + func (b *Broker[T]) SubscribeWithOverflow() (<-chan Event[T], <-chan struct{}, func()) + type Event struct + Key string + MustDeliver bool + Payload T + Type string + type PermissionModeChanged struct + Mode string + Previous string + type PermissionNotification struct + Cancelled bool + Denied bool + Granted bool + ID string + Reason string + Tool string + func (n PermissionNotification) Open() bool + type PermissionRequest struct + Action string + Args json.RawMessage + Danger bool + DangerReason string + Description string + GrantKey string + ID string + Path string + SessionID string + Tool string + ToolCallID string