@burdenoff/microfe-botmanor 2026.1203.4 → 2026.1203.6

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 (135) hide show
  1. package/dist/botlit/BotlitRoutes.js +0 -1
  2. package/dist/botlit/BotlitRoutes.js.map +1 -1
  3. package/dist/botlit/components/A2ACardVerificationCard.js +0 -1
  4. package/dist/botlit/components/A2ACardVerificationCard.js.map +1 -1
  5. package/dist/botlit/components/AgentA2APanel.js +20 -21
  6. package/dist/botlit/components/AgentA2APanel.js.map +1 -1
  7. package/dist/botlit/components/AgentApprovalPanel.js +22 -23
  8. package/dist/botlit/components/AgentApprovalPanel.js.map +1 -1
  9. package/dist/botlit/components/AgentBindingsPanel.js +66 -68
  10. package/dist/botlit/components/AgentBindingsPanel.js.map +1 -1
  11. package/dist/botlit/components/AiOperationsPanel.js +34 -35
  12. package/dist/botlit/components/AiOperationsPanel.js.map +1 -1
  13. package/dist/botlit/components/BotAgentsPanel.js +59 -60
  14. package/dist/botlit/components/BotAgentsPanel.js.map +1 -1
  15. package/dist/botlit/components/BotVersionHistoryPanel.js +19 -20
  16. package/dist/botlit/components/BotVersionHistoryPanel.js.map +1 -1
  17. package/dist/botlit/components/BucketDialogs.js +0 -1
  18. package/dist/botlit/components/BucketDialogs.js.map +1 -1
  19. package/dist/botlit/components/ChannelRoutesPanel.js +82 -84
  20. package/dist/botlit/components/ChannelRoutesPanel.js.map +1 -1
  21. package/dist/botlit/components/CreateChannelRouteDialog.js +4 -5
  22. package/dist/botlit/components/CreateChannelRouteDialog.js.map +1 -1
  23. package/dist/botlit/components/DescribeBotDialog.js +0 -1
  24. package/dist/botlit/components/DescribeBotDialog.js.map +1 -1
  25. package/dist/botlit/components/GettingStartedChecklist.js +9 -10
  26. package/dist/botlit/components/GettingStartedChecklist.js.map +1 -1
  27. package/dist/botlit/components/HandoffConfigPanel.js +0 -1
  28. package/dist/botlit/components/HandoffConfigPanel.js.map +1 -1
  29. package/dist/botlit/components/RetentionStatusPanel.js +10 -12
  30. package/dist/botlit/components/RetentionStatusPanel.js.map +1 -1
  31. package/dist/botlit/components/StewardApprovalsInbox.js +201 -212
  32. package/dist/botlit/components/StewardApprovalsInbox.js.map +1 -1
  33. package/dist/botlit/components/StoreOwnPackagesCard.js +21 -22
  34. package/dist/botlit/components/StoreOwnPackagesCard.js.map +1 -1
  35. package/dist/botlit/components/StorePackageDraftCard.js +38 -39
  36. package/dist/botlit/components/StorePackageDraftCard.js.map +1 -1
  37. package/dist/botlit/components/StorePolicyBundleCard.js +27 -29
  38. package/dist/botlit/components/StorePolicyBundleCard.js.map +1 -1
  39. package/dist/botlit/components/StoreSubmissionsCard.js +64 -65
  40. package/dist/botlit/components/StoreSubmissionsCard.js.map +1 -1
  41. package/dist/botlit/components/VersionHistoryPanel.js +18 -19
  42. package/dist/botlit/components/VersionHistoryPanel.js.map +1 -1
  43. package/dist/botlit/hooks/internal/workspaceGateway.d.ts +6 -0
  44. package/dist/botlit/hooks/internal/workspaceGateway.js +40 -40
  45. package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
  46. package/dist/botlit/hooks/useChannels.js +2 -0
  47. package/dist/botlit/hooks/useChannels.js.map +1 -1
  48. package/dist/botlit/hooks/useToolApprovals.d.ts +8 -3
  49. package/dist/botlit/hooks/useToolApprovals.js +68 -73
  50. package/dist/botlit/hooks/useToolApprovals.js.map +1 -1
  51. package/dist/botlit/pages/A2AAgentDetailPage.js +331 -332
  52. package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
  53. package/dist/botlit/pages/A2ARegistryPage.js +39 -41
  54. package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
  55. package/dist/botlit/pages/AgentApprovalsPage.js +24 -25
  56. package/dist/botlit/pages/AgentApprovalsPage.js.map +1 -1
  57. package/dist/botlit/pages/AgentBuilderPage.js +470 -471
  58. package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
  59. package/dist/botlit/pages/AgentDetailPage.js +68 -69
  60. package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
  61. package/dist/botlit/pages/AgentsListPage.js +277 -278
  62. package/dist/botlit/pages/AgentsListPage.js.map +1 -1
  63. package/dist/botlit/pages/AiOperationsPage.js +44 -46
  64. package/dist/botlit/pages/AiOperationsPage.js.map +1 -1
  65. package/dist/botlit/pages/BotChannelsTab.js +354 -356
  66. package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
  67. package/dist/botlit/pages/BotDetailPage.js +138 -139
  68. package/dist/botlit/pages/BotDetailPage.js.map +1 -1
  69. package/dist/botlit/pages/BotWorkflowTab.js +23 -24
  70. package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
  71. package/dist/botlit/pages/BotsListPage.js +32 -33
  72. package/dist/botlit/pages/BotsListPage.js.map +1 -1
  73. package/dist/botlit/pages/BucketDetailPage.js +110 -112
  74. package/dist/botlit/pages/BucketDetailPage.js.map +1 -1
  75. package/dist/botlit/pages/BucketsPage.js +115 -117
  76. package/dist/botlit/pages/BucketsPage.js.map +1 -1
  77. package/dist/botlit/pages/ChannelDetailPage.js +105 -107
  78. package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
  79. package/dist/botlit/pages/ChannelsPage.js +38 -40
  80. package/dist/botlit/pages/ChannelsPage.js.map +1 -1
  81. package/dist/botlit/pages/DashboardPage.js +26 -27
  82. package/dist/botlit/pages/DashboardPage.js.map +1 -1
  83. package/dist/botlit/pages/ExecutionDetailPage.js +70 -71
  84. package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
  85. package/dist/botlit/pages/ExecutionsPage.js +219 -220
  86. package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
  87. package/dist/botlit/pages/HandoffsPage.js +208 -210
  88. package/dist/botlit/pages/HandoffsPage.js.map +1 -1
  89. package/dist/botlit/pages/InstalledPackagesPage.js +179 -181
  90. package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
  91. package/dist/botlit/pages/KnowledgeBaseDetailPage.js +194 -195
  92. package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
  93. package/dist/botlit/pages/KnowledgeBasesPage.js +38 -39
  94. package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
  95. package/dist/botlit/pages/MCPServerDetailPage.js +178 -180
  96. package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
  97. package/dist/botlit/pages/MCPServersPage.js +42 -43
  98. package/dist/botlit/pages/MCPServersPage.js.map +1 -1
  99. package/dist/botlit/pages/PoliciesPage.js +77 -78
  100. package/dist/botlit/pages/PoliciesPage.js.map +1 -1
  101. package/dist/botlit/pages/PolicyDetailPage.js +517 -519
  102. package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
  103. package/dist/botlit/pages/PromptStudioPage.js +81 -83
  104. package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
  105. package/dist/botlit/pages/PromptTemplateDetailPage.js +137 -139
  106. package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
  107. package/dist/botlit/pages/PromptTemplatesPage.js +28 -30
  108. package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
  109. package/dist/botlit/pages/RetrievalProfileDetailPage.js +64 -65
  110. package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
  111. package/dist/botlit/pages/RetrievalProfilesPage.js +59 -60
  112. package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
  113. package/dist/botlit/pages/SettingsPage.js +30 -31
  114. package/dist/botlit/pages/SettingsPage.js.map +1 -1
  115. package/dist/botlit/pages/SkillDetailPage.js +205 -207
  116. package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
  117. package/dist/botlit/pages/SkillsPage.js +68 -69
  118. package/dist/botlit/pages/SkillsPage.js.map +1 -1
  119. package/dist/botlit/pages/StorePackageDetailPage.js +39 -41
  120. package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
  121. package/dist/botlit/pages/StorePage.js +169 -171
  122. package/dist/botlit/pages/StorePage.js.map +1 -1
  123. package/dist/botlit/pages/ToolApprovalsPage.js +61 -62
  124. package/dist/botlit/pages/ToolApprovalsPage.js.map +1 -1
  125. package/dist/generated/global-types.d.ts +540 -171
  126. package/dist/generated/global-types.js.map +1 -1
  127. package/dist/generated/wspace-operations.d.ts +38 -4
  128. package/dist/generated/wspace-operations.js.map +1 -1
  129. package/dist/generated/wspace-types.d.ts +9539 -686
  130. package/dist/generated/wspace-types.js.map +1 -1
  131. package/dist/index.js +0 -1
  132. package/package.json +4 -1
  133. package/dist/botlit/hooks/index.js +0 -21
  134. package/dist/botlit/index.js +0 -12
  135. package/dist/botlit/permissions/index.js +0 -4
