dsh-cost-meter 1.9.27 → 1.9.29

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.27-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
9
+ [![version](https://img.shields.io/badge/version-1.9.29-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.27** adds a persistent OpenRouter refresh cooldown and releases the merged pi-ai Codex quota and billion-context usage fixes.
19
+ **v1.9.29** fixes Desktop sidebar spacing, OpenDesign balance placement, two-line Today alignment and background ledger saving/disposal.
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.27](docs/update-notes-1.9.27.md#english). Fully restart DSH after updating.
23
+ Release notes: [v1.9.29](docs/update-notes-1.9.29.md#english). Fully restart DSH after updating.
24
24
 
25
25
  ![Promo art](docs/promo.en.png)
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.27`** — review the script before running):
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.29`** — review the script before running):
356
356
 
357
357
  ```powershell
358
- irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.27/install.ps1 | iex
358
+ irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.29/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.27
364
+ dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.29
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.27.tar.gz
370
+ dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.29.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.27
435
+ - dsh-cost-meter@1.9.29
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
- [![version](https://img.shields.io/badge/version-1.9.27-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
9
+ [![version](https://img.shields.io/badge/version-1.9.29-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.27** 为 OpenRouter 自动价格同步增加跨重启冷却,并发布已合并的 pi-ai Codex 额度与 billion-context 用量修复。
19
+ **v1.9.29** 修复桌面侧栏底部留白、OpenDesign 余额位置、今日消费两行对齐,以及后台账本保存和卸载卡住的问题。
20
20
 
21
21
  **宿主要求:DSH 0.2.0 起支持** · 适配目标 **0.2.1-rc.2**(npm `next`)。完整声明、历史记录与安装排障见下方展开项。
22
22
 
23
- 更新说明:[v1.9.27](docs/update-notes-1.9.27.md#中文)。更新后完全重启 DSH。
23
+ 更新说明:[v1.9.29](docs/update-notes-1.9.29.md#中文)。更新后完全重启 DSH。
24
24
 
25
25
  ![宣传图](docs/promo.png)
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.27`**,建议先下载审阅再运行):
355
+ **PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.29`**,建议先下载审阅再运行):
356
356
 
357
357
  ```powershell
358
- irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.27/install.ps1 | iex
358
+ irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.29/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.27
364
+ dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.29
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.27.tar.gz
370
+ dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.29.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.27
435
+ - dsh-cost-meter@1.9.29
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 上实测可用。
@@ -4,6 +4,8 @@ The display settings preview reuses selected SVG artwork and presentation CSS fr
4
4
 
5
5
  Artwork is reused without geometry changes. Presentation styles are scoped and adapted into separate regions at normal text size. The preview uses the host's exported primitives when available.
6
6
 
7
+ The standalone ledger worker also bundles the home-directory resolver from @deepseek-ai/dsh-home-paths 0.2.1-rc.1, under the same DeepSeek MIT license below. It does not bundle the host runtime or credential services.
8
+
7
9
  MIT License
8
10
 
9
11
  Copyright (c) 2026 DeepSeek
@@ -1,33 +1,33 @@
1
- # v1.9.15
2
-
3
- ## 中文
4
-
5
- ### 跟随皮肤透明度
6
-
7
- 在“费用 → 显示”勾选“跟随皮肤透明度”,费用页会共用设置窗口的背景,费用统计正文共用弹窗背景,避免液态玻璃皮肤下出现实心深蓝色块与硬边。费用明细、引导、提醒和下拉浮层保留皮肤色及至少 90% 不透明度,皮肤层色完全透明时也保留可读底色。
8
-
9
- 开关默认关闭,现有不透明遮挡效果保持原样;修改自动保存,重启后直接生效。只调整插件自己的界面。感谢 [@MuFeng262](https://github.com/MuFeng262) 在 [issue #345](https://github.com/Han-1413141/dsh-cost-meter/issues/345) 报告、定位问题并建议提供可选开关。
10
-
11
- ### Cline Pass 额度
12
-
13
- 新增 Cline Pass 套餐查询,一张卡片显示 5 小时、周、月窗口及重置时间。自定义渠道名在前后端使用相同的套餐识别规则;未知或无效额度不会显示为 0%,合法的 0、0.5、1 均保留原始百分比含义。
14
-
15
- 感谢 [@kongxiangyiren](https://github.com/kongxiangyiren) 在 [PR #343](https://github.com/Han-1413141/dsh-cost-meter/pull/343) 提供实现和回归测试。
16
-
17
- 更新后完全退出 DSH(包括托盘)再打开。
18
-
19
- ## English
20
-
21
- ### Follow skin transparency
22
-
23
- Enable “Follow skin transparency” under Cost → Display to share the settings window background and use the dialog background throughout statistics content. This removes solid colour blocks and hard edges under translucent skins. Floating dialogs, guides, alerts and menus use the skin colour with an opacity floor of 90%, including when the skin background is fully transparent.
24
-
25
- The option is off by default. Turning it off restores opaque surfaces immediately. Changes save automatically and apply again on startup. Only this plugin's surfaces change. Thanks to [@MuFeng262](https://github.com/MuFeng262) for the report, root-cause analysis and option proposal in [issue #345](https://github.com/Han-1413141/dsh-cost-meter/issues/345).
26
-
27
- ### Cline Pass quota
28
-
29
- A single Cline Pass card shows the actual 5-hour, weekly and monthly windows and reset times. Client and server share plan-name matching rules. Invalid quota values stay unavailable; valid 0, 0.5 and 1 retain their literal percentage meaning.
30
-
31
- Thanks to [@kongxiangyiren](https://github.com/kongxiangyiren) for implementation and regression tests in [PR #343](https://github.com/Han-1413141/dsh-cost-meter/pull/343).
32
-
33
- Fully exit DSH, including its tray process, and reopen after updating.
1
+ # v1.9.15
2
+
3
+ ## 中文
4
+
5
+ ### 跟随皮肤透明度
6
+
7
+ 在“费用 → 显示”勾选“跟随皮肤透明度”,费用页会共用设置窗口的背景,费用统计正文共用弹窗背景,避免液态玻璃皮肤下出现实心深蓝色块与硬边。费用明细、引导、提醒和下拉浮层保留皮肤色及至少 90% 不透明度,皮肤层色完全透明时也保留可读底色。
8
+
9
+ 开关默认关闭,现有不透明遮挡效果保持原样;修改自动保存,重启后直接生效。只调整插件自己的界面。感谢 [@MuFeng262](https://github.com/MuFeng262) 在 [issue #345](https://github.com/Han-1413141/dsh-cost-meter/issues/345) 报告、定位问题并建议提供可选开关。
10
+
11
+ ### Cline Pass 额度
12
+
13
+ 新增 Cline Pass 套餐查询,一张卡片显示 5 小时、周、月窗口及重置时间。自定义渠道名在前后端使用相同的套餐识别规则;未知或无效额度不会显示为 0%,合法的 0、0.5、1 均保留原始百分比含义。
14
+
15
+ 感谢 [@kongxiangyiren](https://github.com/kongxiangyiren) 在 [PR #343](https://github.com/Han-1413141/dsh-cost-meter/pull/343) 提供实现和回归测试。
16
+
17
+ 更新后完全退出 DSH(包括托盘)再打开。
18
+
19
+ ## English
20
+
21
+ ### Follow skin transparency
22
+
23
+ Enable “Follow skin transparency” under Cost → Display to share the settings window background and use the dialog background throughout statistics content. This removes solid colour blocks and hard edges under translucent skins. Floating dialogs, guides, alerts and menus use the skin colour with an opacity floor of 90%, including when the skin background is fully transparent.
24
+
25
+ The option is off by default. Turning it off restores opaque surfaces immediately. Changes save automatically and apply again on startup. Only this plugin's surfaces change. Thanks to [@MuFeng262](https://github.com/MuFeng262) for the report, root-cause analysis and option proposal in [issue #345](https://github.com/Han-1413141/dsh-cost-meter/issues/345).
26
+
27
+ ### Cline Pass quota
28
+
29
+ A single Cline Pass card shows the actual 5-hour, weekly and monthly windows and reset times. Client and server share plan-name matching rules. Invalid quota values stay unavailable; valid 0, 0.5 and 1 retain their literal percentage meaning.
30
+
31
+ Thanks to [@kongxiangyiren](https://github.com/kongxiangyiren) for implementation and regression tests in [PR #343](https://github.com/Han-1413141/dsh-cost-meter/pull/343).
32
+
33
+ Fully exit DSH, including its tray process, and reopen after updating.
@@ -1,67 +1,67 @@
1
- # v1.9.16
2
-
3
- ## 中文
4
-
5
- ### 按所选版本统计 DeepSeek 搜索
6
-
7
- 插件读取“插件 → 内置插件设置 → 网页搜索”对应的 `web.searchProvider` 与 `web.fetchProvider`。新版开关开启时为 `deepseek-search-api`/`deepseek-fetch-api`;关闭时为 `deepseek-official` 的 Messages 搜索和本地 HTTP 抓取。每次调用开始时保存选择,并依据实际请求接口确认版本。修改开关只影响后续调用。
8
-
9
- 根据 [DeepSeek 官方指南](https://api-docs.deepseek.com/zh-cn/guides/search/)(2026-10-19 核对),新版独立 Search/Fetch API 均为每 1,000 次成功请求 ¥5,仅 HTTP 200 且有搜索结果/正文时计费,结果条数不乘价。失败、空结果和超时不收费。
10
-
11
- 旧版 Messages 搜索保留真实模型 Token 费用。可确认的服务端成功搜索调用另列请求项目:北京时间 2026 年 11 月 1 日 00:00 前请求费为 0,此后每次 ¥0.005;未确认成功的调用不估补次数费。模型 Token 和搜索请求分别统计,不重复计入 Token。本地 HTTP 抓取保持无官方 API 次数费。统计详情标明旧版 Messages/新版 Search API/新版 Fetch API。
12
-
13
- 历史记录保留调用时的版本、请求单价和汇率,不因切换搜索设置改价。生产记录不保存搜索词、URL、正文或凭据。适配依据见 [DSH 官方设置控制器](https://github.com/deepseek-ai/deepseek-harness/blob/687f282e8625c6b8d11ff58211a90524be2e4317/packages/client/ui-settings-web-search/src/client/web-search-card-controller.ts)。
14
-
15
- ### 今日同时显示费用和 Token
16
-
17
- 在“费用 → 显示”选中“今日用量”,分别开启费用与 Token 用量,支持仅一项或同时显示。两项右对齐并列,窄侧栏自动换行;预览中两个子项各有虚线,点击可定位相应开关。
18
-
19
- ### 直接拖动侧栏组件
20
-
21
- 在显示设置预览或主界面侧栏,将组件左侧手柄拖到目标卡片上方或下方即可调整顺序;手柄聚焦后也可使用上下方向键。不同套餐和网关卡片可分别排序,Go 与预算分开显示。顺序自动保存,隐藏再显示、切换布局和重启后保留。保存失败时主侧栏保留原顺序并显示提示。
22
-
23
- 验证覆盖官方新版提供方固定源码、实际 DSH 服务注册与本地 HTTP 传输,旧版 Messages 真实用量、搜索开关快照、11 月 1 日时间边界、重启与历史回放,以及浏览器中的双项布局、子项虚线、两处拖放和失败处理。所有接口验证使用合成数据及本机服务器。
24
-
25
- ### 合并卡片、免费模型与提醒修复
26
-
27
- 在“费用 → 显示 → 侧栏布局”选择“合并卡片”,可以将今日 Token 放在标签旁、费用放在右侧,下方显示余额与一行峰谷信息、细进度条。原有简洁、标准和紧凑布局保留;隐藏组件、拖动排序和单项显示继续生效。首次更新提供一次介绍,关闭或选用后会保存记录。
28
-
29
- 检测到当前宿主启用了 `dsh-our-free-model` 后,“价格 → 按模型设置”提供“从此插件调用的所有模型按免费计算”开关,默认保持原计价。开启后,只对 `our-free-model` 和 `our-free-model-region` 两个实际渠道后续调用使用零单价,包括该插件的账号渠道;Token 照常记录,其他提供方与保存过的历史价格不变。关闭可恢复普通匹配与自定义计价。
30
-
31
- Codex 的侧栏和输入区显示开关可以同时开启必要的额度查询,查询总开关也可直接修改;保存和重载保持一致。订阅插件已启用但查询关闭时,侧栏提供启用入口。设置页 Codex 与其他页签使用一致的内边距、高度和中线。
32
-
33
- Go 的悬浮详情列出 5 小时、周、月三个窗口的用量和重置时间;未知额度显示“—”,0% 保留为真实数值。峰价提醒继续使用浏览器顶层,增加页面级后备挂载和低高度窗口滚动,确保“知道了”按钮可操作。
34
-
35
- `billion-context` 提醒点击“知道了”后,将对应状态与版本的确认记录保存到账本。新增“不再弹出此提醒”,也可在“费用 → 显示 → 兼容提醒”关闭或恢复弹窗。关闭不影响兼容检测和页面中的状态说明;记录保留最近 32 个不同提醒。保存失败会显示错误并允许重试。
36
-
37
- 千问 CLI 普通查询保留 15 秒超时,订阅兜底查询单独使用 60 秒;仍支持调用方显式指定超时。新提示说明 CLI 的订阅查询可能超过 30 秒,并给出终端检查命令。感谢 @forkhala 在 [#349](https://github.com/Han-1413141/dsh-cost-meter/issues/349)、[#350](https://github.com/Han-1413141/dsh-cost-meter/issues/350) 提供计时、重启与账本对照复现,感谢 @orshih6 在 [PR #351](https://github.com/Han-1413141/dsh-cost-meter/pull/351) 提供千问分命令超时实现和测试。
38
-
39
- 更新后完全退出 DSH(包括托盘)再打开。
40
-
41
- ## English
42
-
43
- ### Distinguish legacy and new DeepSeek search
44
-
45
- The plugin reads DSH’s `web.searchProvider` and `web.fetchProvider`, snapshots the selection at call start, and confirms the version from the actual endpoint. Legacy Messages search retains its real model-token charges. New standalone Search/Fetch calls cost CNY 5 per 1,000 successful requests: HTTP 200 with nonempty results or page content. Result count does not multiply the fee.
46
-
47
- Observed successful server-side searches are free of request fees until November 1, 2026 at 00:00 Beijing time, then cost CNY 0.005 per request. Missing or failed calls do not receive invented fees. Local HTTP fetching has no official API request charge. Historical versions, rates and exchange rates remain attached to the original calls. See the [official rules](https://api-docs.deepseek.com/guides/search/).
48
-
49
- ### Today: cost, tokens or both
50
-
51
- Select Today’s usage under Cost → Display and use its separate cost and token switches. Both values align to the right and wrap in narrow sidebars. Each preview sub-item has its own outline and focuses the matching control.
52
-
53
- ### Drag sidebar components
54
-
55
- Drag the left handle in Display’s preview or the main sidebar, or focus a handle and use arrow keys. Each plan and gateway card can move independently; Go and Budget use separate cards. Order saves automatically and survives layout changes, hiding and restart. A failed save retains the main sidebar’s previous order.
56
-
57
- ### Combined sidebar, free-model billing and persistent reminders
58
-
59
- Choose Combined card under Cost → Display → Sidebar layout. Today’s tokens and cost share a row, followed by balance and a thin pricing-period progress bar. Existing layouts, visibility controls and drag ordering remain available; the introductory dialog is shown once.
60
-
61
- When the active host enables `dsh-our-free-model`, Pricing’s per-model settings offer an optional zero-price mode for future calls through `our-free-model` and `our-free-model-region`, including account channels. Tokens remain recorded. Other providers and stored historical prices keep their billing rules.
62
-
63
- Codex visibility can enable quota queries, and its explicit query switch persists correctly. Disabled queries have a sidebar entry when the subscription plugin is active. Tabs share the same alignment and padding. Go tooltips show 5-hour, weekly and monthly usage and reset times. Peak reminders use the browser top layer, a body-level fallback and viewport-limited scrolling.
64
-
65
- Billion-context acknowledgements now persist in the ledger, with a Do not show this reminder again action and a Display preference. Detection and status remain available when popups are muted. Qianwen keeps a 15-second summary timeout and uses 60 seconds for subscription fallback; errors identify slow CLI responses. Credits: @forkhala for [#349](https://github.com/Han-1413141/dsh-cost-meter/issues/349) and [#350](https://github.com/Han-1413141/dsh-cost-meter/issues/350), and @orshih6 for the timeout implementation and tests in [#351](https://github.com/Han-1413141/dsh-cost-meter/pull/351).
66
-
67
- Validation uses pinned official provider sources, real DSH services and local synthetic HTTP responses, plus browser drag, layout, persistence and failure checks. Fully exit DSH, including its tray process, and reopen after updating.
1
+ # v1.9.16
2
+
3
+ ## 中文
4
+
5
+ ### 按所选版本统计 DeepSeek 搜索
6
+
7
+ 插件读取“插件 → 内置插件设置 → 网页搜索”对应的 `web.searchProvider` 与 `web.fetchProvider`。新版开关开启时为 `deepseek-search-api`/`deepseek-fetch-api`;关闭时为 `deepseek-official` 的 Messages 搜索和本地 HTTP 抓取。每次调用开始时保存选择,并依据实际请求接口确认版本。修改开关只影响后续调用。
8
+
9
+ 根据 [DeepSeek 官方指南](https://api-docs.deepseek.com/zh-cn/guides/search/)(2026-10-19 核对),新版独立 Search/Fetch API 均为每 1,000 次成功请求 ¥5,仅 HTTP 200 且有搜索结果/正文时计费,结果条数不乘价。失败、空结果和超时不收费。
10
+
11
+ 旧版 Messages 搜索保留真实模型 Token 费用。可确认的服务端成功搜索调用另列请求项目:北京时间 2026 年 11 月 1 日 00:00 前请求费为 0,此后每次 ¥0.005;未确认成功的调用不估补次数费。模型 Token 和搜索请求分别统计,不重复计入 Token。本地 HTTP 抓取保持无官方 API 次数费。统计详情标明旧版 Messages/新版 Search API/新版 Fetch API。
12
+
13
+ 历史记录保留调用时的版本、请求单价和汇率,不因切换搜索设置改价。生产记录不保存搜索词、URL、正文或凭据。适配依据见 [DSH 官方设置控制器](https://github.com/deepseek-ai/deepseek-harness/blob/687f282e8625c6b8d11ff58211a90524be2e4317/packages/client/ui-settings-web-search/src/client/web-search-card-controller.ts)。
14
+
15
+ ### 今日同时显示费用和 Token
16
+
17
+ 在“费用 → 显示”选中“今日用量”,分别开启费用与 Token 用量,支持仅一项或同时显示。两项右对齐并列,窄侧栏自动换行;预览中两个子项各有虚线,点击可定位相应开关。
18
+
19
+ ### 直接拖动侧栏组件
20
+
21
+ 在显示设置预览或主界面侧栏,将组件左侧手柄拖到目标卡片上方或下方即可调整顺序;手柄聚焦后也可使用上下方向键。不同套餐和网关卡片可分别排序,Go 与预算分开显示。顺序自动保存,隐藏再显示、切换布局和重启后保留。保存失败时主侧栏保留原顺序并显示提示。
22
+
23
+ 验证覆盖官方新版提供方固定源码、实际 DSH 服务注册与本地 HTTP 传输,旧版 Messages 真实用量、搜索开关快照、11 月 1 日时间边界、重启与历史回放,以及浏览器中的双项布局、子项虚线、两处拖放和失败处理。所有接口验证使用合成数据及本机服务器。
24
+
25
+ ### 合并卡片、免费模型与提醒修复
26
+
27
+ 在“费用 → 显示 → 侧栏布局”选择“合并卡片”,可以将今日 Token 放在标签旁、费用放在右侧,下方显示余额与一行峰谷信息、细进度条。原有简洁、标准和紧凑布局保留;隐藏组件、拖动排序和单项显示继续生效。首次更新提供一次介绍,关闭或选用后会保存记录。
28
+
29
+ 检测到当前宿主启用了 `dsh-our-free-model` 后,“价格 → 按模型设置”提供“从此插件调用的所有模型按免费计算”开关,默认保持原计价。开启后,只对 `our-free-model` 和 `our-free-model-region` 两个实际渠道后续调用使用零单价,包括该插件的账号渠道;Token 照常记录,其他提供方与保存过的历史价格不变。关闭可恢复普通匹配与自定义计价。
30
+
31
+ Codex 的侧栏和输入区显示开关可以同时开启必要的额度查询,查询总开关也可直接修改;保存和重载保持一致。订阅插件已启用但查询关闭时,侧栏提供启用入口。设置页 Codex 与其他页签使用一致的内边距、高度和中线。
32
+
33
+ Go 的悬浮详情列出 5 小时、周、月三个窗口的用量和重置时间;未知额度显示“—”,0% 保留为真实数值。峰价提醒继续使用浏览器顶层,增加页面级后备挂载和低高度窗口滚动,确保“知道了”按钮可操作。
34
+
35
+ `billion-context` 提醒点击“知道了”后,将对应状态与版本的确认记录保存到账本。新增“不再弹出此提醒”,也可在“费用 → 显示 → 兼容提醒”关闭或恢复弹窗。关闭不影响兼容检测和页面中的状态说明;记录保留最近 32 个不同提醒。保存失败会显示错误并允许重试。
36
+
37
+ 千问 CLI 普通查询保留 15 秒超时,订阅兜底查询单独使用 60 秒;仍支持调用方显式指定超时。新提示说明 CLI 的订阅查询可能超过 30 秒,并给出终端检查命令。感谢 @forkhala 在 [#349](https://github.com/Han-1413141/dsh-cost-meter/issues/349)、[#350](https://github.com/Han-1413141/dsh-cost-meter/issues/350) 提供计时、重启与账本对照复现,感谢 @orshih6 在 [PR #351](https://github.com/Han-1413141/dsh-cost-meter/pull/351) 提供千问分命令超时实现和测试。
38
+
39
+ 更新后完全退出 DSH(包括托盘)再打开。
40
+
41
+ ## English
42
+
43
+ ### Distinguish legacy and new DeepSeek search
44
+
45
+ The plugin reads DSH’s `web.searchProvider` and `web.fetchProvider`, snapshots the selection at call start, and confirms the version from the actual endpoint. Legacy Messages search retains its real model-token charges. New standalone Search/Fetch calls cost CNY 5 per 1,000 successful requests: HTTP 200 with nonempty results or page content. Result count does not multiply the fee.
46
+
47
+ Observed successful server-side searches are free of request fees until November 1, 2026 at 00:00 Beijing time, then cost CNY 0.005 per request. Missing or failed calls do not receive invented fees. Local HTTP fetching has no official API request charge. Historical versions, rates and exchange rates remain attached to the original calls. See the [official rules](https://api-docs.deepseek.com/guides/search/).
48
+
49
+ ### Today: cost, tokens or both
50
+
51
+ Select Today’s usage under Cost → Display and use its separate cost and token switches. Both values align to the right and wrap in narrow sidebars. Each preview sub-item has its own outline and focuses the matching control.
52
+
53
+ ### Drag sidebar components
54
+
55
+ Drag the left handle in Display’s preview or the main sidebar, or focus a handle and use arrow keys. Each plan and gateway card can move independently; Go and Budget use separate cards. Order saves automatically and survives layout changes, hiding and restart. A failed save retains the main sidebar’s previous order.
56
+
57
+ ### Combined sidebar, free-model billing and persistent reminders
58
+
59
+ Choose Combined card under Cost → Display → Sidebar layout. Today’s tokens and cost share a row, followed by balance and a thin pricing-period progress bar. Existing layouts, visibility controls and drag ordering remain available; the introductory dialog is shown once.
60
+
61
+ When the active host enables `dsh-our-free-model`, Pricing’s per-model settings offer an optional zero-price mode for future calls through `our-free-model` and `our-free-model-region`, including account channels. Tokens remain recorded. Other providers and stored historical prices keep their billing rules.
62
+
63
+ Codex visibility can enable quota queries, and its explicit query switch persists correctly. Disabled queries have a sidebar entry when the subscription plugin is active. Tabs share the same alignment and padding. Go tooltips show 5-hour, weekly and monthly usage and reset times. Peak reminders use the browser top layer, a body-level fallback and viewport-limited scrolling.
64
+
65
+ Billion-context acknowledgements now persist in the ledger, with a Do not show this reminder again action and a Display preference. Detection and status remain available when popups are muted. Qianwen keeps a 15-second summary timeout and uses 60 seconds for subscription fallback; errors identify slow CLI responses. Credits: @forkhala for [#349](https://github.com/Han-1413141/dsh-cost-meter/issues/349) and [#350](https://github.com/Han-1413141/dsh-cost-meter/issues/350), and @orshih6 for the timeout implementation and tests in [#351](https://github.com/Han-1413141/dsh-cost-meter/pull/351).
66
+
67
+ Validation uses pinned official provider sources, real DSH services and local synthetic HTTP responses, plus browser drag, layout, persistence and failure checks. Fully exit DSH, including its tray process, and reopen after updating.
@@ -1,24 +1,24 @@
1
- # v1.9.17
2
-
3
- ## 中文
4
-
5
- - 主页侧栏恢复普通展示,移除六点拖动手柄、额外左侧留白和保存提示;拖动与方向键排序仅保留在“费用 → 显示”的预览中。
6
- - 修复网关卡片拖动遗漏来源 ID 导致排序保存失败的问题;无效排序标识在提交前过滤,保存失败后仍可继续修改组件显示。
7
- - “侧栏布局”默认展开,切换组件时保持用户的展开选择;四种布局缩略图在窄面板中排为两列。
8
- - 合并卡片使用对称内边距和紧凑行高,统一简洁卡片的今日行背景;移除拖动造成的多余空间,三行卡片不再出现内部滚动条。
9
- - `dsh-our-free-model` 免费计费选项改为同一行的开关与文字,说明缩短;仅该插件后续调用记为免费,Token、历史费用与其他渠道规则不变。
10
- - 修复皮肤隐藏更新公告却留下模态锁定的问题:为公告补齐 dialog 语义与显示样式,无法显示时关闭模态,避免锁住整页。感谢 [@SherUnlocked-4869](https://github.com/SherUnlocked-4869) 在 [#355](https://github.com/Han-1413141/dsh-cost-meter/issues/355) 提供复现和定位。
11
- - 纳入 [@LetterXbox](https://github.com/LetterXbox) 在 [PR #358](https://github.com/Han-1413141/dsh-cost-meter/pull/358) 提供的 Ollama Cloud 快照模型日历修复,问题来源 [#356](https://github.com/Han-1413141/dsh-cost-meter/issues/356)。带标签模型仍需已有价格或手动映射,历史金额保留原规则。
12
-
13
- 更新后完全退出并重启 DSH,使宿主与界面同时加载新版本。原有组件显示开关和已保存顺序继续生效。
14
-
15
- ## English
16
-
17
- - Keep drag and keyboard reordering inside Display settings. The home sidebar no longer adds handles, padding or save-status nodes.
18
- - Preserve gateway source IDs when ordering cards; a failed save no longer blocks subsequent display changes. Sidebar layout choices start expanded.
19
- - Balance combined-card spacing, share the Simple card background with its Today row, and avoid an inner scrollbar for the three-row card.
20
- - Align the free-model checkbox with its label and shorten the explanation without changing billing behavior.
21
- - Keep update guides visible under skin dialog rules and close an invisible modal instead of blocking DSH (#355, reported and diagnosed by @SherUnlocked-4869).
22
- - Include @LetterXbox’s reviewed PR #358: configured Ollama Cloud snapshot models use its own calendar; historical prices are preserved and automatic price matching is unchanged.
23
-
24
- Fully quit and restart DSH after updating so the host and UI load the same version. Existing visibility preferences and saved order are retained.
1
+ # v1.9.17
2
+
3
+ ## 中文
4
+
5
+ - 主页侧栏恢复普通展示,移除六点拖动手柄、额外左侧留白和保存提示;拖动与方向键排序仅保留在“费用 → 显示”的预览中。
6
+ - 修复网关卡片拖动遗漏来源 ID 导致排序保存失败的问题;无效排序标识在提交前过滤,保存失败后仍可继续修改组件显示。
7
+ - “侧栏布局”默认展开,切换组件时保持用户的展开选择;四种布局缩略图在窄面板中排为两列。
8
+ - 合并卡片使用对称内边距和紧凑行高,统一简洁卡片的今日行背景;移除拖动造成的多余空间,三行卡片不再出现内部滚动条。
9
+ - `dsh-our-free-model` 免费计费选项改为同一行的开关与文字,说明缩短;仅该插件后续调用记为免费,Token、历史费用与其他渠道规则不变。
10
+ - 修复皮肤隐藏更新公告却留下模态锁定的问题:为公告补齐 dialog 语义与显示样式,无法显示时关闭模态,避免锁住整页。感谢 [@SherUnlocked-4869](https://github.com/SherUnlocked-4869) 在 [#355](https://github.com/Han-1413141/dsh-cost-meter/issues/355) 提供复现和定位。
11
+ - 纳入 [@LetterXbox](https://github.com/LetterXbox) 在 [PR #358](https://github.com/Han-1413141/dsh-cost-meter/pull/358) 提供的 Ollama Cloud 快照模型日历修复,问题来源 [#356](https://github.com/Han-1413141/dsh-cost-meter/issues/356)。带标签模型仍需已有价格或手动映射,历史金额保留原规则。
12
+
13
+ 更新后完全退出并重启 DSH,使宿主与界面同时加载新版本。原有组件显示开关和已保存顺序继续生效。
14
+
15
+ ## English
16
+
17
+ - Keep drag and keyboard reordering inside Display settings. The home sidebar no longer adds handles, padding or save-status nodes.
18
+ - Preserve gateway source IDs when ordering cards; a failed save no longer blocks subsequent display changes. Sidebar layout choices start expanded.
19
+ - Balance combined-card spacing, share the Simple card background with its Today row, and avoid an inner scrollbar for the three-row card.
20
+ - Align the free-model checkbox with its label and shorten the explanation without changing billing behavior.
21
+ - Keep update guides visible under skin dialog rules and close an invisible modal instead of blocking DSH (#355, reported and diagnosed by @SherUnlocked-4869).
22
+ - Include @LetterXbox’s reviewed PR #358: configured Ollama Cloud snapshot models use its own calendar; historical prices are preserved and automatic price matching is unchanged.
23
+
24
+ Fully quit and restart DSH after updating so the host and UI load the same version. Existing visibility preferences and saved order are retained.
@@ -1,19 +1,19 @@
1
- # v1.9.19
2
-
3
- ## 中文
4
-
5
- - 统一侧栏峰谷条、余额、今日用量、模型费用、预算、Coding Plan、Codex 与网关额度的内容边线;标题靠左,金额与比例靠右,模型卡片展开箭头移到标题后。
6
- - 标准、紧凑、简洁和合并卡片沿用各自的留白,兼容“今日消费与余额同行”;长标题在窄侧栏内换行或省略,避免挤出金额。
7
- - 显示设置顶部缩小留白,“使用示例数据”并入区域切换工具栏;透明度与 billion-context 兼容提醒移入右侧默认收起的“通用设置”。侧栏布局继续默认展开。
8
- - 简洁卡片隐藏右侧滚动条和上下箭头,内容较多时仍可通过滚轮、触控和键盘滚动查看。
9
-
10
- 更新后完全退出并重启 DSH。
11
-
12
- ## English
13
-
14
- - Align sidebar content edges across peak indicators, balances, daily usage, model costs, budgets, Coding Plans, Codex and gateway quotas. Place the model disclosure arrow after its heading and keep amounts right-aligned.
15
- - Preserve spacing in Standard, Compact, Simple and Combined layouts, including the optional inline today/balance row. Keep long headings inside narrow sidebars.
16
- - Bring the Display preview closer to the tabs. Put example data in the preview toolbar and move transparency and compatibility notices into the collapsed General settings. Sidebar layout choices remain expanded by default.
17
- - Hide the Simple card scrollbar and its arrow buttons while preserving wheel, touch and keyboard scrolling.
18
-
19
- Fully quit and restart DSH after updating.
1
+ # v1.9.19
2
+
3
+ ## 中文
4
+
5
+ - 统一侧栏峰谷条、余额、今日用量、模型费用、预算、Coding Plan、Codex 与网关额度的内容边线;标题靠左,金额与比例靠右,模型卡片展开箭头移到标题后。
6
+ - 标准、紧凑、简洁和合并卡片沿用各自的留白,兼容“今日消费与余额同行”;长标题在窄侧栏内换行或省略,避免挤出金额。
7
+ - 显示设置顶部缩小留白,“使用示例数据”并入区域切换工具栏;透明度与 billion-context 兼容提醒移入右侧默认收起的“通用设置”。侧栏布局继续默认展开。
8
+ - 简洁卡片隐藏右侧滚动条和上下箭头,内容较多时仍可通过滚轮、触控和键盘滚动查看。
9
+
10
+ 更新后完全退出并重启 DSH。
11
+
12
+ ## English
13
+
14
+ - Align sidebar content edges across peak indicators, balances, daily usage, model costs, budgets, Coding Plans, Codex and gateway quotas. Place the model disclosure arrow after its heading and keep amounts right-aligned.
15
+ - Preserve spacing in Standard, Compact, Simple and Combined layouts, including the optional inline today/balance row. Keep long headings inside narrow sidebars.
16
+ - Bring the Display preview closer to the tabs. Put example data in the preview toolbar and move transparency and compatibility notices into the collapsed General settings. Sidebar layout choices remain expanded by default.
17
+ - Hide the Simple card scrollbar and its arrow buttons while preserving wheel, touch and keyboard scrolling.
18
+
19
+ Fully quit and restart DSH after updating.
@@ -1,15 +1,15 @@
1
- # v1.9.21
2
-
3
- ## 中文
4
-
5
- - 修复侧栏合并卡片、简洁卡片和模型费用等组件未跟随透明度设置的问题。开启“跟随皮肤透明度”后,侧栏卡片不再叠加独立底色,关闭后恢复原样。
6
- - 覆盖标准、紧凑、简洁和合并四种布局,以及今日与余额同行、余额进度条和套餐卡片;弹窗继续保留至少 90% 不透明度。
7
-
8
- 在“费用 → 显示 → 通用设置”开启“跟随皮肤透明度”。更新后完全退出并重启 DSH。
9
-
10
- ## English
11
-
12
- - Fix sidebar cards that kept a solid background with Follow skin transparency enabled, including Combined, Simple and model-cost cards. Disabling the option restores the original surfaces.
13
- - Cover all four sidebar layouts, inline today/balance rows, balance progress and plan cards. Floating dialogs retain at least 90% opacity.
14
-
15
- Enable Follow skin transparency in Cost → Display → General. Fully quit and restart DSH after updating.
1
+ # v1.9.21
2
+
3
+ ## 中文
4
+
5
+ - 修复侧栏合并卡片、简洁卡片和模型费用等组件未跟随透明度设置的问题。开启“跟随皮肤透明度”后,侧栏卡片不再叠加独立底色,关闭后恢复原样。
6
+ - 覆盖标准、紧凑、简洁和合并四种布局,以及今日与余额同行、余额进度条和套餐卡片;弹窗继续保留至少 90% 不透明度。
7
+
8
+ 在“费用 → 显示 → 通用设置”开启“跟随皮肤透明度”。更新后完全退出并重启 DSH。
9
+
10
+ ## English
11
+
12
+ - Fix sidebar cards that kept a solid background with Follow skin transparency enabled, including Combined, Simple and model-cost cards. Disabling the option restores the original surfaces.
13
+ - Cover all four sidebar layouts, inline today/balance rows, balance progress and plan cards. Floating dialogs retain at least 90% opacity.
14
+
15
+ Enable Follow skin transparency in Cost → Display → General. Fully quit and restart DSH after updating.
@@ -0,0 +1,91 @@
1
+ # v1.9.28
2
+
3
+ ## 中文
4
+
5
+ 本版修复代码审查确认的 9 个问题,完成 6 项计费、存储、网络与测试优化,并保留 v1.9.27 已发布的 pi-ai Codex、billion-context、Antigravity 与 OpenRouter 冷却修复。
6
+
7
+ ### 9 项问题修复
8
+
9
+ | 编号 | 问题 | 本版处理 |
10
+ | --- | --- | --- |
11
+ | F1 | 单个合法 zstd 帧超过 8 MiB 时,历史记录被跳过 | 区分未完整帧与无效帧,继续读取跨块压缩帧;保留截断尾部处理。 |
12
+ | F2 | 解压预算计算压缩字节,未限制实际输出 | 按实际解压字节执行预算;普通 JSONL 同样受字节、行长和事件数限制。大型文本块跳过后继续读取用量记录。 |
13
+ | F3 | 并发请求乱序结束时,独立调用被错误去重 | 按请求时刻的绝对间隔匹配,保留有界候选;实时入账、历史重放和宿主投影采用一致判定。 |
14
+ | F4 | billion-context 已完成、但没有调用明细时漏记宿主用量 | 独立读取完成的 stream,补记一次有效宿主用量;重启、重复导入和日志归档后仍能恢复,且不重复计费。 |
15
+ | F5 | 推理 Token 在部分总量统计中被重复相加 | 统一总量为输入、输出、缓存读写之和;推理保留为输出细分,不额外叠加到 Token 总数。已有独立推理单价规则保持有效。 |
16
+ | F6 | 周/月套餐统计忽略供应商实际重置周期 | 优先采用接口起点、窗口时长和重置时刻,区分固定与滚动窗口;小时桶保留 35 天,覆盖周期首日的部分时段。缺少窗口信息时才回退自然周期。 |
17
+ | F7 | 已有发布标签可能指向旧代码 | 发布前刷新并核对 master、本地标签、远端标签和 HEAD;提交不符时终止。远端缺标签时推送已核验标签,创建 Release 必须使用已存在的标签。 |
18
+ | F8 | 网关把空值或布尔值当作 0% 已用 | 只接收有限数值或非空数字字符串;缺少比例但明确耗尽时显示 100% 已用,其他缺失数据保持未知。 |
19
+ | F9 | 生成发布说明被自身写入操作拦截 | `--regen-notes` 独立生成素材,允许在开发分支使用;正式发布只读取已提交的文案,仍要求版本一致且工作树干净。 |
20
+
21
+ ### 6 项优化
22
+
23
+ | 编号 | 优化 | 实现与边界 |
24
+ | --- | --- | --- |
25
+ | O1 | 减少保存账本时的主线程停顿 | 日常保存交给串行工作线程,继续使用跨进程锁和原子替换;显式保存及卸载等待同一事务。文件内保存有界提交回执,处理“已写入但确认消息丢失”,避免重复入账。 |
26
+ | O2 | 分离套餐归属与额度查询开关 | 首次读取旧配置时保存既有自动套餐集合;随后开关查询或显示不再改变历史 API/Plan 归属。需要改变归属时,显式修改提供商或模型的计费分类。 |
27
+ | O3 | 辅助日志轮转、归档与增量发现 | billion-context 调用日志和原生搜索日志达到 8 MiB 后轮转。只压缩封存且至少 5 分钟未变化的分段,每小时执行受限归档;历史读取透明支持 gzip。变更标记、文件游标和定期清单共同发现增量。stream/分组元数据保留,历史文件不自动删除。 |
28
+ | O4 | 统一网络读取边界 | 余额、套餐、汇率和价格页面复用有界流式读取、解压输出限制、正文超时及取消清理;不依赖 `Content-Length` 判断实际体积。各接口保留相应大小限制。 |
29
+ | O5 | 集中计费计算并补充边界回归 | 抽出共享 Token 总量函数;新增日志、乱序去重、零明细补记、重启恢复、跨宿主后台保存、归档及发布命令的行为测试。后台预热与去重缓存设置容量上限。 |
30
+ | O6 | 对齐网络声明与实现 | 补充 `chatgpt.com` 权限声明,说明 Codex 额度查询及 MiniMax 用户配置的可信 HTTPS 来源;自定义来源仍拒绝重定向。 |
31
+
32
+ ### 保留 v1.9.27 的兼容修复
33
+
34
+ - **pi-ai Codex:**直接读取 DSH 内置 pi-ai OAuth 登录的额度,自动回退并兼容只有周额度的账号;超时后释放等待,凭据更新后可重试。
35
+ - **重载与卸载:**直接重载宿主入口后恢复 RPC 和 billion-context 观察器,卸载时取消额度请求。
36
+ - **billion-context:**代理用量缺失但宿主有效时按流补记,保留独立压缩费用;修复旧版错误覆盖状态,无法明确拆分的混合用量保留原记录并提示核对。兼容基线更新至 0.1.204。
37
+ - **Codex 连接插件:**验证 dsh-codex-subscription 3.1.4 的实际发布包。
38
+ - **Antigravity:**过滤占位项目 ID,逐模型保留 Gemini 额度和重置时间,取消后停止回退。
39
+ - **既有布局修复:**今日消费金额与余额首行对齐,WorkBuddy 紧凑布局标题横跨整张卡片,避免余额被截断。
40
+
41
+ ### 验证与性能
42
+
43
+ - 完整回归通过;覆盖真实 DSH 宿主会话读取、RPC 生命周期、8 个并发账本进程、重启及提交确认丢失恢复。
44
+ - 本机 Windows / Node.js 24 的 10,000 行合成账本后台保存样本:主线程最大延迟约 **40 ms**,完整事务约 **251 ms**;审查时的旧同步保存样本约 **421 ms**。两者是单次合成测量,不代表生产环境平均值。
45
+ - 独立浏览器测试:冷缓存、无悬停预取、4,800 次调用、3 个会话、两层子代理,浏览器 CPU 限速 4 倍;弹窗约 **115 ms** 出现,约 **760 ms** 显示完整真实统计,未发起外部请求。
46
+ - 测试使用临时账本及模拟上游响应,没有查询真实供应商账号。纯外观调整不属于本次审查范围。
47
+
48
+ ### 升级与历史数据
49
+
50
+ 通过插件市场更新,或在终端运行:
51
+
52
+ ```powershell
53
+ dsh plugin --profile web add dsh-cost-meter@1.9.28
54
+ ```
55
+
56
+ 更新后完全退出并重启 DSH。首次启动会利用现存会话记录恢复套餐小时统计,并清理旧估算样本;没有可读历史时保留恢复状态等待后续读取。此恢复不按新单价重算历史金额。小时桶按小时近似,窗口边界不足一小时仍存在粒度误差;旧版已经裁剪且没有可回放日志的数据无法凭空补全。
57
+
58
+ ### 贡献署名
59
+
60
+ - [@Sieuno](https://github.com/Sieuno):在 [#382](https://github.com/Han-1413141/dsh-cost-meter/issues/382) 独立复现 billion-context 用量漏记。
61
+ - [@Oct1AtJoe](https://github.com/Oct1AtJoe):在 [PR #381](https://github.com/Han-1413141/dsh-cost-meter/pull/381) 提交 Antigravity 项目与 Gemini 额度支持代码;合并前补充审查修正。
62
+ - [@SternChiri](https://github.com/SternChiri):在 [#377](https://github.com/Han-1413141/dsh-cost-meter/issues/377) 提出对齐反馈,触发 WorkBuddy 紧凑布局检查。报告者已撤回原先的“文字左对齐”定位;最终修复依据浏览器中实际的标题宽度与余额位置。
63
+ - [#379](https://github.com/Han-1413141/dsh-cost-meter/issues/379)、[#380](https://github.com/Han-1413141/dsh-cost-meter/issues/380) 为自动兼容监控记录,对应发布包已纳入验证。
64
+
65
+ ## English
66
+
67
+ This release fixes all nine defects from the code review and implements six billing, persistence, network and test improvements. It retains the pi-ai Codex, billion-context, Antigravity and OpenRouter cooldown changes published in v1.9.27.
68
+
69
+ ### Correctness
70
+
71
+ - Read complete zstd frames spanning multiple input chunks. Bound actual decompressed bytes, ordinary JSONL, line size and event counts; skip large packed text blocks without dropping later usage.
72
+ - Deduplicate out-of-order requests by absolute request-time distance, retaining bounded candidates across live billing, replay and host projection.
73
+ - Recover valid host usage once per completed billion-context stream even when the proxy journal has no call rows; retain restart and archived-history recovery.
74
+ - Count reasoning as an output breakdown rather than adding it twice to token totals. Use provider reset times and explicit durations for quota estimates, with a 35-day hourly history.
75
+ - Reject null, empty and boolean gateway percentages. Preserve explicit quota-exhausted signals.
76
+ - Separate release-note generation from publication. Verify local and remote tags against the release commit; never move an existing mismatched version tag.
77
+
78
+ ### Persistence and integration
79
+
80
+ - Save routine ledger transactions in a worker while retaining atomic replacement, cross-process locking, shutdown barriers and recovery when a commit acknowledgement is lost.
81
+ - Persist the automatic Plan provider set on configuration migration. Quota query/display switches no longer reclassify historical API spending; explicit provider/model billing settings control attribution.
82
+ - Rotate billion-context and native-search journals at 8 MiB. Compress only sealed, unchanged segments, preserve all history, and combine change markers, cursors and periodic inventory checks. Stream/group metadata remains available; no history is automatically deleted.
83
+ - Share bounded HTTP body reading, decoded-output limits, timeouts and cancellation across balance, quota, exchange-rate and pricing requests. Centralize token totals, bound caches and add behavior-based regression tests.
84
+ - Document actual MiniMax custom HTTPS origins and declare `chatgpt.com` for native Codex quota queries.
85
+ - Read native DSH pi-ai OAuth quotas, restore observers/RPC after direct reload, preserve per-model Antigravity quotas, and ship the pending Today/Balance and compact WorkBuddy alignment fixes. Contributor links are listed above.
86
+
87
+ ### Validation and upgrade
88
+
89
+ The full regression suite passed, including real-host session/RPC lifecycles, concurrent ledger writers, restart, lost-acknowledgement recovery and archived journals. A local 10,000-row synthetic background save recorded about 40 ms maximum main-loop delay and 251 ms total duration. A separate cold-browser test with 4,800 calls and nested subagents displayed full totals in 760 ms under 4× CPU throttling. These are individual synthetic measurements, not production averages or universal latency guarantees.
90
+
91
+ Update with the command above and fully restart DSH. Startup rebuilds derived quota-hour statistics from available session records without repricing historical charges. Hour-boundary estimates retain hourly granularity, and missing historical source data cannot be reconstructed. Tests used temporary ledgers and simulated upstream responses, without querying live supplier accounts.