cursor

package
v0.7.1 Latest Latest
Warning

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

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

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:

  1. Read composerData entries (330ms) to get session IDs + bubble counts + last bubble ID.
  2. For each session in 48h window, look up last bubble's createdAt (7ms each).
  3. 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.

Jump to

Keyboard shortcuts

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