Skip to content

Releases: Jockjrop/dsh-usage-stats

v0.2.8

Choose a tag to compare

@github-actions github-actions released this 30 Oct 05:50

本次更新 / What's changed


简体中文 · English

🐛 问题修复

  • 适配 DSH Desktop 0.2.1-rc.5,兼容范围改为 >=0.2.1-rc.1。
  • 修复在 DSH Desktop 0.2.1-rc.4 与 0.2.1-rc.5 上「用量统计」不再出现在设置页、侧栏入口与仪表盘的问题。


English · 简体中文

🐛 Bug fixes

  • Support DSH Desktop 0.2.1-rc.5 with the compatibility range >=0.2.1-rc.1.
  • Fixed Usage Stats disappearing from the settings page, the sidebar shortcut and the dashboard on DSH Desktop 0.2.1-rc.4 and 0.2.1-rc.5.

v0.2.7

Choose a tag to compare

@github-actions github-actions released this 29 Oct 12:44

本次更新 / What's changed


简体中文 · English

✨ 新增与改进

  • 用量统计的柱状图按模型分色,同一个模型在任何图表里颜色一致。
  • 鼠标停在柱子上,除了这一段的总量,还能看到每个模型各用了多少。
  • 柱子也能用键盘逐个聚焦、用触摸点按查看,读屏软件能读到每根柱子的数值。
  • 近 7 天这类段数少的图表,柱子不再粗到糊成一片。
  • 兼容 DSH Desktop >=0.2.1-rc.1 <=0.2.1-rc.3(含 0.2.1-rc.1、0.2.1-rc.2、0.2.1-rc.3)。

🐛 问题修复

  • 修复点「刷新」看不到新数据、必须重新选一次时间范围才有的问题。
  • 修复「成本」页开着跨过零点或换月后不再纳入新数据的问题。

⚡ 性能

  • 刷新「用量统计」从约 1.6 秒降到约 40 毫秒(67 个会话的实测)。


English · 简体中文

✨ New and improved

  • Dashboard bars are coloured per model, and a model keeps the same colour in every chart.
  • Hovering a bar now shows what each model contributed, under the bucket total.
  • Bars can be stepped through with the keyboard and tapped on touch screens, and a screen reader reads each bar's numbers.
  • Charts with few bars, such as the last 7 days, no longer render bloated bars.
  • Compatible with DSH Desktop >=0.2.1-rc.1 <=0.2.1-rc.3 (0.2.1-rc.1, 0.2.1-rc.2 and 0.2.1-rc.3).

🐛 Bug fixes

  • Fixed refresh showing no new data until the time range was picked again.
  • Fixed the Costs tab silently stopping to include new data once it had been open past midnight or into a new month.

⚡ Performance

  • Dashboard refresh dropped from about 1.6 seconds to about 40 milliseconds (measured with 67 sessions).

v0.2.6

Choose a tag to compare

@github-actions github-actions released this 28 Oct 11:20

本次更新 / What's changed


简体中文 · English

✨ 新增与改进

  • 新增「日志」页:按时间倒序查看每次请求的应用、供应商、模型、成本、输入/输出/缓存 Token、输出速度与首字耗时,支持供应商/模型筛选、每页行数、翻页和刷新。
  • 新增「成本」页与价格表:按内置价格表和自定义单价折算成本,展示总成本、区间成本、区间 Tokens 与逐模型汇总;可为未收录或价格变动的模型维护输入、输出、缓存读写单价(美元/百万 Tokens),保存后立即反映到成本与日志。
  • 新增「规则」页:把同一模型的不同原始名称归并为一个名称,用量、日志和成本统一按归并后的名称统计;支持新增、编辑、移除,最多 1000 条并阻止循环归并。
  • 新增侧边栏「用量统计」仪表盘:四张指标卡(成本、请求数、真实 Tokens、缓存命中率),按小时、天、月展示柱状图,选择「全部」时切换为 53 周热力图;内置请求日志、供应商/模型筛选、每页行数与翻页。
  • 新增日期范围选择器:仪表盘与成本页使用同一套预设、月历和起止日期控件;仪表盘额外支持具体时间与「结束时间跟随当前时刻」,成本页按天选择。
  • 新增「快速上手」:右上角按钮打开左侧目录、右侧说明的引导窗口,按当前启用的模块介绍每个页面和按钮的用法。
  • 新增「问题反馈」按钮与「控制」页顶部的 GitHub Star 提示,可直接前往 Issues 和仓库。
  • 下拉框统一为自绘组件,支持键盘搜索、状态点、来源提示与主题色选择;悬浮提示改为跟随鼠标的圆角气泡,替换系统原生 tooltip,靠近窗口边缘自动翻转。
  • 统一分叉会话、保留会话、检测用量与名称归并后的统计口径,Token、成本与速度不再重复或遗漏。
  • 新页面、错误提示与动态文案补齐中文、英语、日语翻译。
  • 兼容 DSH Desktop >=0.2.1-rc.1 <=0.2.1-rc.3(含 0.2.1-rc.1、0.2.1-rc.2、0.2.1-rc.3)。

