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