Documentation
¶
Index ¶
- Variables
- func NewSessionScreen(s ssh.Session) (tcell.Screen, error)
- type A
- type Chat
- func (c *Chat) BindHandlers() error
- func (c *Chat) Init(sub shared.UI, screen tcell.Screen, name string) error
- func (c *Chat) InitComponents()
- func (c *Chat) InputBlockedEnd(e *am.Event)
- func (c *Chat) InputBlockedState(e *am.Event)
- func (c *Chat) InterruptedEnd(e *am.Event)
- func (c *Chat) InterruptedState(e *am.Event)
- func (c *Chat) Logger() *slog.Logger
- func (c *Chat) Mach() *am.Machine
- func (c *Chat) MsgEnter(e *am.Event) bool
- func (c *Chat) MsgState(e *am.Event)
- func (c *Chat) PromptState(e *am.Event)
- func (c *Chat) Redraw()
- func (c *Chat) RequestingEnd(e *am.Event)
- func (c *Chat) RequestingState(e *am.Event)
- func (c *Chat) Start(dispose func() error) error
- func (c *Chat) Stop() error
- func (c *Chat) UIButtonInttState(e *am.Event)
- func (c *Chat) UIButtonSendState(e *am.Event)
- func (c *Chat) UICleanOutputState(e *am.Event)
- func (c *Chat) UIMach() *am.Machine
- type Clock
- func (c *Clock) AnyState(e *am.Event)
- func (c *Clock) BindHandlers() error
- func (c *Clock) Chart(data [][]float64) string
- func (c *Clock) Data() [][]float64
- func (c *Clock) DisposingState(e *am.Event)
- func (c *Clock) Init(sub shared.UI, screen tcell.Screen, name string) error
- func (c *Clock) InitComponents()
- func (c *Clock) Logger() *slog.Logger
- func (c *Clock) Mach() *am.Machine
- func (c *Clock) Redraw()
- func (c *Clock) Start(dispose func() error) error
- func (c *Clock) Stop() error
- func (c *Clock) UIMach() *am.Machine
- type S
- type Stories
- func (s *Stories) AddButton(button shared.StoryButton) error
- func (s *Stories) BindHandlers() error
- func (s *Stories) ClearButtons()
- func (s *Stories) Init(sub shared.UI, screen tcell.Screen, name string) error
- func (s *Stories) InitComponents()
- func (s *Stories) Logger() *slog.Logger
- func (s *Stories) Mach() *am.Machine
- func (s *Stories) Redraw()
- func (s *Stories) ReplaceContentEnd(e *am.Event)
- func (s *Stories) ReplaceContentState(e *am.Event)
- func (s *Stories) ReqReplaceContentState(e *am.Event)
- func (s *Stories) Start(dispose func() error) error
- func (s *Stories) Stop() error
- func (s *Stories) UIMach() *am.Machine
- type StoriesHandlers
Constants ¶
This section is empty.
Variables ¶
var ParseArgs = shared.ParseArgs
var Pass = shared.Pass
Functions ¶
func NewSessionScreen ¶ added in v0.2.0
Types ¶
type Chat ¶
type Chat struct {
// contains filtered or unexported fields
}
func (*Chat) BindHandlers ¶ added in v0.2.0
BindHandlers binds transition handlers to the state machine. Overwrite it to bind methods from a subclass.
func (*Chat) InitComponents ¶ added in v0.2.0
func (c *Chat) InitComponents()
func (*Chat) InputBlockedEnd ¶ added in v0.2.0
func (*Chat) InputBlockedState ¶ added in v0.2.0
func (*Chat) InterruptedEnd ¶ added in v0.2.0
func (*Chat) InterruptedState ¶ added in v0.2.0
func (*Chat) PromptState ¶
func (*Chat) RequestingEnd ¶
func (*Chat) RequestingState ¶
func (*Chat) Start ¶ added in v0.2.0
Start starts the UI and optionally returns the error and mutates with UIErr.
func (*Chat) UIButtonInttState ¶ added in v0.2.0
func (*Chat) UIButtonSendState ¶ added in v0.2.0
func (*Chat) UICleanOutputState ¶ added in v0.2.0
type Clock ¶ added in v0.2.0
type Clock struct {
Height int
States am.S
HistSize int
SeriesLen int
// contains filtered or unexported fields
}
func (*Clock) BindHandlers ¶ added in v0.2.0
BindHandlers binds transition handlers to the state machine. Overwrite it to bind methods from a subclass.
func (*Clock) DisposingState ¶ added in v0.2.0
func (*Clock) InitComponents ¶ added in v0.2.0
func (c *Clock) InitComponents()
type Stories ¶ added in v0.2.0
type Stories struct {
// contains filtered or unexported fields
}
func NewStories ¶ added in v0.2.0
func NewStories( mach *am.Machine, logger *slog.Logger, buttons []shared.StoryButton, stories []shared.StoryInfo, ) *Stories
NewStories returns a new TUI dedicated to showing stories and their progress (as buttons).
func (*Stories) AddButton ¶ added in v0.2.0
func (s *Stories) AddButton(button shared.StoryButton) error
func (*Stories) BindHandlers ¶ added in v0.2.0
BindHandlers binds transition handlers to the state machine. Overwrite it to bind methods from a subclass.
func (*Stories) ClearButtons ¶ added in v0.2.0
func (s *Stories) ClearButtons()
ClearButtons replaces the whole button view with a new one. This method CANT be called while rendering, as replacing flexview items will deadlock.
func (*Stories) InitComponents ¶ added in v0.2.0
func (s *Stories) InitComponents()
func (*Stories) ReplaceContentEnd ¶ added in v0.2.0
func (*Stories) ReplaceContentState ¶ added in v0.2.0
func (*Stories) ReqReplaceContentState ¶ added in v0.2.0
type StoriesHandlers ¶ added in v0.2.0
type StoriesHandlers struct {
*am.ExceptionHandler
// contains filtered or unexported fields
}
StoriesHandlers are handlers for the agent's machine from the Stories TUI.
func (*StoriesHandlers) UICleanOutputState ¶ added in v0.2.0
func (h *StoriesHandlers) UICleanOutputState(e *am.Event)