Documentation
¶
Overview ¶
Package programstatus reports application state using the OSC 7501 protocol.
Index ¶
- type Reporter
- type Session
- func (s *Session) Acknowledge()
- func (s *Session) Apply(sessionID string, msg tea.Msg)
- func (s *Session) Cancel(sessionID string)
- func (s *Session) Finish(sessionID, reason string)
- func (s *Session) FinishSetup(sessionID, reason string)
- func (s *Session) Resolve(event tea.Msg)
- func (s *Session) Start(sessionID string)
- func (s *Session) Status() Status
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter coalesces output. All methods run on the UI loop, or after it exits.
func (*Reporter) Finish ¶
Finish retires transient state while preserving completed results on exit.
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session tracks a conversation independently of whether its UI is visible.
func (*Session) Acknowledge ¶
func (s *Session) Acknowledge()
Acknowledge dismisses a result when the user interacts with its conversation.
func (*Session) Apply ¶
Apply consumes accepted runtime events. Only the outer foreground stream finishes a turn; detached prompts survive foreground boundaries.
func (*Session) Cancel ¶
Cancel marks an interrupted foreground run idle, not successfully completed.
func (*Session) Finish ¶
Finish marks the outer UI operation complete, including pre-stream failures.
func (*Session) FinishSetup ¶
FinishSetup handles a fork that stopped before its first stream started.