@wowyuarm/dsh-agent-team 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/package.json +2 -1
  2. package/packages/agent-team/README.md +5 -3
  3. package/packages/agent-team/README.zh.md +5 -3
  4. package/packages/agent-team/core-skills/member-skill-manager/SKILL.md +2 -0
  5. package/packages/agent-team/lib/attachments.js +14 -4
  6. package/packages/agent-team/lib/context-management.js +379 -0
  7. package/packages/agent-team/lib/context-projection.js +574 -0
  8. package/packages/agent-team/lib/context-source.js +72 -0
  9. package/packages/agent-team/lib/index.js +1258 -54
  10. package/packages/agent-team/lib/ledger.js +357 -26
  11. package/packages/agent-team/lib/member-context.js +7 -3
  12. package/packages/agent-team/lib/member-runtime.js +159 -4
  13. package/packages/agent-team/lib/pressure-policy.js +200 -0
  14. package/packages/agent-team/lib/progress-nudge.js +320 -0
  15. package/packages/agent-team/lib/spec.js +18 -0
  16. package/packages/agent-team/lib/typert.host.js +124 -42
  17. package/packages/agent-team/lib/typert.remote-client.d.ts.map +1 -1
  18. package/packages/agent-team/lib/typert.remote-client.js +39 -25
  19. package/packages/agent-team/lib/types/attachments.d.ts +1 -1
  20. package/packages/agent-team/lib/types/attachments.d.ts.map +1 -1
  21. package/packages/agent-team/lib/types/context-management.d.ts +142 -0
  22. package/packages/agent-team/lib/types/context-management.d.ts.map +1 -0
  23. package/packages/agent-team/lib/types/context-projection.d.ts +219 -0
  24. package/packages/agent-team/lib/types/context-projection.d.ts.map +1 -0
  25. package/packages/agent-team/lib/types/context-source.d.ts +83 -0
  26. package/packages/agent-team/lib/types/context-source.d.ts.map +1 -0
  27. package/packages/agent-team/lib/types/index.d.ts +283 -2
  28. package/packages/agent-team/lib/types/index.d.ts.map +1 -1
  29. package/packages/agent-team/lib/types/ledger.d.ts +120 -7
  30. package/packages/agent-team/lib/types/ledger.d.ts.map +1 -1
  31. package/packages/agent-team/lib/types/member-context.d.ts.map +1 -1
  32. package/packages/agent-team/lib/types/member-runtime.d.ts +30 -2
  33. package/packages/agent-team/lib/types/member-runtime.d.ts.map +1 -1
  34. package/packages/agent-team/lib/types/pressure-policy.d.ts +106 -0
  35. package/packages/agent-team/lib/types/pressure-policy.d.ts.map +1 -0
  36. package/packages/agent-team/lib/types/progress-nudge.d.ts +136 -0
  37. package/packages/agent-team/lib/types/progress-nudge.d.ts.map +1 -0
  38. package/packages/agent-team/lib/types/spec.d.ts.map +1 -1
  39. package/packages/agent-team/lib/types/types/entities.d.ts +32 -1
  40. package/packages/agent-team/lib/types/types/entities.d.ts.map +1 -1
  41. package/packages/agent-team/lib/types/types/operations.d.ts +38 -3
  42. package/packages/agent-team/lib/types/types/operations.d.ts.map +1 -1
  43. package/packages/agent-team/lib/types/types/requests-results.d.ts +54 -1
  44. package/packages/agent-team/lib/types/types/requests-results.d.ts.map +1 -1
  45. package/packages/agent-team/preset/team-member/agent.cordis.yml +10 -2
  46. package/packages/client-agent-team/lib/client.js +283 -398
  47. package/packages/client-agent-team/lib/client.js.map +1 -1
  48. package/packages/client-agent-team/lib/types/client/TeamAgentsPanel.d.ts +1 -2
  49. package/packages/client-agent-team/lib/types/client/TeamAgentsPanel.d.ts.map +1 -1
  50. package/packages/client-agent-team/lib/types/client/TeamAgentsPanel.js +61 -41
  51. package/packages/client-agent-team/lib/types/client/TeamChannelPage.d.ts.map +1 -1
  52. package/packages/client-agent-team/lib/types/client/TeamChannelPage.js +3 -7
  53. package/packages/client-agent-team/lib/types/client/TeamComposer.d.ts +3 -1
  54. package/packages/client-agent-team/lib/types/client/TeamComposer.d.ts.map +1 -1
  55. package/packages/client-agent-team/lib/types/client/TeamComposer.js +37 -27
  56. package/packages/client-agent-team/lib/types/client/TeamConversation.d.ts +1 -1
  57. package/packages/client-agent-team/lib/types/client/TeamConversation.d.ts.map +1 -1
  58. package/packages/client-agent-team/lib/types/client/TeamConversation.js +2 -2
  59. package/packages/client-agent-team/lib/types/client/TeamMemberAvatar.d.ts.map +1 -1
  60. package/packages/client-agent-team/lib/types/client/TeamMemberAvatar.js +3 -2
  61. package/packages/client-agent-team/lib/types/client/TeamMessage.js +5 -0
  62. package/packages/client-agent-team/lib/types/client/TeamPresenceDot.d.ts +2 -2
  63. package/packages/client-agent-team/lib/types/client/TeamPresenceDot.d.ts.map +1 -1
  64. package/packages/client-agent-team/lib/types/client/TeamPresenceDot.js +4 -6
  65. package/packages/client-agent-team/lib/types/client/TeamStateDot.d.ts +14 -0
  66. package/packages/client-agent-team/lib/types/client/TeamStateDot.d.ts.map +1 -0
  67. package/packages/client-agent-team/lib/types/client/TeamStateDot.js +15 -0
  68. package/packages/client-agent-team/lib/types/client/TeamThreadPage.d.ts +1 -0
  69. package/packages/client-agent-team/lib/types/client/TeamThreadPage.d.ts.map +1 -1
  70. package/packages/client-agent-team/lib/types/client/TeamThreadPage.js +41 -16
  71. package/packages/client-agent-team/lib/types/client/TeamWorkspaceBrowser.d.ts +1 -1
  72. package/packages/client-agent-team/lib/types/client/TeamWorkspaceBrowser.d.ts.map +1 -1
  73. package/packages/client-agent-team/lib/types/client/TeamWorkspaceBrowser.js +2 -2
  74. package/packages/client-agent-team/lib/types/client/index.d.ts.map +1 -1
  75. package/packages/client-agent-team/lib/types/client/index.js +36 -78
  76. package/packages/client-agent-team/lib/types/client/locales.d.ts +0 -16
  77. package/packages/client-agent-team/lib/types/client/locales.d.ts.map +1 -1
  78. package/packages/client-agent-team/lib/types/client/locales.js +0 -16
  79. package/packages/client-agent-team/lib/types/client/sidebar-drag.d.ts +1 -2
  80. package/packages/client-agent-team/lib/types/client/sidebar-drag.d.ts.map +1 -1
  81. package/packages/client-agent-team/lib/types/client/slots.d.ts +8 -1
  82. package/packages/client-agent-team/lib/types/client/slots.d.ts.map +1 -1
  83. package/packages/client-agent-team/lib/types/client/task-refs.d.ts +7 -1
  84. package/packages/client-agent-team/lib/types/client/task-refs.d.ts.map +1 -1
  85. package/packages/client-agent-team/lib/types/client/task-refs.js +25 -3
  86. package/packages/client-agent-team/lib/types/client/team-formatters.d.ts +11 -10
  87. package/packages/client-agent-team/lib/types/client/team-formatters.d.ts.map +1 -1
  88. package/packages/client-agent-team/lib/types/client/team-formatters.js +14 -11
  89. package/packages/tool-agent-team/README.md +8 -5
  90. package/packages/tool-agent-team/README.zh.md +8 -5
  91. package/packages/tool-agent-team/lib/context-tools.js +179 -0
  92. package/packages/tool-agent-team/lib/index.js +144 -25
  93. package/packages/tool-agent-team/lib/types/context-tools.d.ts +16 -0
  94. package/packages/tool-agent-team/lib/types/context-tools.d.ts.map +1 -0
  95. package/packages/tool-agent-team/lib/types/index.d.ts.map +1 -1
  96. package/packages/agent-team/lib/auto-compaction.js +0 -201
  97. package/packages/agent-team/lib/types/auto-compaction.d.ts +0 -47
  98. package/packages/agent-team/lib/types/auto-compaction.d.ts.map +0 -1
  99. package/packages/client-agent-team/lib/types/client/TeamMemberDock.d.ts +0 -12
  100. package/packages/client-agent-team/lib/types/client/TeamMemberDock.d.ts.map +0 -1
  101. package/packages/client-agent-team/lib/types/client/TeamMemberDock.js +0 -13
  102. package/packages/client-agent-team/lib/types/client/member-session-input.d.ts +0 -20
  103. package/packages/client-agent-team/lib/types/client/member-session-input.d.ts.map +0 -1
  104. package/packages/client-agent-team/lib/types/client/member-session-input.js +0 -110
