Dedupe and organize skills/sources (#8731)

This commit is contained in:
Jack Amadeo
2026-04-23 15:07:45 -04:00
committed by GitHub
parent 586fa2b3c8
commit 5dd9f08d57
28 changed files with 1245 additions and 786 deletions
+3 -14
View File
@@ -3332,11 +3332,10 @@ impl GooseAcpAgent {
) -> Result<UpdateSourceResponse, sacp::Error> {
let source = crate::sources::update_source(
req.source_type,
&req.path,
&req.name,
&req.description,
&req.content,
req.global,
req.project_dir.as_deref(),
)?;
Ok(UpdateSourceResponse { source })
}
@@ -3346,12 +3345,7 @@ impl GooseAcpAgent {
&self,
req: DeleteSourceRequest,
) -> Result<EmptyResponse, sacp::Error> {
crate::sources::delete_source(
req.source_type,
&req.name,
req.global,
req.project_dir.as_deref(),
)?;
crate::sources::delete_source(req.source_type, &req.path)?;
Ok(EmptyResponse {})
}
@@ -3360,12 +3354,7 @@ impl GooseAcpAgent {
&self,
req: ExportSourceRequest,
) -> Result<ExportSourceResponse, sacp::Error> {
let (json, filename) = crate::sources::export_source(
req.source_type,
&req.name,
req.global,
req.project_dir.as_deref(),
)?;
let (json, filename) = crate::sources::export_source(req.source_type, &req.path)?;
Ok(ExportSourceResponse { json, filename })
}