Help us shape the future of Go! Take the 2026 Go Developer Survey

snapshots

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitDetailsMsg added in v0.412.3

type CommitDetailsMsg struct {
	Commit agentvcs.Commit
	Diff   []agentvcs.DiffEntry
	Err    error
}

CommitDetailsMsg carries full commit details and diff for rendering in the detail panel.

type CommitListMsg added in v0.412.3

type CommitListMsg struct {
	SessionID string
	Commits   []CommitRow
}

CommitListMsg is sent to populate the commit table for a selected session.

type CommitRow added in v0.412.3

type CommitRow struct {
	ID          string
	ShortID     string
	ParentID    string
	SessionID   string
	Type        string
	Description string
	// FileCount/TotalSize describe the full working tree captured by the commit.
	FileCount int
	TotalSize int64
	// ChangedFiles/ChangedSize describe what this commit actually changed
	// relative to its parent. A baseline commit changes nothing.
	ChangedFiles int
	ChangedSize  int64
	IsBaseline   bool
	CreatedAt    int64
}

CommitRow is a lightweight representation of a commit used for table rendering.

type CommitsTableComponent added in v0.412.3

type CommitsTableComponent interface {
	tea.Model
	layout.Sizeable
	layout.Bindings
}

CommitsTableComponent is the public interface for the commits table component.

func NewCommitsTable added in v0.412.3

func NewCommitsTable() CommitsTableComponent

type DetailComponent

type DetailComponent interface {
	tea.Model
	layout.Sizeable
	layout.Bindings
}

DetailComponent is the public interface for the commit detail component.

func NewSnapshotsDetails

func NewSnapshotsDetails() DetailComponent

NewSnapshotsDetails creates and returns a new snapshot detail component.

type RevertCommitMsg added in v0.412.3

type RevertCommitMsg struct {
	CommitID string
}

RevertCommitMsg requests that the given commit be reverted to disk.

type SelectedCommitMsg added in v0.412.3

type SelectedCommitMsg struct {
	Commit CommitRow
}

SelectedCommitMsg is published when the user selects a commit row.

type SelectedSessionMsg added in v0.412.3

type SelectedSessionMsg struct {
	SessionID string
}

SelectedSessionMsg is published when the user selects a session row.

type SessionListMsg added in v0.412.3

type SessionListMsg struct {
	Sessions []SessionRow
}

SessionListMsg is sent to populate the session table.

type SessionRow added in v0.412.3

type SessionRow struct {
	SessionID    string
	CommitCount  int
	LatestAt     int64
	LatestCommit string
	Description  string
}

SessionRow is a lightweight representation of a session used for table rendering.

type SessionsTableComponent added in v0.412.3

type SessionsTableComponent interface {
	tea.Model
	layout.Sizeable
	layout.Bindings
}

SessionsTableComponent is the public interface for the sessions table component.

func NewSessionsTable added in v0.412.3

func NewSessionsTable() SessionsTableComponent

Jump to

Keyboard shortcuts

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