@burdenoff/microfe-botmanor 2026.1120.21 → 2026.1120.23

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 (62) hide show
  1. package/dist/botlit/BotmanorRootInner.js +46 -45
  2. package/dist/botlit/BotmanorRootInner.js.map +1 -1
  3. package/dist/botlit/components/A2ACardVerificationCard.d.ts +8 -0
  4. package/dist/botlit/components/A2ACardVerificationCard.js +123 -0
  5. package/dist/botlit/components/A2ACardVerificationCard.js.map +1 -0
  6. package/dist/botlit/components/A2ARunCollaborationPanel.d.ts +4 -0
  7. package/dist/botlit/components/A2ARunCollaborationPanel.js +149 -0
  8. package/dist/botlit/components/A2ARunCollaborationPanel.js.map +1 -0
  9. package/dist/botlit/components/A2AVerificationBadge.d.ts +4 -0
  10. package/dist/botlit/components/A2AVerificationBadge.js +37 -0
  11. package/dist/botlit/components/A2AVerificationBadge.js.map +1 -0
  12. package/dist/botlit/components/AgentA2APanel.js +85 -73
  13. package/dist/botlit/components/AgentA2APanel.js.map +1 -1
  14. package/dist/botlit/components/PlanUsageCard.d.ts +2 -0
  15. package/dist/botlit/components/PlanUsageCard.js +79 -0
  16. package/dist/botlit/components/PlanUsageCard.js.map +1 -0
  17. package/dist/botlit/components/QuotaExhaustedDialog.d.ts +14 -3
  18. package/dist/botlit/components/QuotaExhaustedDialog.js +33 -13
  19. package/dist/botlit/components/QuotaExhaustedDialog.js.map +1 -1
  20. package/dist/botlit/hooks/index.d.ts +1 -1
  21. package/dist/botlit/hooks/useA2A.d.ts +36 -0
  22. package/dist/botlit/hooks/useA2A.js +154 -109
  23. package/dist/botlit/hooks/useA2A.js.map +1 -1
  24. package/dist/botlit/hooks/useA2APlan.d.ts +8 -0
  25. package/dist/botlit/hooks/useA2APlan.js +24 -0
  26. package/dist/botlit/hooks/useA2APlan.js.map +1 -0
  27. package/dist/botlit/hooks/usePlanUsage.d.ts +19 -0
  28. package/dist/botlit/hooks/usePlanUsage.js +45 -0
  29. package/dist/botlit/hooks/usePlanUsage.js.map +1 -0
  30. package/dist/botlit/pages/A2AAgentDetailPage.js +384 -342
  31. package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
  32. package/dist/botlit/pages/A2ARegistryPage.js +148 -140
  33. package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
  34. package/dist/botlit/pages/BotDetailPage.js +4 -4
  35. package/dist/botlit/pages/DashboardPage.js +151 -149
  36. package/dist/botlit/pages/DashboardPage.js.map +1 -1
  37. package/dist/botlit/pages/ExecutionDetailPage.js +172 -170
  38. package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
  39. package/dist/botlit/providers/QuotaGuard.d.ts +2 -0
  40. package/dist/botlit/providers/QuotaGuard.js +51 -0
  41. package/dist/botlit/providers/QuotaGuard.js.map +1 -0
  42. package/dist/botlit/providers/quotaGuardContext.d.ts +11 -0
  43. package/dist/botlit/providers/quotaGuardContext.js +9 -0
  44. package/dist/botlit/providers/quotaGuardContext.js.map +1 -0
  45. package/dist/botlit/utils/a2aRunCollaboration.d.ts +37 -0
  46. package/dist/botlit/utils/a2aRunCollaboration.js +42 -0
  47. package/dist/botlit/utils/a2aRunCollaboration.js.map +1 -0
  48. package/dist/botlit/utils/a2aVerificationStatus.d.ts +11 -0
  49. package/dist/botlit/utils/a2aVerificationStatus.js +18 -0
  50. package/dist/botlit/utils/a2aVerificationStatus.js.map +1 -0
  51. package/dist/botlit/utils/quotaErrors.d.ts +48 -0
  52. package/dist/botlit/utils/quotaErrors.js +118 -0
  53. package/dist/botlit/utils/quotaErrors.js.map +1 -0
  54. package/dist/botlit/utils/watchPlanLimits.d.ts +12 -0
  55. package/dist/botlit/utils/watchPlanLimits.js +27 -0
  56. package/dist/botlit/utils/watchPlanLimits.js.map +1 -0
  57. package/dist/generated/wspace-operations.d.ts +211 -0
  58. package/dist/generated/wspace-operations.js +206 -114
  59. package/dist/generated/wspace-operations.js.map +1 -1
  60. package/dist/generated/wspace-types.d.ts +74 -1
  61. package/dist/generated/wspace-types.js.map +1 -1
  62. package/package.json +1 -1
