@burdenoff/microfe-botmanor 2026.1203.4 → 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 (127) hide show
  1. package/dist/botlit/BotlitRoutes.js +0 -1
  2. package/dist/botlit/BotlitRoutes.js.map +1 -1
  3. package/dist/botlit/components/A2ACardVerificationCard.js +0 -1
  4. package/dist/botlit/components/A2ACardVerificationCard.js.map +1 -1
  5. package/dist/botlit/components/AgentA2APanel.js +20 -21
  6. package/dist/botlit/components/AgentA2APanel.js.map +1 -1
  7. package/dist/botlit/components/AgentApprovalPanel.js +22 -23
  8. package/dist/botlit/components/AgentApprovalPanel.js.map +1 -1
  9. package/dist/botlit/components/AgentBindingsPanel.js +66 -68
  10. package/dist/botlit/components/AgentBindingsPanel.js.map +1 -1
  11. package/dist/botlit/components/AiOperationsPanel.js +34 -35
  12. package/dist/botlit/components/AiOperationsPanel.js.map +1 -1
  13. package/dist/botlit/components/BotAgentsPanel.js +59 -60
  14. package/dist/botlit/components/BotAgentsPanel.js.map +1 -1
  15. package/dist/botlit/components/BotVersionHistoryPanel.js +19 -20
  16. package/dist/botlit/components/BotVersionHistoryPanel.js.map +1 -1
  17. package/dist/botlit/components/BucketDialogs.js +0 -1
  18. package/dist/botlit/components/BucketDialogs.js.map +1 -1
  19. package/dist/botlit/components/ChannelRoutesPanel.js +82 -84
  20. package/dist/botlit/components/ChannelRoutesPanel.js.map +1 -1
  21. package/dist/botlit/components/CreateChannelRouteDialog.js +4 -5
  22. package/dist/botlit/components/CreateChannelRouteDialog.js.map +1 -1
  23. package/dist/botlit/components/DescribeBotDialog.js +0 -1
  24. package/dist/botlit/components/DescribeBotDialog.js.map +1 -1
  25. package/dist/botlit/components/GettingStartedChecklist.js +9 -10
  26. package/dist/botlit/components/GettingStartedChecklist.js.map +1 -1
  27. package/dist/botlit/components/HandoffConfigPanel.js +0 -1
  28. package/dist/botlit/components/HandoffConfigPanel.js.map +1 -1
  29. package/dist/botlit/components/RetentionStatusPanel.js +10 -12
  30. package/dist/botlit/components/RetentionStatusPanel.js.map +1 -1
  31. package/dist/botlit/components/StewardApprovalsInbox.js +201 -212
  32. package/dist/botlit/components/StewardApprovalsInbox.js.map +1 -1
  33. package/dist/botlit/components/StoreOwnPackagesCard.js +21 -22
  34. package/dist/botlit/components/StoreOwnPackagesCard.js.map +1 -1
  35. package/dist/botlit/components/StorePackageDraftCard.js +38 -39
  36. package/dist/botlit/components/StorePackageDraftCard.js.map +1 -1
  37. package/dist/botlit/components/StorePolicyBundleCard.js +27 -29
  38. package/dist/botlit/components/StorePolicyBundleCard.js.map +1 -1
  39. package/dist/botlit/components/StoreSubmissionsCard.js +64 -65
  40. package/dist/botlit/components/StoreSubmissionsCard.js.map +1 -1
  41. package/dist/botlit/components/VersionHistoryPanel.js +18 -19
  42. package/dist/botlit/components/VersionHistoryPanel.js.map +1 -1
  43. package/dist/botlit/hooks/internal/workspaceGateway.d.ts +6 -0
  44. package/dist/botlit/hooks/internal/workspaceGateway.js +40 -40
  45. package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
  46. package/dist/botlit/hooks/useToolApprovals.d.ts +8 -3
  47. package/dist/botlit/hooks/useToolApprovals.js +68 -73
  48. package/dist/botlit/hooks/useToolApprovals.js.map +1 -1
  49. package/dist/botlit/pages/A2AAgentDetailPage.js +331 -332
  50. package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
  51. package/dist/botlit/pages/A2ARegistryPage.js +39 -41
  52. package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
  53. package/dist/botlit/pages/AgentApprovalsPage.js +24 -25
  54. package/dist/botlit/pages/AgentApprovalsPage.js.map +1 -1
  55. package/dist/botlit/pages/AgentBuilderPage.js +470 -471
  56. package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
  57. package/dist/botlit/pages/AgentDetailPage.js +68 -69
  58. package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
  59. package/dist/botlit/pages/AgentsListPage.js +277 -278
  60. package/dist/botlit/pages/AgentsListPage.js.map +1 -1
  61. package/dist/botlit/pages/AiOperationsPage.js +44 -46
  62. package/dist/botlit/pages/AiOperationsPage.js.map +1 -1
  63. package/dist/botlit/pages/BotChannelsTab.js +354 -356
  64. package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
  65. package/dist/botlit/pages/BotDetailPage.js +138 -139
  66. package/dist/botlit/pages/BotDetailPage.js.map +1 -1
  67. package/dist/botlit/pages/BotWorkflowTab.js +23 -24
  68. package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
  69. package/dist/botlit/pages/BotsListPage.js +32 -33
  70. package/dist/botlit/pages/BotsListPage.js.map +1 -1
  71. package/dist/botlit/pages/BucketDetailPage.js +110 -112
  72. package/dist/botlit/pages/BucketDetailPage.js.map +1 -1
  73. package/dist/botlit/pages/BucketsPage.js +115 -117
  74. package/dist/botlit/pages/BucketsPage.js.map +1 -1
  75. package/dist/botlit/pages/ChannelDetailPage.js +105 -107
  76. package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
  77. package/dist/botlit/pages/ChannelsPage.js +38 -40
  78. package/dist/botlit/pages/ChannelsPage.js.map +1 -1
  79. package/dist/botlit/pages/DashboardPage.js +26 -27
  80. package/dist/botlit/pages/DashboardPage.js.map +1 -1
  81. package/dist/botlit/pages/ExecutionDetailPage.js +70 -71
  82. package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
  83. package/dist/botlit/pages/ExecutionsPage.js +219 -220
  84. package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
  85. package/dist/botlit/pages/HandoffsPage.js +208 -210
  86. package/dist/botlit/pages/HandoffsPage.js.map +1 -1
  87. package/dist/botlit/pages/InstalledPackagesPage.js +179 -181
  88. package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
  89. package/dist/botlit/pages/KnowledgeBaseDetailPage.js +194 -195
  90. package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
  91. package/dist/botlit/pages/KnowledgeBasesPage.js +38 -39
  92. package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
  93. package/dist/botlit/pages/MCPServerDetailPage.js +178 -180
  94. package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
  95. package/dist/botlit/pages/MCPServersPage.js +42 -43
  96. package/dist/botlit/pages/MCPServersPage.js.map +1 -1
  97. package/dist/botlit/pages/PoliciesPage.js +77 -78
  98. package/dist/botlit/pages/PoliciesPage.js.map +1 -1
  99. package/dist/botlit/pages/PolicyDetailPage.js +517 -519
  100. package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
  101. package/dist/botlit/pages/PromptStudioPage.js +81 -83
  102. package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
  103. package/dist/botlit/pages/PromptTemplateDetailPage.js +137 -139
  104. package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
  105. package/dist/botlit/pages/PromptTemplatesPage.js +28 -30
  106. package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
  107. package/dist/botlit/pages/RetrievalProfileDetailPage.js +64 -65
  108. package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
  109. package/dist/botlit/pages/RetrievalProfilesPage.js +59 -60
  110. package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
  111. package/dist/botlit/pages/SettingsPage.js +30 -31
  112. package/dist/botlit/pages/SettingsPage.js.map +1 -1
  113. package/dist/botlit/pages/SkillDetailPage.js +205 -207
  114. package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
  115. package/dist/botlit/pages/SkillsPage.js +68 -69
  116. package/dist/botlit/pages/SkillsPage.js.map +1 -1
  117. package/dist/botlit/pages/StorePackageDetailPage.js +39 -41
  118. package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
  119. package/dist/botlit/pages/StorePage.js +169 -171
  120. package/dist/botlit/pages/StorePage.js.map +1 -1
  121. package/dist/botlit/pages/ToolApprovalsPage.js +61 -62
  122. package/dist/botlit/pages/ToolApprovalsPage.js.map +1 -1
  123. package/dist/index.js +0 -1
  124. package/package.json +4 -1
  125. package/dist/botlit/hooks/index.js +0 -21
  126. package/dist/botlit/index.js +0 -12
  127. package/dist/botlit/permissions/index.js +0 -4
