Documentation
¶
Overview ¶
Package tui exposes the reusable Looprig terminal interface.
Index ¶
- Constants
- func AllLoopsEventFilter() event.EventFilter
- func RenderStatusLine(status Status) string
- type Agent
- type AgentBanner
- type AgentHolder
- type AttachmentNotFoundError
- type AttachmentReadError
- type AttachmentTooLargeError
- type BinaryAttachmentError
- type DeniedAttachmentError
- type DisplayProjection
- type EffortID
- type EffortOption
- type EmptyInputError
- type EventStream
- type HandoffFinalizer
- type ImageUnsupportedError
- type LoopRuntimeOptions
- type ModeID
- type ModeOption
- type ModelID
- type ModelOption
- type OpenAgent
- type Option
- type RestoreBacklogError
- type RuntimeCatalog
- type RuntimeController
- type Screen
- type SessionBrowser
- type SessionID
- type SessionPresentation
- type SessionPresenter
- type SessionSummary
- type Status
- type TerminalErrorHolder
- type ToolCallView
- type ToolStatus
- type UnsupportedAttachmentError
Constants ¶
const ( StatusIdle = presentation.StatusIdle StatusRunning = presentation.StatusRunning StatusInterrupting = presentation.StatusInterrupting StatusResetting = presentation.StatusResetting ToolRunning = presentation.ToolRunning ToolOK = presentation.ToolOK ToolError = presentation.ToolError ToolCancelled = presentation.ToolCancelled )
Variables ¶
This section is empty.
Functions ¶
func AllLoopsEventFilter ¶
func AllLoopsEventFilter() event.EventFilter
AllLoopsEventFilter subscribes to enduring and ephemeral events from every loop.
func RenderStatusLine ¶
RenderStatusLine renders a standalone status indicator.
Types ¶
type Agent ¶
type Agent = presentation.Agent
Public presentation contracts retain their original type identity through aliases.
type AgentBanner ¶
type AgentBanner = presentation.AgentBanner
Public presentation contracts retain their original type identity through aliases.
type AgentHolder ¶
type AgentHolder = presentation.AgentHolder
Public presentation contracts retain their original type identity through aliases.
type AttachmentNotFoundError ¶
type AttachmentNotFoundError = input.AttachmentNotFoundError
Attachment input errors remain available at the root for compatibility.
type AttachmentReadError ¶
type AttachmentReadError = input.AttachmentReadError
Attachment input errors remain available at the root for compatibility.
type AttachmentTooLargeError ¶
type AttachmentTooLargeError = input.AttachmentTooLargeError
Attachment input errors remain available at the root for compatibility.
type BinaryAttachmentError ¶
type BinaryAttachmentError = input.BinaryAttachmentError
Attachment input errors remain available at the root for compatibility.
type DeniedAttachmentError ¶
type DeniedAttachmentError = input.DeniedAttachmentError
Attachment input errors remain available at the root for compatibility.
type DisplayProjection ¶
type DisplayProjection = presentation.DisplayProjection
Public presentation contracts retain their original type identity through aliases.
func FoldDisplay ¶
func FoldDisplay(events []event.Event) DisplayProjection
FoldDisplay rebuilds the display projection from session events.
type EffortID ¶
type EffortID = presentation.EffortID
Public presentation contracts retain their original type identity through aliases.
type EffortOption ¶
type EffortOption = presentation.EffortOption
Public presentation contracts retain their original type identity through aliases.
type EmptyInputError ¶
type EmptyInputError = input.EmptyInputError
Attachment input errors remain available at the root for compatibility.
type EventStream ¶
type EventStream = presentation.EventStream
Public presentation contracts retain their original type identity through aliases.
type HandoffFinalizer ¶
type HandoffFinalizer = presentation.HandoffFinalizer
Public presentation contracts retain their original type identity through aliases.
type ImageUnsupportedError ¶
type ImageUnsupportedError = input.ImageUnsupportedError
Attachment input errors remain available at the root for compatibility.
type LoopRuntimeOptions ¶
type LoopRuntimeOptions = presentation.LoopRuntimeOptions
Public presentation contracts retain their original type identity through aliases.
type ModeID ¶
type ModeID = presentation.ModeID
Public presentation contracts retain their original type identity through aliases.
type ModeOption ¶
type ModeOption = presentation.ModeOption
Public presentation contracts retain their original type identity through aliases.
type ModelID ¶
type ModelID = presentation.ModelID
Public presentation contracts retain their original type identity through aliases.
type ModelOption ¶
type ModelOption = presentation.ModelOption
Public presentation contracts retain their original type identity through aliases.
type OpenAgent ¶
type OpenAgent = presentation.OpenAgent
Public presentation contracts retain their original type identity through aliases.
type Option ¶
type Option = presentation.Option
Public presentation contracts retain their original type identity through aliases.
func WithSessionBrowser ¶
func WithSessionBrowser(browser SessionBrowser) Option
func WithSessionPresentation ¶
func WithSessionPresentation(p SessionPresentation) Option
WithSessionPresentation supplies the synchronous, consumer-filled session metadata (workspace root, fixed access profile name, permission diagnostics) the screen captures at construction and displays. Diagnostics are surfaced before the first permission gate; the profile is shown as session metadata, never a mutable control.
type RestoreBacklogError ¶
type RestoreBacklogError = presentation.RestoreBacklogError
Public presentation contracts retain their original type identity through aliases.
type RuntimeCatalog ¶
type RuntimeCatalog = presentation.RuntimeCatalog
Public presentation contracts retain their original type identity through aliases.
type RuntimeController ¶
type RuntimeController = presentation.RuntimeController
Public presentation contracts retain their original type identity through aliases.
type Screen ¶
type Screen = presentation.Screen
Public presentation contracts retain their original type identity through aliases.
type SessionBrowser ¶
type SessionBrowser = presentation.SessionBrowser
Public presentation contracts retain their original type identity through aliases.
type SessionID ¶
type SessionID = presentation.SessionID
Public presentation contracts retain their original type identity through aliases.
type SessionPresentation ¶
type SessionPresentation = presentation.SessionPresentation
Public presentation contracts retain their original type identity through aliases.
type SessionPresenter ¶
type SessionPresenter = presentation.SessionPresenter
Public presentation contracts retain their original type identity through aliases.
type SessionSummary ¶
type SessionSummary = presentation.SessionSummary
Public presentation contracts retain their original type identity through aliases.
type Status ¶
type Status = presentation.Status
Public presentation contracts retain their original type identity through aliases.
type TerminalErrorHolder ¶
type TerminalErrorHolder = presentation.TerminalErrorHolder
Public presentation contracts retain their original type identity through aliases.
type ToolCallView ¶
type ToolCallView = presentation.ToolCallView
Public presentation contracts retain their original type identity through aliases.
type ToolStatus ¶
type ToolStatus = presentation.ToolStatus
Public presentation contracts retain their original type identity through aliases.
type UnsupportedAttachmentError ¶
type UnsupportedAttachmentError = input.UnsupportedAttachmentError
Attachment input errors remain available at the root for compatibility.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
ttylog
Package ttylog keeps dependency logging off a full-screen TUI.
|
Package ttylog keeps dependency logging off a full-screen TUI. |
|
Package restore provides a reusable, interactive session.RestoreDecider that an application embedding tui wires into its harness Rig via rig.WithRestoreDecider.
|
Package restore provides a reusable, interactive session.RestoreDecider that an application embedding tui wires into its harness Rig via rig.WithRestoreDecider. |
|
Package runtime runs looprig TUI entry points.
|
Package runtime runs looprig TUI entry points. |
|
Package sessionadapter adapts harness sessions to the terminal Agent contract.
|
Package sessionadapter adapts harness sessions to the terminal Agent contract. |
|
Package styles holds the shared lipgloss styles and glamour helpers for the LoopRig TUI.
|
Package styles holds the shared lipgloss styles and glamour helpers for the LoopRig TUI. |