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