@@ -203,6 +203,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_changeTask_result$schema = z.union([z.o
203
203
  'kind': z.union([z.literal("accept"), z.literal("close"), z.literal("reopen"), z.literal("promote")]).readonly(),
204
204
  'releasedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
205
205
  'completedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
206
+ 'acceptedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
206
207
  'activityRef': z.intersection(z.string(), z.unknown()).readonly(),
207
208
  'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
208
209
  'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
@@ -431,6 +432,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_promoteThread_result$schema = z.union([
431
432
  'kind': z.union([z.literal("accept"), z.literal("close"), z.literal("reopen"), z.literal("promote")]).readonly(),
432
433
  'releasedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
433
434
  'completedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
435
+ 'acceptedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
434
436
  'activityRef': z.intersection(z.string(), z.unknown()).readonly(),
435
437
  'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
436
438
  'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
@@ -544,6 +546,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema = z.object({
544
546
  'kind': z.union([z.literal("accept"), z.literal("close"), z.literal("reopen"), z.literal("promote")]).readonly(),
545
547
  'releasedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
546
548
  'completedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
549
+ 'acceptedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
547
550
  'activityRef': z.intersection(z.string(), z.unknown()).readonly(),
548
551
  'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
549
552
  'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
@@ -584,6 +587,14 @@ const _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema = z.object({
584
587
  'messageRef': z.intersection(z.string(), z.unknown()).readonly(),
585
588
  'sequence': z.number().readonly(),
586
589
  })).readonly(),
590
+ 'contextAdvice': z.object({
591
+ 'usageTokens': z.union([z.undefined(), z.number()]).readonly().optional(),
592
+ 'taskBoundaryThreshold': z.union([z.undefined(), z.number()]).readonly().optional(),
593
+ 'handoffAt': z.union([z.undefined(), z.number()]).readonly().optional(),
594
+ 'hardLimit': z.union([z.undefined(), z.number()]).readonly().optional(),
595
+ 'action': z.union([z.literal("unavailable"), z.literal("keep"), z.literal("rollover"), z.literal("handoff-now")]).readonly(),
596
+ 'guidance': z.string().readonly(),
597
+ }).readonly().optional(),
587
598
  })
588
599
  const _wowyuarm_dsh_agent_team_agentTeam_recoverMember_parameter_0$schema = z.object({
589
600
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -907,6 +918,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema = z.object(
907
918
  'kind': z.union([z.literal("accept"), z.literal("close"), z.literal("reopen"), z.literal("promote")]).readonly(),
908
919
  'releasedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
909
920
  'completedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
921
+ 'acceptedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
910
922
  'activityRef': z.intersection(z.string(), z.unknown()).readonly(),
911
923
  'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
912
924
  'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
@@ -947,6 +959,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_threadObservations_result$schema = z.ob
947
959
  'memberId': z.intersection(z.string(), z.unknown()).readonly(),
948
960
  'action': z.union([z.literal("follow"), z.literal("unfollow")]).readonly(),
949
961
  })).readonly(),
962
+ 'followers': z.array(z.intersection(z.string(), z.unknown())).readonly(),
950
963
  })
951
964
  const _wowyuarm_dsh_agent_team_agentTeam_updateChannel_parameter_0$schema = z.object({
952
965
  'requestId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -1115,6 +1128,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_view_result$schema = z.object({
1115
1128
  'kind': z.union([z.literal("accept"), z.literal("close"), z.literal("reopen"), z.literal("promote")]).readonly(),
1116
1129
  'releasedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
1117
1130
  'completedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
1131
+ 'acceptedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
1118
1132
  'activityRef': z.intersection(z.string(), z.unknown()).readonly(),
1119
1133
  'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
1120
1134
  'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
@@ -1170,7 +1184,7 @@ export const TYPERT = {
1170
1184
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamMemberResult',
1171
1185
  schema: _wowyuarm_dsh_agent_team_agentTeam_addMember_result$schema,
1172
1186
  },
1173
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":438,"column":9},
1187
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":616,"column":9},
1174
1188
  },
1175
1189
  {
1176
1190
  id: '@wowyuarm/dsh-agent-team#agentTeam/archiveChannel',
@@ -1195,7 +1209,7 @@ export const TYPERT = {
1195
1209
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamArchiveChannelResult',
1196
1210
  schema: _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_result$schema,
1197
1211
  },
1198
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":428,"column":9},
1212
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":606,"column":9},
1199
1213
  },
1200
1214
  {
1201
1215
  id: '@wowyuarm/dsh-agent-team#agentTeam/archiveMember',
@@ -1220,7 +1234,7 @@ export const TYPERT = {
1220
1234
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamArchiveMemberResult',
1221
1235
  schema: _wowyuarm_dsh_agent_team_agentTeam_archiveMember_result$schema,
1222
1236
  },
1223
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":701,"column":9},
1237
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":987,"column":9},
1224
1238
  },
1225
1239
  {
1226
1240
  id: '@wowyuarm/dsh-agent-team#agentTeam/changeAttention',
@@ -1245,7 +1259,7 @@ export const TYPERT = {
1245
1259
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadAttentionResult',
1246
1260
  schema: _wowyuarm_dsh_agent_team_agentTeam_changeAttention_result$schema,
1247
1261
  },
1248
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":823,"column":9},
1262
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1109,"column":9},
1249
1263
  },
1250
1264
  {
1251
1265
  id: '@wowyuarm/dsh-agent-team#agentTeam/changes',
@@ -1271,7 +1285,7 @@ export const TYPERT = {
1271
1285
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamChangesResult',
1272
1286
  schema: _wowyuarm_dsh_agent_team_agentTeam_changes_result$schema,
1273
1287
  },
1274
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":360,"column":9},
1288
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":538,"column":9},
1275
1289
  },
1276
1290
  {
1277
1291
  id: '@wowyuarm/dsh-agent-team#agentTeam/changeTask',
@@ -1296,7 +1310,7 @@ export const TYPERT = {
1296
1310
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamTaskResult',
1297
1311
  schema: _wowyuarm_dsh_agent_team_agentTeam_changeTask_result$schema,
1298
1312
  },
1299
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":713,"column":9},
1313
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":999,"column":9},
1300
1314
  },
1301
1315
  {
1302
1316
  id: '@wowyuarm/dsh-agent-team#agentTeam/clearMemberContext',
@@ -1321,7 +1335,7 @@ export const TYPERT = {
1321
1335
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamClearMemberContextResult',
1322
1336
  schema: _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_result$schema,
1323
1337
  },
1324
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":531,"column":9},
1338
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":715,"column":9},
1325
1339
  },
1326
1340
  {
1327
1341
  id: '@wowyuarm/dsh-agent-team#agentTeam/createChannel',
@@ -1346,7 +1360,7 @@ export const TYPERT = {
1346
1360
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamCreateChannelResult',
1347
1361
  schema: _wowyuarm_dsh_agent_team_agentTeam_createChannel_result$schema,
1348
1362
  },
1349
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":401,"column":9},
1363
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":579,"column":9},
1350
1364
  },
1351
1365
  {
1352
1366
  id: '@wowyuarm/dsh-agent-team#agentTeam/getAttachment',
@@ -1371,7 +1385,7 @@ export const TYPERT = {
1371
1385
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamGetAttachmentResult',
1372
1386
  schema: _wowyuarm_dsh_agent_team_agentTeam_getAttachment_result$schema,
1373
1387
  },
1374
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":809,"column":9},
1388
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1095,"column":9},
1375
1389
  },
