@tutti-os/agent-gui 0.0.124 → 0.0.126
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-D-Ktaq3h.d.ts → AgentGUI-CKk3WQrn.d.ts} +3 -1
- package/dist/{AgentRichTextReadonly-ZWKC3FJE.js → AgentRichTextReadonly-KOUZGF5Q.js} +5 -5
- package/dist/agent-conversation/index.js +7 -7
- package/dist/agent-gui.d.ts +3 -2
- package/dist/agent-gui.js +15 -15
- package/dist/agent-message-center/index.js +6 -6
- package/dist/{agentFileMentionContracts-DY4Z70CN.d.ts → agentFileMentionContracts-CWAeuL7S.d.ts} +1 -1
- package/dist/{chunk-OKGXHKJ2.js → chunk-2JFMGOHU.js} +2 -2
- package/dist/{chunk-KACVD2GZ.js → chunk-2ZVXN2Z7.js} +5 -5
- package/dist/chunk-2ZVXN2Z7.js.map +1 -0
- package/dist/{chunk-XXACYFIR.js → chunk-4CACBXIB.js} +2 -2
- package/dist/{chunk-ZCNZ53CF.js → chunk-6RMVLH3G.js} +2 -2
- package/dist/{chunk-WEHEJ25P.js → chunk-ADQENNSG.js} +53 -61
- package/dist/chunk-ADQENNSG.js.map +1 -0
- package/dist/{chunk-C3IGPKCP.js → chunk-BDWZUA3L.js} +10 -9
- package/dist/chunk-BDWZUA3L.js.map +1 -0
- package/dist/{chunk-3XS6P7BA.js → chunk-CO6XO5A2.js} +5 -5
- package/dist/{chunk-6NUOJ6PS.js → chunk-F2Z7P7BB.js} +4 -4
- package/dist/{chunk-DXIL75XS.js → chunk-G3XB4FAQ.js} +3 -3
- package/dist/{chunk-2EH3KOJV.js → chunk-PRE4IT6E.js} +170 -18
- package/dist/chunk-PRE4IT6E.js.map +1 -0
- package/dist/{chunk-NWPGWLWP.js → chunk-QDNOOAAS.js} +21 -57
- package/dist/chunk-QDNOOAAS.js.map +1 -0
- package/dist/{chunk-PPOCDOYZ.js → chunk-QWKJ646Z.js} +176 -145
- package/dist/chunk-QWKJ646Z.js.map +1 -0
- package/dist/{chunk-RQDDJHEO.js → chunk-RB6ZYQBA.js} +2 -2
- package/dist/{chunk-JM24HADP.js → chunk-RMQREVJY.js} +1 -1
- package/dist/chunk-RMQREVJY.js.map +1 -0
- package/dist/{chunk-RN7DI3Y2.js → chunk-X22KJXVG.js} +2 -2
- package/dist/context-mention-palette/index.d.ts +1 -1
- package/dist/context-mention-palette/index.js +8 -8
- package/dist/context-mention-provider.d.ts +15 -2
- package/dist/context-mention-provider.js +1 -1
- package/dist/i18n/index.d.ts +4 -4
- package/dist/i18n/index.js +2 -2
- package/dist/index.d.ts +4 -3
- package/dist/index.js +15 -15
- package/dist/mention-search.d.ts +8 -3
- package/dist/mention-search.js +6 -6
- package/dist/workbench/contribution.js +3 -3
- package/dist/workbench/index.js +3 -3
- package/dist/workbench/sessionTitle.js +2 -2
- package/package.json +14 -14
- package/dist/chunk-2EH3KOJV.js.map +0 -1
- package/dist/chunk-C3IGPKCP.js.map +0 -1
- package/dist/chunk-JM24HADP.js.map +0 -1
- package/dist/chunk-KACVD2GZ.js.map +0 -1
- package/dist/chunk-NWPGWLWP.js.map +0 -1
- package/dist/chunk-PPOCDOYZ.js.map +0 -1
- package/dist/chunk-WEHEJ25P.js.map +0 -1
- /package/dist/{AgentRichTextReadonly-ZWKC3FJE.js.map → AgentRichTextReadonly-KOUZGF5Q.js.map} +0 -0
- /package/dist/{chunk-OKGXHKJ2.js.map → chunk-2JFMGOHU.js.map} +0 -0
- /package/dist/{chunk-XXACYFIR.js.map → chunk-4CACBXIB.js.map} +0 -0
- /package/dist/{chunk-ZCNZ53CF.js.map → chunk-6RMVLH3G.js.map} +0 -0
- /package/dist/{chunk-3XS6P7BA.js.map → chunk-CO6XO5A2.js.map} +0 -0
- /package/dist/{chunk-6NUOJ6PS.js.map → chunk-F2Z7P7BB.js.map} +0 -0
- /package/dist/{chunk-DXIL75XS.js.map → chunk-G3XB4FAQ.js.map} +0 -0
- /package/dist/{chunk-RQDDJHEO.js.map → chunk-RB6ZYQBA.js.map} +0 -0
- /package/dist/{chunk-RN7DI3Y2.js.map → chunk-X22KJXVG.js.map} +0 -0
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolveAgentGuiSessionProviderFlatIconUrl,
|
|
13
13
|
resolveNextAgentGUIConversationRailWidthPx,
|
|
14
14
|
shouldAutoCollapseAgentGUIConversationRail
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-G3XB4FAQ.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENT_PROVIDERS,
|
|
18
18
|
AGENT_PROVIDER_LABEL,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
resolveAgentGUIFirstUserMessageDisplayPrompt,
|
|
29
29
|
resolveAgentGUIProviderDisplayLabel,
|
|
30
30
|
resolveAgentGUIProviderIdentity
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-X22KJXVG.js";
|
|
32
32
|
import {
|
|
33
33
|
resolveAgentGuiWorkbenchProviderLabel
|
|
34
34
|
} from "./chunk-R2ZADXRB.js";
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
toLocalShortDateTime,
|
|
64
64
|
updateAgentComposerDraft,
|
|
65
65
|
useProjectedAgentConversation
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-CO6XO5A2.js";
|
|
67
67
|
import {
|
|
68
68
|
agentRichTextContentToPromptText,
|
|
69
69
|
createAgentRichTextInputExtensions,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
plainTextToAgentRichTextInlineContent,
|
|
74
74
|
skillDescriptionForDisplay,
|
|
75
75
|
skillTriggerForPrefix
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-RB6ZYQBA.js";
|
|
77
77
|
import {
|
|
78
78
|
openAgentEnvPanel
|
|
79
79
|
} from "./chunk-VMQNG2KI.js";
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
AgentFileMentionPalette,
|
|
86
86
|
agentMentionItemKey,
|
|
87
87
|
isAgentMentionItemDisabled
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-BDWZUA3L.js";
|
|
89
89
|
import {
|
|
90
90
|
normalizeAgentGUIAgents,
|
|
91
91
|
projectAgentGUIAgentsToInternalTargets
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
DEFAULT_AGENT_MENTION_FILTER,
|
|
97
97
|
agentGuiScheduler,
|
|
98
98
|
buildWorkspaceAgentActivityListViewModel
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-PRE4IT6E.js";
|
|
100
100
|
import {
|
|
101
101
|
AGENT_RICH_TEXT_CARET_ANCHOR,
|
|
102
102
|
createAgentSessionMarkdownLink,
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
mentionItemToAttrs,
|
|
108
108
|
normalizeAgentSessionMentionTitle,
|
|
109
109
|
parseMentionItemFromHref
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-QDNOOAAS.js";
|
|
111
111
|
import {
|
|
112
112
|
AgentInteractivePromptSurface,
|
|
113
113
|
PLAN_IMPLEMENTATION_ACTION_FEEDBACK,
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
dispatchAgentPlanPromptAction,
|
|
118
118
|
latestPlanTurnId,
|
|
119
119
|
planImplementationPromptFromPlanTurn
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-F2Z7P7BB.js";
|
|
121
121
|
import {
|
|
122
122
|
useEngineSelector
|
|
123
123
|
} from "./chunk-2RQM7PJN.js";
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
ZoomableImage,
|
|
127
127
|
normalizeAgentApprovalPurpose,
|
|
128
128
|
resolveWorkspaceLinkAction
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-ADQENNSG.js";
|
|
130
130
|
import {
|
|
131
131
|
AgentTargetPresentationProvider,
|
|
132
132
|
cn,
|
|
@@ -144,7 +144,7 @@ import {
|
|
|
144
144
|
useAgentHostApi,
|
|
145
145
|
useOptionalAgentActivityRuntime,
|
|
146
146
|
useOptionalAgentHostApi
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-2JFMGOHU.js";
|
|
148
148
|
import {
|
|
149
149
|
MANAGED_AGENT_ICON_FALLBACK_URL,
|
|
150
150
|
MANAGED_AGENT_ICON_URLS,
|
|
@@ -154,7 +154,7 @@ import {
|
|
|
154
154
|
AgentGuiI18nProvider,
|
|
155
155
|
translate,
|
|
156
156
|
useTranslation
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-6RMVLH3G.js";
|
|
158
158
|
import {
|
|
159
159
|
isBetaAgentProvider,
|
|
160
160
|
normalizeManagedAgentProvider
|
|
@@ -18254,7 +18254,7 @@ function useComposerMentionActions(input) {
|
|
|
18254
18254
|
} = input;
|
|
18255
18255
|
const selectFileMention = useCallback35(
|
|
18256
18256
|
(entry) => {
|
|
18257
|
-
if (entry.kind === "file" && entry.mentionNavigation
|
|
18257
|
+
if (entry.kind === "file" && entry.mentionNavigation && mentionControllerRef.current?.selectFileMentionNavigationItem(entry)) {
|
|
18258
18258
|
return;
|
|
18259
18259
|
}
|
|
18260
18260
|
fileMentionSuggestion?.command(entry);
|
|
@@ -18349,22 +18349,22 @@ function useComposerMentionActions(input) {
|
|
|
18349
18349
|
const navigateFileMentionHierarchy = useCallback35(
|
|
18350
18350
|
(delta) => {
|
|
18351
18351
|
if (delta === -1) {
|
|
18352
|
-
return mentionControllerRef.current?.
|
|
18352
|
+
return mentionControllerRef.current?.exitFileMentionBrowse() ?? false;
|
|
18353
18353
|
}
|
|
18354
18354
|
const item = createFileMentionPaletteAdapter().selectedItem;
|
|
18355
18355
|
if (!item || item.kind !== "file") {
|
|
18356
18356
|
return false;
|
|
18357
18357
|
}
|
|
18358
|
-
if (item.mentionNavigation !== "agent-generated-folder") {
|
|
18358
|
+
if (item.mentionNavigation !== "agent-generated-folder" && item.mentionNavigation !== "workspace-folder") {
|
|
18359
18359
|
return false;
|
|
18360
18360
|
}
|
|
18361
|
-
return mentionControllerRef.current?.
|
|
18361
|
+
return mentionControllerRef.current?.selectFileMentionNavigationItem(item) ?? false;
|
|
18362
18362
|
},
|
|
18363
18363
|
[createFileMentionPaletteAdapter]
|
|
18364
18364
|
);
|
|
18365
18365
|
const navigateIntoFileMentionItem = useCallback35(
|
|
18366
18366
|
(item) => {
|
|
18367
|
-
mentionControllerRef.current?.
|
|
18367
|
+
mentionControllerRef.current?.selectFileMentionNavigationItem(item);
|
|
18368
18368
|
},
|
|
18369
18369
|
[]
|
|
18370
18370
|
);
|
|
@@ -35437,7 +35437,30 @@ function areAgentGUINodePropsEqual(previous, next) {
|
|
|
35437
35437
|
const pc = previous.hostCapabilities, nc = next.hostCapabilities;
|
|
35438
35438
|
const pa = previous.hostActions, na = next.hostActions;
|
|
35439
35439
|
const ps = previous.renderSlots, ns = next.renderSlots;
|
|
35440
|
-
return pi.nodeId === ni.nodeId && pi.workspaceId === ni.workspaceId && pi.currentUserId === ni.currentUserId && pi.title === ni.title && pw.path === nw.path && pw.fileReferenceAdapter === nw.fileReferenceAdapter && pw.onRequestGitBranches === nw.onRequestGitBranches && pw.selectProjectDirectory === nw.selectProjectDirectory && pw.resolveDroppedFileReferences === nw.resolveDroppedFileReferences && pw.referenceSourceAggregator === nw.referenceSourceAggregator && pw.resolveReferenceEntryIconUrl === nw.resolveReferenceEntryIconUrl && pw.resolveMentionReferenceTarget === nw.resolveMentionReferenceTarget && pw.resolveReferenceInitialTarget === nw.resolveReferenceInitialTarget && pw.onFileReferencesAdded === nw.onFileReferencesAdded && pw.agentSettings.avoidGroupingEdits === nw.agentSettings.avoidGroupingEdits && pc.referenceProvenanceFilterCatalog === nc.referenceProvenanceFilterCatalog && pc.referenceProvenanceFilterEnabled === nc.referenceProvenanceFilterEnabled && agentGuiStateEquals(previous.state, next.state) && pf.position.x === nf.position.x && pf.position.y === nf.position.y && pf.width === nf.width && pf.height === nf.height && pf.desktopSize.width === nf.desktopSize.width && pf.desktopSize.height === nf.desktopSize.height && pf.isMaximized === nf.isMaximized && pf.isActive === nf.isActive && pf.isVisible === nf.isVisible && pf.embedded === nf.embedded && pf.previewMode === nf.previewMode && pf.conversationRailAutoCollapseWidthPx === nf.conversationRailAutoCollapseWidthPx && pr.composerFocusSequence === nr.composerFocusSequence && pr.composerAppend === nr.composerAppend && pr.newConversationSequence === nr.newConversationSequence && pr.openSession === nr.openSession && pr.prefillPrompt === nr.prefillPrompt && pr.agentProbes === nr.agentProbes && pr.onProbeDemandChange === nr.onProbeDemandChange && pr.onProbeRefreshRequest === nr.onProbeRefreshRequest && pc.capabilityMenuState === nc.capabilityMenuState && pc.accountMenuState === nc.accountMenuState && pc.agentTargets === nc.agentTargets && pc.agentTargetsLoading === nc.agentTargetsLoading && pc.handoffAgentTargets === nc.handoffAgentTargets && pc.handoffAgentTargetsLoading === nc.handoffAgentTargetsLoading && pc.providerRailAllPresentation?.iconUrl === nc.providerRailAllPresentation?.iconUrl && pc.providerRailMode === nc.providerRailMode && pc.comingSoonProviders === nc.comingSoonProviders && pc.providerReadinessGates === nc.providerReadinessGates && pc.defaultAgentTargetId === nc.defaultAgentTargetId && pc.providerAuthAccountLabels === nc.providerAuthAccountLabels && pc.contextMentionProviders === nc.contextMentionProviders && pc.workspaceAppIcons === nc.workspaceAppIcons && pc.disabledHomeSuggestions === nc.disabledHomeSuggestions && pa.onLinkAction === na.onLinkAction && pa.onHandoffConversation === na.onHandoffConversation && pa.onCapabilitySettingsRequest === na.onCapabilitySettingsRequest && pa.onAgentProviderLogin === na.onAgentProviderLogin && pa.onOpenConversationWindow === na.onOpenConversationWindow && pa.onClose === na.onClose && pa.onResize === na.onResize && pa.onUpdateNode === na.onUpdateNode && pa.onRememberComposerDefaults === na.onRememberComposerDefaults && pa.isMuted === na.isMuted && pa.onMinimize === na.onMinimize && pa.onToggleMaximize === na.onToggleMaximize && pa.onShowMessage === na.onShowMessage && pa.onEngagementEvent === na.onEngagementEvent && ps.providerRailEmpty === ns.providerRailEmpty && ps.providerUnavailableState === ns.providerUnavailableState && ps.sidebarFooter === ns.sidebarFooter;
|
|
35440
|
+
return pi.nodeId === ni.nodeId && pi.workspaceId === ni.workspaceId && pi.currentUserId === ni.currentUserId && pi.title === ni.title && pw.path === nw.path && pw.fileReferenceAdapter === nw.fileReferenceAdapter && pw.onRequestGitBranches === nw.onRequestGitBranches && pw.selectProjectDirectory === nw.selectProjectDirectory && pw.resolveDroppedFileReferences === nw.resolveDroppedFileReferences && pw.referenceSourceAggregator === nw.referenceSourceAggregator && pw.resolveReferenceEntryIconUrl === nw.resolveReferenceEntryIconUrl && pw.resolveMentionReferenceTarget === nw.resolveMentionReferenceTarget && pw.resolveReferenceInitialTarget === nw.resolveReferenceInitialTarget && pw.onFileReferencesAdded === nw.onFileReferencesAdded && pw.agentSettings.avoidGroupingEdits === nw.agentSettings.avoidGroupingEdits && pc.referenceProvenanceFilterCatalog === nc.referenceProvenanceFilterCatalog && pc.referenceProvenanceFilterEnabled === nc.referenceProvenanceFilterEnabled && agentGuiStateEquals(previous.state, next.state) && pf.position.x === nf.position.x && pf.position.y === nf.position.y && pf.width === nf.width && pf.height === nf.height && pf.desktopSize.width === nf.desktopSize.width && pf.desktopSize.height === nf.desktopSize.height && pf.isMaximized === nf.isMaximized && pf.isActive === nf.isActive && pf.isVisible === nf.isVisible && pf.embedded === nf.embedded && pf.previewMode === nf.previewMode && pf.conversationRailAutoCollapseWidthPx === nf.conversationRailAutoCollapseWidthPx && pr.composerFocusSequence === nr.composerFocusSequence && pr.composerAppend === nr.composerAppend && pr.newConversationSequence === nr.newConversationSequence && pr.openSession === nr.openSession && pr.prefillPrompt === nr.prefillPrompt && pr.agentProbes === nr.agentProbes && pr.onProbeDemandChange === nr.onProbeDemandChange && pr.onProbeRefreshRequest === nr.onProbeRefreshRequest && pc.capabilityMenuState === nc.capabilityMenuState && pc.accountMenuState === nc.accountMenuState && pc.agentTargets === nc.agentTargets && pc.agentTargetsLoading === nc.agentTargetsLoading && pc.handoffAgentTargets === nc.handoffAgentTargets && pc.handoffAgentTargetsLoading === nc.handoffAgentTargetsLoading && pc.providerRailAllPresentation?.iconUrl === nc.providerRailAllPresentation?.iconUrl && pc.providerRailMode === nc.providerRailMode && pc.comingSoonProviders === nc.comingSoonProviders && pc.providerReadinessGates === nc.providerReadinessGates && pc.defaultAgentTargetId === nc.defaultAgentTargetId && pc.providerAuthAccountLabels === nc.providerAuthAccountLabels && pc.contextMentionProviders === nc.contextMentionProviders && pc.mentionService === nc.mentionService && pc.workspaceAppIcons === nc.workspaceAppIcons && pc.disabledHomeSuggestions === nc.disabledHomeSuggestions && pa.onLinkAction === na.onLinkAction && pa.onHandoffConversation === na.onHandoffConversation && pa.onCapabilitySettingsRequest === na.onCapabilitySettingsRequest && pa.onAgentProviderLogin === na.onAgentProviderLogin && pa.onOpenConversationWindow === na.onOpenConversationWindow && pa.onClose === na.onClose && pa.onResize === na.onResize && pa.onUpdateNode === na.onUpdateNode && pa.onRememberComposerDefaults === na.onRememberComposerDefaults && pa.isMuted === na.isMuted && pa.onMinimize === na.onMinimize && pa.onToggleMaximize === na.onToggleMaximize && pa.onShowMessage === na.onShowMessage && pa.onEngagementEvent === na.onEngagementEvent && ps.providerRailEmpty === ns.providerRailEmpty && ps.providerUnavailableState === ns.providerUnavailableState && ps.sidebarFooter === ns.sidebarFooter;
|
|
35441
|
+
}
|
|
35442
|
+
|
|
35443
|
+
// agent-gui/agentGuiNode/AgentGUIMentionServiceBoundary.tsx
|
|
35444
|
+
import {
|
|
35445
|
+
RichTextMentionServiceProvider,
|
|
35446
|
+
useEffectiveRichTextMentionService,
|
|
35447
|
+
useRichTextMentionService
|
|
35448
|
+
} from "@tutti-os/ui-rich-text/editor";
|
|
35449
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
35450
|
+
function AgentGUIMentionServiceBoundary({
|
|
35451
|
+
children,
|
|
35452
|
+
legacyProviders,
|
|
35453
|
+
service
|
|
35454
|
+
}) {
|
|
35455
|
+
const inheritedService = useRichTextMentionService();
|
|
35456
|
+
const effectiveService = useEffectiveRichTextMentionService({
|
|
35457
|
+
mentionService: service,
|
|
35458
|
+
triggerProviders: legacyProviders
|
|
35459
|
+
});
|
|
35460
|
+
if (!service && !inheritedService && !legacyProviders?.length) {
|
|
35461
|
+
return children;
|
|
35462
|
+
}
|
|
35463
|
+
return effectiveService !== inheritedService ? /* @__PURE__ */ jsx68(RichTextMentionServiceProvider, { service: effectiveService, children }) : children;
|
|
35441
35464
|
}
|
|
35442
35465
|
|
|
35443
35466
|
// agent-gui/agentGuiNode/AgentGUINode.labels.ts
|
|
@@ -36286,7 +36309,7 @@ function resolveAgentGUIRailStatusProvider(input) {
|
|
|
36286
36309
|
}
|
|
36287
36310
|
|
|
36288
36311
|
// agent-gui/agentGuiNode/AgentGUINode.tsx
|
|
36289
|
-
import { jsx as
|
|
36312
|
+
import { jsx as jsx69, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
36290
36313
|
var EMPTY_SLASH_STATUS_QUOTAS = [];
|
|
36291
36314
|
var DISABLED_REFERENCE_PROVENANCE_CATALOG = {
|
|
36292
36315
|
enabledDimensions: [],
|
|
@@ -36355,6 +36378,7 @@ var AgentGUINode = memo14(function AgentGUINode2({
|
|
|
36355
36378
|
defaultAgentTargetId = null,
|
|
36356
36379
|
providerAuthAccountLabels,
|
|
36357
36380
|
contextMentionProviders,
|
|
36381
|
+
mentionService,
|
|
36358
36382
|
workspaceAppIcons,
|
|
36359
36383
|
disabledHomeSuggestions,
|
|
36360
36384
|
referenceProvenanceFilterCatalog: injectedReferenceProvenanceFilterCatalog,
|
|
@@ -36694,139 +36718,146 @@ var AgentGUINode = memo14(function AgentGUINode2({
|
|
|
36694
36718
|
previewMode,
|
|
36695
36719
|
railStatusProvider
|
|
36696
36720
|
]);
|
|
36697
|
-
return /* @__PURE__ */
|
|
36698
|
-
|
|
36721
|
+
return /* @__PURE__ */ jsx69(
|
|
36722
|
+
AgentGUIMentionServiceBoundary,
|
|
36699
36723
|
{
|
|
36700
|
-
|
|
36701
|
-
|
|
36702
|
-
|
|
36703
|
-
|
|
36704
|
-
|
|
36705
|
-
|
|
36706
|
-
|
|
36707
|
-
|
|
36708
|
-
|
|
36709
|
-
|
|
36710
|
-
|
|
36711
|
-
|
|
36712
|
-
|
|
36713
|
-
|
|
36714
|
-
|
|
36715
|
-
|
|
36716
|
-
{
|
|
36717
|
-
|
|
36718
|
-
|
|
36719
|
-
|
|
36720
|
-
|
|
36721
|
-
}
|
|
36722
|
-
),
|
|
36723
|
-
/* @__PURE__ */ jsx68(
|
|
36724
|
-
CanvasNodeGhostIconButton,
|
|
36725
|
-
{
|
|
36726
|
-
"aria-label": isConversationRailCollapsed ? t("agentHost.agentGui.expandConversationRail") : t("agentHost.agentGui.collapseConversationRail"),
|
|
36727
|
-
title: isConversationRailCollapsed ? t("agentHost.agentGui.expandConversationRail") : t("agentHost.agentGui.collapseConversationRail"),
|
|
36728
|
-
"data-testid": "agent-gui-toggle-conversation-rail",
|
|
36729
|
-
"data-agent-gui-conversation-rail-collapsed": isConversationRailCollapsed ? "true" : "false",
|
|
36730
|
-
"data-agent-gui-conversation-rail-auto-collapsed": isConversationRailAutoCollapsed ? "true" : "false",
|
|
36731
|
-
onClick: (event) => {
|
|
36732
|
-
event.stopPropagation();
|
|
36733
|
-
handleConversationRailToggle();
|
|
36734
|
-
},
|
|
36735
|
-
children: /* @__PURE__ */ jsx68(
|
|
36736
|
-
CanvasNodePanelLinedIcon,
|
|
36724
|
+
legacyProviders: contextMentionProviders,
|
|
36725
|
+
service: mentionService,
|
|
36726
|
+
children: /* @__PURE__ */ jsx69(
|
|
36727
|
+
WorkspaceNodeWindow,
|
|
36728
|
+
{
|
|
36729
|
+
nodeId,
|
|
36730
|
+
kind: "agentGui",
|
|
36731
|
+
title: windowTitle,
|
|
36732
|
+
titleIcon: null,
|
|
36733
|
+
position,
|
|
36734
|
+
width,
|
|
36735
|
+
height,
|
|
36736
|
+
desktopSize,
|
|
36737
|
+
minSize,
|
|
36738
|
+
appearance: embedded ? "embedded" : "window",
|
|
36739
|
+
className: "size-full bg-transparent",
|
|
36740
|
+
bodyClassName: `${AgentGUINode_styles_default.shell} nodrag size-full min-h-0 min-w-0 !bg-transparent p-0`,
|
|
36741
|
+
hideHeader: embedded,
|
|
36742
|
+
titleAccessory: /* @__PURE__ */ jsxs49("span", { className: "inline-flex flex-none items-center gap-1", children: [
|
|
36743
|
+
/* @__PURE__ */ jsx69(
|
|
36744
|
+
AgentProbeInfoPopover,
|
|
36737
36745
|
{
|
|
36738
|
-
|
|
36739
|
-
|
|
36740
|
-
|
|
36746
|
+
lines: agentProbeLines,
|
|
36747
|
+
testId: "agent-gui-window-agent-info",
|
|
36748
|
+
className: AgentGUINode_styles_default.windowAgentInfo,
|
|
36749
|
+
onOpen: handleAgentProbeInfoOpen
|
|
36741
36750
|
}
|
|
36742
|
-
)
|
|
36743
|
-
}
|
|
36744
|
-
)
|
|
36745
|
-
] }),
|
|
36746
|
-
onClose,
|
|
36747
|
-
onResize,
|
|
36748
|
-
isMaximized,
|
|
36749
|
-
isMuted,
|
|
36750
|
-
hideMaximizeButton: true,
|
|
36751
|
-
onMinimize,
|
|
36752
|
-
onToggleMaximize,
|
|
36753
|
-
children: (renderFrame) => {
|
|
36754
|
-
const renderedWidth = renderFrame.size.width;
|
|
36755
|
-
const isRenderedConversationRailCollapsed = isConversationRailCollapsed || shouldAutoCollapseAgentGUIConversationRail(
|
|
36756
|
-
renderedWidth,
|
|
36757
|
-
railAutoCollapseWidthPx
|
|
36758
|
-
);
|
|
36759
|
-
return /* @__PURE__ */ jsx68(
|
|
36760
|
-
AgentGUINodeView,
|
|
36761
|
-
{
|
|
36762
|
-
viewModel,
|
|
36763
|
-
renderSidebarFooter,
|
|
36764
|
-
renderProviderRailEmpty,
|
|
36765
|
-
renderProviderUnavailableState,
|
|
36766
|
-
providerRailAllPresentation,
|
|
36767
|
-
actions: viewActions,
|
|
36768
|
-
isActive,
|
|
36769
|
-
isVisible,
|
|
36770
|
-
onEngagementEvent,
|
|
36771
|
-
composerFocusRequestSequence,
|
|
36772
|
-
newConversationRequestSequence,
|
|
36773
|
-
slashStatusLimits,
|
|
36774
|
-
slashStatusLimitsLoading: workspaceAgentProbes?.isLoadingUsage ?? false,
|
|
36775
|
-
slashStatusLimitsUnavailable,
|
|
36776
|
-
railConfigProvider: railStatusProvider,
|
|
36777
|
-
railSlashStatusLimits,
|
|
36778
|
-
slashStatusUsageCapturedAtUnixMs,
|
|
36779
|
-
slashStatusUsageDidFail,
|
|
36780
|
-
slashStatusUsageAttempted,
|
|
36781
|
-
providerAuthAccountLabels,
|
|
36782
|
-
onAgentConfigMenuOpen: handleAgentConfigMenuOpen,
|
|
36783
|
-
onAgentUsageRefresh: handleAgentUsageRefresh,
|
|
36784
|
-
onSlashStatusOpen: handleAgentProbeInfoOpen,
|
|
36785
|
-
previewMode,
|
|
36786
|
-
onLinkAction: handleLinkAction,
|
|
36787
|
-
onHandoffConversation,
|
|
36788
|
-
capabilityMenuState,
|
|
36789
|
-
onCapabilitySettingsRequest,
|
|
36790
|
-
onAgentProviderLogin: onAgentProviderLogin ? handleAgentProviderLogin : void 0,
|
|
36791
|
-
accountMenuState,
|
|
36792
|
-
conversationRailCollapsed: isRenderedConversationRailCollapsed,
|
|
36793
|
-
conversationRailWidthPx: clampAgentGUIConversationRailWidthPx(
|
|
36794
|
-
state.conversationRailWidthPx,
|
|
36795
|
-
renderedWidth
|
|
36796
|
-
),
|
|
36797
|
-
conversationRailMinWidthPx: AGENT_GUI_CONVERSATION_RAIL_MIN_WIDTH_PX,
|
|
36798
|
-
conversationRailMaxWidthPx: resolveAgentGUIConversationRailMaxWidthPx(
|
|
36799
|
-
renderedWidth
|
|
36800
36751
|
),
|
|
36801
|
-
|
|
36802
|
-
|
|
36803
|
-
|
|
36804
|
-
|
|
36805
|
-
|
|
36806
|
-
|
|
36807
|
-
|
|
36808
|
-
|
|
36809
|
-
|
|
36810
|
-
|
|
36811
|
-
|
|
36812
|
-
|
|
36813
|
-
|
|
36814
|
-
|
|
36815
|
-
|
|
36816
|
-
|
|
36817
|
-
|
|
36818
|
-
|
|
36819
|
-
|
|
36820
|
-
|
|
36752
|
+
/* @__PURE__ */ jsx69(
|
|
36753
|
+
CanvasNodeGhostIconButton,
|
|
36754
|
+
{
|
|
36755
|
+
"aria-label": isConversationRailCollapsed ? t("agentHost.agentGui.expandConversationRail") : t("agentHost.agentGui.collapseConversationRail"),
|
|
36756
|
+
title: isConversationRailCollapsed ? t("agentHost.agentGui.expandConversationRail") : t("agentHost.agentGui.collapseConversationRail"),
|
|
36757
|
+
"data-testid": "agent-gui-toggle-conversation-rail",
|
|
36758
|
+
"data-agent-gui-conversation-rail-collapsed": isConversationRailCollapsed ? "true" : "false",
|
|
36759
|
+
"data-agent-gui-conversation-rail-auto-collapsed": isConversationRailAutoCollapsed ? "true" : "false",
|
|
36760
|
+
onClick: (event) => {
|
|
36761
|
+
event.stopPropagation();
|
|
36762
|
+
handleConversationRailToggle();
|
|
36763
|
+
},
|
|
36764
|
+
children: /* @__PURE__ */ jsx69(
|
|
36765
|
+
CanvasNodePanelLinedIcon,
|
|
36766
|
+
{
|
|
36767
|
+
width: 18,
|
|
36768
|
+
height: 18,
|
|
36769
|
+
"aria-hidden": "true"
|
|
36770
|
+
}
|
|
36771
|
+
)
|
|
36772
|
+
}
|
|
36773
|
+
)
|
|
36774
|
+
] }),
|
|
36775
|
+
onClose,
|
|
36776
|
+
onResize,
|
|
36777
|
+
isMaximized,
|
|
36778
|
+
isMuted,
|
|
36779
|
+
hideMaximizeButton: true,
|
|
36780
|
+
onMinimize,
|
|
36781
|
+
onToggleMaximize,
|
|
36782
|
+
children: (renderFrame) => {
|
|
36783
|
+
const renderedWidth = renderFrame.size.width;
|
|
36784
|
+
const isRenderedConversationRailCollapsed = isConversationRailCollapsed || shouldAutoCollapseAgentGUIConversationRail(
|
|
36785
|
+
renderedWidth,
|
|
36786
|
+
railAutoCollapseWidthPx
|
|
36787
|
+
);
|
|
36788
|
+
return /* @__PURE__ */ jsx69(
|
|
36789
|
+
AgentGUINodeView,
|
|
36790
|
+
{
|
|
36791
|
+
viewModel,
|
|
36792
|
+
renderSidebarFooter,
|
|
36793
|
+
renderProviderRailEmpty,
|
|
36794
|
+
renderProviderUnavailableState,
|
|
36795
|
+
providerRailAllPresentation,
|
|
36796
|
+
actions: viewActions,
|
|
36797
|
+
isActive,
|
|
36798
|
+
isVisible,
|
|
36799
|
+
onEngagementEvent,
|
|
36800
|
+
composerFocusRequestSequence,
|
|
36801
|
+
newConversationRequestSequence,
|
|
36802
|
+
slashStatusLimits,
|
|
36803
|
+
slashStatusLimitsLoading: workspaceAgentProbes?.isLoadingUsage ?? false,
|
|
36804
|
+
slashStatusLimitsUnavailable,
|
|
36805
|
+
railConfigProvider: railStatusProvider,
|
|
36806
|
+
railSlashStatusLimits,
|
|
36807
|
+
slashStatusUsageCapturedAtUnixMs,
|
|
36808
|
+
slashStatusUsageDidFail,
|
|
36809
|
+
slashStatusUsageAttempted,
|
|
36810
|
+
providerAuthAccountLabels,
|
|
36811
|
+
onAgentConfigMenuOpen: handleAgentConfigMenuOpen,
|
|
36812
|
+
onAgentUsageRefresh: handleAgentUsageRefresh,
|
|
36813
|
+
onSlashStatusOpen: handleAgentProbeInfoOpen,
|
|
36814
|
+
previewMode,
|
|
36815
|
+
onLinkAction: handleLinkAction,
|
|
36816
|
+
onHandoffConversation,
|
|
36817
|
+
capabilityMenuState,
|
|
36818
|
+
onCapabilitySettingsRequest,
|
|
36819
|
+
onAgentProviderLogin: onAgentProviderLogin ? handleAgentProviderLogin : void 0,
|
|
36820
|
+
accountMenuState,
|
|
36821
|
+
conversationRailCollapsed: isRenderedConversationRailCollapsed,
|
|
36822
|
+
conversationRailWidthPx: clampAgentGUIConversationRailWidthPx(
|
|
36823
|
+
state.conversationRailWidthPx,
|
|
36824
|
+
renderedWidth
|
|
36825
|
+
),
|
|
36826
|
+
conversationRailMinWidthPx: AGENT_GUI_CONVERSATION_RAIL_MIN_WIDTH_PX,
|
|
36827
|
+
conversationRailMaxWidthPx: resolveAgentGUIConversationRailMaxWidthPx(
|
|
36828
|
+
renderedWidth
|
|
36829
|
+
),
|
|
36830
|
+
detailMinWidthPx: AGENT_GUI_DETAIL_MIN_WIDTH_PX,
|
|
36831
|
+
uiLanguage: locale,
|
|
36832
|
+
onWorkspaceFileReferencesAdded: onWorkspaceFileReferencesAdded ? handleWorkspaceFileReferencesAdded : void 0,
|
|
36833
|
+
resolveDroppedFileReferences,
|
|
36834
|
+
onConversationRailWidthChanged: handleConversationRailWidthChanged,
|
|
36835
|
+
labels,
|
|
36836
|
+
workspaceUserProjectI18n,
|
|
36837
|
+
workspaceFileManagerCopy: workspaceFileManagerI18n,
|
|
36838
|
+
workspaceFileReferenceAdapter,
|
|
36839
|
+
onOpenConversationWindow,
|
|
36840
|
+
onRequestGitBranches,
|
|
36841
|
+
selectProjectDirectory,
|
|
36842
|
+
referenceSourceAggregator,
|
|
36843
|
+
resolveWorkspaceReferenceEntryIconUrl,
|
|
36844
|
+
resolveMentionReferenceTarget,
|
|
36845
|
+
resolveWorkspaceReferenceInitialTarget,
|
|
36846
|
+
workspaceFileReferenceCopy,
|
|
36847
|
+
contextMentionProviders,
|
|
36848
|
+
workspaceAppIcons,
|
|
36849
|
+
referenceProvenanceFilter
|
|
36850
|
+
}
|
|
36851
|
+
);
|
|
36821
36852
|
}
|
|
36822
|
-
|
|
36823
|
-
|
|
36853
|
+
}
|
|
36854
|
+
)
|
|
36824
36855
|
}
|
|
36825
36856
|
);
|
|
36826
36857
|
}, areAgentGUINodePropsEqual);
|
|
36827
36858
|
|
|
36828
36859
|
// AgentGUI.tsx
|
|
36829
|
-
import { jsx as
|
|
36860
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
36830
36861
|
var AgentGUI = memo15(function AgentGUI2({
|
|
36831
36862
|
agentActivityRuntime,
|
|
36832
36863
|
agentHostApi,
|
|
@@ -36865,15 +36896,15 @@ var AgentGUI = memo15(function AgentGUI2({
|
|
|
36865
36896
|
providerRailEmpty: renderAgentsEmpty
|
|
36866
36897
|
}
|
|
36867
36898
|
};
|
|
36868
|
-
const content = /* @__PURE__ */
|
|
36899
|
+
const content = /* @__PURE__ */ jsx70(AgentGuiI18nProvider, { runtime: i18n, locale, children: /* @__PURE__ */ jsx70(
|
|
36869
36900
|
AgentActivityHostProvider,
|
|
36870
36901
|
{
|
|
36871
36902
|
agentActivityRuntime,
|
|
36872
36903
|
agentHostApi,
|
|
36873
|
-
children: /* @__PURE__ */
|
|
36904
|
+
children: /* @__PURE__ */ jsx70(AgentGUINode, { ...nodeProps })
|
|
36874
36905
|
}
|
|
36875
36906
|
) });
|
|
36876
|
-
return props.frame.previewMode ? content : /* @__PURE__ */
|
|
36907
|
+
return props.frame.previewMode ? content : /* @__PURE__ */ jsx70(TooltipProvider5, { delayDuration: 120, skipDelayDuration: 0, children: content });
|
|
36877
36908
|
});
|
|
36878
36909
|
|
|
36879
36910
|
export {
|
|
@@ -36886,4 +36917,4 @@ export {
|
|
|
36886
36917
|
resolveAgentGUIAgentTarget,
|
|
36887
36918
|
AgentGUI
|
|
36888
36919
|
};
|
|
36889
|
-
//# sourceMappingURL=chunk-
|
|
36920
|
+
//# sourceMappingURL=chunk-QWKJ646Z.js.map
|