Documentation
¶
Overview ¶
Package codex adapts the Codex app-server protocol to the runner harness.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter is the Codex implementation of harness.Adapter.
func (*Adapter) Probe ¶
Probe checks the binary version and app-server authentication state without starting a model thread or turn.
func (*Adapter) Run ¶
func (a *Adapter) Run(ctx context.Context, launch harness.Launch, emit harness.Emit) (result harness.Result, err error)
Run starts one dedicated app-server process, creates or resumes exactly one thread, starts one turn, forwards events, and stops the process before it returns. A resumed session is never silently replaced with a new thread.
type Config ¶
type Config struct {
Binary string
// Home is a runner-owned CODEX_HOME. It must be separate from an
// interactive user's Codex home and independently signed in by the worker.
Home string
// WorktreeRoot permits trust-only configuration for managed task checkouts.
WorktreeRoot string
Model string
ExpectedVersion string
}
Config selects the Codex executable and its isolated worker home.
Click to show internal directories.
Click to hide internal directories.