@wowyuarm/dsh-agent-team 0.1.8 → 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 (66) 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/lib/attachments.js +14 -4
  5. package/packages/agent-team/lib/context-management.js +379 -0
  6. package/packages/agent-team/lib/context-projection.js +574 -0
  7. package/packages/agent-team/lib/context-source.js +72 -0
  8. package/packages/agent-team/lib/index.js +1208 -62
  9. package/packages/agent-team/lib/ledger.js +222 -14
  10. package/packages/agent-team/lib/member-context.js +6 -2
  11. package/packages/agent-team/lib/member-runtime.js +159 -4
  12. package/packages/agent-team/lib/pressure-policy.js +200 -0
  13. package/packages/agent-team/lib/spec.js +18 -0
  14. package/packages/agent-team/lib/typert.host.js +122 -41
  15. package/packages/agent-team/lib/typert.remote-client.d.ts.map +1 -1
  16. package/packages/agent-team/lib/typert.remote-client.js +38 -25
  17. package/packages/agent-team/lib/types/attachments.d.ts +1 -1
  18. package/packages/agent-team/lib/types/attachments.d.ts.map +1 -1
  19. package/packages/agent-team/lib/types/context-management.d.ts +142 -0
  20. package/packages/agent-team/lib/types/context-management.d.ts.map +1 -0
  21. package/packages/agent-team/lib/types/context-projection.d.ts +219 -0
  22. package/packages/agent-team/lib/types/context-projection.d.ts.map +1 -0
  23. package/packages/agent-team/lib/types/context-source.d.ts +83 -0
  24. package/packages/agent-team/lib/types/context-source.d.ts.map +1 -0
  25. package/packages/agent-team/lib/types/index.d.ts +275 -2
  26. package/packages/agent-team/lib/types/index.d.ts.map +1 -1
  27. package/packages/agent-team/lib/types/ledger.d.ts +94 -6
  28. package/packages/agent-team/lib/types/ledger.d.ts.map +1 -1
  29. package/packages/agent-team/lib/types/member-context.d.ts.map +1 -1
  30. package/packages/agent-team/lib/types/member-runtime.d.ts +30 -2
  31. package/packages/agent-team/lib/types/member-runtime.d.ts.map +1 -1
  32. package/packages/agent-team/lib/types/pressure-policy.d.ts +106 -0
  33. package/packages/agent-team/lib/types/pressure-policy.d.ts.map +1 -0
  34. package/packages/agent-team/lib/types/spec.d.ts.map +1 -1
  35. package/packages/agent-team/lib/types/types/entities.d.ts +14 -1
  36. package/packages/agent-team/lib/types/types/entities.d.ts.map +1 -1
  37. package/packages/agent-team/lib/types/types/operations.d.ts +38 -3
  38. package/packages/agent-team/lib/types/types/operations.d.ts.map +1 -1
  39. package/packages/agent-team/lib/types/types/requests-results.d.ts +52 -1
  40. package/packages/agent-team/lib/types/types/requests-results.d.ts.map +1 -1
  41. package/packages/agent-team/preset/team-member/agent.cordis.yml +9 -1
  42. package/packages/client-agent-team/lib/client.js +314 -323
  43. package/packages/client-agent-team/lib/client.js.map +1 -1
  44. package/packages/client-agent-team/lib/types/client/TeamAgentsPanel.d.ts +1 -2
  45. package/packages/client-agent-team/lib/types/client/TeamAgentsPanel.d.ts.map +1 -1
  46. package/packages/client-agent-team/lib/types/client/TeamAgentsPanel.js +61 -41
  47. package/packages/client-agent-team/lib/types/client/TeamWorkspaceBrowser.d.ts +1 -1
  48. package/packages/client-agent-team/lib/types/client/TeamWorkspaceBrowser.d.ts.map +1 -1
  49. package/packages/client-agent-team/lib/types/client/TeamWorkspaceBrowser.js +2 -2
  50. package/packages/client-agent-team/lib/types/client/index.d.ts.map +1 -1
  51. package/packages/client-agent-team/lib/types/client/index.js +34 -11
  52. package/packages/client-agent-team/lib/types/client/locales.d.ts +0 -14
  53. package/packages/client-agent-team/lib/types/client/locales.d.ts.map +1 -1
  54. package/packages/client-agent-team/lib/types/client/locales.js +0 -14
  55. package/packages/client-agent-team/lib/types/client/slots.d.ts +5 -0
  56. package/packages/client-agent-team/lib/types/client/slots.d.ts.map +1 -1
  57. package/packages/tool-agent-team/README.md +8 -5
  58. package/packages/tool-agent-team/README.zh.md +8 -5
  59. package/packages/tool-agent-team/lib/context-tools.js +179 -0
  60. package/packages/tool-agent-team/lib/index.js +135 -16
  61. package/packages/tool-agent-team/lib/types/context-tools.d.ts +16 -0
  62. package/packages/tool-agent-team/lib/types/context-tools.d.ts.map +1 -0
  63. package/packages/tool-agent-team/lib/types/index.d.ts.map +1 -1
  64. package/packages/agent-team/lib/auto-compaction.js +0 -201
  65. package/packages/agent-team/lib/types/auto-compaction.d.ts +0 -47
  66. package/packages/agent-team/lib/types/auto-compaction.d.ts.map +0 -1
