From 469f320d10f38c3a7a71c606810e45b5a83140e4 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Sat, 28 Feb 2026 15:57:09 +0800 Subject: [PATCH] feat: enhance storage engine configuration and UI updates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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. --- .air.toml | 2 +- frontend/src/api/system/index.ts | 13 +- frontend/src/components/ListSpaceSidebar.vue | 241 ++++++++++++------ frontend/src/components/menu.vue | 178 +++++++++++-- frontend/src/i18n/locales/en-US.ts | 2 + frontend/src/i18n/locales/ko-KR.ts | 7 +- frontend/src/i18n/locales/ru-RU.ts | 4 + frontend/src/i18n/locales/zh-CN.ts | 2 + frontend/src/views/agent/AgentList.vue | 124 +++++---- .../src/views/knowledge/KnowledgeBaseList.vue | 115 +++++---- .../knowledge/settings/KBStorageSettings.vue | 9 +- .../views/organization/OrganizationList.vue | 148 +++++++---- .../src/views/settings/GeneralSettings.vue | 44 +++- .../views/settings/StorageEngineSettings.vue | 127 ++++++++- internal/application/service/file/tos.go | 46 +++- internal/application/service/session.go | 47 ++-- internal/handler/system.go | 63 ++++- internal/types/tenant.go | 15 +- scripts/dev.sh | 6 +- 19 files changed, 901 insertions(+), 292 deletions(-) diff --git a/.air.toml b/.air.toml index ac235403..8a7afb91 100644 --- a/.air.toml +++ b/.air.toml @@ -5,7 +5,7 @@ tmp_dir = "tmp" [build] args_bin = [] bin = "./tmp/main" - cmd = "go build -o ./tmp/main ./cmd/server" + cmd = "CGO_CFLAGS='-Wno-deprecated-declarations -Wno-gnu-folding-constant' CGO_LDFLAGS='-Wl,-no_warn_duplicate_libraries' go build -ldflags=\"-X 'google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn'\" -o ./tmp/main ./cmd/server" delay = 1000 exclude_dir = ["assets", "tmp", "vendor", "testdata", "frontend", "migrations", "node_modules", "docs"] exclude_file = [] diff --git a/frontend/src/api/system/index.ts b/frontend/src/api/system/index.ts index 1f00abd3..4c18d8c2 100644 --- a/frontend/src/api/system/index.ts +++ b/frontend/src/api/system/index.ts @@ -173,7 +173,7 @@ export function reconnectDocReader(addr: string): Promise -