dsh-agent-team-presets 0.1.7 → 0.1.9

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.
Files changed (42) hide show
  1. package/README.md +79 -22
  2. package/README.zh.md +78 -21
  3. package/assets/skills/git-release-hygiene/SKILL.md +9 -5
  4. package/assets/skills/github-repository-presentation/SKILL.md +73 -68
  5. package/lib/client.js +539 -181
  6. package/lib/index.js +1125 -353
  7. package/lib/typert.host.js +3 -3
  8. package/lib/typert.remote-client.js +3 -3
  9. package/lib/types/application.d.ts +90 -17
  10. package/lib/types/application.js +111 -56
  11. package/lib/types/builtin-skill.d.ts +32 -0
  12. package/lib/types/builtin-skill.js +247 -0
  13. package/lib/types/client/ComposerTeamSelect.d.ts +5 -3
  14. package/lib/types/client/ComposerTeamSelect.js +173 -15
  15. package/lib/types/client/TeamAgentView.js +7 -2
  16. package/lib/types/client/locales.d.ts +1 -1
  17. package/lib/types/client/locales.js +18 -0
  18. package/lib/types/client/team-presets-controller.d.ts +42 -0
  19. package/lib/types/client/team-presets-controller.js +50 -5
  20. package/lib/types/config.d.ts +4 -0
  21. package/lib/types/config.js +3 -0
  22. package/lib/types/execution.d.ts +5 -0
  23. package/lib/types/execution.js +14 -3
  24. package/lib/types/index.js +374 -81
  25. package/lib/types/member-runtime.js +16 -22
  26. package/lib/types/presentation.d.ts +23 -105
  27. package/lib/types/presentation.js +37 -85
  28. package/lib/types/preset-tools.js +2 -2
  29. package/lib/types/presets.d.ts +90 -1
  30. package/lib/types/presets.js +115 -2
  31. package/lib/types/team-skills/index.d.ts +56 -6
  32. package/lib/types/team-skills/index.js +74 -14
  33. package/lib/types/team-skills/manager.js +53 -13
  34. package/lib/types/team-skills/paths.js +21 -2
  35. package/lib/types/team-skills/provider.d.ts +92 -14
  36. package/lib/types/team-skills/provider.js +181 -64
  37. package/lib/types/tool-catalog.d.ts +7 -3
  38. package/lib/types/tool-catalog.js +9 -4
  39. package/lib/types/tool-policy.d.ts +18 -12
  40. package/lib/types/tool-policy.js +69 -17
  41. package/lib/types/types.d.ts +11 -0
  42. package/package.json +52 -49
package/README.md CHANGED
@@ -6,9 +6,16 @@
6
6
 
7
7
  English | [中文](<README.zh.md>)
8
8
 