@@ -7,19 +7,20 @@ import { BOTMANOR_PERMISSIONS as s } from "../permissions/botmanorPermissions.js
7
7
  import { BotmanorPermissionGate as c, useBotmanorPermissionDecision as l } from "../permissions/useBotmanorPermissions.js";
8
8
  import { ErrorState as u } from "../components/ErrorState.js";
9
9
  import { DashboardUsagePanel as te } from "../components/DashboardUsagePanel.js";
10
- import { useBotAppCounts as ne, useBots as re } from "../hooks/useBots.js";
11
- import { useAgentCounts as ie, useAgents as ae } from "../hooks/useAgents.js";
12
- import { useBotlit as oe } from "../providers/BotlitProvider.js";
10
+ import { PlanUsageCard as ne } from "../components/PlanUsageCard.js";
11
+ import { useBotAppCounts as re, useBots as ie } from "../hooks/useBots.js";
12
+ import { useAgentCounts as ae, useAgents as oe } from "../hooks/useAgents.js";
13
+ import { useBotlit as se } from "../providers/BotlitProvider.js";
13
14
  import { formatNumber as d } from "../utils/formatters.js";
14
- import { byRecentActivity as f, getGreetingName as se } from "../utils/greeting.js";
15
+ import { byRecentActivity as f, getGreetingName as ce } from "../utils/greeting.js";
15
16
  import "../permissions/index.js";
16
- import { Fragment as ce, useMemo as p } from "react";
17
- import { GlassCard as le, GradientText as ue, PagePurpose as m } from "@burdenoff/fe-libs/ui";
18
- import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
19
- import { Link as v, useLocation as de } from "react-router";
20
- import { AppWindow as y, ArrowRight as b, BookOpen as fe, Bot as x, Headset as pe, KeyRound as me, Lock as he, MessagesSquare as ge, Plus as _e, Zap as ve } from "lucide-react";
17
+ import { Fragment as le, useMemo as p } from "react";
18
+ import { GlassCard as ue, GradientText as de, PagePurpose as fe } from "@burdenoff/fe-libs/ui";
19
+ import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
20
+ import { Link as _, useLocation as pe } from "react-router";
21
+ import { AppWindow as v, ArrowRight as y, BookOpen as me, Bot as b, Headset as he, KeyRound as ge, Lock as _e, MessagesSquare as ve, Plus as ye, Zap as be } from "lucide-react";
21
22
  // src/botlit/pages/DashboardPage.tsx
