dsh-deepseek-account 0.1.6 → 0.1.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/CHANGELOG.md +8 -0
- package/README.en.md +3 -1
- package/README.md +3 -1
- package/dist/client/client.js +1 -1
- package/docs/ARCHITECTURE.md +2 -0
- package/docs/releases/v0.1.7.md +58 -0
- package/docs/releases/v0.1.8.md +60 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.8 - 2026-08-31
|
|
4
|
+
|
|
5
|
+
- 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.
|
|
6
|
+
|
|
7
|
+
## 0.1.7 - 2026-08-31
|
|
8
|
+
|
|
9
|
+
- Stack sidebar footer actions vertically when official full-width actions such as Cordis Plugin are present, preventing the account entry from overflowing beyond the sidebar edge.
|
|
10
|
+
|
|
3
11
|
## 0.1.6 - 2026-08-30
|
|
4
12
|
|
|
5
13
|
- Replace the Harness settings gear with exactly one DeepSeek whale icon even when shell CSS overrides `hidden` or the settings row re-renders in place.
|
package/README.en.md
CHANGED
|
@@ -34,7 +34,7 @@ Requirements:
|
|
|
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.8
|
|
38
38
|
dsh web
|
|
39
39
|
```
|
|
40
40
|
|
|
@@ -44,6 +44,8 @@ In the current conversation's Web UI:
|
|
|
44
44
|
2. The settings navigation replaces the generic gear in place with the DeepSeek whale icon; the “DeepSeek account” page shows CNY/USD total, granted, and topped-up balances.
|
|
45
45
|
3. “Sign in and top up” opens only `https://platform.deepseek.com/balance` in a new page.
|
|
46
46
|
|
|
47
|
+
When another entry such as the official Cordis Plugin also occupies the sidebar footer, this plugin stacks the footer actions vertically so multiple full-width entries cannot push each other outside the sidebar.
|
|
48
|
+
|
|
47
49
|
Continue to pin an exact version when upgrading so pre-release dependencies cannot drift:
|
|
48
50
|
|
|
49
51
|
```sh
|
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ DeepSeek Harness 的独立账户插件:在一个侧栏入口中展示当前对
|
|
|
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.8
|
|
38
38
|
dsh web
|
|
39
39
|
```
|
|
40
40
|
|
|
@@ -44,6 +44,8 @@ dsh web
|
|
|
44
44
|
2. 设置导航用 DeepSeek 鲸鱼图标原位替换通用齿轮;“DeepSeek 账户”页面可查看 CNY/USD 的总余额、赠送余额和充值余额。
|
|
45
45
|
3. “登录并充值”只会在新页面打开 `https://platform.deepseek.com/balance`。
|
|
46
46
|
|
|
47
|
+
当官方 Cordis Plugin 等其他入口同时占用侧栏 footer 时,本插件会让同一 footer 中的入口纵向排列,避免多个全宽入口互相挤出侧栏。
|
|
48
|
+
|
|
47
49
|
升级时继续使用精确版本,避免预发布阶段的依赖漂移:
|
|
48
50
|
|
|
49
51
|
```sh
|
package/dist/client/client.js
CHANGED
|
@@ -375,7 +375,7 @@ window.__ModuleLoader__.load({
|
|
|
375
375
|
const style = document.createElement("style")
|
|
376
376
|
style.dataset.dshDeepseekAccount = ""
|
|
377
377
|
style.textContent = ".dsh-deepseek-account-card{display:grid;width:100%;min-height:48px;margin:3px 0;padding:4px 3px;border:0;border-radius:8px;grid-template-columns:22px minmax(0,1fr) 16px;align-items:center;gap:10px;color:inherit;background:transparent;cursor:pointer;font:inherit;text-align:left}.dsh-deepseek-account-card:hover{background:transparent}.dsh-deepseek-account-rail:hover{background:var(--dsw-alias-interactive-bg-hover)}.dsh-deepseek-account-symbol{font-weight:650;text-align:center}.dsh-deepseek-account-copy{display:flex;min-width:0;flex-direction:column}.dsh-deepseek-account-copy small{overflow:hidden;color:var(--dsw-alias-label-tertiary);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.dsh-deepseek-account-rail{display:grid;width:36px;height:36px;margin:4px auto;border:0;border-radius:8px;place-items:center;color:inherit;background:transparent;cursor:pointer;font-size:10px;font-weight:650}.dsh-deepseek-account-page{box-sizing:border-box;width:min(860px,100%);padding:8px 4px 40px;color:var(--dsw-alias-label-primary)}.dsh-deepseek-account-page h2{margin:0}.dsh-deepseek-account-description{color:var(--dsw-alias-label-secondary)}.dsh-deepseek-account-panel{margin-top:14px;padding:18px;border:1px solid var(--dsw-alias-border-l2);border-radius:16px;background:var(--dsw-alias-bg-layer-1)}.dsh-deepseek-account-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.dsh-deepseek-account-head h3{margin:0}.dsh-deepseek-account-head button,.dsh-deepseek-account-topup{min-height:34px;border:1px solid var(--dsw-alias-border-l2);border-radius:999px;padding:0 13px;color:inherit;background:transparent;font:inherit}.dsh-deepseek-account-balances{display:grid;margin-top:14px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.dsh-deepseek-account-balance{display:flex;flex-direction:column;gap:5px;padding:14px;border-radius:12px;background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-interactive-bg-hover))}.dsh-deepseek-account-balance strong{font-size:22px}.dsh-deepseek-account-balance span,.dsh-deepseek-account-panel p,.dsh-deepseek-account-panel small{color:var(--dsw-alias-label-secondary);font-size:12px}.dsh-deepseek-account-warning{color:var(--dsw-alias-state-warn-label)!important}.dsh-deepseek-account-topup{display:inline-flex;align-items:center;color:#fff;text-decoration:none;background:var(--dsw-alias-state-business-primary)}"
|
|
378
|
-
style.textContent += ".dsh-deepseek-account-provider-icon{display:block;width:18px;height:18px;margin:auto}.dsh-deepseek-account-copy{gap:2px}.dsh-deepseek-account-copy small{overflow:visible;line-height:1.35;overflow-wrap:anywhere;text-overflow:clip;white-space:normal}.dsh-deepseek-account-quota-windows{display:grid;gap:4px}.dsh-deepseek-account-quota-window{display:grid;min-width:0;padding:1px 0;border-radius:0;grid-template-columns:auto minmax(0,1fr);align-items:baseline;column-gap:6px;background:transparent}.dsh-deepseek-account-quota-period{font-size:11px;font-weight:650}.dsh-deepseek-account-quota-remaining{min-width:0;color:var(--dsw-alias-label-secondary);font-size:11px;font-weight:600}.dsh-deepseek-account-quota-reset{grid-column:1/-1;font-size:10px!important;line-height:1.25!important}"
|
|
378
|
+
style.textContent += "div[data-slot=\"sidebar.footer.action\"]:has(>.dsh-deepseek-account-card),div[data-slot=\"sidebar.footer.action\"]:has(>.dsh-deepseek-account-rail){display:flex!important;width:100%;min-width:0;flex-direction:column}.dsh-deepseek-account-provider-icon{display:block;width:18px;height:18px;margin:auto}.dsh-deepseek-account-copy{gap:2px}.dsh-deepseek-account-copy small{overflow:visible;line-height:1.35;overflow-wrap:anywhere;text-overflow:clip;white-space:normal}.dsh-deepseek-account-quota-windows{display:grid;gap:4px}.dsh-deepseek-account-quota-window{display:grid;min-width:0;padding:1px 0;border-radius:0;grid-template-columns:auto minmax(0,1fr);align-items:baseline;column-gap:6px;background:transparent}.dsh-deepseek-account-quota-period{font-size:11px;font-weight:650}.dsh-deepseek-account-quota-remaining{min-width:0;color:var(--dsw-alias-label-secondary);font-size:11px;font-weight:600}.dsh-deepseek-account-quota-reset{grid-column:1/-1;font-size:10px!important;line-height:1.25!important}"
|
|
379
379
|
document.head.append(style)
|
|
380
380
|
return () => style.remove()
|
|
381
381
|
}
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -70,6 +70,8 @@ await balance.read({ force? })
|
|
|
70
70
|
|
|
71
71
|
设置导航图标 adapter 只匹配插件拥有的中英文 label,以内联高优先级样式隐藏 Harness 原图标并挂载唯一鲸鱼图标。它必须在同一按钮被 Harness 原位重绘后重新隐藏新的原图标,重复 DOM 通知不得重复挂载;插件卸载时必须断开观察、移除鲸鱼并恢复接触过的全部原图标及其原始样式。Harness 将来提供正式 section 图标接口后,应删除这个临时 adapter。
|
|
72
72
|
|
|
73
|
+
`sidebar.footer.action` 是 list slot,但官方 sidebar 容器默认使用单行 flex,官方 Cordis 入口本身又是不可收缩的全宽元素。Renderer 的 list-slot anchor 使用内联 `display: contents`,因此只设置 `flex-direction` 不会形成布局容器;本插件必须匹配同时直接包含本插件 card/rail 的 `data-slot="sidebar.footer.action"` anchor,以 `display:flex!important` 覆盖该内联值后再纵向排列。不得依赖 sidebar 或 Cordis 的构建期哈希类名,也不得覆盖官方入口自身的宽度、定位或弹层样式。
|
|
74
|
+
|
|
73
75
|
### Optional Provider adapters
|
|
74
76
|
|
|
75
77
|
Grok 的 `/grok-auth` 和 Codex 的 `/dsh-codex` 是外部、可选 seam。它们不是本插件拥有的接口,因此:
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
## 中文
|
|
2
|
+
|
|
3
|
+
`0.1.7` 修复本插件与官方 Cordis Plugin 等全宽侧栏 footer 入口同时启用时,账户入口被挤出侧栏的问题。
|
|
4
|
+
|
|
5
|
+
### 主要变化
|
|
6
|
+
|
|
7
|
+
- 当同一 sidebar footer 存在多个全宽入口时,将这些入口纵向排列,避免横向溢出。
|
|
8
|
+
- 展开侧栏的账户卡片与收起侧栏的图标入口均使用同一兼容布局。
|
|
9
|
+
- 兼容层只作用于本插件账户入口的实际父容器,不依赖官方插件的私有类名。
|
|
10
|
+
|
|
11
|
+
### 兼容性与安全边界
|
|
12
|
+
|
|
13
|
+
- 不修改官方 Cordis Plugin、其他插件或 DeepSeek 桌面端代码。
|
|
14
|
+
- 不改变 DeepSeek、Grok 或 Codex 的账户读取、认证、模型、设置及 RPC 行为。
|
|
15
|
+
- 不新增网页登录、用量分析或插件内充值能力。
|
|
16
|
+
|
|
17
|
+
### 验证限制
|
|
18
|
+
|
|
19
|
+
- 自动化回归测试覆盖官方全宽 footer 入口共存时的纵向布局,并禁止依赖官方私有类名。
|
|
20
|
+
- 已通过模块测试、构建和 npm 打包预检;真实 Harness GUI 视觉验收仍需安装并重启后,在 Cordis Plugin 启用状态下确认。
|
|
21
|
+
|
|
22
|
+
安装:
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
dsh plugin --profile web add dsh-deepseek-account@0.1.7
|
|
26
|
+
dsh web
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
<details>
|
|
30
|
+
<summary>English release notes</summary>
|
|
31
|
+
|
|
32
|
+
`0.1.7` fixes the account entry being pushed outside the sidebar when this plugin and full-width official footer entries such as Cordis Plugin are enabled together.
|
|
33
|
+
|
|
34
|
+
### Changes
|
|
35
|
+
|
|
36
|
+
- Footer entries are stacked vertically when multiple full-width actions share the same sidebar footer, preventing horizontal overflow.
|
|
37
|
+
- The expanded account card and collapsed icon rail use the same compatibility layout.
|
|
38
|
+
- The compatibility layer targets the account entry's actual parent container and does not depend on private classes from official plugins.
|
|
39
|
+
|
|
40
|
+
### Compatibility and security boundaries
|
|
41
|
+
|
|
42
|
+
- This release does not modify Cordis Plugin, other plugins, or DeepSeek desktop application code.
|
|
43
|
+
- DeepSeek, Grok, and Codex account reads, authentication, models, settings, and RPC behavior are unchanged.
|
|
44
|
+
- No web login, usage analytics, or in-plugin payment capability is added.
|
|
45
|
+
|
|
46
|
+
### Verification limits
|
|
47
|
+
|
|
48
|
+
- Automated regression tests cover vertical layout alongside an official full-width footer action and prohibit dependencies on official private class names.
|
|
49
|
+
- Module tests, build, and npm pack preflight passed. Live Harness GUI visual acceptance remains pending installation, restart, and confirmation with Cordis Plugin enabled.
|
|
50
|
+
|
|
51
|
+
Install:
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
dsh plugin --profile web add dsh-deepseek-account@0.1.7
|
|
55
|
+
dsh web
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
</details>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
## 中文
|
|
2
|
+
|
|
3
|
+
`0.1.8` 修复 `0.1.7` 未实际生效的 Cordis Plugin 侧栏兼容规则,使官方 Cordis 入口与账户入口真正纵向排列。
|
|
4
|
+
|
|
5
|
+
### 根因与修复
|
|
6
|
+
|
|
7
|
+
- Harness renderer 为 `sidebar.footer.action` list slot 创建了带内联 `display: contents` 的 anchor。
|
|
8
|
+
- `0.1.7` 只在该 anchor 上设置 `flex-direction: column`;因为 `display: contents` 不生成布局盒,所以规则虽然命中,Cordis 与账户入口仍会横向互相挤压。
|
|
9
|
+
- 本版本只匹配直接包含本插件 card/rail 的 `data-slot="sidebar.footer.action"` anchor,用 `display:flex!important` 覆盖其内联值,再建立全宽纵向布局。
|
|
10
|
+
- 不依赖 Cordis 或 sidebar 的构建期私有类名,也不覆盖官方入口自身的宽度、定位或弹层样式。
|
|
11
|
+
|
|
12
|
+
### 验证
|
|
13
|
+
|
|
14
|
+
- 回归测试实际执行插件样式安装并检查最终注入 CSS,不再只匹配源码字符串。
|
|
15
|
+
- 已在正式安装的 DeepSeek YukiRyou 中,以 Cordis Plugin 运行状态分别验收展开和收起侧栏:Cordis 与 Grok 账户入口均完整位于侧栏内并纵向排列。
|
|
16
|
+
- 11/11 模块测试、构建和 npm 打包预检通过。
|
|
17
|
+
|
|
18
|
+
### 边界
|
|
19
|
+
|
|
20
|
+
- 只修改当前插件,不修改 DeepSeek YukiRyou 桌面端、官方 Cordis Plugin 或其他插件。
|
|
21
|
+
- DeepSeek、Grok 与 Codex 的账户读取、认证、模型、设置和 RPC 行为不变。
|
|
22
|
+
|
|
23
|
+
安装:
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
dsh plugin --profile web add dsh-deepseek-account@0.1.8
|
|
27
|
+
dsh web
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
<details>
|
|
31
|
+
<summary>English release notes</summary>
|
|
32
|
+
|
|
33
|
+
`0.1.8` fixes the ineffective Cordis Plugin sidebar compatibility rule from `0.1.7`, so the official Cordis entry and the account entry are actually stacked vertically.
|
|
34
|
+
|
|
35
|
+
### Root cause and fix
|
|
36
|
+
|
|
37
|
+
- The Harness renderer creates a `sidebar.footer.action` list-slot anchor with inline `display: contents`.
|
|
38
|
+
- `0.1.7` only set `flex-direction: column` on that anchor. Since `display: contents` creates no layout box, the rule matched but Cordis and account entries still competed in the outer horizontal flex row.
|
|
39
|
+
- This release matches only the `data-slot="sidebar.footer.action"` anchor that directly contains this plugin's card or rail, overrides the inline value with `display:flex!important`, and then establishes a full-width vertical layout.
|
|
40
|
+
- It does not depend on private build-time classes from Cordis or the sidebar, and it does not override the official entry's width, positioning, or panel styles.
|
|
41
|
+
|
|
42
|
+
### Verification
|
|
43
|
+
|
|
44
|
+
- The regression test executes the plugin style installer and checks the final injected CSS instead of matching source-code text only.
|
|
45
|
+
- Live acceptance passed in the installed DeepSeek YukiRyou application with Cordis Plugin running, in both expanded and collapsed sidebar modes. The Cordis and Grok account entries remained fully inside the sidebar and stacked vertically.
|
|
46
|
+
- All 11 module tests, the build, and npm pack preflight passed.
|
|
47
|
+
|
|
48
|
+
### Boundaries
|
|
49
|
+
|
|
50
|
+
- This release changes only the current plugin; it does not modify DeepSeek YukiRyou, the official Cordis Plugin, or other plugins.
|
|
51
|
+
- DeepSeek, Grok, and Codex account reads, authentication, models, settings, and RPC behavior are unchanged.
|
|
52
|
+
|
|
53
|
+
Install:
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
dsh plugin --profile web add dsh-deepseek-account@0.1.8
|
|
57
|
+
dsh web
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
</details>
|