@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.
@@ -1,26 +1,27 @@
1
- import { useBotlit as e } from "../providers/BotlitProvider.js";
2
- import { isNative as t, nativeImpact as n, nativeNotify as r } from "../../utils/nativeBridge.js";
3
- import { BOTMANOR_PERMISSIONS as i } from "../permissions/botmanorPermissions.js";
4
- import { BotmanorPermissionGate as a } from "../permissions/useBotmanorPermissions.js";
5
- import { PageLayout as o } from "../components/PageLayout.js";
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 s, CardContent as c, CardDescription as l, CardHeader as u, CardTitle as d } from "../components/Card.js";
8
- import { Button as f } from "../components/Button.js";
9
- import { FormField as p, Input as m, Textarea as h } from "../components/Input.js";
10
- import { Badge as g, StatusBadge as _ } from "../components/Badge.js";
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 y } from "../hooks/useRetrievalProfiles.js";
14
- import { usePolicies as b } from "../hooks/usePolicies.js";
15
- import { useCreateSkill as x, useDeleteSkill as te, useSkill as ne, useUpdateSkill as re } from "../hooks/useSkills.js";
16
- import { jsonBoolean as S, toUnion as ie } from "../utils/unions.js";
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 C } from "react";
20
- import { PagePurpose as w, ThemedSelect as T } from "@burdenoff/fe-libs/ui";
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 oe } from "react-router";
23
- import { ArrowLeft as se, CheckCircle as ce, Database as A, Edit as le, ExternalLink as j, FileText as M, Save as N, Settings as ue, Shield as P, Trash2 as de, Wrench as F, XCircle as I, Zap as L } from "lucide-react";
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: V } = oe(), { navigateTo: H, getPath: U } = e(), { data: W, loading: fe } = ne(B ? void 0 : V), { data: G } = ae(), { data: pe } = b(), { data: K } = y(), { create: me, loading: he } = x(), { update: ge, loading: _e } = re(), { remove: ve, loading: ye } = te(), [q, J] = C(!1), [be, Y] = C(!1), [X, Z] = C({
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
- }), xe = async () => {
44
- if (X.name) try {
45
- await Se();
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
- }, Se = async () => {
50
- await me({
51
- name: X.name,
52
- description: X.description,
53
- visibility: X.visibility,
54
- promptTemplateId: X.promptTemplateId || void 0,
55
- toolPolicyId: X.toolPolicyId || void 0,
56
- retrievalProfileId: X.retrievalProfileId || void 0,
57
- toolPackDeps: X.toolPackDeps.split(",").map((e) => e.trim()).filter(Boolean),
58
- recommendedPolicies: X.recommendedPolicies.split(",").map((e) => e.trim()).filter(Boolean),
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: X.requiresTools,
61
- requiresKnowledge: X.requiresKnowledge,
62
- requiresA2A: X.requiresA2A
61
+ requiresTools: Z.requiresTools,
62
+ requiresKnowledge: Z.requiresKnowledge,
63
+ requiresA2A: Z.requiresA2A
63
64
  }
64
- }), R.success(`Skill "${X.name}" created`), H("skills");
65
- }, Ce = async () => {
66
- if (V && X.name) try {
67
- await we();
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
- }, we = async () => {
72
- V && (await ge({
73
- skillId: V,
72
+ }, Te = async () => {
73
+ H && (await _e({
74
+ skillId: H,
74
75
  input: {
75
- name: X.name,
76
- description: X.description,
77
- visibility: X.visibility,
78
- promptTemplateId: X.promptTemplateId || void 0,
79
- toolPolicyId: X.toolPolicyId || void 0,
80
- retrievalProfileId: X.retrievalProfileId || void 0,
81
- toolPackDeps: X.toolPackDeps.split(",").map((e) => e.trim()).filter(Boolean),
82
- recommendedPolicies: X.recommendedPolicies.split(",").map((e) => e.trim()).filter(Boolean),
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: X.requiresTools,
85
- requiresKnowledge: X.requiresKnowledge,
86
- requiresA2A: X.requiresA2A
85
+ requiresTools: Z.requiresTools,
86
+ requiresKnowledge: Z.requiresKnowledge,
87
+ requiresA2A: Z.requiresA2A
87
88
  }
88
89
  }
89
- }), R.success("Skill updated"), J(!1));
90
- }, Q = async () => {
91
- if (V) try {
92
- await ve(V), t() && r("success"), R.success("Skill deleted"), H("skills");
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
- t() && r("error"), R.error(e instanceof Error ? e.message : "Failed to delete skill");
95
+ n() && i("error"), R.error(e instanceof Error ? e.message : V("botlit.skillDetail.failedToDeleteSkill", "Failed to delete skill"));
95
96
  }
96
- }, Te = () => {
97
- W && (Z({
98
- name: W.name,
99
- description: W.description || "",
100
- visibility: ie(W.visibility, z, "PRIVATE"),
101
- promptTemplateId: W.promptTemplateId || "",
102
- toolPolicyId: W.toolPolicyId || "",
103
- retrievalProfileId: W.retrievalProfileId || "",
104
- toolPackDeps: W.toolPackDeps.join(", "),
105
- recommendedPolicies: W.recommendedPolicies.join(", "),
106
- requiresTools: S(W.capabilityFlags, "requiresTools"),
107
- requiresKnowledge: S(W.capabilityFlags, "requiresKnowledge"),
108
- requiresA2A: S(W.capabilityFlags, "requiresA2A")
109
- }), J(!0));
110
- }, Ee = pe?.filter((e) => e.type === "TOOL") || [];
111
- if (B) return /* @__PURE__ */ D(o, {
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(f, {
117
+ children: [/* @__PURE__ */ D(p, {
117
118
  variant: "outline",
118
- onClick: () => H("skills"),
119
- children: "Cancel"
120
- }), /* @__PURE__ */ D(f, {
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: xe,
123
- isLoading: he,
124
- disabled: !X.name,
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(s, { children: [/* @__PURE__ */ D(u, { children: /* @__PURE__ */ D(d, { children: "Basic Information" }) }), /* @__PURE__ */ O(c, {
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(p, {
135
- label: "Skill Name",
135
+ /* @__PURE__ */ D(m, {
136
+ label: V("botlit.skillDetail.skillName", "Skill Name"),
136
137
  required: !0,
137
- children: /* @__PURE__ */ D(m, {
138
- placeholder: "e.g., Code Review Skill",
139
- value: X.name,
140
- onChange: (e) => Z({
141
- ...X,
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(p, {
147
- label: "Description",
148
- children: /* @__PURE__ */ D(h, {
149
- placeholder: "What does this skill enable agents to do?",
150
- value: X.description,
151
- onChange: (e) => Z({
152
- ...X,
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(p, {
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: X.visibility,
163
- onChange: (e) => Z({
164
- ...X,
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(s, { children: [/* @__PURE__ */ O(u, { children: [/* @__PURE__ */ O(d, {
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(l, { children: "Associate a prompt template with this skill" })] }), /* @__PURE__ */ D(c, { children: /* @__PURE__ */ D(p, {
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: X.promptTemplateId,
193
- onChange: (e) => Z({
194
- ...X,
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
- }), G?.map((e) => /* @__PURE__ */ O("option", {
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(s, { children: [/* @__PURE__ */ O(u, { children: [/* @__PURE__ */ O(d, {
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(l, { children: "Configure tool access for this skill" })] }), /* @__PURE__ */ O(c, {
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(p, {
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: X.toolPolicyId,
221
- onChange: (e) => Z({
222
- ...X,
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
- }), Ee.map((e) => /* @__PURE__ */ D("option", {
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(p, {
234
- label: "Tool Pack Dependencies",
235
- description: "Comma-separated package slugs",
236
- children: /* @__PURE__ */ D(m, {
237
- placeholder: "e.g., @botlit/github-tools, @botlit/web-browser",
238
- value: X.toolPackDeps,
239
- onChange: (e) => Z({
240
- ...X,
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(s, { children: [/* @__PURE__ */ O(u, { children: [/* @__PURE__ */ O(d, {
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(l, { children: "Configure knowledge retrieval for this skill" })] }), /* @__PURE__ */ D(c, { children: /* @__PURE__ */ D(p, {
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: X.retrievalProfileId,
254
- onChange: (e) => Z({
255
- ...X,
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
- }), K?.map((e) => /* @__PURE__ */ D("option", {
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(s, { children: [/* @__PURE__ */ D(u, { children: /* @__PURE__ */ O(d, {
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(c, {
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(p, {
273
- label: "Recommended Policies",
274
- description: "Comma-separated policy IDs",
275
- children: /* @__PURE__ */ D(m, {
276
- placeholder: "e.g., content-policy-1, budget-policy-1",
277
- value: X.recommendedPolicies,
278
- onChange: (e) => Z({
279
- ...X,
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: X.requiresTools,
296
- onChange: (e) => Z({
297
- ...X,
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: X.requiresKnowledge,
311
- onChange: (e) => Z({
312
- ...X,
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: X.requiresA2A,
326
- onChange: (e) => Z({
327
- ...X,
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 (fe) return /* @__PURE__ */ D(o, {
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 (!W) return /* @__PURE__ */ D(o, {
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(f, {
355
- onClick: () => H("skills"),
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(ce, { className: "h-4 w-4 text-status-success-text" }) : /* @__PURE__ */ D(I, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ D("span", {
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(o, {
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(f, {
372
+ /* @__PURE__ */ D(p, {
372
373
  variant: "ghost",
373
374
  size: "icon",
374
- onClick: () => H("skills"),
375
- children: /* @__PURE__ */ D(se, { size: 20 })
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: W.name }), /* @__PURE__ */ D(_, { status: W.status })]
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: W.description
387
+ children: G.description
387
388
  })] })
388
389
  ]
389
390
  }),
390
391
  actions: /* @__PURE__ */ D("div", {
391
392
  className: "flex gap-2",
392
- children: q ? /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(f, {
393
+ children: J ? /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(p, {
393
394
  variant: "outline",
394
- onClick: () => J(!1),
395
- children: "Cancel"
396
- }), /* @__PURE__ */ D(f, {
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: Ce,
399
- isLoading: _e,
400
- disabled: !X.name,
401
- children: "Save Changes"
402
- })] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(a, {
403
- permission: i.SKILL_UPDATE,
404
- children: /* @__PURE__ */ D(f, {
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(le, { size: 16 }),
407
- onClick: Te,
408
- children: "Edit"
407
+ leftIcon: /* @__PURE__ */ D(ue, { size: 16 }),
408
+ onClick: De,
409
+ children: V("botlit.skillDetail.edit", "Edit")
409
410
  })
410
- }), be ? /* @__PURE__ */ O("div", {
411
+ }), xe ? /* @__PURE__ */ O("div", {
411
412
  className: "flex gap-2",
412
- children: [/* @__PURE__ */ D(f, {
413
+ children: [/* @__PURE__ */ D(p, {
413
414
  variant: "outline",
414
415
  size: "sm",
415
- onClick: () => Y(!1),
416
- children: "Cancel"
417
- }), /* @__PURE__ */ D(f, {
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
- n("medium"), Q();
422
+ r("medium"), Ee();
422
423
  },
423
- isLoading: ye,
424
- children: "Confirm Delete"
424
+ isLoading: be,
425
+ children: V("botlit.skillDetail.confirmDelete", "Confirm Delete")
425
426
  })]
426
- }) : /* @__PURE__ */ D(a, {
427
- permission: i.SKILL_DELETE,
428
- children: /* @__PURE__ */ D(f, {
427
+ }) : /* @__PURE__ */ D(o, {
428
+ permission: a.SKILL_DELETE,
429
+ children: /* @__PURE__ */ D(p, {
429
430
  variant: "destructive",
430
- leftIcon: /* @__PURE__ */ D(de, { size: 16 }),
431
- onClick: () => Y(!0),
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(w, {
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
- q && /* @__PURE__ */ O(s, { children: [/* @__PURE__ */ D(u, { children: /* @__PURE__ */ D(d, { children: "Edit Skill" }) }), /* @__PURE__ */ O(c, {
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(p, {
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(m, {
452
- value: X.name,
453
- onChange: (e) => Z({
454
- ...X,
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(p, {
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: X.visibility,
463
- onChange: (e) => Z({
464
- ...X,
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(p, {
485
- label: "Description",
486
- children: /* @__PURE__ */ D(h, {
487
- value: X.description,
488
- onChange: (e) => Z({
489
- ...X,
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(p, {
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: X.promptTemplateId,
502
- onChange: (e) => Z({
503
- ...X,
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
- }), G?.map((e) => /* @__PURE__ */ D("option", {
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(p, {
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: X.retrievalProfileId,
519
- onChange: (e) => Z({
520
- ...X,
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
- }), K?.map((e) => /* @__PURE__ */ D("option", {
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(p, {
534
- label: "Tool Pack Dependencies",
535
- description: "Comma-separated",
536
- children: /* @__PURE__ */ D(m, {
537
- value: X.toolPackDeps,
538
- onChange: (e) => Z({
539
- ...X,
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: X.requiresTools,
553
- onChange: (e) => Z({
554
- ...X,
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: X.requiresKnowledge,
568
- onChange: (e) => Z({
569
- ...X,
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: X.requiresA2A,
583
- onChange: (e) => Z({
584
- ...X,
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(s, {
601
+ /* @__PURE__ */ D(c, {
601
602
  treatment: "glass",
602
603
  glow: !0,
603
- children: /* @__PURE__ */ O(c, {
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: W.visibility.toLowerCase()
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(s, { children: /* @__PURE__ */ O(c, {
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: W.toolPackDeps.length
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(s, { children: /* @__PURE__ */ O(c, {
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: W.recommendedPolicies.length
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(s, { children: /* @__PURE__ */ O(c, {
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: W.revision
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(s, { children: [/* @__PURE__ */ O(u, { children: [/* @__PURE__ */ D(d, { children: "Capability Requirements" }), /* @__PURE__ */ D(l, { children: "What this skill requires from agents" })] }), /* @__PURE__ */ D(c, { children: /* @__PURE__ */ O("div", {
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: S(W.capabilityFlags, "requiresTools")
658
+ label: V("botlit.skillDetail.tools", "Tools"),
659
+ enabled: C(G.capabilityFlags, "requiresTools")
659
660
  }),
660
661
  /* @__PURE__ */ D($, {
661
- label: "Knowledge",
662
- enabled: S(W.capabilityFlags, "requiresKnowledge")
662
+ label: V("botlit.skillDetail.knowledge", "Knowledge"),
663
+ enabled: C(G.capabilityFlags, "requiresKnowledge")
663
664
  }),
664
665
  /* @__PURE__ */ D($, {
665
- label: "A2A",
666
- enabled: S(W.capabilityFlags, "requiresA2A")
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(s, { children: [/* @__PURE__ */ D(u, { children: /* @__PURE__ */ O(d, {
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(c, { children: W.promptTemplateId ? /* @__PURE__ */ D("div", {
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: W.promptTemplateId
682
+ children: G.promptTemplateId
682
683
  }), /* @__PURE__ */ D(k, {
683
- to: U(`prompt-templates/${W.promptTemplateId}`),
684
- children: /* @__PURE__ */ D(f, {
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(s, { children: [/* @__PURE__ */ D(u, { children: /* @__PURE__ */ O(d, {
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(c, { children: W.retrievalProfileId ? /* @__PURE__ */ D("div", {
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: W.retrievalProfileId
704
+ children: G.retrievalProfileId
704
705
  }), /* @__PURE__ */ D(k, {
705
- to: U(`retrieval-profiles/${W.retrievalProfileId}`),
706
- children: /* @__PURE__ */ D(f, {
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(s, { children: [/* @__PURE__ */ D(u, { children: /* @__PURE__ */ O(d, {
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(c, { children: W.toolPackDeps.length > 0 ? /* @__PURE__ */ D("div", {
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: W.toolPackDeps.map((e) => /* @__PURE__ */ D(g, {
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(s, { children: [/* @__PURE__ */ D(u, { children: /* @__PURE__ */ O(d, {
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(c, { children: W.recommendedPolicies.length > 0 ? /* @__PURE__ */ D("div", {
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: W.recommendedPolicies.map((e) => /* @__PURE__ */ D(g, {
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(s, { children: [/* @__PURE__ */ D(u, { children: /* @__PURE__ */ O(d, {
746
+ /* @__PURE__ */ O(c, { children: [/* @__PURE__ */ D(d, { children: /* @__PURE__ */ O(f, {
746
747
  className: "flex items-center gap-2",
747
- children: [/* @__PURE__ */ D(ue, { size: 18 }), "Metadata"]
748
- }) }), /* @__PURE__ */ D(c, { children: /* @__PURE__ */ O("div", {
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(W.createdAt)
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(W.updatedAt)
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: W.tags.length > 0 ? W.tags.map((e) => /* @__PURE__ */ D(g, {
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
  ]