(root: string, skillName: string)
| 130 | } |
| 131 | |
| 132 | export async function loadSkill(root: string, skillName: string): Promise<SkillInfo | null> { |
| 133 | const skills = await listSkills(root); |
| 134 | return skills.find(s => s.name === skillName) ?? null; |
| 135 | } |
| 136 | |
| 137 | export async function loadState(root: string, stateFile?: string): Promise<string | null> { |
| 138 | const target = stateFile ?? 'STATE.md'; |
no test coverage detected