@burdenoff/microfe-botmanor 2026.1120.16 → 2026.1120.18

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.
@@ -12,16 +12,17 @@ import { useTr as m } from "../../shared/hooks/useTr.js";
12
12
  import { useInstallPackage as h, useStorePackage as g } from "../hooks/useStore.js";
13
13
  import { formatRelativeTime as _ } from "../utils/formatters.js";
14
14
  import "../permissions/index.js";
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";
15
+ import { packageSlugFromParams as v, readManifest as y } from "./storePackageManifest.js";
16
+ import { useMemo as b, useState as x } from "react";
17
+ import { PagePurpose as S } from "@burdenoff/fe-libs/ui";
18
+ import { jsx as C, jsxs as w } from "react/jsx-runtime";
19
+ import { useParams as T } from "react-router";
20
+ import { ArrowLeft as E, CheckCircle as D, Download as O, ExternalLink as k, FileText as A, GitBranch as j, Globe as M, Package as N, Shield as P, Tag as F } from "lucide-react";
21
+ import { toast as I } from "sonner";
21
22
  // src/botlit/pages/StorePackageDetailPage.tsx
22
- var F = ({ risk: e }) => {
23
+ var L = ({ risk: e }) => {
23
24
  let t = m();
24
- return e ? /* @__PURE__ */ x(d, {
25
+ return e ? /* @__PURE__ */ C(d, {
25
26
  variant: {
26
27
  low: "success",
27
28
  medium: "warning",
@@ -29,243 +30,203 @@ var F = ({ risk: e }) => {
29
30
  }[e] ?? "secondary",
30
31
  className: "capitalize",
31
32
  children: t("botlit.store.detail.risk", "{{risk}} risk", { risk: e })
32
- }) : /* @__PURE__ */ x(d, {
33
+ }) : /* @__PURE__ */ C(d, {
33
34
  variant: "secondary",
34
35
  children: t("botlit.store.detail.riskUnknown", "Risk unknown")
35
36
  });
36
- };
37
- function I(e) {
38
- return e && typeof e == "object" && !Array.isArray(e) ? e : {};
39
- }
40
- function L(e) {
41
- return typeof e == "string" && e !== "" ? e : void 0;
42
- }
43
- function R(e) {
44
- let t = I(e.package), n = I(t.author), r = I(e.security), i = I(e.integrity), a = I(e.compatibility), o = {};
45
- for (let [e, t] of Object.entries(a)) {
46
- let n = L(t);
47
- n && (o[e] = n);
48
- }
49
- let s = Array.isArray(e.dependencies) ? e.dependencies.flatMap((e) => {
50
- let t = I(e), n = L(t.slug);
51
- return n ? [{
52
- slug: n,
53
- version: L(t.version) ?? "*"
54
- }] : [];
55
- }) : [];
56
- return {
57
- name: L(t.name),
58
- slug: L(t.slug),
59
- description: L(t.description),
60
- icon: L(t.icon),
61
- license: L(t.license),
62
- homepage: L(t.homepage),
63
- repository: L(t.repository),
64
- authorName: L(n.name),
65
- authorUrl: L(n.url),
66
- tags: Array.isArray(t.tags) ? t.tags.filter((e) => typeof e == "string") : [],
67
- dependencies: s,
68
- compatibility: o,
69
- risk: L(r.risk),
70
- requiresSecrets: r.requiresSecrets === !0,
71
- networkEgress: L(I(r.network).egress),
72
- checksum: L(i.checksum),
73
- signature: L(i.signature)
74
- };
75
- }
76
- var z = () => {
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) => {
37
+ }, R = () => {
38
+ let R = m(), z = p(R), B = T(), { navigateTo: V } = e(), { data: H, loading: U } = g(v(B)), { install: W, loading: G } = h(), [K, q] = x(!1), J = b(() => y(H?.manifest ?? {}), [H?.manifest]), Y = async (e, t) => {
78
39
  try {
79
- await U({
40
+ await W({
80
41
  packageId: e.id,
81
42
  mode: t
82
43
  });
83
44
  } catch (e) {
84
- P.error(e instanceof Error ? e.message : I("botlit.store.install.error", "Could not install the package."));
45
+ I.error(e instanceof Error ? e.message : R("botlit.store.install.error", "Could not install the package."));
85
46
  return;
86
47
  }
87
- P.success(I("botlit.store.install.success", "Installed \"{{name}}\"", { name: q.name ?? e.slug })), K(!1), B("store/installed");
48
+ I.success(R("botlit.store.install.success", "Installed \"{{name}}\"", { name: J.name ?? e.slug })), q(!1), V("store/installed");
88
49
  };
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", {
50
+ return U ? /* @__PURE__ */ C(t, {
51
+ title: R("botlit.store.detail.loading", "Loading…"),
52
+ children: /* @__PURE__ */ C("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
53
+ }) : H ? /* @__PURE__ */ w(t, {
54
+ title: /* @__PURE__ */ w("div", {
94
55
  className: "flex items-center gap-3",
95
56
  children: [
96
- /* @__PURE__ */ x(u, {
57
+ /* @__PURE__ */ C(u, {
97
58
  variant: "ghost",
98
59
  size: "icon",
99
- onClick: () => B("store"),
100
- children: /* @__PURE__ */ x(w, { size: 20 })
60
+ onClick: () => V("store"),
61
+ children: /* @__PURE__ */ C(E, { size: 20 })
101
62
  }),
102
- /* @__PURE__ */ x("div", {
63
+ /* @__PURE__ */ C("div", {
103
64
  className: "p-2 rounded-lg bg-action-primary-bg/10",
104
- children: q.icon ? /* @__PURE__ */ x("span", {
65
+ children: J.icon ? /* @__PURE__ */ C("span", {
105
66
  className: "text-2xl",
106
- children: q.icon
107
- }) : /* @__PURE__ */ x(j, { className: "h-6 w-6 text-primary" })
67
+ children: J.icon
68
+ }) : /* @__PURE__ */ C(N, { className: "h-6 w-6 text-primary" })
108
69
  }),
109
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("div", {
70
+ /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
110
71
  className: "flex items-center gap-2",
111
- children: [/* @__PURE__ */ x("span", { children: q.name ?? V.slug }), /* @__PURE__ */ S(d, {
72
+ children: [/* @__PURE__ */ C("span", { children: J.name ?? H.slug }), /* @__PURE__ */ w(d, {
112
73
  variant: "outline",
113
- children: ["v", V.version]
74
+ children: ["v", H.version]
114
75
  })]
115
- }), /* @__PURE__ */ x("p", {
76
+ }), /* @__PURE__ */ C("p", {
116
77
  className: "text-sm font-normal text-text-secondary",
117
- children: V.slug
78
+ children: H.slug
118
79
  })] })
119
80
  ]
120
81
  }),
121
- actions: /* @__PURE__ */ S("div", {
82
+ actions: /* @__PURE__ */ w("div", {
122
83
  className: "flex gap-2",
123
- children: [q.homepage && /* @__PURE__ */ x("a", {
124
- href: q.homepage,
84
+ children: [J.homepage && /* @__PURE__ */ C("a", {
85
+ href: J.homepage,
125
86
  target: "_blank",
126
87
  rel: "noopener noreferrer",
127
- children: /* @__PURE__ */ x(u, {
88
+ children: /* @__PURE__ */ C(u, {
128
89
  variant: "outline",
129
- leftIcon: /* @__PURE__ */ x(D, { size: 16 }),
130
- children: I("botlit.store.detail.homepage", "Homepage")
90
+ leftIcon: /* @__PURE__ */ C(k, { size: 16 }),
91
+ children: R("botlit.store.detail.homepage", "Homepage")
131
92
  })
132
- }), /* @__PURE__ */ x(i, {
93
+ }), /* @__PURE__ */ C(i, {
133
94
  permission: r.STORE_CREATE,
134
- children: /* @__PURE__ */ x(u, {
135
- leftIcon: /* @__PURE__ */ x(E, { size: 16 }),
136
- onClick: () => K(!0),
137
- children: I("botlit.store.detail.install", "Install")
95
+ children: /* @__PURE__ */ C(u, {
96
+ leftIcon: /* @__PURE__ */ C(O, { size: 16 }),
97
+ onClick: () => q(!0),
98
+ children: R("botlit.store.detail.install", "Install")
138
99
  })
139
100
  })]
140
101
  }),
141
- children: [/* @__PURE__ */ S("div", {
102
+ children: [/* @__PURE__ */ w("div", {
142
103
  className: "space-y-6",
143
104
  children: [
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.")
105
+ /* @__PURE__ */ C(S, {
106
+ icon: /* @__PURE__ */ C(N, { size: 18 }),
107
+ children: R("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.")
147
108
  }),
148
- /* @__PURE__ */ S("div", {
109
+ /* @__PURE__ */ w("div", {
149
110
  className: "grid grid-cols-2 md:grid-cols-4 gap-4",
150
111
  children: [
151
- /* @__PURE__ */ x(a, {
112
+ /* @__PURE__ */ C(a, {
152
113
  treatment: "glass",
153
114
  glow: !0,
154
- children: /* @__PURE__ */ S(o, {
115
+ children: /* @__PURE__ */ w(o, {
155
116
  className: "pt-6 text-center",
156
- children: [/* @__PURE__ */ x(d, {
117
+ children: [/* @__PURE__ */ C(d, {
157
118
  variant: "outline",
158
119
  className: "text-xs",
159
- children: L[V.kind] ?? V.kind
160
- }), /* @__PURE__ */ x("p", {
120
+ children: z[H.kind] ?? H.kind
121
+ }), /* @__PURE__ */ C("p", {
161
122
  className: "text-sm text-text-secondary mt-1",
162
- children: I("botlit.store.detail.type", "Type")
123
+ children: R("botlit.store.detail.type", "Type")
163
124
  })]
164
125
  })
165
126
  }),
166
- /* @__PURE__ */ x(a, { children: /* @__PURE__ */ S(o, {
127
+ /* @__PURE__ */ C(a, { children: /* @__PURE__ */ w(o, {
167
128
  className: "pt-6 text-center",
168
- children: [/* @__PURE__ */ S("p", {
129
+ children: [/* @__PURE__ */ w("p", {
169
130
  className: "text-lg font-bold",
170
- children: ["v", V.version]
171
- }), /* @__PURE__ */ x("p", {
131
+ children: ["v", H.version]
132
+ }), /* @__PURE__ */ C("p", {
172
133
  className: "text-sm text-text-secondary",
173
- children: I("botlit.store.detail.version", "Version")
134
+ children: R("botlit.store.detail.version", "Version")
174
135
  })]
175
136
  }) }),
176
- /* @__PURE__ */ x(a, { children: /* @__PURE__ */ S(o, {
137
+ /* @__PURE__ */ C(a, { children: /* @__PURE__ */ w(o, {
177
138
  className: "pt-6 text-center",
178
- children: [/* @__PURE__ */ x(F, { risk: q.risk }), /* @__PURE__ */ x("p", {
139
+ children: [/* @__PURE__ */ C(L, { risk: J.risk }), /* @__PURE__ */ C("p", {
179
140
  className: "text-sm text-text-secondary mt-1",
180
- children: I("botlit.store.detail.security", "Security")
141
+ children: R("botlit.store.detail.security", "Security")
181
142
  })]
182
143
  }) }),
183
- /* @__PURE__ */ x(a, { children: /* @__PURE__ */ S(o, {
144
+ /* @__PURE__ */ C(a, { children: /* @__PURE__ */ w(o, {
184
145
  className: "pt-6 text-center",
185
- children: [/* @__PURE__ */ x("p", {
146
+ children: [/* @__PURE__ */ C("p", {
186
147
  className: "text-lg font-bold",
187
- children: q.license ?? "—"
188
- }), /* @__PURE__ */ x("p", {
148
+ children: J.license ?? "—"
149
+ }), /* @__PURE__ */ C("p", {
189
150
  className: "text-sm text-text-secondary",
190
- children: I("botlit.store.detail.license", "License")
151
+ children: R("botlit.store.detail.license", "License")
191
152
  })]
192
153
  }) })
193
154
  ]
194
155
  }),
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", {
156
+ /* @__PURE__ */ w(a, { children: [/* @__PURE__ */ C(c, { children: /* @__PURE__ */ C(l, { children: R("botlit.store.detail.description", "Description") }) }), /* @__PURE__ */ w(o, { children: [/* @__PURE__ */ C("p", {
196
157
  className: "text-text-primary",
197
- children: q.description ?? "—"
198
- }), q.tags.length > 0 && /* @__PURE__ */ S("div", {
158
+ children: J.description ?? "—"
159
+ }), J.tags.length > 0 && /* @__PURE__ */ w("div", {
199
160
  className: "flex items-center gap-2 mt-4",
200
- children: [/* @__PURE__ */ x(N, {
161
+ children: [/* @__PURE__ */ C(F, {
201
162
  size: 14,
202
163
  className: "text-text-secondary"
203
- }), q.tags.map((e) => /* @__PURE__ */ x(d, {
164
+ }), J.tags.map((e) => /* @__PURE__ */ C(d, {
204
165
  variant: "secondary",
205
166
  children: e
206
167
  }, e))]
207
168
  })] })] }),
208
- V.readme && /* @__PURE__ */ S(a, { children: [/* @__PURE__ */ x(c, { children: /* @__PURE__ */ S(l, {
169
+ H.readme && /* @__PURE__ */ w(a, { children: [/* @__PURE__ */ C(c, { children: /* @__PURE__ */ w(l, {
209
170
  className: "flex items-center gap-2",
210
- children: [/* @__PURE__ */ x(O, { size: 18 }), I("botlit.store.detail.readme", "README")]
211
- }) }), /* @__PURE__ */ x(o, { children: /* @__PURE__ */ x("div", {
171
+ children: [/* @__PURE__ */ C(A, { size: 18 }), R("botlit.store.detail.readme", "README")]
172
+ }) }), /* @__PURE__ */ C(o, { children: /* @__PURE__ */ C("div", {
212
173
  className: "prose prose-sm max-w-none dark:prose-invert",
213
- children: /* @__PURE__ */ x("pre", {
174
+ children: /* @__PURE__ */ C("pre", {
214
175
  className: "whitespace-pre-wrap text-sm",
215
- children: V.readme
176
+ children: H.readme
216
177
  })
217
178
  }) })] }),
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", {
179
+ /* @__PURE__ */ w(a, { children: [/* @__PURE__ */ C(c, { children: /* @__PURE__ */ C(l, { children: R("botlit.store.detail.authorLinks", "Author & links") }) }), /* @__PURE__ */ C(o, { children: /* @__PURE__ */ w("div", {
219
180
  className: "grid grid-cols-2 md:grid-cols-4 gap-6",
220
181
  children: [
221
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
182
+ /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
222
183
  className: "text-sm text-text-secondary",
223
- children: I("botlit.store.detail.author", "Author")
224
- }), /* @__PURE__ */ S("div", {
184
+ children: R("botlit.store.detail.author", "Author")
185
+ }), /* @__PURE__ */ w("div", {
225
186
  className: "flex items-center gap-2 mt-1",
226
- children: [/* @__PURE__ */ x("span", {
187
+ children: [/* @__PURE__ */ C("span", {
227
188
  className: "font-medium",
228
- children: q.authorName ?? "—"
229
- }), q.authorUrl && /* @__PURE__ */ x("a", {
230
- href: q.authorUrl,
189
+ children: J.authorName ?? "—"
190
+ }), J.authorUrl && /* @__PURE__ */ C("a", {
191
+ href: J.authorUrl,
231
192
  target: "_blank",
232
193
  rel: "noopener noreferrer",
233
194
  className: "text-primary hover:underline",
234
- children: /* @__PURE__ */ x(D, { size: 12 })
195
+ children: /* @__PURE__ */ C(k, { size: 12 })
235
196
  })]
236
197
  })] }),
237
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
198
+ /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
238
199
  className: "text-sm text-text-secondary",
239
- children: I("botlit.store.detail.published", "Published")
240
- }), /* @__PURE__ */ x("p", {
200
+ children: R("botlit.store.detail.published", "Published")
201
+ }), /* @__PURE__ */ C("p", {
241
202
  className: "font-medium mt-1",
242
- children: _(V.publishedAt)
203
+ children: _(H.publishedAt)
243
204
  })] }),
244
- q.repository && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
205
+ J.repository && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
245
206
  className: "text-sm text-text-secondary",
246
- children: I("botlit.store.detail.repository", "Repository")
247
- }), /* @__PURE__ */ S("a", {
248
- href: q.repository,
207
+ children: R("botlit.store.detail.repository", "Repository")
208
+ }), /* @__PURE__ */ w("a", {
209
+ href: J.repository,
249
210
  target: "_blank",
250
211
  rel: "noopener noreferrer",
251
212
  className: "flex items-center gap-1 mt-1 text-primary hover:underline",
252
- children: [/* @__PURE__ */ x(k, { size: 14 }), I("botlit.store.detail.viewSource", "View source")]
213
+ children: [/* @__PURE__ */ C(j, { size: 14 }), R("botlit.store.detail.viewSource", "View source")]
253
214
  })] }),
254
- q.homepage && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
215
+ J.homepage && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
255
216
  className: "text-sm text-text-secondary",
256
- children: I("botlit.store.detail.homepage", "Homepage")
257
- }), /* @__PURE__ */ S("a", {
258
- href: q.homepage,
217
+ children: R("botlit.store.detail.homepage", "Homepage")
218
+ }), /* @__PURE__ */ w("a", {
219
+ href: J.homepage,
259
220
  target: "_blank",
260
221
  rel: "noopener noreferrer",
261
222
  className: "flex items-center gap-1 mt-1 text-primary hover:underline",
262
- children: [/* @__PURE__ */ x(A, { size: 14 }), I("botlit.store.detail.visitSite", "Visit site")]
223
+ children: [/* @__PURE__ */ C(M, { size: 14 }), R("botlit.store.detail.visitSite", "Visit site")]
263
224
  })] })
264
225
  ]
265
226
  }) })] }),
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", {
227
+ J.dependencies.length > 0 && /* @__PURE__ */ w(a, { children: [/* @__PURE__ */ w(c, { children: [/* @__PURE__ */ C(l, { children: R("botlit.store.detail.dependencies", "Dependencies") }), /* @__PURE__ */ C(s, { children: R("botlit.store.detail.dependsOn", "This package depends on {{count}} other package(s)", { count: J.dependencies.length }) })] }), /* @__PURE__ */ C(o, { children: /* @__PURE__ */ C("div", {
267
228
  className: "flex flex-wrap gap-2",
268
- children: q.dependencies.map((e) => /* @__PURE__ */ S(d, {
229
+ children: J.dependencies.map((e) => /* @__PURE__ */ w(d, {
269
230
  variant: "outline",
270
231
  className: "font-mono",
271
232
  children: [
@@ -275,101 +236,101 @@ var z = () => {
275
236
  ]
276
237
  }, e.slug))
277
238
  }) })] }),
278
- /* @__PURE__ */ S("div", {
239
+ /* @__PURE__ */ w("div", {
279
240
  className: "grid grid-cols-1 md:grid-cols-2 gap-6",
280
- children: [/* @__PURE__ */ S(a, { children: [/* @__PURE__ */ x(c, { children: /* @__PURE__ */ S(l, {
241
+ children: [/* @__PURE__ */ w(a, { children: [/* @__PURE__ */ C(c, { children: /* @__PURE__ */ w(l, {
281
242
  className: "flex items-center gap-2",
282
- children: [/* @__PURE__ */ x(T, { size: 18 }), I("botlit.store.detail.compatibility", "Compatibility")]
283
- }) }), /* @__PURE__ */ x(o, { children: /* @__PURE__ */ x("div", {
243
+ children: [/* @__PURE__ */ C(D, { size: 18 }), R("botlit.store.detail.compatibility", "Compatibility")]
244
+ }) }), /* @__PURE__ */ C(o, { children: /* @__PURE__ */ C("div", {
284
245
  className: "space-y-2",
285
- children: Object.keys(q.compatibility).length === 0 ? /* @__PURE__ */ x("p", {
246
+ children: Object.keys(J.compatibility).length === 0 ? /* @__PURE__ */ C("p", {
286
247
  className: "text-sm text-text-secondary",
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", {
248
+ children: R("botlit.store.detail.noCompatibility", "This package does not declare compatibility ranges.")
249
+ }) : Object.entries(J.compatibility).map(([e, t]) => /* @__PURE__ */ w("div", {
289
250
  className: "flex justify-between",
290
- children: [/* @__PURE__ */ x("span", {
251
+ children: [/* @__PURE__ */ C("span", {
291
252
  className: "text-text-secondary capitalize",
292
253
  children: e
293
- }), /* @__PURE__ */ x(d, {
254
+ }), /* @__PURE__ */ C(d, {
294
255
  variant: "outline",
295
256
  children: t
296
257
  })]
297
258
  }, e))
298
- }) })] }), /* @__PURE__ */ S(a, { children: [/* @__PURE__ */ x(c, { children: /* @__PURE__ */ S(l, {
259
+ }) })] }), /* @__PURE__ */ w(a, { children: [/* @__PURE__ */ C(c, { children: /* @__PURE__ */ w(l, {
299
260
  className: "flex items-center gap-2",
300
- children: [/* @__PURE__ */ x(M, { size: 18 }), I("botlit.store.detail.security", "Security")]
301
- }) }), /* @__PURE__ */ x(o, { children: /* @__PURE__ */ S("div", {
261
+ children: [/* @__PURE__ */ C(P, { size: 18 }), R("botlit.store.detail.security", "Security")]
262
+ }) }), /* @__PURE__ */ C(o, { children: /* @__PURE__ */ w("div", {
302
263
  className: "space-y-3",
303
264
  children: [
304
- /* @__PURE__ */ S("div", {
265
+ /* @__PURE__ */ w("div", {
305
266
  className: "flex items-center justify-between",
306
- children: [/* @__PURE__ */ x("span", {
267
+ children: [/* @__PURE__ */ C("span", {
307
268
  className: "text-text-secondary",
308
- children: I("botlit.store.detail.riskLevel", "Risk level")
309
- }), /* @__PURE__ */ x(F, { risk: q.risk })]
269
+ children: R("botlit.store.detail.riskLevel", "Risk level")
270
+ }), /* @__PURE__ */ C(L, { risk: J.risk })]
310
271
  }),
311
- /* @__PURE__ */ S("div", {
272
+ /* @__PURE__ */ w("div", {
312
273
  className: "flex items-center justify-between",
313
- children: [/* @__PURE__ */ x("span", {
274
+ children: [/* @__PURE__ */ C("span", {
314
275
  className: "text-text-secondary",
315
- children: I("botlit.store.detail.requiresSecrets", "Requires secrets")
316
- }), /* @__PURE__ */ x(d, {
317
- variant: q.requiresSecrets ? "warning" : "secondary",
318
- children: q.requiresSecrets ? I("botlit.store.detail.yes", "Yes") : I("botlit.store.detail.no", "No")
276
+ children: R("botlit.store.detail.requiresSecrets", "Requires secrets")
277
+ }), /* @__PURE__ */ C(d, {
278
+ variant: J.requiresSecrets ? "warning" : "secondary",
279
+ children: J.requiresSecrets ? R("botlit.store.detail.yes", "Yes") : R("botlit.store.detail.no", "No")
319
280
  })]
320
281
  }),
321
- /* @__PURE__ */ S("div", {
282
+ /* @__PURE__ */ w("div", {
322
283
  className: "flex items-center justify-between",
323
- children: [/* @__PURE__ */ x("span", {
284
+ children: [/* @__PURE__ */ C("span", {
324
285
  className: "text-text-secondary",
325
- children: I("botlit.store.detail.networkEgress", "Network egress")
326
- }), /* @__PURE__ */ x(d, {
327
- variant: q.networkEgress === "any" ? "warning" : q.networkEgress === "restricted" ? "secondary" : "success",
286
+ children: R("botlit.store.detail.networkEgress", "Network egress")
287
+ }), /* @__PURE__ */ C(d, {
288
+ variant: J.networkEgress === "any" ? "warning" : J.networkEgress === "restricted" ? "secondary" : "success",
328
289
  className: "capitalize",
329
- children: q.networkEgress ?? I("botlit.store.detail.unknown", "unknown")
290
+ children: J.networkEgress ?? R("botlit.store.detail.unknown", "unknown")
330
291
  })]
331
292
  })
332
293
  ]
333
294
  }) })] })]
334
295
  }),
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", {
296
+ /* @__PURE__ */ w(a, { children: [/* @__PURE__ */ C(c, { children: /* @__PURE__ */ C(l, { children: R("botlit.store.detail.integrity", "Integrity") }) }), /* @__PURE__ */ C(o, { children: /* @__PURE__ */ w("div", {
336
297
  className: "space-y-2",
337
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
298
+ children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
338
299
  className: "text-sm text-text-secondary",
339
- children: I("botlit.store.detail.checksum", "Checksum")
340
- }), /* @__PURE__ */ x("p", {
300
+ children: R("botlit.store.detail.checksum", "Checksum")
301
+ }), /* @__PURE__ */ C("p", {
341
302
  className: "font-mono text-sm break-all",
342
- children: q.checksum ?? "—"
343
- })] }), q.signature && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
303
+ children: J.checksum ?? "—"
304
+ })] }), J.signature && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
344
305
  className: "text-sm text-text-secondary",
345
- children: I("botlit.store.detail.signature", "Signature")
346
- }), /* @__PURE__ */ x("p", {
306
+ children: R("botlit.store.detail.signature", "Signature")
307
+ }), /* @__PURE__ */ C("p", {
347
308
  className: "font-mono text-sm break-all",
348
- children: q.signature
309
+ children: J.signature
349
310
  })] })]
350
311
  }) })] })
351
312
  ]
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)
313
+ }), /* @__PURE__ */ C(f, {
314
+ pkg: K ? H : null,
315
+ name: J.name ?? H.slug,
316
+ requiresSecrets: J.requiresSecrets,
317
+ installing: G,
318
+ onConfirm: (e, t) => void Y(e, t),
319
+ onClose: () => q(!1)
359
320
  })]
360
- }) : /* @__PURE__ */ x(t, {
361
- title: I("botlit.store.detail.notFound", "Package not found"),
362
- children: /* @__PURE__ */ x(n, {
321
+ }) : /* @__PURE__ */ C(t, {
322
+ title: R("botlit.store.detail.notFound", "Package not found"),
323
+ children: /* @__PURE__ */ C(n, {
363
324
  illustration: "empty-search",
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")
325
+ title: R("botlit.store.detail.notFound", "Package not found"),
326
+ description: R("botlit.store.detail.notFoundBody", "This package does not exist or is no longer published."),
327
+ action: /* @__PURE__ */ C(u, {
328
+ onClick: () => V("store"),
329
+ children: R("botlit.store.detail.backToStore", "Back to Store")
369
330
  })
370
331
  })
371
332
  });
372
333
  };
373
- export { z as StorePackageDetailPage };
334
+ export { R as StorePackageDetailPage };
374
335
 
375
336
  //# sourceMappingURL=StorePackageDetailPage.js.map