@wowyuarm/dsh-agent-team 0.1.15 → 0.2.0

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 (61) hide show
  1. package/README.md +7 -3
  2. package/README.zh.md +7 -3
  3. package/package.json +49 -47
  4. package/packages/agent-team/lib/context-source.js +11 -6
  5. package/packages/agent-team/lib/environment-check.js +102 -0
  6. package/packages/agent-team/lib/human-profile.js +23 -37
  7. package/packages/agent-team/lib/index.js +28 -2
  8. package/packages/agent-team/lib/installed-manifest.js +32 -0
  9. package/packages/agent-team/lib/ledger.js +35 -0
  10. package/packages/agent-team/lib/member-context.js +2 -4
  11. package/packages/agent-team/lib/member-time-context.js +2 -4
  12. package/packages/agent-team/lib/pressure-policy.js +13 -8
  13. package/packages/agent-team/lib/typert.host.js +121 -44
  14. package/packages/agent-team/lib/typert.remote-client.d.ts +3 -1
  15. package/packages/agent-team/lib/typert.remote-client.d.ts.map +1 -1
  16. package/packages/agent-team/lib/typert.remote-client.js +86 -38
  17. package/packages/agent-team/lib/types/context-source.d.ts +7 -4
  18. package/packages/agent-team/lib/types/context-source.d.ts.map +1 -1
  19. package/packages/agent-team/lib/types/environment-check.d.ts +66 -0
  20. package/packages/agent-team/lib/types/environment-check.d.ts.map +1 -0
  21. package/packages/agent-team/lib/types/human-profile.d.ts +21 -27
  22. package/packages/agent-team/lib/types/human-profile.d.ts.map +1 -1
  23. package/packages/agent-team/lib/types/index.d.ts +23 -2
  24. package/packages/agent-team/lib/types/index.d.ts.map +1 -1
  25. package/packages/agent-team/lib/types/installed-manifest.d.ts +16 -0
  26. package/packages/agent-team/lib/types/installed-manifest.d.ts.map +1 -0
  27. package/packages/agent-team/lib/types/ledger.d.ts +12 -0
  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-time-context.d.ts.map +1 -1
  31. package/packages/agent-team/lib/types/pressure-policy.d.ts +5 -1
  32. package/packages/agent-team/lib/types/pressure-policy.d.ts.map +1 -1
  33. package/packages/agent-team/lib/types/types/entities.d.ts +1 -8
  34. package/packages/agent-team/lib/types/types/entities.d.ts.map +1 -1
  35. package/packages/agent-team/lib/types/types/requests-results.d.ts +66 -0
  36. package/packages/agent-team/lib/types/types/requests-results.d.ts.map +1 -1
  37. package/packages/client-agent-team/lib/client.js +324 -75
  38. package/packages/client-agent-team/lib/client.js.map +1 -1
  39. package/packages/client-agent-team/lib/types/client/EnvironmentCheck.d.ts +18 -0
  40. package/packages/client-agent-team/lib/types/client/EnvironmentCheck.d.ts.map +1 -0
  41. package/packages/client-agent-team/lib/types/client/EnvironmentCheck.js +58 -0
  42. package/packages/client-agent-team/lib/types/client/HumanSettingsSection.d.ts +3 -0
  43. package/packages/client-agent-team/lib/types/client/HumanSettingsSection.d.ts.map +1 -1
  44. package/packages/client-agent-team/lib/types/client/HumanSettingsSection.js +7 -4
  45. package/packages/client-agent-team/lib/types/client/TeamAgentsPanel.js +0 -5
  46. package/packages/client-agent-team/lib/types/client/TeamPresenceDot.d.ts +1 -1
  47. package/packages/client-agent-team/lib/types/client/TeamPresenceDot.d.ts.map +1 -1
  48. package/packages/client-agent-team/lib/types/client/TeamPresenceDot.js +2 -7
  49. package/packages/client-agent-team/lib/types/client/environment-check.d.ts +65 -0
  50. package/packages/client-agent-team/lib/types/client/environment-check.d.ts.map +1 -0
  51. package/packages/client-agent-team/lib/types/client/environment-check.js +78 -0
  52. package/packages/client-agent-team/lib/types/client/index.d.ts.map +1 -1
  53. package/packages/client-agent-team/lib/types/client/index.js +9 -0
  54. package/packages/client-agent-team/lib/types/client/locales.d.ts +18 -8
  55. package/packages/client-agent-team/lib/types/client/locales.d.ts.map +1 -1
  56. package/packages/client-agent-team/lib/types/client/locales.js +21 -8
  57. package/packages/tool-agent-team/lib/context-tools.js +106 -94
  58. package/packages/tool-agent-team/lib/index.js +17 -2
  59. package/packages/tool-agent-team/lib/types/context-tools.d.ts +16 -7
  60. package/packages/tool-agent-team/lib/types/context-tools.d.ts.map +1 -1
  61. package/packages/tool-agent-team/lib/types/index.d.ts.map +1 -1