@@ -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(),
@@ -1116,6 +1128,7 @@ const _wowyuarm_dsh_agent_team_agentTeam_view_result$schema = z.object({
1116
1128
  'kind': z.union([z.literal("accept"), z.literal("close"), z.literal("reopen"), z.literal("promote")]).readonly(),
1117
1129
  'releasedClaimRefs': z.union([z.undefined(), z.array(z.intersection(z.string(), z.unknown()))]).readonly().optional(),
1118
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(),
1119
1132
  'activityRef': z.intersection(z.string(), z.unknown()).readonly(),
1120
1133
  'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
1121
1134
  'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
@@ -1171,7 +1184,7 @@ export const TYPERT = {
1171
1184
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamMemberResult',
1172
1185
  schema: _wowyuarm_dsh_agent_team_agentTeam_addMember_result$schema,
1173
1186
  },
1174
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":475,"column":9},
1187
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":616,"column":9},
1175
1188
  },
1176
1189
  {
1177
1190
  id: '@wowyuarm/dsh-agent-team#agentTeam/archiveChannel',
@@ -1196,7 +1209,7 @@ export const TYPERT = {
1196
1209
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamArchiveChannelResult',
1197
1210
  schema: _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_result$schema,
1198
1211
  },
1199
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":465,"column":9},
1212
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":606,"column":9},
1200
1213
  },
1201
1214
  {
1202
1215
  id: '@wowyuarm/dsh-agent-team#agentTeam/archiveMember',
@@ -1221,7 +1234,7 @@ export const TYPERT = {
1221
1234
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamArchiveMemberResult',
1222
1235
  schema: _wowyuarm_dsh_agent_team_agentTeam_archiveMember_result$schema,
1223
1236
  },
1224
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":745,"column":9},
1237
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":987,"column":9},
1225
1238
  },
1226
1239
  {
1227
1240
  id: '@wowyuarm/dsh-agent-team#agentTeam/changeAttention',
@@ -1246,7 +1259,7 @@ export const TYPERT = {
1246
1259
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadAttentionResult',
1247
1260
  schema: _wowyuarm_dsh_agent_team_agentTeam_changeAttention_result$schema,
1248
1261
  },
1249
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":867,"column":9},
1262
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1109,"column":9},
1250
1263
  },
