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