@burdenoff/microfe-botmanor 2026.1203.4 → 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.
- package/dist/botlit/BotlitRoutes.js +0 -1
- package/dist/botlit/BotlitRoutes.js.map +1 -1
- package/dist/botlit/components/A2ACardVerificationCard.js +0 -1
- package/dist/botlit/components/A2ACardVerificationCard.js.map +1 -1
- package/dist/botlit/components/AgentA2APanel.js +20 -21
- package/dist/botlit/components/AgentA2APanel.js.map +1 -1
- package/dist/botlit/components/AgentApprovalPanel.js +22 -23
- package/dist/botlit/components/AgentApprovalPanel.js.map +1 -1
- package/dist/botlit/components/AgentBindingsPanel.js +66 -68
- package/dist/botlit/components/AgentBindingsPanel.js.map +1 -1
- package/dist/botlit/components/AiOperationsPanel.js +34 -35
- package/dist/botlit/components/AiOperationsPanel.js.map +1 -1
- package/dist/botlit/components/BotAgentsPanel.js +59 -60
- package/dist/botlit/components/BotAgentsPanel.js.map +1 -1
- package/dist/botlit/components/BotVersionHistoryPanel.js +19 -20
- package/dist/botlit/components/BotVersionHistoryPanel.js.map +1 -1
- package/dist/botlit/components/BucketDialogs.js +0 -1
- package/dist/botlit/components/BucketDialogs.js.map +1 -1
- package/dist/botlit/components/ChannelRoutesPanel.js +82 -84
- package/dist/botlit/components/ChannelRoutesPanel.js.map +1 -1
- package/dist/botlit/components/CreateChannelRouteDialog.js +4 -5
- package/dist/botlit/components/CreateChannelRouteDialog.js.map +1 -1
- package/dist/botlit/components/DescribeBotDialog.js +0 -1
- package/dist/botlit/components/DescribeBotDialog.js.map +1 -1
- package/dist/botlit/components/GettingStartedChecklist.js +9 -10
- package/dist/botlit/components/GettingStartedChecklist.js.map +1 -1
- package/dist/botlit/components/HandoffConfigPanel.js +0 -1
- package/dist/botlit/components/HandoffConfigPanel.js.map +1 -1
- package/dist/botlit/components/RetentionStatusPanel.js +10 -12
- package/dist/botlit/components/RetentionStatusPanel.js.map +1 -1
- package/dist/botlit/components/StewardApprovalsInbox.js +201 -212
- package/dist/botlit/components/StewardApprovalsInbox.js.map +1 -1
- package/dist/botlit/components/StoreOwnPackagesCard.js +21 -22
- package/dist/botlit/components/StoreOwnPackagesCard.js.map +1 -1
- package/dist/botlit/components/StorePackageDraftCard.js +38 -39
- package/dist/botlit/components/StorePackageDraftCard.js.map +1 -1
- package/dist/botlit/components/StorePolicyBundleCard.js +27 -29
- package/dist/botlit/components/StorePolicyBundleCard.js.map +1 -1
- package/dist/botlit/components/StoreSubmissionsCard.js +64 -65
- package/dist/botlit/components/StoreSubmissionsCard.js.map +1 -1
- package/dist/botlit/components/VersionHistoryPanel.js +18 -19
- package/dist/botlit/components/VersionHistoryPanel.js.map +1 -1
- package/dist/botlit/hooks/internal/workspaceGateway.d.ts +6 -0
- package/dist/botlit/hooks/internal/workspaceGateway.js +40 -40
- package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
- package/dist/botlit/hooks/useToolApprovals.d.ts +8 -3
- package/dist/botlit/hooks/useToolApprovals.js +68 -73
- package/dist/botlit/hooks/useToolApprovals.js.map +1 -1
- package/dist/botlit/pages/A2AAgentDetailPage.js +331 -332
- package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/A2ARegistryPage.js +39 -41
- package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
- package/dist/botlit/pages/AgentApprovalsPage.js +24 -25
- package/dist/botlit/pages/AgentApprovalsPage.js.map +1 -1
- package/dist/botlit/pages/AgentBuilderPage.js +470 -471
- package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
- package/dist/botlit/pages/AgentDetailPage.js +68 -69
- package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/AgentsListPage.js +277 -278
- package/dist/botlit/pages/AgentsListPage.js.map +1 -1
- package/dist/botlit/pages/AiOperationsPage.js +44 -46
- package/dist/botlit/pages/AiOperationsPage.js.map +1 -1
- package/dist/botlit/pages/BotChannelsTab.js +354 -356
- package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
- package/dist/botlit/pages/BotDetailPage.js +138 -139
- package/dist/botlit/pages/BotDetailPage.js.map +1 -1
- package/dist/botlit/pages/BotWorkflowTab.js +23 -24
- package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
- package/dist/botlit/pages/BotsListPage.js +32 -33
- package/dist/botlit/pages/BotsListPage.js.map +1 -1
- package/dist/botlit/pages/BucketDetailPage.js +110 -112
- package/dist/botlit/pages/BucketDetailPage.js.map +1 -1
- package/dist/botlit/pages/BucketsPage.js +115 -117
- package/dist/botlit/pages/BucketsPage.js.map +1 -1
- package/dist/botlit/pages/ChannelDetailPage.js +105 -107
- package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
- package/dist/botlit/pages/ChannelsPage.js +38 -40
- package/dist/botlit/pages/ChannelsPage.js.map +1 -1
- package/dist/botlit/pages/DashboardPage.js +26 -27
- package/dist/botlit/pages/DashboardPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionDetailPage.js +70 -71
- package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionsPage.js +219 -220
- package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
- package/dist/botlit/pages/HandoffsPage.js +208 -210
- package/dist/botlit/pages/HandoffsPage.js.map +1 -1
- package/dist/botlit/pages/InstalledPackagesPage.js +179 -181
- package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js +194 -195
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBasesPage.js +38 -39
- package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
- package/dist/botlit/pages/MCPServerDetailPage.js +178 -180
- package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
- package/dist/botlit/pages/MCPServersPage.js +42 -43
- package/dist/botlit/pages/MCPServersPage.js.map +1 -1
- package/dist/botlit/pages/PoliciesPage.js +77 -78
- package/dist/botlit/pages/PoliciesPage.js.map +1 -1
- package/dist/botlit/pages/PolicyDetailPage.js +517 -519
- package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptStudioPage.js +81 -83
- package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplateDetailPage.js +137 -139
- package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplatesPage.js +28 -30
- package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfileDetailPage.js +64 -65
- package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfilesPage.js +59 -60
- package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
- package/dist/botlit/pages/SettingsPage.js +30 -31
- package/dist/botlit/pages/SettingsPage.js.map +1 -1
- package/dist/botlit/pages/SkillDetailPage.js +205 -207
- package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
- package/dist/botlit/pages/SkillsPage.js +68 -69
- package/dist/botlit/pages/SkillsPage.js.map +1 -1
- package/dist/botlit/pages/StorePackageDetailPage.js +39 -41
- package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
- package/dist/botlit/pages/StorePage.js +169 -171
- package/dist/botlit/pages/StorePage.js.map +1 -1
- package/dist/botlit/pages/ToolApprovalsPage.js +61 -62
- package/dist/botlit/pages/ToolApprovalsPage.js.map +1 -1
- package/dist/index.js +0 -1
- package/package.json +4 -1
- package/dist/botlit/hooks/index.js +0 -21
- package/dist/botlit/index.js +0 -12
- package/dist/botlit/permissions/index.js +0 -4
|
@@ -1,236 +1,234 @@
|
|
|
1
1
|
import { useBotlit as e } from "../providers/BotlitProvider.js";
|
|
2
2
|
import { useTr as t } from "../../shared/hooks/useTr.js";
|
|
3
3
|
import { PageLayout as n } from "../components/PageLayout.js";
|
|
4
|
-
import {
|
|
5
|
-
import { BotmanorPermissionGate as ee } from "../permissions/useBotmanorPermissions.js";
|
|
6
|
-
import { Card as i, CardContent as a, CardDescription as te, CardHeader as o, CardTitle as s } from "../components/Card.js";
|
|
4
|
+
import { Card as r, CardContent as i, CardDescription as a, CardHeader as o, CardTitle as s } from "../components/Card.js";
|
|
7
5
|
import { Button as c } from "../components/Button.js";
|
|
8
6
|
import { Input as l } from "../components/Input.js";
|
|
9
7
|
import { Badge as u } from "../components/Badge.js";
|
|
10
|
-
import { EmptyState as
|
|
11
|
-
import { LoadMore as
|
|
12
|
-
import { ErrorState as
|
|
13
|
-
import "../hooks/
|
|
14
|
-
import { formatRelativeTime as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import "../permissions/
|
|
18
|
-
import { useMemo as
|
|
19
|
-
import { GlassCard as
|
|
20
|
-
import { jsx as
|
|
21
|
-
import { Link as
|
|
22
|
-
import { Bot as
|
|
23
|
-
import { toast as
|
|
8
|
+
import { EmptyState as ee } from "../components/EmptyState.js";
|
|
9
|
+
import { LoadMore as te } from "../components/LoadMore.js";
|
|
10
|
+
import { ErrorState as ne } from "../components/ErrorState.js";
|
|
11
|
+
import { storePackageDescription as d, storePackageName as f, useInstallPackage as p, useInstalledPackageCount as m, useInstalledPackages as h, useStorePackageCount as g, useStorePackages as _ } from "../hooks/useStore.js";
|
|
12
|
+
import { formatRelativeTime as re } from "../utils/formatters.js";
|
|
13
|
+
import { InstallPackageDialog as ie, STORE_PACKAGE_KINDS as ae, packageKindLabels as v } from "../components/StoreDialogs.js";
|
|
14
|
+
import { BOTMANOR_PERMISSIONS as oe } from "../permissions/botmanorPermissions.js";
|
|
15
|
+
import { BotmanorPermissionGate as y } from "../permissions/useBotmanorPermissions.js";
|
|
16
|
+
import { useMemo as b, useState as x } from "react";
|
|
17
|
+
import { GlassCard as S, PagePurpose as se, ThemedSelect as C } from "@burdenoff/fe-libs/ui";
|
|
18
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
19
|
+
import { Link as E } from "react-router";
|
|
20
|
+
import { Bot as D, Check as O, Database as k, FileText as A, Package as j, Search as ce, Shield as M, Sparkles as N, Store as P, Upload as F, Wrench as I } from "lucide-react";
|
|
21
|
+
import { toast as L } from "sonner";
|
|
24
22
|
// src/botlit/pages/StorePage.tsx
|
|
25
|
-
var
|
|
23
|
+
var R = ({ kind: e, className: t }) => {
|
|
26
24
|
switch (e) {
|
|
27
|
-
case "APP": return /* @__PURE__ */
|
|
25
|
+
case "APP": return /* @__PURE__ */ w(j, { className: t });
|
|
28
26
|
case "AGENT":
|
|
29
|
-
case "A2A_AGENT": return /* @__PURE__ */
|
|
27
|
+
case "A2A_AGENT": return /* @__PURE__ */ w(D, { className: t });
|
|
30
28
|
case "MCP_PACK":
|
|
31
|
-
case "TOOL": return /* @__PURE__ */
|
|
29
|
+
case "TOOL": return /* @__PURE__ */ w(I, { className: t });
|
|
32
30
|
case "PROMPT_TEMPLATE":
|
|
33
|
-
case "PROMPT": return /* @__PURE__ */
|
|
34
|
-
case "SKILL": return /* @__PURE__ */
|
|
31
|
+
case "PROMPT": return /* @__PURE__ */ w(A, { className: t });
|
|
32
|
+
case "SKILL": return /* @__PURE__ */ w(N, { className: t });
|
|
35
33
|
case "RETRIEVAL_PROFILE":
|
|
36
34
|
case "KNOWLEDGE_BASE":
|
|
37
|
-
case "KB_TEMPLATE": return /* @__PURE__ */
|
|
38
|
-
case "POLICY_BUNDLE": return /* @__PURE__ */
|
|
39
|
-
default: return /* @__PURE__ */
|
|
35
|
+
case "KB_TEMPLATE": return /* @__PURE__ */ w(k, { className: t });
|
|
36
|
+
case "POLICY_BUNDLE": return /* @__PURE__ */ w(M, { className: t });
|
|
37
|
+
default: return /* @__PURE__ */ w(j, { className: t });
|
|
40
38
|
}
|
|
41
39
|
};
|
|
42
|
-
function
|
|
40
|
+
function z(e) {
|
|
43
41
|
let t = e.manifest?.security;
|
|
44
42
|
return !(!t || typeof t != "object" || Array.isArray(t) || t.requiresSecrets !== !0);
|
|
45
43
|
}
|
|
46
|
-
var
|
|
47
|
-
let
|
|
48
|
-
search:
|
|
49
|
-
kind:
|
|
50
|
-
sortBy:
|
|
44
|
+
var B = () => {
|
|
45
|
+
let D = t(), { getPath: k } = e(), A = v(D), [j, M] = x(""), [N, I] = x([]), [B, V] = x("recent"), [H, U] = x(null), W = b(() => ({
|
|
46
|
+
search: j,
|
|
47
|
+
kind: N,
|
|
48
|
+
sortBy: B
|
|
51
49
|
}), [
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
]), { data:
|
|
50
|
+
j,
|
|
51
|
+
N,
|
|
52
|
+
B
|
|
53
|
+
]), { data: G, loading: K, error: q, refetch: le, hasMore: ue, loadingMore: de, loadMore: fe } = _(W), pe = g(), J = g(W), Y = m(), { data: X, refetch: me } = h(), { install: he, loading: ge } = p(), Z = j.trim().length > 0 || N.length > 0, Q = b(() => new Set(X.map((e) => e.package?.slug).filter((e) => typeof e == "string")), [X]), _e = (e) => I((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]), ve = async (e, t) => {
|
|
56
54
|
try {
|
|
57
|
-
await
|
|
55
|
+
await he({
|
|
58
56
|
packageId: e.id,
|
|
59
57
|
mode: t
|
|
60
58
|
});
|
|
61
59
|
} catch (e) {
|
|
62
|
-
|
|
60
|
+
L.error(e instanceof Error ? e.message : D("botlit.store.install.error", "Could not install the package."));
|
|
63
61
|
return;
|
|
64
62
|
}
|
|
65
|
-
|
|
66
|
-
}, $ =
|
|
67
|
-
return /* @__PURE__ */
|
|
68
|
-
title:
|
|
69
|
-
description:
|
|
70
|
-
actions: /* @__PURE__ */
|
|
63
|
+
L.success(D("botlit.store.install.success", "Installed \"{{name}}\"", { name: f(e) })), U(null), me(), Y.refetch();
|
|
64
|
+
}, $ = G.slice(0, 3);
|
|
65
|
+
return /* @__PURE__ */ T(n, {
|
|
66
|
+
title: D("botlit.store.title", "BotManor Store"),
|
|
67
|
+
description: D("botlit.store.description", "Discover and install pre-built agents, tools, and configurations"),
|
|
68
|
+
actions: /* @__PURE__ */ T("div", {
|
|
71
69
|
className: "flex gap-2",
|
|
72
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ w(c, {
|
|
73
71
|
variant: "outline",
|
|
74
|
-
children: /* @__PURE__ */
|
|
75
|
-
to:
|
|
76
|
-
children:
|
|
72
|
+
children: /* @__PURE__ */ w(E, {
|
|
73
|
+
to: k("store/installed"),
|
|
74
|
+
children: D("botlit.store.actions.viewInstalled", "View Installed ({{count}})", { count: Y.data ?? X.length })
|
|
77
75
|
})
|
|
78
|
-
}), /* @__PURE__ */
|
|
76
|
+
}), /* @__PURE__ */ w(c, {
|
|
79
77
|
variant: "outline",
|
|
80
|
-
leftIcon: /* @__PURE__ */
|
|
81
|
-
children: /* @__PURE__ */
|
|
82
|
-
to:
|
|
83
|
-
children:
|
|
78
|
+
leftIcon: /* @__PURE__ */ w(F, { size: 16 }),
|
|
79
|
+
children: /* @__PURE__ */ w(E, {
|
|
80
|
+
to: k("store/publish"),
|
|
81
|
+
children: D("botlit.store.actions.publishPackage", "Publish Package")
|
|
84
82
|
})
|
|
85
83
|
})]
|
|
86
84
|
}),
|
|
87
|
-
children: [/* @__PURE__ */
|
|
85
|
+
children: [/* @__PURE__ */ T("div", {
|
|
88
86
|
className: "space-y-6",
|
|
89
87
|
children: [
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
icon: /* @__PURE__ */
|
|
92
|
-
children:
|
|
88
|
+
/* @__PURE__ */ w(se, {
|
|
89
|
+
icon: /* @__PURE__ */ w(P, { size: 18 }),
|
|
90
|
+
children: D("botlit.store.purpose", "The store is a marketplace of ready-made building blocks — full bots, agents, MCP tool packs, prompt templates and policy bundles published by the BotManor team and the community. Browse and install a package to skip the setup and start from a working example, then customise it for your own use case instead of building everything from scratch.")
|
|
93
91
|
}),
|
|
94
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ T("div", {
|
|
95
93
|
className: "flex flex-wrap items-center gap-4",
|
|
96
94
|
children: [
|
|
97
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ T("div", {
|
|
98
96
|
className: "relative flex-1 max-w-md",
|
|
99
|
-
children: [/* @__PURE__ */
|
|
100
|
-
placeholder:
|
|
101
|
-
value:
|
|
102
|
-
onChange: (e) =>
|
|
97
|
+
children: [/* @__PURE__ */ w(ce, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ w(l, {
|
|
98
|
+
placeholder: D("botlit.store.searchPlaceholder", "Search packages..."),
|
|
99
|
+
value: j,
|
|
100
|
+
onChange: (e) => M(e.target.value),
|
|
103
101
|
className: "pl-9"
|
|
104
102
|
})]
|
|
105
103
|
}),
|
|
106
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ T("div", {
|
|
107
105
|
className: "flex flex-wrap gap-2",
|
|
108
106
|
role: "group",
|
|
109
|
-
"aria-label":
|
|
110
|
-
children: [/* @__PURE__ */
|
|
111
|
-
variant:
|
|
107
|
+
"aria-label": D("botlit.store.filters.kindsLabel", "Filter by type"),
|
|
108
|
+
children: [/* @__PURE__ */ w(c, {
|
|
109
|
+
variant: N.length === 0 ? "default" : "outline",
|
|
112
110
|
size: "sm",
|
|
113
|
-
"aria-pressed":
|
|
114
|
-
onClick: () =>
|
|
115
|
-
children:
|
|
116
|
-
}),
|
|
117
|
-
variant:
|
|
111
|
+
"aria-pressed": N.length === 0,
|
|
112
|
+
onClick: () => I([]),
|
|
113
|
+
children: D("botlit.store.filters.all", "All")
|
|
114
|
+
}), ae.map((e) => /* @__PURE__ */ w(c, {
|
|
115
|
+
variant: N.includes(e) ? "default" : "outline",
|
|
118
116
|
size: "sm",
|
|
119
|
-
"aria-pressed":
|
|
120
|
-
onClick: () =>
|
|
121
|
-
leftIcon: /* @__PURE__ */
|
|
117
|
+
"aria-pressed": N.includes(e),
|
|
118
|
+
onClick: () => _e(e),
|
|
119
|
+
leftIcon: /* @__PURE__ */ w(R, {
|
|
122
120
|
kind: e,
|
|
123
121
|
className: "h-4 w-4"
|
|
124
122
|
}),
|
|
125
|
-
children:
|
|
123
|
+
children: A[e]
|
|
126
124
|
}, e))]
|
|
127
125
|
}),
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
-
"aria-label":
|
|
126
|
+
/* @__PURE__ */ T(C, {
|
|
127
|
+
"aria-label": D("botlit.store.filters.sortLabel", "Sort packages"),
|
|
130
128
|
className: "h-9 px-3 border border-border-default rounded-md bg-bg-surface text-sm",
|
|
131
|
-
value:
|
|
132
|
-
onChange: (e) =>
|
|
133
|
-
children: [/* @__PURE__ */
|
|
129
|
+
value: B,
|
|
130
|
+
onChange: (e) => V(e.target.value),
|
|
131
|
+
children: [/* @__PURE__ */ w("option", {
|
|
134
132
|
value: "recent",
|
|
135
|
-
children:
|
|
136
|
-
}), /* @__PURE__ */
|
|
133
|
+
children: D("botlit.store.sort.recent", "Recently Published")
|
|
134
|
+
}), /* @__PURE__ */ w("option", {
|
|
137
135
|
value: "name",
|
|
138
|
-
children:
|
|
136
|
+
children: D("botlit.store.sort.name", "Name (A–Z)")
|
|
139
137
|
})]
|
|
140
138
|
})
|
|
141
139
|
]
|
|
142
140
|
}),
|
|
143
|
-
/* @__PURE__ */
|
|
141
|
+
/* @__PURE__ */ T("div", {
|
|
144
142
|
className: "grid grid-cols-1 md:grid-cols-3 gap-4",
|
|
145
|
-
children: [/* @__PURE__ */
|
|
143
|
+
children: [/* @__PURE__ */ w(S, {
|
|
146
144
|
treatment: "glass",
|
|
147
145
|
glow: !0,
|
|
148
146
|
className: "md:col-span-2 p-6",
|
|
149
|
-
children: /* @__PURE__ */
|
|
147
|
+
children: /* @__PURE__ */ T("div", {
|
|
150
148
|
className: "flex items-start gap-4",
|
|
151
|
-
children: [/* @__PURE__ */
|
|
149
|
+
children: [/* @__PURE__ */ w("div", {
|
|
152
150
|
className: "p-3 bg-action-primary-bg/20 rounded-lg",
|
|
153
|
-
children: /* @__PURE__ */
|
|
154
|
-
}), /* @__PURE__ */
|
|
155
|
-
/* @__PURE__ */
|
|
151
|
+
children: /* @__PURE__ */ w(P, { className: "h-8 w-8 text-primary" })
|
|
152
|
+
}), /* @__PURE__ */ T("div", { children: [
|
|
153
|
+
/* @__PURE__ */ w("h3", {
|
|
156
154
|
className: "text-lg font-semibold text-text-primary",
|
|
157
|
-
children:
|
|
155
|
+
children: D("botlit.store.featured.title", "Welcome to the BotManor Store")
|
|
158
156
|
}),
|
|
159
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ w("p", {
|
|
160
158
|
className: "text-sm text-text-secondary mt-1",
|
|
161
|
-
children:
|
|
159
|
+
children: D("botlit.store.featured.description", "Discover production-ready agents, tool packs, and configurations built by the community and BotManor team. Install packages to jumpstart your AI applications.")
|
|
162
160
|
}),
|
|
163
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ T("div", {
|
|
164
162
|
className: "flex gap-4 mt-4",
|
|
165
|
-
children: [/* @__PURE__ */
|
|
163
|
+
children: [/* @__PURE__ */ T("div", {
|
|
166
164
|
className: "text-center",
|
|
167
|
-
children: [/* @__PURE__ */
|
|
165
|
+
children: [/* @__PURE__ */ w("p", {
|
|
168
166
|
className: "text-2xl font-bold tabular-nums",
|
|
169
|
-
children:
|
|
170
|
-
}), /* @__PURE__ */
|
|
167
|
+
children: pe.data ?? "…"
|
|
168
|
+
}), /* @__PURE__ */ w("p", {
|
|
171
169
|
className: "text-xs text-text-secondary",
|
|
172
|
-
children:
|
|
170
|
+
children: D("botlit.store.featured.packages", "Packages")
|
|
173
171
|
})]
|
|
174
|
-
}), /* @__PURE__ */
|
|
172
|
+
}), /* @__PURE__ */ T("div", {
|
|
175
173
|
className: "text-center",
|
|
176
|
-
children: [/* @__PURE__ */
|
|
174
|
+
children: [/* @__PURE__ */ w("p", {
|
|
177
175
|
className: "text-2xl font-bold tabular-nums",
|
|
178
|
-
children:
|
|
179
|
-
}), /* @__PURE__ */
|
|
176
|
+
children: Y.data ?? "…"
|
|
177
|
+
}), /* @__PURE__ */ w("p", {
|
|
180
178
|
className: "text-xs text-text-secondary",
|
|
181
|
-
children:
|
|
179
|
+
children: D("botlit.store.featured.installed", "Installed")
|
|
182
180
|
})]
|
|
183
181
|
})]
|
|
184
182
|
})
|
|
185
183
|
] })]
|
|
186
184
|
})
|
|
187
|
-
}), /* @__PURE__ */
|
|
185
|
+
}), /* @__PURE__ */ T(r, { children: [/* @__PURE__ */ w(o, {
|
|
188
186
|
className: "pb-2",
|
|
189
|
-
children: /* @__PURE__ */
|
|
187
|
+
children: /* @__PURE__ */ w(s, {
|
|
190
188
|
className: "text-sm",
|
|
191
|
-
children:
|
|
189
|
+
children: D("botlit.store.featured.quickInstall", "Quick Install")
|
|
192
190
|
})
|
|
193
|
-
}), /* @__PURE__ */
|
|
191
|
+
}), /* @__PURE__ */ w(i, {
|
|
194
192
|
className: "space-y-2",
|
|
195
|
-
children:
|
|
193
|
+
children: K ? /* @__PURE__ */ w("p", {
|
|
196
194
|
className: "text-sm text-text-secondary",
|
|
197
|
-
children:
|
|
198
|
-
}) : $.length === 0 ? /* @__PURE__ */
|
|
195
|
+
children: D("botlit.store.quickInstall.loading", "Loading packages…")
|
|
196
|
+
}) : $.length === 0 ? /* @__PURE__ */ w("p", {
|
|
199
197
|
className: "text-sm text-text-secondary",
|
|
200
|
-
children:
|
|
201
|
-
}) : $.map((e) => /* @__PURE__ */
|
|
198
|
+
children: Z ? D("botlit.store.quickInstall.noMatches", "No packages match these filters.") : D("botlit.store.quickInstall.empty", "No packages have been published yet. Published packages appear here.")
|
|
199
|
+
}) : $.map((e) => /* @__PURE__ */ T("div", {
|
|
202
200
|
className: "flex items-center justify-between rounded bg-bg-sunken p-2",
|
|
203
|
-
children: [/* @__PURE__ */
|
|
201
|
+
children: [/* @__PURE__ */ T("div", {
|
|
204
202
|
className: "flex min-w-0 items-center gap-2",
|
|
205
|
-
children: [/* @__PURE__ */
|
|
203
|
+
children: [/* @__PURE__ */ w(R, {
|
|
206
204
|
kind: e.kind,
|
|
207
205
|
className: "h-4 w-4 text-text-secondary"
|
|
208
|
-
}), /* @__PURE__ */
|
|
206
|
+
}), /* @__PURE__ */ w("span", {
|
|
209
207
|
className: "max-w-[150px] truncate text-sm",
|
|
210
|
-
children:
|
|
208
|
+
children: f(e)
|
|
211
209
|
})]
|
|
212
|
-
}),
|
|
210
|
+
}), Q.has(e.slug) ? /* @__PURE__ */ T(u, {
|
|
213
211
|
variant: "success",
|
|
214
212
|
className: "text-xs",
|
|
215
|
-
children: [/* @__PURE__ */
|
|
213
|
+
children: [/* @__PURE__ */ w(O, {
|
|
216
214
|
size: 12,
|
|
217
215
|
className: "mr-1"
|
|
218
|
-
}),
|
|
219
|
-
}) : /* @__PURE__ */
|
|
220
|
-
permission:
|
|
221
|
-
children: /* @__PURE__ */
|
|
216
|
+
}), D("botlit.store.install.installedBadge", "Installed")]
|
|
217
|
+
}) : /* @__PURE__ */ w(y, {
|
|
218
|
+
permission: oe.STORE_CREATE,
|
|
219
|
+
children: /* @__PURE__ */ w(c, {
|
|
222
220
|
size: "sm",
|
|
223
221
|
variant: "ghost",
|
|
224
222
|
className: "h-6 text-xs",
|
|
225
|
-
"aria-label":
|
|
226
|
-
onClick: () =>
|
|
227
|
-
children:
|
|
223
|
+
"aria-label": D("botlit.store.install.actionFor", "Install {{name}}", { name: f(e) }),
|
|
224
|
+
onClick: () => U(e),
|
|
225
|
+
children: D("botlit.store.install.action", "Install")
|
|
228
226
|
})
|
|
229
227
|
})]
|
|
230
228
|
}, e.id))
|
|
231
229
|
})] })]
|
|
232
230
|
}),
|
|
233
|
-
|
|
231
|
+
K ? /* @__PURE__ */ w("div", {
|
|
234
232
|
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
235
233
|
children: [
|
|
236
234
|
1,
|
|
@@ -239,31 +237,31 @@ var z = () => {
|
|
|
239
237
|
4,
|
|
240
238
|
5,
|
|
241
239
|
6
|
|
242
|
-
].map((e) => /* @__PURE__ */
|
|
243
|
-
}) :
|
|
240
|
+
].map((e) => /* @__PURE__ */ w("div", { className: "h-56 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
|
|
241
|
+
}) : q ? /* @__PURE__ */ w(ne, {
|
|
244
242
|
resource: "store packages",
|
|
245
|
-
error:
|
|
246
|
-
onRetry: () => void
|
|
247
|
-
}) :
|
|
243
|
+
error: q,
|
|
244
|
+
onRetry: () => void le()
|
|
245
|
+
}) : G.length > 0 ? /* @__PURE__ */ w("div", {
|
|
248
246
|
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
249
|
-
children:
|
|
250
|
-
to:
|
|
251
|
-
children: /* @__PURE__ */
|
|
247
|
+
children: G.map((e) => /* @__PURE__ */ w(E, {
|
|
248
|
+
to: k(`store/package/${e.slug}`),
|
|
249
|
+
children: /* @__PURE__ */ T(r, {
|
|
252
250
|
className: "h-full hover:border-primary/50 transition-colors cursor-pointer",
|
|
253
|
-
children: [/* @__PURE__ */
|
|
251
|
+
children: [/* @__PURE__ */ w(o, { children: /* @__PURE__ */ T("div", {
|
|
254
252
|
className: "flex items-start justify-between",
|
|
255
|
-
children: [/* @__PURE__ */
|
|
253
|
+
children: [/* @__PURE__ */ T("div", {
|
|
256
254
|
className: "flex items-center gap-3",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
255
|
+
children: [/* @__PURE__ */ w("div", {
|
|
258
256
|
className: "p-2 bg-action-primary-bg/10 rounded-lg",
|
|
259
|
-
children: /* @__PURE__ */
|
|
257
|
+
children: /* @__PURE__ */ w(R, {
|
|
260
258
|
kind: e.kind,
|
|
261
259
|
className: "h-5 w-5 text-primary"
|
|
262
260
|
})
|
|
263
|
-
}), /* @__PURE__ */
|
|
261
|
+
}), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(s, {
|
|
264
262
|
className: "text-base",
|
|
265
|
-
children:
|
|
266
|
-
}), /* @__PURE__ */
|
|
263
|
+
children: f(e)
|
|
264
|
+
}), /* @__PURE__ */ T(a, {
|
|
267
265
|
className: "text-xs",
|
|
268
266
|
children: [
|
|
269
267
|
e.slug,
|
|
@@ -271,60 +269,60 @@ var z = () => {
|
|
|
271
269
|
e.version
|
|
272
270
|
]
|
|
273
271
|
})] })]
|
|
274
|
-
}),
|
|
272
|
+
}), Q.has(e.slug) && /* @__PURE__ */ T(u, {
|
|
275
273
|
variant: "success",
|
|
276
274
|
className: "text-xs",
|
|
277
|
-
children: [/* @__PURE__ */
|
|
275
|
+
children: [/* @__PURE__ */ w(O, {
|
|
278
276
|
size: 10,
|
|
279
277
|
className: "mr-1"
|
|
280
|
-
}),
|
|
278
|
+
}), D("botlit.store.install.installedBadge", "Installed")]
|
|
281
279
|
})]
|
|
282
|
-
}) }), /* @__PURE__ */
|
|
280
|
+
}) }), /* @__PURE__ */ w(i, { children: /* @__PURE__ */ T("div", {
|
|
283
281
|
className: "space-y-3",
|
|
284
|
-
children: [/* @__PURE__ */
|
|
282
|
+
children: [/* @__PURE__ */ w("p", {
|
|
285
283
|
className: "text-sm text-text-secondary line-clamp-2",
|
|
286
|
-
children:
|
|
287
|
-
}), /* @__PURE__ */
|
|
284
|
+
children: d(e)
|
|
285
|
+
}), /* @__PURE__ */ T("div", {
|
|
288
286
|
className: "pt-3 border-t border-border-subtle flex items-center justify-between",
|
|
289
|
-
children: [/* @__PURE__ */
|
|
287
|
+
children: [/* @__PURE__ */ w(u, {
|
|
290
288
|
variant: "outline",
|
|
291
289
|
className: "text-xs",
|
|
292
|
-
children:
|
|
293
|
-
}), /* @__PURE__ */
|
|
290
|
+
children: A[e.kind] ?? e.kind
|
|
291
|
+
}), /* @__PURE__ */ w("span", {
|
|
294
292
|
className: "text-xs text-text-secondary",
|
|
295
|
-
children:
|
|
293
|
+
children: re(e.publishedAt)
|
|
296
294
|
})]
|
|
297
295
|
})]
|
|
298
296
|
}) })]
|
|
299
297
|
})
|
|
300
298
|
}, e.id))
|
|
301
|
-
}) : /* @__PURE__ */
|
|
299
|
+
}) : /* @__PURE__ */ w(ee, {
|
|
302
300
|
illustration: "empty-search",
|
|
303
|
-
title:
|
|
304
|
-
description:
|
|
301
|
+
title: D("botlit.store.empty.title", "No packages found"),
|
|
302
|
+
description: Z ? D("botlit.store.empty.descriptionFiltered", "Try adjusting your search or filters.") : D("botlit.store.empty.descriptionNoPackages", "No packages available in the store yet.")
|
|
305
303
|
}),
|
|
306
|
-
|
|
304
|
+
Z && J.data !== null && G.length > 0 ? /* @__PURE__ */ w("p", {
|
|
307
305
|
className: "text-sm text-text-secondary",
|
|
308
306
|
"aria-live": "polite",
|
|
309
|
-
children:
|
|
307
|
+
children: D("botlit.store.matchCount", "{{count}} package(s) match", { count: J.data })
|
|
310
308
|
}) : null,
|
|
311
|
-
/* @__PURE__ */
|
|
312
|
-
hasMore:
|
|
313
|
-
loadingMore:
|
|
314
|
-
onLoadMore: () => void
|
|
315
|
-
loadedCount:
|
|
309
|
+
/* @__PURE__ */ w(te, {
|
|
310
|
+
hasMore: ue,
|
|
311
|
+
loadingMore: de,
|
|
312
|
+
onLoadMore: () => void fe(),
|
|
313
|
+
loadedCount: G.length
|
|
316
314
|
})
|
|
317
315
|
]
|
|
318
|
-
}), /* @__PURE__ */
|
|
319
|
-
pkg:
|
|
320
|
-
name:
|
|
321
|
-
requiresSecrets:
|
|
322
|
-
installing:
|
|
316
|
+
}), /* @__PURE__ */ w(ie, {
|
|
317
|
+
pkg: H,
|
|
318
|
+
name: H ? f(H) : "",
|
|
319
|
+
requiresSecrets: H ? z(H) : !1,
|
|
320
|
+
installing: ge,
|
|
323
321
|
onConfirm: (e, t) => void ve(e, t),
|
|
324
|
-
onClose: () =>
|
|
322
|
+
onClose: () => U(null)
|
|
325
323
|
})]
|
|
326
324
|
});
|
|
327
325
|
};
|
|
328
|
-
export {
|
|
326
|
+
export { B as StorePage };
|
|
329
327
|
|
|
330
328
|
//# sourceMappingURL=StorePage.js.map
|