1251
1264
  {
1252
1265
  id: '@wowyuarm/dsh-agent-team#agentTeam/changes',
@@ -1272,7 +1285,7 @@ export const TYPERT = {
1272
1285
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamChangesResult',
1273
1286
  schema: _wowyuarm_dsh_agent_team_agentTeam_changes_result$schema,
1274
1287
  },
1275
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":397,"column":9},
1288
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":538,"column":9},
1276
1289
  },
1277
1290
  {
1278
1291
  id: '@wowyuarm/dsh-agent-team#agentTeam/changeTask',
@@ -1297,7 +1310,7 @@ export const TYPERT = {
1297
1310
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamTaskResult',
1298
1311
  schema: _wowyuarm_dsh_agent_team_agentTeam_changeTask_result$schema,
1299
1312
  },
1300
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":757,"column":9},
1313
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":999,"column":9},
1301
1314
  },
1302
1315
  {
1303
1316
  id: '@wowyuarm/dsh-agent-team#agentTeam/clearMemberContext',
@@ -1322,7 +1335,7 @@ export const TYPERT = {
1322
1335
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamClearMemberContextResult',
1323
1336
  schema: _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_result$schema,
1324
1337
  },
1325
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":568,"column":9},
1338
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":715,"column":9},
1326
1339
  },
1327
1340
  {
1328
1341
  id: '@wowyuarm/dsh-agent-team#agentTeam/createChannel',
@@ -1347,7 +1360,7 @@ export const TYPERT = {
1347
1360
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamCreateChannelResult',
1348
1361
  schema: _wowyuarm_dsh_agent_team_agentTeam_createChannel_result$schema,
1349
1362
  },
1350
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":438,"column":9},
1363
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":579,"column":9},
1351
1364
  },
1352
1365
  {
1353
1366
  id: '@wowyuarm/dsh-agent-team#agentTeam/getAttachment',
@@ -1372,7 +1385,7 @@ export const TYPERT = {
1372
1385
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamGetAttachmentResult',
1373
1386
  schema: _wowyuarm_dsh_agent_team_agentTeam_getAttachment_result$schema,
1374
1387
  },
1375
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":853,"column":9},
1388
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1095,"column":9},
1376
1389
  },
1377
1390
  {
1378
1391
  id: '@wowyuarm/dsh-agent-team#agentTeam/inbox',
@@ -1397,7 +1410,7 @@ export const TYPERT = {
1397
1410
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamInbox',
1398
1411
  schema: _wowyuarm_dsh_agent_team_agentTeam_inbox_result$schema,
1399
1412
  },
1400
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":876,"column":3},
1413
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1118,"column":3},
1401
1414
  },
1402
1415
  {
1403
1416
  id: '@wowyuarm/dsh-agent-team#agentTeam/joinChannel',
@@ -1422,7 +1435,7 @@ export const TYPERT = {
1422
1435
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamJoinChannelResult',
1423
1436
  schema: _wowyuarm_dsh_agent_team_agentTeam_joinChannel_result$schema,
1424
1437
  },
1425
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":777,"column":9},
1438
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1019,"column":9},
1426
1439
  },
1427
1440
  {
1428
1441
  id: '@wowyuarm/dsh-agent-team#agentTeam/members',
@@ -1448,7 +1461,7 @@ export const TYPERT = {
1448
1461
  typeSymbol: '@wowyuarm/dsh-agent-team#agentTeam/members:result',
1449
1462
  schema: _wowyuarm_dsh_agent_team_agentTeam_members_result$schema,
1450
1463
  },
1451
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":388,"column":3},
1464
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":529,"column":3},
1452
1465
  },
1453
1466
  {
1454
1467
  id: '@wowyuarm/dsh-agent-team#agentTeam/promoteThread',
@@ -1473,7 +1486,7 @@ export const TYPERT = {
1473
1486
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPromoteThreadResult',
1474
1487
  schema: _wowyuarm_dsh_agent_team_agentTeam_promoteThread_result$schema,
1475
1488
  },
1476
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":767,"column":9},
1489
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1009,"column":9},
1477
1490
  },
