@tutti-os/agent-gui 0.0.4 → 0.0.6

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 (51) hide show
  1. package/dist/agent-message-center/index.d.ts +1 -0
  2. package/dist/agent-message-center/index.js +23 -9
  3. package/dist/agent-message-center/index.js.map +1 -1
  4. package/dist/app/renderer/agentactivity.css +11 -0
  5. package/dist/app/renderer/assets/icons/arrow-left-filled.svg +1 -0
  6. package/dist/{chunk-RORLLV27.js → chunk-3735XYFZ.js} +2 -40
  7. package/dist/chunk-3735XYFZ.js.map +1 -0
  8. package/dist/{chunk-IVPB4MLI.js → chunk-6AZ2KF6R.js} +1 -1
  9. package/dist/chunk-6AZ2KF6R.js.map +1 -0
  10. package/dist/{chunk-ZX5PDYAS.js → chunk-C63Z2JWT.js} +8 -10
  11. package/dist/chunk-C63Z2JWT.js.map +1 -0
  12. package/dist/chunk-FKCXHCPO.js +3478 -0
  13. package/dist/chunk-FKCXHCPO.js.map +1 -0
  14. package/dist/{chunk-ZP7P7DYO.js → chunk-GEXHKJK5.js} +6 -47
  15. package/dist/chunk-GEXHKJK5.js.map +1 -0
  16. package/dist/{chunk-UJWUGMWC.js → chunk-GYG57VTA.js} +17 -32
  17. package/dist/{chunk-UJWUGMWC.js.map → chunk-GYG57VTA.js.map} +1 -1
  18. package/dist/{chunk-HSR5DI6O.js → chunk-JWVLIF5R.js} +5 -1
  19. package/dist/chunk-JWVLIF5R.js.map +1 -0
  20. package/dist/{chunk-UKQIGNN3.js → chunk-KGFWU4FL.js} +2 -2
  21. package/dist/{chunk-BABBC24I.js → chunk-LUGELG5V.js} +4 -1
  22. package/dist/chunk-LUGELG5V.js.map +1 -0
  23. package/dist/chunk-ZU3FKYMG.js +47 -0
  24. package/dist/chunk-ZU3FKYMG.js.map +1 -0
  25. package/dist/i18n/index.d.ts +4 -0
  26. package/dist/i18n/index.js +1 -1
  27. package/dist/index.d.ts +2 -11
  28. package/dist/index.js +176 -60
  29. package/dist/index.js.map +1 -1
  30. package/dist/mention-file-presentation.d.ts +2 -1
  31. package/dist/mention-file-presentation.js +1 -1
  32. package/dist/workbench/contribution.js +6 -5
  33. package/dist/workbench/index.d.ts +1 -1
  34. package/dist/workbench/index.js +6 -5
  35. package/dist/workbench/launch.d.ts +1 -7
  36. package/dist/workbench/launch.js +2 -2
  37. package/dist/workbench/state.js +1 -1
  38. package/dist/workbench/types.d.ts +1 -12
  39. package/dist/workbench/types.js +1 -1
  40. package/dist/workspace-agent-generated-files.js +2 -2
  41. package/package.json +10 -10
  42. package/dist/chunk-5Q36BEUM.js +0 -3478
  43. package/dist/chunk-5Q36BEUM.js.map +0 -1
  44. package/dist/chunk-BABBC24I.js.map +0 -1
  45. package/dist/chunk-HSR5DI6O.js.map +0 -1
  46. package/dist/chunk-IVPB4MLI.js.map +0 -1
  47. package/dist/chunk-RORLLV27.js.map +0 -1
  48. package/dist/chunk-ZP7P7DYO.js.map +0 -1
  49. package/dist/chunk-ZX5PDYAS.js.map +0 -1
  50. package/dist/user-avatar-placeholder-WP2373TS.png +0 -0
  51. /package/dist/{chunk-UKQIGNN3.js.map → chunk-KGFWU4FL.js.map} +0 -0
