@burdenoff/microfe-botmanor 2026.1120.10 → 2026.1120.12
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/components/ExecutionFeedback.d.ts +5 -0
- package/dist/botlit/components/ExecutionFeedback.js +55 -0
- package/dist/botlit/components/ExecutionFeedback.js.map +1 -0
- package/dist/botlit/components/KnowledgeReviewSchedule.d.ts +7 -0
- package/dist/botlit/components/KnowledgeReviewSchedule.js +92 -0
- package/dist/botlit/components/KnowledgeReviewSchedule.js.map +1 -0
- package/dist/botlit/components/SuggestionsPanel.d.ts +12 -0
- package/dist/botlit/components/SuggestionsPanel.js +219 -0
- package/dist/botlit/components/SuggestionsPanel.js.map +1 -0
- package/dist/botlit/hooks/index.d.ts +2 -2
- package/dist/botlit/hooks/index.js +2 -2
- package/dist/botlit/hooks/useAgentTuning.d.ts +87 -0
- package/dist/botlit/hooks/useAgentTuning.js +170 -0
- package/dist/botlit/hooks/useAgentTuning.js.map +1 -0
- package/dist/botlit/hooks/useAiOperations.js +1 -1
- package/dist/botlit/hooks/useAiOperations.js.map +1 -1
- package/dist/botlit/hooks/useExecutions.d.ts +30 -18
- package/dist/botlit/hooks/useExecutions.js +42 -49
- package/dist/botlit/hooks/useExecutions.js.map +1 -1
- package/dist/botlit/pages/AgentDetailPage.js +75 -70
- package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionDetailPage.js +259 -190
- package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionsPage.js +333 -210
- package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js +356 -354
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
- package/dist/botlit/utils/executionStatus.d.ts +16 -0
- package/dist/botlit/utils/executionStatus.js +32 -0
- package/dist/botlit/utils/executionStatus.js.map +1 -0
- package/dist/botlit/utils/formatters.js +4 -2
- package/dist/botlit/utils/formatters.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +67 -0
- package/dist/generated/wspace-operations.js +101 -73
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +55 -0
- package/dist/generated/wspace-types.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,34 +10,35 @@ import { BOTMANOR_PERMISSIONS as d } from "../permissions/botmanorPermissions.js
|
|
|
10
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
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
13
|
+
import { SuggestionsPanel as ae } from "../components/SuggestionsPanel.js";
|
|
14
|
+
import { useAgentApprovalSettings as oe } from "../hooks/useAgentApprovals.js";
|
|
15
|
+
import { AssistantRuntimeSetupPanel as se } from "../components/AssistantRuntimeSetupPanel.js";
|
|
16
|
+
import { AssistantChannelPanel as ce } from "../components/AssistantChannelPanel.js";
|
|
17
|
+
import { AssistantWebsitePanel as le } from "../components/AssistantWebsitePanel.js";
|
|
18
|
+
import { AiOperationsPanel as ue } from "../components/AiOperationsPanel.js";
|
|
19
|
+
import { useAgent as de, useAgents as fe, useDeleteAgent as pe, useLoadAgentUsage as me, useUpdateAgent as he } from "../hooks/useAgents.js";
|
|
20
|
+
import { useKnowledgeBases as ge } from "../hooks/useKnowledgeBases.js";
|
|
21
|
+
import { useMCPServers as _e } from "../hooks/useMCPServers.js";
|
|
22
|
+
import { useLLMModels as ve } from "../hooks/useLLMProviders.js";
|
|
23
|
+
import { AgentA2APanel as ye } from "../components/AgentA2APanel.js";
|
|
24
|
+
import { AgentBindingsPanel as be } from "../components/AgentBindingsPanel.js";
|
|
25
|
+
import { GuardrailPoliciesPanel as xe } from "../components/GuardrailPoliciesPanel.js";
|
|
26
|
+
import { EntityTags as Se } from "../components/EntityTags.js";
|
|
27
|
+
import { useBotlit as Ce } from "../providers/BotlitProvider.js";
|
|
27
28
|
import { formatRelativeTime as p } from "../utils/formatters.js";
|
|
28
|
-
import { cn as
|
|
29
|
-
import { agentDeleteMessage as
|
|
29
|
+
import { cn as we } from "../utils/cn.js";
|
|
30
|
+
import { agentDeleteMessage as Te } from "../utils/agentDelete.js";
|
|
30
31
|
import { confirmAction as m } from "../utils/confirmAction.js";
|
|
31
|
-
import { RunStatsCard as
|
|
32
|
+
import { RunStatsCard as Ee } from "../components/RunStatsCard.js";
|
|
32
33
|
import "../permissions/index.js";
|
|
33
|
-
import { useState as
|
|
34
|
-
import { GlassCard as
|
|
34
|
+
import { useState as De } from "react";
|
|
35
|
+
import { GlassCard as Oe, NextSteps as ke, PagePurpose as Ae } from "@burdenoff/fe-libs/ui";
|
|
35
36
|
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
36
|
-
import { useParams as
|
|
37
|
-
import { ArrowLeft as
|
|
37
|
+
import { useParams as je, useSearchParams as Me } from "react-router";
|
|
38
|
+
import { ArrowLeft as Ne, BarChart3 as Pe, BookOpen as v, Brain as y, Edit as Fe, FileText as b, Headset as Ie, History as Le, MessageSquare as Re, Play as x, Settings as S, Share2 as C, Shield as ze, ShieldCheck as Be, Trash2 as Ve, Wrench as w } from "lucide-react";
|
|
38
39
|
import { toast as T } from "sonner";
|
|
39
40
|
// src/botlit/pages/AgentDetailPage.tsx
|
|
40
|
-
var
|
|
41
|
+
var He = "🤖", Ue = [
|
|
41
42
|
"overview",
|
|
42
43
|
"prompt",
|
|
43
44
|
"llm",
|
|
@@ -69,7 +70,7 @@ var Ve = "🤖", He = [
|
|
|
69
70
|
to: "ARCHIVED",
|
|
70
71
|
variant: "outline",
|
|
71
72
|
confirm: !0
|
|
72
|
-
},
|
|
73
|
+
}, We = {
|
|
73
74
|
DRAFT: [E, k],
|
|
74
75
|
ACTIVE: [O, k],
|
|
75
76
|
PAUSED: [D, k],
|
|
@@ -81,8 +82,8 @@ var Ve = "🤖", He = [
|
|
|
81
82
|
confirm: !1
|
|
82
83
|
}]
|
|
83
84
|
}, A = () => {
|
|
84
|
-
let E = e(), { agentId: D, botId: O } =
|
|
85
|
-
if (
|
|
85
|
+
let E = e(), { agentId: D, botId: O } = je(), { navigateTo: k } = Ce(), A = ne(), { data: j, loading: Ge, error: M, refetch: N } = de(D), [P, Ke] = he(), [qe, Je] = pe(), Ye = me(), [Xe] = Me(), [F, I] = De(() => Ue.find((e) => e === Xe.get("tab")) ?? "overview"), L = _e(), R = ge(), Ze = L.data, z = R.data, Qe = oe(), $e = ve(), et = fe(), B = O ? `bots/${O}/agents` : "agents";
|
|
86
|
+
if (Ge) return /* @__PURE__ */ g(t, {
|
|
86
87
|
title: E("botlit.common.loading", "Loading..."),
|
|
87
88
|
children: /* @__PURE__ */ g("div", {
|
|
88
89
|
role: "status",
|
|
@@ -111,7 +112,7 @@ var Ve = "🤖", He = [
|
|
|
111
112
|
})
|
|
112
113
|
})
|
|
113
114
|
});
|
|
114
|
-
let V = j.systemPrompt || "", H = j.llmModelId || "", U = (
|
|
115
|
+
let V = j.systemPrompt || "", H = j.llmModelId || "", U = ($e.data ?? []).find((e) => e.id === H), W = U ? `${U.name} (${U.modelId})` : H || "Not configured", tt = j.temperature, nt = j.maxTokens, G = j.mcpConnectionIds ?? [], K = j.knowledgeBaseIds ?? [], q = j.workflowIds ?? [], J = j.capabilities ?? [], Y = j.maxConcurrentExecutions || 10, X = !!Qe.data?.requireActivationApproval && (j.status === "DRAFT" || j.status === "ARCHIVED") && !j.currentVersionId, Z = new Map(Ze.map((e) => [e.id, e.name])), Q = new Map(z.map((e) => [e.id, e.name])), rt = J.includes("RAG") && !R.loading && !R.error ? K.flatMap((e) => {
|
|
115
116
|
let t = z.find((t) => t.id === e);
|
|
116
117
|
return t ? t.indexStatus === "READY" ? [] : [{
|
|
117
118
|
id: e,
|
|
@@ -122,7 +123,7 @@ var Ve = "🤖", He = [
|
|
|
122
123
|
name: null,
|
|
123
124
|
status: "MISSING"
|
|
124
125
|
}];
|
|
125
|
-
}) : [],
|
|
126
|
+
}) : [], it = (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")), at = (() => {
|
|
126
127
|
switch (j.status) {
|
|
127
128
|
case "ACTIVE": return null;
|
|
128
129
|
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.");
|
|
@@ -163,7 +164,7 @@ var Ve = "🤖", He = [
|
|
|
163
164
|
error: E("botlit.agentDetail.restore.error", "Failed to restore agent")
|
|
164
165
|
};
|
|
165
166
|
}
|
|
166
|
-
},
|
|
167
|
+
}, ot = async (e) => {
|
|
167
168
|
if (!D) return;
|
|
168
169
|
let t = $(e.key, j.name);
|
|
169
170
|
if (!(e.confirm && t.confirmTitle && t.confirmMessage && !await m({
|
|
@@ -179,16 +180,16 @@ var Ve = "🤖", He = [
|
|
|
179
180
|
} catch (e) {
|
|
180
181
|
T.error(e instanceof Error ? e.message : t.error);
|
|
181
182
|
}
|
|
182
|
-
},
|
|
183
|
+
}, st = async () => {
|
|
183
184
|
if (!D) return;
|
|
184
|
-
let e = await
|
|
185
|
+
let e = await Ye(D).catch(() => null), t = Te(E, j.name, e);
|
|
185
186
|
if (await m({
|
|
186
187
|
title: E("botlit.agentsList.delete.title", "Delete agent?"),
|
|
187
188
|
message: t,
|
|
188
189
|
confirmLabel: E("botlit.agentsList.delete.okButton", "Delete"),
|
|
189
190
|
cancelLabel: E("botlit.agentsList.delete.cancelButton", "Cancel")
|
|
190
191
|
})) try {
|
|
191
|
-
if (!await
|
|
192
|
+
if (!await qe(D)) {
|
|
192
193
|
T.error(E("botlit.agentDetail.delete.error", "Failed to delete agent"));
|
|
193
194
|
return;
|
|
194
195
|
}
|
|
@@ -196,7 +197,7 @@ var Ve = "🤖", He = [
|
|
|
196
197
|
} catch (e) {
|
|
197
198
|
T.error(e instanceof Error ? e.message : E("botlit.agentDetail.delete.error", "Failed to delete agent"));
|
|
198
199
|
}
|
|
199
|
-
},
|
|
200
|
+
}, ct = [
|
|
200
201
|
{
|
|
201
202
|
id: "assistant",
|
|
202
203
|
label: "Assistant setup",
|
|
@@ -205,7 +206,7 @@ var Ve = "🤖", He = [
|
|
|
205
206
|
{
|
|
206
207
|
id: "overview",
|
|
207
208
|
label: E("botlit.agentDetail.tabs.overview", "Overview"),
|
|
208
|
-
icon: /* @__PURE__ */ g(
|
|
209
|
+
icon: /* @__PURE__ */ g(Pe, { size: 16 })
|
|
209
210
|
},
|
|
210
211
|
{
|
|
211
212
|
id: "prompt",
|
|
@@ -230,17 +231,17 @@ var Ve = "🤖", He = [
|
|
|
230
231
|
{
|
|
231
232
|
id: "guardrails",
|
|
232
233
|
label: E("botlit.agentDetail.tabs.guardrails", "Guardrails"),
|
|
233
|
-
icon: /* @__PURE__ */ g(
|
|
234
|
+
icon: /* @__PURE__ */ g(ze, { size: 16 })
|
|
234
235
|
},
|
|
235
236
|
{
|
|
236
237
|
id: "handoff",
|
|
237
238
|
label: E("botlit.agentDetail.tabs.handoff", "Handoff"),
|
|
238
|
-
icon: /* @__PURE__ */ g(
|
|
239
|
+
icon: /* @__PURE__ */ g(Ie, { size: 16 })
|
|
239
240
|
},
|
|
240
241
|
{
|
|
241
242
|
id: "aiOperations",
|
|
242
243
|
label: E("botlit.agentDetail.tabs.aiOperations", "AI Operations"),
|
|
243
|
-
icon: /* @__PURE__ */ g(
|
|
244
|
+
icon: /* @__PURE__ */ g(Be, { size: 16 })
|
|
244
245
|
},
|
|
245
246
|
{
|
|
246
247
|
id: "a2a",
|
|
@@ -250,7 +251,7 @@ var Ve = "🤖", He = [
|
|
|
250
251
|
{
|
|
251
252
|
id: "versions",
|
|
252
253
|
label: E("botlit.agentDetail.tabs.versions", "Versions"),
|
|
253
|
-
icon: /* @__PURE__ */ g(
|
|
254
|
+
icon: /* @__PURE__ */ g(Le, { size: 16 })
|
|
254
255
|
}
|
|
255
256
|
];
|
|
256
257
|
return /* @__PURE__ */ _(t, {
|
|
@@ -260,14 +261,14 @@ var Ve = "🤖", He = [
|
|
|
260
261
|
size: "icon",
|
|
261
262
|
"aria-label": E("botlit.agentDetail.back", "Back to agents"),
|
|
262
263
|
onClick: () => k(B),
|
|
263
|
-
children: /* @__PURE__ */ g(
|
|
264
|
+
children: /* @__PURE__ */ g(Ne, {
|
|
264
265
|
size: 20,
|
|
265
266
|
"aria-hidden": "true"
|
|
266
267
|
})
|
|
267
268
|
}), /* @__PURE__ */ g("span", {
|
|
268
269
|
className: "text-3xl",
|
|
269
270
|
"aria-hidden": "true",
|
|
270
|
-
children: j.avatar ||
|
|
271
|
+
children: j.avatar || He
|
|
271
272
|
})] }),
|
|
272
273
|
meta: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(u, { status: j.status }), /* @__PURE__ */ g(l, {
|
|
273
274
|
variant: "outline",
|
|
@@ -288,10 +289,10 @@ var Ve = "🤖", He = [
|
|
|
288
289
|
}));
|
|
289
290
|
},
|
|
290
291
|
children: E("botlit.agentApproval.requestAction", "Request activation")
|
|
291
|
-
}) : (
|
|
292
|
+
}) : (We[j.status] ?? []).map((e) => /* @__PURE__ */ g(c, {
|
|
292
293
|
variant: e.variant,
|
|
293
|
-
isLoading:
|
|
294
|
-
onClick: () => void
|
|
294
|
+
isLoading: Ke.loading,
|
|
295
|
+
onClick: () => void ot(e),
|
|
295
296
|
children: $(e.key, j.name).label
|
|
296
297
|
}, e.key))
|
|
297
298
|
}),
|
|
@@ -299,7 +300,7 @@ var Ve = "🤖", He = [
|
|
|
299
300
|
permission: d.AGENT_UPDATE,
|
|
300
301
|
children: /* @__PURE__ */ g(c, {
|
|
301
302
|
variant: "outline",
|
|
302
|
-
leftIcon: /* @__PURE__ */ g(
|
|
303
|
+
leftIcon: /* @__PURE__ */ g(Fe, { size: 16 }),
|
|
303
304
|
onClick: () => k(O ? `bots/${O}/agents/${D}/edit` : `agents/${D}/edit`),
|
|
304
305
|
children: E("botlit.agentDetail.actions.editAgent", "Edit Agent")
|
|
305
306
|
})
|
|
@@ -316,22 +317,22 @@ var Ve = "🤖", He = [
|
|
|
316
317
|
permission: d.AGENT_DELETE,
|
|
317
318
|
children: /* @__PURE__ */ g(c, {
|
|
318
319
|
variant: "destructive",
|
|
319
|
-
leftIcon: /* @__PURE__ */ g(
|
|
320
|
-
isLoading:
|
|
321
|
-
onClick: () => void
|
|
320
|
+
leftIcon: /* @__PURE__ */ g(Ve, { size: 16 }),
|
|
321
|
+
isLoading: Je.loading,
|
|
322
|
+
onClick: () => void st(),
|
|
322
323
|
children: E("botlit.common.delete", "Delete")
|
|
323
324
|
})
|
|
324
325
|
})
|
|
325
326
|
]
|
|
326
327
|
}),
|
|
327
328
|
children: [
|
|
328
|
-
|
|
329
|
+
at && /* @__PURE__ */ g("div", {
|
|
329
330
|
role: "status",
|
|
330
331
|
"data-testid": "agent-status-reason",
|
|
331
332
|
className: "mb-4 rounded-lg border border-status-warning-border bg-status-warning-bg-subtle p-3 text-sm text-text-primary",
|
|
332
|
-
children:
|
|
333
|
+
children: at
|
|
333
334
|
}),
|
|
334
|
-
|
|
335
|
+
rt.length > 0 && /* @__PURE__ */ _("div", {
|
|
335
336
|
role: "status",
|
|
336
337
|
"data-testid": "agent-knowledge-warning",
|
|
337
338
|
className: "mb-4 rounded-lg border border-status-warning-border bg-status-warning-bg-subtle p-3 text-sm text-text-primary",
|
|
@@ -340,7 +341,7 @@ var Ve = "🤖", He = [
|
|
|
340
341
|
children: E("botlit.agentDetail.knowledgeWarning.title", "This agent cannot answer right now: a knowledge base it uses cannot be searched.")
|
|
341
342
|
}), /* @__PURE__ */ g("ul", {
|
|
342
343
|
className: "mt-1 list-disc pl-5",
|
|
343
|
-
children:
|
|
344
|
+
children: rt.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}}.", {
|
|
344
345
|
name: e.name,
|
|
345
346
|
status: E(`botlit.status.${e.status.toLowerCase()}`, e.status.toLowerCase())
|
|
346
347
|
}) }, e.id))
|
|
@@ -352,14 +353,14 @@ var Ve = "🤖", He = [
|
|
|
352
353
|
F === "assistant" && D && /* @__PURE__ */ _("div", {
|
|
353
354
|
className: "space-y-5",
|
|
354
355
|
children: [
|
|
355
|
-
A(d.AGENT_UPDATE) && /* @__PURE__ */ g(
|
|
356
|
+
A(d.AGENT_UPDATE) && /* @__PURE__ */ g(se, {
|
|
356
357
|
agentId: D,
|
|
357
358
|
onConfigured: () => void N()
|
|
358
359
|
}),
|
|
359
|
-
A(d.AGENT_PUBLISH) && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(
|
|
360
|
+
A(d.AGENT_PUBLISH) && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(le, {
|
|
360
361
|
agentId: D,
|
|
361
362
|
knowledgeBaseIds: K
|
|
362
|
-
}), /* @__PURE__ */ g(
|
|
363
|
+
}), /* @__PURE__ */ g(ce, { agentId: D })] }),
|
|
363
364
|
!A(d.AGENT_UPDATE) && !A(d.AGENT_PUBLISH) && /* @__PURE__ */ g("p", {
|
|
364
365
|
role: "status",
|
|
365
366
|
className: "text-sm text-text-secondary",
|
|
@@ -367,22 +368,22 @@ var Ve = "🤖", He = [
|
|
|
367
368
|
})
|
|
368
369
|
]
|
|
369
370
|
}),
|
|
370
|
-
/* @__PURE__ */ g(
|
|
371
|
+
/* @__PURE__ */ g(Ae, {
|
|
371
372
|
icon: /* @__PURE__ */ g(y, { size: 18 }),
|
|
372
373
|
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.")
|
|
373
374
|
}),
|
|
374
375
|
/* @__PURE__ */ g("div", {
|
|
375
376
|
className: "flex gap-1 border-b border-border-subtle overflow-x-auto",
|
|
376
|
-
children:
|
|
377
|
+
children: ct.map((e) => /* @__PURE__ */ _("button", {
|
|
377
378
|
onClick: () => I(e.id),
|
|
378
|
-
className:
|
|
379
|
+
className: we("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"),
|
|
379
380
|
children: [e.icon, e.label]
|
|
380
381
|
}, e.id))
|
|
381
382
|
}),
|
|
382
383
|
F === "overview" && /* @__PURE__ */ _("div", {
|
|
383
384
|
className: "space-y-6",
|
|
384
385
|
children: [
|
|
385
|
-
/* @__PURE__ */ g(
|
|
386
|
+
/* @__PURE__ */ g(ke, {
|
|
386
387
|
storageKey: `botlit-agent-${D}`,
|
|
387
388
|
steps: [
|
|
388
389
|
{
|
|
@@ -421,10 +422,14 @@ var Ve = "🤖", He = [
|
|
|
421
422
|
agentStatus: j.status,
|
|
422
423
|
onChanged: () => void N()
|
|
423
424
|
}),
|
|
424
|
-
/* @__PURE__ */ g(
|
|
425
|
+
/* @__PURE__ */ g(Ee, {
|
|
425
426
|
kind: "agent",
|
|
426
427
|
id: D
|
|
427
428
|
}),
|
|
429
|
+
D && /* @__PURE__ */ g(ae, {
|
|
430
|
+
agentId: D,
|
|
431
|
+
onDraftChanged: () => void N()
|
|
432
|
+
}),
|
|
428
433
|
/* @__PURE__ */ _("div", {
|
|
429
434
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
430
435
|
children: [
|
|
@@ -503,7 +508,7 @@ var Ve = "🤖", He = [
|
|
|
503
508
|
]
|
|
504
509
|
})]
|
|
505
510
|
}),
|
|
506
|
-
/* @__PURE__ */ _(
|
|
511
|
+
/* @__PURE__ */ _(Oe, {
|
|
507
512
|
treatment: "glass",
|
|
508
513
|
glow: !0,
|
|
509
514
|
className: "lg:col-span-2 p-6",
|
|
@@ -529,7 +534,7 @@ var Ve = "🤖", He = [
|
|
|
529
534
|
}),
|
|
530
535
|
/* @__PURE__ */ _(r, {
|
|
531
536
|
className: "lg:col-span-3",
|
|
532
|
-
children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ g(s, { children: E("botlit.agentDetail.tags.title", "Tags") }) }), /* @__PURE__ */ g(i, { children: /* @__PURE__ */ g(
|
|
537
|
+
children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ g(s, { children: E("botlit.agentDetail.tags.title", "Tags") }) }), /* @__PURE__ */ g(i, { children: /* @__PURE__ */ g(Se, {
|
|
533
538
|
entityType: "BotmanorAgent",
|
|
534
539
|
entityId: j.id,
|
|
535
540
|
tags: j.tags,
|
|
@@ -560,7 +565,7 @@ var Ve = "🤖", He = [
|
|
|
560
565
|
className: "text-text-secondary",
|
|
561
566
|
children: E("botlit.agentDetail.prompt.empty", "No system prompt configured")
|
|
562
567
|
})
|
|
563
|
-
})] }), D && /* @__PURE__ */ g(
|
|
568
|
+
})] }), D && /* @__PURE__ */ g(be, { agentId: D })]
|
|
564
569
|
}),
|
|
565
570
|
F === "llm" && /* @__PURE__ */ _("div", {
|
|
566
571
|
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
@@ -582,19 +587,19 @@ var Ve = "🤖", He = [
|
|
|
582
587
|
children: "Temperature"
|
|
583
588
|
}), /* @__PURE__ */ g("p", {
|
|
584
589
|
className: "font-medium",
|
|
585
|
-
children:
|
|
590
|
+
children: tt ?? "Default"
|
|
586
591
|
})] }),
|
|
587
592
|
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
588
593
|
className: "text-sm text-text-secondary",
|
|
589
594
|
children: "Max Tokens"
|
|
590
595
|
}), /* @__PURE__ */ g("p", {
|
|
591
596
|
className: "font-medium",
|
|
592
|
-
children:
|
|
597
|
+
children: nt ?? "Default"
|
|
593
598
|
})] })
|
|
594
599
|
]
|
|
595
600
|
})] }), /* @__PURE__ */ _(r, { children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ _(s, {
|
|
596
601
|
className: "flex items-center gap-2",
|
|
597
|
-
children: [/* @__PURE__ */ g(
|
|
602
|
+
children: [/* @__PURE__ */ g(Re, { size: 18 }), E("botlit.agentDetail.executionLimits.title", "Execution Limits")]
|
|
598
603
|
}) }), /* @__PURE__ */ _(i, {
|
|
599
604
|
className: "space-y-4",
|
|
600
605
|
children: [
|
|
@@ -639,7 +644,7 @@ var Ve = "🤖", He = [
|
|
|
639
644
|
})
|
|
640
645
|
}), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
641
646
|
className: "font-medium",
|
|
642
|
-
children:
|
|
647
|
+
children: it(e, Z, L, "botlit.agentDetail.tools.unavailable")
|
|
643
648
|
}), !Z.has(e) && /* @__PURE__ */ g("p", {
|
|
644
649
|
className: "text-sm text-text-secondary font-mono",
|
|
645
650
|
children: e
|
|
@@ -673,7 +678,7 @@ var Ve = "🤖", He = [
|
|
|
673
678
|
className: "flex items-center justify-between",
|
|
674
679
|
children: [/* @__PURE__ */ g("p", {
|
|
675
680
|
className: "font-medium",
|
|
676
|
-
children:
|
|
681
|
+
children: it(e, Q, R, "botlit.agentDetail.knowledge.unavailable")
|
|
677
682
|
}), /* @__PURE__ */ _(l, {
|
|
678
683
|
variant: "outline",
|
|
679
684
|
children: ["#", t + 1]
|
|
@@ -691,19 +696,19 @@ var Ve = "🤖", He = [
|
|
|
691
696
|
className: "mx-auto w-full max-w-3xl",
|
|
692
697
|
children: /* @__PURE__ */ g(n, { agentId: D })
|
|
693
698
|
}),
|
|
694
|
-
F === "guardrails" && /* @__PURE__ */ g(
|
|
695
|
-
F === "aiOperations" && D && /* @__PURE__ */ g(
|
|
699
|
+
F === "guardrails" && /* @__PURE__ */ g(xe, { subject: "agent" }),
|
|
700
|
+
F === "aiOperations" && D && /* @__PURE__ */ g(ue, {
|
|
696
701
|
filter: {
|
|
697
702
|
subjectType: "AGENT",
|
|
698
703
|
subjectId: D
|
|
699
704
|
},
|
|
700
705
|
description: E("botlit.agentDetail.aiOperationsDescription", "What the supervisor flagged for this agent — drift, evidence and the recommended action.")
|
|
701
706
|
}),
|
|
702
|
-
F === "a2a" && D && /* @__PURE__ */ g(
|
|
707
|
+
F === "a2a" && D && /* @__PURE__ */ g(ye, {
|
|
703
708
|
agentId: D,
|
|
704
709
|
agentName: j.name,
|
|
705
710
|
delegationEnabled: J.includes("A2A"),
|
|
706
|
-
agents:
|
|
711
|
+
agents: et.data ?? []
|
|
707
712
|
}),
|
|
708
713
|
F === "versions" && D && /* @__PURE__ */ g(re, {
|
|
709
714
|
agentId: D,
|