@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.
- 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/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/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 +162 -93
- 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,8 +1,8 @@
|
|
|
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 { Card as n, CardContent as r, CardDescription as i, CardHeader as a, CardTitle as o } from "../components/Card.js";
|
|
4
|
+
import { BOTMANOR_PERMISSIONS as s } from "../permissions/botmanorPermissions.js";
|
|
5
|
+
import { BotmanorPermissionGate as c } from "../permissions/useBotmanorPermissions.js";
|
|
6
6
|
import { Button as l } from "../components/Button.js";
|
|
7
7
|
import { Input as u } from "../components/Input.js";
|
|
8
8
|
import { Badge as d } from "../components/Badge.js";
|
|
@@ -11,21 +11,22 @@ import { LoadMore as ee } from "../components/LoadMore.js";
|
|
|
11
11
|
import { ErrorState as te } from "../components/ErrorState.js";
|
|
12
12
|
import "../hooks/index.js";
|
|
13
13
|
import { formatRelativeTime as p } from "../utils/formatters.js";
|
|
14
|
-
import { storePackageName as m, useInstalledPackages as ne, usePinPackageVersion as re, useUninstallPackage as h, useUpdateInstalledPackage as ie } from "../hooks/useStore.js";
|
|
15
|
-
import { PackageKind as g } from "../../generated/wspace-types.js";
|
|
16
14
|
import "../permissions/index.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
15
|
+
import { storePackageName as m, useInstalledPackages as ne, usePinPackageVersion as re, useUninstallPackage as ie, useUpdateInstalledPackage as ae } from "../hooks/useStore.js";
|
|
16
|
+
import { STORE_PACKAGE_KINDS as oe, UninstallPackageDialog as se, packageKindLabels as ce } from "../components/StoreDialogs.js";
|
|
17
|
+
import { useTr as le } from "../../shared/hooks/useTr.js";
|
|
18
|
+
import { useMemo as h, useState as g } from "react";
|
|
19
|
+
import { GlassCard as _, PagePurpose as v } from "@burdenoff/fe-libs/ui";
|
|
20
|
+
import { Fragment as ue, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
21
|
+
import { Link as de } from "react-router";
|
|
22
|
+
import { ArrowUpCircle as x, Copy as fe, Download as pe, ExternalLink as me, GitBranch as S, Link2 as C, Package as w, RefreshCw as he, Search as ge, Settings as _e, Trash2 as T } from "lucide-react";
|
|
23
|
+
import { toast as E } from "sonner";
|
|
23
24
|
// src/botlit/pages/InstalledPackagesPage.tsx
|
|
24
|
-
var
|
|
25
|
+
var D = [
|
|
25
26
|
"DEV",
|
|
26
27
|
"STAGING",
|
|
27
28
|
"PROD"
|
|
28
|
-
],
|
|
29
|
+
], O = {
|
|
29
30
|
APP: {
|
|
30
31
|
label: "Bot",
|
|
31
32
|
icon: "📱"
|
|
@@ -90,183 +91,195 @@ var j = [
|
|
|
90
91
|
label: "Workflow",
|
|
91
92
|
icon: "🔀"
|
|
92
93
|
}
|
|
93
|
-
},
|
|
94
|
+
}, k = {
|
|
94
95
|
label: "Package",
|
|
95
96
|
icon: "📦"
|
|
96
97
|
};
|
|
97
|
-
function
|
|
98
|
+
function A(e) {
|
|
98
99
|
return e.package?.slug ?? e.packageId;
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
+
function j(e) {
|
|
101
102
|
return e.package?.kind;
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
function M(e) {
|
|
105
|
+
return m(e.package) || A(e);
|
|
106
|
+
}
|
|
107
|
+
function N(e) {
|
|
108
|
+
let t = j(e);
|
|
109
|
+
return t && O[t] || k;
|
|
106
110
|
}
|
|
107
|
-
function
|
|
111
|
+
function P(e) {
|
|
108
112
|
let t = e.package?.version;
|
|
109
113
|
return !!(t && t !== e.installedVersion);
|
|
110
114
|
}
|
|
111
|
-
function
|
|
115
|
+
function F(e, t) {
|
|
112
116
|
let n = e.pinnedByEnv?.[t];
|
|
113
117
|
return typeof n == "string" && n !== "" ? n : void 0;
|
|
114
118
|
}
|
|
115
|
-
var
|
|
116
|
-
let { navigateTo:
|
|
117
|
-
let e =
|
|
118
|
-
return
|
|
119
|
-
let n = !e ||
|
|
119
|
+
var I = () => {
|
|
120
|
+
let { navigateTo: O, getPath: k } = e(), { data: I, loading: ve, error: L, refetch: R, hasMore: ye, loadingMore: be, loadMore: z } = ne(), { uninstall: xe, loading: Se } = ie(), { update: Ce, loading: we } = ae(), { pin: Te } = re(), [B, Ee] = g(""), [De, V] = g(!1), [H, Oe] = g("all"), [U, W] = g(null), [G, K] = g(null), q = le(), J = ce(q), Y = h(() => {
|
|
121
|
+
let e = B.trim().toLowerCase();
|
|
122
|
+
return I.filter((t) => {
|
|
123
|
+
let n = !e || A(t).toLowerCase().includes(e) || m(t.package).toLowerCase().includes(e), r = H === "all" || j(t) === H;
|
|
120
124
|
return n && r;
|
|
121
125
|
});
|
|
122
126
|
}, [
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
]), X =
|
|
127
|
-
|
|
127
|
+
I,
|
|
128
|
+
B,
|
|
129
|
+
H
|
|
130
|
+
]), X = h(() => I.find((e) => e.id === U) ?? null, [I, U]), ke = h(() => I.filter(P).length, [I]), Ae = async () => {
|
|
131
|
+
V(!0);
|
|
128
132
|
try {
|
|
129
|
-
await
|
|
133
|
+
await R();
|
|
130
134
|
} finally {
|
|
131
|
-
|
|
135
|
+
V(!1);
|
|
132
136
|
}
|
|
133
|
-
}, Z =
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
}, Z = (e) => K(e), je = async () => {
|
|
138
|
+
let e = G;
|
|
139
|
+
if (e) {
|
|
140
|
+
try {
|
|
141
|
+
await xe(e.id);
|
|
142
|
+
} catch (e) {
|
|
143
|
+
E.error(e instanceof Error ? e.message : q("botlit.store.uninstall.error", "Could not uninstall the package."));
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
E.success(q("botlit.store.uninstall.success", "Uninstalled \"{{name}}\"", { name: M(e) })), K(null), W(null), R();
|
|
138
147
|
}
|
|
139
|
-
},
|
|
148
|
+
}, Me = async (e) => {
|
|
140
149
|
let t = e.package?.version;
|
|
141
150
|
if (t) try {
|
|
142
|
-
await
|
|
151
|
+
await Ce({
|
|
143
152
|
installedId: e.id,
|
|
144
153
|
input: { installedVersion: t }
|
|
145
|
-
}),
|
|
154
|
+
}), E.success(q("botlit.store.installed.updated", "Updated to v{{version}}", { version: t })), R();
|
|
146
155
|
} catch (e) {
|
|
147
|
-
|
|
156
|
+
E.error(e instanceof Error ? e.message : q("botlit.store.installed.updateError", "Could not update the package."));
|
|
148
157
|
}
|
|
149
158
|
}, Q = async (e, t, n) => {
|
|
150
159
|
try {
|
|
151
|
-
await
|
|
160
|
+
await Te({
|
|
152
161
|
installedId: e.id,
|
|
153
162
|
environment: t,
|
|
154
163
|
version: n,
|
|
155
164
|
pinnedByEnv: e.pinnedByEnv
|
|
156
|
-
}),
|
|
165
|
+
}), E.success(n ? q("botlit.store.installed.pinned", "Pinned {{env}} to v{{version}}", {
|
|
166
|
+
env: t,
|
|
167
|
+
version: n
|
|
168
|
+
}) : q("botlit.store.installed.unpinned", "Unpinned {{env}}", { env: t })), R();
|
|
157
169
|
} catch (e) {
|
|
158
|
-
|
|
170
|
+
E.error(e instanceof Error ? e.message : q("botlit.store.installed.pinError", "Could not change the version pin."));
|
|
159
171
|
}
|
|
160
|
-
}, $ = (e) => e === "LINKED" ? /* @__PURE__ */
|
|
161
|
-
let t =
|
|
162
|
-
return /* @__PURE__ */
|
|
172
|
+
}, $ = (e) => e === "LINKED" ? /* @__PURE__ */ y(C, { className: "h-4 w-4 text-status-info-text" }) : /* @__PURE__ */ y(fe, { className: "h-4 w-4 text-status-warning-text" }), Ne = ({ pkg: e }) => {
|
|
173
|
+
let t = N(e), i = A(e), a = P(e), o = D.filter((t) => F(e, t));
|
|
174
|
+
return /* @__PURE__ */ y(n, {
|
|
163
175
|
className: "hover:shadow-md transition-shadow cursor-pointer",
|
|
164
|
-
onClick: () =>
|
|
165
|
-
children: /* @__PURE__ */
|
|
176
|
+
onClick: () => W(e.id),
|
|
177
|
+
children: /* @__PURE__ */ b(r, {
|
|
166
178
|
className: "pt-6",
|
|
167
179
|
children: [
|
|
168
|
-
/* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ b("div", {
|
|
169
181
|
className: "flex items-start justify-between",
|
|
170
|
-
children: [/* @__PURE__ */
|
|
182
|
+
children: [/* @__PURE__ */ b("div", {
|
|
171
183
|
className: "flex items-start gap-3",
|
|
172
|
-
children: [/* @__PURE__ */
|
|
184
|
+
children: [/* @__PURE__ */ y("div", {
|
|
173
185
|
className: "p-2 rounded-lg bg-bg-sunken text-2xl",
|
|
174
186
|
children: t.icon
|
|
175
|
-
}), /* @__PURE__ */
|
|
187
|
+
}), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("div", {
|
|
176
188
|
className: "flex items-center gap-2",
|
|
177
|
-
children: [/* @__PURE__ */
|
|
189
|
+
children: [/* @__PURE__ */ y("h3", {
|
|
178
190
|
className: "font-semibold",
|
|
179
|
-
children: m(e.package) ||
|
|
180
|
-
}),
|
|
191
|
+
children: m(e.package) || i
|
|
192
|
+
}), a && /* @__PURE__ */ b(d, {
|
|
181
193
|
variant: "warning",
|
|
182
194
|
className: "gap-1",
|
|
183
|
-
children: [/* @__PURE__ */
|
|
195
|
+
children: [/* @__PURE__ */ y(x, { className: "h-3 w-3" }), q("botlit.store.installed.updateBadge", "Update")]
|
|
184
196
|
})]
|
|
185
|
-
}), /* @__PURE__ */
|
|
197
|
+
}), /* @__PURE__ */ y("p", {
|
|
186
198
|
className: "text-sm text-text-secondary font-mono",
|
|
187
|
-
children:
|
|
199
|
+
children: i
|
|
188
200
|
})] })]
|
|
189
|
-
}), /* @__PURE__ */
|
|
201
|
+
}), /* @__PURE__ */ b("div", {
|
|
190
202
|
className: "flex items-center gap-2",
|
|
191
|
-
children: [$(e.mode), /* @__PURE__ */
|
|
203
|
+
children: [$(e.mode), /* @__PURE__ */ y(d, {
|
|
192
204
|
variant: "outline",
|
|
193
|
-
children: t.label
|
|
205
|
+
children: J[j(e) ?? ""] ?? t.label
|
|
194
206
|
})]
|
|
195
207
|
})]
|
|
196
208
|
}),
|
|
197
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ b("div", {
|
|
198
210
|
className: "mt-4 grid grid-cols-3 gap-4 text-sm",
|
|
199
211
|
children: [
|
|
200
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
201
213
|
className: "text-text-secondary",
|
|
202
|
-
children: "Installed
|
|
203
|
-
}), /* @__PURE__ */
|
|
214
|
+
children: q("botlit.store.installed.installedVersion", "Installed version")
|
|
215
|
+
}), /* @__PURE__ */ b("p", {
|
|
204
216
|
className: "font-medium font-mono",
|
|
205
217
|
children: ["v", e.installedVersion]
|
|
206
218
|
})] }),
|
|
207
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
208
220
|
className: "text-text-secondary",
|
|
209
|
-
children: "Mode"
|
|
210
|
-
}), /* @__PURE__ */
|
|
221
|
+
children: q("botlit.store.installed.mode", "Mode")
|
|
222
|
+
}), /* @__PURE__ */ b("p", {
|
|
211
223
|
className: "font-medium flex items-center gap-1",
|
|
212
224
|
children: [$(e.mode), e.mode]
|
|
213
225
|
})] }),
|
|
214
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
215
227
|
className: "text-text-secondary",
|
|
216
|
-
children: "Installed"
|
|
217
|
-
}), /* @__PURE__ */
|
|
228
|
+
children: q("botlit.store.installed.installed", "Installed")
|
|
229
|
+
}), /* @__PURE__ */ y("p", {
|
|
218
230
|
className: "font-medium",
|
|
219
231
|
children: p(e.installedAt)
|
|
220
232
|
})] })
|
|
221
233
|
]
|
|
222
234
|
}),
|
|
223
|
-
|
|
235
|
+
o.length > 0 && /* @__PURE__ */ b("div", {
|
|
224
236
|
className: "mt-4 pt-4 border-t border-border-subtle",
|
|
225
|
-
children: [/* @__PURE__ */
|
|
237
|
+
children: [/* @__PURE__ */ y("p", {
|
|
226
238
|
className: "text-xs text-text-secondary mb-2",
|
|
227
|
-
children: "Pinned
|
|
228
|
-
}), /* @__PURE__ */
|
|
239
|
+
children: q("botlit.store.installed.pinnedVersions", "Pinned versions")
|
|
240
|
+
}), /* @__PURE__ */ y("div", {
|
|
229
241
|
className: "flex gap-2",
|
|
230
|
-
children:
|
|
231
|
-
let n =
|
|
232
|
-
return /* @__PURE__ */
|
|
242
|
+
children: D.map((t) => {
|
|
243
|
+
let n = F(e, t);
|
|
244
|
+
return /* @__PURE__ */ b(d, {
|
|
233
245
|
variant: n ? "default" : "outline",
|
|
234
246
|
className: "text-xs",
|
|
235
247
|
children: [
|
|
236
248
|
t,
|
|
237
|
-
":
|
|
238
|
-
|
|
249
|
+
":",
|
|
250
|
+
" ",
|
|
251
|
+
n ?? q("botlit.store.installed.notPinnedShort", "not pinned")
|
|
239
252
|
]
|
|
240
253
|
}, t);
|
|
241
254
|
})
|
|
242
255
|
})]
|
|
243
256
|
}),
|
|
244
|
-
/* @__PURE__ */
|
|
257
|
+
/* @__PURE__ */ b("div", {
|
|
245
258
|
className: "mt-4 flex justify-end gap-2",
|
|
246
259
|
children: [
|
|
247
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ b(l, {
|
|
248
261
|
variant: "ghost",
|
|
249
262
|
size: "sm",
|
|
250
263
|
onClick: (e) => {
|
|
251
|
-
e.stopPropagation(),
|
|
264
|
+
e.stopPropagation(), O(`store/package/${i}`);
|
|
252
265
|
},
|
|
253
|
-
children: [/* @__PURE__ */
|
|
266
|
+
children: [/* @__PURE__ */ y(me, { className: "h-4 w-4 mr-1" }), q("botlit.store.installed.viewInStore", "View in Store")]
|
|
254
267
|
}),
|
|
255
|
-
|
|
256
|
-
permission:
|
|
257
|
-
children: /* @__PURE__ */
|
|
268
|
+
a && /* @__PURE__ */ y(c, {
|
|
269
|
+
permission: s.STORE_UPDATE,
|
|
270
|
+
children: /* @__PURE__ */ b(l, {
|
|
258
271
|
variant: "outline",
|
|
259
272
|
size: "sm",
|
|
260
273
|
onClick: (t) => {
|
|
261
|
-
t.stopPropagation(),
|
|
274
|
+
t.stopPropagation(), Me(e);
|
|
262
275
|
},
|
|
263
|
-
isLoading:
|
|
264
|
-
children: [/* @__PURE__ */
|
|
276
|
+
isLoading: we,
|
|
277
|
+
children: [/* @__PURE__ */ y(x, { className: "h-4 w-4 mr-1" }), q("botlit.store.installed.update", "Update")]
|
|
265
278
|
})
|
|
266
279
|
}),
|
|
267
|
-
/* @__PURE__ */
|
|
268
|
-
permission:
|
|
269
|
-
children: /* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ y(c, {
|
|
281
|
+
permission: s.STORE_DELETE,
|
|
282
|
+
children: /* @__PURE__ */ y(l, {
|
|
270
283
|
variant: "ghost",
|
|
271
284
|
size: "sm",
|
|
272
285
|
"aria-label": "Uninstall package",
|
|
@@ -274,8 +287,7 @@ var z = () => {
|
|
|
274
287
|
onClick: (t) => {
|
|
275
288
|
t.stopPropagation(), Z(e);
|
|
276
289
|
},
|
|
277
|
-
|
|
278
|
-
children: /* @__PURE__ */ S(k, { className: "h-4 w-4" })
|
|
290
|
+
children: /* @__PURE__ */ y(T, { className: "h-4 w-4" })
|
|
279
291
|
})
|
|
280
292
|
})
|
|
281
293
|
]
|
|
@@ -284,185 +296,173 @@ var z = () => {
|
|
|
284
296
|
})
|
|
285
297
|
});
|
|
286
298
|
};
|
|
287
|
-
return
|
|
288
|
-
title: "Installed
|
|
289
|
-
description: "
|
|
290
|
-
children: /* @__PURE__ */
|
|
299
|
+
return ve ? /* @__PURE__ */ y(t, {
|
|
300
|
+
title: q("botlit.store.installed.title", "Installed packages"),
|
|
301
|
+
description: q("botlit.store.installed.subtitle", "Packages installed from the BotManor Store"),
|
|
302
|
+
children: /* @__PURE__ */ y("div", {
|
|
291
303
|
className: "space-y-4",
|
|
292
304
|
children: [
|
|
293
305
|
1,
|
|
294
306
|
2,
|
|
295
307
|
3
|
|
296
|
-
].map((e) => /* @__PURE__ */
|
|
308
|
+
].map((e) => /* @__PURE__ */ y("div", { className: "h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
|
|
297
309
|
})
|
|
298
|
-
}) : /* @__PURE__ */
|
|
299
|
-
title: "Installed
|
|
300
|
-
description: "
|
|
301
|
-
actions: /* @__PURE__ */
|
|
310
|
+
}) : /* @__PURE__ */ b(t, {
|
|
311
|
+
title: q("botlit.store.installed.title", "Installed packages"),
|
|
312
|
+
description: q("botlit.store.installed.subtitle", "Packages installed from the BotManor Store"),
|
|
313
|
+
actions: /* @__PURE__ */ b("div", {
|
|
302
314
|
className: "flex gap-2",
|
|
303
|
-
children: [/* @__PURE__ */
|
|
315
|
+
children: [/* @__PURE__ */ y(l, {
|
|
304
316
|
variant: "outline",
|
|
305
|
-
leftIcon: /* @__PURE__ */
|
|
306
|
-
onClick: () => void
|
|
307
|
-
isLoading:
|
|
308
|
-
children: "Check
|
|
309
|
-
}), /* @__PURE__ */
|
|
310
|
-
leftIcon: /* @__PURE__ */
|
|
311
|
-
onClick: () =>
|
|
312
|
-
children: "Browse Store"
|
|
317
|
+
leftIcon: /* @__PURE__ */ y(he, { size: 16 }),
|
|
318
|
+
onClick: () => void Ae(),
|
|
319
|
+
isLoading: De,
|
|
320
|
+
children: q("botlit.store.installed.checkUpdates", "Check updates")
|
|
321
|
+
}), /* @__PURE__ */ y(l, {
|
|
322
|
+
leftIcon: /* @__PURE__ */ y(w, { size: 16 }),
|
|
323
|
+
onClick: () => O("store"),
|
|
324
|
+
children: q("botlit.store.installed.browseStore", "Browse Store")
|
|
313
325
|
})]
|
|
314
326
|
}),
|
|
315
327
|
children: [
|
|
316
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ y(v, {
|
|
317
329
|
className: "mb-6",
|
|
318
|
-
icon: /* @__PURE__ */
|
|
319
|
-
children: "These are the packages
|
|
330
|
+
icon: /* @__PURE__ */ y(w, { size: 18 }),
|
|
331
|
+
children: q("botlit.store.installed.purpose", "These are the packages this workspace installed from the BotManor Store. See which version each one is on and whether it is linked to the store listing or a forked copy, update linked packages when a newer version is published, and uninstall what you no longer need.")
|
|
320
332
|
}),
|
|
321
|
-
|
|
333
|
+
L ? /* @__PURE__ */ y(te, {
|
|
322
334
|
resource: "installed packages",
|
|
323
|
-
error:
|
|
324
|
-
onRetry: () => void
|
|
325
|
-
}) : /* @__PURE__ */
|
|
326
|
-
/* @__PURE__ */
|
|
335
|
+
error: L,
|
|
336
|
+
onRetry: () => void R()
|
|
337
|
+
}) : /* @__PURE__ */ b(ue, { children: [
|
|
338
|
+
/* @__PURE__ */ b("div", {
|
|
327
339
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",
|
|
328
340
|
children: [
|
|
329
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ b(_, {
|
|
330
342
|
treatment: "glass",
|
|
331
343
|
glow: !0,
|
|
332
344
|
className: "p-6 text-center",
|
|
333
|
-
children: [/* @__PURE__ */
|
|
345
|
+
children: [/* @__PURE__ */ y("p", {
|
|
334
346
|
className: "text-3xl font-bold tabular-nums text-text-primary",
|
|
335
|
-
children:
|
|
336
|
-
}), /* @__PURE__ */
|
|
347
|
+
children: I.length
|
|
348
|
+
}), /* @__PURE__ */ y("p", {
|
|
337
349
|
className: "text-sm text-text-secondary",
|
|
338
|
-
children: "Total
|
|
350
|
+
children: q("botlit.store.installed.totalInstalled", "Total installed")
|
|
339
351
|
})]
|
|
340
352
|
}),
|
|
341
|
-
/* @__PURE__ */
|
|
353
|
+
/* @__PURE__ */ b(_, {
|
|
342
354
|
treatment: "metric",
|
|
343
355
|
className: "p-6 text-center",
|
|
344
|
-
children: [/* @__PURE__ */
|
|
356
|
+
children: [/* @__PURE__ */ y("p", {
|
|
345
357
|
className: "text-3xl font-bold tabular-nums text-text-primary",
|
|
346
|
-
children:
|
|
347
|
-
}), /* @__PURE__ */
|
|
358
|
+
children: I.filter((e) => e.mode === "LINKED").length
|
|
359
|
+
}), /* @__PURE__ */ y("p", {
|
|
348
360
|
className: "text-sm text-text-secondary",
|
|
349
|
-
children: "Linked"
|
|
361
|
+
children: q("botlit.store.installed.linked", "Linked")
|
|
350
362
|
})]
|
|
351
363
|
}),
|
|
352
|
-
/* @__PURE__ */
|
|
364
|
+
/* @__PURE__ */ b(_, {
|
|
353
365
|
treatment: "metric",
|
|
354
366
|
className: "p-6 text-center",
|
|
355
|
-
children: [/* @__PURE__ */
|
|
367
|
+
children: [/* @__PURE__ */ y("p", {
|
|
356
368
|
className: "text-3xl font-bold tabular-nums text-text-primary",
|
|
357
|
-
children:
|
|
358
|
-
}), /* @__PURE__ */
|
|
369
|
+
children: I.filter((e) => e.mode === "FORKED").length
|
|
370
|
+
}), /* @__PURE__ */ y("p", {
|
|
359
371
|
className: "text-sm text-text-secondary",
|
|
360
|
-
children: "Forked"
|
|
372
|
+
children: q("botlit.store.installed.forked", "Forked")
|
|
361
373
|
})]
|
|
362
374
|
}),
|
|
363
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ b(_, {
|
|
364
376
|
treatment: "metric",
|
|
365
377
|
className: "p-6 text-center",
|
|
366
|
-
children: [/* @__PURE__ */
|
|
378
|
+
children: [/* @__PURE__ */ y("p", {
|
|
367
379
|
className: "text-3xl font-bold tabular-nums text-text-primary",
|
|
368
|
-
children:
|
|
369
|
-
}), /* @__PURE__ */
|
|
380
|
+
children: ke
|
|
381
|
+
}), /* @__PURE__ */ y("p", {
|
|
370
382
|
className: "text-sm text-text-secondary",
|
|
371
|
-
children: "Updates
|
|
383
|
+
children: q("botlit.store.installed.updatesAvailable", "Updates available")
|
|
372
384
|
})]
|
|
373
385
|
})
|
|
374
386
|
]
|
|
375
387
|
}),
|
|
376
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ b("div", {
|
|
377
389
|
className: "flex flex-col md:flex-row gap-4 mb-6",
|
|
378
|
-
children: [/* @__PURE__ */
|
|
390
|
+
children: [/* @__PURE__ */ b("div", {
|
|
379
391
|
className: "relative flex-1",
|
|
380
|
-
children: [/* @__PURE__ */
|
|
381
|
-
placeholder: "Search packages
|
|
382
|
-
value:
|
|
383
|
-
onChange: (e) =>
|
|
392
|
+
children: [/* @__PURE__ */ y(ge, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ y(u, {
|
|
393
|
+
placeholder: q("botlit.store.installed.searchPlaceholder", "Search packages…"),
|
|
394
|
+
value: B,
|
|
395
|
+
onChange: (e) => Ee(e.target.value),
|
|
384
396
|
className: "pl-9"
|
|
385
397
|
})]
|
|
386
|
-
}), /* @__PURE__ */
|
|
398
|
+
}), /* @__PURE__ */ y("div", {
|
|
387
399
|
className: "flex gap-2",
|
|
388
|
-
children: /* @__PURE__ */
|
|
400
|
+
children: /* @__PURE__ */ b("select", {
|
|
389
401
|
"aria-label": "Filter by package type",
|
|
390
402
|
className: "flex h-10 rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
391
|
-
value:
|
|
392
|
-
onChange: (e) =>
|
|
393
|
-
children: [
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
children: "Agents"
|
|
401
|
-
}),
|
|
402
|
-
/* @__PURE__ */ S("option", {
|
|
403
|
-
value: g.Skill,
|
|
404
|
-
children: "Skills"
|
|
405
|
-
}),
|
|
406
|
-
/* @__PURE__ */ S("option", {
|
|
407
|
-
value: g.McpPack,
|
|
408
|
-
children: "MCP Packs"
|
|
409
|
-
}),
|
|
410
|
-
/* @__PURE__ */ S("option", {
|
|
411
|
-
value: g.PromptTemplate,
|
|
412
|
-
children: "Templates"
|
|
413
|
-
}),
|
|
414
|
-
/* @__PURE__ */ S("option", {
|
|
415
|
-
value: g.RetrievalProfile,
|
|
416
|
-
children: "Retrieval Profiles"
|
|
417
|
-
})
|
|
418
|
-
]
|
|
403
|
+
value: H,
|
|
404
|
+
onChange: (e) => Oe(e.target.value),
|
|
405
|
+
children: [/* @__PURE__ */ y("option", {
|
|
406
|
+
value: "all",
|
|
407
|
+
children: q("botlit.store.filters.allTypes", "All types")
|
|
408
|
+
}), oe.map((e) => /* @__PURE__ */ y("option", {
|
|
409
|
+
value: e,
|
|
410
|
+
children: J[e] ?? e
|
|
411
|
+
}, e))]
|
|
419
412
|
})
|
|
420
413
|
})]
|
|
421
414
|
}),
|
|
422
|
-
Y.length > 0 ? /* @__PURE__ */
|
|
415
|
+
Y.length > 0 ? /* @__PURE__ */ y("div", {
|
|
423
416
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
424
|
-
children: Y.map((e) => /* @__PURE__ */
|
|
425
|
-
}) : /* @__PURE__ */
|
|
417
|
+
children: Y.map((e) => /* @__PURE__ */ y(Ne, { pkg: e }, e.id))
|
|
418
|
+
}) : /* @__PURE__ */ y(f, {
|
|
426
419
|
illustration: "empty-generic",
|
|
427
|
-
title:
|
|
428
|
-
description:
|
|
429
|
-
action: /* @__PURE__ */
|
|
430
|
-
onClick: () =>
|
|
431
|
-
leftIcon: /* @__PURE__ */
|
|
432
|
-
children: "Browse Store"
|
|
420
|
+
title: B || H !== "all" ? q("botlit.store.installed.noMatches", "No matching packages") : q("botlit.store.installed.empty", "No packages installed"),
|
|
421
|
+
description: B || H !== "all" ? q("botlit.store.installed.noMatchesBody", "Try adjusting your search or type filter.") : q("botlit.store.installed.emptyBody", "Browse the BotManor Store to find agents, skills and tools to install."),
|
|
422
|
+
action: /* @__PURE__ */ y(l, {
|
|
423
|
+
onClick: () => O("store"),
|
|
424
|
+
leftIcon: /* @__PURE__ */ y(pe, { className: "h-4 w-4" }),
|
|
425
|
+
children: q("botlit.store.installed.browseStore", "Browse Store")
|
|
433
426
|
})
|
|
434
427
|
}),
|
|
435
|
-
/* @__PURE__ */
|
|
436
|
-
hasMore:
|
|
437
|
-
loadingMore:
|
|
438
|
-
onLoadMore: () => void
|
|
439
|
-
loadedCount:
|
|
428
|
+
/* @__PURE__ */ y(ee, {
|
|
429
|
+
hasMore: ye,
|
|
430
|
+
loadingMore: be,
|
|
431
|
+
onLoadMore: () => void z(),
|
|
432
|
+
loadedCount: I.length
|
|
440
433
|
})
|
|
441
434
|
] }),
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
435
|
+
/* @__PURE__ */ y(se, {
|
|
436
|
+
name: G ? M(G) : null,
|
|
437
|
+
version: G?.installedVersion,
|
|
438
|
+
uninstalling: Se,
|
|
439
|
+
onConfirm: () => void je(),
|
|
440
|
+
onClose: () => K(null)
|
|
441
|
+
}),
|
|
442
|
+
X && /* @__PURE__ */ y(({ pkg: e, onClose: t }) => {
|
|
443
|
+
let u = N(e), d = A(e), f = e.bindings ?? {};
|
|
444
|
+
return /* @__PURE__ */ y("div", {
|
|
445
445
|
className: "fixed inset-0 bg-bg-overlay flex items-center justify-center z-50",
|
|
446
|
-
children: /* @__PURE__ */
|
|
446
|
+
children: /* @__PURE__ */ b("div", {
|
|
447
447
|
className: "bg-bg-surface rounded-lg shadow-xl max-w-2xl w-full mx-4 max-h-[90vh] overflow-y-auto",
|
|
448
448
|
children: [
|
|
449
|
-
/* @__PURE__ */
|
|
449
|
+
/* @__PURE__ */ y("div", {
|
|
450
450
|
className: "p-6 border-b border-border-subtle",
|
|
451
|
-
children: /* @__PURE__ */
|
|
451
|
+
children: /* @__PURE__ */ b("div", {
|
|
452
452
|
className: "flex items-start justify-between",
|
|
453
|
-
children: [/* @__PURE__ */
|
|
453
|
+
children: [/* @__PURE__ */ b("div", {
|
|
454
454
|
className: "flex items-start gap-3",
|
|
455
|
-
children: [/* @__PURE__ */
|
|
455
|
+
children: [/* @__PURE__ */ y("div", {
|
|
456
456
|
className: "p-3 rounded-lg bg-bg-sunken text-3xl",
|
|
457
457
|
children: u.icon
|
|
458
|
-
}), /* @__PURE__ */
|
|
458
|
+
}), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("h2", {
|
|
459
459
|
className: "text-xl font-bold",
|
|
460
460
|
children: m(e.package) || d
|
|
461
|
-
}), /* @__PURE__ */
|
|
461
|
+
}), /* @__PURE__ */ y("p", {
|
|
462
462
|
className: "text-sm text-text-secondary font-mono",
|
|
463
463
|
children: d
|
|
464
464
|
})] })]
|
|
465
|
-
}), /* @__PURE__ */
|
|
465
|
+
}), /* @__PURE__ */ y(l, {
|
|
466
466
|
variant: "ghost",
|
|
467
467
|
size: "sm",
|
|
468
468
|
"aria-label": "Close",
|
|
@@ -471,132 +471,132 @@ var z = () => {
|
|
|
471
471
|
})]
|
|
472
472
|
})
|
|
473
473
|
}),
|
|
474
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ b("div", {
|
|
475
475
|
className: "p-6 space-y-6",
|
|
476
476
|
children: [
|
|
477
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ b(n, { children: [/* @__PURE__ */ y(a, { children: /* @__PURE__ */ y(o, {
|
|
478
478
|
className: "text-base",
|
|
479
|
-
children: "Version
|
|
480
|
-
}) }), /* @__PURE__ */
|
|
479
|
+
children: q("botlit.store.installed.versionInfo", "Version information")
|
|
480
|
+
}) }), /* @__PURE__ */ b(r, {
|
|
481
481
|
className: "space-y-4",
|
|
482
|
-
children: [/* @__PURE__ */
|
|
482
|
+
children: [/* @__PURE__ */ b("div", {
|
|
483
483
|
className: "grid grid-cols-2 gap-4",
|
|
484
|
-
children: [/* @__PURE__ */
|
|
484
|
+
children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
485
485
|
className: "text-sm text-text-secondary",
|
|
486
|
-
children: "Installed
|
|
487
|
-
}), /* @__PURE__ */
|
|
486
|
+
children: q("botlit.store.installed.installedVersion", "Installed version")
|
|
487
|
+
}), /* @__PURE__ */ b("p", {
|
|
488
488
|
className: "font-mono font-medium",
|
|
489
489
|
children: ["v", e.installedVersion]
|
|
490
|
-
})] }), e.package && /* @__PURE__ */
|
|
490
|
+
})] }), e.package && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
491
491
|
className: "text-sm text-text-secondary",
|
|
492
|
-
children: "Latest
|
|
493
|
-
}), /* @__PURE__ */
|
|
492
|
+
children: q("botlit.store.installed.latestVersion", "Latest version")
|
|
493
|
+
}), /* @__PURE__ */ b("p", {
|
|
494
494
|
className: "font-mono font-medium",
|
|
495
495
|
children: ["v", e.package.version]
|
|
496
496
|
})] })]
|
|
497
|
-
}), /* @__PURE__ */
|
|
497
|
+
}), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
498
498
|
className: "text-sm text-text-secondary mb-2",
|
|
499
|
-
children: "Installation
|
|
500
|
-
}), /* @__PURE__ */
|
|
499
|
+
children: q("botlit.store.installed.installMode", "Installation mode")
|
|
500
|
+
}), /* @__PURE__ */ b("div", {
|
|
501
501
|
className: "flex items-center gap-2",
|
|
502
502
|
children: [
|
|
503
503
|
$(e.mode),
|
|
504
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ y("span", {
|
|
505
505
|
className: "font-medium",
|
|
506
506
|
children: e.mode
|
|
507
507
|
}),
|
|
508
|
-
/* @__PURE__ */
|
|
508
|
+
/* @__PURE__ */ y("span", {
|
|
509
509
|
className: "text-sm text-text-secondary",
|
|
510
|
-
children: e.mode === "LINKED" ? "
|
|
510
|
+
children: e.mode === "LINKED" ? q("botlit.store.installed.linkedHint", "Tracks the store listing; update when a newer version is published") : q("botlit.store.installed.forkedHint", "Your own copy; store updates are not offered")
|
|
511
511
|
})
|
|
512
512
|
]
|
|
513
513
|
})] })]
|
|
514
514
|
})] }),
|
|
515
|
-
/* @__PURE__ */
|
|
515
|
+
/* @__PURE__ */ b(n, { children: [/* @__PURE__ */ b(a, { children: [/* @__PURE__ */ b(o, {
|
|
516
516
|
className: "text-base flex items-center gap-2",
|
|
517
|
-
children: [/* @__PURE__ */ S
|
|
518
|
-
}), /* @__PURE__ */
|
|
517
|
+
children: [/* @__PURE__ */ y(S, { className: "h-4 w-4" }), q("botlit.store.installed.pinsTitle", "Environment version pins")]
|
|
518
|
+
}), /* @__PURE__ */ y(i, { children: q("botlit.store.pins.description", "Pins are a record for your release process. Bots do not yet load a different version per environment; every environment runs the installed version.") })] }), /* @__PURE__ */ y(r, { children: /* @__PURE__ */ y("div", {
|
|
519
519
|
className: "space-y-3",
|
|
520
|
-
children:
|
|
521
|
-
let
|
|
522
|
-
return /* @__PURE__ */
|
|
520
|
+
children: D.map((t) => {
|
|
521
|
+
let n = F(e, t);
|
|
522
|
+
return /* @__PURE__ */ b("div", {
|
|
523
523
|
className: "flex items-center justify-between p-3 bg-bg-sunken rounded-lg",
|
|
524
|
-
children: [/* @__PURE__ */
|
|
524
|
+
children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
525
525
|
className: "font-medium",
|
|
526
526
|
children: t
|
|
527
|
-
}), /* @__PURE__ */
|
|
527
|
+
}), /* @__PURE__ */ y("p", {
|
|
528
528
|
className: "text-sm text-text-secondary font-mono",
|
|
529
|
-
children:
|
|
530
|
-
})] }), /* @__PURE__ */
|
|
529
|
+
children: n ? `v${n}` : q("botlit.store.installed.notPinned", "Not pinned")
|
|
530
|
+
})] }), /* @__PURE__ */ y("div", {
|
|
531
531
|
className: "flex gap-2",
|
|
532
|
-
children:
|
|
533
|
-
permission:
|
|
534
|
-
children: /* @__PURE__ */
|
|
532
|
+
children: n ? /* @__PURE__ */ y(c, {
|
|
533
|
+
permission: s.STORE_UPDATE,
|
|
534
|
+
children: /* @__PURE__ */ y(l, {
|
|
535
535
|
variant: "outline",
|
|
536
536
|
size: "sm",
|
|
537
537
|
onClick: () => void Q(e, t, ""),
|
|
538
|
-
children: "Unpin"
|
|
538
|
+
children: q("botlit.store.installed.unpin", "Unpin")
|
|
539
539
|
})
|
|
540
|
-
}) : /* @__PURE__ */
|
|
541
|
-
permission:
|
|
542
|
-
children: /* @__PURE__ */
|
|
540
|
+
}) : /* @__PURE__ */ y(c, {
|
|
541
|
+
permission: s.STORE_UPDATE,
|
|
542
|
+
children: /* @__PURE__ */ y(l, {
|
|
543
543
|
variant: "outline",
|
|
544
544
|
size: "sm",
|
|
545
545
|
onClick: () => void Q(e, t, e.installedVersion),
|
|
546
|
-
children: "Pin
|
|
546
|
+
children: q("botlit.store.installed.pinCurrent", "Pin current")
|
|
547
547
|
})
|
|
548
548
|
})
|
|
549
549
|
})]
|
|
550
550
|
}, t);
|
|
551
551
|
})
|
|
552
552
|
}) })] }),
|
|
553
|
-
Object.keys(f).length > 0 && /* @__PURE__ */
|
|
553
|
+
Object.keys(f).length > 0 && /* @__PURE__ */ b(n, { children: [/* @__PURE__ */ b(a, { children: [/* @__PURE__ */ b(o, {
|
|
554
554
|
className: "text-base flex items-center gap-2",
|
|
555
|
-
children: [/* @__PURE__ */
|
|
556
|
-
}) }), /* @__PURE__ */
|
|
555
|
+
children: [/* @__PURE__ */ y(_e, { className: "h-4 w-4" }), q("botlit.store.installed.bindingsTitle", "Configuration bindings")]
|
|
556
|
+
}), /* @__PURE__ */ y(i, { children: q("botlit.store.bindings.description", "Values saved with this installation. They are shown for reference and are not applied to your bots automatically.") })] }), /* @__PURE__ */ y(r, { children: /* @__PURE__ */ y("div", {
|
|
557
557
|
className: "space-y-2",
|
|
558
|
-
children: Object.entries(f).map(([e, t]) => /* @__PURE__ */
|
|
558
|
+
children: Object.entries(f).map(([e, t]) => /* @__PURE__ */ b("div", {
|
|
559
559
|
className: "flex justify-between p-2 bg-bg-sunken rounded",
|
|
560
|
-
children: [/* @__PURE__ */
|
|
560
|
+
children: [/* @__PURE__ */ y("span", {
|
|
561
561
|
className: "font-mono text-sm",
|
|
562
562
|
children: e
|
|
563
|
-
}), /* @__PURE__ */
|
|
563
|
+
}), /* @__PURE__ */ y("span", {
|
|
564
564
|
className: "font-mono text-sm text-text-secondary",
|
|
565
565
|
children: typeof t == "string" ? t : JSON.stringify(t)
|
|
566
566
|
})]
|
|
567
567
|
}, e))
|
|
568
568
|
}) })] }),
|
|
569
|
-
/* @__PURE__ */
|
|
569
|
+
/* @__PURE__ */ b(n, { children: [/* @__PURE__ */ y(a, { children: /* @__PURE__ */ y(o, {
|
|
570
570
|
className: "text-base",
|
|
571
|
-
children: "Metadata"
|
|
572
|
-
}) }), /* @__PURE__ */
|
|
571
|
+
children: q("botlit.store.installed.metadata", "Metadata")
|
|
572
|
+
}) }), /* @__PURE__ */ y(r, { children: /* @__PURE__ */ b("div", {
|
|
573
573
|
className: "grid grid-cols-2 gap-4 text-sm",
|
|
574
574
|
children: [
|
|
575
|
-
/* @__PURE__ */
|
|
575
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
576
576
|
className: "text-text-secondary",
|
|
577
|
-
children: "Installed
|
|
578
|
-
}), /* @__PURE__ */
|
|
577
|
+
children: q("botlit.store.installed.installedAt", "Installed at")
|
|
578
|
+
}), /* @__PURE__ */ y("p", {
|
|
579
579
|
className: "font-medium",
|
|
580
580
|
children: p(e.installedAt)
|
|
581
581
|
})] }),
|
|
582
|
-
/* @__PURE__ */
|
|
582
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
583
583
|
className: "text-text-secondary",
|
|
584
|
-
children: "Installed
|
|
585
|
-
}), /* @__PURE__ */
|
|
584
|
+
children: q("botlit.store.installed.installedBy", "Installed by")
|
|
585
|
+
}), /* @__PURE__ */ y("p", {
|
|
586
586
|
className: "font-medium",
|
|
587
587
|
children: e.installedBy
|
|
588
588
|
})] }),
|
|
589
|
-
/* @__PURE__ */
|
|
589
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
590
590
|
className: "text-text-secondary",
|
|
591
|
-
children: "Package
|
|
592
|
-
}), /* @__PURE__ */
|
|
591
|
+
children: q("botlit.store.installed.packageId", "Package id")
|
|
592
|
+
}), /* @__PURE__ */ y("p", {
|
|
593
593
|
className: "font-mono text-xs",
|
|
594
594
|
children: e.packageId
|
|
595
595
|
})] }),
|
|
596
|
-
/* @__PURE__ */
|
|
596
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
597
597
|
className: "text-text-secondary",
|
|
598
|
-
children: "Installation
|
|
599
|
-
}), /* @__PURE__ */
|
|
598
|
+
children: q("botlit.store.installed.installationId", "Installation id")
|
|
599
|
+
}), /* @__PURE__ */ y("p", {
|
|
600
600
|
className: "font-mono text-xs",
|
|
601
601
|
children: e.id
|
|
602
602
|
})] })
|
|
@@ -604,27 +604,27 @@ var z = () => {
|
|
|
604
604
|
}) })] })
|
|
605
605
|
]
|
|
606
606
|
}),
|
|
607
|
-
/* @__PURE__ */
|
|
607
|
+
/* @__PURE__ */ b("div", {
|
|
608
608
|
className: "p-6 border-t border-border-subtle flex justify-between",
|
|
609
|
-
children: [/* @__PURE__ */
|
|
610
|
-
permission:
|
|
611
|
-
children: /* @__PURE__ */
|
|
609
|
+
children: [/* @__PURE__ */ y(c, {
|
|
610
|
+
permission: s.STORE_DELETE,
|
|
611
|
+
children: /* @__PURE__ */ b(l, {
|
|
612
612
|
variant: "destructive",
|
|
613
|
-
onClick: () =>
|
|
614
|
-
children: [/* @__PURE__ */
|
|
613
|
+
onClick: () => Z(e),
|
|
614
|
+
children: [/* @__PURE__ */ y(T, { className: "h-4 w-4 mr-2" }), q("botlit.store.installed.uninstall", "Uninstall")]
|
|
615
615
|
})
|
|
616
|
-
}), /* @__PURE__ */
|
|
616
|
+
}), /* @__PURE__ */ b("div", {
|
|
617
617
|
className: "flex gap-2",
|
|
618
|
-
children: [/* @__PURE__ */
|
|
619
|
-
to:
|
|
620
|
-
children: /* @__PURE__ */
|
|
618
|
+
children: [/* @__PURE__ */ y(de, {
|
|
619
|
+
to: k(`store/package/${d}`),
|
|
620
|
+
children: /* @__PURE__ */ y(l, {
|
|
621
621
|
variant: "outline",
|
|
622
|
-
children: "View in Store"
|
|
622
|
+
children: q("botlit.store.installed.viewInStore", "View in Store")
|
|
623
623
|
})
|
|
624
|
-
}), /* @__PURE__ */
|
|
624
|
+
}), /* @__PURE__ */ y(l, {
|
|
625
625
|
variant: "outline",
|
|
626
626
|
onClick: t,
|
|
627
|
-
children: "Close"
|
|
627
|
+
children: q("botlit.store.installed.close", "Close")
|
|
628
628
|
})]
|
|
629
629
|
})]
|
|
630
630
|
})
|
|
@@ -633,11 +633,11 @@ var z = () => {
|
|
|
633
633
|
});
|
|
634
634
|
}, {
|
|
635
635
|
pkg: X,
|
|
636
|
-
onClose: () =>
|
|
636
|
+
onClose: () => W(null)
|
|
637
637
|
})
|
|
638
638
|
]
|
|
639
639
|
});
|
|
640
640
|
};
|
|
641
|
-
export {
|
|
641
|
+
export { I as InstalledPackagesPage };
|
|
642
642
|
|
|
643
643
|
//# sourceMappingURL=InstalledPackagesPage.js.map
|