@tutti-os/agent-gui 0.0.37 → 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.
@@ -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,7 +1,7 @@
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-Fv7I0HUN.js';
4
+ import { b as AgentGUIProviderSkillOption, l as AgentMessageMarkdownWorkspaceAppIcon } from '../AgentMessageMarkdown-Cq-7DSV2.js';
5
5
  import { c as AgentConversationVM, W as WorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-1QgRwvwZ.js';
6
6
  export { B as BuildWorkspaceAgentSessionDetailInput, d as buildWorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-1QgRwvwZ.js';
7
7
  export { W as WorkspaceAgentActivityCard, n as WorkspaceAgentActivitySession, q as WorkspaceAgentActivityTimelineItem } from '../workspaceAgentActivityListViewModel-DLnMBMoh.js';
@@ -6,8 +6,8 @@ import {
6
6
  projectAgentConversationVM,
7
7
  reconcileProjectedAgentConversationVM,
8
8
  useProjectedAgentConversation
9
- } from "../chunk-5YJPISWJ.js";
10
- import "../chunk-UHQDBXGH.js";
9
+ } from "../chunk-7F4M55U3.js";
10
+ import "../chunk-44YASHVW.js";
11
11
  import "../chunk-XROBPALT.js";
12
12
  import "../chunk-Y35GDLP2.js";
13
13
  import "../chunk-2ADVHCST.js";
@@ -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-BQNHPMQY.js";
6
+ } from "../chunk-L7FBT3VR.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-UHQDBXGH.js";
19
+ } from "../chunk-44YASHVW.js";
20
20
  import {
21
21
  managedAgentRoundedIconUrl,
22
22
  userAvatarPlaceholderUrl,
@@ -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
  );