codex

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2026 License: Apache-2.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

func NewGateway(config Config) *Gateway

NewGateway creates a Codex app-server gateway.

func (*Gateway) Close

func (gateway *Gateway) Close() error

Close stops the Codex process and releases the ephemeral thread.

func (*Gateway) Interrupt

func (gateway *Gateway) Interrupt(ctx context.Context, sessionID string) error

Interrupt interrupts only the active turn and preserves the process and thread.

func (*Gateway) MaintainsConversationHistory

func (gateway *Gateway) MaintainsConversationHistory() bool

MaintainsConversationHistory reports that the ephemeral Codex thread retains prior turns.

func (*Gateway) Send

func (gateway *Gateway) Send(ctx context.Context, sessionID string, req agent.TurnRequest) (<-chan agent.Event, error)

Send starts one turn on the existing ephemeral Codex thread.

func (*Gateway) Start

func (gateway *Gateway) Start(ctx context.Context, req agent.StartRequest) (agent.Session, error)

Start initializes Codex and creates the single ephemeral thread.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL