dsh-deepseek-account 0.1.8 → 0.1.9
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 +6 -0
- package/README.en.md +2 -2
- package/README.md +2 -2
- package/dist/host/index.mjs +6 -1
- package/docs/ARCHITECTURE.md +2 -0
- package/docs/MAINTAINING.md +8 -0
- package/docs/releases/v0.1.9.md +52 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.9 - 2026-09-13
|
|
4
|
+
|
|
5
|
+
- Wait for both Connection and its HTTP server before registering the balance RPC, fixing missing routes after upgrading Harness; restore the route when the server restarts.
|
|
6
|
+
- Add real Host lifecycle regression coverage for Harness 0.1.5-rc.2.
|
|
7
|
+
- Declare compatibility with Harness 0.1.5-rc.2 and Cordis 4.0.2 alongside the existing versions.
|
|
8
|
+
|
|
3
9
|
## 0.1.8 - 2026-08-31
|
|
4
10
|
|
|
5
11
|
- Override the Harness list-slot anchor's inline `display: contents` before stacking full-width sidebar footer actions, so the Cordis and account entries actually share a vertical flex container.
|
package/README.en.md
CHANGED
|
@@ -28,13 +28,13 @@ Only DeepSeek has a top-up entry. Grok uses the remaining percentage supplied by
|
|
|
28
28
|
Requirements:
|
|
29
29
|
|
|
30
30
|
- Node.js `>=22.19.0 <25`
|
|
31
|
-
- DeepSeek Harness
|
|
31
|
+
- DeepSeek Harness `0.1.1-rc.2` or `0.1.5-rc.2` (live balance acceptance for this release used `0.1.5-rc.2`)
|
|
32
32
|
- `DEEPSEEK_API_KEY` configured in Harness model settings when reading a DeepSeek balance
|
|
33
33
|
|
|
34
34
|
Install the current stable version:
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
|
-
dsh plugin --profile web add dsh-deepseek-account@0.1.
|
|
37
|
+
dsh plugin --profile web add dsh-deepseek-account@0.1.9
|
|
38
38
|
dsh web
|
|
39
39
|
```
|
|
40
40
|
|
package/README.md
CHANGED
|
@@ -28,13 +28,13 @@ DeepSeek Harness 的独立账户插件:在一个侧栏入口中展示当前对
|
|
|
28
28
|
运行环境:
|
|
29
29
|
|
|
30
30
|
- Node.js `>=22.19.0 <25`
|
|
31
|
-
- DeepSeek Harness `0.1.1-rc.2`
|
|
31
|
+
- DeepSeek Harness `0.1.1-rc.2` 或 `0.1.5-rc.2`(本次在 `0.1.5-rc.2` 完成真实余额验收)
|
|
32
32
|
- 已在 Harness 模型设置中配置 `DEEPSEEK_API_KEY`(仅查看 DeepSeek 余额时需要)
|
|
33
33
|
|
|
34
34
|
安装当前稳定版本:
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
|
-
dsh plugin --profile web add dsh-deepseek-account@0.1.
|
|
37
|
+
dsh plugin --profile web add dsh-deepseek-account@0.1.9
|
|
38
38
|
dsh web
|
|
39
39
|
```
|
|
40
40
|
|
package/dist/host/index.mjs
CHANGED
|
@@ -6,5 +6,10 @@ export const inject = ["credentials"]
|
|
|
6
6
|
|
|
7
7
|
export function apply(ctx) {
|
|
8
8
|
const accountBalance = createDeepSeekAccountBalance({ credentials: ctx.credentials })
|
|
9
|
-
|
|
9
|
+
// Connection can become ready before its HTTP carrier in newer Harness versions.
|
|
10
|
+
// Own the route in both services' lifetime so server reloads register it again.
|
|
11
|
+
ctx.inject(["connection", "webServer"], (connectionCtx) => {
|
|
12
|
+
// Connection already owns the registration effect in this injection fiber.
|
|
13
|
+
registerDeepSeekAccountRpc(connectionCtx, accountBalance)
|
|
14
|
+
})
|
|
10
15
|
}
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -30,6 +30,8 @@ current session list ── running true→false ──> one forced account refr
|
|
|
30
30
|
|
|
31
31
|
`src/host/index.mjs` 是 npm 包的 Host 入口。它的接口只有 Harness 插件约定的 `name`、`inject` 和 `apply(ctx)`,负责组合 credential adapter、余额模块与 connection adapter,不包含浏览器 UI。
|
|
32
32
|
|
|
33
|
+
HTTP RPC 注册必须同时等待 `connection` 和 `webServer`。新版 Harness 可先提供 Connection、后启动 HTTP carrier;仅等待 Connection 会让路由注册失败,客户端收到 HTTP 405。路由归属两项服务的注入生命周期,HTTP 服务重启时自动移除并重新注册。
|
|
34
|
+
|
|
33
35
|
### Account balance module
|
|
34
36
|
|
|
35
37
|
`src/internal/account-balance.mjs` 隐藏 DeepSeek 请求、缓存、并发合并、错误分类和响应投影。它的接口是:
|
package/docs/MAINTAINING.md
CHANGED
|
@@ -18,6 +18,14 @@
|
|
|
18
18
|
- Grok/Codex 必须保持可选,它们缺失时 DeepSeek 仍可工作。
|
|
19
19
|
- 稳定版只承诺最新版本获得安全修复;破坏性变化需要在 README、CHANGELOG 和发布说明中突出。
|
|
20
20
|
|
|
21
|
+
Host 生命周期回归使用真实 Cordis/Connection 模块,覆盖 HTTP 服务延迟启动、重启和插件卸载。CI 自动安装隔离的 0.1.5-rc.2 fixture;本地可复用已安装的 Harness:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
DSH_TEST_NODE_MODULES=/absolute/path/to/harness/node_modules node --test test/host-runtime.test.mjs
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
未设置此变量时该项测试跳过,普通 `npm test` 通过不代表已完成 Host 兼容验证。此测试不读取真实凭据或请求官方 API。
|
|
28
|
+
|
|
21
29
|
## Pull Request review
|
|
22
30
|
|
|
23
31
|
合并前确认:
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
## 中文
|
|
2
|
+
|
|
3
|
+
`0.1.9` 修复升级 DSH 后 DeepSeek 账户页显示“暂时无法读取余额”、侧栏余额为空的问题。
|
|
4
|
+
|
|
5
|
+
### 修复
|
|
6
|
+
|
|
7
|
+
- 余额 HTTP RPC 同时等待 `connection` 和 `webServer`,并由 Connection 管理注册效果的生命周期,避免启动期间遗漏路由。
|
|
8
|
+
- HTTP 服务重启时重新注册余额路由;插件卸载时清理路由。
|
|
9
|
+
- peer dependency 声明新增 Harness `0.1.5-rc.2` 和 Cordis `4.0.2`,保留此前声明的版本。
|
|
10
|
+
|
|
11
|
+
### 验证与范围
|
|
12
|
+
|
|
13
|
+
- 12 项测试与构建通过;新增回归使用真实 Cordis/Connection 模块,覆盖 HTTP 服务晚启动、重启及插件卸载。
|
|
14
|
+
- 独立安装的 Harness `0.1.5-rc.2` Host fixture 通过;CI 增加相同检查。
|
|
15
|
+
- 本机 DeepSeek YukiRyou / DSH `0.1.5-rc.2` 已验证真实账户余额读取:侧栏和设置页均恢复,刷新可用。
|
|
16
|
+
- 本次未重新完成旧版 Harness 的完整验收,也未验证其他账户插件或付款流程。
|
|
17
|
+
|
|
18
|
+
安装:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
dsh plugin --profile web add dsh-deepseek-account@0.1.9
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
安装后重启使用该 profile 的 DSH。
|
|
25
|
+
|
|
26
|
+
<details>
|
|
27
|
+
<summary>English release notes</summary>
|
|
28
|
+
|
|
29
|
+
`0.1.9` fixes unavailable DeepSeek balances after a DSH upgrade, affecting both the account settings page and sidebar.
|
|
30
|
+
|
|
31
|
+
### Fix
|
|
32
|
+
|
|
33
|
+
- Wait for both `connection` and `webServer` before registering the balance HTTP RPC, leaving registration effects owned by Connection's lifecycle.
|
|
34
|
+
- Restore the route after an HTTP server restart and remove it when the plugin unloads.
|
|
35
|
+
- Add Harness `0.1.5-rc.2` and Cordis `4.0.2` to the declared peer versions while retaining the existing versions.
|
|
36
|
+
|
|
37
|
+
### Verification and scope
|
|
38
|
+
|
|
39
|
+
- All 12 tests and the build passed. The new regression uses real Cordis/Connection modules to cover delayed HTTP server startup, server restart, and plugin unload.
|
|
40
|
+
- An independently installed Harness `0.1.5-rc.2` Host fixture passed; CI now runs the same check.
|
|
41
|
+
- Live balance reads and refresh were verified in the installed DeepSeek YukiRyou application running DSH `0.1.5-rc.2`, in both the sidebar and settings page.
|
|
42
|
+
- Full acceptance on older Harness versions, other account plugins, and payment flows was not repeated in this release.
|
|
43
|
+
|
|
44
|
+
Install:
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
dsh plugin --profile web add dsh-deepseek-account@0.1.9
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Restart the DSH instance using this profile after installation.
|
|
51
|
+
|
|
52
|
+
</details>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-deepseek-account",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "DeepSeek account balance and official top-up entry for DeepSeek Harness",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"prepack": "npm run check"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@deepseek-ai/cordis": "4.0.1",
|
|
63
|
-
"@deepseek-ai/dsh-client-connection": "0.1.1-rc.2",
|
|
64
|
-
"@deepseek-ai/dsh-client-locale": "0.1.1-rc.2",
|
|
65
|
-
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
|
|
66
|
-
"@deepseek-ai/dsh-client-ui-model-selection": "0.1.1-rc.2",
|
|
67
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.1.1-rc.2",
|
|
68
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "0.1.1-rc.2",
|
|
69
|
-
"@deepseek-ai/dsh-credentials": "0.1.1-rc.2"
|
|
62
|
+
"@deepseek-ai/cordis": "4.0.1 || 4.0.2",
|
|
63
|
+
"@deepseek-ai/dsh-client-connection": "0.1.1-rc.2 || 0.1.5-rc.2",
|
|
64
|
+
"@deepseek-ai/dsh-client-locale": "0.1.1-rc.2 || 0.1.5-rc.2",
|
|
65
|
+
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2 || 0.1.5-rc.2",
|
|
66
|
+
"@deepseek-ai/dsh-client-ui-model-selection": "0.1.1-rc.2 || 0.1.5-rc.2",
|
|
67
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.1-rc.2 || 0.1.5-rc.2",
|
|
68
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.1.1-rc.2 || 0.1.5-rc.2",
|
|
69
|
+
"@deepseek-ai/dsh-credentials": "0.1.1-rc.2 || 0.1.5-rc.2"
|
|
70
70
|
},
|
|
71
71
|
"peerDependenciesMeta": {
|
|
72
72
|
"@deepseek-ai/dsh-client-connection": { "optional": true },
|