@burdenoff/microfe-botmanor 2026.1118.8 → 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.
@@ -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 { storePackageName as p, useInstalledPackages as m, usePinPackageVersion as ne, useUninstallPackage as re, useUpdateInstalledPackage as h } from "../hooks/useStore.js";
14
- import { formatRelativeTime as g } from "../utils/formatters.js";
15
- import { PackageKind as _ } from "../../generated/wspace-types.js";
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 v, useState as y } from "react";
18
- import { GlassCard as b, PagePurpose as x } from "@burdenoff/fe-libs/ui";
19
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
20
- import { Link as ie } from "react-router";
21
- import { ArrowUpCircle as T, Copy as ae, Download as E, ExternalLink as oe, GitBranch as se, Link2 as ce, Package as D, RefreshCw as le, Search as ue, Settings as O, Trash2 as k } from "lucide-react";
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 } = m(), { uninstall: pe, loading: me } = re(), { update: he, loading: ge } = h(), { pin: _e } = ne(), [W, ve] = y(""), [ye, G] = y(!1), [K, be] = y("all"), [q, J] = y(null), Y = v(() => {
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) || p(t.package).toLowerCase().includes(e), r = K === "all" || F(t) === K;
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 = v(() => z.find((e) => e.id === q) ?? null, [z, q]), xe = v(() => z.filter(L).length, [z]), Se = async () => {
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 "${p(e.package) || P(e)}"`), J(null), H();
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__ */ C(ce, { className: "h-4 w-4 text-status-info-text" }) : /* @__PURE__ */ C(ae, { className: "h-4 w-4 text-status-warning-text" }), we = ({ pkg: e }) => {
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__ */ C(i, {
162
+ return /* @__PURE__ */ S(i, {
163
163
  className: "hover:shadow-md transition-shadow cursor-pointer",
164
164
  onClick: () => J(e.id),
165
- children: /* @__PURE__ */ w(a, {
165
+ children: /* @__PURE__ */ C(a, {
166
166
  className: "pt-6",
167
167
  children: [
168
- /* @__PURE__ */ w("div", {
168
+ /* @__PURE__ */ C("div", {
169
169
  className: "flex items-start justify-between",
170
- children: [/* @__PURE__ */ w("div", {
170
+ children: [/* @__PURE__ */ C("div", {
171
171
  className: "flex items-start gap-3",
172
- children: [/* @__PURE__ */ C("div", {
172
+ children: [/* @__PURE__ */ S("div", {
173
173
  className: "p-2 rounded-lg bg-bg-sunken text-2xl",
174
174
  children: t.icon
175
- }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
175
+ }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ C("div", {
176
176
  className: "flex items-center gap-2",
177
- children: [/* @__PURE__ */ C("h3", {
177
+ children: [/* @__PURE__ */ S("h3", {
178
178
  className: "font-semibold",
179
- children: p(e.package) || o
180
- }), s && /* @__PURE__ */ w(d, {
179
+ children: m(e.package) || o
180
+ }), s && /* @__PURE__ */ C(d, {
181
181
  variant: "warning",
182
182
  className: "gap-1",
183
- children: [/* @__PURE__ */ C(T, { className: "h-3 w-3" }), "Update"]
183
+ children: [/* @__PURE__ */ S(w, { className: "h-3 w-3" }), "Update"]
184
184
  })]
185
- }), /* @__PURE__ */ C("p", {
185
+ }), /* @__PURE__ */ S("p", {
186
186
  className: "text-sm text-text-secondary font-mono",
187
187
  children: o
188
188
  })] })]
189
- }), /* @__PURE__ */ w("div", {
189
+ }), /* @__PURE__ */ C("div", {
190
190
  className: "flex items-center gap-2",
191
- children: [$(e.mode), /* @__PURE__ */ C(d, {
191
+ children: [$(e.mode), /* @__PURE__ */ S(d, {
192
192
  variant: "outline",
193
193
  children: t.label
194
194
  })]
195
195
  })]
196
196
  }),
197
- /* @__PURE__ */ w("div", {
197
+ /* @__PURE__ */ C("div", {
198
198
  className: "mt-4 grid grid-cols-3 gap-4 text-sm",
199
199
  children: [
200
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
200
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
201
201
  className: "text-text-secondary",
202
202
  children: "Installed Version"
203
- }), /* @__PURE__ */ w("p", {
203
+ }), /* @__PURE__ */ C("p", {
204
204
  className: "font-medium font-mono",
205
205
  children: ["v", e.installedVersion]
206
206
  })] }),
207
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
207
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
208
208
  className: "text-text-secondary",
209
209
  children: "Mode"
210
- }), /* @__PURE__ */ w("p", {
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__ */ w("div", { children: [/* @__PURE__ */ C("p", {
214
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
215
215
  className: "text-text-secondary",
216
216
  children: "Installed"
217
- }), /* @__PURE__ */ C("p", {
217
+ }), /* @__PURE__ */ S("p", {
218
218
  className: "font-medium",
219
- children: g(e.installedAt)
219
+ children: p(e.installedAt)
220
220
  })] })
221
221
  ]
222
222
  }),
223
- c.length > 0 && /* @__PURE__ */ w("div", {
223
+ c.length > 0 && /* @__PURE__ */ C("div", {
224
224
  className: "mt-4 pt-4 border-t border-border-subtle",
225
- children: [/* @__PURE__ */ C("p", {
225
+ children: [/* @__PURE__ */ S("p", {
226
226
  className: "text-xs text-text-secondary mb-2",
227
227
  children: "Pinned Versions"
228
- }), /* @__PURE__ */ C("div", {
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__ */ w(d, {
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__ */ w("div", {
244
+ /* @__PURE__ */ C("div", {
245
245
  className: "mt-4 flex justify-end gap-2",
246
246
  children: [
247
- /* @__PURE__ */ w(l, {
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__ */ C(oe, { className: "h-4 w-4 mr-1" }), "View in Store"]
253
+ children: [/* @__PURE__ */ S(se, { className: "h-4 w-4 mr-1" }), "View in Store"]
254
254
  }),
255
- s && /* @__PURE__ */ C(r, {
255
+ s && /* @__PURE__ */ S(r, {
256
256
  permission: n.STORE_UPDATE,
257
- children: /* @__PURE__ */ w(l, {
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__ */ C(T, { className: "h-4 w-4 mr-1" }), "Update"]
264
+ children: [/* @__PURE__ */ S(w, { className: "h-4 w-4 mr-1" }), "Update"]
265
265
  })
266
266
  }),
267
- /* @__PURE__ */ C(r, {
267
+ /* @__PURE__ */ S(r, {
268
268
  permission: n.STORE_DELETE,
269
- children: /* @__PURE__ */ C(l, {
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__ */ C(k, { className: "h-4 w-4" })
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__ */ C(t, {
287
+ return B ? /* @__PURE__ */ S(t, {
288
288
  title: "Installed Packages",
289
289
  description: "Manage installed store packages",
290
- children: /* @__PURE__ */ C("div", {
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__ */ C("div", { className: "h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
296
+ ].map((e) => /* @__PURE__ */ S("div", { className: "h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
297
297
  })
298
- }) : /* @__PURE__ */ w(t, {
298
+ }) : /* @__PURE__ */ C(t, {
299
299
  title: "Installed Packages",
300
300
  description: "Manage packages installed from the BotManor Store",
301
- actions: /* @__PURE__ */ w("div", {
301
+ actions: /* @__PURE__ */ C("div", {
302
302
  className: "flex gap-2",
303
- children: [/* @__PURE__ */ C(l, {
303
+ children: [/* @__PURE__ */ S(l, {
304
304
  variant: "outline",
305
- leftIcon: /* @__PURE__ */ C(le, { size: 16 }),
305
+ leftIcon: /* @__PURE__ */ S(ue, { size: 16 }),
306
306
  onClick: () => void Se(),
307
307
  isLoading: ye,
308
308
  children: "Check Updates"
309
- }), /* @__PURE__ */ C(l, {
310
- leftIcon: /* @__PURE__ */ C(D, { size: 16 }),
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__ */ C(x, {
316
+ /* @__PURE__ */ S(b, {
317
317
  className: "mb-6",
318
- icon: /* @__PURE__ */ C(D, { size: 18 }),
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__ */ C(te, {
321
+ V ? /* @__PURE__ */ S(te, {
322
322
  resource: "installed packages",
323
323
  error: V,
324
324
  onRetry: () => void H()
325
- }) : /* @__PURE__ */ w(S, { children: [
326
- /* @__PURE__ */ w("div", {
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__ */ w(b, {
329
+ /* @__PURE__ */ C(y, {
330
330
  treatment: "glass",
331
331
  glow: !0,
332
332
  className: "p-6 text-center",
333
- children: [/* @__PURE__ */ C("p", {
333
+ children: [/* @__PURE__ */ S("p", {
334
334
  className: "text-3xl font-bold tabular-nums text-text-primary",
335
335
  children: z.length
336
- }), /* @__PURE__ */ C("p", {
336
+ }), /* @__PURE__ */ S("p", {
337
337
  className: "text-sm text-text-secondary",
338
338
  children: "Total Installed"
339
339
  })]
340
340
  }),
341
- /* @__PURE__ */ w(b, {
341
+ /* @__PURE__ */ C(y, {
342
342
  treatment: "metric",
343
343
  className: "p-6 text-center",
344
- children: [/* @__PURE__ */ C("p", {
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__ */ C("p", {
347
+ }), /* @__PURE__ */ S("p", {
348
348
  className: "text-sm text-text-secondary",
349
349
  children: "Linked"
350
350
  })]
351
351
  }),
352
- /* @__PURE__ */ w(b, {
352
+ /* @__PURE__ */ C(y, {
353
353
  treatment: "metric",
354
354
  className: "p-6 text-center",
355
- children: [/* @__PURE__ */ C("p", {
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__ */ C("p", {
358
+ }), /* @__PURE__ */ S("p", {
359
359
  className: "text-sm text-text-secondary",
360
360
  children: "Forked"
361
361
  })]
362
362
  }),
363
- /* @__PURE__ */ w(b, {
363
+ /* @__PURE__ */ C(y, {
364
364
  treatment: "metric",
365
365
  className: "p-6 text-center",
366
- children: [/* @__PURE__ */ C("p", {
366
+ children: [/* @__PURE__ */ S("p", {
367
367
  className: "text-3xl font-bold tabular-nums text-text-primary",
368
368
  children: xe
369
- }), /* @__PURE__ */ C("p", {
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__ */ w("div", {
376
+ /* @__PURE__ */ C("div", {
377
377
  className: "flex flex-col md:flex-row gap-4 mb-6",
378
- children: [/* @__PURE__ */ w("div", {
378
+ children: [/* @__PURE__ */ C("div", {
379
379
  className: "relative flex-1",
380
- children: [/* @__PURE__ */ C(ue, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ C(u, {
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__ */ C("div", {
386
+ }), /* @__PURE__ */ S("div", {
387
387
  className: "flex gap-2",
388
- children: /* @__PURE__ */ w("select", {
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__ */ C("option", {
394
+ /* @__PURE__ */ S("option", {
395
395
  value: "all",
396
396
  children: "All Types"
397
397
  }),
398
- /* @__PURE__ */ C("option", {
399
- value: _.Agent,
398
+ /* @__PURE__ */ S("option", {
399
+ value: g.Agent,
400
400
  children: "Agents"
401
401
  }),
402
- /* @__PURE__ */ C("option", {
403
- value: _.Skill,
402
+ /* @__PURE__ */ S("option", {
403
+ value: g.Skill,
404
404
  children: "Skills"
405
405
  }),
406
- /* @__PURE__ */ C("option", {
407
- value: _.McpPack,
406
+ /* @__PURE__ */ S("option", {
407
+ value: g.McpPack,
408
408
  children: "MCP Packs"
409
409
  }),
410
- /* @__PURE__ */ C("option", {
411
- value: _.PromptTemplate,
410
+ /* @__PURE__ */ S("option", {
411
+ value: g.PromptTemplate,
412
412
  children: "Templates"
413
413
  }),
414
- /* @__PURE__ */ C("option", {
415
- value: _.RetrievalProfile,
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__ */ C("div", {
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__ */ C(we, { pkg: e }, e.id))
425
- }) : /* @__PURE__ */ C(f, {
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__ */ C(l, {
429
+ action: /* @__PURE__ */ S(l, {
430
430
  onClick: () => M("store"),
431
- leftIcon: /* @__PURE__ */ C(E, { className: "h-4 w-4" }),
431
+ leftIcon: /* @__PURE__ */ S(T, { className: "h-4 w-4" }),
432
432
  children: "Browse Store"
433
433
  })
434
434
  }),
435
- /* @__PURE__ */ C(ee, {
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__ */ C(({ pkg: e, onClose: t }) => {
442
+ X && /* @__PURE__ */ S(({ pkg: e, onClose: t }) => {
443
443
  let u = I(e), d = P(e), f = e.bindings ?? {};
444
- return /* @__PURE__ */ C("div", {
444
+ return /* @__PURE__ */ S("div", {
445
445
  className: "fixed inset-0 bg-bg-overlay flex items-center justify-center z-50",
446
- children: /* @__PURE__ */ w("div", {
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__ */ C("div", {
449
+ /* @__PURE__ */ S("div", {
450
450
  className: "p-6 border-b border-border-subtle",
451
- children: /* @__PURE__ */ w("div", {
451
+ children: /* @__PURE__ */ C("div", {
452
452
  className: "flex items-start justify-between",
453
- children: [/* @__PURE__ */ w("div", {
453
+ children: [/* @__PURE__ */ C("div", {
454
454
  className: "flex items-start gap-3",
455
- children: [/* @__PURE__ */ C("div", {
455
+ children: [/* @__PURE__ */ S("div", {
456
456
  className: "p-3 rounded-lg bg-bg-sunken text-3xl",
457
457
  children: u.icon
458
- }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("h2", {
458
+ }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h2", {
459
459
  className: "text-xl font-bold",
460
- children: p(e.package) || d
461
- }), /* @__PURE__ */ C("p", {
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__ */ C(l, {
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__ */ w("div", {
474
+ /* @__PURE__ */ C("div", {
475
475
  className: "p-6 space-y-6",
476
476
  children: [
477
- /* @__PURE__ */ w(i, { children: [/* @__PURE__ */ C(s, { children: /* @__PURE__ */ C(c, {
477
+ /* @__PURE__ */ C(i, { children: [/* @__PURE__ */ S(s, { children: /* @__PURE__ */ S(c, {
478
478
  className: "text-base",
479
479
  children: "Version Information"
480
- }) }), /* @__PURE__ */ w(a, {
480
+ }) }), /* @__PURE__ */ C(a, {
481
481
  className: "space-y-4",
482
- children: [/* @__PURE__ */ w("div", {
482
+ children: [/* @__PURE__ */ C("div", {
483
483
  className: "grid grid-cols-2 gap-4",
484
- children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
484
+ children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
485
485
  className: "text-sm text-text-secondary",
486
486
  children: "Installed Version"
487
- }), /* @__PURE__ */ w("p", {
487
+ }), /* @__PURE__ */ C("p", {
488
488
  className: "font-mono font-medium",
489
489
  children: ["v", e.installedVersion]
490
- })] }), e.package && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
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__ */ w("p", {
493
+ }), /* @__PURE__ */ C("p", {
494
494
  className: "font-mono font-medium",
495
495
  children: ["v", e.package.version]
496
496
  })] })]
497
- }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
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__ */ w("div", {
500
+ }), /* @__PURE__ */ C("div", {
501
501
  className: "flex items-center gap-2",
502
502
  children: [
503
503
  $(e.mode),
504
- /* @__PURE__ */ C("span", {
504
+ /* @__PURE__ */ S("span", {
505
505
  className: "font-medium",
506
506
  children: e.mode
507
507
  }),
508
- /* @__PURE__ */ C("span", {
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__ */ w(i, { children: [/* @__PURE__ */ w(s, { children: [/* @__PURE__ */ w(c, {
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__ */ C(se, { className: "h-4 w-4" }), "Environment Version Pins"]
518
- }), /* @__PURE__ */ C(o, { children: "Pin specific versions for each environment" })] }), /* @__PURE__ */ C(a, { children: /* @__PURE__ */ C("div", {
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__ */ w("div", {
522
+ return /* @__PURE__ */ C("div", {
523
523
  className: "flex items-center justify-between p-3 bg-bg-sunken rounded-lg",
524
- children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
524
+ children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
525
525
  className: "font-medium",
526
526
  children: t
527
- }), /* @__PURE__ */ C("p", {
527
+ }), /* @__PURE__ */ S("p", {
528
528
  className: "text-sm text-text-secondary font-mono",
529
529
  children: i ? `v${i}` : "Using latest"
530
- })] }), /* @__PURE__ */ C("div", {
530
+ })] }), /* @__PURE__ */ S("div", {
531
531
  className: "flex gap-2",
532
- children: i ? /* @__PURE__ */ C(r, {
532
+ children: i ? /* @__PURE__ */ S(r, {
533
533
  permission: n.STORE_UPDATE,
534
- children: /* @__PURE__ */ C(l, {
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__ */ C(r, {
540
+ }) : /* @__PURE__ */ S(r, {
541
541
  permission: n.STORE_UPDATE,
542
- children: /* @__PURE__ */ C(l, {
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__ */ w(i, { children: [/* @__PURE__ */ C(s, { children: /* @__PURE__ */ w(c, {
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__ */ C(O, { className: "h-4 w-4" }), "Configuration Bindings"]
556
- }) }), /* @__PURE__ */ C(a, { children: /* @__PURE__ */ C("div", {
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__ */ w("div", {
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__ */ C("span", {
560
+ children: [/* @__PURE__ */ S("span", {
561
561
  className: "font-mono text-sm",
562
562
  children: e
563
- }), /* @__PURE__ */ C("span", {
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__ */ w(i, { children: [/* @__PURE__ */ C(s, { children: /* @__PURE__ */ C(c, {
569
+ /* @__PURE__ */ C(i, { children: [/* @__PURE__ */ S(s, { children: /* @__PURE__ */ S(c, {
570
570
  className: "text-base",
571
571
  children: "Metadata"
572
- }) }), /* @__PURE__ */ C(a, { children: /* @__PURE__ */ w("div", {
572
+ }) }), /* @__PURE__ */ S(a, { children: /* @__PURE__ */ C("div", {
573
573
  className: "grid grid-cols-2 gap-4 text-sm",
574
574
  children: [
575
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
575
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
576
576
  className: "text-text-secondary",
577
577
  children: "Installed At"
578
- }), /* @__PURE__ */ C("p", {
578
+ }), /* @__PURE__ */ S("p", {
579
579
  className: "font-medium",
580
- children: g(e.installedAt)
580
+ children: p(e.installedAt)
581
581
  })] }),
582
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
582
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
583
583
  className: "text-text-secondary",
584
584
  children: "Installed By"
585
- }), /* @__PURE__ */ C("p", {
585
+ }), /* @__PURE__ */ S("p", {
586
586
  className: "font-medium",
587
587
  children: e.installedBy
588
588
  })] }),
589
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
589
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
590
590
  className: "text-text-secondary",
591
591
  children: "Package ID"
592
- }), /* @__PURE__ */ C("p", {
592
+ }), /* @__PURE__ */ S("p", {
593
593
  className: "font-mono text-xs",
594
594
  children: e.packageId
595
595
  })] }),
596
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
596
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
597
597
  className: "text-text-secondary",
598
598
  children: "Installation ID"
599
- }), /* @__PURE__ */ C("p", {
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__ */ w("div", {
607
+ /* @__PURE__ */ C("div", {
608
608
  className: "p-6 border-t border-border-subtle flex justify-between",
609
- children: [/* @__PURE__ */ C(r, {
609
+ children: [/* @__PURE__ */ S(r, {
610
610
  permission: n.STORE_DELETE,
611
- children: /* @__PURE__ */ w(l, {
611
+ children: /* @__PURE__ */ C(l, {
612
612
  variant: "destructive",
613
613
  onClick: () => void Z(e),
614
- children: [/* @__PURE__ */ C(k, { className: "h-4 w-4 mr-2" }), "Uninstall"]
614
+ children: [/* @__PURE__ */ S(k, { className: "h-4 w-4 mr-2" }), "Uninstall"]
615
615
  })
616
- }), /* @__PURE__ */ w("div", {
616
+ }), /* @__PURE__ */ C("div", {
617
617
  className: "flex gap-2",
618
- children: [/* @__PURE__ */ C(ie, {
618
+ children: [/* @__PURE__ */ S(ae, {
619
619
  to: N(`store/package/${d}`),
620
- children: /* @__PURE__ */ C(l, {
620
+ children: /* @__PURE__ */ S(l, {
621
621
  variant: "outline",
622
622
  children: "View in Store"
623
623
  })
624
- }), /* @__PURE__ */ C(l, {
624
+ }), /* @__PURE__ */ S(l, {
625
625
  variant: "outline",
626
626
  onClick: t,
627
627
  children: "Close"