@burdenoff/microfe-botmanor 2026.1127.2 → 2026.1127.4

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