dsh-session-manager 0.7.0 → 0.7.2
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 +19 -0
- package/README.md +18 -16
- package/README.zh.md +19 -17
- package/lib/client.js +591 -132
- package/lib/index.js +693 -197
- package/lib/session-files.js +73 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.7.2 — 2026-10-17
|
|
6
|
+
|
|
7
|
+
- **fix(encoding)**: Correct session directory encoding and candidate matching for IM and non-UUID sessions (`encodeFsSessionSegment` matching DSH `encodeSegment` with `~XXXX` hex escapes). Support colons and non-alphanumeric characters in session IDs without directory traversal risks, distinguish project keys from session directory segments, and maintain multi-candidate fallback compatibility for existing sessions (#39).
|
|
8
|
+
- **fix(ui)**: Scope custom dropdown interceptor to Session Manager elements only (`getTargetSmSelect`), preventing global interception of third-party plugin selects and DSH native dropdowns and eliminating unwanted `preventDefault` / `stopPropagation` calls (#36).
|
|
9
|
+
- **fix(ui)**: Prevent scrolling within the custom select menu from closing the menu, enabling smooth wheel scrolling and scrollbar dragging across long option lists (PR #37).
|
|
10
|
+
- **fix(ui)**: Improve sidebar footer layout compatibility when multiple plugins inject actions into `sidebar.footer.action`. Apply scoped `flex-wrap: wrap` on the footer actions container and update `.sm-footerBtn-wide` to `flex: 1 1 100%`, preventing overlapping buttons and horizontal squishing without fragile CSS module hashes or targeting other plugins' private classes (#38).
|
|
11
|
+
- **compat**: Compatible with DSH Desktop V0.2.1-rc.2 (and V0.2.0-rc.2).
|
|
12
|
+
|
|
13
|
+
## 0.7.1 — 2026-10-15
|
|
14
|
+
|
|
15
|
+
- **fix(cache)**: Decouple boot-time workspace session membership reconciliation from projection cache reconstruction, preventing background event-loop blocking and watchdog recovery timeouts on large session libraries (#32).
|
|
16
|
+
- **fix(cache)**: Fix projection cache reconstruction error on packed rows (e.g. `tool-call-chunks` without sequential `seq`); prioritize official `adapter.openSessionRead()` logical events and safely skip unmigrated physical rows during disk fallback without triggering missing seq warnings (#32).
|
|
17
|
+
- **fix(move)**: Preserve source artifact filename and generation version when moving cold sessions across workspaces, preventing forged `version: 4` headers on unmigrated physical event content (#32).
|
|
18
|
+
- **fix(safety)**: Safely skip corrupted JSON lines and unresolvable seeded session boundaries during cache refold, preserving original session artifacts without poisoning projection caches (#32).
|
|
19
|
+
- **feat(perf)**: Introduce budget controls (50 sessions max, 2000ms timeout, 5MB artifact limit) and event-loop yielding (`setImmediate`) during boot projection cache sweeps (#32).
|
|
20
|
+
- **feat(update)**: Support on-demand silent update checks when opening session manager panel with a 6-hour interval, 30-minute failure cooldown, and concurrent request protection.
|
|
21
|
+
- **feat(ui)**: Refine settings card layout and preferences order (Auto-check -> Registry -> Opacity), harmonize control widths, and inline background opacity description hint.
|
|
22
|
+
- **test**: Add comprehensive regression tests covering packed rows, old format moves, cache hits/misses, large history library budget limits, post-move cache consistency (#32), and on-demand panel update checks.
|
|
23
|
+
|
|
5
24
|
## 0.7.0 — 2026-10-15
|
|
6
25
|
|
|
7
26
|
- **fix(ui)**: Unify select dropdown styling across all dialogs and panels with shadow-free custom floating menus, strictly align popup width with triggers, and isolate pointer events to eliminate duplicate native OS popups on Chromium.
|
package/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
English | [中文](README.zh.md)
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/dsh-session-manager)
|
|
6
|
+
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
6
7
|
[](https://github.com/hkkz9522/dsh-session-manager)
|
|
7
8
|
[](https://github.com/hkkz9522/dsh-session-manager/actions/workflows/ci.yml)
|
|
8
9
|
[](https://awesome-dsh-plugin.com)
|
|
@@ -51,7 +52,7 @@ Verified with the official DSH Desktop client; see [5 Compatibility](#5-compatib
|
|
|
51
52
|
- **Theme**: Automatically follows the active DSH theme (including third-party theme plugins). Dialogs, settings cards, title-bar buttons, menus, inputs, and all other UI elements seamlessly adapt to light and dark themes.
|
|
52
53
|
- **Unified dropdown styling**: All select dropdowns (sort, filter, priority) use unified shadow-free rounded custom floating menus matching active themes, strictly aligned with trigger widths, eliminating Chromium duplicate native popups.
|
|
53
54
|
|
|
54
|
-
### 1.5 Workspace Archiving and Management
|
|
55
|
+
### 1.5 Workspace Archiving and Management
|
|
55
56
|
|
|
56
57
|
- **Two-page tab switching**: Seamlessly switch between "Session Management" and "Workspace Management" in the dialog header, preserving each page's distinct search, filter, and sort states.
|
|
57
58
|
- **Workspace list**: Displays all registered workspaces with title/name, physical path, session count, latest activity timestamp computed from member sessions, and right-side toggle switch.
|
|
@@ -140,21 +141,22 @@ After changing plugin dependencies, `package.json`, bundle configuration, or oth
|
|
|
140
141
|
|
|
141
142
|
## 5 Compatibility
|
|
142
143
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
> Verification note
|
|
146
|
-
|
|
147
|
-
|
|
|
148
|
-
|
|
|
149
|
-
|
|
|
150
|
-
|
|
151
|
-
| v0.1.
|
|
152
|
-
|
|
|
153
|
-
|
|
|
154
|
-
|
|
155
|
-
| v0.1.
|
|
156
|
-
|
|
|
157
|
-
|
|
|
144
|
+
The table below lists verified version combinations between DeepSeek Harness (DSH) and `dsh-session-manager`.
|
|
145
|
+
|
|
146
|
+
> **Verification note**: From version 0.6.3 onwards, this plugin is verified with the official DSH Desktop client only (the Web UI shares the same Host/client codebase but is no longer covered by the verification matrix).
|
|
147
|
+
|
|
148
|
+
| DeepSeek Harness (DSH) | dsh-session-manager | Verified Environment |
|
|
149
|
+
| :--- | :--- | :--- |
|
|
150
|
+
| **v0.2.1-rc.2** | `0.7.2` | Desktop |
|
|
151
|
+
| **v0.2.0-rc.2** | `0.7.1`, `0.7.0`, `0.6.4`, `0.6.3`, `0.6.2`, `0.5.4` | Desktop |
|
|
152
|
+
| **v0.1.7-rc.2** | `0.5.3` | Desktop / Web UI |
|
|
153
|
+
| **v0.1.7-rc.1** | `0.5.2` | Desktop / Web UI |
|
|
154
|
+
| **v0.1.6-alpha.2** | `0.5.1` | Web UI |
|
|
155
|
+
| **v0.1.5-rc.2** | `0.4.11` | Web UI |
|
|
156
|
+
| **v0.1.5-rc.1** | `0.4.10`, `0.4.9`, `0.4.7` | Web UI |
|
|
157
|
+
| **v0.1.3-alpha.2** | `0.4.6`, `0.4.4`, `0.4.1` | Web UI |
|
|
158
|
+
| **v0.1.2-rc.1** | `0.4.0` | Web UI |
|
|
159
|
+
| **v0.1.0-rc.7** | `0.1.2`, `0.1.1`, `0.1.0` | Web UI |
|
|
158
160
|
|
|
159
161
|
The version combinations above have been tested with either the official Web UI or Desktop app. Other version combinations may also work but have not been individually verified.
|
|
160
162
|
|
package/README.zh.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
[English](README.md) | 中文
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/dsh-session-manager)
|
|
6
|
+
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
6
7
|
[](https://github.com/hkkz9522/dsh-session-manager)
|
|
7
8
|
[](https://github.com/hkkz9522/dsh-session-manager/actions/workflows/ci.yml)
|
|
8
9
|
[](https://awesome-dsh-plugin.com)
|
|
@@ -42,14 +43,14 @@ DSH 会话与工作区管理——工作区:归档与显示。会话:跨工
|
|
|
42
43
|
|
|
43
44
|
### 1.4 插件更新与设置卡片
|
|
44
45
|
|
|
45
|
-
-
|
|
46
|
+
- **检查更新**:会话管理窗口顶部提供 🐋(鲸鱼)图标按钮,点击可检查新版本并在有更新时展示小红点提示;点击弹出更新窗口,展示当前版本与最新版本,支持一键调用插件管理器安装更新。
|
|
46
47
|
- **设置卡片**:注册在 DSH 设置的插件配置页(`settings.plugin.item`)。展示当前安装版本、最新版本状态、卡片内检查更新与更新按钮、自动检查偏好开关以及 GitHub 仓库链接。
|
|
47
48
|
- **安装源选择**:在设置卡片中可随时切换安装源,可选 **npm 官方源**(`registry.npmjs.org`,默认)与 **中国大陆镜像源**(`registry.npmmirror.com`);检查更新与版本下载将直接请求所选源。
|
|
48
49
|
- **弹窗透明度**:设置卡片「偏好设置」区域提供 50%–100% 滑块(步长 5%,默认 100%)与「恢复默认」按钮,支持调节插件弹窗的背景填充透明度,文字、按钮、输入框、标签与边框等内容保持不透明并即时生效。
|
|
49
50
|
- **主题**:全面跟随 DSH 当前主题(包含第三方主题插件),弹窗、设置卡片、标题栏按钮、下拉菜单、输入框等界面元素自动适配浅色与深色主题。
|
|
50
51
|
- **统一下拉样式**:所有下拉选择框(排序、筛选、优先级等)采用无四周阴影的统一圆角自定义浮层,严格对齐触发框宽度,并解决 Chromium 原生系统弹层与自定义浮层重叠的双层问题。
|
|
51
52
|
|
|
52
|
-
### 1.5
|
|
53
|
+
### 1.5 工作区归档与管理
|
|
53
54
|
|
|
54
55
|
- **双页面切换**:在管理弹窗顶部可在「会话管理」与「工作区管理」之间无缝切换,保留各自的搜索与筛选状态。
|
|
55
56
|
- **工作区列表**:完整展示全部已注册工作区,包含工作区名称、物理路径、所属会话数、基于所属会话计算的最近更新时间及状态开关。
|
|
@@ -138,21 +139,22 @@ dsh plugin --profile web add <本仓库路径>
|
|
|
138
139
|
|
|
139
140
|
## 5 兼容性
|
|
140
141
|
|
|
141
|
-
DSH
|
|
142
|
-
|
|
143
|
-
>
|
|
144
|
-
|
|
145
|
-
|
|
|
146
|
-
|
|
|
147
|
-
|
|
|
148
|
-
|
|
149
|
-
| v0.1.
|
|
150
|
-
|
|
|
151
|
-
|
|
|
152
|
-
|
|
153
|
-
| v0.1.
|
|
154
|
-
|
|
|
155
|
-
|
|
|
142
|
+
下表列出 DeepSeek Harness(DSH)与 `dsh-session-manager` 已验证的版本组合。
|
|
143
|
+
|
|
144
|
+
> **版本验证说明**:自 0.6.3 起,本插件仅在官方 DSH Desktop 客户端上进行验证(Web UI 与本插件共用同一套 Host / 客户端代码,但不再纳入常规验证范围)。
|
|
145
|
+
|
|
146
|
+
| DeepSeek Harness (DSH) | dsh-session-manager | 验证环境 |
|
|
147
|
+
| :--- | :--- | :--- |
|
|
148
|
+
| **v0.2.1-rc.2** | `0.7.2` | Desktop |
|
|
149
|
+
| **v0.2.0-rc.2** | `0.7.1`, `0.7.0`, `0.6.4`, `0.6.3`, `0.6.2`, `0.5.4` | Desktop |
|
|
150
|
+
| **v0.1.7-rc.2** | `0.5.3` | Desktop / Web UI |
|
|
151
|
+
| **v0.1.7-rc.1** | `0.5.2` | Desktop / Web UI |
|
|
152
|
+
| **v0.1.6-alpha.2** | `0.5.1` | Web UI |
|
|
153
|
+
| **v0.1.5-rc.2** | `0.4.11` | Web UI |
|
|
154
|
+
| **v0.1.5-rc.1** | `0.4.10`, `0.4.9`, `0.4.7` | Web UI |
|
|
155
|
+
| **v0.1.3-alpha.2** | `0.4.6`, `0.4.4`, `0.4.1` | Web UI |
|
|
156
|
+
| **v0.1.2-rc.1** | `0.4.0` | Web UI |
|
|
157
|
+
| **v0.1.0-rc.7** | `0.1.2`, `0.1.1`, `0.1.0` | Web UI |
|
|
156
158
|
|
|
157
159
|
以上版本组合已在官方 Web UI 或 Desktop 客户端中完成测试。其他版本组合可能同样兼容,但未逐一验证。
|
|
158
160
|
|