dsh-sticky-user-bubble 0.1.4 → 0.1.5
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 +10 -0
- package/README.md +1 -1
- package/client.js +18 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
本文件记录本项目的所有重要变更。
|
|
4
4
|
|
|
5
|
+
## [0.1.5] - 2026-09-18
|
|
6
|
+
|
|
7
|
+
### 修复
|
|
8
|
+
|
|
9
|
+
- 修复 DSH `0.1.6-alpha.2` 上固定气泡完全不出现:客户端会话列表快照在这一版移除了 `current` 单元格(导航改由视图持有关系表达),插件原先直接读它取当前会话,于是永远拿不到会话身份、状态停在 `inactive-snapshot`。现在先读 `current`(`0.1.6-alpha.1` 及更早),取不到时按壳层自己的算法用 `byId` 的 `retainedBy.mainView` 持有计数解析当前会话,两个版本共用一份实现。
|
|
10
|
+
|
|
11
|
+
### 变更
|
|
12
|
+
|
|
13
|
+
- 逐版本验证版本更新为 `0.1.6-alpha.2`(兼容范围仍是 `>=0.1.6-alpha.1 <0.1.7`);`0.1.6-alpha.2` 上已重新核对 Chat target、`ChatSnapshot.order`/`nodes`、聊天行标记、`[data-conversation-scroll]`、`[data-composer-seat]` 与几何契约,未再发现其它漂移。
|
|
14
|
+
|
|
5
15
|
## [0.1.4] - 2026-09-17
|
|
6
16
|
|
|
7
17
|
### 文档
|
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
## 要求
|
|
19
19
|
|
|
20
|
-
- DeepSeek Harness Web `>=0.1.6-alpha.1 <0.1.7`;`0.1.6-alpha.1`
|
|
20
|
+
- DeepSeek Harness Web `>=0.1.6-alpha.1 <0.1.7`;`0.1.6-alpha.2` 已逐版本验证(`0.1.6-alpha.1` 同样可用)。同线后续版本会给出警告,并继续依赖客户端结构与能力检查。
|
|
21
21
|
- Node.js 20 或更高版本(仅安装与发布检查需要)。
|
|
22
22
|
- 不需要额外的运行时 npm 依赖。
|
|
23
23
|
|
package/client.js
CHANGED
|
@@ -1305,9 +1305,26 @@ window.__ModuleLoader__.load({
|
|
|
1305
1305
|
return { overlayRef, copyHostRef }
|
|
1306
1306
|
}
|
|
1307
1307
|
|
|
1308
|
+
// The Session list moved its navigation cell between DSH 0.1.6 alphas: `state.current`
|
|
1309
|
+
// exists through alpha.1, while alpha.2 drops it and derives the main-view Session from
|
|
1310
|
+
// the `mainView` retention count — the same shape the shell's own title/panel code reads.
|
|
1311
|
+
function currentSessionIdOf(state) {
|
|
1312
|
+
if (state === undefined || state === null) return undefined
|
|
1313
|
+
if (typeof state.current === 'string' && state.current !== '') return state.current
|
|
1314
|
+
const byId = state.byId
|
|
1315
|
+
if (byId === null || typeof byId !== 'object') return undefined
|
|
1316
|
+
for (const summary of Object.values(byId)) {
|
|
1317
|
+
if (summary === null || summary === undefined) continue
|
|
1318
|
+
const retainedBy = summary.retainedBy
|
|
1319
|
+
if (retainedBy === null || retainedBy === undefined) continue
|
|
1320
|
+
if ((retainedBy.mainView ?? 0) > 0 && typeof summary.id === 'string') return summary.id
|
|
1321
|
+
}
|
|
1322
|
+
return undefined
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1308
1325
|
function createStickyUserBubbleOverlay(sessions, uiConversation) {
|
|
1309
1326
|
return function StickyUserBubbleOverlay({ useSessions }) {
|
|
1310
|
-
const currentId = useSessions(
|
|
1327
|
+
const currentId = useSessions(currentSessionIdOf)
|
|
1311
1328
|
let binding
|
|
1312
1329
|
let session
|
|
1313
1330
|
let chatSource = EMPTY_CHAT_SOURCE
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-sticky-user-bubble",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/zhaoliang233/dsh-plugins.git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"package": "@deepseek-ai/dsh",
|
|
23
23
|
"range": ">=0.1.6-alpha.1 <0.1.7",
|
|
24
24
|
"verifiedVersions": [
|
|
25
|
-
"0.1.6-alpha.
|
|
25
|
+
"0.1.6-alpha.2"
|
|
26
26
|
],
|
|
27
27
|
"futureVersionsRequireCapabilityChecks": true
|
|
28
28
|
},
|