Skip to content

Releases: Max-Samson/dsh-usage-chart

v1.0.0 — 首个完整版本:会话内用量解释器

Choose a tag to compare

@Max-Samson Max-Samson released this 15 Aug 07:49
三视角轮次图(全部历史横向滚动)+ 每轮成本/耗时/异常解释卡 + 多币种成本与实时汇率 + 账户余额。
本次收官:轮次图从「最近 12 轮」升级为「全部轮次横向滚动」(固定细柱宽、自动滚到最新、箭头/渐隐提示)。

v0.3.0

Choose a tag to compare

@Max-Samson Max-Samson released this 15 Aug 05:38

v0.3.0

感谢 myp-super 的 PR #5:成本显示币种(USD/CNY 切换 + 实时汇率刷新)。

新增

  • 成本显示币种:config.currency('usd' | 'cny')与 config.cnyPerUsd(默认 6.76)
  • 成本区 USD/CNY 切换按钮,选择在浏览器中记住(localStorage)
  • 「刷新汇率」按钮:经 /dsh-usage-chart/rate 代理拉取最新 USD→CNY 汇率并立即重估
  • /dsh-usage-chart/meta 路由下发显示币种配置

修复

  • 汇率刷新健壮性:默认源(open.er-api.com)不可达时自动回退内置备用源(frankfurter.dev);上次成功汇率持久化,断网刷新沿用真实汇率
  • 槽位注册改为 ctx.slots.inject 等待声明,修复 slot "…" is not declared

升级dsh plugin --profile web add dsh-usage-chart@0.3.0(未全局装 dsh 时前缀 npx --yes @deepseek-ai/dsh

详见 CHANGELOG.md / CHANGELOG_ZH.md

v0.2.0: docs: v0.2 wrap-up — bilingual changelog, roadmap/architecture refresh

Choose a tag to compare

@Max-Samson Max-Samson released this 14 Aug 20:20
- New CHANGELOG_ZH.md (full zh changelog for 0.2.0/0.1.1/0.1.0); add to
  package files; cross-links from CHANGELOG.md and both READMEs.
- CHANGELOG.md: record the host-model-attribution fix and add an upgrade
  note (restart dsh web required — the Host caches plugin code in memory).
- README.md / README_EN.md: upgrade note for v0.2.0 + changelog links.
- docs/ROADMAP.md: mark v0.2.0 delivered with verification record; detail
  the v0.3.0 context-diagnosis plan (contextBreakdown/compaction/source
  attribution); add a prioritized backlog of v0.2-derived optimizations
  (pricing snapshot refresh, session-scope UX, indicator model attribution,
  large-session fold truncation, official price fetching).
- docs/ARCHITECTURE.md: map the current state to v0.2 (21 source files),
  resolve the four v0.1 friction points, note v0.2 observations, refresh
  the version matrix and test surface (28 tests + live E2E).

v0.1.1: fix: read balance key from DSH credentials; mark react peer optional

Choose a tag to compare

@Max-Samson Max-Samson released this 14 Aug 15:04
- Balance: resolve the DeepSeek API key via ctx.get('credentials') so a key
  set in the web UI (Settings -> Models) or .credentials.yaml works without
  an env var or plugin config (cordis requires ctx.get for services not
  declared in inject).
- peerDependencies: mark react optional (provided by the DSH web platform),
  removing the pnpm \"missing peer react\" warning on install.
- Docs: uninstall/cleanup steps and install FAQ; bump version to 0.1.1.

v0.1.0

Choose a tag to compare

@Max-Samson Max-Samson released this 14 Aug 10:09

Changelog

All notable changes to this project are documented here. The format follows Keep a Changelog and the project uses Semantic Versioning.

[Unreleased]

[0.1.0] - 2026-08-14

Added

  • Composer usage indicator and expandable SVG dashboard.
  • Session token, cache, context-pressure, model, and estimated-cost views.
  • Per-turn usage chart with total/mix views, hover and keyboard tooltips, and a
    highlighted current-round band; host-side per-turn aggregation from the session log.
  • Host-side DeepSeek balance proxy.
  • Full zh/en localization: the indicator, dashboard, charts, and balance views follow
    the DSH in-app Language setting through the locale service (dictionaries registered
    under the dsh-usage-chart namespace; browser language only seeds the initial value).
  • Release metadata, bilingual documentation, CI, contribution/security policies, and
    portable visual probe scripts (scripts/*.mjs).
  • Privacy-safe README demo screenshot with fictional usage values and no account data.

Fixed

  • Light-mode readability: indicator, panel, and SVG charts now use DSH theme tokens
    (--dsw-alias-label-* / --dsw-alias-bg-*) and theme static palette colors, so text
    and chart segments stay legible in both light and dark appearances.

Security

  • Restrict Host JSON routes to same-origin GET requests.
  • Require HTTPS for custom API endpoints, except loopback HTTP proxies.
  • Validate token-usage samples before aggregation.