Skip to main content

Module session

Module session 

Source

Structs§

CurrentSession

Functions§

append_event
Appends one JSONL line to the session log file (creates if missing). Silently skips if the file exceeds MAX_SESSION_LOG_BYTES.
home_dir
Returns the user’s home directory. Tries HOME first (Unix/Git Bash), then USERPROFILE (Windows native).
memory_dir
new_session_filename
Returns “YYYY-MM-DD-HH.jsonl” for the current UTC time.
sessions_dir
squeez_dir
Returns the squeez state directory. Overridable via SQUEEZ_DIR env var (for tests).
unix_now
unix_to_date
Returns “YYYY-MM-DD” for the given unix timestamp.