dsh-cost-meter 1.9.54 → 1.9.56
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 +11 -15
- package/README.zh-CN.md +11 -15
- package/docs/billing-statistics.md +4 -4
- package/docs/update-notes-1.9.55.md +19 -0
- package/docs/update-notes-1.9.56.md +21 -0
- package/lib/client.display.js +3 -3
- package/lib/client.js +8 -8
- package/lib/ledger-writer-worker.js +1 -1
- package/lib/store.js +2 -2
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**Session cost tracking plugin for the DeepSeek Harness web GUI (bilingual UI)**
|
|
8
8
|
|
|
9
|
-
[](https://github.com/Han-1413141/dsh-cost-meter)
|
|
10
10
|
[](https://www.npmjs.com/package/dsh-cost-meter)
|
|
11
11
|
[](https://dshfind.com/zh/plugins/Han-1413141/dsh-cost-meter?ref=badge)
|
|
12
12
|
[](LICENSE)
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
|
-
**v1.9.
|
|
19
|
+
**v1.9.56** keeps fee reads inside the two-second ledger save window, combining frequent updates into fewer background transactions while showing current usage.
|
|
20
20
|
|
|
21
21
|
**Host floor: DSH 0.2.0** · Adaptation target: **0.2.2-alpha.3**. Expand the compatibility notes below for exact declarations, host records and troubleshooting.
|
|
22
22
|
|
|
23
|
-
Release notes: [v1.9.
|
|
23
|
+
Release notes: [v1.9.56](docs/update-notes-1.9.56.md#english). Fully restart DSH after updating.
|
|
24
24
|
|
|
25
25
|

|
|
26
26
|
|
|
@@ -59,7 +59,7 @@ Community and feedback: [Join the WeChat group →](#community). The WeChat grou
|
|
|
59
59
|
| OpenRouter model prices | Model picker / Settings → Cost → Prices | Hover a model for token rates and update time, or search the full catalog in Settings; automatic foreground refresh, price-change markers in the table and official model links. No API key or inference charges. [Guide](docs/openrouter-prices.md#english) |
|
|
60
60
|
| Cost statistics | Below the conversation input / title bar / Settings → Cost → Cost statistics | Day, week, month, all retained and custom periods; API/Plan split, trends, model/conversation rankings and per-call costs. [Guide](docs/billing-statistics.md#english); statistics requires DSH’s asynchronous module loader |
|
|
61
61
|
| Per-model cost card | Sidebar / composer dock (optional) | Disabled by default; inline Top-N, Other totals, shares and optional tokens, Today / Last 90 days, remembered expansion and a Top-1 chip. See the [guide](docs/model-cost-card.md#english) |
|
|
62
|
-
| Per-conversation cost |
|
|
62
|
+
| Per-conversation cost | Composer footer / session title bar | Live accumulated cost + input/cache/output tokens; the composer footer shows cache hit rate before Input (cache reads / all input, including cache writes); Display settings can show only amounts below the composer, with the full line retained on hover; saved composer/header/off positions remain available, and the title bar keeps its compact “Cost details” button |
|
|
63
63
|
| Official balance | Sidebar top / Settings page (configurable) | Total / granted / topped-up balance, auto-refresh + manual refresh; optional three-segment progress bar (blue/orange/gray), whose today segment only counts official-channel spend (coding plans / custom providers excluded) |
|
|
64
64
|
| Custom provider balance | Sidebar / Settings page (configurable) | Configurable HTTP balance lookup (e.g. LiteLLM); bilingual labels, currency, extract rules (dot path / number / add / subtract / divide — use divide for NewApi-style quota endpoints, see [example](#custom-provider-balance-example-newapi-template)); collapsible panel alongside Coding Plan quotas |
|
|
65
65
|
| OpenCode Go quota | Sidebar / Settings / bottom-right dock (configurable) | Rolling-5h / weekly / monthly usage percent and reset times, each window toggleable independently, budget used % can show alongside; key auto-discovered (dedicated ref / official Go route apiKeyEnv / env / opencode login) or entered manually |
|
|
@@ -283,13 +283,9 @@ Real captures from an actual DSH sidebar of the period strip and collapsed verti
|
|
|
283
283
|
|---|---|
|
|
284
284
|
|  |  |
|
|
285
285
|
|
|
286
|
-
**Per-conversation cost** (
|
|
286
|
+
**Per-conversation cost** (one merged row in the composer footer; the session title bar keeps only its compact “Cost details” button):
|
|
287
287
|
|
|
288
|
-
|
|
289
|
-
|---|---|
|
|
290
|
-
|  |  |
|
|
291
|
-
|
|
292
|
-
> Left: this session ¥5.5939 · input 321K · cache 119M · output 235K; right: title-bar badge “cost ¥6.1606” (real session captures)
|
|
288
|
+
The row leads with the current currency symbol, then the session amount and hit-rate/input/cache/output details; the whole row opens the details dialog, and “Amount only” condenses it to the amount segment.
|
|
293
289
|
|
|
294
290
|

|
|
295
291
|
|
|
@@ -356,22 +352,22 @@ On Node.js 20, use `npm install -g pnpm@10` instead. See [pnpm installation and
|
|
|
356
352
|
dsh plugin --profile web add dsh-cost-meter
|
|
357
353
|
```
|
|
358
354
|
|
|
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.
|
|
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.56`** — review the script before running):
|
|
360
356
|
|
|
361
357
|
```powershell
|
|
362
|
-
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.56/install.ps1 | iex
|
|
363
359
|
```
|
|
364
360
|
|
|
365
361
|
**Or a plain command line** (the machine must already have pnpm and git; also pinned to the tag):
|
|
366
362
|
|
|
367
363
|
```sh
|
|
368
|
-
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.56
|
|
369
365
|
```
|
|
370
366
|
|
|
371
367
|
Without git, use the GitHub tag archive:
|
|
372
368
|
|
|
373
369
|
```sh
|
|
374
|
-
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.56.tar.gz
|
|
375
371
|
```
|
|
376
372
|
|
|
377
373
|
After installing, **restart** `dsh web` (plugin rows, the Typert manifest and the client bundle are all scanned at startup):
|
|
@@ -436,7 +432,7 @@ Workarounds:
|
|
|
436
432
|
|
|
437
433
|
```yaml
|
|
438
434
|
minimumReleaseAgeExclude:
|
|
439
|
-
- dsh-cost-meter@1.9.
|
|
435
|
+
- dsh-cost-meter@1.9.56
|
|
440
436
|
```
|
|
441
437
|
|
|
442
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.56** 修复费用查询提前保存账本的问题,在两秒窗口内合并频繁更新,减少重复后台事务,费用继续实时显示。
|
|
20
20
|
|
|
21
21
|
**宿主要求:DSH 0.2.0 起支持** · 适配目标 **0.2.2-alpha.3**。完整声明、历史记录与安装排障见下方展开项。
|
|
22
22
|
|
|
23
|
-
更新说明:[v1.9.
|
|
23
|
+
更新说明:[v1.9.56](docs/update-notes-1.9.56.md#中文)。更新后完全重启 DSH。
|
|
24
24
|
|
|
25
25
|

|
|
26
26
|
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
| OpenRouter 模型价格 | 模型选择菜单 / 设置 → 费用 → 价格 | 悬停模型查看单价与更新时间,也可在设置中搜索完整目录;前台自动刷新,价格表标记价格变动并提供官方模型链接。无需 API Key,不产生模型使用费用。[说明](docs/openrouter-prices.md#中文) |
|
|
60
60
|
| 计费统计与明细 | 会话输入框下方 / 标题栏 / 设置 → 费用 → 计费统计 | 输入、输出、缓存、推理费用;按轮次、模型、搜索和压缩统计;日、周、月及全部记录。[说明](docs/billing-statistics.md#简体中文) |
|
|
61
61
|
| 按模型花费卡片 | 侧栏 / 右下角 dock(可配) | 默认关闭;就地展开 Top-N、其它汇总、占比和可选 Token;支持今日 / 近 90 天、展开记忆及 Top-1 角标,见[使用说明](docs/model-cost-card.md) |
|
|
62
|
-
| 本会话费用 | 输入区下方 / 会话标题栏 | 实时累计费用 + 输入/缓存/输出 token;输入区下方在“输入”前显示缓存命中率(缓存读取 /
|
|
62
|
+
| 本会话费用 | 输入区下方 / 会话标题栏 | 实时累计费用 + 输入/缓存/输出 token;输入区下方在“输入”前显示缓存命中率(缓存读取 / 含缓存写入的全部输入);显示页可开启输入区下方只显示金额,完整费用行保留在悬停提示中;保留输入区/标题栏/关闭的位置设置,标题栏继续提供紧凑「费用明细」按钮 |
|
|
63
63
|
| 官方余额 | 侧边栏顶部 / 设置页(可配) | 总余额 / 赠送 / 充值,自动刷新 + 手动刷新;可选三段进度条(蓝/橙/灰),当日段只统计官方渠道费用(不含 Coding Plan / 自定义 Provider) |
|
|
64
64
|
| 自定义 Provider 余额 | 侧边栏 / 设置页(可配) | 可配置 HTTP 查询任意 Provider 余额(LiteLLM 等);中/英名称、币种、extract 规则(点路径 / 数字常量 / add / subtract / divide,divide 适配 NewApi 等 quota 端点,见下方[示例](#自定义-provider-余额配置示例newapi-模板));与 Coding Plan 同区可折叠配置 |
|
|
65
65
|
| OpenCode Go 额度 | 侧边栏 / 设置页 / 右下角(dock,可配) | 滚动 5 小时 / 本周 / 本月用量百分比与重置时间,三档可分别开关,可同时显示预算已用%;Key 自动发现(专用引用 / 官方 Go 路由 apiKeyEnv / 环境变量 / opencode 登录态)或手动填写 |
|
|
@@ -283,13 +283,9 @@ CLIProxyAPI 网关来源卡片可勾选「只显示 Gemini 额度」,仅影响
|
|
|
283
283
|
|---|---|
|
|
284
284
|
|  |  |
|
|
285
285
|
|
|
286
|
-
**本会话费用**(
|
|
286
|
+
**本会话费用**(输入区下方单行合并;会话标题栏只保留紧凑「费用明细」按钮):
|
|
287
287
|
|
|
288
|
-
|
|
289
|
-
|---|---|
|
|
290
|
-
|  |  |
|
|
291
|
-
|
|
292
|
-
> 上图:本会话 ¥5.5939 · 输入 321K · 缓存 119M · 输出 235K;右图:标题栏徽章「费用 ¥6.1606」(真实会话截图)
|
|
288
|
+
费用行以当前货币符号开头,随后是会话金额与命中率/输入/缓存/输出分项;整行可点击打开明细,“仅显示金额”开启时只保留金额段。
|
|
293
289
|
|
|
294
290
|

|
|
295
291
|
|
|
@@ -356,22 +352,22 @@ Node.js 20 请改用 `npm install -g pnpm@10`。版本要求见 [pnpm 官方安
|
|
|
356
352
|
dsh plugin --profile web add dsh-cost-meter
|
|
357
353
|
```
|
|
358
354
|
|
|
359
|
-
**PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.
|
|
355
|
+
**PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.56`**,建议先下载审阅再运行):
|
|
360
356
|
|
|
361
357
|
```powershell
|
|
362
|
-
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.56/install.ps1 | iex
|
|
363
359
|
```
|
|
364
360
|
|
|
365
361
|
**或直接命令行**(机器上需已有 pnpm 与 git;同样固定到 tag):
|
|
366
362
|
|
|
367
363
|
```sh
|
|
368
|
-
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.56
|
|
369
365
|
```
|
|
370
366
|
|
|
371
367
|
没有 git 时可用 GitHub tag 打包直链:
|
|
372
368
|
|
|
373
369
|
```sh
|
|
374
|
-
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.56.tar.gz
|
|
375
371
|
```
|
|
376
372
|
|
|
377
373
|
安装后**重启** `dsh web`(插件行、Typert 清单与客户端 bundle 均在启动时扫描):
|
|
@@ -436,7 +432,7 @@ DSH **0.2.1-rc.1 / 0.2.1-rc.2** 宿主自带 pnpm **11.28.5**,默认启用内
|
|
|
436
432
|
|
|
437
433
|
```yaml
|
|
438
434
|
minimumReleaseAgeExclude:
|
|
439
|
-
- dsh-cost-meter@1.9.
|
|
435
|
+
- dsh-cost-meter@1.9.56
|
|
440
436
|
```
|
|
441
437
|
|
|
442
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 上实测可用。
|
|
@@ -25,7 +25,7 @@ The host prepares recently viewed conversations in the background at startup and
|
|
|
25
25
|
|
|
26
26
|
The step-cost share distribution groups many small steps into four ranges: below 0.1%, 0.1–1%, 1–5% and at least 5% of conversation costs. Each range shows step count and cumulative cost. Zero-cost and unpriced usage stay separate. Step details default to a global highest-cost-first ranking, with a trajectory-order option. Twenty rows are shown initially and more expand in place. Clicking a step opens a detail dialog. Category and agent dialogs list their steps by cost and show the selected call beside the list. Only that call’s recorded content is loaded; the close button remains visible while scrolling, and Escape returns to the underlying view. The individual-call section uses a highest-cost ranking with bars scaled to its largest call, alongside each amount and share of the whole conversation; remaining calls are summarized as text.
|
|
27
27
|
|
|
28
|
-
Open a conversation
|
|
28
|
+
Open a conversation: the cost entry in the composer footer row (the same row as turns, speed, tokens and cache-hit statistics) is itself clickable — a leading currency symbol, the session amount and the hit-rate/input/cache/output details joined by `·`; hovering shows the full breakdown and model amounts, and clicking anywhere on the row opens the details dialog. **Settings → Cost → Display** has separate switches to hide the header entry, composer entry and turn cost summaries; all remain visible by default. The header entry automatically hides at viewport widths of 640px or less, and the composer entry follows its own switch. Display settings preserve composer, session-header and off positions, including saved configurations. A header amount uses a compact entry beside the **Cost details** button. From 1.8.13, **Amount only (full split on hover)** condenses the composer row to the session amount segment, keeping a `(API) · Plan equiv.` suffix when the Plan/API split applies. Hover retains cache hit rate, input/cache/output tokens and model amounts. The conversation entry opens its entire retained history, shows API and Plan equivalents separately, uses the sidebar cost basis by default, and puts component details before overview charts. Switching conversations closes the previous dialog. For all conversations, open **Settings → Cost → Cost statistics**; this entry starts with the last seven calendar days, including today.
|
|
29
29
|
|
|
30
30
|
- **Periods:** Today, Last 7 days, Last 30 days, All retained, and custom inclusive dates. Dates follow the host timezone shown on the page.
|
|
31
31
|
- **Filters:** Provider and model. Choose API cost, Plan equivalent, or their combined equivalent for chart amounts and rankings.
|
|
@@ -80,9 +80,9 @@ The statistics screen uses DSH's package-local asynchronous module loader. Since
|
|
|
80
80
|
|
|
81
81
|
「单步费用占比分布」把小费用归到低于 0.1%、0.1%–1%、1%–5% 和不低于 5% 四个区间,显示步数及累计金额。零费用和未定价记录单列。逐步费用明细默认按整段对话的金额从高到低排列,也可切回轨迹顺序;先显示 20 行,更多原位展开。点击步骤打开详情弹窗;点击类别或代理时,弹窗按金额排列其步骤,并在旁边显示选中调用。只读取选中调用的正文,关闭按钮始终可见,按 Escape 返回原视图。逐次调用区域用高额调用排名代替圆环图,横条相对最高单笔金额缩放,同时显示金额和占整段对话的比例;其余调用仅作文字合计。
|
|
82
82
|
|
|
83
|
-
从 1.8.13 起,可在**设置 → 费用 →
|
|
83
|
+
从 1.8.13 起,可在**设置 → 费用 → 显示**开启“**仅显示金额(悬停可见完整分项)**”。开启后输入区下方的费用入口只保留会话金额段,隐藏命中率与输入/缓存/输出 Token 分项;有 Plan 拆分时保留 `(API)· Plan 等值` 后缀。整行仍可点击。悬停保留命中率、输入/缓存/输出 Token 与模型金额。API 和 Plan 等值继续使用当前展示口径,标题栏“费用明细”入口保持原有行为;默认关闭。
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
打开一个会话,**输入框下方与轮数、速度、Token 和缓存命中率同一行的费用入口**使用与宿主 StatsPills 一致的单行样式:左侧是当前货币符号(跟随设置里的货币单位,¥ / $ / €),会话金额与命中率/输入/缓存/输出分项用 `·` 分隔(文字内容与 master 分支一致),**整行可点击**,打开该对话的费用明细。显示设置保留输入区、标题栏与关闭的费用位置选择,已有配置继续生效。标题栏金额使用紧凑入口,同时保留「费用明细」按钮。在 **设置 → 费用 → 显示设置** 中,可分别隐藏标题栏入口、输入框下方入口和每轮回复后的费用行;默认均保留。视口不超过 640px 时,标题栏入口自动隐藏,输入框下方入口继续遵守自己的开关。入口使用官方统计同款 12px 字号、1px 8px 内边距、圆角与 14px 前导符号槽位,悬停和展开时显示宿主交互背景,分隔点使用宿主 separator 颜色;悬停详情沿用宿主官方 Tooltip 气泡(与官方统计 pill 一致,不再使用浏览器原生 title);行内金额不重复货币符号(符号只在左侧显示一次),标题栏按钮保持 12px 字号与紧凑间距;预算标签仅占内容所需宽度,不再独占整行。对话入口默认显示该对话保留的全部历史,API 与 Plan 等值分别列出,默认金额口径跟随侧栏的“含 Plan 总额”设置,费用构成放在趋势图之前。切换会话会关闭旧明细。全部会话统计的入口为 **设置 → 费用 → 计费统计**,默认显示包含今天的近 7 个自然日。
|
|
86
86
|
|
|
87
87
|
- **时间范围:**今天、近 7 天、近 30 天、全部保留记录,以及包含起止日期的自定义区间。日期按页面标明的宿主时区划分。
|
|
88
88
|
- **筛选和金额口径:**提供商、模型;可选择 API 费用、Plan 等值费用或两者合计,趋势和排行同步切换。
|
|
@@ -100,7 +100,7 @@ The statistics screen uses DSH's package-local asynchronous module loader. Since
|
|
|
100
100
|
|
|
101
101
|
汇总读取 DSH 账本,打开页面会同步其他进程已写入的记录,不重新定价或修改历史金额。全局日、周及全部统计中,跨天对话合并成一行,开启子代理费用合计时,排行把子代理及其后代归入所属主会话,点击后的明细与排行金额一致;关闭时各会话分别列出。每笔费用只计一次。历史中未归属模型或对话的金额会单独提示。从 1.8.10 起,账本保留全部对话记录,不再按每日 200 个裁剪。若已记录的全部 Token 与调用次数完整覆盖一个日期,旧日总额会按这些对话已记录的金额修复;匿名调用和旧版裁剪留下的金额保留。此修复不重新定价。
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
开启设置中的“本会话费用包含子代理”后,输入区费用入口、单对话汇总和费用明细均包含该会话的子代理及全部子代理后代。明细单列主会话与各子代理的账本费用,逐次调用、轮次和步骤标注所属会话,展开子代理轮次可查看它自己的输入与工具调用。普通分叉会话不归入父会话,子代理继承的历史消息不重复收费。关闭开关时,普通对话只显示自身费用。从 1.9.23 起,正在运行的智能体团队主代理会根据宿主公开的团队名册自动包含成员及其后代,不受此开关影响;各代理继续分别入账。会话列表的今日与累计费用采用同一范围。宿主 `agentTeam` 快照的顶层 `id` 标识主代理,`members` 只包含队友;客户端视图才添加 `lead` / `teammate` 角色。两种格式均已支持,依据 `@deepseek-ai/dsh-experimental-agent-team` 0.2.0-rc.2 和 0.2.1-rc.2 发布包中的 `lib/types/projection.js` 核对([#420](https://github.com/Han-1413141/dsh-cost-meter/issues/420))。
|
|
104
104
|
|
|
105
105
|
API 费用是按上报用量和配置单价计算的估算,不是厂商账单;Plan 费用是订阅用量的 API 等值,不代表额外扣款。外部用量快照仍在原概览中单列,这个页面统计 DSH 自身账本。
|
|
106
106
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# v1.9.55 — 会话费用入口与圆环居中
|
|
2
|
+
|
|
3
|
+
## 中文
|
|
4
|
+
|
|
5
|
+
- 输入区的会话费用与明细按钮合并为一个可点击入口,沿用官方统计组件的字号、间距、悬停和展开样式。货币符号显示在左侧,金额与用量分项保留在同一行,悬停可查看完整内容。
|
|
6
|
+
- 保留输入区、会话标题栏与关闭的位置设置及旧配置,显示预览同步当前状态。自定义货币符号正确处理金额小数点和数字。
|
|
7
|
+
- 套餐开口圆环的百分比文字水平居中,适用于明暗主题、四种侧栏布局及窄侧栏。
|
|
8
|
+
|
|
9
|
+
感谢 [@yyc001](https://github.com/yyc001) 在 [#467](https://github.com/Han-1413141/dsh-cost-meter/issues/467) 提出需求,并在 [#468](https://github.com/Han-1413141/dsh-cost-meter/pull/468) 提供入口样式、交互和测试实现。感谢 [@Eancen](https://github.com/Eancen) 在 [#469](https://github.com/Han-1413141/dsh-cost-meter/issues/469) 提供圆环偏移的复现和截图。审查时补充了位置设置、自定义符号与圆环文字居中修复。
|
|
10
|
+
|
|
11
|
+
更新后完全重启 DSH,再刷新网页。
|
|
12
|
+
|
|
13
|
+
## English
|
|
14
|
+
|
|
15
|
+
- Merge composer session cost and its details action into one clickable entry styled like native statistics, with the configured currency symbol and complete details on hover.
|
|
16
|
+
- Preserve composer, header and off positions, including existing settings. Keep custom currency symbols from altering amount digits or decimal points.
|
|
17
|
+
- Center percentage text in open-ring quota cards across themes, sidebar layouts and narrow widths.
|
|
18
|
+
|
|
19
|
+
Thanks to @yyc001 for issue #467 and PR #468, and @Eancen for the reproduction and screenshot in issue #469. Fully restart DSH after updating.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# v1.9.56 — 账本读取与写入合并
|
|
2
|
+
|
|
3
|
+
## 中文
|
|
4
|
+
|
|
5
|
+
- 修复费用查询提前触发账本保存的问题。磁盘 revision 未变时,费用查询读取当前内存,原定两秒计时器合并期间的更新,减少重复快照、Worker 启动与磁盘写入。
|
|
6
|
+
- 待写数据缺少计时器且没有后台事务时安排保存。其他进程更新账本后立即合并,显式提交和退出时完成保存。
|
|
7
|
+
- 隔离复现中,同样八次更新与读取的后台事务从八次合并为一次。真实临时账本的调用数、Token 和费用一致,回归覆盖跨进程同步、提前退出和写入期间的新调用。
|
|
8
|
+
|
|
9
|
+
感谢 [@XHPAN](https://github.com/XHPAN) 提供源码定位、隔离复现、真实临时文件对照和保留写入窗口的修复建议。[原始报告 #470](https://github.com/Han-1413141/dsh-cost-meter/issues/470)
|
|
10
|
+
|
|
11
|
+
更新后完全重启 DSH。
|
|
12
|
+
|
|
13
|
+
## English
|
|
14
|
+
|
|
15
|
+
- Fee reads observe current in-memory usage while the original two-second timer combines pending ledger updates. This reduces repeated snapshots, worker starts and disk transactions.
|
|
16
|
+
- Pending data without a timer or active writer receives a save deadline. Sibling-process writes reconcile immediately, and explicit flush and shutdown persist pending usage.
|
|
17
|
+
- The isolated regression combines eight update/read transactions into one. Real temporary-ledger checks preserve call counts, tokens and cost, including cross-process reconciliation and early shutdown.
|
|
18
|
+
|
|
19
|
+
Thanks to [@XHPAN](https://github.com/XHPAN) for the diagnosis, reproduction, temporary-file comparison and proposed scheduling fix. [Original report #470](https://github.com/Han-1413141/dsh-cost-meter/issues/470)
|
|
20
|
+
|
|
21
|
+
Fully restart DSH after updating.
|