(rawMd: string)
| 235 | } |
| 236 | |
| 237 | async function createSkill(rawMd: string): Promise<{ success: boolean; id?: string; error?: string }> { |
| 238 | try { |
| 239 | const result = await useSkillService().create(rawMd) |
| 240 | if (result.success) await loadSkills() |
| 241 | return result |
| 242 | } catch (error) { |
| 243 | return { success: false, error: String(error) } |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | async function deleteSkill(id: string): Promise<{ success: boolean; error?: string }> { |
| 248 | try { |
nothing calls this directly
no test coverage detected