host

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package host is the examples' protocol server: ACP over WebSocket on a session client, behind one bearer token. It keeps no session state, so any number of hosts can serve the same sessions. The Temporal example serves it with net/http (examples/temporal/cmd/host), and the Cloudflare example serves the same server from a connection object for each WebSocket (examples/cloudflare). docs/protocol.md follows a turn through it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(sessions session.Client, model tacklr.Model, wire server.ProtocolWireStore, token string) *server.Server

New serves sessions over ACP at /acp. model refuses a prompt with content the model cannot read before it reaches the session. wire keeps each ACP session's wire state, so any host can load the session. Each request must carry token as its bearer. A host whose sessions mount a workspace sets the server's Workspace, so a client may bind its own sources.

Types

This section is empty.

Jump to

Keyboard shortcuts

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