dsh-sticky-user-bubble 0.1.4 → 0.1.6

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
@@ -2,6 +2,23 @@
2
2
 
3
3
  本文件记录本项目的所有重要变更。
4
4
 
5
+ ## [0.1.6] - 2026-09-22
6
+
7
+ ### 变更
8
+
9
+ - **兼容线移到 `>=0.1.7-alpha.1 <0.1.8`**(`0.1.7-alpha.1` 已逐版本核对):`package.json`、`engines.dsh`、`install.sh` 版本门与 `lib/index.js` 四处同源更新,上一发布线(`0.1.6-*`)上的旧版本继续服务旧线,范围外保持 inert。
10
+ - 逐项复核 0.1.7 的契约后确认无需改实现:`ChatSnapshot` 骨架(`order`/`nodes.get(key)`/`locations`/`navigation`/`timeline`/`legacy`)、节点种类 `user`/`steering`、聊天行标记(`data-chat-flow`、`data-chat-flow-key`、`data-chat-flow-kind`、`data-chat-anchor-key`,另新增 `data-chat-node-key`/`data-chat-group-part`)、`[data-conversation-scroll]` 的 scrollport 与内层 16px padding、`[data-composer-seat]`、`shell.overlay`(`z-index:20; pointer-events:none`)、`retainedBy.mainView` 与 `uiConversation.binding(id).target('chat')` 均未变化;`data-ref-chip` + `title` 仍在 primitives 里渲染。
11
+
12
+ ## [0.1.5] - 2026-09-18
13
+
14
+ ### 修复
15
+
16
+ - 修复 DSH `0.1.6-alpha.2` 上固定气泡完全不出现:客户端会话列表快照在这一版移除了 `current` 单元格(导航改由视图持有关系表达),插件原先直接读它取当前会话,于是永远拿不到会话身份、状态停在 `inactive-snapshot`。现在先读 `current`(`0.1.6-alpha.1` 及更早),取不到时按壳层自己的算法用 `byId` 的 `retainedBy.mainView` 持有计数解析当前会话,两个版本共用一份实现。
17
+
18
+ ### 变更
19
+
20
+ - 逐版本验证版本更新为 `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]` 与几何契约,未再发现其它漂移。
21
+
5
22
  ## [0.1.4] - 2026-09-17
6
23
 
7
24
  ### 文档
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.7-alpha.1 <0.1.8`;`0.1.7-alpha.1` 已逐版本验证。同线后续版本会给出警告,并继续依赖客户端结构与能力检查;范围外保持 inert。
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((state) => state?.current)
1327
+ const currentId = useSessions(currentSessionIdOf)
1311
1328
  let binding
1312
1329
  let session
1313
1330
  let chatSource = EMPTY_CHAT_SOURCE
package/lib/index.js CHANGED
@@ -3,9 +3,9 @@ import { dirname, join } from 'node:path'
3
3
 
4
4
  export const PLUGIN_NAME = 'dsh-sticky-user-bubble'
5
5
  export const inject = []
6
- export const DSH_COMPATIBILITY_RANGE = '>=0.1.6-alpha.1 <0.1.7'
7
- const VERIFIED_DSH_VERSIONS = new Set(['0.1.6-alpha.1'])
8
- const DSH_VERSION_PATTERN = /^0\.1\.6(?:-(alpha|beta|rc)\.(0|[1-9]\d*))?$/u
6
+ export const DSH_COMPATIBILITY_RANGE = '>=0.1.7-alpha.1 <0.1.8'
7
+ const VERIFIED_DSH_VERSIONS = new Set(['0.1.7-alpha.1'])
8
+ const DSH_VERSION_PATTERN = /^0\.1\.7(?:-(alpha|beta|rc)\.(0|[1-9]\d*))?$/u
9
9
  const DSH_PRERELEASE_ORDER = { alpha: 0, beta: 1, rc: 2 }
10
10
 
11
11
  export function classifyDshVersion(version) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-sticky-user-bubble",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/zhaoliang233/dsh-plugins.git",
@@ -20,9 +20,9 @@
20
20
  "dshCompatibility": {
21
21
  "policy": "compatible-release-line",
22
22
  "package": "@deepseek-ai/dsh",
23
- "range": ">=0.1.6-alpha.1 <0.1.7",
23
+ "range": ">=0.1.7-alpha.1 <0.1.8",
24
24
  "verifiedVersions": [
25
- "0.1.6-alpha.1"
25
+ "0.1.7-alpha.1"
26
26
  ],
27
27
  "futureVersionsRequireCapabilityChecks": true
28
28
  },
@@ -55,7 +55,7 @@
55
55
  },
56
56
  "engines": {
57
57
  "node": ">=20",
58
- "dsh": ">=0.1.6-alpha.1 <0.1.7"
58
+ "dsh": ">=0.1.7-alpha.1 <0.1.8"
59
59
  },
60
60
  "publishConfig": {
61
61
  "access": "public"