🐛 问题修复

  • 修复仪表盘请求与后台语料同步重叠时被阻塞、偶发卡顿的问题:仪表盘先返回缓存数据,手动刷新才等待同步完成。
  • 修复成本页日期范围弹层在设置面板内向左溢出、被侧边栏遮挡并裁掉日期字段与日历首列的问题。
  • 修复检测、配额、成本、规则与日志接口错误串在英文/日文界面中仍显示中文的问题。
  • 修复成本页与仪表盘日期范围控件样式、交互不一致的问题。

⚡ 性能与健壮性

  • 仪表盘读取优先使用热缓存并在后台增量同步,打开、筛选和翻页不再等待会话扫描。
  • 悬浮提示在绘制帧内定位,避免在密集图表上读取布局导致输入卡顿。
  • 价格表与名称规则分别持久化到独立文件,并以仅当前用户可读的权限(0600)写入;价格与规则最多 1000 条,写入前校验非法值、重复与循环。
  • 名称解析按原始模型缓存结果,减少逐事件重复计算。
  • 仪表盘「全部」范围复用 53 周热力图聚合结果,减少重复折叠。

🧰 工程化

  • 测试增至 181 项,覆盖价格表、名称规则、请求日志、成本区间、仪表盘、时区、分叉会话与速度统计。
  • 发布流程继续执行工作区隐私扫描、第三方完整性与独立安装验证;新增设置文件同样按仅当前用户可读权限保存。


English · 简体中文

✨ New and improved

  • New Logs tab: review every request in reverse chronological order with app, provider, model, cost, input/output/cache tokens, output speed and time to first token, plus provider/model filters, page size, paging and refresh.
  • New Costs tab and price table: convert tokens into money using the built-in catalog and custom rates, and review total cost, range cost, range tokens and per-model totals. Add or adjust input, output, cache-read and cache-write rates (USD per million tokens) for unpriced or changed models; saved rates apply to costs and logs immediately.
  • New Rules tab: merge different raw names of the same model into one name so usage, logs and costs are counted together. Add, edit and remove rules, capped at 1000 entries with cycle detection.
  • New sidebar Usage Stats dashboard: four metric cards (cost, requests, real tokens, cache hit rate), hourly/daily/monthly bar charts and a 53-week heatmap for the all-time range, plus the built-in request log, provider/model filters, page size and paging.
  • New date-range picker shared by the dashboard and Costs: presets, a calendar and start/end fields; the dashboard also supports exact times and an "end follows now" option, while Costs works at day granularity.
  • New Quick start guide: a left-hand index with a detail pane that explains every page and button currently visible, opened from the header.
  • New Feedback button and GitHub Star note at the top of Controls, linking to GitHub Issues and the repository.
  • Custom-rendered dropdowns with keyboard search, status dots, source hints and accent colors; hover hints now use a rounded bubble that follows the cursor instead of native tooltips and flips near window edges.
  • Unified accounting for forked and retained sessions, detection usage and merged model names so tokens, costs and speed are neither duplicated nor dropped.
  • Chinese, English and Japanese translations for all new pages, errors and dynamic labels.
  • Compatible with DSH Desktop >=0.2.1-rc.1 <=0.2.1-rc.3 (0.2.1-rc.1, 0.2.1-rc.2 and 0.2.1-rc.3).

