Skip to content

Releases: SauronLee/dsh-token-calendar

v0.1.1 — 改名为 dsh-token-calendar

Choose a tag to compare

@SauronLee SauronLee released this 23 Oct 05:49

包名改为 dsh-token-calendar(dsh-token-usage 在 npm 上已被另一个插件占用),功能不变。

从这一版开始的安装方式

dsh plugin --profile desktop add git+https://github.com/SauronLee/dsh-token-calendar.git

或者下载下面的 dsh-token-calendar-0.1.1.tgz 后 dsh plugin --profile desktop add ./dsh-token-calendar-0.1.1.tgz。

升级注意

  • 旧仓库地址 SauronLee/dsh-token-usage 会自动 301 跳转到新地址,历史提交都还在
  • 如果装过 0.1.0:先 dsh plugin --profile desktop remove dsh-token-usage,再装 0.1.1,否则会同时挂两个同 id 的 Loader 行
  • 装完必须 ⌘Q 重启客户端

功能:设置里的 Token 用量日历(按天 / 按模型),数据来自本机会话日志,零依赖。

v0.1.0 — Token 用量日历

Choose a tag to compare

@SauronLee SauronLee released this 23 Oct 01:58

首个版本:把 DSH 的会话日志折成一张 Token 用量月历,放在 设置 里。

功能

  • 月历热力图:一格一天,按当天 token 总量着色,格内小圆点是当天用到的模型
  • 点某一天展开每个模型的调用次数、输入 / 缓存读 / 缓存写 / 输出 与占比条
  • 月度合计、缓存命中率、当月最耗 token 的模型
  • 完全本地:只读 ctx.sessionQuery,不联网、不上传、不写数据库
  • 零依赖:纯 JS,无构建步骤

安装

dsh plugin --profile desktop add git+https://github.com/SauronLee/dsh-token-usage.git

或下载下面的 dsh-token-usage-0.1.0.tgz 后 dsh plugin --profile desktop add ./dsh-token-usage-0.1.0.tgz。

要求 DSH 0.2.x;装完必须 ⌘Q 重启 客户端。

说明:DSH 不含模型价格表,这里统计的是 token 数量,不是金额;真实账单请看 DeepSeek 平台的用量页。