@@ -66,7 +66,6 @@ const _wowyuarm_dsh_agent_team_agentTeam_addMember_result$schema = () => (_wowyu
66
66
  'path': z.string().readonly(),
67
67
  }).readonly().optional(),
68
68
  'sessionId': z.intersection(z.string(), z.unknown()).readonly().optional(),
69
- 'remediable': z.boolean().readonly().optional(),
70
69
  }).readonly().optional(),
71
70
  'capabilityWarnings': z.union([z.undefined(), z.array(z.object({
72
71
  'name': z.string().readonly(),
@@ -322,7 +321,6 @@ const _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_result$schema = () =
322
321
  'path': z.string().readonly(),
323
322
  }).readonly().optional(),
324
323
  'sessionId': z.intersection(z.string(), z.unknown()).readonly().optional(),
325
- 'remediable': z.boolean().readonly().optional(),
326
324
  }).readonly().optional(),
327
325
  'capabilityWarnings': z.union([z.undefined(), z.array(z.object({
328
326
  'name': z.string().readonly(),
@@ -356,6 +354,20 @@ const _wowyuarm_dsh_agent_team_agentTeam_createChannel_result$schema = () => (_w
356
354
  }).readonly(),
357
355
  'memberIds': z.array(z.intersection(z.string(), z.unknown())).readonly(),
358
356
  }))
357
+ let _wowyuarm_dsh_agent_team_agentTeam_environment_parameter_0$schema$value
358
+ const _wowyuarm_dsh_agent_team_agentTeam_environment_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_environment_parameter_0$schema$value ??= z.object({}))
359
+ let _wowyuarm_dsh_agent_team_agentTeam_environment_result$schema$value
360
+ const _wowyuarm_dsh_agent_team_agentTeam_environment_result$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_environment_result$schema$value ??= z.object({
361
+ 'verdict': z.union([z.literal("ok"), z.literal("out-of-range"), z.literal("undetermined")]).readonly(),
362
+ 'reason': z.union([z.undefined(), z.string()]).readonly().optional(),
363
+ 'bundleVersion': z.union([z.undefined(), z.string()]).readonly().optional(),
364
+ 'dshVersion': z.union([z.undefined(), z.string()]).readonly().optional(),
365
+ 'certifiedDshVersion': z.union([z.undefined(), z.string()]).readonly().optional(),
366
+ 'supportRange': z.union([z.undefined(), z.object({
367
+ 'lower': z.string().readonly(),
368
+ 'upper': z.string().readonly(),
369
+ })]).readonly().optional(),
370
+ }))
359
371
  let _wowyuarm_dsh_agent_team_agentTeam_getAttachment_parameter_0$schema$value
360
372
  const _wowyuarm_dsh_agent_team_agentTeam_getAttachment_parameter_0$schema = () => (_wowyuarm_dsh_agent_team_agentTeam_getAttachment_parameter_0$schema$value ??= z.object({
361
373
  'attachmentId': z.intersection(z.string(), z.unknown()).readonly(),
@@ -578,7 +590,6 @@ const _wowyuarm_dsh_agent_team_agentTeam_members_result$schema = () => (_wowyuar
578
590
  'path': z.string().readonly(),
579
591
  }).readonly().optional(),
580
592
  'sessionId': z.intersection(z.string(), z.unknown()).readonly().optional(),
581
- 'remediable': z.boolean().readonly().optional(),
582
593
  }).readonly().optional(),
