dsh-cost-meter 1.9.52 → 1.9.53

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 CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  **Session cost tracking plugin for the DeepSeek Harness web GUI (bilingual UI)**
8
8
 
9
- [![version](https://img.shields.io/badge/version-1.9.52-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
9
+ [![version](https://img.shields.io/badge/version-1.9.53-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
10
10
  [![npm](https://img.shields.io/npm/v/dsh-cost-meter?label=npm)](https://www.npmjs.com/package/dsh-cost-meter)
11
11
  [![dshfind](https://dshfind.com/api/badge/Han-1413141/dsh-cost-meter?metric=downloads&lang=en)](https://dshfind.com/zh/plugins/Han-1413141/dsh-cost-meter?ref=badge)
12
12
  [![license](https://img.shields.io/badge/license-MIT-green)](LICENSE)
@@ -16,11 +16,11 @@
16
16
 
17
17
  </div>
18
18
 
19
- **v1.9.52** adapts to DSH 0.2.2-alpha.3, fixes missing native-search usage for isolated Web services on the updated Cordis runtime, and extends the host peer ranges.
19
+ **v1.9.53** validates billion-context 0.1.212, including native prefill-progress headers, cost correlation and automatic integration, and adds the published version to CI.
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.52](docs/update-notes-1.9.52.md#english). Fully restart DSH after updating.
23
+ Release notes: [v1.9.53](docs/update-notes-1.9.53.md#english). Fully restart DSH after updating.
24
24
 
25
25
  ![Promo art](docs/promo.en.png)
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.52`** — review the script before running):
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.53`** — review the script before running):
360
360
 
361
361
  ```powershell
362
- irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.52/install.ps1 | iex
362
+ irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.53/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.52
368
+ dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.53
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.52.tar.gz
374
+ dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.53.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.52
439
+ - dsh-cost-meter@1.9.53
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
- [![version](https://img.shields.io/badge/version-1.9.52-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
9
+ [![version](https://img.shields.io/badge/version-1.9.53-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
10
10
  [![npm](https://img.shields.io/npm/v/dsh-cost-meter?label=npm)](https://www.npmjs.com/package/dsh-cost-meter)
11
11
  [![dshfind](https://dshfind.com/api/badge/Han-1413141/dsh-cost-meter?metric=downloads&lang=zh)](https://dshfind.com/zh/plugins/Han-1413141/dsh-cost-meter?ref=badge)
12
12
  [![license](https://img.shields.io/badge/license-MIT-green)](LICENSE)
@@ -16,11 +16,11 @@
16
16
 
17
17
  </div>
18
18
 
19
- **v1.9.52** 适配 DSH 0.2.2-alpha.3,修复新 Cordis 下隔离 Web 服务的原生搜索漏计,并补齐宿主依赖范围。
19
+ **v1.9.53** 验证 billion-context 0.1.212,补充原生预填充请求头与费用关联检查,更新兼容基线与持续集成。
20
20
 
21
21
  **宿主要求:DSH 0.2.0 起支持** · 适配目标 **0.2.2-alpha.3**。完整声明、历史记录与安装排障见下方展开项。
22
22
 
23
- 更新说明:[v1.9.52](docs/update-notes-1.9.52.md#中文)。更新后完全重启 DSH。
23
+ 更新说明:[v1.9.53](docs/update-notes-1.9.53.md#中文)。更新后完全重启 DSH。
24
24
 
25
25
  ![宣传图](docs/promo.png)
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.52`**,建议先下载审阅再运行):
359
+ **PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.53`**,建议先下载审阅再运行):
360
360
 
361
361
  ```powershell
362
- irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.52/install.ps1 | iex
362
+ irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.53/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.52
368
+ dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.53
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.52.tar.gz
374
+ dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.53.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.52
439
+ - dsh-cost-meter@1.9.53
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,11 @@ 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 矩阵。
@@ -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).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-cost-meter",
3
- "version": "1.9.52",
3
+ "version": "1.9.53",
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,7 @@
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",
208
209
  "docs/billing-review-2026-11-02.md",
209
210
  "docs/billing-currency.md",
210
211
  "docs/native-search-billing.md"