Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverSessions ¶
func DiscoverSessions(cache *SessionCache) ([]*model.Session, error)
DiscoverSessions discovers recent Cursor sessions from state.vscdb.
Strategy:
- Read composerData entries (330ms) to get session IDs + bubble counts + last bubble ID.
- For each session in 48h window, look up last bubble's createdAt (7ms each).
- Only re-parse full bubble data when bubble count changes.
func StateDBDir ¶
func StateDBDir() string
StateDBDir returns the directory containing state.vscdb for WatchDirs.
Types ¶
type SessionCache ¶
type SessionCache struct {
// contains filtered or unexported fields
}
SessionCache holds per-session cached data and WAL state for invalidation.
func NewSessionCache ¶
func NewSessionCache() *SessionCache
NewSessionCache creates an empty Cursor session cache.
Click to show internal directories.
Click to hide internal directories.