dsh-cost-meter 1.9.42 → 1.9.44

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 dsh-cost-meter contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 dsh-cost-meter contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
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.42-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
9
+ [![version](https://img.shields.io/badge/version-1.9.44-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.42** fixes the stuck balance-refresh notice, guards cross-currency price updates, and adds a compact text-only sidebar.
19
+ **v1.9.44** fixes peak/off-peak markers and updates 32 model-catalog records, including Kimi K3.1 Pro / Highspeed and MiniMax M3.1 Flash, plus current Kimi memberships and MiniMax M Plan.
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.42](docs/update-notes-1.9.42.md#english). Fully restart DSH after updating.
23
+ Release notes: [v1.9.44](docs/update-notes-1.9.44.md#english). Fully restart DSH after updating.
24
24
 
25
25
  ![Promo art](docs/promo.en.png)
26
26
 
@@ -356,22 +356,22 @@ On Node.js 20, use `npm install -g pnpm@10` instead. See [pnpm installation and
356
356
  dsh plugin --profile web add dsh-cost-meter
357
357
  ```
358
358
 
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.42`** — review the script before running):
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.44`** — review the script before running):
360
360
 
361
361
  ```powershell
362
- irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.42/install.ps1 | iex
362
+ irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.44/install.ps1 | iex
363
363
  ```
364
364
 
365
365
  **Or a plain command line** (the machine must already have pnpm and git; also pinned to the tag):
366
366
 
367
367
  ```sh
368
- dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.42
368
+ dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.44
369
369
  ```
370
370
 
371
371
  Without git, use the GitHub tag archive:
372
372
 
373
373
  ```sh
374
- dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.42.tar.gz
374
+ dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.44.tar.gz
375
375
  ```
376
376
 
377
377
  After installing, **restart** `dsh web` (plugin rows, the Typert manifest and the client bundle are all scanned at startup):
@@ -436,7 +436,7 @@ Workarounds:
436
436
 
437
437
  ```yaml
438
438
  minimumReleaseAgeExclude:
439
- - dsh-cost-meter@1.9.42
439
+ - dsh-cost-meter@1.9.44
440
440
  ```
441
441
 
442
442
  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.42-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
9
+ [![version](https://img.shields.io/badge/version-1.9.44-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.42** 修复余额刷新提醒点不掉的问题,保护跨币种价格更新,并新增仅显示紧凑文本的侧栏开关。
19
+ **v1.9.44** 修复峰谷游标,更新 32 条模型目录记录,补入 Kimi K3.1 Pro / 高速版、MiniMax M3.1 Flash,并更新 Kimi 新套餐与 MiniMax M Plan。
20
20
 
21
21
  **宿主要求:DSH 0.2.0 起支持** · 适配目标 **0.2.1-rc.2**(npm `next`)。完整声明、历史记录与安装排障见下方展开项。
22
22
 
23
- 更新说明:[v1.9.42](docs/update-notes-1.9.42.md#中文)。更新后完全重启 DSH。
23
+ 更新说明:[v1.9.44](docs/update-notes-1.9.44.md#中文)。更新后完全重启 DSH。
24
24
 
25
25
  ![宣传图](docs/promo.png)
26
26
 
@@ -356,22 +356,22 @@ Node.js 20 请改用 `npm install -g pnpm@10`。版本要求见 [pnpm 官方安
356
356
  dsh plugin --profile web add dsh-cost-meter
357
357
  ```
358
358
 
359
- **PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.42`**,建议先下载审阅再运行):
359
+ **PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.44`**,建议先下载审阅再运行):
360
360
 
361
361
  ```powershell
362
- irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.42/install.ps1 | iex
362
+ irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.44/install.ps1 | iex
363
363
  ```
364
364
 
365
365
  **或直接命令行**(机器上需已有 pnpm 与 git;同样固定到 tag):
366
366
 
367
367
  ```sh
368
- dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.42
368
+ dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.44
369
369
  ```
370
370
 
371
371
  没有 git 时可用 GitHub tag 打包直链:
372
372
 
373
373
  ```sh
374
- dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.42.tar.gz
374
+ dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.44.tar.gz
375
375
  ```
376
376
 
377
377
  安装后**重启** `dsh web`(插件行、Typert 清单与客户端 bundle 均在启动时扫描):
@@ -436,7 +436,7 @@ DSH **0.2.1-rc.1 / 0.2.1-rc.2** 宿主自带 pnpm **11.28.5**,默认启用内
436
436
 
437
437
  ```yaml
438
438
  minimumReleaseAgeExclude:
439
- - dsh-cost-meter@1.9.42
439
+ - dsh-cost-meter@1.9.44
440
440
  ```
441
441
 
442
442
  3. 仅本次操作用 CLI 透传 pnpm 参数:`dsh plugin --profile desktop remove dsh-cost-meter --config.minimum-release-age=0`;若只是 lockfile 校验阶段失败,可改用 `--trust-lockfile`。这两个参数已在本机 pnpm 11.28.5 临时 Profile 上实测可用。
@@ -0,0 +1,20 @@
1
+ # billion-context 目标识别与空闲回归(1.9.43)
2
+
3
+ ## 原因与边界
4
+
5
+ [#432](https://github.com/Han-1413141/dsh-cost-meter/issues/432) 的报告者 [@ZiYuan258](https://github.com/ZiYuan258) 提供了 Windows 事件循环探针、I/O 测量和根因定位。旧代码每 3 秒触发计费维护,识别函数设 10 秒间隔,因此约每 12 秒调用一次宿主 `listBundles()`。已发布的 DSH PluginManager 在返回 Promise 前同步读取完整插件清单、包元数据与展示资料。
6
+
7
+ 新实现不调用该 API,也不在失败时回退到全量扫描。不直接把 profile 中的包名视为“运行中”:真实 Loader 的祖先禁用状态和 ACTIVE 实例决定是否存在原生代理,单独运行的 compaction gate 不算代理。版本来自目标包身份校验;别名、pnpm 目录链接与 file URL 使用目标路径,文件入口先解析真实路径。新宿主的纯数据运行时解析表用于补充模块路径,避免读取全量展示元数据。
8
+
9
+ 文件读取异步、单路执行,单个 manifest 限制为 256 KiB,路径与候选数都有上限。非普通文件、损坏或过大的 manifest 不会被视为有效包。成功结果按已加载模块 callback 缓存;只换 fiber 而复用 Node 缓存模块时仍保留原版本。读取失败可重试,卸载或销毁期间完成的旧请求不会重新激活状态。符号链接 profile 的实际路径也参与解析;外部 linked parent 的复杂 peer-dependency 拦截若无法确定,则保留未知状态,不猜版本、不清除已收到的自动适配诊断,仍由实际请求回执决定计费覆盖。
10
+
11
+ 这些信息用于兼容提示,不替代逐次请求回执。日志导入、失败重试、宿主补记与去重算法未改变;无 Loader 的嵌入场景保留已有自动适配与回执路径。
12
+
13
+ ## 自动回归
14
+
15
+ - `test/billion-context-peer.mjs`:328 个无关包;冷识别仅打开 1 个目标 manifest;1,000 次缓存读取和 24 次实际计费定时器回调(模拟 72 秒)都产生 **0 次 `listBundles()` 调用、0 次空闲目标文件读取**。暂停异步文件读取期间心跳仍能运行,最大并发打开数为 1。
16
+ - 同一测试覆盖未安装、启用、有效禁用状态、加载失败、卸载、重载、版本变化、别名、文件链接、畸形/超大/FIFO 文件、发现请求合并与销毁,以及无代理时仍允许宿主计费补记。
17
+ - `test/billion-context-peer-host.mjs`:用真实 Cordis Loader 和发布版 PluginManager 在 DSH `0.2.0-rc.1` 与 `0.2.1-rc.3` 上验证生命周期。测试明确区分“同模块重新启用”和“实际新 callback 加载”,不能只改磁盘版本号就宣称升级完成。
18
+ - `test/billion-context-billing.mjs`、`test/billion-context-auto.mjs`:保留真实 billion-context 发布包矩阵;另有 null usage、回执、归档、恢复与增量目录扫描测试。
19
+
20
+ 本地 Linux 的一次冷全量清单读取约 9 ms,1,000 次真实宿主缓存识别合计约 90 ms。数字随机器而变;关键可复验断言是空闲全量扫描和文件读取均为零。**这不是报告者 Windows 1.5–6 秒停顿已消失的实机验证。** Windows 需要升级、完全重启宿主,再运行原探针比较。
@@ -0,0 +1,60 @@
1
+ # 2026-10-28 模型与套餐目录更新
2
+
3
+ 本次新增或修正 32 条渠道价格记录。完整内置目录现有 20 个厂商 / 渠道键、358 条记录、223 个不同模型 ID;353 条已核价,5 条为 `unpriced`。DeepSeek 主表独立保存。机器可读文件为 [模型价格](provider-pricing.json)和[套餐目录](subscription-catalog.json)。
4
+
5
+ ## 新模型与价格
6
+
7
+ 以下为每百万 token 的美元价。缓存写入按默认 5 分钟 TTL;“—”表示该条目未提供独立写入价。
8
+
9
+ | 渠道 | 模型 ID | 输入 | 缓存读取 | 缓存写入 | 输出 |
10
+ |---|---|---:|---:|---:|---:|
11
+ | Kimi API | `kimi-k3.1-pro` | 2 | 0.2 | 2 | 10 |
12
+ | Kimi API | `kimi-k3.1-pro-highspeed` | 4 | 0.2 | 4 | 20 |
13
+ | MiniMax API | `MiniMax-M3.1-Flash` | 0.15 | 0.015 | — | 0.6 |
14
+ | 百炼国际站,新加坡 International | `qwen3.8-flash` | 0.15 | 0.016 | 0.2 | 0.47 |
15
+ | TokenHub,新加坡 | `hy4-preview` | 0.834 | 0.042 | — | 2.501 |
16
+ | OpenCode Go | `kimi-k3.1-pro` | 2 | 0.2 | 2 | 10 |
17
+ | OpenCode Go | `minimax-m3.1-flash` | 0.15 | 0.015 | — | 0.6 |
18
+ | OpenCode Go | `step-5-preview` | 1 | 0.1 | — | 2.7 |
19
+ | OpenCode Go | `gemini-4-argon` | 2 | 0.1 | — | 10 |
20
+ | OpenCode Zen | `muse-wonder-1.0` | 4 | 0.2 | — | 20 |
21
+
22
+ Kimi Pro / Highspeed 的人民币输入、读取、写入、输出分别为 13 / 1.3 / 13 / 68 和 26 / 1.3 / 26 / 136;MiniMax M3.1 Flash 为 1 / 0.1 / — / 4。它们按官方报价独立保存。Kimi 1 小时缓存写入费在条目说明中列出,当前默认价仍使用 5 分钟写入费。
23
+
24
+ Kimi Code 的 `k3.1-pro`、`k3.1-pro-highspeed`、`k3` 使用对应 API 价格展示 token 等值费用;`k3-256k`、`kimi-for-coding`(K2.8 Preview)及 `kimi-for-coding-highspeed` 保持未核价,额度仍由订阅查询显示。MiniMax 的 `MiniMax-M3.1-Flash-Preview` 兼容名称按官方现行 M3.1 Flash 价格记录。
25
+
26
+ OpenCode Zen 新增 `glm-5.3-flash-free`、`beam-free`、`flint-40b-free`、`nemotron-3.5-super-vl-free`;Go 新增 `beam-free`、`iceman-contributor-free`。免费价只属于列明的渠道。Gemini 4 Argon 的当前促销价截至 2026-11-30。
27
+
28
+ 同时补齐 Zen / Go 的 Kimi K3 缓存写入价,并将 Zen GPT-6.1 Sol 缓存读取更新为 0.1,超过 272K 输入为 0.2。OpenRouter 增加 Kimi K3.1 Pro、MiniMax M3.1 Flash、Nemotron 3.5 Super VL(付费 / 免费)和 Muse Wonder 的启动快照,在线目录仍按原有机制刷新。
29
+
30
+ ## 套餐与额度
31
+
32
+ | 产品 | 当前档位 | 本次适配 |
33
+ |---|---|---|
34
+ | Kimi | Go / Plus / Pro / Max / Ultra | Plus 起有 Kimi Code;Pro 起有高速版及 1M 上下文。新套餐显示 5 小时和月总额度;旧套餐保留周窗口 |
35
+ | MiniMax M Plan | Go / Explore / Build | 三档均含 M3.1 Flash,Explore / Build 另含 H3 视频;沿用现有额度接口 |
36
+ | MiniMax Token Plan | Plus / Max / Ultra | 保留原套餐与查询 |
37
+ | OpenCode | Go / Go Plus | 补入新模型;月费为 $10 / $40,各模型额度不同 |
38
+ | 腾讯 Token Plan | 通用 / Hy,均有 Lite / Standard / Pro / Max | 补充 Hy 名称与 provider 别名,使用现有套餐归属统计 |
39
+
40
+ Kimi 解析器同时接受当前嵌套响应、camelCase / snake_case 用量字段和旧版计数。旧计数存在时优先使用计数,避免把同一响应中的零比例当成真实剩余额度;没有周字段的新套餐不会生成周窗口。`TIME_UNIT_MINUTE: 300` 正确归为 5 小时。
41
+
42
+ 新增的 Kimi Coding Plan、MiniMax M Plan provider 按订阅分类,查询开关不改变计费分类;用户指定的 API 分类仍优先。现有 `kimi-code` 沿用订阅插件识别规则,通用 `kimi` / `minimax` provider 保留原有配置。
43
+
44
+ ## 游标修复与升级
45
+
46
+ [#434](https://github.com/Han-1413141/dsh-cost-meter/issues/434) 由 [@shutongX](https://github.com/shutongX) 报告:紧凑、经典及收起侧栏的峰谷游标固定在各段中间。修复后,工作日游标在当前峰 / 谷半段内按时间移动,周末和节假日在整条轨道上移动;页面恢复可见时立即刷新。
47
+
48
+ 目录迁移只添加新 ID、更新未被修改的旧默认价。手动价格、主动取消挂载和既有账本金额保留。价格目录用于费用匹配,推理模型配置仍由 DSH 管理。
49
+
50
+ ## 官方来源
51
+
52
+ - [Kimi API 定价](https://platform.kimi.ai/docs/pricing/chat)、[国内报价](https://www.kimi.com/resources/kimi-k3-1-pro-pricing)、[国际报价](https://www.kimi.ai/zh-hans/resources/kimi-k3-1-pro-pricing)
53
+ - [Kimi Code 模型](https://www.kimi.com/code/docs/kimi-code/models.html)、[会员权益](https://www.kimi.com/code/docs/kimi-code/membership.html)
54
+ - [MiniMax API 定价](https://platform.minimax.io/docs/pricing/overview)、[国内定价](https://platform.minimax.cn/docs/pricing/overview)、[M Plan](https://platform.minimax.io/docs/m-plan/intro)
55
+ - [Qwen3.8 Flash](https://www.alibabacloud.com/help/en/model-studio/qwen3-8-flash)、[TokenHub 模型价格](https://intl.cloud.tencent.com/document/product/1300/78937)、[腾讯套餐](https://cloud.tencent.com/document/product/1823/130060)
56
+ - [OpenCode 按量价格](https://opencode.ai/v2/docs/console/models/)、[Go 价格与额度](https://opencode.ai/v2/docs/console/go/)、[OpenRouter 模型接口](https://openrouter.ai/api/v1/models)
57
+
58
+ ## English
59
+
60
+ This update adds or corrects 32 provider-scoped records, including Kimi K3.1 Pro / Highspeed, MiniMax M3.1 Flash, direct Qwen3.8 Flash and Hy4 preview, current OpenCode Go / Zen additions and five OpenRouter snapshots. It also updates Kimi and MiniMax plan names, supports current and legacy Kimi quota payloads, and fixes stationary peak-period markers in all four legacy sidebar layouts. Migration preserves customized prices, deliberate unmounts and recorded charges. Public sources are linked above; the complete checked data is shipped in the two JSON catalogs.
@@ -42,7 +42,7 @@ Codex 额度的真实数据来自已启用并登录的 `dsh-codex-subscription`
42
42
 
43
43
  选中峰谷时段后,右侧以三张紧凑的实际效果卡片展示进度条、细条和分段样式,复用侧栏呈现函数,包含当前时段文字、橙蓝轨道和倒计时。蓝色边框和“已选”标明当前选择,样式说明放在悬停提示中,点击后立即更新左侧预览。右侧收窄并减少内边距和重复说明;桌面设置保持左侧预览、右侧调整,与其他组件使用相同的窄屏换行条件。显示时间的完整选项放在右侧卡片下方。预览中超长的时段文字以省略号收起,保留可见轨道,悬停或键盘聚焦可读取完整说明。样式示例只渲染峰谷组件,不挂载余额、额度和模型卡片,也不会把示例开关写入配置。
44
44
 
45
- 已开启峰谷计价且未隐藏峰谷显示的用户,更新后首次进入会看到一次介绍和三种布局预览。可以使用新进度条,也可以保留原样;关闭或选择后不再重复提示。原细条和分段样式保留。介绍中的预览只读取配置和本机时间,不查询余额、不发送模型请求、不改变计价或历史记录。新界面按需加载,页面隐藏时停止刷新,关闭组件时清理定时器和监听器。
45
+ 1.9.43 起,五个显示介绍合并为一个可关闭的首次提示,统一指向「设置 → 费用 → 显示」。已有任一介绍的已读记录会抑制新提示;关闭不会修改显示、查询或计费偏好。峰谷三种布局及预览仍可随时在显示设置中选择,原细条和分段样式保留。预览只读取配置和本机时间,不查询余额、不发送模型请求、不改变计价或历史记录。界面按需加载,页面隐藏时停止刷新,关闭组件时清理定时器和监听器。
46
46
 
47
47
  “费用 → 显示”提供“跟随皮肤透明度”,默认关闭。开启后,费用页共用设置窗口的背景,统计正文不再另铺实心底色;费用明细、引导、提醒与下拉浮层使用皮肤层色,保留至少 90% 不透明度。关闭后立即恢复不透明遮挡效果。该开关只修改插件自己的界面,保存后重启仍生效。
48
48
 
@@ -25,3 +25,35 @@ GitHub Actions 工作流 `plugin-compatibility-watch` 每日北京时间 08:23
25
25
  基线更新为 `0.1.206 / 3.1.6 / 0.2.0-alpha.10`,保存对应发布包的 SHA-512 完整性。Connect 的账号、认证和额度服务使用本地模拟对象;原版插件初始化、OAuth 登录与外部模型请求没有执行。检查入口为 `test/codex-connect-published.mjs`,通过 `DSH_TEST_CONNECT_PACKAGE` 指定已下载的 npm 压缩包。
26
26
 
27
27
  2026-10-26 已验证 `billion-context@0.1.208` 与 `dsh-codex-subscription@3.1.7`,处理 `github-actions[bot]` 的 [#416](https://github.com/Han-1413141/dsh-cost-meter/issues/416)、[#417](https://github.com/Han-1413141/dsh-cost-meter/issues/417)。前者接口指纹未变,实际发布包的四协议计费、压缩、重试、父子会话、历史回放与原版 CLI 自动接入检查通过。后者 RPC 分发变化涉及语音取消、错误分类及切换账号后的模型目录初始化,`usage/read` 分支未变;实际发布包的单周、双窗口、强制刷新与失败回退检查通过。两版加入 CI,保留旧版本及 Connect 基线。
28
+
29
+ ## 2026-10-28:Codex Subscription 实际发布包复核
30
+
31
+ 复核 `github-actions[bot]` 在 [#430](https://github.com/Han-1413141/dsh-cost-meter/issues/430) 报告的接入指纹变化。Issue 最后报告 `3.1.9`,处理时 [npm 官方 latest 元数据](https://registry.npmjs.org/dsh-codex-subscription/latest) 已是 `3.2.0`。下载并逐包核对官方 SHA-512,保留 `3.1.7` 对照,同时验证 `3.1.8`、`3.1.9` 和 `3.2.0`;通过运行回归后才把 Subscription 基线提升为 `3.2.0`,不改其他插件基线。
32
+
33
+ | 版本 | 与前版的接入差异 | 运行结论 |
34
+ | --- | --- | --- |
35
+ | [3.1.8](https://registry.npmjs.org/dsh-codex-subscription/3.1.8) | 宿主依赖范围变化;四个被监控函数的语法指纹不变。新增默认推理强度等功能不改变 `usage` → `usageReader.read`。 | 额度接入兼容。 |
36
+ | [3.1.9](https://registry.npmjs.org/dsh-codex-subscription/3.1.9) | 传输和 RPC 分发新增 native-voice 路由及本机 Origin 限制;额度路径仍为同源 `/api/codex-subscription/usage`。 | 额度解析、读取和失败回退兼容;无需修改费用插件运行时代码。 |
37
+ | [3.2.0](https://registry.npmjs.org/dsh-codex-subscription/3.2.0) | RPC 新增输入预测;额度解析器及 `usage` 分发分支不变,但实际 reader 改成按调用方管理共享请求的取消。 | 两个调用方中一个取消不会影响另一个;全部取消或清缓存会中止旧请求,后续读取不接收旧缓存。 |
38
+
39
+ 监控额外纳入 `createCodexUsageReader` 指纹,并用合成回归确认:即使额度字段、解析器和 RPC 均未改变,reader 单独变化也会报告。它仍是变更提示,不能替代运行测试。
40
+
41
+ 原测试把发布包的所有函数声明放进 VM;`3.1.9` 新增的、与额度无关的 remote-history 函数包含 `import.meta`,导致测试脚本先报语法错误。现仅运行审阅过的额度相关原版声明,不改写上游函数,不执行插件初始化、登录、模型、语音或远程控制功能。
42
+
43
+ `test/codex-subscription-published.mjs` 现在覆盖:
44
+
45
+ - 原版解析器的默认时间、单周、5h/周双窗口、0%/100%、缺失和非法字段、未知窗口,以及敏感字段不进入浏览器投影。
46
+ - 原版 `createCodexUsageReader`、RPC 分发和传输直至本插件解析:默认缓存、强制刷新、缓存过期、结果克隆、并发共享、切换账号清缓存,以及认证与凭据快照不一致时重读。
47
+ - 缺失登录、过期登录、401/403、429 `Retry-After`、错误正文脱敏;强制刷新不会绕过上游失败冷却。凭据仅为测试字符串,费用插件调用载荷只有 `{ force }`,不转发 Bearer 或账号 ID。
48
+ - 真实宿主 `HostConnectionService` 的认证/Origin 拒绝、POST 路由、非法 JSON/信封/批量请求、卸载与部分注册失败清理;支持独立 Peer 的宿主另验非 owner 拒绝。
49
+ - `subscription` 数据源从配置保存、宿主 schema 到浏览器解析的往返,以及默认 `auto` / 关闭状态。另跑现有客户端回归确认失败后的自动回退与旧来源竞态隔离。
50
+
51
+ 本地矩阵:`3.1.2 / 3.1.4 / 3.1.6 / 3.1.7 / 3.1.8 / 3.1.9 / 3.2.0` × 真实 `dsh-client-connection@0.2.0-rc.1 / 0.2.1-rc.3`,共 14 次通过。CI 两个既有宿主任务均保留旧版本并加入三个新版本。测试在 Linux 执行,验证的是跨平台的原版 JavaScript 额度接入,不宣称实际 Windows 桌面/OAuth 已端到端验证。实际账户及付费模型请求均为 0;这不是对上游插件其他功能的完整认证。
52
+
53
+ 复现(`DSH_TEST_NODE_MODULES` 指向已安装的测试宿主,`DSH_TEST_CODEX_PACKAGE` 指向核对完整性的官方 npm 压缩包):
54
+
55
+ ```sh
56
+ DSH_TEST_NODE_MODULES=/path/to/host/node_modules \
57
+ DSH_TEST_CODEX_PACKAGE=/path/to/dsh-codex-subscription-3.2.0.tgz \
58
+ node test/codex-subscription-published.mjs
59
+ ```
@@ -1,10 +1,14 @@
1
1
  # 2026-10 模型价格目录与渠道选择 / Model pricing and routes
2
2
 
3
- 核对日期 / Checked: 2026-10-15
3
+ 核对日期 / Checked: 2026-10-28
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
+ ### 10 月 28 日更新
8
+
9
+ 最新补充、套餐变更和来源见 [更新明细](catalog-2026-10-28.md)。当前 OpenCode 端点已按 10 月 28 日页面核对:Zen 83 个、Go 30 个;下文的 10 月 15 日数量和价格差异保留为当日记录。当前 Zen GPT-6.1 Sol 缓存读已为 $0.10,超过 272K 输入为 $0.20。
10
+
11
+ 此前针对 #224 补齐 GPT-6 Sol/Luna、GPT-6.1 Sol、Gemini 3.8 Flash、Claude Fable 5.1、Opus 5.5 等模型,并按公开价格页面扩充其他模型。内置第三方目录包含 358 个「厂商 / 模型」条目、223 个不同模型 ID(含官方别名和历史快照 ID);其中 353 条有可执行价格,5 条明确未核价。DeepSeek 主表单独保留。OpenRouter 在启动及小时级定时检查时按跨重启的一小时冷却补充本渠道模型,失败或中断也保留冷却;手动同步仍可立即执行。静态目录的数量不是在线目录的上限。
8
12
 
9
13
  ### 10 月 15 日更新
10
14
 
@@ -15,8 +19,8 @@ Haiku 5.5 按 100,000 输入 Token 分档,缓存读取和写入也计入阈值
15
19
  ### 先选渠道,再选模型
16
20
 
17
21
  - `openai`、`anthropic`、`google`、`xai`、`mistral`、`z-ai` 使用各自直接 API 的价格。已知厂商不会自动套用另一厂商的模型价
18
- - `opencode-zen` 是本次明确区分的 **Zen 按量渠道**,覆盖核对当天端点表全部 87 个模型(另外保留 4 个历史 ID)
19
- - `opencode-go` 使用 **Go 订阅参考价**,覆盖全部 32 个模型(另外保留 3 个历史 ID);这些价格用于额度和等值费用估算,不代表每次请求额外扣款
22
+ - `opencode-zen` 是本次明确区分的 **Zen 按量渠道**,覆盖当前端点表全部 83 个模型(另外保留 13 个历史 ID)
23
+ - `opencode-go` 使用 **Go 订阅参考价**,覆盖全部 30 个模型(另外保留 11 个历史 ID);这些价格用于额度和等值费用估算,不代表每次请求额外扣款
20
24
  - 为兼容本项目历史宿主配置,`zen` / `opencode` 仍按 Go 别名处理;用户在原渠道手写的价格条目及显式映射优先。按量 Zen 请选择 `opencode-zen` 的价格条目,不要依靠历史别名猜测。这是价格渠道键,不会创建宿主推理 Provider;宿主仍使用历史名字时,可显式映射到 `opencode-zen:<模型 ID>`,并把该宿主模型的 Plan/API 分类指定为 API。模型级 Plan/API 覆盖仍优先于自动分类
21
25
  - 缺失渠道的旧宿主兼容推断只保留旧 Go 模型集合,并且要求该模型仍在 Go 渠道表中。新增目录条目不会仅因同名就把 API 消费变成订阅
22
26
  - `openrouter` 使用完整模型 ID 精确匹配。`:free` / `:online` 等变体、其他路由及本地模型不会借用其价格
@@ -44,9 +48,9 @@ Haiku 5.5 按 100,000 输入 Token 分档,缓存读取和写入也计入阈值
44
48
 
45
49
  ## English
46
50
 
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.
51
+ The third-party catalog now contains 358 provider/model entries and 223 distinct model IDs, including official aliases and dated snapshots: 353 executable prices and 5 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
52
 
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.
53
+ Use direct vendor IDs for their own API prices, `opencode-zen` for all 83 currently published Zen PAYG endpoints, and `opencode-go` for all 30 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
54
 
51
55
  Prices are USD per million tokens. Cache reads/writes and per-request context tiers are separate. OpenAI thresholds count complete input, including cached tokens; xAI's direct 200K boundary is inclusive while Zen's is exclusive. Claude generic cache writes use the published 5-minute tier; 1-hour TTL, Gemini cache storage charged per token-hour, modality-specific prices, tool fees and special processing tiers need separate accounting. Go's DeepSeek tiers use its UTC weekday schedule, not direct DeepSeek's Beijing holiday calendar.
52
56