sessiondiff

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffHunk

type DiffHunk struct {
	Lines []DiffLine `json:"lines"`
}

type DiffLine

type DiffLine struct {
	Type   string `json:"type"` // "add", "del", "ctx", "collapse"
	Text   string `json:"text"`
	OldNum int    `json:"oldNum,omitempty"`
	NewNum int    `json:"newNum,omitempty"`
	Count  int    `json:"count,omitempty"` // for collapse: number of hidden lines
}

type FileDiff

type FileDiff struct {
	Path      string     `json:"path"`
	ShortPath string     `json:"shortPath"`
	Status    string     `json:"status"` // "modified", "added"
	Added     int        `json:"added"`
	Removed   int        `json:"removed"`
	Hunks     []DiffHunk `json:"hunks"`
}

func Extract

func Extract(turns []trace.Turn) []FileDiff

Jump to

Keyboard shortcuts

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