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.
Files changed (101) hide show
  1. package/NOTICE +57 -3
  2. package/README.md +73 -398
  3. package/README.zh.md +79 -404
  4. package/assets/card-patches/catalog.json +20 -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/skills/agent-leader-communication/SKILL.md +100 -0
  8. package/assets/skills/agent-subagent-orchestration/SKILL.md +56 -0
  9. package/assets/skills/agent-subagent-orchestration/references/executor-parallel-execution.md +56 -0
  10. package/assets/skills/agent-subagent-orchestration/references/leader-discovery.md +53 -0
  11. package/assets/skills/agent-subagent-orchestration/references/subagent-communication.md +58 -0
  12. package/assets/skills/backend-architecture-workflow/SKILL.md +55 -0
  13. package/assets/skills/backend-architecture-workflow/references/README.md +9 -0
  14. package/assets/skills/backend-architecture-workflow/references/architecture-audit.md +70 -0
  15. package/assets/skills/backend-architecture-workflow/references/architecture-decay-risks.md +75 -0
  16. package/assets/skills/backend-architecture-workflow/references/architecture-design.md +151 -0
  17. package/assets/skills/backend-architecture-workflow/references/bugfix-regression.md +63 -0
  18. package/assets/skills/backend-architecture-workflow/references/complex-bug-diagnosis.md +104 -0
  19. package/assets/skills/executor-short-task-workflow/SKILL.md +48 -0
  20. package/assets/skills/executor-short-task-workflow/references/agent-communication.md +44 -0
  21. package/assets/skills/executor-short-task-workflow/references/verification-and-reporting.md +45 -0
  22. package/assets/skills/frontend-engineering-workflow/SKILL.md +47 -0
  23. package/assets/skills/frontend-engineering-workflow/references/README.md +7 -0
  24. package/assets/skills/frontend-engineering-workflow/references/frontend-implementation.md +46 -0
  25. package/assets/skills/frontend-engineering-workflow/references/visual-design.md +43 -0
  26. package/assets/skills/frontend-engineering-workflow/references/visual-qa.md +126 -0
  27. package/assets/skills/fullstack-advisor/SKILL.md +50 -0
  28. package/assets/skills/fullstack-advisor/references/brooks-principles.md +51 -0
  29. package/assets/skills/fullstack-advisor/references/consultant-communication.md +51 -0
  30. package/assets/skills/fullstack-advisor/references/consultation-workflow.md +71 -0
  31. package/assets/skills/git-release-hygiene/SKILL.md +33 -21
  32. package/assets/skills/git-release-hygiene/references/git-safety.md +66 -0
  33. package/assets/skills/git-release-hygiene/references/pr-changelog.md +98 -0
  34. package/assets/skills/git-release-hygiene/references/release-standard.md +139 -0
  35. package/assets/skills/git-release-hygiene/references/validation-checklist.md +42 -0
  36. package/assets/skills/github-repository-presentation/SKILL.md +49 -130
  37. package/assets/skills/github-repository-presentation/references/bilingual-writing.md +43 -0
  38. package/assets/skills/github-repository-presentation/references/documentation-architecture.md +156 -0
  39. package/assets/skills/github-repository-presentation/references/readme-standard.md +273 -0
  40. package/assets/skills/github-repository-presentation/references/release-notes.md +70 -0
  41. package/assets/skills/github-repository-presentation/references/validation-checklist.md +47 -0
  42. package/assets/skills/independent-code-review-workflow/SKILL.md +60 -0
  43. package/assets/skills/independent-code-review-workflow/references/README.md +9 -0
  44. package/assets/skills/independent-code-review-workflow/references/decay-risks.md +99 -0
  45. package/assets/skills/independent-code-review-workflow/references/review-checklist.md +53 -0
  46. package/assets/skills/independent-code-review-workflow/references/review-methodology.md +113 -0
  47. package/assets/skills/independent-code-review-workflow/references/review-severity.md +49 -0
  48. package/assets/skills/independent-code-review-workflow/references/test-quality-review.md +71 -0
  49. package/assets/skills/leader-long-task-orchestration/SKILL.md +49 -0
  50. package/assets/skills/leader-long-task-orchestration/references/delivery-plan-template.md +73 -0
  51. package/assets/skills/leader-long-task-orchestration/references/product-alignment.md +46 -0
  52. package/assets/skills/leader-long-task-orchestration/references/rolling-wave-planning.md +32 -0
  53. package/assets/skills/leader-long-task-orchestration/references/technical-decisions-and-escalation.md +34 -0
  54. package/assets/skills/leader-medium-task-workflow/SKILL.md +55 -0
  55. package/assets/skills/leader-medium-task-workflow/references/task-board-and-leader-todo.md +41 -0
  56. package/docs/builtin-team-skills.md +82 -0
  57. package/docs/builtin-team-skills.zh.md +82 -0
  58. package/docs/builtin-teams.md +62 -0
  59. package/docs/builtin-teams.zh.md +62 -0
  60. package/docs/developer/architecture.md +54 -0
  61. package/docs/developer/architecture.zh.md +54 -0
  62. package/docs/guide/install.md +86 -0
  63. package/docs/guide/install.zh.md +86 -0
  64. package/docs/guide/integrations.md +50 -0
  65. package/docs/guide/integrations.zh.md +50 -0
  66. package/docs/guide/team-skills.md +56 -0
  67. package/docs/guide/team-skills.zh.md +56 -0
  68. package/docs/guide/using-teams.md +92 -0
  69. package/docs/guide/using-teams.zh.md +92 -0
  70. package/docs/index.md +53 -0
  71. package/docs/index.zh.md +53 -0
  72. package/docs/reference/tools-and-permissions.md +62 -0
  73. package/docs/reference/tools-and-permissions.zh.md +62 -0
  74. package/docs/reference/troubleshooting.md +59 -0
  75. package/docs/reference/troubleshooting.zh.md +59 -0
  76. package/lib/client.js +515 -85
  77. package/lib/index.js +442 -87
  78. package/lib/typert.host.js +15 -15
  79. package/lib/typert.remote-client.d.ts.map +1 -1
  80. package/lib/typert.remote-client.js +15 -15
  81. package/lib/types/client/CardPatchView.js +21 -1
  82. package/lib/types/client/ComposerTeamSelect.js +24 -8
  83. package/lib/types/client/TeamAgentView.d.ts +1 -1
  84. package/lib/types/client/TeamAgentView.js +11 -6
  85. package/lib/types/client/TeamSkillsView.d.ts +2 -1
  86. package/lib/types/client/TeamSkillsView.js +10 -5
  87. package/lib/types/client/locales.d.ts +41 -2
  88. package/lib/types/client/locales.js +125 -0
  89. package/lib/types/index.js +52 -12
  90. package/lib/types/team-catalog.d.ts +50 -3
  91. package/lib/types/team-catalog.js +214 -43
  92. package/lib/types/team-mode.d.ts +48 -0
  93. package/lib/types/team-mode.js +64 -0
  94. package/lib/types/team-skills/index.d.ts +13 -3
  95. package/lib/types/team-skills/index.js +21 -2
  96. package/lib/types/team-skills/manager.d.ts +21 -12
  97. package/lib/types/team-skills/manager.js +88 -53
  98. package/lib/types/team-skills/service.js +18 -7
  99. package/lib/types/team-skills/store.d.ts +11 -0
  100. package/lib/types/team-skills/store.js +32 -1
  101. package/package.json +18 -2
