Versions in this module Expand all Collapse all v0 v0.3.0 May 26, 2026 v0.2.1 May 26, 2026 Changes in this version + func BuildDependencyGraph(projectDir string) map[string][]string + func EstimateTimeSaved(totalTests, selectedTests int) string + func FormatConflictMarkers(conflict Diff3Conflict) string + func FormatDiff3Result(result *Diff3Result) string + func FormatSelection(selected *SelectedTests, changedFiles []string, language string, ...) string + func GenerateTestCommand(selected *SelectedTests, language string) string + func LCS(a, b []string) []string + func MergeClean(base, ours, theirs string) (string, bool) + func RenderUnified(change *FileChange) string + type ChangeStats struct + Additions int + Deletions int + NetChange int + type Diff3Conflict struct + BaseLines []string + OursLines []string + StartLine int + TheirsLines []string + type Diff3Region struct + BaseEnd int + BaseStart int + OursLines []string + TheirsLines []string + Type string + type Diff3Result struct + Conflicts []Diff3Conflict + HasConflicts bool + Merged string + Stats Diff3Stats + func Merge3(base, ours, theirs string) *Diff3Result + type Diff3Stats struct + AutoMerged int + ConflictCount int + OursOnly int + TheirsOnly int + TotalLines int + type DiffHunk struct + Lines []DiffLine + NewCount int + NewStart int + OldCount int + OldStart int + func ComputeDiff(oldContent, newContent string) []DiffHunk + type DiffLine struct + Content string + NewLineNo int + OldLineNo int + Type string + func ComputeMyersDiff(a, b []string) []DiffLine + type DiffPreview struct + Changes []FileChange + CreatedAt time.Time + SessionID string + func NewDiffPreview() *DiffPreview + func (dp *DiffPreview) Approve(path string) + func (dp *DiffPreview) ApproveAll() + func (dp *DiffPreview) Clear() + func (dp *DiffPreview) GetApproved() []FileChange + func (dp *DiffPreview) GetPending() []FileChange + func (dp *DiffPreview) RecordChange(path, oldContent, newContent string) + func (dp *DiffPreview) Reject(path string, comment string) + func (dp *DiffPreview) RejectAll(comment string) + func (dp *DiffPreview) RenderAll() string + func (dp *DiffPreview) RenderSummary() string + type DiffSandbox struct + func NewDiffSandbox() *DiffSandbox + func (ds *DiffSandbox) Apply(path string) error + func (ds *DiffSandbox) ApplyAll() (int, error) + func (ds *DiffSandbox) DiffAll() string + func (ds *DiffSandbox) DiffFor(path string) string + func (ds *DiffSandbox) Disable() + func (ds *DiffSandbox) Enable() + func (ds *DiffSandbox) Format() string + func (ds *DiffSandbox) Get(path string) *PendingChange + func (ds *DiffSandbox) IsEnabled() bool + func (ds *DiffSandbox) List() []*PendingChange + func (ds *DiffSandbox) Reject(path string) + func (ds *DiffSandbox) RejectAll() + func (ds *DiffSandbox) Stage(path, action, oldContent, newContent string) + type DiffSummarizer struct + func NewDiffSummarizer() *DiffSummarizer + func (ds *DiffSummarizer) AssessImpact(summary *DiffSummary) string + func (ds *DiffSummarizer) DetectChangeType(summary *DiffSummary) string + func (ds *DiffSummarizer) FormatSummary(summary *DiffSummary) string + func (ds *DiffSummarizer) GenerateCommitMessage(summary *DiffSummary) string + func (ds *DiffSummarizer) GeneratePRSummary(summary *DiffSummary) string + func (ds *DiffSummarizer) Summarize(diff string) *DiffSummary + func (ds *DiffSummarizer) SummarizeFile(path string, hunks []string) *FileSummary + type DiffSummary struct + AffectedAreas []string + ChangeType string + Files []FileSummary + Impact string + OverallSummary string + type Edit struct + Index int + Line string + Type string + func EditScript(from, to []string) []Edit + type FileChange struct + Approved bool + Comment string + Hunks []DiffHunk + NewContent string + OldContent string + Path string + Rejected bool + Stats ChangeStats + Type string + type FileSummary struct + Action string + Additions int + Deletions int + KeyChanges []string + Path string + Summary string + type PendingChange struct + Action string + CreatedAt time.Time + Diff string + NewContent string + OldContent string + Path string + type Preview = DiffPreview + type SelectedTests struct + Coverage float64 + Packages []string + Reason map[string]string + Tests []string + type StagedChange struct + Description string + File string + Hunks []StagedHunk + Modified string + Original string + StagedAt time.Time + Status string + type StagedHunk struct + Approved bool + EndLine int + NewLines []string + OldLines []string + StartLine int + type StagingArea struct + Staged map[string]*StagedChange + func NewStagingArea() *StagingArea + func (sa *StagingArea) ApplyAll() ([]string, error) + func (sa *StagingArea) ApplyFile(file string) error + func (sa *StagingArea) ApproveHunk(file string, hunkIndex int) + func (sa *StagingArea) Clear() + func (sa *StagingArea) FormatStaging() string + func (sa *StagingArea) GetDiff(file string) string + func (sa *StagingArea) GetStaged() map[string]*StagedChange + func (sa *StagingArea) HasPending() bool + func (sa *StagingArea) Reject(file string) + func (sa *StagingArea) RejectHunk(file string, hunkIndex int) + func (sa *StagingArea) Stage(file, original, modified, description string) + type Summarizer = DiffSummarizer + type Summary = DiffSummary + type TestSelector struct + DepGraph map[string][]string + Language string + ProjectDir string + func NewTestSelector(projectDir string) *TestSelector + func (ts *TestSelector) FindRelatedTests(file string) []string + func (ts *TestSelector) SelectFromDiff(diff string) (*SelectedTests, error) + func (ts *TestSelector) SelectFromFiles(changedFiles []string) (*SelectedTests, error)