Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverSessions ¶
func DiscoverSessions(cache *SessionCache) ([]*model.Session, error)
DiscoverSessions reads the OpenCode SQLite database and returns sessions.
func OpenCodeDataDir ¶
func OpenCodeDataDir() string
OpenCodeDataDir returns the path to the OpenCode data directory.
Types ¶
type SessionCache ¶
type SessionCache struct {
// contains filtered or unexported fields
}
SessionCache caches OpenCode sessions keyed by session ID. Uses time_updated from the DB as the staleness check.
func NewSessionCache ¶
func NewSessionCache() *SessionCache
NewSessionCache creates an empty OpenCode session cache.
Click to show internal directories.
Click to hide internal directories.