Expand description
Protocol-neutral frontend contract for one SDK-owned Supercode runtime.
Terminal, HTTP, ACP, and future browser frontends consume this contract;
none of them owns an crate::Agent or a second model loop. Events keep
their complete JSON payload and gain a monotonic sequence so a frontend can
cross the history-replay/live-stream boundary without duplicates.
Structs§
- Frontend
Actions - Actions the current runtime adapter can actually perform.
- Frontend
Attach Snapshot - Serializable half of an attachment returned by an out-of-process runtime. The live receiver is transport-owned and joined to this snapshot locally.
- Frontend
Attachment - Atomic history/replay/live attachment to one runtime.
- Frontend
Command Descriptor - One runtime-provided command surfaced by a composer.
- Frontend
Display Capabilities - Display semantics emitted by the runtime.
- Frontend
Event - Canonical event before a wire transport adds subscription metadata.
- Frontend
Operation Descriptor - One operation the runtime can genuinely invoke.
- Frontend
Request - One pending interactive request, emitted as a sequenced frontend event.
- Frontend
Runtime Descriptor - Complete frontend-facing description of one SDK-owned runtime.
- Frontend
Runtime Metadata - Source/emulation identity supplied by the session-loading surface.
- Http
Frontend Runtime - Authenticated HTTP implementation of
FrontendRuntime.
Enums§
- Frontend
Approval Decision - Typed approval decision accepted by
FrontendRuntime::respond. - Frontend
Connection State - Frontend-visible runtime connection state.
- Frontend
Elicitation Action - MCP elicitation outcome accepted by a frontend response.
- Frontend
Operation Invocation - Typed invocation accepted by
FrontendRuntime::invoke. - Frontend
Operation Kind - Stable family for an explicitly invocable frontend operation.
- Frontend
Operation Result - Typed result returned by
FrontendRuntime::invoke. - Frontend
Request Kind - Kind of interactive request surfaced by the SDK runtime.
- Frontend
Response - Typed response to one SDK-owned interactive request.
- Frontend
Runtime Error - Typed failure returned by every SDK adapter and compatibility projection.
- Frontend
Turn State - Whether a model/tool turn currently owns the runtime.
Constants§
- FRONTEND_
REPLAY_ CAPACITY - Maximum sequenced events retained between canonical history snapshots.
- FRONTEND_
RUNTIME_ SCHEMA_ VERSION - Frontend contract schema version.
Traits§
- Frontend
Runtime - Canonical live-runtime contract owned by the SDK.