Skip to content

Releases: jianzhexu/dsh-token-billing

v0.4.1

Choose a tag to compare

@jianzhexu jianzhexu released this 19 Aug 23:38

修复切换工作区后读数不跟随 / Fix: readout not following workspace switches

  • Host 端:workspaceRegistry 改为使用时实时查找——apply 期一次性捕获与服务的异步激活存在竞速,捕获到 undefined 后永不再查,导致工作区聚合只包含一个组
  • Host: the workspace registry is now looked up live; the apply-time capture raced the service's async activation and, once lost, never retried, collapsing the workspace aggregation to a single group
  • 浏览器端:未记账的新会话按客户端工作区表归属(当前会话所在的工作区实体),不再依赖会话已有账单
  • Browser: fresh sessions without billing now resolve their owning workspace from the client workspace table
  • 读数行第二项始终显示当前工作区名与其累计费用;未归属时回退全局汇总
  • The second readout always names the owning workspace and its totals, falling back to global totals when unattributed
  • 安装 / Install: dsh plugin --profile add github:jianzhexu/dsh-token-billing#v0.4.1

v0.4.0

Choose a tag to compare

@jianzhexu jianzhexu released this 19 Aug 16:17

工作区作用域读数 / Workspace-scoped readout

  • 读数行第二项从「全部会话」全局汇总改为当前归属工作区的费用,并以工作区名标注;切换工作区即切换
  • The second readout now shows the owning workspace's totals, named inline, and follows workspace switches
  • 本会话费用始终跟随当前激活会话(行为不变);会话未归属工作区实体时回退全局汇总
  • Session totals still track the active session; falls back to global totals when the session has no owning workspace
  • 安装 / Install: dsh plugin --profile add github:jianzhexu/dsh-token-billing#v0.4.0

v0.3.0

Choose a tag to compare

@jianzhexu jianzhexu released this 19 Aug 15:59

首个发布版本 / First release

  • 按 DeepSeek 官方定价对每次模型调用记账:会话 / 工作区 / 全局三层汇总,账本持久化(storage-domain),重启保留
  • Bills every model call at DeepSeek's official pricing; session / workspace / global totals, persisted ledger
  • 计费读数行位于输入框下方的读数带,hover 查看完整明细(分模型、工作区、单价表)
  • Billing readout row under the composer, hover for the full breakdown
  • 安装 / Install: dsh plugin --profile add github:jianzhexu/dsh-token-billing#v0.3.0

Full Changelog: https://github.com/jianzhexu/dsh-token-billing/commits/v0.3.0