codexexec

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Input            string
	BaseURL          string
	APIKey           string
	ThreadID         string
	Model            string
	SandboxMode      string
	WorkingDirectory string
	SkipGitRepoCheck bool
	OutputSchemaPath string
	Images           []string
	ConfigOverrides  map[string]any
}

Args mirrors the CLI flags accepted by `codex exec`.

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner wraps execution of the Codex CLI.

func New

func New(override string) (*Runner, error)

New constructs a Runner, optionally overriding the codex binary path.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, args Args, handleLine func([]byte) error) error

Run executes `codex exec --experimental-json` and streams each JSONL line through handleLine.

Jump to

Keyboard shortcuts

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