1478
1491
  {
1479
1492
  id: '@wowyuarm/dsh-agent-team#agentTeam/putAttachment',
@@ -1498,7 +1511,7 @@ export const TYPERT = {
1498
1511
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPutAttachmentResult',
1499
1512
  schema: _wowyuarm_dsh_agent_team_agentTeam_putAttachment_result$schema,
1500
1513
  },
1501
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":840,"column":9},
1514
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1082,"column":9},
1502
1515
  },
1503
1516
  {
1504
1517
  id: '@wowyuarm/dsh-agent-team#agentTeam/readThread',
@@ -1523,7 +1536,7 @@ export const TYPERT = {
1523
1536
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadReadResult',
1524
1537
  schema: _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema,
1525
1538
  },
1526
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":883,"column":9},
1539
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1125,"column":9},
1527
1540
  },
1528
1541
  {
1529
1542
  id: '@wowyuarm/dsh-agent-team#agentTeam/recoverMember',
@@ -1548,7 +1561,7 @@ export const TYPERT = {
1548
1561
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRecoverMemberResult',
1549
1562
  schema: _wowyuarm_dsh_agent_team_agentTeam_recoverMember_result$schema,
1550
1563
  },
1551
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":529,"column":9},
1564
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":676,"column":9},
1552
1565
  },
1553
1566
  {
1554
1567
  id: '@wowyuarm/dsh-agent-team#agentTeam/removeChannelMember',
@@ -1573,7 +1586,7 @@ export const TYPERT = {
1573
1586
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRemoveChannelMemberResult',
1574
1587
  schema: _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_result$schema,
1575
1588
  },
1576
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":788,"column":9},
1589
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1030,"column":9},
1577
1590
  },
1578
1591
  {
1579
1592
  id: '@wowyuarm/dsh-agent-team#agentTeam/reply',
@@ -1598,7 +1611,7 @@ export const TYPERT = {
1598
1611
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamReplyResult',
1599
1612
  schema: _wowyuarm_dsh_agent_team_agentTeam_reply_result$schema,
1600
1613
  },
1601
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":861,"column":9},
1614
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1103,"column":9},
1602
1615
  },
1603
1616
  {
1604
1617
  id: '@wowyuarm/dsh-agent-team#agentTeam/resolveTaskRefs',
@@ -1623,7 +1636,7 @@ export const TYPERT = {
1623
1636
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamResolveTaskRefsResult',
1624
1637
  schema: _wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_result$schema,
1625
1638
  },
1626
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":375,"column":3},
1639
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":516,"column":3},
1627
1640
  },
1628
1641
  {
1629
1642
  id: '@wowyuarm/dsh-agent-team#agentTeam/sendMessage',
@@ -1648,7 +1661,7 @@ export const TYPERT = {
1648
1661
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamSendMessageResult',
1649
1662
  schema: _wowyuarm_dsh_agent_team_agentTeam_sendMessage_result$schema,
1650
1663
  },
1651
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":797,"column":9},
1664
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1039,"column":9},
1652
1665
  },
1653
1666
  {
1654
1667
  id: '@wowyuarm/dsh-agent-team#agentTeam/threadHistory',
@@ -1673,7 +1686,7 @@ export const TYPERT = {
1673
1686
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadHistory',
1674
1687
  schema: _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema,
1675
1688
  },
1676
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":899,"column":3},
1689
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1141,"column":3},
1677
1690
  },
1678
1691
  {
1679
1692
  id: '@wowyuarm/dsh-agent-team#agentTeam/threadObservations',
@@ -1698,7 +1711,7 @@ export const TYPERT = {
1698
1711
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadObservations',
1699
1712
  schema: _wowyuarm_dsh_agent_team_agentTeam_threadObservations_result$schema,
1700
1713
  },
1701
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":892,"column":3},
1714
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1134,"column":3},
1702
1715
  },
