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