@tutti-os/agent-gui 0.0.19 → 0.0.21
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-conversation/index.d.ts +2 -2
- package/dist/agent-conversation/index.js +3 -3
- package/dist/agent-message-center/index.d.ts +1 -1
- package/dist/agent-message-center/index.js +3 -3
- package/dist/{agentConversationVM-BVe64P2E.d.ts → agentConversationVM-CGYkOuOP.d.ts} +1 -0
- package/dist/{chunk-B727YDVW.js → chunk-2BGUS7DE.js} +3 -3
- package/dist/{chunk-SY3ES2SA.js → chunk-4NGM7NFL.js} +22 -10
- package/dist/chunk-4NGM7NFL.js.map +1 -0
- package/dist/{chunk-HFL5WGRF.js → chunk-BMGCH4JC.js} +2 -2
- package/dist/{chunk-222YHU5Z.js → chunk-CCI6EK5W.js} +1 -1
- package/dist/chunk-CCI6EK5W.js.map +1 -0
- package/dist/{chunk-5BVKJM77.js → chunk-WP7ZZ56R.js} +2 -2
- package/dist/context-mention-palette/index.js +2 -2
- package/dist/index.d.ts +16 -1
- package/dist/index.js +17 -17
- package/dist/index.js.map +1 -1
- package/dist/plan-decision-ops.d.ts +1 -1
- package/package.json +12 -12
- package/dist/chunk-222YHU5Z.js.map +0 -1
- package/dist/chunk-SY3ES2SA.js.map +0 -1
- /package/dist/{chunk-B727YDVW.js.map → chunk-2BGUS7DE.js.map} +0 -0
- /package/dist/{chunk-HFL5WGRF.js.map → chunk-BMGCH4JC.js.map} +0 -0
- /package/dist/{chunk-5BVKJM77.js.map → chunk-WP7ZZ56R.js.map} +0 -0
|
@@ -2,8 +2,8 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode, JSX } from 'react';
|
|
3
3
|
import { W as WorkspaceLinkAction } from '../workspaceLinkActions-CqWZaCY4.js';
|
|
4
4
|
import { A as AgentMessageMarkdownWorkspaceAppIcon } from '../AgentMessageMarkdown-DeYPURtF.js';
|
|
5
|
-
import { a as AgentConversationVM, W as WorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-
|
|
6
|
-
export { B as BuildWorkspaceAgentSessionDetailInput, b as buildWorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-
|
|
5
|
+
import { a as AgentConversationVM, W as WorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-CGYkOuOP.js';
|
|
6
|
+
export { B as BuildWorkspaceAgentSessionDetailInput, b as buildWorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-CGYkOuOP.js';
|
|
7
7
|
export { W as WorkspaceAgentActivityCard, n as WorkspaceAgentActivitySession, p as WorkspaceAgentActivityTimelineItem } from '../workspaceAgentActivityListViewModel-BK_J3aNX.js';
|
|
8
8
|
import '@tutti-os/workspace-issue-manager/core';
|
|
9
9
|
import '@tutti-os/agent-activity-core';
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
projectAgentConversationVM,
|
|
7
7
|
reconcileProjectedAgentConversationVM,
|
|
8
8
|
useProjectedAgentConversation
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-4NGM7NFL.js";
|
|
10
|
+
import "../chunk-BMGCH4JC.js";
|
|
11
11
|
import "../chunk-XAQQN6MP.js";
|
|
12
12
|
import "../chunk-XJ34OIEQ.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-CCI6EK5W.js";
|
|
14
14
|
import "../chunk-TYGL25EL.js";
|
|
15
15
|
import {
|
|
16
16
|
translate
|
|
@@ -4,7 +4,7 @@ import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
|
|
|
4
4
|
import { useTranslation, AgentGuiI18nLocale, TranslateFn } from '../i18n/index.js';
|
|
5
5
|
import { W as WorkspaceLinkAction } from '../workspaceLinkActions-CqWZaCY4.js';
|
|
6
6
|
import { AgentActivityNeedsAttentionItem, AgentActivitySnapshot } from '@tutti-os/agent-activity-core';
|
|
7
|
-
import { A as AgentConversationPromptVM } from '../agentConversationVM-
|
|
7
|
+
import { A as AgentConversationPromptVM } from '../agentConversationVM-CGYkOuOP.js';
|
|
8
8
|
import { o as WorkspaceAgentActivityStatus } from '../workspaceAgentActivityListViewModel-BK_J3aNX.js';
|
|
9
9
|
export { PLAN_IMPLEMENTATION_ACTION_IMPLEMENT, PLAN_IMPLEMENTATION_PROMPT } from '../plan-decision-ops.js';
|
|
10
10
|
import '@tutti-os/workspace-issue-manager/core';
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
approvalOptionDisplayLabel,
|
|
4
4
|
getPromptToolDetails,
|
|
5
5
|
isPromptRequestIdTitle
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-2BGUS7DE.js";
|
|
7
7
|
import {
|
|
8
8
|
PLAN_IMPLEMENTATION_ACTION_IMPLEMENT,
|
|
9
9
|
PLAN_IMPLEMENTATION_PROMPT,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
cn,
|
|
17
17
|
extractAgentMcpToolTarget,
|
|
18
18
|
normalizeAskUserQuestions
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-BMGCH4JC.js";
|
|
20
20
|
import {
|
|
21
21
|
managedAgentRoundedIconUrl,
|
|
22
22
|
userAvatarPlaceholderUrl,
|
|
@@ -26,7 +26,7 @@ import "../chunk-MTFSQWZ6.js";
|
|
|
26
26
|
import {
|
|
27
27
|
resolveWorkspaceAgentSessionSortTimeUnixMs
|
|
28
28
|
} from "../chunk-IBIMGLCD.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-CCI6EK5W.js";
|
|
30
30
|
import {
|
|
31
31
|
workspaceAgentProviderLabel
|
|
32
32
|
} from "../chunk-TYGL25EL.js";
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
AgentGUIConversation_styles_default,
|
|
8
8
|
MessageSquareMoreIcon,
|
|
9
9
|
extractAgentMcpToolTarget
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BMGCH4JC.js";
|
|
11
11
|
import {
|
|
12
12
|
Spinner
|
|
13
13
|
} from "./chunk-F7XLV7M3.js";
|
|
14
14
|
import {
|
|
15
15
|
getOptionalAgentHostApi,
|
|
16
16
|
useOptionalAgentHostApi
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CCI6EK5W.js";
|
|
18
18
|
import {
|
|
19
19
|
translate
|
|
20
20
|
} from "./chunk-GLDKFIWM.js";
|
|
@@ -1106,4 +1106,4 @@ export {
|
|
|
1106
1106
|
isPromptRequestIdTitle,
|
|
1107
1107
|
AgentInteractivePromptSurface
|
|
1108
1108
|
};
|
|
1109
|
-
//# sourceMappingURL=chunk-
|
|
1109
|
+
//# sourceMappingURL=chunk-2BGUS7DE.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
resolveWorkspaceFileLinkAction,
|
|
11
11
|
resolveWorkspaceFilePathCandidate,
|
|
12
12
|
resolveWorkspaceLinkAction
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BMGCH4JC.js";
|
|
14
14
|
import {
|
|
15
15
|
attrsToMentionItem,
|
|
16
16
|
createAgentFileMentionExtension,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
getOptionalAgentActivityRuntime,
|
|
26
26
|
useOptionalAgentHostApi
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CCI6EK5W.js";
|
|
28
28
|
import {
|
|
29
29
|
workspaceAgentProviderLabel
|
|
30
30
|
} from "./chunk-TYGL25EL.js";
|
|
@@ -4368,13 +4368,14 @@ function projectUserMessageContentParts(message, turnId, workspaceId) {
|
|
|
4368
4368
|
body: "",
|
|
4369
4369
|
contentKind: "image-grid",
|
|
4370
4370
|
images: imageBlocks.map((image, index) => ({
|
|
4371
|
-
id: image.attachmentId || `${message.id}:image:0:${index}`,
|
|
4371
|
+
id: image.path || image.attachmentId || `${message.id}:image:0:${index}`,
|
|
4372
4372
|
workspaceId: image.workspaceId,
|
|
4373
4373
|
agentSessionId: image.agentSessionId,
|
|
4374
4374
|
attachmentId: image.attachmentId,
|
|
4375
4375
|
mimeType: image.mimeType,
|
|
4376
4376
|
name: image.name,
|
|
4377
|
-
data: image.data
|
|
4377
|
+
data: image.data,
|
|
4378
|
+
path: image.path
|
|
4378
4379
|
})),
|
|
4379
4380
|
occurredAtUnixMs: message.occurredAtUnixMs ?? null,
|
|
4380
4381
|
sourceTimelineItems: message.sourceTimelineItems
|
|
@@ -4448,7 +4449,8 @@ function userPromptContentBlocks(message, fallbackWorkspaceId) {
|
|
|
4448
4449
|
attachmentId: typeof block.attachmentId === "string" && block.attachmentId.trim() ? block.attachmentId.trim() : null,
|
|
4449
4450
|
mimeType,
|
|
4450
4451
|
name: typeof block.name === "string" && block.name.trim() ? block.name.trim() : null,
|
|
4451
|
-
data: typeof block.data === "string" && block.data.trim() ? block.data.trim() : null
|
|
4452
|
+
data: typeof block.data === "string" && block.data.trim() ? block.data.trim() : null,
|
|
4453
|
+
path: typeof block.path === "string" && block.path.trim() ? block.path.trim() : null
|
|
4452
4454
|
}
|
|
4453
4455
|
];
|
|
4454
4456
|
});
|
|
@@ -6545,21 +6547,31 @@ function useAgentMessageImageSources(images) {
|
|
|
6545
6547
|
const [sources, setSources] = useState5(() => /* @__PURE__ */ new Map());
|
|
6546
6548
|
const missingImages = useMemo(
|
|
6547
6549
|
() => images.filter(
|
|
6548
|
-
(image) => !imageDataUrl(image) && !sources.has(image.id) && image.workspaceId && image.agentSessionId && image.attachmentId
|
|
6550
|
+
(image) => !imageDataUrl(image) && !sources.has(image.id) && image.workspaceId && image.agentSessionId && (image.attachmentId || image.path)
|
|
6549
6551
|
),
|
|
6550
6552
|
[images, sources]
|
|
6551
6553
|
);
|
|
6552
6554
|
useEffect4(() => {
|
|
6553
|
-
if (!runtime?.readSessionAttachment || missingImages.length === 0) {
|
|
6555
|
+
if (!runtime?.readSessionAttachment && !runtime?.readPromptAsset || missingImages.length === 0) {
|
|
6554
6556
|
return;
|
|
6555
6557
|
}
|
|
6556
6558
|
let canceled = false;
|
|
6557
6559
|
for (const image of missingImages) {
|
|
6558
|
-
|
|
6560
|
+
const readImage = image.attachmentId ? runtime.readSessionAttachment?.({
|
|
6559
6561
|
workspaceId: image.workspaceId ?? "",
|
|
6560
6562
|
agentSessionId: image.agentSessionId,
|
|
6561
6563
|
attachmentId: image.attachmentId ?? ""
|
|
6562
|
-
}).
|
|
6564
|
+
}) : runtime.readPromptAsset?.({
|
|
6565
|
+
workspaceId: image.workspaceId ?? "",
|
|
6566
|
+
agentSessionId: image.agentSessionId,
|
|
6567
|
+
mimeType: image.mimeType,
|
|
6568
|
+
name: image.name,
|
|
6569
|
+
path: image.path
|
|
6570
|
+
});
|
|
6571
|
+
if (!readImage) {
|
|
6572
|
+
continue;
|
|
6573
|
+
}
|
|
6574
|
+
void readImage.then((attachment) => {
|
|
6563
6575
|
if (canceled) {
|
|
6564
6576
|
return;
|
|
6565
6577
|
}
|
|
@@ -12085,4 +12097,4 @@ export {
|
|
|
12085
12097
|
AgentConversationFlow,
|
|
12086
12098
|
useProjectedAgentConversation
|
|
12087
12099
|
};
|
|
12088
|
-
//# sourceMappingURL=chunk-
|
|
12100
|
+
//# sourceMappingURL=chunk-4NGM7NFL.js.map
|