dsh-agent-team-presets 0.3.2 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/NOTICE +58 -3
  2. package/README.md +73 -398
  3. package/README.zh.md +79 -404
  4. package/assets/card-patches/catalog.json +30 -0
  5. package/assets/card-patches/dsh-context-0.85.0.client.js.gz +0 -0
  6. package/assets/card-patches/dsh-context-0.85.1.client.js.gz +0 -0
  7. package/assets/card-patches/dsh-context-0.87.0.client.js.gz +0 -0
  8. package/assets/skills/agent-leader-communication/SKILL.md +100 -0
  9. package/assets/skills/agent-subagent-orchestration/SKILL.md +56 -0
  10. package/assets/skills/agent-subagent-orchestration/references/executor-parallel-execution.md +56 -0
  11. package/assets/skills/agent-subagent-orchestration/references/leader-discovery.md +53 -0
  12. package/assets/skills/agent-subagent-orchestration/references/subagent-communication.md +58 -0
  13. package/assets/skills/backend-architecture-workflow/SKILL.md +55 -0
  14. package/assets/skills/backend-architecture-workflow/references/README.md +9 -0
  15. package/assets/skills/backend-architecture-workflow/references/architecture-audit.md +70 -0
  16. package/assets/skills/backend-architecture-workflow/references/architecture-decay-risks.md +75 -0
  17. package/assets/skills/backend-architecture-workflow/references/architecture-design.md +151 -0
  18. package/assets/skills/backend-architecture-workflow/references/bugfix-regression.md +63 -0
  19. package/assets/skills/backend-architecture-workflow/references/complex-bug-diagnosis.md +104 -0
  20. package/assets/skills/executor-short-task-workflow/SKILL.md +48 -0
  21. package/assets/skills/executor-short-task-workflow/references/agent-communication.md +44 -0
  22. package/assets/skills/executor-short-task-workflow/references/verification-and-reporting.md +45 -0
  23. package/assets/skills/frontend-engineering-workflow/SKILL.md +47 -0
  24. package/assets/skills/frontend-engineering-workflow/references/README.md +7 -0
  25. package/assets/skills/frontend-engineering-workflow/references/frontend-implementation.md +46 -0
  26. package/assets/skills/frontend-engineering-workflow/references/visual-design.md +43 -0
  27. package/assets/skills/frontend-engineering-workflow/references/visual-qa.md +126 -0
  28. package/assets/skills/fullstack-advisor/SKILL.md +50 -0
  29. package/assets/skills/fullstack-advisor/references/brooks-principles.md +51 -0
  30. package/assets/skills/fullstack-advisor/references/consultant-communication.md +51 -0
  31. package/assets/skills/fullstack-advisor/references/consultation-workflow.md +71 -0
  32. package/assets/skills/git-release-hygiene/SKILL.md +33 -21
  33. package/assets/skills/git-release-hygiene/references/git-safety.md +66 -0
  34. package/assets/skills/git-release-hygiene/references/pr-changelog.md +98 -0
  35. package/assets/skills/git-release-hygiene/references/release-standard.md +139 -0
  36. package/assets/skills/git-release-hygiene/references/validation-checklist.md +42 -0
  37. package/assets/skills/github-repository-presentation/SKILL.md +49 -130
  38. package/assets/skills/github-repository-presentation/references/bilingual-writing.md +43 -0
  39. package/assets/skills/github-repository-presentation/references/documentation-architecture.md +156 -0
  40. package/assets/skills/github-repository-presentation/references/readme-standard.md +273 -0
  41. package/assets/skills/github-repository-presentation/references/release-notes.md +70 -0
  42. package/assets/skills/github-repository-presentation/references/validation-checklist.md +47 -0
  43. package/assets/skills/independent-code-review-workflow/SKILL.md +60 -0
  44. package/assets/skills/independent-code-review-workflow/references/README.md +9 -0
  45. package/assets/skills/independent-code-review-workflow/references/decay-risks.md +99 -0
  46. package/assets/skills/independent-code-review-workflow/references/review-checklist.md +53 -0
  47. package/assets/skills/independent-code-review-workflow/references/review-methodology.md +113 -0
  48. package/assets/skills/independent-code-review-workflow/references/review-severity.md +49 -0
  49. package/assets/skills/independent-code-review-workflow/references/test-quality-review.md +71 -0
  50. package/assets/skills/leader-long-task-orchestration/SKILL.md +49 -0
  51. package/assets/skills/leader-long-task-orchestration/references/delivery-plan-template.md +73 -0
  52. package/assets/skills/leader-long-task-orchestration/references/product-alignment.md +46 -0
  53. package/assets/skills/leader-long-task-orchestration/references/rolling-wave-planning.md +32 -0
  54. package/assets/skills/leader-long-task-orchestration/references/technical-decisions-and-escalation.md +34 -0
  55. package/assets/skills/leader-medium-task-workflow/SKILL.md +55 -0
  56. package/assets/skills/leader-medium-task-workflow/references/task-board-and-leader-todo.md +41 -0
  57. package/docs/builtin-team-skills.md +82 -0
  58. package/docs/builtin-team-skills.zh.md +82 -0
  59. package/docs/builtin-teams.md +62 -0
  60. package/docs/builtin-teams.zh.md +62 -0
  61. package/docs/developer/architecture.md +54 -0
  62. package/docs/developer/architecture.zh.md +54 -0
  63. package/docs/guide/install.md +86 -0
  64. package/docs/guide/install.zh.md +86 -0
  65. package/docs/guide/integrations.md +50 -0
  66. package/docs/guide/integrations.zh.md +50 -0
  67. package/docs/guide/team-skills.md +68 -0
  68. package/docs/guide/team-skills.zh.md +68 -0
  69. package/docs/guide/using-teams.md +92 -0
  70. package/docs/guide/using-teams.zh.md +92 -0
  71. package/docs/index.md +53 -0
  72. package/docs/index.zh.md +53 -0
  73. package/docs/reference/tools-and-permissions.md +62 -0
  74. package/docs/reference/tools-and-permissions.zh.md +62 -0
  75. package/docs/reference/troubleshooting.md +59 -0
  76. package/docs/reference/troubleshooting.zh.md +59 -0
  77. package/icon.webp +0 -0
  78. package/lib/client.js +1459 -253
  79. package/lib/index.js +960 -342
  80. package/lib/typert.host.js +402 -29
  81. package/lib/typert.remote-client.d.ts +9 -9
  82. package/lib/typert.remote-client.d.ts.map +1 -1
  83. package/lib/typert.remote-client.js +402 -29
  84. package/lib/types/client/CardPatchView.js +21 -1
  85. package/lib/types/client/ComposerTeamSelect.js +24 -8
  86. package/lib/types/client/TeamAgentView.d.ts +1 -1
  87. package/lib/types/client/TeamAgentView.js +11 -6
  88. package/lib/types/client/TeamImportDialog.d.ts +4 -15
  89. package/lib/types/client/TeamImportDialog.js +29 -25
  90. package/lib/types/client/TeamPresetsSection.js +14 -5
  91. package/lib/types/client/TeamSkillsView.d.ts +5 -4
  92. package/lib/types/client/TeamSkillsView.js +64 -15
  93. package/lib/types/client/locales.d.ts +41 -2
  94. package/lib/types/client/locales.js +185 -8
  95. package/lib/types/client/team-presets-controller.d.ts +15 -2
  96. package/lib/types/client/team-presets-controller.js +86 -30
  97. package/lib/types/client/team-skills-controller.d.ts +14 -5
  98. package/lib/types/client/team-skills-controller.js +71 -37
  99. package/lib/types/index.js +57 -19
  100. package/lib/types/preset-editor.js +3 -4
  101. package/lib/types/preset-transfer.d.ts +1 -1
  102. package/lib/types/presets.d.ts +21 -23
  103. package/lib/types/presets.js +72 -36
  104. package/lib/types/team-catalog.d.ts +50 -3
  105. package/lib/types/team-catalog.js +214 -43
  106. package/lib/types/team-mode.d.ts +48 -0
  107. package/lib/types/team-mode.js +64 -0
  108. package/lib/types/team-skills/import.d.ts +17 -7
  109. package/lib/types/team-skills/import.js +115 -21
  110. package/lib/types/team-skills/index.d.ts +2 -3
  111. package/lib/types/team-skills/index.js +4 -8
  112. package/lib/types/team-skills/manager.d.ts +24 -15
  113. package/lib/types/team-skills/manager.js +98 -105
  114. package/lib/types/team-skills/official-bindings.d.ts +29 -0
  115. package/lib/types/team-skills/official-bindings.js +51 -0
  116. package/lib/types/team-skills/service.d.ts +7 -12
  117. package/lib/types/team-skills/service.js +143 -63
  118. package/lib/types/team-skills/store.d.ts +27 -6
  119. package/lib/types/team-skills/store.js +151 -15
  120. package/lib/types/types.d.ts +18 -4
  121. package/package.json +21 -2
