feat: add gateway management features and settings

- Implemented new API routes for handling logs and settings related to the gateway.
- Added a new Gateway section in the General Settings panel to manage gateway status and auto-start options.
- Introduced a state management hook for gateway settings, including status, logs, and auto-start functionality.
- Updated configuration service to include gateway auto-start setting.
- Enhanced internationalization support for new gateway-related messages.
- Refactored existing settings store to accommodate new gateway settings.
- Cleaned up code and improved logging functionality.
This commit is contained in:
duanshuwen
2026-04-20 22:22:11 +08:00
parent f7f4ffaee9
commit dfef9c90a5
18 changed files with 1139 additions and 15 deletions

View File

@@ -11,7 +11,9 @@ import { handleCronRoutes } from './routes/cron';
import { handleFileRoutes } from './routes/files';
import { handleGatewayRoutes } from './routes/gateway';
import { handleKnowledgeRoutes } from './routes/knowledge';
import { handleLogRoutes } from './routes/logs';
import { handleProviderRoutes } from './routes/providers';
import { handleSettingsRoutes } from './routes/settings';
import { handleSessionRoutes } from './routes/sessions';
import { handleSkillRoutes } from './routes/skills';
@@ -27,8 +29,10 @@ const routeHandlers: RouteHandler[] = [
handleCronRoutes,
handleGatewayRoutes,
handleKnowledgeRoutes,
handleLogRoutes,
handleFileRoutes,
handleSessionRoutes,
handleSettingsRoutes,
handleSkillRoutes,
];