dsh-usage-state 0.4.9 → 0.4.10
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/CHANGELOG.md +11 -1
- package/README.en.md +3 -3
- package/README.md +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.4.10] - 2026-10-24
|
|
10
|
+
|
|
11
|
+
### Compatibility
|
|
12
|
+
|
|
13
|
+
- 完成 DSH 0.2.1-rc.3 兼容性复验:实际 tarball 在隔离 Web 宿主安装并激活;设置页、getState/describeCredentials、文件凭据优先级、输入框上方状态行及隐藏/API配置往返均通过。
|
|
14
|
+
- 新版 DeepSeek API Key 动态 `/models` 目录可在插件设置及模型选择器中显示,切换新目录模型仍显示同一供应商余额;账号服务的 `getPlatformSession()` / `getBalance(client)` 契约保留。
|
|
15
|
+
- CI 兼容矩阵新增精确 0.2.1-rc.3,保留 rc.1/rc.2 和原锁定基线;344 项完整回归及 rc.3 的 19 项真实 Typert host/browser 与产物契约测试通过。
|
|
16
|
+
- 未发现需要修改运行代码的兼容问题,三个预构建入口沿用0.4.9。现有 engines.dsh 与 dsh-settings peer 范围已覆盖rc.3,支持下界不变。浏览器余额与模型目录使用fixture;真实Desktop登录钱包、凭据落盘和完整视觉验收不计入本次验证。
|
|
17
|
+
|
|
9
18
|
## [0.4.9] - 2026-10-23
|
|
10
19
|
|
|
11
20
|
### Added
|
|
@@ -146,7 +155,8 @@
|
|
|
146
155
|
|
|
147
156
|
0.4.5起建立版本tag/Release;更早发布没有保存这些引用。0.3.0至0.4.4的比较端点来自各npm版本的gitHead;0.2系列引用对应实现提交,不能替代当时没有保存的正式发布产物。早期日期沿用历史版本记录。今后版本应按发布流程建立稳定引用。
|
|
148
157
|
|
|
149
|
-
[Unreleased]: https://github.com/takboo/dsh-usage-state/compare/v0.4.
|
|
158
|
+
[Unreleased]: https://github.com/takboo/dsh-usage-state/compare/v0.4.10...HEAD
|
|
159
|
+
[0.4.10]: https://github.com/takboo/dsh-usage-state/compare/v0.4.9...v0.4.10
|
|
150
160
|
[0.4.9]: https://github.com/takboo/dsh-usage-state/compare/v0.4.8...v0.4.9
|
|
151
161
|
[0.4.8]: https://github.com/takboo/dsh-usage-state/compare/v0.4.7...v0.4.8
|
|
152
162
|
[0.4.7]: https://github.com/takboo/dsh-usage-state/compare/v0.4.6...v0.4.7
|
package/README.en.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://github.com/takboo/dsh-usage-state/actions/workflows/ci.yml) [](https://www.npmjs.com/package/dsh-usage-state)
|
|
6
6
|
|
|
7
|
-
> **0.4.
|
|
7
|
+
> **0.4.10** verifies DSH **0.2.1-rc.3** compatibility, including its dynamic model catalog, while retaining separate account sign-in and API Key balances. See the [GitHub Release](https://github.com/takboo/dsh-usage-state/releases/tag/v0.4.10) for the tarball and checksum and the [Changelog](CHANGELOG.md#0410---2026-10-24) for details.
|
|
8
8
|
|
|
9
9
|
Show the current model provider's **account balance** or **coding-plan quota** above the composer input in [DSH (DeepSeek Harness)](https://github.com/deepseek-ai/deepseek-harness). The line matches the input card's width and preserves the native statistics and context meter.
|
|
10
10
|
|
|
@@ -23,7 +23,7 @@ DeepSeek · ¥58.13
|
|
|
23
23
|
|
|
24
24
|
## Install
|
|
25
25
|
|
|
26
|
-
Requires DSH matching `^0.2.0-rc.2 || ^0.2.1-rc.1` (verified on 0.2.0-rc.2
|
|
26
|
+
Requires DSH matching `^0.2.0-rc.2 || ^0.2.1-rc.1` (verified on 0.2.0-rc.2 and 0.2.1-rc.1/rc.2/rc.3). The prebuilt plugin declares Node ≥20. Install into the `web` profile you actually use.
|
|
27
27
|
|
|
28
28
|
Install from npm:
|
|
29
29
|
|
|
@@ -86,7 +86,7 @@ Provider settings and advanced controls:
|
|
|
86
86
|
|
|
87
87
|
The host schedules refreshes 2 seconds after a turn ends and has a 5-minute fallback timer. The browser reads the RPC mirror every 30 seconds. Ordinary polling initializes a missing or changed account identity, otherwise it does not shorten idle queries to once a minute. Successful requests have a default 60-second minimum; explicit refresh can bypass it, and active retries after failure are not throttled by that successful-request interval. Editing the idle interval reschedules the timer.
|
|
88
88
|
|
|
89
|
-
The plugin queries balances/quotas and reads the selected model and provider catalog. It writes no session logs and reports no readings to third parties. The host does not return stored key values to the browser; a key the user actively pastes is sent through DSH's credential service to the credential file in the selected home. Credential precedence follows the host: DSH 0.2.1-rc.1/rc.2 Web/Desktop prefers saved credentials, with environment values as fallback; 0.2.0-rc.2 prefers the environment. The settings page reflects the host’s actual write permissions.
|
|
89
|
+
The plugin queries balances/quotas and reads the selected model and provider catalog. It writes no session logs and reports no readings to third parties. The host does not return stored key values to the browser; a key the user actively pastes is sent through DSH's credential service to the credential file in the selected home. Credential precedence follows the host: DSH 0.2.1-rc.1/rc.2/rc.3 Web/Desktop prefers saved credentials, with environment values as fallback; 0.2.0-rc.2 prefers the environment. The settings page reflects the host’s actual write permissions.
|
|
90
90
|
|
|
91
91
|
## Known limitations
|
|
92
92
|
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://github.com/takboo/dsh-usage-state/actions/workflows/ci.yml) [](https://www.npmjs.com/package/dsh-usage-state)
|
|
6
6
|
|
|
7
|
-
> **0.4.
|
|
7
|
+
> **0.4.10** 已验证 DSH **0.2.1-rc.3** 兼容性,支持新版动态模型目录,保留账号登录与 API Key 独立余额查询。安装包及校验文件见 [GitHub Release](https://github.com/takboo/dsh-usage-state/releases/tag/v0.4.10),详情见 [更新日志](CHANGELOG.md#0410---2026-10-24)。
|
|
8
8
|
|
|
9
9
|
在 [DSH(DeepSeek Harness)](https://github.com/deepseek-ai/deepseek-harness) 输入框上方显示当前模型供应商的**账户余额**或**套餐额度**。状态行与输入卡片同宽,保留原生统计行和上下文计量器。
|
|
10
10
|
|
|
@@ -23,7 +23,7 @@ DeepSeek · ¥58.13
|
|
|
23
23
|
|
|
24
24
|
## 安装
|
|
25
25
|
|
|
26
|
-
要求:DSH版本满足 `^0.2.0-rc.2 || ^0.2.1-rc.1`(已验证0.2.0-rc.2
|
|
26
|
+
要求:DSH版本满足 `^0.2.0-rc.2 || ^0.2.1-rc.1`(已验证0.2.0-rc.2及0.2.1-rc.1/rc.2/rc.3),运行预构建插件声明Node≥20,安装到正在使用的 `web` profile。
|
|
27
27
|
|
|
28
28
|
从npm安装:
|
|
29
29
|
|
|
@@ -86,7 +86,7 @@ OpenCode Zen Go三个窗口,独立状态行位于输入框上方:
|
|
|
86
86
|
|
|
87
87
|
宿主默认在回合结束2秒后调度刷新,并有5分钟兜底定时器;浏览器每30秒拉取RPC镜像。普通轮询仅在读数缺失或有效身份变化时初始化查询,不把idle查询改成每分钟一次。成功请求的默认最小间隔为60秒,显式刷新可绕过,失败的主动重试不受该成功间隔限制;修改空闲间隔会重调定时器。
|
|
88
88
|
|
|
89
|
-
插件查询余额/额度并读取当前模型及供应商目录,不写会话日志,也不向第三方上报这些读数。宿主不把已保存的密钥值返回浏览器;用户主动粘贴的草稿经DSH凭据服务写入所用home的凭据文件。凭据优先级跟随宿主:DSH 0.2.1-rc.1/rc.2 的 Web/桌面端优先使用已保存凭据,环境变量作为回退;0.2.0-rc.2 则优先使用环境变量。凭据权限以设置页实际返回为准。
|
|
89
|
+
插件查询余额/额度并读取当前模型及供应商目录,不写会话日志,也不向第三方上报这些读数。宿主不把已保存的密钥值返回浏览器;用户主动粘贴的草稿经DSH凭据服务写入所用home的凭据文件。凭据优先级跟随宿主:DSH 0.2.1-rc.1/rc.2/rc.3 的 Web/桌面端优先使用已保存凭据,环境变量作为回退;0.2.0-rc.2 则优先使用环境变量。凭据权限以设置页实际返回为准。
|
|
90
90
|
|
|
91
91
|
## 已知限制
|
|
92
92
|
|
package/package.json
CHANGED