583
594
  'capabilityWarnings': z.union([z.undefined(), z.array(z.object({
584
595
  'name': z.string().readonly(),
@@ -846,7 +857,6 @@ const _wowyuarm_dsh_agent_team_agentTeam_recoverMember_result$schema = () => (_w
846
857
  'path': z.string().readonly(),
847
858
  }).readonly().optional(),
848
859
  'sessionId': z.intersection(z.string(), z.unknown()).readonly().optional(),
849
- 'remediable': z.boolean().readonly().optional(),
850
860
  }).readonly().optional(),
851
861
  'capabilityWarnings': z.union([z.undefined(), z.array(z.object({
852
862
  'name': z.string().readonly(),
@@ -1318,7 +1328,6 @@ const _wowyuarm_dsh_agent_team_agentTeam_updateMember_result$schema = () => (_wo
1318
1328
  'path': z.string().readonly(),
1319
1329
  }).readonly().optional(),
1320
1330
  'sessionId': z.intersection(z.string(), z.unknown()).readonly().optional(),
1321
- 'remediable': z.boolean().readonly().optional(),
1322
1331
  }).readonly().optional(),
1323
1332
  'capabilityWarnings': z.union([z.undefined(), z.array(z.object({
1324
1333
  'name': z.string().readonly(),
@@ -1411,6 +1420,19 @@ const _wowyuarm_dsh_agent_team_agentTeam_view_result$schema = () => (_wowyuarm_d
1411
1420
  })).readonly(),
1412
1421
  'messageCount': z.number().readonly(),
1413
1422
  'lastActivityAt': z.string().readonly(),
1423
+ })).readonly(),
1424
+ 'activeTaskThreads': z.array(z.object({
1425
+ 'taskRef': z.intersection(z.string(), z.unknown()).readonly(),
1426
+ 'threadRef': z.intersection(z.string(), z.unknown()).readonly(),
1427
+ 'channelRef': z.intersection(z.string(), z.unknown()).readonly(),
1428
+ 'taskNumber': z.number().readonly().optional(),
1429
+ 'status': z.union([z.literal("done"), z.literal("todo"), z.literal("in_progress"), z.literal("in_review"), z.literal("closed")]).readonly(),
1430
+ 'subject': z.string().readonly(),
1431
+ 'members': z.array(z.object({
1432
+ 'memberId': z.intersection(z.string(), z.unknown()).readonly(),
1433
+ 'name': z.string().readonly(),
1434
+ })).readonly(),
1435
+ 'lastActivityAt': z.string().readonly(),
1414
1436
  })).readonly(),
1415
1437
  'claims': z.array(z.object({
1416
1438
  'claimRef': z.intersection(z.string(), z.unknown()).readonly(),
@@ -1478,7 +1500,7 @@ export const TYPERT_REMOTE = {
1478
1500
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamAddMemberResult',
1479
1501
  create: _wowyuarm_dsh_agent_team_agentTeam_addMember_result$schema,
1480
1502
  },
1481
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":891,"column":9},
1503
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":896,"column":9},
1482
1504
  },
1483
1505
  {
1484
1506
  id: '@wowyuarm/dsh-agent-team#agentTeam/archiveChannel',
@@ -1503,7 +1525,7 @@ export const TYPERT_REMOTE = {
1503
1525
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamArchiveChannelResult',
1504
1526
  create: _wowyuarm_dsh_agent_team_agentTeam_archiveChannel_result$schema,
1505
1527
  },
1506
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":881,"column":9},
1528
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":886,"column":9},
1507
1529
  },
1508
1530
  {
1509
1531
  id: '@wowyuarm/dsh-agent-team#agentTeam/archiveMember',
@@ -1528,7 +1550,7 @@ export const TYPERT_REMOTE = {
1528
1550
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamArchiveMemberResult',
1529
1551
  create: _wowyuarm_dsh_agent_team_agentTeam_archiveMember_result$schema,
1530
1552
  },
1531
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1271,"column":9},
1553
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1276,"column":9},
1532
1554
  },
1533
1555
  {
1534
1556
  id: '@wowyuarm/dsh-agent-team#agentTeam/changeAttention',
@@ -1553,7 +1575,7 @@ export const TYPERT_REMOTE = {
1553
1575
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadAttentionResult',
1554
1576
  create: _wowyuarm_dsh_agent_team_agentTeam_changeAttention_result$schema,
1555
1577
  },
1556
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1500,"column":9},
1578
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1527,"column":9},
1557
1579
  },
1558
1580
  {
1559
1581
  id: '@wowyuarm/dsh-agent-team#agentTeam/changes',
@@ -1580,7 +1602,7 @@ export const TYPERT_REMOTE = {
1580
1602
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamChangesResult',
1581
1603
  create: _wowyuarm_dsh_agent_team_agentTeam_changes_result$schema,
1582
1604
  },
1583
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":814,"column":11},
1605
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":819,"column":11},
1584
1606
  },
1585
1607
  {
1586
1608
  id: '@wowyuarm/dsh-agent-team#agentTeam/changeTask',
@@ -1605,7 +1627,7 @@ export const TYPERT_REMOTE = {
1605
1627
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamTaskResult',
1606
1628
  create: _wowyuarm_dsh_agent_team_agentTeam_changeTask_result$schema,
1607
1629
  },
1608
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1283,"column":9},
1630
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1288,"column":9},
1609
1631
  },
1610
1632
  {
1611
1633
  id: '@wowyuarm/dsh-agent-team#agentTeam/clearMemberContext',
@@ -1630,7 +1652,7 @@ export const TYPERT_REMOTE = {
1630
1652
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamClearMemberContextResult',
1631
1653
  create: _wowyuarm_dsh_agent_team_agentTeam_clearMemberContext_result$schema,
1632
1654
  },
1633
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":997,"column":9},
1655
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1002,"column":9},
1634
1656
  },
1635
1657
  {
1636
1658
  id: '@wowyuarm/dsh-agent-team#agentTeam/createChannel',
@@ -1655,7 +1677,33 @@ export const TYPERT_REMOTE = {
1655
1677
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamCreateChannelResult',
1656
1678
  create: _wowyuarm_dsh_agent_team_agentTeam_createChannel_result$schema,
1657
1679
  },
1658
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":854,"column":9},
1680
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":859,"column":9},
1681
+ },
1682
+ {
1683
+ id: '@wowyuarm/dsh-agent-team#agentTeam/environment',
1684
+ service: 'agentTeam',
1685
+ namespace: 'agentTeam',
1686
+ method: 'environment',
1687
+ implementation: 'environmentForClient',
1688
+ invocation: { kind: 'direct' },
1689
+ parameters: [
1690
+ {
1691
+ name: '_request',
1692
+ wire: '_request',
1693
+ source: 'json',
1694
+ codec: {
1695
+ mode: 'strict',
1696
+ typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamEnvironmentRequest',
1697
+ create: _wowyuarm_dsh_agent_team_agentTeam_environment_parameter_0$schema,
1698
+ },
1699
+ },
1700
+ ],
1701
+ result: {
1702
+ mode: 'strict',
1703
+ typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamEnvironmentResult',
1704
+ create: _wowyuarm_dsh_agent_team_agentTeam_environment_result$schema,
1705
+ },
1706
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1434,"column":3},
1659
1707
  },
