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