@tutti-os/agent-gui 0.0.55 → 0.0.57

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 (59) hide show
  1. package/dist/@-lined-14px-64O2KKB4.svg +3 -0
  2. package/dist/{AgentMentionSearchController-DzhWr0PN.d.ts → AgentMentionSearchController-Po0KQLcL.d.ts} +13 -1
  3. package/dist/agent-conversation/index.d.ts +3 -3
  4. package/dist/agent-conversation/index.js +6 -6
  5. package/dist/agent-message-center/index.d.ts +1 -1
  6. package/dist/agent-message-center/index.js +8 -8
  7. package/dist/{agentGuiNodeTypes-DCnsaqJr.d.ts → agentGuiNodeTypes-BRU6P22B.d.ts} +2 -1
  8. package/dist/app/renderer/agentactivity.css +48 -3
  9. package/dist/app/renderer/assets/icons/@-lined-14px.svg +3 -0
  10. package/dist/{chunk-ZFDO72FE.js → chunk-2VHP7KQ5.js} +16 -3
  11. package/dist/chunk-2VHP7KQ5.js.map +1 -0
  12. package/dist/{chunk-2XVECUTU.js → chunk-33LWYV6O.js} +33 -1
  13. package/dist/chunk-33LWYV6O.js.map +1 -0
  14. package/dist/{chunk-GBAQVKQN.js → chunk-DZ76JPCV.js} +104 -10
  15. package/dist/chunk-DZ76JPCV.js.map +1 -0
  16. package/dist/{chunk-PBHTLI3E.js → chunk-HFZOXSSQ.js} +2 -2
  17. package/dist/{chunk-7H4IH67L.js → chunk-IMZBRUP3.js} +13 -5
  18. package/dist/{chunk-7H4IH67L.js.map → chunk-IMZBRUP3.js.map} +1 -1
  19. package/dist/{chunk-6AXH2BOD.js → chunk-KOR6UVUJ.js} +5 -5
  20. package/dist/{chunk-NBTJEF3H.js → chunk-N37A5CJH.js} +140 -4
  21. package/dist/chunk-N37A5CJH.js.map +1 -0
  22. package/dist/{chunk-WMQN7SZC.js → chunk-QFHR527D.js} +2 -2
  23. package/dist/{chunk-BGZ2OSDQ.js → chunk-RGVVHF7Q.js} +2 -2
  24. package/dist/{chunk-GL54NRMB.js → chunk-S6PCOX3S.js} +40 -1
  25. package/dist/chunk-S6PCOX3S.js.map +1 -0
  26. package/dist/{chunk-CMOGPJ23.js → chunk-SZ7JGCS3.js} +2 -2
  27. package/dist/{chunk-H2YWXFYX.js → chunk-Z3AAQQFD.js} +2 -2
  28. package/dist/context-mention-palette/index.d.ts +2 -2
  29. package/dist/context-mention-palette/index.js +7 -7
  30. package/dist/i18n/index.d.ts +32 -0
  31. package/dist/i18n/index.js +2 -2
  32. package/dist/index.d.ts +49 -8
  33. package/dist/index.js +322 -75
  34. package/dist/index.js.map +1 -1
  35. package/dist/queued-prompt-runtime.d.ts +2 -2
  36. package/dist/{types-B2m7UcBb.d.ts → types-BsHvTjIZ.d.ts} +8 -1
  37. package/dist/workbench/contribution.d.ts +1 -1
  38. package/dist/workbench/index.d.ts +1 -1
  39. package/dist/workbench/index.js +3 -3
  40. package/dist/workbench/launch.d.ts +1 -1
  41. package/dist/workbench/providerCatalog.d.ts +1 -1
  42. package/dist/workbench/sessionTitle.d.ts +1 -1
  43. package/dist/workbench/sessionTitle.js +3 -3
  44. package/dist/workbench/state.d.ts +1 -1
  45. package/dist/workbench/types.d.ts +1 -1
  46. package/dist/workspace-agent-generated-files.js +3 -3
  47. package/dist/{workspaceLinkActions-C6POH38D.d.ts → workspaceLinkActions-Bjy_XfBm.d.ts} +8 -1
  48. package/package.json +14 -14
  49. package/dist/chunk-2XVECUTU.js.map +0 -1
  50. package/dist/chunk-GBAQVKQN.js.map +0 -1
  51. package/dist/chunk-GL54NRMB.js.map +0 -1
  52. package/dist/chunk-NBTJEF3H.js.map +0 -1
  53. package/dist/chunk-ZFDO72FE.js.map +0 -1
  54. /package/dist/{chunk-PBHTLI3E.js.map → chunk-HFZOXSSQ.js.map} +0 -0
  55. /package/dist/{chunk-6AXH2BOD.js.map → chunk-KOR6UVUJ.js.map} +0 -0
  56. /package/dist/{chunk-WMQN7SZC.js.map → chunk-QFHR527D.js.map} +0 -0
  57. /package/dist/{chunk-BGZ2OSDQ.js.map → chunk-RGVVHF7Q.js.map} +0 -0
  58. /package/dist/{chunk-CMOGPJ23.js.map → chunk-SZ7JGCS3.js.map} +0 -0
  59. /package/dist/{chunk-H2YWXFYX.js.map → chunk-Z3AAQQFD.js.map} +0 -0
@@ -0,0 +1,3 @@
1
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M4.15672 0.923957C5.52544 0.283494 7.07068 0.123903 8.54141 0.471076C10.012 0.818299 11.3224 1.652 12.2602 2.83688C13.198 4.02185 13.7082 5.48879 13.7082 6.99996V7.5833C13.7082 8.27949 13.4315 8.94697 12.9392 9.43925C12.4469 9.93152 11.7794 10.2083 11.0832 10.2083C10.3871 10.2083 9.71954 9.93152 9.22728 9.43925C9.20473 9.4167 9.18341 9.39303 9.16177 9.36976C8.59144 9.89033 7.83294 10.2083 6.9999 10.2083C5.22803 10.2082 3.79157 8.77185 3.79157 6.99996C3.79159 5.2281 5.22805 3.79168 6.9999 3.79163C7.57711 3.79163 8.11847 3.94468 8.58641 4.21147C8.74008 3.95987 9.01686 3.79166 9.33324 3.79163C9.81648 3.79163 10.2082 4.1834 10.2082 4.66663V7.5833C10.2082 7.81533 10.3005 8.03786 10.4646 8.20195C10.6287 8.36602 10.8512 8.45827 11.0832 8.4583C11.3153 8.4583 11.5378 8.36603 11.7019 8.20195C11.866 8.03786 11.9582 7.81536 11.9582 7.5833V6.99996C11.9582 5.88302 11.581 4.7985 10.8878 3.92265C10.1947 3.04698 9.22614 2.43098 8.13923 2.17436C7.05219 1.91777 5.91006 2.0354 4.89842 2.50875C3.88684 2.98212 3.06461 3.78336 2.56509 4.78227C2.06558 5.7813 1.91811 6.92003 2.14639 8.01339C2.37468 9.10674 2.96539 10.0913 3.8229 10.807C4.68041 11.5226 5.75467 11.9276 6.87116 11.9566C7.98766 11.9856 9.08115 11.6366 9.97468 10.9665C10.3612 10.6766 10.91 10.7549 11.2 11.1414C11.4899 11.528 11.4117 12.0768 11.0251 12.3667C9.81619 13.2734 8.33625 13.7453 6.82559 13.706C5.31501 13.6667 3.86197 13.1185 2.70181 12.1503C1.54166 11.182 0.742296 9.85035 0.433417 8.37114C0.12458 6.89196 0.32394 5.3517 0.99966 4.00013C1.67547 2.64852 2.78802 1.56444 4.15672 0.923957ZM6.9999 5.54163C6.19454 5.54168 5.54159 6.1946 5.54157 6.99996C5.54157 7.80535 6.19453 8.45825 6.9999 8.4583C7.80532 8.4583 8.45824 7.80538 8.45824 6.99996C8.45822 6.19457 7.80531 5.54163 6.9999 5.54163Z" fill="black"/>
3
+ </svg>
@@ -92,7 +92,19 @@ interface AgentMentionWorkspaceAppFactoryItem {
92
92
  action?: string;
93
93
  contextPath?: string;
94
94
  }
