[0.16.0] - 2026-04-25
Added
- Per-user-turn block-size capture for Claude sessions (#2).
parseClaudeSession/parseClaudeSessionIncrementalnow return auserTurns: UserTurnRecord[]alongsideturns, recording each user-turn's content blocks (tool_resultand free-text) withbyteLen,approxTokens(bytes/4 heuristic),toolUseId, andisError. EachUserTurnRecordcarriesprecedingMessageId/followingMessageIdso consumers can place the user turn between two assistant turns without re-walkingparentUuidchains. This is the prerequisite for per-tool-call cost attribution (burn waste): combined with the existing per-turnusage, callers can recover the input-side delta caused by individual tool calls (Anthropic only reports usage at message granularity). Additive — no on-disk schema change, existingTurnRecordconsumers are unaffected. Codex and OpenCode parsers are scoped for follow-up.