@@ -6,31 +6,30 @@ import { Button as c } from "../components/Button.js";
6
6
  import { Badge as l, StatusBadge as u } from "../components/Badge.js";
7
7
  import { EmptyState as ee } from "../components/EmptyState.js";
8
8
  import { ErrorState as te } from "../components/ErrorState.js";
9
- import { BOTMANOR_PERMISSIONS as d } from "../permissions/botmanorPermissions.js";
10
- import { BotmanorPermissionGate as f, useBotmanorCan as ne } from "../permissions/useBotmanorPermissions.js";
11
- import { VersionHistoryPanel as re } from "../components/VersionHistoryPanel.js";
12
- import { AgentApprovalPanel as ie } from "../components/AgentApprovalPanel.js";
13
- import { SuggestionsPanel as ae } from "../components/SuggestionsPanel.js";
14
- import { useAgentApprovalSettings as oe } from "../hooks/useAgentApprovals.js";
15
- import { AssistantRuntimeSetupPanel as se } from "../components/AssistantRuntimeSetupPanel.js";
16
- import { AssistantChannelPanel as ce } from "../components/AssistantChannelPanel.js";
17
- import { AssistantWebsitePanel as le } from "../components/AssistantWebsitePanel.js";
18
- import { AiOperationsPanel as ue } from "../components/AiOperationsPanel.js";
19
- import { useAgent as de, useAgents as fe, useDeleteAgent as pe, useLoadAgentUsage as me, useUpdateAgent as he } from "../hooks/useAgents.js";
20
- import { useKnowledgeBases as ge } from "../hooks/useKnowledgeBases.js";
21
- import { useMCPServers as _e } from "../hooks/useMCPServers.js";
22
- import { useLLMModels as ve } from "../hooks/useLLMProviders.js";
23
- import { AgentA2APanel as ye } from "../components/AgentA2APanel.js";
24
- import { AgentBindingsPanel as be } from "../components/AgentBindingsPanel.js";
25
- import { GuardrailPoliciesPanel as xe } from "../components/GuardrailPoliciesPanel.js";
26
- import { EntityTags as Se } from "../components/EntityTags.js";
27
- import { useBotlit as Ce } from "../providers/BotlitProvider.js";
28
- import { formatRelativeTime as p } from "../utils/formatters.js";
29
- import { cn as we } from "../utils/cn.js";
30
- import { agentDeleteMessage as Te } from "../utils/agentDelete.js";
31
- import { confirmAction as m } from "../utils/confirmAction.js";
32
- import { RunStatsCard as Ee } from "../components/RunStatsCard.js";
33
- import "../permissions/index.js";
9
+ import { VersionHistoryPanel as ne } from "../components/VersionHistoryPanel.js";
10
+ import { AgentApprovalPanel as re } from "../components/AgentApprovalPanel.js";
11
+ import { SuggestionsPanel as ie } from "../components/SuggestionsPanel.js";
12
+ import { useAgentApprovalSettings as ae } from "../hooks/useAgentApprovals.js";
13
+ import { AssistantRuntimeSetupPanel as oe } from "../components/AssistantRuntimeSetupPanel.js";
14
+ import { AssistantChannelPanel as se } from "../components/AssistantChannelPanel.js";
15
+ import { AssistantWebsitePanel as ce } from "../components/AssistantWebsitePanel.js";
16
+ import { AiOperationsPanel as le } from "../components/AiOperationsPanel.js";
17
+ import { useAgent as ue, useAgents as de, useDeleteAgent as fe, useLoadAgentUsage as pe, useUpdateAgent as me } from "../hooks/useAgents.js";
18
+ import { useKnowledgeBases as he } from "../hooks/useKnowledgeBases.js";
19
+ import { useMCPServers as ge } from "../hooks/useMCPServers.js";
20
+ import { useLLMModels as _e } from "../hooks/useLLMProviders.js";
21
+ import { AgentA2APanel as ve } from "../components/AgentA2APanel.js";
22
+ import { AgentBindingsPanel as ye } from "../components/AgentBindingsPanel.js";
23
+ import { GuardrailPoliciesPanel as be } from "../components/GuardrailPoliciesPanel.js";
24
+ import { EntityTags as xe } from "../components/EntityTags.js";
25
+ import { useBotlit as Se } from "../providers/BotlitProvider.js";
26
+ import { formatRelativeTime as d } from "../utils/formatters.js";
27
+ import { cn as Ce } from "../utils/cn.js";
28
+ import { agentDeleteMessage as we } from "../utils/agentDelete.js";
29
+ import { confirmAction as f } from "../utils/confirmAction.js";
30
+ import { RunStatsCard as Te } from "../components/RunStatsCard.js";
31
+ import { BOTMANOR_PERMISSIONS as p } from "../permissions/botmanorPermissions.js";
32
+ import { BotmanorPermissionGate as m, useBotmanorCan as Ee } from "../permissions/useBotmanorPermissions.js";
34
33
  import { useState as De } from "react";
