@burdenoff/microfe-botmanor 2026.1124.1 → 2026.1127.2

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