Skip to main content

Crate basis_host

Crate basis_host 

Source
Expand description

basis-host — host-side basis machinery shared by adapters.

basis is the SDK and owns conventions, the run surface, and the durable event schema. What lives here is the next layer up that a long-lived host needs regardless of protocol. The first shared seam is approval policy and its session-scoped remembered answers.

The layer line is ADR-0025’s application of ADR-0011: this crate depends on basis and nothing heavier. Protocol bindings stay in basis-acp; terminal bindings stay in basis-cli; durable task coordination stays in basis-tasks.

Structs§

ConfiguredSource
The default source: sessions basis builds itself, on the process’s runtime.
Discovery
Where every session’s workspace discovery looks.
HostSession
One open conversation on a long-lived host.
Interrupt
The half of a cancellation an approver can wait on.
PolicyApprover
Applies a session’s policy to each approval request, asking inner only when the policy says to ask.
PolicyGate
The tool authorizer a long-lived host installs on each of its sessions: the same filter basis’s ApprovalGate applies, plus the one answer that has to be terminal.
SessionApproval
One session’s active approval policy and its remembered answers.
SessionTemplate
What the operator said and a client cannot say for itself: which provider and endpoint, which model, whether commands are granted, the product’s own voice, how hard to think, and what to call the sessions.

Enums§

ApprovalPolicy
What a host does about a consequential call.

Traits§

SessionSource
Where a hosted session’s PreparedRun comes from.

Functions§

rfc3339
One epoch second, as YYYY-MM-DDThh:mm:ssZ.