@idoall/dsh-session-colors 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 +73 -0
- package/README.md +53 -28
- package/README.zh.md +12 -7
- package/package.json +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,79 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.1.6] - 2026-09-28
|
|
12
|
+
|
|
13
|
+
Verified against DeepSeek Harness `0.2.0-rc.1` (the latest release candidate) as
|
|
14
|
+
well as `0.1.7-rc.2`, `0.1.7-rc.1` and `0.1.7-alpha.2`. No code change: every
|
|
15
|
+
contract this plugin depends on is unchanged between `0.1.7-rc.2` and
|
|
16
|
+
`0.2.0-rc.1`, and this release confirms the same code on the new RC and records
|
|
17
|
+
it.
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- The `peerDependencies` and `dsh.engines.dsh` ranges change from
|
|
22
|
+
`>=0.1.7-alpha.2 <0.2.0` to
|
|
23
|
+
`>=0.1.7-alpha.2 <0.2.0-0 || 0.2.0-rc.1 || >=0.2.0 <0.3.0`. The old upper
|
|
24
|
+
bound admitted `0.2.0-rc.1` only through node-semver's prerelease ordering; on
|
|
25
|
+
the `0.2.0` **final** release the compatibility precheck would have disabled
|
|
26
|
+
the plugin row at boot. Under node-semver's prerelease rule a prerelease is
|
|
27
|
+
admitted only when a comparator names its exact `major.minor.patch`, so the
|
|
28
|
+
new range has three alternatives: the verified `0.1.7` line, exactly
|
|
29
|
+
`0.2.0-rc.1` (an untested `0.2.0-rc.2` stays out), and the stable `0.2.0`
|
|
30
|
+
line up to `<0.3.0`.
|
|
31
|
+
- `dsh.compatibility.dshReleases` now records `0.2.0-rc.1` alongside
|
|
32
|
+
`0.1.7-rc.2`, `0.1.7-rc.1` and `0.1.7-alpha.2`; both READMEs state all four
|
|
33
|
+
versions.
|
|
34
|
+
|
|
35
|
+
### Notes
|
|
36
|
+
|
|
37
|
+
- Contracts verified unchanged between `0.1.7-rc.2` and `0.2.0-rc.1`: the
|
|
38
|
+
client-modules loader and the slot registration API differ only in package
|
|
39
|
+
version numbers; the compatibility precheck
|
|
40
|
+
(`evaluatePluginCompatibility` and its callers) is byte-identical; the
|
|
41
|
+
sidebar row keeps `data-row-key="session:<id>"`, `role="treeitem"` and
|
|
42
|
+
`aria-selected`; `conversation.session.header.utilities` is still a
|
|
43
|
+
session-scoped list; `shell.overlay` is still declared by `ui-layout`; the
|
|
44
|
+
`slots`/`locale`/`layout` service faces and the `react@^18.2.0` baseline are
|
|
45
|
+
unchanged.
|
|
46
|
+
- Verified on the running `0.2.0-rc.1` web-profile instance with the published
|
|
47
|
+
`0.1.5`: the client half loads and prints its diagnostic line, the Host half's
|
|
48
|
+
`GET /plugins/dsh-session-colors/marks` answers `200`, the header control
|
|
49
|
+
renders, and DSH does not disable the plugin row.
|
|
50
|
+
- `0.1.6` supports DSH `0.2.0-rc.1`, `0.1.7-rc.2`, `0.1.7-rc.1` and
|
|
51
|
+
`0.1.7-alpha.2`. Installations on an older DSH, including `0.1.6-alpha.2`,
|
|
52
|
+
should stay on plugin `0.1.2`.
|
|
53
|
+
|
|
54
|
+
## [0.1.5] - 2026-09-25
|
|
55
|
+
|
|
56
|
+
Verified against DeepSeek Harness `0.1.7-rc.2` (the latest release candidate) as
|
|
57
|
+
well as `0.1.7-rc.1` and `0.1.7-alpha.2`. No code change: every contract this
|
|
58
|
+
plugin depends on is unchanged between `rc.1` and `rc.2`, and this release
|
|
59
|
+
confirms the same code on the second RC and records it.
|
|
60
|
+
|
|
61
|
+
### Added
|
|
62
|
+
|
|
63
|
+
- `dsh.compatibility.dshReleases` now records `0.1.7-rc.2` alongside
|
|
64
|
+
`0.1.7-rc.1` and `0.1.7-alpha.2`; both READMEs state all three versions.
|
|
65
|
+
- The design record documents the one substantive addition in `rc.2` — the
|
|
66
|
+
Session-row seats `sidebar.session.row.leading` and `sidebar.session.row.hover`
|
|
67
|
+
— and why the chip deliberately stays on its own click-through layer instead of
|
|
68
|
+
moving into that seat: the leading seat shares the status dot's 16px cell and is
|
|
69
|
+
mounted only while a row is idle, so a chip placed there would disappear for
|
|
70
|
+
running, waiting and archived Sessions.
|
|
71
|
+
|
|
72
|
+
### Notes
|
|
73
|
+
|
|
74
|
+
- The peer and `dsh.engines.dsh` ranges stay `>=0.1.7-alpha.2 <0.2.0`. Under
|
|
75
|
+
node-semver's prerelease rule that range already admits `0.1.7-rc.2` (a
|
|
76
|
+
comparator names the same `major.minor.patch`), so it was deliberately **not**
|
|
77
|
+
widened for the second RC — widening would admit versions nobody tested.
|
|
78
|
+
- `0.1.5` supports DSH `0.1.7-rc.2`, `0.1.7-rc.1` and `0.1.7-alpha.2`.
|
|
79
|
+
Installations on an older DSH, including `0.1.6-alpha.2`, should stay on plugin
|
|
80
|
+
`0.1.2`.
|
|
81
|
+
- The duplicated `@deepseek-ai/schemastery` peer bullet in the English README was
|
|
82
|
+
removed; the Chinese README already carried it once.
|
|
83
|
+
|
|
11
84
|
## [0.1.4] - 2026-09-23
|
|
12
85
|
|
|
13
86
|
Verified against DeepSeek Harness `0.1.7-rc.1` (the latest release candidate) as
|
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<a href="#development">Development</a>
|
|
24
24
|
</p>
|
|
25
25
|
|
|
26
|
-
> **✅ Supports DSH `0.
|
|
26
|
+
> **✅ Supports DSH `0.2.0-rc.1` — the latest `0.2.0` release candidate.** Verified on the running release candidate as well as on `0.1.7-rc.2`, `0.1.7-rc.1` and `0.1.7-alpha.2`; see [Compatibility](#compatibility).
|
|
27
27
|
|
|
28
28
|
> DSH Session Colors is a DeepSeek Harness community plugin. It does not modify
|
|
29
29
|
> DSH core and does not rewrite any Session or Workspace data: a mark is only
|
|
@@ -71,8 +71,9 @@ Requirements:
|
|
|
71
71
|
|
|
72
72
|
- DeepSeek Harness with a Web profile
|
|
73
73
|
- Node.js 20 or newer
|
|
74
|
-
- **Verified DSH version: `0.
|
|
75
|
-
`0.1.7-alpha.2` — plugin `0.1.
|
|
74
|
+
- **Verified DSH version: `0.2.0-rc.1`** (the latest release candidate),
|
|
75
|
+
`0.1.7-rc.2`, `0.1.7-rc.1` and `0.1.7-alpha.2` — plugin `0.1.6`
|
|
76
|
+
(see [Compatibility](#compatibility))
|
|
76
77
|
|
|
77
78
|
```sh
|
|
78
79
|
dsh plugin --profile <profile> add @idoall/dsh-session-colors@latest
|
|
@@ -120,45 +121,63 @@ stored as HSVA, so alpha round-trips exactly.
|
|
|
120
121
|
|
|
121
122
|
## Compatibility
|
|
122
123
|
|
|
123
|
-
Current release: plugin **`0.1.
|
|
124
|
-
**`0.
|
|
125
|
-
**`0.1.7-alpha.2`**.
|
|
124
|
+
Current release: plugin **`0.1.6`** is verified against DeepSeek Harness
|
|
125
|
+
**`0.2.0-rc.1`** — the latest `0.2.0` release candidate — as well as against
|
|
126
|
+
**`0.1.7-rc.2`**, **`0.1.7-rc.1`** and **`0.1.7-alpha.2`**.
|
|
126
127
|
|
|
127
128
|
| Plugin version | Verified DeepSeek Harness | npm status | What it is |
|
|
128
129
|
| --- | --- | --- | --- |
|
|
129
|
-
| **`0.1.
|
|
130
|
+
| **`0.1.6`** | **`0.2.0-rc.1`** (latest RC), `0.1.7-rc.2`, `0.1.7-rc.1`, `0.1.7-alpha.2` | `latest` | Verifies the same code on DSH `0.2.0-rc.1` and rewrites the declared load range so the plugin survives the `0.2.0` final release. No code change over `0.1.5`; upgrading needs no migration. |
|
|
131
|
+
| `0.1.5` | `0.1.7-rc.2` (latest 0.1.7 RC), `0.1.7-rc.1`, `0.1.7-alpha.2` | published | Confirms the same code runs unchanged on the second release candidate and declares it. No code change over `0.1.4`; upgrading needs no migration. |
|
|
132
|
+
| `0.1.4` | `0.1.7-rc.1` (RC), `0.1.7-alpha.2` | published | Confirms the `0.1.7` adaptation runs unchanged on the first release candidate and declares it. No code change over `0.1.3`. |
|
|
130
133
|
| `0.1.3` | `0.1.7-alpha.2` | published | Adapts to DSH 0.1.7: the Session id comes from the row's own `data-row-key` (fiber fallback kept), chips follow the Web-Animations row gliding `0.1.7` introduced, and the Host dependency is declared the way `0.1.7` resolves a linked plugin. |
|
|
131
134
|
| `0.1.2` | `0.1.6-alpha.2` | published | Fixes chips staying at their old coordinates for ~20s when a workspace is collapsed or expanded: a second `MutationObserver.observe()` on the same target had silently replaced the `childList` watch. |
|
|
132
135
|
| `0.1.1` | `0.1.6-alpha.2` | published | Documentation only: the packaged README no longer says "not published", and the market screenshots are declared. |
|
|
133
136
|
| `0.1.0` | `0.1.6-alpha.2` | published | First release: Session colour marks, Host-side storage, visible inside a phone's sidebar drawer |
|
|
134
137
|
|
|
135
|
-
**`0.1.
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
**`0.1.6` supports DSH `0.2.0-rc.1`, the latest release candidate.** Between
|
|
139
|
+
`0.1.7-rc.2` and `0.2.0-rc.1` every contract this plugin depends on is
|
|
140
|
+
unchanged — the client-modules loader and the slot registration API differ only
|
|
141
|
+
in their package version numbers, the compatibility precheck that evaluates
|
|
142
|
+
`peerDependencies` is byte-identical, the sidebar row keeps its
|
|
143
|
+
`data-row-key`/`role`/`aria-selected` markup, `conversation.session.header.utilities`
|
|
144
|
+
is still a session-scoped list, and `shell.overlay` still renders the same layer
|
|
145
|
+
— so **`0.1.6` confirms the same code runs unchanged on the new RC and records
|
|
146
|
+
it.** The range changes because the old `<0.2.0` upper bound admitted
|
|
147
|
+
`0.2.0-rc.1` only through prerelease ordering: on the `0.2.0` **final** release
|
|
148
|
+
the plugin row would have been disabled at boot. Under node-semver's prerelease
|
|
149
|
+
rule each tuple must be named, so the range now has three alternatives — the
|
|
150
|
+
verified `0.1.7` line, exactly `0.2.0-rc.1`, and the `0.2.0` stable line up to
|
|
151
|
+
`<0.3.0`.
|
|
152
|
+
**Upgrading from `0.1.5` needs no migration.** On an older DSH — including
|
|
153
|
+
`0.1.6-alpha.2` — keep plugin **`0.1.2`**. Newer DSH releases are not
|
|
154
|
+
auto-declared compatible.
|
|
141
155
|
|
|
142
156
|
- **Verified DeepSeek Harness** is the exact DSH version this plugin was actually
|
|
143
157
|
run against. That list has one home — `dsh.compatibility.dshReleases` in
|
|
144
158
|
[`package.json`](package.json) — and a test keeps both READMEs' compatibility
|
|
145
159
|
sections word-for-word with it and inside the range `peerDependencies`
|
|
146
160
|
declares. A DSH version that is not listed is **never claimed as compatible**.
|
|
147
|
-
- `peerDependencies`
|
|
148
|
-
|
|
149
|
-
as the Host requirement: that is the
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
`major.minor.patch
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
161
|
+
- `peerDependencies` declare `>=0.1.7-alpha.2 <0.2.0-0 || 0.2.0-rc.1 || >=0.2.0 <0.3.0`
|
|
162
|
+
for `dsh-client-ui-layout` and `dsh-client-ui-conversation`, and
|
|
163
|
+
`dsh.engines.dsh` declares the same range as the Host requirement: that is the
|
|
164
|
+
range allowed to **load**, which is not the same as verified. The three
|
|
165
|
+
alternatives are deliberate: a prerelease is admitted only when a comparator
|
|
166
|
+
names its exact `major.minor.patch`, so the `0.1.7` line needs its own
|
|
167
|
+
comparator, `0.2.0-rc.1` is pinned exactly (an untested `0.2.0-rc.2` stays
|
|
168
|
+
out), and the stable `0.2.0` line is admitted so the plugin survives the
|
|
169
|
+
final release. The lower bound names the alpha on purpose: a range like
|
|
170
|
+
`>=0.1.6-0 <0.2.0` admits none of the verified versions.
|
|
171
|
+
- DSH evaluates those peers at boot and **disables** a plugin row whose range is
|
|
172
|
+
not satisfied, so a correct range is load-bearing rather than cosmetic. The
|
|
173
|
+
evaluation code is identical in `0.1.7-rc.1`, `0.1.7-rc.2` and `0.2.0-rc.1`.
|
|
174
|
+
- DSH 0.1.7-rc.2 added a real Session-row seat,
|
|
175
|
+
`sidebar.session.row.leading` — a 16px cell before the title. The chip
|
|
176
|
+
deliberately **stays on its own click-through layer**: that seat shares its cell
|
|
177
|
+
with the status dot and is mounted **only while the row is idle** (a running,
|
|
178
|
+
waiting or archived row renders no occupant), so a chip placed there would
|
|
179
|
+
vanish exactly when it is most useful. See
|
|
180
|
+
[Limitations](#limitations) and the design record.
|
|
162
181
|
- `@deepseek-ai/schemastery` is a **peer**, not a plain dependency: DSH 0.1.7
|
|
163
182
|
resolves only a linked plugin's peer dependencies from the running
|
|
164
183
|
installation, so a `link:` install of this directory would otherwise fail to
|
|
@@ -256,6 +275,12 @@ unaffected** because the layer is click-through.
|
|
|
256
275
|
- **The chip depends on DSH's row DOM.** It reads rows by ARIA role and the
|
|
257
276
|
Session id from the row's `data-row-key`, falling back to React internals. A
|
|
258
277
|
future DSH release can stop chips from appearing; it cannot break clicking.
|
|
278
|
+
- **The chip is not a row occupant.** DSH 0.1.7-rc.2 declares a real
|
|
279
|
+
`sidebar.session.row.leading` seat in the row's status-dot cell, and this plugin
|
|
280
|
+
deliberately does **not** use it: that seat is mounted only while a row is idle,
|
|
281
|
+
so a chip placed there would disappear for running, waiting and archived
|
|
282
|
+
Sessions. The chip stays on its own click-through layer, which keeps it visible
|
|
283
|
+
in every state and never covers the dot.
|
|
259
284
|
- **Marks are per DSH instance.** They live in one profile's data directory, so
|
|
260
285
|
two independent DSH servers do not share them.
|
|
261
286
|
- **No permission model.** Anyone who can reach the Host's authenticated routes
|
package/README.zh.md
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<a href="#开发">开发</a>
|
|
24
24
|
</p>
|
|
25
25
|
|
|
26
|
-
> **✅ 已支持 DSH `0.
|
|
26
|
+
> **✅ 已支持 DSH `0.2.0-rc.1` —— 最新的 `0.2.0` 候选版本(RC)。** 已在运行中的该 RC 实例上实测通过,同时也兼容 `0.1.7-rc.2`、`0.1.7-rc.1` 与 `0.1.7-alpha.2`;详见[兼容性](#兼容性)。
|
|
27
27
|
|
|
28
28
|
> DSH Session Colors 是 DeepSeek Harness 社区插件。它不修改 DSH 核心,也不改写任何会话或工作区数据:一个标记只是"会话 ID → 一个颜色"。
|
|
29
29
|
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
|
|
54
54
|
- 带 Web profile 的 DeepSeek Harness
|
|
55
55
|
- Node.js 20 或更新版本
|
|
56
|
-
- **已验证的 DSH 版本:`0.1.7-rc.1
|
|
56
|
+
- **已验证的 DSH 版本:`0.2.0-rc.1`**(最新候选版)、`0.1.7-rc.2`、`0.1.7-rc.1` 与 `0.1.7-alpha.2`——插件 `0.1.6`(见[兼容性](#兼容性))
|
|
57
57
|
|
|
58
58
|
```sh
|
|
59
59
|
dsh plugin --profile <profile> add @idoall/dsh-session-colors@latest
|
|
@@ -92,21 +92,25 @@ dsh plugin --profile <profile> add link:/path/to/dsh-session-colors
|
|
|
92
92
|
|
|
93
93
|
## 兼容性
|
|
94
94
|
|
|
95
|
-
当前版本:插件 **`0.1.
|
|
95
|
+
当前版本:插件 **`0.1.6`** 已针对 DeepSeek Harness **`0.2.0-rc.1`**(最新的 `0.2.0` 候选版本)验证,同时也兼容 **`0.1.7-rc.2`**、**`0.1.7-rc.1`** 与 **`0.1.7-alpha.2`**。
|
|
96
96
|
|
|
97
97
|
| 插件版本 | 已验证的 DeepSeek Harness | npm 发布状态 | 该版本是什么 |
|
|
98
98
|
| --- | --- | --- | --- |
|
|
99
|
-
| **`0.1.
|
|
99
|
+
| **`0.1.6`** | **`0.2.0-rc.1`**(最新 RC)、`0.1.7-rc.2`、`0.1.7-rc.1`、`0.1.7-alpha.2` | `latest` | 在 DSH `0.2.0-rc.1` 上实测同一份代码,并重写声明范围使插件能在 `0.2.0` 正式版上继续加载。代码与 `0.1.5` 相同,升级无需迁移。 |
|
|
100
|
+
| `0.1.5` | `0.1.7-rc.2`(最新 0.1.7 RC)、`0.1.7-rc.1`、`0.1.7-alpha.2` | 已发布 | 确认同一份代码在第二个候选版本上原样可用并加以声明。代码与 `0.1.4` 相同,升级无需迁移。 |
|
|
101
|
+
| `0.1.4` | `0.1.7-rc.1`(RC)、`0.1.7-alpha.2` | 已发布 | 确认 `0.1.7` 适配在首个候选版本上原样可用并加以声明。代码与 `0.1.3` 相同。 |
|
|
100
102
|
| `0.1.3` | `0.1.7-alpha.2` | 已发布 | 适配 DSH 0.1.7:会话 id 改从行自身的 `data-row-key` 读取(保留 fiber 回退),色块跟随 0.1.7 引入的 Web Animations 行滑动;宿主依赖按 0.1.7 对 link 插件的解析方式声明。 |
|
|
101
103
|
| `0.1.2` | `0.1.6-alpha.2` | 已发布 | 修掉折叠/展开工作区后色块停在旧位置约 20 秒:同一个 target 上第二次 `MutationObserver.observe()` 把 `childList` 监听顶掉了。 |
|
|
102
104
|
| `0.1.1` | `0.1.6-alpha.2` | 已发布 | 仅文档:打包进 npm 的 README 不再写"尚未发布",并声明了市场截图。 |
|
|
103
105
|
| `0.1.0` | `0.1.6-alpha.2` | 已发布 | 首个版本:会话颜色标记、宿主侧存储、手机抽屉内可见 |
|
|
104
106
|
|
|
105
|
-
**`0.1.
|
|
107
|
+
**`0.1.6` 支持 DSH `0.2.0-rc.1`,即最新的候选版本(RC)。** `0.1.7-rc.2 → 0.2.0-rc.1` 之间,本插件依赖的契约全部没有变化——client-modules 加载器与 slot 注册 API 只差包版本号,评估 `peerDependencies` 的兼容性预检逐字节相同,侧栏行仍带 `data-row-key`/`role`/`aria-selected`,`conversation.session.header.utilities` 仍是 session 作用域的 list 座位,`shell.overlay` 仍渲染同一层——所以 **`0.1.6` 确认同一份代码在新 RC 上原样可用,并把它记入声明。** 范围这次要改,是因为旧的 `<0.2.0` 上界只是靠预发布排序才接纳了 `0.2.0-rc.1`:到了 `0.2.0` **正式版**,插件行会在启动时被直接禁用。而按 node-semver 的预发布规则,每个元组都得有比较符明确写出,所以范围写成三个分支——已验证的 `0.1.7` 线、精确的 `0.2.0-rc.1`、以及到 `<0.3.0` 为止的 `0.2.0` 正式版线。
|
|
108
|
+
**从 `0.1.5` 升级无需任何迁移。** 仍在更旧的 DSH(含 `0.1.6-alpha.2`)上时,请继续用插件 **`0.1.2`**。更高的 DSH 版本不会被自动宣称为兼容。
|
|
106
109
|
|
|
107
110
|
- **已验证的 DeepSeek Harness** 是这个插件**实际跑过**的确切 DSH 版本。这份清单只有一个存放处——[`package.json`](package.json) 的 `dsh.compatibility.dshReleases`——并且有测试保证两个 README 的兼容性段落与它逐字一致、且落在 `peerDependencies` 声明的范围内。未列出的 DSH 版本**不会被宣称为兼容**。
|
|
108
|
-
- `peerDependencies` 声明的范围是 `>=0.1.7-alpha.2 <0.2.0`(`dsh-client-ui-layout` 与 `dsh-client-ui-conversation`),`dsh.engines.dsh`
|
|
109
|
-
- DSH 0.1.7-rc.1
|
|
111
|
+
- `peerDependencies` 声明的范围是 `>=0.1.7-alpha.2 <0.2.0-0 || 0.2.0-rc.1 || >=0.2.0 <0.3.0`(`dsh-client-ui-layout` 与 `dsh-client-ui-conversation`),`dsh.engines.dsh` 把同一范围声明为宿主要求:这是**允许加载**的范围,不等于已验证。三个分支是刻意写的:按 node-semver 的预发布规则,预发布只有在某个比较符写出同一个 `major.minor.patch` 时才被接纳——所以 `0.1.7` 线要自己的比较符,`0.2.0-rc.1` 精确钉死(没人测过的 `0.2.0-rc.2` 进不来),`0.2.0` 正式版线放开是为了插件能在正式版上继续加载。下界特意写成这个 alpha:`>=0.1.6-0 <0.2.0` 这样的范围一个已验证版本都不接纳。
|
|
112
|
+
- DSH 会在启动时校验这些 peer,范围不满足就**直接禁用该插件行**,所以范围写对已经不只是"声明问题";这段判定代码在 `0.1.7-rc.1`、`0.1.7-rc.2` 与 `0.2.0-rc.1` 中完全相同。
|
|
113
|
+
- DSH 0.1.7-rc.2 新增了一个真正的会话行座位 `sidebar.session.row.leading`(标题前那格 16px)。色块**刻意仍留在自己的点击穿透浮层上**:该座位与状态点共用同一格,且**只在行处于空闲时**才挂载(运行中、等待中、已归档的行都不渲染占位),把色块放进去反而会在最需要它的时候消失。详见[限制](#限制)与设计记录。
|
|
110
114
|
- `@deepseek-ai/schemastery` 声明为 **peer**,不是普通依赖:DSH 0.1.7 只把 link 插件的 **peer** 依赖解析到运行实例,所以用 `link:` 装入本目录时,普通依赖会让宿主半边 import 失败。
|
|
111
115
|
- DSH 升级快于插件时,插件本身不会因此报错:色块依赖 DSH 的行 DOM(见[限制](#限制)),所以 DSH 大改行结构时最坏的结果是**色块不再显示**,不会挡住点击。
|
|
112
116
|
|
|
@@ -173,6 +177,7 @@ document.querySelector('.dsh-sc-layer').dataset
|
|
|
173
177
|
## 限制
|
|
174
178
|
|
|
175
179
|
- **色块依赖 DSH 的行 DOM。** 它靠 ARIA role 找行、靠行自身的 `data-row-key` 取会话 ID(回退到 React 内部结构)。DSH 未来改版可能让色块不再显示;但**不会影响点击**。
|
|
180
|
+
- **色块不是行内占位元素。** DSH 0.1.7-rc.2 声明了真正的行座位 `sidebar.session.row.leading`(就落在状态点那一格),本插件**刻意不使用**它:该座位只在行空闲时挂载,色块放进去会在运行中、等待中与已归档的会话上消失。色块因此留在自己的点击穿透浮层上——任何状态下都可见,也永远不盖住状态点。
|
|
176
181
|
- **标记属于单个 DSH 实例。** 它存在某个 profile 的数据目录里,两个独立的 DSH 服务之间不共享。
|
|
177
182
|
- **没有权限模型。** 凡是能访问该 profile 已鉴权路由的人,都能读写标记。
|
|
178
183
|
- **只有颜色。** 没有文字标签、图标或 emoji。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idoall/dsh-session-colors",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "DSH web plugin: give any Session a colour mark, shown as a chip in the sidebar and picked from the conversation header. Marks are stored on the Host, so a colour chosen on one device is visible on every other one — including over LAN and tunnels.",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -21,10 +21,12 @@
|
|
|
21
21
|
"dsh": {
|
|
22
22
|
"manifestVersion": 1,
|
|
23
23
|
"engines": {
|
|
24
|
-
"dsh": ">=0.1.7-alpha.2 <0.2.0"
|
|
24
|
+
"dsh": ">=0.1.7-alpha.2 <0.2.0-0 || 0.2.0-rc.1 || >=0.2.0 <0.3.0"
|
|
25
25
|
},
|
|
26
26
|
"compatibility": {
|
|
27
27
|
"dshReleases": {
|
|
28
|
+
"0.2.0-rc.1": "compatible",
|
|
29
|
+
"0.1.7-rc.2": "compatible",
|
|
28
30
|
"0.1.7-rc.1": "compatible",
|
|
29
31
|
"0.1.7-alpha.2": "compatible"
|
|
30
32
|
}
|
|
@@ -47,8 +49,8 @@
|
|
|
47
49
|
"access": "public"
|
|
48
50
|
},
|
|
49
51
|
"peerDependencies": {
|
|
50
|
-
"@deepseek-ai/dsh-client-ui-conversation": ">=0.1.7-alpha.2 <0.2.0",
|
|
51
|
-
"@deepseek-ai/dsh-client-ui-layout": ">=0.1.7-alpha.2 <0.2.0",
|
|
52
|
+
"@deepseek-ai/dsh-client-ui-conversation": ">=0.1.7-alpha.2 <0.2.0-0 || 0.2.0-rc.1 || >=0.2.0 <0.3.0",
|
|
53
|
+
"@deepseek-ai/dsh-client-ui-layout": ">=0.1.7-alpha.2 <0.2.0-0 || 0.2.0-rc.1 || >=0.2.0 <0.3.0",
|
|
52
54
|
"@deepseek-ai/schemastery": "^3.18.2",
|
|
53
55
|
"react": "^18.2.0"
|
|
54
56
|
},
|