@tutti-os/agent-gui 0.0.98 → 0.0.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AgentGUI-Bkk2TRS0.d.ts → AgentGUI-DgBjACOL.d.ts} +12 -3
- package/dist/agent-conversation/index.d.ts +4 -4
- package/dist/agent-conversation/index.js +8 -9
- package/dist/agent-conversation/index.js.map +1 -1
- package/dist/agent-gui.d.ts +5 -4
- package/dist/agent-gui.js +19 -19
- package/dist/agent-message-center/index.d.ts +4 -6
- package/dist/agent-message-center/index.js +13 -52
- package/dist/agent-message-center/index.js.map +1 -1
- package/dist/agent-title-text.js +1 -1
- package/dist/{agentConversationVM-C335TR6S.d.ts → agentConversationVM-BzHZhwFP.d.ts} +1 -1
- package/dist/{agentGuiNodeTypes-DAsluxjv.d.ts → agentGuiNodeTypes-C-wBSM-Y.d.ts} +19 -4
- package/dist/app/renderer/agentactivity.css +141 -36
- package/dist/chunk-2RQM7PJN.js +16 -0
- package/dist/chunk-2RQM7PJN.js.map +1 -0
- package/dist/{chunk-FSKGEGGX.js → chunk-4E3QCW6L.js} +17 -3
- package/dist/chunk-4E3QCW6L.js.map +1 -0
- package/dist/{chunk-63BE6RGM.js → chunk-4YCCATI4.js} +14 -374
- package/dist/chunk-4YCCATI4.js.map +1 -0
- package/dist/{chunk-IYEXLOUE.js → chunk-4YVKAPKW.js} +5 -8
- package/dist/chunk-4YVKAPKW.js.map +1 -0
- package/dist/{chunk-7O4D4KOE.js → chunk-BQJOYTW2.js} +939 -751
- package/dist/chunk-BQJOYTW2.js.map +1 -0
- package/dist/{chunk-MRRICFWA.js → chunk-D7HMQLBO.js} +159 -55
- package/dist/chunk-D7HMQLBO.js.map +1 -0
- package/dist/{chunk-OTRZBTFQ.js → chunk-DWUVRWXD.js} +2 -2
- package/dist/{chunk-RHTZAODZ.js → chunk-E5AD46HP.js} +2 -2
- package/dist/{chunk-3NOJFKDV.js → chunk-EUW6VPIK.js} +414 -49
- package/dist/chunk-EUW6VPIK.js.map +1 -0
- package/dist/{chunk-Y35GDLP2.js → chunk-F5UR6EJG.js} +2 -17
- package/dist/chunk-F5UR6EJG.js.map +1 -0
- package/dist/{chunk-J7ZYAUPC.js → chunk-FAE7CXZO.js} +8 -6
- package/dist/chunk-FAE7CXZO.js.map +1 -0
- package/dist/{chunk-CPUEPDF7.js → chunk-GCW57WYQ.js} +646 -595
- package/dist/chunk-GCW57WYQ.js.map +1 -0
- package/dist/{chunk-7M77BK6K.js → chunk-JWHPVETQ.js} +154 -147
- package/dist/chunk-JWHPVETQ.js.map +1 -0
- package/dist/{chunk-4ROALW3K.js → chunk-KAV2WHTG.js} +82 -61
- package/dist/chunk-KAV2WHTG.js.map +1 -0
- package/dist/{chunk-T6PEJFRP.js → chunk-MES7BQWI.js} +378 -369
- package/dist/chunk-MES7BQWI.js.map +1 -0
- package/dist/chunk-MIJXEELH.js +96 -0
- package/dist/chunk-MIJXEELH.js.map +1 -0
- package/dist/{chunk-QWGJ5TEG.js → chunk-QY22OBJS.js} +28 -30
- package/dist/chunk-QY22OBJS.js.map +1 -0
- package/dist/{chunk-MASXZENX.js → chunk-UESYITH6.js} +21 -2
- package/dist/chunk-UESYITH6.js.map +1 -0
- package/dist/{chunk-SPZJCTBV.js → chunk-XFRY2WWB.js} +348 -322
- package/dist/chunk-XFRY2WWB.js.map +1 -0
- package/dist/context-mention-palette/index.d.ts +5 -1
- package/dist/context-mention-palette/index.js +10 -11
- package/dist/contribution-CTVBPN0R.d.ts +119 -0
- package/dist/i18n/index.d.ts +16 -2
- package/dist/i18n/index.js +2 -2
- package/dist/index.d.ts +8 -7
- package/dist/index.js +21 -20
- package/dist/index.js.map +1 -1
- package/dist/mention-search.d.ts +18 -6
- package/dist/mention-search.js +8 -9
- package/dist/workbench/contribution.d.ts +6 -107
- package/dist/workbench/contribution.js +7 -3
- package/dist/workbench/index.d.ts +6 -4
- package/dist/workbench/index.js +27 -21
- package/dist/workbench/launch.d.ts +13 -5
- package/dist/workbench/launch.js +1 -1
- package/dist/workbench/sessionTitle.d.ts +5 -7
- package/dist/workbench/sessionTitle.js +3 -4
- package/dist/workbench/state.js +3 -1
- package/dist/workspace-agent-generated-files.d.ts +8 -13
- package/dist/workspace-agent-generated-files.js +6 -21
- package/dist/{workspaceAgentActivityListTypes-C7gPWYiA.d.ts → workspaceAgentActivityListTypes-DZfS_HgG.d.ts} +3 -26
- package/package.json +12 -12
- package/dist/chunk-3NOJFKDV.js.map +0 -1
- package/dist/chunk-4ROALW3K.js.map +0 -1
- package/dist/chunk-63BE6RGM.js.map +0 -1
- package/dist/chunk-7M77BK6K.js.map +0 -1
- package/dist/chunk-7O4D4KOE.js.map +0 -1
- package/dist/chunk-CPUEPDF7.js.map +0 -1
- package/dist/chunk-FSKGEGGX.js.map +0 -1
- package/dist/chunk-GAD6Y3BF.js +0 -88
- package/dist/chunk-GAD6Y3BF.js.map +0 -1
- package/dist/chunk-GCBDIQDX.js +0 -22
- package/dist/chunk-GCBDIQDX.js.map +0 -1
- package/dist/chunk-IYEXLOUE.js.map +0 -1
- package/dist/chunk-J7ZYAUPC.js.map +0 -1
- package/dist/chunk-MASXZENX.js.map +0 -1
- package/dist/chunk-MRRICFWA.js.map +0 -1
- package/dist/chunk-QWGJ5TEG.js.map +0 -1
- package/dist/chunk-SPZJCTBV.js.map +0 -1
- package/dist/chunk-T6PEJFRP.js.map +0 -1
- package/dist/chunk-Y35GDLP2.js.map +0 -1
- package/dist/chunk-Y5M6Q6WX.js +0 -25
- package/dist/chunk-Y5M6Q6WX.js.map +0 -1
- /package/dist/{chunk-OTRZBTFQ.js.map → chunk-DWUVRWXD.js.map} +0 -0
- /package/dist/{chunk-RHTZAODZ.js.map → chunk-E5AD46HP.js.map} +0 -0
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":"
|
|
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":[]}
|
package/dist/mention-search.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
|
|
222
|
+
protected cancelPendingPreload(): void;
|
|
211
223
|
enterCategory(category: AgentMentionFilterId): void;
|
|
212
224
|
selectAgentGeneratedMentionItem(item: AgentContextMentionItem): boolean;
|
|
213
225
|
exitAgentGeneratedBrowse(): boolean;
|
package/dist/mention-search.js
CHANGED
|
@@ -3,20 +3,19 @@ import {
|
|
|
3
3
|
MAX_BROWSE_CACHE_ENTRIES,
|
|
4
4
|
preloadAgentMentionBrowse,
|
|
5
5
|
resetAgentMentionSearchBrowseCacheForTests
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
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";
|
|
@@ -1,107 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
declare const agentGuiWorkbenchDefaultUsableWidthRatio = 0.9;
|
|
8
|
-
declare const agentGuiWorkbenchDefaultUsableHeightRatio = 0.9;
|
|
9
|
-
declare const agentGuiWorkbenchCompactVisibleAreaRatio = 0.9;
|
|
10
|
-
declare const agentGuiWorkbenchNewWindowCascadeOffset: {
|
|
11
|
-
x: number;
|
|
12
|
-
y: number;
|
|
13
|
-
};
|
|
14
|
-
declare const agentGuiWorkbenchProviderRailWidthPx = 52;
|
|
15
|
-
declare const agentGuiWorkbenchDefaultCopy: AgentGuiWorkbenchContributionCopy;
|
|
16
|
-
type AgentGuiWorkbenchProviderAvailability = Partial<Record<AgentGuiWorkbenchProvider, boolean | "available" | "ready" | "unavailable" | {
|
|
17
|
-
available?: boolean | null;
|
|
18
|
-
status?: string | null;
|
|
19
|
-
} | null | undefined>>;
|
|
20
|
-
interface BuildAgentGuiDockEntriesInput {
|
|
21
|
-
agentDirectory: AgentGUIAgentDirectoryPort;
|
|
22
|
-
defaultProvider?: AgentGuiWorkbenchProvider | null;
|
|
23
|
-
dockIconUrls?: Partial<Record<AgentGuiWorkbenchProvider, string>>;
|
|
24
|
-
label?: string;
|
|
25
|
-
providerAvailability?: AgentGuiWorkbenchProviderAvailability;
|
|
26
|
-
renderPreview?: CreateAgentGuiWorkbenchContributionInput["renderPreview"];
|
|
27
|
-
resolveDockPopupIdentity?: CreateAgentGuiWorkbenchContributionInput["resolveDockPopupIdentity"];
|
|
28
|
-
resolveDockPopupTitle?: CreateAgentGuiWorkbenchContributionInput["resolveDockPopupTitle"];
|
|
29
|
-
sectionId?: string;
|
|
30
|
-
unifiedDockIconUrl?: string;
|
|
31
|
-
}
|
|
32
|
-
declare function buildAgentGuiDockEntries(input: BuildAgentGuiDockEntriesInput): WorkbenchHostDockEntry[];
|
|
33
|
-
declare function resolveAgentGuiUnifiedDockLaunchPayload(input: Pick<BuildAgentGuiDockEntriesInput, "agentDirectory" | "defaultProvider" | "providerAvailability">): {
|
|
34
|
-
provider: AgentGuiWorkbenchProvider;
|
|
35
|
-
agentTargetId?: string;
|
|
36
|
-
};
|
|
37
|
-
declare function resolveAgentGuiWorkbenchDefaultLaunchFrame(input: {
|
|
38
|
-
frame: WorkbenchFrame;
|
|
39
|
-
request: Pick<WorkbenchHostLaunchRequest, "layoutConstraints" | "surfaceSize">;
|
|
40
|
-
}): WorkbenchFrame;
|
|
41
|
-
declare function resolveAgentGuiWorkbenchContributionCopy(copy?: AgentGuiWorkbenchContributionCopyOverrides): AgentGuiWorkbenchContributionCopy;
|
|
42
|
-
|
|
43
|
-
declare const AGENT_GUI_WORKBENCH_CONVERSATION_RAIL_TOGGLE_EVENT = "tutti:agent-gui-workbench-conversation-rail-toggle";
|
|
44
|
-
declare const AGENT_GUI_WORKBENCH_NEW_CONVERSATION_EVENT = "tutti:agent-gui-workbench-new-conversation";
|
|
45
|
-
/**
|
|
46
|
-
* Fired when the empty-hero "Import session" suggestion is chosen. The host
|
|
47
|
-
* chrome (which owns the external-agent import wizard state) listens for this
|
|
48
|
-
* and opens the wizard.
|
|
49
|
-
*/
|
|
50
|
-
declare const AGENT_GUI_WORKBENCH_OPEN_EXTERNAL_IMPORT_EVENT = "tutti:agent-gui-workbench-open-external-import";
|
|
51
|
-
interface AgentGuiWorkbenchConversationRailToggleDetail {
|
|
52
|
-
conversationRailCollapsed: boolean;
|
|
53
|
-
instanceId: string;
|
|
54
|
-
}
|
|
55
|
-
interface AgentGuiWorkbenchNewConversationDetail {
|
|
56
|
-
instanceId: string;
|
|
57
|
-
}
|
|
58
|
-
interface AgentGuiWorkbenchConversationIdentity {
|
|
59
|
-
agentTitle?: string | null;
|
|
60
|
-
iconUrl?: string | null;
|
|
61
|
-
title: string | null;
|
|
62
|
-
}
|
|
63
|
-
interface AgentGuiWorkbenchContributionCopy {
|
|
64
|
-
collapseConversationRail: string;
|
|
65
|
-
close: string;
|
|
66
|
-
expandConversationRail: string;
|
|
67
|
-
fallbackAgentLabel: string;
|
|
68
|
-
maximize: string;
|
|
69
|
-
minimize: string;
|
|
70
|
-
newConversation: string;
|
|
71
|
-
nodeTitle: string;
|
|
72
|
-
openDetachedWindow: string;
|
|
73
|
-
restore: string;
|
|
74
|
-
}
|
|
75
|
-
type AgentGuiWorkbenchContributionCopyOverrides = Partial<AgentGuiWorkbenchContributionCopy>;
|
|
76
|
-
interface AgentGuiWorkbenchRenderBodyHelpers {
|
|
77
|
-
agentDirectory: AgentGUIAgentDirectoryPort;
|
|
78
|
-
nodeTypeId: string;
|
|
79
|
-
onStateChange(state: AgentGuiWorkbenchState): void;
|
|
80
|
-
provider: AgentGuiWorkbenchProvider;
|
|
81
|
-
}
|
|
82
|
-
interface CreateAgentGuiWorkbenchContributionInput {
|
|
83
|
-
agentDirectory: AgentGUIAgentDirectoryPort;
|
|
84
|
-
copy?: AgentGuiWorkbenchContributionCopyOverrides;
|
|
85
|
-
defaultProvider?: AgentGuiWorkbenchProvider | null;
|
|
86
|
-
dockIconUrls?: Partial<Record<AgentGuiWorkbenchProvider, string>>;
|
|
87
|
-
dockSectionId?: string;
|
|
88
|
-
frame?: WorkbenchFrame;
|
|
89
|
-
id?: string;
|
|
90
|
-
providerAvailability?: AgentGuiWorkbenchProviderAvailability;
|
|
91
|
-
renderBody(context: WorkbenchHostNodeBodyContext<AgentGuiWorkbenchState | null, unknown>, helpers: AgentGuiWorkbenchRenderBodyHelpers): ReactNode;
|
|
92
|
-
renderPreview?(context: WorkbenchHostNodeBodyContext<AgentGuiWorkbenchState | null, unknown>, helpers: AgentGuiWorkbenchRenderBodyHelpers): ReactNode;
|
|
93
|
-
renderMinimizedPreview(context: WorkbenchHostNodeBodyContext<AgentGuiWorkbenchState | null, unknown>, helpers: AgentGuiWorkbenchRenderBodyHelpers): ReactNode;
|
|
94
|
-
resolveDockPopupTitle?: (state: AgentGuiWorkbenchState | null) => string | null;
|
|
95
|
-
resolveDockPopupIdentity?: (state: AgentGuiWorkbenchState | null) => AgentGuiWorkbenchConversationIdentity | null;
|
|
96
|
-
onOpenDetachedWindow?: (input: {
|
|
97
|
-
agentSessionId?: string | null;
|
|
98
|
-
agentTargetId?: string | null;
|
|
99
|
-
provider: AgentGuiWorkbenchProvider;
|
|
100
|
-
workspaceId: string;
|
|
101
|
-
}) => void | Promise<void>;
|
|
102
|
-
unifiedDockIconUrl?: string;
|
|
103
|
-
workspaceId: string;
|
|
104
|
-
}
|
|
105
|
-
declare function createAgentGuiWorkbenchContribution(input: CreateAgentGuiWorkbenchContributionInput): WorkbenchContribution;
|
|
106
|
-
|
|
107
|
-
export { AGENT_GUI_WORKBENCH_CONVERSATION_RAIL_TOGGLE_EVENT, AGENT_GUI_WORKBENCH_NEW_CONVERSATION_EVENT, AGENT_GUI_WORKBENCH_OPEN_EXTERNAL_IMPORT_EVENT, type AgentGuiWorkbenchContributionCopy, type AgentGuiWorkbenchContributionCopyOverrides, type AgentGuiWorkbenchConversationIdentity, type AgentGuiWorkbenchConversationRailToggleDetail, type AgentGuiWorkbenchNewConversationDetail, type AgentGuiWorkbenchProviderAvailability, type AgentGuiWorkbenchRenderBodyHelpers, type BuildAgentGuiDockEntriesInput, type CreateAgentGuiWorkbenchContributionInput, agentGuiWorkbenchCompactVisibleAreaRatio, agentGuiWorkbenchDefaultCopy, agentGuiWorkbenchDefaultNodeFrame, agentGuiWorkbenchDefaultUsableHeightRatio, agentGuiWorkbenchDefaultUsableWidthRatio, agentGuiWorkbenchNewWindowCascadeOffset, agentGuiWorkbenchProviderRailWidthPx, buildAgentGuiDockEntries, createAgentGuiWorkbenchContribution, resolveAgentGuiUnifiedDockLaunchPayload, resolveAgentGuiWorkbenchContributionCopy, resolveAgentGuiWorkbenchDefaultLaunchFrame };
|
|
1
|
+
import 'react';
|
|
2
|
+
import '@tutti-os/agent-activity-core';
|
|
3
|
+
import '@tutti-os/workbench-surface';
|
|
4
|
+
export { A as AGENT_GUI_WORKBENCH_CONVERSATION_RAIL_TOGGLE_EVENT, a as AGENT_GUI_WORKBENCH_NEW_CONVERSATION_EVENT, b as AGENT_GUI_WORKBENCH_OPEN_EXTERNAL_IMPORT_EVENT, c as AgentGuiWorkbenchContributionCopy, d as AgentGuiWorkbenchContributionCopyOverrides, e as AgentGuiWorkbenchConversationIdentity, f as AgentGuiWorkbenchConversationRailToggleDetail, g as AgentGuiWorkbenchNewConversationDetail, h as AgentGuiWorkbenchProviderAvailability, i as AgentGuiWorkbenchRenderBodyHelpers, B as BuildAgentGuiDockEntriesInput, C as CreateAgentGuiWorkbenchContributionInput, j as agentGuiWorkbenchCompactVisibleAreaRatio, l as agentGuiWorkbenchDefaultCopy, m as agentGuiWorkbenchDefaultNodeFrame, n as agentGuiWorkbenchDefaultUsableHeightRatio, o as agentGuiWorkbenchDefaultUsableWidthRatio, p as agentGuiWorkbenchNewWindowCascadeOffset, q as agentGuiWorkbenchProviderRailWidthPx, r as buildAgentGuiDockEntries, s as createAgentGuiWorkbenchContribution, t as resolveAgentGuiUnifiedDockLaunchPayload, u as resolveAgentGuiWorkbenchContributionCopy, w as resolveAgentGuiWorkbenchDefaultLaunchFrame } from '../contribution-CTVBPN0R.js';
|
|
5
|
+
import './types.js';
|
|
6
|
+
import '../types-CnT8rNUI.js';
|
|
@@ -14,14 +14,18 @@ import {
|
|
|
14
14
|
resolveAgentGuiUnifiedDockLaunchPayload,
|
|
15
15
|
resolveAgentGuiWorkbenchContributionCopy,
|
|
16
16
|
resolveAgentGuiWorkbenchDefaultLaunchFrame
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-D7HMQLBO.js";
|
|
18
|
+
import "../chunk-KAV2WHTG.js";
|
|
19
|
+
import "../chunk-4YVKAPKW.js";
|
|
20
|
+
import "../chunk-QY22OBJS.js";
|
|
20
21
|
import "../chunk-L3GMMGRS.js";
|
|
21
22
|
import "../chunk-UHBCM6RO.js";
|
|
22
23
|
import "../chunk-C35SNDVZ.js";
|
|
23
24
|
import "../chunk-4YG7YK7S.js";
|
|
25
|
+
import "../chunk-2RQM7PJN.js";
|
|
24
26
|
import "../chunk-H6IQ63DQ.js";
|
|
27
|
+
import "../chunk-MIJXEELH.js";
|
|
28
|
+
import "../chunk-4E3QCW6L.js";
|
|
25
29
|
import "../chunk-KJQERFKX.js";
|
|
26
30
|
import "../chunk-UGVI47X6.js";
|
|
27
31
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { AGENT_GUI_WORKBENCH_CONVERSATION_RAIL_TOGGLE_EVENT, AGENT_GUI_WORKBENCH_NEW_CONVERSATION_EVENT, AgentGuiWorkbenchContributionCopy, AgentGuiWorkbenchContributionCopyOverrides, AgentGuiWorkbenchConversationRailToggleDetail, AgentGuiWorkbenchNewConversationDetail, AgentGuiWorkbenchProviderAvailability, AgentGuiWorkbenchRenderBodyHelpers, BuildAgentGuiDockEntriesInput, CreateAgentGuiWorkbenchContributionInput, agentGuiWorkbenchDefaultCopy, agentGuiWorkbenchDefaultNodeFrame, buildAgentGuiDockEntries, createAgentGuiWorkbenchContribution, resolveAgentGuiUnifiedDockLaunchPayload, resolveAgentGuiWorkbenchContributionCopy } from '
|
|
1
|
+
export { A as AGENT_GUI_WORKBENCH_CONVERSATION_RAIL_TOGGLE_EVENT, a as AGENT_GUI_WORKBENCH_NEW_CONVERSATION_EVENT, c as AgentGuiWorkbenchContributionCopy, d as AgentGuiWorkbenchContributionCopyOverrides, e as AgentGuiWorkbenchConversationIdentity, f as AgentGuiWorkbenchConversationRailToggleDetail, g as AgentGuiWorkbenchNewConversationDetail, h as AgentGuiWorkbenchProviderAvailability, i as AgentGuiWorkbenchRenderBodyHelpers, B as BuildAgentGuiDockEntriesInput, C as CreateAgentGuiWorkbenchContributionInput, k as agentGuiWorkbenchConversationIdentitiesEqual, l as agentGuiWorkbenchDefaultCopy, m as agentGuiWorkbenchDefaultNodeFrame, r as buildAgentGuiDockEntries, s as createAgentGuiWorkbenchContribution, t as resolveAgentGuiUnifiedDockLaunchPayload, u as resolveAgentGuiWorkbenchContributionCopy, v as resolveAgentGuiWorkbenchConversationIdentity } from '../contribution-CTVBPN0R.js';
|
|
2
2
|
export { agentGuiWorkbenchComingSoonProviders, agentGuiWorkbenchDefaultDockProviders, agentGuiWorkbenchDockSuppressedProviders, agentGuiWorkbenchProviderLabels, agentGuiWorkbenchProviders, isAgentGuiWorkbenchComingSoonProvider, isAgentGuiWorkbenchDefaultDockProvider, isAgentGuiWorkbenchDockSuppressedProvider, isAgentGuiWorkbenchProvider, normalizeAgentGuiWorkbenchProvider, resolveAgentGuiWorkbenchProviderLabel } from './providerCatalog.js';
|
|
3
|
-
export { AgentGuiWorkbenchLaunchDescriptor, agentGuiWorkbenchDockEntryId, agentGuiWorkbenchDockIdentityFromIdentifier, agentGuiWorkbenchInstanceId, agentGuiWorkbenchProviderFromIdentifier, agentGuiWorkbenchProviderFromLaunchRequest, agentGuiWorkbenchTypeId, agentGuiWorkbenchUnifiedDockEntryId, createAgentGuiWorkbenchDraftLaunchRequest, createAgentGuiWorkbenchInstanceId, createAgentGuiWorkbenchLaunchDescriptor, createAgentGuiWorkbenchSessionLaunchRequest } from './launch.js';
|
|
3
|
+
export { AgentGuiWorkbenchLaunchDescriptor, agentGuiWorkbenchDockEntryId, agentGuiWorkbenchDockIdentityFromIdentifier, agentGuiWorkbenchInstanceId, agentGuiWorkbenchProviderFromIdentifier, agentGuiWorkbenchProviderFromLaunchRequest, agentGuiWorkbenchTypeId, agentGuiWorkbenchUnifiedDockEntryId, createAgentGuiWorkbenchDraftLaunchRequest, createAgentGuiWorkbenchInstanceId, createAgentGuiWorkbenchLaunchDescriptor, createAgentGuiWorkbenchSessionLaunchRequest, resolveAgentGuiWorkbenchLaunchDockEntryId } from './launch.js';
|
|
4
4
|
export { agentGuiWorkbenchProviderFromInstanceId, areAgentGuiWorkbenchNodeStatesEqual, areAgentGuiWorkbenchStatesEqual, createAgentGuiWorkbenchNodeStateSource, createDefaultAgentGuiWorkbenchNodeState, normalizeAgentGuiWorkbenchNodeState, normalizeAgentGuiWorkbenchState, projectAgentGuiWorkbenchState } from './state.js';
|
|
5
5
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
6
6
|
import { WorkbenchDisplayMode, WorkbenchHostNodeHeaderWindowActions } from '@tutti-os/workbench-surface';
|
|
7
7
|
export { AgentGuiWorkbenchSessionTitleResult, ResolveAgentGuiWorkbenchHeaderTitleInput, ResolveAgentGuiWorkbenchSessionTitleInput, resolveAgentGuiWorkbenchHeaderTitle, resolveAgentGuiWorkbenchSessionTitle } from './sessionTitle.js';
|
|
8
8
|
export { AgentGuiWorkbenchComposerOverrides, AgentGuiWorkbenchNodeState, AgentGuiWorkbenchPrefillPromptPayload, AgentGuiWorkbenchProvider, AgentGuiWorkbenchState, AgentGuiWorkbenchWorkspaceState, agentGuiWorkbenchOpenSessionActivationType, agentGuiWorkbenchPrefillPromptActivationType } from './types.js';
|
|
9
|
-
import '../types-CnT8rNUI.js';
|
|
10
9
|
import '@tutti-os/agent-activity-core';
|
|
10
|
+
import '../types-CnT8rNUI.js';
|
|
11
11
|
|
|
12
12
|
interface AgentGuiWorkbenchHeaderCopy {
|
|
13
13
|
collapseConversationRail: string;
|
|
@@ -19,6 +19,7 @@ interface AgentGuiWorkbenchHeaderCopy {
|
|
|
19
19
|
newConversation: string;
|
|
20
20
|
openDetachedWindow?: string;
|
|
21
21
|
restore?: string;
|
|
22
|
+
untitledConversation?: string;
|
|
22
23
|
}
|
|
23
24
|
interface AgentGuiWorkbenchHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
24
25
|
copy: AgentGuiWorkbenchHeaderCopy;
|
|
@@ -30,6 +31,7 @@ interface AgentGuiWorkbenchHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
|
30
31
|
conversationRailWidthPx?: number | null;
|
|
31
32
|
conversationIconUrl?: string | null;
|
|
32
33
|
conversationIconFallbackUrl?: string | null;
|
|
34
|
+
hasConversation?: boolean;
|
|
33
35
|
providerRailWidthPx?: number | null;
|
|
34
36
|
primaryAccessory?: ReactNode;
|
|
35
37
|
secondaryAccessory?: ReactNode;
|
|
@@ -44,6 +46,6 @@ interface AgentGuiWorkbenchHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
|
44
46
|
title?: string;
|
|
45
47
|
windowActions?: Pick<WorkbenchHostNodeHeaderWindowActions, "close" | "minimize" | "toggleDisplayMode">;
|
|
46
48
|
}
|
|
47
|
-
declare function AgentGuiWorkbenchHeader({ className, copy, agentTitle, defaultActions: _defaultActions, displayMode, isConversationRailAutoCollapsed, isConversationRailCollapsed, conversationRailWidthPx, conversationIconUrl, conversationIconFallbackUrl, providerRailWidthPx, primaryAccessory, secondaryAccessory, conversationTitle, nodeId, onCreateConversation, onOpenDetachedWindow, onToggleConversationRail, showAppTitle, showConversationRailToggle, showWindowControls, title: _title, windowActions, ...headerProps }: AgentGuiWorkbenchHeaderProps): ReactNode;
|
|
49
|
+
declare function AgentGuiWorkbenchHeader({ className, copy, agentTitle, defaultActions: _defaultActions, displayMode, isConversationRailAutoCollapsed, isConversationRailCollapsed, conversationRailWidthPx, conversationIconUrl, conversationIconFallbackUrl, hasConversation, providerRailWidthPx, primaryAccessory, secondaryAccessory, conversationTitle, nodeId, onCreateConversation, onOpenDetachedWindow, onToggleConversationRail, showAppTitle, showConversationRailToggle, showWindowControls, title: _title, windowActions, ...headerProps }: AgentGuiWorkbenchHeaderProps): ReactNode;
|
|
48
50
|
|
|
49
51
|
export { AgentGuiWorkbenchHeader, type AgentGuiWorkbenchHeaderCopy, type AgentGuiWorkbenchHeaderProps };
|
package/dist/workbench/index.js
CHANGED
|
@@ -1,18 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveAgentGuiWorkbenchHeaderTitle,
|
|
3
|
-
resolveAgentGuiWorkbenchSessionTitle
|
|
4
|
-
} from "../chunk-GAD6Y3BF.js";
|
|
5
1
|
import {
|
|
6
2
|
AGENT_GUI_WORKBENCH_CONVERSATION_RAIL_TOGGLE_EVENT,
|
|
7
3
|
AGENT_GUI_WORKBENCH_NEW_CONVERSATION_EVENT,
|
|
8
4
|
AgentGuiWorkbenchHeader,
|
|
5
|
+
agentGuiWorkbenchConversationIdentitiesEqual,
|
|
9
6
|
agentGuiWorkbenchDefaultCopy,
|
|
10
7
|
agentGuiWorkbenchDefaultNodeFrame,
|
|
11
8
|
buildAgentGuiDockEntries,
|
|
12
9
|
createAgentGuiWorkbenchContribution,
|
|
13
10
|
resolveAgentGuiUnifiedDockLaunchPayload,
|
|
14
|
-
resolveAgentGuiWorkbenchContributionCopy
|
|
15
|
-
|
|
11
|
+
resolveAgentGuiWorkbenchContributionCopy,
|
|
12
|
+
resolveAgentGuiWorkbenchConversationIdentity
|
|
13
|
+
} from "../chunk-D7HMQLBO.js";
|
|
14
|
+
import {
|
|
15
|
+
resolveAgentGuiWorkbenchHeaderTitle,
|
|
16
|
+
resolveAgentGuiWorkbenchSessionTitle
|
|
17
|
+
} from "../chunk-KAV2WHTG.js";
|
|
18
|
+
import {
|
|
19
|
+
agentGuiWorkbenchProviderFromInstanceId,
|
|
20
|
+
areAgentGuiWorkbenchNodeStatesEqual,
|
|
21
|
+
areAgentGuiWorkbenchStatesEqual,
|
|
22
|
+
createAgentGuiWorkbenchNodeStateSource,
|
|
23
|
+
createDefaultAgentGuiWorkbenchNodeState,
|
|
24
|
+
normalizeAgentGuiWorkbenchNodeState,
|
|
25
|
+
normalizeAgentGuiWorkbenchState,
|
|
26
|
+
projectAgentGuiWorkbenchState
|
|
27
|
+
} from "../chunk-4YVKAPKW.js";
|
|
16
28
|
import {
|
|
17
29
|
agentGuiWorkbenchDockEntryId,
|
|
18
30
|
agentGuiWorkbenchDockIdentityFromIdentifier,
|
|
@@ -24,19 +36,9 @@ import {
|
|
|
24
36
|
createAgentGuiWorkbenchDraftLaunchRequest,
|
|
25
37
|
createAgentGuiWorkbenchInstanceId,
|
|
26
38
|
createAgentGuiWorkbenchLaunchDescriptor,
|
|
27
|
-
createAgentGuiWorkbenchSessionLaunchRequest
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
import {
|
|
31
|
-
agentGuiWorkbenchProviderFromInstanceId,
|
|
32
|
-
areAgentGuiWorkbenchNodeStatesEqual,
|
|
33
|
-
areAgentGuiWorkbenchStatesEqual,
|
|
34
|
-
createAgentGuiWorkbenchNodeStateSource,
|
|
35
|
-
createDefaultAgentGuiWorkbenchNodeState,
|
|
36
|
-
normalizeAgentGuiWorkbenchNodeState,
|
|
37
|
-
normalizeAgentGuiWorkbenchState,
|
|
38
|
-
projectAgentGuiWorkbenchState
|
|
39
|
-
} from "../chunk-IYEXLOUE.js";
|
|
39
|
+
createAgentGuiWorkbenchSessionLaunchRequest,
|
|
40
|
+
resolveAgentGuiWorkbenchLaunchDockEntryId
|
|
41
|
+
} from "../chunk-QY22OBJS.js";
|
|
40
42
|
import {
|
|
41
43
|
agentGuiWorkbenchComingSoonProviders,
|
|
42
44
|
agentGuiWorkbenchDefaultDockProviders,
|
|
@@ -56,9 +58,10 @@ import {
|
|
|
56
58
|
} from "../chunk-UHBCM6RO.js";
|
|
57
59
|
import "../chunk-C35SNDVZ.js";
|
|
58
60
|
import "../chunk-4YG7YK7S.js";
|
|
61
|
+
import "../chunk-2RQM7PJN.js";
|
|
59
62
|
import "../chunk-H6IQ63DQ.js";
|
|
60
|
-
import "../chunk-
|
|
61
|
-
import "../chunk-
|
|
63
|
+
import "../chunk-MIJXEELH.js";
|
|
64
|
+
import "../chunk-4E3QCW6L.js";
|
|
62
65
|
import "../chunk-KJQERFKX.js";
|
|
63
66
|
import "../chunk-UGVI47X6.js";
|
|
64
67
|
export {
|
|
@@ -66,6 +69,7 @@ export {
|
|
|
66
69
|
AGENT_GUI_WORKBENCH_NEW_CONVERSATION_EVENT,
|
|
67
70
|
AgentGuiWorkbenchHeader,
|
|
68
71
|
agentGuiWorkbenchComingSoonProviders,
|
|
72
|
+
agentGuiWorkbenchConversationIdentitiesEqual,
|
|
69
73
|
agentGuiWorkbenchDefaultCopy,
|
|
70
74
|
agentGuiWorkbenchDefaultDockProviders,
|
|
71
75
|
agentGuiWorkbenchDefaultNodeFrame,
|
|
@@ -102,7 +106,9 @@ export {
|
|
|
102
106
|
projectAgentGuiWorkbenchState,
|
|
103
107
|
resolveAgentGuiUnifiedDockLaunchPayload,
|
|
104
108
|
resolveAgentGuiWorkbenchContributionCopy,
|
|
109
|
+
resolveAgentGuiWorkbenchConversationIdentity,
|
|
105
110
|
resolveAgentGuiWorkbenchHeaderTitle,
|
|
111
|
+
resolveAgentGuiWorkbenchLaunchDockEntryId,
|
|
106
112
|
resolveAgentGuiWorkbenchProviderLabel,
|
|
107
113
|
resolveAgentGuiWorkbenchSessionTitle
|
|
108
114
|
};
|
|
@@ -8,7 +8,11 @@ declare const agentGuiWorkbenchTypeId = "agent-gui";
|
|
|
8
8
|
interface AgentGuiWorkbenchDockIdentity {
|
|
9
9
|
kind: "unifiedAggregate";
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated AgentGUI has one canonical Dock entry. Use
|
|
13
|
+
* {@link agentGuiWorkbenchUnifiedDockEntryId} instead.
|
|
14
|
+
*/
|
|
15
|
+
declare function agentGuiWorkbenchDockEntryId(_provider: AgentGuiWorkbenchProvider): string;
|
|
12
16
|
declare function agentGuiWorkbenchUnifiedDockEntryId(): string;
|
|
13
17
|
declare function agentGuiWorkbenchInstanceId(provider: AgentGuiWorkbenchProvider): string;
|
|
14
18
|
declare function createAgentGuiWorkbenchInstanceId(input: {
|
|
@@ -74,13 +78,17 @@ interface AgentGuiWorkbenchLaunchDescriptor {
|
|
|
74
78
|
targetAgentSessionId: string | null;
|
|
75
79
|
}
|
|
76
80
|
declare function createAgentGuiWorkbenchLaunchDescriptor(request: AgentGuiWorkbenchLaunchRequestInput): AgentGuiWorkbenchLaunchDescriptor;
|
|
77
|
-
declare function resolveAgentGuiWorkbenchLaunchDockEntryId(input: {
|
|
78
|
-
provider: AgentGuiWorkbenchProvider;
|
|
79
|
-
requestedDockEntryId?: string | null;
|
|
80
|
-
}): string;
|
|
81
81
|
declare function shouldReuseAgentGuiWorkbenchDockEntryNode(input: {
|
|
82
82
|
dockEntryId: string;
|
|
83
83
|
launchKind: "empty" | "prefill" | "session";
|
|
84
84
|
}): boolean;
|
|
85
|
+
/**
|
|
86
|
+
* @deprecated AgentGUI launch results always use the unified Dock entry. Use
|
|
87
|
+
* {@link agentGuiWorkbenchUnifiedDockEntryId} instead.
|
|
88
|
+
*/
|
|
89
|
+
declare function resolveAgentGuiWorkbenchLaunchDockEntryId(_input: {
|
|
90
|
+
provider: AgentGuiWorkbenchProvider;
|
|
91
|
+
requestedDockEntryId?: string | null;
|
|
92
|
+
}): string;
|
|
85
93
|
|
|
86
94
|
export { type AgentGuiWorkbenchDockIdentity, type AgentGuiWorkbenchLaunchDescriptor, agentGuiWorkbenchDockEntryId, agentGuiWorkbenchDockIdentityFromIdentifier, agentGuiWorkbenchInstanceId, agentGuiWorkbenchPrefillPromptActivationType, agentGuiWorkbenchProviderFromIdentifier, agentGuiWorkbenchProviderFromLaunchRequest, agentGuiWorkbenchTypeId, agentGuiWorkbenchUnifiedDockEntryId, createAgentGuiWorkbenchDraftLaunchRequest, createAgentGuiWorkbenchInstanceId, createAgentGuiWorkbenchLaunchDescriptor, createAgentGuiWorkbenchSessionLaunchRequest, resolveAgentGuiWorkbenchLaunchDockEntryId, shouldReuseAgentGuiWorkbenchDockEntryNode };
|
package/dist/workbench/launch.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
createAgentGuiWorkbenchSessionLaunchRequest,
|
|
13
13
|
resolveAgentGuiWorkbenchLaunchDockEntryId,
|
|
14
14
|
shouldReuseAgentGuiWorkbenchDockEntryNode
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-QY22OBJS.js";
|
|
16
16
|
import "../chunk-L3GMMGRS.js";
|
|
17
17
|
import {
|
|
18
18
|
agentGuiWorkbenchPrefillPromptActivationType
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AgentGuiWorkbenchProvider } from './types.js';
|
|
1
|
+
import { AgentActivitySession } from '@tutti-os/agent-activity-core';
|
|
3
2
|
|
|
4
3
|
interface ResolveAgentGuiWorkbenchHeaderTitleInput {
|
|
5
4
|
agentName?: string | null;
|
|
@@ -9,16 +8,15 @@ interface ResolveAgentGuiWorkbenchHeaderTitleInput {
|
|
|
9
8
|
interface ResolveAgentGuiWorkbenchSessionTitleInput {
|
|
10
9
|
agentSessionId?: string | null;
|
|
11
10
|
fallbackTitle?: string | null;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
session?: AgentActivitySession | null;
|
|
11
|
+
optimisticTitle?: string | null;
|
|
12
|
+
session?: Pick<AgentActivitySession, "title"> | null;
|
|
15
13
|
}
|
|
16
14
|
interface AgentGuiWorkbenchSessionTitleResult {
|
|
17
15
|
agentSessionId: string | null;
|
|
18
|
-
source: "snapshot" | "fallback" | "none";
|
|
16
|
+
source: "snapshot" | "optimistic" | "fallback" | "none";
|
|
19
17
|
title: string | null;
|
|
20
18
|
}
|
|
21
19
|
declare function resolveAgentGuiWorkbenchHeaderTitle({ agentName, conversationTitle, provider }: ResolveAgentGuiWorkbenchHeaderTitleInput): string | null;
|
|
22
|
-
declare function resolveAgentGuiWorkbenchSessionTitle({ agentSessionId, fallbackTitle,
|
|
20
|
+
declare function resolveAgentGuiWorkbenchSessionTitle({ agentSessionId, fallbackTitle, optimisticTitle, session }: ResolveAgentGuiWorkbenchSessionTitleInput): AgentGuiWorkbenchSessionTitleResult;
|
|
23
21
|
|
|
24
22
|
export { type AgentGuiWorkbenchSessionTitleResult, type ResolveAgentGuiWorkbenchHeaderTitleInput, type ResolveAgentGuiWorkbenchSessionTitleInput, resolveAgentGuiWorkbenchHeaderTitle, resolveAgentGuiWorkbenchSessionTitle };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveAgentGuiWorkbenchHeaderTitle,
|
|
3
3
|
resolveAgentGuiWorkbenchSessionTitle
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-FSKGEGGX.js";
|
|
4
|
+
} from "../chunk-KAV2WHTG.js";
|
|
5
|
+
import "../chunk-MIJXEELH.js";
|
|
6
|
+
import "../chunk-4E3QCW6L.js";
|
|
8
7
|
import "../chunk-KJQERFKX.js";
|
|
9
8
|
export {
|
|
10
9
|
resolveAgentGuiWorkbenchHeaderTitle,
|
package/dist/workbench/state.js
CHANGED
|
@@ -9,8 +9,10 @@ import {
|
|
|
9
9
|
normalizeAgentGuiWorkbenchNodeState,
|
|
10
10
|
normalizeAgentGuiWorkbenchState,
|
|
11
11
|
projectAgentGuiWorkbenchState
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-4YVKAPKW.js";
|
|
13
|
+
import "../chunk-QY22OBJS.js";
|
|
13
14
|
import "../chunk-L3GMMGRS.js";
|
|
15
|
+
import "../chunk-UHBCM6RO.js";
|
|
14
16
|
import "../chunk-KJQERFKX.js";
|
|
15
17
|
export {
|
|
16
18
|
agentGuiWorkbenchProviderFromInstanceId,
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { AgentActivitySession, AgentActivityMessage } from '@tutti-os/agent-activity-core';
|
|
4
|
-
|
|
5
|
-
declare function workspaceAgentProviderLabel(provider: string): string;
|
|
6
|
-
|
|
7
|
-
declare function buildWorkspaceAgentActivityListViewModel(snapshot: WorkspaceAgentActivityListSnapshot, options?: BuildWorkspaceAgentActivityListOptions): WorkspaceAgentActivityListViewModel;
|
|
8
|
-
declare function reuseWorkspaceAgentActivityListViewModelIfUnchanged(previous: WorkspaceAgentActivityListViewModel | null, next: WorkspaceAgentActivityListViewModel): WorkspaceAgentActivityListViewModel;
|
|
9
|
-
|
|
10
|
-
declare function resolveWorkspaceAgentActivityStatus(session: AgentActivitySession): WorkspaceAgentActivityStatus;
|
|
11
|
-
|
|
12
|
-
declare function resolveWorkspaceAgentActivityTitle(session: AgentActivitySession, messages?: readonly AgentActivityMessage[]): string;
|
|
1
|
+
import { AgentActivityMessage, AgentActivitySession } from '@tutti-os/agent-activity-core';
|
|
2
|
+
import { b as WorkspaceAgentChangedFile, C as CollectWorkspaceAgentGeneratedFilesOptions } from './workspaceAgentActivityListTypes-DZfS_HgG.js';
|
|
13
3
|
|
|
14
4
|
interface WorkspaceAgentGeneratedFilesSource {
|
|
15
5
|
sessionMessagesById: Readonly<Record<string, AgentActivityMessage[]>>;
|
|
16
6
|
sessions: readonly AgentActivitySession[];
|
|
17
7
|
}
|
|
18
8
|
declare function collectWorkspaceAgentGeneratedFiles(source: WorkspaceAgentGeneratedFilesSource, options?: CollectWorkspaceAgentGeneratedFilesOptions): WorkspaceAgentChangedFile[];
|
|
9
|
+
type ChangedFilePathNormalizer = (value: unknown) => string | null;
|
|
10
|
+
interface ChangedFileCollectionOptions {
|
|
11
|
+
requireSuccessfulFileChangeTool?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare function changedFilesForSession(messages: readonly AgentActivityMessage[], normalizePath?: ChangedFilePathNormalizer, options?: ChangedFileCollectionOptions): WorkspaceAgentChangedFile[];
|
|
19
14
|
|
|
20
|
-
export {
|
|
15
|
+
export { type WorkspaceAgentGeneratedFilesSource, changedFilesForSession, collectWorkspaceAgentGeneratedFiles };
|
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
collectWorkspaceAgentGeneratedFiles
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
reuseWorkspaceAgentActivityListViewModelIfUnchanged
|
|
7
|
-
} from "./chunk-63BE6RGM.js";
|
|
8
|
-
import "./chunk-Y35GDLP2.js";
|
|
9
|
-
import "./chunk-YMXYBG7U.js";
|
|
10
|
-
import {
|
|
11
|
-
workspaceAgentProviderLabel
|
|
12
|
-
} from "./chunk-Y5M6Q6WX.js";
|
|
13
|
-
import "./chunk-GCBDIQDX.js";
|
|
14
|
-
import "./chunk-RHTZAODZ.js";
|
|
15
|
-
import "./chunk-FSKGEGGX.js";
|
|
16
|
-
import "./chunk-KJQERFKX.js";
|
|
2
|
+
changedFilesForSession,
|
|
3
|
+
collectWorkspaceAgentGeneratedFiles
|
|
4
|
+
} from "./chunk-4YCCATI4.js";
|
|
5
|
+
import "./chunk-F5UR6EJG.js";
|
|
17
6
|
export {
|
|
18
|
-
|
|
19
|
-
collectWorkspaceAgentGeneratedFiles
|
|
20
|
-
resolveWorkspaceAgentActivityStatus,
|
|
21
|
-
resolveWorkspaceAgentActivityTitle,
|
|
22
|
-
reuseWorkspaceAgentActivityListViewModelIfUnchanged,
|
|
23
|
-
workspaceAgentProviderLabel
|
|
7
|
+
changedFilesForSession,
|
|
8
|
+
collectWorkspaceAgentGeneratedFiles
|
|
24
9
|
};
|
|
25
10
|
//# sourceMappingURL=workspace-agent-generated-files.js.map
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
import { AgentActivityMessage, AgentActivitySnapshot } from '@tutti-os/agent-activity-core';
|
|
2
|
-
|
|
3
|
-
interface AgentHostUserInfo {
|
|
4
|
-
userId: string;
|
|
5
|
-
email?: string;
|
|
6
|
-
avatar?: string;
|
|
7
|
-
avatarObjectKey?: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
}
|
|
10
|
-
interface AgentHostBatchUserInfoInput {
|
|
11
|
-
userIds: string[];
|
|
12
|
-
}
|
|
13
|
-
interface AgentHostBatchUserInfoResult {
|
|
14
|
-
users: AgentHostUserInfo[];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
1
|
type ToolCallStatusKind = "working" | "completed" | "failed" | "canceled" | "waiting";
|
|
18
2
|
interface WorkspaceAgentToolCallDisplay {
|
|
19
3
|
id: string;
|
|
@@ -53,19 +37,12 @@ interface WorkspaceAgentActivityCard {
|
|
|
53
37
|
sortTimeUnixMs: number;
|
|
54
38
|
readTimeUnixMs?: number;
|
|
55
39
|
}
|
|
56
|
-
interface WorkspaceAgentActivityListViewModel {
|
|
57
|
-
activities: WorkspaceAgentActivityCard[];
|
|
58
|
-
}
|
|
59
|
-
interface BuildWorkspaceAgentActivityListOptions {
|
|
60
|
-
sessionMessagesById?: Record<string, AgentActivityMessage[]>;
|
|
61
|
-
userProfilesById?: Record<string, AgentHostUserInfo>;
|
|
62
|
-
}
|
|
63
40
|
interface CollectWorkspaceAgentGeneratedFilesOptions {
|
|
41
|
+
/** When set, only include files produced by these Agent targets. */
|
|
42
|
+
agentTargetIds?: readonly string[] | null;
|
|
64
43
|
workspaceRoot?: string | null;
|
|
65
44
|
/** When set, only include files from sessions whose cwd matches this path. */
|
|
66
45
|
sessionCwd?: string | null;
|
|
67
46
|
}
|
|
68
47
|
|
|
69
|
-
type
|
|
70
|
-
|
|
71
|
-
export type { AgentHostBatchUserInfoInput as A, BuildWorkspaceAgentActivityListOptions as B, CollectWorkspaceAgentGeneratedFilesOptions as C, ToolCallStatusKind as T, WorkspaceAgentActivityCard as W, AgentHostBatchUserInfoResult as a, WorkspaceAgentActivityListSnapshot as b, WorkspaceAgentActivityListViewModel as c, WorkspaceAgentActivityStatus as d, WorkspaceAgentChangedFile as e };
|
|
48
|
+
export type { CollectWorkspaceAgentGeneratedFilesOptions as C, ToolCallStatusKind as T, WorkspaceAgentActivityCard as W, WorkspaceAgentActivityStatus as a, WorkspaceAgentChangedFile as b };
|