dsh-cost-meter 1.9.26 → 1.9.27
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 +9 -9
- package/README.zh-CN.md +9 -9
- package/docs/billion-context-billing.md +10 -2
- package/docs/openrouter-prices.md +12 -0
- package/docs/plugin-compatibility-watch.md +2 -0
- package/docs/provider-pricing-2026-10.md +2 -2
- package/docs/update-notes-1.9.15.md +33 -33
- package/docs/update-notes-1.9.16.md +67 -67
- package/docs/update-notes-1.9.17.md +24 -24
- package/docs/update-notes-1.9.19.md +19 -19
- package/docs/update-notes-1.9.21.md +15 -15
- package/docs/update-notes-1.9.27.md +38 -0
- package/lib/billion-context-billing.js +44 -8
- package/lib/billion-context-history.js +57 -5
- package/lib/bootstrap.js +7 -7
- package/lib/client.display.js +2 -2
- package/lib/client.js +6 -6
- package/lib/client.sidebar-order.js +3 -2
- package/lib/client.statistics.js +6 -6
- package/lib/gateway-quota-adapters.js +41 -3
- package/lib/gateway-quotas.js +36 -2
- package/lib/index.js +31 -4
- package/lib/openrouter-pricing.js +8 -2
- package/lib/openrouter-refresh-state.js +57 -0
- package/lib/pi-ai-codex-quota.js +66 -0
- package/lib/store.js +6 -6
- package/lib/typert.host.js +20 -2
- package/package.json +3 -2
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.27** adds a persistent OpenRouter refresh cooldown and releases the merged pi-ai Codex quota and billion-context usage fixes.
|
|
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.
|
|
23
|
+
Release notes: [v1.9.27](docs/update-notes-1.9.27.md#english). Fully restart DSH after updating.
|
|
24
24
|
|
|
25
25
|

|
|
26
26
|
|
|
@@ -65,7 +65,7 @@ Community and feedback: [Join the WeChat group →](#community). The WeChat grou
|
|
|
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 |
|
|
66
66
|
| 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) |
|
|
67
67
|
| 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) |
|
|
68
|
-
| Codex quota display | Settings → Display → Codex / sidebar & quota strip | Reads actual
|
|
68
|
+
| Codex quota display | Settings → Display → Codex / sidebar & quota strip | Reads actual quota windows from `dsh-codex-subscription`, the native DSH pi-ai login, `@eddyskywalker/dsh-chatgpt-subscription`, or `dsh-codex-connect`. Select `auto` (tries these sources in order), `subscription`, `pi-ai`, `chatgpt`, or `connect`. Native pi-ai needs no extra subscription plugin. Weekly-only accounts show no 5h bar. An explicit source uses only that source's current account; billing classification remains separate. |
|
|
69
69
|
| 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) |
|
|
70
70
|
| OpenDesign quota | Sidebar / Settings (OpenDesign vendor) | Workspace coding-plan windows from the console API; with a Control Key, a 401/403 from the primary endpoint triggers one conservative `/billing/preflight` Bearer fallback, and window/wallet reads degrade independently. [Troubleshooting](docs/opendesign-billing.md#english) |
|
|
71
71
|
| Mobile / dsh-pocket layout | All cost UIs | On screens ≤1023px and dsh-pocket mobile layouts: single-column cards, horizontally scrolling tabs, 36px touch targets, dialogs capped at 90vh with safe-area padding and scrolling wide tables; desktop layout unchanged |
|
|
@@ -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.
|
|
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):
|
|
356
356
|
|
|
357
357
|
```powershell
|
|
358
|
-
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.27/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.
|
|
364
|
+
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.27
|
|
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.
|
|
370
|
+
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.27.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.
|
|
435
|
+
- dsh-cost-meter@1.9.27
|
|
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
|
-
[](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.27** 为 OpenRouter 自动价格同步增加跨重启冷却,并发布已合并的 pi-ai Codex 额度与 billion-context 用量修复。
|
|
20
20
|
|
|
21
21
|
**宿主要求:DSH 0.2.0 起支持** · 适配目标 **0.2.1-rc.2**(npm `next`)。完整声明、历史记录与安装排障见下方展开项。
|
|
22
22
|
|
|
23
|
-
更新说明:[v1.9.
|
|
23
|
+
更新说明:[v1.9.27](docs/update-notes-1.9.27.md#中文)。更新后完全重启 DSH。
|
|
24
24
|
|
|
25
25
|

|
|
26
26
|
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
| OpenCode Go 额度 | 侧边栏 / 设置页 / 右下角(dock,可配) | 滚动 5 小时 / 本周 / 本月用量百分比与重置时间,三档可分别开关,可同时显示预算已用%;Key 自动发现(专用引用 / 官方 Go 路由 apiKeyEnv / 环境变量 / opencode 登录态)或手动填写 |
|
|
66
66
|
| 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 抵扣表由本地账本估算月度用量(无需凭据) |
|
|
67
67
|
| 订阅插件兼容 | 设置 → 费用 → Codex / 侧边栏与额度卡片 | 自动检测已安装的 Codex / ChatGPT 订阅插件,把其订阅调用归为 Plan 订阅额度、不计入 API 按量花费;新用量在记账时直接归类,历史 Codex 计费由一次性可关闭提示确认后重算(幂等)。显式 plan/API 配置不被覆盖。[说明](docs/update-notes-1.9.0.md#中文) |
|
|
68
|
-
| Codex 额度显示 | 设置 → 显示 → Codex / 侧边栏与额度横条 | 读取 `dsh-codex-subscription
|
|
68
|
+
| Codex 额度显示 | 设置 → 显示 → Codex / 侧边栏与额度横条 | 读取 `dsh-codex-subscription`、DSH 内置 pi-ai 登录、`@eddyskywalker/dsh-chatgpt-subscription`、`dsh-codex-connect` 的实际额度窗口;数据源可选 `auto`(按上述顺序尝试)/ `subscription` / `pi-ai` / `chatgpt` / `connect`。pi-ai 登录无需额外订阅插件,只有周额度的账号不显示 5h 条。固定来源只查询该来源的当前账号,与计费归类设置互不影响。 |
|
|
69
69
|
| SQLite 会话存储(better-session) | 宿主集成 | 自动探测宿主会话后端;当 `@morlay/better-session` / `@morlay/session-rdb`(SQLite)接管存储时,历史回填、旧账本导入、历史重定价、小时桶修复、fork 清洗与逐会话费用/轨迹/调用详情继续可用。JSONL 路径行为不变;旧 JSONL 与 RDB 历史不自动合并。[说明](docs/better-session.md) |
|
|
70
70
|
| OpenDesign 额度 | 侧边栏 / 设置页(OpenDesign 厂商) | 从控制台 API 读取工作区 coding plan 窗口;使用 Control Key 时主端点 401/403 会保守回退一次 `/billing/preflight`,窗口与钱包读取独立降级。[排查说明](docs/opendesign-billing.md#中文) |
|
|
71
71
|
| 手机端适配(dsh-pocket) | 全部费用界面 | ≤1023px 窄屏与 dsh-pocket 移动布局下:卡片单列、标签横向滚动、36px 触控高度、对话框不超过 90vh 并避开安全区、宽表横向滚动;桌面布局不变 |
|
|
@@ -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.
|
|
355
|
+
**PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.27`**,建议先下载审阅再运行):
|
|
356
356
|
|
|
357
357
|
```powershell
|
|
358
|
-
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.27/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.
|
|
364
|
+
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.27
|
|
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.
|
|
370
|
+
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.27.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.
|
|
435
|
+
- dsh-cost-meter@1.9.27
|
|
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 上实测可用。
|
|
@@ -21,7 +21,11 @@ The integration adds observers in memory when the verified local Node proxy star
|
|
|
21
21
|
- Uncached input, cache reads, cache writes, output and reasoning usage across OpenAI Chat Completions, Responses, Anthropic Messages and Google GenerateContent, including streams.
|
|
22
22
|
- Actual upstream origin/model, request identity, attempt, completion status, owning DSH conversation and active turn/step.
|
|
23
23
|
|
|
24
|
-
After
|
|
24
|
+
After usable proxy records are confirmed, those requests replace the corresponding ordinary DSH usage charge. A persistence receipt alone does not establish usage coverage. Producer sequences and ledger receipts prevent repeated imports. Main/subagent totals, daily/week/all statistics, turn details and step views share these records and historical price versions. Inherited fork history is not charged again.
|
|
25
|
+
|
|
26
|
+
When proxy model usage is missing but the host reports valid usage, one host sample is recorded for the correlated stream, regardless of the number of missing retries or groups. Independently measured compression remains separate. Mixed known and missing model usage is not added to an overlapping host aggregate: known calls and the original host sample are retained, with a notice when the overlap cannot be resolved. Known zero usage remains distinct from missing usage.
|
|
27
|
+
|
|
28
|
+
On import, retained legacy bridge records with `covered:true` and missing model usage can restore an omitted host sample even if proxy cursors already advanced or the session contains another provider. A durable stream receipt prevents repeated recovery. Records marked `covered:false` are not automatically repaired because ordinary host billing may already have accounted them. Missing original host usage cannot be reconstructed.
|
|
25
29
|
|
|
26
30
|
Main requests retain the configured DSH provider price. Internal models use their actual upstream/model. Zero usage, missing usage, partial responses and missing prices remain distinct. Charges are not inferred from savings percentages or balance changes. The correlation header is removed before forwarding to a model endpoint.
|
|
27
31
|
|
|
@@ -52,7 +56,11 @@ Checks use original npm packages, isolated local responses, both plugin loading
|
|
|
52
56
|
|
|
53
57
|
记录内部压缩、HTTP 重试和追加请求,以及未缓存输入、缓存读取、缓存写入、输出和推理用量;支持四种模型协议的 JSON 与流式响应。每条记录关联实际上游、模型、请求、重试次数、完成状态、所属 DSH 会话和轮次/步骤。
|
|
54
58
|
|
|
55
|
-
|
|
59
|
+
确认代理记录含有可用用量后,逐次请求替换对应的普通 DSH 汇总记账;持久化成功本身不代表用量完整。调用序号和账本入账凭据防止重复收费。会话金额、子代理、日/周/全部统计、单轮和步骤明细共用记录,并沿用保存的历史价格版本;分叉继承的历史不重复计费。
|
|
60
|
+
|
|
61
|
+
代理模型用量缺失、宿主用量有效时,按对应调用流补记一次宿主用量,不按缺失的重试次数或请求组数重复补记;独立测得的压缩费用仍单独保留。已知与缺失的模型用量混在一起时,保留已知调用和宿主原始汇总;无法判断重叠部分时提示核对,不把两者直接相加。已知零用量仍作为有效记录处理。
|
|
62
|
+
|
|
63
|
+
导入时,旧版保留的桥接记录若标记 `covered:true`、模型用量缺失而宿主用量有效,可恢复遗漏的宿主费用,即使代理游标已经推进,或同一会话已记入其他渠道费用。每次恢复都有持久化凭据,重启后不重复。`covered:false` 的旧记录可能已走普通宿主记账,不自动补记;缺少原始宿主用量的历史无法重建。
|
|
56
64
|
|
|
57
65
|
主请求沿用 DSH 渠道配置价格,内部模型按实际上游和模型匹配。零用量、缺失用量、部分回执和未定价分别显示,不按节省比例或余额差补算。关联标识在转发模型端点前删除。
|
|
58
66
|
|
|
@@ -16,6 +16,12 @@ This lookup only sends an unauthenticated `GET` to [OpenRouter's public models e
|
|
|
16
16
|
|
|
17
17
|
The catalog is a reference, not a binding quote for the next request. Provider routing, price tiers, promotions and additional image/search/request fees can affect the actual bill. Open the model's official page for those details. The UI uses the existing DSH theme variables and controls, supports Chinese and English, and requires the host's asynchronous module loader (also used by Cost statistics).
|
|
18
18
|
|
|
19
|
+
### Background billing-price synchronization
|
|
20
|
+
|
|
21
|
+
Startup and hourly checks share a persistent one-hour cooldown. The last attempt is saved before downloading, so restart loops, failures and interrupted requests cannot bypass it. Parallel hosts sharing a ledger admit one automatic task per cooldown. Fresh startup checks only read the state and do not rewrite it or the ledger. Manual billing-price synchronization still runs immediately and retains the existing in-flight request sharing.
|
|
22
|
+
|
|
23
|
+
The private `ledger.json.openrouter-prices.json` file beside the ledger stores only `fetchedAt` and `attemptedAt` timestamps. A successful price snapshot is persisted before recording its successful fetch time. Failed downloads retain the previous prices. The separately opened read-only price panel and model tooltip keep their foreground polling behavior.
|
|
24
|
+
|
|
19
25
|
## 中文
|
|
20
26
|
|
|
21
27
|
打开输入框旁的模型选择菜单,悬停 **OpenRouter** 模型,DSH 原有提示中会显示输入、输出、缓存读取和缓存写入单价、上下文长度以及最近成功更新时间。模型列表出现时查询价格,菜单与浏览器处于前台时每分钟刷新;悬停模型或返回前台也会检查更新,两次请求至少间隔 15 秒。关闭菜单后停止价格请求,无需先进入设置。
|
|
@@ -31,3 +37,9 @@ The catalog is a reference, not a binding quote for the next request. Provider r
|
|
|
31
37
|
查询仅对 [OpenRouter 公开模型接口](https://openrouter.ai/api/v1/models) 发送不带凭据的 `GET` 请求,无需 API Key,不发送模型推理请求,不产生模型使用费用。浏览价格不会修改计费单价配置、凭据或历史账本。原有后台计费价格同步继续独立运行。
|
|
32
38
|
|
|
33
39
|
目录价格是参考价,具体路由、价格阶梯、优惠以及图片、搜索、请求等附加费用以 OpenRouter 为准,可点击模型查看详情。界面沿用 DSH 主题变量和控件,支持中英文;需要宿主支持异步模块加载,与费用统计页要求一致。
|
|
40
|
+
|
|
41
|
+
### 后台计费价格同步
|
|
42
|
+
|
|
43
|
+
启动与小时级定时检查共用持久化的一小时冷却。下载前保存最近尝试时间,重启循环、请求失败或下载途中退出均不能绕过冷却。共用账本的并行宿主在一个冷却周期内只放行一次自动任务。快照仍新时只读取刷新状态,不改写它或账本。手动同步计费价格仍可立即执行,保留已有的在途请求合并。
|
|
44
|
+
|
|
45
|
+
账本旁的私有文件 `ledger.json.openrouter-prices.json` 只保存 `fetchedAt` 和 `attemptedAt` 两个时间戳。价格快照落盘后才记录成功时间;下载失败保留旧价格。单独打开的只读价格面板和模型提示仍沿用各自的前台刷新行为。
|
|
@@ -11,3 +11,5 @@ GitHub Actions 工作流 `plugin-compatibility-watch` 每日北京时间 08:23
|
|
|
11
11
|
本地查看:`node scripts/watch-plugin-compatibility.mjs`。本地默认不创建 issue。单元检查:`node test/plugin-compatibility-watch.mjs`。
|
|
12
12
|
|
|
13
13
|
2026-10-20 已验证并接受 `billion-context@0.1.202` 与 `dsh-codex-subscription@3.1.2`。前者通过实际发布包的代理、原生传输、重试、摘要、历史回放与原版 CLI 自动接入检查,后者通过实际额度解析和 RPC 的单周、双窗口、刷新、失败回退检查。测试使用合成数据与本机服务器,未查询用户账户或调用外部模型。两者接入接口指纹均未变化,v1.9.16 无需修改运行时代码即可兼容;对应版本已加入持续集成。
|
|
14
|
+
|
|
15
|
+
2026-10-22 已验证并接受 `billion-context@0.1.204` 与 `dsh-codex-subscription@3.1.4`(监控 issue [#379](https://github.com/Han-1413141/dsh-cost-meter/issues/379)、[#380](https://github.com/Han-1413141/dsh-cost-meter/issues/380))。前者使用实际发布包验证代理、原生传输、重试、压缩、父子会话、历史回放和无配套包的 CLI 自动接入;后者验证发布包的单周、双窗口、强制刷新与失败回退。3.1.4 的 RPC 分发变化涉及语音功能,额度接口保持兼容。两版均加入持续集成,本次只接受已验证的两个版本,保留 `dsh-codex-connect` 原基线。
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## 中文
|
|
6
6
|
|
|
7
|
-
此前针对 #224 补齐 GPT-6 Sol/Luna、GPT-6.1 Sol、Gemini 3.8 Flash、Claude Fable 5.1、Opus 5.5 等模型,并按公开价格页面扩充其他模型。内置第三方目录包含 290 个「厂商 / 模型」条目、191 个不同模型 ID(含官方别名和历史快照 ID);其中 288 条有可执行价格,2 条明确未核价。DeepSeek 主表单独保留。OpenRouter
|
|
7
|
+
此前针对 #224 补齐 GPT-6 Sol/Luna、GPT-6.1 Sol、Gemini 3.8 Flash、Claude Fable 5.1、Opus 5.5 等模型,并按公开价格页面扩充其他模型。内置第三方目录包含 290 个「厂商 / 模型」条目、191 个不同模型 ID(含官方别名和历史快照 ID);其中 288 条有可执行价格,2 条明确未核价。DeepSeek 主表单独保留。OpenRouter 在启动及小时级定时检查时按跨重启的一小时冷却补充本渠道模型,失败或中断也保留冷却;手动同步仍可立即执行。静态目录的数量不是在线目录的上限。
|
|
8
8
|
|
|
9
9
|
### 10 月 15 日更新
|
|
10
10
|
|
|
@@ -44,7 +44,7 @@ Haiku 5.5 按 100,000 输入 Token 分档,缓存读取和写入也计入阈值
|
|
|
44
44
|
|
|
45
45
|
## English
|
|
46
46
|
|
|
47
|
-
The third-party catalog now contains 290 provider/model entries and 191 distinct model IDs, including official aliases and dated snapshots: 288 executable prices and 2 explicitly unpriced entries. The separate DeepSeek table remains intact. OpenRouter
|
|
47
|
+
The third-party catalog now contains 290 provider/model entries and 191 distinct model IDs, including official aliases and dated snapshots: 288 executable prices and 2 explicitly unpriced entries. The separate DeepSeek table remains intact. OpenRouter startup and hourly checks share a persistent one-hour cooldown, including after failures or interrupted downloads. Manual synchronization can refresh immediately.
|
|
48
48
|
|
|
49
49
|
Use direct vendor IDs for their own API prices, `opencode-zen` for all 87 currently published Zen PAYG endpoints, and `opencode-go` for all 32 currently published Go subscription-reference endpoints. Historical host IDs `zen` / `opencode` retain their Go meaning; manually entered prices and explicit mappings win. These are pricing keys, not newly registered inference providers. If a PAYG host uses a historical name, explicitly map its model to `opencode-zen:<model ID>` and set that host model’s Plan/API class to API. A model-level Plan/API override remains authoritative. Catalog growth does not infer new subscription usage from a bare model name.
|
|
50
50
|
|
|
@@ -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.
|