@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.
@@ -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, formatNumber as y, formatRelativeTime as b } from "../utils/formatters.js";
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 ae } from "react";
23
- import { PagePurpose as E } from "@burdenoff/fe-libs/ui";
24
- import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
25
- import { useParams as A } from "react-router";
26
- 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";
27
- import { toast as U } from "sonner";
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 W = 3e3, G = /* @__PURE__ */ new Set(["AGENT", "APP"]), K = (e) => {
29
+ var G = 3e3, K = /* @__PURE__ */ new Set(["AGENT", "APP"]), q = (e) => {
30
30
  switch (e) {
31
- case x.Completed: return /* @__PURE__ */ O(N, {
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__ */ O(V, {
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__ */ O(B, {
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__ */ O(M, {
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__ */ O(z, {
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__ */ O(L, {
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__ */ O(j, {
55
+ default: return /* @__PURE__ */ k(M, {
56
56
  className: "text-text-secondary",
57
57
  size: 20
58
58
  });
59
59
  }
60
- }, se = (e) => {
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 q(e, t) {
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 J(e, t) {
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 Y = ({ label: e, children: t, mono: n }) => /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("dt", {
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__ */ O("dd", {
81
+ }), /* @__PURE__ */ k("dd", {
82
82
  className: n ? "font-mono text-sm break-all" : "font-medium break-words",
83
83
  children: t
84
- })] }), X = ({ name: e, id: t }) => t ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("span", {
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__ */ O("span", {
87
+ }), e && /* @__PURE__ */ k("span", {
88
88
  className: "block font-mono text-xs text-text-secondary",
89
89
  children: t
90
- })] }) : /* @__PURE__ */ O(D, { children: "—" }), ce = ({ execution: e, t }) => {
91
- let n = e.metadata, r = e.metrics, i = q(n, "model"), a = q(n, "providerType"), o = q(n, "agentVersionId"), f = r?.ragChunks ?? J(n, "ragChunksUsed"), p = J(n, "delegationCount"), m = n?.policyBlockedOutput === !0, h = t("botlit.executions.detail.notRecorded", "Not recorded");
92
- return /* @__PURE__ */ k(s, { children: [/* @__PURE__ */ k(u, { children: [/* @__PURE__ */ O(d, { children: t("botlit.executions.detail.howAnswered", "How it was answered") }), /* @__PURE__ */ O(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__ */ O(c, { children: /* @__PURE__ */ k("dl", {
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__ */ O(Y, {
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__ */ O(Y, {
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__ */ O(Y, {
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__ */ O(Y, {
108
+ /* @__PURE__ */ k(X, {
109
109
  label: t("botlit.executions.detail.toolCalls", "Tool calls"),
110
110
  children: r?.toolCalls ?? h
111
111
  }),
112
- /* @__PURE__ */ O(Y, {
112
+ /* @__PURE__ */ k(X, {
113
113
  label: t("botlit.executions.detail.knowledgeChunks", "Knowledge passages used"),
114
114
  children: f ?? 0
115
115
  }),
116
- /* @__PURE__ */ O(Y, {
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__ */ O(Y, {
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
- }, Z = () => {
127
- let D = i(), { executionId: M } = A(), { navigateTo: N } = e(), { data: L, loading: B, error: V, refetch: q } = te(M), J = ne(), Z = L?.status, Q = re(M, Z, () => void q());
128
- if (ae(() => {
129
- if (Q === "live" || Z !== x.Pending && Z !== x.Running) return;
130
- let e = setInterval(() => void q(), W);
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
- Z,
135
- q
136
- ]), B && !L) return /* @__PURE__ */ O(a, {
137
- title: D("botlit.executions.detail.loading", "Loading…"),
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 (V) return /* @__PURE__ */ O(a, {
141
- title: D("botlit.executions.detail.title", "Execution"),
142
- children: /* @__PURE__ */ O(h, {
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: V,
145
- onRetry: () => void q()
144
+ error: H,
145
+ onRetry: () => void J()
146
146
  })
147
147
  });
148
- if (!L) {
149
- let e = D("botlit.executions.detail.notFound", "Execution not found");
150
- return /* @__PURE__ */ O(a, {
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__ */ O(o, {
152
+ children: /* @__PURE__ */ k(o, {
153
153
  kind: "not-found",
154
154
  illustration: "empty-search",
155
155
  title: e,
156
- description: D("botlit.executions.detail.notFoundHint", "This execution does not exist in this workspace."),
157
- action: /* @__PURE__ */ O(f, {
158
- onClick: () => N("executions"),
159
- children: D("botlit.executions.detail.back", "Back to Executions")
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 le = w(D, L.status), $ = T(L.output), ue = async () => {
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 J.mutateAsync(L.id);
167
- U.success("Re-run started"), N(`executions/${e.id}`);
166
+ let e = await Y.mutateAsync(R.id);
167
+ W.success("Re-run started"), P(`executions/${e.id}`);
168
168
  } catch (e) {
169
- U.error(e instanceof Error ? e.message : "Failed to re-run execution");
169
+ W.error(e instanceof Error ? e.message : "Failed to re-run execution");
170
170
  }
171
171
  };
172
- return /* @__PURE__ */ O(a, {
173
- title: /* @__PURE__ */ k("div", {
172
+ return /* @__PURE__ */ k(a, {
173
+ title: /* @__PURE__ */ A("div", {
174
174
  className: "flex items-center gap-3",
175
175
  children: [
176
- /* @__PURE__ */ O(f, {
176
+ /* @__PURE__ */ k(f, {
177
177
  variant: "ghost",
178
178
  size: "icon",
179
- onClick: () => N("executions"),
180
- "aria-label": D("botlit.executions.detail.back", "Back to Executions"),
181
- children: /* @__PURE__ */ O(oe, { size: 20 })
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
- K(L.status),
184
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("div", {
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__ */ O("span", { children: D("botlit.executions.detail.heading", "Execution {{id}}…", { id: L.id.slice(0, 8) }) }),
188
- /* @__PURE__ */ O(p, {
189
- variant: se(L.status),
190
- children: le
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__ */ O(_, { state: Q })
192
+ /* @__PURE__ */ k(_, { state: $ })
193
193
  ]
194
- }), /* @__PURE__ */ k("p", {
194
+ }), /* @__PURE__ */ A("p", {
195
195
  className: "text-sm font-normal text-text-secondary",
196
196
  children: [
197
- L.appName ?? L.appId ?? "—",
197
+ R.appName ?? R.appId ?? "—",
198
198
  " /",
199
199
  " ",
200
- L.agentName ?? L.agentId ?? "—"
200
+ R.agentName ?? R.agentId ?? "—"
201
201
  ]
202
202
  })] })
203
203
  ]
204
204
  }),
205
- actions: /* @__PURE__ */ k("div", {
205
+ actions: /* @__PURE__ */ A("div", {
206
206
  className: "flex gap-2",
207
- children: [/* @__PURE__ */ O(f, {
207
+ children: [/* @__PURE__ */ k(f, {
208
208
  variant: "outline",
209
- leftIcon: /* @__PURE__ */ O(F, { size: 16 }),
209
+ leftIcon: /* @__PURE__ */ k(I, { size: 16 }),
210
210
  onClick: () => {
211
- n(L.id), t() && r(D("botlit.executions.detail.copied", "Copied"));
211
+ n(R.id), t() && r(O("botlit.executions.detail.copied", "Copied"));
212
212
  },
213
- children: D("botlit.executions.detail.copyId", "Copy ID")
214
- }), G.has(L.type) && /* @__PURE__ */ O(C, {
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__ */ O(f, {
217
- leftIcon: /* @__PURE__ */ O(R, { size: 16 }),
218
- onClick: () => void ue(),
219
- isLoading: J.isPending,
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__ */ k("div", {
224
+ children: /* @__PURE__ */ A("div", {
225
225
  className: "space-y-6",
226
226
  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.")
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__ */ k("div", {
231
+ /* @__PURE__ */ A("div", {
232
232
  className: "grid grid-cols-2 md:grid-cols-4 gap-4",
233
233
  children: [
234
- /* @__PURE__ */ O(s, {
234
+ /* @__PURE__ */ k(s, {
235
235
  treatment: "glass",
236
236
  glow: !0,
237
- children: /* @__PURE__ */ k(c, {
237
+ children: /* @__PURE__ */ A(c, {
238
238
  className: "pt-6 text-center",
239
239
  children: [
240
- /* @__PURE__ */ O(P, { className: "h-6 w-6 mx-auto mb-2 text-text-secondary" }),
241
- /* @__PURE__ */ O("p", {
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(L.duration)
243
+ children: ie(R.duration)
244
244
  }),
245
- /* @__PURE__ */ O("p", {
245
+ /* @__PURE__ */ k("p", {
246
246
  className: "text-sm text-text-secondary",
247
- children: D("botlit.executions.table.duration", "Duration")
247
+ children: O("botlit.executions.table.duration", "Duration")
248
248
  })
249
249
  ]
250
250
  })
251
251
  }),
252
- /* @__PURE__ */ O(s, {
252
+ /* @__PURE__ */ k(s, {
253
253
  treatment: "metric",
254
- children: /* @__PURE__ */ k(c, {
254
+ children: /* @__PURE__ */ A(c, {
255
255
  className: "pt-6 text-center",
256
256
  children: [
257
- /* @__PURE__ */ O(H, { className: "h-6 w-6 mx-auto mb-2 text-text-secondary" }),
258
- /* @__PURE__ */ O("p", {
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: L.tokensUsed === null || L.tokensUsed === void 0 ? "—" : y(L.tokensUsed)
260
+ children: y(R.tokensUsed)
261
261
  }),
262
- /* @__PURE__ */ O("p", {
262
+ /* @__PURE__ */ k("p", {
263
263
  className: "text-sm text-text-secondary",
264
- children: D("botlit.executions.table.tokens", "Tokens")
264
+ children: O("botlit.executions.table.tokens", "Tokens")
265
265
  })
266
266
  ]
267
267
  })
268
268
  }),
269
- /* @__PURE__ */ O(s, {
269
+ /* @__PURE__ */ k(s, {
270
270
  treatment: "metric",
271
- children: /* @__PURE__ */ k(c, {
271
+ children: /* @__PURE__ */ A(c, {
272
272
  className: "pt-6 text-center",
273
273
  children: [
274
- /* @__PURE__ */ O(I, { className: "h-6 w-6 mx-auto mb-2 text-text-secondary" }),
275
- /* @__PURE__ */ O("p", {
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(L.cost)
277
+ children: v(R.cost)
278
278
  }),
279
- /* @__PURE__ */ O("p", {
279
+ /* @__PURE__ */ k("p", {
280
280
  className: "text-sm text-text-secondary",
281
- children: L.cost === null || L.cost === void 0 ? D("botlit.executions.detail.costUnknown", "Cost (price unknown)") : D("botlit.executions.table.cost", "Cost")
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__ */ O(s, {
286
+ /* @__PURE__ */ k(s, {
287
287
  treatment: "metric",
288
- children: /* @__PURE__ */ k(c, {
288
+ children: /* @__PURE__ */ A(c, {
289
289
  className: "pt-6 text-center",
290
290
  children: [
291
- /* @__PURE__ */ O(z, { className: "h-6 w-6 mx-auto mb-2 text-text-secondary" }),
292
- /* @__PURE__ */ O("p", {
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: L.type.toLowerCase()
294
+ children: R.type.toLowerCase()
295
295
  }),
296
- /* @__PURE__ */ O("p", {
296
+ /* @__PURE__ */ k("p", {
297
297
  className: "text-sm text-text-secondary",
298
- children: D("botlit.executions.detail.type", "Type")
298
+ children: O("botlit.executions.detail.type", "Type")
299
299
  })
300
300
  ]
301
301
  })
302
302
  })
303
303
  ]
304
304
  }),
305
- (L.errorMessage || L.errorCode) && /* @__PURE__ */ k(s, { children: [/* @__PURE__ */ k(u, { children: [/* @__PURE__ */ k(d, {
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__ */ O(j, { size: 18 }), D("botlit.executions.detail.failure", "Failure")]
308
- }), L.errorCode && /* @__PURE__ */ O(l, { children: L.errorCode })] }), /* @__PURE__ */ k(c, {
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
- L.errorCode === "ORPHANED" && /* @__PURE__ */ O("p", {
311
+ R.errorCode === "ORPHANED" && /* @__PURE__ */ k("p", {
312
312
  className: "text-sm text-text-primary",
313
- children: D("botlit.executions.detail.orphanedHint", "This run never finished, so the cleanup job closed it as failed.")
313
+ children: O("botlit.executions.detail.orphanedHint", "This run never finished, so the cleanup job closed it as failed.")
314
314
  }),
315
- L.errorMessage && /* @__PURE__ */ O("p", {
315
+ R.errorMessage && /* @__PURE__ */ k("p", {
316
316
  className: "text-sm text-text-primary",
317
- children: L.errorMessage
317
+ children: R.errorMessage
318
318
  }),
319
- L.errorDetails && /* @__PURE__ */ O("pre", {
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(L.errorDetails, null, 2)
321
+ children: JSON.stringify(R.errorDetails, null, 2)
322
322
  })
323
323
  ]
324
324
  })] }),
325
- /* @__PURE__ */ k(s, { children: [/* @__PURE__ */ O(u, { children: /* @__PURE__ */ O(d, { children: D("botlit.executions.detail.runDetails", "Run details") }) }), /* @__PURE__ */ O(c, { children: /* @__PURE__ */ k("dl", {
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__ */ O(Y, {
329
- label: D("botlit.executions.detail.executionId", "Execution ID"),
328
+ /* @__PURE__ */ k(X, {
329
+ label: O("botlit.executions.detail.executionId", "Execution ID"),
330
330
  mono: !0,
331
- children: L.id
331
+ children: R.id
332
332
  }),
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
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__ */ O(Y, {
341
- label: D("botlit.executions.filters.agent", "Agent"),
342
- children: /* @__PURE__ */ O(X, {
343
- name: L.agentName,
344
- id: L.agentId
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__ */ O(Y, {
348
- label: D("botlit.executions.detail.conversation", "Conversation"),
347
+ /* @__PURE__ */ k(X, {
348
+ label: O("botlit.executions.detail.conversation", "Conversation"),
349
349
  mono: !0,
350
- children: L.conversationId ?? "—"
350
+ children: R.conversationId ?? "—"
351
351
  }),
352
- /* @__PURE__ */ O(Y, {
353
- label: D("botlit.executions.table.started", "Started"),
354
- children: b(L.createdAt)
352
+ /* @__PURE__ */ k(X, {
353
+ label: O("botlit.executions.table.started", "Started"),
354
+ children: b(R.createdAt)
355
355
  }),
356
- /* @__PURE__ */ O(Y, {
357
- label: D("botlit.executions.detail.completed", "Completed"),
358
- children: b(L.completedAt)
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__ */ O(ce, {
363
- execution: L,
364
- t: D
362
+ /* @__PURE__ */ k(se, {
363
+ execution: R,
364
+ t: O
365
365
  }),
366
- /* @__PURE__ */ k("div", {
366
+ /* @__PURE__ */ A("div", {
367
367
  className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
368
- children: [/* @__PURE__ */ k(s, { children: [/* @__PURE__ */ O(u, { children: /* @__PURE__ */ O(d, { children: D("botlit.executions.detail.input", "Input") }) }), /* @__PURE__ */ O(c, { children: /* @__PURE__ */ O("pre", {
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(L.input) || "—"
371
- }) })] }), /* @__PURE__ */ k(s, { children: [/* @__PURE__ */ O(u, { children: /* @__PURE__ */ O(d, { children: D("botlit.executions.detail.output", "Output") }) }), /* @__PURE__ */ O(c, { children: $ ? /* @__PURE__ */ O("pre", {
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__ */ O("p", {
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: D("botlit.executions.detail.noOutput", "This run has not produced an output.")
376
+ children: O("botlit.executions.detail.noOutput", "This run has not produced an output.")
377
377
  }) })] })]
378
378
  }),
379
- /* @__PURE__ */ O(g, { metadata: L.metadata }),
380
- /* @__PURE__ */ O(ee, {
381
- executionId: L.id,
382
- status: L.status
379
+ /* @__PURE__ */ k(g, { metadata: R.metadata }),
380
+ /* @__PURE__ */ k(ee, {
381
+ executionId: R.id,
382
+ status: R.status
383
383
  }),
384
- /* @__PURE__ */ O(m, { metadata: L.metadata }),
385
- L.metadata && Object.keys(L.metadata).length > 0 && /* @__PURE__ */ k(s, { children: [/* @__PURE__ */ O(u, { children: /* @__PURE__ */ O(d, { children: D("botlit.executions.detail.rawMetadata", "Recorded metadata") }) }), /* @__PURE__ */ O(c, { children: /* @__PURE__ */ O("pre", {
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(L.metadata, null, 2)
387
+ children: JSON.stringify(R.metadata, null, 2)
388
388
  }) })] })
389
389
  ]
390
390
  })
391
391
  });
392
392
  };
393
- export { Z as ExecutionDetailPage };
393
+ export { Q as ExecutionDetailPage };
394
394
 
395
395
  //# sourceMappingURL=ExecutionDetailPage.js.map