Documentation
¶
Index ¶
- func HasConflicts(ctx context.Context, repoRoot string) bool
- func ListFiles(ctx context.Context, repoRoot string) ([]string, error)
- type File
- type Snapshot
- func BuildSnapshot(ctx context.Context, repoRoot string) (Snapshot, error)
- func BuildSnapshotWithAI(ctx context.Context, repoRoot string, provider aiprovider.Provider, useAI bool) (Snapshot, error)
- func EnhanceSnapshot(ctx context.Context, snap Snapshot, provider aiprovider.Provider, ...) (Snapshot, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasConflicts ¶
HasConflicts reports whether the repo has unmerged paths.
Types ¶
type Snapshot ¶
Snapshot is a structured conflict report.
func BuildSnapshot ¶
BuildSnapshot creates a grouped conflict report.
func BuildSnapshotWithAI ¶
func BuildSnapshotWithAI(ctx context.Context, repoRoot string, provider aiprovider.Provider, useAI bool) (Snapshot, error)
BuildSnapshotWithAI builds a snapshot and optionally enhances it with AI reasons.
func EnhanceSnapshot ¶
func EnhanceSnapshot(ctx context.Context, snap Snapshot, provider aiprovider.Provider, repoRoot string) (Snapshot, error)
EnhanceSnapshot optionally replaces heuristic reasons with AI analysis.
Click to show internal directories.
Click to hide internal directories.