@wowyuarm/dsh-agent-team 0.1.9 → 0.1.10
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.
- package/README.md +4 -11
- package/README.zh.md +4 -11
- package/package.json +53 -44
- package/packages/agent-team/README.md +2 -2
- package/packages/agent-team/README.zh.md +2 -1
- package/packages/agent-team/lib/context-management.js +8 -5
- package/packages/agent-team/lib/context-projection.js +12 -8
- package/packages/agent-team/lib/context-source.js +163 -23
- package/packages/agent-team/lib/index.js +174 -124
- package/packages/agent-team/lib/ledger.js +111 -30
- package/packages/agent-team/lib/member-time-context.js +126 -0
- package/packages/agent-team/lib/pressure-policy.js +1 -2
- package/packages/agent-team/lib/progress-nudge.js +12 -4
- package/packages/agent-team/lib/session-remediation.js +481 -0
- package/packages/agent-team/lib/spec.js +3 -2
- package/packages/agent-team/lib/time-format.js +56 -0
- package/packages/agent-team/lib/typert.host.js +82 -49
- package/packages/agent-team/lib/typert.remote-client.d.ts.map +1 -1
- package/packages/agent-team/lib/typert.remote-client.js +46 -25
- package/packages/agent-team/lib/types/context-management.d.ts +6 -1
- package/packages/agent-team/lib/types/context-management.d.ts.map +1 -1
- package/packages/agent-team/lib/types/context-projection.d.ts.map +1 -1
- package/packages/agent-team/lib/types/context-source.d.ts +70 -36
- package/packages/agent-team/lib/types/context-source.d.ts.map +1 -1
- package/packages/agent-team/lib/types/index.d.ts +32 -7
- package/packages/agent-team/lib/types/index.d.ts.map +1 -1
- package/packages/agent-team/lib/types/ledger.d.ts +25 -0
- package/packages/agent-team/lib/types/ledger.d.ts.map +1 -1
- package/packages/agent-team/lib/types/member-time-context.d.ts +83 -0
- package/packages/agent-team/lib/types/member-time-context.d.ts.map +1 -0
- package/packages/agent-team/lib/types/pressure-policy.d.ts.map +1 -1
- package/packages/agent-team/lib/types/progress-nudge.d.ts.map +1 -1
- package/packages/agent-team/lib/types/session-remediation.d.ts +149 -0
- package/packages/agent-team/lib/types/session-remediation.d.ts.map +1 -0
- package/packages/agent-team/lib/types/spec.d.ts.map +1 -1
- package/packages/agent-team/lib/types/time-format.d.ts +28 -0
- package/packages/agent-team/lib/types/time-format.d.ts.map +1 -0
- package/packages/agent-team/lib/types/types/entities.d.ts +8 -0
- package/packages/agent-team/lib/types/types/entities.d.ts.map +1 -1
- package/packages/agent-team/lib/types/types/requests-results.d.ts +6 -0
- package/packages/agent-team/lib/types/types/requests-results.d.ts.map +1 -1
- package/packages/agent-team/preset/team-member/agent.cordis.yml +19 -4
- package/packages/client-agent-team/lib/client.js +80 -54
- package/packages/client-agent-team/lib/client.js.map +1 -1
- package/packages/client-agent-team/lib/types/client/TeamMessage.js +2 -2
- package/packages/client-agent-team/lib/types/client/TeamThreadPage.js +4 -4
- package/packages/client-agent-team/lib/types/client/index.d.ts.map +1 -1
- package/packages/client-agent-team/lib/types/client/index.js +10 -5
- package/packages/client-agent-team/lib/types/client/slots.d.ts +1 -1
- package/packages/client-agent-team/lib/types/client/slots.d.ts.map +1 -1
- package/packages/tool-agent-team/README.md +8 -6
- package/packages/tool-agent-team/README.zh.md +8 -6
- package/packages/tool-agent-team/lib/index.js +302 -110
- package/packages/tool-agent-team/lib/types/index.d.ts.map +1 -1
|
@@ -27,6 +27,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_addMember_result$schema = z.object({
|
|
|
27
27
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
28
28
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
29
29
|
'sequence': z.number().readonly(),
|
|
30
|
+
'occurredAt': z.string().readonly(),
|
|
30
31
|
}).readonly(),
|
|
31
32
|
'status': z.object({
|
|
32
33
|
'member': z.object({
|
|
@@ -71,6 +72,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_result$schema = z.object
|
|
|
71
72
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
72
73
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
73
74
|
'sequence': z.number().readonly(),
|
|
75
|
+
'occurredAt': z.string().readonly(),
|
|
74
76
|
}).readonly(),
|
|
75
77
|
'channel': z.object({
|
|
76
78
|
'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -99,6 +101,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_archiveMember_result$schema = z.object(
|
|
|
99
101
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
100
102
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
101
103
|
'sequence': z.number().readonly(),
|
|
104
|
+
'occurredAt': z.string().readonly(),
|
|
102
105
|
}).readonly(),
|
|
103
106
|
'member': z.object({
|
|
104
107
|
'memberId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -149,6 +152,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_changeAttention_result$schema = z.objec
|
|
|
149
152
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
150
153
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
151
154
|
'sequence': z.number().readonly(),
|
|
155
|
+
'occurredAt': z.string().readonly(),
|
|
152
156
|
}).readonly(),
|
|
153
157
|
'task': z.object({
|
|
154
158
|
'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -198,6 +202,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_changeTask_result$schema = z.union([z.o
|
|
|
198
202
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
199
203
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
200
204
|
'sequence': z.number().readonly(),
|
|
205
|
+
'occurredAt': z.string().readonly(),
|
|
201
206
|
}).readonly(),
|
|
202
207
|
'activity': z.object({
|
|
203
208
|
'kind': z.union([z.literal("accept"), z.literal("close"), z.literal("reopen"), z.literal("promote")]).readonly(),
|
|
@@ -255,6 +260,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_result$schema = z.ob
|
|
|
255
260
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
256
261
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
257
262
|
'sequence': z.number().readonly(),
|
|
263
|
+
'occurredAt': z.string().readonly(),
|
|
258
264
|
}).readonly(),
|
|
259
265
|
'status': z.object({
|
|
260
266
|
'member': z.object({
|
|
@@ -301,6 +307,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_createChannel_result$schema = z.object(
|
|
|
301
307
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
302
308
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
303
309
|
'sequence': z.number().readonly(),
|
|
310
|
+
'occurredAt': z.string().readonly(),
|
|
304
311
|
}).readonly(),
|
|
305
312
|
'channel': z.object({
|
|
306
313
|
'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -343,6 +350,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_inbox_result$schema = z.object({
|
|
|
343
350
|
'unreadCount': z.number().readonly(),
|
|
344
351
|
'directCount': z.number().readonly(),
|
|
345
352
|
'newestSequence': z.number().readonly(),
|
|
353
|
+
'newestOccurredAt': z.string().readonly(),
|
|
346
354
|
'attention': z.object({
|
|
347
355
|
'memberId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
348
356
|
'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -364,6 +372,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_joinChannel_result$schema = z.object({
|
|
|
364
372
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
365
373
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
366
374
|
'sequence': z.number().readonly(),
|
|
375
|
+
'occurredAt': z.string().readonly(),
|
|
367
376
|
}).readonly(),
|
|
368
377
|
'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
369
378
|
'memberId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -427,6 +436,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_promoteThread_result$schema = z.union([
|
|
|
427
436
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
428
437
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
429
438
|
'sequence': z.number().readonly(),
|
|
439
|
+
'occurredAt': z.string().readonly(),
|
|
430
440
|
}).readonly(),
|
|
431
441
|
'activity': z.object({
|
|
432
442
|
'kind': z.union([z.literal("accept"), z.literal("close"), z.literal("reopen"), z.literal("promote")]).readonly(),
|
|
@@ -477,6 +487,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema = z.object({
|
|
|
477
487
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
478
488
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
479
489
|
'sequence': z.number().readonly(),
|
|
490
|
+
'occurredAt': z.string().readonly(),
|
|
480
491
|
}).readonly(),
|
|
481
492
|
'task': z.object({
|
|
482
493
|
'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -539,6 +550,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema = z.object({
|
|
|
539
550
|
'occurredAt': z.string().readonly(),
|
|
540
551
|
}).readonly(),
|
|
541
552
|
'mentions': z.array(z.intersection(z.string(), z.unknown())).readonly(),
|
|
553
|
+
'occurredAt': z.string().readonly(),
|
|
542
554
|
}), z.object({
|
|
543
555
|
'kind': z.literal("activity").readonly(),
|
|
544
556
|
'sequence': z.number().readonly(),
|
|
@@ -569,6 +581,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema = z.object({
|
|
|
569
581
|
'actor': z.intersection(z.string(), z.unknown()).readonly(),
|
|
570
582
|
'sequence': z.number().readonly(),
|
|
571
583
|
})]).readonly(),
|
|
584
|
+
'occurredAt': z.string().readonly(),
|
|
572
585
|
})]).readonly(),
|
|
573
586
|
'unread': z.boolean().readonly(),
|
|
574
587
|
'direct': z.boolean().readonly(),
|
|
@@ -646,6 +659,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_result$schema = z.o
|
|
|
646
659
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
647
660
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
648
661
|
'sequence': z.number().readonly(),
|
|
662
|
+
'occurredAt': z.string().readonly(),
|
|
649
663
|
}).readonly(),
|
|
650
664
|
'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
651
665
|
'memberId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -711,6 +725,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_reply_result$schema = z.union([z.object
|
|
|
711
725
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
712
726
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
713
727
|
'sequence': z.number().readonly(),
|
|
728
|
+
'occurredAt': z.string().readonly(),
|
|
714
729
|
}).readonly(),
|
|
715
730
|
'message': z.object({
|
|
716
731
|
'messageRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -783,6 +798,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_sendMessage_result$schema = z.union([z.
|
|
|
783
798
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
784
799
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
785
800
|
'sequence': z.number().readonly(),
|
|
801
|
+
'occurredAt': z.string().readonly(),
|
|
786
802
|
}).readonly(),
|
|
787
803
|
'message': z.object({
|
|
788
804
|
'messageRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -911,6 +927,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema = z.object(
|
|
|
911
927
|
'occurredAt': z.string().readonly(),
|
|
912
928
|
}).readonly(),
|
|
913
929
|
'mentions': z.array(z.intersection(z.string(), z.unknown())).readonly(),
|
|
930
|
+
'occurredAt': z.string().readonly(),
|
|
914
931
|
}), z.object({
|
|
915
932
|
'kind': z.literal("activity").readonly(),
|
|
916
933
|
'sequence': z.number().readonly(),
|
|
@@ -941,6 +958,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema = z.object(
|
|
|
941
958
|
'actor': z.intersection(z.string(), z.unknown()).readonly(),
|
|
942
959
|
'sequence': z.number().readonly(),
|
|
943
960
|
})]).readonly(),
|
|
961
|
+
'occurredAt': z.string().readonly(),
|
|
944
962
|
})])).readonly(),
|
|
945
963
|
'cursor': z.number().readonly(),
|
|
946
964
|
'hasMore': z.boolean().readonly(),
|
|
@@ -973,6 +991,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_updateChannel_result$schema = z.object(
|
|
|
973
991
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
974
992
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
975
993
|
'sequence': z.number().readonly(),
|
|
994
|
+
'occurredAt': z.string().readonly(),
|
|
976
995
|
}).readonly(),
|
|
977
996
|
'channel': z.object({
|
|
978
997
|
'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -1007,6 +1026,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_updateMember_result$schema = z.object({
|
|
|
1007
1026
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
1008
1027
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
1009
1028
|
'sequence': z.number().readonly(),
|
|
1029
|
+
'occurredAt': z.string().readonly(),
|
|
1010
1030
|
}).readonly(),
|
|
1011
1031
|
'status': z.object({
|
|
1012
1032
|
'member': z.object({
|
|
@@ -1114,6 +1134,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_view_result$schema = z.object({
|
|
|
1114
1134
|
}).readonly(),
|
|
1115
1135
|
'taskNumber': z.number().readonly().optional(),
|
|
1116
1136
|
'messageCount': z.number().readonly(),
|
|
1137
|
+
'lastActivityAt': z.string().readonly(),
|
|
1117
1138
|
})).readonly(),
|
|
1118
1139
|
'claims': z.array(z.object({
|
|
1119
1140
|
'claimRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -1184,7 +1205,7 @@ export const TYPERT = {
|
|
|
1184
1205
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamMemberResult',
|
|
1185
1206
|
schema: _wowyuarm_dsh_agent_team_agentTeam_addMember_result$schema,
|
|
1186
1207
|
},
|
|
1187
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1208
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":653,"column":9},
|
|
1188
1209
|
},
|
|
1189
1210
|
{
|
|
1190
1211
|
id: '@wowyuarm/dsh-agent-team#agentTeam/archiveChannel',
|
|
@@ -1209,7 +1230,7 @@ export const TYPERT = {
|
|
|
1209
1230
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamArchiveChannelResult',
|
|
1210
1231
|
schema: _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_result$schema,
|
|
1211
1232
|
},
|
|
1212
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1233
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":643,"column":9},
|
|
1213
1234
|
},
|
|
1214
1235
|
{
|
|
1215
1236
|
id: '@wowyuarm/dsh-agent-team#agentTeam/archiveMember',
|
|
@@ -1234,7 +1255,7 @@ export const TYPERT = {
|
|
|
1234
1255
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamArchiveMemberResult',
|
|
1235
1256
|
schema: _wowyuarm_dsh_agent_team_agentTeam_archiveMember_result$schema,
|
|
1236
1257
|
},
|
|
1237
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1258
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1024,"column":9},
|
|
1238
1259
|
},
|
|
1239
1260
|
{
|
|
1240
1261
|
id: '@wowyuarm/dsh-agent-team#agentTeam/changeAttention',
|
|
@@ -1259,7 +1280,7 @@ export const TYPERT = {
|
|
|
1259
1280
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadAttentionResult',
|
|
1260
1281
|
schema: _wowyuarm_dsh_agent_team_agentTeam_changeAttention_result$schema,
|
|
1261
1282
|
},
|
|
1262
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1283
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1146,"column":9},
|
|
1263
1284
|
},
|
|
1264
1285
|
{
|
|
1265
1286
|
id: '@wowyuarm/dsh-agent-team#agentTeam/changes',
|
|
@@ -1285,7 +1306,7 @@ export const TYPERT = {
|
|
|
1285
1306
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamChangesResult',
|
|
1286
1307
|
schema: _wowyuarm_dsh_agent_team_agentTeam_changes_result$schema,
|
|
1287
1308
|
},
|
|
1288
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1309
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":575,"column":9},
|
|
1289
1310
|
},
|
|
1290
1311
|
{
|
|
1291
1312
|
id: '@wowyuarm/dsh-agent-team#agentTeam/changeTask',
|
|
@@ -1310,7 +1331,7 @@ export const TYPERT = {
|
|
|
1310
1331
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamTaskResult',
|
|
1311
1332
|
schema: _wowyuarm_dsh_agent_team_agentTeam_changeTask_result$schema,
|
|
1312
1333
|
},
|
|
1313
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1334
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1036,"column":9},
|
|
1314
1335
|
},
|
|
1315
1336
|
{
|
|
1316
1337
|
id: '@wowyuarm/dsh-agent-team#agentTeam/clearMemberContext',
|
|
@@ -1335,7 +1356,7 @@ export const TYPERT = {
|
|
|
1335
1356
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamClearMemberContextResult',
|
|
1336
1357
|
schema: _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_result$schema,
|
|
1337
1358
|
},
|
|
1338
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1359
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":752,"column":9},
|
|
1339
1360
|
},
|
|
1340
1361
|
{
|
|
1341
1362
|
id: '@wowyuarm/dsh-agent-team#agentTeam/createChannel',
|
|
@@ -1360,7 +1381,7 @@ export const TYPERT = {
|
|
|
1360
1381
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamCreateChannelResult',
|
|
1361
1382
|
schema: _wowyuarm_dsh_agent_team_agentTeam_createChannel_result$schema,
|
|
1362
1383
|
},
|
|
1363
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1384
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":616,"column":9},
|
|
1364
1385
|
},
|
|
1365
1386
|
{
|
|
1366
1387
|
id: '@wowyuarm/dsh-agent-team#agentTeam/getAttachment',
|
|
@@ -1385,7 +1406,7 @@ export const TYPERT = {
|
|
|
1385
1406
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamGetAttachmentResult',
|
|
1386
1407
|
schema: _wowyuarm_dsh_agent_team_agentTeam_getAttachment_result$schema,
|
|
1387
1408
|
},
|
|
1388
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1409
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1132,"column":9},
|
|
1389
1410
|
},
|
|
1390
1411
|
{
|
|
1391
1412
|
id: '@wowyuarm/dsh-agent-team#agentTeam/inbox',
|
|
@@ -1410,7 +1431,7 @@ export const TYPERT = {
|
|
|
1410
1431
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamInbox',
|
|
1411
1432
|
schema: _wowyuarm_dsh_agent_team_agentTeam_inbox_result$schema,
|
|
1412
1433
|
},
|
|
1413
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1434
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1155,"column":3},
|
|
1414
1435
|
},
|
|
1415
1436
|
{
|
|
1416
1437
|
id: '@wowyuarm/dsh-agent-team#agentTeam/joinChannel',
|
|
@@ -1435,7 +1456,7 @@ export const TYPERT = {
|
|
|
1435
1456
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamJoinChannelResult',
|
|
1436
1457
|
schema: _wowyuarm_dsh_agent_team_agentTeam_joinChannel_result$schema,
|
|
1437
1458
|
},
|
|
1438
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1459
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1056,"column":9},
|
|
1439
1460
|
},
|
|
1440
1461
|
{
|
|
1441
1462
|
id: '@wowyuarm/dsh-agent-team#agentTeam/members',
|
|
@@ -1461,7 +1482,7 @@ export const TYPERT = {
|
|
|
1461
1482
|
typeSymbol: '@wowyuarm/dsh-agent-team#agentTeam/members:result',
|
|
1462
1483
|
schema: _wowyuarm_dsh_agent_team_agentTeam_members_result$schema,
|
|
1463
1484
|
},
|
|
1464
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1485
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":566,"column":3},
|
|
1465
1486
|
},
|
|
1466
1487
|
{
|
|
1467
1488
|
id: '@wowyuarm/dsh-agent-team#agentTeam/promoteThread',
|
|
@@ -1486,7 +1507,7 @@ export const TYPERT = {
|
|
|
1486
1507
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPromoteThreadResult',
|
|
1487
1508
|
schema: _wowyuarm_dsh_agent_team_agentTeam_promoteThread_result$schema,
|
|
1488
1509
|
},
|
|
1489
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1510
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1046,"column":9},
|
|
1490
1511
|
},
|
|
1491
1512
|
{
|
|
1492
1513
|
id: '@wowyuarm/dsh-agent-team#agentTeam/putAttachment',
|
|
@@ -1511,7 +1532,7 @@ export const TYPERT = {
|
|
|
1511
1532
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPutAttachmentResult',
|
|
1512
1533
|
schema: _wowyuarm_dsh_agent_team_agentTeam_putAttachment_result$schema,
|
|
1513
1534
|
},
|
|
1514
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1535
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1119,"column":9},
|
|
1515
1536
|
},
|
|
1516
1537
|
{
|
|
1517
1538
|
id: '@wowyuarm/dsh-agent-team#agentTeam/readThread',
|
|
@@ -1536,7 +1557,7 @@ export const TYPERT = {
|
|
|
1536
1557
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadReadResult',
|
|
1537
1558
|
schema: _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema,
|
|
1538
1559
|
},
|
|
1539
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1560
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1162,"column":9},
|
|
1540
1561
|
},
|
|
1541
1562
|
{
|
|
1542
1563
|
id: '@wowyuarm/dsh-agent-team#agentTeam/recoverMember',
|
|
@@ -1561,7 +1582,7 @@ export const TYPERT = {
|
|
|
1561
1582
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRecoverMemberResult',
|
|
1562
1583
|
schema: _wowyuarm_dsh_agent_team_agentTeam_recoverMember_result$schema,
|
|
1563
1584
|
},
|
|
1564
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1585
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":713,"column":9},
|
|
1565
1586
|
},
|
|
1566
1587
|
{
|
|
1567
1588
|
id: '@wowyuarm/dsh-agent-team#agentTeam/removeChannelMember',
|
|
@@ -1586,7 +1607,7 @@ export const TYPERT = {
|
|
|
1586
1607
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRemoveChannelMemberResult',
|
|
1587
1608
|
schema: _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_result$schema,
|
|
1588
1609
|
},
|
|
1589
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1610
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1067,"column":9},
|
|
1590
1611
|
},
|
|
1591
1612
|
{
|
|
1592
1613
|
id: '@wowyuarm/dsh-agent-team#agentTeam/reply',
|
|
@@ -1611,7 +1632,7 @@ export const TYPERT = {
|
|
|
1611
1632
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamReplyResult',
|
|
1612
1633
|
schema: _wowyuarm_dsh_agent_team_agentTeam_reply_result$schema,
|
|
1613
1634
|
},
|
|
1614
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1635
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1140,"column":9},
|
|
1615
1636
|
},
|
|
1616
1637
|
{
|
|
1617
1638
|
id: '@wowyuarm/dsh-agent-team#agentTeam/resolveTaskRefs',
|
|
@@ -1636,7 +1657,7 @@ export const TYPERT = {
|
|
|
1636
1657
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamResolveTaskRefsResult',
|
|
1637
1658
|
schema: _wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_result$schema,
|
|
1638
1659
|
},
|
|
1639
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1660
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":553,"column":3},
|
|
1640
1661
|
},
|
|
1641
1662
|
{
|
|
1642
1663
|
id: '@wowyuarm/dsh-agent-team#agentTeam/sendMessage',
|
|
@@ -1661,7 +1682,7 @@ export const TYPERT = {
|
|
|
1661
1682
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamSendMessageResult',
|
|
1662
1683
|
schema: _wowyuarm_dsh_agent_team_agentTeam_sendMessage_result$schema,
|
|
1663
1684
|
},
|
|
1664
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1685
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1076,"column":9},
|
|
1665
1686
|
},
|
|
1666
1687
|
{
|
|
1667
1688
|
id: '@wowyuarm/dsh-agent-team#agentTeam/threadHistory',
|
|
@@ -1686,7 +1707,7 @@ export const TYPERT = {
|
|
|
1686
1707
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadHistory',
|
|
1687
1708
|
schema: _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema,
|
|
1688
1709
|
},
|
|
1689
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1710
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1178,"column":3},
|
|
1690
1711
|
},
|
|
1691
1712
|
{
|
|
1692
1713
|
id: '@wowyuarm/dsh-agent-team#agentTeam/threadObservations',
|
|
@@ -1711,7 +1732,7 @@ export const TYPERT = {
|
|
|
1711
1732
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadObservations',
|
|
1712
1733
|
schema: _wowyuarm_dsh_agent_team_agentTeam_threadObservations_result$schema,
|
|
1713
1734
|
},
|
|
1714
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1735
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1171,"column":3},
|
|
1715
1736
|
},
|
|
1716
1737
|
{
|
|
1717
1738
|
id: '@wowyuarm/dsh-agent-team#agentTeam/updateChannel',
|
|
@@ -1736,7 +1757,7 @@ export const TYPERT = {
|
|
|
1736
1757
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamUpdateChannelResult',
|
|
1737
1758
|
schema: _wowyuarm_dsh_agent_team_agentTeam_updateChannel_result$schema,
|
|
1738
1759
|
},
|
|
1739
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1760
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":628,"column":9},
|
|
1740
1761
|
},
|
|
1741
1762
|
{
|
|
1742
1763
|
id: '@wowyuarm/dsh-agent-team#agentTeam/updateMember',
|
|
@@ -1761,7 +1782,7 @@ export const TYPERT = {
|
|
|
1761
1782
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamMemberResult',
|
|
1762
1783
|
schema: _wowyuarm_dsh_agent_team_agentTeam_updateMember_result$schema,
|
|
1763
1784
|
},
|
|
1764
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1785
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":964,"column":9},
|
|
1765
1786
|
},
|
|
1766
1787
|
{
|
|
1767
1788
|
id: '@wowyuarm/dsh-agent-team#agentTeam/view',
|
|
@@ -1786,7 +1807,7 @@ export const TYPERT = {
|
|
|
1786
1807
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamView',
|
|
1787
1808
|
schema: _wowyuarm_dsh_agent_team_agentTeam_view_result$schema,
|
|
1788
1809
|
},
|
|
1789
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1810
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1185,"column":3},
|
|
1790
1811
|
},
|
|
1791
1812
|
],
|
|
1792
1813
|
model: {
|
|
@@ -2278,14 +2299,6 @@ export const TYPERT = {
|
|
|
2278
2299
|
"name": "AgentTeamContextCheckpointRef",
|
|
2279
2300
|
"declaration": "export type AgentTeamContextCheckpointRef = Branded<'AgentTeamContextCheckpointRef'>;"
|
|
2280
2301
|
},
|
|
2281
|
-
{
|
|
2282
|
-
"name": "AgentTeamContextContinuationSource",
|
|
2283
|
-
"declaration": "export interface AgentTeamContextContinuationSource {\n readonly kind: 'agent-team-context-continuation';\n readonly form: 'notice';\n readonly summary: string;\n readonly checkpointRef: string;\n readonly version: 1;\n}"
|
|
2284
|
-
},
|
|
2285
|
-
{
|
|
2286
|
-
"name": "AgentTeamContextHandoffSource",
|
|
2287
|
-
"declaration": "export interface AgentTeamContextHandoffSource {\n readonly kind: 'agent-team-context-handoff';\n readonly form: 'snapshot';\n readonly version: 1;\n readonly previousSessionId: string;\n readonly newSessionId: string;\n readonly trigger: 'model' | 'pressure';\n readonly handoffEventSeq: number;\n readonly checkpointRef?: string;\n readonly relatedFiles?: readonly string[];\n readonly sections: readonly ContextSnapshotSection[];\n}"
|
|
2288
|
-
},
|
|
2289
2302
|
{
|
|
2290
2303
|
"name": "AgentTeamCreateChannelRequest",
|
|
2291
2304
|
"declaration": "export interface AgentTeamCreateChannelRequest {\n readonly requestId: AgentTeamRequestId;\n readonly workspaceId: WorkspaceId;\n readonly name: string;\n readonly description: string;\n readonly memberIds?: readonly AgentTeamMemberId[];\n}"
|
|
@@ -2324,7 +2337,7 @@ export const TYPERT = {
|
|
|
2324
2337
|
},
|
|
2325
2338
|
{
|
|
2326
2339
|
"name": "AgentTeamInboxItem",
|
|
2327
|
-
"declaration": "export interface AgentTeamInboxItem {\n readonly channelRef: AgentTeamChannelRef;\n readonly task?: AgentTeamTask;\n readonly thread: AgentTeamThread;\n readonly unreadCount: number;\n readonly directCount: number;\n readonly newestSequence: number;\n readonly attention?: AgentTeamThreadAttention;\n}"
|
|
2340
|
+
"declaration": "export interface AgentTeamInboxItem {\n readonly channelRef: AgentTeamChannelRef;\n readonly task?: AgentTeamTask;\n readonly thread: AgentTeamThread;\n readonly unreadCount: number;\n readonly directCount: number;\n readonly newestSequence: number;\n readonly newestOccurredAt: string;\n readonly attention?: AgentTeamThreadAttention;\n}"
|
|
2328
2341
|
},
|
|
2329
2342
|
{
|
|
2330
2343
|
"name": "AgentTeamInboxRequest",
|
|
@@ -2388,7 +2401,7 @@ export const TYPERT = {
|
|
|
2388
2401
|
},
|
|
2389
2402
|
{
|
|
2390
2403
|
"name": "AgentTeamOperationReceipt",
|
|
2391
|
-
"declaration": "export interface AgentTeamOperationReceipt {\n readonly operationId: AgentTeamOperationId;\n readonly requestId: AgentTeamRequestId;\n readonly sequence: number;\n}"
|
|
2404
|
+
"declaration": "export interface AgentTeamOperationReceipt {\n readonly operationId: AgentTeamOperationId;\n readonly requestId: AgentTeamRequestId;\n readonly sequence: number;\n readonly occurredAt: string;\n}"
|
|
2392
2405
|
},
|
|
2393
2406
|
{
|
|
2394
2407
|
"name": "AgentTeamPromoteThreadCommittedResult",
|
|
@@ -2544,7 +2557,7 @@ export const TYPERT = {
|
|
|
2544
2557
|
},
|
|
2545
2558
|
{
|
|
2546
2559
|
"name": "AgentTeamThreadFact",
|
|
2547
|
-
"declaration": "export type AgentTeamThreadFact = { readonly kind: 'message'; readonly sequence: number; readonly message: AgentTeamMessage; readonly mentions: readonly AgentTeamMemberId[]; } | { readonly kind: 'activity'; readonly sequence: number; readonly activity: AgentTeamActivity; };"
|
|
2560
|
+
"declaration": "export type AgentTeamThreadFact = { readonly kind: 'message'; readonly sequence: number; readonly message: AgentTeamMessage; readonly mentions: readonly AgentTeamMemberId[]; readonly occurredAt: string; } | { readonly kind: 'activity'; readonly sequence: number; readonly activity: AgentTeamActivity; readonly occurredAt: string; };"
|
|
2548
2561
|
},
|
|
2549
2562
|
{
|
|
2550
2563
|
"name": "AgentTeamThreadHistory",
|
|
@@ -2612,7 +2625,7 @@ export const TYPERT = {
|
|
|
2612
2625
|
},
|
|
2613
2626
|
{
|
|
2614
2627
|
"name": "AgentTeamViewItem",
|
|
2615
|
-
"declaration": "export interface AgentTeamViewItem {\n readonly message: AgentTeamMessage;\n readonly mentions: readonly AgentTeamMemberId[];\n readonly task?: AgentTeamTask;\n readonly thread: AgentTeamThread;\n readonly taskNumber?: number;\n readonly messageCount: number;\n}"
|
|
2628
|
+
"declaration": "export interface AgentTeamViewItem {\n readonly message: AgentTeamMessage;\n readonly mentions: readonly AgentTeamMemberId[];\n readonly task?: AgentTeamTask;\n readonly thread: AgentTeamThread;\n readonly taskNumber?: number;\n readonly messageCount: number;\n readonly lastActivityAt: string;\n}"
|
|
2616
2629
|
},
|
|
2617
2630
|
{
|
|
2618
2631
|
"name": "AgentTeamViewRequest",
|
|
@@ -2638,6 +2651,10 @@ export const TYPERT = {
|
|
|
2638
2651
|
"name": "AssistantProvenance",
|
|
2639
2652
|
"declaration": "export interface AssistantProvenance {\n provider: string;\n model: string;\n replayState?: unknown;\n}"
|
|
2640
2653
|
},
|
|
2654
|
+
{
|
|
2655
|
+
"name": "AssistantStreamRecord",
|
|
2656
|
+
"declaration": "export type AssistantStreamRecord = { readonly type: 'text-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'reasoning-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'tool-call-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly id: ToolCallId; readonly name?: string; readonly args: readonly string[]; } | { readonly type: 'chunk'; readonly time: number; readonly chunk: StreamChunk; };"
|
|
2657
|
+
},
|
|
2641
2658
|
{
|
|
2642
2659
|
"name": "AttachmentId",
|
|
2643
2660
|
"declaration": "export type AttachmentId = Branded<'AttachmentId'>;"
|
|
@@ -2668,7 +2685,7 @@ export const TYPERT = {
|
|
|
2668
2685
|
},
|
|
2669
2686
|
{
|
|
2670
2687
|
"name": "ContentBlockMap",
|
|
2671
|
-
"declaration": "export interface ContentBlockMap {\n text: TextBlock;\n reasoning: ReasoningBlock;\n image: ImageBlock;\n 'tool-call': ToolCallBlock;\n 'tool-result': ToolResultBlock;\n}"
|
|
2688
|
+
"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}"
|
|
2672
2689
|
},
|
|
2673
2690
|
{
|
|
2674
2691
|
"name": "ContentBlockType",
|
|
@@ -2684,7 +2701,15 @@ export const TYPERT = {
|
|
|
2684
2701
|
},
|
|
2685
2702
|
{
|
|
2686
2703
|
"name": "EpochHeader",
|
|
2687
|
-
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n
|
|
2704
|
+
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n}"
|
|
2705
|
+
},
|
|
2706
|
+
{
|
|
2707
|
+
"name": "FileAttachmentRef",
|
|
2708
|
+
"declaration": "export interface FileAttachmentRef {\n attachmentId: AttachmentId;\n name: string;\n bytes: number;\n}"
|
|
2709
|
+
},
|
|
2710
|
+
{
|
|
2711
|
+
"name": "FileBlock",
|
|
2712
|
+
"declaration": "export interface FileBlock {\n type: 'file';\n attachment: FileAttachmentRef;\n}"
|
|
2688
2713
|
},
|
|
2689
2714
|
{
|
|
2690
2715
|
"name": "FinishReason",
|
|
@@ -2708,7 +2733,7 @@ export const TYPERT = {
|
|
|
2708
2733
|
},
|
|
2709
2734
|
{
|
|
2710
2735
|
"name": "Inbox",
|
|
2711
|
-
"declaration": "export
|
|
2736
|
+
"declaration": "export interface Inbox {\n readonly nextTurn: readonly UserMessage[];\n readonly nextStep: readonly UserMessage[];\n clear(): void;\n append(target: InboxTarget, message: UserMessage): void;\n prepend(target: InboxTarget, message: UserMessage): void;\n replace(messageId: MessageId, newMessage: UserMessage): boolean;\n remove(messageId: MessageId): boolean;\n splice(target: InboxTarget, start: number, deleteCount: number, inserted: UserMessage[]): UserMessage[];\n}"
|
|
2712
2737
|
},
|
|
2713
2738
|
{
|
|
2714
2739
|
"name": "InboxTarget",
|
|
@@ -2744,7 +2769,7 @@ export const TYPERT = {
|
|
|
2744
2769
|
},
|
|
2745
2770
|
{
|
|
2746
2771
|
"name": "MessageSourceMap",
|
|
2747
|
-
"declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n plugin: { kind: 'plugin'; plugin: string; } & ContextFormed;\n model: ModelMessageSource;\n tool: ToolMessageSource;\n '
|
|
2772
|
+
"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}"
|
|
2748
2773
|
},
|
|
2749
2774
|
{
|
|
2750
2775
|
"name": "ModelMessageSource",
|
|
@@ -2776,7 +2801,7 @@ export const TYPERT = {
|
|
|
2776
2801
|
},
|
|
2777
2802
|
{
|
|
2778
2803
|
"name": "RequestContext",
|
|
2779
|
-
"declaration": "export interface RequestContext {\n provider: string;\n model: string;\n contextWindow?: number;\n}"
|
|
2804
|
+
"declaration": "export interface RequestContext {\n provider: string;\n model: string;\n contextWindow?: number;\n systemPromptUpdate?: SystemPromptUpdate;\n}"
|
|
2780
2805
|
},
|
|
2781
2806
|
{
|
|
2782
2807
|
"name": "RequestHeaderReason",
|
|
@@ -2788,15 +2813,15 @@ export const TYPERT = {
|
|
|
2788
2813
|
},
|
|
2789
2814
|
{
|
|
2790
2815
|
"name": "Session",
|
|
2791
|
-
"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] : []): SessionEvent<T>;\n requestHeader(): EpochHeader | undefined;\n requestContext(): RequestContext | undefined;\n deriveMessages(): Message[];\n deriveEventMessage(event: SessionEvent): Message | null;\n}"
|
|
2816
|
+
"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}"
|
|
2792
2817
|
},
|
|
2793
2818
|
{
|
|
2794
2819
|
"name": "SessionEvent",
|
|
2795
|
-
"declaration": "export type SessionEvent<T extends SessionEventType = SessionEventType> = { [K in SessionEventType]: { type: K; seq: SessionSeq; time: number; data: SessionEventMap[K]; ignorable?: true; } & (K extends SurfaceEventType ? {
|
|
2820
|
+
"declaration": "export type SessionEvent<T extends SessionEventType = SessionEventType> = { [K in SessionEventType]: { type: K; seq: SessionSeq; time: number; data: SessionEventMap[K]; ignorable?: true; } & (K extends SurfaceEventType ? SurfaceIntent<K> : { surfaceOp?: never; sourceEventSeqs?: never; }) }[T];"
|
|
2796
2821
|
},
|
|
2797
2822
|
{
|
|
2798
2823
|
"name": "SessionEventMap",
|
|
2799
|
-
"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 '
|
|
2824
|
+
"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}"
|
|
2800
2825
|
},
|
|
2801
2826
|
{
|
|
2802
2827
|
"name": "SessionEventType",
|
|
@@ -2804,7 +2829,7 @@ export const TYPERT = {
|
|
|
2804
2829
|
},
|
|
2805
2830
|
{
|
|
2806
2831
|
"name": "SessionHeader",
|
|
2807
|
-
"declaration": "export interface SessionHeader {\n readonly version:
|
|
2832
|
+
"declaration": "export interface SessionHeader {\n readonly version: typeof SESSION_FORMAT_VERSION;\n readonly id: SessionId;\n readonly createdAt: number;\n readonly cwd?: string;\n readonly parentSession?: SessionId;\n readonly isSeeded: boolean;\n readonly origin?: 'subagent';\n readonly delegationDepth?: number;\n readonly agentPreset?: string;\n}"
|
|
2808
2833
|
},
|
|
2809
2834
|
{
|
|
2810
2835
|
"name": "SessionId",
|
|
@@ -2832,15 +2857,23 @@ export const TYPERT = {
|
|
|
2832
2857
|
},
|
|
2833
2858
|
{
|
|
2834
2859
|
"name": "SurfaceEventType",
|
|
2835
|
-
"declaration": "export type SurfaceEventType = 'user/message' | 'assistant/message' | 'tool/result';"
|
|
2860
|
+
"declaration": "export type SurfaceEventType = 'system/message' | 'user/message' | 'assistant/message' | 'tool/result';"
|
|
2836
2861
|
},
|
|
2837
2862
|
{
|
|
2838
2863
|
"name": "SurfaceIntent",
|
|
2839
|
-
"declaration": "export
|
|
2864
|
+
"declaration": "export type SurfaceIntent<T extends SurfaceEventType = SurfaceEventType> = { surfaceOp: SurfaceOp; } & (T extends 'assistant/message' ? { sourceEventSeqs?: never; } : { sourceEventSeqs?: SessionSeq[]; });"
|
|
2840
2865
|
},
|
|
2841
2866
|
{
|
|
2842
2867
|
"name": "SurfaceOp",
|
|
2843
|
-
"declaration": "export type SurfaceOp = 'append' | { op: 'replace';
|
|
2868
|
+
"declaration": "export type SurfaceOp = 'append' | { op: 'replace'; startSeq: SessionSeq; endSeq: SessionSeq; };"
|
|
2869
|
+
},
|
|
2870
|
+
{
|
|
2871
|
+
"name": "SystemMessage",
|
|
2872
|
+
"declaration": "export interface SystemMessage extends Message {\n readonly role: 'system';\n readonly source: MessageSourceMap['plugin'];\n}"
|
|
2873
|
+
},
|
|
2874
|
+
{
|
|
2875
|
+
"name": "SystemPromptUpdate",
|
|
2876
|
+
"declaration": "export type SystemPromptUpdate = 'in-history';"
|
|
2844
2877
|
},
|
|
2845
2878
|
{
|
|
2846
2879
|
"name": "TextBlock",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typert.remote-client.d.ts","names":["addMember","archiveChannel","archiveMember","changeAttention","changes","changeTask","clearMemberContext","createChannel","getAttachment","inbox","joinChannel","members","promoteThread","putAttachment","readThread","recoverMember","removeChannelMember","reply","resolveTaskRefs","sendMessage","threadHistory","threadObservations","updateChannel","updateMember","view"],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"typert.remote-client.d.ts","names":["addMember","archiveChannel","archiveMember","changeAttention","changes","changeTask","clearMemberContext","createChannel","getAttachment","inbox","joinChannel","members","promoteThread","putAttachment","readThread","recoverMember","removeChannelMember","reply","resolveTaskRefs","sendMessage","threadHistory","threadObservations","updateChannel","updateMember","view"],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;IA4oBQA,S;IAVAC,c;IA6XAC,a;IA0HAC,e;IA3jBAC,O;IA6cAC,U;IA5RAC,kB;IAxIAC,a;IAogBAC,a;IAuBNC,K;IAnGMC,W;IA1eNC,O;IAgeMC,a;IAyEAC,a;IA2CAC,U;IAjcAC,a;IAkWAC,mB;IAyEAC,K;IA3kBNC,e;IA2gBMC,W;IAsGNC,a;IAPAC,kB;IA/hBMC,a;IAgVAC,Y;IA6NNC,I;;;IAphBMxB,qB;IAVAC,0B;IA6XAC,yB;IA0HAC,2B;IA3jBAC,mB;IA6cAC,sB;IA5RAC,8B;IAxIAC,yB;IAogBAC,yB;IAuBNC,iB;IAnGMC,uB;IA1eNC,mB;IAgeMC,yB;IAyEAC,yB;IA2CAC,sB;IAjcAC,yB;IAkWAC,+B;IAyEAC,iB;IA3kBNC,2B;IA2gBMC,uB;IAsGNC,yB;IAPAC,8B;IA/hBMC,yB;IAgVAC,wB;IA6NNC,gB","ignoreList":[]}
|