feat: skills platform ext (#8377)

This commit is contained in:
Alex Hancock
2026-04-07 21:02:29 -04:00
committed by GitHub
parent 9d0efcb72a
commit ca806fa128
6 changed files with 681 additions and 833 deletions
@@ -427,19 +427,13 @@ pub async fn get_slash_commands(
let working_dir = query.working_dir.map(std::path::PathBuf::from);
for source in
goose::agents::platform_extensions::summon::list_installed_sources(working_dir.as_deref())
goose::agents::platform_extensions::skills::list_installed_skills(working_dir.as_deref())
{
if matches!(
source.kind,
goose::agents::platform_extensions::summon::SourceKind::Skill
| goose::agents::platform_extensions::summon::SourceKind::BuiltinSkill
) {
commands.push(SlashCommand {
command: source.name,
help: source.description,
command_type: CommandType::Skill,
});
}
commands.push(SlashCommand {
command: source.name,
help: source.description,
command_type: CommandType::Skill,
});
}
Ok(Json(SlashCommandsResponse { commands }))