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