dsh-agent-team-presets 0.2.0 → 0.3.0

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 (52) hide show
  1. package/NOTICE +29 -0
  2. package/README.md +61 -12
  3. package/README.zh.md +60 -11
  4. package/assets/card-patches/dsh-better-sidebar-0.32.0.client.js.gz +0 -0
  5. package/assets/card-patches/dsh-context-0.84.0.client.js.gz +0 -0
  6. package/assets/card-patches/licenses/dsh-better-sidebar-LICENSE +21 -0
  7. package/assets/card-patches/licenses/dsh-context-LICENSE +201 -0
  8. package/lib/client.js +9068 -2097
  9. package/lib/index.js +3084 -1212
  10. package/lib/typert.host.js +7454 -1720
  11. package/lib/typert.remote-client.d.ts +16 -1
  12. package/lib/typert.remote-client.d.ts.map +1 -0
  13. package/lib/typert.remote-client.js +7383 -1649
  14. package/lib/types/application.d.ts +24 -1
  15. package/lib/types/application.js +77 -34
  16. package/lib/types/builtin-skill.js +7 -13
  17. package/lib/types/card-patches.d.ts +104 -0
  18. package/lib/types/card-patches.js +275 -0
  19. package/lib/types/client/CardPatchView.d.ts +27 -0
  20. package/lib/types/client/CardPatchView.js +80 -0
  21. package/lib/types/client/ComposerTeamSelect.d.ts +1 -1
  22. package/lib/types/client/ComposerTeamSelect.js +100 -7
  23. package/lib/types/client/TeamImportDialog.js +1 -1
  24. package/lib/types/client/TeamListView.js +8 -7
  25. package/lib/types/client/TeamPresetsSection.js +13 -5
  26. package/lib/types/client/TeamRosterAction.d.ts +15 -0
  27. package/lib/types/client/TeamRosterAction.js +205 -0
  28. package/lib/types/client/agent-card-badges.d.ts +47 -0
  29. package/lib/types/client/agent-card-badges.js +61 -0
  30. package/lib/types/client/card-patches-controller.d.ts +152 -0
  31. package/lib/types/client/card-patches-controller.js +211 -0
  32. package/lib/types/client/index.js +42 -5
  33. package/lib/types/client/locales.d.ts +1 -1
  34. package/lib/types/client/locales.js +118 -12
  35. package/lib/types/client/team-presets-controller.d.ts +20 -0
  36. package/lib/types/client/team-presets-controller.js +15 -0
  37. package/lib/types/execution.d.ts +2 -2
  38. package/lib/types/execution.js +13 -11
  39. package/lib/types/index.js +90 -22
  40. package/lib/types/member-runtime.d.ts +40 -2
  41. package/lib/types/member-runtime.js +70 -2
  42. package/lib/types/member-store.d.ts +9 -0
  43. package/lib/types/member-store.js +13 -1
  44. package/lib/types/presentation.d.ts +12 -5
  45. package/lib/types/presentation.js +63 -10
  46. package/lib/types/preset-tools.js +3 -9
  47. package/lib/types/team-runtime.d.ts +25 -0
  48. package/lib/types/team-runtime.js +50 -0
  49. package/lib/types/tool-catalog.d.ts +64 -1
  50. package/lib/types/tool-catalog.js +103 -0
  51. package/lib/types/types.d.ts +69 -0
  52. package/package.json +52 -49
@@ -5,12 +5,17 @@ import type {
5
5
  TypertRemoteInfo,
6
6
  TypertRemoteMethod,
7
7
  } from '@deepseek-ai/dsh-typert-protocol'
8
- import type { TeamExecutionSnapshot, TeamSkillDeleteView, TeamSkillDependencies, TeamSkillDetailView, TeamSkillImportFile, TeamSkillImportFolderView, TeamSkillLibraryView, TeamSkillRefusalView, TeamSkillScanView, ToolCatalogValue } from 'dsh-agent-team-presets/types'
8
+ import type { CardPatchResult, CardPatchTargetView, TeamExecutionSnapshot, TeamRosterValue, TeamSkillDeleteView, TeamSkillDependencies, TeamSkillDetailView, TeamSkillImportFile, TeamSkillImportFolderView, TeamSkillLibraryView, TeamSkillRefusalView, TeamSkillScanView, ToolCatalogValue } from 'dsh-agent-team-presets/types'
9
9
 
