opencode

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBPath

func DBPath() string

DBPath returns the path to the OpenCode SQLite database.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL