@nanmicoder/dsh-agent-teams 0.1.13 → 0.1.15-alpha.1
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/README.md +79 -14
- package/README_ZH.md +56 -14
- package/lib/client/ActivityPanel.js +219 -50
- package/lib/client/StagingPlanEditor.js +493 -0
- package/lib/client/activity-model.js +71 -0
- package/lib/client/activity-monitor.js +1 -0
- package/lib/client/index.js +3 -3
- package/lib/client/locales.js +224 -2
- package/lib/client.js +1777 -243
- package/lib/client.js.map +1 -1
- package/lib/command.js +116 -99
- package/lib/index.js +289 -15
- package/lib/members.js +137 -16
- package/lib/profiles.js +572 -0
- package/lib/quality-gates.js +777 -0
- package/lib/scheduler.js +167 -8
- package/lib/snapshot.js +25 -1
- package/lib/state.js +116 -10
- package/lib/tools.js +1230 -38
- package/lib/types/client/ActivityPanel.d.ts +5 -2
- package/lib/types/client/StagingPlanEditor.d.ts +17 -0
- package/lib/types/client/activity-model.d.ts +67 -0
- package/lib/types/client/activity-monitor.d.ts +14 -1
- package/lib/types/client/agent-teams-card-definition.d.ts +2 -2
- package/lib/types/client/index.d.ts +1 -1
- package/lib/types/client/locales.d.ts +222 -0
- package/lib/types/client/session-navigation.d.ts +2 -1
- package/lib/types/command.d.ts +11 -56
- package/lib/types/event-types.d.ts +35 -1
- package/lib/types/index.d.ts +9 -0
- package/lib/types/members.d.ts +48 -3
- package/lib/types/profiles.d.ts +124 -0
- package/lib/types/quality-gates.d.ts +148 -0
- package/lib/types/scheduler.d.ts +44 -0
- package/lib/types/snapshot.d.ts +18 -1
- package/lib/types/state.d.ts +8 -3
- package/lib/types/tools.d.ts +73 -9
- package/lib/types/types.d.ts +118 -0
- package/lib/types/web-routes.d.ts +13 -0
- package/lib/types.js +11 -0
- package/lib/web-routes.js +26 -0
- package/package.json +85 -38
- package/release-notes/v0.1.14.md +68 -0
- package/release-notes/v0.1.15-alpha.1.md +61 -0
package/README.md
CHANGED
|
@@ -7,16 +7,22 @@
|
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
<a href="https://
|
|
11
|
-
<a href="
|
|
12
|
-
<img src="https://
|
|
10
|
+
<a href="https://dshfind.com/en/plugins/NanmiCoder/dsh-agent-teams?ref=badge"><img src="https://img.shields.io/badge/recommended%20by-dshfind-FFD700?style=flat-square" alt="Recommended by dshfind"></a>
|
|
11
|
+
<a href="https://dshfind.com/en/plugins/NanmiCoder/dsh-agent-teams?ref=badge"><img src="https://dshfind.com/api/badge/NanmiCoder/dsh-agent-teams?lang=en" alt="dshfind score"></a>
|
|
12
|
+
<a href="https://dshfind.com/en/plugins/NanmiCoder/dsh-agent-teams?ref=badge"><img src="https://dshfind.com/api/badge/NanmiCoder/dsh-agent-teams?metric=downloads&lang=en" alt="dshfind downloads"></a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://www.npmjs.com/package/@nanmicoder/dsh-agent-teams"><img src="https://img.shields.io/npm/v/@nanmicoder/dsh-agent-teams?style=flat-square&color=5B4CF0" alt="npm version"></a>
|
|
17
|
+
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-MIT-0B7285?style=flat-square" alt="MIT license"></a>
|
|
18
|
+
<a href="./cordis.patch.yml"><img src="https://img.shields.io/badge/DSH-Web%20%2B%20Headless-5B4CF0?style=flat-square" alt="DSH Web and Headless"></a>
|
|
13
19
|
</p>
|
|
14
20
|
|
|
15
21
|
## One prompt. A working team.
|
|
16
22
|
|
|
17
23
|
`dsh-agent-teams` turns the current DeepSeek Harness session into a captain that can assemble durable sub-agents, split a goal into dependency-aware tasks, and coordinate work through direct messages.
|
|
18
24
|
|
|
19
|
-
Ask in natural language. The plugin provides the team protocol,
|
|
25
|
+
Ask in natural language. The plugin provides the team protocol, eleven coordination tools, persistent state, an automatic shared-task scheduler, and a live Web UI—without requiring a separate workflow engine.
|
|
20
26
|
|
|
21
27
|
<p align="center">
|
|
22
28
|
<img src="./assets/ui.png" width="100%" alt="DeepSeek Harness conversation with the AgentTeams live activity panel, members, tasks, dependencies, and reports">
|
|
@@ -24,7 +30,7 @@ Ask in natural language. The plugin provides the team protocol, ten coordination
|
|
|
24
30
|
|
|
25
31
|
## Releases
|
|
26
32
|
|
|
27
|
-
|
|
33
|
+
For Harness Alpha.2, read [v0.1.15-alpha.1](https://github.com/NanmiCoder/dsh-agent-teams/releases/tag/v0.1.15-alpha.1). The [stable release](https://github.com/NanmiCoder/dsh-agent-teams/releases/latest) remains on the older host line. Browse the [complete release history](https://github.com/NanmiCoder/dsh-agent-teams/releases); the same notes ship in the npm package under `release-notes/`.
|
|
28
34
|
|
|
29
35
|
## Why AgentTeams?
|
|
30
36
|
|
|
@@ -35,32 +41,63 @@ Read the [latest release notes](https://github.com/NanmiCoder/dsh-agent-teams/re
|
|
|
35
41
|
| **Dependency-aware tasks** | Tasks move through explicit states and cannot be claimed before their dependencies finish. |
|
|
36
42
|
| **Automatic reuse and safe takeover** | Idle members claim the next ready task; reassignment revokes stale attempts before new work starts, and cold recovery retries stranded open attempts. |
|
|
37
43
|
| **Direct messaging** | Members send durable mailbox messages directly to teammates or the captain—no relay required. |
|
|
38
|
-
| **Live activity panel** | The Web UI combines segmented progress, a collapsible roster, and an interactive task DAG; completed archives retain their full member and task history. |
|
|
44
|
+
| **Live activity panel** | The Web UI combines segmented progress, a collapsible roster, and an interactive task DAG; running tasks show the member's model, and completed archives retain their full member and task history. |
|
|
45
|
+
| **Plan before execution** | Normal `/agent-teams` runs stage an unspawned roster and DAG first. The Web panel uses the host model catalog for member routes. Returning to chat stops the planning turn, asks what should change, and revises the same draft; discarding archives the draft, aborts the turn, and explicitly prevents automatic recreation. Only **Approve & Run** creates members and starts scheduling. |
|
|
46
|
+
| **Quality gates** | Opt-in quality tasks support requirements → implementation → verification → review → integration contracts, automatic repair/re-review, and explicit resume. Scope control is a completion-time audit, not host write interception. See [docs/quality-gates.md](./docs/quality-gates.md). |
|
|
39
47
|
|
|
40
48
|
The conversation card and activity panel use Harness's official locale service. They follow live language changes between English and Simplified Chinese—including status labels, dynamic summaries, controls, archive markers, and accessibility text—without a page reload or a separate plugin setting.
|
|
41
49
|
|
|
42
50
|
## Install
|
|
43
51
|
|
|
44
|
-
> [!
|
|
45
|
-
>
|
|
52
|
+
> [!IMPORTANT]
|
|
53
|
+
> **Plugin 0.1.15-alpha.1 requires DeepSeek Harness 0.1.2-alpha.2.** Updating this plugin does not update Harness. This release has no adapter for the old RC host APIs. Check the version of the instance you actually launch with `dsh --version` before installing.
|
|
54
|
+
|
|
55
|
+
| Harness host | Plugin to use | Compatibility status |
|
|
56
|
+
| --- | --- | --- |
|
|
57
|
+
| **0.1.2-alpha.2** | **0.1.15-alpha.1** (`@alpha`) | Real API and Web UI verified on macOS arm64. |
|
|
58
|
+
| **0.1.0-rc.8** | **0.1.14** | Previous dependency baseline; keep this pair if you are not upgrading Harness. |
|
|
59
|
+
| Other older RC / unchanged source checkout | Keep your working plugin version; do not install `@alpha` | Do not assume every older host works with 0.1.14. |
|
|
60
|
+
| Alpha.1, later Alpha versions, or other source revisions | Not verified | Match the documented host version or validate separately. |
|
|
61
|
+
|
|
62
|
+
`alpha` is the opt-in channel for this migration. **`latest` remains 0.1.14** so ordinary installs do not switch older hosts to the Alpha.2 build. Optional peer dependencies are not a runtime version check: a successful install on an incompatible host does not mean the plugin can activate.
|
|
63
|
+
|
|
64
|
+
See the [compatibility details](./docs/alpha2-compatibility.md) and [real business / UI acceptance report](./docs/alpha2-release-acceptance.md).
|
|
65
|
+
|
|
66
|
+
### npm: Harness Alpha.2
|
|
67
|
+
|
|
68
|
+
If you install Harness through npm, upgrade the host first, then install the matching plugin:
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
npm install --global @deepseek-ai/dsh@0.1.2-alpha.2
|
|
72
|
+
dsh --version
|
|
73
|
+
dsh plugin --profile web add @nanmicoder/dsh-agent-teams@0.1.15-alpha.1
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The exact plugin version is reproducible; use `@nanmicoder/dsh-agent-teams@alpha` to follow the Alpha channel after checking its release notes. These examples target the `web` profile; use your actual profile if different. Stop and restart the running Harness process after changing either host or plugin, then refresh the browser.
|
|
77
|
+
|
|
78
|
+
### Staying on an older host / rolling back
|
|
46
79
|
|
|
47
|
-
|
|
80
|
+
If you are keeping the previous RC host, **do not upgrade the plugin to this Alpha release**. Keep the working 0.1.14 pair or reinstall its pinned package:
|
|
48
81
|
|
|
49
82
|
```sh
|
|
50
|
-
dsh plugin --profile web add @nanmicoder/dsh-agent-teams@
|
|
83
|
+
dsh plugin --profile web add @nanmicoder/dsh-agent-teams@0.1.14
|
|
51
84
|
```
|
|
52
85
|
|
|
53
|
-
|
|
86
|
+
Restart the old host and refresh the browser. If you also upgraded Harness, restore the matching older host before using 0.1.14; rolling back only the plugin is not a supported Alpha.2 configuration. Do not delete credentials or `.agent-teams` data to fix a version mismatch.
|
|
87
|
+
|
|
88
|
+
**Harness built from source:** updating this plugin repository, rebuilding it, or installing a global CLI does not upgrade a separately launched Harness checkout. Preserve your local changes, update the actual host checkout to [dsh-v0.1.2-alpha.2](https://github.com/deepseek-ai/deepseek-harness/tree/dsh-v0.1.2-alpha.2), follow its build instructions, and restart that host. If its source must stay old, keep the old plugin too; for a source-linked plugin use tag `v0.1.14` and its matching dependencies/build, not the current `main` branch.
|
|
89
|
+
|
|
90
|
+
### Build the Alpha.2 plugin from source
|
|
54
91
|
|
|
55
92
|
```sh
|
|
56
|
-
git clone https://github.com/NanmiCoder/dsh-agent-teams.git
|
|
93
|
+
git clone --branch v0.1.15-alpha.1 https://github.com/NanmiCoder/dsh-agent-teams.git
|
|
57
94
|
cd dsh-agent-teams
|
|
58
|
-
pnpm install
|
|
95
|
+
pnpm install --frozen-lockfile
|
|
59
96
|
pnpm build
|
|
60
97
|
dsh plugin --profile web add .
|
|
61
98
|
```
|
|
62
99
|
|
|
63
|
-
Run `pnpm build` again after changing the source. The local plugin install remains linked to this checkout.
|
|
100
|
+
This requires the Alpha.2 host above. Run `pnpm build` again after changing the source. The local plugin install remains linked to this checkout; pulling source alone does not rebuild that linked plugin.
|
|
64
101
|
|
|
65
102
|
Validate the composed profile, restart DSH, and refresh the Web UI:
|
|
66
103
|
|
|
@@ -160,6 +197,34 @@ pnpm build
|
|
|
160
197
|
pnpm verify
|
|
161
198
|
```
|
|
162
199
|
|
|
200
|
+
## Named multi-role profiles
|
|
201
|
+
|
|
202
|
+
Configure one or more complete team profiles in `cordis.patch.yml`. A profile always supplies the roster (independent provider/model/role/reasoning effort). Set `taskPlanning: captain` when the Captain should derive the DAG from the user's goal; omit it or set `taskPlanning: seed` to keep a fixed template workflow:
|
|
203
|
+
|
|
204
|
+
```yaml
|
|
205
|
+
profiles:
|
|
206
|
+
demo-delivery:
|
|
207
|
+
description: Ship a small feature
|
|
208
|
+
protocol: Discuss requirements, review, test, then prepare release; do not deploy automatically.
|
|
209
|
+
members:
|
|
210
|
+
- name: analyst
|
|
211
|
+
model: gpt-5.6-sol
|
|
212
|
+
role: Analyze requirements
|
|
213
|
+
- name: implementer
|
|
214
|
+
model: gpt-5.6-terra
|
|
215
|
+
role: Implement the approved solution
|
|
216
|
+
tasks:
|
|
217
|
+
- id: requirements
|
|
218
|
+
subject: Requirements discussion
|
|
219
|
+
assignee: analyst
|
|
220
|
+
- id: implementation
|
|
221
|
+
subject: Implement solution
|
|
222
|
+
assignee: implementer
|
|
223
|
+
dependencies: [requirements]
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
Use an explicit profile flag: `/agent-teams --profile demo-delivery implement the feature`. The first ordinary token is never treated as an implicit profile. Normal command runs call `agent_teams_create({ profile, approval: "required" })`: the roster and seed/Captain-designed DAG remain staged, no child session is created, and no task is claimed. Edit the plan in the activity panel using the host model catalog, return to chat so the Captain asks what to revise and then atomically updates the same draft, discard it, or click **Approve & Run**. Return/discard actions cancel any planning turn still running; discard also parks model-facing context that forbids silently creating a replacement team. Approval resolves the final provider/model/reasoning choices, atomically spawns the roster, and starts only ready tasks. A running team is stopped from its own panel header through a confirmation dialog rather than from the composer. Direct tool clients may pass `approval: "automatic"` for the legacy immediate path. Failed review/test tasks do not unlock downstream work; automatic repair/review tasks do not depend on the failed review.
|
|
227
|
+
|
|
163
228
|
## License
|
|
164
229
|
|
|
165
230
|
[MIT](./LICENSE)
|
package/README_ZH.md
CHANGED
|
@@ -7,16 +7,22 @@
|
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
<a href="https://
|
|
11
|
-
<a href="
|
|
12
|
-
<img src="https://
|
|
10
|
+
<a href="https://dshfind.com/zh/plugins/NanmiCoder/dsh-agent-teams?ref=badge"><img src="https://img.shields.io/badge/%E7%94%B1%20dshfind-%E6%8E%A8%E8%8D%90-FFD700?style=flat-square" alt="由 dshfind 推荐"></a>
|
|
11
|
+
<a href="https://dshfind.com/zh/plugins/NanmiCoder/dsh-agent-teams?ref=badge"><img src="https://dshfind.com/api/badge/NanmiCoder/dsh-agent-teams?lang=zh" alt="dshfind 评分"></a>
|
|
12
|
+
<a href="https://dshfind.com/zh/plugins/NanmiCoder/dsh-agent-teams?ref=badge"><img src="https://dshfind.com/api/badge/NanmiCoder/dsh-agent-teams?metric=downloads&lang=zh" alt="dshfind 下载量"></a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://www.npmjs.com/package/@nanmicoder/dsh-agent-teams"><img src="https://img.shields.io/npm/v/@nanmicoder/dsh-agent-teams?style=flat-square&color=5B4CF0" alt="npm 版本"></a>
|
|
17
|
+
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-MIT-0B7285?style=flat-square" alt="MIT 许可证"></a>
|
|
18
|
+
<a href="./cordis.patch.yml"><img src="https://img.shields.io/badge/DSH-Web%20%2B%20Headless-5B4CF0?style=flat-square" alt="DSH Web 与 Headless"></a>
|
|
13
19
|
</p>
|
|
14
20
|
|
|
15
21
|
## 一句话,拉起一支真正协作的团队
|
|
16
22
|
|
|
17
23
|
`dsh-agent-teams` 让当前 DeepSeek Harness 会话成为队长:创建可续聊的子 Agent、把目标拆成有依赖的任务,并通过直达消息协调成员工作。
|
|
18
24
|
|
|
19
|
-
你只需用自然语言提出目标。插件会提供团队协议、
|
|
25
|
+
你只需用自然语言提出目标。插件会提供团队协议、11 个协作工具、持久化状态、自动共享任务调度和实时 Web UI,不需要额外的 Workflow 引擎。
|
|
20
26
|
|
|
21
27
|
<p align="center">
|
|
22
28
|
<img src="./assets/ui.png" width="100%" alt="DeepSeek Harness 对话与 AgentTeams 实时活动面板,展示成员、任务依赖和回报">
|
|
@@ -24,7 +30,7 @@
|
|
|
24
30
|
|
|
25
31
|
## 版本更新
|
|
26
32
|
|
|
27
|
-
|
|
33
|
+
Harness Alpha.2 用户请查看 [v0.1.15-alpha.1](https://github.com/NanmiCoder/dsh-agent-teams/releases/tag/v0.1.15-alpha.1)。[稳定版](https://github.com/NanmiCoder/dsh-agent-teams/releases/latest)仍保留给旧宿主使用。也可浏览[完整发布历史](https://github.com/NanmiCoder/dsh-agent-teams/releases);同一份说明随 npm 包发布到 `release-notes/` 目录。
|
|
28
34
|
|
|
29
35
|
## 为什么需要 AgentTeams?
|
|
30
36
|
|
|
@@ -35,32 +41,62 @@
|
|
|
35
41
|
| **带依赖的任务** | 任务有明确状态;依赖未完成时不能领取。 |
|
|
36
42
|
| **自动续领与安全接管** | 成员空闲后自动领取下一项就绪任务;转派会撤销旧 attempt,冷恢复会重试遗留任务,迟到结果无法覆盖。 |
|
|
37
43
|
| **成员直达消息** | 成员通过持久化邮箱直接联系队友或队长,不需要队长中转。 |
|
|
38
|
-
| **实时活动面板** | Web UI 用分段进度、可折叠成员树和可交互 DAG
|
|
44
|
+
| **实时活动面板** | Web UI 用分段进度、可折叠成员树和可交互 DAG 展示实时工作;运行中的子任务会标出使用的模型,团队结束后仍保留完整成员与任务历史。 |
|
|
45
|
+
| **质量门禁** | 人只提供目标和约束。默认任务顺序是需求 → 实现 → 验证 → 审查 → 集成,失败后自动修复/复审,恢复团队必须显式 resume。第一版范围控制是完成时审计,不是 host 写入拦截。详见 [docs/quality-gates.md](./docs/quality-gates.md)。 |
|
|
39
46
|
|
|
40
47
|
对话卡片与活动面板接入 Harness 官方多语言服务,会随宿主在简体中文和英文之间实时切换;任务/成员状态、动态摘要、操作按钮、历史归档标识和无障碍文案都会同步更新,无需刷新页面,也不增加插件自己的语言设置。
|
|
41
48
|
|
|
42
49
|
## 安装
|
|
43
50
|
|
|
44
|
-
> [!
|
|
45
|
-
>
|
|
51
|
+
> [!IMPORTANT]
|
|
52
|
+
> **插件 0.1.15-alpha.1 对应 DeepSeek Harness 0.1.2-alpha.2。** 升级插件不会自动升级 Harness,本版也没有兼容旧 RC 宿主 API 的适配层。安装前先用 `dsh --version` 核对你实际启动的宿主版本。
|
|
53
|
+
|
|
54
|
+
| Harness 宿主 | 应使用的插件 | 兼容性说明 |
|
|
55
|
+
| --- | --- | --- |
|
|
56
|
+
| **0.1.2-alpha.2** | **0.1.15-alpha.1**(`@alpha`) | 已在 macOS arm64 上通过真实 API 和 Web UI 验收。 |
|
|
57
|
+
| **0.1.0-rc.8** | **0.1.14** | 原有依赖基线;不升级宿主时保留这一组合。 |
|
|
58
|
+
| 其他旧 RC / 未更新的源码宿主 | 保留当前已能正常使用的插件,不要安装 `@alpha` | 不能推断所有旧宿主都兼容 0.1.14。 |
|
|
59
|
+
| Alpha.1、后续 Alpha 或其他源码提交 | 尚未验证 | 请对齐上面明确验证的宿主版本,或单独验证。 |
|
|
60
|
+
|
|
61
|
+
本次迁移通过 `alpha` 渠道主动选择安装,**`latest` 保持为 0.1.14**,普通更新不会把旧宿主切到 Alpha.2 插件。可选 peer dependencies 并不是运行时版本拦截:装得上,不代表不兼容的宿主能加载成功。
|
|
46
62
|
|
|
47
|
-
|
|
63
|
+
详见[兼容性记录](./docs/alpha2-compatibility.md)和[真实业务 / UI 验收报告](./docs/alpha2-release-acceptance.md)。
|
|
64
|
+
|
|
65
|
+
### npm:使用 Harness Alpha.2
|
|
66
|
+
|
|
67
|
+
通过 npm 安装 Harness 的用户,先升级宿主,再安装对应插件:
|
|
48
68
|
|
|
49
69
|
```sh
|
|
50
|
-
|
|
70
|
+
npm install --global @deepseek-ai/dsh@0.1.2-alpha.2
|
|
71
|
+
dsh --version
|
|
72
|
+
dsh plugin --profile web add @nanmicoder/dsh-agent-teams@0.1.15-alpha.1
|
|
51
73
|
```
|
|
52
74
|
|
|
53
|
-
|
|
75
|
+
上面固定版本,便于复现;确认发布说明后,也可用 `@nanmicoder/dsh-agent-teams@alpha` 跟随 Alpha 渠道。示例针对 `web` profile,其他 profile 请替换为你实际使用的名称。宿主或插件变更后,停止并重启正在运行的 Harness,再刷新浏览器。
|
|
76
|
+
|
|
77
|
+
### 不升级宿主 / 回退旧版本
|
|
78
|
+
|
|
79
|
+
如果仍使用原来的 RC 宿主,**不要把插件升级到本次 Alpha 版**。保留可用的 0.1.14 组合,或重新安装固定版本:
|
|
54
80
|
|
|
55
81
|
```sh
|
|
56
|
-
|
|
82
|
+
dsh plugin --profile web add @nanmicoder/dsh-agent-teams@0.1.14
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
重启旧宿主并刷新浏览器即可。如果宿主也已升级,则要恢复匹配的旧宿主后再使用 0.1.14;仅回退插件不是受支持的 Alpha.2 组合。版本不匹配不需要删除凭据或 `.agent-teams` 数据。
|
|
86
|
+
|
|
87
|
+
**从源码运行 Harness 的用户:** 更新本插件仓库、重新构建插件,或安装全局 CLI,都不会自动升级另一个正在运行的 Harness 源码目录。请先保留本地改动,把实际启动的宿主源码更新到 [dsh-v0.1.2-alpha.2](https://github.com/deepseek-ai/deepseek-harness/tree/dsh-v0.1.2-alpha.2),按该版本说明安装依赖、构建并重启。如果宿主源码必须保持旧版,插件也应保留旧版;本地链接插件请使用 `v0.1.14` tag 及其对应依赖和构建,不要直接更新到当前 `main`。
|
|
88
|
+
|
|
89
|
+
### 从源码构建 Alpha.2 插件
|
|
90
|
+
|
|
91
|
+
```sh
|
|
92
|
+
git clone --branch v0.1.15-alpha.1 https://github.com/NanmiCoder/dsh-agent-teams.git
|
|
57
93
|
cd dsh-agent-teams
|
|
58
|
-
pnpm install
|
|
94
|
+
pnpm install --frozen-lockfile
|
|
59
95
|
pnpm build
|
|
60
96
|
dsh plugin --profile web add .
|
|
61
97
|
```
|
|
62
98
|
|
|
63
|
-
|
|
99
|
+
此构建要求上面的 Alpha.2 宿主。修改源码后请重新执行 `pnpm build`;本地安装会继续链接到当前源码目录,只拉取代码不会重建已经链接的插件。
|
|
64
100
|
|
|
65
101
|
检查组合配置、重启 DSH,然后刷新 Web UI:
|
|
66
102
|
|
|
@@ -150,6 +186,12 @@ pnpm build
|
|
|
150
186
|
pnpm verify
|
|
151
187
|
```
|
|
152
188
|
|
|
189
|
+
## 命名多角色团队配置
|
|
190
|
+
|
|
191
|
+
在 `cordis.patch.yml` 的 `profiles` 中配置完整团队模板。每个 profile 都提供成员阵容,可独立指定 provider、model、role、reasoning_effort。`taskPlanning: captain` 表示只提供阵容和约束,由 Captain 根据用户目标设计 DAG;省略该字段或设为 `seed` 时,展开模板中的固定任务图。使用 `/agent-teams --profile <名称> <目标>` 显式激活;不会把首个普通 token 隐式识别为 profile。
|
|
192
|
+
|
|
193
|
+
普通 `/agent-teams` 流程会调用 `agent_teams_create({ profile, approval: "required" })`:只落盘可编辑的成员占位和 DAG,不创建子会话、不领取任务。成员模型和推理等级直接读取 Harness 的模型目录。「返回对话修改」会终止仍在运行的规划轮次,让队长先追问修改方向,再用一次原子操作更新同一份草案;「放弃本次计划」经二次确认后会归档草案、中止轮次,并向模型注入不得自动重建团队的控制上下文。只有点击「确认并启动团队」才会按最终配置原子创建成员并启动就绪任务。运行中团队的停止入口位于该团队的面板标题,点击后需要二次确认,不再占用输入区域。直接工具调用方可显式传 `approval: "automatic"` 保留旧的立即执行路径。审查或测试失败不会解锁下游;自动 repair/review 不依赖 failed review。
|
|
194
|
+
|
|
153
195
|
## 许可证
|
|
154
196
|
|
|
155
197
|
[MIT](./LICENSE)
|