@tutti-os/agent-gui 0.0.35 → 0.0.37

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.
Files changed (38) hide show
  1. package/dist/{AgentMessageMarkdown-0sV8Biv3.d.ts → AgentMessageMarkdown-Fv7I0HUN.d.ts} +2 -2
  2. package/dist/agent-conversation/index.d.ts +4 -4
  3. package/dist/agent-conversation/index.js +4 -4
  4. package/dist/agent-message-center/index.d.ts +2 -2
  5. package/dist/agent-message-center/index.js +4 -4
  6. package/dist/{agentConversationVM-xuzmD5IL.d.ts → agentConversationVM-1QgRwvwZ.d.ts} +1 -1
  7. package/dist/app/renderer/agentactivity.css +25 -7
  8. package/dist/{chunk-O56P2KSZ.js → chunk-5YJPISWJ.js} +53 -16
  9. package/dist/chunk-5YJPISWJ.js.map +1 -0
  10. package/dist/{chunk-JYH2ITNL.js → chunk-BQNHPMQY.js} +4 -4
  11. package/dist/{chunk-KFMD33UD.js → chunk-JL2WNRYC.js} +7 -7
  12. package/dist/chunk-JL2WNRYC.js.map +1 -0
  13. package/dist/{chunk-U3D7YI47.js → chunk-MKSRP5XS.js} +8 -7
  14. package/dist/{chunk-U3D7YI47.js.map → chunk-MKSRP5XS.js.map} +1 -1
  15. package/dist/{chunk-UN4XGHLQ.js → chunk-SXHVKUUI.js} +9 -94
  16. package/dist/chunk-SXHVKUUI.js.map +1 -0
  17. package/dist/{chunk-CMXRLF64.js → chunk-UHQDBXGH.js} +24 -3
  18. package/dist/chunk-UHQDBXGH.js.map +1 -0
  19. package/dist/{chunk-3LEUGNCT.js → chunk-WHWZZYBV.js} +2 -2
  20. package/dist/{chunk-VPC55T7P.js → chunk-XROBPALT.js} +2 -2
  21. package/dist/context-mention-palette/index.js +5 -5
  22. package/dist/i18n/index.d.ts +6 -6
  23. package/dist/i18n/index.js +1 -1
  24. package/dist/index.d.ts +4 -4
  25. package/dist/index.js +337 -69
  26. package/dist/index.js.map +1 -1
  27. package/dist/plan-decision-ops.d.ts +2 -2
  28. package/dist/workspace-agent-generated-files.d.ts +1 -1
  29. package/dist/workspace-agent-generated-files.js +2 -2
  30. package/dist/{workspaceAgentActivityListViewModel-DwpbJGDx.d.ts → workspaceAgentActivityListViewModel-DLnMBMoh.d.ts} +3 -4
  31. package/package.json +12 -12
  32. package/dist/chunk-CMXRLF64.js.map +0 -1
  33. package/dist/chunk-KFMD33UD.js.map +0 -1
  34. package/dist/chunk-O56P2KSZ.js.map +0 -1
  35. package/dist/chunk-UN4XGHLQ.js.map +0 -1
  36. /package/dist/{chunk-JYH2ITNL.js.map → chunk-BQNHPMQY.js.map} +0 -0
  37. /package/dist/{chunk-3LEUGNCT.js.map → chunk-WHWZZYBV.js.map} +0 -0
  38. /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-DwpbJGDx.js';
3
- import { A as AgentApprovalItemVM, a as AgentAskUserQuestionVM, b as AgentConversationPromptVM, c as AgentConversationVM, W as WorkspaceAgentSessionDetailViewModel } from './agentConversationVM-xuzmD5IL.js';
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"];
@@ -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-0sV8Biv3.js';
5
- import { c as AgentConversationVM, W as WorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-xuzmD5IL.js';
6
- export { B as BuildWorkspaceAgentSessionDetailInput, d as buildWorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-xuzmD5IL.js';
7
- export { W as WorkspaceAgentActivityCard, n as WorkspaceAgentActivitySession, q as WorkspaceAgentActivityTimelineItem } from '../workspaceAgentActivityListViewModel-DwpbJGDx.js';
4
+ import { b as AgentGUIProviderSkillOption, l as AgentMessageMarkdownWorkspaceAppIcon } from '../AgentMessageMarkdown-Fv7I0HUN.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-O56P2KSZ.js";
10
- import "../chunk-CMXRLF64.js";
11
- import "../chunk-VPC55T7P.js";
9
+ } from "../chunk-5YJPISWJ.js";
10
+ import "../chunk-UHQDBXGH.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-KFMD33UD.js";
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-xuzmD5IL.js';
8
- import { o as WorkspaceAgentActivityStatus } from '../workspaceAgentActivityListViewModel-DwpbJGDx.js';
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
 
@@ -3,7 +3,7 @@ import {
3
3
  approvalOptionDisplayLabel,
4
4
  getPromptToolDetails,
5
5
  isPromptRequestIdTitle
6
- } from "../chunk-JYH2ITNL.js";
6
+ } from "../chunk-BQNHPMQY.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-CMXRLF64.js";
19
+ } from "../chunk-UHQDBXGH.js";
20
20
  import {
21
21
  managedAgentRoundedIconUrl,
22
22
  userAvatarPlaceholderUrl,
23
23
  workspaceAgentActivityStatusLabel
24
- } from "../chunk-3LEUGNCT.js";
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-KFMD33UD.js";
39
+ } from "../chunk-JL2WNRYC.js";
40
40
  import "../chunk-PJP5BUU6.js";
41
41
 
42
42
  // agent-message-center/WorkspaceAgentMessageCenterPanel.tsx
@@ -1,4 +1,4 @@
1
- import { W as WorkspaceAgentActivityCard, n as WorkspaceAgentActivitySession, T as ToolCallStatusKind, q as WorkspaceAgentActivityTimelineItem } from './workspaceAgentActivityListViewModel-DwpbJGDx.js';
1
+ import { W as WorkspaceAgentActivityCard, n as WorkspaceAgentActivitySession, T as ToolCallStatusKind, q as WorkspaceAgentActivityTimelineItem } from './workspaceAgentActivityListViewModel-DLnMBMoh.js';
2
2
 
3
3
  interface WorkspaceAgentSessionDetailMessage {
4
4
  id: string;
@@ -3346,6 +3346,10 @@ aside.workspace-agents-status-panel
3346
3346
  box-shadow: none;
3347
3347
  }
3348
3348
 
3349
+ .workspace-agents-status-panel__detail-user-message[data-agent-mention-only="true"].agent-gui-conversation__user-message-bubble {
3350
+ max-width: min(100%, calc(var(--agent-mention-max-width, 16rem) + 24px));
3351
+ }
3352
+
3349
3353
  .workspace-agents-status-panel__detail-user-message .tsh-agent-object-token {
3350
3354
  font-size: inherit;
3351
3355
  overflow: visible;
@@ -3359,15 +3363,19 @@ aside.workspace-agents-status-panel
3359
3363
  .workspace-agents-status-panel__detail-user-message > div,
3360
3364
  .workspace-agents-status-panel__detail-user-message > [contenteditable="false"],
3361
3365
  .workspace-agents-status-panel__detail-user-message .ProseMirror {
3366
+ display: inline-block;
3362
3367
  width: fit-content;
3363
3368
  min-width: 0;
3364
3369
  max-width: 100%;
3370
+ vertical-align: top;
3365
3371
  font-size: inherit;
3366
3372
  line-height: inherit;
3367
3373
  }
3368
3374
 
3369
3375
  .workspace-agents-status-panel__detail-user-message.agent-gui-conversation__user-message-bubble
3370
3376
  p {
3377
+ width: fit-content;
3378
+ max-width: 100%;
3371
3379
  margin: 0;
3372
3380
  }
3373
3381
 
@@ -4782,13 +4790,18 @@ button.agent-gui-node__conversation-section-toggle:hover
4782
4790
 
4783
4791
  .agent-gui-node__conversation-meta[data-kind="loading"],
4784
4792
  .agent-gui-node__conversation-meta[data-kind="waiting"],
4785
- .agent-gui-node__conversation-meta[data-kind="failed"],
4786
- .agent-gui-node__conversation-meta[data-kind="unread-complete"] {
4793
+ .agent-gui-node__conversation-meta[data-kind="failed"] {
4787
4794
  width: 28px;
4788
4795
  min-width: 28px;
4789
4796
  justify-content: center;
4790
4797
  }
4791
4798
 
4799
+ .agent-gui-node__conversation-meta[data-kind="unread-complete"] {
4800
+ width: 10px;
4801
+ min-width: 10px;
4802
+ justify-content: center;
4803
+ }
4804
+
4792
4805
  .agent-gui-node__conversation-meta[data-kind="time"] {
4793
4806
  margin-right: 6px;
4794
4807
  min-width: max-content;
@@ -5041,8 +5054,8 @@ button.agent-gui-node__conversation-section-toggle:hover
5041
5054
  }
5042
5055
 
5043
5056
  .agent-gui-node__conversation-unread-lamp {
5044
- width: 10px;
5045
- height: 10px;
5057
+ width: 6px;
5058
+ height: 6px;
5046
5059
  border-radius: 999px;
5047
5060
  background: var(--agent-gui-accent);
5048
5061
  }
@@ -5436,12 +5449,17 @@ button.agent-gui-node__conversation-section-toggle:hover
5436
5449
  .agent-gui-node__provider-setup-notice {
5437
5450
  position: absolute;
5438
5451
  top: 8px;
5439
- left: var(--agent-gui-detail-padding-x);
5452
+ left: 50%;
5453
+ transform: translateX(-50%);
5440
5454
  z-index: 2;
5441
5455
  box-sizing: border-box;
5442
5456
  width: max-content;
5443
5457
  max-width: min(calc(100% - (var(--agent-gui-detail-padding-x) * 2)), 420px);
5444
5458
  margin: 0;
5459
+ /* The pill sizes to its content (width: max-content), so the action button's
5460
+ margin-left:auto has no free space to absorb and the message text would butt
5461
+ directly against "Set up". Space the message and action explicitly. */
5462
+ column-gap: 6px;
5445
5463
  pointer-events: auto;
5446
5464
  }
5447
5465
 
@@ -6908,9 +6926,9 @@ html[data-theme="light"] [data-message-center-item-id].agent-gui-edge-glow {
6908
6926
  margin: 0;
6909
6927
  text-align: center;
6910
6928
  color: var(--text-primary);
6911
- font-size: 22px;
6929
+ font-size: 28px;
6912
6930
  line-height: 1.3;
6913
- font-weight: 500;
6931
+ font-weight: 600;
6914
6932
  animation: agent-gui-empty-hero-enter 280ms cubic-bezier(0.16, 1, 0.3, 1)
6915
6933
  110ms both;
6916
6934
  }
@@ -10,14 +10,14 @@ import {
10
10
  resolveWorkspaceFileLinkAction,
11
11
  resolveWorkspaceFilePathCandidate,
12
12
  resolveWorkspaceLinkAction
13
- } from "./chunk-CMXRLF64.js";
13
+ } from "./chunk-UHQDBXGH.js";
14
14
  import {
15
15
  attrsToMentionItem,
16
16
  createAgentFileMentionExtension,
17
17
  formatAgentMentionMarkdown,
18
18
  mentionItemToAttrs,
19
19
  parseAgentMentionMarkdown
20
- } from "./chunk-VPC55T7P.js";
20
+ } from "./chunk-XROBPALT.js";
21
21
  import {
22
22
  fileChangeCountFromChanges,
23
23
  fileChangeEntriesFromChanges,
@@ -33,7 +33,7 @@ import {
33
33
  } from "./chunk-TYGL25EL.js";
34
34
  import {
35
35
  translate
36
- } from "./chunk-KFMD33UD.js";
36
+ } from "./chunk-JL2WNRYC.js";
37
37
 
