(id: string, rawMd: string)
| 225 | } |
| 226 | |
| 227 | async function updateSkill(id: string, rawMd: string): Promise<{ success: boolean; error?: string }> { |
| 228 | try { |
| 229 | const result = await useSkillService().update(id, rawMd) |
| 230 | if (result.success) await loadSkills() |
| 231 | return result |
| 232 | } catch (error) { |
| 233 | return { success: false, error: String(error) } |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | async function createSkill(rawMd: string): Promise<{ success: boolean; id?: string; error?: string }> { |
| 238 | try { |
nothing calls this directly
no test coverage detected