@@ -1,15 +1,54 @@
1
1
  /** Locale bundles for the Agent Team presets page and composer control. */
2
2
  import type { TeamPresetImportFailure } from '../preset-transfer.ts';
3
- import type { TeamExecutionState } from '../types.ts';
3
+ import type { TeamExecutionState, TeamSkillAssetView } from '../types.ts';
4
4
  import type { DefaultsRestore, TeamPresetsFormIssue, TeamSelectionFailure } from './team-presets-controller.ts';
5
5
  /** Locale keys this plugin renders. */
6
- export type TeamPresetsLocaleKey = 'nav' | 'title' | 'description' | 'newTeam' | 'duplicate' | 'remove' | 'removeMember' | 'teamList' | 'emptyTeams' | 'emptySelection' | 'memberCount' | 'teamName' | 'teamNamePlaceholder' | 'teamDescription' | 'captain' | 'captainHint' | 'members' | 'addMember' | 'membersHint' | 'agentName' | 'agentNamePlaceholder' | 'agentColor' | 'agentDescription' | 'route' | 'routeInherit' | 'provider' | 'model' | 'effort' | 'effortDefault' | 'captainModelHint' | 'captainFollowsSession' | 'modelsPartial' | 'modelsFailed' | 'tools' | 'toolsHint' | 'toolMode' | 'toolsDefault' | 'toolsCustom' | 'toolsAllHint' | 'toolsEmpty' | 'toolsScoped' | 'toolsSelectAll' | 'toolsClear' | 'toolsRemove' | 'toolsUnavailable' | 'toolsLoading' | 'toolsFailed' | 'toolsNoCatalog' | 'toolsCaptainOnly' | 'toolsGroupPresets' | 'toolsGroupMcp' | 'toolsGroupOther' | 'toolsInvert' | 'composerMissing' | 'composerMissingHint' | 'systemPrompt' | 'systemPromptPlaceholder' | 'systemPromptHint' | 'promptWarnBraces' | 'save' | 'saving' | 'saveFailed' | 'discard' | 'unsaved' | 'readOnly' | 'unavailable' | 'sectionLoading' | 'formIssueSettingsUnavailable' | 'formIssueNamespaceMissing' | 'formIssueSchemaRejected' | 'selectionUnavailable' | 'selectionRefused' | 'selectionFailed' | 'teamNameRequired' | 'externalUpdateOne' | 'externalUpdateMany' | 'externalUpdateOverriddenOne' | 'externalUpdateOverriddenMany' | 'executionBusy' | 'executionBusyShared' | 'executionIdle' | 'executionUnknown' | 'executionPtcOverridden' | 'externalAddedOne' | 'externalAddedMany' | 'externalRemovedOne' | 'externalRemovedMany' | 'externalRemovedEditedOne' | 'externalRemovedEditedMany' | 'back' | 'backToList' | 'editCaptain' | 'editMember' | 'teamSections' | 'agentSections' | 'modelSection' | 'promptSection' | 'toolsSection' | 'identitySection' | 'emptyMembers' | 'inheritSession' | 'deleteAgent' | 'roleCaptain' | 'roleMember' | 'composerTitle' | 'composerNone' | 'composerHint' | 'trigger' | 'loading' | 'unavailable' | 'roster' | 'model' | 'open' | 'current' | 'memberStatus.running' | 'memberStatus.inactive' | 'presetMemberBadge' | 'presetMemberBadgeHint' | 'tasks' | 'empty' | 'owner' | 'unowned' | 'blockedBy' | 'writeScopes' | 'ready' | 'blocked' | 'task.expand' | 'task.collapse' | 'status.pending' | 'status.in_progress' | 'status.completed' | 'importPreset' | 'exportPreset' | 'importNote' | 'importConfirm' | 'cancel' | 'close' | 'restoreDefaults' | 'restoreDefaultsHint' | 'defaultsRestored' | 'defaultsUnchanged' | 'restoreMissingHint' | 'importConflictTitle' | 'importTeamConflict' | 'importTeamReplace' | 'importTeamRename' | 'importNewTeamName' | 'importCaptainConflict' | 'importCaptainReplace' | 'importCaptainRename' | 'importMemberConflict' | 'importMemberReplace' | 'importMemberRename' | 'importInvalidJson' | 'importInvalidFormat' | 'importUnsupportedVersion' | 'importUnsupportedFields' | 'importDuplicateMembers' | 'importTooManyMembers' | 'importTooLarge' | 'importInvalidMetadata' | 'skillsEmpty' | 'skillsImport' | 'skillsNew' | 'skillsSave' | 'skillsDelete' | 'skillsAssign' | 'skillsUnassign' | 'skillsBuiltinList' | 'skillsFiles' | 'skillsBindings' | 'skillsNamePlaceholder' | 'skillsDescriptionPlaceholder' | 'skillsRoot' | 'skillsRefresh' | 'tabLinks' | 'patchIntro' | 'patchUnavailable' | 'patchStateAbsent' | 'patchStateUnsupported' | 'patchStatePristine' | 'patchStatePatched' | 'patchStateForeign' | 'patchActive' | 'patchSupported' | 'patchInstalledVersion' | 'patchSource' | 'patchPendingHint' | 'patchApplying' | 'patchWaiting' | 'patchInstall' | 'patchUninstall' | 'patchWorking' | 'patchInstallTitle' | 'patchUninstallTitle' | 'patchInstallBody' | 'patchUninstallBody' | 'patchPackage' | 'patchFile' | 'patchInstalledOk' | 'patchRemovedOk' | 'patchRefused' | 'skillsScan' | 'skillsScanHint' | 'skillsScanSummary' | 'skillsScanEmpty' | 'skillsScanImported' | 'skillsScanExisting' | 'skillsScanInvalid' | 'skillsScanMissingSkill' | 'skillsScanInvalidFrontmatter' | 'skillsScanInvalidName' | 'skillsScanMissingDescription' | 'skillsScanTooLarge' | 'skillsScanSymlink' | 'skillsScanNotDirectory' | 'skillsScanUnreadable' | 'skillsScanDuplicate' | 'skillsScanInstallRefused' | 'skillsOpenScanFolder' | 'skillsCopyScanFolder' | 'skillsScanFolderOpened' | 'skillsScanFolderCopied' | 'skillsScanFolderCopyFailed' | 'skillsOverride' | 'skillsReset' | 'skillsBody' | 'tabTeams' | 'tabSkills' | 'skillsHint' | 'skillsAssignTitle' | 'skillsAssignHint' | 'skillsAssignEmpty' | 'skillsNameClash' | 'skillsNameClashBody' | 'skillsBlockedAssign' | 'skillsMcpUnverified' | 'skillsDeclared' | 'skillsFound' | 'skillsMissing' | 'categoryRename' | 'categoryUp' | 'categoryDown' | 'categoryManagePage' | 'categoryTitle' | 'categorySub' | 'categoryTeams' | 'categorySave' | 'categoryRemove' | 'categoryNote' | 'categoryManage' | 'categoryFold' | 'categoryName' | 'categoryAdd' | 'categoryEmpty' | 'categoryOf' | 'categoryNone' | 'metadataTitle' | 'metadataOnlyDisplay' | 'metadataNote' | 'metadataFold' | 'metadataUnfold' | 'metadataSummary' | 'metadataTags' | 'metadataTagsHint' | 'metadataUseCases' | 'metadataQuickPrompts' | 'metadataNotes' | 'filterSource' | 'filterCategory' | 'filterNoCategory' | 'listSearch' | 'listAll' | 'listBuiltin' | 'listCustom' | 'seriesDevelopment' | 'seriesWorkModes' | 'listMatched' | 'listNoInject' | 'listNoMatch' | 'listResultCount' | 'restoreConfirmTitle' | 'restoreConfirmBody' | 'restoreConfirmAction' | 'composeTitle' | 'composeClose' | 'composeSearch' | 'composeAll' | 'composeFilterCategory' | 'composeCategoryAll' | 'composeUncategorized' | 'composeNoneSub' | 'composeSeriesDev' | 'composeSeriesModes' | 'composeEmpty' | 'composePanelTitle' | 'composePanelCaptain' | 'composePanelMembers' | 'composePanelSessionModel' | 'composePanelCaptainHint' | 'composePanelSoloHint' | 'composePanelEmptyMembers' | 'composePanelNoId' | 'composerMissingMember' | 'originBuiltin' | 'originCustom' | 'originOverride' | 'skillsTitle' | 'skillsSub' | 'skillsNote' | 'skillsOpenFolder' | 'skillsOpenAssetFolder' | 'skillsSearch' | 'skillsAll' | 'skillsBuiltin' | 'skillsCustom' | 'skillsBound' | 'skillsResources' | 'skillsSaveFile' | 'skillsEditable' | 'skillsReadonly' | 'skillsMakeCopy' | 'skillsResetCopy' | 'skillsNoBinding' | 'skillsUnbind' | 'skillsDeps' | 'skillsNoDeps' | 'skillsDeleteTitle' | 'skillsDeleteBody' | 'skillsDeleteBlocked' | 'skillsDeleteBoundWarning' | 'skillsDeleteBuiltinWarning' | 'skillsCancel' | 'skillsConfirm' | 'skillsName' | 'skillsDesc' | 'skillsNewTitle' | 'skillsVersion' | 'skillsOverrideOn';
6
+ export type TeamPresetsLocaleKey = 'nav' | 'title' | 'description' | 'newTeam' | 'duplicate' | 'remove' | 'removeMember' | 'teamList' | 'emptyTeams' | 'emptySelection' | 'memberCount' | 'teamName' | 'teamNamePlaceholder' | 'teamDescription' | 'captain' | 'captainHint' | 'members' | 'addMember' | 'membersHint' | 'agentName' | 'agentNamePlaceholder' | 'agentColor' | 'agentDescription' | 'route' | 'routeInherit' | 'provider' | 'model' | 'effort' | 'effortDefault' | 'captainModelHint' | 'captainFollowsSession' | 'modelsPartial' | 'modelsFailed' | 'tools' | 'toolsHint' | 'toolMode' | 'toolsDefault' | 'toolsCustom' | 'toolsAllHint' | 'toolsEmpty' | 'toolsScoped' | 'toolsSelectAll' | 'toolsClear' | 'toolsRemove' | 'toolsUnavailable' | 'toolsLoading' | 'toolsFailed' | 'toolsNoCatalog' | 'toolsCaptainOnly' | 'toolsGroupPresets' | 'toolsGroupMcp' | 'toolsGroupOther' | 'toolsInvert' | 'composerMissing' | 'composerMissingHint' | 'systemPrompt' | 'systemPromptPlaceholder' | 'systemPromptHint' | 'promptWarnBraces' | 'save' | 'saving' | 'saveFailed' | 'discard' | 'unsaved' | 'readOnly' | 'unavailable' | 'sectionLoading' | 'formIssueSettingsUnavailable' | 'formIssueNamespaceMissing' | 'formIssueSchemaRejected' | 'selectionUnavailable' | 'selectionRefused' | 'selectionFailed' | 'teamNameRequired' | 'externalUpdateOne' | 'externalUpdateMany' | 'externalUpdateOverriddenOne' | 'externalUpdateOverriddenMany' | 'executionBusy' | 'executionBusyShared' | 'executionIdle' | 'executionUnknown' | 'executionPtcOverridden' | 'externalAddedOne' | 'externalAddedMany' | 'externalRemovedOne' | 'externalRemovedMany' | 'externalRemovedEditedOne' | 'externalRemovedEditedMany' | 'back' | 'backToList' | 'editCaptain' | 'editMember' | 'teamSections' | 'agentSections' | 'modelSection' | 'promptSection' | 'toolsSection' | 'identitySection' | 'emptyMembers' | 'inheritSession' | 'deleteAgent' | 'roleCaptain' | 'roleMember' | 'composerTitle' | 'composerNone' | 'composerHint' | 'trigger' | 'loading' | 'unavailable' | 'roster' | 'model' | 'open' | 'current' | 'memberStatus.running' | 'memberStatus.inactive' | 'presetMemberBadge' | 'presetMemberBadgeHint' | 'tasks' | 'empty' | 'owner' | 'unowned' | 'blockedBy' | 'writeScopes' | 'ready' | 'blocked' | 'task.expand' | 'task.collapse' | 'status.pending' | 'status.in_progress' | 'status.completed' | 'importPreset' | 'exportPreset' | 'importNote' | 'importConfirm' | 'cancel' | 'close' | 'restoreDefaults' | 'restoreDefaultsHint' | 'defaultsRestored' | 'defaultsUnchanged' | 'restoreMissingHint' | 'importConflictTitle' | 'importTeamConflict' | 'importTeamReplace' | 'importTeamRename' | 'importNewTeamName' | 'importCaptainConflict' | 'importCaptainReplace' | 'importCaptainRename' | 'importMemberConflict' | 'importMemberReplace' | 'importMemberRename' | 'importInvalidJson' | 'importInvalidFormat' | 'importUnsupportedVersion' | 'importUnsupportedFields' | 'importDuplicateMembers' | 'importTooManyMembers' | 'importTooLarge' | 'importInvalidMetadata' | 'skillsEmpty' | 'skillsImport' | 'skillsNew' | 'skillsSave' | 'skillsDelete' | 'skillsAssign' | 'skillsUnassign' | 'skillsBuiltinList' | 'skillsFiles' | 'skillsBindings' | 'skillsNamePlaceholder' | 'skillsDescriptionPlaceholder' | 'skillsRoot' | 'skillsRefresh' | 'tabLinks' | 'patchIntro' | 'patchUnavailable' | 'patchStateAbsent' | 'patchStateUnsupported' | 'patchStatePristine' | 'patchStatePatched' | 'patchStateForeign' | 'patchUnsupportedReason' | 'patchActive' | 'patchSupported' | 'patchInstalledVersion' | 'patchSource' | 'patchPendingHint' | 'patchApplying' | 'patchWaiting' | 'patchInstall' | 'patchUninstall' | 'patchWorking' | 'patchInstallTitle' | 'patchUninstallTitle' | 'patchInstallBody' | 'patchUninstallBody' | 'patchPackage' | 'patchFile' | 'patchInstalledOk' | 'patchRemovedOk' | 'patchRefused' | 'skillsScan' | 'skillsScanHint' | 'skillsScanSummary' | 'skillsScanEmpty' | 'skillsScanImported' | 'skillsScanExisting' | 'skillsScanInvalid' | 'skillsScanMissingSkill' | 'skillsScanInvalidFrontmatter' | 'skillsScanInvalidName' | 'skillsScanMissingDescription' | 'skillsScanTooLarge' | 'skillsScanSymlink' | 'skillsScanNotDirectory' | 'skillsScanUnreadable' | 'skillsScanDuplicate' | 'skillsScanInstallRefused' | 'skillsOpenScanFolder' | 'skillsCopyScanFolder' | 'skillsScanFolderOpened' | 'skillsScanFolderCopied' | 'skillsScanFolderCopyFailed' | 'skillsOverride' | 'skillsReset' | 'skillsBody' | 'tabTeams' | 'tabSkills' | 'skillsHint' | 'skillsAssignTitle' | 'skillsAssignHint' | 'skillsAssignEmpty' | 'skillsNameClash' | 'skillsNameClashBody' | 'skillsBlockedAssign' | 'skillsMcpUnverified' | 'skillsDeclared' | 'skillsFound' | 'skillsMissing' | 'categoryRename' | 'categoryUp' | 'categoryDown' | 'categoryManagePage' | 'categoryTitle' | 'categorySub' | 'categoryTeams' | 'categorySave' | 'categoryRemove' | 'categoryNote' | 'categoryManage' | 'categoryFold' | 'categoryName' | 'categoryAdd' | 'categoryEmpty' | 'categoryOf' | 'categoryNone' | 'metadataTitle' | 'metadataOnlyDisplay' | 'metadataNote' | 'metadataFold' | 'metadataUnfold' | 'metadataSummary' | 'metadataTags' | 'metadataTagsHint' | 'metadataUseCases' | 'metadataQuickPrompts' | 'metadataNotes' | 'filterSource' | 'filterCategory' | 'filterNoCategory' | 'listSearch' | 'listAll' | 'listBuiltin' | 'listCustom' | 'seriesDevelopment' | 'seriesWorkModes' | 'listMatched' | 'listNoInject' | 'listNoMatch' | 'listResultCount' | 'restoreConfirmTitle' | 'restoreConfirmBody' | 'restoreConfirmAction' | 'composeTitle' | 'composeClose' | 'composeSearch' | 'composeAll' | 'composeFilterCategory' | 'composeCategoryAll' | 'composeUncategorized' | 'composeNoneSub' | 'composeSeriesDev' | 'composeSeriesModes' | 'composeEmpty' | 'composePanelTitle' | 'composePanelCaptain' | 'composePanelMembers' | 'composePanelSessionModel' | 'composePanelCaptainHint' | 'composePanelSoloHint' | 'composePanelEmptyMembers' | 'composePanelNoId' | 'composerMissingMember' | 'originBuiltin' | 'originCustom' | 'originOverride' | 'skillsTitle' | 'skillsSub' | 'skillsNote' | 'skillsOpenFolder' | 'skillsOpenAssetFolder' | 'skillsSearch' | 'skillsAll' | 'skillsBuiltin' | 'skillsCustom' | 'skillsBound' | 'skillsResources' | 'skillsSaveFile' | 'skillsEditable' | 'skillsReadonly' | 'skillsMakeCopy' | 'skillsResetCopy' | 'skillsNoBinding' | 'skillsUnbind' | 'skillsDeps' | 'skillsNoDeps' | 'skillsDeleteTitle' | 'skillsDeleteBody' | 'skillsDeleteBlocked' | 'skillsDeleteBoundWarning' | 'skillsDeleteBuiltinWarning' | 'skillsCancel' | 'skillsConfirm' | 'skillsName' | 'skillsDesc' | 'skillsNewTitle' | 'skillsVersion' | 'skillsOverrideOn' | 'skillAgentLeaderCommunication' | 'skillLeaderMediumTaskWorkflow' | 'skillLeaderLongTaskOrchestration' | 'skillAgentSubagentOrchestration' | 'skillFullstackAdvisor' | 'skillExecutorShortTaskWorkflow' | 'skillGithubRepositoryPresentation' | 'skillGitReleaseHygiene' | 'skillGrilling' | 'skillResearch' | 'skillFrontendEngineeringWorkflow' | 'skillBackendArchitectureWorkflow' | 'skillIndependentCodeReviewWorkflow' | 'skillsCategoryAll' | 'skillsCategoryWorkflow' | 'skillsCategoryDelivery' | 'skillsCategoryMethod' | 'skillsCategoryCustom' | 'skillsFilterEmpty';
7
7
  /** Locale namespace owned by this plugin. */
