dsh-agent-team-presets 0.3.4 → 0.3.6

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 (59) hide show
  1. package/README.md +7 -7
  2. package/README.zh.md +8 -8
  3. package/assets/card-patches/catalog.json +30 -0
  4. package/assets/card-patches/dsh-better-sidebar-0.33.0.client.js.gz +0 -0
  5. package/assets/card-patches/dsh-context-0.87.1.client.js.gz +0 -0
  6. package/assets/card-patches/dsh-context-0.87.2.client.js.gz +0 -0
  7. package/assets/skills/leader-worker-continuity/SKILL.md +166 -0
  8. package/assets/skills/leader-worker-continuity/references/handoff-record-template.md +30 -0
  9. package/assets/skills/leader-worker-continuity/references/task-slice-design.md +107 -0
  10. package/assets/skills/leader-worker-continuity/references/worker-recovery.md +53 -0
  11. package/docs/builtin-team-skills.md +9 -6
  12. package/docs/builtin-team-skills.zh.md +9 -6
  13. package/docs/builtin-teams.md +8 -6
  14. package/docs/builtin-teams.zh.md +8 -6
  15. package/docs/developer/architecture.md +2 -2
  16. package/docs/developer/architecture.zh.md +2 -2
  17. package/docs/developer/client-bundle-size.md +100 -0
  18. package/docs/developer/client-bundle-size.zh.md +100 -0
  19. package/docs/guide/install.md +2 -2
  20. package/docs/guide/install.zh.md +2 -2
  21. package/docs/guide/team-skills.md +4 -4
  22. package/docs/guide/team-skills.zh.md +4 -4
  23. package/docs/guide/using-teams.md +14 -4
  24. package/docs/guide/using-teams.zh.md +14 -4
  25. package/docs/index.md +4 -3
  26. package/docs/index.zh.md +4 -3
  27. package/docs/reference/troubleshooting.md +1 -1
  28. package/docs/reference/troubleshooting.zh.md +1 -1
  29. package/lib/client.js +806 -7200
  30. package/lib/index.js +250 -15
  31. package/lib/typert.host.js +232 -7158
  32. package/lib/typert.remote-client.js +232 -7158
  33. package/lib/types/builtin-skill.js +2 -2
  34. package/lib/types/builtin-teams.d.ts +6 -2
  35. package/lib/types/builtin-teams.js +6 -2
  36. package/lib/types/client/TeamAgentView.js +93 -21
  37. package/lib/types/client/TeamImportDialog.js +1 -1
  38. package/lib/types/client/TeamPresetsSection.js +6 -1
  39. package/lib/types/client/TeamRosterAction.js +23 -4
  40. package/lib/types/client/locales.d.ts +1 -1
  41. package/lib/types/client/locales.js +30 -0
  42. package/lib/types/client/roster-visibility.d.ts +18 -0
  43. package/lib/types/client/roster-visibility.js +19 -0
  44. package/lib/types/client/team-presets-controller.d.ts +10 -0
  45. package/lib/types/client/team-presets-controller.js +6 -2
  46. package/lib/types/client/team-skills-controller.js +10 -2
  47. package/lib/types/index.js +8 -0
  48. package/lib/types/keyword-search.d.ts +36 -0
  49. package/lib/types/keyword-search.js +63 -0
  50. package/lib/types/presets.d.ts +31 -1
  51. package/lib/types/presets.js +37 -3
  52. package/lib/types/team-catalog.d.ts +32 -7
  53. package/lib/types/team-catalog.js +227 -7
  54. package/lib/types/team-skills/index.d.ts +1 -1
  55. package/lib/types/team-skills/index.js +1 -1
  56. package/lib/types/team-skills/official-bindings.d.ts +1 -1
  57. package/lib/types/team-skills/official-bindings.js +1 -0
  58. package/lib/types/types.d.ts +10 -1
  59. package/package.json +49 -49
@@ -1,16 +1,17 @@
1
1
  # 内置团队技能
2
2
 
3
- 插件随包提供 **13 个团队技能(Team Skill)**,并为其内置团队的角色绑定一套默认组合。本文是清单:每个技能做什么、属于哪一类、默认给哪个角色。
3
+ 插件随包提供 **14 个团队技能(Team Skill)**,并为其内置团队的角色绑定一套默认组合。本文是清单:每个技能做什么、属于哪一类、默认给哪个角色。
4
4
 
5
5
  [English](<builtin-team-skills.md>) · [文档入口](<index.zh.md>) · [内置团队](<builtin-teams.zh.md>) · [README](<../README.zh.md>)
6
6
 
7
- ## 13 个随包技能
7
+ ## 14 个随包技能
8
8
 
9
9
  | 技能(模型看到的 id) | 界面显示名 | 分类 | 用途 | 默认角色 |
10
10
  |---|---|---|---|---|
11
11
  | `agent-leader-communication` | 队长派发与通信 | 工作流型 | 队长的派发、咨询、结果回收与汇报协议。 | `team-lead` |
12
12
  | `leader-medium-task-workflow` | 中程任务工作流 | 工作流型 | 有界中程任务:轻量拆分、Team Task Board、队长 Todo、统一验收。 | `team-lead` |
13
13
  | `leader-long-task-orchestration` | 长程任务编排 | 工作流型 | 多轮交付:需求对齐、滚动规划、持久化计划、阶段验收。 | `team-lead` |
14
+ | `leader-worker-continuity` | 队长执行者接续 | 工作流型 | 长程切片交接:队长如何切片、维护持久状态,并在当前执行者无法继续时把同一 `TASK_ID` 的剩余工作交给新的执行者实例。 | `team-lead` |
14
15
  | `agent-subagent-orchestration` | 孙代理并行编排 | 工作流型 | 队长或执行者在什么条件下必须派孙代理,以及结果如何回收与集成。 | `team-lead`、`executor` |
15
16
  | `fullstack-advisor` | 全栈技术咨询 | 工作流型 | 顾问的咨询工作流与决策摘要契约。 | `fullstack-advisor` |
16
17
  | `executor-short-task-workflow` | 执行者短程工作流 | 工作流型 | 有界实现:最小变更、与风险匹配的验证、结构化汇报。 | `executor` |
@@ -30,7 +31,7 @@
30
31
 
31
32
  | 分类 | 数量 | 内容 |
32
33
  |---|---|---|
33
- | **工作流型** | 9 | 上面的队长、顾问与执行者工作流,以及三个专业角色工作流 |
34
+ | **工作流型** | 10 | 上面的队长、顾问与执行者工作流,以及三个专业角色工作流 |
34
35
  | **交付型** | 2 | 仓库展示与 Git 发布这一对 |
35
36
  | **方法型** | 2 | `grilling` 与 `research` |
36
37
  | **自定义** | — | 本版本未随包发布的全部技能:你自己导入或创建的 |
@@ -39,21 +40,23 @@
39
40
 
40
41
  ## 默认绑定
41
42
 
42
- 8 个工程技能绑定在研发团队上,2 个方法技能属于需求探索与科研协作团队。
43
+ 12 个工程技能(工作流型 + 交付型)主要绑定在研发团队上,2 个方法技能属于需求探索与科研协作团队;工程治理团队只取用其中的基础设施技能——队长通信与孙代理编排。
43
44
 
44
45
  | 团队 | `team-lead` | 顾问角色 | `executor` | 其它 |
45
46
  |---|---|---|---|---|
