Documentation
¶
Index ¶
- func CodexHomeFromEnv(home string) string
- func Find(codexHome string, sessionID string) (string, error)
- func FormatBriefJSON(brief *SessionBrief) ([]byte, error)
- func FormatBriefText(brief *SessionBrief, home string) string
- func FormatListJSON(sessions []Session) ([]byte, error)
- func FormatListTable(sessions []Session, home string) string
- func PrintLog(path string, w io.Writer, tail int) error
- type DisplayEvent
- type Session
- type SessionBrief
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodexHomeFromEnv ¶
func FormatBriefJSON ¶
func FormatBriefJSON(brief *SessionBrief) ([]byte, error)
func FormatBriefText ¶
func FormatBriefText(brief *SessionBrief, home string) string
func FormatListJSON ¶
func FormatListTable ¶
Types ¶
type DisplayEvent ¶
type Session ¶
type SessionBrief ¶
type SessionBrief struct {
Session
Status string `json:"status"`
LineCount int `json:"line_count"`
RecentMessages []DisplayEvent `json:"recent_messages"`
}
Click to show internal directories.
Click to hide internal directories.