@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.
Files changed (37) hide show
  1. package/dist/botlit/components/BucketDialogs.d.ts +40 -0
  2. package/dist/botlit/components/BucketDialogs.js +258 -0
  3. package/dist/botlit/components/BucketDialogs.js.map +1 -0
  4. package/dist/botlit/components/StoreDialogs.d.ts +33 -0
  5. package/dist/botlit/components/StoreDialogs.js +139 -0
  6. package/dist/botlit/components/StoreDialogs.js.map +1 -0
  7. package/dist/botlit/hooks/index.d.ts +3 -3
  8. package/dist/botlit/hooks/index.js +6 -6
  9. package/dist/botlit/hooks/useBuckets.d.ts +48 -15
  10. package/dist/botlit/hooks/useBuckets.js +128 -85
  11. package/dist/botlit/hooks/useBuckets.js.map +1 -1
  12. package/dist/botlit/hooks/useExecutions.js +36 -42
  13. package/dist/botlit/hooks/useExecutions.js.map +1 -1
  14. package/dist/botlit/hooks/useRerunExecution.d.ts +5 -0
  15. package/dist/botlit/hooks/useRerunExecution.js +29 -0
  16. package/dist/botlit/hooks/useRerunExecution.js.map +1 -0
  17. package/dist/botlit/hooks/useStore.d.ts +4 -0
  18. package/dist/botlit/hooks/useStore.js +87 -60
  19. package/dist/botlit/hooks/useStore.js.map +1 -1
  20. package/dist/botlit/pages/BucketDetailPage.js +283 -209
  21. package/dist/botlit/pages/BucketDetailPage.js.map +1 -1
  22. package/dist/botlit/pages/BucketsPage.js +413 -545
  23. package/dist/botlit/pages/BucketsPage.js.map +1 -1
  24. package/dist/botlit/pages/ExecutionDetailPage.js +66 -72
  25. package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
  26. package/dist/botlit/pages/InstalledPackagesPage.js +275 -275
  27. package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
  28. package/dist/botlit/pages/StorePackageDetailPage.js +165 -257
  29. package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
  30. package/dist/botlit/pages/StorePage.js +179 -184
  31. package/dist/botlit/pages/StorePage.js.map +1 -1
  32. package/dist/generated/wspace-operations.d.ts +216 -0
  33. package/dist/generated/wspace-operations.js +163 -96
  34. package/dist/generated/wspace-operations.js.map +1 -1
  35. package/dist/generated/wspace-types.d.ts +49 -0
  36. package/dist/generated/wspace-types.js.map +1 -1
  37. 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 { BOTMANOR_PERMISSIONS as n } from "../permissions/botmanorPermissions.js";