🐛 Bug fixes

  • Fixed dashboard requests being blocked and occasionally stalling while a background corpus sync runs: the dashboard now returns the warm snapshot and only manual refresh waits for a sync.
  • Fixed the Costs date-range popover sliding under the sidebar in the settings pane and clipping its date fields and the first calendar column.
  • Fixed detection, quota, cost, rule and log API errors still appearing in Chinese in the English and Japanese UI.
  • Unified the date-range control's styling and behavior between Costs and the dashboard.

⚡ Performance and robustness

  • Dashboard reads use the warm cache and sync incrementally in the background; opening, filtering and paging no longer wait for a session scan.
  • Hover hints position themselves in the paint frame, avoiding layout reads that made dense charts feel sluggish.
  • Price overrides and name rules persist to separate files with owner-only permissions (0600); both are capped at 1000 entries and validated for invalid values, duplicates and cycles before writing.
  • Model-name resolution caches results per raw name, avoiding repeated work for every event.
  • The dashboard's all-time range reuses the 53-week heatmap aggregation instead of folding the same data twice.

🧰 Tooling

  • The test suite now has 181 tests covering pricing, rules, request logs, cost buckets, the dashboard, time zones, forked sessions and speed statistics.
  • Release checks continue to scan the workspace for private files, verify third-party integrity and validate a clean install; the new settings files are also saved owner-only.

v0.2.5

Choose a tag to compare

@github-actions github-actions released this 24 Oct 10:20

本次更新 / What's changed


简体中文 · English

✨ 新增与改进

  • 用量数值统一使用 k / M / B 单位,中英日界面显示一致,不再使用「亿 / 億」。
  • 渲染器翻译表、样式表与格式化函数拆分为 src/client-messages.js、src/client-styles.js、src/client-format.js,构建时内联,发布产物仍是单个 lib/client.js。
  • 配额指标的模型/席位前缀与 本月密钥额度、席位 积分剩余 等动态文案纳入中英日翻译。

🐛 问题修复

  • 适配 DSH Desktop 0.2.1-rc.3,兼容范围改为 >=0.2.1-rc.1 <=0.2.1-rc.3(含 0.2.1-rc.1、0.2.1-rc.2、0.2.1-rc.3),不再列入 0.2.1-alpha.2 与 0.2.0 系列。
  • 用量语料缓存只对当前用户可读(0600),避免会话标题与工作目录被其他本地账号读取。
  • 补齐设置、配额与检测接口错误串的中英日翻译,英文/日文界面不再混入中文报错。
  • 统一 /api/dsh-usage-stats 各路由的本机来源校验与 403 文案。
  • 指纹引擎更新改用语义化版本比较,预发布或跨主版本号不会再被误判为更旧而跳过。

⚡ 性能与健壮性

  • SQLite 会话指纹可用且覆盖全部会话时,跳过 sessions/ 目录的全量遍历。
  • 高级模型选择器与推理面板所需的宿主服务改为可选获取,单个服务缺失不再导致整个设置页不挂载。
  • 指纹引擎完整性校验按文件签名缓存,检测与目录读取不再重复哈希 16 MB 参考库。
  • 统计接口仅在首次请求等待检测用量同步,之后交给后台定时与事件刷新,慢模型枢纽不再拖慢每次页面加载。
  • 协议版本号统一引用 PROTOCOL_VERSION,避免多处硬编码漂移。

🧰 工程化

  • 新增 npm run lint(语法、JSON、三语条目)与 engines.node。
  • 新增 push/PR CI(lint、构建一致性、测试、发布检查)与 Dependabot、.editorconfig。


English · 简体中文

✨ Improvements

  • Format usage numbers with k / M / B units in Chinese, English and Japanese alike, replacing 亿 / 億.
  • Split the renderer translation table, stylesheets and formatters into src/client-messages.js, src/client-styles.js and src/client-format.js; the build inlines them, so the shipped artifact is still a single lib/client.js.
  • Translate quota-label model/seat prefixes and dynamic labels such as 本月密钥额度 and 席位 积分剩余.

