@burdenoff/microfe-botmanor 2026.1026.1 → 2026.1027.2
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 +55 -51
- package/dist/botlit/BotlitRoutes.js.map +1 -1
- package/dist/botlit/components/AgentApprovalPanel.js +233 -0
- package/dist/botlit/components/AgentApprovalPanel.js.map +1 -0
- package/dist/botlit/hooks/useAgentApprovals.js +195 -0
- package/dist/botlit/hooks/useAgentApprovals.js.map +1 -0
- package/dist/botlit/pages/AgentApprovalsPage.js +206 -0
- package/dist/botlit/pages/AgentApprovalsPage.js.map +1 -0
- package/dist/botlit/pages/AgentDetailPage.js +343 -324
- package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/AgentsListPage.js +143 -135
- package/dist/botlit/pages/AgentsListPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,536 +1,555 @@
|
|
|
1
1
|
import { useTr as e } from "../../shared/hooks/useTr.js";
|
|
2
2
|
import { useBotlit as t } from "../providers/BotlitProvider.js";
|
|
3
|
-
import { useAgent as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { formatRelativeTime as
|
|
6
|
-
import { PageLayout as
|
|
7
|
-
import { Card as
|
|
8
|
-
import { Button as
|
|
9
|
-
import { Badge as
|
|
10
|
-
import { EmptyState as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
3
|
+
import { useAgent as n, useDeleteAgent as r, useUpdateAgent as i } from "../hooks/useAgents.js";
|
|
4
|
+
import { cn as ee } from "../utils/cn.js";
|
|
5
|
+
import { formatRelativeTime as a } from "../utils/formatters.js";
|
|
6
|
+
import { PageLayout as o } from "../components/PageLayout.js";
|
|
7
|
+
import { Card as s, CardContent as c, CardDescription as l, CardHeader as u, CardTitle as d } from "../components/Card.js";
|
|
8
|
+
import { Button as f } from "../components/Button.js";
|
|
9
|
+
import { Badge as p, StatusBadge as m } from "../components/Badge.js";
|
|
10
|
+
import { EmptyState as h } from "../components/EmptyState.js";
|
|
11
|
+
import { useAgentApprovalSettings as g } from "../hooks/useAgentApprovals.js";
|
|
12
|
+
import { AgentApprovalPanel as _ } from "../components/AgentApprovalPanel.js";
|
|
13
|
+
import { VersionHistoryPanel as te } from "../components/VersionHistoryPanel.js";
|
|
14
|
+
import { AssistantRuntimeSetupPanel as ne } from "../components/AssistantRuntimeSetupPanel.js";
|
|
15
|
+
import { AssistantChannelPanel as re } from "../components/AssistantChannelPanel.js";
|
|
16
|
+
import { AssistantWebsitePanel as v } from "../components/AssistantWebsitePanel.js";
|
|
17
|
+
import { useState as y } from "react";
|
|
18
|
+
import { GlassCard as ie, NextSteps as ae, PagePurpose as b } from "@burdenoff/fe-libs/ui";
|
|
19
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
20
|
+
import { useParams as C } from "react-router";
|
|
21
|
+
import { ArrowLeft as oe, BarChart3 as se, BookOpen as w, Brain as T, Edit as E, FileText as D, History as ce, MessageSquare as le, Play as O, Settings as k, Share2 as A, Shield as j, Trash2 as ue, Wrench as M } from "lucide-react";
|
|
22
|
+
import { toast as N } from "sonner";
|
|
21
23
|
//#region src/botlit/pages/AgentDetailPage.tsx
|
|
22
|
-
var
|
|
23
|
-
let
|
|
24
|
-
if (
|
|
25
|
-
title:
|
|
26
|
-
children: /* @__PURE__ */
|
|
24
|
+
var P = () => {
|
|
25
|
+
let P = e(), { agentId: F } = C(), { navigateTo: I } = t(), { data: L, loading: R, refetch: z } = n(F), [B, V] = i(), [H, de] = r(), [U, W] = y("overview"), fe = g();
|
|
26
|
+
if (R) return /* @__PURE__ */ x(o, {
|
|
27
|
+
title: P("botlit.common.loading", "Loading..."),
|
|
28
|
+
children: /* @__PURE__ */ x("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
|
|
27
29
|
});
|
|
28
|
-
if (!
|
|
29
|
-
title:
|
|
30
|
-
children: /* @__PURE__ */
|
|
30
|
+
if (!L) return /* @__PURE__ */ x(o, {
|
|
31
|
+
title: P("botlit.agentDetail.notFound.title", "Agent Not Found"),
|
|
32
|
+
children: /* @__PURE__ */ x(h, {
|
|
31
33
|
illustration: "empty-agents",
|
|
32
|
-
title:
|
|
33
|
-
description:
|
|
34
|
-
action: /* @__PURE__ */
|
|
35
|
-
onClick: () =>
|
|
36
|
-
children:
|
|
34
|
+
title: P("botlit.agentDetail.notFound.title", "Agent Not Found"),
|
|
35
|
+
description: P("botlit.agentDetail.notFound.description", "The agent you're looking for doesn't exist."),
|
|
36
|
+
action: /* @__PURE__ */ x(f, {
|
|
37
|
+
onClick: () => I("agents"),
|
|
38
|
+
children: P("botlit.agentDetail.notFound.backAction", "Back to Agents")
|
|
37
39
|
})
|
|
38
40
|
})
|
|
39
41
|
});
|
|
40
|
-
let G =
|
|
42
|
+
let G = L.systemPrompt || "", K = L.llmModelId || "", pe = L.temperature, me = L.maxTokens, q = L.mcpConnectionIds ?? [], J = L.knowledgeBaseIds ?? [], Y = L.workflowIds ?? [], X = L.capabilities ?? [], Z = L.tagIds ?? [], Q = L.maxConcurrentExecutions || 10, $ = L.metadata ?? null, he = [
|
|
41
43
|
{
|
|
42
44
|
id: "assistant",
|
|
43
45
|
label: "Assistant setup",
|
|
44
|
-
icon: /* @__PURE__ */
|
|
46
|
+
icon: /* @__PURE__ */ x(k, { size: 16 })
|
|
45
47
|
},
|
|
46
48
|
{
|
|
47
49
|
id: "overview",
|
|
48
|
-
label:
|
|
49
|
-
icon: /* @__PURE__ */
|
|
50
|
+
label: P("botlit.agentDetail.tabs.overview", "Overview"),
|
|
51
|
+
icon: /* @__PURE__ */ x(se, { size: 16 })
|
|
50
52
|
},
|
|
51
53
|
{
|
|
52
54
|
id: "prompt",
|
|
53
|
-
label:
|
|
54
|
-
icon: /* @__PURE__ */
|
|
55
|
+
label: P("botlit.agentDetail.tabs.prompt", "Prompt"),
|
|
56
|
+
icon: /* @__PURE__ */ x(D, { size: 16 })
|
|
55
57
|
},
|
|
56
58
|
{
|
|
57
59
|
id: "llm",
|
|
58
|
-
label:
|
|
59
|
-
icon: /* @__PURE__ */
|
|
60
|
+
label: P("botlit.agentDetail.tabs.llmConfig", "LLM Config"),
|
|
61
|
+
icon: /* @__PURE__ */ x(T, { size: 16 })
|
|
60
62
|
},
|
|
61
63
|
{
|
|
62
64
|
id: "tools",
|
|
63
|
-
label:
|
|
64
|
-
icon: /* @__PURE__ */
|
|
65
|
+
label: P("botlit.agentDetail.tabs.tools", "Tools"),
|
|
66
|
+
icon: /* @__PURE__ */ x(M, { size: 16 })
|
|
65
67
|
},
|
|
66
68
|
{
|
|
67
69
|
id: "knowledge",
|
|
68
|
-
label:
|
|
69
|
-
icon: /* @__PURE__ */
|
|
70
|
+
label: P("botlit.agentDetail.tabs.knowledge", "Knowledge"),
|
|
71
|
+
icon: /* @__PURE__ */ x(w, { size: 16 })
|
|
70
72
|
},
|
|
71
73
|
{
|
|
72
74
|
id: "guardrails",
|
|
73
|
-
label:
|
|
74
|
-
icon: /* @__PURE__ */
|
|
75
|
+
label: P("botlit.agentDetail.tabs.guardrails", "Guardrails"),
|
|
76
|
+
icon: /* @__PURE__ */ x(j, { size: 16 })
|
|
75
77
|
},
|
|
76
78
|
{
|
|
77
79
|
id: "a2a",
|
|
78
|
-
label:
|
|
79
|
-
icon: /* @__PURE__ */
|
|
80
|
+
label: P("botlit.agentDetail.tabs.a2a", "A2A"),
|
|
81
|
+
icon: /* @__PURE__ */ x(A, { size: 16 })
|
|
80
82
|
},
|
|
81
83
|
{
|
|
82
84
|
id: "versions",
|
|
83
|
-
label:
|
|
84
|
-
icon: /* @__PURE__ */
|
|
85
|
+
label: P("botlit.agentDetail.tabs.versions", "Versions"),
|
|
86
|
+
icon: /* @__PURE__ */ x(ce, { size: 16 })
|
|
85
87
|
}
|
|
86
88
|
];
|
|
87
|
-
return /* @__PURE__ */
|
|
88
|
-
title: /* @__PURE__ */
|
|
89
|
+
return /* @__PURE__ */ x(o, {
|
|
90
|
+
title: /* @__PURE__ */ S("div", {
|
|
89
91
|
className: "flex items-center gap-3",
|
|
90
92
|
children: [
|
|
91
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ x(f, {
|
|
92
94
|
variant: "ghost",
|
|
93
95
|
size: "icon",
|
|
94
|
-
onClick: () =>
|
|
95
|
-
children: /* @__PURE__ */
|
|
96
|
+
onClick: () => I("agents"),
|
|
97
|
+
children: /* @__PURE__ */ x(oe, { size: 20 })
|
|
96
98
|
}),
|
|
97
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ x("span", {
|
|
98
100
|
className: "text-3xl",
|
|
99
101
|
children: "🤖"
|
|
100
102
|
}),
|
|
101
|
-
/* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("div", {
|
|
102
104
|
className: "flex items-center gap-2",
|
|
103
105
|
children: [
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ x("span", { children: L.name }),
|
|
107
|
+
/* @__PURE__ */ x(m, { status: L.status }),
|
|
108
|
+
/* @__PURE__ */ x(p, {
|
|
107
109
|
variant: "outline",
|
|
108
|
-
children:
|
|
110
|
+
children: L.slug
|
|
109
111
|
})
|
|
110
112
|
]
|
|
111
|
-
}), /* @__PURE__ */
|
|
113
|
+
}), /* @__PURE__ */ x("p", {
|
|
112
114
|
className: "text-sm font-normal text-text-secondary",
|
|
113
|
-
children:
|
|
115
|
+
children: L.description
|
|
114
116
|
})] })
|
|
115
117
|
]
|
|
116
118
|
}),
|
|
117
|
-
actions: /* @__PURE__ */
|
|
119
|
+
actions: /* @__PURE__ */ S("div", {
|
|
118
120
|
className: "flex gap-2",
|
|
119
121
|
children: [
|
|
120
|
-
|
|
122
|
+
fe.data?.requireActivationApproval && (L.status === "DRAFT" || L.status === "ARCHIVED") && !L.currentVersionId ? /* @__PURE__ */ x(f, {
|
|
121
123
|
variant: "default",
|
|
122
|
-
|
|
124
|
+
onClick: () => {
|
|
125
|
+
W("overview"), requestAnimationFrame(() => document.querySelector("[data-testid=\"agent-approval-panel\"]")?.scrollIntoView({
|
|
126
|
+
behavior: "smooth",
|
|
127
|
+
block: "start"
|
|
128
|
+
}));
|
|
129
|
+
},
|
|
130
|
+
children: P("botlit.agentApproval.requestAction", "Request activation")
|
|
131
|
+
}) : L.status === "DRAFT" || L.status === "ARCHIVED" ? /* @__PURE__ */ x(f, {
|
|
132
|
+
variant: "default",
|
|
133
|
+
isLoading: V.loading,
|
|
123
134
|
onClick: async () => {
|
|
124
135
|
try {
|
|
125
|
-
if (!
|
|
126
|
-
await
|
|
127
|
-
agentId:
|
|
136
|
+
if (!F) return;
|
|
137
|
+
await B({
|
|
138
|
+
agentId: F,
|
|
128
139
|
input: { status: "ACTIVE" }
|
|
129
|
-
}), await
|
|
140
|
+
}), await z(), N.success(`${P("botlit.agentDetail.activate.successPrefix", "Agent")} "${L.name}" ${P("botlit.agentDetail.activate.successSuffix", "activated")}`);
|
|
130
141
|
} catch (e) {
|
|
131
|
-
|
|
142
|
+
N.error(e instanceof Error ? e.message : P("botlit.agentDetail.activate.error", "Failed to activate agent"));
|
|
132
143
|
}
|
|
133
144
|
},
|
|
134
|
-
children:
|
|
135
|
-
}) : /* @__PURE__ */
|
|
145
|
+
children: P("botlit.agentDetail.actions.activate", "Activate")
|
|
146
|
+
}) : /* @__PURE__ */ x(f, {
|
|
136
147
|
variant: "outline",
|
|
137
|
-
isLoading:
|
|
148
|
+
isLoading: V.loading,
|
|
138
149
|
onClick: async () => {
|
|
139
150
|
try {
|
|
140
|
-
if (!
|
|
141
|
-
await
|
|
142
|
-
agentId:
|
|
151
|
+
if (!F) return;
|
|
152
|
+
await B({
|
|
153
|
+
agentId: F,
|
|
143
154
|
input: { status: "DRAFT" }
|
|
144
|
-
}), await
|
|
155
|
+
}), await z(), N.success(`${P("botlit.agentDetail.deactivate.successPrefix", "Agent")} "${L.name}" ${P("botlit.agentDetail.deactivate.successSuffix", "deactivated")}`);
|
|
145
156
|
} catch (e) {
|
|
146
|
-
|
|
157
|
+
N.error(e instanceof Error ? e.message : P("botlit.agentDetail.deactivate.error", "Failed to deactivate agent"));
|
|
147
158
|
}
|
|
148
159
|
},
|
|
149
|
-
children:
|
|
160
|
+
children: P("botlit.agentDetail.actions.deactivate", "Deactivate")
|
|
150
161
|
}),
|
|
151
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ x(f, {
|
|
152
163
|
variant: "outline",
|
|
153
|
-
leftIcon: /* @__PURE__ */
|
|
154
|
-
onClick: () =>
|
|
155
|
-
children:
|
|
164
|
+
leftIcon: /* @__PURE__ */ x(E, { size: 16 }),
|
|
165
|
+
onClick: () => I(`agents/${F}/edit`),
|
|
166
|
+
children: P("botlit.agentDetail.actions.editAgent", "Edit Agent")
|
|
156
167
|
}),
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
leftIcon: /* @__PURE__ */
|
|
159
|
-
onClick: () =>
|
|
160
|
-
children:
|
|
168
|
+
/* @__PURE__ */ x(f, {
|
|
169
|
+
leftIcon: /* @__PURE__ */ x(O, { size: 16 }),
|
|
170
|
+
onClick: () => I(`chat/${F}`),
|
|
171
|
+
children: P("botlit.agentDetail.actions.testAgent", "Test Agent")
|
|
161
172
|
}),
|
|
162
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ x(f, {
|
|
163
174
|
variant: "destructive",
|
|
164
|
-
leftIcon: /* @__PURE__ */
|
|
165
|
-
isLoading:
|
|
175
|
+
leftIcon: /* @__PURE__ */ x(ue, { size: 16 }),
|
|
176
|
+
isLoading: de.loading,
|
|
166
177
|
onClick: async () => {
|
|
167
|
-
if (
|
|
168
|
-
await
|
|
178
|
+
if (F && confirm(`${P("botlit.agentDetail.delete.confirmPrefix", "Are you sure you want to delete")} "${L.name}"? ${P("botlit.agentDetail.delete.confirmSuffix", "This action cannot be undone.")}`)) try {
|
|
179
|
+
await H(F), N.success(`${P("botlit.agentDetail.delete.successPrefix", "Agent")} "${L.name}" ${P("botlit.agentDetail.delete.successSuffix", "deleted successfully")}`), I("agents");
|
|
169
180
|
} catch (e) {
|
|
170
|
-
|
|
181
|
+
N.error(e instanceof Error ? e.message : P("botlit.agentDetail.delete.error", "Failed to delete agent"));
|
|
171
182
|
}
|
|
172
183
|
},
|
|
173
|
-
children:
|
|
184
|
+
children: P("botlit.common.delete", "Delete")
|
|
174
185
|
})
|
|
175
186
|
]
|
|
176
187
|
}),
|
|
177
|
-
children: /* @__PURE__ */
|
|
188
|
+
children: /* @__PURE__ */ S("div", {
|
|
178
189
|
className: "space-y-6",
|
|
179
190
|
children: [
|
|
180
|
-
U === "assistant" &&
|
|
191
|
+
U === "assistant" && F && /* @__PURE__ */ S("div", {
|
|
181
192
|
className: "space-y-5",
|
|
182
193
|
children: [
|
|
183
|
-
/* @__PURE__ */
|
|
184
|
-
agentId:
|
|
185
|
-
onConfigured: () => void
|
|
194
|
+
/* @__PURE__ */ x(ne, {
|
|
195
|
+
agentId: F,
|
|
196
|
+
onConfigured: () => void z()
|
|
186
197
|
}),
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
agentId:
|
|
198
|
+
/* @__PURE__ */ x(v, {
|
|
199
|
+
agentId: F,
|
|
189
200
|
knowledgeBaseIds: J
|
|
190
201
|
}),
|
|
191
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ x(re, { agentId: F })
|
|
192
203
|
]
|
|
193
204
|
}),
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
icon: /* @__PURE__ */
|
|
196
|
-
children:
|
|
205
|
+
/* @__PURE__ */ x(b, {
|
|
206
|
+
icon: /* @__PURE__ */ x(T, { size: 18 }),
|
|
207
|
+
children: P("botlit.agentDetail.purpose", "This is the full configuration for a single agent — its prompt, model settings, the tools and knowledge it can use, its guardrails and how it talks to other agents. Use the tabs to inspect or change any part, and test the agent in chat to confirm it behaves the way you expect before going live.")
|
|
197
208
|
}),
|
|
198
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ x("div", {
|
|
199
210
|
className: "flex gap-1 border-b border-border-subtle overflow-x-auto",
|
|
200
|
-
children:
|
|
211
|
+
children: he.map((e) => /* @__PURE__ */ S("button", {
|
|
201
212
|
onClick: () => W(e.id),
|
|
202
|
-
className:
|
|
213
|
+
className: ee("flex items-center gap-2 px-4 py-2 text-sm font-medium border-b-2 transition-colors whitespace-nowrap", U === e.id ? "border-primary text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
|
|
203
214
|
children: [e.icon, e.label]
|
|
204
215
|
}, e.id))
|
|
205
216
|
}),
|
|
206
|
-
U === "overview" && /* @__PURE__ */
|
|
217
|
+
U === "overview" && /* @__PURE__ */ S("div", {
|
|
207
218
|
className: "space-y-6",
|
|
208
|
-
children: [
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
219
|
+
children: [
|
|
220
|
+
/* @__PURE__ */ x(ae, {
|
|
221
|
+
storageKey: `botlit-agent-${F}`,
|
|
222
|
+
steps: [
|
|
223
|
+
{
|
|
224
|
+
id: "test",
|
|
225
|
+
label: P("botlit.agentDetail.nextSteps.test", "Test the agent in chat"),
|
|
226
|
+
description: P("botlit.agentDetail.nextSteps.testDesc", "Send it a few real prompts to see how it responds."),
|
|
227
|
+
icon: /* @__PURE__ */ x(O, { size: 16 }),
|
|
228
|
+
onClick: () => I(`chat/${F}`)
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
id: "prompt",
|
|
232
|
+
label: P("botlit.agentDetail.nextSteps.prompt", "Refine the system prompt"),
|
|
233
|
+
description: P("botlit.agentDetail.nextSteps.promptDesc", "Tune its instructions and behaviour."),
|
|
234
|
+
icon: /* @__PURE__ */ x(D, { size: 16 }),
|
|
235
|
+
onClick: () => W("prompt")
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
id: "tools",
|
|
239
|
+
label: P("botlit.agentDetail.nextSteps.tools", "Connect tools & knowledge"),
|
|
240
|
+
description: P("botlit.agentDetail.nextSteps.toolsDesc", "Give it MCP tools and knowledge bases to work with."),
|
|
241
|
+
icon: /* @__PURE__ */ x(M, { size: 16 }),
|
|
242
|
+
onClick: () => W("tools")
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
id: "activate",
|
|
246
|
+
label: P("botlit.agentDetail.nextSteps.activate", "Activate and attach to a bot"),
|
|
247
|
+
description: P("botlit.agentDetail.nextSteps.activateDesc", "Put it live so a bot can route conversations to it."),
|
|
248
|
+
icon: /* @__PURE__ */ x(A, { size: 16 }),
|
|
249
|
+
onClick: () => I(`agents/${F}/edit`),
|
|
250
|
+
done: L.status === "ACTIVE"
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
}),
|
|
254
|
+
F && /* @__PURE__ */ x(_, {
|
|
255
|
+
agentId: F,
|
|
256
|
+
agentStatus: L.status,
|
|
257
|
+
onChanged: () => void z()
|
|
258
|
+
}),
|
|
259
|
+
/* @__PURE__ */ S("div", {
|
|
260
|
+
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
261
|
+
children: [
|
|
262
|
+
/* @__PURE__ */ S(s, {
|
|
263
|
+
className: "lg:col-span-1",
|
|
264
|
+
children: [/* @__PURE__ */ x(u, { children: /* @__PURE__ */ x(d, { children: "Details" }) }), /* @__PURE__ */ S(c, {
|
|
265
|
+
className: "space-y-4",
|
|
266
|
+
children: [
|
|
267
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
268
|
+
className: "text-sm text-text-secondary",
|
|
269
|
+
children: "Status"
|
|
270
|
+
}), /* @__PURE__ */ x(m, { status: L.status })] }),
|
|
271
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
272
|
+
className: "text-sm text-text-secondary",
|
|
273
|
+
children: "Type"
|
|
274
|
+
}), /* @__PURE__ */ x(p, {
|
|
275
|
+
variant: "outline",
|
|
276
|
+
children: L.type
|
|
277
|
+
})] }),
|
|
278
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
279
|
+
className: "text-sm text-text-secondary",
|
|
280
|
+
children: "Visibility"
|
|
281
|
+
}), /* @__PURE__ */ x(p, {
|
|
282
|
+
variant: "outline",
|
|
283
|
+
children: L.visibility
|
|
284
|
+
})] }),
|
|
285
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
286
|
+
className: "text-sm text-text-secondary",
|
|
287
|
+
children: "LLM Model"
|
|
288
|
+
}), /* @__PURE__ */ x("p", {
|
|
289
|
+
className: "font-medium font-mono text-sm",
|
|
290
|
+
children: K || "Not configured"
|
|
291
|
+
})] }),
|
|
292
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
293
|
+
className: "text-sm text-text-secondary",
|
|
294
|
+
children: "MCP Connections"
|
|
295
|
+
}), /* @__PURE__ */ S("p", {
|
|
296
|
+
className: "font-medium",
|
|
297
|
+
children: [q.length, " servers"]
|
|
298
|
+
})] }),
|
|
299
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
300
|
+
className: "text-sm text-text-secondary",
|
|
301
|
+
children: "Knowledge Bases"
|
|
302
|
+
}), /* @__PURE__ */ S("p", {
|
|
303
|
+
className: "font-medium",
|
|
304
|
+
children: [J.length, " KBs"]
|
|
305
|
+
})] }),
|
|
306
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
307
|
+
className: "text-sm text-text-secondary",
|
|
308
|
+
children: "Max Concurrent"
|
|
309
|
+
}), /* @__PURE__ */ x("p", {
|
|
310
|
+
className: "font-medium",
|
|
311
|
+
children: Q
|
|
312
|
+
})] }),
|
|
313
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
314
|
+
className: "text-sm text-text-secondary",
|
|
315
|
+
children: "Executions"
|
|
316
|
+
}), /* @__PURE__ */ x("p", {
|
|
317
|
+
className: "font-medium",
|
|
318
|
+
children: L.executionCount ?? 0
|
|
319
|
+
})] }),
|
|
320
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
321
|
+
className: "text-sm text-text-secondary",
|
|
322
|
+
children: "Created"
|
|
323
|
+
}), /* @__PURE__ */ x("p", {
|
|
324
|
+
className: "font-medium",
|
|
325
|
+
children: a(L.createdAt)
|
|
326
|
+
})] }),
|
|
327
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
328
|
+
className: "text-sm text-text-secondary",
|
|
329
|
+
children: "Updated"
|
|
330
|
+
}), /* @__PURE__ */ x("p", {
|
|
331
|
+
className: "font-medium",
|
|
332
|
+
children: a(L.updatedAt)
|
|
333
|
+
})] })
|
|
334
|
+
]
|
|
335
|
+
})]
|
|
336
|
+
}),
|
|
337
|
+
/* @__PURE__ */ S(ie, {
|
|
338
|
+
treatment: "glass",
|
|
339
|
+
glow: !0,
|
|
340
|
+
className: "lg:col-span-2 p-6",
|
|
341
|
+
children: [/* @__PURE__ */ x("h3", {
|
|
342
|
+
className: "mb-4 text-lg font-semibold tracking-tight text-text-primary",
|
|
343
|
+
children: P("botlit.agentDetail.capabilities.title", "Capabilities")
|
|
344
|
+
}), /* @__PURE__ */ x("div", { children: X.length > 0 ? /* @__PURE__ */ x("div", {
|
|
345
|
+
className: "grid grid-cols-2 md:grid-cols-3 gap-4",
|
|
346
|
+
children: X.map((e) => /* @__PURE__ */ S("div", {
|
|
347
|
+
className: "p-3 rounded-lg border border-green-500 bg-green-500/10",
|
|
348
|
+
children: [/* @__PURE__ */ x("p", {
|
|
349
|
+
className: "font-medium",
|
|
350
|
+
children: e
|
|
351
|
+
}), /* @__PURE__ */ x(p, {
|
|
352
|
+
variant: "success",
|
|
353
|
+
children: P("botlit.agentDetail.capabilities.enabled", "Enabled")
|
|
354
|
+
})]
|
|
355
|
+
}, e))
|
|
356
|
+
}) : /* @__PURE__ */ x("p", {
|
|
357
|
+
className: "text-text-secondary",
|
|
358
|
+
children: P("botlit.agentDetail.capabilities.empty", "No capabilities configured")
|
|
359
|
+
}) })]
|
|
360
|
+
}),
|
|
361
|
+
Z.length > 0 && /* @__PURE__ */ S(s, {
|
|
362
|
+
className: "lg:col-span-3",
|
|
363
|
+
children: [/* @__PURE__ */ x(u, { children: /* @__PURE__ */ x(d, { children: P("botlit.agentDetail.tags.title", "Tags") }) }), /* @__PURE__ */ x(c, { children: /* @__PURE__ */ x("div", {
|
|
364
|
+
className: "flex flex-wrap gap-2",
|
|
365
|
+
children: Z.map((e) => /* @__PURE__ */ x(p, {
|
|
264
366
|
variant: "outline",
|
|
265
|
-
children: I.visibility
|
|
266
|
-
})] }),
|
|
267
|
-
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
268
|
-
className: "text-sm text-text-secondary",
|
|
269
|
-
children: "LLM Model"
|
|
270
|
-
}), /* @__PURE__ */ y("p", {
|
|
271
|
-
className: "font-medium font-mono text-sm",
|
|
272
|
-
children: K || "Not configured"
|
|
273
|
-
})] }),
|
|
274
|
-
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
275
|
-
className: "text-sm text-text-secondary",
|
|
276
|
-
children: "MCP Connections"
|
|
277
|
-
}), /* @__PURE__ */ b("p", {
|
|
278
|
-
className: "font-medium",
|
|
279
|
-
children: [q.length, " servers"]
|
|
280
|
-
})] }),
|
|
281
|
-
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
282
|
-
className: "text-sm text-text-secondary",
|
|
283
|
-
children: "Knowledge Bases"
|
|
284
|
-
}), /* @__PURE__ */ b("p", {
|
|
285
|
-
className: "font-medium",
|
|
286
|
-
children: [J.length, " KBs"]
|
|
287
|
-
})] }),
|
|
288
|
-
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
289
|
-
className: "text-sm text-text-secondary",
|
|
290
|
-
children: "Max Concurrent"
|
|
291
|
-
}), /* @__PURE__ */ y("p", {
|
|
292
|
-
className: "font-medium",
|
|
293
|
-
children: Q
|
|
294
|
-
})] }),
|
|
295
|
-
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
296
|
-
className: "text-sm text-text-secondary",
|
|
297
|
-
children: "Executions"
|
|
298
|
-
}), /* @__PURE__ */ y("p", {
|
|
299
|
-
className: "font-medium",
|
|
300
|
-
children: I.executionCount ?? 0
|
|
301
|
-
})] }),
|
|
302
|
-
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
303
|
-
className: "text-sm text-text-secondary",
|
|
304
|
-
children: "Created"
|
|
305
|
-
}), /* @__PURE__ */ y("p", {
|
|
306
|
-
className: "font-medium",
|
|
307
|
-
children: r(I.createdAt)
|
|
308
|
-
})] }),
|
|
309
|
-
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
310
|
-
className: "text-sm text-text-secondary",
|
|
311
|
-
children: "Updated"
|
|
312
|
-
}), /* @__PURE__ */ y("p", {
|
|
313
|
-
className: "font-medium",
|
|
314
|
-
children: r(I.updatedAt)
|
|
315
|
-
})] })
|
|
316
|
-
]
|
|
317
|
-
})]
|
|
318
|
-
}),
|
|
319
|
-
/* @__PURE__ */ b(_, {
|
|
320
|
-
treatment: "glass",
|
|
321
|
-
glow: !0,
|
|
322
|
-
className: "lg:col-span-2 p-6",
|
|
323
|
-
children: [/* @__PURE__ */ y("h3", {
|
|
324
|
-
className: "mb-4 text-lg font-semibold tracking-tight text-text-primary",
|
|
325
|
-
children: N("botlit.agentDetail.capabilities.title", "Capabilities")
|
|
326
|
-
}), /* @__PURE__ */ y("div", { children: X.length > 0 ? /* @__PURE__ */ y("div", {
|
|
327
|
-
className: "grid grid-cols-2 md:grid-cols-3 gap-4",
|
|
328
|
-
children: X.map((e) => /* @__PURE__ */ b("div", {
|
|
329
|
-
className: "p-3 rounded-lg border border-green-500 bg-green-500/10",
|
|
330
|
-
children: [/* @__PURE__ */ y("p", {
|
|
331
|
-
className: "font-medium",
|
|
332
367
|
children: e
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
className: "text-text-secondary",
|
|
340
|
-
children: N("botlit.agentDetail.capabilities.empty", "No capabilities configured")
|
|
341
|
-
}) })]
|
|
342
|
-
}),
|
|
343
|
-
Z.length > 0 && /* @__PURE__ */ b(a, {
|
|
344
|
-
className: "lg:col-span-3",
|
|
345
|
-
children: [/* @__PURE__ */ y(c, { children: /* @__PURE__ */ y(l, { children: N("botlit.agentDetail.tags.title", "Tags") }) }), /* @__PURE__ */ y(o, { children: /* @__PURE__ */ y("div", {
|
|
346
|
-
className: "flex flex-wrap gap-2",
|
|
347
|
-
children: Z.map((e) => /* @__PURE__ */ y(d, {
|
|
348
|
-
variant: "outline",
|
|
349
|
-
children: e
|
|
350
|
-
}, e))
|
|
351
|
-
}) })]
|
|
352
|
-
})
|
|
353
|
-
]
|
|
354
|
-
})]
|
|
368
|
+
}, e))
|
|
369
|
+
}) })]
|
|
370
|
+
})
|
|
371
|
+
]
|
|
372
|
+
})
|
|
373
|
+
]
|
|
355
374
|
}),
|
|
356
|
-
U === "prompt" && /* @__PURE__ */
|
|
375
|
+
U === "prompt" && /* @__PURE__ */ x("div", {
|
|
357
376
|
className: "space-y-6",
|
|
358
|
-
children: /* @__PURE__ */
|
|
377
|
+
children: /* @__PURE__ */ S(s, { children: [/* @__PURE__ */ S(u, { children: [/* @__PURE__ */ S(d, {
|
|
359
378
|
className: "flex items-center gap-2",
|
|
360
|
-
children: [/* @__PURE__ */
|
|
361
|
-
}), /* @__PURE__ */
|
|
379
|
+
children: [/* @__PURE__ */ x(D, { size: 18 }), P("botlit.agentDetail.prompt.title", "System Prompt")]
|
|
380
|
+
}), /* @__PURE__ */ x(l, { children: P("botlit.agentDetail.prompt.description", "The system prompt that defines this agent's behavior") })] }), /* @__PURE__ */ x(c, {
|
|
362
381
|
className: "space-y-4",
|
|
363
|
-
children: G ? /* @__PURE__ */
|
|
382
|
+
children: G ? /* @__PURE__ */ x("pre", {
|
|
364
383
|
className: "p-4 bg-bg-sunken rounded-lg text-sm whitespace-pre-wrap font-mono",
|
|
365
384
|
children: G
|
|
366
|
-
}) : /* @__PURE__ */
|
|
385
|
+
}) : /* @__PURE__ */ x("p", {
|
|
367
386
|
className: "text-text-secondary",
|
|
368
|
-
children:
|
|
387
|
+
children: P("botlit.agentDetail.prompt.empty", "No system prompt configured")
|
|
369
388
|
})
|
|
370
389
|
})] })
|
|
371
390
|
}),
|
|
372
|
-
U === "llm" && /* @__PURE__ */
|
|
391
|
+
U === "llm" && /* @__PURE__ */ S("div", {
|
|
373
392
|
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
374
|
-
children: [/* @__PURE__ */
|
|
393
|
+
children: [/* @__PURE__ */ S(s, { children: [/* @__PURE__ */ x(u, { children: /* @__PURE__ */ S(d, {
|
|
375
394
|
className: "flex items-center gap-2",
|
|
376
|
-
children: [/* @__PURE__ */
|
|
377
|
-
}) }), /* @__PURE__ */
|
|
395
|
+
children: [/* @__PURE__ */ x(T, { size: 18 }), P("botlit.agentDetail.llm.title", "Model Configuration")]
|
|
396
|
+
}) }), /* @__PURE__ */ S(c, {
|
|
378
397
|
className: "space-y-4",
|
|
379
398
|
children: [
|
|
380
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
381
400
|
className: "text-sm text-text-secondary",
|
|
382
401
|
children: "LLM Model ID"
|
|
383
|
-
}), /* @__PURE__ */
|
|
402
|
+
}), /* @__PURE__ */ x("p", {
|
|
384
403
|
className: "font-medium font-mono",
|
|
385
404
|
children: K || "Not configured"
|
|
386
405
|
})] }),
|
|
387
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
388
407
|
className: "text-sm text-text-secondary",
|
|
389
408
|
children: "Temperature"
|
|
390
|
-
}), /* @__PURE__ */
|
|
409
|
+
}), /* @__PURE__ */ x("p", {
|
|
391
410
|
className: "font-medium",
|
|
392
|
-
children:
|
|
411
|
+
children: pe ?? "Default"
|
|
393
412
|
})] }),
|
|
394
|
-
/* @__PURE__ */
|
|
413
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
395
414
|
className: "text-sm text-text-secondary",
|
|
396
415
|
children: "Max Tokens"
|
|
397
|
-
}), /* @__PURE__ */
|
|
416
|
+
}), /* @__PURE__ */ x("p", {
|
|
398
417
|
className: "font-medium",
|
|
399
|
-
children:
|
|
418
|
+
children: me ?? "Default"
|
|
400
419
|
})] })
|
|
401
420
|
]
|
|
402
|
-
})] }), /* @__PURE__ */
|
|
421
|
+
})] }), /* @__PURE__ */ S(s, { children: [/* @__PURE__ */ x(u, { children: /* @__PURE__ */ S(d, {
|
|
403
422
|
className: "flex items-center gap-2",
|
|
404
|
-
children: [/* @__PURE__ */
|
|
405
|
-
}) }), /* @__PURE__ */
|
|
423
|
+
children: [/* @__PURE__ */ x(le, { size: 18 }), P("botlit.agentDetail.executionLimits.title", "Execution Limits")]
|
|
424
|
+
}) }), /* @__PURE__ */ S(c, {
|
|
406
425
|
className: "space-y-4",
|
|
407
426
|
children: [
|
|
408
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
409
428
|
className: "text-sm text-text-secondary",
|
|
410
429
|
children: "Max Concurrent Executions"
|
|
411
|
-
}), /* @__PURE__ */
|
|
430
|
+
}), /* @__PURE__ */ x("p", {
|
|
412
431
|
className: "font-medium",
|
|
413
432
|
children: Q
|
|
414
433
|
})] }),
|
|
415
|
-
/* @__PURE__ */
|
|
434
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
416
435
|
className: "text-sm text-text-secondary",
|
|
417
436
|
children: "Total Executions"
|
|
418
|
-
}), /* @__PURE__ */
|
|
437
|
+
}), /* @__PURE__ */ x("p", {
|
|
419
438
|
className: "font-medium",
|
|
420
|
-
children:
|
|
439
|
+
children: L.executionCount ?? 0
|
|
421
440
|
})] }),
|
|
422
|
-
|
|
441
|
+
L.lastExecutedAt && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
423
442
|
className: "text-sm text-text-secondary",
|
|
424
443
|
children: "Last Executed"
|
|
425
|
-
}), /* @__PURE__ */
|
|
444
|
+
}), /* @__PURE__ */ x("p", {
|
|
426
445
|
className: "font-medium",
|
|
427
|
-
children:
|
|
446
|
+
children: a(L.lastExecutedAt)
|
|
428
447
|
})] })
|
|
429
448
|
]
|
|
430
449
|
})] })]
|
|
431
450
|
}),
|
|
432
|
-
U === "tools" && /* @__PURE__ */
|
|
451
|
+
U === "tools" && /* @__PURE__ */ S("div", {
|
|
433
452
|
className: "space-y-6",
|
|
434
|
-
children: [/* @__PURE__ */
|
|
453
|
+
children: [/* @__PURE__ */ S(s, { children: [/* @__PURE__ */ S(u, { children: [/* @__PURE__ */ S(d, {
|
|
435
454
|
className: "flex items-center gap-2",
|
|
436
|
-
children: [/* @__PURE__ */
|
|
437
|
-
}), /* @__PURE__ */
|
|
455
|
+
children: [/* @__PURE__ */ x(M, { size: 18 }), "MCP Server Connections"]
|
|
456
|
+
}), /* @__PURE__ */ x(l, { children: "Connected MCP servers providing tools" })] }), /* @__PURE__ */ x(c, { children: q.length > 0 ? /* @__PURE__ */ x("div", {
|
|
438
457
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
439
|
-
children: q.map((e) => /* @__PURE__ */
|
|
458
|
+
children: q.map((e) => /* @__PURE__ */ S("div", {
|
|
440
459
|
className: "flex items-center gap-3 p-4 border border-border-subtle rounded-lg",
|
|
441
|
-
children: [/* @__PURE__ */
|
|
460
|
+
children: [/* @__PURE__ */ x("div", {
|
|
442
461
|
className: "p-2 bg-action-primary-bg/10 rounded-lg",
|
|
443
|
-
children: /* @__PURE__ */
|
|
462
|
+
children: /* @__PURE__ */ x(M, {
|
|
444
463
|
size: 18,
|
|
445
464
|
className: "text-primary"
|
|
446
465
|
})
|
|
447
|
-
}), /* @__PURE__ */
|
|
466
|
+
}), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
448
467
|
className: "font-medium",
|
|
449
468
|
children: "MCP Server"
|
|
450
|
-
}), /* @__PURE__ */
|
|
469
|
+
}), /* @__PURE__ */ x("p", {
|
|
451
470
|
className: "text-sm text-text-secondary font-mono",
|
|
452
471
|
children: e
|
|
453
472
|
})] })]
|
|
454
473
|
}, e))
|
|
455
|
-
}) : /* @__PURE__ */
|
|
474
|
+
}) : /* @__PURE__ */ x("p", {
|
|
456
475
|
className: "text-text-secondary",
|
|
457
476
|
children: "No MCP servers connected"
|
|
458
|
-
}) })] }), Y.length > 0 && /* @__PURE__ */
|
|
477
|
+
}) })] }), Y.length > 0 && /* @__PURE__ */ S(s, { children: [/* @__PURE__ */ x(u, { children: /* @__PURE__ */ S(d, {
|
|
459
478
|
className: "flex items-center gap-2",
|
|
460
|
-
children: [/* @__PURE__ */
|
|
461
|
-
}) }), /* @__PURE__ */
|
|
479
|
+
children: [/* @__PURE__ */ x(k, { size: 18 }), "Workflows"]
|
|
480
|
+
}) }), /* @__PURE__ */ x(c, { children: /* @__PURE__ */ x("div", {
|
|
462
481
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
463
|
-
children: Y.map((e) => /* @__PURE__ */
|
|
482
|
+
children: Y.map((e) => /* @__PURE__ */ x("div", {
|
|
464
483
|
className: "p-4 border border-border-subtle rounded-lg",
|
|
465
|
-
children: /* @__PURE__ */
|
|
484
|
+
children: /* @__PURE__ */ x("p", {
|
|
466
485
|
className: "font-mono text-sm",
|
|
467
486
|
children: e
|
|
468
487
|
})
|
|
469
488
|
}, e))
|
|
470
489
|
}) })] })]
|
|
471
490
|
}),
|
|
472
|
-
U === "knowledge" && /* @__PURE__ */
|
|
491
|
+
U === "knowledge" && /* @__PURE__ */ S(s, { children: [/* @__PURE__ */ S(u, { children: [/* @__PURE__ */ S(d, {
|
|
473
492
|
className: "flex items-center gap-2",
|
|
474
|
-
children: [/* @__PURE__ */
|
|
475
|
-
}), /* @__PURE__ */
|
|
493
|
+
children: [/* @__PURE__ */ x(w, { size: 18 }), "Knowledge Bases"]
|
|
494
|
+
}), /* @__PURE__ */ x(l, { children: "Connected knowledge bases for RAG" })] }), /* @__PURE__ */ x(c, { children: J.length > 0 ? /* @__PURE__ */ x("div", {
|
|
476
495
|
className: "space-y-4",
|
|
477
|
-
children: J.map((e, t) => /* @__PURE__ */
|
|
496
|
+
children: J.map((e, t) => /* @__PURE__ */ S("div", {
|
|
478
497
|
className: "p-4 border border-border-subtle rounded-lg space-y-2",
|
|
479
|
-
children: [/* @__PURE__ */
|
|
498
|
+
children: [/* @__PURE__ */ S("div", {
|
|
480
499
|
className: "flex items-center justify-between",
|
|
481
|
-
children: [/* @__PURE__ */
|
|
500
|
+
children: [/* @__PURE__ */ x("p", {
|
|
482
501
|
className: "font-medium",
|
|
483
502
|
children: "Knowledge Base"
|
|
484
|
-
}), /* @__PURE__ */
|
|
503
|
+
}), /* @__PURE__ */ S(p, {
|
|
485
504
|
variant: "outline",
|
|
486
505
|
children: ["#", t + 1]
|
|
487
506
|
})]
|
|
488
|
-
}), /* @__PURE__ */
|
|
507
|
+
}), /* @__PURE__ */ x("p", {
|
|
489
508
|
className: "font-mono text-sm",
|
|
490
509
|
children: e
|
|
491
510
|
})]
|
|
492
511
|
}, t))
|
|
493
|
-
}) : /* @__PURE__ */
|
|
512
|
+
}) : /* @__PURE__ */ x("p", {
|
|
494
513
|
className: "text-text-secondary",
|
|
495
514
|
children: "No knowledge bases connected"
|
|
496
515
|
}) })] }),
|
|
497
|
-
U === "guardrails" && /* @__PURE__ */
|
|
516
|
+
U === "guardrails" && /* @__PURE__ */ S(s, { children: [/* @__PURE__ */ S(u, { children: [/* @__PURE__ */ S(d, {
|
|
498
517
|
className: "flex items-center gap-2",
|
|
499
|
-
children: [/* @__PURE__ */
|
|
500
|
-
}), /* @__PURE__ */
|
|
518
|
+
children: [/* @__PURE__ */ x(j, { size: 18 }), "Guardrails & Policies"]
|
|
519
|
+
}), /* @__PURE__ */ x(l, { children: "Security and policy configurations" })] }), /* @__PURE__ */ x(c, { children: $ ? /* @__PURE__ */ x("div", {
|
|
501
520
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
502
|
-
children: Object.entries($).filter(([e, t]) => t).map(([e, t]) => /* @__PURE__ */
|
|
521
|
+
children: Object.entries($).filter(([e, t]) => t).map(([e, t]) => /* @__PURE__ */ S("div", {
|
|
503
522
|
className: "p-4 border border-border-subtle rounded-lg",
|
|
504
|
-
children: [/* @__PURE__ */
|
|
523
|
+
children: [/* @__PURE__ */ x("p", {
|
|
505
524
|
className: "text-sm text-text-secondary capitalize",
|
|
506
525
|
children: e.replace("Id", "").replace(/([A-Z])/g, " $1").trim()
|
|
507
|
-
}), /* @__PURE__ */
|
|
526
|
+
}), /* @__PURE__ */ x("p", {
|
|
508
527
|
className: "font-mono text-sm",
|
|
509
528
|
children: String(t)
|
|
510
529
|
})]
|
|
511
530
|
}, e))
|
|
512
|
-
}) : /* @__PURE__ */
|
|
531
|
+
}) : /* @__PURE__ */ x("p", {
|
|
513
532
|
className: "text-text-secondary",
|
|
514
533
|
children: "No policy bindings configured"
|
|
515
534
|
}) })] }),
|
|
516
|
-
U === "a2a" && /* @__PURE__ */
|
|
535
|
+
U === "a2a" && /* @__PURE__ */ S(s, { children: [/* @__PURE__ */ S(u, { children: [/* @__PURE__ */ S(d, {
|
|
517
536
|
className: "flex items-center gap-2",
|
|
518
|
-
children: [/* @__PURE__ */
|
|
519
|
-
}), /* @__PURE__ */
|
|
537
|
+
children: [/* @__PURE__ */ x(A, { size: 18 }), "A2A Configuration"]
|
|
538
|
+
}), /* @__PURE__ */ x(l, { children: "Agent-to-Agent communication settings" })] }), /* @__PURE__ */ x(c, { children: /* @__PURE__ */ x("p", {
|
|
520
539
|
className: "text-text-secondary",
|
|
521
540
|
children: "A2A is not enabled for this agent"
|
|
522
541
|
}) })] }),
|
|
523
|
-
U === "versions" &&
|
|
524
|
-
agentId:
|
|
525
|
-
draftVersionId:
|
|
526
|
-
currentVersionId:
|
|
527
|
-
onChanged: () => void
|
|
542
|
+
U === "versions" && F && /* @__PURE__ */ x(te, {
|
|
543
|
+
agentId: F,
|
|
544
|
+
draftVersionId: L.draftVersionId,
|
|
545
|
+
currentVersionId: L.currentVersionId,
|
|
546
|
+
onChanged: () => void z()
|
|
528
547
|
})
|
|
529
548
|
]
|
|
530
549
|
})
|
|
531
550
|
});
|
|
532
551
|
};
|
|
533
552
|
//#endregion
|
|
534
|
-
export {
|
|
553
|
+
export { P as AgentDetailPage };
|
|
535
554
|
|
|
536
555
|
//# sourceMappingURL=AgentDetailPage.js.map
|