@burdenoff/microfe-botmanor 2026.1203.4 → 2026.1203.6

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 (135) hide show
  1. package/dist/botlit/BotlitRoutes.js +0 -1
  2. package/dist/botlit/BotlitRoutes.js.map +1 -1
  3. package/dist/botlit/components/A2ACardVerificationCard.js +0 -1
  4. package/dist/botlit/components/A2ACardVerificationCard.js.map +1 -1
  5. package/dist/botlit/components/AgentA2APanel.js +20 -21
  6. package/dist/botlit/components/AgentA2APanel.js.map +1 -1
  7. package/dist/botlit/components/AgentApprovalPanel.js +22 -23
  8. package/dist/botlit/components/AgentApprovalPanel.js.map +1 -1
  9. package/dist/botlit/components/AgentBindingsPanel.js +66 -68
  10. package/dist/botlit/components/AgentBindingsPanel.js.map +1 -1
  11. package/dist/botlit/components/AiOperationsPanel.js +34 -35
  12. package/dist/botlit/components/AiOperationsPanel.js.map +1 -1
  13. package/dist/botlit/components/BotAgentsPanel.js +59 -60
  14. package/dist/botlit/components/BotAgentsPanel.js.map +1 -1
  15. package/dist/botlit/components/BotVersionHistoryPanel.js +19 -20
  16. package/dist/botlit/components/BotVersionHistoryPanel.js.map +1 -1
  17. package/dist/botlit/components/BucketDialogs.js +0 -1
  18. package/dist/botlit/components/BucketDialogs.js.map +1 -1
  19. package/dist/botlit/components/ChannelRoutesPanel.js +82 -84
  20. package/dist/botlit/components/ChannelRoutesPanel.js.map +1 -1
  21. package/dist/botlit/components/CreateChannelRouteDialog.js +4 -5
  22. package/dist/botlit/components/CreateChannelRouteDialog.js.map +1 -1
  23. package/dist/botlit/components/DescribeBotDialog.js +0 -1
  24. package/dist/botlit/components/DescribeBotDialog.js.map +1 -1
  25. package/dist/botlit/components/GettingStartedChecklist.js +9 -10
  26. package/dist/botlit/components/GettingStartedChecklist.js.map +1 -1
  27. package/dist/botlit/components/HandoffConfigPanel.js +0 -1
  28. package/dist/botlit/components/HandoffConfigPanel.js.map +1 -1
  29. package/dist/botlit/components/RetentionStatusPanel.js +10 -12
  30. package/dist/botlit/components/RetentionStatusPanel.js.map +1 -1
  31. package/dist/botlit/components/StewardApprovalsInbox.js +201 -212
  32. package/dist/botlit/components/StewardApprovalsInbox.js.map +1 -1
  33. package/dist/botlit/components/StoreOwnPackagesCard.js +21 -22
  34. package/dist/botlit/components/StoreOwnPackagesCard.js.map +1 -1
  35. package/dist/botlit/components/StorePackageDraftCard.js +38 -39
  36. package/dist/botlit/components/StorePackageDraftCard.js.map +1 -1
  37. package/dist/botlit/components/StorePolicyBundleCard.js +27 -29
  38. package/dist/botlit/components/StorePolicyBundleCard.js.map +1 -1
  39. package/dist/botlit/components/StoreSubmissionsCard.js +64 -65
  40. package/dist/botlit/components/StoreSubmissionsCard.js.map +1 -1
  41. package/dist/botlit/components/VersionHistoryPanel.js +18 -19
  42. package/dist/botlit/components/VersionHistoryPanel.js.map +1 -1
  43. package/dist/botlit/hooks/internal/workspaceGateway.d.ts +6 -0
  44. package/dist/botlit/hooks/internal/workspaceGateway.js +40 -40
  45. package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
  46. package/dist/botlit/hooks/useChannels.js +2 -0
  47. package/dist/botlit/hooks/useChannels.js.map +1 -1
  48. package/dist/botlit/hooks/useToolApprovals.d.ts +8 -3
  49. package/dist/botlit/hooks/useToolApprovals.js +68 -73
  50. package/dist/botlit/hooks/useToolApprovals.js.map +1 -1
  51. package/dist/botlit/pages/A2AAgentDetailPage.js +331 -332
  52. package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
  53. package/dist/botlit/pages/A2ARegistryPage.js +39 -41
  54. package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
  55. package/dist/botlit/pages/AgentApprovalsPage.js +24 -25
  56. package/dist/botlit/pages/AgentApprovalsPage.js.map +1 -1
  57. package/dist/botlit/pages/AgentBuilderPage.js +470 -471
  58. package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
  59. package/dist/botlit/pages/AgentDetailPage.js +68 -69
  60. package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
  61. package/dist/botlit/pages/AgentsListPage.js +277 -278
  62. package/dist/botlit/pages/AgentsListPage.js.map +1 -1
  63. package/dist/botlit/pages/AiOperationsPage.js +44 -46
  64. package/dist/botlit/pages/AiOperationsPage.js.map +1 -1
  65. package/dist/botlit/pages/BotChannelsTab.js +354 -356
  66. package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
  67. package/dist/botlit/pages/BotDetailPage.js +138 -139
  68. package/dist/botlit/pages/BotDetailPage.js.map +1 -1
  69. package/dist/botlit/pages/BotWorkflowTab.js +23 -24
  70. package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
  71. package/dist/botlit/pages/BotsListPage.js +32 -33
  72. package/dist/botlit/pages/BotsListPage.js.map +1 -1
  73. package/dist/botlit/pages/BucketDetailPage.js +110 -112
  74. package/dist/botlit/pages/BucketDetailPage.js.map +1 -1
  75. package/dist/botlit/pages/BucketsPage.js +115 -117
  76. package/dist/botlit/pages/BucketsPage.js.map +1 -1
  77. package/dist/botlit/pages/ChannelDetailPage.js +105 -107
  78. package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
  79. package/dist/botlit/pages/ChannelsPage.js +38 -40
  80. package/dist/botlit/pages/ChannelsPage.js.map +1 -1
  81. package/dist/botlit/pages/DashboardPage.js +26 -27
  82. package/dist/botlit/pages/DashboardPage.js.map +1 -1
  83. package/dist/botlit/pages/ExecutionDetailPage.js +70 -71
  84. package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
  85. package/dist/botlit/pages/ExecutionsPage.js +219 -220
  86. package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
  87. package/dist/botlit/pages/HandoffsPage.js +208 -210
  88. package/dist/botlit/pages/HandoffsPage.js.map +1 -1
  89. package/dist/botlit/pages/InstalledPackagesPage.js +179 -181
  90. package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
  91. package/dist/botlit/pages/KnowledgeBaseDetailPage.js +194 -195
  92. package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
  93. package/dist/botlit/pages/KnowledgeBasesPage.js +38 -39
  94. package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
  95. package/dist/botlit/pages/MCPServerDetailPage.js +178 -180
  96. package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
  97. package/dist/botlit/pages/MCPServersPage.js +42 -43
  98. package/dist/botlit/pages/MCPServersPage.js.map +1 -1
  99. package/dist/botlit/pages/PoliciesPage.js +77 -78
  100. package/dist/botlit/pages/PoliciesPage.js.map +1 -1
  101. package/dist/botlit/pages/PolicyDetailPage.js +517 -519
  102. package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
  103. package/dist/botlit/pages/PromptStudioPage.js +81 -83
  104. package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
  105. package/dist/botlit/pages/PromptTemplateDetailPage.js +137 -139
  106. package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
  107. package/dist/botlit/pages/PromptTemplatesPage.js +28 -30
  108. package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
  109. package/dist/botlit/pages/RetrievalProfileDetailPage.js +64 -65
  110. package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
  111. package/dist/botlit/pages/RetrievalProfilesPage.js +59 -60
  112. package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
  113. package/dist/botlit/pages/SettingsPage.js +30 -31
  114. package/dist/botlit/pages/SettingsPage.js.map +1 -1
  115. package/dist/botlit/pages/SkillDetailPage.js +205 -207
  116. package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
  117. package/dist/botlit/pages/SkillsPage.js +68 -69
  118. package/dist/botlit/pages/SkillsPage.js.map +1 -1
  119. package/dist/botlit/pages/StorePackageDetailPage.js +39 -41
  120. package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
  121. package/dist/botlit/pages/StorePage.js +169 -171
  122. package/dist/botlit/pages/StorePage.js.map +1 -1
  123. package/dist/botlit/pages/ToolApprovalsPage.js +61 -62
  124. package/dist/botlit/pages/ToolApprovalsPage.js.map +1 -1
  125. package/dist/generated/global-types.d.ts +540 -171
  126. package/dist/generated/global-types.js.map +1 -1
  127. package/dist/generated/wspace-operations.d.ts +38 -4
  128. package/dist/generated/wspace-operations.js.map +1 -1
  129. package/dist/generated/wspace-types.d.ts +9539 -686
  130. package/dist/generated/wspace-types.js.map +1 -1
  131. package/dist/index.js +0 -1
  132. package/package.json +4 -1
  133. package/dist/botlit/hooks/index.js +0 -21
  134. package/dist/botlit/index.js +0 -12
  135. package/dist/botlit/permissions/index.js +0 -4
