Documentation
¶
Overview ¶
Package protocol holds the constants from protocol/warren.schema.json. The schema is authoritative; this file is regenerated by `go generate`.
Index ¶
Constants ¶
View Source
const ( DirectionClientToHost uint8 = 1 DirectionHostToClient uint8 = 2 )
View Source
const ( KindInput uint8 = 1 KindOutput uint8 = 2 KindAtomicState uint8 = 3 )
View Source
const ( MaxHeader = 16384 MaxPayload = 8388608 MaxAtomicStatePayload = 67108864 )
View Source
const ( MagicOffset = 0 VersionOffset = 4 DirectionOffset = 5 KindOffset = 6 HeaderLengthOffset = 7 PayloadLengthOffset = 11 HeaderStartOffset = 15 )
Field offsets inside the DENB prefix. u32 fields are big-endian.
View Source
const BinaryPrefixLength = 15
BinaryPrefixLength is magic(4) + version(1) + direction(1) + kind(1) + headerLength(4) + payloadLength(4).
View Source
const (
BinaryWireVersion uint8 = 1
)
Binary DENB envelope.
View Source
const LogicalVersion = "4.0"
Variables ¶
View Source
var BinaryMagic = []byte{0x44, 0x45, 0x4E, 0x42}
View Source
var Capabilities = []string{
"app-heartbeat-v1",
"roster-delta",
"agent-timeline-v1",
"agent-interactions-v1",
"agent-interrupt-v1",
"agent-attachments-v1",
"agent-goals-v1",
}
Negotiated capability identifiers. Order is the canonical order returned by the Host.
View Source
var TerminalStateFormats = []string{
"ghostty-vt-snapshot-v1",
"ghostline-vt-replay-v1",
}
TerminalStateFormats is the set of opaque terminal-state formats a client can install atomically.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.