dsh-cost-meter 1.9.32 → 1.9.33
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 +10 -0
- package/docs/update-notes-1.9.33.md +23 -0
- package/package.json +3 -2
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.33** adds full settings to the plugin details page and fixes concurrent saves, CNY conversion and frozen currency totals. The future read-only settings page is prepared but remains disabled.
|
|
20
20
|
|
|
21
21
|
**Host floor: DSH 0.2.0** · Adaptation target: **0.2.1-rc.2** (npm `next`). Expand the compatibility notes below for exact declarations, host records and troubleshooting.
|
|
22
22
|
|
|
23
|
-
Release notes: [v1.9.
|
|
23
|
+
Release notes: [v1.9.33](docs/update-notes-1.9.33.md#english). Fully restart DSH after updating.
|
|
24
24
|
|
|
25
25
|

|
|
26
26
|
|
|
@@ -352,22 +352,22 @@ On Node.js 20, use `npm install -g pnpm@10` instead. See [pnpm installation and
|
|
|
352
352
|
dsh plugin --profile web add dsh-cost-meter
|
|
353
353
|
```
|
|
354
354
|
|
|
355
|
-
**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.
|
|
355
|
+
**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.33`** — review the script before running):
|
|
356
356
|
|
|
357
357
|
```powershell
|
|
358
|
-
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.
|
|
358
|
+
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.33/install.ps1 | iex
|
|
359
359
|
```
|
|
360
360
|
|
|
361
361
|
**Or a plain command line** (the machine must already have pnpm and git; also pinned to the tag):
|
|
362
362
|
|
|
363
363
|
```sh
|
|
364
|
-
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.
|
|
364
|
+
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.33
|
|
365
365
|
```
|
|
366
366
|
|
|
367
367
|
Without git, use the GitHub tag archive:
|
|
368
368
|
|
|
369
369
|
```sh
|
|
370
|
-
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.
|
|
370
|
+
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.33.tar.gz
|
|
371
371
|
```
|
|
372
372
|
|
|
373
373
|
After installing, **restart** `dsh web` (plugin rows, the Typert manifest and the client bundle are all scanned at startup):
|
|
@@ -432,7 +432,7 @@ Workarounds:
|
|
|
432
432
|
|
|
433
433
|
```yaml
|
|
434
434
|
minimumReleaseAgeExclude:
|
|
435
|
-
- dsh-cost-meter@1.9.
|
|
435
|
+
- dsh-cost-meter@1.9.33
|
|
436
436
|
```
|
|
437
437
|
|
|
438
438
|
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.33** 插件详情页新增完整费用设置,修复并发保存、人民币折算和历史币种金额同步。实时费用与额度展示页已备好,暂不启用。
|
|
20
20
|
|
|
21
21
|
**宿主要求:DSH 0.2.0 起支持** · 适配目标 **0.2.1-rc.2**(npm `next`)。完整声明、历史记录与安装排障见下方展开项。
|
|
22
22
|
|
|
23
|
-
更新说明:[v1.9.
|
|
23
|
+
更新说明:[v1.9.33](docs/update-notes-1.9.33.md#中文)。更新后完全重启 DSH。
|
|
24
24
|
|
|
25
25
|

|
|
26
26
|
|
|
@@ -352,22 +352,22 @@ Node.js 20 请改用 `npm install -g pnpm@10`。版本要求见 [pnpm 官方安
|
|
|
352
352
|
dsh plugin --profile web add dsh-cost-meter
|
|
353
353
|
```
|
|
354
354
|
|
|
355
|
-
**PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.
|
|
355
|
+
**PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.33`**,建议先下载审阅再运行):
|
|
356
356
|
|
|
357
357
|
```powershell
|
|
358
|
-
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.
|
|
358
|
+
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.33/install.ps1 | iex
|
|
359
359
|
```
|
|
360
360
|
|
|
361
361
|
**或直接命令行**(机器上需已有 pnpm 与 git;同样固定到 tag):
|
|
362
362
|
|
|
363
363
|
```sh
|
|
364
|
-
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.
|
|
364
|
+
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.33
|
|
365
365
|
```
|
|
366
366
|
|
|
367
367
|
没有 git 时可用 GitHub tag 打包直链:
|
|
368
368
|
|
|
369
369
|
```sh
|
|
370
|
-
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.
|
|
370
|
+
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.33.tar.gz
|
|
371
371
|
```
|
|
372
372
|
|
|
373
373
|
安装后**重启** `dsh web`(插件行、Typert 清单与客户端 bundle 均在启动时扫描):
|
|
@@ -432,7 +432,7 @@ DSH **0.2.1-rc.1 / 0.2.1-rc.2** 宿主自带 pnpm **11.28.5**,默认启用内
|
|
|
432
432
|
|
|
433
433
|
```yaml
|
|
434
434
|
minimumReleaseAgeExclude:
|
|
435
|
-
- dsh-cost-meter@1.9.
|
|
435
|
+
- dsh-cost-meter@1.9.33
|
|
436
436
|
```
|
|
437
437
|
|
|
438
438
|
3. 仅本次操作用 CLI 透传 pnpm 参数:`dsh plugin --profile desktop remove dsh-cost-meter --config.minimum-release-age=0`;若只是 lockfile 校验阶段失败,可改用 `--trust-lockfile`。这两个参数已在本机 pnpm 11.28.5 临时 Profile 上实测可用。
|
|
@@ -13,3 +13,13 @@ GitHub Actions 工作流 `plugin-compatibility-watch` 每日北京时间 08:23
|
|
|
13
13
|
2026-10-20 已验证并接受 `billion-context@0.1.202` 与 `dsh-codex-subscription@3.1.2`。前者通过实际发布包的代理、原生传输、重试、摘要、历史回放与原版 CLI 自动接入检查,后者通过实际额度解析和 RPC 的单周、双窗口、刷新、失败回退检查。测试使用合成数据与本机服务器,未查询用户账户或调用外部模型。两者接入接口指纹均未变化,v1.9.16 无需修改运行时代码即可兼容;对应版本已加入持续集成。
|
|
14
14
|
|
|
15
15
|
2026-10-22 已验证并接受 `billion-context@0.1.204` 与 `dsh-codex-subscription@3.1.4`(监控 issue [#379](https://github.com/Han-1413141/dsh-cost-meter/issues/379)、[#380](https://github.com/Han-1413141/dsh-cost-meter/issues/380))。前者使用实际发布包验证代理、原生传输、重试、压缩、父子会话、历史回放和无配套包的 CLI 自动接入;后者验证发布包的单周、双窗口、强制刷新与失败回退。3.1.4 的 RPC 分发变化涉及语音功能,额度接口保持兼容。两版均加入持续集成,本次只接受已验证的两个版本,保留 `dsh-codex-connect` 原基线。
|
|
16
|
+
|
|
17
|
+
2026-10-24 处理 `github-actions[bot]` 在 [#392](https://github.com/Han-1413141/dsh-cost-meter/issues/392)、[#393](https://github.com/Han-1413141/dsh-cost-meter/issues/393)、[#394](https://github.com/Han-1413141/dsh-cost-meter/issues/394) 报告的版本与接口指纹变化。实际接入检查通过,费用插件运行时代码无需调整;持续集成保留旧版本并加入本次验证版本。
|
|
18
|
+
|
|
19
|
+
| 上游插件 | 已验证版本 | 变化与验证范围 |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| billion-context | 0.1.205、0.1.206 | `handle` 为增量探测增加 conversation 参数,两版的接入函数指纹相同。用实际发布包验证四种协议、缓存计费、摘要压缩、重试、父子会话、API/Plan 分类、回放、重启及原版 CLI 自动接入。 |
|
|
22
|
+
| dsh-codex-subscription | 3.1.6 | 宿主依赖约束变化,额度接入函数指纹未变。用原版解析器和 RPC 载体验证单周、双窗口、强制刷新及失败回退。 |
|
|
23
|
+
| dsh-codex-connect | 0.2.0-alpha.10 | 宿主依赖与状态路由变化,状态读取使用同一账号快照。新增实际发布包检查,执行原版额度解析器、公开状态类与 GET 路由,覆盖读取期间切换账号、下一次刷新、登录失效、额度失败、401/403 拒绝、405 方法限制与卸载清理。 |
|
|
24
|
+
|
|
25
|
+
基线更新为 `0.1.206 / 3.1.6 / 0.2.0-alpha.10`,保存对应发布包的 SHA-512 完整性。Connect 的账号、认证和额度服务使用本地模拟对象;原版插件初始化、OAuth 登录与外部模型请求没有执行。检查入口为 `test/codex-connect-published.mjs`,通过 `DSH_TEST_CONNECT_PACKAGE` 指定已下载的 npm 压缩包。
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# v1.9.33 更新说明
|
|
2
|
+
|
|
3
|
+
## 中文
|
|
4
|
+
|
|
5
|
+
本版本完成三条上游兼容监控告警的验证,费用插件的运行时适配代码保持原样。
|
|
6
|
+
|
|
7
|
+
- **billion-context 0.1.205 / 0.1.206:**实际发布包通过代理与原生传输、四种协议、重试、摘要压缩、缓存计费、API/Plan 分类、父子会话、历史回放、重启及原版 CLI 自动接入检查。
|
|
8
|
+
- **dsh-codex-subscription 3.1.6:**宿主依赖约束更新,额度接入函数未变;原版解析器和 RPC 通过单周、双窗口、强制刷新与失败回退检查。
|
|
9
|
+
- **dsh-codex-connect 0.2.0-alpha.10:**新增原版额度解析器、公开状态类与 GET 路由检查,确认当前账号的用量和账号列表取自同一快照;下一次刷新跟随新账号,并保留登录失效、额度失败、鉴权拒绝和方法限制。
|
|
10
|
+
|
|
11
|
+
持续集成保留原有版本,并加入上述版本。监控基线更新为 **0.1.206 / 3.1.6 / 0.2.0-alpha.10**,记录对应 npm 发布包的 SHA-512 完整性。测试使用本地模拟数据与服务,没有登录用户账号或调用外部模型。
|
|
12
|
+
|
|
13
|
+
报告来源:`github-actions[bot]` 在 [#392](https://github.com/Han-1413141/dsh-cost-meter/issues/392)、[#393](https://github.com/Han-1413141/dsh-cost-meter/issues/393)、[#394](https://github.com/Han-1413141/dsh-cost-meter/issues/394) 提供版本和接口指纹变化。[详细验证范围](plugin-compatibility-watch.md)。
|
|
14
|
+
|
|
15
|
+
更新至 **1.9.33** 可获取本次兼容说明;无需额外配置或重新绑定账号。
|
|
16
|
+
|
|
17
|
+
## English
|
|
18
|
+
|
|
19
|
+
Verify compatibility with billion-context **0.1.205 / 0.1.206**, dsh-codex-subscription **3.1.6** and dsh-codex-connect **0.2.0-alpha.10**. Existing runtime adapters remain compatible.
|
|
20
|
+
|
|
21
|
+
The published packages pass the relevant billing, replay, CLI, quota-parser and RPC checks. New Codex Connect checks execute its original parser, public-status class and read-only HTTP route with local account/auth/quota fixtures, including account snapshot consistency, account changes, signed-out states, quota failures and authenticated request boundaries.
|
|
22
|
+
|
|
23
|
+
Expand the pinned CI matrix and update the monitoring baseline only after validation, retaining package SHA-512 integrity. No real user sign-in or external model request was used. These checks address automated reports #392, #393 and #394 from `github-actions[bot]`. No additional configuration or account rebinding is needed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-cost-meter",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.33",
|
|
4
4
|
"description": "DeepSeek Harness 会话费用统计插件:本会话成本、当日费用、历史记录与官方价格同步,支持多厂商多模型价格计费(内置 170+ 模型 ID 价格目录与自动匹配)、主流 Coding Plan 订阅额度查询与显示(14 家,含 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 14 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",
|
|
@@ -175,7 +175,8 @@
|
|
|
175
175
|
"docs/update-notes-1.9.30.md",
|
|
176
176
|
"docs/settings-pages.md",
|
|
177
177
|
"docs/update-notes-1.9.31.md",
|
|
178
|
-
"docs/update-notes-1.9.32.md"
|
|
178
|
+
"docs/update-notes-1.9.32.md",
|
|
179
|
+
"docs/update-notes-1.9.33.md"
|
|
179
180
|
],
|
|
180
181
|
"dependencies": {
|
|
181
182
|
"acorn": "8.15.0",
|