mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-05 01:02:59 +08:00
Agent skill dev (#6668)
* chore: Rename service & container names for consistency in Docker configs (#6710) * chore: Rename container names for consistency in Docker configs * chore: Rename service names for consistency in Docker configs chore: Update OpenSandbox versions and image repositories (#6709) * chore: Update OpenSandbox versions and image repositories * yml version * images * init yml * port --------- Co-authored-by: archer <545436317@qq.com> refactor(chat): optimize sandbox status logic and decouple UI/Status hooks (#6713) * refactor(chat): optimize sandbox status logic and decouple UI/Status hooks * fix: useRef, rename onClose to afterClose Update .env.template (#6720) aiproxy默认的请求地址改成http协议 feat: comprehensive agent skill management and sandbox infrastructure optimization - Skill System: Implemented a full skill management module including CRUD operations, folder organization, AI-driven skill generation, and versioning (switch/update). - Sandbox Infrastructure: Introduced 'volume-manager' for PVC and Docker volume lifecycle management, replacing the MinIO sync-agent for better data persistence. - Workflow Integration: Enhanced the Agent node to support skill selection and configuration, including new UI components and data normalization. - Permission Management: Added granular permission controls for skills, supporting collaborators, owner transfers, and permission inheritance. - UI/UX: Added a dedicated Skill dashboard, sandbox debug interface (terminal, logs, and iframe proxy), and comprehensive i18n support. - Maintenance: Migrated Docker services to named volumes, optimized sandbox instance limits, and improved error handling for sandbox providers. Co-authored-by: chanzhi82020 <chenzhi@sangfor.com.cn> Co-authored-by: lavine77 Signed-off-by: Jon <ljp@sangfor.com.cn> feat: hide skill prettier * perf: hide skill code * fix: ts * lock * perf: tool code * fix: ts * lock * fix: test * fix: openapi * lock * fix: test * null model --------- Co-authored-by: archer <545436317@qq.com>
This commit is contained in:
@@ -510,5 +510,86 @@ export const auditLogMap = {
|
||||
content: i18nT('account_team:log_delete_api_key'),
|
||||
typeLabel: i18nT('account_team:delete_api_key'),
|
||||
params: {} as { name?: string; keyName: string }
|
||||
},
|
||||
//Agent Skills
|
||||
[AuditEventEnum.CREATE_SKILL]: {
|
||||
content: i18nT('account_team:log_create_skill'),
|
||||
typeLabel: i18nT('account_team:create_skill'),
|
||||
params: {} as { name?: string; skillName: string; skillType: string }
|
||||
},
|
||||
[AuditEventEnum.UPDATE_SKILL]: {
|
||||
content: i18nT('account_team:log_update_skill'),
|
||||
typeLabel: i18nT('account_team:update_skill'),
|
||||
params: {} as { name?: string; skillName: string; skillType: string }
|
||||
},
|
||||
[AuditEventEnum.DEPLOY_SKILL]: {
|
||||
content: i18nT('account_team:log_deploy_skill'),
|
||||
typeLabel: i18nT('account_team:deploy_skill'),
|
||||
params: {} as { name?: string; skillName: string; skillType: string }
|
||||
},
|
||||
[AuditEventEnum.DELETE_SKILL]: {
|
||||
content: i18nT('account_team:log_delete_skill'),
|
||||
typeLabel: i18nT('account_team:delete_skill'),
|
||||
params: {} as { name?: string; skillName: string; skillType: string }
|
||||
},
|
||||
[AuditEventEnum.IMPORT_SKILL]: {
|
||||
content: i18nT('account_team:log_import_skill'),
|
||||
typeLabel: i18nT('account_team:import_skill'),
|
||||
params: {} as { name?: string; skillName: string; skillType: string }
|
||||
},
|
||||
[AuditEventEnum.CREATE_SKILL_FOLDER]: {
|
||||
content: i18nT('account_team:log_create_skill_folder'),
|
||||
typeLabel: i18nT('account_team:create_skill_folder'),
|
||||
params: {} as { name?: string; folderName: string }
|
||||
},
|
||||
[AuditEventEnum.EXPORT_SKILL]: {
|
||||
content: i18nT('account_team:log_export_skill'),
|
||||
typeLabel: i18nT('account_team:export_skill'),
|
||||
params: {} as { name?: string; skillName: string; skillType: string }
|
||||
},
|
||||
[AuditEventEnum.COPY_SKILL]: {
|
||||
content: i18nT('account_team:log_copy_skill'),
|
||||
typeLabel: i18nT('account_team:copy_skill'),
|
||||
params: {} as { name?: string; skillName: string; skillType: string }
|
||||
},
|
||||
[AuditEventEnum.MOVE_SKILL]: {
|
||||
content: i18nT('account_team:log_move_skill'),
|
||||
typeLabel: i18nT('account_team:move_skill'),
|
||||
params: {} as { name?: string; skillName: string; skillType: string; targetFolderName: string }
|
||||
},
|
||||
[AuditEventEnum.UPDATE_SKILL_COLLABORATOR]: {
|
||||
content: i18nT('account_team:log_update_skill_collaborator'),
|
||||
typeLabel: i18nT('account_team:update_skill_collaborator'),
|
||||
params: {} as {
|
||||
name?: string;
|
||||
skillName: string;
|
||||
skillType: string;
|
||||
tmbList: string[];
|
||||
groupList: string[];
|
||||
orgList: string[];
|
||||
permission: string;
|
||||
}
|
||||
},
|
||||
[AuditEventEnum.DELETE_SKILL_COLLABORATOR]: {
|
||||
content: i18nT('account_team:log_delete_skill_collaborator'),
|
||||
typeLabel: i18nT('account_team:delete_skill_collaborator'),
|
||||
params: {} as {
|
||||
name?: string;
|
||||
skillName: string;
|
||||
skillType: string;
|
||||
itemName: string;
|
||||
itemValueName: string;
|
||||
}
|
||||
},
|
||||
[AuditEventEnum.TRANSFER_SKILL_OWNERSHIP]: {
|
||||
content: i18nT('account_team:log_transfer_skill_ownership'),
|
||||
typeLabel: i18nT('account_team:transfer_skill_ownership'),
|
||||
params: {} as {
|
||||
name?: string;
|
||||
skillName: string;
|
||||
skillType: string;
|
||||
oldOwnerName: string;
|
||||
newOwnerName: string;
|
||||
}
|
||||
}
|
||||
} as const;
|
||||
|
||||
Reference in New Issue
Block a user