Skip to content

session_cache

session_cache

SessionCache

SessionCache(
    root: Path,
    claude_projects: Path = DEFAULT_CLAUDE_PROJECTS,
)

Resolves UUID-keyed inline-test fixtures to a cached transcript jsonl.

On miss, searches ~/.claude/projects/*/<uuid>.jsonl and copies the discovered file into <root>/.claude/hook-fixtures/<uuid>.jsonl so future runs are self-contained.