feat(api): enhance organization shared knowledge base and agent functionalities

- Introduced new interfaces for handling shared knowledge bases and agents, including visibility and selection modes for agents.
- Added API functions to list shared knowledge bases and agents within an organization, improving data retrieval for UI components.
- Updated existing components to utilize the new API endpoints and interfaces, ensuring accurate representation of shared resources.
- Enhanced error handling in API calls to provide clearer feedback on failures.

This update improves the functionality and user experience by providing better access to shared resources and enhancing the overall data structure within the application.
This commit is contained in:
wizardchen
2026-02-08 14:32:18 +08:00
committed by lyingbug
parent 1bdd9a4693
commit 9a073d62bf
25 changed files with 1119 additions and 118 deletions
@@ -47,7 +47,7 @@
{{ org.share_count ?? 0 }}
</span>
<span class="org-meta-tag">
<t-icon name="control-platform" class="org-meta-icon org-meta-icon-agent" />
<img src="@/assets/img/agent.svg" class="org-meta-icon org-meta-icon-agent" alt="" aria-hidden="true" />
{{ org.agent_share_count ?? 0 }}
</span>
</div>
@@ -122,7 +122,7 @@
{{ getOrgForShare(share.organization_id)?.share_count ?? 0 }}
</span>
<span class="org-meta-tag">
<t-icon name="control-platform" class="org-meta-icon org-meta-icon-agent" />
<img src="@/assets/img/agent.svg" class="org-meta-icon org-meta-icon-agent" alt="" aria-hidden="true" />
{{ getOrgForShare(share.organization_id)?.agent_share_count ?? 0 }}
</span>
</div>
@@ -504,7 +504,8 @@ onMounted(async () => {
opacity: 0.75;
}
.org-meta-icon-agent {
font-size: 12px;
width: 12px;
height: 12px;
opacity: 0.75;
}
}
@@ -640,7 +641,8 @@ onMounted(async () => {
opacity: 0.75;
}
.org-meta-icon-agent {
font-size: 12px;
width: 12px;
height: 12px;
opacity: 0.75;
}
}