283Gawin/dsh-heatmap0

@linxin666/dsh-client-ui-activity-heatmap

Activity heatmap for the dsh web GUI sidebar: a persistent GitHub-style year grid switching between daily commits / token usage / estimated spend, plus a today line with all-session token totals, cache hit rate, and per-model auto-priced cost. Data is aggregated host-side from the durable session logs (provider usage) and the workspace git repositories, served at /activity-heatmap/stats. Hot-pluggable - mounted via ~/.dsh/cordis.patch.yml + a profile node_modules symlink, no dsh source changes. Pricing table follows the xiufengsun/TokenTracker curated rates.

AI 分析

适合希望监控日常使用活跃度与模型消耗成本的用户。在侧边栏直观展示 Token 消耗、缓存命中率及预估花费,数据由宿主端日志聚合。

パッケージ
@linxin666/dsh-client-ui-activity-heatmap
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/14

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:283Gawin/dsh-heatmap

ドキュメント

README 全文を読む ↗

配置

设置页「插件 → 活动热力图」卡片可配置以下字段(等价于插件行 config):

类型默认含义
themestringblue热力图主题色:blue / green
enabledbooleantrue插件总开关
includeMergesbooleanfalse提交数是否计入 merge 提交
usdCnyRatenumber0USD→CNY 汇率,0 表示不显示人民币
priceOverrides文本行{}模型定价覆盖(见下)

插件行 config 示例:

- insert:
    - id: ui-activity-heatmap
      name: '@linxin666/dsh-client-ui-activity-heatmap'
      config:
        theme: green
        usdCnyRate: 7.2
        priceOverrides:
          my-model:
            inputPerM: 0.5
            outputPerM: 2

修改后重启 dsh web 生效。