@@ -66,6 +66,26 @@ function ResultLine({ result, t }) {
66
66
  function versionsOf(target) {
67
67
  return (target.supportedVersions ?? [target.supportedVersion]).join(', ');
68
68
  }
69
+ /**
70
+ * The reason one row cannot be acted on.
71
+ *
72
+ * The Host states every refusal in English. The one an operator has to act on —
73
+ * an installed upstream version this build predates — is restated here in the
74
+ * reader's own language with both versions named, because "which one do I
75
+ * update" is the only question that state raises, and reading it off two fields
76
+ * is work the row can do itself. Every other refusal keeps the Host's sentence:
77
+ * this view has nothing to add to those.
78
+ * @param target - the row.
79
+ * @param t - the page's copy reader.
80
+ * @returns the sentence to show, or undefined when the row has no reason to give.
81
+ */
82
+ function reasonOf(target, t) {
83
+ if (target.state !== 'unsupported')
84
+ return target.detail;
85
+ return t('patchUnsupportedReason')
86
+ .replace('{installed}', target.installedVersion ?? '—')
87
+ .replace('{supported}', target.supportedVersion);
88
+ }
69
89
  /**
70
90
  * Render one target with its state and the action that state allows.
71
91
  * @param props - the row facts and the action callback.
@@ -80,7 +100,7 @@ function Row({ target, live, busy, phase, t, onAct }) {
80
100
  // A patched bundle that has not been served yet is the one case where the row
81
101
  // must say "restart", because nothing is wrong with the file itself.
82
102
  const waiting = target.state === 'patched' && !live;
83
- return (_jsxs("li", { className: css.row, children: [_jsxs("div", { className: css.rowHead, children: [_jsx("code", { className: css.packageName, children: target.packageName }), _jsx("span", { className: css.badge, "data-state": target.state, children: t(STATE_KEYS[target.state]) }), target.state === 'patched' && live ? _jsx("span", { className: css.live, children: t('patchActive') }) : null] }), _jsxs("dl", { className: css.meta, children: [_jsx("dt", { children: t('patchSupported') }), _jsx("dd", { children: versionsOf(target) }), _jsx("dt", { children: t('patchInstalledVersion') }), _jsx("dd", { children: target.installedVersion ?? '—' }), _jsx("dt", { children: t('patchSource') }), _jsx("dd", { className: css.source, children: target.source })] }), target.detail === undefined ? null : _jsx("p", { className: css.detail, children: target.detail }), busy && phase !== undefined ? (_jsxs("p", { className: css.progress, role: "status", children: [_jsx(StateDot, { state: "ongoing", size: 13 }), phase === 'applying' ? t('patchApplying') : t('patchWaiting')] })) : null, waiting ? _jsx("p", { className: css.hint, children: t('patchPendingHint') }) : null, action === undefined ? null : (_jsx("div", { className: css.actions, children: _jsx(Button, { variant: action === 'install' ? 'primary' : 'outline', disabled: busy, onClick: () => { onAct(action); }, children: busy ? t('patchWorking') : t(action === 'install' ? 'patchInstall' : 'patchUninstall') }) }))] }));
103
+ return (_jsxs("li", { className: css.row, children: [_jsxs("div", { className: css.rowHead, children: [_jsx("code", { className: css.packageName, children: target.packageName }), _jsx("span", { className: css.badge, "data-state": target.state, children: t(STATE_KEYS[target.state]) }), target.state === 'patched' && live ? _jsx("span", { className: css.live, children: t('patchActive') }) : null] }), _jsxs("dl", { className: css.meta, children: [_jsx("dt", { children: t('patchSupported') }), _jsx("dd", { children: versionsOf(target) }), _jsx("dt", { children: t('patchInstalledVersion') }), _jsx("dd", { children: target.installedVersion ?? '—' }), _jsx("dt", { children: t('patchSource') }), _jsx("dd", { className: css.source, children: target.source })] }), reasonOf(target, t) === undefined ? null : _jsx("p", { className: css.detail, children: reasonOf(target, t) }), busy && phase !== undefined ? (_jsxs("p", { className: css.progress, role: "status", children: [_jsx(StateDot, { state: "ongoing", size: 13 }), phase === 'applying' ? t('patchApplying') : t('patchWaiting')] })) : null, waiting ? _jsx("p", { className: css.hint, children: t('patchPendingHint') }) : null, action === undefined ? null : (_jsx("div", { className: css.actions, children: _jsx(Button, { variant: action === 'install' ? 'primary' : 'outline', disabled: busy, onClick: () => { onAct(action); }, children: busy ? t('patchWorking') : t(action === 'install' ? 'patchInstall' : 'patchUninstall') }) }))] }));
84
104
  }
85
105
  /**
86
106
  * Ask before touching another plugin's installed files.
@@ -11,7 +11,7 @@ import { selectedMember, selectedRoleId, selectedTeam } from "../presets.js";
11
11
  import { TEAM_SERIES } from "../team-catalog.js";
12
12
  import { matchTeam, orderedCategories, queryTokens, teamOrigin } from "../team-search.js";
13
13
  import { groupTeams, matchesCategoryFilter } from "./team-grouping.js";
14
- import { FORM_ISSUE_KEYS, selectionFailureText } from "./locales.js";
14
+ import { FORM_ISSUE_KEYS, selectionFailureText, skillLabel } from "./locales.js";
15
15
  import css from './ComposerTeamSelect.module.css';
16
16
  /** The empty library state a build without a Team Skill service reports. */
17
17
  const NO_SKILL_STATE = {
@@ -40,6 +40,14 @@ const PANEL_GRACE_MS = 140;
40
40
  const PANEL_GAP_PX = 8;
41
41
  /** Space kept between the panel and the viewport edge before it flips sides. */
42
42
  const PANEL_VIEWPORT_MARGIN_PX = 8;
43
+ /**
44
+ * Role identity a binding uses for the captain slot.
45
+ *
46
+ * The shipped captain carries its own workflow skills, so the panel reads that
47
+ * slot too. It mirrors the Host's own sentinel rather than a member's id: the
48
+ * captain slot is not a member and is addressed by this name in every binding.
49
+ */
50
+ const CAPTAIN_ROLE = 'captain';
43
51
  /**
44
52
  * Render one member's configured route as `provider · model`.
45
53
  *
@@ -143,10 +151,14 @@ export function ComposerTeamSelect(props) {
143
151
  const [series, setSeries] = useState('all');
144
152
  const [categoryId, setCategoryId] = useState('');
145
153
  /**
146
- * Team Skills bound to each member role of the Team whose panel is open.
154
+ * Team Skills bound to each role of the Team whose panel is open, keyed by the
155
+ * role a selection addresses: the captain slot under {@link CAPTAIN_ROLE}, and
156
+ * every member under its own id.
147
157
  *
148
158
  * Only the roles' own bindings count: a captain's skills are not a member's,
149
- * and a skill the library does not list has nothing to show.
159
+ * and a skill the library does not list has nothing to show. The captain is
160
+ * read alongside the members because a shipped captain carries workflow skills
161
+ * of its own, and the row that starts a captain conversation has to say so.
150
162
  */
151
163
  const skillNamesByRole = useMemo(() => {
152
164
  const byRole = new Map();
@@ -155,16 +167,20 @@ export function ComposerTeamSelect(props) {
155
167
  return byRole;
156
168
  for (const asset of assets) {
157
169
  for (const binding of asset.bindings) {
158
- if (binding.teamId !== hoverTeamId || binding.captain)
170
+ if (binding.teamId !== hoverTeamId)
159
171
  continue;
160
- const names = byRole.get(binding.roleId) ?? [];
172
+ const bindingRoleId = binding.captain ? CAPTAIN_ROLE : binding.roleId;
173
+ const names = byRole.get(bindingRoleId) ?? [];
161
174
  if (!names.includes(asset.skillId))
162
175
  names.push(asset.skillId);
163
- byRole.set(binding.roleId, names);
176
+ byRole.set(bindingRoleId, names);
164
177
  }
165
178
  }
166
179
  return byRole;
167
180
  }, [skillsState.library, hoverTeamId]);
181
+ // The captain row opens a captain conversation, so it states the captain's own
182
+ // bindings exactly the way a member row states that member's.
183
+ const captainSkillIds = hoverTeamId === undefined ? [] : skillNamesByRole.get(CAPTAIN_ROLE) ?? [];
168
184
  /** Cancel a pending panel close, so a hover that continues keeps the panel up. */
169
185
  const cancelHoverClose = () => {
170
186
  if (hoverTimer.current === undefined)
@@ -317,7 +333,7 @@ export function ComposerTeamSelect(props) {
317
333
  setCategoryId(next.startsWith('category:') ? next.slice('category:'.length) : '');
318
334
  }, children: [_jsx("option", { value: "", children: t('listAll') }), source === 'custom' ? null : TEAM_SERIES.map(entry => (_jsx("option", { value: `series:${entry.id}`, children: entry.id === 'classic-development' ? t('seriesDevelopment') : t('seriesWorkModes') }, entry.id))), source === 'builtin' ? null : categories.map(entry => (_jsx("option", { value: `category:${entry.id}`, children: entry.name }, entry.id))), source === 'custom' && categories.length === 0
319
335
  ? _jsx("option", { value: "", disabled: true, children: t('filterNoCategory') })
320
- : null] })] })] }), _jsxs("div", { className: css.popList, children: [_jsxs("button", { type: "button", className: `${css.popOption} ${selection === undefined ? css.popOptionActive : ''}`, onClick: () => { choose(undefined); }, children: [_jsx("span", { className: css.popOptionName, children: t('composerNone') }), _jsx("span", { className: css.popOptionSub, children: t('composeNoneSub') })] }), missing ? (_jsxs("button", { type: "button", className: css.popOption, disabled: true, children: [_jsx("span", { className: css.popOptionName, children: missingLabel }), _jsx("span", { className: css.popOptionSub, children: t('composerMissingHint') })] })) : null, groups.map(group => group.teams.length === 0 ? null : (_jsxs("div", { children: [_jsx("div", { className: css.popGroup, children: groupLabel(group) }), group.teams.map((team) => (_jsxs("button", { type: "button", role: "option", "aria-selected": selection?.teamId === team.id, className: `${css.popOption} ${selection?.teamId === team.id ? css.popOptionActive : ''}`, onClick: () => { choose(team.id); }, onMouseEnter: () => { showPanel(team.id); }, onMouseLeave: schedulePanelClose, onFocus: () => { showPanel(team.id); }, onBlur: schedulePanelClose, children: [_jsx("span", { className: css.popOptionName, children: team.name === '' ? team.id : team.name }), _jsx("span", { className: css.popOptionSub, title: team.description, children: team.description || team.metadata?.summary || '' })] }, team.id)))] }, group.id))), groups.every(group => group.teams.length === 0) ? _jsx("div", { className: css.popEmpty, children: t('composeEmpty') }) : null] })] }), hoverTeam === undefined ? null : (_jsxs("div", { ref: panel, className: `${css.memberPanel} ${panelPlacement === 'left' ? css.memberPanelLeft : panelPlacement === 'overlay' ? css.memberPanelOverlay : ''}`, role: "group", "aria-label": t('composePanelTitle'), onMouseEnter: cancelHoverClose, onMouseLeave: schedulePanelClose, children: [_jsxs("div", { className: css.panelHead, children: [_jsx("span", { className: css.panelTitle, children: t('composePanelTitle') }), _jsx("span", { className: css.panelTeam, children: hoverTeam.name === '' ? hoverTeam.id : hoverTeam.name })] }), _jsx("div", { className: css.panelSection, children: t('composePanelCaptain') }), _jsxs("button", { type: "button", className: `${css.panelRow} ${isActiveCaptain(hoverTeam) ? css.panelRowActive : ''}`, "aria-pressed": isActiveCaptain(hoverTeam), title: t('composePanelCaptainHint'), onClick: () => { choose(hoverTeam.id); }, children: [_jsxs("span", { className: css.panelRowHead, children: [_jsx("span", { className: css.panelDot, style: hoverTeam.captain.color === '' ? undefined : { background: hoverTeam.captain.color }, "aria-hidden": true }), _jsx("span", { className: css.panelName, children: hoverTeam.captain.name.trim() === '' ? t('composePanelCaptain') : hoverTeam.captain.name }), _jsx("span", { className: css.panelBadge, children: t('composePanelCaptain') })] }), _jsx("span", { className: css.panelRoute, children: t('composePanelSessionModel') }), hoverTeam.captain.description.trim() === '' ? null : _jsx("span", { className: css.panelDesc, children: hoverTeam.captain.description })] }), _jsx("div", { className: css.panelSection, children: t('composePanelMembers') }), hoverTeam.members.length === 0
336
+ : null] })] })] }), _jsxs("div", { className: css.popList, children: [_jsxs("button", { type: "button", className: `${css.popOption} ${selection === undefined ? css.popOptionActive : ''}`, onClick: () => { choose(undefined); }, children: [_jsx("span", { className: css.popOptionName, children: t('composerNone') }), _jsx("span", { className: css.popOptionSub, children: t('composeNoneSub') })] }), missing ? (_jsxs("button", { type: "button", className: css.popOption, disabled: true, children: [_jsx("span", { className: css.popOptionName, children: missingLabel }), _jsx("span", { className: css.popOptionSub, children: t('composerMissingHint') })] })) : null, groups.map(group => group.teams.length === 0 ? null : (_jsxs("div", { children: [_jsx("div", { className: css.popGroup, children: groupLabel(group) }), group.teams.map((team) => (_jsxs("button", { type: "button", role: "option", "aria-selected": selection?.teamId === team.id, className: `${css.popOption} ${selection?.teamId === team.id ? css.popOptionActive : ''}`, onClick: () => { choose(team.id); }, onMouseEnter: () => { showPanel(team.id); }, onMouseLeave: schedulePanelClose, onFocus: () => { showPanel(team.id); }, onBlur: schedulePanelClose, children: [_jsx("span", { className: css.popOptionName, children: team.name === '' ? team.id : team.name }), _jsx("span", { className: css.popOptionSub, title: team.description, children: team.description || team.metadata?.summary || '' })] }, team.id)))] }, group.id))), groups.every(group => group.teams.length === 0) ? _jsx("div", { className: css.popEmpty, children: t('composeEmpty') }) : null] })] }), hoverTeam === undefined ? null : (_jsxs("div", { ref: panel, className: `${css.memberPanel} ${panelPlacement === 'left' ? css.memberPanelLeft : panelPlacement === 'overlay' ? css.memberPanelOverlay : ''}`, role: "group", "aria-label": t('composePanelTitle'), onMouseEnter: cancelHoverClose, onMouseLeave: schedulePanelClose, children: [_jsxs("div", { className: css.panelHead, children: [_jsx("span", { className: css.panelTitle, children: t('composePanelTitle') }), _jsx("span", { className: css.panelTeam, children: hoverTeam.name === '' ? hoverTeam.id : hoverTeam.name })] }), _jsx("div", { className: css.panelSection, children: t('composePanelCaptain') }), _jsxs("button", { type: "button", className: `${css.panelRow} ${isActiveCaptain(hoverTeam) ? css.panelRowActive : ''}`, "aria-pressed": isActiveCaptain(hoverTeam), title: t('composePanelCaptainHint'), onClick: () => { choose(hoverTeam.id); }, children: [_jsxs("span", { className: css.panelRowHead, children: [_jsx("span", { className: css.panelDot, style: hoverTeam.captain.color === '' ? undefined : { background: hoverTeam.captain.color }, "aria-hidden": true }), _jsx("span", { className: css.panelName, children: hoverTeam.captain.name.trim() === '' ? t('composePanelCaptain') : hoverTeam.captain.name }), _jsx("span", { className: css.panelBadge, children: t('composePanelCaptain') })] }), _jsx("span", { className: css.panelRoute, children: t('composePanelSessionModel') }), hoverTeam.captain.description.trim() === '' ? null : _jsx("span", { className: css.panelDesc, children: hoverTeam.captain.description }), captainSkillIds.length === 0 ? null : (_jsx("span", { className: css.panelSkillTags, children: captainSkillIds.map(name => (_jsx("span", { className: css.panelSkillTag, style: skillTagStyle(name), title: name, children: skillLabel(name, t) }, name))) }))] }), _jsx("div", { className: css.panelSection, children: t('composePanelMembers') }), hoverTeam.members.length === 0
321
337
  ? _jsx("div", { className: css.panelEmpty, children: t('composePanelEmptyMembers') })
322
338
  : hoverTeam.members.map((member, index) => {
323
339
  // A member without a stable identity cannot be named by a
@@ -332,6 +348,6 @@ export function ComposerTeamSelect(props) {
332
348
  if (member.id === undefined || member.id.trim() === '')
333
349
  return;
334
350
  chooseMember(hoverTeam.id, member.id);
335
- }, children: [_jsxs("span", { className: css.panelRowHead, children: [_jsx("span", { className: css.panelDot, style: member.color === '' ? undefined : { background: member.color }, "aria-hidden": true }), _jsx("span", { className: css.panelName, children: member.name.trim() === '' ? (member.id ?? t('composePanelMembers')) : member.name })] }), _jsx("span", { className: css.panelRoute, children: route }), member.description.trim() === '' ? null : _jsx("span", { className: css.panelDesc, children: member.description }), boundNames.length === 0 ? null : (_jsx("span", { className: css.panelSkillTags, children: boundNames.map(name => (_jsx("span", { className: css.panelSkillTag, style: skillTagStyle(name), children: name }, name))) })), selectable ? null : _jsx("span", { className: css.panelDesc, children: t('composePanelNoId') })] }, member.id ?? `${hoverTeam.id}:${index}`));
351
+ }, children: [_jsxs("span", { className: css.panelRowHead, children: [_jsx("span", { className: css.panelDot, style: member.color === '' ? undefined : { background: member.color }, "aria-hidden": true }), _jsx("span", { className: css.panelName, children: member.name.trim() === '' ? (member.id ?? t('composePanelMembers')) : member.name })] }), _jsx("span", { className: css.panelRoute, children: route }), member.description.trim() === '' ? null : _jsx("span", { className: css.panelDesc, children: member.description }), boundNames.length === 0 ? null : (_jsx("span", { className: css.panelSkillTags, children: boundNames.map(name => (_jsx("span", { className: css.panelSkillTag, style: skillTagStyle(name), title: name, children: skillLabel(name, t) }, name))) })), selectable ? null : _jsx("span", { className: css.panelDesc, children: t('composePanelNoId') })] }, member.id ?? `${hoverTeam.id}:${index}`));
336
352
  }), _jsx("div", { className: css.panelHint, children: hoverTeam.members.length === 0 ? t('composePanelCaptainHint') : t('composePanelSoloHint') })] }))] })) : null] }), failure === undefined ? null : _jsx("span", { className: css.failure, role: "status", children: failure })] }));
