@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.
- package/dist/botlit/BotlitRoutes.js +0 -1
- package/dist/botlit/BotlitRoutes.js.map +1 -1
- package/dist/botlit/BotmanorRootInner.js +38 -41
- package/dist/botlit/BotmanorRootInner.js.map +1 -1
- package/dist/botlit/components/A2ACardVerificationCard.js +0 -1
- package/dist/botlit/components/A2ACardVerificationCard.js.map +1 -1
- package/dist/botlit/components/AgentA2APanel.js +20 -21
- package/dist/botlit/components/AgentA2APanel.js.map +1 -1
- package/dist/botlit/components/AgentApprovalPanel.js +22 -23
- package/dist/botlit/components/AgentApprovalPanel.js.map +1 -1
- package/dist/botlit/components/AgentBindingsPanel.js +66 -68
- package/dist/botlit/components/AgentBindingsPanel.js.map +1 -1
- package/dist/botlit/components/AiOperationsPanel.js +34 -35
- package/dist/botlit/components/AiOperationsPanel.js.map +1 -1
- package/dist/botlit/components/BotAgentsPanel.js +59 -60
- package/dist/botlit/components/BotAgentsPanel.js.map +1 -1
- package/dist/botlit/components/BotVersionHistoryPanel.js +19 -20
- package/dist/botlit/components/BotVersionHistoryPanel.js.map +1 -1
- package/dist/botlit/components/BucketDialogs.js +0 -1
- package/dist/botlit/components/BucketDialogs.js.map +1 -1
- package/dist/botlit/components/ChannelRoutesPanel.js +82 -84
- package/dist/botlit/components/ChannelRoutesPanel.js.map +1 -1
- package/dist/botlit/components/CreateChannelRouteDialog.js +4 -5
- package/dist/botlit/components/CreateChannelRouteDialog.js.map +1 -1
- package/dist/botlit/components/DescribeBotDialog.js +0 -1
- package/dist/botlit/components/DescribeBotDialog.js.map +1 -1
- package/dist/botlit/components/GettingStartedChecklist.js +9 -10
- package/dist/botlit/components/GettingStartedChecklist.js.map +1 -1
- package/dist/botlit/components/HandoffConfigPanel.js +0 -1
- package/dist/botlit/components/HandoffConfigPanel.js.map +1 -1
- package/dist/botlit/components/RetentionStatusPanel.js +10 -12
- package/dist/botlit/components/RetentionStatusPanel.js.map +1 -1
- package/dist/botlit/components/StewardApprovalsInbox.js +201 -212
- package/dist/botlit/components/StewardApprovalsInbox.js.map +1 -1
- package/dist/botlit/components/StoreOwnPackagesCard.js +21 -22
- package/dist/botlit/components/StoreOwnPackagesCard.js.map +1 -1
- package/dist/botlit/components/StorePackageDraftCard.js +38 -39
- package/dist/botlit/components/StorePackageDraftCard.js.map +1 -1
- package/dist/botlit/components/StorePolicyBundleCard.js +27 -29
- package/dist/botlit/components/StorePolicyBundleCard.js.map +1 -1
- package/dist/botlit/components/StoreSubmissionsCard.js +64 -65
- package/dist/botlit/components/StoreSubmissionsCard.js.map +1 -1
- package/dist/botlit/components/VersionHistoryPanel.js +18 -19
- package/dist/botlit/components/VersionHistoryPanel.js.map +1 -1
- package/dist/botlit/hooks/internal/workspaceGateway.d.ts +6 -0
- package/dist/botlit/hooks/internal/workspaceGateway.js +40 -40
- package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
- package/dist/botlit/hooks/useToolApprovals.d.ts +8 -3
- package/dist/botlit/hooks/useToolApprovals.js +68 -73
- package/dist/botlit/hooks/useToolApprovals.js.map +1 -1
- package/dist/botlit/pages/A2AAgentDetailPage.js +331 -332
- package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/A2ARegistryPage.js +39 -41
- package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
- package/dist/botlit/pages/AgentApprovalsPage.js +24 -25
- package/dist/botlit/pages/AgentApprovalsPage.js.map +1 -1
- package/dist/botlit/pages/AgentBuilderPage.js +470 -471
- package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
- package/dist/botlit/pages/AgentDetailPage.js +68 -69
- package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/AgentsListPage.js +277 -278
- package/dist/botlit/pages/AgentsListPage.js.map +1 -1
- package/dist/botlit/pages/AiOperationsPage.js +44 -46
- package/dist/botlit/pages/AiOperationsPage.js.map +1 -1
- package/dist/botlit/pages/BotChannelsTab.js +354 -356
- package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
- package/dist/botlit/pages/BotDetailPage.js +138 -139
- package/dist/botlit/pages/BotDetailPage.js.map +1 -1
- package/dist/botlit/pages/BotWorkflowTab.js +23 -24
- package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
- package/dist/botlit/pages/BotsListPage.js +32 -33
- package/dist/botlit/pages/BotsListPage.js.map +1 -1
- package/dist/botlit/pages/BucketDetailPage.js +110 -112
- package/dist/botlit/pages/BucketDetailPage.js.map +1 -1
- package/dist/botlit/pages/BucketsPage.js +115 -117
- package/dist/botlit/pages/BucketsPage.js.map +1 -1
- package/dist/botlit/pages/ChannelDetailPage.js +105 -107
- package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
- package/dist/botlit/pages/ChannelsPage.js +38 -40
- package/dist/botlit/pages/ChannelsPage.js.map +1 -1
- package/dist/botlit/pages/DashboardPage.js +26 -27
- package/dist/botlit/pages/DashboardPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionDetailPage.js +70 -71
- package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionsPage.js +219 -220
- package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
- package/dist/botlit/pages/HandoffsPage.js +208 -210
- package/dist/botlit/pages/HandoffsPage.js.map +1 -1
- package/dist/botlit/pages/InstalledPackagesPage.js +179 -181
- package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js +194 -195
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBasesPage.js +38 -39
- package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
- package/dist/botlit/pages/MCPServerDetailPage.js +178 -180
- package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
- package/dist/botlit/pages/MCPServersPage.js +42 -43
- package/dist/botlit/pages/MCPServersPage.js.map +1 -1
- package/dist/botlit/pages/PoliciesPage.js +77 -78
- package/dist/botlit/pages/PoliciesPage.js.map +1 -1
- package/dist/botlit/pages/PolicyDetailPage.js +517 -519
- package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptStudioPage.js +81 -83
- package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplateDetailPage.js +137 -139
- package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplatesPage.js +28 -30
- package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfileDetailPage.js +64 -65
- package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfilesPage.js +59 -60
- package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
- package/dist/botlit/pages/SettingsPage.js +30 -31
- package/dist/botlit/pages/SettingsPage.js.map +1 -1
- package/dist/botlit/pages/SkillDetailPage.js +205 -207
- package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
- package/dist/botlit/pages/SkillsPage.js +68 -69
- package/dist/botlit/pages/SkillsPage.js.map +1 -1
- package/dist/botlit/pages/StorePackageDetailPage.js +39 -41
- package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
- package/dist/botlit/pages/StorePage.js +169 -171
- package/dist/botlit/pages/StorePage.js.map +1 -1
- package/dist/botlit/pages/ToolApprovalsPage.js +61 -62
- package/dist/botlit/pages/ToolApprovalsPage.js.map +1 -1
- package/dist/botlit/providers/WorkspaceFlagScope.d.ts +7 -0
- package/dist/botlit/providers/WorkspaceFlagScope.js +17 -0
- package/dist/botlit/providers/WorkspaceFlagScope.js.map +1 -0
- package/dist/botlit/providers/workspaceFlagKeys.d.ts +18 -0
- package/dist/botlit/providers/workspaceFlagKeys.js +8 -0
- package/dist/botlit/providers/workspaceFlagKeys.js.map +1 -0
- package/dist/index.js +0 -1
- package/package.json +4 -1
- package/dist/botlit/hooks/index.js +0 -21
- package/dist/botlit/index.js +0 -12
- package/dist/botlit/permissions/index.js +0 -4
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
import { useTr as e } from "../../shared/hooks/useTr.js";
|
|
2
2
|
import { useBotlit as t } from "../providers/BotlitProvider.js";
|
|
3
3
|
import { isNative as n, nativeImpact as r, nativeNotify as i } from "../../utils/nativeBridge.js";
|
|
4
|
-
import {
|
|
5
|
-
import { BotmanorPermissionGate as o } from "../permissions/useBotmanorPermissions.js";
|
|
6
|
-
import { PageLayout as s } from "../components/PageLayout.js";
|
|
4
|
+
import { PageLayout as a } from "../components/PageLayout.js";
|
|
7
5
|
import { EmptyState as ee } from "../components/EmptyState.js";
|
|
8
|
-
import { Card as
|
|
9
|
-
import { Button as
|
|
10
|
-
import { FormField as
|
|
11
|
-
import { Badge as
|
|
12
|
-
import "../hooks/
|
|
6
|
+
import { Card as o, CardContent as s, CardDescription as c, CardHeader as l, CardTitle as u } from "../components/Card.js";
|
|
7
|
+
import { Button as d } from "../components/Button.js";
|
|
8
|
+
import { FormField as f, Input as p, Textarea as m } from "../components/Input.js";
|
|
9
|
+
import { Badge as h, StatusBadge as te } from "../components/Badge.js";
|
|
10
|
+
import { useCreateSkill as ne, useDeleteSkill as re, useSkill as ie, useUpdateSkill as ae } from "../hooks/useSkills.js";
|
|
11
|
+
import { usePromptTemplates as oe } from "../hooks/usePromptTemplates.js";
|
|
12
|
+
import { usePolicies as g } from "../hooks/usePolicies.js";
|
|
13
|
+
import { useRetrievalProfiles as _ } from "../hooks/useRetrievalProfiles.js";
|
|
13
14
|
import { formatRelativeTime as v } from "../utils/formatters.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import "
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
23
|
-
import { Link as k, useParams as se } from "react-router";
|
|
24
|
-
import { ArrowLeft as ce, CheckCircle as le, Database as A, Edit as ue, ExternalLink as j, FileText as M, Save as N, Settings as de, Shield as P, Trash2 as fe, Wrench as F, XCircle as I, Zap as L } from "lucide-react";
|
|
15
|
+
import { jsonBoolean as y, toUnion as b } from "../utils/unions.js";
|
|
16
|
+
import { BOTMANOR_PERMISSIONS as x } from "../permissions/botmanorPermissions.js";
|
|
17
|
+
import { BotmanorPermissionGate as S } from "../permissions/useBotmanorPermissions.js";
|
|
18
|
+
import { useState as C } from "react";
|
|
19
|
+
import { PagePurpose as se, ThemedSelect as w } from "@burdenoff/fe-libs/ui";
|
|
20
|
+
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
21
|
+
import { Link as O, useParams as ce } from "react-router";
|
|
22
|
+
import { ArrowLeft as le, CheckCircle as ue, Database as k, Edit as A, ExternalLink as j, FileText as M, Save as N, Settings as de, Shield as P, Trash2 as fe, Wrench as F, XCircle as I, Zap as L } from "lucide-react";
|
|
25
23
|
import { toast as R } from "sonner";
|
|
26
24
|
// src/botlit/pages/SkillDetailPage.tsx
|
|
27
25
|
var z = [
|
|
@@ -29,7 +27,7 @@ var z = [
|
|
|
29
27
|
"WORKSPACE",
|
|
30
28
|
"PUBLIC"
|
|
31
29
|
], B = ({ isNew: B }) => {
|
|
32
|
-
let V = e(), { skillId: H } =
|
|
30
|
+
let V = e(), { skillId: H } = ce(), { navigateTo: U, getPath: W } = t(), { data: G, loading: pe } = ie(B ? void 0 : H), { data: K } = oe(), { data: me } = g(), { data: q } = _(), { create: he, loading: ge } = ne(), { update: _e, loading: ve } = ae(), { remove: ye, loading: be } = re(), [J, Y] = C(!1), [xe, X] = C(!1), [Z, Q] = C({
|
|
33
31
|
name: "",
|
|
34
32
|
description: "",
|
|
35
33
|
visibility: "PRIVATE",
|
|
@@ -98,44 +96,44 @@ var z = [
|
|
|
98
96
|
G && (Q({
|
|
99
97
|
name: G.name,
|
|
100
98
|
description: G.description || "",
|
|
101
|
-
visibility:
|
|
99
|
+
visibility: b(G.visibility, z, "PRIVATE"),
|
|
102
100
|
promptTemplateId: G.promptTemplateId || "",
|
|
103
101
|
toolPolicyId: G.toolPolicyId || "",
|
|
104
102
|
retrievalProfileId: G.retrievalProfileId || "",
|
|
105
103
|
toolPackDeps: G.toolPackDeps.join(", "),
|
|
106
104
|
recommendedPolicies: G.recommendedPolicies.join(", "),
|
|
107
|
-
requiresTools:
|
|
108
|
-
requiresKnowledge:
|
|
109
|
-
requiresA2A:
|
|
105
|
+
requiresTools: y(G.capabilityFlags, "requiresTools"),
|
|
106
|
+
requiresKnowledge: y(G.capabilityFlags, "requiresKnowledge"),
|
|
107
|
+
requiresA2A: y(G.capabilityFlags, "requiresA2A")
|
|
110
108
|
}), Y(!0));
|
|
111
109
|
}, Oe = me?.filter((e) => e.type === "TOOL") || [];
|
|
112
|
-
if (B) return /* @__PURE__ */
|
|
110
|
+
if (B) return /* @__PURE__ */ E(a, {
|
|
113
111
|
title: V("botlit.skillDetail.createSkill", "Create Skill"),
|
|
114
112
|
description: V("botlit.skillDetail.bundlePromptsToolsAndPolicies", "Bundle prompts, tools, and policies into a reusable skill"),
|
|
115
|
-
actions: /* @__PURE__ */
|
|
113
|
+
actions: /* @__PURE__ */ D("div", {
|
|
116
114
|
className: "flex gap-2",
|
|
117
|
-
children: [/* @__PURE__ */
|
|
115
|
+
children: [/* @__PURE__ */ E(d, {
|
|
118
116
|
variant: "outline",
|
|
119
117
|
onClick: () => U("skills"),
|
|
120
118
|
children: V("botlit.skillDetail.cancel", "Cancel")
|
|
121
|
-
}), /* @__PURE__ */
|
|
122
|
-
leftIcon: /* @__PURE__ */
|
|
119
|
+
}), /* @__PURE__ */ E(d, {
|
|
120
|
+
leftIcon: /* @__PURE__ */ E(N, { size: 16 }),
|
|
123
121
|
onClick: Se,
|
|
124
122
|
isLoading: ge,
|
|
125
123
|
disabled: !Z.name,
|
|
126
124
|
children: V("botlit.skillDetail.create", "Create")
|
|
127
125
|
})]
|
|
128
126
|
}),
|
|
129
|
-
children: /* @__PURE__ */
|
|
127
|
+
children: /* @__PURE__ */ D("div", {
|
|
130
128
|
className: "max-w-2xl space-y-6",
|
|
131
129
|
children: [
|
|
132
|
-
/* @__PURE__ */
|
|
130
|
+
/* @__PURE__ */ D(o, { children: [/* @__PURE__ */ E(l, { children: /* @__PURE__ */ E(u, { children: V("botlit.skillDetail.basicInformation", "Basic Information") }) }), /* @__PURE__ */ D(s, {
|
|
133
131
|
className: "space-y-4",
|
|
134
132
|
children: [
|
|
135
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ E(f, {
|
|
136
134
|
label: V("botlit.skillDetail.skillName", "Skill Name"),
|
|
137
135
|
required: !0,
|
|
138
|
-
children: /* @__PURE__ */
|
|
136
|
+
children: /* @__PURE__ */ E(p, {
|
|
139
137
|
placeholder: V("botlit.skillDetail.exampleCodeReviewSkill", "e.g., Code Review Skill"),
|
|
140
138
|
value: Z.name,
|
|
141
139
|
onChange: (e) => Q({
|
|
@@ -144,9 +142,9 @@ var z = [
|
|
|
144
142
|
})
|
|
145
143
|
})
|
|
146
144
|
}),
|
|
147
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ E(f, {
|
|
148
146
|
label: V("botlit.skillDetail.description", "Description"),
|
|
149
|
-
children: /* @__PURE__ */
|
|
147
|
+
children: /* @__PURE__ */ E(m, {
|
|
150
148
|
placeholder: V("botlit.skillDetail.whatDoesThisSkillEnable", "What does this skill enable agents to do?"),
|
|
151
149
|
value: Z.description,
|
|
152
150
|
onChange: (e) => Q({
|
|
@@ -156,9 +154,9 @@ var z = [
|
|
|
156
154
|
rows: 3
|
|
157
155
|
})
|
|
158
156
|
}),
|
|
159
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ E(f, {
|
|
160
158
|
label: V("botlit.skillDetail.visibility", "Visibility"),
|
|
161
|
-
children: /* @__PURE__ */
|
|
159
|
+
children: /* @__PURE__ */ D(w, {
|
|
162
160
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
163
161
|
value: Z.visibility,
|
|
164
162
|
onChange: (e) => Q({
|
|
@@ -166,15 +164,15 @@ var z = [
|
|
|
166
164
|
visibility: e.target.value
|
|
167
165
|
}),
|
|
168
166
|
children: [
|
|
169
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ E("option", {
|
|
170
168
|
value: "PRIVATE",
|
|
171
169
|
children: V("botlit.skillDetail.private", "Private")
|
|
172
170
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ E("option", {
|
|
174
172
|
value: "WORKSPACE",
|
|
175
173
|
children: V("botlit.skillDetail.workspace", "Workspace")
|
|
176
174
|
}),
|
|
177
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ E("option", {
|
|
178
176
|
value: "PUBLIC",
|
|
179
177
|
children: V("botlit.skillDetail.public", "Public")
|
|
180
178
|
})
|
|
@@ -183,22 +181,22 @@ var z = [
|
|
|
183
181
|
})
|
|
184
182
|
]
|
|
185
183
|
})] }),
|
|
186
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ D(o, { children: [/* @__PURE__ */ D(l, { children: [/* @__PURE__ */ D(u, {
|
|
187
185
|
className: "flex items-center gap-2",
|
|
188
|
-
children: [/* @__PURE__ */
|
|
189
|
-
}), /* @__PURE__ */
|
|
186
|
+
children: [/* @__PURE__ */ E(M, { size: 18 }), V("botlit.skillDetail.promptTemplate", "Prompt Template")]
|
|
187
|
+
}), /* @__PURE__ */ E(c, { children: V("botlit.skillDetail.associateAPromptTemplateWith", "Associate a prompt template with this skill") })] }), /* @__PURE__ */ E(s, { children: /* @__PURE__ */ E(f, {
|
|
190
188
|
label: V("botlit.skillDetail.promptTemplate", "Prompt Template"),
|
|
191
|
-
children: /* @__PURE__ */
|
|
189
|
+
children: /* @__PURE__ */ D(w, {
|
|
192
190
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
193
191
|
value: Z.promptTemplateId,
|
|
194
192
|
onChange: (e) => Q({
|
|
195
193
|
...Z,
|
|
196
194
|
promptTemplateId: e.target.value
|
|
197
195
|
}),
|
|
198
|
-
children: [/* @__PURE__ */
|
|
196
|
+
children: [/* @__PURE__ */ E("option", {
|
|
199
197
|
value: "",
|
|
200
198
|
children: V("botlit.skillDetail.none", "None")
|
|
201
|
-
}), K?.map((e) => /* @__PURE__ */
|
|
199
|
+
}), K?.map((e) => /* @__PURE__ */ D("option", {
|
|
202
200
|
value: e.id,
|
|
203
201
|
children: [
|
|
204
202
|
e.name,
|
|
@@ -209,32 +207,32 @@ var z = [
|
|
|
209
207
|
}, e.id))]
|
|
210
208
|
})
|
|
211
209
|
}) })] }),
|
|
212
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ D(o, { children: [/* @__PURE__ */ D(l, { children: [/* @__PURE__ */ D(u, {
|
|
213
211
|
className: "flex items-center gap-2",
|
|
214
|
-
children: [/* @__PURE__ */
|
|
215
|
-
}), /* @__PURE__ */
|
|
212
|
+
children: [/* @__PURE__ */ E(F, { size: 18 }), V("botlit.skillDetail.toolsConfiguration", "Tools Configuration")]
|
|
213
|
+
}), /* @__PURE__ */ E(c, { children: V("botlit.skillDetail.configureToolAccessForThis", "Configure tool access for this skill") })] }), /* @__PURE__ */ D(s, {
|
|
216
214
|
className: "space-y-4",
|
|
217
|
-
children: [/* @__PURE__ */
|
|
215
|
+
children: [/* @__PURE__ */ E(f, {
|
|
218
216
|
label: V("botlit.skillDetail.toolPolicy", "Tool Policy"),
|
|
219
|
-
children: /* @__PURE__ */
|
|
217
|
+
children: /* @__PURE__ */ D(w, {
|
|
220
218
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
221
219
|
value: Z.toolPolicyId,
|
|
222
220
|
onChange: (e) => Q({
|
|
223
221
|
...Z,
|
|
224
222
|
toolPolicyId: e.target.value
|
|
225
223
|
}),
|
|
226
|
-
children: [/* @__PURE__ */
|
|
224
|
+
children: [/* @__PURE__ */ E("option", {
|
|
227
225
|
value: "",
|
|
228
226
|
children: V("botlit.skillDetail.none", "None")
|
|
229
|
-
}), Oe.map((e) => /* @__PURE__ */
|
|
227
|
+
}), Oe.map((e) => /* @__PURE__ */ E("option", {
|
|
230
228
|
value: e.id,
|
|
231
229
|
children: e.name
|
|
232
230
|
}, e.id))]
|
|
233
231
|
})
|
|
234
|
-
}), /* @__PURE__ */
|
|
232
|
+
}), /* @__PURE__ */ E(f, {
|
|
235
233
|
label: V("botlit.skillDetail.toolPackDependencies", "Tool Pack Dependencies"),
|
|
236
234
|
description: V("botlit.skillDetail.commaSeparatedPackageSlugs", "Comma-separated package slugs"),
|
|
237
|
-
children: /* @__PURE__ */
|
|
235
|
+
children: /* @__PURE__ */ E(p, {
|
|
238
236
|
placeholder: V("botlit.skillDetail.exampleToolPacks", "e.g., @botlit/github-tools, @botlit/web-browser"),
|
|
239
237
|
value: Z.toolPackDeps,
|
|
240
238
|
onChange: (e) => Q({
|
|
@@ -244,36 +242,36 @@ var z = [
|
|
|
244
242
|
})
|
|
245
243
|
})]
|
|
246
244
|
})] }),
|
|
247
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ D(o, { children: [/* @__PURE__ */ D(l, { children: [/* @__PURE__ */ D(u, {
|
|
248
246
|
className: "flex items-center gap-2",
|
|
249
|
-
children: [/* @__PURE__ */
|
|
250
|
-
}), /* @__PURE__ */
|
|
247
|
+
children: [/* @__PURE__ */ E(k, { size: 18 }), V("botlit.skillDetail.knowledgeConfiguration", "Knowledge Configuration")]
|
|
248
|
+
}), /* @__PURE__ */ E(c, { children: V("botlit.skillDetail.configureKnowledgeRetrievalForThis", "Configure knowledge retrieval for this skill") })] }), /* @__PURE__ */ E(s, { children: /* @__PURE__ */ E(f, {
|
|
251
249
|
label: V("botlit.skillDetail.retrievalProfile", "Retrieval Profile"),
|
|
252
|
-
children: /* @__PURE__ */
|
|
250
|
+
children: /* @__PURE__ */ D(w, {
|
|
253
251
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
254
252
|
value: Z.retrievalProfileId,
|
|
255
253
|
onChange: (e) => Q({
|
|
256
254
|
...Z,
|
|
257
255
|
retrievalProfileId: e.target.value
|
|
258
256
|
}),
|
|
259
|
-
children: [/* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ E("option", {
|
|
260
258
|
value: "",
|
|
261
259
|
children: V("botlit.skillDetail.none", "None")
|
|
262
|
-
}), q?.map((e) => /* @__PURE__ */
|
|
260
|
+
}), q?.map((e) => /* @__PURE__ */ E("option", {
|
|
263
261
|
value: e.id,
|
|
264
262
|
children: e.name
|
|
265
263
|
}, e.id))]
|
|
266
264
|
})
|
|
267
265
|
}) })] }),
|
|
268
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ D(o, { children: [/* @__PURE__ */ E(l, { children: /* @__PURE__ */ D(u, {
|
|
269
267
|
className: "flex items-center gap-2",
|
|
270
|
-
children: [/* @__PURE__ */
|
|
271
|
-
}) }), /* @__PURE__ */
|
|
268
|
+
children: [/* @__PURE__ */ E(P, { size: 18 }), V("botlit.skillDetail.policiesCapabilities", "Policies & Capabilities")]
|
|
269
|
+
}) }), /* @__PURE__ */ D(s, {
|
|
272
270
|
className: "space-y-4",
|
|
273
|
-
children: [/* @__PURE__ */
|
|
271
|
+
children: [/* @__PURE__ */ E(f, {
|
|
274
272
|
label: V("botlit.skillDetail.recommendedPolicies", "Recommended Policies"),
|
|
275
273
|
description: V("botlit.skillDetail.commaSeparatedPolicyIds", "Comma-separated policy IDs"),
|
|
276
|
-
children: /* @__PURE__ */
|
|
274
|
+
children: /* @__PURE__ */ E(p, {
|
|
277
275
|
placeholder: V("botlit.skillDetail.examplePolicies", "e.g., content-policy-1, budget-policy-1"),
|
|
278
276
|
value: Z.recommendedPolicies,
|
|
279
277
|
onChange: (e) => Q({
|
|
@@ -281,17 +279,17 @@ var z = [
|
|
|
281
279
|
recommendedPolicies: e.target.value
|
|
282
280
|
})
|
|
283
281
|
})
|
|
284
|
-
}), /* @__PURE__ */
|
|
282
|
+
}), /* @__PURE__ */ D("div", {
|
|
285
283
|
className: "space-y-2",
|
|
286
|
-
children: [/* @__PURE__ */
|
|
284
|
+
children: [/* @__PURE__ */ E("p", {
|
|
287
285
|
className: "text-sm font-medium",
|
|
288
286
|
children: V("botlit.skillDetail.capabilityRequirements", "Capability Requirements")
|
|
289
|
-
}), /* @__PURE__ */
|
|
287
|
+
}), /* @__PURE__ */ D("div", {
|
|
290
288
|
className: "flex flex-wrap gap-4",
|
|
291
289
|
children: [
|
|
292
|
-
/* @__PURE__ */
|
|
290
|
+
/* @__PURE__ */ D("label", {
|
|
293
291
|
className: "flex items-center gap-2",
|
|
294
|
-
children: [/* @__PURE__ */
|
|
292
|
+
children: [/* @__PURE__ */ E("input", {
|
|
295
293
|
type: "checkbox",
|
|
296
294
|
checked: Z.requiresTools,
|
|
297
295
|
onChange: (e) => Q({
|
|
@@ -299,14 +297,14 @@ var z = [
|
|
|
299
297
|
requiresTools: e.target.checked
|
|
300
298
|
}),
|
|
301
299
|
className: "h-4 w-4"
|
|
302
|
-
}), /* @__PURE__ */
|
|
300
|
+
}), /* @__PURE__ */ E("span", {
|
|
303
301
|
className: "text-sm",
|
|
304
302
|
children: V("botlit.skillDetail.requiresTools", "Requires Tools")
|
|
305
303
|
})]
|
|
306
304
|
}),
|
|
307
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ D("label", {
|
|
308
306
|
className: "flex items-center gap-2",
|
|
309
|
-
children: [/* @__PURE__ */
|
|
307
|
+
children: [/* @__PURE__ */ E("input", {
|
|
310
308
|
type: "checkbox",
|
|
311
309
|
checked: Z.requiresKnowledge,
|
|
312
310
|
onChange: (e) => Q({
|
|
@@ -314,14 +312,14 @@ var z = [
|
|
|
314
312
|
requiresKnowledge: e.target.checked
|
|
315
313
|
}),
|
|
316
314
|
className: "h-4 w-4"
|
|
317
|
-
}), /* @__PURE__ */
|
|
315
|
+
}), /* @__PURE__ */ E("span", {
|
|
318
316
|
className: "text-sm",
|
|
319
317
|
children: V("botlit.skillDetail.requiresKnowledge", "Requires Knowledge")
|
|
320
318
|
})]
|
|
321
319
|
}),
|
|
322
|
-
/* @__PURE__ */
|
|
320
|
+
/* @__PURE__ */ D("label", {
|
|
323
321
|
className: "flex items-center gap-2",
|
|
324
|
-
children: [/* @__PURE__ */
|
|
322
|
+
children: [/* @__PURE__ */ E("input", {
|
|
325
323
|
type: "checkbox",
|
|
326
324
|
checked: Z.requiresA2A,
|
|
327
325
|
onChange: (e) => Q({
|
|
@@ -329,7 +327,7 @@ var z = [
|
|
|
329
327
|
requiresA2A: e.target.checked
|
|
330
328
|
}),
|
|
331
329
|
className: "h-4 w-4"
|
|
332
|
-
}), /* @__PURE__ */
|
|
330
|
+
}), /* @__PURE__ */ E("span", {
|
|
333
331
|
className: "text-sm",
|
|
334
332
|
children: V("botlit.skillDetail.requiresA2a", "Requires A2A")
|
|
335
333
|
})]
|
|
@@ -341,81 +339,81 @@ var z = [
|
|
|
341
339
|
]
|
|
342
340
|
})
|
|
343
341
|
});
|
|
344
|
-
if (pe) return /* @__PURE__ */
|
|
342
|
+
if (pe) return /* @__PURE__ */ E(a, {
|
|
345
343
|
title: V("botlit.skillDetail.loading", "Loading..."),
|
|
346
|
-
children: /* @__PURE__ */
|
|
344
|
+
children: /* @__PURE__ */ E("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
|
|
347
345
|
});
|
|
348
|
-
if (!G) return /* @__PURE__ */
|
|
346
|
+
if (!G) return /* @__PURE__ */ E(a, {
|
|
349
347
|
title: V("botlit.skillDetail.skillNotFound", "Skill Not Found"),
|
|
350
|
-
children: /* @__PURE__ */
|
|
348
|
+
children: /* @__PURE__ */ E(ee, {
|
|
351
349
|
kind: "not-found",
|
|
352
350
|
illustration: "empty-generic",
|
|
353
351
|
title: V("botlit.skillDetail.skillNotFound", "Skill Not Found"),
|
|
354
352
|
description: V("botlit.skillDetail.thisSkillDoesnTExist", "This skill doesn't exist."),
|
|
355
|
-
action: /* @__PURE__ */
|
|
353
|
+
action: /* @__PURE__ */ E(d, {
|
|
356
354
|
onClick: () => U("skills"),
|
|
357
355
|
children: V("botlit.skillDetail.backToSkills", "Back to Skills")
|
|
358
356
|
})
|
|
359
357
|
})
|
|
360
358
|
});
|
|
361
|
-
let $ = ({ label: e, enabled: t }) => /* @__PURE__ */
|
|
359
|
+
let $ = ({ label: e, enabled: t }) => /* @__PURE__ */ D("div", {
|
|
362
360
|
className: "flex items-center gap-2",
|
|
363
|
-
children: [t ? /* @__PURE__ */
|
|
361
|
+
children: [t ? /* @__PURE__ */ E(ue, { className: "h-4 w-4 text-status-success-text" }) : /* @__PURE__ */ E(I, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ E("span", {
|
|
364
362
|
className: t ? "text-text-primary" : "text-text-secondary",
|
|
365
363
|
children: e
|
|
366
364
|
})]
|
|
367
365
|
});
|
|
368
|
-
return /* @__PURE__ */
|
|
369
|
-
title: /* @__PURE__ */
|
|
366
|
+
return /* @__PURE__ */ E(a, {
|
|
367
|
+
title: /* @__PURE__ */ D("div", {
|
|
370
368
|
className: "flex items-center gap-3",
|
|
371
369
|
children: [
|
|
372
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ E(d, {
|
|
373
371
|
variant: "ghost",
|
|
374
372
|
size: "icon",
|
|
375
373
|
onClick: () => U("skills"),
|
|
376
|
-
children: /* @__PURE__ */
|
|
374
|
+
children: /* @__PURE__ */ E(le, { size: 20 })
|
|
377
375
|
}),
|
|
378
|
-
/* @__PURE__ */
|
|
376
|
+
/* @__PURE__ */ E("div", {
|
|
379
377
|
className: "p-2 rounded-lg bg-action-primary-bg/10",
|
|
380
|
-
children: /* @__PURE__ */
|
|
378
|
+
children: /* @__PURE__ */ E(L, { className: "h-6 w-6 text-primary" })
|
|
381
379
|
}),
|
|
382
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
|
|
383
381
|
className: "flex items-center gap-2",
|
|
384
|
-
children: [/* @__PURE__ */
|
|
385
|
-
}), /* @__PURE__ */
|
|
382
|
+
children: [/* @__PURE__ */ E("span", { children: G.name }), /* @__PURE__ */ E(te, { status: G.status })]
|
|
383
|
+
}), /* @__PURE__ */ E("p", {
|
|
386
384
|
className: "text-sm font-normal text-text-secondary",
|
|
387
385
|
children: G.description
|
|
388
386
|
})] })
|
|
389
387
|
]
|
|
390
388
|
}),
|
|
391
|
-
actions: /* @__PURE__ */
|
|
389
|
+
actions: /* @__PURE__ */ E("div", {
|
|
392
390
|
className: "flex gap-2",
|
|
393
|
-
children: J ? /* @__PURE__ */
|
|
391
|
+
children: J ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(d, {
|
|
394
392
|
variant: "outline",
|
|
395
393
|
onClick: () => Y(!1),
|
|
396
394
|
children: V("botlit.skillDetail.cancel", "Cancel")
|
|
397
|
-
}), /* @__PURE__ */
|
|
398
|
-
leftIcon: /* @__PURE__ */
|
|
395
|
+
}), /* @__PURE__ */ E(d, {
|
|
396
|
+
leftIcon: /* @__PURE__ */ E(N, { size: 16 }),
|
|
399
397
|
onClick: we,
|
|
400
398
|
isLoading: ve,
|
|
401
399
|
disabled: !Z.name,
|
|
402
400
|
children: V("botlit.skillDetail.saveChanges", "Save Changes")
|
|
403
|
-
})] }) : /* @__PURE__ */
|
|
404
|
-
permission:
|
|
405
|
-
children: /* @__PURE__ */
|
|
401
|
+
})] }) : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(S, {
|
|
402
|
+
permission: x.SKILL_UPDATE,
|
|
403
|
+
children: /* @__PURE__ */ E(d, {
|
|
406
404
|
variant: "outline",
|
|
407
|
-
leftIcon: /* @__PURE__ */
|
|
405
|
+
leftIcon: /* @__PURE__ */ E(A, { size: 16 }),
|
|
408
406
|
onClick: De,
|
|
409
407
|
children: V("botlit.skillDetail.edit", "Edit")
|
|
410
408
|
})
|
|
411
|
-
}), xe ? /* @__PURE__ */
|
|
409
|
+
}), xe ? /* @__PURE__ */ D("div", {
|
|
412
410
|
className: "flex gap-2",
|
|
413
|
-
children: [/* @__PURE__ */
|
|
411
|
+
children: [/* @__PURE__ */ E(d, {
|
|
414
412
|
variant: "outline",
|
|
415
413
|
size: "sm",
|
|
416
414
|
onClick: () => X(!1),
|
|
417
415
|
children: V("botlit.skillDetail.cancel", "Cancel")
|
|
418
|
-
}), /* @__PURE__ */
|
|
416
|
+
}), /* @__PURE__ */ E(d, {
|
|
419
417
|
variant: "destructive",
|
|
420
418
|
size: "sm",
|
|
421
419
|
onClick: () => {
|
|
@@ -424,41 +422,41 @@ var z = [
|
|
|
424
422
|
isLoading: be,
|
|
425
423
|
children: V("botlit.skillDetail.confirmDelete", "Confirm Delete")
|
|
426
424
|
})]
|
|
427
|
-
}) : /* @__PURE__ */
|
|
428
|
-
permission:
|
|
429
|
-
children: /* @__PURE__ */
|
|
425
|
+
}) : /* @__PURE__ */ E(S, {
|
|
426
|
+
permission: x.SKILL_DELETE,
|
|
427
|
+
children: /* @__PURE__ */ E(d, {
|
|
430
428
|
variant: "destructive",
|
|
431
|
-
leftIcon: /* @__PURE__ */
|
|
429
|
+
leftIcon: /* @__PURE__ */ E(fe, { size: 16 }),
|
|
432
430
|
onClick: () => X(!0),
|
|
433
431
|
children: V("botlit.skillDetail.delete", "Delete")
|
|
434
432
|
})
|
|
435
433
|
})] })
|
|
436
434
|
}),
|
|
437
|
-
children: /* @__PURE__ */
|
|
435
|
+
children: /* @__PURE__ */ D("div", {
|
|
438
436
|
className: "space-y-6",
|
|
439
437
|
children: [
|
|
440
|
-
/* @__PURE__ */
|
|
441
|
-
icon: /* @__PURE__ */
|
|
438
|
+
/* @__PURE__ */ E(se, {
|
|
439
|
+
icon: /* @__PURE__ */ E(L, { size: 18 }),
|
|
442
440
|
children: V("botlit.skillDetail.thisSkillBundlesAPrompt", "This skill bundles a prompt, a set of tools and a knowledge profile into one reusable capability. Review what it includes and the policies it recommends, then attach it to any agent to grant all of those abilities at once — keeping your agents consistent without re-wiring the same pieces every time.")
|
|
443
441
|
}),
|
|
444
|
-
J && /* @__PURE__ */
|
|
442
|
+
J && /* @__PURE__ */ D(o, { children: [/* @__PURE__ */ E(l, { children: /* @__PURE__ */ E(u, { children: V("botlit.skillDetail.editSkill", "Edit Skill") }) }), /* @__PURE__ */ D(s, {
|
|
445
443
|
className: "space-y-4",
|
|
446
444
|
children: [
|
|
447
|
-
/* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ D("div", {
|
|
448
446
|
className: "grid grid-cols-2 gap-4",
|
|
449
|
-
children: [/* @__PURE__ */
|
|
447
|
+
children: [/* @__PURE__ */ E(f, {
|
|
450
448
|
label: V("botlit.skillDetail.skillName", "Skill Name"),
|
|
451
449
|
required: !0,
|
|
452
|
-
children: /* @__PURE__ */
|
|
450
|
+
children: /* @__PURE__ */ E(p, {
|
|
453
451
|
value: Z.name,
|
|
454
452
|
onChange: (e) => Q({
|
|
455
453
|
...Z,
|
|
456
454
|
name: e.target.value
|
|
457
455
|
})
|
|
458
456
|
})
|
|
459
|
-
}), /* @__PURE__ */
|
|
457
|
+
}), /* @__PURE__ */ E(f, {
|
|
460
458
|
label: V("botlit.skillDetail.visibility", "Visibility"),
|
|
461
|
-
children: /* @__PURE__ */
|
|
459
|
+
children: /* @__PURE__ */ D(w, {
|
|
462
460
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
463
461
|
value: Z.visibility,
|
|
464
462
|
onChange: (e) => Q({
|
|
@@ -466,15 +464,15 @@ var z = [
|
|
|
466
464
|
visibility: e.target.value
|
|
467
465
|
}),
|
|
468
466
|
children: [
|
|
469
|
-
/* @__PURE__ */
|
|
467
|
+
/* @__PURE__ */ E("option", {
|
|
470
468
|
value: "PRIVATE",
|
|
471
469
|
children: V("botlit.skillDetail.private", "Private")
|
|
472
470
|
}),
|
|
473
|
-
/* @__PURE__ */
|
|
471
|
+
/* @__PURE__ */ E("option", {
|
|
474
472
|
value: "WORKSPACE",
|
|
475
473
|
children: V("botlit.skillDetail.workspace", "Workspace")
|
|
476
474
|
}),
|
|
477
|
-
/* @__PURE__ */
|
|
475
|
+
/* @__PURE__ */ E("option", {
|
|
478
476
|
value: "PUBLIC",
|
|
479
477
|
children: V("botlit.skillDetail.public", "Public")
|
|
480
478
|
})
|
|
@@ -482,9 +480,9 @@ var z = [
|
|
|
482
480
|
})
|
|
483
481
|
})]
|
|
484
482
|
}),
|
|
485
|
-
/* @__PURE__ */
|
|
483
|
+
/* @__PURE__ */ E(f, {
|
|
486
484
|
label: V("botlit.skillDetail.description", "Description"),
|
|
487
|
-
children: /* @__PURE__ */
|
|
485
|
+
children: /* @__PURE__ */ E(m, {
|
|
488
486
|
value: Z.description,
|
|
489
487
|
onChange: (e) => Q({
|
|
490
488
|
...Z,
|
|
@@ -493,48 +491,48 @@ var z = [
|
|
|
493
491
|
rows: 2
|
|
494
492
|
})
|
|
495
493
|
}),
|
|
496
|
-
/* @__PURE__ */
|
|
494
|
+
/* @__PURE__ */ D("div", {
|
|
497
495
|
className: "grid grid-cols-2 gap-4",
|
|
498
|
-
children: [/* @__PURE__ */
|
|
496
|
+
children: [/* @__PURE__ */ E(f, {
|
|
499
497
|
label: V("botlit.skillDetail.promptTemplate", "Prompt Template"),
|
|
500
|
-
children: /* @__PURE__ */
|
|
498
|
+
children: /* @__PURE__ */ D(w, {
|
|
501
499
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
502
500
|
value: Z.promptTemplateId,
|
|
503
501
|
onChange: (e) => Q({
|
|
504
502
|
...Z,
|
|
505
503
|
promptTemplateId: e.target.value
|
|
506
504
|
}),
|
|
507
|
-
children: [/* @__PURE__ */
|
|
505
|
+
children: [/* @__PURE__ */ E("option", {
|
|
508
506
|
value: "",
|
|
509
507
|
children: V("botlit.skillDetail.none", "None")
|
|
510
|
-
}), K?.map((e) => /* @__PURE__ */
|
|
508
|
+
}), K?.map((e) => /* @__PURE__ */ E("option", {
|
|
511
509
|
value: e.id,
|
|
512
510
|
children: e.name
|
|
513
511
|
}, e.id))]
|
|
514
512
|
})
|
|
515
|
-
}), /* @__PURE__ */
|
|
513
|
+
}), /* @__PURE__ */ E(f, {
|
|
516
514
|
label: V("botlit.skillDetail.retrievalProfile", "Retrieval Profile"),
|
|
517
|
-
children: /* @__PURE__ */
|
|
515
|
+
children: /* @__PURE__ */ D(w, {
|
|
518
516
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
519
517
|
value: Z.retrievalProfileId,
|
|
520
518
|
onChange: (e) => Q({
|
|
521
519
|
...Z,
|
|
522
520
|
retrievalProfileId: e.target.value
|
|
523
521
|
}),
|
|
524
|
-
children: [/* @__PURE__ */
|
|
522
|
+
children: [/* @__PURE__ */ E("option", {
|
|
525
523
|
value: "",
|
|
526
524
|
children: V("botlit.skillDetail.none", "None")
|
|
527
|
-
}), q?.map((e) => /* @__PURE__ */
|
|
525
|
+
}), q?.map((e) => /* @__PURE__ */ E("option", {
|
|
528
526
|
value: e.id,
|
|
529
527
|
children: e.name
|
|
530
528
|
}, e.id))]
|
|
531
529
|
})
|
|
532
530
|
})]
|
|
533
531
|
}),
|
|
534
|
-
/* @__PURE__ */
|
|
532
|
+
/* @__PURE__ */ E(f, {
|
|
535
533
|
label: V("botlit.skillDetail.toolPackDependencies", "Tool Pack Dependencies"),
|
|
536
534
|
description: V("botlit.skillDetail.commaSeparated", "Comma-separated"),
|
|
537
|
-
children: /* @__PURE__ */
|
|
535
|
+
children: /* @__PURE__ */ E(p, {
|
|
538
536
|
value: Z.toolPackDeps,
|
|
539
537
|
onChange: (e) => Q({
|
|
540
538
|
...Z,
|
|
@@ -543,12 +541,12 @@ var z = [
|
|
|
543
541
|
placeholder: V("botlit.skillDetail.exampleToolPacks", "e.g., @botlit/github-tools, @botlit/web-browser")
|
|
544
542
|
})
|
|
545
543
|
}),
|
|
546
|
-
/* @__PURE__ */
|
|
544
|
+
/* @__PURE__ */ D("div", {
|
|
547
545
|
className: "flex gap-4",
|
|
548
546
|
children: [
|
|
549
|
-
/* @__PURE__ */
|
|
547
|
+
/* @__PURE__ */ D("label", {
|
|
550
548
|
className: "flex items-center gap-2",
|
|
551
|
-
children: [/* @__PURE__ */
|
|
549
|
+
children: [/* @__PURE__ */ E("input", {
|
|
552
550
|
type: "checkbox",
|
|
553
551
|
checked: Z.requiresTools,
|
|
554
552
|
onChange: (e) => Q({
|
|
@@ -556,14 +554,14 @@ var z = [
|
|
|
556
554
|
requiresTools: e.target.checked
|
|
557
555
|
}),
|
|
558
556
|
className: "h-4 w-4"
|
|
559
|
-
}), /* @__PURE__ */
|
|
557
|
+
}), /* @__PURE__ */ E("span", {
|
|
560
558
|
className: "text-sm",
|
|
561
559
|
children: V("botlit.skillDetail.requiresTools", "Requires Tools")
|
|
562
560
|
})]
|
|
563
561
|
}),
|
|
564
|
-
/* @__PURE__ */
|
|
562
|
+
/* @__PURE__ */ D("label", {
|
|
565
563
|
className: "flex items-center gap-2",
|
|
566
|
-
children: [/* @__PURE__ */
|
|
564
|
+
children: [/* @__PURE__ */ E("input", {
|
|
567
565
|
type: "checkbox",
|
|
568
566
|
checked: Z.requiresKnowledge,
|
|
569
567
|
onChange: (e) => Q({
|
|
@@ -571,14 +569,14 @@ var z = [
|
|
|
571
569
|
requiresKnowledge: e.target.checked
|
|
572
570
|
}),
|
|
573
571
|
className: "h-4 w-4"
|
|
574
|
-
}), /* @__PURE__ */
|
|
572
|
+
}), /* @__PURE__ */ E("span", {
|
|
575
573
|
className: "text-sm",
|
|
576
574
|
children: V("botlit.skillDetail.requiresKnowledge", "Requires Knowledge")
|
|
577
575
|
})]
|
|
578
576
|
}),
|
|
579
|
-
/* @__PURE__ */
|
|
577
|
+
/* @__PURE__ */ D("label", {
|
|
580
578
|
className: "flex items-center gap-2",
|
|
581
|
-
children: [/* @__PURE__ */
|
|
579
|
+
children: [/* @__PURE__ */ E("input", {
|
|
582
580
|
type: "checkbox",
|
|
583
581
|
checked: Z.requiresA2A,
|
|
584
582
|
onChange: (e) => Q({
|
|
@@ -586,7 +584,7 @@ var z = [
|
|
|
586
584
|
requiresA2A: e.target.checked
|
|
587
585
|
}),
|
|
588
586
|
className: "h-4 w-4"
|
|
589
|
-
}), /* @__PURE__ */
|
|
587
|
+
}), /* @__PURE__ */ E("span", {
|
|
590
588
|
className: "text-sm",
|
|
591
589
|
children: V("botlit.skillDetail.requiresA2a", "Requires A2A")
|
|
592
590
|
})]
|
|
@@ -595,184 +593,184 @@ var z = [
|
|
|
595
593
|
})
|
|
596
594
|
]
|
|
597
595
|
})] }),
|
|
598
|
-
/* @__PURE__ */
|
|
596
|
+
/* @__PURE__ */ D("div", {
|
|
599
597
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
600
598
|
children: [
|
|
601
|
-
/* @__PURE__ */
|
|
599
|
+
/* @__PURE__ */ E(o, {
|
|
602
600
|
treatment: "glass",
|
|
603
601
|
glow: !0,
|
|
604
|
-
children: /* @__PURE__ */
|
|
602
|
+
children: /* @__PURE__ */ D(s, {
|
|
605
603
|
className: "pt-6 text-center",
|
|
606
604
|
children: [
|
|
607
|
-
/* @__PURE__ */
|
|
605
|
+
/* @__PURE__ */ E("div", {
|
|
608
606
|
className: "p-3 rounded-full bg-action-primary-bg/10 w-fit mx-auto mb-2",
|
|
609
|
-
children: /* @__PURE__ */
|
|
607
|
+
children: /* @__PURE__ */ E(L, { className: "h-5 w-5 text-primary" })
|
|
610
608
|
}),
|
|
611
|
-
/* @__PURE__ */
|
|
609
|
+
/* @__PURE__ */ E("p", {
|
|
612
610
|
className: "text-lg font-bold capitalize",
|
|
613
611
|
children: G.visibility.toLowerCase()
|
|
614
612
|
}),
|
|
615
|
-
/* @__PURE__ */
|
|
613
|
+
/* @__PURE__ */ E("p", {
|
|
616
614
|
className: "text-sm text-text-secondary",
|
|
617
615
|
children: V("botlit.skillDetail.visibility", "Visibility")
|
|
618
616
|
})
|
|
619
617
|
]
|
|
620
618
|
})
|
|
621
619
|
}),
|
|
622
|
-
/* @__PURE__ */
|
|
620
|
+
/* @__PURE__ */ E(o, { children: /* @__PURE__ */ D(s, {
|
|
623
621
|
className: "pt-6 text-center",
|
|
624
|
-
children: [/* @__PURE__ */
|
|
622
|
+
children: [/* @__PURE__ */ E("p", {
|
|
625
623
|
className: "text-3xl font-bold text-text-primary",
|
|
626
624
|
children: G.toolPackDeps.length
|
|
627
|
-
}), /* @__PURE__ */
|
|
625
|
+
}), /* @__PURE__ */ E("p", {
|
|
628
626
|
className: "text-sm text-text-secondary",
|
|
629
627
|
children: V("botlit.skillDetail.toolPacks", "Tool Packs")
|
|
630
628
|
})]
|
|
631
629
|
}) }),
|
|
632
|
-
/* @__PURE__ */
|
|
630
|
+
/* @__PURE__ */ E(o, { children: /* @__PURE__ */ D(s, {
|
|
633
631
|
className: "pt-6 text-center",
|
|
634
|
-
children: [/* @__PURE__ */
|
|
632
|
+
children: [/* @__PURE__ */ E("p", {
|
|
635
633
|
className: "text-3xl font-bold text-text-primary",
|
|
636
634
|
children: G.recommendedPolicies.length
|
|
637
|
-
}), /* @__PURE__ */
|
|
635
|
+
}), /* @__PURE__ */ E("p", {
|
|
638
636
|
className: "text-sm text-text-secondary",
|
|
639
637
|
children: V("botlit.skillDetail.policies", "Policies")
|
|
640
638
|
})]
|
|
641
639
|
}) }),
|
|
642
|
-
/* @__PURE__ */
|
|
640
|
+
/* @__PURE__ */ E(o, { children: /* @__PURE__ */ D(s, {
|
|
643
641
|
className: "pt-6 text-center",
|
|
644
|
-
children: [/* @__PURE__ */
|
|
642
|
+
children: [/* @__PURE__ */ E("p", {
|
|
645
643
|
className: "text-3xl font-bold text-text-primary",
|
|
646
644
|
children: G.revision
|
|
647
|
-
}), /* @__PURE__ */
|
|
645
|
+
}), /* @__PURE__ */ E("p", {
|
|
648
646
|
className: "text-sm text-text-secondary",
|
|
649
647
|
children: V("botlit.skillDetail.revision", "Revision")
|
|
650
648
|
})]
|
|
651
649
|
}) })
|
|
652
650
|
]
|
|
653
651
|
}),
|
|
654
|
-
/* @__PURE__ */
|
|
652
|
+
/* @__PURE__ */ D(o, { children: [/* @__PURE__ */ D(l, { children: [/* @__PURE__ */ E(u, { children: V("botlit.skillDetail.capabilityRequirements", "Capability Requirements") }), /* @__PURE__ */ E(c, { children: V("botlit.skillDetail.whatThisSkillRequiresFrom", "What this skill requires from agents") })] }), /* @__PURE__ */ E(s, { children: /* @__PURE__ */ D("div", {
|
|
655
653
|
className: "flex gap-8",
|
|
656
654
|
children: [
|
|
657
|
-
/* @__PURE__ */
|
|
655
|
+
/* @__PURE__ */ E($, {
|
|
658
656
|
label: V("botlit.skillDetail.tools", "Tools"),
|
|
659
|
-
enabled:
|
|
657
|
+
enabled: y(G.capabilityFlags, "requiresTools")
|
|
660
658
|
}),
|
|
661
|
-
/* @__PURE__ */
|
|
659
|
+
/* @__PURE__ */ E($, {
|
|
662
660
|
label: V("botlit.skillDetail.knowledge", "Knowledge"),
|
|
663
|
-
enabled:
|
|
661
|
+
enabled: y(G.capabilityFlags, "requiresKnowledge")
|
|
664
662
|
}),
|
|
665
|
-
/* @__PURE__ */
|
|
663
|
+
/* @__PURE__ */ E($, {
|
|
666
664
|
label: V("botlit.skillDetail.a2a", "A2A"),
|
|
667
|
-
enabled:
|
|
665
|
+
enabled: y(G.capabilityFlags, "requiresA2A")
|
|
668
666
|
})
|
|
669
667
|
]
|
|
670
668
|
}) })] }),
|
|
671
|
-
/* @__PURE__ */
|
|
669
|
+
/* @__PURE__ */ D("div", {
|
|
672
670
|
className: "grid grid-cols-1 md:grid-cols-2 gap-6",
|
|
673
|
-
children: [/* @__PURE__ */
|
|
671
|
+
children: [/* @__PURE__ */ D(o, { children: [/* @__PURE__ */ E(l, { children: /* @__PURE__ */ D(u, {
|
|
674
672
|
className: "flex items-center gap-2",
|
|
675
|
-
children: [/* @__PURE__ */
|
|
676
|
-
}) }), /* @__PURE__ */
|
|
673
|
+
children: [/* @__PURE__ */ E(M, { size: 18 }), V("botlit.skillDetail.promptTemplate", "Prompt Template")]
|
|
674
|
+
}) }), /* @__PURE__ */ E(s, { children: G.promptTemplateId ? /* @__PURE__ */ E("div", {
|
|
677
675
|
className: "p-4 bg-bg-sunken rounded-lg",
|
|
678
|
-
children: /* @__PURE__ */
|
|
676
|
+
children: /* @__PURE__ */ D("div", {
|
|
679
677
|
className: "flex items-center justify-between",
|
|
680
|
-
children: [/* @__PURE__ */
|
|
678
|
+
children: [/* @__PURE__ */ E("span", {
|
|
681
679
|
className: "font-medium",
|
|
682
680
|
children: G.promptTemplateId
|
|
683
|
-
}), /* @__PURE__ */
|
|
681
|
+
}), /* @__PURE__ */ E(O, {
|
|
684
682
|
to: W(`prompt-templates/${G.promptTemplateId}`),
|
|
685
|
-
children: /* @__PURE__ */
|
|
683
|
+
children: /* @__PURE__ */ E(d, {
|
|
686
684
|
variant: "ghost",
|
|
687
685
|
size: "sm",
|
|
688
|
-
children: /* @__PURE__ */
|
|
686
|
+
children: /* @__PURE__ */ E(j, { size: 14 })
|
|
689
687
|
})
|
|
690
688
|
})]
|
|
691
689
|
})
|
|
692
|
-
}) : /* @__PURE__ */
|
|
690
|
+
}) : /* @__PURE__ */ E("p", {
|
|
693
691
|
className: "text-text-secondary",
|
|
694
692
|
children: V("botlit.skillDetail.noPromptTemplateAssociated", "No prompt template associated")
|
|
695
|
-
}) })] }), /* @__PURE__ */
|
|
693
|
+
}) })] }), /* @__PURE__ */ D(o, { children: [/* @__PURE__ */ E(l, { children: /* @__PURE__ */ D(u, {
|
|
696
694
|
className: "flex items-center gap-2",
|
|
697
|
-
children: [/* @__PURE__ */
|
|
698
|
-
}) }), /* @__PURE__ */
|
|
695
|
+
children: [/* @__PURE__ */ E(k, { size: 18 }), V("botlit.skillDetail.retrievalProfile", "Retrieval Profile")]
|
|
696
|
+
}) }), /* @__PURE__ */ E(s, { children: G.retrievalProfileId ? /* @__PURE__ */ E("div", {
|
|
699
697
|
className: "p-4 bg-bg-sunken rounded-lg",
|
|
700
|
-
children: /* @__PURE__ */
|
|
698
|
+
children: /* @__PURE__ */ D("div", {
|
|
701
699
|
className: "flex items-center justify-between",
|
|
702
|
-
children: [/* @__PURE__ */
|
|
700
|
+
children: [/* @__PURE__ */ E("span", {
|
|
703
701
|
className: "font-medium",
|
|
704
702
|
children: G.retrievalProfileId
|
|
705
|
-
}), /* @__PURE__ */
|
|
703
|
+
}), /* @__PURE__ */ E(O, {
|
|
706
704
|
to: W(`retrieval-profiles/${G.retrievalProfileId}`),
|
|
707
|
-
children: /* @__PURE__ */
|
|
705
|
+
children: /* @__PURE__ */ E(d, {
|
|
708
706
|
variant: "ghost",
|
|
709
707
|
size: "sm",
|
|
710
|
-
children: /* @__PURE__ */
|
|
708
|
+
children: /* @__PURE__ */ E(j, { size: 14 })
|
|
711
709
|
})
|
|
712
710
|
})]
|
|
713
711
|
})
|
|
714
|
-
}) : /* @__PURE__ */
|
|
712
|
+
}) : /* @__PURE__ */ E("p", {
|
|
715
713
|
className: "text-text-secondary",
|
|
716
714
|
children: V("botlit.skillDetail.noRetrievalProfileAssociated", "No retrieval profile associated")
|
|
717
715
|
}) })] })]
|
|
718
716
|
}),
|
|
719
|
-
/* @__PURE__ */
|
|
717
|
+
/* @__PURE__ */ D(o, { children: [/* @__PURE__ */ E(l, { children: /* @__PURE__ */ D(u, {
|
|
720
718
|
className: "flex items-center gap-2",
|
|
721
|
-
children: [/* @__PURE__ */
|
|
722
|
-
}) }), /* @__PURE__ */
|
|
719
|
+
children: [/* @__PURE__ */ E(F, { size: 18 }), V("botlit.skillDetail.toolPackDependencies", "Tool Pack Dependencies")]
|
|
720
|
+
}) }), /* @__PURE__ */ E(s, { children: G.toolPackDeps.length > 0 ? /* @__PURE__ */ E("div", {
|
|
723
721
|
className: "flex flex-wrap gap-2",
|
|
724
|
-
children: G.toolPackDeps.map((e) => /* @__PURE__ */
|
|
722
|
+
children: G.toolPackDeps.map((e) => /* @__PURE__ */ E(h, {
|
|
725
723
|
variant: "secondary",
|
|
726
724
|
className: "font-mono",
|
|
727
725
|
children: e
|
|
728
726
|
}, e))
|
|
729
|
-
}) : /* @__PURE__ */
|
|
727
|
+
}) : /* @__PURE__ */ E("p", {
|
|
730
728
|
className: "text-text-secondary",
|
|
731
729
|
children: V("botlit.skillDetail.noToolPackDependencies", "No tool pack dependencies")
|
|
732
730
|
}) })] }),
|
|
733
|
-
/* @__PURE__ */
|
|
731
|
+
/* @__PURE__ */ D(o, { children: [/* @__PURE__ */ E(l, { children: /* @__PURE__ */ D(u, {
|
|
734
732
|
className: "flex items-center gap-2",
|
|
735
|
-
children: [/* @__PURE__ */
|
|
736
|
-
}) }), /* @__PURE__ */
|
|
733
|
+
children: [/* @__PURE__ */ E(P, { size: 18 }), V("botlit.skillDetail.recommendedPolicies", "Recommended Policies")]
|
|
734
|
+
}) }), /* @__PURE__ */ E(s, { children: G.recommendedPolicies.length > 0 ? /* @__PURE__ */ E("div", {
|
|
737
735
|
className: "flex flex-wrap gap-2",
|
|
738
|
-
children: G.recommendedPolicies.map((e) => /* @__PURE__ */
|
|
736
|
+
children: G.recommendedPolicies.map((e) => /* @__PURE__ */ E(h, {
|
|
739
737
|
variant: "outline",
|
|
740
738
|
children: e
|
|
741
739
|
}, e))
|
|
742
|
-
}) : /* @__PURE__ */
|
|
740
|
+
}) : /* @__PURE__ */ E("p", {
|
|
743
741
|
className: "text-text-secondary",
|
|
744
742
|
children: V("botlit.skillDetail.noRecommendedPolicies", "No recommended policies")
|
|
745
743
|
}) })] }),
|
|
746
|
-
/* @__PURE__ */
|
|
744
|
+
/* @__PURE__ */ D(o, { children: [/* @__PURE__ */ E(l, { children: /* @__PURE__ */ D(u, {
|
|
747
745
|
className: "flex items-center gap-2",
|
|
748
|
-
children: [/* @__PURE__ */
|
|
749
|
-
}) }), /* @__PURE__ */
|
|
746
|
+
children: [/* @__PURE__ */ E(de, { size: 18 }), V("botlit.skillDetail.metadata", "Metadata")]
|
|
747
|
+
}) }), /* @__PURE__ */ E(s, { children: /* @__PURE__ */ D("div", {
|
|
750
748
|
className: "grid grid-cols-2 md:grid-cols-4 gap-6 text-sm",
|
|
751
749
|
children: [
|
|
752
|
-
/* @__PURE__ */
|
|
750
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
753
751
|
className: "text-text-secondary",
|
|
754
752
|
children: V("botlit.skillDetail.created", "Created")
|
|
755
|
-
}), /* @__PURE__ */
|
|
753
|
+
}), /* @__PURE__ */ E("p", {
|
|
756
754
|
className: "font-medium",
|
|
757
755
|
children: v(G.createdAt)
|
|
758
756
|
})] }),
|
|
759
|
-
/* @__PURE__ */
|
|
757
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
760
758
|
className: "text-text-secondary",
|
|
761
759
|
children: V("botlit.skillDetail.updated", "Updated")
|
|
762
|
-
}), /* @__PURE__ */
|
|
760
|
+
}), /* @__PURE__ */ E("p", {
|
|
763
761
|
className: "font-medium",
|
|
764
762
|
children: v(G.updatedAt)
|
|
765
763
|
})] }),
|
|
766
|
-
/* @__PURE__ */
|
|
764
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
767
765
|
className: "text-text-secondary",
|
|
768
766
|
children: V("botlit.skillDetail.tags", "Tags")
|
|
769
|
-
}), /* @__PURE__ */
|
|
767
|
+
}), /* @__PURE__ */ E("div", {
|
|
770
768
|
className: "flex gap-1",
|
|
771
|
-
children: G.tags.length > 0 ? G.tags.map((e) => /* @__PURE__ */
|
|
769
|
+
children: G.tags.length > 0 ? G.tags.map((e) => /* @__PURE__ */ E(h, {
|
|
772
770
|
variant: "secondary",
|
|
773
771
|
className: "text-xs",
|
|
774
772
|
children: e
|
|
775
|
-
}, e)) : /* @__PURE__ */
|
|
773
|
+
}, e)) : /* @__PURE__ */ E("span", {
|
|
776
774
|
className: "text-text-secondary",
|
|
777
775
|
children: V("botlit.skillDetail.none", "None")
|
|
778
776
|
})
|