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