dsh-deepseek-account 0.1.6 → 0.1.7

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.7 - 2026-08-31
4
+
5
+ - 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.
6
+
3
7
  ## 0.1.6 - 2026-08-30
4
8
 
5
9
  - 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.6
37
+ dsh plugin --profile web add dsh-deepseek-account@0.1.7
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.6
37
+ dsh plugin --profile web add dsh-deepseek-account@0.1.7
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
@@ -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:has(>.dsh-deepseek-account-card),div:has(>.dsh-deepseek-account-rail){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
  }
@@ -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 入口本身又是不可收缩的全宽元素。本插件通过只匹配“直接包含本插件 card/rail 的父容器”将该 footer 改为纵向排列;不得依赖 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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-deepseek-account",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "DeepSeek account balance and official top-up entry for DeepSeek Harness",
5
5
  "type": "module",
6
6
  "license": "MIT",