@wowyuarm/dsh-agent-team 0.1.13 → 0.1.14-alpha.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.
Files changed (67) hide show
  1. package/README.md +1 -1
  2. package/README.zh.md +1 -1
  3. package/cordis.patch.yml +185 -2
  4. package/package.json +45 -49
  5. package/packages/agent-team/lib/context-management.js +2 -3
  6. package/packages/agent-team/lib/context-projection.js +7 -11
  7. package/packages/agent-team/lib/context-source.js +36 -17
  8. package/packages/agent-team/lib/index.js +26 -64
  9. package/packages/agent-team/lib/member-context.js +5 -3
  10. package/packages/agent-team/lib/member-time-context.js +5 -2
  11. package/packages/agent-team/lib/pressure-policy.js +5 -3
  12. package/packages/agent-team/lib/stored-session-reader.js +1 -2
  13. package/packages/agent-team/lib/typert.host.js +289 -211
  14. package/packages/agent-team/lib/typert.remote-client.d.ts +3 -2
  15. package/packages/agent-team/lib/typert.remote-client.d.ts.map +1 -1
  16. package/packages/agent-team/lib/typert.remote-client.js +243 -189
  17. package/packages/agent-team/lib/types/context-management.d.ts.map +1 -1
  18. package/packages/agent-team/lib/types/context-projection.d.ts.map +1 -1
  19. package/packages/agent-team/lib/types/context-source.d.ts +46 -13
  20. package/packages/agent-team/lib/types/context-source.d.ts.map +1 -1
  21. package/packages/agent-team/lib/types/index.d.ts +0 -8
  22. package/packages/agent-team/lib/types/index.d.ts.map +1 -1
  23. package/packages/agent-team/lib/types/member-context.d.ts +14 -0
  24. package/packages/agent-team/lib/types/member-context.d.ts.map +1 -1
  25. package/packages/agent-team/lib/types/member-time-context.d.ts +15 -0
  26. package/packages/agent-team/lib/types/member-time-context.d.ts.map +1 -1
  27. package/packages/agent-team/lib/types/pressure-policy.d.ts.map +1 -1
  28. package/packages/agent-team/lib/types/stored-session-reader.d.ts +1 -2
  29. package/packages/agent-team/lib/types/stored-session-reader.d.ts.map +1 -1
  30. package/packages/agent-team/lib/types/types/entities.d.ts +3 -3
  31. package/packages/client-agent-team/lib/client.js +467 -341
  32. package/packages/client-agent-team/lib/client.js.map +1 -1
  33. package/packages/client-agent-team/lib/types/client/TeamAgentsPanel.js +6 -6
  34. package/packages/client-agent-team/lib/types/client/TeamChannelPage.js +3 -3
  35. package/packages/client-agent-team/lib/types/client/TeamChannelsPanel.js +4 -4
  36. package/packages/client-agent-team/lib/types/client/TeamComposer.js +3 -3
  37. package/packages/client-agent-team/lib/types/client/TeamFooterAction.js +2 -2
  38. package/packages/client-agent-team/lib/types/client/TeamMemberEditor.js +3 -3
  39. package/packages/client-agent-team/lib/types/client/TeamMembersAction.js +2 -2
  40. package/packages/client-agent-team/lib/types/client/TeamRowMenu.d.ts.map +1 -1
  41. package/packages/client-agent-team/lib/types/client/TeamRowMenu.js +2 -2
  42. package/packages/client-agent-team/lib/types/client/TeamSidebarSection.js +2 -2
  43. package/packages/client-agent-team/lib/types/client/TeamThreadPage.js +3 -3
  44. package/packages/client-agent-team/lib/types/client/TeamWorkspaceBrowser.d.ts.map +1 -1
  45. package/packages/client-agent-team/lib/types/client/TeamWorkspaceBrowser.js +5 -8
  46. package/packages/client-agent-team/lib/types/client/TeamWorkspaceSelector.d.ts +37 -0
  47. package/packages/client-agent-team/lib/types/client/TeamWorkspaceSelector.d.ts.map +1 -0
  48. package/packages/client-agent-team/lib/types/client/TeamWorkspaceSelector.js +58 -0
  49. package/packages/client-agent-team/lib/types/client/index.d.ts.map +1 -1
  50. package/packages/client-agent-team/lib/types/client/index.js +37 -18
  51. package/packages/client-agent-team/lib/types/client/locales.d.ts +2 -0
  52. package/packages/client-agent-team/lib/types/client/locales.d.ts.map +1 -1
  53. package/packages/client-agent-team/lib/types/client/locales.js +2 -0
  54. package/packages/client-agent-team/lib/types/client/multi-menu-field.js +2 -2
  55. package/packages/client-agent-team/lib/types/client/sidebar-sections.d.ts +1 -1
  56. package/packages/client-agent-team/lib/types/client/sidebar-sections.d.ts.map +1 -1
  57. package/packages/client-agent-team/lib/types/client/sidebar-sections.js +4 -3
  58. package/packages/agent-team/lib/preset-roster.js +0 -15
  59. package/packages/agent-team/lib/session-remediation.js +0 -493
  60. package/packages/agent-team/lib/types/preset-roster.d.ts +0 -5
  61. package/packages/agent-team/lib/types/preset-roster.d.ts.map +0 -1
  62. package/packages/agent-team/lib/types/session-remediation.d.ts +0 -172
  63. package/packages/agent-team/lib/types/session-remediation.d.ts.map +0 -1
  64. package/packages/agent-team/preset/team-member/agent.cordis.yml +0 -164
  65. package/packages/client-agent-team/lib/types/client/TeamWorkspaceRow.d.ts +0 -11
  66. package/packages/client-agent-team/lib/types/client/TeamWorkspaceRow.d.ts.map +0 -1
  67. package/packages/client-agent-team/lib/types/client/TeamWorkspaceRow.js +0 -6