1660
1708
  {
1661
1709
  id: '@wowyuarm/dsh-agent-team#agentTeam/getAttachment',
@@ -1680,7 +1728,7 @@ export const TYPERT_REMOTE = {
1680
1728
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamGetAttachmentResult',
1681
1729
  create: _wowyuarm_dsh_agent_team_agentTeam_getAttachment_result$schema,
1682
1730
  },
1683
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1397,"column":9},
1731
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1402,"column":9},
1684
1732
  },
1685
1733
  {
1686
1734
  id: '@wowyuarm/dsh-agent-team#agentTeam/getHumanAvatar',
@@ -1705,7 +1753,7 @@ export const TYPERT_REMOTE = {
1705
1753
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamGetHumanAvatarResult',
1706
1754
  create: _wowyuarm_dsh_agent_team_agentTeam_getHumanAvatar_result$schema,
1707
1755
  },
1708
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1440,"column":9},
1756
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1467,"column":9},
1709
1757
  },
1710
1758
  {
1711
1759
  id: '@wowyuarm/dsh-agent-team#agentTeam/humanProfile',
@@ -1731,7 +1779,7 @@ export const TYPERT_REMOTE = {
1731
1779
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamHumanProfileResult',
1732
1780
  create: _wowyuarm_dsh_agent_team_agentTeam_humanProfile_result$schema,
1733
1781
  },
1734
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1412,"column":3},
1782
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1439,"column":3},
1735
1783
  },
1736
1784
  {
1737
1785
  id: '@wowyuarm/dsh-agent-team#agentTeam/inbox',
@@ -1756,7 +1804,7 @@ export const TYPERT_REMOTE = {
1756
1804
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamInbox',
1757
1805
  create: _wowyuarm_dsh_agent_team_agentTeam_inbox_result$schema,
1758
1806
  },
1759
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1509,"column":3},
1807
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1536,"column":3},
1760
1808
  },
1761
1809
  {
1762
1810
  id: '@wowyuarm/dsh-agent-team#agentTeam/joinChannel',
@@ -1781,7 +1829,7 @@ export const TYPERT_REMOTE = {
1781
1829
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamJoinChannelResult',
1782
1830
  create: _wowyuarm_dsh_agent_team_agentTeam_joinChannel_result$schema,
1783
1831
  },
1784
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1303,"column":9},
1832
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1308,"column":9},
1785
1833
  },
1786
1834
  {
1787
1835
  id: '@wowyuarm/dsh-agent-team#agentTeam/joinWorkspace',
@@ -1806,7 +1854,7 @@ export const TYPERT_REMOTE = {
1806
1854
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamJoinWorkspaceResult',
1807
1855
  create: _wowyuarm_dsh_agent_team_agentTeam_joinWorkspace_result$schema,
1808
1856
  },
1809
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1323,"column":9},
1857
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1328,"column":9},
1810
1858
  },
1811
1859
  {
1812
1860
  id: '@wowyuarm/dsh-agent-team#agentTeam/leaveWorkspace',
@@ -1831,7 +1879,7 @@ export const TYPERT_REMOTE = {
1831
1879
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamLeaveWorkspaceResult',
1832
1880
  create: _wowyuarm_dsh_agent_team_agentTeam_leaveWorkspace_result$schema,
1833
1881
  },
1834
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1332,"column":9},
1882
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1337,"column":9},
1835
1883
  },
1836
1884
  {
1837
1885
  id: '@wowyuarm/dsh-agent-team#agentTeam/members',
@@ -1857,7 +1905,7 @@ export const TYPERT_REMOTE = {
1857
1905
  typeSymbol: '@wowyuarm/dsh-agent-team#agentTeam/members:result',
1858
1906
  create: _wowyuarm_dsh_agent_team_agentTeam_members_result$schema,
1859
1907
  },
1860
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":804,"column":3},
1908
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":809,"column":3},
1861
1909
  },
1862
1910
  {
1863
1911
  id: '@wowyuarm/dsh-agent-team#agentTeam/promoteThread',
@@ -1882,7 +1930,7 @@ export const TYPERT_REMOTE = {
1882
1930
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPromoteThreadResult',
1883
1931
  create: _wowyuarm_dsh_agent_team_agentTeam_promoteThread_result$schema,
1884
1932
  },
1885
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1293,"column":9},
1933
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1298,"column":9},
1886
1934
  },