🐛 Bug Fixes

  • Support DSH Desktop 0.2.1-rc.3 and narrow the compatibility range to >=0.2.1-rc.1 <=0.2.1-rc.3 (covering 0.2.1-rc.1, 0.2.1-rc.2 and 0.2.1-rc.3), dropping 0.2.1-alpha.2 and the 0.2.0 series.
  • Write the usage corpus cache owner-only (0600) so session titles and working directories stay unreadable to other local accounts.
  • Localize the remaining settings, quota and detection API errors in Chinese, English and Japanese instead of leaking Chinese text into the English/Japanese UI.
  • Unify the loopback trust check and 403 message across all /api/dsh-usage-stats routes.
  • Compare fingerprint engine versions semantically so prereleases or cross-major releases are no longer mistaken for older builds and skipped.

⚡ Performance and robustness

  • Skip the full sessions/ directory walk when SQLite fingerprints are available and cover every listed session.
  • Acquire the services used by the model seat and reasoning panel optionally, so one missing service no longer prevents the whole settings section from mounting.
  • Cache engine integrity verification by file signature so detection and catalog reads no longer re-hash the 16 MB reference bank.
  • Wait for detection usage only on the first stats request; later requests rely on the background interval and hub events, so a slow model hub no longer delays every page load.
  • Reference PROTOCOL_VERSION instead of scattering protocol literals.

🧰 Tooling

  • Add npm run lint (syntax, JSON documents, three-language table) and engines.node.
  • Add push/PR CI (lint, build freshness, tests, release checks) plus Dependabot and .editorconfig.

v0.2.4

Choose a tag to compare

@github-actions github-actions released this 17 Oct 12:26

本次更新 / What's changed


简体中文 · English

🎨 体验优化

  • 检测页按「选择检测模型 → 确认预算 → 检测结果」显示当前步骤,突出预算与开始操作,增加请求进度、取消入口和空状态。
  • 调整字体、间距和状态颜色,适配深浅主题与窄窗口;预算参数、检测详情和指纹引擎信息默认折叠,更新异常仍直接显示。

🐛 问题修复

  • 适配 DSH Desktop 0.2.1-rc.2,并兼容 0.2.1-rc.1、0.2.1-alpha.2、0.2.0-rc.2 和 0.2.0-rc.1,保留已有桌面渲染器标记兼容。
  • 更换模型或参数后重新确认预算,历史结果保留原检测条件;检测运行中不再提前显示无法判定的说明,精简重复提示。


English · 简体中文

🎨 Improvements

  • Guide detection through model selection, budget confirmation and results, with clearer primary actions, request progress, cancellation and empty states.
  • Refine typography, spacing and status colors for light and dark themes and narrow windows. Collapse budget parameters, technical details and engine information by default while keeping update warnings visible.

🐛 Bug Fixes

  • Support DSH Desktop 0.2.1-rc.2 alongside 0.2.1-rc.1, 0.2.1-alpha.2, 0.2.0-rc.2 and 0.2.0-rc.1, retaining both desktop renderer markers.
  • Require a new budget after model or parameter changes and keep saved results tied to their original settings. Avoid premature inconclusive explanations while detection runs and remove repeated notices.

v0.2.3

Choose a tag to compare

@github-actions github-actions released this 16 Oct 13:55

本次更新 / What's changed


简体中文 · English

🐛 问题修复

  • 适配 DSH Desktop 0.2.0-rc.2 的桌面渲染器标记:preload 桥 dshDesktop 只暴露 protocolVersion,不再提供 deviceInfo 函数。「用量统计」设置页此前因此不注册,现在新旧两种标记都接受,纯浏览器访问仍保持不挂载。0.2.1-alpha.2 与 0.2.0-rc.2 两个宿主版本均受支持。


English · 简体中文

🐛 Bug Fixes

  • Adapt to the DSH Desktop 0.2.0-rc.2 renderer marker: the dshDesktop preload bridge exposes only protocolVersion and no longer carries a deviceInfo function. The usage statistics settings page failed to register because of this; both markers are now accepted, while plain browser tabs still never mount. Both 0.2.1-alpha.2 and 0.2.0-rc.2 hosts remain supported.

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 16 Oct 07:04

