model

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateIdle AgentState = iota
	StateThinking
	StateRunning
	StateEditing
	StateBrowsing
	StateWaiting

	NumAgentStates int = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentSession

type AgentSession struct {
	Tool       string
	Model      string
	State      AgentState
	Task       string
	Liveness   Liveness
	PID        int
	SessionID  string
	UpdatedAt  time.Time
	LeakTarget string
}

type AgentState

type AgentState int

func (AgentState) String

func (s AgentState) String() string

type Attention

type Attention struct {
	Needs  bool
	Reason string
}

type CIState

type CIState int
const (
	CINone CIState = iota
	CIPending
	CIPassing
	CIFailing
)

type Divergence

type Divergence struct {
	Ahead  int
	Behind int
}

type FileChange

type FileChange struct {
	Path    string
	Orig    string
	Status  FileStatus
	Staged  bool
	Added   int
	Deleted int
	ModTime time.Time
}

func (FileChange) Binary

func (c FileChange) Binary() bool

type FileStatus

type FileStatus int
const (
	StatusModified FileStatus = iota
	StatusAdded
	StatusDeleted
	StatusRenamed
	StatusUntracked
	StatusConflicted
)

func (FileStatus) Code

func (s FileStatus) Code() string

func (FileStatus) String

func (s FileStatus) String() string

type GraphLine

type GraphLine struct {
	Graph     string
	HasCommit bool
	Hash      string
	When      time.Time
	Author    string
	Parents   []string
	Refs      []string
	Subject   string
}

func (GraphLine) IsMerge

func (g GraphLine) IsMerge() bool

type Liveness

type Liveness int
const (
	LiveIdle Liveness = iota
	LiveRecent
	LiveActive
)

func (Liveness) IsLive

func (l Liveness) IsLive() bool

type PRInfo

type PRInfo struct {
	Number    int
	Branch    string
	Title     string
	URL       string
	State     string
	Review    PRReview
	CI        CIState
	Draft     bool
	CreatedAt time.Time
}

type PRReview

type PRReview int
const (
	ReviewNone PRReview = iota
	ReviewRequired
	ReviewChangesRequested
	ReviewApproved
)

type Repo

type Repo struct {
	Name      string
	Path      string
	Worktrees []Worktree
	Err       error
}

type RepoStats

type RepoStats struct {
	Commits       int
	Branches      int
	DefaultBranch string
}

type StatusResult

type StatusResult struct {
	Branch   string
	Upstream string
	Ahead    int
	Behind   int
	Files    []FileChange
}

type Worktree

type Worktree struct {
	Path        string
	Branch      string
	Head        string
	IsMain      bool
	Detached    bool
	Bare        bool
	Locked      bool
	Prunable    bool
	LastCommit  time.Time
	LastFileMod time.Time
	Agents      []AgentSession
}

func (Worktree) LiveAgents

func (w Worktree) LiveAgents() int

func (Worktree) RecentAgents

func (w Worktree) RecentAgents() int

Jump to

Keyboard shortcuts

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