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