@burdenoff/microfe-botmanor 2026.1120.3 → 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 (30) 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/InstalledPackagesPage.js +275 -275
  20. package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
  21. package/dist/botlit/pages/StorePackageDetailPage.js +165 -257
  22. package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
  23. package/dist/botlit/pages/StorePage.js +179 -184
  24. package/dist/botlit/pages/StorePage.js.map +1 -1
  25. package/dist/generated/wspace-operations.d.ts +216 -0
  26. package/dist/generated/wspace-operations.js +162 -93
  27. package/dist/generated/wspace-operations.js.map +1 -1
  28. package/dist/generated/wspace-types.d.ts +49 -0
  29. package/dist/generated/wspace-types.js.map +1 -1
  30. package/package.json +1 -1
@@ -1,52 +1,39 @@
1
1
  import { useBotlit as e } from "../providers/BotlitProvider.js";
2
2
  import { PageLayout as t } from "../components/PageLayout.js";
3
- import { BOTMANOR_PERMISSIONS as n } from "../permissions/botmanorPermissions.js";
4
- import { BotmanorPermissionGate as r } from "../permissions/useBotmanorPermissions.js";
5
- import { EmptyState as i } from "../components/EmptyState.js";
3
+ import { EmptyState as n } from "../components/EmptyState.js";
4
+ import { BOTMANOR_PERMISSIONS as r } from "../permissions/botmanorPermissions.js";
5
+ import { BotmanorPermissionGate as i } from "../permissions/useBotmanorPermissions.js";
6
6
  import { Card as a, CardContent as o, CardDescription as s, CardHeader as c, CardTitle as l } from "../components/Card.js";
7
7
  import { Button as u } from "../components/Button.js";
8
8
  import { Badge as d } from "../components/Badge.js";
9
9
  import "../hooks/index.js";
10
- import { formatRelativeTime as f } from "../utils/formatters.js";
11
- import { useInstallPackage as p, useStorePackage as m } from "../hooks/useStore.js";
12
- import { InstallMode as h } from "../../generated/wspace-types.js";
10
+ import { InstallPackageDialog as f, packageKindLabels as p } from "../components/StoreDialogs.js";
11
+ import { useTr as m } from "../../shared/hooks/useTr.js";
12
+ import { useInstallPackage as h, useStorePackage as g } from "../hooks/useStore.js";
13
+ import { formatRelativeTime as _ } from "../utils/formatters.js";
13
14
  import "../permissions/index.js";
14
- import { useMemo as g, useState as _ } from "react";
15
- import { PagePurpose as v } from "@burdenoff/fe-libs/ui";
16
- import { jsx as y, jsxs as b } from "react/jsx-runtime";
17
- import { useParams as x } from "react-router";
18
- import { AlertTriangle as S, ArrowLeft as C, CheckCircle as w, Download as T, ExternalLink as E, FileText as D, GitBranch as O, Globe as k, Package as A, Shield as j, Tag as M } from "lucide-react";
19
- import { toast as N } from "sonner";
15
+ import { useMemo as v, useState as y } from "react";
16
+ import { PagePurpose as b } from "@burdenoff/fe-libs/ui";
17
+ import { jsx as x, jsxs as S } from "react/jsx-runtime";
18
+ import { useParams as C } from "react-router";
19
+ import { ArrowLeft as w, CheckCircle as T, Download as E, ExternalLink as D, FileText as O, GitBranch as k, Globe as A, Package as j, Shield as M, Tag as N } from "lucide-react";
20
+ import { toast as P } from "sonner";
20
21
  // src/botlit/pages/StorePackageDetailPage.tsx
