Skip to main content

Crate ertangle_protocol

Crate ertangle_protocol 

Source
Expand description

ertangle-protocol — daemon <-> client control interface.

Transport: Unix domain socket, newline-delimited JSON (one message per line). Semantics: client sends Request, daemon replies with Frame (including event streams and snapshots).

This crate contains only wire types and codecs, with no I/O, making it easy to swap in TCP / JSON-RPC later.

Structs§

ActiveTool
Currently executing tool or subagent.
BgProc
Remaining background child process.
ModelInfo
An available model option.
SpawnRequest
Request to spawn a session.

Enums§

Frame
daemon -> client.
MergeStrategy
Strategy used when merging a worktree branch back into the main branch.
ParentChange
Parent session change during handoff.
Request
client -> daemon.
Transport
Transport mode used by a session.

Functions§

decode_line
Decode a single JSON line.
encode_line
Encode a message as a single JSON line (with trailing \n).