(id: string)
| 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, |
nothing calls this directly
no test coverage detected