21
- var P = {
22
- APP: "Bot",
23
- AGENT: "Agent",
24
- MCP_PACK: "MCP Pack",
25
- PROMPT_TEMPLATE: "Prompt Template",
26
- PROMPT: "Prompt",
27
- SKILL: "Skill",
28
- RETRIEVAL_PROFILE: "Retrieval Profile",
29
- POLICY_BUNDLE: "Policy Bundle",
30
- CHANNEL_TEMPLATE: "Channel Template",
31
- A2A_AGENT: "A2A Agent",
32
- KB_TEMPLATE: "KB Template",
33
- KNOWLEDGE_BASE: "Knowledge Base",
34
- INTEGRATION: "Integration",
35
- TEMPLATE: "Template",
36
- TOOL: "Tool",
37
- WORKFLOW: "Workflow"
38
- }, F = ({ risk: e }) => e ? /* @__PURE__ */ b(d, {
39
- variant: {
40
- low: "success",
41
- medium: "warning",
42
- high: "destructive"
43
- }[e] ?? "secondary",
44
- className: "capitalize",
45
- children: [e, " Risk"]
46
- }) : /* @__PURE__ */ y(d, {
47
- variant: "secondary",
48
- children: "Risk unknown"
49
- });
22
+ var F = ({ risk: e }) => {
23
+ let t = m();
24
+ return e ? /* @__PURE__ */ x(d, {
25
+ variant: {
26
+ low: "success",
27
+ medium: "warning",
28
+ high: "destructive"
29
+ }[e] ?? "secondary",
30
+ className: "capitalize",
31
+ children: t("botlit.store.detail.risk", "{{risk}} risk", { risk: e })
32
+ }) : /* @__PURE__ */ x(d, {
33
+ variant: "secondary",
34
+ children: t("botlit.store.detail.riskUnknown", "Risk unknown")
35
+ });
36
+ };
50
37
  function I(e) {
51
38
  return e && typeof e == "object" && !Array.isArray(e) ? e : {};
52
39
  }
@@ -87,204 +74,198 @@ function R(e) {
87
74
  };
88
75
  }