1887
1935
  {
1888
1936
  id: '@wowyuarm/dsh-agent-team#agentTeam/putAttachment',
@@ -1907,7 +1955,7 @@ export const TYPERT_REMOTE = {
1907
1955
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPutAttachmentResult',
1908
1956
  create: _wowyuarm_dsh_agent_team_agentTeam_putAttachment_result$schema,
1909
1957
  },
1910
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1384,"column":9},
1958
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1389,"column":9},
1911
1959
  },
1912
1960
  {
1913
1961
  id: '@wowyuarm/dsh-agent-team#agentTeam/putHumanAvatar',
@@ -1932,7 +1980,7 @@ export const TYPERT_REMOTE = {
1932
1980
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamPutHumanAvatarResult',
1933
1981
  create: _wowyuarm_dsh_agent_team_agentTeam_putHumanAvatar_result$schema,
1934
1982
  },
1935
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1432,"column":9},
1983
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1459,"column":9},
1936
1984
  },
1937
1985
  {
1938
1986
  id: '@wowyuarm/dsh-agent-team#agentTeam/readThread',
@@ -1957,7 +2005,7 @@ export const TYPERT_REMOTE = {
1957
2005
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadReadResult',
1958
2006
  create: _wowyuarm_dsh_agent_team_agentTeam_readThread_result$schema,
1959
2007
  },
1960
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1516,"column":9},
2008
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1543,"column":9},
1961
2009
  },
1962
2010
  {
1963
2011
  id: '@wowyuarm/dsh-agent-team#agentTeam/recoverMember',
@@ -1982,7 +2030,7 @@ export const TYPERT_REMOTE = {
1982
2030
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRecoverMemberResult',
1983
2031
  create: _wowyuarm_dsh_agent_team_agentTeam_recoverMember_result$schema,
1984
2032
  },
1985
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":954,"column":9},
2033
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":959,"column":9},
1986
2034
  },
1987
2035
  {
1988
2036
  id: '@wowyuarm/dsh-agent-team#agentTeam/removeChannelMember',
@@ -2007,7 +2055,7 @@ export const TYPERT_REMOTE = {
2007
2055
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRemoveChannelMemberResult',
2008
2056
  create: _wowyuarm_dsh_agent_team_agentTeam_removeChannelMember_result$schema,
2009
2057
  },
2010
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1314,"column":9},
2058
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1319,"column":9},
2011
2059
  },
2012
2060
  {
2013
2061
  id: '@wowyuarm/dsh-agent-team#agentTeam/removeHumanAvatar',
@@ -2032,7 +2080,7 @@ export const TYPERT_REMOTE = {
2032
2080
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamRemoveHumanAvatarResult',
2033
2081
  create: _wowyuarm_dsh_agent_team_agentTeam_removeHumanAvatar_result$schema,
2034
2082
  },
2035
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1448,"column":9},
2083
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1475,"column":9},
2036
2084
  },
2037
2085
  {
2038
2086
  id: '@wowyuarm/dsh-agent-team#agentTeam/reply',
@@ -2057,7 +2105,7 @@ export const TYPERT_REMOTE = {
2057
2105
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamReplyResult',
2058
2106
  create: _wowyuarm_dsh_agent_team_agentTeam_reply_result$schema,
2059
2107
  },
2060
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1494,"column":9},
2108
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1521,"column":9},
2061
2109
  },
2062
2110
  {
2063
2111
  id: '@wowyuarm/dsh-agent-team#agentTeam/resolveTaskRefs',
@@ -2082,7 +2130,7 @@ export const TYPERT_REMOTE = {
2082
2130
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamResolveTaskRefsResult',
2083
2131
  create: _wowyuarm_dsh_agent_team_agentTeam_resolveTaskRefs_result$schema,
2084
2132
  },
2085
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":778,"column":3},
2133
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":783,"column":3},
2086
2134
  },
2087
2135
  {
2088
2136
  id: '@wowyuarm/dsh-agent-team#agentTeam/resolveThreadRefs',
@@ -2107,7 +2155,7 @@ export const TYPERT_REMOTE = {
2107
2155
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamResolveThreadRefsResult',
2108
2156
  create: _wowyuarm_dsh_agent_team_agentTeam_resolveThreadRefs_result$schema,
2109
2157
  },
2110
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":791,"column":3},
2158
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":796,"column":3},
2111
2159
  },
2112
2160
  {
2113
2161
  id: '@wowyuarm/dsh-agent-team#agentTeam/sendMessage',
@@ -2132,7 +2180,7 @@ export const TYPERT_REMOTE = {
2132
2180
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamSendMessageResult',
2133
2181
  create: _wowyuarm_dsh_agent_team_agentTeam_sendMessage_result$schema,
2134
2182
  },
2135
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1341,"column":9},
2183
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1346,"column":9},
2136
2184
  },
2137
2185
  {
2138
2186
  id: '@wowyuarm/dsh-agent-team#agentTeam/setHumanProfile',
@@ -2157,7 +2205,7 @@ export const TYPERT_REMOTE = {
2157
2205
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamSetHumanProfileResult',
2158
2206
  create: _wowyuarm_dsh_agent_team_agentTeam_setHumanProfile_result$schema,
2159
2207
  },
2160
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1470,"column":9},
2208
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1497,"column":9},
2161
2209
  },
