@tutti-os/agent-gui 0.0.99 → 0.0.101

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 (95) hide show
  1. package/dist/{AgentGUI-Bkk2TRS0.d.ts → AgentGUI-FECh2x1p.d.ts} +19 -37
  2. package/dist/agent-conversation/index.d.ts +4 -4
  3. package/dist/agent-conversation/index.js +8 -9
  4. package/dist/agent-conversation/index.js.map +1 -1
  5. package/dist/agent-gui.d.ts +5 -4
  6. package/dist/agent-gui.js +19 -19
  7. package/dist/agent-message-center/index.d.ts +4 -6
  8. package/dist/agent-message-center/index.js +13 -52
  9. package/dist/agent-message-center/index.js.map +1 -1
  10. package/dist/agent-title-text.js +1 -1
  11. package/dist/{agentConversationVM-C335TR6S.d.ts → agentConversationVM-BzHZhwFP.d.ts} +1 -1
  12. package/dist/{agentGuiNodeTypes-DAsluxjv.d.ts → agentGuiNodeTypes-BH3lz6gn.d.ts} +21 -5
  13. package/dist/app/renderer/agentactivity.css +142 -72
  14. package/dist/chunk-2RQM7PJN.js +16 -0
  15. package/dist/chunk-2RQM7PJN.js.map +1 -0
  16. package/dist/{chunk-FSKGEGGX.js → chunk-4E3QCW6L.js} +17 -3
  17. package/dist/chunk-4E3QCW6L.js.map +1 -0
  18. package/dist/{chunk-63BE6RGM.js → chunk-4YCCATI4.js} +14 -374
  19. package/dist/chunk-4YCCATI4.js.map +1 -0
  20. package/dist/{chunk-IYEXLOUE.js → chunk-4YVKAPKW.js} +5 -8
  21. package/dist/chunk-4YVKAPKW.js.map +1 -0
  22. package/dist/{chunk-MRRICFWA.js → chunk-D7HMQLBO.js} +159 -55
  23. package/dist/chunk-D7HMQLBO.js.map +1 -0
  24. package/dist/{chunk-OTRZBTFQ.js → chunk-DWUVRWXD.js} +2 -2
  25. package/dist/{chunk-RHTZAODZ.js → chunk-E5AD46HP.js} +2 -2
  26. package/dist/{chunk-3NOJFKDV.js → chunk-EUW6VPIK.js} +414 -49
  27. package/dist/chunk-EUW6VPIK.js.map +1 -0
  28. package/dist/{chunk-Y35GDLP2.js → chunk-F5UR6EJG.js} +2 -17
  29. package/dist/chunk-F5UR6EJG.js.map +1 -0
  30. package/dist/{chunk-J7ZYAUPC.js → chunk-FAE7CXZO.js} +8 -6
  31. package/dist/chunk-FAE7CXZO.js.map +1 -0
  32. package/dist/{chunk-CPUEPDF7.js → chunk-GCW57WYQ.js} +646 -595
  33. package/dist/chunk-GCW57WYQ.js.map +1 -0
  34. package/dist/{chunk-4ROALW3K.js → chunk-KAV2WHTG.js} +82 -61
  35. package/dist/chunk-KAV2WHTG.js.map +1 -0
  36. package/dist/chunk-MIJXEELH.js +96 -0
  37. package/dist/chunk-MIJXEELH.js.map +1 -0
  38. package/dist/{chunk-T6PEJFRP.js → chunk-MJOQP2ED.js} +392 -452
  39. package/dist/chunk-MJOQP2ED.js.map +1 -0
  40. package/dist/{chunk-QWGJ5TEG.js → chunk-QY22OBJS.js} +28 -30
  41. package/dist/chunk-QY22OBJS.js.map +1 -0
  42. package/dist/{chunk-SPZJCTBV.js → chunk-TDVYZEUI.js} +348 -322
  43. package/dist/chunk-TDVYZEUI.js.map +1 -0
  44. package/dist/{chunk-MASXZENX.js → chunk-UESYITH6.js} +21 -2
  45. package/dist/chunk-UESYITH6.js.map +1 -0
  46. package/dist/{chunk-PLCHNOXL.js → chunk-VQOPBBBI.js} +1288 -1141
  47. package/dist/chunk-VQOPBBBI.js.map +1 -0
  48. package/dist/{chunk-7M77BK6K.js → chunk-ZPKPIHMZ.js} +196 -156
  49. package/dist/chunk-ZPKPIHMZ.js.map +1 -0
  50. package/dist/context-mention-palette/index.d.ts +5 -1
  51. package/dist/context-mention-palette/index.js +10 -11
  52. package/dist/contribution-CTVBPN0R.d.ts +119 -0
  53. package/dist/i18n/index.d.ts +16 -2
  54. package/dist/i18n/index.js +2 -2
  55. package/dist/index.d.ts +8 -7
  56. package/dist/index.js +21 -20
  57. package/dist/index.js.map +1 -1
  58. package/dist/mention-search.d.ts +18 -6
  59. package/dist/mention-search.js +8 -9
  60. package/dist/workbench/contribution.d.ts +6 -107
  61. package/dist/workbench/contribution.js +7 -3
  62. package/dist/workbench/index.d.ts +6 -4
  63. package/dist/workbench/index.js +27 -21
  64. package/dist/workbench/launch.d.ts +13 -5
  65. package/dist/workbench/launch.js +1 -1
  66. package/dist/workbench/sessionTitle.d.ts +5 -7
  67. package/dist/workbench/sessionTitle.js +3 -4
  68. package/dist/workbench/state.js +3 -1
  69. package/dist/workspace-agent-generated-files.d.ts +8 -13
  70. package/dist/workspace-agent-generated-files.js +6 -21
  71. package/dist/{workspaceAgentActivityListTypes-C7gPWYiA.d.ts → workspaceAgentActivityListTypes-DZfS_HgG.d.ts} +3 -26
  72. package/package.json +14 -14
  73. package/dist/chunk-3NOJFKDV.js.map +0 -1
  74. package/dist/chunk-4ROALW3K.js.map +0 -1
  75. package/dist/chunk-63BE6RGM.js.map +0 -1
  76. package/dist/chunk-7M77BK6K.js.map +0 -1
  77. package/dist/chunk-CPUEPDF7.js.map +0 -1
  78. package/dist/chunk-FSKGEGGX.js.map +0 -1
  79. package/dist/chunk-GAD6Y3BF.js +0 -88
  80. package/dist/chunk-GAD6Y3BF.js.map +0 -1
  81. package/dist/chunk-GCBDIQDX.js +0 -22
  82. package/dist/chunk-GCBDIQDX.js.map +0 -1
  83. package/dist/chunk-IYEXLOUE.js.map +0 -1
  84. package/dist/chunk-J7ZYAUPC.js.map +0 -1
  85. package/dist/chunk-MASXZENX.js.map +0 -1
  86. package/dist/chunk-MRRICFWA.js.map +0 -1
  87. package/dist/chunk-PLCHNOXL.js.map +0 -1
  88. package/dist/chunk-QWGJ5TEG.js.map +0 -1
  89. package/dist/chunk-SPZJCTBV.js.map +0 -1
  90. package/dist/chunk-T6PEJFRP.js.map +0 -1
  91. package/dist/chunk-Y35GDLP2.js.map +0 -1
  92. package/dist/chunk-Y5M6Q6WX.js +0 -25
  93. package/dist/chunk-Y5M6Q6WX.js.map +0 -1
  94. /package/dist/{chunk-OTRZBTFQ.js.map → chunk-DWUVRWXD.js.map} +0 -0
  95. /package/dist/{chunk-RHTZAODZ.js.map → chunk-E5AD46HP.js.map} +0 -0
