@burdenoff/microfe-botmanor 2026.1203.3 → 2026.1203.5

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