bridge

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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