337
353
  }
@@ -5,7 +5,7 @@
5
5
  import type { TeamSkillsController } from './team-skills-controller.ts';
6
6
  import type { ProviderChoice } from './team-presets-controller.ts';
7
7
  import type { TeamAgentPreset, TeamCaptainPreset, ToolChoice } from '../types.ts';
8
- import type { TeamPresetsLocaleKey } from './locales.ts';
8
+ import { type TeamPresetsLocaleKey } from './locales.ts';
9
9
  /** Props of one agent's page. */
10
10
  export interface TeamAgentViewProps {
11
11
  /** The agent slot being edited. */
@@ -8,6 +8,7 @@ import { useEffect, useState } from 'react';
8
8
  import { AGENT_COLORS } from "./team-presets-controller.js";
9
9
  import { FieldPicker } from "./FieldPicker.js";
10
10
  import { IMPLICIT_TOOLS, toolMode } from "../presets.js";
11
+ import { SKILL_CATEGORIES, SKILL_CATEGORY_LABELS, skillCategoryOf, skillLabel } from "./locales.js";
11
12
  import css from './TeamPresetsSection.module.css';
12
13
  /** Colors offered for one agent's accent mark. */
13
14
  const NO_COLOR = '';
@@ -53,14 +54,18 @@ function SkillAssignmentGrid(props) {
53
54
  }, [props.controller]);
