dsh-group-mode 0.0.0-stage → 0.3.3

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 ADDED
@@ -0,0 +1,33 @@
1
+ # 更新日志
2
+
3
+ ## [0.3.3](https://github.com/Carvyo/dsh-group-mode/releases/tag/v0.3.3)
4
+
5
+ - **频道规则置顶。** 打开「设置与成员」先看到频道规则。「询问我」和「自动处理」分两行,分别说明何时会先问用户、何时由组长代为处理疑问。组长改用下拉框选择。
6
+ - **外观集中设置。** 「频道外观」默认收起。展开可设置消息布局、任务栏位置、输入框高度,并在同一处调整配色、选择底图或恢复默认。
7
+ - **成员列表默认收起。** 列表入口显示在组人数。展开后在列表内滚动,成员再多也能直接找到下方的添加成员设置。
8
+
9
+ ## [0.3.3-rc.17](https://github.com/Carvyo/dsh-group-mode/releases/tag/v0.3.3-rc.17)
10
+
11
+ - **暂停、重发和移交。** 在任务卡点「暂停任务」可停止该任务发起的 DSH 轮次。停稳后可以移交,也可以在成员设置更换模型,再点「重发任务」交回原成员。重发沿用原任务并保留执行记录。轮次混有私聊时,任务先暂停派发,等这一轮结束后再开放重发和移交。
12
+ - **成员状态计时。** 成员动态显示思考、工具调用和等待审批等 DSH 状态的持续时间。切换状态时重新计时。
13
+ - **五分钟异常提醒。** 连续思考满 5 分钟,成员动态与任务列表会显示黄色「疑似异常」。工具调用、等待审批和排队分别显示自身状态。是否暂停由用户决定。
14
+ - **全员投递常驻提醒。** 开启「全员投递」后,输入框上方一直显示「全员投递已开启」,可就地关闭。刷新后,提示随当前频道的开关状态恢复。
15
+
16
+ ## [0.3.3-rc.16](https://github.com/Carvyo/dsh-group-mode/releases/tag/v0.3.3-rc.16)
17
+
18
+ - 输入 @ 可筛选成员并选中点名。点名会高亮,光标紧跟点名时按退格可整段删除。输入框下方保留快捷点名。
19
+ - @全体成员仅投递当前消息。「全员投递」开关持续投递本频道的后续消息,直到关闭。
20
+
21
+ ## [0.3.3-rc.15](https://github.com/Carvyo/dsh-group-mode/releases/tag/v0.3.3-rc.15)
22
+
23
+ - 支持对话与专注布局。任务栏可独立摆放,也可以调整聊天宽度、配色和静态底图。
24
+ - 成员动态默认展开。点动态或消息头像可以打开成员设置或会话。输入框可随长文本自动增高,也可锁定高度。
25
+ - 组长可查看组员的介绍、执行模型、推理等级和上下文容量。组员领取任务时可查看自己的介绍。
26
+
27
+ ## [0.3.3-rc.7](https://github.com/Carvyo/dsh-group-mode/releases/tag/v0.3.3-rc.7)
28
+
29
+ - 更新公开发行的包清单及中英文说明。
30
+
31
+ ## [0.3.3-rc.6](https://github.com/Carvyo/dsh-group-mode/releases/tag/v0.3.3-rc.6)
32
+
33
+ - 首个公开预览版。支持小组频道、成员独立会话、派工、子任务、移交以及在频道收取结果和文件。
package/LICENSE ADDED
@@ -0,0 +1,18 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Carvyo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
6
+ associated documentation files (the "Software"), to deal in the Software without restriction, including
7
+ without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
9
+ following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all copies or substantial
12
+ portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
15
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
16
+ EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
18
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.en.md ADDED
@@ -0,0 +1,61 @@
1
+ # DSH Group Mode
2
+
3
+ [简体中文](README.md)
4
+
5
+ Organize work across DSH sessions with group-chat channels and task tickets. Even if you only have a rough goal, tell the lead what you want and have them break it into tasks, assign the work, and bring the results back to you.
6
+
7
+ Create a channel in a workspace, assign work to a channel lead or individual members, track subtasks and handoffs, and collect results and files in the channel. Each member has a separate DSH session with its own model, reasoning level, and workspace permissions.
8
+
9
+ [Changelog (Chinese)](./CHANGELOG.md) · [Release notes](https://github.com/Carvyo/dsh-group-mode/releases/tag/v0.3.3)
10
+
11
+ ## Installation and upgrades
12
+
13
+ Version `0.3.3` supports DSH `0.2.2-rc.5`. A fresh installation and an in-place upgrade from the GitHub `rc.17` preview were tested on Windows with DSH Web.
14
+
15
+ 1. [Download dsh-group-mode-0.3.3.tgz](https://github.com/Carvyo/dsh-group-mode/releases/download/v0.3.3/dsh-group-mode-0.3.3.tgz).
16
+ 2. In DSH, open **Plugins → Add plugin → Install third-party plugin**. Enter the absolute path to the downloaded file in **Package name or address**. Restart DSH after installation.
17
+ 3. In the sidebar, open **New session** and choose the group option (**新建小组**).
18
+
19
+ To upgrade the GitHub version, install the archive over the existing installation and restart DSH. If you installed the @local/dsh-group-mode test build, use a local upgrade package with the same package name.
20
+
21
+ ## Create a group
22
+
23
+ 1. Name the channel and select a workspace. To register a different folder, use the first option in the workspace menu (**+ 添加工作区…**).
24
+ 2. Add members and choose a lead. You can use existing DSH roles or create members by choosing a name and model. Use the channel description to share project context, working rules, or the expected output format.
25
+ 3. Send a request in the channel. Press `Enter` to send, or `Shift+Enter` or `Ctrl+Enter` to insert a line break. Select a member's name to open their session, edit their profile, or change how they run tasks.
26
+
27
+ ## Assign and track work
28
+
29
+ - **Assign one member.** Start a message with a mention. Type `@` to filter the member list or choose a shortcut below the composer. Mentions are highlighted. Press `Backspace` immediately after a mention to remove it in one step. The channel lead handles requests without a mention.
30
+ - **Split work among members.** Mention several members at the start of a message. They propose a division of work in order, then carry out the agreed plan in parallel or in sequence. Subtask results and files can pass to a designated member for a summary in the channel.
31
+ - **Send to everyone.** Choose `@全体成员` from the member list or shortcuts to send one message to everyone. Turn on 全员投递 to send subsequent messages in that channel to everyone until you turn it off. Each current member gets a separate task.
32
+ - **Track tasks and handoffs.** The channel timeline shows who received each assignment and what they were asked to do. Expand the task tree to see the original request, subtasks, timing, blockers, and handoffs. Open task history to review completed work. A link at the top of a member's session takes you back to the corresponding channel task.
33
+ - **Answer questions and review discussions.** In the mode that asks for your input, answer directly in the task card. In automatic mode, members can proceed on their own or ask the lead to take over. The lead can also start a five-turn discussion between two members. Read the transcript in task details and the final response in the channel timeline.
34
+ - **Share files.** Paste or upload attachments, or reference existing workspace files. Members can submit files they created during a task or point to files already in the workspace. Supported images appear as thumbnails that open at full size.
35
+
36
+ - **Channel settings.** Channel rules appear first, with explanations for both request-handling modes. The member list starts collapsed and scrolls within its own panel when expanded.
37
+ - **Channel appearance.** Expand the appearance panel to change the conversation layout, task panel position, colors and background, or composer height. Drag to adjust the message width.
38
+ - **Member activity.** Activity appears beside the channel title by default and can be collapsed. Click a member in the activity strip or their message avatar to open the member menu or session.
39
+ - **Composer.** The composer grows as text wraps. You can lock its height in the channel appearance settings.
40
+
41
+ ### Try a shared task
42
+
43
+ Create a group with members named **Docs**, **QA**, and **Lead**, then send this message.
44
+
45
+ > @Docs @QA Please review the README in parallel. Docs, check whether the installation instructions are clear. QA, try the installation steps. Once both reviews are complete, have Lead post a summary of the issues and suggested fixes.
46
+
47
+ ## Member profiles
48
+
49
+ Members can read their own introduction when claiming a task. The lead and the member confirming a plan can also see the team’s introductions, models, reasoning levels, and context windows in tokens.
50
+
51
+ ## Data and permissions
52
+
53
+ The plugin stores channel data under `.dsh-group/channels/`, attachments under `.dsh-group/attachments/`, and discussion transcripts under `.dsh-group/discussion-turns/` in the selected workspace. References to existing workspace files leave those files in place. DSH manages member sessions. When adding a member from an existing session, you can copy that session's history. Task context is sent to the member's configured model, and file access follows DSH permissions.
54
+
55
+ ## Feedback
56
+
57
+ Open a [GitHub issue](https://github.com/Carvyo/dsh-group-mode/issues) with the DSH and plugin versions, the steps to reproduce the issue, and what happened.
58
+
59
+ ## License
60
+
61
+ [MIT](LICENSE).
package/README.md CHANGED
@@ -1,3 +1,139 @@
1
- # Temporary Holding Version
1
+ # DSH 小组模式 · dsh-group-mode
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
+ [English](README.en.md)
4
+
5
+ 在 DSH 中用群聊式频道和任务单组织多会话协作。哪怕只有一个大致目标,也可以直接「许愿」,让组长拆成任务、安排成员执行,再把结果汇总给你。
6
+
7
+ `0.3.3` 正式版· 适配 DSH `0.2.2-rc.5` · 已在 Windows 上的 DSH Web 验证 · MIT
8
+
9
+ ![小组频道:左侧频道与本频道成员,中间任务时间线,下方进行中的任务卡](./docs/preview.png)
10
+
11
+ ## 它解决什么问题
12
+
13
+ 小组模式适合需要多轮派工、交接和人工判断的工作。**频道**负责保存需求、任务进展和交付,成员各自在独立的 DSH 会话里执行。你可以在频道里回答成员的问题、把受阻任务移交给别人,也可以打开成员单聊补充背景。
14
+
15
+ [更新日志](./CHANGELOG.md) · [本版发布说明](https://github.com/Carvyo/dsh-group-mode/releases/tag/v0.3.3)
16
+
17
+ ## 安装与升级
18
+
19
+ 1. [下载 dsh-group-mode-0.3.3.tgz](https://github.com/Carvyo/dsh-group-mode/releases/download/v0.3.3/dsh-group-mode-0.3.3.tgz)。
20
+ 2. 打开 DSH 的「插件 → 添加插件 → 安装第三方插件」,把 tgz 的本机绝对路径填进「包名或地址」。
21
+ 3. 安装后重启 DSH。已安装 GitHub 公开版的用户可用同样步骤原地升级。若之前安装的是 @local/dsh-group-mode,请继续使用同包名的本地包。
22
+
23
+ 用命令行启动 Web 版时,也可以直接装:
24
+
25
+ ```powershell
26
+ dsh plugin --profile web add .\dsh-group-mode-0.3.3.tgz
27
+ ```
28
+
29
+ > 清单里的 `engines.dsh` 精确锁定 `0.2.2-rc.5`,其他版本会被拒绝安装。这是刻意的,原因见[兼容性](#兼容性)。
30
+
31
+ ## 快速开始
32
+
33
+ 1. 左栏点 **新建会话 → 新建小组**,填频道名、选工作区(下拉第一项可登记其他目录)。
34
+ 2. 添加成员并指定组长。成员可以沿用已有的 DSH 角色,也可以临时命名并单独选模型。第一位成员默认担任组长,具体搭配可参考[怎么配模型](#怎么配模型)。
35
+ 3. 进频道后直接发需求。单人派工可以这样写。
36
+
37
+ ```text
38
+ @审稿 请核查 README 里的安装步骤,把发现的问题列成清单。
39
+ ```
40
+
41
+ 派工时写清谁做、做什么、交给谁、怎么验收。没点名时由组长接单。
42
+
43
+ 多人分工可以这样写。
44
+
45
+ ```text
46
+ @文档 @测试 并行核查 README。文档负责安装说明,测试负责验证步骤能否走通。
47
+ 两项都完成后让组长汇报给我,列出发现的问题和修改建议。
48
+ ```
49
+
50
+ ## 能做什么
51
+
52
+ - **派工**:在消息开头点名。输入 `@` 可筛选成员,点名会高亮。光标紧跟点名时,按 `Backspace` 可整段删除。多人点名时先出分工计划,确认后再并行或接力。
53
+ - **任务生命周期**:任务树显示子任务、耗时、阻塞和移交,完成后进「任务历史」,可逐层展开。
54
+ - **提问**:成员卡在判断点上可以直接问你(「询问我」),你在任务卡里作答后继续;「自动」则由成员自行判断或请组长定夺。
55
+ - **五棒讨论**:组长发起 A→B→A→B→A,逐字记录只留在任务详情,正式结论才进频道时间线。
56
+ - **文件**:引用工作区里已有的文件,或附上本轮生成的成果;附件会复制进频道,图片显示缩略图,点击看原图。
57
+ - **单聊**:成员同时有自己的会话,可以私下交代背景;单聊顶部能跳回「频道任务来源」。
58
+ - **分叉成员**:从已有会话带历史创建成员,独立保存,互不影响。
59
+
60
+ <details>
61
+ <summary>成员可用的 7 个工具</summary>
62
+
63
+ `channel_read` 领取本轮任务 · `channel_result` 提交结果 · `channel_assign` 交给另一位成员 · `channel_plan` 出分工计划 · `channel_transfer` 组长重派受阻任务 · `channel_ask` 向你提问 · `channel_discuss` 发起五棒讨论
64
+
65
+ </details>
66
+
67
+ - **频道设置** 频道规则置顶。需求处理提供「询问我」和「自动处理」,成员列表默认收起,展开后可在列表内滚动。
68
+ - **频道外观** 在「设置与成员」中展开「频道外观」,即可配置消息布局、任务栏位置、配色与静态底图以及输入框高度。消息区宽度仍可拖动调整。
69
+ - **成员动态** 默认在频道标题旁显示,可手动收起。点动态或消息头像可打开成员菜单,也能进入成员会话。
70
+ - **输入框** 长文本会让输入框自动增高。在「设置与成员 → 频道外观」可锁定高度。
71
+
72
+ ## 怎么配模型
73
+
74
+ **建议用推理能力较强的模型当组长,负责拆解、派工和验收,目标明确的子任务可交给轻量模型。** 组长也可以直接接单并交付。需要理解全局或做复杂判断的执行任务,也可以交给能力更匹配的成员。
75
+
76
+ 给每项子任务写清输入、预期输出和验收标准。任务切得太大,成员可能需要补充背景或返工。切得过细,协调和汇总会占用更多时间。组长和负责确认分工的协调人可以参考成员的「个人介绍」安排工作。
77
+
78
+ ## 成员介绍:让组长知道谁能干什么
79
+
80
+ 在成员菜单里可以填一段「个人介绍」(最多 500 字)。组员领取任务时能读到自己的介绍。组长和负责确认分工的协调人还能查看成员的执行模型、推理等级和上下文容量(token)。
81
+
82
+ 它要回答的是**这个成员适合干什么、不适合干什么**,不是它有多资深:
83
+
84
+ - **写清楚不擅长什么**。「擅长写代码,其余工作较弱」比「资深全栈工程师」有用得多——后者会让组长把评审、总结、规划都派过去。
85
+ - **本地部署的小模型尤其要写**。推理弱但代码强、上下文短、回复慢、只能改小段——这些都是派工时真正要用的信息。
86
+ - **写交付形态**。能自己产出文件、只能在给定模板里填、需要明确的验收标准、需要先给参考样例。
87
+ - **别写能力宣示**。「严谨、负责、经验丰富」对分工没有信息量,反而会让组长高估它。
88
+
89
+ 介绍写得越具体,组长越容易派出符合成员能力的任务。
90
+
91
+ ## 成本与并发
92
+
93
+ - 成本取决于模型、输入输出长度、工具调用和返工次数。让轻量模型处理清晰的子任务可以控制开销。
94
+ - 五棒讨论包含五次发言,协调、工具调用和总结可能增加模型请求。
95
+ - `@全体成员`只投递当前这条消息。开启「全员投递」后,本频道发出的后续消息也会投递给全体成员,直到关掉。每位成员分别收到一项任务,繁忙时按顺序排队。
96
+
97
+ ## 权限与数据
98
+
99
+ - **权限继承**:成员沿用你在 DSH 里给它的角色与权限等级。临时成员默认只有文件读写和搜索,没有 shell;改用现成角色则继承该角色的全部工具。
100
+ - **审批**:成员触发审批时仍走 DSH 自己的策略,插件不绕开、不提权。
101
+ - **模型调用** 成员通过 DSH 使用你配置的模型。模型接收的任务上下文按 DSH 和模型供应商的设置处理。
102
+ - **数据位置**:频道、附件、讨论原文都写在工作区的 `.dsh-group/` 下(`channels/`、`attachments/`、`discussion-turns/`)。建议加入 `.gitignore`:
103
+
104
+ ```gitignore
105
+ .dsh-group/
106
+ ```
107
+
108
+ - 工作区文件引用只记录路径,不复制原文件;成员交付的附件会复制到频道内。
109
+
110
+ ## 兼容性
111
+
112
+ | 宿主 | 状态 |
113
+ | --- | --- |
114
+ | DSH `0.2.2-rc.5` + Windows + Web | ✅ 已验证 |
115
+ | 其他 DSH 版本 | ❌ 会被 `engines` 拒绝安装 |
116
+ | macOS / Linux | ⚠️ 未验证 |
117
+ | 其他模型供应商 | ⚠️ 未验证 |
118
+
119
+ 此版本只声明支持 `0.2.2-rc.5`。插件通过 DSH 的 Agent 事件跟踪会话轮次和接收队列,宿主升级后需要重新验证这些行为。升级前请查看本仓库的发行说明。 [DSH Agent 接口](https://github.com/deepseek-ai/deepseek-harness/blob/dsh-v0.2.2-rc.5/packages/core/agent/README.zh.md)
120
+
121
+ **本次验证**覆盖了公开包的全新安装、从 GitHub 预览版 `rc.17` 原地升级、重启后保留任务历史,以及 100 位成员时的设置界面、窄窗和规则保存。测试环境是 Windows 上的隔离 DSH Web,模型调用使用本地模拟模型。
122
+
123
+ ## 源码
124
+
125
+ `index.js` 和 `channel.js` 是宿主侧代码,`client.js` 是浏览器侧代码。源码可直接打包。修改后需重新打包、安装并重启 DSH。
126
+
127
+ ## 已知限制
128
+
129
+ - 界面以中文为主,部分界面元素支持英文。
130
+ - 单条消息最多 12 个附件、单个不超过 20 MiB、合计不超过 50 MiB,与工作区文件引用合计最多 24 个。
131
+ - 安装后会启用 DSH 自带的浏览器标签(频道里的「新开网页」依赖它),可以在插件设置里关掉。
132
+
133
+ ## 反馈
134
+
135
+ 请开 [Issue](https://github.com/Carvyo/dsh-group-mode/issues),附上 DSH 版本、插件版本、复现步骤和实际结果。
136
+
137
+ ## 许可证
138
+
139
+ [MIT](LICENSE)