@@ -1,8 +1,10 @@
1
1
  import { A as AgentContextMentionItem } from '../agentFileMentionContracts-58IjMU-u.js';
2
2
  import { AgentMentionSearchState, AgentMentionBrowseCategory, AgentMentionFilterId, AgentMentionGroupId } from '../mention-search.js';
3
3
  export { AgentMentionGroup, AgentMentionSearchController } from '../mention-search.js';
4
+ import { ReactNode } from 'react';
4
5
  export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AgentContextMentionInsertResult, AgentContextMentionProvider, AgentContextMentionProviderId, AgentContextMentionQueryInput } from '../context-mention-provider.js';
5
6
  import '@tutti-os/ui-rich-text/at-panel';
7
+ import '@tutti-os/workspace-file-reference/contracts';
6
8
  import '@tutti-os/ui-rich-text/types';
7
9
  import '@tutti-os/workspace-external-core/contracts';
8
10
 
@@ -35,10 +37,12 @@ interface AgentFileMentionPaletteProps {
35
37
  * 仅 workspace-issue / workspace-app 行渲染该入口。
36
38
  */
37
39
  onOpenReferences?: (item: AgentContextMentionItem) => void;
40
+ /** Controlled provenance filter supplied by the AgentGUI orchestration layer. */
41
+ provenanceFilterControl?: ReactNode;
38
42
  }
39
43
  declare function flattenAgentMentionPaletteEntries(state: AgentMentionSearchState): AgentMentionPaletteEntry[];
40
44
  declare function groupStartKeys(state: AgentMentionSearchState): string[];
41
- declare function AgentFileMentionPalette({ state, highlightedKey, label, loadingLabel, emptyLabel, errorLabel, tabHintLabel, maxHeightPx, shouldCenterHighlightedItem, onHighlightChange, onSelectItem, onSelectCategory, onSelectFilter, onExpandGroup, onNavigateHierarchy, onNavigateIntoItem, onOpenReferences }: AgentFileMentionPaletteProps): React.JSX.Element;
45
+ declare function AgentFileMentionPalette({ state, highlightedKey, label, loadingLabel, emptyLabel, errorLabel, tabHintLabel, maxHeightPx, shouldCenterHighlightedItem, onHighlightChange, onSelectItem, onSelectCategory, onSelectFilter, onExpandGroup, onNavigateHierarchy, onNavigateIntoItem, onOpenReferences, provenanceFilterControl }: AgentFileMentionPaletteProps): React.JSX.Element;
42
46
  declare const AgentContextMentionPalette: typeof AgentFileMentionPalette;
43
47
  type AgentContextMentionPaletteProps = AgentFileMentionPaletteProps;
44
48
 
@@ -3,26 +3,25 @@ import {
3
3
  AgentFileMentionPalette,
4
4
  flattenAgentMentionPaletteEntries,
5
5
  groupStartKeys
6
- } from "../chunk-J7ZYAUPC.js";
6
+ } from "../chunk-FAE7CXZO.js";
7
7
  import {
8
8
  AgentMentionSearchController
9
- } from "../chunk-3NOJFKDV.js";
10
- import "../chunk-63BE6RGM.js";
11
- import "../chunk-CPUEPDF7.js";
12
- import "../chunk-Y35GDLP2.js";
9
+ } from "../chunk-EUW6VPIK.js";
10
+ import "../chunk-4YCCATI4.js";
11
+ import "../chunk-GCW57WYQ.js";
12
+ import "../chunk-F5UR6EJG.js";
13
13
  import "../chunk-LUGELG5V.js";
14
14
  import {
15
15
  AGENT_CONTEXT_MENTION_PROVIDER_IDS
16
16
  } from "../chunk-JM24HADP.js";
17
- import "../chunk-OTRZBTFQ.js";
17
+ import "../chunk-DWUVRWXD.js";
18
18
  import "../chunk-YMXYBG7U.js";
19
- import "../chunk-MASXZENX.js";
20
- import "../chunk-Y5M6Q6WX.js";
19
+ import "../chunk-UESYITH6.js";
21
20
  import "../chunk-PJP5BUU6.js";
22
21
  import "../chunk-H6IQ63DQ.js";
23
- import "../chunk-GCBDIQDX.js";
24
- import "../chunk-RHTZAODZ.js";
25
- import "../chunk-FSKGEGGX.js";
22
+ import "../chunk-MIJXEELH.js";
23
+ import "../chunk-E5AD46HP.js";
24
+ import "../chunk-4E3QCW6L.js";
26
25
  import "../chunk-5X7YDOC6.js";
27
26
  import "../chunk-KJQERFKX.js";
28
27
  import "../chunk-UGVI47X6.js";
