dsh-all-usage 1.0.9 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/README.md +59 -12
- package/assets/screenshot-1.png +0 -0
- package/assets/screenshot-2.png +0 -0
- package/assets/screenshot-3.png +0 -0
- package/lib/client.js +1668 -100
- package/lib/index.js +1118 -167
- package/lib/pricing.js +645 -0
- package/package.json +3 -1
- package/screenshots.json +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,59 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `dsh-all-usage` are documented here.
|
|
4
4
|
|
|
5
|
+
## [Unreleased]
|
|
6
|
+
|
|
7
|
+
## [1.1.2] - 2026-08-30
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- Added models.dev price catalog synchronization with a persisted last-good cache, optional 6-hour automatic sync, model-only official-vendor matching, explicit model mappings, and manual overrides for authoritative special pricing.
|
|
12
|
+
- Added cc-switch-compatible four-bucket cost snapshots: input, output, cache read, and cache write; cost multipliers apply only to the final total.
|
|
13
|
+
- Added ledger v3 cost snapshots, zero-cost/unpriced coverage counters, cost fields in scoped query and privacy-safe records responses, cost columns in exports, and a dashboard pricing settings panel.
|
|
14
|
+
- Added searchable current-model selectors for mappings and overrides, automatic official model lookup, compact price-field labels, and persisted mapping display recovery.
|
|
15
|
+
- Added Token and cost details to model and workspace donut legends and hover menus, including aggregated values for the other bucket.
|
|
16
|
+
- Added date-indexed usage and turn queries, revision-scoped snapshot and records caching, debounced official model search, and complete write-chain draining during disposal.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Preserved DSH's already-normalized fresh input semantics and avoided charging reasoning tokens twice when provider output counts already include completion/thoughts.
|
|
21
|
+
- Kept positive historical cost snapshots stable across pricing catalog updates; only unpriced usage is eligible for explicit backfill.
|
|
22
|
+
- Fixed saved model mappings reopening with an empty current-model field by deriving the display from the persisted model identity.
|
|
23
|
+
- Prevented first live events from being lost during session bootstrap or read failures, and added generation-scoped recovery for baseline/live races.
|
|
24
|
+
- Rejected oversized state bodies and malformed alias parameters, reported failed session reads accurately, ignored invalid event timestamps, and kept daily session counts correct after replacements.
|
|
25
|
+
|
|
26
|
+
## [1.1.1] - 2026-08-29
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- Reissued the v1.1 dashboard package under a new patch version for registry compatibility.
|
|
31
|
+
|
|
32
|
+
## [1.1.0] - 2026-08-28
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
|
|
36
|
+
- Added structured Provider, requested-model, actual-model, and display-model identity fields while preserving the legacy `model` field.
|
|
37
|
+
- Added a backward-compatible ledger v2 adapter; v1 rows are read once, canonicalized, and upgraded before revision skipping resumes.
|
|
38
|
+
- Added shared scoped usage and privacy-safe paginated records APIs: `/api/all-usage/query` and `/api/all-usage/records`; query responses now add hourly trend rows for single-day scopes while preserving the existing daily rows.
|
|
39
|
+
- Kept workspace, provider, and model filters independent so users can combine all three dimensions in one scope.
|
|
40
|
+
- Limited workspace, provider, and model filter options to values used in the selected date range and clear selections that become unavailable after a range change.
|
|
41
|
+
- Added unified Workspace, Provider, model, date, and timezone filtering for dashboard aggregates, the fixed 53-week heatmap, trend data, and exports.
|
|
42
|
+
- Added a responsive Token trend chart with smooth monotone cubic curves, staged draw animation, selectable input, cache-read, cache-write, output, reasoning, and total series; single-day scopes use hourly buckets while cross-day scopes use daily buckets.
|
|
43
|
+
- Added Token-share donut charts with ranked legends to the model and workspace detail panels, including high-contrast remainder segments, animated arc reveals, and cursor-following hover details.
|
|
44
|
+
- Added a persistent Request Logs tab with a compact paginated table, selected-row Token detail, opaque row IDs, materialization-source labels, and scoped detail CSV export.
|
|
45
|
+
- Optimized Host records pagination with revision-scoped ordering and precomputed identity/date values; optimized Client derived aggregates with memoization and active-tab rendering.
|
|
46
|
+
|
|
47
|
+
### Fixed
|
|
48
|
+
|
|
49
|
+
- Prevented model identity collisions caused by parsing display labels containing ` / `.
|
|
50
|
+
- Detects truncated or replaced session logs instead of overlaying a newer full rebuild with a stale ledger row.
|
|
51
|
+
- Keeps turn counts, call counts, and distinct session counts separately defined in scoped results.
|
|
52
|
+
- Keeps complete trend paths visible while per-series reveal animation restarts during live refreshes, preventing the final chart segment from disappearing.
|
|
53
|
+
- Reserves the trend chart height during query loading and replaces floating loading text/legend controls with a centered spinner.
|
|
54
|
+
- Keeps hover intersection markers static so they do not jump from the SVG origin into position on every hover.
|
|
55
|
+
- Reuses one anchored trend tooltip with short position and opacity transitions, avoiding abrupt remounts while switching dates.
|
|
56
|
+
- Isolates dashboard render failures behind the sidebar entry so a bad range response cannot remove the usage entry itself.
|
|
57
|
+
|
|
5
58
|
## [1.0.9] - 2026-08-26
|
|
6
59
|
|
|
7
60
|
### Added
|
|
@@ -74,6 +127,7 @@ All notable changes to `dsh-all-usage` are documented here.
|
|
|
74
127
|
- Allowed same-origin browser balance GET requests that omit `Origin` while retaining token protection.
|
|
75
128
|
- Standardized English date buckets, range filters, streaks, heatmap dates, and export timestamps on UTC.
|
|
76
129
|
|
|
130
|
+
[1.1.0]: https://github.com/ParticleLight/dsh-all-usage/releases/tag/v1.1.0
|
|
77
131
|
[1.0.9]: https://github.com/ParticleLight/dsh-all-usage/releases/tag/v1.0.9
|
|
78
132
|
[1.0.8]: https://github.com/ParticleLight/dsh-all-usage/releases/tag/v1.0.8
|
|
79
133
|
[1.0.7]: https://github.com/ParticleLight/dsh-all-usage/releases/tag/v1.0.7
|
package/README.md
CHANGED
|
@@ -12,7 +12,8 @@ DeepSeek Harness 全量用量看板:按模型、供应商、工作区和时间
|
|
|
12
12
|
|
|
13
13
|
- **热力图**:53 周使用热力图;按工作区筛选并查看每日回合与 Token 明细
|
|
14
14
|
- **模型统计**:支持混合查看、按模型合并、按供应商汇总三种维度,展示调用次数、各类 Token 与缓存命中率
|
|
15
|
-
- **摘要与工作区**:Token
|
|
15
|
+
- **摘要与工作区**:Token 用量、缓存命中、估算成本、账户余额、连续使用、工作区 Token 分布和明细
|
|
16
|
+
- **成本统计**:从 models.dev 同步模型价格;按输入、输出、缓存读取和缓存写入四个桶计算,保存价格快照,明确区分已计价、免费模型和未计价调用
|
|
16
17
|
- **导出**:按当前时间范围和模型聚合方式导出 CSV
|
|
17
18
|
- **时间范围**:今日、近 30 天、近 90 天、全部,或在全部可扫描历史日数据中自定义起止日期;热力图始终展示最近 53 周
|
|
18
19
|
- **工作区别名**:在侧栏入口打开看板后管理,持久化保存到 $DSH_HOME/storages 的 KV 单元 `all_usage_aliases`
|
|
@@ -20,14 +21,28 @@ DeepSeek Harness 全量用量看板:按模型、供应商、工作区和时间
|
|
|
20
21
|
- **完整历史与增量重建**:基线扫描全部可读历史会话;独立用量账本同时作为每会话游标——未变化的会话直接复用账本,新增事件只增量回填,长历史重启不再全量重建
|
|
21
22
|
- **重启免读**:用持久化日志的 revision 作为每会话的变更信号(只读头部行 + stat,不读全量)——日志未变的会话重启时连事件都不读,直接从账本复用;仅日志变化(新增/修改)的会话才做增量读取
|
|
22
23
|
- **数据健康与按需刷新**:扫描完成后浏览器只检查轻量状态版本,只有用量、别名或同步状态变化时才拉完整历史;显示本次数据更新时间、历史扫描健康、revision 免读、实际读取、账本恢复和失败,网络异常保留上次成功数据并可重试
|
|
24
|
+
- **性能优化**:Host 使用 local/UTC 日期索引、revision-scoped snapshot/records 缓存和可回收的实时事件队列;Client 对 scope 聚合、统计行和官方模型检索做防抖/缓存,并只渲染当前明细页签
|
|
25
|
+
- **趋势折线图**:按当前范围、时区、工作区、供应商和模型显示输入、缓存读写、输出、推理及总处理量;单日范围按小时聚合并显示小时轴,跨日范围按日聚合;使用平滑单调曲线与入场动画,悬停查看精确值,图例可切换曲线,点击点位进入当日明细
|
|
26
|
+
- **统一筛选与审计**:工作区、供应商、模型和日期筛选贯穿摘要、热力图、趋势、表格与 CSV;工作区、供应商、模型三个筛选维度可独立自由组合,工作区、供应商和模型选项只展示当前日期范围内实际使用过的值;切换范围后失效筛选会自动清除;请求日志以紧凑分页表常驻显示,选择单条后查看分组 Token 详情
|
|
23
27
|
- **Token 口径**:输入按「未含缓存命中」计,缓存命中 / 写入与推理独立成桶;全 0 用量的重放事件不会覆盖已记录的真实用量,仅缓存命中的请求也会计入
|
|
28
|
+
- **成本口径**:模型价格来自 models.dev 的 USD / 1M Token 目录;成本快照按 DSH 已归一化的 fresh input 和四类价格桶计算,倍率只作用于最终总价,已有正成本历史不会因价格更新重算;只按模型选择官方厂商条目,未找到官方价格时显示为未计价
|
|
24
29
|
|
|
25
30
|
### 最近更新
|
|
26
31
|
|
|
27
|
-
**v1.
|
|
32
|
+
**v1.1.2**
|
|
28
33
|
|
|
29
|
-
-
|
|
30
|
-
-
|
|
34
|
+
- 模型与工作区环图及右侧列表新增 Token 数、成本和占比展示,其他分组同步合并成本
|
|
35
|
+
- Host 增加日期索引、快照/日志查询缓存、实时事件恢复和写入生命周期保护
|
|
36
|
+
- 成本设置官方模型检索增加防抖,新增 body、别名、时间戳和扫描失败边界校验
|
|
37
|
+
- 更新插件自有截图清单,使用全量看板、成本设置和请求日志截图
|
|
38
|
+
|
|
39
|
+
**v1.1.1**
|
|
40
|
+
|
|
41
|
+
- 结构化模型身份与兼容 ledger v2:区分 Provider、请求模型和实际模型,旧账本自动升级
|
|
42
|
+
- 统一 scope 查询:时间、时区、工作区、Provider、模型筛选同时作用于摘要、热力图、趋势、表格和 CSV
|
|
43
|
+
- Token 趋势折线图:单日范围按小时、跨日范围按日;平滑单调曲线、分层入场动画、多桶图例切换、悬停精确值和点位审计钻取
|
|
44
|
+
- **模型与工作区统计**:在明细表上方提供 Token 占比环形图、中心总量、Top 项目图例和 hover 明细;环段与右侧列表同时展示 Token、成本和占比,tooltip 会跟随鼠标位置
|
|
45
|
+
- turn / step 审计明细:常驻请求日志标签、紧凑分页表、选中行分组详情、脱敏来源标记和当前筛选范围明细 CSV
|
|
31
46
|
|
|
32
47
|
完整版本记录见 [CHANGELOG.md](CHANGELOG.md)。
|
|
33
48
|
|
|
@@ -35,7 +50,9 @@ DeepSeek Harness 全量用量看板:按模型、供应商、工作区和时间
|
|
|
35
50
|
|
|
36
51
|

