dsh-lmw-plugin 0.0.0-stage → 1.0.4

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 李默闻 (Li Mowen)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,37 @@
1
- # Temporary Holding Version
1
+ # dsh-lmw-plugin
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ DeepSeek Harness 插件:**会话分配检查**、**导入会话**、**工作区路径副标题**。
4
+
5
+ ## 安装(npm)
6
+
7
+ 1. 在 DSH 中打开 **设置 → 插件 → 添加插件**;
8
+ 2. 输入包名 `dsh-lmw-plugin`(或锁定版本 `dsh-lmw-plugin@1.0.0`),安装并启用;
9
+ 3. **重启一次 DSH**(Host 端代码需要重启加载)。
10
+
11
+ 版本要求:DSH `0.2.2-rc.5` 或兼容的 `0.2.x`(见 `package.json` 的 `engines.dsh`)。
12
+
13
+ > 也可以让 agent 调用 `plugin_manager` 的 `install_bundle`,`target` 传 `dsh-lmw-plugin@1.0.0`。
14
+
15
+ ## 功能
16
+
17
+ - **会话分配检查**:左栏底部按钮,只检查会话——按会话目录列出未分配工作区的会话,勾选后按 DSH 自身方式创建/复用工作区并挂载。没有任何对话消息的空会话(DSH 中显示「未命名」,只含权限/沙箱等初始化事件)不会列出,避免分配出空工作区。
18
+ - **启动完整检查**:开启 DSH 时自动打开「LMW-DSH基础功能」窗口,含「会话分配」与「Skill 目录」两个分区;右下角「确认执行」先确认再一次性执行。
19
+ - **导入会话**:选择其它目录 → 「识别」→ 校验格式并与本机会话对比(相同会话按“文件更大或时间更新”判定,只满足其一给黄色警告)→ 勾选 → 添加:相同会话替换(需未打开、id/cwd 一致,自动备份),新会话自动分配工作区并预热标题。没有任何对话消息的空会话(DSH 中显示「未命名」,只含权限/沙箱等初始化事件)不会被列为可添加,会归入「不可添加」并标注「空会话」。
20
+ - **工作区路径副标题**:侧栏每个工作区名下方显示可换行的完整目录路径。
21
+ - **重新加载页面**:左栏按钮(Windows 桌面版没有 F5 重载)。
22
+ - 可配置:`autoOpenOnStartup`、`warmTitleCache`、`warmTitleLimit`、`warmMaxEvents`、`importMaxFiles`、`importMaxFileBytes`。
23
+
24
+ ## 限制
25
+
26
+ - 依赖 DSH 内部接口(`workspaceRegistry`、`sessionQuery`、`sessionProjectionCache`、客户端 `ctx.sessions`/`uiWorkspace`),仅适配 0.2.x,升级 DSH 大版本可能需要更新。
27
+ - 会话记录的目录不存在时无法分配;子代理会话跳过;已归档会话带标记。
28
+ - 工作区路径副标题依赖官方工作区行结构,改版可能静默失效(其余功能不受影响)。
29
+ - 替换相同会话要求该会话未在 DSH 中打开。
30
+
31
+ ## English
32
+
33
+ DeepSeek Harness plugin: session assignment check, session import with format validation and in-place replacement, workspace path subtitles, and a skills-directory check. Install `dsh-lmw-plugin` from npm (or a Git commit), enable it, then restart DSH once. Requires DSH 0.2.x.
34
+
35
+ ## License
36
+
37
+ MIT