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

Function importSkill

src/stores/skill.ts:260–271  ·  view source on GitHub ↗
(builtinId: string)

Source from the content-addressed store, hash-verified

258 }
259
260 async function importSkill(builtinId: string): Promise<{ success: boolean; id?: string; error?: string }> {
261 try {
262 const result = await useSkillService().importBuiltin(builtinId)
263 if (result.success) {
264 await loadSkills()
265 await loadBuiltinCatalog()
266 }
267 return result
268 } catch (error) {
269 return { success: false, error: String(error) }
270 }
271 }
272
273 async function reimportSkill(id: string): Promise<{ success: boolean; error?: string }> {
274 try {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected