@burdenoff/microfe-botmanor 2026.1127.1 → 2026.1127.2

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