(packageName: string, version: string)
| 77 | ) |
| 78 | |
| 79 | async function handleDiscovery(packageName: string, version: string): Promise<SkillsListResponse> { |
| 80 | const fileTree = await getPackageFileTree(packageName, version) |
| 81 | const skillDirs = findSkillDirs(fileTree.tree) |
| 82 | |
| 83 | if (skillDirs.length === 0) { |
| 84 | return { package: packageName, version, skills: [] } |
| 85 | } |
| 86 | |
| 87 | const skills = await fetchSkillsList(packageName, version, skillDirs) |
| 88 | return { package: packageName, version, skills } |
| 89 | } |
| 90 | |
| 91 | async function handleSkillContent( |
| 92 | packageName: string, |
no test coverage detected