Versions in this module Expand all Collapse all v0 v0.0.4 Nov 8, 2025 Changes in this version + const ActionAdd + const ActionDelete + const ActionUpdate + const ModeAdd + const ModeDelete + const ModeKeep + var Prompt string + func ApplyPatch(cc FileSystem, patchText string) (string, error) + type ActionType string + type Chunk struct + DelLines []string + InsLines []string + OrigIndex int + type Commit struct + Changes map[string]FileChange + type DiffError struct + func (e *DiffError) Error() string + type FileChange struct + MovePath string + NewContent *string + OldContent *string + Type ActionType + type FileSystem interface + Open func(string) (string, error) + Remove func(string) error + Write func(string, string) error + type OpenFn func(string) (string, error) + type Parser struct + CurrentFiles map[string]string + Fuzz int + Index int + Lines []string + Patch Patch + type Patch struct + Actions map[string]*PatchAction + type PatchAction struct + Chunks []Chunk + MovePath string + NewFile *string + Type ActionType + type RemoveFn func(string) error + type WriteFn func(string, string) error