1703
1716
  {
1704
1717
  id: '@wowyuarm/dsh-agent-team#agentTeam/updateChannel',
@@ -1723,7 +1736,7 @@ export const TYPERT = {
1723
1736
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamUpdateChannelResult',
1724
1737
  schema: _wowyuarm_dsh_agent_team_agentTeam_updateChannel_result$schema,
1725
1738
  },
1726
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":450,"column":9},
1739
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":591,"column":9},
1727
1740
  },
1728
1741
  {
1729
1742
  id: '@wowyuarm/dsh-agent-team#agentTeam/updateMember',
@@ -1748,7 +1761,7 @@ export const TYPERT = {
1748
1761
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamMemberResult',
1749
1762
  schema: _wowyuarm_dsh_agent_team_agentTeam_updateMember_result$schema,
1750
1763
  },
1751
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":685,"column":9},
1764
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":927,"column":9},
1752
1765
  },
1753
1766
  {
1754
1767
  id: '@wowyuarm/dsh-agent-team#agentTeam/view',
@@ -1773,7 +1786,7 @@ export const TYPERT = {
1773
1786
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamView',
1774
1787
  schema: _wowyuarm_dsh_agent_team_agentTeam_view_result$schema,
1775
1788
  },
1776
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":906,"column":3},
1789
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1148,"column":3},
1777
1790
  },
1778
1791
  ],
1779
1792
  model: {
@@ -2074,6 +2087,34 @@ export const TYPERT = {
2074
2087
  "signature": "validateLedger(): void",
2075
2088
  "summary": "Validate the durable ledger against an independently replayed projection.",
2076
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 */"
2077
2118
  }
2078
2119
  ],