54
55
  const assets = state.library?.assets ?? [];
55
56
  const held = new Set(assets.filter(asset => asset.bindings.some(row => row.teamId === props.teamId && row.roleId === props.roleId)).map(asset => asset.id));
57
+ const [category, setCategory] = useState('all');
58
+ // The filter narrows what can be assigned here; it never changes what this role
59
+ // already holds, so the heading counts every installed skill, not the visible one.
60
+ const visible = category === 'all' ? assets : assets.filter(asset => skillCategoryOf(asset) === category);
56
61
  if (state.status === 'unavailable')
57
62
  return null;
58
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: css.sepTitle, children: [props.t('skillsAssignTitle'), _jsxs("span", { className: css.hint, children: [" \u00B7 ", String([...held].length), "/", String(assets.length)] })] }), _jsxs("div", { className: css.panel, children: [_jsx("p", { className: css.muted, style: { marginTop: 0 }, children: props.t('skillsAssignHint') }), assets.length === 0 ? _jsx("p", { className: css.muted, children: props.t('skillsAssignEmpty') }) : (_jsx("div", { className: css.skillGrid, children: assets.map(asset => (_jsxs("label", { className: css.skillCard, children: [_jsxs("span", { className: css.skillCardTop, children: [_jsx("span", { className: css.skillCardName, children: asset.skillId }), _jsx("input", { type: "checkbox", checked: held.has(asset.id), onChange: (event) => {
59
- if (event.target.checked)
60
- void props.controller.assignSkill(props.teamId, props.roleId, asset.id);
61
- else
62
- void props.controller.unassignSkill(props.teamId, props.roleId, asset.id);
63
- } })] }), _jsx("span", { className: css.skillCardDesc, children: asset.description }), _jsx("span", { className: `${css.skillCardTag} ${css.originTag} ${originToneClass(css, asset.origin)}`, children: originCopy(asset.origin, props.t) })] }, asset.id))) })), state.message === undefined ? null : _jsx("p", { className: css.muted, children: state.message })] })] }));
63
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: css.sepTitle, children: [props.t('skillsAssignTitle'), _jsxs("span", { className: css.hint, children: [" \u00B7 ", String([...held].length), "/", String(assets.length)] })] }), _jsxs("div", { className: css.panel, children: [_jsx("p", { className: css.muted, style: { marginTop: 0 }, children: props.t('skillsAssignHint') }), assets.length === 0 ? _jsx("p", { className: css.muted, children: props.t('skillsAssignEmpty') }) : (_jsxs(_Fragment, { children: [_jsxs("select", { className: css.select, "aria-label": props.t('skillsCategoryAll'), value: category, onChange: (event) => { setCategory(event.target.value); }, children: [_jsx("option", { value: "all", children: props.t('skillsCategoryAll') }), SKILL_CATEGORIES.map(id => (_jsx("option", { value: id, children: props.t(SKILL_CATEGORY_LABELS[id]) }, id)))] }), visible.length === 0 ? _jsx("p", { className: css.muted, children: props.t('skillsFilterEmpty') }) : (_jsx("div", { className: css.skillGrid, children: visible.map(asset => (_jsxs("label", { className: css.skillCard, children: [_jsxs("span", { className: css.skillCardTop, children: [_jsx("span", { className: css.skillCardName, title: asset.skillId, children: skillLabel(asset.skillId, props.t) }), _jsx("input", { type: "checkbox", checked: held.has(asset.id), onChange: (event) => {
64
+ if (event.target.checked)
65
+ void props.controller.assignSkill(props.teamId, props.roleId, asset.id);
66
+ else
67
+ void props.controller.unassignSkill(props.teamId, props.roleId, asset.id);
68
+ } })] }), _jsx("span", { className: css.skillCardDesc, children: asset.description }), _jsx("span", { className: `${css.skillCardTag} ${css.originTag} ${originToneClass(css, asset.origin)}`, children: originCopy(asset.origin, props.t) })] }, asset.id))) }))] })), state.message === undefined ? null : _jsx("p", { className: css.muted, children: state.message })] })] }));
64
69
  }
