dsh-deepseek-account 0.1.7 → 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 +4 -0
- package/README.en.md +1 -1
- package/README.md +1 -1
- package/dist/client/client.js +1 -1
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/releases/v0.1.8.md +60 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
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
|
+
|
|
3
7
|
## 0.1.7 - 2026-08-31
|
|
4
8
|
|
|
5
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.
|
package/README.en.md
CHANGED
package/README.md
CHANGED
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 += "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}"
|
|
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,7 +70,7 @@ 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
|
|
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
74
|
|
|
75
75
|
### Optional Provider adapters
|
|
76
76
|
|
|
@@ -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>
|