@@ -1,7 +1,8 @@
1
1
  /* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
2
2
  import { z } from 'zod'
3
3
 
4
- const _wowyuarm_dsh_agent_team_agentTeam_addMember_parameter_0$schema = z.object({
4
+ let _wowyuarm_dsh_agent_team_agentTeam_addMember_parameter_0$schema$value
5
+ const _wowyuarm_dsh_agent_team_agentTeam_addMember_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_addMember_parameter_0$schema$value ??= z.object({
5
6
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
6
7
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
7
8
  'handle': z.string().readonly(),
@@ -21,8 +22,9 @@ const _wowyuarm_dsh_agent_team_agentTeam_addMember_parameter_0$schema = z.object
21
22
  })]).readonly().optional(),
22
23
  }).readonly().optional(),
23
24
  'channelRefs': z.array(z.intersection(z.string(), z.unknown())).readonly(),
24
- })
25
- const _wowyuarm_dsh_agent_team_agentTeam_addMember_result$schema = z.object({
25
+ }))
26
+ let _wowyuarm_dsh_agent_team_agentTeam_addMember_result$schema$value
27
+ const _wowyuarm_dsh_agent_team_agentTeam_addMember_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_addMember_result$schema$value ??= z.object({
26
28
  'receipt': z.object({
27
29
  'operationId': z.intersection(z.string(), z.unknown()).readonly(),
28
30
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -70,13 +72,15 @@ const _wowyuarm_dsh_agent_team_agentTeam_addMember_result$schema = z.object({
70
72
  'knownNames': z.array(z.string()).readonly(),
71
73
  }))]).readonly().optional(),
72
74
  }).readonly(),
73
- })
74
- const _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_parameter_0$schema = z.object({
75
+ }))
76
+ let _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_parameter_0$schema$value
77
+ const _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_archiveChannel_parameter_0$schema$value ??= z.object({
75
78
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
76
79
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
77
80
  'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
78
- })
79
- const _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_result$schema = z.object({
81
+ }))
82
+ let _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_result$schema$value
83
+ const _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_archiveChannel_result$schema$value ??= z.object({
80
84
  'receipt': z.object({
81
85
  'operationId': z.intersection(z.string(), z.unknown()).readonly(),
82
86
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -100,12 +104,14 @@ const _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_result$schema = z.object
100
104
  'normalizedDirection': z.string().readonly(),
101
105
  'state': z.union([z.literal("active"), z.literal("done"), z.literal("released")]).readonly(),
102
106
  })).readonly(),
103
- })
104
- const _wowyuarm_dsh_agent_team_agentTeam_archiveMember_parameter_0$schema = z.object({
107
+ }))
108
+ let _wowyuarm_dsh_agent_team_agentTeam_archiveMember_parameter_0$schema$value
109
+ const _wowyuarm_dsh_agent_team_agentTeam_archiveMember_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_archiveMember_parameter_0$schema$value ??= z.object({
105
110
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
106
111
  'memberId': z.intersection(z.string(), z.unknown()).readonly(),
107
- })
108
- const _wowyuarm_dsh_agent_team_agentTeam_archiveMember_result$schema = z.object({
112
+ }))
113
+ let _wowyuarm_dsh_agent_team_agentTeam_archiveMember_result$schema$value
114
+ const _wowyuarm_dsh_agent_team_agentTeam_archiveMember_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_archiveMember_result$schema$value ??= z.object({
109
115
  'receipt': z.object({
110
116
  'operationId': z.intersection(z.string(), z.unknown()).readonly(),
111
117
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -148,15 +154,17 @@ const _wowyuarm_dsh_agent_team_agentTeam_archiveMember_result$schema = z.object(
148
154
  'memberId': z.intersection(z.string(), z.unknown()).readonly(),
149
155
  'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
150
156
  })).readonly(),
151
- })
152
- const _wowyuarm_dsh_agent_team_agentTeam_changeAttention_parameter_0$schema = z.object({
157
+ }))
158
+ let _wowyuarm_dsh_agent_team_agentTeam_changeAttention_parameter_0$schema$value
159
+ const _wowyuarm_dsh_agent_team_agentTeam_changeAttention_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_changeAttention_parameter_0$schema$value ??= z.object({
153
160
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
154
161
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
155
162
  'threadRef': z.intersection(z.string(), z.unknown()).readonly().optional(),
156
163
  'taskRef': z.intersection(z.string(), z.unknown()).readonly().optional(),
157
164
  'action': z.union([z.literal("follow"), z.literal("unfollow")]).readonly(),
158
- })
159
- const _wowyuarm_dsh_agent_team_agentTeam_changeAttention_result$schema = z.object({
165
+ }))
166
+ let _wowyuarm_dsh_agent_team_agentTeam_changeAttention_result$schema$value
167
+ const _wowyuarm_dsh_agent_team_agentTeam_changeAttention_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_changeAttention_result$schema$value ??= z.object({
160
168
  'receipt': z.object({
161
169
  'operationId': z.intersection(z.string(), z.unknown()).readonly(),
162
170
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -181,8 +189,9 @@ const _wowyuarm_dsh_agent_team_agentTeam_changeAttention_result$schema = z.objec
181
189
  'startSequence': z.number().readonly(),
182
190
  'readThroughSequence': z.number().readonly(),
183
191
  }).readonly().optional(),
184
- })
185
- const _wowyuarm_dsh_agent_team_agentTeam_changes_parameter_0$schema = z.object({
192
+ }))
193
+ let _wowyuarm_dsh_agent_team_agentTeam_changes_parameter_0$schema$value
194
+ const _wowyuarm_dsh_agent_team_agentTeam_changes_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_changes_parameter_0$schema$value ??= z.object({
186
195
  'scope': z.union([z.object({
187
196
  'kind': z.literal("workspace").readonly(),
188
197
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -196,18 +205,21 @@ const _wowyuarm_dsh_agent_team_agentTeam_changes_parameter_0$schema = z.object({
196
205
  'kind': z.literal("presence").readonly(),
197
206
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
198
207
  })]).readonly().optional(),
199
- })
200
- const _wowyuarm_dsh_agent_team_agentTeam_changes_result$schema = z.object({
208
+ }))
209
+ let _wowyuarm_dsh_agent_team_agentTeam_changes_result$schema$value
210
+ const _wowyuarm_dsh_agent_team_agentTeam_changes_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_changes_result$schema$value ??= z.object({
201
211
  'version': z.number().readonly(),
202
- })
203
- const _wowyuarm_dsh_agent_team_agentTeam_changeTask_parameter_0$schema = z.object({
212
+ }))
213
+ let _wowyuarm_dsh_agent_team_agentTeam_changeTask_parameter_0$schema$value
214
+ const _wowyuarm_dsh_agent_team_agentTeam_changeTask_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_changeTask_parameter_0$schema$value ??= z.object({
204
215
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
205
216
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
206
217
  'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
207
218
  'action': z.union([z.literal("accept"), z.literal("close"), z.literal("reopen")]).readonly(),
208
219
  'baseRevision': z.number().readonly(),
209
- })
210
- const _wowyuarm_dsh_agent_team_agentTeam_changeTask_result$schema = z.union([z.object({
220
+ }))
221
+ let _wowyuarm_dsh_agent_team_agentTeam_changeTask_result$schema$value
222
+ const _wowyuarm_dsh_agent_team_agentTeam_changeTask_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_changeTask_result$schema$value ??= z.union([z.object({
211
223
  'kind': z.literal("committed").readonly(),
212
224
  'receipt': z.object({
213
225
  'operationId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -260,13 +272,15 @@ const _wowyuarm_dsh_agent_team_agentTeam_changeTask_result$schema = z.union([z.o
260
272
  'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
261
273
  'expectedRevision': z.number().readonly(),
262
274
  'revision': z.number().readonly(),
263
- })])
264
- const _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_parameter_0$schema = z.object({
275
+ })]))
276
+ let _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_parameter_0$schema$value
277
+ const _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_parameter_0$schema$value ??= z.object({
265
278
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
266
279
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
267
280
  'memberId': z.intersection(z.string(), z.unknown()).readonly(),
268
- })
269
- const _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_result$schema = z.object({
281
+ }))
282
+ let _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_result$schema$value
283
+ const _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_result$schema$value ??= z.object({
270
284
  'receipt': z.object({
271
285
  'operationId': z.intersection(z.string(), z.unknown()).readonly(),
272
286
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -314,15 +328,17 @@ const _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_result$schema = z.ob
314
328
  'knownNames': z.array(z.string()).readonly(),
315
329
  }))]).readonly().optional(),
316
330
  }).readonly(),
317
- })
318
- const _wowyuarm_dsh_agent_team_agentTeam_createChannel_parameter_0$schema = z.object({
331
+ }))
332
+ let _wowyuarm_dsh_agent_team_agentTeam_createChannel_parameter_0$schema$value
333
+ const _wowyuarm_dsh_agent_team_agentTeam_createChannel_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_createChannel_parameter_0$schema$value ??= z.object({
319
334
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
320
335
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
321
336
  'name': z.string().readonly(),
322
337
  'description': z.string().readonly(),
323
338
  'memberIds': z.array(z.intersection(z.string(), z.unknown())).readonly().optional(),
324
- })
325
- const _wowyuarm_dsh_agent_team_agentTeam_createChannel_result$schema = z.object({
339
+ }))
340
+ let _wowyuarm_dsh_agent_team_agentTeam_createChannel_result$schema$value
341
+ const _wowyuarm_dsh_agent_team_agentTeam_createChannel_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_createChannel_result$schema$value ??= z.object({
326
342
  'receipt': z.object({
327
343
  'operationId': z.intersection(z.string(), z.unknown()).readonly(),
328
344
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -338,21 +354,25 @@ const _wowyuarm_dsh_agent_team_agentTeam_createChannel_result$schema = z.object(
338
354
  'state': z.union([z.literal("archived"), z.literal("active")]).readonly(),
339
355
  }).readonly(),
340
356
  'memberIds': z.array(z.intersection(z.string(), z.unknown())).readonly(),
341
- })
342
- const _wowyuarm_dsh_agent_team_agentTeam_getAttachment_parameter_0$schema = z.object({
357
+ }))
358
+ let _wowyuarm_dsh_agent_team_agentTeam_getAttachment_parameter_0$schema$value
359
+ const _wowyuarm_dsh_agent_team_agentTeam_getAttachment_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_getAttachment_parameter_0$schema$value ??= z.object({
343
360
  'attachmentId': z.intersection(z.string(), z.unknown()).readonly(),
344
- })
345
- const _wowyuarm_dsh_agent_team_agentTeam_getAttachment_result$schema = z.object({
361
+ }))
362
+ let _wowyuarm_dsh_agent_team_agentTeam_getAttachment_result$schema$value
363
+ const _wowyuarm_dsh_agent_team_agentTeam_getAttachment_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_getAttachment_result$schema$value ??= z.object({
346
364
  'name': z.string().readonly(),
347
365
  'mediaType': z.string().readonly(),
348
366
  'byteSize': z.number().readonly(),
349
367
  'bytesBase64': z.string().readonly(),
350
- })
351
- const _wowyuarm_dsh_agent_team_agentTeam_inbox_parameter_0$schema = z.object({
368
+ }))
369
+ let _wowyuarm_dsh_agent_team_agentTeam_inbox_parameter_0$schema$value
370
+ const _wowyuarm_dsh_agent_team_agentTeam_inbox_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_inbox_parameter_0$schema$value ??= z.object({
352
371
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
353
372
  'limit': z.number().readonly().optional(),
354
- })
355
- const _wowyuarm_dsh_agent_team_agentTeam_inbox_result$schema = z.object({
373
+ }))
374
+ let _wowyuarm_dsh_agent_team_agentTeam_inbox_result$schema$value
375
+ const _wowyuarm_dsh_agent_team_agentTeam_inbox_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_inbox_result$schema$value ??= z.object({
356
376
  'items': z.array(z.object({
357
377
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
358
378
  'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
@@ -429,14 +449,16 @@ const _wowyuarm_dsh_agent_team_agentTeam_inbox_result$schema = z.object({
429
449
  })).readonly(),
430
450
  'totalUnreadCount': z.number().readonly(),
431
451
  'totalDirectCount': z.number().readonly(),
432
- })
433
- const _wowyuarm_dsh_agent_team_agentTeam_joinChannel_parameter_0$schema = z.object({
452
+ }))
453
+ let _wowyuarm_dsh_agent_team_agentTeam_joinChannel_parameter_0$schema$value
454
+ const _wowyuarm_dsh_agent_team_agentTeam_joinChannel_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_joinChannel_parameter_0$schema$value ??= z.object({
434
455
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
435
456
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
436
457
  'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
437
458
  'memberId': z.intersection(z.string(), z.unknown()).readonly(),
438
- })
439
- const _wowyuarm_dsh_agent_team_agentTeam_joinChannel_result$schema = z.object({
459
+ }))
460
+ let _wowyuarm_dsh_agent_team_agentTeam_joinChannel_result$schema$value
461
+ const _wowyuarm_dsh_agent_team_agentTeam_joinChannel_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_joinChannel_result$schema$value ??= z.object({
440
462
  'receipt': z.object({
441
463
  'operationId': z.intersection(z.string(), z.unknown()).readonly(),
442
464
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -445,13 +467,15 @@ const _wowyuarm_dsh_agent_team_agentTeam_joinChannel_result$schema = z.object({
445
467
  }).readonly(),
446
468
  'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
447
469
  'memberId': z.intersection(z.string(), z.unknown()).readonly(),
448
- })
449
- const _wowyuarm_dsh_agent_team_agentTeam_joinWorkspace_parameter_0$schema = z.object({
470
+ }))
471
+ let _wowyuarm_dsh_agent_team_agentTeam_joinWorkspace_parameter_0$schema$value
472
+ const _wowyuarm_dsh_agent_team_agentTeam_joinWorkspace_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_joinWorkspace_parameter_0$schema$value ??= z.object({
450
473
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
451
474
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
452
475
  'memberId': z.intersection(z.string(), z.unknown()).readonly(),
453
- })
454
- const _wowyuarm_dsh_agent_team_agentTeam_joinWorkspace_result$schema = z.object({
476
+ }))
477
+ let _wowyuarm_dsh_agent_team_agentTeam_joinWorkspace_result$schema$value
478
+ const _wowyuarm_dsh_agent_team_agentTeam_joinWorkspace_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_joinWorkspace_result$schema$value ??= z.object({
455
479
  'receipt': z.object({
456
480
  'operationId': z.intersection(z.string(), z.unknown()).readonly(),
457
481
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -460,13 +484,15 @@ const _wowyuarm_dsh_agent_team_agentTeam_joinWorkspace_result$schema = z.object(
460
484
  }).readonly(),
461
485
  'memberId': z.intersection(z.string(), z.unknown()).readonly(),
462
486
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
463
- })
464
- const _wowyuarm_dsh_agent_team_agentTeam_leaveWorkspace_parameter_0$schema = z.object({
487
+ }))
488
+ let _wowyuarm_dsh_agent_team_agentTeam_leaveWorkspace_parameter_0$schema$value
489
+ const _wowyuarm_dsh_agent_team_agentTeam_leaveWorkspace_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_leaveWorkspace_parameter_0$schema$value ??= z.object({
465
490
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
466
491
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
467
492
  'memberId': z.intersection(z.string(), z.unknown()).readonly(),
468
- })
469
- const _wowyuarm_dsh_agent_team_agentTeam_leaveWorkspace_result$schema = z.object({
493
+ }))
494
+ let _wowyuarm_dsh_agent_team_agentTeam_leaveWorkspace_result$schema$value
495
+ const _wowyuarm_dsh_agent_team_agentTeam_leaveWorkspace_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_leaveWorkspace_result$schema$value ??= z.object({
470
496
  'receipt': z.object({
471
497
  'operationId': z.intersection(z.string(), z.unknown()).readonly(),
472
498
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -488,11 +514,13 @@ const _wowyuarm_dsh_agent_team_agentTeam_leaveWorkspace_result$schema = z.object
488
514
  'memberId': z.intersection(z.string(), z.unknown()).readonly(),
489
515
  'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
490
516
  })).readonly(),
491
- })
492
- const _wowyuarm_dsh_agent_team_agentTeam_members_parameter_0$schema = z.object({
517
+ }))
518
+ let _wowyuarm_dsh_agent_team_agentTeam_members_parameter_0$schema$value
519
+ const _wowyuarm_dsh_agent_team_agentTeam_members_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_members_parameter_0$schema$value ??= z.object({
493
520
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly().optional(),
494
- })
495
- const _wowyuarm_dsh_agent_team_agentTeam_members_result$schema = z.array(z.object({
521
+ }))
522
+ let _wowyuarm_dsh_agent_team_agentTeam_members_result$schema$value
523
+ const _wowyuarm_dsh_agent_team_agentTeam_members_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_members_result$schema$value ??= z.array(z.object({
496
524
  'member': z.object({
497
525
  'memberId': z.intersection(z.string(), z.unknown()).readonly(),
498
526
  'sessionId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -532,14 +560,16 @@ const _wowyuarm_dsh_agent_team_agentTeam_members_result$schema = z.array(z.objec
532
560
  'name': z.string().readonly(),
533
561
  'knownNames': z.array(z.string()).readonly(),
534
562
  }))]).readonly().optional(),
535
- }))
536
- const _wowyuarm_dsh_agent_team_agentTeam_promoteThread_parameter_0$schema = z.object({
563
+ })))
564
+ let _wowyuarm_dsh_agent_team_agentTeam_promoteThread_parameter_0$schema$value
565
+ const _wowyuarm_dsh_agent_team_agentTeam_promoteThread_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_promoteThread_parameter_0$schema$value ??= z.object({
537
566
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
538
567
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
539
568
  'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
540
569
  'baseRevision': z.number().readonly(),
541
- })
542
- const _wowyuarm_dsh_agent_team_agentTeam_promoteThread_result$schema = z.union([z.object({
570
+ }))
571
+ let _wowyuarm_dsh_agent_team_agentTeam_promoteThread_result$schema$value
572
+ const _wowyuarm_dsh_agent_team_agentTeam_promoteThread_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_promoteThread_result$schema$value ??= z.union([z.object({
543
573
  'kind': z.literal("unread_required").readonly(),
544
574
  'taskRef': z.intersection(z.string(), z.unknown()).readonly().optional(),
545
575
  'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
@@ -583,28 +613,32 @@ const _wowyuarm_dsh_agent_team_agentTeam_promoteThread_result$schema = z.union([
583
613
  'taskRef': z.intersection(z.string(), z.unknown()).readonly().optional(),
584
614
  'revision': z.number().readonly(),
585
615
  }).readonly(),
586
- })])
587
- const _wowyuarm_dsh_agent_team_agentTeam_putAttachment_parameter_0$schema = z.object({
616
+ })]))
617
+ let _wowyuarm_dsh_agent_team_agentTeam_putAttachment_parameter_0$schema$value
618
+ const _wowyuarm_dsh_agent_team_agentTeam_putAttachment_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_putAttachment_parameter_0$schema$value ??= z.object({
588
619
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
589
620
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
590
621
  'name': z.string().readonly(),
591
622
  'mediaType': z.union([z.undefined(), z.string()]).readonly().optional(),
592
623
  'bytesBase64': z.string().readonly(),
593
- })
594
- const _wowyuarm_dsh_agent_team_agentTeam_putAttachment_result$schema = z.object({
624
+ }))
625
+ let _wowyuarm_dsh_agent_team_agentTeam_putAttachment_result$schema$value
626
+ const _wowyuarm_dsh_agent_team_agentTeam_putAttachment_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_putAttachment_result$schema$value ??= z.object({
595
627
  'attachmentId': z.intersection(z.string(), z.unknown()).readonly(),
596
628
  'path': z.string().readonly(),
597
629
  'name': z.string().readonly(),
598
630
  'byteSize': z.number().readonly(),
599
631
  'mediaType': z.string().readonly(),
600
- })
601
- const _wowyuarm_dsh_agent_team_agentTeam_readThread_parameter_0$schema = z.object({
632
+ }))
633
+ let _wowyuarm_dsh_agent_team_agentTeam_readThread_parameter_0$schema$value
634
+ const _wowyuarm_dsh_agent_team_agentTeam_readThread_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_readThread_parameter_0$schema$value ??= z.object({
602
635
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
603
636
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
604
637
  'threadRef': z.intersection(z.string(), z.unknown()).readonly().optional(),
605
638
  'taskRef': z.intersection(z.string(), z.unknown()).readonly().optional(),
606
- })
607
- const _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema = z.object({
639
+ }))
640
+ let _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema$value
641
+ const _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema$value ??= z.object({
608
642
  'receipt': z.object({
609
643
  'operationId': z.intersection(z.string(), z.unknown()).readonly(),
610
644
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -731,13 +765,15 @@ const _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema = z.object({
731
765
  'action': z.union([z.literal("unavailable"), z.literal("rollover"), z.literal("keep"), z.literal("handoff-now")]).readonly(),
732
766
  'guidance': z.string().readonly(),
733
767
  }).readonly().optional(),
734
- })
735
- const _wowyuarm_dsh_agent_team_agentTeam_recoverMember_parameter_0$schema = z.object({
768
+ }))
769
+ let _wowyuarm_dsh_agent_team_agentTeam_recoverMember_parameter_0$schema$value
770
+ const _wowyuarm_dsh_agent_team_agentTeam_recoverMember_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_recoverMember_parameter_0$schema$value ??= z.object({
736
771
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
737
772
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
738
773
  'memberId': z.intersection(z.string(), z.unknown()).readonly(),
739
- })
740
- const _wowyuarm_dsh_agent_team_agentTeam_recoverMember_result$schema = z.object({
774
+ }))
775
+ let _wowyuarm_dsh_agent_team_agentTeam_recoverMember_result$schema$value
776
+ const _wowyuarm_dsh_agent_team_agentTeam_recoverMember_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_recoverMember_result$schema$value ??= z.object({
741
777
  'status': z.object({
742
778
  'member': z.object({
743
779
  'memberId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -779,14 +815,16 @@ const _wowyuarm_dsh_agent_team_agentTeam_recoverMember_result$schema = z.object(
779
815
  'knownNames': z.array(z.string()).readonly(),
780
816
  }))]).readonly().optional(),
781
817
  }).readonly(),
782
- })
783
- const _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_parameter_0$schema = z.object({
818
+ }))
819
+ let _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_parameter_0$schema$value
820
+ const _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_parameter_0$schema$value ??= z.object({
784
821
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
785
822
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
786
823
  'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
787
824
  'memberId': z.intersection(z.string(), z.unknown()).readonly(),
788
- })
789
- const _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_result$schema = z.object({
825
+ }))
826
+ let _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_result$schema$value
827
+ const _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_result$schema$value ??= z.object({
790
828
  'receipt': z.object({
791
829
  'operationId': z.intersection(z.string(), z.unknown()).readonly(),
792
830
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -808,8 +846,9 @@ const _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_result$schema = z.o
808
846
  'memberId': z.intersection(z.string(), z.unknown()).readonly(),
809
847
  'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
810
848
  })).readonly(),
811
- })
812
- const _wowyuarm_dsh_agent_team_agentTeam_reply_parameter_0$schema = z.object({
849
+ }))
850
+ let _wowyuarm_dsh_agent_team_agentTeam_reply_parameter_0$schema$value
851
+ const _wowyuarm_dsh_agent_team_agentTeam_reply_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_reply_parameter_0$schema$value ??= z.object({
813
852
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
814
853
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
815
854
  'threadRef': z.intersection(z.string(), z.unknown()).readonly().optional(),
@@ -820,8 +859,9 @@ const _wowyuarm_dsh_agent_team_agentTeam_reply_parameter_0$schema = z.object({
820
859
  'attachmentPaths': z.union([z.undefined(), z.array(z.string())]).readonly().optional(),
821
860
  'attachments': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
822
861
  'confirmationToken': z.intersection(z.string(), z.unknown()).readonly().optional(),
823
- })
824
- const _wowyuarm_dsh_agent_team_agentTeam_reply_result$schema = z.union([z.object({
862
+ }))
863
+ let _wowyuarm_dsh_agent_team_agentTeam_reply_result$schema$value
864
+ const _wowyuarm_dsh_agent_team_agentTeam_reply_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_reply_result$schema$value ??= z.union([z.object({
825
865
  'kind': z.literal("unread_required").readonly(),
826
866
  'taskRef': z.intersection(z.string(), z.unknown()).readonly().optional(),
827
867
  'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
@@ -901,20 +941,23 @@ const _wowyuarm_dsh_agent_team_agentTeam_reply_result$schema = z.union([z.object
901
941
  'sequence': z.number().readonly(),
902
942
  })).readonly(),
903
943
  'undeliveredMentions': z.array(z.intersection(z.string(), z.unknown())).readonly().optional(),
904
- })])
905
- const _wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_parameter_0$schema = z.object({
944
+ })]))
945
+ let _wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_parameter_0$schema$value
946
+ const _wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_parameter_0$schema$value ??= z.object({
906
947
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
907
948
  'taskRefs': z.array(z.intersection(z.string(), z.unknown())).readonly(),
908
- })
909
- const _wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_result$schema = z.object({
949
+ }))
950
+ let _wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_result$schema$value
951
+ const _wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_result$schema$value ??= z.object({
910
952
  'resolved': z.array(z.object({
911
953
  'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
912
954
  'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
913
955
  'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
914
956
  'taskNumber': z.number().readonly(),
915
957
  })).readonly(),
916
- })
917
- const _wowyuarm_dsh_agent_team_agentTeam_sendMessage_parameter_0$schema = z.object({
958
+ }))
959
+ let _wowyuarm_dsh_agent_team_agentTeam_sendMessage_parameter_0$schema$value
960
+ const _wowyuarm_dsh_agent_team_agentTeam_sendMessage_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_sendMessage_parameter_0$schema$value ??= z.object({
918
961
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
919
962
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
920
963
  'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
@@ -924,8 +967,9 @@ const _wowyuarm_dsh_agent_team_agentTeam_sendMessage_parameter_0$schema = z.obje
924
967
  'attachmentPaths': z.union([z.undefined(), z.array(z.string())]).readonly().optional(),
925
968
  'confirmationToken': z.intersection(z.string(), z.unknown()).readonly().optional(),
926
969
  'asTask': z.boolean().readonly().optional(),
927
- })
928
- const _wowyuarm_dsh_agent_team_agentTeam_sendMessage_result$schema = z.union([z.object({
970
+ }))
971
+ let _wowyuarm_dsh_agent_team_agentTeam_sendMessage_result$schema$value
972
+ const _wowyuarm_dsh_agent_team_agentTeam_sendMessage_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_sendMessage_result$schema$value ??= z.union([z.object({
929
973
  'kind': z.literal("committed").readonly(),
930
974
  'receipt': z.object({
931
975
  'operationId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -991,15 +1035,17 @@ const _wowyuarm_dsh_agent_team_agentTeam_sendMessage_result$schema = z.union([z.
991
1035
  'taskRef': z.intersection(z.string(), z.unknown()).readonly().optional(),
992
1036
  'threadRef': z.intersection(z.string(), z.unknown()).readonly().optional(),
993
1037
  'revision': z.number().readonly().optional(),
994
- })])
995
- const _wowyuarm_dsh_agent_team_agentTeam_threadHistory_parameter_0$schema = z.object({
1038
+ })]))
1039
+ let _wowyuarm_dsh_agent_team_agentTeam_threadHistory_parameter_0$schema$value
1040
+ const _wowyuarm_dsh_agent_team_agentTeam_threadHistory_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_threadHistory_parameter_0$schema$value ??= z.object({
996
1041
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
997
1042
  'threadRef': z.intersection(z.string(), z.unknown()).readonly().optional(),
998
1043
  'taskRef': z.intersection(z.string(), z.unknown()).readonly().optional(),
999
1044
  'beforeSequence': z.number().readonly().optional(),
1000
1045
  'limit': z.number().readonly().optional(),
1001
- })
1002
- const _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema = z.object({
1046
+ }))
1047
+ let _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema$value
1048
+ const _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema$value ??= z.object({
1003
1049
  'task': z.object({
1004
1050
  'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
1005
1051
  'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
@@ -1095,14 +1141,16 @@ const _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema = z.object(
1095
1141
  })])).readonly(),
1096
1142
  'cursor': z.number().readonly(),
1097
1143
  'hasMore': z.boolean().readonly(),
1098
- })
1099
- const _wowyuarm_dsh_agent_team_agentTeam_threadObservations_parameter_0$schema = z.object({
1144
+ }))
1145
+ let _wowyuarm_dsh_agent_team_agentTeam_threadObservations_parameter_0$schema$value
1146
+ const _wowyuarm_dsh_agent_team_agentTeam_threadObservations_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_threadObservations_parameter_0$schema$value ??= z.object({
1100
1147
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
1101
1148
  'threadRef': z.intersection(z.string(), z.unknown()).readonly().optional(),
1102
1149
  'taskRef': z.intersection(z.string(), z.unknown()).readonly().optional(),
1103
1150
  'limit': z.number().readonly().optional(),
1104
- })
1105
- const _wowyuarm_dsh_agent_team_agentTeam_threadObservations_result$schema = z.object({
1151
+ }))
1152
+ let _wowyuarm_dsh_agent_team_agentTeam_threadObservations_result$schema$value
1153
+ const _wowyuarm_dsh_agent_team_agentTeam_threadObservations_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_threadObservations_result$schema$value ??= z.object({
1106
1154
  'items': z.array(z.object({
1107
1155
  'sequence': z.number().readonly(),
1108
1156
  'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
@@ -1111,15 +1159,17 @@ const _wowyuarm_dsh_agent_team_agentTeam_threadObservations_result$schema = z.ob
1111
1159
  'action': z.union([z.literal("follow"), z.literal("unfollow")]).readonly(),
1112
1160
  })).readonly(),
1113
1161
  'followers': z.array(z.intersection(z.string(), z.unknown())).readonly(),
1114
- })
1115
- const _wowyuarm_dsh_agent_team_agentTeam_updateChannel_parameter_0$schema = z.object({
1162
+ }))
1163
+ let _wowyuarm_dsh_agent_team_agentTeam_updateChannel_parameter_0$schema$value
1164
+ const _wowyuarm_dsh_agent_team_agentTeam_updateChannel_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_updateChannel_parameter_0$schema$value ??= z.object({
1116
1165
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
1117
1166
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
1118
1167
  'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
1119
1168
  'name': z.string().readonly(),
1120
1169
  'description': z.string().readonly(),
1121
- })
1122
- const _wowyuarm_dsh_agent_team_agentTeam_updateChannel_result$schema = z.object({
1170
+ }))
1171
+ let _wowyuarm_dsh_agent_team_agentTeam_updateChannel_result$schema$value
1172
+ const _wowyuarm_dsh_agent_team_agentTeam_updateChannel_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_updateChannel_result$schema$value ??= z.object({
1123
1173
  'receipt': z.object({
1124
1174
  'operationId': z.intersection(z.string(), z.unknown()).readonly(),
1125
1175
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -1134,8 +1184,9 @@ const _wowyuarm_dsh_agent_team_agentTeam_updateChannel_result$schema = z.object(
1134
1184
  'createdAtSequence': z.number().readonly(),
1135
1185
  'state': z.union([z.literal("archived"), z.literal("active")]).readonly(),
1136
1186
  }).readonly(),
1137
- })
1138
- const _wowyuarm_dsh_agent_team_agentTeam_updateMember_parameter_0$schema = z.object({
1187
+ }))
1188
+ let _wowyuarm_dsh_agent_team_agentTeam_updateMember_parameter_0$schema$value
1189
+ const _wowyuarm_dsh_agent_team_agentTeam_updateMember_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_updateMember_parameter_0$schema$value ??= z.object({
1139
1190
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
1140
1191
  'memberId': z.intersection(z.string(), z.unknown()).readonly(),
1141
1192
  'handle': z.string().readonly(),
@@ -1153,8 +1204,9 @@ const _wowyuarm_dsh_agent_team_agentTeam_updateMember_parameter_0$schema = z.obj
1153
1204
  'allow': z.array(z.string()).readonly().optional(),
1154
1205
  })]).readonly().optional(),
1155
1206
  }).readonly().optional(),
1156
- })
1157
- const _wowyuarm_dsh_agent_team_agentTeam_updateMember_result$schema = z.object({
1207
+ }))
1208
+ let _wowyuarm_dsh_agent_team_agentTeam_updateMember_result$schema$value
1209
+ const _wowyuarm_dsh_agent_team_agentTeam_updateMember_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_updateMember_result$schema$value ??= z.object({
1158
1210
  'receipt': z.object({
1159
1211
  'operationId': z.intersection(z.string(), z.unknown()).readonly(),
1160
1212
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -1202,8 +1254,9 @@ const _wowyuarm_dsh_agent_team_agentTeam_updateMember_result$schema = z.object({
1202
1254
  'knownNames': z.array(z.string()).readonly(),
1203
1255
  }))]).readonly().optional(),
1204
1256
  }).readonly(),
1205
- })
1206
- const _wowyuarm_dsh_agent_team_agentTeam_view_parameter_0$schema = z.object({
1257
+ }))
1258
+ let _wowyuarm_dsh_agent_team_agentTeam_view_parameter_0$schema$value
1259
+ const _wowyuarm_dsh_agent_team_agentTeam_view_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_view_parameter_0$schema$value ??= z.object({
1207
1260
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
1208
1261
  'channelRef': z.intersection(z.string(), z.unknown()).readonly().optional(),
1209
1262
  'threadRef': z.intersection(z.string(), z.unknown()).readonly().optional(),
@@ -1212,8 +1265,9 @@ const _wowyuarm_dsh_agent_team_agentTeam_view_parameter_0$schema = z.object({
1212
1265
  'direction': z.union([z.literal("after"), z.literal("before")]).readonly().optional(),
1213
1266
  'topLevelOnly': z.boolean().readonly().optional(),
1214
1267
  'includeActivities': z.boolean().readonly().optional(),
1215
- })
1216
- const _wowyuarm_dsh_agent_team_agentTeam_view_result$schema = z.object({
1268
+ }))
1269
+ let _wowyuarm_dsh_agent_team_agentTeam_view_result$schema$value
1270
+ const _wowyuarm_dsh_agent_team_agentTeam_view_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_view_result$schema$value ??= z.object({
1217
1271
  'humanMemberId': z.intersection(z.string(), z.unknown()).readonly(),
1218
1272
  'workspaces': z.array(z.object({
1219
1273
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -1325,7 +1379,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_view_result$schema = z.object({
1325
1379
  })])).readonly(),
1326
1380
  'cursor': z.number().readonly(),
1327
1381
  'hasMore': z.boolean().readonly(),
1328
- })
1382
+ }))
1329
1383
 
1330
1384
  export const TYPERT = {
1331
1385
  package: '@wowyuarm/dsh-agent-team',
@@ -1347,16 +1401,16 @@ export const TYPERT = {
1347
1401
  codec: {
1348
1402
  mode: 'strict',
1349
1403
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamAddMemberRequest',
1350
- schema: _wowyuarm_dsh_agent_team_agentTeam_addMember_parameter_0$schema,
1404
+ create: _wowyuarm_dsh_agent_team_agentTeam_addMember_parameter_0$schema,
1351
1405
  },
1352
1406
  },
1353
1407
  ],
1354
1408
  result: {
1355
1409
  mode: 'strict',
1356
1410
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamMemberResult',
1357
- schema: _wowyuarm_dsh_agent_team_agentTeam_addMember_result$schema,
1411
+ create: _wowyuarm_dsh_agent_team_agentTeam_addMember_result$schema,
1358
1412
  },
1359
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":727,"column":9},
1413
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":708,"column":9},
1360
1414
  },
1361
1415
  {
1362
1416
  id: '@wowyuarm/dsh-agent-team#agentTeam/archiveChannel',
@@ -1372,16 +1426,16 @@ export const TYPERT = {
1372
1426
  codec: {
1373
1427
  mode: 'strict',
1374
1428
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamArchiveChannelRequest',
1375
- schema: _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_parameter_0$schema,
1429
+ create: _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_parameter_0$schema,
1376
1430
  },
1377
1431
  },
1378
1432
  ],
1379
1433
  result: {
1380
1434
  mode: 'strict',
1381
1435
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamArchiveChannelResult',
1382
- schema: _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_result$schema,
1436
+ create: _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_result$schema,
1383
1437
  },
1384
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":717,"column":9},
1438
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":698,"column":9},
1385
1439
  },
1386
1440
  {
1387
1441
  id: '@wowyuarm/dsh-agent-team#agentTeam/archiveMember',
@@ -1397,16 +1451,16 @@ export const TYPERT = {
1397
1451
  codec: {
1398
1452
  mode: 'strict',
1399
1453
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamArchiveMemberRequest',
1400
- schema: _wowyuarm_dsh_agent_team_agentTeam_archiveMember_parameter_0$schema,
1454
+ create: _wowyuarm_dsh_agent_team_agentTeam_archiveMember_parameter_0$schema,
1401
1455
  },
1402
1456
  },
1403
1457
  ],
1404
1458
  result: {
1405
1459
  mode: 'strict',
1406
1460
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamArchiveMemberResult',
1407
- schema: _wowyuarm_dsh_agent_team_agentTeam_archiveMember_result$schema,
1461
+ create: _wowyuarm_dsh_agent_team_agentTeam_archiveMember_result$schema,
1408
1462
  },
1409
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1108,"column":9},
1463
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1077,"column":9},
1410
1464
  },
1411
1465
  {
1412
1466
  id: '@wowyuarm/dsh-agent-team#agentTeam/changeAttention',
@@ -1422,16 +1476,16 @@ export const TYPERT = {
1422
1476
  codec: {
1423
1477
  mode: 'strict',
1424
1478
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadAttentionRequest',
1425
- schema: _wowyuarm_dsh_agent_team_agentTeam_changeAttention_parameter_0$schema,
1479
+ create: _wowyuarm_dsh_agent_team_agentTeam_changeAttention_parameter_0$schema,
1426
1480
  },
1427
1481
  },
1428
1482
  ],
1429
1483
  result: {
1430
1484
  mode: 'strict',
1431
1485
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadAttentionResult',
1432
- schema: _wowyuarm_dsh_agent_team_agentTeam_changeAttention_result$schema,
1486
+ create: _wowyuarm_dsh_agent_team_agentTeam_changeAttention_result$schema,
1433
1487
  },
1434
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1248,"column":9},
1488
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1217,"column":9},
1435
1489
  },
1436
1490
  {
1437
1491
  id: '@wowyuarm/dsh-agent-team#agentTeam/changes',
@@ -1448,7 +1502,7 @@ export const TYPERT = {
1448
1502
  codec: {
1449
1503
  mode: 'strict',
1450
1504
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamChangesRequest',
1451
- schema: _wowyuarm_dsh_agent_team_agentTeam_changes_parameter_0$schema,
1505
+ create: _wowyuarm_dsh_agent_team_agentTeam_changes_parameter_0$schema,
1452
1506
  },
1453
1507
  },
1454
1508
  ],
@@ -1456,9 +1510,9 @@ export const TYPERT = {
1456
1510
  result: {
1457
1511
  mode: 'strict',
1458
1512
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamChangesResult',
1459
- schema: _wowyuarm_dsh_agent_team_agentTeam_changes_result$schema,
1513
+ create: _wowyuarm_dsh_agent_team_agentTeam_changes_result$schema,
1460
1514
  },
1461
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":650,"column":11},
1515
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":631,"column":11},
1462
1516
  },
1463
1517
  {
1464
1518
  id: '@wowyuarm/dsh-agent-team#agentTeam/changeTask',
@@ -1474,16 +1528,16 @@ export const TYPERT = {
1474
1528
  codec: {
1475
1529
  mode: 'strict',
1476
1530
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamTaskRequest',
1477
- schema: _wowyuarm_dsh_agent_team_agentTeam_changeTask_parameter_0$schema,
1531
+ create: _wowyuarm_dsh_agent_team_agentTeam_changeTask_parameter_0$schema,
1478
1532
  },
1479
1533
  },
1480
1534
  ],
1481
1535
  result: {
1482
1536
  mode: 'strict',
1483
1537
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamTaskResult',
1484
- schema: _wowyuarm_dsh_agent_team_agentTeam_changeTask_result$schema,
1538
+ create: _wowyuarm_dsh_agent_team_agentTeam_changeTask_result$schema,
1485
1539
  },
1486
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1120,"column":9},
1540
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1089,"column":9},
1487
1541
  },
1488
1542
  {
1489
1543
  id: '@wowyuarm/dsh-agent-team#agentTeam/clearMemberContext',
@@ -1499,16 +1553,16 @@ export const TYPERT = {
1499
1553
  codec: {
1500
1554
  mode: 'strict',
1501
1555
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamClearMemberContextRequest',
1502
- schema: _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_parameter_0$schema,
1556
+ create: _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_parameter_0$schema,
1503
1557
  },
1504
1558
  },
1505
1559
  ],
1506
1560
  result: {
1507
1561
  mode: 'strict',
1508
1562
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamClearMemberContextResult',
1509
- schema: _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_result$schema,
1563
+ create: _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_result$schema,
1510
1564
  },
1511
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":842,"column":9},
1565
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":811,"column":9},
1512
1566
  },
1513
1567
  {
1514
1568
  id: '@wowyuarm/dsh-agent-team#agentTeam/createChannel',
@@ -1524,16 +1578,16 @@ export const TYPERT = {
1524
1578
  codec: {
1525
1579
  mode: 'strict',
1526
1580
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamCreateChannelRequest',
1527
- schema: _wowyuarm_dsh_agent_team_agentTeam_createChannel_parameter_0$schema,
1581
+ create: _wowyuarm_dsh_agent_team_agentTeam_createChannel_parameter_0$schema,
1528
1582
  },
1529
1583
  },
1530
1584
  ],
1531
1585
  result: {
1532
1586
  mode: 'strict',
1533
1587
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamCreateChannelResult',
1534
- schema: _wowyuarm_dsh_agent_team_agentTeam_createChannel_result$schema,
1588
+ create: _wowyuarm_dsh_agent_team_agentTeam_createChannel_result$schema,
1535
1589
  },
1536
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":690,"column":9},
1590
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":671,"column":9},
1537
1591
  },
1538
1592
  {
1539
1593
  id: '@wowyuarm/dsh-agent-team#agentTeam/getAttachment',
@@ -1549,16 +1603,16 @@ export const TYPERT = {
1549
1603
  codec: {
1550
1604
  mode: 'strict',
1551
1605
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamGetAttachmentRequest',
1552
- schema: _wowyuarm_dsh_agent_team_agentTeam_getAttachment_parameter_0$schema,
1606
+ create: _wowyuarm_dsh_agent_team_agentTeam_getAttachment_parameter_0$schema,
1553
1607
  },
1554
1608
  },
1555
1609
  ],
1556
1610
  result: {
1557
1611
  mode: 'strict',
1558
1612
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamGetAttachmentResult',
1559
- schema: _wowyuarm_dsh_agent_team_agentTeam_getAttachment_result$schema,
1613
+ create: _wowyuarm_dsh_agent_team_agentTeam_getAttachment_result$schema,
1560
1614
  },
1561
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1234,"column":9},
1615
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1203,"column":9},
1562
1616
  },
1563
1617
  {
1564
1618
  id: '@wowyuarm/dsh-agent-team#agentTeam/inbox',
@@ -1574,16 +1628,16 @@ export const TYPERT = {
1574
1628
  codec: {
1575
1629
  mode: 'strict',
1576
1630
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamInboxRequest',
1577
- schema: _wowyuarm_dsh_agent_team_agentTeam_inbox_parameter_0$schema,
1631
+ create: _wowyuarm_dsh_agent_team_agentTeam_inbox_parameter_0$schema,
1578
1632
  },
1579
1633
  },
1580
1634
  ],
1581
1635
  result: {
1582
1636
  mode: 'strict',
1583
1637
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamInbox',
1584
- schema: _wowyuarm_dsh_agent_team_agentTeam_inbox_result$schema,
1638
+ create: _wowyuarm_dsh_agent_team_agentTeam_inbox_result$schema,
1585
1639
  },
1586
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1257,"column":3},
1640
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1226,"column":3},
1587
1641
  },
1588
1642
  {
1589
1643
  id: '@wowyuarm/dsh-agent-team#agentTeam/joinChannel',
@@ -1599,16 +1653,16 @@ export const TYPERT = {
1599
1653
  codec: {
1600
1654
  mode: 'strict',
1601
1655
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamJoinChannelRequest',
1602
- schema: _wowyuarm_dsh_agent_team_agentTeam_joinChannel_parameter_0$schema,
1656
+ create: _wowyuarm_dsh_agent_team_agentTeam_joinChannel_parameter_0$schema,
1603
1657
  },
1604
1658
  },
1605
1659
  ],
1606
1660
  result: {
1607
1661
  mode: 'strict',
1608
1662
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamJoinChannelResult',
1609
- schema: _wowyuarm_dsh_agent_team_agentTeam_joinChannel_result$schema,
1663
+ create: _wowyuarm_dsh_agent_team_agentTeam_joinChannel_result$schema,
1610
1664
  },
1611
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1140,"column":9},
1665
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1109,"column":9},
1612
1666
  },
1613
1667
  {
1614
1668
  id: '@wowyuarm/dsh-agent-team#agentTeam/joinWorkspace',
@@ -1624,16 +1678,16 @@ export const TYPERT = {
1624
1678
  codec: {
1625
1679
  mode: 'strict',
1626
1680
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamJoinWorkspaceRequest',
1627
- schema: _wowyuarm_dsh_agent_team_agentTeam_joinWorkspace_parameter_0$schema,
1681
+ create: _wowyuarm_dsh_agent_team_agentTeam_joinWorkspace_parameter_0$schema,
1628
1682
  },
1629
1683
  },
1630
1684
  ],
1631
1685
  result: {
1632
1686
  mode: 'strict',
1633
1687
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamJoinWorkspaceResult',
1634
- schema: _wowyuarm_dsh_agent_team_agentTeam_joinWorkspace_result$schema,
1688
+ create: _wowyuarm_dsh_agent_team_agentTeam_joinWorkspace_result$schema,
1635
1689
  },
1636
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1160,"column":9},
1690
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1129,"column":9},
1637
1691
  },
1638
1692
  {
1639
1693
  id: '@wowyuarm/dsh-agent-team#agentTeam/leaveWorkspace',
@@ -1649,16 +1703,16 @@ export const TYPERT = {
1649
1703
  codec: {
1650
1704
  mode: 'strict',
1651
1705
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamLeaveWorkspaceRequest',
1652
- schema: _wowyuarm_dsh_agent_team_agentTeam_leaveWorkspace_parameter_0$schema,
1706
+ create: _wowyuarm_dsh_agent_team_agentTeam_leaveWorkspace_parameter_0$schema,
1653
1707
  },
1654
1708
  },
1655
1709
  ],
1656
1710
  result: {
1657
1711
  mode: 'strict',
1658
1712
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamLeaveWorkspaceResult',
1659
- schema: _wowyuarm_dsh_agent_team_agentTeam_leaveWorkspace_result$schema,
1713
+ create: _wowyuarm_dsh_agent_team_agentTeam_leaveWorkspace_result$schema,
1660
1714
  },
1661
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1169,"column":9},
1715
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1138,"column":9},
1662
1716
  },
1663
1717
  {
1664
1718
  id: '@wowyuarm/dsh-agent-team#agentTeam/members',
@@ -1675,16 +1729,16 @@ export const TYPERT = {
1675
1729
  codec: {
1676
1730
  mode: 'strict',
1677
1731
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamMembersRequest',
1678
- schema: _wowyuarm_dsh_agent_team_agentTeam_members_parameter_0$schema,
1732
+ create: _wowyuarm_dsh_agent_team_agentTeam_members_parameter_0$schema,
1679
1733
  },
1680
1734
  },
1681
1735
  ],
1682
1736
  result: {
1683
1737
  mode: 'strict',
1684
1738
  typeSymbol: '@wowyuarm/dsh-agent-team#agentTeam/members:result',
1685
- schema: _wowyuarm_dsh_agent_team_agentTeam_members_result$schema,
1739
+ create: _wowyuarm_dsh_agent_team_agentTeam_members_result$schema,
1686
1740
  },
1687
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":640,"column":3},
1741
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":621,"column":3},
1688
1742
  },
1689
1743
  {
1690
1744
  id: '@wowyuarm/dsh-agent-team#agentTeam/promoteThread',
@@ -1700,16 +1754,16 @@ export const TYPERT = {
1700
1754
  codec: {
1701
1755
  mode: 'strict',
1702
1756
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPromoteThreadRequest',
1703
- schema: _wowyuarm_dsh_agent_team_agentTeam_promoteThread_parameter_0$schema,
1757
+ create: _wowyuarm_dsh_agent_team_agentTeam_promoteThread_parameter_0$schema,
1704
1758
  },
1705
1759
  },
1706
1760
  ],
1707
1761
  result: {
1708
1762
  mode: 'strict',
1709
1763
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPromoteThreadResult',
1710
- schema: _wowyuarm_dsh_agent_team_agentTeam_promoteThread_result$schema,
1764
+ create: _wowyuarm_dsh_agent_team_agentTeam_promoteThread_result$schema,
1711
1765
  },
1712
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1130,"column":9},
1766
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1099,"column":9},
1713
1767
  },
1714
1768
  {
1715
1769
  id: '@wowyuarm/dsh-agent-team#agentTeam/putAttachment',
@@ -1725,16 +1779,16 @@ export const TYPERT = {
1725
1779
  codec: {
1726
1780
  mode: 'strict',
1727
1781
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPutAttachmentRequest',
1728
- schema: _wowyuarm_dsh_agent_team_agentTeam_putAttachment_parameter_0$schema,
1782
+ create: _wowyuarm_dsh_agent_team_agentTeam_putAttachment_parameter_0$schema,
1729
1783
  },
1730
1784
  },
1731
1785
  ],
1732
1786
  result: {
1733
1787
  mode: 'strict',
1734
1788
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPutAttachmentResult',
1735
- schema: _wowyuarm_dsh_agent_team_agentTeam_putAttachment_result$schema,
1789
+ create: _wowyuarm_dsh_agent_team_agentTeam_putAttachment_result$schema,
1736
1790
  },
1737
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1221,"column":9},
1791
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1190,"column":9},
1738
1792
  },
1739
1793
  {
1740
1794
  id: '@wowyuarm/dsh-agent-team#agentTeam/readThread',
@@ -1750,16 +1804,16 @@ export const TYPERT = {
1750
1804
  codec: {
1751
1805
  mode: 'strict',
1752
1806
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadReadRequest',
1753
- schema: _wowyuarm_dsh_agent_team_agentTeam_readThread_parameter_0$schema,
1807
+ create: _wowyuarm_dsh_agent_team_agentTeam_readThread_parameter_0$schema,
1754
1808
  },
1755
1809
  },
1756
1810
  ],
1757
1811
  result: {
1758
1812
  mode: 'strict',
1759
1813
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadReadResult',
1760
- schema: _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema,
1814
+ create: _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema,
1761
1815
  },
1762
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1264,"column":9},
1816
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1233,"column":9},
1763
1817
  },
1764
1818
  {
1765
1819
  id: '@wowyuarm/dsh-agent-team#agentTeam/recoverMember',
@@ -1775,16 +1829,16 @@ export const TYPERT = {
1775
1829
  codec: {
1776
1830
  mode: 'strict',
1777
1831
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRecoverMemberRequest',
1778
- schema: _wowyuarm_dsh_agent_team_agentTeam_recoverMember_parameter_0$schema,
1832
+ create: _wowyuarm_dsh_agent_team_agentTeam_recoverMember_parameter_0$schema,
1779
1833
  },
1780
1834
  },
1781
1835
  ],
1782
1836
  result: {
1783
1837
  mode: 'strict',
1784
1838
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRecoverMemberResult',
1785
- schema: _wowyuarm_dsh_agent_team_agentTeam_recoverMember_result$schema,
1839
+ create: _wowyuarm_dsh_agent_team_agentTeam_recoverMember_result$schema,
1786
1840
  },
1787
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":787,"column":9},
1841
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":768,"column":9},
1788
1842
  },
1789
1843
  {
1790
1844
  id: '@wowyuarm/dsh-agent-team#agentTeam/removeChannelMember',
@@ -1800,16 +1854,16 @@ export const TYPERT = {
1800
1854
  codec: {
1801
1855
  mode: 'strict',
1802
1856
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRemoveChannelMemberRequest',
1803
- schema: _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_parameter_0$schema,
1857
+ create: _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_parameter_0$schema,
1804
1858
  },
1805
1859
  },
1806
1860
  ],
1807
1861
  result: {
1808
1862
  mode: 'strict',
1809
1863
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRemoveChannelMemberResult',
1810
- schema: _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_result$schema,
1864
+ create: _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_result$schema,
1811
1865
  },
1812
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1151,"column":9},
1866
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1120,"column":9},
1813
1867
  },
1814
1868
  {
1815
1869
  id: '@wowyuarm/dsh-agent-team#agentTeam/reply',
@@ -1825,16 +1879,16 @@ export const TYPERT = {
1825
1879
  codec: {
1826
1880
  mode: 'strict',
1827
1881
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamReplyRequest',
1828
- schema: _wowyuarm_dsh_agent_team_agentTeam_reply_parameter_0$schema,
1882
+ create: _wowyuarm_dsh_agent_team_agentTeam_reply_parameter_0$schema,
1829
1883
  },
1830
1884
  },
1831
1885
  ],
1832
1886
  result: {
1833
1887
  mode: 'strict',
1834
1888
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamReplyResult',
1835
- schema: _wowyuarm_dsh_agent_team_agentTeam_reply_result$schema,
1889
+ create: _wowyuarm_dsh_agent_team_agentTeam_reply_result$schema,
1836
1890
  },
1837
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1242,"column":9},
1891
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1211,"column":9},
1838
1892
  },
1839
1893
  {
1840
1894
  id: '@wowyuarm/dsh-agent-team#agentTeam/resolveTaskRefs',
@@ -1850,16 +1904,16 @@ export const TYPERT = {
1850
1904
  codec: {
1851
1905
  mode: 'strict',
1852
1906
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamResolveTaskRefsRequest',
1853
- schema: _wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_parameter_0$schema,
1907
+ create: _wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_parameter_0$schema,
1854
1908
  },
1855
1909
  },
1856
1910
  ],
1857
1911
  result: {
1858
1912
  mode: 'strict',
1859
1913
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamResolveTaskRefsResult',
1860
- schema: _wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_result$schema,
1914
+ create: _wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_result$schema,
1861
1915
  },
1862
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":627,"column":3},
1916
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":608,"column":3},
1863
1917
  },
1864
1918
  {
1865
1919
  id: '@wowyuarm/dsh-agent-team#agentTeam/sendMessage',
@@ -1875,16 +1929,16 @@ export const TYPERT = {
1875
1929
  codec: {
1876
1930
  mode: 'strict',
1877
1931
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamSendMessageRequest',
1878
- schema: _wowyuarm_dsh_agent_team_agentTeam_sendMessage_parameter_0$schema,
1932
+ create: _wowyuarm_dsh_agent_team_agentTeam_sendMessage_parameter_0$schema,
1879
1933
  },
1880
1934
  },
1881
1935
  ],
1882
1936
  result: {
1883
1937
  mode: 'strict',
1884
1938
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamSendMessageResult',
1885
- schema: _wowyuarm_dsh_agent_team_agentTeam_sendMessage_result$schema,
1939
+ create: _wowyuarm_dsh_agent_team_agentTeam_sendMessage_result$schema,
1886
1940
  },
1887
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1178,"column":9},
1941
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1147,"column":9},
1888
1942
  },
1889
1943
  {
1890
1944
  id: '@wowyuarm/dsh-agent-team#agentTeam/threadHistory',
@@ -1900,16 +1954,16 @@ export const TYPERT = {
1900
1954
  codec: {
1901
1955
  mode: 'strict',
1902
1956
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadHistoryRequest',
1903
- schema: _wowyuarm_dsh_agent_team_agentTeam_threadHistory_parameter_0$schema,
1957
+ create: _wowyuarm_dsh_agent_team_agentTeam_threadHistory_parameter_0$schema,
1904
1958
  },
1905
1959
  },
1906
1960
  ],
1907
1961
  result: {
1908
1962
  mode: 'strict',
1909
1963
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadHistory',
1910
- schema: _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema,
1964
+ create: _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema,
1911
1965
  },
1912
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1282,"column":3},
1966
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1251,"column":3},
1913
1967
  },
1914
1968
  {
1915
1969
  id: '@wowyuarm/dsh-agent-team#agentTeam/threadObservations',
@@ -1925,16 +1979,16 @@ export const TYPERT = {
1925
1979
  codec: {
1926
1980
  mode: 'strict',
1927
1981
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadObservationsRequest',
1928
- schema: _wowyuarm_dsh_agent_team_agentTeam_threadObservations_parameter_0$schema,
1982
+ create: _wowyuarm_dsh_agent_team_agentTeam_threadObservations_parameter_0$schema,
1929
1983
  },
1930
1984
  },
1931
1985
  ],
1932
1986
  result: {
1933
1987
  mode: 'strict',
1934
1988
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadObservations',
1935
- schema: _wowyuarm_dsh_agent_team_agentTeam_threadObservations_result$schema,
1989
+ create: _wowyuarm_dsh_agent_team_agentTeam_threadObservations_result$schema,
1936
1990
  },
1937
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1275,"column":3},
1991
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1244,"column":3},
1938
1992
  },
1939
1993
  {
1940
1994
  id: '@wowyuarm/dsh-agent-team#agentTeam/updateChannel',
@@ -1950,16 +2004,16 @@ export const TYPERT = {
1950
2004
  codec: {
1951
2005
  mode: 'strict',
1952
2006
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamUpdateChannelRequest',
1953
- schema: _wowyuarm_dsh_agent_team_agentTeam_updateChannel_parameter_0$schema,
2007
+ create: _wowyuarm_dsh_agent_team_agentTeam_updateChannel_parameter_0$schema,
1954
2008
  },
1955
2009
  },
1956
2010
  ],
1957
2011
  result: {
1958
2012
  mode: 'strict',
1959
2013
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamUpdateChannelResult',
1960
- schema: _wowyuarm_dsh_agent_team_agentTeam_updateChannel_result$schema,
2014
+ create: _wowyuarm_dsh_agent_team_agentTeam_updateChannel_result$schema,
1961
2015
  },
1962
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":702,"column":9},
2016
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":683,"column":9},
1963
2017
  },
1964
2018
  {
1965
2019
  id: '@wowyuarm/dsh-agent-team#agentTeam/updateMember',
@@ -1975,16 +2029,16 @@ export const TYPERT = {
1975
2029
  codec: {
1976
2030
  mode: 'strict',
1977
2031
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamUpdateMemberRequest',
1978
- schema: _wowyuarm_dsh_agent_team_agentTeam_updateMember_parameter_0$schema,
2032
+ create: _wowyuarm_dsh_agent_team_agentTeam_updateMember_parameter_0$schema,
1979
2033
  },
1980
2034
  },
1981
2035
  ],
1982
2036
  result: {
1983
2037
  mode: 'strict',
1984
2038
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamMemberResult',
1985
- schema: _wowyuarm_dsh_agent_team_agentTeam_updateMember_result$schema,
2039
+ create: _wowyuarm_dsh_agent_team_agentTeam_updateMember_result$schema,
1986
2040
  },
1987
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1048,"column":9},
2041
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1017,"column":9},
1988
2042
  },
1989
2043
  {
1990
2044
  id: '@wowyuarm/dsh-agent-team#agentTeam/view',
@@ -2000,16 +2054,16 @@ export const TYPERT = {
2000
2054
  codec: {
2001
2055
  mode: 'strict',
2002
2056
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamViewRequest',
2003
- schema: _wowyuarm_dsh_agent_team_agentTeam_view_parameter_0$schema,
2057
+ create: _wowyuarm_dsh_agent_team_agentTeam_view_parameter_0$schema,
2004
2058
  },
2005
2059
  },
2006
2060
  ],
2007
2061
  result: {
2008
2062
  mode: 'strict',
2009
2063
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamView',
2010
- schema: _wowyuarm_dsh_agent_team_agentTeam_view_result$schema,
2064
+ create: _wowyuarm_dsh_agent_team_agentTeam_view_result$schema,
2011
2065
  },
2012
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1289,"column":3},
2066
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1258,"column":3},
2013
2067
  },
2014
2068
  ],
2015
2069
  model: {
@@ -2907,11 +2961,11 @@ export const TYPERT = {
2907
2961
  },
2908
2962
  {
2909
2963
  "name": "AssistantMessage",
2910
- "declaration": "export interface AssistantMessage extends Message {\n readonly role: 'assistant';\n readonly source: ModelMessageSource;\n}"
2964
+ "declaration": "export interface AssistantMessage extends MessageBase {\n readonly role: 'assistant';\n readonly source: ModelMessageSource;\n}"
2911
2965
  },
2912
2966
  {
2913
- "name": "AssistantProvenance",
2914
- "declaration": "export interface AssistantProvenance {\n provider: string;\n model: string;\n replayState?: unknown;\n}"
2967
+ "name": "AssistantProviderMetadata",
2968
+ "declaration": "export interface AssistantProviderMetadata {\n provider: string;\n model: string;\n replayState?: unknown;\n}"
2915
2969
  },
2916
2970
  {
2917
2971
  "name": "AssistantStreamRecord",
@@ -2937,6 +2991,10 @@ export const TYPERT = {
2937
2991
  "name": "CommandId",
2938
2992
  "declaration": "export type CommandId = Branded<'CommandId'>;"
2939
2993
  },
2994
+ {
2995
+ "name": "CompactionCheckpointSource",
2996
+ "declaration": "export type CompactionCheckpointSource = typeof COMPACT_CHECKPOINT_MARKER & { readonly compactionId: CompactionId; readonly sourceCommandId?: CommandId; };"
2997
+ },
2940
2998
  {
2941
2999
  "name": "CompactionId",
2942
3000
  "declaration": "export type CompactionId = Branded<'CompactionId'>;"
@@ -2947,7 +3005,7 @@ export const TYPERT = {
2947
3005
  },
2948
3006
  {
2949
3007
  "name": "ContentBlockMap",
2950
- "declaration": "export interface ContentBlockMap {\n text: TextBlock;\n reasoning: ReasoningBlock;\n image: ImageBlock;\n file: FileBlock;\n 'tool-call': ToolCallBlock;\n 'tool-result': ToolResultBlock;\n}"
3008
+ "declaration": "export interface ContentBlockMap {\n text: TextBlock;\n reasoning: ReasoningBlock;\n image: ImageBlock;\n file: FileBlock;\n 'tool-call': ToolCallBlock;\n 'tool-addition': ToolAdditionBlock;\n 'tool-removal': ToolRemovalBlock;\n}"
2951
3009
  },
2952
3010
  {
2953
3011
  "name": "ContentBlockType",
@@ -2961,9 +3019,13 @@ export const TYPERT = {
2961
3019
  "name": "ContextSnapshotSection",
2962
3020
  "declaration": "export interface ContextSnapshotSection {\n readonly name: string;\n readonly text: string;\n}"
2963
3021
  },
3022
+ {
3023
+ "name": "DeveloperMessage",
3024
+ "declaration": "export interface DeveloperMessage extends MessageBase {\n readonly role: 'developer';\n}"
3025
+ },
2964
3026
  {
2965
3027
  "name": "EpochHeader",
2966
- "declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n}"
3028
+ "declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
2967
3029
  },
2968
3030
  {
2969
3031
  "name": "FileAttachmentRef",
@@ -2987,7 +3049,7 @@ export const TYPERT = {
2987
3049
  },
2988
3050
  {
2989
3051
  "name": "ImageBlock",
2990
- "declaration": "export interface ImageBlock {\n type: 'image';\n attachment: ImageAttachmentRef;\n}"
3052
+ "declaration": "export interface ImageBlock {\n type: 'image';\n attachment: ImageAttachmentRef;\n offloaded?: true;\n}"
2991
3053
  },
2992
3054
  {
2993
3055
  "name": "ImageMediaType",
@@ -3015,27 +3077,35 @@ export const TYPERT = {
3015
3077
  },
3016
3078
  {
3017
3079
  "name": "LlmFailure",
3018
- "declaration": "export interface LlmFailure {\n readonly message: string;\n readonly code: string;\n readonly status?: number;\n readonly providerRetryAfterMs?: number;\n readonly requestId?: ProviderRequestId;\n}"
3080
+ "declaration": "export interface LlmFailure {\n readonly message: string;\n readonly code: string;\n readonly status?: number;\n readonly providerRetryAfterMs?: number;\n readonly requestId?: ProviderRequestId;\n readonly offloadImages?: number;\n}"
3019
3081
  },
3020
3082
  {
3021
3083
  "name": "Message",
3022
- "declaration": "export interface Message {\n readonly id: MessageId;\n readonly role: 'system' | 'user' | 'assistant';\n readonly content: ContentBlock[];\n readonly source: MessageSource;\n}"
3084
+ "declaration": "export type Message = MessageRoleMap[keyof MessageRoleMap];"
3085
+ },
3086
+ {
3087
+ "name": "MessageBase",
3088
+ "declaration": "export interface MessageBase {\n readonly id: MessageId;\n readonly content: readonly ContentBlock[];\n readonly source: MessageSource;\n}"
3023
3089
  },
3024
3090
  {
3025
3091
  "name": "MessageId",
3026
3092
  "declaration": "export type MessageId = Branded<'MessageId'>;"
3027
3093
  },
3094
+ {
3095
+ "name": "MessageRoleMap",
3096
+ "declaration": "export interface MessageRoleMap {\n system: SystemMessage;\n developer: DeveloperMessage;\n user: UserMessage;\n assistant: AssistantMessage;\n tool: ToolResultMessage;\n}"
3097
+ },
3028
3098
  {
3029
3099
  "name": "MessageSource",
3030
3100
  "declaration": "export type MessageSource = MessageSourceMap[keyof MessageSourceMap];"
3031
3101
  },
3032
3102
  {
3033
3103
  "name": "MessageSourceMap",
3034
- "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n plugin: { kind: 'plugin'; plugin: string; } & ContextFormed;\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'skill-invocation': SkillInvocationSource;\n}"
3104
+ "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n [AGENT_TEAM_PLUGIN_ID]: { kind: typeof AGENT_TEAM_PLUGIN_ID; } & ContextFormed;\n [AGENT_TEAM_V3_RENAMED_KIND]: { kind: typeof AGENT_TEAM_V3_RENAMED_KIND; } & ContextFormed;\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'compact-checkpoint': CompactionCheckpointSource;\n 'skill-invocation': SkillInvocationSource;\n 'wowyuarm-agent-team-member-context': { kind: 'wowyuarm-agent-team-member-context'; } & ContextFormed;\n 'plugin:wowyuarm-agent-team-member-context': { kind: 'plugin:wowyuarm-agent-team-member-context'; } & ContextFormed;\n 'wowyuarm-agent-team-member-time-context': { kind: 'wowyuarm-agent-team-member-time-context'; } & ContextFormed;\n 'plugin:wowyuarm-agent-team-member-time-context': { kind: 'plugin:wowyuarm-agent-team-member-time-context'; } & ContextFormed;\n}"
3035
3105
  },
3036
3106
  {
3037
3107
  "name": "ModelMessageSource",
3038
- "declaration": "export interface ModelMessageSource extends AssistantProvenance {\n kind: 'model';\n}"
3108
+ "declaration": "export interface ModelMessageSource extends AssistantProviderMetadata {\n kind: 'model';\n}"
3039
3109
  },
3040
3110
  {
3041
3111
  "name": "ProviderRequestId",
@@ -3043,7 +3113,7 @@ export const TYPERT = {
3043
3113
  },
3044
3114
  {
3045
3115
  "name": "PtcDispatchEventData",
3046
- "declaration": "export interface PtcDispatchEventData extends PtcDispatchStartEventData {\n isError: boolean;\n content: ContentBlock[];\n}"
3116
+ "declaration": "export interface PtcDispatchEventData extends PtcDispatchStartEventData {\n isError: boolean;\n content: ContentBlock[];\n error?: { name: string; code: string; reason?: string; };\n}"
3047
3117
  },
3048
3118
  {
3049
3119
  "name": "PtcDispatchStartEventData",
@@ -3075,7 +3145,7 @@ export const TYPERT = {
3075
3145
  },
3076
3146
  {
3077
3147
  "name": "Session",
3078
- "declaration": "export class Session {\n get surface(): SessionSurface;\n readonly header: SessionHeader;\n readonly inheritedEventCount: SessionLogOffset;\n get id(): SessionId;\n readonly firstLiveSeq: SessionLogOffset;\n eventAt(seq: SessionSeq): SessionEvent | undefined;\n snapshotEvents(fromSeq: SessionLogOffset = SessionLogOffset(0), toSeqExclusive: SessionLogOffset = this.seq): readonly SessionEvent[];\n ownEvents(): readonly SessionEvent[];\n isOwnSeq(seq: SessionSeq): boolean;\n get seq(): SessionLogOffset;\n append<T extends SessionEventType>(type: T, data: SessionEventMap[T], ...opts: T extends SurfaceEventType ? [opts: SurfaceIntent<T>] : []): SessionEvent<T>;\n requestHeader(): EpochHeader | undefined;\n requestContext(): RequestContext | undefined;\n deriveMessages(): Message[];\n deriveEventMessage(event: SessionEvent): Message | null;\n}"
3148
+ "declaration": "export class Session {\n get surface(): SessionSurface;\n readonly header: SessionHeader;\n readonly inheritedEventCount: SessionLogOffset;\n get id(): SessionId;\n readonly firstLiveSeq: SessionLogOffset;\n readonly firstLifecycleSeq: SessionLogOffset;\n eventAt(seq: SessionSeq): SessionEvent | undefined;\n snapshotEvents(fromSeq: SessionLogOffset = SessionLogOffset(0), toSeqExclusive: SessionLogOffset = this.seq): readonly SessionEvent[];\n ownEvents(): readonly SessionEvent[];\n isOwnSeq(seq: SessionSeq): boolean;\n get seq(): SessionLogOffset;\n append<T extends SessionEventType>(type: T, data: SessionEventMap[T], ...opts: T extends SurfaceEventType ? [opts: SurfaceIntent<T>] : []): SessionEvent<T>;\n requestHeader(): EpochHeader | undefined;\n requestContext(): RequestContext | undefined;\n deriveMessages(): Message[];\n deriveEventMessage(event: SessionEvent): Message | null;\n}"
3079
3149
  },
3080
3150
  {
3081
3151
  "name": "SessionEvent",
@@ -3083,7 +3153,7 @@ export const TYPERT = {
3083
3153
  },
3084
3154
  {
3085
3155
  "name": "SessionEventMap",
3086
- "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n}"
3156
+ "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n}"
3087
3157
  },
3088
3158
  {
3089
3159
  "name": "SessionEventType",
@@ -3107,7 +3177,7 @@ export const TYPERT = {
3107
3177
  },
3108
3178
  {
3109
3179
  "name": "SessionSurface",
3110
- "declaration": "export interface SessionSurface {\n readonly nodes: readonly SessionSeq[];\n readonly replaceGeneration: number;\n}"
3180
+ "declaration": "export interface SessionSurface {\n readonly nodes: readonly SessionSeq[];\n readonly replaceGeneration: number;\n readonly contentGeneration: number;\n}"
3111
3181
  },
3112
3182
  {
3113
3183
  "name": "SkillInvocationSource",
@@ -3119,7 +3189,7 @@ export const TYPERT = {
3119
3189
  },
3120
3190
  {
3121
3191
  "name": "SurfaceEventType",
3122
- "declaration": "export type SurfaceEventType = 'system/message' | 'user/message' | 'assistant/message' | 'tool/result';"
3192
+ "declaration": "export type SurfaceEventType = 'system/message' | 'developer/message' | 'user/message' | 'assistant/message' | 'tool/result';"
3123
3193
  },
3124
3194
  {
3125
3195
  "name": "SurfaceIntent",
@@ -3131,7 +3201,11 @@ export const TYPERT = {
3131
3201
  },
3132
3202
  {
3133
3203
  "name": "SystemMessage",
3134
- "declaration": "export interface SystemMessage extends Message {\n readonly role: 'system';\n readonly source: MessageSourceMap['plugin'];\n}"
3204
+ "declaration": "export interface SystemMessage extends MessageBase {\n readonly role: 'system';\n readonly source: MessageSourceMap['system-prompt'];\n}"
3205
+ },
3206
+ {
3207
+ "name": "SystemPromptMessageSource",
3208
+ "declaration": "export interface SystemPromptMessageSource {\n kind: 'system-prompt';\n}"
3135
3209
  },
3136
3210
  {
3137
3211
  "name": "SystemPromptUpdate",
@@ -3145,6 +3219,10 @@ export const TYPERT = {
3145
3219
  "name": "TokenUsage",
3146
3220
  "declaration": "export interface TokenUsage {\n inputTokens: number;\n outputTokens: number;\n totalTokens?: number;\n cacheReadTokens?: number;\n cacheWriteTokens?: number;\n reasoningTokens?: number;\n}"
3147
3221
  },
3222
+ {
3223
+ "name": "ToolAdditionBlock",
3224
+ "declaration": "export interface ToolAdditionBlock {\n type: 'tool-addition';\n toolName: string;\n tool?: never;\n}"
3225
+ },
3148
3226
  {
3149
3227
  "name": "ToolCallBlock",
3150
3228
  "declaration": "export interface ToolCallBlock {\n type: 'tool-call';\n id: ToolCallId;\n name: string;\n arguments: string;\n}"
@@ -3158,16 +3236,16 @@ export const TYPERT = {
3158
3236
  "declaration": "export interface ToolMessageSource {\n kind: 'tool';\n callId: ToolCallId;\n}"
3159
3237
  },
3160
3238
  {
3161
- "name": "ToolResultBlock",
3162
- "declaration": "export interface ToolResultBlock {\n type: 'tool-result';\n toolCallId: ToolCallId;\n content: ContentBlock[];\n isError?: boolean;\n}"
3239
+ "name": "ToolRemovalBlock",
3240
+ "declaration": "export interface ToolRemovalBlock {\n type: 'tool-removal';\n toolName: string;\n}"
3163
3241
  },
3164
3242
  {
3165
3243
  "name": "ToolResultMessage",
3166
- "declaration": "export interface ToolResultMessage extends Message {\n readonly role: 'user';\n readonly content: [ToolResultBlock];\n readonly source: ToolMessageSource;\n}"
3244
+ "declaration": "export interface ToolResultMessage extends MessageBase {\n readonly role: 'tool';\n readonly source: ToolMessageSource;\n readonly toolCallId: ToolCallId;\n readonly isError?: boolean;\n}"
3167
3245
  },
3168
3246
  {
3169
3247
  "name": "ToolSchema",
3170
- "declaration": "export interface ToolSchema {\n name: string;\n description: string;\n parameters: Record<string, unknown>;\n}"
3248
+ "declaration": "export interface ToolSchema {\n deferLoading?: true;\n name: string;\n description: string;\n parameters: Record<string, unknown>;\n}"
3171
3249
  },
3172
3250
  {
3173
3251
  "name": "TurnEndCancelCause",
@@ -3179,11 +3257,11 @@ export const TYPERT = {
3179
3257
  },
3180
3258
  {
3181
3259
  "name": "TurnEndReasonMap",
3182
- "declaration": "export interface TurnEndReasonMap {\n completed: { kind: 'completed'; };\n aborted: { kind: 'aborted'; reason: TurnEndCancelCause; };\n blocked: { kind: 'blocked'; };\n error: { kind: 'error'; error: LlmFailure; };\n 'max-tokens': { kind: 'max-tokens'; };\n interrupted: { kind: 'interrupted'; };\n}"
3260
+ "declaration": "export interface TurnEndReasonMap {\n completed: { kind: 'completed'; };\n aborted: { kind: 'aborted'; reason: TurnEndCancelCause; };\n blocked: { kind: 'blocked'; };\n error: { kind: 'error'; error: LlmFailure; };\n 'max-tokens': { kind: 'max-tokens'; };\n interrupted: { kind: 'interrupted'; };\n forked: { kind: 'forked'; };\n}"
3183
3261
  },
3184
3262
  {
3185
3263
  "name": "UserMessage",
3186
- "declaration": "export interface UserMessage extends Message {\n readonly role: 'user';\n}"
3264
+ "declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
3187
3265
  },
3188
3266
  {
3189
3267
  "name": "WorkspaceId",