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

Function reimportSkill

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

Source from the content-addressed store, hash-verified

271 }
272
273 async function reimportSkill(id: string): Promise<{ success: boolean; error?: string }> {
274 try {
275 const result = await useSkillService().reimport(id)
276 if (result.success) {
277 await loadSkills()
278 await loadBuiltinCatalog()
279 }
280 return result
281 } catch (error) {
282 return { success: false, error: String(error) }
283 }
284 }
285
286 return {
287 skills,

Callers

nothing calls this directly

Calls 4

useSkillServiceFunction · 0.90
loadSkillsFunction · 0.85
loadBuiltinCatalogFunction · 0.70
reimportMethod · 0.65

Tested by

no test coverage detected