Skip to main content

Module types

Module types 

Source
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§

AllSessionsSummary
Summary of all active sessions
CacheFileInfo
Cache file info for cache stats
DaemonConfig
Daemon configuration loaded from .tldr/config.json or .claude/settings.json
DedupStats
Statistics for content-hash deduplication
GlobalStats
Aggregated global stats (from JSONL store)
HookStats
Per-hook activity statistics
SalsaCacheStats
Statistics for Salsa-style query cache
SessionStats
Per-session statistics for token tracking

Enums§

DaemonCommand
Command sent to daemon via socket
DaemonResponse
Response from daemon
DaemonStatus
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