@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.
Files changed (72) hide show
  1. package/dist/botlit/BotlitRoutes.js +59 -55
  2. package/dist/botlit/BotlitRoutes.js.map +1 -1
  3. package/dist/botlit/components/AgentA2APanel.d.ts +13 -0
  4. package/dist/botlit/components/AgentA2APanel.js +149 -0
  5. package/dist/botlit/components/AgentA2APanel.js.map +1 -0
  6. package/dist/botlit/components/BotAgentsPanel.d.ts +15 -0
  7. package/dist/botlit/components/BotAgentsPanel.js +341 -0
  8. package/dist/botlit/components/BotAgentsPanel.js.map +1 -0
  9. package/dist/botlit/components/BotFormFields.d.ts +4 -0
  10. package/dist/botlit/components/BotFormFields.js +108 -74
  11. package/dist/botlit/components/BotFormFields.js.map +1 -1
  12. package/dist/botlit/components/BotRoutingSummary.d.ts +13 -0
  13. package/dist/botlit/components/BotRoutingSummary.js +126 -0
  14. package/dist/botlit/components/BotRoutingSummary.js.map +1 -0
  15. package/dist/botlit/components/BotVersionHistoryPanel.d.ts +8 -0
  16. package/dist/botlit/components/BotVersionHistoryPanel.js +172 -0
  17. package/dist/botlit/components/BotVersionHistoryPanel.js.map +1 -0
  18. package/dist/botlit/components/CreateFromTemplate.d.ts +12 -0
  19. package/dist/botlit/components/CreateFromTemplate.js +129 -0
  20. package/dist/botlit/components/CreateFromTemplate.js.map +1 -0
  21. package/dist/botlit/components/EntityTags.d.ts +24 -0
  22. package/dist/botlit/components/EntityTags.js +72 -0
  23. package/dist/botlit/components/EntityTags.js.map +1 -0
  24. package/dist/botlit/components/GuardrailPoliciesPanel.d.ts +10 -0
  25. package/dist/botlit/components/GuardrailPoliciesPanel.js +91 -0
  26. package/dist/botlit/components/GuardrailPoliciesPanel.js.map +1 -0
  27. package/dist/botlit/hooks/useA2AConnections.d.ts +21 -0
  28. package/dist/botlit/hooks/useA2AConnections.js +82 -0
  29. package/dist/botlit/hooks/useA2AConnections.js.map +1 -0
  30. package/dist/botlit/hooks/useAgentTestChat.d.ts +29 -0
  31. package/dist/botlit/hooks/useAgentTestChat.js +35 -0
  32. package/dist/botlit/hooks/useAgentTestChat.js.map +1 -0
  33. package/dist/botlit/hooks/useAgents.d.ts +3 -0
  34. package/dist/botlit/hooks/useAgents.js +4 -0
  35. package/dist/botlit/hooks/useAgents.js.map +1 -1
  36. package/dist/botlit/hooks/useBotAgents.d.ts +22 -1
  37. package/dist/botlit/hooks/useBotAgents.js +46 -12
  38. package/dist/botlit/hooks/useBotAgents.js.map +1 -1
  39. package/dist/botlit/hooks/useBotVersions.d.ts +25 -0
  40. package/dist/botlit/hooks/useBotVersions.js +69 -0
  41. package/dist/botlit/hooks/useBotVersions.js.map +1 -0
  42. package/dist/botlit/hooks/useBots.d.ts +3 -0
  43. package/dist/botlit/hooks/useBots.js +4 -0
  44. package/dist/botlit/hooks/useBots.js.map +1 -1
  45. package/dist/botlit/hooks/useLLMProviders.js +40 -32
  46. package/dist/botlit/hooks/useLLMProviders.js.map +1 -1
  47. package/dist/botlit/hooks/useTemplates.d.ts +19 -0
  48. package/dist/botlit/hooks/useTemplates.js +71 -0
  49. package/dist/botlit/hooks/useTemplates.js.map +1 -0
  50. package/dist/botlit/pages/AgentBuilderPage.js +388 -347
  51. package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
  52. package/dist/botlit/pages/AgentDetailPage.js +237 -247
  53. package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
  54. package/dist/botlit/pages/AgentTestChatPage.d.ts +2 -0
  55. package/dist/botlit/pages/AgentTestChatPage.js +176 -0
  56. package/dist/botlit/pages/AgentTestChatPage.js.map +1 -0
  57. package/dist/botlit/pages/AgentsListPage.js +2 -2
  58. package/dist/botlit/pages/AgentsListPage.js.map +1 -1
  59. package/dist/botlit/pages/BotDetailPage.js +398 -447
  60. package/dist/botlit/pages/BotDetailPage.js.map +1 -1
  61. package/dist/botlit/pages/ChatPage.js +19 -12
  62. package/dist/botlit/pages/ChatPage.js.map +1 -1
  63. package/dist/botlit/pages/SettingsPage.d.ts +7 -0
  64. package/dist/botlit/pages/SettingsPage.js +120 -85
  65. package/dist/botlit/pages/SettingsPage.js.map +1 -1
  66. package/dist/botlit/pages/index.d.ts +1 -0
  67. package/dist/botlit/utils/botRouting.d.ts +42 -0
  68. package/dist/botlit/utils/botRouting.js +52 -0
  69. package/dist/botlit/utils/botRouting.js.map +1 -0
  70. package/dist/generated/wspace-operations.js +41 -43
  71. package/dist/generated/wspace-operations.js.map +1 -1
  72. 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 te } from "../permissions/useBotmanorPermissions.js";
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, useDeleteAgent as de, useLoadAgentUsage as fe, useUpdateAgent as pe } from "../hooks/useAgents.js";
19
- import { useKnowledgeBases as me } from "../hooks/useKnowledgeBases.js";
20
- import { useMCPServers as he } from "../hooks/useMCPServers.js";
21
- import { useBotlit as ge } from "../providers/BotlitProvider.js";
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 _e } from "../utils/cn.js";
24
- import { agentDeleteMessage as ve } from "../utils/agentDelete.js";
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 ye } from "react";
28
- import { GlassCard as be, NextSteps as xe, PagePurpose as Se } from "@burdenoff/fe-libs/ui";
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 Ce } from "react-router";
31
- import { ArrowLeft as we, BarChart3 as Te, BookOpen as v, Brain as y, Edit as Ee, FileText as b, Headset as De, History as Oe, MessageSquare as ke, Play as x, Settings as S, Share2 as C, Shield as w, ShieldCheck as Ae, Trash2 as je, Wrench as T } from "lucide-react";
32
- import { toast as E } from "sonner";
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 Me = "🤖", D = {
38
+ var Re = "🤖", E = {
35
39
  key: "activate",
36
40
  to: "ACTIVE",
37
41
  variant: "default",
38
42
  confirm: !1
39
- }, O = {
43
+ }, D = {
40
44
  key: "resume",
41
45
  to: "ACTIVE",
42
46
  variant: "default",
43
47
  confirm: !1
44
- }, k = {
48
+ }, O = {
45
49
  key: "pause",
46
50
  to: "PAUSED",
47
51
  variant: "outline",
48
52
  confirm: !0
49
- }, A = {
53
+ }, k = {
50
54
  key: "archive",
51
55
  to: "ARCHIVED",
52
56
  variant: "outline",
53
57
  confirm: !0
54
- }, Ne = {
55
- DRAFT: [D, A],
56
- ACTIVE: [k, A],
57
- PAUSED: [O, A],
58
- TRAINING: [k, A],
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
- }, 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, z = R.data, Ve = ae(), B = k ? `bots/${k}/agents` : "agents";
67
- if (Pe) return /* @__PURE__ */ g(t, {
68
- title: D("botlit.common.loading", "Loading..."),
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": D("botlit.common.loading", "Loading..."),
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 (N) return /* @__PURE__ */ g(t, {
77
- title: D("botlit.agentDetail.errorTitle", "Agent"),
78
- children: /* @__PURE__ */ g(ne, {
79
- resource: D("botlit.agentDetail.resource", "this agent"),
80
- error: N,
81
- onRetry: () => void P()
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 (!M) return /* @__PURE__ */ g(t, {
85
- title: D("botlit.agentDetail.notFound.title", "Agent Not Found"),
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: D("botlit.agentDetail.notFound.title", "Agent Not Found"),
89
- description: D("botlit.agentDetail.notFound.description", "The agent you're looking for doesn't exist."),
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: () => A(B),
92
- children: D("botlit.agentDetail.notFound.backAction", "Back to Agents")
95
+ onClick: () => k(B),
96
+ children: E("botlit.agentDetail.notFound.backAction", "Back to Agents")
93
97
  })
94
98
  })
95
99
  });
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) => {
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
- }) : [], 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 = (() => {
108
- switch (M.status) {
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 ? 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.");
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.");
112
- case "TRAINING": return D("botlit.agentDetail.reason.training", "This agent is in training and does not answer bots or other agents yet.");
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.");
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: D("botlit.agentDetail.actions.activate", "Activate"),
120
- success: D("botlit.agentDetail.activate.success", "Agent \"{{name}}\" activated", { name: t }),
121
- error: D("botlit.agentDetail.activate.error", "Failed to activate agent")
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: D("botlit.agentDetail.actions.resume", "Resume"),
125
- success: D("botlit.agentDetail.resume.success", "Agent \"{{name}}\" resumed", { name: t }),
126
- error: D("botlit.agentDetail.resume.error", "Failed to resume agent")
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: D("botlit.agentDetail.actions.pause", "Pause"),
130
- success: D("botlit.agentDetail.pause.success", "Agent \"{{name}}\" paused", { name: t }),
131
- error: D("botlit.agentDetail.pause.error", "Failed to pause agent"),
132
- confirmTitle: D("botlit.agentDetail.pause.confirmTitle", "Pause agent?"),
133
- confirmMessage: D("botlit.agentDetail.pause.confirmMessage", "Pause \"{{name}}\"? It stops answering bots and other agents until you resume it.", { name: t })
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: D("botlit.agentDetail.actions.archive", "Archive"),
137
- success: D("botlit.agentDetail.archive.success", "Agent \"{{name}}\" archived", { name: t }),
138
- error: D("botlit.agentDetail.archive.error", "Failed to archive agent"),
139
- confirmTitle: D("botlit.agentDetail.archive.confirmTitle", "Archive agent?"),
140
- confirmMessage: D("botlit.agentDetail.archive.confirmMessage", "Archive \"{{name}}\"? It stops answering bots and other agents. You can restore it later.", { name: t })
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: D("botlit.agentDetail.actions.restore", "Restore"),
144
- success: D("botlit.agentDetail.restore.success", "Agent \"{{name}}\" restored as a draft", { name: t }),
145
- error: D("botlit.agentDetail.restore.error", "Failed to restore agent")
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
- }, qe = async (e) => {
149
- if (!O) return;
150
- let t = $(e.key, M.name);
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: D("botlit.common.cancel", "Cancel")
159
+ cancelLabel: E("botlit.common.cancel", "Cancel")
156
160
  }))) try {
157
- await Fe({
158
- agentId: O,
161
+ await P({
162
+ agentId: D,
159
163
  input: { status: e.to }
160
- }), await P(), E.success(t.success);
164
+ }), await N(), T.success(t.success);
161
165
  } catch (e) {
162
- E.error(e instanceof Error ? e.message : t.error);
166
+ T.error(e instanceof Error ? e.message : t.error);
163
167
  }
