transcript

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderContentBlocks

func RenderContentBlocks(blocks []model.ContentBlock) ([]string, []string)

func SplitRenderedText

func SplitRenderedText(text string) []string

func WriteRenderedLines

func WriteRenderedLines(dst io.Writer, lines []string) error

Types

type Entry

type Entry struct {
	ID            string
	Kind          EntryKind
	Title         string
	Preview       string
	ToolCallID    string
	ToolCallState model.ToolCallState
	Blocks        []model.ContentBlock
}

type EntryKind

type EntryKind string
const (
	EntryKindAssistantMessage  EntryKind = "assistant_message"
	EntryKindAssistantThinking EntryKind = "assistant_thinking"
	EntryKindToolCall          EntryKind = "tool_call"
	EntryKindStderrEvent       EntryKind = "stderr_event"
	EntryKindRuntimeNotice     EntryKind = "runtime_notice"
)

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 (*ViewModel) LoadSnapshot

func (m *ViewModel) LoadSnapshot(snapshot SessionViewSnapshot)

func (*ViewModel) Snapshot

func (m *ViewModel) Snapshot() SessionViewSnapshot

Jump to

Keyboard shortcuts

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