@burdenoff/microfe-botmanor 2026.1027.2 → 2026.1028.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/botlit/BotlitRoutes.js +142 -132
- package/dist/botlit/BotlitRoutes.js.map +1 -1
- package/dist/botlit/components/AgentApprovalPanel.js +144 -126
- package/dist/botlit/components/AgentApprovalPanel.js.map +1 -1
- package/dist/botlit/components/ModelRegistrationPanel.js +4 -4
- package/dist/botlit/components/RetentionStatusPanel.js +95 -0
- package/dist/botlit/components/RetentionStatusPanel.js.map +1 -0
- package/dist/botlit/components/VersionHistoryPanel.js +92 -83
- package/dist/botlit/components/VersionHistoryPanel.js.map +1 -1
- package/dist/botlit/hooks/index.js +1 -0
- package/dist/botlit/hooks/useRetention.js +31 -0
- package/dist/botlit/hooks/useRetention.js.map +1 -0
- package/dist/botlit/pages/A2AAgentDetailPage.js +212 -203
- package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/A2ARegistryPage.js +129 -117
- package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
- package/dist/botlit/pages/AgentApprovalsPage.js +122 -110
- package/dist/botlit/pages/AgentApprovalsPage.js.map +1 -1
- package/dist/botlit/pages/AgentBuilderPage.js +18 -18
- package/dist/botlit/pages/AgentDetailPage.js +298 -273
- package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/AgentsListPage.js +145 -121
- package/dist/botlit/pages/AgentsListPage.js.map +1 -1
- package/dist/botlit/pages/BotChannelsTab.js +238 -226
- package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
- package/dist/botlit/pages/BotDetailPage.js +307 -288
- package/dist/botlit/pages/BotDetailPage.js.map +1 -1
- package/dist/botlit/pages/BotWorkflowTab.js +125 -116
- package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
- package/dist/botlit/pages/BotsListPage.js +159 -144
- package/dist/botlit/pages/BotsListPage.js.map +1 -1
- package/dist/botlit/pages/BucketsPage.js +279 -258
- package/dist/botlit/pages/BucketsPage.js.map +1 -1
- package/dist/botlit/pages/ChannelDetailPage.js +346 -328
- package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
- package/dist/botlit/pages/ChannelRoutesPage.js +10 -10
- package/dist/botlit/pages/ChannelsPage.js +163 -148
- package/dist/botlit/pages/ChannelsPage.js.map +1 -1
- package/dist/botlit/pages/DashboardPage.js +129 -114
- package/dist/botlit/pages/DashboardPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionDetailPage.js +145 -139
- package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionsPage.js +14 -14
- package/dist/botlit/pages/InstalledPackagesPage.js +245 -227
- package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js +168 -156
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBasesPage.js +91 -79
- package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
- package/dist/botlit/pages/MCPServerDetailPage.js +200 -188
- package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
- package/dist/botlit/pages/MCPServersPage.js +170 -155
- package/dist/botlit/pages/MCPServersPage.js.map +1 -1
- package/dist/botlit/pages/PoliciesPage.js +115 -104
- package/dist/botlit/pages/PoliciesPage.js.map +1 -1
- package/dist/botlit/pages/PolicyDetailPage.js +368 -324
- package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptStudioPage.js +106 -97
- package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplateDetailPage.js +359 -347
- package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplatesPage.js +127 -112
- package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfileDetailPage.js +219 -210
- package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfilesPage.js +112 -103
- package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
- package/dist/botlit/pages/SettingsPage.js +264 -252
- package/dist/botlit/pages/SettingsPage.js.map +1 -1
- package/dist/botlit/pages/SkillDetailPage.js +235 -226
- package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
- package/dist/botlit/pages/SkillsPage.js +115 -106
- package/dist/botlit/pages/SkillsPage.js.map +1 -1
- package/dist/botlit/pages/StorePackageDetailPage.js +194 -188
- package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
- package/dist/botlit/pages/StorePage.js +161 -155
- package/dist/botlit/pages/StorePage.js.map +1 -1
- package/dist/botlit/permissions/PermissionRequired.js +45 -0
- package/dist/botlit/permissions/PermissionRequired.js.map +1 -0
- package/dist/botlit/permissions/botmanorPermissions.js +72 -0
- package/dist/botlit/permissions/botmanorPermissions.js.map +1 -0
- package/dist/botlit/permissions/index.js +3 -0
- package/dist/botlit/permissions/useBotmanorPermissions.js +19 -0
- package/dist/botlit/permissions/useBotmanorPermissions.js.map +1 -0
- package/dist/botlit/utils/policyConfig.js +67 -42
- package/dist/botlit/utils/policyConfig.js.map +1 -1
- package/dist/generated/global-types.js.map +1 -1
- package/dist/generated/wspace-operations.js +90 -54
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,368 +1,393 @@
|
|
|
1
1
|
import { useTr as e } from "../../shared/hooks/useTr.js";
|
|
2
2
|
import { useBotlit as t } from "../providers/BotlitProvider.js";
|
|
3
|
-
import { useAgent as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { formatRelativeTime as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
3
|
+
import { useAgent as ee, useDeleteAgent as te, useUpdateAgent as n } from "../hooks/useAgents.js";
|
|
4
|
+
import { cn as r } from "../utils/cn.js";
|
|
5
|
+
import { formatRelativeTime as i } from "../utils/formatters.js";
|
|
6
|
+
import { BOTMANOR_PERMISSIONS as a } from "../permissions/botmanorPermissions.js";
|
|
7
|
+
import { BotmanorPermissionGate as o, useBotmanorCan as s } from "../permissions/useBotmanorPermissions.js";
|
|
8
|
+
import { PageLayout as c } from "../components/PageLayout.js";
|
|
9
|
+
import { Button as l } from "../components/Button.js";
|
|
10
|
+
import "../permissions/index.js";
|
|
11
|
+
import { Card as u, CardContent as d, CardDescription as f, CardHeader as p, CardTitle as m } from "../components/Card.js";
|
|
12
|
+
import { Badge as h, StatusBadge as g } from "../components/Badge.js";
|
|
13
|
+
import { EmptyState as _ } from "../components/EmptyState.js";
|
|
14
|
+
import { useAgentApprovalSettings as v } from "../hooks/useAgentApprovals.js";
|
|
15
|
+
import { AgentApprovalPanel as y } from "../components/AgentApprovalPanel.js";
|
|
16
|
+
import { VersionHistoryPanel as b } from "../components/VersionHistoryPanel.js";
|
|
17
|
+
import { AssistantRuntimeSetupPanel as x } from "../components/AssistantRuntimeSetupPanel.js";
|
|
18
|
+
import { AssistantChannelPanel as S } from "../components/AssistantChannelPanel.js";
|
|
19
|
+
import { AssistantWebsitePanel as ne } from "../components/AssistantWebsitePanel.js";
|
|
20
|
+
import { useState as re } from "react";
|
|
21
|
+
import { GlassCard as ie, NextSteps as ae, PagePurpose as oe } from "@burdenoff/fe-libs/ui";
|
|
22
|
+
import { Fragment as se, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
23
|
+
import { useParams as ce } from "react-router";
|
|
24
|
+
import { ArrowLeft as le, BarChart3 as ue, BookOpen as T, Brain as E, Edit as de, FileText as D, History as fe, MessageSquare as pe, Play as O, Settings as k, Share2 as A, Shield as j, Trash2 as M, Wrench as N } from "lucide-react";
|
|
25
|
+
import { toast as P } from "sonner";
|
|
23
26
|
//#region src/botlit/pages/AgentDetailPage.tsx
|
|
24
|
-
var
|
|
25
|
-
let
|
|
26
|
-
if (
|
|
27
|
-
title:
|
|
28
|
-
children: /* @__PURE__ */
|
|
27
|
+
var F = () => {
|
|
28
|
+
let F = e(), { agentId: I } = ce(), { navigateTo: L } = t(), R = s(), { data: z, loading: me, refetch: B } = ee(I), [V, H] = n(), [he, ge] = te(), [U, W] = re("overview"), _e = v();
|
|
29
|
+
if (me) return /* @__PURE__ */ C(c, {
|
|
30
|
+
title: F("botlit.common.loading", "Loading..."),
|
|
31
|
+
children: /* @__PURE__ */ C("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
|
|
29
32
|
});
|
|
30
|
-
if (!
|
|
31
|
-
title:
|
|
32
|
-
children: /* @__PURE__ */
|
|
33
|
+
if (!z) return /* @__PURE__ */ C(c, {
|
|
34
|
+
title: F("botlit.agentDetail.notFound.title", "Agent Not Found"),
|
|
35
|
+
children: /* @__PURE__ */ C(_, {
|
|
33
36
|
illustration: "empty-agents",
|
|
34
|
-
title:
|
|
35
|
-
description:
|
|
36
|
-
action: /* @__PURE__ */
|
|
37
|
-
onClick: () =>
|
|
38
|
-
children:
|
|
37
|
+
title: F("botlit.agentDetail.notFound.title", "Agent Not Found"),
|
|
38
|
+
description: F("botlit.agentDetail.notFound.description", "The agent you're looking for doesn't exist."),
|
|
39
|
+
action: /* @__PURE__ */ C(l, {
|
|
40
|
+
onClick: () => L("agents"),
|
|
41
|
+
children: F("botlit.agentDetail.notFound.backAction", "Back to Agents")
|
|
39
42
|
})
|
|
40
43
|
})
|
|
41
44
|
});
|
|
42
|
-
let G =
|
|
45
|
+
let G = z.systemPrompt || "", K = z.llmModelId || "", ve = z.temperature, ye = z.maxTokens, q = z.mcpConnectionIds ?? [], J = z.knowledgeBaseIds ?? [], Y = z.workflowIds ?? [], X = z.capabilities ?? [], Z = z.tagIds ?? [], Q = z.maxConcurrentExecutions || 10, $ = z.metadata ?? null, be = [
|
|
43
46
|
{
|
|
44
47
|
id: "assistant",
|
|
45
48
|
label: "Assistant setup",
|
|
46
|
-
icon: /* @__PURE__ */
|
|
49
|
+
icon: /* @__PURE__ */ C(k, { size: 16 })
|
|
47
50
|
},
|
|
48
51
|
{
|
|
49
52
|
id: "overview",
|
|
50
|
-
label:
|
|
51
|
-
icon: /* @__PURE__ */
|
|
53
|
+
label: F("botlit.agentDetail.tabs.overview", "Overview"),
|
|
54
|
+
icon: /* @__PURE__ */ C(ue, { size: 16 })
|
|
52
55
|
},
|
|
53
56
|
{
|
|
54
57
|
id: "prompt",
|
|
55
|
-
label:
|
|
56
|
-
icon: /* @__PURE__ */
|
|
58
|
+
label: F("botlit.agentDetail.tabs.prompt", "Prompt"),
|
|
59
|
+
icon: /* @__PURE__ */ C(D, { size: 16 })
|
|
57
60
|
},
|
|
58
61
|
{
|
|
59
62
|
id: "llm",
|
|
60
|
-
label:
|
|
61
|
-
icon: /* @__PURE__ */
|
|
63
|
+
label: F("botlit.agentDetail.tabs.llmConfig", "LLM Config"),
|
|
64
|
+
icon: /* @__PURE__ */ C(E, { size: 16 })
|
|
62
65
|
},
|
|
63
66
|
{
|
|
64
67
|
id: "tools",
|
|
65
|
-
label:
|
|
66
|
-
icon: /* @__PURE__ */
|
|
68
|
+
label: F("botlit.agentDetail.tabs.tools", "Tools"),
|
|
69
|
+
icon: /* @__PURE__ */ C(N, { size: 16 })
|
|
67
70
|
},
|
|
68
71
|
{
|
|
69
72
|
id: "knowledge",
|
|
70
|
-
label:
|
|
71
|
-
icon: /* @__PURE__ */
|
|
73
|
+
label: F("botlit.agentDetail.tabs.knowledge", "Knowledge"),
|
|
74
|
+
icon: /* @__PURE__ */ C(T, { size: 16 })
|
|
72
75
|
},
|
|
73
76
|
{
|
|
74
77
|
id: "guardrails",
|
|
75
|
-
label:
|
|
76
|
-
icon: /* @__PURE__ */
|
|
78
|
+
label: F("botlit.agentDetail.tabs.guardrails", "Guardrails"),
|
|
79
|
+
icon: /* @__PURE__ */ C(j, { size: 16 })
|
|
77
80
|
},
|
|
78
81
|
{
|
|
79
82
|
id: "a2a",
|
|
80
|
-
label:
|
|
81
|
-
icon: /* @__PURE__ */
|
|
83
|
+
label: F("botlit.agentDetail.tabs.a2a", "A2A"),
|
|
84
|
+
icon: /* @__PURE__ */ C(A, { size: 16 })
|
|
82
85
|
},
|
|
83
86
|
{
|
|
84
87
|
id: "versions",
|
|
85
|
-
label:
|
|
86
|
-
icon: /* @__PURE__ */
|
|
88
|
+
label: F("botlit.agentDetail.tabs.versions", "Versions"),
|
|
89
|
+
icon: /* @__PURE__ */ C(fe, { size: 16 })
|
|
87
90
|
}
|
|
88
91
|
];
|
|
89
|
-
return /* @__PURE__ */
|
|
90
|
-
title: /* @__PURE__ */
|
|
92
|
+
return /* @__PURE__ */ C(c, {
|
|
93
|
+
title: /* @__PURE__ */ w("div", {
|
|
91
94
|
className: "flex items-center gap-3",
|
|
92
95
|
children: [
|
|
93
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ C(l, {
|
|
94
97
|
variant: "ghost",
|
|
95
98
|
size: "icon",
|
|
96
|
-
onClick: () =>
|
|
97
|
-
children: /* @__PURE__ */
|
|
99
|
+
onClick: () => L("agents"),
|
|
100
|
+
children: /* @__PURE__ */ C(le, { size: 20 })
|
|
98
101
|
}),
|
|
99
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ C("span", {
|
|
100
103
|
className: "text-3xl",
|
|
101
104
|
children: "🤖"
|
|
102
105
|
}),
|
|
103
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
|
|
104
107
|
className: "flex items-center gap-2",
|
|
105
108
|
children: [
|
|
106
|
-
/* @__PURE__ */
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ C("span", { children: z.name }),
|
|
110
|
+
/* @__PURE__ */ C(g, { status: z.status }),
|
|
111
|
+
/* @__PURE__ */ C(h, {
|
|
109
112
|
variant: "outline",
|
|
110
|
-
children:
|
|
113
|
+
children: z.slug
|
|
111
114
|
})
|
|
112
115
|
]
|
|
113
|
-
}), /* @__PURE__ */
|
|
116
|
+
}), /* @__PURE__ */ C("p", {
|
|
114
117
|
className: "text-sm font-normal text-text-secondary",
|
|
115
|
-
children:
|
|
118
|
+
children: z.description
|
|
116
119
|
})] })
|
|
117
120
|
]
|
|
118
121
|
}),
|
|
119
|
-
actions: /* @__PURE__ */
|
|
122
|
+
actions: /* @__PURE__ */ w("div", {
|
|
120
123
|
className: "flex gap-2",
|
|
121
124
|
children: [
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
125
|
+
_e.data?.requireActivationApproval && (z.status === "DRAFT" || z.status === "ARCHIVED") && !z.currentVersionId ? /* @__PURE__ */ C(o, {
|
|
126
|
+
permission: a.AGENT_UPDATE,
|
|
127
|
+
children: /* @__PURE__ */ C(l, {
|
|
128
|
+
variant: "default",
|
|
129
|
+
onClick: () => {
|
|
130
|
+
W("overview"), requestAnimationFrame(() => document.querySelector("[data-testid=\"agent-approval-panel\"]")?.scrollIntoView({
|
|
131
|
+
behavior: "smooth",
|
|
132
|
+
block: "start"
|
|
133
|
+
}));
|
|
134
|
+
},
|
|
135
|
+
children: F("botlit.agentApproval.requestAction", "Request activation")
|
|
136
|
+
})
|
|
137
|
+
}) : z.status === "DRAFT" || z.status === "ARCHIVED" ? /* @__PURE__ */ C(o, {
|
|
138
|
+
permission: a.AGENT_UPDATE,
|
|
139
|
+
children: /* @__PURE__ */ C(l, {
|
|
140
|
+
variant: "default",
|
|
141
|
+
isLoading: H.loading,
|
|
142
|
+
onClick: async () => {
|
|
143
|
+
try {
|
|
144
|
+
if (!I) return;
|
|
145
|
+
await V({
|
|
146
|
+
agentId: I,
|
|
147
|
+
input: { status: "ACTIVE" }
|
|
148
|
+
}), await B(), P.success(`${F("botlit.agentDetail.activate.successPrefix", "Agent")} "${z.name}" ${F("botlit.agentDetail.activate.successSuffix", "activated")}`);
|
|
149
|
+
} catch (e) {
|
|
150
|
+
P.error(e instanceof Error ? e.message : F("botlit.agentDetail.activate.error", "Failed to activate agent"));
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
children: F("botlit.agentDetail.actions.activate", "Activate")
|
|
154
|
+
})
|
|
155
|
+
}) : /* @__PURE__ */ C(o, {
|
|
156
|
+
permission: a.AGENT_UPDATE,
|
|
157
|
+
children: /* @__PURE__ */ C(l, {
|
|
158
|
+
variant: "outline",
|
|
159
|
+
isLoading: H.loading,
|
|
160
|
+
onClick: async () => {
|
|
161
|
+
try {
|
|
162
|
+
if (!I) return;
|
|
163
|
+
await V({
|
|
164
|
+
agentId: I,
|
|
165
|
+
input: { status: "DRAFT" }
|
|
166
|
+
}), await B(), P.success(`${F("botlit.agentDetail.deactivate.successPrefix", "Agent")} "${z.name}" ${F("botlit.agentDetail.deactivate.successSuffix", "deactivated")}`);
|
|
167
|
+
} catch (e) {
|
|
168
|
+
P.error(e instanceof Error ? e.message : F("botlit.agentDetail.deactivate.error", "Failed to deactivate agent"));
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
children: F("botlit.agentDetail.actions.deactivate", "Deactivate")
|
|
172
|
+
})
|
|
161
173
|
}),
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
174
|
+
/* @__PURE__ */ C(o, {
|
|
175
|
+
permission: a.AGENT_UPDATE,
|
|
176
|
+
children: /* @__PURE__ */ C(l, {
|
|
177
|
+
variant: "outline",
|
|
178
|
+
leftIcon: /* @__PURE__ */ C(de, { size: 16 }),
|
|
179
|
+
onClick: () => L(`agents/${I}/edit`),
|
|
180
|
+
children: F("botlit.agentDetail.actions.editAgent", "Edit Agent")
|
|
181
|
+
})
|
|
167
182
|
}),
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
183
|
+
/* @__PURE__ */ C(o, {
|
|
184
|
+
permission: a.AGENT_EXECUTE,
|
|
185
|
+
children: /* @__PURE__ */ C(l, {
|
|
186
|
+
leftIcon: /* @__PURE__ */ C(O, { size: 16 }),
|
|
187
|
+
onClick: () => L(`chat/${I}`),
|
|
188
|
+
children: F("botlit.agentDetail.actions.testAgent", "Test Agent")
|
|
189
|
+
})
|
|
172
190
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
191
|
+
/* @__PURE__ */ C(o, {
|
|
192
|
+
permission: a.AGENT_DELETE,
|
|
193
|
+
children: /* @__PURE__ */ C(l, {
|
|
194
|
+
variant: "destructive",
|
|
195
|
+
leftIcon: /* @__PURE__ */ C(M, { size: 16 }),
|
|
196
|
+
isLoading: ge.loading,
|
|
197
|
+
onClick: async () => {
|
|
198
|
+
if (I && confirm(`${F("botlit.agentDetail.delete.confirmPrefix", "Are you sure you want to delete")} "${z.name}"? ${F("botlit.agentDetail.delete.confirmSuffix", "This action cannot be undone.")}`)) try {
|
|
199
|
+
await he(I), P.success(`${F("botlit.agentDetail.delete.successPrefix", "Agent")} "${z.name}" ${F("botlit.agentDetail.delete.successSuffix", "deleted successfully")}`), L("agents");
|
|
200
|
+
} catch (e) {
|
|
201
|
+
P.error(e instanceof Error ? e.message : F("botlit.agentDetail.delete.error", "Failed to delete agent"));
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
children: F("botlit.common.delete", "Delete")
|
|
205
|
+
})
|
|
185
206
|
})
|
|
186
207
|
]
|
|
187
208
|
}),
|
|
188
|
-
children: /* @__PURE__ */
|
|
209
|
+
children: /* @__PURE__ */ w("div", {
|
|
189
210
|
className: "space-y-6",
|
|
190
211
|
children: [
|
|
191
|
-
U === "assistant" &&
|
|
212
|
+
U === "assistant" && I && /* @__PURE__ */ w("div", {
|
|
192
213
|
className: "space-y-5",
|
|
193
214
|
children: [
|
|
194
|
-
/* @__PURE__ */ x
|
|
195
|
-
agentId:
|
|
196
|
-
onConfigured: () => void
|
|
215
|
+
R(a.AGENT_UPDATE) && /* @__PURE__ */ C(x, {
|
|
216
|
+
agentId: I,
|
|
217
|
+
onConfigured: () => void B()
|
|
197
218
|
}),
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
-
agentId:
|
|
219
|
+
R(a.AGENT_PUBLISH) && /* @__PURE__ */ w(se, { children: [/* @__PURE__ */ C(ne, {
|
|
220
|
+
agentId: I,
|
|
200
221
|
knowledgeBaseIds: J
|
|
201
|
-
}),
|
|
202
|
-
/* @__PURE__ */
|
|
222
|
+
}), /* @__PURE__ */ C(S, { agentId: I })] }),
|
|
223
|
+
!R(a.AGENT_UPDATE) && !R(a.AGENT_PUBLISH) && /* @__PURE__ */ C("p", {
|
|
224
|
+
role: "status",
|
|
225
|
+
className: "text-sm text-text-secondary",
|
|
226
|
+
children: F("botlit.agentDetail.assistant.readOnly", "Assistant setup and publishing are available to members who can edit or publish agents in this workspace.")
|
|
227
|
+
})
|
|
203
228
|
]
|
|
204
229
|
}),
|
|
205
|
-
/* @__PURE__ */
|
|
206
|
-
icon: /* @__PURE__ */
|
|
207
|
-
children:
|
|
230
|
+
/* @__PURE__ */ C(oe, {
|
|
231
|
+
icon: /* @__PURE__ */ C(E, { size: 18 }),
|
|
232
|
+
children: F("botlit.agentDetail.purpose", "This is the full configuration for a single agent — its prompt, model settings, the tools and knowledge it can use, its guardrails and how it talks to other agents. Use the tabs to inspect or change any part, and test the agent in chat to confirm it behaves the way you expect before going live.")
|
|
208
233
|
}),
|
|
209
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ C("div", {
|
|
210
235
|
className: "flex gap-1 border-b border-border-subtle overflow-x-auto",
|
|
211
|
-
children:
|
|
236
|
+
children: be.map((e) => /* @__PURE__ */ w("button", {
|
|
212
237
|
onClick: () => W(e.id),
|
|
213
|
-
className:
|
|
238
|
+
className: r("flex items-center gap-2 px-4 py-2 text-sm font-medium border-b-2 transition-colors whitespace-nowrap", U === e.id ? "border-primary text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
|
|
214
239
|
children: [e.icon, e.label]
|
|
215
240
|
}, e.id))
|
|
216
241
|
}),
|
|
217
|
-
U === "overview" && /* @__PURE__ */
|
|
242
|
+
U === "overview" && /* @__PURE__ */ w("div", {
|
|
218
243
|
className: "space-y-6",
|
|
219
244
|
children: [
|
|
220
|
-
/* @__PURE__ */
|
|
221
|
-
storageKey: `botlit-agent-${
|
|
245
|
+
/* @__PURE__ */ C(ae, {
|
|
246
|
+
storageKey: `botlit-agent-${I}`,
|
|
222
247
|
steps: [
|
|
223
248
|
{
|
|
224
249
|
id: "test",
|
|
225
|
-
label:
|
|
226
|
-
description:
|
|
227
|
-
icon: /* @__PURE__ */
|
|
228
|
-
onClick: () =>
|
|
250
|
+
label: F("botlit.agentDetail.nextSteps.test", "Test the agent in chat"),
|
|
251
|
+
description: F("botlit.agentDetail.nextSteps.testDesc", "Send it a few real prompts to see how it responds."),
|
|
252
|
+
icon: /* @__PURE__ */ C(O, { size: 16 }),
|
|
253
|
+
onClick: () => L(`chat/${I}`)
|
|
229
254
|
},
|
|
230
255
|
{
|
|
231
256
|
id: "prompt",
|
|
232
|
-
label:
|
|
233
|
-
description:
|
|
234
|
-
icon: /* @__PURE__ */
|
|
257
|
+
label: F("botlit.agentDetail.nextSteps.prompt", "Refine the system prompt"),
|
|
258
|
+
description: F("botlit.agentDetail.nextSteps.promptDesc", "Tune its instructions and behaviour."),
|
|
259
|
+
icon: /* @__PURE__ */ C(D, { size: 16 }),
|
|
235
260
|
onClick: () => W("prompt")
|
|
236
261
|
},
|
|
237
262
|
{
|
|
238
263
|
id: "tools",
|
|
239
|
-
label:
|
|
240
|
-
description:
|
|
241
|
-
icon: /* @__PURE__ */
|
|
264
|
+
label: F("botlit.agentDetail.nextSteps.tools", "Connect tools & knowledge"),
|
|
265
|
+
description: F("botlit.agentDetail.nextSteps.toolsDesc", "Give it MCP tools and knowledge bases to work with."),
|
|
266
|
+
icon: /* @__PURE__ */ C(N, { size: 16 }),
|
|
242
267
|
onClick: () => W("tools")
|
|
243
268
|
},
|
|
244
269
|
{
|
|
245
270
|
id: "activate",
|
|
246
|
-
label:
|
|
247
|
-
description:
|
|
248
|
-
icon: /* @__PURE__ */
|
|
249
|
-
onClick: () =>
|
|
250
|
-
done:
|
|
271
|
+
label: F("botlit.agentDetail.nextSteps.activate", "Activate and attach to a bot"),
|
|
272
|
+
description: F("botlit.agentDetail.nextSteps.activateDesc", "Put it live so a bot can route conversations to it."),
|
|
273
|
+
icon: /* @__PURE__ */ C(A, { size: 16 }),
|
|
274
|
+
onClick: () => L(`agents/${I}/edit`),
|
|
275
|
+
done: z.status === "ACTIVE"
|
|
251
276
|
}
|
|
252
277
|
]
|
|
253
278
|
}),
|
|
254
|
-
|
|
255
|
-
agentId:
|
|
256
|
-
agentStatus:
|
|
257
|
-
onChanged: () => void
|
|
279
|
+
I && /* @__PURE__ */ C(y, {
|
|
280
|
+
agentId: I,
|
|
281
|
+
agentStatus: z.status,
|
|
282
|
+
onChanged: () => void B()
|
|
258
283
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ w("div", {
|
|
260
285
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
261
286
|
children: [
|
|
262
|
-
/* @__PURE__ */
|
|
287
|
+
/* @__PURE__ */ w(u, {
|
|
263
288
|
className: "lg:col-span-1",
|
|
264
|
-
children: [/* @__PURE__ */
|
|
289
|
+
children: [/* @__PURE__ */ C(p, { children: /* @__PURE__ */ C(m, { children: "Details" }) }), /* @__PURE__ */ w(d, {
|
|
265
290
|
className: "space-y-4",
|
|
266
291
|
children: [
|
|
267
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
268
293
|
className: "text-sm text-text-secondary",
|
|
269
294
|
children: "Status"
|
|
270
|
-
}), /* @__PURE__ */
|
|
271
|
-
/* @__PURE__ */
|
|
295
|
+
}), /* @__PURE__ */ C(g, { status: z.status })] }),
|
|
296
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
272
297
|
className: "text-sm text-text-secondary",
|
|
273
298
|
children: "Type"
|
|
274
|
-
}), /* @__PURE__ */
|
|
299
|
+
}), /* @__PURE__ */ C(h, {
|
|
275
300
|
variant: "outline",
|
|
276
|
-
children:
|
|
301
|
+
children: z.type
|
|
277
302
|
})] }),
|
|
278
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
279
304
|
className: "text-sm text-text-secondary",
|
|
280
305
|
children: "Visibility"
|
|
281
|
-
}), /* @__PURE__ */
|
|
306
|
+
}), /* @__PURE__ */ C(h, {
|
|
282
307
|
variant: "outline",
|
|
283
|
-
children:
|
|
308
|
+
children: z.visibility
|
|
284
309
|
})] }),
|
|
285
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
286
311
|
className: "text-sm text-text-secondary",
|
|
287
312
|
children: "LLM Model"
|
|
288
|
-
}), /* @__PURE__ */
|
|
313
|
+
}), /* @__PURE__ */ C("p", {
|
|
289
314
|
className: "font-medium font-mono text-sm",
|
|
290
315
|
children: K || "Not configured"
|
|
291
316
|
})] }),
|
|
292
|
-
/* @__PURE__ */
|
|
317
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
293
318
|
className: "text-sm text-text-secondary",
|
|
294
319
|
children: "MCP Connections"
|
|
295
|
-
}), /* @__PURE__ */
|
|
320
|
+
}), /* @__PURE__ */ w("p", {
|
|
296
321
|
className: "font-medium",
|
|
297
322
|
children: [q.length, " servers"]
|
|
298
323
|
})] }),
|
|
299
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
300
325
|
className: "text-sm text-text-secondary",
|
|
301
326
|
children: "Knowledge Bases"
|
|
302
|
-
}), /* @__PURE__ */
|
|
327
|
+
}), /* @__PURE__ */ w("p", {
|
|
303
328
|
className: "font-medium",
|
|
304
329
|
children: [J.length, " KBs"]
|
|
305
330
|
})] }),
|
|
306
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
307
332
|
className: "text-sm text-text-secondary",
|
|
308
333
|
children: "Max Concurrent"
|
|
309
|
-
}), /* @__PURE__ */
|
|
334
|
+
}), /* @__PURE__ */ C("p", {
|
|
310
335
|
className: "font-medium",
|
|
311
336
|
children: Q
|
|
312
337
|
})] }),
|
|
313
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
314
339
|
className: "text-sm text-text-secondary",
|
|
315
340
|
children: "Executions"
|
|
316
|
-
}), /* @__PURE__ */
|
|
341
|
+
}), /* @__PURE__ */ C("p", {
|
|
317
342
|
className: "font-medium",
|
|
318
|
-
children:
|
|
343
|
+
children: z.executionCount ?? 0
|
|
319
344
|
})] }),
|
|
320
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
321
346
|
className: "text-sm text-text-secondary",
|
|
322
347
|
children: "Created"
|
|
323
|
-
}), /* @__PURE__ */
|
|
348
|
+
}), /* @__PURE__ */ C("p", {
|
|
324
349
|
className: "font-medium",
|
|
325
|
-
children:
|
|
350
|
+
children: i(z.createdAt)
|
|
326
351
|
})] }),
|
|
327
|
-
/* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
328
353
|
className: "text-sm text-text-secondary",
|
|
329
354
|
children: "Updated"
|
|
330
|
-
}), /* @__PURE__ */
|
|
355
|
+
}), /* @__PURE__ */ C("p", {
|
|
331
356
|
className: "font-medium",
|
|
332
|
-
children:
|
|
357
|
+
children: i(z.updatedAt)
|
|
333
358
|
})] })
|
|
334
359
|
]
|
|
335
360
|
})]
|
|
336
361
|
}),
|
|
337
|
-
/* @__PURE__ */
|
|
362
|
+
/* @__PURE__ */ w(ie, {
|
|
338
363
|
treatment: "glass",
|
|
339
364
|
glow: !0,
|
|
340
365
|
className: "lg:col-span-2 p-6",
|
|
341
|
-
children: [/* @__PURE__ */
|
|
366
|
+
children: [/* @__PURE__ */ C("h3", {
|
|
342
367
|
className: "mb-4 text-lg font-semibold tracking-tight text-text-primary",
|
|
343
|
-
children:
|
|
344
|
-
}), /* @__PURE__ */
|
|
368
|
+
children: F("botlit.agentDetail.capabilities.title", "Capabilities")
|
|
369
|
+
}), /* @__PURE__ */ C("div", { children: X.length > 0 ? /* @__PURE__ */ C("div", {
|
|
345
370
|
className: "grid grid-cols-2 md:grid-cols-3 gap-4",
|
|
346
|
-
children: X.map((e) => /* @__PURE__ */
|
|
371
|
+
children: X.map((e) => /* @__PURE__ */ w("div", {
|
|
347
372
|
className: "p-3 rounded-lg border border-green-500 bg-green-500/10",
|
|
348
|
-
children: [/* @__PURE__ */
|
|
373
|
+
children: [/* @__PURE__ */ C("p", {
|
|
349
374
|
className: "font-medium",
|
|
350
375
|
children: e
|
|
351
|
-
}), /* @__PURE__ */
|
|
376
|
+
}), /* @__PURE__ */ C(h, {
|
|
352
377
|
variant: "success",
|
|
353
|
-
children:
|
|
378
|
+
children: F("botlit.agentDetail.capabilities.enabled", "Enabled")
|
|
354
379
|
})]
|
|
355
380
|
}, e))
|
|
356
|
-
}) : /* @__PURE__ */
|
|
381
|
+
}) : /* @__PURE__ */ C("p", {
|
|
357
382
|
className: "text-text-secondary",
|
|
358
|
-
children:
|
|
383
|
+
children: F("botlit.agentDetail.capabilities.empty", "No capabilities configured")
|
|
359
384
|
}) })]
|
|
360
385
|
}),
|
|
361
|
-
Z.length > 0 && /* @__PURE__ */
|
|
386
|
+
Z.length > 0 && /* @__PURE__ */ w(u, {
|
|
362
387
|
className: "lg:col-span-3",
|
|
363
|
-
children: [/* @__PURE__ */
|
|
388
|
+
children: [/* @__PURE__ */ C(p, { children: /* @__PURE__ */ C(m, { children: F("botlit.agentDetail.tags.title", "Tags") }) }), /* @__PURE__ */ C(d, { children: /* @__PURE__ */ C("div", {
|
|
364
389
|
className: "flex flex-wrap gap-2",
|
|
365
|
-
children: Z.map((e) => /* @__PURE__ */
|
|
390
|
+
children: Z.map((e) => /* @__PURE__ */ C(h, {
|
|
366
391
|
variant: "outline",
|
|
367
392
|
children: e
|
|
368
393
|
}, e))
|
|
@@ -372,184 +397,184 @@ var P = () => {
|
|
|
372
397
|
})
|
|
373
398
|
]
|
|
374
399
|
}),
|
|
375
|
-
U === "prompt" && /* @__PURE__ */
|
|
400
|
+
U === "prompt" && /* @__PURE__ */ C("div", {
|
|
376
401
|
className: "space-y-6",
|
|
377
|
-
children: /* @__PURE__ */
|
|
402
|
+
children: /* @__PURE__ */ w(u, { children: [/* @__PURE__ */ w(p, { children: [/* @__PURE__ */ w(m, {
|
|
378
403
|
className: "flex items-center gap-2",
|
|
379
|
-
children: [/* @__PURE__ */
|
|
380
|
-
}), /* @__PURE__ */
|
|
404
|
+
children: [/* @__PURE__ */ C(D, { size: 18 }), F("botlit.agentDetail.prompt.title", "System Prompt")]
|
|
405
|
+
}), /* @__PURE__ */ C(f, { children: F("botlit.agentDetail.prompt.description", "The system prompt that defines this agent's behavior") })] }), /* @__PURE__ */ C(d, {
|
|
381
406
|
className: "space-y-4",
|
|
382
|
-
children: G ? /* @__PURE__ */
|
|
407
|
+
children: G ? /* @__PURE__ */ C("pre", {
|
|
383
408
|
className: "p-4 bg-bg-sunken rounded-lg text-sm whitespace-pre-wrap font-mono",
|
|
384
409
|
children: G
|
|
385
|
-
}) : /* @__PURE__ */
|
|
410
|
+
}) : /* @__PURE__ */ C("p", {
|
|
386
411
|
className: "text-text-secondary",
|
|
387
|
-
children:
|
|
412
|
+
children: F("botlit.agentDetail.prompt.empty", "No system prompt configured")
|
|
388
413
|
})
|
|
389
414
|
})] })
|
|
390
415
|
}),
|
|
391
|
-
U === "llm" && /* @__PURE__ */
|
|
416
|
+
U === "llm" && /* @__PURE__ */ w("div", {
|
|
392
417
|
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
393
|
-
children: [/* @__PURE__ */
|
|
418
|
+
children: [/* @__PURE__ */ w(u, { children: [/* @__PURE__ */ C(p, { children: /* @__PURE__ */ w(m, {
|
|
394
419
|
className: "flex items-center gap-2",
|
|
395
|
-
children: [/* @__PURE__ */
|
|
396
|
-
}) }), /* @__PURE__ */
|
|
420
|
+
children: [/* @__PURE__ */ C(E, { size: 18 }), F("botlit.agentDetail.llm.title", "Model Configuration")]
|
|
421
|
+
}) }), /* @__PURE__ */ w(d, {
|
|
397
422
|
className: "space-y-4",
|
|
398
423
|
children: [
|
|
399
|
-
/* @__PURE__ */
|
|
424
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
400
425
|
className: "text-sm text-text-secondary",
|
|
401
426
|
children: "LLM Model ID"
|
|
402
|
-
}), /* @__PURE__ */
|
|
427
|
+
}), /* @__PURE__ */ C("p", {
|
|
403
428
|
className: "font-medium font-mono",
|
|
404
429
|
children: K || "Not configured"
|
|
405
430
|
})] }),
|
|
406
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
407
432
|
className: "text-sm text-text-secondary",
|
|
408
433
|
children: "Temperature"
|
|
409
|
-
}), /* @__PURE__ */
|
|
434
|
+
}), /* @__PURE__ */ C("p", {
|
|
410
435
|
className: "font-medium",
|
|
411
|
-
children:
|
|
436
|
+
children: ve ?? "Default"
|
|
412
437
|
})] }),
|
|
413
|
-
/* @__PURE__ */
|
|
438
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
414
439
|
className: "text-sm text-text-secondary",
|
|
415
440
|
children: "Max Tokens"
|
|
416
|
-
}), /* @__PURE__ */
|
|
441
|
+
}), /* @__PURE__ */ C("p", {
|
|
417
442
|
className: "font-medium",
|
|
418
|
-
children:
|
|
443
|
+
children: ye ?? "Default"
|
|
419
444
|
})] })
|
|
420
445
|
]
|
|
421
|
-
})] }), /* @__PURE__ */
|
|
446
|
+
})] }), /* @__PURE__ */ w(u, { children: [/* @__PURE__ */ C(p, { children: /* @__PURE__ */ w(m, {
|
|
422
447
|
className: "flex items-center gap-2",
|
|
423
|
-
children: [/* @__PURE__ */
|
|
424
|
-
}) }), /* @__PURE__ */
|
|
448
|
+
children: [/* @__PURE__ */ C(pe, { size: 18 }), F("botlit.agentDetail.executionLimits.title", "Execution Limits")]
|
|
449
|
+
}) }), /* @__PURE__ */ w(d, {
|
|
425
450
|
className: "space-y-4",
|
|
426
451
|
children: [
|
|
427
|
-
/* @__PURE__ */
|
|
452
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
428
453
|
className: "text-sm text-text-secondary",
|
|
429
454
|
children: "Max Concurrent Executions"
|
|
430
|
-
}), /* @__PURE__ */
|
|
455
|
+
}), /* @__PURE__ */ C("p", {
|
|
431
456
|
className: "font-medium",
|
|
432
457
|
children: Q
|
|
433
458
|
})] }),
|
|
434
|
-
/* @__PURE__ */
|
|
459
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
435
460
|
className: "text-sm text-text-secondary",
|
|
436
461
|
children: "Total Executions"
|
|
437
|
-
}), /* @__PURE__ */
|
|
462
|
+
}), /* @__PURE__ */ C("p", {
|
|
438
463
|
className: "font-medium",
|
|
439
|
-
children:
|
|
464
|
+
children: z.executionCount ?? 0
|
|
440
465
|
})] }),
|
|
441
|
-
|
|
466
|
+
z.lastExecutedAt && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
442
467
|
className: "text-sm text-text-secondary",
|
|
443
468
|
children: "Last Executed"
|
|
444
|
-
}), /* @__PURE__ */
|
|
469
|
+
}), /* @__PURE__ */ C("p", {
|
|
445
470
|
className: "font-medium",
|
|
446
|
-
children:
|
|
471
|
+
children: i(z.lastExecutedAt)
|
|
447
472
|
})] })
|
|
448
473
|
]
|
|
449
474
|
})] })]
|
|
450
475
|
}),
|
|
451
|
-
U === "tools" && /* @__PURE__ */
|
|
476
|
+
U === "tools" && /* @__PURE__ */ w("div", {
|
|
452
477
|
className: "space-y-6",
|
|
453
|
-
children: [/* @__PURE__ */
|
|
478
|
+
children: [/* @__PURE__ */ w(u, { children: [/* @__PURE__ */ w(p, { children: [/* @__PURE__ */ w(m, {
|
|
454
479
|
className: "flex items-center gap-2",
|
|
455
|
-
children: [/* @__PURE__ */
|
|
456
|
-
}), /* @__PURE__ */
|
|
480
|
+
children: [/* @__PURE__ */ C(N, { size: 18 }), "MCP Server Connections"]
|
|
481
|
+
}), /* @__PURE__ */ C(f, { children: "Connected MCP servers providing tools" })] }), /* @__PURE__ */ C(d, { children: q.length > 0 ? /* @__PURE__ */ C("div", {
|
|
457
482
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
458
|
-
children: q.map((e) => /* @__PURE__ */
|
|
483
|
+
children: q.map((e) => /* @__PURE__ */ w("div", {
|
|
459
484
|
className: "flex items-center gap-3 p-4 border border-border-subtle rounded-lg",
|
|
460
|
-
children: [/* @__PURE__ */
|
|
485
|
+
children: [/* @__PURE__ */ C("div", {
|
|
461
486
|
className: "p-2 bg-action-primary-bg/10 rounded-lg",
|
|
462
|
-
children: /* @__PURE__ */
|
|
487
|
+
children: /* @__PURE__ */ C(N, {
|
|
463
488
|
size: 18,
|
|
464
489
|
className: "text-primary"
|
|
465
490
|
})
|
|
466
|
-
}), /* @__PURE__ */
|
|
491
|
+
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
467
492
|
className: "font-medium",
|
|
468
493
|
children: "MCP Server"
|
|
469
|
-
}), /* @__PURE__ */
|
|
494
|
+
}), /* @__PURE__ */ C("p", {
|
|
470
495
|
className: "text-sm text-text-secondary font-mono",
|
|
471
496
|
children: e
|
|
472
497
|
})] })]
|
|
473
498
|
}, e))
|
|
474
|
-
}) : /* @__PURE__ */
|
|
499
|
+
}) : /* @__PURE__ */ C("p", {
|
|
475
500
|
className: "text-text-secondary",
|
|
476
501
|
children: "No MCP servers connected"
|
|
477
|
-
}) })] }), Y.length > 0 && /* @__PURE__ */
|
|
502
|
+
}) })] }), Y.length > 0 && /* @__PURE__ */ w(u, { children: [/* @__PURE__ */ C(p, { children: /* @__PURE__ */ w(m, {
|
|
478
503
|
className: "flex items-center gap-2",
|
|
479
|
-
children: [/* @__PURE__ */
|
|
480
|
-
}) }), /* @__PURE__ */
|
|
504
|
+
children: [/* @__PURE__ */ C(k, { size: 18 }), "Workflows"]
|
|
505
|
+
}) }), /* @__PURE__ */ C(d, { children: /* @__PURE__ */ C("div", {
|
|
481
506
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
482
|
-
children: Y.map((e) => /* @__PURE__ */
|
|
507
|
+
children: Y.map((e) => /* @__PURE__ */ C("div", {
|
|
483
508
|
className: "p-4 border border-border-subtle rounded-lg",
|
|
484
|
-
children: /* @__PURE__ */
|
|
509
|
+
children: /* @__PURE__ */ C("p", {
|
|
485
510
|
className: "font-mono text-sm",
|
|
486
511
|
children: e
|
|
487
512
|
})
|
|
488
513
|
}, e))
|
|
489
514
|
}) })] })]
|
|
490
515
|
}),
|
|
491
|
-
U === "knowledge" && /* @__PURE__ */
|
|
516
|
+
U === "knowledge" && /* @__PURE__ */ w(u, { children: [/* @__PURE__ */ w(p, { children: [/* @__PURE__ */ w(m, {
|
|
492
517
|
className: "flex items-center gap-2",
|
|
493
|
-
children: [/* @__PURE__ */
|
|
494
|
-
}), /* @__PURE__ */
|
|
518
|
+
children: [/* @__PURE__ */ C(T, { size: 18 }), "Knowledge Bases"]
|
|
519
|
+
}), /* @__PURE__ */ C(f, { children: "Connected knowledge bases for RAG" })] }), /* @__PURE__ */ C(d, { children: J.length > 0 ? /* @__PURE__ */ C("div", {
|
|
495
520
|
className: "space-y-4",
|
|
496
|
-
children: J.map((e, t) => /* @__PURE__ */
|
|
521
|
+
children: J.map((e, t) => /* @__PURE__ */ w("div", {
|
|
497
522
|
className: "p-4 border border-border-subtle rounded-lg space-y-2",
|
|
498
|
-
children: [/* @__PURE__ */
|
|
523
|
+
children: [/* @__PURE__ */ w("div", {
|
|
499
524
|
className: "flex items-center justify-between",
|
|
500
|
-
children: [/* @__PURE__ */
|
|
525
|
+
children: [/* @__PURE__ */ C("p", {
|
|
501
526
|
className: "font-medium",
|
|
502
527
|
children: "Knowledge Base"
|
|
503
|
-
}), /* @__PURE__ */
|
|
528
|
+
}), /* @__PURE__ */ w(h, {
|
|
504
529
|
variant: "outline",
|
|
505
530
|
children: ["#", t + 1]
|
|
506
531
|
})]
|
|
507
|
-
}), /* @__PURE__ */
|
|
532
|
+
}), /* @__PURE__ */ C("p", {
|
|
508
533
|
className: "font-mono text-sm",
|
|
509
534
|
children: e
|
|
510
535
|
})]
|
|
511
536
|
}, t))
|
|
512
|
-
}) : /* @__PURE__ */
|
|
537
|
+
}) : /* @__PURE__ */ C("p", {
|
|
513
538
|
className: "text-text-secondary",
|
|
514
539
|
children: "No knowledge bases connected"
|
|
515
540
|
}) })] }),
|
|
516
|
-
U === "guardrails" && /* @__PURE__ */
|
|
541
|
+
U === "guardrails" && /* @__PURE__ */ w(u, { children: [/* @__PURE__ */ w(p, { children: [/* @__PURE__ */ w(m, {
|
|
517
542
|
className: "flex items-center gap-2",
|
|
518
|
-
children: [/* @__PURE__ */
|
|
519
|
-
}), /* @__PURE__ */
|
|
543
|
+
children: [/* @__PURE__ */ C(j, { size: 18 }), "Guardrails & Policies"]
|
|
544
|
+
}), /* @__PURE__ */ C(f, { children: "Security and policy configurations" })] }), /* @__PURE__ */ C(d, { children: $ ? /* @__PURE__ */ C("div", {
|
|
520
545
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
521
|
-
children: Object.entries($).filter(([e, t]) => t).map(([e, t]) => /* @__PURE__ */
|
|
546
|
+
children: Object.entries($).filter(([e, t]) => t).map(([e, t]) => /* @__PURE__ */ w("div", {
|
|
522
547
|
className: "p-4 border border-border-subtle rounded-lg",
|
|
523
|
-
children: [/* @__PURE__ */
|
|
548
|
+
children: [/* @__PURE__ */ C("p", {
|
|
524
549
|
className: "text-sm text-text-secondary capitalize",
|
|
525
550
|
children: e.replace("Id", "").replace(/([A-Z])/g, " $1").trim()
|
|
526
|
-
}), /* @__PURE__ */
|
|
551
|
+
}), /* @__PURE__ */ C("p", {
|
|
527
552
|
className: "font-mono text-sm",
|
|
528
553
|
children: String(t)
|
|
529
554
|
})]
|
|
530
555
|
}, e))
|
|
531
|
-
}) : /* @__PURE__ */
|
|
556
|
+
}) : /* @__PURE__ */ C("p", {
|
|
532
557
|
className: "text-text-secondary",
|
|
533
558
|
children: "No policy bindings configured"
|
|
534
559
|
}) })] }),
|
|
535
|
-
U === "a2a" && /* @__PURE__ */
|
|
560
|
+
U === "a2a" && /* @__PURE__ */ w(u, { children: [/* @__PURE__ */ w(p, { children: [/* @__PURE__ */ w(m, {
|
|
536
561
|
className: "flex items-center gap-2",
|
|
537
|
-
children: [/* @__PURE__ */
|
|
538
|
-
}), /* @__PURE__ */
|
|
562
|
+
children: [/* @__PURE__ */ C(A, { size: 18 }), "A2A Configuration"]
|
|
563
|
+
}), /* @__PURE__ */ C(f, { children: "Agent-to-Agent communication settings" })] }), /* @__PURE__ */ C(d, { children: /* @__PURE__ */ C("p", {
|
|
539
564
|
className: "text-text-secondary",
|
|
540
565
|
children: "A2A is not enabled for this agent"
|
|
541
566
|
}) })] }),
|
|
542
|
-
U === "versions" &&
|
|
543
|
-
agentId:
|
|
544
|
-
draftVersionId:
|
|
545
|
-
currentVersionId:
|
|
546
|
-
onChanged: () => void
|
|
567
|
+
U === "versions" && I && /* @__PURE__ */ C(b, {
|
|
568
|
+
agentId: I,
|
|
569
|
+
draftVersionId: z.draftVersionId,
|
|
570
|
+
currentVersionId: z.currentVersionId,
|
|
571
|
+
onChanged: () => void B()
|
|
547
572
|
})
|
|
548
573
|
]
|
|
549
574
|
})
|
|
550
575
|
});
|
|
551
576
|
};
|
|
552
577
|
//#endregion
|
|
553
|
-
export {
|
|
578
|
+
export { F as AgentDetailPage };
|
|
554
579
|
|
|
555
580
|
//# sourceMappingURL=AgentDetailPage.js.map
|