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 FormatInfoText(info *SessionInfo, home string, now time.Time) string
- func FormatListJSON(sessions []Session) ([]byte, error)
- func FormatListTable(sessions []Session, home string, now time.Time) string
- func PrintLog(path string, w io.Writer, tail int) error
- type DisplayEvent
- type Session
- type SessionBrief
- type SessionInfo
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 FormatInfoText ¶ added in v0.0.43
func FormatInfoText(info *SessionInfo, home string, now time.Time) string
func FormatListJSON ¶
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"`
}
type SessionInfo ¶ added in v0.0.43
type SessionInfo struct {
Session
Status string `json:"status"`
LineCount int `json:"line_count"`
NumDisplayEvents int `json:"num_display_events"`
RecentMessages []DisplayEvent `json:"recent_messages"`
TotalInputTokens int `json:"total_input_tokens"`
TotalOutputTokens int `json:"total_output_tokens"`
}
Click to show internal directories.
Click to hide internal directories.