feat: Implement extension and bot limitations across services and UI (#1991)

- Added checks for maximum allowed extensions, bots, and pipelines in the backend services (PluginsRouterGroup, BotService, MCPService, PipelineService).
- Updated system configuration to include limitation settings for max_bots, max_pipelines, and max_extensions.
- Enhanced frontend components to handle limitations, providing user feedback when limits are reached.
- Added internationalization support for limitation messages in English, Japanese, Simplified Chinese, and Traditional Chinese.
This commit is contained in:
Junyan Chin
2026-02-22 04:25:45 -05:00
committed by GitHub
parent aa09a27a63
commit 42caae1bcf
17 changed files with 161 additions and 5 deletions

View File

@@ -240,13 +240,21 @@ export interface PluginReorderElement {
}
// system
export interface SystemLimitation {
max_bots: number;
max_pipelines: number;
max_extensions: number;
}
export interface ApiRespSystemInfo {
debug: boolean;
version: string;
edition: string;
cloud_service_url: string;
enable_marketplace: boolean;
allow_modify_login_info: boolean;
disable_models_service: boolean;
limitation: SystemLimitation;
}
export interface ApiRespPluginSystemStatus {

View File

@@ -6,10 +6,16 @@ import { ApiRespSystemInfo } from '@/app/infra/entities/api';
export let systemInfo: ApiRespSystemInfo = {
debug: false,
version: '',
edition: 'community',
enable_marketplace: true,
cloud_service_url: '',
allow_modify_login_info: true,
disable_models_service: false,
limitation: {
max_bots: -1,
max_pipelines: -1,
max_extensions: -1,
},
};
// 用户信息