@@ -5,9 +5,7 @@ import { Card as ee, CardContent as a } from "../components/Card.js";
5
5
  import { Button as o } from "../components/Button.js";
6
6
  import { Input as s } from "../components/Input.js";
7
7
  import { Badge as te, StatusBadge as ne } from "../components/Badge.js";
8
- import { BOTMANOR_PERMISSIONS as c } from "../permissions/botmanorPermissions.js";
9
- import { BotmanorPermissionGate as l, useBotmanorCan as u } from "../permissions/useBotmanorPermissions.js";
10
- import { EmptyState as d } from "../components/EmptyState.js";
8
+ import { EmptyState as c } from "../components/EmptyState.js";
11
9
  import { ErrorState as re } from "../components/ErrorState.js";
12
10
  import { LoadMore as ie } from "../components/LoadMore.js";
13
11
  import { ActionMenu as ae } from "../components/ActionMenu.js";
@@ -17,30 +15,31 @@ import { useBotAgentLinks as fe, useLinkAgentToBot as pe, useUnlinkAgentFromBot
17
15
  import { useBotlitStore as he } from "../store/botlitStore.js";
18
16
  import { useBotlit as ge } from "../providers/BotlitProvider.js";
19
17
  import { agentDeleteMessage as _e } from "../utils/agentDelete.js";
20
- import { confirmAction as f } from "../utils/confirmAction.js";
21
- import { formatNumber as p, formatRelativeTime as m } from "../utils/formatters.js";
22
- import { cn as h } from "../utils/cn.js";
23
- import "../permissions/index.js";
24
- import { useEffect as g, useState as _ } from "react";
25
- import { GlassCard as ve, PagePurpose as ye, ThemedSelect as v } from "@burdenoff/fe-libs/ui";
26
- import { jsx as y, jsxs as b } from "react/jsx-runtime";
27
- import { Link as be, useParams as xe } from "react-router";
28
- import { Bot as Se, Edit as Ce, Grid3X3 as we, List as Te, MessageSquare as Ee, Play as x, Plus as De, Search as Oe, ShieldCheck as ke, Star as Ae, Trash2 as je, Unlink as Me } from "lucide-react";
29
- import { toast as S } from "sonner";
18
+ import { confirmAction as l } from "../utils/confirmAction.js";
19
+ import { formatNumber as u, formatRelativeTime as ve } from "../utils/formatters.js";
20
+ import { cn as d } from "../utils/cn.js";
21
+ import { BOTMANOR_PERMISSIONS as f } from "../permissions/botmanorPermissions.js";
22
+ import { BotmanorPermissionGate as p, useBotmanorCan as ye } from "../permissions/useBotmanorPermissions.js";
23
+ import { useEffect as m, useState as h } from "react";
24
+ import { GlassCard as g, PagePurpose as be, ThemedSelect as _ } from "@burdenoff/fe-libs/ui";
25
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
26
+ import { Link as xe, useParams as Se } from "react-router";
27
+ import { Bot as Ce, Edit as we, Grid3X3 as Te, List as Ee, MessageSquare as De, Play as b, Plus as Oe, Search as ke, ShieldCheck as Ae, Star as je, Trash2 as Me, Unlink as Ne } from "lucide-react";
28
+ import { toast as x } from "sonner";
30
29
  // src/botlit/pages/AgentsListPage.tsx
31
- var C = "🤖", Ne = 300, w = [
30
+ var Pe = "🤖", Fe = 300, Ie = [
32
31
  "DRAFT",
33
32
  "ACTIVE",
34
33
  "PAUSED",
35
34
  "TRAINING",
36
35
  "ARCHIVED"
37
- ], T = [
36
+ ], Le = [
38
37
  "newest",
39
38
  "oldest",
40
39
  "name",
41
40
  "runs"
42
- ], E = "h-10 rounded-md border border-border-default bg-bg-surface px-3 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", Pe = "after:absolute after:inset-0 after:content-[\"\"] focus-visible:outline-none focus-visible:after:ring-2 focus-visible:after:ring-primary focus-visible:after:rounded-lg";
43
- function Fe(e, t) {
41
+ ], S = "h-10 rounded-md border border-border-default bg-bg-surface px-3 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", Re = "after:absolute after:inset-0 after:content-[\"\"] focus-visible:outline-none focus-visible:after:ring-2 focus-visible:after:ring-primary focus-visible:after:rounded-lg";
42
+ function ze(e, t) {
44
43
  let n = (e) => e ? Date.parse(e) : 0, r = [...e];
45
44
  switch (t) {
46
45
  case "oldest": return r.sort((e, t) => n(e.createdAt) - n(t.createdAt));
@@ -49,266 +48,266 @@ function Fe(e, t) {
49
48
  default: return r;
50
49
  }
51
50
  }
52
- var D = () => {
53
- let D = r(), O = u(), { botId: k } = xe(), { navigateTo: A, getPath: Ie } = ge(), { viewMode: j, setViewMode: M, agentFilter: N, updateAgentFilter: P } = he(), { data: F, loading: Le, error: I, refetch: L, hasMore: R, loadingMore: z, loadMore: B } = se(N), Re = oe(), [ze] = ce(), Be = le(), { data: V, loading: Ve, error: He, refetch: H } = ue(k), U = fe(k), [Ue] = pe(), [We] = me(), [W] = de(), [G, Ge] = _(""), [K, Ke] = _(N.search ?? ""), [qe, Je] = _("newest"), q = (N.search ?? "").trim(), Ye = N.status?.[0] ?? "";
54
- g(() => {
55
- k && R && !z && !I && B();
51
+ var C = () => {
52
+ let C = r(), w = ye(), { botId: T } = Se(), { navigateTo: E, getPath: Be } = ge(), { viewMode: D, setViewMode: Ve, agentFilter: O, updateAgentFilter: k } = he(), { data: A, loading: He, error: j, refetch: M, hasMore: N, loadingMore: P, loadMore: F } = se(O), I = oe(), [Ue] = ce(), We = le(), { data: L, loading: Ge, error: Ke, refetch: R } = ue(T), z = fe(T), [qe] = pe(), [Je] = me(), [B] = de(), [V, H] = h(""), [U, W] = h(O.search ?? ""), [G, Ye] = h("newest"), K = (O.search ?? "").trim(), q = O.status?.[0] ?? "";
53
+ m(() => {
54
+ T && N && !P && !j && F();
56
55
  }, [
57
- k,
58
- R,
59
- z,
60
- I,
61
- B
62
- ]), g(() => {
63
- if (K === (N.search ?? "")) return;
64
- let e = window.setTimeout(() => P({ search: K }), Ne);
56
+ T,
57
+ N,
58
+ P,
59
+ j,
60
+ F
61
+ ]), m(() => {
62
+ if (U === (O.search ?? "")) return;
63
+ let e = window.setTimeout(() => k({ search: U }), Fe);
65
64
  return () => window.clearTimeout(e);
66
65
  }, [
67
- K,
68
- N.search,
69
- P
66
+ U,
67
+ O.search,
68
+ k
70
69
  ]);
71
- let Xe = Le || !!k && (U.loading || Ve || R || z), J = I ?? (k ? U.error ?? He : void 0), Ze = (e, t = "") => k ? `bots/${k}/agents/${e}${t}` : `agents/${e}${t}`, Y = new Set(U.data.map((e) => e.agentId));
72
- V?.defaultAgentId && Y.add(V.defaultAgentId);
73
- let Qe = k ? F.filter((e) => Y.has(e.id)) : F, X = Fe(Qe, qe), $e = q !== "" || Ye !== "", Z = k ? F.filter((e) => !Y.has(e.id)) : [], et = () => {
74
- Ke(""), P({
70
+ let J = He || !!T && (z.loading || Ge || N || P), Y = j ?? (T ? z.error ?? Ke : void 0), Xe = (e, t = "") => T ? `bots/${T}/agents/${e}${t}` : `agents/${e}${t}`, X = new Set(z.data.map((e) => e.agentId));
71
+ L?.defaultAgentId && X.add(L.defaultAgentId);
72
+ let Ze = T ? A.filter((e) => X.has(e.id)) : A, Z = ze(Ze, G), Qe = K !== "" || q !== "", Q = T ? A.filter((e) => !X.has(e.id)) : [], $e = () => {
73
+ W(""), k({
75
74
  search: "",
76
75
  status: void 0
77
76
  });
78
- }, tt = async (r) => {
79
- let i = await Be(r.id).catch(() => null);
80
- if (await f({
81
- title: D("botlit.agentsList.delete.title", "Delete agent?"),
82
- message: _e(D, r.name, i),
83
- confirmLabel: D("botlit.agentsList.delete.okButton", "Delete"),
84
- cancelLabel: D("botlit.agentsList.delete.cancelButton", "Cancel")
77
+ }, et = async (r) => {
78
+ let i = await We(r.id).catch(() => null);
79
+ if (await l({
80
+ title: C("botlit.agentsList.delete.title", "Delete agent?"),
81
+ message: _e(C, r.name, i),
82
+ confirmLabel: C("botlit.agentsList.delete.okButton", "Delete"),
83
+ cancelLabel: C("botlit.agentsList.delete.cancelButton", "Cancel")
85
84
  })) {
86
85
  t("medium");
87
86
  try {
88
- if (!await ze(r.id)) {
89
- S.error(D("botlit.agentsList.delete.notDeleted", "The agent could not be deleted.")), e() && n("error");
87
+ if (!await Ue(r.id)) {
88
+ x.error(C("botlit.agentsList.delete.notDeleted", "The agent could not be deleted.")), e() && n("error");
90
89
  return;
91
90
  }
92
- S.success(D("botlit.agentsList.delete.success", "Agent \"{{name}}\" deleted successfully", { name: r.name })), e() && n("success"), await L(), Re.refetch(), U.refetch(), H();
91
+ x.success(C("botlit.agentsList.delete.success", "Agent \"{{name}}\" deleted successfully", { name: r.name })), e() && n("success"), await M(), I.refetch(), z.refetch(), R();
93
92
  } catch (t) {
94
- S.error(t instanceof Error ? t.message : D("botlit.agentsList.delete.error", "Failed to delete agent")), e() && n("error");
93
+ x.error(t instanceof Error ? t.message : C("botlit.agentsList.delete.error", "Failed to delete agent")), e() && n("error");
95
94
  }
96
95
  }
97
- }, nt = async () => {
98
- if (k && G) try {
99
- if (await Ue({
100
- botId: k,
101
- agentId: G
102
- }), Ge(""), await U.refetch(), S.success(D("botlit.agentsList.bot.linked", "Agent linked to this bot")), V && !V.defaultAgentId && O(c.APP_UPDATE)) try {
103
- await W({
104
- botId: k,
105
- input: { defaultAgentId: G }
106
- }), H();
96
+ }, tt = async () => {
97
+ if (T && V) try {
98
+ if (await qe({
99
+ botId: T,
100
+ agentId: V
101
+ }), H(""), await z.refetch(), x.success(C("botlit.agentsList.bot.linked", "Agent linked to this bot")), L && !L.defaultAgentId && w(f.APP_UPDATE)) try {
102
+ await B({
103
+ botId: T,
104
+ input: { defaultAgentId: V }
105
+ }), R();
107
106
  } catch (e) {
108
- S.error(e instanceof Error ? e.message : D("botlit.agentsList.bot.defaultError", "Failed to set the default agent"));
107
+ x.error(e instanceof Error ? e.message : C("botlit.agentsList.bot.defaultError", "Failed to set the default agent"));
109
108
  }
110
109
  } catch (e) {
111
- S.error(e instanceof Error ? e.message : D("botlit.agentsList.bot.linkError", "Failed to link the agent"));
110
+ x.error(e instanceof Error ? e.message : C("botlit.agentsList.bot.linkError", "Failed to link the agent"));
112
111
  }
113
- }, rt = async (e) => {
114
- if (k && await f({
115
- title: D("botlit.agentsList.bot.unlinkTitle", "Remove agent from this bot?"),
116
- message: D("botlit.agentsList.bot.unlinkMessage", "Remove \"{{name}}\" from this bot? The agent itself is kept.", { name: e.name }),
117
- confirmLabel: D("botlit.agentsList.bot.unlinkConfirm", "Remove"),
118
- cancelLabel: D("botlit.common.cancel", "Cancel")
112
+ }, nt = async (e) => {
113
+ if (T && await l({
114
+ title: C("botlit.agentsList.bot.unlinkTitle", "Remove agent from this bot?"),
115
+ message: C("botlit.agentsList.bot.unlinkMessage", "Remove \"{{name}}\" from this bot? The agent itself is kept.", { name: e.name }),
116
+ confirmLabel: C("botlit.agentsList.bot.unlinkConfirm", "Remove"),
117
+ cancelLabel: C("botlit.common.cancel", "Cancel")
119
118
  })) try {
120
- let t = U.data.find((t) => t.agentId === e.id);
121
- if (t && !await We(t.id)) {
122
- S.error(D("botlit.agentsList.bot.unlinkNotDone", "The agent could not be removed from this bot."));
119
+ let t = z.data.find((t) => t.agentId === e.id);
120
+ if (t && !await Je(t.id)) {
121
+ x.error(C("botlit.agentsList.bot.unlinkNotDone", "The agent could not be removed from this bot."));
123
122
  return;
124
123
  }
125
- if (await U.refetch(), S.success(D("botlit.agentsList.bot.unlinked", "Agent removed from this bot")), V?.defaultAgentId === e.id && O(c.APP_UPDATE)) try {
126
- await W({
127
- botId: k,
124
+ if (await z.refetch(), x.success(C("botlit.agentsList.bot.unlinked", "Agent removed from this bot")), L?.defaultAgentId === e.id && w(f.APP_UPDATE)) try {
125
+ await B({
126
+ botId: T,
128
127
  input: { defaultAgentId: null }
129
- }), H();
128
+ }), R();
130
129
  } catch (e) {
131
- S.error(e instanceof Error ? e.message : D("botlit.agentsList.bot.defaultError", "Failed to set the default agent"));
130
+ x.error(e instanceof Error ? e.message : C("botlit.agentsList.bot.defaultError", "Failed to set the default agent"));
132
131
  }
133
132
  } catch (e) {
134
- S.error(e instanceof Error ? e.message : D("botlit.agentsList.bot.unlinkError", "Failed to remove the agent"));
133
+ x.error(e instanceof Error ? e.message : C("botlit.agentsList.bot.unlinkError", "Failed to remove the agent"));
135
134
  }
136
- }, it = async (e) => {
137
- if (k) try {
138
- await W({
139
- botId: k,
135
+ }, rt = async (e) => {
136
+ if (T) try {
137
+ await B({
138
+ botId: T,
140
139
  input: { defaultAgentId: e.id }
141
- }), await H(), S.success(D("botlit.agentsList.bot.defaultSet", "\"{{name}}\" is now this bot's default agent", { name: e.name }));
140
+ }), await R(), x.success(C("botlit.agentsList.bot.defaultSet", "\"{{name}}\" is now this bot's default agent", { name: e.name }));
142
141
  } catch (e) {
143
- S.error(e instanceof Error ? e.message : D("botlit.agentsList.bot.defaultError", "Failed to set the default agent"));
142
+ x.error(e instanceof Error ? e.message : C("botlit.agentsList.bot.defaultError", "Failed to set the default agent"));
144
143
  }
145
- }, at = (e) => {
144
+ }, it = (e) => {
146
145
  let t = [];
147
- O(c.AGENT_EXECUTE) && t.push({
146
+ w(f.AGENT_EXECUTE) && t.push({
148
147
  key: "test",
149
- label: D("botlit.agentsList.menu.testAgent", "Test Agent"),
150
- icon: /* @__PURE__ */ y(x, {
148
+ label: C("botlit.agentsList.menu.testAgent", "Test Agent"),
149
+ icon: /* @__PURE__ */ v(b, {
151
150
  size: 16,
152
151
  "aria-hidden": "true"
153
152
  }),
154
- onSelect: () => A(`agents/${e.id}/test`)
155
- }), O(c.AGENT_UPDATE) && t.push({
153
+ onSelect: () => E(`agents/${e.id}/test`)
154
+ }), w(f.AGENT_UPDATE) && t.push({
156
155
  key: "edit",
157
- label: D("botlit.agentsList.menu.editAgent", "Edit Agent"),
158
- icon: /* @__PURE__ */ y(Ce, {
156
+ label: C("botlit.agentsList.menu.editAgent", "Edit Agent"),
157
+ icon: /* @__PURE__ */ v(we, {
159
158
  size: 16,
160
159
  "aria-hidden": "true"
161
160
  }),
162
- onSelect: () => A(Ze(e.id, "/edit"))
163
- }), k && O(c.APP_UPDATE) && V?.defaultAgentId !== e.id && t.push({
161
+ onSelect: () => E(Xe(e.id, "/edit"))
162
+ }), T && w(f.APP_UPDATE) && L?.defaultAgentId !== e.id && t.push({
164
163
  key: "default",
165
- label: D("botlit.agentsList.bot.setDefault", "Set as default agent"),
166
- icon: /* @__PURE__ */ y(Ae, {
164
+ label: C("botlit.agentsList.bot.setDefault", "Set as default agent"),
165
+ icon: /* @__PURE__ */ v(je, {
167
166
  size: 16,
168
167
  "aria-hidden": "true"
169
168
  }),
170
- onSelect: () => void it(e)
169
+ onSelect: () => void rt(e)
171
170
  });
172
- let n = V?.defaultAgentId === e.id;
173
- return k && O(c.APP_AGENT_DELETE) && (!n || O(c.APP_UPDATE)) && t.push({
171
+ let n = L?.defaultAgentId === e.id;
172
+ return T && w(f.APP_AGENT_DELETE) && (!n || w(f.APP_UPDATE)) && t.push({
174
173
  key: "unlink",
175
- label: D("botlit.agentsList.bot.remove", "Remove from this bot"),
176
- icon: /* @__PURE__ */ y(Me, {
174
+ label: C("botlit.agentsList.bot.remove", "Remove from this bot"),
175
+ icon: /* @__PURE__ */ v(Ne, {
177
176
  size: 16,
178
177
  "aria-hidden": "true"
179
178
  }),
180
- onSelect: () => void rt(e)
181
- }), O(c.AGENT_DELETE) && t.push({
179
+ onSelect: () => void nt(e)
180
+ }), w(f.AGENT_DELETE) && t.push({
182
181
  key: "delete",
183
- label: D("botlit.agentsList.menu.delete", "Delete"),
184
- icon: /* @__PURE__ */ y(je, {
182
+ label: C("botlit.agentsList.menu.delete", "Delete"),
183
+ icon: /* @__PURE__ */ v(Me, {
185
184
  size: 16,
186
185
  "aria-hidden": "true"
187
186
  }),
188
187
  destructive: !0,
189
- onSelect: () => void tt(e)
188
+ onSelect: () => void et(e)
190
189
  }), t;
191
- }, ot = (e) => {
190
+ }, at = (e) => {
192
191
  let t = e ?? 0;
193
- return t === 1 ? D("botlit.common.executionsOne", "{{count}} execution", { count: p(t) }) : D("botlit.common.executionsOther", "{{count}} executions", { count: p(t) });
194
- }, st = k ? `bots/${k}/agents/new` : "agents/new", ct = !Xe && !J && Qe.length === 0 && !$e, lt = /* @__PURE__ */ y(l, {
195
- permission: c.AGENT_CREATE,
196
- children: /* @__PURE__ */ y(o, {
197
- leftIcon: /* @__PURE__ */ y(De, { size: 16 }),
198
- onClick: () => A(st),
199
- children: D("botlit.agentsList.actions.createAgent", "Create Agent")
192
+ return t === 1 ? C("botlit.common.executionsOne", "{{count}} execution", { count: u(t) }) : C("botlit.common.executionsOther", "{{count}} executions", { count: u(t) });
193
+ }, ot = T ? `bots/${T}/agents/new` : "agents/new", st = !J && !Y && Ze.length === 0 && !Qe, ct = /* @__PURE__ */ v(p, {
194
+ permission: f.AGENT_CREATE,
195
+ children: /* @__PURE__ */ v(o, {
196
+ leftIcon: /* @__PURE__ */ v(Oe, { size: 16 }),
197
+ onClick: () => E(ot),
198
+ children: C("botlit.agentsList.actions.createAgent", "Create Agent")
200
199
  })
201
- }), Q = Re.data, ut = (e) => D(`botlit.status.${e.toLowerCase()}`, e.charAt(0) + e.slice(1).toLowerCase()), dt = {
202
- newest: D("botlit.agentsList.sort.newest", "Newest first"),
203
- oldest: D("botlit.agentsList.sort.oldest", "Oldest first"),
204
- name: D("botlit.agentsList.sort.name", "Name (A to Z)"),
205
- runs: D("botlit.agentsList.sort.runs", "Most executions")
206
- }, $ = (e, t) => {
207
- let n = !!k && V?.defaultAgentId === e.id, r = /* @__PURE__ */ y("h2", {
200
+ }), $ = I.data, lt = (e) => C(`botlit.status.${e.toLowerCase()}`, e.charAt(0) + e.slice(1).toLowerCase()), ut = {
201
+ newest: C("botlit.agentsList.sort.newest", "Newest first"),
202
+ oldest: C("botlit.agentsList.sort.oldest", "Oldest first"),
203
+ name: C("botlit.agentsList.sort.name", "Name (A to Z)"),
204
+ runs: C("botlit.agentsList.sort.runs", "Most executions")
205
+ }, dt = (e, t) => {
206
+ let n = !!T && L?.defaultAgentId === e.id, r = /* @__PURE__ */ v("h2", {
208
207
  className: "font-semibold text-text-primary",
209
- children: /* @__PURE__ */ y(be, {
210
- to: Ie(Ze(e.id)),
211
- className: Pe,
208
+ children: /* @__PURE__ */ v(xe, {
209
+ to: Be(Xe(e.id)),
210
+ className: Re,
212
211
  children: e.name
213
212
  })
214
- }), i = /* @__PURE__ */ b("span", {
213
+ }), i = /* @__PURE__ */ y("span", {
215
214
  className: "flex flex-wrap items-center gap-2",
216
- children: [/* @__PURE__ */ y(ne, { status: e.status }), n && /* @__PURE__ */ y(te, {
215
+ children: [/* @__PURE__ */ v(ne, { status: e.status }), n && /* @__PURE__ */ v(te, {
217
216
  variant: "outline",
218
- children: D("botlit.agentsList.bot.defaultBadge", "Default")
217
+ children: C("botlit.agentsList.bot.defaultBadge", "Default")
219
218
  })]
220
- }), s = /* @__PURE__ */ y("div", {
219
+ }), s = /* @__PURE__ */ v("div", {
221
220
  className: "relative z-10",
222
- children: /* @__PURE__ */ y(ae, {
223
- label: D("botlit.agentsList.menu.actionsFor", "Actions for {{name}}", { name: e.name }),
224
- items: at(e)
221
+ children: /* @__PURE__ */ v(ae, {
222
+ label: C("botlit.agentsList.menu.actionsFor", "Actions for {{name}}", { name: e.name }),
223
+ items: it(e)
225
224
  })
226
- }), u = /* @__PURE__ */ y(l, {
227
- permission: c.AGENT_EXECUTE,
228
- children: /* @__PURE__ */ y(o, {
225
+ }), c = /* @__PURE__ */ v(p, {
226
+ permission: f.AGENT_EXECUTE,
227
+ children: /* @__PURE__ */ v(o, {
229
228
  size: "sm",
230
229
  variant: "ghost",
231
230
  className: "relative z-10",
232
- leftIcon: /* @__PURE__ */ y(x, {
231
+ leftIcon: /* @__PURE__ */ v(b, {
233
232
  size: 14,
234
233
  "aria-hidden": "true"
235
234
  }),
236
- "aria-label": D("botlit.agentsList.card.testFor", "Test {{name}}", { name: e.name }),
237
- onClick: () => A(`agents/${e.id}/test`),
238
- children: D("botlit.agentsList.card.test", "Test")
235
+ "aria-label": C("botlit.agentsList.card.testFor", "Test {{name}}", { name: e.name }),
236
+ onClick: () => E(`agents/${e.id}/test`),
237
+ children: C("botlit.agentsList.card.test", "Test")
239
238
  })
240
239
  });
241
- return t === "grid" ? /* @__PURE__ */ y("li", { children: /* @__PURE__ */ y(ee, {
240
+ return t === "grid" ? /* @__PURE__ */ v("li", { children: /* @__PURE__ */ v(ee, {
242
241
  className: "group relative h-full hover:shadow-md transition-shadow",
243
- children: /* @__PURE__ */ b(a, {
242
+ children: /* @__PURE__ */ y(a, {
244
243
  className: "pt-6",
245
244
  children: [
246
- /* @__PURE__ */ b("div", {
245
+ /* @__PURE__ */ y("div", {
247
246
  className: "flex items-start justify-between",
248
- children: [/* @__PURE__ */ b("div", {
247
+ children: [/* @__PURE__ */ y("div", {
249
248
  className: "flex items-center gap-3",
250
- children: [/* @__PURE__ */ y("span", {
249
+ children: [/* @__PURE__ */ v("span", {
251
250
  className: "text-4xl",
252
251
  "aria-hidden": "true",
253
- children: e.avatar || C
254
- }), /* @__PURE__ */ b("div", { children: [r, /* @__PURE__ */ y("div", {
252
+ children: e.avatar || Pe
253
+ }), /* @__PURE__ */ y("div", { children: [r, /* @__PURE__ */ v("div", {
255
254
  className: "mt-1",
256
255
  children: i
257
256
  })] })]
258
257
  }), s]
259
258
  }),
260
- /* @__PURE__ */ y("p", {
259
+ /* @__PURE__ */ v("p", {
261
260
  className: "mt-3 text-sm text-text-secondary line-clamp-2",
262
261
  children: e.description
263
262
  }),
264
- /* @__PURE__ */ y("div", {
263
+ /* @__PURE__ */ v("div", {
265
264
  className: "mt-4 flex items-center gap-4 text-xs text-text-secondary",
266
- children: /* @__PURE__ */ b("span", {
265
+ children: /* @__PURE__ */ y("span", {
267
266
  className: "flex items-center gap-1",
268
- children: [/* @__PURE__ */ y(Ee, {
267
+ children: [/* @__PURE__ */ v(De, {
269
268
  size: 14,
270
269
  "aria-hidden": "true"
271
- }), ot(e.executionCount)]
270
+ }), at(e.executionCount)]
272
271
  })
273
272
  }),
274
- /* @__PURE__ */ b("div", {
273
+ /* @__PURE__ */ y("div", {
275
274
  className: "mt-3 pt-3 border-t border-border-subtle flex items-center justify-between",
276
- children: [/* @__PURE__ */ b("span", {
275
+ children: [/* @__PURE__ */ y("span", {
277
276
  className: "text-xs text-text-secondary",
278
277
  children: [
279
- D("botlit.agentsList.card.created", "Created"),
278
+ C("botlit.agentsList.card.created", "Created"),
280
279
  " ",
281
- m(e.createdAt)
280
+ ve(e.createdAt)
282
281
  ]
283
- }), u]
282
+ }), c]
284
283
  })
285
284
  ]
286
285
  })
287
- }) }, e.id) : /* @__PURE__ */ y("li", { children: /* @__PURE__ */ y(ee, {
286
+ }) }, e.id) : /* @__PURE__ */ v("li", { children: /* @__PURE__ */ v(ee, {
288
287
  className: "group relative hover:shadow-md transition-shadow",
289
- children: /* @__PURE__ */ y(a, {
288
+ children: /* @__PURE__ */ v(a, {
290
289
  className: "py-4",
291
- children: /* @__PURE__ */ b("div", {
290
+ children: /* @__PURE__ */ y("div", {
292
291
  className: "flex items-center justify-between gap-4",
293
- children: [/* @__PURE__ */ b("div", {
292
+ children: [/* @__PURE__ */ y("div", {
294
293
  className: "flex items-center gap-4",
295
- children: [/* @__PURE__ */ y("span", {
294
+ children: [/* @__PURE__ */ v("span", {
296
295
  className: "text-3xl",
297
296
  "aria-hidden": "true",
298
- children: e.avatar || C
299
- }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("div", {
297
+ children: e.avatar || Pe
298
+ }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y("div", {
300
299
  className: "flex flex-wrap items-center gap-2",
301
300
  children: [r, i]
302
- }), /* @__PURE__ */ y("p", {
301
+ }), /* @__PURE__ */ v("p", {
303
302
  className: "text-sm text-text-secondary line-clamp-1",
304
303
  children: e.description
305
304
  })] })]
306
- }), /* @__PURE__ */ b("div", {
305
+ }), /* @__PURE__ */ y("div", {
307
306
  className: "flex items-center gap-4 text-sm text-text-secondary",
308
307
  children: [
309
- /* @__PURE__ */ y("span", { children: ot(e.executionCount) }),
310
- /* @__PURE__ */ y("span", { children: m(e.createdAt) }),
311
- u,
308
+ /* @__PURE__ */ v("span", { children: at(e.executionCount) }),
309
+ /* @__PURE__ */ v("span", { children: ve(e.createdAt) }),
310
+ c,
312
311
  s
313
312
  ]
314
313
  })]
@@ -316,169 +315,169 @@ var D = () => {
316
315
  })
317
316
  }) }, e.id);
318
317
  };
319
- return /* @__PURE__ */ y(i, {
318
+ return /* @__PURE__ */ v(i, {
320
319
  tourId: "botmanor-agents",
321
- title: k ? D("botlit.agentsList.titleBot", "Bot Agents") : D("botlit.agentsList.title", "All Agents"),
322
- description: k ? D("botlit.agentsList.descriptionBot", "Manage agents for this bot") : D("botlit.agentsList.description", "View and manage all your AI agents"),
323
- actions: /* @__PURE__ */ b("div", {
320
+ title: T ? C("botlit.agentsList.titleBot", "Bot Agents") : C("botlit.agentsList.title", "All Agents"),
321
+ description: T ? C("botlit.agentsList.descriptionBot", "Manage agents for this bot") : C("botlit.agentsList.description", "View and manage all your AI agents"),
322
+ actions: /* @__PURE__ */ y("div", {
324
323
  className: "flex gap-2",
325
- children: [/* @__PURE__ */ y(o, {
324
+ children: [/* @__PURE__ */ v(o, {
326
325
  variant: "outline",
327
- leftIcon: /* @__PURE__ */ y(ke, { size: 16 }),
328
- onClick: () => A("agents/approvals"),
329
- children: D("botlit.agentsList.actions.approvals", "Approvals")
330
- }), ct ? null : lt]
326
+ leftIcon: /* @__PURE__ */ v(Ae, { size: 16 }),
327
+ onClick: () => E("agents/approvals"),
328
+ children: C("botlit.agentsList.actions.approvals", "Approvals")
329
+ }), st ? null : ct]
331
330
  }),
332
- children: /* @__PURE__ */ b("div", {
331
+ children: /* @__PURE__ */ y("div", {
333
332
  className: "space-y-6",
334
333
  children: [
335
- /* @__PURE__ */ y(ye, {
336
- icon: /* @__PURE__ */ y(Se, { size: 18 }),
337
- children: D("botlit.agentsList.purpose", "Agents are the reasoning workers behind your bots — each one bundles a model, a system prompt, tools and knowledge into a callable AI. Build an agent here to handle a specific job (answer support questions, summarise documents, run a workflow), then test it in chat and connect it to a bot or channel.")
334
+ /* @__PURE__ */ v(be, {
335
+ icon: /* @__PURE__ */ v(Ce, { size: 18 }),
336
+ children: C("botlit.agentsList.purpose", "Agents are the reasoning workers behind your bots — each one bundles a model, a system prompt, tools and knowledge into a callable AI. Build an agent here to handle a specific job (answer support questions, summarise documents, run a workflow), then test it in chat and connect it to a bot or channel.")
338
337
  }),
339
- !k && Q && Q.total - Q.archived > 0 ? /* @__PURE__ */ b("div", {
338
+ !T && $ && $.total - $.archived > 0 ? /* @__PURE__ */ y("div", {
340
339
  className: "grid grid-cols-2 gap-4",
341
340
  role: "group",
342
- "aria-label": D("botlit.agentsList.summary.title", "Agent totals"),
343
- children: [/* @__PURE__ */ b(ve, {
341
+ "aria-label": C("botlit.agentsList.summary.title", "Agent totals"),
342
+ children: [/* @__PURE__ */ y(g, {
344
343
  treatment: "metric",
345
344
  className: "p-4",
346
- children: [/* @__PURE__ */ y("p", {
345
+ children: [/* @__PURE__ */ v("p", {
347
346
  className: "text-sm text-text-secondary",
348
- children: D("botlit.agentsList.summary.total", "Total agents")
349
- }), /* @__PURE__ */ y("p", {
347
+ children: C("botlit.agentsList.summary.total", "Total agents")
348
+ }), /* @__PURE__ */ v("p", {
350
349
  className: "mt-1 text-2xl font-semibold tabular-nums text-text-primary",
351
- children: p(Q.total - Q.archived)
350
+ children: u($.total - $.archived)
352
351
  })]
353
- }), /* @__PURE__ */ b(ve, {
352
+ }), /* @__PURE__ */ y(g, {
354
353
  treatment: "metric",
355
354
  className: "p-4",
356
- children: [/* @__PURE__ */ y("p", {
355
+ children: [/* @__PURE__ */ v("p", {
357
356
  className: "text-sm text-text-secondary",
358
- children: D("botlit.agentsList.summary.active", "Active")
359
- }), /* @__PURE__ */ y("p", {
357
+ children: C("botlit.agentsList.summary.active", "Active")
358
+ }), /* @__PURE__ */ v("p", {
360
359
  className: "mt-1 text-2xl font-semibold tabular-nums text-text-primary",
361
- children: p(Q.active)
360
+ children: u($.active)
362
361
  })]
363
362
  })]
364
363
  }) : null,
365
- k ? /* @__PURE__ */ y(l, {
366
- permission: c.APP_AGENT_CREATE,
367
- children: /* @__PURE__ */ b("div", {
364
+ T ? /* @__PURE__ */ v(p, {
365
+ permission: f.APP_AGENT_CREATE,
366
+ children: /* @__PURE__ */ y("div", {
368
367
  className: "flex flex-wrap items-end gap-2",
369
- children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
368
+ children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
370
369
  htmlFor: "agents-link-select",
371
370
  className: "mb-1 block text-sm font-medium",
372
- children: D("botlit.agentsList.bot.linkLabel", "Link an existing agent")
373
- }), /* @__PURE__ */ b(v, {
371
+ children: C("botlit.agentsList.bot.linkLabel", "Link an existing agent")
372
+ }), /* @__PURE__ */ y(_, {
374
373
  id: "agents-link-select",
375
- className: h(E, "min-w-64"),
376
- value: G,
377
- onChange: (e) => Ge(e.target.value),
378
- disabled: Z.length === 0 || U.loading || !!U.error,
379
- children: [/* @__PURE__ */ y("option", {
374
+ className: d(S, "min-w-64"),
375
+ value: V,
376
+ onChange: (e) => H(e.target.value),
377
+ disabled: Q.length === 0 || z.loading || !!z.error,
378
+ children: [/* @__PURE__ */ v("option", {
380
379
  value: "",
381
- children: Z.length === 0 ? D("botlit.agentsList.bot.nothingToLink", "Every agent is already linked") : D("botlit.agentsList.bot.choose", "Choose an agent...")
382
- }), Z.map((e) => /* @__PURE__ */ y("option", {
380
+ children: Q.length === 0 ? C("botlit.agentsList.bot.nothingToLink", "Every agent is already linked") : C("botlit.agentsList.bot.choose", "Choose an agent...")
381
+ }), Q.map((e) => /* @__PURE__ */ v("option", {
383
382
  value: e.id,
384
383
  children: e.name
385
384
  }, e.id))]
386
- })] }), /* @__PURE__ */ y(o, {
385
+ })] }), /* @__PURE__ */ v(o, {
387
386
  variant: "outline",
388
- disabled: !G,
389
- onClick: () => void nt(),
390
- children: D("botlit.agentsList.bot.link", "Link agent")
387
+ disabled: !V,
388
+ onClick: () => void tt(),
389
+ children: C("botlit.agentsList.bot.link", "Link agent")
391
390
  })]
392
391
  })
393
392
  }) : null,
394
- /* @__PURE__ */ b("div", {
393
+ /* @__PURE__ */ y("div", {
395
394
  className: "flex flex-wrap items-center justify-between gap-4",
396
- children: [/* @__PURE__ */ b("div", {
395
+ children: [/* @__PURE__ */ y("div", {
397
396
  className: "flex flex-1 flex-wrap items-center gap-3",
398
397
  children: [
399
- /* @__PURE__ */ b("div", {
398
+ /* @__PURE__ */ y("div", {
400
399
  className: "relative flex-1 min-w-48 max-w-md",
401
- children: [/* @__PURE__ */ y(Oe, {
400
+ children: [/* @__PURE__ */ v(ke, {
402
401
  className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary",
403
402
  "aria-hidden": "true"
404
- }), /* @__PURE__ */ y(s, {
403
+ }), /* @__PURE__ */ v(s, {
405
404
  id: "agents-search",
406
405
  type: "search",
407
- "aria-label": D("botlit.agentsList.search.label", "Search agents"),
408
- placeholder: D("botlit.agentsList.searchPlaceholder", "Search agents..."),
409
- value: K,
410
- onChange: (e) => Ke(e.target.value),
406
+ "aria-label": C("botlit.agentsList.search.label", "Search agents"),
407
+ placeholder: C("botlit.agentsList.searchPlaceholder", "Search agents..."),
408
+ value: U,
409
+ onChange: (e) => W(e.target.value),
411
410
  className: "pl-9"
412
411
  })]
413
412
  }),
414
- /* @__PURE__ */ b("label", {
413
+ /* @__PURE__ */ y("label", {
415
414
  className: "flex items-center gap-2 text-sm",
416
- children: [/* @__PURE__ */ y("span", {
415
+ children: [/* @__PURE__ */ v("span", {
417
416
  className: "text-text-secondary",
418
- children: D("botlit.agentsList.filter.status", "Status")
419
- }), /* @__PURE__ */ b(v, {
420
- className: E,
421
- value: Ye,
422
- onChange: (e) => P({ status: e.target.value ? [w.find((t) => t === e.target.value) ?? "ACTIVE"] : void 0 }),
423
- children: [/* @__PURE__ */ y("option", {
417
+ children: C("botlit.agentsList.filter.status", "Status")
418
+ }), /* @__PURE__ */ y(_, {
419
+ className: S,
420
+ value: q,
421
+ onChange: (e) => k({ status: e.target.value ? [Ie.find((t) => t === e.target.value) ?? "ACTIVE"] : void 0 }),
422
+ children: [/* @__PURE__ */ v("option", {
424
423
  value: "",
425
- children: D("botlit.agentsList.filter.allStatuses", "All statuses")
426
- }), w.map((e) => /* @__PURE__ */ y("option", {
424
+ children: C("botlit.agentsList.filter.allStatuses", "All statuses")
425
+ }), Ie.map((e) => /* @__PURE__ */ v("option", {
427
426
  value: e,
428
- children: ut(e)
427
+ children: lt(e)
429
428
  }, e))]
430
429
  })]
431
430
  }),
432
- /* @__PURE__ */ b("label", {
431
+ /* @__PURE__ */ y("label", {
433
432
  className: "flex items-center gap-2 text-sm",
434
- children: [/* @__PURE__ */ y("span", {
433
+ children: [/* @__PURE__ */ v("span", {
435
434
  className: "text-text-secondary",
436
- children: D("botlit.agentsList.sort.label", "Sort")
437
- }), /* @__PURE__ */ y(v, {
438
- className: E,
439
- value: qe,
440
- onChange: (e) => Je(T.find((t) => t === e.target.value) ?? "newest"),
441
- children: T.map((e) => /* @__PURE__ */ y("option", {
435
+ children: C("botlit.agentsList.sort.label", "Sort")
436
+ }), /* @__PURE__ */ v(_, {
437
+ className: S,
438
+ value: G,
439
+ onChange: (e) => Ye(Le.find((t) => t === e.target.value) ?? "newest"),
440
+ children: Le.map((e) => /* @__PURE__ */ v("option", {
442
441
  value: e,
443
- children: dt[e]
442
+ children: ut[e]
444
443
  }, e))
445
444
  })]
446
445
  })
447
446
  ]
448
- }), /* @__PURE__ */ b("div", {
447
+ }), /* @__PURE__ */ y("div", {
449
448
  className: "flex items-center gap-2",
450
449
  role: "group",
451
- "aria-label": D("botlit.agentsList.view.label", "Layout"),
452
- children: [/* @__PURE__ */ y(o, {
453
- variant: j === "grid" ? "secondary" : "ghost",
450
+ "aria-label": C("botlit.agentsList.view.label", "Layout"),
451
+ children: [/* @__PURE__ */ v(o, {
452
+ variant: D === "grid" ? "secondary" : "ghost",
454
453
  size: "icon",
455
- "aria-label": D("botlit.agentsList.view.grid", "Grid view"),
456
- title: D("botlit.agentsList.view.grid", "Grid view"),
457
- "aria-pressed": j === "grid",
458
- onClick: () => M("grid"),
459
- children: /* @__PURE__ */ y(we, {
454
+ "aria-label": C("botlit.agentsList.view.grid", "Grid view"),
455
+ title: C("botlit.agentsList.view.grid", "Grid view"),
456
+ "aria-pressed": D === "grid",
457
+ onClick: () => Ve("grid"),
458
+ children: /* @__PURE__ */ v(Te, {
460
459
  size: 18,
461
460
  "aria-hidden": "true"
462
461
  })
463
- }), /* @__PURE__ */ y(o, {
464
- variant: j === "list" ? "secondary" : "ghost",
462
+ }), /* @__PURE__ */ v(o, {
463
+ variant: D === "list" ? "secondary" : "ghost",
465
464
  size: "icon",
466
- "aria-label": D("botlit.agentsList.view.list", "List view"),
467
- title: D("botlit.agentsList.view.list", "List view"),
468
- "aria-pressed": j === "list",
469
- onClick: () => M("list"),
470
- children: /* @__PURE__ */ y(Te, {
465
+ "aria-label": C("botlit.agentsList.view.list", "List view"),
466
+ title: C("botlit.agentsList.view.list", "List view"),
467
+ "aria-pressed": D === "list",
468
+ onClick: () => Ve("list"),
469
+ children: /* @__PURE__ */ v(Ee, {
471
470
  size: 18,
472
471
  "aria-hidden": "true"
473
472
  })
474
473
  })]
475
474
  })]
476
475
  }),
477
- Xe ? /* @__PURE__ */ y("div", {
476
+ J ? /* @__PURE__ */ v("div", {
478
477
  role: "status",
479
478
  "aria-busy": "true",
480
- "aria-label": D("botlit.common.loading", "Loading"),
481
- className: h("gap-4", j === "grid" ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3" : "flex flex-col"),
479
+ "aria-label": C("botlit.common.loading", "Loading"),
480
+ className: d("gap-4", D === "grid" ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3" : "flex flex-col"),
482
481
  children: [
483
482
  1,
484
483
  2,
@@ -486,45 +485,45 @@ var D = () => {
486
485
  4,
487
486
  5,
488
487
  6
489
- ].map((e) => /* @__PURE__ */ y("div", { className: "h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
490
- }) : J ? /* @__PURE__ */ y(re, {
491
- resource: D("botlit.agentsList.resource", "agents"),
492
- error: J,
488
+ ].map((e) => /* @__PURE__ */ v("div", { className: "h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
489
+ }) : Y ? /* @__PURE__ */ v(re, {
490
+ resource: C("botlit.agentsList.resource", "agents"),
491
+ error: Y,
493
492
  onRetry: () => {
494
- L(), U.refetch(), H();
493
+ M(), z.refetch(), R();
495
494
  }
496
- }) : X.length > 0 ? j === "grid" ? /* @__PURE__ */ y("ul", {
495
+ }) : Z.length > 0 ? D === "grid" ? /* @__PURE__ */ v("ul", {
497
496
  className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
498
- children: X.map((e) => $(e, "grid"))
499
- }) : /* @__PURE__ */ y("ul", {
497
+ children: Z.map((e) => dt(e, "grid"))
498
+ }) : /* @__PURE__ */ v("ul", {
500
499
  className: "space-y-2",
501
- children: X.map((e) => $(e, "list"))
502
- }) : $e ? /* @__PURE__ */ y(d, {
500
+ children: Z.map((e) => dt(e, "list"))
501
+ }) : Qe ? /* @__PURE__ */ v(c, {
503
502
  kind: "filtered",
504
503
  illustration: "empty-agents",
505
- title: q === "" ? D("botlit.agentsList.noResults.titleFiltered", "No agents match these filters") : D("botlit.agentsList.noResults.title", "No agents match \"{{query}}\"", { query: q }),
506
- description: D("botlit.agentsList.noResults.description", "Check the spelling or try a different search term or status."),
507
- action: /* @__PURE__ */ y(o, {
504
+ title: K === "" ? C("botlit.agentsList.noResults.titleFiltered", "No agents match these filters") : C("botlit.agentsList.noResults.title", "No agents match \"{{query}}\"", { query: K }),
505
+ description: C("botlit.agentsList.noResults.description", "Check the spelling or try a different search term or status."),
506
+ action: /* @__PURE__ */ v(o, {
508
507
  variant: "outline",
509
- onClick: et,
510
- children: D("botlit.agentsList.noResults.clear", "Clear search and filters")
508
+ onClick: $e,
509
+ children: C("botlit.agentsList.noResults.clear", "Clear search and filters")
511
510
  })
512
- }) : /* @__PURE__ */ y(d, {
511
+ }) : /* @__PURE__ */ v(c, {
513
512
  illustration: "empty-agents",
514
- title: k ? D("botlit.agentsList.empty.titleBot", "No agents linked to this bot yet") : D("botlit.agentsList.empty.title", "No agents yet"),
515
- description: k ? D("botlit.agentsList.empty.descriptionBot", "Link an existing agent above, or create a new one: it is linked to this bot automatically.") : D("botlit.agentsList.empty.description", "Create your first AI agent to start building intelligent automations."),
516
- action: lt
513
+ title: T ? C("botlit.agentsList.empty.titleBot", "No agents linked to this bot yet") : C("botlit.agentsList.empty.title", "No agents yet"),
514
+ description: T ? C("botlit.agentsList.empty.descriptionBot", "Link an existing agent above, or create a new one: it is linked to this bot automatically.") : C("botlit.agentsList.empty.description", "Create your first AI agent to start building intelligent automations."),
515
+ action: ct
517
516
  }),
518
- /* @__PURE__ */ y(ie, {
519
- hasMore: R,
520
- loadingMore: z,
521
- onLoadMore: () => void B(),
522
- loadedCount: F.length
517
+ /* @__PURE__ */ v(ie, {
518
+ hasMore: N,
519
+ loadingMore: P,
520
+ onLoadMore: () => void F(),
521
+ loadedCount: A.length
523
522
  })
524
523
  ]
525
524
  })
526
525
  });
527
526
  };
528
- export { D as AgentsListPage };
527
+ export { C as AgentsListPage };
529
528
 
530
529
  //# sourceMappingURL=AgentsListPage.js.map