Expand description
Core types for the TLDR daemon subsystem
Types for daemon configuration, status, statistics, and IPC messages. All types are serializable for JSON IPC communication.
Structs§
- AllSessions
Summary - Summary of all active sessions
- Cache
File Info - Cache file info for cache stats
- Daemon
Config - Daemon configuration loaded from .tldr/config.json or .claude/settings.json
- Dedup
Stats - Statistics for content-hash deduplication
- Global
Stats - Aggregated global stats (from JSONL store)
- Hook
Stats - Per-hook activity statistics
- Salsa
Cache Stats - Statistics for Salsa-style query cache
- Session
Stats - Per-session statistics for token tracking
Enums§
- Daemon
Command - Command sent to daemon via socket
- Daemon
Response - Response from daemon
- Daemon
Status - Daemon runtime status
Constants§
- DEFAULT_
REINDEX_ THRESHOLD - Default threshold for triggering semantic re-index
- HOOK_
FLUSH_ THRESHOLD - Default flush interval for hook stats (every N invocations)
- IDLE_
TIMEOUT - Idle timeout before daemon auto-shutdown (30 minutes)
- IDLE_
TIMEOUT_ SECS - Idle timeout in seconds for serialization