@burdenoff/microfe-botmanor 2026.1118.7 → 2026.1119.1
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/A2ATrustBadge.d.ts +9 -0
- package/dist/botlit/components/A2ATrustBadge.js +55 -0
- package/dist/botlit/components/A2ATrustBadge.js.map +1 -0
- package/dist/botlit/components/ChannelSelectorSheet.d.ts +9 -2
- package/dist/botlit/components/ChannelSelectorSheet.js.map +1 -1
- package/dist/botlit/hooks/index.d.ts +1 -1
- package/dist/botlit/hooks/index.js +14 -14
- package/dist/botlit/hooks/internal/globalWorkspaceScope.d.ts +15 -0
- package/dist/botlit/hooks/internal/globalWorkspaceScope.js +21 -0
- package/dist/botlit/hooks/internal/globalWorkspaceScope.js.map +1 -0
- package/dist/botlit/hooks/internal/workspaceGateway.d.ts +7 -0
- package/dist/botlit/hooks/internal/workspaceGateway.js +42 -22
- package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
- package/dist/botlit/hooks/useA2A.d.ts +107 -9
- package/dist/botlit/hooks/useA2A.js +215 -80
- package/dist/botlit/hooks/useA2A.js.map +1 -1
- package/dist/botlit/hooks/useChannelSetup.d.ts +2 -1
- package/dist/botlit/hooks/useChannelSetup.js +61 -52
- package/dist/botlit/hooks/useChannelSetup.js.map +1 -1
- package/dist/botlit/hooks/useChannels.d.ts +9 -0
- package/dist/botlit/hooks/useChannels.js +83 -73
- package/dist/botlit/hooks/useChannels.js.map +1 -1
- package/dist/botlit/hooks/useUserPlatformConnection.js +98 -78
- package/dist/botlit/hooks/useUserPlatformConnection.js.map +1 -1
- package/dist/botlit/pages/A2AAgentDetailPage.js +715 -503
- package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/A2ARegistryPage.js +278 -179
- package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
- package/dist/botlit/pages/BotChannelsTab.js +457 -242
- package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
- package/dist/botlit/pages/ExecutionsPage.js +1 -1
- package/dist/botlit/pages/InstalledPackagesPage.js +154 -154
- package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
- package/dist/botlit/pages/PromptStudioPage.js +172 -172
- package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
- package/dist/botlit/pages/StorePage.js +8 -8
- package/dist/botlit/pages/StorePage.js.map +1 -1
- package/dist/botlit/permissions/index.js +3 -3
- package/dist/botlit/permissions/useBotmanorPermissions.js +5 -2
- package/dist/botlit/permissions/useBotmanorPermissions.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,15 +10,15 @@ import { EmptyState as f } from "../components/EmptyState.js";
|
|
|
10
10
|
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
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { PackageKind as
|
|
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
16
|
import "../permissions/index.js";
|
|
17
|
-
import { useMemo as
|
|
18
|
-
import { GlassCard as
|
|
19
|
-
import { Fragment as
|
|
20
|
-
import { Link as
|
|
21
|
-
import { ArrowUpCircle as
|
|
17
|
+
import { useMemo as _, useState as v } from "react";
|
|
18
|
+
import { GlassCard as y, PagePurpose as b } from "@burdenoff/fe-libs/ui";
|
|
19
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
20
|
+
import { Link as ae } from "react-router";
|
|
21
|
+
import { ArrowUpCircle as w, Copy as oe, Download as T, ExternalLink as se, GitBranch as ce, Link2 as le, Package as E, RefreshCw as ue, Search as D, Settings as O, Trash2 as k } from "lucide-react";
|
|
22
22
|
import { toast as A } from "sonner";
|
|
23
23
|
// src/botlit/pages/InstalledPackagesPage.tsx
|
|
24
24
|
var j = [
|
|
@@ -113,17 +113,17 @@ function R(e, t) {
|
|
|
113
113
|
return typeof n == "string" && n !== "" ? n : void 0;
|
|
114
114
|
}
|
|
115
115
|
var z = () => {
|
|
116
|
-
let { navigateTo: M, getPath: N } = e(), { data: z, loading: B, error: V, refetch: H, hasMore: de, loadingMore: U, loadMore: fe } =
|
|
116
|
+
let { navigateTo: M, getPath: N } = e(), { data: z, loading: B, error: V, refetch: H, hasMore: de, loadingMore: U, loadMore: fe } = ne(), { uninstall: pe, loading: me } = h(), { update: he, loading: ge } = ie(), { pin: _e } = re(), [W, ve] = v(""), [ye, G] = v(!1), [K, be] = v("all"), [q, J] = v(null), Y = _(() => {
|
|
117
117
|
let e = W.trim().toLowerCase();
|
|
118
118
|
return z.filter((t) => {
|
|
119
|
-
let n = !e || P(t).toLowerCase().includes(e) ||
|
|
119
|
+
let n = !e || P(t).toLowerCase().includes(e) || m(t.package).toLowerCase().includes(e), r = K === "all" || F(t) === K;
|
|
120
120
|
return n && r;
|
|
121
121
|
});
|
|
122
122
|
}, [
|
|
123
123
|
z,
|
|
124
124
|
W,
|
|
125
125
|
K
|
|
126
|
-
]), X =
|
|
126
|
+
]), X = _(() => z.find((e) => e.id === q) ?? null, [z, q]), xe = _(() => z.filter(L).length, [z]), Se = async () => {
|
|
127
127
|
G(!0);
|
|
128
128
|
try {
|
|
129
129
|
await H();
|
|
@@ -132,7 +132,7 @@ var z = () => {
|
|
|
132
132
|
}
|
|
133
133
|
}, Z = async (e) => {
|
|
134
134
|
if (confirm("Are you sure you want to uninstall this package?")) try {
|
|
135
|
-
await pe(e.id), A.success(`Uninstalled "${
|
|
135
|
+
await pe(e.id), A.success(`Uninstalled "${m(e.package) || P(e)}"`), J(null), H();
|
|
136
136
|
} catch (e) {
|
|
137
137
|
A.error(e instanceof Error ? e.message : "Failed to uninstall package");
|
|
138
138
|
}
|
|
@@ -157,79 +157,79 @@ var z = () => {
|
|
|
157
157
|
} catch (e) {
|
|
158
158
|
A.error(e instanceof Error ? e.message : "Failed to change version pin");
|
|
159
159
|
}
|
|
160
|
-
}, $ = (e) => e === "LINKED" ? /* @__PURE__ */
|
|
160
|
+
}, $ = (e) => e === "LINKED" ? /* @__PURE__ */ S(le, { className: "h-4 w-4 text-status-info-text" }) : /* @__PURE__ */ S(oe, { className: "h-4 w-4 text-status-warning-text" }), we = ({ pkg: e }) => {
|
|
161
161
|
let t = I(e), o = P(e), s = L(e), c = j.filter((t) => R(e, t));
|
|
162
|
-
return /* @__PURE__ */
|
|
162
|
+
return /* @__PURE__ */ S(i, {
|
|
163
163
|
className: "hover:shadow-md transition-shadow cursor-pointer",
|
|
164
164
|
onClick: () => J(e.id),
|
|
165
|
-
children: /* @__PURE__ */
|
|
165
|
+
children: /* @__PURE__ */ C(a, {
|
|
166
166
|
className: "pt-6",
|
|
167
167
|
children: [
|
|
168
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ C("div", {
|
|
169
169
|
className: "flex items-start justify-between",
|
|
170
|
-
children: [/* @__PURE__ */
|
|
170
|
+
children: [/* @__PURE__ */ C("div", {
|
|
171
171
|
className: "flex items-start gap-3",
|
|
172
|
-
children: [/* @__PURE__ */
|
|
172
|
+
children: [/* @__PURE__ */ S("div", {
|
|
173
173
|
className: "p-2 rounded-lg bg-bg-sunken text-2xl",
|
|
174
174
|
children: t.icon
|
|
175
|
-
}), /* @__PURE__ */
|
|
175
|
+
}), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ C("div", {
|
|
176
176
|
className: "flex items-center gap-2",
|
|
177
|
-
children: [/* @__PURE__ */
|
|
177
|
+
children: [/* @__PURE__ */ S("h3", {
|
|
178
178
|
className: "font-semibold",
|
|
179
|
-
children:
|
|
180
|
-
}), s && /* @__PURE__ */
|
|
179
|
+
children: m(e.package) || o
|
|
180
|
+
}), s && /* @__PURE__ */ C(d, {
|
|
181
181
|
variant: "warning",
|
|
182
182
|
className: "gap-1",
|
|
183
|
-
children: [/* @__PURE__ */
|
|
183
|
+
children: [/* @__PURE__ */ S(w, { className: "h-3 w-3" }), "Update"]
|
|
184
184
|
})]
|
|
185
|
-
}), /* @__PURE__ */
|
|
185
|
+
}), /* @__PURE__ */ S("p", {
|
|
186
186
|
className: "text-sm text-text-secondary font-mono",
|
|
187
187
|
children: o
|
|
188
188
|
})] })]
|
|
189
|
-
}), /* @__PURE__ */
|
|
189
|
+
}), /* @__PURE__ */ C("div", {
|
|
190
190
|
className: "flex items-center gap-2",
|
|
191
|
-
children: [$(e.mode), /* @__PURE__ */
|
|
191
|
+
children: [$(e.mode), /* @__PURE__ */ S(d, {
|
|
192
192
|
variant: "outline",
|
|
193
193
|
children: t.label
|
|
194
194
|
})]
|
|
195
195
|
})]
|
|
196
196
|
}),
|
|
197
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ C("div", {
|
|
198
198
|
className: "mt-4 grid grid-cols-3 gap-4 text-sm",
|
|
199
199
|
children: [
|
|
200
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
201
201
|
className: "text-text-secondary",
|
|
202
202
|
children: "Installed Version"
|
|
203
|
-
}), /* @__PURE__ */
|
|
203
|
+
}), /* @__PURE__ */ C("p", {
|
|
204
204
|
className: "font-medium font-mono",
|
|
205
205
|
children: ["v", e.installedVersion]
|
|
206
206
|
})] }),
|
|
207
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
208
208
|
className: "text-text-secondary",
|
|
209
209
|
children: "Mode"
|
|
210
|
-
}), /* @__PURE__ */
|
|
210
|
+
}), /* @__PURE__ */ C("p", {
|
|
211
211
|
className: "font-medium flex items-center gap-1",
|
|
212
212
|
children: [$(e.mode), e.mode]
|
|
213
213
|
})] }),
|
|
214
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
215
215
|
className: "text-text-secondary",
|
|
216
216
|
children: "Installed"
|
|
217
|
-
}), /* @__PURE__ */
|
|
217
|
+
}), /* @__PURE__ */ S("p", {
|
|
218
218
|
className: "font-medium",
|
|
219
|
-
children:
|
|
219
|
+
children: p(e.installedAt)
|
|
220
220
|
})] })
|
|
221
221
|
]
|
|
222
222
|
}),
|
|
223
|
-
c.length > 0 && /* @__PURE__ */
|
|
223
|
+
c.length > 0 && /* @__PURE__ */ C("div", {
|
|
224
224
|
className: "mt-4 pt-4 border-t border-border-subtle",
|
|
225
|
-
children: [/* @__PURE__ */
|
|
225
|
+
children: [/* @__PURE__ */ S("p", {
|
|
226
226
|
className: "text-xs text-text-secondary mb-2",
|
|
227
227
|
children: "Pinned Versions"
|
|
228
|
-
}), /* @__PURE__ */
|
|
228
|
+
}), /* @__PURE__ */ S("div", {
|
|
229
229
|
className: "flex gap-2",
|
|
230
230
|
children: j.map((t) => {
|
|
231
231
|
let n = R(e, t);
|
|
232
|
-
return /* @__PURE__ */
|
|
232
|
+
return /* @__PURE__ */ C(d, {
|
|
233
233
|
variant: n ? "default" : "outline",
|
|
234
234
|
className: "text-xs",
|
|
235
235
|
children: [
|
|
@@ -241,32 +241,32 @@ var z = () => {
|
|
|
241
241
|
})
|
|
242
242
|
})]
|
|
243
243
|
}),
|
|
244
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ C("div", {
|
|
245
245
|
className: "mt-4 flex justify-end gap-2",
|
|
246
246
|
children: [
|
|
247
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ C(l, {
|
|
248
248
|
variant: "ghost",
|
|
249
249
|
size: "sm",
|
|
250
250
|
onClick: (e) => {
|
|
251
251
|
e.stopPropagation(), M(`store/package/${o}`);
|
|
252
252
|
},
|
|
253
|
-
children: [/* @__PURE__ */
|
|
253
|
+
children: [/* @__PURE__ */ S(se, { className: "h-4 w-4 mr-1" }), "View in Store"]
|
|
254
254
|
}),
|
|
255
|
-
s && /* @__PURE__ */
|
|
255
|
+
s && /* @__PURE__ */ S(r, {
|
|
256
256
|
permission: n.STORE_UPDATE,
|
|
257
|
-
children: /* @__PURE__ */
|
|
257
|
+
children: /* @__PURE__ */ C(l, {
|
|
258
258
|
variant: "outline",
|
|
259
259
|
size: "sm",
|
|
260
260
|
onClick: (t) => {
|
|
261
261
|
t.stopPropagation(), Ce(e);
|
|
262
262
|
},
|
|
263
263
|
isLoading: ge,
|
|
264
|
-
children: [/* @__PURE__ */
|
|
264
|
+
children: [/* @__PURE__ */ S(w, { className: "h-4 w-4 mr-1" }), "Update"]
|
|
265
265
|
})
|
|
266
266
|
}),
|
|
267
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ S(r, {
|
|
268
268
|
permission: n.STORE_DELETE,
|
|
269
|
-
children: /* @__PURE__ */
|
|
269
|
+
children: /* @__PURE__ */ S(l, {
|
|
270
270
|
variant: "ghost",
|
|
271
271
|
size: "sm",
|
|
272
272
|
"aria-label": "Uninstall package",
|
|
@@ -275,7 +275,7 @@ var z = () => {
|
|
|
275
275
|
t.stopPropagation(), Z(e);
|
|
276
276
|
},
|
|
277
277
|
isLoading: me,
|
|
278
|
-
children: /* @__PURE__ */
|
|
278
|
+
children: /* @__PURE__ */ S(k, { className: "h-4 w-4" })
|
|
279
279
|
})
|
|
280
280
|
})
|
|
281
281
|
]
|
|
@@ -284,185 +284,185 @@ var z = () => {
|
|
|
284
284
|
})
|
|
285
285
|
});
|
|
286
286
|
};
|
|
287
|
-
return B ? /* @__PURE__ */
|
|
287
|
+
return B ? /* @__PURE__ */ S(t, {
|
|
288
288
|
title: "Installed Packages",
|
|
289
289
|
description: "Manage installed store packages",
|
|
290
|
-
children: /* @__PURE__ */
|
|
290
|
+
children: /* @__PURE__ */ S("div", {
|
|
291
291
|
className: "space-y-4",
|
|
292
292
|
children: [
|
|
293
293
|
1,
|
|
294
294
|
2,
|
|
295
295
|
3
|
|
296
|
-
].map((e) => /* @__PURE__ */
|
|
296
|
+
].map((e) => /* @__PURE__ */ S("div", { className: "h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
|
|
297
297
|
})
|
|
298
|
-
}) : /* @__PURE__ */
|
|
298
|
+
}) : /* @__PURE__ */ C(t, {
|
|
299
299
|
title: "Installed Packages",
|
|
300
300
|
description: "Manage packages installed from the BotManor Store",
|
|
301
|
-
actions: /* @__PURE__ */
|
|
301
|
+
actions: /* @__PURE__ */ C("div", {
|
|
302
302
|
className: "flex gap-2",
|
|
303
|
-
children: [/* @__PURE__ */
|
|
303
|
+
children: [/* @__PURE__ */ S(l, {
|
|
304
304
|
variant: "outline",
|
|
305
|
-
leftIcon: /* @__PURE__ */
|
|
305
|
+
leftIcon: /* @__PURE__ */ S(ue, { size: 16 }),
|
|
306
306
|
onClick: () => void Se(),
|
|
307
307
|
isLoading: ye,
|
|
308
308
|
children: "Check Updates"
|
|
309
|
-
}), /* @__PURE__ */
|
|
310
|
-
leftIcon: /* @__PURE__ */
|
|
309
|
+
}), /* @__PURE__ */ S(l, {
|
|
310
|
+
leftIcon: /* @__PURE__ */ S(E, { size: 16 }),
|
|
311
311
|
onClick: () => M("store"),
|
|
312
312
|
children: "Browse Store"
|
|
313
313
|
})]
|
|
314
314
|
}),
|
|
315
315
|
children: [
|
|
316
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ S(b, {
|
|
317
317
|
className: "mb-6",
|
|
318
|
-
icon: /* @__PURE__ */
|
|
318
|
+
icon: /* @__PURE__ */ S(E, { size: 18 }),
|
|
319
319
|
children: "These are the packages you have installed from the BotManor Store and how they are wired into your workspace. Manage each one’s installation mode (linked, so it auto-updates, or forked as an independent copy), pin specific versions per environment, and update or uninstall — this is your dependency manager for everything you pulled from the store."
|
|
320
320
|
}),
|
|
321
|
-
V ? /* @__PURE__ */
|
|
321
|
+
V ? /* @__PURE__ */ S(te, {
|
|
322
322
|
resource: "installed packages",
|
|
323
323
|
error: V,
|
|
324
324
|
onRetry: () => void H()
|
|
325
|
-
}) : /* @__PURE__ */
|
|
326
|
-
/* @__PURE__ */
|
|
325
|
+
}) : /* @__PURE__ */ C(x, { children: [
|
|
326
|
+
/* @__PURE__ */ C("div", {
|
|
327
327
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",
|
|
328
328
|
children: [
|
|
329
|
-
/* @__PURE__ */
|
|
329
|
+
/* @__PURE__ */ C(y, {
|
|
330
330
|
treatment: "glass",
|
|
331
331
|
glow: !0,
|
|
332
332
|
className: "p-6 text-center",
|
|
333
|
-
children: [/* @__PURE__ */
|
|
333
|
+
children: [/* @__PURE__ */ S("p", {
|
|
334
334
|
className: "text-3xl font-bold tabular-nums text-text-primary",
|
|
335
335
|
children: z.length
|
|
336
|
-
}), /* @__PURE__ */
|
|
336
|
+
}), /* @__PURE__ */ S("p", {
|
|
337
337
|
className: "text-sm text-text-secondary",
|
|
338
338
|
children: "Total Installed"
|
|
339
339
|
})]
|
|
340
340
|
}),
|
|
341
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ C(y, {
|
|
342
342
|
treatment: "metric",
|
|
343
343
|
className: "p-6 text-center",
|
|
344
|
-
children: [/* @__PURE__ */
|
|
344
|
+
children: [/* @__PURE__ */ S("p", {
|
|
345
345
|
className: "text-3xl font-bold tabular-nums text-text-primary",
|
|
346
346
|
children: z.filter((e) => e.mode === "LINKED").length
|
|
347
|
-
}), /* @__PURE__ */
|
|
347
|
+
}), /* @__PURE__ */ S("p", {
|
|
348
348
|
className: "text-sm text-text-secondary",
|
|
349
349
|
children: "Linked"
|
|
350
350
|
})]
|
|
351
351
|
}),
|
|
352
|
-
/* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ C(y, {
|
|
353
353
|
treatment: "metric",
|
|
354
354
|
className: "p-6 text-center",
|
|
355
|
-
children: [/* @__PURE__ */
|
|
355
|
+
children: [/* @__PURE__ */ S("p", {
|
|
356
356
|
className: "text-3xl font-bold tabular-nums text-text-primary",
|
|
357
357
|
children: z.filter((e) => e.mode === "FORKED").length
|
|
358
|
-
}), /* @__PURE__ */
|
|
358
|
+
}), /* @__PURE__ */ S("p", {
|
|
359
359
|
className: "text-sm text-text-secondary",
|
|
360
360
|
children: "Forked"
|
|
361
361
|
})]
|
|
362
362
|
}),
|
|
363
|
-
/* @__PURE__ */
|
|
363
|
+
/* @__PURE__ */ C(y, {
|
|
364
364
|
treatment: "metric",
|
|
365
365
|
className: "p-6 text-center",
|
|
366
|
-
children: [/* @__PURE__ */
|
|
366
|
+
children: [/* @__PURE__ */ S("p", {
|
|
367
367
|
className: "text-3xl font-bold tabular-nums text-text-primary",
|
|
368
368
|
children: xe
|
|
369
|
-
}), /* @__PURE__ */
|
|
369
|
+
}), /* @__PURE__ */ S("p", {
|
|
370
370
|
className: "text-sm text-text-secondary",
|
|
371
371
|
children: "Updates Available"
|
|
372
372
|
})]
|
|
373
373
|
})
|
|
374
374
|
]
|
|
375
375
|
}),
|
|
376
|
-
/* @__PURE__ */
|
|
376
|
+
/* @__PURE__ */ C("div", {
|
|
377
377
|
className: "flex flex-col md:flex-row gap-4 mb-6",
|
|
378
|
-
children: [/* @__PURE__ */
|
|
378
|
+
children: [/* @__PURE__ */ C("div", {
|
|
379
379
|
className: "relative flex-1",
|
|
380
|
-
children: [/* @__PURE__ */
|
|
380
|
+
children: [/* @__PURE__ */ S(D, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ S(u, {
|
|
381
381
|
placeholder: "Search packages...",
|
|
382
382
|
value: W,
|
|
383
383
|
onChange: (e) => ve(e.target.value),
|
|
384
384
|
className: "pl-9"
|
|
385
385
|
})]
|
|
386
|
-
}), /* @__PURE__ */
|
|
386
|
+
}), /* @__PURE__ */ S("div", {
|
|
387
387
|
className: "flex gap-2",
|
|
388
|
-
children: /* @__PURE__ */
|
|
388
|
+
children: /* @__PURE__ */ C("select", {
|
|
389
389
|
"aria-label": "Filter by package type",
|
|
390
390
|
className: "flex h-10 rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
391
391
|
value: K,
|
|
392
392
|
onChange: (e) => be(e.target.value),
|
|
393
393
|
children: [
|
|
394
|
-
/* @__PURE__ */
|
|
394
|
+
/* @__PURE__ */ S("option", {
|
|
395
395
|
value: "all",
|
|
396
396
|
children: "All Types"
|
|
397
397
|
}),
|
|
398
|
-
/* @__PURE__ */
|
|
399
|
-
value:
|
|
398
|
+
/* @__PURE__ */ S("option", {
|
|
399
|
+
value: g.Agent,
|
|
400
400
|
children: "Agents"
|
|
401
401
|
}),
|
|
402
|
-
/* @__PURE__ */
|
|
403
|
-
value:
|
|
402
|
+
/* @__PURE__ */ S("option", {
|
|
403
|
+
value: g.Skill,
|
|
404
404
|
children: "Skills"
|
|
405
405
|
}),
|
|
406
|
-
/* @__PURE__ */
|
|
407
|
-
value:
|
|
406
|
+
/* @__PURE__ */ S("option", {
|
|
407
|
+
value: g.McpPack,
|
|
408
408
|
children: "MCP Packs"
|
|
409
409
|
}),
|
|
410
|
-
/* @__PURE__ */
|
|
411
|
-
value:
|
|
410
|
+
/* @__PURE__ */ S("option", {
|
|
411
|
+
value: g.PromptTemplate,
|
|
412
412
|
children: "Templates"
|
|
413
413
|
}),
|
|
414
|
-
/* @__PURE__ */
|
|
415
|
-
value:
|
|
414
|
+
/* @__PURE__ */ S("option", {
|
|
415
|
+
value: g.RetrievalProfile,
|
|
416
416
|
children: "Retrieval Profiles"
|
|
417
417
|
})
|
|
418
418
|
]
|
|
419
419
|
})
|
|
420
420
|
})]
|
|
421
421
|
}),
|
|
422
|
-
Y.length > 0 ? /* @__PURE__ */
|
|
422
|
+
Y.length > 0 ? /* @__PURE__ */ S("div", {
|
|
423
423
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
424
|
-
children: Y.map((e) => /* @__PURE__ */
|
|
425
|
-
}) : /* @__PURE__ */
|
|
424
|
+
children: Y.map((e) => /* @__PURE__ */ S(we, { pkg: e }, e.id))
|
|
425
|
+
}) : /* @__PURE__ */ S(f, {
|
|
426
426
|
illustration: "empty-generic",
|
|
427
427
|
title: W || K !== "all" ? "No matching packages" : "No packages installed",
|
|
428
428
|
description: W || K !== "all" ? "Try adjusting your search or type filter." : "Browse the BotManor Store to find agents, skills, and tools to install.",
|
|
429
|
-
action: /* @__PURE__ */
|
|
429
|
+
action: /* @__PURE__ */ S(l, {
|
|
430
430
|
onClick: () => M("store"),
|
|
431
|
-
leftIcon: /* @__PURE__ */
|
|
431
|
+
leftIcon: /* @__PURE__ */ S(T, { className: "h-4 w-4" }),
|
|
432
432
|
children: "Browse Store"
|
|
433
433
|
})
|
|
434
434
|
}),
|
|
435
|
-
/* @__PURE__ */
|
|
435
|
+
/* @__PURE__ */ S(ee, {
|
|
436
436
|
hasMore: de,
|
|
437
437
|
loadingMore: U,
|
|
438
438
|
onLoadMore: () => void fe(),
|
|
439
439
|
loadedCount: z.length
|
|
440
440
|
})
|
|
441
441
|
] }),
|
|
442
|
-
X && /* @__PURE__ */
|
|
442
|
+
X && /* @__PURE__ */ S(({ pkg: e, onClose: t }) => {
|
|
443
443
|
let u = I(e), d = P(e), f = e.bindings ?? {};
|
|
444
|
-
return /* @__PURE__ */
|
|
444
|
+
return /* @__PURE__ */ S("div", {
|
|
445
445
|
className: "fixed inset-0 bg-bg-overlay flex items-center justify-center z-50",
|
|
446
|
-
children: /* @__PURE__ */
|
|
446
|
+
children: /* @__PURE__ */ C("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__ */ S("div", {
|
|
450
450
|
className: "p-6 border-b border-border-subtle",
|
|
451
|
-
children: /* @__PURE__ */
|
|
451
|
+
children: /* @__PURE__ */ C("div", {
|
|
452
452
|
className: "flex items-start justify-between",
|
|
453
|
-
children: [/* @__PURE__ */
|
|
453
|
+
children: [/* @__PURE__ */ C("div", {
|
|
454
454
|
className: "flex items-start gap-3",
|
|
455
|
-
children: [/* @__PURE__ */
|
|
455
|
+
children: [/* @__PURE__ */ S("div", {
|
|
456
456
|
className: "p-3 rounded-lg bg-bg-sunken text-3xl",
|
|
457
457
|
children: u.icon
|
|
458
|
-
}), /* @__PURE__ */
|
|
458
|
+
}), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h2", {
|
|
459
459
|
className: "text-xl font-bold",
|
|
460
|
-
children:
|
|
461
|
-
}), /* @__PURE__ */
|
|
460
|
+
children: m(e.package) || d
|
|
461
|
+
}), /* @__PURE__ */ S("p", {
|
|
462
462
|
className: "text-sm text-text-secondary font-mono",
|
|
463
463
|
children: d
|
|
464
464
|
})] })]
|
|
465
|
-
}), /* @__PURE__ */
|
|
465
|
+
}), /* @__PURE__ */ S(l, {
|
|
466
466
|
variant: "ghost",
|
|
467
467
|
size: "sm",
|
|
468
468
|
"aria-label": "Close",
|
|
@@ -471,75 +471,75 @@ var z = () => {
|
|
|
471
471
|
})]
|
|
472
472
|
})
|
|
473
473
|
}),
|
|
474
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ C("div", {
|
|
475
475
|
className: "p-6 space-y-6",
|
|
476
476
|
children: [
|
|
477
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ C(i, { children: [/* @__PURE__ */ S(s, { children: /* @__PURE__ */ S(c, {
|
|
478
478
|
className: "text-base",
|
|
479
479
|
children: "Version Information"
|
|
480
|
-
}) }), /* @__PURE__ */
|
|
480
|
+
}) }), /* @__PURE__ */ C(a, {
|
|
481
481
|
className: "space-y-4",
|
|
482
|
-
children: [/* @__PURE__ */
|
|
482
|
+
children: [/* @__PURE__ */ C("div", {
|
|
483
483
|
className: "grid grid-cols-2 gap-4",
|
|
484
|
-
children: [/* @__PURE__ */
|
|
484
|
+
children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
485
485
|
className: "text-sm text-text-secondary",
|
|
486
486
|
children: "Installed Version"
|
|
487
|
-
}), /* @__PURE__ */
|
|
487
|
+
}), /* @__PURE__ */ C("p", {
|
|
488
488
|
className: "font-mono font-medium",
|
|
489
489
|
children: ["v", e.installedVersion]
|
|
490
|
-
})] }), e.package && /* @__PURE__ */
|
|
490
|
+
})] }), e.package && /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
491
491
|
className: "text-sm text-text-secondary",
|
|
492
492
|
children: "Latest Version"
|
|
493
|
-
}), /* @__PURE__ */
|
|
493
|
+
}), /* @__PURE__ */ C("p", {
|
|
494
494
|
className: "font-mono font-medium",
|
|
495
495
|
children: ["v", e.package.version]
|
|
496
496
|
})] })]
|
|
497
|
-
}), /* @__PURE__ */
|
|
497
|
+
}), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
498
498
|
className: "text-sm text-text-secondary mb-2",
|
|
499
499
|
children: "Installation Mode"
|
|
500
|
-
}), /* @__PURE__ */
|
|
500
|
+
}), /* @__PURE__ */ C("div", {
|
|
501
501
|
className: "flex items-center gap-2",
|
|
502
502
|
children: [
|
|
503
503
|
$(e.mode),
|
|
504
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ S("span", {
|
|
505
505
|
className: "font-medium",
|
|
506
506
|
children: e.mode
|
|
507
507
|
}),
|
|
508
|
-
/* @__PURE__ */
|
|
508
|
+
/* @__PURE__ */ S("span", {
|
|
509
509
|
className: "text-sm text-text-secondary",
|
|
510
510
|
children: e.mode === "LINKED" ? "- Receives updates automatically" : "- Independent copy, no auto-updates"
|
|
511
511
|
})
|
|
512
512
|
]
|
|
513
513
|
})] })]
|
|
514
514
|
})] }),
|
|
515
|
-
/* @__PURE__ */
|
|
515
|
+
/* @__PURE__ */ C(i, { children: [/* @__PURE__ */ C(s, { children: [/* @__PURE__ */ C(c, {
|
|
516
516
|
className: "text-base flex items-center gap-2",
|
|
517
|
-
children: [/* @__PURE__ */
|
|
518
|
-
}), /* @__PURE__ */
|
|
517
|
+
children: [/* @__PURE__ */ S(ce, { className: "h-4 w-4" }), "Environment Version Pins"]
|
|
518
|
+
}), /* @__PURE__ */ S(o, { children: "Pin specific versions for each environment" })] }), /* @__PURE__ */ S(a, { children: /* @__PURE__ */ S("div", {
|
|
519
519
|
className: "space-y-3",
|
|
520
520
|
children: j.map((t) => {
|
|
521
521
|
let i = R(e, t);
|
|
522
|
-
return /* @__PURE__ */
|
|
522
|
+
return /* @__PURE__ */ C("div", {
|
|
523
523
|
className: "flex items-center justify-between p-3 bg-bg-sunken rounded-lg",
|
|
524
|
-
children: [/* @__PURE__ */
|
|
524
|
+
children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
525
525
|
className: "font-medium",
|
|
526
526
|
children: t
|
|
527
|
-
}), /* @__PURE__ */
|
|
527
|
+
}), /* @__PURE__ */ S("p", {
|
|
528
528
|
className: "text-sm text-text-secondary font-mono",
|
|
529
529
|
children: i ? `v${i}` : "Using latest"
|
|
530
|
-
})] }), /* @__PURE__ */
|
|
530
|
+
})] }), /* @__PURE__ */ S("div", {
|
|
531
531
|
className: "flex gap-2",
|
|
532
|
-
children: i ? /* @__PURE__ */
|
|
532
|
+
children: i ? /* @__PURE__ */ S(r, {
|
|
533
533
|
permission: n.STORE_UPDATE,
|
|
534
|
-
children: /* @__PURE__ */
|
|
534
|
+
children: /* @__PURE__ */ S(l, {
|
|
535
535
|
variant: "outline",
|
|
536
536
|
size: "sm",
|
|
537
537
|
onClick: () => void Q(e, t, ""),
|
|
538
538
|
children: "Unpin"
|
|
539
539
|
})
|
|
540
|
-
}) : /* @__PURE__ */
|
|
540
|
+
}) : /* @__PURE__ */ S(r, {
|
|
541
541
|
permission: n.STORE_UPDATE,
|
|
542
|
-
children: /* @__PURE__ */
|
|
542
|
+
children: /* @__PURE__ */ S(l, {
|
|
543
543
|
variant: "outline",
|
|
544
544
|
size: "sm",
|
|
545
545
|
onClick: () => void Q(e, t, e.installedVersion),
|
|
@@ -550,53 +550,53 @@ var z = () => {
|
|
|
550
550
|
}, t);
|
|
551
551
|
})
|
|
552
552
|
}) })] }),
|
|
553
|
-
Object.keys(f).length > 0 && /* @__PURE__ */
|
|
553
|
+
Object.keys(f).length > 0 && /* @__PURE__ */ C(i, { children: [/* @__PURE__ */ S(s, { children: /* @__PURE__ */ C(c, {
|
|
554
554
|
className: "text-base flex items-center gap-2",
|
|
555
|
-
children: [/* @__PURE__ */
|
|
556
|
-
}) }), /* @__PURE__ */
|
|
555
|
+
children: [/* @__PURE__ */ S(O, { className: "h-4 w-4" }), "Configuration Bindings"]
|
|
556
|
+
}) }), /* @__PURE__ */ S(a, { children: /* @__PURE__ */ S("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__ */ C("div", {
|
|
559
559
|
className: "flex justify-between p-2 bg-bg-sunken rounded",
|
|
560
|
-
children: [/* @__PURE__ */
|
|
560
|
+
children: [/* @__PURE__ */ S("span", {
|
|
561
561
|
className: "font-mono text-sm",
|
|
562
562
|
children: e
|
|
563
|
-
}), /* @__PURE__ */
|
|
563
|
+
}), /* @__PURE__ */ S("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__ */ C(i, { children: [/* @__PURE__ */ S(s, { children: /* @__PURE__ */ S(c, {
|
|
570
570
|
className: "text-base",
|
|
571
571
|
children: "Metadata"
|
|
572
|
-
}) }), /* @__PURE__ */
|
|
572
|
+
}) }), /* @__PURE__ */ S(a, { children: /* @__PURE__ */ C("div", {
|
|
573
573
|
className: "grid grid-cols-2 gap-4 text-sm",
|
|
574
574
|
children: [
|
|
575
|
-
/* @__PURE__ */
|
|
575
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
576
576
|
className: "text-text-secondary",
|
|
577
577
|
children: "Installed At"
|
|
578
|
-
}), /* @__PURE__ */
|
|
578
|
+
}), /* @__PURE__ */ S("p", {
|
|
579
579
|
className: "font-medium",
|
|
580
|
-
children:
|
|
580
|
+
children: p(e.installedAt)
|
|
581
581
|
})] }),
|
|
582
|
-
/* @__PURE__ */
|
|
582
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
583
583
|
className: "text-text-secondary",
|
|
584
584
|
children: "Installed By"
|
|
585
|
-
}), /* @__PURE__ */
|
|
585
|
+
}), /* @__PURE__ */ S("p", {
|
|
586
586
|
className: "font-medium",
|
|
587
587
|
children: e.installedBy
|
|
588
588
|
})] }),
|
|
589
|
-
/* @__PURE__ */
|
|
589
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
590
590
|
className: "text-text-secondary",
|
|
591
591
|
children: "Package ID"
|
|
592
|
-
}), /* @__PURE__ */
|
|
592
|
+
}), /* @__PURE__ */ S("p", {
|
|
593
593
|
className: "font-mono text-xs",
|
|
594
594
|
children: e.packageId
|
|
595
595
|
})] }),
|
|
596
|
-
/* @__PURE__ */
|
|
596
|
+
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
597
597
|
className: "text-text-secondary",
|
|
598
598
|
children: "Installation ID"
|
|
599
|
-
}), /* @__PURE__ */
|
|
599
|
+
}), /* @__PURE__ */ S("p", {
|
|
600
600
|
className: "font-mono text-xs",
|
|
601
601
|
children: e.id
|
|
602
602
|
})] })
|
|
@@ -604,24 +604,24 @@ var z = () => {
|
|
|
604
604
|
}) })] })
|
|
605
605
|
]
|
|
606
606
|
}),
|
|
607
|
-
/* @__PURE__ */
|
|
607
|
+
/* @__PURE__ */ C("div", {
|
|
608
608
|
className: "p-6 border-t border-border-subtle flex justify-between",
|
|
609
|
-
children: [/* @__PURE__ */
|
|
609
|
+
children: [/* @__PURE__ */ S(r, {
|
|
610
610
|
permission: n.STORE_DELETE,
|
|
611
|
-
children: /* @__PURE__ */
|
|
611
|
+
children: /* @__PURE__ */ C(l, {
|
|
612
612
|
variant: "destructive",
|
|
613
613
|
onClick: () => void Z(e),
|
|
614
|
-
children: [/* @__PURE__ */
|
|
614
|
+
children: [/* @__PURE__ */ S(k, { className: "h-4 w-4 mr-2" }), "Uninstall"]
|
|
615
615
|
})
|
|
616
|
-
}), /* @__PURE__ */
|
|
616
|
+
}), /* @__PURE__ */ C("div", {
|
|
617
617
|
className: "flex gap-2",
|
|
618
|
-
children: [/* @__PURE__ */
|
|
618
|
+
children: [/* @__PURE__ */ S(ae, {
|
|
619
619
|
to: N(`store/package/${d}`),
|
|
620
|
-
children: /* @__PURE__ */
|
|
620
|
+
children: /* @__PURE__ */ S(l, {
|
|
621
621
|
variant: "outline",
|
|
622
622
|
children: "View in Store"
|
|
623
623
|
})
|
|
624
|
-
}), /* @__PURE__ */
|
|
624
|
+
}), /* @__PURE__ */ S(l, {
|
|
625
625
|
variant: "outline",
|
|
626
626
|
onClick: t,
|
|
627
627
|
children: "Close"
|