@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,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 {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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 {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
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
|
|
15
|
-
import { PagePurpose as
|
|
16
|
-
import { jsx as
|
|
17
|
-
import { useParams as
|
|
18
|
-
import {
|
|
19
|
-
import { toast as
|
|
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
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
|
105
|
-
title: "Loading
|
|
106
|
-
children: /* @__PURE__ */
|
|
107
|
-
}) :
|
|
108
|
-
title: /* @__PURE__ */
|
|
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__ */
|
|
96
|
+
/* @__PURE__ */ x(u, {
|
|
112
97
|
variant: "ghost",
|
|
113
98
|
size: "icon",
|
|
114
|
-
onClick: () =>
|
|
115
|
-
children: /* @__PURE__ */
|
|
99
|
+
onClick: () => B("store"),
|
|
100
|
+
children: /* @__PURE__ */ x(w, { size: 20 })
|
|
116
101
|
}),
|
|
117
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ x("div", {
|
|
118
103
|
className: "p-2 rounded-lg bg-action-primary-bg/10",
|
|
119
|
-
children: q.icon ? /* @__PURE__ */
|
|
104
|
+
children: q.icon ? /* @__PURE__ */ x("span", {
|
|
120
105
|
className: "text-2xl",
|
|
121
106
|
children: q.icon
|
|
122
|
-
}) : /* @__PURE__ */
|
|
107
|
+
}) : /* @__PURE__ */ x(j, { className: "h-6 w-6 text-primary" })
|
|
123
108
|
}),
|
|
124
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("div", {
|
|
125
110
|
className: "flex items-center gap-2",
|
|
126
|
-
children: [/* @__PURE__ */
|
|
111
|
+
children: [/* @__PURE__ */ x("span", { children: q.name ?? V.slug }), /* @__PURE__ */ S(d, {
|
|
127
112
|
variant: "outline",
|
|
128
|
-
children: ["v",
|
|
113
|
+
children: ["v", V.version]
|
|
129
114
|
})]
|
|
130
|
-
}), /* @__PURE__ */
|
|
115
|
+
}), /* @__PURE__ */ x("p", {
|
|
131
116
|
className: "text-sm font-normal text-text-secondary",
|
|
132
|
-
children:
|
|
117
|
+
children: V.slug
|
|
133
118
|
})] })
|
|
134
119
|
]
|
|
135
120
|
}),
|
|
136
|
-
actions: /* @__PURE__ */
|
|
121
|
+
actions: /* @__PURE__ */ S("div", {
|
|
137
122
|
className: "flex gap-2",
|
|
138
|
-
children: [q.homepage && /* @__PURE__ */
|
|
123
|
+
children: [q.homepage && /* @__PURE__ */ x("a", {
|
|
139
124
|
href: q.homepage,
|
|
140
125
|
target: "_blank",
|
|
141
126
|
rel: "noopener noreferrer",
|
|
142
|
-
children: /* @__PURE__ */
|
|
127
|
+
children: /* @__PURE__ */ x(u, {
|
|
143
128
|
variant: "outline",
|
|
144
|
-
leftIcon: /* @__PURE__ */
|
|
145
|
-
children: "Homepage"
|
|
129
|
+
leftIcon: /* @__PURE__ */ x(D, { size: 16 }),
|
|
130
|
+
children: I("botlit.store.detail.homepage", "Homepage")
|
|
146
131
|
})
|
|
147
|
-
}), /* @__PURE__ */
|
|
148
|
-
permission:
|
|
149
|
-
children: /* @__PURE__ */
|
|
150
|
-
leftIcon: /* @__PURE__ */
|
|
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__ */
|
|
141
|
+
children: [/* @__PURE__ */ S("div", {
|
|
157
142
|
className: "space-y-6",
|
|
158
143
|
children: [
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
icon: /* @__PURE__ */
|
|
161
|
-
children: "This is a store package
|
|
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__ */
|
|
148
|
+
/* @__PURE__ */ S("div", {
|
|
164
149
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
165
150
|
children: [
|
|
166
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ x(a, {
|
|
167
152
|
treatment: "glass",
|
|
168
153
|
glow: !0,
|
|
169
|
-
children: /* @__PURE__ */
|
|
154
|
+
children: /* @__PURE__ */ S(o, {
|
|
170
155
|
className: "pt-6 text-center",
|
|
171
|
-
children: [/* @__PURE__ */
|
|
156
|
+
children: [/* @__PURE__ */ x(d, {
|
|
172
157
|
variant: "outline",
|
|
173
158
|
className: "text-xs",
|
|
174
|
-
children:
|
|
175
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
166
|
+
/* @__PURE__ */ x(a, { children: /* @__PURE__ */ S(o, {
|
|
182
167
|
className: "pt-6 text-center",
|
|
183
|
-
children: [/* @__PURE__ */
|
|
168
|
+
children: [/* @__PURE__ */ S("p", {
|
|
184
169
|
className: "text-lg font-bold",
|
|
185
|
-
children: ["v",
|
|
186
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
176
|
+
/* @__PURE__ */ x(a, { children: /* @__PURE__ */ S(o, {
|
|
192
177
|
className: "pt-6 text-center",
|
|
193
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
183
|
+
/* @__PURE__ */ x(a, { children: /* @__PURE__ */ S(o, {
|
|
199
184
|
className: "pt-6 text-center",
|
|
200
|
-
children: [/* @__PURE__ */
|
|
185
|
+
children: [/* @__PURE__ */ x("p", {
|
|
201
186
|
className: "text-lg font-bold",
|
|
202
187
|
children: q.license ?? "—"
|
|
203
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
198
|
+
}), q.tags.length > 0 && /* @__PURE__ */ S("div", {
|
|
214
199
|
className: "flex items-center gap-2 mt-4",
|
|
215
|
-
children: [/* @__PURE__ */
|
|
200
|
+
children: [/* @__PURE__ */ x(N, {
|
|
216
201
|
size: 14,
|
|
217
202
|
className: "text-text-secondary"
|
|
218
|
-
}), q.tags.map((e) => /* @__PURE__ */
|
|
203
|
+
}), q.tags.map((e) => /* @__PURE__ */ x(d, {
|
|
219
204
|
variant: "secondary",
|
|
220
205
|
children: e
|
|
221
206
|
}, e))]
|
|
222
207
|
})] })] }),
|
|
223
|
-
|
|
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__ */
|
|
226
|
-
}) }), /* @__PURE__ */
|
|
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__ */
|
|
213
|
+
children: /* @__PURE__ */ x("pre", {
|
|
229
214
|
className: "whitespace-pre-wrap text-sm",
|
|
230
|
-
children:
|
|
215
|
+
children: V.readme
|
|
231
216
|
})
|
|
232
217
|
}) })] }),
|
|
233
|
-
/* @__PURE__ */
|
|
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__ */
|
|
221
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
237
222
|
className: "text-sm text-text-secondary",
|
|
238
|
-
children: "Author"
|
|
239
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
226
|
+
children: [/* @__PURE__ */ x("span", {
|
|
242
227
|
className: "font-medium",
|
|
243
228
|
children: q.authorName ?? "—"
|
|
244
|
-
}), q.authorUrl && /* @__PURE__ */
|
|
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__ */
|
|
234
|
+
children: /* @__PURE__ */ x(D, { size: 12 })
|
|
250
235
|
})]
|
|
251
236
|
})] }),
|
|
252
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
253
238
|
className: "text-sm text-text-secondary",
|
|
254
|
-
children: "Published"
|
|
255
|
-
}), /* @__PURE__ */
|
|
239
|
+
children: I("botlit.store.detail.published", "Published")
|
|
240
|
+
}), /* @__PURE__ */ x("p", {
|
|
256
241
|
className: "font-medium mt-1",
|
|
257
|
-
children:
|
|
242
|
+
children: _(V.publishedAt)
|
|
258
243
|
})] }),
|
|
259
|
-
q.repository && /* @__PURE__ */
|
|
244
|
+
q.repository && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
260
245
|
className: "text-sm text-text-secondary",
|
|
261
|
-
children: "Repository"
|
|
262
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
252
|
+
children: [/* @__PURE__ */ x(k, { size: 14 }), I("botlit.store.detail.viewSource", "View source")]
|
|
268
253
|
})] }),
|
|
269
|
-
q.homepage && /* @__PURE__ */
|
|
254
|
+
q.homepage && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
270
255
|
className: "text-sm text-text-secondary",
|
|
271
|
-
children: "Homepage"
|
|
272
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
278
|
+
/* @__PURE__ */ S("div", {
|
|
298
279
|
className: "grid grid-cols-1 md:grid-cols-2 gap-6",
|
|
299
|
-
children: [/* @__PURE__ */
|
|
280
|
+
children: [/* @__PURE__ */ S(a, { children: [/* @__PURE__ */ x(c, { children: /* @__PURE__ */ S(l, {
|
|
300
281
|
className: "flex items-center gap-2",
|
|
301
|
-
children: [/* @__PURE__ */
|
|
302
|
-
}) }), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
290
|
+
children: [/* @__PURE__ */ x("span", {
|
|
310
291
|
className: "text-text-secondary capitalize",
|
|
311
292
|
children: e
|
|
312
|
-
}), /* @__PURE__ */
|
|
293
|
+
}), /* @__PURE__ */ x(d, {
|
|
313
294
|
variant: "outline",
|
|
314
295
|
children: t
|
|
315
296
|
})]
|
|
316
297
|
}, e))
|
|
317
|
-
}) })] }), /* @__PURE__ */
|
|
298
|
+
}) })] }), /* @__PURE__ */ S(a, { children: [/* @__PURE__ */ x(c, { children: /* @__PURE__ */ S(l, {
|
|
318
299
|
className: "flex items-center gap-2",
|
|
319
|
-
children: [/* @__PURE__ */
|
|
320
|
-
}) }), /* @__PURE__ */
|
|
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__ */
|
|
304
|
+
/* @__PURE__ */ S("div", {
|
|
324
305
|
className: "flex items-center justify-between",
|
|
325
|
-
children: [/* @__PURE__ */
|
|
306
|
+
children: [/* @__PURE__ */ x("span", {
|
|
326
307
|
className: "text-text-secondary",
|
|
327
|
-
children: "Risk
|
|
328
|
-
}), /* @__PURE__ */
|
|
308
|
+
children: I("botlit.store.detail.riskLevel", "Risk level")
|
|
309
|
+
}), /* @__PURE__ */ x(F, { risk: q.risk })]
|
|
329
310
|
}),
|
|
330
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ S("div", {
|
|
331
312
|
className: "flex items-center justify-between",
|
|
332
|
-
children: [/* @__PURE__ */
|
|
313
|
+
children: [/* @__PURE__ */ x("span", {
|
|
333
314
|
className: "text-text-secondary",
|
|
334
|
-
children: "Requires
|
|
335
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
321
|
+
/* @__PURE__ */ S("div", {
|
|
341
322
|
className: "flex items-center justify-between",
|
|
342
|
-
children: [/* @__PURE__ */
|
|
323
|
+
children: [/* @__PURE__ */ x("span", {
|
|
343
324
|
className: "text-text-secondary",
|
|
344
|
-
children: "Network
|
|
345
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
337
|
+
children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
357
338
|
className: "text-sm text-text-secondary",
|
|
358
|
-
children: "Checksum"
|
|
359
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
343
|
+
})] }), q.signature && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
363
344
|
className: "text-sm text-text-secondary",
|
|
364
|
-
children: "Signature"
|
|
365
|
-
}), /* @__PURE__ */
|
|
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
|
-
}),
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
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__ */
|
|
453
|
-
title: "Package
|
|
454
|
-
children: /* @__PURE__ */
|
|
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
|
|
457
|
-
description: "This package
|
|
458
|
-
action: /* @__PURE__ */
|
|
459
|
-
onClick: () =>
|
|
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
|
});
|