本次更新 / What's changed


简体中文 · English

🐛 问题修复

  • 修正 DSH Desktop 兼容版本声明为 0.2.0-rc.2,避免该版本被宿主插件管理器误拒绝安装或启用。
  • 保留 0.2.1-alpha.2 支持,并同步安装说明与中英日插件描述。


English · 简体中文

🐛 Bug Fixes

  • Correct the DSH Desktop compatibility declaration to 0.2.0-rc.2 so the host plugin manager accepts installation and activation on that version.
  • Retain support for 0.2.1-alpha.2 and update installation instructions and Chinese, English and Japanese plugin descriptions.

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 14 Oct 14:04

本次更新 / What's changed


简体中文 · English

✨ 新增功能

  • 模型检测改用 LM Fingerprint,通过随机数样本与参考库生成候选排名;独立选择已配置供应商与模型,默认带入当前会话模型。
  • 默认采样 3 次,支持 1 次初筛;单次输出上限默认 4,096 Token,可设为 1,024–16,384。支持预算确认、取消、超时与用量预算控制。
  • 内置指纹引擎与参考库,每日检查上游更新;代码与数据通过完整性和接口校验后共同启用,更新失败保留已验证版本,检测任务固定引擎版本。
  • 新增逐模型推理强度设置,支持关闭、极低、低、中、高、极高、最大七档,保留已有模型属性与参数映射;推理强度和高级模型选择器分别控制。

🐛 问题修复

  • 检测停止、失败或重启后保留已发生用量,按任务与样本 ID 去重后计入统计,避免恢复历史结果时重复计数。
  • 参数变更使已确认预算失效,避免继续使用与当前设置不一致的检测计划。
  • 兼容读取已有控制设置与供应商配额缓存,查询失败时保留最近成功的数据和获取时间。
  • 单张供应商卡片刷新时,仅对应按钮显示加载状态;支持不同供应商并发刷新,失败提示局限于对应卡片,较旧响应不会覆盖其他供应商的新结果。
  • 配额页仅显示当前已有供应商,已移除供应商的历史缓存不再显示;刷新、重启和迟到响应不会恢复其卡片。

🎨 体验优化

  • 展示候选排名、逐次采样状态及已发生用量,保留有效的部分样本。仅 3 个有效样本显示库内置信度,低于 75% 提示不足;排名和置信度不作为模型身份或能力证明。
  • 默认开启输出速度、模型推理强度、高级模型选择器和模型检测,关闭模型明细与分布、自动获取余额;查询间隔默认 10 分钟,自定义查询默认为空,保留已保存的个人设置。
  • 查询来源在浮层中编辑,已启用的自定义查询默认折叠。控制设置统一位于控制页,插件详情页提供简洁说明。
  • 配额页优先显示 DeepSeek,再按已开启账号的顺序展示账号积分与周期额度。

⚠️ 其他变更

  • 不再提供旧版行为参考、KBF 导入/导出与能力基线测试。普通对话仍从 DSH 会话日志计数,读取模型目录、预算与历史结果不会启动推理。
  • 用量展示偏好保存于 usage-stats-display.json,查询与模型设置、供应商配额缓存保存于 usage-stats-quota-controls.json;检测历史与去重用量独立持久化。
  • 提供 protocolVersion: 1 的 dshUsageStats 服务,支持读取用量、模型速度、配额和控制设置。
  • 适配 DSH Desktop 0.2.1-alpha.2 和 0.2.1-rc.2,由宿主插件管理器拒绝不匹配版本的安装与启用。
  • 发布包包含指纹引擎、参考库、品牌资源、来源校验信息与第三方许可;使用 Undici 处理更新请求,使用 TypeScript 擦除上游引擎类型。
  • 补齐私人运行数据的忽略规则与发布隐私检查,校验版本、构建产物、第三方哈希及独立项目安装;提供版本安装包、通用安装包和 SHA256SUMS。


English · 简体中文

