Documentation
¶
Overview ¶
Package bridge is `actp <agent>@<server>`: a local stdio ACP agent that forwards everything to an agent on an actp server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NoServerHint ¶
NoServerHint explains a URL where no actp server answers. Quick tunnel addresses change whenever the server restarts, which is the usual cause.
Types ¶
type LostError ¶
type LostError struct{ Reason string }
LostError means the remote session is gone; the bridge should exit 1.
type Options ¶
type Options struct {
Agent string
BaseURL string // http(s)://host[:port][/prefix]
Token string
ClientName string
// Cwd replaces every cwd the client sends, for example "actp://website".
Cwd string
// Maps rewrite cwd values that start with From.
Maps []Map
Wire wire.Options
Logger *slog.Logger
GiveUpAfter time.Duration // stop reconnecting after this long (10 min)
MaxBackoff time.Duration // 30 s
}
Options configure a bridge.