65
70
  /**
66
71
  * Render one agent's page.
@@ -1,13 +1,5 @@
1
- /**
2
- * Conflict dialog for one Team import.
3
- *
4
- * The document's Team name, captain name, and member names are the keys an
5
- * import matches on, so each one that the target Team already uses is resolved
6
- * here: overwrite the configured agent, or add the imported one under a name
7
- * that is still free. Choosing a new Team name makes the whole document a new
8
- * Team, which is why the agent collisions disappear with that choice.
9
- */
10
- import type { TeamPresetImportPlan, TeamPresetImportResolution } from './team-presets-controller.ts';
1
+ /** Review one Team import and resolve any naming conflicts before staging. */
2
+ import type { TeamPresetImportPlan, TeamPresetImportResolution, TeamPresetImportSkillRow } from './team-presets-controller.ts';
11
3
  import type { TeamPresetsLocaleKey } from './locales.ts';
12
4
  /** Props of the import conflict dialog. */
13
5
  export interface TeamImportDialogProps {
@@ -15,12 +7,9 @@ export interface TeamImportDialogProps {
15
7
  readonly plan: TeamPresetImportPlan;
16
8
  /** Page copy reader. */
17
9
  readonly t: (key: TeamPresetsLocaleKey) => string;
10
+ readonly previewSkills: (resolution: TeamPresetImportResolution) => readonly TeamPresetImportSkillRow[];
18
11
  readonly onCancel: () => void;
19
12
  readonly onConfirm: (resolution: TeamPresetImportResolution) => void;
20
13
  }
21
- /**
22
- * Render the collision dialog for one import.
23
- * @param props - the plan, the page copy, and the two outcomes.
24
- * @returns the dialog; the caller mounts it only while an import is pending.
25
- */
14
+ /** Render a pending import, including any declaration that could not resolve. */
26
15
  export declare function TeamImportDialog(props: TeamImportDialogProps): import("react").JSX.Element;
@@ -1,13 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- /**
3
- * Conflict dialog for one Team import.
4
- *
5
- * The document's Team name, captain name, and member names are the keys an
6
- * import matches on, so each one that the target Team already uses is resolved
7
- * here: overwrite the configured agent, or add the imported one under a name
8
- * that is still free. Choosing a new Team name makes the whole document a new
9
- * Team, which is why the agent collisions disappear with that choice.
10
- */
2
+ /** Review one Team import and resolve any naming conflicts before staging. */
11
3
  import { useState } from 'react';
12
4
  import { Button, Input, Modal } from '@deepseek-ai/dsh-client-ui-primitives';
13
5
  import css from './TeamPresetsSection.module.css';
@@ -23,11 +15,17 @@ import css from './TeamPresetsSection.module.css';
23
15
  function choices(name, value, onChange, labels, autofocus = false) {
24
16
  return (_jsxs("span", { className: css.choiceRow, children: [_jsxs("label", { className: css.choice, children: [_jsx("input", { type: "radio", name: name, checked: value === 'replace', ...autofocus ? { 'data-modal-autofocus': true } : {}, onChange: () => { onChange('replace'); } }), _jsx("span", { children: labels.replace })] }), _jsxs("label", { className: css.choice, children: [_jsx("input", { type: "radio", name: name, checked: value === 'rename', onChange: () => { onChange('rename'); } }), _jsx("span", { children: labels.rename })] })] }));
25
17
  }
26
- /**
27
- * Render the collision dialog for one import.
28
- * @param props - the plan, the page copy, and the two outcomes.
29
- * @returns the dialog; the caller mounts it only while an import is pending.
30
- */
18
+ const skillStatusKeys = {
19
+ 'unknown-skill': 'importSkillUnknown',
20
+ 'missing-role': 'importSkillRoleMissing',
21
+ 'ambiguous-role': 'importSkillRoleAmbiguous',
22
+ 'catalog-ignored': 'importSkillCatalogIgnored',
23
+ 'eligible': 'importSkillEligible',
24
+ 'asset-missing': 'importSkillAssetMissing',
25
+ 'library-unavailable': 'importSkillLibraryUnavailable',
26
+ 'local-override': 'importSkillLocalOverride',
27
+ };
28
+ /** Render a pending import, including any declaration that could not resolve. */
31
29
  export function TeamImportDialog(props) {
32
30
  const { plan, t } = props;
33
31
  const [teamChoice, setTeamChoice] = useState('replace');
@@ -35,19 +33,20 @@ export function TeamImportDialog(props) {
35
33
  const [captainChoice, setCaptainChoice] = useState('replace');
36
34
  const [memberChoices, setMemberChoices] = useState({});
37
35
  const memberChoice = (name) => memberChoices[name] ?? 'replace';
38
- const agentCollisions = teamChoice === 'replace'
36
+ const teamCollision = plan.targetIndex !== undefined;
37
+ const agentCollisions = teamCollision && teamChoice === 'replace'
39
38
  && (plan.captainConflict !== '' || plan.memberConflicts.length > 0);
40
- return (_jsxs(Modal, { open: true, onClose: props.onCancel, title: t('importConflictTitle'), closeLabel: t('close'), footer: (_jsxs(_Fragment, { children: [_jsx(Button, { variant: "outline", onClick: props.onCancel, children: t('cancel') }), _jsx(Button, { variant: "primary", onClick: () => {
41
- props.onConfirm({
42
- team: teamChoice,
43
- teamName,
44
- captain: captainChoice,
45
- members: Object.fromEntries(plan.memberConflicts.map(name => [name, memberChoice(name)])),
46
- });
47
- }, children: t('importConfirm') })] })), children: [_jsxs("section", { className: css.conflict, children: [_jsx("span", { className: css.conflictLead, children: t('importTeamConflict') }), _jsx("span", { className: css.conflictName, children: plan.targetName }), choices('import-team', teamChoice, setTeamChoice, {
39
+ const resolution = {
40
+ team: teamCollision ? teamChoice : 'rename',
41
+ teamName,
42
+ captain: captainChoice,
43
+ members: Object.fromEntries(plan.memberConflicts.map(name => [name, memberChoice(name)])),
44
+ };
45
+ const rows = props.previewSkills(resolution);
46
+ return (_jsxs(Modal, { open: true, onClose: props.onCancel, title: t(teamCollision ? 'importConflictTitle' : 'importPreviewTitle'), closeLabel: t('close'), footer: (_jsxs(_Fragment, { children: [_jsx(Button, { variant: "outline", onClick: props.onCancel, children: t('cancel') }), _jsx(Button, { variant: "primary", onClick: () => { props.onConfirm(resolution); }, children: t('importConfirm') })] })), children: [teamCollision && (_jsxs("section", { className: css.conflict, children: [_jsx("span", { className: css.conflictLead, children: t('importTeamConflict') }), _jsx("span", { className: css.conflictName, children: plan.targetName }), choices('import-team', teamChoice, setTeamChoice, {
48
47
  replace: t('importTeamReplace'),
49
48
  rename: t('importTeamRename'),
50
- }, true), teamChoice === 'rename' ? (_jsxs("div", { className: css.field, children: [_jsx("span", { className: css.fieldLabel, children: t('importNewTeamName') }), _jsx(Input, { className: css.input ?? '', value: teamName, onChange: (event) => { setTeamName(event.target.value); } })] })) : null] }), !agentCollisions ? null : (_jsxs(_Fragment, { children: [plan.captainConflict === '' ? null : (_jsxs("section", { className: css.conflict, children: [_jsx("span", { className: css.conflictLead, children: t('importCaptainConflict') }), _jsx("span", { className: css.conflictName, children: plan.captainConflict }), choices('import-captain', captainChoice, setCaptainChoice, {
49
+ }, true), teamChoice === 'rename' ? (_jsxs("div", { className: css.field, children: [_jsx("span", { className: css.fieldLabel, children: t('importNewTeamName') }), _jsx(Input, { className: css.input ?? '', value: teamName, onChange: (event) => { setTeamName(event.target.value); } })] })) : null] })), !agentCollisions ? null : (_jsxs(_Fragment, { children: [plan.captainConflict === '' ? null : (_jsxs("section", { className: css.conflict, children: [_jsx("span", { className: css.conflictLead, children: t('importCaptainConflict') }), _jsx("span", { className: css.conflictName, children: plan.captainConflict }), choices('import-captain', captainChoice, setCaptainChoice, {
51
50
  replace: t('importCaptainReplace'),
52
51
  rename: t('importCaptainRename'),
53
52
  })] })), plan.memberConflicts.length === 0 ? null : (_jsxs("section", { className: css.conflict, children: [_jsx("span", { className: css.conflictLead, children: t('importMemberConflict') }), _jsx("ul", { className: css.plainRows, children: plan.memberConflicts.map(name => (_jsxs("li", { className: css.conflictMember, children: [_jsx("span", { className: css.conflictName, children: name }), choices(`import-member-${name}`, memberChoice(name), (next) => {
@@ -55,5 +54,10 @@ export function TeamImportDialog(props) {
55
54
  }, {
56
55
  replace: t('importMemberReplace'),
57
56
  rename: t('importMemberRename'),
58
- })] }, name))) })] }))] })), _jsx("p", { className: css.dialogNote, children: t('importNote') })] }));
57
+ })] }, name))) })] }))] })), ['preset', 'catalog'].map(source => {
58
+ const group = rows.filter(row => row.source === source);
59
+ if (group.length === 0)
60
+ return null;
61
+ return (_jsxs("section", { className: css.conflict, "aria-live": "polite", children: [_jsx("h3", { className: css.conflictLead, children: t(source === 'preset' ? 'importSkillDeclarations' : 'importSkillCatalog') }), _jsx("ul", { className: css.plainRows, children: group.map((row, index) => (_jsxs("li", { className: css.conflictMember, children: [_jsxs("strong", { className: css.conflictName, children: [row.skillId, " \u00B7 ", row.roleName] }), _jsx("span", { children: t(skillStatusKeys[row.status]) })] }, `${row.skillId}:${row.roleName}:${index}`))) })] }, source));
62
+ }), _jsx("p", { className: css.dialogNote, children: t('importDraftNote') })] }));
59
63
  }
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  * The Agent Team presets settings page: three stacked pages — the Team list,
4
4
  * one Team's roster, and one captain or member — with a shared save footer.
