@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.
- package/dist/botlit/BotmanorRootInner.js +46 -45
- package/dist/botlit/BotmanorRootInner.js.map +1 -1
- package/dist/botlit/components/A2ACardVerificationCard.d.ts +8 -0
- package/dist/botlit/components/A2ACardVerificationCard.js +123 -0
- package/dist/botlit/components/A2ACardVerificationCard.js.map +1 -0
- package/dist/botlit/components/A2ARunCollaborationPanel.d.ts +4 -0
- package/dist/botlit/components/A2ARunCollaborationPanel.js +149 -0
- package/dist/botlit/components/A2ARunCollaborationPanel.js.map +1 -0
- package/dist/botlit/components/A2AVerificationBadge.d.ts +4 -0
- package/dist/botlit/components/A2AVerificationBadge.js +37 -0
- package/dist/botlit/components/A2AVerificationBadge.js.map +1 -0
- package/dist/botlit/components/AgentA2APanel.js +85 -73
- package/dist/botlit/components/AgentA2APanel.js.map +1 -1
- package/dist/botlit/components/PlanUsageCard.d.ts +2 -0
- package/dist/botlit/components/PlanUsageCard.js +79 -0
- package/dist/botlit/components/PlanUsageCard.js.map +1 -0
- package/dist/botlit/components/QuotaExhaustedDialog.d.ts +14 -3
- package/dist/botlit/components/QuotaExhaustedDialog.js +33 -13
- package/dist/botlit/components/QuotaExhaustedDialog.js.map +1 -1
- package/dist/botlit/hooks/index.d.ts +1 -1
- package/dist/botlit/hooks/useA2A.d.ts +36 -0
- package/dist/botlit/hooks/useA2A.js +154 -109
- package/dist/botlit/hooks/useA2A.js.map +1 -1
- package/dist/botlit/hooks/useA2APlan.d.ts +8 -0
- package/dist/botlit/hooks/useA2APlan.js +24 -0
- package/dist/botlit/hooks/useA2APlan.js.map +1 -0
- package/dist/botlit/hooks/usePlanUsage.d.ts +19 -0
- package/dist/botlit/hooks/usePlanUsage.js +45 -0
- package/dist/botlit/hooks/usePlanUsage.js.map +1 -0
- package/dist/botlit/pages/A2AAgentDetailPage.js +384 -342
- package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/A2ARegistryPage.js +148 -140
- package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
- package/dist/botlit/pages/BotDetailPage.js +4 -4
- package/dist/botlit/pages/DashboardPage.js +151 -149
- package/dist/botlit/pages/DashboardPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionDetailPage.js +172 -170
- package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
- package/dist/botlit/providers/QuotaGuard.d.ts +2 -0
- package/dist/botlit/providers/QuotaGuard.js +51 -0
- package/dist/botlit/providers/QuotaGuard.js.map +1 -0
- package/dist/botlit/providers/quotaGuardContext.d.ts +11 -0
- package/dist/botlit/providers/quotaGuardContext.js +9 -0
- package/dist/botlit/providers/quotaGuardContext.js.map +1 -0
- package/dist/botlit/utils/a2aRunCollaboration.d.ts +37 -0
- package/dist/botlit/utils/a2aRunCollaboration.js +42 -0
- package/dist/botlit/utils/a2aRunCollaboration.js.map +1 -0
- package/dist/botlit/utils/a2aVerificationStatus.d.ts +11 -0
- package/dist/botlit/utils/a2aVerificationStatus.js +18 -0
- package/dist/botlit/utils/a2aVerificationStatus.js.map +1 -0
- package/dist/botlit/utils/quotaErrors.d.ts +48 -0
- package/dist/botlit/utils/quotaErrors.js +118 -0
- package/dist/botlit/utils/quotaErrors.js.map +1 -0
- package/dist/botlit/utils/watchPlanLimits.d.ts +12 -0
- package/dist/botlit/utils/watchPlanLimits.js +27 -0
- package/dist/botlit/utils/watchPlanLimits.js.map +1 -0
- package/dist/generated/wspace-operations.d.ts +211 -0
- package/dist/generated/wspace-operations.js +206 -114
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +74 -1
- package/dist/generated/wspace-types.js.map +1 -1
- 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 {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
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
|
|
15
|
+
import { byRecentActivity as f, getGreetingName as ce } from "../utils/greeting.js";
|
|
15
16
|
import "../permissions/index.js";
|
|
16
|
-
import { Fragment as
|
|
17
|
-
import { GlassCard as
|
|
18
|
-
import { Fragment as
|
|
19
|
-
import { Link as
|
|
20
|
-
import { AppWindow as
|
|
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
|
|
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__ */
|
|
32
|
-
}),
|
|
33
|
-
let i = /* @__PURE__ */
|
|
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:
|
|
36
|
-
children: [n, /* @__PURE__ */
|
|
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__ */
|
|
42
|
+
return e ? /* @__PURE__ */ h(c, {
|
|
42
43
|
permission: e,
|
|
43
44
|
children: i
|
|
44
45
|
}) : i;
|
|
45
|
-
},
|
|
46
|
-
let
|
|
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:
|
|
50
|
-
value: J === void 0 ? I ? "—" : q(P.length,
|
|
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__ */
|
|
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:
|
|
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__ */
|
|
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 ?
|
|
71
|
-
}, $ =
|
|
72
|
-
return /* @__PURE__ */
|
|
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:
|
|
75
|
-
description:
|
|
76
|
-
actions: /* @__PURE__ */
|
|
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__ */
|
|
79
|
+
children: [/* @__PURE__ */ h(c, {
|
|
79
80
|
permission: s.AGENT_CREATE,
|
|
80
|
-
children: /* @__PURE__ */
|
|
81
|
-
leftIcon: /* @__PURE__ */
|
|
82
|
-
onClick: () =>
|
|
83
|
-
children:
|
|
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__ */
|
|
86
|
+
}), /* @__PURE__ */ h(c, {
|
|
86
87
|
permission: s.APP_CREATE,
|
|
87
|
-
children: /* @__PURE__ */
|
|
88
|
+
children: /* @__PURE__ */ h(o, {
|
|
88
89
|
variant: "outline",
|
|
89
|
-
leftIcon: /* @__PURE__ */
|
|
90
|
-
onClick: () =>
|
|
91
|
-
children:
|
|
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__ */
|
|
96
|
+
children: /* @__PURE__ */ g("div", {
|
|
96
97
|
className: "space-y-6",
|
|
97
|
-
children: [/* @__PURE__ */
|
|
98
|
-
icon: /* @__PURE__ */
|
|
98
|
+
children: [/* @__PURE__ */ h(fe, {
|
|
99
|
+
icon: /* @__PURE__ */ h(be, {
|
|
99
100
|
size: 18,
|
|
100
101
|
"aria-hidden": "true"
|
|
101
102
|
}),
|
|
102
|
-
children:
|
|
103
|
-
}),
|
|
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__ */
|
|
107
|
+
children: [/* @__PURE__ */ h(_e, {
|
|
107
108
|
size: 28,
|
|
108
109
|
className: "text-text-secondary",
|
|
109
110
|
"aria-hidden": "true"
|
|
110
|
-
}), /* @__PURE__ */
|
|
111
|
+
}), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("h2", {
|
|
111
112
|
className: "text-lg font-medium text-text-primary",
|
|
112
|
-
children:
|
|
113
|
-
}), /* @__PURE__ */
|
|
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:
|
|
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__ */
|
|
118
|
-
/* @__PURE__ */
|
|
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":
|
|
121
|
-
children: N ? /* @__PURE__ */
|
|
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__ */
|
|
125
|
+
children: /* @__PURE__ */ h(r, {
|
|
125
126
|
className: "pt-6",
|
|
126
|
-
children: /* @__PURE__ */
|
|
127
|
+
children: /* @__PURE__ */ g("div", {
|
|
127
128
|
className: "flex items-center gap-4",
|
|
128
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
132
|
+
}), /* @__PURE__ */ g("div", {
|
|
132
133
|
className: "flex flex-col-reverse",
|
|
133
|
-
children: [/* @__PURE__ */
|
|
134
|
+
children: [/* @__PURE__ */ h("p", {
|
|
134
135
|
className: "text-sm text-text-secondary",
|
|
135
136
|
children: e.label
|
|
136
|
-
}), e.loading ? /* @__PURE__ */
|
|
137
|
+
}), e.loading ? /* @__PURE__ */ h("div", {
|
|
137
138
|
role: "status",
|
|
138
139
|
"aria-busy": "true",
|
|
139
|
-
"aria-label":
|
|
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__ */
|
|
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
|
-
|
|
151
|
-
/* @__PURE__ */
|
|
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__ */
|
|
155
|
+
children: [j ? /* @__PURE__ */ g(n, {
|
|
154
156
|
treatment: "insight",
|
|
155
|
-
children: [/* @__PURE__ */
|
|
157
|
+
children: [/* @__PURE__ */ g(i, {
|
|
156
158
|
className: "flex flex-row items-center justify-between",
|
|
157
|
-
children: [/* @__PURE__ */
|
|
159
|
+
children: [/* @__PURE__ */ h(a, {
|
|
158
160
|
as: "h2",
|
|
159
|
-
children:
|
|
160
|
-
}), /* @__PURE__ */
|
|
161
|
+
children: S("botlit.dashboard.recentBots.title", "Recent Bots")
|
|
162
|
+
}), /* @__PURE__ */ h(o, {
|
|
161
163
|
variant: "ghost",
|
|
162
164
|
size: "sm",
|
|
163
|
-
rightIcon: /* @__PURE__ */
|
|
164
|
-
onClick: () =>
|
|
165
|
-
children:
|
|
165
|
+
rightIcon: /* @__PURE__ */ h(y, { size: 16 }),
|
|
166
|
+
onClick: () => E("bots"),
|
|
167
|
+
children: S("botlit.common.viewAll", "View All")
|
|
166
168
|
})]
|
|
167
|
-
}), /* @__PURE__ */
|
|
168
|
-
resource:
|
|
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
|
|
171
|
-
}) : U.length > 0 ? /* @__PURE__ */
|
|
172
|
+
onRetry: () => void Ce()
|
|
173
|
+
}) : U.length > 0 ? /* @__PURE__ */ h("ul", {
|
|
172
174
|
className: "space-y-3",
|
|
173
|
-
children: U.map((e) => /* @__PURE__ */
|
|
174
|
-
to:
|
|
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__ */
|
|
178
|
+
children: [/* @__PURE__ */ g("div", {
|
|
177
179
|
className: "flex items-center gap-3",
|
|
178
|
-
children: [/* @__PURE__ */
|
|
180
|
+
children: [/* @__PURE__ */ h("span", {
|
|
179
181
|
className: "text-2xl",
|
|
180
182
|
"aria-hidden": "true",
|
|
181
183
|
children: e.icon || "🤖"
|
|
182
|
-
}), /* @__PURE__ */
|
|
184
|
+
}), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
183
185
|
className: "font-medium text-text-primary",
|
|
184
186
|
children: e.name
|
|
185
|
-
}), /* @__PURE__ */
|
|
187
|
+
}), /* @__PURE__ */ h("p", {
|
|
186
188
|
className: "text-xs text-text-secondary",
|
|
187
189
|
children: Q(e.executionCount)
|
|
188
190
|
})] })]
|
|
189
|
-
}), /* @__PURE__ */
|
|
191
|
+
}), /* @__PURE__ */ h(ee, { status: e.status })]
|
|
190
192
|
}) }, e.id))
|
|
191
|
-
}) : /* @__PURE__ */
|
|
193
|
+
}) : /* @__PURE__ */ g("div", {
|
|
192
194
|
className: "text-center py-8 text-text-secondary",
|
|
193
195
|
children: [
|
|
194
|
-
/* @__PURE__ */
|
|
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__ */
|
|
199
|
-
/* @__PURE__ */
|
|
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__ */
|
|
203
|
+
children: /* @__PURE__ */ h(o, {
|
|
202
204
|
variant: "outline",
|
|
203
205
|
size: "sm",
|
|
204
206
|
className: "mt-3",
|
|
205
|
-
onClick: () =>
|
|
206
|
-
children:
|
|
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__ */
|
|
213
|
+
}) : null, M ? /* @__PURE__ */ g(n, {
|
|
212
214
|
treatment: "insight",
|
|
213
|
-
children: [/* @__PURE__ */
|
|
215
|
+
children: [/* @__PURE__ */ g(i, {
|
|
214
216
|
className: "flex flex-row items-center justify-between",
|
|
215
|
-
children: [/* @__PURE__ */
|
|
217
|
+
children: [/* @__PURE__ */ h(a, {
|
|
216
218
|
as: "h2",
|
|
217
|
-
children:
|
|
218
|
-
}), /* @__PURE__ */
|
|
219
|
+
children: S("botlit.dashboard.activeAgents.title", "Active Agents")
|
|
220
|
+
}), /* @__PURE__ */ h(o, {
|
|
219
221
|
variant: "ghost",
|
|
220
222
|
size: "sm",
|
|
221
|
-
rightIcon: /* @__PURE__ */
|
|
222
|
-
onClick: () =>
|
|
223
|
-
children:
|
|
223
|
+
rightIcon: /* @__PURE__ */ h(y, { size: 16 }),
|
|
224
|
+
onClick: () => E("agents"),
|
|
225
|
+
children: S("botlit.common.viewAll", "View All")
|
|
224
226
|
})]
|
|
225
|
-
}), /* @__PURE__ */
|
|
226
|
-
resource:
|
|
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
|
|
229
|
-
}) : G.length > 0 ? /* @__PURE__ */
|
|
230
|
+
onRetry: () => void we()
|
|
231
|
+
}) : G.length > 0 ? /* @__PURE__ */ h("ul", {
|
|
230
232
|
className: "space-y-3",
|
|
231
|
-
children: G.map((e) => /* @__PURE__ */
|
|
232
|
-
to:
|
|
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__ */
|
|
236
|
+
children: /* @__PURE__ */ g("div", {
|
|
235
237
|
className: "flex items-center gap-3",
|
|
236
|
-
children: [/* @__PURE__ */
|
|
238
|
+
children: [/* @__PURE__ */ g("span", {
|
|
237
239
|
className: "relative text-2xl",
|
|
238
|
-
children: [/* @__PURE__ */
|
|
240
|
+
children: [/* @__PURE__ */ h("span", {
|
|
239
241
|
"aria-hidden": "true",
|
|
240
242
|
children: "🤖"
|
|
241
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
247
|
+
}), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
246
248
|
className: "font-medium text-text-primary",
|
|
247
249
|
children: e.name
|
|
248
|
-
}), /* @__PURE__ */
|
|
250
|
+
}), /* @__PURE__ */ g("p", {
|
|
249
251
|
className: "text-xs text-text-secondary",
|
|
250
|
-
children: [/* @__PURE__ */
|
|
252
|
+
children: [/* @__PURE__ */ g("span", {
|
|
251
253
|
className: "sr-only",
|
|
252
254
|
children: [
|
|
253
|
-
|
|
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__ */
|
|
263
|
+
}) : /* @__PURE__ */ g("div", {
|
|
262
264
|
className: "text-center py-8 text-text-secondary",
|
|
263
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
270
|
+
children: /* @__PURE__ */ h(o, {
|
|
269
271
|
variant: "outline",
|
|
270
272
|
size: "sm",
|
|
271
273
|
className: "mt-3",
|
|
272
|
-
onClick: () =>
|
|
273
|
-
children:
|
|
274
|
+
onClick: () => E("agents/new"),
|
|
275
|
+
children: S("botlit.dashboard.activeAgents.emptyAction", "Create your first agent")
|
|
274
276
|
})
|
|
275
|
-
})] }) : /* @__PURE__ */
|
|
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: () =>
|
|
280
|
-
children:
|
|
281
|
+
onClick: () => E("agents"),
|
|
282
|
+
children: S("botlit.dashboard.activeAgents.viewAgents", "Review agents")
|
|
281
283
|
})] })]
|
|
282
284
|
}) })]
|
|
283
285
|
}) : null]
|
|
284
286
|
}),
|
|
285
|
-
/* @__PURE__ */
|
|
287
|
+
/* @__PURE__ */ g(ue, {
|
|
286
288
|
treatment: "plain",
|
|
287
289
|
className: "border-border-seam p-6",
|
|
288
|
-
children: [/* @__PURE__ */
|
|
290
|
+
children: [/* @__PURE__ */ h("h2", {
|
|
289
291
|
className: "text-lg font-semibold tracking-tight text-text-primary",
|
|
290
|
-
children:
|
|
291
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
296
|
+
/* @__PURE__ */ h(w, {
|
|
295
297
|
permission: s.KNOWLEDGE_CREATE,
|
|
296
|
-
to:
|
|
297
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
303
|
+
label: S("botlit.dashboard.quickActions.addKnowledge", "Add Knowledge")
|
|
302
304
|
}),
|
|
303
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ h(w, {
|
|
304
306
|
permission: s.LLM_CREATE,
|
|
305
|
-
to:
|
|
306
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
312
|
+
label: S("botlit.dashboard.quickActions.connectModel", "Connect LLM Provider")
|
|
311
313
|
}),
|
|
312
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ h(w, {
|
|
313
315
|
permission: s.AGENT_CREATE,
|
|
314
|
-
to:
|
|
315
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
321
|
+
label: S("botlit.dashboard.actions.createAgent", "Create Agent")
|
|
320
322
|
}),
|
|
321
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ h(w, {
|
|
322
324
|
permission: s.APP_CREATE,
|
|
323
|
-
to:
|
|
324
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
330
|
+
label: S("botlit.dashboard.actions.createBot", "Create Bot")
|
|
329
331
|
}),
|
|
330
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ h(w, {
|
|
331
333
|
permission: s.CHANNEL_MESSAGE_READ,
|
|
332
334
|
to: {
|
|
333
335
|
pathname: "/conversations",
|
|
334
|
-
search:
|
|
336
|
+
search: T.search
|
|
335
337
|
},
|
|
336
|
-
icon: /* @__PURE__ */
|
|
338
|
+
icon: /* @__PURE__ */ h(ve, {
|
|
337
339
|
className: "h-8 w-8 text-text-secondary",
|
|
338
340
|
"aria-hidden": "true"
|
|
339
341
|
}),
|
|
340
|
-
label:
|
|
342
|
+
label: S("botlit.dashboard.quickActions.conversations", "Conversations")
|
|
341
343
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
343
|
-
to:
|
|
344
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
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 {
|
|
359
|
+
export { T as DashboardPage };
|
|
358
360
|
|
|
359
361
|
//# sourceMappingURL=DashboardPage.js.map
|