@burdenoff/microfe-botmanor 2026.1120.20 → 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.
Files changed (50) hide show
  1. package/dist/botlit/components/A2ACardVerificationCard.d.ts +8 -0
  2. package/dist/botlit/components/A2ACardVerificationCard.js +123 -0
  3. package/dist/botlit/components/A2ACardVerificationCard.js.map +1 -0
  4. package/dist/botlit/components/A2ARunCollaborationPanel.d.ts +4 -0
  5. package/dist/botlit/components/A2ARunCollaborationPanel.js +149 -0
  6. package/dist/botlit/components/A2ARunCollaborationPanel.js.map +1 -0
  7. package/dist/botlit/components/A2AVerificationBadge.d.ts +4 -0
  8. package/dist/botlit/components/A2AVerificationBadge.js +37 -0
  9. package/dist/botlit/components/A2AVerificationBadge.js.map +1 -0
  10. package/dist/botlit/components/AgentA2APanel.js +85 -73
  11. package/dist/botlit/components/AgentA2APanel.js.map +1 -1
  12. package/dist/botlit/hooks/index.d.ts +2 -2
  13. package/dist/botlit/hooks/index.js +9 -9
  14. package/dist/botlit/hooks/useA2A.d.ts +36 -0
  15. package/dist/botlit/hooks/useA2A.js +154 -109
  16. package/dist/botlit/hooks/useA2A.js.map +1 -1
  17. package/dist/botlit/hooks/useA2APlan.d.ts +8 -0
  18. package/dist/botlit/hooks/useA2APlan.js +24 -0
  19. package/dist/botlit/hooks/useA2APlan.js.map +1 -0
  20. package/dist/botlit/hooks/usePromptTemplates.d.ts +26 -1
  21. package/dist/botlit/hooks/usePromptTemplates.js +119 -52
  22. package/dist/botlit/hooks/usePromptTemplates.js.map +1 -1
  23. package/dist/botlit/pages/A2AAgentDetailPage.js +384 -342
  24. package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
  25. package/dist/botlit/pages/A2ARegistryPage.js +148 -140
  26. package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
  27. package/dist/botlit/pages/ExecutionDetailPage.js +172 -170
  28. package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
  29. package/dist/botlit/pages/PromptTemplateDetailPage.d.ts +5 -0
  30. package/dist/botlit/pages/PromptTemplateDetailPage.js +837 -670
  31. package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
  32. package/dist/botlit/pages/PromptTemplatesPage.js +264 -245
  33. package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
  34. package/dist/botlit/utils/a2aRunCollaboration.d.ts +37 -0
  35. package/dist/botlit/utils/a2aRunCollaboration.js +42 -0
  36. package/dist/botlit/utils/a2aRunCollaboration.js.map +1 -0
  37. package/dist/botlit/utils/a2aVerificationStatus.d.ts +11 -0
  38. package/dist/botlit/utils/a2aVerificationStatus.js +18 -0
  39. package/dist/botlit/utils/a2aVerificationStatus.js.map +1 -0
  40. package/dist/botlit/utils/leaveGuard.js +13 -12
  41. package/dist/botlit/utils/leaveGuard.js.map +1 -1
  42. package/dist/botlit/utils/promptTemplateForm.d.ts +94 -0
  43. package/dist/botlit/utils/promptTemplateForm.js +108 -0
  44. package/dist/botlit/utils/promptTemplateForm.js.map +1 -0
  45. package/dist/generated/wspace-operations.d.ts +159 -0
  46. package/dist/generated/wspace-operations.js +186 -116
  47. package/dist/generated/wspace-operations.js.map +1 -1
  48. package/dist/generated/wspace-types.d.ts +74 -1
  49. package/dist/generated/wspace-types.js.map +1 -1
  50. 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 { ErrorState as g } from "../components/ErrorState.js";
