@wowyuarm/dsh-agent-team 0.1.8 → 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 +54 -44
- package/packages/agent-team/README.md +7 -5
- package/packages/agent-team/README.zh.md +7 -4
- package/packages/agent-team/lib/attachments.js +14 -4
- package/packages/agent-team/lib/context-management.js +382 -0
- package/packages/agent-team/lib/context-projection.js +578 -0
- package/packages/agent-team/lib/context-source.js +212 -0
- package/packages/agent-team/lib/index.js +1272 -76
- package/packages/agent-team/lib/ledger.js +333 -44
- package/packages/agent-team/lib/member-context.js +6 -2
- package/packages/agent-team/lib/member-runtime.js +159 -4
- package/packages/agent-team/lib/member-time-context.js +126 -0
- package/packages/agent-team/lib/pressure-policy.js +199 -0
- 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 +21 -2
- package/packages/agent-team/lib/time-format.js +56 -0
- package/packages/agent-team/lib/typert.host.js +168 -54
- package/packages/agent-team/lib/typert.remote-client.d.ts.map +1 -1
- package/packages/agent-team/lib/typert.remote-client.js +59 -25
- package/packages/agent-team/lib/types/attachments.d.ts +1 -1
- package/packages/agent-team/lib/types/attachments.d.ts.map +1 -1
- package/packages/agent-team/lib/types/context-management.d.ts +147 -0
- package/packages/agent-team/lib/types/context-management.d.ts.map +1 -0
- package/packages/agent-team/lib/types/context-projection.d.ts +219 -0
- package/packages/agent-team/lib/types/context-projection.d.ts.map +1 -0
- package/packages/agent-team/lib/types/context-source.d.ts +117 -0
- package/packages/agent-team/lib/types/context-source.d.ts.map +1 -0
- package/packages/agent-team/lib/types/index.d.ts +300 -2
- package/packages/agent-team/lib/types/index.d.ts.map +1 -1
- package/packages/agent-team/lib/types/ledger.d.ts +119 -6
- package/packages/agent-team/lib/types/ledger.d.ts.map +1 -1
- package/packages/agent-team/lib/types/member-context.d.ts.map +1 -1
- package/packages/agent-team/lib/types/member-runtime.d.ts +30 -2
- package/packages/agent-team/lib/types/member-runtime.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 +106 -0
- package/packages/agent-team/lib/types/pressure-policy.d.ts.map +1 -0
- 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 +22 -1
- package/packages/agent-team/lib/types/types/entities.d.ts.map +1 -1
- package/packages/agent-team/lib/types/types/operations.d.ts +38 -3
- package/packages/agent-team/lib/types/types/operations.d.ts.map +1 -1
- package/packages/agent-team/lib/types/types/requests-results.d.ts +58 -1
- package/packages/agent-team/lib/types/types/requests-results.d.ts.map +1 -1
- package/packages/agent-team/preset/team-member/agent.cordis.yml +27 -4
- package/packages/client-agent-team/lib/client.js +369 -352
- package/packages/client-agent-team/lib/client.js.map +1 -1
- package/packages/client-agent-team/lib/types/client/TeamAgentsPanel.d.ts +1 -2
- package/packages/client-agent-team/lib/types/client/TeamAgentsPanel.d.ts.map +1 -1
- package/packages/client-agent-team/lib/types/client/TeamAgentsPanel.js +61 -41
- 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/TeamWorkspaceBrowser.d.ts +1 -1
- package/packages/client-agent-team/lib/types/client/TeamWorkspaceBrowser.d.ts.map +1 -1
- package/packages/client-agent-team/lib/types/client/TeamWorkspaceBrowser.js +2 -2
- package/packages/client-agent-team/lib/types/client/index.d.ts.map +1 -1
- package/packages/client-agent-team/lib/types/client/index.js +44 -16
- package/packages/client-agent-team/lib/types/client/locales.d.ts +0 -14
- package/packages/client-agent-team/lib/types/client/locales.d.ts.map +1 -1
- package/packages/client-agent-team/lib/types/client/locales.js +0 -14
- package/packages/client-agent-team/lib/types/client/slots.d.ts +6 -1
- package/packages/client-agent-team/lib/types/client/slots.d.ts.map +1 -1
- package/packages/tool-agent-team/README.md +11 -6
- package/packages/tool-agent-team/README.zh.md +11 -6
- package/packages/tool-agent-team/lib/context-tools.js +179 -0
- package/packages/tool-agent-team/lib/index.js +369 -58
- package/packages/tool-agent-team/lib/types/context-tools.d.ts +16 -0
- package/packages/tool-agent-team/lib/types/context-tools.d.ts.map +1 -0
- package/packages/tool-agent-team/lib/types/index.d.ts.map +1 -1
- package/packages/agent-team/lib/auto-compaction.js +0 -201
- package/packages/agent-team/lib/types/auto-compaction.d.ts +0 -47
- package/packages/agent-team/lib/types/auto-compaction.d.ts.map +0 -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,11 +202,13 @@ 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(),
|
|
204
209
|
'releasedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
|
|
205
210
|
'completedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
|
|
211
|
+
'acceptedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
|
|
206
212
|
'activityRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
207
213
|
'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
208
214
|
'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -254,6 +260,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_result$schema = z.ob
|
|
|
254
260
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
255
261
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
256
262
|
'sequence': z.number().readonly(),
|
|
263
|
+
'occurredAt': z.string().readonly(),
|
|
257
264
|
}).readonly(),
|
|
258
265
|
'status': z.object({
|
|
259
266
|
'member': z.object({
|
|
@@ -300,6 +307,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_createChannel_result$schema = z.object(
|
|
|
300
307
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
301
308
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
302
309
|
'sequence': z.number().readonly(),
|
|
310
|
+
'occurredAt': z.string().readonly(),
|
|
303
311
|
}).readonly(),
|
|
304
312
|
'channel': z.object({
|
|
305
313
|
'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -342,6 +350,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_inbox_result$schema = z.object({
|
|
|
342
350
|
'unreadCount': z.number().readonly(),
|
|
343
351
|
'directCount': z.number().readonly(),
|
|
344
352
|
'newestSequence': z.number().readonly(),
|
|
353
|
+
'newestOccurredAt': z.string().readonly(),
|
|
345
354
|
'attention': z.object({
|
|
346
355
|
'memberId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
347
356
|
'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -363,6 +372,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_joinChannel_result$schema = z.object({
|
|
|
363
372
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
364
373
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
365
374
|
'sequence': z.number().readonly(),
|
|
375
|
+
'occurredAt': z.string().readonly(),
|
|
366
376
|
}).readonly(),
|
|
367
377
|
'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
368
378
|
'memberId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -426,11 +436,13 @@ const _wowyuarm_dsh_agent_team_agentTeam_promoteThread_result$schema = z.union([
|
|
|
426
436
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
427
437
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
428
438
|
'sequence': z.number().readonly(),
|
|
439
|
+
'occurredAt': z.string().readonly(),
|
|
429
440
|
}).readonly(),
|
|
430
441
|
'activity': z.object({
|
|
431
442
|
'kind': z.union([z.literal("accept"), z.literal("close"), z.literal("reopen"), z.literal("promote")]).readonly(),
|
|
432
443
|
'releasedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
|
|
433
444
|
'completedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
|
|
445
|
+
'acceptedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
|
|
434
446
|
'activityRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
435
447
|
'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
436
448
|
'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -475,6 +487,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema = z.object({
|
|
|
475
487
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
476
488
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
477
489
|
'sequence': z.number().readonly(),
|
|
490
|
+
'occurredAt': z.string().readonly(),
|
|
478
491
|
}).readonly(),
|
|
479
492
|
'task': z.object({
|
|
480
493
|
'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -537,6 +550,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema = z.object({
|
|
|
537
550
|
'occurredAt': z.string().readonly(),
|
|
538
551
|
}).readonly(),
|
|
539
552
|
'mentions': z.array(z.intersection(z.string(), z.unknown())).readonly(),
|
|
553
|
+
'occurredAt': z.string().readonly(),
|
|
540
554
|
}), z.object({
|
|
541
555
|
'kind': z.literal("activity").readonly(),
|
|
542
556
|
'sequence': z.number().readonly(),
|
|
@@ -544,6 +558,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema = z.object({
|
|
|
544
558
|
'kind': z.union([z.literal("accept"), z.literal("close"), z.literal("reopen"), z.literal("promote")]).readonly(),
|
|
545
559
|
'releasedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
|
|
546
560
|
'completedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
|
|
561
|
+
'acceptedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
|
|
547
562
|
'activityRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
548
563
|
'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
549
564
|
'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -566,6 +581,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema = z.object({
|
|
|
566
581
|
'actor': z.intersection(z.string(), z.unknown()).readonly(),
|
|
567
582
|
'sequence': z.number().readonly(),
|
|
568
583
|
})]).readonly(),
|
|
584
|
+
'occurredAt': z.string().readonly(),
|
|
569
585
|
})]).readonly(),
|
|
570
586
|
'unread': z.boolean().readonly(),
|
|
571
587
|
'direct': z.boolean().readonly(),
|
|
@@ -584,6 +600,14 @@ const _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema = z.object({
|
|
|
584
600
|
'messageRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
585
601
|
'sequence': z.number().readonly(),
|
|
586
602
|
})).readonly(),
|
|
603
|
+
'contextAdvice': z.object({
|
|
604
|
+
'usageTokens': z.union([z.undefined(), z.number()]).readonly().optional(),
|
|
605
|
+
'taskBoundaryThreshold': z.union([z.undefined(), z.number()]).readonly().optional(),
|
|
606
|
+
'handoffAt': z.union([z.undefined(), z.number()]).readonly().optional(),
|
|
607
|
+
'hardLimit': z.union([z.undefined(), z.number()]).readonly().optional(),
|
|
608
|
+
'action': z.union([z.literal("unavailable"), z.literal("keep"), z.literal("rollover"), z.literal("handoff-now")]).readonly(),
|
|
609
|
+
'guidance': z.string().readonly(),
|
|
610
|
+
}).readonly().optional(),
|
|
587
611
|
})
|
|
588
612
|
const _wowyuarm_dsh_agent_team_agentTeam_recoverMember_parameter_0$schema = z.object({
|
|
589
613
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -635,6 +659,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_result$schema = z.o
|
|
|
635
659
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
636
660
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
637
661
|
'sequence': z.number().readonly(),
|
|
662
|
+
'occurredAt': z.string().readonly(),
|
|
638
663
|
}).readonly(),
|
|
639
664
|
'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
640
665
|
'memberId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -700,6 +725,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_reply_result$schema = z.union([z.object
|
|
|
700
725
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
701
726
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
702
727
|
'sequence': z.number().readonly(),
|
|
728
|
+
'occurredAt': z.string().readonly(),
|
|
703
729
|
}).readonly(),
|
|
704
730
|
'message': z.object({
|
|
705
731
|
'messageRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -772,6 +798,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_sendMessage_result$schema = z.union([z.
|
|
|
772
798
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
773
799
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
774
800
|
'sequence': z.number().readonly(),
|
|
801
|
+
'occurredAt': z.string().readonly(),
|
|
775
802
|
}).readonly(),
|
|
776
803
|
'message': z.object({
|
|
777
804
|
'messageRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -900,6 +927,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema = z.object(
|
|
|
900
927
|
'occurredAt': z.string().readonly(),
|
|
901
928
|
}).readonly(),
|
|
902
929
|
'mentions': z.array(z.intersection(z.string(), z.unknown())).readonly(),
|
|
930
|
+
'occurredAt': z.string().readonly(),
|
|
903
931
|
}), z.object({
|
|
904
932
|
'kind': z.literal("activity").readonly(),
|
|
905
933
|
'sequence': z.number().readonly(),
|
|
@@ -907,6 +935,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema = z.object(
|
|
|
907
935
|
'kind': z.union([z.literal("accept"), z.literal("close"), z.literal("reopen"), z.literal("promote")]).readonly(),
|
|
908
936
|
'releasedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
|
|
909
937
|
'completedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
|
|
938
|
+
'acceptedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
|
|
910
939
|
'activityRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
911
940
|
'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
912
941
|
'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -929,6 +958,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema = z.object(
|
|
|
929
958
|
'actor': z.intersection(z.string(), z.unknown()).readonly(),
|
|
930
959
|
'sequence': z.number().readonly(),
|
|
931
960
|
})]).readonly(),
|
|
961
|
+
'occurredAt': z.string().readonly(),
|
|
932
962
|
})])).readonly(),
|
|
933
963
|
'cursor': z.number().readonly(),
|
|
934
964
|
'hasMore': z.boolean().readonly(),
|
|
@@ -961,6 +991,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_updateChannel_result$schema = z.object(
|
|
|
961
991
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
962
992
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
963
993
|
'sequence': z.number().readonly(),
|
|
994
|
+
'occurredAt': z.string().readonly(),
|
|
964
995
|
}).readonly(),
|
|
965
996
|
'channel': z.object({
|
|
966
997
|
'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -995,6 +1026,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_updateMember_result$schema = z.object({
|
|
|
995
1026
|
'operationId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
996
1027
|
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
997
1028
|
'sequence': z.number().readonly(),
|
|
1029
|
+
'occurredAt': z.string().readonly(),
|
|
998
1030
|
}).readonly(),
|
|
999
1031
|
'status': z.object({
|
|
1000
1032
|
'member': z.object({
|
|
@@ -1102,6 +1134,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_view_result$schema = z.object({
|
|
|
1102
1134
|
}).readonly(),
|
|
1103
1135
|
'taskNumber': z.number().readonly().optional(),
|
|
1104
1136
|
'messageCount': z.number().readonly(),
|
|
1137
|
+
'lastActivityAt': z.string().readonly(),
|
|
1105
1138
|
})).readonly(),
|
|
1106
1139
|
'claims': z.array(z.object({
|
|
1107
1140
|
'claimRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -1116,6 +1149,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_view_result$schema = z.object({
|
|
|
1116
1149
|
'kind': z.union([z.literal("accept"), z.literal("close"), z.literal("reopen"), z.literal("promote")]).readonly(),
|
|
1117
1150
|
'releasedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
|
|
1118
1151
|
'completedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
|
|
1152
|
+
'acceptedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
|
|
1119
1153
|
'activityRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
1120
1154
|
'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
1121
1155
|
'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
|
|
@@ -1171,7 +1205,7 @@ export const TYPERT = {
|
|
|
1171
1205
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamMemberResult',
|
|
1172
1206
|
schema: _wowyuarm_dsh_agent_team_agentTeam_addMember_result$schema,
|
|
1173
1207
|
},
|
|
1174
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1208
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":653,"column":9},
|
|
1175
1209
|
},
|
|
1176
1210
|
{
|
|
1177
1211
|
id: '@wowyuarm/dsh-agent-team#agentTeam/archiveChannel',
|
|
@@ -1196,7 +1230,7 @@ export const TYPERT = {
|
|
|
1196
1230
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamArchiveChannelResult',
|
|
1197
1231
|
schema: _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_result$schema,
|
|
1198
1232
|
},
|
|
1199
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1233
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":643,"column":9},
|
|
1200
1234
|
},
|
|
1201
1235
|
{
|
|
1202
1236
|
id: '@wowyuarm/dsh-agent-team#agentTeam/archiveMember',
|
|
@@ -1221,7 +1255,7 @@ export const TYPERT = {
|
|
|
1221
1255
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamArchiveMemberResult',
|
|
1222
1256
|
schema: _wowyuarm_dsh_agent_team_agentTeam_archiveMember_result$schema,
|
|
1223
1257
|
},
|
|
1224
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1258
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1024,"column":9},
|
|
1225
1259
|
},
|
|
1226
1260
|
{
|
|
1227
1261
|
id: '@wowyuarm/dsh-agent-team#agentTeam/changeAttention',
|
|
@@ -1246,7 +1280,7 @@ export const TYPERT = {
|
|
|
1246
1280
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadAttentionResult',
|
|
1247
1281
|
schema: _wowyuarm_dsh_agent_team_agentTeam_changeAttention_result$schema,
|
|
1248
1282
|
},
|
|
1249
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1283
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1146,"column":9},
|
|
1250
1284
|
},
|
|
1251
1285
|
{
|
|
1252
1286
|
id: '@wowyuarm/dsh-agent-team#agentTeam/changes',
|
|
@@ -1272,7 +1306,7 @@ export const TYPERT = {
|
|
|
1272
1306
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamChangesResult',
|
|
1273
1307
|
schema: _wowyuarm_dsh_agent_team_agentTeam_changes_result$schema,
|
|
1274
1308
|
},
|
|
1275
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1309
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":575,"column":9},
|
|
1276
1310
|
},
|
|
1277
1311
|
{
|
|
1278
1312
|
id: '@wowyuarm/dsh-agent-team#agentTeam/changeTask',
|
|
@@ -1297,7 +1331,7 @@ export const TYPERT = {
|
|
|
1297
1331
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamTaskResult',
|
|
1298
1332
|
schema: _wowyuarm_dsh_agent_team_agentTeam_changeTask_result$schema,
|
|
1299
1333
|
},
|
|
1300
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1334
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1036,"column":9},
|
|
1301
1335
|
},
|
|
1302
1336
|
{
|
|
1303
1337
|
id: '@wowyuarm/dsh-agent-team#agentTeam/clearMemberContext',
|
|
@@ -1322,7 +1356,7 @@ export const TYPERT = {
|
|
|
1322
1356
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamClearMemberContextResult',
|
|
1323
1357
|
schema: _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_result$schema,
|
|
1324
1358
|
},
|
|
1325
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1359
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":752,"column":9},
|
|
1326
1360
|
},
|
|
1327
1361
|
{
|
|
1328
1362
|
id: '@wowyuarm/dsh-agent-team#agentTeam/createChannel',
|
|
@@ -1347,7 +1381,7 @@ export const TYPERT = {
|
|
|
1347
1381
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamCreateChannelResult',
|
|
1348
1382
|
schema: _wowyuarm_dsh_agent_team_agentTeam_createChannel_result$schema,
|
|
1349
1383
|
},
|
|
1350
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1384
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":616,"column":9},
|
|
1351
1385
|
},
|
|
1352
1386
|
{
|
|
1353
1387
|
id: '@wowyuarm/dsh-agent-team#agentTeam/getAttachment',
|
|
@@ -1372,7 +1406,7 @@ export const TYPERT = {
|
|
|
1372
1406
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamGetAttachmentResult',
|
|
1373
1407
|
schema: _wowyuarm_dsh_agent_team_agentTeam_getAttachment_result$schema,
|
|
1374
1408
|
},
|
|
1375
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1409
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1132,"column":9},
|
|
1376
1410
|
},
|
|
1377
1411
|
{
|
|
1378
1412
|
id: '@wowyuarm/dsh-agent-team#agentTeam/inbox',
|
|
@@ -1397,7 +1431,7 @@ export const TYPERT = {
|
|
|
1397
1431
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamInbox',
|
|
1398
1432
|
schema: _wowyuarm_dsh_agent_team_agentTeam_inbox_result$schema,
|
|
1399
1433
|
},
|
|
1400
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1434
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1155,"column":3},
|
|
1401
1435
|
},
|
|
1402
1436
|
{
|
|
1403
1437
|
id: '@wowyuarm/dsh-agent-team#agentTeam/joinChannel',
|
|
@@ -1422,7 +1456,7 @@ export const TYPERT = {
|
|
|
1422
1456
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamJoinChannelResult',
|
|
1423
1457
|
schema: _wowyuarm_dsh_agent_team_agentTeam_joinChannel_result$schema,
|
|
1424
1458
|
},
|
|
1425
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1459
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1056,"column":9},
|
|
1426
1460
|
},
|
|
1427
1461
|
{
|
|
1428
1462
|
id: '@wowyuarm/dsh-agent-team#agentTeam/members',
|
|
@@ -1448,7 +1482,7 @@ export const TYPERT = {
|
|
|
1448
1482
|
typeSymbol: '@wowyuarm/dsh-agent-team#agentTeam/members:result',
|
|
1449
1483
|
schema: _wowyuarm_dsh_agent_team_agentTeam_members_result$schema,
|
|
1450
1484
|
},
|
|
1451
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1485
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":566,"column":3},
|
|
1452
1486
|
},
|
|
1453
1487
|
{
|
|
1454
1488
|
id: '@wowyuarm/dsh-agent-team#agentTeam/promoteThread',
|
|
@@ -1473,7 +1507,7 @@ export const TYPERT = {
|
|
|
1473
1507
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPromoteThreadResult',
|
|
1474
1508
|
schema: _wowyuarm_dsh_agent_team_agentTeam_promoteThread_result$schema,
|
|
1475
1509
|
},
|
|
1476
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1510
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1046,"column":9},
|
|
1477
1511
|
},
|
|
1478
1512
|
{
|
|
1479
1513
|
id: '@wowyuarm/dsh-agent-team#agentTeam/putAttachment',
|
|
@@ -1498,7 +1532,7 @@ export const TYPERT = {
|
|
|
1498
1532
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPutAttachmentResult',
|
|
1499
1533
|
schema: _wowyuarm_dsh_agent_team_agentTeam_putAttachment_result$schema,
|
|
1500
1534
|
},
|
|
1501
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1535
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1119,"column":9},
|
|
1502
1536
|
},
|
|
1503
1537
|
{
|
|
1504
1538
|
id: '@wowyuarm/dsh-agent-team#agentTeam/readThread',
|
|
@@ -1523,7 +1557,7 @@ export const TYPERT = {
|
|
|
1523
1557
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadReadResult',
|
|
1524
1558
|
schema: _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema,
|
|
1525
1559
|
},
|
|
1526
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1560
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1162,"column":9},
|
|
1527
1561
|
},
|
|
1528
1562
|
{
|
|
1529
1563
|
id: '@wowyuarm/dsh-agent-team#agentTeam/recoverMember',
|
|
@@ -1548,7 +1582,7 @@ export const TYPERT = {
|
|
|
1548
1582
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRecoverMemberResult',
|
|
1549
1583
|
schema: _wowyuarm_dsh_agent_team_agentTeam_recoverMember_result$schema,
|
|
1550
1584
|
},
|
|
1551
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1585
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":713,"column":9},
|
|
1552
1586
|
},
|
|
1553
1587
|
{
|
|
1554
1588
|
id: '@wowyuarm/dsh-agent-team#agentTeam/removeChannelMember',
|
|
@@ -1573,7 +1607,7 @@ export const TYPERT = {
|
|
|
1573
1607
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRemoveChannelMemberResult',
|
|
1574
1608
|
schema: _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_result$schema,
|
|
1575
1609
|
},
|
|
1576
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1610
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1067,"column":9},
|
|
1577
1611
|
},
|
|
1578
1612
|
{
|
|
1579
1613
|
id: '@wowyuarm/dsh-agent-team#agentTeam/reply',
|
|
@@ -1598,7 +1632,7 @@ export const TYPERT = {
|
|
|
1598
1632
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamReplyResult',
|
|
1599
1633
|
schema: _wowyuarm_dsh_agent_team_agentTeam_reply_result$schema,
|
|
1600
1634
|
},
|
|
1601
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1635
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1140,"column":9},
|
|
1602
1636
|
},
|
|
1603
1637
|
{
|
|
1604
1638
|
id: '@wowyuarm/dsh-agent-team#agentTeam/resolveTaskRefs',
|
|
@@ -1623,7 +1657,7 @@ export const TYPERT = {
|
|
|
1623
1657
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamResolveTaskRefsResult',
|
|
1624
1658
|
schema: _wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_result$schema,
|
|
1625
1659
|
},
|
|
1626
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1660
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":553,"column":3},
|
|
1627
1661
|
},
|
|
1628
1662
|
{
|
|
1629
1663
|
id: '@wowyuarm/dsh-agent-team#agentTeam/sendMessage',
|
|
@@ -1648,7 +1682,7 @@ export const TYPERT = {
|
|
|
1648
1682
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamSendMessageResult',
|
|
1649
1683
|
schema: _wowyuarm_dsh_agent_team_agentTeam_sendMessage_result$schema,
|
|
1650
1684
|
},
|
|
1651
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1685
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1076,"column":9},
|
|
1652
1686
|
},
|
|
1653
1687
|
{
|
|
1654
1688
|
id: '@wowyuarm/dsh-agent-team#agentTeam/threadHistory',
|
|
@@ -1673,7 +1707,7 @@ export const TYPERT = {
|
|
|
1673
1707
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadHistory',
|
|
1674
1708
|
schema: _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema,
|
|
1675
1709
|
},
|
|
1676
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1710
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1178,"column":3},
|
|
1677
1711
|
},
|
|
1678
1712
|
{
|
|
1679
1713
|
id: '@wowyuarm/dsh-agent-team#agentTeam/threadObservations',
|
|
@@ -1698,7 +1732,7 @@ export const TYPERT = {
|
|
|
1698
1732
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadObservations',
|
|
1699
1733
|
schema: _wowyuarm_dsh_agent_team_agentTeam_threadObservations_result$schema,
|
|
1700
1734
|
},
|
|
1701
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1735
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1171,"column":3},
|
|
1702
1736
|
},
|
|
1703
1737
|
{
|
|
1704
1738
|
id: '@wowyuarm/dsh-agent-team#agentTeam/updateChannel',
|
|
@@ -1723,7 +1757,7 @@ export const TYPERT = {
|
|
|
1723
1757
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamUpdateChannelResult',
|
|
1724
1758
|
schema: _wowyuarm_dsh_agent_team_agentTeam_updateChannel_result$schema,
|
|
1725
1759
|
},
|
|
1726
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1760
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":628,"column":9},
|
|
1727
1761
|
},
|
|
1728
1762
|
{
|
|
1729
1763
|
id: '@wowyuarm/dsh-agent-team#agentTeam/updateMember',
|
|
@@ -1748,7 +1782,7 @@ export const TYPERT = {
|
|
|
1748
1782
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamMemberResult',
|
|
1749
1783
|
schema: _wowyuarm_dsh_agent_team_agentTeam_updateMember_result$schema,
|
|
1750
1784
|
},
|
|
1751
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1785
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":964,"column":9},
|
|
1752
1786
|
},
|
|
1753
1787
|
{
|
|
1754
1788
|
id: '@wowyuarm/dsh-agent-team#agentTeam/view',
|
|
@@ -1773,7 +1807,7 @@ export const TYPERT = {
|
|
|
1773
1807
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamView',
|
|
1774
1808
|
schema: _wowyuarm_dsh_agent_team_agentTeam_view_result$schema,
|
|
1775
1809
|
},
|
|
1776
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1810
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1185,"column":3},
|
|
1777
1811
|
},
|
|
1778
1812
|
],
|
|
1779
1813
|
model: {
|
|
@@ -2074,6 +2108,34 @@ export const TYPERT = {
|
|
|
2074
2108
|
"signature": "validateLedger(): void",
|
|
2075
2109
|
"summary": "Validate the durable ledger against an independently replayed projection.",
|
|
2076
2110
|
"jsDoc": "/** Validate the durable ledger against an independently replayed projection. */"
|
|
2111
|
+
},
|
|
2112
|
+
{
|
|
2113
|
+
"kind": "method",
|
|
2114
|
+
"name": "recordCheckpointForAgent",
|
|
2115
|
+
"signature": "recordCheckpointForAgent(agent: Agent, request: AgentTeamCheckpointToolRequest): AgentTeamCheckpointToolOutcome",
|
|
2116
|
+
"summary": "Agent-only checkpoint request validation: the tool calls this inside its own running turn.",
|
|
2117
|
+
"jsDoc": "/**\n * Agent-only checkpoint request validation: the tool calls this inside its\n * own running turn. Like `context_rollover`, the tool performs no side effect —\n * the durable checkpoint is the successful `tool/call`+`tool/result` pair\n * the Session projection folds; the ref returned here is deterministic\n * from this Member Session's identity plus the tool call id, so the model\n * can cite it before the result exists and a repeated provider call id in\n * another generation never collides with this one.\n */"
|
|
2118
|
+
},
|
|
2119
|
+
{
|
|
2120
|
+
"kind": "method",
|
|
2121
|
+
"name": "contextTimelineForAgent",
|
|
2122
|
+
"signature": "async contextTimelineForAgent(agent: Agent, request: AgentTeamTimelineToolRequest): Promise<AgentTeamTimelineToolResult>",
|
|
2123
|
+
"summary": "Agent-only bounded structural timeline: resolved checkpoints plus Team delivery, handoff, and compaction boundaries across the current generation and its archived ancestor lineage.",
|
|
2124
|
+
"jsDoc": "/**\n * Agent-only bounded structural timeline: resolved checkpoints plus Team\n * delivery, handoff, and compaction boundaries across the current\n * generation and its archived ancestor lineage. Structural only — no\n * transcript content. The meter prices retained/discarded tokens; entries\n * the Host cannot prove restorable carry a rejection reason instead of\n * silently disappearing.\n */"
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
"kind": "method",
|
|
2128
|
+
"name": "requestNewContext",
|
|
2129
|
+
"signature": "async requestNewContext(agent: Agent, request: AgentTeamNewContextToolRequest): Promise<AgentTeamNewContextToolOutcome>",
|
|
2130
|
+
"summary": "Agent-only rollover request validation: the tool calls this to check its Member binding, exclusivity, and checkpoint ownership.",
|
|
2131
|
+
"jsDoc": "/**\n * Agent-only rollover request validation: the tool calls this to check its\n * Member binding, exclusivity, and checkpoint ownership. It performs no\n * lifecycle effect — the actual transition reacts to the successful tool\n * result through the context-management coordinator.\n */"
|
|
2132
|
+
},
|
|
2133
|
+
{
|
|
2134
|
+
"kind": "method",
|
|
2135
|
+
"name": "rolloverSessionForAgent",
|
|
2136
|
+
"signature": "async rolloverSessionForAgent(agent: Agent, request: AgentTeamRolloverSessionRequest): Promise<AgentTeamDurableMemberResult>",
|
|
2137
|
+
"summary": "Agent-only session rollover commit: the Member actor must be the target Member on its currently bound live Session.",
|
|
2138
|
+
"jsDoc": "/**\n * Agent-only session rollover commit: the Member actor must be the target\n * Member on its currently bound live Session. The Host performs the actual\n * generation swap around this write; the ledger records only the durable\n * binding transition and rollover audit envelope.\n */"
|
|
2077
2139
|
}
|
|
2078
2140
|
],
|
|
2079
2141
|
"types": [
|
|
@@ -2165,6 +2227,14 @@ export const TYPERT = {
|
|
|
2165
2227
|
"name": "AgentTeamChannelRef",
|
|
2166
2228
|
"declaration": "export type AgentTeamChannelRef = Branded<'AgentTeamChannelRef'>;"
|
|
2167
2229
|
},
|
|
2230
|
+
{
|
|
2231
|
+
"name": "AgentTeamCheckpointToolOutcome",
|
|
2232
|
+
"declaration": "export interface AgentTeamCheckpointToolOutcome {\n readonly checkpointRef: AgentTeamContextCheckpointRef;\n readonly name: string;\n}"
|
|
2233
|
+
},
|
|
2234
|
+
{
|
|
2235
|
+
"name": "AgentTeamCheckpointToolRequest",
|
|
2236
|
+
"declaration": "export interface AgentTeamCheckpointToolRequest {\n readonly memberId: AgentTeamMemberId;\n readonly callId: string;\n readonly name: string;\n}"
|
|
2237
|
+
},
|
|
2168
2238
|
{
|
|
2169
2239
|
"name": "AgentTeamClaim",
|
|
2170
2240
|
"declaration": "export interface AgentTeamClaim {\n readonly claimRef: AgentTeamClaimRef;\n readonly taskRef: AgentTeamTaskRef;\n readonly threadRef: AgentTeamThreadRef;\n readonly owner: AgentTeamMemberId;\n readonly direction: string;\n readonly normalizedDirection: string;\n readonly state: 'active' | 'done' | 'released';\n}"
|
|
@@ -2221,6 +2291,14 @@ export const TYPERT = {
|
|
|
2221
2291
|
"name": "AgentTeamConfirmationToken",
|
|
2222
2292
|
"declaration": "export type AgentTeamConfirmationToken = Branded<'AgentTeamConfirmationToken'>;"
|
|
2223
2293
|
},
|
|
2294
|
+
{
|
|
2295
|
+
"name": "AgentTeamContextAdvice",
|
|
2296
|
+
"declaration": "export interface AgentTeamContextAdvice {\n readonly usageTokens?: number | undefined;\n readonly taskBoundaryThreshold?: number | undefined;\n readonly handoffAt?: number | undefined;\n readonly hardLimit?: number | undefined;\n readonly action: 'keep' | 'rollover' | 'handoff-now' | 'unavailable';\n readonly guidance: string;\n}"
|
|
2297
|
+
},
|
|
2298
|
+
{
|
|
2299
|
+
"name": "AgentTeamContextCheckpointRef",
|
|
2300
|
+
"declaration": "export type AgentTeamContextCheckpointRef = Branded<'AgentTeamContextCheckpointRef'>;"
|
|
2301
|
+
},
|
|
2224
2302
|
{
|
|
2225
2303
|
"name": "AgentTeamCreateChannelRequest",
|
|
2226
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}"
|
|
@@ -2241,6 +2319,10 @@ export const TYPERT = {
|
|
|
2241
2319
|
"name": "AgentTeamDmResult",
|
|
2242
2320
|
"declaration": "export interface AgentTeamDmResult {\n readonly receipt: AgentTeamOperationReceipt;\n readonly recipient: AgentTeamAgentMember;\n}"
|
|
2243
2321
|
},
|
|
2322
|
+
{
|
|
2323
|
+
"name": "AgentTeamDurableMemberResult",
|
|
2324
|
+
"declaration": "export interface AgentTeamDurableMemberResult {\n readonly receipt: AgentTeamOperationReceipt;\n readonly member: AgentTeamAgentMember;\n}"
|
|
2325
|
+
},
|
|
2244
2326
|
{
|
|
2245
2327
|
"name": "AgentTeamGetAttachmentRequest",
|
|
2246
2328
|
"declaration": "export interface AgentTeamGetAttachmentRequest {\n readonly attachmentId: AgentTeamAttachmentId;\n}"
|
|
@@ -2255,7 +2337,7 @@ export const TYPERT = {
|
|
|
2255
2337
|
},
|
|
2256
2338
|
{
|
|
2257
2339
|
"name": "AgentTeamInboxItem",
|
|
2258
|
-
"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}"
|
|
2259
2341
|
},
|
|
2260
2342
|
{
|
|
2261
2343
|
"name": "AgentTeamInboxRequest",
|
|
@@ -2305,13 +2387,21 @@ export const TYPERT = {
|
|
|
2305
2387
|
"name": "AgentTeamModelSelection",
|
|
2306
2388
|
"declaration": "export interface AgentTeamModelSelection {\n readonly provider: string;\n readonly model: string;\n readonly reasoningEffort?: ReasoningEffortId;\n}"
|
|
2307
2389
|
},
|
|
2390
|
+
{
|
|
2391
|
+
"name": "AgentTeamNewContextToolOutcome",
|
|
2392
|
+
"declaration": "export interface AgentTeamNewContextToolOutcome {\n readonly mode: 'fresh' | 'from-checkpoint';\n}"
|
|
2393
|
+
},
|
|
2394
|
+
{
|
|
2395
|
+
"name": "AgentTeamNewContextToolRequest",
|
|
2396
|
+
"declaration": "export interface AgentTeamNewContextToolRequest {\n readonly memberId: AgentTeamMemberId;\n readonly checkpointRef?: AgentTeamContextCheckpointRef;\n readonly relatedFiles?: readonly { readonly path: string; readonly reason: string; }[];\n}"
|
|
2397
|
+
},
|
|
2308
2398
|
{
|
|
2309
2399
|
"name": "AgentTeamOperationId",
|
|
2310
2400
|
"declaration": "export type AgentTeamOperationId = Branded<'AgentTeamOperationId'>;"
|
|
2311
2401
|
},
|
|
2312
2402
|
{
|
|
2313
2403
|
"name": "AgentTeamOperationReceipt",
|
|
2314
|
-
"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}"
|
|
2315
2405
|
},
|
|
2316
2406
|
{
|
|
2317
2407
|
"name": "AgentTeamPromoteThreadCommittedResult",
|
|
@@ -2385,6 +2475,10 @@ export const TYPERT = {
|
|
|
2385
2475
|
"name": "AgentTeamResolveTaskRefsResult",
|
|
2386
2476
|
"declaration": "export interface AgentTeamResolveTaskRefsResult {\n readonly resolved: readonly AgentTeamResolvedTaskRef[];\n}"
|
|
2387
2477
|
},
|
|
2478
|
+
{
|
|
2479
|
+
"name": "AgentTeamRolloverSessionRequest",
|
|
2480
|
+
"declaration": "export interface AgentTeamRolloverSessionRequest {\n readonly requestId: AgentTeamRequestId;\n readonly workspaceId: WorkspaceId;\n readonly memberId: AgentTeamMemberId;\n readonly previousSessionId: AgentTeamMemberSessionId;\n readonly newSessionId: AgentTeamMemberSessionId;\n readonly handoffEventSeq: AgentTeamMemberSessionSeq;\n readonly trigger: 'model' | 'pressure';\n readonly sourceSessionId?: AgentTeamMemberSessionId;\n readonly sourceThroughSeq?: AgentTeamMemberSessionLogOffset;\n readonly checkpointRef?: AgentTeamContextCheckpointRef;\n}"
|
|
2481
|
+
},
|
|
2388
2482
|
{
|
|
2389
2483
|
"name": "AgentTeamSendMessageCommittedResult",
|
|
2390
2484
|
"declaration": "export interface AgentTeamSendMessageCommittedResult {\n readonly kind: 'committed';\n readonly receipt: AgentTeamOperationReceipt;\n readonly message: AgentTeamMessage;\n readonly task?: AgentTeamTask;\n readonly thread: AgentTeamThread;\n readonly attention: readonly AgentTeamThreadAttention[];\n readonly directMarkers: readonly AgentTeamDirectMarker[];\n}"
|
|
@@ -2415,7 +2509,7 @@ export const TYPERT = {
|
|
|
2415
2509
|
},
|
|
2416
2510
|
{
|
|
2417
2511
|
"name": "AgentTeamTaskActivity",
|
|
2418
|
-
"declaration": "export interface AgentTeamTaskActivity extends AgentTeamActivityBase {\n readonly kind: 'promote' | 'accept' | 'close' | 'reopen';\n readonly releasedClaimRefs?: readonly AgentTeamClaimRef[] | undefined;\n readonly completedClaimRefs?: readonly AgentTeamClaimRef[] | undefined;\n}"
|
|
2512
|
+
"declaration": "export interface AgentTeamTaskActivity extends AgentTeamActivityBase {\n readonly kind: 'promote' | 'accept' | 'close' | 'reopen';\n readonly releasedClaimRefs?: readonly AgentTeamClaimRef[] | undefined;\n readonly completedClaimRefs?: readonly AgentTeamClaimRef[] | undefined;\n readonly acceptedClaimRefs?: readonly AgentTeamClaimRef[] | undefined;\n}"
|
|
2419
2513
|
},
|
|
2420
2514
|
{
|
|
2421
2515
|
"name": "AgentTeamTaskCommittedResult",
|
|
@@ -2463,7 +2557,7 @@ export const TYPERT = {
|
|
|
2463
2557
|
},
|
|
2464
2558
|
{
|
|
2465
2559
|
"name": "AgentTeamThreadFact",
|
|
2466
|
-
"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; };"
|
|
2467
2561
|
},
|
|
2468
2562
|
{
|
|
2469
2563
|
"name": "AgentTeamThreadHistory",
|
|
@@ -2491,12 +2585,24 @@ export const TYPERT = {
|
|
|
2491
2585
|
},
|
|
2492
2586
|
{
|
|
2493
2587
|
"name": "AgentTeamThreadReadResult",
|
|
2494
|
-
"declaration": "export interface AgentTeamThreadReadResult {\n readonly receipt: AgentTeamOperationReceipt;\n readonly task?: AgentTeamTask;\n readonly thread: AgentTeamThread;\n readonly claims: readonly AgentTeamClaim[];\n readonly anchor: AgentTeamMessage;\n readonly anchorMentions: readonly AgentTeamMemberId[];\n readonly facts: readonly AgentTeamThreadReadFact[];\n readonly readThroughSequence: number;\n readonly remainingUnreadCount: number;\n readonly attention?: AgentTeamThreadAttention;\n readonly consumedDirectMarkers: readonly AgentTeamDirectMarker[];\n}"
|
|
2588
|
+
"declaration": "export interface AgentTeamThreadReadResult {\n readonly receipt: AgentTeamOperationReceipt;\n readonly task?: AgentTeamTask;\n readonly thread: AgentTeamThread;\n readonly claims: readonly AgentTeamClaim[];\n readonly anchor: AgentTeamMessage;\n readonly anchorMentions: readonly AgentTeamMemberId[];\n readonly facts: readonly AgentTeamThreadReadFact[];\n readonly readThroughSequence: number;\n readonly remainingUnreadCount: number;\n readonly attention?: AgentTeamThreadAttention;\n readonly consumedDirectMarkers: readonly AgentTeamDirectMarker[];\n readonly contextAdvice?: AgentTeamContextAdvice;\n}"
|
|
2495
2589
|
},
|
|
2496
2590
|
{
|
|
2497
2591
|
"name": "AgentTeamThreadRef",
|
|
2498
2592
|
"declaration": "export type AgentTeamThreadRef = Branded<'AgentTeamThreadRef'>;"
|
|
2499
2593
|
},
|
|
2594
|
+
{
|
|
2595
|
+
"name": "AgentTeamTimelineItem",
|
|
2596
|
+
"declaration": "export interface AgentTeamTimelineItem {\n readonly checkpointRef: string;\n readonly name: string;\n readonly source: 'agent' | 'team-boundary' | 'handoff' | 'compaction' | 'head';\n readonly retainedTokens: number;\n readonly discardedTokens: number;\n readonly affectedThreads: readonly string[];\n readonly restorable: boolean;\n readonly reason?: string;\n readonly sourceSessionId?: SessionId;\n}"
|
|
2597
|
+
},
|
|
2598
|
+
{
|
|
2599
|
+
"name": "AgentTeamTimelineToolRequest",
|
|
2600
|
+
"declaration": "export interface AgentTeamTimelineToolRequest {\n readonly memberId: AgentTeamMemberId;\n readonly limit?: number;\n}"
|
|
2601
|
+
},
|
|
2602
|
+
{
|
|
2603
|
+
"name": "AgentTeamTimelineToolResult",
|
|
2604
|
+
"declaration": "export interface AgentTeamTimelineToolResult {\n readonly usageTokens: number;\n readonly hardLimit: number;\n readonly handoffAt: number;\n readonly items: readonly AgentTeamTimelineItem[];\n}"
|
|
2605
|
+
},
|
|
2500
2606
|
{
|
|
2501
2607
|
"name": "AgentTeamUnreadRequired",
|
|
2502
2608
|
"declaration": "export interface AgentTeamUnreadRequired {\n readonly kind: 'unread_required';\n readonly taskRef?: AgentTeamTaskRef;\n readonly threadRef: AgentTeamThreadRef;\n readonly revision: number;\n readonly unreadCount: number;\n readonly directCount: number;\n}"
|
|
@@ -2519,7 +2625,7 @@ export const TYPERT = {
|
|
|
2519
2625
|
},
|
|
2520
2626
|
{
|
|
2521
2627
|
"name": "AgentTeamViewItem",
|
|
2522
|
-
"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}"
|
|
2523
2629
|
},
|
|
2524
2630
|
{
|
|
2525
2631
|
"name": "AgentTeamViewRequest",
|
|
@@ -2545,6 +2651,10 @@ export const TYPERT = {
|
|
|
2545
2651
|
"name": "AssistantProvenance",
|
|
2546
2652
|
"declaration": "export interface AssistantProvenance {\n provider: string;\n model: string;\n replayState?: unknown;\n}"
|
|
2547
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
|
+
},
|
|
2548
2658
|
{
|
|
2549
2659
|
"name": "AttachmentId",
|
|
2550
2660
|
"declaration": "export type AttachmentId = Branded<'AttachmentId'>;"
|
|
@@ -2575,7 +2685,7 @@ export const TYPERT = {
|
|
|
2575
2685
|
},
|
|
2576
2686
|
{
|
|
2577
2687
|
"name": "ContentBlockMap",
|
|
2578
|
-
"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}"
|
|
2579
2689
|
},
|
|
2580
2690
|
{
|
|
2581
2691
|
"name": "ContentBlockType",
|
|
@@ -2591,7 +2701,15 @@ export const TYPERT = {
|
|
|
2591
2701
|
},
|
|
2592
2702
|
{
|
|
2593
2703
|
"name": "EpochHeader",
|
|
2594
|
-
"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}"
|
|
2595
2713
|
},
|
|
2596
2714
|
{
|
|
2597
2715
|
"name": "FinishReason",
|
|
@@ -2615,7 +2733,7 @@ export const TYPERT = {
|
|
|
2615
2733
|
},
|
|
2616
2734
|
{
|
|
2617
2735
|
"name": "Inbox",
|
|
2618
|
-
"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}"
|
|
2619
2737
|
},
|
|
2620
2738
|
{
|
|
2621
2739
|
"name": "InboxTarget",
|
|
@@ -2637,14 +2755,6 @@ export const TYPERT = {
|
|
|
2637
2755
|
"name": "LlmFailure",
|
|
2638
2756
|
"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}"
|
|
2639
2757
|
},
|
|
2640
|
-
{
|
|
2641
|
-
"name": "LlmRetryEventData",
|
|
2642
|
-
"declaration": "export type LlmRetryEventData = { retryId: RetryId; turn: number; step: number; provider: string; mode: 'normal'; policyKey: string; retry: number; maxRetries: number; delayMs: number; failure: LlmFailure; } | { retryId: RetryId; turn: number; step: number; provider: string; mode: 'always'; policyKey: string; retry: number; delayMs: number; failure: LlmFailure; };"
|
|
2643
|
-
},
|
|
2644
|
-
{
|
|
2645
|
-
"name": "LlmRetryStartedEventData",
|
|
2646
|
-
"declaration": "export interface LlmRetryStartedEventData {\n retryId: RetryId;\n turn: number;\n step: number;\n retry: number;\n}"
|
|
2647
|
-
},
|
|
2648
2758
|
{
|
|
2649
2759
|
"name": "Message",
|
|
2650
2760
|
"declaration": "export interface Message {\n readonly id: MessageId;\n readonly role: 'system' | 'user' | 'assistant';\n readonly content: ContentBlock[];\n readonly source: MessageSource;\n}"
|
|
@@ -2691,31 +2801,27 @@ export const TYPERT = {
|
|
|
2691
2801
|
},
|
|
2692
2802
|
{
|
|
2693
2803
|
"name": "RequestContext",
|
|
2694
|
-
"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}"
|
|
2695
2805
|
},
|
|
2696
2806
|
{
|
|
2697
2807
|
"name": "RequestHeaderReason",
|
|
2698
2808
|
"declaration": "export type RequestHeaderReason = 'initial' | 'resume' | 'change' | 'series';"
|
|
2699
2809
|
},
|
|
2700
|
-
{
|
|
2701
|
-
"name": "RetryId",
|
|
2702
|
-
"declaration": "export type RetryId = Branded<'RetryId'>;"
|
|
2703
|
-
},
|
|
2704
2810
|
{
|
|
2705
2811
|
"name": "SandboxMode",
|
|
2706
2812
|
"declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
|
|
2707
2813
|
},
|
|
2708
2814
|
{
|
|
2709
2815
|
"name": "Session",
|
|
2710
|
-
"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}"
|
|
2711
2817
|
},
|
|
2712
2818
|
{
|
|
2713
2819
|
"name": "SessionEvent",
|
|
2714
|
-
"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];"
|
|
2715
2821
|
},
|
|
2716
2822
|
{
|
|
2717
2823
|
"name": "SessionEventMap",
|
|
2718
|
-
"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}"
|
|
2719
2825
|
},
|
|
2720
2826
|
{
|
|
2721
2827
|
"name": "SessionEventType",
|
|
@@ -2723,7 +2829,7 @@ export const TYPERT = {
|
|
|
2723
2829
|
},
|
|
2724
2830
|
{
|
|
2725
2831
|
"name": "SessionHeader",
|
|
2726
|
-
"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}"
|
|
2727
2833
|
},
|
|
2728
2834
|
{
|
|
2729
2835
|
"name": "SessionId",
|
|
@@ -2751,15 +2857,23 @@ export const TYPERT = {
|
|
|
2751
2857
|
},
|
|
2752
2858
|
{
|
|
2753
2859
|
"name": "SurfaceEventType",
|
|
2754
|
-
"declaration": "export type SurfaceEventType = 'user/message' | 'assistant/message' | 'tool/result';"
|
|
2860
|
+
"declaration": "export type SurfaceEventType = 'system/message' | 'user/message' | 'assistant/message' | 'tool/result';"
|
|
2755
2861
|
},
|
|
2756
2862
|
{
|
|
2757
2863
|
"name": "SurfaceIntent",
|
|
2758
|
-
"declaration": "export
|
|
2864
|
+
"declaration": "export type SurfaceIntent<T extends SurfaceEventType = SurfaceEventType> = { surfaceOp: SurfaceOp; } & (T extends 'assistant/message' ? { sourceEventSeqs?: never; } : { sourceEventSeqs?: SessionSeq[]; });"
|
|
2759
2865
|
},
|
|
2760
2866
|
{
|
|
2761
2867
|
"name": "SurfaceOp",
|
|
2762
|
-
"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';"
|
|
2763
2877
|
},
|
|
2764
2878
|
{
|
|
2765
2879
|
"name": "TextBlock",
|