22
- var S = "", C = "flex flex-col items-center gap-2 p-4 rounded-card border border-border-seam bg-bg-surface hover:border-border-strong hover:shadow-elevation-2 transition-[box-shadow,border-color]", w = ({ label: e }) => /* @__PURE__ */ g("div", {
23
+ var x = "", S = "flex flex-col items-center gap-2 p-4 rounded-card border border-border-seam bg-bg-surface hover:border-border-strong hover:shadow-elevation-2 transition-[box-shadow,border-color]", C = ({ label: e }) => /* @__PURE__ */ h("div", {
23
24
  className: "space-y-3",
24
25
  role: "status",
25
26
  "aria-busy": "true",
@@ -28,38 +29,38 @@ var S = "", C = "flex flex-col items-center gap-2 p-4 rounded-card border borde
28
29
  1,
29
30
  2,
30
31
  3
31
- ].map((e) => /* @__PURE__ */ g("div", { className: "h-16 bg-bg-sunken rounded-lg motion-safe:animate-vc-shimmer" }, e))
32
- }), T = ({ permission: e, to: t, icon: n, label: r }) => {
33
- let i = /* @__PURE__ */ g("li", { children: /* @__PURE__ */ _(v, {
32
+ ].map((e) => /* @__PURE__ */ h("div", { className: "h-16 bg-bg-sunken rounded-lg motion-safe:animate-vc-shimmer" }, e))
33
+ }), w = ({ permission: e, to: t, icon: n, label: r }) => {
34
+ let i = /* @__PURE__ */ h("li", { children: /* @__PURE__ */ g(_, {
34
35
  to: t,
35
- className: C,
36
- children: [n, /* @__PURE__ */ g("span", {
36
+ className: S,
37
+ children: [n, /* @__PURE__ */ h("span", {
37
38
  className: "text-sm font-medium",
38
39
  children: r
39
40
  })]
40
41
  }) });
41
- return e ? /* @__PURE__ */ g(c, {
42
+ return e ? /* @__PURE__ */ h(c, {
42
43
  permission: e,
43
44
  children: i
44
45
  }) : i;
45
- }, E = () => {
46
- let C = e(), E = de(), { currentUser: ye, navigateTo: D, getPath: O } = oe(), k = l(s.APP_READ), A = l(s.AGENT_READ), be = l(s.EXECUTION_READ), j = k === "allowed", M = A === "allowed", N = k === "loading" || A === "loading", { data: P, loading: F, error: I, hasMore: xe, refetch: Se } = re(), { data: L, loading: R, error: z, hasMore: B, refetch: Ce } = ae(), V = ne(j), H = ie(M), U = p(() => [...P].sort(f).slice(0, 4), [P]), W = p(() => L.filter((e) => e.status === "ACTIVE"), [L]), G = p(() => [...W].sort(f).slice(0, 4), [W]), we = !N && !j && !M, K = j && P.length > 0 || M && L.length > 0, q = (e, t) => t ? `${d(e)}+` : d(e), J = V.data ? V.data.total - V.data.archived : void 0, Y = H.data ? H.data.active : void 0, X = H.data ? H.data.total - H.data.archived : void 0, Z = [];
46
+ }, T = () => {
47
+ let S = e(), T = pe(), { currentUser: xe, navigateTo: E, getPath: D } = se(), O = l(s.APP_READ), k = l(s.AGENT_READ), A = l(s.EXECUTION_READ), j = O === "allowed", M = k === "allowed", N = O === "loading" || k === "loading", { data: P, loading: F, error: I, hasMore: Se, refetch: Ce } = ie(), { data: L, loading: R, error: z, hasMore: B, refetch: we } = oe(), V = re(j), H = ae(M), U = p(() => [...P].sort(f).slice(0, 4), [P]), W = p(() => L.filter((e) => e.status === "ACTIVE"), [L]), G = p(() => [...W].sort(f).slice(0, 4), [W]), Te = !N && !j && !M, K = j && P.length > 0 || M && L.length > 0, q = (e, t) => t ? `${d(e)}+` : d(e), J = V.data ? V.data.total - V.data.archived : void 0, Y = H.data ? H.data.active : void 0, X = H.data ? H.data.total - H.data.archived : void 0, Z = [];
47
48
  j && Z.push({
48
49
  key: "bots",
49
- label: C("botlit.dashboard.stats.totalBots", "Total Bots"),
50
- value: J === void 0 ? I ? "—" : q(P.length, xe) : d(J),
50
+ label: S("botlit.dashboard.stats.totalBots", "Total Bots"),
51
+ value: J === void 0 ? I ? "—" : q(P.length, Se) : d(J),
51
52
  loading: J === void 0 && (V.loading || F),
52
- icon: /* @__PURE__ */ g(y, {
53
+ icon: /* @__PURE__ */ h(v, {
53
54
  className: "h-5 w-5",
54
55
  "aria-hidden": "true"
55
56
  }),
56
57
  hero: !0
57
58
  }), M && Z.push({
58
59
  key: "agents",
59
- label: C("botlit.dashboard.stats.activeAgents", "Active Agents"),
60
+ label: S("botlit.dashboard.stats.activeAgents", "Active Agents"),
60
61
  value: Y === void 0 ? z ? "—" : q(W.length, B) : d(Y),
61
62
  loading: Y === void 0 && (H.loading || R),
62
- icon: /* @__PURE__ */ g(x, {
63
+ icon: /* @__PURE__ */ h(b, {
63
64
  className: "h-5 w-5",
64
65
  "aria-hidden": "true"
65
66
  }),
@@ -67,78 +68,78 @@ var S = "", C = "flex flex-col items-center gap-2 p-4 rounded-card border borde
67
68
  });
68
69
  let Q = (e) => {
69
70
  let t = e ?? 0;
70
- return t === 1 ? C("botlit.common.executionsOne", "{{count}} execution", { count: d(t) }) : C("botlit.common.executionsOther", "{{count}} executions", { count: d(t) });
71
- }, $ = se(ye), Te = ($ ? K ? C("botlit.dashboard.titleNamed", "Welcome back, {{name}}", { name: S }) : C("botlit.dashboard.welcomeNamed", "Welcome, {{name}}", { name: S }) : K ? C("botlit.dashboard.title", "Welcome back") : C("botlit.dashboard.welcome", "Welcome")).split(S).map((e, t, n) => /* @__PURE__ */ _(ce, { children: [e, t < n.length - 1 ? /* @__PURE__ */ g(ue, { children: $ }) : null] }, t));
72
- return /* @__PURE__ */ g(t, {
71
+ return t === 1 ? S("botlit.common.executionsOne", "{{count}} execution", { count: d(t) }) : S("botlit.common.executionsOther", "{{count}} executions", { count: d(t) });
72
+ }, $ = ce(xe), Ee = ($ ? K ? S("botlit.dashboard.titleNamed", "Welcome back, {{name}}", { name: x }) : S("botlit.dashboard.welcomeNamed", "Welcome, {{name}}", { name: x }) : K ? S("botlit.dashboard.title", "Welcome back") : S("botlit.dashboard.welcome", "Welcome")).split(x).map((e, t, n) => /* @__PURE__ */ g(le, { children: [e, t < n.length - 1 ? /* @__PURE__ */ h(de, { children: $ }) : null] }, t));
73
+ return /* @__PURE__ */ h(t, {
73
74
  hero: !0,
74
- title: Te,
75
- description: C("botlit.dashboard.description", "Here's an overview of your AI agents and bots"),
76
- actions: /* @__PURE__ */ _("div", {
75
+ title: Ee,
76
+ description: S("botlit.dashboard.description", "Here's an overview of your AI agents and bots"),
77
+ actions: /* @__PURE__ */ g("div", {
77
78
  className: "flex gap-2",
78
- children: [/* @__PURE__ */ g(c, {
79
+ children: [/* @__PURE__ */ h(c, {
79
80
  permission: s.AGENT_CREATE,
80
- children: /* @__PURE__ */ g(o, {
81
- leftIcon: /* @__PURE__ */ g(x, { size: 16 }),
82
- onClick: () => D("agents/new"),
83
- children: C("botlit.dashboard.actions.createAgent", "Create Agent")
81
+ children: /* @__PURE__ */ h(o, {
82
+ leftIcon: /* @__PURE__ */ h(b, { size: 16 }),
83
+ onClick: () => E("agents/new"),
84
+ children: S("botlit.dashboard.actions.createAgent", "Create Agent")
84
85
  })
85
- }), /* @__PURE__ */ g(c, {
86
+ }), /* @__PURE__ */ h(c, {
86
87
  permission: s.APP_CREATE,
87
- children: /* @__PURE__ */ g(o, {
88
+ children: /* @__PURE__ */ h(o, {
88
89
  variant: "outline",
89
- leftIcon: /* @__PURE__ */ g(_e, { size: 16 }),
90
- onClick: () => D("bots/new"),
91
- children: C("botlit.dashboard.actions.createBot", "Create Bot")
90
+ leftIcon: /* @__PURE__ */ h(ye, { size: 16 }),
91
+ onClick: () => E("bots/new"),
92
+ children: S("botlit.dashboard.actions.createBot", "Create Bot")
92
93
  })
93
94
  })]
94
95
  }),
95
- children: /* @__PURE__ */ _("div", {
96
+ children: /* @__PURE__ */ g("div", {
96
97
  className: "space-y-6",
97
- children: [/* @__PURE__ */ g(m, {
98
- icon: /* @__PURE__ */ g(ve, {
98
+ children: [/* @__PURE__ */ h(fe, {
99
+ icon: /* @__PURE__ */ h(be, {
99
100
  size: 18,
100
101
  "aria-hidden": "true"
101
102
  }),
102
- children: C("botlit.dashboard.purpose", "This is your home base — a quick pulse on every bot and agent in your workspace. Glance at the headline numbers, jump back into recent work, and use the quick actions below to start something new. If you are just getting started, create your first agent and connect it to a bot.")
103
- }), we ? /* @__PURE__ */ _("div", {
103
+ children: S("botlit.dashboard.purpose", "This is your home base — a quick pulse on every bot and agent in your workspace. Glance at the headline numbers, jump back into recent work, and use the quick actions below to start something new. If you are just getting started, create your first agent and connect it to a bot.")
104
+ }), Te ? /* @__PURE__ */ g("div", {
104
105
  role: "status",
105
106
  className: "flex flex-col items-center justify-center gap-3 rounded-lg border border-border-subtle bg-bg-surface px-4 py-12 text-center",
106
- children: [/* @__PURE__ */ g(he, {
107
+ children: [/* @__PURE__ */ h(_e, {
107
108
  size: 28,
108
109
  className: "text-text-secondary",
109
110
  "aria-hidden": "true"
110
- }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("h2", {
111
+ }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("h2", {
111
112
  className: "text-lg font-medium text-text-primary",
112
- children: C("botlit.dashboard.noAccess.title", "You do not have access to this dashboard")
113
- }), /* @__PURE__ */ g("p", {
113
+ children: S("botlit.dashboard.noAccess.title", "You do not have access to this dashboard")
114
+ }), /* @__PURE__ */ h("p", {
114
115
  className: "mt-2 max-w-md text-sm text-text-secondary",
115
- children: C("botlit.dashboard.noAccess.description", "Your role in this workspace cannot view bots or agents. Ask a workspace admin for read access.")
116
+ children: S("botlit.dashboard.noAccess.description", "Your role in this workspace cannot view bots or agents. Ask a workspace admin for read access.")
116
117
  })] })]
117
- }) : /* @__PURE__ */ _(h, { children: [
118
- /* @__PURE__ */ g("ul", {
118
+ }) : /* @__PURE__ */ g(m, { children: [
119
+ /* @__PURE__ */ h("ul", {
119
120
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
120
- "aria-label": C("botlit.dashboard.stats.title", "Workspace totals"),
121
- children: N ? /* @__PURE__ */ g("li", { children: /* @__PURE__ */ g(w, { label: C("botlit.common.loading", "Loading") }) }) : Z.map((e) => /* @__PURE__ */ g("li", { children: /* @__PURE__ */ g(n, {
121
+ "aria-label": S("botlit.dashboard.stats.title", "Workspace totals"),
122
+ children: N ? /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(C, { label: S("botlit.common.loading", "Loading") }) }) : Z.map((e) => /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(n, {
122
123
  treatment: e.hero ? "glass" : "metric",
123
124
  glow: e.hero,
124
- children: /* @__PURE__ */ g(r, {
125
+ children: /* @__PURE__ */ h(r, {
125
126
  className: "pt-6",
126
- children: /* @__PURE__ */ _("div", {
127
+ children: /* @__PURE__ */ g("div", {
127
128
  className: "flex items-center gap-4",
128
- children: [/* @__PURE__ */ g("div", {
129
+ children: [/* @__PURE__ */ h("div", {
129
130
  className: "p-3 rounded-lg bg-[var(--color-accent-soft)] text-text-primary [&>svg]:text-text-primary",
130
131
  children: e.icon
131
- }), /* @__PURE__ */ _("div", {
132
+ }), /* @__PURE__ */ g("div", {
132
133
  className: "flex flex-col-reverse",
133
- children: [/* @__PURE__ */ g("p", {
134
+ children: [/* @__PURE__ */ h("p", {
134
135
  className: "text-sm text-text-secondary",
135
136
  children: e.label
136
- }), e.loading ? /* @__PURE__ */ g("div", {
137
+ }), e.loading ? /* @__PURE__ */ h("div", {
137
138
  role: "status",
138
139
  "aria-busy": "true",
139
- "aria-label": C("botlit.common.loading", "Loading"),
140
+ "aria-label": S("botlit.common.loading", "Loading"),
140
141
  className: "h-8 w-12 rounded bg-bg-sunken motion-safe:animate-vc-shimmer"
141
- }) : /* @__PURE__ */ g("p", {
142
+ }) : /* @__PURE__ */ h("p", {
142
143
  className: "text-2xl font-bold text-text-primary tabular-nums",
143
144
  children: e.value
144
145
  })]
@@ -147,110 +148,111 @@ var S = "", C = "flex flex-col items-center gap-2 p-4 rounded-card border borde
147
148
  })
148
149
  }) }, e.key))
149
150
  }),
150
- be === "allowed" ? /* @__PURE__ */ g(te, {}) : null,
151
- /* @__PURE__ */ _("div", {
151
+ A === "allowed" ? /* @__PURE__ */ h(te, {}) : null,
152
+ /* @__PURE__ */ h(ne, {}),
153
+ /* @__PURE__ */ g("div", {
152
154
  className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
153
- children: [j ? /* @__PURE__ */ _(n, {
155
+ children: [j ? /* @__PURE__ */ g(n, {
154
156
  treatment: "insight",
155
- children: [/* @__PURE__ */ _(i, {
157
+ children: [/* @__PURE__ */ g(i, {
156
158
  className: "flex flex-row items-center justify-between",
157
- children: [/* @__PURE__ */ g(a, {
159
+ children: [/* @__PURE__ */ h(a, {
158
160
  as: "h2",
159
- children: C("botlit.dashboard.recentBots.title", "Recent Bots")
160
- }), /* @__PURE__ */ g(o, {
161
+ children: S("botlit.dashboard.recentBots.title", "Recent Bots")
162
+ }), /* @__PURE__ */ h(o, {
161
163
  variant: "ghost",
162
164
  size: "sm",
163
- rightIcon: /* @__PURE__ */ g(b, { size: 16 }),
164
- onClick: () => D("bots"),
165
- children: C("botlit.common.viewAll", "View All")
165
+ rightIcon: /* @__PURE__ */ h(y, { size: 16 }),
166
+ onClick: () => E("bots"),
167
+ children: S("botlit.common.viewAll", "View All")
166
168
  })]
167
- }), /* @__PURE__ */ g(r, { children: F ? /* @__PURE__ */ g(w, { label: C("botlit.common.loading", "Loading") }) : I ? /* @__PURE__ */ g(u, {
168
- resource: C("botlit.dashboard.resource.bots", "bots"),
169
+ }), /* @__PURE__ */ h(r, { children: F ? /* @__PURE__ */ h(C, { label: S("botlit.common.loading", "Loading") }) : I ? /* @__PURE__ */ h(u, {
170
+ resource: S("botlit.dashboard.resource.bots", "bots"),
169
171
  error: I,
170
- onRetry: () => void Se()
171
- }) : U.length > 0 ? /* @__PURE__ */ g("ul", {
172
+ onRetry: () => void Ce()
173
+ }) : U.length > 0 ? /* @__PURE__ */ h("ul", {
172
174
  className: "space-y-3",
173
- children: U.map((e) => /* @__PURE__ */ g("li", { children: /* @__PURE__ */ _(v, {
174
- to: O(`bots/${e.id}`),
175
+ children: U.map((e) => /* @__PURE__ */ h("li", { children: /* @__PURE__ */ g(_, {
176
+ to: D(`bots/${e.id}`),
175
177
  className: "flex items-center justify-between p-3 rounded-lg border border-border-seam hover:border-border-strong hover:bg-accent transition-colors",
176
- children: [/* @__PURE__ */ _("div", {
178
+ children: [/* @__PURE__ */ g("div", {
177
179
  className: "flex items-center gap-3",
178
- children: [/* @__PURE__ */ g("span", {
180
+ children: [/* @__PURE__ */ h("span", {
179
181
  className: "text-2xl",
180
182
  "aria-hidden": "true",
181
183
  children: e.icon || "🤖"
182
- }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
184
+ }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
183
185
  className: "font-medium text-text-primary",
184
186
  children: e.name
185
- }), /* @__PURE__ */ g("p", {
187
+ }), /* @__PURE__ */ h("p", {
186
188
  className: "text-xs text-text-secondary",
187
189
  children: Q(e.executionCount)
188
190
  })] })]
189
- }), /* @__PURE__ */ g(ee, { status: e.status })]
191
+ }), /* @__PURE__ */ h(ee, { status: e.status })]
190
192
  }) }, e.id))
191
- }) : /* @__PURE__ */ _("div", {
193
+ }) : /* @__PURE__ */ g("div", {
192
194
  className: "text-center py-8 text-text-secondary",
193
195
  children: [
194
- /* @__PURE__ */ g(y, {
196
+ /* @__PURE__ */ h(v, {
195
197
  className: "h-8 w-8 mx-auto mb-2 opacity-50",
196
198
  "aria-hidden": "true"
197
199
  }),
198
- /* @__PURE__ */ g("p", { children: C("botlit.dashboard.recentBots.emptyTitle", "No bots yet") }),
199
- /* @__PURE__ */ g(c, {
200
+ /* @__PURE__ */ h("p", { children: S("botlit.dashboard.recentBots.emptyTitle", "No bots yet") }),
201
+ /* @__PURE__ */ h(c, {
200
202
  permission: s.APP_CREATE,
201
- children: /* @__PURE__ */ g(o, {
203
+ children: /* @__PURE__ */ h(o, {
202
204
  variant: "outline",
203
205
  size: "sm",
204
206
  className: "mt-3",
205
- onClick: () => D("bots/new"),
206
- children: C("botlit.dashboard.recentBots.emptyAction", "Create your first bot")
207
+ onClick: () => E("bots/new"),
208
+ children: S("botlit.dashboard.recentBots.emptyAction", "Create your first bot")
207
209
  })
208
210
  })
209
211
  ]
210
212
  }) })]
211
- }) : null, M ? /* @__PURE__ */ _(n, {
213
+ }) : null, M ? /* @__PURE__ */ g(n, {
212
214
  treatment: "insight",
213
- children: [/* @__PURE__ */ _(i, {
215
+ children: [/* @__PURE__ */ g(i, {
214
216
  className: "flex flex-row items-center justify-between",
215
- children: [/* @__PURE__ */ g(a, {
217
+ children: [/* @__PURE__ */ h(a, {
216
218
  as: "h2",
217
- children: C("botlit.dashboard.activeAgents.title", "Active Agents")
218
- }), /* @__PURE__ */ g(o, {
219
+ children: S("botlit.dashboard.activeAgents.title", "Active Agents")
220
+ }), /* @__PURE__ */ h(o, {
219
221
  variant: "ghost",
220
222
  size: "sm",
221
- rightIcon: /* @__PURE__ */ g(b, { size: 16 }),
222
- onClick: () => D("agents"),
223
- children: C("botlit.common.viewAll", "View All")
223
+ rightIcon: /* @__PURE__ */ h(y, { size: 16 }),
224
+ onClick: () => E("agents"),
225
+ children: S("botlit.common.viewAll", "View All")
224
226
  })]
225
- }), /* @__PURE__ */ g(r, { children: R ? /* @__PURE__ */ g(w, { label: C("botlit.common.loading", "Loading") }) : z ? /* @__PURE__ */ g(u, {
226
- resource: C("botlit.dashboard.resource.agents", "agents"),
227
+ }), /* @__PURE__ */ h(r, { children: R ? /* @__PURE__ */ h(C, { label: S("botlit.common.loading", "Loading") }) : z ? /* @__PURE__ */ h(u, {
228
+ resource: S("botlit.dashboard.resource.agents", "agents"),
227
229
  error: z,
228
- onRetry: () => void Ce()
229
- }) : G.length > 0 ? /* @__PURE__ */ g("ul", {
230
+ onRetry: () => void we()
231
+ }) : G.length > 0 ? /* @__PURE__ */ h("ul", {
230
232
  className: "space-y-3",
231
- children: G.map((e) => /* @__PURE__ */ g("li", { children: /* @__PURE__ */ g(v, {
232
- to: O(`agents/${e.id}`),
233
+ children: G.map((e) => /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(_, {
234
+ to: D(`agents/${e.id}`),
233
235
  className: "flex items-center justify-between p-3 rounded-lg border border-border-seam hover:border-border-strong hover:bg-accent transition-colors",
234
- children: /* @__PURE__ */ _("div", {
236
+ children: /* @__PURE__ */ g("div", {
235
237
  className: "flex items-center gap-3",
236
- children: [/* @__PURE__ */ _("span", {
238
+ children: [/* @__PURE__ */ g("span", {
237
239
  className: "relative text-2xl",
238
- children: [/* @__PURE__ */ g("span", {
240
+ children: [/* @__PURE__ */ h("span", {
239
241
  "aria-hidden": "true",
240
242
  children: "🤖"
241
- }), /* @__PURE__ */ g("span", {
243
+ }), /* @__PURE__ */ h("span", {
242
244
  "aria-hidden": "true",
243
245
  className: "absolute -right-0.5 -top-0.5 size-2 rounded-full bg-status-success-text motion-safe:animate-vc-glow-pulse"
244
246
  })]
245
- }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
247
+ }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
246
248
  className: "font-medium text-text-primary",
247
249
  children: e.name
248
- }), /* @__PURE__ */ _("p", {
250
+ }), /* @__PURE__ */ g("p", {
249
251
  className: "text-xs text-text-secondary",
250
- children: [/* @__PURE__ */ _("span", {
252
+ children: [/* @__PURE__ */ g("span", {
251
253
  className: "sr-only",
252
254
  children: [
253
- C("botlit.status.active", "Active"),
255
+ S("botlit.status.active", "Active"),
254
256
  ".",
255
257
  " "
256
258
  ]
@@ -258,94 +260,94 @@ var S = "", C = "flex flex-col items-center gap-2 p-4 rounded-card border borde
258
260
  })] })]
259
261
  })
260
262
  }) }, e.id))
261
- }) : /* @__PURE__ */ _("div", {
263
+ }) : /* @__PURE__ */ g("div", {
262
264
  className: "text-center py-8 text-text-secondary",
263
- children: [/* @__PURE__ */ g(x, {
265
+ children: [/* @__PURE__ */ h(b, {
264
266
  className: "h-8 w-8 mx-auto mb-2 opacity-50",
265
267
  "aria-hidden": "true"
266
- }), L.length === 0 ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("p", { children: C("botlit.dashboard.activeAgents.emptyTitle", "No agents yet") }), /* @__PURE__ */ g(c, {
268
+ }), L.length === 0 ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("p", { children: S("botlit.dashboard.activeAgents.emptyTitle", "No agents yet") }), /* @__PURE__ */ h(c, {
267
269
  permission: s.AGENT_CREATE,
268
- children: /* @__PURE__ */ g(o, {
270
+ children: /* @__PURE__ */ h(o, {
269
271
  variant: "outline",
270
272
  size: "sm",
271
273
  className: "mt-3",
272
- onClick: () => D("agents/new"),
273
- children: C("botlit.dashboard.activeAgents.emptyAction", "Create your first agent")
274
+ onClick: () => E("agents/new"),
275
+ children: S("botlit.dashboard.activeAgents.emptyAction", "Create your first agent")
274
276
  })
275
- })] }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("p", { children: Y !== void 0 && Y > 0 ? C("botlit.dashboard.activeAgents.activeElsewhere", "{{count}} active agents", { count: d(Y) }) : C("botlit.dashboard.activeAgents.noneActive", "{{count}} agents, none active", { count: X === void 0 ? q(L.length, B) : d(X) }) }), /* @__PURE__ */ g(o, {
277
+ })] }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("p", { children: Y !== void 0 && Y > 0 ? S("botlit.dashboard.activeAgents.activeElsewhere", "{{count}} active agents", { count: d(Y) }) : S("botlit.dashboard.activeAgents.noneActive", "{{count}} agents, none active", { count: X === void 0 ? q(L.length, B) : d(X) }) }), /* @__PURE__ */ h(o, {
276
278
  variant: "outline",
277
279
  size: "sm",
278
280
  className: "mt-3",
279
- onClick: () => D("agents"),
280
- children: C("botlit.dashboard.activeAgents.viewAgents", "Review agents")
281
+ onClick: () => E("agents"),
282
+ children: S("botlit.dashboard.activeAgents.viewAgents", "Review agents")
281
283
  })] })]
282
284
  }) })]
283
285
  }) : null]
284
286
  }),
285
- /* @__PURE__ */ _(le, {
287
+ /* @__PURE__ */ g(ue, {
286
288
  treatment: "plain",
287
289
  className: "border-border-seam p-6",
288
- children: [/* @__PURE__ */ g("h2", {
290
+ children: [/* @__PURE__ */ h("h2", {
289
291
  className: "text-lg font-semibold tracking-tight text-text-primary",
290
- children: C("botlit.dashboard.quickActions.title", "Quick Actions")
291
- }), /* @__PURE__ */ _("ul", {
292
+ children: S("botlit.dashboard.quickActions.title", "Quick Actions")
293
+ }), /* @__PURE__ */ g("ul", {
292
294
  className: "mt-4 grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4",
293
295
  children: [
294
- /* @__PURE__ */ g(T, {
296
+ /* @__PURE__ */ h(w, {
295
297
  permission: s.KNOWLEDGE_CREATE,
296
- to: O("knowledge/new"),
297
- icon: /* @__PURE__ */ g(fe, {
298
+ to: D("knowledge/new"),
299
+ icon: /* @__PURE__ */ h(me, {
298
300
  className: "h-8 w-8 text-text-secondary",
299
301
  "aria-hidden": "true"
300
302
  }),
301
- label: C("botlit.dashboard.quickActions.addKnowledge", "Add Knowledge")
303
+ label: S("botlit.dashboard.quickActions.addKnowledge", "Add Knowledge")
302
304
  }),
303
- /* @__PURE__ */ g(T, {
305
+ /* @__PURE__ */ h(w, {
304
306
  permission: s.LLM_CREATE,
305
- to: O("settings"),
306
- icon: /* @__PURE__ */ g(me, {
307
+ to: D("settings"),
308
+ icon: /* @__PURE__ */ h(ge, {
307
309
  className: "h-8 w-8 text-text-secondary",
308
310
  "aria-hidden": "true"
309
311
  }),
310
- label: C("botlit.dashboard.quickActions.connectModel", "Connect LLM Provider")
312
+ label: S("botlit.dashboard.quickActions.connectModel", "Connect LLM Provider")
311
313
  }),
312
- /* @__PURE__ */ g(T, {
314
+ /* @__PURE__ */ h(w, {
313
315
  permission: s.AGENT_CREATE,
314
- to: O("agents/new"),
315
- icon: /* @__PURE__ */ g(x, {
316
+ to: D("agents/new"),
317
+ icon: /* @__PURE__ */ h(b, {
316
318
  className: "h-8 w-8 text-text-secondary",
317
319
  "aria-hidden": "true"
318
320
  }),
319
- label: C("botlit.dashboard.actions.createAgent", "Create Agent")
321
+ label: S("botlit.dashboard.actions.createAgent", "Create Agent")
320
322
  }),
321
- /* @__PURE__ */ g(T, {
323
+ /* @__PURE__ */ h(w, {
322
324
  permission: s.APP_CREATE,
323
- to: O("bots/new"),
324
- icon: /* @__PURE__ */ g(y, {
325
+ to: D("bots/new"),
326
+ icon: /* @__PURE__ */ h(v, {
325
327
  className: "h-8 w-8 text-text-secondary",
326
328
  "aria-hidden": "true"
327
329
  }),
328
- label: C("botlit.dashboard.actions.createBot", "Create Bot")
330
+ label: S("botlit.dashboard.actions.createBot", "Create Bot")
329
331
  }),
330
- /* @__PURE__ */ g(T, {
332
+ /* @__PURE__ */ h(w, {
331
333
  permission: s.CHANNEL_MESSAGE_READ,
332
334
  to: {
333
335
  pathname: "/conversations",
334
- search: E.search
336
+ search: T.search
335
337
  },
336
- icon: /* @__PURE__ */ g(ge, {
338
+ icon: /* @__PURE__ */ h(ve, {
337
339
  className: "h-8 w-8 text-text-secondary",
338
340
  "aria-hidden": "true"
339
341
  }),
340
- label: C("botlit.dashboard.quickActions.conversations", "Conversations")
342
+ label: S("botlit.dashboard.quickActions.conversations", "Conversations")
341
343
  }),
342
- /* @__PURE__ */ g(T, {
343
- to: O("handoffs"),
344
- icon: /* @__PURE__ */ g(pe, {
344
+ /* @__PURE__ */ h(w, {
345
+ to: D("handoffs"),
346
+ icon: /* @__PURE__ */ h(he, {
345
347
  className: "h-8 w-8 text-text-secondary",
346
348
  "aria-hidden": "true"
347
349
  }),
348
- label: C("botlit.dashboard.quickActions.handoffs", "Human Handoffs")
350
+ label: S("botlit.dashboard.quickActions.handoffs", "Human Handoffs")
349
351
  })
350
352
  ]
351
353
  })]
@@ -354,6 +356,6 @@ var S = "", C = "flex flex-col items-center gap-2 p-4 rounded-card border borde
354
356
  })
355
357
  });
356
358
  };
357
- export { E as DashboardPage };
359
+ export { T as DashboardPage };
358
360
 
359
361
  //# sourceMappingURL=DashboardPage.js.map