1376
1390
  {
1377
1391
  id: '@wowyuarm/dsh-agent-team#agentTeam/inbox',
@@ -1396,7 +1410,7 @@ export const TYPERT = {
1396
1410
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamInbox',
1397
1411
  schema: _wowyuarm_dsh_agent_team_agentTeam_inbox_result$schema,
1398
1412
  },
1399
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":832,"column":3},
1413
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1118,"column":3},
1400
1414
  },
1401
1415
  {
1402
1416
  id: '@wowyuarm/dsh-agent-team#agentTeam/joinChannel',
@@ -1421,7 +1435,7 @@ export const TYPERT = {
1421
1435
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamJoinChannelResult',
1422
1436
  schema: _wowyuarm_dsh_agent_team_agentTeam_joinChannel_result$schema,
1423
1437
  },
1424
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":733,"column":9},
1438
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1019,"column":9},
1425
1439
  },
1426
1440
  {
1427
1441
  id: '@wowyuarm/dsh-agent-team#agentTeam/members',
@@ -1447,7 +1461,7 @@ export const TYPERT = {
1447
1461
  typeSymbol: '@wowyuarm/dsh-agent-team#agentTeam/members:result',
1448
1462
  schema: _wowyuarm_dsh_agent_team_agentTeam_members_result$schema,
1449
1463
  },
1450
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":351,"column":3},
1464
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":529,"column":3},
1451
1465
  },
