dsh-cost-meter 1.9.24 → 1.9.25

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.24-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
9
+ [![version](https://img.shields.io/badge/version-1.9.25-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.24** reads CN/global credits from dsh-connect-workbuddy and recognizes its international route as part of the WorkBuddy Plan family.
19
+ **v1.9.25** adds WorkBuddy account selection and observed credit statistics, fixes legacy settings saves, and keeps update notices above the conversation.
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.24](docs/update-notes-1.9.24.md#english). Fully restart DSH after updating.
23
+ Release notes: [v1.9.25](docs/update-notes-1.9.25.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.24`** — 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.25`** — review the script before running):
356
356
 
357
357
  ```powershell
358
- irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.24/install.ps1 | iex
358
+ irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.25/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.24
364
+ dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.25
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.24.tar.gz
370
+ dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.25.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.24
435
+ - dsh-cost-meter@1.9.25
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.24-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
9
+ [![version](https://img.shields.io/badge/version-1.9.25-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.24** 新增 dsh-connect-workbuddy 积分读取,支持国内版与国际版,并沿用 WorkBuddy 套餐分类。
19
+ **v1.9.25** 新增 WorkBuddy 账号选择与积分变化统计,修复旧配置无法保存和引导弹窗被会话遮挡的问题。
20
20
 
21
21
  **宿主要求:DSH 0.2.0 起支持** · 适配目标 **0.2.1-rc.2**(npm `next`)。完整声明、历史记录与安装排障见下方展开项。
22
22
 
23
- 更新说明:[v1.9.24](docs/update-notes-1.9.24.md#中文)。更新后完全重启 DSH。
23
+ 更新说明:[v1.9.25](docs/update-notes-1.9.25.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.24`**,建议先下载审阅再运行):
355
+ **PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.25`**,建议先下载审阅再运行):
356
356
 
357
357
  ```powershell
358
- irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.24/install.ps1 | iex
358
+ irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.25/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.24
364
+ dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.25
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.24.tar.gz
370
+ dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.25.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.24
435
+ - dsh-cost-meter@1.9.25
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 上实测可用。
@@ -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,54 @@
1
+ # v1.9.25
2
+
3
+ ## 中文
4
+
5
+ ### WorkBuddy 多账号积分统计
6
+
7
+ 在 **设置 → 费用 → 额度 → WorkBuddy 积分** 中展开卡片,选择“当前账号(各区域)”“全部账号”或“勾选账号”。国内与国际账号分别列出,显示余额,以及今日、近 7 天和启用以来观测到的积分减少。
8
+
9
+ - 对接 `dsh-connect-workbuddy` 的独立 `account-credits` 接口,不再依赖复杂的 usage 页面完整返回。宿主内的读取直连当前 DSH 回环端口,避免全局网络代理影响本地查询。
10
+ - 保留 `dsh-workbuddy-connect` 和旧版单账号接口;一个接口失败会继续尝试其他可用接口。旧接口没有多账号数据时明确提示,不把单账号余额冒充全部账号余额。
11
+ - 第一次成功读取建立统计起点。充值、赠送导致的余额增加不计入减少;积分到期、两次读取之间的充值和消耗会影响结果。**观测减少不是官方逐笔扣费账单,积分不折算为人民币。**
12
+ - 查询失败显示未知,部分区域失败时不显示完整总额。每个账号分别保存统计,不因切换筛选而清空;本地只保存账号标识、余额和每日变化,不保存账号名称或登录凭据。
13
+ - 多账号接口只返回积分余额,没有积分包到期时间,因此多账号卡片不显示到期日期;旧单账号接口有到期信息时仍显示。
14
+ - 卡片同时显示全部 WorkBuddy 调用的今日、累计 API 等值费用。DSH 调用记录没有账号标识,因此这项不随账号筛选,也不把等值金额当作实际现金支出。
15
+
16
+ 核对了 `dsh-connect-workbuddy@4.14.1` 实际发布包的只读接口,测试使用合成账号;没有读取、解密或导出真实登录凭据,也没有发起模型探测、签到或账号切换。
17
+
18
+ ### 设置保存与引导弹窗
19
+
20
+ - 修复旧配置缺少新增字段导致整份设置无法保存的问题。补齐缺失设置,同时保留显式非法值校验、已有价格和历史金额。
21
+ - 前端遇到升级后仍在运行的旧宿主时,不再凭空添加 `sidebarOrder`、`sidebarSummaryPromptSeen` 后提交给旧接口;合并卡片和其他显示设置可独立保存。更新后仍建议完全退出并重启 DSH,让前后端都加载同一版本。
22
+ - 峰谷进度和合并侧栏引导挂到页面顶层,保留非模态行为。解决被侧栏层级限制、被会话区遮住而无法点击的问题;宿主页面继续可操作。
23
+ - 套餐设置按需加载,主界面代码减少约 7 KB,为新增界面留出空间。
24
+ - 本轮费用、费用分项和逐次调用金额遵循“小数位数”设置,不再强制显示至少 8 位;单价保留核算精度,修改显示精度不会重算账本。
25
+
26
+ 微小金额仍保留必要精度,避免把搜索等实际费用显示成零。
27
+
28
+ 感谢:[@picklerick422](https://github.com/picklerick422) 在 [#371](https://github.com/Han-1413141/dsh-cost-meter/issues/371) 提供弹窗层级定位与 Portal 建议;[@hua0424](https://github.com/hua0424) 在 [#372](https://github.com/Han-1413141/dsh-cost-meter/issues/372) 报告升级后的未知配置项和显示开关问题;[@paperclip476-sys](https://github.com/paperclip476-sys) 在 [#373](https://github.com/Han-1413141/dsh-cost-meter/issues/373) 提供旧配置的最小复现和默认值补齐建议。
29
+
30
+ 感谢 [@mzjqwq](https://github.com/mzjqwq) 在 [#374](https://github.com/Han-1413141/dsh-cost-meter/issues/374) 报告会话金额不遵循小数位数设置的问题。
31
+
32
+ ## English
33
+
34
+ ### WorkBuddy account statistics
35
+
36
+ Expand **Settings → Cost → Quota → WorkBuddy** and choose current accounts per region, all accounts, or individual accounts. The card shows balances and observed credit decreases today, over the last seven days, and since recording began.
37
+
38
+ The integration reads dsh-connect-workbuddy's dedicated account-credits routes through the running DSH loopback port, independently of the host's global fetch proxy. Original dsh-workbuddy-connect and legacy single-account routes remain supported. Missing account data stays unknown; partial regions never appear as a complete total.
39
+
40
+ Recording starts with the first successful observation. Grants are not counted as decreases, but credit expiry and activity between observations affect the result. **These observations are not official transaction charges and are not converted to currency.** Per-account history survives selection changes and stores no names or credentials. The card also shows API-equivalent values for all WorkBuddy calls; those values cannot be filtered by account because DSH call records do not identify the account used.
41
+
42
+ The multi-account endpoint provides balances without package expiry dates. Expiry remains available only when supplied by a legacy single-account endpoint.
43
+
44
+ The published dsh-connect-workbuddy 4.14.1 routes were exercised with synthetic accounts. No real credentials, model probes, check-ins or account switching were used.
45
+
46
+ ### Settings and notices
47
+
48
+ Fill missing settings before validating legacy configurations, without accepting explicit invalid values or repopulating historical prices. Avoid sending unsupported sidebar keys to older running hosts. Mount both update notices directly under the document body so the sidebar stacking context cannot trap them behind the composer, while keeping the host interactive. Load subscription settings on demand to reduce the main client bundle.
49
+
50
+ Fully exit and restart DSH after updating so both client and host load the same version. Reporter credits and original reports are linked above.
51
+
52
+ Turn totals, cost breakdowns and individual call amounts now follow the decimal-place setting instead of forcing at least eight places. Unit prices retain calculation precision; changing display precision does not recalculate the ledger.
53
+
54
+ Tiny charges retain extra precision so small search costs do not appear as zero.