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