@@ -0,0 +1,119 @@
1
+ import { ReactNode } from 'react';
2
+ import { AgentSessionEngineState, AgentSessionEngine } from '@tutti-os/agent-activity-core';
3
+ import { WorkbenchFrame, WorkbenchHostDockEntry, WorkbenchHostLaunchRequest, WorkbenchHostNodeBodyContext, WorkbenchContribution } from '@tutti-os/workbench-surface';
4
+ import { A as AgentGUIAgent, d as AgentGUIAgentDirectoryPort } from './types-CnT8rNUI.js';
5
+ import { AgentGuiWorkbenchProvider, AgentGuiWorkbenchState } from './workbench/types.js';
6
+
7
+ interface AgentGuiWorkbenchConversationIdentity {
8
+ agentTitle?: string | null;
9
+ iconUrl?: string | null;
10
+ title: string | null;
11
+ }
12
+ declare function resolveAgentGuiWorkbenchConversationIdentity(input: {
13
+ agents: readonly AgentGUIAgent[];
14
+ dockIconUrls?: Partial<Record<AgentGuiWorkbenchProvider, string>>;
15
+ engineState: AgentSessionEngineState;
16
+ workbenchState: AgentGuiWorkbenchState | null;
17
+ }): AgentGuiWorkbenchConversationIdentity | null;
18
+ declare function agentGuiWorkbenchConversationIdentitiesEqual(left: AgentGuiWorkbenchConversationIdentity | null, right: AgentGuiWorkbenchConversationIdentity | null): boolean;
19
+
20
+ declare const agentGuiWorkbenchDefaultNodeFrame: WorkbenchFrame;
21
+ declare const agentGuiWorkbenchDefaultUsableWidthRatio = 0.9;
22
+ declare const agentGuiWorkbenchDefaultUsableHeightRatio = 0.9;
23
+ declare const agentGuiWorkbenchCompactVisibleAreaRatio = 0.9;
24
+ declare const agentGuiWorkbenchNewWindowCascadeOffset: {
25
+ x: number;
26
+ y: number;
27
+ };
28
+ declare const agentGuiWorkbenchProviderRailWidthPx = 52;
29
+ declare const agentGuiWorkbenchDefaultCopy: AgentGuiWorkbenchContributionCopy;
30
+ type AgentGuiWorkbenchProviderAvailability = Partial<Record<AgentGuiWorkbenchProvider, boolean | "available" | "ready" | "unavailable" | {
31
+ available?: boolean | null;
32
+ status?: string | null;
33
+ } | null | undefined>>;
34
+ interface BuildAgentGuiDockEntriesInput {
35
+ agentDirectory: AgentGUIAgentDirectoryPort;
36
+ defaultProvider?: AgentGuiWorkbenchProvider | null;
37
+ dockIconUrls?: Partial<Record<AgentGuiWorkbenchProvider, string>>;
38
+ label?: string;
39
+ providerAvailability?: AgentGuiWorkbenchProviderAvailability;
40
+ renderPreview?: CreateAgentGuiWorkbenchContributionInput["renderPreview"];
41
+ resolveDockPopupIdentity?: CreateAgentGuiWorkbenchContributionInput["resolveDockPopupIdentity"];
42
+ resolveDockPopupTitle?: CreateAgentGuiWorkbenchContributionInput["resolveDockPopupTitle"];
43
+ sectionId?: string;
44
+ unifiedDockIconUrl?: string;
45
+ }
46
+ declare function buildAgentGuiDockEntries(input: BuildAgentGuiDockEntriesInput): WorkbenchHostDockEntry[];
47
+ declare function resolveAgentGuiUnifiedDockLaunchPayload(input: Pick<BuildAgentGuiDockEntriesInput, "agentDirectory" | "defaultProvider" | "providerAvailability">): {
48
+ provider: AgentGuiWorkbenchProvider;
49
+ agentTargetId?: string;
50
+ };
51
+ declare function resolveAgentGuiWorkbenchDefaultLaunchFrame(input: {
52
+ frame: WorkbenchFrame;
53
+ request: Pick<WorkbenchHostLaunchRequest, "layoutConstraints" | "surfaceSize">;
54
+ }): WorkbenchFrame;
55
+ declare function resolveAgentGuiWorkbenchContributionCopy(copy?: AgentGuiWorkbenchContributionCopyOverrides): AgentGuiWorkbenchContributionCopy;
56
+
57
+ declare const AGENT_GUI_WORKBENCH_CONVERSATION_RAIL_TOGGLE_EVENT = "tutti:agent-gui-workbench-conversation-rail-toggle";
58
+ declare const AGENT_GUI_WORKBENCH_NEW_CONVERSATION_EVENT = "tutti:agent-gui-workbench-new-conversation";
59
+ /**
60
+ * Fired when the empty-hero "Import session" suggestion is chosen. The host
61
+ * chrome (which owns the external-agent import wizard state) listens for this
62
+ * and opens the wizard.
63
+ */
64
+ declare const AGENT_GUI_WORKBENCH_OPEN_EXTERNAL_IMPORT_EVENT = "tutti:agent-gui-workbench-open-external-import";
65
+ interface AgentGuiWorkbenchConversationRailToggleDetail {
66
+ conversationRailCollapsed: boolean;
67
+ instanceId: string;
68
+ }
69
+ interface AgentGuiWorkbenchNewConversationDetail {
70
+ instanceId: string;
71
+ }
72
+
73
+ interface AgentGuiWorkbenchContributionCopy {
74
+ collapseConversationRail: string;
75
+ close: string;
76
+ expandConversationRail: string;
77
+ fallbackAgentLabel: string;
78
+ maximize: string;
79
+ minimize: string;
80
+ newConversation: string;
81
+ nodeTitle: string;
82
+ openDetachedWindow: string;
83
+ restore: string;
84
+ untitledConversation: string;
85
+ }
86
+ type AgentGuiWorkbenchContributionCopyOverrides = Partial<AgentGuiWorkbenchContributionCopy>;
87
+ interface AgentGuiWorkbenchRenderBodyHelpers {
88
+ agentDirectory: AgentGUIAgentDirectoryPort;
89
+ nodeTypeId: string;
90
+ onStateChange(state: AgentGuiWorkbenchState): void;
91
+ provider: AgentGuiWorkbenchProvider;
92
+ }
93
+ interface CreateAgentGuiWorkbenchContributionInput {
94
+ agentDirectory: AgentGUIAgentDirectoryPort;
95
+ copy?: AgentGuiWorkbenchContributionCopyOverrides;
96
+ defaultProvider?: AgentGuiWorkbenchProvider | null;
97
+ dockIconUrls?: Partial<Record<AgentGuiWorkbenchProvider, string>>;
98
+ dockSectionId?: string;
99
+ frame?: WorkbenchFrame;
100
+ id?: string;
101
+ providerAvailability?: AgentGuiWorkbenchProviderAvailability;
102
+ renderBody(context: WorkbenchHostNodeBodyContext<AgentGuiWorkbenchState | null, unknown>, helpers: AgentGuiWorkbenchRenderBodyHelpers): ReactNode;
103
+ renderPreview?(context: WorkbenchHostNodeBodyContext<AgentGuiWorkbenchState | null, unknown>, helpers: AgentGuiWorkbenchRenderBodyHelpers): ReactNode;
104
+ renderMinimizedPreview(context: WorkbenchHostNodeBodyContext<AgentGuiWorkbenchState | null, unknown>, helpers: AgentGuiWorkbenchRenderBodyHelpers): ReactNode;
105
+ resolveDockPopupTitle?: (state: AgentGuiWorkbenchState | null) => string | null;
106
+ resolveDockPopupIdentity?: (state: AgentGuiWorkbenchState | null) => AgentGuiWorkbenchConversationIdentity | null;
107
+ sessionEngine?: AgentSessionEngine;
108
+ onOpenDetachedWindow?: (input: {
109
+ agentSessionId?: string | null;
110
+ agentTargetId?: string | null;
111
+ provider: AgentGuiWorkbenchProvider;
112
+ workspaceId: string;
113
+ }) => void | Promise<void>;
114
+ unifiedDockIconUrl?: string;
115
+ workspaceId: string;
116
+ }
117
+ declare function createAgentGuiWorkbenchContribution(input: CreateAgentGuiWorkbenchContributionInput): WorkbenchContribution;
118
+
119
+ export { AGENT_GUI_WORKBENCH_CONVERSATION_RAIL_TOGGLE_EVENT as A, type BuildAgentGuiDockEntriesInput as B, type CreateAgentGuiWorkbenchContributionInput as C, AGENT_GUI_WORKBENCH_NEW_CONVERSATION_EVENT as a, AGENT_GUI_WORKBENCH_OPEN_EXTERNAL_IMPORT_EVENT as b, type AgentGuiWorkbenchContributionCopy as c, type AgentGuiWorkbenchContributionCopyOverrides as d, type AgentGuiWorkbenchConversationIdentity as e, type AgentGuiWorkbenchConversationRailToggleDetail as f, type AgentGuiWorkbenchNewConversationDetail as g, type AgentGuiWorkbenchProviderAvailability as h, type AgentGuiWorkbenchRenderBodyHelpers as i, agentGuiWorkbenchCompactVisibleAreaRatio as j, agentGuiWorkbenchConversationIdentitiesEqual as k, agentGuiWorkbenchDefaultCopy as l, agentGuiWorkbenchDefaultNodeFrame as m, agentGuiWorkbenchDefaultUsableHeightRatio as n, agentGuiWorkbenchDefaultUsableWidthRatio as o, agentGuiWorkbenchNewWindowCascadeOffset as p, agentGuiWorkbenchProviderRailWidthPx as q, buildAgentGuiDockEntries as r, createAgentGuiWorkbenchContribution as s, resolveAgentGuiUnifiedDockLaunchPayload as t, resolveAgentGuiWorkbenchContributionCopy as u, resolveAgentGuiWorkbenchConversationIdentity as v, resolveAgentGuiWorkbenchDefaultLaunchFrame as w };
@@ -416,6 +416,13 @@ declare const agentGuiI18nResources: {
416
416
  readonly mentionFilterFile: "Files";
417
417
  readonly mentionFilterApp: "Apps";
418
418
  readonly mentionFilterAgent: "Agents";
419
+ readonly provenanceFilterAllAgents: "All agents";
420
+ readonly provenanceFilterAllMembers: "All members";
421
+ readonly provenanceFilterAllSources: "All sources";
422
+ readonly provenanceFilterAgents: "Agents";
423
+ readonly provenanceFilterFilteredSources: "Filtered sources";
424
+ readonly provenanceFilterMembers: "Members";
425
+ readonly provenanceFilterReset: "Reset";
419
426
  readonly mentionFilterSession: "Sessions";
420
427
  readonly mentionFilterCollab: "Collaboration";
421
428
  readonly mentionFilterIssue: "Tasks";
@@ -1149,7 +1156,7 @@ declare const agentGuiI18nResources: {
1149
1156
  readonly workspaceAgentMessageCenterOpenChat: "Open session";
1150
1157
  readonly workspaceAgentsNoSessions: "No sessions";
1151
1158
  readonly workspaceAgentsNoActivities: "No current activity";
1152
- readonly workspaceAgentsUntitledTask: "Current task";
1159
+ readonly workspaceAgentsUntitledConversation: "Untitled conversation";
1153
1160
  readonly workspaceAgentsGenericAgentName: "Agent";
1154
1161
  readonly workspaceAgentsSessionCount_one: "{{count}} session";
1155
1162
  readonly workspaceAgentsSessionCount_other: "{{count}} sessions";
@@ -2914,6 +2921,13 @@ declare const agentGuiI18nResources: {
2914
2921
  readonly mentionFilterFile: "文件";
2915
2922
  readonly mentionFilterApp: "应用";
2916
2923
  readonly mentionFilterAgent: "智能体";
2924
+ readonly provenanceFilterAllAgents: "全部智能体";
2925
+ readonly provenanceFilterAllMembers: "全部成员";
2926
+ readonly provenanceFilterAllSources: "全部来源";
2927
+ readonly provenanceFilterAgents: "智能体";
2928
+ readonly provenanceFilterFilteredSources: "已筛选来源";
2929
+ readonly provenanceFilterMembers: "成员";
2930
+ readonly provenanceFilterReset: "重置";
2917
2931
  readonly mentionFilterSession: "会话";
2918
2932
  readonly mentionFilterCollab: "协作";
2919
2933
  readonly mentionFilterIssue: "任务";
@@ -3647,7 +3661,7 @@ declare const agentGuiI18nResources: {
3647
3661
  readonly workspaceAgentMessageCenterOpenChat: "打开会话";
3648
3662
  readonly workspaceAgentsNoSessions: "暂无会话";
3649
3663
  readonly workspaceAgentsNoActivities: "暂无进行中的操作";
3650
- readonly workspaceAgentsUntitledTask: "当前任务";
3664
+ readonly workspaceAgentsUntitledConversation: "未命名对话";
3651
3665
  readonly workspaceAgentsGenericAgentName: "智能体";
3652
3666
  readonly workspaceAgentsSessionCount_one: "{{count}} 个会话";
3653
3667
  readonly workspaceAgentsSessionCount_other: "{{count}} 个会话";
@@ -6,8 +6,8 @@ import {
6
6
  translate,
7
7
  translateInUiLanguage,
8
8
  useTranslation
9
- } from "../chunk-RHTZAODZ.js";
10
- import "../chunk-FSKGEGGX.js";
9
+ } from "../chunk-E5AD46HP.js";
10
+ import "../chunk-4E3QCW6L.js";
11
11
  export {
12
12
  AgentGuiI18nProvider,
13
13
  agentGuiI18nModule,
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  export { AgentCustomMentionChipContext, AgentCustomMentionIdentity, AgentCustomMentionKindDefinition, AgentCustomMentionPresentation, getAgentCustomMentionKind, registerAgentCustomMentionKind, resetAgentCustomMentionKindsForTests } from './custom-mention.js';
2
2
  export { A as AGENT_PASTED_TEXT_BLOCK_KIND, a as AGENT_PASTED_TEXT_MENTION_KIND } from './pastedTextKinds-D-XuInaS.js';
3
- import { A as AgentActivityRuntime } from './AgentGUI-Bkk2TRS0.js';
4
- export { a as AgentActivityRuntimeDeleteSessionsBatchInput, b as AgentActivityRuntimeDeleteSessionsBatchResult, c as AgentActivityRuntimeListSessionMessagesInput, d as AgentActivityRuntimePromptContentBlock, e as AgentActivityRuntimeProvider, f as AgentActivityRuntimeProviderProps, g as AgentActivityRuntimeSessionSectionDeletionCandidates, h as AgentActivityRuntimeSessionSectionScopeInput, i as AgentActivityRuntimeSetSessionPinnedInput, j as AgentActivityRuntimeUpdateSessionSettingsInput, k as AgentActivityRuntimeUpdateSessionSettingsResult, l as AgentActivityRuntimeUploadPromptContentInput, m as AgentActivityRuntimeUploadPromptContentResult, n as AgentGUI, o as AgentGUIAccountMenuState, p as AgentGUIAgentsEmptyRenderer, q as AgentGUIComposerContentType, r as AgentGUIComposerFocusMethod, s as AgentGUIEngagementContext, t as AgentGUIEngagementEvent, u as AgentGUIEngagementEventSink, v as AgentGUIProps, w as AgentGUIProviderUnavailableStateContext, x as AgentGUIProviderUnavailableStateRenderer, y as AgentGUISidebarFooterContext, z as AgentGUISidebarFooterRenderer, B as resetAgentActivityRuntimeForTests, C as setAgentActivityRuntimeForTests, D as useAgentActivityRuntime, E as useAgentActivitySnapshot, F as useOptionalAgentActivityRuntime } from './AgentGUI-Bkk2TRS0.js';
3
+ import { A as AgentActivityRuntime } from './AgentGUI-FECh2x1p.js';
4
+ export { a as AgentActivityRuntimeDeleteSessionsBatchInput, b as AgentActivityRuntimeDeleteSessionsBatchResult, c as AgentActivityRuntimeListSessionMessagesInput, d as AgentActivityRuntimePromptContentBlock, e as AgentActivityRuntimeProvider, f as AgentActivityRuntimeProviderProps, g as AgentActivityRuntimeSessionSectionDeletionCandidates, h as AgentActivityRuntimeSessionSectionScopeInput, i as AgentActivityRuntimeSetSessionPinnedInput, j as AgentActivityRuntimeUpdateSessionSettingsInput, k as AgentActivityRuntimeUpdateSessionSettingsResult, l as AgentActivityRuntimeUploadPromptContentInput, m as AgentActivityRuntimeUploadPromptContentResult, n as AgentGUI, o as AgentGUIAccountMenuState, p as AgentGUIAgentsEmptyRenderer, q as AgentGUIComposerAppendRequest, r as AgentGUIComposerContentType, s as AgentGUIComposerFocusMethod, t as AgentGUIEngagementContext, u as AgentGUIEngagementEvent, v as AgentGUIEngagementEventSink, w as AgentGUIProps, x as AgentGUIProviderUnavailableStateContext, y as AgentGUIProviderUnavailableStateRenderer, z as AgentGUISidebarFooterContext, B as AgentGUISidebarFooterRenderer, C as resetAgentActivityRuntimeForTests, D as setAgentActivityRuntimeForTests, E as useAgentActivityRuntime, F as useAgentActivitySnapshot, G as useOptionalAgentActivityRuntime } from './AgentGUI-FECh2x1p.js';
5
+ import { i as AgentHostInputApi } from './agentGuiNodeTypes-BH3lz6gn.js';
6
+ export { a as AgentComposerDraftFile, g as AgentHostApi, h as AgentHostApplyWorkspaceGitPatchInput, j as AgentHostRuntimeApi, k as AgentHostSelectFilesInput, m as AgentProbeProvider, n as AgentProbeSnapshot, o as AgentProviderProbeListInput, p as AgentProviderProbeListResult, s as AgentUsageQuota, t as AgentUsageSnapshot, P as PersistWriteResult, R as ReadWorkspaceAgentReadStateInput, W as WorkspaceAgentReadStateSnapshot, u as WriteWorkspaceAgentReadStateInput } from './agentGuiNodeTypes-BH3lz6gn.js';
5
7
  export { agentGUIAgentIsReady, normalizeAgentGUIAgents, resolveAgentGUISelectedDirectoryAgent } from './agents.js';
6
8
  import { n as AgentGUIProvider, h as AgentGUIAgentTarget, i as AgentGUIAgentTargetBadge } from './types-CnT8rNUI.js';
7
9
  export { A as AgentGUIAgent, a as AgentGUIAgentAvailability, b as AgentGUIAgentAvailabilityAction, c as AgentGUIAgentAvailabilityStatus, d as AgentGUIAgentDirectoryPort, e as AgentGUIAgentDirectorySnapshot, f as AgentGUIAgentDirectoryStatus, g as AgentGUIAgentOwner, j as AgentGUIAgentTargetRef, k as AgentGUIAllAgentsPresentation, l as AgentGUIHomeSuggestionId, o as AgentGUIProviderRailAllPresentation, p as AgentGUIProviderRailMode, q as AgentGUIProviderReadinessGate, r as AgentGUIProviderReadinessGateAction, s as AgentGUIProviderReadinessGateStatus } from './types-CnT8rNUI.js';
8
10
  export { AgentGuiI18nProvider, agentGuiI18nModule, agentGuiI18nResources } from './i18n/index.js';
9
11
  export { agentGuiDockIconUrl, agentGuiDockIconUrls } from './dock-icons.js';
10
- import { h as AgentHostInputApi } from './agentGuiNodeTypes-DAsluxjv.js';
11
- export { f as AgentHostApi, g as AgentHostApplyWorkspaceGitPatchInput, i as AgentHostRuntimeApi, j as AgentHostSelectFilesInput, l as AgentProbeProvider, m as AgentProbeSnapshot, n as AgentProviderProbeListInput, o as AgentProviderProbeListResult, r as AgentUsageQuota, s as AgentUsageSnapshot, P as PersistWriteResult, R as ReadWorkspaceAgentReadStateInput, W as WorkspaceAgentReadStateSnapshot, t as WriteWorkspaceAgentReadStateInput } from './agentGuiNodeTypes-DAsluxjv.js';
12
12
  export { AgentActivityAdapter, AgentActivityMessage, AgentActivityNeedsAttentionItem, AgentActivitySnapshot, selectNeedsAttentionCount, selectNeedsAttentionItems } from '@tutti-os/agent-activity-core';
13
13
  export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AgentContextMentionProvider, AgentContextMentionProviderId } from './context-mention-provider.js';
14
14
  export { preloadAgentMentionBrowse } from './mention-search.js';
@@ -20,12 +20,13 @@ import '@tutti-os/workspace-file-reference/contracts';
20
20
  import './agentFileMentionContracts-58IjMU-u.js';
21
21
  import '@tutti-os/workspace-file-manager/services';
22
22
  import '@tutti-os/workspace-file-reference/core';
23
- import './agentConversationVM-C335TR6S.js';
23
+ import './agentConversationVM-BzHZhwFP.js';
24
24
  import '@tutti-os/workspace-issue-manager/core';
25
- import './workspaceAgentActivityListTypes-C7gPWYiA.js';
25
+ import './workspaceAgentActivityListTypes-DZfS_HgG.js';
26
26
  import '@tutti-os/workspace-user-project/i18n';
27
27
  import '@tutti-os/workspace-user-project/ui';
28
28
  import '@tutti-os/workspace-user-project/contracts';
29
+ import '@tutti-os/workspace-file-reference/react';
29
30
  import '@tutti-os/ui-rich-text/types';
30
31
  import '@tutti-os/workspace-external-core/contracts';
31
32
  import '@tutti-os/ui-rich-text/at-panel';
@@ -59,7 +60,7 @@ declare function resolveAgentGUIAgentTarget(input: {
59
60
  }): AgentGUIAgentTarget | null;
60
61
 
61
62
  declare const AGENT_GUI_DETAIL_MIN_WIDTH_PX = 220;
62
- declare const AGENT_GUI_STANDALONE_AUTO_COLLAPSE_WIDTH_PX = 720;
63
+ declare const AGENT_GUI_STANDALONE_AUTO_COLLAPSE_WIDTH_PX: number;
63
64
  declare const AGENT_GUI_EXPANDED_TARGET_WIDTH_PX = 800;
64
65
  interface AgentGUIExpandedWindowFrameInput {
65
66
  position: {
package/dist/index.js CHANGED
@@ -7,22 +7,22 @@ import {
7
7
  localAgentGUIAgentTargetId,
8
8
  normalizeAgentGUIAgentTargets,
9
9
  resolveAgentGUIAgentTarget
10
- } from "./chunk-PLCHNOXL.js";
10
+ } from "./chunk-VQOPBBBI.js";
11
11
  import {
12
12
  AGENT_GUI_DETAIL_MIN_WIDTH_PX,
13
13
  AGENT_GUI_EXPANDED_TARGET_WIDTH_PX,
14
14
  AGENT_GUI_STANDALONE_AUTO_COLLAPSE_WIDTH_PX,
15
15
  resolveAgentGUIExpandedWindowFrame,
16
16
  shouldAutoCollapseAgentGUIConversationRail
17
- } from "./chunk-MRRICFWA.js";
18
- import "./chunk-QWGJ5TEG.js";
19
- import "./chunk-4ROALW3K.js";
20
- import "./chunk-IYEXLOUE.js";
17
+ } from "./chunk-D7HMQLBO.js";
18
+ import "./chunk-KAV2WHTG.js";
19
+ import "./chunk-4YVKAPKW.js";
20
+ import "./chunk-QY22OBJS.js";
21
21
  import "./chunk-L3GMMGRS.js";
22
22
  import "./chunk-UHBCM6RO.js";
23
- import "./chunk-7M77BK6K.js";
23
+ import "./chunk-ZPKPIHMZ.js";
24
24
  import "./chunk-7BXWPI4F.js";
25
- import "./chunk-J7ZYAUPC.js";
25
+ import "./chunk-FAE7CXZO.js";
26
26
  import {
27
27
  agentGUIAgentIsReady,
28
28
  normalizeAgentGUIAgents,
@@ -38,21 +38,23 @@ import {
38
38
  } from "./chunk-4YG7YK7S.js";
39
39
  import {
40
40
  preloadAgentMentionBrowse
41
- } from "./chunk-3NOJFKDV.js";
42
- import "./chunk-63BE6RGM.js";
43
- import "./chunk-CPUEPDF7.js";
44
- import "./chunk-Y35GDLP2.js";
41
+ } from "./chunk-EUW6VPIK.js";
42
+ import "./chunk-4YCCATI4.js";
43
+ import "./chunk-GCW57WYQ.js";
44
+ import "./chunk-F5UR6EJG.js";
45
45
  import "./chunk-LUGELG5V.js";
46
46
  import {
47
47
  AGENT_CONTEXT_MENTION_PROVIDER_IDS
48
48
  } from "./chunk-JM24HADP.js";
49
49
  import {
50
50
  dispatchAgentPlanPromptAction,
51
- selectAgentPlanPromptTurn,
51
+ selectAgentPlanPromptTurn
52
+ } from "./chunk-TDVYZEUI.js";
53
+ import {
52
54
  useEngineSelector
53
- } from "./chunk-SPZJCTBV.js";
54
- import "./chunk-T6PEJFRP.js";
55
- import "./chunk-OTRZBTFQ.js";
55
+ } from "./chunk-2RQM7PJN.js";
56
+ import "./chunk-MJOQP2ED.js";
57
+ import "./chunk-DWUVRWXD.js";
56
58
  import "./chunk-YMXYBG7U.js";
57
59
  import {
58
60
  AgentActivityHostProvider,
@@ -62,17 +64,16 @@ import {
62
64
  useAgentActivityRuntime,
63
65
  useAgentActivitySnapshot,
64
66
  useOptionalAgentActivityRuntime
65
- } from "./chunk-MASXZENX.js";
66
- import "./chunk-Y5M6Q6WX.js";
67
+ } from "./chunk-UESYITH6.js";
67
68
  import "./chunk-PJP5BUU6.js";
68
69
  import "./chunk-H6IQ63DQ.js";
69
- import "./chunk-GCBDIQDX.js";
70
+ import "./chunk-MIJXEELH.js";
70
71
  import {
71
72
  AgentGuiI18nProvider,
72
73
  agentGuiI18nModule,
73
74
  agentGuiI18nResources
74
- } from "./chunk-RHTZAODZ.js";
75
- import "./chunk-FSKGEGGX.js";
75
+ } from "./chunk-E5AD46HP.js";
76
+ import "./chunk-4E3QCW6L.js";
76
77
  import {
77
78
  getAgentCustomMentionKind,
78
79
  registerAgentCustomMentionKind,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../index.ts"],"sourcesContent":["export {\n getAgentCustomMentionKind,\n registerAgentCustomMentionKind,\n resetAgentCustomMentionKindsForTests,\n type AgentCustomMentionChipContext,\n type AgentCustomMentionIdentity,\n type AgentCustomMentionKindDefinition,\n type AgentCustomMentionPresentation\n} from \"./shared/agentCustomMentionKinds\";\nexport {\n AGENT_PASTED_TEXT_BLOCK_KIND,\n AGENT_PASTED_TEXT_MENTION_KIND\n} from \"./shared/pastedTextKinds\";\nexport { AgentGUI } from \"./AgentGUI\";\nexport type { AgentGUIProps } from \"./AgentGUI\";\nexport type { AgentGUIAccountMenuState } from \"./agent-gui/agentGuiNode/accountMenuState\";\nexport type {\n AgentGUIComposerContentType,\n AgentGUIComposerFocusMethod,\n AgentGUIEngagementContext,\n AgentGUIEngagementEvent,\n AgentGUIEngagementEventSink\n} from \"./agent-gui/agentGuiNode/engagement/agentGUIEngagement.types\";\nexport {\n agentGUIAgentIsReady,\n normalizeAgentGUIAgents,\n resolveAgentGUISelectedDirectoryAgent\n} from \"./agents\";\nexport {\n agentGUIDefaultTargetProviders,\n createLocalAgentGUIAgentTarget,\n createLocalAgentGUIAgentTargets,\n createSharedAgentGUIAgentTarget,\n localAgentGUIAgentTargetId,\n normalizeAgentGUIAgentTargets,\n resolveAgentGUIAgentTarget\n} from \"./agentTargets\";\nexport type {\n AgentGUIAgent,\n AgentGUIAgentDirectoryPort,\n AgentGUIAgentDirectorySnapshot,\n AgentGUIAgentDirectoryStatus,\n AgentGUIAgentAvailability,\n AgentGUIAgentAvailabilityAction,\n AgentGUIAgentAvailabilityStatus,\n AgentGUIAgentOwner,\n AgentGUIHomeSuggestionId,\n AgentGUIAllAgentsPresentation,\n AgentGUIProvider,\n AgentGUIProviderRailAllPresentation,\n AgentGUIProviderRailMode,\n AgentGUIProviderReadinessGate,\n AgentGUIProviderReadinessGateAction,\n AgentGUIProviderReadinessGateStatus,\n AgentGUIAgentTarget,\n AgentGUIAgentTargetBadge,\n AgentGUIAgentTargetRef\n} from \"./types\";\nexport {\n AgentGuiI18nProvider,\n agentGuiI18nModule,\n agentGuiI18nResources\n} from \"./i18n/index\";\nexport type { AgentGuiI18nLocale } from \"./i18n/index\";\nexport { agentGuiDockIconUrl, agentGuiDockIconUrls } from \"./dockIcons\";\nexport {\n AGENT_GUI_DETAIL_MIN_WIDTH_PX,\n AGENT_GUI_EXPANDED_TARGET_WIDTH_PX,\n AGENT_GUI_STANDALONE_AUTO_COLLAPSE_WIDTH_PX,\n resolveAgentGUIExpandedWindowFrame,\n shouldAutoCollapseAgentGUIConversationRail\n} from \"./agent-gui/agentGuiNode/model/agentGuiRailLayout\";\nexport type {\n AgentGUIAgentsEmptyRenderer,\n AgentGUIProviderUnavailableStateContext,\n AgentGUIProviderUnavailableStateRenderer,\n AgentGUISidebarFooterContext,\n AgentGUISidebarFooterRenderer\n} from \"./agent-gui/agentGuiNode/AgentGUINodeView\";\nexport {\n AGENT_CONTEXT_MENTION_PROVIDER_IDS,\n type AgentContextMentionProviderId,\n type AgentContextMentionProvider\n} from \"./agent-gui/agentGuiNode/agentContextMentionProvider\";\nexport { preloadAgentMentionBrowse } from \"./agent-gui/agentGuiNode/AgentMentionSearchController\";\nexport { AgentActivityHostProvider } from \"./agentActivityHost\";\nexport type { AgentActivityHostProviderProps } from \"./agentActivityHost\";\nexport { useEngineSelector } from \"./shared/engine/useEngineSelector\";\nexport type { EngineStateStore } from \"./shared/engine/useEngineSelector\";\nexport {\n dispatchAgentPlanPromptAction,\n selectAgentPlanPromptTurn\n} from \"./shared/agentConversation/agentPlanPromptDispatch\";\nexport type { AgentPlanPromptAction } from \"./shared/agentConversation/agentPlanPromptDispatch\";\nexport {\n AgentActivityRuntimeProvider,\n resetAgentActivityRuntimeForTests,\n setAgentActivityRuntimeForTests,\n useAgentActivitySnapshot,\n useAgentActivityRuntime,\n useOptionalAgentActivityRuntime\n} from \"./agentActivityRuntime\";\nexport type {\n AgentActivityRuntime,\n AgentActivityRuntimeListSessionMessagesInput,\n AgentActivityRuntimeProviderProps,\n AgentActivityRuntimePromptContentBlock,\n AgentActivityRuntimeDeleteSessionsBatchInput,\n AgentActivityRuntimeDeleteSessionsBatchResult,\n AgentActivityRuntimeSessionSectionDeletionCandidates,\n AgentActivityRuntimeSessionSectionScopeInput,\n AgentActivityRuntimeSetSessionPinnedInput,\n AgentActivityRuntimeUploadPromptContentInput,\n AgentActivityRuntimeUploadPromptContentResult,\n AgentActivityRuntimeUpdateSessionSettingsInput,\n AgentActivityRuntimeUpdateSessionSettingsResult\n} from \"./agentActivityRuntime\";\nexport type {\n AgentHostApi,\n AgentHostApplyWorkspaceGitPatchInput,\n AgentHostInputApi,\n AgentHostSelectFilesInput,\n AgentHostRuntimeApi,\n AgentProviderProbeListInput,\n AgentProviderProbeListResult\n} from \"./host/agentHostApi\";\nexport type {\n AgentProbeProvider,\n AgentProbeSnapshot,\n PersistWriteResult,\n ReadWorkspaceAgentReadStateInput,\n AgentUsageQuota,\n AgentUsageSnapshot,\n WorkspaceAgentReadStateSnapshot,\n WriteWorkspaceAgentReadStateInput\n} from \"./shared/contracts/dto\";\nexport {\n selectNeedsAttentionCount,\n selectNeedsAttentionItems\n} from \"@tutti-os/agent-activity-core\";\nexport type {\n AgentActivityAdapter,\n AgentActivityMessage,\n AgentActivityNeedsAttentionItem,\n AgentActivitySnapshot\n} from \"@tutti-os/agent-activity-core\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwIA;AAAA,EACE;AAAA,EACA;AAAA,OACK;","names":[]}
1
+ {"version":3,"sources":["../index.ts"],"sourcesContent":["export {\n getAgentCustomMentionKind,\n registerAgentCustomMentionKind,\n resetAgentCustomMentionKindsForTests,\n type AgentCustomMentionChipContext,\n type AgentCustomMentionIdentity,\n type AgentCustomMentionKindDefinition,\n type AgentCustomMentionPresentation\n} from \"./shared/agentCustomMentionKinds\";\nexport {\n AGENT_PASTED_TEXT_BLOCK_KIND,\n AGENT_PASTED_TEXT_MENTION_KIND\n} from \"./shared/pastedTextKinds\";\nexport { AgentGUI } from \"./AgentGUI\";\nexport type { AgentGUIProps } from \"./AgentGUI\";\nexport type { AgentGUIComposerAppendRequest } from \"./agent-gui/agentGuiNode/controller/useAgentGUIComposerAppendRequest\";\nexport type { AgentComposerDraftFile } from \"./agent-gui/agentGuiNode/model/agentGuiNodeTypes\";\nexport type { AgentGUIAccountMenuState } from \"./agent-gui/agentGuiNode/accountMenuState\";\nexport type {\n AgentGUIComposerContentType,\n AgentGUIComposerFocusMethod,\n AgentGUIEngagementContext,\n AgentGUIEngagementEvent,\n AgentGUIEngagementEventSink\n} from \"./agent-gui/agentGuiNode/engagement/agentGUIEngagement.types\";\nexport {\n agentGUIAgentIsReady,\n normalizeAgentGUIAgents,\n resolveAgentGUISelectedDirectoryAgent\n} from \"./agents\";\nexport {\n agentGUIDefaultTargetProviders,\n createLocalAgentGUIAgentTarget,\n createLocalAgentGUIAgentTargets,\n createSharedAgentGUIAgentTarget,\n localAgentGUIAgentTargetId,\n normalizeAgentGUIAgentTargets,\n resolveAgentGUIAgentTarget\n} from \"./agentTargets\";\nexport type {\n AgentGUIAgent,\n AgentGUIAgentDirectoryPort,\n AgentGUIAgentDirectorySnapshot,\n AgentGUIAgentDirectoryStatus,\n AgentGUIAgentAvailability,\n AgentGUIAgentAvailabilityAction,\n AgentGUIAgentAvailabilityStatus,\n AgentGUIAgentOwner,\n AgentGUIHomeSuggestionId,\n AgentGUIAllAgentsPresentation,\n AgentGUIProvider,\n AgentGUIProviderRailAllPresentation,\n AgentGUIProviderRailMode,\n AgentGUIProviderReadinessGate,\n AgentGUIProviderReadinessGateAction,\n AgentGUIProviderReadinessGateStatus,\n AgentGUIAgentTarget,\n AgentGUIAgentTargetBadge,\n AgentGUIAgentTargetRef\n} from \"./types\";\nexport {\n AgentGuiI18nProvider,\n agentGuiI18nModule,\n agentGuiI18nResources\n} from \"./i18n/index\";\nexport type { AgentGuiI18nLocale } from \"./i18n/index\";\nexport { agentGuiDockIconUrl, agentGuiDockIconUrls } from \"./dockIcons\";\nexport {\n AGENT_GUI_DETAIL_MIN_WIDTH_PX,\n AGENT_GUI_EXPANDED_TARGET_WIDTH_PX,\n AGENT_GUI_STANDALONE_AUTO_COLLAPSE_WIDTH_PX,\n resolveAgentGUIExpandedWindowFrame,\n shouldAutoCollapseAgentGUIConversationRail\n} from \"./agent-gui/agentGuiNode/model/agentGuiRailLayout\";\nexport type {\n AgentGUIAgentsEmptyRenderer,\n AgentGUIProviderUnavailableStateContext,\n AgentGUIProviderUnavailableStateRenderer,\n AgentGUISidebarFooterContext,\n AgentGUISidebarFooterRenderer\n} from \"./agent-gui/agentGuiNode/AgentGUINodeView\";\nexport {\n AGENT_CONTEXT_MENTION_PROVIDER_IDS,\n type AgentContextMentionProviderId,\n type AgentContextMentionProvider\n} from \"./agent-gui/agentGuiNode/agentContextMentionProvider\";\nexport { preloadAgentMentionBrowse } from \"./agent-gui/agentGuiNode/AgentMentionSearchController\";\nexport { AgentActivityHostProvider } from \"./agentActivityHost\";\nexport type { AgentActivityHostProviderProps } from \"./agentActivityHost\";\nexport { useEngineSelector } from \"./shared/engine/useEngineSelector\";\nexport type { EngineStateStore } from \"./shared/engine/useEngineSelector\";\nexport {\n dispatchAgentPlanPromptAction,\n selectAgentPlanPromptTurn\n} from \"./shared/agentConversation/agentPlanPromptDispatch\";\nexport type { AgentPlanPromptAction } from \"./shared/agentConversation/agentPlanPromptDispatch\";\nexport {\n AgentActivityRuntimeProvider,\n resetAgentActivityRuntimeForTests,\n setAgentActivityRuntimeForTests,\n useAgentActivitySnapshot,\n useAgentActivityRuntime,\n useOptionalAgentActivityRuntime\n} from \"./agentActivityRuntime\";\nexport type {\n AgentActivityRuntime,\n AgentActivityRuntimeListSessionMessagesInput,\n AgentActivityRuntimeProviderProps,\n AgentActivityRuntimePromptContentBlock,\n AgentActivityRuntimeDeleteSessionsBatchInput,\n AgentActivityRuntimeDeleteSessionsBatchResult,\n AgentActivityRuntimeSessionSectionDeletionCandidates,\n AgentActivityRuntimeSessionSectionScopeInput,\n AgentActivityRuntimeSetSessionPinnedInput,\n AgentActivityRuntimeUploadPromptContentInput,\n AgentActivityRuntimeUploadPromptContentResult,\n AgentActivityRuntimeUpdateSessionSettingsInput,\n AgentActivityRuntimeUpdateSessionSettingsResult\n} from \"./agentActivityRuntime\";\nexport type {\n AgentHostApi,\n AgentHostApplyWorkspaceGitPatchInput,\n AgentHostInputApi,\n AgentHostSelectFilesInput,\n AgentHostRuntimeApi,\n AgentProviderProbeListInput,\n AgentProviderProbeListResult\n} from \"./host/agentHostApi\";\nexport type {\n AgentProbeProvider,\n AgentProbeSnapshot,\n PersistWriteResult,\n ReadWorkspaceAgentReadStateInput,\n AgentUsageQuota,\n AgentUsageSnapshot,\n WorkspaceAgentReadStateSnapshot,\n WriteWorkspaceAgentReadStateInput\n} from \"./shared/contracts/dto\";\nexport {\n selectNeedsAttentionCount,\n selectNeedsAttentionItems\n} from \"@tutti-os/agent-activity-core\";\nexport type {\n AgentActivityAdapter,\n AgentActivityMessage,\n AgentActivityNeedsAttentionItem,\n AgentActivitySnapshot\n} from \"@tutti-os/agent-activity-core\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0IA;AAAA,EACE;AAAA,EACA;AAAA,OACK;","names":[]}
@@ -1,6 +1,7 @@
1
1
  import { A as AgentContextMentionItem } from './agentFileMentionContracts-58IjMU-u.js';
2
2
  import { AgentContextMentionProvider } from './context-mention-provider.js';
3
3
  import { MentionPaletteGroup, MentionPaletteState } from '@tutti-os/ui-rich-text/at-panel';
4
+ import { ReferenceProvenanceFilter } from '@tutti-os/workspace-file-reference/contracts';
4
5
  import '@tutti-os/ui-rich-text/types';
5
6
  import '@tutti-os/workspace-external-core/contracts';
6
7
 
@@ -71,6 +72,13 @@ type AgentMentionBrowseLoadReason = "open" | "preload";
71
72
  declare const MAX_BROWSE_CACHE_ENTRIES = 64;
72
73
  declare function resetAgentMentionSearchBrowseCacheForTests(): void;
73
74
 
75
+ interface AgentGuiScheduledTask {
76
+ cancel(): void;
77
+ }
78
+ interface AgentGuiScheduler {
79
+ schedule(delayMs: number, task: () => void): AgentGuiScheduledTask;
80
+ }
81
+
74
82
  declare class AgentMentionSearchControllerBase {
75
83
  protected readonly contextMentionProviders: ReadonlyMap<string, AgentContextMentionProvider>;
76
84
  protected readonly debounceMs: number;
@@ -84,7 +92,8 @@ declare class AgentMentionSearchControllerBase {
84
92
  protected readonly listeners: Set<AgentMentionSearchListener>;
85
93
  protected readonly expandedCounts: Partial<Record<AgentMentionGroupId, number>>;
86
94
  protected readonly totalCounts: AgentMentionTotalCounts;
87
- protected timer: ReturnType<typeof setTimeout> | null;
95
+ protected readonly scheduler: AgentGuiScheduler;
96
+ protected timer: AgentGuiScheduledTask | null;
88
97
  protected preloadCancel: (() => void) | null;
89
98
  protected pendingPreloadKey: string | null;
90
99
  protected requestId: number;
@@ -94,6 +103,7 @@ declare class AgentMentionSearchControllerBase {
94
103
  protected currentFilter: AgentMentionFilterId;
95
104
  protected currentQuery: string;
96
105
  protected currentSessionCwd: string;
106
+ protected currentProvenanceFilter: ReferenceProvenanceFilter | null;
97
107
  protected currentFileSearchLimit: number;
98
108
  protected currentIssueSearchLimit: number;
99
109
  protected agentGeneratedBrowsePath: string | null;
@@ -120,7 +130,7 @@ declare class AgentMentionSearchControllerBase {
120
130
  currentUserId: string;
121
131
  filter: AgentMentionFilterId;
122
132
  sessionCwd: string;
123
- }): Promise<AgentMentionBrowseFetchResult>;
133
+ }, provenanceFilter?: ReferenceProvenanceFilter | null): Promise<AgentMentionBrowseFetchResult>;
124
134
  protected applyBrowseFetchResult(result: AgentMentionBrowseFetchResult): void;
125
135
  protected logBrowseCacheState(input: {
126
136
  cacheKey: string;
@@ -142,6 +152,7 @@ declare class AgentMentionSearchControllerBase {
142
152
  query: string;
143
153
  limit?: number;
144
154
  sessionCwd?: string;
155
+ provenanceFilter: ReferenceProvenanceFilter | null;
145
156
  }): Promise<AgentContextMentionItem[]>;
146
157
  protected logSearchDiagnostic(input: {
147
158
  error?: unknown;
@@ -170,7 +181,7 @@ declare class AgentMentionSearchControllerBase {
170
181
  currentUserId: string;
171
182
  filter: AgentMentionFilterId;
172
183
  sessionCwd: string;
173
- }): string;
184
+ }, provenanceFilter?: ReferenceProvenanceFilter | null): string;
174
185
  protected readBrowseCache(cacheKey: string): {
175
186
  entry: AgentMentionBrowseCacheEntry | null;
176
187
  isFresh: boolean;
@@ -180,7 +191,7 @@ declare class AgentMentionSearchControllerBase {
180
191
  currentUserId: string;
181
192
  filter: AgentMentionFilterId;
182
193
  sessionCwd: string;
183
- }, cacheKey: string, reason: AgentMentionBrowseLoadReason): Promise<AgentMentionBrowseFetchResult>;
194
+ }, cacheKey: string, reason: AgentMentionBrowseLoadReason, provenanceFilter?: ReferenceProvenanceFilter | null): Promise<AgentMentionBrowseFetchResult>;
184
195
  protected fetchFilterResult(input: {
185
196
  workspaceId: string;
186
197
  currentUserId: string;
@@ -188,10 +199,11 @@ declare class AgentMentionSearchControllerBase {
188
199
  filter: AgentMentionFilterId;
189
200
  sessionCwd: string;
190
201
  includeAgentGeneratedFiles: boolean;
191
- }): Promise<AgentMentionBrowseFetchResult>;
202
+ }, provenanceFilter?: ReferenceProvenanceFilter | null): Promise<AgentMentionBrowseFetchResult>;
192
203
  }
