@burdenoff/microfe-botmanor 2026.1026.1 → 2026.1027.2

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