dsh-agent-team-presets 0.3.2 → 0.3.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/NOTICE +58 -3
- package/README.md +73 -398
- package/README.zh.md +79 -404
- package/assets/card-patches/catalog.json +30 -0
- package/assets/card-patches/dsh-context-0.85.0.client.js.gz +0 -0
- package/assets/card-patches/dsh-context-0.85.1.client.js.gz +0 -0
- package/assets/card-patches/dsh-context-0.87.0.client.js.gz +0 -0
- package/assets/skills/agent-leader-communication/SKILL.md +100 -0
- package/assets/skills/agent-subagent-orchestration/SKILL.md +56 -0
- package/assets/skills/agent-subagent-orchestration/references/executor-parallel-execution.md +56 -0
- package/assets/skills/agent-subagent-orchestration/references/leader-discovery.md +53 -0
- package/assets/skills/agent-subagent-orchestration/references/subagent-communication.md +58 -0
- package/assets/skills/backend-architecture-workflow/SKILL.md +55 -0
- package/assets/skills/backend-architecture-workflow/references/README.md +9 -0
- package/assets/skills/backend-architecture-workflow/references/architecture-audit.md +70 -0
- package/assets/skills/backend-architecture-workflow/references/architecture-decay-risks.md +75 -0
- package/assets/skills/backend-architecture-workflow/references/architecture-design.md +151 -0
- package/assets/skills/backend-architecture-workflow/references/bugfix-regression.md +63 -0
- package/assets/skills/backend-architecture-workflow/references/complex-bug-diagnosis.md +104 -0
- package/assets/skills/executor-short-task-workflow/SKILL.md +48 -0
- package/assets/skills/executor-short-task-workflow/references/agent-communication.md +44 -0
- package/assets/skills/executor-short-task-workflow/references/verification-and-reporting.md +45 -0
- package/assets/skills/frontend-engineering-workflow/SKILL.md +47 -0
- package/assets/skills/frontend-engineering-workflow/references/README.md +7 -0
- package/assets/skills/frontend-engineering-workflow/references/frontend-implementation.md +46 -0
- package/assets/skills/frontend-engineering-workflow/references/visual-design.md +43 -0
- package/assets/skills/frontend-engineering-workflow/references/visual-qa.md +126 -0
- package/assets/skills/fullstack-advisor/SKILL.md +50 -0
- package/assets/skills/fullstack-advisor/references/brooks-principles.md +51 -0
- package/assets/skills/fullstack-advisor/references/consultant-communication.md +51 -0
- package/assets/skills/fullstack-advisor/references/consultation-workflow.md +71 -0
- package/assets/skills/git-release-hygiene/SKILL.md +33 -21
- package/assets/skills/git-release-hygiene/references/git-safety.md +66 -0
- package/assets/skills/git-release-hygiene/references/pr-changelog.md +98 -0
- package/assets/skills/git-release-hygiene/references/release-standard.md +139 -0
- package/assets/skills/git-release-hygiene/references/validation-checklist.md +42 -0
- package/assets/skills/github-repository-presentation/SKILL.md +49 -130
- package/assets/skills/github-repository-presentation/references/bilingual-writing.md +43 -0
- package/assets/skills/github-repository-presentation/references/documentation-architecture.md +156 -0
- package/assets/skills/github-repository-presentation/references/readme-standard.md +273 -0
- package/assets/skills/github-repository-presentation/references/release-notes.md +70 -0
- package/assets/skills/github-repository-presentation/references/validation-checklist.md +47 -0
- package/assets/skills/independent-code-review-workflow/SKILL.md +60 -0
- package/assets/skills/independent-code-review-workflow/references/README.md +9 -0
- package/assets/skills/independent-code-review-workflow/references/decay-risks.md +99 -0
- package/assets/skills/independent-code-review-workflow/references/review-checklist.md +53 -0
- package/assets/skills/independent-code-review-workflow/references/review-methodology.md +113 -0
- package/assets/skills/independent-code-review-workflow/references/review-severity.md +49 -0
- package/assets/skills/independent-code-review-workflow/references/test-quality-review.md +71 -0
- package/assets/skills/leader-long-task-orchestration/SKILL.md +49 -0
- package/assets/skills/leader-long-task-orchestration/references/delivery-plan-template.md +73 -0
- package/assets/skills/leader-long-task-orchestration/references/product-alignment.md +46 -0
- package/assets/skills/leader-long-task-orchestration/references/rolling-wave-planning.md +32 -0
- package/assets/skills/leader-long-task-orchestration/references/technical-decisions-and-escalation.md +34 -0
- package/assets/skills/leader-medium-task-workflow/SKILL.md +55 -0
- package/assets/skills/leader-medium-task-workflow/references/task-board-and-leader-todo.md +41 -0
- package/docs/builtin-team-skills.md +82 -0
- package/docs/builtin-team-skills.zh.md +82 -0
- package/docs/builtin-teams.md +62 -0
- package/docs/builtin-teams.zh.md +62 -0
- package/docs/developer/architecture.md +54 -0
- package/docs/developer/architecture.zh.md +54 -0
- package/docs/guide/install.md +86 -0
- package/docs/guide/install.zh.md +86 -0
- package/docs/guide/integrations.md +50 -0
- package/docs/guide/integrations.zh.md +50 -0
- package/docs/guide/team-skills.md +68 -0
- package/docs/guide/team-skills.zh.md +68 -0
- package/docs/guide/using-teams.md +92 -0
- package/docs/guide/using-teams.zh.md +92 -0
- package/docs/index.md +53 -0
- package/docs/index.zh.md +53 -0
- package/docs/reference/tools-and-permissions.md +62 -0
- package/docs/reference/tools-and-permissions.zh.md +62 -0
- package/docs/reference/troubleshooting.md +59 -0
- package/docs/reference/troubleshooting.zh.md +59 -0
- package/icon.webp +0 -0
- package/lib/client.js +1459 -253
- package/lib/index.js +960 -342
- package/lib/typert.host.js +402 -29
- package/lib/typert.remote-client.d.ts +9 -9
- package/lib/typert.remote-client.d.ts.map +1 -1
- package/lib/typert.remote-client.js +402 -29
- package/lib/types/client/CardPatchView.js +21 -1
- package/lib/types/client/ComposerTeamSelect.js +24 -8
- package/lib/types/client/TeamAgentView.d.ts +1 -1
- package/lib/types/client/TeamAgentView.js +11 -6
- package/lib/types/client/TeamImportDialog.d.ts +4 -15
- package/lib/types/client/TeamImportDialog.js +29 -25
- package/lib/types/client/TeamPresetsSection.js +14 -5
- package/lib/types/client/TeamSkillsView.d.ts +5 -4
- package/lib/types/client/TeamSkillsView.js +64 -15
- package/lib/types/client/locales.d.ts +41 -2
- package/lib/types/client/locales.js +185 -8
- package/lib/types/client/team-presets-controller.d.ts +15 -2
- package/lib/types/client/team-presets-controller.js +86 -30
- package/lib/types/client/team-skills-controller.d.ts +14 -5
- package/lib/types/client/team-skills-controller.js +71 -37
- package/lib/types/index.js +57 -19
- package/lib/types/preset-editor.js +3 -4
- package/lib/types/preset-transfer.d.ts +1 -1
- package/lib/types/presets.d.ts +21 -23
- package/lib/types/presets.js +72 -36
- package/lib/types/team-catalog.d.ts +50 -3
- package/lib/types/team-catalog.js +214 -43
- package/lib/types/team-mode.d.ts +48 -0
- package/lib/types/team-mode.js +64 -0
- package/lib/types/team-skills/import.d.ts +17 -7
- package/lib/types/team-skills/import.js +115 -21
- package/lib/types/team-skills/index.d.ts +2 -3
- package/lib/types/team-skills/index.js +4 -8
- package/lib/types/team-skills/manager.d.ts +24 -15
- package/lib/types/team-skills/manager.js +98 -105
- package/lib/types/team-skills/official-bindings.d.ts +29 -0
- package/lib/types/team-skills/official-bindings.js +51 -0
- package/lib/types/team-skills/service.d.ts +7 -12
- package/lib/types/team-skills/service.js +143 -63
- package/lib/types/team-skills/store.d.ts +27 -6
- package/lib/types/team-skills/store.js +151 -15
- package/lib/types/types.d.ts +18 -4
- package/package.json +21 -2
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Built-in Team Skills
|
|
2
|
+
|
|
3
|
+
This plugin ships **thirteen Team Skills** and binds a default set to the roles of its built-in Teams. This document is the inventory: what each skill is for, which category it belongs to, and which role receives it by default.
|
|
4
|
+
|
|
5
|
+
[中文](<builtin-team-skills.zh.md>) · [Documentation index](index.md) · [Built-in Teams](builtin-teams.md) · [README](../README.md)
|
|
6
|
+
|
|
7
|
+
## The thirteen shipped skills
|
|
8
|
+
|
|
9
|
+
| Skill (id shown to the model) | Shown as (Chinese UI) | Category | Purpose | Default roles |
|
|
10
|
+
|---|---|---|---|---|
|
|
11
|
+
| `agent-leader-communication` | 队长派发与通信 | Workflow | Dispatch, consultation, result intake, and reporting protocols for a captain. | `team-lead` |
|
|
12
|
+
| `leader-medium-task-workflow` | 中程任务工作流 | Workflow | Bounded multi-part work: lightweight splitting, the Team Task Board, leader Todo, unified acceptance. | `team-lead` |
|
|
13
|
+
| `leader-long-task-orchestration` | 长程任务编排 | Workflow | Multi-round delivery: requirement alignment, rolling-wave planning, a persistent plan, stage acceptance. | `team-lead` |
|
|
14
|
+
| `agent-subagent-orchestration` | 孙代理并行编排 | Workflow | When a captain or an executor must fan work out to subagents, and how results are recovered and integrated. | `team-lead`, `executor` |
|
|
15
|
+
| `fullstack-advisor` | 全栈技术咨询 | Workflow | The advisor's consultation workflow and decision-summary contract. | `fullstack-advisor` |
|
|
16
|
+
| `executor-short-task-workflow` | 执行者短程工作流 | Workflow | Bounded implementation: minimum change, risk-matched verification, structured reporting. | `executor` |
|
|
17
|
+
| `github-repository-presentation` | 仓库展示规范 | Delivery | README home page, badges, public documentation layout, bilingual presentation, Release notes. | `executor`, `repository-specialist` |
|
|
18
|
+
| `git-release-hygiene` | Git 提交与发布规范 | Delivery | Commit, PR, changelog, version, tag, and release hygiene from the real repository state. | `executor`, `repository-specialist` |
|
|
19
|
+
| `frontend-engineering-workflow` | 前端工程工作流 | Workflow | Entry skill of the UI frontend engineer: visual direction, design systems, frontend implementation, and visual QA, reading `references/` per task. | `ui-designer` |
|
|
20
|
+
| `backend-architecture-workflow` | 后端架构工作流 | Workflow | Entry skill of the backend architect: architecture and contracts, complex bug diagnosis, fix regression, reading `references/` per task. | `backend-architect` |
|
|
21
|
+
| `independent-code-review-workflow` | 独立代码审查工作流 | Workflow | Entry skill of the independent reviewer: Standards / Spec review axes and severity grading, reading `references/` by risk. | `reviewer` |
|
|
22
|
+
| `grilling` | 需求拷问 | Method | Interrogating a plan, decision, or idea round by round until goal, boundary, and acceptance are settled. | `discovery-lead` |
|
|
23
|
+
| `research` | 一手来源调研 | Method | Investigating a question against high-trust primary sources, with verifiable conclusions and evidence limits. | `technical-scout`, `product-scout`, `evidence-scout` |
|
|
24
|
+
|
|
25
|
+
**A skill's id is its identity.** The model addresses a skill by that id, the stored binding names it, the preset document exports it, and the on-disk asset directory is derived from it. Only the display name is localized.
|
|
26
|
+
|
|
27
|
+
## Categories
|
|
28
|
+
|
|
29
|
+
Both Team Skill lists — the library page and the per-role assignment grid — open with a category dropdown, and the categories describe the kind of work a skill belongs to rather than the role that happens to hold it:
|
|
30
|
+
|
|
31
|
+
| Category | Count | Contents |
|
|
32
|
+
|---|---|---|
|
|
33
|
+
| **Workflow** | 9 | The captain, advisor, and executor workflows above |
|
|
34
|
+
| **Delivery** | 2 | The repository-presentation and Git-release pair |
|
|
35
|
+
| **Method** | 2 | `grilling` and `research` |
|
|
36
|
+
| **Custom** | — | Everything the build does not ship: skills you import or author yourself |
|
|
37
|
+
|
|
38
|
+
A **local override** stays in the category of the skill it was copied from — it is the same skill, edited. A skill you brought in yourself is Custom even if it reuses a shipped name.
|
|
39
|
+
|
|
40
|
+
## Default bindings
|
|
41
|
+
|
|
42
|
+
The eight engineering skills are bound to the development Teams; the two method skills belong to the Discovery and Research Teams.
|
|
43
|
+
|
|
44
|
+
| Team | `team-lead` | advisor role | `executor` | other |
|
|
45
|
+
|---|---|---|---|---|
|
|
46
|
+
| 轻量研发团队 `builtin-lightweight` | 4 workflow | 1 (`fullstack-advisor`) | 4 (incl. orchestration + delivery) | — |
|
|
47
|
+
| 标准研发团队 `builtin-standard` | 4 workflow | 1 (`fullstack-advisor`) | 4 | `reviewer` 2 (review workflow + orchestration) |
|
|
48
|
+
| 全栈软件研发团队 `builtin-fullstack` | 4 workflow | — | 4 | `ui-designer` 1, `backend-architect` 1, `reviewer` 2 |
|
|
49
|
+
| 需求探索 `builtin-discovery` | `grilling` | — | — | `research` to `technical-scout` and `product-scout` |
|
|
50
|
+
| 架构规划 `builtin-planning` | — | — | — | no default skills |
|
|
51
|
+
| 既定工作流执行 `builtin-workflow` | — | — | — | both delivery skills to `repository-specialist` |
|
|
52
|
+
| 工程研发协作 `builtin-engineering` | — | — | — | both delivery skills to `repository-specialist` |
|
|
53
|
+
| 独立代码与安全审计 `builtin-audit` | — | — | — | no default skills |
|
|
54
|
+
| 科研协作 `builtin-research` | — | — | — | `research` to `evidence-scout` |
|
|
55
|
+
|
|
56
|
+
Two numbers are worth reading carefully. First, a Team's **binding count is not its distinct skill count**: the lightweight Team holds nine bindings but only eight distinct skills, because `agent-subagent-orchestration` is deliberately bound to both the captain and the executor. Second, the standard Team keeps one advisor role (`fullstack-advisor`) while the full-stack Team splits it into `ui-designer` and `backend-architect`; neither declares a role it does not carry, and `agent-subagent-orchestration` never reaches an advisor.
|
|
57
|
+
|
|
58
|
+
You can add or remove assignments per role from the member page; those local changes are yours and are not part of the shipped preset.
|
|
59
|
+
|
|
60
|
+
## Local overrides
|
|
61
|
+
|
|
62
|
+
Built-in skills are **read-only**. You can create a local editable copy from the skill’s page.
|
|
63
|
+
|
|
64
|
+
- Each copy gets its own skill name, such as `research-1` or `research-2`. Select the option in the dialog if you also want to switch roles already bound to the built-in skill to the new copy.
|
|
65
|
+
- When a later plugin release moves the shipped copy past the version your copy was derived from, the library marks it `updateAvailable`.
|
|
66
|
+
- **Restore to the built-in version** (`恢复为插件内置版本`) replaces your copy's content **and moves those roles back onto the shipped skill**, so the default binding is the shipped one again.
|
|
67
|
+
- A copy that lags several versions keeps working, but it also keeps whatever it was derived from. The library reports the gap rather than silently upgrading you.
|
|
68
|
+
|
|
69
|
+
A preset’s default binding names the **shipped** skill. The roles you explicitly switch keep using their local copy until you change their assignment or restore it.
|
|
70
|
+
|
|
71
|
+
### One name, one skill
|
|
72
|
+
|
|
73
|
+
The model addresses each skill by its unique name, and role bindings store the asset ID. Built-in names are reserved. Folder import and directory scan refuse a package with a built-in name.
|
|
74
|
+
|
|
75
|
+
## Scope
|
|
76
|
+
|
|
77
|
+
Each Team Skill is registered **only inside the Agent scope of the member it is assigned to**. Other members, the captain, and the rest of the deployment cannot see or invoke it. That isolation is what makes a per-role skill set meaningful; it is described in [Private Team Skills](guide/team-skills.md) together with the private store, import, scanning, and dependency checks.
|
|
78
|
+
|
|
79
|
+
## Related
|
|
80
|
+
|
|
81
|
+
- [Built-in Teams](builtin-teams.md) — the nine presets and the roles these skills attach to
|
|
82
|
+
- [Getting started](guide/getting-started.md) — using the skill library and the member page
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# 内置团队技能
|
|
2
|
+
|
|
3
|
+
插件随包提供 **13 个团队技能(Team Skill)**,并为其内置团队的角色绑定一套默认组合。本文是清单:每个技能做什么、属于哪一类、默认给哪个角色。
|
|
4
|
+
|
|
5
|
+
[English](<builtin-team-skills.md>) · [文档入口](<index.zh.md>) · [内置团队](<builtin-teams.zh.md>) · [README](<../README.zh.md>)
|
|
6
|
+
|
|
7
|
+
## 13 个随包技能
|
|
8
|
+
|
|
9
|
+
| 技能(模型看到的 id) | 界面显示名 | 分类 | 用途 | 默认角色 |
|
|
10
|
+
|---|---|---|---|---|
|
|
11
|
+
| `agent-leader-communication` | 队长派发与通信 | 工作流型 | 队长的派发、咨询、结果回收与汇报协议。 | `team-lead` |
|
|
12
|
+
| `leader-medium-task-workflow` | 中程任务工作流 | 工作流型 | 有界中程任务:轻量拆分、Team Task Board、队长 Todo、统一验收。 | `team-lead` |
|
|
13
|
+
| `leader-long-task-orchestration` | 长程任务编排 | 工作流型 | 多轮交付:需求对齐、滚动规划、持久化计划、阶段验收。 | `team-lead` |
|
|
14
|
+
| `agent-subagent-orchestration` | 孙代理并行编排 | 工作流型 | 队长或执行者在什么条件下必须派孙代理,以及结果如何回收与集成。 | `team-lead`、`executor` |
|
|
15
|
+
| `fullstack-advisor` | 全栈技术咨询 | 工作流型 | 顾问的咨询工作流与决策摘要契约。 | `fullstack-advisor` |
|
|
16
|
+
| `executor-short-task-workflow` | 执行者短程工作流 | 工作流型 | 有界实现:最小变更、与风险匹配的验证、结构化汇报。 | `executor` |
|
|
17
|
+
| `github-repository-presentation` | 仓库展示规范 | 交付型 | README 首页、徽标、公开文档目录、中英双语呈现与 Release 说明。 | `executor`、`repository-specialist` |
|
|
18
|
+
| `git-release-hygiene` | Git 提交与发布规范 | 交付型 | 依据真实仓库状态处理 Commit、PR、Changelog、版本号、Tag 与 Release。 | `executor`、`repository-specialist` |
|
|
19
|
+
| `frontend-engineering-workflow` | 前端工程工作流 | 工作流型 | UI 前端工程师的入口技能:视觉方向、设计系统、前端实施与视觉 QA,按任务读取 `references/`。 | `ui-designer` |
|
|
20
|
+
| `backend-architecture-workflow` | 后端架构工作流 | 工作流型 | 后端架构师的入口技能:架构与契约设计、复杂 Bug 诊断、修复回归,按任务读取 `references/`。 | `backend-architect` |
|
|
21
|
+
| `independent-code-review-workflow` | 独立代码审查工作流 | 工作流型 | 独立审查员的入口技能:Standards / Spec 双轴审查、严重程度分级,按风险读取 `references/`。 | `reviewer` |
|
|
22
|
+
| `grilling` | 需求拷问 | 方法型 | 逐轮提问,把目标、边界与验收问清楚再动手。 | `discovery-lead` |
|
|
23
|
+
| `research` | 一手来源调研 | 方法型 | 针对高可信一手来源调研,给出可核查结论与证据边界。 | `technical-scout`、`product-scout`、`evidence-scout` |
|
|
24
|
+
|
|
25
|
+
**技能 id 就是它的身份。** 模型按 id 调用它,绑定的存储按 id 记录,预设文档按 id 导出,磁盘上的资产目录也由它派生。只有**显示名**是本地化的。
|
|
26
|
+
|
|
27
|
+
## 分类
|
|
28
|
+
|
|
29
|
+
两个技能列表——技能库页与角色分配网格——顶部都有分类下拉框。分类描述的是技能所属的**工作类型**,而不是它当前被谁持有:
|
|
30
|
+
|
|
31
|
+
| 分类 | 数量 | 内容 |
|
|
32
|
+
|---|---|---|
|
|
33
|
+
| **工作流型** | 9 | 上面的队长、顾问与执行者工作流,以及三个专业角色工作流 |
|
|
34
|
+
| **交付型** | 2 | 仓库展示与 Git 发布这一对 |
|
|
35
|
+
| **方法型** | 2 | `grilling` 与 `research` |
|
|
36
|
+
| **自定义** | — | 本版本未随包发布的全部技能:你自己导入或创建的 |
|
|
37
|
+
|
|
38
|
+
**本地副本**沿用其来源技能的分类——它是同一个技能,只是被改过。你自己带进来的技能即使复用了随包技能的名字,也仍算自定义。
|
|
39
|
+
|
|
40
|
+
## 默认绑定
|
|
41
|
+
|
|
42
|
+
8 个工程技能绑定在研发团队上,2 个方法技能属于需求探索与科研协作团队。
|
|
43
|
+
|
|
44
|
+
| 团队 | `team-lead` | 顾问角色 | `executor` | 其它 |
|
|
45
|
+
|---|---|---|---|---|
|
|
46
|
+
| 轻量研发团队 `builtin-lightweight` | 4 个工作流型 | 1 个(`fullstack-advisor`) | 4 个(含编排与交付) | — |
|
|
47
|
+
| 标准研发团队 `builtin-standard` | 4 个工作流型 | 1 个(`fullstack-advisor`) | 4 个 | `reviewer` 2 个(审查工作流 + 编排) |
|
|
48
|
+
| 全栈软件研发团队 `builtin-fullstack` | 4 个工作流型 | 不设该角色 | 4 个 | `ui-designer` 1 个、`backend-architect` 1 个、`reviewer` 2 个 |
|
|
49
|
+
| 需求探索 `builtin-discovery` | `grilling` | — | — | `research` 给 `technical-scout` 与 `product-scout` |
|
|
50
|
+
| 架构规划 `builtin-planning` | — | — | — | 无默认技能 |
|
|
51
|
+
| 既定工作流执行 `builtin-workflow` | — | — | — | 两个交付技能给 `repository-specialist` |
|
|
52
|
+
| 工程研发协作 `builtin-engineering` | — | — | — | 两个交付技能给 `repository-specialist` |
|
|
53
|
+
| 独立代码与安全审计 `builtin-audit` | — | — | — | 无默认技能 |
|
|
54
|
+
| 科研协作 `builtin-research` | — | — | — | `research` 给 `evidence-scout` |
|
|
55
|
+
|
|
56
|
+
有三个数字要读仔细。第一,**绑定条数不等于技能个数**:轻量研发团队有 9 条绑定,但只对应 8 个不同技能——`agent-subagent-orchestration` 被刻意同时绑给队长和执行者。第二,标准研发团队保留单一顾问角色(`fullstack-advisor`),全栈软件研发团队把顾问拆成 `ui-designer` 与 `backend-architect`,两个团队都不再声明对方没有的专业角色。第三,`agent-subagent-orchestration` **只**绑给队长、执行者与 `reviewer`:顾问保持单线程。
|
|
57
|
+
|
|
58
|
+
你可以在成员页按角色增删绑定;这些本地改动属于你,不属于随包预设。
|
|
59
|
+
|
|
60
|
+
## 本地副本
|
|
61
|
+
|
|
62
|
+
内置技能是**只读**的。你可以在技能页创建本地可编辑副本。
|
|
63
|
+
|
|
64
|
+
- 每份副本有独立的技能名,例如 `research-1`、`research-2`。如需将已绑定内置版的角色切到新副本,在创建弹窗中勾选对应选项。
|
|
65
|
+
- 当后续版本把内置版推进到你派生时的版本之后,技能库会标记 `updateAvailable`。
|
|
66
|
+
- **恢复为插件内置版本**会替换副本正文,**并把那些角色迁回内置技能**,默认绑定重新指向随包副本。
|
|
67
|
+
- 落后若干版本的副本仍能工作,但它保留的是当初派生的样子。技能库会把差距报出来,而不是静默升级你。
|
|
68
|
+
|
|
69
|
+
预设里的默认绑定指向**随包技能**。显式切换过的角色会继续使用本地副本,直到你更改绑定或恢复为插件内置版本。
|
|
70
|
+
|
|
71
|
+
### 一个名字,一个技能
|
|
72
|
+
|
|
73
|
+
模型通过唯一技能名调用技能,角色绑定则保存资产 ID。插件保留内置技能的名称。导入文件夹或扫描导入目录时,撞到内置名称的技能包会被拒绝。
|
|
74
|
+
|
|
75
|
+
## 作用域
|
|
76
|
+
|
|
77
|
+
每个团队技能**只在被分配成员自己的 Agent 作用域内注册**。其他成员、队长以及部署中的其它部分都看不到也调不到它。正是这种隔离让"按角色配技能"有意义;它与私有库、导入、目录扫描和依赖检查一起写在[私有团队技能](<guide/team-skills.zh.md>)里。
|
|
78
|
+
|
|
79
|
+
## 相关
|
|
80
|
+
|
|
81
|
+
- [内置团队](<builtin-teams.zh.md>)——九个预设,以及这些技能挂到哪些角色上
|
|
82
|
+
- [新手必读(图文)](<guide/getting-started.zh.md>)——技能库与成员页的使用
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Built-in Teams
|
|
2
|
+
|
|
3
|
+
This plugin seeds **nine editable Teams** on a fresh installation: three development-scale Teams and six work-mode Teams. This document is the reference for what each one contains; [Built-in Team Skills](builtin-team-skills.md) documents the skills those roles receive.
|
|
4
|
+
|
|
5
|
+
[中文](<builtin-teams.zh.md>) · [Documentation index](index.md) · [README](../README.md)
|
|
6
|
+
|
|
7
|
+
## How a shipped preset behaves
|
|
8
|
+
|
|
9
|
+
- **Seeded once per profile.** A Team that did not exist is added. A Team you edited or deleted is left exactly as you left it, across restarts — the plugin does not re-add it behind your back.
|
|
10
|
+
- **The stored copy is yours.** Your profile's Team record is the authority for the prompt text, the roster, and the colors. Editing it never changes the shipped catalog, and upgrading the plugin never rewrites your copy.
|
|
11
|
+
- **Restore is deliberate.** **Restore built-in presets** rewrites the shipped fields — name, description, purpose, every standing prompt, accent colors, roster, and display metadata — and keeps what is yours: each role's model route and tool policy. A role that had been switched onto a local copy of a shipped skill is returned to the shipped copy, so the visible bindings match the preset again. It stages a draft, so **you still have to save** for it to take effect.
|
|
12
|
+
- **Default skills come from the catalog, not the record.** A shipped Team's default Team Skill bindings are read from the plugin's catalog, so a record written before that field existed (or holding an empty value) still receives its defaults. Only a Team you authored yourself carries its own declaration.
|
|
13
|
+
|
|
14
|
+
## 研发规模系列 (Classic Development Scale)
|
|
15
|
+
|
|
16
|
+
Three Teams for building software, differing in how much coordination the work needs.
|
|
17
|
+
|
|
18
|
+
| Preset | Roles | Intended use |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| **轻量研发团队**<br>`builtin-lightweight` | Captain `team-lead`, `fullstack-advisor`, `executor` | Small-to-medium iterations and multi-stage delivery. The captain aligns requirements, grades the task, explores in parallel, and accepts; the advisor answers technical decisions single-threaded; the executor implements, integrates, and verifies. |
|
|
21
|
+
| **标准研发团队**<br>`builtin-standard` | Captain `team-lead`, `fullstack-advisor`, `executor`, `reviewer` | Medium features, significant refactors, and sustained iteration. The advisor answers technical decisions on demand; the executor implements continuously; the independent reviewer checks every code change. |
|
|
22
|
+
| **全栈软件研发团队**<br>`builtin-fullstack` | Captain `team-lead`, `ui-designer`, `backend-architect`, `executor`, `reviewer` | Complex full-stack engineering across Web, desktop, and Android. The advisor role is split into the UI frontend engineer and the backend architect; the executor handles routine development and testing; the independent reviewer accepts. |
|
|
23
|
+
|
|
24
|
+
### What each role is for
|
|
25
|
+
|
|
26
|
+
| Role | Appears in | Responsibility |
|
|
27
|
+
|---|---|---|
|
|
28
|
+
| `team-lead` | all three | Aligns the requirement, grades the task, dispatches, integrates, and accepts. Holds the final risk call. |
|
|
29
|
+
| `fullstack-advisor` | lightweight, standard | Cross-layer technical decisions, trade-offs, risks, and executable acceptance contracts. Does not implement. |
|
|
30
|
+
| `reviewer` | standard, fullstack | Independent inspection of the actual change, the critical risks, and whether the tests can catch the defect. |
|
|
31
|
+
| `executor` | all three | Implements, debugs, tests, and hands over verification evidence within the assigned scope. |
|
|
32
|
+
| `backend-architect` | fullstack | System architecture, API and data contracts, error semantics, auth isolation, migration compatibility, plus the complex backend fixes. |
|
|
33
|
+
| `ui-designer` | fullstack | Visual direction, design systems, frontend components and interaction, real-screenshot visual acceptance, plus the frontend fixes. |
|
|
34
|
+
|
|
35
|
+
## 工作模式系列 (Work Modes)
|
|
36
|
+
|
|
37
|
+
Six Teams for work that is not "build the next feature".
|
|
38
|
+
|
|
39
|
+
| Preset | Roles | Intended use |
|
|
40
|
+
|---|---|---|
|
|
41
|
+
| **需求探索**<br>`builtin-discovery` | Captain `discovery-lead`, `technical-scout`, `product-scout`, `critical-analyst` | Goals, technical paths, or product direction still open. Read-only by default; independent challenge is built in. |
|
|
42
|
+
| **架构规划**<br>`builtin-planning` | Captain `planning-lead`, `system-architect`, `contract-designer`, `ux-planner`, `plan-reviewer` | Settled goals where module boundaries and cross-module contracts still need design and review. |
|
|
43
|
+
| **既定工作流执行**<br>`builtin-workflow` | Captain `workflow-lead`, `executor`, `verifier`, `repository-specialist` | An established workflow: you name the next task, the Team implements, verifies, and delivers. |
|
|
44
|
+
| **工程研发协作**<br>`builtin-engineering` | Captain `engineering-lead`, `architect`, `executor`, `ui-designer`, `reviewer`, `repository-specialist` | Adaptive engineering: the captain does the work it can do directly and summons members when there is real gain. |
|
|
45
|
+
| **独立代码与安全审计**<br>`builtin-audit` | Captain `audit-lead`, `code-auditor`, `security-auditor`, `finding-verifier` | Independent, read-only review of specified code, configuration, or changes. Reports and verifies; does not fix. |
|
|
46
|
+
| **科研协作**<br>`builtin-research` | Captain `research-lead`, `methodologist`, `evidence-scout`, `research-engineer`, `skeptic` | Literature, method design, experiment code, and evidence strength. Runs experiments inside the authorized goal. |
|
|
47
|
+
|
|
48
|
+
## Roles are addressed by name
|
|
49
|
+
|
|
50
|
+
A default Team Skill binding names a role **by its name** in the Team document. Two consequences are worth knowing:
|
|
51
|
+
|
|
52
|
+
- Renaming a role detaches its default skills. The declaration then matches no role and is dropped; re-assign the skill from the member page.
|
|
53
|
+
- A member named exactly `captain` cannot be addressed separately from the captain slot, because that name is the slot's own identity.
|
|
54
|
+
|
|
55
|
+
## Where the record lives
|
|
56
|
+
|
|
57
|
+
Your Team records are stored in the active profile's configuration (`cordis.patch.yml` under `$DSH_HOME/profiles/<profile>/`), not inside the plugin. That is why an upgrade cannot silently change the Teams you are running, and why the restore above is the only path back to the shipped text.
|
|
58
|
+
|
|
59
|
+
## Related
|
|
60
|
+
|
|
61
|
+
- [Built-in Team Skills](builtin-team-skills.md) — the ten shipped skills and which role receives each
|
|
62
|
+
- [Getting started](guide/getting-started.md) — the illustrated walkthrough for creating and using a Team
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# 内置团队
|
|
2
|
+
|
|
3
|
+
插件在全新安装时初始化 **九个可编辑团队**:三个研发规模团队,六个工作模式团队。本文说明每个团队包含什么;它们各自拿到哪些技能,见[内置团队技能](<builtin-team-skills.zh.md>)。
|
|
4
|
+
|
|
5
|
+
[English](<builtin-teams.md>) · [文档入口](<index.zh.md>) · [README](<../README.zh.md>)
|
|
6
|
+
|
|
7
|
+
## 内置预设的行为
|
|
8
|
+
|
|
9
|
+
- **每个 profile 只初始化一次。** 不存在的团队会被补上;你编辑过或删除过的团队会保持你留下的样子,重启也不会被重新加回来。
|
|
10
|
+
- **存下来那份是你的。** 团队记录存在 profile 配置里,提示词文本、成员名册与配色都以它为准。改动它不会影响插件内置目录,升级插件也不会改写你的副本。
|
|
11
|
+
- **恢复是显式动作。** **恢复内置预设**会重写内置字段——名称、描述、用途、全部提示词、强调色、成员名册与展示元数据——同时保留属于你的部分:各角色的模型路由与工具策略。曾被切到本地副本上的角色会回到随包技能,让可见的绑定与预设重新一致。它只改**草稿**,所以**必须再保存**才会生效。
|
|
12
|
+
- **默认技能来自目录,不是记录。** 内置团队的默认技能绑定由插件目录决定,因此在这字段出现之前写下的记录(或值为空的记录)依然能拿到默认绑定;只有你自建的团队才以自己的声明为准。
|
|
13
|
+
|
|
14
|
+
## 研发规模系列
|
|
15
|
+
|
|
16
|
+
三个用于开发软件的团队,区别在于协作开销。
|
|
17
|
+
|
|
18
|
+
| 预设 | 角色 | 适用场景 |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| **轻量研发团队**<br>`builtin-lightweight` | 队长 `team-lead`、`fullstack-advisor`、`executor` | 中小型功能迭代与多阶段开发。队长负责需求对齐、任务分级、并行探查与验收;顾问单线程回答技术决策;执行者实现、集成与验证。 |
|
|
21
|
+
| **标准研发团队**<br>`builtin-standard` | 队长 `team-lead`、`fullstack-advisor`、`executor`、`reviewer` | 中型功能、重要重构与持续项目迭代。全栈顾问按需提供技术决策与验收契约;执行者持续研发;独立审查员检查有代码变更的交付。 |
|
|
22
|
+
| **全栈软件研发团队**<br>`builtin-fullstack` | 队长 `team-lead`、`ui-designer`、`backend-architect`、`executor`、`reviewer` | 面向 Web、桌面与 Android 的跨端复杂工程。顾问职责拆成 UI 前端工程师与后端架构师;执行者承担常规开发测试;独立审查员验收。 |
|
|
23
|
+
|
|
24
|
+
### 各角色职责
|
|
25
|
+
|
|
26
|
+
| 角色 | 出现于 | 职责 |
|
|
27
|
+
|---|---|---|
|
|
28
|
+
| `team-lead` | 三个团队 | 对齐需求、任务分级、派发、集成与验收,保留最终风险裁决权。 |
|
|
29
|
+
| `fullstack-advisor` | 轻量、标准 | 跨层技术决策、方案权衡、风险分析与可执行验收契约;不承担编码。 |
|
|
30
|
+
| `reviewer` | 标准、全栈 | 独立审查实际变更、关键风险,以及测试是否真能捕获该缺陷。 |
|
|
31
|
+
| `executor` | 三个团队 | 在获派范围内实现、调试、测试并交接验证证据。 |
|
|
32
|
+
| `backend-architect` | 全栈 | 系统架构、API 与数据契约、错误语义、鉴权隔离、迁移兼容,并直接承担复杂后端修复。 |
|
|
33
|
+
| `ui-designer` | 全栈 | 视觉方向、设计系统、前端组件与交互实现、真实截图视觉验收,并直接承担前端修复。 |
|
|
34
|
+
|
|
35
|
+
## 工作模式系列
|
|
36
|
+
|
|
37
|
+
六个用于"不是开发下一个功能"的场景。
|
|
38
|
+
|
|
39
|
+
| 预设 | 角色 | 适用场景 |
|
|
40
|
+
|---|---|---|
|
|
41
|
+
| **需求探索**<br>`builtin-discovery` | 队长 `discovery-lead`、`technical-scout`、`product-scout`、`critical-analyst` | 目标、技术路径或产品方向尚未确定。默认只读,内置独立质疑。 |
|
|
42
|
+
| **架构规划**<br>`builtin-planning` | 队长 `planning-lead`、`system-architect`、`contract-designer`、`ux-planner`、`plan-reviewer` | 目标已明确,但模块边界与跨模块契约仍需设计与评审。 |
|
|
43
|
+
| **既定工作流执行**<br>`builtin-workflow` | 队长 `workflow-lead`、`executor`、`verifier`、`repository-specialist` | 已有成熟工作流:你点名下一项任务,团队实施、验证并交付。 |
|
|
44
|
+
| **工程研发协作**<br>`builtin-engineering` | 队长 `engineering-lead`、`architect`、`executor`、`ui-designer`、`reviewer`、`repository-specialist` | 自适应工程:队长自己能做就直接做,有实际收益时才召唤成员。 |
|
|
45
|
+
| **独立代码与安全审计**<br>`builtin-audit` | 队长 `audit-lead`、`code-auditor`、`security-auditor`、`finding-verifier` | 对指定代码、配置或变更做独立只读审查;只报告与复核,不负责修复。 |
|
|
46
|
+
| **科研协作**<br>`builtin-research` | 队长 `research-lead`、`methodologist`、`evidence-scout`、`research-engineer`、`skeptic` | 文献、方法设计、实验代码与证据强度;在已授权目标内运行实验。 |
|
|
47
|
+
|
|
48
|
+
## 角色按名字寻址
|
|
49
|
+
|
|
50
|
+
默认技能绑定是通过**角色名**指名角色的。由此有两点值得知道:
|
|
51
|
+
|
|
52
|
+
- **改名会断开默认技能。** 声明匹配不到角色就会被丢弃,需要在成员页重新分配。
|
|
53
|
+
- **成员不能叫 `captain`。** 该名字是队长槽位自身的身份,叫这个名字的成员无法与队长槽位区分开。
|
|
54
|
+
|
|
55
|
+
## 记录存在哪里
|
|
56
|
+
|
|
57
|
+
团队记录存放在当前 profile 的配置里(`$DSH_HOME/profiles/<profile>/cordis.patch.yml`),不在插件内部。这既解释了为什么升级不会悄悄改变你正在跑的团队,也解释了为什么上面那个「恢复」是回到内置文本的唯一路径。
|
|
58
|
+
|
|
59
|
+
## 相关
|
|
60
|
+
|
|
61
|
+
- [内置团队技能](<builtin-team-skills.zh.md>)——10 个随包技能,以及哪个角色拿到哪一个
|
|
62
|
+
- [新手必读(图文)](<guide/getting-started.zh.md>)——创建与使用团队的逐步图解
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Architecture
|
|
2
|
+
|
|
3
|
+
How `dsh-agent-team-presets` is put together: the lifecycle extension points it uses, where each concern lives under `src/`, and what a source checkout needs before the test suite runs.
|
|
4
|
+
|
|
5
|
+
[中文](<architecture.zh.md>) · [Documentation index](../index.md) · [README](../../README.md)
|
|
6
|
+
|
|
7
|
+
## How it works
|
|
8
|
+
|
|
9
|
+
The plugin integrates through Cordis and Harness lifecycle extension points; it does not patch host source code. Four parts carry that:
|
|
10
|
+
|
|
11
|
+
1. **Profile configuration** — stores Team presets, display metadata, local categories, and the active Session selections.
|
|
12
|
+
2. **Session application** — installs the captain persona, tool policy, and `spawn_team_member` at Agent scope. Selecting a single member instead installs that member's role card and tool policy, omits the captain briefing and the member tool, and selects the member's configured model route on the Session.
|
|
13
|
+
3. **Member creation and skill scoping** — validates the route and delegation limits, persists an instance snapshot, and launches the subagent. Before the first request, the serial `agent/created` hook injects model selection, persona, tool filters, and **assigned Team Skills strictly into that member's Agent scope**.
|
|
14
|
+
4. **Private skill manager** — owns skill storage (`~/.dsh/agent-team-presets/team-skills`), crash-recovery journaling, dependency resolution, and guarded deletion.
|
|
15
|
+
|
|
16
|
+
The Harness subagent runtime owns collaboration at runtime; this plugin owns configuring, managing, isolating, and reusing teams and their skills. No Agent Teams bundle is required: members are created through the deployment's continuable subagent providers (default backend names `spawn` and `fork`), and native messaging, task tools, and the Web roster are unaffected.
|
|
17
|
+
|
|
18
|
+
A preset role is a template. Summoning creates an instance with a unique target such as `executor` or `executor-2`; continuing an existing instance means `send_message` with that target rather than spawning a new one.
|
|
19
|
+
|
|
20
|
+
## Source map
|
|
21
|
+
|
|
22
|
+
| Area | Source |
|
|
23
|
+
|---|---|
|
|
24
|
+
| Plugin lifecycle and settings reconciliation | [src/index.ts](../../src/index.ts), [src/settings-reconcile.ts](../../src/settings-reconcile.ts) |
|
|
25
|
+
| Built-in team catalog and series | [src/builtin-teams.ts](../../src/builtin-teams.ts), [src/team-catalog.ts](../../src/team-catalog.ts) |
|
|
26
|
+
| Team application and member tool | [src/application.ts](../../src/application.ts) |
|
|
27
|
+
| Member snapshots and runtime injection | [src/member-store.ts](../../src/member-store.ts), [src/member-identity.ts](../../src/member-identity.ts), [src/member-runtime.ts](../../src/member-runtime.ts) |
|
|
28
|
+
| Private Team Skills subsystem | [src/team-skills/store.ts](../../src/team-skills/store.ts), [src/team-skills/manager.ts](../../src/team-skills/manager.ts), [src/team-skills/service.ts](../../src/team-skills/service.ts), [src/team-skills/tools.ts](../../src/team-skills/tools.ts) |
|
|
29
|
+
| Tool policies and presentation | [src/tool-policy.ts](../../src/tool-policy.ts), [src/presentation.ts](../../src/presentation.ts) |
|
|
30
|
+
| Preset tools and transfer | [src/preset-tools.ts](../../src/preset-tools.ts), [src/preset-transfer.ts](../../src/preset-transfer.ts) |
|
|
31
|
+
| Browser client UI | [src/client/](../../src/client/) |
|
|
32
|
+
|
|
33
|
+
## Development
|
|
34
|
+
|
|
35
|
+
Source development requires a compatible, dependency-installed [Harness checkout](https://github.com/deepseek-ai/deepseek-harness) with its Host types and generated Typert Remote artifacts built first (the Harness `build:lib:host` pipeline provides them):
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
export DSH_CHECKOUT=/absolute/path/to/deepseek-harness
|
|
39
|
+
npm test
|
|
40
|
+
npm run typecheck
|
|
41
|
+
npm run bundle
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Bug reports and pull requests are welcome at [GitHub Issues](https://github.com/bloodarea/dsh-agent-team-presets/issues) and [Pull requests](https://github.com/bloodarea/dsh-agent-team-presets/pulls).
|
|
45
|
+
|
|
46
|
+
Thanks to **张灏焱** for contributing the `grilling` and `research` method Team Skills (PR #2), and to Matt Pocock for the upstream [skills](https://github.com/mattpocock/skills) they adapt (MIT, see [NOTICE](../../NOTICE)).
|
|
47
|
+
|
|
48
|
+
## Related
|
|
49
|
+
|
|
50
|
+
- [Documentation index](../index.md) — the full document map.
|
|
51
|
+
- [Built-in Teams](../builtin-teams.md) — the nine shipped presets and their roles.
|
|
52
|
+
- [Built-in Team Skills](../builtin-team-skills.md) — the ten shipped skills and per-role bindings.
|
|
53
|
+
- [Getting started](../guide/getting-started.md) — the illustrated walkthrough.
|
|
54
|
+
- [README](../../README.md) — overview, quick start, and the documentation map.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# 架构
|
|
2
|
+
|
|
3
|
+
`dsh-agent-team-presets` 的实现结构:它用到哪些生命周期扩展点、各关注点在 `src/` 下的位置,以及源码开发前的环境前置。
|
|
4
|
+
|
|
5
|
+
[English](<architecture.md>) · [文档索引](../index.zh.md) · [README](../../README.zh.md)
|
|
6
|
+
|
|
7
|
+
## 工作原理
|
|
8
|
+
|
|
9
|
+
插件通过 Cordis 与 Harness 生命周期扩展点协作,不改动宿主源码,由四部分承担:
|
|
10
|
+
|
|
11
|
+
1. **Profile 配置:** 保存团队预设、展示元数据、本地分类与活动会话选择。
|
|
12
|
+
2. **会话应用:** 在 Agent 作用域安装队长 persona、工具策略与 `spawn_team_member`。选择单个成员时,改为安装该成员的角色卡与工具策略,不安装队长简报与成员工具,并把该成员配置的模型路由设为会话当前模型。
|
|
13
|
+
3. **成员创建与技能作用域:** 校验路由与委派配额,保存实例快照并召唤子会话。在首次请求前,串行 `agent/created` 钩子把模型选择、persona、工具过滤以及**已分配的 Team Skill 严格注入该成员的 Agent 作用域**。
|
|
14
|
+
4. **私有技能管理器:** 负责技能存储(`~/.dsh/agent-team-presets/team-skills`)、防崩溃事务日志、依赖解析与删除阻断核验。
|
|
15
|
+
|
|
16
|
+
运行时协作由 Harness 的子会话运行时负责;本插件负责对这些团队及其技能的配置、管理、隔离与复用。插件不依赖任何 Agent Teams bundle:成员经由部署提供的可续接子会话后端创建(默认后端名为 `spawn` 与 `fork`),原生消息、任务工具与 Web 花名册不受影响。
|
|
17
|
+
|
|
18
|
+
预设中的角色是模板。召唤会创建一个带唯一 target 的实例,例如 `executor` 或 `executor-2`;要与已有实例继续协作,用 `send_message` 指定该 target,而不是再召唤一个。
|
|
19
|
+
|
|
20
|
+
## 源码地图
|
|
21
|
+
|
|
22
|
+
| 范围 | 源码 |
|
|
23
|
+
|---|---|
|
|
24
|
+
| 插件生命周期与设置协调 | [src/index.ts](../../src/index.ts)、[src/settings-reconcile.ts](../../src/settings-reconcile.ts) |
|
|
25
|
+
| 内置预设目录与系列 | [src/builtin-teams.ts](../../src/builtin-teams.ts)、[src/team-catalog.ts](../../src/team-catalog.ts) |
|
|
26
|
+
| 团队应用与成员召唤 | [src/application.ts](../../src/application.ts) |
|
|
27
|
+
| 成员快照与运行时注入 | [src/member-store.ts](../../src/member-store.ts)、[src/member-identity.ts](../../src/member-identity.ts)、[src/member-runtime.ts](../../src/member-runtime.ts) |
|
|
28
|
+
| 私有 Team Skill 技能子系统 | [src/team-skills/store.ts](../../src/team-skills/store.ts)、[src/team-skills/manager.ts](../../src/team-skills/manager.ts)、[src/team-skills/service.ts](../../src/team-skills/service.ts)、[src/team-skills/tools.ts](../../src/team-skills/tools.ts) |
|
|
29
|
+
| 工具策略与呈现方式 | [src/tool-policy.ts](../../src/tool-policy.ts)、[src/presentation.ts](../../src/presentation.ts) |
|
|
30
|
+
| 预设工具与导入导出 | [src/preset-tools.ts](../../src/preset-tools.ts)、[src/preset-transfer.ts](../../src/preset-transfer.ts) |
|
|
31
|
+
| 浏览器前端界面 | [src/client/](../../src/client/) |
|
|
32
|
+
|
|
33
|
+
## 开发
|
|
34
|
+
|
|
35
|
+
源码开发需要一份兼容、已安装依赖的 [Harness 源码](https://github.com/deepseek-ai/deepseek-harness),并先完成其 Host 类型与 Typert Remote 产物生成(Harness 的 `build:lib:host` 流程提供这些前置产物):
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
export DSH_CHECKOUT=/absolute/path/to/deepseek-harness
|
|
39
|
+
npm test
|
|
40
|
+
npm run typecheck
|
|
41
|
+
npm run bundle
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
欢迎通过 [GitHub Issues](https://github.com/bloodarea/dsh-agent-team-presets/issues) 与 [Pull requests](https://github.com/bloodarea/dsh-agent-team-presets/pulls) 反馈问题、贡献修改。
|
|
45
|
+
|
|
46
|
+
感谢 **张灏焱** 贡献 `grilling` 与 `research` 两个方法型 Team Skill(PR #2),以及 Matt Pocock 提供其改编所依据的上游 [skills](https://github.com/mattpocock/skills)(MIT,见 [NOTICE](../../NOTICE))。
|
|
47
|
+
|
|
48
|
+
## 相关
|
|
49
|
+
|
|
50
|
+
- [文档索引](../index.zh.md) —— 完整的文档地图。
|
|
51
|
+
- [内置团队](../builtin-teams.md) —— 九个内置预设与各自的角色。
|
|
52
|
+
- [内置团队技能](../builtin-team-skills.md) —— 十个随包技能与各角色默认绑定。
|
|
53
|
+
- [新手必读(图文)](../guide/getting-started.md) —— 逐屏走查。
|
|
54
|
+
- [README](../../README.zh.md) —— 总览、快速开始与文档导航。
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# Install and upgrade
|
|
2
|
+
|
|
3
|
+
What the plugin needs before it runs, the three supported install forms, and how to verify an install before upgrading it.
|
|
4
|
+
|
|
5
|
+
[中文](<install.zh.md>) · [Documentation index](../index.md) · [README](../../README.md)
|
|
6
|
+
|
|
7
|
+
## Requirements
|
|
8
|
+
|
|
9
|
+
- **DeepSeek Harness `>=0.2.2-rc.3 <0.3.0`.** Verified against **`0.2.2-rc.3`**; 0.2.2-rc.2 and older are refused. Each member's route is recorded through `agent.model.select()` for fresh, forked, and cold-resumed execution; the captain keeps the conversation's model selection. The plugin manager enforces `engines.dsh` from [package.json](../../package.json).
|
|
10
|
+
- **Custom tool allow-lists have their own contract.** What a policy admits, and what it cannot do, is described in [Tools and permissions](../reference/tools-and-permissions.md).
|
|
11
|
+
- **No Agent Teams bundle is required.** Members are created through the deployment's continuable subagent providers, and native messaging, task tools, and the Web roster are unaffected by this plugin.
|
|
12
|
+
- **A Web or Desktop profile with Settings and the required client services.** Install into the profile you actually use — typically `web` for the Web GUI or `desktop` for Desktop.
|
|
13
|
+
- **Durable storage and a continuable subagent backend for member execution.** Member creation is refused if the storage domain or the selected execution backend is unavailable. The default backend names are `spawn` and `fork`.
|
|
14
|
+
|
|
15
|
+
The plugin version (`0.3.4`) and the Harness version (`0.2.2-rc.3`, for example) are separate version lines.
|
|
16
|
+
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
### Option 1 — npm package (recommended; receives update prompts)
|
|
20
|
+
|
|
21
|
+
Open **Global panels → Plugins → Add plugin**, paste the line below into **Package name or address**, and click **Install**:
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
dsh-agent-team-presets
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Or install it from the CLI:
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
dsh plugin --profile <profile> add dsh-agent-team-presets
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Replace `<profile>` with your active profile (e.g. `web` or `desktop`):
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
dsh plugin --profile web add dsh-agent-team-presets
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The plugin manager compares the installed version against npm's `latest` dist-tag, so every later release is offered as an update.
|
|
40
|
+
|
|
41
|
+
### Option 2 — floating GitHub install
|
|
42
|
+
|
|
43
|
+
Tracks the repository's default branch; an update is offered when `package.json` on that branch moves to a higher version:
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Option 3 — reproducible pin (no update prompts)
|
|
50
|
+
|
|
51
|
+
```text
|
|
52
|
+
dsh-agent-team-presets@0.3.2
|
|
53
|
+
dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.3.2
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
A fixed version or tag reproduces exactly one release. **A `#tag` GitHub spec is only ever compared against that same tag, so the market never reports an update for it — upgrading means editing the spec by hand.** Use this form only when you need a frozen install.
|
|
57
|
+
|
|
58
|
+
### Install notes
|
|
59
|
+
|
|
60
|
+
- **Registry** selects which npm source the download comes from. **Default registry** uses pnpm's own configuration. Pick **Official npm registry** to bypass a mirror, or **Custom address** for an internal or cloud mirror.
|
|
61
|
+
- The field accepts package names, `name@version`, `github:owner/repo`, tarball URLs, or absolute filesystem paths.
|
|
62
|
+
- This package declares `dsh.bundle`, so the plugin manager automatically registers it as a profile bundle layer; do not add a loader entry by hand.
|
|
63
|
+
- Once installed, reinstalling the same package identity is blocked. To switch sources (e.g. from GitHub to npm), uninstall first, then install the new spec.
|
|
64
|
+
- GitHub and [npm](https://www.npmjs.com/package/dsh-agent-team-presets) are separate release channels, so check the version this install would fetch before switching channels:
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
npm view dsh-agent-team-presets version
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
- After installation, reload or restart as prompted.
|
|
71
|
+
|
|
72
|
+
## Verify and upgrade safely
|
|
73
|
+
|
|
74
|
+
After installation, follow the plugin manager's reload/restart prompts and navigate to **Settings → Agent team presets**. Verify that details display `dsh-agent-team-presets`, the version you just installed, and a running component.
|
|
75
|
+
|
|
76
|
+
- Back up profile settings, Team definitions, and Session selections before upgrading.
|
|
77
|
+
- When migrating from a development link, remove `@deepseek-ai/dsh-experimental-agent-team-presets` first before enabling the community package.
|
|
78
|
+
- Restart Harness after switching package identities, then refresh the GUI.
|
|
79
|
+
|
|
80
|
+
> **Install the bundle; do not add a second loader declaration.** The package already supplies its own [bundle patch](../../cordis.patch.yml). Duplicate hand-written declarations in profile patches can prevent settings from saving. The package's own declaration is the only one needed.
|
|
81
|
+
|
|
82
|
+
## Next
|
|
83
|
+
|
|
84
|
+
- [Using Teams](using-teams.md) — configure a Team and run it in a conversation.
|
|
85
|
+
- [Getting started](getting-started.md) — the illustrated walkthrough, screen by screen.
|
|
86
|
+
- [Documentation index](../index.md) — every document by topic.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# 安装与升级
|
|
2
|
+
|
|
3
|
+
插件运行前需要什么、三种安装方式,以及升级之前如何确认安装结果。
|
|
4
|
+
|
|
5
|
+
[English](<install.md>) · [文档索引](../index.zh.md) · [README](../../README.zh.md)
|
|
6
|
+
|
|
7
|
+
## 环境要求
|
|
8
|
+
|
|
9
|
+
- **DeepSeek Harness `>=0.2.2-rc.3 <0.3.0`。** 本次实测版本为 **`0.2.2-rc.3`**;0.2.2-rc.2 及更旧版本会被拒绝。成员路由通过 `agent.model.select()` 写入各自会话,fresh、fork 与冷恢复均使用成员自己的配置;队长使用当前会话选择。插件管理器按 [package.json](../../package.json) 的 `engines.dsh` 判定兼容性。
|
|
10
|
+
- **自定义工具白名单有自己的规则边界。** 策略允许什么、限制什么,见[工具与权限](../reference/tools-and-permissions.md)。
|
|
11
|
+
- **无需 Agent Teams bundle。** 成员通过部署自带的可继续执行 subagent 后端创建;原生消息、任务工具与 Web 名册不受本插件影响。
|
|
12
|
+
- **具备 Settings 与所需客户端服务的 Web 或 Desktop profile。** 安装到实际使用的 profile:Web GUI 通常为 `web`,Desktop 通常为 `desktop`。
|
|
13
|
+
- **成员执行所需的持久存储与支持恢复执行的子智能体后端。** 缺少 storage domain 或所选执行后端时,插件会拒绝创建成员。默认后端名为 `spawn` 和 `fork`。
|
|
14
|
+
|
|
15
|
+
插件版本(`0.3.4`)和 Harness 版本(如 `0.2.2-rc.3`)是不同的版本线。
|
|
16
|
+
|
|
17
|
+
## 安装
|
|
18
|
+
|
|
19
|
+
### 方式一 —— npm 包(推荐,会收到更新提示)
|
|
20
|
+
|
|
21
|
+
打开 **全局面板 → 插件 → 添加插件**,把下面这一行粘贴到「包名或地址」,点击 **安装**:
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
dsh-agent-team-presets
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
也可以用命令行安装:
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
dsh plugin --profile <profile> add dsh-agent-team-presets
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
将 `<profile>` 替换为实际运行的 profile(例如 `web` 或 `desktop`):
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
dsh plugin --profile web add dsh-agent-team-presets
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
插件管理器会把已安装版本与 npm 的 `latest` 标签比较,之后每有新版本都会提示更新。
|
|
40
|
+
|
|
41
|
+
### 方式二 —— 浮动 GitHub 安装
|
|
42
|
+
|
|
43
|
+
跟随仓库默认分支;该分支上的 `package.json` 版本升高后就会提示更新:
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 方式三 —— 可复现的固定版本(收不到更新提示)
|
|
50
|
+
|
|
51
|
+
```text
|
|
52
|
+
dsh-agent-team-presets@0.3.2
|
|
53
|
+
dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.3.2
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
固定版本号或固定标签只能复现一个确定的发布。**带 `#标签` 的 GitHub 规格只会与同一个标签比对,市场永远不会提示更新——升级只能手动改规格。** 只在确实需要冻结安装时使用这种形式。
|
|
57
|
+
|
|
58
|
+
### 安装说明
|
|
59
|
+
|
|
60
|
+
- **安装源**决定从哪个 npm 源下载。「默认安装源」指 pnpm 自身配置所指的源。要绕开镜像选「npm 官方源」;要换内网私有源或云厂商镜像选「自定义地址」。
|
|
61
|
+
- 输入框支持包名、`name@version`、`github:作者/仓库`、tarball 地址或本地绝对路径。
|
|
62
|
+
- 本包声明了自己的 `dsh.bundle`,安装后由插件管理器登记为 profile 的 bundle 层,不要再手写 loader 条目。
|
|
63
|
+
- 已安装本包时无法重复安装同一包名。要更换安装来源(如由 GitHub 改为 npm),先在插件列表中卸载,再粘贴新规格安装。
|
|
64
|
+
- GitHub 与 [npm](https://www.npmjs.com/package/dsh-agent-team-presets) 是独立发布渠道,换渠道前先确认这次会装到哪个版本:
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
npm view dsh-agent-team-presets version
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
- 安装完成后按提示重新加载或重启应用。
|
|
71
|
+
|
|
72
|
+
## 确认安装并安全升级
|
|
73
|
+
|
|
74
|
+
安装成功后,按插件管理器的提示重新加载或重启,打开 **设置 → 智能体团队预设**。确认插件详情显示 `dsh-agent-team-presets`、刚安装的版本号,且组件处于运行中状态。
|
|
75
|
+
|
|
76
|
+
- 升级前备份 profile 设置、团队定义与会话选择记录。
|
|
77
|
+
- 从开发链接迁移时,先通过插件管理器移除 `@deepseek-ai/dsh-experimental-agent-team-presets`,再启用社区包。
|
|
78
|
+
- 切换包身份后重启 Harness,再刷新 GUI。
|
|
79
|
+
|
|
80
|
+
> **安装 bundle,不要再声明一份 loader 条目。** 本包已经提供[自己的 bundle patch](../../cordis.patch.yml)。在 profile patch 中手写重复声明,可能导致设置无法保存;本包自带的这一份声明已经足够。
|
|
81
|
+
|
|
82
|
+
## 接下来
|
|
83
|
+
|
|
84
|
+
- [使用团队](using-teams.zh.md) —— 配置团队并在会话中调度。
|
|
85
|
+
- [新手必读(图文)](getting-started.zh.md) —— 逐屏走查。
|
|
86
|
+
- [文档索引](../index.zh.md) —— 按主题查看全部文档。
|