5
5
  */
6
- import { useEffect, useState } from 'react';
6
+ import { useEffect, useState, useSyncExternalStore } from 'react';
7
7
  import { Button } from '@deepseek-ai/dsh-client-ui-primitives';
8
8
  import { TeamAgentView } from "./TeamAgentView.js";
9
9
  import { TeamEditorView } from "./TeamEditorView.js";
@@ -17,6 +17,8 @@ import { defaultImportResolution, executionStateOf, unnamedTeamsOf } from "./tea
17
17
  import { downloadPresetText, presetFileName, readPresetFile } from "./preset-file.js";
18
18
  import { DEFAULTS_NOTICE_KEYS, DISCLOSURE_NOTICE_KEYS, EXECUTION_NOTICE_KEYS, FORM_ISSUE_KEYS, IMPORT_FAILURE_KEYS, selectionFailureText } from "./locales.js";
19
19
  import css from './TeamPresetsSection.module.css';
20
+ const noSkillUpdates = () => () => { };
21
+ const noSkillSnapshot = () => undefined;
20
22
  /**
21
23
  * One tab in the section's own tab bar.
22
24
  * @param props - active state, click handler, and label.
@@ -116,7 +118,9 @@ export function TeamPresetsSection(props) {
116
118
  const [importPlan, setImportPlan] = useState(undefined);
117
119
  // Each inspection replaces the pending dialog, whose choices must not survive it.
118
120
  const [importGeneration, setImportGeneration] = useState(0);
119
- const { refreshCatalogue } = props;
121
+ const { refreshCatalogue, skills } = props;
122
+ const skillState = useSyncExternalStore(skills?.subscribe ?? noSkillUpdates, skills?.getSnapshot ?? noSkillSnapshot);
123
+ const importAssets = skillState?.status === 'ready' ? skillState.library?.assets : undefined;
120
124
  // The settings shell mounts only the active section, so this runs on every
121
125
  // open: a route the deployment gained while the client was running must be
122
126
  // offered without a reload. The inject face is cached per registration, so
@@ -172,12 +176,17 @@ export function TeamPresetsSection(props) {
172
176
  return;
173
177
  }
174
178
  setImportError(undefined);
175
- if (inspection.plan.targetIndex === undefined) {
176
- openTeam(props.applyImport(inspection.plan, defaultImportResolution(inspection.plan)));
179
+ const resolution = defaultImportResolution(inspection.plan);
180
+ const preview = props.previewImport(inspection.plan, resolution, importAssets);
181
+ if (inspection.plan.targetIndex === undefined && preview.length === 0) {
182
+ setImportPlan(undefined);
183
+ openTeam(props.applyImport(inspection.plan, resolution));
177
184
  return;
178
185
  }
179
186
  setImportGeneration(generation => generation + 1);
180
187
  setImportPlan(inspection.plan);
188
+ if (preview.length > 0)
189
+ void skills?.refresh();
181
190
  }
182
191
  /**
183
192
  * Write one Team out as a shareable document.
@@ -245,7 +254,7 @@ export function TeamPresetsSection(props) {
245
254
  props.removeMember(teamIndex, memberSlot);
246
255
  openTeam(team.id);
247
256
  },
248
- } }))] }), importPlan === undefined ? null : (_jsx(TeamImportDialog, { plan: importPlan, t: t, onCancel: () => { setImportPlan(undefined); }, onConfirm: (resolution) => {
257
+ } }))] }), importPlan === undefined ? null : (_jsx(TeamImportDialog, { plan: importPlan, t: t, previewSkills: resolution => props.previewImport(importPlan, resolution, importAssets), onCancel: () => { setImportPlan(undefined); }, onConfirm: (resolution) => {
249
258
  const created = props.applyImport(importPlan, resolution);
250
259
  setImportPlan(undefined);
251
260
  openTeam(created);
@@ -6,19 +6,20 @@
6
6
  * The library page owns discovery: search, the built-in/custom segment, and the
7
7
  * three actions the prototype puts in the title row. The detail page owns one
8
8
  * skill: its file tree and editor, its member references, and the deletion the
9
- * Host refuses while a member still holds it. Assignment itself belongs to the
10
- * member page, so this file never invents a second place to bind a skill.
9
+ * Host refuses while a member still holds it. A built-in skill can be copied
10
+ * here with the option to move its role bindings to the editable copy.
11
11
  * @module dsh-agent-team-presets/client/TeamSkillsView
12
12
  */
