(id: string)
| 208 | } |
| 209 | |
| 210 | async function getSkillConfig(id: string): Promise<SkillConfigFull | null> { |
| 211 | if (id === CHART_CAPABILITY_SKILL_ID) { |
| 212 | const skill = getChartCapabilitySkillSummary() |
| 213 | return { |
| 214 | ...skill, |
| 215 | prompt: '', |
| 216 | builtinId: CHART_CAPABILITY_SKILL_ID, |
| 217 | } |
| 218 | } |
| 219 | try { |
| 220 | return await useSkillService().getConfig(id) |
| 221 | } catch (error) { |
| 222 | console.error('[SkillStore] Failed to get skill config:', error) |
| 223 | return null |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | async function updateSkill(id: string, rawMd: string): Promise<{ success: boolean; error?: string }> { |
| 228 | try { |
no test coverage detected