@burdenoff/microfe-botmanor 2026.1203.3 → 2026.1203.5

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