✨ New Features

  • Replace model detection with LM Fingerprint candidate rankings based on random-number samples and a reference library. Select a configured provider and model independently, with the current conversation model selected initially.
  • Use three samples by default or one for screening. The default per-sample output cap is 4,096 tokens, adjustable from 1,024 to 16,384, with budget confirmation, cancellation, timeouts and reported-usage limits.
  • Bundle the fingerprint engine and reference library and check upstream daily. Activate code and data together after integrity and interface checks; failed updates retain the verified version, and running tasks keep their engine version.
  • Add per-model reasoning settings with off, minimal, low, medium, high, xhigh and max levels. Preserve model properties and parameter mappings, and control reasoning features and the advanced model selector independently.

🐛 Bug Fixes

  • Retain incurred detection usage after stops, failures and restarts, deduplicate it by task and sample ID, and avoid counting restored history twice.
  • Invalidate confirmed budgets when parameters change so a detection plan cannot run with mismatched settings.
  • Read existing control settings and provider quota caches compatibly, retaining the last successful data and fetch time after query failures.
  • Keep each provider's refresh indicator and errors on its own card, allow different providers to refresh concurrently, and prevent older responses from overwriting newer results from other providers.
  • Show quotas only for providers that still exist in the current configuration. Removed providers stay hidden despite cached balances, refreshes, restarts or delayed responses.

🎨 Improvements

  • Show candidate rankings, per-sample status and incurred usage, retaining valid partial samples. Display library confidence only with three valid samples and warn below 75%; rankings and confidence do not prove model identity or capability.
  • Enable output speed, reasoning features, the advanced model selector and detection by default. Model breakdowns and automatic balance queries start off, the query interval starts at ten minutes, and custom queries start empty while saved preferences remain available.
  • Edit query sources in an overlay and collapse enabled custom queries by default. Keep settings together in Controls and provide a concise plugin description.
  • Show DeepSeek first in Quotas, followed by enabled accounts in their configured order, including account credits and quota windows.

⚠️ Other Changes

  • Remove the earlier behavioral references, KBF import/export and capability baseline tests. Conversation usage still comes from DSH session logs; reading catalogs, budgets or saved results never starts inference.
  • Store display preferences in usage-stats-display.json and query/model settings and provider quota caches in usage-stats-quota-controls.json. Persist detection history and deduplicated usage separately.
  • Expose the dshUsageStats host service with protocolVersion: 1 for usage, model speed, quotas and control settings.
  • Support DSH Desktop 0.2.1-alpha.2 and 0.2.1-rc.2, with the host plugin manager rejecting installation and activation on mismatched versions.
  • Ship the fingerprint engine, reference library, brand assets, source checksums and third-party licenses. Use Undici for updates and TypeScript to erase upstream engine types.
  • Exclude private runtime data and validate release privacy, versions, generated files, third-party hashes and installation in an isolated project. Provide a versioned archive, a generic archive and SHA256SUMS.

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 04 Oct 16:08

本次更新 / What's changed


简体中文 · English

✨ 新增功能

  • 新增「匹配」页面,跟随当前会话的模型与推理设置,结合已有响应提示与行为指纹检测评估模型匹配情况。
  • 支持 28 份公开行为参考、完整检测或随机抽样、KBF JSON 导入/导出,以及通过可信供应商建立本地参考;新增 16 项能力测试,用于对照本地基线检查能力下降。
  • 检测完成后显示 0–100 的「参考接近度」,并给出「未发现明显异常」「疑似不匹配」「疑似能力下降」或「无法判定」的结果。接近度按有效回答的一致率计算;取消、中断及证据不足时不评分。
  • 新增「token输出速度」,按供应商与模型的 TPS 从高到低排列,同时显示平均 TTFT。TPS 使用 DSH 的累计输出 Token/累计解码耗时口径;缺少有效时间记录的样本不参与排名。
  • 概览展开后新增缓存命中率、历史单日 Token 峰值、最长单轮任务时长、当前连续天数、最长连续使用天数,以及最近 7 天最常用的一个模型。同名模型跨供应商合并,任务时长排除轮次之间的等待。
  • 控制页新增「检测模型匹配」和「token输出速度」开关,分别默认关闭、开启,保存后重启仍生效。

