conflict

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	FilePath           string
	OursLines          []string
	TheirsLines        []string
	BaseLines          []string
	StartLine          int
	EndLine            int
	SurroundingContext string
	Language           string
}

func ParseFile

func ParseFile(path string) ([]Block, error)

type Complexity

type Complexity string
const (
	Trivial  Complexity = "trivial"
	Moderate Complexity = "moderate"
	Complex  Complexity = "complex"
)

func Classify

func Classify(b Block) Complexity

type Explanation

type Explanation struct {
	OursIntent          string  `json:"ours_intent"`
	TheirsIntent        string  `json:"theirs_intent"`
	ConflictType        string  `json:"conflict_type"`
	ResolutionStrategy  string  `json:"resolution_strategy"`
	ResolutionRationale string  `json:"resolution_rationale"`
	CandidatePatch      string  `json:"candidate_patch"`
	Confidence          float64 `json:"confidence"`
	RiskNotes           string  `json:"risk_notes"`
}

func Explain

func Explain(ctx context.Context, client *ai.Client, b Block) (*Explanation, error)

Jump to

Keyboard shortcuts

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