dsh-cost-meter 1.9.6 → 1.9.8
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 +8 -8
- package/README.zh-CN.md +8 -8
- package/docs/update-notes-1.9.7.md +26 -0
- package/docs/update-notes-1.9.8.md +49 -0
- package/lib/client.js +5 -5
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -10,20 +10,20 @@ Community and feedback: [Join the WeChat group →](#community). The WeChat grou
|
|
|
10
10
|
|
|
11
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)
|
|
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.8** fixes peak/off-peak popups being covered or unclickable with Deep Whale skins, and prevents floating widgets from swallowing sidebar-guide actions. Both popup positions retain an opaque theme background and working dismissal buttons.
|
|
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.8](docs/update-notes-1.9.8.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
|
|
|
@@ -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.8`** — 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.8/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.8
|
|
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.8.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.8
|
|
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
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
|
|
11
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 十一家,含 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.8** 修复峰谷弹窗与 Deep Whale 皮肤组合时被页面压住、无法点击的问题,同时修复鲸鱼挂件拦截侧栏引导按钮;居中和右下角提醒均保持不透明背景并可正常关闭。
|
|
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.8](docs/update-notes-1.9.8.md#中文)。更新后完全重启 DSH。
|
|
27
27
|
|
|
28
28
|
声明范围内的宿主记录与此前的 0.1.x 历史见[兼容记录](docs/host-compatibility.md);逐版本清单在 `package.json` 的 `dsh.compatibility.dshReleases`。
|
|
29
29
|
|
|
@@ -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.8`**,建议先下载审阅再运行):
|
|
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.8/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.8
|
|
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.8.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.8
|
|
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 上实测可用。
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# v1.9.7
|
|
2
|
+
|
|
3
|
+
## 中文
|
|
4
|
+
|
|
5
|
+
修复“试试更轻巧的侧栏”提示无法关闭的问题。
|
|
6
|
+
|
|
7
|
+
- 提示位置跟随 DSH 的窗口浮层位置,关闭按钮完整避开桌面端标题栏的拖动区域。窄窗口、全屏、macOS 标题栏和网页端分别按实际可用空间定位。
|
|
8
|
+
- 引导改用浏览器的非模态浮层,保持页面其他操作可用,避免皮肤或布局插件的容器变换、裁切和普通高层级覆盖。背景保留皮肤色调并保持不透明,卡片明确接收鼠标事件且不作为窗口拖动区。
|
|
9
|
+
- 同一页面因插件布局重复挂载提示时,一次关闭同步隐藏所有实例。关闭标记保留在本机,不改变用户的简化显示选择;设置保存失败或卡住时仍可关闭,本地存储不可用时当前提示也立即消失。
|
|
10
|
+
- 不支持浏览器浮层 API 时回退到固定位置显示;关闭仍可操作。
|
|
11
|
+
|
|
12
|
+
本地使用已构建客户端和真实 Chrome,覆盖深色、浅色、半透明皮肤,以及 Windows 普通/窄窗口、macOS 标题栏、全屏、手机宽度网页共 15 组显示与点击场景。测试包含变换/裁切/禁用鼠标事件的插件容器、普通高层级覆盖、重复挂载、保存失败与等待、刷新、Escape 和旧 API 回退。上述插件场景使用隔离夹具模拟,未逐个运行第三方插件;测试无外部请求和模型调用。
|
|
13
|
+
|
|
14
|
+
安装更新后,完全退出 DSH(包括托盘)再打开。
|
|
15
|
+
|
|
16
|
+
## English
|
|
17
|
+
|
|
18
|
+
Fixes dismissal of the “A lighter sidebar” introduction.
|
|
19
|
+
|
|
20
|
+
The guide follows DSH window overlay positioning so the complete close button stays below native titlebars. A non-modal browser popover escapes transformed or clipped plugin containers and ordinary stacking contexts while keeping the page interactive. Theme colors remain intact with an opaque background and explicit pointer handling.
|
|
21
|
+
|
|
22
|
+
Dismissing one of several duplicated slot instances closes all of them. Dismissal never waits for settings saves and remains available during failed or pending saves. Local storage remembers dismissal without changing the user's layout selection; unavailable storage still allows the current guide to close. Browsers without the popover API retain a fixed-position fallback.
|
|
23
|
+
|
|
24
|
+
A real Chrome regression exercises the built client across three synthetic skins and five window configurations, including obstructing plugin containers, duplicated slots, click targets, reloads, offline/pending saves, Escape and API fallback. Plugin layouts are simulated fixtures rather than full third-party plugin installations. No external or model requests are made.
|
|
25
|
+
|
|
26
|
+
Fully quit DSH, including its tray process, and reopen after installing this update.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# v1.9.8
|
|
2
|
+
|
|
3
|
+
## 中文
|
|
4
|
+
|
|
5
|
+
### 修复 Deep Whale 皮肤下峰谷提醒被遮挡、无法点击
|
|
6
|
+
|
|
7
|
+
峰谷提醒此前仍是侧栏容器内的普通固定浮层。页面内容可能从上方覆盖它,同时提醒会继承宿主容器的鼠标禁用或窗口拖动属性,造成看似“透过去”、按钮无法点击。
|
|
8
|
+
|
|
9
|
+
现在峰谷提醒和侧栏引导共用浏览器最上层浮层;提醒明确接收鼠标事件并退出窗口拖动区域,保留不透明主题背景。居中、右下角、窄窗口均可点击“知道了”,关闭不依赖设置保存。弹窗之外的页面保持可操作。
|
|
10
|
+
|
|
11
|
+
本地加载 `dsh-deep-whale` 实际发布的 Maid Atelier `0.1.8` 与 Orca Link `0.1.8` 前端,覆盖亮色、深色、两种位置和三种窗口宽度,共 16 个组合;另检查真实切换时刻的关闭记忆、触屏、键盘以及页面级事件拦截。持续回归使用可复现容器变换、裁切、透明度和层级的本地样式,不依赖下载第三方包。
|
|
12
|
+
|
|
13
|
+
### 修复挂件拦截侧栏引导点击
|
|
14
|
+
|
|
15
|
+
v1.9.7 已解决提示被标题栏和容器遮挡的问题。本轮用实际插件前端组合检查时,进一步复现:鲸鱼挂件使用不透明自定义角色图并与提示按钮重叠时,会在 document 捕获阶段按图像坐标拦截点击,即使提示处于浏览器最上层也会受影响。
|
|
16
|
+
|
|
17
|
+
费用插件现在只在自己的侧栏引导范围内提前处理鼠标与触屏事件,“关闭”“保留当前显示”“开启简化显示”均可操作。布局选择只保存一次,关闭继续独立于设置保存。引导之外的页面操作、以及从外部开始后释放到引导区域的拖动,继续交给原有处理器。不修改或关闭第三方插件。
|
|
18
|
+
|
|
19
|
+
### 实际前端组合验证
|
|
20
|
+
|
|
21
|
+
| 插件 | npm 版本 | 本轮验证 |
|
|
22
|
+
| --- | --- | --- |
|
|
23
|
+
| Wallpaper Engine | `dsh-plugin-wallpaper-engine@1.3.3` | 实际前端与玻璃样式 |
|
|
24
|
+
| 鲸鱼挂件 | `dsh-whale-widget@0.4.2` | 实际前端、鼠标捕获、不透明角色图重叠 |
|
|
25
|
+
| Archive Manager | `@michengai/dsh-archive-manager@1.1.2` | 实际前端注册与样式 |
|
|
26
|
+
| 可组合记忆 | `dsh-mnemon@0.5.32` | 实际前端注册 |
|
|
27
|
+
| Free Search | `dsh-free-search@0.9.5` | 实际前端注册 |
|
|
28
|
+
| 插件市场 | `dshmarket@1.66.39` | 实际前端注册 |
|
|
29
|
+
| dsh-ops | `dsh-ops@0.3.0` | 无前端入口,检查包声明与宿主代码 |
|
|
30
|
+
|
|
31
|
+
包从 npm 下载并校验 SHA-512;六个实际前端在隔离 Chrome 页面共同加载,后台接口使用测试数据。测试不运行模型、搜索、记忆服务或命令工具,不读取用户凭据,也不向正在使用的桌面端额外安装这些第三方插件。此表验证的是提示交互兼容,不代表这些插件的全部业务功能或历史版本均已测试。
|
|
32
|
+
|
|
33
|
+
新增持续回归覆盖页面级鼠标拦截、三个按钮各执行一次、触屏关闭、外部拖动释放及页面其他按钮操作。
|
|
34
|
+
|
|
35
|
+
更新后完全退出 DSH(包括托盘)再打开。
|
|
36
|
+
|
|
37
|
+
## English
|
|
38
|
+
|
|
39
|
+
Fixes peak/off-peak reminders being painted underneath conversation content or losing pointer interaction with Deep Whale skins. Reminders now share the browser top-layer card used by the sidebar guide, explicitly accept pointer input, avoid native window dragging and retain an opaque theme background. Both center and corner positions remain dismissible without a settings save.
|
|
40
|
+
|
|
41
|
+
The published Maid Atelier 0.1.8 and Orca Link 0.1.8 browser clients were loaded locally across light/dark themes, both positions and three viewport widths (16 combinations). Real-transition dismissal, touch, keyboard and document-capture interception are also covered. CI uses local stacking/clipping fixtures without downloading third-party packages.
|
|
42
|
+
|
|
43
|
+
Fixes sidebar-guide actions being intercepted by floating widgets. An actual `dsh-whale-widget@0.4.2` client with an opaque custom avatar can consume document-capture events by image coordinates even when the guide is visually above it.
|
|
44
|
+
|
|
45
|
+
The cost meter now handles events within its own guide before document-level interceptors. Dismissal and both layout choices remain usable, with one settings write per choice. Unrelated page interactions and drags that started outside the guide continue to reach their existing handlers. Third-party plugin code and configuration are unchanged.
|
|
46
|
+
|
|
47
|
+
The real published browser clients of Wallpaper Engine 1.3.3, Whale Widget 0.4.2, Archive Manager 1.1.2, Mnemon 0.5.32, Free Search 0.9.5 and dshmarket 1.66.39 were loaded together in an isolated Chrome page with fixture backend data. Package integrity was verified. dsh-ops 0.3.0 has no browser client and was inspected statically. This validates guide interaction, not every plugin feature or historical version. No model, search, memory-provider or command-tool calls are made.
|
|
48
|
+
|
|
49
|
+
Fully quit DSH, including its tray process, and reopen after updating.
|