2162
2210
  {
2163
2211
  id: '@wowyuarm/dsh-agent-team#agentTeam/threadHistory',
@@ -2182,7 +2230,7 @@ export const TYPERT_REMOTE = {
2182
2230
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadHistory',
2183
2231
  create: _wowyuarm_dsh_agent_team_agentTeam_threadHistory_result$schema,
2184
2232
  },
2185
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1534,"column":3},
2233
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1561,"column":3},
2186
2234
  },
2187
2235
  {
2188
2236
  id: '@wowyuarm/dsh-agent-team#agentTeam/threadObservations',
@@ -2207,7 +2255,7 @@ export const TYPERT_REMOTE = {
2207
2255
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamThreadObservations',
2208
2256
  create: _wowyuarm_dsh_agent_team_agentTeam_threadObservations_result$schema,
2209
2257
  },
2210
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1527,"column":3},
2258
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1554,"column":3},
2211
2259
  },
2212
2260
  {
2213
2261
  id: '@wowyuarm/dsh-agent-team#agentTeam/updateChannel',
@@ -2232,7 +2280,7 @@ export const TYPERT_REMOTE = {
2232
2280
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamUpdateChannelResult',
2233
2281
  create: _wowyuarm_dsh_agent_team_agentTeam_updateChannel_result$schema,
2234
2282
  },
2235
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":866,"column":9},
2283
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":871,"column":9},
2236
2284
  },
2237
2285
  {
2238
2286
  id: '@wowyuarm/dsh-agent-team#agentTeam/updateMember',
@@ -2257,7 +2305,7 @@ export const TYPERT_REMOTE = {
2257
2305
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamMemberResult',
2258
2306
  create: _wowyuarm_dsh_agent_team_agentTeam_updateMember_result$schema,
2259
2307
  },
2260
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1211,"column":9},
2308
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1216,"column":9},
2261
2309
  },
2262
2310
  {
2263
2311
  id: '@wowyuarm/dsh-agent-team#agentTeam/view',
@@ -2282,7 +2330,7 @@ export const TYPERT_REMOTE = {
2282
2330
  typeSymbol: '@wowyuarm/dsh-agent-team/types#AgentTeamView',
2283
2331
  create: _wowyuarm_dsh_agent_team_agentTeam_view_result$schema,
2284
2332
  },
2285
- sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1541,"column":3},
2333
+ sourceLocation: {"file":"packages/agent-team/src/index.ts","line":1568,"column":3},
2286
2334
  },
2287
2335
  ],
2288
2336
  }