35
34
  import { GlassCard as Oe, NextSteps as ke, PagePurpose as Ae } from "@burdenoff/fe-libs/ui";
36
35
  import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
@@ -82,7 +81,7 @@ var He = "🤖", Ue = [
82
81
  confirm: !1
83
82
  }]
84
83
  }, A = () => {
85
- let E = e(), { agentId: D, botId: O } = je(), { navigateTo: k, workspaceId: A } = Ce(), j = ne(), { data: M, loading: Ge, error: N, refetch: P } = de(D), [F, Ke] = he(), [qe, Je] = pe(), Ye = me(), [Xe] = Me(), [I, L] = De(() => Ue.find((e) => e === Xe.get("tab")) ?? "overview"), R = _e(), z = ge(), Ze = R.data, B = z.data, Qe = oe(), $e = ve(), et = fe(), V = O ? `bots/${O}/agents` : "agents";
84
+ let E = e(), { agentId: D, botId: O } = je(), { navigateTo: k, workspaceId: A } = Se(), j = Ee(), { data: M, loading: Ge, error: N, refetch: P } = ue(D), [F, Ke] = me(), [qe, Je] = fe(), Ye = pe(), [Xe] = Me(), [I, L] = De(() => Ue.find((e) => e === Xe.get("tab")) ?? "overview"), R = ge(), z = he(), Ze = R.data, B = z.data, Qe = ae(), $e = _e(), et = de(), V = O ? `bots/${O}/agents` : "agents";
86
85
  if (Ge) return /* @__PURE__ */ g(t, {
87
86
  title: E("botlit.common.loading", "Loading..."),
88
87
  children: /* @__PURE__ */ g("div", {
@@ -113,7 +112,7 @@ var He = "🤖", Ue = [
113
112
  })
114
113
  })
115
114
  });
