@burdenoff/microfe-botmanor 2026.1120.2 → 2026.1120.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/botlit/components/BucketDialogs.d.ts +40 -0
  2. package/dist/botlit/components/BucketDialogs.js +258 -0
  3. package/dist/botlit/components/BucketDialogs.js.map +1 -0
  4. package/dist/botlit/components/StoreDialogs.d.ts +33 -0
  5. package/dist/botlit/components/StoreDialogs.js +139 -0
  6. package/dist/botlit/components/StoreDialogs.js.map +1 -0
  7. package/dist/botlit/hooks/index.d.ts +3 -3
  8. package/dist/botlit/hooks/index.js +6 -6
  9. package/dist/botlit/hooks/useBuckets.d.ts +48 -15
  10. package/dist/botlit/hooks/useBuckets.js +128 -85
  11. package/dist/botlit/hooks/useBuckets.js.map +1 -1
  12. package/dist/botlit/hooks/useStore.d.ts +4 -0
  13. package/dist/botlit/hooks/useStore.js +87 -60
  14. package/dist/botlit/hooks/useStore.js.map +1 -1
  15. package/dist/botlit/pages/BucketDetailPage.js +283 -209
  16. package/dist/botlit/pages/BucketDetailPage.js.map +1 -1
  17. package/dist/botlit/pages/BucketsPage.js +413 -545
  18. package/dist/botlit/pages/BucketsPage.js.map +1 -1
  19. package/dist/botlit/pages/ChatPage.js +10 -16
  20. package/dist/botlit/pages/ChatPage.js.map +1 -1
  21. package/dist/botlit/pages/InstalledPackagesPage.js +275 -275
  22. package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
  23. package/dist/botlit/pages/StorePackageDetailPage.js +165 -257
  24. package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
  25. package/dist/botlit/pages/StorePage.js +179 -184
  26. package/dist/botlit/pages/StorePage.js.map +1 -1
  27. package/dist/generated/wspace-operations.d.ts +216 -0
  28. package/dist/generated/wspace-operations.js +162 -93
  29. package/dist/generated/wspace-operations.js.map +1 -1
  30. package/dist/generated/wspace-types.d.ts +49 -0
  31. package/dist/generated/wspace-types.js.map +1 -1
  32. 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 ee } from "../permissions/botmanorPermissions.js";
