@lobehub/chat 1.83.7 → 1.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/desktop-pr-build.yml +1 -1
- package/CHANGELOG.md +50 -0
- package/apps/desktop/src/main/controllers/RemoteServerSyncCtr.ts +2 -6
- package/apps/desktop/src/main/core/App.ts +8 -0
- package/apps/desktop/src/main/menus/impls/macOS.ts +6 -0
- package/apps/desktop/src/main/utils/logger.ts +2 -1
- package/changelog/v1.json +18 -0
- package/locales/ar/color.json +22 -0
- package/locales/ar/file.json +3 -0
- package/locales/ar/models.json +15 -0
- package/locales/ar/setting.json +13 -0
- package/locales/ar/tool.json +10 -1
- package/locales/bg-BG/color.json +22 -0
- package/locales/bg-BG/file.json +3 -0
- package/locales/bg-BG/models.json +15 -0
- package/locales/bg-BG/setting.json +13 -0
- package/locales/bg-BG/tool.json +10 -1
- package/locales/de-DE/color.json +22 -0
- package/locales/de-DE/file.json +3 -0
- package/locales/de-DE/models.json +15 -0
- package/locales/de-DE/setting.json +13 -0
- package/locales/de-DE/tool.json +10 -1
- package/locales/en-US/color.json +22 -0
- package/locales/en-US/file.json +3 -0
- package/locales/en-US/models.json +15 -0
- package/locales/en-US/setting.json +13 -0
- package/locales/en-US/tool.json +10 -1
- package/locales/es-ES/color.json +22 -0
- package/locales/es-ES/file.json +3 -0
- package/locales/es-ES/models.json +15 -0
- package/locales/es-ES/setting.json +13 -0
- package/locales/es-ES/tool.json +10 -1
- package/locales/fa-IR/color.json +22 -0
- package/locales/fa-IR/file.json +3 -0
- package/locales/fa-IR/models.json +15 -0
- package/locales/fa-IR/setting.json +13 -0
- package/locales/fa-IR/tool.json +10 -1
- package/locales/fr-FR/color.json +22 -0
- package/locales/fr-FR/file.json +3 -0
- package/locales/fr-FR/models.json +15 -0
- package/locales/fr-FR/setting.json +13 -0
- package/locales/fr-FR/tool.json +10 -1
- package/locales/it-IT/color.json +22 -0
- package/locales/it-IT/file.json +3 -0
- package/locales/it-IT/models.json +15 -0
- package/locales/it-IT/setting.json +13 -0
- package/locales/it-IT/tool.json +10 -1
- package/locales/ja-JP/color.json +22 -0
- package/locales/ja-JP/file.json +3 -0
- package/locales/ja-JP/models.json +15 -0
- package/locales/ja-JP/setting.json +13 -0
- package/locales/ja-JP/tool.json +10 -1
- package/locales/ko-KR/color.json +22 -0
- package/locales/ko-KR/file.json +3 -0
- package/locales/ko-KR/models.json +15 -0
- package/locales/ko-KR/setting.json +13 -0
- package/locales/ko-KR/tool.json +10 -1
- package/locales/nl-NL/color.json +22 -0
- package/locales/nl-NL/file.json +3 -0
- package/locales/nl-NL/models.json +15 -0
- package/locales/nl-NL/setting.json +13 -0
- package/locales/nl-NL/tool.json +10 -1
- package/locales/pl-PL/color.json +22 -0
- package/locales/pl-PL/file.json +3 -0
- package/locales/pl-PL/models.json +15 -0
- package/locales/pl-PL/setting.json +13 -0
- package/locales/pl-PL/tool.json +10 -1
- package/locales/pt-BR/color.json +22 -0
- package/locales/pt-BR/file.json +3 -0
- package/locales/pt-BR/models.json +15 -0
- package/locales/pt-BR/setting.json +13 -0
- package/locales/pt-BR/tool.json +10 -1
- package/locales/ru-RU/color.json +22 -0
- package/locales/ru-RU/file.json +3 -0
- package/locales/ru-RU/models.json +15 -0
- package/locales/ru-RU/setting.json +13 -0
- package/locales/ru-RU/tool.json +10 -1
- package/locales/tr-TR/color.json +22 -0
- package/locales/tr-TR/file.json +3 -0
- package/locales/tr-TR/models.json +15 -0
- package/locales/tr-TR/setting.json +13 -0
- package/locales/tr-TR/tool.json +10 -1
- package/locales/vi-VN/color.json +22 -0
- package/locales/vi-VN/file.json +3 -0
- package/locales/vi-VN/models.json +15 -0
- package/locales/vi-VN/setting.json +13 -0
- package/locales/vi-VN/tool.json +10 -1
- package/locales/zh-CN/color.json +22 -0
- package/locales/zh-CN/common.json +2 -2
- package/locales/zh-CN/file.json +3 -0
- package/locales/zh-CN/models.json +15 -0
- package/locales/zh-CN/setting.json +15 -2
- package/locales/zh-TW/color.json +22 -0
- package/locales/zh-TW/file.json +3 -0
- package/locales/zh-TW/models.json +15 -0
- package/locales/zh-TW/setting.json +13 -0
- package/locales/zh-TW/tool.json +10 -1
- package/package.json +5 -5
- package/src/app/[variants]/(auth)/next-auth/signin/AuthSignInBox.tsx +2 -1
- package/src/app/[variants]/(main)/(mobile)/me/(home)/features/Header.tsx +2 -2
- package/src/app/[variants]/(main)/(mobile)/me/data/features/Header.tsx +3 -3
- package/src/app/[variants]/(main)/(mobile)/me/profile/features/Header.tsx +3 -3
- package/src/app/[variants]/(main)/(mobile)/me/settings/features/Header.tsx +3 -3
- package/src/app/[variants]/(main)/(mobile)/me/settings/features/useCategory.tsx +1 -1
- package/src/app/[variants]/(main)/_layout/Desktop/SideBar/BottomActions.tsx +19 -3
- package/src/app/[variants]/(main)/_layout/Desktop/SideBar/PinList/index.tsx +33 -17
- package/src/app/[variants]/(main)/_layout/Desktop/SideBar/TopActions.tsx +20 -10
- package/src/app/[variants]/(main)/_layout/Desktop/SideBar/index.tsx +8 -16
- package/src/app/[variants]/(main)/_layout/Mobile/NavBar.tsx +12 -4
- package/src/app/[variants]/(main)/changelog/_layout/Desktop/Container.tsx +35 -0
- package/src/app/[variants]/(main)/changelog/_layout/Desktop/index.tsx +19 -0
- package/src/app/[variants]/(main)/changelog/_layout/Mobile/Header.tsx +3 -3
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/SendMore.tsx +2 -3
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/ShortcutHint.tsx +2 -2
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/index.tsx +4 -3
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Files/index.tsx +3 -3
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/InputArea/index.tsx +5 -4
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Send.tsx +3 -4
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/InboxWelcome/AgentsSuggest.tsx +8 -14
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/InboxWelcome/QuestionSuggest.tsx +6 -10
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/OpeningQuestions.tsx +10 -14
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/WelcomeMessage.tsx +2 -2
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ZenModeToast/Toast.tsx +4 -3
- package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/Header.tsx +2 -2
- package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/SystemRole/SystemRoleContent.tsx +38 -44
- package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/SystemRole/style.ts +1 -21
- package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/TopicListContent/ByTimeMode/GroupItem.tsx +2 -2
- package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/TopicListContent/ThreadItem/Content.tsx +3 -7
- package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/TopicListContent/TopicItem/TopicContent.tsx +3 -7
- package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/TopicListContent/index.tsx +7 -7
- package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/TopicSearchBar/index.tsx +1 -1
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/HeaderAction.tsx +2 -2
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Main.tsx +10 -32
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Tags/KnowledgeTag.tsx +1 -2
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Tags/index.tsx +2 -2
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/index.tsx +3 -11
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/Portal.tsx +11 -17
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/TopicPanel.tsx +3 -4
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Mobile/ChatHeader/ChatHeaderTitle.tsx +3 -3
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Mobile/ChatHeader/index.tsx +2 -2
- package/src/app/[variants]/(main)/chat/(workspace)/features/AgentSettings/index.tsx +39 -61
- package/src/app/[variants]/(main)/chat/(workspace)/features/TelemetryNotification.tsx +1 -2
- package/src/app/[variants]/(main)/chat/@session/_layout/Desktop/PanelBody.tsx +6 -2
- package/src/app/[variants]/(main)/chat/@session/_layout/Desktop/SessionHeader.tsx +26 -13
- package/src/app/[variants]/(main)/chat/@session/_layout/Mobile/SessionHeader.tsx +2 -2
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/CollapseGroup/Actions.tsx +3 -3
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/CollapseGroup/index.tsx +1 -1
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/Inbox/index.tsx +10 -0
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/List/AddButton.tsx +14 -5
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/List/Item/Actions.tsx +3 -3
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/List/Item/index.tsx +10 -0
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/ListItem/index.tsx +2 -2
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/Modals/ConfigGroupModal/GroupItem.tsx +1 -5
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/Modals/ConfigGroupModal/index.tsx +2 -3
- package/src/app/[variants]/(main)/chat/@session/features/SessionSearchBar.tsx +1 -1
- package/src/app/[variants]/(main)/chat/_layout/Desktop/SessionPanel.tsx +14 -1
- package/src/app/[variants]/(main)/chat/_layout/Desktop/Workspace.tsx +23 -0
- package/src/app/[variants]/(main)/chat/_layout/Desktop/index.tsx +2 -3
- package/src/app/[variants]/(main)/chat/features/Migration/ExportConfigButton.tsx +1 -1
- package/src/app/[variants]/(main)/chat/features/Migration/Failed.tsx +3 -3
- package/src/app/[variants]/(main)/chat/features/Migration/Modal.tsx +2 -2
- package/src/app/[variants]/(main)/chat/features/Migration/Start.tsx +1 -1
- package/src/app/[variants]/(main)/chat/features/Migration/UpgradeButton.tsx +2 -2
- package/src/app/[variants]/(main)/chat/features/TogglePanelButton.tsx +42 -0
- package/src/app/[variants]/(main)/chat/settings/_layout/Mobile/Header.tsx +3 -3
- package/src/app/[variants]/(main)/chat/settings/features/HeaderContent.tsx +2 -3
- package/src/app/[variants]/(main)/chat/settings/features/SubmitAgentButton/SubmitAgentModal.tsx +2 -2
- package/src/app/[variants]/(main)/chat/settings/features/SubmitAgentButton/index.tsx +2 -3
- package/src/app/[variants]/(main)/chat/settings/page.tsx +13 -20
- package/src/app/[variants]/(main)/discover/(detail)/_layout/Mobile/Header.tsx +2 -2
- package/src/app/[variants]/(main)/discover/(detail)/assistant/[slug]/features/ConversationExample/index.tsx +8 -3
- package/src/app/[variants]/(main)/discover/(detail)/assistant/[slug]/features/Header.tsx +2 -5
- package/src/app/[variants]/(main)/discover/(detail)/features/Block.tsx +1 -2
- package/src/app/[variants]/(main)/discover/(detail)/features/HighlightBlock.tsx +1 -1
- package/src/app/[variants]/(main)/discover/(detail)/features/ShareButton.tsx +16 -14
- package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/Actions.tsx +2 -8
- package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/ChatWithModel.tsx +2 -2
- package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/Header.tsx +3 -7
- package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/InfoSidebar/SuggestionItem.tsx +3 -4
- package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/ParameterList/index.tsx +2 -2
- package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/ProviderList/ProviderItem.tsx +6 -19
- package/src/app/[variants]/(main)/discover/(detail)/plugin/[slug]/features/Header.tsx +8 -3
- package/src/app/[variants]/(main)/discover/(detail)/plugin/[slug]/features/InstallPlugin.tsx +2 -1
- package/src/app/[variants]/(main)/discover/(detail)/plugin/[slug]/features/ParameterList.tsx +3 -3
- package/src/app/[variants]/(main)/discover/(detail)/provider/[slug]/features/Header.tsx +1 -1
- package/src/app/[variants]/(main)/discover/(detail)/provider/[slug]/features/ModelList/ModelItem.tsx +3 -3
- package/src/app/[variants]/(main)/discover/(detail)/provider/[slug]/features/ModelList/index.tsx +3 -3
- package/src/app/[variants]/(main)/discover/(detail)/provider/[slug]/features/ProviderConfig.tsx +4 -4
- package/src/app/[variants]/(main)/discover/(list)/(home)/features/AssistantList.tsx +1 -1
- package/src/app/[variants]/(main)/discover/(list)/(home)/features/PluginList.tsx +1 -1
- package/src/app/[variants]/(main)/discover/(list)/_layout/Desktop/Nav.tsx +44 -68
- package/src/app/[variants]/(main)/discover/(list)/_layout/Mobile/Header.tsx +3 -3
- package/src/app/[variants]/(main)/discover/(list)/_layout/Mobile/Nav.tsx +2 -2
- package/src/app/[variants]/(main)/discover/(list)/assistants/features/Card.tsx +10 -11
- package/src/app/[variants]/(main)/discover/(list)/assistants/features/List.tsx +2 -2
- package/src/app/[variants]/(main)/discover/(list)/assistants/features/useCategory.tsx +1 -1
- package/src/app/[variants]/(main)/discover/(list)/models/features/Card.tsx +3 -9
- package/src/app/[variants]/(main)/discover/(list)/plugins/features/Card.tsx +7 -10
- package/src/app/[variants]/(main)/discover/(list)/plugins/features/List.tsx +2 -2
- package/src/app/[variants]/(main)/discover/(list)/plugins/features/useCategory.tsx +1 -1
- package/src/app/[variants]/(main)/discover/_layout/Desktop/Container.tsx +25 -0
- package/src/app/[variants]/(main)/discover/_layout/Desktop/index.tsx +3 -3
- package/src/app/[variants]/(main)/discover/components/CategoryContainer.tsx +1 -1
- package/src/app/[variants]/(main)/discover/components/CategoryMenu.tsx +1 -1
- package/src/app/[variants]/(main)/discover/components/Title.tsx +2 -5
- package/src/app/[variants]/(main)/discover/features/CreateButton/Inner.tsx +3 -3
- package/src/app/[variants]/(main)/discover/features/CreateButton/index.tsx +3 -3
- package/src/app/[variants]/(main)/discover/features/LikeButton.tsx +5 -4
- package/src/app/[variants]/(main)/discover/features/StoreSearchBar.tsx +1 -1
- package/src/app/[variants]/(main)/discover/features/useNav.tsx +7 -6
- package/src/app/[variants]/(main)/discover/search/_layout/Mobile/Header.tsx +3 -3
- package/src/app/[variants]/(main)/discover/search/_layout/Mobile/Nav.tsx +3 -3
- package/src/app/[variants]/(main)/files/(content)/@menu/features/FileMenu/index.tsx +1 -1
- package/src/app/[variants]/(main)/files/(content)/@menu/features/KnowledgeBase/Item/Content.tsx +6 -4
- package/src/app/[variants]/(main)/files/(content)/NotSupportClient.tsx +4 -4
- package/src/app/[variants]/(main)/files/(content)/_layout/Desktop/Container.tsx +24 -0
- package/src/app/[variants]/(main)/files/(content)/_layout/Desktop/RegisterHotkeys.tsx +10 -0
- package/src/app/[variants]/(main)/files/(content)/_layout/Desktop/index.tsx +5 -4
- package/src/app/[variants]/(main)/files/[id]/Header.tsx +3 -3
- package/src/app/[variants]/(main)/files/features/FileDetail.tsx +2 -2
- package/src/app/[variants]/(main)/profile/(home)/Client.tsx +32 -11
- package/src/app/[variants]/(main)/profile/(home)/features/SSOProvidersList/index.tsx +3 -4
- package/src/app/[variants]/(main)/profile/@category/features/CategoryContent.tsx +1 -1
- package/src/app/[variants]/(main)/profile/_layout/Desktop/Header.tsx +4 -3
- package/src/app/[variants]/(main)/profile/_layout/Desktop/SideBar.tsx +2 -2
- package/src/app/[variants]/(main)/profile/_layout/Mobile/Header.tsx +3 -3
- package/src/app/[variants]/(main)/profile/features/ClerkProfile.tsx +0 -1
- package/src/app/[variants]/(main)/profile/stats/Client.tsx +1 -1
- package/src/app/[variants]/(main)/profile/stats/features/AiHeatmaps.tsx +2 -3
- package/src/app/[variants]/(main)/profile/stats/features/AssistantsRank.tsx +2 -2
- package/src/app/[variants]/(main)/profile/stats/features/ModelsRank.tsx +2 -2
- package/src/app/[variants]/(main)/profile/stats/features/ShareButton/ShareModal.tsx +2 -2
- package/src/app/[variants]/(main)/profile/stats/features/TopicsRank.tsx +3 -5
- package/src/app/[variants]/(main)/repos/[id]/@menu/Menu/index.tsx +1 -1
- package/src/app/[variants]/(main)/repos/[id]/evals/components/Tabs.tsx +1 -1
- package/src/app/[variants]/(main)/repos/[id]/evals/dataset/CreateDataset/CreateForm.tsx +23 -36
- package/src/app/[variants]/(main)/repos/[id]/evals/dataset/CreateDataset/index.tsx +1 -1
- package/src/app/[variants]/(main)/repos/[id]/evals/dataset/DatasetDetail/index.tsx +2 -2
- package/src/app/[variants]/(main)/repos/[id]/evals/dataset/EmptyGuide/index.tsx +1 -1
- package/src/app/[variants]/(main)/repos/[id]/evals/evaluation/CreateEvaluation/CreateForm.tsx +45 -49
- package/src/app/[variants]/(main)/repos/[id]/evals/evaluation/CreateEvaluation/index.tsx +1 -1
- package/src/app/[variants]/(main)/repos/[id]/evals/evaluation/CreateEvaluation/useModal.tsx +1 -1
- package/src/app/[variants]/(main)/repos/[id]/evals/evaluation/EvaluationList/index.tsx +2 -2
- package/src/app/[variants]/(main)/settings/@category/features/CategoryContent.tsx +1 -1
- package/src/app/[variants]/(main)/settings/@category/features/UpgradeAlert.tsx +1 -2
- package/src/app/[variants]/(main)/settings/_layout/Desktop/Header.tsx +4 -3
- package/src/app/[variants]/(main)/settings/_layout/Desktop/SideBar.tsx +2 -2
- package/src/app/[variants]/(main)/settings/_layout/Desktop/index.tsx +10 -4
- package/src/app/[variants]/(main)/settings/_layout/Mobile/Header.tsx +4 -4
- package/src/app/[variants]/(main)/settings/about/features/Analytics.tsx +3 -5
- package/src/app/[variants]/(main)/settings/about/features/ItemCard.tsx +6 -26
- package/src/app/[variants]/(main)/settings/about/features/ItemLink.tsx +1 -5
- package/src/app/[variants]/(main)/settings/about/features/Version.tsx +15 -19
- package/src/app/[variants]/(main)/settings/about/index.tsx +1 -1
- package/src/app/[variants]/(main)/settings/agent/AgentMenu/index.tsx +49 -0
- package/src/app/[variants]/(main)/settings/agent/_layout/Desktop.tsx +20 -0
- package/src/app/[variants]/(main)/settings/agent/_layout/Mobile.tsx +14 -0
- package/src/app/[variants]/(main)/settings/agent/index.tsx +7 -0
- package/src/app/[variants]/(main)/settings/agent/layout.tsx +23 -0
- package/src/app/[variants]/(main)/settings/common/features/Common.tsx +6 -8
- package/src/app/[variants]/(main)/settings/common/features/Theme/ThemeSwatches/ThemeSwatchesNeutral.tsx +33 -11
- package/src/app/[variants]/(main)/settings/common/features/Theme/ThemeSwatches/ThemeSwatchesPrimary.tsx +60 -11
- package/src/app/[variants]/(main)/settings/common/features/Theme/index.tsx +5 -7
- package/src/app/[variants]/(main)/settings/features/UpgradeAlert.tsx +1 -2
- package/src/app/[variants]/(main)/settings/hooks/useCategory.tsx +1 -2
- package/src/app/[variants]/(main)/settings/hotkey/features/HotkeySetting.tsx +4 -6
- package/src/app/[variants]/(main)/settings/llm/ProviderList/Azure/index.tsx +2 -6
- package/src/app/[variants]/(main)/settings/llm/ProviderList/Bedrock/index.tsx +4 -4
- package/src/app/[variants]/(main)/settings/llm/ProviderList/Cloudflare/index.tsx +2 -2
- package/src/app/[variants]/(main)/settings/llm/ProviderList/Github/index.tsx +2 -3
- package/src/app/[variants]/(main)/settings/llm/ProviderList/HuggingFace/index.tsx +2 -3
- package/src/app/[variants]/(main)/settings/llm/components/Checker.tsx +2 -3
- package/src/app/[variants]/(main)/settings/llm/components/ProviderConfig/index.tsx +12 -4
- package/src/app/[variants]/(main)/settings/llm/components/ProviderModelList/ModelConfigModal/Form.tsx +2 -1
- package/src/app/[variants]/(main)/settings/llm/components/ProviderModelList/ModelConfigModal/index.tsx +2 -3
- package/src/app/[variants]/(main)/settings/llm/components/ProviderModelList/index.tsx +2 -3
- package/src/app/[variants]/(main)/settings/provider/(detail)/azure/page.tsx +1 -2
- package/src/app/[variants]/(main)/settings/provider/(detail)/bedrock/page.tsx +1 -1
- package/src/app/[variants]/(main)/settings/provider/(detail)/doubao/page.tsx +6 -7
- package/src/app/[variants]/(main)/settings/provider/(detail)/ollama/OllamaModelDownloader/index.tsx +0 -0
- package/src/app/[variants]/(main)/settings/provider/(list)/ProviderGrid/Card.tsx +10 -2
- package/src/app/[variants]/(main)/settings/provider/(list)/ProviderGrid/EnableSwitch.tsx +1 -1
- package/src/app/[variants]/(main)/settings/provider/(list)/ProviderGrid/index.tsx +16 -42
- package/src/app/[variants]/(main)/settings/provider/ProviderMenu/AddNew.tsx +10 -7
- package/src/app/[variants]/(main)/settings/provider/ProviderMenu/All.tsx +1 -1
- package/src/app/[variants]/(main)/settings/provider/ProviderMenu/List.tsx +3 -3
- package/src/app/[variants]/(main)/settings/provider/ProviderMenu/SortProviderModal/index.tsx +2 -2
- package/src/app/[variants]/(main)/settings/provider/ProviderMenu/index.tsx +16 -4
- package/src/app/[variants]/(main)/settings/provider/_layout/Desktop/Container.tsx +13 -0
- package/src/app/[variants]/(main)/settings/provider/_layout/Desktop/index.tsx +20 -0
- package/src/app/[variants]/(main)/settings/provider/features/CreateNewProvider/index.tsx +14 -7
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/CreateNewModelModal/Form.tsx +2 -1
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/CreateNewModelModal/index.tsx +2 -2
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/DisabledModels.tsx +3 -5
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/EmptyModels.tsx +2 -3
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelConfigModal/index.tsx +2 -3
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelItem.tsx +1 -1
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelTitle/Search.tsx +5 -17
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelTitle/index.tsx +6 -6
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/SortModelModal/index.tsx +2 -2
- package/src/app/[variants]/(main)/settings/provider/features/ProviderConfig/Checker.tsx +5 -6
- package/src/app/[variants]/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/SettingModal.tsx +3 -4
- package/src/app/[variants]/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/index.tsx +3 -5
- package/src/app/[variants]/(main)/settings/provider/features/ProviderConfig/index.tsx +10 -3
- package/src/app/[variants]/(main)/settings/storage/Advanced.tsx +5 -5
- package/src/app/[variants]/(main)/settings/sync/features/DeviceInfo/DeviceName.tsx +4 -4
- package/src/app/[variants]/(main)/settings/sync/features/WebRTC/ChannelNameInput.tsx +1 -2
- package/src/app/[variants]/(main)/settings/sync/features/WebRTC/SyncSwitch/index.css +2 -1
- package/src/app/[variants]/(main)/settings/sync/features/WebRTC/index.tsx +5 -7
- package/src/app/[variants]/(main)/settings/system-agent/features/createForm.tsx +4 -7
- package/src/app/[variants]/(main)/settings/tts/features/OpenAI.tsx +4 -6
- package/src/app/[variants]/(main)/settings/tts/features/STT.tsx +5 -6
- package/src/app/[variants]/(main)/settings/tts/features/const.tsx +1 -1
- package/src/app/[variants]/@modal/(.)changelog/modal/features/ReadDetail.tsx +8 -30
- package/src/app/[variants]/loading/Client/Error.tsx +1 -1
- package/src/app/[variants]/oauth/consent/[uid]/Consent.tsx +3 -2
- package/src/app/[variants]/oauth/consent/[uid]/Login.tsx +2 -2
- package/src/app/[variants]/oauth/consent/[uid]/failed/page.tsx +2 -2
- package/src/app/desktop/devtools/page.tsx +5 -4
- package/src/components/404/index.tsx +1 -2
- package/src/components/Cell/index.tsx +2 -2
- package/src/components/DragUpload/index.tsx +4 -4
- package/src/components/Error/index.tsx +1 -2
- package/src/components/FeatureList/index.tsx +1 -1
- package/src/components/FileIcon/index.tsx +1 -1
- package/src/components/FileParsingStatus/EmbeddingStatus.tsx +1 -2
- package/src/components/FileParsingStatus/index.tsx +2 -2
- package/src/components/FormInput/FormInput.tsx +2 -2
- package/src/components/FormInput/FormPassword.tsx +3 -3
- package/src/components/FunctionModal/style.tsx +5 -1
- package/src/components/GroupIcon/index.tsx +1 -1
- package/src/components/IndexCard/index.tsx +2 -2
- package/src/components/MaxTokenSlider.tsx +3 -3
- package/src/components/Menu/index.tsx +5 -6
- package/src/components/ModelSelect/index.tsx +34 -56
- package/src/components/NextAuth/AuthIcons.tsx +3 -3
- package/src/components/Notification/index.tsx +2 -1
- package/src/components/OllamaSetupGuide/index.tsx +2 -2
- package/src/components/RepoIcon/index.tsx +1 -8
- package/src/components/SafeSpacing/index.tsx +3 -3
- package/src/components/SidebarHeader/index.tsx +6 -6
- package/src/components/StatisticCard/TitleWithPercentage.tsx +2 -1
- package/src/components/StatisticCard/index.tsx +4 -4
- package/src/components/TextArea/index.tsx +3 -3
- package/src/components/mdx/Image.tsx +1 -2
- package/src/config/aiModels/ai21.ts +2 -4
- package/src/config/aiModels/ai360.ts +4 -8
- package/src/config/aiModels/azure.ts +1 -2
- package/src/config/aiModels/azureai.ts +1 -2
- package/src/config/aiModels/cohere.ts +33 -35
- package/src/config/aiModels/doubao.ts +56 -56
- package/src/config/aiModels/fireworksai.ts +3 -5
- package/src/config/aiModels/giteeai.ts +1 -1
- package/src/config/aiModels/groq.ts +8 -4
- package/src/config/aiModels/hunyuan.ts +7 -5
- package/src/config/aiModels/minimax.ts +4 -2
- package/src/config/aiModels/mistral.ts +2 -1
- package/src/config/aiModels/moonshot.ts +2 -2
- package/src/config/aiModels/novita.ts +3 -3
- package/src/config/aiModels/nvidia.ts +22 -20
- package/src/config/aiModels/openai.ts +2 -4
- package/src/config/aiModels/openrouter.ts +5 -10
- package/src/config/aiModels/perplexity.ts +1 -2
- package/src/config/aiModels/ppio.ts +210 -193
- package/src/config/aiModels/qwen.ts +8 -4
- package/src/config/aiModels/sambanova.ts +39 -34
- package/src/config/aiModels/siliconcloud.ts +50 -50
- package/src/config/aiModels/stepfun.ts +6 -4
- package/src/config/aiModels/taichu.ts +12 -6
- package/src/config/aiModels/tencentcloud.ts +2 -2
- package/src/config/aiModels/togetherai.ts +10 -5
- package/src/config/aiModels/vllm.ts +11 -14
- package/src/config/aiModels/volcengine.ts +1 -2
- package/src/config/aiModels/wenxin.ts +8 -16
- package/src/config/aiModels/xai.ts +9 -4
- package/src/config/aiModels/xinference.ts +20 -25
- package/src/config/aiModels/zhipu.ts +3 -2
- package/src/config/modelProviders/ai360.ts +3 -6
- package/src/config/modelProviders/cohere.ts +2 -1
- package/src/config/modelProviders/deepseek.ts +2 -1
- package/src/config/modelProviders/doubao.ts +2 -1
- package/src/config/modelProviders/fireworksai.ts +2 -4
- package/src/config/modelProviders/giteeai.ts +1 -1
- package/src/config/modelProviders/index.ts +1 -1
- package/src/config/modelProviders/jina.ts +3 -2
- package/src/config/modelProviders/nvidia.ts +3 -2
- package/src/config/modelProviders/ppio.ts +249 -230
- package/src/config/modelProviders/siliconcloud.ts +38 -37
- package/src/config/modelProviders/stepfun.ts +1 -1
- package/src/config/modelProviders/vllm.ts +1 -1
- package/src/config/modelProviders/wenxin.ts +2 -4
- package/src/config/modelProviders/xinference.ts +2 -1
- package/src/config/modelProviders/zhipu.ts +1 -1
- package/src/const/hotkeys.ts +1 -1
- package/src/const/layoutTokens.test.ts +2 -2
- package/src/const/layoutTokens.ts +3 -3
- package/src/const/message.ts +1 -2
- package/src/features/AgentSetting/AgentCategory/index.tsx +29 -0
- package/src/{app/[variants]/(main)/chat/(workspace)/features/AgentSettings/CategoryContent → features/AgentSetting/AgentCategory}/useCategory.tsx +8 -6
- package/src/features/AgentSetting/AgentChat/index.tsx +32 -31
- package/src/features/AgentSetting/AgentMeta/AutoGenerateAvatar.tsx +26 -17
- package/src/features/AgentSetting/AgentMeta/AutoGenerateInput.tsx +2 -8
- package/src/features/AgentSetting/AgentMeta/AutoGenerateSelect.tsx +6 -8
- package/src/features/AgentSetting/AgentMeta/BackgroundSwatches.tsx +73 -13
- package/src/features/AgentSetting/AgentMeta/index.tsx +42 -45
- package/src/features/AgentSetting/AgentModal/index.tsx +39 -20
- package/src/features/AgentSetting/AgentOpening/OpeningMessage.tsx +3 -3
- package/src/features/AgentSetting/AgentOpening/OpeningQuestions.tsx +43 -41
- package/src/features/AgentSetting/AgentOpening/index.tsx +1 -1
- package/src/features/AgentSetting/AgentPlugin/AddPluginButton.tsx +2 -3
- package/src/features/AgentSetting/AgentPlugin/index.tsx +12 -11
- package/src/features/AgentSetting/AgentPrompt/TokenTag.tsx +12 -29
- package/src/features/AgentSetting/AgentPrompt/index.tsx +48 -147
- package/src/features/AgentSetting/AgentSettings.tsx +22 -18
- package/src/features/AgentSetting/AgentSettingsContent.tsx +39 -0
- package/src/features/AgentSetting/AgentTTS/SelectWithTTSPreview.tsx +8 -5
- package/src/features/AgentSetting/AgentTTS/index.tsx +27 -28
- package/src/features/AgentSetting/AgentTTS/options.tsx +1 -1
- package/src/features/AgentSetting/index.tsx +2 -1
- package/src/features/AgentSetting/store/action.ts +24 -24
- package/src/features/AgentSetting/store/index.ts +2 -0
- package/src/features/AgentSetting/store/initialState.ts +6 -7
- package/src/features/AgentSetting/store/selectors.ts +19 -1
- package/src/features/AlertBanner/CloudBanner.tsx +1 -2
- package/src/features/ChatInput/ActionBar/Clear.tsx +7 -5
- package/src/features/ChatInput/ActionBar/History.tsx +37 -35
- package/src/features/ChatInput/ActionBar/Knowledge/Dropdown.tsx +30 -60
- package/src/features/ChatInput/ActionBar/Knowledge/index.tsx +17 -13
- package/src/features/ChatInput/ActionBar/Model/ControlsForm.tsx +2 -1
- package/src/features/ChatInput/ActionBar/Model/ReasoningTokenSlider.tsx +3 -3
- package/src/features/ChatInput/ActionBar/Model/index.tsx +12 -38
- package/src/features/ChatInput/ActionBar/Params/ParamsControls.tsx +3 -17
- package/src/features/ChatInput/ActionBar/Params/index.tsx +10 -28
- package/src/features/ChatInput/ActionBar/Search/FCSearchModel.tsx +15 -4
- package/src/features/ChatInput/ActionBar/Search/FunctionCallingModelSelect/index.tsx +4 -3
- package/src/features/ChatInput/ActionBar/Search/ModelBuiltinSearch.tsx +5 -7
- package/src/features/ChatInput/ActionBar/Search/SwitchPanel.tsx +49 -60
- package/src/features/ChatInput/ActionBar/Search/index.tsx +25 -36
- package/src/features/ChatInput/ActionBar/Token/TokenTag.tsx +7 -6
- package/src/features/ChatInput/ActionBar/Tools/Dropdown.tsx +75 -77
- package/src/features/ChatInput/ActionBar/Tools/ToolItem.tsx +4 -30
- package/src/features/ChatInput/ActionBar/Tools/index.tsx +5 -3
- package/src/features/ChatInput/ActionBar/Upload/ClientMode.tsx +6 -4
- package/src/features/ChatInput/ActionBar/Upload/ServerMode.tsx +16 -8
- package/src/features/ChatInput/ActionBar/index.tsx +2 -2
- package/src/features/ChatInput/ActionBar/styles.ts +14 -0
- package/src/features/ChatInput/Desktop/InputArea/index.tsx +2 -2
- package/src/features/ChatInput/Desktop/index.tsx +1 -1
- package/src/features/ChatInput/STT/common.tsx +10 -5
- package/src/features/ChatInput/Topic/index.tsx +3 -8
- package/src/features/ChatInput/components/ActionDropdown.tsx +62 -0
- package/src/features/ChatInput/components/ActionPopover.tsx +84 -0
- package/src/features/ChatInput/components/UploadDetail/UploadStatus.tsx +1 -1
- package/src/features/Conversation/Actions/Assistant.tsx +5 -14
- package/src/features/Conversation/Actions/Error.tsx +3 -3
- package/src/features/Conversation/Actions/Fallback.tsx +8 -2
- package/src/features/Conversation/Actions/Tool.tsx +0 -1
- package/src/features/Conversation/Actions/User.tsx +6 -4
- package/src/features/Conversation/Actions/customAction.ts +3 -3
- package/src/features/Conversation/Error/APIKeyForm/Bedrock.tsx +8 -9
- package/src/features/Conversation/Error/APIKeyForm/ProviderApiKeyForm.tsx +1 -2
- package/src/features/Conversation/Error/APIKeyForm/index.tsx +1 -1
- package/src/features/Conversation/Error/AccessCodeForm.tsx +3 -3
- package/src/features/Conversation/Error/ClerkLogin/index.tsx +1 -1
- package/src/features/Conversation/Error/ErrorJsonViewer.tsx +1 -1
- package/src/features/Conversation/Error/InvalidAccessCode.tsx +2 -2
- package/src/features/Conversation/Error/OAuthForm.tsx +2 -2
- package/src/features/Conversation/Error/OllamaBizError/InvalidOllamaModel.tsx +1 -1
- package/src/features/Conversation/Error/OllamaDesktopSetupGuide/index.tsx +1 -1
- package/src/features/Conversation/Extras/TTS/Player.tsx +2 -3
- package/src/features/Conversation/Extras/Usage/UsageDetail/ModelCard.tsx +1 -2
- package/src/features/Conversation/Extras/Usage/UsageDetail/TokenProgress.tsx +0 -1
- package/src/features/Conversation/Messages/Assistant/FileChunks/Item/index.tsx +1 -1
- package/src/features/Conversation/Messages/Assistant/Tool/Inspector/ToolTitle.tsx +1 -1
- package/src/features/Conversation/Messages/Assistant/Tool/Render/ErrorResponse.tsx +1 -1
- package/src/features/Conversation/Messages/Assistant/Tool/Render/KeyValueEditor.tsx +2 -2
- package/src/features/Conversation/Messages/Assistant/Tool/Render/PluginSettings.tsx +2 -2
- package/src/features/Conversation/Messages/User/ImageFileListViewer.tsx +3 -3
- package/src/features/Conversation/Messages/User/MarkdownRender/ContentPreview.tsx +4 -29
- package/src/features/Conversation/components/BackBottom/index.tsx +1 -2
- package/src/features/Conversation/components/ChatItem/ActionsBar.tsx +5 -4
- package/src/features/Conversation/components/ChatItem/index.tsx +2 -2
- package/src/features/Conversation/components/History/index.tsx +1 -5
- package/src/features/Conversation/components/MarkdownElements/LobeArtifact/Render/Icon.tsx +5 -30
- package/src/features/Conversation/components/MarkdownElements/LocalFile/Render/LocalFile.tsx +1 -1
- package/src/features/Conversation/components/VirtualizedList/index.tsx +1 -6
- package/src/features/Conversation/hooks/useChatListActionsBar.tsx +7 -7
- package/src/features/Conversation/types/index.tsx +3 -3
- package/src/features/DataImporter/Error.tsx +3 -3
- package/src/features/DataImporter/ImportDetail.tsx +2 -2
- package/src/features/DataImporter/SuccessResult.tsx +2 -2
- package/src/features/DevPanel/FeatureFlagViewer/Form.tsx +1 -1
- package/src/features/DevPanel/MetadataViewer/Ld.tsx +1 -1
- package/src/features/DevPanel/MetadataViewer/MetaData.tsx +3 -4
- package/src/features/DevPanel/MetadataViewer/Og.tsx +3 -4
- package/src/features/DevPanel/MetadataViewer/index.tsx +3 -3
- package/src/features/DevPanel/PostgresViewer/SchemaSidebar/Columns.tsx +1 -1
- package/src/features/DevPanel/SystemInspector/index.tsx +3 -3
- package/src/features/DevPanel/features/FloatPanel.tsx +5 -4
- package/src/features/DevPanel/features/Header.tsx +1 -5
- package/src/features/DevPanel/features/Table/TooltipContent.tsx +1 -1
- package/src/features/ElectronTitlebar/Connection/ConnectionMode.tsx +1 -2
- package/src/features/ElectronTitlebar/Connection/RemoteStatus.tsx +8 -9
- package/src/features/ElectronTitlebar/Connection/Waiting.tsx +3 -3
- package/src/features/ElectronTitlebar/UpdateModal.tsx +2 -1
- package/src/features/ElectronTitlebar/UpdateNotification.tsx +2 -2
- package/src/features/FileManager/ChunkDrawer/Content.tsx +1 -0
- package/src/features/FileManager/ChunkDrawer/SimilaritySearchList/Item.tsx +1 -1
- package/src/features/FileManager/FileList/FileListItem/DropdownMenu.tsx +2 -2
- package/src/features/FileManager/FileList/FileListItem/index.tsx +5 -3
- package/src/features/FileManager/FileList/FileSkeleton.tsx +1 -1
- package/src/features/FileManager/FileList/ToolBar/Config.tsx +3 -2
- package/src/features/FileManager/FileList/ToolBar/MultiSelectActions.tsx +11 -3
- package/src/features/FileManager/FileList/index.tsx +1 -1
- package/src/features/FileManager/Header/FilesSearchBar.tsx +3 -8
- package/src/features/FileManager/Header/TogglePanelButton.tsx +42 -0
- package/src/features/FileManager/Header/UploadFileButton.tsx +4 -4
- package/src/features/FileManager/Header/index.tsx +14 -26
- package/src/features/FileManager/index.tsx +0 -1
- package/src/features/FileSidePanel/index.tsx +1 -1
- package/src/features/FileViewer/NotSupport/index.tsx +1 -2
- package/src/features/FileViewer/Renderer/TXT/index.tsx +6 -1
- package/src/features/HotkeyHelperPanel/index.tsx +3 -3
- package/src/features/InitClientDB/EnableModal.tsx +2 -3
- package/src/features/InitClientDB/ErrorResult.tsx +4 -4
- package/src/features/InitClientDB/features/DatabaseRepair/Backup.tsx +3 -3
- package/src/features/InitClientDB/features/DatabaseRepair/Diagnosis.tsx +2 -2
- package/src/features/InitClientDB/features/DatabaseRepair/Repair.tsx +2 -2
- package/src/features/InitClientDB/features/DatabaseRepair/index.tsx +12 -6
- package/src/features/KnowledgeBaseModal/AddFilesToKnowledgeBase/SelectForm.tsx +45 -62
- package/src/features/KnowledgeBaseModal/AddFilesToKnowledgeBase/index.tsx +1 -1
- package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/Item/Action.tsx +1 -2
- package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/List.tsx +1 -1
- package/src/features/KnowledgeBaseModal/CreateNew/CreateForm.tsx +28 -38
- package/src/features/KnowledgeBaseModal/CreateNew/index.tsx +1 -1
- package/src/features/MobileSwitchLoading/index.tsx +1 -1
- package/src/features/MobileTabBar/index.tsx +5 -4
- package/src/features/ModelParamsControl/Temperature.tsx +1 -1
- package/src/features/ModelSelect/index.tsx +14 -4
- package/src/features/ModelSwitchPanel/index.tsx +4 -13
- package/src/features/OllamaModelDownloader/index.tsx +2 -2
- package/src/features/PluginDetailModal/Meta.tsx +13 -41
- package/src/features/PluginDetailModal/index.tsx +34 -30
- package/src/features/PluginDevModal/LocalForm.tsx +1 -0
- package/src/features/PluginDevModal/MCPManifestForm/ArgsInput.tsx +1 -1
- package/src/features/PluginDevModal/MCPManifestForm/MCPTypeSelect.tsx +3 -3
- package/src/features/PluginDevModal/MCPManifestForm/index.tsx +24 -24
- package/src/features/PluginDevModal/PluginPreview.tsx +14 -17
- package/src/features/PluginDevModal/UrlManifestForm.tsx +1 -1
- package/src/features/PluginDevModal/index.tsx +3 -2
- package/src/features/PluginSettings/PluginSettingRender.tsx +11 -43
- package/src/features/PluginSettings/index.tsx +38 -25
- package/src/features/PluginStore/AddPluginButton.tsx +2 -3
- package/src/features/PluginStore/InstalledPluginList.tsx +1 -3
- package/src/features/PluginStore/OnlineList.tsx +2 -4
- package/src/features/PluginStore/PluginItem/Action.tsx +2 -2
- package/src/features/PluginStore/PluginItem/PluginAvatar.tsx +8 -2
- package/src/features/PluginStore/PluginItem/PluginTag.tsx +2 -31
- package/src/features/PluginStore/index.tsx +2 -2
- package/src/features/PluginTag/PluginStatus.tsx +2 -2
- package/src/features/PluginTag/index.tsx +1 -3
- package/src/features/PluginsUI/Render/DefaultType/SystemJsRender/utils.ts +0 -1
- package/src/features/Portal/Artifacts/Body/Renderer/SVG.tsx +4 -4
- package/src/features/Portal/Artifacts/Body/Renderer/index.tsx +1 -1
- package/src/features/Portal/Artifacts/Body/index.tsx +6 -3
- package/src/features/Portal/Artifacts/Header.tsx +11 -6
- package/src/features/Portal/FilePreview/Body/index.tsx +20 -7
- package/src/features/Portal/Plugins/Header.tsx +1 -1
- package/src/features/Portal/Thread/Chat/ChatInput/Footer.tsx +2 -2
- package/src/features/Portal/Thread/Header/Active.tsx +12 -6
- package/src/features/Portal/Thread/Header/New.tsx +13 -12
- package/src/features/Portal/Thread/Header/index.tsx +10 -3
- package/src/features/Setting/SettingContainer.tsx +12 -19
- package/src/features/ShareModal/ShareImage/Preview.tsx +2 -1
- package/src/features/ShareModal/ShareImage/index.tsx +8 -11
- package/src/features/ShareModal/ShareJSON/Preview.tsx +1 -1
- package/src/features/ShareModal/ShareJSON/index.tsx +6 -5
- package/src/features/ShareModal/ShareText/index.tsx +8 -5
- package/src/features/ShareModal/index.tsx +2 -3
- package/src/features/SyncStatusInspector/DisableSync.tsx +2 -2
- package/src/features/SyncStatusInspector/EnableSync.tsx +3 -3
- package/src/features/SyncStatusInspector/EnableTag.tsx +2 -2
- package/src/features/User/PlanTag.tsx +1 -2
- package/src/features/User/UserAvatar.tsx +1 -1
- package/src/features/User/UserLoginOrSignup/Community.tsx +1 -1
- package/src/features/User/UserPanel/LangButton.tsx +1 -1
- package/src/features/User/UserPanel/ThemeButton.tsx +1 -1
- package/src/features/User/UserPanel/useMenu.tsx +2 -1
- package/src/hooks/useHotkeys/filesScope.ts +37 -0
- package/src/hooks/useHotkeys/index.ts +1 -0
- package/src/hooks/useScreenshot.ts +1 -1
- package/src/layout/GlobalProvider/Locale.tsx +41 -1
- package/src/layout/GlobalProvider/index.tsx +12 -12
- package/src/libs/agent-runtime/ai360/index.ts +24 -31
- package/src/libs/agent-runtime/baichuan/index.ts +20 -20
- package/src/libs/agent-runtime/cohere/index.ts +10 -11
- package/src/libs/agent-runtime/deepseek/index.ts +25 -17
- package/src/libs/agent-runtime/fireworksai/index.ts +11 -14
- package/src/libs/agent-runtime/giteeai/index.ts +19 -25
- package/src/libs/agent-runtime/groq/index.ts +14 -16
- package/src/libs/agent-runtime/higress/index.ts +17 -17
- package/src/libs/agent-runtime/huggingface/index.ts +19 -23
- package/src/libs/agent-runtime/hunyuan/index.test.ts +40 -40
- package/src/libs/agent-runtime/hunyuan/index.ts +16 -21
- package/src/libs/agent-runtime/internlm/index.ts +9 -13
- package/src/libs/agent-runtime/jina/index.ts +12 -16
- package/src/libs/agent-runtime/lmstudio/index.ts +9 -13
- package/src/libs/agent-runtime/minimax/index.ts +3 -3
- package/src/libs/agent-runtime/moonshot/index.ts +26 -30
- package/src/libs/agent-runtime/novita/index.ts +17 -17
- package/src/libs/agent-runtime/nvidia/index.ts +9 -13
- package/src/libs/agent-runtime/ppio/fixtures/models.json +4 -10
- package/src/libs/agent-runtime/ppio/index.ts +19 -14
- package/src/libs/agent-runtime/siliconcloud/index.ts +19 -19
- package/src/libs/agent-runtime/spark/index.ts +1 -2
- package/src/libs/agent-runtime/stepfun/index.ts +29 -36
- package/src/libs/agent-runtime/tencentcloud/index.ts +12 -16
- package/src/libs/agent-runtime/utils/cloudflareHelpers.ts +1 -6
- package/src/libs/agent-runtime/utils/streams/openai.test.ts +0 -1
- package/src/libs/agent-runtime/vllm/index.ts +9 -13
- package/src/libs/agent-runtime/wenxin/index.test.ts +26 -18
- package/src/libs/agent-runtime/wenxin/index.ts +1 -1
- package/src/libs/agent-runtime/xai/index.ts +11 -13
- package/src/libs/agent-runtime/xinference/index.ts +15 -13
- package/src/libs/agent-runtime/zeroone/index.ts +9 -13
- package/src/libs/agent-runtime/zhipu/index.ts +33 -30
- package/src/libs/langchain/loaders/epub/index.ts +3 -2
- package/src/libs/langchain/loaders/index.ts +1 -1
- package/src/libs/swr/index.ts +8 -1
- package/src/locales/default/color.ts +22 -0
- package/src/locales/default/common.ts +2 -2
- package/src/locales/default/file.ts +3 -0
- package/src/locales/default/index.ts +2 -0
- package/src/locales/default/setting.ts +15 -2
- package/src/server/modules/ContentChunk/rules.test.ts +1 -0
- package/src/server/utils/tempFileManager.ts +1 -1
- package/src/services/message/type.ts +2 -1
- package/src/services/plugin/client.test.ts +3 -1
- package/src/store/agent/selectors.ts +1 -1
- package/src/store/aiInfra/index.ts +1 -1
- package/src/store/chat/slices/builtinTool/actions/dalle.ts +0 -2
- package/src/store/chat/slices/portal/initialState.ts +7 -2
- package/src/store/electron/actions/sync.ts +4 -7
- package/src/store/session/index.ts +1 -1
- package/src/tools/dalle/Render/Item/EditMode.tsx +3 -3
- package/src/tools/dalle/Render/Item/Error.tsx +3 -4
- package/src/tools/dalle/Render/Item/index.tsx +1 -1
- package/src/tools/dalle/Render/ToolBar.tsx +2 -1
- package/src/tools/dalle/Render/index.tsx +4 -3
- package/src/tools/local-files/Render/ListFiles/index.tsx +1 -1
- package/src/tools/local-files/Render/ReadLocalFile/ReadFileView.tsx +1 -1
- package/src/tools/local-files/Render/SearchFiles/SearchQuery/index.tsx +5 -6
- package/src/tools/local-files/components/FileItem.tsx +1 -1
- package/src/tools/web-browsing/Portal/PageContent/index.tsx +14 -8
- package/src/tools/web-browsing/Portal/Search/Footer.tsx +2 -3
- package/src/tools/web-browsing/Portal/Search/ResultList/SearchItem/TitleExtra.tsx +2 -2
- package/src/tools/web-browsing/Render/Search/ConfigForm/Form.tsx +2 -3
- package/src/tools/web-browsing/Render/Search/ConfigForm/index.tsx +1 -1
- package/src/tools/web-browsing/Render/Search/SearchResult/index.tsx +3 -3
- package/src/tools/web-browsing/Render/Search/index.tsx +1 -1
- package/src/tools/web-browsing/components/SearchBar.tsx +3 -8
- package/src/types/hotkey.ts +1 -0
- package/apps/desktop/README.md +0 -6
- package/src/app/[variants]/(main)/changelog/_layout/Desktop.tsx +0 -25
- package/src/app/[variants]/(main)/chat/(workspace)/features/AgentSettings/CategoryContent/index.tsx +0 -37
- package/src/app/[variants]/(main)/discover/features/ModelFeatureTags.tsx +0 -86
- package/src/app/[variants]/(main)/settings/provider/_layout/Desktop.tsx +0 -37
- package/src/features/AgentSetting/useSyncAgemtSettings.ts +0 -14
- package/src/features/ChatInput/ActionBar/Search/ExaIcon.tsx +0 -15
package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/SystemRole/SystemRoleContent.tsx
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
'use client';
|
2
2
|
|
3
|
-
import { ActionIcon } from '@lobehub/ui';
|
3
|
+
import { ActionIcon, ScrollShadow } from '@lobehub/ui';
|
4
4
|
import { EditableMessage } from '@lobehub/ui/chat';
|
5
5
|
import { Skeleton } from 'antd';
|
6
6
|
import { Edit } from 'lucide-react';
|
@@ -86,13 +86,15 @@ const SystemRole = memo(() => {
|
|
86
86
|
style={{ cursor: 'pointer' }}
|
87
87
|
title={t('settingAgent.prompt.title', { ns: 'setting' })}
|
88
88
|
/>
|
89
|
-
<
|
89
|
+
<ScrollShadow
|
90
90
|
className={cx(styles.promptBox, styles.animatedContainer)}
|
91
91
|
height={expanded ? 200 : 0}
|
92
92
|
onClick={handleOpen}
|
93
93
|
onDoubleClick={(e) => {
|
94
94
|
if (e.altKey) handleOpenWithEdit(e);
|
95
95
|
}}
|
96
|
+
paddingInline={16}
|
97
|
+
size={25}
|
96
98
|
style={{
|
97
99
|
opacity: expanded ? 1 : 0,
|
98
100
|
overflow: 'hidden',
|
@@ -100,50 +102,42 @@ const SystemRole = memo(() => {
|
|
100
102
|
}}
|
101
103
|
>
|
102
104
|
{isLoading ? (
|
103
|
-
<Skeleton
|
104
|
-
active
|
105
|
-
avatar={false}
|
106
|
-
style={{ marginTop: 12, paddingInline: 16 }}
|
107
|
-
title={false}
|
108
|
-
/>
|
105
|
+
<Skeleton active avatar={false} title={false} />
|
109
106
|
) : (
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
/>
|
143
|
-
<div className={styles.promptMask} />
|
144
|
-
</>
|
107
|
+
<EditableMessage
|
108
|
+
classNames={{ markdown: styles.prompt }}
|
109
|
+
editing={editing}
|
110
|
+
model={{
|
111
|
+
extra: (
|
112
|
+
<AgentInfo
|
113
|
+
meta={meta}
|
114
|
+
onAvatarClick={() => {
|
115
|
+
setOpen(false);
|
116
|
+
setEditing(false);
|
117
|
+
openChatSettings();
|
118
|
+
}}
|
119
|
+
style={{ marginBottom: 16 }}
|
120
|
+
/>
|
121
|
+
),
|
122
|
+
}}
|
123
|
+
onChange={(e) => {
|
124
|
+
updateAgentConfig({ systemRole: e });
|
125
|
+
}}
|
126
|
+
onEditingChange={setEditing}
|
127
|
+
onOpenChange={setOpen}
|
128
|
+
openModal={open}
|
129
|
+
placeholder={`${t('settingAgent.prompt.placeholder', { ns: 'setting' })}...`}
|
130
|
+
styles={{ markdown: { opacity: systemRole ? undefined : 0.5, overflow: 'visible' } }}
|
131
|
+
text={{
|
132
|
+
cancel: t('cancel'),
|
133
|
+
confirm: t('ok'),
|
134
|
+
edit: t('edit'),
|
135
|
+
title: t('settingAgent.prompt.title', { ns: 'setting' }),
|
136
|
+
}}
|
137
|
+
value={systemRole}
|
138
|
+
/>
|
145
139
|
)}
|
146
|
-
</
|
140
|
+
</ScrollShadow>
|
147
141
|
</Flexbox>
|
148
142
|
);
|
149
143
|
});
|
@@ -7,13 +7,7 @@ export const useStyles = createStyles(({ css, token }) => ({
|
|
7
7
|
opacity 0.3s ease;
|
8
8
|
`,
|
9
9
|
prompt: css`
|
10
|
-
overflow: hidden auto;
|
11
|
-
|
12
|
-
padding-block: 0 16px;
|
13
|
-
padding-inline: 16px;
|
14
|
-
|
15
10
|
opacity: 0.75;
|
16
|
-
|
17
11
|
transition: opacity 200ms ${token.motionEaseOut};
|
18
12
|
|
19
13
|
&:hover {
|
@@ -22,20 +16,6 @@ export const useStyles = createStyles(({ css, token }) => ({
|
|
22
16
|
`,
|
23
17
|
promptBox: css`
|
24
18
|
position: relative;
|
25
|
-
|
26
|
-
border-block-end: 1px solid ${token.colorBorder};
|
27
|
-
`,
|
28
|
-
promptMask: css`
|
29
|
-
pointer-events: none;
|
30
|
-
|
31
|
-
position: absolute;
|
32
|
-
z-index: 10;
|
33
|
-
inset-block-end: 0;
|
34
|
-
inset-inline-start: 0;
|
35
|
-
|
36
|
-
width: 100%;
|
37
|
-
height: 32px;
|
38
|
-
|
39
|
-
background: linear-gradient(to bottom, transparent, ${token.colorBgLayout});
|
19
|
+
border-block-end: 1px solid ${token.colorBorderSecondary};
|
40
20
|
`,
|
41
21
|
}));
|
@@ -12,8 +12,8 @@ const preformat = (id: string) =>
|
|
12
12
|
const useStyles = createStyles(({ css, token, responsive }) => ({
|
13
13
|
container: css`
|
14
14
|
color: ${token.colorTextQuaternary};
|
15
|
-
background: ${token.
|
16
|
-
box-shadow: 0 3px 4px -2px ${token.
|
15
|
+
background: ${token.colorBgContainerSecondary};
|
16
|
+
box-shadow: 0 3px 4px -2px ${token.colorBgContainerSecondary};
|
17
17
|
|
18
18
|
${responsive.mobile} {
|
19
19
|
background: ${token.colorBgContainer};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ActionIcon, EditableText, Icon } from '@lobehub/ui';
|
2
|
-
import { App,
|
1
|
+
import { ActionIcon, Dropdown, EditableText, Icon, type MenuProps } from '@lobehub/ui';
|
2
|
+
import { App, Typography } from 'antd';
|
3
3
|
import { createStyles } from 'antd-style';
|
4
4
|
import { MoreVertical, PencilLine, Trash } from 'lucide-react';
|
5
5
|
import { memo, useMemo } from 'react';
|
@@ -128,11 +128,7 @@ const Content = memo<TopicContentProps>(({ id, title, active, showMore }) => {
|
|
128
128
|
}}
|
129
129
|
onEditingChange={toggleEditing}
|
130
130
|
showEditIcon={false}
|
131
|
-
|
132
|
-
style={{
|
133
|
-
height: 28,
|
134
|
-
}}
|
135
|
-
type={'pure'}
|
131
|
+
style={{ height: 28 }}
|
136
132
|
value={title}
|
137
133
|
/>
|
138
134
|
)}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ActionIcon, EditableText, Icon } from '@lobehub/ui';
|
2
|
-
import { App,
|
1
|
+
import { ActionIcon, Dropdown, EditableText, Icon, type MenuProps } from '@lobehub/ui';
|
2
|
+
import { App, Typography } from 'antd';
|
3
3
|
import { createStyles } from 'antd-style';
|
4
4
|
import {
|
5
5
|
LucideCopy,
|
@@ -186,11 +186,7 @@ const TopicContent = memo<TopicContentProps>(({ id, title, fav, showMore }) => {
|
|
186
186
|
}}
|
187
187
|
onEditingChange={toggleEditing}
|
188
188
|
showEditIcon={false}
|
189
|
-
|
190
|
-
style={{
|
191
|
-
height: 28,
|
192
|
-
}}
|
193
|
-
type={'pure'}
|
189
|
+
style={{ height: 28 }}
|
194
190
|
value={title}
|
195
191
|
/>
|
196
192
|
)}
|
package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/TopicListContent/index.tsx
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
'use client';
|
2
2
|
|
3
|
-
import {
|
3
|
+
import { GuideCard } from '@lobehub/ui';
|
4
4
|
import { useThemeMode } from 'antd-style';
|
5
5
|
import React, { memo } from 'react';
|
6
6
|
import { useTranslation } from 'react-i18next';
|
@@ -48,16 +48,16 @@ const TopicListContent = memo(() => {
|
|
48
48
|
<>
|
49
49
|
{topicLength === 0 && visible && (
|
50
50
|
<Flexbox paddingInline={8}>
|
51
|
-
<
|
51
|
+
<GuideCard
|
52
52
|
alt={t('guide.desc')}
|
53
53
|
cover={imageUrl(`empty_topic_${isDarkMode ? 'dark' : 'light'}.webp`)}
|
54
|
-
|
55
|
-
height={120}
|
56
|
-
imageProps={{
|
54
|
+
coverProps={{
|
57
55
|
priority: true,
|
58
56
|
}}
|
59
|
-
|
60
|
-
|
57
|
+
desc={t('guide.desc')}
|
58
|
+
height={120}
|
59
|
+
onClose={() => {
|
60
|
+
updateGuideState({ topic: false });
|
61
61
|
}}
|
62
62
|
style={{ flex: 'none', marginBottom: 12 }}
|
63
63
|
title={t('guide.title')}
|
@@ -47,8 +47,8 @@ const TopicSearchBar = memo<{ onClear?: () => void }>(({ onClear }) => {
|
|
47
47
|
onPressEnter={startSearchTopic}
|
48
48
|
placeholder={t('searchPlaceholder')}
|
49
49
|
spotlight={!mobile}
|
50
|
-
type={mobile ? 'block' : 'ghost'}
|
51
50
|
value={tempValue}
|
51
|
+
variant={'filled'}
|
52
52
|
/>
|
53
53
|
);
|
54
54
|
});
|
package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/HeaderAction.tsx
CHANGED
@@ -17,7 +17,7 @@ import { HotkeyEnum } from '@/types/hotkey';
|
|
17
17
|
import SettingButton from '../../../features/SettingButton';
|
18
18
|
import ShareButton from '../../../features/ShareButton';
|
19
19
|
|
20
|
-
const HeaderAction = memo(() => {
|
20
|
+
const HeaderAction = memo<{ className?: string }>(({ className }) => {
|
21
21
|
const { t } = useTranslation('chat');
|
22
22
|
const hotkey = useUserStore(settingsSelectors.getHotkeyById(HotkeyEnum.ToggleRightPanel));
|
23
23
|
const [showAgentSettings, toggleConfig] = useGlobalStore((s) => [
|
@@ -28,7 +28,7 @@ const HeaderAction = memo(() => {
|
|
28
28
|
const { isAgentEditable } = useServerConfigStore(featureFlagsSelectors);
|
29
29
|
|
30
30
|
return (
|
31
|
-
<Flexbox gap={4} horizontal>
|
31
|
+
<Flexbox className={className} gap={4} horizontal>
|
32
32
|
<ShareButton />
|
33
33
|
<Tooltip hotkey={hotkey} title={t('toggleRightPanel.title', { ns: 'hotkey' })}>
|
34
34
|
<ActionIcon
|
@@ -1,25 +1,21 @@
|
|
1
1
|
'use client';
|
2
2
|
|
3
|
-
import {
|
3
|
+
import { Avatar } from '@lobehub/ui';
|
4
4
|
import { Skeleton } from 'antd';
|
5
5
|
import { createStyles } from 'antd-style';
|
6
|
-
import { PanelLeftClose, PanelLeftOpen } from 'lucide-react';
|
7
6
|
import { parseAsBoolean, useQueryState } from 'nuqs';
|
8
7
|
import { Suspense, memo } from 'react';
|
9
8
|
import { useTranslation } from 'react-i18next';
|
10
9
|
import { Flexbox } from 'react-layout-kit';
|
11
10
|
|
12
|
-
import { DESKTOP_HEADER_ICON_SIZE } from '@/const/layoutTokens';
|
13
11
|
import { useInitAgentConfig } from '@/hooks/useInitAgentConfig';
|
14
12
|
import { useOpenChatSettings } from '@/hooks/useInterceptingRoutes';
|
15
13
|
import { useGlobalStore } from '@/store/global';
|
16
14
|
import { systemStatusSelectors } from '@/store/global/selectors';
|
17
15
|
import { useSessionStore } from '@/store/session';
|
18
16
|
import { sessionMetaSelectors, sessionSelectors } from '@/store/session/selectors';
|
19
|
-
import { useUserStore } from '@/store/user';
|
20
|
-
import { settingsSelectors } from '@/store/user/selectors';
|
21
|
-
import { HotkeyEnum } from '@/types/hotkey';
|
22
17
|
|
18
|
+
import TogglePanelButton from '../../../../features/TogglePanelButton';
|
23
19
|
import Tags from './Tags';
|
24
20
|
|
25
21
|
const useStyles = createStyles(({ css }) => ({
|
@@ -44,9 +40,7 @@ const useStyles = createStyles(({ css }) => ({
|
|
44
40
|
`,
|
45
41
|
}));
|
46
42
|
|
47
|
-
const Main = memo(() => {
|
48
|
-
const hotkey = useUserStore(settingsSelectors.getHotkeyById(HotkeyEnum.ToggleLeftPanel));
|
49
|
-
|
43
|
+
const Main = memo<{ className?: string }>(({ className }) => {
|
50
44
|
const { t } = useTranslation(['chat', 'hotkey']);
|
51
45
|
const { styles } = useStyles();
|
52
46
|
useInitAgentConfig();
|
@@ -64,27 +58,11 @@ const Main = memo(() => {
|
|
64
58
|
|
65
59
|
const displayTitle = isInbox ? t('inbox.title') : title;
|
66
60
|
const showSessionPanel = useGlobalStore(systemStatusSelectors.showSessionPanel);
|
67
|
-
const updateSystemStatus = useGlobalStore((s) => s.updateSystemStatus);
|
68
|
-
|
69
|
-
const ToggleAction = (
|
70
|
-
<Tooltip hotkey={hotkey} title={t('toggleLeftPanel.title', { ns: 'hotkey' })}>
|
71
|
-
<ActionIcon
|
72
|
-
icon={showSessionPanel ? PanelLeftClose : PanelLeftOpen}
|
73
|
-
onClick={() => {
|
74
|
-
updateSystemStatus({
|
75
|
-
sessionsWidth: showSessionPanel ? 0 : 320,
|
76
|
-
showSessionPanel: !showSessionPanel,
|
77
|
-
});
|
78
|
-
}}
|
79
|
-
size={DESKTOP_HEADER_ICON_SIZE}
|
80
|
-
/>
|
81
|
-
</Tooltip>
|
82
|
-
);
|
83
61
|
|
84
62
|
if (!init)
|
85
63
|
return (
|
86
|
-
<Flexbox align={'center'} gap={8} horizontal>
|
87
|
-
{!isPinned &&
|
64
|
+
<Flexbox align={'center'} className={className} gap={8} horizontal>
|
65
|
+
{!isPinned && !showSessionPanel && <TogglePanelButton />}
|
88
66
|
<Skeleton
|
89
67
|
active
|
90
68
|
avatar={{ shape: 'circle', size: 28 }}
|
@@ -95,8 +73,8 @@ const Main = memo(() => {
|
|
95
73
|
);
|
96
74
|
|
97
75
|
return (
|
98
|
-
<Flexbox align={'center'} gap={
|
99
|
-
{!isPinned &&
|
76
|
+
<Flexbox align={'center'} className={className} gap={12} horizontal>
|
77
|
+
{!isPinned && !showSessionPanel && <TogglePanelButton />}
|
100
78
|
<Avatar
|
101
79
|
avatar={avatar}
|
102
80
|
background={backgroundColor}
|
@@ -112,7 +90,7 @@ const Main = memo(() => {
|
|
112
90
|
);
|
113
91
|
});
|
114
92
|
|
115
|
-
export default () => (
|
93
|
+
export default memo<{ className?: string }>(({ className }) => (
|
116
94
|
<Suspense
|
117
95
|
fallback={
|
118
96
|
<Skeleton
|
@@ -123,6 +101,6 @@ export default () => (
|
|
123
101
|
/>
|
124
102
|
}
|
125
103
|
>
|
126
|
-
<Main />
|
104
|
+
<Main className={className} />
|
127
105
|
</Suspense>
|
128
|
-
);
|
106
|
+
));
|
package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Tags/KnowledgeTag.tsx
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
'use client';
|
2
2
|
|
3
|
-
import { Icon, Tag } from '@lobehub/ui';
|
4
|
-
import { Dropdown, MenuProps } from 'antd';
|
3
|
+
import { Dropdown, Icon, type MenuProps, Tag } from '@lobehub/ui';
|
5
4
|
import { LibraryBig } from 'lucide-react';
|
6
5
|
import { memo } from 'react';
|
7
6
|
import { Flexbox } from 'react-layout-kit';
|
package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Tags/index.tsx
CHANGED
@@ -13,9 +13,9 @@ import { agentChatConfigSelectors, agentSelectors } from '@/store/agent/selector
|
|
13
13
|
import { useUserStore } from '@/store/user';
|
14
14
|
import { authSelectors } from '@/store/user/selectors';
|
15
15
|
|
16
|
+
import HistoryLimitTags from './HistoryLimitTags';
|
16
17
|
import KnowledgeTag from './KnowledgeTag';
|
17
18
|
import SearchTags from './SearchTags';
|
18
|
-
import HistoryLimitTags from './HistoryLimitTags';
|
19
19
|
|
20
20
|
const TitleTags = memo(() => {
|
21
21
|
const [model, provider, hasKnowledge, isLoading] = useAgentStore((s) => [
|
@@ -37,7 +37,7 @@ const TitleTags = memo(() => {
|
|
37
37
|
return isLoading && isLogin ? (
|
38
38
|
<Skeleton.Button active size={'small'} style={{ height: 20 }} />
|
39
39
|
) : (
|
40
|
-
<Flexbox align={'center'} horizontal>
|
40
|
+
<Flexbox align={'center'} gap={4} horizontal>
|
41
41
|
<ModelSwitchPanel>
|
42
42
|
<ModelTag model={model} />
|
43
43
|
</ModelSwitchPanel>
|
@@ -16,17 +16,9 @@ const Header = () => {
|
|
16
16
|
showHeader && (
|
17
17
|
<ChatHeader
|
18
18
|
className={electronStylish.draggable}
|
19
|
-
left={
|
20
|
-
|
21
|
-
|
22
|
-
</div>
|
23
|
-
}
|
24
|
-
right={
|
25
|
-
<div className={electronStylish.nodrag}>
|
26
|
-
<HeaderAction />
|
27
|
-
</div>
|
28
|
-
}
|
29
|
-
style={{ height: 48, minHeight: 48, paddingInline: 8, position: 'initial', zIndex: 11 }}
|
19
|
+
left={<Main className={electronStylish.nodrag} />}
|
20
|
+
right={<HeaderAction className={electronStylish.nodrag} />}
|
21
|
+
style={{ paddingInline: 8, position: 'initial', zIndex: 11 }}
|
30
22
|
/>
|
31
23
|
)
|
32
24
|
);
|
@@ -3,7 +3,6 @@
|
|
3
3
|
import { DraggablePanel, DraggablePanelContainer, type DraggablePanelProps } from '@lobehub/ui';
|
4
4
|
import { createStyles, useResponsive } from 'antd-style';
|
5
5
|
import isEqual from 'fast-deep-equal';
|
6
|
-
import { rgba } from 'polished';
|
7
6
|
import { PropsWithChildren, memo, useState } from 'react';
|
8
7
|
import { Flexbox } from 'react-layout-kit';
|
9
8
|
|
@@ -17,7 +16,7 @@ import { chatPortalSelectors, portalThreadSelectors } from '@/store/chat/selecto
|
|
17
16
|
import { useGlobalStore } from '@/store/global';
|
18
17
|
import { systemStatusSelectors } from '@/store/global/selectors';
|
19
18
|
|
20
|
-
const useStyles = createStyles(({ css, token
|
19
|
+
const useStyles = createStyles(({ css, token }) => ({
|
21
20
|
content: css`
|
22
21
|
display: flex;
|
23
22
|
flex-direction: column;
|
@@ -28,25 +27,18 @@ const useStyles = createStyles(({ css, token, isDarkMode }) => ({
|
|
28
27
|
height: 100%;
|
29
28
|
background: ${token.colorBgLayout};
|
30
29
|
`,
|
31
|
-
header: css`
|
32
|
-
border-block-end: 1px solid ${token.colorBorder};
|
33
|
-
`,
|
34
30
|
panel: css`
|
35
31
|
overflow: hidden;
|
36
32
|
height: 100%;
|
37
|
-
background: ${
|
38
|
-
`,
|
39
|
-
|
40
|
-
thread: css`
|
41
|
-
background: ${token.colorBgLayout};
|
33
|
+
background: ${token.colorBgContainerSecondary};
|
42
34
|
`,
|
43
35
|
}));
|
44
36
|
|
45
37
|
const PortalPanel = memo(({ children }: PropsWithChildren) => {
|
46
|
-
const { styles
|
38
|
+
const { styles } = useStyles();
|
47
39
|
const { md = true } = useResponsive();
|
48
40
|
|
49
|
-
const [
|
41
|
+
const [showPortal, showToolUI, showArtifactUI, showThread] = useChatStore((s) => [
|
50
42
|
chatPortalSelectors.showPortal(s),
|
51
43
|
chatPortalSelectors.showPluginUI(s),
|
52
44
|
chatPortalSelectors.showArtifactUI(s),
|
@@ -78,8 +70,7 @@ const PortalPanel = memo(({ children }: PropsWithChildren) => {
|
|
78
70
|
content: styles.content,
|
79
71
|
}}
|
80
72
|
defaultSize={{ width: tmpWidth }}
|
81
|
-
expand={
|
82
|
-
hanlderStyle={{ display: 'none' }}
|
73
|
+
expand={showPortal}
|
83
74
|
maxWidth={CHAT_PORTAL_MAX_WIDTH}
|
84
75
|
minWidth={
|
85
76
|
showArtifactUI || showToolUI || showThread ? CHAT_PORTAL_TOOL_UI_WIDTH : CHAT_PORTAL_WIDTH
|
@@ -87,9 +78,12 @@ const PortalPanel = memo(({ children }: PropsWithChildren) => {
|
|
87
78
|
mode={md ? 'fixed' : 'float'}
|
88
79
|
onSizeChange={handleSizeChange}
|
89
80
|
placement={'right'}
|
90
|
-
|
91
|
-
|
81
|
+
showHandleWhenCollapsed={false}
|
82
|
+
showHandleWideArea={false}
|
92
83
|
size={{ height: '100%', width: portalWidth }}
|
84
|
+
styles={{
|
85
|
+
handle: { display: 'none' },
|
86
|
+
}}
|
93
87
|
>
|
94
88
|
<DraggablePanelContainer
|
95
89
|
style={{
|
@@ -99,7 +93,7 @@ const PortalPanel = memo(({ children }: PropsWithChildren) => {
|
|
99
93
|
minWidth: CHAT_PORTAL_WIDTH,
|
100
94
|
}}
|
101
95
|
>
|
102
|
-
<Flexbox className={
|
96
|
+
<Flexbox className={styles.panel}>{children}</Flexbox>
|
103
97
|
</DraggablePanelContainer>
|
104
98
|
</DraggablePanel>
|
105
99
|
);
|
@@ -18,11 +18,10 @@ const useStyles = createStyles(({ css, token }) => ({
|
|
18
18
|
height: 100% !important;
|
19
19
|
`,
|
20
20
|
drawer: css`
|
21
|
-
z-index:
|
22
|
-
background: ${token.colorBgLayout};
|
21
|
+
z-index: 20;
|
23
22
|
`,
|
24
23
|
header: css`
|
25
|
-
border-block-end: 1px solid ${token.
|
24
|
+
border-block-end: 1px solid ${token.colorBorderSecondary};
|
26
25
|
`,
|
27
26
|
}));
|
28
27
|
|
@@ -59,7 +58,7 @@ const TopicPanel = memo(({ children }: PropsWithChildren) => {
|
|
59
58
|
mode={md ? 'fixed' : 'float'}
|
60
59
|
onExpandChange={handleExpand}
|
61
60
|
placement={'right'}
|
62
|
-
|
61
|
+
showHandleWideArea={false}
|
63
62
|
>
|
64
63
|
<DraggablePanelContainer
|
65
64
|
style={{
|
package/src/app/[variants]/(main)/chat/(workspace)/_layout/Mobile/ChatHeader/ChatHeaderTitle.tsx
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ActionIcon } from '@lobehub/ui';
|
2
|
-
import {
|
2
|
+
import { ChatHeader } from '@lobehub/ui/mobile';
|
3
3
|
import { useTheme } from 'antd-style';
|
4
4
|
import { ChevronDown } from 'lucide-react';
|
5
5
|
import { memo } from 'react';
|
@@ -28,14 +28,14 @@ const ChatHeaderTitle = memo(() => {
|
|
28
28
|
const displayTitle = isInbox ? t('inbox.title') : title;
|
29
29
|
|
30
30
|
return (
|
31
|
-
<
|
31
|
+
<ChatHeader.Title
|
32
32
|
desc={
|
33
33
|
<Flexbox align={'center'} gap={4} horizontal onClick={() => toggleConfig()}>
|
34
34
|
<span>{topic?.title || t('title', { ns: 'topic' })}</span>
|
35
35
|
<ActionIcon
|
36
36
|
active
|
37
37
|
icon={ChevronDown}
|
38
|
-
size={{ blockSize: 14, borderRadius: '50%',
|
38
|
+
size={{ blockSize: 14, borderRadius: '50%', size: 12 }}
|
39
39
|
style={{
|
40
40
|
background: theme.colorFillSecondary,
|
41
41
|
color: theme.colorTextDescription,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
'use client';
|
2
2
|
|
3
|
-
import {
|
3
|
+
import { ChatHeader } from '@lobehub/ui/mobile';
|
4
4
|
import { memo, useState } from 'react';
|
5
5
|
|
6
6
|
import { INBOX_SESSION_ID } from '@/const/session';
|
@@ -18,7 +18,7 @@ const MobileHeader = memo(() => {
|
|
18
18
|
const { isAgentEditable } = useServerConfigStore(featureFlagsSelectors);
|
19
19
|
|
20
20
|
return (
|
21
|
-
<
|
21
|
+
<ChatHeader
|
22
22
|
center={<ChatHeaderTitle />}
|
23
23
|
onBackClick={() =>
|
24
24
|
router.push('/chat', { query: { session: INBOX_SESSION_ID }, replace: true })
|