Versions in this module Expand all Collapse all v1 v1.8.0 Oct 15, 2026 v1.5.0 Oct 12, 2026 Changes in this version + type ApplyPatchTool struct + func NewApplyPatchTool(workingDir string) *ApplyPatchTool + func (t *ApplyPatchTool) BackfillInput(_ context.Context, in map[string]any) map[string]any + func (t *ApplyPatchTool) Call(ctx context.Context, input tool.CallInput, permissionCheck types.CanUseToolFn) (tool.CallResult, error) + func (t *ApplyPatchTool) CheckPermissions(_ context.Context, input map[string]any, _ tool.ToolUseContext) types.PermissionResult + func (t *ApplyPatchTool) Definition() tool.Definition + func (t *ApplyPatchTool) Description(_ context.Context) (string, error) + func (t *ApplyPatchTool) FormatResult(data any) string + func (t *ApplyPatchTool) IsConcurrencySafe(_ map[string]any) bool + func (t *ApplyPatchTool) IsEnabled() bool + func (t *ApplyPatchTool) IsReadOnly(_ map[string]any) bool + func (t *ApplyPatchTool) PreparePermissionMatcher(_ context.Context, input map[string]any) (func(string) bool, error) + func (t *ApplyPatchTool) ValidateInput(_ context.Context, in map[string]any) (map[string]any, error) + type ApplySummary struct + Added []string + Deleted []string + Moved []string + Updated []string + type ChangeKind string + const ChangeKindAdd + const ChangeKindDelete + const ChangeKindMove + const ChangeKindUpdate + type Patch struct + func Parse(text string) (*Patch, error) + func (p *Patch) AnalyzeChanges(workingDir string) ([]PatchChange, error) + func (p *Patch) Apply(ctx context.Context, workingDir string, toolCtxWorkingDir string) (*ApplySummary, error) + type PatchChange struct + DiffPreview string + Kind ChangeKind + MovePath string + Path string