dsh-agent-team-presets 0.3.0 → 0.3.2

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.
@@ -3,7 +3,7 @@ import type { TeamPresetImportFailure } from '../preset-transfer.ts';
3
3
  import type { TeamExecutionState } 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' | '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' | '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';
7
7
  /** Locale namespace owned by this plugin. */
8
8
  export declare const NS = "settings.agentTeamPresets";
9
9
  /** English copy. */
@@ -139,6 +139,7 @@ export const en = {
139
139
  restoreDefaultsHint: 'Puts every preset this plugin ships back to its shipped name, description, prompts, colors, and roster. The model routes and tool permissions you configured stay as they are, and teams you created yourself are not touched.',
140
140
  defaultsRestored: 'Default presets restored in this draft. Save to apply them.',
141
141
  defaultsUnchanged: 'The default presets already match what this plugin ships; nothing was staged.',
142
+ restoreMissingHint: 'This deployment was offered the {count} built-in Team presets, but none of them are in the list. Unless you deleted them yourself, click "Restore built-in presets" to bring them back, then save.',
142
143
  importConfirm: 'Import',
143
144
  cancel: 'Cancel',
144
145
  close: 'Close',
@@ -478,6 +479,7 @@ export const zh = {
478
479
  restoreDefaultsHint: '把插件自带的预设全部恢复到出厂的名称、说明、提示词、颜色和成员名单;你为它们配置的模型路由与工具权限保持不变,你自己创建的团队完全不受影响。',
479
480
  defaultsRestored: '默认预设已恢复到草稿,保存后生效。',
480
481
  defaultsUnchanged: '默认预设与插件出厂状态一致,无需恢复。',
482
+ restoreMissingHint: '这个部署曾经拿到过插件自带的 {count} 个团队预设,但它们现在都不在列表里。如果不是你主动删除的,点「恢复内置预设」可以把它们找回来,然后记得保存。',
481
483
  importConfirm: '导入',
482
484
  cancel: '取消',
483
485
  close: '关闭',
@@ -17,7 +17,7 @@
17
17
  * @module dsh-agent-team-presets/settings-reconcile
18
18
  */
19
19
  import { randomUUID } from 'node:crypto';
20
- import { cloneMetadata, seedBuiltinTeams } from "./builtin-teams.js";
20
+ import { cloneMetadata, missingSeededBuiltinTeams, seedBuiltinTeams } from "./builtin-teams.js";
21
21
  import { builtinEntry } from "./team-catalog.js";
22
22
  import { withoutCaptainRoutes } from "./config.js";
23
23
  import { reconciledAssignments } from "./team-search.js";
@@ -78,6 +78,14 @@ export function teamSettingsReconcile(ctx, config, namespace) {
78
78
  // user edited keeps every edit, and one the user deleted stays deleted
79
79
  // because its identity was marked when it was first offered.
80
80
  const installed = seedBuiltinTeams(cleaned, seeded);
81
+ // The marker keeps a deleted preset deleted, so a Team list that lost
82
+ // its shipped presets some other way (a hand edit, a restored settings
83
+ // file, a rollback) stays empty until the reader restores them. Say so
84
+ // once per startup instead of leaving an unexplained empty page.
85
+ const missingShipped = missingSeededBuiltinTeams(installed.teams, installed.seeded);
86
+ if (missingShipped.length > 0) {
87
+ ctx.logger.warn('agent-team-presets: %d shipped Team preset(s) are marked as offered but missing from the Team list (%s); open Settings → Agent Team presets and click "Restore built-in presets", then save', missingShipped.length, missingShipped.join(', '));
88
+ }
81
89
  // Grouping rows naming a deleted category or a deleted custom Team are
82
90
  // dead: drop them here so the page never has to explain a row it
83
91
  // cannot resolve. A row naming a shipped identity survives, because a
@@ -44,7 +44,7 @@ import { RUN_CODE_NAME } from '@deepseek-ai/dsh-tools';
44
44
  import { GET_TEAM_PRESET_DESCRIPTION, SPAWN_TEAM_MEMBER_DESCRIPTION, UPDATE_TEAM_PRESET_DESCRIPTION } from "./tool-descriptions.js";
45
45
  import { IMPLICIT_TOOLS } from "./presets.js";
46
46
  import { Remote, TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
47
- import { CARD_PATCH_TARGETS, findCardPatchTarget, installCardPatch, targetState, uninstallCardPatch } from "./card-patches.js";
47
+ import { catalogIdentities, catalogTargetsFor, installCardPatch, resolveInstalledTarget, resolveTargetView, uninstallCardPatch } from "./card-patches.js";
48
48
  /**
49
49
  * One frame for a composition that holds no execution state.
50
50
  *
@@ -279,7 +279,9 @@ let TeamPresetsToolCatalog = (() => {
279
279
  * @returns one row per supported target, in catalog order.
280
280
  */
281
281
  async cardPatches() {
282
- return CARD_PATCH_TARGETS.map(target => targetState(target, this.cardPatchEnvironment));
282
+ // One row per identity: the catalog may hold several versions of a target,
283
+ // and which one is relevant depends on what is installed right now.
284
+ return catalogIdentities().map(id => resolveTargetView(catalogTargetsFor(id), this.cardPatchEnvironment));
283
285
  }
284
286
  /**
285
287
  * Replace one target's browser bundle with this build's prebuilt replacement.
@@ -287,10 +289,9 @@ let TeamPresetsToolCatalog = (() => {
287
289
  * @returns the outcome, or a refusal naming why nothing changed.
288
290
  */
289
291
  async installCardPatch(id) {
290
- const target = findCardPatchTarget(id);
291
- if (target === undefined) {
292
- return { ok: false, id, state: 'absent', detail: `this build ships no card patch for "${id}"` };
293
- }
292
+ const { target, view } = resolveInstalledTarget(id, this.cardPatchEnvironment);
293
+ if (target === undefined)
294
+ return { ok: false, id, state: view.state, ...view.detail === undefined ? {} : { detail: view.detail } };
294
295
  const result = installCardPatch(target, this.cardPatchEnvironment);
295
296
  if (result.ok)
296
297
  this.publishClientBundle(target.packageName);
@@ -302,10 +303,11 @@ let TeamPresetsToolCatalog = (() => {
302
303
  * @returns the outcome, or a refusal naming why nothing changed.
303
304
  */
304
305
  async uninstallCardPatch(id) {
305
- const target = findCardPatchTarget(id);
306
- if (target === undefined) {
307
- return { ok: false, id, state: 'absent', detail: `this build ships no card patch for "${id}"` };
308
- }
306
+ // Restore must resolve the same entry the row was classified against: a
307
+ // different version's pristine hash could never match the backup.
308
+ const { target, view } = resolveInstalledTarget(id, this.cardPatchEnvironment);
309
+ if (target === undefined)
310
+ return { ok: false, id, state: view.state, ...view.detail === undefined ? {} : { detail: view.detail } };
309
311
  const result = uninstallCardPatch(target, this.cardPatchEnvironment);
310
312
  if (result.ok)
311
313
  this.publishClientBundle(target.packageName);
@@ -602,8 +602,12 @@ export interface CardPatchTargetView {
602
602
  readonly packageName: string;
603
603
  /** Upstream revision the prebuilt replacement came from. */
604
604
  readonly source: string;
605
- /** The version this build ships a replacement for. */
605
+ /** Service a patched target registers; the page reads it to tell "active" from "installed". */
606
+ readonly service: string;
607
+ /** The version whose replacement applies to this row (the newest supported one when none matches). */
606
608
  readonly supportedVersion: string;
609
+ /** Every upstream version this build ships a replacement for. */
610
+ readonly supportedVersions: readonly string[];
607
611
  /** Installed version, when the package is present. */
608
612
  readonly installedVersion?: string;
609
613
  /** Installed bundle state. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-agent-team-presets",
3
3
  "description": "Reusable Agent Team presets for DeepSeek Harness: a captain plus members with their own prompt, model, reasoning effort, and tools.",
4
- "version": "0.3.0",
4
+ "version": "0.3.2",
5
5
  "keywords": [
6
6
  "agent-presets",
7
7
  "agent-teams",
@@ -66,30 +66,31 @@
66
66
  "check:readme": "node tools/check-readme-install.mjs",
67
67
  "test:e2e": "node tools/test.mjs --e2e",
68
68
  "typecheck": "node tools/typecheck.mjs",
69
- "bundle": "node tools/build.mjs"
69
+ "bundle": "node tools/build.mjs",
70
+ "card-patches": "node tools/card-patches.mjs"
70
71
  },
71
72
  "license": "MIT",
72
73
  "engines": {
73
- "dsh": ">=0.2.2-rc.2 <0.3.0"
74
+ "dsh": ">=0.2.2-rc.3 <0.3.0"
74
75
  },
75
76
  "peerDependencies": {
76
77
  "@deepseek-ai/cordis": ">=4.0.4 <5.0.0",
77
- "@deepseek-ai/dsh-agent": ">=0.2.2-rc.2 <0.3.0",
78
- "@deepseek-ai/dsh-agent-preset-registry": ">=0.2.2-rc.2 <0.3.0",
79
- "@deepseek-ai/dsh-agent-team": ">=0.2.2-rc.2 <0.3.0",
80
- "@deepseek-ai/dsh-llm": ">=0.2.2-rc.2 <0.3.0",
81
- "@deepseek-ai/dsh-scope": ">=0.2.2-rc.2 <0.3.0",
82
- "@deepseek-ai/dsh-session": ">=0.2.2-rc.2 <0.3.0",
83
- "@deepseek-ai/dsh-session-projection": ">=0.2.2-rc.2 <0.3.0",
84
- "@deepseek-ai/dsh-settings": ">=0.2.2-rc.2 <0.3.0",
85
- "@deepseek-ai/dsh-skill": ">=0.2.2-rc.2 <0.3.0",
86
- "@deepseek-ai/dsh-storage-domain": ">=0.2.2-rc.2 <0.3.0",
87
- "@deepseek-ai/dsh-subagent": ">=0.2.2-rc.2 <0.3.0",
88
- "@deepseek-ai/dsh-system-prompt": ">=0.2.2-rc.2 <0.3.0",
89
- "@deepseek-ai/dsh-tool-executor-native": ">=0.2.2-rc.2 <0.3.0",
90
- "@deepseek-ai/dsh-tools": ">=0.2.2-rc.2 <0.3.0",
91
- "@deepseek-ai/dsh-typert-protocol": ">=0.2.2-rc.2 <0.3.0",
92
- "@deepseek-ai/dsh-user-approval": ">=0.2.2-rc.2 <0.3.0",
78
+ "@deepseek-ai/dsh-agent": ">=0.2.2-rc.3 <0.3.0",
79
+ "@deepseek-ai/dsh-agent-preset-registry": ">=0.2.2-rc.3 <0.3.0",
80
+ "@deepseek-ai/dsh-agent-team": ">=0.2.2-rc.3 <0.3.0",
81
+ "@deepseek-ai/dsh-llm": ">=0.2.2-rc.3 <0.3.0",
82
+ "@deepseek-ai/dsh-scope": ">=0.2.2-rc.3 <0.3.0",
83
+ "@deepseek-ai/dsh-session": ">=0.2.2-rc.3 <0.3.0",
84
+ "@deepseek-ai/dsh-session-projection": ">=0.2.2-rc.3 <0.3.0",
85
+ "@deepseek-ai/dsh-settings": ">=0.2.2-rc.3 <0.3.0",
86
+ "@deepseek-ai/dsh-skill": ">=0.2.2-rc.3 <0.3.0",
87
+ "@deepseek-ai/dsh-storage-domain": ">=0.2.2-rc.3 <0.3.0",
88
+ "@deepseek-ai/dsh-subagent": ">=0.2.2-rc.3 <0.3.0",
89
+ "@deepseek-ai/dsh-system-prompt": ">=0.2.2-rc.3 <0.3.0",
90
+ "@deepseek-ai/dsh-tool-executor-native": ">=0.2.2-rc.3 <0.3.0",
91
+ "@deepseek-ai/dsh-tools": ">=0.2.2-rc.3 <0.3.0",
92
+ "@deepseek-ai/dsh-typert-protocol": ">=0.2.2-rc.3 <0.3.0",
93
+ "@deepseek-ai/dsh-user-approval": ">=0.2.2-rc.3 <0.3.0",
93
94
  "@deepseek-ai/schemastery": ">=3.18.4 <4.0.0"
94
95
  },
95
96
  "peerDependenciesMeta": {
@@ -105,46 +106,50 @@
105
106
  },
106
107
  "devDependencies": {
107
108
  "@deepseek-ai/cordis": "~4.1.0",
108
- "@deepseek-ai/cordis-plugin-loader": "~1.1.0",
109
- "@deepseek-ai/cordis-plugin-include": "~1.1.0",
110
109
  "@deepseek-ai/cordis-plugin-group": "~1.1.0",
111
- "@deepseek-ai/dsh-agent": "0.2.2-rc.2",
112
- "@deepseek-ai/dsh-agent-preset-registry": "0.2.2-rc.2",
113
- "@deepseek-ai/dsh-user-approval": "0.2.2-rc.2",
114
- "@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-rc.2",
115
- "@deepseek-ai/dsh-api-remotes": "0.2.2-rc.2",
116
- "@deepseek-ai/dsh-app-boot": "0.2.2-rc.2",
117
- "@deepseek-ai/dsh-client-locale": "0.2.2-rc.2",
118
- "@deepseek-ai/dsh-client-store": "0.2.2-rc.2",
119
- "@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.2",
120
- "@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.2",
121
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.2",
122
- "@deepseek-ai/dsh-client-ui-session": "0.2.2-rc.2",
123
- "@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.2",
124
- "@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.2",
125
- "@deepseek-ai/dsh-client-ui-agent-team": "0.2.2-rc.2",
126
- "@deepseek-ai/dsh-llm": "0.2.2-rc.2",
127
- "@deepseek-ai/dsh-loader-smoke": "0.2.2-rc.2",
128
- "@deepseek-ai/dsh-scope": "0.2.2-rc.2",
129
- "@deepseek-ai/dsh-session": "0.2.2-rc.2",
130
- "@deepseek-ai/dsh-session-projection": "0.2.2-rc.2",
131
- "@deepseek-ai/dsh-settings": "0.2.2-rc.2",
132
- "@deepseek-ai/dsh-storage-domain": "0.2.2-rc.2",
133
- "@deepseek-ai/dsh-subagent": "0.2.2-rc.2",
134
- "@deepseek-ai/dsh-system-prompt": "0.2.2-rc.2",
135
- "@deepseek-ai/dsh-tools": "0.2.2-rc.2",
136
- "@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.2",
137
- "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.2",
138
- "@deepseek-ai/dsh-util-values": "0.2.2-rc.2",
110
+ "@deepseek-ai/cordis-plugin-include": "~1.1.0",
111
+ "@deepseek-ai/cordis-plugin-loader": "~1.1.0",
112
+ "@deepseek-ai/dsh-agent": "0.2.2-rc.3",
113
+ "@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-rc.3",
114
+ "@deepseek-ai/dsh-agent-preset-registry": "0.2.2-rc.3",
115
+ "@deepseek-ai/dsh-api-remotes": "0.2.2-rc.3",
116
+ "@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.3",
117
+ "@deepseek-ai/dsh-api-settings-controller": "0.2.2-rc.3",
118
+ "@deepseek-ai/dsh-app-boot": "0.2.2-rc.3",
119
+ "@deepseek-ai/dsh-client-locale": "0.2.2-rc.3",
120
+ "@deepseek-ai/dsh-client-store": "0.2.2-rc.3",
121
+ "@deepseek-ai/dsh-client-ui-agent-team": "0.2.2-rc.3",
122
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.3",
123
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.3",
124
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.3",
125
+ "@deepseek-ai/dsh-client-ui-session": "0.2.2-rc.3",
126
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.3",
127
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.3",
128
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.3",
129
+ "@deepseek-ai/dsh-loader-smoke": "0.2.2-rc.3",
130
+ "@deepseek-ai/dsh-scope": "0.2.2-rc.3",
131
+ "@deepseek-ai/dsh-session": "0.2.2-rc.3",
132
+ "@deepseek-ai/dsh-session-projection": "0.2.2-rc.3",
133
+ "@deepseek-ai/dsh-settings": "0.2.2-rc.3",
134
+ "@deepseek-ai/dsh-skill": "0.2.2-rc.3",
135
+ "@deepseek-ai/dsh-storage-domain": "0.2.2-rc.3",
136
+ "@deepseek-ai/dsh-subagent": "0.2.2-rc.3",
137
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-rc.3",
138
+ "@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.3",
139
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.3",
140
+ "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.3",
141
+ "@deepseek-ai/dsh-user-approval": "0.2.2-rc.3",
142
+ "@deepseek-ai/dsh-util-values": "0.2.2-rc.3",
139
143
  "@deepseek-ai/schemastery": "~3.19.0",
140
144
  "@types/react": "~18.3.1",
145
+ "@types/react-dom": "^18.3.7",
141
146
  "react": "^18.2.0",
147
+ "react-dom": "^18.2.0",
142
148
  "tsdown": "^0.22.2",
143
149
  "typescript": "^5.6.0",
144
150
  "vitest": "^4.1.8",
145
- "zod": "^4.4.3",
146
151
  "yaml": "^2.9.1",
147
- "@deepseek-ai/dsh-skill": "0.2.2-rc.2"
152
+ "zod": "^4.4.3"
148
153
  },
149
154
  "files": [
150
155
  "lib",