@burdenoff/microfe-botmanor 2026.1205.3 → 2026.1206.1
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/pages/ExecutionDetailPage.js +168 -168
- package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionsPage.js +62 -62
- package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
- package/dist/botlit/utils/formatters.d.ts +5 -0
- package/dist/botlit/utils/formatters.js +6 -3
- package/dist/botlit/utils/formatters.js.map +1 -1
- package/package.json +1 -1
|
@@ -14,50 +14,50 @@ import { useExecution as te } from "../hooks/useExecutions.js";
|
|
|
14
14
|
import { useRerunExecution as ne } from "../hooks/useRerunExecution.js";
|
|
15
15
|
import { useLiveExecution as re } from "../hooks/useExecutionLiveUpdates.js";
|
|
16
16
|
import { LiveIndicator as _ } from "../components/LiveIndicator.js";
|
|
17
|
-
import { formatCurrency as v, formatDuration as ie,
|
|
17
|
+
import { formatCurrency as v, formatDuration as ie, formatOptionalNumber as y, formatRelativeTime as b } from "../utils/formatters.js";
|
|
18
18
|
import { ExecutionStatus as x } from "../../generated/wspace-types.js";
|
|
19
19
|
import { BOTMANOR_PERMISSIONS as S } from "../permissions/botmanorPermissions.js";
|
|
20
20
|
import { BotmanorPermissionGate as C } from "../permissions/useBotmanorPermissions.js";
|
|
21
21
|
import { executionStatusLabel as w, readablePayload as T } from "../utils/executionStatus.js";
|
|
22
|
-
import { useEffect as
|
|
23
|
-
import { PagePurpose as
|
|
24
|
-
import { Fragment as
|
|
25
|
-
import { useParams as
|
|
26
|
-
import { AlertTriangle as
|
|
27
|
-
import { toast as
|
|
22
|
+
import { useEffect as E } from "react";
|
|
23
|
+
import { PagePurpose as D } from "@burdenoff/fe-libs/ui";
|
|
24
|
+
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
25
|
+
import { useParams as j } from "react-router";
|
|
26
|
+
import { AlertTriangle as M, ArrowLeft as ae, Ban as N, CheckCircle as P, Clock as F, Copy as I, DollarSign as L, Hourglass as R, Play as z, RefreshCw as B, Timer as V, XCircle as H, Zap as U } from "lucide-react";
|
|
27
|
+
import { toast as W } from "sonner";
|
|
28
28
|
// src/botlit/pages/ExecutionDetailPage.tsx
|
|
29
|
-
var
|
|
29
|
+
var G = 3e3, K = /* @__PURE__ */ new Set(["AGENT", "APP"]), q = (e) => {
|
|
30
30
|
switch (e) {
|
|
31
|
-
case x.Completed: return /* @__PURE__ */
|
|
31
|
+
case x.Completed: return /* @__PURE__ */ k(P, {
|
|
32
32
|
className: "text-status-success-text",
|
|
33
33
|
size: 20
|
|
34
34
|
});
|
|
35
|
-
case x.Failed: return /* @__PURE__ */
|
|
35
|
+
case x.Failed: return /* @__PURE__ */ k(H, {
|
|
36
36
|
className: "text-status-error-text",
|
|
37
37
|
size: 20
|
|
38
38
|
});
|
|
39
|
-
case x.Timeout: return /* @__PURE__ */
|
|
39
|
+
case x.Timeout: return /* @__PURE__ */ k(V, {
|
|
40
40
|
className: "text-status-error-text",
|
|
41
41
|
size: 20
|
|
42
42
|
});
|
|
43
|
-
case x.Cancelled: return /* @__PURE__ */
|
|
43
|
+
case x.Cancelled: return /* @__PURE__ */ k(N, {
|
|
44
44
|
className: "text-text-secondary",
|
|
45
45
|
size: 20
|
|
46
46
|
});
|
|
47
|
-
case x.Running: return /* @__PURE__ */
|
|
47
|
+
case x.Running: return /* @__PURE__ */ k(B, {
|
|
48
48
|
className: "text-status-info-text motion-safe:animate-spin",
|
|
49
49
|
size: 20
|
|
50
50
|
});
|
|
51
|
-
case x.Pending: return /* @__PURE__ */
|
|
51
|
+
case x.Pending: return /* @__PURE__ */ k(R, {
|
|
52
52
|
className: "text-status-warning-text",
|
|
53
53
|
size: 20
|
|
54
54
|
});
|
|
55
|
-
default: return /* @__PURE__ */
|
|
55
|
+
default: return /* @__PURE__ */ k(M, {
|
|
56
56
|
className: "text-text-secondary",
|
|
57
57
|
size: 20
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
},
|
|
60
|
+
}, oe = (e) => {
|
|
61
61
|
switch (e) {
|
|
62
62
|
case x.Completed: return "success";
|
|
63
63
|
case x.Failed:
|
|
@@ -67,329 +67,329 @@ var W = 3e3, G = /* @__PURE__ */ new Set(["AGENT", "APP"]), K = (e) => {
|
|
|
67
67
|
default: return "secondary";
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
|
-
function
|
|
70
|
+
function J(e, t) {
|
|
71
71
|
let n = e?.[t];
|
|
72
72
|
return typeof n == "string" && n ? n : void 0;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Y(e, t) {
|
|
75
75
|
let n = e?.[t];
|
|
76
76
|
return typeof n == "number" && Number.isFinite(n) ? n : void 0;
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var X = ({ label: e, children: t, mono: n }) => /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("dt", {
|
|
79
79
|
className: "text-sm text-text-secondary",
|
|
80
80
|
children: e
|
|
81
|
-
}), /* @__PURE__ */
|
|
81
|
+
}), /* @__PURE__ */ k("dd", {
|
|
82
82
|
className: n ? "font-mono text-sm break-all" : "font-medium break-words",
|
|
83
83
|
children: t
|
|
84
|
-
})] }),
|
|
84
|
+
})] }), Z = ({ name: e, id: t }) => t ? /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("span", {
|
|
85
85
|
className: "block",
|
|
86
86
|
children: e ?? t
|
|
87
|
-
}), e && /* @__PURE__ */
|
|
87
|
+
}), e && /* @__PURE__ */ k("span", {
|
|
88
88
|
className: "block font-mono text-xs text-text-secondary",
|
|
89
89
|
children: t
|
|
90
|
-
})] }) : /* @__PURE__ */ O
|
|
91
|
-
let n = e.metadata, r = e.metrics, i =
|
|
92
|
-
return /* @__PURE__ */
|
|
90
|
+
})] }) : /* @__PURE__ */ k(O, { children: "—" }), se = ({ execution: e, t }) => {
|
|
91
|
+
let n = e.metadata, r = e.metrics, i = J(n, "model"), a = J(n, "providerType"), o = J(n, "agentVersionId"), f = r?.ragChunks ?? Y(n, "ragChunksUsed"), p = Y(n, "delegationCount"), m = n?.policyBlockedOutput === !0, h = t("botlit.executions.detail.notRecorded", "Not recorded");
|
|
92
|
+
return /* @__PURE__ */ A(s, { children: [/* @__PURE__ */ A(u, { children: [/* @__PURE__ */ k(d, { children: t("botlit.executions.detail.howAnswered", "How it was answered") }), /* @__PURE__ */ k(l, { children: t("botlit.executions.detail.howAnsweredHint", "What the runtime recorded for this run. Individual model and tool calls are not stored step by step.") })] }), /* @__PURE__ */ k(c, { children: /* @__PURE__ */ A("dl", {
|
|
93
93
|
className: "grid grid-cols-1 gap-6 md:grid-cols-3",
|
|
94
94
|
children: [
|
|
95
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ k(X, {
|
|
96
96
|
label: t("botlit.executions.detail.model", "Model"),
|
|
97
97
|
children: i ? a ? `${i} (${a})` : i : h
|
|
98
98
|
}),
|
|
99
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ k(X, {
|
|
100
100
|
label: t("botlit.executions.detail.agentVersion", "Agent version"),
|
|
101
101
|
mono: !0,
|
|
102
102
|
children: o ?? h
|
|
103
103
|
}),
|
|
104
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ k(X, {
|
|
105
105
|
label: t("botlit.executions.detail.tokenSplit", "Input / output tokens"),
|
|
106
106
|
children: r ? `${y(r.inputTokens)} / ${y(r.outputTokens)}` : h
|
|
107
107
|
}),
|
|
108
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ k(X, {
|
|
109
109
|
label: t("botlit.executions.detail.toolCalls", "Tool calls"),
|
|
110
110
|
children: r?.toolCalls ?? h
|
|
111
111
|
}),
|
|
112
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ k(X, {
|
|
113
113
|
label: t("botlit.executions.detail.knowledgeChunks", "Knowledge passages used"),
|
|
114
114
|
children: f ?? 0
|
|
115
115
|
}),
|
|
116
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ k(X, {
|
|
117
117
|
label: t("botlit.executions.detail.delegations", "Delegations to other agents"),
|
|
118
118
|
children: p ?? 0
|
|
119
119
|
}),
|
|
120
|
-
m && /* @__PURE__ */
|
|
120
|
+
m && /* @__PURE__ */ k(X, {
|
|
121
121
|
label: t("botlit.executions.detail.policy", "Policy"),
|
|
122
122
|
children: t("botlit.executions.detail.outputBlocked", "The answer was replaced because a content policy blocked it.")
|
|
123
123
|
})
|
|
124
124
|
]
|
|
125
125
|
}) })] });
|
|
126
|
-
},
|
|
127
|
-
let
|
|
128
|
-
if (
|
|
129
|
-
if (
|
|
130
|
-
let e = setInterval(() => void
|
|
126
|
+
}, Q = () => {
|
|
127
|
+
let O = i(), { executionId: N } = j(), { navigateTo: P } = e(), { data: R, loading: V, error: H, refetch: J } = te(N), Y = ne(), Q = R?.status, $ = re(N, Q, () => void J());
|
|
128
|
+
if (E(() => {
|
|
129
|
+
if ($ === "live" || Q !== x.Pending && Q !== x.Running) return;
|
|
130
|
+
let e = setInterval(() => void J(), G);
|
|
131
131
|
return () => clearInterval(e);
|
|
132
132
|
}, [
|
|
133
|
+
$,
|
|
133
134
|
Q,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
children: /* @__PURE__ */ O("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
|
|
135
|
+
J
|
|
136
|
+
]), V && !R) return /* @__PURE__ */ k(a, {
|
|
137
|
+
title: O("botlit.executions.detail.loading", "Loading…"),
|
|
138
|
+
children: /* @__PURE__ */ k("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
|
|
139
139
|
});
|
|
140
|
-
if (
|
|
141
|
-
title:
|
|
142
|
-
children: /* @__PURE__ */
|
|
140
|
+
if (H) return /* @__PURE__ */ k(a, {
|
|
141
|
+
title: O("botlit.executions.detail.title", "Execution"),
|
|
142
|
+
children: /* @__PURE__ */ k(h, {
|
|
143
143
|
resource: "this execution",
|
|
144
|
-
error:
|
|
145
|
-
onRetry: () => void
|
|
144
|
+
error: H,
|
|
145
|
+
onRetry: () => void J()
|
|
146
146
|
})
|
|
147
147
|
});
|
|
148
|
-
if (!
|
|
149
|
-
let e =
|
|
150
|
-
return /* @__PURE__ */
|
|
148
|
+
if (!R) {
|
|
149
|
+
let e = O("botlit.executions.detail.notFound", "Execution not found");
|
|
150
|
+
return /* @__PURE__ */ k(a, {
|
|
151
151
|
title: e,
|
|
152
|
-
children: /* @__PURE__ */
|
|
152
|
+
children: /* @__PURE__ */ k(o, {
|
|
153
153
|
kind: "not-found",
|
|
154
154
|
illustration: "empty-search",
|
|
155
155
|
title: e,
|
|
156
|
-
description:
|
|
157
|
-
action: /* @__PURE__ */
|
|
158
|
-
onClick: () =>
|
|
159
|
-
children:
|
|
156
|
+
description: O("botlit.executions.detail.notFoundHint", "This execution does not exist in this workspace."),
|
|
157
|
+
action: /* @__PURE__ */ k(f, {
|
|
158
|
+
onClick: () => P("executions"),
|
|
159
|
+
children: O("botlit.executions.detail.back", "Back to Executions")
|
|
160
160
|
})
|
|
161
161
|
})
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
let
|
|
164
|
+
let ce = w(O, R.status), le = T(R.output), ue = R.output !== null && R.output !== void 0 && R.output !== "", de = async () => {
|
|
165
165
|
try {
|
|
166
|
-
let e = await
|
|
167
|
-
|
|
166
|
+
let e = await Y.mutateAsync(R.id);
|
|
167
|
+
W.success("Re-run started"), P(`executions/${e.id}`);
|
|
168
168
|
} catch (e) {
|
|
169
|
-
|
|
169
|
+
W.error(e instanceof Error ? e.message : "Failed to re-run execution");
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
|
-
return /* @__PURE__ */
|
|
173
|
-
title: /* @__PURE__ */
|
|
172
|
+
return /* @__PURE__ */ k(a, {
|
|
173
|
+
title: /* @__PURE__ */ A("div", {
|
|
174
174
|
className: "flex items-center gap-3",
|
|
175
175
|
children: [
|
|
176
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ k(f, {
|
|
177
177
|
variant: "ghost",
|
|
178
178
|
size: "icon",
|
|
179
|
-
onClick: () =>
|
|
180
|
-
"aria-label":
|
|
181
|
-
children: /* @__PURE__ */
|
|
179
|
+
onClick: () => P("executions"),
|
|
180
|
+
"aria-label": O("botlit.executions.detail.back", "Back to Executions"),
|
|
181
|
+
children: /* @__PURE__ */ k(ae, { size: 20 })
|
|
182
182
|
}),
|
|
183
|
-
|
|
184
|
-
/* @__PURE__ */
|
|
183
|
+
q(R.status),
|
|
184
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("div", {
|
|
185
185
|
className: "flex items-center gap-2",
|
|
186
186
|
children: [
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
variant:
|
|
190
|
-
children:
|
|
187
|
+
/* @__PURE__ */ k("span", { children: O("botlit.executions.detail.heading", "Execution {{id}}…", { id: R.id.slice(0, 8) }) }),
|
|
188
|
+
/* @__PURE__ */ k(p, {
|
|
189
|
+
variant: oe(R.status),
|
|
190
|
+
children: ce
|
|
191
191
|
}),
|
|
192
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ k(_, { state: $ })
|
|
193
193
|
]
|
|
194
|
-
}), /* @__PURE__ */
|
|
194
|
+
}), /* @__PURE__ */ A("p", {
|
|
195
195
|
className: "text-sm font-normal text-text-secondary",
|
|
196
196
|
children: [
|
|
197
|
-
|
|
197
|
+
R.appName ?? R.appId ?? "—",
|
|
198
198
|
" /",
|
|
199
199
|
" ",
|
|
200
|
-
|
|
200
|
+
R.agentName ?? R.agentId ?? "—"
|
|
201
201
|
]
|
|
202
202
|
})] })
|
|
203
203
|
]
|
|
204
204
|
}),
|
|
205
|
-
actions: /* @__PURE__ */
|
|
205
|
+
actions: /* @__PURE__ */ A("div", {
|
|
206
206
|
className: "flex gap-2",
|
|
207
|
-
children: [/* @__PURE__ */
|
|
207
|
+
children: [/* @__PURE__ */ k(f, {
|
|
208
208
|
variant: "outline",
|
|
209
|
-
leftIcon: /* @__PURE__ */
|
|
209
|
+
leftIcon: /* @__PURE__ */ k(I, { size: 16 }),
|
|
210
210
|
onClick: () => {
|
|
211
|
-
n(
|
|
211
|
+
n(R.id), t() && r(O("botlit.executions.detail.copied", "Copied"));
|
|
212
212
|
},
|
|
213
|
-
children:
|
|
214
|
-
}),
|
|
213
|
+
children: O("botlit.executions.detail.copyId", "Copy ID")
|
|
214
|
+
}), K.has(R.type) && /* @__PURE__ */ k(C, {
|
|
215
215
|
permission: S.EXECUTION_CREATE,
|
|
216
|
-
children: /* @__PURE__ */
|
|
217
|
-
leftIcon: /* @__PURE__ */
|
|
218
|
-
onClick: () => void
|
|
219
|
-
isLoading:
|
|
216
|
+
children: /* @__PURE__ */ k(f, {
|
|
217
|
+
leftIcon: /* @__PURE__ */ k(z, { size: 16 }),
|
|
218
|
+
onClick: () => void de(),
|
|
219
|
+
isLoading: Y.isPending,
|
|
220
220
|
children: "Run again"
|
|
221
221
|
})
|
|
222
222
|
})]
|
|
223
223
|
}),
|
|
224
|
-
children: /* @__PURE__ */
|
|
224
|
+
children: /* @__PURE__ */ A("div", {
|
|
225
225
|
className: "space-y-6",
|
|
226
226
|
children: [
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
icon: /* @__PURE__ */
|
|
229
|
-
children:
|
|
227
|
+
/* @__PURE__ */ k(D, {
|
|
228
|
+
icon: /* @__PURE__ */ k(F, { size: 18 }),
|
|
229
|
+
children: O("botlit.executions.detail.purpose", "This is the record of one agent run — its status, how long it took, the tokens and cost it consumed, the model and agent version that answered, and its input and output. Use it to debug a failure, understand an unexpected answer, or audit what the agent did on a given request.")
|
|
230
230
|
}),
|
|
231
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ A("div", {
|
|
232
232
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
233
233
|
children: [
|
|
234
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ k(s, {
|
|
235
235
|
treatment: "glass",
|
|
236
236
|
glow: !0,
|
|
237
|
-
children: /* @__PURE__ */
|
|
237
|
+
children: /* @__PURE__ */ A(c, {
|
|
238
238
|
className: "pt-6 text-center",
|
|
239
239
|
children: [
|
|
240
|
-
/* @__PURE__ */
|
|
241
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ k(F, { className: "h-6 w-6 mx-auto mb-2 text-text-secondary" }),
|
|
241
|
+
/* @__PURE__ */ k("p", {
|
|
242
242
|
className: "text-2xl font-bold tabular-nums",
|
|
243
|
-
children: ie(
|
|
243
|
+
children: ie(R.duration)
|
|
244
244
|
}),
|
|
245
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ k("p", {
|
|
246
246
|
className: "text-sm text-text-secondary",
|
|
247
|
-
children:
|
|
247
|
+
children: O("botlit.executions.table.duration", "Duration")
|
|
248
248
|
})
|
|
249
249
|
]
|
|
250
250
|
})
|
|
251
251
|
}),
|
|
252
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ k(s, {
|
|
253
253
|
treatment: "metric",
|
|
254
|
-
children: /* @__PURE__ */
|
|
254
|
+
children: /* @__PURE__ */ A(c, {
|
|
255
255
|
className: "pt-6 text-center",
|
|
256
256
|
children: [
|
|
257
|
-
/* @__PURE__ */
|
|
258
|
-
/* @__PURE__ */
|
|
257
|
+
/* @__PURE__ */ k(U, { className: "h-6 w-6 mx-auto mb-2 text-text-secondary" }),
|
|
258
|
+
/* @__PURE__ */ k("p", {
|
|
259
259
|
className: "text-2xl font-bold tabular-nums",
|
|
260
|
-
children:
|
|
260
|
+
children: y(R.tokensUsed)
|
|
261
261
|
}),
|
|
262
|
-
/* @__PURE__ */
|
|
262
|
+
/* @__PURE__ */ k("p", {
|
|
263
263
|
className: "text-sm text-text-secondary",
|
|
264
|
-
children:
|
|
264
|
+
children: O("botlit.executions.table.tokens", "Tokens")
|
|
265
265
|
})
|
|
266
266
|
]
|
|
267
267
|
})
|
|
268
268
|
}),
|
|
269
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ k(s, {
|
|
270
270
|
treatment: "metric",
|
|
271
|
-
children: /* @__PURE__ */
|
|
271
|
+
children: /* @__PURE__ */ A(c, {
|
|
272
272
|
className: "pt-6 text-center",
|
|
273
273
|
children: [
|
|
274
|
-
/* @__PURE__ */
|
|
275
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ k(L, { className: "h-6 w-6 mx-auto mb-2 text-text-secondary" }),
|
|
275
|
+
/* @__PURE__ */ k("p", {
|
|
276
276
|
className: "text-2xl font-bold tabular-nums",
|
|
277
|
-
children: v(
|
|
277
|
+
children: v(R.cost)
|
|
278
278
|
}),
|
|
279
|
-
/* @__PURE__ */
|
|
279
|
+
/* @__PURE__ */ k("p", {
|
|
280
280
|
className: "text-sm text-text-secondary",
|
|
281
|
-
children:
|
|
281
|
+
children: R.cost === null || R.cost === void 0 ? O("botlit.executions.detail.costUnknown", "Cost (price unknown)") : O("botlit.executions.table.cost", "Cost")
|
|
282
282
|
})
|
|
283
283
|
]
|
|
284
284
|
})
|
|
285
285
|
}),
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ k(s, {
|
|
287
287
|
treatment: "metric",
|
|
288
|
-
children: /* @__PURE__ */
|
|
288
|
+
children: /* @__PURE__ */ A(c, {
|
|
289
289
|
className: "pt-6 text-center",
|
|
290
290
|
children: [
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ k(B, { className: "h-6 w-6 mx-auto mb-2 text-text-secondary" }),
|
|
292
|
+
/* @__PURE__ */ k("p", {
|
|
293
293
|
className: "text-2xl font-bold capitalize",
|
|
294
|
-
children:
|
|
294
|
+
children: R.type.toLowerCase()
|
|
295
295
|
}),
|
|
296
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ k("p", {
|
|
297
297
|
className: "text-sm text-text-secondary",
|
|
298
|
-
children:
|
|
298
|
+
children: O("botlit.executions.detail.type", "Type")
|
|
299
299
|
})
|
|
300
300
|
]
|
|
301
301
|
})
|
|
302
302
|
})
|
|
303
303
|
]
|
|
304
304
|
}),
|
|
305
|
-
(
|
|
305
|
+
(R.errorMessage || R.errorCode) && /* @__PURE__ */ A(s, { children: [/* @__PURE__ */ A(u, { children: [/* @__PURE__ */ A(d, {
|
|
306
306
|
className: "flex items-center gap-2 text-status-error-text",
|
|
307
|
-
children: [/* @__PURE__ */
|
|
308
|
-
}),
|
|
307
|
+
children: [/* @__PURE__ */ k(M, { size: 18 }), O("botlit.executions.detail.failure", "Failure")]
|
|
308
|
+
}), R.errorCode && /* @__PURE__ */ k(l, { children: R.errorCode })] }), /* @__PURE__ */ A(c, {
|
|
309
309
|
className: "space-y-3",
|
|
310
310
|
children: [
|
|
311
|
-
|
|
311
|
+
R.errorCode === "ORPHANED" && /* @__PURE__ */ k("p", {
|
|
312
312
|
className: "text-sm text-text-primary",
|
|
313
|
-
children:
|
|
313
|
+
children: O("botlit.executions.detail.orphanedHint", "This run never finished, so the cleanup job closed it as failed.")
|
|
314
314
|
}),
|
|
315
|
-
|
|
315
|
+
R.errorMessage && /* @__PURE__ */ k("p", {
|
|
316
316
|
className: "text-sm text-text-primary",
|
|
317
|
-
children:
|
|
317
|
+
children: R.errorMessage
|
|
318
318
|
}),
|
|
319
|
-
|
|
319
|
+
R.errorDetails && /* @__PURE__ */ k("pre", {
|
|
320
320
|
className: "max-h-64 overflow-auto rounded-lg bg-bg-sunken p-3 font-mono text-xs",
|
|
321
|
-
children: JSON.stringify(
|
|
321
|
+
children: JSON.stringify(R.errorDetails, null, 2)
|
|
322
322
|
})
|
|
323
323
|
]
|
|
324
324
|
})] }),
|
|
325
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ A(s, { children: [/* @__PURE__ */ k(u, { children: /* @__PURE__ */ k(d, { children: O("botlit.executions.detail.runDetails", "Run details") }) }), /* @__PURE__ */ k(c, { children: /* @__PURE__ */ A("dl", {
|
|
326
326
|
className: "grid grid-cols-1 gap-6 md:grid-cols-3",
|
|
327
327
|
children: [
|
|
328
|
-
/* @__PURE__ */
|
|
329
|
-
label:
|
|
328
|
+
/* @__PURE__ */ k(X, {
|
|
329
|
+
label: O("botlit.executions.detail.executionId", "Execution ID"),
|
|
330
330
|
mono: !0,
|
|
331
|
-
children:
|
|
331
|
+
children: R.id
|
|
332
332
|
}),
|
|
333
|
-
/* @__PURE__ */
|
|
334
|
-
label:
|
|
335
|
-
children: /* @__PURE__ */
|
|
336
|
-
name:
|
|
337
|
-
id:
|
|
333
|
+
/* @__PURE__ */ k(X, {
|
|
334
|
+
label: O("botlit.executions.filters.bot", "Bot"),
|
|
335
|
+
children: /* @__PURE__ */ k(Z, {
|
|
336
|
+
name: R.appName,
|
|
337
|
+
id: R.appId
|
|
338
338
|
})
|
|
339
339
|
}),
|
|
340
|
-
/* @__PURE__ */
|
|
341
|
-
label:
|
|
342
|
-
children: /* @__PURE__ */
|
|
343
|
-
name:
|
|
344
|
-
id:
|
|
340
|
+
/* @__PURE__ */ k(X, {
|
|
341
|
+
label: O("botlit.executions.filters.agent", "Agent"),
|
|
342
|
+
children: /* @__PURE__ */ k(Z, {
|
|
343
|
+
name: R.agentName,
|
|
344
|
+
id: R.agentId
|
|
345
345
|
})
|
|
346
346
|
}),
|
|
347
|
-
/* @__PURE__ */
|
|
348
|
-
label:
|
|
347
|
+
/* @__PURE__ */ k(X, {
|
|
348
|
+
label: O("botlit.executions.detail.conversation", "Conversation"),
|
|
349
349
|
mono: !0,
|
|
350
|
-
children:
|
|
350
|
+
children: R.conversationId ?? "—"
|
|
351
351
|
}),
|
|
352
|
-
/* @__PURE__ */
|
|
353
|
-
label:
|
|
354
|
-
children: b(
|
|
352
|
+
/* @__PURE__ */ k(X, {
|
|
353
|
+
label: O("botlit.executions.table.started", "Started"),
|
|
354
|
+
children: b(R.createdAt)
|
|
355
355
|
}),
|
|
356
|
-
/* @__PURE__ */
|
|
357
|
-
label:
|
|
358
|
-
children: b(
|
|
356
|
+
/* @__PURE__ */ k(X, {
|
|
357
|
+
label: O("botlit.executions.detail.completed", "Completed"),
|
|
358
|
+
children: b(R.completedAt)
|
|
359
359
|
})
|
|
360
360
|
]
|
|
361
361
|
}) })] }),
|
|
362
|
-
/* @__PURE__ */
|
|
363
|
-
execution:
|
|
364
|
-
t:
|
|
362
|
+
/* @__PURE__ */ k(se, {
|
|
363
|
+
execution: R,
|
|
364
|
+
t: O
|
|
365
365
|
}),
|
|
366
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ A("div", {
|
|
367
367
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
|
|
368
|
-
children: [/* @__PURE__ */
|
|
368
|
+
children: [/* @__PURE__ */ A(s, { children: [/* @__PURE__ */ k(u, { children: /* @__PURE__ */ k(d, { children: O("botlit.executions.detail.input", "Input") }) }), /* @__PURE__ */ k(c, { children: /* @__PURE__ */ k("pre", {
|
|
369
369
|
className: "max-h-96 overflow-auto whitespace-pre-wrap break-words rounded-lg bg-bg-sunken p-3 font-sans text-sm",
|
|
370
|
-
children: T(
|
|
371
|
-
}) })] }), /* @__PURE__ */
|
|
370
|
+
children: T(R.input) || "—"
|
|
371
|
+
}) })] }), /* @__PURE__ */ A(s, { children: [/* @__PURE__ */ k(u, { children: /* @__PURE__ */ k(d, { children: O("botlit.executions.detail.output", "Output") }) }), /* @__PURE__ */ k(c, { children: ue ? /* @__PURE__ */ k("pre", {
|
|
372
372
|
className: "max-h-96 overflow-auto whitespace-pre-wrap break-words rounded-lg bg-bg-sunken p-3 font-sans text-sm",
|
|
373
|
-
children:
|
|
374
|
-
}) : /* @__PURE__ */
|
|
373
|
+
children: le || O("botlit.executions.detail.emptyOutput", "The run returned an empty answer.")
|
|
374
|
+
}) : /* @__PURE__ */ k("p", {
|
|
375
375
|
className: "text-sm text-text-secondary",
|
|
376
|
-
children:
|
|
376
|
+
children: O("botlit.executions.detail.noOutput", "This run has not produced an output.")
|
|
377
377
|
}) })] })]
|
|
378
378
|
}),
|
|
379
|
-
/* @__PURE__ */
|
|
380
|
-
/* @__PURE__ */
|
|
381
|
-
executionId:
|
|
382
|
-
status:
|
|
379
|
+
/* @__PURE__ */ k(g, { metadata: R.metadata }),
|
|
380
|
+
/* @__PURE__ */ k(ee, {
|
|
381
|
+
executionId: R.id,
|
|
382
|
+
status: R.status
|
|
383
383
|
}),
|
|
384
|
-
/* @__PURE__ */
|
|
385
|
-
|
|
384
|
+
/* @__PURE__ */ k(m, { metadata: R.metadata }),
|
|
385
|
+
R.metadata && Object.keys(R.metadata).length > 0 && /* @__PURE__ */ A(s, { children: [/* @__PURE__ */ k(u, { children: /* @__PURE__ */ k(d, { children: O("botlit.executions.detail.rawMetadata", "Recorded metadata") }) }), /* @__PURE__ */ k(c, { children: /* @__PURE__ */ k("pre", {
|
|
386
386
|
className: "max-h-64 overflow-auto rounded-lg bg-bg-sunken p-3 font-mono text-xs",
|
|
387
|
-
children: JSON.stringify(
|
|
387
|
+
children: JSON.stringify(R.metadata, null, 2)
|
|
388
388
|
}) })] })
|
|
389
389
|
]
|
|
390
390
|
})
|
|
391
391
|
});
|
|
392
392
|
};
|
|
393
|
-
export {
|
|
393
|
+
export { Q as ExecutionDetailPage };
|
|
394
394
|
|
|
395
395
|
//# sourceMappingURL=ExecutionDetailPage.js.map
|