bridge

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package bridge provides a discoverable entrypoint to wire the runtime hook bus to a stream.Sink without importing the hooks subscriber directly. It avoids coupling the stream and hooks packages while giving users a simple API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSubscriber

func NewSubscriber(sink stream.Sink) (hooks.Subscriber, error)

NewSubscriber returns a hooks.Subscriber that forwards selected hook events (assistant replies, planner thoughts, tool start/end) to the provided sink as typed stream.Event values using the default stream profile.

func Register

func Register(bus hooks.Bus, sink stream.Sink) (hooks.Subscription, error)

Register creates a stream subscriber for the given sink and registers it on the provided bus. The returned subscription can be closed to detach the subscriber.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL