@burdenoff/microfe-botmanor 2026.1116.1 → 2026.1117.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/hooks/internal/workspaceGateway.js +33 -32
- package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
- package/dist/botlit/hooks/useAgents.d.ts +3 -1
- package/dist/botlit/hooks/useAgents.js +5 -4
- package/dist/botlit/hooks/useAgents.js.map +1 -1
- package/dist/botlit/hooks/useBotAgents.d.ts +12 -0
- package/dist/botlit/hooks/useBotAgents.js +54 -28
- package/dist/botlit/hooks/useBotAgents.js.map +1 -1
- package/dist/botlit/hooks/useKnowledgeBases.d.ts +13 -0
- package/dist/botlit/hooks/useKnowledgeBases.js +76 -53
- package/dist/botlit/hooks/useKnowledgeBases.js.map +1 -1
- package/dist/botlit/pages/AgentBuilderPage.js +229 -213
- package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
- package/dist/botlit/pages/AgentDetailPage.js +408 -379
- package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js +519 -265
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBasesPage.js +269 -130
- package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
- package/dist/botlit/utils/kbDelete.d.ts +5 -0
- package/dist/botlit/utils/kbDelete.js +11 -0
- package/dist/botlit/utils/kbDelete.js.map +1 -0
- package/dist/botlit/utils/kbSettings.d.ts +41 -0
- package/dist/botlit/utils/kbSettings.js +60 -0
- package/dist/botlit/utils/kbSettings.js.map +1 -0
- package/dist/generated/wspace-operations.d.ts +71 -0
- package/dist/generated/wspace-operations.js +60 -48
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +23 -0
- package/dist/generated/wspace-types.js.map +1 -1
- package/package.json +10 -12
|
@@ -63,7 +63,7 @@ var Me = "🤖", D = {
|
|
|
63
63
|
confirm: !1
|
|
64
64
|
}]
|
|
65
65
|
}, j = () => {
|
|
66
|
-
let D = e(), { agentId: O, botId: k } = Ce(), { navigateTo: A } = ge(), j = te(), { data: M, loading: Pe, error: N, refetch: P } = ue(O), [Fe, Ie] = pe(), [Le, Re] = de(), ze = fe(), [F, I] = ye("overview"), L = he(), R = me(), Be = L.data,
|
|
66
|
+
let D = e(), { agentId: O, botId: k } = Ce(), { navigateTo: A } = ge(), j = te(), { data: M, loading: Pe, error: N, refetch: P } = ue(O), [Fe, Ie] = pe(), [Le, Re] = de(), ze = fe(), [F, I] = ye("overview"), L = he(), R = me(), Be = L.data, z = R.data, Ve = ae(), B = k ? `bots/${k}/agents` : "agents";
|
|
67
67
|
if (Pe) return /* @__PURE__ */ g(t, {
|
|
68
68
|
title: D("botlit.common.loading", "Loading..."),
|
|
69
69
|
children: /* @__PURE__ */ g("div", {
|
|
@@ -88,15 +88,26 @@ var Me = "🤖", D = {
|
|
|
88
88
|
title: D("botlit.agentDetail.notFound.title", "Agent Not Found"),
|
|
89
89
|
description: D("botlit.agentDetail.notFound.description", "The agent you're looking for doesn't exist."),
|
|
90
90
|
action: /* @__PURE__ */ g(c, {
|
|
91
|
-
onClick: () => A(
|
|
91
|
+
onClick: () => A(B),
|
|
92
92
|
children: D("botlit.agentDetail.notFound.backAction", "Back to Agents")
|
|
93
93
|
})
|
|
94
94
|
})
|
|
95
95
|
});
|
|
96
|
-
let
|
|
96
|
+
let V = M.systemPrompt || "", H = M.llmModelId || "", He = M.temperature, Ue = M.maxTokens, U = M.mcpConnectionIds ?? [], W = M.knowledgeBaseIds ?? [], G = M.workflowIds ?? [], K = M.capabilities ?? [], q = M.tagIds ?? [], J = M.maxConcurrentExecutions || 10, Y = M.metadata ?? null, X = !!Ve.data?.requireActivationApproval && (M.status === "DRAFT" || M.status === "ARCHIVED") && !M.currentVersionId, Z = new Map(Be.map((e) => [e.id, e.name])), Q = new Map(z.map((e) => [e.id, e.name])), We = K.includes("RAG") && !R.loading && !R.error ? W.flatMap((e) => {
|
|
97
|
+
let t = z.find((t) => t.id === e);
|
|
98
|
+
return t ? t.indexStatus === "READY" ? [] : [{
|
|
99
|
+
id: e,
|
|
100
|
+
name: t.name,
|
|
101
|
+
status: t.indexStatus
|
|
102
|
+
}] : [{
|
|
103
|
+
id: e,
|
|
104
|
+
name: null,
|
|
105
|
+
status: "MISSING"
|
|
106
|
+
}];
|
|
107
|
+
}) : [], Ge = (e, t, n, r) => t.get(e) ?? (n.loading ? D("botlit.agentDetail.resourceLoading", "Loading…") : n.error ? D("botlit.agentDetail.resourceUnnamed", "Name unavailable") : D(r, "No longer available")), Ke = (() => {
|
|
97
108
|
switch (M.status) {
|
|
98
109
|
case "ACTIVE": return null;
|
|
99
|
-
case "DRAFT": return
|
|
110
|
+
case "DRAFT": return X ? D("botlit.agentDetail.reason.pendingApproval", "This agent is a draft. This workspace needs a reviewer to approve it before it goes live: use Request activation.") : M.currentVersionId ? D("botlit.agentDetail.reason.deactivated", "This agent was taken out of service and is a draft again. Activate it to put it back live.") : D("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.");
|
|
100
111
|
case "PAUSED": return D("botlit.agentDetail.reason.paused", "This agent is paused and does not answer bots or other agents. Resume it to put it back live.");
|
|
101
112
|
case "TRAINING": return D("botlit.agentDetail.reason.training", "This agent is in training and does not answer bots or other agents yet.");
|
|
102
113
|
case "ARCHIVED": return D("botlit.agentDetail.reason.archived", "This agent is archived and does not answer. Restore it to bring it back as a draft.");
|
|
@@ -134,7 +145,7 @@ var Me = "🤖", D = {
|
|
|
134
145
|
error: D("botlit.agentDetail.restore.error", "Failed to restore agent")
|
|
135
146
|
};
|
|
136
147
|
}
|
|
137
|
-
},
|
|
148
|
+
}, qe = async (e) => {
|
|
138
149
|
if (!O) return;
|
|
139
150
|
let t = $(e.key, M.name);
|
|
140
151
|
if (!(e.confirm && t.confirmTitle && t.confirmMessage && !await m({
|
|
@@ -150,7 +161,7 @@ var Me = "🤖", D = {
|
|
|
150
161
|
} catch (e) {
|
|
151
162
|
E.error(e instanceof Error ? e.message : t.error);
|
|
152
163
|
}
|
|
153
|
-
},
|
|
164
|
+
}, Je = async () => {
|
|
154
165
|
if (!O) return;
|
|
155
166
|
let e = await ze(O).catch(() => null), t = ve(D, M.name, e);
|
|
156
167
|
if (await m({
|
|
@@ -163,11 +174,11 @@ var Me = "🤖", D = {
|
|
|
163
174
|
E.error(D("botlit.agentDetail.delete.error", "Failed to delete agent"));
|
|
164
175
|
return;
|
|
165
176
|
}
|
|
166
|
-
E.success(D("botlit.agentDetail.delete.success", "Agent \"{{name}}\" deleted successfully", { name: M.name })), A(
|
|
177
|
+
E.success(D("botlit.agentDetail.delete.success", "Agent \"{{name}}\" deleted successfully", { name: M.name })), A(B);
|
|
167
178
|
} catch (e) {
|
|
168
179
|
E.error(e instanceof Error ? e.message : D("botlit.agentDetail.delete.error", "Failed to delete agent"));
|
|
169
180
|
}
|
|
170
|
-
},
|
|
181
|
+
}, Ye = [
|
|
171
182
|
{
|
|
172
183
|
id: "assistant",
|
|
173
184
|
label: "Assistant setup",
|
|
@@ -230,7 +241,7 @@ var Me = "🤖", D = {
|
|
|
230
241
|
variant: "ghost",
|
|
231
242
|
size: "icon",
|
|
232
243
|
"aria-label": D("botlit.agentDetail.back", "Back to agents"),
|
|
233
|
-
onClick: () => A(
|
|
244
|
+
onClick: () => A(B),
|
|
234
245
|
children: /* @__PURE__ */ g(we, {
|
|
235
246
|
size: 20,
|
|
236
247
|
"aria-hidden": "true"
|
|
@@ -250,7 +261,7 @@ var Me = "🤖", D = {
|
|
|
250
261
|
children: [
|
|
251
262
|
/* @__PURE__ */ g(f, {
|
|
252
263
|
permission: d.AGENT_UPDATE,
|
|
253
|
-
children:
|
|
264
|
+
children: X ? /* @__PURE__ */ g(c, {
|
|
254
265
|
variant: "default",
|
|
255
266
|
onClick: () => {
|
|
256
267
|
I("overview"), requestAnimationFrame(() => document.querySelector("[data-testid=\"agent-approval-panel\"]")?.scrollIntoView({
|
|
@@ -262,7 +273,7 @@ var Me = "🤖", D = {
|
|
|
262
273
|
}) : (Ne[M.status] ?? []).map((e) => /* @__PURE__ */ g(c, {
|
|
263
274
|
variant: e.variant,
|
|
264
275
|
isLoading: Ie.loading,
|
|
265
|
-
onClick: () => void
|
|
276
|
+
onClick: () => void qe(e),
|
|
266
277
|
children: $(e.key, M.name).label
|
|
267
278
|
}, e.key))
|
|
268
279
|
}),
|
|
@@ -289,394 +300,412 @@ var Me = "🤖", D = {
|
|
|
289
300
|
variant: "destructive",
|
|
290
301
|
leftIcon: /* @__PURE__ */ g(je, { size: 16 }),
|
|
291
302
|
isLoading: Re.loading,
|
|
292
|
-
onClick: () => void
|
|
303
|
+
onClick: () => void Je(),
|
|
293
304
|
children: D("botlit.common.delete", "Delete")
|
|
294
305
|
})
|
|
295
306
|
})
|
|
296
307
|
]
|
|
297
308
|
}),
|
|
298
|
-
children: [
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
icon: /* @__PURE__ */ g(y, { size: 18 }),
|
|
326
|
-
children: D("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.")
|
|
327
|
-
}),
|
|
328
|
-
/* @__PURE__ */ g("div", {
|
|
329
|
-
className: "flex gap-1 border-b border-border-subtle overflow-x-auto",
|
|
330
|
-
children: Je.map((e) => /* @__PURE__ */ _("button", {
|
|
331
|
-
onClick: () => I(e.id),
|
|
332
|
-
className: _e("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"),
|
|
333
|
-
children: [e.icon, e.label]
|
|
334
|
-
}, e.id))
|
|
335
|
-
}),
|
|
336
|
-
F === "overview" && /* @__PURE__ */ _("div", {
|
|
337
|
-
className: "space-y-6",
|
|
338
|
-
children: [
|
|
339
|
-
/* @__PURE__ */ g(xe, {
|
|
340
|
-
storageKey: `botlit-agent-${O}`,
|
|
341
|
-
steps: [
|
|
342
|
-
{
|
|
343
|
-
id: "test",
|
|
344
|
-
label: D("botlit.agentDetail.nextSteps.test", "Test the agent in chat"),
|
|
345
|
-
description: D("botlit.agentDetail.nextSteps.testDesc", "Send it a few real prompts to see how it responds."),
|
|
346
|
-
icon: /* @__PURE__ */ g(x, { size: 16 }),
|
|
347
|
-
onClick: () => A(`chat/${O}`)
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
id: "prompt",
|
|
351
|
-
label: D("botlit.agentDetail.nextSteps.prompt", "Refine the system prompt"),
|
|
352
|
-
description: D("botlit.agentDetail.nextSteps.promptDesc", "Tune its instructions and behaviour."),
|
|
353
|
-
icon: /* @__PURE__ */ g(b, { size: 16 }),
|
|
354
|
-
onClick: () => I("prompt")
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
id: "tools",
|
|
358
|
-
label: D("botlit.agentDetail.nextSteps.tools", "Connect tools & knowledge"),
|
|
359
|
-
description: D("botlit.agentDetail.nextSteps.toolsDesc", "Give it MCP tools and knowledge bases to work with."),
|
|
360
|
-
icon: /* @__PURE__ */ g(T, { size: 16 }),
|
|
361
|
-
onClick: () => I("tools")
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
id: "activate",
|
|
365
|
-
label: D("botlit.agentDetail.nextSteps.activate", "Activate and attach to a bot"),
|
|
366
|
-
description: D("botlit.agentDetail.nextSteps.activateDesc", "Put it live so a bot can route conversations to it."),
|
|
367
|
-
icon: /* @__PURE__ */ g(C, { size: 16 }),
|
|
368
|
-
onClick: () => A(`agents/${O}/edit`),
|
|
369
|
-
done: M.status === "ACTIVE"
|
|
370
|
-
}
|
|
371
|
-
]
|
|
372
|
-
}),
|
|
373
|
-
O && /* @__PURE__ */ g(ie, {
|
|
374
|
-
agentId: O,
|
|
375
|
-
agentStatus: M.status,
|
|
376
|
-
onChanged: () => void P()
|
|
377
|
-
}),
|
|
378
|
-
/* @__PURE__ */ _("div", {
|
|
379
|
-
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
380
|
-
children: [
|
|
381
|
-
/* @__PURE__ */ _(r, {
|
|
382
|
-
className: "lg:col-span-1",
|
|
383
|
-
children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ g(s, { children: "Details" }) }), /* @__PURE__ */ _(i, {
|
|
384
|
-
className: "space-y-4",
|
|
385
|
-
children: [
|
|
386
|
-
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
387
|
-
className: "text-sm text-text-secondary",
|
|
388
|
-
children: "Status"
|
|
389
|
-
}), /* @__PURE__ */ g(u, { status: M.status })] }),
|
|
390
|
-
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
391
|
-
className: "text-sm text-text-secondary",
|
|
392
|
-
children: "Type"
|
|
393
|
-
}), /* @__PURE__ */ g(l, {
|
|
394
|
-
variant: "outline",
|
|
395
|
-
children: M.type
|
|
396
|
-
})] }),
|
|
397
|
-
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
398
|
-
className: "text-sm text-text-secondary",
|
|
399
|
-
children: "Visibility"
|
|
400
|
-
}), /* @__PURE__ */ g(l, {
|
|
401
|
-
variant: "outline",
|
|
402
|
-
children: M.visibility
|
|
403
|
-
})] }),
|
|
404
|
-
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
405
|
-
className: "text-sm text-text-secondary",
|
|
406
|
-
children: "LLM Model"
|
|
407
|
-
}), /* @__PURE__ */ g("p", {
|
|
408
|
-
className: "font-medium font-mono text-sm",
|
|
409
|
-
children: V || "Not configured"
|
|
410
|
-
})] }),
|
|
411
|
-
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
412
|
-
className: "text-sm text-text-secondary",
|
|
413
|
-
children: "MCP Connections"
|
|
414
|
-
}), /* @__PURE__ */ _("p", {
|
|
415
|
-
className: "font-medium",
|
|
416
|
-
children: [H.length, " servers"]
|
|
417
|
-
})] }),
|
|
418
|
-
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
419
|
-
className: "text-sm text-text-secondary",
|
|
420
|
-
children: "Knowledge Bases"
|
|
421
|
-
}), /* @__PURE__ */ _("p", {
|
|
422
|
-
className: "font-medium",
|
|
423
|
-
children: [U.length, " KBs"]
|
|
424
|
-
})] }),
|
|
425
|
-
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
426
|
-
className: "text-sm text-text-secondary",
|
|
427
|
-
children: "Max Concurrent"
|
|
428
|
-
}), /* @__PURE__ */ g("p", {
|
|
429
|
-
className: "font-medium",
|
|
430
|
-
children: q
|
|
431
|
-
})] }),
|
|
432
|
-
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
433
|
-
className: "text-sm text-text-secondary",
|
|
434
|
-
children: "Executions"
|
|
435
|
-
}), /* @__PURE__ */ g("p", {
|
|
436
|
-
className: "font-medium",
|
|
437
|
-
children: M.executionCount ?? 0
|
|
438
|
-
})] }),
|
|
439
|
-
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
440
|
-
className: "text-sm text-text-secondary",
|
|
441
|
-
children: "Created"
|
|
442
|
-
}), /* @__PURE__ */ g("p", {
|
|
443
|
-
className: "font-medium",
|
|
444
|
-
children: p(M.createdAt)
|
|
445
|
-
})] }),
|
|
446
|
-
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
447
|
-
className: "text-sm text-text-secondary",
|
|
448
|
-
children: "Updated"
|
|
449
|
-
}), /* @__PURE__ */ g("p", {
|
|
450
|
-
className: "font-medium",
|
|
451
|
-
children: p(M.updatedAt)
|
|
452
|
-
})] })
|
|
453
|
-
]
|
|
454
|
-
})]
|
|
455
|
-
}),
|
|
456
|
-
/* @__PURE__ */ _(be, {
|
|
457
|
-
treatment: "glass",
|
|
458
|
-
glow: !0,
|
|
459
|
-
className: "lg:col-span-2 p-6",
|
|
460
|
-
children: [/* @__PURE__ */ g("h3", {
|
|
461
|
-
className: "mb-4 text-lg font-semibold tracking-tight text-text-primary",
|
|
462
|
-
children: D("botlit.agentDetail.capabilities.title", "Capabilities")
|
|
463
|
-
}), /* @__PURE__ */ g("div", { children: G.length > 0 ? /* @__PURE__ */ g("div", {
|
|
464
|
-
className: "grid grid-cols-2 md:grid-cols-3 gap-4",
|
|
465
|
-
children: G.map((e) => /* @__PURE__ */ _("div", {
|
|
466
|
-
className: "p-3 rounded-lg border border-status-success-border bg-status-success-bg-subtle",
|
|
467
|
-
children: [/* @__PURE__ */ g("p", {
|
|
468
|
-
className: "font-medium",
|
|
469
|
-
children: e
|
|
470
|
-
}), /* @__PURE__ */ g(l, {
|
|
471
|
-
variant: "success",
|
|
472
|
-
children: D("botlit.agentDetail.capabilities.enabled", "Enabled")
|
|
473
|
-
})]
|
|
474
|
-
}, e))
|
|
475
|
-
}) : /* @__PURE__ */ g("p", {
|
|
476
|
-
className: "text-text-secondary",
|
|
477
|
-
children: D("botlit.agentDetail.capabilities.empty", "No capabilities configured")
|
|
478
|
-
}) })]
|
|
479
|
-
}),
|
|
480
|
-
K.length > 0 && /* @__PURE__ */ _(r, {
|
|
481
|
-
className: "lg:col-span-3",
|
|
482
|
-
children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ g(s, { children: D("botlit.agentDetail.tags.title", "Tags") }) }), /* @__PURE__ */ g(i, { children: /* @__PURE__ */ g("div", {
|
|
483
|
-
className: "flex flex-wrap gap-2",
|
|
484
|
-
children: K.map((e) => /* @__PURE__ */ g(l, {
|
|
485
|
-
variant: "outline",
|
|
486
|
-
children: e
|
|
487
|
-
}, e))
|
|
488
|
-
}) })]
|
|
489
|
-
})
|
|
490
|
-
]
|
|
491
|
-
})
|
|
492
|
-
]
|
|
493
|
-
}),
|
|
494
|
-
F === "prompt" && /* @__PURE__ */ g("div", {
|
|
495
|
-
className: "space-y-6",
|
|
496
|
-
children: /* @__PURE__ */ _(r, { children: [/* @__PURE__ */ _(o, { children: [/* @__PURE__ */ _(s, {
|
|
497
|
-
className: "flex items-center gap-2",
|
|
498
|
-
children: [/* @__PURE__ */ g(b, { size: 18 }), D("botlit.agentDetail.prompt.title", "System Prompt")]
|
|
499
|
-
}), /* @__PURE__ */ g(a, { children: D("botlit.agentDetail.prompt.description", "The system prompt that defines this agent's behavior") })] }), /* @__PURE__ */ g(i, {
|
|
500
|
-
className: "space-y-4",
|
|
501
|
-
children: B ? /* @__PURE__ */ g("pre", {
|
|
502
|
-
className: "p-4 bg-bg-sunken rounded-lg text-sm whitespace-pre-wrap font-mono",
|
|
503
|
-
children: B
|
|
504
|
-
}) : /* @__PURE__ */ g("p", {
|
|
505
|
-
className: "text-text-secondary",
|
|
506
|
-
children: D("botlit.agentDetail.prompt.empty", "No system prompt configured")
|
|
507
|
-
})
|
|
508
|
-
})] })
|
|
509
|
-
}),
|
|
510
|
-
F === "llm" && /* @__PURE__ */ _("div", {
|
|
511
|
-
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
512
|
-
children: [/* @__PURE__ */ _(r, { children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ _(s, {
|
|
513
|
-
className: "flex items-center gap-2",
|
|
514
|
-
children: [/* @__PURE__ */ g(y, { size: 18 }), D("botlit.agentDetail.llm.title", "Model Configuration")]
|
|
515
|
-
}) }), /* @__PURE__ */ _(i, {
|
|
516
|
-
className: "space-y-4",
|
|
309
|
+
children: [
|
|
310
|
+
Ke && /* @__PURE__ */ g("div", {
|
|
311
|
+
role: "status",
|
|
312
|
+
"data-testid": "agent-status-reason",
|
|
313
|
+
className: "mb-4 rounded-lg border border-status-warning-border bg-status-warning-bg-subtle p-3 text-sm text-text-primary",
|
|
314
|
+
children: Ke
|
|
315
|
+
}),
|
|
316
|
+
We.length > 0 && /* @__PURE__ */ _("div", {
|
|
317
|
+
role: "status",
|
|
318
|
+
"data-testid": "agent-knowledge-warning",
|
|
319
|
+
className: "mb-4 rounded-lg border border-status-warning-border bg-status-warning-bg-subtle p-3 text-sm text-text-primary",
|
|
320
|
+
children: [/* @__PURE__ */ g("p", {
|
|
321
|
+
className: "font-medium",
|
|
322
|
+
children: D("botlit.agentDetail.knowledgeWarning.title", "This agent cannot answer right now: a knowledge base it uses cannot be searched.")
|
|
323
|
+
}), /* @__PURE__ */ g("ul", {
|
|
324
|
+
className: "mt-1 list-disc pl-5",
|
|
325
|
+
children: We.map((e) => /* @__PURE__ */ g("li", { children: e.name === null ? D("botlit.agentDetail.knowledgeWarning.missing", "A knowledge base that no longer exists ({{id}}). Remove it from the agent.", { id: e.id }) : D("botlit.agentDetail.knowledgeWarning.notReady", "\"{{name}}\" is {{status}}.", {
|
|
326
|
+
name: e.name,
|
|
327
|
+
status: D(`botlit.status.${e.status.toLowerCase()}`, e.status.toLowerCase())
|
|
328
|
+
}) }, e.id))
|
|
329
|
+
})]
|
|
330
|
+
}),
|
|
331
|
+
/* @__PURE__ */ _("div", {
|
|
332
|
+
className: "space-y-6",
|
|
333
|
+
children: [
|
|
334
|
+
F === "assistant" && O && /* @__PURE__ */ _("div", {
|
|
335
|
+
className: "space-y-5",
|
|
517
336
|
children: [
|
|
518
|
-
|
|
337
|
+
j(d.AGENT_UPDATE) && /* @__PURE__ */ g(oe, {
|
|
338
|
+
agentId: O,
|
|
339
|
+
onConfigured: () => void P()
|
|
340
|
+
}),
|
|
341
|
+
j(d.AGENT_PUBLISH) && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(ce, {
|
|
342
|
+
agentId: O,
|
|
343
|
+
knowledgeBaseIds: W
|
|
344
|
+
}), /* @__PURE__ */ g(se, { agentId: O })] }),
|
|
345
|
+
!j(d.AGENT_UPDATE) && !j(d.AGENT_PUBLISH) && /* @__PURE__ */ g("p", {
|
|
346
|
+
role: "status",
|
|
519
347
|
className: "text-sm text-text-secondary",
|
|
520
|
-
children: "
|
|
521
|
-
})
|
|
522
|
-
className: "font-medium font-mono",
|
|
523
|
-
children: V || "Not configured"
|
|
524
|
-
})] }),
|
|
525
|
-
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
526
|
-
className: "text-sm text-text-secondary",
|
|
527
|
-
children: "Temperature"
|
|
528
|
-
}), /* @__PURE__ */ g("p", {
|
|
529
|
-
className: "font-medium",
|
|
530
|
-
children: Ue ?? "Default"
|
|
531
|
-
})] }),
|
|
532
|
-
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
533
|
-
className: "text-sm text-text-secondary",
|
|
534
|
-
children: "Max Tokens"
|
|
535
|
-
}), /* @__PURE__ */ g("p", {
|
|
536
|
-
className: "font-medium",
|
|
537
|
-
children: We ?? "Default"
|
|
538
|
-
})] })
|
|
348
|
+
children: D("botlit.agentDetail.assistant.readOnly", "Assistant setup and publishing are available to members who can edit or publish agents in this workspace.")
|
|
349
|
+
})
|
|
539
350
|
]
|
|
540
|
-
})
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
351
|
+
}),
|
|
352
|
+
/* @__PURE__ */ g(Se, {
|
|
353
|
+
icon: /* @__PURE__ */ g(y, { size: 18 }),
|
|
354
|
+
children: D("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
|
+
}),
|
|
356
|
+
/* @__PURE__ */ g("div", {
|
|
357
|
+
className: "flex gap-1 border-b border-border-subtle overflow-x-auto",
|
|
358
|
+
children: Ye.map((e) => /* @__PURE__ */ _("button", {
|
|
359
|
+
onClick: () => I(e.id),
|
|
360
|
+
className: _e("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
|
+
children: [e.icon, e.label]
|
|
362
|
+
}, e.id))
|
|
363
|
+
}),
|
|
364
|
+
F === "overview" && /* @__PURE__ */ _("div", {
|
|
365
|
+
className: "space-y-6",
|
|
545
366
|
children: [
|
|
546
|
-
/* @__PURE__ */
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
367
|
+
/* @__PURE__ */ g(xe, {
|
|
368
|
+
storageKey: `botlit-agent-${O}`,
|
|
369
|
+
steps: [
|
|
370
|
+
{
|
|
371
|
+
id: "test",
|
|
372
|
+
label: D("botlit.agentDetail.nextSteps.test", "Test the agent in chat"),
|
|
373
|
+
description: D("botlit.agentDetail.nextSteps.testDesc", "Send it a few real prompts to see how it responds."),
|
|
374
|
+
icon: /* @__PURE__ */ g(x, { size: 16 }),
|
|
375
|
+
onClick: () => A(`chat/${O}`)
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
id: "prompt",
|
|
379
|
+
label: D("botlit.agentDetail.nextSteps.prompt", "Refine the system prompt"),
|
|
380
|
+
description: D("botlit.agentDetail.nextSteps.promptDesc", "Tune its instructions and behaviour."),
|
|
381
|
+
icon: /* @__PURE__ */ g(b, { size: 16 }),
|
|
382
|
+
onClick: () => I("prompt")
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
id: "tools",
|
|
386
|
+
label: D("botlit.agentDetail.nextSteps.tools", "Connect tools & knowledge"),
|
|
387
|
+
description: D("botlit.agentDetail.nextSteps.toolsDesc", "Give it MCP tools and knowledge bases to work with."),
|
|
388
|
+
icon: /* @__PURE__ */ g(T, { size: 16 }),
|
|
389
|
+
onClick: () => I("tools")
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
id: "activate",
|
|
393
|
+
label: D("botlit.agentDetail.nextSteps.activate", "Activate and attach to a bot"),
|
|
394
|
+
description: D("botlit.agentDetail.nextSteps.activateDesc", "Put it live so a bot can route conversations to it."),
|
|
395
|
+
icon: /* @__PURE__ */ g(C, { size: 16 }),
|
|
396
|
+
onClick: () => A(`agents/${O}/edit`),
|
|
397
|
+
done: M.status === "ACTIVE"
|
|
398
|
+
}
|
|
399
|
+
]
|
|
400
|
+
}),
|
|
401
|
+
O && /* @__PURE__ */ g(ie, {
|
|
402
|
+
agentId: O,
|
|
403
|
+
agentStatus: M.status,
|
|
404
|
+
onChanged: () => void P()
|
|
405
|
+
}),
|
|
406
|
+
/* @__PURE__ */ _("div", {
|
|
407
|
+
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
408
|
+
children: [
|
|
409
|
+
/* @__PURE__ */ _(r, {
|
|
410
|
+
className: "lg:col-span-1",
|
|
411
|
+
children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ g(s, { children: "Details" }) }), /* @__PURE__ */ _(i, {
|
|
412
|
+
className: "space-y-4",
|
|
413
|
+
children: [
|
|
414
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
415
|
+
className: "text-sm text-text-secondary",
|
|
416
|
+
children: "Status"
|
|
417
|
+
}), /* @__PURE__ */ g(u, { status: M.status })] }),
|
|
418
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
419
|
+
className: "text-sm text-text-secondary",
|
|
420
|
+
children: "Type"
|
|
421
|
+
}), /* @__PURE__ */ g(l, {
|
|
422
|
+
variant: "outline",
|
|
423
|
+
children: M.type
|
|
424
|
+
})] }),
|
|
425
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
426
|
+
className: "text-sm text-text-secondary",
|
|
427
|
+
children: "Visibility"
|
|
428
|
+
}), /* @__PURE__ */ g(l, {
|
|
429
|
+
variant: "outline",
|
|
430
|
+
children: M.visibility
|
|
431
|
+
})] }),
|
|
432
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
433
|
+
className: "text-sm text-text-secondary",
|
|
434
|
+
children: "LLM Model"
|
|
435
|
+
}), /* @__PURE__ */ g("p", {
|
|
436
|
+
className: "font-medium font-mono text-sm",
|
|
437
|
+
children: H || "Not configured"
|
|
438
|
+
})] }),
|
|
439
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
440
|
+
className: "text-sm text-text-secondary",
|
|
441
|
+
children: "MCP Connections"
|
|
442
|
+
}), /* @__PURE__ */ _("p", {
|
|
443
|
+
className: "font-medium",
|
|
444
|
+
children: [U.length, " servers"]
|
|
445
|
+
})] }),
|
|
446
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
447
|
+
className: "text-sm text-text-secondary",
|
|
448
|
+
children: "Knowledge Bases"
|
|
449
|
+
}), /* @__PURE__ */ _("p", {
|
|
450
|
+
className: "font-medium",
|
|
451
|
+
children: [W.length, " KBs"]
|
|
452
|
+
})] }),
|
|
453
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
454
|
+
className: "text-sm text-text-secondary",
|
|
455
|
+
children: "Max Concurrent"
|
|
456
|
+
}), /* @__PURE__ */ g("p", {
|
|
457
|
+
className: "font-medium",
|
|
458
|
+
children: J
|
|
459
|
+
})] }),
|
|
460
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
461
|
+
className: "text-sm text-text-secondary",
|
|
462
|
+
children: "Executions"
|
|
463
|
+
}), /* @__PURE__ */ g("p", {
|
|
464
|
+
className: "font-medium",
|
|
465
|
+
children: M.executionCount ?? 0
|
|
466
|
+
})] }),
|
|
467
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
468
|
+
className: "text-sm text-text-secondary",
|
|
469
|
+
children: "Created"
|
|
470
|
+
}), /* @__PURE__ */ g("p", {
|
|
471
|
+
className: "font-medium",
|
|
472
|
+
children: p(M.createdAt)
|
|
473
|
+
})] }),
|
|
474
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
475
|
+
className: "text-sm text-text-secondary",
|
|
476
|
+
children: "Updated"
|
|
477
|
+
}), /* @__PURE__ */ g("p", {
|
|
478
|
+
className: "font-medium",
|
|
479
|
+
children: p(M.updatedAt)
|
|
480
|
+
})] })
|
|
481
|
+
]
|
|
482
|
+
})]
|
|
483
|
+
}),
|
|
484
|
+
/* @__PURE__ */ _(be, {
|
|
485
|
+
treatment: "glass",
|
|
486
|
+
glow: !0,
|
|
487
|
+
className: "lg:col-span-2 p-6",
|
|
488
|
+
children: [/* @__PURE__ */ g("h3", {
|
|
489
|
+
className: "mb-4 text-lg font-semibold tracking-tight text-text-primary",
|
|
490
|
+
children: D("botlit.agentDetail.capabilities.title", "Capabilities")
|
|
491
|
+
}), /* @__PURE__ */ g("div", { children: K.length > 0 ? /* @__PURE__ */ g("div", {
|
|
492
|
+
className: "grid grid-cols-2 md:grid-cols-3 gap-4",
|
|
493
|
+
children: K.map((e) => /* @__PURE__ */ _("div", {
|
|
494
|
+
className: "p-3 rounded-lg border border-status-success-border bg-status-success-bg-subtle",
|
|
495
|
+
children: [/* @__PURE__ */ g("p", {
|
|
496
|
+
className: "font-medium",
|
|
497
|
+
children: e
|
|
498
|
+
}), /* @__PURE__ */ g(l, {
|
|
499
|
+
variant: "success",
|
|
500
|
+
children: D("botlit.agentDetail.capabilities.enabled", "Enabled")
|
|
501
|
+
})]
|
|
502
|
+
}, e))
|
|
503
|
+
}) : /* @__PURE__ */ g("p", {
|
|
504
|
+
className: "text-text-secondary",
|
|
505
|
+
children: D("botlit.agentDetail.capabilities.empty", "No capabilities configured")
|
|
506
|
+
}) })]
|
|
507
|
+
}),
|
|
508
|
+
q.length > 0 && /* @__PURE__ */ _(r, {
|
|
509
|
+
className: "lg:col-span-3",
|
|
510
|
+
children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ g(s, { children: D("botlit.agentDetail.tags.title", "Tags") }) }), /* @__PURE__ */ g(i, { children: /* @__PURE__ */ g("div", {
|
|
511
|
+
className: "flex flex-wrap gap-2",
|
|
512
|
+
children: q.map((e) => /* @__PURE__ */ g(l, {
|
|
513
|
+
variant: "outline",
|
|
514
|
+
children: e
|
|
515
|
+
}, e))
|
|
516
|
+
}) })]
|
|
517
|
+
})
|
|
518
|
+
]
|
|
519
|
+
})
|
|
567
520
|
]
|
|
568
|
-
})
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
className: "
|
|
581
|
-
children:
|
|
582
|
-
|
|
583
|
-
|
|
521
|
+
}),
|
|
522
|
+
F === "prompt" && /* @__PURE__ */ g("div", {
|
|
523
|
+
className: "space-y-6",
|
|
524
|
+
children: /* @__PURE__ */ _(r, { children: [/* @__PURE__ */ _(o, { children: [/* @__PURE__ */ _(s, {
|
|
525
|
+
className: "flex items-center gap-2",
|
|
526
|
+
children: [/* @__PURE__ */ g(b, { size: 18 }), D("botlit.agentDetail.prompt.title", "System Prompt")]
|
|
527
|
+
}), /* @__PURE__ */ g(a, { children: D("botlit.agentDetail.prompt.description", "The system prompt that defines this agent's behavior") })] }), /* @__PURE__ */ g(i, {
|
|
528
|
+
className: "space-y-4",
|
|
529
|
+
children: V ? /* @__PURE__ */ g("pre", {
|
|
530
|
+
className: "p-4 bg-bg-sunken rounded-lg text-sm whitespace-pre-wrap font-mono",
|
|
531
|
+
children: V
|
|
532
|
+
}) : /* @__PURE__ */ g("p", {
|
|
533
|
+
className: "text-text-secondary",
|
|
534
|
+
children: D("botlit.agentDetail.prompt.empty", "No system prompt configured")
|
|
535
|
+
})
|
|
536
|
+
})] })
|
|
537
|
+
}),
|
|
538
|
+
F === "llm" && /* @__PURE__ */ _("div", {
|
|
539
|
+
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
540
|
+
children: [/* @__PURE__ */ _(r, { children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ _(s, {
|
|
541
|
+
className: "flex items-center gap-2",
|
|
542
|
+
children: [/* @__PURE__ */ g(y, { size: 18 }), D("botlit.agentDetail.llm.title", "Model Configuration")]
|
|
543
|
+
}) }), /* @__PURE__ */ _(i, {
|
|
544
|
+
className: "space-y-4",
|
|
545
|
+
children: [
|
|
546
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
547
|
+
className: "text-sm text-text-secondary",
|
|
548
|
+
children: "LLM Model ID"
|
|
549
|
+
}), /* @__PURE__ */ g("p", {
|
|
550
|
+
className: "font-medium font-mono",
|
|
551
|
+
children: H || "Not configured"
|
|
552
|
+
})] }),
|
|
553
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
554
|
+
className: "text-sm text-text-secondary",
|
|
555
|
+
children: "Temperature"
|
|
556
|
+
}), /* @__PURE__ */ g("p", {
|
|
557
|
+
className: "font-medium",
|
|
558
|
+
children: He ?? "Default"
|
|
559
|
+
})] }),
|
|
560
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
561
|
+
className: "text-sm text-text-secondary",
|
|
562
|
+
children: "Max Tokens"
|
|
563
|
+
}), /* @__PURE__ */ g("p", {
|
|
564
|
+
className: "font-medium",
|
|
565
|
+
children: Ue ?? "Default"
|
|
566
|
+
})] })
|
|
567
|
+
]
|
|
568
|
+
})] }), /* @__PURE__ */ _(r, { children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ _(s, {
|
|
569
|
+
className: "flex items-center gap-2",
|
|
570
|
+
children: [/* @__PURE__ */ g(ke, { size: 18 }), D("botlit.agentDetail.executionLimits.title", "Execution Limits")]
|
|
571
|
+
}) }), /* @__PURE__ */ _(i, {
|
|
572
|
+
className: "space-y-4",
|
|
573
|
+
children: [
|
|
574
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
575
|
+
className: "text-sm text-text-secondary",
|
|
576
|
+
children: "Max Concurrent Executions"
|
|
577
|
+
}), /* @__PURE__ */ g("p", {
|
|
578
|
+
className: "font-medium",
|
|
579
|
+
children: J
|
|
580
|
+
})] }),
|
|
581
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
582
|
+
className: "text-sm text-text-secondary",
|
|
583
|
+
children: "Total Executions"
|
|
584
|
+
}), /* @__PURE__ */ g("p", {
|
|
585
|
+
className: "font-medium",
|
|
586
|
+
children: M.executionCount ?? 0
|
|
587
|
+
})] }),
|
|
588
|
+
M.lastExecutedAt && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
589
|
+
className: "text-sm text-text-secondary",
|
|
590
|
+
children: "Last Executed"
|
|
591
|
+
}), /* @__PURE__ */ g("p", {
|
|
592
|
+
className: "font-medium",
|
|
593
|
+
children: p(M.lastExecutedAt)
|
|
594
|
+
})] })
|
|
595
|
+
]
|
|
596
|
+
})] })]
|
|
597
|
+
}),
|
|
598
|
+
F === "tools" && /* @__PURE__ */ _("div", {
|
|
599
|
+
className: "space-y-6",
|
|
600
|
+
children: [/* @__PURE__ */ _(r, { children: [/* @__PURE__ */ _(o, { children: [/* @__PURE__ */ _(s, {
|
|
601
|
+
className: "flex items-center gap-2",
|
|
602
|
+
children: [/* @__PURE__ */ g(T, { size: 18 }), "MCP Server Connections"]
|
|
603
|
+
}), /* @__PURE__ */ g(a, { children: "Connected MCP servers providing tools" })] }), /* @__PURE__ */ g(i, { children: U.length > 0 ? /* @__PURE__ */ g("div", {
|
|
604
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
605
|
+
children: U.map((e) => /* @__PURE__ */ _("div", {
|
|
606
|
+
className: "flex items-center gap-3 p-4 border border-border-subtle rounded-lg",
|
|
607
|
+
children: [/* @__PURE__ */ g("div", {
|
|
608
|
+
className: "p-2 bg-action-primary-bg/10 rounded-lg",
|
|
609
|
+
children: /* @__PURE__ */ g(T, {
|
|
610
|
+
size: 18,
|
|
611
|
+
className: "text-primary"
|
|
612
|
+
})
|
|
613
|
+
}), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
614
|
+
className: "font-medium",
|
|
615
|
+
children: Ge(e, Z, L, "botlit.agentDetail.tools.unavailable")
|
|
616
|
+
}), !Z.has(e) && /* @__PURE__ */ g("p", {
|
|
617
|
+
className: "text-sm text-text-secondary font-mono",
|
|
618
|
+
children: e
|
|
619
|
+
})] })]
|
|
620
|
+
}, e))
|
|
621
|
+
}) : /* @__PURE__ */ _("p", {
|
|
622
|
+
className: "text-text-secondary",
|
|
623
|
+
children: [D("botlit.agentDetail.tools.none", "No MCP servers connected."), j(d.AGENT_UPDATE) && ` ${D("botlit.agentDetail.tools.attachHint", "Attach servers from Edit Agent.")}`]
|
|
624
|
+
}) })] }), G.length > 0 && /* @__PURE__ */ _(r, { children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ _(s, {
|
|
625
|
+
className: "flex items-center gap-2",
|
|
626
|
+
children: [/* @__PURE__ */ g(S, { size: 18 }), "Workflows"]
|
|
627
|
+
}) }), /* @__PURE__ */ g(i, { children: /* @__PURE__ */ g("div", {
|
|
628
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
629
|
+
children: G.map((e) => /* @__PURE__ */ g("div", {
|
|
630
|
+
className: "p-4 border border-border-subtle rounded-lg",
|
|
631
|
+
children: /* @__PURE__ */ g("p", {
|
|
632
|
+
className: "font-mono text-sm",
|
|
633
|
+
children: e
|
|
584
634
|
})
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
635
|
+
}, e))
|
|
636
|
+
}) })] })]
|
|
637
|
+
}),
|
|
638
|
+
F === "knowledge" && /* @__PURE__ */ _(r, { children: [/* @__PURE__ */ _(o, { children: [/* @__PURE__ */ _(s, {
|
|
639
|
+
className: "flex items-center gap-2",
|
|
640
|
+
children: [/* @__PURE__ */ g(v, { size: 18 }), "Knowledge Bases"]
|
|
641
|
+
}), /* @__PURE__ */ g(a, { children: "Connected knowledge bases for RAG" })] }), /* @__PURE__ */ g(i, { children: W.length > 0 ? /* @__PURE__ */ g("div", {
|
|
642
|
+
className: "space-y-4",
|
|
643
|
+
children: W.map((e, t) => /* @__PURE__ */ _("div", {
|
|
644
|
+
className: "p-4 border border-border-subtle rounded-lg space-y-2",
|
|
645
|
+
children: [/* @__PURE__ */ _("div", {
|
|
646
|
+
className: "flex items-center justify-between",
|
|
647
|
+
children: [/* @__PURE__ */ g("p", {
|
|
648
|
+
className: "font-medium",
|
|
649
|
+
children: Ge(e, Q, R, "botlit.agentDetail.knowledge.unavailable")
|
|
650
|
+
}), /* @__PURE__ */ _(l, {
|
|
651
|
+
variant: "outline",
|
|
652
|
+
children: ["#", t + 1]
|
|
653
|
+
})]
|
|
654
|
+
}), !Q.has(e) && /* @__PURE__ */ g("p", {
|
|
655
|
+
className: "font-mono text-sm",
|
|
590
656
|
children: e
|
|
591
|
-
})]
|
|
657
|
+
})]
|
|
592
658
|
}, e))
|
|
593
659
|
}) : /* @__PURE__ */ _("p", {
|
|
594
660
|
className: "text-text-secondary",
|
|
595
|
-
children: [D("botlit.agentDetail.
|
|
596
|
-
}) })] }),
|
|
661
|
+
children: [D("botlit.agentDetail.knowledge.none", "No knowledge bases connected."), j(d.AGENT_UPDATE) && ` ${D("botlit.agentDetail.knowledge.attachHint", "Attach knowledge bases from Edit Agent.")}`]
|
|
662
|
+
}) })] }),
|
|
663
|
+
F === "handoff" && O && /* @__PURE__ */ g("div", {
|
|
664
|
+
className: "mx-auto w-full max-w-3xl",
|
|
665
|
+
children: /* @__PURE__ */ g(n, { agentId: O })
|
|
666
|
+
}),
|
|
667
|
+
F === "guardrails" && /* @__PURE__ */ _(r, { children: [/* @__PURE__ */ _(o, { children: [/* @__PURE__ */ _(s, {
|
|
597
668
|
className: "flex items-center gap-2",
|
|
598
|
-
children: [/* @__PURE__ */ g(
|
|
599
|
-
}) }), /* @__PURE__ */ g(i, { children: /* @__PURE__ */ g("div", {
|
|
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", {
|
|
600
671
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
601
|
-
children:
|
|
672
|
+
children: Object.entries(Y).filter(([e, t]) => t).map(([e, t]) => /* @__PURE__ */ _("div", {
|
|
602
673
|
className: "p-4 border border-border-subtle rounded-lg",
|
|
603
|
-
children: /* @__PURE__ */ g("p", {
|
|
604
|
-
className: "font-mono text-sm",
|
|
605
|
-
children: e
|
|
606
|
-
})
|
|
607
|
-
}, e))
|
|
608
|
-
}) })] })]
|
|
609
|
-
}),
|
|
610
|
-
F === "knowledge" && /* @__PURE__ */ _(r, { children: [/* @__PURE__ */ _(o, { children: [/* @__PURE__ */ _(s, {
|
|
611
|
-
className: "flex items-center gap-2",
|
|
612
|
-
children: [/* @__PURE__ */ g(v, { size: 18 }), "Knowledge Bases"]
|
|
613
|
-
}), /* @__PURE__ */ g(a, { children: "Connected knowledge bases for RAG" })] }), /* @__PURE__ */ g(i, { children: U.length > 0 ? /* @__PURE__ */ g("div", {
|
|
614
|
-
className: "space-y-4",
|
|
615
|
-
children: U.map((e, t) => /* @__PURE__ */ _("div", {
|
|
616
|
-
className: "p-4 border border-border-subtle rounded-lg space-y-2",
|
|
617
|
-
children: [/* @__PURE__ */ _("div", {
|
|
618
|
-
className: "flex items-center justify-between",
|
|
619
674
|
children: [/* @__PURE__ */ g("p", {
|
|
620
|
-
className: "
|
|
621
|
-
children:
|
|
622
|
-
}), /* @__PURE__ */
|
|
623
|
-
|
|
624
|
-
children:
|
|
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)
|
|
625
680
|
})]
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
}) : /* @__PURE__ */ g("p", {
|
|
655
|
-
className: "text-text-secondary",
|
|
656
|
-
children: "No policy bindings configured"
|
|
657
|
-
}) })] }),
|
|
658
|
-
F === "aiOperations" && O && /* @__PURE__ */ g(le, {
|
|
659
|
-
filter: {
|
|
660
|
-
subjectType: "AGENT",
|
|
661
|
-
subjectId: O
|
|
662
|
-
},
|
|
663
|
-
description: D("botlit.agentDetail.aiOperationsDescription", "What the supervisor flagged for this agent — drift, evidence and the recommended action.")
|
|
664
|
-
}),
|
|
665
|
-
F === "a2a" && /* @__PURE__ */ _(r, { children: [/* @__PURE__ */ _(o, { children: [/* @__PURE__ */ _(s, {
|
|
666
|
-
className: "flex items-center gap-2",
|
|
667
|
-
children: [/* @__PURE__ */ g(C, { size: 18 }), "A2A Configuration"]
|
|
668
|
-
}), /* @__PURE__ */ g(a, { children: "Agent-to-Agent communication settings" })] }), /* @__PURE__ */ g(i, { children: /* @__PURE__ */ g("p", {
|
|
669
|
-
className: "text-text-secondary",
|
|
670
|
-
children: "A2A is not enabled for this agent"
|
|
671
|
-
}) })] }),
|
|
672
|
-
F === "versions" && O && /* @__PURE__ */ g(re, {
|
|
673
|
-
agentId: O,
|
|
674
|
-
draftVersionId: M.draftVersionId,
|
|
675
|
-
currentVersionId: M.currentVersionId,
|
|
676
|
-
onChanged: () => void P()
|
|
677
|
-
})
|
|
678
|
-
]
|
|
679
|
-
})]
|
|
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, {
|
|
687
|
+
filter: {
|
|
688
|
+
subjectType: "AGENT",
|
|
689
|
+
subjectId: O
|
|
690
|
+
},
|
|
691
|
+
description: D("botlit.agentDetail.aiOperationsDescription", "What the supervisor flagged for this agent — drift, evidence and the recommended action.")
|
|
692
|
+
}),
|
|
693
|
+
F === "a2a" && /* @__PURE__ */ _(r, { children: [/* @__PURE__ */ _(o, { children: [/* @__PURE__ */ _(s, {
|
|
694
|
+
className: "flex items-center gap-2",
|
|
695
|
+
children: [/* @__PURE__ */ g(C, { size: 18 }), "A2A Configuration"]
|
|
696
|
+
}), /* @__PURE__ */ g(a, { children: "Agent-to-Agent communication settings" })] }), /* @__PURE__ */ g(i, { children: /* @__PURE__ */ g("p", {
|
|
697
|
+
className: "text-text-secondary",
|
|
698
|
+
children: "A2A is not enabled for this agent"
|
|
699
|
+
}) })] }),
|
|
700
|
+
F === "versions" && O && /* @__PURE__ */ g(re, {
|
|
701
|
+
agentId: O,
|
|
702
|
+
draftVersionId: M.draftVersionId,
|
|
703
|
+
currentVersionId: M.currentVersionId,
|
|
704
|
+
onChanged: () => void P()
|
|
705
|
+
})
|
|
706
|
+
]
|
|
707
|
+
})
|
|
708
|
+
]
|
|
680
709
|
});
|
|
681
710
|
};
|
|
682
711
|
export { j as AgentDetailPage };
|