46
47
  | 轻量研发团队 `builtin-lightweight` | 4 个工作流型 | 1 个(`fullstack-advisor`) | 4 个(含编排与交付) | — |
47
48
  | 标准研发团队 `builtin-standard` | 4 个工作流型 | 1 个(`fullstack-advisor`) | 4 个 | `reviewer` 2 个(审查工作流 + 编排) |
48
49
  | 全栈软件研发团队 `builtin-fullstack` | 4 个工作流型 | 不设该角色 | 4 个 | `ui-designer` 1 个、`backend-architect` 1 个、`reviewer` 2 个 |
50
+ | 高质量长程研发团队 `builtin-long-running` | 4 个工作流型(含 `leader-worker-continuity`) | 不设该角色 | 2 个(实现 + 编排) | — |
49
51
  | 需求探索 `builtin-discovery` | `grilling` | — | — | `research` 给 `technical-scout` 与 `product-scout` |
50
52
  | 架构规划 `builtin-planning` | — | — | — | 无默认技能 |
51
53
  | 既定工作流执行 `builtin-workflow` | — | — | — | 两个交付技能给 `repository-specialist` |
52
54
  | 工程研发协作 `builtin-engineering` | — | — | — | 两个交付技能给 `repository-specialist` |
53
55
  | 独立代码与安全审计 `builtin-audit` | — | — | — | 无默认技能 |
54
56
  | 科研协作 `builtin-research` | — | — | — | `research` 给 `evidence-scout` |
57
+ | 工程治理团队 `builtin-engineering-governance` | —(队长叫 `governance-lead`) | 不设该角色 | —(角色叫 `remediation-engineer`) | 5 条:`governance-lead` 得 `agent-leader-communication` + 编排;`governance-auditor`、`remediation-engineer`、`acceptance-reviewer` 各得编排 |
55
58
 
56
- 有三个数字要读仔细。第一,**绑定条数不等于技能个数**:轻量研发团队有 9 条绑定,但只对应 8 个不同技能——`agent-subagent-orchestration` 被刻意同时绑给队长和执行者。第二,标准研发团队保留单一顾问角色(`fullstack-advisor`),全栈软件研发团队把顾问拆成 `ui-designer` 与 `backend-architect`,两个团队都不再声明对方没有的专业角色。第三,`agent-subagent-orchestration` **只**绑给队长、执行者与 `reviewer`:顾问保持单线程。
59
+ 有三个数字要读仔细。第一,**绑定条数不等于技能个数**:轻量研发团队有 9 条绑定,但只对应 8 个不同技能——`agent-subagent-orchestration` 被刻意同时绑给队长和执行者。第二,标准研发团队保留单一顾问角色(`fullstack-advisor`),全栈软件研发团队把顾问拆成 `ui-designer` 与 `backend-architect`,两个团队都不再声明对方没有的专业角色。第三,`agent-subagent-orchestration` 绑给队长、执行者、`reviewer`,以及工程治理团队的四个角色:治理工作天然是并行的(一次审计同时覆盖架构、依赖、测试与 CI),所以编排下到每个可能展开只读调查或整改切片的角色;顾问仍然保持单线程,从不到达。
57
60
 
58
61
  你可以在成员页按角色增删绑定;这些本地改动属于你,不属于随包预设。
59
62
 
@@ -78,5 +81,5 @@
78
81
 
79
82
  ## 相关
80
83
 
81
- - [内置团队](<builtin-teams.zh.md>)——九个预设,以及这些技能挂到哪些角色上
84
+ - [内置团队](<builtin-teams.zh.md>)——十一个预设,以及这些技能挂到哪些角色上
82
85
  - [新手必读(图文)](<guide/getting-started.zh.md>)——技能库与成员页的使用
@@ -1,6 +1,6 @@
1
1
  # Built-in Teams
2
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.
3
+ This plugin seeds **eleven editable Teams** on a fresh installation: four development-scale Teams and seven 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
4
 
5
5
  [中文](<builtin-teams.zh.md>) · [Documentation index](index.md) · [README](../README.md)
6
6
 
@@ -13,28 +13,29 @@ This plugin seeds **nine editable Teams** on a fresh installation: three develop
13
13
 
14
14
  ## 研发规模系列 (Classic Development Scale)
15
15
 
16
- Three Teams for building software, differing in how much coordination the work needs.
16
+ Four Teams for building software, differing in how much coordination the work needs.
17
17
 
18
18
  | Preset | Roles | Intended use |
19
19
  |---|---|---|
20
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
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
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
+ | **高质量长程研发团队**<br>`builtin-long-running` | Captain `team-lead`, `executor` | Long-running delivery that outlives one Session or one executor instance. Slices can hand over between executor instances, and independent work can run in parallel. |
23
24
 
24
25
  ### What each role is for
25
26
 
26
27
  | Role | Appears in | Responsibility |
27
28
  |---|---|---|
28
- | `team-lead` | all three | Aligns the requirement, grades the task, dispatches, integrates, and accepts. Holds the final risk call. |
29
+ | `team-lead` | all four | Aligns the requirement, grades the task, dispatches, integrates, and accepts. Holds the final risk call. |
29
30
  | `fullstack-advisor` | lightweight, standard | Cross-layer technical decisions, trade-offs, risks, and executable acceptance contracts. Does not implement. |
30
31
  | `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
+ | `executor` | all four | Implements, debugs, tests, and hands over verification evidence within the assigned scope. |
32
33
  | `backend-architect` | fullstack | System architecture, API and data contracts, error semantics, auth isolation, migration compatibility, plus the complex backend fixes. |
33
34
  | `ui-designer` | fullstack | Visual direction, design systems, frontend components and interaction, real-screenshot visual acceptance, plus the frontend fixes. |
34
35
 
35
36
  ## 工作模式系列 (Work Modes)
36
37
 
37
- Six Teams for work that is not "build the next feature".
38
+ Seven Teams for work that is not "build the next feature".
38
39
 
39
40
  | Preset | Roles | Intended use |
40
41
  |---|---|---|
@@ -44,6 +45,7 @@ Six Teams for work that is not "build the next feature".
44
45
  | **工程研发协作**<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
46
  | **独立代码与安全审计**<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
47
  | **科研协作**<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. |
48
+ | **工程治理团队**<br>`builtin-engineering-governance` | Captain `governance-lead`, `governance-auditor`, `remediation-engineer`, `acceptance-reviewer` | Evidence-based engineering governance for a project that keeps evolving: read-only diagnosis, controlled remediation, and independent acceptance, with the auditor and reviewer kept independent of the remediation. |
47
49
 
48
50
  ## Roles are addressed by name
49
51
 
@@ -58,5 +60,5 @@ Your Team records are stored in the active profile's configuration (`cordis.patc
58
60
 
59
61
  ## Related
60
62
 
61
- - [Built-in Team Skills](builtin-team-skills.md) — the ten shipped skills and which role receives each
63
+ - [Built-in Team Skills](builtin-team-skills.md) — the fourteen shipped skills and which role receives each
62
64
  - [Getting started](guide/getting-started.md) — the illustrated walkthrough for creating and using a Team
@@ -1,6 +1,6 @@
1
1
  # 内置团队
2
2
 
