Skip to main content

Module host

Module host 

Source
Expand description

Messages and local IPC framing for the code-mode host boundary.

Protocol version 1 multiplexes session operations and delegate callbacks by request ID over one ordered connection. It defines no optional capabilities yet; capability names provide an extension point for later versions without weakening the v1 decoder.

Structs§

Capability
A named protocol feature advertised during connection negotiation.
CapabilitySet
ClientHello
DelegateRequestId
Correlates one host delegate request with the client’s response.
DuplicateCapability
EncodedFrame
A serialized IPC frame that has already passed the payload size limit.
FramedReader
Decodes JSON messages prefixed by a four-byte little-endian payload length.
FramedWriter
Encodes JSON messages with a four-byte little-endian payload length.
HostHello
InvalidIdentifier
ProtocolVersion
RequestId
Correlates one client operation request with the host’s response.
SessionId
Identifies one logical code-mode session on a connection.
SupportedProtocolVersions
WireCellId
A cell identifier with a wire representation owned by protocol V1.
WireExecuteRequest
The complete execute request shape supported by protocol V1.
WireNestedToolCall
A nested tool invocation sent over the V1 host connection.
WireToolDefinition
A V1 tool definition embedded in an execute request.
WireToolName
The V1 wire representation of a tool’s stable name.
WireWaitRequest
The complete wait request shape supported by protocol V1.

Enums§

ClientHelloError
ClientToHost
Messages sent from a client to the code-mode host.
DelegateRequest
DelegateResponse
HandshakeRejectReason
Explains why connection negotiation was rejected before any session opened.
HostRequest
HostResponse
HostToClient
Messages sent from the code-mode host to a client.
InvalidSupportedProtocolVersions
WireContentItem
One output item emitted by a V1 runtime response.
WireImageDetail
Image detail values accepted in a V1 runtime response.
WireResult
WireRuntimeResponse
Runtime output returned over the V1 host connection.
WireToolKind
The tool invocation shape supported by protocol V1.
WireWaitOutcome
Whether a waited-for cell remained live in protocol V1.

Constants§

MAX_FRAME_BYTES
Maximum JSON payload size accepted for one IPC frame.