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