12
- import { ExecutionModelFallback as ee } from "../components/ExecutionModelFallback.js";
13
- import { ExecutionFeedback as te } from "../components/ExecutionFeedback.js";
14
- import { useExecution as ne } from "../hooks/useExecutions.js";
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 re } from "../components/LiveIndicator.js";
18
- import { formatCurrency as ie, formatDuration as y, formatNumber as b, formatRelativeTime as x } from "../utils/formatters.js";
19
- import { ExecutionStatus as S } from "../../generated/wspace-types.js";
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 ae, readablePayload as C } from "../utils/executionStatus.js";
22
- import { useEffect as w } from "react";
23
- import { PagePurpose as T } from "@burdenoff/fe-libs/ui";
24
- import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
25
- import { useParams as k } from "react-router";
26
- import { AlertTriangle as A, ArrowLeft as oe, Ban as j, CheckCircle as M, Clock as N, Copy as P, DollarSign as F, Hourglass as I, Play as L, RefreshCw as R, Timer as z, XCircle as B, Zap as V } from "lucide-react";
27
- import { toast as H } from "sonner";
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 U = 3e3, W = /* @__PURE__ */ new Set(["AGENT", "APP"]), G = (e) => {
30
+ var W = 3e3, G = /* @__PURE__ */ new Set(["AGENT", "APP"]), K = (e) => {
30
31
  switch (e) {
31
- case S.Completed: return /* @__PURE__ */ D(M, {
32
+ case C.Completed: return /* @__PURE__ */ O(N, {
32
33
  className: "text-status-success-text",
33
34
  size: 20
34
35
  });
35
- case S.Failed: return /* @__PURE__ */ D(B, {
36
+ case C.Failed: return /* @__PURE__ */ O(V, {
36
37
  className: "text-status-error-text",
37
38
  size: 20
38
39
  });
39
- case S.Timeout: return /* @__PURE__ */ D(z, {
40
+ case C.Timeout: return /* @__PURE__ */ O(B, {
40
41
  className: "text-status-error-text",
41
42
  size: 20
42
43
  });
43
- case S.Cancelled: return /* @__PURE__ */ D(j, {
44
+ case C.Cancelled: return /* @__PURE__ */ O(M, {
44
45
  className: "text-text-secondary",
45
46
  size: 20
46
47
  });
47
- case S.Running: return /* @__PURE__ */ D(R, {
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 S.Pending: return /* @__PURE__ */ D(I, {
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__ */ D(A, {
56
+ default: return /* @__PURE__ */ O(j, {
56
57
  className: "text-text-secondary",
57
58
  size: 20
58
59
  });
59
60
  }
60
- }, K = (e) => {
61
+ }, se = (e) => {
61
62
  switch (e) {
62
- case S.Completed: return "success";
63
- case S.Failed:
64
- case S.Timeout: return "destructive";
65
- case S.Pending: return "warning";
66
- case S.Running: return "default";
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__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
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__ */ D("dd", {
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__ */ O(E, { children: [/* @__PURE__ */ D("span", {
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__ */ D("span", {
88
+ }), e && /* @__PURE__ */ O("span", {
88
89
  className: "block font-mono text-xs text-text-secondary",
89
90
  children: t
90
- })] }) : /* @__PURE__ */ D(E, { children: "—" }), se = ({ execution: e, t }) => {
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__ */ O(l, { children: [/* @__PURE__ */ O(f, { children: [/* @__PURE__ */ D(p, { children: t("botlit.executions.detail.howAnswered", "How it was answered") }), /* @__PURE__ */ D(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__ */ D(u, { children: /* @__PURE__ */ O("dl", {
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__ */ D(Y, {
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__ */ D(Y, {
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__ */ D(Y, {
105
+ /* @__PURE__ */ O(Y, {
105
106
  label: t("botlit.executions.detail.tokenSplit", "Input / output tokens"),
106
- children: r ? `${b(r.inputTokens)} / ${b(r.outputTokens)}` : h
107
+ children: r ? `${x(r.inputTokens)} / ${x(r.outputTokens)}` : h
107
108
  }),
108
- /* @__PURE__ */ D(Y, {
109
+ /* @__PURE__ */ O(Y, {
109
110
  label: t("botlit.executions.detail.toolCalls", "Tool calls"),
110
111
  children: r?.toolCalls ?? h
111
112
  }),
112
- /* @__PURE__ */ D(Y, {
113
+ /* @__PURE__ */ O(Y, {
113
114
  label: t("botlit.executions.detail.knowledgeChunks", "Knowledge passages used"),
114
115
  children: s ?? 0
115
116
  }),
116
- /* @__PURE__ */ D(Y, {
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__ */ D(Y, {
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 E = i(), { executionId: j } = k(), { navigateTo: M } = e(), { data: I, loading: z, error: B, refetch: q } = ne(j), J = _(), Z = I?.status, Q = v(j, Z, () => void q());
128
- if (w(() => {
129
- if (Q === "live" || Z !== S.Pending && Z !== S.Running) return;
130
- let e = setInterval(() => void q(), U);
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
- ]), z && !I) return /* @__PURE__ */ D(s, {
137
- title: E("botlit.executions.detail.loading", "Loading…"),
138
- children: /* @__PURE__ */ D("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
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 (B) return /* @__PURE__ */ D(s, {
141
- title: E("botlit.executions.detail.title", "Execution"),
142
- children: /* @__PURE__ */ D(g, {
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: B,
145
+ error: V,
145
146
  onRetry: () => void q()
146
147
  })
147
148
  });
148
- if (!I) {
149
- let e = E("botlit.executions.detail.notFound", "Execution not found");
150
- return /* @__PURE__ */ D(s, {
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__ */ D(c, {
153
+ children: /* @__PURE__ */ O(c, {
153
154
  illustration: "empty-search",
154
155
  title: e,
155
- description: E("botlit.executions.detail.notFoundHint", "This execution does not exist in this workspace."),
156
- action: /* @__PURE__ */ D(m, {
157
- onClick: () => M("executions"),
158
- children: E("botlit.executions.detail.back", "Back to Executions")
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 ce = ae(E, I.status), $ = C(I.output), le = async () => {
164
+ let le = w(D, L.status), $ = T(L.output), ue = async () => {
164
165
  try {
165
- let e = await J.mutateAsync(I.id);
166
- H.success("Re-run started"), M(`executions/${e.id}`);
166
+ let e = await J.mutateAsync(L.id);
167
+ U.success("Re-run started"), N(`executions/${e.id}`);
167
168
  } catch (e) {
168
- H.error(e instanceof Error ? e.message : "Failed to re-run execution");
169
+ U.error(e instanceof Error ? e.message : "Failed to re-run execution");
169
170
  }
170
171
  };
171
- return /* @__PURE__ */ D(s, {
172
- title: /* @__PURE__ */ O("div", {
172
+ return /* @__PURE__ */ O(s, {
173
+ title: /* @__PURE__ */ k("div", {
173
174
  className: "flex items-center gap-3",
174
175
  children: [
175
- /* @__PURE__ */ D(m, {
176
+ /* @__PURE__ */ O(m, {
176
177
  variant: "ghost",
177
178
  size: "icon",
178
- onClick: () => M("executions"),
179
- "aria-label": E("botlit.executions.detail.back", "Back to Executions"),
180
- children: /* @__PURE__ */ D(oe, { size: 20 })
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
- G(I.status),
183
- /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ O("div", {
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__ */ D("span", { children: E("botlit.executions.detail.heading", "Execution {{id}}…", { id: I.id.slice(0, 8) }) }),
187
- /* @__PURE__ */ D(h, {
188
- variant: K(I.status),
189
- children: ce
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__ */ D(re, { state: Q })
192
+ /* @__PURE__ */ O(y, { state: Q })
192
193
  ]
193
- }), /* @__PURE__ */ O("p", {
194
+ }), /* @__PURE__ */ k("p", {
194
195
  className: "text-sm font-normal text-text-secondary",
195
196
  children: [
196
- I.appName ?? I.appId ?? "—",
197
+ L.appName ?? L.appId ?? "—",
197
198
  " /",
198
199
  " ",
199
- I.agentName ?? I.agentId ?? "—"
200
+ L.agentName ?? L.agentId ?? "—"
200
201
  ]
201
202
  })] })
202
203
  ]
203
204
  }),
204
- actions: /* @__PURE__ */ O("div", {
205
+ actions: /* @__PURE__ */ k("div", {
205
206
  className: "flex gap-2",
206
- children: [/* @__PURE__ */ D(m, {
207
+ children: [/* @__PURE__ */ O(m, {
207
208
  variant: "outline",
208
- leftIcon: /* @__PURE__ */ D(P, { size: 16 }),
209
+ leftIcon: /* @__PURE__ */ O(F, { size: 16 }),
209
210
  onClick: () => {
210
- n(I.id), t() && r(E("botlit.executions.detail.copied", "Copied"));
211
+ n(L.id), t() && r(D("botlit.executions.detail.copied", "Copied"));
211
212
  },
212
- children: E("botlit.executions.detail.copyId", "Copy ID")
213
- }), W.has(I.type) && /* @__PURE__ */ D(o, {
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__ */ D(m, {
216
- leftIcon: /* @__PURE__ */ D(L, { size: 16 }),
217
- onClick: () => void le(),
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__ */ O("div", {
224
+ children: /* @__PURE__ */ k("div", {
224
225
  className: "space-y-6",
225
226
  children: [
226
- /* @__PURE__ */ D(T, {
227
- icon: /* @__PURE__ */ D(N, { size: 18 }),
228
- children: E("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__ */ 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__ */ O("div", {
231
+ /* @__PURE__ */ k("div", {
231
232
  className: "grid grid-cols-2 md:grid-cols-4 gap-4",
232
233
  children: [
233
- /* @__PURE__ */ D(l, {
234
+ /* @__PURE__ */ O(l, {
234
235
  treatment: "glass",
235
236
  glow: !0,
236
- children: /* @__PURE__ */ O(u, {
237
+ children: /* @__PURE__ */ k(u, {
237
238
  className: "pt-6 text-center",
238
239
  children: [
239
- /* @__PURE__ */ D(N, { className: "h-6 w-6 mx-auto mb-2 text-text-secondary" }),
240
- /* @__PURE__ */ D("p", {
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: y(I.duration)
243
+ children: ie(L.duration)
243
244
  }),
244
- /* @__PURE__ */ D("p", {
245
+ /* @__PURE__ */ O("p", {
245
246
  className: "text-sm text-text-secondary",
246
- children: E("botlit.executions.table.duration", "Duration")
247
+ children: D("botlit.executions.table.duration", "Duration")
247
248
  })
248
249
  ]
249
250
  })
250
251
  }),
251
- /* @__PURE__ */ D(l, {
252
+ /* @__PURE__ */ O(l, {
252
253
  treatment: "metric",
253
- children: /* @__PURE__ */ O(u, {
254
+ children: /* @__PURE__ */ k(u, {
254
255
  className: "pt-6 text-center",
255
256
  children: [
256
- /* @__PURE__ */ D(V, { className: "h-6 w-6 mx-auto mb-2 text-text-secondary" }),
257
- /* @__PURE__ */ D("p", {
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: I.tokensUsed === null || I.tokensUsed === void 0 ? "—" : b(I.tokensUsed)
260
+ children: L.tokensUsed === null || L.tokensUsed === void 0 ? "—" : x(L.tokensUsed)
260
261
  }),
261
- /* @__PURE__ */ D("p", {
262
+ /* @__PURE__ */ O("p", {
262
263
  className: "text-sm text-text-secondary",
263
- children: E("botlit.executions.table.tokens", "Tokens")
264
+ children: D("botlit.executions.table.tokens", "Tokens")
264
265
  })
265
266
  ]
266
267
  })
267
268
  }),
268
- /* @__PURE__ */ D(l, {
269
+ /* @__PURE__ */ O(l, {
269
270
  treatment: "metric",
270
- children: /* @__PURE__ */ O(u, {
271
+ children: /* @__PURE__ */ k(u, {
271
272
  className: "pt-6 text-center",
272
273
  children: [
273
- /* @__PURE__ */ D(F, { className: "h-6 w-6 mx-auto mb-2 text-text-secondary" }),
274
- /* @__PURE__ */ D("p", {
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: ie(I.cost)
277
+ children: b(L.cost)
277
278
  }),
278
- /* @__PURE__ */ D("p", {
279
+ /* @__PURE__ */ O("p", {
279
280
  className: "text-sm text-text-secondary",
280
- children: I.cost === null || I.cost === void 0 ? E("botlit.executions.detail.costUnknown", "Cost (price unknown)") : E("botlit.executions.table.cost", "Cost")
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__ */ D(l, {
286
+ /* @__PURE__ */ O(l, {
286
287
  treatment: "metric",
287
- children: /* @__PURE__ */ O(u, {
288
+ children: /* @__PURE__ */ k(u, {
288
289
  className: "pt-6 text-center",
289
290
  children: [
290
- /* @__PURE__ */ D(R, { className: "h-6 w-6 mx-auto mb-2 text-text-secondary" }),
291
- /* @__PURE__ */ D("p", {
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: I.type.toLowerCase()
294
+ children: L.type.toLowerCase()
294
295
  }),
295
- /* @__PURE__ */ D("p", {
296
+ /* @__PURE__ */ O("p", {
296
297
  className: "text-sm text-text-secondary",
297
- children: E("botlit.executions.detail.type", "Type")
298
+ children: D("botlit.executions.detail.type", "Type")
298
299
  })
299
300
  ]
300
301
  })
301
302
  })
302
303
  ]
303
304
  }),
304
- (I.errorMessage || I.errorCode) && /* @__PURE__ */ O(l, { children: [/* @__PURE__ */ O(f, { children: [/* @__PURE__ */ O(p, {
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__ */ D(A, { size: 18 }), E("botlit.executions.detail.failure", "Failure")]
307
- }), I.errorCode && /* @__PURE__ */ D(d, { children: I.errorCode })] }), /* @__PURE__ */ O(u, {
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
- I.errorCode === "ORPHANED" && /* @__PURE__ */ D("p", {
311
+ L.errorCode === "ORPHANED" && /* @__PURE__ */ O("p", {
311
312
  className: "text-sm text-text-primary",
312
- children: E("botlit.executions.detail.orphanedHint", "This run never finished, so the cleanup job closed it as failed.")
313
+ children: D("botlit.executions.detail.orphanedHint", "This run never finished, so the cleanup job closed it as failed.")
313
314
  }),
314
- I.errorMessage && /* @__PURE__ */ D("p", {
315
+ L.errorMessage && /* @__PURE__ */ O("p", {
315
316
  className: "text-sm text-text-primary",
316
- children: I.errorMessage
317
+ children: L.errorMessage
317
318
  }),
318
- I.errorDetails && /* @__PURE__ */ D("pre", {
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(I.errorDetails, null, 2)
321
+ children: JSON.stringify(L.errorDetails, null, 2)
321
322
  })
322
323
  ]
323
324
  })] }),
324
- /* @__PURE__ */ O(l, { children: [/* @__PURE__ */ D(f, { children: /* @__PURE__ */ D(p, { children: E("botlit.executions.detail.runDetails", "Run details") }) }), /* @__PURE__ */ D(u, { children: /* @__PURE__ */ O("dl", {
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__ */ D(Y, {
328
- label: E("botlit.executions.detail.executionId", "Execution ID"),
328
+ /* @__PURE__ */ O(Y, {
329
+ label: D("botlit.executions.detail.executionId", "Execution ID"),
329
330
  mono: !0,
330
- children: I.id
331
+ children: L.id
331
332
  }),
332
- /* @__PURE__ */ D(Y, {
333
- label: E("botlit.executions.filters.bot", "Bot"),
334
- children: /* @__PURE__ */ D(X, {
335
- name: I.appName,
336
- id: I.appId
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__ */ D(Y, {
340
- label: E("botlit.executions.filters.agent", "Agent"),
341
- children: /* @__PURE__ */ D(X, {
342
- name: I.agentName,
343
- id: I.agentId
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__ */ D(Y, {
347
- label: E("botlit.executions.detail.conversation", "Conversation"),
347
+ /* @__PURE__ */ O(Y, {
348
+ label: D("botlit.executions.detail.conversation", "Conversation"),
348
349
  mono: !0,
349
- children: I.conversationId ?? "—"
350
+ children: L.conversationId ?? "—"
350
351
  }),
351
- /* @__PURE__ */ D(Y, {
352
- label: E("botlit.executions.table.started", "Started"),
353
- children: x(I.createdAt)
352
+ /* @__PURE__ */ O(Y, {
353
+ label: D("botlit.executions.table.started", "Started"),
354
+ children: S(L.createdAt)
354
355
  }),
355
- /* @__PURE__ */ D(Y, {
356
- label: E("botlit.executions.detail.completed", "Completed"),
357
- children: x(I.completedAt)
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__ */ D(se, {
362
- execution: I,
363
- t: E
362
+ /* @__PURE__ */ O(ce, {
363
+ execution: L,
364
+ t: D
364
365
  }),
365
- /* @__PURE__ */ O("div", {
366
+ /* @__PURE__ */ k("div", {
366
367
  className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
367
- children: [/* @__PURE__ */ O(l, { children: [/* @__PURE__ */ D(f, { children: /* @__PURE__ */ D(p, { children: E("botlit.executions.detail.input", "Input") }) }), /* @__PURE__ */ D(u, { children: /* @__PURE__ */ D("pre", {
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: C(I.input) || "—"
370
- }) })] }), /* @__PURE__ */ O(l, { children: [/* @__PURE__ */ D(f, { children: /* @__PURE__ */ D(p, { children: E("botlit.executions.detail.output", "Output") }) }), /* @__PURE__ */ D(u, { children: $ ? /* @__PURE__ */ D("pre", {
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__ */ D("p", {
374
+ }) : /* @__PURE__ */ O("p", {
374
375
  className: "text-sm text-text-secondary",
375
- children: E("botlit.executions.detail.noOutput", "This run has not produced an output.")
376
+ children: D("botlit.executions.detail.noOutput", "This run has not produced an output.")
376
377
  }) })] })]
377
378
  }),
378
- /* @__PURE__ */ D(ee, { metadata: I.metadata }),
379
- /* @__PURE__ */ D(te, {
380
- executionId: I.id,
381
- status: I.status
379
+ /* @__PURE__ */ O(te, { metadata: L.metadata }),
380
+ /* @__PURE__ */ O(ne, {
381
+ executionId: L.id,
382
+ status: L.status
382
383
  }),
383
- I.metadata && Object.keys(I.metadata).length > 0 && /* @__PURE__ */ O(l, { children: [/* @__PURE__ */ D(f, { children: /* @__PURE__ */ D(p, { children: E("botlit.executions.detail.rawMetadata", "Recorded metadata") }) }), /* @__PURE__ */ D(u, { children: /* @__PURE__ */ D("pre", {
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(I.metadata, null, 2)
387
+ children: JSON.stringify(L.metadata, null, 2)
386
388
  }) })] })
387
389
  ]
388
390
  })