@ceasarxuu/dsh-agent-team 0.0.0-stage → 0.2.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.
@@ -0,0 +1,468 @@
1
+ /* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
2
+ import { z } from 'zod'
3
+
4
+ import { createTypertRemoteInfo } from '@deepseek-ai/dsh-typert-protocol/remote-info'
5
+
6
+ let _ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_parameter_0$schema$value
7
+ const _ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_parameter_0$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_parameter_0$schema$value ??= z.string())
8
+ let _ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_parameter_1$schema$value
9
+ const _ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_parameter_1$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_parameter_1$schema$value ??= z.number())
10
+ let _ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_result$schema$value
11
+ const _ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_result$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_result$schema$value ??= z.boolean())
12
+ let _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_0$schema$value
13
+ const _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_0$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_0$schema$value ??= z.string())
14
+ let _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_1$schema$value
15
+ const _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_1$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_1$schema$value ??= z.number())
16
+ let _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_2$schema$value
17
+ const _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_2$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_2$schema$value ??= z.string())
18
+ let _ceasarxuu_dsh_agent_team_teamConfig_launch_result$schema$value
19
+ const _ceasarxuu_dsh_agent_team_teamConfig_launch_result$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_launch_result$schema$value ??= z.string())
20
+ let _ceasarxuu_dsh_agent_team_teamConfig_list_result$schema$value
21
+ const _ceasarxuu_dsh_agent_team_teamConfig_list_result$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_list_result$schema$value ??= z.array(z.object({
22
+ 'id': z.string(),
23
+ 'revision': z.number(),
24
+ 'name': z.string(),
25
+ 'roles': z.array(z.object({
26
+ 'id': z.string(),
27
+ 'kind': z.union([z.literal("commander"), z.literal("worker"), z.literal("reviewer"), z.literal("custom")]),
28
+ 'name': z.string(),
29
+ 'description': z.string(),
30
+ 'model': z.union([z.literal(null), z.object({
31
+ 'provider': z.string(),
32
+ 'model': z.string(),
33
+ })]),
34
+ 'maxInstances': z.number(),
35
+ 'promptOverride': z.union([z.literal(null), z.string()]),
36
+ 'preferredSkills': z.array(z.string()),
37
+ })),
38
+ })))
39
+ let _ceasarxuu_dsh_agent_team_teamConfig_listForSession_parameter_0$schema$value
40
+ const _ceasarxuu_dsh_agent_team_teamConfig_listForSession_parameter_0$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_listForSession_parameter_0$schema$value ??= z.string())
41
+ let _ceasarxuu_dsh_agent_team_teamConfig_listForSession_result$schema$value
42
+ const _ceasarxuu_dsh_agent_team_teamConfig_listForSession_result$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_listForSession_result$schema$value ??= z.object({
43
+ 'active': z.union([z.literal(null), z.object({
44
+ 'id': z.string(),
45
+ 'revision': z.number(),
46
+ 'name': z.string(),
47
+ 'assignment': z.string(),
48
+ })]),
49
+ 'templates': z.array(z.object({
50
+ 'id': z.string(),
51
+ 'revision': z.number(),
52
+ 'name': z.string(),
53
+ 'roles': z.array(z.object({
54
+ 'id': z.string(),
55
+ 'kind': z.union([z.literal("commander"), z.literal("worker"), z.literal("reviewer"), z.literal("custom")]),
56
+ 'name': z.string(),
57
+ 'description': z.string(),
58
+ 'model': z.union([z.literal(null), z.object({
59
+ 'provider': z.string(),
60
+ 'model': z.string(),
61
+ })]),
62
+ 'maxInstances': z.number(),
63
+ 'promptOverride': z.union([z.literal(null), z.string()]),
64
+ 'preferredSkills': z.array(z.string()),
65
+ })),
66
+ })),
67
+ }))
68
+ let _ceasarxuu_dsh_agent_team_teamConfig_save_parameter_0$schema$value
69
+ const _ceasarxuu_dsh_agent_team_teamConfig_save_parameter_0$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_save_parameter_0$schema$value ??= z.object({
70
+ 'id': z.union([z.literal(null), z.string()]),
71
+ 'revision': z.number(),
72
+ 'name': z.string(),
73
+ 'roles': z.array(z.object({
74
+ 'id': z.string(),
75
+ 'kind': z.union([z.literal("commander"), z.literal("worker"), z.literal("reviewer"), z.literal("custom")]),
76
+ 'name': z.string(),
77
+ 'description': z.string(),
78
+ 'model': z.union([z.literal(null), z.object({
79
+ 'provider': z.string(),
80
+ 'model': z.string(),
81
+ })]),
82
+ 'maxInstances': z.number(),
83
+ 'promptOverride': z.union([z.literal(null), z.string()]),
84
+ 'preferredSkills': z.array(z.string()),
85
+ })),
86
+ }))
87
+ let _ceasarxuu_dsh_agent_team_teamConfig_save_result$schema$value
88
+ const _ceasarxuu_dsh_agent_team_teamConfig_save_result$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_save_result$schema$value ??= z.object({
89
+ 'id': z.string(),
90
+ 'revision': z.number(),
91
+ 'name': z.string(),
92
+ 'roles': z.array(z.object({
93
+ 'id': z.string(),
94
+ 'kind': z.union([z.literal("commander"), z.literal("worker"), z.literal("reviewer"), z.literal("custom")]),
95
+ 'name': z.string(),
96
+ 'description': z.string(),
97
+ 'model': z.union([z.literal(null), z.object({
98
+ 'provider': z.string(),
99
+ 'model': z.string(),
100
+ })]),
101
+ 'maxInstances': z.number(),
102
+ 'promptOverride': z.union([z.literal(null), z.string()]),
103
+ 'preferredSkills': z.array(z.string()),
104
+ })),
105
+ }))
106
+ let _ceasarxuu_dsh_agent_team_teamConfig_skills_parameter_0$schema$value
107
+ const _ceasarxuu_dsh_agent_team_teamConfig_skills_parameter_0$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_skills_parameter_0$schema$value ??= z.union([z.literal(null), z.string()]))
108
+ let _ceasarxuu_dsh_agent_team_teamConfig_skills_result$schema$value
109
+ const _ceasarxuu_dsh_agent_team_teamConfig_skills_result$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_skills_result$schema$value ??= z.array(z.object({
110
+ 'name': z.string(),
111
+ 'description': z.string(),
112
+ })))
113
+ let _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_0$schema$value
114
+ const _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_0$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_0$schema$value ??= z.string())
115
+ let _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_1$schema$value
116
+ const _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_1$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_1$schema$value ??= z.union([z.literal(null), z.string()]))
117
+ let _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_2$schema$value
118
+ const _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_2$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_2$schema$value ??= z.union([z.literal(null), z.object({
119
+ 'id': z.string(),
120
+ 'revision': z.number(),
121
+ })]))
122
+ let _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_result$schema$value
123
+ const _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_result$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_switchTeam_result$schema$value ??= z.object({
124
+ 'active': z.union([z.literal(null), z.object({
125
+ 'id': z.string(),
126
+ 'revision': z.number(),
127
+ 'name': z.string(),
128
+ 'assignment': z.string(),
129
+ })]),
130
+ 'templates': z.array(z.object({
131
+ 'id': z.string(),
132
+ 'revision': z.number(),
133
+ 'name': z.string(),
134
+ 'roles': z.array(z.object({
135
+ 'id': z.string(),
136
+ 'kind': z.union([z.literal("commander"), z.literal("worker"), z.literal("reviewer"), z.literal("custom")]),
137
+ 'name': z.string(),
138
+ 'description': z.string(),
139
+ 'model': z.union([z.literal(null), z.object({
140
+ 'provider': z.string(),
141
+ 'model': z.string(),
142
+ })]),
143
+ 'maxInstances': z.number(),
144
+ 'promptOverride': z.union([z.literal(null), z.string()]),
145
+ 'preferredSkills': z.array(z.string()),
146
+ })),
147
+ })),
148
+ }))
149
+ let _ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_parameter_0_strict$schema$value
150
+ const _ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_parameter_0_strict$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_parameter_0_strict$schema$value ??= z.string())
151
+ let _ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_parameter_1_strict$schema$value
152
+ const _ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_parameter_1_strict$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_parameter_1_strict$schema$value ??= z.number())
153
+ let _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_0_strict$schema$value
154
+ const _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_0_strict$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_0_strict$schema$value ??= z.string())
155
+ let _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_1_strict$schema$value
156
+ const _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_1_strict$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_1_strict$schema$value ??= z.number())
157
+ let _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_2_strict$schema$value
158
+ const _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_2_strict$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_2_strict$schema$value ??= z.string())
159
+ let _ceasarxuu_dsh_agent_team_teamConfig_listForSession_parameter_0_strict$schema$value
160
+ const _ceasarxuu_dsh_agent_team_teamConfig_listForSession_parameter_0_strict$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_listForSession_parameter_0_strict$schema$value ??= z.string())
161
+ let _ceasarxuu_dsh_agent_team_teamConfig_save_parameter_0_strict$schema$value
162
+ const _ceasarxuu_dsh_agent_team_teamConfig_save_parameter_0_strict$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_save_parameter_0_strict$schema$value ??= z.strictObject({
163
+ 'id': z.union([z.literal(null), z.string()]),
164
+ 'revision': z.number(),
165
+ 'name': z.string(),
166
+ 'roles': z.array(z.strictObject({
167
+ 'id': z.string(),
168
+ 'kind': z.union([z.literal("commander"), z.literal("worker"), z.literal("reviewer"), z.literal("custom")]),
169
+ 'name': z.string(),
170
+ 'description': z.string(),
171
+ 'model': z.union([z.literal(null), z.strictObject({
172
+ 'provider': z.string(),
173
+ 'model': z.string(),
174
+ })]),
175
+ 'maxInstances': z.number(),
176
+ 'promptOverride': z.union([z.literal(null), z.string()]),
177
+ 'preferredSkills': z.array(z.string()),
178
+ })),
179
+ }))
180
+ let _ceasarxuu_dsh_agent_team_teamConfig_skills_parameter_0_strict$schema$value
181
+ const _ceasarxuu_dsh_agent_team_teamConfig_skills_parameter_0_strict$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_skills_parameter_0_strict$schema$value ??= z.union([z.literal(null), z.string()]))
182
+ let _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_0_strict$schema$value
183
+ const _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_0_strict$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_0_strict$schema$value ??= z.string())
184
+ let _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_1_strict$schema$value
185
+ const _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_1_strict$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_1_strict$schema$value ??= z.union([z.literal(null), z.string()]))
186
+ let _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_2_strict$schema$value
187
+ const _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_2_strict$schema = () => (_ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_2_strict$schema$value ??= z.union([z.literal(null), z.strictObject({
188
+ 'id': z.string(),
189
+ 'revision': z.number(),
190
+ })]))
191
+
192
+ export const TYPERT_REMOTE = createTypertRemoteInfo({
193
+ package: '@ceasarxuu/dsh-agent-team',
194
+ methods: {
195
+ 'teamConfig/deleteTemplate': {
196
+ service: 'teamConfig',
197
+ invocation: { kind: 'direct' },
198
+ parameters: [
199
+ {
200
+ name: 'teamId',
201
+ source: 'json',
202
+ codec: {
203
+ mode: 'strict',
204
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/deleteTemplate:teamId',
205
+ create: _ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_parameter_0$schema,
206
+ jsonSchema: {"type":"string"},
207
+ },
208
+ strictCodec: {
209
+ mode: 'strict',
210
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/deleteTemplate:teamId',
211
+ create: _ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_parameter_0_strict$schema,
212
+ jsonSchema: {"type":"string"},
213
+ },
214
+ },
215
+ {
216
+ name: 'revision',
217
+ source: 'json',
218
+ codec: {
219
+ mode: 'strict',
220
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/deleteTemplate:revision',
221
+ create: _ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_parameter_1$schema,
222
+ jsonSchema: {"type":"number"},
223
+ },
224
+ strictCodec: {
225
+ mode: 'strict',
226
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/deleteTemplate:revision',
227
+ create: _ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_parameter_1_strict$schema,
228
+ jsonSchema: {"type":"number"},
229
+ },
230
+ },
231
+ ],
232
+ result: {
233
+ mode: 'strict',
234
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/deleteTemplate:result',
235
+ create: _ceasarxuu_dsh_agent_team_teamConfig_deleteTemplate_result$schema,
236
+ jsonSchema: {"type":"boolean"},
237
+ },
238
+ sourceLocation: {"file":"packages/@ceasarxuu/dsh-agent-team/src/remote.ts","line":43,"column":3},
239
+ },
240
+ 'teamConfig/launch': {
241
+ service: 'teamConfig',
242
+ invocation: { kind: 'direct' },
243
+ parameters: [
244
+ {
245
+ name: 'teamId',
246
+ source: 'json',
247
+ codec: {
248
+ mode: 'strict',
249
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/launch:teamId',
250
+ create: _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_0$schema,
251
+ jsonSchema: {"type":"string"},
252
+ },
253
+ strictCodec: {
254
+ mode: 'strict',
255
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/launch:teamId',
256
+ create: _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_0_strict$schema,
257
+ jsonSchema: {"type":"string"},
258
+ },
259
+ },
260
+ {
261
+ name: 'revision',
262
+ source: 'json',
263
+ codec: {
264
+ mode: 'strict',
265
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/launch:revision',
266
+ create: _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_1$schema,
267
+ jsonSchema: {"type":"number"},
268
+ },
269
+ strictCodec: {
270
+ mode: 'strict',
271
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/launch:revision',
272
+ create: _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_1_strict$schema,
273
+ jsonSchema: {"type":"number"},
274
+ },
275
+ },
276
+ {
277
+ name: 'workspaceId',
278
+ source: 'json',
279
+ codec: {
280
+ mode: 'strict',
281
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/launch:workspaceId',
282
+ create: _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_2$schema,
283
+ jsonSchema: {"type":"string"},
284
+ },
285
+ strictCodec: {
286
+ mode: 'strict',
287
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/launch:workspaceId',
288
+ create: _ceasarxuu_dsh_agent_team_teamConfig_launch_parameter_2_strict$schema,
289
+ jsonSchema: {"type":"string"},
290
+ },
291
+ },
292
+ ],
293
+ cancellation: { parameter: 'signal' },
294
+ result: {
295
+ mode: 'strict',
296
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/launch:result',
297
+ create: _ceasarxuu_dsh_agent_team_teamConfig_launch_result$schema,
298
+ jsonSchema: {"type":"string"},
299
+ },
300
+ sourceLocation: {"file":"packages/@ceasarxuu/dsh-agent-team/src/remote.ts","line":53,"column":3},
301
+ },
302
+ 'teamConfig/list': {
303
+ service: 'teamConfig',
304
+ invocation: { kind: 'direct' },
305
+ parameters: [
306
+ ],
307
+ result: {
308
+ mode: 'strict',
309
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/list:result',
310
+ create: _ceasarxuu_dsh_agent_team_teamConfig_list_result$schema,
311
+ jsonSchema: {"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"revision":{"type":"number"},"name":{"type":"string"},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["commander","worker","reviewer","custom"]},"name":{"type":"string"},"description":{"type":"string"},"model":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"provider":{"type":"string"},"model":{"type":"string"}},"required":["provider","model"],"additionalProperties":true}]},"maxInstances":{"type":"number"},"promptOverride":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"preferredSkills":{"type":"array","items":{"type":"string"}}},"required":["id","kind","name","description","model","maxInstances","promptOverride","preferredSkills"],"additionalProperties":true}}},"required":["id","revision","name","roles"],"additionalProperties":true}},
312
+ },
313
+ sourceLocation: {"file":"packages/@ceasarxuu/dsh-agent-team/src/remote.ts","line":28,"column":3},
314
+ },
315
+ 'teamConfig/listForSession': {
316
+ service: 'teamConfig',
317
+ invocation: { kind: 'direct' },
318
+ parameters: [
319
+ {
320
+ name: 'rootSessionId',
321
+ source: 'json',
322
+ codec: {
323
+ mode: 'strict',
324
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/listForSession:rootSessionId',
325
+ create: _ceasarxuu_dsh_agent_team_teamConfig_listForSession_parameter_0$schema,
326
+ jsonSchema: {"type":"string"},
327
+ },
328
+ strictCodec: {
329
+ mode: 'strict',
330
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/listForSession:rootSessionId',
331
+ create: _ceasarxuu_dsh_agent_team_teamConfig_listForSession_parameter_0_strict$schema,
332
+ jsonSchema: {"type":"string"},
333
+ },
334
+ },
335
+ ],
336
+ result: {
337
+ mode: 'strict',
338
+ typeSymbol: '@ceasarxuu/dsh-agent-team/types#SessionTeams',
339
+ create: _ceasarxuu_dsh_agent_team_teamConfig_listForSession_result$schema,
340
+ jsonSchema: {"type":"object","properties":{"active":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"id":{"type":"string"},"revision":{"type":"number"},"name":{"type":"string"},"assignment":{"type":"string"}},"required":["id","revision","name","assignment"],"additionalProperties":true}]},"templates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"revision":{"type":"number"},"name":{"type":"string"},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["commander","worker","reviewer","custom"]},"name":{"type":"string"},"description":{"type":"string"},"model":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"provider":{"type":"string"},"model":{"type":"string"}},"required":["provider","model"],"additionalProperties":true}]},"maxInstances":{"type":"number"},"promptOverride":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"preferredSkills":{"type":"array","items":{"type":"string"}}},"required":["id","kind","name","description","model","maxInstances","promptOverride","preferredSkills"],"additionalProperties":true}}},"required":["id","revision","name","roles"],"additionalProperties":true}}},"required":["active","templates"],"additionalProperties":true},
341
+ },
342
+ sourceLocation: {"file":"packages/@ceasarxuu/dsh-agent-team/src/remote.ts","line":33,"column":3},
343
+ },
344
+ 'teamConfig/save': {
345
+ service: 'teamConfig',
346
+ invocation: { kind: 'direct' },
347
+ parameters: [
348
+ {
349
+ name: 'draft',
350
+ source: 'json',
351
+ codec: {
352
+ mode: 'strict',
353
+ typeSymbol: '@ceasarxuu/dsh-agent-team/types#TeamDraft',
354
+ create: _ceasarxuu_dsh_agent_team_teamConfig_save_parameter_0$schema,
355
+ jsonSchema: {"type":"object","properties":{"id":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"revision":{"type":"number"},"name":{"type":"string"},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["commander","worker","reviewer","custom"]},"name":{"type":"string"},"description":{"type":"string"},"model":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"provider":{"type":"string"},"model":{"type":"string"}},"required":["provider","model"],"additionalProperties":true}]},"maxInstances":{"type":"number"},"promptOverride":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"preferredSkills":{"type":"array","items":{"type":"string"}}},"required":["id","kind","name","description","model","maxInstances","promptOverride","preferredSkills"],"additionalProperties":true}}},"required":["id","revision","name","roles"],"additionalProperties":true},
356
+ },
357
+ strictCodec: {
358
+ mode: 'strict',
359
+ typeSymbol: '@ceasarxuu/dsh-agent-team/types#TeamDraft',
360
+ create: _ceasarxuu_dsh_agent_team_teamConfig_save_parameter_0_strict$schema,
361
+ jsonSchema: {"type":"object","properties":{"id":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"revision":{"type":"number"},"name":{"type":"string"},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["commander","worker","reviewer","custom"]},"name":{"type":"string"},"description":{"type":"string"},"model":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"provider":{"type":"string"},"model":{"type":"string"}},"required":["provider","model"],"additionalProperties":false}]},"maxInstances":{"type":"number"},"promptOverride":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"preferredSkills":{"type":"array","items":{"type":"string"}}},"required":["id","kind","name","description","model","maxInstances","promptOverride","preferredSkills"],"additionalProperties":false}}},"required":["id","revision","name","roles"],"additionalProperties":false},
362
+ },
363
+ },
364
+ ],
365
+ result: {
366
+ mode: 'strict',
367
+ typeSymbol: '@ceasarxuu/dsh-agent-team/types#TeamConfig',
368
+ create: _ceasarxuu_dsh_agent_team_teamConfig_save_result$schema,
369
+ jsonSchema: {"type":"object","properties":{"id":{"type":"string"},"revision":{"type":"number"},"name":{"type":"string"},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["commander","worker","reviewer","custom"]},"name":{"type":"string"},"description":{"type":"string"},"model":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"provider":{"type":"string"},"model":{"type":"string"}},"required":["provider","model"],"additionalProperties":true}]},"maxInstances":{"type":"number"},"promptOverride":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"preferredSkills":{"type":"array","items":{"type":"string"}}},"required":["id","kind","name","description","model","maxInstances","promptOverride","preferredSkills"],"additionalProperties":true}}},"required":["id","revision","name","roles"],"additionalProperties":true},
370
+ },
371
+ sourceLocation: {"file":"packages/@ceasarxuu/dsh-agent-team/src/remote.ts","line":38,"column":3},
372
+ },
373
+ 'teamConfig/skills': {
374
+ service: 'teamConfig',
375
+ invocation: { kind: 'direct' },
376
+ parameters: [
377
+ {
378
+ name: 'workspaceId',
379
+ source: 'json',
380
+ codec: {
381
+ mode: 'strict',
382
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/skills:workspaceId',
383
+ create: _ceasarxuu_dsh_agent_team_teamConfig_skills_parameter_0$schema,
384
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"string"}]},
385
+ },
386
+ strictCodec: {
387
+ mode: 'strict',
388
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/skills:workspaceId',
389
+ create: _ceasarxuu_dsh_agent_team_teamConfig_skills_parameter_0_strict$schema,
390
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"string"}]},
391
+ },
392
+ },
393
+ ],
394
+ cancellation: { parameter: 'signal' },
395
+ result: {
396
+ mode: 'strict',
397
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/skills:result',
398
+ create: _ceasarxuu_dsh_agent_team_teamConfig_skills_result$schema,
399
+ jsonSchema: {"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name","description"],"additionalProperties":true}},
400
+ },
401
+ sourceLocation: {"file":"packages/@ceasarxuu/dsh-agent-team/src/remote.ts","line":48,"column":3},
402
+ },
403
+ 'teamConfig/switchTeam': {
404
+ service: 'teamConfig',
405
+ invocation: { kind: 'direct' },
406
+ parameters: [
407
+ {
408
+ name: 'sessionId',
409
+ source: 'json',
410
+ codec: {
411
+ mode: 'strict',
412
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/switchTeam:sessionId',
413
+ create: _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_0$schema,
414
+ jsonSchema: {"type":"string"},
415
+ },
416
+ strictCodec: {
417
+ mode: 'strict',
418
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/switchTeam:sessionId',
419
+ create: _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_0_strict$schema,
420
+ jsonSchema: {"type":"string"},
421
+ },
422
+ },
423
+ {
424
+ name: 'assignment',
425
+ source: 'json',
426
+ codec: {
427
+ mode: 'strict',
428
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/switchTeam:assignment',
429
+ create: _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_1$schema,
430
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"string"}]},
431
+ },
432
+ strictCodec: {
433
+ mode: 'strict',
434
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/switchTeam:assignment',
435
+ create: _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_1_strict$schema,
436
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"string"}]},
437
+ },
438
+ },
439
+ {
440
+ name: 'choice',
441
+ source: 'json',
442
+ codec: {
443
+ mode: 'strict',
444
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/switchTeam:choice',
445
+ create: _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_2$schema,
446
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"id":{"type":"string"},"revision":{"type":"number"}},"required":["id","revision"],"additionalProperties":true}]},
447
+ },
448
+ strictCodec: {
449
+ mode: 'strict',
450
+ typeSymbol: '@ceasarxuu/dsh-agent-team#teamConfig/switchTeam:choice',
451
+ create: _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_parameter_2_strict$schema,
452
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"id":{"type":"string"},"revision":{"type":"number"}},"required":["id","revision"],"additionalProperties":false}]},
453
+ },
454
+ },
455
+ ],
456
+ cancellation: { parameter: 'signal' },
457
+ result: {
458
+ mode: 'strict',
459
+ typeSymbol: '@ceasarxuu/dsh-agent-team/types#SessionTeams',
460
+ create: _ceasarxuu_dsh_agent_team_teamConfig_switchTeam_result$schema,
461
+ jsonSchema: {"type":"object","properties":{"active":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"id":{"type":"string"},"revision":{"type":"number"},"name":{"type":"string"},"assignment":{"type":"string"}},"required":["id","revision","name","assignment"],"additionalProperties":true}]},"templates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"revision":{"type":"number"},"name":{"type":"string"},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["commander","worker","reviewer","custom"]},"name":{"type":"string"},"description":{"type":"string"},"model":{"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"provider":{"type":"string"},"model":{"type":"string"}},"required":["provider","model"],"additionalProperties":true}]},"maxInstances":{"type":"number"},"promptOverride":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"preferredSkills":{"type":"array","items":{"type":"string"}}},"required":["id","kind","name","description","model","maxInstances","promptOverride","preferredSkills"],"additionalProperties":true}}},"required":["id","revision","name","roles"],"additionalProperties":true}}},"required":["active","templates"],"additionalProperties":true},
462
+ },
463
+ sourceLocation: {"file":"packages/@ceasarxuu/dsh-agent-team/src/remote.ts","line":58,"column":3},
464
+ },
465
+ },
466
+ }, z)
467
+
468
+ export default TYPERT_REMOTE
@@ -0,0 +1,14 @@
1
+ import type { ModelCatalog } from '@deepseek-ai/dsh-api-session-controller';
2
+ import type { SkillChoice, TeamRole } from '../shared/types.ts';
3
+ import type { Text } from './copy.ts';
4
+ interface Props {
5
+ role: TeamRole;
6
+ models: ModelCatalog['groups'];
7
+ skills: SkillChoice[];
8
+ skillStatus: 'ready' | 'loading' | 'failed';
9
+ t: Text;
10
+ onChange(role: TeamRole): void;
11
+ remove(): void;
12
+ }
13
+ export declare function RoleEditor({ role, models, skills, skillStatus, t, onChange, remove }: Props): import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,20 @@
1
+ import type { IWorkspaces, WorkspaceId } from '@deepseek-ai/dsh-api-workspace-controller/client';
2
+ import type { PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
3
+ import type { SessionId } from '@deepseek-ai/dsh-session';
4
+ import type { SessionTeams, TeamChoice, TeamConfig } from '../shared/types.ts';
5
+ import type { Text } from './copy.ts';
6
+ export interface PickerOperations {
7
+ list(sessionId: SessionId): Promise<SessionTeams>;
8
+ subscribeList(listener: () => void): () => void;
9
+ launch(team: TeamConfig, workspaceId: WorkspaceId, dismiss: () => void): Promise<void>;
10
+ switchTeam(sessionId: SessionId, assignment: string | null, team: TeamChoice | null): Promise<SessionTeams>;
11
+ }
12
+ type MenuProps = PropsRuntime<'conversation.input.model.options'>;
13
+ type PickerProps = Pick<MenuProps, 'sessionId' | 'locked' | 'dismiss'> & {
14
+ t: Text;
15
+ operations: PickerOperations;
16
+ workspaces: IWorkspaces['list'];
17
+ isNew: boolean;
18
+ };
19
+ export declare function SessionTemplatePicker(props: Omit<PickerProps, 'isNew'> & Pick<MenuProps, 'useProjection' | 'useSession' | 'useSessions'>): import("react/jsx-runtime").JSX.Element | null;
20
+ export {};
@@ -0,0 +1,15 @@
1
+ import type { ModelCatalog } from '@deepseek-ai/dsh-api-session-controller';
2
+ import type { SkillChoice, TeamConfig, TeamDraft } from '../shared/types.ts';
3
+ import type { Text } from './copy.ts';
4
+ export interface Operations {
5
+ list(): Promise<TeamConfig[]>;
6
+ save(team: TeamDraft): Promise<TeamConfig>;
7
+ remove(team: TeamConfig): Promise<boolean>;
8
+ models(): Promise<ModelCatalog>;
9
+ skills(signal: AbortSignal): Promise<SkillChoice[]>;
10
+ }
11
+ export declare function TeamSettings({ t, operations }: {
12
+ t: Text;
13
+ operations: Operations;
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ export declare function errorText(error: unknown): string;
@@ -0,0 +1,53 @@
1
+ export declare const en: {
2
+ readonly title: "Agent Teams";
3
+ readonly newTeam: "New team";
4
+ readonly editTeam: "Edit team";
5
+ readonly deleteTeam: "Delete team";
6
+ readonly backToTeams: "Back to teams";
7
+ readonly confirmDelete: "Delete this team template?";
8
+ readonly deleted: "Team template deleted.";
9
+ readonly cancel: "Cancel";
10
+ readonly teamName: "Team name";
11
+ readonly roles: "Roles";
12
+ readonly addRole: "Add role";
13
+ readonly commander: "Commander";
14
+ readonly worker: "Worker";
15
+ readonly reviewer: "Reviewer";
16
+ readonly custom: "Custom";
17
+ readonly removeRole: "Remove role";
18
+ readonly roleName: "Role name";
19
+ readonly description: "Responsibilities";
20
+ readonly maxInstances: "Instance limit";
21
+ readonly model: "Model";
22
+ readonly chooseModel: "Choose a model";
23
+ readonly preferredSkills: "Preferred Skills";
24
+ readonly selectSkills: "Select skills";
25
+ readonly skillsSearch: "Search names or descriptions";
26
+ readonly noSkills: "No matching skills.";
27
+ readonly loadingSkills: "Loading skills…";
28
+ readonly skillsFailed: "Could not load the DSH skills catalog.";
29
+ readonly modelsFailed: "Could not load the DSH model catalog.";
30
+ readonly prompt: "Role Prompt";
31
+ readonly resetPrompt: "Restore default";
32
+ readonly save: "Save team";
33
+ readonly discard: "Discard changes";
34
+ readonly start: "New conversation with team";
35
+ readonly switchTeam: "Switch team";
36
+ readonly busyTeam: "Finish the current work before switching teams.";
37
+ readonly loading: "Loading teams…";
38
+ readonly retry: "Retry";
39
+ readonly saved: "Team saved.";
40
+ readonly selectTeam: "Choose team template";
41
+ readonly officialDefault: "DSH default";
42
+ readonly noTemplates: "Create a template in Settings → Agent Teams.";
43
+ readonly empty: "Create a team to configure roles, models and skills.";
44
+ readonly unavailable: "Currently unavailable";
45
+ };
46
+ export declare const zh: Record<CopyKey, string>;
47
+ export type CopyKey = keyof typeof en;
48
+ export type Text = (key: CopyKey) => string;
49
+ declare module '@deepseek-ai/dsh-client-ui-slots' {
50
+ interface LocaleNamespaceMap {
51
+ teamConfig: CopyKey;
52
+ }
53
+ }
@@ -0,0 +1,3 @@
1
+ import type { Context } from '@deepseek-ai/cordis';
2
+ export declare const inject: string[];
3
+ export declare function apply(ctx: Context): void;
@@ -0,0 +1 @@
1
+ export declare const styles = "\n.dsh-agent-team-config {\n display: grid; gap: 16px; min-width: 0;\n color: var(--dsw-alias-label-primary, inherit);\n}\n.dsh-agent-team-config :is(h2, h3, p) { margin: 0; }\n.dsh-agent-team-config h2 { font-size: 18px; }\n.dsh-agent-team-config h3 { font-size: 14px; }\n.dsh-agent-team-config .at-header, .dsh-agent-team-config .at-row {\n display: flex; align-items: center; flex-wrap: wrap; gap: 8px;\n}\n.dsh-agent-team-config .at-header { justify-content: space-between; }\n.dsh-agent-team-config .at-templates { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }\n.dsh-agent-team-config.at-session-team { gap: 6px; padding: 4px 12px 8px; font-size: 13px; }\n.dsh-agent-team-config.at-session-team .at-picker-trigger { display: flex; align-items: center; gap: 6px; min-width: 0; text-align: start; }\n.dsh-agent-team-config .at-picker-value { display: flex; gap: 6px; min-width: 0; margin-inline-start: auto; align-items: center; }\n.dsh-agent-team-config .at-picked-team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.dsh-agent-team-config .at-picker-options { display: grid; gap: 4px; max-height: 160px; overflow: auto; }\n.dsh-agent-team-config .at-picker-options button { text-align: start; overflow-wrap: anywhere; }\n.dsh-agent-team-config.at-session-team [data-primary] { justify-self: end; }\n.dsh-agent-team-config .at-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }\n.dsh-agent-team-config .at-edit, .dsh-agent-team-config .at-card {\n margin: 0; min-width: 0; display: grid; gap: 12px;\n}\n.dsh-agent-team-config .at-edit { border: 0; padding: 0; }\n.dsh-agent-team-config .at-card {\n padding: 14px; border: 1px solid var(--dsw-alias-settings-card-stroke, #8885);\n border-radius: 12px; background: var(--dsw-alias-settings-card-fill, transparent);\n}\n.dsh-agent-team-config label { display: grid; gap: 6px; min-width: 0; font-size: 13px; }\n.dsh-agent-team-config :is(input:not([type=checkbox]), select, textarea, button) {\n box-sizing: border-box; max-width: 100%; min-height: 32px; padding: 6px 9px;\n border: 1px solid var(--dsw-alias-border-l2, #8886); border-radius: 7px;\n background: var(--dsw-alias-bg-layer-1, transparent); color: inherit; font: inherit;\n}\n.dsh-agent-team-config select { padding-inline-end: 24px; }\n.dsh-agent-team-config textarea { resize: vertical; line-height: 1.5; }\n.dsh-agent-team-config button { cursor: pointer; }\n.dsh-agent-team-config button.at-template-name { border: 0; background: transparent; padding-inline: 0; font-weight: 600; text-align: left; overflow-wrap: anywhere; }\n.dsh-agent-team-config button:disabled { opacity: .52; cursor: default; }\n.dsh-agent-team-config :is(button[aria-pressed=true], button[aria-checked=true], button[data-primary=true]) {\n border-color: var(--dsw-alias-state-business-primary, #527ef5);\n color: var(--dsw-alias-state-business-primary, #527ef5);\n}\n.dsh-agent-team-config :is(input, select, textarea, button, summary):focus-visible {\n outline: 2px solid var(--dsw-focus-ring-color, #527ef5); outline-offset: 2px;\n}\n.dsh-agent-team-config .at-skills { border: 0; margin: 0; padding: 0; min-width: 0; }\n.dsh-agent-team-config .at-skills legend { padding: 0 0 6px; font-size: 13px; }\n.dsh-agent-team-config .at-skills summary { cursor: pointer; width: fit-content; font-size: 13px; margin-block: 6px; }\n.dsh-agent-team-config .at-skills input[type=search] { width: 100%; }\n.dsh-agent-team-config .at-results { max-height: 220px; overflow: auto; margin: 6px 0 0; padding: 0; list-style: none; }\n.dsh-agent-team-config .at-results label { grid-template-columns: auto 1fr; align-items: start; padding: 6px; cursor: pointer; }\n.dsh-agent-team-config .at-results small { display: block; overflow-wrap: anywhere; color: var(--dsw-alias-label-secondary, inherit); }\n.dsh-agent-team-config .at-actions { padding-top: 4px; }\n.dsh-agent-team-config .at-message { font-size: 13px; white-space: pre-wrap; color: var(--dsw-alias-label-secondary, inherit); }\n.dsh-agent-team-config [role=alert] { color: var(--dsw-alias-state-error-primary, #b62c2c); }\n";
@@ -0,0 +1,10 @@
1
+ interface SeatOperations<T> {
2
+ readNames(): Promise<readonly string[]>;
3
+ start(name: string): Promise<T>;
4
+ }
5
+ /** Serialize admission for one root and role until DSH publishes the new child. */
6
+ export declare class SeatAdmission {
7
+ private readonly pending;
8
+ start<T>(root: string, prefix: string, max: number, ops: SeatOperations<T>): Promise<T>;
9
+ }
10
+ export {};
@@ -0,0 +1,28 @@
1
+ import type { Context } from '@deepseek-ai/cordis';
2
+ import type { Agent } from '@deepseek-ai/dsh-agent';
3
+ import type { SessionId } from '@deepseek-ai/dsh-session';
4
+ import type { WorkspaceId } from '@deepseek-ai/dsh-workspace';
5
+ import type { SessionTeams, TeamChoice, TeamConfig } from '../shared/types.ts';
6
+ import type { TeamStore } from './store.ts';
7
+ export declare const TEAM_PRESET = "standard";
8
+ export declare class TeamRuntime {
9
+ private readonly ctx;
10
+ private readonly store;
11
+ private readonly seats;
12
+ private readonly installed;
13
+ private readonly activeRuns;
14
+ constructor(ctx: Context, store: TeamStore);
15
+ launch(team: TeamConfig, workspaceId: WorkspaceId, signal: AbortSignal): Promise<SessionId>;
16
+ trackRun(runId: string, parentId: SessionId): void;
17
+ finishRun(runId: string): void;
18
+ switchTeam(sessionId: SessionId, assignment: string | null, choice: TeamChoice | null, signal: AbortSignal): Promise<SessionTeams>;
19
+ private changeAssignment;
20
+ attach(agent: Agent, initialize: boolean, signal?: AbortSignal): Promise<void>;
21
+ private install;
22
+ detach(agent: Agent): void;
23
+ close(): void;
24
+ private guardMemberReferences;
25
+ private registerSpawn;
26
+ private spawn;
27
+ private checkRoute;
28
+ }