@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(),
|
|
@@ -1181,7 +1202,7 @@ export const TYPERT_REMOTE = {
|
|
|
1181
1202
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamMemberResult',
|
|
1182
1203
|
schema: _wowyuarm_dsh_agent_team_agentTeam_addMember_result$schema,
|
|
1183
1204
|
},
|
|
1184
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1205
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":653,"column":9},
|
|
1185
1206
|
},
|
|
1186
1207
|
{
|
|
1187
1208
|
id: '@wowyuarm/dsh-agent-team#agentTeam/archiveChannel',
|
|
@@ -1206,7 +1227,7 @@ export const TYPERT_REMOTE = {
|
|
|
1206
1227
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamArchiveChannelResult',
|
|
1207
1228
|
schema: _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_result$schema,
|
|
1208
1229
|
},
|
|
1209
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1230
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":643,"column":9},
|
|
1210
1231
|
},
|
|
1211
1232
|
{
|
|
1212
1233
|
id: '@wowyuarm/dsh-agent-team#agentTeam/archiveMember',
|
|
@@ -1231,7 +1252,7 @@ export const TYPERT_REMOTE = {
|
|
|
1231
1252
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamArchiveMemberResult',
|
|
1232
1253
|
schema: _wowyuarm_dsh_agent_team_agentTeam_archiveMember_result$schema,
|
|
1233
1254
|
},
|
|
1234
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1255
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1024,"column":9},
|
|
1235
1256
|
},
|
|
1236
1257
|
{
|
|
1237
1258
|
id: '@wowyuarm/dsh-agent-team#agentTeam/changeAttention',
|
|
@@ -1256,7 +1277,7 @@ export const TYPERT_REMOTE = {
|
|
|
1256
1277
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadAttentionResult',
|
|
1257
1278
|
schema: _wowyuarm_dsh_agent_team_agentTeam_changeAttention_result$schema,
|
|
1258
1279
|
},
|
|
1259
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1280
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1146,"column":9},
|
|
1260
1281
|
},
|
|
1261
1282
|
{
|
|
1262
1283
|
id: '@wowyuarm/dsh-agent-team#agentTeam/changes',
|
|
@@ -1282,7 +1303,7 @@ export const TYPERT_REMOTE = {
|
|
|
1282
1303
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamChangesResult',
|
|
1283
1304
|
schema: _wowyuarm_dsh_agent_team_agentTeam_changes_result$schema,
|
|
1284
1305
|
},
|
|
1285
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1306
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":575,"column":9},
|
|
1286
1307
|
},
|
|
1287
1308
|
{
|
|
1288
1309
|
id: '@wowyuarm/dsh-agent-team#agentTeam/changeTask',
|
|
@@ -1307,7 +1328,7 @@ export const TYPERT_REMOTE = {
|
|
|
1307
1328
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamTaskResult',
|
|
1308
1329
|
schema: _wowyuarm_dsh_agent_team_agentTeam_changeTask_result$schema,
|
|
1309
1330
|
},
|
|
1310
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1331
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1036,"column":9},
|
|
1311
1332
|
},
|
|
1312
1333
|
{
|
|
1313
1334
|
id: '@wowyuarm/dsh-agent-team#agentTeam/clearMemberContext',
|
|
@@ -1332,7 +1353,7 @@ export const TYPERT_REMOTE = {
|
|
|
1332
1353
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamClearMemberContextResult',
|
|
1333
1354
|
schema: _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_result$schema,
|
|
1334
1355
|
},
|
|
1335
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1356
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":752,"column":9},
|
|
1336
1357
|
},
|
|
1337
1358
|
{
|
|
1338
1359
|
id: '@wowyuarm/dsh-agent-team#agentTeam/createChannel',
|
|
@@ -1357,7 +1378,7 @@ export const TYPERT_REMOTE = {
|
|
|
1357
1378
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamCreateChannelResult',
|
|
1358
1379
|
schema: _wowyuarm_dsh_agent_team_agentTeam_createChannel_result$schema,
|
|
1359
1380
|
},
|
|
1360
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1381
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":616,"column":9},
|
|
1361
1382
|
},
|
|
1362
1383
|
{
|
|
1363
1384
|
id: '@wowyuarm/dsh-agent-team#agentTeam/getAttachment',
|
|
@@ -1382,7 +1403,7 @@ export const TYPERT_REMOTE = {
|
|
|
1382
1403
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamGetAttachmentResult',
|
|
1383
1404
|
schema: _wowyuarm_dsh_agent_team_agentTeam_getAttachment_result$schema,
|
|
1384
1405
|
},
|
|
1385
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1406
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1132,"column":9},
|
|
1386
1407
|
},
|
|
1387
1408
|
{
|
|
1388
1409
|
id: '@wowyuarm/dsh-agent-team#agentTeam/inbox',
|
|
@@ -1407,7 +1428,7 @@ export const TYPERT_REMOTE = {
|
|
|
1407
1428
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamInbox',
|
|
1408
1429
|
schema: _wowyuarm_dsh_agent_team_agentTeam_inbox_result$schema,
|
|
1409
1430
|
},
|
|
1410
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1431
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1155,"column":3},
|
|
1411
1432
|
},
|
|
1412
1433
|
{
|
|
1413
1434
|
id: '@wowyuarm/dsh-agent-team#agentTeam/joinChannel',
|
|
@@ -1432,7 +1453,7 @@ export const TYPERT_REMOTE = {
|
|
|
1432
1453
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamJoinChannelResult',
|
|
1433
1454
|
schema: _wowyuarm_dsh_agent_team_agentTeam_joinChannel_result$schema,
|
|
1434
1455
|
},
|
|
1435
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1456
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1056,"column":9},
|
|
1436
1457
|
},
|
|
1437
1458
|
{
|
|
1438
1459
|
id: '@wowyuarm/dsh-agent-team#agentTeam/members',
|
|
@@ -1458,7 +1479,7 @@ export const TYPERT_REMOTE = {
|
|
|
1458
1479
|
typeSymbol: '@wowyuarm/dsh-agent-team#agentTeam/members:result',
|
|
1459
1480
|
schema: _wowyuarm_dsh_agent_team_agentTeam_members_result$schema,
|
|
1460
1481
|
},
|
|
1461
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1482
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":566,"column":3},
|
|
1462
1483
|
},
|
|
1463
1484
|
{
|
|
1464
1485
|
id: '@wowyuarm/dsh-agent-team#agentTeam/promoteThread',
|
|
@@ -1483,7 +1504,7 @@ export const TYPERT_REMOTE = {
|
|
|
1483
1504
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPromoteThreadResult',
|
|
1484
1505
|
schema: _wowyuarm_dsh_agent_team_agentTeam_promoteThread_result$schema,
|
|
1485
1506
|
},
|
|
1486
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1507
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1046,"column":9},
|
|
1487
1508
|
},
|
|
1488
1509
|
{
|
|
1489
1510
|
id: '@wowyuarm/dsh-agent-team#agentTeam/putAttachment',
|
|
@@ -1508,7 +1529,7 @@ export const TYPERT_REMOTE = {
|
|
|
1508
1529
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPutAttachmentResult',
|
|
1509
1530
|
schema: _wowyuarm_dsh_agent_team_agentTeam_putAttachment_result$schema,
|
|
1510
1531
|
},
|
|
1511
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1532
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1119,"column":9},
|
|
1512
1533
|
},
|
|
1513
1534
|
{
|
|
1514
1535
|
id: '@wowyuarm/dsh-agent-team#agentTeam/readThread',
|
|
@@ -1533,7 +1554,7 @@ export const TYPERT_REMOTE = {
|
|
|
1533
1554
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadReadResult',
|
|
1534
1555
|
schema: _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema,
|
|
1535
1556
|
},
|
|
1536
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1557
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1162,"column":9},
|
|
1537
1558
|
},
|
|
1538
1559
|
{
|
|
1539
1560
|
id: '@wowyuarm/dsh-agent-team#agentTeam/recoverMember',
|
|
@@ -1558,7 +1579,7 @@ export const TYPERT_REMOTE = {
|
|
|
1558
1579
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRecoverMemberResult',
|
|
1559
1580
|
schema: _wowyuarm_dsh_agent_team_agentTeam_recoverMember_result$schema,
|
|
1560
1581
|
},
|
|
1561
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1582
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":713,"column":9},
|
|
1562
1583
|
},
|
|
1563
1584
|
{
|
|
1564
1585
|
id: '@wowyuarm/dsh-agent-team#agentTeam/removeChannelMember',
|
|
@@ -1583,7 +1604,7 @@ export const TYPERT_REMOTE = {
|
|
|
1583
1604
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRemoveChannelMemberResult',
|
|
1584
1605
|
schema: _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_result$schema,
|
|
1585
1606
|
},
|
|
1586
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1607
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1067,"column":9},
|
|
1587
1608
|
},
|
|
1588
1609
|
{
|
|
1589
1610
|
id: '@wowyuarm/dsh-agent-team#agentTeam/reply',
|
|
@@ -1608,7 +1629,7 @@ export const TYPERT_REMOTE = {
|
|
|
1608
1629
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamReplyResult',
|
|
1609
1630
|
schema: _wowyuarm_dsh_agent_team_agentTeam_reply_result$schema,
|
|
1610
1631
|
},
|
|
1611
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1632
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1140,"column":9},
|
|
1612
1633
|
},
|
|
1613
1634
|
{
|
|
1614
1635
|
id: '@wowyuarm/dsh-agent-team#agentTeam/resolveTaskRefs',
|
|
@@ -1633,7 +1654,7 @@ export const TYPERT_REMOTE = {
|
|
|
1633
1654
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamResolveTaskRefsResult',
|
|
1634
1655
|
schema: _wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_result$schema,
|
|
1635
1656
|
},
|
|
1636
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1657
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":553,"column":3},
|
|
1637
1658
|
},
|
|
1638
1659
|
{
|
|
1639
1660
|
id: '@wowyuarm/dsh-agent-team#agentTeam/sendMessage',
|
|
@@ -1658,7 +1679,7 @@ export const TYPERT_REMOTE = {
|
|
|
1658
1679
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamSendMessageResult',
|
|
1659
1680
|
schema: _wowyuarm_dsh_agent_team_agentTeam_sendMessage_result$schema,
|
|
1660
1681
|
},
|
|
1661
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1682
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1076,"column":9},
|
|
1662
1683
|
},
|
|
1663
1684
|
{
|
|
1664
1685
|
id: '@wowyuarm/dsh-agent-team#agentTeam/threadHistory',
|
|
@@ -1683,7 +1704,7 @@ export const TYPERT_REMOTE = {
|
|
|
1683
1704
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadHistory',
|
|
1684
1705
|
schema: _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema,
|
|
1685
1706
|
},
|
|
1686
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1707
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1178,"column":3},
|
|
1687
1708
|
},
|
|
1688
1709
|
{
|
|
1689
1710
|
id: '@wowyuarm/dsh-agent-team#agentTeam/threadObservations',
|
|
@@ -1708,7 +1729,7 @@ export const TYPERT_REMOTE = {
|
|
|
1708
1729
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadObservations',
|
|
1709
1730
|
schema: _wowyuarm_dsh_agent_team_agentTeam_threadObservations_result$schema,
|
|
1710
1731
|
},
|
|
1711
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1732
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1171,"column":3},
|
|
1712
1733
|
},
|
|
1713
1734
|
{
|
|
1714
1735
|
id: '@wowyuarm/dsh-agent-team#agentTeam/updateChannel',
|
|
@@ -1733,7 +1754,7 @@ export const TYPERT_REMOTE = {
|
|
|
1733
1754
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamUpdateChannelResult',
|
|
1734
1755
|
schema: _wowyuarm_dsh_agent_team_agentTeam_updateChannel_result$schema,
|
|
1735
1756
|
},
|
|
1736
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1757
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":628,"column":9},
|
|
1737
1758
|
},
|
|
1738
1759
|
{
|
|
1739
1760
|
id: '@wowyuarm/dsh-agent-team#agentTeam/updateMember',
|
|
@@ -1758,7 +1779,7 @@ export const TYPERT_REMOTE = {
|
|
|
1758
1779
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamMemberResult',
|
|
1759
1780
|
schema: _wowyuarm_dsh_agent_team_agentTeam_updateMember_result$schema,
|
|
1760
1781
|
},
|
|
1761
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1782
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":964,"column":9},
|
|
1762
1783
|
},
|
|
1763
1784
|
{
|
|
1764
1785
|
id: '@wowyuarm/dsh-agent-team#agentTeam/view',
|
|
@@ -1783,7 +1804,7 @@ export const TYPERT_REMOTE = {
|
|
|
1783
1804
|
typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamView',
|
|
1784
1805
|
schema: _wowyuarm_dsh_agent_team_agentTeam_view_result$schema,
|
|
1785
1806
|
},
|
|
1786
|
-
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":
|
|
1807
|
+
sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1185,"column":3},
|
|
1787
1808
|
},
|
|
1788
1809
|
],
|
|
1789
1810
|
}
|
|
@@ -101,7 +101,12 @@ export declare class ContextManagementCoordinator {
|
|
|
101
101
|
private captureInput;
|
|
102
102
|
/** Drain the captured input of one Member for delivery after the handoff. */
|
|
103
103
|
drainCapturedInput(memberId: AgentTeamMemberId): readonly UserMessage[];
|
|
104
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* Whether one queued message is a Team-owned notice the rederived Inbox
|
|
106
|
+
* replaces. Handoff and continuation envelopes carry the same plugin
|
|
107
|
+
* attribution but are ordinary delivered context the new generation keeps, so
|
|
108
|
+
* they are excluded rather than dropped.
|
|
109
|
+
*/
|
|
105
110
|
private isTeamNotice;
|
|
106
111
|
/** Drop one Member's bookkeeping; the Host calls this on dispose/removal. */
|
|
107
112
|
stopTracking(memberId: AgentTeamMemberId): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-management.d.ts","sourceRoot":"","sources":["../../src/context-management.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAGvD,OAAO,EAIL,qBAAqB,EACrB,KAAK,+BAA+B,EACrC,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,+BAA+B,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"context-management.d.ts","sourceRoot":"","sources":["../../src/context-management.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAGvD,OAAO,EAIL,qBAAqB,EACrB,KAAK,+BAA+B,EACrC,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,+BAA+B,EAAE,MAAM,YAAY,CAAA;AAE1G,0FAA0F;AAC1F,eAAO,MAAM,+BAA+B,wCAAwC,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AE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IA0C/F;;;;;;OAMG;IACH,mBAAmB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,+BAA+B,GAAG,IAAI;CAkBhF;AAED,+EAA+E;AAC/E,eAAO,MAAM,kBAAkB,yEAAyG,CAAA;AAExI,4EAA4E;AAC5E,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-projection.d.ts","sourceRoot":"","sources":["../../src/context-projection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAiB,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC7F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAC/E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAA;AAC/D,OAAO,
|
|
1
|
+
{"version":3,"file":"context-projection.d.ts","sourceRoot":"","sources":["../../src/context-projection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAiB,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC7F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAC/E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAA;AAC/D,OAAO,EAA0F,+BAA+B,EAAE,MAAM,qBAAqB,CAAA;AAuB7J,kFAAkF;AAClF,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAEhE;AAED,mDAAmD;AACnD,eAAO,MAAM,4BAA4B,uBAAuB,CAAA;AAChE,eAAO,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ACpB,gFAAgF;IAChF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,uDAAuD;IACvD,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,eAAe,GAAG,SAAS,GAAG,YAAY,GAAG,MAAM,CAAA;IAC9E,wEAAwE;IACxE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,wFAAwF;IACxF,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,+BAA+B,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,iBAAiB,EAAE,CAgBtH;AAED,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,KAAK,EAAE,+BAA+B,EAAE,aAAa,EAAE,MAAM,GAAG,sBAAsB,GAAG,SAAS,CAEjI"}
|
|
@@ -1,28 +1,41 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Plugin-attributed message sources for Agent Team context management.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Both sources ride ordinary `UserMessage`s under the shipped `plugin` kind
|
|
5
|
+
* with the `snapshot` context form — the same shape the Harness's own
|
|
6
|
+
* system-prompt producer writes. This module declares no `MessageSourceMap`
|
|
7
|
+
* member of its own, and carries no bespoke source members: Session format
|
|
8
|
+
* migration validates a `plugin` source against a closed member list
|
|
9
|
+
* (`kind`, `plugin`, `form`, `sections`, `summary`), and refuses every logged
|
|
10
|
+
* Session that carries anything else. A plugin-declared kind is type-legal yet
|
|
11
|
+
* refused the same way. See `docs/dsh-release-compatibility.md`
|
|
12
|
+
* § "Session message sources".
|
|
13
|
+
*
|
|
14
|
+
* Everything the Host needs to read back therefore rides the admitted payload
|
|
15
|
+
* slots: the handoff envelope and the checkpoint correlation both travel as
|
|
16
|
+
* named {@link ContextSnapshotSection} contributions, distinguished by their
|
|
17
|
+
* stable section names. Sections are the format's designed slot for structured
|
|
18
|
+
* producer payload, and they render as named contributions on any
|
|
19
|
+
* snapshot-aware surface.
|
|
20
|
+
*
|
|
21
|
+
* The validators below are the single place that recognizes these messages, so
|
|
22
|
+
* callers never match on localized body text.
|
|
8
23
|
* @module @wowyuarm/dsh-agent-team/context-source
|
|
9
24
|
*/
|
|
10
25
|
import type { ContextSnapshotSection, UserMessage } from '@deepseek-ai/dsh-llm';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/** Envelope version; bumps when the envelope fields change meaning. */
|
|
25
|
-
readonly version: 1;
|
|
26
|
+
/** Plugin identity attributing every Agent Team message source. */
|
|
27
|
+
export declare const AGENT_TEAM_PLUGIN_ID = "@wowyuarm/dsh-agent-team";
|
|
28
|
+
/** Handoff snapshot section name carrying the model-authored prose. */
|
|
29
|
+
export declare const HANDOFF_SECTION_NAME = "HANDOFF";
|
|
30
|
+
/** Stable section name marking a checkpoint continuation and carrying its ref. */
|
|
31
|
+
export declare const CHECKPOINT_SECTION_NAME = "Checkpoint";
|
|
32
|
+
/** Fixed text of the quiet checkpoint continuation delivered on the next turn. */
|
|
33
|
+
export declare const CHECKPOINT_CONTINUATION_TEXT = "A context checkpoint was recorded at the end of the previous turn. Continue the work you were doing.";
|
|
34
|
+
/**
|
|
35
|
+
* The rollover handoff envelope: the model-authored prose plus the verifiable
|
|
36
|
+
* Host facts, all as named snapshot contributions.
|
|
37
|
+
*/
|
|
38
|
+
export interface AgentTeamContextHandoff {
|
|
26
39
|
/** The Member's Session before this rollover. */
|
|
27
40
|
readonly previousSessionId: string;
|
|
28
41
|
/** The rollover generation this handoff opened. */
|
|
@@ -38,24 +51,13 @@ export interface AgentTeamContextHandoffSource {
|
|
|
38
51
|
/** Named contributions, starting with the model-authored handoff prose. */
|
|
39
52
|
readonly sections: readonly ContextSnapshotSection[];
|
|
40
53
|
}
|
|
41
|
-
/** Quiet wake that continues work in the turn after an explicit checkpoint. */
|
|
42
|
-
export interface AgentTeamContextContinuationSource {
|
|
43
|
-
readonly kind: 'agent-team-context-continuation';
|
|
44
|
-
readonly form: 'notice';
|
|
45
|
-
/** Stable summary identifying this notice family. */
|
|
46
|
-
readonly summary: string;
|
|
47
|
-
/** The checkpoint this continuation follows; ties the wake to its anchor. */
|
|
48
|
-
readonly checkpointRef: string;
|
|
49
|
-
/** Envelope version. */
|
|
50
|
-
readonly version: 1;
|
|
51
|
-
}
|
|
52
|
-
/** Stable one-line account for checkpoint continuation notices. */
|
|
53
|
-
export declare const CONTEXT_CONTINUATION_NOTICE_SUMMARY = "Context checkpoint recorded; work continues in the next turn";
|
|
54
|
-
/** Handoff snapshot section name carrying the model-authored prose. */
|
|
55
|
-
export declare const HANDOFF_SECTION_NAME = "HANDOFF";
|
|
56
54
|
/**
|
|
57
55
|
* Build the first model-facing context of one rollover generation. The Host
|
|
58
56
|
* owns only the verifiable envelope; the prose is the Member's own handoff.
|
|
57
|
+
*
|
|
58
|
+
* The envelope sections are additive structure, not the only carrier of these
|
|
59
|
+
* facts: {@link handoffBody} already states them in the model-facing text, so a
|
|
60
|
+
* surface that renders only the body loses nothing.
|
|
59
61
|
*/
|
|
60
62
|
export declare function createHandoffMessage(input: {
|
|
61
63
|
readonly handoff: string;
|
|
@@ -74,10 +76,42 @@ export declare function createHandoffMessage(input: {
|
|
|
74
76
|
* concluded its turn. Delivery is scheduled only after the checkpoint's
|
|
75
77
|
* successful tool result is durable, so a result-render failure can never
|
|
76
78
|
* leave a ghost continuation behind.
|
|
79
|
+
*
|
|
80
|
+
* This is a `snapshot` rather than a `notice` for one reason: the projection
|
|
81
|
+
* must read the checkpoint ref back out of the durable log to record delivery,
|
|
82
|
+
* and `sections` is the only admitted payload slot that carries structure. A
|
|
83
|
+
* notice would have forced the ref into its human-readable one-line summary.
|
|
77
84
|
*/
|
|
78
85
|
export declare function createCheckpointContinuationMessage(checkpointRef: string): UserMessage;
|
|
86
|
+
/**
|
|
87
|
+
* The rollover handoff one message carries, when it is one.
|
|
88
|
+
* @param message - candidate user message.
|
|
89
|
+
* @returns the envelope, or `undefined` when the message is not a handoff.
|
|
90
|
+
*/
|
|
91
|
+
export declare function handoffOf(message: UserMessage): AgentTeamContextHandoff | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* The checkpoint ref one continuation notice carries, when the message is one.
|
|
94
|
+
* @param message - candidate user message.
|
|
95
|
+
* @returns the checkpoint ref, or `undefined` when the message is not a continuation.
|
|
96
|
+
*/
|
|
97
|
+
export declare function continuationCheckpointRefOf(message: UserMessage): string | undefined;
|
|
79
98
|
/** Whether one user message is a rollover handoff snapshot. */
|
|
80
99
|
export declare function isHandoffMessage(message: UserMessage): boolean;
|
|
81
|
-
/** Whether one user message is a checkpoint continuation
|
|
100
|
+
/** Whether one user message is a checkpoint continuation, optionally for one checkpoint. */
|
|
82
101
|
export declare function isCheckpointContinuationMessage(message: UserMessage, checkpointRef?: string): boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Whether one message carries a rollover-handoff or checkpoint-continuation
|
|
104
|
+
* envelope. Ordinary Team notices share this plugin's attribution, so callers
|
|
105
|
+
* that replace rederived notices must exclude these two families explicitly.
|
|
106
|
+
*/
|
|
107
|
+
export declare function isAgentTeamContextSource(message: UserMessage): boolean;
|
|
108
|
+
/** Envelope section names; stable, because they are read back from the log.
|
|
109
|
+
* Exported for the legacy-artifact remediation, which rewrites pre-0.1.10
|
|
110
|
+
* envelopes into exactly these names — one shared vocabulary, no drift. */
|
|
111
|
+
export declare const HANDOFF_PREVIOUS_SESSION = "Previous session";
|
|
112
|
+
export declare const HANDOFF_NEW_SESSION = "New session";
|
|
113
|
+
export declare const HANDOFF_TRIGGER = "Trigger";
|
|
114
|
+
export declare const HANDOFF_EVENT_SEQ = "Handoff event seq";
|
|
115
|
+
export declare const HANDOFF_CHECKPOINT = "Continued from checkpoint";
|
|
116
|
+
export declare const HANDOFF_RELATED_FILES = "Related files";
|
|
83
117
|
//# sourceMappingURL=context-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-source.d.ts","sourceRoot":"","sources":["../../src/context-source.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"context-source.d.ts","sourceRoot":"","sources":["../../src/context-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAG/E,mEAAmE;AACnE,eAAO,MAAM,oBAAoB,6BAA6B,CAAA;AAE9D,uEAAuE;AACvE,eAAO,MAAM,oBAAoB,YAAY,CAAA;AAE7C,kFAAkF;AAClF,eAAO,MAAM,uBAAuB,eAAe,CAAA;AAEnD,kFAAkF;AAClF,eAAO,MAAM,4BAA4B,yGAAyG,CAAA;AAElJ;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,iDAAiD;IACjD,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAA;IAClC,mDAAmD;IACnD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,iCAAiC;IACjC,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAA;IACtC,wFAAwF;IACxF,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;IAChC,2EAA2E;IAC3E,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAA;IAC/B,0DAA0D;IAC1D,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACzC,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,EAAE,SAAS,sBAAsB,EAAE,CAAA;CACrD;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAC1C,QAAQ,CAAC,OAAO,EAAE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