@@ -1,28 +1,26 @@
1
1
  import { useBotlit as e } from "../providers/BotlitProvider.js";
2
2
  import { PageLayout as t } from "../components/PageLayout.js";
3
3
  import { Card as n, CardContent as r, CardHeader as i, CardTitle as a } from "../components/Card.js";
4
- import { BOTMANOR_PERMISSIONS as o } from "../permissions/botmanorPermissions.js";
5
- import { BotmanorPermissionGate as s } from "../permissions/useBotmanorPermissions.js";
6
- import { Button as c } from "../components/Button.js";
7
- import { Input as l } from "../components/Input.js";
8
- import { Badge as u } from "../components/Badge.js";
4
+ import { Button as o } from "../components/Button.js";
5
+ import { Input as s } from "../components/Input.js";
6
+ import { Badge as c } from "../components/Badge.js";
9
7
  import { EmptyState as ee } from "../components/EmptyState.js";
10
8
  import { LoadMore as te } from "../components/LoadMore.js";
11
9
  import { ErrorState as ne } from "../components/ErrorState.js";
12
- import "../hooks/index.js";
10
+ import { storePackageName as l, useInstalledPackages as re, useUninstallPackage as ie, useUpdateInstalledPackage as u } from "../hooks/useStore.js";
13
11
  import { formatRelativeTime as d } from "../utils/formatters.js";