193
204
 
194
205
  declare class AgentMentionSearchController extends AgentMentionSearchControllerBase {
206
+ setProvenanceFilter(filter: ReferenceProvenanceFilter | null): void;
195
207
  subscribe(listener: AgentMentionSearchListener): () => void;
196
208
  updateQuery(input: {
197
209
  workspaceId: string;
@@ -207,7 +219,7 @@ declare class AgentMentionSearchController extends AgentMentionSearchControllerB
207
219
  filter?: AgentMentionFilterId;
208
220
  }): void;
209
221
  private runBrowsePreload;
210
- private cancelPendingPreload;
222
+ protected cancelPendingPreload(): void;
211
223
  enterCategory(category: AgentMentionFilterId): void;
212
224
  selectAgentGeneratedMentionItem(item: AgentContextMentionItem): boolean;
213
225
  exitAgentGeneratedBrowse(): boolean;
@@ -3,20 +3,19 @@ import {
3
3
  MAX_BROWSE_CACHE_ENTRIES,
4
4
  preloadAgentMentionBrowse,
5
5
  resetAgentMentionSearchBrowseCacheForTests
6
- } from "./chunk-3NOJFKDV.js";
7
- import "./chunk-63BE6RGM.js";
8
- import "./chunk-CPUEPDF7.js";
9
- import "./chunk-Y35GDLP2.js";
6
+ } from "./chunk-EUW6VPIK.js";
7
+ import "./chunk-4YCCATI4.js";
8
+ import "./chunk-GCW57WYQ.js";
9
+ import "./chunk-F5UR6EJG.js";
10
10
  import "./chunk-LUGELG5V.js";
11
11
  import "./chunk-JM24HADP.js";
12
12
  import "./chunk-YMXYBG7U.js";
13
- import "./chunk-MASXZENX.js";
14
- import "./chunk-Y5M6Q6WX.js";
13
+ import "./chunk-UESYITH6.js";
15
14
  import "./chunk-PJP5BUU6.js";
16
15
  import "./chunk-H6IQ63DQ.js";
17
- import "./chunk-GCBDIQDX.js";
18
- import "./chunk-RHTZAODZ.js";
19
- import "./chunk-FSKGEGGX.js";
16
+ import "./chunk-MIJXEELH.js";
17
+ import "./chunk-E5AD46HP.js";
18
+ import "./chunk-4E3QCW6L.js";
20
19
  import "./chunk-5X7YDOC6.js";
21
20
  import "./chunk-KJQERFKX.js";
22
21
  import "./chunk-UGVI47X6.js";