2079
2120
  "types": [
@@ -2165,6 +2206,14 @@ export const TYPERT = {
2165
2206
  "name": "AgentTeamChannelRef",
2166
2207
  "declaration": "export type AgentTeamChannelRef = Branded<'AgentTeamChannelRef'>;"
2167
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
+ },
2168
2217
  {
2169
2218
  "name": "AgentTeamClaim",
2170
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}"
@@ -2221,6 +2270,22 @@ export const TYPERT = {
2221
2270
  "name": "AgentTeamConfirmationToken",
2222
2271
  "declaration": "export type AgentTeamConfirmationToken = Branded<'AgentTeamConfirmationToken'>;"
2223
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
+ },
2224
2289
  {
2225
2290
  "name": "AgentTeamCreateChannelRequest",
2226
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}"
@@ -2241,6 +2306,10 @@ export const TYPERT = {
2241
2306
  "name": "AgentTeamDmResult",
2242
2307
  "declaration": "export interface AgentTeamDmResult {\n readonly receipt: AgentTeamOperationReceipt;\n readonly recipient: AgentTeamAgentMember;\n}"
2243
2308
  },
2309
+ {
2310
+ "name": "AgentTeamDurableMemberResult",
2311
+ "declaration": "export interface AgentTeamDurableMemberResult {\n readonly receipt: AgentTeamOperationReceipt;\n readonly member: AgentTeamAgentMember;\n}"
2312
+ },
2244
2313
  {
2245
2314
  "name": "AgentTeamGetAttachmentRequest",
2246
2315
  "declaration": "export interface AgentTeamGetAttachmentRequest {\n readonly attachmentId: AgentTeamAttachmentId;\n}"
@@ -2305,6 +2374,14 @@ export const TYPERT = {
2305
2374
  "name": "AgentTeamModelSelection",
2306
2375
  "declaration": "export interface AgentTeamModelSelection {\n readonly provider: string;\n readonly model: string;\n readonly reasoningEffort?: ReasoningEffortId;\n}"
2307
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
+ },
2308
2385
  {
2309
2386
  "name": "AgentTeamOperationId",
2310
2387
  "declaration": "export type AgentTeamOperationId = Branded<'AgentTeamOperationId'>;"
@@ -2385,6 +2462,10 @@ export const TYPERT = {
2385
2462
  "name": "AgentTeamResolveTaskRefsResult",
2386
2463
  "declaration": "export interface AgentTeamResolveTaskRefsResult {\n readonly resolved: readonly AgentTeamResolvedTaskRef[];\n}"
2387
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
+ },
2388
2469
  {
2389
2470
  "name": "AgentTeamSendMessageCommittedResult",
2390
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}"
@@ -2415,7 +2496,7 @@ export const TYPERT = {
2415
2496
  },
2416
2497
  {
2417
2498
  "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}"
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}"
2419
2500
  },
2420
2501
  {
2421
2502
  "name": "AgentTeamTaskCommittedResult",
@@ -2491,12 +2572,24 @@ export const TYPERT = {
2491
2572
  },
2492
2573
  {
2493
2574
  "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}"
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}"
2495
2576
  },
2496
2577
  {
2497
2578
  "name": "AgentTeamThreadRef",
2498
2579
  "declaration": "export type AgentTeamThreadRef = Branded<'AgentTeamThreadRef'>;"
2499
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
+ },
2500
2593
  {
2501
2594
  "name": "AgentTeamUnreadRequired",
2502
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}"
@@ -2637,14 +2730,6 @@ export const TYPERT = {
2637
2730
  "name": "LlmFailure",
2638
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}"
2639
2732
  },
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
2733
  {
2649
2734
  "name": "Message",
2650
2735
  "declaration": "export interface Message {\n readonly id: MessageId;\n readonly role: 'system' | 'user' | 'assistant';\n readonly content: ContentBlock[];\n readonly source: MessageSource;\n}"
@@ -2659,7 +2744,7 @@ export const TYPERT = {
2659
2744
  },
2660
2745
  {
2661
2746
  "name": "MessageSourceMap",
2662
- "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}"
2663
2748
  },
2664
2749
  {
2665
2750
  "name": "ModelMessageSource",
@@ -2697,10 +2782,6 @@ export const TYPERT = {
2697
2782
  "name": "RequestHeaderReason",
2698
2783
  "declaration": "export type RequestHeaderReason = 'initial' | 'resume' | 'change' | 'series';"
2699
2784
  },
2700
- {
2701
- "name": "RetryId",
2702
- "declaration": "export type RetryId = Branded<'RetryId'>;"
2703
- },
2704
2785
  {
2705
2786
  "name": "SandboxMode",
2706
2787
  "declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
@@ -2715,7 +2796,7 @@ export const TYPERT = {
2715
2796
  },
2716
2797
  {
2717
2798
  "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 '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}"
2719
2800
  },
2720
2801
  {
2721
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":";;;;;;;;;IA0dQA,S;IAVAC,c;IAwRAC,a;IA0HAC,e;IAtdAC,O;IAwWAC,U;IA7LAC,kB;IAlIAC,a;IA+ZAC,a;IAuBNC,K;IAnGMC,W;IArYNC,O;IA2XMC,a;IAyEAC,a;IA2CAC,U;IAlWAC,a;IAmQAC,mB;IAyEAC,K;IAteNC,e;IAsaMC,W;IAsGNC,a;IAPAC,kB;IA1bMC,a;IA2OAC,Y;IA6NNC,I;;;IA/aMxB,qB;IAVAC,0B;IAwRAC,yB;IA0HAC,2B;IAtdAC,mB;IAwWAC,sB;IA7LAC,8B;IAlIAC,yB;IA+ZAC,yB;IAuBNC,iB;IAnGMC,uB;IArYNC,mB;IA2XMC,yB;IAyEAC,yB;IA2CAC,sB;IAlWAC,yB;IAmQAC,+B;IAyEAC,iB;IAteNC,2B;IAsaMC,uB;IAsGNC,yB;IAPAC,8B;IA1bMC,yB;IA2OAC,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":[]}