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§
- Session
Config - 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