14
- import "../permissions/index.js";
15
- import { storePackageName as f, useInstalledPackages as re, useUninstallPackage as ie, useUpdateInstalledPackage as ae } from "../hooks/useStore.js";
16
- import { STORE_PACKAGE_KINDS as oe, UninstallPackageDialog as p, packageKindLabels as m } from "../components/StoreDialogs.js";
17
- import { useTr as h } from "../../shared/hooks/useTr.js";
18
- import { useMemo as g, useState as _ } from "react";
19
- import { GlassCard as v, PagePurpose as se, ThemedSelect as ce } from "@burdenoff/fe-libs/ui";
20
- import { Fragment as le, jsx as y, jsxs as b } from "react/jsx-runtime";
21
- import { Link as ue } from "react-router";
22
- import { ArrowUpCircle as x, Copy as S, Download as de, ExternalLink as fe, Link2 as pe, Package as C, RefreshCw as w, Search as me, Trash2 as T } from "lucide-react";
23
- import { toast as E } from "sonner";
12
+ import { BOTMANOR_PERMISSIONS as f } from "../permissions/botmanorPermissions.js";
13
+ import { BotmanorPermissionGate as p } from "../permissions/useBotmanorPermissions.js";
14
+ import { STORE_PACKAGE_KINDS as ae, UninstallPackageDialog as m, packageKindLabels as h } from "../components/StoreDialogs.js";
15
+ import { useTr as g } from "../../shared/hooks/useTr.js";
16
+ import { useMemo as _, useState as v } from "react";
17
+ import { GlassCard as y, PagePurpose as oe, ThemedSelect as se } from "@burdenoff/fe-libs/ui";
18
+ import { Fragment as ce, jsx as b, jsxs as x } from "react/jsx-runtime";
19
+ import { Link as le } from "react-router";
20
+ import { ArrowUpCircle as S, Copy as ue, Download as de, ExternalLink as fe, Link2 as pe, Package as C, RefreshCw as w, Search as T, Trash2 as E } from "lucide-react";
21
+ import { toast as D } from "sonner";
24
22
  // src/botlit/pages/InstalledPackagesPage.tsx
