dsh-cost-meter 1.9.52 → 1.9.54
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.md +8 -8
- package/README.zh-CN.md +8 -8
- package/docs/plugin-compatibility-watch.md +16 -0
- package/docs/update-notes-1.9.53.md +17 -0
- package/docs/update-notes-1.9.54.md +19 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**Session cost tracking plugin for the DeepSeek Harness web GUI (bilingual UI)**
|
|
8
8
|
|
|
9
|
-
[](https://github.com/Han-1413141/dsh-cost-meter)
|
|
10
10
|
[](https://www.npmjs.com/package/dsh-cost-meter)
|
|
11
11
|
[](https://dshfind.com/zh/plugins/Han-1413141/dsh-cost-meter?ref=badge)
|
|
12
12
|
[](LICENSE)
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
|
-
**v1.9.
|
|
19
|
+
**v1.9.54** validates Codex Subscription 3.2.4, including access-error messages, fresh quota after failure cooldown and account-cache clearing after login.
|
|
20
20
|
|
|
21
21
|
**Host floor: DSH 0.2.0** · Adaptation target: **0.2.2-alpha.3**. Expand the compatibility notes below for exact declarations, host records and troubleshooting.
|
|
22
22
|
|
|
23
|
-
Release notes: [v1.9.
|
|
23
|
+
Release notes: [v1.9.54](docs/update-notes-1.9.54.md#english). Fully restart DSH after updating.
|
|
24
24
|
|
|
25
25
|

|
|
26
26
|
|
|
@@ -356,22 +356,22 @@ On Node.js 20, use `npm install -g pnpm@10` instead. See [pnpm installation and
|
|
|
356
356
|
dsh plugin --profile web add dsh-cost-meter
|
|
357
357
|
```
|
|
358
358
|
|
|
359
|
-
**PowerShell one-click script** (copy the whole line, paste, press Enter; pnpm is provisioned automatically, git is auto-detected — no clone needed; the install chain is **pinned to the release tag `v1.9.
|
|
359
|
+
**PowerShell one-click script** (copy the whole line, paste, press Enter; pnpm is provisioned automatically, git is auto-detected — no clone needed; the install chain is **pinned to the release tag `v1.9.54`** — review the script before running):
|
|
360
360
|
|
|
361
361
|
```powershell
|
|
362
|
-
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.
|
|
362
|
+
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.54/install.ps1 | iex
|
|
363
363
|
```
|
|
364
364
|
|
|
365
365
|
**Or a plain command line** (the machine must already have pnpm and git; also pinned to the tag):
|
|
366
366
|
|
|
367
367
|
```sh
|
|
368
|
-
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.
|
|
368
|
+
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.54
|
|
369
369
|
```
|
|
370
370
|
|
|
371
371
|
Without git, use the GitHub tag archive:
|
|
372
372
|
|
|
373
373
|
```sh
|
|
374
|
-
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.
|
|
374
|
+
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.54.tar.gz
|
|
375
375
|
```
|
|
376
376
|
|
|
377
377
|
After installing, **restart** `dsh web` (plugin rows, the Typert manifest and the client bundle are all scanned at startup):
|
|
@@ -436,7 +436,7 @@ Workarounds:
|
|
|
436
436
|
|
|
437
437
|
```yaml
|
|
438
438
|
minimumReleaseAgeExclude:
|
|
439
|
-
- dsh-cost-meter@1.9.
|
|
439
|
+
- dsh-cost-meter@1.9.54
|
|
440
440
|
```
|
|
441
441
|
|
|
442
442
|
3. For a one-off CLI operation, forward the pnpm flag: `dsh plugin --profile desktop remove dsh-cost-meter --config.minimum-release-age=0` (or add `--trust-lockfile` when only lockfile verification fails). Both flags were verified against pnpm 11.28.5 in a temporary profile.
|
package/README.zh-CN.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**DeepSeek Harness 会话费用统计插件(界面中英双语)**
|
|
8
8
|
|
|
9
|
-
[](https://github.com/Han-1413141/dsh-cost-meter)
|
|
10
10
|
[](https://www.npmjs.com/package/dsh-cost-meter)
|
|
11
11
|
[](https://dshfind.com/zh/plugins/Han-1413141/dsh-cost-meter?ref=badge)
|
|
12
12
|
[](LICENSE)
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
|
-
**v1.9.
|
|
19
|
+
**v1.9.54** 验证 Codex Subscription 3.2.4,补充权限错误提示、失败冷却后的额度重读及登录完成后的账号缓存清理检查。
|
|
20
20
|
|
|
21
21
|
**宿主要求:DSH 0.2.0 起支持** · 适配目标 **0.2.2-alpha.3**。完整声明、历史记录与安装排障见下方展开项。
|
|
22
22
|
|
|
23
|
-
更新说明:[v1.9.
|
|
23
|
+
更新说明:[v1.9.54](docs/update-notes-1.9.54.md#中文)。更新后完全重启 DSH。
|
|
24
24
|
|
|
25
25
|

|
|
26
26
|
|
|
@@ -356,22 +356,22 @@ Node.js 20 请改用 `npm install -g pnpm@10`。版本要求见 [pnpm 官方安
|
|
|
356
356
|
dsh plugin --profile web add dsh-cost-meter
|
|
357
357
|
```
|
|
358
358
|
|
|
359
|
-
**PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.
|
|
359
|
+
**PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.54`**,建议先下载审阅再运行):
|
|
360
360
|
|
|
361
361
|
```powershell
|
|
362
|
-
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.
|
|
362
|
+
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.54/install.ps1 | iex
|
|
363
363
|
```
|
|
364
364
|
|
|
365
365
|
**或直接命令行**(机器上需已有 pnpm 与 git;同样固定到 tag):
|
|
366
366
|
|
|
367
367
|
```sh
|
|
368
|
-
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.
|
|
368
|
+
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.54
|
|
369
369
|
```
|
|
370
370
|
|
|
371
371
|
没有 git 时可用 GitHub tag 打包直链:
|
|
372
372
|
|
|
373
373
|
```sh
|
|
374
|
-
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.
|
|
374
|
+
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.54.tar.gz
|
|
375
375
|
```
|
|
376
376
|
|
|
377
377
|
安装后**重启** `dsh web`(插件行、Typert 清单与客户端 bundle 均在启动时扫描):
|
|
@@ -436,7 +436,7 @@ DSH **0.2.1-rc.1 / 0.2.1-rc.2** 宿主自带 pnpm **11.28.5**,默认启用内
|
|
|
436
436
|
|
|
437
437
|
```yaml
|
|
438
438
|
minimumReleaseAgeExclude:
|
|
439
|
-
- dsh-cost-meter@1.9.
|
|
439
|
+
- dsh-cost-meter@1.9.54
|
|
440
440
|
```
|
|
441
441
|
|
|
442
442
|
3. 仅本次操作用 CLI 透传 pnpm 参数:`dsh plugin --profile desktop remove dsh-cost-meter --config.minimum-release-age=0`;若只是 lockfile 校验阶段失败,可改用 `--trust-lockfile`。这两个参数已在本机 pnpm 11.28.5 临时 Profile 上实测可用。
|
|
@@ -74,3 +74,19 @@ node test/codex-subscription-published.mjs
|
|
|
74
74
|
### 2026-11-01:billion-context 0.1.210 / 0.1.211
|
|
75
75
|
|
|
76
76
|
响应 github-actions[bot] 的 [#451](https://github.com/Han-1413141/dsh-cost-meter/issues/451)。两个实际 npm 发布包通过代理/原生计费、四协议、压缩、重试、缓存、父子会话、API/Plan、历史回放、重启及原版 CLI 自动接入检查;仅使用合成数据与本机服务,外部模型请求为 0。无需修改运行时代码,基线更新至处理时的 0.1.211,CI 保留两版并继续验证旧版。
|
|
77
|
+
|
|
78
|
+
### 2026-11-03 billion-context 0.1.212
|
|
79
|
+
|
|
80
|
+
处理 github-actions[bot] 在 [#462](https://github.com/Han-1413141/dsh-cost-meter/issues/462) 报告的原生请求拦截变化。0.1.211 与 0.1.212 的实际发布包均通过 SHA-512 校验。新版原生拦截器在代理请求中添加预填充进度请求头,并从成功响应学习下一次请求所需的序号。
|
|
81
|
+
|
|
82
|
+
实际发布包的原生及代理计费、四种协议、压缩、重试、缓存用量、父子会话、API/Plan、历史回放、重启和原版 CLI 自动接入检查通过。新增连续原生请求检查,验证成功响应中的 x-bili-pf-seq 被下一次 Request 输入转换为 x-bili-pf-count,同时保留请求体、会话标识、费用关联和两次费用确认。测试使用合成数据与本机服务器,外部请求数为 0。
|
|
83
|
+
|
|
84
|
+
兼容基线更新为 0.1.212,并将该版本加入现有 CI 矩阵。
|
|
85
|
+
|
|
86
|
+
### 2026-11-03 Codex Subscription 3.2.4
|
|
87
|
+
|
|
88
|
+
处理 github-actions[bot] 在 [#465](https://github.com/Han-1413141/dsh-cost-meter/issues/465) 报告的 RPC 与额度 reader 变化。3.2.3 和 3.2.4 的实际发布包均通过官方 SHA-512 校验与既有额度回归。
|
|
89
|
+
|
|
90
|
+
3.2.4 新增权限限制的公开错误分类,在登录完成后清理账号额度缓存,并在失败冷却结束后重新获取额度。新增检查覆盖普通 403、设备及购买限制说明经 RPC 传递、错误正文脱敏、登录未完成及完成后的缓存处理,以及缓存仍在有效期内时强制刷新失败、冷却结束后的正常重读。所有输入使用合成数据,外部请求数为 0。
|
|
91
|
+
|
|
92
|
+
兼容基线更新为 3.2.4,两个既有宿主的 CI 矩阵均加入该实际发布包。
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# v1.9.53 — billion-context 0.1.212 兼容
|
|
2
|
+
|
|
3
|
+
## 中文
|
|
4
|
+
|
|
5
|
+
- 验证 billion-context 0.1.212 的实际 npm 发布包,接受原生请求预填充进度请求头变化,更新兼容基线与持续集成。
|
|
6
|
+
- 补充连续原生请求检查,确认从响应学习的进度可用于下一次 Request 请求,并保留请求体、会话标识与费用确认。
|
|
7
|
+
- 验证代理/原生计费、四种协议、压缩、重试、缓存、父子会话、历史回放和原版 CLI 自动接入。
|
|
8
|
+
|
|
9
|
+
更新后完全重启 DSH。详细记录见[兼容插件监控](plugin-compatibility-watch.md)。感谢 github-actions[bot] 在 [#462](https://github.com/Han-1413141/dsh-cost-meter/issues/462) 提供版本和函数指纹变化报告。
|
|
10
|
+
|
|
11
|
+
## English
|
|
12
|
+
|
|
13
|
+
- Validate the published billion-context 0.1.212 package and update its compatibility baseline and CI coverage.
|
|
14
|
+
- Verify that native prefill progress learned from a response reaches the next Request input while preserving the body, conversation ID and cost acknowledgements.
|
|
15
|
+
- Exercise proxy/native billing, four protocols, compression, retries, cache usage, child sessions, history replay and stock CLI integration with local synthetic fixtures.
|
|
16
|
+
|
|
17
|
+
Fully restart DSH after updating. See the [compatibility record](plugin-compatibility-watch.md).
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# v1.9.54 — Codex Subscription 3.2.4 兼容
|
|
2
|
+
|
|
3
|
+
## 中文
|
|
4
|
+
|
|
5
|
+
- 验证 Codex Subscription 3.2.4 的实际发布包,更新兼容基线和持续集成矩阵。
|
|
6
|
+
- 验证权限限制的公开说明经过额度 RPC 保留,错误正文与凭据继续脱敏。
|
|
7
|
+
- 验证登录完成后清理账号额度缓存,以及失败冷却结束后重新获取额度。
|
|
8
|
+
- 包含上一版的 billion-context 0.1.212 原生预填充进度与费用关联验证。
|
|
9
|
+
|
|
10
|
+
感谢 github-actions[bot] 在 [#465](https://github.com/Han-1413141/dsh-cost-meter/issues/465) 提供接口变化报告。详细记录见[兼容插件监控](plugin-compatibility-watch.md)。更新后完全重启 DSH。
|
|
11
|
+
|
|
12
|
+
## English
|
|
13
|
+
|
|
14
|
+
- Validate the published Codex Subscription 3.2.4 package and add it to the compatibility baseline and both host CI matrices.
|
|
15
|
+
- Preserve public access-failure explanations across the usage RPC while filtering private response data and credentials.
|
|
16
|
+
- Verify account-cache clearing after completed login and a fresh quota read after a failed-refresh cooldown.
|
|
17
|
+
- Include the preceding billion-context 0.1.212 native prefill-progress and cost-correlation checks.
|
|
18
|
+
|
|
19
|
+
Fully restart DSH after updating. See the [compatibility record](plugin-compatibility-watch.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-cost-meter",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.54",
|
|
4
4
|
"description": "DeepSeek Harness 会话费用统计插件:本会话成本、当日费用、历史记录与官方价格同步,支持多厂商多模型价格计费(内置 170+ 模型 ID 价格目录与自动匹配)、主流 Coding Plan 订阅额度查询与显示(16 家,含 WorkBuddy 官方积分、OpenDesign 工作区查询、含小米 MiMo Token Plan 控制台 Cookie 查询、SCNet Token Plan 本地 Credits 计量与火山方舟 Volcano Ark Coding Plan AK/SK 签名查询)、自定义 Provider 余额查询(可配任意 HTTP 端点)与余额进度条、峰谷计价时段显示与切换前弹窗/系统通知提醒(位置/提前量/类型可配),界面中英双语。Session cost tracking plugin for DeepSeek Harness: per-conversation cost, daily totals, history and official price sync, with multi-vendor model pricing (built-in 170+ model-ID catalog with auto-matching), Coding Plan quota queries & display for 16 vendors (incl. WorkBuddy official credits, OpenDesign workspace queries, Xiaomi MiMo Token Plan via console cookie, local credits metering for the SCNet Token Plan and Volcano Ark Coding Plan via AK/SK signature), plan/API dual-track billing with per-1% & full-window Token Plan usage estimates, custom provider balance lookup (configurable HTTP endpoint) and balance progress bar, plus peak/off-peak pricing display with pre-switch popup & system-notification alerts (position / lead time / type configurable), in a bilingual (Chinese/English) UI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/bootstrap.js",
|
|
@@ -205,6 +205,8 @@
|
|
|
205
205
|
"docs/official-price-sync-safety.md",
|
|
206
206
|
"docs/update-notes-1.9.51.md",
|
|
207
207
|
"docs/update-notes-1.9.52.md",
|
|
208
|
+
"docs/update-notes-1.9.53.md",
|
|
209
|
+
"docs/update-notes-1.9.54.md",
|
|
208
210
|
"docs/billing-review-2026-11-02.md",
|
|
209
211
|
"docs/billing-currency.md",
|
|
210
212
|
"docs/native-search-billing.md"
|