5
- import { BotmanorPermissionGate as r } from "../permissions/useBotmanorPermissions.js";
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 f } from "../components/EmptyState.js";
11
- import { LoadMore as p } from "../components/LoadMore.js";
12
- import { ErrorState as m } from "../components/ErrorState.js";
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 h } from "../utils/formatters.js";
15
- import { storePackageDescription as g, storePackageName as _, useInstallPackage as v, useInstalledPackages as te, useStorePackages as y } from "../hooks/useStore.js";
16
- import { InstallMode as b, PackageKind as x } from "../../generated/wspace-types.js";
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 S, useState as C } from "react";
19
- import { GlassCard as ne, PagePurpose as w } from "@burdenoff/fe-libs/ui";
20
- import { jsx as T, jsxs as E } from "react/jsx-runtime";
21
- import { Link as D } from "react-router";
22
- import { Bot as O, Check as k, Database as A, ExternalLink as j, FileText as M, Package as N, Search as P, Shield as F, Sparkles as I, Store as L, Wrench as R } from "lucide-react";
23
- import { toast as z } from "sonner";
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 B = ({ kind: e, className: t }) => {
25
+ var L = ({ kind: e, className: t }) => {
26
26
  switch (e) {
27
- case "APP": return /* @__PURE__ */ T(N, { className: t });
27
+ case "APP": return /* @__PURE__ */ w(j, { className: t });
28
28
  case "AGENT":
29
- case "A2A_AGENT": return /* @__PURE__ */ T(O, { className: t });
29
+ case "A2A_AGENT": return /* @__PURE__ */ w(D, { className: t });
30
30
  case "MCP_PACK":
31
- case "TOOL": return /* @__PURE__ */ T(R, { className: t });
31
+ case "TOOL": return /* @__PURE__ */ w(F, { className: t });
32
32
  case "PROMPT_TEMPLATE":
33
- case "PROMPT": return /* @__PURE__ */ T(M, { className: t });
34
- case "SKILL": return /* @__PURE__ */ T(I, { className: t });
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__ */ T(A, { className: t });
38
- case "POLICY_BUNDLE": return /* @__PURE__ */ T(F, { className: t });
39
- default: return /* @__PURE__ */ T(N, { className: t });
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 V(e) {
43
- return {
44
- APP: e("botlit.store.kindLabel.APP", "Bot"),
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 H = () => {
63
- let O = t(), { getPath: A } = e(), M = V(O), [N, F] = C(""), [I, R] = C(null), [H, U] = C("recent"), [W, G] = C(null), K = S(() => ({
64
- search: N,
65
- kind: I ? [I] : void 0,
66
- sortBy: H
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
- I,
70
- H
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 oe({
57
+ await pe({
75
58
  packageId: e.id,
76
- mode: b.Linked
77
- }), z.success(O("botlit.store.install.success", "Installed \"{{name}}\"", { name: _(e) })), ae();
59
+ mode: t
60
+ });
78
61
  } catch (e) {
79
- z.error(e instanceof Error ? e.message : O("botlit.store.install.error", "Failed to install package"));
80
- } finally {
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
- }, ce = [
84
- x.Agent,
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: O("botlit.store.title", "BotManor Store"),
92
- description: O("botlit.store.description", "Discover and install pre-built agents, tools, and configurations"),
93
- actions: /* @__PURE__ */ E("div", {
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: [/* @__PURE__ */ T(l, {
72
+ children: /* @__PURE__ */ w(l, {
96
73
  variant: "outline",
97
- children: /* @__PURE__ */ T(D, {
98
- to: A("store/installed"),
99
- children: O("botlit.store.actions.viewInstalled", "View Installed ({{count}})", { count: Q.length })
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
- }), /* @__PURE__ */ T(l, {
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__ */ E("div", {
80
+ children: [/* @__PURE__ */ T("div", {
108
81
  className: "space-y-6",
109
82
  children: [
110
- /* @__PURE__ */ T(w, {
111
- icon: /* @__PURE__ */ T(L, { size: 18 }),
112
- children: O("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.")
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__ */ E("div", {
87
+ /* @__PURE__ */ T("div", {
115
88
  className: "flex flex-wrap items-center gap-4",
116
89
  children: [
117
- /* @__PURE__ */ E("div", {
90
+ /* @__PURE__ */ T("div", {
118
91
  className: "relative flex-1 max-w-md",
119
- children: [/* @__PURE__ */ T(P, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ T(u, {
120
- placeholder: O("botlit.store.searchPlaceholder", "Search packages..."),
121
- value: N,
122
- onChange: (e) => F(e.target.value),
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__ */ E("div", {
127
- className: "flex gap-2",
128
- children: [/* @__PURE__ */ T(l, {
129
- variant: I === null ? "default" : "outline",
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
- onClick: () => R(null),
132
- children: O("botlit.store.filters.all", "All")
133
- }), ce.map((e) => /* @__PURE__ */ T(l, {
134
- variant: I === e ? "default" : "outline",
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
- onClick: () => R(e),
137
- leftIcon: /* @__PURE__ */ T(B, {
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: M[e]
118
+ children: A[e]
142
119
  }, e))]
143
120
  }),
144
- /* @__PURE__ */ E("select", {
145
- "aria-label": O("botlit.store.filters.sortLabel", "Sort packages"),
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: H,
148
- onChange: (e) => U(e.target.value),
149
- children: [/* @__PURE__ */ T("option", {
124
+ value: z,
125
+ onChange: (e) => B(e.target.value),
126
+ children: [/* @__PURE__ */ w("option", {
150
127
  value: "recent",
151
- children: O("botlit.store.sort.recent", "Recently Published")
152
- }), /* @__PURE__ */ T("option", {
128
+ children: D("botlit.store.sort.recent", "Recently Published")
129
+ }), /* @__PURE__ */ w("option", {
153
130
  value: "name",
154
- children: O("botlit.store.sort.name", "Name (A–Z)")
131
+ children: D("botlit.store.sort.name", "Name (A–Z)")
155
132
  })]
156
133
  })
157
134
  ]
158
135
  }),
159
- /* @__PURE__ */ E("div", {
136
+ /* @__PURE__ */ T("div", {
160
137
  className: "grid grid-cols-1 md:grid-cols-3 gap-4",
161
- children: [/* @__PURE__ */ T(ne, {
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__ */ E("div", {
142
+ children: /* @__PURE__ */ T("div", {
166
143
  className: "flex items-start gap-4",
167
- children: [/* @__PURE__ */ T("div", {
144
+ children: [/* @__PURE__ */ w("div", {
168
145
  className: "p-3 bg-action-primary-bg/20 rounded-lg",
169
- children: /* @__PURE__ */ T(L, { className: "h-8 w-8 text-primary" })
170
- }), /* @__PURE__ */ E("div", { children: [
171
- /* @__PURE__ */ T("h3", {
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: O("botlit.store.featured.title", "Welcome to the BotManor Store")
150
+ children: D("botlit.store.featured.title", "Welcome to the BotManor Store")
174
151
  }),
175
- /* @__PURE__ */ T("p", {
152
+ /* @__PURE__ */ w("p", {
176
153
  className: "text-sm text-text-secondary mt-1",
177
- children: O("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.")
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__ */ E("div", {
156
+ /* @__PURE__ */ T("div", {
180
157
  className: "flex gap-4 mt-4",
181
- children: [/* @__PURE__ */ E("div", {
158
+ children: [/* @__PURE__ */ T("div", {
182
159
  className: "text-center",
183
- children: [/* @__PURE__ */ T("p", {
160
+ children: [/* @__PURE__ */ w("p", {
184
161
  className: "text-2xl font-bold tabular-nums",
185
- children: q.length
186
- }), /* @__PURE__ */ T("p", {
162
+ children: fe.data ?? "…"
163
+ }), /* @__PURE__ */ w("p", {
187
164
  className: "text-xs text-text-secondary",
188
- children: O("botlit.store.featured.packages", "Packages")
165
+ children: D("botlit.store.featured.packages", "Packages")
189
166
  })]
190
- }), /* @__PURE__ */ E("div", {
167
+ }), /* @__PURE__ */ T("div", {
191
168
  className: "text-center",
192
- children: [/* @__PURE__ */ T("p", {
169
+ children: [/* @__PURE__ */ w("p", {
193
170
  className: "text-2xl font-bold tabular-nums",
194
- children: Q.length
195
- }), /* @__PURE__ */ T("p", {
171
+ children: J.data ?? "…"
172
+ }), /* @__PURE__ */ w("p", {
196
173
  className: "text-xs text-text-secondary",
197
- children: O("botlit.store.featured.installed", "Installed")
174
+ children: D("botlit.store.featured.installed", "Installed")
198
175
  })]
199
176
  })]
200
177
  })
201
178
  ] })]
202
179
  })
203
- }), /* @__PURE__ */ E(i, { children: [/* @__PURE__ */ T(s, {
180
+ }), /* @__PURE__ */ T(i, { children: [/* @__PURE__ */ w(s, {
204
181
  className: "pb-2",
205
- children: /* @__PURE__ */ T(c, {
182
+ children: /* @__PURE__ */ w(c, {
206
183
  className: "text-sm",
207
- children: O("botlit.store.featured.quickInstall", "Quick Install")
184
+ children: D("botlit.store.featured.quickInstall", "Quick Install")
208
185
  })
209
- }), /* @__PURE__ */ T(a, {
186
+ }), /* @__PURE__ */ w(a, {
210
187
  className: "space-y-2",
211
- children: q.slice(0, 3).map((e) => /* @__PURE__ */ E("div", {
212
- className: "flex items-center justify-between p-2 bg-bg-sunken rounded",
213
- children: [/* @__PURE__ */ E("div", {
214
- className: "flex items-center gap-2",
215
- children: [/* @__PURE__ */ T(B, {
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__ */ T("span", {
219
- className: "text-sm truncate max-w-[150px]",
220
- children: _(e)
201
+ }), /* @__PURE__ */ w("span", {
202
+ className: "max-w-[150px] truncate text-sm",
203
+ children: f(e)
221
204
  })]
222
- }), $.has(e.slug) ? /* @__PURE__ */ E(d, {
205
+ }), Q.has(e.slug) ? /* @__PURE__ */ T(d, {
223
206
  variant: "success",
224
207
  className: "text-xs",
225
- children: [/* @__PURE__ */ T(k, {
208
+ children: [/* @__PURE__ */ w(O, {
226
209
  size: 12,
227
210
  className: "mr-1"
228
- }), O("botlit.store.install.installedBadge", "Installed")]
229
- }) : /* @__PURE__ */ T(r, {
230
- permission: ee.STORE_CREATE,
231
- children: /* @__PURE__ */ T(l, {
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
- onClick: (t) => void se(e, t),
236
- isLoading: W === e.slug,
237
- children: O("botlit.store.install.action", "Install")
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
- J ? /* @__PURE__ */ T("div", {
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__ */ T("div", { className: "h-56 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
253
- }) : Y ? /* @__PURE__ */ T(m, {
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: Y,
256
- onRetry: () => void X()
257
- }) : q.length > 0 ? /* @__PURE__ */ T("div", {
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: q.map((e) => /* @__PURE__ */ T(D, {
260
- to: A(`store/package/${e.slug}`),
261
- children: /* @__PURE__ */ E(i, {
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__ */ T(s, { children: /* @__PURE__ */ E("div", {
246
+ children: [/* @__PURE__ */ w(s, { children: /* @__PURE__ */ T("div", {
264
247
  className: "flex items-start justify-between",
265
- children: [/* @__PURE__ */ E("div", {
248
+ children: [/* @__PURE__ */ T("div", {
266
249
  className: "flex items-center gap-3",
267
- children: [/* @__PURE__ */ T("div", {
250
+ children: [/* @__PURE__ */ w("div", {
268
251
  className: "p-2 bg-action-primary-bg/10 rounded-lg",
269
- children: /* @__PURE__ */ T(B, {
252
+ children: /* @__PURE__ */ w(L, {
270
253
  kind: e.kind,
271
254
  className: "h-5 w-5 text-primary"
272
255
  })
273
- }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T(c, {
256
+ }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(c, {
274
257
  className: "text-base",
275
- children: _(e)
276
- }), /* @__PURE__ */ E(o, {
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
- }), $.has(e.slug) && /* @__PURE__ */ E(d, {
267
+ }), Q.has(e.slug) && /* @__PURE__ */ T(d, {
285
268
  variant: "success",
286
269
  className: "text-xs",
287
- children: [/* @__PURE__ */ T(k, {
270
+ children: [/* @__PURE__ */ w(O, {
288
271
  size: 10,
289
272
  className: "mr-1"
290
- }), O("botlit.store.install.installedBadge", "Installed")]
273
+ }), D("botlit.store.install.installedBadge", "Installed")]
291
274
  })]
292
- }) }), /* @__PURE__ */ T(a, { children: /* @__PURE__ */ E("div", {
275
+ }) }), /* @__PURE__ */ w(a, { children: /* @__PURE__ */ T("div", {
293
276
  className: "space-y-3",
294
- children: [/* @__PURE__ */ T("p", {
277
+ children: [/* @__PURE__ */ w("p", {
295
278
  className: "text-sm text-text-secondary line-clamp-2",
296
- children: g(e)
297
- }), /* @__PURE__ */ E("div", {
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__ */ T(d, {
282
+ children: [/* @__PURE__ */ w(d, {
300
283
  variant: "outline",
301
284
  className: "text-xs",
302
- children: M[e.kind] ?? e.kind
303
- }), /* @__PURE__ */ T("span", {
285
+ children: A[e.kind] ?? e.kind
286
+ }), /* @__PURE__ */ w("span", {
304
287
  className: "text-xs text-text-secondary",
305
- children: h(e.publishedAt)
288
+ children: ie(e.publishedAt)
306
289
  })]
307
290
  })]
308
291
  }) })]
309
292
  })
310
293
  }, e.id))
311
- }) : /* @__PURE__ */ T(f, {
294
+ }) : /* @__PURE__ */ w(te, {
312
295
  illustration: "empty-search",
313
- title: O("botlit.store.empty.title", "No packages found"),
314
- description: N || I ? O("botlit.store.empty.descriptionFiltered", "Try adjusting your search or filters.") : O("botlit.store.empty.descriptionNoPackages", "No packages available in the store yet.")
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__ */ T(p, {
317
- hasMore: re,
318
- loadingMore: Z,
319
- onLoadMore: () => void ie(),
320
- loadedCount: q.length
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 { H as StorePage };
321
+ export { z as StorePage };
327
322
 
328
323
  //# sourceMappingURL=StorePage.js.map