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§
- Hook
Action - 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.