9
- > **Community plugin v0.1.7** · [Release](https://github.com/bloodarea/dsh-agent-team-presets/releases/tag/v0.1.7)
9
+ > **Community plugin v0.1.9** · [Tag](https://github.com/bloodarea/dsh-agent-team-presets/tree/v0.1.9)
10
10
  >
11
- > Requires a compatible DeepSeek Harness deployment with Agent Teams enabled. This version supports DSH rc.2 and 0.2.1-rc.2 APIs; see [Requirements](#requirements). Prebuilt artifacts are included, so installation does not require a source build.
11
+ > This release targets **DeepSeek Harness 0.2.2-rc.1** and adds **individual member chat**: hover a Team in the composer, then select one member to run the Session as that member with its own role card, tools, Team Skills, and model route. It also moves member routing to `agent.model.select()` and per-step tool admission. Requires Agent Teams; keep 0.1.8 on older hosts. Prebuilt artifacts are included.
12
+
13
+ ### What's new in 0.1.9
14
+
15
+ - **Talk to one member directly.** The composer's Team picker now shows a member panel on hover. Selecting a member injects its role card, tool policy, Team Skills, and model route into the current Session; selecting the captain keeps the Session model unchanged.
16
+ - **DeepSeek Harness 0.2.2-rc.1.** Member routes are recorded through `agent.model.select()` and tool admission is evaluated per step. The plugin refuses an unusable member route before applying anything instead of falling back to the captain.
17
+ - **Custom tool policies are native-only.** On PTC presets the plugin preserves the deployment's executor and explicitly refuses custom allow-lists; PTC still works with the all-tools mode.
18
+ - **Built-in troubleshooting skill.** The global `agent-team-presets-troubleshooting` skill explains Team application, member creation, route evidence, Team Skill visibility, and install/upgrade failures.
12
19
 
13
20
  <a id="project-introduction"></a>
14
21
  ## Overview
@@ -42,13 +49,15 @@ DeepSeek Harness already ships Agent Teams with multi-agent collaboration. In th
42
49
 
43
50
  - **Reusable Teams:** create, duplicate, edit, select, and delete named presets.
44
51
  - **Per-member model routes:** assign models and reasoning effort to individual roles without changing the captain's model.
52
+ - **Individual member chat:** hover a Team in the composer to inspect its captain and members; select one member to inject that member's role card, tool policy, Team Skills, and model route into the current Session.
45
53
  - **Independent tool policies:** choose all available tools or a custom allow-list for the captain and each member.
46
54
  - **Nine built-in presets across two series:** three software development scale teams (Lightweight, Standard, Full-Stack) and six specialized work-mode teams (Discovery, Planning, Workflow, Engineering, Security Audit, Research).
47
55
  - **Display metadata:** attach summary, tags, use cases, quick prompts (suggested tasks), and notes per Team. Strictly presentation-only: never injected into the runtime LLM context, saving context tokens.
48
56
  - **Local categories and search:** organize presets into custom categories via a dedicated category manager; instantly search over name, summary, tags, and use cases in both Settings and the Composer picker.
49
- - **Private Team Skill library:** import skill folders or ZIP archives into a plugin-owned store (`~/.dsh/team-skills`), completely isolated from global host skills.
57
+ - **Private Team Skill library:** import skill folders or ZIP archives into a plugin-owned store (`~/.dsh/agent-team-presets/team-skills`), completely isolated from global host skills.
50
58
  - **Per-agent skill isolation:** a 3-column assignment grid on member pages assigns skills to specific roles. Assigned skills are registered **strictly in that Agent's scope** when summoned—never leaked globally.
51
59
  - **Official built-in skills & local overrides:** ships two delivery skills (`github-repository-presentation`, `git-release-hygiene`) and two method skills (`grilling`, `research`), materialized into the private library and pre-bound to engineering, discovery, and research roles. Create local editable overrides and one-click restore them to the built-in copy (`恢复为插件内置版本`).
60
+ - **Plugin-level troubleshooting skill:** installing the plugin registers the global runtime skill `agent-team-presets-troubleshooting` (not a Team Skill, not per-Agent isolated). It covers Team application, member creation, tool-policy refusals, model-route evidence, Team Skill visibility, and install/upgrade failures.
52
61
  - **Guarded deletion with blocker modal:** deleting a skill bound to any role, in use by an active member, or required as a dependency is refused, with a confirmation modal detailing every blocking holder.
53
62
  - **Dependency verification & MCP boundaries:** checks declared CLI executables against host `PATH` (flags found/missing and refuses assignment when absent) and reports declared MCP servers (declarative display; never auto-connected or hard-blocking).
54
63
  - **Agent-facing tools:** root sessions provide `list_team_skills`, `assign_team_skill`, `unassign_team_skill`, and `remove_team_skill` alongside `get_team_preset` and `update_team_preset`.
@@ -78,15 +87,33 @@ DeepSeek Harness already ships Agent Teams with multi-agent collaboration. In th
78
87
  <a id="screenshots"></a>
79
88
  ## Screenshots
80
89
 
81
- The screenshots illustrate the v0.1.7 settings interface, Team Skill management, and composer workflow. Example provider and model names depend on your deployment.
90
+ The first screenshots show the 0.1.9 composer with individual member chat. The rest illustrate the settings interface, Team Skill management, and the earlier composer flow. Every provider, model, Team, and member name below is placeholder data from an isolated demo profile, not a real deployment.
82
91
 
83
- **Manage Teams: tabs, search, source and series filters**
92
+ **Browse and filter Teams in the composer**
84
93
 
85
- ![Team list in Settings](<docs/shots/teams-list.png>)
94
+ ![Composer Team picker](<docs/shots/0.2-composer-team-picker.png>)
95
+
96
+ **Hover a Team to open its member panel: captain, members, model route, and description**
97
+
98
+ ![Composer Team picker with the member panel](<docs/shots/0.2-composer-member-panel.png>)
99
+
100
+ Hovering a row never changes the selection. The captain row carries the `captain` badge and `session model`; each member row shows its own provider and model, or `session model` when it follows the Session.
101
+
102
+ **Click a member to talk to it alone: the trigger names it and the Session model follows its route**
103
+
104
+ ![Talking to one member in the composer](<docs/shots/0.2-composer-member-selected.png>)
105
+
106
+ The member's role card, tool policy, Team Skills, and model route are injected into this Session. The Team trigger reads `Team · member`, and the model control switches to the member's configured route — `Example Fast` here.
107
+
108
+ **Click the captain to select the Team normally: the Session model is left alone**
109
+
110
+ ![Selecting a captain in the composer](<docs/shots/0.2-composer-captain-selected.png>)
111
+
112
+ The captain always follows the Session, so selecting it changes the Team and the role card but never the model. The chip above keeps `Example Fast` from the previous member selection.
86
113
 
87
- **Choose a Team in the composer with search and source filters**
114
+ **Manage Teams: tabs, search, source and series filters (settings layout carried over from v0.1.8)**
88
115
 
89
- ![Composer Team picker](<docs/shots/composer-picker.png>)
116
+ ![Team list in Settings](<docs/shots/teams-list.png>)
90
117
 
91
118
  **Private Team Skill library with origin badges and actions**
92
119
 
@@ -148,12 +175,13 @@ The screenshots illustrate the v0.1.7 settings interface, Team Skill management,
148
175
  <a id="requirements"></a>
149
176
  ## Requirements
150
177
 
151
- - **DeepSeek Harness with the required rc.2 APIs.** Supported versions: `>=0.2.0-rc.2 <0.3.0`. The plugin manager enforces the declared `engines.dsh` range and refuses to install or activate the plugin outside it; the `@deepseek-ai/dsh-*` peer ranges serve package managers and are ignored by that check. This release was verified against **`0.2.1-rc.2`**; `0.2.0-rc.2` was not re-run for 0.1.7. See [package.json](<package.json>).
178
+ - **DeepSeek Harness `>=0.2.2-rc.1 <0.3.0`.** Verified against **`0.2.2-rc.1`**. 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>).
179
+ - **Custom tool allow-lists require a native Agent preset (standard or cordis).** This Host cannot restore an inherited executor after a temporary override, so the plugin preserves the deployment's executor and explicitly refuses custom policies on PTC. PTC remains available with the all-tools mode. Select a native Agent preset before using custom policies.
152
180
  - **Agent Teams enabled in the target profile.** The standard integration is `@deepseek-ai/dsh-experimental-agent-team-profile`, which supplies the Team service, tools, and Web roster. This plugin configures and manages Teams; it does not replace that subsystem.
153
181
  - **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.
154
182
  - **Durable storage and a continuable subagent backend for member execution.** Member creation is refused if the storage domain or selected execution backend is unavailable. The default backend names are `spawn` and `fork`.
155
183
 
156
- The plugin version (`0.1.7`) and the Harness version (`0.2.1-rc.2`, for example) are separate version lines.
184
+ The plugin version (`0.1.9`) and the Harness version (`0.2.2-rc.1`, for example) are separate version lines.
157
185
 
158
186
  <a id="use-this-package"></a>
159
187
  ## Install and upgrade
@@ -163,13 +191,15 @@ The plugin version (`0.1.7`) and the Harness version (`0.2.1-rc.2`, for example)
163
191
  Open **Global panels → Plugins → Add plugin**, paste the line below into **Package name or address**, and click **Install**:
164
192
 
165
193
  ```text
166
- dsh-agent-team-presets@0.1.7
194
+ github:bloodarea/dsh-agent-team-presets#v0.1.9
167
195
  ```
168
196
 
169
197
  <!-- release-version: keep in sync with package.json version -->
170
198
 
199
+ 0.1.9 is currently distributed from the GitHub tag. npm still publishes 0.1.8; use the npm channel below once 0.1.9 is published there.
200
+
171
201
  - **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.
172
- - `@0.1.7` pins the version; omit it to install the latest published package.
202
+ - `#v0.1.9` pins the GitHub tag; `@0.1.9` works on npm after the next npm publish. Omit the pin to install the latest published package.
173
203
  - The field accepts package names, `name@version`, `github:owner/repo`, tarball URLs, or absolute filesystem paths.
174
204
  - 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.
175
205
  - 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.
@@ -189,15 +219,15 @@ Replace `<profile>` with your active profile (e.g. `web` or `desktop`):
189
219
  dsh plugin --profile web add github:bloodarea/dsh-agent-team-presets
190
220
  ```
191
221
 
192
- To pin the v0.1.7 release tag:
222
+ To pin the v0.1.9 release tag:
193
223
 
194
224
  ```sh
195
- dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.1.7
225
+ dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.1.9
196
226
  ```
197
227
 
198
228
  ### npm release channel
199
229
 
200
- GitHub and [npm](https://www.npmjs.com/package/dsh-agent-team-presets) are separate release channels. Verify the published version on npm before installing:
230
+ GitHub and [npm](https://www.npmjs.com/package/dsh-agent-team-presets) are separate release channels. npm currently publishes 0.1.8; 0.1.9 is available from the GitHub tag until the npm publish follows. Verify the published version before installing:
201
231
 
202
232
  ```sh
203
233
  npm view dsh-agent-team-presets version
@@ -206,7 +236,7 @@ dsh plugin --profile <profile> add dsh-agent-team-presets
206
236
 
207
237
  ### Verify and upgrade safely
208
238
 
209
- 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`, version `0.1.7`, and a running component.
239
+ 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`, version `0.1.9`, and a running component.
210
240
 
211
241
  - Back up profile settings, Team definitions, and Session selections before upgrading.
212
242
  - When migrating from a development link, remove `@deepseek-ai/dsh-experimental-agent-team-presets` first before enabling the community package.
@@ -232,6 +262,15 @@ A preset role is a template. Summoning creates an instance with a unique target
232
262
 
233
263
  Selecting **No team** disarms the Team application once the captain and teammates become idle, restoring standard session contributions without changing the active model.
234
264
 
265
+ ### Talk to one member directly
266
+
267
+ Hover a Team row in the composer picker to open its member panel. The captain is listed first with the **Session model** route; every member follows with its configured provider · model and role description.
268
+
269
+ - Selecting the **captain** applies the Team normally: the captain leads, may summon members, and keeps the model the Session already selected.
270
+ - Selecting a **member** starts an individual conversation with that member. Its role card (name, role description, and standing system prompt) becomes the Session persona, its tool policy and assigned Team Skills apply, and the captain briefing plus `spawn_team_member` are **not** installed. The Session model switches to that member's configured provider/model and reasoning effort. A member with no configured route keeps the Session's current model.
271
+ - Switching back to the captain does not restore an earlier model: the captain always follows whatever model the Session currently has selected.
272
+ - Role and model changes wait for a running task to reach its boundary, exactly like a Team change. A selection naming a member that no longer exists is refused and the Session stays locked rather than silently falling back to the captain.
273
+
235
274
  ### Fields
236
275
 
237
276
  | Field | Purpose |
@@ -306,7 +345,7 @@ Each Team preset supports rich metadata:
306
345
 
307
346
  Traditional skills in Harness are typically registered into the global environment, exposing every skill to every agent. This plugin introduces a **Private Team Skill subsystem**:
308
347
 
309
- 1. **Private library:** Skills live in a plugin-managed directory (`~/.dsh/team-skills` or storage domain), isolated from host and profile skills.
348
+ 1. **Private library:** Skills live in a plugin-managed directory (`~/.dsh/agent-team-presets/team-skills` or storage domain), isolated from host and profile skills.
310
349
  2. **Per-Agent registration:** When a Team member is summoned, its assigned skills are registered **exclusively inside that member's Agent scope**. Other members and the captain cannot see or invoke them unless explicitly assigned.
311
350
  3. **Official built-in skills:** four shipped skills: delivery (`github-repository-presentation`, `git-release-hygiene`) and method (`grilling` — clarify before acting; `research` — primary sources only). Default bindings: engineering `executor`/`repository-specialist` receive the delivery skills; the Discovery captain receives `grilling`, its `technical-scout`/`product-scout` and the Research `evidence-scout` receive `research`.
312
351
  4. **Local overrides & one-click restore:** Built-in skills are read-only by default. Users can create an editable local copy ("本地副本"). If the built-in skill updates in a new plugin version, an `updateAvailable` status is displayed, and users can restore to the built-in copy (`恢复为插件内置版本`) with one click.
@@ -320,7 +359,7 @@ Traditional skills in Harness are typically registered into the global environme
320
359
  - **Folder and ZIP import:** Import external skill folders or `.zip` packages directly in the Web GUI.
321
360
  - **Directory scan:** Scans candidate folders in the import path, reporting eligibility and reasons for any rejected folder. Users can copy the absolute library path with one click.
322
361
  - **Dependency checks and MCP boundaries:**
323
- - **CLI executables:** Declared CLI executables in `SKILL.md` are resolved against host `PATH`. Missing required executables are flagged and assignment is refused (`dependency-missing`).
362
+ - **CLI executables:** Declared CLI executables in `SKILL.md` are resolved against host `PATH`, using `PATHEXT` on Windows. Directories and non-executable files do not satisfy the dependency. Missing required executables are flagged and assignment is refused (`dependency-missing`).
324
363
  - **MCP servers (declarative only, not auto-connected):** Declared MCP servers are strictly declarative dependencies displayed in the UI (`skillsDeclared`). The plugin **never connects, launches, or manages** external MCP servers automatically (their lifecycle belongs to the Harness environment and profile). Because MCP connectivity is an environment-level fact, declared MCP servers are reported as `unverified` rather than hard-blocking role assignment. When an MCP server is configured and running in the Harness profile, its exposed tools (`mcp__<server>__<name>`) appear under the MCP tool group in the role's tool configuration and can be authorized via tool policies.
325
364
  - **Guarded deletion:** Deletion is strongly guarded. If a skill is currently bound to any team role, used by a running member, or required by another skill, deletion is blocked. The confirmation dialog explicitly lists every holding team and member role (e.g. `标准研发团队 → executor`), keeping the confirm button disabled until bindings are cleared.
326
365
 
@@ -359,6 +398,19 @@ Root sessions register tools allowing agents to inspect and update presets and s
359
398
  - **Default: all tools**: No allow-list restriction beyond deployment permissions and role rules.
360
399
  - **Custom allowed tools**: Permits only selected tool names. Coordination tools (`send_message`, `list_agents`, `team_task_*`) must be explicitly allowed if needed.
361
400
  - Captain and member policies are independent. Granting a tool to the captain does not grant it to members.
401
+ - **The `skill` tool is always admitted, and is not offered as a choice.** It publishes the catalog and loads instruction text rather than granting a capability, and the Host withholds that whole catalog from an Agent that cannot see it. A custom allow-list therefore cannot remove it, and the settings page does not list it: a checkbox for it would be a control that can never do anything. Documents written by an earlier version that still name it keep loading unchanged — the entry is admitted implicitly, never reported as unavailable, and never needs removing.
402
+
403
+ ### What a member's first turn guarantees
404
+
405
+ An assigned Team Skill is only useful if the member can load it on the turn that asks for it, so the plugin makes the registration part of member creation rather than a background step:
406
+
407
+ - **Members**: the creation edge awaits that Agent's own registration before it completes. A role that holds assigned Team Skills but whose deployment cannot publish them — no skill service composed, the private library unreadable, or the registration refused — is **refused at creation** with the reason, instead of starting with an empty catalog while every surface says the skill is bound. Roles with no assignment keep working on deployments that compose no skill service.
408
+ - **The captain**: the same registration is performed inside the Session's creation edge, after the Team application it depends on. A captain whose assignment cannot be published does not refuse the Team — a Session that is already running must not lose its capability policy — and the failure is reported at the Agent identity.
409
+ - **Unreadable library is not an empty library.** When the private store cannot be opened the plugin cannot even enumerate a role's bindings, so it refuses member creation rather than reading the unknown as "no assignment". Repair the library path (or start again) to recover.
410
+
411
+ ### Known limitation: Windows verification
412
+
413
+ The path-separator and executable-resolution fixes are exercised by unit tests that normalize separators and by `ENOTDIR` cases, but no Windows machine was available here. Junction handling across volumes, `PATHEXT` resolution against a real `PATH`, and the full native build chain still need a Windows run before the release is described as Windows-verified.
362
414
 
363
415
  ### Security boundaries
364
416
 
@@ -380,6 +432,10 @@ Configuration for "agent-team-presets" is overridden by a home patch or command-
380
432
 
381
433
  Check profile patches, `$DSH_HOME/cordis.patch.yml`, and `--patch` overlays for duplicate hand-written `agent-team-presets` declarations. Remove duplicate declarations while preserving Host-managed settings rows.
382
434
 
435
+ ### Built-in troubleshooting skill
436
+
437
+ The plugin registers `agent-team-presets-troubleshooting` on the global skill layer as soon as the profile composes the skill service. It is a host-level skill, not part of the private Team Skill library and not isolated per Agent: every Session can load it with the `skill` tool. Use it when a Team does not apply, a member cannot be summoned, a tool is refused, a member's model route is questioned, a Team Skill is invisible, or an install/upgrade behaves unexpectedly. The guide also states the evidence order: `configuredRoute`, `model/selection`, `request/header.config`, and the member snapshot `route` outrank `subagent/descriptor` or roster display values.
438
+
383
439
  ### Common issues
384
440
 
385
441
  | Symptom | What to check |
@@ -388,7 +444,8 @@ Check profile patches, `$DSH_HOME/cordis.patch.yml`, and `--patch` overlays for
388
444
  | Skill deletion button is disabled | The skill is protected: inspect the blocker list in the modal (bound roles or dependencies must be unassigned first). |
389
445
  | Skill assignment refused (`dependency-missing`) | A required executable declared by the skill is absent from host `PATH`. Note that declared MCP servers are reported for visibility and do not block assignment; ensure MCP servers are configured in your profile. |
390
446
  | Member creation refused | Check storage domain availability, subagent execution backend (`spawn`/`fork`), model quota, and concurrency limits. |
391
- | Model route display mismatch | In Harness rc.2, `list_agents.model` reports fallback metadata. Verify actual routing via `spawn_team_member`'s `configuredRoute` or session `request/header` logs. |
447
+ | Model route display mismatch | `list_agents.model` can return an inherited or fallback model even when the member actually runs on its configured route. Verify actual routing via `spawn_team_member`'s `configuredRoute`, `model/selection`, the first `request/header.config`, and the member snapshot `route`. |
448
+ | A selected member's route is unusable | The Host refuses the application and keeps the Session's previous composition and model instead of falling back to the captain. Correct that member's provider/model (and reasoning effort) in **Settings → Agent team presets**, then reselect it. The composer reports missing members but does not display a Host refusal; check the member route and the deployment's provider catalogue. |
392
449
 
393
450
  <a id="understand-the-implementation"></a>
394
451
  ## How it works
@@ -396,9 +453,9 @@ Check profile patches, `$DSH_HOME/cordis.patch.yml`, and `--patch` overlays for
396
453
  The plugin integrates via Cordis and Harness lifecycle extension points without patching host source code:
397
454
 
398
455
  1. **Profile configuration:** Stores Team presets, display metadata, local categories, and active session selections.
399
- 2. **Session application:** Installs captain persona, tool policy, and `spawn_team_member` at Agent scope.
456
+ 2. **Session application:** Installs the captain persona, tool policy, and `spawn_team_member` at Agent scope. Selecting one member instead installs that member's role card and tool policy, omits the captain briefing and member tool, and selects the member's configured model route on the Session.
400
457
  3. **Member creation & skill scoping:** Validates route and delegation limits, persists an instance snapshot, and launches the subagent. The serial `agent/created` hook injects model selection, persona, tool filters, and **assigned Team Skills strictly into that member's Agent scope**.
401
- 4. **Private skill manager:** Encapsulates skill storage (`~/.dsh/team-skills`), crash-recovery journaling, dependency resolution, and guarded deletion.
458
+ 4. **Private skill manager:** Encapsulates skill storage (`~/.dsh/agent-team-presets/team-skills`), crash-recovery journaling, dependency resolution, and guarded deletion.
402
459
 
403
460
  ### Source navigation
404
461
 
@@ -416,7 +473,7 @@ The plugin integrates via Cordis and Harness lifecycle extension points without
416
473
  <a id="development"></a>
417
474
  ## Development and contributing
418
475
 
419
- Source development requires a compatible, dependency-installed [Harness checkout](https://github.com/deepseek-ai/deepseek-harness):
476
+ 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):
420
477
 
421
478
  ```sh
422
479
  export DSH_CHECKOUT=/absolute/path/to/deepseek-harness
package/README.zh.md CHANGED
@@ -6,9 +6,16 @@
6
6
 
7
7
  [English](<README.md>) | 中文
8
8
 
9
- > **社区插件 v0.1.7** · [发布版本](https://github.com/bloodarea/dsh-agent-team-presets/releases/tag/v0.1.7)
9
+ > **社区插件 v0.1.9** · [标签](https://github.com/bloodarea/dsh-agent-team-presets/tree/v0.1.9)
10
10
  >
11
- > 需要启用 Agent Teams 的兼容 DeepSeek Harness 部署。本版本支持 DSH rc.2 与 0.2.1-rc.2 API,详见[环境要求](#requirements)。仓库已包含预构建产物,安装时无需从源码构建。
11
+ > 本版适配 **DeepSeek Harness 0.2.2-rc.1**,新增**与单个成员单独对话**:在输入区悬浮团队后点选成员,即可让当前会话以该成员的角色卡、工具权限、Team Skill 与模型路由运行。成员路由改用 `agent.model.select()`,工具激活按步评估。需要启用 Agent Teams;旧宿主请保留 0.1.8。仓库包含预构建产物,安装时无需构建。
12
+
13
+ ### 0.1.9 更新内容
14
+
15
+ - **与单个成员单独对话。** 输入区的团队选择器在悬浮时展开成员面板;点选成员会把该成员的角色卡、工具策略、Team Skill 与模型路由注入当前会话;点选队长则保持会话模型不变。
16
+ - **适配 DeepSeek Harness 0.2.2-rc.1。** 成员路由通过 `agent.model.select()` 写入,工具激活按步评估;成员路由不可用时在应用前明确拒绝,不会回退到队长。
17
+ - **自定义工具策略仅支持原生 Agent 预设。** PTC 下插件保留宿主执行器并明确拒绝自定义白名单;PTC 配合「所有工具」模式仍可继续使用。
18
+ - **内置排障 Skill。** 全局 `agent-team-presets-troubleshooting` 覆盖团队应用、成员创建、路由证据、Team Skill 可见性与安装/升级异常。
12
19
 
13
20
  <a id="project-introduction"></a>
14
21
  ## 项目介绍
@@ -42,13 +49,15 @@ DeepSeek Harness 原生 Agent Teams 已经具备多智能体协作能力。在
42
49
 
43
50
  - **复用团队:** 新建、复制、编辑、选择和删除具名预设。
44
51
  - **成员独立路由:** 按角色分配模型与推理强度,不改变队长的模型。
52
+ - **单独对话:** 在输入区悬浮团队即可查看队长与队员;选择某个队员,可把该成员的角色卡、工具策略、Team Skill 与模型路由注入当前会话。
45
53
  - **独立工具策略:** 为队长和各成员选择所有可用工具,或设置自定义白名单。
46
54
  - **两大系列九大内置预设:** 涵盖研发规模系列(轻量研发团队、标准研发团队、全栈软件研发团队)与工作模式系列(需求探索、架构规划、既定工作流执行、工程研发协作、独立代码与安全审计、科研协作)。
47
55
  - **展示元数据:** 可为团队填写简介、标签、适用场景、推荐任务与备注。纯前端展示与检索使用,**绝不注入 LLM 运行时上下文**,节省上下文 Token。
48
56
  - **本地分类与检索:** 独立分类管理页支持创建、重命名、排序和删除自定义分类;支持按团队来源(全部/插件内置/自定义)与分类系列二级联动筛选,并在输入区与设置页实时全文搜索。
49
- - **插件私有 Team Skill 库:** 支持从文件夹或 ZIP 导入技能至插件私有目录(`~/.dsh/team-skills`),与宿主全局技能完全隔离。
57
+ - **插件私有 Team Skill 库:** 支持从文件夹或 ZIP 导入技能至插件私有目录(`~/.dsh/agent-team-presets/team-skills`),与宿主全局技能完全隔离。
50
58
  - **角色作用域技能隔离:** 成员编辑页提供专属技能三列卡片网格,分配给角色的技能在召唤时**严格仅在该 Agent 作用域内注册**,其他成员与队长均不可见。
51
59
  - **官方内置技能与本地副本:** 随包自带两个交付技能(`github-repository-presentation`、`git-release-hygiene`)和两个方法技能(`grilling`、`research`),默认物化入库并绑定给工程、需求探索与科研角色;支持创建本地可编辑副本,支持一键「恢复为插件内置版本」,并在官方更新时显示新版本提示。
60
+ - **插件级排障 Skill:** 安装插件后会在全局 skill 层注册 `agent-team-presets-troubleshooting`(不是 Team Skill,也不按 Agent 隔离)。覆盖团队不生效、成员无法召唤、工具策略被拒、模型路由取证、Team Skill 不可见以及安装/升级异常。
52
61
  - **强阻断保护的删除机制:** 若技能仍被任一团队角色绑定、被运行中成员使用或被其它技能依赖,拒绝删除;模态弹窗直观列出所有持有者(如 `标准研发团队 → executor`)并禁用确认按钮。
53
62
  - **依赖真实性检查与 MCP 边界:** 技能声明的 CLI 可执行程序会在宿主 PATH 上实际解析并标注「存在/缺失」(缺失时拒绝分配);如实展示声明的 MCP 服务(声明式展示,不自动拉起连接,不阻断分配)。
54
63
  - **面向智能体的会话工具:** 根会话提供 `list_team_skills`、`assign_team_skill`、`unassign_team_skill`、`remove_team_skill`,以及 `get_team_preset`、`update_team_preset`。
@@ -78,15 +87,33 @@ DeepSeek Harness 原生 Agent Teams 已经具备多智能体协作能力。在
78
87
  <a id="screenshots"></a>
79
88
  ## 界面预览
80
89
 
81
- 以下截图展示 v0.1.7 设置页团队管理、私有技能库与输入区选用流程。模型与工具取决于你的实际部署。
90
+ 前几张截图展示 0.1.9 输入区与「与单个成员单独对话」;其余展示设置页团队管理、私有技能库与早期输入区流程。图中所有提供方、模型、团队与成员名称都来自隔离演示环境的占位数据,不是真实部署。
82
91
 
83
- **管理已保存的团队:标签页、搜索框、来源与系列筛选**
92
+ **在输入区浏览与筛选团队**
84
93
 
85
- ![设置中的团队列表](<docs/shots/teams-list.png>)
94
+ ![会话输入区的团队选择器](<docs/shots/0.2-composer-team-picker.png>)
95
+
96
+ **悬浮团队即可展开成员面板:队长、成员、模型路由与角色描述**
97
+
98
+ ![会话输入区的团队选择器与成员面板](<docs/shots/0.2-composer-member-panel.png>)
99
+
100
+ 悬浮不会改变当前选择。队长一行带「队长」徽标并显示「会话模型」;每个成员一行显示自己的提供方与模型,未配置路由时显示「会话模型」。
101
+
102
+ **点击成员即与其单独对话:触发器标出成员,会话模型改为该成员路由**
103
+
104
+ ![在输入区与单个成员单独对话](<docs/shots/0.2-composer-member-selected.png>)
105
+
106
+ 该成员的角色卡、工具权限、Team Skill 与模型路由会注入本会话。触发器显示「团队 · 成员」,模型控件切换为该成员配置的路由(图中为 `Example Fast`)。
107
+
108
+ **点击队长则按常规方式选用团队:不改动会话模型**
109
+
110
+ ![在输入区选择队长](<docs/shots/0.2-composer-captain-selected.png>)
111
+
112
+ 队长始终跟随会话,因此点选队长只更换团队与角色卡,模型保持不变:上图仍保留上一次成员选择带来的 `Example Fast`。
86
113
 
87
- **在会话输入区选择团队:支持搜索与来源筛选**
114
+ **管理已保存的团队:标签页、搜索框、来源与系列筛选(设置页沿用 v0.1.8 版式)**
88
115
 
89
- ![会话输入区的团队选择器](<docs/shots/composer-picker.png>)
116
+ ![设置中的团队列表](<docs/shots/teams-list.png>)
90
117
 
91
118
  **私有 Team Skill 技能库:来源色标与操作入口**
92
119
 
@@ -148,12 +175,13 @@ DeepSeek Harness 原生 Agent Teams 已经具备多智能体协作能力。在
148
175
  <a id="requirements"></a>
149
176
  ## 环境要求
150
177
 
151
- - **具备所需 rc.2 API 的 DeepSeek Harness。** 支持版本:`>=0.2.0-rc.2 <0.3.0`。插件管理器按声明的 `engines.dsh` 范围判定,超出即拒绝安装或激活;`@deepseek-ai/dsh-*` 的 peer 范围供包管理器使用,该判定不读取它们。本版本实测环境为 **`0.2.1-rc.2`**;0.1.7 未在 `0.2.0-rc.2` 上复验。详见 [package.json](<package.json>)。
178
+ - **DeepSeek Harness `>=0.2.2-rc.1 <0.3.0`。** 本次实测版本为 **`0.2.2-rc.1`**。成员路由通过 `agent.model.select()` 写入各自会话,fresh、fork 与冷恢复均使用成员自己的配置;队长使用当前会话选择。插件管理器按 [package.json](<package.json>) 的 `engines.dsh` 判定兼容性。
179
+ - **自定义工具白名单使用原生工具 Agent 预设(standard 或 cordis)。** 当前宿主无法在临时覆盖执行器后恢复继承的执行器,因此插件保留宿主执行器;PTC 下的自定义策略会明确拒绝。PTC 配合「所有工具」模式可继续使用;选择自定义策略前请先切换到原生工具预设。
152
180
  - **目标 profile 已启用 Agent Teams。** 标准集成是 `@deepseek-ai/dsh-experimental-agent-team-profile`,提供团队服务、工具和 Web 名册。本插件负责配置与管理团队,不替代该子系统。
153
181
  - **具备 Settings 与所需客户端服务的 Web 或 Desktop profile。** 安装到实际使用的 profile:Web GUI 通常为 `web`,Desktop 通常为 `desktop`。
154
182
  - **成员执行所需的持久存储与支持恢复执行的子智能体后端。** 缺少 storage domain 或所选执行后端时,插件会拒绝创建成员。默认后端名为 `spawn` 和 `fork`。
155
183
 
156
- 插件版本(`0.1.7`)和 Harness 版本(如 `0.2.1-rc.2`)是不同的版本线。
184
+ 插件版本(`0.1.9`)和 Harness 版本(如 `0.2.2-rc.1`)是不同的版本线。
157
185
 
158
186
  <a id="use-this-package"></a>
159
187
  ## 安装与升级
@@ -163,13 +191,15 @@ DeepSeek Harness 原生 Agent Teams 已经具备多智能体协作能力。在
163
191
  打开 **全局面板 → 插件 → 添加插件**,把下面这一行粘贴到「包名或地址」,点击 **安装**:
164
192
 
165
193
  ```text
166
- dsh-agent-team-presets@0.1.7
194
+ github:bloodarea/dsh-agent-team-presets#v0.1.9
167
195
  ```
168
196
 
169
197
  <!-- release-version: 与 package.json 的 version 同步 -->
170
198
 
199
+ 0.1.9 目前从 GitHub 标签分发;npm 仍为 0.1.8,待下一次 npm 发布后再使用下方 npm 渠道。
200
+
171
201
  - **安装源**决定从哪个 npm 源下载。「默认安装源」指 pnpm 自身配置所指的源。要绕开镜像选「npm 官方源」;要换内网私有源或云厂商镜像选「自定义地址」。
172
- - `@0.1.7` 指定版本;想装 npm 上最新的已发布版本,去掉它只填 `dsh-agent-team-presets`。
202
+ - `#v0.1.9` 指定 GitHub 标签;npm 发布 0.1.9 后也可用 `@0.1.9`。想装 npm 上最新的已发布版本,去掉版本只填 `dsh-agent-team-presets`。
173
203
  - 输入框支持包名、`name@version`、`github:作者/仓库`、tarball 地址或本地绝对路径。
174
204
  - 本包声明了自己的 `dsh.bundle`,安装后由插件管理器登记为 profile 的 bundle 层,不要再手写 loader 条目。
175
205
  - 已安装本包时无法重复安装同一包名。要更换安装来源(如由 GitHub 改为 npm),先在插件列表中卸载,再粘贴新规格安装。
@@ -189,10 +219,10 @@ dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets
189
219
  dsh plugin --profile web add github:bloodarea/dsh-agent-team-presets
190
220
  ```
191
221
 
192
- 需要固定 v0.1.7 发布标签时:
222
+ 需要固定 v0.1.9 发布标签时:
193
223
 
194
224
  ```sh
195
- dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.1.7
225
+ dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.1.9
196
226
  ```
197
227
 
198
228
  ### npm 发布渠道
@@ -206,7 +236,7 @@ dsh plugin --profile <profile> add dsh-agent-team-presets
206
236
 
207
237
  ### 确认安装并安全升级
208
238
 
209
- 安装成功后,按插件管理器的提示重新加载或重启,打开 **设置 → 智能体团队预设**。确认插件详情显示 `dsh-agent-team-presets`、版本 `0.1.7`,且组件处于运行中状态。
239
+ 安装成功后,按插件管理器的提示重新加载或重启,打开 **设置 → 智能体团队预设**。确认插件详情显示 `dsh-agent-team-presets`、版本 `0.1.9`,且组件处于运行中状态。
210
240
 
211
241
  - 升级前备份 profile 设置、团队定义与会话选择记录。
212
242
  - 从开发链接迁移时,先通过插件管理器移除 `@deepseek-ai/dsh-experimental-agent-team-presets`,再启用社区包。
@@ -232,6 +262,15 @@ dsh plugin --profile <profile> add dsh-agent-team-presets
232
262
 
233
263
  选择 **不使用团队(No team)** 会在队长与队员全部空闲后卸载团队应用,恢复常规会话行为,不改变已选模型。
234
264
 
265
+ ### 与单个成员单独对话
266
+
267
+ 在输入区团队选择器中悬浮某个团队,会展开成员面板:队长排在最前,模型一栏显示 **会话模型**;其后是各队员的「提供方 · 模型」与角色描述。
268
+
269
+ - 选择 **队长** 即常规应用该团队:队长主导本会话、可召唤队员,并继续使用会话已选的模型。
270
+ - 选择 **队员** 即与该成员单独对话:该成员的角色卡(名称、角色描述、独立系统提示词)成为本会话 persona,其工具策略与已分配的 Team Skill 生效,不再安装队长简报与 `spawn_team_member`;同时会话模型自动切换为该成员配置的提供方/模型与推理强度。未配置路由的成员保持会话当前模型。
271
+ - 再切回队长不会恢复旧模型:队长始终跟随会话当前所选模型。
272
+ - 角色与模型的切换和团队切换一样,会等待运行中的任务到达边界;若所选成员已被删除,则拒绝该选择并保持会话锁定,绝不静默回退到队长。
273
+
235
274
  ### 字段说明
236
275
 
237
276
  | 字段 | 用途 |
@@ -306,7 +345,7 @@ dsh plugin --profile <profile> add dsh-agent-team-presets
306
345
 
307
346
  传统 Harness 技能一般注册到全局环境,所有智能体均可看到。本插件开创性地实现了 **Team Skill 私有技能子系统**:
308
347
 
309
- 1. **私有存储库:** 技能统一存放在插件专属目录(`~/.dsh/team-skills` 或独立存储域),不污染宿主全局技能列表。
348
+ 1. **私有存储库:** 技能统一存放在插件专属目录(`~/.dsh/agent-team-presets/team-skills` 或独立存储域),不污染宿主全局技能列表。
310
349
  2. **角色 Agent 作用域隔离:** 成员被队长召唤时,其绑定的专属技能**严格仅在该成员的 Agent Scope 内注册**。其他队员和队长既无法看到、也无法调用该技能。
311
350
  3. **官方内置技能:** 随包提供 4 个内置技能——交付型 `github-repository-presentation`、`git-release-hygiene`,方法型 `grilling`(先澄清再动手)与 `research`(只认一手来源)。默认绑定:工程团队的 `executor`/`repository-specialist` 获得交付技能;需求探索队长获得 `grilling`,其 `technical-scout`/`product-scout` 与科研协作 `evidence-scout` 获得 `research`。
312
351
  4. **本地副本与一键恢复:** 内置技能默认只读,支持一键「创建本地可编辑副本」修改文件。插件版本升级时会自动提示 `updateAvailable`,支持随时「恢复为插件内置版本」。
@@ -320,7 +359,7 @@ dsh plugin --profile <profile> add dsh-agent-team-presets
320
359
  - **文件夹与 ZIP 导入:** 支持在前端直接导入外部技能文件夹或 `.zip` 压缩包。
321
360
  - **目录扫描检测:** 扫描导入目录下的子文件夹,逐个检查有效性并给出拒绝原因;支持一键复制私有库绝对路径。
322
361
  - **依赖检查与 MCP 边界:**
323
- - **CLI 可执行程序:** 自动检查 `SKILL.md` 中声明的命令行工具是否在宿主 `PATH` 上存在,缺失时标记并在分配时阻断(`dependency-missing`)。
362
+ - **CLI 可执行程序:** 按宿主 `PATH` 查找 `SKILL.md` 声明的命令行工具,Windows 同时遵循 `PATHEXT`;目录和不可执行文件不能满足依赖。缺失时标记并在分配时阻断(`dependency-missing`)。
324
363
  - **MCP 服务边界(声明式展示,不自动拉起):** 技能声明的 MCP 服务仅作依赖声明与信息展示,插件**不会自动拉起、配置或连接**外部 MCP 服务(MCP 服务的生命周期由宿主环境与 Profile 决定)。由于 MCP 服务连接状态属于宿主环境级事实,插件将其如实标记为 `unverified`(未核实)进行提示,而不会在私有库层强行阻断角色分配。若宿主环境中已接入相应 MCP 服务,其提供的工具将在成员工具配置的 MCP 分组下可见并可通过工具策略勾选授权。
325
364
  - **强阻断保护的删除:** 技能只要被任何团队角色分配、被活跃成员占用或被其它技能依赖,删除即被强阻断。删除弹窗会完整列出所有阻断持有者(如 `标准研发团队 → executor`),此时确认删除按钮强制置灰禁用。
326
365
 
@@ -359,6 +398,19 @@ dsh plugin --profile <profile> add dsh-agent-team-presets
359
398
  - **默认所有工具**:不增加额外白名单限制。
360
399
  - **自定义可用工具**:仅允许选中的工具。协作工具(`send_message`、`list_agents`、`team_task_*`)如需使用必须显式勾选。
361
400
  - 队长与成员策略完全独立。
401
+ - **`skill` 工具始终放行,且不作为可选项呈现。** 它只负责发布技能目录并加载指令文本,不授予能力;而宿主会把整个目录从看不到该工具的角色那里收起。因此自定义白名单无法移除它,设置页也不再列出它——一个永远不会生效的勾选框只会误导使用者。旧版本写入、仍包含该项的配置照常加载:该名字被隐式放行,不会被提示为"不可用",也不需要手动删除。
402
+
403
+ ### 成员首轮能保证什么
404
+
405
+ 已分配的 Team Skill 只有在成员真正发问的那一轮能被加载才有意义,因此插件把注册放进成员创建流程,而不是留给后台:
406
+
407
+ - **成员**:创建边会等待该 Agent 自己的注册完成后才结束。角色持有已分配的 Team Skill、但本次部署无法发布它时(未组合技能服务、私有库不可读、注册被拒),创建会被**明确拒绝**并给出原因,而不是在空目录下启动、让所有界面仍显示"已分配"。没有任何分配的角色,在未组合技能服务的部署上照常创建。
408
+ - **队长**:同一注册在 Session 创建边、依赖的 Team 应用之后完成。队长分配发布失败不会拒队——已在运行的 Session 不能因此失去能力策略——失败会以该 Agent 身份被报告出来。
409
+ - **"库不可读"不等于"库为空"。** 私有库打不开时,插件无法枚举任何角色的绑定,因此按"不可知"拒绝成员创建,而不是把未知当成"没有分配"。修复库路径(或重新开始)即可恢复。
410
+
411
+ ### 已知限制:Windows 验证
412
+
413
+ 路径分隔符与可执行文件解析的修复由归一化分隔符的单元测试和 `ENOTDIR` 用例覆盖,但本次没有可用的 Windows 机器。跨盘符 junction、真实 `PATH` 上的 `PATHEXT` 解析以及完整原生构建链仍需在 Windows 上跑一遍,才能称该版本"已通过 Windows 验证"。
362
414
 
363
415
  ### 安全边界
364
416
 
@@ -380,6 +432,10 @@ Configuration for "agent-team-presets" is overridden by a home patch or command-
380
432
 
381
433
  请检查 profile patch、`$DSH_HOME/cordis.patch.yml` 和 `--patch` 中是否有重复的手写 `agent-team-presets` 声明。移除重复项并保留 Host 管理的设置行。
382
434
 
435
+ ### 插件内置排障 Skill
436
+
437
+ 插件在 profile 组合出 skill 服务后,会在全局 skill 层注册 `agent-team-presets-troubleshooting`。它是宿主级 skill,不属于私有 Team Skill 库,也不按 Agent 隔离;所有会话都可以通过 `skill` 工具加载。适用于团队不生效、成员无法召唤、工具被拒、成员模型路由存疑、Team Skill 不可见或安装/升级异常。该 Skill 也写明了证据优先级:`configuredRoute`、`model/selection`、`request/header.config` 和成员快照 `route` 高于 `subagent/descriptor` 或名册展示值。
438
+
383
439
  ### 常见问题
384
440
 
385
441
  | 现象 | 排查方向 |
@@ -388,7 +444,8 @@ Configuration for "agent-team-presets" is overridden by a home patch or command-
388
444
  | 技能删除按钮置灰不可点击 | 技能受保护:查看弹窗中的阻断列表,需先在对应团队角色中取消分配。 |
389
445
  | 技能分配被拒绝 (`dependency-missing`) | 技能声明的某个必需命令行程序在宿主 `PATH` 上未找到。注意声明的 MCP 服务仅供展示参考,不阻断分配;如需使用请确认 profile 中已正确配置并连接对应 MCP。 |
390
446
  | 成员创建被拒绝 | 检查持久存储、执行后端(`spawn`/`fork`)、模型配额及并发限额。 |
391
- | 成员显示的模型与配置不一致 | 在 Harness rc.2 中,`list_agents.model` 读取 fallback 元数据。实际路由以 `spawn_team_member` 返回的 `configuredRoute` 或会话请求日志为准。 |
447
+ | 成员显示的模型与配置不一致 | `list_agents.model` 可能返回继承或 fallback 模型,即使成员实际已按配置路由运行。实际路由以 `spawn_team_member` 的 `configuredRoute`、`model/selection`、首条 `request/header.config` 和成员快照 `route` 为准。 |
448
+ | 所选成员的模型路由不可用 | Host 会拒绝应用并保留会话原有组合与模型,不会静默回退到队长。请在 **设置 → 智能体团队预设** 中修正该成员的提供方/模型(及推理强度)后重新选择。输入区只提示成员不存在,不显示 Host 拒绝原因;请同时确认成员路由与部署的提供方目录。 |
392
449
 
393
450
  <a id="understand-the-implementation"></a>
394
451
  ## 工作原理
@@ -396,9 +453,9 @@ Configuration for "agent-team-presets" is overridden by a home patch or command-
396
453
  插件通过 Cordis 与 Harness 生命周期扩展点深度协作,无需修改宿主源码:
397
454
 
398
455
  1. **Profile 配置:** 保存团队预设、展示元数据、本地分类与活动会话选择。
399
- 2. **会话应用:** 在 Agent 作用域安装队长 persona、工具策略和 `spawn_team_member`。
456
+ 2. **会话应用:** 在 Agent 作用域安装队长 persona、工具策略和 `spawn_team_member`;选择单个成员时改为安装该成员的角色卡与工具策略,不安装队长简报与成员工具,并把该成员配置的模型路由设为会话当前模型。
400
457
  3. **成员创建与技能注入:** 校验路由与委派配额,保存持久快照并召唤子会话。串行 `agent/created` 钩子在首次请求前,将模型路由、persona、工具白名单以及**专属 Team Skill 严格注入该成员的 Agent 作用域**。
401
- 4. **私有技能管理器:** 负责技能目录存储(`~/.dsh/team-skills`)、防崩溃事务日志、依赖解析与删除阻断核验。
458
+ 4. **私有技能管理器:** 负责技能目录存储(`~/.dsh/agent-team-presets/team-skills`)、防崩溃事务日志、依赖解析与删除阻断核验。
402
459
 
403
460
  ### 源码导航
404
461
 
@@ -416,7 +473,7 @@ Configuration for "agent-team-presets" is overridden by a home patch or command-
416
473
  <a id="development"></a>
417
474
  ## 开发与贡献
418
475
 
419
- 源码开发需要一份兼容、已安装依赖的 [Harness 源码](https://github.com/deepseek-ai/deepseek-harness):
476
+ 源码开发需要一份兼容、已安装依赖的 [Harness 源码](https://github.com/deepseek-ai/deepseek-harness),并先完成其 Host 类型与 Typert Remote 产物生成(Harness 的 `build:lib:host` 流程提供这些前置产物):
420
477
 
421
478
  ```sh
422
479
  export DSH_CHECKOUT=/absolute/path/to/deepseek-harness
@@ -19,13 +19,17 @@ description: 当任务涉及 Git 变更整理、Commit、PR、Changelog、版本
19
19
  6. **执行授权**:明确授权的普通 Commit、Push、PR 或 Release 可在规定范围直接完成,不反复请示;新的高风险或超范围动作须另行确认。仍需符合真实工具权限和平台审批。
20
20
  7. **核查交付**:复核目标版本、提交范围、实际 Git/远端状态和必要的兼容、升级警示。不能执行的核验明确列出,不虚构发布成功。
21
21
 
22
- ## 双语 Release / Changelog 文字规范
22
+ ## Release / Changelog / PR 文字规范
23
23
 
24
- - 固定表达顺序:一句中英双语版本概述 → `变更概览 | Summary`(核实后的新增/优化/修复事项数)→ `新增 | Added`、`优化 | Improved`、`修复 | Fixed` 的简短双语要点 → 必要时 `重要说明 | Important Notes`。
24
+ **语言形态:完整中文版 + 完整英文版,两个独立段落。**
25
+
26
+ - 先写完整中文全文,再写完整英文全文;不要把一句中文和一句英文并排、交替或逐条对照。英文不是中文的逐行注解,而是可直接独立阅读的完整对应版本。
27
+ - 结构:`## 中文` → 完整中文内容;`## English` → 完整英文内容。CHANGELOG 按版本分节后,每节内部同样先中文后英文。
28
+ - 中文段落内的类别标题用中文(`新增`、`优化`、`修复`、`重要说明`);英文段落内用对应英文(`Added`、`Improved`、`Fixed`、`Important Notes`)。两份各自内聚,不混排。
25
29
  - 只保留确有内容的类别。条目数量统计的是面向使用者的独立变更事项,不是代码行数、文件数或 Commit 数;同一事项不要重复计数。事实不足时先核实或标记待确认,不编造数字或版本日期。
26
- - 着重说明使用者感受到的功能、优化或修复,不展开底层实现、长日志和大量 PR 明细;Breaking Change、必要迁移或已知风险不能因追求简短而隐藏。
27
- - 中文在前、英文在后;标题采用 `中文 | English`,代码、命令和技术专名不机械翻译。GitHub Release 标题已经显示版本时,正文不必再写重复大标题。
28
- - 如可使用 `github-repository-presentation`,它负责整体双语排版与呈现一致性;本 Skill 独立负责事实、计数、Git 过程与真正发布状态。
30
+ - 着重说明使用者感受到的功能、优化或修复,不展开底层实现、长日志和大量 PR 明细;Breaking Change、必要迁移或已知风险不能因追求简短而隐藏,两种语言都必须写全。
31
+ - GitHub Release 标题已经显示版本时,正文不必再写重复大标题。
32
+ - README 属于 `github-repository-presentation` 的范围:那里用**独立中文文件与独立英文文件互链**做语言切换,不在同一文件里逐段双语。本 Skill 只负责 PR 描述、CHANGELOG 与 Release 正文的两种语言版本。
29
33
 
30
34
  ## 交付
31
35