@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
|
@@ -5,38 +5,38 @@ import { useAgents as r } from "../hooks/useAgents.js";
|
|
|
5
5
|
import { PageLayout as i } from "../components/PageLayout.js";
|
|
6
6
|
import { Card as a, CardContent as o } from "../components/Card.js";
|
|
7
7
|
import { Button as s } from "../components/Button.js";
|
|
8
|
-
import { Input as
|
|
9
|
-
import { Badge as
|
|
10
|
-
import { EmptyState as
|
|
11
|
-
import { ErrorState as
|
|
12
|
-
import { useExecutionSummary as
|
|
13
|
-
import { LoadMore as
|
|
14
|
-
import { LiveIndicator as
|
|
15
|
-
import { executionStatusLabels as
|
|
16
|
-
import { useLiveExecutionList as
|
|
8
|
+
import { Input as c } from "../components/Input.js";
|
|
9
|
+
import { Badge as l } from "../components/Badge.js";
|
|
10
|
+
import { EmptyState as ee } from "../components/EmptyState.js";
|
|
11
|
+
import { ErrorState as te } from "../components/ErrorState.js";
|
|
12
|
+
import { useExecutionSummary as ne, useExecutions as re } from "../hooks/useExecutions.js";
|
|
13
|
+
import { LoadMore as ie } from "../components/LoadMore.js";
|
|
14
|
+
import { LiveIndicator as u } from "../components/LiveIndicator.js";
|
|
15
|
+
import { executionStatusLabels as d } from "../utils/executionStatus.js";
|
|
16
|
+
import { useLiveExecutionList as ae } from "../hooks/useExecutionLiveUpdates.js";
|
|
17
17
|
import "../hooks/index.js";
|
|
18
|
-
import { formatCurrency as
|
|
19
|
-
import { ExecutionStatus as
|
|
20
|
-
import { useEffect as
|
|
21
|
-
import { PagePurpose as
|
|
22
|
-
import { Fragment as
|
|
23
|
-
import { Link as
|
|
24
|
-
import { Activity as
|
|
18
|
+
import { formatCurrency as f, formatDuration as p, formatNumber as m, formatRelativeTime as h } from "../utils/formatters.js";
|
|
19
|
+
import { ExecutionStatus as g } from "../../generated/wspace-types.js";
|
|
20
|
+
import { useEffect as _, useMemo as oe, useState as v } from "react";
|
|
21
|
+
import { PagePurpose as se, ThemedSelect as y } from "@burdenoff/fe-libs/ui";
|
|
22
|
+
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
23
|
+
import { Link as ce } from "react-router";
|
|
24
|
+
import { Activity as C, Ban as w, CheckCircle as T, Clock as E, DollarSign as D, Hourglass as O, RefreshCw as k, Search as A, Timer as j, TrendingUp as le, XCircle as M, Zap as ue } from "lucide-react";
|
|
25
25
|
// src/botlit/pages/ExecutionsPage.tsx
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
],
|
|
32
|
-
function
|
|
33
|
-
let [n, r] =
|
|
34
|
-
return
|
|
26
|
+
var de = [
|
|
27
|
+
g.Completed,
|
|
28
|
+
g.Running,
|
|
29
|
+
g.Pending,
|
|
30
|
+
g.Failed
|
|
31
|
+
], fe = 300;
|
|
32
|
+
function pe(e, t) {
|
|
33
|
+
let [n, r] = v(e);
|
|
34
|
+
return _(() => {
|
|
35
35
|
let n = setTimeout(() => r(e), t);
|
|
36
36
|
return () => clearTimeout(n);
|
|
37
37
|
}, [e, t]), n;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function me(e) {
|
|
40
40
|
if (!e) return;
|
|
41
41
|
let t = /* @__PURE__ */ new Date(`${e}T00:00:00`);
|
|
42
42
|
return Number.isNaN(t.getTime()) ? void 0 : t.toISOString();
|
|
@@ -48,232 +48,232 @@ function N(e) {
|
|
|
48
48
|
}
|
|
49
49
|
var P = ({ status: e, className: t }) => {
|
|
50
50
|
switch (e) {
|
|
51
|
-
case
|
|
52
|
-
case
|
|
53
|
-
case
|
|
54
|
-
case
|
|
55
|
-
case
|
|
56
|
-
case
|
|
57
|
-
default: return /* @__PURE__ */
|
|
51
|
+
case g.Completed: return /* @__PURE__ */ x(T, { className: t ?? "h-4 w-4 text-status-success-text" });
|
|
52
|
+
case g.Failed: return /* @__PURE__ */ x(M, { className: t ?? "h-4 w-4 text-status-error-text" });
|
|
53
|
+
case g.Timeout: return /* @__PURE__ */ x(j, { className: t ?? "h-4 w-4 text-status-error-text" });
|
|
54
|
+
case g.Cancelled: return /* @__PURE__ */ x(w, { className: t ?? "h-4 w-4 text-text-secondary" });
|
|
55
|
+
case g.Running: return /* @__PURE__ */ x(k, { className: t ?? "h-4 w-4 text-status-info-text motion-safe:animate-spin" });
|
|
56
|
+
case g.Pending: return /* @__PURE__ */ x(O, { className: t ?? "h-4 w-4 text-status-warning-text" });
|
|
57
|
+
default: return /* @__PURE__ */ x(C, { className: t ?? "h-4 w-4 text-text-secondary" });
|
|
58
58
|
}
|
|
59
59
|
}, F = ({ status: e, labels: t }) => {
|
|
60
60
|
let n = {
|
|
61
|
-
[
|
|
62
|
-
[
|
|
63
|
-
[
|
|
64
|
-
[
|
|
65
|
-
[
|
|
66
|
-
[
|
|
61
|
+
[g.Completed]: "success",
|
|
62
|
+
[g.Failed]: "destructive",
|
|
63
|
+
[g.Timeout]: "destructive",
|
|
64
|
+
[g.Running]: "default",
|
|
65
|
+
[g.Pending]: "warning",
|
|
66
|
+
[g.Cancelled]: "secondary"
|
|
67
67
|
};
|
|
68
|
-
return /* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ S(l, {
|
|
69
69
|
variant: n[e] ?? "secondary",
|
|
70
70
|
className: "flex items-center gap-1",
|
|
71
|
-
children: [/* @__PURE__ */
|
|
71
|
+
children: [/* @__PURE__ */ x(P, { status: e }), t[e] ?? e]
|
|
72
72
|
});
|
|
73
73
|
}, I = ({ execution: e, noBot: t, noAgent: n }) => {
|
|
74
74
|
let r = e.appName ?? e.appId ?? t, i = e.agentName ?? e.agentId ?? n;
|
|
75
|
-
return /* @__PURE__ */ b
|
|
75
|
+
return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("p", {
|
|
76
76
|
className: "font-medium truncate",
|
|
77
77
|
title: e.appId ?? void 0,
|
|
78
78
|
children: r
|
|
79
|
-
}), /* @__PURE__ */
|
|
79
|
+
}), /* @__PURE__ */ x("p", {
|
|
80
80
|
className: "text-sm text-text-secondary truncate",
|
|
81
81
|
title: e.agentId ?? void 0,
|
|
82
82
|
children: i
|
|
83
83
|
})] });
|
|
84
84
|
}, L = () => {
|
|
85
|
-
let
|
|
85
|
+
let l = t(), { getPath: g } = e(), [_, b] = v(""), [w, T] = v([]), [O, j] = v(""), [M, L] = v(""), [R, z] = v(""), [B, V] = v(""), H = d(l), U = pe(_, fe), he = r(), ge = n(), W = oe(() => ({
|
|
86
86
|
search: U,
|
|
87
|
-
status:
|
|
88
|
-
agentId:
|
|
89
|
-
appId:
|
|
90
|
-
startDate:
|
|
87
|
+
status: w,
|
|
88
|
+
agentId: O || void 0,
|
|
89
|
+
appId: M || void 0,
|
|
90
|
+
startDate: me(R),
|
|
91
91
|
endDate: N(B)
|
|
92
92
|
}), [
|
|
93
93
|
U,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
w,
|
|
95
|
+
O,
|
|
96
|
+
M,
|
|
97
97
|
R,
|
|
98
98
|
B
|
|
99
|
-
]), { data:
|
|
99
|
+
]), { data: _e, loading: ve, error: G, refetch: K, hasMore: ye, loadingMore: q, loadMore: be } = re(W), J = ne(W), Y = J.data, X = w.length > 0 || !!U.trim() || !!(O || M || R || B), { rows: Z, live: xe } = ae(_e, {
|
|
100
100
|
enabled: !0,
|
|
101
101
|
includeNew: !X,
|
|
102
102
|
onFallbackPoll: () => {
|
|
103
103
|
K(), J.refetch();
|
|
104
104
|
}
|
|
105
|
-
}),
|
|
106
|
-
return /* @__PURE__ */
|
|
105
|
+
}), Se = l("botlit.executions.table.noBot", "No bot"), Q = l("botlit.executions.table.noAgent", "No agent"), $ = "h-9 rounded-md border border-border-default bg-bg-surface px-2 text-sm text-text-primary";
|
|
106
|
+
return /* @__PURE__ */ x(i, {
|
|
107
107
|
tourId: "botmanor-executions",
|
|
108
|
-
title:
|
|
109
|
-
description:
|
|
110
|
-
actions: /* @__PURE__ */
|
|
108
|
+
title: l("botlit.executions.title", "Executions"),
|
|
109
|
+
description: l("botlit.executions.description", "Monitor agent execution history, performance, and costs"),
|
|
110
|
+
actions: /* @__PURE__ */ S("div", {
|
|
111
111
|
className: "flex items-center gap-2",
|
|
112
|
-
children: [/* @__PURE__ */
|
|
112
|
+
children: [/* @__PURE__ */ x(u, { state: xe }), /* @__PURE__ */ x(s, {
|
|
113
113
|
variant: "outline",
|
|
114
|
-
leftIcon: /* @__PURE__ */
|
|
114
|
+
leftIcon: /* @__PURE__ */ x(k, { size: 16 }),
|
|
115
115
|
onClick: () => {
|
|
116
116
|
K(), J.refetch();
|
|
117
117
|
},
|
|
118
|
-
children:
|
|
118
|
+
children: l("botlit.executions.actions.refresh", "Refresh")
|
|
119
119
|
})]
|
|
120
120
|
}),
|
|
121
|
-
children: /* @__PURE__ */
|
|
121
|
+
children: /* @__PURE__ */ S("div", {
|
|
122
122
|
className: "space-y-6",
|
|
123
123
|
children: [
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
icon: /* @__PURE__ */
|
|
126
|
-
children:
|
|
124
|
+
/* @__PURE__ */ x(se, {
|
|
125
|
+
icon: /* @__PURE__ */ x(C, { size: 18 }),
|
|
126
|
+
children: l("botlit.executions.purpose", "An execution is a single run of an agent — one request in, one response out. See which runs succeeded or failed, how long they took, how many tokens they used and, where the model price is known, what they cost. Open a run to read its input and output, the model and agent version that answered, its token split, and the knowledge and policies that shaped it.")
|
|
127
127
|
}),
|
|
128
|
-
Y && Y.total > 0 && /* @__PURE__ */
|
|
128
|
+
Y && Y.total > 0 && /* @__PURE__ */ S("div", {
|
|
129
129
|
className: "space-y-2",
|
|
130
|
-
children: [/* @__PURE__ */
|
|
130
|
+
children: [/* @__PURE__ */ S("div", {
|
|
131
131
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
132
132
|
children: [
|
|
133
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ x(a, {
|
|
134
134
|
treatment: "glass",
|
|
135
135
|
glow: !0,
|
|
136
|
-
children: /* @__PURE__ */
|
|
136
|
+
children: /* @__PURE__ */ x(o, {
|
|
137
137
|
className: "pt-6",
|
|
138
|
-
children: /* @__PURE__ */
|
|
138
|
+
children: /* @__PURE__ */ S("div", {
|
|
139
139
|
className: "flex items-center justify-between",
|
|
140
|
-
children: [/* @__PURE__ */
|
|
140
|
+
children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
141
141
|
className: "text-sm text-text-secondary",
|
|
142
|
-
children:
|
|
143
|
-
}), /* @__PURE__ */
|
|
142
|
+
children: l("botlit.executions.rollup.executions", "Executions")
|
|
143
|
+
}), /* @__PURE__ */ x("p", {
|
|
144
144
|
className: "text-2xl font-bold tabular-nums",
|
|
145
|
-
children:
|
|
146
|
-
})] }), /* @__PURE__ */
|
|
145
|
+
children: m(Y.total)
|
|
146
|
+
})] }), /* @__PURE__ */ x(C, { className: "h-8 w-8 text-text-secondary" })]
|
|
147
147
|
})
|
|
148
148
|
})
|
|
149
149
|
}),
|
|
150
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ x(a, {
|
|
151
151
|
treatment: "metric",
|
|
152
|
-
children: /* @__PURE__ */
|
|
152
|
+
children: /* @__PURE__ */ x(o, {
|
|
153
153
|
className: "pt-6",
|
|
154
|
-
children: /* @__PURE__ */
|
|
154
|
+
children: /* @__PURE__ */ S("div", {
|
|
155
155
|
className: "flex items-center justify-between",
|
|
156
|
-
children: [/* @__PURE__ */
|
|
156
|
+
children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
157
157
|
className: "text-sm text-text-secondary",
|
|
158
|
-
children:
|
|
159
|
-
}), /* @__PURE__ */
|
|
158
|
+
children: l("botlit.executions.rollup.successRate", "Success Rate")
|
|
159
|
+
}), /* @__PURE__ */ S("p", {
|
|
160
160
|
className: "text-2xl font-bold tabular-nums text-status-success-text",
|
|
161
161
|
children: [(Y.succeeded / Y.total * 100).toFixed(1), "%"]
|
|
162
|
-
})] }), /* @__PURE__ */
|
|
162
|
+
})] }), /* @__PURE__ */ x(le, { className: "h-8 w-8 text-status-success-text" })]
|
|
163
163
|
})
|
|
164
164
|
})
|
|
165
165
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ x(a, {
|
|
167
167
|
treatment: "metric",
|
|
168
|
-
children: /* @__PURE__ */
|
|
168
|
+
children: /* @__PURE__ */ x(o, {
|
|
169
169
|
className: "pt-6",
|
|
170
|
-
children: /* @__PURE__ */
|
|
170
|
+
children: /* @__PURE__ */ S("div", {
|
|
171
171
|
className: "flex items-center justify-between",
|
|
172
|
-
children: [/* @__PURE__ */
|
|
172
|
+
children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
173
173
|
className: "text-sm text-text-secondary",
|
|
174
|
-
children:
|
|
175
|
-
}), /* @__PURE__ */
|
|
174
|
+
children: l("botlit.executions.rollup.avgDuration", "Avg Duration")
|
|
175
|
+
}), /* @__PURE__ */ x("p", {
|
|
176
176
|
className: "text-2xl font-bold tabular-nums",
|
|
177
|
-
children:
|
|
178
|
-
})] }), /* @__PURE__ */
|
|
177
|
+
children: p(Y.avgDurationMs)
|
|
178
|
+
})] }), /* @__PURE__ */ x(E, { className: "h-8 w-8 text-text-secondary" })]
|
|
179
179
|
})
|
|
180
180
|
})
|
|
181
181
|
}),
|
|
182
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ x(a, {
|
|
183
183
|
treatment: "metric",
|
|
184
|
-
children: /* @__PURE__ */
|
|
184
|
+
children: /* @__PURE__ */ x(o, {
|
|
185
185
|
className: "pt-6",
|
|
186
|
-
children: /* @__PURE__ */
|
|
186
|
+
children: /* @__PURE__ */ S("div", {
|
|
187
187
|
className: "flex items-center justify-between",
|
|
188
|
-
children: [/* @__PURE__ */
|
|
189
|
-
/* @__PURE__ */
|
|
188
|
+
children: [/* @__PURE__ */ S("div", { children: [
|
|
189
|
+
/* @__PURE__ */ x("p", {
|
|
190
190
|
className: "text-sm text-text-secondary",
|
|
191
|
-
children:
|
|
191
|
+
children: l("botlit.executions.rollup.totalCost", "Total Cost")
|
|
192
192
|
}),
|
|
193
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ x("p", {
|
|
194
194
|
className: "text-2xl font-bold tabular-nums",
|
|
195
|
-
children:
|
|
195
|
+
children: f(Y.totalCost)
|
|
196
196
|
}),
|
|
197
|
-
Y.unpricedRuns > 0 && /* @__PURE__ */
|
|
197
|
+
Y.unpricedRuns > 0 && /* @__PURE__ */ x("p", {
|
|
198
198
|
className: "text-xs text-text-secondary",
|
|
199
|
-
children:
|
|
199
|
+
children: l("botlit.executions.rollup.unpriced", "{{count}} runs have no known price", { count: Y.unpricedRuns })
|
|
200
200
|
})
|
|
201
|
-
] }), /* @__PURE__ */
|
|
201
|
+
] }), /* @__PURE__ */ x(D, { className: "h-8 w-8 text-text-secondary" })]
|
|
202
202
|
})
|
|
203
203
|
})
|
|
204
204
|
})
|
|
205
205
|
]
|
|
206
|
-
}), /* @__PURE__ */
|
|
206
|
+
}), /* @__PURE__ */ x("p", {
|
|
207
207
|
className: "text-xs text-text-secondary",
|
|
208
|
-
children:
|
|
208
|
+
children: l("botlit.executions.rollup.calculatedAcrossAll", "Calculated across all {{count}} matching runs. Average duration covers the {{timed}} runs that recorded one.", {
|
|
209
209
|
count: Y.total,
|
|
210
210
|
timed: Y.timedRuns
|
|
211
211
|
})
|
|
212
212
|
})]
|
|
213
213
|
}),
|
|
214
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ S("div", {
|
|
215
215
|
className: "flex flex-wrap items-center gap-4",
|
|
216
|
-
children: [/* @__PURE__ */
|
|
216
|
+
children: [/* @__PURE__ */ S("div", {
|
|
217
217
|
className: "relative flex-1 max-w-md",
|
|
218
|
-
children: [/* @__PURE__ */
|
|
219
|
-
placeholder:
|
|
220
|
-
value:
|
|
221
|
-
onChange: (e) =>
|
|
218
|
+
children: [/* @__PURE__ */ x(A, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ x(c, {
|
|
219
|
+
placeholder: l("botlit.executions.filters.searchPlaceholder", "Search by run, agent, bot or input…"),
|
|
220
|
+
value: _,
|
|
221
|
+
onChange: (e) => b(e.target.value),
|
|
222
222
|
className: "pl-9",
|
|
223
|
-
"aria-label":
|
|
223
|
+
"aria-label": l("botlit.executions.filters.searchLabel", "Search executions")
|
|
224
224
|
})]
|
|
225
|
-
}), /* @__PURE__ */
|
|
225
|
+
}), /* @__PURE__ */ x("div", {
|
|
226
226
|
className: "flex flex-wrap gap-2",
|
|
227
227
|
role: "group",
|
|
228
|
-
"aria-label":
|
|
229
|
-
children:
|
|
230
|
-
variant:
|
|
228
|
+
"aria-label": l("botlit.executions.filters.statusGroup", "Filter by status"),
|
|
229
|
+
children: de.map((e) => /* @__PURE__ */ S(s, {
|
|
230
|
+
variant: w.includes(e) ? "default" : "outline",
|
|
231
231
|
size: "sm",
|
|
232
|
-
"aria-pressed":
|
|
233
|
-
onClick: () =>
|
|
234
|
-
children: [/* @__PURE__ */
|
|
232
|
+
"aria-pressed": w.includes(e),
|
|
233
|
+
onClick: () => T((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]),
|
|
234
|
+
children: [/* @__PURE__ */ x(P, { status: e }), /* @__PURE__ */ x("span", {
|
|
235
235
|
className: "ml-1",
|
|
236
236
|
children: H[e]
|
|
237
237
|
})]
|
|
238
238
|
}, e))
|
|
239
239
|
})]
|
|
240
240
|
}),
|
|
241
|
-
/* @__PURE__ */
|
|
241
|
+
/* @__PURE__ */ S("div", {
|
|
242
242
|
className: "flex flex-wrap items-end gap-4",
|
|
243
243
|
children: [
|
|
244
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ S("label", {
|
|
245
245
|
className: "grid gap-1 text-xs text-text-secondary",
|
|
246
|
-
children: [
|
|
246
|
+
children: [l("botlit.executions.filters.agent", "Agent"), /* @__PURE__ */ S(y, {
|
|
247
247
|
className: $,
|
|
248
|
-
value:
|
|
249
|
-
onChange: (e) =>
|
|
250
|
-
children: [/* @__PURE__ */
|
|
248
|
+
value: O,
|
|
249
|
+
onChange: (e) => j(e.target.value),
|
|
250
|
+
children: [/* @__PURE__ */ x("option", {
|
|
251
251
|
value: "",
|
|
252
|
-
children:
|
|
253
|
-
}),
|
|
252
|
+
children: l("botlit.executions.filters.allAgents", "All agents")
|
|
253
|
+
}), he.data.map((e) => /* @__PURE__ */ x("option", {
|
|
254
254
|
value: e.id,
|
|
255
255
|
children: e.name
|
|
256
256
|
}, e.id))]
|
|
257
257
|
})]
|
|
258
258
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
259
|
+
/* @__PURE__ */ S("label", {
|
|
260
260
|
className: "grid gap-1 text-xs text-text-secondary",
|
|
261
|
-
children: [
|
|
261
|
+
children: [l("botlit.executions.filters.bot", "Bot"), /* @__PURE__ */ S(y, {
|
|
262
262
|
className: $,
|
|
263
|
-
value:
|
|
263
|
+
value: M,
|
|
264
264
|
onChange: (e) => L(e.target.value),
|
|
265
|
-
children: [/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ x("option", {
|
|
266
266
|
value: "",
|
|
267
|
-
children:
|
|
268
|
-
}),
|
|
267
|
+
children: l("botlit.executions.filters.allBots", "All bots")
|
|
268
|
+
}), ge.data.map((e) => /* @__PURE__ */ x("option", {
|
|
269
269
|
value: e.id,
|
|
270
270
|
children: e.name
|
|
271
271
|
}, e.id))]
|
|
272
272
|
})]
|
|
273
273
|
}),
|
|
274
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ S("label", {
|
|
275
275
|
className: "grid gap-1 text-xs text-text-secondary",
|
|
276
|
-
children: [
|
|
276
|
+
children: [l("botlit.executions.filters.from", "From"), /* @__PURE__ */ x("input", {
|
|
277
277
|
type: "date",
|
|
278
278
|
className: $,
|
|
279
279
|
value: R,
|
|
@@ -281,9 +281,9 @@ var P = ({ status: e, className: t }) => {
|
|
|
281
281
|
onChange: (e) => z(e.target.value)
|
|
282
282
|
})]
|
|
283
283
|
}),
|
|
284
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ S("label", {
|
|
285
285
|
className: "grid gap-1 text-xs text-text-secondary",
|
|
286
|
-
children: [
|
|
286
|
+
children: [l("botlit.executions.filters.to", "To"), /* @__PURE__ */ x("input", {
|
|
287
287
|
type: "date",
|
|
288
288
|
className: $,
|
|
289
289
|
value: B,
|
|
@@ -291,17 +291,17 @@ var P = ({ status: e, className: t }) => {
|
|
|
291
291
|
onChange: (e) => V(e.target.value)
|
|
292
292
|
})]
|
|
293
293
|
}),
|
|
294
|
-
X && /* @__PURE__ */
|
|
294
|
+
X && /* @__PURE__ */ x(s, {
|
|
295
295
|
variant: "ghost",
|
|
296
296
|
size: "sm",
|
|
297
297
|
onClick: () => {
|
|
298
|
-
|
|
298
|
+
b(""), T([]), j(""), L(""), z(""), V("");
|
|
299
299
|
},
|
|
300
|
-
children:
|
|
300
|
+
children: l("botlit.executions.filters.clear", "Clear filters")
|
|
301
301
|
})
|
|
302
302
|
]
|
|
303
303
|
}),
|
|
304
|
-
|
|
304
|
+
ve ? /* @__PURE__ */ x("div", {
|
|
305
305
|
className: "space-y-4",
|
|
306
306
|
children: [
|
|
307
307
|
1,
|
|
@@ -309,110 +309,110 @@ var P = ({ status: e, className: t }) => {
|
|
|
309
309
|
3,
|
|
310
310
|
4,
|
|
311
311
|
5
|
|
312
|
-
].map((e) => /* @__PURE__ */
|
|
313
|
-
}) : G ? /* @__PURE__ */
|
|
312
|
+
].map((e) => /* @__PURE__ */ x("div", { className: "h-20 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
|
|
313
|
+
}) : G ? /* @__PURE__ */ x(te, {
|
|
314
314
|
resource: "executions",
|
|
315
315
|
error: G,
|
|
316
316
|
onRetry: () => void K()
|
|
317
|
-
}) : Z.length > 0 ? /* @__PURE__ */
|
|
317
|
+
}) : Z.length > 0 ? /* @__PURE__ */ S("div", {
|
|
318
318
|
className: "space-y-2",
|
|
319
|
-
children: [/* @__PURE__ */
|
|
319
|
+
children: [/* @__PURE__ */ S("div", {
|
|
320
320
|
"aria-hidden": "true",
|
|
321
321
|
className: "grid grid-cols-12 gap-4 px-4 py-2 text-sm font-medium text-text-secondary border-b border-border-subtle",
|
|
322
322
|
children: [
|
|
323
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ x("div", {
|
|
324
324
|
className: "col-span-2",
|
|
325
|
-
children:
|
|
325
|
+
children: l("botlit.executions.table.status", "Status")
|
|
326
326
|
}),
|
|
327
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ x("div", {
|
|
328
328
|
className: "col-span-3",
|
|
329
|
-
children:
|
|
329
|
+
children: l("botlit.executions.table.botAgent", "Bot / Agent")
|
|
330
330
|
}),
|
|
331
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ x("div", {
|
|
332
332
|
className: "col-span-2",
|
|
333
|
-
children:
|
|
333
|
+
children: l("botlit.executions.table.duration", "Duration")
|
|
334
334
|
}),
|
|
335
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ x("div", {
|
|
336
336
|
className: "col-span-2",
|
|
337
|
-
children:
|
|
337
|
+
children: l("botlit.executions.table.tokens", "Tokens")
|
|
338
338
|
}),
|
|
339
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ x("div", {
|
|
340
340
|
className: "col-span-1",
|
|
341
|
-
children:
|
|
341
|
+
children: l("botlit.executions.table.cost", "Cost")
|
|
342
342
|
}),
|
|
343
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ x("div", {
|
|
344
344
|
className: "col-span-2",
|
|
345
|
-
children:
|
|
345
|
+
children: l("botlit.executions.table.started", "Started")
|
|
346
346
|
})
|
|
347
347
|
]
|
|
348
|
-
}), /* @__PURE__ */
|
|
348
|
+
}), /* @__PURE__ */ x("ul", {
|
|
349
349
|
className: "space-y-2",
|
|
350
|
-
"aria-label":
|
|
351
|
-
children: Z.map((e) => /* @__PURE__ */
|
|
352
|
-
to:
|
|
353
|
-
"aria-label":
|
|
350
|
+
"aria-label": l("botlit.executions.list.label", "Executions"),
|
|
351
|
+
children: Z.map((e) => /* @__PURE__ */ x("li", { children: /* @__PURE__ */ x(ce, {
|
|
352
|
+
to: g(`executions/${e.id}`),
|
|
353
|
+
"aria-label": l("botlit.executions.list.rowLabel", "{{status}} run of {{agent}}, started {{started}}", {
|
|
354
354
|
status: H[e.status] ?? e.status,
|
|
355
355
|
agent: e.agentName ?? e.agentId ?? Q,
|
|
356
|
-
started:
|
|
356
|
+
started: h(e.createdAt)
|
|
357
357
|
}),
|
|
358
|
-
children: /* @__PURE__ */
|
|
358
|
+
children: /* @__PURE__ */ x(a, {
|
|
359
359
|
className: "hover:border-primary/50 transition-colors cursor-pointer",
|
|
360
|
-
children: /* @__PURE__ */
|
|
360
|
+
children: /* @__PURE__ */ x(o, {
|
|
361
361
|
className: "py-3",
|
|
362
|
-
children: /* @__PURE__ */
|
|
362
|
+
children: /* @__PURE__ */ S("div", {
|
|
363
363
|
className: "grid grid-cols-12 gap-4 items-center",
|
|
364
364
|
children: [
|
|
365
|
-
/* @__PURE__ */
|
|
365
|
+
/* @__PURE__ */ S("div", {
|
|
366
366
|
className: "col-span-2",
|
|
367
|
-
children: [/* @__PURE__ */
|
|
367
|
+
children: [/* @__PURE__ */ x(F, {
|
|
368
368
|
status: e.status,
|
|
369
369
|
labels: H
|
|
370
|
-
}), e.errorCode === "ORPHANED" && /* @__PURE__ */
|
|
370
|
+
}), e.errorCode === "ORPHANED" && /* @__PURE__ */ x("p", {
|
|
371
371
|
className: "mt-1 text-xs text-text-secondary",
|
|
372
|
-
children:
|
|
372
|
+
children: l("botlit.executions.status.orphaned", "Never finished (cleaned up)")
|
|
373
373
|
})]
|
|
374
374
|
}),
|
|
375
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ x("div", {
|
|
376
376
|
className: "col-span-3",
|
|
377
|
-
children: /* @__PURE__ */
|
|
377
|
+
children: /* @__PURE__ */ x(I, {
|
|
378
378
|
execution: e,
|
|
379
|
-
noBot:
|
|
379
|
+
noBot: Se,
|
|
380
380
|
noAgent: Q
|
|
381
381
|
})
|
|
382
382
|
}),
|
|
383
|
-
/* @__PURE__ */
|
|
383
|
+
/* @__PURE__ */ x("div", {
|
|
384
384
|
className: "col-span-2",
|
|
385
|
-
children: /* @__PURE__ */
|
|
385
|
+
children: /* @__PURE__ */ S("div", {
|
|
386
386
|
className: "flex items-center gap-1",
|
|
387
|
-
children: [/* @__PURE__ */
|
|
387
|
+
children: [/* @__PURE__ */ x(E, {
|
|
388
388
|
size: 14,
|
|
389
389
|
className: "text-text-secondary"
|
|
390
|
-
}), /* @__PURE__ */
|
|
390
|
+
}), /* @__PURE__ */ x("span", { children: p(e.duration) })]
|
|
391
391
|
})
|
|
392
392
|
}),
|
|
393
|
-
/* @__PURE__ */
|
|
393
|
+
/* @__PURE__ */ x("div", {
|
|
394
394
|
className: "col-span-2",
|
|
395
|
-
children: /* @__PURE__ */
|
|
395
|
+
children: /* @__PURE__ */ S("div", {
|
|
396
396
|
className: "flex items-center gap-1",
|
|
397
|
-
children: [/* @__PURE__ */
|
|
397
|
+
children: [/* @__PURE__ */ x(ue, {
|
|
398
398
|
size: 14,
|
|
399
399
|
className: "text-text-secondary"
|
|
400
|
-
}), /* @__PURE__ */
|
|
400
|
+
}), /* @__PURE__ */ x("span", { children: e.tokensUsed === null || e.tokensUsed === void 0 ? "—" : m(e.tokensUsed) })]
|
|
401
401
|
})
|
|
402
402
|
}),
|
|
403
|
-
/* @__PURE__ */
|
|
403
|
+
/* @__PURE__ */ x("div", {
|
|
404
404
|
className: "col-span-1",
|
|
405
|
-
children: /* @__PURE__ */
|
|
405
|
+
children: /* @__PURE__ */ S("div", {
|
|
406
406
|
className: "flex items-center gap-1",
|
|
407
|
-
children: [/* @__PURE__ */
|
|
407
|
+
children: [/* @__PURE__ */ x(D, {
|
|
408
408
|
size: 14,
|
|
409
409
|
className: "text-text-secondary"
|
|
410
|
-
}), /* @__PURE__ */
|
|
410
|
+
}), /* @__PURE__ */ x("span", { children: f(e.cost) })]
|
|
411
411
|
})
|
|
412
412
|
}),
|
|
413
|
-
/* @__PURE__ */
|
|
413
|
+
/* @__PURE__ */ x("div", {
|
|
414
414
|
className: "col-span-2 text-sm text-text-secondary",
|
|
415
|
-
children:
|
|
415
|
+
children: h(e.createdAt)
|
|
416
416
|
})
|
|
417
417
|
]
|
|
418
418
|
})
|
|
@@ -420,15 +420,15 @@ var P = ({ status: e, className: t }) => {
|
|
|
420
420
|
})
|
|
421
421
|
}) }, e.id))
|
|
422
422
|
})]
|
|
423
|
-
}) : /* @__PURE__ */
|
|
423
|
+
}) : /* @__PURE__ */ x(ee, {
|
|
424
424
|
illustration: "empty-search",
|
|
425
|
-
title:
|
|
426
|
-
description: X ?
|
|
425
|
+
title: l("botlit.executions.empty.title", "No executions found"),
|
|
426
|
+
description: X ? l("botlit.executions.empty.descriptionFiltered", "No executions match your filters. Try adjusting your search.") : l("botlit.executions.empty.descriptionNoData", "Executions will appear here when agents process requests.")
|
|
427
427
|
}),
|
|
428
|
-
/* @__PURE__ */
|
|
429
|
-
hasMore:
|
|
430
|
-
loadingMore:
|
|
431
|
-
onLoadMore: () => void
|
|
428
|
+
/* @__PURE__ */ x(ie, {
|
|
429
|
+
hasMore: ye,
|
|
430
|
+
loadingMore: q,
|
|
431
|
+
onLoadMore: () => void be(),
|
|
432
432
|
loadedCount: Z.length
|
|
433
433
|
})
|
|
434
434
|
]
|