|
|
37
52
|
|
|
38
|
-

|
|
54
|
+
|
|
55
|
+

|
|
39
56
|
|
|
40
57
|
### 安装
|
|
41
58
|
|
|
@@ -70,9 +87,16 @@ dsh plugin --profile web add github:ParticleLight/dsh-all-usage
|
|
|
70
87
|
### 架构
|
|
71
88
|
|
|
72
89
|
- **Host 端**(`lib/index.js`):扫描持久化会话日志聚合用量(`turn/end` + `assistant/message.usage`),监听 `session/event` 实时折叠;通过 `webServer` 服务注册数据路由:
|
|
73
|
-
- `GET /api/all-usage` —
|
|
90
|
+
- `GET /api/all-usage` — 兼容统计快照
|
|
91
|
+
- `GET /api/all-usage/status` — 轻量 revision 与同步健康状态
|
|
92
|
+
- `GET /api/all-usage/query` — 按 scope 返回聚合、daily/hourly 趋势和 heatmap 数据;单日 scope 填充 `hourly`,跨日 scope 的 `hourly` 为空
|
|
93
|
+
- `GET /api/all-usage/records` — 按 scope 分页返回脱敏 canonical usage rows
|
|
74
94
|
- `GET /api/all-usage/balance?force=1` — 账户余额(复用 `llm-deepseek` 的 API Key 配置)
|
|
75
95
|
- `POST /api/all-usage/alias` — 设置工作区别名
|
|
96
|
+
- `GET /api/all-usage/pricing` — 查看 models.dev 同步状态、已用模型匹配和显式覆盖
|
|
97
|
+
- `GET /api/all-usage/pricing/models?q=...` — 检索官方模型 ID 与名称匹配结果
|
|
98
|
+
- `POST /api/all-usage/pricing` — 保存同步、mapping 和显式价格覆盖
|
|
99
|
+
- `POST /api/all-usage/pricing/sync` — 手动同步 models.dev 并回填未计价调用
|
|
76
100
|
- **Client 端**(`lib/client.js`):`window.__ModuleLoader__` 工厂格式的浏览器 bundle,注册侧边栏「用量统计」入口(`sidebar.footer.action` 槽位)。所有 API 仅接受本机 loopback 请求并拒绝显式跨域请求;余额读取与别名写入还要求插件启动时生成、仅在当前进程有效的令牌(余额 GET 兼容浏览器省略 Origin)。英文模式的日期分桶、范围筛选、连续使用、热力图和导出时间统一按 UTC;中文模式按本地时区。
|
|
77
101
|
|
|
78
102
|
### 数据说明
|
|
@@ -83,7 +107,11 @@ dsh plugin --profile web add github:ParticleLight/dsh-all-usage
|
|
|
83
107
|
- 同一会话的同一 `turn / step` 只保留一份最终 usage;重试或替换消息会替换旧贡献,不重复累计
|
|
84
108
|
- 输入 Token 按「未含缓存命中」计(缓存命中 / 写入独立成桶);全 0 用量的重放事件不会覆盖已记录的真实用量,纯缓存命中的请求仍会计入
|
|
85
109
|
- 轻量状态接口只公开 Host 实例、统计 revision、扫描进度与同步计数,不公开会话 ID、工作区路径、提示词或回复正文;完整快照仅在状态变化或手动刷新时获取
|
|
110
|
+
- scope query 将回合(turns)、模型调用(calls)和去重会话(sessions)分开统计;Provider/模型筛选缺少路由信息时明确归为 Unknown,不从展示字符串猜测
|
|
111
|
+
- records 接口只返回短 hash、时间、工作区 ID、结构化模型身份、turn/step、Token buckets 和当前物化来源,不返回原始 session ID、路径、提示词、回复或凭据
|
|
86
112
|
- 看板中的总处理量 = 输入 + 输出 + 缓存读写 + 推理;缓存命中表示复用的上下文 Token,不等于新生成 Token 或实际费用
|
|
113
|
+
- 成本计算沿用 cc-switch 的四桶公式:输入、输出、缓存读取和缓存写入分别乘每百万价格,四项相加后再乘倍率;DSH 的 reasoning 字段不再次加到 output,避免底层 completion/thoughts 已含推理时重复计费
|
|
114
|
+
- 价格同步默认关闭;models.dev 不可用时保留最近一次成功目录,未匹配模型不会套用默认价格;手工 mapping/override 仅用于模型别名、官方目录缺失或有权威官方价格;看板范围与明细视图保存在浏览器本地,6 小时自动同步开关会立即写入受保护的 pricing API
|
|
87
115
|
- 余额查询走 DeepSeek 官方 `/user/balance` 接口;未配置 API Key 时卡片显示引导文案
|
|
88
116
|
- 仅统计能归属到已注册工作区(按会话 cwd 匹配)的会话
|
|
89
117
|
|
|
@@ -94,13 +122,14 @@ dsh plugin --profile web add github:ParticleLight/dsh-all-usage
|
|
|
94
122
|
|
|
95
123
|
## English
|
|
96
124
|
|
|
97
|
-
A full usage dashboard for DeepSeek Harness. Analyze tokens, cache behavior, account balance, and activity by model, provider, workspace, and time range.
|
|
125
|
+
A full usage dashboard for DeepSeek Harness. Analyze tokens, cache behavior, estimated cost, account balance, and activity by model, provider, workspace, and time range.
|
|
98
126
|
|
|
99
127
|
### Features
|
|
100
128
|
|
|
101
129
|
- **Heatmap**: a 53-week activity heatmap with workspace filters and daily turn/token details
|
|
102
130
|
- **Model analytics**: mixed view, model-merged view, and provider summary with calls, token categories, and cache hit rate
|
|
103
|
-
- **Summary and workspaces**: processed tokens, cache hits, account balance, usage streaks, workspace distribution, and details
|
|
131
|
+
- **Summary and workspaces**: processed tokens, cache hits, estimated cost, account balance, usage streaks, workspace distribution, and details
|
|
132
|
+
- **Cost statistics**: sync model prices from models.dev, calculate four cost buckets, persist price snapshots, and distinguish priced, free, ambiguous, and unpriced calls
|
|
104
133
|
- **CSV export**: export data using the selected time range and aggregation mode
|
|
105
134
|
- **Time ranges**: today, last 30 days, last 90 days, all time, or a custom start/end date across all available historical daily data; the heatmap always shows the latest 53 weeks
|
|
106
135
|
- **Workspace aliases**: manage aliases from the sidebar dashboard; values persist in the $DSH_HOME/storages KV cell `all_usage_aliases`
|
|
@@ -108,14 +137,21 @@ A full usage dashboard for DeepSeek Harness. Analyze tokens, cache behavior, acc
|
|
|
108
137
|
- **Full history & incremental rebuild**: the baseline scans every readable historical session; the durable usage ledger doubles as a per-session cursor, so unchanged sessions are reused straight from the ledger and only newly appended events are folded — long histories restart without a full rebuild
|
|
109
138
|
- **Restart with no re-read**: the persisted log revision (a header-line + stat via `sessionPersistence.listSnapshots()`) acts as a per-session change signal — sessions whose log is unchanged are applied from the ledger on restart without reading their events at all; only changed/new sessions are read incrementally
|
|
110
139
|
- **Data health and on-demand refresh**: after a scan completes, the browser polls only a lightweight status revision and fetches full history only after usage, alias, or sync state changes; it shows the latest full-data update, historical scan health, revision skips, rereads, ledger recovery, and failures while preserving last-good data on network errors
|
|
140
|
+
- **Performance**: Host reuses canonical identities, local/UTC date keys, and the current-revision records ordering; Client memoizes scope aggregates and detail rows and renders only the active detail tab
|
|
141
|
+
- **Trend line chart**: show input, cache read/write, output, reasoning, and total processed tokens for the active range, timezone, workspace, provider, and model scope; use hourly buckets for a single-day scope and daily buckets for cross-day scopes, with smooth monotone curves, staged entrance animation, hover for exact values, and click a point to inspect that day
|
|
142
|
+
- **Unified filters and audit**: workspace, provider, model, and date filters apply to the summary, heatmap, trend, tables, and CSV; workspace, provider, and model filters remain independent and can be combined freely, while workspace, provider, and model options are limited to values used in the selected date range and stale selections clear automatically; request logs stay visible as a compact paginated table with grouped Token details for the selected row
|
|
111
143
|
- **Token accounting semantics**: input tokens are fresh (exclude cache hits/writes, which sit in separate buckets along with reasoning); all-zero usage replays never overwrite recorded usage, while cache-only requests still count
|
|
144
|
+
- **Cost semantics**: prices come from the models.dev USD per 1M token catalog; DSH-normalized fresh input and the four cost buckets are snapshotted at calculation time, the multiplier applies only to final total, and existing positive historical costs are not recalculated; matching uses the model's official vendor entry and ignores the DSH provider, while missing official prices stay unpriced
|
|
112
145
|
|
|
113
146
|
### Latest Update
|
|
114
147
|
|
|
115
|
-
**v1.0
|
|
148
|
+
**v1.1.0**
|
|
116
149
|
|
|
117
|
-
-
|
|
118
|
-
-
|
|
150
|
+
- Structured model identity with backward-compatible ledger v2 migration
|
|
151
|
+
- Unified scope queries for time, timezone, workspace, provider, and model filters
|
|
152
|
+
- Token trend line chart with hourly single-day data, selectable series, exact hover values, and point-to-audit drill-down
|
|
153
|
+
- Model and workspace analytics with Token-share donut charts, center totals, ranked legends, animated arc reveals, and cursor-following hover details
|
|
154
|
+
- Paginated turn/step audit records with redacted provenance and scoped detail CSV export
|
|
119
155
|
|
|
120
156
|
See [CHANGELOG.md](CHANGELOG.md) for the complete version history.
|
|
121
157
|
|
|
@@ -152,9 +188,16 @@ The profile patch layer hot-reloads; save the file and refresh the page.
|
|
|
152
188
|
### Architecture
|
|
153
189
|
|
|
154
190
|
- **Host** (`lib/index.js`): aggregates persisted session logs (`turn/end` and `assistant/message.usage`), folds live `session/event` updates, and exposes data routes through `webServer`:
|
|
155
|
-
- `GET /api/all-usage` — usage snapshot
|
|
191
|
+
- `GET /api/all-usage` — compatible usage snapshot
|
|
192
|
+
- `GET /api/all-usage/status` — lightweight revision and sync health
|
|
193
|
+
- `GET /api/all-usage/query` — scoped aggregate, daily/hourly trend, and heatmap data; single-day scopes populate `hourly`, while cross-day scopes return an empty `hourly` array
|
|
194
|
+
- `GET /api/all-usage/records` — paginated privacy-safe canonical usage rows
|
|
156
195
|
- `GET /api/all-usage/balance?force=1` — account balance using the configured `llm-deepseek` API key
|
|
157
196
|
- `POST /api/all-usage/alias` — update workspace aliases
|
|
197
|
+
- `GET /api/all-usage/pricing` — inspect models.dev sync status, used-model matches, and explicit overrides
|
|
198
|
+
- `GET /api/all-usage/pricing/models?q=...` — search official model IDs and display-name matches
|
|
199
|
+
- `POST /api/all-usage/pricing` — save sync, mappings, and explicit price overrides
|
|
200
|
+
- `POST /api/all-usage/pricing/sync` — sync models.dev and backfill unpriced calls
|
|
158
201
|
- **Client** (`lib/client.js`): a `window.__ModuleLoader__` browser bundle that registers the “Usage statistics” sidebar entry through the `sidebar.footer.action` slot. All API routes accept loopback requests and reject an explicit cross-origin Origin; balance reads and alias writes also require a process-scoped token generated when the plugin starts (the balance GET tolerates browsers omitting Origin).
|
|
159
202
|
|
|
160
203
|
### Data semantics
|
|
@@ -165,7 +208,11 @@ The profile patch layer hot-reloads; save the file and refresh the page.
|
|
|
165
208
|
- For each session and logical `turn / step`, only the final usage contribution is kept; retries or replaced messages do not double-count
|
|
166
209
|
- Input tokens are fresh (exclude cache hits/writes, which sit in their own buckets); all-zero usage replays do not overwrite recorded usage and pure cache-read requests still count
|
|
167
210
|
- The lightweight status endpoint exposes only Host instance, stats revision, scan progress, and sync counters. It does not expose session IDs, workspace paths, prompts, or reply bodies; full snapshots are fetched only after status changes or a manual refresh
|
|
211
|
+
- Scoped results keep turns, model calls, and distinct sessions as separate metrics; missing route identity is explicitly Unknown rather than inferred from a display label
|
|
212
|
+
- The records endpoint returns only a short hash, time, workspace ID, structured model identity, turn/step, token buckets, and current materialization source. It omits raw session IDs, paths, prompts, replies, and credentials
|
|
168
213
|
- Processed tokens = input + output + cache read/write + reasoning; a cache hit means reused context, not newly generated tokens or actual cost
|
|
214
|
+
- Cost follows the cc-switch four-bucket formula: input, output, cache-read, and cache-write tokens are priced independently, summed, then multiplied by the final multiplier; DSH reasoning is not added to output a second time
|
|
215
|
+
- Pricing sync is off by default; when models.dev is unavailable the last good catalog remains in use, and unmatched models never receive a guessed default price; explicit model mappings/overrides are for aliases, missing official catalog entries, or authoritative special pricing; dashboard range and detail-view preferences are stored in browser storage, while the 6-hour sync toggle is immediately saved through the protected pricing API
|
|
169
216
|
- Balance data comes from DeepSeek’s official `/user/balance` endpoint; the card shows guidance when no API key is configured
|
|
170
217
|
- English mode uses UTC for date buckets, range filters, streaks, heatmap dates, and export timestamps; Chinese mode uses local time
|
|
171
218
|
- Only sessions that can be mapped to a registered workspace by their working directory are included
|
package/assets/screenshot-1.png
CHANGED
|
Binary file
|
package/assets/screenshot-2.png
CHANGED
|
Binary file
|
|
Binary file
|