3
- 插件在全新安装时初始化 **九个可编辑团队**:三个研发规模团队,六个工作模式团队。本文说明每个团队包含什么;它们各自拿到哪些技能,见[内置团队技能](<builtin-team-skills.zh.md>)。
3
+ 插件在全新安装时初始化 **十一个可编辑团队**:四个研发规模团队,七个工作模式团队。本文说明每个团队包含什么;它们各自拿到哪些技能,见[内置团队技能](<builtin-team-skills.zh.md>)。
4
4
 
5
5
  [English](<builtin-teams.md>) · [文档入口](<index.zh.md>) · [README](<../README.zh.md>)
6
6
 
@@ -13,28 +13,29 @@
13
13
 
14
14
  ## 研发规模系列
15
15
 
16
- 三个用于开发软件的团队,区别在于协作开销。
16
+ 四个用于开发软件的团队,区别在于协作开销。
17
17
 
18
18
  | 预设 | 角色 | 适用场景 |
19
19
  |---|---|---|
20
20
  | **轻量研发团队**<br>`builtin-lightweight` | 队长 `team-lead`、`fullstack-advisor`、`executor` | 中小型功能迭代与多阶段开发。队长负责需求对齐、任务分级、并行探查与验收;顾问单线程回答技术决策;执行者实现、集成与验证。 |
21
21
  | **标准研发团队**<br>`builtin-standard` | 队长 `team-lead`、`fullstack-advisor`、`executor`、`reviewer` | 中型功能、重要重构与持续项目迭代。全栈顾问按需提供技术决策与验收契约;执行者持续研发;独立审查员检查有代码变更的交付。 |
22
22
  | **全栈软件研发团队**<br>`builtin-fullstack` | 队长 `team-lead`、`ui-designer`、`backend-architect`、`executor`、`reviewer` | 面向 Web、桌面与 Android 的跨端复杂工程。顾问职责拆成 UI 前端工程师与后端架构师;执行者承担常规开发测试;独立审查员验收。 |
23
+ | **高质量长程研发团队**<br>`builtin-long-running` | 队长 `team-lead`、`executor` | 交付周期长于单个会话或单个执行者实例的长程研发。切片可跨执行者实例接续,独立工作可并行处理。 |
23
24
 
24
25
  ### 各角色职责
25
26
 
26
27
  | 角色 | 出现于 | 职责 |
27
28
  |---|---|---|
28
- | `team-lead` | 三个团队 | 对齐需求、任务分级、派发、集成与验收,保留最终风险裁决权。 |
29
+ | `team-lead` | 四个团队 | 对齐需求、任务分级、派发、集成与验收,保留最终风险裁决权。 |
29
30
  | `fullstack-advisor` | 轻量、标准 | 跨层技术决策、方案权衡、风险分析与可执行验收契约;不承担编码。 |
30
31
  | `reviewer` | 标准、全栈 | 独立审查实际变更、关键风险,以及测试是否真能捕获该缺陷。 |
31
- | `executor` | 三个团队 | 在获派范围内实现、调试、测试并交接验证证据。 |
32
+ | `executor` | 四个团队 | 在获派范围内实现、调试、测试并交接验证证据。 |
32
33
  | `backend-architect` | 全栈 | 系统架构、API 与数据契约、错误语义、鉴权隔离、迁移兼容,并直接承担复杂后端修复。 |
33
34
  | `ui-designer` | 全栈 | 视觉方向、设计系统、前端组件与交互实现、真实截图视觉验收,并直接承担前端修复。 |
34
35
 
35
36
  ## 工作模式系列
36
37
 
37
- 六个用于"不是开发下一个功能"的场景。
38
+ 七个用于"不是开发下一个功能"的场景。
38
39
 
39
40
  | 预设 | 角色 | 适用场景 |
40
41
  |---|---|---|
@@ -44,6 +45,7 @@
44
45
  | **工程研发协作**<br>`builtin-engineering` | 队长 `engineering-lead`、`architect`、`executor`、`ui-designer`、`reviewer`、`repository-specialist` | 自适应工程:队长自己能做就直接做,有实际收益时才召唤成员。 |
45
46
  | **独立代码与安全审计**<br>`builtin-audit` | 队长 `audit-lead`、`code-auditor`、`security-auditor`、`finding-verifier` | 对指定代码、配置或变更做独立只读审查;只报告与复核,不负责修复。 |
46
47
  | **科研协作**<br>`builtin-research` | 队长 `research-lead`、`methodologist`、`evidence-scout`、`research-engineer`、`skeptic` | 文献、方法设计、实验代码与证据强度;在已授权目标内运行实验。 |
48
+ | **工程治理团队**<br>`builtin-engineering-governance` | 队长 `governance-lead`、`governance-auditor`、`remediation-engineer`、`acceptance-reviewer` | 面向持续演进的软件项目,基于证据开展工程诊断、受控整改与独立验收;诊断与验收角色保持独立于整改。 |
47
49
 
48
50
  ## 角色按名字寻址
49
51
 
@@ -58,5 +60,5 @@
58
60
 
59
61
  ## 相关
60
62
 
61
- - [内置团队技能](<builtin-team-skills.zh.md>)——10 个随包技能,以及哪个角色拿到哪一个
63
+ - [内置团队技能](<builtin-team-skills.zh.md>)——14 个随包技能,以及哪个角色拿到哪一个
62
64
  - [新手必读(图文)](<guide/getting-started.zh.md>)——创建与使用团队的逐步图解
@@ -48,7 +48,7 @@ Thanks to **张灏焱** for contributing the `grilling` and `research` method Te
48
48
  ## Related
49
49
 
50
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.
51
+ - [Built-in Teams](../builtin-teams.md) — the eleven shipped presets and their roles.
52
+ - [Built-in Team Skills](../builtin-team-skills.md) — the fourteen shipped skills and per-role bindings.
53
53
  - [Getting started](../guide/getting-started.md) — the illustrated walkthrough.
54
54
  - [README](../../README.md) — overview, quick start, and the documentation map.
@@ -48,7 +48,7 @@ npm run bundle
48
48
  ## 相关
49
49
 
50
50
  - [文档索引](../index.zh.md) —— 完整的文档地图。
51
- - [内置团队](../builtin-teams.md) —— 九个内置预设与各自的角色。
52
- - [内置团队技能](../builtin-team-skills.md) —— 十个随包技能与各角色默认绑定。
51
+ - [内置团队](../builtin-teams.md) —— 十一个内置预设与各自的角色。
52
+ - [内置团队技能](../builtin-team-skills.md) —— 十四个随包技能与各角色默认绑定。
53
53
  - [新手必读(图文)](../guide/getting-started.md) —— 逐屏走查。
54
54
  - [README](../../README.zh.md) —— 总览、快速开始与文档导航。