🐛 问题修复

  • 修复分叉会话把继承记录的 Token、速度样本与任务时长重复计入的问题,升级后重读可用的会话日志;防止延迟返回的旧设置覆盖刚保存的开关状态。
  • 修复检测消耗未纳入用量统计的问题,逐次保存已上报的 Token,纳入概览、图表、模型分布与 TPS/TTFT;失败、取消及重启恢复时保留已发生消耗,避免重复计入。
  • 修复检测完成后结果不明确、切换会话后结果消失的问题。保留最近 10 次检测结果;无能力基线时明确说明无法判断下降,宿主重启中断的检测显示「无法判定」。
  • 配额查询失败时持久保留最近成功的数据和获取时间,显示安全的失败提示;单张卡片仅刷新对应供应商,较旧的全部刷新结果不覆盖较新的单供应商结果。
  • 修复合并同名模型后的供应商搜索,保留供应商与标签页切换时的查询草稿,并在升级时重读现有日志补齐 TPS/TTFT 时间记录。

🎨 体验优化

  • 检测结果置于表单上方,保留分数、结论、模型与消耗;参数、中间验证过程、统计检验和通道表现收进默认折叠的「检测详情」。
  • 概览指标居中对齐顶部摘要,移除 Token 分项与会话明细区域;速度列表仅保留供应商小字,统一图表颜色并补充精确数值提示。
  • 独立检测先预览预算,再由用户手动启动,支持取消、请求超时与已上报 Token 预算控制;默认读取已有响应时不发起模型请求。

⚠️ 其他变更

  • 继续仅适配 DSH Desktop,保留现有设置与统计数据。随包提供公开参考资料的来源、校验值与 Apache 2.0 许可。
  • 展示截图与测试样例改用模拟数据,补齐私人检测记录的忽略规则;发布包增加版本一致性与隐私文件检查。


English · 简体中文

✨ New Features

  • Add a Match tab that follows the current conversation's model and reasoning settings, combining existing response hints with behavioral fingerprint audits.
  • Include 28 public behavioral references, full or randomly sampled audits, KBF JSON import/export, and private reference calibration through a trusted provider. Add 16 capability tasks to compare against a local baseline.
  • Show a 0–100 reference similarity score and a clear verdict after auditing. Scores measure valid-answer agreement; cancelled, interrupted and insufficient-evidence runs remain unscored.
  • Add Token output speed, ranking provider/model pairs by descending TPS with average TTFT. TPS uses DSH's cumulative output tokens divided by cumulative decode time; samples without valid timing are excluded.
  • Expand the overview with cache hit rate, historical daily token peak, longest completed user round, current and longest usage streaks, and the most-called model in the last seven days. Merge model names across providers and exclude idle gaps between rounds.
  • Add persistent visibility switches: Detect model match defaults off, and Token output speed defaults on.

🐛 Bug Fixes

  • Exclude inherited fork history from billed tokens, speed samples and task durations, rescanning available session logs on upgrade. Prevent delayed settings responses from undoing newly saved switches.
  • Count reported audit tokens in overview, charts, model distribution and TPS/TTFT after each call. Preserve incurred usage after failures, cancellation and restarts without double counting restored results.
  • Make completed results explicit and retain the last ten audits across conversation changes. Explain missing capability baselines and mark host-interrupted runs inconclusive.
  • Persist the last successful quota data and fetch time after failed refreshes with safe diagnostics. Refresh individual providers and prevent older full refreshes from overwriting newer card results.
  • Fix provider search in merged model rows, retain query drafts across provider/tab changes, and rescan available logs on upgrade to recover TPS/TTFT timing.

🎨 Improvements

  • Show results above the form with the score, verdict, model and usage. Collapse parameters, intermediate validation, statistical checks and channel performance under Audit details by default.
  • Center overview metrics with the summary, remove token categories and session details, simplify speed rows to provider-only subtext, and align chart colors and exact-value tooltips.
  • Preview the budget before manually starting an independent audit, with cancellation, request timeouts and reported-token limits. Reading existing responses does not run a model.