164
- }, Je = async () => {
165
- if (!O) return;
166
- let e = await ze(O).catch(() => null), t = ve(D, M.name, e);
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: D("botlit.agentsList.delete.title", "Delete agent?"),
172
+ title: E("botlit.agentsList.delete.title", "Delete agent?"),
169
173
  message: t,
170
- confirmLabel: D("botlit.agentsList.delete.okButton", "Delete"),
171
- cancelLabel: D("botlit.agentsList.delete.cancelButton", "Cancel")
174
+ confirmLabel: E("botlit.agentsList.delete.okButton", "Delete"),
175
+ cancelLabel: E("botlit.agentsList.delete.cancelButton", "Cancel")
172
176
  })) try {
173
- if (!await Le(O)) {
174
- E.error(D("botlit.agentDetail.delete.error", "Failed to delete agent"));
177
+ if (!await He(D)) {
178
+ T.error(E("botlit.agentDetail.delete.error", "Failed to delete agent"));
175
179
  return;
176
180
  }
177
- E.success(D("botlit.agentDetail.delete.success", "Agent \"{{name}}\" deleted successfully", { name: M.name })), A(B);
181
+ T.success(E("botlit.agentDetail.delete.success", "Agent \"{{name}}\" deleted successfully", { name: j.name })), k(B);
178
182
  } catch (e) {
179
- E.error(e instanceof Error ? e.message : D("botlit.agentDetail.delete.error", "Failed to delete agent"));
183
+ T.error(e instanceof Error ? e.message : E("botlit.agentDetail.delete.error", "Failed to delete agent"));
180
184
  }
181
- }, Ye = [
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: D("botlit.agentDetail.tabs.overview", "Overview"),
190
- icon: /* @__PURE__ */ g(Te, { size: 16 })
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: D("botlit.agentDetail.tabs.prompt", "Prompt"),
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: D("botlit.agentDetail.tabs.llmConfig", "LLM Config"),
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: D("botlit.agentDetail.tabs.tools", "Tools"),
205
- icon: /* @__PURE__ */ g(T, { size: 16 })
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: D("botlit.agentDetail.tabs.knowledge", "Knowledge"),
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: D("botlit.agentDetail.tabs.guardrails", "Guardrails"),
215
- icon: /* @__PURE__ */ g(w, { size: 16 })
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: D("botlit.agentDetail.tabs.handoff", "Handoff"),
220
- icon: /* @__PURE__ */ g(De, { size: 16 })
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: D("botlit.agentDetail.tabs.aiOperations", "AI Operations"),
225
- icon: /* @__PURE__ */ g(Ae, { size: 16 })
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: D("botlit.agentDetail.tabs.a2a", "A2A"),
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: D("botlit.agentDetail.tabs.versions", "Versions"),
235
- icon: /* @__PURE__ */ g(Oe, { size: 16 })
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: M.name,
243
+ title: j.name,
240
244
  leading: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(c, {
241
245
  variant: "ghost",
242
246
  size: "icon",
243
- "aria-label": D("botlit.agentDetail.back", "Back to agents"),
244
- onClick: () => A(B),
245
- children: /* @__PURE__ */ g(we, {
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: M.avatar || Me
256
+ children: j.avatar || Re
253
257
  })] }),
254
- meta: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(u, { status: M.status }), /* @__PURE__ */ g(l, {
258
+ meta: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(u, { status: j.status }), /* @__PURE__ */ g(l, {
255
259
  variant: "outline",
256
- children: M.slug
260
+ children: j.slug
257
261
  })] }),
258
- description: M.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: D("botlit.agentApproval.requestAction", "Request activation")
273
- }) : (Ne[M.status] ?? []).map((e) => /* @__PURE__ */ g(c, {
276
+ children: E("botlit.agentApproval.requestAction", "Request activation")
277
+ }) : (ze[j.status] ?? []).map((e) => /* @__PURE__ */ g(c, {
274
278
  variant: e.variant,
275
- isLoading: Ie.loading,
276
- onClick: () => void qe(e),
277
- children: $(e.key, M.name).label
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(Ee, { size: 16 }),
285
- onClick: () => A(k ? `bots/${k}/agents/${O}/edit` : `agents/${O}/edit`),
286
- children: D("botlit.agentDetail.actions.editAgent", "Edit Agent")
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: () => A(`chat/${O}`),
294
- children: D("botlit.agentDetail.actions.testAgent", "Test Agent")
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(je, { size: 16 }),
302
- isLoading: Re.loading,
303
- onClick: () => void Je(),
304
- children: D("botlit.common.delete", "Delete")
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
- Ke && /* @__PURE__ */ g("div", {
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: Ke
318
+ children: $e
315
319
  }),
316
- We.length > 0 && /* @__PURE__ */ _("div", {
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: D("botlit.agentDetail.knowledgeWarning.title", "This agent cannot answer right now: a knowledge base it uses cannot be searched.")
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: 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}}.", {
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: D(`botlit.status.${e.status.toLowerCase()}`, e.status.toLowerCase())
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" && O && /* @__PURE__ */ _("div", {
338
+ F === "assistant" && D && /* @__PURE__ */ _("div", {
335
339
  className: "space-y-5",
336
340
  children: [
337
- j(d.AGENT_UPDATE) && /* @__PURE__ */ g(oe, {
338
- agentId: O,
339
- onConfigured: () => void P()
341
+ A(d.AGENT_UPDATE) && /* @__PURE__ */ g(oe, {
342
+ agentId: D,
343
+ onConfigured: () => void N()
340
344
  }),
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", {
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: D("botlit.agentDetail.assistant.readOnly", "Assistant setup and publishing are available to members who can edit or publish agents in this workspace.")
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(Se, {
356
+ /* @__PURE__ */ g(De, {
353
357
  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.")
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: Ye.map((e) => /* @__PURE__ */ _("button", {
362
+ children: nt.map((e) => /* @__PURE__ */ _("button", {
359
363
  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"),
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(xe, {
368
- storageKey: `botlit-agent-${O}`,
371
+ /* @__PURE__ */ g(Ee, {
372
+ storageKey: `botlit-agent-${D}`,
369
373
  steps: [
370
374
  {
371
375
  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."),
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: () => A(`chat/${O}`)
379
+ onClick: () => k(`agents/${D}/test`)
376
380
  },
377
381
  {
378
382
  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."),
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: 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 }),
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: 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."),
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: () => A(`agents/${O}/edit`),
397
- done: M.status === "ACTIVE"
400
+ onClick: () => k(`agents/${D}/edit`),
401
+ done: j.status === "ACTIVE"
398
402
  }
399
403
  ]
400
404
  }),
401
- O && /* @__PURE__ */ g(ie, {
402
- agentId: O,
403
- agentStatus: M.status,
404
- onChanged: () => void P()
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: M.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: M.type
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: M.visibility
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 font-mono text-sm",
437
- children: H || "Not configured"
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: [U.length, " servers"]
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: [W.length, " KBs"]
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: J
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: M.executionCount ?? 0
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(M.createdAt)
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(M.updatedAt)
483
+ children: p(j.updatedAt)
480
484
  })] })
481
485
  ]
482
486
  })]
483
487
  }),
484
- /* @__PURE__ */ _(be, {
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: D("botlit.agentDetail.capabilities.title", "Capabilities")
491
- }), /* @__PURE__ */ g("div", { children: K.length > 0 ? /* @__PURE__ */ g("div", {
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: K.map((e) => /* @__PURE__ */ _("div", {
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: D("botlit.agentDetail.capabilities.enabled", "Enabled")
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: D("botlit.agentDetail.capabilities.empty", "No capabilities configured")
509
+ children: E("botlit.agentDetail.capabilities.empty", "No capabilities configured")
506
510
  }) })]
507
511
  }),
508
- q.length > 0 && /* @__PURE__ */ _(r, {
512
+ /* @__PURE__ */ _(r, {
509
513
  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))
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 }), 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, {
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: D("botlit.agentDetail.prompt.empty", "No system prompt configured")
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 }), D("botlit.agentDetail.llm.title", "Model Configuration")]
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 ID"
557
+ children: "LLM Model"
549
558
  }), /* @__PURE__ */ g("p", {
550
- className: "font-medium font-mono",
551
- children: H || "Not configured"
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: He ?? "Default"
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: Ue ?? "Default"
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(ke, { size: 18 }), D("botlit.agentDetail.executionLimits.title", "Execution Limits")]
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: J
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: M.executionCount ?? 0
595
+ children: j.executionCount ?? 0
587
596
  })] }),
588
- M.lastExecutedAt && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
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(M.lastExecutedAt)
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(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", {
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: U.map((e) => /* @__PURE__ */ _("div", {
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(T, {
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: Ge(e, Z, L, "botlit.agentDetail.tools.unavailable")
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: [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, {
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: G.map((e) => /* @__PURE__ */ g("div", {
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: W.length > 0 ? /* @__PURE__ */ g("div", {
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: W.map((e, t) => /* @__PURE__ */ _("div", {
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: Ge(e, Q, R, "botlit.agentDetail.knowledge.unavailable")
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: [D("botlit.agentDetail.knowledge.none", "No knowledge bases connected."), j(d.AGENT_UPDATE) && ` ${D("botlit.agentDetail.knowledge.attachHint", "Attach knowledge bases from Edit Agent.")}`]
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" && O && /* @__PURE__ */ g("div", {
672
+ F === "handoff" && D && /* @__PURE__ */ g("div", {
664
673
  className: "mx-auto w-full max-w-3xl",
665
- children: /* @__PURE__ */ g(n, { agentId: O })
674
+ children: /* @__PURE__ */ g(n, { agentId: D })
666
675
  }),
667
- F === "guardrails" && /* @__PURE__ */ _(r, { children: [/* @__PURE__ */ _(o, { children: [/* @__PURE__ */ _(s, {
668
- className: "flex items-center gap-2",
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: O
680
+ subjectId: D
690
681
  },
691
- description: D("botlit.agentDetail.aiOperationsDescription", "What the supervisor flagged for this agent — drift, evidence and the recommended action.")
682
+ description: E("botlit.agentDetail.aiOperationsDescription", "What the supervisor flagged for this agent — drift, evidence and the recommended action.")
692
683
  }),
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()
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 { j as AgentDetailPage };
701
+ export { A as AgentDetailPage };
712
702
 
713
703
  //# sourceMappingURL=AgentDetailPage.js.map