dsh-cost-meter 1.9.14 → 1.9.15
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 +10 -10
- package/README.zh-CN.md +10 -10
- package/docs/display-settings.md +2 -0
- package/docs/update-notes-1.9.15.md +33 -0
- package/lib/client.display.js +6 -2
- package/lib/client.js +2 -2
- package/lib/coding-plans.js +41 -0
- package/lib/index.js +1 -0
- package/lib/plan-billing.js +2 -0
- package/lib/plan-provider-match.js +1 -1
- package/lib/store.js +5 -2
- package/lib/typert.host.js +2 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -8,22 +8,22 @@ Community and feedback: [Join the WeChat group →](#community). The WeChat grou
|
|
|
8
8
|
|
|
9
9
|
**Session cost tracking plugin for the DeepSeek Harness web GUI (bilingual UI)**
|
|
10
10
|
|
|
11
|
-
Per-conversation cost · daily totals · OpenCode Go subscription quota display · budget with usage percentage · official account balance · custom provider balance · balance progress bar · history · peak/off-peak pricing hours display (peak hours UTC 01:00–04:00, 06:00–10:00; weekends and Chinese public holidays are off-peak all day, with separate labels) · pre-switch popup & system-notification alerts for peak/off-peak changes (position / lead time / alert type configurable) · one-click price sync from the official docs · Codex-style token usage heat grid · multi-vendor model pricing (built-in 170+ model-ID catalog with auto-matching) · mainstream Coding Plan quota queries & display (Anthropic / Z.ai / MiniMax / Kimi / OpenRouter / SiliconFlow / CommandCode / SCNet / Volcano Ark / Qwen / Xiaomi MiMo / Factory Droid) plan/API dual-track billing (subscription quota vs pay-as-you-go money separated, per-1% & full-window token/equivalent-cost estimates with daily/weekly/monthly curves) · subscription plugin compatibility (Codex / ChatGPT subscription plans) · mobile layout (dsh-pocket) · quota strip above the input box (budget / Go / coding-plan usage in one row, toggleable)
|
|
11
|
+
Per-conversation cost · daily totals · OpenCode Go subscription quota display · budget with usage percentage · official account balance · custom provider balance · balance progress bar · history · peak/off-peak pricing hours display (peak hours UTC 01:00–04:00, 06:00–10:00; weekends and Chinese public holidays are off-peak all day, with separate labels) · pre-switch popup & system-notification alerts for peak/off-peak changes (position / lead time / alert type configurable) · one-click price sync from the official docs · Codex-style token usage heat grid · multi-vendor model pricing (built-in 170+ model-ID catalog with auto-matching) · mainstream Coding Plan quota queries & display (Anthropic / Z.ai / MiniMax / Kimi / OpenRouter / SiliconFlow / CommandCode / Cline Pass / SCNet / Volcano Ark / Qwen / Xiaomi MiMo / Factory Droid) plan/API dual-track billing (subscription quota vs pay-as-you-go money separated, per-1% & full-window token/equivalent-cost estimates with daily/weekly/monthly curves) · subscription plugin compatibility (Codex / ChatGPT subscription plans) · mobile layout (dsh-pocket) · quota strip above the input box (budget / Go / coding-plan usage in one row, toggleable)
|
|
12
12
|
|
|
13
|
-
[](https://github.com/Han-1413141/dsh-cost-meter)
|
|
14
14
|
|
|
15
15
|
**Minimum supported host: DSH 0.2.0.** The plugin declares the floor in `engines.dsh`, the host's admission gate for plugins, and no longer supports any DSH 0.1.x release; the adaptation target is the npm `next` release **0.2.1-rc.2**. Exact ranges and how the host reads them: [compatibility declaration](docs/dsh-0.2.1-compatibility.md#english).
|
|
16
16
|
|
|
17
17
|
Supports [official Search/Fetch request fees](docs/web-request-fees.md#english), separately from model tokens.
|
|
18
18
|
|
|
19
|
-
**v1.9.
|
|
19
|
+
**v1.9.15** adds an optional “Follow skin transparency” switch under Cost → Display, and supports Cline Pass quota in a single card with 5-hour, weekly and monthly windows.
|
|
20
20
|
|
|
21
21
|
Configuration and verification: [OpenDesign queries](docs/opendesign-billing.md), [dynamic ports / LAN / WorkBuddy2API setup](docs/custom-balance-sources.md), and [opacity fixes with performance measurements](docs/performance-2026-10-18.md).
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
Desktop users: follow the [Desktop installation instructions](docs/install-troubleshooting.md#desktop-安装与更新) for the application's own CLI and `desktop` Profile.
|
|
25
25
|
|
|
26
|
-
Release notes: [v1.9.
|
|
26
|
+
Release notes: [v1.9.15](docs/update-notes-1.9.15.md#english). Fully restart DSH after updating.
|
|
27
27
|
|
|
28
28
|
Host records inside the declared range, and the earlier 0.1.x history, are in the [compatibility record](docs/host-compatibility.md); the per-release list lives in `package.json` (`dsh.compatibility.dshReleases`).
|
|
29
29
|
|
|
@@ -52,7 +52,7 @@ If startup reports **Ledger is busy** and the cost widgets are missing, see [led
|
|
|
52
52
|
| 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) |
|
|
53
53
|
| 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 |
|
|
54
54
|
| 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 |
|
|
55
|
-
| Coding plan quotas | Sidebar / Settings page (per vendor) | Multi-vendor coding-plan quota queries (Anthropic Claude Pro/Max, Z.ai / Zhipu GLM Coding Plan, MiniMax Token Plan, Kimi Code weekly + 5-hour quotas with PAYG balance fallback when no subscription key, OpenRouter credits, SiliconFlow balance, CommandCode 5h/weekly windows + monthly credits balance, Xiaomi MiMo Token Plan plan/compensation credit windows + period-end reset + balance via console cookie); per-vendor enable switch, key, display position and refresh interval (sidebar card in the same box style as the Go quota; the collapsed rail shows percentages), official endpoints by default, with a [configurable trusted MiniMax origin](docs/minimax-quota-endpoint.md#english); neutral hints when no credentials/subscription; SCNet Token Plan supports [external console snapshots](docs/scnet-official-snapshot.md#english); without a valid snapshot, monthly usage is estimated from the local ledger via the official credits deduction table (no credentials needed) |
|
|
55
|
+
| Coding plan quotas | Sidebar / Settings page (per vendor) | Multi-vendor coding-plan quota queries (Anthropic Claude Pro/Max, Z.ai / Zhipu GLM Coding Plan, MiniMax Token Plan, Kimi Code weekly + 5-hour quotas with PAYG balance fallback when no subscription key, OpenRouter credits, SiliconFlow balance, CommandCode 5h/weekly windows + monthly credits balance, Cline Pass 5-hour/weekly/monthly windows, Xiaomi MiMo Token Plan plan/compensation credit windows + period-end reset + balance via console cookie); per-vendor enable switch, key, display position and refresh interval (sidebar card in the same box style as the Go quota; the collapsed rail shows percentages), official endpoints by default, with a [configurable trusted MiniMax origin](docs/minimax-quota-endpoint.md#english); neutral hints when no credentials/subscription; SCNet Token Plan supports [external console snapshots](docs/scnet-official-snapshot.md#english); without a valid snapshot, monthly usage is estimated from the local ledger via the official credits deduction table (no credentials needed) |
|
|
56
56
|
| Subscription plugin compatibility | Settings → Cost → Codex / sidebar & quota cards | Detects installed Codex / ChatGPT subscription plugins and classifies their subscription calls as Plan quota instead of pay-as-you-go API spend; new usage is classified at record time, and a one-time dismissible prompt decides whether historical Codex billing is reclassified (idempotent). Explicit plan/API choices are never overridden. [Details](docs/update-notes-1.9.0.md#english) |
|
|
57
57
|
| Codex quota display | Settings → Display → Codex / sidebar & quota strip | Reads actual 5-hour and 7-day windows from `dsh-codex-subscription` or `@eddyskywalker/dsh-chatgpt-subscription`, with `dsh-codex-connect` compatibility. Select `auto` (tries those three plugins in order), `subscription`, `chatgpt`, or `connect`. An explicit source shows only that plugin's current account. Independent of the billing classification in “Subscription plugin compatibility”. |
|
|
58
58
|
| SQLite session storage (better-session) | Host integration | Auto-detects the host session backend; with `@morlay/better-session` / `@morlay/session-rdb` (SQLite) storage, historical backfill, legacy import, history repricing, hour-bucket repair, fork cleanup and per-session cost/trajectory/call details keep working. The JSONL path is unchanged; old JSONL and RDB histories are not merged automatically. [Guide](docs/better-session.md) |
|
|
@@ -341,22 +341,22 @@ On Node.js 20, use `npm install -g pnpm@10` instead. See [pnpm installation and
|
|
|
341
341
|
dsh plugin --profile web add dsh-cost-meter
|
|
342
342
|
```
|
|
343
343
|
|
|
344
|
-
**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.
|
|
344
|
+
**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.15`** — review the script before running):
|
|
345
345
|
|
|
346
346
|
```powershell
|
|
347
|
-
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.
|
|
347
|
+
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.15/install.ps1 | iex
|
|
348
348
|
```
|
|
349
349
|
|
|
350
350
|
**Or a plain command line** (the machine must already have pnpm and git; also pinned to the tag):
|
|
351
351
|
|
|
352
352
|
```sh
|
|
353
|
-
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.
|
|
353
|
+
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.15
|
|
354
354
|
```
|
|
355
355
|
|
|
356
356
|
Without git, use the GitHub tag archive:
|
|
357
357
|
|
|
358
358
|
```sh
|
|
359
|
-
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.
|
|
359
|
+
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.15.tar.gz
|
|
360
360
|
```
|
|
361
361
|
|
|
362
362
|
After installing, **restart** `dsh web` (plugin rows, the Typert manifest and the client bundle are all scanned at startup):
|
|
@@ -421,7 +421,7 @@ Workarounds:
|
|
|
421
421
|
|
|
422
422
|
```yaml
|
|
423
423
|
minimumReleaseAgeExclude:
|
|
424
|
-
- dsh-cost-meter@1.9.
|
|
424
|
+
- dsh-cost-meter@1.9.15
|
|
425
425
|
```
|
|
426
426
|
|
|
427
427
|
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
|
@@ -8,22 +8,22 @@
|
|
|
8
8
|
|
|
9
9
|
**DeepSeek Harness 会话费用统计插件(界面中英双语)**
|
|
10
10
|
|
|
11
|
-
本会话费用 · 当日费用 · OpenCode Go 订阅额度显示 · 预算与已用百分比 · 官方账户余额 · 自定义 Provider 余额查询(可配任意 HTTP 端点) · 余额三段进度条 · 历史记录 · 峰谷计价时段显示(UTC 01:00–04:00、06:00–10:00 为峰时段;周末与中国法定假日全天按谷价,分别标注) · 峰/谷切换前弹窗与系统通知提醒(位置/提前量/提醒类型可配) · 官方价格一键同步 · 类 Codex Token 用量热图 · 多厂商多模型价格计费(内置 170+ 模型 ID 价格目录与自动匹配) · 主流 Coding Plan 额度查询与显示(Anthropic / Z.ai / MiniMax / Kimi / OpenRouter / SiliconFlow / CommandCode / SCNet / 火山方舟 / 千问 / 小米 MiMo
|
|
11
|
+
本会话费用 · 当日费用 · OpenCode Go 订阅额度显示 · 预算与已用百分比 · 官方账户余额 · 自定义 Provider 余额查询(可配任意 HTTP 端点) · 余额三段进度条 · 历史记录 · 峰谷计价时段显示(UTC 01:00–04:00、06:00–10:00 为峰时段;周末与中国法定假日全天按谷价,分别标注) · 峰/谷切换前弹窗与系统通知提醒(位置/提前量/提醒类型可配) · 官方价格一键同步 · 类 Codex Token 用量热图 · 多厂商多模型价格计费(内置 170+ 模型 ID 价格目录与自动匹配) · 主流 Coding Plan 额度查询与显示(Anthropic / Z.ai / MiniMax / Kimi / OpenRouter / SiliconFlow / CommandCode / Cline Pass / SCNet / 火山方舟 / 千问 / 小米 MiMo 十二家,含 Volcano Ark AK/SK 签名与 MiMo 控制台 Cookie 查询) · Plan/API 双轨计费(订阅额度与按量金额分离统计,每 1% 额度与满窗的 token/等值金额估算及日/周/月曲线) · 订阅插件兼容(Codex / ChatGPT 订阅) · 手机端适配(dsh-pocket) · 输入框上方额度横条(预算/Go/Coding Plan 用量一条横排显示,可开关)
|
|
12
12
|
|
|
13
|
-
[](https://github.com/Han-1413141/dsh-cost-meter)
|
|
14
14
|
|
|
15
15
|
**最低支持宿主:DSH 0.2.0。** 插件把下限声明在 `engines.dsh`(宿主准入插件的闸门),不再支持任何 DSH 0.1.x 版本;本轮适配目标为 npm `next` 标签的 **0.2.1-rc.2**。具体范围与宿主的读取方式见[兼容声明](docs/dsh-0.2.1-compatibility.md#中文)。
|
|
16
16
|
|
|
17
17
|
新增 [DeepSeek Search/Fetch API 次数费](docs/web-request-fees.md#中文),只计有结果的成功请求,并将网页抓取独立分类。
|
|
18
18
|
|
|
19
|
-
**v1.9.
|
|
19
|
+
**v1.9.15** 在“费用 → 显示”增加默认关闭的“跟随皮肤透明度”开关,并支持 Cline Pass 单卡片展示 5 小时、周与月额度。
|
|
20
20
|
|
|
21
21
|
配置与验证:[OpenDesign 查询说明](docs/opendesign-billing.md)、[随机端口 / 局域网 / WorkBuddy2API 配置](docs/custom-balance-sources.md)、[透明度修复与性能测量](docs/performance-2026-10-18.md)。
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
桌面端用户请按 [Desktop 安装说明](docs/install-troubleshooting.md#desktop-安装与更新),使用应用自带的 CLI 和 `desktop` Profile。
|
|
25
25
|
|
|
26
|
-
更新说明:[v1.9.
|
|
26
|
+
更新说明:[v1.9.15](docs/update-notes-1.9.15.md#中文)。更新后完全重启 DSH。
|
|
27
27
|
|
|
28
28
|
声明范围内的宿主记录与此前的 0.1.x 历史见[兼容记录](docs/host-compatibility.md);逐版本清单在 `package.json` 的 `dsh.compatibility.dshReleases`。
|
|
29
29
|
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
| 官方余额 | 侧边栏顶部 / 设置页(可配) | 总余额 / 赠送 / 充值,自动刷新 + 手动刷新;可选三段进度条(蓝/橙/灰),当日段只统计官方渠道费用(不含 Coding Plan / 自定义 Provider) |
|
|
53
53
|
| 自定义 Provider 余额 | 侧边栏 / 设置页(可配) | 可配置 HTTP 查询任意 Provider 余额(LiteLLM 等);中/英名称、币种、extract 规则(点路径 / 数字常量 / add / subtract / divide,divide 适配 NewApi 等 quota 端点,见下方[示例](#自定义-provider-余额配置示例newapi-模板));与 Coding Plan 同区可折叠配置 |
|
|
54
54
|
| OpenCode Go 额度 | 侧边栏 / 设置页 / 右下角(dock,可配) | 滚动 5 小时 / 本周 / 本月用量百分比与重置时间,三档可分别开关,可同时显示预算已用%;Key 自动发现(专用引用 / 官方 Go 路由 apiKeyEnv / 环境变量 / opencode 登录态)或手动填写 |
|
|
55
|
-
| Coding Plan 额度 | 侧边栏 / 设置页(每家可配) | 多厂商 coding plan 订阅额度查询(Anthropic Claude Pro/Max、Z.ai/智谱 GLM、MiniMax Token Plan、Kimi Code 本周/5 小时配额(无订阅 Key 时回落 PAYG 余额)、OpenRouter credits、SiliconFlow 余额、CommandCode 5h/周窗口与月度 Credits
|
|
55
|
+
| Coding Plan 额度 | 侧边栏 / 设置页(每家可配) | 多厂商 coding plan 订阅额度查询(Anthropic Claude Pro/Max、Z.ai/智谱 GLM、MiniMax Token Plan、Kimi Code 本周/5 小时配额(无订阅 Key 时回落 PAYG 余额)、OpenRouter credits、SiliconFlow 余额、CommandCode 5h/周窗口与月度 Credits 余额、Cline Pass 5 小时/周/月三窗口用量%、小米 MiMo Token Plan 套餐/补偿积分窗口与周期截止重置、余额(控制台 Cookie 凭据)、火山方舟 Volcano Ark 5h/周/月三档(需 AK/SK 管控面 HMAC 签名,需 ArkReadOnlyAccess + BillingCenterReadOnlyAccess)),各家独立启用开关、凭据、显示位置与刷新间隔(侧边栏卡片与 Go 额度同款,收起窄栏显示百分比),默认使用官方端点,MiniMax 可[配置可信查询域名](docs/minimax-quota-endpoint.md);无凭据/无订阅为中性提示;SCNet 超算互联网 Token Plan 支持[外部控制台额度快照](docs/scnet-official-snapshot.md),无有效快照时按官方 Credits 抵扣表由本地账本估算月度用量(无需凭据) |
|
|
56
56
|
| 订阅插件兼容 | 设置 → 费用 → Codex / 侧边栏与额度卡片 | 自动检测已安装的 Codex / ChatGPT 订阅插件,把其订阅调用归为 Plan 订阅额度、不计入 API 按量花费;新用量在记账时直接归类,历史 Codex 计费由一次性可关闭提示确认后重算(幂等)。显式 plan/API 配置不被覆盖。[说明](docs/update-notes-1.9.0.md#中文) |
|
|
57
57
|
| Codex 额度显示 | 设置 → 显示 → Codex / 侧边栏与额度横条 | 读取 `dsh-codex-subscription`、`@eddyskywalker/dsh-chatgpt-subscription` 的实际 5 小时与 7 天窗口,兼容 `dsh-codex-connect`;数据源可选 `auto`(依次尝试上述三个插件)/ `subscription` / `chatgpt` / `connect`。固定来源只显示该插件当前账号的额度;与「订阅插件兼容」的计费归类设置互不影响。 |
|
|
58
58
|
| SQLite 会话存储(better-session) | 宿主集成 | 自动探测宿主会话后端;当 `@morlay/better-session` / `@morlay/session-rdb`(SQLite)接管存储时,历史回填、旧账本导入、历史重定价、小时桶修复、fork 清洗与逐会话费用/轨迹/调用详情继续可用。JSONL 路径行为不变;旧 JSONL 与 RDB 历史不自动合并。[说明](docs/better-session.md) |
|
|
@@ -341,22 +341,22 @@ Node.js 20 请改用 `npm install -g pnpm@10`。版本要求见 [pnpm 官方安
|
|
|
341
341
|
dsh plugin --profile web add dsh-cost-meter
|
|
342
342
|
```
|
|
343
343
|
|
|
344
|
-
**PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.
|
|
344
|
+
**PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.15`**,建议先下载审阅再运行):
|
|
345
345
|
|
|
346
346
|
```powershell
|
|
347
|
-
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.
|
|
347
|
+
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.15/install.ps1 | iex
|
|
348
348
|
```
|
|
349
349
|
|
|
350
350
|
**或直接命令行**(机器上需已有 pnpm 与 git;同样固定到 tag):
|
|
351
351
|
|
|
352
352
|
```sh
|
|
353
|
-
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.
|
|
353
|
+
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.15
|
|
354
354
|
```
|
|
355
355
|
|
|
356
356
|
没有 git 时可用 GitHub tag 打包直链:
|
|
357
357
|
|
|
358
358
|
```sh
|
|
359
|
-
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.
|
|
359
|
+
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.15.tar.gz
|
|
360
360
|
```
|
|
361
361
|
|
|
362
362
|
安装后**重启** `dsh web`(插件行、Typert 清单与客户端 bundle 均在启动时扫描):
|
|
@@ -421,7 +421,7 @@ DSH **0.2.1-rc.1 / 0.2.1-rc.2** 宿主自带 pnpm **11.28.5**,默认启用内
|
|
|
421
421
|
|
|
422
422
|
```yaml
|
|
423
423
|
minimumReleaseAgeExclude:
|
|
424
|
-
- dsh-cost-meter@1.9.
|
|
424
|
+
- dsh-cost-meter@1.9.15
|
|
425
425
|
```
|
|
426
426
|
|
|
427
427
|
3. 仅本次操作用 CLI 透传 pnpm 参数:`dsh plugin --profile desktop remove dsh-cost-meter --config.minimum-release-age=0`;若只是 lockfile 校验阶段失败,可改用 `--trust-lockfile`。这两个参数已在本机 pnpm 11.28.5 临时 Profile 上实测可用。
|
package/docs/display-settings.md
CHANGED
|
@@ -33,3 +33,5 @@ Codex 额度的真实数据来自已启用并登录的 `dsh-codex-subscription`
|
|
|
33
33
|
选中峰谷时段后,右侧以三张紧凑的实际效果卡片展示进度条、细条和分段样式,复用侧栏呈现函数,包含当前时段文字、橙蓝轨道和倒计时。蓝色边框和“已选”标明当前选择,样式说明放在悬停提示中,点击后立即更新左侧预览。右侧收窄并减少内边距和重复说明;桌面设置保持左侧预览、右侧调整,与其他组件使用相同的窄屏换行条件。显示时间的完整选项放在右侧卡片下方。预览中超长的时段文字以省略号收起,保留可见轨道,悬停或键盘聚焦可读取完整说明。样式示例只渲染峰谷组件,不挂载余额、额度和模型卡片,也不会把示例开关写入配置。
|
|
34
34
|
|
|
35
35
|
已开启峰谷计价且未隐藏峰谷显示的用户,更新后首次进入会看到一次介绍和三种布局预览。可以使用新进度条,也可以保留原样;关闭或选择后不再重复提示。原细条和分段样式保留。介绍中的预览只读取配置和本机时间,不查询余额、不发送模型请求、不改变计价或历史记录。新界面按需加载,页面隐藏时停止刷新,关闭组件时清理定时器和监听器。
|
|
36
|
+
|
|
37
|
+
“费用 → 显示”提供“跟随皮肤透明度”,默认关闭。开启后,费用页共用设置窗口的背景,统计正文不再另铺实心底色;费用明细、引导、提醒与下拉浮层使用皮肤层色,保留至少 90% 不透明度。关闭后立即恢复不透明遮挡效果。该开关只修改插件自己的界面,保存后重启仍生效。
|
|
@@ -0,0 +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.
|