@@ -51,14 +51,17 @@ export type AgentTeamMessageSource = Extract<MessageSource, {
51
51
  /** The kind the read-time conversion renames one producer's released V3 sources into. */
52
52
  export declare const v3RenamedSourceKind: <const P extends string>(producer: P) => `plugin:${P}`;
53
53
  /**
54
- * Whether one message source carries this plugin's own attribution. Both
55
- * identities are matched by exact kind equality — never by a `plugin:`
56
- * prefix test, which would claim third-party producers' rows as Team facts.
54
+ * Whether one source kind is a producer's own: the kind it writes now and the
55
+ * read-time conversion of its released V3 history. Both identities are matched
56
+ * by exact kind equality — never by a `plugin:` prefix test, which would claim
57
+ * third-party producers' rows as that producer's facts.
57
58
  */
59
+ export declare function matchesProducerKind(kind: string | undefined, producer: string): boolean;
60
+ /** Whether one message source carries this plugin's own attribution. */
58
61
  export declare function isAgentTeamSource(source: MessageSource): source is AgentTeamMessageSource;
59
62
  /**
60
63
  * Whether one source kind carries this plugin's attribution, for call sites
61
- * whose sources arrive untyped. Exact identities only, never a prefix test.
64
+ * whose sources arrive untyped.
62
65
  */
63
66
  export declare function isAgentTeamSourceKind(kind: string | undefined): boolean;
64
67
  /** Handoff snapshot section name carrying the model-authored prose. */
@@ -1 +1 @@
1
- {"version":3,"file":"context-source.d.ts","sourceRoot":"","sources":["../../src/context-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,sBAAsB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAE7G,qEAAqE;AACrE,eAAO,MAAM,oBAAoB,6BAA6B,CAAA;AAE9D;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,oCAAmC,CAAA;AAE1E,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,gBAAgB;QACxB,oFAAoF;QACpF,CAAC,oBAAoB,CAAC,EAAE;YAAE,IAAI,EAAE,OAAO,oBAAoB,CAAA;SAAE,GAAG,aAAa,C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SAAS,sBAAsB,EAAE,CAAA;CACrD;AAsCD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,WAAW,GAAG,uBAAuB,GAAG,SAAS,CAwBnF;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAKpF;AAED,+DAA+D;AAC/D,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAE9D;AAED,4FAA4F;AAC5F,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,WAAW,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAGrG;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAEtE;AAED;;oEAEoE;AACpE,eAAO,MAAM,wBAAwB,qBAAqB,CAAA;AAC1D,eAAO,MAAM,mBAAmB,gBAAgB,CAAA;AAChD,eAAO,MAAM,eAAe,YAAY,CAAA;AACxC,eAAO,MAAM,iBAAiB,sBAAsB,CAAA;AACpD,eAAO,MAAM,kBAAkB,8BAA8B,CAAA;AAC7D,eAAO,MAAM,qBAAqB,kBAAkB,CAAA"}
@@ -0,0 +1,66 @@
1
+ /** The one local environment check: how the running DSH compares to the line this bundle declares. */
2
+ import type { AgentTeamEnvironmentSupportRange, AgentTeamEnvironmentVerdict } from './types.ts';
3
+ /**
4
+ * What the settings page needs to state the environment.
5
+ *
6
+ * Deliberately not the wire type (`AgentTeamEnvironmentResult`): that one states
7
+ * every fact as optional, because a Transport may withhold any of them, while
8
+ * this is what the checker itself guarantees. `bundleVersion` is therefore
9
+ * required here and optional there, and the seam in `index.ts` is where the two
10
+ * meet.
11
+ */
12
+ export interface EnvironmentReport {
13
+ readonly verdict: AgentTeamEnvironmentVerdict;
14
+ /** Host-side diagnostic for an `undetermined` verdict; never rendered as user copy. */
15
+ readonly reason?: string | undefined;
16
+ /** Version of the bundle this Host runs from, or `'unknown'` when its manifest is unreadable. */
17
+ readonly bundleVersion: string;
18
+ /**
19
+ * The running DSH version — what the page states it is running. Omitted, not
20
+ * guessed, when it could not be read; it is a different fact from
21
+ * `certifiedDshVersion`, which is the line this bundle declares support for.
22
+ */
23
+ readonly dshVersion?: string | undefined;
24
+ /** Lower bound of the declared support range: the certified, actually-tested DSH line. */
25
+ readonly certifiedDshVersion?: string | undefined;
26
+ readonly supportRange?: AgentTeamEnvironmentSupportRange | undefined;
27
+ }
28
+ /**
29
+ * Read the support line from the installed manifest's DSH peers, or nothing.
30
+ *
31
+ * Every `@deepseek-ai/dsh-*` peer must carry exactly the same range, and it must
32
+ * be a `>=<lower> <upper>` series: the version line is the manifest's own claim
33
+ * and a partially drifted manifest cannot state one. `scripts/check-version-consistency.mjs`
34
+ * holds the same shape to the certified baseline, so a run of this bundle
35
+ * states the same line its README does. Returns `undefined` when the peers
36
+ * disagree or the shape is unreadable.
37
+ */
38
+ export declare function supportRangeOf(manifest: object): AgentTeamEnvironmentSupportRange | undefined;
39
+ /**
40
+ * Judge one already-resolved triple, so every branch is testable without an
41
+ * environment. The verdict comes from the Harness's own
42
+ * `evaluatePluginCompatibility` — the plugin manager decides installability with
43
+ * that same function, and prerelease ordering is exactly what a hand-written
44
+ * comparison gets wrong.
45
+ *
46
+ * @param manifest - the installed bundle's parsed manifest, the source of the declared support line.
47
+ * @param runtimeVersion - the running DSH version, or `'unknown'` when it could not be read.
48
+ * @param bundleVersion - the installed bundle version, or `'unknown'`.
49
+ * @param unavailable - why the running version is not known, recorded when it is `'unknown'`.
50
+ * @returns the report the settings page renders.
51
+ */
52
+ export declare function evaluateEnvironment(manifest: object, runtimeVersion: string, bundleVersion: string, unavailable?: string): EnvironmentReport;
53
+ /**
54
+ * Read this Host's own environment: the installed bundle version, the declared
55
+ * support line, and how the running DSH compares to it.
56
+ *
57
+ * The certified DSH version is the range's lower bound, never the newest cut
58
+ * tested against it: `docs/dsh-release-compatibility.md` §4 records a baseline
59
+ * inside the declared range without moving the peers, so every version spot
60
+ * keeps naming the bound. Reading it from anywhere else would reintroduce the
61
+ * hand-maintained constant this check exists to remove.
62
+ *
63
+ * @returns the report, with `verdict: 'undetermined'` for any fact not established.
64
+ */
65
+ export declare function reportEnvironment(): EnvironmentReport;
66
+ //# sourceMappingURL=environment-check.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environment-check.d.ts","sourceRoot":"","sources":["../../src/environment-check.ts"],"names":[],"mappings":"AAAA,sGAAsG;AAItG,OAAO,KAAK,EAAE,gCAAgC,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA;AAE/F;;;;;;;;GAQG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,EAAE,2BAA2B,CAAA;IAC7C,uFAAuF;IACvF,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,iGAAiG;IACjG,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACxC,0FAA0F;IAC1F,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACjD,QAAQ,CAAC,YAAY,CAAC,EAAE,gCAAgC,GAAG,SAAS,CAAA;CACrE;AAQD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,gCAAgC,GAAG,SAAS,CAc7F;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,MAAM,GACnB,iBAAiB,CA0BnB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,IAAI,iBAAiB,CAUrD"}
@@ -13,6 +13,12 @@ import z from '@deepseek-ai/schemastery';
13
13
  * - avatar bytes live under a persistent directory below; the profile holds
14
14
  * only the reference, never a data URL. The composer attachment cache is
15
15
  * TTL-bound and must not hold avatar bytes.
16
+ *
17
+ * The legacy-section adoption below is transitional: it exists for installs
18
+ * upgraded from a pre-rc.1 profile document, and retires — with
19
+ * `LEGACY_HUMAN_PROFILE_SECTION`, `parseLegacyHumanProfile`, and
20
+ * `planLegacyAdoption` — once such installs are no longer supported. Nothing
21
+ * else in the Host reads that document.
16
22
  */
17
23
  /**
18
24
  * Settings namespace of the Human profile: the Team Host row's id in
@@ -29,30 +35,18 @@ export declare const HUMAN_PROFILE_DEFAULT_NAME = "human";
29
35
  export declare const HUMAN_PROFILE_REPO_URL = "https://github.com/wowyuarm/dsh-agent-team";
30
36
  /**
31
37
  * Bundle version shown in the settings footnote, and the current side of the
32
- * update check: the version of the package THIS Host runs from — read from the
33
- * installed manifest, so a `link:` checkout under the development profile and a
34
- * registry tarball under stable each state their own truth. It is not a
35
- * hand-maintained string: the 0.1.14 bundle shipped with `0.1.13` written in
36
- * it, which made the footnote name the previous release and the update check
37
- * offer the release the user already had.
38
+ * update check: the version of the package THIS Host runs from — the installed
39
+ * manifest's, read once at load through `./installed-manifest.ts`, so a `link:`
40
+ * checkout under the development profile and a registry tarball under stable
41
+ * each state their own truth. It is not a hand-maintained string: the 0.1.14
42
+ * bundle shipped with `0.1.13` written in it, which made the footnote name the
43
+ * previous release and the update check offer the release the user already had.
38
44
  *
39
- * Resolved once at load, three levels above this module — `packages/agent-team/{src,lib}`
40
- * sits that deep in both layouts, the same relative positioning
41
- * `member-runtime.ts` uses to find `core-skills`. An unreadable or malformed
42
- * manifest degrades to `'unknown'`: the Remote's `version: string` contract
43
- * holds and the update comparison simply compares nothing. The footnote is
44
- * informational only and never gates behavior.
45
+ * An unreadable or malformed manifest degrades to `'unknown'`: the Remote's
46
+ * `version: string` contract holds and the update comparison simply compares
47
+ * nothing. The footnote is informational only and never gates behavior.
45
48
  */
46
49
  export declare const HUMAN_PROFILE_VERSION: string;
47
- export interface HumanProfile {
48
- readonly name: string;
49
- readonly avatarRef?: string;
50
- }
51
- /** Settings document shape: name with schema default, avatarRef as a plain reference. */
52
- export interface HumanProfileSettings {
53
- readonly name: string;
54
- readonly avatarRef?: string;
55
- }
56
50
  /**
57
51
  * Schemastery schema of the Human profile: the Team Host row's Config. Both
58
52
  * fields are volatile, which is what lets an edit reach the running Host
@@ -99,12 +93,12 @@ export declare function parseLegacyHumanProfile(yamlText: string): LegacyHumanPr
99
93
  * Decide what adoption may write: nothing unless the stored profile is still
100
94
  * the pristine default, so a value the Human re-entered after the upgrade
101
95
  * always wins, and never the legacy default name itself. The current profile
102
- * carries explicit `undefined` on `avatarRef` — the Host getter spreads a
103
- * settings read — and so is not `HumanProfile` under
104
- * exactOptionalPropertyTypes; taking that shape directly keeps the Host call
105
- * cast-free. The returned fields are exactly the ops the profile page would
106
- * have written; byte existence for `avatarRef` is the caller's I/O and must
107
- * already hold.
96
+ * carries explicit `undefined` on `avatarRef` — the Host getter spreads the
97
+ * live Config read — and that shape does not satisfy the optional-property
98
+ * form under exactOptionalPropertyTypes; taking it directly keeps the Host
99
+ * call cast-free. The returned fields are exactly the ops the profile page
100
+ * would have written; byte existence for `avatarRef` is the caller's I/O and
101
+ * must already hold.
108
102
  */
109
103
  export declare function planLegacyAdoption(current: {
110
104
  readonly name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"human-profile.d.ts","sourceRoot":"","sources":["../../src/human-profile.ts"],"names":[],"mappings":"AAGA,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAGxC;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,gCAAgC,6BAA6B,CAAA;AAE1E,gEAAgE;AAChE,eAAO,MAAM,0BAA0B,UAAU,CAAA;AAEjD,qDAAqD;AACrD,eAAO,MAAM,sBAAsB,+CAA+C,CAAA;AAElF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,qBAAqB,QAA+B,CAAA;AAgBjE,MAAM,WAAW,Y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