@tutti-os/agent-gui 0.0.86 → 0.0.87

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/index.d.ts CHANGED
@@ -3,8 +3,8 @@ export { AgentActivityAdapter, AgentActivityController, AgentActivityMessage, Ag
3
3
  import { m as WorkspaceAgentActivityListViewModel, g as AgentHostWorkspaceAgentSession, f as AgentHostWorkspaceAgentMessage, l as AgentHostWorkspaceAgentSnapshot, B as BuildWorkspaceAgentActivityListOptions, d as AgentHostRuntimeOpenclawGatewayWarmupResult, c as AgentHostManagedAgentsState } from './workspaceAgentActivityListViewModel-TXH1VXrk.js';
4
4
  import * as react from 'react';
5
5
  import { ReactNode, PropsWithChildren, JSX, HTMLAttributes } from 'react';
6
- import { m as AgentProbeSnapshot, b as AgentComposerDraft, p as AgentSessionCommand, e as AgentGUIProviderSkillOption, c as AgentGUIComposerSettingsVM, f as AgentGUIQueuedPromptVM, d as AgentGUINodeViewModel, i as AgentHostInputApi } from './agentGuiNodeTypes-fRobgKiP.js';
7
- export { A as AGENT_PASTED_TEXT_BLOCK_KIND, a as AGENT_PASTED_TEXT_MENTION_KIND, g as AgentHostApi, h as AgentHostApplyWorkspaceGitPatchInput, j as AgentHostRuntimeApi, k as AgentHostSelectFilesInput, l as AgentProbeProvider, n as AgentProviderProbeListInput, o as AgentProviderProbeListResult, q as AgentUsageQuota, r as AgentUsageSnapshot, P as PersistWriteResult, R as ReadWorkspaceAgentReadStateInput, W as WorkspaceAgentReadStateSnapshot, s as WriteWorkspaceAgentReadStateInput } from './agentGuiNodeTypes-fRobgKiP.js';
6
+ import { m as AgentProbeSnapshot, b as AgentComposerDraft, p as AgentSessionCommand, e as AgentGUIProviderSkillOption, c as AgentGUIComposerSettingsVM, f as AgentGUIQueuedPromptVM, d as AgentGUINodeViewModel, i as AgentHostInputApi } from './agentGuiNodeTypes-BEs_Lhc3.js';
7
+ export { A as AGENT_PASTED_TEXT_BLOCK_KIND, a as AGENT_PASTED_TEXT_MENTION_KIND, g as AgentHostApi, h as AgentHostApplyWorkspaceGitPatchInput, j as AgentHostRuntimeApi, k as AgentHostSelectFilesInput, l as AgentProbeProvider, n as AgentProviderProbeListInput, o as AgentProviderProbeListResult, q as AgentUsageQuota, r as AgentUsageSnapshot, P as PersistWriteResult, R as ReadWorkspaceAgentReadStateInput, W as WorkspaceAgentReadStateSnapshot, s as WriteWorkspaceAgentReadStateInput } from './agentGuiNodeTypes-BEs_Lhc3.js';
8
8
  import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
9
9
  import { t as AgentProvider, l as AgentHostAgentSessionComposerSettings, j as AgentHostActivateAgentSessionResult, r as AgentHostUpdateAgentSessionSettingsResult, p as AgentHostAgentSessionState, q as AgentHostUnactivateAgentSessionResult, f as AgentGUINodeData, g as AgentGUIProvider, i as AgentGUIProviderTarget, s as AgentPromptContentBlock, A as AgentGUIAgent, P as Point, e as AgentGUIAllAgentsPresentation, b as AgentGUIAgentAvailabilityAction, N as NodeFrame } from './types-BvztUbHf.js';
10
10
  export { a as AgentGUIAgentAvailability, c as AgentGUIAgentAvailabilityStatus, d as AgentGUIAgentOwner } from './types-BvztUbHf.js';
package/dist/index.js CHANGED
@@ -79,7 +79,7 @@ import {
79
79
  textPromptContent,
80
80
  toLocalShortDateTime,
81
81
  useProjectedAgentConversation
82
- } from "./chunk-7FZT2OYT.js";
82
+ } from "./chunk-DC3HCHA3.js";
83
83
  import {
84
84
  AgentMessageMarkdown,
85
85
  AgentTargetPresentationProvider,
@@ -19149,6 +19149,15 @@ function queuedPromptImageDataUrl(image) {
19149
19149
  }
19150
19150
  return data.startsWith("data:") ? data : `data:${mimeType};base64,${data}`;
19151
19151
  }
19152
+ function queuedPromptImageHasSafeRemoteUrl(image) {
19153
+ const value = image.url?.trim() ?? "";
19154
+ try {
19155
+ const url = new URL(value);
19156
+ return url.protocol === "https:" && Boolean(url.hostname) && !url.username && !url.password;
19157
+ } catch {
19158
+ return false;
19159
+ }
19160
+ }
19152
19161
  function queuedPromptImageKey(queuedPrompt, image, index) {
19153
19162
  return [
19154
19163
  queuedPrompt.id,
@@ -19168,7 +19177,7 @@ function useQueuedPromptImageSources(input) {
19168
19177
  () => input.images.filter(({ image, key }) => {
19169
19178
  const attachmentId = image.attachmentId?.trim() ?? "";
19170
19179
  const path = image.path?.trim() ?? "";
19171
- return !queuedPromptImageDataUrl(image) && !sources.has(key) && Boolean(attachmentId || path) && Boolean(workspaceId);
19180
+ return !queuedPromptImageDataUrl(image) && !queuedPromptImageHasSafeRemoteUrl(image) && !sources.has(key) && Boolean(attachmentId || path) && Boolean(workspaceId);
19172
19181
  }),
19173
19182
  [input.images, sources, workspaceId]
19174
19183
  );