@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.
- package/dist/botlit/BotmanorRootInner.js +45 -44
- package/dist/botlit/BotmanorRootInner.js.map +1 -1
- package/dist/botlit/components/AgentA2APanel.js +63 -62
- package/dist/botlit/components/AgentA2APanel.js.map +1 -1
- package/dist/botlit/components/AgentBindingsPanel.js +125 -124
- package/dist/botlit/components/AgentBindingsPanel.js.map +1 -1
- package/dist/botlit/components/AgentFallbackModelsPicker.js +56 -55
- package/dist/botlit/components/AgentFallbackModelsPicker.js.map +1 -1
- package/dist/botlit/components/AiOperationsPanel.js.map +1 -1
- package/dist/botlit/components/AssistantChannelPanel.js +40 -39
- package/dist/botlit/components/AssistantChannelPanel.js.map +1 -1
- package/dist/botlit/components/AssistantRuntimeSetupPanel.js +36 -35
- package/dist/botlit/components/AssistantRuntimeSetupPanel.js.map +1 -1
- package/dist/botlit/components/BotAgentsPanel.js +104 -103
- package/dist/botlit/components/BotAgentsPanel.js.map +1 -1
- package/dist/botlit/components/BotFormFields.js +118 -117
- package/dist/botlit/components/BotFormFields.js.map +1 -1
- package/dist/botlit/components/BucketDialogs.js +110 -110
- package/dist/botlit/components/BucketDialogs.js.map +1 -1
- package/dist/botlit/components/ChannelRoutesPanel.js +29 -28
- package/dist/botlit/components/ChannelRoutesPanel.js.map +1 -1
- package/dist/botlit/components/CreateChannelRouteDialog.js +105 -105
- package/dist/botlit/components/CreateChannelRouteDialog.js.map +1 -1
- package/dist/botlit/components/DescribeBotDialog.js +86 -86
- package/dist/botlit/components/DescribeBotDialog.js.map +1 -1
- package/dist/botlit/components/EmptyState.d.ts +8 -0
- package/dist/botlit/components/EmptyState.js +43 -30
- package/dist/botlit/components/EmptyState.js.map +1 -1
- package/dist/botlit/components/HandoffConfigPanel.js +125 -124
- package/dist/botlit/components/HandoffConfigPanel.js.map +1 -1
- package/dist/botlit/components/HandoffTargetPickers.js +42 -41
- package/dist/botlit/components/HandoffTargetPickers.js.map +1 -1
- package/dist/botlit/components/KnowledgeBackendMigrationPanel.js +106 -105
- package/dist/botlit/components/KnowledgeBackendMigrationPanel.js.map +1 -1
- package/dist/botlit/components/KnowledgeRetrievalTestPanel.js +76 -75
- package/dist/botlit/components/KnowledgeRetrievalTestPanel.js.map +1 -1
- package/dist/botlit/components/KnowledgeSourceImportPanel.js +76 -75
- package/dist/botlit/components/KnowledgeSourceImportPanel.js.map +1 -1
- package/dist/botlit/components/ModelRegistrationPanel.js +70 -69
- package/dist/botlit/components/ModelRegistrationPanel.js.map +1 -1
- package/dist/botlit/components/StorePackageDraftCard.js +87 -86
- package/dist/botlit/components/StorePackageDraftCard.js.map +1 -1
- package/dist/botlit/components/SuggestionsPanel.js.map +1 -1
- package/dist/botlit/pages/A2AAgentDetailPage.js +263 -262
- package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/A2ARegistryPage.js +47 -46
- package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
- package/dist/botlit/pages/AgentBuilderPage.js +426 -425
- package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
- package/dist/botlit/pages/AgentDetailPage.js +1 -0
- package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/AgentsListPage.js +248 -247
- package/dist/botlit/pages/AgentsListPage.js.map +1 -1
- package/dist/botlit/pages/BotChannelsTab.js +324 -310
- package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
- package/dist/botlit/pages/BotDetailPage.js +1 -0
- package/dist/botlit/pages/BotDetailPage.js.map +1 -1
- package/dist/botlit/pages/BotWorkflowTab.js +126 -121
- package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
- package/dist/botlit/pages/BotsListPage.js +1 -0
- package/dist/botlit/pages/BotsListPage.js.map +1 -1
- package/dist/botlit/pages/BucketDetailPage.js +1 -0
- package/dist/botlit/pages/BucketDetailPage.js.map +1 -1
- package/dist/botlit/pages/BucketsPage.js +1 -0
- package/dist/botlit/pages/BucketsPage.js.map +1 -1
- package/dist/botlit/pages/ChannelDetailPage.js +267 -266
- package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
- package/dist/botlit/pages/ChannelsPage.js +187 -186
- package/dist/botlit/pages/ChannelsPage.js.map +1 -1
- package/dist/botlit/pages/ChatPage.js +69 -68
- package/dist/botlit/pages/ChatPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionDetailPage.js +1 -0
- package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionsPage.js +191 -191
- package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
- package/dist/botlit/pages/HandoffsPage.js +65 -64
- package/dist/botlit/pages/HandoffsPage.js.map +1 -1
- package/dist/botlit/pages/InstalledPackagesPage.js +146 -145
- package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js +235 -234
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBasesPage.js +152 -151
- package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
- package/dist/botlit/pages/MCPServerDetailPage.js +180 -179
- package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
- package/dist/botlit/pages/MCPServersPage.js +145 -145
- package/dist/botlit/pages/MCPServersPage.js.map +1 -1
- package/dist/botlit/pages/PoliciesPage.js.map +1 -1
- package/dist/botlit/pages/PolicyDetailPage.js +293 -292
- package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptStudioPage.js +229 -229
- package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplateDetailPage.js +280 -279
- package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplatesPage.js +31 -30
- package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfileDetailPage.js +204 -203
- package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
- package/dist/botlit/pages/SettingsPage.js +153 -153
- package/dist/botlit/pages/SettingsPage.js.map +1 -1
- package/dist/botlit/pages/SkillDetailPage.js +305 -304
- package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
- package/dist/botlit/pages/SkillsPage.js.map +1 -1
- package/dist/botlit/pages/StorePackageDetailPage.js +1 -0
- package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
- package/dist/botlit/pages/StorePage.js +173 -173
- package/dist/botlit/pages/StorePage.js.map +1 -1
- package/dist/botlit/utils/confirmAction.d.ts +13 -11
- package/dist/botlit/utils/confirmAction.js +26 -4
- package/dist/botlit/utils/confirmAction.js.map +1 -1
- 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
|
|
5
|
-
import { Button as
|
|
6
|
-
import { Input as
|
|
7
|
-
import { Badge as
|
|
8
|
-
import { BOTMANOR_PERMISSIONS as
|
|
9
|
-
import { BotmanorPermissionGate as
|
|
10
|
-
import { EmptyState as
|
|
11
|
-
import { ErrorState as
|
|
12
|
-
import { LoadMore as
|
|
13
|
-
import { ActionMenu as
|
|
14
|
-
import { useAgentCounts as
|
|
15
|
-
import { useBot as
|
|
16
|
-
import { useBotAgentLinks as
|
|
17
|
-
import { useBotlitStore as
|
|
18
|
-
import { useBotlit as
|
|
19
|
-
import { agentDeleteMessage as
|
|
20
|
-
import { confirmAction as
|
|
21
|
-
import { formatNumber as
|
|
22
|
-
import { cn as
|
|
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
|
|
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
|
|
28
|
-
import { Bot as
|
|
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
|
|
31
|
+
var C = "🤖", Ne = 300, w = [
|
|
32
32
|
"DRAFT",
|
|
33
33
|
"ACTIVE",
|
|
34
34
|
"PAUSED",
|
|
35
35
|
"TRAINING",
|
|
36
36
|
"ARCHIVED"
|
|
37
|
-
],
|
|
37
|
+
], T = [
|
|
38
38
|
"newest",
|
|
39
39
|
"oldest",
|
|
40
40
|
"name",
|
|
41
41
|
"runs"
|
|
42
|
-
],
|
|
43
|
-
function
|
|
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
|
|
53
|
-
let
|
|
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
|
-
|
|
55
|
+
k && R && !z && !I && B();
|
|
56
56
|
}, [
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
k,
|
|
58
|
+
R,
|
|
59
|
+
z,
|
|
59
60
|
I,
|
|
60
|
-
|
|
61
|
-
L
|
|
61
|
+
B
|
|
62
62
|
]), g(() => {
|
|
63
|
-
if (
|
|
64
|
-
let e = window.setTimeout(() =>
|
|
63
|
+
if (K === (N.search ?? "")) return;
|
|
64
|
+
let e = window.setTimeout(() => P({ search: K }), Ne);
|
|
65
65
|
return () => window.clearTimeout(e);
|
|
66
66
|
}, [
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
K,
|
|
68
|
+
N.search,
|
|
69
|
+
P
|
|
70
70
|
]);
|
|
71
|
-
let
|
|
72
|
-
|
|
73
|
-
let
|
|
74
|
-
|
|
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
|
-
},
|
|
79
|
-
let i = await
|
|
80
|
-
if (await
|
|
81
|
-
title:
|
|
82
|
-
message:
|
|
83
|
-
confirmLabel:
|
|
84
|
-
cancelLabel:
|
|
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
|
|
89
|
-
S.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(
|
|
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 :
|
|
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
|
-
},
|
|
98
|
-
if (
|
|
99
|
-
if (await
|
|
100
|
-
botId:
|
|
101
|
-
agentId:
|
|
102
|
-
}),
|
|
103
|
-
await
|
|
104
|
-
botId:
|
|
105
|
-
input: { defaultAgentId:
|
|
106
|
-
}),
|
|
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 :
|
|
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 :
|
|
111
|
+
S.error(e instanceof Error ? e.message : D("botlit.agentsList.bot.linkError", "Failed to link the agent"));
|
|
112
112
|
}
|
|
113
|
-
},
|
|
114
|
-
if (
|
|
115
|
-
title:
|
|
116
|
-
message:
|
|
117
|
-
confirmLabel:
|
|
118
|
-
cancelLabel:
|
|
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 =
|
|
121
|
-
if (t && !await
|
|
122
|
-
S.error(
|
|
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
|
|
126
|
-
await
|
|
127
|
-
botId:
|
|
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
|
-
}),
|
|
129
|
+
}), H();
|
|
130
130
|
} catch (e) {
|
|
131
|
-
S.error(e instanceof Error ? e.message :
|
|
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 :
|
|
134
|
+
S.error(e instanceof Error ? e.message : D("botlit.agentsList.bot.unlinkError", "Failed to remove the agent"));
|
|
135
135
|
}
|
|
136
|
-
},
|
|
137
|
-
if (
|
|
138
|
-
await
|
|
139
|
-
botId:
|
|
136
|
+
}, it = async (e) => {
|
|
137
|
+
if (k) try {
|
|
138
|
+
await W({
|
|
139
|
+
botId: k,
|
|
140
140
|
input: { defaultAgentId: e.id }
|
|
141
|
-
}), await
|
|
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 :
|
|
143
|
+
S.error(e instanceof Error ? e.message : D("botlit.agentsList.bot.defaultError", "Failed to set the default agent"));
|
|
144
144
|
}
|
|
145
|
-
},
|
|
145
|
+
}, at = (e) => {
|
|
146
146
|
let t = [];
|
|
147
|
-
|
|
147
|
+
O(c.AGENT_EXECUTE) && t.push({
|
|
148
148
|
key: "test",
|
|
149
|
-
label:
|
|
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: () =>
|
|
155
|
-
}),
|
|
154
|
+
onSelect: () => A(`agents/${e.id}/test`)
|
|
155
|
+
}), O(c.AGENT_UPDATE) && t.push({
|
|
156
156
|
key: "edit",
|
|
157
|
-
label:
|
|
158
|
-
icon: /* @__PURE__ */ y(
|
|
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: () =>
|
|
163
|
-
}),
|
|
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:
|
|
166
|
-
icon: /* @__PURE__ */ y(
|
|
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
|
|
170
|
+
onSelect: () => void it(e)
|
|
171
171
|
});
|
|
172
|
-
let n =
|
|
173
|
-
return
|
|
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:
|
|
176
|
-
icon: /* @__PURE__ */ y(
|
|
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
|
|
181
|
-
}),
|
|
180
|
+
onSelect: () => void rt(e)
|
|
181
|
+
}), O(c.AGENT_DELETE) && t.push({
|
|
182
182
|
key: "delete",
|
|
183
|
-
label:
|
|
184
|
-
icon: /* @__PURE__ */ y(
|
|
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
|
|
189
|
+
onSelect: () => void tt(e)
|
|
190
190
|
}), t;
|
|
191
|
-
},
|
|
191
|
+
}, ot = (e) => {
|
|
192
192
|
let t = e ?? 0;
|
|
193
|
-
return t === 1 ?
|
|
194
|
-
},
|
|
195
|
-
permission:
|
|
196
|
-
children: /* @__PURE__ */ y(
|
|
197
|
-
leftIcon: /* @__PURE__ */ y(
|
|
198
|
-
onClick: () =>
|
|
199
|
-
children:
|
|
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
|
-
}),
|
|
202
|
-
newest:
|
|
203
|
-
oldest:
|
|
204
|
-
name:
|
|
205
|
-
runs:
|
|
206
|
-
},
|
|
207
|
-
let n = !!
|
|
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(
|
|
210
|
-
to:
|
|
211
|
-
className:
|
|
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(
|
|
216
|
+
children: [/* @__PURE__ */ y(ne, { status: e.status }), n && /* @__PURE__ */ y(te, {
|
|
217
217
|
variant: "outline",
|
|
218
|
-
children:
|
|
218
|
+
children: D("botlit.agentsList.bot.defaultBadge", "Default")
|
|
219
219
|
})]
|
|
220
|
-
}),
|
|
220
|
+
}), s = /* @__PURE__ */ y("div", {
|
|
221
221
|
className: "relative z-10",
|
|
222
|
-
children: /* @__PURE__ */ y(
|
|
223
|
-
label:
|
|
224
|
-
items:
|
|
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
|
-
}),
|
|
227
|
-
permission:
|
|
228
|
-
children: /* @__PURE__ */ y(
|
|
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":
|
|
237
|
-
onClick: () =>
|
|
238
|
-
children:
|
|
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(
|
|
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(
|
|
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 ||
|
|
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
|
-
}),
|
|
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(
|
|
268
|
+
children: [/* @__PURE__ */ y(Ee, {
|
|
269
269
|
size: 14,
|
|
270
270
|
"aria-hidden": "true"
|
|
271
|
-
}),
|
|
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
|
-
|
|
279
|
+
D("botlit.agentsList.card.created", "Created"),
|
|
280
280
|
" ",
|
|
281
|
-
|
|
281
|
+
m(e.createdAt)
|
|
282
282
|
]
|
|
283
|
-
}),
|
|
283
|
+
}), u]
|
|
284
284
|
})
|
|
285
285
|
]
|
|
286
286
|
})
|
|
287
|
-
}) }, e.id) : /* @__PURE__ */ y("li", { children: /* @__PURE__ */ y(
|
|
287
|
+
}) }, e.id) : /* @__PURE__ */ y("li", { children: /* @__PURE__ */ y(ee, {
|
|
288
288
|
className: "group relative hover:shadow-md transition-shadow",
|
|
289
|
-
children: /* @__PURE__ */ y(
|
|
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 ||
|
|
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:
|
|
310
|
-
/* @__PURE__ */ y("span", { children:
|
|
311
|
-
|
|
312
|
-
|
|
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:
|
|
322
|
-
description:
|
|
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(
|
|
325
|
+
children: [/* @__PURE__ */ y(o, {
|
|
326
326
|
variant: "outline",
|
|
327
|
-
leftIcon: /* @__PURE__ */ y(
|
|
328
|
-
onClick: () =>
|
|
329
|
-
children:
|
|
330
|
-
}),
|
|
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(
|
|
336
|
-
icon: /* @__PURE__ */ y(
|
|
337
|
-
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.")
|
|
338
338
|
}),
|
|
339
|
-
!
|
|
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":
|
|
343
|
-
children: [/* @__PURE__ */ b(
|
|
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:
|
|
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:
|
|
351
|
+
children: p(Q.total - Q.archived)
|
|
352
352
|
})]
|
|
353
|
-
}), /* @__PURE__ */ b(
|
|
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:
|
|
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:
|
|
361
|
+
children: p(Q.active)
|
|
362
362
|
})]
|
|
363
363
|
})]
|
|
364
364
|
}) : null,
|
|
365
|
-
|
|
366
|
-
permission:
|
|
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:
|
|
373
|
-
}), /* @__PURE__ */ b(
|
|
372
|
+
children: D("botlit.agentsList.bot.linkLabel", "Link an existing agent")
|
|
373
|
+
}), /* @__PURE__ */ b(v, {
|
|
374
374
|
id: "agents-link-select",
|
|
375
|
-
className:
|
|
376
|
-
value:
|
|
377
|
-
onChange: (e) =>
|
|
378
|
-
disabled:
|
|
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:
|
|
382
|
-
}),
|
|
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(
|
|
386
|
+
})] }), /* @__PURE__ */ y(o, {
|
|
387
387
|
variant: "outline",
|
|
388
|
-
disabled: !
|
|
389
|
-
onClick: () => void
|
|
390
|
-
children:
|
|
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(
|
|
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(
|
|
404
|
+
}), /* @__PURE__ */ y(s, {
|
|
405
405
|
id: "agents-search",
|
|
406
406
|
type: "search",
|
|
407
|
-
"aria-label":
|
|
408
|
-
placeholder:
|
|
409
|
-
value:
|
|
410
|
-
onChange: (e) =>
|
|
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:
|
|
419
|
-
}), /* @__PURE__ */ b(
|
|
420
|
-
className:
|
|
421
|
-
value:
|
|
422
|
-
onChange: (e) =>
|
|
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:
|
|
426
|
-
}),
|
|
425
|
+
children: D("botlit.agentsList.filter.allStatuses", "All statuses")
|
|
426
|
+
}), w.map((e) => /* @__PURE__ */ y("option", {
|
|
427
427
|
value: e,
|
|
428
|
-
children:
|
|
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:
|
|
437
|
-
}), /* @__PURE__ */ y(
|
|
438
|
-
className:
|
|
439
|
-
value:
|
|
440
|
-
onChange: (e) =>
|
|
441
|
-
children:
|
|
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:
|
|
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":
|
|
452
|
-
children: [/* @__PURE__ */ y(
|
|
453
|
-
variant:
|
|
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":
|
|
456
|
-
title:
|
|
457
|
-
"aria-pressed":
|
|
458
|
-
onClick: () =>
|
|
459
|
-
children: /* @__PURE__ */ y(
|
|
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(
|
|
464
|
-
variant:
|
|
463
|
+
}), /* @__PURE__ */ y(o, {
|
|
464
|
+
variant: j === "list" ? "secondary" : "ghost",
|
|
465
465
|
size: "icon",
|
|
466
|
-
"aria-label":
|
|
467
|
-
title:
|
|
468
|
-
"aria-pressed":
|
|
469
|
-
onClick: () =>
|
|
470
|
-
children: /* @__PURE__ */ y(
|
|
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
|
-
|
|
477
|
+
Xe ? /* @__PURE__ */ y("div", {
|
|
478
478
|
role: "status",
|
|
479
479
|
"aria-busy": "true",
|
|
480
|
-
"aria-label":
|
|
481
|
-
className:
|
|
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
|
-
}) :
|
|
491
|
-
resource:
|
|
492
|
-
error:
|
|
490
|
+
}) : J ? /* @__PURE__ */ y(re, {
|
|
491
|
+
resource: D("botlit.agentsList.resource", "agents"),
|
|
492
|
+
error: J,
|
|
493
493
|
onRetry: () => {
|
|
494
|
-
|
|
494
|
+
L(), U.refetch(), H();
|
|
495
495
|
}
|
|
496
|
-
}) :
|
|
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:
|
|
498
|
+
children: X.map((e) => $(e, "grid"))
|
|
499
499
|
}) : /* @__PURE__ */ y("ul", {
|
|
500
500
|
className: "space-y-2",
|
|
501
|
-
children:
|
|
502
|
-
}) :
|
|
501
|
+
children: X.map((e) => $(e, "list"))
|
|
502
|
+
}) : $e ? /* @__PURE__ */ y(d, {
|
|
503
|
+
kind: "filtered",
|
|
503
504
|
illustration: "empty-agents",
|
|
504
|
-
title: q === "" ?
|
|
505
|
-
description:
|
|
506
|
-
action: /* @__PURE__ */ y(
|
|
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:
|
|
509
|
-
children:
|
|
509
|
+
onClick: et,
|
|
510
|
+
children: D("botlit.agentsList.noResults.clear", "Clear search and filters")
|
|
510
511
|
})
|
|
511
|
-
}) : /* @__PURE__ */ y(
|
|
512
|
+
}) : /* @__PURE__ */ y(d, {
|
|
512
513
|
illustration: "empty-agents",
|
|
513
|
-
title:
|
|
514
|
-
description:
|
|
515
|
-
action:
|
|
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(
|
|
518
|
-
hasMore:
|
|
519
|
-
loadingMore:
|
|
520
|
-
onLoadMore: () => void
|
|
521
|
-
loadedCount:
|
|
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 {
|
|
528
|
+
export { D as AgentsListPage };
|
|
528
529
|
|
|
529
530
|
//# sourceMappingURL=AgentsListPage.js.map
|