8
8
  export declare const NS = "settings.agentTeamPresets";
9
9
  /** English copy. */
10
10
  export declare const en: Record<TeamPresetsLocaleKey, string>;
11
11
  /** Simplified Chinese copy. */
12
12
  export declare const zh: Record<TeamPresetsLocaleKey, string>;
13
+ /**
14
+ * Display names of the shipped Team Skills, keyed by the English skill id.
15
+ *
16
+ * The id is the asset's identity on every other surface — the skill catalogue
17
+ * the model reads, the stored binding, the preset document, and the asset
18
+ * directory — so the label is presentation only and never reaches the runtime or
19
+ * the disk. English carries the original id rather than a prose title, so an
20
+ * English page shows exactly the name every other surface already uses.
21
+ */
22
+ export declare const SKILL_LABEL_KEYS: Readonly<Record<string, TeamPresetsLocaleKey>>;
23
+ /**
24
+ * The name one Team Skill is shown under.
25
+ * @param skillId - the asset's English identity.
26
+ * @param t - the page's locale reader.
27
+ * @returns the localized label, or the English id for a skill this build does not ship.
28
+ */
29
+ export declare function skillLabel(skillId: string, t: (key: TeamPresetsLocaleKey) => string): string;
30
+ /**
31
+ * The filter categories of a Team Skill list, in menu order.
32
+ *
33
+ * They describe the kind of work a shipped skill belongs to rather than the role
34
+ * that happens to hold it, so a skill keeps its category when a Team re-binds it.
35
+ * Everything this build does not ship — a user's own skill, and a shipped id a
36
+ * newer release added before this table learned about it — is "custom".
37
+ */
38
+ export declare const SKILL_CATEGORIES: readonly ["workflow", "delivery", "method", "custom"];
39
+ /** One filter category of a Team Skill list. */
40
+ export type SkillCategoryId = (typeof SKILL_CATEGORIES)[number];
41
+ /** Locale key of one category's label. */
42
+ export declare const SKILL_CATEGORY_LABELS: Readonly<Record<SkillCategoryId, TeamPresetsLocaleKey>>;
43
+ /**
44
+ * The category one asset is filtered under.
45
+ *
46
+ * A local override of a shipped skill stays with that skill's category: it is the
47
+ * same skill, edited. Only a skill the user brought in themselves is "custom".
48
+ * @param asset - the asset row, as the page received it.
49
+ * @returns its filter category.
50
+ */
51
+ export declare function skillCategoryOf(asset: Pick<TeamSkillAssetView, 'skillId' | 'origin' | 'officialSkillId'>): SkillCategoryId;
13
52
  /**
14
53
  * Locale key for one Host disclosure about how the applied Team runs.
15
54
  *
@@ -181,6 +181,7 @@ export const en = {
181
181
  patchUnavailable: 'This session cannot read the integrations state.',
182
182
  patchStateAbsent: 'not installed',
183
183
  patchStateUnsupported: 'version not supported',
184
+ patchUnsupportedReason: 'installed {installed}, this build supports up to {supported}',
184
185
  patchStatePristine: 'not patched',
185
186
  patchStatePatched: 'patched',
186
187
  patchStateForeign: 'modified by something else',
@@ -340,6 +341,25 @@ export const en = {
340
341
  skillsAssignHint: 'Checked skills belong to this member only. They are discovered through this Agent scope, never globally.',
341
342
  skillsAssignEmpty: 'No team skill is installed yet. Add one on the Team skills page.',
342
343
  skillsOverrideOn: 'a local override is active',
344
+ skillAgentLeaderCommunication: 'agent-leader-communication',
345
+ skillLeaderMediumTaskWorkflow: 'leader-medium-task-workflow',
346
+ skillLeaderLongTaskOrchestration: 'leader-long-task-orchestration',
347
+ skillAgentSubagentOrchestration: 'agent-subagent-orchestration',
348
+ skillFullstackAdvisor: 'fullstack-advisor',
349
+ skillExecutorShortTaskWorkflow: 'executor-short-task-workflow',
350
+ skillGithubRepositoryPresentation: 'github-repository-presentation',
351
+ skillGitReleaseHygiene: 'git-release-hygiene',
352
+ skillFrontendEngineeringWorkflow: 'frontend-engineering-workflow',
353
+ skillBackendArchitectureWorkflow: 'backend-architecture-workflow',
354
+ skillIndependentCodeReviewWorkflow: 'independent-code-review-workflow',
355
+ skillGrilling: 'grilling',
356
+ skillResearch: 'research',
357
+ skillsCategoryAll: 'All categories',
358
+ skillsCategoryWorkflow: 'Workflow',
359
+ skillsCategoryDelivery: 'Delivery',
360
+ skillsCategoryMethod: 'Method',
361
+ skillsCategoryCustom: 'Custom',
362
+ skillsFilterEmpty: 'No skill in this category.',
343
363
  };
344
364
  /** Simplified Chinese copy. */