⚠️ Other Changes

  • Keep DSH Desktop support and existing settings/statistics. Include provenance, checksums and Apache 2.0 licensing for the public references.
  • Use synthetic screenshots and test fixtures, exclude private audit records from Git, and add release checks for version consistency and private files.

安装 / Installation

在 DSH 桌面端主界面侧栏进入「插件 → 添加插件」,填入 npm 包名,安装后点击「立即启用」:

@sligqoer/dsh-usage-stats

旧版用户先卸载旧的 dsh-usage-stats,再安装上面的新包。之后可通过插件页的「检查更新」更新。请使用包名安装;GitHub、压缩包地址和本地链接安装不进入当前更新检查流程。

面板入口:设置 → 用量统计。此版本仅支持 desktop profile。

In DSH Desktop, open Plugins → Add plugin, enter the npm package name above, install, and select Enable now. Existing users should uninstall the old dsh-usage-stats package once, then install this scoped package. Future updates can use Check updates. GitHub URLs, archive URLs, and local links do not participate in the current update checker.

Optional prebuilt archive: https://github.com/Jockjrop/dsh-usage-stats/releases/download/v0.2.0/sligqoer-dsh-usage-stats-0.2.0.tgz

Assets: versioned package, latest-download alias, and SHA256SUMS. Both archives contain identical prebuilt modules; installation was verified with lifecycle scripts disabled.

v0.1.2

Choose a tag to compare

@github-actions github-actions released this 01 Oct 16:11

本次更新 / What's changed

中文

  • 使用独立的 npm 包名 @sligqoer/dsh-usage-stats。通过此包名安装后,插件管理器可从 npm 获取新版本并进行更新。
  • 同步 bundle 与界面模块的包名;构建时从 package.json 注入界面模块标识,保留原有用量数据、配额接口和设置标识。
  • 发布脚本支持作用域包的压缩包命名,并验证预构建包的安装、宿主入口和界面入口。
  • GitHub Actions 增加 npm 可信发布流程,使用同一份验证过的压缩包发布 npm 与 GitHub Release;已有版本只在压缩包完整性一致时跳过发布。
  • 更新中英文安装与升级说明:旧版卸载后改用新 npm 包名安装一次,后续使用「检查更新」。保留 GitHub Release 压缩包作为手动安装选项。

English

  • Use the dedicated npm package name @sligqoer/dsh-usage-stats. Install by this name so the plugin manager can discover and install updates from npm.
  • Align the bundle and renderer module with the scoped package name. Inject the renderer identity from package.json while preserving usage data, quota routes, and settings identifiers.
  • Support scoped archive names and verify the prebuilt package's installation, host entry, and renderer entry.
  • Add npm trusted publishing to GitHub Actions. Publish the same verified archive to npm and GitHub Releases, and skip existing npm versions only when archive integrity matches.
  • Update installation and migration instructions in both languages: uninstall the old package once, install the scoped npm package, then use Check updates. Keep Release archives available for manual installation.

安装 / Installation

在 DSH 桌面端主界面侧栏进入「插件 → 添加插件」,填入 npm 包名,安装后点击「立即启用」:

@sligqoer/dsh-usage-stats

旧版用户先卸载旧的 dsh-usage-stats,再安装上面的新包。之后可通过插件页的「检查更新」更新。请使用包名安装;GitHub、压缩包地址和本地链接安装不进入当前更新检查流程。

面板入口:设置 → 用量统计。此版本仅支持 desktop profile。

In DSH Desktop, open Plugins → Add plugin, enter the npm package name above, install, and select Enable now. Existing users should uninstall the old dsh-usage-stats package once, then install this scoped package. Future updates can use Check updates. GitHub URLs, archive URLs, and local links do not participate in the current update checker.

Optional prebuilt archive: https://github.com/Jockjrop/dsh-usage-stats/releases/download/v0.1.2/sligqoer-dsh-usage-stats-0.1.2.tgz

Assets: versioned package, latest-download alias, and SHA256SUMS. Both archives contain identical prebuilt modules; installation was verified with lifecycle scripts disabled.