Skip to main content

Module hook

Module hook 

Source
Expand description

Shell hook logic for automatic time tracking.

The hook fires on every shell prompt render. It detects the current project from the working directory, manages sessions, and starts/stops timers.

Enums§

HookAction
What happened as a result of the hook firing.

Functions§

handle_hook
Handles a shell hook invocation.
handle_hook_exit
Handles shell exit: ends the session and conditionally stops the timer.
reap_stale_sessions
Reaps stale sessions whose last heartbeat is older than the threshold.