Documentation
¶
Overview ¶
Package stats aggregates a set of discovered sessions into a small summary — how many, where (by project), and when (by day) — for `cct stats`. It is a pure transform over already-scanned sessions: it reads nothing from disk and never touches an agent's files or index.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectStat ¶
ProjectStat is one project's session count, keyed by recorded cwd.
type Stats ¶
type Stats struct {
Total int
Parsed int // sessions whose metadata parsed (have a thread id)
Compressed int
Archived int
NoCWD int
TotalBytes int64
First time.Time // earliest last-activity
Last time.Time // latest last-activity
Projects []ProjectStat
Days []DayStat
}
Stats is the computed summary.
Click to show internal directories.
Click to hide internal directories.