feat: enhance storage engine configuration and UI updates

- Updated `.air.toml` to include additional CGO flags for improved build settings.
- Expanded `StorageEngineConfig` interface to support "tos" (火山引擎 TOS) as a new storage provider.
- Modified related components and views to accommodate the new storage engine, including updates to `ListSpaceSidebar`, `AgentList`, `KnowledgeBaseList`, and `OrganizationList`.
- Improved UI elements for batch management in the menu and sidebar components.
- Added internationalization support for new memory features and storage engine descriptions across multiple languages.

This update enhances the flexibility of storage options and improves user experience with better UI interactions.
This commit is contained in:
wizardchen
2026-02-28 15:57:09 +08:00
committed by lyingbug
parent 397689d2f3
commit 469f320d10
19 changed files with 901 additions and 292 deletions
@@ -95,6 +95,13 @@ const engineOptions = computed(() => {
available: statusMap.cos,
disabled: statusMap.cos === false,
},
{
value: 'tos',
label: '火山引擎 TOS',
desc: '火山引擎对象存储,适合公有云部署',
available: statusMap.tos,
disabled: statusMap.tos === false,
},
]
})
@@ -126,7 +133,7 @@ async function load() {
engineStatus.value = engines
defaultProvider.value = configRes?.data?.default_provider || 'local'
const d = configRes?.data
hasAnyConfig.value = !!(d?.local?.path_prefix || d?.minio?.bucket_name || d?.cos?.bucket_name)
hasAnyConfig.value = !!(d?.local?.path_prefix || d?.minio?.bucket_name || d?.cos?.bucket_name || d?.tos?.bucket_name)
if (!localProvider.value || localProvider.value === '') {
localProvider.value = defaultProvider.value
emit('update:storageProvider', localProvider.value)