class

Chronicle::Engine::SessionClusterer

Inherits Reference < Object

Clusters contiguous window focus and activity events into discrete deep-work sessions.

Constants

DEFAULT_GAP_SECONDS = 900.0

Gap in seconds that triggers a new session boundary (default 15 minutes = 900s)

Class methods

cluster(windows : Array(Models::WindowEvent), commands : Array(Models::ShellEvent), commits : Array(Models::GitCommit), idles : Array(Models::IdleEvent) = [] of Models::IdleEvent, gap_threshold_seconds : Float64 = DEFAULT_GAP_SECONDS) : Array(Models::WorkSession)
Source