mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 11:20:07 +08:00
* refactor(apiServer): move api server types to dedicated module Restructure api server type definitions by moving them from index.ts to a dedicated apiServer.ts file. This improves code organization and maintainability by grouping related types together. * feat(api-server): add api server management hooks and integration Extract api server management logic into reusable hook and integrate with settings page * feat(api-server): improve api server status handling and error messages - add new error messages for api server status - optimize initial state and loading in useApiServer hook - centralize api server enabled check via useApiServer hook - update components to use new api server status handling * fix(agents): update error message key for agent server not running * fix(i18n): update api server status messages across locales Remove redundant 'notRunning' message in en-us locale Add consistent 'not_running' error message in all locales Add missing 'notEnabled' message in several locales * refactor: update api server type imports to use @types Move api server related type imports from renderer/src/types to @types package for better code organization and maintainability * docs(IpcChannel): add comment about unused api-server:get-config Add TODO comment about data inconsistency in useApiServer hook * refactor(assistants): pass apiServerEnabled as prop instead of using hook Move apiServerEnabled from being fetched via useApiServer hook to being passed as a prop through component hierarchy. This improves maintainability by making dependencies more explicit and reducing hook usage in child components. * style(AssistantsTab): add consistent margin-bottom to alert components * feat(useAgent): add api server status checks before fetching agent Ensure api server is enabled and running before attempting to fetch agent data |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| agents | ||
| mcp/oauth | ||
| memory | ||
| ocr | ||
| remotefile | ||
| urlschema | ||
| AnthropicService.ts | ||
| ApiServerService.ts | ||
| AppService.ts | ||
| AppUpdater.ts | ||
| BackupManager.ts | ||
| CacheService.ts | ||
| CodeToolsService.ts | ||
| ConfigManager.ts | ||
| ContextMenu.ts | ||
| CopilotService.ts | ||
| DxtService.ts | ||
| ExportService.ts | ||
| FileStorage.ts | ||
| FileSystemService.ts | ||
| KnowledgeService.ts | ||
| LoggerService.ts | ||
| MCPService.ts | ||
| MistralClientManager.ts | ||
| NodeTraceService.ts | ||
| NotificationService.ts | ||
| NutstoreService.ts | ||
| ObsidianVaultService.ts | ||
| OvmsManager.ts | ||
| ProtocolClient.ts | ||
| ProxyManager.ts | ||
| PythonService.ts | ||
| ReduxService.ts | ||
| S3Storage.ts | ||
| SearchService.ts | ||
| SelectionService.ts | ||
| ShortcutService.ts | ||
| SpanCacheService.ts | ||
| StoreSyncService.ts | ||
| ThemeService.ts | ||
| TrayService.ts | ||
| VertexAIService.ts | ||
| WebDav.ts | ||
| WebviewService.ts | ||
| WindowService.ts | ||