Documentation
¶
Index ¶
- func Export(ctx context.Context, agent *opencode.OpencodeAgent, sessionID string) (*opencode.SessionExport, error)
- func FormatInfoText(info *SessionInfo, home string, now time.Time) string
- func FormatListTable(sessions []Session, home string, now time.Time) string
- func OpenCodeDataHome(home string) string
- type Session
- type SessionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Export ¶
func Export(ctx context.Context, agent *opencode.OpencodeAgent, sessionID string) (*opencode.SessionExport, error)
func FormatInfoText ¶ added in v0.0.43
func FormatInfoText(info *SessionInfo, home string, now time.Time) string
func FormatListTable ¶ added in v0.0.43
func OpenCodeDataHome ¶ added in v0.0.43
Types ¶
type Session ¶ added in v0.0.43
type SessionInfo ¶ added in v0.0.43
type SessionInfo struct {
Session
CreatedAt time.Time
UpdatedAt time.Time
NumMessages int
SessionPath string
MessageDir string
TotalInputTokens int
TotalOutputTokens int
TotalCost float64
}
func Info ¶ added in v0.0.43
func Info(dataDir, sessionID string) (*SessionInfo, error)
Click to show internal directories.
Click to hide internal directories.