@datalayer/agent-runtimes 1.3.88 → 1.3.90
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/lib/Agent.js +2 -18
- package/lib/AgentDocument.js +5 -55
- package/lib/AgentNode.js +31 -208
- package/lib/AgentNotebook.js +5 -59
- package/lib/agent-node/AgentNodeGallery.js +23 -111
- package/lib/agents/AgentDetails.js +36 -274
- package/lib/agents/AgentRuntimeChat.js +1 -8
- package/lib/chat/Chat.js +7 -46
- package/lib/chat/ChatFloating.js +15 -100
- package/lib/chat/ChatInline.js +5 -47
- package/lib/chat/ChatPopupStandalone.js +5 -53
- package/lib/chat/ChatSidebar.js +4 -51
- package/lib/chat/ChatStandalone.js +4 -45
- package/lib/chat/EphemeralSurfaceControl.js +5 -25
- package/lib/chat/assistant/AssistantContextMenu.d.ts +8 -0
- package/lib/chat/assistant/AssistantContextMenu.js +17 -1
- package/lib/chat/assistant/AssistantStage.js +6 -25
- package/lib/chat/assistant/BalloonParts.js +8 -40
- package/lib/chat/assistant/BalloonVisual.js +2 -2
- package/lib/chat/assistant/ConversationBalloon.js +2 -11
- package/lib/chat/assistant/DecisionAsk.js +3 -3
- package/lib/chat/assistant/SandboxDetailsDialog.js +3 -17
- package/lib/chat/assistant/SpeechBalloon.js +14 -78
- package/lib/chat/base/ChatBase.js +37 -172
- package/lib/chat/display/EmptyState.js +7 -35
- package/lib/chat/display/FloatingBrandButton.js +4 -34
- package/lib/chat/display/PoweredByTag.js +3 -14
- package/lib/chat/document/EphemeralDocument.js +3 -18
- package/lib/chat/header/ChatHeader.js +1 -17
- package/lib/chat/header/ChatHeaderBase.js +2 -24
- package/lib/chat/header/ChatViewModeToggle.js +7 -29
- package/lib/chat/indicators/McpStatusIndicator.js +3 -12
- package/lib/chat/indicators/SandboxStatusIndicator.js +6 -34
- package/lib/chat/indicators/SkillsStatusIndicator.js +3 -12
- package/lib/chat/indicators/TypingDots.js +1 -11
- package/lib/chat/messages/ChatMessageList.js +58 -185
- package/lib/chat/messages/ChatMessages.js +15 -79
- package/lib/chat/messages/FormSubmissionMessage.js +2 -33
- package/lib/chat/messages/NotebookToolSurfaces.js +12 -41
- package/lib/chat/messages/TurnFooter.js +4 -10
- package/lib/chat/notebook/EphemeralNotebook.js +2 -10
- package/lib/chat/parts/ReasoningPart.js +2 -16
- package/lib/chat/parts/TextPart.js +2 -12
- package/lib/chat/parts/ToolPart.js +16 -90
- package/lib/chat/presence/Presence.js +5 -33
- package/lib/chat/prompt/FloatingCard.js +1 -13
- package/lib/chat/prompt/InputPrompt.js +1 -6
- package/lib/chat/prompt/InputPromptBase.js +4 -17
- package/lib/chat/prompt/InputPromptLexical.js +44 -45
- package/lib/chat/prompt/InputPromptText.js +1 -1
- package/lib/chat/prompt/footer/InPromptFooter.js +1 -8
- package/lib/chat/prompt/menus/AgentsMenu.js +1 -1
- package/lib/chat/prompt/menus/InlineAgentsMenu.js +1 -1
- package/lib/chat/prompt/menus/ModelSelector.js +1 -5
- package/lib/chat/prompt/menus/SkillsMenu.js +3 -30
- package/lib/chat/prompt/menus/SuggestionsMenu.js +1 -1
- package/lib/chat/prompt/menus/ToolsMenu.js +4 -48
- package/lib/chat/prompt/plugins/AgentMentionPlugin.js +2 -9
- package/lib/chat/prompt/plugins/CommandPlugin.js +2 -9
- package/lib/chat/prompt/plugins/MentionChip.js +1 -15
- package/lib/chat/prompt/stack.js +1 -19
- package/lib/chat/tools/A2AAgentDialog.js +9 -42
- package/lib/chat/tools/SubagentActivity.js +5 -22
- package/lib/chat/tools/ToolApprovalBanner.js +4 -34
- package/lib/chat/tools/ToolApprovalDialog.js +4 -19
- package/lib/chat/tools/ToolCallDisplay.js +12 -97
- package/lib/chat/usage/ContextPie.js +4 -45
- package/lib/components/a2ui/datalayer/Chart.js +4 -10
- package/lib/components/a2ui/datalayer/Chat.js +2 -10
- package/lib/components/a2ui/datalayer/Download.js +1 -1
- package/lib/components/a2ui/datalayer/Evidence.js +1 -15
- package/lib/components/a2ui/datalayer/FileUpload.js +1 -12
- package/lib/components/a2ui/datalayer/Table.js +9 -17
- package/lib/components/a2ui/datalayer/formWidgets.js +3 -2
- package/lib/components/a2ui/datalayer/parts.js +1 -16
- package/lib/components/agents/AgentSummary.js +1 -51
- package/lib/components/cards/NotificationEventCard.js +6 -72
- package/lib/components/cards/OutputCard.js +4 -48
- package/lib/components/cards/ToolApprovalCard.js +2 -35
- package/lib/components/code-sandboxes/CodeSandboxCellVariables.js +1 -1
- package/lib/components/code-sandboxes/CodeSandboxEnvironmentSelect.js +4 -14
- package/lib/components/code-sandboxes/CodeSandboxPicker.js +16 -21
- package/lib/components/code-sandboxes/CodeSandboxVariables.js +2 -2
- package/lib/components/scheduler/ScheduleMenu.js +5 -10
- package/lib/components/specs/SpecPayloadPreview.js +1 -26
- package/lib/components/teams/A2ATeamGraph.d.ts +4 -3
- package/lib/components/teams/A2ATeamGraph.js +25 -71
- package/lib/components/teams/AnswerSurfacesView.js +2 -2
- package/lib/components/teams/NotebookPreview.js +1 -10
- package/lib/components/teams/NotebookPreviewView.js +2 -3
- package/lib/components/teams/SceneTranscript.js +3 -17
- package/lib/components/teams/SceneView.js +1 -8
- package/lib/components/teams/TeamNotebook.js +5 -13
- package/lib/components/teams/TeamNotebookView.js +2 -12
- package/lib/components/teams/index.d.ts +1 -0
- package/lib/components/teams/index.js +1 -0
- package/lib/components/teams/useBalloonRoom.d.ts +39 -0
- package/lib/components/teams/useBalloonRoom.js +89 -0
- package/lib/config/AgentConfiguration.js +22 -225
- package/lib/context/ContextDistribution.js +7 -41
- package/lib/context/ContextInspector.js +9 -107
- package/lib/context/ContextPanel.js +11 -86
- package/lib/context/ContextUsage.js +6 -34
- package/lib/context/CostTracker.js +7 -42
- package/lib/context/MessageHistory.js +3 -37
- package/lib/context/TurnGraphChart.js +9 -41
- package/lib/examples/A2UiAgentExample.js +6 -108
- package/lib/examples/A2UiComponentsGalleryExample.js +1 -1
- package/lib/examples/A2UiContactCardExample.js +1 -1
- package/lib/examples/A2UiJupyterOutputExample.js +25 -125
- package/lib/examples/A2UiRestaurantExample.js +1 -1
- package/lib/examples/A2UiViewerExample.js +1 -1
- package/lib/examples/AgUiAgenticExample.js +3 -35
- package/lib/examples/AgUiBackendToolRenderingExample.js +2 -25
- package/lib/examples/AgUiHaikuGenUiExample.js +2 -32
- package/lib/examples/AgUiHumanInTheLoopExample.js +5 -59
- package/lib/examples/AgUiSharedStateExample.js +6 -56
- package/lib/examples/AgUiToolsBasedGenUiExample.js +25 -120
- package/lib/examples/AgentA2AExample.js +1 -15
- package/lib/examples/AgentA2ATeamExample.js +6 -30
- package/lib/examples/AgentCheckpointsExample.js +11 -145
- package/lib/examples/AgentCodeSandboxExample.js +5 -108
- package/lib/examples/AgentCodeSandboxesExample.js +3 -30
- package/lib/examples/AgentCodemodeExample.js +9 -85
- package/lib/examples/AgentCompactionExample.js +3 -64
- package/lib/examples/AgentDecideExample.js +1 -13
- package/lib/examples/AgentEvalsExample.js +5 -60
- package/lib/examples/AgentGuardrailsExample.js +4 -28
- package/lib/examples/AgentHooksExample.js +1 -1
- package/lib/examples/AgentInferenceProviderExample.js +5 -96
- package/lib/examples/AgentMCPExample.js +7 -105
- package/lib/examples/AgentMemoryExample.js +5 -74
- package/lib/examples/AgentMonitoringExample.js +7 -53
- package/lib/examples/AgentNotificationsExample.js +3 -61
- package/lib/examples/AgentOtelExample.js +3 -72
- package/lib/examples/AgentOutputsExample.js +6 -81
- package/lib/examples/AgentParametersExample.js +2 -37
- package/lib/examples/AgentSkillsExample.js +3 -45
- package/lib/examples/AgentSubagentsExample.js +6 -56
- package/lib/examples/AgentToolApprovalsExample.js +1 -11
- package/lib/examples/AgentTriggersExample.js +29 -239
- package/lib/examples/AgentspecsExample.js +6 -60
- package/lib/examples/AssistantExample.js +5 -5
- package/lib/examples/AssistantGalleryExample.js +8 -65
- package/lib/examples/CellExample.js +1 -6
- package/lib/examples/ChatCustomExample.js +2 -31
- package/lib/examples/ChatExample.js +1 -9
- package/lib/examples/ChatStandaloneExample.js +3 -37
- package/lib/examples/CopilotKitLexicalExample.js +1 -24
- package/lib/examples/DecksAgent.js +1 -1
- package/lib/examples/DocumentPageAgent.js +1 -1
- package/lib/examples/HomeExample.js +14 -62
- package/lib/examples/Lexical2Example.js +3 -32
- package/lib/examples/LexicalAgentExample.js +2 -34
- package/lib/examples/LexicalAgentSidebarExample.js +3 -34
- package/lib/examples/LoopAppComputerExample.js +1 -1
- package/lib/examples/LoopShellExample.js +2 -2
- package/lib/examples/LoopStrategyExample.js +15 -87
- package/lib/examples/LoopWorkspaceEmbed.js +2 -18
- package/lib/examples/LoopWorkspaceExample.js +2 -2
- package/lib/examples/NotebookAgentExample.js +2 -33
- package/lib/examples/NotebookAgentSidebarExample.js +3 -46
- package/lib/examples/NotebookCollaborationExample.js +1 -31
- package/lib/examples/NotebookExample.js +1 -18
- package/lib/examples/NotebookPageAgent.js +1 -1
- package/lib/examples/ScenesExample.js +5 -24
- package/lib/examples/VoiceChatExample.js +1 -1
- package/lib/examples/components/AuthRequiredView.js +1 -7
- package/lib/examples/components/ErrorView.js +1 -8
- package/lib/examples/components/ExampleErrorBoundary.js +1 -14
- package/lib/examples/components/FooterMetrics.js +1 -7
- package/lib/examples/components/Header.js +12 -51
- package/lib/examples/components/HeaderControls.js +1 -9
- package/lib/examples/components/LexicalEditor.js +1 -8
- package/lib/examples/components/MainContent.js +1 -13
- package/lib/examples/components/MockFileBrowser.js +4 -40
- package/lib/examples/components/SessionTabs.js +1 -1
- package/lib/examples/components/TimeTravel.js +1 -13
- package/lib/examples/main.js +13 -81
- package/lib/examples/scenes/A2UiComponentsGalleryScene.js +3 -34
- package/lib/examples/scenes/A2UiContactCardScene.js +3 -35
- package/lib/examples/scenes/A2UiRestaurantScene.js +3 -53
- package/lib/examples/scenes/A2UiViewerScene.js +3 -34
- package/lib/examples/utils/AssistantGalleryGrid.js +6 -35
- package/lib/examples2/DatalayerNotebookExample.js +3 -33
- package/lib/examples2/NativeNavigationExample.js +4 -10
- package/lib/examples2/NotebookMutationsKernel.js +2 -1
- package/lib/examples2/NotebookMutationsServiceManager.js +2 -1
- package/lib/examples2/ReactRouterExample.js +14 -42
- package/lib/hooks/useToolApprovals.d.ts +2 -34
- package/lib/hooks/useToolApprovals.js +1 -64
- package/lib/identity/AgentIdentity.js +17 -62
- package/lib/identity/IdentityConnect.js +13 -59
- package/lib/identity/OAuthCallback.js +6 -44
- package/lib/lexical/ChatInlinePlugin.js +6 -14
- package/lib/loop/apps/AppRenderer.d.ts +4 -3
- package/lib/loop/apps/AppRenderer.js +11 -12
- package/lib/loop/apps/appspec.js +6 -3
- package/lib/loop/embed/AppEmbed.d.ts +1 -1
- package/lib/loop/embed/AppEmbed.js +2 -1
- package/lib/loop/embed/LoopEmbed.js +1 -7
- package/lib/loop/embed/embedConfig.d.ts +3 -3
- package/lib/loop/embed/embedConfig.js +2 -3
- package/lib/loop/embed/embedTheme.d.ts +4 -4
- package/lib/loop/embed/embedTheme.js +11 -7
- package/lib/loop/plugins/a2a-sidebar/A2ASidebar.js +7 -34
- package/lib/loop/plugins/a2ui/A2uiView.js +4 -12
- package/lib/loop/plugins/a2ui-surface/InlineSurface.js +1 -16
- package/lib/loop/plugins/a2ui-surface/SurfaceToolResult.js +2 -12
- package/lib/loop/plugins/agents/AnonymousKeyBadge.js +3 -2
- package/lib/loop/plugins/agents/SandboxSelector.js +3 -7
- package/lib/loop/plugins/agents/SandboxView.js +4 -27
- package/lib/loop/plugins/agents/TeamMemberPicker.js +2 -2
- package/lib/loop/plugins/agentspecs/AgentspecPicker.js +3 -2
- package/lib/loop/plugins/app-activity/AppActivity.js +1 -1
- package/lib/loop/plugins/app-computer/AppComputer.js +5 -21
- package/lib/loop/plugins/app-elements/AppElements.js +2 -31
- package/lib/loop/plugins/app-page/AppPage.js +1 -1
- package/lib/loop/plugins/app-rules/AppRulesCard.js +4 -20
- package/lib/loop/plugins/assistant/index.js +1 -13
- package/lib/loop/plugins/chat/ChatView.js +40 -106
- package/lib/loop/plugins/checkpoints-sidebar/CheckpointsSidebar.js +2 -13
- package/lib/loop/plugins/decks/DeckSurface.js +2 -2
- package/lib/loop/plugins/document/DocumentView.js +4 -12
- package/lib/loop/plugins/document-toolbar/SandboxStatusItem.js +3 -8
- package/lib/loop/plugins/graph/GraphView.js +2 -2
- package/lib/loop/plugins/input-prompt/ComposerView.js +1 -1
- package/lib/loop/plugins/notebook/NotebookView.js +3 -11
- package/lib/loop/plugins/page-layout/SplitLayout.js +11 -34
- package/lib/loop/plugins/page-layout/TurnPanel.js +9 -35
- package/lib/loop/plugins/shell/useEditorPreviews.js +3 -2
- package/lib/loop/plugins/subagent-activity/SubagentPulse.js +1 -13
- package/lib/loop/plugins/window-frame/WindowFrame.js +10 -44
- package/lib/loop/plugins/window-frame/index.js +1 -1
- package/lib/loop/shell/LoopWorkspace.js +34 -77
- package/lib/loop/shell/PluginToggles.js +4 -15
- package/lib/loop/shell/SidebarRail.js +8 -40
- package/lib/loop/shell/ViewSwitcher.js +4 -24
- package/lib/loop-main.js +2 -3
- package/lib/mcp/McpServerManager.js +6 -37
- package/lib/portable/index.d.ts +11 -0
- package/lib/portable/index.js +20 -0
- package/lib/protocols/AGUIAdapter.js +2 -2
- package/lib/protocols/BaseProtocolAdapter.d.ts +2 -0
- package/lib/protocols/BaseProtocolAdapter.js +4 -0
- package/lib/specs/apps.js +6 -0
- package/lib/specs/appspecSchema.js +11 -4
- package/lib/stories/loop/ReferenceScreens.js +17 -91
- package/lib/stories/loop/pictures-main.js +1 -1
- package/lib/types/agentspecs.d.ts +5 -2
- package/lib/types/protocol.d.ts +2 -0
- package/lib/utils/approvals.d.ts +59 -0
- package/lib/utils/approvals.js +101 -0
- package/lib/voice/VoiceInput.js +3 -39
- package/package.json +2 -2
- package/scripts/codegen/generate_envvars.py +0 -1
- package/lib/shims/primerAddonsBox.d.ts +0 -1
- package/lib/shims/primerAddonsBox.js +0 -7
|
@@ -239,38 +239,7 @@ export function AgentDetails({ name = 'AI Agent', icon, emoji, protocol, url, me
|
|
|
239
239
|
},
|
|
240
240
|
enabled: !!agentId && runtime,
|
|
241
241
|
});
|
|
242
|
-
return (_jsxs(Box, { sx: {
|
|
243
|
-
display: 'flex',
|
|
244
|
-
flexDirection: 'column',
|
|
245
|
-
height: '100%',
|
|
246
|
-
bg: 'canvas.default',
|
|
247
|
-
overflow: 'auto',
|
|
248
|
-
}, children: [showBackHeader && (_jsxs(Box, { sx: {
|
|
249
|
-
display: 'flex',
|
|
250
|
-
alignItems: 'center',
|
|
251
|
-
gap: 2,
|
|
252
|
-
p: 3,
|
|
253
|
-
borderBottom: '1px solid',
|
|
254
|
-
borderColor: 'border.default',
|
|
255
|
-
}, children: [_jsx(IconButton, { icon: ArrowLeftIcon, "aria-label": "Back to chat", variant: "invisible", onClick: onBack }), _jsx(Heading, { as: "h2", sx: { fontSize: 3, fontWeight: 'semibold' }, children: "Agent Details" })] })), _jsxs(Box, { sx: {
|
|
256
|
-
p: padded ? 3 : 0,
|
|
257
|
-
display: 'flex',
|
|
258
|
-
flexDirection: 'column',
|
|
259
|
-
gap: 4,
|
|
260
|
-
}, children: [_jsxs(Box, { sx: {
|
|
261
|
-
display: 'flex',
|
|
262
|
-
alignItems: 'center',
|
|
263
|
-
gap: 3,
|
|
264
|
-
p: 3,
|
|
265
|
-
bg: 'canvas.subtle',
|
|
266
|
-
borderRadius: 2,
|
|
267
|
-
border: '1px solid',
|
|
268
|
-
borderColor: 'border.default',
|
|
269
|
-
}, children: [_jsx(Box, { sx: {
|
|
270
|
-
p: 2,
|
|
271
|
-
bg: 'accent.subtle',
|
|
272
|
-
borderRadius: 2,
|
|
273
|
-
}, children: icon ? (_jsx(Box, { sx: { display: 'inline-flex', color: 'accent.fg' }, children: icon })) : emoji ? (_jsx(Text, { sx: { fontSize: 5, lineHeight: 1 }, children: emoji })) : (_jsx(AiAgentIcon, { colored: true, size: 32 })) }), _jsxs(Box, { sx: { flex: 1 }, children: [_jsx(Heading, { as: "h3", sx: { fontSize: 2, fontWeight: 'semibold', mb: 1 }, children: name }), agentId && (_jsxs(Text, { sx: { fontSize: 0, color: 'fg.muted' }, children: ["ID: ", agentId] }))] })] }), summary &&
|
|
242
|
+
return (_jsxs(Box, { display: "flex", flexDirection: "column", height: "100%", bg: "canvas.default", overflow: "auto", children: [showBackHeader && (_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, p: 3, borderBottom: "1px solid", borderColor: "border.default", children: [_jsx(IconButton, { icon: ArrowLeftIcon, "aria-label": "Back to chat", variant: "invisible", onClick: onBack }), _jsx(Heading, { as: "h2", sx: { fontSize: 3, fontWeight: 'semibold' }, children: "Agent Details" })] })), _jsxs(Box, { p: padded ? 3 : 0, display: "flex", flexDirection: "column", gap: 4, children: [_jsxs(Box, { display: "flex", alignItems: "center", gap: 3, p: 3, bg: "canvas.subtle", borderRadius: 2, border: "1px solid", borderColor: "border.default", children: [_jsx(Box, { p: 2, bg: "accent.subtle", borderRadius: 2, children: icon ? (_jsx(Box, { display: "inline-flex", color: "accent.fg", children: icon })) : emoji ? (_jsx(Text, { sx: { fontSize: 5, lineHeight: 1 }, children: emoji })) : (_jsx(AiAgentIcon, { colored: true, size: 32 })) }), _jsxs(Box, { flex: 1, children: [_jsx(Heading, { as: "h3", sx: { fontSize: 2, fontWeight: 'semibold', mb: 1 }, children: name }), agentId && (_jsxs(Text, { sx: { fontSize: 0, color: 'fg.muted' }, children: ["ID: ", agentId] }))] })] }), summary &&
|
|
274
243
|
(summary.spec ||
|
|
275
244
|
summary.model ||
|
|
276
245
|
summary.where ||
|
|
@@ -280,33 +249,18 @@ export function AgentDetails({ name = 'AI Agent', icon, emoji, protocol, url, me
|
|
|
280
249
|
fontWeight: 'semibold',
|
|
281
250
|
mb: 2,
|
|
282
251
|
color: 'fg.muted',
|
|
283
|
-
}, children: "Agent" }), _jsxs(Box, { sx: {
|
|
284
|
-
p: 3,
|
|
285
|
-
bg: 'canvas.subtle',
|
|
286
|
-
borderRadius: 2,
|
|
287
|
-
border: '1px solid',
|
|
288
|
-
borderColor: 'border.default',
|
|
289
|
-
display: 'flex',
|
|
290
|
-
flexDirection: 'column',
|
|
291
|
-
gap: 1,
|
|
292
|
-
}, children: [summary.description && (_jsx(Text, { as: "p", sx: { fontSize: 1, m: 0, mb: 1 }, children: summary.description })), [
|
|
252
|
+
}, children: "Agent" }), _jsxs(Box, { p: 3, bg: "canvas.subtle", borderRadius: 2, border: "1px solid", borderColor: "border.default", display: "flex", flexDirection: "column", gap: 1, children: [summary.description && (_jsx(Text, { as: "p", sx: { fontSize: 1, m: 0, mb: 1 }, children: summary.description })), [
|
|
293
253
|
['Spec', summary.spec],
|
|
294
254
|
['Model', summary.model],
|
|
295
255
|
['Runs', summary.where],
|
|
296
256
|
]
|
|
297
257
|
.filter(([, value]) => value)
|
|
298
|
-
.map(([key, value]) => (_jsxs(Box, {
|
|
258
|
+
.map(([key, value]) => (_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsxs(Text, { sx: { fontSize: 0, color: 'fg.muted', width: 100 }, children: [key, ":"] }), _jsx(Text, { sx: { fontSize: 0, fontFamily: 'mono' }, children: value })] }, key))), summary.skills && summary.skills.length > 0 && (_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: { fontSize: 0, color: 'fg.muted', width: 100 }, children: "Skills:" }), _jsx(Box, { display: "flex", gap: 1, flexWrap: "wrap", children: summary.skills.map(skill => (_jsx(Label, { variant: "secondary", size: "small", children: skill }, skill))) })] }))] })] })), url && (_jsx(_Fragment, { children: _jsxs(Box, { children: [_jsx(Heading, { as: "h4", sx: {
|
|
299
259
|
fontSize: 1,
|
|
300
260
|
fontWeight: 'semibold',
|
|
301
261
|
mb: 2,
|
|
302
262
|
color: 'fg.muted',
|
|
303
|
-
}, children: "Connection" }), _jsx(Box, { sx: {
|
|
304
|
-
p: 3,
|
|
305
|
-
bg: 'canvas.subtle',
|
|
306
|
-
borderRadius: 2,
|
|
307
|
-
border: '1px solid',
|
|
308
|
-
borderColor: 'border.default',
|
|
309
|
-
}, children: _jsxs(Box, { sx: { display: 'flex', alignItems: 'center', gap: 2 }, children: [_jsx(Label, { variant: "accent", size: "small", children: protocol.toUpperCase().replace(/-/g, ' ') }), _jsx(Text, { sx: {
|
|
263
|
+
}, children: "Connection" }), _jsx(Box, { p: 3, bg: "canvas.subtle", borderRadius: 2, border: "1px solid", borderColor: "border.default", children: _jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Label, { variant: "accent", size: "small", children: protocol.toUpperCase().replace(/-/g, ' ') }), _jsx(Text, { sx: {
|
|
310
264
|
fontSize: 1,
|
|
311
265
|
fontFamily: 'mono',
|
|
312
266
|
wordBreak: 'break-all',
|
|
@@ -315,60 +269,30 @@ export function AgentDetails({ name = 'AI Agent', icon, emoji, protocol, url, me
|
|
|
315
269
|
fontWeight: 'semibold',
|
|
316
270
|
mb: 2,
|
|
317
271
|
color: 'fg.muted',
|
|
318
|
-
}, children: "Agentspec" }), _jsx(Box, { sx: {
|
|
319
|
-
p: 3,
|
|
320
|
-
bg: 'canvas.subtle',
|
|
321
|
-
borderRadius: 2,
|
|
322
|
-
border: '1px solid',
|
|
323
|
-
borderColor: 'border.default',
|
|
324
|
-
}, children: specLoading ? (_jsxs(Box, { sx: { display: 'flex', alignItems: 'center', gap: 2 }, children: [_jsx(Spinner, { size: "small" }), _jsx(Text, { sx: { fontSize: 1, color: 'fg.muted' }, children: "Loading agent spec..." })] })) : agentSpec ? (_jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', gap: 3 }, children: [_jsx(Box, { children: _jsx(Button, { size: "small", leadingVisual: FileCodeIcon, onClick: () => setShowSpecPayload(true), children: "View spec payload" }) }), _jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', gap: 1 }, children: [_jsxs(Box, { sx: { display: 'flex', alignItems: 'center', gap: 2 }, children: [_jsx(Text, { sx: { fontSize: 0, color: 'fg.muted', width: 100 }, children: "Model:" }), _jsx(Text, { sx: {
|
|
272
|
+
}, children: "Agentspec" }), _jsx(Box, { p: 3, bg: "canvas.subtle", borderRadius: 2, border: "1px solid", borderColor: "border.default", children: specLoading ? (_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Spinner, { size: "small" }), _jsx(Text, { sx: { fontSize: 1, color: 'fg.muted' }, children: "Loading agent spec..." })] })) : agentSpec ? (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 3, children: [_jsx(Box, { children: _jsx(Button, { size: "small", leadingVisual: FileCodeIcon, onClick: () => setShowSpecPayload(true), children: "View spec payload" }) }), _jsxs(Box, { display: "flex", flexDirection: "column", gap: 1, children: [_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: { fontSize: 0, color: 'fg.muted', width: 100 }, children: "Model:" }), _jsx(Text, { sx: {
|
|
325
273
|
fontSize: 0,
|
|
326
274
|
fontFamily: 'mono',
|
|
327
275
|
color: 'fg.default',
|
|
328
|
-
}, children: agentSpec.model })] }), _jsxs(Box, {
|
|
329
|
-
agentSpec.skills.length > 0 && (_jsxs(Box, { sx: {
|
|
330
|
-
display: 'flex',
|
|
331
|
-
alignItems: 'center',
|
|
332
|
-
gap: 2,
|
|
333
|
-
}, children: [_jsx(Text, { sx: {
|
|
276
|
+
}, children: agentSpec.model })] }), _jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: { fontSize: 0, color: 'fg.muted', width: 100 }, children: "Library:" }), _jsx(Label, { variant: "secondary", size: "small", children: agentSpec.agent_library })] }), _jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: { fontSize: 0, color: 'fg.muted', width: 100 }, children: "Codemode:" }), _jsx(Label, { variant: agentSpec.enable_codemode ? 'accent' : 'secondary', size: "small", children: agentSpec.enable_codemode ? 'Enabled' : 'Disabled' })] }), agentSpec.enable_skills &&
|
|
277
|
+
agentSpec.skills.length > 0 && (_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: {
|
|
334
278
|
fontSize: 0,
|
|
335
279
|
color: 'fg.muted',
|
|
336
280
|
width: 100,
|
|
337
|
-
}, children: "Skills:" }), _jsx(Box, {
|
|
281
|
+
}, children: "Skills:" }), _jsx(Box, { display: "flex", gap: 1, flexWrap: "wrap", children: agentSpec.skills.map(skill => (_jsx(Label, { variant: "secondary", size: "small", children: skill }, skill))) })] }))] }), _jsxs(Box, { display: "flex", flexDirection: "column", gap: 1, children: [_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(NoteIcon, { size: 16 }), _jsx(Text, { sx: {
|
|
338
282
|
fontSize: 0,
|
|
339
283
|
fontWeight: 'semibold',
|
|
340
284
|
color: 'fg.muted',
|
|
341
|
-
}, children: "System Prompt" })] }), _jsx(Box, { sx: {
|
|
342
|
-
p: 2,
|
|
343
|
-
bg: 'canvas.default',
|
|
344
|
-
borderRadius: 2,
|
|
345
|
-
border: '1px solid',
|
|
346
|
-
borderColor: 'border.default',
|
|
347
|
-
maxHeight: 200,
|
|
348
|
-
overflow: 'auto',
|
|
349
|
-
}, children: _jsx(Text, { sx: {
|
|
285
|
+
}, children: "System Prompt" })] }), _jsx(Box, { p: 2, bg: "canvas.default", borderRadius: 2, border: "1px solid", borderColor: "border.default", maxHeight: 200, overflow: "auto", children: _jsx(Text, { sx: {
|
|
350
286
|
fontSize: 0,
|
|
351
287
|
fontFamily: 'mono',
|
|
352
288
|
whiteSpace: 'pre-wrap',
|
|
353
289
|
wordBreak: 'break-word',
|
|
354
290
|
color: 'fg.default',
|
|
355
|
-
}, children: agentSpec.system_prompt }) })] }), agentSpec.system_prompt_codemode_addons && (_jsxs(Box, { sx: {
|
|
356
|
-
display: 'flex',
|
|
357
|
-
flexDirection: 'column',
|
|
358
|
-
gap: 1,
|
|
359
|
-
}, children: [_jsxs(Box, { sx: { display: 'flex', alignItems: 'center', gap: 2 }, children: [_jsx(CodeIcon, { size: 16 }), _jsx(Text, { sx: {
|
|
291
|
+
}, children: agentSpec.system_prompt }) })] }), agentSpec.system_prompt_codemode_addons && (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 1, children: [_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(CodeIcon, { size: 16 }), _jsx(Text, { sx: {
|
|
360
292
|
fontSize: 0,
|
|
361
293
|
fontWeight: 'semibold',
|
|
362
294
|
color: 'fg.muted',
|
|
363
|
-
}, children: "Codemode Addon Prompt" }), agentSpec.enable_codemode ? (_jsx(Label, { variant: "accent", size: "small", children: "Active" })) : (_jsx(Label, { variant: "secondary", size: "small", children: "Inactive" }))] }), _jsx(Box, { sx: {
|
|
364
|
-
p: 2,
|
|
365
|
-
bg: 'canvas.default',
|
|
366
|
-
borderRadius: 2,
|
|
367
|
-
border: '1px solid',
|
|
368
|
-
borderColor: 'border.default',
|
|
369
|
-
maxHeight: 200,
|
|
370
|
-
overflow: 'auto',
|
|
371
|
-
}, children: _jsx(Text, { sx: {
|
|
295
|
+
}, children: "Codemode Addon Prompt" }), agentSpec.enable_codemode ? (_jsx(Label, { variant: "accent", size: "small", children: "Active" })) : (_jsx(Label, { variant: "secondary", size: "small", children: "Inactive" }))] }), _jsx(Box, { p: 2, bg: "canvas.default", borderRadius: 2, border: "1px solid", borderColor: "border.default", maxHeight: 200, overflow: "auto", children: _jsx(Text, { sx: {
|
|
372
296
|
fontSize: 0,
|
|
373
297
|
fontFamily: 'mono',
|
|
374
298
|
whiteSpace: 'pre-wrap',
|
|
@@ -379,28 +303,14 @@ export function AgentDetails({ name = 'AI Agent', icon, emoji, protocol, url, me
|
|
|
379
303
|
fontWeight: 'semibold',
|
|
380
304
|
mb: 2,
|
|
381
305
|
color: 'fg.muted',
|
|
382
|
-
}, children: "Code Sandbox" }), _jsx(Box, { sx: {
|
|
383
|
-
p: 3,
|
|
384
|
-
bg: 'canvas.subtle',
|
|
385
|
-
borderRadius: 2,
|
|
386
|
-
border: '1px solid',
|
|
387
|
-
borderColor: 'border.default',
|
|
388
|
-
}, children: _jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', gap: 2 }, children: [_jsxs(Box, { sx: { display: 'flex', alignItems: 'center', gap: 2 }, children: [_jsx(ServerIcon, { size: 16 }), _jsx(Text, { sx: { fontSize: 0, color: 'fg.muted', width: 100 }, children: "Variant:" }), _jsx(Label, { variant: agentSpec.sandbox.variant === 'jupyter-server'
|
|
306
|
+
}, children: "Code Sandbox" }), _jsx(Box, { p: 3, bg: "canvas.subtle", borderRadius: 2, border: "1px solid", borderColor: "border.default", children: _jsxs(Box, { display: "flex", flexDirection: "column", gap: 2, children: [_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(ServerIcon, { size: 16 }), _jsx(Text, { sx: { fontSize: 0, color: 'fg.muted', width: 100 }, children: "Variant:" }), _jsx(Label, { variant: agentSpec.sandbox.variant === 'jupyter-server'
|
|
389
307
|
? 'accent'
|
|
390
|
-
: 'secondary', size: "small", children: agentSpec.sandbox.variant })] }), _jsxs(Box, {
|
|
308
|
+
: 'secondary', size: "small", children: agentSpec.sandbox.variant })] }), _jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: {
|
|
391
309
|
fontSize: 0,
|
|
392
310
|
color: 'fg.muted',
|
|
393
311
|
width: 100,
|
|
394
312
|
pl: 4,
|
|
395
|
-
}, children: "Running:" }), agentSpec.sandbox.sandbox_running ? (_jsxs(Box, { sx: {
|
|
396
|
-
display: 'flex',
|
|
397
|
-
alignItems: 'center',
|
|
398
|
-
gap: 1,
|
|
399
|
-
}, children: [_jsx(CheckCircleIcon, { size: 12, fill: "success.fg" }), _jsx(Text, { sx: { fontSize: 0, color: 'success.fg' }, children: "Yes" })] })) : (_jsxs(Box, { sx: {
|
|
400
|
-
display: 'flex',
|
|
401
|
-
alignItems: 'center',
|
|
402
|
-
gap: 1,
|
|
403
|
-
}, children: [_jsx(XCircleIcon, { size: 12, fill: "fg.muted" }), _jsx(Text, { sx: { fontSize: 0, color: 'fg.muted' }, children: "No" })] }))] }), agentSpec.sandbox.variant === 'jupyter-server' && (_jsxs(_Fragment, { children: [_jsxs(Box, { sx: { display: 'flex', alignItems: 'center', gap: 2 }, children: [_jsx(Text, { sx: {
|
|
313
|
+
}, children: "Running:" }), agentSpec.sandbox.sandbox_running ? (_jsxs(Box, { display: "flex", alignItems: "center", gap: 1, children: [_jsx(CheckCircleIcon, { size: 12, fill: "success.fg" }), _jsx(Text, { sx: { fontSize: 0, color: 'success.fg' }, children: "Yes" })] })) : (_jsxs(Box, { display: "flex", alignItems: "center", gap: 1, children: [_jsx(XCircleIcon, { size: 12, fill: "fg.muted" }), _jsx(Text, { sx: { fontSize: 0, color: 'fg.muted' }, children: "No" })] }))] }), agentSpec.sandbox.variant === 'jupyter-server' && (_jsxs(_Fragment, { children: [_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: {
|
|
404
314
|
fontSize: 0,
|
|
405
315
|
color: 'fg.muted',
|
|
406
316
|
width: 100,
|
|
@@ -414,30 +324,18 @@ export function AgentDetails({ name = 'AI Agent', icon, emoji, protocol, url, me
|
|
|
414
324
|
whiteSpace: 'nowrap',
|
|
415
325
|
}, children: agentSpec.jupyter_sandbox ||
|
|
416
326
|
agentSpec.sandbox.jupyter_url ||
|
|
417
|
-
'Not configured' })] }), _jsxs(Box, {
|
|
327
|
+
'Not configured' })] }), _jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: {
|
|
418
328
|
fontSize: 0,
|
|
419
329
|
color: 'fg.muted',
|
|
420
330
|
width: 100,
|
|
421
331
|
pl: 4,
|
|
422
|
-
}, children: "Connection:" }), agentSpec.sandbox.jupyter_connected ? (_jsxs(Box, { sx: {
|
|
423
|
-
display: 'flex',
|
|
424
|
-
alignItems: 'center',
|
|
425
|
-
gap: 1,
|
|
426
|
-
}, children: [_jsx(CheckCircleIcon, { size: 12, fill: "success.fg" }), _jsx(Text, { sx: { fontSize: 0, color: 'success.fg' }, children: "Connected" })] })) : (_jsxs(Box, { sx: {
|
|
427
|
-
display: 'flex',
|
|
428
|
-
flexDirection: 'column',
|
|
429
|
-
gap: 1,
|
|
430
|
-
}, children: [_jsxs(Box, { sx: {
|
|
431
|
-
display: 'flex',
|
|
432
|
-
alignItems: 'center',
|
|
433
|
-
gap: 1,
|
|
434
|
-
}, children: [_jsx(XCircleIcon, { size: 12, fill: "danger.fg" }), _jsx(Text, { sx: { fontSize: 0, color: 'danger.fg' }, children: "Not Connected" })] }), agentSpec.sandbox.jupyter_error && (_jsx(Text, { sx: {
|
|
332
|
+
}, children: "Connection:" }), agentSpec.sandbox.jupyter_connected ? (_jsxs(Box, { display: "flex", alignItems: "center", gap: 1, children: [_jsx(CheckCircleIcon, { size: 12, fill: "success.fg" }), _jsx(Text, { sx: { fontSize: 0, color: 'success.fg' }, children: "Connected" })] })) : (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 1, children: [_jsxs(Box, { display: "flex", alignItems: "center", gap: 1, children: [_jsx(XCircleIcon, { size: 12, fill: "danger.fg" }), _jsx(Text, { sx: { fontSize: 0, color: 'danger.fg' }, children: "Not Connected" })] }), agentSpec.sandbox.jupyter_error && (_jsx(Text, { sx: {
|
|
435
333
|
fontSize: 0,
|
|
436
334
|
color: 'danger.fg',
|
|
437
335
|
fontFamily: 'mono',
|
|
438
336
|
whiteSpace: 'pre-wrap',
|
|
439
337
|
wordBreak: 'break-word',
|
|
440
|
-
}, children: agentSpec.sandbox.jupyter_error }))] }))] })] })), agentSpec.sandbox.generated_path && (_jsxs(Box, {
|
|
338
|
+
}, children: agentSpec.sandbox.jupyter_error }))] }))] })] })), agentSpec.sandbox.generated_path && (_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: {
|
|
441
339
|
fontSize: 0,
|
|
442
340
|
color: 'fg.muted',
|
|
443
341
|
width: 100,
|
|
@@ -449,7 +347,7 @@ export function AgentDetails({ name = 'AI Agent', icon, emoji, protocol, url, me
|
|
|
449
347
|
overflow: 'hidden',
|
|
450
348
|
textOverflow: 'ellipsis',
|
|
451
349
|
whiteSpace: 'nowrap',
|
|
452
|
-
}, title: agentSpec.sandbox.generated_path, children: agentSpec.sandbox.generated_path })] })), agentSpec.sandbox.skills_path && (_jsxs(Box, {
|
|
350
|
+
}, title: agentSpec.sandbox.generated_path, children: agentSpec.sandbox.generated_path })] })), agentSpec.sandbox.skills_path && (_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: {
|
|
453
351
|
fontSize: 0,
|
|
454
352
|
color: 'fg.muted',
|
|
455
353
|
width: 100,
|
|
@@ -461,7 +359,7 @@ export function AgentDetails({ name = 'AI Agent', icon, emoji, protocol, url, me
|
|
|
461
359
|
overflow: 'hidden',
|
|
462
360
|
textOverflow: 'ellipsis',
|
|
463
361
|
whiteSpace: 'nowrap',
|
|
464
|
-
}, title: agentSpec.sandbox.skills_path, children: agentSpec.sandbox.skills_path })] })), agentSpec.sandbox.python_path && (_jsxs(Box, {
|
|
362
|
+
}, title: agentSpec.sandbox.skills_path, children: agentSpec.sandbox.skills_path })] })), agentSpec.sandbox.python_path && (_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: {
|
|
465
363
|
fontSize: 0,
|
|
466
364
|
color: 'fg.muted',
|
|
467
365
|
width: 100,
|
|
@@ -478,43 +376,15 @@ export function AgentDetails({ name = 'AI Agent', icon, emoji, protocol, url, me
|
|
|
478
376
|
fontWeight: 'semibold',
|
|
479
377
|
mb: 2,
|
|
480
378
|
color: 'fg.muted',
|
|
481
|
-
}, children: "Config MCP Servers" }), _jsx(Box, { sx: {
|
|
482
|
-
p: 3,
|
|
483
|
-
bg: 'canvas.subtle',
|
|
484
|
-
borderRadius: 2,
|
|
485
|
-
border: '1px solid',
|
|
486
|
-
borderColor: 'border.default',
|
|
487
|
-
}, children: !hasMcpLiveData && mcpLoading ? (_jsxs(Box, { sx: { display: 'flex', alignItems: 'center', gap: 2 }, children: [_jsx(Spinner, { size: "small" }), _jsx(Text, { sx: { fontSize: 1, color: 'fg.muted' }, children: "Loading MCP status..." })] })) : mcpStatus ? (_jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', gap: 2 }, children: [_jsx(Box, { sx: { display: 'flex', alignItems: 'center', gap: 2 }, children: _jsxs(Text, { sx: { fontSize: 1 }, children: [_jsx(Text, { as: "span", sx: { fontWeight: 'semibold' }, children: mcpStatus.ready_count }), ' ', "ready,", ' ', _jsx(Text, { as: "span", sx: { fontWeight: 'semibold' }, children: mcpStatus.failed_count }), ' ', "failed"] }) }), mcpStatus.ready_servers.length > 0 && (_jsxs(Box, { sx: {
|
|
488
|
-
display: 'flex',
|
|
489
|
-
flexDirection: 'column',
|
|
490
|
-
gap: 1,
|
|
491
|
-
}, children: [_jsx(Text, { sx: {
|
|
379
|
+
}, children: "Config MCP Servers" }), _jsx(Box, { p: 3, bg: "canvas.subtle", borderRadius: 2, border: "1px solid", borderColor: "border.default", children: !hasMcpLiveData && mcpLoading ? (_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Spinner, { size: "small" }), _jsx(Text, { sx: { fontSize: 1, color: 'fg.muted' }, children: "Loading MCP status..." })] })) : mcpStatus ? (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 2, children: [_jsx(Box, { display: "flex", alignItems: "center", gap: 2, children: _jsxs(Text, { sx: { fontSize: 1 }, children: [_jsx(Text, { as: "span", sx: { fontWeight: 'semibold' }, children: mcpStatus.ready_count }), ' ', "ready,", ' ', _jsx(Text, { as: "span", sx: { fontWeight: 'semibold' }, children: mcpStatus.failed_count }), ' ', "failed"] }) }), mcpStatus.ready_servers.length > 0 && (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 1, children: [_jsx(Text, { sx: {
|
|
492
380
|
fontSize: 0,
|
|
493
381
|
fontWeight: 'semibold',
|
|
494
382
|
color: 'fg.muted',
|
|
495
|
-
}, children: "Ready:" }), mcpStatus.ready_servers.map(server => (_jsxs(Box, { sx: {
|
|
496
|
-
display: 'flex',
|
|
497
|
-
alignItems: 'center',
|
|
498
|
-
gap: 2,
|
|
499
|
-
pl: 2,
|
|
500
|
-
}, children: [_jsx(CheckCircleIcon, { size: 16, fill: "success.fg" }), _jsx(Text, { sx: { fontSize: 1 }, children: server })] }, server)))] })), Object.keys(mcpStatus.failed_servers).length > 0 && (_jsxs(Box, { sx: {
|
|
501
|
-
display: 'flex',
|
|
502
|
-
flexDirection: 'column',
|
|
503
|
-
gap: 1,
|
|
504
|
-
}, children: [_jsx(Text, { sx: {
|
|
383
|
+
}, children: "Ready:" }), mcpStatus.ready_servers.map(server => (_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, pl: 2, children: [_jsx(CheckCircleIcon, { size: 16, fill: "success.fg" }), _jsx(Text, { sx: { fontSize: 1 }, children: server })] }, server)))] })), Object.keys(mcpStatus.failed_servers).length > 0 && (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 1, children: [_jsx(Text, { sx: {
|
|
505
384
|
fontSize: 0,
|
|
506
385
|
fontWeight: 'semibold',
|
|
507
386
|
color: 'fg.muted',
|
|
508
|
-
}, children: "Failed:" }), Object.entries(mcpStatus.failed_servers).map(([server, error]) => (_jsxs(Box, { sx: {
|
|
509
|
-
display: 'flex',
|
|
510
|
-
flexDirection: 'column',
|
|
511
|
-
gap: 1,
|
|
512
|
-
pl: 2,
|
|
513
|
-
}, children: [_jsxs(Box, { sx: {
|
|
514
|
-
display: 'flex',
|
|
515
|
-
alignItems: 'center',
|
|
516
|
-
gap: 2,
|
|
517
|
-
}, children: [_jsx(XCircleIcon, { size: 16, fill: "danger.fg" }), _jsx(Text, { sx: { fontSize: 1 }, children: server })] }), _jsx(Text, { sx: {
|
|
387
|
+
}, children: "Failed:" }), Object.entries(mcpStatus.failed_servers).map(([server, error]) => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 1, pl: 2, children: [_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(XCircleIcon, { size: 16, fill: "danger.fg" }), _jsx(Text, { sx: { fontSize: 1 }, children: server })] }), _jsx(Text, { sx: {
|
|
518
388
|
fontSize: 0,
|
|
519
389
|
color: 'danger.fg',
|
|
520
390
|
fontFamily: 'mono',
|
|
@@ -526,51 +396,19 @@ export function AgentDetails({ name = 'AI Agent', icon, emoji, protocol, url, me
|
|
|
526
396
|
fontWeight: 'semibold',
|
|
527
397
|
mb: 2,
|
|
528
398
|
color: 'fg.muted',
|
|
529
|
-
}, children: "Codemode" }), _jsx(Box, { sx: {
|
|
530
|
-
p: 3,
|
|
531
|
-
bg: 'canvas.subtle',
|
|
532
|
-
borderRadius: 2,
|
|
533
|
-
border: '1px solid',
|
|
534
|
-
borderColor: 'border.default',
|
|
535
|
-
}, children: !hasCodemodeLiveData && codemodeLoading ? (_jsxs(Box, { sx: { display: 'flex', alignItems: 'center', gap: 2 }, children: [_jsx(Spinner, { size: "small" }), _jsx(Text, { sx: { fontSize: 1, color: 'fg.muted' }, children: "Loading Codemode status..." })] })) : codemodeStatus ? (_jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', gap: 3 }, children: [_jsxs(Box, { sx: {
|
|
536
|
-
display: 'flex',
|
|
537
|
-
alignItems: 'center',
|
|
538
|
-
justifyContent: 'space-between',
|
|
539
|
-
}, children: [_jsxs(Box, { sx: { display: 'flex', alignItems: 'center', gap: 2 }, children: [_jsx(CodeIcon, { size: 16 }), _jsxs(Box, { children: [_jsx(Text, { id: "codemode-toggle-label", sx: { fontSize: 1, fontWeight: 'semibold' }, children: "Codemode" }), _jsx(Text, { sx: {
|
|
399
|
+
}, children: "Codemode" }), _jsx(Box, { p: 3, bg: "canvas.subtle", borderRadius: 2, border: "1px solid", borderColor: "border.default", children: !hasCodemodeLiveData && codemodeLoading ? (_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Spinner, { size: "small" }), _jsx(Text, { sx: { fontSize: 1, color: 'fg.muted' }, children: "Loading Codemode status..." })] })) : codemodeStatus ? (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 3, children: [_jsxs(Box, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(CodeIcon, { size: 16 }), _jsxs(Box, { children: [_jsx(Text, { id: "codemode-toggle-label", sx: { fontSize: 1, fontWeight: 'semibold' }, children: "Codemode" }), _jsx(Text, { sx: {
|
|
540
400
|
fontSize: 0,
|
|
541
401
|
color: 'fg.muted',
|
|
542
402
|
marginLeft: 1,
|
|
543
|
-
}, children: "MCP servers become programmatic tools" })] })] }), _jsx(ToggleSwitch, { "aria-labelledby": "codemode-toggle-label", checked: codemodeStatus.enabled, onClick: () => toggleCodemodeMutation.mutate(!codemodeStatus.enabled), disabled: toggleCodemodeMutation.isPending, size: "small" })] }), codemodeStatus.sandbox && (_jsxs(Box, { sx: {
|
|
544
|
-
display: 'flex',
|
|
545
|
-
flexDirection: 'column',
|
|
546
|
-
gap: 2,
|
|
547
|
-
p: 2,
|
|
548
|
-
bg: 'canvas.default',
|
|
549
|
-
borderRadius: 2,
|
|
550
|
-
border: '1px solid',
|
|
551
|
-
borderColor: 'border.default',
|
|
552
|
-
}, children: [_jsxs(Box, { sx: { display: 'flex', alignItems: 'center', gap: 2 }, children: [_jsx(CodeIcon, { size: 16 }), _jsx(Text, { sx: {
|
|
403
|
+
}, children: "MCP servers become programmatic tools" })] })] }), _jsx(ToggleSwitch, { "aria-labelledby": "codemode-toggle-label", checked: codemodeStatus.enabled, onClick: () => toggleCodemodeMutation.mutate(!codemodeStatus.enabled), disabled: toggleCodemodeMutation.isPending, size: "small" })] }), codemodeStatus.sandbox && (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 2, p: 2, bg: "canvas.default", borderRadius: 2, border: "1px solid", borderColor: "border.default", children: [_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(CodeIcon, { size: 16 }), _jsx(Text, { sx: {
|
|
553
404
|
fontSize: 0,
|
|
554
405
|
fontWeight: 'semibold',
|
|
555
406
|
color: 'fg.muted',
|
|
556
|
-
}, children: "Code Sandbox" })] }), _jsxs(Box, { sx: {
|
|
557
|
-
display: 'flex',
|
|
558
|
-
flexDirection: 'column',
|
|
559
|
-
gap: 1,
|
|
560
|
-
pl: 4,
|
|
561
|
-
}, children: [_jsxs(Box, { sx: {
|
|
562
|
-
display: 'flex',
|
|
563
|
-
alignItems: 'center',
|
|
564
|
-
gap: 2,
|
|
565
|
-
}, children: [_jsx(Text, { sx: { fontSize: 0, color: 'fg.muted', width: 80 }, children: "Variant:" }), _jsx(Label, { variant: codemodeStatus.sandbox.variant ===
|
|
407
|
+
}, children: "Code Sandbox" })] }), _jsxs(Box, { display: "flex", flexDirection: "column", gap: 1, pl: 4, children: [_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: { fontSize: 0, color: 'fg.muted', width: 80 }, children: "Variant:" }), _jsx(Label, { variant: codemodeStatus.sandbox.variant ===
|
|
566
408
|
'jupyter-server'
|
|
567
409
|
? 'accent'
|
|
568
410
|
: 'secondary', size: "small", children: codemodeStatus.sandbox.variant })] }), codemodeStatus.sandbox.variant ===
|
|
569
|
-
'jupyter-server' && (_jsxs(_Fragment, { children: [_jsxs(Box, { sx: {
|
|
570
|
-
display: 'flex',
|
|
571
|
-
alignItems: 'center',
|
|
572
|
-
gap: 2,
|
|
573
|
-
}, children: [_jsx(Text, { sx: {
|
|
411
|
+
'jupyter-server' && (_jsxs(_Fragment, { children: [_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: {
|
|
574
412
|
fontSize: 0,
|
|
575
413
|
color: 'fg.muted',
|
|
576
414
|
width: 80,
|
|
@@ -582,49 +420,17 @@ export function AgentDetails({ name = 'AI Agent', icon, emoji, protocol, url, me
|
|
|
582
420
|
textOverflow: 'ellipsis',
|
|
583
421
|
whiteSpace: 'nowrap',
|
|
584
422
|
}, children: codemodeStatus.sandbox.jupyter_url ||
|
|
585
|
-
'Not configured' })] }), _jsxs(Box, { sx: {
|
|
586
|
-
display: 'flex',
|
|
587
|
-
alignItems: 'center',
|
|
588
|
-
gap: 2,
|
|
589
|
-
}, children: [_jsx(Text, { sx: {
|
|
423
|
+
'Not configured' })] }), _jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: {
|
|
590
424
|
fontSize: 0,
|
|
591
425
|
color: 'fg.muted',
|
|
592
426
|
width: 80,
|
|
593
|
-
}, children: "Status:" }), codemodeStatus.sandbox.jupyter_connected ? (_jsxs(Box, { sx: {
|
|
594
|
-
display: 'flex',
|
|
595
|
-
alignItems: 'center',
|
|
596
|
-
gap: 1,
|
|
597
|
-
}, children: [_jsx(CheckCircleIcon, { size: 12, fill: "success.fg" }), _jsx(Text, { sx: { fontSize: 0, color: 'success.fg' }, children: "Connected" })] })) : (_jsxs(Box, { sx: {
|
|
598
|
-
display: 'flex',
|
|
599
|
-
flexDirection: 'column',
|
|
600
|
-
gap: 1,
|
|
601
|
-
}, children: [_jsxs(Box, { sx: {
|
|
602
|
-
display: 'flex',
|
|
603
|
-
alignItems: 'center',
|
|
604
|
-
gap: 1,
|
|
605
|
-
}, children: [_jsx(XCircleIcon, { size: 12, fill: "danger.fg" }), _jsx(Text, { sx: { fontSize: 0, color: 'danger.fg' }, children: "Not Connected" })] }), codemodeStatus.sandbox.jupyter_error && (_jsx(Text, { sx: {
|
|
427
|
+
}, children: "Status:" }), codemodeStatus.sandbox.jupyter_connected ? (_jsxs(Box, { display: "flex", alignItems: "center", gap: 1, children: [_jsx(CheckCircleIcon, { size: 12, fill: "success.fg" }), _jsx(Text, { sx: { fontSize: 0, color: 'success.fg' }, children: "Connected" })] })) : (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 1, children: [_jsxs(Box, { display: "flex", alignItems: "center", gap: 1, children: [_jsx(XCircleIcon, { size: 12, fill: "danger.fg" }), _jsx(Text, { sx: { fontSize: 0, color: 'danger.fg' }, children: "Not Connected" })] }), codemodeStatus.sandbox.jupyter_error && (_jsx(Text, { sx: {
|
|
606
428
|
fontSize: 0,
|
|
607
429
|
color: 'danger.fg',
|
|
608
430
|
fontFamily: 'mono',
|
|
609
431
|
whiteSpace: 'pre-wrap',
|
|
610
432
|
wordBreak: 'break-word',
|
|
611
|
-
}, children: codemodeStatus.sandbox.jupyter_error }))] }))] })] })), _jsxs(Box, { sx: {
|
|
612
|
-
display: 'flex',
|
|
613
|
-
alignItems: 'center',
|
|
614
|
-
gap: 2,
|
|
615
|
-
}, children: [_jsx(Text, { sx: { fontSize: 0, color: 'fg.muted', width: 80 }, children: "Running:" }), codemodeStatus.sandbox.sandbox_running ? (_jsxs(Box, { sx: {
|
|
616
|
-
display: 'flex',
|
|
617
|
-
alignItems: 'center',
|
|
618
|
-
gap: 1,
|
|
619
|
-
}, children: [_jsx(CheckCircleIcon, { size: 12, fill: "success.fg" }), _jsx(Text, { sx: { fontSize: 0, color: 'success.fg' }, children: "Yes" })] })) : (_jsxs(Box, { sx: {
|
|
620
|
-
display: 'flex',
|
|
621
|
-
alignItems: 'center',
|
|
622
|
-
gap: 1,
|
|
623
|
-
}, children: [_jsx(XCircleIcon, { size: 12, fill: "fg.muted" }), _jsx(Text, { sx: { fontSize: 0, color: 'fg.muted' }, children: "No" })] }))] }), codemodeStatus.sandbox.generated_path && (_jsxs(Box, { sx: {
|
|
624
|
-
display: 'flex',
|
|
625
|
-
alignItems: 'center',
|
|
626
|
-
gap: 2,
|
|
627
|
-
}, children: [_jsx(Text, { sx: {
|
|
433
|
+
}, children: codemodeStatus.sandbox.jupyter_error }))] }))] })] })), _jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: { fontSize: 0, color: 'fg.muted', width: 80 }, children: "Running:" }), codemodeStatus.sandbox.sandbox_running ? (_jsxs(Box, { display: "flex", alignItems: "center", gap: 1, children: [_jsx(CheckCircleIcon, { size: 12, fill: "success.fg" }), _jsx(Text, { sx: { fontSize: 0, color: 'success.fg' }, children: "Yes" })] })) : (_jsxs(Box, { display: "flex", alignItems: "center", gap: 1, children: [_jsx(XCircleIcon, { size: 12, fill: "fg.muted" }), _jsx(Text, { sx: { fontSize: 0, color: 'fg.muted' }, children: "No" })] }))] }), codemodeStatus.sandbox.generated_path && (_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: {
|
|
628
434
|
fontSize: 0,
|
|
629
435
|
color: 'fg.muted',
|
|
630
436
|
width: 80,
|
|
@@ -635,11 +441,7 @@ export function AgentDetails({ name = 'AI Agent', icon, emoji, protocol, url, me
|
|
|
635
441
|
overflow: 'hidden',
|
|
636
442
|
textOverflow: 'ellipsis',
|
|
637
443
|
whiteSpace: 'nowrap',
|
|
638
|
-
}, title: codemodeStatus.sandbox.generated_path, children: codemodeStatus.sandbox.generated_path })] })), codemodeStatus.sandbox.skills_path && (_jsxs(Box, { sx: {
|
|
639
|
-
display: 'flex',
|
|
640
|
-
alignItems: 'center',
|
|
641
|
-
gap: 2,
|
|
642
|
-
}, children: [_jsx(Text, { sx: {
|
|
444
|
+
}, title: codemodeStatus.sandbox.generated_path, children: codemodeStatus.sandbox.generated_path })] })), codemodeStatus.sandbox.skills_path && (_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: {
|
|
643
445
|
fontSize: 0,
|
|
644
446
|
color: 'fg.muted',
|
|
645
447
|
width: 80,
|
|
@@ -650,11 +452,7 @@ export function AgentDetails({ name = 'AI Agent', icon, emoji, protocol, url, me
|
|
|
650
452
|
overflow: 'hidden',
|
|
651
453
|
textOverflow: 'ellipsis',
|
|
652
454
|
whiteSpace: 'nowrap',
|
|
653
|
-
}, title: codemodeStatus.sandbox.skills_path, children: codemodeStatus.sandbox.skills_path })] })), codemodeStatus.sandbox.python_path && (_jsxs(Box, { sx: {
|
|
654
|
-
display: 'flex',
|
|
655
|
-
alignItems: 'center',
|
|
656
|
-
gap: 2,
|
|
657
|
-
}, children: [_jsx(Text, { sx: {
|
|
455
|
+
}, title: codemodeStatus.sandbox.skills_path, children: codemodeStatus.sandbox.skills_path })] })), codemodeStatus.sandbox.python_path && (_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(Text, { sx: {
|
|
658
456
|
fontSize: 0,
|
|
659
457
|
color: 'fg.muted',
|
|
660
458
|
width: 80,
|
|
@@ -665,55 +463,19 @@ export function AgentDetails({ name = 'AI Agent', icon, emoji, protocol, url, me
|
|
|
665
463
|
overflow: 'hidden',
|
|
666
464
|
textOverflow: 'ellipsis',
|
|
667
465
|
whiteSpace: 'nowrap',
|
|
668
|
-
}, title: codemodeStatus.sandbox.python_path, children: codemodeStatus.sandbox.python_path })] }))] })] })), codemodeStatus.skills.length > 0 && (_jsxs(Box, { sx: {
|
|
669
|
-
display: 'flex',
|
|
670
|
-
flexDirection: 'column',
|
|
671
|
-
gap: 1,
|
|
672
|
-
}, children: [_jsxs(Box, { sx: { display: 'flex', alignItems: 'center', gap: 2 }, children: [_jsx(BriefcaseIcon, { size: 16 }), _jsxs(Text, { sx: {
|
|
466
|
+
}, title: codemodeStatus.sandbox.python_path, children: codemodeStatus.sandbox.python_path })] }))] })] })), codemodeStatus.skills.length > 0 && (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 1, children: [_jsxs(Box, { display: "flex", alignItems: "center", gap: 2, children: [_jsx(BriefcaseIcon, { size: 16 }), _jsxs(Text, { sx: {
|
|
673
467
|
fontSize: 0,
|
|
674
468
|
fontWeight: 'semibold',
|
|
675
469
|
color: 'fg.muted',
|
|
676
|
-
}, children: ["Active Skills (", codemodeStatus.skills.length, ")"] })] }), codemodeStatus.skills.map(skill => (_jsxs(Box, { sx: {
|
|
677
|
-
|
|
678
|
-
flexDirection: 'column',
|
|
679
|
-
gap: 1,
|
|
680
|
-
pl: 4,
|
|
681
|
-
py: 1,
|
|
682
|
-
borderLeft: '2px solid',
|
|
683
|
-
borderColor: 'accent.emphasis',
|
|
684
|
-
}, children: [_jsx(Text, { sx: { fontSize: 1, fontWeight: 'semibold' }, children: skill.name }), skill.description && (_jsx(Text, { sx: { fontSize: 0, color: 'fg.muted' }, children: skill.description })), skill.tags && skill.tags.length > 0 && (_jsx(Box, { sx: {
|
|
685
|
-
display: 'flex',
|
|
686
|
-
gap: 1,
|
|
687
|
-
flexWrap: 'wrap',
|
|
688
|
-
}, children: skill.tags.map(tag => (_jsx(Label, { variant: "secondary", size: "small", children: tag }, tag))) }))] }, skill.name)))] })), codemodeStatus.available_skills.length > 0 &&
|
|
689
|
-
codemodeStatus.skills.length === 0 && (_jsxs(Box, { sx: {
|
|
690
|
-
display: 'flex',
|
|
691
|
-
flexDirection: 'column',
|
|
692
|
-
gap: 1,
|
|
693
|
-
}, children: [_jsxs(Text, { sx: {
|
|
470
|
+
}, children: ["Active Skills (", codemodeStatus.skills.length, ")"] })] }), codemodeStatus.skills.map(skill => (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 1, pl: 4, py: 1, borderLeft: "2px solid", borderColor: "accent.emphasis", children: [_jsx(Text, { sx: { fontSize: 1, fontWeight: 'semibold' }, children: skill.name }), skill.description && (_jsx(Text, { sx: { fontSize: 0, color: 'fg.muted' }, children: skill.description })), skill.tags && skill.tags.length > 0 && (_jsx(Box, { display: "flex", gap: 1, flexWrap: "wrap", children: skill.tags.map(tag => (_jsx(Label, { variant: "secondary", size: "small", children: tag }, tag))) }))] }, skill.name)))] })), codemodeStatus.available_skills.length > 0 &&
|
|
471
|
+
codemodeStatus.skills.length === 0 && (_jsxs(Box, { display: "flex", flexDirection: "column", gap: 1, children: [_jsxs(Text, { sx: {
|
|
694
472
|
fontSize: 0,
|
|
695
473
|
fontWeight: 'semibold',
|
|
696
474
|
color: 'fg.muted',
|
|
697
|
-
}, children: ["Available Skills (", codemodeStatus.available_skills.length, ")"] }), _jsx(Text, { sx: { fontSize: 0, color: 'fg.muted' }, children: "Enable skills via CLI with --skills flag" }), _jsx(Box, { sx: {
|
|
698
|
-
display: 'flex',
|
|
699
|
-
gap: 1,
|
|
700
|
-
flexWrap: 'wrap',
|
|
701
|
-
mt: 1,
|
|
702
|
-
}, children: codemodeStatus.available_skills.map(skill => (_jsx(Label, { variant: "secondary", size: "small", children: skill.name }, skill.name))) })] })), codemodeStatus.available_skills.length === 0 && (_jsx(Text, { sx: { fontSize: 0, color: 'fg.muted' }, children: "No CodeMode skills are available for this agent. You can still use MCP tools by selecting MCP servers." }))] })) : hasCodemodeLiveData ? (_jsx(Text, { sx: { fontSize: 1, color: 'fg.muted' }, children: "Waiting for Codemode status from WebSocket stream..." })) : (_jsx(Text, { sx: { fontSize: 1, color: 'fg.muted' }, children: "Failed to load Codemode status" })) })] }), showUsage && agentId && (_jsx(ContextPanel, { agentId: agentId, apiBase: apiBase, liveData: resolvedContextSnapshot, messageCount: messageCount, chartHeight: "200px" })), showUsage && agentId && (_jsxs(Box, { sx: { mt: 3 }, children: [_jsxs(Box, { sx: {
|
|
703
|
-
display: 'flex',
|
|
704
|
-
alignItems: 'center',
|
|
705
|
-
justifyContent: 'space-between',
|
|
706
|
-
mb: 2,
|
|
707
|
-
}, children: [_jsx(Heading, { as: "h4", sx: {
|
|
475
|
+
}, children: ["Available Skills (", codemodeStatus.available_skills.length, ")"] }), _jsx(Text, { sx: { fontSize: 0, color: 'fg.muted' }, children: "Enable skills via CLI with --skills flag" }), _jsx(Box, { display: "flex", gap: 1, flexWrap: "wrap", mt: 1, children: codemodeStatus.available_skills.map(skill => (_jsx(Label, { variant: "secondary", size: "small", children: skill.name }, skill.name))) })] })), codemodeStatus.available_skills.length === 0 && (_jsx(Text, { sx: { fontSize: 0, color: 'fg.muted' }, children: "No CodeMode skills are available for this agent. You can still use MCP tools by selecting MCP servers." }))] })) : hasCodemodeLiveData ? (_jsx(Text, { sx: { fontSize: 1, color: 'fg.muted' }, children: "Waiting for Codemode status from WebSocket stream..." })) : (_jsx(Text, { sx: { fontSize: 1, color: 'fg.muted' }, children: "Failed to load Codemode status" })) })] }), showUsage && agentId && (_jsx(ContextPanel, { agentId: agentId, apiBase: apiBase, liveData: resolvedContextSnapshot, messageCount: messageCount, chartHeight: "200px" })), showUsage && agentId && (_jsxs(Box, { mt: 3, children: [_jsxs(Box, { display: "flex", alignItems: "center", justifyContent: "space-between", mb: 2, children: [_jsx(Heading, { as: "h4", sx: {
|
|
708
476
|
fontSize: 1,
|
|
709
477
|
fontWeight: 'semibold',
|
|
710
478
|
color: 'fg.muted',
|
|
711
|
-
}, children: "Context Snapshot" }), _jsx(Button, { size: "small", variant: "invisible", leadingVisual: DownloadIcon, onClick: () => downloadContextSnapshotAsCSV(agentId, apiBase, resolvedFullContext), children: "Download" })] }), _jsx(Box, { sx: {
|
|
712
|
-
p: 3,
|
|
713
|
-
bg: 'canvas.subtle',
|
|
714
|
-
borderRadius: 2,
|
|
715
|
-
border: '1px solid',
|
|
716
|
-
borderColor: 'border.default',
|
|
717
|
-
}, children: _jsx(ContextInspector, { agentId: agentId, apiBase: apiBase, liveData: resolvedFullContext }) })] })), _jsx(AgentIdentity, { providers: identityProviders, title: "Connected Accounts", showHeader: true, showDescription: true, description: "OAuth identities connected to this agent. Agents can use these to access external services like GitHub repositories on your behalf.", showExpirationDetails: true, allowReconnect: Boolean(identityProviders), onConnect: onIdentityConnect, onDisconnect: onIdentityDisconnect })] })), showBackHeader && (_jsx(Box, { sx: { mt: 2 }, children: _jsx(Button, { variant: "primary", onClick: onBack, sx: { width: '100%' }, children: "Back to Chat" }) }))] }), showSpecPayload && agentSpec ? (_jsx(SpecPayloadPreview, { spec: agentSpec, onClose: () => setShowSpecPayload(false) })) : null] }));
|
|
479
|
+
}, children: "Context Snapshot" }), _jsx(Button, { size: "small", variant: "invisible", leadingVisual: DownloadIcon, onClick: () => downloadContextSnapshotAsCSV(agentId, apiBase, resolvedFullContext), children: "Download" })] }), _jsx(Box, { p: 3, bg: "canvas.subtle", borderRadius: 2, border: "1px solid", borderColor: "border.default", children: _jsx(ContextInspector, { agentId: agentId, apiBase: apiBase, liveData: resolvedFullContext }) })] })), _jsx(AgentIdentity, { providers: identityProviders, title: "Connected Accounts", showHeader: true, showDescription: true, description: "OAuth identities connected to this agent. Agents can use these to access external services like GitHub repositories on your behalf.", showExpirationDetails: true, allowReconnect: Boolean(identityProviders), onConnect: onIdentityConnect, onDisconnect: onIdentityDisconnect })] })), showBackHeader && (_jsx(Box, { mt: 2, children: _jsx(Button, { variant: "primary", onClick: onBack, sx: { width: '100%' }, children: "Back to Chat" }) }))] }), showSpecPayload && agentSpec ? (_jsx(SpecPayloadPreview, { spec: agentSpec, onClose: () => setShowSpecPayload(false) })) : null] }));
|
|
718
480
|
}
|
|
719
481
|
export default AgentDetails;
|
|
@@ -170,14 +170,7 @@ export function AgentRuntimeChat({ agentSpecId, title, brandIcon, description, p
|
|
|
170
170
|
enableEphemeralNotebook: true,
|
|
171
171
|
};
|
|
172
172
|
if (launchingError) {
|
|
173
|
-
return (_jsxs(Box, { sx: {
|
|
174
|
-
p: 3,
|
|
175
|
-
borderRadius: 2,
|
|
176
|
-
border: '1px solid',
|
|
177
|
-
borderColor: 'danger.emphasis',
|
|
178
|
-
bg: 'danger.subtle',
|
|
179
|
-
color: 'danger.fg',
|
|
180
|
-
}, children: [_jsx(Text, { sx: { fontWeight: 600 }, children: "Failed to launch the agent" }), _jsx(Text, { sx: { display: 'block', mt: 1, fontSize: 1 }, children: launchingError })] }));
|
|
173
|
+
return (_jsxs(Box, { p: 3, borderRadius: 2, border: "1px solid", borderColor: "danger.emphasis", bg: "danger.subtle", color: "danger.fg", children: [_jsx(Text, { sx: { fontWeight: 600 }, children: "Failed to launch the agent" }), _jsx(Text, { sx: { display: 'block', mt: 1, fontSize: 1 }, children: launchingError })] }));
|
|
181
174
|
}
|
|
182
175
|
// Live and ready: interactive chat wired to the runtime endpoint.
|
|
183
176
|
if (isInteractiveReady) {
|