13
13
  import type { TeamSkillsController } from './team-skills-controller.ts';
14
+ import { type TeamPresetsLocaleKey } from './locales.ts';
14
15
  /** Locale keys this panel reads. */
15
- export type TeamSkillsLocaleKey = 'originBuiltin' | 'originCustom' | 'originOverride' | 'skillsTitle' | 'skillsSub' | 'skillsNote' | 'skillsNew' | 'skillsImport' | 'skillsOpenFolder' | 'skillsOpenAssetFolder' | 'skillsSearch' | 'skillsAll' | 'skillsBuiltin' | 'skillsCustom' | 'skillsFiles' | 'skillsBound' | 'skillsEmpty' | 'skillsResources' | 'skillsSaveFile' | 'skillsEditable' | 'skillsReadonly' | 'skillsMakeCopy' | 'skillsResetCopy' | 'skillsBindings' | 'skillsNoBinding' | 'skillsUnbind' | 'skillsDeps' | 'skillsNoDeps' | 'skillsDelete' | 'skillsDeleteTitle' | 'skillsDeleteBody' | 'skillsDeleteBlocked' | 'skillsDeleteBoundWarning' | 'skillsDeleteBuiltinWarning' | 'skillsCancel' | 'skillsConfirm' | 'skillsName' | 'skillsDesc' | 'skillsNewTitle' | 'skillsVersion' | 'skillsOverrideOn' | 'skillsBlockedAssign' | 'skillsMcpUnverified' | 'skillsNameClash' | 'skillsNameClashBody' | 'skillsDeclared' | 'skillsFound' | 'skillsMissing' | 'skillsScan' | 'skillsScanHint' | 'skillsScanSummary' | 'skillsScanEmpty' | 'skillsScanImported' | 'skillsScanExisting' | 'skillsScanInvalid' | 'skillsScanMissingSkill' | 'skillsScanInvalidFrontmatter' | 'skillsScanInvalidName' | 'skillsScanMissingDescription' | 'skillsScanTooLarge' | 'skillsScanSymlink' | 'skillsScanNotDirectory' | 'skillsScanUnreadable' | 'skillsScanDuplicate' | 'skillsScanInstallRefused' | 'skillsOpenScanFolder' | 'skillsCopyScanFolder' | 'skillsScanFolderOpened' | 'skillsScanFolderCopied' | 'skillsScanFolderCopyFailed';
16
+ export type TeamSkillsLocaleKey = 'originBuiltin' | 'originCustom' | 'originOverride' | 'skillsTitle' | 'skillsSub' | 'skillsNote' | 'skillsNew' | 'skillsImport' | 'skillsOpenFolder' | 'skillsOpenAssetFolder' | 'skillsSearch' | 'skillsAll' | 'skillsBuiltin' | 'skillsCustom' | 'skillsFiles' | 'skillsBound' | 'skillsEmpty' | 'skillsResources' | 'skillsSaveFile' | 'skillsEditable' | 'skillsReadonly' | 'skillsMakeCopy' | 'skillsMakeCopyTitle' | 'skillsMakeCopySwitchBindings' | 'skillsMakeCopySwitchIssue' | 'skillsResetCopy' | 'skillsBindings' | 'skillsNoBinding' | 'skillsUnbind' | 'skillsDeps' | 'skillsNoDeps' | 'skillsDelete' | 'skillsDeleteTitle' | 'skillsDeleteBody' | 'skillsDeleteBlocked' | 'skillsDeleteBoundWarning' | 'skillsDeleteBuiltinWarning' | 'skillsCancel' | 'skillsConfirm' | 'skillsName' | 'skillsDesc' | 'skillsNewTitle' | 'skillsVersion' | 'skillsOverrideOn' | 'skillsBlockedAssign' | 'skillsMcpUnverified' | 'skillsNameClash' | 'skillsNameClashBody' | 'skillsDeclared' | 'skillsFound' | 'skillsMissing' | 'skillsScan' | 'skillsScanHint' | 'skillsScanSummary' | 'skillsScanEmpty' | 'skillsScanImported' | 'skillsScanExisting' | 'skillsScanUpdated' | 'skillsScanInvalid' | 'skillsScanSourceMissing' | 'skillsScanMissingSkill' | 'skillsScanInvalidFrontmatter' | 'skillsScanInvalidName' | 'skillsScanMissingDescription' | 'skillsScanTooLarge' | 'skillsScanSymlink' | 'skillsScanNotDirectory' | 'skillsScanUnreadable' | 'skillsScanDuplicate' | 'skillsScanInstallRefused' | 'skillsScanBuiltinNameConflict' | 'skillsScanCopyNameConflict' | 'skillsScanDuplicateSourceName' | 'skillsScanSourceMissingReason' | 'skillsScanSourceChanged' | 'skillsInboxChanges' | 'skillsInboxNew' | 'skillsInboxUpdated' | 'skillsIgnoredDependencyFields' | 'skillsOpenScanFolder' | 'skillsCopyScanFolder' | 'skillsScanFolderOpened' | 'skillsScanFolderCopied' | 'skillsScanFolderCopyFailed';
16
17
  /** Props of {@link TeamSkillsView}. */
17
18
  export interface TeamSkillsViewProps {
18
19
  /** Page state and actions. */
19
20
  readonly controller: TeamSkillsController;
20
21
  /** Translate one locale key. */
21
- readonly t: (key: TeamSkillsLocaleKey) => string;
22
+ readonly t: (key: TeamPresetsLocaleKey) => string;
22
23
  }
23
24
  /** The Team Skill settings pages. */
24
25
  export declare function TeamSkillsView(props: TeamSkillsViewProps): React.ReactElement;