@lobehub/chat 1.83.8 → 1.84.1
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/CHANGELOG.md +50 -0
- 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 +2 -2
- 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 +3 -1
- 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/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/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/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
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { Button, Tooltip } from '@lobehub/ui';
|
2
|
+
import { Checkbox } from 'antd';
|
3
3
|
import { createStyles } from 'antd-style';
|
4
4
|
import dayjs from 'dayjs';
|
5
5
|
import relativeTime from 'dayjs/plugin/relativeTime';
|
@@ -35,6 +35,7 @@ const useStyles = createStyles(({ css, token, cx, isDarkMode }) => {
|
|
35
35
|
cursor: pointer;
|
36
36
|
margin-inline: 24px;
|
37
37
|
border-block-end: 1px solid ${isDarkMode ? token.colorSplit : rgba(token.colorSplit, 0.06)};
|
38
|
+
border-radius: ${token.borderRadius}px;
|
38
39
|
|
39
40
|
&:hover {
|
40
41
|
background: ${token.colorFillTertiary};
|
@@ -121,6 +122,7 @@ const FileRenderItem = memo<FileRenderItemProps>(
|
|
121
122
|
className={cx(styles.container, selected && styles.selected)}
|
122
123
|
height={64}
|
123
124
|
horizontal
|
125
|
+
paddingInline={8}
|
124
126
|
>
|
125
127
|
<Flexbox
|
126
128
|
align={'center'}
|
@@ -173,7 +175,7 @@ const FileRenderItem = memo<FileRenderItemProps>(
|
|
173
175
|
>
|
174
176
|
<Button
|
175
177
|
disabled={!isSupportedForChunking}
|
176
|
-
icon={
|
178
|
+
icon={FileBoxIcon}
|
177
179
|
loading={isCreatingFileParseTask}
|
178
180
|
onClick={() => {
|
179
181
|
parseFiles([id]);
|
@@ -8,7 +8,7 @@ const FileSkeleton = () => (
|
|
8
8
|
{Array.from({ length: 4 }).map((_, index) => (
|
9
9
|
<Flexbox align={'center'} distribution={'space-between'} height={64} horizontal key={index}>
|
10
10
|
<Flexbox align={'center'} flex={1} gap={12} horizontal paddingInline={12}>
|
11
|
-
<Skeleton.Avatar active
|
11
|
+
<Skeleton.Avatar active shape={'square'} size={48} />
|
12
12
|
<Skeleton.Button active style={{ height: 20, width: 300 }} />
|
13
13
|
</Flexbox>
|
14
14
|
<Flexbox paddingInline={24} width={FILE_DATE_WIDTH}>
|
@@ -13,14 +13,15 @@ const Config = memo<ConfigProps>(({ config, onConfigChange }) => {
|
|
13
13
|
|
14
14
|
return (
|
15
15
|
<Flexbox
|
16
|
-
|
16
|
+
align={'center'}
|
17
|
+
gap={8}
|
17
18
|
horizontal
|
18
19
|
onClick={() => {
|
19
20
|
onConfigChange({ showFilesInKnowledgeBase: !config.showFilesInKnowledgeBase });
|
20
21
|
}}
|
21
22
|
>
|
22
|
-
<Switch size={'small'} value={config.showFilesInKnowledgeBase} />
|
23
23
|
{t('FileManager.config.showFilesInKnowledgeBase')}
|
24
|
+
<Switch size={'small'} value={config.showFilesInKnowledgeBase} />
|
24
25
|
</Flexbox>
|
25
26
|
);
|
26
27
|
});
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Icon } from '@lobehub/ui';
|
2
|
-
import { App,
|
1
|
+
import { Button, Icon } from '@lobehub/ui';
|
2
|
+
import { App, Checkbox, Skeleton } from 'antd';
|
3
3
|
import { createStyles } from 'antd-style';
|
4
4
|
import { BookMinusIcon, BookPlusIcon, FileBoxIcon, Trash2Icon } from 'lucide-react';
|
5
5
|
import { rgba } from 'polished';
|
@@ -74,7 +74,7 @@ const MultiSelectActions = memo<MultiSelectActionsProps>(
|
|
74
74
|
{isInKnowledgeBase ? (
|
75
75
|
<>
|
76
76
|
<Button
|
77
|
-
icon={
|
77
|
+
icon={BookMinusIcon}
|
78
78
|
onClick={() => {
|
79
79
|
modal.confirm({
|
80
80
|
okButtonProps: {
|
@@ -94,36 +94,43 @@ const MultiSelectActions = memo<MultiSelectActionsProps>(
|
|
94
94
|
{t('FileManager.actions.removeFromKnowledgeBase')}
|
95
95
|
</Button>
|
96
96
|
<Button
|
97
|
+
color={'default'}
|
97
98
|
icon={<Icon icon={BookPlusIcon} />}
|
98
99
|
onClick={() => {
|
99
100
|
onActionClick('addToOtherKnowledgeBase');
|
100
101
|
}}
|
101
102
|
size={'small'}
|
103
|
+
variant={'filled'}
|
102
104
|
>
|
103
105
|
{t('FileManager.actions.addToOtherKnowledgeBase')}
|
104
106
|
</Button>
|
105
107
|
</>
|
106
108
|
) : (
|
107
109
|
<Button
|
110
|
+
color={'default'}
|
108
111
|
icon={<Icon icon={BookPlusIcon} />}
|
109
112
|
onClick={() => {
|
110
113
|
onActionClick('addToKnowledgeBase');
|
111
114
|
}}
|
112
115
|
size={'small'}
|
116
|
+
variant={'filled'}
|
113
117
|
>
|
114
118
|
{t('FileManager.actions.addToKnowledgeBase')}
|
115
119
|
</Button>
|
116
120
|
)}
|
117
121
|
<Button
|
122
|
+
color={'default'}
|
118
123
|
icon={<Icon icon={FileBoxIcon} />}
|
119
124
|
onClick={async () => {
|
120
125
|
await onActionClick('batchChunking');
|
121
126
|
}}
|
122
127
|
size={'small'}
|
128
|
+
variant={'filled'}
|
123
129
|
>
|
124
130
|
{t('FileManager.actions.batchChunking')}
|
125
131
|
</Button>
|
126
132
|
<Button
|
133
|
+
color={'danger'}
|
127
134
|
danger
|
128
135
|
icon={<Icon icon={Trash2Icon} />}
|
129
136
|
onClick={async () => {
|
@@ -139,6 +146,7 @@ const MultiSelectActions = memo<MultiSelectActionsProps>(
|
|
139
146
|
});
|
140
147
|
}}
|
141
148
|
size={'small'}
|
149
|
+
variant={'filled'}
|
142
150
|
>
|
143
151
|
{t('batchDelete', { ns: 'common' })}
|
144
152
|
</Button>
|
@@ -90,7 +90,7 @@ const FileList = memo<FileListProps>(({ knowledgeBaseId, category }) => {
|
|
90
90
|
total={data?.length}
|
91
91
|
totalFileIds={data?.map((item) => item.id) || []}
|
92
92
|
/>
|
93
|
-
<Flexbox align={'center'} className={styles.header} horizontal>
|
93
|
+
<Flexbox align={'center'} className={styles.header} horizontal paddingInline={8}>
|
94
94
|
<Flexbox className={styles.headerItem} flex={1} style={{ paddingInline: 32 }}>
|
95
95
|
{t('FileManager.title.title')}
|
96
96
|
</Flexbox>
|
@@ -22,22 +22,17 @@ const FilesSearchBar = memo<{ mobile?: boolean }>(({ mobile }) => {
|
|
22
22
|
<SearchBar
|
23
23
|
allowClear
|
24
24
|
enableShortKey={!mobile}
|
25
|
-
// loading={isValidating}
|
26
25
|
onChange={(e) => {
|
27
26
|
setKeywords(e.target.value);
|
28
|
-
|
29
|
-
if (!e.target.value) {
|
30
|
-
setQuery(null);
|
31
|
-
}
|
32
|
-
}}
|
33
|
-
onPressEnter={() => {
|
34
|
-
setQuery(keywords);
|
27
|
+
if (!e.target.value) setQuery(null);
|
35
28
|
}}
|
29
|
+
onPressEnter={() => setQuery(keywords)}
|
36
30
|
placeholder={t('searchFilePlaceholder')}
|
37
31
|
shortKey={hotkey}
|
38
32
|
spotlight={!mobile}
|
39
33
|
style={{ width: 320 }}
|
40
34
|
value={keywords}
|
35
|
+
variant={'filled'}
|
41
36
|
/>
|
42
37
|
);
|
43
38
|
});
|
@@ -0,0 +1,42 @@
|
|
1
|
+
'use client';
|
2
|
+
|
3
|
+
import { ActionIcon, Tooltip } from '@lobehub/ui';
|
4
|
+
import { PanelLeftClose, PanelLeftOpen } from 'lucide-react';
|
5
|
+
import { memo } from 'react';
|
6
|
+
import { useTranslation } from 'react-i18next';
|
7
|
+
|
8
|
+
import { DESKTOP_HEADER_ICON_SIZE, FOLDER_WIDTH } from '@/const/layoutTokens';
|
9
|
+
import { useGlobalStore } from '@/store/global';
|
10
|
+
import { systemStatusSelectors } from '@/store/global/selectors';
|
11
|
+
import { useUserStore } from '@/store/user';
|
12
|
+
import { settingsSelectors } from '@/store/user/selectors';
|
13
|
+
import { HotkeyEnum } from '@/types/hotkey';
|
14
|
+
|
15
|
+
export const TOOGLE_PANEL_BUTTON_ID = 'toggle-panel-button';
|
16
|
+
|
17
|
+
const TogglePanelButton = memo(() => {
|
18
|
+
const hotkey = useUserStore(settingsSelectors.getHotkeyById(HotkeyEnum.ToggleLeftPanel));
|
19
|
+
|
20
|
+
const { t } = useTranslation(['file', 'hotkey']);
|
21
|
+
|
22
|
+
const showFilePanel = useGlobalStore(systemStatusSelectors.showFilePanel);
|
23
|
+
const updateSystemStatus = useGlobalStore((s) => s.updateSystemStatus);
|
24
|
+
|
25
|
+
return (
|
26
|
+
<Tooltip hotkey={hotkey} title={t('toggleLeftPanel.title', { ns: 'hotkey' })}>
|
27
|
+
<ActionIcon
|
28
|
+
icon={showFilePanel ? PanelLeftClose : PanelLeftOpen}
|
29
|
+
id={TOOGLE_PANEL_BUTTON_ID}
|
30
|
+
onClick={() => {
|
31
|
+
updateSystemStatus({
|
32
|
+
filePanelWidth: showFilePanel ? 0 : FOLDER_WIDTH,
|
33
|
+
showFilePanel: !showFilePanel,
|
34
|
+
});
|
35
|
+
}}
|
36
|
+
size={DESKTOP_HEADER_ICON_SIZE}
|
37
|
+
/>
|
38
|
+
</Tooltip>
|
39
|
+
);
|
40
|
+
});
|
41
|
+
|
42
|
+
export default TogglePanelButton;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
'use client';
|
2
2
|
|
3
|
-
import { Icon } from '@lobehub/ui';
|
4
|
-
import {
|
3
|
+
import { Button, Dropdown, Icon, MenuProps } from '@lobehub/ui';
|
4
|
+
import { Upload } from 'antd';
|
5
5
|
import { css, cx } from 'antd-style';
|
6
|
-
import { FileUp, FolderUp,
|
6
|
+
import { FileUp, FolderUp, UploadIcon } from 'lucide-react';
|
7
7
|
import { useMemo } from 'react';
|
8
8
|
import { useTranslation } from 'react-i18next';
|
9
9
|
|
@@ -66,7 +66,7 @@ const UploadFileButton = ({ knowledgeBaseId }: { knowledgeBaseId?: string }) =>
|
|
66
66
|
return (
|
67
67
|
<>
|
68
68
|
<Dropdown menu={{ items }} placement="bottomRight">
|
69
|
-
<Button icon={
|
69
|
+
<Button icon={UploadIcon}>{t('header.uploadButton')}</Button>
|
70
70
|
</Dropdown>
|
71
71
|
<DragUpload
|
72
72
|
enabledFiles
|
@@ -1,38 +1,26 @@
|
|
1
1
|
'use client';
|
2
2
|
|
3
|
-
import {
|
4
|
-
import { PanelLeftClose, PanelLeftOpen } from 'lucide-react';
|
3
|
+
import { ChatHeader } from '@lobehub/ui/chat';
|
5
4
|
import { memo } from 'react';
|
6
|
-
import { Flexbox } from 'react-layout-kit';
|
7
|
-
|
8
|
-
import { DESKTOP_HEADER_ICON_SIZE, FOLDER_WIDTH } from '@/const/layoutTokens';
|
9
|
-
import { useGlobalStore } from '@/store/global';
|
10
|
-
import { systemStatusSelectors } from '@/store/global/selectors';
|
11
5
|
|
12
6
|
import FilesSearchBar from './FilesSearchBar';
|
7
|
+
import TogglePanelButton from './TogglePanelButton';
|
13
8
|
import UploadFileButton from './UploadFileButton';
|
14
9
|
|
15
10
|
const Header = memo<{ knowledgeBaseId?: string }>(({ knowledgeBaseId }) => {
|
16
|
-
const showFilePanel = useGlobalStore(systemStatusSelectors.showFilePanel);
|
17
|
-
const updateSystemStatus = useGlobalStore((s) => s.updateSystemStatus);
|
18
|
-
|
19
11
|
return (
|
20
|
-
<
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
<FilesSearchBar />
|
33
|
-
</Flexbox>
|
34
|
-
<UploadFileButton knowledgeBaseId={knowledgeBaseId} />
|
35
|
-
</Flexbox>
|
12
|
+
<ChatHeader
|
13
|
+
left={
|
14
|
+
<>
|
15
|
+
<TogglePanelButton />
|
16
|
+
<FilesSearchBar />
|
17
|
+
</>
|
18
|
+
}
|
19
|
+
right={<UploadFileButton knowledgeBaseId={knowledgeBaseId} />}
|
20
|
+
styles={{
|
21
|
+
left: { padding: 0 },
|
22
|
+
}}
|
23
|
+
/>
|
36
24
|
);
|
37
25
|
});
|
38
26
|
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { IDocument } from '@cyntler/react-doc-viewer';
|
2
|
-
import { FluentEmoji } from '@lobehub/ui';
|
3
|
-
import { Button } from 'antd';
|
2
|
+
import { Button, FluentEmoji } from '@lobehub/ui';
|
4
3
|
import { createStyles } from 'antd-style';
|
5
4
|
import Link from 'next/link';
|
6
5
|
import React, { ComponentType, useState } from 'react';
|
@@ -22,7 +22,12 @@ const TXTViewer: DocRenderer = ({ mainState: { currentDocument } }) => {
|
|
22
22
|
return (
|
23
23
|
<Flexbox className={styles.page} id="txt-renderer">
|
24
24
|
{!!currentDocument?.fileData ? (
|
25
|
-
<Highlighter
|
25
|
+
<Highlighter
|
26
|
+
language={'txt'}
|
27
|
+
showLanguage={false}
|
28
|
+
style={{ height: '100%' }}
|
29
|
+
variant={'borderless'}
|
30
|
+
>
|
26
31
|
{currentDocument?.fileData as string}
|
27
32
|
</Highlighter>
|
28
33
|
) : (
|
@@ -1,6 +1,6 @@
|
|
1
1
|
'use client';
|
2
2
|
|
3
|
-
import { Drawer, Grid,
|
3
|
+
import { Drawer, Grid, Tabs } from '@lobehub/ui';
|
4
4
|
import { memo, useState } from 'react';
|
5
5
|
import { useTranslation } from 'react-i18next';
|
6
6
|
|
@@ -32,8 +32,9 @@ const HotkeyHelperPanel = memo(() => {
|
|
32
32
|
title: { paddingBlock: 0 },
|
33
33
|
}}
|
34
34
|
title={
|
35
|
-
<
|
35
|
+
<Tabs
|
36
36
|
activeKey={active}
|
37
|
+
compact
|
37
38
|
items={[
|
38
39
|
{
|
39
40
|
key: HotkeyGroupEnum.Essential,
|
@@ -45,7 +46,6 @@ const HotkeyHelperPanel = memo(() => {
|
|
45
46
|
},
|
46
47
|
]}
|
47
48
|
onChange={(key) => setActive(key as HotkeyGroupId)}
|
48
|
-
variant={'compact'}
|
49
49
|
/>
|
50
50
|
}
|
51
51
|
>
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { Icon } from '@lobehub/ui';
|
2
|
-
import { Button } from 'antd';
|
1
|
+
import { Button, Icon } from '@lobehub/ui';
|
3
2
|
import { createStyles } from 'antd-style';
|
4
3
|
import { CpuIcon, LibraryBig, ShieldCheck } from 'lucide-react';
|
5
4
|
import { memo } from 'react';
|
@@ -95,7 +94,7 @@ const EnableClientDBModal = memo<EnableClientDBModalProps>(({ open }) => {
|
|
95
94
|
{features.map((item) => (
|
96
95
|
<Flexbox align={'flex-start'} gap={24} horizontal key={item.title}>
|
97
96
|
<Center className={styles.iconCtn}>
|
98
|
-
<Icon className={styles.icon} icon={item.avatar} size={
|
97
|
+
<Icon className={styles.icon} icon={item.avatar} size={36} />
|
99
98
|
</Center>
|
100
99
|
<Flexbox gap={8}>
|
101
100
|
<p className={styles.title}>{item.title}</p>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Alert, Highlighter, Icon, Modal } from '@lobehub/ui';
|
2
|
-
import {
|
1
|
+
import { Alert, Button, Highlighter, Icon, Modal } from '@lobehub/ui';
|
2
|
+
import { Spin } from 'antd';
|
3
3
|
import { createStyles } from 'antd-style';
|
4
4
|
import isEqual from 'fast-deep-equal';
|
5
5
|
import { PenToolIcon, TriangleAlert } from 'lucide-react';
|
@@ -75,7 +75,7 @@ const ErrorResult = memo<FailedModalProps>(({ children }) => {
|
|
75
75
|
}}
|
76
76
|
>
|
77
77
|
<Center height={40} width={24}>
|
78
|
-
<Icon icon={TriangleAlert} size={
|
78
|
+
<Icon icon={TriangleAlert} size={20} />
|
79
79
|
</Center>
|
80
80
|
<span className={styles.text}>{t('clientDB.initing.error')}</span>
|
81
81
|
</Flexbox>
|
@@ -101,7 +101,7 @@ const ErrorResult = memo<FailedModalProps>(({ children }) => {
|
|
101
101
|
description={`[${error?.name}] ${error?.message}`}
|
102
102
|
extra={
|
103
103
|
<Flexbox gap={8} style={{ marginTop: 8, overflow: 'scroll' }} width={'100%'}>
|
104
|
-
<Highlighter
|
104
|
+
<Highlighter actionIconSize={'small'} language={'json'}>
|
105
105
|
{JSON.stringify(error, null, 2)}
|
106
106
|
</Highlighter>
|
107
107
|
</Flexbox>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Alert } from '@lobehub/ui';
|
2
|
-
import { App,
|
1
|
+
import { Alert, Button } from '@lobehub/ui';
|
2
|
+
import { App, Card, Typography } from 'antd';
|
3
3
|
import { createStyles } from 'antd-style';
|
4
4
|
import { AlertCircle } from 'lucide-react';
|
5
5
|
import { useTranslation } from 'react-i18next';
|
@@ -45,7 +45,7 @@ const Backup = () => {
|
|
45
45
|
message={t('clientDB.solve.backup.reset.alert')}
|
46
46
|
showIcon
|
47
47
|
type="error"
|
48
|
-
variant={'
|
48
|
+
variant={'borderless'}
|
49
49
|
/>
|
50
50
|
|
51
51
|
<Button
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Highlighter } from '@lobehub/ui';
|
2
|
-
import { Card, List, Popover
|
1
|
+
import { Highlighter, Tag } from '@lobehub/ui';
|
2
|
+
import { Card, List, Popover } from 'antd';
|
3
3
|
import { createStyles } from 'antd-style';
|
4
4
|
import dayjs from 'dayjs';
|
5
5
|
import isEqual from 'fast-deep-equal';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
'use client';
|
2
2
|
|
3
|
-
import { Alert, CodeEditor, Icon } from '@lobehub/ui';
|
4
|
-
import {
|
3
|
+
import { Alert, Button, CodeEditor, Icon } from '@lobehub/ui';
|
4
|
+
import { Card, List, Typography } from 'antd';
|
5
5
|
import { createStyles } from 'antd-style';
|
6
6
|
import dayjs from 'dayjs';
|
7
7
|
import isEqual from 'fast-deep-equal';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
'use client';
|
2
2
|
|
3
|
-
import { Button, Segmented } from '
|
3
|
+
import { Button, Segmented } from '@lobehub/ui';
|
4
4
|
import { createStyles } from 'antd-style';
|
5
5
|
import { AlertCircle, ArrowLeft, PenToolIcon as Tool } from 'lucide-react';
|
6
6
|
import { memo, useState } from 'react';
|
@@ -19,6 +19,12 @@ const useStyles = createStyles(({ css, token }) => ({
|
|
19
19
|
`,
|
20
20
|
}));
|
21
21
|
|
22
|
+
enum DatabaseRepairTab {
|
23
|
+
Backup = 'backup',
|
24
|
+
Diagnosis = 'diagnosis',
|
25
|
+
Repair = 'repair',
|
26
|
+
}
|
27
|
+
|
22
28
|
interface DatabaseRepairProps {
|
23
29
|
setShowRepair: (value: boolean) => void;
|
24
30
|
}
|
@@ -26,7 +32,7 @@ interface DatabaseRepairProps {
|
|
26
32
|
const DatabaseRepair = memo<DatabaseRepairProps>(({ setShowRepair }) => {
|
27
33
|
const { t } = useTranslation('common');
|
28
34
|
const { styles } = useStyles();
|
29
|
-
const [activeTab, setActiveTab] = useState(
|
35
|
+
const [activeTab, setActiveTab] = useState<DatabaseRepairTab>(DatabaseRepairTab.Diagnosis);
|
30
36
|
|
31
37
|
return (
|
32
38
|
<Flexbox gap={12}>
|
@@ -40,7 +46,7 @@ const DatabaseRepair = memo<DatabaseRepairProps>(({ setShowRepair }) => {
|
|
40
46
|
{t('back')}
|
41
47
|
</Button>
|
42
48
|
<Segmented
|
43
|
-
onChange={setActiveTab}
|
49
|
+
onChange={(v) => setActiveTab(v as DatabaseRepairTab)}
|
44
50
|
options={[
|
45
51
|
{
|
46
52
|
label: (
|
@@ -75,9 +81,9 @@ const DatabaseRepair = memo<DatabaseRepairProps>(({ setShowRepair }) => {
|
|
75
81
|
<Flexbox width={36} />
|
76
82
|
</Flexbox>
|
77
83
|
|
78
|
-
{activeTab ===
|
79
|
-
{activeTab ===
|
80
|
-
{activeTab ===
|
84
|
+
{activeTab === DatabaseRepairTab.Diagnosis && <Diagnosis />}
|
85
|
+
{activeTab === DatabaseRepairTab.Repair && <Repair />}
|
86
|
+
{activeTab === DatabaseRepairTab.Backup && <Backup />}
|
81
87
|
</Flexbox>
|
82
88
|
);
|
83
89
|
});
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import { MaterialFileTypeIcon } from '@lobehub/ui';
|
2
|
-
import { App
|
3
|
-
import { createStyles } from 'antd-style';
|
1
|
+
import { Block, Button, Form, MaterialFileTypeIcon, Select } from '@lobehub/ui';
|
2
|
+
import { App } from 'antd';
|
4
3
|
import Link from 'next/link';
|
5
4
|
import { memo, useState } from 'react';
|
6
5
|
import { Trans, useTranslation } from 'react-i18next';
|
@@ -9,25 +8,6 @@ import { Flexbox } from 'react-layout-kit';
|
|
9
8
|
import RepoIcon from '@/components/RepoIcon';
|
10
9
|
import { useKnowledgeBaseStore } from '@/store/knowledgeBase';
|
11
10
|
|
12
|
-
const useStyles = createStyles(({ css, token }) => ({
|
13
|
-
files: css`
|
14
|
-
height: 48px;
|
15
|
-
padding-block: 4px;
|
16
|
-
padding-inline: 8px;
|
17
|
-
border: 1px solid ${token.colorSplit};
|
18
|
-
border-radius: 6px;
|
19
|
-
`,
|
20
|
-
formItem: css`
|
21
|
-
display: flex;
|
22
|
-
flex-direction: column;
|
23
|
-
gap: 12px;
|
24
|
-
|
25
|
-
.ant-form-item {
|
26
|
-
margin-block-end: 0;
|
27
|
-
}
|
28
|
-
`,
|
29
|
-
}));
|
30
|
-
|
31
11
|
interface CreateFormProps {
|
32
12
|
fileIds: string[];
|
33
13
|
knowledgeBaseId?: string;
|
@@ -36,7 +16,6 @@ interface CreateFormProps {
|
|
36
16
|
|
37
17
|
const SelectForm = memo<CreateFormProps>(({ onClose, knowledgeBaseId, fileIds }) => {
|
38
18
|
const { t } = useTranslation('knowledgeBase');
|
39
|
-
const { styles } = useStyles();
|
40
19
|
const [loading, setLoading] = useState(false);
|
41
20
|
|
42
21
|
const { message } = App.useApp();
|
@@ -67,47 +46,51 @@ const SelectForm = memo<CreateFormProps>(({ onClose, knowledgeBaseId, fileIds })
|
|
67
46
|
};
|
68
47
|
|
69
48
|
return (
|
70
|
-
<
|
71
|
-
|
72
|
-
<
|
73
|
-
{t('addToKnowledgeBase.totalFiles', { count: fileIds.length })}
|
74
|
-
</Flexbox>
|
75
|
-
<Form className={styles.formItem} layout={'vertical'} onFinish={onFinish}>
|
76
|
-
<Form.Item
|
77
|
-
label={t('addToKnowledgeBase.id.title')}
|
78
|
-
name={'id'}
|
79
|
-
required={false}
|
80
|
-
rules={[{ message: t('addToKnowledgeBase.id.required'), required: true }]}
|
81
|
-
>
|
82
|
-
<Select
|
83
|
-
autoFocus
|
84
|
-
loading={isLoading}
|
85
|
-
options={(data || [])
|
86
|
-
.filter((item) => item.id !== knowledgeBaseId)
|
87
|
-
.map((item) => ({
|
88
|
-
label: (
|
89
|
-
<Flexbox gap={8} horizontal>
|
90
|
-
<RepoIcon />
|
91
|
-
{item.name}
|
92
|
-
</Flexbox>
|
93
|
-
),
|
94
|
-
value: item.id,
|
95
|
-
}))}
|
96
|
-
placeholder={t('addToKnowledgeBase.id.placeholder')}
|
97
|
-
/>
|
98
|
-
</Form.Item>
|
99
|
-
|
100
|
-
<Button
|
101
|
-
block
|
102
|
-
htmlType={'submit'}
|
103
|
-
loading={loading}
|
104
|
-
style={{ marginTop: 16 }}
|
105
|
-
type={'primary'}
|
106
|
-
>
|
49
|
+
<Form
|
50
|
+
footer={
|
51
|
+
<Button block htmlType={'submit'} loading={loading} type={'primary'}>
|
107
52
|
{t('addToKnowledgeBase.confirm')}
|
108
53
|
</Button>
|
109
|
-
|
110
|
-
|
54
|
+
}
|
55
|
+
gap={16}
|
56
|
+
items={[
|
57
|
+
{
|
58
|
+
children: (
|
59
|
+
<Block align={'center'} gap={8} horizontal padding={16} variant={'filled'}>
|
60
|
+
<MaterialFileTypeIcon filename={''} size={32} />
|
61
|
+
{t('addToKnowledgeBase.totalFiles', { count: fileIds.length })}
|
62
|
+
</Block>
|
63
|
+
),
|
64
|
+
noStyle: true,
|
65
|
+
},
|
66
|
+
{
|
67
|
+
children: (
|
68
|
+
<Select
|
69
|
+
autoFocus
|
70
|
+
loading={isLoading}
|
71
|
+
options={(data || [])
|
72
|
+
.filter((item) => item.id !== knowledgeBaseId)
|
73
|
+
.map((item) => ({
|
74
|
+
label: (
|
75
|
+
<Flexbox gap={8} horizontal>
|
76
|
+
<RepoIcon />
|
77
|
+
{item.name}
|
78
|
+
</Flexbox>
|
79
|
+
),
|
80
|
+
value: item.id,
|
81
|
+
}))}
|
82
|
+
placeholder={t('addToKnowledgeBase.id.placeholder')}
|
83
|
+
/>
|
84
|
+
),
|
85
|
+
label: t('addToKnowledgeBase.id.title'),
|
86
|
+
name: 'id',
|
87
|
+
rules: [{ message: t('addToKnowledgeBase.id.required'), required: true }],
|
88
|
+
},
|
89
|
+
]}
|
90
|
+
itemsType={'flat'}
|
91
|
+
layout={'vertical'}
|
92
|
+
onFinish={onFinish}
|
93
|
+
/>
|
111
94
|
);
|
112
95
|
});
|
113
96
|
|
@@ -27,7 +27,7 @@ interface AddFilesToKnowledgeBaseModalProps {
|
|
27
27
|
export const useAddFilesToKnowledgeBaseModal = createModal<AddFilesToKnowledgeBaseModalProps>(
|
28
28
|
(instance, params) => ({
|
29
29
|
content: (
|
30
|
-
<Flexbox
|
30
|
+
<Flexbox padding={16}>
|
31
31
|
<SelectForm
|
32
32
|
fileIds={params?.fileIds || []}
|
33
33
|
knowledgeBaseId={params?.knowledgeBaseId}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { ActionIcon, Icon } from '@lobehub/ui';
|
2
|
-
import { Button, Dropdown } from 'antd';
|
1
|
+
import { ActionIcon, Button, Dropdown, Icon } from '@lobehub/ui';
|
3
2
|
import { InfoIcon, MoreVerticalIcon, Trash2 } from 'lucide-react';
|
4
3
|
import { memo, useState } from 'react';
|
5
4
|
import { useTranslation } from 'react-i18next';
|