@tutti-os/agent-gui 0.0.36 → 0.0.38
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/{AgentMessageMarkdown-0sV8Biv3.d.ts → AgentMessageMarkdown-Cq-7DSV2.d.ts} +3 -2
- package/dist/agent-conversation/index.d.ts +4 -4
- package/dist/agent-conversation/index.js +4 -4
- package/dist/agent-message-center/index.d.ts +3 -2
- package/dist/agent-message-center/index.js +12 -5
- package/dist/agent-message-center/index.js.map +1 -1
- package/dist/{agentConversationVM-xuzmD5IL.d.ts → agentConversationVM-1QgRwvwZ.d.ts} +1 -1
- package/dist/app/renderer/agentactivity.css +25 -7
- package/dist/{chunk-CMXRLF64.js → chunk-44YASHVW.js} +90 -95
- package/dist/chunk-44YASHVW.js.map +1 -0
- package/dist/{chunk-O56P2KSZ.js → chunk-7F4M55U3.js} +53 -16
- package/dist/chunk-7F4M55U3.js.map +1 -0
- package/dist/{chunk-KFMD33UD.js → chunk-JL2WNRYC.js} +7 -7
- package/dist/chunk-JL2WNRYC.js.map +1 -0
- package/dist/{chunk-JYH2ITNL.js → chunk-L7FBT3VR.js} +4 -4
- package/dist/{chunk-U3D7YI47.js → chunk-MKSRP5XS.js} +8 -7
- package/dist/{chunk-U3D7YI47.js.map → chunk-MKSRP5XS.js.map} +1 -1
- package/dist/{chunk-UN4XGHLQ.js → chunk-SS5YEVAI.js} +79 -107
- package/dist/chunk-SS5YEVAI.js.map +1 -0
- package/dist/{chunk-3LEUGNCT.js → chunk-WHWZZYBV.js} +2 -2
- package/dist/{chunk-VPC55T7P.js → chunk-XROBPALT.js} +2 -2
- package/dist/context-mention-palette/index.js +5 -5
- package/dist/i18n/index.d.ts +6 -6
- package/dist/i18n/index.js +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.js +413 -96
- package/dist/index.js.map +1 -1
- package/dist/plan-decision-ops.d.ts +2 -2
- package/dist/workspace-agent-generated-files.d.ts +1 -1
- package/dist/workspace-agent-generated-files.js +2 -2
- package/dist/{workspaceAgentActivityListViewModel-DwpbJGDx.d.ts → workspaceAgentActivityListViewModel-DLnMBMoh.d.ts} +3 -4
- package/package.json +12 -12
- package/dist/chunk-CMXRLF64.js.map +0 -1
- package/dist/chunk-KFMD33UD.js.map +0 -1
- package/dist/chunk-O56P2KSZ.js.map +0 -1
- package/dist/chunk-UN4XGHLQ.js.map +0 -1
- /package/dist/{chunk-JYH2ITNL.js.map → chunk-L7FBT3VR.js.map} +0 -0
- /package/dist/{chunk-3LEUGNCT.js.map → chunk-WHWZZYBV.js.map} +0 -0
- /package/dist/{chunk-VPC55T7P.js.map → chunk-XROBPALT.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentActivityUsage } from '@tutti-os/agent-activity-core';
|
|
2
|
-
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-
|
|
3
|
-
import { A as AgentApprovalItemVM, a as AgentAskUserQuestionVM, b as AgentConversationPromptVM, c as AgentConversationVM, W as WorkspaceAgentSessionDetailViewModel } from './agentConversationVM-
|
|
2
|
+
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-DLnMBMoh.js';
|
|
3
|
+
import { A as AgentApprovalItemVM, a as AgentAskUserQuestionVM, b as AgentConversationPromptVM, c as AgentConversationVM, W as WorkspaceAgentSessionDetailViewModel } from './agentConversationVM-1QgRwvwZ.js';
|
|
4
4
|
import { WorkspaceUserProjectService } from '@tutti-os/workspace-user-project/contracts';
|
|
5
5
|
|
|
6
6
|
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"];
|
|
@@ -534,6 +534,7 @@ interface AgentGUIConversationSummary {
|
|
|
534
534
|
status: AgentGUIConversationStatus;
|
|
535
535
|
cwd: string;
|
|
536
536
|
project?: AgentGUIConversationProjectSummary | null;
|
|
537
|
+
projectMode?: "none";
|
|
537
538
|
pinnedAtUnixMs?: number | null;
|
|
538
539
|
sortTimeUnixMs?: number;
|
|
539
540
|
updatedAtUnixMs: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, JSX } from 'react';
|
|
3
3
|
import { W as WorkspaceLinkAction } from '../workspaceLinkActions-C6POH38D.js';
|
|
4
|
-
import { b as AgentGUIProviderSkillOption, l as AgentMessageMarkdownWorkspaceAppIcon } from '../AgentMessageMarkdown-
|
|
5
|
-
import { c as AgentConversationVM, W as WorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-
|
|
6
|
-
export { B as BuildWorkspaceAgentSessionDetailInput, d as buildWorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-
|
|
7
|
-
export { W as WorkspaceAgentActivityCard, n as WorkspaceAgentActivitySession, q as WorkspaceAgentActivityTimelineItem } from '../workspaceAgentActivityListViewModel-
|
|
4
|
+
import { b as AgentGUIProviderSkillOption, l as AgentMessageMarkdownWorkspaceAppIcon } from '../AgentMessageMarkdown-Cq-7DSV2.js';
|
|
5
|
+
import { c as AgentConversationVM, W as WorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-1QgRwvwZ.js';
|
|
6
|
+
export { B as BuildWorkspaceAgentSessionDetailInput, d as buildWorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-1QgRwvwZ.js';
|
|
7
|
+
export { W as WorkspaceAgentActivityCard, n as WorkspaceAgentActivitySession, q as WorkspaceAgentActivityTimelineItem } from '../workspaceAgentActivityListViewModel-DLnMBMoh.js';
|
|
8
8
|
import '@tutti-os/workspace-issue-manager/core';
|
|
9
9
|
import '@tutti-os/agent-activity-core';
|
|
10
10
|
import '@tutti-os/workspace-user-project/contracts';
|
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
projectAgentConversationVM,
|
|
7
7
|
reconcileProjectedAgentConversationVM,
|
|
8
8
|
useProjectedAgentConversation
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-7F4M55U3.js";
|
|
10
|
+
import "../chunk-44YASHVW.js";
|
|
11
|
+
import "../chunk-XROBPALT.js";
|
|
12
12
|
import "../chunk-Y35GDLP2.js";
|
|
13
13
|
import "../chunk-2ADVHCST.js";
|
|
14
14
|
import "../chunk-TYGL25EL.js";
|
|
15
15
|
import {
|
|
16
16
|
translate
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-JL2WNRYC.js";
|
|
18
18
|
import "../chunk-LUGELG5V.js";
|
|
19
19
|
import "../chunk-PJP5BUU6.js";
|
|
20
20
|
|
|
@@ -4,8 +4,8 @@ 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-C6POH38D.js';
|
|
6
6
|
import { AgentActivityNeedsAttentionItem, AgentActivitySnapshot } from '@tutti-os/agent-activity-core';
|
|
7
|
-
import { b as AgentConversationPromptVM } from '../agentConversationVM-
|
|
8
|
-
import { o as WorkspaceAgentActivityStatus } from '../workspaceAgentActivityListViewModel-
|
|
7
|
+
import { b as AgentConversationPromptVM } from '../agentConversationVM-1QgRwvwZ.js';
|
|
8
|
+
import { o as WorkspaceAgentActivityStatus } from '../workspaceAgentActivityListViewModel-DLnMBMoh.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';
|
|
11
11
|
|
|
@@ -37,6 +37,7 @@ interface WorkspaceAgentMessageCenterItem {
|
|
|
37
37
|
provider: string;
|
|
38
38
|
userId: string | null;
|
|
39
39
|
title: string;
|
|
40
|
+
imported?: boolean;
|
|
40
41
|
identity: WorkspaceAgentMessageCenterIdentity | null;
|
|
41
42
|
cwd: string;
|
|
42
43
|
status: WorkspaceAgentActivityStatus;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
approvalOptionDisplayLabel,
|
|
4
4
|
getPromptToolDetails,
|
|
5
5
|
isPromptRequestIdTitle
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-L7FBT3VR.js";
|
|
7
7
|
import {
|
|
8
8
|
PLAN_IMPLEMENTATION_ACTION_IMPLEMENT,
|
|
9
9
|
PLAN_IMPLEMENTATION_PROMPT,
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
cn,
|
|
17
17
|
extractAgentMcpToolTarget,
|
|
18
18
|
normalizeAskUserQuestions
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-44YASHVW.js";
|
|
20
20
|
import {
|
|
21
21
|
managedAgentRoundedIconUrl,
|
|
22
22
|
userAvatarPlaceholderUrl,
|
|
23
23
|
workspaceAgentActivityStatusLabel
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-WHWZZYBV.js";
|
|
25
25
|
import "../chunk-MTFSQWZ6.js";
|
|
26
26
|
import {
|
|
27
27
|
resolveWorkspaceAgentSessionSortTimeUnixMs
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
AgentGuiI18nProvider,
|
|
38
38
|
useTranslation
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-JL2WNRYC.js";
|
|
40
40
|
import "../chunk-PJP5BUU6.js";
|
|
41
41
|
|
|
42
42
|
// agent-message-center/WorkspaceAgentMessageCenterPanel.tsx
|
|
@@ -488,6 +488,7 @@ function buildWorkspaceAgentMessageCenterModel(snapshot, options = {}) {
|
|
|
488
488
|
provider: session.provider,
|
|
489
489
|
userId: session.userId?.trim() || null,
|
|
490
490
|
title,
|
|
491
|
+
...isImportedMessageCenterSession(session) ? { imported: true } : {},
|
|
491
492
|
identity: resolveMessageCenterIdentity(
|
|
492
493
|
session.agentSessionId,
|
|
493
494
|
options.identityBySessionId
|
|
@@ -531,6 +532,9 @@ function resolveMessageCenterIdentity(agentSessionId, identityBySessionId) {
|
|
|
531
532
|
...agentAvatarUrl ? { agentAvatarUrl } : {}
|
|
532
533
|
};
|
|
533
534
|
}
|
|
535
|
+
function isImportedMessageCenterSession(session) {
|
|
536
|
+
return session.runtimeContext?.imported === true;
|
|
537
|
+
}
|
|
534
538
|
function isWaitingMessageCenterItem(item) {
|
|
535
539
|
return item.pendingPrompt !== null || item.needsAttentionKind !== null;
|
|
536
540
|
}
|
|
@@ -2281,6 +2285,9 @@ function isRecentlyCompletedMessageCenterItem(item, nowUnixMs) {
|
|
|
2281
2285
|
if (messageCenterStatusFilterValue(item) !== "completed") {
|
|
2282
2286
|
return false;
|
|
2283
2287
|
}
|
|
2288
|
+
if (item.imported) {
|
|
2289
|
+
return false;
|
|
2290
|
+
}
|
|
2284
2291
|
const completedAtUnixMs = item.sortTimeUnixMs || item.lastAgentMessageAtUnixMs || 0;
|
|
2285
2292
|
if (completedAtUnixMs <= 0) {
|
|
2286
2293
|
return false;
|
|
@@ -3108,7 +3115,7 @@ function stabilizeWorkspaceAgentMessageCenterModel(previous, next) {
|
|
|
3108
3115
|
};
|
|
3109
3116
|
}
|
|
3110
3117
|
function messageCenterItemsEqual(left, right) {
|
|
3111
|
-
return left.id === right.id && left.agentSessionId === right.agentSessionId && left.provider === right.provider && left.userId === right.userId && left.title === right.title && left.cwd === right.cwd && left.status === right.status && left.lastAgentMessageSummary === right.lastAgentMessageSummary && left.lastAgentMessageAtUnixMs === right.lastAgentMessageAtUnixMs && left.needsAttentionKind === right.needsAttentionKind && left.needsAttentionSummary === right.needsAttentionSummary && left.sortTimeUnixMs === right.sortTimeUnixMs && messageCenterIdentityEqual(left.identity, right.identity) && messageCenterDigestEqual(left.digest, right.digest) && messageCenterPromptEqual(left.pendingPrompt, right.pendingPrompt) && messageCenterTurnOutcomeEqual(
|
|
3118
|
+
return left.id === right.id && left.agentSessionId === right.agentSessionId && left.provider === right.provider && left.userId === right.userId && left.title === right.title && left.imported === right.imported && left.cwd === right.cwd && left.status === right.status && left.lastAgentMessageSummary === right.lastAgentMessageSummary && left.lastAgentMessageAtUnixMs === right.lastAgentMessageAtUnixMs && left.needsAttentionKind === right.needsAttentionKind && left.needsAttentionSummary === right.needsAttentionSummary && left.sortTimeUnixMs === right.sortTimeUnixMs && messageCenterIdentityEqual(left.identity, right.identity) && messageCenterDigestEqual(left.digest, right.digest) && messageCenterPromptEqual(left.pendingPrompt, right.pendingPrompt) && messageCenterTurnOutcomeEqual(
|
|
3112
3119
|
left.latestTurnOutcome ?? null,
|
|
3113
3120
|
right.latestTurnOutcome ?? null
|
|
3114
3121
|
);
|