89
76
  var z = () => {
90
- let { slug: I } = x(), { navigateTo: L } = e(), { data: z, loading: B } = m(I ? decodeURIComponent(I) : void 0), { install: V, loading: H } = p(), [U, W] = _(h.Linked), [G, K] = _(!1), q = g(() => R(z?.manifest ?? {}), [z?.manifest]), J = async () => {
91
- if (z) {
92
- try {
93
- await V({
94
- packageId: z.id,
95
- mode: U
96
- });
97
- } catch (e) {
98
- N.error(e instanceof Error ? e.message : "Failed to install package");
99
- return;
100
- }
101
- N.success(`Installed "${q.name ?? z.slug}"`), K(!1), L("store/installed");
77
+ let I = m(), L = p(I), { slug: z } = C(), { navigateTo: B } = e(), { data: V, loading: H } = g(z ? decodeURIComponent(z) : void 0), { install: U, loading: W } = h(), [G, K] = y(!1), q = v(() => R(V?.manifest ?? {}), [V?.manifest]), J = async (e, t) => {
78
+ try {
79
+ await U({
80
+ packageId: e.id,
81
+ mode: t
82
+ });
83
+ } catch (e) {
84
+ P.error(e instanceof Error ? e.message : I("botlit.store.install.error", "Could not install the package."));
85
+ return;
102
86
  }
87
+ P.success(I("botlit.store.install.success", "Installed \"{{name}}\"", { name: q.name ?? e.slug })), K(!1), B("store/installed");
103
88
  };
104
- return B ? /* @__PURE__ */ y(t, {
105
- title: "Loading...",
106
- children: /* @__PURE__ */ y("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
107
- }) : z ? /* @__PURE__ */ b(t, {
108
- title: /* @__PURE__ */ b("div", {
89
+ return H ? /* @__PURE__ */ x(t, {
90
+ title: I("botlit.store.detail.loading", "Loading…"),
91
+ children: /* @__PURE__ */ x("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
92
+ }) : V ? /* @__PURE__ */ S(t, {
93
+ title: /* @__PURE__ */ S("div", {
109
94
  className: "flex items-center gap-3",
110
95
  children: [
111
- /* @__PURE__ */ y(u, {
96
+ /* @__PURE__ */ x(u, {
112
97
  variant: "ghost",
113
98
  size: "icon",
114
- onClick: () => L("store"),
115
- children: /* @__PURE__ */ y(C, { size: 20 })
99
+ onClick: () => B("store"),
100
+ children: /* @__PURE__ */ x(w, { size: 20 })
116
101
  }),
117
- /* @__PURE__ */ y("div", {
102
+ /* @__PURE__ */ x("div", {
118
103
  className: "p-2 rounded-lg bg-action-primary-bg/10",
119
- children: q.icon ? /* @__PURE__ */ y("span", {
104
+ children: q.icon ? /* @__PURE__ */ x("span", {
120
105
  className: "text-2xl",
121
106
  children: q.icon
122
- }) : /* @__PURE__ */ y(A, { className: "h-6 w-6 text-primary" })
107
+ }) : /* @__PURE__ */ x(j, { className: "h-6 w-6 text-primary" })
123
108
  }),
124
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("div", {
109
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("div", {
125
110
  className: "flex items-center gap-2",
126
- children: [/* @__PURE__ */ y("span", { children: q.name ?? z.slug }), /* @__PURE__ */ b(d, {
111
+ children: [/* @__PURE__ */ x("span", { children: q.name ?? V.slug }), /* @__PURE__ */ S(d, {
127
112
  variant: "outline",
128
- children: ["v", z.version]
113
+ children: ["v", V.version]
129
114
  })]
130
- }), /* @__PURE__ */ y("p", {
115
+ }), /* @__PURE__ */ x("p", {
131
116
  className: "text-sm font-normal text-text-secondary",
132
- children: z.slug
117
+ children: V.slug
133
118
  })] })
134
119
  ]
135
120
  }),
136
- actions: /* @__PURE__ */ b("div", {
121
+ actions: /* @__PURE__ */ S("div", {
137
122
  className: "flex gap-2",
138
- children: [q.homepage && /* @__PURE__ */ y("a", {
123
+ children: [q.homepage && /* @__PURE__ */ x("a", {
139
124
  href: q.homepage,
140
125
  target: "_blank",
141
126
  rel: "noopener noreferrer",
142
- children: /* @__PURE__ */ y(u, {
127
+ children: /* @__PURE__ */ x(u, {
143
128
  variant: "outline",
144
- leftIcon: /* @__PURE__ */ y(E, { size: 16 }),
145
- children: "Homepage"
129
+ leftIcon: /* @__PURE__ */ x(D, { size: 16 }),
130
+ children: I("botlit.store.detail.homepage", "Homepage")
146
131
  })
147
- }), /* @__PURE__ */ y(r, {
148
- permission: n.STORE_CREATE,
149
- children: /* @__PURE__ */ y(u, {
150
- leftIcon: /* @__PURE__ */ y(T, { size: 16 }),
132
+ }), /* @__PURE__ */ x(i, {
133
+ permission: r.STORE_CREATE,
134
+ children: /* @__PURE__ */ x(u, {
135
+ leftIcon: /* @__PURE__ */ x(E, { size: 16 }),
151
136
  onClick: () => K(!0),
152
- children: "Install"
137
+ children: I("botlit.store.detail.install", "Install")
153
138
  })
154
139
  })]
155
140
  }),
156
- children: [/* @__PURE__ */ b("div", {
141
+ children: [/* @__PURE__ */ S("div", {
157
142
  className: "space-y-6",
158
143
  children: [
159
- /* @__PURE__ */ y(v, {
160
- icon: /* @__PURE__ */ y(A, { size: 18 }),
161
- children: "This is a store package — a ready-made bot, agent, skill, tool pack or template you can install into your workspace. Review what it does, its security posture and version, then install it (linked so it stays updated, or forked as your own copy) to get a head start instead of building from scratch."
144
+ /* @__PURE__ */ x(b, {
145
+ icon: /* @__PURE__ */ x(j, { size: 18 }),
146
+ children: I("botlit.store.detail.purpose", "This is a store package: a ready-made bot, agent, skill, tool pack or template you can install into your workspace. Review what it does, its security posture and version, then install it, linked to the store listing or as your own forked copy.")
162
147
  }),
163
- /* @__PURE__ */ b("div", {
148
+ /* @__PURE__ */ S("div", {
164
149
  className: "grid grid-cols-2 md:grid-cols-4 gap-4",
165
150
  children: [
166
- /* @__PURE__ */ y(a, {
151
+ /* @__PURE__ */ x(a, {
167
152
  treatment: "glass",
168
153
  glow: !0,
169
- children: /* @__PURE__ */ b(o, {
154
+ children: /* @__PURE__ */ S(o, {
170
155
  className: "pt-6 text-center",
171
- children: [/* @__PURE__ */ y(d, {
156
+ children: [/* @__PURE__ */ x(d, {
172
157
  variant: "outline",
173
158
  className: "text-xs",
174
- children: P[z.kind] ?? z.kind
175
- }), /* @__PURE__ */ y("p", {
159
+ children: L[V.kind] ?? V.kind
160
+ }), /* @__PURE__ */ x("p", {
176
161
  className: "text-sm text-text-secondary mt-1",
177
- children: "Type"
162
+ children: I("botlit.store.detail.type", "Type")
178
163
  })]
179
164
  })
180
165
  }),
181
- /* @__PURE__ */ y(a, { children: /* @__PURE__ */ b(o, {
166
+ /* @__PURE__ */ x(a, { children: /* @__PURE__ */ S(o, {
182
167
  className: "pt-6 text-center",
183
- children: [/* @__PURE__ */ b("p", {
168
+ children: [/* @__PURE__ */ S("p", {
184
169
  className: "text-lg font-bold",
185
- children: ["v", z.version]
186
- }), /* @__PURE__ */ y("p", {
170
+ children: ["v", V.version]
171
+ }), /* @__PURE__ */ x("p", {
187
172
  className: "text-sm text-text-secondary",
188
- children: "Version"
173
+ children: I("botlit.store.detail.version", "Version")
189
174
  })]
190
175
  }) }),
191
- /* @__PURE__ */ y(a, { children: /* @__PURE__ */ b(o, {
176
+ /* @__PURE__ */ x(a, { children: /* @__PURE__ */ S(o, {
192
177
  className: "pt-6 text-center",
193
- children: [/* @__PURE__ */ y(F, { risk: q.risk }), /* @__PURE__ */ y("p", {
178
+ children: [/* @__PURE__ */ x(F, { risk: q.risk }), /* @__PURE__ */ x("p", {
194
179
  className: "text-sm text-text-secondary mt-1",
195
- children: "Security"
180
+ children: I("botlit.store.detail.security", "Security")
196
181
  })]
197
182
  }) }),
198
- /* @__PURE__ */ y(a, { children: /* @__PURE__ */ b(o, {
183
+ /* @__PURE__ */ x(a, { children: /* @__PURE__ */ S(o, {
199
184
  className: "pt-6 text-center",
200
- children: [/* @__PURE__ */ y("p", {
185
+ children: [/* @__PURE__ */ x("p", {
201
186
  className: "text-lg font-bold",
202
187
  children: q.license ?? "—"
203
- }), /* @__PURE__ */ y("p", {
188
+ }), /* @__PURE__ */ x("p", {
204
189
  className: "text-sm text-text-secondary",
205
- children: "License"
190
+ children: I("botlit.store.detail.license", "License")
206
191
  })]
207
192
  }) })
208
193
  ]
209
194
  }),
210
- /* @__PURE__ */ b(a, { children: [/* @__PURE__ */ y(c, { children: /* @__PURE__ */ y(l, { children: "Description" }) }), /* @__PURE__ */ b(o, { children: [/* @__PURE__ */ y("p", {
195
+ /* @__PURE__ */ S(a, { children: [/* @__PURE__ */ x(c, { children: /* @__PURE__ */ x(l, { children: I("botlit.store.detail.description", "Description") }) }), /* @__PURE__ */ S(o, { children: [/* @__PURE__ */ x("p", {
211
196
  className: "text-text-primary",
212
197
  children: q.description ?? "—"
213
- }), q.tags.length > 0 && /* @__PURE__ */ b("div", {
198
+ }), q.tags.length > 0 && /* @__PURE__ */ S("div", {
214
199
  className: "flex items-center gap-2 mt-4",
215
- children: [/* @__PURE__ */ y(M, {
200
+ children: [/* @__PURE__ */ x(N, {
216
201
  size: 14,
217
202
  className: "text-text-secondary"
218
- }), q.tags.map((e) => /* @__PURE__ */ y(d, {
203
+ }), q.tags.map((e) => /* @__PURE__ */ x(d, {
219
204
  variant: "secondary",
220
205
  children: e
221
206
  }, e))]
222
207
  })] })] }),
223
- z.readme && /* @__PURE__ */ b(a, { children: [/* @__PURE__ */ y(c, { children: /* @__PURE__ */ b(l, {
208
+ V.readme && /* @__PURE__ */ S(a, { children: [/* @__PURE__ */ x(c, { children: /* @__PURE__ */ S(l, {
224
209
  className: "flex items-center gap-2",
225
- children: [/* @__PURE__ */ y(D, { size: 18 }), "README"]
226
- }) }), /* @__PURE__ */ y(o, { children: /* @__PURE__ */ y("div", {
210
+ children: [/* @__PURE__ */ x(O, { size: 18 }), I("botlit.store.detail.readme", "README")]
211
+ }) }), /* @__PURE__ */ x(o, { children: /* @__PURE__ */ x("div", {
227
212
  className: "prose prose-sm max-w-none dark:prose-invert",
228
- children: /* @__PURE__ */ y("pre", {
213
+ children: /* @__PURE__ */ x("pre", {
229
214
  className: "whitespace-pre-wrap text-sm",
230
- children: z.readme
215
+ children: V.readme
231
216
  })
232
217
  }) })] }),
233
- /* @__PURE__ */ b(a, { children: [/* @__PURE__ */ y(c, { children: /* @__PURE__ */ y(l, { children: "Author & Links" }) }), /* @__PURE__ */ y(o, { children: /* @__PURE__ */ b("div", {
218
+ /* @__PURE__ */ S(a, { children: [/* @__PURE__ */ x(c, { children: /* @__PURE__ */ x(l, { children: I("botlit.store.detail.authorLinks", "Author & links") }) }), /* @__PURE__ */ x(o, { children: /* @__PURE__ */ S("div", {
234
219
  className: "grid grid-cols-2 md:grid-cols-4 gap-6",
235
220
  children: [
236
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
221
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
237
222
  className: "text-sm text-text-secondary",
238
- children: "Author"
239
- }), /* @__PURE__ */ b("div", {
223
+ children: I("botlit.store.detail.author", "Author")
224
+ }), /* @__PURE__ */ S("div", {
240
225
  className: "flex items-center gap-2 mt-1",
241
- children: [/* @__PURE__ */ y("span", {
226
+ children: [/* @__PURE__ */ x("span", {
242
227
  className: "font-medium",
243
228
  children: q.authorName ?? "—"
244
- }), q.authorUrl && /* @__PURE__ */ y("a", {
229
+ }), q.authorUrl && /* @__PURE__ */ x("a", {
245
230
  href: q.authorUrl,
246
231
  target: "_blank",
247
232
  rel: "noopener noreferrer",
248
233
  className: "text-primary hover:underline",
249
- children: /* @__PURE__ */ y(E, { size: 12 })
234
+ children: /* @__PURE__ */ x(D, { size: 12 })
250
235
  })]
251
236
  })] }),
252
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
237
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
253
238
  className: "text-sm text-text-secondary",
254
- children: "Published"
255
- }), /* @__PURE__ */ y("p", {
239
+ children: I("botlit.store.detail.published", "Published")
240
+ }), /* @__PURE__ */ x("p", {
256
241
  className: "font-medium mt-1",
257
- children: f(z.publishedAt)
242
+ children: _(V.publishedAt)
258
243
  })] }),
259
- q.repository && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
244
+ q.repository && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
260
245
  className: "text-sm text-text-secondary",
261
- children: "Repository"
262
- }), /* @__PURE__ */ b("a", {
246
+ children: I("botlit.store.detail.repository", "Repository")
247
+ }), /* @__PURE__ */ S("a", {
263
248
  href: q.repository,
264
249
  target: "_blank",
265
250
  rel: "noopener noreferrer",
266
251
  className: "flex items-center gap-1 mt-1 text-primary hover:underline",
267
- children: [/* @__PURE__ */ y(O, { size: 14 }), "View Source"]
252
+ children: [/* @__PURE__ */ x(k, { size: 14 }), I("botlit.store.detail.viewSource", "View source")]
268
253
  })] }),
269
- q.homepage && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
254
+ q.homepage && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
270
255
  className: "text-sm text-text-secondary",
271
- children: "Homepage"
272
- }), /* @__PURE__ */ b("a", {
256
+ children: I("botlit.store.detail.homepage", "Homepage")
257
+ }), /* @__PURE__ */ S("a", {
273
258
  href: q.homepage,
274
259
  target: "_blank",
275
260
  rel: "noopener noreferrer",
276
261
  className: "flex items-center gap-1 mt-1 text-primary hover:underline",
277
- children: [/* @__PURE__ */ y(k, { size: 14 }), "Visit Site"]
262
+ children: [/* @__PURE__ */ x(A, { size: 14 }), I("botlit.store.detail.visitSite", "Visit site")]
278
263
  })] })
279
264
  ]
280
265
  }) })] }),
281
- q.dependencies.length > 0 && /* @__PURE__ */ b(a, { children: [/* @__PURE__ */ b(c, { children: [/* @__PURE__ */ y(l, { children: "Dependencies" }), /* @__PURE__ */ b(s, { children: [
282
- "This package depends on ",
283
- q.dependencies.length,
284
- " other package(s)"
285
- ] })] }), /* @__PURE__ */ y(o, { children: /* @__PURE__ */ y("div", {
266
+ q.dependencies.length > 0 && /* @__PURE__ */ S(a, { children: [/* @__PURE__ */ S(c, { children: [/* @__PURE__ */ x(l, { children: I("botlit.store.detail.dependencies", "Dependencies") }), /* @__PURE__ */ x(s, { children: I("botlit.store.detail.dependsOn", "This package depends on {{count}} other package(s)", { count: q.dependencies.length }) })] }), /* @__PURE__ */ x(o, { children: /* @__PURE__ */ x("div", {
286
267
  className: "flex flex-wrap gap-2",
287
- children: q.dependencies.map((e) => /* @__PURE__ */ b(d, {
268
+ children: q.dependencies.map((e) => /* @__PURE__ */ S(d, {
288
269
  variant: "outline",
289
270
  className: "font-mono",
290
271
  children: [
@@ -294,170 +275,97 @@ var z = () => {
294
275
  ]
295
276
  }, e.slug))
296
277
  }) })] }),
297
- /* @__PURE__ */ b("div", {
278
+ /* @__PURE__ */ S("div", {
298
279
  className: "grid grid-cols-1 md:grid-cols-2 gap-6",
299
- children: [/* @__PURE__ */ b(a, { children: [/* @__PURE__ */ y(c, { children: /* @__PURE__ */ b(l, {
280
+ children: [/* @__PURE__ */ S(a, { children: [/* @__PURE__ */ x(c, { children: /* @__PURE__ */ S(l, {
300
281
  className: "flex items-center gap-2",
301
- children: [/* @__PURE__ */ y(w, { size: 18 }), "Compatibility"]
302
- }) }), /* @__PURE__ */ y(o, { children: /* @__PURE__ */ y("div", {
282
+ children: [/* @__PURE__ */ x(T, { size: 18 }), I("botlit.store.detail.compatibility", "Compatibility")]
283
+ }) }), /* @__PURE__ */ x(o, { children: /* @__PURE__ */ x("div", {
303
284
  className: "space-y-2",
304
- children: Object.keys(q.compatibility).length === 0 ? /* @__PURE__ */ y("p", {
285
+ children: Object.keys(q.compatibility).length === 0 ? /* @__PURE__ */ x("p", {
305
286
  className: "text-sm text-text-secondary",
306
- children: "This package does not declare compatibility ranges."
307
- }) : Object.entries(q.compatibility).map(([e, t]) => /* @__PURE__ */ b("div", {
287
+ children: I("botlit.store.detail.noCompatibility", "This package does not declare compatibility ranges.")
288
+ }) : Object.entries(q.compatibility).map(([e, t]) => /* @__PURE__ */ S("div", {
308
289
  className: "flex justify-between",
309
- children: [/* @__PURE__ */ y("span", {
290
+ children: [/* @__PURE__ */ x("span", {
310
291
  className: "text-text-secondary capitalize",
311
292
  children: e
312
- }), /* @__PURE__ */ y(d, {
293
+ }), /* @__PURE__ */ x(d, {
313
294
  variant: "outline",
314
295
  children: t
315
296
  })]
316
297
  }, e))
317
- }) })] }), /* @__PURE__ */ b(a, { children: [/* @__PURE__ */ y(c, { children: /* @__PURE__ */ b(l, {
298
+ }) })] }), /* @__PURE__ */ S(a, { children: [/* @__PURE__ */ x(c, { children: /* @__PURE__ */ S(l, {
318
299
  className: "flex items-center gap-2",
319
- children: [/* @__PURE__ */ y(j, { size: 18 }), "Security"]
320
- }) }), /* @__PURE__ */ y(o, { children: /* @__PURE__ */ b("div", {
300
+ children: [/* @__PURE__ */ x(M, { size: 18 }), I("botlit.store.detail.security", "Security")]
301
+ }) }), /* @__PURE__ */ x(o, { children: /* @__PURE__ */ S("div", {
321
302
  className: "space-y-3",
322
303
  children: [
323
- /* @__PURE__ */ b("div", {
304
+ /* @__PURE__ */ S("div", {
324
305
  className: "flex items-center justify-between",
325
- children: [/* @__PURE__ */ y("span", {
306
+ children: [/* @__PURE__ */ x("span", {
326
307
  className: "text-text-secondary",
327
- children: "Risk Level"
328
- }), /* @__PURE__ */ y(F, { risk: q.risk })]
308
+ children: I("botlit.store.detail.riskLevel", "Risk level")
309
+ }), /* @__PURE__ */ x(F, { risk: q.risk })]
329
310
  }),
330
- /* @__PURE__ */ b("div", {
311
+ /* @__PURE__ */ S("div", {
331
312
  className: "flex items-center justify-between",
332
- children: [/* @__PURE__ */ y("span", {
313
+ children: [/* @__PURE__ */ x("span", {
333
314
  className: "text-text-secondary",
334
- children: "Requires Secrets"
335
- }), /* @__PURE__ */ y(d, {
315
+ children: I("botlit.store.detail.requiresSecrets", "Requires secrets")
316
+ }), /* @__PURE__ */ x(d, {
336
317
  variant: q.requiresSecrets ? "warning" : "secondary",
337
- children: q.requiresSecrets ? "Yes" : "No"
318
+ children: q.requiresSecrets ? I("botlit.store.detail.yes", "Yes") : I("botlit.store.detail.no", "No")
338
319
  })]
339
320
  }),
340
- /* @__PURE__ */ b("div", {
321
+ /* @__PURE__ */ S("div", {
341
322
  className: "flex items-center justify-between",
342
- children: [/* @__PURE__ */ y("span", {
323
+ children: [/* @__PURE__ */ x("span", {
343
324
  className: "text-text-secondary",
344
- children: "Network Egress"
345
- }), /* @__PURE__ */ y(d, {
325
+ children: I("botlit.store.detail.networkEgress", "Network egress")
326
+ }), /* @__PURE__ */ x(d, {
346
327
  variant: q.networkEgress === "any" ? "warning" : q.networkEgress === "restricted" ? "secondary" : "success",
347
328
  className: "capitalize",
348
- children: q.networkEgress ?? "unknown"
329
+ children: q.networkEgress ?? I("botlit.store.detail.unknown", "unknown")
349
330
  })]
350
331
  })
351
332
  ]
352
333
  }) })] })]
353
334
  }),
354
- /* @__PURE__ */ b(a, { children: [/* @__PURE__ */ y(c, { children: /* @__PURE__ */ y(l, { children: "Integrity" }) }), /* @__PURE__ */ y(o, { children: /* @__PURE__ */ b("div", {
335
+ /* @__PURE__ */ S(a, { children: [/* @__PURE__ */ x(c, { children: /* @__PURE__ */ x(l, { children: I("botlit.store.detail.integrity", "Integrity") }) }), /* @__PURE__ */ x(o, { children: /* @__PURE__ */ S("div", {
355
336
  className: "space-y-2",
356
- children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
337
+ children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
357
338
  className: "text-sm text-text-secondary",
358
- children: "Checksum"
359
- }), /* @__PURE__ */ y("p", {
339
+ children: I("botlit.store.detail.checksum", "Checksum")
340
+ }), /* @__PURE__ */ x("p", {
360
341
  className: "font-mono text-sm break-all",
361
342
  children: q.checksum ?? "—"
362
- })] }), q.signature && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
343
+ })] }), q.signature && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
363
344
  className: "text-sm text-text-secondary",
364
- children: "Signature"
365
- }), /* @__PURE__ */ y("p", {
345
+ children: I("botlit.store.detail.signature", "Signature")
346
+ }), /* @__PURE__ */ x("p", {
366
347
  className: "font-mono text-sm break-all",
367
348
  children: q.signature
368
349
  })] })]
369
350
  }) })] })
370
351
  ]
371
- }), G && /* @__PURE__ */ y("div", {
372
- className: "fixed inset-0 bg-bg-overlay flex items-center justify-center z-50",
373
- children: /* @__PURE__ */ b(a, {
374
- className: "w-full max-w-md",
375
- children: [/* @__PURE__ */ b(c, { children: [/* @__PURE__ */ y(l, { children: "Install Package" }), /* @__PURE__ */ b(s, { children: [
376
- "Install ",
377
- q.name ?? z.slug,
378
- " v",
379
- z.version
380
- ] })] }), /* @__PURE__ */ b(o, {
381
- className: "space-y-4",
382
- children: [
383
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
384
- className: "text-sm font-medium mb-2",
385
- children: "Install Mode"
386
- }), /* @__PURE__ */ b("div", {
387
- className: "space-y-2",
388
- children: [/* @__PURE__ */ b("label", {
389
- className: "flex items-start gap-3 p-3 border border-border-subtle rounded-lg cursor-pointer hover:bg-accent",
390
- children: [/* @__PURE__ */ y("input", {
391
- type: "radio",
392
- name: "mode",
393
- value: "LINKED",
394
- checked: U === h.Linked,
395
- onChange: () => W(h.Linked),
396
- className: "mt-1"
397
- }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
398
- className: "font-medium",
399
- children: "Linked"
400
- }), /* @__PURE__ */ y("p", {
401
- className: "text-sm text-text-secondary",
402
- children: "Stay in sync with store updates. Recommended for most cases."
403
- })] })]
404
- }), /* @__PURE__ */ b("label", {
405
- className: "flex items-start gap-3 p-3 border border-border-subtle rounded-lg cursor-pointer hover:bg-accent",
406
- children: [/* @__PURE__ */ y("input", {
407
- type: "radio",
408
- name: "mode",
409
- value: "FORKED",
410
- checked: U === h.Forked,
411
- onChange: () => W(h.Forked),
412
- className: "mt-1"
413
- }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
414
- className: "font-medium",
415
- children: "Forked"
416
- }), /* @__PURE__ */ y("p", {
417
- className: "text-sm text-text-secondary",
418
- children: "Create a local copy you can customize. No automatic updates."
419
- })] })]
420
- })]
421
- })] }),
422
- q.requiresSecrets && /* @__PURE__ */ b("div", {
423
- className: "p-3 bg-status-warning-bg-subtle rounded-lg",
424
- children: [/* @__PURE__ */ b("div", {
425
- className: "flex items-center gap-2 text-status-warning-text",
426
- children: [/* @__PURE__ */ y(S, { size: 16 }), /* @__PURE__ */ y("span", {
427
- className: "text-sm font-medium",
428
- children: "Requires Secrets"
429
- })]
430
- }), /* @__PURE__ */ y("p", {
431
- className: "text-sm text-text-secondary mt-1",
432
- children: "This package requires secret configuration after installation."
433
- })]
434
- }),
435
- /* @__PURE__ */ b("div", {
436
- className: "flex justify-end gap-2 pt-4",
437
- children: [/* @__PURE__ */ y(u, {
438
- variant: "outline",
439
- onClick: () => K(!1),
440
- children: "Cancel"
441
- }), /* @__PURE__ */ y(u, {
442
- onClick: () => void J(),
443
- isLoading: H,
444
- leftIcon: /* @__PURE__ */ y(T, { size: 16 }),
445
- children: "Install"
446
- })]
447
- })
448
- ]
449
- })]
450
- })
352
+ }), /* @__PURE__ */ x(f, {
353
+ pkg: G ? V : null,
354
+ name: q.name ?? V.slug,
355
+ requiresSecrets: q.requiresSecrets,
356
+ installing: W,
357
+ onConfirm: (e, t) => void J(e, t),
358
+ onClose: () => K(!1)
451
359
  })]
452
- }) : /* @__PURE__ */ y(t, {
453
- title: "Package Not Found",
454
- children: /* @__PURE__ */ y(i, {
360
+ }) : /* @__PURE__ */ x(t, {
361
+ title: I("botlit.store.detail.notFound", "Package not found"),
362
+ children: /* @__PURE__ */ x(n, {
455
363
  illustration: "empty-search",
456
- title: "Package Not Found",
457
- description: "This package doesn't exist.",
458
- action: /* @__PURE__ */ y(u, {
459
- onClick: () => L("store"),
460
- children: "Back to Store"
364
+ title: I("botlit.store.detail.notFound", "Package not found"),
365
+ description: I("botlit.store.detail.notFoundBody", "This package does not exist or is no longer published."),
366
+ action: /* @__PURE__ */ x(u, {
367
+ onClick: () => B("store"),
368
+ children: I("botlit.store.detail.backToStore", "Back to Store")
461
369
  })
462
370
  })
463
371
  });