Documentation
¶
Index ¶
- type SessionState
- func (s *SessionState) AvailableAgents() []runtime.AgentDetails
- func (s *SessionState) CurrentAgentName() string
- func (s *SessionState) GetCurrentAgent() runtime.AgentDetails
- func (s *SessionState) HideToolResults() bool
- func (s *SessionState) PreviousMessage() *types.Message
- func (s *SessionState) SessionTitle() string
- func (s *SessionState) SetAvailableAgents(availableAgents []runtime.AgentDetails)
- func (s *SessionState) SetCurrentAgentName(currentAgentName string)
- func (s *SessionState) SetHideToolResults(hideToolResults bool)
- func (s *SessionState) SetPreviousMessage(previousMessage *types.Message)
- func (s *SessionState) SetSessionTitle(sessionTitle string)
- func (s *SessionState) SetThinking(thinking bool)
- func (s *SessionState) SetYoloMode(yoloMode bool)
- func (s *SessionState) SplitDiffView() bool
- func (s *SessionState) Thinking() bool
- func (s *SessionState) ToggleHideToolResults()
- func (s *SessionState) ToggleSplitDiffView()
- func (s *SessionState) YoloMode() bool
- type SessionStateReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionState ¶
type SessionState struct {
// contains filtered or unexported fields
}
SessionState holds shared state across the TUI application. This provides a centralized location for state that needs to be accessible by multiple components.
func NewSessionState ¶
func NewSessionState(s *session.Session) *SessionState
func (*SessionState) AvailableAgents ¶ added in v1.19.3
func (s *SessionState) AvailableAgents() []runtime.AgentDetails
func (*SessionState) CurrentAgentName ¶ added in v1.19.3
func (s *SessionState) CurrentAgentName() string
func (*SessionState) GetCurrentAgent ¶ added in v1.19.3
func (s *SessionState) GetCurrentAgent() runtime.AgentDetails
func (*SessionState) HideToolResults ¶
func (s *SessionState) HideToolResults() bool
func (*SessionState) PreviousMessage ¶
func (s *SessionState) PreviousMessage() *types.Message
func (*SessionState) SessionTitle ¶ added in v1.19.3
func (s *SessionState) SessionTitle() string
func (*SessionState) SetAvailableAgents ¶ added in v1.19.3
func (s *SessionState) SetAvailableAgents(availableAgents []runtime.AgentDetails)
func (*SessionState) SetCurrentAgentName ¶ added in v1.19.3
func (s *SessionState) SetCurrentAgentName(currentAgentName string)
func (*SessionState) SetHideToolResults ¶
func (s *SessionState) SetHideToolResults(hideToolResults bool)
func (*SessionState) SetPreviousMessage ¶ added in v1.19.3
func (s *SessionState) SetPreviousMessage(previousMessage *types.Message)
func (*SessionState) SetSessionTitle ¶ added in v1.19.3
func (s *SessionState) SetSessionTitle(sessionTitle string)
func (*SessionState) SetThinking ¶ added in v1.19.3
func (s *SessionState) SetThinking(thinking bool)
func (*SessionState) SetYoloMode ¶
func (s *SessionState) SetYoloMode(yoloMode bool)
func (*SessionState) SplitDiffView ¶
func (s *SessionState) SplitDiffView() bool
func (*SessionState) Thinking ¶ added in v1.19.3
func (s *SessionState) Thinking() bool
func (*SessionState) ToggleHideToolResults ¶
func (s *SessionState) ToggleHideToolResults()
func (*SessionState) ToggleSplitDiffView ¶
func (s *SessionState) ToggleSplitDiffView()
func (*SessionState) YoloMode ¶
func (s *SessionState) YoloMode() bool
type SessionStateReader ¶ added in v1.20.1
type SessionStateReader interface {
SplitDiffView() bool
YoloMode() bool
Thinking() bool
HideToolResults() bool
CurrentAgentName() string
PreviousMessage() *types.Message
SessionTitle() string
AvailableAgents() []runtime.AgentDetails
GetCurrentAgent() runtime.AgentDetails
}
SessionStateReader provides read-only access to session state. Components that only need to read state should depend on this interface rather than the full SessionState, following the principle of least privilege.
Click to show internal directories.
Click to hide internal directories.