[0.9.0] - 2026-04-24
Added
- Subagent tree + per-type statistics.
buildSubagentTree(turns, { pricing })returns a per-sessionSubagentTreeNodehierarchy: main thread at the root, subagent invocations nested byparentAgentId, withselfCost/selfTurnsper node andcumulativeCost/cumulativeTurnsrolled up from leaves. Sidechain turns that arrived without resolvable tree fields attach under a synthetic(unresolved)node so their cost isn't dropped.aggregateSubagentTypeStats(turns, { pricing })reports invocations, turns, total / median / p95 / mean cost persubagentTypeacross sessions (counted once per uniquesessionId + agentId, not per turn). New exported types:SubagentTreeNode,SubagentTypeStats,BuildSubagentTreeOptions. Consumes the newTurnRecord.subagentfields from@relayburn/reader. Closes #8.