@tutti-os/agent-gui 0.0.20 → 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.
@@ -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-D09Aw-Ei.js';
6
- export { B as BuildWorkspaceAgentSessionDetailInput, b as buildWorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-D09Aw-Ei.js';
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-DIBNU26G.js";
10
- import "../chunk-7THDJWRR.js";
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-IEBWFP7O.js";
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-D09Aw-Ei.js';
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-5H4ISRJQ.js";
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-7THDJWRR.js";
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-IEBWFP7O.js";
29
+ import "../chunk-CCI6EK5W.js";
30
30
  import {
31
31
  workspaceAgentProviderLabel
32
32
  } from "../chunk-TYGL25EL.js";
@@ -173,9 +173,6 @@ interface AgentMessageImageVM {
173
173
  name?: string | null;
174
174
  data?: string | null;
175
175
  path?: string | null;
176
- uri?: string | null;
177
- uploadStatus?: "pending" | "uploaded" | "failed" | string | null;
178
- assetId?: string | null;
179
176
  }
180
177
  interface AgentThinkingContentVM {
181
178
  kind: "thinking-content";
@@ -7,14 +7,14 @@ import {
7
7
  AgentGUIConversation_styles_default,
8
8
  MessageSquareMoreIcon,
9
9
  extractAgentMcpToolTarget
10
- } from "./chunk-7THDJWRR.js";
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-IEBWFP7O.js";
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-5H4ISRJQ.js.map
1109
+ //# sourceMappingURL=chunk-2BGUS7DE.js.map
@@ -10,7 +10,7 @@ import {
10
10
  resolveWorkspaceFileLinkAction,
11
11
  resolveWorkspaceFilePathCandidate,
12
12
  resolveWorkspaceLinkAction
13
- } from "./chunk-7THDJWRR.js";
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-IEBWFP7O.js";
27
+ } from "./chunk-CCI6EK5W.js";
28
28
  import {
29
29
  workspaceAgentProviderLabel
30
30
  } from "./chunk-TYGL25EL.js";
@@ -4368,17 +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.assetId || image.path || image.uri || 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
4377
  data: image.data,
4378
- path: image.path,
4379
- uri: image.uri,
4380
- uploadStatus: image.uploadStatus,
4381
- assetId: image.assetId
4378
+ path: image.path
4382
4379
  })),
4383
4380
  occurredAtUnixMs: message.occurredAtUnixMs ?? null,
4384
4381
  sourceTimelineItems: message.sourceTimelineItems
@@ -4453,10 +4450,7 @@ function userPromptContentBlocks(message, fallbackWorkspaceId) {
4453
4450
  mimeType,
4454
4451
  name: typeof block.name === "string" && block.name.trim() ? block.name.trim() : null,
4455
4452
  data: typeof block.data === "string" && block.data.trim() ? block.data.trim() : null,
4456
- path: typeof block.path === "string" && block.path.trim() ? block.path.trim() : null,
4457
- uri: typeof block.uri === "string" && block.uri.trim() ? block.uri.trim() : null,
4458
- uploadStatus: typeof block.uploadStatus === "string" && block.uploadStatus.trim() ? block.uploadStatus.trim() : null,
4459
- assetId: typeof block.assetId === "string" && block.assetId.trim() ? block.assetId.trim() : null
4453
+ path: typeof block.path === "string" && block.path.trim() ? block.path.trim() : null
4460
4454
  }
4461
4455
  ];
4462
4456
  });
@@ -6553,7 +6547,7 @@ function useAgentMessageImageSources(images) {
6553
6547
  const [sources, setSources] = useState5(() => /* @__PURE__ */ new Map());
6554
6548
  const missingImages = useMemo(
6555
6549
  () => images.filter(
6556
- (image) => !imageDataUrl(image) && !sources.has(image.id) && image.workspaceId && image.agentSessionId && (image.attachmentId || image.path || image.uri)
6550
+ (image) => !imageDataUrl(image) && !sources.has(image.id) && image.workspaceId && image.agentSessionId && (image.attachmentId || image.path)
6557
6551
  ),
6558
6552
  [images, sources]
6559
6553
  );
@@ -6570,12 +6564,9 @@ function useAgentMessageImageSources(images) {
6570
6564
  }) : runtime.readPromptAsset?.({
6571
6565
  workspaceId: image.workspaceId ?? "",
6572
6566
  agentSessionId: image.agentSessionId,
6573
- assetId: image.assetId,
6574
6567
  mimeType: image.mimeType,
6575
6568
  name: image.name,
6576
- path: image.path,
6577
- uri: image.uri,
6578
- uploadStatus: image.uploadStatus
6569
+ path: image.path
6579
6570
  });
6580
6571
  if (!readImage) {
6581
6572
  continue;
@@ -12106,4 +12097,4 @@ export {
12106
12097
  AgentConversationFlow,
12107
12098
  useProjectedAgentConversation
12108
12099
  };
12109
- //# sourceMappingURL=chunk-DIBNU26G.js.map
12100
+ //# sourceMappingURL=chunk-4NGM7NFL.js.map