Revert "refactor: skills as its own platform ext (#8244)" (#8375)

This commit is contained in:
Alex Hancock
2026-04-07 11:03:29 -04:00
committed by GitHub
parent 0028d97c23
commit a6ce7a37da
6 changed files with 838 additions and 596 deletions
@@ -427,13 +427,19 @@ pub async fn get_slash_commands(
let working_dir = query.working_dir.map(std::path::PathBuf::from);
for source in
goose::agents::platform_extensions::skills::list_installed_skills(working_dir.as_deref())
goose::agents::platform_extensions::summon::list_installed_sources(working_dir.as_deref())
{
commands.push(SlashCommand {
command: source.name,
help: source.description,
command_type: CommandType::Skill,
});
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,
});
}
}
Ok(Json(SlashCommandsResponse { commands }))