← 返回列表
D

@gamegeek-saikel/dsh-cost-meter

v0.1.1 · 1 天前发布

Cost tracking plugin for the DeepSeek Harness Web GUI — snapshot-anchored per-turn pricing, account balance, and live cost estimates.

deepseekdshdsh-plugincost-trackingpricingtoken-metertypescriptreactcordis

README

DSH Cost Meter(对话花费计量)

English  ·  简体中文

**DSH Cost Meter** 是为 DeepSeek Harness(DSH)Web GUI 打造的对话成本追踪插件——**价格快照锚定**的逐轮成本(感知**峰值/闲时**)、**账户余额**、**花费标签页**、**每条回复成本小标签**,以及带**流式实时估算**的**头部胶囊**。每一步的成本、价格档位与快照版本都**只计算一次**——锚定到该用量事件自身时刻生效的价格快照,此后永不重算——因此后续价格变动绝不会改写已写入的对话记录。 - Host 半区(`src/`):DeepSeek `GET /user/balance` 余额查询、持久化的快照锚定价格簿、`sessionCost` 投影、子代理成本聚合,以及带信任围栏的 `/cost-meter` 路由。 - Client 半区(`src/client/`):输入框下方读数、花费标签页、每条回复成本小标签、头部胶囊,以及插件配置卡——内置简体中文与英文。 --- ## 安装 本插件已发布到 npm:`@gamegeek-saikel/dsh-cost-meter`,以官方 DSH 插件 bundle 形态交付(单个 `cordis.patch.yml` 行同时挂载 host 与浏览器两半)。 通过官方 DSH CLI(npx 方式,无需全局安装)装入 web profile: ```bash npx @deepseek-ai/dsh plugin --profile web add @gamege
查看完整 README →

版本兼容矩阵

DSH 版本状态说明
dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
dsh@0.1.0 ✅ 兼容 标准 patch ✅
dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
dsh@0.3.0+ ❓ 未知 尚未发布

💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

元数据

License
MIT
npm
@gamegeek-saikel/dsh-cost-meter
Repo
git+https://github.com/Saikel-Orado-Liu/dsh-cost-meter.git
Engines
{"node":"^22.19.0 || >=24.0.0"}
Weekly DL
0
Monthly DL
0
dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-ui-conversation","@deepseek-ai/dsh-client-ui-primitives","@deepseek-ai/dsh-client-ui-settings","@deepseek-ai/dsh-token-meter"],"platform":"web"}}