1452
1466
  {
1453
1467
  id: '@wowyuarm/dsh-agent-team#agentTeam/promoteThread',
@@ -1472,7 +1486,7 @@ export const TYPERT = {
1472
1486
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPromoteThreadResult',
1473
1487
  schema: _wowyuarm_dsh_agent_team_agentTeam_promoteThread_result$schema,
1474
1488
  },
1475
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":723,"column":9},
1489
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1009,"column":9},
1476
1490
  },
1477
1491
  {
1478
1492
  id: '@wowyuarm/dsh-agent-team#agentTeam/putAttachment',
@@ -1497,7 +1511,7 @@ export const TYPERT = {
1497
1511
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPutAttachmentResult',
1498
1512
  schema: _wowyuarm_dsh_agent_team_agentTeam_putAttachment_result$schema,
1499
1513
  },
1500
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":796,"column":9},
1514
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1082,"column":9},
1501
1515
  },
1502
1516
  {
1503
1517
  id: '@wowyuarm/dsh-agent-team#agentTeam/readThread',
@@ -1522,7 +1536,7 @@ export const TYPERT = {
1522
1536
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadReadResult',
1523
1537
  schema: _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema,
1524
1538
  },
1525
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":839,"column":9},
1539
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1125,"column":9},
1526
1540
  },
1527
1541
  {
1528
1542
  id: '@wowyuarm/dsh-agent-team#agentTeam/recoverMember',
@@ -1547,7 +1561,7 @@ export const TYPERT = {
1547
1561
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRecoverMemberResult',
1548
1562
  schema: _wowyuarm_dsh_agent_team_agentTeam_recoverMember_result$schema,
1549
1563
  },
1550
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":492,"column":9},
1564
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":676,"column":9},
1551
1565
  },
