pub fn load_all(
claude_home: &Path,
calc: &PricingCalculator,
) -> Result<(Vec<SessionData>, GlobalDataQuality)>Expand description
Load all session data from a Claude home directory.
- Scans for JSONL files (main sessions + agents)
- Resolves legacy agent parent relationships
- Parses main sessions in parallel; groups agent files by
agent_idintoSubagententries on their parent session - Aggregates plugins / skills from main turns and hooks from main session
stop_hook_summaryentries (Claude Code 2.1.104+) - Computes global time range and quality metrics
The PricingCalculator is used to populate per-plugin / per-skill cost
fields on the aggregated metadata. Cost / token totals on the underlying
turns are untouched.