116
- let H = M.systemPrompt || "", U = M.llmModelId || "", W = ($e.data ?? []).find((e) => e.id === U), G = W ? `${W.name} (${W.modelId})` : U || "Not configured", tt = M.temperature, nt = M.maxTokens, K = M.mcpConnectionIds ?? [], q = M.knowledgeBaseIds ?? [], J = M.workflowIds ?? [], Y = M.capabilities ?? [], X = M.maxConcurrentExecutions || 10, Z = !!Qe.data?.requireActivationApproval && (M.status === "DRAFT" || M.status === "ARCHIVED") && !M.currentVersionId, Q = new Map(Ze.map((e) => [e.id, e.name])), rt = new Map(B.map((e) => [e.id, e.name])), it = Y.includes("RAG") && !z.loading && !z.error ? q.flatMap((e) => {
115
+ let H = M.systemPrompt || "", U = M.llmModelId || "", W = ($e.data ?? []).find((e) => e.id === U), G = W ? `${W.name} (${W.modelId})` : U || "Not configured", tt = M.temperature, nt = M.maxTokens, K = M.mcpConnectionIds ?? [], q = M.knowledgeBaseIds ?? [], J = M.workflowIds ?? [], Y = M.capabilities ?? [], X = M.maxConcurrentExecutions || 10, Z = !!Qe.data?.requireActivationApproval && (M.status === "DRAFT" || M.status === "ARCHIVED") && !M.currentVersionId, Q = new Map(Ze.map((e) => [e.id, e.name])), $ = new Map(B.map((e) => [e.id, e.name])), rt = Y.includes("RAG") && !z.loading && !z.error ? q.flatMap((e) => {
117
116
  let t = B.find((t) => t.id === e);
118
117
  return t ? t.indexStatus === "READY" ? [] : [{
119
118
  id: e,
@@ -124,7 +123,7 @@ var He = "🤖", Ue = [
124
123
  name: null,
125
124
  status: "MISSING"
126
125
  }];
127
- }) : [], at = (e, t, n, r) => t.get(e) ?? (n.loading ? E("botlit.agentDetail.resourceLoading", "Loading…") : n.error ? E("botlit.agentDetail.resourceUnnamed", "Name unavailable") : E(r, "No longer available")), ot = (() => {
126
+ }) : [], it = (e, t, n, r) => t.get(e) ?? (n.loading ? E("botlit.agentDetail.resourceLoading", "Loading…") : n.error ? E("botlit.agentDetail.resourceUnnamed", "Name unavailable") : E(r, "No longer available")), at = (() => {
128
127
  switch (M.status) {
129
128
  case "ACTIVE": return null;
130
129
  case "DRAFT": return Z ? E("botlit.agentDetail.reason.pendingApproval", "This agent is a draft. This workspace needs a reviewer to approve it before it goes live: use Request activation.") : M.currentVersionId ? E("botlit.agentDetail.reason.deactivated", "This agent was taken out of service and is a draft again. Activate it to put it back live.") : E("botlit.agentDetail.reason.neverPublished", "This agent is a draft that was never published, so it does not answer bots yet. Activate it to publish it.");
@@ -133,7 +132,7 @@ var He = "🤖", Ue = [
133
132
  case "ARCHIVED": return E("botlit.agentDetail.reason.archived", "This agent is archived and does not answer. Restore it to bring it back as a draft.");
134
133
  default: return null;
135
134
  }
136
- })(), $ = (e, t) => {
135
+ })(), ot = (e, t) => {
137
136
  switch (e) {
138
137
  case "activate": return {
139
138
  label: E("botlit.agentDetail.actions.activate", "Activate"),
@@ -167,8 +166,8 @@ var He = "🤖", Ue = [
167
166
  }
168
167
  }, st = async (e) => {
169
168
  if (!D) return;
170
- let t = $(e.key, M.name);
171
- if (!(e.confirm && t.confirmTitle && t.confirmMessage && !await m({
169
+ let t = ot(e.key, M.name);
170
+ if (!(e.confirm && t.confirmTitle && t.confirmMessage && !await f({
172
171
  title: t.confirmTitle,
173
172
  message: t.confirmMessage,
174
173
  confirmLabel: t.label,
@@ -183,8 +182,8 @@ var He = "🤖", Ue = [
183
182
  }
184
183
  }, ct = async () => {
185
184
  if (!D) return;
186
- let e = await Ye(D).catch(() => null), t = Te(E, M.name, e);
187
- if (await m({
185
+ let e = await Ye(D).catch(() => null), t = we(E, M.name, e);
186
+ if (await f({
188
187
  title: E("botlit.agentsList.delete.title", "Delete agent?"),
189
188
  message: t,
190
189
  confirmLabel: E("botlit.agentsList.delete.okButton", "Delete"),
@@ -279,8 +278,8 @@ var He = "🤖", Ue = [
279
278
  actions: /* @__PURE__ */ _("div", {
280
279
  className: "flex gap-2",
281
280
  children: [
282
- /* @__PURE__ */ g(f, {
283
- permission: d.AGENT_UPDATE,
281
+ /* @__PURE__ */ g(m, {
282
+ permission: p.AGENT_UPDATE,
284
283
  children: Z ? /* @__PURE__ */ g(c, {
285
284
  variant: "default",
286
285
  onClick: () => {
@@ -294,11 +293,11 @@ var He = "🤖", Ue = [
294
293
  variant: e.variant,
295
294
  isLoading: Ke.loading,
296
295
  onClick: () => void st(e),
297
- children: $(e.key, M.name).label
296
+ children: ot(e.key, M.name).label
298
297
  }, e.key))
299
298
  }),
300
- /* @__PURE__ */ g(f, {
301
- permission: d.AGENT_UPDATE,
299
+ /* @__PURE__ */ g(m, {
300
+ permission: p.AGENT_UPDATE,
302
301
  children: /* @__PURE__ */ g(c, {
303
302
  variant: "outline",
304
303
  leftIcon: /* @__PURE__ */ g(Fe, { size: 16 }),
@@ -306,16 +305,16 @@ var He = "🤖", Ue = [
306
305
  children: E("botlit.agentDetail.actions.editAgent", "Edit Agent")
307
306
  })
308
307
  }),
309
- /* @__PURE__ */ g(f, {
310
- permission: d.AGENT_EXECUTE,
308
+ /* @__PURE__ */ g(m, {
309
+ permission: p.AGENT_EXECUTE,
311
310
  children: /* @__PURE__ */ g(c, {
312
311
  leftIcon: /* @__PURE__ */ g(x, { size: 16 }),
313
312
  onClick: () => k(`agents/${D}/test`),
314
313
  children: E("botlit.agentDetail.actions.testAgent", "Test Agent")
315
314
  })
316
315
  }),
317
- /* @__PURE__ */ g(f, {
318
- permission: d.AGENT_DELETE,
316
+ /* @__PURE__ */ g(m, {
317
+ permission: p.AGENT_DELETE,
319
318
  children: /* @__PURE__ */ g(c, {
320
319
  variant: "destructive",
321
320
  leftIcon: /* @__PURE__ */ g(Ve, { size: 16 }),
@@ -327,13 +326,13 @@ var He = "🤖", Ue = [
327
326
  ]
328
327
  }),
329
328
  children: [
330
- ot && /* @__PURE__ */ g("div", {
329
+ at && /* @__PURE__ */ g("div", {
331
330
  role: "status",
332
331
  "data-testid": "agent-status-reason",
333
332
  className: "mb-4 rounded-lg border border-status-warning-border bg-status-warning-bg-subtle p-3 text-sm text-text-primary",
334
- children: ot
333
+ children: at
335
334
  }),
336
- it.length > 0 && /* @__PURE__ */ _("div", {
335
+ rt.length > 0 && /* @__PURE__ */ _("div", {
337
336
  role: "status",
338
337
  "data-testid": "agent-knowledge-warning",
339
338
  className: "mb-4 rounded-lg border border-status-warning-border bg-status-warning-bg-subtle p-3 text-sm text-text-primary",
@@ -342,7 +341,7 @@ var He = "🤖", Ue = [
342
341
  children: E("botlit.agentDetail.knowledgeWarning.title", "This agent cannot answer right now: a knowledge base it uses cannot be searched.")
343
342
  }), /* @__PURE__ */ g("ul", {
344
343
  className: "mt-1 list-disc pl-5",
345
- children: it.map((e) => /* @__PURE__ */ g("li", { children: e.name === null ? E("botlit.agentDetail.knowledgeWarning.missing", "A knowledge base that no longer exists ({{id}}). Remove it from the agent.", { id: e.id }) : E("botlit.agentDetail.knowledgeWarning.notReady", "\"{{name}}\" is {{status}}.", {
344
+ children: rt.map((e) => /* @__PURE__ */ g("li", { children: e.name === null ? E("botlit.agentDetail.knowledgeWarning.missing", "A knowledge base that no longer exists ({{id}}). Remove it from the agent.", { id: e.id }) : E("botlit.agentDetail.knowledgeWarning.notReady", "\"{{name}}\" is {{status}}.", {
346
345
  name: e.name,
347
346
  status: E(`botlit.status.${e.status.toLowerCase()}`, e.status.toLowerCase())
348
347
  }) }, e.id))
@@ -354,15 +353,15 @@ var He = "🤖", Ue = [
354
353
  I === "assistant" && D && /* @__PURE__ */ _("div", {
355
354
  className: "space-y-5",
356
355
  children: [
357
- j(d.AGENT_UPDATE) && /* @__PURE__ */ g(se, {
356
+ j(p.AGENT_UPDATE) && /* @__PURE__ */ g(oe, {
358
357
  agentId: D,
359
358
  onConfigured: () => void P()
360
359
  }),
361
- j(d.AGENT_PUBLISH) && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(le, {
360
+ j(p.AGENT_PUBLISH) && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(ce, {
362
361
  agentId: D,
363
362
  knowledgeBaseIds: q
364
- }), /* @__PURE__ */ g(ce, { agentId: D })] }),
365
- !j(d.AGENT_UPDATE) && !j(d.AGENT_PUBLISH) && /* @__PURE__ */ g("p", {
363
+ }), /* @__PURE__ */ g(se, { agentId: D })] }),
364
+ !j(p.AGENT_UPDATE) && !j(p.AGENT_PUBLISH) && /* @__PURE__ */ g("p", {
366
365
  role: "status",
367
366
  className: "text-sm text-text-secondary",
368
367
  children: E("botlit.agentDetail.assistant.readOnly", "Assistant setup and publishing are available to members who can edit or publish agents in this workspace.")
@@ -377,7 +376,7 @@ var He = "🤖", Ue = [
377
376
  className: "flex gap-1 border-b border-border-subtle overflow-x-auto",
378
377
  children: lt.map((e) => /* @__PURE__ */ _("button", {
379
378
  onClick: () => L(e.id),
380
- className: we("flex items-center gap-2 px-4 py-2 text-sm font-medium border-b-2 transition-colors whitespace-nowrap", I === e.id ? "border-primary text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
379
+ className: Ce("flex items-center gap-2 px-4 py-2 text-sm font-medium border-b-2 transition-colors whitespace-nowrap", I === e.id ? "border-primary text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
381
380
  children: [e.icon, e.label]
382
381
  }, e.id))
383
382
  }),
@@ -418,16 +417,16 @@ var He = "🤖", Ue = [
418
417
  }
419
418
  ]
420
419
  }),
421
- D && /* @__PURE__ */ g(ie, {
420
+ D && /* @__PURE__ */ g(re, {
422
421
  agentId: D,
423
422
  agentStatus: M.status,
424
423
  onChanged: () => void P()
425
424
  }),
426
- /* @__PURE__ */ g(Ee, {
425
+ /* @__PURE__ */ g(Te, {
427
426
  kind: "agent",
428
427
  id: D
429
428
  }),
430
- D && /* @__PURE__ */ g(ae, {
429
+ D && /* @__PURE__ */ g(ie, {
431
430
  agentId: D,
432
431
  onDraftChanged: () => void P()
433
432
  }),
@@ -497,14 +496,14 @@ var He = "🤖", Ue = [
497
496
  children: "Created"
498
497
  }), /* @__PURE__ */ g("p", {
499
498
  className: "font-medium",
500
- children: p(M.createdAt)
499
+ children: d(M.createdAt)
501
500
  })] }),
502
501
  /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
503
502
  className: "text-sm text-text-secondary",
504
503
  children: "Updated"
505
504
  }), /* @__PURE__ */ g("p", {
506
505
  className: "font-medium",
507
- children: p(M.updatedAt)
506
+ children: d(M.updatedAt)
508
507
  })] })
509
508
  ]
510
509
  })]
@@ -535,11 +534,11 @@ var He = "🤖", Ue = [
535
534
  }),
536
535
  /* @__PURE__ */ _(r, {
537
536
  className: "lg:col-span-3",
538
- children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ g(s, { children: E("botlit.agentDetail.tags.title", "Tags") }) }), /* @__PURE__ */ g(i, { children: /* @__PURE__ */ g(Se, {
537
+ children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ g(s, { children: E("botlit.agentDetail.tags.title", "Tags") }) }), /* @__PURE__ */ g(i, { children: /* @__PURE__ */ g(xe, {
539
538
  entityType: "BotmanorAgent",
540
539
  entityId: M.id,
541
540
  tags: M.tags,
542
- editable: j(d.AGENT_UPDATE),
541
+ editable: j(p.AGENT_UPDATE),
543
542
  onSave: async (e) => {
544
543
  await F({
545
544
  agentId: M.id,
@@ -566,7 +565,7 @@ var He = "🤖", Ue = [
566
565
  className: "text-text-secondary",
567
566
  children: E("botlit.agentDetail.prompt.empty", "No system prompt configured")
568
567
  })
569
- })] }), D && /* @__PURE__ */ g(be, { agentId: D })]
568
+ })] }), D && /* @__PURE__ */ g(ye, { agentId: D })]
570
569
  }),
571
570
  I === "llm" && /* @__PURE__ */ _("div", {
572
571
  className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
@@ -623,7 +622,7 @@ var He = "🤖", Ue = [
623
622
  children: "Last Executed"
624
623
  }), /* @__PURE__ */ g("p", {
625
624
  className: "font-medium",
626
- children: p(M.lastExecutedAt)
625
+ children: d(M.lastExecutedAt)
627
626
  })] })
628
627
  ]
629
628
  })] })]
@@ -645,7 +644,7 @@ var He = "🤖", Ue = [
645
644
  })
646
645
  }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
647
646
  className: "font-medium",
648
- children: at(e, Q, R, "botlit.agentDetail.tools.unavailable")
647
+ children: it(e, Q, R, "botlit.agentDetail.tools.unavailable")
649
648
  }), !Q.has(e) && /* @__PURE__ */ g("p", {
650
649
  className: "text-sm text-text-secondary font-mono",
651
650
  children: e
@@ -653,7 +652,7 @@ var He = "🤖", Ue = [
653
652
  }, e))
654
653
  }) : /* @__PURE__ */ _("p", {
655
654
  className: "text-text-secondary",
656
- children: [E("botlit.agentDetail.tools.none", "No MCP servers connected."), j(d.AGENT_UPDATE) && ` ${E("botlit.agentDetail.tools.attachHint", "Attach servers from Edit Agent.")}`]
655
+ children: [E("botlit.agentDetail.tools.none", "No MCP servers connected."), j(p.AGENT_UPDATE) && ` ${E("botlit.agentDetail.tools.attachHint", "Attach servers from Edit Agent.")}`]
657
656
  }) })] }), J.length > 0 && /* @__PURE__ */ _(r, { children: [/* @__PURE__ */ g(o, { children: /* @__PURE__ */ _(s, {
658
657
  className: "flex items-center gap-2",
659
658
  children: [/* @__PURE__ */ g(S, { size: 18 }), "Workflows"]
@@ -679,39 +678,39 @@ var He = "🤖", Ue = [
679
678
  className: "flex items-center justify-between",
680
679
  children: [/* @__PURE__ */ g("p", {
681
680
  className: "font-medium",
682
- children: at(e, rt, z, "botlit.agentDetail.knowledge.unavailable")
681
+ children: it(e, $, z, "botlit.agentDetail.knowledge.unavailable")
683
682
  }), /* @__PURE__ */ _(l, {
684
683
  variant: "outline",
685
684
  children: ["#", t + 1]
686
685
  })]
687
- }), !rt.has(e) && /* @__PURE__ */ g("p", {
686
+ }), !$.has(e) && /* @__PURE__ */ g("p", {
688
687
  className: "font-mono text-sm",
689
688
  children: e
690
689
  })]
691
690
  }, e))
692
691
  }) : /* @__PURE__ */ _("p", {
693
692
  className: "text-text-secondary",
694
- children: [E("botlit.agentDetail.knowledge.none", "No knowledge bases connected."), j(d.AGENT_UPDATE) && ` ${E("botlit.agentDetail.knowledge.attachHint", "Attach knowledge bases from Edit Agent.")}`]
693
+ children: [E("botlit.agentDetail.knowledge.none", "No knowledge bases connected."), j(p.AGENT_UPDATE) && ` ${E("botlit.agentDetail.knowledge.attachHint", "Attach knowledge bases from Edit Agent.")}`]
695
694
  }) })] }),
696
695
  I === "handoff" && D && /* @__PURE__ */ g("div", {
697
696
  className: "mx-auto w-full max-w-3xl",
698
697
  children: /* @__PURE__ */ g(n, { agentId: D })
699
698
  }),
700
- I === "guardrails" && /* @__PURE__ */ g(xe, { subject: "agent" }),
701
- I === "aiOperations" && D && /* @__PURE__ */ g(ue, {
699
+ I === "guardrails" && /* @__PURE__ */ g(be, { subject: "agent" }),
700
+ I === "aiOperations" && D && /* @__PURE__ */ g(le, {
702
701
  filter: {
703
702
  subjectType: "AGENT",
704
703
  subjectId: D
705
704
  },
706
705
  description: E("botlit.agentDetail.aiOperationsDescription", "What the supervisor flagged for this agent — drift, evidence and the recommended action.")
707
706
  }),
708
- I === "a2a" && D && /* @__PURE__ */ g(ye, {
707
+ I === "a2a" && D && /* @__PURE__ */ g(ve, {
709
708
  agentId: D,
710
709
  agentName: M.name,
711
710
  delegationEnabled: Y.includes("A2A"),
712
711
  agents: et.data ?? []
713
712
  }),
714
- I === "versions" && D && /* @__PURE__ */ g(re, {
713
+ I === "versions" && D && /* @__PURE__ */ g(ne, {
715
714
  agentId: D,
716
715
  draftVersionId: M.draftVersionId,
717
716
  currentVersionId: M.currentVersionId,