1552
1566
  {
1553
1567
  id: '@wowyuarm/dsh-agent-team#agentTeam/removeChannelMember',
@@ -1572,7 +1586,7 @@ export const TYPERT = {
1572
1586
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRemoveChannelMemberResult',
1573
1587
  schema: _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_result$schema,
1574
1588
  },
1575
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":744,"column":9},
1589
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1030,"column":9},
1576
1590
  },
1577
1591
  {
1578
1592
  id: '@wowyuarm/dsh-agent-team#agentTeam/reply',
@@ -1597,7 +1611,7 @@ export const TYPERT = {
1597
1611
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamReplyResult',
1598
1612
  schema: _wowyuarm_dsh_agent_team_agentTeam_reply_result$schema,
1599
1613
  },
1600
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":817,"column":9},
1614
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1103,"column":9},
1601
1615
  },
1602
1616
  {
1603
1617
  id: '@wowyuarm/dsh-agent-team#agentTeam/resolveTaskRefs',
@@ -1622,7 +1636,7 @@ export const TYPERT = {
1622
1636
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamResolveTaskRefsResult',
1623
1637
  schema: _wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_result$schema,
1624
1638
  },
1625
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":338,"column":3},
1639
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":516,"column":3},
1626
1640
  },
1627
1641
  {
1628
1642
  id: '@wowyuarm/dsh-agent-team#agentTeam/sendMessage',
@@ -1647,7 +1661,7 @@ export const TYPERT = {
1647
1661
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamSendMessageResult',
1648
1662
  schema: _wowyuarm_dsh_agent_team_agentTeam_sendMessage_result$schema,
1649
1663
  },
1650
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":753,"column":9},
1664
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1039,"column":9},
1651
1665
  },
1652
1666
  {
1653
1667
  id: '@wowyuarm/dsh-agent-team#agentTeam/threadHistory',
@@ -1672,7 +1686,7 @@ export const TYPERT = {
1672
1686
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadHistory',
1673
1687
  schema: _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema,
1674
1688
  },
1675
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":855,"column":3},
1689
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1141,"column":3},
1676
1690
  },
1677
1691
  {
1678
1692
  id: '@wowyuarm/dsh-agent-team#agentTeam/threadObservations',
@@ -1697,7 +1711,7 @@ export const TYPERT = {
1697
1711
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadObservations',
1698
1712
  schema: _wowyuarm_dsh_agent_team_agentTeam_threadObservations_result$schema,
1699
1713
  },
1700
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":848,"column":3},
1714
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1134,"column":3},
1701
1715
  },
1702
1716
  {
1703
1717
  id: '@wowyuarm/dsh-agent-team#agentTeam/updateChannel',
@@ -1722,7 +1736,7 @@ export const TYPERT = {
1722
1736
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamUpdateChannelResult',
1723
1737
  schema: _wowyuarm_dsh_agent_team_agentTeam_updateChannel_result$schema,
1724
1738
  },
1725
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":413,"column":9},
1739
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":591,"column":9},
1726
1740
  },
1727
1741
  {
1728
1742
  id: '@wowyuarm/dsh-agent-team#agentTeam/updateMember',
@@ -1747,7 +1761,7 @@ export const TYPERT = {
1747
1761
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamMemberResult',
1748
1762
  schema: _wowyuarm_dsh_agent_team_agentTeam_updateMember_result$schema,
1749
1763
  },
1750
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":641,"column":9},
1764
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":927,"column":9},
1751
1765
  },
1752
1766
  {
1753
1767
  id: '@wowyuarm/dsh-agent-team#agentTeam/view',
@@ -1772,7 +1786,7 @@ export const TYPERT = {
1772
1786
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamView',
1773
1787
  schema: _wowyuarm_dsh_agent_team_agentTeam_view_result$schema,
1774
1788
  },
1775
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":862,"column":3},
1789
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1148,"column":3},
1776
1790
  },
1777
1791
  ],
1778
1792
  model: {
@@ -2073,6 +2087,34 @@ export const TYPERT = {
2073
2087
  "signature": "validateLedger(): void",
2074
2088
  "summary": "Validate the durable ledger against an independently replayed projection.",
2075
2089
  "jsDoc": "/** Validate the durable ledger against an independently replayed projection. */"
2090
+ },
2091
+ {
2092
+ "kind": "method",
2093
+ "name": "recordCheckpointForAgent",
2094
+ "signature": "recordCheckpointForAgent(agent: Agent, request: AgentTeamCheckpointToolRequest): AgentTeamCheckpointToolOutcome",
2095
+ "summary": "Agent-only checkpoint request validation: the tool calls this inside its own running turn.",
2096
+ "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 */"
2097
+ },
2098
+ {
2099
+ "kind": "method",
2100
+ "name": "contextTimelineForAgent",
2101
+ "signature": "async contextTimelineForAgent(agent: Agent, request: AgentTeamTimelineToolRequest): Promise<AgentTeamTimelineToolResult>",
2102
+ "summary": "Agent-only bounded structural timeline: resolved checkpoints plus Team delivery, handoff, and compaction boundaries across the current generation and its archived ancestor lineage.",
2103
+ "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 */"
2104
+ },
2105
+ {
2106
+ "kind": "method",
2107
+ "name": "requestNewContext",
2108
+ "signature": "async requestNewContext(agent: Agent, request: AgentTeamNewContextToolRequest): Promise<AgentTeamNewContextToolOutcome>",
2109
+ "summary": "Agent-only rollover request validation: the tool calls this to check its Member binding, exclusivity, and checkpoint ownership.",
2110
+ "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 */"
2111
+ },
2112
+ {
2113
+ "kind": "method",
2114
+ "name": "rolloverSessionForAgent",
2115
+ "signature": "async rolloverSessionForAgent(agent: Agent, request: AgentTeamRolloverSessionRequest): Promise<AgentTeamDurableMemberResult>",
2116
+ "summary": "Agent-only session rollover commit: the Member actor must be the target Member on its currently bound live Session.",
2117
+ "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 */"
2076
2118
  }
2077
2119
  ],
