refactor(open-sse): extract buildUsage helper, dedup token-details (B2)

Add helpers/usageHelper.js for conditional prompt/completion token details.
Apply to gemini/codex/claude response translators; keep each provider's token
math intact. No behavior change; golden + gate: no regression.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
decolua
2026-06-13 17:18:15 +07:00
co-authored by Cursor
parent 34ea763d80
commit 39278e9613
5 changed files with 27 additions and 45 deletions
File diff suppressed because one or more lines are too long