Crate sessions_cli

Source
Expand description

Session counter library for Claude Code hook system

This library provides utilities for tracking active Claude Code sessions using a JSON configuration file with file locking for concurrent access.

Structs§

SessionConfig
Configuration structure for session tracking

Functions§

get_config_path
Get the path to the session count configuration file
read_config
Read the session configuration from file with file locking
update_config
Atomically update the session configuration
write_config
Write the session configuration to file with file locking