@@ -0,0 +1,100 @@
1
+ # Client bundle size
2
+
3
+ What the browser half ships, why it is the size it is, and the two reductions that were measured on the real build. Both address [issue #11](https://github.com/bloodarea/dsh-agent-team-presets/issues/11): `lib/client.js` was 1.29 MB for a plugin whose most common UI is one select control in the composer.
4
+
5
+ [中文](<client-bundle-size.zh.md>) · [Documentation index](../index.md) · [Architecture](architecture.md) · [README](../../README.md)
6
+
7
+ ## What is actually in the bundle
8
+
9
+ Measured on the 0.3.5 artifact, not estimated:
10
+
11
+ | Part | Bytes | Share |
12
+ |---|---|---|
13
+ | Zod locale message tables (60 unused languages) | 273,985 | 20.3% |
14
+ | Everything else (Zod core + the management UI) | 1,076,763 | 79.7% |
15
+ | **`lib/client.js` total** | **1,350,748** | |
16
+
17
+ The locale tables are dead code by construction. Zod re-exports all 61 languages from its public API (`zod/v4/classic/external.js` has `export * as locales`, and `v4/core` and `v4/mini` do the same), so importing any part of Zod pulls every table in. Nothing in this plugin ever calls `z.config(z.locales.<lang>())`; the only reader is Zod's own `_ensureDefaultLocale()`, which is hard-wired to `en`.
18
+
19
+ The same tables reached the wire faces one layer earlier: `lib/typert.remote-client.js` carried 260,215 bytes of them (32.7% of that file) and `lib/typert.host.js` the same again.
20
+
21
+ ## Reduction 1 — drop the 60 unused tables (shipped)
22
+
23
+ `tools/build.mjs` reroutes every non-English `zod/v4/locales/<lang>.js` to the English table while the build runs. The barrel (`locales/index.js`) and `en.js` stay as Zod ships them.
24
+
25
+ Measured on the real build:
26
+
27
+ | Artifact | Before | After | Saved |
28
+ |---|---|---|---|
29
+ | `lib/client.js` | 1,350,748 | 1,076,654 | 272,971 (20.2%) |
30
+ | `lib/typert.remote-client.js` | 795,642 | 536,533 | 259,109 (32.6%) |
31
+ | `lib/typert.host.js` | 795,806 | 536,697 | 259,109 (32.6%) |
32
+ | **Total** | **3,799,878** | **3,008,689** | **791,189 (20.8%)** |
33
+
34
+ Both columns come from the same source tree, built twice with `tools/build.mjs` swapped for its pre-shrink version, so the only variable is the locale shim. The committed `lib/` is byte-reproducible from `src/`: rebuilding the release commit with the unmodified build reproduces the published artifact exactly.
35
+
36
+ Three properties keep this from being a behaviour change:
37
+
38
+ - **Every language key survives.** `z.locales` still exports all 63 keys with 63 distinct factories, so `z.locales.de()` returns a callable table, not `undefined`. `tests/artifacts.spec.ts` guards this against the list Zod's own barrel declares.
39
+ - **The messages stay English.** Every stub returns the English `{ localeError }`, which is exactly what an unconfigured Zod already reports. No translation is lost that was ever reachable.
40
+ - **Validation is untouched.** The schemas, `.parse()` and `.safeParse()` paths are the same objects; only the message tables for languages nobody selected are gone.
41
+
42
+ The Presets UI translation is a separate thing and is not affected: `src/client/locales.ts` holds the `en`/`zh` copy for the settings page and the composer control, and is compiled from this package's own source.
43
+
44
+ One trap worth recording. The first version rerouted all 61 language modules to re-export the *same* English module. The bundler then collapsed Zod's entire `locales` namespace into one `default` re-export and all 63 keys disappeared. Each stub therefore owns a distinct default export and shares the English table through a local binding.
45
+
46
+ ## Reduction 2 — defer the management screens (rejected, with the reason)
47
+
48
+ The plan was the same shape as every other bundle split: `React.lazy` plus `import()` for `TeamEditorView`, `TeamAgentView`, `TeamSkillsView`, `TeamImportDialog`, and `TeamCategoryManager`, so the composer's select does not pay for the settings back end.
49
+
50
+ The build does produce the chunks. The split still cannot ship, because of how the Harness client module loader resolves a sibling chunk:
51
+
52
+ 1. `import('./TeamAgentView.tsx')` compiles to `require.async("./client.TeamAgentView.js")`, which the loader serves through `ClientModuleSystem.importChunk` — that path is fine, and it is why the chunks were emitted at all.
53
+ 2. A module reachable from **both** the entry and a lazy chunk (here `team-presets-controller.ts`, `locales.ts`, and the section stylesheet) becomes a third, shared chunk, and rolldown links it from the entry with a **synchronous** `require("./client.team-presets-controller.js")`.
54
+ 3. The loader's synchronous `require` only resolves the platform seed, already-materialized modules, and registered package factories. A chunk file has not arrived yet, so it throws:
55
+
56
+ ```
57
+ client-modules: require("./client.team-presets-controller.js") missed the module table
58
+ ```
59
+
60
+ That throw happens inside the bundle factory, before `apply()` — the plugin does not load at all, and the composer select disappears with it. Reproduced against the loader's own resolution rules with the real 717 KB entry the split produced.
61
+
62
+ The fix is not to abandon splitting — it is to keep every shared module in the ENTRY bundle and split only the leaf screens. Three worker-free ways to do that were measured:
63
+
64
+ | Approach | Result |
65
+ |---|---|
66
+ | `codeSplitting: false` | Rejected: also inlines the dynamic chunks, so nothing is deferred |
67
+ | Let the bundler split automatically | Rejected: the shared chunk appears and the entry requires it synchronously (the failure above) |
68
+ | Build the lazy screens as a SEPARATE entry, importing shared state through the package name | **Works** — verified below |
69
+
70
+ The third approach is the one that fits: the entry build keeps `import()` for the lazy screen, the screen is built as its own entry (so it never emits a shared chunk), and where it needs something the entry already owns it imports `dsh-agent-team-presets/client` instead of a relative path. `stripClientSuffix` maps that specifier to the package's own module-table row, which is already materialized when the chunk arrives — so shared state is one instance, not a copy.
71
+
72
+ Why this is not yet applied to this plugin: every lazy screen shares a module with the entry (`team-presets-controller.ts`, `locales.ts`, `TeamPresetsSection.module.css`, and for the roster pages `presets.ts`, `team-search.ts`, `team-catalog.ts`, `keyword-search.ts`, `FieldPicker.tsx`, `CategorySelect.tsx`). Only the six stylesheet and dictionary modules could move behind that boundary without touching component props, and the measured ceiling is:
73
+
74
+ | Plan | First-screen bytes | Saved |
75
+ |---|---|---|
76
+ | Single file today | 1,076,654 | — |
77
+ | Defer the five screens' own code only | 957,151 | 119,503 (11.1%) |
78
+ | Let the bundler split automatically | 980,830 | 96,947 (9.0%), plus 22,556 bytes duplicated |
79
+
80
+ So a working split is worth about 11% of the entry, not the 40% the file size suggests, because the screens are thin relative to the controller and the dictionaries they share with the composer. It is a real but separate change: it needs every lazy screen's prop types moved to a type-only module, and the six shared modules re-exported through the package's `./client` face.
81
+
82
+ ## What the guards pin
83
+
84
+ The shrink is guarded at two levels, because a test that reads `lib/` only catches the mistake after someone rebuilds and commits the regression.
85
+
86
+ **At build time** (`tools/build.mjs`), two assertions fail the build itself:
87
+
88
+ - the installed zod must still have `v4/locales/index.js` and `v4/locales/en.js`, so a zod release that moves the barrel is a loud error instead of a shim that silently stops matching;
89
+ - after emitting, each of the three artifacts must contain at most one per-language message table, so a layout change that keeps the build green but restores the size is caught before publishing.
90
+
91
+ Both were verified to fail on purpose: disabling the hook produces `zod locale shrink did not apply to lib/client.js: 61 per-language message tables are still inlined`, and pointing the path at `v5/locales` produces the missing-barrel error.
92
+
93
+ **At test time**, `tests/artifacts.spec.ts` fails if:
94
+
95
+ - the `locales` namespace stops exporting the full key list, or two keys collapse onto one factory;
96
+ - the per-language table form comes back (the marker that the shim stopped applying, which would silently add ~270 KB);
97
+ - English is no longer present, which would mean the shrink took the default table with it;
98
+ - and a negative control proves the marker test can fail, so a green run means the shrink happened rather than that the regex never matched.
99
+
100
+ The size itself is not asserted: a byte count would break on any legitimate rebuild, and the property that matters is *which* tables are inlined, not the total.
@@ -0,0 +1,100 @@
1
+ # 客户端打包体积
2
+
3
+ 浏览器半边到底发了什么、为什么是这个体积,以及两处在实际构建上量过的缩减。两者都对应 [issue #11](https://github.com/bloodarea/dsh-agent-team-presets/issues/11):`lib/client.js` 曾经是 1.29 MB,而这个插件最常用的界面只是输入框旁边的一个选择器。
4
+
5
+ [English](<client-bundle-size.md>) · [文档索引](../index.zh.md) · [架构说明](architecture.zh.md) · [README](../../README.zh.md)
6
+
7
+ ## 包里到底装了什么
8
+
9
+ 以下数字在 0.3.5 产物上实测,不是估算:
10
+
11
+ | 部分 | 字节 | 占比 |
12
+ |---|---|---|
13
+ | Zod 语种错误消息表(60 个用不到的语种) | 273,985 | 20.3% |
14
+ | 其余(Zod 内核 + 管理界面) | 1,076,763 | 79.7% |
15
+ | **`lib/client.js` 合计** | **1,350,748** | |
16
+
17
+ 这些语种表在结构上就是死代码。Zod 从公开 API 里把 61 个语种整体再导出(`zod/v4/classic/external.js` 里是 `export * as locales`,`v4/core` 与 `v4/mini` 同样如此),所以只要引入 Zod 的任意部分,所有表都会被拉进来。本插件从未调用 `z.config(z.locales.<lang>())`;唯一的读取方是 Zod 自己的 `_ensureDefaultLocale()`,而它固定用 `en`。
18
+
19
+ 同一批表还提前一层进了线格式产物:`lib/typert.remote-client.js` 里有 260,215 字节(占该文件 32.7%),`lib/typert.host.js` 同样。
20
+
21
+ ## 缩减一:去掉 60 张用不到的表(已落地)
22
+
23
+ `tools/build.mjs` 在构建期把每个非英文的 `zod/v4/locales/<lang>.js` 改写为英文表;桶文件 `locales/index.js` 与 `en.js` 保持 Zod 原样。
24
+
25
+ 真实构建实测:
26
+
27
+ | 产物 | 之前 | 之后 | 省下 |
28
+ |---|---|---|---|
29
+ | `lib/client.js` | 1,350,748 | 1,076,654 | 272,971(20.2%) |
30
+ | `lib/typert.remote-client.js` | 795,642 | 536,533 | 259,109(32.6%) |
31
+ | `lib/typert.host.js` | 795,806 | 536,697 | 259,109(32.6%) |
32
+ | **合计** | **3,799,878** | **3,008,689** | **791,189(20.8%)** |
33
+
34
+ 两列来自同一份源码:用改动前的 `tools/build.mjs` 与改动后的各构建一次,唯一变量是语种表改写插件。另外,`lib/` 是可由 `src/` 逐字节复现的——用未改动的构建脚本重建发版提交,得到的产物与已发布产物完全一致。
35
+
36
+ 有三条性质保证这不是行为变更:
37
+
38
+ - **所有语言键都还在。** `z.locales` 仍然导出 63 个键、对应 63 个互不相同的工厂函数,所以 `z.locales.de()` 拿到的是可调用的表,不是 `undefined`。`tests/artifacts.spec.ts` 用 Zod 自己桶文件里声明的键表来守住这一点。
39
+ - **消息仍是英文。** 每个桩返回英文的 `{ localeError }`,这正好等于未配置语种时 Zod 本来的表现。没有丢掉任何曾经可达的翻译。
40
+ - **校验逻辑未动。** schema、`.parse()`、`.safeParse()` 都是同一批对象;消失的只是没人选过的语种的message 表。
41
+
42
+ Presets 界面的翻译是另一件事,未受影响:`src/client/locales.ts` 里是设置页与输入框控件的中英文案,由本包自己的源码编译而来。
43
+
44
+ 有一个坑值得记下来。最初版本把 61 个语种模块全部改为再导出**同一个**英文模块,结果打包器把 Zod 整个 `locales` 命名空间折叠成单个 `default` 再导出,63 个键全部消失。所以现在每个桩都拥有独立的 default 导出身份,只通过一个本地绑定共享英文表。
45
+
46
+ ## 缩减二:推迟加载管理界面(已验证但未采用)
47
+
48
+ 原本的方案和其他拆包一样:对 `TeamEditorView`、`TeamAgentView`、`TeamSkillsView`、`TeamImportDialog`、`TeamCategoryManager` 用 `React.lazy` + `import()`,让输入框的选择器不必为设置后台付费。
49
+
50
+ 构建确实产出了这些分块。但这个拆分无法采用,原因在于 Harness 客户端模块加载器如何解析兄弟分块:
51
+
52
+ 1. `import('./TeamAgentView.tsx')` 会编译成 `require.async("./client.TeamAgentView.js")`,加载器经 `ClientModuleSystem.importChunk` 提供它——这条路径没问题,分块也正是因此才被产出。
53
+ 2. 一个同时被**入口**与某个懒加载分块引用的模块(这里是 `team-presets-controller.ts`、`locales.ts` 以及设置页样式)会被拆成第三个共享分块,而 rolldown 从入口用**同步**的 `require("./client.team-presets-controller.js")` 链接它。
54
+ 3. 加载器的同步 `require` 只解析平台种子、已物化模块和已注册的包工厂。分块文件此时尚未到达,于是直接抛错:
55
+
56
+ ```
57
+ client-modules: require("./client.team-presets-controller.js") missed the module table
58
+ ```
59
+
60
+ 这个异常发生在 bundle 工厂内部、`apply()` 之前——插件根本不会加载,输入框的选择器会跟着一起消失。我用拆分实际产出的那个 717 KB 入口,按加载器自身的解析规则复现了这一点。
61
+
62
+ 要避开的不是"拆分"本身,而是**共享模块被拆成独立文件**。可行的做法是:共享模块全部留在入口包,只拆纯界面。三条路都实测过:
63
+
64
+ | 做法 | 结果 |
65
+ |---|---|
66
+ | `codeSplitting: false` | 否决:动态分块也被内联,没有任何东西被推迟 |
67
+ | 交给打包器自动拆 | 否决:共享块单独出现,入口用同步 `require` 拉它(即上面的崩溃) |
68
+ | 把懒加载界面作为**独立入口**构建,共享状态经包名引用 | **可行**——已验证 |
69
+
70
+ 第三条是合适的形态:入口构建保留 `import()`,界面单独构建成一个入口(因此永远不会产出共享块),它需要入口已有的东西时,用 `dsh-agent-team-presets/client` 而不是相对路径去取。`stripClientSuffix` 会把该 specifier 映射到本包自己的模块表行,而分块到达时那一行早已物化——所以共享状态是同一份实例,不是副本。实测:入口把计数器加到 2,分块读到 2。
71
+
72
+ 为什么本插件暂时没这么做:每个懒加载界面都与入口共享模块(`team-presets-controller.ts`、`locales.ts`、`TeamPresetsSection.module.css`,花名册两页还共享 `presets.ts`、`team-search.ts`、`team-catalog.ts`、`keyword-search.ts`、`FieldPicker.tsx`、`CategorySelect.tsx`)。在不改组件 props 的前提下,能挪到这条边界后面的只有样式表与字典六项,所以收益上限是:
73
+
74
+ | 方案 | 首屏字节 | 省下 |
75
+ |---|---|---|
76
+ | 当前单文件 | 1,076,654 | — |
77
+ | 只推迟五个界面自身的代码 | 957,151 | 119,503(11.1%) |
78
+ | 交给打包器自动拆 | 980,830 | 96,947(9.0%),另外重复 22,556 字节 |
79
+
80
+ 所以一次能用的拆分值入口的约 11%,不是体积数字暗示的 40%——因为界面本身很薄,大头是它与输入框控件共享的 controller 和字典。这是一件独立的事:需要把每个懒加载界面的 props 类型移到 type-only 模块,并把六个共享模块经本包 `./client` 面重新导出。
81
+
82
+ ## 守护测试钉住了什么
83
+
84
+ 这道缩减有两层守护——只靠读 `lib/` 的测试,要等到有人重建并提交之后才会发现回归。
85
+
86
+ **构建期**(`tools/build.mjs`)有两条断言会让构建直接失败:
87
+
88
+ - 已安装的 zod 必须仍有 `v4/locales/index.js` 与 `v4/locales/en.js`,这样 zod 搬家时是明确报错,而不是插桩悄悄失效;
89
+ - 产物写出后,三个产物各至多只能含一张每语种消息表,这样"构建成功但体积回弹"的布局变化会在发布前被拦下。
90
+
91
+ 两条都验证过会失败:禁用钩子会得到 `zod locale shrink did not apply to lib/client.js: 61 per-language message tables are still inlined`,把路径指向 `v5/locales` 会得到缺桶文件错误。
92
+
93
+ **测试期**,以下任一情况会让 `tests/artifacts.spec.ts` 失败:
94
+
95
+ - `locales` 命名空间不再导出完整键表,或两个键塌缩到同一个工厂;
96
+ - 每语种独立表那种形态回来了(这是桩失效的标记,会静默增加约 270 KB);
97
+ - 英文表不见了,那意味着缩减把默认表也带走了;
98
+ - 并且有一条负向对照证明该标记测试**能**失败,所以绿灯意味着缩减真的发生了,而不是正则从未匹配。
99
+
100
+ 体积本身没有被断言:字节数会在任何一次合法重建时误报,真正要紧的是**哪些**表被内联,而不是总数。
@@ -6,13 +6,13 @@ What the plugin needs before it runs, the three supported install forms, and how
6
6
 
7
7
  ## Requirements
8
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).
9
+ - **DeepSeek Harness `>=0.2.2-rc.5 <0.3.0`.** Verified against **`0.2.2-rc.5`**; 0.2.2-rc.4 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
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
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
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
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
14
 
15
- The plugin version (`0.3.4`) and the Harness version (`0.2.2-rc.3`, for example) are separate version lines.
15
+ The plugin version (`0.3.6`) and the Harness version (`0.2.2-rc.5`, for example) are separate version lines.
16
16
 
17
17
  ## Install
18
18
 
@@ -6,13 +6,13 @@
6
6
 
7
7
  ## 环境要求
8
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` 判定兼容性。
9
+ - **DeepSeek Harness `>=0.2.2-rc.5 <0.3.0`。** 本次实测版本为 **`0.2.2-rc.5`**;0.2.2-rc.4 及更旧版本会被拒绝。成员路由通过 `agent.model.select()` 写入各自会话,fresh、fork 与冷恢复均使用成员自己的配置;队长使用当前会话选择。插件管理器按 [package.json](../../package.json) 的 `engines.dsh` 判定兼容性。
10
10
  - **自定义工具白名单有自己的规则边界。** 策略允许什么、限制什么,见[工具与权限](../reference/tools-and-permissions.md)。
11
11
  - **无需 Agent Teams bundle。** 成员通过部署自带的可继续执行 subagent 后端创建;原生消息、任务工具与 Web 名册不受本插件影响。
12
12
  - **具备 Settings 与所需客户端服务的 Web 或 Desktop profile。** 安装到实际使用的 profile:Web GUI 通常为 `web`,Desktop 通常为 `desktop`。
13
13
  - **成员执行所需的持久存储与支持恢复执行的子智能体后端。** 缺少 storage domain 或所选执行后端时,插件会拒绝创建成员。默认后端名为 `spawn` 和 `fork`。
14
14
 
15
- 插件版本(`0.3.4`)和 Harness 版本(如 `0.2.2-rc.3`)是不同的版本线。
15
+ 插件版本(`0.3.6`)和 Harness 版本(如 `0.2.2-rc.5`)是不同的版本线。
16
16
 
17
17
  ## 安装
18
18
 
@@ -1,6 +1,6 @@
1
1
  # Private Team Skills
2
2
 
3
- This plugin keeps its own Team Skill library: folders or `.zip` archives imported into a plugin-owned store and registered **only** inside the Agent scope of the member they are assigned to. A fresh install also ships ten built-in skills, already bound to the roles of the built-in Teams; the inventory is in [Built-in Team Skills](../builtin-team-skills.md).
3
+ This plugin keeps its own Team Skill library: folders or `.zip` archives imported into a plugin-owned store and registered **only** inside the Agent scope of the member they are assigned to. A fresh install also ships fourteen built-in skills, already bound to the roles of the built-in Teams; the inventory is in [Built-in Team Skills](../builtin-team-skills.md).
4
4
 
5
5
  [中文](<team-skills.zh.md>) · [Documentation index](../index.md) · [README](../../README.md)
6
6
 
@@ -10,7 +10,7 @@ Skills in Harness are typically registered into the global environment, which ex
10
10
 
11
11
  1. **Private library:** skills live in a plugin-managed directory (`~/.dsh/agent-team-presets/team-skills` or a storage domain), isolated from host and profile skills.
12
12
  2. **Per-Agent registration:** when a 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 those skills are explicitly assigned to them too.
13
- 3. **Official built-in skills:** ten shipped skills in three kinds — six workflow, two delivery, two method — pre-bound to the roles of the built-in Teams. The inventory, the per-role default bindings, and the category filter are documented in [Built-in Team Skills](../builtin-team-skills.md); `agent-subagent-orchestration` is bound only to the captain and the executor, so advisors stay single-threaded.
13
+ 3. **Official built-in skills:** fourteen shipped skills in three kinds — ten workflow, two delivery, two method — pre-bound to the roles of the built-in Teams. The inventory, the per-role default bindings, and the category filter are documented in [Built-in Team Skills](../builtin-team-skills.md); `agent-subagent-orchestration` is bound only to the captain and the executor, so advisors stay single-threaded.
14
14
  4. **Local copies and restore:** built-in skills are read-only. Each editable copy gets a unique numbered name, and its creation dialog can optionally move roles already bound to the built-in skill. Restoring resets the copy’s content and returns those roles to the built-in skill.
15
15
  5. **Category filter:** the skill library and the member assignment grid each open with a category dropdown (All categories / Workflow / Delivery / Method / Custom). A single skill is drawn exactly as before; the filter only decides which skills are listed, never what a role holds, and the member heading keeps counting every installed skill.
16
16
  6. **Localized skill names:** the page labels a shipped skill in the reader's language — a Chinese page shows 「Git 提交与发布规范」 where an English page shows `git-release-hygiene`. The mapping is presentation only: the catalogue the model reads, the stored binding, the preset document, and the asset directory all keep the English `skillId`, so switching language or editing a label never touches the storage format and never breaks a cross-deployment import. A skill this build does not ship keeps showing its English id.
@@ -63,6 +63,6 @@ This example sets dependencies for a skill named `report-writer`.
63
63
 
64
64
  ## Related
65
65
 
66
- - [Built-in Team Skills](../builtin-team-skills.md) — the ten shipped skills and their default bindings
67
- - [Built-in Teams](../builtin-teams.md) — the nine presets these roles belong to
66
+ - [Built-in Team Skills](../builtin-team-skills.md) — the fourteen shipped skills and their default bindings
67
+ - [Built-in Teams](../builtin-teams.md) — the eleven presets these roles belong to
68
68
  - [Getting started](./getting-started.md) — the skill library and member page, screen by screen
@@ -1,6 +1,6 @@
1
1
  # 私有团队技能
2
2
 
3
- 本插件自带一套团队技能(Team Skill)私有库:导入的技能文件夹或 `.zip` 包存放在插件专属存储中,并且**只在被分配成员自己的 Agent 作用域内**注册。新装环境还随包提供 10 个内置技能,已默认绑定到内置团队的各角色;完整清单见[内置团队技能](<../builtin-team-skills.zh.md>)。
3
+ 本插件自带一套团队技能(Team Skill)私有库:导入的技能文件夹或 `.zip` 包存放在插件专属存储中,并且**只在被分配成员自己的 Agent 作用域内**注册。新装环境还随包提供 14 个内置技能,已默认绑定到内置团队的各角色;完整清单见[内置团队技能](<../builtin-team-skills.zh.md>)。
4
4
 
5
5
  [English](<team-skills.md>) · [文档索引](../index.zh.md) · [README](../../README.zh.md)
6
6
 
@@ -10,7 +10,7 @@
10
10
 
11
11
  1. **私有库:** 技能统一存放在插件专属目录(`~/.dsh/agent-team-presets/team-skills` 或独立存储域),与宿主、Profile 的技能相互隔离。
12
12
  2. **角色 Agent 作用域隔离:** 成员被召唤时,其绑定的专属技能**严格仅在该成员的 Agent Scope 内注册**。其他队员和队长既看不到也调不到,除非同样把这些技能显式分配给他们。
13
- 3. **官方内置技能:** 随包提供 10 个技能,分工作流型、交付型与方法型三类(6 / 2 / 2),默认绑定到内置团队的各角色。完整清单、各角色默认绑定与分类筛选见[内置团队技能](<../builtin-team-skills.zh.md>);`agent-subagent-orchestration` 只绑定队长与执行者,顾问保持单线程。
13
+ 3. **官方内置技能:** 随包提供 14 个技能,分工作流型、交付型与方法型三类(10 / 2 / 2),默认绑定到内置团队的各角色。完整清单、各角色默认绑定与分类筛选见[内置团队技能](<../builtin-team-skills.zh.md>);`agent-subagent-orchestration` 只绑定队长与执行者,顾问保持单线程。
14
14
  4. **本地副本与恢复:** 内置技能只读。每份可编辑副本都有独立的编号名称,创建时可选择切换已绑定内置技能的角色。恢复会重置副本内容,并将使用该副本的角色切回内置版。
15
15
  5. **分类筛选:** 团队技能库与成员分配网格的列表顶部各有一个分类下拉框(全部分类 / 工作流型 / 交付型 / 方法型 / 自定义)。单条技能的展示方式不变;筛选只影响列出哪些技能,不影响某个角色持有哪些技能,成员页标题也始终按全部已安装技能统计。
16
16
  6. **随包技能的中英文名:** 界面按当前语言显示技能名——中文界面显示「Git 提交与发布规范」,英文界面显示 `git-release-hygiene`。这张映射表**仅用于展示**:模型读到的技能目录、存储的绑定、预设文档与磁盘上的资产目录一律仍是英文 `skillId`,因此切换语言或修改显示名都不会动存储格式,也不会破坏跨部署导入。本版本未收录的技能继续显示其英文 id。
@@ -63,6 +63,6 @@ Web 界面的依赖面板仅供查看。要修改可编辑技能的依赖,请
63
63
 
64
64
  ## 相关
65
65
 
66
- - [内置团队技能](<../builtin-team-skills.zh.md>)——10 个随包技能及其默认绑定
67
- - [内置团队](<../builtin-teams.zh.md>)——这些角色所属的九个预设
66
+ - [内置团队技能](<../builtin-team-skills.zh.md>)——14 个随包技能及其默认绑定
67
+ - [内置团队](<../builtin-teams.zh.md>)——这些角色所属的十一个预设
68
68
  - [新手必读(图文)](<getting-started.zh.md>)——技能库与成员页的逐屏说明
@@ -50,12 +50,12 @@ Hover a Team row in the composer picker to open its member panel. The captain is
50
50
 
51
51
  ### Built-in presets
52
52
 
53
- A fresh installation seeds nine editable Teams across two series — three development-scale Teams and six work-mode Teams:
53
+ A fresh installation seeds eleven editable Teams across two series — four development-scale Teams and seven work-mode Teams:
54
54
 
55
55
  | Series | Teams |
56
56
  |---|---|
57
- | **研发规模系列 (Classic Development Scale)** | 轻量研发团队 `builtin-lightweight` · 标准研发团队 `builtin-standard` · 全栈软件研发团队 `builtin-fullstack` |
58
- | **工作模式系列 (Work Modes)** | 需求探索 `builtin-discovery` · 架构规划 `builtin-planning` · 既定工作流执行 `builtin-workflow` · 工程研发协作 `builtin-engineering` · 独立代码与安全审计 `builtin-audit` · 科研协作 `builtin-research` |
57
+ | **研发规模系列 (Classic Development Scale)** | 轻量研发团队 `builtin-lightweight` · 标准研发团队 `builtin-standard` · 全栈软件研发团队 `builtin-fullstack` · 高质量长程研发团队 `builtin-long-running` |
58
+ | **工作模式系列 (Work Modes)** | 需求探索 `builtin-discovery` · 架构规划 `builtin-planning` · 既定工作流执行 `builtin-workflow` · 工程研发协作 `builtin-engineering` · 独立代码与安全审计 `builtin-audit` · 科研协作 `builtin-research` · 工程治理团队 `builtin-engineering-governance` |
59
59
 
60
60
  Each preset's roles, its intended use, and the Team Skills those roles receive are documented in [Built-in Teams](../builtin-teams.md) and [Built-in Team Skills](../builtin-team-skills.md).
61
61
 
@@ -75,6 +75,16 @@ Each Team preset supports rich metadata:
75
75
 
76
76
  **Token economy:** Display metadata is stored in the preset document and used by the UI for search, grouping, and cards, but is **never injected into the runtime LLM prompt context**.
77
77
 
78
+ **Where the line falls:** a field belongs to one side or the other depending only on whether it reaches model context.
79
+
80
+ | Reaches context (the model sees it) | Stays out (a human sees it) |
81
+ |---|---|
82
+ | Team name and purpose description | Display metadata: summary, tags, use cases, quick prompts, notes |
83
+ | Captain prompt, member descriptions and member prompts | Category assignment |
84
+ | Each role's model route and tool policy | Accent colors and list ordering |
85
+
86
+ The left column decides how the Team works, so changing it really changes model behavior. The right column only affects cards, the picker, and search results; it costs no tokens no matter how much you write.
87
+
78
88
  ### Local categories and hierarchical filtering
79
89
 
80
90
  - **Category manager:** Click **管理团队预设分类** in the Settings list to open a dedicated management page. Create, rename, reorder, and delete categories, and inspect team counts per category.
@@ -89,4 +99,4 @@ Each Team preset supports rich metadata:
89
99
 
90
100
  - [Install and upgrade](install.md)
91
101
  - [Getting started](getting-started.md) — the illustrated walkthrough, screen by screen.
92
- - [Built-in Teams](../builtin-teams.md) — roles and intended use of all nine presets.
102
+ - [Built-in Teams](../builtin-teams.md) — roles and intended use of all eleven presets.
@@ -50,12 +50,12 @@
50
50
 
51
51
  ### 内置预设
52
52
 
53
- 全新安装会初始化九个可编辑的团队,划分为两大系列——三个研发规模团队与六个工作模式团队:
53
+ 全新安装会初始化十一个可编辑的团队,划分为两大系列——四个研发规模团队与七个工作模式团队:
54
54
 
55
55
  | 系列 | 团队 |
56
56
  |---|---|
57
- | **研发规模系列** | 轻量研发团队 `builtin-lightweight` · 标准研发团队 `builtin-standard` · 全栈软件研发团队 `builtin-fullstack` |
58
- | **工作模式系列** | 需求探索 `builtin-discovery` · 架构规划 `builtin-planning` · 既定工作流执行 `builtin-workflow` · 工程研发协作 `builtin-engineering` · 独立代码与安全审计 `builtin-audit` · 科研协作 `builtin-research` |
57
+ | **研发规模系列** | 轻量研发团队 `builtin-lightweight` · 标准研发团队 `builtin-standard` · 全栈软件研发团队 `builtin-fullstack` · 高质量长程研发团队 `builtin-long-running` |
58
+ | **工作模式系列** | 需求探索 `builtin-discovery` · 架构规划 `builtin-planning` · 既定工作流执行 `builtin-workflow` · 工程研发协作 `builtin-engineering` · 独立代码与安全审计 `builtin-audit` · 科研协作 `builtin-research` · 工程治理团队 `builtin-engineering-governance` |
59
59
 
60
60
  每个预设的角色、适用场景,以及这些角色拿到哪些团队技能,见[内置团队](../builtin-teams.md)与[内置团队技能](../builtin-team-skills.md)。
61
61
 
@@ -75,6 +75,16 @@
75
75
 
76
76
  **Token 保护:** 展示元数据保存在预设文档中,仅在界面与检索中展示,**绝不注入 LLM 运行时提示词中**,不占用任何模型上下文。
77
77
 
78
+ **字段的界线:** 判断一个字段属于哪一侧,只看它会不会进入模型上下文。
79
+
80
+ | 进上下文(模型看得到) | 不进上下文(人看得到) |
81
+ |---|---|
82
+ | 团队名称、用途描述 | 展示元数据:简介、标签、适用场景、推荐任务、备注 |
83
+ | 队长提示词、成员描述与成员提示词 | 所属分类 |
84
+ | 各角色的模型路由与工具策略 | 颜色、列表排序 |
85
+
86
+ 前一组决定团队怎么干活,改动它会真实改变模型行为;后一组只影响卡片、选择器与检索结果,改多少都不消耗 Token。
87
+
78
88
  ### 本地分类与层级筛选
79
89
 
80
90
  - **分类管理页:** 点击设置列表中的 **管理团队预设分类** 即可进入独立管理页。支持新建分类、重命名、上下移动排序以及删除分类,清晰显示每个分类下的团队数量。
@@ -89,4 +99,4 @@
89
99
 
90
100
  - [安装与升级](install.zh.md)
91
101
  - [新手必读(图文)](getting-started.zh.md) —— 逐屏走查。
92
- - [内置团队](../builtin-teams.md) —— 九个预设的角色与适用场景。
102
+ - [内置团队](../builtin-teams.md) —— 十一个预设的角色与适用场景。
package/docs/index.md CHANGED
@@ -15,7 +15,7 @@ Entry point for the `dsh-agent-team-presets` documentation. The [README](../READ
15
15
  | Add the subagent card badges | [Integrations](guide/integrations.md) |
16
16
  | Review agent-facing tools, tool policies, and security boundaries | [Tools and permissions](reference/tools-and-permissions.md) |
17
17
  | Diagnose a Team, member, or install problem | [Troubleshooting](reference/troubleshooting.md) |
18
- | Know what the nine built-in Teams contain and what each role is for | [Built-in Teams](builtin-teams.md) |
18
+ | Know what the eleven built-in Teams contain and what each role is for | [Built-in Teams](builtin-teams.md) |
19
19
  | Know which Team Skill a role receives, and what those skills do | [Built-in Team Skills](builtin-team-skills.md) |
20
20
  | Work on the plugin itself | [Architecture and development](developer/architecture.md) |
21
21
 
@@ -32,8 +32,9 @@ Entry point for the `dsh-agent-team-presets` documentation. The [README](../READ
32
32
  | [docs/reference/tools-and-permissions.md](reference/tools-and-permissions.md) · [中文](reference/tools-and-permissions.zh.md) | Agent-facing tools, policy modes, first-turn registration, security boundaries | yes |
33
33
  | [docs/reference/troubleshooting.md](reference/troubleshooting.md) · [中文](reference/troubleshooting.zh.md) | Configuration overrides, the built-in troubleshooting skill, common issues, known limitations | yes |
34
34
  | [docs/developer/architecture.md](developer/architecture.md) · [中文](developer/architecture.zh.md) | How the plugin integrates, source map, development commands | yes |
35
- | [docs/builtin-teams.md](builtin-teams.md) · [中文](builtin-teams.zh.md) | The nine built-in presets: series, roles, intended use, restore semantics, where the record lives | yes |
36
- | [docs/builtin-team-skills.md](builtin-team-skills.md) · [中文](builtin-team-skills.zh.md) | The ten shipped Team Skills: categories, default bindings per role, local overrides, scope | yes |
35
+ | [docs/developer/client-bundle-size.md](developer/client-bundle-size.md) · [中文](<developer/client-bundle-size.zh.md>) | What the browser bundle contains, the Zod locale shrink, why code splitting was rejected | yes |
36
+ | [docs/builtin-teams.md](builtin-teams.md) · [中文](builtin-teams.zh.md) | The eleven built-in presets: series, roles, intended use, restore semantics, where the record lives | yes |
37
+ | [docs/builtin-team-skills.md](builtin-team-skills.md) · [中文](builtin-team-skills.zh.md) | The fourteen shipped Team Skills: categories, default bindings per role, local overrides, scope | yes |
37
38
  | `docs/internal/` | Development notes, audits, acceptance and release evidence | no — local working material, excluded from the repository |
38
39
 
39
40
  Every public document above ships with the package except the illustrated walkthrough, which references screenshots the tarball does not carry. `docs/internal/` is excluded from the repository itself and is never linked from a public page.