Documentation
¶
Overview ¶
Package cursor provides the Cursor IDE agent source for agentwatch.
Root resolution ¶
This source does NOT read any environment variable. Callers must supply the base directory explicitly via WithRoot. If no WithRoot is provided the source returns no sessions. A caller that wants environment fallback can implement it itself:
home, _ := os.UserHomeDir() src := cursor.New(cursor.WithRoot(filepath.Join(home, ".cursor")))
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*Source)
Option configures a Source.
func WithDiscoverWindow ¶
WithDiscoverWindow limits discovery to transcript files whose modification time is within d of the current time. Zero disables age filtering.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source implements source.Source for Cursor IDE agent sessions.
Cursor stores agent transcripts at:
<root>/projects/<encoded-name>/agent-transcripts/<id>.jsonl (flat) <root>/projects/<encoded-name>/agent-transcripts/<id>/<id>.jsonl (nested)
The project directory name is a dash-encoded representation of the project folder path (path separators replaced by dashes).