feat: enhance agent skills sandbox configuration and availability
- Updated .env.example to set default sandbox mode to 'docker' and added timeout and docker image variables. - Modified docker-compose files to include a sandbox service for building and pulling the sandbox image. - Adjusted frontend API to reflect sandbox availability for skills, ensuring UI elements are conditionally displayed based on sandbox status. - Implemented backend logic to disable skills when the sandbox is not enabled, improving error handling and user experience.
This commit is contained in:
@@ -6,7 +6,7 @@ export interface SkillInfo {
|
||||
description: string;
|
||||
}
|
||||
|
||||
// 获取预装Skills列表
|
||||
// 获取预装Skills列表;skills_available 为 false 表示沙箱未启用,前端应隐藏/禁用 Skills 配置
|
||||
export function listSkills() {
|
||||
return get<{ data: SkillInfo[] }>('/api/v1/skills');
|
||||
return get<{ data: SkillInfo[]; skills_available?: boolean }>('/api/v1/skills');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user