feat(agent): enhance agent sharing and selection features

- Updated the AgentSelector component to improve agent selection logic, ensuring accurate representation of selected agents.
- Introduced new AgentShareSettings component for managing agent sharing with organizations, including UI for selecting organizations and displaying shared agents.
- Enhanced API interactions for sharing agents, including new methods for listing and managing agent shares.
- Improved localization support for agent sharing features across multiple languages.
- Updated various components to reflect changes in agent capabilities and sharing status, enhancing user experience and clarity.

This update strengthens the agent management features, providing users with better tools for sharing and selecting agents within organizations.
This commit is contained in:
wizardchen
2026-02-04 20:12:29 +08:00
committed by lyingbug
parent faa4e9e7b5
commit dfaf862bc0
45 changed files with 3606 additions and 477 deletions
+47 -1
View File
@@ -261,9 +261,39 @@ export default {
mcp: 'MCP Services Enabled',
multiTurn: 'Multi-turn Conversation',
},
tabs: {
all: 'All',
mine: 'My Agents',
sharedToMe: 'Shared to Me',
},
empty: {
title: 'No Custom Agents',
description: 'Click the button in the top right to create your first agent',
sharedTitle: 'No shared agents yet',
sharedDescription: 'You can join a space or ask others to share agents with you',
},
detail: {
title: 'Agent Details',
useInChat: 'Use in Chat',
},
shareScope: {
title: 'Share Scope',
desc: 'Space members have read-only access to this agent and will use it according to your current configuration; your changes to the agent will sync to shared spaces. To allow space members to edit knowledge base content, share the knowledge base to the space.',
knowledgeBase: 'Knowledge bases',
chatModel: 'Chat model',
rerankModel: 'Rerank model',
webSearch: 'Web search',
mcp: 'MCP services',
kbAll: 'All knowledge bases',
kbSelected: '{count} selected',
kbNone: 'None',
modelConfigured: 'Configured',
modelNotSet: 'Not set',
enabled: 'On',
disabled: 'Off',
mcpAll: 'All services',
mcpSelected: '{count} selected',
mcpNone: 'None',
},
delete: {
confirmTitle: 'Delete Agent',
@@ -400,6 +430,7 @@ export default {
addNew: 'Add New Agent',
current: 'Current',
goToSettings: 'Settings',
sharedLabel: 'Shared',
},
// Built-in agent information
builtinInfo: {
@@ -1011,6 +1042,7 @@ export default {
knowledgeBase: 'Knowledge Base',
knowledgeBaseWithCount: 'Knowledge Base ({count})',
notConfigured: 'Not configured',
sharedAgentModelLabel: 'Model from shared agent',
model: 'Model',
remote: 'Remote',
noModel: 'No available models',
@@ -2376,6 +2408,7 @@ export default {
preview: 'Preview & Join',
memberCount: '{count} members',
shareCount: '{count} shared knowledge bases',
agentShareCount: '{count} agents',
alreadyMember: 'You are already a member of this space',
invalidCode: 'Invalid invite code',
byInviteCode: 'Enter invite code',
@@ -2401,6 +2434,7 @@ export default {
previewFailed: 'Preview failed, please try again',
members: 'Members',
knowledgeBases: 'Knowledge Bases',
agents: 'Agents',
alreadyMember: 'You are already a member of this space',
confirmJoin: 'Confirm Join',
submitRequest: 'Request to Join',
@@ -2472,6 +2506,10 @@ export default {
sharedDesc: 'View all knowledge bases shared to this space',
noSharedKB: 'No shared knowledge bases yet',
noSharedKBTip: 'Knowledge base owners can share their knowledge bases to this space in KB settings',
sharedAgents: 'Shared Agents',
noSharedAgents: 'No shared agents yet',
sharedAgentsDesc: 'Agents shared to this space; members can use them in chat',
noSharedAgentsTip: 'Admins can share agents to this space from agent settings',
sharePermissionLabel: 'Space permission',
myPermissionLabel: 'My actual permission',
permissionCalcFormula: 'Space permission is what was set when the KB was shared to this space; my actual permission = min(space permission, my role in this space)',
@@ -2490,6 +2528,7 @@ export default {
remainingValidityExpired: 'Expired',
removeShareFromOrg: 'Remove from space',
removeShareConfirm: 'Remove "{name}" from this space? Members will no longer have access to this knowledge base.',
removeAgentShareConfirm: 'Remove "{name}" from this space? Members will no longer have access to this agent.',
removeShareSuccess: 'Removed from space',
removeShareFailed: 'Failed to remove, please try again',
requireApproval: 'Require Approval',
@@ -2587,13 +2626,20 @@ export default {
unshareSuccess: 'Share cancelled',
unshareFailed: 'Failed to cancel share',
sharedTo: 'Shared to',
noShares: 'This knowledge base has not been shared to any space',
noShares: 'Not shared to any space yet',
sharedKnowledgeBase: 'Shared Knowledge Base',
shareToSpace: 'Share to space',
shareModelToSpace: 'Share "{name}" to space',
shareAgentToSpace: 'Share "{name}" to space',
modelShareDesc: 'Share this model to a space so members can use it',
agentShareDesc: 'Share this agent to a space so members can use it',
spaceAgentShareCountTip: 'Number of agents shared to this space',
sharedFrom: 'From',
sharedBadge: 'Shared',
permissionReadonly: 'Read-only',
permissionEditable: 'Editable',
sharedKBs: ' knowledge bases',
sharedAgents: ' agents',
},
},
}