@tutti-os/agent-gui 0.0.22 → 0.0.23
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-UUGCUPYW.js → chunk-3LVEFR2N.js} +2 -2
- package/dist/{chunk-6TRWLMRE.js → chunk-7Q3JKSQ5.js} +2 -2
- package/dist/{chunk-222YHU5Z.js → chunk-CCI6EK5W.js} +1 -1
- package/dist/chunk-CCI6EK5W.js.map +1 -0
- package/dist/{chunk-KRKC3XXB.js → chunk-MQAGIHYM.js} +61 -13
- package/dist/chunk-MQAGIHYM.js.map +1 -0
- package/dist/{chunk-64FJGJ3F.js → chunk-ZC4E2QJU.js} +3 -3
- 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-KRKC3XXB.js.map +0 -1
- /package/dist/{chunk-UUGCUPYW.js.map → chunk-3LVEFR2N.js.map} +0 -0
- /package/dist/{chunk-6TRWLMRE.js.map → chunk-7Q3JKSQ5.js.map} +0 -0
- /package/dist/{chunk-64FJGJ3F.js.map → chunk-ZC4E2QJU.js.map} +0 -0
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
AgentGUIConversation_styles_default,
|
|
8
8
|
MessageSquareMoreIcon,
|
|
9
9
|
extractAgentMcpToolTarget
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7Q3JKSQ5.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";
|
|
@@ -1120,4 +1120,4 @@ export {
|
|
|
1120
1120
|
isPromptRequestIdTitle,
|
|
1121
1121
|
AgentInteractivePromptSurface
|
|
1122
1122
|
};
|
|
1123
|
-
//# sourceMappingURL=chunk-
|
|
1123
|
+
//# sourceMappingURL=chunk-ZC4E2QJU.js.map
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
AgentMentionSearchController,
|
|
5
5
|
flattenAgentMentionPaletteEntries,
|
|
6
6
|
groupStartKeys
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-3LVEFR2N.js";
|
|
8
8
|
import "../chunk-B7DTDZVT.js";
|
|
9
9
|
import "../chunk-F7XLV7M3.js";
|
|
10
10
|
import "../chunk-MTFSQWZ6.js";
|
|
11
11
|
import "../chunk-IBIMGLCD.js";
|
|
12
12
|
import "../chunk-XAQQN6MP.js";
|
|
13
13
|
import "../chunk-XJ34OIEQ.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-CCI6EK5W.js";
|
|
15
15
|
import "../chunk-TYGL25EL.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENT_CONTEXT_MENTION_PROVIDER_IDS
|
package/dist/index.d.ts
CHANGED
|
@@ -293,8 +293,16 @@ interface AgentActivityRuntimeReadSessionAttachmentInput {
|
|
|
293
293
|
attachmentId: string;
|
|
294
294
|
workspaceId: string;
|
|
295
295
|
}
|
|
296
|
+
interface AgentActivityRuntimeReadPromptAssetInput {
|
|
297
|
+
agentSessionId?: string | null;
|
|
298
|
+
mimeType: string;
|
|
299
|
+
name?: string | null;
|
|
300
|
+
path?: string | null;
|
|
301
|
+
sha256?: string | null;
|
|
302
|
+
workspaceId: string;
|
|
303
|
+
}
|
|
296
304
|
type AgentActivityRuntimePromptContentBlock = AgentActivitySendInput["content"][number] & {
|
|
297
|
-
|
|
305
|
+
path?: string;
|
|
298
306
|
};
|
|
299
307
|
interface AgentActivityRuntimeUploadPromptContentInput {
|
|
300
308
|
content: AgentActivityRuntimePromptContentBlock[];
|
|
@@ -309,6 +317,12 @@ interface AgentActivityRuntimeSessionAttachment {
|
|
|
309
317
|
name?: string;
|
|
310
318
|
data: string;
|
|
311
319
|
}
|
|
320
|
+
interface AgentActivityRuntimePromptAsset {
|
|
321
|
+
mimeType: string;
|
|
322
|
+
name?: string;
|
|
323
|
+
path: string;
|
|
324
|
+
data: string;
|
|
325
|
+
}
|
|
312
326
|
interface AgentActivityRuntime {
|
|
313
327
|
cancelSession(input: AgentActivityCancelSessionInput): Promise<AgentActivityCancelSessionResult>;
|
|
314
328
|
createSession(input: AgentActivityCreateSessionInput): Promise<AgentActivitySession>;
|
|
@@ -329,6 +343,7 @@ interface AgentActivityRuntime {
|
|
|
329
343
|
sendInput(input: AgentActivitySendInput): Promise<AgentActivitySession>;
|
|
330
344
|
uploadPromptContent?(input: AgentActivityRuntimeUploadPromptContentInput): Promise<AgentActivityRuntimeUploadPromptContentResult>;
|
|
331
345
|
readSessionAttachment?(input: AgentActivityRuntimeReadSessionAttachmentInput): Promise<AgentActivityRuntimeSessionAttachment>;
|
|
346
|
+
readPromptAsset?(input: AgentActivityRuntimeReadPromptAssetInput): Promise<AgentActivityRuntimePromptAsset>;
|
|
332
347
|
setSessionPinned(input: AgentActivityRuntimeSetSessionPinnedInput): Promise<AgentActivitySession>;
|
|
333
348
|
trackSettingsProjectChange?(input: AgentActivityRuntimeTrackSettingsProjectChangeInput): Promise<void>;
|
|
334
349
|
trackDraftComposerSettingsChange?(input: AgentActivityRuntimeTrackDraftComposerSettingsChangeInput): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
AgentInteractivePromptSurface,
|
|
15
15
|
approvalOptionDisplayLabel
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZC4E2QJU.js";
|
|
17
17
|
import {
|
|
18
18
|
PLAN_IMPLEMENTATION_ACTION_FEEDBACK,
|
|
19
19
|
PLAN_IMPLEMENTATION_ACTION_IMPLEMENT,
|
|
@@ -36,13 +36,13 @@ import {
|
|
|
36
36
|
skillDescriptionForDisplay,
|
|
37
37
|
skillTriggerForPrefix,
|
|
38
38
|
useProjectedAgentConversation
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-MQAGIHYM.js";
|
|
40
40
|
import {
|
|
41
41
|
AgentMessageMarkdown,
|
|
42
42
|
ZoomableImage,
|
|
43
43
|
cn,
|
|
44
44
|
resolveWorkspaceLinkAction
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-7Q3JKSQ5.js";
|
|
46
46
|
import {
|
|
47
47
|
AGENT_MENTION_FILTER_TAB_ORDER,
|
|
48
48
|
AgentFileMentionPalette,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
DEFAULT_AGENT_MENTION_FILTER,
|
|
51
51
|
flattenAgentMentionPaletteEntries,
|
|
52
52
|
preloadAgentMentionBrowse
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-3LVEFR2N.js";
|
|
54
54
|
import {
|
|
55
55
|
WORKSPACE_AGENT_ACTIVITY_RUNTIME_SESSION_ORIGIN,
|
|
56
56
|
buildWorkspaceAgentActivityListViewModel,
|
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
useAgentActivitySnapshot,
|
|
91
91
|
useAgentHostApi,
|
|
92
92
|
useOptionalAgentActivityRuntime
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-CCI6EK5W.js";
|
|
94
94
|
import "./chunk-TYGL25EL.js";
|
|
95
95
|
import {
|
|
96
96
|
AGENT_CONTEXT_MENTION_PROVIDER_IDS
|
|
@@ -3189,14 +3189,14 @@ function normalizeAgentPromptContentBlocks(content) {
|
|
|
3189
3189
|
if (block.type === "image") {
|
|
3190
3190
|
const mimeType = block.mimeType?.trim();
|
|
3191
3191
|
const data = block.data?.trim();
|
|
3192
|
-
const
|
|
3193
|
-
if (!data && !
|
|
3192
|
+
const imagePath = block.path?.trim();
|
|
3193
|
+
if (!data && !imagePath || mimeType !== "image/png" && mimeType !== "image/jpeg" && mimeType !== "image/webp") {
|
|
3194
3194
|
continue;
|
|
3195
3195
|
}
|
|
3196
3196
|
result.push({
|
|
3197
3197
|
type: "image",
|
|
3198
3198
|
mimeType,
|
|
3199
|
-
...
|
|
3199
|
+
...imagePath ? { path: imagePath } : { data },
|
|
3200
3200
|
...block.name?.trim() ? { name: block.name.trim() } : {}
|
|
3201
3201
|
});
|
|
3202
3202
|
continue;
|
|
@@ -3219,7 +3219,7 @@ function agentPromptContentHasImage(content) {
|
|
|
3219
3219
|
}
|
|
3220
3220
|
function agentPromptContentImageBlocks(content) {
|
|
3221
3221
|
return normalizeAgentPromptContentBlocks(content).filter(
|
|
3222
|
-
(block) => block.type === "image" && (typeof block.data === "string" || typeof block.
|
|
3222
|
+
(block) => block.type === "image" && (typeof block.data === "string" || typeof block.path === "string") && typeof block.mimeType === "string"
|
|
3223
3223
|
);
|
|
3224
3224
|
}
|
|
3225
3225
|
function agentPromptContentToComposerDraft(content, idPrefix) {
|
|
@@ -3247,7 +3247,7 @@ function agentComposerDraftToPromptContent(input) {
|
|
|
3247
3247
|
...input.draft.images.slice(0, MAX_AGENT_COMPOSER_DRAFT_IMAGES).filter((image) => !image.uploading && !image.uploadError).map((image) => ({
|
|
3248
3248
|
type: "image",
|
|
3249
3249
|
mimeType: image.mimeType,
|
|
3250
|
-
...image.
|
|
3250
|
+
...image.path ? { path: image.path } : { data: image.data },
|
|
3251
3251
|
name: image.name
|
|
3252
3252
|
}))
|
|
3253
3253
|
]);
|
|
@@ -3290,8 +3290,8 @@ function agentPromptImageBlockToDraftImage(image, idPrefix, index) {
|
|
|
3290
3290
|
name: image.name?.trim() || `image-${index + 1}`,
|
|
3291
3291
|
mimeType: image.mimeType,
|
|
3292
3292
|
data: image.data,
|
|
3293
|
-
|
|
3294
|
-
previewUrl: typeof image.data === "string" && image.data ? `data:${image.mimeType};base64,${image.data}` : image.
|
|
3293
|
+
path: image.path,
|
|
3294
|
+
previewUrl: typeof image.data === "string" && image.data ? `data:${image.mimeType};base64,${image.data}` : image.path ?? ""
|
|
3295
3295
|
};
|
|
3296
3296
|
}
|
|
3297
3297
|
|
|
@@ -17939,17 +17939,17 @@ function AgentComposer({
|
|
|
17939
17939
|
const uploadedImage = result.content.find(
|
|
17940
17940
|
(block) => block.type === "image"
|
|
17941
17941
|
);
|
|
17942
|
-
const
|
|
17943
|
-
if (!
|
|
17944
|
-
throw new Error("Prompt image upload completed without
|
|
17942
|
+
const uploadedPath = uploadedImage?.path?.trim() ?? "";
|
|
17943
|
+
if (!uploadedPath) {
|
|
17944
|
+
throw new Error("Prompt image upload completed without path.");
|
|
17945
17945
|
}
|
|
17946
17946
|
const uploadedDraftImages = draftImagesRef.current.map(
|
|
17947
17947
|
(image) => image.id === draftImage.id ? {
|
|
17948
17948
|
id: image.id,
|
|
17949
17949
|
name: image.name,
|
|
17950
17950
|
mimeType: image.mimeType,
|
|
17951
|
-
|
|
17952
|
-
previewUrl:
|
|
17951
|
+
path: uploadedPath,
|
|
17952
|
+
previewUrl: image.previewUrl,
|
|
17953
17953
|
uploading: false
|
|
17954
17954
|
} : image
|
|
17955
17955
|
);
|