@burdenoff/microfe-botmanor 2026.1117.2 → 2026.1118.1
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 +59 -55
- package/dist/botlit/BotlitRoutes.js.map +1 -1
- package/dist/botlit/components/AgentA2APanel.d.ts +13 -0
- package/dist/botlit/components/AgentA2APanel.js +149 -0
- package/dist/botlit/components/AgentA2APanel.js.map +1 -0
- package/dist/botlit/components/BotAgentsPanel.d.ts +15 -0
- package/dist/botlit/components/BotAgentsPanel.js +341 -0
- package/dist/botlit/components/BotAgentsPanel.js.map +1 -0
- package/dist/botlit/components/BotFormFields.d.ts +4 -0
- package/dist/botlit/components/BotFormFields.js +108 -74
- package/dist/botlit/components/BotFormFields.js.map +1 -1
- package/dist/botlit/components/BotRoutingSummary.d.ts +13 -0
- package/dist/botlit/components/BotRoutingSummary.js +126 -0
- package/dist/botlit/components/BotRoutingSummary.js.map +1 -0
- package/dist/botlit/components/BotVersionHistoryPanel.d.ts +8 -0
- package/dist/botlit/components/BotVersionHistoryPanel.js +172 -0
- package/dist/botlit/components/BotVersionHistoryPanel.js.map +1 -0
- package/dist/botlit/components/CreateFromTemplate.d.ts +12 -0
- package/dist/botlit/components/CreateFromTemplate.js +129 -0
- package/dist/botlit/components/CreateFromTemplate.js.map +1 -0
- package/dist/botlit/components/EntityTags.d.ts +24 -0
- package/dist/botlit/components/EntityTags.js +72 -0
- package/dist/botlit/components/EntityTags.js.map +1 -0
- package/dist/botlit/components/GuardrailPoliciesPanel.d.ts +10 -0
- package/dist/botlit/components/GuardrailPoliciesPanel.js +91 -0
- package/dist/botlit/components/GuardrailPoliciesPanel.js.map +1 -0
- package/dist/botlit/hooks/useA2AConnections.d.ts +21 -0
- package/dist/botlit/hooks/useA2AConnections.js +82 -0
- package/dist/botlit/hooks/useA2AConnections.js.map +1 -0
- package/dist/botlit/hooks/useAgentTestChat.d.ts +29 -0
- package/dist/botlit/hooks/useAgentTestChat.js +35 -0
- package/dist/botlit/hooks/useAgentTestChat.js.map +1 -0
- package/dist/botlit/hooks/useAgents.d.ts +3 -0
- package/dist/botlit/hooks/useAgents.js +4 -0
- package/dist/botlit/hooks/useAgents.js.map +1 -1
- package/dist/botlit/hooks/useBotAgents.d.ts +22 -1
- package/dist/botlit/hooks/useBotAgents.js +46 -12
- package/dist/botlit/hooks/useBotAgents.js.map +1 -1
- package/dist/botlit/hooks/useBotVersions.d.ts +25 -0
- package/dist/botlit/hooks/useBotVersions.js +69 -0
- package/dist/botlit/hooks/useBotVersions.js.map +1 -0
- package/dist/botlit/hooks/useBots.d.ts +3 -0
- package/dist/botlit/hooks/useBots.js +4 -0
- package/dist/botlit/hooks/useBots.js.map +1 -1
- package/dist/botlit/hooks/useLLMProviders.js +40 -32
- package/dist/botlit/hooks/useLLMProviders.js.map +1 -1
- package/dist/botlit/hooks/useTemplates.d.ts +19 -0
- package/dist/botlit/hooks/useTemplates.js +71 -0
- package/dist/botlit/hooks/useTemplates.js.map +1 -0
- package/dist/botlit/pages/AgentBuilderPage.js +388 -347
- package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
- package/dist/botlit/pages/AgentDetailPage.js +237 -247
- package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/AgentTestChatPage.d.ts +2 -0
- package/dist/botlit/pages/AgentTestChatPage.js +176 -0
- package/dist/botlit/pages/AgentTestChatPage.js.map +1 -0
- package/dist/botlit/pages/AgentsListPage.js +2 -2
- package/dist/botlit/pages/AgentsListPage.js.map +1 -1
- package/dist/botlit/pages/BotDetailPage.js +398 -447
- package/dist/botlit/pages/BotDetailPage.js.map +1 -1
- package/dist/botlit/pages/ChatPage.js +19 -12
- package/dist/botlit/pages/ChatPage.js.map +1 -1
- package/dist/botlit/pages/SettingsPage.d.ts +7 -0
- package/dist/botlit/pages/SettingsPage.js +120 -85
- package/dist/botlit/pages/SettingsPage.js.map +1 -1
- package/dist/botlit/pages/index.d.ts +1 -0
- package/dist/botlit/utils/botRouting.d.ts +42 -0
- package/dist/botlit/utils/botRouting.js +52 -0
- package/dist/botlit/utils/botRouting.js.map +1 -0
- package/dist/generated/wspace-operations.js +41 -43
- package/dist/generated/wspace-operations.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,9 +5,9 @@ import { Card as r, CardContent as i, CardDescription as a, CardHeader as o, Car
|
|
|
5
5
|
import { Button as c } from "../components/Button.js";
|
|
6
6
|
import { Badge as l, StatusBadge as u } from "../components/Badge.js";
|
|
7
7
|
import { EmptyState as ee } from "../components/EmptyState.js";
|
|
8
|
+
import { ErrorState as te } from "../components/ErrorState.js";
|
|
8
9
|
import { BOTMANOR_PERMISSIONS as d } from "../permissions/botmanorPermissions.js";
|
|
9
|
-
import { BotmanorPermissionGate as f, useBotmanorCan as
|
|
10
|
-
import { ErrorState as ne } from "../components/ErrorState.js";
|
|
10
|
+
import { BotmanorPermissionGate as f, useBotmanorCan as ne } from "../permissions/useBotmanorPermissions.js";
|
|
11
11
|
import { VersionHistoryPanel as re } from "../components/VersionHistoryPanel.js";
|
|
12
12
|
import { AgentApprovalPanel as ie } from "../components/AgentApprovalPanel.js";
|
|
13
13
|
import { useAgentApprovalSettings as ae } from "../hooks/useAgentApprovals.js";
|
|
@@ -15,85 +15,89 @@ import { AssistantRuntimeSetupPanel as oe } from "../components/AssistantRuntime
|
|
|
15
15
|
import { AssistantChannelPanel as se } from "../components/AssistantChannelPanel.js";
|
|
16
16
|
import { AssistantWebsitePanel as ce } from "../components/AssistantWebsitePanel.js";
|
|
17
17
|
import { AiOperationsPanel as le } from "../components/AiOperationsPanel.js";
|
|
18
|
-
import { useAgent as ue,
|
|
19
|
-
import { useKnowledgeBases as
|
|
20
|
-
import { useMCPServers as
|
|
21
|
-
import {
|
|
18
|
+
import { useAgent as ue, useAgents as de, useDeleteAgent as fe, useLoadAgentUsage as pe, useUpdateAgent as me } from "../hooks/useAgents.js";
|
|
19
|
+
import { useKnowledgeBases as he } from "../hooks/useKnowledgeBases.js";
|
|
20
|
+
import { useMCPServers as ge } from "../hooks/useMCPServers.js";
|
|
21
|
+
import { useLLMModels as _e } from "../hooks/useLLMProviders.js";
|
|
22
|
+
import { AgentA2APanel as ve } from "../components/AgentA2APanel.js";
|
|
23
|
+
import { GuardrailPoliciesPanel as ye } from "../components/GuardrailPoliciesPanel.js";
|
|
24
|
+
import { EntityTags as be } from "../components/EntityTags.js";
|
|
25
|
+
import { useBotlit as xe } from "../providers/BotlitProvider.js";
|
|
22
26
|
import { formatRelativeTime as p } from "../utils/formatters.js";
|
|
23
|
-
import { cn as
|
|
24
|
-
import { agentDeleteMessage as
|
|
27
|
+
import { cn as Se } from "../utils/cn.js";
|
|
28
|
+
import { agentDeleteMessage as Ce } from "../utils/agentDelete.js";
|
|
25
29
|
import { confirmAction as m } from "../utils/confirmAction.js";
|
|
26
30
|
import "../permissions/index.js";
|
|
27
|
-
import { useState as
|
|
28
|
-
import { GlassCard as
|
|
31
|
+
import { useState as we } from "react";
|
|
32
|
+
import { GlassCard as Te, NextSteps as Ee, PagePurpose as De } from "@burdenoff/fe-libs/ui";
|
|
29
33
|
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
30
|
-
import { useParams as
|
|
31
|
-
import { ArrowLeft as
|
|
32
|
-
import { toast as
|
|
34
|
+
import { useParams as Oe } from "react-router";
|
|
35
|
+
import { ArrowLeft as ke, BarChart3 as Ae, BookOpen as v, Brain as y, Edit as je, FileText as b, Headset as Me, History as Ne, MessageSquare as Pe, Play as x, Settings as S, Share2 as C, Shield as Fe, ShieldCheck as Ie, Trash2 as Le, Wrench as w } from "lucide-react";
|
|
36
|
+
import { toast as T } from "sonner";
|
|
33
37
|
// src/botlit/pages/AgentDetailPage.tsx
|
|
34
|
-
var
|
|
38
|
+
var Re = "🤖", E = {
|
|
35
39
|
key: "activate",
|
|
36
40
|
to: "ACTIVE",
|
|
37
41
|
variant: "default",
|
|
38
42
|
confirm: !1
|
|
39
|
-
},
|
|
43
|
+
}, D = {
|
|
40
44
|
key: "resume",
|
|
41
45
|
to: "ACTIVE",
|
|
42
46
|
variant: "default",
|
|
43
47
|
confirm: !1
|
|
44
|
-
},
|
|
48
|
+
}, O = {
|
|
45
49
|
key: "pause",
|
|
46
50
|
to: "PAUSED",
|
|
47
51
|
variant: "outline",
|
|
48
52
|
confirm: !0
|
|
49
|
-
},
|
|
53
|
+
}, k = {
|
|
50
54
|
key: "archive",
|
|
51
55
|
to: "ARCHIVED",
|
|
52
56
|
variant: "outline",
|
|
53
57
|
confirm: !0
|
|
54
|
-
},
|
|
55
|
-
DRAFT: [
|
|
56
|
-
ACTIVE: [
|
|
57
|
-
PAUSED: [
|
|
58
|
-
TRAINING: [
|
|
58
|
+
}, ze = {
|
|
59
|
+
DRAFT: [E, k],
|
|
60
|
+
ACTIVE: [O, k],
|
|
61
|
+
PAUSED: [D, k],
|
|
62
|
+
TRAINING: [O, k],
|
|
59
63
|
ARCHIVED: [{
|
|
60
64
|
key: "restore",
|
|
61
65
|
to: "DRAFT",
|
|
62
66
|
variant: "default",
|
|
63
67
|
confirm: !1
|
|
64
68
|
}]
|
|
65
|
-
},
|
|
66
|
-
let
|
|
67
|
-
if (
|
|
68
|
-
title:
|
|
69
|
+
}, A = () => {
|
|
70
|
+
let E = e(), { agentId: D, botId: O } = Oe(), { navigateTo: k } = xe(), A = ne(), { data: j, loading: Be, error: M, refetch: N } = ue(D), [P, Ve] = me(), [He, Ue] = fe(), We = pe(), [F, I] = we("overview"), L = ge(), R = he(), Ge = L.data, z = R.data, Ke = ae(), qe = _e(), Je = de(), B = O ? `bots/${O}/agents` : "agents";
|
|
71
|
+
if (Be) return /* @__PURE__ */ g(t, {
|
|
72
|
+
title: E("botlit.common.loading", "Loading..."),
|
|
69
73
|
children: /* @__PURE__ */ g("div", {
|
|
70
74
|
role: "status",
|
|
71
75
|
"aria-busy": "true",
|
|
72
|
-
"aria-label":
|
|
76
|
+
"aria-label": E("botlit.common.loading", "Loading..."),
|
|
73
77
|
className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg"
|
|
74
78
|
})
|
|
75
79
|
});
|
|
76
|
-
if (
|
|
77
|
-
title:
|
|
78
|
-
children: /* @__PURE__ */ g(
|
|
79
|
-
resource:
|
|
80
|
-
error:
|
|
81
|
-
onRetry: () => void
|
|
80
|
+
if (M) return /* @__PURE__ */ g(t, {
|
|
81
|
+
title: E("botlit.agentDetail.errorTitle", "Agent"),
|
|
82
|
+
children: /* @__PURE__ */ g(te, {
|
|
83
|
+
resource: E("botlit.agentDetail.resource", "this agent"),
|
|
84
|
+
error: M,
|
|
85
|
+
onRetry: () => void N()
|
|
82
86
|
})
|
|
83
87
|
});
|
|
84
|
-
if (!
|
|
85
|
-
title:
|
|
88
|
+
if (!j) return /* @__PURE__ */ g(t, {
|
|
89
|
+
title: E("botlit.agentDetail.notFound.title", "Agent Not Found"),
|
|
86
90
|
children: /* @__PURE__ */ g(ee, {
|
|
87
91
|
illustration: "empty-agents",
|
|
88
|
-
title:
|
|
89
|
-
description:
|
|
92
|
+
title: E("botlit.agentDetail.notFound.title", "Agent Not Found"),
|
|
93
|
+
description: E("botlit.agentDetail.notFound.description", "The agent you're looking for doesn't exist."),
|
|
90
94
|
action: /* @__PURE__ */ g(c, {
|
|
91
|
-
onClick: () =>
|
|
92
|
-
children:
|
|
95
|
+
onClick: () => k(B),
|
|
96
|
+
children: E("botlit.agentDetail.notFound.backAction", "Back to Agents")
|
|
93
97
|
})
|
|
94
98
|
})
|
|
95
99
|
});
|
|
96
|
-
let V =
|
|
100
|
+
let V = j.systemPrompt || "", H = j.llmModelId || "", U = (qe.data ?? []).find((e) => e.id === H), W = U ? `${U.name} (${U.modelId})` : H || "Not configured", Ye = j.temperature, Xe = j.maxTokens, G = j.mcpConnectionIds ?? [], K = j.knowledgeBaseIds ?? [], q = j.workflowIds ?? [], J = j.capabilities ?? [], Y = j.maxConcurrentExecutions || 10, X = !!Ke.data?.requireActivationApproval && (j.status === "DRAFT" || j.status === "ARCHIVED") && !j.currentVersionId, Z = new Map(Ge.map((e) => [e.id, e.name])), Q = new Map(z.map((e) => [e.id, e.name])), Ze = J.includes("RAG") && !R.loading && !R.error ? K.flatMap((e) => {
|
|
97
101
|
let t = z.find((t) => t.id === e);
|
|
98
102
|
return t ? t.indexStatus === "READY" ? [] : [{
|
|
99
103
|
id: e,
|
|
@@ -104,81 +108,81 @@ var Me = "🤖", D = {
|
|
|
104
108
|
name: null,
|
|
105
109
|
status: "MISSING"
|
|
106
110
|
}];
|
|
107
|
-
}) : [],
|
|
108
|
-
switch (
|
|
111
|
+
}) : [], Qe = (e, t, n, r) => t.get(e) ?? (n.loading ? E("botlit.agentDetail.resourceLoading", "Loading…") : n.error ? E("botlit.agentDetail.resourceUnnamed", "Name unavailable") : E(r, "No longer available")), $e = (() => {
|
|
112
|
+
switch (j.status) {
|
|
109
113
|
case "ACTIVE": return null;
|
|
110
|
-
case "DRAFT": return X ?
|
|
111
|
-
case "PAUSED": return
|
|
112
|
-
case "TRAINING": return
|
|
113
|
-
case "ARCHIVED": return
|
|
114
|
+
case "DRAFT": return X ? E("botlit.agentDetail.reason.pendingApproval", "This agent is a draft. This workspace needs a reviewer to approve it before it goes live: use Request activation.") : j.currentVersionId ? E("botlit.agentDetail.reason.deactivated", "This agent was taken out of service and is a draft again. Activate it to put it back live.") : E("botlit.agentDetail.reason.neverPublished", "This agent is a draft that was never published, so it does not answer bots yet. Activate it to publish it.");
|
|
115
|
+
case "PAUSED": return E("botlit.agentDetail.reason.paused", "This agent is paused and does not answer bots or other agents. Resume it to put it back live.");
|
|
116
|
+
case "TRAINING": return E("botlit.agentDetail.reason.training", "This agent is in training and does not answer bots or other agents yet.");
|
|
117
|
+
case "ARCHIVED": return E("botlit.agentDetail.reason.archived", "This agent is archived and does not answer. Restore it to bring it back as a draft.");
|
|
114
118
|
default: return null;
|
|
115
119
|
}
|
|
116
120
|
})(), $ = (e, t) => {
|
|
117
121
|
switch (e) {
|
|
118
122
|
case "activate": return {
|
|
119
|
-
label:
|
|
120
|
-
success:
|
|
121
|
-
error:
|
|
123
|
+
label: E("botlit.agentDetail.actions.activate", "Activate"),
|
|
124
|
+
success: E("botlit.agentDetail.activate.success", "Agent \"{{name}}\" activated", { name: t }),
|
|
125
|
+
error: E("botlit.agentDetail.activate.error", "Failed to activate agent")
|
|
122
126
|
};
|
|
123
127
|
case "resume": return {
|
|
124
|
-
label:
|
|
125
|
-
success:
|
|
126
|
-
error:
|
|
128
|
+
label: E("botlit.agentDetail.actions.resume", "Resume"),
|
|
129
|
+
success: E("botlit.agentDetail.resume.success", "Agent \"{{name}}\" resumed", { name: t }),
|
|
130
|
+
error: E("botlit.agentDetail.resume.error", "Failed to resume agent")
|
|
127
131
|
};
|
|
128
132
|
case "pause": return {
|
|
129
|
-
label:
|
|
130
|
-
success:
|
|
131
|
-
error:
|
|
132
|
-
confirmTitle:
|
|
133
|
-
confirmMessage:
|
|
133
|
+
label: E("botlit.agentDetail.actions.pause", "Pause"),
|
|
134
|
+
success: E("botlit.agentDetail.pause.success", "Agent \"{{name}}\" paused", { name: t }),
|
|
135
|
+
error: E("botlit.agentDetail.pause.error", "Failed to pause agent"),
|
|
136
|
+
confirmTitle: E("botlit.agentDetail.pause.confirmTitle", "Pause agent?"),
|
|
137
|
+
confirmMessage: E("botlit.agentDetail.pause.confirmMessage", "Pause \"{{name}}\"? It stops answering bots and other agents until you resume it.", { name: t })
|
|
134
138
|
};
|
|
135
139
|
case "archive": return {
|
|
136
|
-
label:
|
|
137
|
-
success:
|
|
138
|
-
error:
|
|
139
|
-
confirmTitle:
|
|
140
|
-
confirmMessage:
|
|
140
|
+
label: E("botlit.agentDetail.actions.archive", "Archive"),
|
|
141
|
+
success: E("botlit.agentDetail.archive.success", "Agent \"{{name}}\" archived", { name: t }),
|
|
142
|
+
error: E("botlit.agentDetail.archive.error", "Failed to archive agent"),
|
|
143
|
+
confirmTitle: E("botlit.agentDetail.archive.confirmTitle", "Archive agent?"),
|
|
144
|
+
confirmMessage: E("botlit.agentDetail.archive.confirmMessage", "Archive \"{{name}}\"? It stops answering bots and other agents. You can restore it later.", { name: t })
|
|
141
145
|
};
|
|
142
146
|
case "restore": return {
|
|
143
|
-
label:
|
|
144
|
-
success:
|
|
145
|
-
error:
|
|
147
|
+
label: E("botlit.agentDetail.actions.restore", "Restore"),
|
|
148
|
+
success: E("botlit.agentDetail.restore.success", "Agent \"{{name}}\" restored as a draft", { name: t }),
|
|
149
|
+
error: E("botlit.agentDetail.restore.error", "Failed to restore agent")
|
|
146
150
|
};
|
|
147
151
|
}
|
|
148
|
-
},
|
|
149
|
-
if (!
|
|
150
|
-
let t = $(e.key,
|
|
152
|
+
}, et = async (e) => {
|
|
153
|
+
if (!D) return;
|
|
154
|
+
let t = $(e.key, j.name);
|
|
151
155
|
if (!(e.confirm && t.confirmTitle && t.confirmMessage && !await m({
|
|
152
156
|
title: t.confirmTitle,
|
|
153
157
|
message: t.confirmMessage,
|
|
154
158
|
confirmLabel: t.label,
|
|
155
|
-
cancelLabel:
|
|
159
|
+
cancelLabel: E("botlit.common.cancel", "Cancel")
|
|
156
160
|
}))) try {
|
|
157
|
-
await
|
|
158
|
-
agentId:
|
|
161
|
+
await P({
|
|
162
|
+
agentId: D,
|
|
159
163
|
input: { status: e.to }
|
|
160
|
-
}), await
|
|
164
|
+
}), await N(), T.success(t.success);
|
|
161
165
|
} catch (e) {
|
|
162
|
-
|
|
166
|
+
T.error(e instanceof Error ? e.message : t.error);
|
|
163
167
|
}
|
|
164
|
-
},
|
|
165
|
-
if (!
|
|
166
|
-
let e = await
|
|
168
|
+
}, tt = async () => {
|
|
169
|
+
if (!D) return;
|
|
170
|
+
let e = await We(D).catch(() => null), t = Ce(E, j.name, e);
|
|
167
171
|
if (await m({
|
|
168
|
-
title:
|
|
172
|
+
title: E("botlit.agentsList.delete.title", "Delete agent?"),
|
|
169
173
|
message: t,
|
|
170
|
-
confirmLabel:
|
|
171
|
-
cancelLabel:
|
|
174
|
+
confirmLabel: E("botlit.agentsList.delete.okButton", "Delete"),
|
|
175
|
+
cancelLabel: E("botlit.agentsList.delete.cancelButton", "Cancel")
|
|
172
176
|
})) try {
|
|
173
|
-
if (!await
|
|
174
|
-
|
|
177
|
+
if (!await He(D)) {
|
|
178
|
+
T.error(E("botlit.agentDetail.delete.error", "Failed to delete agent"));
|
|
175
179
|
return;
|
|
176
180
|
}
|
|
177
|
-
|
|
181
|
+
T.success(E("botlit.agentDetail.delete.success", "Agent \"{{name}}\" deleted successfully", { name: j.name })), k(B);
|
|
178
182
|
} catch (e) {
|
|
179
|
-
|
|
183
|
+
T.error(e instanceof Error ? e.message : E("botlit.agentDetail.delete.error", "Failed to delete agent"));
|
|
180
184
|
}
|
|
181
|
-
},
|
|
185
|
+
}, nt = [
|
|
182
186
|
{
|
|
183
187
|
id: "assistant",
|
|
184
188
|
label: "Assistant setup",
|
|
@@ -186,76 +190,76 @@ var Me = "🤖", D = {
|
|
|
186
190
|
},
|
|
187
191
|
{
|
|
188
192
|
id: "overview",
|
|
189
|
-
label:
|
|
190
|
-
icon: /* @__PURE__ */ g(
|
|
193
|
+
label: E("botlit.agentDetail.tabs.overview", "Overview"),
|
|
194
|
+
icon: /* @__PURE__ */ g(Ae, { size: 16 })
|
|
191
195
|
},
|
|
192
196
|
{
|
|
193
197
|
id: "prompt",
|
|
194
|
-
label:
|
|
198
|
+
label: E("botlit.agentDetail.tabs.prompt", "Prompt"),
|
|
195
199
|
icon: /* @__PURE__ */ g(b, { size: 16 })
|
|
196
200
|
},
|
|
197
201
|
{
|
|
198
202
|
id: "llm",
|
|
199
|
-
label:
|
|
203
|
+
label: E("botlit.agentDetail.tabs.llmConfig", "LLM Config"),
|
|
200
204
|
icon: /* @__PURE__ */ g(y, { size: 16 })
|
|
201
205
|
},
|
|
202
206
|
{
|
|
203
207
|
id: "tools",
|
|
204
|
-
label:
|
|
205
|
-
icon: /* @__PURE__ */ g(
|
|
208
|
+
label: E("botlit.agentDetail.tabs.tools", "Tools"),
|
|
209
|
+
icon: /* @__PURE__ */ g(w, { size: 16 })
|
|
206
210
|
},
|
|
207
211
|
{
|
|
208
212
|
id: "knowledge",
|
|
209
|
-
label:
|
|
213
|
+
label: E("botlit.agentDetail.tabs.knowledge", "Knowledge"),
|
|
210
214
|
icon: /* @__PURE__ */ g(v, { size: 16 })
|
|
211
215
|
},
|
|
212
216
|
{
|
|
213
217
|
id: "guardrails",
|
|
214
|
-
label:
|
|
215
|
-
icon: /* @__PURE__ */ g(
|
|
218
|
+
label: E("botlit.agentDetail.tabs.guardrails", "Guardrails"),
|
|
219
|
+
icon: /* @__PURE__ */ g(Fe, { size: 16 })
|
|
216
220
|
},
|
|
217
221
|
{
|
|
218
222
|
id: "handoff",
|
|
219
|
-
label:
|
|
220
|
-
icon: /* @__PURE__ */ g(
|
|
223
|
+
label: E("botlit.agentDetail.tabs.handoff", "Handoff"),
|
|
224
|
+
icon: /* @__PURE__ */ g(Me, { size: 16 })
|
|
221
225
|
},
|
|
222
226
|
{
|
|
223
227
|
id: "aiOperations",
|
|
224
|
-
label:
|
|
225
|
-
icon: /* @__PURE__ */ g(
|
|
228
|
+
label: E("botlit.agentDetail.tabs.aiOperations", "AI Operations"),
|
|
229
|
+
icon: /* @__PURE__ */ g(Ie, { size: 16 })
|
|
226
230
|
},
|
|
227
231
|
{
|
|
228
232
|
id: "a2a",
|
|
229
|
-
label:
|
|
233
|
+
label: E("botlit.agentDetail.tabs.a2a", "A2A"),
|
|
230
234
|
icon: /* @__PURE__ */ g(C, { size: 16 })
|
|
231
235
|
},
|
|
232
236
|
{
|
|
233
237
|
id: "versions",
|
|
234
|
-
label:
|
|
235
|
-
icon: /* @__PURE__ */ g(
|
|
238
|
+
label: E("botlit.agentDetail.tabs.versions", "Versions"),
|
|
239
|
+
icon: /* @__PURE__ */ g(Ne, { size: 16 })
|
|
236
240
|
}
|
|
237
241
|
];
|
|
238
242
|
return /* @__PURE__ */ _(t, {
|
|
239
|
-
title:
|
|
243
|
+
title: j.name,
|
|
240
244
|
leading: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(c, {
|
|
241
245
|
variant: "ghost",
|
|
242
246
|
size: "icon",
|
|
243
|
-
"aria-label":
|
|
244
|
-
onClick: () =>
|
|
245
|
-
children: /* @__PURE__ */ g(
|
|
247
|
+
"aria-label": E("botlit.agentDetail.back", "Back to agents"),
|
|
248
|
+
onClick: () => k(B),
|
|
249
|
+
children: /* @__PURE__ */ g(ke, {
|
|
246
250
|
size: 20,
|
|
247
251
|
"aria-hidden": "true"
|
|
248
252
|
})
|
|
249
253
|
}), /* @__PURE__ */ g("span", {
|
|
250
254
|
className: "text-3xl",
|
|
251
255
|
"aria-hidden": "true",
|
|
252
|
-
children:
|
|
256
|
+
children: j.avatar || Re
|
|
253
257
|
})] }),
|
|
254
|
-
meta: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(u, { status:
|
|
258
|
+
meta: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(u, { status: j.status }), /* @__PURE__ */ g(l, {
|
|
255
259
|
variant: "outline",
|
|
256
|
-
children:
|
|
260
|
+
children: j.slug
|
|
257
261
|
})] }),
|
|
258
|
-
description:
|
|
262
|
+
description: j.description,
|
|
259
263
|
actions: /* @__PURE__ */ _("div", {
|
|
260
264
|
className: "flex gap-2",
|
|
261
265
|
children: [
|
|
@@ -269,139 +273,139 @@ var Me = "🤖", D = {
|
|
|
269
273
|
block: "start"
|
|
270
274
|
}));
|
|
271
275
|
},
|
|
272
|
-
children:
|
|
273
|
-
}) : (
|
|
276
|
+
children: E("botlit.agentApproval.requestAction", "Request activation")
|
|
277
|
+
}) : (ze[j.status] ?? []).map((e) => /* @__PURE__ */ g(c, {
|
|
274
278
|
variant: e.variant,
|
|
275
|
-
isLoading:
|
|
276
|
-
onClick: () => void
|
|
277
|
-
children: $(e.key,
|
|
279
|
+
isLoading: Ve.loading,
|
|
280
|
+
onClick: () => void et(e),
|
|
281
|
+
children: $(e.key, j.name).label
|
|
278
282
|
}, e.key))
|
|
279
283
|
}),
|
|
280
284
|
/* @__PURE__ */ g(f, {
|
|
281
285
|
permission: d.AGENT_UPDATE,
|
|
282
286
|
children: /* @__PURE__ */ g(c, {
|
|
283
287
|
variant: "outline",
|
|
284
|
-
leftIcon: /* @__PURE__ */ g(
|
|
285
|
-
onClick: () =>
|
|
286
|
-
children:
|
|
288
|
+
leftIcon: /* @__PURE__ */ g(je, { size: 16 }),
|
|
289
|
+
onClick: () => k(O ? `bots/${O}/agents/${D}/edit` : `agents/${D}/edit`),
|
|
290
|
+
children: E("botlit.agentDetail.actions.editAgent", "Edit Agent")
|
|
287
291
|
})
|
|
288
292
|
}),
|
|
289
293
|
/* @__PURE__ */ g(f, {
|
|
290
294
|
permission: d.AGENT_EXECUTE,
|
|
291
295
|
children: /* @__PURE__ */ g(c, {
|
|
292
296
|
leftIcon: /* @__PURE__ */ g(x, { size: 16 }),
|
|
293
|
-
onClick: () =>
|
|
294
|
-
children:
|
|
297
|
+
onClick: () => k(`agents/${D}/test`),
|
|
298
|
+
children: E("botlit.agentDetail.actions.testAgent", "Test Agent")
|
|
295
299
|
})
|
|
296
300
|
}),
|
|
297
301
|
/* @__PURE__ */ g(f, {
|
|
298
302
|
permission: d.AGENT_DELETE,
|
|
299
303
|
children: /* @__PURE__ */ g(c, {
|
|
300
304
|
variant: "destructive",
|
|
301
|
-
leftIcon: /* @__PURE__ */ g(
|
|
302
|
-
isLoading:
|
|
303
|
-
onClick: () => void
|
|
304
|
-
children:
|
|
305
|
+
leftIcon: /* @__PURE__ */ g(Le, { size: 16 }),
|
|
306
|
+
isLoading: Ue.loading,
|
|
307
|
+
onClick: () => void tt(),
|
|
308
|
+
children: E("botlit.common.delete", "Delete")
|
|
305
309
|
})
|
|
306
310
|
})
|
|
307
311
|
]
|
|
308
312
|
}),
|
|
309
313
|
children: [
|
|
310
|
-
|
|
314
|
+
$e && /* @__PURE__ */ g("div", {
|
|
311
315
|
role: "status",
|
|
312
316
|
"data-testid": "agent-status-reason",
|
|
313
317
|
className: "mb-4 rounded-lg border border-status-warning-border bg-status-warning-bg-subtle p-3 text-sm text-text-primary",
|
|
314
|
-
children:
|
|
318
|
+
children: $e
|
|
315
319
|
}),
|
|
316
|
-
|
|
320
|
+
Ze.length > 0 && /* @__PURE__ */ _("div", {
|
|
317
321
|
role: "status",
|
|
318
322
|
"data-testid": "agent-knowledge-warning",
|
|
319
323
|
className: "mb-4 rounded-lg border border-status-warning-border bg-status-warning-bg-subtle p-3 text-sm text-text-primary",
|
|
320
324
|
children: [/* @__PURE__ */ g("p", {
|
|
321
325
|
className: "font-medium",
|
|
322
|
-
children:
|
|
326
|
+
children: E("botlit.agentDetail.knowledgeWarning.title", "This agent cannot answer right now: a knowledge base it uses cannot be searched.")
|
|
323
327
|
}), /* @__PURE__ */ g("ul", {
|
|
324
328
|
className: "mt-1 list-disc pl-5",
|
|
325
|
-
children:
|
|
329
|
+
children: Ze.map((e) => /* @__PURE__ */ g("li", { children: e.name === null ? E("botlit.agentDetail.knowledgeWarning.missing", "A knowledge base that no longer exists ({{id}}). Remove it from the agent.", { id: e.id }) : E("botlit.agentDetail.knowledgeWarning.notReady", "\"{{name}}\" is {{status}}.", {
|
|
326
330
|
name: e.name,
|
|
327
|
-
status:
|
|
331
|
+
status: E(`botlit.status.${e.status.toLowerCase()}`, e.status.toLowerCase())
|
|
328
332
|
}) }, e.id))
|
|
329
333
|
})]
|
|
330
334
|
}),
|
|
331
335
|
/* @__PURE__ */ _("div", {
|
|
332
336
|
className: "space-y-6",
|
|
333
337
|
children: [
|
|
334
|
-
F === "assistant" &&
|
|
338
|
+
F === "assistant" && D && /* @__PURE__ */ _("div", {
|
|
335
339
|
className: "space-y-5",
|
|
336
340
|
children: [
|
|
337
|
-
|
|
338
|
-
agentId:
|
|
339
|
-
onConfigured: () => void
|
|
341
|
+
A(d.AGENT_UPDATE) && /* @__PURE__ */ g(oe, {
|
|
342
|
+
agentId: D,
|
|
343
|
+
onConfigured: () => void N()
|
|
340
344
|
}),
|
|
341
|
-
|
|
342
|
-
agentId:
|
|
343
|
-
knowledgeBaseIds:
|
|
344
|
-
}), /* @__PURE__ */ g(se, { agentId:
|
|
345
|
-
!
|
|
345
|
+
A(d.AGENT_PUBLISH) && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(ce, {
|
|
346
|
+
agentId: D,
|
|
347
|
+
knowledgeBaseIds: K
|
|
348
|
+
}), /* @__PURE__ */ g(se, { agentId: D })] }),
|
|
349
|
+
!A(d.AGENT_UPDATE) && !A(d.AGENT_PUBLISH) && /* @__PURE__ */ g("p", {
|
|
346
350
|
role: "status",
|
|
347
351
|
className: "text-sm text-text-secondary",
|
|
348
|
-
children:
|
|
352
|
+
children: E("botlit.agentDetail.assistant.readOnly", "Assistant setup and publishing are available to members who can edit or publish agents in this workspace.")
|
|
349
353
|
})
|
|
350
354
|
]
|
|
351
355
|
}),
|
|
352
|
-
/* @__PURE__ */ g(
|
|
356
|
+
/* @__PURE__ */ g(De, {
|
|
353
357
|
icon: /* @__PURE__ */ g(y, { size: 18 }),
|
|
354
|
-
children:
|
|
358
|
+
children: E("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.")
|
|
355
359
|
}),
|
|
356
360
|
/* @__PURE__ */ g("div", {
|
|
357
361
|
className: "flex gap-1 border-b border-border-subtle overflow-x-auto",
|
|
358
|
-
children:
|
|
362
|
+
children: nt.map((e) => /* @__PURE__ */ _("button", {
|
|
359
363
|
onClick: () => I(e.id),
|
|
360
|
-
className:
|
|
364
|
+
className: Se("flex items-center gap-2 px-4 py-2 text-sm font-medium border-b-2 transition-colors whitespace-nowrap", F === e.id ? "border-primary text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
|
|
361
365
|
children: [e.icon, e.label]
|
|
362
366
|
}, e.id))
|
|
363
367
|
}),
|
|
364
368
|
F === "overview" && /* @__PURE__ */ _("div", {
|
|
365
369
|
className: "space-y-6",
|
|
366
370
|
children: [
|
|
367
|
-
/* @__PURE__ */ g(
|
|
368
|
-
storageKey: `botlit-agent-${
|
|
371
|
+
/* @__PURE__ */ g(Ee, {
|
|
372
|
+
storageKey: `botlit-agent-${D}`,
|
|
369
373
|
steps: [
|
|
370
374
|
{
|
|
371
375
|
id: "test",
|
|
372
|
-
label:
|
|
373
|
-
description:
|
|
376
|
+
label: E("botlit.agentDetail.nextSteps.test", "Test the agent in chat"),
|
|
377
|
+
description: E("botlit.agentDetail.nextSteps.testDesc", "Send it a few real prompts to see how it responds."),
|
|
374
378
|
icon: /* @__PURE__ */ g(x, { size: 16 }),
|
|
375
|
-
onClick: () =>
|
|
379
|
+
onClick: () => k(`agents/${D}/test`)
|
|
376
380
|
},
|
|
377
381
|
{
|
|
378
382
|
id: "prompt",
|
|
379
|
-
label:
|
|
380
|
-
description:
|
|
383
|
+
label: E("botlit.agentDetail.nextSteps.prompt", "Refine the system prompt"),
|
|
384
|
+
description: E("botlit.agentDetail.nextSteps.promptDesc", "Tune its instructions and behaviour."),
|
|
381
385
|
icon: /* @__PURE__ */ g(b, { size: 16 }),
|
|
382
386
|
onClick: () => I("prompt")
|
|
383
387
|
},
|
|
384
388
|
{
|
|
385
389
|
id: "tools",
|
|
386
|
-
label:
|
|
387
|
-
description:
|
|
388
|
-
icon: /* @__PURE__ */ g(
|
|
390
|
+
label: E("botlit.agentDetail.nextSteps.tools", "Connect tools & knowledge"),
|
|
391
|
+
description: E("botlit.agentDetail.nextSteps.toolsDesc", "Give it MCP tools and knowledge bases to work with."),
|
|
392
|
+
icon: /* @__PURE__ */ g(w, { size: 16 }),
|
|
389
393
|
onClick: () => I("tools")
|
|
390
394
|
},
|
|
391
395
|
{
|
|
392
396
|
id: "activate",
|
|
393
|
-
label:
|
|
394
|
-
description:
|
|
397
|
+
label: E("botlit.agentDetail.nextSteps.activate", "Activate and attach to a bot"),
|
|
398
|
+
description: E("botlit.agentDetail.nextSteps.activateDesc", "Put it live so a bot can route conversations to it."),
|
|
395
399
|
icon: /* @__PURE__ */ g(C, { size: 16 }),
|
|
396
|
-
onClick: () =>
|
|
397
|
-
done:
|
|
400
|
+
onClick: () => k(`agents/${D}/edit`),
|
|
401
|
+
done: j.status === "ACTIVE"
|
|
398
402
|
}
|
|
399
403
|
]
|
|
400
404
|
}),
|
|
401
|
-
|
|
402
|
-
agentId:
|
|
403
|
-
agentStatus:
|
|
404
|
-
onChanged: () => void
|
|
405
|
+
D && /* @__PURE__ */ g(ie, {
|
|
406
|
+
agentId: D,
|
|
407
|
+
agentStatus: j.status,
|
|
408
|
+
onChanged: () => void N()
|
|
405
409
|
}),
|
|
406
410
|
/* @__PURE__ */ _("div", {
|
|
407
411
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
@@ -414,105 +418,110 @@ var Me = "🤖", D = {
|
|
|
414
418
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
415
419
|
className: "text-sm text-text-secondary",
|
|
416
420
|
children: "Status"
|
|
417
|
-
}), /* @__PURE__ */ g(u, { status:
|
|
421
|
+
}), /* @__PURE__ */ g(u, { status: j.status })] }),
|
|
418
422
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
419
423
|
className: "text-sm text-text-secondary",
|
|
420
424
|
children: "Type"
|
|
421
425
|
}), /* @__PURE__ */ g(l, {
|
|
422
426
|
variant: "outline",
|
|
423
|
-
children:
|
|
427
|
+
children: j.type
|
|
424
428
|
})] }),
|
|
425
429
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
426
430
|
className: "text-sm text-text-secondary",
|
|
427
431
|
children: "Visibility"
|
|
428
432
|
}), /* @__PURE__ */ g(l, {
|
|
429
433
|
variant: "outline",
|
|
430
|
-
children:
|
|
434
|
+
children: j.visibility
|
|
431
435
|
})] }),
|
|
432
436
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
433
437
|
className: "text-sm text-text-secondary",
|
|
434
438
|
children: "LLM Model"
|
|
435
439
|
}), /* @__PURE__ */ g("p", {
|
|
436
|
-
className: "font-medium
|
|
437
|
-
children:
|
|
440
|
+
className: "font-medium text-sm",
|
|
441
|
+
children: W
|
|
438
442
|
})] }),
|
|
439
443
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
440
444
|
className: "text-sm text-text-secondary",
|
|
441
445
|
children: "MCP Connections"
|
|
442
446
|
}), /* @__PURE__ */ _("p", {
|
|
443
447
|
className: "font-medium",
|
|
444
|
-
children: [
|
|
448
|
+
children: [G.length, " servers"]
|
|
445
449
|
})] }),
|
|
446
450
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
447
451
|
className: "text-sm text-text-secondary",
|
|
448
452
|
children: "Knowledge Bases"
|
|
449
453
|
}), /* @__PURE__ */ _("p", {
|
|
450
454
|
className: "font-medium",
|
|
451
|
-
children: [
|
|
455
|
+
children: [K.length, " KBs"]
|
|
452
456
|
})] }),
|
|
453
457
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
454
458
|
className: "text-sm text-text-secondary",
|
|
455
459
|
children: "Max Concurrent"
|
|
456
460
|
}), /* @__PURE__ */ g("p", {
|
|
457
461
|
className: "font-medium",
|
|
458
|
-
children:
|
|
462
|
+
children: Y
|
|
459
463
|
})] }),
|
|
460
464
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
461
465
|
className: "text-sm text-text-secondary",
|
|
462
466
|
children: "Executions"
|
|
463
467
|
}), /* @__PURE__ */ g("p", {
|
|
464
468
|
className: "font-medium",
|
|
465
|
-
children:
|
|
469
|
+
children: j.executionCount ?? 0
|
|
466
470
|
})] }),
|
|
467
471
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
468
472
|
className: "text-sm text-text-secondary",
|
|
469
473
|
children: "Created"
|
|
470
474
|
}), /* @__PURE__ */ g("p", {
|
|
471
475
|
className: "font-medium",
|
|
472
|
-
children: p(
|
|
476
|
+
children: p(j.createdAt)
|
|
473
477
|
})] }),
|
|
474
478
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
475
479
|
className: "text-sm text-text-secondary",
|
|
476
480
|
children: "Updated"
|
|
477
481
|
}), /* @__PURE__ */ g("p", {
|
|
478
482
|
className: "font-medium",
|
|
479
|
-
children: p(
|
|
483
|
+
children: p(j.updatedAt)
|
|
480
484
|
})] })
|
|
481
485
|
]
|
|
482
486
|
})]
|
|
483
487
|
}),
|
|
484
|
-
/* @__PURE__ */ _(
|
|
488
|
+
/* @__PURE__ */ _(Te, {
|
|
485
489
|
treatment: "glass",
|
|
486
490
|
glow: !0,
|
|
487
491
|
className: "lg:col-span-2 p-6",
|
|
488
492
|
children: [/* @__PURE__ */ g("h3", {
|
|
489
493
|
className: "mb-4 text-lg font-semibold tracking-tight text-text-primary",
|
|
490
|
-
children:
|
|
491
|
-
}), /* @__PURE__ */ g("div", { children:
|
|
494
|
+
children: E("botlit.agentDetail.capabilities.title", "Capabilities")
|
|
495
|
+
}), /* @__PURE__ */ g("div", { children: J.length > 0 ? /* @__PURE__ */ g("div", {
|
|
492
496
|
className: "grid grid-cols-2 md:grid-cols-3 gap-4",
|
|
493
|
-
children:
|
|
497
|
+
children: J.map((e) => /* @__PURE__ */ _("div", {
|
|
494
498
|
className: "p-3 rounded-lg border border-status-success-border bg-status-success-bg-subtle",
|
|
495
499
|
children: [/* @__PURE__ */ g("p", {
|
|
496
500
|
className: "font-medium",
|
|
497
501
|
children: e
|
|
498
502
|
}), /* @__PURE__ */ g(l, {
|
|
499
503
|
variant: "success",
|
|
500
|
-
children:
|
|
504
|
+
children: E("botlit.agentDetail.capabilities.enabled", "Enabled")
|
|
501
505
|
})]
|
|
502
506
|
}, e))
|
|
503
507
|
}) : /* @__PURE__ */ g("p", {
|
|
504
508
|
className: "text-text-secondary",
|
|
505
|
-
children:
|
|
509
|
+
children: E("botlit.agentDetail.capabilities.empty", "No capabilities configured")
|
|
506
510
|
}) })]
|
|
507
511
|
}),
|
|
508
|
-
|
|
512
|
+
/* @__PURE__ */ _(r, {
|
|
509
513
|
className: "lg:col-span-3",
|
|
510
|
-
children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ g(s, { children:
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
514
|
+
children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ g(s, { children: E("botlit.agentDetail.tags.title", "Tags") }) }), /* @__PURE__ */ g(i, { children: /* @__PURE__ */ g(be, {
|
|
515
|
+
entityType: "BotmanorAgent",
|
|
516
|
+
entityId: j.id,
|
|
517
|
+
tags: j.tags,
|
|
518
|
+
editable: A(d.AGENT_UPDATE),
|
|
519
|
+
onSave: async (e) => {
|
|
520
|
+
await P({
|
|
521
|
+
agentId: j.id,
|
|
522
|
+
input: { tags: e }
|
|
523
|
+
}), await N();
|
|
524
|
+
}
|
|
516
525
|
}) })]
|
|
517
526
|
})
|
|
518
527
|
]
|
|
@@ -523,15 +532,15 @@ var Me = "🤖", D = {
|
|
|
523
532
|
className: "space-y-6",
|
|
524
533
|
children: /* @__PURE__ */ _(r, { children: [/* @__PURE__ */ _(o, { children: [/* @__PURE__ */ _(s, {
|
|
525
534
|
className: "flex items-center gap-2",
|
|
526
|
-
children: [/* @__PURE__ */ g(b, { size: 18 }),
|
|
527
|
-
}), /* @__PURE__ */ g(a, { children:
|
|
535
|
+
children: [/* @__PURE__ */ g(b, { size: 18 }), E("botlit.agentDetail.prompt.title", "System Prompt")]
|
|
536
|
+
}), /* @__PURE__ */ g(a, { children: E("botlit.agentDetail.prompt.description", "The system prompt that defines this agent's behavior") })] }), /* @__PURE__ */ g(i, {
|
|
528
537
|
className: "space-y-4",
|
|
529
538
|
children: V ? /* @__PURE__ */ g("pre", {
|
|
530
539
|
className: "p-4 bg-bg-sunken rounded-lg text-sm whitespace-pre-wrap font-mono",
|
|
531
540
|
children: V
|
|
532
541
|
}) : /* @__PURE__ */ g("p", {
|
|
533
542
|
className: "text-text-secondary",
|
|
534
|
-
children:
|
|
543
|
+
children: E("botlit.agentDetail.prompt.empty", "No system prompt configured")
|
|
535
544
|
})
|
|
536
545
|
})] })
|
|
537
546
|
}),
|
|
@@ -539,35 +548,35 @@ var Me = "🤖", D = {
|
|
|
539
548
|
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
540
549
|
children: [/* @__PURE__ */ _(r, { children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ _(s, {
|
|
541
550
|
className: "flex items-center gap-2",
|
|
542
|
-
children: [/* @__PURE__ */ g(y, { size: 18 }),
|
|
551
|
+
children: [/* @__PURE__ */ g(y, { size: 18 }), E("botlit.agentDetail.llm.title", "Model Configuration")]
|
|
543
552
|
}) }), /* @__PURE__ */ _(i, {
|
|
544
553
|
className: "space-y-4",
|
|
545
554
|
children: [
|
|
546
555
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
547
556
|
className: "text-sm text-text-secondary",
|
|
548
|
-
children: "LLM Model
|
|
557
|
+
children: "LLM Model"
|
|
549
558
|
}), /* @__PURE__ */ g("p", {
|
|
550
|
-
className: "font-medium
|
|
551
|
-
children:
|
|
559
|
+
className: "font-medium",
|
|
560
|
+
children: W
|
|
552
561
|
})] }),
|
|
553
562
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
554
563
|
className: "text-sm text-text-secondary",
|
|
555
564
|
children: "Temperature"
|
|
556
565
|
}), /* @__PURE__ */ g("p", {
|
|
557
566
|
className: "font-medium",
|
|
558
|
-
children:
|
|
567
|
+
children: Ye ?? "Default"
|
|
559
568
|
})] }),
|
|
560
569
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
561
570
|
className: "text-sm text-text-secondary",
|
|
562
571
|
children: "Max Tokens"
|
|
563
572
|
}), /* @__PURE__ */ g("p", {
|
|
564
573
|
className: "font-medium",
|
|
565
|
-
children:
|
|
574
|
+
children: Xe ?? "Default"
|
|
566
575
|
})] })
|
|
567
576
|
]
|
|
568
577
|
})] }), /* @__PURE__ */ _(r, { children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ _(s, {
|
|
569
578
|
className: "flex items-center gap-2",
|
|
570
|
-
children: [/* @__PURE__ */ g(
|
|
579
|
+
children: [/* @__PURE__ */ g(Pe, { size: 18 }), E("botlit.agentDetail.executionLimits.title", "Execution Limits")]
|
|
571
580
|
}) }), /* @__PURE__ */ _(i, {
|
|
572
581
|
className: "space-y-4",
|
|
573
582
|
children: [
|
|
@@ -576,21 +585,21 @@ var Me = "🤖", D = {
|
|
|
576
585
|
children: "Max Concurrent Executions"
|
|
577
586
|
}), /* @__PURE__ */ g("p", {
|
|
578
587
|
className: "font-medium",
|
|
579
|
-
children:
|
|
588
|
+
children: Y
|
|
580
589
|
})] }),
|
|
581
590
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
582
591
|
className: "text-sm text-text-secondary",
|
|
583
592
|
children: "Total Executions"
|
|
584
593
|
}), /* @__PURE__ */ g("p", {
|
|
585
594
|
className: "font-medium",
|
|
586
|
-
children:
|
|
595
|
+
children: j.executionCount ?? 0
|
|
587
596
|
})] }),
|
|
588
|
-
|
|
597
|
+
j.lastExecutedAt && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
589
598
|
className: "text-sm text-text-secondary",
|
|
590
599
|
children: "Last Executed"
|
|
591
600
|
}), /* @__PURE__ */ g("p", {
|
|
592
601
|
className: "font-medium",
|
|
593
|
-
children: p(
|
|
602
|
+
children: p(j.lastExecutedAt)
|
|
594
603
|
})] })
|
|
595
604
|
]
|
|
596
605
|
})] })]
|
|
@@ -599,20 +608,20 @@ var Me = "🤖", D = {
|
|
|
599
608
|
className: "space-y-6",
|
|
600
609
|
children: [/* @__PURE__ */ _(r, { children: [/* @__PURE__ */ _(o, { children: [/* @__PURE__ */ _(s, {
|
|
601
610
|
className: "flex items-center gap-2",
|
|
602
|
-
children: [/* @__PURE__ */ g(
|
|
603
|
-
}), /* @__PURE__ */ g(a, { children: "Connected MCP servers providing tools" })] }), /* @__PURE__ */ g(i, { children:
|
|
611
|
+
children: [/* @__PURE__ */ g(w, { size: 18 }), "MCP Server Connections"]
|
|
612
|
+
}), /* @__PURE__ */ g(a, { children: "Connected MCP servers providing tools" })] }), /* @__PURE__ */ g(i, { children: G.length > 0 ? /* @__PURE__ */ g("div", {
|
|
604
613
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
605
|
-
children:
|
|
614
|
+
children: G.map((e) => /* @__PURE__ */ _("div", {
|
|
606
615
|
className: "flex items-center gap-3 p-4 border border-border-subtle rounded-lg",
|
|
607
616
|
children: [/* @__PURE__ */ g("div", {
|
|
608
617
|
className: "p-2 bg-action-primary-bg/10 rounded-lg",
|
|
609
|
-
children: /* @__PURE__ */ g(
|
|
618
|
+
children: /* @__PURE__ */ g(w, {
|
|
610
619
|
size: 18,
|
|
611
620
|
className: "text-primary"
|
|
612
621
|
})
|
|
613
622
|
}), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
614
623
|
className: "font-medium",
|
|
615
|
-
children:
|
|
624
|
+
children: Qe(e, Z, L, "botlit.agentDetail.tools.unavailable")
|
|
616
625
|
}), !Z.has(e) && /* @__PURE__ */ g("p", {
|
|
617
626
|
className: "text-sm text-text-secondary font-mono",
|
|
618
627
|
children: e
|
|
@@ -620,13 +629,13 @@ var Me = "🤖", D = {
|
|
|
620
629
|
}, e))
|
|
621
630
|
}) : /* @__PURE__ */ _("p", {
|
|
622
631
|
className: "text-text-secondary",
|
|
623
|
-
children: [
|
|
624
|
-
}) })] }),
|
|
632
|
+
children: [E("botlit.agentDetail.tools.none", "No MCP servers connected."), A(d.AGENT_UPDATE) && ` ${E("botlit.agentDetail.tools.attachHint", "Attach servers from Edit Agent.")}`]
|
|
633
|
+
}) })] }), q.length > 0 && /* @__PURE__ */ _(r, { children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ _(s, {
|
|
625
634
|
className: "flex items-center gap-2",
|
|
626
635
|
children: [/* @__PURE__ */ g(S, { size: 18 }), "Workflows"]
|
|
627
636
|
}) }), /* @__PURE__ */ g(i, { children: /* @__PURE__ */ g("div", {
|
|
628
637
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
629
|
-
children:
|
|
638
|
+
children: q.map((e) => /* @__PURE__ */ g("div", {
|
|
630
639
|
className: "p-4 border border-border-subtle rounded-lg",
|
|
631
640
|
children: /* @__PURE__ */ g("p", {
|
|
632
641
|
className: "font-mono text-sm",
|
|
@@ -638,15 +647,15 @@ var Me = "🤖", D = {
|
|
|
638
647
|
F === "knowledge" && /* @__PURE__ */ _(r, { children: [/* @__PURE__ */ _(o, { children: [/* @__PURE__ */ _(s, {
|
|
639
648
|
className: "flex items-center gap-2",
|
|
640
649
|
children: [/* @__PURE__ */ g(v, { size: 18 }), "Knowledge Bases"]
|
|
641
|
-
}), /* @__PURE__ */ g(a, { children: "Connected knowledge bases for RAG" })] }), /* @__PURE__ */ g(i, { children:
|
|
650
|
+
}), /* @__PURE__ */ g(a, { children: "Connected knowledge bases for RAG" })] }), /* @__PURE__ */ g(i, { children: K.length > 0 ? /* @__PURE__ */ g("div", {
|
|
642
651
|
className: "space-y-4",
|
|
643
|
-
children:
|
|
652
|
+
children: K.map((e, t) => /* @__PURE__ */ _("div", {
|
|
644
653
|
className: "p-4 border border-border-subtle rounded-lg space-y-2",
|
|
645
654
|
children: [/* @__PURE__ */ _("div", {
|
|
646
655
|
className: "flex items-center justify-between",
|
|
647
656
|
children: [/* @__PURE__ */ g("p", {
|
|
648
657
|
className: "font-medium",
|
|
649
|
-
children:
|
|
658
|
+
children: Qe(e, Q, R, "botlit.agentDetail.knowledge.unavailable")
|
|
650
659
|
}), /* @__PURE__ */ _(l, {
|
|
651
660
|
variant: "outline",
|
|
652
661
|
children: ["#", t + 1]
|
|
@@ -658,56 +667,37 @@ var Me = "🤖", D = {
|
|
|
658
667
|
}, e))
|
|
659
668
|
}) : /* @__PURE__ */ _("p", {
|
|
660
669
|
className: "text-text-secondary",
|
|
661
|
-
children: [
|
|
670
|
+
children: [E("botlit.agentDetail.knowledge.none", "No knowledge bases connected."), A(d.AGENT_UPDATE) && ` ${E("botlit.agentDetail.knowledge.attachHint", "Attach knowledge bases from Edit Agent.")}`]
|
|
662
671
|
}) })] }),
|
|
663
|
-
F === "handoff" &&
|
|
672
|
+
F === "handoff" && D && /* @__PURE__ */ g("div", {
|
|
664
673
|
className: "mx-auto w-full max-w-3xl",
|
|
665
|
-
children: /* @__PURE__ */ g(n, { agentId:
|
|
674
|
+
children: /* @__PURE__ */ g(n, { agentId: D })
|
|
666
675
|
}),
|
|
667
|
-
F === "guardrails" && /* @__PURE__ */
|
|
668
|
-
|
|
669
|
-
children: [/* @__PURE__ */ g(w, { size: 18 }), "Guardrails & Policies"]
|
|
670
|
-
}), /* @__PURE__ */ g(a, { children: "Security and policy configurations" })] }), /* @__PURE__ */ g(i, { children: Y ? /* @__PURE__ */ g("div", {
|
|
671
|
-
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
672
|
-
children: Object.entries(Y).filter(([e, t]) => t).map(([e, t]) => /* @__PURE__ */ _("div", {
|
|
673
|
-
className: "p-4 border border-border-subtle rounded-lg",
|
|
674
|
-
children: [/* @__PURE__ */ g("p", {
|
|
675
|
-
className: "text-sm text-text-secondary capitalize",
|
|
676
|
-
children: e.replace("Id", "").replace(/([A-Z])/g, " $1").trim()
|
|
677
|
-
}), /* @__PURE__ */ g("p", {
|
|
678
|
-
className: "font-mono text-sm",
|
|
679
|
-
children: String(t)
|
|
680
|
-
})]
|
|
681
|
-
}, e))
|
|
682
|
-
}) : /* @__PURE__ */ g("p", {
|
|
683
|
-
className: "text-text-secondary",
|
|
684
|
-
children: "No policy bindings configured"
|
|
685
|
-
}) })] }),
|
|
686
|
-
F === "aiOperations" && O && /* @__PURE__ */ g(le, {
|
|
676
|
+
F === "guardrails" && /* @__PURE__ */ g(ye, { subject: "agent" }),
|
|
677
|
+
F === "aiOperations" && D && /* @__PURE__ */ g(le, {
|
|
687
678
|
filter: {
|
|
688
679
|
subjectType: "AGENT",
|
|
689
|
-
subjectId:
|
|
680
|
+
subjectId: D
|
|
690
681
|
},
|
|
691
|
-
description:
|
|
682
|
+
description: E("botlit.agentDetail.aiOperationsDescription", "What the supervisor flagged for this agent — drift, evidence and the recommended action.")
|
|
692
683
|
}),
|
|
693
|
-
F === "a2a" &&
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
onChanged: () => void P()
|
|
684
|
+
F === "a2a" && D && /* @__PURE__ */ g(ve, {
|
|
685
|
+
agentId: D,
|
|
686
|
+
agentName: j.name,
|
|
687
|
+
delegationEnabled: J.includes("A2A"),
|
|
688
|
+
agents: Je.data ?? []
|
|
689
|
+
}),
|
|
690
|
+
F === "versions" && D && /* @__PURE__ */ g(re, {
|
|
691
|
+
agentId: D,
|
|
692
|
+
draftVersionId: j.draftVersionId,
|
|
693
|
+
currentVersionId: j.currentVersionId,
|
|
694
|
+
onChanged: () => void N()
|
|
705
695
|
})
|
|
706
696
|
]
|
|
707
697
|
})
|
|
708
698
|
]
|
|
709
699
|
});
|
|
710
700
|
};
|
|
711
|
-
export {
|
|
701
|
+
export { A as AgentDetailPage };
|
|
712
702
|
|
|
713
703
|
//# sourceMappingURL=AgentDetailPage.js.map
|