@ceasarxuu/dsh-agent-team 0.0.0-stage → 0.2.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,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 dsh-agent-team contributors
4
+ Copyright (c) 2026 dsh-provider-hub contributors
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,65 @@
1
- # Temporary Holding Version
1
+ # dsh-agent-team
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
+ 在 DSH 的「设置 → 智能体团队」管理可复用的团队模板。在任意工作区新建会话时,可以从保存的模板中选择团队。模板独立于工作区和会话。
4
+
5
+ ## 使用
6
+
7
+ 1. 在「智能体团队」列表新建、编辑或删除模板。点击某个模板,逐一设置角色的模型、实例上限、Prompt 和 Skills 偏好。
8
+ 2. 搜索 Skills 时使用 DSH 原生目录的通用技能。模型运行时会结合当前会话可用的技能按需加载。
9
+ 3. 打开 DSH 的「新会话」并选好工作区。点击输入框下方的模型名称,打开「启用智能体团队协作」。选择器预选「DSH 官方默认」,可以直接在当前会话发消息,沿用 DSH 原生团队协作。要使用插件模板,选择对应模板并点击「用此团队新建会话」。启动模板需要一个 Commander、至少一个队友和每个角色的模型。
10
+
11
+ 4. 在已有会话中,等当前回复、队友和任务板上的未完成任务都结束,再从输入框的模型菜单选择模板,点击「切换团队」。下一条消息使用所选团队。聊天记录和已完成的任务保留,也可以切回「DSH 官方默认」。
12
+
13
+ 应用模板时会保存一份独立配置。修改模板后,可以在空闲会话里重新选择它,让下一条消息使用最新版。
14
+
15
+ | 角色 | 工作范围 |
16
+ |---|---|
17
+ | Commander | 分派、协调、跟进和向用户汇报 |
18
+ | Worker | 按任务范围调查、修改和验证 |
19
+ | Reviewer | 从独立会话读取产物,按证据提交对抗性审查 |
20
+ | 自定义 | 使用自定义 Prompt,默认提供只读和通信工具 |
21
+
22
+ 已创建的空闲成员仍占实例名额。Commander 可以向空闲成员发消息以继续使用。三个内置角色都可以编辑 Prompt 或恢复默认正文。配置 Reviewer 时,默认 Commander Prompt 指示它审查可验收的交付物,并最多安排一次聚焦复核。
23
+
24
+ ## 安装
25
+
26
+ DSH 桌面端和 Web 的加载范围从 `0.2.2-rc.5` 起,覆盖后续 `0.2.x` 版本。构建和运行测试以 `0.2.2-rc.5` 为基线。构建环境需要 Node.js 24.9+ 和 pnpm。
27
+
28
+ 已发布的版本直接从 npm 安装:
29
+
30
+ ```sh
31
+ dsh plugin --profile web add @ceasarxuu/dsh-agent-team
32
+ ```
33
+
34
+ 本地改动先用打包产物安装:
35
+
36
+ ```sh
37
+ pnpm install --frozen-lockfile
38
+ pnpm build
39
+ pnpm pack
40
+ dsh plugin --profile web add ./ceasarxuu-dsh-agent-team-0.2.4.tgz
41
+ ```
42
+
43
+ 启动或重新加载该 profile 后,从设置打开插件。团队使用 DSH 原生 Standard Preset、任务板、消息和子代理恢复。角色的工具限制由启用中的插件施加。
44
+
45
+ ## 开发验证
46
+
47
+ ```sh
48
+ pnpm build
49
+ pnpm typecheck
50
+ pnpm test:unit
51
+ pnpm test:host
52
+ ```
53
+
54
+ 宿主验证在临时工作区和 DSH profile 中运行,使用确定性的模型响应检验原生团队创建和冷恢复。
55
+
56
+ ## 发布
57
+
58
+ 发布由 `.github/workflows/publish.yml` 使用 npm Trusted Publishing(OIDC)完成,仓库里不保存任何 npm token。
59
+
60
+ 1. 更新 `package.json` 的版本,提交并推送。
61
+ 2. 打与版本一致的标签:`git tag v0.2.4 && git push origin v0.2.4`。
62
+ 3. 在 GitHub 为该标签发布 release(工作流由 `release: published` 触发),也可以在 Actions 里手动 `workflow_dispatch`。
63
+ 4. 工作流依次跑 typecheck、单元测试和构建;版本已存在时跳过,否则发布公开包。
64
+
65
+ 发布前本地跑一遍 `pnpm build`、`pnpm typecheck`、`pnpm test:unit` 和 `pnpm test:host`。首次发布的引导、npm 侧信任配置和常见故障见 [runbooks/npm-publish.md](runbooks/npm-publish.md)。
@@ -0,0 +1,3 @@
1
+ - insert:
2
+ - id: agent-team-config
3
+ name: '@ceasarxuu/dsh-agent-team'