345
365
  export const zh = {
@@ -521,6 +541,7 @@ export const zh = {
521
541
  patchUnavailable: '当前会话无法读取插件联动状态。',
522
542
  patchStateAbsent: '未安装',
523
543
  patchStateUnsupported: '版本不支持',
544
+ patchUnsupportedReason: '已安装 {installed},本版本最高适配 {supported}',
524
545
  patchStatePristine: '未打补丁',
525
546
  patchStatePatched: '已打补丁',
526
547
  patchStateForeign: '已被其他改动修改',
@@ -680,7 +701,111 @@ export const zh = {
680
701
  skillsAssignHint: '勾选的技能只属于这名成员,通过该 Agent 的作用域发现,不会全局注册。',
681
702
  skillsAssignEmpty: '还没有安装任何团队技能,请先到「团队技能」页添加。',
682
703
  skillsOverrideOn: '已启用本地覆盖',
704
+ skillAgentLeaderCommunication: '队长派发与通信',
705
+ skillLeaderMediumTaskWorkflow: '中程任务工作流',
706
+ skillLeaderLongTaskOrchestration: '长程任务编排',
707
+ skillAgentSubagentOrchestration: '孙代理并行编排',
708
+ skillFullstackAdvisor: '全栈技术咨询',
709
+ skillExecutorShortTaskWorkflow: '执行者短程工作流',
710
+ skillGithubRepositoryPresentation: '仓库展示规范',
711
+ skillGitReleaseHygiene: 'Git 提交与发布规范',
712
+ skillFrontendEngineeringWorkflow: '前端工程工作流',
713
+ skillBackendArchitectureWorkflow: '后端架构工作流',
714
+ skillIndependentCodeReviewWorkflow: '独立代码审查工作流',
715
+ skillGrilling: '需求拷问',
716
+ skillResearch: '一手来源调研',
717
+ skillsCategoryAll: '全部分类',
718
+ skillsCategoryWorkflow: '工作流型',
719
+ skillsCategoryDelivery: '交付型',
720
+ skillsCategoryMethod: '方法型',
721
+ skillsCategoryCustom: '自定义',
722
+ skillsFilterEmpty: '该分类下暂无技能。',
683
723
  };
724
+ /**
725
+ * Display names of the shipped Team Skills, keyed by the English skill id.
726
+ *
727
+ * The id is the asset's identity on every other surface — the skill catalogue
728
+ * the model reads, the stored binding, the preset document, and the asset
729
+ * directory — so the label is presentation only and never reaches the runtime or
730
+ * the disk. English carries the original id rather than a prose title, so an
731
+ * English page shows exactly the name every other surface already uses.
732
+ */
733
+ export const SKILL_LABEL_KEYS = {
734
+ 'agent-leader-communication': 'skillAgentLeaderCommunication',
735
+ 'leader-medium-task-workflow': 'skillLeaderMediumTaskWorkflow',
736
+ 'leader-long-task-orchestration': 'skillLeaderLongTaskOrchestration',
737
+ 'agent-subagent-orchestration': 'skillAgentSubagentOrchestration',
738
+ 'fullstack-advisor': 'skillFullstackAdvisor',
739
+ 'executor-short-task-workflow': 'skillExecutorShortTaskWorkflow',
740
+ 'github-repository-presentation': 'skillGithubRepositoryPresentation',
741
+ 'git-release-hygiene': 'skillGitReleaseHygiene',
742
+ 'frontend-engineering-workflow': 'skillFrontendEngineeringWorkflow',
743
+ 'backend-architecture-workflow': 'skillBackendArchitectureWorkflow',
744
+ 'independent-code-review-workflow': 'skillIndependentCodeReviewWorkflow',
745
+ 'grilling': 'skillGrilling',
746
+ 'research': 'skillResearch',
747
+ };
748
+ /**
749
+ * The name one Team Skill is shown under.
750
+ * @param skillId - the asset's English identity.
751
+ * @param t - the page's locale reader.
752
+ * @returns the localized label, or the English id for a skill this build does not ship.
753
+ */
754
+ export function skillLabel(skillId, t) {
755
+ const key = SKILL_LABEL_KEYS[skillId];
756
+ return key === undefined ? skillId : t(key);
757
+ }
758
+ /**
759
+ * The filter categories of a Team Skill list, in menu order.
760
+ *
761
+ * They describe the kind of work a shipped skill belongs to rather than the role
762
+ * that happens to hold it, so a skill keeps its category when a Team re-binds it.
763
+ * Everything this build does not ship — a user's own skill, and a shipped id a
764
+ * newer release added before this table learned about it — is "custom".
765
+ */
766
+ export const SKILL_CATEGORIES = ['workflow', 'delivery', 'method', 'custom'];
767
+ /** Locale key of one category's label. */
768
+ export const SKILL_CATEGORY_LABELS = {
769
+ workflow: 'skillsCategoryWorkflow',
770
+ delivery: 'skillsCategoryDelivery',
771
+ method: 'skillsCategoryMethod',
772
+ custom: 'skillsCategoryCustom',
773
+ };
774
+ /**
775
+ * The category of every shipped skill, keyed by the English skill id.
776
+ *
777
+ * A shipped skill the table does not name falls back to "custom", which is why
778
+ * the package's own test proves the table covers every shipped id: the fallback
779
+ * is for a skill this build did not ship, never for one it did.
780
+ */
781
+ const SHIPPED_SKILL_CATEGORIES = {
782
+ 'agent-leader-communication': 'workflow',
783
+ 'leader-medium-task-workflow': 'workflow',
784
+ 'leader-long-task-orchestration': 'workflow',
785
+ 'agent-subagent-orchestration': 'workflow',
786
+ 'fullstack-advisor': 'workflow',
787
+ 'executor-short-task-workflow': 'workflow',
788
+ 'github-repository-presentation': 'delivery',
789
+ 'git-release-hygiene': 'delivery',
790
+ 'frontend-engineering-workflow': 'workflow',
791
+ 'backend-architecture-workflow': 'workflow',
792
+ 'independent-code-review-workflow': 'workflow',
793
+ 'grilling': 'method',
794
+ 'research': 'method',
795
+ };
796
+ /**
797
+ * The category one asset is filtered under.
798
+ *
799
+ * A local override of a shipped skill stays with that skill's category: it is the
800
+ * same skill, edited. Only a skill the user brought in themselves is "custom".
801
+ * @param asset - the asset row, as the page received it.
802
+ * @returns its filter category.
803
+ */
804
+ export function skillCategoryOf(asset) {
805
+ if (asset.origin === 'custom')
806
+ return 'custom';
807
+ return SHIPPED_SKILL_CATEGORIES[asset.officialSkillId ?? asset.skillId] ?? 'custom';
808
+ }
684
809
  /**
685
810
  * Locale key for one Host disclosure about how the applied Team runs.
686
811
  *
@@ -27,6 +27,7 @@ import { hasTeamApplicationMarker, isSessionRoot, TeamExecutionMonitor, teammate
27
27
  import { membershipOf } from "./team-runtime.js";
28
28
  import { RUN_CODE_NAME } from '@deepseek-ai/dsh-tools';
29
29
  import { registerPresetTools } from "./preset-tools.js";
30
+ import { teamModeAdmitsTools } from "./team-mode.js";
30
31
  import { CAPTAIN_ROLE, TeamSkills, resolveSkillRoot, roleOfMember } from "./team-skills/index.js";
31
32
  import { TeamSkillService } from "./team-skills/service.js";
32
33
  import { registerTeamSkillTools } from "./team-skills/tools.js";
@@ -924,19 +925,45 @@ export function apply(ctx, config) {
924
925
  const selection = config.selections.get().find(row => row.sessionId === agent.session.id);
925
926
  const selectedId = selection?.teamId;
926
927
  const selectedRole = selectedRoleId(selection);
927
- // The preset tools are the discovery path, not a Team capability: a user can
928
- // ask the captain to adjust "the Team preset" before this Session selects
929
- // one, and the captain must be able to read the configured Teams and ask
930
- // which one. They therefore belong to every Session root, exactly as before
931
- // any Team is selected.
932
- if (!presetTools.has(agent)) {
933
- presetTools.set(agent, registerPresetTools(ctx, agent, config, NAMESPACE, root => applications.get(root)?.teamId));
928
+ // The seven Team-themed tools follow the Session's Team mode, exactly as the
929
+ // official team_task_* tools do: with Team mode off there is no Team, no
930
+ // selected role and no library to manage, and the composer offers no Team
931
+ // control either. Registration is what carries that decision, so the two
932
+ // states are "installed" and "not installed" — never "registered but
933
+ // unreadable", which is what a step-time `when` condition would produce for
934
+ // the quarantine guard, the capability preflight and member routing.
935
+ // A deployment that composes no Agent Teams service publishes no projection.
936
+ // Reading that absence through `ctx.get` is the only safe way to ask: the
937
+ // injected property throws when the service is missing, and an unknown mode
938
+ // must keep the tools exactly as they were.
939
+ let projections;
940
+ try {
941
+ projections = ctx.get('sessionProjections');
942
+ }
943
+ catch {
944
+ projections = undefined;
945
+ }
946
+ const teamToolsAdmitted = teamModeAdmitsTools(projections, agent);
947
+ if (!teamToolsAdmitted) {
948
+ presetTools.get(agent)?.();
949
+ presetTools.delete(agent);
950
+ skillTools.get(agent)?.();
951
+ skillTools.delete(agent);
934
952
  }
935
- // The library is managed by the user through the captain, on the Session root
936
- // only: a teammate able to grant itself a skill would defeat the per-Agent
937
- // isolation the subsystem exists for.
938
- if (!skillTools.has(agent)) {
939
- skillTools.set(agent, registerTeamSkillTools(ctx, agent, skillToolDeps));
953
+ else {
954
+ // The preset tools are the discovery path, not a Team capability: a user can
955
+ // ask the captain to adjust "the Team preset" before this Session selects
956
+ // one, and the captain must be able to read the configured Teams and ask
957
+ // which one. They therefore belong to every admitted Session root.
958
+ if (!presetTools.has(agent)) {
959
+ presetTools.set(agent, registerPresetTools(ctx, agent, config, NAMESPACE, root => applications.get(root)?.teamId));
960
+ }
961
+ // The library is managed by the user through the captain, on the Session root
962
+ // only: a teammate able to grant itself a skill would defeat the per-Agent
963
+ // isolation the subsystem exists for.
964
+ if (!skillTools.has(agent)) {
965
+ skillTools.set(agent, registerTeamSkillTools(ctx, agent, skillToolDeps));
966
+ }
940
967
  }
941
968
  // The Team Skill library is managed by the user through the captain, on the
942
969
  // Session root only: a teammate able to grant itself a skill would defeat the
@@ -1331,6 +1358,19 @@ export function apply(ctx, config) {
1331
1358
  // instead of through `agent/status`. The phase is read on the next microtask,
1332
1359
  // so the projection has folded the append this listener just saw, and several
1333
1360
  // settlements in one append batch cost one read.
1361
+ // The Team mode itself is a Session event, so a Session that turns Agent Teams
1362
+ // on or off mid-life gains or loses the Team-themed tools at that commit — the
1363
+ // same edge the official team_task_* tools follow. The mode is read from the
1364
+ // projection, which has folded this append by the next microtask.
1365
+ ctx.on('session/event', (session, event) => {
1366
+ if (event.type !== 'team/mode')
1367
+ return;
1368
+ const agent = ctx.agents.get(session.id);
1369
+ if (agent === undefined || !isSessionRoot(agent))
1370
+ return;
1371
+ queueMicrotask(() => { if (!disposed)
1372
+ reconcile(agent); });
1373
+ });
1334
1374
  ctx.on('session/event', (session, event) => {
1335
1375
  if (event.type !== 'subagent/catalog')
1336
1376
  return;
@@ -47,10 +47,57 @@ export interface OfficialSkillBinding {
47
47
  */
48
48
  export declare const OFFICIAL_REPOSITORY_SKILLS: readonly OfficialSkillBinding[];
49
49
  /**
50
- * The shipped delivery skills, assigned by default to the `executor` role
51
- * of software engineering Teams.
50
+ * The leader workflow skills, assigned by default to the `team-lead` captain of
51
+ * every software engineering Team: dispatching and reporting, the bounded
52
+ * medium-task board, the long-running delivery plan, and the subagent
53
+ * orchestration rules a captain needs before it may explore in parallel.
52
54
  */
53
- export declare const OFFICIAL_EXECUTOR_SKILLS: readonly OfficialSkillBinding[];
55
+ export declare const OFFICIAL_LEADER_SKILLS: readonly OfficialSkillBinding[];
56
+ /**
57
+ * The advisory workflow skill, assigned by default to the `fullstack-advisor`
58
+ * role. The advisor stays single-threaded, so it never receives the subagent
59
+ * orchestration skill.
60
+ */
61
+ export declare const OFFICIAL_ADVISOR_SKILLS: readonly OfficialSkillBinding[];
62
+ /**
63
+ * The delivery skills, assigned by default to the `executor` role of software
64
+ * engineering Teams: the bounded implementation workflow, the parallel
65
+ * work-package orchestration rules, and the two repository delivery skills.
66
+ */
67
+ export declare const OFFICIAL_DEVELOPMENT_EXECUTOR_SKILLS: readonly OfficialSkillBinding[];
68
+ /**
69
+ * The default assignments of a software engineering Team that carries an
70
+ * advisory role: leader, advisor, then executor. `agent-subagent-orchestration`
71
+ * is deliberately bound to two roles and to no third one.
72
+ */
73
+ export declare const OFFICIAL_DEVELOPMENT_SKILLS: readonly OfficialSkillBinding[];
74
+ /**
75
+ * The professional-role workflows, one main skill per specialist role: the
76
+ * UI frontend engineer, the backend architect, and the independent reviewer.
77
+ *
78
+ * Each is a progressive-loading entry point — the detailed methods live in its
79
+ * own `references/` folder and are read on demand, never registered as skills
80
+ * of their own. The reviewer keeps the subagent orchestration rules because a
81
+ * large, high-risk review may fan out; the two advisory-side roles never
82
+ * dispatch.
83
+ */
84
+ export declare const OFFICIAL_PROFESSIONAL_SKILLS: readonly OfficialSkillBinding[];
85
+ /**
86
+ * The reviewer's bindings alone.
87
+ *
88
+ * The 标准研发团队 has no specialist role, so it declares the leader, advisor,
89
+ * executor, and reviewer defaults and nothing that names a role it does not
90
+ * carry — a declaration with no matching role would never resolve, and the
91
+ * catalog is what the Host reconciles against.
92
+ */
93
+ export declare const OFFICIAL_STANDARD_SKILLS: readonly OfficialSkillBinding[];
94
+ /**
95
+ * The default assignments of the 全栈软件研发团队, whose advisor work is split
96
+ * into two specialist roles: leader, the frontend and backend workflows, the
97
+ * reviewer pair, and the executor's own delivery skills. There is no single
98
+ * `fullstack-advisor` binding, because that Team does not carry that role.
99
+ */
100
+ export declare const OFFICIAL_SPECIALIST_SKILLS: readonly OfficialSkillBinding[];
54
101
  /**
55
102
  * The method skills assigned by default to the 需求探索 team: grilling to the
56
103
  * captain, and research to the two scouting roles that gather evidence for it.