Documentation
¶
Overview ¶
Package codex provides a fail-closed Codex app-server gateway for bydbctl.
Package codex integrates the Codex CLI with the TUI agent protocol.
Index ¶
- type Config
- type Gateway
- func (gateway *Gateway) Close() error
- func (gateway *Gateway) Interrupt(ctx context.Context, sessionID string) error
- func (gateway *Gateway) MaintainsConversationHistory() bool
- func (gateway *Gateway) Send(ctx context.Context, sessionID string, req agent.TurnRequest) (<-chan agent.Event, error)
- func (gateway *Gateway) Start(ctx context.Context, req agent.StartRequest) (agent.Session, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Command string
WorkingDirectory string
ControlledMCPServer agent.ControlledMCPServer
}
Config configures one isolated Codex app-server process.
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
Gateway owns the single Codex process and ephemeral thread used by one TUI.
func NewGateway ¶
NewGateway creates a Codex app-server gateway.
func (*Gateway) Interrupt ¶
Interrupt interrupts only the active turn and preserves the process and thread.
func (*Gateway) MaintainsConversationHistory ¶
MaintainsConversationHistory reports that the ephemeral Codex thread retains prior turns.