95
- type AgentContextMentionItem = AgentMentionFileItem | AgentMentionAgentTargetItem | AgentMentionSessionItem | AgentMentionWorkspaceAppItem | AgentMentionWorkspaceReferenceItem | AgentMentionWorkspaceAppFactoryItem | AgentMentionWorkspaceIssueItem;
95
+ interface AgentMentionCustomItem {
96
+ kind: "custom";
97
+ /** 注册表里的 kind(= mention:// providerId)。 */
98
+ customKind: string;
99
+ href: string;
100
+ workspaceId: string;
101
+ targetId: string;
102
+ /** chip 第一行。 */
103
+ name: string;
104
+ /** chip 第二行(通用双行卡)。 */
105
+ summary?: string;
106
+ }
107
+ type AgentContextMentionItem = AgentMentionFileItem | AgentMentionAgentTargetItem | AgentMentionSessionItem | AgentMentionWorkspaceAppItem | AgentMentionWorkspaceReferenceItem | AgentMentionWorkspaceAppFactoryItem | AgentMentionWorkspaceIssueItem | AgentMentionCustomItem;
96
108
 
97
109
  type AgentMentionProviderDiagnosticStatus = "success" | "timeout" | "error" | "missing";
98
110
  interface AgentMentionProviderQueryDiagnostic {
@@ -1,14 +1,14 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode, JSX } from 'react';
3
- import { W as WorkspaceLinkAction } from '../workspaceLinkActions-C6POH38D.js';
3
+ import { W as WorkspaceLinkAction } from '../workspaceLinkActions-Bjy_XfBm.js';
4
4
  import { A as AgentMessageMarkdownWorkspaceAppIcon } from '../AgentMessageMarkdown-DeYPURtF.js';
