@tutti-os/agent-gui 0.0.88 → 0.0.90
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 +3 -3
- package/dist/agent-conversation/index.js +1 -1
- package/dist/agent-message-center/index.d.ts +1 -1
- package/dist/{agentConversationVM-BgoqFyE9.d.ts → agentConversationVM-CfXN_TQ2.d.ts} +1 -0
- package/dist/{agentGuiNodeTypes-BEs_Lhc3.d.ts → agentGuiNodeTypes-D4mk1Nr3.d.ts} +1 -1
- package/dist/{chunk-DC3HCHA3.js → chunk-KTXWPKGP.js} +17 -4
- package/dist/chunk-KTXWPKGP.js.map +1 -0
- package/dist/{chunk-A7RA7ORT.js → chunk-P7RX2NSY.js} +14 -1
- package/dist/{chunk-A7RA7ORT.js.map → chunk-P7RX2NSY.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +233 -45
- package/dist/index.js.map +1 -1
- package/dist/plan-decision-ops.d.ts +1 -1
- package/dist/queued-prompt-runtime.d.ts +2 -2
- package/dist/workbench/contribution.js +1 -1
- package/dist/workbench/index.js +1 -1
- package/package.json +12 -12
- package/dist/chunk-DC3HCHA3.js.map +0 -1
|
@@ -2,9 +2,9 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode, JSX } from 'react';
|
|
3
3
|
import { W as WorkspaceLinkAction } from '../workspaceLinkActions-DS9LWqzI.js';
|
|
4
4
|
import { A as AgentMessageMarkdownWorkspaceAppIcon } from '../AgentMessageMarkdown-DeYPURtF.js';
|
|
5
|
-
import { c as AgentConversationVM, W as WorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-
|
|
6
|
-
export { B as BuildWorkspaceAgentSessionDetailInput, d as buildWorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-
|
|
7
|
-
import { e as AgentGUIProviderSkillOption } from '../agentGuiNodeTypes-
|
|
5
|
+
import { c as AgentConversationVM, W as WorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-CfXN_TQ2.js';
|
|
6
|
+
export { B as BuildWorkspaceAgentSessionDetailInput, d as buildWorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-CfXN_TQ2.js';
|
|
7
|
+
import { e as AgentGUIProviderSkillOption } from '../agentGuiNodeTypes-D4mk1Nr3.js';
|
|
8
8
|
export { W as WorkspaceAgentActivityCard, n as WorkspaceAgentActivitySession, q as WorkspaceAgentActivityTimelineItem } from '../workspaceAgentActivityListViewModel-TXH1VXrk.js';
|
|
9
9
|
import '@tutti-os/workspace-issue-manager/core';
|
|
10
10
|
import '@tutti-os/agent-activity-core';
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
projectAgentConversationVM,
|
|
7
7
|
reconcileProjectedAgentConversationVM,
|
|
8
8
|
useProjectedAgentConversation
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-KTXWPKGP.js";
|
|
10
10
|
import "../chunk-XQUUELKF.js";
|
|
11
11
|
import "../chunk-PSLAWU25.js";
|
|
12
12
|
import "../chunk-KQE5KV2V.js";
|
|
@@ -4,7 +4,7 @@ import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
|
|
|
4
4
|
import { TranslateFn, useTranslation, AgentGuiI18nLocale } from '../i18n/index.js';
|
|
5
5
|
import { W as WorkspaceLinkAction } from '../workspaceLinkActions-DS9LWqzI.js';
|
|
6
6
|
import { AgentActivityNeedsAttentionItem, AgentActivitySnapshot } from '@tutti-os/agent-activity-core';
|
|
7
|
-
import { b as AgentConversationPromptVM } from '../agentConversationVM-
|
|
7
|
+
import { b as AgentConversationPromptVM } from '../agentConversationVM-CfXN_TQ2.js';
|
|
8
8
|
import { o as WorkspaceAgentActivityStatus } from '../workspaceAgentActivityListViewModel-TXH1VXrk.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';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AgentActivityUsage } from '@tutti-os/agent-activity-core';
|
|
2
2
|
import { k as AgentHostAgentSessionCommand, l as AgentHostAgentSessionComposerSettings, n as AgentHostAgentSessionReasoningEffort, o as AgentHostAgentSessionSpeed, m as AgentHostAgentSessionPermissionConfig, p as AgentHostAgentSessionState, g as AgentGUIProvider, s as AgentPromptContentBlock, f as AgentGUINodeData, i as AgentGUIProviderTarget, h as AgentGUIProviderReadinessGate } from './types-BvztUbHf.js';
|
|
3
3
|
import { A as AgentHostBatchUserInfoInput, a as AgentHostBatchUserInfoResult, b as AgentHostDeleteWorkspaceAgentSessionInput, k as AgentHostWorkspaceAgentSessionSummaryInput, j as AgentHostWorkspaceAgentSessionSummary, e as AgentHostWorkspaceAgentListInput, l as AgentHostWorkspaceAgentSnapshot, i as AgentHostWorkspaceAgentSessionMessagesInput, h as AgentHostWorkspaceAgentSessionMessages, p as WorkspaceAgentActivitySyncState } from './workspaceAgentActivityListViewModel-TXH1VXrk.js';
|
|
4
|
-
import { A as AgentApprovalItemVM, a as AgentAskUserQuestionVM, b as AgentConversationPromptVM, c as AgentConversationVM, W as WorkspaceAgentSessionDetailViewModel } from './agentConversationVM-
|
|
4
|
+
import { A as AgentApprovalItemVM, a as AgentAskUserQuestionVM, b as AgentConversationPromptVM, c as AgentConversationVM, W as WorkspaceAgentSessionDetailViewModel } from './agentConversationVM-CfXN_TQ2.js';
|
|
5
5
|
import { WorkspaceUserProjectService } from '@tutti-os/workspace-user-project/contracts';
|
|
6
6
|
|
|
7
7
|
declare const APP_ERROR_CODES: readonly ["common.invalid_input", "common.approved_path_required", "common.unavailable", "common.unexpected", "session.not_found", "control_surface.unauthorized", "workspace.select_directory_failed", "workspace.select_files_failed", "workspace.ensure_directory_failed", "workspace.import_files_failed", "workspace.read_file_failed", "workspace.write_file_failed", "workspace.export_file_failed", "workspace.copy_path_failed", "workspace.host_unsupported", "workspace.runtime_artifact_unavailable", "runtime.guest_agent_lane_unavailable", "workspace.room_full", "workspace.room_delete_forbidden", "workspace.room_delete_not_found", "filesystem.create_directory_failed", "filesystem.read_file_bytes_failed", "filesystem.read_file_text_failed", "filesystem.write_file_text_failed", "filesystem.copy_entry_failed", "filesystem.move_entry_failed", "filesystem.rename_entry_failed", "filesystem.delete_entry_failed", "filesystem.read_directory_failed", "filesystem.stat_failed", "terminal.spawn_failed", "terminal.write_failed", "terminal.resize_failed", "terminal.close_failed", "terminal.attach_failed", "terminal.detach_failed", "terminal.snapshot_failed", "agent.list_models_failed", "agent.launch_failed", "agent.read_last_message_failed", "agent.provider_session_not_found", "agent.resume_session_not_local", "agent.resume_session_resolve_failed", "agent.settings_require_new_session", "task.suggest_title_failed", "persistence.unavailable", "persistence.quota_exceeded", "persistence.payload_too_large", "persistence.io_failed", "persistence.invalid_state", "persistence.invalid_node_id", "update.get_state_failed", "update.configure_failed", "update.check_failed", "update.download_failed", "update.install_failed", "PACKAGE_DOWNLOAD_INTERRUPTED", "PACKAGE_DOWNLOAD_HTTP_STATUS", "PACKAGE_DOWNLOAD_INVALID", "PACKAGE_DOWNLOAD_DISK_ERROR"];
|
|
@@ -5693,6 +5693,7 @@ function projectUserMessageContentParts(message, turnId, workspaceId) {
|
|
|
5693
5693
|
mimeType: image.mimeType,
|
|
5694
5694
|
name: image.name,
|
|
5695
5695
|
data: image.data,
|
|
5696
|
+
url: image.url,
|
|
5696
5697
|
path: image.path
|
|
5697
5698
|
})),
|
|
5698
5699
|
occurredAtUnixMs: message.occurredAtUnixMs ?? null,
|
|
@@ -5768,6 +5769,7 @@ function userPromptContentBlocks(message, fallbackWorkspaceId) {
|
|
|
5768
5769
|
mimeType,
|
|
5769
5770
|
name: typeof block.name === "string" && block.name.trim() ? block.name.trim() : null,
|
|
5770
5771
|
data: typeof block.data === "string" && block.data.trim() ? block.data.trim() : null,
|
|
5772
|
+
url: typeof block.url === "string" && block.url.trim() ? block.url.trim() : null,
|
|
5771
5773
|
path: typeof block.path === "string" && block.path.trim() ? block.path.trim() : null
|
|
5772
5774
|
}
|
|
5773
5775
|
];
|
|
@@ -8142,7 +8144,7 @@ function AgentUserImageGrid({
|
|
|
8142
8144
|
gridTemplateColumns: `repeat(${columnCount}, ${thumbnailWidth})`
|
|
8143
8145
|
},
|
|
8144
8146
|
children: images.map((image) => {
|
|
8145
|
-
const src = loadedImages.get(image.id) ??
|
|
8147
|
+
const src = loadedImages.get(image.id) ?? imageSource(image);
|
|
8146
8148
|
const loading = !src && loadingIds.has(image.id);
|
|
8147
8149
|
return /* @__PURE__ */ jsx12("div", { className: AgentGUIConversation_styles_default.userImageThumbnail, children: src ? /* @__PURE__ */ jsx12(
|
|
8148
8150
|
ZoomableImage,
|
|
@@ -8178,7 +8180,7 @@ function useAgentMessageImageSources(images) {
|
|
|
8178
8180
|
const [loadingIds, setLoadingIds] = useState5(() => /* @__PURE__ */ new Set());
|
|
8179
8181
|
const missingImages = useMemo(
|
|
8180
8182
|
() => images.filter(
|
|
8181
|
-
(image) => !
|
|
8183
|
+
(image) => !imageSource(image) && !sources.has(image.id) && image.workspaceId && image.agentSessionId && (image.attachmentId || image.path)
|
|
8182
8184
|
),
|
|
8183
8185
|
[images, sources]
|
|
8184
8186
|
);
|
|
@@ -8246,7 +8248,18 @@ function useAgentMessageImageSources(images) {
|
|
|
8246
8248
|
}, [missingImages, runtime]);
|
|
8247
8249
|
return { loadingIds, sources };
|
|
8248
8250
|
}
|
|
8249
|
-
function
|
|
8251
|
+
function imageSource(image) {
|
|
8252
|
+
const remoteUrl = image.url?.trim() ?? "";
|
|
8253
|
+
if (remoteUrl) {
|
|
8254
|
+
try {
|
|
8255
|
+
const parsed = new URL(remoteUrl);
|
|
8256
|
+
if (parsed.protocol === "https:" && !parsed.username && !parsed.password) {
|
|
8257
|
+
return parsed.toString();
|
|
8258
|
+
}
|
|
8259
|
+
} catch {
|
|
8260
|
+
return null;
|
|
8261
|
+
}
|
|
8262
|
+
}
|
|
8250
8263
|
const data = image.data?.trim() ?? "";
|
|
8251
8264
|
const mimeType = image.mimeType.trim();
|
|
8252
8265
|
if (!data || !mimeType) {
|
|
@@ -15492,4 +15505,4 @@ export {
|
|
|
15492
15505
|
AgentConversationFlow,
|
|
15493
15506
|
useProjectedAgentConversation
|
|
15494
15507
|
};
|
|
15495
|
-
//# sourceMappingURL=chunk-
|
|
15508
|
+
//# sourceMappingURL=chunk-KTXWPKGP.js.map
|