refactor(skill): remove legacy host scan endpoint and client method

This commit is contained in:
Hyu
2026-10-25 00:08:25 +08:00
parent a75f9e2953
commit d6bce3228b
2 changed files with 0 additions and 27 deletions
@@ -274,20 +274,3 @@ class SkillsRouterGroup(group.RouterGroup):
return self.http_status(400, -1, str(exc))
except Exception:
raise
@self.route(
'/scan',
methods=['GET'],
auth_type=group.AuthType.USER_TOKEN_OR_API_KEY,
permission=Permission.RESOURCE_MANAGE,
)
async def scan_skill_directory(request_context: RequestContext) -> quart.Response:
path = quart.request.args.get('path', '').strip()
if not path:
return self.http_status(400, -1, 'Missing required parameter: path')
try:
result = await self.ap.skill_service.scan_directory_async(request_context, path)
return self.success(data=result)
except ValueError as exc:
return self.http_status(400, -1, str(exc))
-10
View File
@@ -2497,16 +2497,6 @@ export class BackendClient extends BaseHttpClient {
return this.get('/api/v1/skills/index', params);
}
public scanSkillDirectory(path: string): Promise<{
package_root: string;
name: string;
display_name?: string;
description: string;
instructions: string;
}> {
return this.get('/api/v1/skills/scan', { path });
}
public listSkillFiles(
skillName: string,
path: string = '.',