5
5
  import { c as AgentConversationVM, W as WorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-Qbz9GBwR.js';
6
6
  export { B as BuildWorkspaceAgentSessionDetailInput, d as buildWorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-Qbz9GBwR.js';
7
- import { d as AgentGUIProviderSkillOption } from '../agentGuiNodeTypes-DCnsaqJr.js';
7
+ import { d as AgentGUIProviderSkillOption } from '../agentGuiNodeTypes-BRU6P22B.js';
8
8
  export { W as WorkspaceAgentActivityCard, n as WorkspaceAgentActivitySession, q as WorkspaceAgentActivityTimelineItem } from '../workspaceAgentActivityListViewModel-B5viw5Da.js';
9
9
  import '@tutti-os/workspace-issue-manager/core';
10
10
  import '@tutti-os/agent-activity-core';
11
- import '../types-B2m7UcBb.js';
11
+ import '../types-BsHvTjIZ.js';
12
12
  import '@tutti-os/workspace-user-project/contracts';
13
13
 
14
14
  interface AgentConversationFlowProps {
@@ -6,19 +6,19 @@ import {
6
6
  projectAgentConversationVM,
7
7
  reconcileProjectedAgentConversationVM,
8
8
  useProjectedAgentConversation
9
- } from "../chunk-GBAQVKQN.js";
10
- import "../chunk-ZFDO72FE.js";
11
- import "../chunk-NBTJEF3H.js";
9
+ } from "../chunk-DZ76JPCV.js";
10
+ import "../chunk-2VHP7KQ5.js";
11
+ import "../chunk-N37A5CJH.js";
12
12
  import "../chunk-Y35GDLP2.js";
13
13
  import "../chunk-LUGELG5V.js";
14
- import "../chunk-GL54NRMB.js";
14
+ import "../chunk-S6PCOX3S.js";
15
15
  import "../chunk-TYGL25EL.js";
16
16
  import "../chunk-PJP5BUU6.js";
17
17
  import "../chunk-MTFSQWZ6.js";
18
18
  import {
19
19
  translate
20
- } from "../chunk-H2YWXFYX.js";
21
- import "../chunk-2XVECUTU.js";
20
+ } from "../chunk-Z3AAQQFD.js";
21
+ import "../chunk-33LWYV6O.js";
22
22
 
23
23
  // shared/WorkspaceAgentSessionDetail.tsx
24
24
  import { useMemo } from "react";
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { JSX, ReactNode, HTMLAttributes } from 'react';
3
3
  import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
4
4
  import { TranslateFn, useTranslation, AgentGuiI18nLocale } from '../i18n/index.js';
5
- import { W as WorkspaceLinkAction } from '../workspaceLinkActions-C6POH38D.js';
5
+ import { W as WorkspaceLinkAction } from '../workspaceLinkActions-Bjy_XfBm.js';
6
6
  import { AgentActivityNeedsAttentionItem, AgentActivitySnapshot } from '@tutti-os/agent-activity-core';
7
7
  import { b as AgentConversationPromptVM } from '../agentConversationVM-Qbz9GBwR.js';
8
8
  import { o as WorkspaceAgentActivityStatus } from '../workspaceAgentActivityListViewModel-B5viw5Da.js';
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  formatAgentGuiConversationPlainTitle
3
- } from "../chunk-BGZ2OSDQ.js";
3
+ } from "../chunk-RGVVHF7Q.js";
4
4
  import {
5
5
  AgentInteractivePromptSurface,
6
6
  approvalOptionDisplayLabel,
7
7
  getPromptToolDetails,
8
8
  isPromptRequestIdTitle
9
- } from "../chunk-6AXH2BOD.js";
9
+ } from "../chunk-KOR6UVUJ.js";
10
10
  import {
11
11
  PLAN_IMPLEMENTATION_ACTION_IMPLEMENT,
12
12
  PLAN_IMPLEMENTATION_PROMPT,
@@ -15,7 +15,7 @@ import {
15
15
  } from "../chunk-MKHDRIGN.js";
16
16
  import {
17
17
  formatAgentSessionMentionText
18
- } from "../chunk-CMOGPJ23.js";
18
+ } from "../chunk-SZ7JGCS3.js";
19
19
  import {
20
20
  AgentMessageMarkdown,
21
21
  CustomScrollArea,
@@ -25,17 +25,17 @@ import {
25
25
  extractExitPlanModeOptions,
26
26
  isExitPlanSwitchModeInput,
27
27
  normalizeAskUserQuestions
28
- } from "../chunk-ZFDO72FE.js";
28
+ } from "../chunk-2VHP7KQ5.js";
29
29
  import {
30
30
  userAvatarPlaceholderUrl,
31
31
  workspaceAgentActivityStatusLabel
32
- } from "../chunk-WMQN7SZC.js";
32
+ } from "../chunk-QFHR527D.js";
33
33
  import {
34
34
  resolveWorkspaceAgentSessionSortTimeUnixMs
35
35
  } from "../chunk-IBIMGLCD.js";
36
36
  import {
37
37
  managedAgentRoundedIconUrl
38
- } from "../chunk-GL54NRMB.js";
38
+ } from "../chunk-S6PCOX3S.js";
39
39
  import {
40
40
  workspaceAgentProviderLabel
41
41
  } from "../chunk-TYGL25EL.js";
@@ -46,8 +46,8 @@ import {
46
46
  AgentGuiI18nProvider,
47
47
  getActiveUiLanguage,
48
48
  useTranslation
49
- } from "../chunk-H2YWXFYX.js";
50
- import "../chunk-2XVECUTU.js";
49
+ } from "../chunk-Z3AAQQFD.js";
50
+ import "../chunk-33LWYV6O.js";
51
51
 
