@burdenoff/microfe-botmanor 2026.1203.4 → 2026.1203.5
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/botlit/BotlitRoutes.js +0 -1
- package/dist/botlit/BotlitRoutes.js.map +1 -1
- package/dist/botlit/components/A2ACardVerificationCard.js +0 -1
- package/dist/botlit/components/A2ACardVerificationCard.js.map +1 -1
- package/dist/botlit/components/AgentA2APanel.js +20 -21
- package/dist/botlit/components/AgentA2APanel.js.map +1 -1
- package/dist/botlit/components/AgentApprovalPanel.js +22 -23
- package/dist/botlit/components/AgentApprovalPanel.js.map +1 -1
- package/dist/botlit/components/AgentBindingsPanel.js +66 -68
- package/dist/botlit/components/AgentBindingsPanel.js.map +1 -1
- package/dist/botlit/components/AiOperationsPanel.js +34 -35
- package/dist/botlit/components/AiOperationsPanel.js.map +1 -1
- package/dist/botlit/components/BotAgentsPanel.js +59 -60
- package/dist/botlit/components/BotAgentsPanel.js.map +1 -1
- package/dist/botlit/components/BotVersionHistoryPanel.js +19 -20
- package/dist/botlit/components/BotVersionHistoryPanel.js.map +1 -1
- package/dist/botlit/components/BucketDialogs.js +0 -1
- package/dist/botlit/components/BucketDialogs.js.map +1 -1
- package/dist/botlit/components/ChannelRoutesPanel.js +82 -84
- package/dist/botlit/components/ChannelRoutesPanel.js.map +1 -1
- package/dist/botlit/components/CreateChannelRouteDialog.js +4 -5
- package/dist/botlit/components/CreateChannelRouteDialog.js.map +1 -1
- package/dist/botlit/components/DescribeBotDialog.js +0 -1
- package/dist/botlit/components/DescribeBotDialog.js.map +1 -1
- package/dist/botlit/components/GettingStartedChecklist.js +9 -10
- package/dist/botlit/components/GettingStartedChecklist.js.map +1 -1
- package/dist/botlit/components/HandoffConfigPanel.js +0 -1
- package/dist/botlit/components/HandoffConfigPanel.js.map +1 -1
- package/dist/botlit/components/RetentionStatusPanel.js +10 -12
- package/dist/botlit/components/RetentionStatusPanel.js.map +1 -1
- package/dist/botlit/components/StewardApprovalsInbox.js +201 -212
- package/dist/botlit/components/StewardApprovalsInbox.js.map +1 -1
- package/dist/botlit/components/StoreOwnPackagesCard.js +21 -22
- package/dist/botlit/components/StoreOwnPackagesCard.js.map +1 -1
- package/dist/botlit/components/StorePackageDraftCard.js +38 -39
- package/dist/botlit/components/StorePackageDraftCard.js.map +1 -1
- package/dist/botlit/components/StorePolicyBundleCard.js +27 -29
- package/dist/botlit/components/StorePolicyBundleCard.js.map +1 -1
- package/dist/botlit/components/StoreSubmissionsCard.js +64 -65
- package/dist/botlit/components/StoreSubmissionsCard.js.map +1 -1
- package/dist/botlit/components/VersionHistoryPanel.js +18 -19
- package/dist/botlit/components/VersionHistoryPanel.js.map +1 -1
- package/dist/botlit/hooks/internal/workspaceGateway.d.ts +6 -0
- package/dist/botlit/hooks/internal/workspaceGateway.js +40 -40
- package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
- package/dist/botlit/hooks/useToolApprovals.d.ts +8 -3
- package/dist/botlit/hooks/useToolApprovals.js +68 -73
- package/dist/botlit/hooks/useToolApprovals.js.map +1 -1
- package/dist/botlit/pages/A2AAgentDetailPage.js +331 -332
- package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/A2ARegistryPage.js +39 -41
- package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
- package/dist/botlit/pages/AgentApprovalsPage.js +24 -25
- package/dist/botlit/pages/AgentApprovalsPage.js.map +1 -1
- package/dist/botlit/pages/AgentBuilderPage.js +470 -471
- package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
- package/dist/botlit/pages/AgentDetailPage.js +68 -69
- package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/AgentsListPage.js +277 -278
- package/dist/botlit/pages/AgentsListPage.js.map +1 -1
- package/dist/botlit/pages/AiOperationsPage.js +44 -46
- package/dist/botlit/pages/AiOperationsPage.js.map +1 -1
- package/dist/botlit/pages/BotChannelsTab.js +354 -356
- package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
- package/dist/botlit/pages/BotDetailPage.js +138 -139
- package/dist/botlit/pages/BotDetailPage.js.map +1 -1
- package/dist/botlit/pages/BotWorkflowTab.js +23 -24
- package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
- package/dist/botlit/pages/BotsListPage.js +32 -33
- package/dist/botlit/pages/BotsListPage.js.map +1 -1
- package/dist/botlit/pages/BucketDetailPage.js +110 -112
- package/dist/botlit/pages/BucketDetailPage.js.map +1 -1
- package/dist/botlit/pages/BucketsPage.js +115 -117
- package/dist/botlit/pages/BucketsPage.js.map +1 -1
- package/dist/botlit/pages/ChannelDetailPage.js +105 -107
- package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
- package/dist/botlit/pages/ChannelsPage.js +38 -40
- package/dist/botlit/pages/ChannelsPage.js.map +1 -1
- package/dist/botlit/pages/DashboardPage.js +26 -27
- package/dist/botlit/pages/DashboardPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionDetailPage.js +70 -71
- package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionsPage.js +219 -220
- package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
- package/dist/botlit/pages/HandoffsPage.js +208 -210
- package/dist/botlit/pages/HandoffsPage.js.map +1 -1
- package/dist/botlit/pages/InstalledPackagesPage.js +179 -181
- package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js +194 -195
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBasesPage.js +38 -39
- package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
- package/dist/botlit/pages/MCPServerDetailPage.js +178 -180
- package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
- package/dist/botlit/pages/MCPServersPage.js +42 -43
- package/dist/botlit/pages/MCPServersPage.js.map +1 -1
- package/dist/botlit/pages/PoliciesPage.js +77 -78
- package/dist/botlit/pages/PoliciesPage.js.map +1 -1
- package/dist/botlit/pages/PolicyDetailPage.js +517 -519
- package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptStudioPage.js +81 -83
- package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplateDetailPage.js +137 -139
- package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplatesPage.js +28 -30
- package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfileDetailPage.js +64 -65
- package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfilesPage.js +59 -60
- package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
- package/dist/botlit/pages/SettingsPage.js +30 -31
- package/dist/botlit/pages/SettingsPage.js.map +1 -1
- package/dist/botlit/pages/SkillDetailPage.js +205 -207
- package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
- package/dist/botlit/pages/SkillsPage.js +68 -69
- package/dist/botlit/pages/SkillsPage.js.map +1 -1
- package/dist/botlit/pages/StorePackageDetailPage.js +39 -41
- package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
- package/dist/botlit/pages/StorePage.js +169 -171
- package/dist/botlit/pages/StorePage.js.map +1 -1
- package/dist/botlit/pages/ToolApprovalsPage.js +61 -62
- package/dist/botlit/pages/ToolApprovalsPage.js.map +1 -1
- package/dist/index.js +0 -1
- package/package.json +4 -1
- package/dist/botlit/hooks/index.js +0 -21
- package/dist/botlit/index.js +0 -12
- package/dist/botlit/permissions/index.js +0 -4
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import { useTr as e } from "../../shared/hooks/useTr.js";
|
|
2
2
|
import { useBotlit as t } from "../providers/BotlitProvider.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import "../
|
|
14
|
-
import {
|
|
15
|
-
import "
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { useParams as pe } from "react-router";
|
|
20
|
-
import { AlertTriangle as me, ArrowLeft as he, CheckCircle as ge, Clock as _e, Edit as ve, ExternalLink as ye, Plug as O, PlugZap as k, RefreshCw as A, Save as j, Server as M, Settings as N, Trash2 as P, Wrench as F, XCircle as be } from "lucide-react";
|
|
3
|
+
import { isNative as n, nativeImpact as ee, nativeNotify as r } from "../../utils/nativeBridge.js";
|
|
4
|
+
import { PageLayout as i } from "../components/PageLayout.js";
|
|
5
|
+
import { Card as a, CardContent as o, CardDescription as s, CardHeader as c, CardTitle as l } from "../components/Card.js";
|
|
6
|
+
import { Button as u } from "../components/Button.js";
|
|
7
|
+
import { FormField as d, Input as f, Textarea as te } from "../components/Input.js";
|
|
8
|
+
import { Badge as p, StatusBadge as ne } from "../components/Badge.js";
|
|
9
|
+
import { EmptyState as m } from "../components/EmptyState.js";
|
|
10
|
+
import { isMCPServerHealthy as re, mcpServerDescription as h, mcpServerEndpoint as g, useCreateMCPServer as ie, useDeleteMCPServer as ae, useMCPResources as oe, useMCPServer as se, useMCPTools as _, useTestMCPConnection as v, useUpdateMCPServer as ce, useUpdateMCPTool as le } from "../hooks/useMCPServers.js";
|
|
11
|
+
import { formatRelativeTime as y } from "../utils/formatters.js";
|
|
12
|
+
import { BOTMANOR_PERMISSIONS as b } from "../permissions/botmanorPermissions.js";
|
|
13
|
+
import { BotmanorPermissionGate as x, useBotmanorCan as ue } from "../permissions/useBotmanorPermissions.js";
|
|
14
|
+
import { useMemo as de, useState as S } from "react";
|
|
15
|
+
import { GlassCard as fe, PagePurpose as pe, ThemedSelect as C } from "@burdenoff/fe-libs/ui";
|
|
16
|
+
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
17
|
+
import { useParams as me } from "react-router";
|
|
18
|
+
import { AlertTriangle as he, ArrowLeft as ge, CheckCircle as _e, Clock as ve, Edit as ye, ExternalLink as D, Plug as O, PlugZap as k, RefreshCw as A, Save as j, Server as M, Settings as N, Trash2 as P, Wrench as F, XCircle as be } from "lucide-react";
|
|
21
19
|
import { toast as I } from "sonner";
|
|
22
20
|
// src/botlit/pages/MCPServerDetailPage.tsx
|
|
23
21
|
function L(e, t) {
|
|
@@ -25,14 +23,14 @@ function L(e, t) {
|
|
|
25
23
|
return typeof n == "string" && n !== "" ? n : void 0;
|
|
26
24
|
}
|
|
27
25
|
var R = ({ isNew: R }) => {
|
|
28
|
-
let z = e(), { serverId: B } =
|
|
26
|
+
let z = e(), { serverId: B } = me(), { navigateTo: V } = t(), xe = ue(), { data: H, loading: Se, refetch: U } = se(R ? void 0 : B), { data: W } = _(R ? void 0 : B), { data: G } = oe(R ? void 0 : B), [Ce, we] = ie(), [Te, Ee] = ce(), [De, Oe] = ae(), [ke, Ae] = v(), [je, Me] = le(), [Ne, K] = S(!1), [q, J] = S(!1), [Y, X] = S({
|
|
29
27
|
name: "",
|
|
30
28
|
description: "",
|
|
31
29
|
transport: "HTTP_JSON",
|
|
32
30
|
baseUrl: "",
|
|
33
31
|
authMethod: "NONE",
|
|
34
32
|
secretRefId: ""
|
|
35
|
-
}), [Z, Pe] =
|
|
33
|
+
}), [Z, Pe] = S(null), Q = de(() => W.find((e) => e.name === Z) ?? null, [W, Z]), Fe = async () => {
|
|
36
34
|
if (Y.name && Y.baseUrl) try {
|
|
37
35
|
let e = await Ce({
|
|
38
36
|
name: Y.name,
|
|
@@ -73,16 +71,16 @@ var R = ({ isNew: R }) => {
|
|
|
73
71
|
}
|
|
74
72
|
}, Re = async () => {
|
|
75
73
|
if (B) try {
|
|
76
|
-
await De(B),
|
|
74
|
+
await De(B), n() && r("success"), I.success(z("botlit.mcpServerDetail.mcpServerDisconnected", "MCP server disconnected")), V("mcp");
|
|
77
75
|
} catch (e) {
|
|
78
|
-
|
|
76
|
+
n() && r("error"), I.error(e instanceof Error ? e.message : z("botlit.mcpServerDetail.failedToDisconnectMcpServer", "Failed to disconnect MCP server"));
|
|
79
77
|
}
|
|
80
78
|
}, ze = () => {
|
|
81
79
|
H && (X({
|
|
82
80
|
name: H.name,
|
|
83
|
-
description:
|
|
81
|
+
description: h(H) ?? "",
|
|
84
82
|
transport: H.type,
|
|
85
|
-
baseUrl:
|
|
83
|
+
baseUrl: g(H) ?? "",
|
|
86
84
|
authMethod: L(H.config, "authMethod") ?? "NONE",
|
|
87
85
|
secretRefId: L(H.config, "secretRefId") ?? ""
|
|
88
86
|
}), K(!0));
|
|
@@ -102,32 +100,32 @@ var R = ({ isNew: R }) => {
|
|
|
102
100
|
I.error(e instanceof Error ? e.message : z("botlit.mcpServerDetail.failedToUpdateToolRisk", "Failed to update tool risk level"));
|
|
103
101
|
}
|
|
104
102
|
};
|
|
105
|
-
return R ? /* @__PURE__ */
|
|
103
|
+
return R ? /* @__PURE__ */ T(i, {
|
|
106
104
|
title: z("botlit.mcpServerDetail.addMcpServer", "Add MCP Server"),
|
|
107
105
|
description: z("botlit.mcpServerDetail.connectANewModelContext", "Connect a new Model Context Protocol server"),
|
|
108
|
-
actions: /* @__PURE__ */
|
|
106
|
+
actions: /* @__PURE__ */ E("div", {
|
|
109
107
|
className: "flex gap-2",
|
|
110
|
-
children: [/* @__PURE__ */
|
|
108
|
+
children: [/* @__PURE__ */ T(u, {
|
|
111
109
|
variant: "outline",
|
|
112
110
|
onClick: () => V("mcp"),
|
|
113
111
|
children: z("botlit.mcpServerDetail.cancel", "Cancel")
|
|
114
|
-
}), /* @__PURE__ */
|
|
115
|
-
leftIcon: /* @__PURE__ */
|
|
112
|
+
}), /* @__PURE__ */ T(u, {
|
|
113
|
+
leftIcon: /* @__PURE__ */ T(j, { size: 16 }),
|
|
116
114
|
onClick: Fe,
|
|
117
115
|
isLoading: we.loading,
|
|
118
116
|
disabled: !Y.name || !Y.baseUrl,
|
|
119
117
|
children: z("botlit.mcpServerDetail.connect", "Connect")
|
|
120
118
|
})]
|
|
121
119
|
}),
|
|
122
|
-
children: /* @__PURE__ */
|
|
120
|
+
children: /* @__PURE__ */ T("div", {
|
|
123
121
|
className: "max-w-2xl space-y-6",
|
|
124
|
-
children: /* @__PURE__ */
|
|
122
|
+
children: /* @__PURE__ */ E(a, { children: [/* @__PURE__ */ T(c, { children: /* @__PURE__ */ T(l, { children: z("botlit.mcpServerDetail.serverConfiguration", "Server Configuration") }) }), /* @__PURE__ */ E(o, {
|
|
125
123
|
className: "space-y-4",
|
|
126
124
|
children: [
|
|
127
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ T(d, {
|
|
128
126
|
label: z("botlit.mcpServerDetail.serverName", "Server Name"),
|
|
129
127
|
required: !0,
|
|
130
|
-
children: /* @__PURE__ */
|
|
128
|
+
children: /* @__PURE__ */ T(f, {
|
|
131
129
|
placeholder: z("botlit.mcpServerDetail.exampleGithubMcpServer", "e.g., GitHub MCP Server"),
|
|
132
130
|
value: Y.name,
|
|
133
131
|
onChange: (e) => X({
|
|
@@ -136,9 +134,9 @@ var R = ({ isNew: R }) => {
|
|
|
136
134
|
})
|
|
137
135
|
})
|
|
138
136
|
}),
|
|
139
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ T(d, {
|
|
140
138
|
label: z("botlit.mcpServerDetail.description", "Description"),
|
|
141
|
-
children: /* @__PURE__ */
|
|
139
|
+
children: /* @__PURE__ */ T(te, {
|
|
142
140
|
placeholder: z("botlit.mcpServerDetail.whatCapabilitiesDoesThisServer", "What capabilities does this server provide?"),
|
|
143
141
|
value: Y.description,
|
|
144
142
|
onChange: (e) => X({
|
|
@@ -148,12 +146,12 @@ var R = ({ isNew: R }) => {
|
|
|
148
146
|
rows: 3
|
|
149
147
|
})
|
|
150
148
|
}),
|
|
151
|
-
/* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ E("div", {
|
|
152
150
|
className: "grid grid-cols-2 gap-4",
|
|
153
|
-
children: [/* @__PURE__ */
|
|
151
|
+
children: [/* @__PURE__ */ T(d, {
|
|
154
152
|
label: z("botlit.mcpServerDetail.transport", "Transport"),
|
|
155
153
|
required: !0,
|
|
156
|
-
children: /* @__PURE__ */
|
|
154
|
+
children: /* @__PURE__ */ E(C, {
|
|
157
155
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
158
156
|
value: Y.transport,
|
|
159
157
|
onChange: (e) => X({
|
|
@@ -161,27 +159,27 @@ var R = ({ isNew: R }) => {
|
|
|
161
159
|
transport: e.target.value
|
|
162
160
|
}),
|
|
163
161
|
children: [
|
|
164
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ T("option", {
|
|
165
163
|
value: "HTTP_JSON",
|
|
166
164
|
children: z("botlit.mcpServerDetail.httpJson", "HTTP JSON")
|
|
167
165
|
}),
|
|
168
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ T("option", {
|
|
169
167
|
value: "JSON_RPC",
|
|
170
168
|
children: z("botlit.mcpServerDetail.jsonRpc", "JSON RPC")
|
|
171
169
|
}),
|
|
172
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ T("option", {
|
|
173
171
|
value: "SSE",
|
|
174
172
|
children: z("botlit.mcpServerDetail.serverSentEvents", "Server-Sent Events")
|
|
175
173
|
}),
|
|
176
|
-
/* @__PURE__ */
|
|
174
|
+
/* @__PURE__ */ T("option", {
|
|
177
175
|
value: "CUSTOM",
|
|
178
176
|
children: z("botlit.mcpServerDetail.custom", "Custom")
|
|
179
177
|
})
|
|
180
178
|
]
|
|
181
179
|
})
|
|
182
|
-
}), /* @__PURE__ */
|
|
180
|
+
}), /* @__PURE__ */ T(d, {
|
|
183
181
|
label: z("botlit.mcpServerDetail.authMethod", "Auth Method"),
|
|
184
|
-
children: /* @__PURE__ */
|
|
182
|
+
children: /* @__PURE__ */ E(C, {
|
|
185
183
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
186
184
|
value: Y.authMethod,
|
|
187
185
|
onChange: (e) => X({
|
|
@@ -189,19 +187,19 @@ var R = ({ isNew: R }) => {
|
|
|
189
187
|
authMethod: e.target.value
|
|
190
188
|
}),
|
|
191
189
|
children: [
|
|
192
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ T("option", {
|
|
193
191
|
value: "NONE",
|
|
194
192
|
children: z("botlit.mcpServerDetail.none", "None")
|
|
195
193
|
}),
|
|
196
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ T("option", {
|
|
197
195
|
value: "API_KEY",
|
|
198
196
|
children: z("botlit.mcpServerDetail.apiKey", "API Key")
|
|
199
197
|
}),
|
|
200
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ T("option", {
|
|
201
199
|
value: "OAUTH",
|
|
202
200
|
children: z("botlit.mcpServerDetail.oauth", "OAuth")
|
|
203
201
|
}),
|
|
204
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ T("option", {
|
|
205
203
|
value: "CUSTOM_HEADER",
|
|
206
204
|
children: z("botlit.mcpServerDetail.customHeader", "Custom Header")
|
|
207
205
|
})
|
|
@@ -209,10 +207,10 @@ var R = ({ isNew: R }) => {
|
|
|
209
207
|
})
|
|
210
208
|
})]
|
|
211
209
|
}),
|
|
212
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ T(d, {
|
|
213
211
|
label: z("botlit.mcpServerDetail.baseUrl", "Base URL"),
|
|
214
212
|
required: !0,
|
|
215
|
-
children: /* @__PURE__ */
|
|
213
|
+
children: /* @__PURE__ */ T(f, {
|
|
216
214
|
placeholder: z("botlit.mcpServerDetail.exampleBaseUrl", "e.g., https://mcp.example.com"),
|
|
217
215
|
value: Y.baseUrl,
|
|
218
216
|
onChange: (e) => X({
|
|
@@ -221,9 +219,9 @@ var R = ({ isNew: R }) => {
|
|
|
221
219
|
})
|
|
222
220
|
})
|
|
223
221
|
}),
|
|
224
|
-
Y.authMethod !== "NONE" && /* @__PURE__ */
|
|
222
|
+
Y.authMethod !== "NONE" && /* @__PURE__ */ T(d, {
|
|
225
223
|
label: z("botlit.mcpServerDetail.secretReferenceId", "Secret Reference ID"),
|
|
226
|
-
children: /* @__PURE__ */
|
|
224
|
+
children: /* @__PURE__ */ T(f, {
|
|
227
225
|
placeholder: z("botlit.mcpServerDetail.exampleSecretMcpGithub", "e.g., secret-mcp-github"),
|
|
228
226
|
value: Y.secretRefId,
|
|
229
227
|
onChange: (e) => X({
|
|
@@ -235,292 +233,292 @@ var R = ({ isNew: R }) => {
|
|
|
235
233
|
]
|
|
236
234
|
})] })
|
|
237
235
|
})
|
|
238
|
-
}) : Se ? /* @__PURE__ */
|
|
236
|
+
}) : Se ? /* @__PURE__ */ T(i, {
|
|
239
237
|
title: z("botlit.mcpServerDetail.loading", "Loading..."),
|
|
240
|
-
children: /* @__PURE__ */
|
|
241
|
-
}) : H ? /* @__PURE__ */
|
|
242
|
-
title: /* @__PURE__ */
|
|
238
|
+
children: /* @__PURE__ */ T("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
|
|
239
|
+
}) : H ? /* @__PURE__ */ T(i, {
|
|
240
|
+
title: /* @__PURE__ */ E("div", {
|
|
243
241
|
className: "flex items-center gap-3",
|
|
244
242
|
children: [
|
|
245
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ T(u, {
|
|
246
244
|
variant: "ghost",
|
|
247
245
|
size: "icon",
|
|
248
246
|
onClick: () => V("mcp"),
|
|
249
|
-
children: /* @__PURE__ */
|
|
247
|
+
children: /* @__PURE__ */ T(ge, { size: 20 })
|
|
250
248
|
}),
|
|
251
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ T("div", {
|
|
252
250
|
className: "p-2 rounded-lg bg-action-primary-bg/10",
|
|
253
|
-
children:
|
|
251
|
+
children: re(H.status) ? /* @__PURE__ */ T(k, { className: "h-6 w-6 text-status-success-text" }) : /* @__PURE__ */ T(O, { className: "h-6 w-6 text-text-secondary" })
|
|
254
252
|
}),
|
|
255
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("div", {
|
|
256
254
|
className: "flex items-center gap-2",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
258
|
-
}), /* @__PURE__ */
|
|
255
|
+
children: [/* @__PURE__ */ T("span", { children: H.name }), /* @__PURE__ */ T(ne, { status: H.status })]
|
|
256
|
+
}), /* @__PURE__ */ T("p", {
|
|
259
257
|
className: "text-sm font-normal text-text-secondary",
|
|
260
|
-
children:
|
|
258
|
+
children: h(H)
|
|
261
259
|
})] })
|
|
262
260
|
]
|
|
263
261
|
}),
|
|
264
|
-
actions: /* @__PURE__ */
|
|
262
|
+
actions: /* @__PURE__ */ E("div", {
|
|
265
263
|
className: "flex gap-2",
|
|
266
|
-
children: [/* @__PURE__ */
|
|
267
|
-
permission:
|
|
268
|
-
children: /* @__PURE__ */
|
|
264
|
+
children: [/* @__PURE__ */ T(x, {
|
|
265
|
+
permission: b.MCP_TEST,
|
|
266
|
+
children: /* @__PURE__ */ T(u, {
|
|
269
267
|
variant: "outline",
|
|
270
|
-
leftIcon: /* @__PURE__ */
|
|
268
|
+
leftIcon: /* @__PURE__ */ T(A, { size: 16 }),
|
|
271
269
|
onClick: Ie,
|
|
272
270
|
isLoading: Ae.loading,
|
|
273
271
|
children: z("botlit.mcpServerDetail.test", "Test")
|
|
274
272
|
})
|
|
275
|
-
}), Ne ? /* @__PURE__ */
|
|
273
|
+
}), Ne ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(u, {
|
|
276
274
|
variant: "outline",
|
|
277
275
|
onClick: () => K(!1),
|
|
278
276
|
children: z("botlit.mcpServerDetail.cancel", "Cancel")
|
|
279
|
-
}), /* @__PURE__ */
|
|
280
|
-
leftIcon: /* @__PURE__ */
|
|
277
|
+
}), /* @__PURE__ */ T(u, {
|
|
278
|
+
leftIcon: /* @__PURE__ */ T(j, { size: 16 }),
|
|
281
279
|
onClick: Le,
|
|
282
280
|
isLoading: Ee.loading,
|
|
283
281
|
children: z("botlit.mcpServerDetail.save", "Save")
|
|
284
|
-
})] }) : /* @__PURE__ */
|
|
285
|
-
permission:
|
|
286
|
-
children: /* @__PURE__ */
|
|
282
|
+
})] }) : /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(x, {
|
|
283
|
+
permission: b.MCP_UPDATE,
|
|
284
|
+
children: /* @__PURE__ */ T(u, {
|
|
287
285
|
variant: "outline",
|
|
288
|
-
leftIcon: /* @__PURE__ */
|
|
286
|
+
leftIcon: /* @__PURE__ */ T(ye, { size: 16 }),
|
|
289
287
|
onClick: ze,
|
|
290
288
|
children: z("botlit.mcpServerDetail.edit", "Edit")
|
|
291
289
|
})
|
|
292
|
-
}), q ? /* @__PURE__ */
|
|
290
|
+
}), q ? /* @__PURE__ */ E("div", {
|
|
293
291
|
className: "flex gap-2",
|
|
294
|
-
children: [/* @__PURE__ */
|
|
292
|
+
children: [/* @__PURE__ */ T(u, {
|
|
295
293
|
variant: "outline",
|
|
296
294
|
size: "sm",
|
|
297
295
|
onClick: () => J(!1),
|
|
298
296
|
children: z("botlit.mcpServerDetail.cancel", "Cancel")
|
|
299
|
-
}), /* @__PURE__ */
|
|
297
|
+
}), /* @__PURE__ */ T(u, {
|
|
300
298
|
variant: "destructive",
|
|
301
299
|
size: "sm",
|
|
302
300
|
onClick: () => {
|
|
303
|
-
|
|
301
|
+
ee("medium"), Re();
|
|
304
302
|
},
|
|
305
303
|
isLoading: Oe.loading,
|
|
306
304
|
children: z("botlit.mcpServerDetail.confirm", "Confirm")
|
|
307
305
|
})]
|
|
308
|
-
}) : /* @__PURE__ */
|
|
309
|
-
permission:
|
|
310
|
-
children: /* @__PURE__ */
|
|
306
|
+
}) : /* @__PURE__ */ T(x, {
|
|
307
|
+
permission: b.MCP_DELETE,
|
|
308
|
+
children: /* @__PURE__ */ T(u, {
|
|
311
309
|
variant: "destructive",
|
|
312
|
-
leftIcon: /* @__PURE__ */
|
|
310
|
+
leftIcon: /* @__PURE__ */ T(P, { size: 16 }),
|
|
313
311
|
onClick: () => J(!0),
|
|
314
312
|
children: z("botlit.mcpServerDetail.delete", "Delete")
|
|
315
313
|
})
|
|
316
314
|
})] })]
|
|
317
315
|
}),
|
|
318
|
-
children: /* @__PURE__ */
|
|
316
|
+
children: /* @__PURE__ */ E("div", {
|
|
319
317
|
className: "space-y-6",
|
|
320
318
|
children: [
|
|
321
|
-
/* @__PURE__ */
|
|
322
|
-
icon: /* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ T(pe, {
|
|
320
|
+
icon: /* @__PURE__ */ T(M, { size: 18 }),
|
|
323
321
|
children: z("botlit.mcpServerDetail.thisIsOneConnectedMcp", "This is one connected MCP server and everything it exposes to your agents — its health, the tools and resources it provides, and its connection settings. Check that it is healthy and that the right tools are available, then your agents can call them (subject to your tool policies) to take real actions.")
|
|
324
322
|
}),
|
|
325
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ E("div", {
|
|
326
324
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
327
325
|
children: [
|
|
328
|
-
/* @__PURE__ */
|
|
326
|
+
/* @__PURE__ */ E(fe, {
|
|
329
327
|
treatment: "glass",
|
|
330
328
|
glow: !0,
|
|
331
329
|
className: "p-6 text-center",
|
|
332
330
|
children: [
|
|
333
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ T("div", {
|
|
334
332
|
className: "p-3 rounded-full bg-action-primary-bg/10 w-fit mx-auto mb-2",
|
|
335
333
|
children: ((e) => {
|
|
336
334
|
switch (e) {
|
|
337
|
-
case "CONNECTED": return /* @__PURE__ */
|
|
338
|
-
case "CONNECTING": return /* @__PURE__ */
|
|
335
|
+
case "CONNECTED": return /* @__PURE__ */ T(_e, { className: "h-5 w-5 text-status-success-text" });
|
|
336
|
+
case "CONNECTING": return /* @__PURE__ */ T(he, { className: "h-5 w-5 text-status-warning-text" });
|
|
339
337
|
case "ERROR":
|
|
340
|
-
case "DISCONNECTED": return /* @__PURE__ */
|
|
341
|
-
default: return /* @__PURE__ */
|
|
338
|
+
case "DISCONNECTED": return /* @__PURE__ */ T(be, { className: "h-5 w-5 text-status-error-text" });
|
|
339
|
+
default: return /* @__PURE__ */ T(ve, { className: "h-5 w-5 text-text-secondary" });
|
|
342
340
|
}
|
|
343
341
|
})(H.status)
|
|
344
342
|
}),
|
|
345
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ T("p", {
|
|
346
344
|
className: "text-lg font-bold capitalize text-text-primary",
|
|
347
345
|
children: H.status.toLowerCase()
|
|
348
346
|
}),
|
|
349
|
-
/* @__PURE__ */
|
|
347
|
+
/* @__PURE__ */ T("p", {
|
|
350
348
|
className: "text-sm text-text-secondary",
|
|
351
349
|
children: z("botlit.mcpServerDetail.healthStatus", "Health Status")
|
|
352
350
|
})
|
|
353
351
|
]
|
|
354
352
|
}),
|
|
355
|
-
/* @__PURE__ */
|
|
353
|
+
/* @__PURE__ */ T(a, { children: /* @__PURE__ */ E(o, {
|
|
356
354
|
className: "pt-6 text-center",
|
|
357
|
-
children: [/* @__PURE__ */
|
|
355
|
+
children: [/* @__PURE__ */ T("p", {
|
|
358
356
|
className: "text-3xl font-bold text-text-primary",
|
|
359
357
|
children: W.length
|
|
360
|
-
}), /* @__PURE__ */
|
|
358
|
+
}), /* @__PURE__ */ T("p", {
|
|
361
359
|
className: "text-sm text-text-secondary",
|
|
362
360
|
children: z("botlit.mcpServerDetail.toolsAvailable", "Tools Available")
|
|
363
361
|
})]
|
|
364
362
|
}) }),
|
|
365
|
-
/* @__PURE__ */
|
|
363
|
+
/* @__PURE__ */ T(a, { children: /* @__PURE__ */ E(o, {
|
|
366
364
|
className: "pt-6 text-center",
|
|
367
|
-
children: [/* @__PURE__ */
|
|
365
|
+
children: [/* @__PURE__ */ T("p", {
|
|
368
366
|
className: "text-3xl font-bold text-text-primary",
|
|
369
367
|
children: G.length
|
|
370
|
-
}), /* @__PURE__ */
|
|
368
|
+
}), /* @__PURE__ */ T("p", {
|
|
371
369
|
className: "text-sm text-text-secondary",
|
|
372
370
|
children: z("botlit.mcpServerDetail.resources", "Resources")
|
|
373
371
|
})]
|
|
374
372
|
}) }),
|
|
375
|
-
/* @__PURE__ */
|
|
373
|
+
/* @__PURE__ */ T(a, { children: /* @__PURE__ */ E(o, {
|
|
376
374
|
className: "pt-6 text-center",
|
|
377
|
-
children: [/* @__PURE__ */
|
|
375
|
+
children: [/* @__PURE__ */ T("p", {
|
|
378
376
|
className: "text-3xl font-bold text-text-primary",
|
|
379
|
-
children: H.lastConnectedAt ?
|
|
380
|
-
}), /* @__PURE__ */
|
|
377
|
+
children: H.lastConnectedAt ? y(H.lastConnectedAt) : z("botlit.mcpServerDetail.never", "Never")
|
|
378
|
+
}), /* @__PURE__ */ T("p", {
|
|
381
379
|
className: "text-sm text-text-secondary",
|
|
382
380
|
children: z("botlit.mcpServerDetail.lastConnected", "Last Connected")
|
|
383
381
|
})]
|
|
384
382
|
}) })
|
|
385
383
|
]
|
|
386
384
|
}),
|
|
387
|
-
/* @__PURE__ */
|
|
385
|
+
/* @__PURE__ */ E(a, { children: [/* @__PURE__ */ T(c, { children: /* @__PURE__ */ E(l, {
|
|
388
386
|
className: "flex items-center gap-2",
|
|
389
|
-
children: [/* @__PURE__ */
|
|
390
|
-
}) }), /* @__PURE__ */
|
|
387
|
+
children: [/* @__PURE__ */ T(M, { size: 18 }), z("botlit.mcpServerDetail.connectionDetails", "Connection Details")]
|
|
388
|
+
}) }), /* @__PURE__ */ E(o, { children: [/* @__PURE__ */ E("div", {
|
|
391
389
|
className: "grid grid-cols-2 md:grid-cols-4 gap-6",
|
|
392
390
|
children: [
|
|
393
|
-
/* @__PURE__ */
|
|
391
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
394
392
|
className: "text-sm text-text-secondary",
|
|
395
393
|
children: z("botlit.mcpServerDetail.transport", "Transport")
|
|
396
|
-
}), /* @__PURE__ */
|
|
394
|
+
}), /* @__PURE__ */ T(p, {
|
|
397
395
|
variant: "outline",
|
|
398
396
|
className: "capitalize mt-1",
|
|
399
397
|
children: H.type.toLowerCase().replace("_", " ")
|
|
400
398
|
})] }),
|
|
401
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
402
400
|
className: "text-sm text-text-secondary",
|
|
403
401
|
children: z("botlit.mcpServerDetail.baseUrl", "Base URL")
|
|
404
|
-
}), /* @__PURE__ */
|
|
402
|
+
}), /* @__PURE__ */ T("p", {
|
|
405
403
|
className: "font-medium text-sm truncate",
|
|
406
|
-
children:
|
|
404
|
+
children: g(H) ?? "—"
|
|
407
405
|
})] }),
|
|
408
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
409
407
|
className: "text-sm text-text-secondary",
|
|
410
408
|
children: z("botlit.mcpServerDetail.authMethod", "Auth Method")
|
|
411
|
-
}), /* @__PURE__ */
|
|
409
|
+
}), /* @__PURE__ */ T(p, {
|
|
412
410
|
variant: "outline",
|
|
413
411
|
className: "capitalize mt-1",
|
|
414
412
|
children: (L(H.config, "authMethod") ?? "NONE").toLowerCase().replace("_", " ")
|
|
415
413
|
})] }),
|
|
416
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
417
415
|
className: "text-sm text-text-secondary",
|
|
418
416
|
children: z("botlit.mcpServerDetail.lastTested", "Last Tested")
|
|
419
|
-
}), /* @__PURE__ */
|
|
417
|
+
}), /* @__PURE__ */ T("p", {
|
|
420
418
|
className: "font-medium",
|
|
421
|
-
children: H.lastErrorAt ?
|
|
419
|
+
children: H.lastErrorAt ? y(H.lastErrorAt) : z("botlit.mcpServerDetail.never", "Never")
|
|
422
420
|
})] })
|
|
423
421
|
]
|
|
424
|
-
}), H.errorMessage && /* @__PURE__ */
|
|
422
|
+
}), H.errorMessage && /* @__PURE__ */ E("div", {
|
|
425
423
|
className: "mt-4 p-3 bg-status-error-bg-subtle rounded-lg text-sm text-status-error-text",
|
|
426
424
|
children: [
|
|
427
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ T("strong", { children: z("botlit.mcpServerDetail.error", "Error:") }),
|
|
428
426
|
" ",
|
|
429
427
|
H.errorMessage
|
|
430
428
|
]
|
|
431
429
|
})] })] }),
|
|
432
|
-
/* @__PURE__ */
|
|
430
|
+
/* @__PURE__ */ E("div", {
|
|
433
431
|
className: "grid grid-cols-12 gap-6",
|
|
434
|
-
children: [/* @__PURE__ */
|
|
432
|
+
children: [/* @__PURE__ */ T("div", {
|
|
435
433
|
className: "col-span-5",
|
|
436
|
-
children: /* @__PURE__ */
|
|
434
|
+
children: /* @__PURE__ */ E(a, {
|
|
437
435
|
className: "h-full",
|
|
438
|
-
children: [/* @__PURE__ */
|
|
436
|
+
children: [/* @__PURE__ */ E(c, { children: [/* @__PURE__ */ E(l, {
|
|
439
437
|
className: "flex items-center gap-2",
|
|
440
|
-
children: [/* @__PURE__ */
|
|
441
|
-
}), /* @__PURE__ */
|
|
438
|
+
children: [/* @__PURE__ */ T(F, { size: 18 }), z("botlit.mcpServerDetail.toolCount", "Tools ({{count}})", { count: W.length })]
|
|
439
|
+
}), /* @__PURE__ */ T(s, { children: z("botlit.mcpServerDetail.availableToolsFromThisMcp", "Available tools from this MCP server") })] }), /* @__PURE__ */ T(o, {
|
|
442
440
|
className: "p-0",
|
|
443
|
-
children: W.length > 0 ? /* @__PURE__ */
|
|
441
|
+
children: W.length > 0 ? /* @__PURE__ */ T("div", {
|
|
444
442
|
className: "divide-y divide-border-subtle max-h-96 overflow-auto",
|
|
445
|
-
children: W.map((e) => /* @__PURE__ */
|
|
443
|
+
children: W.map((e) => /* @__PURE__ */ E("button", {
|
|
446
444
|
type: "button",
|
|
447
445
|
className: `w-full text-left p-4 hover:bg-accent transition-colors ${Q?.id === e.id ? "bg-accent" : ""}`,
|
|
448
446
|
onClick: () => Pe(e.name),
|
|
449
|
-
children: [/* @__PURE__ */
|
|
447
|
+
children: [/* @__PURE__ */ E("div", {
|
|
450
448
|
className: "flex items-center justify-between gap-2",
|
|
451
|
-
children: [/* @__PURE__ */
|
|
449
|
+
children: [/* @__PURE__ */ T("p", {
|
|
452
450
|
className: "font-medium truncate",
|
|
453
451
|
children: e.name
|
|
454
|
-
}), /* @__PURE__ */
|
|
452
|
+
}), /* @__PURE__ */ T(p, {
|
|
455
453
|
variant: $(e.riskLevel),
|
|
456
454
|
className: "shrink-0",
|
|
457
455
|
children: e.riskLevel
|
|
458
456
|
})]
|
|
459
|
-
}), /* @__PURE__ */
|
|
457
|
+
}), /* @__PURE__ */ T("p", {
|
|
460
458
|
className: "text-sm text-text-secondary line-clamp-1",
|
|
461
459
|
children: e.description
|
|
462
460
|
})]
|
|
463
461
|
}, e.id))
|
|
464
|
-
}) : /* @__PURE__ */
|
|
462
|
+
}) : /* @__PURE__ */ E("div", {
|
|
465
463
|
className: "p-8 text-center text-text-secondary",
|
|
466
|
-
children: [/* @__PURE__ */
|
|
464
|
+
children: [/* @__PURE__ */ T(F, { className: "h-8 w-8 mx-auto mb-2 opacity-50" }), /* @__PURE__ */ T("p", { children: z("botlit.mcpServerDetail.noToolsAvailable", "No tools available") })]
|
|
467
465
|
})
|
|
468
466
|
})]
|
|
469
467
|
})
|
|
470
|
-
}), /* @__PURE__ */
|
|
468
|
+
}), /* @__PURE__ */ T("div", {
|
|
471
469
|
className: "col-span-7",
|
|
472
|
-
children: Q ? /* @__PURE__ */
|
|
470
|
+
children: Q ? /* @__PURE__ */ E(a, {
|
|
473
471
|
className: "h-full",
|
|
474
|
-
children: [/* @__PURE__ */
|
|
472
|
+
children: [/* @__PURE__ */ T(c, { children: /* @__PURE__ */ E("div", {
|
|
475
473
|
className: "flex items-start justify-between gap-4",
|
|
476
|
-
children: [/* @__PURE__ */
|
|
474
|
+
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T(l, { children: Q.name }), /* @__PURE__ */ T(s, { children: Q.description })] }), /* @__PURE__ */ T(p, {
|
|
477
475
|
variant: $(Q.riskLevel),
|
|
478
476
|
children: Q.riskLevel
|
|
479
477
|
})]
|
|
480
|
-
}) }), /* @__PURE__ */
|
|
478
|
+
}) }), /* @__PURE__ */ E(o, {
|
|
481
479
|
className: "space-y-4",
|
|
482
|
-
children: [/* @__PURE__ */
|
|
483
|
-
/* @__PURE__ */
|
|
480
|
+
children: [/* @__PURE__ */ E("div", { children: [
|
|
481
|
+
/* @__PURE__ */ T("p", {
|
|
484
482
|
className: "text-sm font-medium mb-2",
|
|
485
483
|
children: z("botlit.mcpServerDetail.riskLevel", "Risk Level")
|
|
486
484
|
}),
|
|
487
|
-
/* @__PURE__ */
|
|
485
|
+
/* @__PURE__ */ E(C, {
|
|
488
486
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
489
487
|
value: Q.riskLevel,
|
|
490
|
-
disabled: Me.loading || !xe(
|
|
488
|
+
disabled: Me.loading || !xe(b.MCP_UPDATE),
|
|
491
489
|
onChange: (e) => void Be(Q.id, e.target.value),
|
|
492
490
|
children: [
|
|
493
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ T("option", {
|
|
494
492
|
value: "LOW",
|
|
495
493
|
children: z("botlit.mcpServerDetail.lowSafeReadNotifyActions", "Low — safe read/notify actions")
|
|
496
494
|
}),
|
|
497
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ T("option", {
|
|
498
496
|
value: "MEDIUM",
|
|
499
497
|
children: z("botlit.mcpServerDetail.mediumStateChangingActions", "Medium — state-changing actions")
|
|
500
498
|
}),
|
|
501
|
-
/* @__PURE__ */
|
|
499
|
+
/* @__PURE__ */ T("option", {
|
|
502
500
|
value: "HIGH",
|
|
503
501
|
children: z("botlit.mcpServerDetail.highDestructiveOrSensitiveActions", "High — destructive or sensitive actions")
|
|
504
502
|
})
|
|
505
503
|
]
|
|
506
504
|
}),
|
|
507
|
-
/* @__PURE__ */
|
|
505
|
+
/* @__PURE__ */ T("p", {
|
|
508
506
|
className: "text-xs text-text-secondary mt-1",
|
|
509
507
|
children: z("botlit.mcpServerDetail.agentsCanOnlyInvokeTools", "Agents can only invoke tools up to the maximum risk level allowed by your workspace tool policies.")
|
|
510
508
|
})
|
|
511
|
-
] }), /* @__PURE__ */
|
|
509
|
+
] }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
512
510
|
className: "text-sm font-medium mb-2",
|
|
513
511
|
children: z("botlit.mcpServerDetail.inputSchema", "Input Schema")
|
|
514
|
-
}), /* @__PURE__ */
|
|
512
|
+
}), /* @__PURE__ */ T("div", {
|
|
515
513
|
className: "p-3 bg-bg-sunken rounded-lg font-mono text-xs overflow-auto max-h-96",
|
|
516
|
-
children: /* @__PURE__ */
|
|
514
|
+
children: /* @__PURE__ */ T("pre", { children: JSON.stringify(Q.inputSchema, null, 2) })
|
|
517
515
|
})] })]
|
|
518
516
|
})]
|
|
519
|
-
}) : /* @__PURE__ */
|
|
517
|
+
}) : /* @__PURE__ */ T(a, {
|
|
520
518
|
className: "h-full",
|
|
521
|
-
children: /* @__PURE__ */
|
|
519
|
+
children: /* @__PURE__ */ T(o, {
|
|
522
520
|
className: "h-full flex items-center justify-center",
|
|
523
|
-
children: /* @__PURE__ */
|
|
521
|
+
children: /* @__PURE__ */ T(m, {
|
|
524
522
|
illustration: "onboarding",
|
|
525
523
|
title: z("botlit.mcpServerDetail.selectATool", "Select a tool"),
|
|
526
524
|
description: z("botlit.mcpServerDetail.chooseAToolFromThe", "Choose a tool from the list to view its details")
|
|
@@ -529,66 +527,66 @@ var R = ({ isNew: R }) => {
|
|
|
529
527
|
})
|
|
530
528
|
})]
|
|
531
529
|
}),
|
|
532
|
-
G.length > 0 && /* @__PURE__ */
|
|
530
|
+
G.length > 0 && /* @__PURE__ */ E(a, { children: [/* @__PURE__ */ E(c, { children: [/* @__PURE__ */ T(l, { children: z("botlit.mcpServerDetail.resources", "Resources") }), /* @__PURE__ */ T(s, { children: z("botlit.mcpServerDetail.availableResourcesExposedByThis", "Available resources exposed by this server") })] }), /* @__PURE__ */ T(o, { children: /* @__PURE__ */ T("div", {
|
|
533
531
|
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
534
|
-
children: G.map((e) => /* @__PURE__ */
|
|
532
|
+
children: G.map((e) => /* @__PURE__ */ E("div", {
|
|
535
533
|
className: "p-4 border border-border-subtle rounded-lg hover:bg-accent/50 transition-colors",
|
|
536
|
-
children: [/* @__PURE__ */
|
|
534
|
+
children: [/* @__PURE__ */ E("div", {
|
|
537
535
|
className: "flex items-start justify-between",
|
|
538
|
-
children: [/* @__PURE__ */
|
|
536
|
+
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
539
537
|
className: "font-medium",
|
|
540
538
|
children: e.name
|
|
541
|
-
}), /* @__PURE__ */
|
|
539
|
+
}), /* @__PURE__ */ T("p", {
|
|
542
540
|
className: "text-sm text-text-secondary",
|
|
543
541
|
children: e.description
|
|
544
|
-
})] }), /* @__PURE__ */
|
|
542
|
+
})] }), /* @__PURE__ */ T(D, {
|
|
545
543
|
size: 14,
|
|
546
544
|
className: "text-text-secondary"
|
|
547
545
|
})]
|
|
548
|
-
}), /* @__PURE__ */
|
|
546
|
+
}), /* @__PURE__ */ E("div", {
|
|
549
547
|
className: "mt-2 flex items-center gap-2",
|
|
550
|
-
children: [/* @__PURE__ */
|
|
548
|
+
children: [/* @__PURE__ */ T(p, {
|
|
551
549
|
variant: "outline",
|
|
552
550
|
className: "text-xs font-mono",
|
|
553
551
|
children: e.mimeType || "unknown"
|
|
554
|
-
}), /* @__PURE__ */
|
|
552
|
+
}), /* @__PURE__ */ T("span", {
|
|
555
553
|
className: "text-xs text-text-secondary truncate",
|
|
556
554
|
children: e.uri
|
|
557
555
|
})]
|
|
558
556
|
})]
|
|
559
557
|
}, e.uri))
|
|
560
558
|
}) })] }),
|
|
561
|
-
/* @__PURE__ */
|
|
559
|
+
/* @__PURE__ */ E(a, { children: [/* @__PURE__ */ T(c, { children: /* @__PURE__ */ E(l, {
|
|
562
560
|
className: "flex items-center gap-2",
|
|
563
|
-
children: [/* @__PURE__ */
|
|
564
|
-
}) }), /* @__PURE__ */
|
|
561
|
+
children: [/* @__PURE__ */ T(N, { size: 18 }), z("botlit.mcpServerDetail.metadata", "Metadata")]
|
|
562
|
+
}) }), /* @__PURE__ */ T(o, { children: /* @__PURE__ */ E("div", {
|
|
565
563
|
className: "grid grid-cols-2 md:grid-cols-4 gap-6 text-sm",
|
|
566
564
|
children: [
|
|
567
|
-
/* @__PURE__ */
|
|
565
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
568
566
|
className: "text-text-secondary",
|
|
569
567
|
children: z("botlit.mcpServerDetail.created", "Created")
|
|
570
|
-
}), /* @__PURE__ */
|
|
568
|
+
}), /* @__PURE__ */ T("p", {
|
|
571
569
|
className: "font-medium",
|
|
572
|
-
children:
|
|
570
|
+
children: y(H.createdAt)
|
|
573
571
|
})] }),
|
|
574
|
-
/* @__PURE__ */
|
|
572
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
575
573
|
className: "text-text-secondary",
|
|
576
574
|
children: z("botlit.mcpServerDetail.updated", "Updated")
|
|
577
|
-
}), /* @__PURE__ */
|
|
575
|
+
}), /* @__PURE__ */ T("p", {
|
|
578
576
|
className: "font-medium",
|
|
579
|
-
children:
|
|
577
|
+
children: y(H.updatedAt)
|
|
580
578
|
})] }),
|
|
581
|
-
/* @__PURE__ */
|
|
579
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
582
580
|
className: "text-text-secondary",
|
|
583
581
|
children: z("botlit.mcpServerDetail.lastConnected", "Last Connected")
|
|
584
|
-
}), /* @__PURE__ */
|
|
582
|
+
}), /* @__PURE__ */ T("p", {
|
|
585
583
|
className: "font-medium",
|
|
586
|
-
children: H.lastConnectedAt ?
|
|
584
|
+
children: H.lastConnectedAt ? y(H.lastConnectedAt) : z("botlit.mcpServerDetail.never", "Never")
|
|
587
585
|
})] }),
|
|
588
|
-
/* @__PURE__ */
|
|
586
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
589
587
|
className: "text-text-secondary",
|
|
590
588
|
children: z("botlit.mcpServerDetail.storedCredentials", "Stored credentials")
|
|
591
|
-
}), /* @__PURE__ */
|
|
589
|
+
}), /* @__PURE__ */ T(p, {
|
|
592
590
|
variant: H.hasCredentials ? "success" : "secondary",
|
|
593
591
|
children: H.hasCredentials ? z("botlit.mcpServerDetail.configured", "Configured") : z("botlit.mcpServerDetail.none", "None")
|
|
594
592
|
})] })
|
|
@@ -596,14 +594,14 @@ var R = ({ isNew: R }) => {
|
|
|
596
594
|
}) })] })
|
|
597
595
|
]
|
|
598
596
|
})
|
|
599
|
-
}) : /* @__PURE__ */
|
|
597
|
+
}) : /* @__PURE__ */ T(i, {
|
|
600
598
|
title: z("botlit.mcpServerDetail.serverNotFound", "Server Not Found"),
|
|
601
|
-
children: /* @__PURE__ */
|
|
599
|
+
children: /* @__PURE__ */ T(m, {
|
|
602
600
|
kind: "not-found",
|
|
603
601
|
illustration: "empty-generic",
|
|
604
602
|
title: z("botlit.mcpServerDetail.serverNotFound", "Server Not Found"),
|
|
605
603
|
description: z("botlit.mcpServerDetail.thisMcpServerDoesnT", "This MCP server doesn't exist."),
|
|
606
|
-
action: /* @__PURE__ */
|
|
604
|
+
action: /* @__PURE__ */ T(u, {
|
|
607
605
|
onClick: () => V("mcp"),
|
|
608
606
|
children: z("botlit.mcpServerDetail.backToMcpServers", "Back to MCP Servers")
|
|
609
607
|
})
|