Documentation
¶
Overview ¶
Package ipc implements the Unix-socket protocol between the blocking critty client (run by an agent) and the TUI process that owns a review session. It replaces crit's HTTP review-cycle API with newline-delimited JSON messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Listen ¶
Listen opens the session's Unix socket, replacing a stale socket file left behind by a dead process.
Types ¶
type FinishPayload ¶
type FinishPayload struct {
Round int `json:"round,omitempty"`
Result *review.FormResult `json:"result,omitempty"`
Type string `json:"type"` // "finish"
Approved bool `json:"approved"`
Verdict review.Verdict `json:"verdict,omitempty"`
ReviewComment *review.Comment `json:"review_comment,omitempty"`
Prompt string `json:"prompt"`
Comments []review.ListedComment `json:"comments"`
NextCommand string `json:"next_command,omitempty"`
}
FinishPayload is the TUI-to-client message emitted when the human finishes a review round.
func ReviewCycle ¶
func ReviewCycle(path string) (*FinishPayload, error)
ReviewCycle connects to a session socket, requests a review cycle, and blocks until the human finishes the round. A closed connection without a finish payload reports the session as ended.
Click to show internal directories.
Click to hide internal directories.