@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.
- package/dist/agent-message-center/index.d.ts +1 -0
- package/dist/agent-message-center/index.js +23 -9
- package/dist/agent-message-center/index.js.map +1 -1
- package/dist/app/renderer/agentactivity.css +11 -0
- package/dist/app/renderer/assets/icons/arrow-left-filled.svg +1 -0
- package/dist/{chunk-RORLLV27.js → chunk-3735XYFZ.js} +2 -40
- package/dist/chunk-3735XYFZ.js.map +1 -0
- package/dist/{chunk-IVPB4MLI.js → chunk-6AZ2KF6R.js} +1 -1
- package/dist/chunk-6AZ2KF6R.js.map +1 -0
- package/dist/{chunk-ZX5PDYAS.js → chunk-C63Z2JWT.js} +8 -10
- package/dist/chunk-C63Z2JWT.js.map +1 -0
- package/dist/chunk-FKCXHCPO.js +3478 -0
- package/dist/chunk-FKCXHCPO.js.map +1 -0
- package/dist/{chunk-ZP7P7DYO.js → chunk-GEXHKJK5.js} +6 -47
- package/dist/chunk-GEXHKJK5.js.map +1 -0
- package/dist/{chunk-UJWUGMWC.js → chunk-GYG57VTA.js} +17 -32
- package/dist/{chunk-UJWUGMWC.js.map → chunk-GYG57VTA.js.map} +1 -1
- package/dist/{chunk-HSR5DI6O.js → chunk-JWVLIF5R.js} +5 -1
- package/dist/chunk-JWVLIF5R.js.map +1 -0
- package/dist/{chunk-UKQIGNN3.js → chunk-KGFWU4FL.js} +2 -2
- package/dist/{chunk-BABBC24I.js → chunk-LUGELG5V.js} +4 -1
- package/dist/chunk-LUGELG5V.js.map +1 -0
- package/dist/chunk-ZU3FKYMG.js +47 -0
- package/dist/chunk-ZU3FKYMG.js.map +1 -0
- package/dist/i18n/index.d.ts +4 -0
- package/dist/i18n/index.js +1 -1
- package/dist/index.d.ts +2 -11
- package/dist/index.js +176 -60
- package/dist/index.js.map +1 -1
- package/dist/mention-file-presentation.d.ts +2 -1
- package/dist/mention-file-presentation.js +1 -1
- package/dist/workbench/contribution.js +6 -5
- package/dist/workbench/index.d.ts +1 -1
- package/dist/workbench/index.js +6 -5
- package/dist/workbench/launch.d.ts +1 -7
- package/dist/workbench/launch.js +2 -2
- package/dist/workbench/state.js +1 -1
- package/dist/workbench/types.d.ts +1 -12
- package/dist/workbench/types.js +1 -1
- package/dist/workspace-agent-generated-files.js +2 -2
- package/package.json +10 -10
- package/dist/chunk-5Q36BEUM.js +0 -3478
- package/dist/chunk-5Q36BEUM.js.map +0 -1
- package/dist/chunk-BABBC24I.js.map +0 -1
- package/dist/chunk-HSR5DI6O.js.map +0 -1
- package/dist/chunk-IVPB4MLI.js.map +0 -1
- package/dist/chunk-RORLLV27.js.map +0 -1
- package/dist/chunk-ZP7P7DYO.js.map +0 -1
- package/dist/chunk-ZX5PDYAS.js.map +0 -1
- package/dist/user-avatar-placeholder-WP2373TS.png +0 -0
- /package/dist/{chunk-UKQIGNN3.js.map → chunk-KGFWU4FL.js.map} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
managedAgentRoundedIconUrl,
|
|
10
10
|
user_avatar_placeholder_default,
|
|
11
11
|
workspaceAgentActivityStatusLabel
|
|
12
|
-
} from "../chunk-
|
|
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-
|
|
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
|
|
516
|
+
function partitionMessageCenterItemsByAgentUser(items) {
|
|
515
517
|
const stacks = /* @__PURE__ */ new Map();
|
|
516
518
|
for (const item of items) {
|
|
517
|
-
const
|
|
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(
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
1922
|
+
const stackId = `${group.id}:${stack.id}`;
|
|
1909
1923
|
return /* @__PURE__ */ jsx4(
|
|
1910
1924
|
MessageCenterStack,
|
|
1911
1925
|
{
|