dsh-balance-widget 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +6 -2
- package/README.md +6 -2
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# dsh-balance-widget
|
|
2
2
|
|
|
3
|
-
[中文](README.md) | **English**
|
|
3
|
+
[中文](https://github.com/LL-cmyk-so/dsh-balance-widget/blob/main/README.md) | **English**
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/dsh-balance-widget)
|
|
6
6
|
[](https://github.com/LL-cmyk-so/dsh-balance-widget)
|
|
@@ -15,7 +15,7 @@ A balance & cost widget for the [DeepSeek Harness](https://github.com/deepseek-a
|
|
|
15
15
|
|
|
16
16
|
| Sidebar card | Five-tier cost popover |
|
|
17
17
|
| --- | --- |
|
|
18
|
-
|  |  |
|
|
18
|
+
|  |  |
|
|
19
19
|
|
|
20
20
|
## How it differs from similar plugins
|
|
21
21
|
|
|
@@ -189,6 +189,10 @@ This section is for the DSH Store / plugin audit: dependencies, runtime permissi
|
|
|
189
189
|
|
|
190
190
|
## Changelog
|
|
191
191
|
|
|
192
|
+
### v0.5.5 — README assets now render on the npm package page
|
|
193
|
+
- 🐛 **Fixed**: the screenshots and the language switch used repository-relative paths (`docs/screenshot-corner.png`, `README.en.md`). The npm package page renders the README body only and does not resolve in-repo paths, so both screenshots and the language link were broken on npm. They are now absolute URLs: screenshots via `raw.githubusercontent.com`, the language switch via a GitHub blob link
|
|
194
|
+
- 📦 **Scope**: documentation only; no code change
|
|
195
|
+
|
|
192
196
|
### v0.5.4 — search calls are now counted (previously dropped entirely)
|
|
193
197
|
- 🐛 **Fixed**: the auxiliary model calls behind `web_search` contributed nothing to cost. DSH writes only a pre-dispatch `web/deepseek-search-llm-request` event per search (no usage), so any log-derived pricing undercounts systematically — measured 2026-09-22: all 1073 searches of the day were missing. Searches are now priced as requests × a calibrated constant and attributed to their session / workspace / day and turn
|
|
194
198
|
- 📏 **Calibration**: ~6k cache-miss input + ~2k output tokens per search (¥0.014 off-peak, ¥0.028 at peak). Measured 2026-09-22 from the balance delta: 14 searches in one window, balance delta ¥0.28, minus ¥0.094 of log-derivable conversation cost → **¥0.0133 per search**
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# dsh-balance-widget
|
|
2
2
|
|
|
3
|
-
**中文** | [English](README.en.md)
|
|
3
|
+
**中文** | [English](https://github.com/LL-cmyk-so/dsh-balance-widget/blob/main/README.en.md)
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/dsh-balance-widget)
|
|
6
6
|
[](https://github.com/LL-cmyk-so/dsh-balance-widget)
|
|
@@ -15,7 +15,7 @@ DeepSeek Harness (DSH) Web GUI 的余额与成本小部件:侧边栏底部常
|
|
|
15
15
|
|
|
16
16
|
| 侧边栏卡片(左下角常驻) | 点击弹出五层级成本 |
|
|
17
17
|
| --- | --- |
|
|
18
|
-
|  |  |
|
|
18
|
+
|  |  |
|
|
19
19
|
|
|
20
20
|
## 与同类插件的区别
|
|
21
21
|
|
|
@@ -186,6 +186,10 @@ DSH 的插件配置统一放在这个文件里:
|
|
|
186
186
|
|
|
187
187
|
## 版本历史
|
|
188
188
|
|
|
189
|
+
### v0.5.5 — 修复 README 在 npm 包页面上的显示
|
|
190
|
+
- 🐛 **修复**:README 的截图与语言切换此前用相对路径(`docs/screenshot-corner.png`、`README.en.md`)。npm 包页面只渲染 README 正文、不解析仓库内的相对路径,所以在 npm 上两张截图和语言链接都是坏的。现改为绝对 URL:截图走 `raw.githubusercontent.com`,语言切换走 GitHub blob 链接
|
|
191
|
+
- 📦 **范围**:仅文档,代码无变化
|
|
192
|
+
|
|
189
193
|
### v0.5.4 — 计入搜索调用(此前全部漏算)
|
|
190
194
|
- 🐛 **修复**:`web_search` 的辅助模型调用完全不计入成本。DSH 对每次搜索只写一个派发前的 `web/deepseek-search-llm-request` 事件(无 usage),所以按会话日志计价的实现系统性漏算——实测 2026-09-22 一天 1073 次搜索全部没进账。现按「请求次数 × 标定常数」计价,并归入该搜索所属的会话 / 工作区 / 当日及当轮
|
|
191
195
|
- 📏 **标定**:单次搜索 ≈ 6k 缓存未命中输入 + 2k 输出 token(谷时 ¥0.014、峰时 ¥0.028)。2026-09-22 用余额差实测:同一窗口 14 次搜索、余额差 ¥0.28、扣掉日志可算的对话成本 ¥0.094,得 **¥0.0133/次**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-balance-widget",
|
|
3
3
|
"description": "Balance & cost widget for the dsh web GUI: a sidebar footer card shows the DeepSeek account balance and today's costs; clicking opens a popover with a five-tier cost breakdown (last prompt with session name / today-this-session / today-this-workspace / today-all-workspaces), peak/off-peak status tags, term explanations, and a one-click top-up link. Zero external dependencies — works on Node 24.",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"files": [
|