2078
2120
  "types": [
@@ -2164,6 +2206,14 @@ export const TYPERT = {
2164
2206
  "name": "AgentTeamChannelRef",
2165
2207
  "declaration": "export type AgentTeamChannelRef = Branded<'AgentTeamChannelRef'>;"
2166
2208
  },
2209
+ {
2210
+ "name": "AgentTeamCheckpointToolOutcome",
2211
+ "declaration": "export interface AgentTeamCheckpointToolOutcome {\n readonly checkpointRef: AgentTeamContextCheckpointRef;\n readonly name: string;\n}"
2212
+ },
2213
+ {
2214
+ "name": "AgentTeamCheckpointToolRequest",
2215
+ "declaration": "export interface AgentTeamCheckpointToolRequest {\n readonly memberId: AgentTeamMemberId;\n readonly callId: string;\n readonly name: string;\n}"
2216
+ },
2167
2217
  {
2168
2218
  "name": "AgentTeamClaim",
2169
2219
  "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}"
@@ -2220,6 +2270,22 @@ export const TYPERT = {
2220
2270
  "name": "AgentTeamConfirmationToken",
2221
2271
  "declaration": "export type AgentTeamConfirmationToken = Branded<'AgentTeamConfirmationToken'>;"
2222
2272
  },
2273
+ {
2274
+ "name": "AgentTeamContextAdvice",
2275
+ "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}"
2276
+ },
2277
+ {
2278
+ "name": "AgentTeamContextCheckpointRef",
2279
+ "declaration": "export type AgentTeamContextCheckpointRef = Branded<'AgentTeamContextCheckpointRef'>;"
2280
+ },
2281
+ {
2282
+ "name": "AgentTeamContextContinuationSource",
2283
+ "declaration": "export interface AgentTeamContextContinuationSource {\n readonly kind: 'agent-team-context-continuation';\n readonly form: 'notice';\n readonly summary: string;\n readonly checkpointRef: string;\n readonly version: 1;\n}"
2284
+ },
2285
+ {
2286
+ "name": "AgentTeamContextHandoffSource",
2287
+ "declaration": "export interface AgentTeamContextHandoffSource {\n readonly kind: 'agent-team-context-handoff';\n readonly form: 'snapshot';\n readonly version: 1;\n readonly previousSessionId: string;\n readonly newSessionId: string;\n readonly trigger: 'model' | 'pressure';\n readonly handoffEventSeq: number;\n readonly checkpointRef?: string;\n readonly relatedFiles?: readonly string[];\n readonly sections: readonly ContextSnapshotSection[];\n}"
2288
+ },
2223
2289
  {
2224
2290
  "name": "AgentTeamCreateChannelRequest",
2225
2291
  "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}"
@@ -2240,6 +2306,10 @@ export const TYPERT = {
2240
2306
  "name": "AgentTeamDmResult",
2241
2307
  "declaration": "export interface AgentTeamDmResult {\n readonly receipt: AgentTeamOperationReceipt;\n readonly recipient: AgentTeamAgentMember;\n}"
2242
2308
  },
2309
+ {
2310
+ "name": "AgentTeamDurableMemberResult",
2311
+ "declaration": "export interface AgentTeamDurableMemberResult {\n readonly receipt: AgentTeamOperationReceipt;\n readonly member: AgentTeamAgentMember;\n}"
2312
+ },
2243
2313
  {
2244
2314
  "name": "AgentTeamGetAttachmentRequest",
2245
2315
  "declaration": "export interface AgentTeamGetAttachmentRequest {\n readonly attachmentId: AgentTeamAttachmentId;\n}"
@@ -2304,6 +2374,14 @@ export const TYPERT = {
2304
2374
  "name": "AgentTeamModelSelection",
2305
2375
  "declaration": "export interface AgentTeamModelSelection {\n readonly provider: string;\n readonly model: string;\n readonly reasoningEffort?: ReasoningEffortId;\n}"
2306
2376
  },
2377
+ {
2378
+ "name": "AgentTeamNewContextToolOutcome",
2379
+ "declaration": "export interface AgentTeamNewContextToolOutcome {\n readonly mode: 'fresh' | 'from-checkpoint';\n}"
2380
+ },
2381
+ {
2382
+ "name": "AgentTeamNewContextToolRequest",
2383
+ "declaration": "export interface AgentTeamNewContextToolRequest {\n readonly memberId: AgentTeamMemberId;\n readonly checkpointRef?: AgentTeamContextCheckpointRef;\n readonly relatedFiles?: readonly { readonly path: string; readonly reason: string; }[];\n}"
2384
+ },
2307
2385
  {
2308
2386
  "name": "AgentTeamOperationId",
2309
2387
  "declaration": "export type AgentTeamOperationId = Branded<'AgentTeamOperationId'>;"
@@ -2384,6 +2462,10 @@ export const TYPERT = {
2384
2462
  "name": "AgentTeamResolveTaskRefsResult",
2385
2463
  "declaration": "export interface AgentTeamResolveTaskRefsResult {\n readonly resolved: readonly AgentTeamResolvedTaskRef[];\n}"
2386
2464
  },
2465
+ {
2466
+ "name": "AgentTeamRolloverSessionRequest",
2467
+ "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}"
2468
+ },
2387
2469
  {
2388
2470
  "name": "AgentTeamSendMessageCommittedResult",
2389
2471
  "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}"
@@ -2414,7 +2496,7 @@ export const TYPERT = {
2414
2496
  },
2415
2497
  {
2416
2498
  "name": "AgentTeamTaskActivity",
2417
- "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}"
2499
+ "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}"
2418
2500
  },
2419
2501
  {
2420
2502
  "name": "AgentTeamTaskCommittedResult",
@@ -2474,7 +2556,7 @@ export const TYPERT = {
2474
2556
  },
2475
2557
  {
2476
2558
  "name": "AgentTeamThreadObservations",
2477
- "declaration": "export interface AgentTeamThreadObservations {\n readonly items: readonly AgentTeamThreadAttentionObservation[];\n}"
2559
+ "declaration": "export interface AgentTeamThreadObservations {\n readonly items: readonly AgentTeamThreadAttentionObservation[];\n readonly followers: readonly AgentTeamMemberId[];\n}"
2478
2560
  },
2479
2561
  {
2480
2562
  "name": "AgentTeamThreadObservationsRequest",
@@ -2490,12 +2572,24 @@ export const TYPERT = {
2490
2572
  },
2491
2573
  {
2492
2574
  "name": "AgentTeamThreadReadResult",
2493
- "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}"
2575
+ "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}"
2494
2576
  },
2495
2577
  {
2496
2578
  "name": "AgentTeamThreadRef",
2497
2579
  "declaration": "export type AgentTeamThreadRef = Branded<'AgentTeamThreadRef'>;"
2498
2580
  },
2581
+ {
2582
+ "name": "AgentTeamTimelineItem",
2583
+ "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}"
2584
+ },
2585
+ {
2586
+ "name": "AgentTeamTimelineToolRequest",
2587
+ "declaration": "export interface AgentTeamTimelineToolRequest {\n readonly memberId: AgentTeamMemberId;\n readonly limit?: number;\n}"
2588
+ },
2589
+ {
2590
+ "name": "AgentTeamTimelineToolResult",
2591
+ "declaration": "export interface AgentTeamTimelineToolResult {\n readonly usageTokens: number;\n readonly hardLimit: number;\n readonly handoffAt: number;\n readonly items: readonly AgentTeamTimelineItem[];\n}"
2592
+ },
2499
2593
  {
2500
2594
  "name": "AgentTeamUnreadRequired",
2501
2595
  "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}"
@@ -2636,14 +2730,6 @@ export const TYPERT = {
2636
2730
  "name": "LlmFailure",
2637
2731
  "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}"
2638
2732
  },
2639
- {
2640
- "name": "LlmRetryEventData",
2641
- "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; };"
2642
- },
2643
- {
2644
- "name": "LlmRetryStartedEventData",
2645
- "declaration": "export interface LlmRetryStartedEventData {\n retryId: RetryId;\n turn: number;\n step: number;\n retry: number;\n}"
2646
- },
2647
2733
  {
2648
2734
  "name": "Message",
2649
2735
  "declaration": "export interface Message {\n readonly id: MessageId;\n readonly role: 'system' | 'user' | 'assistant';\n readonly content: ContentBlock[];\n readonly source: MessageSource;\n}"
@@ -2658,7 +2744,7 @@ export const TYPERT = {
2658
2744
  },
2659
2745
  {
2660
2746
  "name": "MessageSourceMap",
2661
- "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n plugin: { kind: 'plugin'; plugin: string; } & ContextFormed;\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'skill-invocation': SkillInvocationSource;\n}"
2747
+ "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n plugin: { kind: 'plugin'; plugin: string; } & ContextFormed;\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'agent-team-context-handoff': AgentTeamContextHandoffSource;\n 'agent-team-context-continuation': AgentTeamContextContinuationSource;\n 'skill-invocation': SkillInvocationSource;\n}"
2662
2748
  },
2663
2749
  {
2664
2750
  "name": "ModelMessageSource",
@@ -2696,10 +2782,6 @@ export const TYPERT = {
2696
2782
  "name": "RequestHeaderReason",
2697
2783
  "declaration": "export type RequestHeaderReason = 'initial' | 'resume' | 'change' | 'series';"
2698
2784
  },
2699
- {
2700
- "name": "RetryId",
2701
- "declaration": "export type RetryId = Branded<'RetryId'>;"
2702
- },
2703
2785
  {
2704
2786
  "name": "SandboxMode",
2705
2787
  "declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
@@ -2714,7 +2796,7 @@ export const TYPERT = {
2714
2796
  },
2715
2797
  {
2716
2798
  "name": "SessionEventMap",
2717
- "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 'assistant/chunk': { turn: number; step: number; chunk: StreamChunk; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; usage?: TokenUsage; interrupted?: true; };\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': Record<string, never>;\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\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 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\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/code-dispatch-start': PtcDispatchStartEventData;\n 'tool/code-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n}"
2799
+ "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'assistant/chunk': { turn: number; step: number; chunk: StreamChunk; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; usage?: TokenUsage; interrupted?: true; };\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': Record<string, never>;\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/code-dispatch-start': PtcDispatchStartEventData;\n 'tool/code-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}"
2718
2800
  },
2719
2801
  {
2720
2802
  "name": "SessionEventType",
@@ -1 +1 @@
1
- {"version":3,"file":"typert.remote-client.d.ts","names":["addMember","archiveChannel","archiveMember","changeAttention","changes","changeTask","clearMemberContext","createChannel","getAttachment","inbox","joinChannel","members","promoteThread","putAttachment","readThread","recoverMember","removeChannelMember","reply","resolveTaskRefs","sendMessage","threadHistory","threadObservations","updateChannel","updateMember","view"],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;IAqbQA,S;IAVAC,c;IAiRAC,a;IA0HAC,e;IA/cAC,O;IAiWAC,U;IAtLAC,kB;IAlIAC,a;IAwZAC,a;IAuBNC,K;IAnGMC,W;IA9XNC,O;IAoXMC,a;IAyEAC,a;IA2CAC,U;IA3VAC,a;IA4PAC,mB;IAyEAC,K;IA/dNC,e;IA+ZMC,W;IAsGNC,a;IAPAC,kB;IAnbMC,a;IAoOAC,Y;IA6NNC,I;;;IAxaMxB,qB;IAVAC,0B;IAiRAC,yB;IA0HAC,2B;IA/cAC,mB;IAiWAC,sB;IAtLAC,8B;IAlIAC,yB;IAwZAC,yB;IAuBNC,iB;IAnGMC,uB;IA9XNC,mB;IAoXMC,yB;IAyEAC,yB;IA2CAC,sB;IA3VAC,yB;IA4PAC,+B;IAyEAC,iB;IA/dNC,2B;IA+ZMC,uB;IAsGNC,yB;IAPAC,8B;IAnbMC,yB;IAoOAC,wB;IA6NNC,gB","ignoreList":[]}
1
+ {"version":3,"file":"typert.remote-client.d.ts","names":["addMember","archiveChannel","archiveMember","changeAttention","changes","changeTask","clearMemberContext","createChannel","getAttachment","inbox","joinChannel","members","promoteThread","putAttachment","readThread","recoverMember","removeChannelMember","reply","resolveTaskRefs","sendMessage","threadHistory","threadObservations","updateChannel","updateMember","view"],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;IAumBQA,S;IAVAC,c;IA6XAC,a;IA0HAC,e;IA3jBAC,O;IA6cAC,U;IA5RAC,kB;IAxIAC,a;IAogBAC,a;IAuBNC,K;IAnGMC,W;IA1eNC,O;IAgeMC,a;IAyEAC,a;IA2CAC,U;IAjcAC,a;IAkWAC,mB;IAyEAC,K;IA3kBNC,e;IA2gBMC,W;IAsGNC,a;IAPAC,kB;IA/hBMC,a;IAgVAC,Y;IA6NNC,I;;;IAphBMxB,qB;IAVAC,0B;IA6XAC,yB;IA0HAC,2B;IA3jBAC,mB;IA6cAC,sB;IA5RAC,8B;IAxIAC,yB;IAogBAC,yB;IAuBNC,iB;IAnGMC,uB;IA1eNC,mB;IAgeMC,yB;IAyEAC,yB;IA2CAC,sB;IAjcAC,yB;IAkWAC,+B;IAyEAC,iB;IA3kBNC,2B;IA2gBMC,uB;IAsGNC,yB;IAPAC,8B;IA/hBMC,yB;IAgVAC,wB;IA6NNC,gB","ignoreList":[]}