25
- var D = {
23
+ var O = {
26
24
  APP: {
27
25
  label: "Bot",
28
26
  icon: "📱"
@@ -87,42 +85,42 @@ var D = {
87
85
  label: "Workflow",
88
86
  icon: "🔀"
89
87
  }
90
- }, O = {
88
+ }, k = {
91
89
  label: "Package",
92
90
  icon: "📦"
93
91
  };
94
- function k(e) {
95
- return e.package?.slug ?? e.packageId;
96
- }
97
92
  function A(e) {
98
- return e.package?.kind;
93
+ return e.package?.slug ?? e.packageId;
99
94
  }
100
95
  function j(e) {
101
- return f(e.package) || k(e);
96
+ return e.package?.kind;
102
97
  }
103
98
  function M(e) {
104
- let t = A(e);
105
- return t && D[t] || O;
99
+ return l(e.package) || A(e);
106
100
  }
107
101
  function N(e) {
102
+ let t = j(e);
103
+ return t && O[t] || k;
104
+ }
105
+ function P(e) {
108
106
  let t = e.package?.version;
109
107
  return !!(t && t !== e.installedVersion);
110
108
  }
111
- var P = () => {
112
- let { navigateTo: D, getPath: O } = e(), { data: P, loading: F, error: I, refetch: L, hasMore: R, loadingMore: z, loadMore: he } = re(), { uninstall: ge, loading: _e } = ie(), { update: ve, loading: ye } = ae(), [B, V] = _(""), [be, H] = _(!1), [U, xe] = _("all"), [W, G] = _(null), [K, q] = _(null), J = h(), Y = m(J), X = g(() => {
113
- let e = B.trim().toLowerCase();
114
- return P.filter((t) => {
115
- let n = !e || k(t).toLowerCase().includes(e) || f(t.package).toLowerCase().includes(e), r = U === "all" || A(t) === U;
109
+ var F = () => {
110
+ let { navigateTo: O, getPath: k } = e(), { data: F, loading: I, error: L, refetch: R, hasMore: z, loadingMore: B, loadMore: me } = re(), { uninstall: he, loading: ge } = ie(), { update: _e, loading: ve } = u(), [V, ye] = v(""), [be, H] = v(!1), [U, xe] = v("all"), [W, G] = v(null), [K, q] = v(null), J = g(), Y = h(J), X = _(() => {
111
+ let e = V.trim().toLowerCase();
112
+ return F.filter((t) => {
113
+ let n = !e || A(t).toLowerCase().includes(e) || l(t.package).toLowerCase().includes(e), r = U === "all" || j(t) === U;
116
114
  return n && r;
117
115
  });
118
116
  }, [
119
- P,
120
- B,
117
+ F,
118
+ V,
121
119
  U
122
- ]), Z = g(() => P.find((e) => e.id === W) ?? null, [P, W]), Se = g(() => P.filter(N).length, [P]), Ce = async () => {
120
+ ]), Z = _(() => F.find((e) => e.id === W) ?? null, [F, W]), Se = _(() => F.filter(P).length, [F]), Ce = async () => {
123
121
  H(!0);
124
122
  try {
125
- await L();
123
+ await R();
126
124
  } finally {
127
125
  H(!1);
128
126
  }
@@ -130,112 +128,112 @@ var P = () => {
130
128
  let e = K;
131
129
  if (e) {
132
130
  try {
133
- await ge(e.id);
131
+ await he(e.id);
134
132
  } catch (e) {
135
- E.error(e instanceof Error ? e.message : J("botlit.store.uninstall.error", "Could not uninstall the package."));
133
+ D.error(e instanceof Error ? e.message : J("botlit.store.uninstall.error", "Could not uninstall the package."));
136
134
  return;
137
135
  }
138
- E.success(J("botlit.store.uninstall.success", "Uninstalled \"{{name}}\"", { name: j(e) })), q(null), G(null), L();
136
+ D.success(J("botlit.store.uninstall.success", "Uninstalled \"{{name}}\"", { name: M(e) })), q(null), G(null), R();
139
137
  }
140
138
  }, Te = async (e) => {
141
139
  let t = e.package?.version;
142
140
  if (t) try {
143
- await ve({
141
+ await _e({
144
142
  installedId: e.id,
145
143
  input: { installedVersion: t }
146
- }), E.success(A(e) === "POLICY_BUNDLE" && e.mode === "LINKED" ? J("botlit.store.installed.updatedPolicies", "Updated to v{{version}} and refreshed its policies", { version: t }) : J("botlit.store.installed.updatedRecord", "Recorded v{{version}} as the installed version", { version: t })), L();
144
+ }), D.success(j(e) === "POLICY_BUNDLE" && e.mode === "LINKED" ? J("botlit.store.installed.updatedPolicies", "Updated to v{{version}} and refreshed its policies", { version: t }) : J("botlit.store.installed.updatedRecord", "Recorded v{{version}} as the installed version", { version: t })), R();
147
145
  } catch (e) {
148
- E.error(e instanceof Error ? e.message : J("botlit.store.installed.updateError", "Could not update the package."));
146
+ D.error(e instanceof Error ? e.message : J("botlit.store.installed.updateError", "Could not update the package."));
149
147
  }
150
- }, $ = (e) => e === "LINKED" ? /* @__PURE__ */ y(pe, { className: "h-4 w-4 text-status-info-text" }) : /* @__PURE__ */ y(S, { className: "h-4 w-4 text-status-warning-text" }), Ee = ({ pkg: e }) => {
151
- let t = M(e), i = k(e), a = N(e);
152
- return /* @__PURE__ */ y(n, {
148
+ }, $ = (e) => e === "LINKED" ? /* @__PURE__ */ b(pe, { className: "h-4 w-4 text-status-info-text" }) : /* @__PURE__ */ b(ue, { className: "h-4 w-4 text-status-warning-text" }), Ee = ({ pkg: e }) => {
149
+ let t = N(e), i = A(e), a = P(e);
150
+ return /* @__PURE__ */ b(n, {
153
151
  className: "hover:shadow-md transition-shadow cursor-pointer",
154
152
  onClick: () => G(e.id),
155
- children: /* @__PURE__ */ b(r, {
153
+ children: /* @__PURE__ */ x(r, {
156
154
  className: "pt-6",
157
155
  children: [
158
- /* @__PURE__ */ b("div", {
156
+ /* @__PURE__ */ x("div", {
159
157
  className: "flex items-start justify-between",
160
- children: [/* @__PURE__ */ b("div", {
158
+ children: [/* @__PURE__ */ x("div", {
161
159
  className: "flex items-start gap-3",
162
- children: [/* @__PURE__ */ y("div", {
160
+ children: [/* @__PURE__ */ b("div", {
163
161
  className: "p-2 rounded-lg bg-bg-sunken text-2xl",
164
162
  children: t.icon
165
- }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("div", {
163
+ }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("div", {
166
164
  className: "flex items-center gap-2",
167
- children: [/* @__PURE__ */ y("h3", {
165
+ children: [/* @__PURE__ */ b("h3", {
168
166
  className: "font-semibold",
169
- children: f(e.package) || i
170
- }), a && /* @__PURE__ */ b(u, {
167
+ children: l(e.package) || i
168
+ }), a && /* @__PURE__ */ x(c, {
171
169
  variant: "warning",
172
170
  className: "gap-1",
173
- children: [/* @__PURE__ */ y(x, { className: "h-3 w-3" }), J("botlit.store.installed.updateBadge", "Update")]
171
+ children: [/* @__PURE__ */ b(S, { className: "h-3 w-3" }), J("botlit.store.installed.updateBadge", "Update")]
174
172
  })]
175
- }), /* @__PURE__ */ y("p", {
173
+ }), /* @__PURE__ */ b("p", {
176
174
  className: "text-sm text-text-secondary font-mono",
177
175
  children: i
178
176
  })] })]
179
- }), /* @__PURE__ */ b("div", {
177
+ }), /* @__PURE__ */ x("div", {
180
178
  className: "flex items-center gap-2",
181
- children: [$(e.mode), /* @__PURE__ */ y(u, {
179
+ children: [$(e.mode), /* @__PURE__ */ b(c, {
182
180
  variant: "outline",
183
- children: Y[A(e) ?? ""] ?? t.label
181
+ children: Y[j(e) ?? ""] ?? t.label
184
182
  })]
185
183
  })]
186
184
  }),
187
- /* @__PURE__ */ b("div", {
185
+ /* @__PURE__ */ x("div", {
188
186
  className: "mt-4 grid grid-cols-3 gap-4 text-sm",
189
187
  children: [
190
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
188
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
191
189
  className: "text-text-secondary",
192
190
  children: J("botlit.store.installed.installedVersion", "Installed version")
193
- }), /* @__PURE__ */ b("p", {
191
+ }), /* @__PURE__ */ x("p", {
194
192
  className: "font-medium font-mono",
195
193
  children: ["v", e.installedVersion]
196
194
  })] }),
197
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
195
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
198
196
  className: "text-text-secondary",
199
197
  children: J("botlit.store.installed.mode", "Mode")
200
- }), /* @__PURE__ */ b("p", {
198
+ }), /* @__PURE__ */ x("p", {
201
199
  className: "font-medium flex items-center gap-1",
202
200
  children: [$(e.mode), e.mode]
203
201
  })] }),
204
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
202
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
205
203
  className: "text-text-secondary",
206
204
  children: J("botlit.store.installed.installed", "Installed")
207
- }), /* @__PURE__ */ y("p", {
205
+ }), /* @__PURE__ */ b("p", {
208
206
  className: "font-medium",
209
207
  children: d(e.installedAt)
210
208
  })] })
211
209
  ]
212
210
  }),
213
- /* @__PURE__ */ b("div", {
211
+ /* @__PURE__ */ x("div", {
214
212
  className: "mt-4 flex justify-end gap-2",
215
213
  children: [
216
- /* @__PURE__ */ b(c, {
214
+ /* @__PURE__ */ x(o, {
217
215
  variant: "ghost",
218
216
  size: "sm",
219
217
  onClick: (e) => {
220
- e.stopPropagation(), D(`store/package/${i}`);
218
+ e.stopPropagation(), O(`store/package/${i}`);
221
219
  },
222
- children: [/* @__PURE__ */ y(fe, { className: "h-4 w-4 mr-1" }), J("botlit.store.installed.viewInStore", "View in Store")]
220
+ children: [/* @__PURE__ */ b(fe, { className: "h-4 w-4 mr-1" }), J("botlit.store.installed.viewInStore", "View in Store")]
223
221
  }),
224
- a && /* @__PURE__ */ y(s, {
225
- permission: o.STORE_UPDATE,
226
- children: /* @__PURE__ */ b(c, {
222
+ a && /* @__PURE__ */ b(p, {
223
+ permission: f.STORE_UPDATE,
224
+ children: /* @__PURE__ */ x(o, {
227
225
  variant: "outline",
228
226
  size: "sm",
229
227
  onClick: (t) => {
230
228
  t.stopPropagation(), Te(e);
231
229
  },
232
- isLoading: ye,
233
- children: [/* @__PURE__ */ y(x, { className: "h-4 w-4 mr-1" }), J("botlit.store.installed.update", "Update")]
230
+ isLoading: ve,
231
+ children: [/* @__PURE__ */ b(S, { className: "h-4 w-4 mr-1" }), J("botlit.store.installed.update", "Update")]
234
232
  })
235
233
  }),
236
- /* @__PURE__ */ y(s, {
237
- permission: o.STORE_DELETE,
238
- children: /* @__PURE__ */ y(c, {
234
+ /* @__PURE__ */ b(p, {
235
+ permission: f.STORE_DELETE,
236
+ children: /* @__PURE__ */ b(o, {
239
237
  variant: "ghost",
240
238
  size: "sm",
241
239
  "aria-label": "Uninstall package",
@@ -243,7 +241,7 @@ var P = () => {
243
241
  onClick: (t) => {
244
242
  t.stopPropagation(), Q(e);
245
243
  },
246
- children: /* @__PURE__ */ y(T, { className: "h-4 w-4" })
244
+ children: /* @__PURE__ */ b(E, { className: "h-4 w-4" })
247
245
  })
248
246
  })
249
247
  ]
@@ -252,174 +250,174 @@ var P = () => {
252
250
  })
253
251
  });
254
252
  };
255
- return F ? /* @__PURE__ */ y(t, {
253
+ return I ? /* @__PURE__ */ b(t, {
256
254
  title: J("botlit.store.installed.title", "Installed packages"),
257
255
  description: J("botlit.store.installed.subtitle", "Packages installed from the BotManor Store"),
258
- children: /* @__PURE__ */ y("div", {
256
+ children: /* @__PURE__ */ b("div", {
259
257
  className: "space-y-4",
260
258
  children: [
261
259
  1,
262
260
  2,
263
261
  3
264
- ].map((e) => /* @__PURE__ */ y("div", { className: "h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
262
+ ].map((e) => /* @__PURE__ */ b("div", { className: "h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
265
263
  })
266
- }) : /* @__PURE__ */ b(t, {
264
+ }) : /* @__PURE__ */ x(t, {
267
265
  title: J("botlit.store.installed.title", "Installed packages"),
268
266
  description: J("botlit.store.installed.subtitle", "Packages installed from the BotManor Store"),
269
- actions: /* @__PURE__ */ b("div", {
267
+ actions: /* @__PURE__ */ x("div", {
270
268
  className: "flex gap-2",
271
- children: [/* @__PURE__ */ y(c, {
269
+ children: [/* @__PURE__ */ b(o, {
272
270
  variant: "outline",
273
- leftIcon: /* @__PURE__ */ y(w, { size: 16 }),
271
+ leftIcon: /* @__PURE__ */ b(w, { size: 16 }),
274
272
  onClick: () => void Ce(),
275
273
  isLoading: be,
276
274
  children: J("botlit.store.installed.checkUpdates", "Check updates")
277
- }), /* @__PURE__ */ y(c, {
278
- leftIcon: /* @__PURE__ */ y(C, { size: 16 }),
279
- onClick: () => D("store"),
275
+ }), /* @__PURE__ */ b(o, {
276
+ leftIcon: /* @__PURE__ */ b(C, { size: 16 }),
277
+ onClick: () => O("store"),
280
278
  children: J("botlit.store.installed.browseStore", "Browse Store")
281
279
  })]
282
280
  }),
283
281
  children: [
284
- /* @__PURE__ */ y(se, {
282
+ /* @__PURE__ */ b(oe, {
285
283
  className: "mb-6",
286
- icon: /* @__PURE__ */ y(C, { size: 18 }),
284
+ icon: /* @__PURE__ */ b(C, { size: 18 }),
287
285
  children: J("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.")
288
286
  }),
289
- I ? /* @__PURE__ */ y(ne, {
287
+ L ? /* @__PURE__ */ b(ne, {
290
288
  resource: "installed packages",
291
- error: I,
292
- onRetry: () => void L()
293
- }) : /* @__PURE__ */ b(le, { children: [
294
- /* @__PURE__ */ b("div", {
289
+ error: L,
290
+ onRetry: () => void R()
291
+ }) : /* @__PURE__ */ x(ce, { children: [
292
+ /* @__PURE__ */ x("div", {
295
293
  className: "grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",
296
294
  children: [
297
- /* @__PURE__ */ b(v, {
295
+ /* @__PURE__ */ x(y, {
298
296
  treatment: "glass",
299
297
  glow: !0,
300
298
  className: "p-6 text-center",
301
- children: [/* @__PURE__ */ y("p", {
299
+ children: [/* @__PURE__ */ b("p", {
302
300
  className: "text-3xl font-bold tabular-nums text-text-primary",
303
- children: P.length
304
- }), /* @__PURE__ */ y("p", {
301
+ children: F.length
302
+ }), /* @__PURE__ */ b("p", {
305
303
  className: "text-sm text-text-secondary",
306
304
  children: J("botlit.store.installed.totalInstalled", "Total installed")
307
305
  })]
308
306
  }),
309
- /* @__PURE__ */ b(v, {
307
+ /* @__PURE__ */ x(y, {
310
308
  treatment: "metric",
311
309
  className: "p-6 text-center",
312
- children: [/* @__PURE__ */ y("p", {
310
+ children: [/* @__PURE__ */ b("p", {
313
311
  className: "text-3xl font-bold tabular-nums text-text-primary",
314
- children: P.filter((e) => e.mode === "LINKED").length
315
- }), /* @__PURE__ */ y("p", {
312
+ children: F.filter((e) => e.mode === "LINKED").length
313
+ }), /* @__PURE__ */ b("p", {
316
314
  className: "text-sm text-text-secondary",
317
315
  children: J("botlit.store.installed.linked", "Linked")
318
316
  })]
319
317
  }),
320
- /* @__PURE__ */ b(v, {
318
+ /* @__PURE__ */ x(y, {
321
319
  treatment: "metric",
322
320
  className: "p-6 text-center",
323
- children: [/* @__PURE__ */ y("p", {
321
+ children: [/* @__PURE__ */ b("p", {
324
322
  className: "text-3xl font-bold tabular-nums text-text-primary",
325
- children: P.filter((e) => e.mode === "FORKED").length
326
- }), /* @__PURE__ */ y("p", {
323
+ children: F.filter((e) => e.mode === "FORKED").length
324
+ }), /* @__PURE__ */ b("p", {
327
325
  className: "text-sm text-text-secondary",
328
326
  children: J("botlit.store.installed.forked", "Forked")
329
327
  })]
330
328
  }),
331
- /* @__PURE__ */ b(v, {
329
+ /* @__PURE__ */ x(y, {
332
330
  treatment: "metric",
333
331
  className: "p-6 text-center",
334
- children: [/* @__PURE__ */ y("p", {
332
+ children: [/* @__PURE__ */ b("p", {
335
333
  className: "text-3xl font-bold tabular-nums text-text-primary",
336
334
  children: Se
337
- }), /* @__PURE__ */ y("p", {
335
+ }), /* @__PURE__ */ b("p", {
338
336
  className: "text-sm text-text-secondary",
339
337
  children: J("botlit.store.installed.updatesAvailable", "Updates available")
340
338
  })]
341
339
  })
342
340
  ]
343
341
  }),
344
- /* @__PURE__ */ b("div", {
342
+ /* @__PURE__ */ x("div", {
345
343
  className: "flex flex-col md:flex-row gap-4 mb-6",
346
- children: [/* @__PURE__ */ b("div", {
344
+ children: [/* @__PURE__ */ x("div", {
347
345
  className: "relative flex-1",
348
- children: [/* @__PURE__ */ y(me, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ y(l, {
346
+ children: [/* @__PURE__ */ b(T, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ b(s, {
349
347
  placeholder: J("botlit.store.installed.searchPlaceholder", "Search packages…"),
350
- value: B,
351
- onChange: (e) => V(e.target.value),
348
+ value: V,
349
+ onChange: (e) => ye(e.target.value),
352
350
  className: "pl-9"
353
351
  })]
354
- }), /* @__PURE__ */ y("div", {
352
+ }), /* @__PURE__ */ b("div", {
355
353
  className: "flex gap-2",
356
- children: /* @__PURE__ */ b(ce, {
354
+ children: /* @__PURE__ */ x(se, {
357
355
  "aria-label": "Filter by package type",
358
356
  className: "flex h-10 rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
359
357
  value: U,
360
358
  onChange: (e) => xe(e.target.value),
361
- children: [/* @__PURE__ */ y("option", {
359
+ children: [/* @__PURE__ */ b("option", {
362
360
  value: "all",
363
361
  children: J("botlit.store.filters.allTypes", "All types")
364
- }), oe.map((e) => /* @__PURE__ */ y("option", {
362
+ }), ae.map((e) => /* @__PURE__ */ b("option", {
365
363
  value: e,
366
364
  children: Y[e] ?? e
367
365
  }, e))]
368
366
  })
369
367
  })]
370
368
  }),
371
- X.length > 0 ? /* @__PURE__ */ y("div", {
369
+ X.length > 0 ? /* @__PURE__ */ b("div", {
372
370
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
373
- children: X.map((e) => /* @__PURE__ */ y(Ee, { pkg: e }, e.id))
374
- }) : /* @__PURE__ */ y(ee, {
375
- kind: B || U !== "all" ? "filtered" : "first-use",
371
+ children: X.map((e) => /* @__PURE__ */ b(Ee, { pkg: e }, e.id))
372
+ }) : /* @__PURE__ */ b(ee, {
373
+ kind: V || U !== "all" ? "filtered" : "first-use",
376
374
  illustration: "empty-generic",
377
- title: B || U !== "all" ? J("botlit.store.installed.noMatches", "No matching packages") : J("botlit.store.installed.empty", "No packages installed"),
378
- description: B || U !== "all" ? J("botlit.store.installed.noMatchesBody", "Try adjusting your search or type filter.") : J("botlit.store.installed.emptyBody", "Browse the BotManor Store to find agents, skills and tools to install."),
379
- action: /* @__PURE__ */ y(c, {
380
- onClick: () => D("store"),
381
- leftIcon: /* @__PURE__ */ y(de, { className: "h-4 w-4" }),
375
+ title: V || U !== "all" ? J("botlit.store.installed.noMatches", "No matching packages") : J("botlit.store.installed.empty", "No packages installed"),
376
+ description: V || U !== "all" ? J("botlit.store.installed.noMatchesBody", "Try adjusting your search or type filter.") : J("botlit.store.installed.emptyBody", "Browse the BotManor Store to find agents, skills and tools to install."),
377
+ action: /* @__PURE__ */ b(o, {
378
+ onClick: () => O("store"),
379
+ leftIcon: /* @__PURE__ */ b(de, { className: "h-4 w-4" }),
382
380
  children: J("botlit.store.installed.browseStore", "Browse Store")
383
381
  })
384
382
  }),
385
- /* @__PURE__ */ y(te, {
386
- hasMore: R,
387
- loadingMore: z,
388
- onLoadMore: () => void he(),
389
- loadedCount: P.length
383
+ /* @__PURE__ */ b(te, {
384
+ hasMore: z,
385
+ loadingMore: B,
386
+ onLoadMore: () => void me(),
387
+ loadedCount: F.length
390
388
  })
391
389
  ] }),
392
- /* @__PURE__ */ y(p, {
393
- name: K ? j(K) : null,
390
+ /* @__PURE__ */ b(m, {
391
+ name: K ? M(K) : null,
394
392
  version: K?.installedVersion,
395
- uninstalling: _e,
393
+ uninstalling: ge,
396
394
  onConfirm: () => void we(),
397
395
  onClose: () => q(null)
398
396
  }),
399
- Z && /* @__PURE__ */ y(({ pkg: e, onClose: t }) => {
400
- let l = M(e), u = k(e);
401
- return /* @__PURE__ */ y("div", {
397
+ Z && /* @__PURE__ */ b(({ pkg: e, onClose: t }) => {
398
+ let s = N(e), c = A(e);
399
+ return /* @__PURE__ */ b("div", {
402
400
  className: "fixed inset-0 bg-bg-overlay flex items-center justify-center z-50",
403
- children: /* @__PURE__ */ b("div", {
401
+ children: /* @__PURE__ */ x("div", {
404
402
  className: "bg-bg-surface rounded-lg shadow-xl max-w-2xl w-full mx-4 max-h-[90vh] overflow-y-auto",
405
403
  children: [
406
- /* @__PURE__ */ y("div", {
404
+ /* @__PURE__ */ b("div", {
407
405
  className: "p-6 border-b border-border-subtle",
408
- children: /* @__PURE__ */ b("div", {
406
+ children: /* @__PURE__ */ x("div", {
409
407
  className: "flex items-start justify-between",
410
- children: [/* @__PURE__ */ b("div", {
408
+ children: [/* @__PURE__ */ x("div", {
411
409
  className: "flex items-start gap-3",
412
- children: [/* @__PURE__ */ y("div", {
410
+ children: [/* @__PURE__ */ b("div", {
413
411
  className: "p-3 rounded-lg bg-bg-sunken text-3xl",
414
- children: l.icon
415
- }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("h2", {
412
+ children: s.icon
413
+ }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h2", {
416
414
  className: "text-xl font-bold",
417
- children: f(e.package) || u
418
- }), /* @__PURE__ */ y("p", {
415
+ children: l(e.package) || c
416
+ }), /* @__PURE__ */ b("p", {
419
417
  className: "text-sm text-text-secondary font-mono",
420
- children: u
418
+ children: c
421
419
  })] })]
422
- }), /* @__PURE__ */ y(c, {
420
+ }), /* @__PURE__ */ b(o, {
423
421
  variant: "ghost",
424
422
  size: "sm",
425
423
  "aria-label": "Close",
@@ -428,100 +426,100 @@ var P = () => {
428
426
  })]
429
427
  })
430
428
  }),
431
- /* @__PURE__ */ b("div", {
429
+ /* @__PURE__ */ x("div", {
432
430
  className: "p-6 space-y-6",
433
- children: [/* @__PURE__ */ b(n, { children: [/* @__PURE__ */ y(i, { children: /* @__PURE__ */ y(a, {
431
+ children: [/* @__PURE__ */ x(n, { children: [/* @__PURE__ */ b(i, { children: /* @__PURE__ */ b(a, {
434
432
  className: "text-base",
435
433
  children: J("botlit.store.installed.versionInfo", "Version information")
436
- }) }), /* @__PURE__ */ b(r, {
434
+ }) }), /* @__PURE__ */ x(r, {
437
435
  className: "space-y-4",
438
- children: [/* @__PURE__ */ b("div", {
436
+ children: [/* @__PURE__ */ x("div", {
439
437
  className: "grid grid-cols-2 gap-4",
440
- children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
438
+ children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
441
439
  className: "text-sm text-text-secondary",
442
440
  children: J("botlit.store.installed.installedVersion", "Installed version")
443
- }), /* @__PURE__ */ b("p", {
441
+ }), /* @__PURE__ */ x("p", {
444
442
  className: "font-mono font-medium",
445
443
  children: ["v", e.installedVersion]
446
- })] }), e.package && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
444
+ })] }), e.package && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
447
445
  className: "text-sm text-text-secondary",
448
446
  children: J("botlit.store.installed.latestVersion", "Latest version")
449
- }), /* @__PURE__ */ b("p", {
447
+ }), /* @__PURE__ */ x("p", {
450
448
  className: "font-mono font-medium",
451
449
  children: ["v", e.package.version]
452
450
  })] })]
453
- }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
451
+ }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
454
452
  className: "text-sm text-text-secondary mb-2",
455
453
  children: J("botlit.store.installed.installMode", "Installation mode")
456
- }), /* @__PURE__ */ b("div", {
454
+ }), /* @__PURE__ */ x("div", {
457
455
  className: "flex items-center gap-2",
458
456
  children: [
459
457
  $(e.mode),
460
- /* @__PURE__ */ y("span", {
458
+ /* @__PURE__ */ b("span", {
461
459
  className: "font-medium",
462
460
  children: e.mode
463
461
  }),
464
- /* @__PURE__ */ y("span", {
462
+ /* @__PURE__ */ b("span", {
465
463
  className: "text-sm text-text-secondary",
466
464
  children: e.mode === "LINKED" ? J("botlit.store.installed.linkedHint", "Tracks the store listing; update when a newer version is published") : J("botlit.store.installed.forkedHint", "Your own copy; store updates are not offered")
467
465
  })
468
466
  ]
469
467
  })] })]
470
- })] }), /* @__PURE__ */ b(n, { children: [/* @__PURE__ */ y(i, { children: /* @__PURE__ */ y(a, {
468
+ })] }), /* @__PURE__ */ x(n, { children: [/* @__PURE__ */ b(i, { children: /* @__PURE__ */ b(a, {
471
469
  className: "text-base",
472
470
  children: J("botlit.store.installed.metadata", "Metadata")
473
- }) }), /* @__PURE__ */ y(r, { children: /* @__PURE__ */ b("div", {
471
+ }) }), /* @__PURE__ */ b(r, { children: /* @__PURE__ */ x("div", {
474
472
  className: "grid grid-cols-2 gap-4 text-sm",
475
473
  children: [
476
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
474
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
477
475
  className: "text-text-secondary",
478
476
  children: J("botlit.store.installed.installedAt", "Installed at")
479
- }), /* @__PURE__ */ y("p", {
477
+ }), /* @__PURE__ */ b("p", {
480
478
  className: "font-medium",
481
479
  children: d(e.installedAt)
482
480
  })] }),
483
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
481
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
484
482
  className: "text-text-secondary",
485
483
  children: J("botlit.store.installed.installedBy", "Installed by")
486
- }), /* @__PURE__ */ y("p", {
484
+ }), /* @__PURE__ */ b("p", {
487
485
  className: "font-medium",
488
486
  children: e.installedBy
489
487
  })] }),
490
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
488
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
491
489
  className: "text-text-secondary",
492
490
  children: J("botlit.store.installed.packageId", "Package id")
493
- }), /* @__PURE__ */ y("p", {
491
+ }), /* @__PURE__ */ b("p", {
494
492
  className: "font-mono text-xs",
495
493
  children: e.packageId
496
494
  })] }),
497
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
495
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
498
496
  className: "text-text-secondary",
499
497
  children: J("botlit.store.installed.installationId", "Installation id")
500
- }), /* @__PURE__ */ y("p", {
498
+ }), /* @__PURE__ */ b("p", {
501
499
  className: "font-mono text-xs",
502
500
  children: e.id
503
501
  })] })
504
502
  ]
505
503
  }) })] })]
506
504
  }),
507
- /* @__PURE__ */ b("div", {
505
+ /* @__PURE__ */ x("div", {
508
506
  className: "p-6 border-t border-border-subtle flex justify-between",
509
- children: [/* @__PURE__ */ y(s, {
510
- permission: o.STORE_DELETE,
511
- children: /* @__PURE__ */ b(c, {
507
+ children: [/* @__PURE__ */ b(p, {
508
+ permission: f.STORE_DELETE,
509
+ children: /* @__PURE__ */ x(o, {
512
510
  variant: "destructive",
513
511
  onClick: () => Q(e),
514
- children: [/* @__PURE__ */ y(T, { className: "h-4 w-4 mr-2" }), J("botlit.store.installed.uninstall", "Uninstall")]
512
+ children: [/* @__PURE__ */ b(E, { className: "h-4 w-4 mr-2" }), J("botlit.store.installed.uninstall", "Uninstall")]
515
513
  })
516
- }), /* @__PURE__ */ b("div", {
514
+ }), /* @__PURE__ */ x("div", {
517
515
  className: "flex gap-2",
518
- children: [/* @__PURE__ */ y(ue, {
519
- to: O(`store/package/${u}`),
520
- children: /* @__PURE__ */ y(c, {
516
+ children: [/* @__PURE__ */ b(le, {
517
+ to: k(`store/package/${c}`),
518
+ children: /* @__PURE__ */ b(o, {
521
519
  variant: "outline",
522
520
  children: J("botlit.store.installed.viewInStore", "View in Store")
523
521
  })
524
- }), /* @__PURE__ */ y(c, {
522
+ }), /* @__PURE__ */ b(o, {
525
523
  variant: "outline",
526
524
  onClick: t,
527
525
  children: J("botlit.store.installed.close", "Close")
@@ -538,6 +536,6 @@ var P = () => {
538
536
  ]
539
537
  });
540
538
  };
541
- export { P as InstalledPackagesPage };
539
+ export { F as InstalledPackagesPage };
542
540
 
543
541
  //# sourceMappingURL=InstalledPackagesPage.js.map