MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / deleteSkill

Function deleteSkill

src/stores/skill.ts:247–258  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

245 }
246
247 async function deleteSkill(id: string): Promise<{ success: boolean; error?: string }> {
248 try {
249 const result = await useSkillService().delete(id)
250 if (result.success) {
251 if (activeSkillId.value === id) activeSkillId.value = null
252 await loadSkills()
253 }
254 return result
255 } catch (error) {
256 return { success: false, error: String(error) }
257 }
258 }
259
260 async function importSkill(builtinId: string): Promise<{ success: boolean; id?: string; error?: string }> {
261 try {

Callers

nothing calls this directly

Calls 3

useSkillServiceFunction · 0.90
loadSkillsFunction · 0.85
deleteMethod · 0.65

Tested by

no test coverage detected