@burdenoff/microfe-botmanor 2026.1127.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/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/package.json +3 -3
|
@@ -20,11 +20,11 @@ import { formatDate as Ce, formatRelativeTime as b } from "../utils/formatters.j
|
|
|
20
20
|
import { cn as we } from "../utils/cn.js";
|
|
21
21
|
import "../permissions/index.js";
|
|
22
22
|
import { useEffect as x, useMemo as S, useState as C } from "react";
|
|
23
|
-
import { PagePurpose as Te } from "@burdenoff/fe-libs/ui";
|
|
24
|
-
import { Fragment as
|
|
23
|
+
import { PagePurpose as Te, ThemedSelect as w } from "@burdenoff/fe-libs/ui";
|
|
24
|
+
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
25
25
|
import { useParams as Ee } from "react-router";
|
|
26
|
-
import { AlertTriangle as De, ArrowLeft as Oe, Edit as ke, ExternalLink as Ae, Globe as
|
|
27
|
-
import { toast as
|
|
26
|
+
import { AlertTriangle as De, ArrowLeft as Oe, Edit as ke, ExternalLink as Ae, Globe as O, Key as je, Plus as k, Power as Me, Share2 as Ne, Shield as Pe, Trash2 as Fe, Zap as Ie } from "lucide-react";
|
|
27
|
+
import { toast as A } from "sonner";
|
|
28
28
|
// src/botlit/pages/A2AAgentDetailPage.tsx
|
|
29
29
|
var Le = "a2a-entry-form", Re = JSON.stringify({
|
|
30
30
|
name: "Weather Agent",
|
|
@@ -44,13 +44,13 @@ var Le = "a2a-entry-form", Re = JSON.stringify({
|
|
|
44
44
|
name: "Forecast",
|
|
45
45
|
description: "Gives a 5-day forecast"
|
|
46
46
|
}]
|
|
47
|
-
}, null, 2),
|
|
47
|
+
}, null, 2), j = {
|
|
48
48
|
name: "",
|
|
49
49
|
description: "",
|
|
50
50
|
wellKnownUrl: "",
|
|
51
51
|
agentCardJson: ""
|
|
52
|
-
},
|
|
53
|
-
function
|
|
52
|
+
}, M = "h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]";
|
|
53
|
+
function N(e) {
|
|
54
54
|
return {
|
|
55
55
|
name: e.name,
|
|
56
56
|
description: e.description ?? "",
|
|
@@ -66,8 +66,8 @@ function ze() {
|
|
|
66
66
|
validUntil: ""
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
let
|
|
69
|
+
var P = ({ isNew: v = !1 }) => {
|
|
70
|
+
let w = i(), { agentId: k } = Ee(), { navigateTo: M } = e(), { data: P, loading: Ve, error: F, refetch: I } = he(v ? void 0 : k), [He, Ue] = ve(), [We, Ge] = ye(), [Ke, qe] = _e(), [Je, Ye] = ye(), [L, R] = C(v), [Xe, Ze] = C(!1), { data: z, loading: Qe } = ge(v ? void 0 : k, Xe), [B, V] = C(j), [H, U] = C([]), [$e, et] = C(() => JSON.stringify([j, []])), [tt, nt] = C(!1), [rt, W] = C(!1), { data: G, hasMore: it, loadingMore: at, error: ot, loadMore: st } = xe(void 0, { enabled: L || !!P });
|
|
71
71
|
x(() => {
|
|
72
72
|
it && !at && !ot && st();
|
|
73
73
|
}, [
|
|
@@ -77,12 +77,12 @@ var N = ({ isNew: v = !1 }) => {
|
|
|
77
77
|
st
|
|
78
78
|
]);
|
|
79
79
|
let ct = S(() => new Map(G.map((e) => [e.id, e.name])), [G]), lt = (e) => {
|
|
80
|
-
let t = e ?
|
|
80
|
+
let t = e ? N(e) : j, n = e ? y(e.entitlements) : [];
|
|
81
81
|
V(t), U(n), et(JSON.stringify([t, n])), nt(!1), W(!1), R(!0);
|
|
82
82
|
};
|
|
83
83
|
x(() => {
|
|
84
84
|
if (P && !v) {
|
|
85
|
-
let e =
|
|
85
|
+
let e = N(P), t = y(P.entitlements);
|
|
86
86
|
V(e), U(t), et(JSON.stringify([e, t]));
|
|
87
87
|
}
|
|
88
88
|
}, [P, v]);
|
|
@@ -94,7 +94,7 @@ var N = ({ isNew: v = !1 }) => {
|
|
|
94
94
|
};
|
|
95
95
|
return window.addEventListener("beforeunload", e), () => window.removeEventListener("beforeunload", e);
|
|
96
96
|
}, [K]);
|
|
97
|
-
let q = S(() => ue(B.agentCardJson), [B.agentCardJson]), J = L ? q : P?.agentCard ?? void 0, Y = S(() => de(J), [J]), X = S(() => be(B), [B]), ut = H.map(ce), dt = Object.keys(X).length > 0 || ut.some((e) => e !== void 0), ft = S(() => fe(P?.entitlements), [P?.entitlements]), pt = (e) => e ?
|
|
97
|
+
let q = S(() => ue(B.agentCardJson), [B.agentCardJson]), J = L ? q : P?.agentCard ?? void 0, Y = S(() => de(J), [J]), X = S(() => be(B), [B]), ut = H.map(ce), dt = Object.keys(X).length > 0 || ut.some((e) => e !== void 0), ft = S(() => fe(P?.entitlements), [P?.entitlements]), pt = (e) => e ? w(e.key, e.fallback, e.params) : void 0, Z = (e) => tt ? pt(X[e]) : void 0, Q = (e, t = !1) => {
|
|
98
98
|
let n = Z(e), r = `a2a-${e}`;
|
|
99
99
|
return {
|
|
100
100
|
id: r,
|
|
@@ -103,42 +103,43 @@ var N = ({ isNew: v = !1 }) => {
|
|
|
103
103
|
};
|
|
104
104
|
}, mt = (e) => {
|
|
105
105
|
switch (e) {
|
|
106
|
-
case "agent:delegate": return
|
|
107
|
-
case "task:create": return
|
|
106
|
+
case "agent:delegate": return w("botlit.a2aRegistry.entitlements.permission.delegate", "Delegate to this agent (agent:delegate)");
|
|
107
|
+
case "task:create": return w("botlit.a2aRegistry.entitlements.permission.taskCreate", "Connect and send tasks (task:create)");
|
|
108
108
|
default: return e;
|
|
109
109
|
}
|
|
110
110
|
}, ht = async (e) => {
|
|
111
111
|
(!K || await Se({
|
|
112
|
-
title:
|
|
113
|
-
message:
|
|
114
|
-
confirmLabel:
|
|
115
|
-
cancelLabel:
|
|
112
|
+
title: w("botlit.a2aRegistry.discard.title", "Discard changes?"),
|
|
113
|
+
message: w("botlit.a2aRegistry.discard.message", "You have unsaved changes. If you leave now they will be lost."),
|
|
114
|
+
confirmLabel: w("botlit.a2aRegistry.discard.confirm", "Discard"),
|
|
115
|
+
cancelLabel: w("botlit.a2aRegistry.discard.keepEditing", "Keep editing")
|
|
116
116
|
})) && (W(!0), e());
|
|
117
117
|
};
|
|
118
|
-
if (Ve && !v) return /* @__PURE__ */
|
|
119
|
-
title:
|
|
120
|
-
children: /* @__PURE__ */
|
|
118
|
+
if (Ve && !v) return /* @__PURE__ */ E(a, {
|
|
119
|
+
title: w("botlit.a2aRegistry.detail.loading", "Loading..."),
|
|
120
|
+
children: /* @__PURE__ */ E("div", {
|
|
121
121
|
className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg",
|
|
122
122
|
"aria-busy": "true"
|
|
123
123
|
})
|
|
124
124
|
});
|
|
125
|
-
if (F && !v) return /* @__PURE__ */
|
|
126
|
-
title:
|
|
127
|
-
children: /* @__PURE__ */
|
|
128
|
-
resource:
|
|
125
|
+
if (F && !v) return /* @__PURE__ */ E(a, {
|
|
126
|
+
title: w("botlit.a2aRegistry.detail.errorTitle", "A2A agent"),
|
|
127
|
+
children: /* @__PURE__ */ E(c, {
|
|
128
|
+
resource: w("botlit.a2aRegistry.detail.resource", "this A2A agent"),
|
|
129
129
|
error: F,
|
|
130
130
|
onRetry: () => void I()
|
|
131
131
|
})
|
|
132
132
|
});
|
|
133
|
-
if (!P && !v) return /* @__PURE__ */
|
|
134
|
-
title:
|
|
135
|
-
children: /* @__PURE__ */
|
|
133
|
+
if (!P && !v) return /* @__PURE__ */ E(a, {
|
|
134
|
+
title: w("botlit.a2aRegistry.notFound.title", "A2A Agent Not Found"),
|
|
135
|
+
children: /* @__PURE__ */ E(ee, {
|
|
136
|
+
kind: "not-found",
|
|
136
137
|
illustration: "empty-people",
|
|
137
|
-
title:
|
|
138
|
-
description:
|
|
139
|
-
action: /* @__PURE__ */
|
|
140
|
-
onClick: () =>
|
|
141
|
-
children:
|
|
138
|
+
title: w("botlit.a2aRegistry.notFound.title", "A2A Agent Not Found"),
|
|
139
|
+
description: w("botlit.a2aRegistry.notFound.description", "This A2A agent doesn't exist in this workspace, or it was removed."),
|
|
140
|
+
action: /* @__PURE__ */ E(m, {
|
|
141
|
+
onClick: () => M("a2a"),
|
|
142
|
+
children: w("botlit.a2aRegistry.actions.backToRegistry", "Back to A2A Registry")
|
|
142
143
|
})
|
|
143
144
|
})
|
|
144
145
|
});
|
|
@@ -162,13 +163,13 @@ var N = ({ isNew: v = !1 }) => {
|
|
|
162
163
|
agentCard: q,
|
|
163
164
|
entitlements: i
|
|
164
165
|
});
|
|
165
|
-
W(!0),
|
|
166
|
+
W(!0), A.success(w("botlit.a2aRegistry.toast.registered", "Registered \"{{name}}\"", { name: e.name })), M(`a2a/${e.id}`);
|
|
166
167
|
} catch (e) {
|
|
167
|
-
|
|
168
|
+
A.error(e instanceof Error ? e.message : w("botlit.a2aRegistry.toast.registerFailed", "Failed to register A2A agent"));
|
|
168
169
|
}
|
|
169
|
-
else if (
|
|
170
|
+
else if (k) try {
|
|
170
171
|
await We({
|
|
171
|
-
agentId:
|
|
172
|
+
agentId: k,
|
|
172
173
|
input: {
|
|
173
174
|
name: t,
|
|
174
175
|
description: n,
|
|
@@ -176,156 +177,156 @@ var N = ({ isNew: v = !1 }) => {
|
|
|
176
177
|
agentCard: q,
|
|
177
178
|
entitlements: i
|
|
178
179
|
}
|
|
179
|
-
}),
|
|
180
|
+
}), A.success(w("botlit.a2aRegistry.toast.updated", "A2A agent updated")), W(!0), R(!1), I();
|
|
180
181
|
} catch (e) {
|
|
181
|
-
|
|
182
|
+
A.error(e instanceof Error ? e.message : w("botlit.a2aRegistry.toast.updateFailed", "Failed to update A2A agent"));
|
|
182
183
|
}
|
|
183
184
|
}, _t = async () => {
|
|
184
|
-
if (
|
|
185
|
-
await Ke(
|
|
185
|
+
if (k) try {
|
|
186
|
+
await Ke(k), t() && r("success"), A.success(w("botlit.a2aRegistry.toast.removed", "A2A agent removed")), M("a2a");
|
|
186
187
|
} catch (e) {
|
|
187
|
-
t() && r("error"),
|
|
188
|
+
t() && r("error"), A.error(e instanceof Error ? e.message : w("botlit.a2aRegistry.toast.removeFailed", "Failed to remove A2A agent"));
|
|
188
189
|
}
|
|
189
190
|
}, $ = P?.status === "ARCHIVED", vt = async () => {
|
|
190
|
-
if (
|
|
191
|
+
if (k && P) try {
|
|
191
192
|
await Je({
|
|
192
|
-
agentId:
|
|
193
|
+
agentId: k,
|
|
193
194
|
input: { status: $ ? "ACTIVE" : "ARCHIVED" }
|
|
194
|
-
}),
|
|
195
|
+
}), A.success($ ? w("botlit.a2aRegistry.toast.enabled", "A2A agent enabled") : w("botlit.a2aRegistry.toast.disabled", "A2A agent disabled")), I();
|
|
195
196
|
} catch (e) {
|
|
196
|
-
|
|
197
|
+
A.error(e instanceof Error ? e.message : w("botlit.a2aRegistry.toast.updateFailed", "Failed to update A2A agent"));
|
|
197
198
|
}
|
|
198
199
|
}, yt = (e, t) => U((n) => n.map((n, r) => r === e ? {
|
|
199
200
|
...n,
|
|
200
201
|
...t
|
|
201
202
|
} : n)), bt = typeof q?.name == "string" ? q.name : "", xt = typeof q?.description == "string" ? q.description : "", St = !!J, Ct = !v && !le(P?.entitlements);
|
|
202
|
-
return /* @__PURE__ */
|
|
203
|
-
title: /* @__PURE__ */
|
|
203
|
+
return /* @__PURE__ */ E(a, {
|
|
204
|
+
title: /* @__PURE__ */ D("div", {
|
|
204
205
|
className: "flex items-center gap-3",
|
|
205
206
|
children: [
|
|
206
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ E(m, {
|
|
207
208
|
variant: "ghost",
|
|
208
209
|
size: "icon",
|
|
209
|
-
"aria-label":
|
|
210
|
-
onClick: () => void ht(() =>
|
|
211
|
-
children: /* @__PURE__ */
|
|
210
|
+
"aria-label": w("botlit.a2aRegistry.actions.backToRegistry", "Back to A2A Registry"),
|
|
211
|
+
onClick: () => void ht(() => M("a2a")),
|
|
212
|
+
children: /* @__PURE__ */ E(Oe, {
|
|
212
213
|
size: 20,
|
|
213
214
|
"aria-hidden": "true"
|
|
214
215
|
})
|
|
215
216
|
}),
|
|
216
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ E(Ne, {
|
|
217
218
|
size: 24,
|
|
218
219
|
className: "text-primary",
|
|
219
220
|
"aria-hidden": "true"
|
|
220
221
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
|
|
222
223
|
className: "flex flex-wrap items-center gap-2",
|
|
223
224
|
children: [
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
!v && P && /* @__PURE__ */
|
|
226
|
-
!v && P && /* @__PURE__ */
|
|
227
|
-
!v && P && /* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ E("span", { children: v ? w("botlit.a2aRegistry.register.title", "Register A2A Agent") : P?.name }),
|
|
226
|
+
!v && P && /* @__PURE__ */ E(te, { status: P.status }),
|
|
227
|
+
!v && P && /* @__PURE__ */ E(re, { level: P.trustLevel }),
|
|
228
|
+
!v && P && /* @__PURE__ */ E(ae, { status: P.verificationStatus })
|
|
228
229
|
]
|
|
229
|
-
}), !v && P?.description && /* @__PURE__ */
|
|
230
|
+
}), !v && P?.description && /* @__PURE__ */ E("p", {
|
|
230
231
|
className: "text-sm font-normal text-text-secondary",
|
|
231
232
|
children: P.description
|
|
232
233
|
})] })
|
|
233
234
|
]
|
|
234
235
|
}),
|
|
235
|
-
actions: /* @__PURE__ */
|
|
236
|
+
actions: /* @__PURE__ */ E("div", {
|
|
236
237
|
className: "flex gap-2",
|
|
237
|
-
children: L ? /* @__PURE__ */
|
|
238
|
+
children: L ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(m, {
|
|
238
239
|
variant: "outline",
|
|
239
240
|
onClick: () => void ht(() => {
|
|
240
|
-
v ?
|
|
241
|
+
v ? M("a2a") : (P && (V(N(P)), U(y(P.entitlements))), R(!1));
|
|
241
242
|
}),
|
|
242
|
-
children:
|
|
243
|
-
}), /* @__PURE__ */
|
|
243
|
+
children: w("botlit.common.cancel", "Cancel")
|
|
244
|
+
}), /* @__PURE__ */ E(m, {
|
|
244
245
|
type: "submit",
|
|
245
246
|
form: Le,
|
|
246
247
|
isLoading: Ue.loading || Ge.loading,
|
|
247
|
-
children: v ?
|
|
248
|
-
})] }) : /* @__PURE__ */
|
|
248
|
+
children: v ? w("botlit.a2aRegistry.actions.registerAgent", "Register Agent") : w("botlit.a2aRegistry.actions.saveChanges", "Save Changes")
|
|
249
|
+
})] }) : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D(s, {
|
|
249
250
|
permission: o.A2A_REGISTRY_UPDATE,
|
|
250
|
-
children: [/* @__PURE__ */
|
|
251
|
+
children: [/* @__PURE__ */ E(m, {
|
|
251
252
|
variant: "outline",
|
|
252
|
-
leftIcon: /* @__PURE__ */
|
|
253
|
+
leftIcon: /* @__PURE__ */ E(ke, { size: 16 }),
|
|
253
254
|
onClick: () => lt(P),
|
|
254
|
-
children:
|
|
255
|
-
}), /* @__PURE__ */
|
|
255
|
+
children: w("botlit.a2aRegistry.actions.edit", "Edit")
|
|
256
|
+
}), /* @__PURE__ */ E(m, {
|
|
256
257
|
variant: "outline",
|
|
257
|
-
leftIcon: /* @__PURE__ */
|
|
258
|
+
leftIcon: /* @__PURE__ */ E(Me, { size: 16 }),
|
|
258
259
|
onClick: () => void vt(),
|
|
259
260
|
isLoading: Ye.loading,
|
|
260
261
|
disabled: !P,
|
|
261
|
-
children: $ ?
|
|
262
|
+
children: $ ? w("botlit.a2aRegistry.actions.enable", "Enable") : w("botlit.a2aRegistry.actions.disable", "Disable")
|
|
262
263
|
})]
|
|
263
|
-
}), Xe ? /* @__PURE__ */
|
|
264
|
+
}), Xe ? /* @__PURE__ */ D("div", {
|
|
264
265
|
className: "flex flex-wrap items-center gap-2",
|
|
265
266
|
role: "group",
|
|
266
267
|
children: [
|
|
267
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ D("div", {
|
|
268
269
|
className: "text-sm text-text-secondary max-w-sm",
|
|
269
270
|
"aria-live": "polite",
|
|
270
|
-
children: [/* @__PURE__ */
|
|
271
|
+
children: [/* @__PURE__ */ E("p", { children: Qe ? w("botlit.a2aRegistry.delete.checking", "Checking what uses \"{{name}}\"…", { name: P?.name ?? "" }) : z.connectionCount === 0 ? w("botlit.a2aRegistry.delete.warningUnused", "Remove \"{{name}}\"? No connection uses it.", { name: P?.name ?? "" }) : w("botlit.a2aRegistry.delete.warningUsed", "Remove \"{{name}}\"? Its {{count}} connection(s) are removed too. To pause it instead, use Disable.", {
|
|
271
272
|
name: P?.name ?? "",
|
|
272
273
|
count: z.connectionCount
|
|
273
|
-
}) }), !Qe && z.connections.length > 0 && /* @__PURE__ */
|
|
274
|
+
}) }), !Qe && z.connections.length > 0 && /* @__PURE__ */ E("ul", {
|
|
274
275
|
className: "mt-1 list-disc pl-5",
|
|
275
|
-
children: z.connections.map((e) => /* @__PURE__ */
|
|
276
|
+
children: z.connections.map((e) => /* @__PURE__ */ E("li", { children: w("botlit.a2aRegistry.delete.connectionFrom", "{{name}} (from {{agent}})", {
|
|
276
277
|
name: e.name,
|
|
277
278
|
agent: e.senderAgentName ?? e.senderAgentId
|
|
278
279
|
}) }, e.id))
|
|
279
280
|
})]
|
|
280
281
|
}),
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ E(m, {
|
|
282
283
|
variant: "outline",
|
|
283
284
|
size: "sm",
|
|
284
285
|
onClick: () => Ze(!1),
|
|
285
|
-
children:
|
|
286
|
+
children: w("botlit.common.cancel", "Cancel")
|
|
286
287
|
}),
|
|
287
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ E(m, {
|
|
288
289
|
variant: "destructive",
|
|
289
290
|
size: "sm",
|
|
290
291
|
onClick: () => {
|
|
291
292
|
n("medium"), _t();
|
|
292
293
|
},
|
|
293
294
|
isLoading: qe.loading,
|
|
294
|
-
children:
|
|
295
|
+
children: w("botlit.a2aRegistry.delete.confirm", "Remove")
|
|
295
296
|
})
|
|
296
297
|
]
|
|
297
|
-
}) : /* @__PURE__ */
|
|
298
|
+
}) : /* @__PURE__ */ E(s, {
|
|
298
299
|
permission: o.A2A_REGISTRY_DELETE,
|
|
299
|
-
children: /* @__PURE__ */
|
|
300
|
+
children: /* @__PURE__ */ E(m, {
|
|
300
301
|
variant: "destructive",
|
|
301
|
-
leftIcon: /* @__PURE__ */
|
|
302
|
+
leftIcon: /* @__PURE__ */ E(Fe, { size: 16 }),
|
|
302
303
|
onClick: () => Ze(!0),
|
|
303
|
-
children:
|
|
304
|
+
children: w("botlit.a2aRegistry.actions.remove", "Remove")
|
|
304
305
|
})
|
|
305
306
|
})] })
|
|
306
307
|
}),
|
|
307
|
-
children: /* @__PURE__ */
|
|
308
|
+
children: /* @__PURE__ */ D("div", {
|
|
308
309
|
className: "space-y-6",
|
|
309
310
|
children: [
|
|
310
|
-
/* @__PURE__ */
|
|
311
|
-
icon: /* @__PURE__ */
|
|
312
|
-
children: v ?
|
|
311
|
+
/* @__PURE__ */ E(Te, {
|
|
312
|
+
icon: /* @__PURE__ */ E(O, { size: 18 }),
|
|
313
|
+
children: v ? w("botlit.a2aRegistry.register.purpose", "Register an external agent by pasting its /.well-known/agent.json card. The entry records the agent's skills and which of your agents may connect to it. It starts as Unverified, and BotManor does not yet send tasks to external agents.") : w("botlit.a2aRegistry.detail.purpose", "This is one external agent registered in your A2A network. Inspect its agent card — the skills it advertises, its provider and trust level — and set which of your agents may connect to it. BotManor does not yet send tasks to external agents.")
|
|
313
314
|
}),
|
|
314
|
-
L && /* @__PURE__ */
|
|
315
|
+
L && /* @__PURE__ */ D("form", {
|
|
315
316
|
id: Le,
|
|
316
317
|
noValidate: !0,
|
|
317
318
|
onSubmit: (e) => void gt(e),
|
|
318
319
|
className: "space-y-6",
|
|
319
|
-
children: [/* @__PURE__ */
|
|
320
|
+
children: [/* @__PURE__ */ D(l, { children: [/* @__PURE__ */ E(f, { children: /* @__PURE__ */ E(p, { children: w("botlit.a2aRegistry.form.basicInfo", "Basic Information") }) }), /* @__PURE__ */ D(u, {
|
|
320
321
|
className: "space-y-4",
|
|
321
322
|
children: [
|
|
322
|
-
/* @__PURE__ */
|
|
323
|
-
label:
|
|
323
|
+
/* @__PURE__ */ E(g, {
|
|
324
|
+
label: w("botlit.a2aRegistry.form.agentCard", "Agent Card (JSON)"),
|
|
324
325
|
htmlFor: "a2a-agentCardJson",
|
|
325
326
|
required: !0,
|
|
326
327
|
error: Z("agentCardJson"),
|
|
327
|
-
description:
|
|
328
|
-
children: /* @__PURE__ */
|
|
328
|
+
description: w("botlit.a2aRegistry.form.agentCardHelp", "Paste the agent's /.well-known/agent.json document (at most 1 MiB). The preview below fills in once it parses."),
|
|
329
|
+
children: /* @__PURE__ */ E(ne, {
|
|
329
330
|
...Q("agentCardJson", !0),
|
|
330
331
|
value: B.agentCardJson,
|
|
331
332
|
onChange: (e) => V({
|
|
@@ -339,45 +340,45 @@ var N = ({ isNew: v = !1 }) => {
|
|
|
339
340
|
className: "font-mono text-xs"
|
|
340
341
|
})
|
|
341
342
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
343
|
-
label:
|
|
343
|
+
/* @__PURE__ */ E(g, {
|
|
344
|
+
label: w("botlit.a2aRegistry.form.name", "Name"),
|
|
344
345
|
htmlFor: "a2a-name",
|
|
345
346
|
error: Z("name"),
|
|
346
|
-
description:
|
|
347
|
-
children: /* @__PURE__ */
|
|
347
|
+
description: w("botlit.a2aRegistry.form.nameHelp", "Leave empty to use the card's name, so the list and the card agree."),
|
|
348
|
+
children: /* @__PURE__ */ E(_, {
|
|
348
349
|
...Q("name", !0),
|
|
349
350
|
value: B.name,
|
|
350
351
|
onChange: (e) => V({
|
|
351
352
|
...B,
|
|
352
353
|
name: e.target.value
|
|
353
354
|
}),
|
|
354
|
-
placeholder: bt ||
|
|
355
|
+
placeholder: bt || w("botlit.a2aRegistry.form.namePlaceholder", "e.g., External Weather Agent"),
|
|
355
356
|
maxLength: 255
|
|
356
357
|
})
|
|
357
358
|
}),
|
|
358
|
-
/* @__PURE__ */
|
|
359
|
-
label:
|
|
359
|
+
/* @__PURE__ */ E(g, {
|
|
360
|
+
label: w("botlit.a2aRegistry.form.description", "Description"),
|
|
360
361
|
htmlFor: "a2a-description",
|
|
361
362
|
error: Z("description"),
|
|
362
|
-
description:
|
|
363
|
-
children: /* @__PURE__ */
|
|
363
|
+
description: w("botlit.a2aRegistry.form.descriptionHelp", "Leave empty to use the card's description."),
|
|
364
|
+
children: /* @__PURE__ */ E(ne, {
|
|
364
365
|
...Q("description", !0),
|
|
365
366
|
value: B.description,
|
|
366
367
|
onChange: (e) => V({
|
|
367
368
|
...B,
|
|
368
369
|
description: e.target.value
|
|
369
370
|
}),
|
|
370
|
-
placeholder: xt ||
|
|
371
|
+
placeholder: xt || w("botlit.a2aRegistry.form.descriptionPlaceholder", "Describe what this A2A agent does..."),
|
|
371
372
|
maxLength: 2e3,
|
|
372
373
|
rows: 3
|
|
373
374
|
})
|
|
374
375
|
}),
|
|
375
|
-
/* @__PURE__ */
|
|
376
|
-
label:
|
|
376
|
+
/* @__PURE__ */ E(g, {
|
|
377
|
+
label: w("botlit.a2aRegistry.form.wellKnownUrl", "Well-Known URL"),
|
|
377
378
|
htmlFor: "a2a-wellKnownUrl",
|
|
378
379
|
error: Z("wellKnownUrl"),
|
|
379
|
-
description:
|
|
380
|
-
children: /* @__PURE__ */
|
|
380
|
+
description: w("botlit.a2aRegistry.form.wellKnownUrlHelp", "Where the agent publishes its card (https only)."),
|
|
381
|
+
children: /* @__PURE__ */ E(_, {
|
|
381
382
|
...Q("wellKnownUrl", !0),
|
|
382
383
|
type: "url",
|
|
383
384
|
inputMode: "url",
|
|
@@ -390,15 +391,15 @@ var N = ({ isNew: v = !1 }) => {
|
|
|
390
391
|
maxLength: 2048
|
|
391
392
|
})
|
|
392
393
|
}),
|
|
393
|
-
/* @__PURE__ */
|
|
394
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
394
395
|
className: "text-sm font-medium",
|
|
395
|
-
children:
|
|
396
|
-
}), /* @__PURE__ */
|
|
396
|
+
children: w("botlit.a2aRegistry.form.trustLevel", "Trust Level")
|
|
397
|
+
}), /* @__PURE__ */ D("div", {
|
|
397
398
|
className: "mt-2 flex flex-wrap items-center gap-2 text-sm text-text-secondary",
|
|
398
|
-
children: [/* @__PURE__ */
|
|
399
|
+
children: [/* @__PURE__ */ E(re, { level: P?.trustLevel ?? "UNVERIFIED" }), /* @__PURE__ */ E("span", { children: w("botlit.a2aRegistry.form.trustReadOnly", "Set by BotManor, not in this form. A new entry starts as Unverified; trust is raised only by verifying the agent's published card.") })]
|
|
399
400
|
})] })
|
|
400
401
|
]
|
|
401
|
-
})] }), /* @__PURE__ */
|
|
402
|
+
})] }), /* @__PURE__ */ E(Be, {
|
|
402
403
|
drafts: H,
|
|
403
404
|
issues: tt ? ut : [],
|
|
404
405
|
agents: G,
|
|
@@ -408,88 +409,88 @@ var N = ({ isNew: v = !1 }) => {
|
|
|
408
409
|
onChange: yt
|
|
409
410
|
})]
|
|
410
411
|
}),
|
|
411
|
-
!v && !L && P && $ && /* @__PURE__ */
|
|
412
|
+
!v && !L && P && $ && /* @__PURE__ */ D("div", {
|
|
412
413
|
role: "status",
|
|
413
414
|
className: "flex items-start gap-2 rounded-lg border border-status-warning-border bg-status-warning-bg-subtle p-3 text-sm",
|
|
414
|
-
children: [/* @__PURE__ */
|
|
415
|
+
children: [/* @__PURE__ */ E(De, {
|
|
415
416
|
size: 16,
|
|
416
417
|
className: "mt-0.5 shrink-0 text-status-warning-text",
|
|
417
418
|
"aria-hidden": "true"
|
|
418
|
-
}), /* @__PURE__ */
|
|
419
|
+
}), /* @__PURE__ */ E("span", { children: w("botlit.a2aRegistry.verification.disabled", "Disabled: messages and delegations to this agent are refused until it is enabled again.") })]
|
|
419
420
|
}),
|
|
420
|
-
!v && !L && P && /* @__PURE__ */
|
|
421
|
+
!v && !L && P && /* @__PURE__ */ E(ie, {
|
|
421
422
|
entry: P,
|
|
422
423
|
onVerified: () => void I()
|
|
423
424
|
}),
|
|
424
|
-
St ? /* @__PURE__ */
|
|
425
|
-
/* @__PURE__ */
|
|
425
|
+
St ? /* @__PURE__ */ D(T, { children: [
|
|
426
|
+
/* @__PURE__ */ D(l, {
|
|
426
427
|
treatment: "glass",
|
|
427
428
|
glow: !0,
|
|
428
|
-
children: [/* @__PURE__ */
|
|
429
|
+
children: [/* @__PURE__ */ D(f, { children: [/* @__PURE__ */ D(p, {
|
|
429
430
|
className: "flex items-center gap-2",
|
|
430
|
-
children: [/* @__PURE__ */
|
|
431
|
+
children: [/* @__PURE__ */ E(O, {
|
|
431
432
|
size: 18,
|
|
432
433
|
"aria-hidden": "true"
|
|
433
|
-
}),
|
|
434
|
-
}), /* @__PURE__ */
|
|
434
|
+
}), w("botlit.a2aRegistry.card.title", "Agent Card")]
|
|
435
|
+
}), /* @__PURE__ */ E(d, { children: w("botlit.a2aRegistry.card.description", "Public agent metadata per A2A spec") })] }), /* @__PURE__ */ D(u, {
|
|
435
436
|
className: "space-y-4",
|
|
436
|
-
children: [!v && P?.wellKnownUrl && /* @__PURE__ */
|
|
437
|
+
children: [!v && P?.wellKnownUrl && /* @__PURE__ */ D("div", {
|
|
437
438
|
className: "flex items-center gap-2 p-3 bg-bg-sunken rounded-lg",
|
|
438
|
-
children: [/* @__PURE__ */
|
|
439
|
+
children: [/* @__PURE__ */ E(O, {
|
|
439
440
|
size: 16,
|
|
440
441
|
className: "text-text-secondary",
|
|
441
442
|
"aria-hidden": "true"
|
|
442
|
-
}), /* @__PURE__ */
|
|
443
|
+
}), /* @__PURE__ */ D("a", {
|
|
443
444
|
href: P.wellKnownUrl,
|
|
444
445
|
target: "_blank",
|
|
445
446
|
rel: "noopener noreferrer",
|
|
446
447
|
className: "text-sm text-primary hover:underline flex items-center gap-1 break-all",
|
|
447
|
-
children: [P.wellKnownUrl, /* @__PURE__ */
|
|
448
|
+
children: [P.wellKnownUrl, /* @__PURE__ */ E(Ae, {
|
|
448
449
|
size: 12,
|
|
449
450
|
"aria-hidden": "true"
|
|
450
451
|
})]
|
|
451
452
|
})]
|
|
452
|
-
}), /* @__PURE__ */
|
|
453
|
+
}), /* @__PURE__ */ D("dl", {
|
|
453
454
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
454
455
|
children: [
|
|
455
|
-
/* @__PURE__ */
|
|
456
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
456
457
|
className: "text-sm text-text-secondary",
|
|
457
|
-
children:
|
|
458
|
-
}), /* @__PURE__ */
|
|
458
|
+
children: w("botlit.a2aRegistry.card.agentUrl", "Agent URL")
|
|
459
|
+
}), /* @__PURE__ */ E("dd", {
|
|
459
460
|
className: "font-medium font-mono text-sm break-all",
|
|
460
461
|
children: Y.url || "—"
|
|
461
462
|
})] }),
|
|
462
|
-
/* @__PURE__ */
|
|
463
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
463
464
|
className: "text-sm text-text-secondary",
|
|
464
|
-
children:
|
|
465
|
-
}), /* @__PURE__ */
|
|
465
|
+
children: w("botlit.a2aRegistry.card.version", "Version")
|
|
466
|
+
}), /* @__PURE__ */ E("dd", { children: /* @__PURE__ */ E(h, {
|
|
466
467
|
variant: "outline",
|
|
467
468
|
children: Y.version || "—"
|
|
468
469
|
}) })] }),
|
|
469
|
-
/* @__PURE__ */
|
|
470
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
470
471
|
className: "text-sm text-text-secondary",
|
|
471
|
-
children:
|
|
472
|
-
}), /* @__PURE__ */
|
|
472
|
+
children: w("botlit.a2aRegistry.card.provider", "Provider")
|
|
473
|
+
}), /* @__PURE__ */ E("dd", {
|
|
473
474
|
className: "font-medium",
|
|
474
475
|
children: Y.providerOrganization || "—"
|
|
475
476
|
})] }),
|
|
476
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
477
478
|
className: "text-sm text-text-secondary",
|
|
478
|
-
children:
|
|
479
|
-
}), /* @__PURE__ */
|
|
479
|
+
children: w("botlit.a2aRegistry.card.documentation", "Documentation")
|
|
480
|
+
}), /* @__PURE__ */ E("dd", { children: Y.documentationUrl ? /* @__PURE__ */ D("a", {
|
|
480
481
|
href: Y.documentationUrl,
|
|
481
482
|
target: "_blank",
|
|
482
483
|
rel: "noopener noreferrer",
|
|
483
484
|
className: "text-primary hover:underline flex items-center gap-1",
|
|
484
485
|
children: [
|
|
485
|
-
|
|
486
|
+
w("botlit.a2aRegistry.card.viewDocs", "View Docs"),
|
|
486
487
|
" ",
|
|
487
|
-
/* @__PURE__ */
|
|
488
|
+
/* @__PURE__ */ E(Ae, {
|
|
488
489
|
size: 12,
|
|
489
490
|
"aria-hidden": "true"
|
|
490
491
|
})
|
|
491
492
|
]
|
|
492
|
-
}) : /* @__PURE__ */
|
|
493
|
+
}) : /* @__PURE__ */ E("span", {
|
|
493
494
|
className: "text-text-secondary",
|
|
494
495
|
children: "—"
|
|
495
496
|
}) })] })
|
|
@@ -497,218 +498,218 @@ var N = ({ isNew: v = !1 }) => {
|
|
|
497
498
|
})]
|
|
498
499
|
})]
|
|
499
500
|
}),
|
|
500
|
-
/* @__PURE__ */
|
|
501
|
+
/* @__PURE__ */ D(l, { children: [/* @__PURE__ */ E(f, { children: /* @__PURE__ */ D(p, {
|
|
501
502
|
className: "flex items-center gap-2",
|
|
502
|
-
children: [/* @__PURE__ */
|
|
503
|
+
children: [/* @__PURE__ */ E(Ie, {
|
|
503
504
|
size: 18,
|
|
504
505
|
"aria-hidden": "true"
|
|
505
|
-
}),
|
|
506
|
-
}) }), /* @__PURE__ */
|
|
506
|
+
}), w("botlit.a2aRegistry.capabilities.title", "Capabilities")]
|
|
507
|
+
}) }), /* @__PURE__ */ D(u, { children: [/* @__PURE__ */ E("div", {
|
|
507
508
|
className: "grid grid-cols-2 md:grid-cols-3 gap-4",
|
|
508
509
|
children: [
|
|
509
510
|
{
|
|
510
511
|
key: "streaming",
|
|
511
|
-
label:
|
|
512
|
+
label: w("botlit.a2aRegistry.capabilities.streaming", "Streaming"),
|
|
512
513
|
value: Y.capabilities.streaming
|
|
513
514
|
},
|
|
514
515
|
{
|
|
515
516
|
key: "pushNotifications",
|
|
516
|
-
label:
|
|
517
|
+
label: w("botlit.a2aRegistry.capabilities.pushNotifications", "Push Notifications"),
|
|
517
518
|
value: Y.capabilities.pushNotifications
|
|
518
519
|
},
|
|
519
520
|
{
|
|
520
521
|
key: "stateTransitionHistory",
|
|
521
|
-
label:
|
|
522
|
+
label: w("botlit.a2aRegistry.capabilities.stateHistory", "State History"),
|
|
522
523
|
value: Y.capabilities.stateTransitionHistory
|
|
523
524
|
}
|
|
524
|
-
].map((e) => /* @__PURE__ */
|
|
525
|
+
].map((e) => /* @__PURE__ */ D("div", {
|
|
525
526
|
className: we("p-3 rounded-lg border", e.value ? "border-status-success-border bg-status-success-bg-subtle" : "border-border-subtle bg-bg-sunken"),
|
|
526
|
-
children: [/* @__PURE__ */
|
|
527
|
+
children: [/* @__PURE__ */ E("p", {
|
|
527
528
|
className: "font-medium",
|
|
528
529
|
children: e.label
|
|
529
|
-
}), /* @__PURE__ */
|
|
530
|
+
}), /* @__PURE__ */ E(h, {
|
|
530
531
|
variant: e.value ? "success" : "secondary",
|
|
531
|
-
children: e.value ?
|
|
532
|
+
children: e.value ? w("botlit.a2aRegistry.capabilities.supported", "Supported") : w("botlit.a2aRegistry.capabilities.notSupported", "Not Supported")
|
|
532
533
|
})]
|
|
533
534
|
}, e.key))
|
|
534
|
-
}), /* @__PURE__ */
|
|
535
|
+
}), /* @__PURE__ */ E("div", {
|
|
535
536
|
className: "mt-4 grid grid-cols-2 gap-4",
|
|
536
537
|
children: [{
|
|
537
538
|
key: "input",
|
|
538
|
-
label:
|
|
539
|
+
label: w("botlit.a2aRegistry.capabilities.inputModes", "Input Modes"),
|
|
539
540
|
modes: Y.defaultInputModes
|
|
540
541
|
}, {
|
|
541
542
|
key: "output",
|
|
542
|
-
label:
|
|
543
|
+
label: w("botlit.a2aRegistry.capabilities.outputModes", "Output Modes"),
|
|
543
544
|
modes: Y.defaultOutputModes
|
|
544
|
-
}].map((e) => /* @__PURE__ */
|
|
545
|
+
}].map((e) => /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
545
546
|
className: "text-sm text-text-secondary mb-2",
|
|
546
547
|
children: e.label
|
|
547
|
-
}), /* @__PURE__ */
|
|
548
|
+
}), /* @__PURE__ */ E("div", {
|
|
548
549
|
className: "flex flex-wrap gap-2",
|
|
549
|
-
children: e.modes.length > 0 ? e.modes.map((e) => /* @__PURE__ */
|
|
550
|
+
children: e.modes.length > 0 ? e.modes.map((e) => /* @__PURE__ */ E(h, {
|
|
550
551
|
variant: "outline",
|
|
551
552
|
children: e
|
|
552
|
-
}, e)) : /* @__PURE__ */
|
|
553
|
+
}, e)) : /* @__PURE__ */ E("span", {
|
|
553
554
|
className: "text-text-secondary",
|
|
554
|
-
children:
|
|
555
|
+
children: w("botlit.a2aRegistry.capabilities.none", "None")
|
|
555
556
|
})
|
|
556
557
|
})] }, e.key))
|
|
557
558
|
})] })] }),
|
|
558
|
-
/* @__PURE__ */
|
|
559
|
+
/* @__PURE__ */ D(l, { children: [/* @__PURE__ */ E(f, { children: /* @__PURE__ */ D(p, {
|
|
559
560
|
className: "flex items-center gap-2",
|
|
560
|
-
children: [/* @__PURE__ */
|
|
561
|
+
children: [/* @__PURE__ */ E(je, {
|
|
561
562
|
size: 18,
|
|
562
563
|
"aria-hidden": "true"
|
|
563
|
-
}),
|
|
564
|
-
}) }), /* @__PURE__ */
|
|
564
|
+
}), w("botlit.a2aRegistry.auth.title", "Authentication")]
|
|
565
|
+
}) }), /* @__PURE__ */ E(u, { children: /* @__PURE__ */ D("div", {
|
|
565
566
|
className: "space-y-2",
|
|
566
|
-
children: [/* @__PURE__ */
|
|
567
|
+
children: [/* @__PURE__ */ E("p", {
|
|
567
568
|
className: "text-sm text-text-secondary",
|
|
568
|
-
children:
|
|
569
|
-
}), /* @__PURE__ */
|
|
569
|
+
children: w("botlit.a2aRegistry.auth.schemes", "Supported Schemes")
|
|
570
|
+
}), /* @__PURE__ */ E("div", {
|
|
570
571
|
className: "flex flex-wrap gap-2",
|
|
571
|
-
children: Y.authenticationSchemes.length > 0 ? Y.authenticationSchemes.map((e) => /* @__PURE__ */
|
|
572
|
+
children: Y.authenticationSchemes.length > 0 ? Y.authenticationSchemes.map((e) => /* @__PURE__ */ E(h, {
|
|
572
573
|
variant: "outline",
|
|
573
574
|
children: e
|
|
574
|
-
}, e)) : /* @__PURE__ */
|
|
575
|
+
}, e)) : /* @__PURE__ */ E("span", {
|
|
575
576
|
className: "text-text-secondary",
|
|
576
|
-
children:
|
|
577
|
+
children: w("botlit.a2aRegistry.auth.noneSpecified", "None specified")
|
|
577
578
|
})
|
|
578
579
|
})]
|
|
579
580
|
}) })] }),
|
|
580
|
-
/* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ D(l, { children: [/* @__PURE__ */ D(f, { children: [/* @__PURE__ */ D(p, {
|
|
581
582
|
className: "flex items-center gap-2",
|
|
582
|
-
children: [/* @__PURE__ */
|
|
583
|
+
children: [/* @__PURE__ */ E(Ie, {
|
|
583
584
|
size: 18,
|
|
584
585
|
"aria-hidden": "true"
|
|
585
|
-
}),
|
|
586
|
-
}), /* @__PURE__ */
|
|
586
|
+
}), w("botlit.a2aRegistry.skills.title", "Skills")]
|
|
587
|
+
}), /* @__PURE__ */ E(d, { children: w("botlit.a2aRegistry.skills.description", "Capabilities exposed by this agent") })] }), /* @__PURE__ */ E(u, { children: Y.skills.length > 0 ? /* @__PURE__ */ E("div", {
|
|
587
588
|
className: "space-y-3",
|
|
588
|
-
children: Y.skills.map((e) => /* @__PURE__ */
|
|
589
|
+
children: Y.skills.map((e) => /* @__PURE__ */ D("div", {
|
|
589
590
|
className: "p-4 border border-border-subtle rounded-lg",
|
|
590
591
|
children: [
|
|
591
|
-
/* @__PURE__ */
|
|
592
|
+
/* @__PURE__ */ D("div", {
|
|
592
593
|
className: "flex items-start justify-between gap-2",
|
|
593
|
-
children: [/* @__PURE__ */
|
|
594
|
+
children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h4", {
|
|
594
595
|
className: "font-medium",
|
|
595
596
|
children: e.name
|
|
596
|
-
}), /* @__PURE__ */
|
|
597
|
+
}), /* @__PURE__ */ E("p", {
|
|
597
598
|
className: "text-sm text-text-secondary",
|
|
598
599
|
children: e.description
|
|
599
|
-
})] }), /* @__PURE__ */
|
|
600
|
+
})] }), /* @__PURE__ */ E(h, {
|
|
600
601
|
variant: "outline",
|
|
601
602
|
children: e.id
|
|
602
603
|
})]
|
|
603
604
|
}),
|
|
604
|
-
e.tags.length > 0 && /* @__PURE__ */
|
|
605
|
+
e.tags.length > 0 && /* @__PURE__ */ E("div", {
|
|
605
606
|
className: "mt-2 flex flex-wrap gap-1",
|
|
606
|
-
children: e.tags.map((e) => /* @__PURE__ */
|
|
607
|
+
children: e.tags.map((e) => /* @__PURE__ */ E(h, {
|
|
607
608
|
variant: "secondary",
|
|
608
609
|
className: "text-xs",
|
|
609
610
|
children: e
|
|
610
611
|
}, e))
|
|
611
612
|
}),
|
|
612
|
-
e.examples.length > 0 && /* @__PURE__ */
|
|
613
|
+
e.examples.length > 0 && /* @__PURE__ */ D("div", {
|
|
613
614
|
className: "mt-2",
|
|
614
|
-
children: [/* @__PURE__ */
|
|
615
|
+
children: [/* @__PURE__ */ E("p", {
|
|
615
616
|
className: "text-xs text-text-secondary",
|
|
616
|
-
children:
|
|
617
|
-
}), /* @__PURE__ */
|
|
617
|
+
children: w("botlit.a2aRegistry.skills.examples", "Examples:")
|
|
618
|
+
}), /* @__PURE__ */ E("ul", {
|
|
618
619
|
className: "text-sm text-text-secondary list-disc list-inside",
|
|
619
|
-
children: e.examples.map((e, t) => /* @__PURE__ */
|
|
620
|
+
children: e.examples.map((e, t) => /* @__PURE__ */ E("li", { children: e }, t))
|
|
620
621
|
})]
|
|
621
622
|
})
|
|
622
623
|
]
|
|
623
624
|
}, e.id))
|
|
624
|
-
}) : /* @__PURE__ */
|
|
625
|
+
}) : /* @__PURE__ */ E("p", {
|
|
625
626
|
className: "text-text-secondary",
|
|
626
|
-
children:
|
|
627
|
+
children: w("botlit.a2aRegistry.skills.none", "No skills defined")
|
|
627
628
|
}) })] })
|
|
628
|
-
] }) : /* @__PURE__ */
|
|
629
|
+
] }) : /* @__PURE__ */ E(l, { children: /* @__PURE__ */ E(u, {
|
|
629
630
|
className: "py-8 text-center text-sm text-text-secondary",
|
|
630
|
-
children:
|
|
631
|
+
children: w("botlit.a2aRegistry.preview.empty", "Paste a valid agent card above to preview the agent's capabilities, authentication and skills.")
|
|
631
632
|
}) }),
|
|
632
|
-
!L && P && /* @__PURE__ */
|
|
633
|
+
!L && P && /* @__PURE__ */ D(l, { children: [/* @__PURE__ */ D(f, { children: [/* @__PURE__ */ D(p, {
|
|
633
634
|
className: "flex items-center gap-2",
|
|
634
|
-
children: [/* @__PURE__ */
|
|
635
|
+
children: [/* @__PURE__ */ E(Pe, {
|
|
635
636
|
size: 18,
|
|
636
637
|
"aria-hidden": "true"
|
|
637
|
-
}),
|
|
638
|
-
}), /* @__PURE__ */
|
|
638
|
+
}), w("botlit.a2aRegistry.entitlements.title", "Entitlements")]
|
|
639
|
+
}), /* @__PURE__ */ E(d, { children: w("botlit.a2aRegistry.entitlements.description", "Which of your agents may connect to this agent, and until when") })] }), /* @__PURE__ */ D(u, {
|
|
639
640
|
className: "space-y-3",
|
|
640
|
-
children: [Ct && /* @__PURE__ */
|
|
641
|
+
children: [Ct && /* @__PURE__ */ D("div", {
|
|
641
642
|
role: "status",
|
|
642
643
|
className: "flex items-start gap-2 rounded-lg border border-status-warning-border bg-status-warning-bg-subtle p-3 text-sm",
|
|
643
|
-
children: [/* @__PURE__ */
|
|
644
|
+
children: [/* @__PURE__ */ E(De, {
|
|
644
645
|
size: 16,
|
|
645
646
|
className: "mt-0.5 shrink-0 text-status-warning-text",
|
|
646
647
|
"aria-hidden": "true"
|
|
647
|
-
}), /* @__PURE__ */
|
|
648
|
-
}), ft.map((e) => /* @__PURE__ */
|
|
648
|
+
}), /* @__PURE__ */ E("span", { children: w("botlit.a2aRegistry.entitlements.noneActive", "No active entitlement: every connection to this agent is refused. Edit the entry and add one to allow your agents to connect.") })]
|
|
649
|
+
}), ft.map((e) => /* @__PURE__ */ E("div", {
|
|
649
650
|
className: "p-4 border border-border-subtle rounded-lg",
|
|
650
|
-
children: e.recognised ? /* @__PURE__ */
|
|
651
|
+
children: e.recognised ? /* @__PURE__ */ D("dl", {
|
|
651
652
|
className: "grid grid-cols-1 md:grid-cols-3 gap-3 text-sm",
|
|
652
653
|
children: [
|
|
653
|
-
/* @__PURE__ */
|
|
654
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
654
655
|
className: "text-text-secondary",
|
|
655
|
-
children:
|
|
656
|
-
}), /* @__PURE__ */
|
|
656
|
+
children: w("botlit.a2aRegistry.entitlements.permissionLabel", "Permission")
|
|
657
|
+
}), /* @__PURE__ */ E("dd", {
|
|
657
658
|
className: "font-medium",
|
|
658
659
|
children: mt(e.permission)
|
|
659
660
|
})] }),
|
|
660
|
-
/* @__PURE__ */
|
|
661
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
661
662
|
className: "text-text-secondary",
|
|
662
|
-
children:
|
|
663
|
-
}), /* @__PURE__ */
|
|
664
|
-
/* @__PURE__ */
|
|
663
|
+
children: w("botlit.a2aRegistry.entitlements.agentsLabel", "Your agents")
|
|
664
|
+
}), /* @__PURE__ */ E("dd", { children: e.agentIds.length > 0 ? e.agentIds.map((e) => ct.get(e) ?? e).join(", ") : w("botlit.a2aRegistry.entitlements.anyAgent", "Any agent in this workspace") })] }),
|
|
665
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
665
666
|
className: "text-text-secondary",
|
|
666
|
-
children:
|
|
667
|
-
}), /* @__PURE__ */
|
|
668
|
-
from: e.validFrom ? Ce(e.validFrom) :
|
|
669
|
-
until: e.validUntil ? Ce(e.validUntil) :
|
|
670
|
-
}) :
|
|
671
|
-
e.unenforced.length > 0 && /* @__PURE__ */
|
|
667
|
+
children: w("botlit.a2aRegistry.entitlements.validityLabel", "Valid")
|
|
668
|
+
}), /* @__PURE__ */ E("dd", { children: e.validFrom || e.validUntil ? w("botlit.a2aRegistry.entitlements.validRange", "{{from}} to {{until}}", {
|
|
669
|
+
from: e.validFrom ? Ce(e.validFrom) : w("botlit.a2aRegistry.entitlements.openStart", "now"),
|
|
670
|
+
until: e.validUntil ? Ce(e.validUntil) : w("botlit.a2aRegistry.entitlements.openEnd", "no end date")
|
|
671
|
+
}) : w("botlit.a2aRegistry.entitlements.always", "Always") })] }),
|
|
672
|
+
e.unenforced.length > 0 && /* @__PURE__ */ E("p", {
|
|
672
673
|
className: "md:col-span-3 text-xs text-text-secondary",
|
|
673
|
-
children:
|
|
674
|
+
children: w("botlit.a2aRegistry.entitlements.unenforced", "Also stored but not enforced on A2A calls: {{fields}}", { fields: e.unenforced.join(", ") })
|
|
674
675
|
})
|
|
675
676
|
]
|
|
676
|
-
}) : /* @__PURE__ */
|
|
677
|
+
}) : /* @__PURE__ */ E("p", {
|
|
677
678
|
className: "text-sm text-text-secondary",
|
|
678
|
-
children:
|
|
679
|
+
children: w("botlit.a2aRegistry.entitlements.unrecognised", "A stored entitlement without a permission. The service ignores it.")
|
|
679
680
|
})
|
|
680
681
|
}, e.id))]
|
|
681
682
|
})] }),
|
|
682
|
-
!v && P && /* @__PURE__ */
|
|
683
|
+
!v && P && /* @__PURE__ */ D(l, { children: [/* @__PURE__ */ E(f, { children: /* @__PURE__ */ E(p, { children: w("botlit.a2aRegistry.metadata.title", "Metadata") }) }), /* @__PURE__ */ E(u, { children: /* @__PURE__ */ D("dl", {
|
|
683
684
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4 text-sm",
|
|
684
685
|
children: [
|
|
685
|
-
/* @__PURE__ */
|
|
686
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
686
687
|
className: "text-text-secondary",
|
|
687
|
-
children:
|
|
688
|
-
}), /* @__PURE__ */
|
|
688
|
+
children: w("botlit.a2aRegistry.metadata.created", "Created")
|
|
689
|
+
}), /* @__PURE__ */ E("dd", {
|
|
689
690
|
className: "font-medium",
|
|
690
691
|
children: b(P.createdAt)
|
|
691
692
|
})] }),
|
|
692
|
-
/* @__PURE__ */
|
|
693
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
693
694
|
className: "text-text-secondary",
|
|
694
|
-
children:
|
|
695
|
-
}), /* @__PURE__ */
|
|
695
|
+
children: w("botlit.a2aRegistry.metadata.updated", "Updated")
|
|
696
|
+
}), /* @__PURE__ */ E("dd", {
|
|
696
697
|
className: "font-medium",
|
|
697
698
|
children: b(P.updatedAt)
|
|
698
699
|
})] }),
|
|
699
|
-
/* @__PURE__ */
|
|
700
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
700
701
|
className: "text-text-secondary",
|
|
701
|
-
children:
|
|
702
|
-
}), /* @__PURE__ */
|
|
702
|
+
children: w("botlit.a2aRegistry.metadata.revision", "Revision")
|
|
703
|
+
}), /* @__PURE__ */ E("dd", {
|
|
703
704
|
className: "font-medium",
|
|
704
705
|
children: P.revision
|
|
705
706
|
})] }),
|
|
706
|
-
/* @__PURE__ */
|
|
707
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
707
708
|
className: "text-text-secondary",
|
|
708
|
-
children:
|
|
709
|
-
}), /* @__PURE__ */
|
|
709
|
+
children: w("botlit.a2aRegistry.metadata.visibility", "Visibility")
|
|
710
|
+
}), /* @__PURE__ */ E("dd", { children: /* @__PURE__ */ E(h, {
|
|
710
711
|
variant: "outline",
|
|
711
|
-
children:
|
|
712
|
+
children: w(`botlit.visibility.${P.visibility.toLowerCase()}`, P.visibility.charAt(0) + P.visibility.slice(1).toLowerCase())
|
|
712
713
|
}) })] })
|
|
713
714
|
]
|
|
714
715
|
}) })] })
|
|
@@ -717,60 +718,60 @@ var N = ({ isNew: v = !1 }) => {
|
|
|
717
718
|
});
|
|
718
719
|
}, Be = ({ drafts: e, issues: t, agents: n, permissionLabel: r, onAdd: a, onRemove: ee, onChange: o }) => {
|
|
719
720
|
let s = i();
|
|
720
|
-
return /* @__PURE__ */
|
|
721
|
+
return /* @__PURE__ */ D(l, { children: [/* @__PURE__ */ D(f, { children: [/* @__PURE__ */ D(p, {
|
|
721
722
|
className: "flex items-center gap-2",
|
|
722
|
-
children: [/* @__PURE__ */
|
|
723
|
+
children: [/* @__PURE__ */ E(Pe, {
|
|
723
724
|
size: 18,
|
|
724
725
|
"aria-hidden": "true"
|
|
725
726
|
}), s("botlit.a2aRegistry.entitlements.title", "Entitlements")]
|
|
726
|
-
}), /* @__PURE__ */
|
|
727
|
+
}), /* @__PURE__ */ E(d, { children: s("botlit.a2aRegistry.entitlements.editorHelp", "Without an entitlement every connection to this agent is refused. Add one to let your agents connect; limit it to some agents or to a date range if needed.") })] }), /* @__PURE__ */ D(u, {
|
|
727
728
|
className: "space-y-4",
|
|
728
729
|
children: [
|
|
729
|
-
e.length === 0 && /* @__PURE__ */
|
|
730
|
+
e.length === 0 && /* @__PURE__ */ E("p", {
|
|
730
731
|
className: "text-sm text-text-secondary",
|
|
731
732
|
children: s("botlit.a2aRegistry.entitlements.noneYet", "No entitlements yet: connections will be refused.")
|
|
732
733
|
}),
|
|
733
734
|
e.map((e, i) => {
|
|
734
735
|
let a = `a2a-entitlement-${i}`, c = t[i];
|
|
735
|
-
return /* @__PURE__ */
|
|
736
|
+
return /* @__PURE__ */ D("fieldset", {
|
|
736
737
|
className: "space-y-3 rounded-lg border border-border-subtle p-4",
|
|
737
738
|
children: [
|
|
738
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ E("legend", {
|
|
739
740
|
className: "px-1 text-sm font-medium",
|
|
740
741
|
children: s("botlit.a2aRegistry.entitlements.rowLegend", "Entitlement {{number}}", { number: i + 1 })
|
|
741
742
|
}),
|
|
742
|
-
/* @__PURE__ */
|
|
743
|
+
/* @__PURE__ */ D("div", {
|
|
743
744
|
className: "grid grid-cols-1 md:grid-cols-3 gap-3",
|
|
744
745
|
children: [
|
|
745
|
-
/* @__PURE__ */
|
|
746
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
746
747
|
htmlFor: `${a}-permission`,
|
|
747
748
|
className: "mb-1 block text-sm font-medium",
|
|
748
749
|
children: s("botlit.a2aRegistry.entitlements.permissionLabel", "Permission")
|
|
749
|
-
}), /* @__PURE__ */
|
|
750
|
+
}), /* @__PURE__ */ E(w, {
|
|
750
751
|
id: `${a}-permission`,
|
|
751
|
-
className:
|
|
752
|
+
className: M,
|
|
752
753
|
value: e.permission,
|
|
753
754
|
onChange: (e) => o(i, { permission: e.target.value }),
|
|
754
|
-
children: v.map((e) => /* @__PURE__ */
|
|
755
|
+
children: v.map((e) => /* @__PURE__ */ E("option", {
|
|
755
756
|
value: e,
|
|
756
757
|
children: r(e)
|
|
757
758
|
}, e))
|
|
758
759
|
})] }),
|
|
759
|
-
/* @__PURE__ */
|
|
760
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
760
761
|
htmlFor: `${a}-from`,
|
|
761
762
|
className: "mb-1 block text-sm font-medium",
|
|
762
763
|
children: s("botlit.a2aRegistry.entitlements.validFrom", "Valid from (optional)")
|
|
763
|
-
}), /* @__PURE__ */
|
|
764
|
+
}), /* @__PURE__ */ E(_, {
|
|
764
765
|
id: `${a}-from`,
|
|
765
766
|
type: "date",
|
|
766
767
|
value: e.validFrom,
|
|
767
768
|
onChange: (e) => o(i, { validFrom: e.target.value })
|
|
768
769
|
})] }),
|
|
769
|
-
/* @__PURE__ */
|
|
770
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
770
771
|
htmlFor: `${a}-until`,
|
|
771
772
|
className: "mb-1 block text-sm font-medium",
|
|
772
773
|
children: s("botlit.a2aRegistry.entitlements.validUntil", "Valid until (optional)")
|
|
773
|
-
}), /* @__PURE__ */
|
|
774
|
+
}), /* @__PURE__ */ E(_, {
|
|
774
775
|
id: `${a}-until`,
|
|
775
776
|
type: "date",
|
|
776
777
|
value: e.validUntil,
|
|
@@ -780,35 +781,35 @@ var N = ({ isNew: v = !1 }) => {
|
|
|
780
781
|
})] })
|
|
781
782
|
]
|
|
782
783
|
}),
|
|
783
|
-
c && /* @__PURE__ */
|
|
784
|
+
c && /* @__PURE__ */ E("p", {
|
|
784
785
|
id: `${a}-error`,
|
|
785
786
|
role: "alert",
|
|
786
787
|
className: "text-xs text-status-error-text",
|
|
787
788
|
children: s("botlit.a2aRegistry.entitlements.validityOrder", "The end date must not be before the start date")
|
|
788
789
|
}),
|
|
789
|
-
/* @__PURE__ */
|
|
790
|
-
/* @__PURE__ */
|
|
790
|
+
/* @__PURE__ */ D("fieldset", { children: [
|
|
791
|
+
/* @__PURE__ */ E("legend", {
|
|
791
792
|
className: "mb-1 text-sm font-medium",
|
|
792
793
|
children: s("botlit.a2aRegistry.entitlements.agentsLabel", "Your agents")
|
|
793
794
|
}),
|
|
794
|
-
/* @__PURE__ */
|
|
795
|
+
/* @__PURE__ */ E("p", {
|
|
795
796
|
className: "mb-2 text-xs text-text-secondary",
|
|
796
797
|
children: s("botlit.a2aRegistry.entitlements.agentsHelp", "Leave all unticked to allow any agent in this workspace.")
|
|
797
798
|
}),
|
|
798
|
-
n.length === 0 ? /* @__PURE__ */
|
|
799
|
+
n.length === 0 ? /* @__PURE__ */ E("p", {
|
|
799
800
|
className: "text-xs text-text-secondary",
|
|
800
801
|
children: s("botlit.a2aRegistry.entitlements.noAgents", "No agents in this workspace yet.")
|
|
801
|
-
}) : /* @__PURE__ */
|
|
802
|
+
}) : /* @__PURE__ */ E("div", {
|
|
802
803
|
className: "grid max-h-48 grid-cols-1 gap-1 overflow-y-auto md:grid-cols-2",
|
|
803
804
|
children: n.map((t) => {
|
|
804
805
|
let n = e.agentIds.includes(t.id);
|
|
805
|
-
return /* @__PURE__ */
|
|
806
|
+
return /* @__PURE__ */ D("label", {
|
|
806
807
|
className: "flex items-center gap-2 text-sm",
|
|
807
|
-
children: [/* @__PURE__ */
|
|
808
|
+
children: [/* @__PURE__ */ E("input", {
|
|
808
809
|
type: "checkbox",
|
|
809
810
|
checked: n,
|
|
810
811
|
onChange: () => o(i, { agentIds: n ? e.agentIds.filter((e) => e !== t.id) : [...e.agentIds, t.id] })
|
|
811
|
-
}), /* @__PURE__ */
|
|
812
|
+
}), /* @__PURE__ */ E("span", {
|
|
812
813
|
className: "truncate",
|
|
813
814
|
children: t.name
|
|
814
815
|
})]
|
|
@@ -816,13 +817,13 @@ var N = ({ isNew: v = !1 }) => {
|
|
|
816
817
|
})
|
|
817
818
|
})
|
|
818
819
|
] }),
|
|
819
|
-
/* @__PURE__ */
|
|
820
|
+
/* @__PURE__ */ E("div", {
|
|
820
821
|
className: "flex justify-end",
|
|
821
|
-
children: /* @__PURE__ */
|
|
822
|
+
children: /* @__PURE__ */ E(m, {
|
|
822
823
|
type: "button",
|
|
823
824
|
variant: "ghost",
|
|
824
825
|
size: "sm",
|
|
825
|
-
leftIcon: /* @__PURE__ */
|
|
826
|
+
leftIcon: /* @__PURE__ */ E(Fe, { size: 14 }),
|
|
826
827
|
onClick: () => ee(i),
|
|
827
828
|
children: s("botlit.a2aRegistry.entitlements.remove", "Remove entitlement")
|
|
828
829
|
})
|
|
@@ -830,16 +831,16 @@ var N = ({ isNew: v = !1 }) => {
|
|
|
830
831
|
]
|
|
831
832
|
}, a);
|
|
832
833
|
}),
|
|
833
|
-
/* @__PURE__ */
|
|
834
|
+
/* @__PURE__ */ E(m, {
|
|
834
835
|
type: "button",
|
|
835
836
|
variant: "outline",
|
|
836
|
-
leftIcon: /* @__PURE__ */
|
|
837
|
+
leftIcon: /* @__PURE__ */ E(k, { size: 16 }),
|
|
837
838
|
onClick: a,
|
|
838
839
|
children: s("botlit.a2aRegistry.entitlements.add", "Add entitlement")
|
|
839
840
|
})
|
|
840
841
|
]
|
|
841
842
|
})] });
|
|
842
843
|
};
|
|
843
|
-
export {
|
|
844
|
+
export { P as A2AAgentDetailPage };
|
|
844
845
|
|
|
845
846
|
//# sourceMappingURL=A2AAgentDetailPage.js.map
|