Help us shape the future of Go! Take the 2026 Go Developer Survey

codex

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Agent = "codex"

Variables

This section is empty.

Functions

func Category

func Category(tool string) model.ToolCategory

func Command

func Command(_ string, input string) string

func PatchOf

func PatchOf(tool, input string) string

func Summary

func Summary(tool, input string) string

Types

type FileEdit

type FileEdit struct {
	Path, OldPath, Patch string
	Added, Removed       int
	Deleted, Created     bool
}

func ParsePatch

func ParsePatch(p string) []FileEdit

ParsePatch parses the apply_patch format ("*** Begin Patch" ... "*** End Patch").

type Result

type Result struct {
	Trace      model.Trace
	Cwd        string
	BaseCommit string
	RemoteURL  string
}

func Parse

func Parse(path string) (*Result, error)

Parse reads a Codex CLI rollout file. Unknown line types and fields are ignored; they produce warnings, never errors.

Jump to

Keyboard shortcuts

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