38
38
  // shared/imageGenerationTool.ts
39
39
  var KNOWN_IMAGE_GENERATION_TOOL_NAMES = /* @__PURE__ */ new Set([
@@ -3880,7 +3880,7 @@ function normalizedFilePath(value, options = {}) {
3880
3880
  }
3881
3881
  function isIgnoredFilePath(path) {
3882
3882
  const normalizedPath = path.replace(/\\/g, "/").replace(/\/+$/, "");
3883
- return normalizedPath === "/dev/null" || normalizedPath === "NUL" || normalizedPath === "/private/tmp" || normalizedPath.startsWith("/private/tmp/");
3883
+ return normalizedPath === "/dev/null" || normalizedPath === "NUL";
3884
3884
  }
3885
3885
  function isStructuredPayloadPath(path) {
3886
3886
  if (/[\r\n]/.test(path)) {
@@ -5494,22 +5494,24 @@ function AgentRichTextReadonly({
5494
5494
  workspaceAppIcons = EMPTY_WORKSPACE_APP_ICONS
5495
5495
  }) {
5496
5496
  "use memo";
5497
+ const contentDoc = plainTextToAgentRichTextDocWithWorkspaceAppIcons(
5498
+ value,
5499
+ availableSkills,
5500
+ workspaceAppIcons
5501
+ );
5502
+ const isMentionOnly = isMentionOnlyRichTextDoc(contentDoc);
5497
5503
  const editor = useEditor({
5498
5504
  immediatelyRender: false,
5499
5505
  editable: false,
5500
5506
  extensions: createAgentRichTextReadonlyExtensions({
5501
5507
  skills: availableSkills
5502
5508
  }),
5503
- content: plainTextToAgentRichTextDocWithWorkspaceAppIcons(
5504
- value,
5505
- availableSkills,
5506
- workspaceAppIcons
5507
- ),
5509
+ content: contentDoc,
5508
5510
  editorProps: {
5509
5511
  attributes: {
5510
5512
  class: cn(
5511
5513
  editorClassName,
5512
- "max-w-full overflow-x-hidden overflow-y-auto whitespace-pre-wrap break-words [overflow-wrap:anywhere] [&_p]:m-0 [&_p]:min-h-[1.45em] [&_a[data-agent-file-mention=true]]:cursor-pointer [&_[data-agent-file-mention=true]]:max-w-full [&_[data-agent-file-mention=true]]:overflow-hidden"
5514
+ "max-w-full overflow-x-hidden overflow-y-auto whitespace-pre-wrap break-words [overflow-wrap:anywhere] [&_p]:m-0 [&_p]:min-h-[1.45em] [&_a[data-agent-file-mention=true]]:cursor-pointer [&_[data-agent-file-mention=true]]:overflow-hidden"
5513
5515
  )
5514
5516
  },
5515
5517
  handleDOMEvents: {
@@ -5550,9 +5552,37 @@ function AgentRichTextReadonly({
5550
5552
  editor.commands.setContent(nextDoc, { emitUpdate: false });
5551
5553
  }, [availableSkills, editor, value, workspaceAppIcons]);
5552
5554
  if (!editor) {
5553
- return /* @__PURE__ */ jsx4("div", { className });
5555
+ return /* @__PURE__ */ jsx4(
5556
+ "div",
5557
+ {
5558
+ className,
5559
+ "data-agent-mention-only": isMentionOnly ? "true" : void 0
5560
+ }
5561
+ );
5554
5562
  }
5555
- return /* @__PURE__ */ jsx4("div", { className, children: /* @__PURE__ */ jsx4(EditorContent, { editor }) });
5563
+ return /* @__PURE__ */ jsx4(
5564
+ "div",
5565
+ {
5566
+ className,
5567
+ "data-agent-mention-only": isMentionOnly ? "true" : void 0,
5568
+ children: /* @__PURE__ */ jsx4(EditorContent, { editor })
5569
+ }
5570
+ );
5571
+ }
5572
+ function isMentionOnlyRichTextDoc(doc) {
5573
+ if (doc.type !== "doc") {
5574
+ return false;
5575
+ }
5576
+ const blocks = doc.content ?? [];
5577
+ if (blocks.length !== 1) {
5578
+ return false;
5579
+ }
5580
+ const paragraph = blocks[0];
5581
+ if (paragraph?.type !== "paragraph") {
5582
+ return false;
5583
+ }
5584
+ const inlineContent = paragraph.content ?? [];
5585
+ return inlineContent.length === 1 && inlineContent[0]?.type === "agentFileMention";
5556
5586
  }
5557
5587
  function plainTextToAgentRichTextDocWithWorkspaceAppIcons(value, availableSkills, workspaceAppIcons) {
5558
5588
  const doc = plainTextToAgentRichTextDoc(value, { skills: availableSkills });
@@ -5565,11 +5595,18 @@ function hydrateWorkspaceAppMentionIcons(node, workspaceAppIcons) {
5565
5595
  const nextContent = node.content?.map(
5566
5596
  (child) => hydrateWorkspaceAppMentionIcons(child, workspaceAppIcons)
5567
5597
  );
5568
- if (node.type !== "agentFileMention" || node.attrs?.kind !== "workspace-app") {
5598
+ if (node.type !== "agentFileMention") {
5599
+ return nextContent ? { ...node, content: nextContent } : node;
5600
+ }
5601
+ const attrs = node.attrs ?? {};
5602
+ const kind = typeof attrs.kind === "string" ? attrs.kind : "";
5603
+ const isWorkspaceAppMention = kind === "workspace-app";
5604
+ const isAppWorkspaceReferenceMention = kind === "workspace-reference" && attrs.source === "app";
5605
+ if (!isWorkspaceAppMention && !isAppWorkspaceReferenceMention) {
5569
5606
  return nextContent ? { ...node, content: nextContent } : node;
5570
5607
  }
5571
- const workspaceId = typeof node.attrs.workspaceId === "string" ? node.attrs.workspaceId.trim() : "";
5572
- const appId = typeof node.attrs.appId === "string" ? node.attrs.appId.trim() : typeof node.attrs.targetId === "string" ? node.attrs.targetId.trim() : "";
5608
+ const workspaceId = typeof attrs.workspaceId === "string" ? attrs.workspaceId.trim() : "";
5609
+ const appId = isWorkspaceAppMention && typeof attrs.appId === "string" ? attrs.appId.trim() : typeof attrs.targetId === "string" ? attrs.targetId.trim() : "";
5573
5610
  const iconUrl = resolveWorkspaceAppIconUrl({
5574
5611
  appId,
5575
5612
  workspaceId,
@@ -12678,4 +12715,4 @@ export {
12678
12715
  AgentConversationFlow,
12679
12716
  useProjectedAgentConversation
12680
12717
  };
12681
- //# sourceMappingURL=chunk-O56P2KSZ.js.map
12718
+ //# sourceMappingURL=chunk-5YJPISWJ.js.map