52
52
  // agent-message-center/WorkspaceAgentMessageCenterPanel.tsx
53
53
  import {
@@ -1,5 +1,5 @@
1
1
  import { AgentActivityUsage } from '@tutti-os/agent-activity-core';
2
- import { e as AgentHostAgentSessionCommand, f as AgentHostAgentSessionComposerSettings, h as AgentHostAgentSessionReasoningEffort, i as AgentHostAgentSessionSpeed, g as AgentHostAgentSessionPermissionConfig, j as AgentHostAgentSessionState, a as AgentGUIProvider, m as AgentPromptContentBlock, A as AgentGUINodeData, b as AgentGUIProviderTarget } from './types-B2m7UcBb.js';
2
+ import { h as AgentHostAgentSessionCommand, i as AgentHostAgentSessionComposerSettings, k as AgentHostAgentSessionReasoningEffort, l as AgentHostAgentSessionSpeed, j as AgentHostAgentSessionPermissionConfig, m as AgentHostAgentSessionState, a as AgentGUIProvider, p as AgentPromptContentBlock, A as AgentGUINodeData, e as AgentGUIProviderTarget, b as AgentGUIProviderReadinessGate } from './types-BsHvTjIZ.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-B5viw5Da.js';
4
4
  import { A as AgentApprovalItemVM, a as AgentAskUserQuestionVM, b as AgentConversationPromptVM, c as AgentConversationVM, W as WorkspaceAgentSessionDetailViewModel } from './agentConversationVM-Qbz9GBwR.js';
5
5
  import { WorkspaceUserProjectService } from '@tutti-os/workspace-user-project/contracts';
@@ -623,6 +623,7 @@ interface AgentGUINodeViewModel {
623
623
  conversationDetail: WorkspaceAgentSessionDetailViewModel | null;
624
624
  sessionChrome: AgentGUISessionChrome;
625
625
  inlineNotice: AgentGUIInlineNotice | null;
626
+ providerReadinessGate: AgentGUIProviderReadinessGate | null;
626
627
  }
627
628
 
628
629
  export type { AgentComposerDraft as A, PersistWriteResult as P, ReadWorkspaceAgentReadStateInput as R, WorkspaceAgentReadStateSnapshot as W, AgentGUIComposerSettingsVM as a, AgentGUIConversationScope as b, AgentGUINodeViewModel as c, AgentGUIProviderSkillOption as d, AgentGUIQueuedPromptVM as e, AgentHostApi as f, AgentHostApplyWorkspaceGitPatchInput as g, AgentHostInputApi as h, AgentHostRuntimeApi as i, AgentHostSelectFilesInput as j, AgentProbeProvider as k, AgentProbeSnapshot as l, AgentProviderProbeListInput as m, AgentProviderProbeListResult as n, AgentSessionCommand as o, AgentUsageQuota as p, AgentUsageSnapshot as q, WriteWorkspaceAgentReadStateInput as r };
@@ -5819,9 +5819,9 @@ button.agent-gui-node__conversation-section-toggle:hover
5819
5819
 
5820
5820
  .agent-gui-message-locator {
5821
5821
  --agent-message-locator-dot-size: 6px;
5822
- --agent-message-locator-hit-size: 18px;
5823
- --agent-message-locator-center-offset: 10px;
5824
- --agent-message-locator-scrollbar-gap: 4px;
5822
+ --agent-message-locator-hit-size: 36px;
5823
+ --agent-message-locator-center-offset: 18px;
5824
+ --agent-message-locator-scrollbar-gap: 8px;
5825
5825
  --agent-message-locator-visible-height: 100vh;
5826
5826
  --agent-message-locator-visible-top-offset: 0px;
5827
5827
  --agent-message-locator-viewport-height: var(--agent-message-locator-height);
@@ -5865,6 +5865,8 @@ button.agent-gui-node__conversation-section-toggle:hover
5865
5865
  overscroll-behavior: contain;
5866
5866
  pointer-events: auto;
5867
5867
  scrollbar-width: none;
5868
+ cursor: pointer;
5869
+ z-index: 1;
5868
5870
  }
5869
5871
 
5870
5872
  .agent-gui-message-locator__viewport::-webkit-scrollbar {
@@ -5906,6 +5908,9 @@ button.agent-gui-node__conversation-section-toggle:hover
5906
5908
  transform: translateY(-50%);
5907
5909
  cursor: pointer;
5908
5910
  pointer-events: auto;
5911
+ touch-action: manipulation;
5912
+ -webkit-appearance: none;
5913
+ appearance: none;
5909
5914
  }
5910
5915
 
5911
5916
  .agent-gui-message-locator__dot {
@@ -8222,6 +8227,46 @@ html[data-theme="light"] [data-message-center-item-id].agent-gui-edge-glow {
8222
8227
  font-weight: 700;
8223
8228
  }
8224
8229
 
8230
+ .agent-gui-node__empty-provider-gate {
8231
+ max-width: 520px;
8232
+ gap: 14px;
8233
+ }
8234
+
8235
+ .agent-gui-node__empty-provider-gate > .agent-gui-node__empty-hero-icon-effect {
8236
+ margin-bottom: 10px;
8237
+ }
8238
+
8239
+ .agent-gui-node__empty-provider-gate > .agent-gui-node__empty-hero-title {
8240
+ font-size: 24px;
8241
+ }
8242
+
8243
+ .agent-gui-node__empty-provider-gate-description {
8244
+ max-width: 420px;
8245
+ margin: 0;
8246
+ text-align: center;
8247
+ color: var(--text-secondary);
8248
+ font-size: 14px;
8249
+ line-height: 1.55;
8250
+ animation: agent-gui-empty-hero-enter 280ms cubic-bezier(0.16, 1, 0.3, 1)
8251
+ 150ms both;
8252
+ }
8253
+
8254
+ .agent-gui-node__empty-provider-gate-status {
8255
+ min-height: 20px;
8256
+ color: var(--text-secondary);
8257
+ font-size: 13px;
8258
+ line-height: 20px;
8259
+ animation: agent-gui-empty-hero-enter 280ms cubic-bezier(0.16, 1, 0.3, 1)
8260
+ 170ms both;
8261
+ }
8262
+
8263
+ .agent-gui-node__empty-provider-gate-action {
8264
+ min-width: 132px;
8265
+ gap: 8px;
8266
+ animation: agent-gui-empty-hero-enter 300ms cubic-bezier(0.16, 1, 0.3, 1)
8267
+ 190ms both;
8268
+ }
8269
+
8225
8270
  .agent-gui-node__empty-hero-body > .agent-gui-node__composer-hero {
8226
8271
  animation: agent-gui-empty-hero-enter 300ms cubic-bezier(0.16, 1, 0.3, 1)
8227
8272
  180ms both;
@@ -0,0 +1,3 @@
1
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M4.15672 0.923957C5.52544 0.283494 7.07068 0.123903 8.54141 0.471076C10.012 0.818299 11.3224 1.652 12.2602 2.83688C13.198 4.02185 13.7082 5.48879 13.7082 6.99996V7.5833C13.7082 8.27949 13.4315 8.94697 12.9392 9.43925C12.4469 9.93152 11.7794 10.2083 11.0832 10.2083C10.3871 10.2083 9.71954 9.93152 9.22728 9.43925C9.20473 9.4167 9.18341 9.39303 9.16177 9.36976C8.59144 9.89033 7.83294 10.2083 6.9999 10.2083C5.22803 10.2082 3.79157 8.77185 3.79157 6.99996C3.79159 5.2281 5.22805 3.79168 6.9999 3.79163C7.57711 3.79163 8.11847 3.94468 8.58641 4.21147C8.74008 3.95987 9.01686 3.79166 9.33324 3.79163C9.81648 3.79163 10.2082 4.1834 10.2082 4.66663V7.5833C10.2082 7.81533 10.3005 8.03786 10.4646 8.20195C10.6287 8.36602 10.8512 8.45827 11.0832 8.4583C11.3153 8.4583 11.5378 8.36603 11.7019 8.20195C11.866 8.03786 11.9582 7.81536 11.9582 7.5833V6.99996C11.9582 5.88302 11.581 4.7985 10.8878 3.92265C10.1947 3.04698 9.22614 2.43098 8.13923 2.17436C7.05219 1.91777 5.91006 2.0354 4.89842 2.50875C3.88684 2.98212 3.06461 3.78336 2.56509 4.78227C2.06558 5.7813 1.91811 6.92003 2.14639 8.01339C2.37468 9.10674 2.96539 10.0913 3.8229 10.807C4.68041 11.5226 5.75467 11.9276 6.87116 11.9566C7.98766 11.9856 9.08115 11.6366 9.97468 10.9665C10.3612 10.6766 10.91 10.7549 11.2 11.1414C11.4899 11.528 11.4117 12.0768 11.0251 12.3667C9.81619 13.2734 8.33625 13.7453 6.82559 13.706C5.31501 13.6667 3.86197 13.1185 2.70181 12.1503C1.54166 11.182 0.742296 9.85035 0.433417 8.37114C0.12458 6.89196 0.32394 5.3517 0.99966 4.00013C1.67547 2.64852 2.78802 1.56444 4.15672 0.923957ZM6.9999 5.54163C6.19454 5.54168 5.54159 6.1946 5.54157 6.99996C5.54157 7.80535 6.19453 8.45825 6.9999 8.4583C7.80532 8.4583 8.45824 7.80538 8.45824 6.99996C8.45822 6.19457 7.80531 5.54163 6.9999 5.54163Z" fill="black"/>
3
+ </svg>
@@ -1,15 +1,16 @@
1
1
  import {
2
+ getAgentCustomMentionKind,
2
3
  getOptionalAgentHostApi,
3
4
  managedAgentRoundedIconUrl,
4
5
  useOptionalAgentHostApi
5
- } from "./chunk-GL54NRMB.js";
6
+ } from "./chunk-S6PCOX3S.js";
6
7
  import {
7
8
  resolveAgentWorkspaceFileVisualKind
8
9
  } from "./chunk-PJP5BUU6.js";
9
10
  import {
10
11
  translate,
11
12
  useTranslation
12
- } from "./chunk-H2YWXFYX.js";
13
+ } from "./chunk-Z3AAQQFD.js";
13
14
 
14
15
  // app/renderer/lib/utils.ts
15
16
  import { clsx } from "clsx";
@@ -1259,6 +1260,18 @@ function resolveWorkspaceMentionLinkAction({
1259
1260
  if (!mention) {
1260
1261
  return null;
1261
1262
  }
1263
+ const customDefinition = getAgentCustomMentionKind(mention.providerId);
1264
+ if (customDefinition) {
1265
+ if (!customDefinition.clickable) {
1266
+ return null;
1267
+ }
1268
+ return {
1269
+ type: "open-custom-mention",
1270
+ kind: mention.providerId.trim().toLowerCase(),
1271
+ href: href.trim(),
1272
+ source
1273
+ };
1274
+ }
1262
1275
  const workspaceId = mention.scope?.workspaceId?.trim() || "";
1263
1276
  const targetId = mention.entityId.trim();
1264
1277
  if (!workspaceId || !targetId) {
@@ -3644,4 +3657,4 @@ export {
3644
3657
  CustomScrollArea,
3645
3658
  MessageSquareMoreIcon
3646
3659
  };
3647
- //# sourceMappingURL=chunk-ZFDO72FE.js.map
3660
+ //# sourceMappingURL=chunk-2VHP7KQ5.js.map