Versions in this module Expand all Collapse all v0 v0.1.0 Sep 24, 2026 Changes in this version + func Apply(input, diff string) (string, error) + func ApplyBatch(input string, diffs []string) (string, error) + func ApplyFiles(files map[string]string, patch string) (map[string]string, error) + type Mode int + const Codex + const Strict + func (m Mode) Apply(input, diff string) (string, error) + func (m Mode) ApplyBatch(input string, diffs []string) (string, error) + func (m Mode) ApplyFiles(files map[string]string, patch string) (map[string]string, error) + func (m Mode) String() string + type Operation struct + Contents string + Diff string + Kind OperationKind + MoveTo string + Path string + type OperationKind int + const AddFile + const DeleteFile + const UpdateFile + func (k OperationKind) String() string + type Patch struct + EnvironmentID string + Operations []Operation + func Parse(patch string) (*Patch, error) + type Tool struct + Description string + Format ToolFormat + Name string + Type string + func CodexTool() Tool + type ToolFormat struct + Definition string + Syntax string + Type string