Documentation
¶
Overview ¶
Package appserver owns the Codex stdio RPC connection and its child process. Callers interpret lifecycle notifications and provide presentation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
Input io.WriteCloser
Output io.ReadCloser
Messages chan Message
Done chan error
Diagnostics Diagnostics
// contains filtered or unexported fields
}
func (*Client) Initialize ¶
func (*Client) Respond ¶
Respond answers a server-originated request using its original JSON-RPC ID.
type Diagnostics ¶
Diagnostics never share the RPC stream or write through the terminal painter.
type Message ¶
type Message struct {
ID jsontext.Value `json:"id,omitempty"`
Method string `json:"method,omitempty"`
Params jsontext.Value `json:"params,omitzero"`
Result jsontext.Value `json:"result,omitempty"`
Error *Error `json:"error,omitempty"`
}
Wire subset from codex-rs/app-server-protocol/src/protocol/{common,v2}.rs at 86be5320; exercised against codex-cli 0.157.1. initialize is not version negotiation. Unknown notifications are ignored, not inferred from their text.
Click to show internal directories.
Click to hide internal directories.