Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Engine ¶
type Engine interface {
// Send runs ONE turn with the given user text. It streams assistant text
// deltas via onDelta (may be called many times) and returns the final text.
Send(ctx context.Context, text string, onDelta func(string)) (string, error)
}
Engine is the minimal surface the relay needs to drive a session. The cmd layer adapts *loop.Engine to this.
type Options ¶
type Options struct {
Addr string // listen addr, e.g. ":0" or "0.0.0.0:8765"; default ":0"
Title string // page title / shown in UI
Log io.Writer // activity log sink; nil => io.Discard
}
Options configure a Server.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a local web relay that drives a single bee session over LAN.
func New ¶
New builds a Server. Defaults: Addr ":0", Title "bee remote", Log io.Discard. A random bearer token is generated; it is embedded in every route as a URL path prefix so only clients that received the printed URL (or scanned the QR) can reach the agent-execution endpoint.
func (*Server) Handler ¶
Handler returns the http mux. All routes are scoped under /<token>/ so only clients that received the printed URL can reach the agent endpoints.
Click to show internal directories.
Click to hide internal directories.