Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderContentBlocks ¶
func RenderContentBlocks(blocks []model.ContentBlock) ([]string, []string)
func SplitRenderedText ¶
Types ¶
type Entry ¶
type Entry struct {
ID string
Kind EntryKind
Title string
Preview string
ToolCallID string
ToolCallState model.ToolCallState
Blocks []model.ContentBlock
}
type SessionMetaState ¶
type SessionMetaState struct {
CurrentModeID string
AvailableCommands []model.SessionAvailableCommand
Status model.SessionStatus
}
type SessionPlanState ¶
type SessionPlanState struct {
Entries []model.SessionPlanEntry
PendingCount int
RunningCount int
DoneCount int
}
type SessionViewSnapshot ¶
type SessionViewSnapshot struct {
Revision int
Entries []Entry
Plan SessionPlanState
Session SessionMetaState
}
type ViewModel ¶
type ViewModel struct {
// contains filtered or unexported fields
}
func NewViewModel ¶
func NewViewModel() *ViewModel
func (*ViewModel) Apply ¶
func (m *ViewModel) Apply(update model.SessionUpdate) (SessionViewSnapshot, bool)
func (*ViewModel) LoadSnapshot ¶
func (m *ViewModel) LoadSnapshot(snapshot SessionViewSnapshot)
func (*ViewModel) Snapshot ¶
func (m *ViewModel) Snapshot() SessionViewSnapshot
Click to show internal directories.
Click to hide internal directories.