feat: UI разбивки токенов, покрытие агентов, стоимость по агентам#26
Closed
NovakPAai wants to merge 2 commits into
Closed
feat: UI разбивки токенов, покрытие агентов, стоимость по агентам#26NovakPAai wants to merge 2 commits into
NovakPAai wants to merge 2 commits into
Conversation
- Кэш-токены (cache_read, cache_create) трекаются отдельно от input - Добавлен расчёт утилизации контекстного окна (средний % по всем ходам, база 200K) - getCostAnalytics расширен: totalInputTokens, totalOutputTokens, totalCacheReadTokens, totalCacheCreateTokens, avgContextPct, dailyRate, byAgent, agentNoCostData - totalSessions теперь считает только сессии с реальными данными - Обратно совместимо: новые поля добавлены, старые не изменены Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Карточки сводки: daily rate, убраны префиксы ~$ - Бейджи покрытия данных: Claude ✓ / Codex ~est. / OpenCode ✓|~est. / Cursor ✗ - Сетка Token Breakdown: input / output / cache read / cache write / avg context % - Диаграмма Cost by Agent (появляется при 2+ агентах с данными) - Кэш-токены в детальном просмотре сессии - CSS: .analytics-coverage, .token-breakdown-grid, .token-type-card Зависит от: feat/cost-cache-tokens-breakdown (расширенный API) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
5 tasks
Owner
|
Please rebase on latest main (6.3.3). |
Owner
Owner
vakovalskii
added a commit
that referenced
this pull request
Apr 7, 2026
Merged contributions from @NovakPAai: - PR #24: Cache token breakdown in computeSessionCost (cacheRead/cacheCreate tokens) - PR #25: Real OpenCode token extraction via SQLite - PR #26: UI token breakdown, agent coverage, cost by agent in analytics - PR #27: Multi-period subscription vs API comparison with ROI Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
vakovalskii
added a commit
that referenced
this pull request
Apr 7, 2026
Merged contributions from @NovakPAai: - PR #24: Cache token breakdown in computeSessionCost (cacheRead/cacheCreate tokens) - PR #25: Real OpenCode token extraction via SQLite - PR #26: UI token breakdown, agent coverage, cost by agent in analytics - PR #27: Multi-period subscription vs API comparison with ROI Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Owner
|
Merged in v6.4.0 via rebased PR #34. Thanks @NovakPAai! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что сделано
Frontend для отображения расширенных данных аналитики из #24.
Изменения
src/frontend/app.js(+111 строк):~$X in / Y out / Z cache)src/frontend/styles.css(+50 строк):.analytics-coverage,.coverage-ok/est/none.token-breakdown-grid,.token-type-card,.token-cache-read/create,.token-contextКак выглядит
Новые секции появляются между сводкой и графиком Daily Cost:
Тест-план
Зависит от: #24
Closes #18 (part 3/4)
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com