@@ -68,6 +68,7 @@ interface WorkspaceAgentMessageCenterItem {
68
68
  id: string;
69
69
  agentSessionId: string;
70
70
  provider: string;
71
+ userId: string | null;
71
72
  title: string;
72
73
  identity: WorkspaceAgentMessageCenterIdentity | null;
73
74
  cwd: string;
@@ -9,7 +9,7 @@ import {
9
9
  managedAgentRoundedIconUrl,
10
10
  user_avatar_placeholder_default,
11
11
  workspaceAgentActivityStatusLabel
12
- } from "../chunk-5Q36BEUM.js";
12
+ } from "../chunk-FKCXHCPO.js";
13
13
  import {
14
14
  resolveWorkspaceAgentSessionSortTimeUnixMs,
15
15
  workspaceAgentProviderLabel
@@ -20,8 +20,9 @@ import {
20
20
  import {
21
21
  AgentGuiI18nProvider,
22
22
  useTranslation
23
- } from "../chunk-HSR5DI6O.js";
23
+ } from "../chunk-JWVLIF5R.js";
24
24
  import "../chunk-PJP5BUU6.js";
25
+ import "../chunk-ZU3FKYMG.js";
25
26
 
26
27
  // agent-message-center/WorkspaceAgentMessageCenterPanel.tsx
27
28
  import {
@@ -134,6 +135,7 @@ function buildWorkspaceAgentMessageCenterModel(snapshot, options = {}) {
134
135
  id: `message-center-${session.agentSessionId}`,
135
136
  agentSessionId: session.agentSessionId,
136
137
  provider: session.provider,
138
+ userId: session.userId?.trim() || null,
137
139
  title,
138
140
  identity: resolveMessageCenterIdentity(
139
141
  session.agentSessionId,
@@ -511,18 +513,29 @@ function positiveNumber(value) {
511
513
  }
512
514
 
513
515
  // agent-message-center/workspaceAgentMessageCenterViewModel.ts
514
- function partitionMessageCenterItemsByProvider(items) {
516
+ function partitionMessageCenterItemsByAgentUser(items) {
515
517
  const stacks = /* @__PURE__ */ new Map();
516
518
  for (const item of items) {
517
- const stack = stacks.get(item.provider);
519
+ const stackId = messageCenterAgentUserStackId(item);
520
+ const stack = stacks.get(stackId);
518
521
  if (stack) {
519
522
  stack.items.push(item);
520
523
  } else {
521
- stacks.set(item.provider, { provider: item.provider, items: [item] });
524
+ stacks.set(stackId, {
525
+ id: stackId,
526
+ provider: item.provider,
527
+ userId: item.userId,
528
+ items: [item]
529
+ });
522
530
  }
523
531
  }
524
532
  return [...stacks.values()];
525
533
  }
534
+ function messageCenterAgentUserStackId(item) {
535
+ const provider = item.provider.trim().toLowerCase() || "unknown-agent";
536
+ const userId = item.userId?.trim() || "unknown-user";
537
+ return `agent-user:${provider}:${userId}`;
538
+ }
526
539
  function buildMessageCenterStatusOptions(counts, t) {
527
540
  return [
528
541
  {
@@ -1142,6 +1155,7 @@ function MessageCenterStackSummary({
1142
1155
  ),
1143
1156
  "data-stack-summary-count": items.length,
1144
1157
  "data-stack-provider": firstItem.provider,
1158
+ "data-stack-user-id": firstItem.userId ?? "",
1145
1159
  "data-testid": `workspace-agent-message-stack-summary-${groupId}`,
1146
1160
  onClick: onExpand,
1147
1161
  children: /* @__PURE__ */ jsxs2(
@@ -1752,9 +1766,9 @@ function WorkspaceAgentMessageCenterPanelContent({
1752
1766
  return;
1753
1767
  }
1754
1768
  for (const group of itemGroups) {
1755
- for (const stack of partitionMessageCenterItemsByProvider(group.items)) {
1769
+ for (const stack of partitionMessageCenterItemsByAgentUser(group.items)) {
1756
1770
  if (stack.items.length > 1 && stack.items.some((item) => item.id === highlightedItemId)) {
1757
- expandStack(`${group.id}:${stack.provider}`);
1771
+ expandStack(`${group.id}:${stack.id}`);
1758
1772
  return;
1759
1773
  }
1760
1774
  }
@@ -1895,7 +1909,7 @@ function WorkspaceAgentMessageCenterPanelContent({
1895
1909
  item.agentSessionId
1896
1910
  );
1897
1911
  };
1898
- return partitionMessageCenterItemsByProvider(
1912
+ return partitionMessageCenterItemsByAgentUser(
1899
1913
  group.items
1900
1914
  ).map((stack) => {
1901
1915
  const firstItem = stack.items[0];
@@ -1905,7 +1919,7 @@ function WorkspaceAgentMessageCenterPanelContent({
1905
1919
  if (stack.items.length === 1) {
1906
1920
  return renderCard(firstItem);
1907
1921
  }
1908
- const stackId = `${group.id}:${stack.provider}`;
1922
+ const stackId = `${group.id}:${stack.id}`;
1909
1923
  return /* @__PURE__ */ jsx4(
1910
1924
  MessageCenterStack,
1911
1925
  {