dsh-agent-team-presets 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +57 -3
- package/README.md +73 -398
- package/README.zh.md +79 -404
- package/assets/card-patches/catalog.json +20 -0
- package/assets/card-patches/dsh-context-0.85.0.client.js.gz +0 -0
- package/assets/card-patches/dsh-context-0.85.1.client.js.gz +0 -0
- package/assets/skills/agent-leader-communication/SKILL.md +100 -0
- package/assets/skills/agent-subagent-orchestration/SKILL.md +56 -0
- package/assets/skills/agent-subagent-orchestration/references/executor-parallel-execution.md +56 -0
- package/assets/skills/agent-subagent-orchestration/references/leader-discovery.md +53 -0
- package/assets/skills/agent-subagent-orchestration/references/subagent-communication.md +58 -0
- package/assets/skills/backend-architecture-workflow/SKILL.md +55 -0
- package/assets/skills/backend-architecture-workflow/references/README.md +9 -0
- package/assets/skills/backend-architecture-workflow/references/architecture-audit.md +70 -0
- package/assets/skills/backend-architecture-workflow/references/architecture-decay-risks.md +75 -0
- package/assets/skills/backend-architecture-workflow/references/architecture-design.md +151 -0
- package/assets/skills/backend-architecture-workflow/references/bugfix-regression.md +63 -0
- package/assets/skills/backend-architecture-workflow/references/complex-bug-diagnosis.md +104 -0
- package/assets/skills/executor-short-task-workflow/SKILL.md +48 -0
- package/assets/skills/executor-short-task-workflow/references/agent-communication.md +44 -0
- package/assets/skills/executor-short-task-workflow/references/verification-and-reporting.md +45 -0
- package/assets/skills/frontend-engineering-workflow/SKILL.md +47 -0
- package/assets/skills/frontend-engineering-workflow/references/README.md +7 -0
- package/assets/skills/frontend-engineering-workflow/references/frontend-implementation.md +46 -0
- package/assets/skills/frontend-engineering-workflow/references/visual-design.md +43 -0
- package/assets/skills/frontend-engineering-workflow/references/visual-qa.md +126 -0
- package/assets/skills/fullstack-advisor/SKILL.md +50 -0
- package/assets/skills/fullstack-advisor/references/brooks-principles.md +51 -0
- package/assets/skills/fullstack-advisor/references/consultant-communication.md +51 -0
- package/assets/skills/fullstack-advisor/references/consultation-workflow.md +71 -0
- package/assets/skills/git-release-hygiene/SKILL.md +33 -21
- package/assets/skills/git-release-hygiene/references/git-safety.md +66 -0
- package/assets/skills/git-release-hygiene/references/pr-changelog.md +98 -0
- package/assets/skills/git-release-hygiene/references/release-standard.md +139 -0
- package/assets/skills/git-release-hygiene/references/validation-checklist.md +42 -0
- package/assets/skills/github-repository-presentation/SKILL.md +49 -130
- package/assets/skills/github-repository-presentation/references/bilingual-writing.md +43 -0
- package/assets/skills/github-repository-presentation/references/documentation-architecture.md +156 -0
- package/assets/skills/github-repository-presentation/references/readme-standard.md +273 -0
- package/assets/skills/github-repository-presentation/references/release-notes.md +70 -0
- package/assets/skills/github-repository-presentation/references/validation-checklist.md +47 -0
- package/assets/skills/independent-code-review-workflow/SKILL.md +60 -0
- package/assets/skills/independent-code-review-workflow/references/README.md +9 -0
- package/assets/skills/independent-code-review-workflow/references/decay-risks.md +99 -0
- package/assets/skills/independent-code-review-workflow/references/review-checklist.md +53 -0
- package/assets/skills/independent-code-review-workflow/references/review-methodology.md +113 -0
- package/assets/skills/independent-code-review-workflow/references/review-severity.md +49 -0
- package/assets/skills/independent-code-review-workflow/references/test-quality-review.md +71 -0
- package/assets/skills/leader-long-task-orchestration/SKILL.md +49 -0
- package/assets/skills/leader-long-task-orchestration/references/delivery-plan-template.md +73 -0
- package/assets/skills/leader-long-task-orchestration/references/product-alignment.md +46 -0
- package/assets/skills/leader-long-task-orchestration/references/rolling-wave-planning.md +32 -0
- package/assets/skills/leader-long-task-orchestration/references/technical-decisions-and-escalation.md +34 -0
- package/assets/skills/leader-medium-task-workflow/SKILL.md +55 -0
- package/assets/skills/leader-medium-task-workflow/references/task-board-and-leader-todo.md +41 -0
- package/docs/builtin-team-skills.md +82 -0
- package/docs/builtin-team-skills.zh.md +82 -0
- package/docs/builtin-teams.md +62 -0
- package/docs/builtin-teams.zh.md +62 -0
- package/docs/developer/architecture.md +54 -0
- package/docs/developer/architecture.zh.md +54 -0
- package/docs/guide/install.md +86 -0
- package/docs/guide/install.zh.md +86 -0
- package/docs/guide/integrations.md +50 -0
- package/docs/guide/integrations.zh.md +50 -0
- package/docs/guide/team-skills.md +56 -0
- package/docs/guide/team-skills.zh.md +56 -0
- package/docs/guide/using-teams.md +92 -0
- package/docs/guide/using-teams.zh.md +92 -0
- package/docs/index.md +53 -0
- package/docs/index.zh.md +53 -0
- package/docs/reference/tools-and-permissions.md +62 -0
- package/docs/reference/tools-and-permissions.zh.md +62 -0
- package/docs/reference/troubleshooting.md +59 -0
- package/docs/reference/troubleshooting.zh.md +59 -0
- package/lib/client.js +515 -85
- package/lib/index.js +442 -87
- package/lib/typert.host.js +15 -15
- package/lib/typert.remote-client.d.ts.map +1 -1
- package/lib/typert.remote-client.js +15 -15
- package/lib/types/client/CardPatchView.js +21 -1
- package/lib/types/client/ComposerTeamSelect.js +24 -8
- package/lib/types/client/TeamAgentView.d.ts +1 -1
- package/lib/types/client/TeamAgentView.js +11 -6
- package/lib/types/client/TeamSkillsView.d.ts +2 -1
- package/lib/types/client/TeamSkillsView.js +10 -5
- package/lib/types/client/locales.d.ts +41 -2
- package/lib/types/client/locales.js +125 -0
- package/lib/types/index.js +52 -12
- package/lib/types/team-catalog.d.ts +50 -3
- package/lib/types/team-catalog.js +214 -43
- package/lib/types/team-mode.d.ts +48 -0
- package/lib/types/team-mode.js +64 -0
- package/lib/types/team-skills/index.d.ts +13 -3
- package/lib/types/team-skills/index.js +21 -2
- package/lib/types/team-skills/manager.d.ts +21 -12
- package/lib/types/team-skills/manager.js +88 -53
- package/lib/types/team-skills/service.js +18 -7
- package/lib/types/team-skills/store.d.ts +11 -0
- package/lib/types/team-skills/store.js +32 -1
- package/package.json +18 -2
package/lib/client.js
CHANGED
|
@@ -20367,7 +20367,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20367
20367
|
},
|
|
20368
20368
|
sourceLocation: {
|
|
20369
20369
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20370
|
-
"line":
|
|
20370
|
+
"line": 440,
|
|
20371
20371
|
"column": 9
|
|
20372
20372
|
}
|
|
20373
20373
|
},
|
|
@@ -20417,7 +20417,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20417
20417
|
},
|
|
20418
20418
|
sourceLocation: {
|
|
20419
20419
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20420
|
-
"line":
|
|
20420
|
+
"line": 232,
|
|
20421
20421
|
"column": 9
|
|
20422
20422
|
}
|
|
20423
20423
|
},
|
|
@@ -20483,7 +20483,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20483
20483
|
},
|
|
20484
20484
|
sourceLocation: {
|
|
20485
20485
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20486
|
-
"line":
|
|
20486
|
+
"line": 411,
|
|
20487
20487
|
"column": 9
|
|
20488
20488
|
}
|
|
20489
20489
|
},
|
|
@@ -20517,7 +20517,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20517
20517
|
},
|
|
20518
20518
|
sourceLocation: {
|
|
20519
20519
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20520
|
-
"line":
|
|
20520
|
+
"line": 164,
|
|
20521
20521
|
"column": 9
|
|
20522
20522
|
}
|
|
20523
20523
|
},
|
|
@@ -20585,7 +20585,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20585
20585
|
},
|
|
20586
20586
|
sourceLocation: {
|
|
20587
20587
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20588
|
-
"line":
|
|
20588
|
+
"line": 252,
|
|
20589
20589
|
"column": 9
|
|
20590
20590
|
}
|
|
20591
20591
|
},
|
|
@@ -20786,7 +20786,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20786
20786
|
},
|
|
20787
20787
|
sourceLocation: {
|
|
20788
20788
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20789
|
-
"line":
|
|
20789
|
+
"line": 142,
|
|
20790
20790
|
"column": 9
|
|
20791
20791
|
}
|
|
20792
20792
|
},
|
|
@@ -20820,7 +20820,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20820
20820
|
},
|
|
20821
20821
|
sourceLocation: {
|
|
20822
20822
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20823
|
-
"line":
|
|
20823
|
+
"line": 357,
|
|
20824
20824
|
"column": 9
|
|
20825
20825
|
}
|
|
20826
20826
|
},
|
|
@@ -20884,7 +20884,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20884
20884
|
},
|
|
20885
20885
|
sourceLocation: {
|
|
20886
20886
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20887
|
-
"line":
|
|
20887
|
+
"line": 281,
|
|
20888
20888
|
"column": 9
|
|
20889
20889
|
}
|
|
20890
20890
|
},
|
|
@@ -20973,7 +20973,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20973
20973
|
},
|
|
20974
20974
|
sourceLocation: {
|
|
20975
20975
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20976
|
-
"line":
|
|
20976
|
+
"line": 195,
|
|
20977
20977
|
"column": 9
|
|
20978
20978
|
}
|
|
20979
20979
|
},
|
|
@@ -21007,7 +21007,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21007
21007
|
},
|
|
21008
21008
|
sourceLocation: {
|
|
21009
21009
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
21010
|
-
"line":
|
|
21010
|
+
"line": 387,
|
|
21011
21011
|
"column": 9
|
|
21012
21012
|
}
|
|
21013
21013
|
},
|
|
@@ -21231,7 +21231,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21231
21231
|
},
|
|
21232
21232
|
sourceLocation: {
|
|
21233
21233
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
21234
|
-
"line":
|
|
21234
|
+
"line": 476,
|
|
21235
21235
|
"column": 9
|
|
21236
21236
|
}
|
|
21237
21237
|
},
|
|
@@ -21351,7 +21351,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21351
21351
|
},
|
|
21352
21352
|
sourceLocation: {
|
|
21353
21353
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
21354
|
-
"line":
|
|
21354
|
+
"line": 305,
|
|
21355
21355
|
"column": 9
|
|
21356
21356
|
}
|
|
21357
21357
|
},
|
|
@@ -21604,7 +21604,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21604
21604
|
},
|
|
21605
21605
|
sourceLocation: {
|
|
21606
21606
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
21607
|
-
"line":
|
|
21607
|
+
"line": 462,
|
|
21608
21608
|
"column": 9
|
|
21609
21609
|
}
|
|
21610
21610
|
},
|
|
@@ -21738,7 +21738,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21738
21738
|
},
|
|
21739
21739
|
sourceLocation: {
|
|
21740
21740
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
21741
|
-
"line":
|
|
21741
|
+
"line": 372,
|
|
21742
21742
|
"column": 9
|
|
21743
21743
|
}
|
|
21744
21744
|
},
|
|
@@ -21808,7 +21808,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21808
21808
|
},
|
|
21809
21809
|
sourceLocation: {
|
|
21810
21810
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
21811
|
-
"line":
|
|
21811
|
+
"line": 213,
|
|
21812
21812
|
"column": 9
|
|
21813
21813
|
}
|
|
21814
21814
|
}
|
|
@@ -21973,17 +21973,132 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21973
21973
|
roleName: "repository-specialist"
|
|
21974
21974
|
}];
|
|
21975
21975
|
/**
|
|
21976
|
-
* The
|
|
21977
|
-
*
|
|
21976
|
+
* The leader workflow skills, assigned by default to the `team-lead` captain of
|
|
21977
|
+
* every software engineering Team: dispatching and reporting, the bounded
|
|
21978
|
+
* medium-task board, the long-running delivery plan, and the subagent
|
|
21979
|
+
* orchestration rules a captain needs before it may explore in parallel.
|
|
21978
21980
|
*/
|
|
21979
|
-
const
|
|
21980
|
-
|
|
21981
|
-
|
|
21982
|
-
|
|
21983
|
-
|
|
21984
|
-
|
|
21981
|
+
const OFFICIAL_LEADER_SKILLS = [
|
|
21982
|
+
{
|
|
21983
|
+
skillId: "agent-leader-communication",
|
|
21984
|
+
roleName: "team-lead"
|
|
21985
|
+
},
|
|
21986
|
+
{
|
|
21987
|
+
skillId: "leader-medium-task-workflow",
|
|
21988
|
+
roleName: "team-lead"
|
|
21989
|
+
},
|
|
21990
|
+
{
|
|
21991
|
+
skillId: "leader-long-task-orchestration",
|
|
21992
|
+
roleName: "team-lead"
|
|
21993
|
+
},
|
|
21994
|
+
{
|
|
21995
|
+
skillId: "agent-subagent-orchestration",
|
|
21996
|
+
roleName: "team-lead"
|
|
21997
|
+
}
|
|
21998
|
+
];
|
|
21999
|
+
/**
|
|
22000
|
+
* The advisory workflow skill, assigned by default to the `fullstack-advisor`
|
|
22001
|
+
* role. The advisor stays single-threaded, so it never receives the subagent
|
|
22002
|
+
* orchestration skill.
|
|
22003
|
+
*/
|
|
22004
|
+
const OFFICIAL_ADVISOR_SKILLS = [{
|
|
22005
|
+
skillId: "fullstack-advisor",
|
|
22006
|
+
roleName: "fullstack-advisor"
|
|
21985
22007
|
}];
|
|
21986
22008
|
/**
|
|
22009
|
+
* The delivery skills, assigned by default to the `executor` role of software
|
|
22010
|
+
* engineering Teams: the bounded implementation workflow, the parallel
|
|
22011
|
+
* work-package orchestration rules, and the two repository delivery skills.
|
|
22012
|
+
*/
|
|
22013
|
+
const OFFICIAL_DEVELOPMENT_EXECUTOR_SKILLS = [
|
|
22014
|
+
{
|
|
22015
|
+
skillId: "executor-short-task-workflow",
|
|
22016
|
+
roleName: "executor"
|
|
22017
|
+
},
|
|
22018
|
+
{
|
|
22019
|
+
skillId: "agent-subagent-orchestration",
|
|
22020
|
+
roleName: "executor"
|
|
22021
|
+
},
|
|
22022
|
+
{
|
|
22023
|
+
skillId: "git-release-hygiene",
|
|
22024
|
+
roleName: "executor"
|
|
22025
|
+
},
|
|
22026
|
+
{
|
|
22027
|
+
skillId: "github-repository-presentation",
|
|
22028
|
+
roleName: "executor"
|
|
22029
|
+
}
|
|
22030
|
+
];
|
|
22031
|
+
/**
|
|
22032
|
+
* The default assignments of a software engineering Team that carries an
|
|
22033
|
+
* advisory role: leader, advisor, then executor. `agent-subagent-orchestration`
|
|
22034
|
+
* is deliberately bound to two roles and to no third one.
|
|
22035
|
+
*/
|
|
22036
|
+
const OFFICIAL_DEVELOPMENT_SKILLS = [
|
|
22037
|
+
...OFFICIAL_LEADER_SKILLS,
|
|
22038
|
+
...OFFICIAL_ADVISOR_SKILLS,
|
|
22039
|
+
...OFFICIAL_DEVELOPMENT_EXECUTOR_SKILLS
|
|
22040
|
+
];
|
|
22041
|
+
/**
|
|
22042
|
+
* The professional-role workflows, one main skill per specialist role: the
|
|
22043
|
+
* UI frontend engineer, the backend architect, and the independent reviewer.
|
|
22044
|
+
*
|
|
22045
|
+
* Each is a progressive-loading entry point — the detailed methods live in its
|
|
22046
|
+
* own `references/` folder and are read on demand, never registered as skills
|
|
22047
|
+
* of their own. The reviewer keeps the subagent orchestration rules because a
|
|
22048
|
+
* large, high-risk review may fan out; the two advisory-side roles never
|
|
22049
|
+
* dispatch.
|
|
22050
|
+
*/
|
|
22051
|
+
const OFFICIAL_PROFESSIONAL_SKILLS = [
|
|
22052
|
+
{
|
|
22053
|
+
skillId: "frontend-engineering-workflow",
|
|
22054
|
+
roleName: "ui-designer"
|
|
22055
|
+
},
|
|
22056
|
+
{
|
|
22057
|
+
skillId: "backend-architecture-workflow",
|
|
22058
|
+
roleName: "backend-architect"
|
|
22059
|
+
},
|
|
22060
|
+
{
|
|
22061
|
+
skillId: "independent-code-review-workflow",
|
|
22062
|
+
roleName: "reviewer"
|
|
22063
|
+
},
|
|
22064
|
+
{
|
|
22065
|
+
skillId: "agent-subagent-orchestration",
|
|
22066
|
+
roleName: "reviewer"
|
|
22067
|
+
}
|
|
22068
|
+
];
|
|
22069
|
+
/**
|
|
22070
|
+
* The reviewer's bindings alone.
|
|
22071
|
+
*
|
|
22072
|
+
* The 标准研发团队 has no specialist role, so it declares the leader, advisor,
|
|
22073
|
+
* executor, and reviewer defaults and nothing that names a role it does not
|
|
22074
|
+
* carry — a declaration with no matching role would never resolve, and the
|
|
22075
|
+
* catalog is what the Host reconciles against.
|
|
22076
|
+
*/
|
|
22077
|
+
const OFFICIAL_STANDARD_SKILLS = [
|
|
22078
|
+
...OFFICIAL_LEADER_SKILLS,
|
|
22079
|
+
...OFFICIAL_ADVISOR_SKILLS,
|
|
22080
|
+
{
|
|
22081
|
+
skillId: "independent-code-review-workflow",
|
|
22082
|
+
roleName: "reviewer"
|
|
22083
|
+
},
|
|
22084
|
+
{
|
|
22085
|
+
skillId: "agent-subagent-orchestration",
|
|
22086
|
+
roleName: "reviewer"
|
|
22087
|
+
},
|
|
22088
|
+
...OFFICIAL_DEVELOPMENT_EXECUTOR_SKILLS
|
|
22089
|
+
];
|
|
22090
|
+
/**
|
|
22091
|
+
* The default assignments of the 全栈软件研发团队, whose advisor work is split
|
|
22092
|
+
* into two specialist roles: leader, the frontend and backend workflows, the
|
|
22093
|
+
* reviewer pair, and the executor's own delivery skills. There is no single
|
|
22094
|
+
* `fullstack-advisor` binding, because that Team does not carry that role.
|
|
22095
|
+
*/
|
|
22096
|
+
const OFFICIAL_SPECIALIST_SKILLS = [
|
|
22097
|
+
...OFFICIAL_LEADER_SKILLS,
|
|
22098
|
+
...OFFICIAL_PROFESSIONAL_SKILLS,
|
|
22099
|
+
...OFFICIAL_DEVELOPMENT_EXECUTOR_SKILLS
|
|
22100
|
+
];
|
|
22101
|
+
/**
|
|
21987
22102
|
* The method skills assigned by default to the 需求探索 team: grilling to the
|
|
21988
22103
|
* captain, and research to the two scouting roles that gather evidence for it.
|
|
21989
22104
|
*/
|
|
@@ -22024,28 +22139,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22024
22139
|
"version": 1,
|
|
22025
22140
|
"team": {
|
|
22026
22141
|
"name": "轻量研发团队",
|
|
22027
|
-
"description": "
|
|
22142
|
+
"description": "适合中小型功能迭代与多阶段开发。队长负责需求对齐、任务分级、并行探查与验收;顾问按需提供技术方案和验收契约;执行者负责并行实现、集成与验证。",
|
|
22028
22143
|
"captain": {
|
|
22029
22144
|
"name": "team-lead",
|
|
22030
|
-
"description": "
|
|
22031
|
-
"systemPrompt": "
|
|
22145
|
+
"description": "负责需求对齐、任务分级、团队调度、风险控制与最终验收。",
|
|
22146
|
+
"systemPrompt": "你是团队队长,负责需求对齐、任务分级、成员调度、结果整合与最终验收;仅在用户明确要求团队协作时召集成员。\n\n1. 确认目标、范围、验收、项目规则与权限。产品功能、流程、界面及重大范围由用户裁决;基线内技术方案由团队决定。\n2. 按规模路由:短程直接派发;中程用 `leader-medium-task-workflow`;长程用 `leader-long-task-orchestration`。通信使用 `agent-leader-communication`。\n3. 存在两个或以上独立工程探查方向时,必须用 `agent-subagent-orchestration` 并行探查,不得仅因即时委派成本而默认串行。\n4. 派发时明确任务范围、发现责任和验收;只传递必要事实、路径和符号,避免重复背景。多个独立编码工作包拆分后交执行者按其工作流处理。\n5. 父代理负责整合与最终验收;仅依据可复核证据报告完成,并列明未验证项、阻塞和风险。",
|
|
22032
22147
|
"color": "#4c8dff"
|
|
22033
22148
|
},
|
|
22034
22149
|
"members": [{
|
|
22035
22150
|
"name": "fullstack-advisor",
|
|
22036
|
-
"description": "
|
|
22037
|
-
"systemPrompt": "
|
|
22151
|
+
"description": "按需提供跨层技术决策、方案权衡、风险分析与可执行验收契约;不承担编码。",
|
|
22152
|
+
"systemPrompt": "你是全栈技术顾问,不负责编码、项目调度或产品裁决,保持单线程,不创建孙代理。使用 fullstack-advisor Skill 执行咨询工作流。\n1. 接收队长的决策问题、约束和事实来源;只调查影响判断的必要范围,复用已有调查。\n2. 输出首选方案、关键理由、主要权衡与风险、必要证据位置及可验证验收条件;区分事实、推断和假设。\n3. 功能、业务规则、用户流程和界面歧义交队长向用户确认;技术细节在已批准边界内自主分析。重大范围、兼容、预算或安全影响须标记升级。\n4. 默认只返回决策摘要,详细论证按需展开。不得修改生产代码、测试或脚本;不得把静态分析描述为运行验证。",
|
|
22038
22153
|
"color": "#e0a43c"
|
|
22039
22154
|
}, {
|
|
22040
22155
|
"name": "executor",
|
|
22041
|
-
"description": "
|
|
22042
|
-
"systemPrompt": "
|
|
22156
|
+
"description": "负责获派范围内的编码、调试、测试、修复与验证交接。",
|
|
22157
|
+
"systemPrompt": "你是研发执行者,负责获派范围内的实现、集成与验证。使用 executor-short-task-workflow 执行任务。\n1. 核对项目规则、任务范围、验收和接口契约;功能或界面歧义交队长。\n2. 存在两个或以上实质独立、可分别验收的编码工作包时,必须调用 agent-subagent-orchestration 并行执行,不得仅因即时委派开销而默认串行。先明确接口、文件所有权和局部验收。\n3. 按最小可验证切片实施,沿用项目技术栈,不改无关文件、不覆盖他人产物、不擅自扩大范围。孙代理不得继续派生;你负责检查 diff、集成、冲突处理和最终回归。\n4. 单一局部任务、强依赖或共享文件冲突时不强行并行;宿主能力/名额不足时说明原因并调整。运行与风险匹配的测试、lint、构建或真实链路,未运行不得报通过。\n5. 按 STATUS、TASK_ID、CHANGES、TESTS、BLOCKERS 汇报;证据提供路径和命令,长日志只给位置。Git/Release/仓库文档任务按需使用对应 Skill;push、发布和改写历史需单独授权。",
|
|
22043
22158
|
"color": "#4c8dff"
|
|
22044
22159
|
}]
|
|
22045
22160
|
}
|
|
22046
22161
|
},
|
|
22047
22162
|
metadata: {
|
|
22048
|
-
"summary": "
|
|
22163
|
+
"summary": "三角色协作的小型研发团队,支持按需并行探查与编码。",
|
|
22049
22164
|
"tags": [
|
|
22050
22165
|
"软件研发",
|
|
22051
22166
|
"小团队",
|
|
@@ -22057,44 +22172,90 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22057
22172
|
"小范围重构"
|
|
22058
22173
|
],
|
|
22059
22174
|
"quickPrompts": ["为这个模块增加参数校验并补充测试", "修复这个已定位的缺陷并验证回归"],
|
|
22060
|
-
"notes": "
|
|
22175
|
+
"notes": "官方内置 Skill 共 9 项:队长 4 项、顾问 1 项、执行者 4 项。agent-subagent-orchestration 仅绑定队长与执行者;顾问保持单线程。grilling、research 不属于本团队绑定。"
|
|
22061
22176
|
},
|
|
22062
|
-
officialSkillBindings:
|
|
22177
|
+
officialSkillBindings: OFFICIAL_DEVELOPMENT_SKILLS
|
|
22063
22178
|
},
|
|
22064
22179
|
{
|
|
22065
22180
|
id: "builtin-standard",
|
|
22066
22181
|
series: "classic-development",
|
|
22067
22182
|
document: {
|
|
22068
22183
|
"format": "dsh-agent-team-preset",
|
|
22069
|
-
"version":
|
|
22184
|
+
"version": 2,
|
|
22070
22185
|
"team": {
|
|
22071
22186
|
"name": "标准研发团队",
|
|
22072
|
-
"description": "
|
|
22187
|
+
"description": "适合中型功能、重要重构与持续项目迭代。队长统筹;全栈顾问按需提供跨层技术决策与可执行验收契约;执行者持续研发;代码审查员对代码变更独立验收。",
|
|
22073
22188
|
"captain": {
|
|
22074
22189
|
"name": "team-lead",
|
|
22075
|
-
"description": "
|
|
22076
|
-
"
|
|
22077
|
-
"
|
|
22190
|
+
"description": "负责需求对齐、任务分级、团队调度、风险控制与最终验收。",
|
|
22191
|
+
"color": "#4c8dff",
|
|
22192
|
+
"systemPrompt": "你是团队队长,负责需求对齐、任务分级、成员调度、结果整合与最终验收;仅在用户明确要求团队协作时召集成员。\n\n1. 确认目标、范围、验收、项目规则与权限。产品功能、流程、界面及重大范围由用户裁决;基线内技术方案由团队决定。\n2. 按规模路由:短程直接派发;中程用 `leader-medium-task-workflow`;长程用 `leader-long-task-orchestration`。通信使用 `agent-leader-communication`。reviewer 对有代码变更的交付开展独立审查:高风险切片提前介入,修复后只复审改动差异与相关回归。\n3. 存在两个或以上独立工程探查方向时,必须用 `agent-subagent-orchestration` 并行探查,不得仅因即时委派成本而默认串行。\n4. 派发时明确任务范围、发现责任和验收;只传递必要事实、路径和符号,避免重复背景。多个独立编码工作包拆分后交执行者按其工作流处理。\n5. 父代理负责整合与最终验收;仅依据可复核证据报告完成,并列明未验证项、阻塞和风险。"
|
|
22078
22193
|
},
|
|
22079
22194
|
"members": [
|
|
22080
22195
|
{
|
|
22081
22196
|
"name": "fullstack-advisor",
|
|
22082
|
-
"description": "
|
|
22083
|
-
"systemPrompt": "
|
|
22197
|
+
"description": "全栈顾问:按需提供跨层技术决策、方案权衡、风险分析与可执行验收契约;不承担编码。",
|
|
22198
|
+
"systemPrompt": "你是团队全栈顾问,不负责常规编码、项目调度或产品裁决,保持单线程,不创建孙代理。使用 `fullstack-advisor` Skill 执行咨询工作流。\n1. 接收队长的决策问题、约束和事实来源;只调查影响判断的必要范围,复用已有调查。\n2. 输出首选方案、关键理由、主要权衡与风险、必要证据位置及可验证验收条件;区分事实、推断和假设。\n3. 功能、业务规则、用户流程和界面歧义交队长向用户确认;技术细节在已批准边界内自主分析。重大范围、兼容、预算或安全影响须标记升级。\n4. 默认只返回决策摘要,详细论证按需展开。不得修改生产代码、测试或脚本;不得把静态分析描述为运行验证。",
|
|
22084
22199
|
"color": "#e0a43c"
|
|
22085
22200
|
},
|
|
22086
22201
|
{
|
|
22087
22202
|
"name": "reviewer",
|
|
22088
|
-
"description": "
|
|
22089
|
-
"systemPrompt": "
|
|
22203
|
+
"description": "代码审查员:独立审查所有成员的实际代码变更,验证需求符合性、工程规范、测试有效性及安全/并发/兼容性风险。",
|
|
22204
|
+
"systemPrompt": "你是团队独立代码审查员,审查队长、UI 前端工程师与后端架构师的实际代码变更;保持只读,不修改被审查实现。使用 `independent-code-review-workflow` 作为审查入口,按风险按需加载参考资料。以项目规范和需求为依据,提交可复核的问题、证据及风险;不得将未经验证的判断写成缺陷,必要证据不足时明确说明。\n1. 围绕实际变更、关键调用链与约定的验收契约审查功能、安全权限、并发、兼容迁移和重要界面状态;不无目的扫描全仓。\n2. 确认测试到达目标路径、关键断言能捕获缺陷;mock、全绿和静态检查均不自动等于真实验证。独立复跑前确认权限与隔离范围,不污染共享文件。\n3. 将发现区分为已证实缺陷、待验证风险与建议;按 P0/P1/P2/P3 报告位置、触发条件、影响、证据和最小修复建议。复审聚焦修复差异与相关回归。\n4. 视觉判断需亲自读取实际截图;设计争议交队长协调。结论为通过、需修改或证据不足;必要项未验证不得放行,风险接受交队长裁决。\n5. 沿用既有团队通信规范提交审查结论:先给结论,再列可复核的证据位置、未验证项与待决风险。",
|
|
22090
22205
|
"color": "#8d6bff"
|
|
22091
22206
|
},
|
|
22092
22207
|
{
|
|
22093
22208
|
"name": "executor",
|
|
22094
|
-
"description": "
|
|
22095
|
-
"systemPrompt": "
|
|
22209
|
+
"description": "负责获派范围内的编码、调试、测试、修复与验证交接。",
|
|
22210
|
+
"systemPrompt": "你是研发执行者,负责获派范围内的实现、集成与验证。使用 executor-short-task-workflow 执行任务。\n1. 核对项目规则、任务范围、验收和接口契约;功能或界面歧义交队长。\n2. 存在两个或以上实质独立、可分别验收的编码工作包时,必须调用 agent-subagent-orchestration 并行执行,不得仅因即时委派开销而默认串行。先明确接口、文件所有权和局部验收。\n3. 按最小可验证切片实施,沿用项目技术栈,不改无关文件、不覆盖他人产物、不擅自扩大范围。孙代理不得继续派生;你负责检查 diff、集成、冲突处理和最终回归。\n4. 单一局部任务、强依赖或共享文件冲突时不强行并行;宿主能力/名额不足时说明原因并调整。运行与风险匹配的测试、lint、构建或真实链路,未运行不得报通过。\n5. 按 STATUS、TASK_ID、CHANGES、TESTS、BLOCKERS 汇报;证据提供路径和命令,长日志只给位置。Git/Release/仓库文档任务按需使用对应 Skill;push、发布和改写历史需单独授权。",
|
|
22096
22211
|
"color": "#4c8dff"
|
|
22097
22212
|
}
|
|
22213
|
+
],
|
|
22214
|
+
"officialSkills": [
|
|
22215
|
+
{
|
|
22216
|
+
"skillId": "agent-leader-communication",
|
|
22217
|
+
"roleName": "team-lead"
|
|
22218
|
+
},
|
|
22219
|
+
{
|
|
22220
|
+
"skillId": "leader-medium-task-workflow",
|
|
22221
|
+
"roleName": "team-lead"
|
|
22222
|
+
},
|
|
22223
|
+
{
|
|
22224
|
+
"skillId": "leader-long-task-orchestration",
|
|
22225
|
+
"roleName": "team-lead"
|
|
22226
|
+
},
|
|
22227
|
+
{
|
|
22228
|
+
"skillId": "agent-subagent-orchestration",
|
|
22229
|
+
"roleName": "team-lead"
|
|
22230
|
+
},
|
|
22231
|
+
{
|
|
22232
|
+
"skillId": "fullstack-advisor",
|
|
22233
|
+
"roleName": "fullstack-advisor"
|
|
22234
|
+
},
|
|
22235
|
+
{
|
|
22236
|
+
"skillId": "independent-code-review-workflow",
|
|
22237
|
+
"roleName": "reviewer"
|
|
22238
|
+
},
|
|
22239
|
+
{
|
|
22240
|
+
"skillId": "agent-subagent-orchestration",
|
|
22241
|
+
"roleName": "reviewer"
|
|
22242
|
+
},
|
|
22243
|
+
{
|
|
22244
|
+
"skillId": "executor-short-task-workflow",
|
|
22245
|
+
"roleName": "executor"
|
|
22246
|
+
},
|
|
22247
|
+
{
|
|
22248
|
+
"skillId": "agent-subagent-orchestration",
|
|
22249
|
+
"roleName": "executor"
|
|
22250
|
+
},
|
|
22251
|
+
{
|
|
22252
|
+
"skillId": "git-release-hygiene",
|
|
22253
|
+
"roleName": "executor"
|
|
22254
|
+
},
|
|
22255
|
+
{
|
|
22256
|
+
"skillId": "github-repository-presentation",
|
|
22257
|
+
"roleName": "executor"
|
|
22258
|
+
}
|
|
22098
22259
|
]
|
|
22099
22260
|
}
|
|
22100
22261
|
},
|
|
@@ -22111,50 +22272,100 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22111
22272
|
"持续项目迭代"
|
|
22112
22273
|
],
|
|
22113
22274
|
"quickPrompts": ["实现这个中型功能并完成独立审查", "重构这个模块并保证测试全部通过"],
|
|
22114
|
-
"notes": "
|
|
22275
|
+
"notes": "四个成员(含队长):全栈顾问提供跨层技术决策与验收契约,执行者承担常规实施,代码审查员独立验收。"
|
|
22115
22276
|
},
|
|
22116
|
-
officialSkillBindings:
|
|
22277
|
+
officialSkillBindings: OFFICIAL_STANDARD_SKILLS
|
|
22117
22278
|
},
|
|
22118
22279
|
{
|
|
22119
22280
|
id: "builtin-fullstack",
|
|
22120
22281
|
series: "classic-development",
|
|
22121
22282
|
document: {
|
|
22122
22283
|
"format": "dsh-agent-team-preset",
|
|
22123
|
-
"version":
|
|
22284
|
+
"version": 2,
|
|
22124
22285
|
"team": {
|
|
22125
22286
|
"name": "全栈软件研发团队",
|
|
22126
|
-
"description": "
|
|
22287
|
+
"description": "面向复杂 Web、桌面与 Android 工程。队长调度并验收;UI 前端工程师与后端架构师分别承担前端与后端专业工作;执行者负责常规开发测试;代码审查员独立验收;按风险召集成员并按切片交接。",
|
|
22127
22288
|
"captain": {
|
|
22128
22289
|
"name": "team-lead",
|
|
22129
|
-
"description": "
|
|
22130
|
-
"
|
|
22131
|
-
"
|
|
22290
|
+
"description": "负责需求对齐、任务分级、团队调度、风险控制与最终验收。",
|
|
22291
|
+
"color": "#4c8dff",
|
|
22292
|
+
"systemPrompt": "你是团队队长,负责需求对齐、任务分级、成员调度、结果整合与最终验收;仅在用户明确要求团队协作时召集成员。\n\n1. 确认目标、范围、验收、项目规则与权限。产品功能、流程、界面及重大范围由用户裁决;基线内技术方案由团队决定。\n2. 按规模路由:短程直接派发;中程用 `leader-medium-task-workflow`;长程用 `leader-long-task-orchestration`。通信使用 `agent-leader-communication`。executor 持续实施、调试与测试;接口、安全或系统设计风险咨询 backend-architect;新交互或视觉争议咨询 ui-designer;reviewer 负责高风险阶段与交付前独立审查,顾问按需参与,不默认全员并行。\n3. 存在两个或以上独立工程探查方向时,必须用 `agent-subagent-orchestration` 并行探查,不得仅因即时委派成本而默认串行。\n4. 派发时明确任务范围、发现责任和验收;只传递必要事实、路径和符号,避免重复背景。多个独立编码工作包拆分后交执行者按其工作流处理。\n5. 父代理负责整合与最终验收;仅依据可复核证据报告完成,并列明未验证项、阻塞和风险。"
|
|
22132
22293
|
},
|
|
22133
22294
|
"members": [
|
|
22134
22295
|
{
|
|
22135
22296
|
"name": "backend-architect",
|
|
22136
|
-
"description": "
|
|
22137
|
-
"systemPrompt": "
|
|
22138
|
-
"color": "#
|
|
22297
|
+
"description": "后端架构师:负责后端与系统架构、技术契约、复杂后端 Bug 根因分析与修复,以及高风险技术攻坚。",
|
|
22298
|
+
"systemPrompt": "你是团队后端架构师,负责系统架构、技术契约及复杂后端问题攻坚;可在获派范围内直接修复复杂 Bug 和架构性缺陷。\n常规 API、CRUD、一般业务逻辑和局部易定位 Bug 由队长或其他获派成员承担。使用 `backend-architecture-workflow` 作为专业工作入口,按任务需要加载参考资料。\n\n与 UI 前端工程师对齐接口契约,并明确文件所有权。未经授权不部署、发布、修改生产数据或执行破坏性操作。沿用既有团队通信规范交付决策、证据和验证结果。",
|
|
22299
|
+
"color": "#2fa5b6"
|
|
22139
22300
|
},
|
|
22140
22301
|
{
|
|
22141
22302
|
"name": "ui-designer",
|
|
22142
|
-
"description": "
|
|
22143
|
-
"systemPrompt": "
|
|
22303
|
+
"description": "UI 前端工程师:负责视觉方向、设计系统、前端组件与交互实现、真实页面视觉 QA 和前端缺陷修复。",
|
|
22304
|
+
"systemPrompt": "你是团队 UI 前端工程师,负责视觉方向、设计系统、前端组件与交互实现、真实页面视觉 QA 和前端缺陷修复,可直接修改获派范围内的前端代码和测试。\n常规前端实施按复杂度分配,队长也可自行承担。你不修改后端、数据库或服务端契约;接口语义不清时咨询 backend-architect。\n\n使用 `frontend-engineering-workflow` 作为专业工作入口,按任务需要加载参考资料。与队长或其他写入者协作前明确文件所有权,沿用既有团队通信规范交接结果和验证证据。",
|
|
22144
22305
|
"color": "#2fbf71"
|
|
22145
22306
|
},
|
|
22146
22307
|
{
|
|
22147
22308
|
"name": "reviewer",
|
|
22148
|
-
"description": "
|
|
22149
|
-
"systemPrompt": "
|
|
22309
|
+
"description": "代码审查员:独立审查所有成员的实际代码变更,验证需求符合性、工程规范、测试有效性及安全/并发/兼容性风险。",
|
|
22310
|
+
"systemPrompt": "你是团队独立代码审查员,审查队长、UI 前端工程师与后端架构师的实际代码变更;保持只读,不修改被审查实现。使用 `independent-code-review-workflow` 作为审查入口,按风险按需加载参考资料。以项目规范和需求为依据,提交可复核的问题、证据及风险;不得将未经验证的判断写成缺陷,必要证据不足时明确说明。\n1. 围绕实际变更、关键调用链与约定的验收契约审查功能、安全权限、并发、兼容迁移和重要界面状态;不无目的扫描全仓。\n2. 确认测试到达目标路径、关键断言能捕获缺陷;mock、全绿和静态检查均不自动等于真实验证。独立复跑前确认权限与隔离范围,不污染共享文件。\n3. 将发现区分为已证实缺陷、待验证风险与建议;按 P0/P1/P2/P3 报告位置、触发条件、影响、证据和最小修复建议。复审聚焦修复差异与相关回归。\n4. 视觉判断需亲自读取实际截图;设计争议交队长协调。结论为通过、需修改或证据不足;必要项未验证不得放行,风险接受交队长裁决。\n5. 沿用既有团队通信规范提交审查结论:先给结论,再列可复核的证据位置、未验证项与待决风险。",
|
|
22150
22311
|
"color": "#8d6bff"
|
|
22151
22312
|
},
|
|
22152
22313
|
{
|
|
22153
22314
|
"name": "executor",
|
|
22154
|
-
"description": "
|
|
22155
|
-
"systemPrompt": "
|
|
22315
|
+
"description": "负责获派范围内的编码、调试、测试、修复与验证交接。",
|
|
22316
|
+
"systemPrompt": "你是研发执行者,负责获派范围内的实现、集成与验证。使用 executor-short-task-workflow 执行任务。\n1. 核对项目规则、任务范围、验收和接口契约;功能或界面歧义交队长。\n2. 存在两个或以上实质独立、可分别验收的编码工作包时,必须调用 agent-subagent-orchestration 并行执行,不得仅因即时委派开销而默认串行。先明确接口、文件所有权和局部验收。\n3. 按最小可验证切片实施,沿用项目技术栈,不改无关文件、不覆盖他人产物、不擅自扩大范围。孙代理不得继续派生;你负责检查 diff、集成、冲突处理和最终回归。\n4. 单一局部任务、强依赖或共享文件冲突时不强行并行;宿主能力/名额不足时说明原因并调整。运行与风险匹配的测试、lint、构建或真实链路,未运行不得报通过。\n5. 按 STATUS、TASK_ID、CHANGES、TESTS、BLOCKERS 汇报;证据提供路径和命令,长日志只给位置。Git/Release/仓库文档任务按需使用对应 Skill;push、发布和改写历史需单独授权。",
|
|
22156
22317
|
"color": "#4c8dff"
|
|
22157
22318
|
}
|
|
22319
|
+
],
|
|
22320
|
+
"officialSkills": [
|
|
22321
|
+
{
|
|
22322
|
+
"skillId": "agent-leader-communication",
|
|
22323
|
+
"roleName": "team-lead"
|
|
22324
|
+
},
|
|
22325
|
+
{
|
|
22326
|
+
"skillId": "leader-medium-task-workflow",
|
|
22327
|
+
"roleName": "team-lead"
|
|
22328
|
+
},
|
|
22329
|
+
{
|
|
22330
|
+
"skillId": "leader-long-task-orchestration",
|
|
22331
|
+
"roleName": "team-lead"
|
|
22332
|
+
},
|
|
22333
|
+
{
|
|
22334
|
+
"skillId": "agent-subagent-orchestration",
|
|
22335
|
+
"roleName": "team-lead"
|
|
22336
|
+
},
|
|
22337
|
+
{
|
|
22338
|
+
"skillId": "frontend-engineering-workflow",
|
|
22339
|
+
"roleName": "ui-designer"
|
|
22340
|
+
},
|
|
22341
|
+
{
|
|
22342
|
+
"skillId": "backend-architecture-workflow",
|
|
22343
|
+
"roleName": "backend-architect"
|
|
22344
|
+
},
|
|
22345
|
+
{
|
|
22346
|
+
"skillId": "independent-code-review-workflow",
|
|
22347
|
+
"roleName": "reviewer"
|
|
22348
|
+
},
|
|
22349
|
+
{
|
|
22350
|
+
"skillId": "agent-subagent-orchestration",
|
|
22351
|
+
"roleName": "reviewer"
|
|
22352
|
+
},
|
|
22353
|
+
{
|
|
22354
|
+
"skillId": "executor-short-task-workflow",
|
|
22355
|
+
"roleName": "executor"
|
|
22356
|
+
},
|
|
22357
|
+
{
|
|
22358
|
+
"skillId": "agent-subagent-orchestration",
|
|
22359
|
+
"roleName": "executor"
|
|
22360
|
+
},
|
|
22361
|
+
{
|
|
22362
|
+
"skillId": "git-release-hygiene",
|
|
22363
|
+
"roleName": "executor"
|
|
22364
|
+
},
|
|
22365
|
+
{
|
|
22366
|
+
"skillId": "github-repository-presentation",
|
|
22367
|
+
"roleName": "executor"
|
|
22368
|
+
}
|
|
22158
22369
|
]
|
|
22159
22370
|
}
|
|
22160
22371
|
},
|
|
@@ -22171,9 +22382,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22171
22382
|
"复杂重构"
|
|
22172
22383
|
],
|
|
22173
22384
|
"quickPrompts": ["为现有项目增加用户认证模块并验证", "统一 Web 与桌面端的设置页面交互"],
|
|
22174
|
-
"notes": "
|
|
22385
|
+
"notes": "五个成员(含队长):顾问职责拆成 UI 前端工程师与后端架构师两个专业角色,执行者承担常规实施,代码审查员独立验收;跨端一致性由队长裁定。"
|
|
22175
22386
|
},
|
|
22176
|
-
officialSkillBindings:
|
|
22387
|
+
officialSkillBindings: OFFICIAL_SPECIALIST_SKILLS
|
|
22177
22388
|
},
|
|
22178
22389
|
{
|
|
22179
22390
|
id: "builtin-discovery",
|
|
@@ -22939,6 +23150,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22939
23150
|
patchUnavailable: "This session cannot read the integrations state.",
|
|
22940
23151
|
patchStateAbsent: "not installed",
|
|
22941
23152
|
patchStateUnsupported: "version not supported",
|
|
23153
|
+
patchUnsupportedReason: "installed {installed}, this build supports up to {supported}",
|
|
22942
23154
|
patchStatePristine: "not patched",
|
|
22943
23155
|
patchStatePatched: "patched",
|
|
22944
23156
|
patchStateForeign: "modified by something else",
|
|
@@ -23097,7 +23309,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23097
23309
|
composerMissingMember: "Missing member: {member} (team {team})",
|
|
23098
23310
|
skillsAssignHint: "Checked skills belong to this member only. They are discovered through this Agent scope, never globally.",
|
|
23099
23311
|
skillsAssignEmpty: "No team skill is installed yet. Add one on the Team skills page.",
|
|
23100
|
-
skillsOverrideOn: "a local override is active"
|
|
23312
|
+
skillsOverrideOn: "a local override is active",
|
|
23313
|
+
skillAgentLeaderCommunication: "agent-leader-communication",
|
|
23314
|
+
skillLeaderMediumTaskWorkflow: "leader-medium-task-workflow",
|
|
23315
|
+
skillLeaderLongTaskOrchestration: "leader-long-task-orchestration",
|
|
23316
|
+
skillAgentSubagentOrchestration: "agent-subagent-orchestration",
|
|
23317
|
+
skillFullstackAdvisor: "fullstack-advisor",
|
|
23318
|
+
skillExecutorShortTaskWorkflow: "executor-short-task-workflow",
|
|
23319
|
+
skillGithubRepositoryPresentation: "github-repository-presentation",
|
|
23320
|
+
skillGitReleaseHygiene: "git-release-hygiene",
|
|
23321
|
+
skillFrontendEngineeringWorkflow: "frontend-engineering-workflow",
|
|
23322
|
+
skillBackendArchitectureWorkflow: "backend-architecture-workflow",
|
|
23323
|
+
skillIndependentCodeReviewWorkflow: "independent-code-review-workflow",
|
|
23324
|
+
skillGrilling: "grilling",
|
|
23325
|
+
skillResearch: "research",
|
|
23326
|
+
skillsCategoryAll: "All categories",
|
|
23327
|
+
skillsCategoryWorkflow: "Workflow",
|
|
23328
|
+
skillsCategoryDelivery: "Delivery",
|
|
23329
|
+
skillsCategoryMethod: "Method",
|
|
23330
|
+
skillsCategoryCustom: "Custom",
|
|
23331
|
+
skillsFilterEmpty: "No skill in this category."
|
|
23101
23332
|
};
|
|
23102
23333
|
/** Simplified Chinese copy. */
|
|
23103
23334
|
const zh = {
|
|
@@ -23279,6 +23510,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23279
23510
|
patchUnavailable: "当前会话无法读取插件联动状态。",
|
|
23280
23511
|
patchStateAbsent: "未安装",
|
|
23281
23512
|
patchStateUnsupported: "版本不支持",
|
|
23513
|
+
patchUnsupportedReason: "已安装 {installed},本版本最高适配 {supported}",
|
|
23282
23514
|
patchStatePristine: "未打补丁",
|
|
23283
23515
|
patchStatePatched: "已打补丁",
|
|
23284
23516
|
patchStateForeign: "已被其他改动修改",
|
|
@@ -23437,9 +23669,117 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23437
23669
|
composerMissingMember: "成员已失效:{member}(团队 {team})",
|
|
23438
23670
|
skillsAssignHint: "勾选的技能只属于这名成员,通过该 Agent 的作用域发现,不会全局注册。",
|
|
23439
23671
|
skillsAssignEmpty: "还没有安装任何团队技能,请先到「团队技能」页添加。",
|
|
23440
|
-
skillsOverrideOn: "已启用本地覆盖"
|
|
23672
|
+
skillsOverrideOn: "已启用本地覆盖",
|
|
23673
|
+
skillAgentLeaderCommunication: "队长派发与通信",
|
|
23674
|
+
skillLeaderMediumTaskWorkflow: "中程任务工作流",
|
|
23675
|
+
skillLeaderLongTaskOrchestration: "长程任务编排",
|
|
23676
|
+
skillAgentSubagentOrchestration: "孙代理并行编排",
|
|
23677
|
+
skillFullstackAdvisor: "全栈技术咨询",
|
|
23678
|
+
skillExecutorShortTaskWorkflow: "执行者短程工作流",
|
|
23679
|
+
skillGithubRepositoryPresentation: "仓库展示规范",
|
|
23680
|
+
skillGitReleaseHygiene: "Git 提交与发布规范",
|
|
23681
|
+
skillFrontendEngineeringWorkflow: "前端工程工作流",
|
|
23682
|
+
skillBackendArchitectureWorkflow: "后端架构工作流",
|
|
23683
|
+
skillIndependentCodeReviewWorkflow: "独立代码审查工作流",
|
|
23684
|
+
skillGrilling: "需求拷问",
|
|
23685
|
+
skillResearch: "一手来源调研",
|
|
23686
|
+
skillsCategoryAll: "全部分类",
|
|
23687
|
+
skillsCategoryWorkflow: "工作流型",
|
|
23688
|
+
skillsCategoryDelivery: "交付型",
|
|
23689
|
+
skillsCategoryMethod: "方法型",
|
|
23690
|
+
skillsCategoryCustom: "自定义",
|
|
23691
|
+
skillsFilterEmpty: "该分类下暂无技能。"
|
|
23692
|
+
};
|
|
23693
|
+
/**
|
|
23694
|
+
* Display names of the shipped Team Skills, keyed by the English skill id.
|
|
23695
|
+
*
|
|
23696
|
+
* The id is the asset's identity on every other surface — the skill catalogue
|
|
23697
|
+
* the model reads, the stored binding, the preset document, and the asset
|
|
23698
|
+
* directory — so the label is presentation only and never reaches the runtime or
|
|
23699
|
+
* the disk. English carries the original id rather than a prose title, so an
|
|
23700
|
+
* English page shows exactly the name every other surface already uses.
|
|
23701
|
+
*/
|
|
23702
|
+
const SKILL_LABEL_KEYS = {
|
|
23703
|
+
"agent-leader-communication": "skillAgentLeaderCommunication",
|
|
23704
|
+
"leader-medium-task-workflow": "skillLeaderMediumTaskWorkflow",
|
|
23705
|
+
"leader-long-task-orchestration": "skillLeaderLongTaskOrchestration",
|
|
23706
|
+
"agent-subagent-orchestration": "skillAgentSubagentOrchestration",
|
|
23707
|
+
"fullstack-advisor": "skillFullstackAdvisor",
|
|
23708
|
+
"executor-short-task-workflow": "skillExecutorShortTaskWorkflow",
|
|
23709
|
+
"github-repository-presentation": "skillGithubRepositoryPresentation",
|
|
23710
|
+
"git-release-hygiene": "skillGitReleaseHygiene",
|
|
23711
|
+
"frontend-engineering-workflow": "skillFrontendEngineeringWorkflow",
|
|
23712
|
+
"backend-architecture-workflow": "skillBackendArchitectureWorkflow",
|
|
23713
|
+
"independent-code-review-workflow": "skillIndependentCodeReviewWorkflow",
|
|
23714
|
+
"grilling": "skillGrilling",
|
|
23715
|
+
"research": "skillResearch"
|
|
23716
|
+
};
|
|
23717
|
+
/**
|
|
23718
|
+
* The name one Team Skill is shown under.
|
|
23719
|
+
* @param skillId - the asset's English identity.
|
|
23720
|
+
* @param t - the page's locale reader.
|
|
23721
|
+
* @returns the localized label, or the English id for a skill this build does not ship.
|
|
23722
|
+
*/
|
|
23723
|
+
function skillLabel(skillId, t) {
|
|
23724
|
+
const key = SKILL_LABEL_KEYS[skillId];
|
|
23725
|
+
return key === void 0 ? skillId : t(key);
|
|
23726
|
+
}
|
|
23727
|
+
/**
|
|
23728
|
+
* The filter categories of a Team Skill list, in menu order.
|
|
23729
|
+
*
|
|
23730
|
+
* They describe the kind of work a shipped skill belongs to rather than the role
|
|
23731
|
+
* that happens to hold it, so a skill keeps its category when a Team re-binds it.
|
|
23732
|
+
* Everything this build does not ship — a user's own skill, and a shipped id a
|
|
23733
|
+
* newer release added before this table learned about it — is "custom".
|
|
23734
|
+
*/
|
|
23735
|
+
const SKILL_CATEGORIES = [
|
|
23736
|
+
"workflow",
|
|
23737
|
+
"delivery",
|
|
23738
|
+
"method",
|
|
23739
|
+
"custom"
|
|
23740
|
+
];
|
|
23741
|
+
/** Locale key of one category's label. */
|
|
23742
|
+
const SKILL_CATEGORY_LABELS = {
|
|
23743
|
+
workflow: "skillsCategoryWorkflow",
|
|
23744
|
+
delivery: "skillsCategoryDelivery",
|
|
23745
|
+
method: "skillsCategoryMethod",
|
|
23746
|
+
custom: "skillsCategoryCustom"
|
|
23441
23747
|
};
|
|
23442
23748
|
/**
|
|
23749
|
+
* The category of every shipped skill, keyed by the English skill id.
|
|
23750
|
+
*
|
|
23751
|
+
* A shipped skill the table does not name falls back to "custom", which is why
|
|
23752
|
+
* the package's own test proves the table covers every shipped id: the fallback
|
|
23753
|
+
* is for a skill this build did not ship, never for one it did.
|
|
23754
|
+
*/
|
|
23755
|
+
const SHIPPED_SKILL_CATEGORIES = {
|
|
23756
|
+
"agent-leader-communication": "workflow",
|
|
23757
|
+
"leader-medium-task-workflow": "workflow",
|
|
23758
|
+
"leader-long-task-orchestration": "workflow",
|
|
23759
|
+
"agent-subagent-orchestration": "workflow",
|
|
23760
|
+
"fullstack-advisor": "workflow",
|
|
23761
|
+
"executor-short-task-workflow": "workflow",
|
|
23762
|
+
"github-repository-presentation": "delivery",
|
|
23763
|
+
"git-release-hygiene": "delivery",
|
|
23764
|
+
"frontend-engineering-workflow": "workflow",
|
|
23765
|
+
"backend-architecture-workflow": "workflow",
|
|
23766
|
+
"independent-code-review-workflow": "workflow",
|
|
23767
|
+
"grilling": "method",
|
|
23768
|
+
"research": "method"
|
|
23769
|
+
};
|
|
23770
|
+
/**
|
|
23771
|
+
* The category one asset is filtered under.
|
|
23772
|
+
*
|
|
23773
|
+
* A local override of a shipped skill stays with that skill's category: it is the
|
|
23774
|
+
* same skill, edited. Only a skill the user brought in themselves is "custom".
|
|
23775
|
+
* @param asset - the asset row, as the page received it.
|
|
23776
|
+
* @returns its filter category.
|
|
23777
|
+
*/
|
|
23778
|
+
function skillCategoryOf(asset) {
|
|
23779
|
+
if (asset.origin === "custom") return "custom";
|
|
23780
|
+
return SHIPPED_SKILL_CATEGORIES[asset.officialSkillId ?? asset.skillId] ?? "custom";
|
|
23781
|
+
}
|
|
23782
|
+
/**
|
|
23443
23783
|
* Locale key for one Host disclosure about how the applied Team runs.
|
|
23444
23784
|
*
|
|
23445
23785
|
* A Host disclosure is a locale key, so the page renders it in the reader's own
|
|
@@ -23602,6 +23942,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23602
23942
|
/** Space kept between the panel and the viewport edge before it flips sides. */
|
|
23603
23943
|
const PANEL_VIEWPORT_MARGIN_PX = 8;
|
|
23604
23944
|
/**
|
|
23945
|
+
* Role identity a binding uses for the captain slot.
|
|
23946
|
+
*
|
|
23947
|
+
* The shipped captain carries its own workflow skills, so the panel reads that
|
|
23948
|
+
* slot too. It mirrors the Host's own sentinel rather than a member's id: the
|
|
23949
|
+
* captain slot is not a member and is addressed by this name in every binding.
|
|
23950
|
+
*/
|
|
23951
|
+
const CAPTAIN_ROLE = "captain";
|
|
23952
|
+
/**
|
|
23605
23953
|
* Render one member's configured route as `provider · model`.
|
|
23606
23954
|
*
|
|
23607
23955
|
* An empty provider and model is the Session route, which the caller renders
|
|
@@ -23664,23 +24012,29 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23664
24012
|
const [series, setSeries] = (0, react.useState)("all");
|
|
23665
24013
|
const [categoryId, setCategoryId] = (0, react.useState)("");
|
|
23666
24014
|
/**
|
|
23667
|
-
* Team Skills bound to each
|
|
24015
|
+
* Team Skills bound to each role of the Team whose panel is open, keyed by the
|
|
24016
|
+
* role a selection addresses: the captain slot under {@link CAPTAIN_ROLE}, and
|
|
24017
|
+
* every member under its own id.
|
|
23668
24018
|
*
|
|
23669
24019
|
* Only the roles' own bindings count: a captain's skills are not a member's,
|
|
23670
|
-
* and a skill the library does not list has nothing to show.
|
|
24020
|
+
* and a skill the library does not list has nothing to show. The captain is
|
|
24021
|
+
* read alongside the members because a shipped captain carries workflow skills
|
|
24022
|
+
* of its own, and the row that starts a captain conversation has to say so.
|
|
23671
24023
|
*/
|
|
23672
24024
|
const skillNamesByRole = (0, react.useMemo)(() => {
|
|
23673
24025
|
const byRole = /* @__PURE__ */ new Map();
|
|
23674
24026
|
const assets = skillsState.library?.assets ?? [];
|
|
23675
24027
|
if (hoverTeamId === void 0) return byRole;
|
|
23676
24028
|
for (const asset of assets) for (const binding of asset.bindings) {
|
|
23677
|
-
if (binding.teamId !== hoverTeamId
|
|
23678
|
-
const
|
|
24029
|
+
if (binding.teamId !== hoverTeamId) continue;
|
|
24030
|
+
const bindingRoleId = binding.captain ? CAPTAIN_ROLE : binding.roleId;
|
|
24031
|
+
const names = byRole.get(bindingRoleId) ?? [];
|
|
23679
24032
|
if (!names.includes(asset.skillId)) names.push(asset.skillId);
|
|
23680
|
-
byRole.set(
|
|
24033
|
+
byRole.set(bindingRoleId, names);
|
|
23681
24034
|
}
|
|
23682
24035
|
return byRole;
|
|
23683
24036
|
}, [skillsState.library, hoverTeamId]);
|
|
24037
|
+
const captainSkillIds = hoverTeamId === void 0 ? [] : skillNamesByRole.get(CAPTAIN_ROLE) ?? [];
|
|
23684
24038
|
/** Cancel a pending panel close, so a hover that continues keeps the panel up. */
|
|
23685
24039
|
const cancelHoverClose = () => {
|
|
23686
24040
|
if (hoverTimer.current === void 0) return;
|
|
@@ -24050,6 +24404,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24050
24404
|
hoverTeam.captain.description.trim() === "" ? null : (0, react_jsx_runtime.jsx)("span", {
|
|
24051
24405
|
className: ComposerTeamSelect_module_css_default.panelDesc,
|
|
24052
24406
|
children: hoverTeam.captain.description
|
|
24407
|
+
}),
|
|
24408
|
+
captainSkillIds.length === 0 ? null : (0, react_jsx_runtime.jsx)("span", {
|
|
24409
|
+
className: ComposerTeamSelect_module_css_default.panelSkillTags,
|
|
24410
|
+
children: captainSkillIds.map((name) => (0, react_jsx_runtime.jsx)("span", {
|
|
24411
|
+
className: ComposerTeamSelect_module_css_default.panelSkillTag,
|
|
24412
|
+
style: skillTagStyle(name),
|
|
24413
|
+
title: name,
|
|
24414
|
+
children: skillLabel(name, t)
|
|
24415
|
+
}, name))
|
|
24053
24416
|
})
|
|
24054
24417
|
]
|
|
24055
24418
|
}),
|
|
@@ -24099,7 +24462,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24099
24462
|
children: boundNames.map((name) => (0, react_jsx_runtime.jsx)("span", {
|
|
24100
24463
|
className: ComposerTeamSelect_module_css_default.panelSkillTag,
|
|
24101
24464
|
style: skillTagStyle(name),
|
|
24102
|
-
|
|
24465
|
+
title: name,
|
|
24466
|
+
children: skillLabel(name, t)
|
|
24103
24467
|
}, name))
|
|
24104
24468
|
}),
|
|
24105
24469
|
selectable ? null : (0, react_jsx_runtime.jsx)("span", {
|
|
@@ -26968,6 +27332,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26968
27332
|
}, [props.controller]);
|
|
26969
27333
|
const assets = state.library?.assets ?? [];
|
|
26970
27334
|
const held = new Set(assets.filter((asset) => asset.bindings.some((row) => row.teamId === props.teamId && row.roleId === props.roleId)).map((asset) => asset.id));
|
|
27335
|
+
const [category, setCategory] = (0, react.useState)("all");
|
|
27336
|
+
const visible = category === "all" ? assets : assets.filter((asset) => skillCategoryOf(asset) === category);
|
|
26971
27337
|
if (state.status === "unavailable") return null;
|
|
26972
27338
|
return (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
26973
27339
|
className: TeamPresetsSection_module_css_default.sepTitle,
|
|
@@ -26991,16 +27357,34 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26991
27357
|
assets.length === 0 ? (0, react_jsx_runtime.jsx)("p", {
|
|
26992
27358
|
className: TeamPresetsSection_module_css_default.muted,
|
|
26993
27359
|
children: props.t("skillsAssignEmpty")
|
|
27360
|
+
}) : (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsxs)("select", {
|
|
27361
|
+
className: TeamPresetsSection_module_css_default.select,
|
|
27362
|
+
"aria-label": props.t("skillsCategoryAll"),
|
|
27363
|
+
value: category,
|
|
27364
|
+
onChange: (event) => {
|
|
27365
|
+
setCategory(event.target.value);
|
|
27366
|
+
},
|
|
27367
|
+
children: [(0, react_jsx_runtime.jsx)("option", {
|
|
27368
|
+
value: "all",
|
|
27369
|
+
children: props.t("skillsCategoryAll")
|
|
27370
|
+
}), SKILL_CATEGORIES.map((id) => (0, react_jsx_runtime.jsx)("option", {
|
|
27371
|
+
value: id,
|
|
27372
|
+
children: props.t(SKILL_CATEGORY_LABELS[id])
|
|
27373
|
+
}, id))]
|
|
27374
|
+
}), visible.length === 0 ? (0, react_jsx_runtime.jsx)("p", {
|
|
27375
|
+
className: TeamPresetsSection_module_css_default.muted,
|
|
27376
|
+
children: props.t("skillsFilterEmpty")
|
|
26994
27377
|
}) : (0, react_jsx_runtime.jsx)("div", {
|
|
26995
27378
|
className: TeamPresetsSection_module_css_default.skillGrid,
|
|
26996
|
-
children:
|
|
27379
|
+
children: visible.map((asset) => (0, react_jsx_runtime.jsxs)("label", {
|
|
26997
27380
|
className: TeamPresetsSection_module_css_default.skillCard,
|
|
26998
27381
|
children: [
|
|
26999
27382
|
(0, react_jsx_runtime.jsxs)("span", {
|
|
27000
27383
|
className: TeamPresetsSection_module_css_default.skillCardTop,
|
|
27001
27384
|
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
27002
27385
|
className: TeamPresetsSection_module_css_default.skillCardName,
|
|
27003
|
-
|
|
27386
|
+
title: asset.skillId,
|
|
27387
|
+
children: skillLabel(asset.skillId, props.t)
|
|
27004
27388
|
}), (0, react_jsx_runtime.jsx)("input", {
|
|
27005
27389
|
type: "checkbox",
|
|
27006
27390
|
checked: held.has(asset.id),
|
|
@@ -27020,7 +27404,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
27020
27404
|
})
|
|
27021
27405
|
]
|
|
27022
27406
|
}, asset.id))
|
|
27023
|
-
}),
|
|
27407
|
+
})] }),
|
|
27024
27408
|
state.message === void 0 ? null : (0, react_jsx_runtime.jsx)("p", {
|
|
27025
27409
|
className: TeamPresetsSection_module_css_default.muted,
|
|
27026
27410
|
children: state.message
|
|
@@ -28672,6 +29056,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28672
29056
|
const [page, setPage] = (0, react.useState)({ kind: "list" });
|
|
28673
29057
|
const [query, setQuery] = (0, react.useState)("");
|
|
28674
29058
|
const [origin, setOrigin] = (0, react.useState)("all");
|
|
29059
|
+
const [category, setCategory] = (0, react.useState)("all");
|
|
28675
29060
|
const [draft, setDraft] = (0, react.useState)("");
|
|
28676
29061
|
const [creating, setCreating] = (0, react.useState)(false);
|
|
28677
29062
|
const [name, setName] = (0, react.useState)("");
|
|
@@ -28691,12 +29076,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28691
29076
|
const assets = state.library?.assets ?? [];
|
|
28692
29077
|
const visible = (0, react.useMemo)(() => assets.filter((asset) => {
|
|
28693
29078
|
const matchesOrigin = origin === "all" || (origin === "builtin" ? asset.origin === "builtin" : asset.origin !== "builtin");
|
|
28694
|
-
const
|
|
28695
|
-
|
|
29079
|
+
const matchesCategory = category === "all" || skillCategoryOf(asset) === category;
|
|
29080
|
+
const haystack = `${skillLabel(asset.skillId, t)} ${asset.skillId} ${asset.description}`.toLocaleLowerCase();
|
|
29081
|
+
return matchesOrigin && matchesCategory && query.trim().split(/\s+/u).every((token) => haystack.includes(token.toLocaleLowerCase()));
|
|
28696
29082
|
}), [
|
|
28697
29083
|
assets,
|
|
28698
29084
|
origin,
|
|
28699
|
-
|
|
29085
|
+
category,
|
|
29086
|
+
query,
|
|
29087
|
+
t
|
|
28700
29088
|
]);
|
|
28701
29089
|
const detail = state.detail;
|
|
28702
29090
|
const selected = page.kind === "detail" ? assets.find((asset) => asset.id === page.assetId) : void 0;
|
|
@@ -28742,9 +29130,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28742
29130
|
className: TeamSkillsView_module_css_default.empty,
|
|
28743
29131
|
children: t("skillsEmpty")
|
|
28744
29132
|
}) : (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
28745
|
-
(0, react_jsx_runtime.
|
|
29133
|
+
(0, react_jsx_runtime.jsxs)("h2", {
|
|
28746
29134
|
className: TeamSkillsView_module_css_default.title,
|
|
28747
|
-
children:
|
|
29135
|
+
children: [
|
|
29136
|
+
skillLabel(detail.asset.skillId, t),
|
|
29137
|
+
" ",
|
|
29138
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
29139
|
+
className: TeamSkillsView_module_css_default.muted,
|
|
29140
|
+
children: detail.asset.skillId
|
|
29141
|
+
})
|
|
29142
|
+
]
|
|
28748
29143
|
}),
|
|
28749
29144
|
(0, react_jsx_runtime.jsx)("p", {
|
|
28750
29145
|
className: TeamSkillsView_module_css_default.sub,
|
|
@@ -29153,16 +29548,30 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29153
29548
|
})
|
|
29154
29549
|
]
|
|
29155
29550
|
}),
|
|
29156
|
-
(0, react_jsx_runtime.
|
|
29551
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
29157
29552
|
className: TeamSkillsView_module_css_default.toolbar,
|
|
29158
|
-
children: (0, react_jsx_runtime.jsx)("input", {
|
|
29553
|
+
children: [(0, react_jsx_runtime.jsx)("input", {
|
|
29159
29554
|
className: TeamSkillsView_module_css_default.search,
|
|
29160
29555
|
value: query,
|
|
29161
29556
|
placeholder: t("skillsSearch"),
|
|
29162
29557
|
onChange: (event) => {
|
|
29163
29558
|
setQuery(event.target.value);
|
|
29164
29559
|
}
|
|
29165
|
-
})
|
|
29560
|
+
}), (0, react_jsx_runtime.jsxs)("select", {
|
|
29561
|
+
className: TeamPresetsSection_module_css_default.select,
|
|
29562
|
+
"aria-label": t("skillsCategoryAll"),
|
|
29563
|
+
value: category,
|
|
29564
|
+
onChange: (event) => {
|
|
29565
|
+
setCategory(event.target.value);
|
|
29566
|
+
},
|
|
29567
|
+
children: [(0, react_jsx_runtime.jsx)("option", {
|
|
29568
|
+
value: "all",
|
|
29569
|
+
children: t("skillsCategoryAll")
|
|
29570
|
+
}), SKILL_CATEGORIES.map((id) => (0, react_jsx_runtime.jsx)("option", {
|
|
29571
|
+
value: id,
|
|
29572
|
+
children: t(SKILL_CATEGORY_LABELS[id])
|
|
29573
|
+
}, id))]
|
|
29574
|
+
})]
|
|
29166
29575
|
}),
|
|
29167
29576
|
(0, react_jsx_runtime.jsxs)("div", {
|
|
29168
29577
|
className: TeamSkillsView_module_css_default.segment,
|
|
@@ -29197,7 +29606,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29197
29606
|
className: TeamSkillsView_module_css_default.rowlist,
|
|
29198
29607
|
children: visible.length === 0 ? (0, react_jsx_runtime.jsx)("div", {
|
|
29199
29608
|
className: TeamSkillsView_module_css_default.empty,
|
|
29200
|
-
children: t("skillsEmpty")
|
|
29609
|
+
children: assets.length === 0 ? t("skillsEmpty") : t("skillsFilterEmpty")
|
|
29201
29610
|
}) : visible.map((asset) => (0, react_jsx_runtime.jsxs)("button", {
|
|
29202
29611
|
type: "button",
|
|
29203
29612
|
className: TeamSkillsView_module_css_default.row,
|
|
@@ -29215,7 +29624,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29215
29624
|
children: [(0, react_jsx_runtime.jsxs)("span", {
|
|
29216
29625
|
className: TeamSkillsView_module_css_default.rowTitle,
|
|
29217
29626
|
children: [
|
|
29218
|
-
asset.skillId,
|
|
29627
|
+
skillLabel(asset.skillId, t),
|
|
29628
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
29629
|
+
className: TeamSkillsView_module_css_default.muted,
|
|
29630
|
+
children: asset.skillId
|
|
29631
|
+
}),
|
|
29219
29632
|
(0, react_jsx_runtime.jsx)("span", {
|
|
29220
29633
|
className: `${TeamPresetsSection_module_css_default.originTag} ${originTone(TeamPresetsSection_module_css_default, asset.origin)}`,
|
|
29221
29634
|
children: originLabel(asset, t)
|
|
@@ -29455,6 +29868,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29455
29868
|
return (target.supportedVersions ?? [target.supportedVersion]).join(", ");
|
|
29456
29869
|
}
|
|
29457
29870
|
/**
|
|
29871
|
+
* The reason one row cannot be acted on.
|
|
29872
|
+
*
|
|
29873
|
+
* The Host states every refusal in English. The one an operator has to act on —
|
|
29874
|
+
* an installed upstream version this build predates — is restated here in the
|
|
29875
|
+
* reader's own language with both versions named, because "which one do I
|
|
29876
|
+
* update" is the only question that state raises, and reading it off two fields
|
|
29877
|
+
* is work the row can do itself. Every other refusal keeps the Host's sentence:
|
|
29878
|
+
* this view has nothing to add to those.
|
|
29879
|
+
* @param target - the row.
|
|
29880
|
+
* @param t - the page's copy reader.
|
|
29881
|
+
* @returns the sentence to show, or undefined when the row has no reason to give.
|
|
29882
|
+
*/
|
|
29883
|
+
function reasonOf(target, t) {
|
|
29884
|
+
if (target.state !== "unsupported") return target.detail;
|
|
29885
|
+
return t("patchUnsupportedReason").replace("{installed}", target.installedVersion ?? "—").replace("{supported}", target.supportedVersion);
|
|
29886
|
+
}
|
|
29887
|
+
/**
|
|
29458
29888
|
* Render one target with its state and the action that state allows.
|
|
29459
29889
|
* @param props - the row facts and the action callback.
|
|
29460
29890
|
* @returns the row.
|
|
@@ -29497,9 +29927,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29497
29927
|
})
|
|
29498
29928
|
]
|
|
29499
29929
|
}),
|
|
29500
|
-
target
|
|
29930
|
+
reasonOf(target, t) === void 0 ? null : (0, react_jsx_runtime.jsx)("p", {
|
|
29501
29931
|
className: CardPatchView_module_css_default.detail,
|
|
29502
|
-
children: target
|
|
29932
|
+
children: reasonOf(target, t)
|
|
29503
29933
|
}),
|
|
29504
29934
|
busy && phase !== void 0 ? (0, react_jsx_runtime.jsxs)("p", {
|
|
29505
29935
|
className: CardPatchView_module_css_default.progress,
|