@burdenoff/microfe-botmanor 2026.1120.21 → 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.
Files changed (36) hide show
  1. package/dist/botlit/components/A2ACardVerificationCard.d.ts +8 -0
  2. package/dist/botlit/components/A2ACardVerificationCard.js +123 -0
  3. package/dist/botlit/components/A2ACardVerificationCard.js.map +1 -0
  4. package/dist/botlit/components/A2ARunCollaborationPanel.d.ts +4 -0
  5. package/dist/botlit/components/A2ARunCollaborationPanel.js +149 -0
  6. package/dist/botlit/components/A2ARunCollaborationPanel.js.map +1 -0
  7. package/dist/botlit/components/A2AVerificationBadge.d.ts +4 -0
  8. package/dist/botlit/components/A2AVerificationBadge.js +37 -0
  9. package/dist/botlit/components/A2AVerificationBadge.js.map +1 -0
  10. package/dist/botlit/components/AgentA2APanel.js +85 -73
  11. package/dist/botlit/components/AgentA2APanel.js.map +1 -1
  12. package/dist/botlit/hooks/index.d.ts +1 -1
  13. package/dist/botlit/hooks/useA2A.d.ts +36 -0
  14. package/dist/botlit/hooks/useA2A.js +154 -109
  15. package/dist/botlit/hooks/useA2A.js.map +1 -1
  16. package/dist/botlit/hooks/useA2APlan.d.ts +8 -0
  17. package/dist/botlit/hooks/useA2APlan.js +24 -0
  18. package/dist/botlit/hooks/useA2APlan.js.map +1 -0
  19. package/dist/botlit/pages/A2AAgentDetailPage.js +384 -342
  20. package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
  21. package/dist/botlit/pages/A2ARegistryPage.js +148 -140
  22. package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
  23. package/dist/botlit/pages/ExecutionDetailPage.js +172 -170
  24. package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
  25. package/dist/botlit/utils/a2aRunCollaboration.d.ts +37 -0
  26. package/dist/botlit/utils/a2aRunCollaboration.js +42 -0
  27. package/dist/botlit/utils/a2aRunCollaboration.js.map +1 -0
  28. package/dist/botlit/utils/a2aVerificationStatus.d.ts +11 -0
  29. package/dist/botlit/utils/a2aVerificationStatus.js +18 -0
  30. package/dist/botlit/utils/a2aVerificationStatus.js.map +1 -0
  31. package/dist/generated/wspace-operations.d.ts +159 -0
  32. package/dist/generated/wspace-operations.js +186 -114
  33. package/dist/generated/wspace-operations.js.map +1 -1
  34. package/dist/generated/wspace-types.d.ts +74 -1
  35. package/dist/generated/wspace-types.js.map +1 -1
  36. 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 o } from "../components/EmptyState.js";
6
- import { BOTMANOR_PERMISSIONS as s } from "../permissions/botmanorPermissions.js";
7
- import { BotmanorPermissionGate as c } from "../permissions/useBotmanorPermissions.js";
8
- import { ErrorState as l } from "../components/ErrorState.js";
9
- import { Card as u, CardContent as d, CardDescription as f, CardHeader as p, CardTitle as m } from "../components/Card.js";
10
- import { Button as h } from "../components/Button.js";
11
- import { Badge as g, StatusBadge as ee } from "../components/Badge.js";
12
- import { FormField as _, Input as v, Textarea as te } from "../components/Input.js";
13
- import { A2ATrustBadge as ne } from "../components/A2ATrustBadge.js";
14
- import { A2A_ENTITLEMENT_PERMISSIONS as y, effectiveEntryDescription as re, effectiveEntryName as ie, entitlementDraftError as ae, entitlementsAllowConnections as oe, parseAgentCardJson as se, readAgentCard as ce, readEntitlements as le, toEntitlementDrafts as b, toEntitlementsInput as ue, unmanagedEntitlements as de, useA2AAgent as fe, useDeleteA2AAgent as pe, useRegisterA2AAgent as me, useUpdateA2AAgent as he, validateRegistryForm as ge } from "../hooks/useA2A.js";
15
- import { useAgents as _e } from "../hooks/useAgents.js";
16
- import { confirmAction as ve } from "../utils/confirmAction.js";
17
- import { formatDate as x, formatRelativeTime as ye } from "../utils/formatters.js";
18
- import { cn as be } from "../utils/cn.js";
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 S, useMemo as C, useState as w } from "react";
21
- import { PagePurpose as xe } from "@burdenoff/fe-libs/ui";
22
- import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
23
- import { useParams as Se } from "react-router";
24
- import { AlertTriangle as Ce, ArrowLeft as we, Edit as Te, ExternalLink as Ee, Globe as O, Key as De, Plus as k, Share2 as Oe, Shield as ke, Trash2 as Ae, Zap as je } from "lucide-react";
25
- import { toast as A } from "sonner";
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 Me = "a2a-entry-form", Ne = JSON.stringify({
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), j = {
47
+ }, null, 2), A = {
46
48
  name: "",
47
49
  description: "",
48
50
  wellKnownUrl: "",
49
51
  agentCardJson: ""
50
- }, M = "h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]";
51
- function N(e) {
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 Pe() {
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 P = ({ isNew: y = !1 }) => {
68
- let k = i(), { agentId: M } = Se(), { navigateTo: P } = e(), { data: F, loading: Ie, error: I, refetch: L } = fe(y ? void 0 : M), [Le, Re] = me(), [ze, Be] = he(), [Ve, He] = pe(), [R, z] = w(y), [Ue, We] = w(!1), [B, V] = w(j), [H, U] = w([]), [Ge, Ke] = w(() => JSON.stringify([j, []])), [qe, Je] = w(!1), [Ye, W] = w(!1), { data: G, hasMore: Xe, loadingMore: Ze, error: Qe, loadMore: $e } = _e(void 0, { enabled: R || !!F });
69
- S(() => {
70
- Xe && !Ze && !Qe && $e();
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
- Xe,
73
- Ze,
74
- Qe,
75
- $e
74
+ it,
75
+ at,
76
+ ot,
77
+ st
76
78
  ]);
77
- let et = C(() => new Map(G.map((e) => [e.id, e.name])), [G]), tt = (e) => {
78
- let t = e ? N(e) : j, n = e ? b(e.entitlements) : [];
79
- V(t), U(n), Ke(JSON.stringify([t, n])), Je(!1), W(!1), z(!0);
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
- S(() => {
82
- if (F && !y) {
83
- let e = N(F), t = b(F.entitlements);
84
- V(e), U(t), Ke(JSON.stringify([e, 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
- }, [F, y]);
87
- let K = R && !Ye && JSON.stringify([B, H]) !== Ge;
88
- S(() => {
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 = C(() => se(B.agentCardJson), [B.agentCardJson]), J = R ? q : F?.agentCard ?? void 0, Y = C(() => ce(J), [J]), X = C(() => ge(B), [B]), nt = H.map(ae), rt = Object.keys(X).length > 0 || nt.some((e) => e !== void 0), it = C(() => le(F?.entitlements), [F?.entitlements]), at = (e) => e ? k(e.key, e.fallback, e.params) : void 0, Z = (e) => qe ? at(X[e]) : void 0, Q = (e, t = !1) => {
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
- }, ot = (e) => {
104
+ }, mt = (e) => {
103
105
  switch (e) {
104
- case "agent:delegate": return k("botlit.a2aRegistry.entitlements.permission.delegate", "Delegate to this agent (agent:delegate)");
105
- case "task:create": return k("botlit.a2aRegistry.entitlements.permission.taskCreate", "Connect and send tasks (task:create)");
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
- }, $ = async (e) => {
109
- (!K || await ve({
110
- title: k("botlit.a2aRegistry.discard.title", "Discard changes?"),
111
- message: k("botlit.a2aRegistry.discard.message", "You have unsaved changes. If you leave now they will be lost."),
112
- confirmLabel: k("botlit.a2aRegistry.discard.confirm", "Discard"),
113
- cancelLabel: k("botlit.a2aRegistry.discard.keepEditing", "Keep editing")
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 (Ie && !y) return /* @__PURE__ */ E(a, {
117
- title: k("botlit.a2aRegistry.detail.loading", "Loading..."),
118
- children: /* @__PURE__ */ E("div", {
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 (I && !y) return /* @__PURE__ */ E(a, {
124
- title: k("botlit.a2aRegistry.detail.errorTitle", "A2A agent"),
125
- children: /* @__PURE__ */ E(l, {
126
- resource: k("botlit.a2aRegistry.detail.resource", "this A2A agent"),
127
- error: I,
128
- onRetry: () => void L()
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 (!F && !y) return /* @__PURE__ */ E(a, {
132
- title: k("botlit.a2aRegistry.notFound.title", "A2A Agent Not Found"),
133
- children: /* @__PURE__ */ E(o, {
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: k("botlit.a2aRegistry.notFound.title", "A2A Agent Not Found"),
136
- description: k("botlit.a2aRegistry.notFound.description", "This A2A agent doesn't exist in this workspace, or it was removed."),
137
- action: /* @__PURE__ */ E(h, {
138
- onClick: () => P("a2a"),
139
- children: k("botlit.a2aRegistry.actions.backToRegistry", "Back to A2A Registry")
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 st = async (e) => {
144
- if (e?.preventDefault(), Je(!0), rt || !q) {
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 = ie(B), n = re(B) || null, r = B.wellKnownUrl.trim() || null, i = ue(H, de(F?.entitlements));
155
- if (y) try {
156
- let e = await Le({
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), A.success(k("botlit.a2aRegistry.toast.registered", "Registered \"{{name}}\"", { name: e.name })), P(`a2a/${e.id}`);
165
+ W(!0), k.success(O("botlit.a2aRegistry.toast.registered", "Registered \"{{name}}\"", { name: e.name })), N(`a2a/${e.id}`);
164
166
  } catch (e) {
165
- A.error(e instanceof Error ? e.message : k("botlit.a2aRegistry.toast.registerFailed", "Failed to register A2A agent"));
167
+ k.error(e instanceof Error ? e.message : O("botlit.a2aRegistry.toast.registerFailed", "Failed to register A2A agent"));
166
168
  }
167
- else if (M) try {
168
- await ze({
169
- agentId: M,
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
- }), A.success(k("botlit.a2aRegistry.toast.updated", "A2A agent updated")), W(!0), z(!1), L();
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
- A.error(e instanceof Error ? e.message : k("botlit.a2aRegistry.toast.updateFailed", "Failed to update A2A agent"));
187
+ t() && r("error"), k.error(e instanceof Error ? e.message : O("botlit.a2aRegistry.toast.removeFailed", "Failed to remove A2A agent"));
180
188
  }
181
- }, ct = async () => {
182
- if (M) try {
183
- await Ve(M), t() && r("success"), A.success(k("botlit.a2aRegistry.toast.removed", "A2A agent removed")), P("a2a");
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
- t() && r("error"), A.error(e instanceof Error ? e.message : k("botlit.a2aRegistry.toast.removeFailed", "Failed to remove A2A agent"));
196
+ k.error(e instanceof Error ? e.message : O("botlit.a2aRegistry.toast.updateFailed", "Failed to update A2A agent"));
186
197
  }
187
- }, lt = (e, t) => U((n) => n.map((n, r) => r === e ? {
198
+ }, yt = (e, t) => U((n) => n.map((n, r) => r === e ? {
188
199
  ...n,
189
200
  ...t
190
- } : n)), ut = typeof q?.name == "string" ? q.name : "", dt = typeof q?.description == "string" ? q.description : "", ft = !!J, pt = !y && !oe(F?.entitlements);
191
- return /* @__PURE__ */ E(a, {
192
- title: /* @__PURE__ */ D("div", {
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__ */ E(h, {
206
+ /* @__PURE__ */ T(m, {
196
207
  variant: "ghost",
197
208
  size: "icon",
198
- "aria-label": k("botlit.a2aRegistry.actions.backToRegistry", "Back to A2A Registry"),
199
- onClick: () => void $(() => P("a2a")),
200
- children: /* @__PURE__ */ E(we, {
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__ */ E(Oe, {
216
+ /* @__PURE__ */ T(Ne, {
206
217
  size: 24,
207
218
  className: "text-primary",
208
219
  "aria-hidden": "true"
209
220
  }),
210
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
221
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("div", {
211
222
  className: "flex flex-wrap items-center gap-2",
212
223
  children: [
213
- /* @__PURE__ */ E("span", { children: y ? k("botlit.a2aRegistry.register.title", "Register A2A Agent") : F?.name }),
214
- !y && F && /* @__PURE__ */ E(ee, { status: F.status }),
215
- !y && F && /* @__PURE__ */ E(ne, { level: F.trustLevel })
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
- }), !y && F?.description && /* @__PURE__ */ E("p", {
229
+ }), !v && P?.description && /* @__PURE__ */ T("p", {
218
230
  className: "text-sm font-normal text-text-secondary",
219
- children: F.description
231
+ children: P.description
220
232
  })] })
221
233
  ]
222
234
  }),
223
- actions: /* @__PURE__ */ E("div", {
235
+ actions: /* @__PURE__ */ T("div", {
224
236
  className: "flex gap-2",
225
- children: R ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(h, {
237
+ children: L ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(m, {
226
238
  variant: "outline",
227
- onClick: () => void $(() => {
228
- y ? P("a2a") : (F && (V(N(F)), U(b(F.entitlements))), z(!1));
239
+ onClick: () => void ht(() => {
240
+ v ? N("a2a") : (P && (V(M(P)), U(y(P.entitlements))), R(!1));
229
241
  }),
230
- children: k("botlit.common.cancel", "Cancel")
231
- }), /* @__PURE__ */ E(h, {
242
+ children: O("botlit.common.cancel", "Cancel")
243
+ }), /* @__PURE__ */ T(m, {
232
244
  type: "submit",
233
- form: Me,
234
- isLoading: Re.loading || Be.loading,
235
- children: y ? k("botlit.a2aRegistry.actions.registerAgent", "Register Agent") : k("botlit.a2aRegistry.actions.saveChanges", "Save Changes")
236
- })] }) : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(c, {
237
- permission: s.A2A_REGISTRY_UPDATE,
238
- children: /* @__PURE__ */ E(h, {
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__ */ E(Te, { size: 16 }),
241
- onClick: () => tt(F),
242
- children: k("botlit.a2aRegistry.actions.edit", "Edit")
243
- })
244
- }), Ue ? /* @__PURE__ */ D("div", {
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("span", {
249
- className: "text-sm text-text-secondary max-w-xs",
250
- children: k("botlit.a2aRegistry.delete.warning", "Remove \"{{name}}\"? Connections that point to it are not removed.", { name: F?.name ?? "" })
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__ */ E(h, {
281
+ /* @__PURE__ */ T(m, {
253
282
  variant: "outline",
254
283
  size: "sm",
255
- onClick: () => We(!1),
256
- children: k("botlit.common.cancel", "Cancel")
284
+ onClick: () => Ze(!1),
285
+ children: O("botlit.common.cancel", "Cancel")
257
286
  }),
258
- /* @__PURE__ */ E(h, {
287
+ /* @__PURE__ */ T(m, {
259
288
  variant: "destructive",
260
289
  size: "sm",
261
290
  onClick: () => {
262
- n("medium"), ct();
291
+ n("medium"), _t();
263
292
  },
264
- isLoading: He.loading,
265
- children: k("botlit.a2aRegistry.delete.confirm", "Remove")
293
+ isLoading: qe.loading,
294
+ children: O("botlit.a2aRegistry.delete.confirm", "Remove")
266
295
  })
267
296
  ]
268
- }) : /* @__PURE__ */ E(c, {
269
- permission: s.A2A_REGISTRY_DELETE,
270
- children: /* @__PURE__ */ E(h, {
297
+ }) : /* @__PURE__ */ T(s, {
298
+ permission: o.A2A_REGISTRY_DELETE,
299
+ children: /* @__PURE__ */ T(m, {
271
300
  variant: "destructive",
272
- leftIcon: /* @__PURE__ */ E(Ae, { size: 16 }),
273
- onClick: () => We(!0),
274
- children: k("botlit.a2aRegistry.actions.remove", "Remove")
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__ */ D("div", {
307
+ children: /* @__PURE__ */ E("div", {
279
308
  className: "space-y-6",
280
309
  children: [
281
- /* @__PURE__ */ E(xe, {
282
- icon: /* @__PURE__ */ E(O, { size: 18 }),
283
- children: y ? k("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.") : k("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.")
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
- R && /* @__PURE__ */ D("form", {
286
- id: Me,
314
+ L && /* @__PURE__ */ E("form", {
315
+ id: Le,
287
316
  noValidate: !0,
288
- onSubmit: (e) => void st(e),
317
+ onSubmit: (e) => void gt(e),
289
318
  className: "space-y-6",
290
- children: [/* @__PURE__ */ D(u, { children: [/* @__PURE__ */ E(p, { children: /* @__PURE__ */ E(m, { children: k("botlit.a2aRegistry.form.basicInfo", "Basic Information") }) }), /* @__PURE__ */ D(d, {
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__ */ E(_, {
294
- label: k("botlit.a2aRegistry.form.agentCard", "Agent Card (JSON)"),
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: k("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."),
299
- children: /* @__PURE__ */ E(te, {
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: Ne,
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__ */ E(_, {
314
- label: k("botlit.a2aRegistry.form.name", "Name"),
342
+ /* @__PURE__ */ T(g, {
343
+ label: O("botlit.a2aRegistry.form.name", "Name"),
315
344
  htmlFor: "a2a-name",
316
345
  error: Z("name"),
317
- description: k("botlit.a2aRegistry.form.nameHelp", "Leave empty to use the card's name, so the list and the card agree."),
318
- children: /* @__PURE__ */ E(v, {
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: ut || k("botlit.a2aRegistry.form.namePlaceholder", "e.g., External Weather Agent"),
354
+ placeholder: bt || O("botlit.a2aRegistry.form.namePlaceholder", "e.g., External Weather Agent"),
326
355
  maxLength: 255
327
356
  })
328
357
  }),
329
- /* @__PURE__ */ E(_, {
330
- label: k("botlit.a2aRegistry.form.description", "Description"),
358
+ /* @__PURE__ */ T(g, {
359
+ label: O("botlit.a2aRegistry.form.description", "Description"),
331
360
  htmlFor: "a2a-description",
332
361
  error: Z("description"),
333
- description: k("botlit.a2aRegistry.form.descriptionHelp", "Leave empty to use the card's description."),
334
- children: /* @__PURE__ */ E(te, {
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: dt || k("botlit.a2aRegistry.form.descriptionPlaceholder", "Describe what this A2A agent does..."),
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__ */ E(_, {
347
- label: k("botlit.a2aRegistry.form.wellKnownUrl", "Well-Known URL"),
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: k("botlit.a2aRegistry.form.wellKnownUrlHelp", "Where the agent publishes its card (https only)."),
351
- children: /* @__PURE__ */ E(v, {
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__ */ D("div", { children: [/* @__PURE__ */ E("p", {
393
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
365
394
  className: "text-sm font-medium",
366
- children: k("botlit.a2aRegistry.form.trustLevel", "Trust Level")
367
- }), /* @__PURE__ */ D("div", {
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__ */ E(ne, { level: F?.trustLevel ?? "UNVERIFIED" }), /* @__PURE__ */ E("span", { children: k("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.") })]
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__ */ E(Fe, {
401
+ })] }), /* @__PURE__ */ T(Be, {
373
402
  drafts: H,
374
- issues: qe ? nt : [],
403
+ issues: tt ? ut : [],
375
404
  agents: G,
376
- permissionLabel: ot,
377
- onAdd: () => U((e) => [...e, Pe()]),
405
+ permissionLabel: mt,
406
+ onAdd: () => U((e) => [...e, ze()]),
378
407
  onRemove: (e) => U((t) => t.filter((t, n) => n !== e)),
379
- onChange: lt
408
+ onChange: yt
380
409
  })]
381
410
  }),
382
- ft ? /* @__PURE__ */ D(T, { children: [
383
- /* @__PURE__ */ D(u, {
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__ */ D(p, { children: [/* @__PURE__ */ D(m, {
428
+ children: [/* @__PURE__ */ E(f, { children: [/* @__PURE__ */ E(p, {
387
429
  className: "flex items-center gap-2",
388
- children: [/* @__PURE__ */ E(O, {
430
+ children: [/* @__PURE__ */ T(D, {
389
431
  size: 18,
390
432
  "aria-hidden": "true"
391
- }), k("botlit.a2aRegistry.card.title", "Agent Card")]
392
- }), /* @__PURE__ */ E(f, { children: k("botlit.a2aRegistry.card.description", "Public agent metadata per A2A spec") })] }), /* @__PURE__ */ D(d, {
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: [!y && F?.wellKnownUrl && /* @__PURE__ */ D("div", {
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__ */ E(O, {
438
+ children: [/* @__PURE__ */ T(D, {
397
439
  size: 16,
398
440
  className: "text-text-secondary",
399
441
  "aria-hidden": "true"
400
- }), /* @__PURE__ */ D("a", {
401
- href: F.wellKnownUrl,
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: [F.wellKnownUrl, /* @__PURE__ */ E(Ee, {
447
+ children: [P.wellKnownUrl, /* @__PURE__ */ T(Ae, {
406
448
  size: 12,
407
449
  "aria-hidden": "true"
408
450
  })]
409
451
  })]
410
- }), /* @__PURE__ */ D("dl", {
452
+ }), /* @__PURE__ */ E("dl", {
411
453
  className: "grid grid-cols-2 md:grid-cols-4 gap-4",
412
454
  children: [
413
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
455
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("dt", {
414
456
  className: "text-sm text-text-secondary",
415
- children: k("botlit.a2aRegistry.card.agentUrl", "Agent URL")
416
- }), /* @__PURE__ */ E("dd", {
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__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
462
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("dt", {
421
463
  className: "text-sm text-text-secondary",
422
- children: k("botlit.a2aRegistry.card.version", "Version")
423
- }), /* @__PURE__ */ E("dd", { children: /* @__PURE__ */ E(g, {
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__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
469
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("dt", {
428
470
  className: "text-sm text-text-secondary",
429
- children: k("botlit.a2aRegistry.card.provider", "Provider")
430
- }), /* @__PURE__ */ E("dd", {
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__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
476
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("dt", {
435
477
  className: "text-sm text-text-secondary",
436
- children: k("botlit.a2aRegistry.card.documentation", "Documentation")
437
- }), /* @__PURE__ */ E("dd", { children: Y.documentationUrl ? /* @__PURE__ */ D("a", {
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
- k("botlit.a2aRegistry.card.viewDocs", "View Docs"),
485
+ O("botlit.a2aRegistry.card.viewDocs", "View Docs"),
444
486
  " ",
445
- /* @__PURE__ */ E(Ee, {
487
+ /* @__PURE__ */ T(Ae, {
446
488
  size: 12,
447
489
  "aria-hidden": "true"
448
490
  })
449
491
  ]
450
- }) : /* @__PURE__ */ E("span", {
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__ */ D(u, { children: [/* @__PURE__ */ E(p, { children: /* @__PURE__ */ D(m, {
500
+ /* @__PURE__ */ E(l, { children: [/* @__PURE__ */ T(f, { children: /* @__PURE__ */ E(p, {
459
501
  className: "flex items-center gap-2",
460
- children: [/* @__PURE__ */ E(je, {
502
+ children: [/* @__PURE__ */ T(Ie, {
461
503
  size: 18,
462
504
  "aria-hidden": "true"
463
- }), k("botlit.a2aRegistry.capabilities.title", "Capabilities")]
464
- }) }), /* @__PURE__ */ D(d, { children: [/* @__PURE__ */ E("div", {
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: k("botlit.a2aRegistry.capabilities.streaming", "Streaming"),
511
+ label: O("botlit.a2aRegistry.capabilities.streaming", "Streaming"),
470
512
  value: Y.capabilities.streaming
471
513
  },
472
514
  {
473
515
  key: "pushNotifications",
474
- label: k("botlit.a2aRegistry.capabilities.pushNotifications", "Push Notifications"),
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: k("botlit.a2aRegistry.capabilities.stateHistory", "State History"),
521
+ label: O("botlit.a2aRegistry.capabilities.stateHistory", "State History"),
480
522
  value: Y.capabilities.stateTransitionHistory
481
523
  }
482
- ].map((e) => /* @__PURE__ */ D("div", {
483
- className: be("p-3 rounded-lg border", e.value ? "border-status-success-border bg-status-success-bg-subtle" : "border-border-subtle bg-bg-sunken"),
484
- children: [/* @__PURE__ */ E("p", {
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__ */ E(g, {
529
+ }), /* @__PURE__ */ T(h, {
488
530
  variant: e.value ? "success" : "secondary",
489
- children: e.value ? k("botlit.a2aRegistry.capabilities.supported", "Supported") : k("botlit.a2aRegistry.capabilities.notSupported", "Not Supported")
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__ */ E("div", {
534
+ }), /* @__PURE__ */ T("div", {
493
535
  className: "mt-4 grid grid-cols-2 gap-4",
494
536
  children: [{
495
537
  key: "input",
496
- label: k("botlit.a2aRegistry.capabilities.inputModes", "Input Modes"),
538
+ label: O("botlit.a2aRegistry.capabilities.inputModes", "Input Modes"),
497
539
  modes: Y.defaultInputModes
498
540
  }, {
499
541
  key: "output",
500
- label: k("botlit.a2aRegistry.capabilities.outputModes", "Output Modes"),
542
+ label: O("botlit.a2aRegistry.capabilities.outputModes", "Output Modes"),
501
543
  modes: Y.defaultOutputModes
502
- }].map((e) => /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
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__ */ E("div", {
547
+ }), /* @__PURE__ */ T("div", {
506
548
  className: "flex flex-wrap gap-2",
507
- children: e.modes.length > 0 ? e.modes.map((e) => /* @__PURE__ */ E(g, {
549
+ children: e.modes.length > 0 ? e.modes.map((e) => /* @__PURE__ */ T(h, {
508
550
  variant: "outline",
509
551
  children: e
510
- }, e)) : /* @__PURE__ */ E("span", {
552
+ }, e)) : /* @__PURE__ */ T("span", {
511
553
  className: "text-text-secondary",
512
- children: k("botlit.a2aRegistry.capabilities.none", "None")
554
+ children: O("botlit.a2aRegistry.capabilities.none", "None")
513
555
  })
514
556
  })] }, e.key))
515
557
  })] })] }),
516
- /* @__PURE__ */ D(u, { children: [/* @__PURE__ */ E(p, { children: /* @__PURE__ */ D(m, {
558
+ /* @__PURE__ */ E(l, { children: [/* @__PURE__ */ T(f, { children: /* @__PURE__ */ E(p, {
517
559
  className: "flex items-center gap-2",
518
- children: [/* @__PURE__ */ E(De, {
560
+ children: [/* @__PURE__ */ T(je, {
519
561
  size: 18,
520
562
  "aria-hidden": "true"
521
- }), k("botlit.a2aRegistry.auth.title", "Authentication")]
522
- }) }), /* @__PURE__ */ E(d, { children: /* @__PURE__ */ D("div", {
563
+ }), O("botlit.a2aRegistry.auth.title", "Authentication")]
564
+ }) }), /* @__PURE__ */ T(u, { children: /* @__PURE__ */ E("div", {
523
565
  className: "space-y-2",
524
- children: [/* @__PURE__ */ E("p", {
566
+ children: [/* @__PURE__ */ T("p", {
525
567
  className: "text-sm text-text-secondary",
526
- children: k("botlit.a2aRegistry.auth.schemes", "Supported Schemes")
527
- }), /* @__PURE__ */ E("div", {
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__ */ E(g, {
571
+ children: Y.authenticationSchemes.length > 0 ? Y.authenticationSchemes.map((e) => /* @__PURE__ */ T(h, {
530
572
  variant: "outline",
531
573
  children: e
532
- }, e)) : /* @__PURE__ */ E("span", {
574
+ }, e)) : /* @__PURE__ */ T("span", {
533
575
  className: "text-text-secondary",
534
- children: k("botlit.a2aRegistry.auth.noneSpecified", "None specified")
576
+ children: O("botlit.a2aRegistry.auth.noneSpecified", "None specified")
535
577
  })
536
578
  })]
537
579
  }) })] }),
538
- /* @__PURE__ */ D(u, { children: [/* @__PURE__ */ D(p, { children: [/* @__PURE__ */ D(m, {
580
+ /* @__PURE__ */ E(l, { children: [/* @__PURE__ */ E(f, { children: [/* @__PURE__ */ E(p, {
539
581
  className: "flex items-center gap-2",
540
- children: [/* @__PURE__ */ E(je, {
582
+ children: [/* @__PURE__ */ T(Ie, {
541
583
  size: 18,
542
584
  "aria-hidden": "true"
543
- }), k("botlit.a2aRegistry.skills.title", "Skills")]
544
- }), /* @__PURE__ */ E(f, { children: k("botlit.a2aRegistry.skills.description", "Capabilities exposed by this agent") })] }), /* @__PURE__ */ E(d, { children: Y.skills.length > 0 ? /* @__PURE__ */ E("div", {
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__ */ D("div", {
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__ */ D("div", {
591
+ /* @__PURE__ */ E("div", {
550
592
  className: "flex items-start justify-between gap-2",
551
- children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h4", {
593
+ children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h4", {
552
594
  className: "font-medium",
553
595
  children: e.name
554
- }), /* @__PURE__ */ E("p", {
596
+ }), /* @__PURE__ */ T("p", {
555
597
  className: "text-sm text-text-secondary",
556
598
  children: e.description
557
- })] }), /* @__PURE__ */ E(g, {
599
+ })] }), /* @__PURE__ */ T(h, {
558
600
  variant: "outline",
559
601
  children: e.id
560
602
  })]
561
603
  }),
562
- e.tags.length > 0 && /* @__PURE__ */ E("div", {
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__ */ E(g, {
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__ */ D("div", {
612
+ e.examples.length > 0 && /* @__PURE__ */ E("div", {
571
613
  className: "mt-2",
572
- children: [/* @__PURE__ */ E("p", {
614
+ children: [/* @__PURE__ */ T("p", {
573
615
  className: "text-xs text-text-secondary",
574
- children: k("botlit.a2aRegistry.skills.examples", "Examples:")
575
- }), /* @__PURE__ */ E("ul", {
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__ */ E("li", { children: e }, t))
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__ */ E("p", {
624
+ }) : /* @__PURE__ */ T("p", {
583
625
  className: "text-text-secondary",
584
- children: k("botlit.a2aRegistry.skills.none", "No skills defined")
626
+ children: O("botlit.a2aRegistry.skills.none", "No skills defined")
585
627
  }) })] })
586
- ] }) : /* @__PURE__ */ E(u, { children: /* @__PURE__ */ E(d, {
628
+ ] }) : /* @__PURE__ */ T(l, { children: /* @__PURE__ */ T(u, {
587
629
  className: "py-8 text-center text-sm text-text-secondary",
588
- children: k("botlit.a2aRegistry.preview.empty", "Paste a valid agent card above to preview the agent's capabilities, authentication and skills.")
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
- !R && F && /* @__PURE__ */ D(u, { children: [/* @__PURE__ */ D(p, { children: [/* @__PURE__ */ D(m, {
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__ */ E(ke, {
634
+ children: [/* @__PURE__ */ T(Pe, {
593
635
  size: 18,
594
636
  "aria-hidden": "true"
595
- }), k("botlit.a2aRegistry.entitlements.title", "Entitlements")]
596
- }), /* @__PURE__ */ E(f, { children: k("botlit.a2aRegistry.entitlements.description", "Which of your agents may connect to this agent, and until when") })] }), /* @__PURE__ */ D(d, {
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: [pt && /* @__PURE__ */ D("div", {
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__ */ E(Ce, {
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__ */ E("span", { children: k("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.") })]
606
- }), it.map((e) => /* @__PURE__ */ E("div", {
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__ */ D("dl", {
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__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
653
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("dt", {
612
654
  className: "text-text-secondary",
613
- children: k("botlit.a2aRegistry.entitlements.permissionLabel", "Permission")
614
- }), /* @__PURE__ */ E("dd", {
655
+ children: O("botlit.a2aRegistry.entitlements.permissionLabel", "Permission")
656
+ }), /* @__PURE__ */ T("dd", {
615
657
  className: "font-medium",
616
- children: ot(e.permission)
658
+ children: mt(e.permission)
617
659
  })] }),
618
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
660
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("dt", {
619
661
  className: "text-text-secondary",
620
- children: k("botlit.a2aRegistry.entitlements.agentsLabel", "Your agents")
621
- }), /* @__PURE__ */ E("dd", { children: e.agentIds.length > 0 ? e.agentIds.map((e) => et.get(e) ?? e).join(", ") : k("botlit.a2aRegistry.entitlements.anyAgent", "Any agent in this workspace") })] }),
622
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
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: k("botlit.a2aRegistry.entitlements.validityLabel", "Valid")
625
- }), /* @__PURE__ */ E("dd", { children: e.validFrom || e.validUntil ? k("botlit.a2aRegistry.entitlements.validRange", "{{from}} to {{until}}", {
626
- from: e.validFrom ? x(e.validFrom) : k("botlit.a2aRegistry.entitlements.openStart", "now"),
627
- until: e.validUntil ? x(e.validUntil) : k("botlit.a2aRegistry.entitlements.openEnd", "no end date")
628
- }) : k("botlit.a2aRegistry.entitlements.always", "Always") })] }),
629
- e.unenforced.length > 0 && /* @__PURE__ */ E("p", {
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: k("botlit.a2aRegistry.entitlements.unenforced", "Also stored but not enforced on A2A calls: {{fields}}", { fields: e.unenforced.join(", ") })
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__ */ E("p", {
676
+ }) : /* @__PURE__ */ T("p", {
635
677
  className: "text-sm text-text-secondary",
636
- children: k("botlit.a2aRegistry.entitlements.unrecognised", "A stored entitlement without a permission. The service ignores it.")
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
- !y && F && /* @__PURE__ */ D(u, { children: [/* @__PURE__ */ E(p, { children: /* @__PURE__ */ E(m, { children: k("botlit.a2aRegistry.metadata.title", "Metadata") }) }), /* @__PURE__ */ E(d, { children: /* @__PURE__ */ D("dl", {
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__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
685
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("dt", {
644
686
  className: "text-text-secondary",
645
- children: k("botlit.a2aRegistry.metadata.created", "Created")
646
- }), /* @__PURE__ */ E("dd", {
687
+ children: O("botlit.a2aRegistry.metadata.created", "Created")
688
+ }), /* @__PURE__ */ T("dd", {
647
689
  className: "font-medium",
648
- children: ye(F.createdAt)
690
+ children: b(P.createdAt)
649
691
  })] }),
650
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
692
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("dt", {
651
693
  className: "text-text-secondary",
652
- children: k("botlit.a2aRegistry.metadata.updated", "Updated")
653
- }), /* @__PURE__ */ E("dd", {
694
+ children: O("botlit.a2aRegistry.metadata.updated", "Updated")
695
+ }), /* @__PURE__ */ T("dd", {
654
696
  className: "font-medium",
655
- children: ye(F.updatedAt)
697
+ children: b(P.updatedAt)
656
698
  })] }),
657
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
699
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("dt", {
658
700
  className: "text-text-secondary",
659
- children: k("botlit.a2aRegistry.metadata.revision", "Revision")
660
- }), /* @__PURE__ */ E("dd", {
701
+ children: O("botlit.a2aRegistry.metadata.revision", "Revision")
702
+ }), /* @__PURE__ */ T("dd", {
661
703
  className: "font-medium",
662
- children: F.revision
704
+ children: P.revision
663
705
  })] }),
664
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
706
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("dt", {
665
707
  className: "text-text-secondary",
666
- children: k("botlit.a2aRegistry.metadata.visibility", "Visibility")
667
- }), /* @__PURE__ */ E("dd", { children: /* @__PURE__ */ E(g, {
708
+ children: O("botlit.a2aRegistry.metadata.visibility", "Visibility")
709
+ }), /* @__PURE__ */ T("dd", { children: /* @__PURE__ */ T(h, {
668
710
  variant: "outline",
669
- children: k(`botlit.visibility.${F.visibility.toLowerCase()}`, F.visibility.charAt(0) + F.visibility.slice(1).toLowerCase())
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
- }, Fe = ({ drafts: e, issues: t, agents: n, permissionLabel: r, onAdd: a, onRemove: o, onChange: s }) => {
677
- let c = i();
678
- return /* @__PURE__ */ D(u, { children: [/* @__PURE__ */ D(p, { children: [/* @__PURE__ */ D(m, {
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__ */ E(ke, {
722
+ children: [/* @__PURE__ */ T(Pe, {
681
723
  size: 18,
682
724
  "aria-hidden": "true"
683
- }), c("botlit.a2aRegistry.entitlements.title", "Entitlements")]
684
- }), /* @__PURE__ */ E(f, { children: c("botlit.a2aRegistry.entitlements.editorHelp", "Without an entitlement every connection to this agent is refused. Add one to let your agents connect; limit it to some agents or to a date range if needed.") })] }), /* @__PURE__ */ D(d, {
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__ */ E("p", {
729
+ e.length === 0 && /* @__PURE__ */ T("p", {
688
730
  className: "text-sm text-text-secondary",
689
- children: c("botlit.a2aRegistry.entitlements.noneYet", "No entitlements yet: connections will be refused.")
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}`, l = t[i];
693
- return /* @__PURE__ */ D("fieldset", {
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__ */ E("legend", {
738
+ /* @__PURE__ */ T("legend", {
697
739
  className: "px-1 text-sm font-medium",
698
- children: c("botlit.a2aRegistry.entitlements.rowLegend", "Entitlement {{number}}", { number: i + 1 })
740
+ children: s("botlit.a2aRegistry.entitlements.rowLegend", "Entitlement {{number}}", { number: i + 1 })
699
741
  }),
700
- /* @__PURE__ */ D("div", {
742
+ /* @__PURE__ */ E("div", {
701
743
  className: "grid grid-cols-1 md:grid-cols-3 gap-3",
702
744
  children: [
703
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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: c("botlit.a2aRegistry.entitlements.permissionLabel", "Permission")
707
- }), /* @__PURE__ */ E("select", {
748
+ children: s("botlit.a2aRegistry.entitlements.permissionLabel", "Permission")
749
+ }), /* @__PURE__ */ T("select", {
708
750
  id: `${a}-permission`,
709
- className: M,
751
+ className: j,
710
752
  value: e.permission,
711
- onChange: (e) => s(i, { permission: e.target.value }),
712
- children: y.map((e) => /* @__PURE__ */ E("option", {
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__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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: c("botlit.a2aRegistry.entitlements.validFrom", "Valid from (optional)")
721
- }), /* @__PURE__ */ E(v, {
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) => s(i, { validFrom: e.target.value })
767
+ onChange: (e) => o(i, { validFrom: e.target.value })
726
768
  })] }),
727
- /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
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: c("botlit.a2aRegistry.entitlements.validUntil", "Valid until (optional)")
731
- }), /* @__PURE__ */ E(v, {
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": l ? !0 : void 0,
736
- "aria-describedby": l ? `${a}-error` : void 0,
737
- onChange: (e) => s(i, { validUntil: e.target.value })
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
- l && /* @__PURE__ */ E("p", {
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: c("botlit.a2aRegistry.entitlements.validityOrder", "The end date must not be before the start date")
787
+ children: s("botlit.a2aRegistry.entitlements.validityOrder", "The end date must not be before the start date")
746
788
  }),
747
- /* @__PURE__ */ D("fieldset", { children: [
748
- /* @__PURE__ */ E("legend", {
789
+ /* @__PURE__ */ E("fieldset", { children: [
790
+ /* @__PURE__ */ T("legend", {
749
791
  className: "mb-1 text-sm font-medium",
750
- children: c("botlit.a2aRegistry.entitlements.agentsLabel", "Your agents")
792
+ children: s("botlit.a2aRegistry.entitlements.agentsLabel", "Your agents")
751
793
  }),
752
- /* @__PURE__ */ E("p", {
794
+ /* @__PURE__ */ T("p", {
753
795
  className: "mb-2 text-xs text-text-secondary",
754
- children: c("botlit.a2aRegistry.entitlements.agentsHelp", "Leave all unticked to allow any agent in this workspace.")
796
+ children: s("botlit.a2aRegistry.entitlements.agentsHelp", "Leave all unticked to allow any agent in this workspace.")
755
797
  }),
756
- n.length === 0 ? /* @__PURE__ */ E("p", {
798
+ n.length === 0 ? /* @__PURE__ */ T("p", {
757
799
  className: "text-xs text-text-secondary",
758
- children: c("botlit.a2aRegistry.entitlements.noAgents", "No agents in this workspace yet.")
759
- }) : /* @__PURE__ */ E("div", {
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__ */ D("label", {
805
+ return /* @__PURE__ */ E("label", {
764
806
  className: "flex items-center gap-2 text-sm",
765
- children: [/* @__PURE__ */ E("input", {
807
+ children: [/* @__PURE__ */ T("input", {
766
808
  type: "checkbox",
767
809
  checked: n,
768
- onChange: () => s(i, { agentIds: n ? e.agentIds.filter((e) => e !== t.id) : [...e.agentIds, t.id] })
769
- }), /* @__PURE__ */ E("span", {
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__ */ E("div", {
819
+ /* @__PURE__ */ T("div", {
778
820
  className: "flex justify-end",
779
- children: /* @__PURE__ */ E(h, {
821
+ children: /* @__PURE__ */ T(m, {
780
822
  type: "button",
781
823
  variant: "ghost",
782
824
  size: "sm",
783
- leftIcon: /* @__PURE__ */ E(Ae, { size: 14 }),
784
- onClick: () => o(i),
785
- children: c("botlit.a2aRegistry.entitlements.remove", "Remove entitlement")
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__ */ E(h, {
833
+ /* @__PURE__ */ T(m, {
792
834
  type: "button",
793
835
  variant: "outline",
794
- leftIcon: /* @__PURE__ */ E(k, { size: 16 }),
836
+ leftIcon: /* @__PURE__ */ T(O, { size: 16 }),
795
837
  onClick: a,
796
- children: c("botlit.a2aRegistry.entitlements.add", "Add entitlement")
838
+ children: s("botlit.a2aRegistry.entitlements.add", "Add entitlement")
797
839
  })
798
840
  ]
799
841
  })] });
800
842
  };
801
- export { P as A2AAgentDetailPage };
843
+ export { N as A2AAgentDetailPage };
802
844
 
803
845
  //# sourceMappingURL=A2AAgentDetailPage.js.map