10
10
  declare module '@deepseek-ai/dsh-typert-protocol' {
11
11
  interface TypertRemoteNamespace$7465616d50726573657473 {
12
+ cardPatches: () => Promise<RemoteResult<CardPatchTargetView[]>>
12
13
  catalog: () => Promise<RemoteResult<ToolCatalogValue>>
13
14
  execution: (signal?: AbortSignal) => RemoteStreamHandle<TeamExecutionSnapshot, never>
15
+ installCardPatch: (id: string) => Promise<RemoteResult<CardPatchResult>>
16
+ isPresetMember: (sessionId: string) => Promise<RemoteResult<boolean>>
17
+ roster: (sessionId: string) => Promise<RemoteResult<TeamRosterValue>>
18
+ uninstallCardPatch: (id: string) => Promise<RemoteResult<CardPatchResult>>
14
19
  }
15
20
  interface TypertRemoteNamespace$7465616d536b696c6c73 {
16
21
  assignRole: (teamId: string, roleId: string, assetId: string) => Promise<RemoteResult<{ ok: boolean; detail: string; unverified?: readonly string[]; library: TeamSkillLibraryView; }>>
@@ -30,8 +35,13 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
30
35
  writeFile: (assetId: string, path: string, text: string) => Promise<RemoteResult<TeamSkillDetailView | TeamSkillRefusalView>>
31
36
  }
32
37
  interface TypertRemoteMap {
38
+ 'teamPresets/cardPatches': () => Promise<RemoteResult<CardPatchTargetView[]>>
33
39
  'teamPresets/catalog': () => Promise<RemoteResult<ToolCatalogValue>>
34
40
  'teamPresets/execution': (signal?: AbortSignal) => RemoteStreamHandle<TeamExecutionSnapshot, never>
41
+ 'teamPresets/installCardPatch': (id: string) => Promise<RemoteResult<CardPatchResult>>
42
+ 'teamPresets/isPresetMember': (sessionId: string) => Promise<RemoteResult<boolean>>
43
+ 'teamPresets/roster': (sessionId: string) => Promise<RemoteResult<TeamRosterValue>>
44
+ 'teamPresets/uninstallCardPatch': (id: string) => Promise<RemoteResult<CardPatchResult>>
35
45
  'teamSkills/assignRole': (teamId: string, roleId: string, assetId: string) => Promise<RemoteResult<{ ok: boolean; detail: string; unverified?: readonly string[]; library: TeamSkillLibraryView; }>>
36
46
  'teamSkills/createSkill': (skillId: string, description: string) => Promise<RemoteResult<TeamSkillDetailView | TeamSkillRefusalView>>
37
47
  'teamSkills/deleteAsset': (assetId: string) => Promise<RemoteResult<TeamSkillDeleteView>>
@@ -55,8 +65,13 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
55
65
  }
56
66
 
57
67
  export declare const TYPERT_REMOTE: TypertRemoteInfo<{
68
+ readonly 'teamPresets/cardPatches': TypertRemoteMethod<{ }, CardPatchTargetView[]>
58
69
  readonly 'teamPresets/catalog': TypertRemoteMethod<{ }, ToolCatalogValue>
59
70
  readonly 'teamPresets/execution': TypertRemoteMethod<{ }, TeamExecutionSnapshot, 'stream'>
71
+ readonly 'teamPresets/installCardPatch': TypertRemoteMethod<{ readonly 'id': string }, CardPatchResult>
72
+ readonly 'teamPresets/isPresetMember': TypertRemoteMethod<{ readonly 'sessionId': string }, boolean>
73
+ readonly 'teamPresets/roster': TypertRemoteMethod<{ readonly 'sessionId': string }, TeamRosterValue>
74
+ readonly 'teamPresets/uninstallCardPatch': TypertRemoteMethod<{ readonly 'id': string }, CardPatchResult>
60
75
  readonly 'teamSkills/assignRole': TypertRemoteMethod<{ readonly 'teamId': string; readonly 'roleId': string; readonly 'assetId': string }, { ok: boolean; detail: string; unverified?: readonly string[]; library: TeamSkillLibraryView; }>
61
76
  readonly 'teamSkills/createSkill': TypertRemoteMethod<{ readonly 'skillId': string; readonly 'description': string }, TeamSkillDetailView | TeamSkillRefusalView>
62
77
  readonly 'teamSkills/deleteAsset': TypertRemoteMethod<{ readonly 'assetId': string }, TeamSkillDeleteView>
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typert.remote-client.d.ts","names":["cardPatches","catalog","execution","installCardPatch","isPresetMember","roster","uninstallCardPatch","assignRole","createSkill","deleteAsset","detail","importSkill","library","overrideSkill","prepareImportFolder","readFile","resetSkill","restoreBuiltinBindings","scanImportFolder","unassignRole","updateDependencies","writeFile"],"sources":["../src/tool-catalog.ts","../src/team-skills/service.ts"],"sourcesContent":[null,null],"mappings":";;;;;;;;;;;IAqQQA,W;IAnGAC,O;IAwINC,S;IA3BMC,gB;IA3CAC,c;IAVAC,M;IAqEAC,kB;;;ICiJAC,U;IA1MAC,W;IA6KAC,W;IAjPAC,M;IAwFAC,W;IA9GAC,O;IAuNAC,a;IA5EAC,mB;IAtFAC,Q;IAgMAC,U;IAmFAC,sB;IArKAC,gB;IAuJAC,Y;IApFAC,kB;IA/JAC,S;;;IDkDArB,yB;IAnGAC,qB;IAwINC,uB;IA3BMC,8B;IA3CAC,4B;IAVAC,oB;IAqEAC,gC;ICiJAC,uB;IA1MAC,wB;IA6KAC,wB;IAjPAC,mB;IAwFAC,wB;IA9GAC,oB;IAuNAC,0B;IA5EAC,gC;IAtFAC,qB;IAgMAC,uB;IAmFAC,mC;IArKAC,6B;IAuJAC,yB;IApFAC,+B;IA/JAC,sB","ignoreList":[]}