4
- import { BotmanorPermissionGate as r } from "../permissions/useBotmanorPermissions.js";
5
- import { Card as i, CardContent as a, CardDescription as o, CardHeader as s, CardTitle as c } from "../components/Card.js";
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 { 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
- import { toast as A } from "sonner";
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 j = [
25
+ var D = [
25
26
  "DEV",
26
27
  "STAGING",
27
28
  "PROD"
28
- ], M = {
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
- }, N = {
94
+ }, k = {
94
95
  label: "Package",
95
96
  icon: "📦"
96
97
  };
97
- function P(e) {
98
+ function A(e) {
98
99
  return e.package?.slug ?? e.packageId;
99
100
  }
100
- function F(e) {
101
+ function j(e) {
101
102
  return e.package?.kind;
102
103
  }
103
- function I(e) {
104
- let t = F(e);
105
- return t && M[t] || N;
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 L(e) {
111
+ function P(e) {
108
112
  let t = e.package?.version;
109
113
  return !!(t && t !== e.installedVersion);
110
114
  }
111
- function R(e, t) {
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 z = () => {
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
- let e = W.trim().toLowerCase();
118
- return z.filter((t) => {
119
- let n = !e || P(t).toLowerCase().includes(e) || m(t.package).toLowerCase().includes(e), r = K === "all" || F(t) === K;
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
- z,
124
- W,
125
- K
126
- ]), X = _(() => z.find((e) => e.id === q) ?? null, [z, q]), xe = _(() => z.filter(L).length, [z]), Se = async () => {
127
- G(!0);
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 H();
133
+ await R();
130
134
  } finally {
131
- G(!1);
135
+ V(!1);
132
136
  }
133
- }, Z = async (e) => {
134
- if (confirm("Are you sure you want to uninstall this package?")) try {
135
- await pe(e.id), A.success(`Uninstalled "${m(e.package) || P(e)}"`), J(null), H();
136
- } catch (e) {
137
- A.error(e instanceof Error ? e.message : "Failed to uninstall package");
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
- }, Ce = async (e) => {
148
+ }, Me = async (e) => {
140
149
  let t = e.package?.version;
141
150
  if (t) try {
142
- await he({
151
+ await Ce({
143
152
  installedId: e.id,
144
153
  input: { installedVersion: t }
145
- }), A.success(`Updated to v${t}`), H();
154
+ }), E.success(q("botlit.store.installed.updated", "Updated to v{{version}}", { version: t })), R();
146
155
  } catch (e) {
147
- A.error(e instanceof Error ? e.message : "Failed to update package");
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 _e({
160
+ await Te({
152
161
  installedId: e.id,
153
162
  environment: t,
154
163
  version: n,
155
164
  pinnedByEnv: e.pinnedByEnv
156
- }), A.success(n ? `Pinned ${t} to v${n}` : `Unpinned ${t}`), H();
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
- A.error(e instanceof Error ? e.message : "Failed to change version pin");
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__ */ 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
- let t = I(e), o = P(e), s = L(e), c = j.filter((t) => R(e, t));
162
- return /* @__PURE__ */ S(i, {
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: () => J(e.id),
165
- children: /* @__PURE__ */ C(a, {
176
+ onClick: () => W(e.id),
177
+ children: /* @__PURE__ */ b(r, {
166
178
  className: "pt-6",
167
179
  children: [
168
- /* @__PURE__ */ C("div", {
180
+ /* @__PURE__ */ b("div", {
169
181
  className: "flex items-start justify-between",
170
- children: [/* @__PURE__ */ C("div", {
182
+ children: [/* @__PURE__ */ b("div", {
171
183
  className: "flex items-start gap-3",
172
- children: [/* @__PURE__ */ S("div", {
184
+ children: [/* @__PURE__ */ y("div", {
173
185
  className: "p-2 rounded-lg bg-bg-sunken text-2xl",
174
186
  children: t.icon
175
- }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ C("div", {
187
+ }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("div", {
176
188
  className: "flex items-center gap-2",
177
- children: [/* @__PURE__ */ S("h3", {
189
+ children: [/* @__PURE__ */ y("h3", {
178
190
  className: "font-semibold",
179
- children: m(e.package) || o
180
- }), s && /* @__PURE__ */ C(d, {
191
+ children: m(e.package) || i
192
+ }), a && /* @__PURE__ */ b(d, {
181
193
  variant: "warning",
182
194
  className: "gap-1",
183
- children: [/* @__PURE__ */ S(w, { className: "h-3 w-3" }), "Update"]
195
+ children: [/* @__PURE__ */ y(x, { className: "h-3 w-3" }), q("botlit.store.installed.updateBadge", "Update")]
184
196
  })]
185
- }), /* @__PURE__ */ S("p", {
197
+ }), /* @__PURE__ */ y("p", {
186
198
  className: "text-sm text-text-secondary font-mono",
187
- children: o
199
+ children: i
188
200
  })] })]
189
- }), /* @__PURE__ */ C("div", {
201
+ }), /* @__PURE__ */ b("div", {
190
202
  className: "flex items-center gap-2",
191
- children: [$(e.mode), /* @__PURE__ */ S(d, {
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__ */ C("div", {
209
+ /* @__PURE__ */ b("div", {
198
210
  className: "mt-4 grid grid-cols-3 gap-4 text-sm",
199
211
  children: [
200
- /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
212
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
201
213
  className: "text-text-secondary",
202
- children: "Installed Version"
203
- }), /* @__PURE__ */ C("p", {
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__ */ C("div", { children: [/* @__PURE__ */ S("p", {
219
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
208
220
  className: "text-text-secondary",
209
- children: "Mode"
210
- }), /* @__PURE__ */ C("p", {
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__ */ C("div", { children: [/* @__PURE__ */ S("p", {
226
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
215
227
  className: "text-text-secondary",
216
- children: "Installed"
217
- }), /* @__PURE__ */ S("p", {
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
- c.length > 0 && /* @__PURE__ */ C("div", {
235
+ o.length > 0 && /* @__PURE__ */ b("div", {
224
236
  className: "mt-4 pt-4 border-t border-border-subtle",
225
- children: [/* @__PURE__ */ S("p", {
237
+ children: [/* @__PURE__ */ y("p", {
226
238
  className: "text-xs text-text-secondary mb-2",
227
- children: "Pinned Versions"
228
- }), /* @__PURE__ */ S("div", {
239
+ children: q("botlit.store.installed.pinnedVersions", "Pinned versions")
240
+ }), /* @__PURE__ */ y("div", {
229
241
  className: "flex gap-2",
230
- children: j.map((t) => {
231
- let n = R(e, t);
232
- return /* @__PURE__ */ C(d, {
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
- n ?? "latest"
249
+ ":",
250
+ " ",
251
+ n ?? q("botlit.store.installed.notPinnedShort", "not pinned")
239
252
  ]
240
253
  }, t);
241
254
  })
242
255
  })]
243
256
  }),
244
- /* @__PURE__ */ C("div", {
257
+ /* @__PURE__ */ b("div", {
245
258
  className: "mt-4 flex justify-end gap-2",
246
259
  children: [
247
- /* @__PURE__ */ C(l, {
260
+ /* @__PURE__ */ b(l, {
248
261
  variant: "ghost",
249
262
  size: "sm",
250
263
  onClick: (e) => {
251
- e.stopPropagation(), M(`store/package/${o}`);
264
+ e.stopPropagation(), O(`store/package/${i}`);
252
265
  },
253
- children: [/* @__PURE__ */ S(se, { className: "h-4 w-4 mr-1" }), "View in Store"]
266
+ children: [/* @__PURE__ */ y(me, { className: "h-4 w-4 mr-1" }), q("botlit.store.installed.viewInStore", "View in Store")]
254
267
  }),
255
- s && /* @__PURE__ */ S(r, {
256
- permission: n.STORE_UPDATE,
257
- children: /* @__PURE__ */ C(l, {
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(), Ce(e);
274
+ t.stopPropagation(), Me(e);
262
275
  },
263
- isLoading: ge,
264
- children: [/* @__PURE__ */ S(w, { className: "h-4 w-4 mr-1" }), "Update"]
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__ */ S(r, {
268
- permission: n.STORE_DELETE,
269
- children: /* @__PURE__ */ S(l, {
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
- isLoading: me,
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 B ? /* @__PURE__ */ S(t, {
288
- title: "Installed Packages",
289
- description: "Manage installed store packages",
290
- children: /* @__PURE__ */ S("div", {
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__ */ S("div", { className: "h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
308
+ ].map((e) => /* @__PURE__ */ y("div", { className: "h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
297
309
  })
298
- }) : /* @__PURE__ */ C(t, {
299
- title: "Installed Packages",
300
- description: "Manage packages installed from the BotManor Store",
301
- actions: /* @__PURE__ */ C("div", {
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__ */ S(l, {
315
+ children: [/* @__PURE__ */ y(l, {
304
316
  variant: "outline",
305
- leftIcon: /* @__PURE__ */ S(ue, { size: 16 }),
306
- onClick: () => void Se(),
307
- isLoading: ye,
308
- children: "Check Updates"
309
- }), /* @__PURE__ */ S(l, {
310
- leftIcon: /* @__PURE__ */ S(E, { size: 16 }),
311
- onClick: () => M("store"),
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__ */ S(b, {
328
+ /* @__PURE__ */ y(v, {
317
329
  className: "mb-6",
318
- icon: /* @__PURE__ */ S(E, { size: 18 }),
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."
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
- V ? /* @__PURE__ */ S(te, {
333
+ L ? /* @__PURE__ */ y(te, {
322
334
  resource: "installed packages",
323
- error: V,
324
- onRetry: () => void H()
325
- }) : /* @__PURE__ */ C(x, { children: [
326
- /* @__PURE__ */ C("div", {
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__ */ C(y, {
341
+ /* @__PURE__ */ b(_, {
330
342
  treatment: "glass",
331
343
  glow: !0,
332
344
  className: "p-6 text-center",
333
- children: [/* @__PURE__ */ S("p", {
345
+ children: [/* @__PURE__ */ y("p", {
334
346
  className: "text-3xl font-bold tabular-nums text-text-primary",
335
- children: z.length
336
- }), /* @__PURE__ */ S("p", {
347
+ children: I.length
348
+ }), /* @__PURE__ */ y("p", {
337
349
  className: "text-sm text-text-secondary",
338
- children: "Total Installed"
350
+ children: q("botlit.store.installed.totalInstalled", "Total installed")
339
351
  })]
340
352
  }),
341
- /* @__PURE__ */ C(y, {
353
+ /* @__PURE__ */ b(_, {
342
354
  treatment: "metric",
343
355
  className: "p-6 text-center",
344
- children: [/* @__PURE__ */ S("p", {
356
+ children: [/* @__PURE__ */ y("p", {
345
357
  className: "text-3xl font-bold tabular-nums text-text-primary",
346
- children: z.filter((e) => e.mode === "LINKED").length
347
- }), /* @__PURE__ */ S("p", {
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__ */ C(y, {
364
+ /* @__PURE__ */ b(_, {
353
365
  treatment: "metric",
354
366
  className: "p-6 text-center",
355
- children: [/* @__PURE__ */ S("p", {
367
+ children: [/* @__PURE__ */ y("p", {
356
368
  className: "text-3xl font-bold tabular-nums text-text-primary",
357
- children: z.filter((e) => e.mode === "FORKED").length
358
- }), /* @__PURE__ */ S("p", {
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__ */ C(y, {
375
+ /* @__PURE__ */ b(_, {
364
376
  treatment: "metric",
365
377
  className: "p-6 text-center",
366
- children: [/* @__PURE__ */ S("p", {
378
+ children: [/* @__PURE__ */ y("p", {
367
379
  className: "text-3xl font-bold tabular-nums text-text-primary",
368
- children: xe
369
- }), /* @__PURE__ */ S("p", {
380
+ children: ke
381
+ }), /* @__PURE__ */ y("p", {
370
382
  className: "text-sm text-text-secondary",
371
- children: "Updates Available"
383
+ children: q("botlit.store.installed.updatesAvailable", "Updates available")
372
384
  })]
373
385
  })
374
386
  ]
375
387
  }),
376
- /* @__PURE__ */ C("div", {
388
+ /* @__PURE__ */ b("div", {
377
389
  className: "flex flex-col md:flex-row gap-4 mb-6",
378
- children: [/* @__PURE__ */ C("div", {
390
+ children: [/* @__PURE__ */ b("div", {
379
391
  className: "relative flex-1",
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
- placeholder: "Search packages...",
382
- value: W,
383
- onChange: (e) => ve(e.target.value),
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__ */ S("div", {
398
+ }), /* @__PURE__ */ y("div", {
387
399
  className: "flex gap-2",
388
- children: /* @__PURE__ */ C("select", {
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: K,
392
- onChange: (e) => be(e.target.value),
393
- children: [
394
- /* @__PURE__ */ S("option", {
395
- value: "all",
396
- children: "All Types"
397
- }),
398
- /* @__PURE__ */ S("option", {
399
- value: g.Agent,
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__ */ S("div", {
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__ */ S(we, { pkg: e }, e.id))
425
- }) : /* @__PURE__ */ S(f, {
417
+ children: Y.map((e) => /* @__PURE__ */ y(Ne, { pkg: e }, e.id))
418
+ }) : /* @__PURE__ */ y(f, {
426
419
  illustration: "empty-generic",
427
- title: W || K !== "all" ? "No matching packages" : "No packages installed",
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__ */ S(l, {
430
- onClick: () => M("store"),
431
- leftIcon: /* @__PURE__ */ S(T, { className: "h-4 w-4" }),
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__ */ S(ee, {
436
- hasMore: de,
437
- loadingMore: U,
438
- onLoadMore: () => void fe(),
439
- loadedCount: z.length
428
+ /* @__PURE__ */ y(ee, {
429
+ hasMore: ye,
430
+ loadingMore: be,
431
+ onLoadMore: () => void z(),
432
+ loadedCount: I.length
440
433
  })
441
434
  ] }),
442
- X && /* @__PURE__ */ S(({ pkg: e, onClose: t }) => {
443
- let u = I(e), d = P(e), f = e.bindings ?? {};
444
- return /* @__PURE__ */ S("div", {
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__ */ C("div", {
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__ */ S("div", {
449
+ /* @__PURE__ */ y("div", {
450
450
  className: "p-6 border-b border-border-subtle",
451
- children: /* @__PURE__ */ C("div", {
451
+ children: /* @__PURE__ */ b("div", {
452
452
  className: "flex items-start justify-between",
453
- children: [/* @__PURE__ */ C("div", {
453
+ children: [/* @__PURE__ */ b("div", {
454
454
  className: "flex items-start gap-3",
455
- children: [/* @__PURE__ */ S("div", {
455
+ children: [/* @__PURE__ */ y("div", {
456
456
  className: "p-3 rounded-lg bg-bg-sunken text-3xl",
457
457
  children: u.icon
458
- }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h2", {
458
+ }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("h2", {
459
459
  className: "text-xl font-bold",
460
460
  children: m(e.package) || d
461
- }), /* @__PURE__ */ S("p", {
461
+ }), /* @__PURE__ */ y("p", {
462
462
  className: "text-sm text-text-secondary font-mono",
463
463
  children: d
464
464
  })] })]
465
- }), /* @__PURE__ */ S(l, {
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__ */ C("div", {
474
+ /* @__PURE__ */ b("div", {
475
475
  className: "p-6 space-y-6",
476
476
  children: [
477
- /* @__PURE__ */ C(i, { children: [/* @__PURE__ */ S(s, { children: /* @__PURE__ */ S(c, {
477
+ /* @__PURE__ */ b(n, { children: [/* @__PURE__ */ y(a, { children: /* @__PURE__ */ y(o, {
478
478
  className: "text-base",
479
- children: "Version Information"
480
- }) }), /* @__PURE__ */ C(a, {
479
+ children: q("botlit.store.installed.versionInfo", "Version information")
480
+ }) }), /* @__PURE__ */ b(r, {
481
481
  className: "space-y-4",
482
- children: [/* @__PURE__ */ C("div", {
482
+ children: [/* @__PURE__ */ b("div", {
483
483
  className: "grid grid-cols-2 gap-4",
484
- children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
484
+ children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
485
485
  className: "text-sm text-text-secondary",
486
- children: "Installed Version"
487
- }), /* @__PURE__ */ C("p", {
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__ */ C("div", { children: [/* @__PURE__ */ S("p", {
490
+ })] }), e.package && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
491
491
  className: "text-sm text-text-secondary",
492
- children: "Latest Version"
493
- }), /* @__PURE__ */ C("p", {
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__ */ C("div", { children: [/* @__PURE__ */ S("p", {
497
+ }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
498
498
  className: "text-sm text-text-secondary mb-2",
499
- children: "Installation Mode"
500
- }), /* @__PURE__ */ C("div", {
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__ */ S("span", {
504
+ /* @__PURE__ */ y("span", {
505
505
  className: "font-medium",
506
506
  children: e.mode
507
507
  }),
508
- /* @__PURE__ */ S("span", {
508
+ /* @__PURE__ */ y("span", {
509
509
  className: "text-sm text-text-secondary",
510
- children: e.mode === "LINKED" ? "- Receives updates automatically" : "- Independent copy, no auto-updates"
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__ */ C(i, { children: [/* @__PURE__ */ C(s, { children: [/* @__PURE__ */ C(c, {
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(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", {
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: j.map((t) => {
521
- let i = R(e, t);
522
- return /* @__PURE__ */ C("div", {
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__ */ C("div", { children: [/* @__PURE__ */ S("p", {
524
+ children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
525
525
  className: "font-medium",
526
526
  children: t
527
- }), /* @__PURE__ */ S("p", {
527
+ }), /* @__PURE__ */ y("p", {
528
528
  className: "text-sm text-text-secondary font-mono",
529
- children: i ? `v${i}` : "Using latest"
530
- })] }), /* @__PURE__ */ S("div", {
529
+ children: n ? `v${n}` : q("botlit.store.installed.notPinned", "Not pinned")
530
+ })] }), /* @__PURE__ */ y("div", {
531
531
  className: "flex gap-2",
532
- children: i ? /* @__PURE__ */ S(r, {
533
- permission: n.STORE_UPDATE,
534
- children: /* @__PURE__ */ S(l, {
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__ */ S(r, {
541
- permission: n.STORE_UPDATE,
542
- children: /* @__PURE__ */ S(l, {
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 Current"
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__ */ C(i, { children: [/* @__PURE__ */ S(s, { children: /* @__PURE__ */ C(c, {
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__ */ S(O, { className: "h-4 w-4" }), "Configuration Bindings"]
556
- }) }), /* @__PURE__ */ S(a, { children: /* @__PURE__ */ S("div", {
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__ */ C("div", {
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__ */ S("span", {
560
+ children: [/* @__PURE__ */ y("span", {
561
561
  className: "font-mono text-sm",
562
562
  children: e
563
- }), /* @__PURE__ */ S("span", {
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__ */ C(i, { children: [/* @__PURE__ */ S(s, { children: /* @__PURE__ */ S(c, {
569
+ /* @__PURE__ */ b(n, { children: [/* @__PURE__ */ y(a, { children: /* @__PURE__ */ y(o, {
570
570
  className: "text-base",
571
- children: "Metadata"
572
- }) }), /* @__PURE__ */ S(a, { children: /* @__PURE__ */ C("div", {
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__ */ C("div", { children: [/* @__PURE__ */ S("p", {
575
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
576
576
  className: "text-text-secondary",
577
- children: "Installed At"
578
- }), /* @__PURE__ */ S("p", {
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__ */ C("div", { children: [/* @__PURE__ */ S("p", {
582
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
583
583
  className: "text-text-secondary",
584
- children: "Installed By"
585
- }), /* @__PURE__ */ S("p", {
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__ */ C("div", { children: [/* @__PURE__ */ S("p", {
589
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
590
590
  className: "text-text-secondary",
591
- children: "Package ID"
592
- }), /* @__PURE__ */ S("p", {
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__ */ C("div", { children: [/* @__PURE__ */ S("p", {
596
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
597
597
  className: "text-text-secondary",
598
- children: "Installation ID"
599
- }), /* @__PURE__ */ S("p", {
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__ */ C("div", {
607
+ /* @__PURE__ */ b("div", {
608
608
  className: "p-6 border-t border-border-subtle flex justify-between",
609
- children: [/* @__PURE__ */ S(r, {
610
- permission: n.STORE_DELETE,
611
- children: /* @__PURE__ */ C(l, {
609
+ children: [/* @__PURE__ */ y(c, {
610
+ permission: s.STORE_DELETE,
611
+ children: /* @__PURE__ */ b(l, {
612
612
  variant: "destructive",
613
- onClick: () => void Z(e),
614
- children: [/* @__PURE__ */ S(k, { className: "h-4 w-4 mr-2" }), "Uninstall"]
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__ */ C("div", {
616
+ }), /* @__PURE__ */ b("div", {
617
617
  className: "flex gap-2",
618
- children: [/* @__PURE__ */ S(ae, {
619
- to: N(`store/package/${d}`),
620
- children: /* @__PURE__ */ S(l, {
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__ */ S(l, {
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: () => J(null)
636
+ onClose: () => W(null)
637
637
  })
638
638
  ]
639
639
  });
640
640
  };
641
- export { z as InstalledPackagesPage };
641
+ export { I as InstalledPackagesPage };
642
642
 
643
643
  //# sourceMappingURL=InstalledPackagesPage.js.map