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