Skip to main content

Crate ertangle_protocol

Crate ertangle_protocol 

Source
Expand description

ertangle-protocol — daemon ↔ client 的控制介面。

傳輸:Unix domain socket,newline-delimited JSON (一行一個訊息)。 語意:client 送出 Request,daemon 回覆 Frame (含事件串流與快照)。

這個 crate 只有 wire 型別與編解碼,不含任何 IO,方便日後換成 TCP / JSON-RPC。

Structs§

ActiveTool
Currently executing tool or subagent.
BgProc
Remaining background child process.
ModelInfo
一個可選的 model。
SpawnRequest
建立 session 的請求。

Enums§

Frame
daemon → client。
MergeStrategy
將 worktree 分支併回主分支時使用的策略。
ParentChange
交接時對父 session 的變更。
Request
client → daemon。
Transport
一個 session 要用哪種傳輸方式跑。

Functions§

decode_line
解析一行 JSON。
encode_line
把訊息編成一行 JSON (含結尾 \n)。