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